text stringlengths 54 60.6k |
|---|
<commit_before>
#include "executeBaton.h"
#include "connection.h"
#include "outParam.h"
#include <iostream>
using namespace std;
ExecuteBaton::ExecuteBaton(Connection* connection, const char* sql, v8::Local<v8::Array>* values, v8::Handle<v8::Function>* callback) {
this->connection = connection;
this->sql = sql;
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: OglrLgt.cc
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by Ken Ma... |
<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>/*
* Copyright (c) 2008-2018 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, you can obtain one at http://mozilla.org/MPL/2.0/
*
* MRtrix3 is distributed in the hope that... |
<commit_before>/// @file
/// @author uentity
/// @date 22.11.2017
/// @brief BS tree-related functions impl
/// @copyright
/// This Source Code Form is subject to the terms of the Mozilla Public License,
/// v. 2.0. If a copy of the MPL was not distributed with this file,
/// You can obtain one at https://mozilla.org/M... |
<commit_before>#include "RTimer.h"
#include "RTimerEvent.h"
#include "RCoreApplication.h"
RTimer::RTimer() : mIsSingleShot(false)
{
// NOTE: Set timer run as idle task by default, but we can't set interval to
// zero, otherwise the created timer will return to NULL, so we give value 1 .
mHandle = xTimerCreate(
... |
<commit_before>/*=========================================================================
*
* Copyright 2011-2013 The University of North Carolina at Chapel Hill
* All rights reserved.
*
* Licensed under the MADAI Software License. You may obtain a copy of
* this license at
*
* https://madai-public... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2010 - 2014, Göteborg Bit Factory.
//
// 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... |
<commit_before>/*
* FastRPC -- Fast RPC library compatible with XML-RPC
* Copyright (C) 2005-7 Seznam.cz, a.s.
*
* 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... |
<commit_before>// Vaca - Visual Application Components Abstraction
// Copyright (c) 2005, 2006, 2007, 2008, David Capello
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Red... |
<commit_before>/*******************************************************************************
* Copyright 2016 Francesco Calimeri, Davide Fusca', Simona Perri and Jessica Zangari
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
<commit_before>// Copyright 2017 Neon Edge Game.
#include "Turret.h"
#include "AIMovingOnGroudGraphicsComponent.h"
#include "StageState.h"
#include "Gallahad.h"
#include "Projectile.h"
Turret::Turret(int x, int y): Character(x, y), radius(), looking(1500), idle(1500) {
name = "Turret";
graphicsComponent = new... |
<commit_before>/*
* Copyright (c) 2019-2020 Fastly, Inc., Toru Maesaka, Goro Fuji
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
... |
<commit_before>/* -------------------------------------------------------------------------- */
/* Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) */
/* */
/* Licensed under the Apache License, Version 2.0 (the "Licens... |
<commit_before>/*
* Copyright (C) 2017 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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
* (at your op... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2011 Vince Durham
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2016 Daniel Kraft
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-li... |
<commit_before>// Copyright (c) 2014-2015 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 "base58.h"
#include "hash.h"
#include "uint256.h"
#include <assert.h>
#include <stdint.h>
#include ... |
<commit_before>// Copyright (c) 2017, 2021 Pieter Wuille
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bech32.h>
#include <util/vector.h>
#include <assert.h>
namespace bech32
{
namespace
{
typedef std::vector<uin... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>//===--- IRGen.cpp - Swift LLVM IR Generation -----------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include "internal.hpp"
#include "clause.hpp"
#include "macros.hpp"
#include "message.hpp"
#include "proof.hpp"
#include <algorithm>
namespace CaDiCaL {
void Internal::watch_clause (Clause * c) {
const int size = c->size;
const int l0 = c->literals[0];
const int l1 = c->literals[1];
watch_lit... |
<commit_before>/*
ESP Wlan configurator
*/
#include <ESP8266WebServer.h>
#include <ESP8266WiFi.h>
#include <EEPROM.h>
#include <string>
#include <time.h>
#define EE_SIZE 512 // Size of eeprom
#define EE_SSID_SIZE 32 // Max SSID size
#define EE_PWD_SIZE 32 // Max password size
#define EE_HOST_SIZE 32 // Max... |
<commit_before>#include "hphp/runtime/ext/extension.h"
#include "hphp/runtime/base/array-iterator.h"
#include <bson.h>
#include "encode.h"
#include "classes.h"
namespace HPHP {
void fillBSONWithArray(const Array& value, bson_t* bson) {
for (ArrayIter iter(value); iter; ++iter) {
Variant key(iter.first());
... |
<commit_before>#include "core.h"
#include "mpicontroller.h"
#include "move.h"
#include "montecarlo.h"
#include "analysis.h"
#include "docopt.h"
#include "progress_tracker.h"
#include <cstdlib>
#include "spdlog/spdlog.h"
#include <spdlog/sinks/null_sink.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <iomanip>
... |
<commit_before>// Load and save in binary or readable format.
#include "fileio.h"
// Get path to resource file.
// Application responsible for freeing malloc'd memory.
char *getResourcePath(char *file)
{
return(getPath((char *)"resource", file));
}
// Get path to data file.
// Application responsible for freeing... |
<commit_before>/**
* ifaces.cpp
* StatusSpec project
*
* Copyright (c) 2014 thesupremecommander
* BSD 2-Clause License
* http://opensource.org/licenses/BSD-2-Clause
*
*/
#include "ifaces.h"
#define CheckPointerAndWarn(pPointer, className) \
if (pPointer == nullptr) { \
Warning("[StatusSpec] %s is no... |
<commit_before>///
/// C++ interview quiz.
///
/// What shall be printed as 'x' value?
///
#include <iostream>
#include <stdexcept>
int x = 0;
#define TRACE_CALL std::cout << __PRETTY_FUNCTION__ << std::endl
class Base {
public:
Base() { TRACE_CALL; ++x; }
Base(const B... |
<commit_before>#include "incphp.h"
#include <array>
#include <iostream>
#include <cmath>
#include "tclap/CmdLine.h"
#include "carj/carj.h"
#include "carj/ScopedTimer.h"
#include "ipasir/ipasir_cpp.h"
#include "carj/logging.h"
int neccessaryArgument = true;
int defaultIsFalse = false;
using json = nlohmann::json;
... |
<commit_before>#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "kernel.h"
#include <QDebug>
Kernel::Kernel(int argc, char** argv)
{
/* default config */
height = DEF_HEIGHT;
width = DEF_WIDTH;
fullscreen = false;
mode = SINGLEPLAY;
map_name = "default_m... |
<commit_before>/*
*Copyright (c) 2013-2013, yinqiwen <yinqiwen@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:
*
* * Redistributions of source code must retain the above copyrigh... |
<commit_before>#ifndef __LOGGER_HPP__
#define __LOGGER_HPP__
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
// The file to write log messages to. It defaults to stderr, but main() may set it to something
// different.
extern FILE *log_file;
/* These functions log things. */
enum log_level_t { DBG = 0, I... |
<commit_before>// Copyright (c) 2014, Baidu.com, Inc. All Rights Reserved
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: yanshiguang02@baidu.com
#include "logging.h"
#include <assert.h>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#in... |
<commit_before><commit_msg>improve SB<commit_after><|endoftext|> |
<commit_before>// Copyright 2020 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
<commit_before>/*
* Copyright (C) 2015, 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... |
<commit_before>#include "offset.h"
bool siren_offset_install(mrb_state* mrb, struct RClass* rclass)
{
rclass = mrb_define_module(mrb, "Offset");
mrb_define_class_method(mrb, rclass, "sweep_vec", siren_offset_sweep_vec, ARGS_REQ(2));
mrb_define_class_method(mrb, rclass, "sweep_path", siren_offset_sweep_path, AR... |
<commit_before>#include "z2h/token.hpp"
#include "z2h/parser.hpp"
#include "ast.h"
#include "parser.h"
#include "bindpower.h"
#include "exceptions.h"
#include <map>
#include <vector>
#include <boost/regex.hpp>
#include <iostream>
namespace sota {
// scanners
long SotaParser::SkippingScanner(SotaSymbol *symb... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- vim:set ts=4 sw=4 sts=4 noet: */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "phml.hh"
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <memory>
#include "db/... |
<commit_before>/// \file player.cpp
/// Holds all code for the MistPlayer application used for VoD streams.
#if DEBUG >= 4
#include <iostream>//for std::cerr
#endif
#include <stdio.h> //for fileno
#include <sys/time.h>
#include <mist/dtsc.h>
#include <mist/json.h>
#include <mist/config.h>
#include <mist/socket.h>
//... |
<commit_before>#include "player.h"
#include <cmath>
const double PI = 3.14159265358979323846264338329750288419716939937510582;
Player::Player() : Speed(0), Yrot(0), Zrot(0), X(0), Y(0), Z(0), Moving(false), Name("Untitled"), StandingOn(NULL), GravitySpeed(0.f), SurfaceZ(0.f) {}
Player::Player(float initspeed, float i... |
<commit_before>// SA:MP Profiler plugin
//
// Copyright (c) 2011 Zeex
//
// 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>/*
Copyright (c) 2010, The Mineserver Project
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, th... |
<commit_before>#include <boost/python.hpp>
#include <boost/python/exception_translator.hpp>
#include <boost/python/numpy.hpp>
#include "cimage.h"
#include "cproc.h"
#include "gil.h"
#include "except.h"
#include "bitmap.h"
using namespace boost::python;
class BitmapWrapper : public Bitmap
, pub... |
<commit_before>/*
* Pi 2 is connected to the ImP/IMU via UART, Camera via CSI, Burn Wire Relay
* via GPIO and Pi 1 via Ethernet and GPIO for LO, SOE and SODS signals.
*
* This program controls most of the main logic and for the PIOneERs mission
* on board REXUS.
*/
#include <stdio.h>
#include <cstdint>
#include ... |
<commit_before>#include <employ_server_config.h>
#include <employ_server_info.h>
#include <employ_database.h>
#include <QSqlQuery>
#include <QSqlRecord>
REGISTRY_EMPLOY(EmployServerInfo)
// ---------------------------------------------------------------------
EmployServerInfo::EmployServerInfo()
: EmployBase(Em... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "PositionModule.hpp"
#include <assert.h>
#include <ros/console.h>
#include "sensor_msgs/Image.h"
#include "api_application/Ping.h"
#include "api_application/Announce.h"
PositionModule::PositionModule(IPositionReceiver* receiver)
{
assert(receiver != 0);
this->receiver = receiver;
_isIni... |
<commit_before>#include <iostream>
#include <vector>
#include "opencv2/core.hpp"
#include <opencv2/core/utility.hpp>
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/video.hpp"
#include "opencv2/cudaoptflow.hpp"
#include "opencv2/cudaimgproc.hpp"
using namespace std;
using namespace cv;... |
<commit_before>#ifndef SCREENBUFFER_CPP
#define SCREENBUFFER_CPP
#include "ScreenBuffer.h"
using namespace std;
ScreenBuffer::ScreenBuffer(const int screenWidth, const int screenHeight):
m_BufferHeight(screenHeight),
m_BufferWidth(screenWidth),
// Allocate the memory for the 2d array
m_screenBuffer(new char *[m_Buffe... |
<commit_before>/** \file Subfields.cc
* \brief Implementation of the Subfields class.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2014 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify... |
<commit_before>// Copyright 2013 The Flutter 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 "flutter/testing/assertions_skia.h"
namespace flutter {
namespace testing {
std::ostream& operator<<(std::ostream& os, const SkCl... |
<commit_before>/**
* This file is part of libstreamswtich, which belongs to StreamSwitch
* project.
*
* Copyright (C) 2014 OpenSight (www.opensight.cn)
*
* StreamSwitch is an extensible and scalable media stream server for
* multi-protocol environment.
*
* This program is free software: you can redistrib... |
<commit_before>/** \file mysql_schema_diff.cc
* \brief A tool for comparing a sql file with create table statements against an existing database, using mysqldiff.
* \author Mario Trojan (mario.trojan@uni-tuebingen.de)
*
* \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program ... |
<commit_before>/*************************************************************************
*
* $RCSfile: frmbase.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: dr $ $Date: 2001-02-06 16:16:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>#pragma once
#include <iostream>
#include <type_traits>
#include "maths/maths.hpp"
constexpr const int BASE_MOD = 1000000007; /// caide keep
template<typename T>
inline T& add_mod(T& a, const T b, const T mod = BASE_MOD) {
if ((a += b) >= mod) {
a -= mod;
}
return a;
}
template<... |
<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>/*************************************************************************
*
* $RCSfile: htmlexp2.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: er $ $Date: 2001-08-06 12:11:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>// render_mp4.cpp
//
// Author: Sam Atkinson
// Date modified: 28-Oct-2016
//
// Renders an animated mp4 of a julia fractal transformation
#include <iostream>
#include <fstream>
#include <sstream>
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#include <iomanip>
#include <cstdlib>
#... |
<commit_before>#include "MainWindow.h"
QtMsgHandler pOldHandler = NULL;
MainWindow *pw = NULL;
void
myMessageOutput(QtMsgType type, const char *msg)
{
QString strMsg = msg;
int level = -1;
switch (type) {
case QtDebugMsg:
level = 3;
break;
case QtWarningMsg:
level = 2;
... |
<commit_before>// For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "WavLoader.h"
#include "LoggingFunctions.h"
#include "MemoryLeakCheck.h"
#include <iostream>
#include <sstream>
using namespace std;
static void ReadBytes(u8*... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011-2012, John Haddon. All rights reserved.
// Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modific... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: solvrdlg.cxx,v $
* $Revision: 1.... |
<commit_before>#include "WebClient.h"
#include "Curl.h"
#include "../RuntimeException.h"
#include "../StringAlgorithm.h"
namespace EasyCpp
{
namespace Net
{
AnyValue WebClient::getProperty(const std::string & name)
{
if (name == "headers") {
return this->getHeaders();
}
else if (name == "base_addres... |
<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main ( int argc, char *argv[] )
{
time_t rawtime;
struct tm * timeinfo;
char buffer [256];
if ( argc != 10 )
return 1;
FILE * pFile;
pFile = fopen( argv[1], "w" );
if (pFile!=NULL)
{
time ( &rawtime );
timeinfo = localtime ( &... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2016, Microsoft
// 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
// t... |
<commit_before>/* This file is part of VoltDB.
* Copyright (C) 2008-2014 VoltDB Inc.
*
* This program 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 (at your... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
* Version 0.9
*
* Copyright (c) 2013-2015 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificat... |
<commit_before><commit_msg>AIXOS05035967 enable scomdef parser to search additional addresses<commit_after><|endoftext|> |
<commit_before>
#include "Builder.h"
#include <iostream>
#include <QDebug>
#include <QCoreApplication>
#include <QCommandLineOption>
#include <glraw/MirrorEditor.h>
#include <glraw/ScaleEditor.h>
#include <glraw/FileWriter.h>
#include <glraw/Converter.h>
#include <glraw/CompressionConverter.h>
#include "CommandLin... |
<commit_before>/*
* Copyright © 2015 Connor Abbott
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify,... |
<commit_before>/**
* @author Carsten Könemann
*/
// This is a ROS project
#include <ros/ros.h>
// Local headers
#include <thesis/math3d.h>
#include <thesis/semantic_map.h>
// We are working with TF
#include <tf/transform_listener.h>
// We want to subscribe to messages of this types
#include <thesis/ObjectInstance... |
<commit_before>/*
* A library for controlling a Microchip rn2xx3 LoRa radio.
*
* @Author JP Meijers
* @Author Nicolas Schteinschraber
* @Date 18/12/2015
*
*/
#include "Arduino.h"
#include "rn2xx3.h"
extern "C" {
#include <string.h>
#include <stdlib.h>
}
/*
@param serial Needs to be an already opened Stream ... |
<commit_before>//============================================================================//
// File: qcan_network.hpp //
// Description: QCAN classes - CAN network //
// ... |
<commit_before>/// \file flv_analyser.cpp
/// Contains the code for the FLV Analysing tool.
#include <fcntl.h>
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <cstdio>
#include <string.h>
#include <fstream>
#include <unistd.h>
#include <signal.h>
#include <mist/flv_tag.h> //FLV supp... |
<commit_before>#include <iostream>
#include "Student.h"
#include "StudentDB.h"
int main(int argc, char* argv[]) {
// Welcoming information
std::cout << "*************************" << std::endl;
std::cout << "*欢迎使用考试报名系统! *" << std::endl;
std::cout << "*开发人员:侯剑锋1552719*" << std::endl;
std::cout << "***************... |
<commit_before>/**
* @file activation_functions_test.cpp
* @author Marcus Edel
*
* Tests for the various activation functions.
*/
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/activation_functions/logistic_function.hpp>
#include <mlpack/methods/ann/activation_functions/identity_function.hpp>
#include <m... |
<commit_before>/*
* Copyright 2006-2008 The FLWOR Foundation.
*
* 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... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2017 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) 2009 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/autocomplete/autocomplete.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
#include "chrome/brows... |
<commit_before>// @(#)root/base:$Id$
// Author: Rene Brun 26/12/94
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#ifdef HAVE_CCTAG
#pragma once
#include <openMVG/features/image_describer.hpp>
#include <openMVG/features/regions_factory.hpp>
#include <openMVG/types.hpp>
#include <cctag/view.hpp>
#include <cctag/ICCTag.hpp>
#include <cereal/cereal.hpp>
#include <iostream>
#include <numeric>
namespace openMVG {
na... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the f... |
<commit_before>// Copyright (c) 2013, Facebook, Inc. All rights reserved.
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree. An additional grant
// of patent rights can be found in the PATENTS file in the same directory.
//
// Copyrig... |
<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 "chrome/browser/tab_contents/blocked_infobar_delegate.h"
#include "base/metrics/histogram.h"
#include "chrome/browser/prefs/p... |
<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/browser/task_manager/task_manager.h"
#include "app/l10n_util.h"
#include "base/file_path.h"
#include "base/utf_string... |
<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 "chrome/test/ui/ui_test.h"
#include "base/file_path.h"
#include "base/memory/singleton.h"
#include "base/message_loop.h"
#inc... |
<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/browser/views/content_blocked_bubble_contents.h"
#if defined(OS_LINUX)
#include <gdk/gdk.h>
#endif
#include "app/l10... |
<commit_before>// bsls_atomicoperations_x64_all_gcc.t.cpp -*-C++-*-
#include <bsls_atomicoperations_x64_all_gcc.h>
#include <cstdlib>
#include <iostream>
#if defined(BSLS_PLATFORM_CPU_X86_64) \
&& (defined(BSLS_PLATFORM_CMP_GNU) || defined(BSLS_PLATFORM_CMP_CLANG))
// For thread suppo... |
<commit_before>/*************************************************************************/
/* math_funcs.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2013-2017 Igor Mironchik
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
restrict... |
<commit_before>/*!
\file file_lock.cpp
\brief File-lock synchronization primitive implementation
\author Ivan Shynkarenka
\date 01.09.2016
\copyright MIT License
*/
#include "threads/file_lock.h"
#include "errors/fatal.h"
#include "threads/thread.h"
#if (defined(unix) || defined(__unix) || define... |
<commit_before>//===- FileUpdate.cpp - Conditionally update a file -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
Authors:
Michael Berg <michael.berg@zalf.de>
Maintainers:
Currently maintained by the authors.
... |
<commit_before>// This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "maploader.hpp"
MapLoader::MapLoader() {
_width = _height = 0;
_imageData = nullptr;
}
MapLoader::~MapLoader() {}
std::vector<Uint8> MapLoade... |
<commit_before>#include <iostream>
#include <string>
#include <stdlib.h> //exit
#include <stdio.h> //perror
#include <errno.h> //perror
#include <sys/types.h> //wait
#include <sys/wait.h> //wait
#include <unistd.h> //execvp, fork, gethost, getlogin
#include <string.h> //strtok
#include <vector>
#include <fcntl.h>
#incl... |
<commit_before>#include "HalideRuntime.h"
extern "C" {
typedef long dispatch_once_t;
extern void dispatch_once_f(dispatch_once_t *, void *context, void (*initializer)(void *));
typedef struct dispatch_queue_s *dispatch_queue_t;
typedef long dispatch_queue_priority_t;
extern dispatch_queue_t dispatch_get_global_queu... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014
Vladimír Vondruš <mosra@centrum.cz>
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 th... |
<commit_before>#include <boost/tokenizer.hpp>
#include <iostream>
#include <unistd.h>
#include <string.h>
#include <cstdlib>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string>
#include <sstream>
#include <vector>
//using namespace boost;
using namespace std;
int main(... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <string>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <errno.h>
#include <vector>
#include <stdlib.h>
using namespace std;
void parse(char* line, vector<string> & input) {
char * pch;
pch = strto... |
<commit_before>#pragma once
#include "../utils.hpp"
struct horizontal_diffusion_reference {
horizontal_diffusion_reference(repository &repo) : m_repo(repo) {}
void generate_reference() {
m_repo.make_field("u_diff_ref");
m_repo.make_field("lap_ref");
m_repo.make_field("flx_ref");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.