text stringlengths 54 60.6k |
|---|
<commit_before>62b5b10c-2e4f-11e5-8eee-28cfe91dbc4b<commit_msg>62bc27b5-2e4f-11e5-856d-28cfe91dbc4b<commit_after>62bc27b5-2e4f-11e5-856d-28cfe91dbc4b<|endoftext|> |
<commit_before>#include <map>
#include <iostream>
#include <sstream>
#include <fstream>
#include <readline/readline.h>
#include <readline/history.h>
#include "sexpr.hpp"
#include "ast.hpp"
#include "eval.hpp"
#include "parse.hpp"
#include "type.hpp"
#include "package.hpp"
#include "argparse.hpp"
struct history {
... |
<commit_before>5f89491c-2d16-11e5-af21-0401358ea401<commit_msg>5f89491d-2d16-11e5-af21-0401358ea401<commit_after>5f89491d-2d16-11e5-af21-0401358ea401<|endoftext|> |
<commit_before>e1f325cf-2e4e-11e5-af96-28cfe91dbc4b<commit_msg>e1fa12b0-2e4e-11e5-a5fe-28cfe91dbc4b<commit_after>e1fa12b0-2e4e-11e5-a5fe-28cfe91dbc4b<|endoftext|> |
<commit_before>/*
This file is part of Magnum.
Copyright © 2016 Sam Spilsbury <s@polysquare.org>
Copyright © 2010, 2011, 2012, 2013, 2014, 2015
Vladimír Vondruš <mosra@centrum.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesse... |
<commit_before>cd306111-2d3e-11e5-a71a-c82a142b6f9b<commit_msg>cd8f8385-2d3e-11e5-a84f-c82a142b6f9b<commit_after>cd8f8385-2d3e-11e5-a84f-c82a142b6f9b<|endoftext|> |
<commit_before>dc3db94f-2e4e-11e5-a960-28cfe91dbc4b<commit_msg>dc44ba66-2e4e-11e5-9630-28cfe91dbc4b<commit_after>dc44ba66-2e4e-11e5-9630-28cfe91dbc4b<|endoftext|> |
<commit_before>
# include "List.h"
# include "Debug.h"
# include "Zalloc.h"
# include "ClassFile.h"
# include "MemberInfo.h"
# include "ConstantInfo.h"
# include "AttributeInfo.h"
void encodeConstantPool(ClassFile *classFile, ClassBuilder *builder) {
unsigned int length;
buildNextShort(builder, length... |
<commit_before>// Copyright (c) 2014 Steinwurf ApS
// All Rights Reserved
//
// Distributed under the "BSD License". See the accompanying LICENSE.rst file.
#include <gtest/gtest.h>
#include <stub/return_handler.hpp>
TEST(return_handler, void)
{
// Just checking that it can be instantiated
stub::return_handler... |
<commit_before>// bitmessage cracker, build with g++ or MSVS to a shared library, use included python code for usage under bitmessage
#ifdef _WIN32
#include "Winsock.h"
#include "Windows.h"
#define uint64_t unsigned __int64
#else
#include <arpa/inet.h>
#include <pthread.h>
#include <stdint.h>
#endif
#include <string.h>... |
<commit_before>/***************************************************************************
wpcontact.cpp - description
-------------------
begin : Fri Apr 12 2002
copyright : (C) 2002 by Gav Wood
email : gav@i... |
<commit_before>de9cd911-313a-11e5-94af-3c15c2e10482<commit_msg>dea32951-313a-11e5-91b6-3c15c2e10482<commit_after>dea32951-313a-11e5-91b6-3c15c2e10482<|endoftext|> |
<commit_before>
/**
* @file CodeSmoother.hpp
* This class smoothes a given code observable using the corresponding phase observable.
*/
#ifndef CODE_SMOOTHER_GPSTK
#define CODE_SMOOTHER_GPSTK
//============================================================================
//
// This file is part of GPSTk, the GPS T... |
<commit_before>/***************************************************************************
* Copyright (c) 2016 Stefan Tröger <stefantroeger@gmx.net> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>c2489545-4b02-11e5-b2dc-28cfe9171a43<commit_msg>No longer crashes if X<commit_after>c2556a11-4b02-11e5-bd11-28cfe9171a43<|endoftext|> |
<commit_before>// Copyright (C) 2012 Georgia Institute of Technology
//
// 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 u... |
<commit_before>/******************************************************************************
The MIT License(MIT)
Embedded Template Library.
https://github.com/ETLCPP/etl
https://www.etlcpp.com
Copyright(c) 2020 jwellbelove
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
<commit_before>769be054-5216-11e5-ada8-6c40088e03e4<commit_msg>76a2755c-5216-11e5-98df-6c40088e03e4<commit_after>76a2755c-5216-11e5-98df-6c40088e03e4<|endoftext|> |
<commit_before>#include "CopyDevice.h"
#include "CopyOpenFile.h"
#include <sys/types.h>
#include <fcntl.h>
#include "messmer/fspp/fuse/FuseErrnoException.h"
#include <messmer/cpp-utils/assert/assert.h>
namespace bf = boost::filesystem;
//TODO Get rid of this in favor of a exception hierarchy
using fspp::fuse::CHECK_... |
<commit_before>5626d223-2e4f-11e5-9aeb-28cfe91dbc4b<commit_msg>562dc1eb-2e4f-11e5-b764-28cfe91dbc4b<commit_after>562dc1eb-2e4f-11e5-b764-28cfe91dbc4b<|endoftext|> |
<commit_before>/*
Copyright (c) 2008, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>#include <AlpinoCorpus/CorpusReader.hh>
#include <AlpinoCorpus/DbCorpusReader.hh>
#include <AlpinoCorpus/DirectoryCorpusReader.hh>
#include <AlpinoCorpus/Error.hh>
#include <AlpinoCorpus/IndexedCorpusReader.hh>
#include <QString>
#include <typeinfo>
#include <libxml/parser.h>
#include <QDebug>
namespa... |
<commit_before>68fbccf4-2fa5-11e5-97aa-00012e3d3f12<commit_msg>68fe3df4-2fa5-11e5-be2c-00012e3d3f12<commit_after>68fe3df4-2fa5-11e5-be2c-00012e3d3f12<|endoftext|> |
<commit_before>#include <iostream>
#include <vector>
#include <stack>
#include <dirent.h>
#include <string.h>
#include <sys/stat.h>
using namespace std;
/*
* The function returns directories found in directory.
* First parameter is path where you want to find directories.
* You can also use double slashes like thi... |
<commit_before>a5c3367d-327f-11e5-974d-9cf387a8033e<commit_msg>a5c97317-327f-11e5-a0bc-9cf387a8033e<commit_after>a5c97317-327f-11e5-a0bc-9cf387a8033e<|endoftext|> |
<commit_before>dd5c0621-313a-11e5-8d4b-3c15c2e10482<commit_msg>dd61cc19-313a-11e5-ba5c-3c15c2e10482<commit_after>dd61cc19-313a-11e5-ba5c-3c15c2e10482<|endoftext|> |
<commit_before>d4439976-35ca-11e5-ad99-6c40088e03e4<commit_msg>d44c8f22-35ca-11e5-991d-6c40088e03e4<commit_after>d44c8f22-35ca-11e5-991d-6c40088e03e4<|endoftext|> |
<commit_before>/*
Copyright (C) 2014 Marcus Soll
All rights reserved.
You may use this file under the terms of BSD license as follows:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of sourc... |
<commit_before>#include <iostream>
#include <memory>
#include <fstream>
#include "Game/Game.h"
#include "Game/Board.h"
#include "Moves/Move.h"
#include "Players/Genetic_AI.h"
#include "Players/Human_Player.h"
#include "Players/Random_AI.h"
#include "Players/Outside_Player.h"
#include "Genes/Gene_Pool.h"
#include "... |
<commit_before>f7e39721-ad5b-11e7-aaec-ac87a332f658<commit_msg>Finished?<commit_after>f84f674a-ad5b-11e7-a4bc-ac87a332f658<|endoftext|> |
<commit_before>a672b161-2e4f-11e5-b2c1-28cfe91dbc4b<commit_msg>a679a9d4-2e4f-11e5-ab3e-28cfe91dbc4b<commit_after>a679a9d4-2e4f-11e5-ab3e-28cfe91dbc4b<|endoftext|> |
<commit_before>2f31b240-5216-11e5-9b21-6c40088e03e4<commit_msg>2f38c134-5216-11e5-b833-6c40088e03e4<commit_after>2f38c134-5216-11e5-b833-6c40088e03e4<|endoftext|> |
<commit_before>0569ed88-585b-11e5-bf03-6c40088e03e4<commit_msg>05709e7e-585b-11e5-a478-6c40088e03e4<commit_after>05709e7e-585b-11e5-a478-6c40088e03e4<|endoftext|> |
<commit_before>dda72123-ad58-11e7-a283-ac87a332f658<commit_msg>bug fix<commit_after>de1127f3-ad58-11e7-b156-ac87a332f658<|endoftext|> |
<commit_before>3b795014-2e4f-11e5-bb43-28cfe91dbc4b<commit_msg>3b8007ba-2e4f-11e5-b6c5-28cfe91dbc4b<commit_after>3b8007ba-2e4f-11e5-b6c5-28cfe91dbc4b<|endoftext|> |
<commit_before>// Copyright (c) 2016 William W. Fisher (at gmail dot com)
// This file is distributed under the MIT License.
#include <sys/syscall.h>
#include <unistd.h>
#include <iostream>
#include "syscallfilter.h"
enum ReadPerm {
kAllowRead,
kDenyRead,
kKillRead,
kDontRead
};
int main(int argc, char **arg... |
<commit_before>6497a9d1-2e4f-11e5-a584-28cfe91dbc4b<commit_msg>649eb999-2e4f-11e5-a75a-28cfe91dbc4b<commit_after>649eb999-2e4f-11e5-a75a-28cfe91dbc4b<|endoftext|> |
<commit_before>#include <stdio.h>
#include <openssl/evp.h>
#include <string.h>
#define BYTES 3
bool same(unsigned char md_value1[EVP_MAX_MD_SIZE], unsigned char md_value2[EVP_MAX_MD_SIZE]) {
for (int i = 0; i < BYTES; i++)
if (md_value1[i] != md_value2[i])
return false;
return true;
}
int... |
<commit_before>86aaa045-ad5b-11e7-a067-ac87a332f658<commit_msg>Backup, rebase this later<commit_after>871a8828-ad5b-11e7-bc6c-ac87a332f658<|endoftext|> |
<commit_before>a0a28b8f-2e4f-11e5-acd3-28cfe91dbc4b<commit_msg>a0acbeb3-2e4f-11e5-b107-28cfe91dbc4b<commit_after>a0acbeb3-2e4f-11e5-b107-28cfe91dbc4b<|endoftext|> |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_OPERATORS_ELLIPTIC_HH
#define DUNE_GDT_OPERATORS_ELLIPTIC_HH
#include ... |
<commit_before>//Copyright (c) 2021 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include <string>
#include <gtest/gtest.h>
#include <clipper.hpp>
#include "../src/infill.h"
#include "../src/utils/math.h"
#include "../src/PathOrderMonotonic.h"
#include "../src/utils/polygon.h"
#in... |
<commit_before>/*
* Copyright © 2012-2013 Red Hat, 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, copy, mo... |
<commit_before>#include "gtest/gtest.h"
#include "containers/Vector.h"
TEST(vector, vectorTest) {
cuhksz::Vector<int> testVector;
testVector.push(1);
testVector.push(2);
testVector.push(3);
EXPECT_EQ(testVector.size(), 3);
testVector.erase(0);
EXPECT_EQ(testVector[0], 2);
testVector.i... |
<commit_before>/*
* Copyright (C) 2010-2014 Jeremy Lainé
* Contact: https://github.com/jlaine/qdjango
*
* This file is part of the QDjango Library.
*
* 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 So... |
<commit_before><commit_msg>Add missing breaks<commit_after><|endoftext|> |
<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_layout_test.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/string_number_con... |
<commit_before>/*
Copyright 2002-2014 CEA LIST
This file is part of LIMA.
LIMA 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 option) ... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015-2017 Baldur Karlsson
* Copyright (c) 2014 Crytek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documen... |
<commit_before>//
// Created by Per Lange Laursen on 12/04/16.
//
#include <iostream>
#include "Clause.h"
Clause::Clause() {
}
Clause::~Clause() {
//delete cameFrom;
}
void Clause::updateTotalDistance() {
totalDistance = distanceFromStart + heuristic_distance;
}
void Clause::addLiteralToClause(Literal &liter... |
<commit_before>/*
* Copyright (C) 2015 Mario Alviano (mario@alviano.net)
*
* 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
*
* U... |
<commit_before>#include "BoundingBox.hpp"
#include "Exceptions.hpp"
#include "clipper/clipper.hpp"
#include "builders/TerraBuilder.hpp"
#include "entities/ElementVisitor.hpp"
#include "meshing/Polygon.hpp"
#include "meshing/MeshBuilder.hpp"
#include "meshing/LineGridSplitter.hpp"
#include "index/GeoUtils.hpp"
#include ... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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 COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2004 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 COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* CUDA global device memory vector
*
* Copyright (C) 2007 Peter Colberg
*
* 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 3 of the License, or
* (at your o... |
<commit_before>#include <io.h>
#include <curl\curl.h>
#include "SSLSocketStream.h"
#include "httprequest.h"
#include "CommonFuncs.h"
#include "ContentHandle.h"
#include "BaseSSLConfig.h"
#include "Parser.h"
#include "BaseHTTPRequestHandler.h"
extern BaseSSLConfig* g_BaseSSLConfig;
//ĬϽյĻص
void __stdcall Default_Requ... |
<commit_before>#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cstdarg>
#include <cerrno>
#include <vector>
#include <map>
#include <string>
#include "riscv-types.h"
#include "riscv-endian.h"
#include "riscv-regs.h"
#include "riscv-processor.h"
#include "riscv-opcodes.h"
#include "riscv-util.h"
#incl... |
<commit_before>///
/// @file LoadBalancer.cpp
/// @brief The LoadBalancer assigns work to the individual
/// threads in the computation of the special leaves
/// in the Lagarias-Miller-Odlyzko and
/// Deleglise-Rivat prime counting algorithms.
///
/// Simply parallelizing the computation of the sp... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, 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 a... |
<commit_before>#include "sshtunneloutconnection.h"
#include "sshtunnelout.h"
#include "sshclient.h"
Q_LOGGING_CATEGORY(logsshtunneloutconnection, "ssh.tunnelout.connection")
Q_LOGGING_CATEGORY(logsshtunneloutconnectiontransfer, "ssh.tunnelout.connection.transfer")
#define DEBUGCH qCDebug(logsshtunneloutconnection) <<... |
<commit_before>#include "LogFormatter.hpp"
#include <algorithm>
#include <ctime>
namespace foo {
std::string LogFormatter::getTimeStamp() {
const auto time = std::time(nullptr);
std::string str = std::string{std::asctime(std::localtime(&time))};
str.erase(std::remove(str.begin(), str.end(), '\n'), str.end());
... |
<commit_before>/*
* File: PGR_renderer.cpp
* Author: Martin Simon <xsimon14@stud.fit.vutbr.cz>
* Lukas Brzobohaty <xbrzob06@stud.fit.vutbr.cz>
*
* Created on 2013-10-13, 18:20
*/
#include "pgr.h"
#include "PGR_renderer.h"
#include "model.h"
//#include "sphere.h"
#include <glm/gtc/matrix_transfo... |
<commit_before>/* logsh.cpp
*
* cxxtools - general purpose C++-toolbox
* Copyright (C) 2005 Tommi Maekitalo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... |
<commit_before>/***********************************************************************
created: Sun Mar 13 2005
author: Paul D Turner
*************************************************************************/
/***************************************************************************
* Copyright (C)... |
<commit_before>/*
* Copyright (C) 2005 by Dr. Marc Boris Duerner
* Copyright (C) 2005 Stephan Beal
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Li... |
<commit_before>#include <string>
#include <math.h>
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include <tf/transform_broadcaster.h>
#include <boost/shared_ptr.hpp>
#include <fstream>
using namespace std;
// A serial interface used to send commands to the Arduino that controls... |
<commit_before>#include "constants.hpp"
#include <string>
#include <math.h>
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <nav_msgs/Odometry.h>
#include <tf/transform_broadcaster.h>
#include <boost/shared_ptr.hpp>
#include <fcntl.h>
#include <termios.h>
#include <stdio.h>
#include <math.h>
#include <io... |
<commit_before>#include "joystick.hpp"
#include "constants.hpp"
#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
#include <vector>
#include <string>
#include <math.h>
const int DEAD_ZONE = 16384;
const int AXIS_MAX = 32767;
using namespace ros;
using namespace std;
Joystick joystick;
Publisher pub;
void updat... |
<commit_before>#include <MainApplication/Gui/MainWindow.hpp>
#include <QFileDialog>
#include <QToolButton>
#include <Engine/RadiumEngine.hpp>
#include <Engine/Entity/Component.hpp>
#include <Engine/Entity/Entity.hpp>
#include <Engine/Renderer/Renderer.hpp>
#include <MainApplication/MainApplication.hpp>
#i... |
<commit_before>#include <propertyguizeug/ChoicesModel.h>
#include <utility>
#include <reflectionzeug/property/AbstractProperty.h>
#include "util.h"
namespace propertyguizeug
{
ChoicesModel::ChoicesModel(reflectionzeug::AbstractProperty * property)
: m_property(property)
{
if (m_property->hasOption("choices"))
... |
<commit_before>#include "stdafx.h"
#include "CppUnitTest.h"
#include "PointerDataType.h"
#include "HelperFunction.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace std;
using namespace FTL;
namespace FTLTest
{
TEST_CLASS(PointerTest)
{
public:
TEST_METHOD(TestMethod1)
{
uniq... |
<commit_before>/***************************************************************************
* Copyright (c) 2014-2015 Nathan Miller <Nathan.A.Mill[at]gmail.com> *
* Balázs Bámer *
* ... |
<commit_before>/**
* @file persistence_dat.cpp
*
* @brief Purpose: Contains methods to save the game
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*
*/
#include "persistence_dat.hpp"
#include <unordered_map>
#include <iostream>
#include <f... |
<commit_before>/*
PubSubClient.cpp - A simple client for MQTT.
Nicholas O'Leary
http://knolleary.net
*/
#include "PubSubClient.h"
#include <string.h>
PubSubClient::PubSubClient(Client& c) :
_callback(NULL),
_client(&c),
_max_retries(10)
{}
PubSubClient::PubSubClient(Client& c, IPAddress &ip, uint16_t port... |
<commit_before>#include <iostream>
#include <FractalMath\Vector.h>
#include <FractalMath\Matrix.h>
#include "core\systems\Engine.h"
//> const, define = all upper case ex: PI, RADIUS_TO_DEGEE
//> Class = all first letter of all words upper case ex: MyClass
//> function = first letter lower case, the rest of the first... |
<commit_before>/*$Id$
*
* This source file is a part of the Fresco Project.
* Copyright (C) 2000 Stefan Seefeld <stefan@fresco.org>
* http://www.fresco.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by t... |
<commit_before>//
// Shader.cpp
// ModelViewer
//
// Created by Mattias Bergström on 2014-01-30.
// Copyright (c) 2014 Mattias Bergström. All rights reserved.
//
#include "Shader.h"
#include "glm/gtc/matrix_inverse.hpp"
#include <GLFW/glfw3.h>
#include <math.h>
#include "Constants.h"
#include "Mesh.h"
#include <io... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: ContourF.cc
Language: C++
Date: 02/07/94
Version: 1.4
Copyright (c) 1993-1996 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyrighted by Ken Martin... |
<commit_before>/*
* Part of tivars_lib_cpp
* (C) 2015-2017 Adrien 'Adriweb' Bertrand
* https://github.com/adriweb/tivars_lib_cpp
* License: MIT
*/
#include <assert.h>
#include "src/autoloader.h"
#include "src/TIModels.h"
#include "src/TIVarTypes.h"
#include "src/BinaryFile.h"
#include "src/TIVarFile.h"
#include... |
<commit_before>/*===========================================================================*\
* *
* OpenMesh *
* Copyright (C) 2001-2010 by Computer Graphics Group, RWTH Aa... |
<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 "chrome/browser/android/foreign_session_helper.h"
#include <jni.h>
#include "base/android/jni_string.h"
#include "base/prefs/pre... |
<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/chromeos/cros/language_library.h"
#include "base/message_loop.h"
#include "base/string_util.h"
#include "chro... |
<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/tab_contents/web_drag_dest_gtk.h"
#include <string>
#include "app/gtk_dnd_util.h"
#include "base/file_path.h... |
<commit_before>/**
@file debug.hpp
@brief Debug utilities.
@author Tim Howard
@copyright 2010-2013 Tim Howard under the MIT license;
see @ref index or the accompanying LICENSE file for full text.
*/
#ifndef DUCT_DEBUG_HPP_
#define DUCT_DEBUG_HPP_
#include "./config.hpp"
#include <cstdlib>
#include <cstdarg>
#includ... |
<commit_before>#include "qutils/ScreenHelper.h"
// Qt
#include <QGuiApplication>
#include <QScreen>
// zmc
#include "qutils/Macros.h"
namespace zmc
{
ScreenHelper::ScreenHelper(QObject *parent)
: QObject(parent)
, m_DPI(QGuiApplication::primaryScreen()->physicalDotsPerInch())
{
}
qreal ScreenHelper::dp(cons... |
<commit_before>/*
* Author: Yevgeniy Kiveish <yevgeniy.kiveisha@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* 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,... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "OgreRenderingModule.h"
#include "Renderer.h"
#include "EC_Placeable.h"
#include "Entity.h"
#include <Ogre.h>
#include <QDebug>
using namespace OgreRenderer;
void SetShowBoundingBoxRecur... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "XMLRPCConnection.h"
#include "curl/curl.h"
#include <vector>
XMLRPCConnection::XMLRPCConnection(const std::string& address, const std::string& port)
{
Poco::URI uri = Poco::URI(address);
uri.setPort( b... |
<commit_before>#include <cassert>
#include "WorldData.h"
#include "WorldType.h"
#include "../Assets/INFFile.h"
#include "../Assets/MIFFile.h"
#include "../Media/TextureManager.h"
#include "../Rendering/Renderer.h"
WorldData::WorldData(const MIFFile &mif, const INFFile &inf, WorldType type)
{
// Generate levels.
for... |
<commit_before>#include <iostream>
#include <cstring>
#include <cstdlib>
#include "dacloud.h"
using namespace std;
int
main(int argc, char *argv[]) {
if (argc < 3)
return (-1);
string configpath = argv[1];
string useragent = argv[2];
da_cloud_config config;
::memset(&config, 0, sizeof(conf... |
<commit_before>// -*-c++-*-
#include <osgProducer/Viewer>
#include <osgDB/ReadFile>
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/StateSet>
#include <osg/Material>
#include <osg/Texture2D>
#include <osg/TextureRectangle>
#include <osg/TexMat>
#include <osg/CullFace>
#include <osg/ImageStream>
#include ... |
<commit_before>#pragma once
#include "base/assert.hpp"
#include "base/cancellable.hpp"
#include "base/logging.hpp"
#include "routing/base/graph.hpp"
#include "std/algorithm.hpp"
#include "std/functional.hpp"
#include "std/iostream.hpp"
#include "std/map.hpp"
#include "std/queue.hpp"
#include "std/vector.hpp"
namespac... |
<commit_before>#include "stdafx.h"
#include "Symbols.h"
#include <fstream>
Symbols::Symbols( ) :
m_bInitialized( FALSE )
{
ResolveSearchPath( );
if (!WriteSymSrvDll( ))
throw std::exception( "WriteSymSrvDll_failed" );
if (!Init( ))
throw std::exception( "init_failed" );
ntdll:... |
<commit_before>#include "StmtCompiler.h"
#include "CodeGen.h"
#include "CodeGen_X86.h"
#include "CodeGen_GPU_Host.h"
#include "CodeGen_ARM.h"
#include <iostream>
namespace Halide {
using std::string;
using std::vector;
namespace {
#ifndef __arm__
#ifdef _MSC_VER
static void cpuid(int info[4], int infoType, int ex... |
<commit_before>
// Copyright 2014 Toggl Desktop developers.
#include "./ui.h"
#include <cstdlib>
#include <sstream>
namespace kopsik {
void UI::DisplayLogin(const _Bool open, const uint64_t user_id) {
logger().debug("DisplayLogin");
on_display_login_(open, user_id);
}
_Bool UI::DisplayError(const error er... |
<commit_before>#pragma once
#include <string>
#include <memory>
#include <mutex>
#include <set>
#include <tuple>
#include "balancer.hpp"
#include "connection.hpp"
#include "log.hpp"
#include "pool.hpp"
#include "resolver.hpp"
#include "result.hpp"
#include "request/info.hpp"
#include "settings.hpp"
namespace elasti... |
<commit_before>/***************************************************************************
copyright : (C) 2010 by Alex Novichkov
email : novichko@atnet.ru
copyright : (C) 2006 by Lukáš Lalinský
email : lalinsky@gmail.com
(... |
<commit_before>// sensorFile.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iomanip>
#include "keyPoint.h"
#include "imageHelper.h"
class KeyPointMatch {
public:
KeyPoint m_kp0;
KeyPoint m_kp1;
vec2f m_offset; //re-projection offset when m_kp0 is projected into m_kp1;
... |
<commit_before>#ifndef K3_RUNTIME_MESSAGEPROC_H
#define K3_RUNTIME_MESSAGEPROC_H
#include <Dispatch.hpp>
namespace K3
{
//-------------------
// Message processor
enum class LoopStatus { Continue, Error, Done };
// template <typename Error, typename Result>
// class MPStatus {
// public:
// Loop... |
<commit_before>// tests expectation maximization of periodic gaussians for correctness
#include <math.h>
#include <vector>
#include <iostream>
#include <EMPeriodicGaussian.h>
#include <MathFunctions.h>
#include "util.h"
using namespace std;
using namespace Terran;
void testUnimodalPeriodicGaussian() {
vector<d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.