text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 2012 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/ui/webui/ntp/ntp_login_handler.h"
#include <string>
#include "base/bind.h"
#include "base/bind_helpers.h"
#i... |
<commit_before>#include <mystdlib.h>
#include "incopengl.hpp"
#include <myadt.hpp>
#include <meshing.hpp>
#include <csg.hpp>
#include <stlgeom.hpp>
#include <visual.hpp>
#include "vscsg.hpp"
namespace netgen
{
/* *********************** Draw Geometry **************** */
extern shared_ptr<Mesh> mesh;
exter... |
<commit_before>/*
* Copyright (C) 2015 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... |
<commit_before>#include <pluginlib/class_list_macros.h>
#include <kdl_parser/kdl_parser.hpp>
#include <math.h>
#include <lwr_controllers/computed_torque_controller.h>
namespace lwr_controllers
{
ComputedTorqueController::ComputedTorqueController() {}
ComputedTorqueController::~ComputedTorqueController() {}
bool ... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (people-users@projects.maemo.org)
**
** This file is part of contactsd.
**
** If you have questions re... |
<commit_before>// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/blob_store.h"
namespace rocksdb {
using namespace std;
// BlobChunk
bo... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2018 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>//
// Level.cpp
// ShooterInhertiance
//
// Created by Marco Gillies on 04/03/2016.
//
//
#include "Level.hpp"
#include "ofMain.h"
#include "Player.hpp"
#include "Enemy.hpp"
#include "HealthPickup.hpp"
#include "WeaponPickup.hpp"
#include "Weapon.hpp"
#include "GameOver.hpp"
// just calls get Curr... |
<commit_before>// Copyright (c) 2011-present, 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.
//
#i... |
<commit_before>/*
* Copyright 2015 Cloudius Systems
*/
#pragma once
#include <boost/circular_buffer.hpp>
namespace utils {
template<typename T>
class histogram {
public:
int64_t count;
T min;
T max;
T sum;
double mean;
double variance;
boost::circular_buffer<T> sample;
histogram(si... |
<commit_before>#ifndef USTR_MEM_POOL_TCC_
#define USTR_MEM_POOL_TCC_
namespace ustr
{
template<class T, size_t block_size>
inline typename MemoryPool<T, block_size>::size_type
MemoryPool<T, block_size>::pad_pointer(data_pointer p, size_type align)
{
uintptr_t result = reinterpret_cast<uintptr_t>(p);
return ((alig... |
<commit_before>//
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <sys/stat.h>
#include <math.h>
#include <algorithm>
#include <string.h>
#include <stdint.h>
#include <sstream>
#include <iomanip>
#include <gdal/gdal_priv.h>
#include <gdal/cpl_conv.h>
#include <gdal/ogr_spatialref.... |
<commit_before>/* Copyright (c) 2010-present Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, c... |
<commit_before>/* Copyright (c) 2010 - 2021 Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, co... |
<commit_before>// Time: O(m * n)
// Space: O(m + n)
class Solution {
public:
string multiply(string num1, string num2) {
return BigInt(num1) * BigInt(num2);
}
class BigInt {
public:
BigInt(const string& s) {
transform(s.rbegin(), s.rend(), back_inserter(n_),
... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Co... |
<commit_before>//
// RubiksCube.cpp
// hog2 glut
//
// Created by Nathan Sturtevant on 4/6/13.
// Copyright (c) 2013 University of Denver. All rights reserved.
//
#include "RubiksCube.h"
#include <cassert>
#include <cstdio>
#include <algorithm>
void RubiksCube::GetSuccessors(const RubiksState &nodeID, std::vector... |
<commit_before>//
// Macintosh.cpp
// Clock Signal
//
// Created by Thomas Harte on 03/05/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#include "Macintosh.hpp"
#include "Video.hpp"
#include "../../CRTMachine.hpp"
#include "../../../Processors/68000/68000.hpp"
#include "../../../Components/652... |
<commit_before>#include "AudioManager.h"
#include <SDL.h>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
#include <views/SystemView.h>
#include "Log.h"
#include "RecalboxConf.h"
#include "Settings.h"
#include "ThemeData.h"
std::vector<std::shared_ptr<Sound>> AudioManager::sSoundVector;
std::vector<std::sh... |
<commit_before>#ifndef GNR_FORWARDER_HPP
# define GNR_FORWARDER_HPP
# pragma once
#include <cassert>
// std::size_t
#include <cstddef>
#include <functional>
#include <type_traits>
#include <utility>
namespace gnr
{
namespace detail::forwarder
{
enum : std::size_t { default_size = 4 * sizeof(void*) };
template ... |
<commit_before>#ifndef GNR_FORWARDER_HPP
# define GNR_FORWARDER_HPP
# pragma once
#include <cassert>
// std::size_t
#include <cstddef>
#include <functional>
#include <type_traits>
#include <utility>
namespace gnr
{
namespace detail::forwarder
{
enum : std::size_t { default_size = 4 * sizeof(void*) };
template ... |
<commit_before>AliXiStar *AddTaskXiStar(bool MCcase=kFALSE, bool AODcase=kFALSE, int CutList=0) {
//===========================================================================
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
::Error("AddTaskXiStar", "No analysis manager to con... |
<commit_before>#include "plant_generator.h"
#include <algorithm>
#include <chrono>
#include <functional>
#include <iostream>
#include <numeric>
#include <random>
#include <type_traits>
#include <asdf_multiplat/main/asdf_defs.h>
#include "from_json.h"
using namespace std;
namespace plantgen
{
//std::vector<std:... |
<commit_before>#include "plant_generator.h"
#include <algorithm>
#include <chrono>
#include <functional>
#include <iostream>
#include <numeric>
#include <random>
#include <type_traits>
#include <asdf_multiplat/main/asdf_defs.h>
#include "from_json.h"
using namespace std;
namespace plantgen
{
//std::vector<std:... |
<commit_before>#include "model.h"
#include "modelwidget.h"
#include "figurepainter.h"
#include "recognition.h"
#include "layouting.h"
#include <QPainter>
#include <QMouseEvent>
#include <QInputDialog>
#include <QDebug>
#include <QTimer>
#include <iostream>
Ui::ModelWidget::ModelWidget(QWidget *parent) :
QWidget(pa... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkInteractorStyleSwitch.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserve... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkPainterPolyDataMapper.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for detai... |
<commit_before>#include <stdio.h>
#include <stdint.h>
#include <spice/controller_prot.h>
#ifdef WIN32
#include <windows.h>
#define PIPE_NAME TEXT("\\\\.\\pipe\\SpiceController-%lu")
static HANDLE pipe = INVALID_HANDLE_VALUE;
#else
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <stdlib... |
<commit_before>/*
* Copyright 2018 Sergey Khabarov, sergeykhbr@gmail.com
*
* 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) 2003 MySQL AB
This program 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
(at your option) any later version.
This program is d... |
<commit_before>#include "kwm.h"
extern window_info *FocusedWindow;
int KwmSockFD;
bool KwmDaemonIsRunning;
int KwmDaemonPort = 3020;
std::string KwmReadFromSocket(int ClientSockFD)
{
char Cur;
std::string Message;
while(recv(ClientSockFD, &Cur, 1, 0))
{
if(Cur == '\n')
break;
... |
<commit_before>/*
* Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>//
// scalarReplace
//
// This pass implements scalar replacement of aggregates.
//
#include "astutil.h"
#include "expr.h"
#include "optimizations.h"
#include "passes.h"
#include "runtime.h"
#include "stmt.h"
#include "stringutil.h"
#include "symbol.h"
#include "symscope.h"
static bool
unifyClassInstan... |
<commit_before>/*************************************************************************
*
* $RCSfile: cloneable.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2004-05-07 16:08:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "CheatEngineParser.h"
#include <iomanip>
#include <sstream>
#include <string>
#include "../DolphinProcess/DolphinAccessor.h"
#include "../GUI/GUICommon.h"
CheatEngineParser::CheatEngineParser()
{
m_xmlReader = new QXmlStreamReader();
}
CheatEngineParser::~CheatEngineParser()
{
delete m_x... |
<commit_before>/*
* Copyright (C) 2011 Apple Inc. All rights reserved.
*
* 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
* version 2 of the License, or (at your option) any ... |
<commit_before>/**************************************************************************/
/**
** C H I L D
**
** CHANNEL-HILLSLOPE INTEGRATED LANDSCAPE DEVELOPMENT MODEL
**
** OXFORD VERSION 2003
**
** Designed and created by Gregory E. Tucker, Stephen T. Lanca... |
<commit_before>#include "Toast.h"
#include "../utils/compiler.h"
USING_NS_CC;
Toast *Toast::makeText(cocos2d::Scene *scene, const std::string &text, Duration duration) {
Toast *ret = new (std::nothrow) Toast();
if (ret != nullptr && ret->initWithText(scene, text, duration)) {
ret->autorelease();
... |
<commit_before>#include "../yahttp/yahttp.hpp"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <ext/stdio_filebuf... |
<commit_before>#include "MultiTuProcessor.hpp"
#include "CgStr.hpp"
#include "SimpleTemplate.hpp"
#include "basicHl.hpp"
#include "xref.hpp"
#include <boost/filesystem.hpp>
#include <boost/variant/variant.hpp>
#include <algorithm>
#include <climits>
#include <iostream>
using namespace synth;
static fs::path normal... |
<commit_before>//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
#include <IniFiles.hpp>
#include "Unit2.h"
#define HISTORY_SIZE 5
//---------------------------------------------------------------------------
#pragma package... |
<commit_before>#include "boomerang.h"
#include "gc.h"
#ifdef WIN32
#include <direct.h> // For Windows mkdir
#endif
#include <signal.h>
#ifdef SPARC_DEBUG
void segv_handler(int a, siginfo_t *b, void *c)
{
fprintf(stderr, "Boomerang has encounted a fatal error.\n");
ucontext_t *uc = (ucontext_t *) c;
#if 0
fprintf... |
<commit_before>/// The MIT License (MIT)
/// Copyright (c) 2016 Peter Goldsborough
///
/// 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 ... |
<commit_before>/*
Copyright (C) 2010 Jochen Gerhard <gerhard@compeng.uni-frankfurt.de>
Copyright (C) 2010 Matthias Kretz <kretz@kde.org>
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is hereby
granted, provided that the above cop... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>#include "HedgeLib/Offsets.h"
#include "HedgeLib/Endian.h"
void hl_FixOffset32(uint32_t* off, const void* data, bool isBigEndian)
{
// Null pointers should remain null
if (*off == 0)
{
#ifdef x64
*off = hl_x64AddAbsPtr32(0);
#endif
return;
}
// Endian swap offset
... |
<commit_before>#include "aten.h"
#include "atenscene.h"
#include <cmdline.h>
struct Options {
std::string input;
std::string output;
};
bool parseOption(
int argc, char* argv[],
cmdline::parser& cmd,
Options& opt)
{
{
cmd.add<std::string>("input", 'i', "input filename", true);
cmd.add<std::string>("output"... |
<commit_before>// Copyright (c) 2017 Franka Emika GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
#include <gmock/gmock.h>
#include <franka/exception.h>
#include <franka/gripper.h>
#include "helpers.h"
#include "mock_server.h"
using franka::CommandException;
using franka::Gripper;
... |
<commit_before>/*
Copyright (C) 2003 Justin Karneges
Copyright (C) 2005 Brad Hards
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights... |
<commit_before>//
// File: DKBvh.cpp
// Author: Hongtae Kim (tiff2766@gmail.com)
//
// Copyright (c) 2004-2015 Hongtae Kim. All rights reserved.
//
#include <algorithm>
#include <cstdlib>
#include "DKMath.h"
#include "DKBvh.h"
#define MAX_NODE_COUNT (0x7fffffff >> 1)
using namespace DKFoundation;
using namespace ... |
<commit_before>/*
* This file is part of SmoothThermistor.
*
* Copyright (c) 2016 Gianni Van Hoecke <gianni.vh@gmail.com>
* 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
* rest... |
<commit_before>#include <algorithm>
#include <cassert>
#include <string>
#include "TimeWarpEventSet.hpp"
#include "utility/warnings.hpp"
namespace warped {
void TimeWarpEventSet::initialize (unsigned int num_of_objects,
unsigned int num_of_schedulers,
... |
<commit_before>#include "opencv2/highgui/highgui.hpp"
#include "opencv2/photo/photo.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "image_process.hpp"
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <cmath>
#include <cstdint>
usin... |
<commit_before>//Copyright (c) 2020 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "ExtruderTrain.h"
#include "sliceDataStorage.h"
#include "WallsComputation.h"
#include "settings/types/Ratio.h"
// libArachne
#include "WallToolPaths.h"
namespace cura {
WallsComputation::Wa... |
<commit_before>// Copyright 2011 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
<commit_before>/*
* (C) Copyright 2014 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>// Copyright (c) 2014-2016 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "masternode.h"
#include "masternode-sync.h"
#include "masternodeman.h"
#in... |
<commit_before>// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "activemasternode.h"
#include "masternode.h"
#in... |
<commit_before>#define BOOST_TEST_MODULE test_mat3
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include "mat3.h"
#include "vec3.h"
#include <cstdio>
void print_matrix3(const kmMat3* mat)
{
const int max = 3;
printf("\n\n");
for(int i = 0; i < max; i++)
{
... |
<commit_before>#include <fstream>
#include <vector>
#include <string>
#include <iostream>
#include <stdexcept>
#include "glsupport.h"
using namespace std;
void checkGlErrors() {
const GLenum errCode = glGetError();
if (errCode != GL_NO_ERROR) {
string error("GL Error: ");
error += reinterpret_cast<const... |
<commit_before>/*
* Copyright 2015 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashMatrix.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>#pragma once
#include <string>
#include <cstddef>
#include <cstring>
#include <any.hpp>
#include <reflection_info.hpp>
namespace shadow
{
template <class InfoType, template <class> class... Policies>
class info_type_aggregate
: public Policies<info_type_aggregate<InfoType, Policies...>>...
{
... |
<commit_before>/**
* @file interface.hpp
* @brief interface headers
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 8. 7
* @details COSSB interface headers
*/
#ifndef _COSSB_INTERFACE_HPP_
#define _COSSB_INTERFACE_HPP_
#if defined(__unix__) || defined(__gnu_linux__) || defined(linux) || defin... |
<commit_before>#ifndef OCCA_TOOLS_HEADER
#define OCCA_TOOLS_HEADER
#include <iostream>
#include <stdlib.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
#if OCCA_OS == LINUX_OS
# include <sys/time.h>
#elif OCCA_OS == OSX_OS
# include <CoreServices/CoreServices.h>
# include <mach/mach_time.h>
#els... |
<commit_before>// Copyright (c) 2009 Chris Pickel <sfiera@gmail.com>
//
// This file is part of libsfz, a free software project. You can redistribute
// it and/or modify it under the terms of the MIT License.
#ifndef SFZ_BYTES_HPP_
#define SFZ_BYTES_HPP_
#include <stdint.h>
#include <stdlib.h>
#include <iterator>
#i... |
<commit_before>#include "vecscontroller.h"
#include <QObjectList>
VecsController::VecsController(QObject *parent) :
QObject(parent),
m_discovering(false),
m_agent(new QBluetoothDeviceDiscoveryAgent(this))
{
connect(m_agent, SIGNAL(deviceDiscovered(QBluetoothDeviceInfo)),
this, SLOT(addDevic... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include <fstream>
#include <iostream>
#include <string>
#include <random>
#include <unordered_map>
#include <vector>
#include <stdexcept>
struct FileNotFound : public std::runtime_error
{
explicit FileNotFound(const char* message)
: std::runtime_error{message} { };
explicit FileNotFound(const s... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: LegendEntryProvider.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2007-05-22 19:18:58 $
*
* The Contents of this fil... |
<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/chromeos/login/update_screen.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/threadin... |
<commit_before>/************************************\
* Copyright (C) 2007 by Sarten-X *
\************************************/
#include "config.h" // This is generated in build/config.h from <src>/config.h.in by cmake
#include "disconet.h"
#include "drawing.h"
#include <iostream>
#include <sstream>
#include <s... |
<commit_before>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main()
#include "catch.hpp"
#include <memory>
#include <sstream>
#include "Event.hpp"
#include "TimeWarpEventDispatcher.hpp"
#include "TimeWarpEventSet.hpp"
#include "mocks.hpp"
TEST_CASE("Test the event set operations") {
unsigned int n... |
<commit_before>#include <Halide.h>
using namespace Halide;
#include "../png.h"
#define PI 3.14159
Func gradientMagnitude(Func f, Expr width, Expr height) {
Var x, y, c, a, b;
Expr isTop = y <= 10;
Expr isBottom = y >= height - 10;
Expr isLeft = x <= 10;
Expr isRight = x >= width - 10;
Func dI2("dI2");... |
<commit_before>#ifndef GNR_DISPATCH_HPP
# define GNR_DISPATCH_HPP
# pragma once
#include <type_traits>
#include <utility>
namespace gnr
{
namespace detail
{
template <typename A, typename ...B>
struct front
{
using type = A;
};
template <typename ...A>
using front_t = typename front<A...>::type;
}
constexpr d... |
<commit_before>// Copyright 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 <iostream>
#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core... |
<commit_before>#include "World.h"
#include "SensoryInput.h"
#include <iostream>
#include <algorithm>
#include <list>
// Must be defined in the header if they are used there.
//const int World::width = 30;
//const int World::height = 20;
//const int World::initialPopulationSize = 30;
World::World(){
buildCage(20... |
<commit_before>// Copyright 2015 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 "components/metrics/drive_metrics_provider.h"
#include <windows.h>
#include <ntddscsi.h>
#include <winioctl.h>
#include <vector>
... |
<commit_before>#include "testdirectoryiterator.h"
#include "vislib/error.h"
#include "vislib/File.h"
#include "vislib/Path.h"
#include "vislib/Exception.h"
#include "vislib/String.h"
#include "vislib/StringConverter.h"
#include "vislib/DirectoryIterator.h"
#include "vislib/Array.h"
#include "vislib/Stack.h"
... |
<commit_before><?hh //partial
namespace hhpack\publisher\example;
require_once __DIR__ . '/../vendor/autoload.php';
use hhpack\publisher\MessagePublicher;
use hhpack\publisher\example\DomainMessage;
use hhpack\publisher\example\DomainMessageSubscriber;
$publisher = new MessagePublisher();
$publisher->registerSubscr... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TPrivilegesResultSet.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 06:39:42 $
*
* The Contents of this fi... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2011 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documenta... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2011 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documenta... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* Copyright 2000, 2010 Oracle and/or its affilia... |
<commit_before>//===- RegionInfo.cpp - SESE region detection analysis --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Copyright 2014 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 "content/renderer/scheduler/renderer_scheduler.h"
#include "content/renderer/scheduler/null_renderer_scheduler.h"
namespace cont... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2017 Vasily Khoruzhick
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2 of the License, or... |
<commit_before>#ifndef TYPES_HPP_1AMW8QS7
#define TYPES_HPP_1AMW8QS7
#include "../domains/types.hpp"
/**************
* Triangular *
**************/
typedef viennagrid::result_of::element<TriangularCartesian2D_Domain_t, viennagrid::vertex_tag>::type TriangularCartesian2D_Vertex_t;
typedef viennagrid::resul... |
<commit_before>--- src/tekcoinrpc.cpp.orig 2016-03-24 15:19:15 UTC
+++ src/tekcoinrpc.cpp
@@ -654,8 +654,8 @@ void ThreadRPCServer(void* parg)
}
// Forward declaration required for RPCListen
-template <typename Protocol, typename SocketAcceptorService>
-static void RPCAcceptHandler(boost::shared_ptr< basic_soc... |
<commit_before>/*
* GroupBulkRead.cpp
*
* Created on: 2016. 1. 28.
* Author: zerom, leon
*/
#if defined(_WIN32) || defined(_WIN64)
#define WINDLLEXPORT
#endif
#include <stdio.h>
#include <algorithm>
#include "dynamixel_sdk/GroupBulkRead.h"
using namespace ROBOTIS;
GroupBulkRead::GroupBulkRead(PortHandler ... |
<commit_before>#include "TTModular.h"
#include "TTScore.h"
#include <iostream>
#include <string>
// A class for our application
class DemoApp
{
public:
DemoApp(){};
~DemoApp(){};
// This application is divided into four main functions
void SetupModular();
void SetupScore();
void Set... |
<commit_before>// Author: Enrico Guiraud CERN 08/2020
/*************************************************************************
* Copyright (C) 1995-2020, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/////////////////////////////////////////////////////////////////////////
//
// 'Bayesian Calculator' RooStats tutorial macro #701
// author: Gregory Schott
// date Sep 2009
//
// This tutorial shows an example of using the BayesianCalculator class
//
////////////////////////////////////////////////////... |
<commit_before>#include <iostream>
#include <node.h>
#include <v8.h>
#include "Config.hpp"
#include "Converter.hpp"
using namespace v8;
using namespace opencc;
string ToUtf8String(const Local<String>& str) {
v8::String::Utf8Value utf8(str);
return std::string(*utf8);
}
class OpenccBinding : public node::ObjectW... |
<commit_before>/*
* Copyright (C) 2014 Cloudius Systems, Ltd.
*/
#ifndef CORE_FUTURE_UTIL_HH_
#define CORE_FUTURE_UTIL_HH_
#include "future.hh"
#include "shared_ptr.hh"
#include <tuple>
// parallel_for_each - run tasks in parallel
//
// Given a range [@begin, @end) of objects, run func(*i) for each i in
// the ran... |
<commit_before>#include "ioloop.h"
#include "socket.h"
#include "gtest/gtest.h"
using namespace share_me_utils;
TEST(FooTest, HandleNoneZeroInput) {
EXPECT_EQ(2, 2);
EXPECT_EQ(6, 3 + 3);
}
#define SOCKET_CONTINER_CAPACITY 10
class SocketUnittest : public testing::Test {
protected:
virtual void SetUp() {
m... |
<commit_before>#include <smooth/core/json/Value.h>
#include <smooth/core/util/make_unique.h>
#include <smooth/core/logging/log.h>
using namespace smooth::core::util;
using namespace smooth::core::logging;
namespace smooth
{
namespace core
{
namespace json
{
Value::Value(cJSON* src)... |
<commit_before>#include "core/stringtable.h"
#include "core/stringutils.h"
#include <algorithm>
namespace euphoria::core
{
Table<std::string>
TableFromCsv(const std::string& data, const CsvParserOptions& options)
{
const auto AddRowToTable = [](Table<std::string>* table,
... |
<commit_before>/** \file add_synonyms.cc
* \brief Generic version for augmenting title data with synonyms found
in the authority data
* \author Johannes Riedl
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is free software: you can redistribute it and/or m... |
<commit_before>/** \file Clean up the tags database
* \brief Remove unreferenced tags and tag references from the database
* \author Johannes Riedl
*/
/*
Copyright (C) 2018, Library of the University of Tübingen
This program is free software: you can redistribute it and/or modify
it under the t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.