text stringlengths 54 60.6k |
|---|
<commit_before>/*
knaccountmanager.cpp
KNode, the KDE newsreader
Copyright (c) 1999-2001 the KNode authors.
See file AUTHORS for details
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 Softwa... |
<commit_before>#include "runtime.h"
// The class of the global object.
static JSClass globalClass = {
"global",
JSCLASS_GLOBAL_FLAGS,
JS_PropertyStub,
JS_DeletePropertyStub,
JS_PropertyStub,
JS_StrictPropertyStub,
JS_EnumerateStub,
JS_ResolveStub,
JS_ConvertStub,
nullptr, nullpt... |
<commit_before>#include <node.h>
#include <stdlib.h>
#include <unistd.h>
#include <assert.h>
#include <errno.h>
#include <sys/types.h>
#include <pwd.h>
using namespace node;
using namespace v8;
static Handle<Value> GetGroups(const Arguments& args) {
HandleScope scope;
gid_t *groupList;
int ngroups = 0, i = 0;
... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <utility>
#include "kernel/builtin.h"
#include "library/fo_unify.h"
#include "library/expr_pair.h"
#include "library/kernel_bindings... |
<commit_before>// The MIT License (MIT)
// Copyright (c) 2013-2016 Rapptz, ThePhD and contributors
// 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>/*
* Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENS... |
<commit_before>void lb_populate_function_pass_manager(LLVMPassManagerRef fpm, bool ignore_memcpy_pass, i32 optimization_level) {
// NOTE(bill): Treat -opt:3 as if it was -opt:2
// TODO(bill): Determine which opt definitions should exist in the first place
optimization_level = gb_clamp(optimization_level, 0, 2);
if... |
<commit_before>/*!
* \file File camera.cpp
* \brief Implementation of Camera class
*
* The class implemented here defines the game's camera logic
*
* \sa camera.hpp
*/
#include <camera.hpp>
#include <common.hpp>
#include <game.hpp>
#include <gameObject.hpp>
#include <inputManager.hpp>
// Macros declarati... |
<commit_before>// $Id: timeStamp.C,v 1.9 2000/12/09 21:28:28 amoll Exp $
#include <BALL/CONCEPT/timeStamp.h>
#include <BALL/CONCEPT/persistenceManager.h>
#include <sys/time.h>
using namespace std;
namespace BALL
{
void PreciseTime::write(PersistenceManager& pm) const
throw()
{
pm.writePrimitive(secs_, "sec... |
<commit_before>/***************************************************************************
// Modified by Kunal Garg - 03/05/2018 (kgarg@cern.ch)
// Based on AddAnalysisTaskRsnMini
//
//
// Macro to configure the KStarPlusMinus analysis task
// It calls all configs desired by the user, by me... |
<commit_before>//===-- source/Host/linux/Host.cpp ------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>#ifndef LUNAR_BYTESTREAM_HPP
#define LUNAR_BYTESTREAM_HPP
#include "lunar_common.hpp"
#include <deque>
namespace lunar {
template <typename T>
class bytestream {
typedef std::basic_string<T> string_t;
public:
bytestream() : m_is_eof(false) { }
~bytestream()
{
for (auto &data... |
<commit_before>/*
* Copyright 2012 Anders E. Wallin (anders.e.e.wallin "at" gmail.com)
*
* This file is part of OpenVoronoi.
*
* OpenVoronoi 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, eith... |
<commit_before>// Copyright (c) 2006-2008 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 "base/basictypes.h"
#include "base/gfx/png_encoder.h"
#include "base/logging.h"
#include "third_party/skia/include/core/S... |
<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)
{
map_was_loaded = false;
/* default config */
height = DEF_HEIGHT;
width = DEF_WIDTH;
fullscreen = false;
mode = SINGLEPLA... |
<commit_before>// @(#)root/cont:$Name: $:$Id: TProcessID.cxx,v 1.1 2001/10/01 10:29:08 brun Exp $
// Author: Rene Brun 28/09/2001
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>/*
* Handler for raw TCP connections.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "lb_tcp.hxx"
#include "lb_config.hxx"
#include "lb_cluster.hxx"
#include "filtered_socket.hxx"
#include "client_balancer.hxx"
#include "address_sticky.hxx"
#include "direct.hxx"
#include "pool.hxx"
#include ... |
<commit_before>/* **** **** **** **** **** **** **** **** *
*
* _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
* _/ _/ _/ _/ _/ _/
* _/ _/ _/ _/ _/ _/
* _/_/_/ _/_/_/ _/_/_/
*
* bit by bit
* bbb/core/type/logic.hpp
*
* author: ISHII 2bit
* mail:... |
<commit_before>#include "dsa/message.h"
#include "dsa/network.h"
#include "../test/sdk/async_test.h"
#include "../test/sdk/test_config.h"
#include "network/tcp/tcp_client.h"
#include "network/tcp/tcp_server.h"
#include <chrono>
#include <ctime>
#include <atomic>
#include <boost/program_options.hpp>
using high_res... |
<commit_before>/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2012 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>#include "PolyRegress.h"
// Least Squares Regression based on following discussion:
// http://stackoverflow.com/questions/24747643/3d-linear-regression
// coeffs = theta = inv(trans(X) * X) * trans(X) * y
// theta: vector of fit coefficients [a0 a1 a2 ... aN] for a0 + a1x + a2x^2 + ... + aNx^N
// X: mat... |
<commit_before>//===--- SourceManager.cpp - Track and cache source files -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: skeletoncommon.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2006-08-01 16:24:36 $
*
* The Contents of this file ar... |
<commit_before>/*
* Copyright 2012 Matthew McCormick
* Copyright 2013 Justin Crawford <Justasic@gmail.com>
* Copyright 2015 Pawel 'l0ner' Soltys
*
* 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 Li... |
<commit_before>#include "headers/mainwindow.h"
#include "headers/cryptogame.h"
#include "headers/primefactorization.h"
#include "headers/generateprimes.h"
#include "ui_mainwindow.h"
#include "QPushButton"
#include "iostream" //for debugging
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new... |
<commit_before>/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 3
of the License, or (a... |
<commit_before>
#include "potentialfunctioncbspl.h"
PotentialFunctionCBSPL::PotentialFunctionCBSPL(const int nlam_,
const int ncutcoeff_, const double min_, const double max_) :
PotentialFunction(nlam_,min_,max_) {
/* Here nlam_ is the total number of coeff values that are to be ... |
<commit_before>#include <ncurses.h>
#include <string>
#include <vector>
#include "configuration.hh"
#include "int_to_str.hh"
#include "newmove.hh"
#include "show_message.hh"
int from_visual(const std::string& cont, int x) {
if(cont.size() == 0) return 0;
int count = 0,
til = 0;
for(int i = 0; i < ... |
<commit_before>#include "Thief.h"
Thief::Thief()
{
//Empty
}
Thief::~Thief()
{
//Empty
}
<commit_msg>Fixed a compiler error by adding implementations for the update function of the Thief class<commit_after>#include "Thief.h"
Thief::Thief()
{
//Empty
}
Thief::~Thief()
{
//Empty
}
void Thief::update(const ... |
<commit_before>//
// kern_cpuf.cpp
// CPUFriend
//
// Copyright © 2017 Vanilla. All rights reserved.
//
#include <Headers/kern_api.hpp>
#include "kern_cpuf.hpp"
static const char *binList[] {
"/System/Library/Extensions/IOPlatformPluginFamily.kext/Contents/PlugIns/X86PlatformPlugin.kext/Contents/MacOS/X86Platfor... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2012. All rights reserved
*/
#ifndef _Stroika_Foundation_Containers_Concrete_Bag_Array_inl_
#define _Stroika_Foundation_Containers_Concrete_Bag_Array_inl_
#include "../../Memory/BlockAllocated.h"
#include "Private/Array.h"
namespace Stroika {
... |
<commit_before>/* $Id$
*
* 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 (th... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006-2011, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and as... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkWedgeMark.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Th... |
<commit_before>/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
==... |
<commit_before>//===- lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp ----------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <unordered_map>
#include <future>
#include <curl/curl.h>
#include "client.hpp"
namespace azha {
Client::Client()
: _oauth(new OAuth()) {
curl_global_init(CURL_GLOBAL_ALL);
}
Client::~Client() {
curl_global_... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "statechecker.h"
#include "distributor_bucket_space.h"
#include "distributor_stripe_component.h"
#include <vespa/vdslib/distribution/distribution.h>
#include <vespa/vdslib/state... |
<commit_before>//=== InnerPointerChecker.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>//===--- NonNullParamChecker.cpp - Undefined arguments checker -*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "gm.h"
GameStateManager::GameStateManager()
{
playerShipMap = Map(10, 10);
enemyShipMap = Map(10, 10);
playerShotMap = Map(10, 10);
// Set up the ships
playerShips[SHIP_CARRIER] = enemyShips[SHIP_CARRIER] = Ship();
playerShips[SHIP_BATTLE] = enemyShips[SHIP_BATTLE] = Ship();
... |
<commit_before>/*
* File: ipc_ops.cpp
* Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include <string>
#include "common/sedna.h"
#include "common/ipc_ops.h"
#include "common/base.h"
#include "common/utils.h"
#include "common/u/usocket.h"
#include "common/u... |
<commit_before>//===--- CheckerRegistration.cpp - Registration for the Analyzer Checkers -===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <unistd.h>
using namespace std;
extern "C" {
#include "iniparser.h"
}
char* base_path;
char* tester;
char* vm_name;
int parse_ini_files(char * ini_instance,char* ini_v_machines,char* conf);
int get_archives(char* ... |
<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: viewobjectcontactredirector.cxx,v... |
<commit_before>#pragma once
#include <hash_map.hpp>
#include <list.hpp>
#include <kernel/interfaces/device_manager.hpp>
#include "block.hpp"
#include "character.hpp"
namespace device {
struct manager final : public interfaces::device_manager {
explicit manager();
void initialize() override;
void regis... |
<commit_before>/* @doc Computation of the dynamic aspect for a robot.
This class will load the description of a robot from a VRML file
following the OpenHRP syntax. Using ForwardVelocity it is then
possible specifying the angular velocity and the angular value
to get the absolute position, and absolute vel... |
<commit_before>//
// C++ Implementation: requesttask
//
// Description:
//
//
// Author: SUSE AG (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "gwfield.h"
#include "request.h"
#include "response.h"
#include "requesttask.h"
RequestTask::RequestTask( Task * parent )
: Ta... |
<commit_before>#include "pyclast.h"
#include <pybind11/stl.h>
#include <clang/AST/AST.h>
#include <clang/AST/ASTTypeTraits.h>
#include <clang/ASTMatchers/ASTMatchers.h>
#include <clang/ASTMatchers/ASTMatchersInternal.h>
#include <clang/ASTMatchers/ASTMatchFinder.h>
#include "clang/ASTMatchers/Dynamic/Parser.h"
#include... |
<commit_before>#include <QApplication>
#include <QDesktopServices>
#include <QUrl>
#include <QDir>
#include <QProcess>
#include <QMainWindow>
#include <QSettings>
#include <QTranslator>
#include "crash-reporter-window.h"
#include "ui_crash-reporter-window.h"
QString savePath(const QString &file, bool exists = false)
... |
<commit_before>/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* Copyright (C) 2002-2022 Németh László
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain ... |
<commit_before><commit_msg>Mac build fix: Mac needs more includes than Linux<commit_after><|endoftext|> |
<commit_before>//===-- NativeProcessELF.cpp ---------------------------------- -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* ROS driver for Phidgets motor control HC
* Copyright (c) 2010, Bob Mottram
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* mod... |
<commit_before>/* -*- mode: C++; c-file-style: "gnu" -*-
This file is part of KMail, the KDE mail client.
Copyright (c) 1997 Markus Wuebben <markus.wuebben@kde.org>
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 Fr... |
<commit_before>
#include <gmock/gmock.h>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <glbinding/AbstractFunction.h>
#include <glbinding/Meta.h>
#include <glbinding/ContextInfo.h>
#include <glbinding/Version.h>
#include <glbinding/FunctionObjects.h>
#include <glbinding/gl/gl.h>
using namespace gl;
usi... |
<commit_before>
#include <kms++/kms++.h>
#include <kms++util/kms++util.h>
using namespace std;
namespace kms
{
void draw_rgb_pixel(IMappedFramebuffer& buf, unsigned x, unsigned y, RGB color)
{
switch (buf.format()) {
case PixelFormat::XRGB8888:
case PixelFormat::ARGB8888:
{
uint32_t *p = (uint32_t*)(buf.map(0) ... |
<commit_before>/*-
* Copyright (C) 2008-2009 by Maxim Ignatenko
* gelraen.ua@gmail.com
*
* All rights reserved. *
* *
* Redistribution and use in source and binary forms, with or withou... |
<commit_before>#include <iostream>
#include <fstream>
#include <unordered_map>
#include <string>
#include <algorithm>
#include <iterator>
#include <utility>
#include <stdexcept>
#include "config.hpp"
std::unordered_map<std::string, std::pair<std::string, bool>> Config::vars = {
// { "name", { "default value", is_in... |
<commit_before>/**
* Copyright (c) Sjors Gielen, 2010
* See LICENSE for license.
*/
#include <QtCore/QSettings>
#include <fstream>
#include <sstream>
#include <assert.h>
#include "config.h"
#include "database.h"
// #define DEBUG
#define rw(x) QLatin1String(x)
/**
* @brief Constructor
*
* This constructor sets... |
<commit_before>#include <fstream>
#include <iostream>
#include <iterator>
#include <vector>
#include <sstream>
////////////////////////////////////////////////////////////
/// \brief Helper to transform a line into a case description
///
/// \param line String of space-separated integers
///
/// \return Vector describ... |
<commit_before>#include "p0optimize/remove_dead_code.hpp"
#include "p0i/emitter.hpp"
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE(remove_dead_code_empty)
{
p0::intermediate::function::instruction_vector original_code;
p0::intermediate::function::instruction_vector const living_code = p0::remove_dead_code... |
<commit_before>/* BZWorkbench
* Copyright (c) 1993 - 2008 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 EXPRES... |
<commit_before>#include "rapid_perception/template_matching_heat_mapper.h"
#include <algorithm>
#include <iostream>
#include <math.h>
#include <vector>
#include "Eigen/Core"
#include "pcl/PointIndices.h"
#include "pcl/common/common.h"
#include "pcl/filters/extract_indices.h"
#include "pcl/filters/random_sample.h"
#in... |
<commit_before>#include "GLFWController.hpp"
#include "ModelView.hpp"
#include "AffinePoint.hpp"
#include "AffineVector.hpp"
#include "ModelViewWithShader.hpp"
#include "Block.hpp"
#include "DependencyContainer.hpp"
#include "otuchaConfig.h"
#include <memory>
#include <iostream>
using namespace otucha;
void set3DVie... |
<commit_before>/**
* @author Koen Wolters <koen.wolters@cern.ch>
*/
#include "Messenger.hpp"
#include <string>
#include "../utils/type.h"
#include "../utils/log.h"
#include "../module/Module.hpp"
#include "Message.hpp"
using namespace allpix;
// Constructor
Messenger::Messenger(): delegates_() {}
// Destructo... |
<commit_before>#include "game/race_tracker.h"
using game::Position;
using game::Race;
namespace game {
RaceTracker::RaceTracker(game::CarTracker& car_tracker,
const game::Race& race, const std::string& color)
: car_tracker_(car_tracker), race_(race), color_(color),
crash_time_(-1), crash_recorded_(fa... |
<commit_before>// Copyright 2015 Google Inc. All Rights Reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <asm/prctl.h>
#include <assert.h>
#include <fcntl.h>
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/mman.h>
#inc... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
/**
* @file EnvironmentModule.cpp
* @brief Environment module. Environment module will be responsible of enviroment based operations like generating terrain from heightmap,
* loading sky from a cube and ... |
<commit_before>#include "MyDistribution.h"
#include "RandomNumberGenerator.h"
#include "Utils.h"
#include <cmath>
using namespace DNest3;
MyDistribution::MyDistribution(double x_min, double x_max,
double y_min, double y_max,
double fluxlim_min, double fluxlim_max)
:x_min(x_min)
,x_max(x_max)
,y_min(y_min)
,... |
<commit_before>#include "inmost.h"
using namespace INMOST;
//setup on mesh:
//
// FORCE - 3 entries
//
// BOUNDARY_CONDITION_VELOCITY - 7 entries
// r = (a5,a6,a7)
// n.(a1*u + a2*t) = n.r
// (I - nn.)(a3*u + a4*t) = (I-nn.)r
//
// BOUNDARY_CONDITION_PRESSURE - 1 entry
//
// REFERENCE_VELOCITY - 3 entries
//
// REFERE... |
<commit_before>/** \copyright
* Copyright (c) 2016, Balazs Racz
* 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... |
<commit_before>#include "z2h/token.hpp"
#include "z2h/symbol.hpp"
#include "z2h/lexer.hpp"
#include "z2h/parser.hpp"
#include "ast.hpp"
#include "lexer.h"
#include "parser.h"
#include "bindpower.h"
#include "exceptions.h"
#include <map>
#include <vector>
#include <boost/regex.hpp>
#include <iostream>
#include <algori... |
<commit_before>
#include <Rcpp.h>
#include <string>
#include <list>
#include <cstdio>
using namespace Rcpp;
using namespace std;
struct SubString {
const char *begin, *end;
string get() {
return string(begin, end);
}
};
struct Markup {
Markup() {
null = true;
}
Markup(const char* str_end) {
... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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 ... |
<commit_before>// DrawPolygon.cpp : ܼ α մϴ.
//
#include "stdafx.h"
#include "NamsGraphics.h"
void Reshape(int w, int h)
{
glLoadIdentity();
glViewport(0, 0, w, h);
gluOrtho2D(0.0, 100.0, 0.0, 100.0);
}
void Display()
{
glClear(GL_COLOR_BUFFER_BIT);
glShadeModel(GL_FLAT);
GLdouble centerX, centerY;
const... |
<commit_before>#ifndef __PY2CPP_HPP__
#define __PY2CPP_HPP__
#include <cassert>
#include <climits>
#include <sstream>
#include <stdexcept>
#include <typeinfo>
#include <map>
#include <set>
#include <string>
#include <tuple>
#include <vector>
#include <Python.h>
namespace dubzzz {
namespace Py2Cpp {
template <class... |
<commit_before>/**
* Copyright (c) 2016-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.
... |
<commit_before>#include <fstream>
#include <string>
#include <iostream>
#include <cppunit/extensions/HelperMacros.h>
#include <musicbrainz3/mbxmlparser.h>
#include <musicbrainz3/metadata.h>
#include <musicbrainz3/model.h>
using namespace std;
using namespace MusicBrainz;
#include "read_file.h"
class ParseUserTest : ... |
<commit_before>#define BOOST_TEST_MODULE TestRagoneChart
#define BOOST_TEST_MAIN
#include <cap/resistor_capacitor.h>
#include <boost/format.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <fstream>
// TODO: e... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
<commit_before>/**
* Copyright 2015 Telefonica Investigación y Desarrollo, S.A.U
*
* This file is part of iotagent project.
*
* iotagent 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 ... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2020 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 <consensus/validation.h>
#include <net.h>
#include <net_proces... |
<commit_before>// $RCSfile: $
// $Revision: $ $Date: $
// Auth: Samson Bonfante (bonfante@steptools.com)
//
// Copyright (c) 1991-2016 by STEP Tools 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 ... |
<commit_before>#include "driver.hpp"
#include <csignal>
#include <cstdlib>
#include <ctime>
#include <exception>
#include <iostream>
#include <iomanip>
#include <omp.h>
#include <sstream>
#include "core/core_mesh.hpp"
#include "core/error.hpp"
#include "core/files.hpp"
#include "core/global_config.hpp"
#include "core... |
<commit_before>/**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file JavascriptInstance.cpp
* @brief Javascript script instance used wit EC_Script.
*/
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MemoryLeakCheck.h"
#include "JavascriptInstance.h"
#... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>/*
* Copyright (C) 2010, 2011 Stephen F. Booth <me@sbooth.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... |
<commit_before>#pragma once
#include <random>
#include <functional>
namespace dust
{
template<class State, class Observation>
class filter
{
public:
using motion_model = std::function<std::pair<float, State>(const State&,
cons... |
<commit_before>#include "filters.hh"
namespace Kakoune
{
void colorize_regex(DisplayBuffer& display_buffer,
const boost::regex& ex, Color color)
{
for (auto atom_it = display_buffer.begin();
atom_it != display_buffer.end(); ++atom_it)
{
boost::match_results<BufferIterator>... |
<commit_before><commit_msg>requested changes to pdngen, fixing forloops and early return if insts is empty<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <boost/tokenizer.hpp>
#include <vector>
#include <list>
// puts the argv input from the program into a list
std::list<std::string> GetInput(int argc, char... |
<commit_before>/* vim:set noet sts=0 sw=2 ts=2: */
#include <string>
#include <vector>
using namespace std;
#define FIRST_TOKEN 257
/* 256 possible for char, plus one */
#define check_next(pos, test_char) input[ts->position + pos] == test_char
namespace fusion {
struct token {
enum token_t {
/* keywords */
... |
<commit_before>#include "map.h"
#include "graphics.h"
#include "sprite.h"
namespace {
const unsigned int rows = 30;
const unsigned int cols = 40;
}
Map::Map(Graphics& graphics) {
init_sprites(graphics);
tiles = std::vector<std::vector<TileType>>(rows, std::vector<TileType>(cols, Map::WATER));
// TODO ran... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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 <primitives/block.h>
#include <hash.h>
#include <streams... |
<commit_before>#include "LeverEntity.h"
LeverEntity::LeverEntity(){}
LeverEntity::~LeverEntity(){}
int LeverEntity::Initialize(int entityID, PhysicsComponent * pComp, GraphicsComponent * gComp, float interactionDistance)
{
int result = 0;
this->InitializeBase(entityID, pComp, gComp, nullptr);
this->m_isActive = 0... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved
*/
#include "Stroika/Frameworks/StroikaPreComp.h"
#include <mutex>
#include <iostream>
#include "Stroika/Foundation/Execution/CommandLine.h"
#include "Stroika/Foundation/Execution/Event.h"
#include "Stroika/Fo... |
<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>#include "md5mesh.h"
#include "base/lexer.h"
#include <string.h>
namespace base {
namespace opengl {
math::Vector3 Md5Joint::translate(const math::Vector3& v) const
{
return orient.RotatePoint(v) + pos;
}
void readVector(Lexer& reader, math::Vector3& vec)
{
vec.x = reader.ReadFloat();
vec.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.