text stringlengths 54 60.6k |
|---|
<commit_before>/*
Copyright 2005 - 2006 Roman Plasil
http://foo-title.sourceforge.net
This file is part of foo_title.
foo_title 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; e... |
<commit_before>/*
* AsyncConnectionImpl.hpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero G... |
<commit_before>/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "RawPropsParser.h"
#include <folly/Likely.h>
#include <react/debug/react_native_assert.h>
#include <reac... |
<commit_before>
#include "OSGBaseInitFunctions.h"
#include "OSGNode.h"
#ifdef OSG_USE_PTHREADS
#include <pthread.h>
pthread_t oThread;
void *runThread(void *)
{
fprintf(stderr, "run thread \n");
fprintf(stderr, "th : %p %p %d 0x%016"PRIx64" 0x%016"PRIx64"\n",
OSG::Thread::getCurrentChangeList ... |
<commit_before>// Copyright (c) 2007, 2008 libmv authors.
//
// 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, m... |
<commit_before>#include "AnimatedSklComponent.hpp"
#include "Skeleton.hpp"
#include "AnimationManager.hpp"
#include "assetmanagement/assetmanager.hh"
#include "Entity/Entity.hh"
#include "Entity/EntityData.hh"
#include "Core/AScene.hh"
namespace AGE
{
AnimatedSklComponent::AnimatedSklComponent()
: _skeletonAsse... |
<commit_before>/*
* 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 option) any later version.
*
* Written (W) 2010 Soeren Sonnenburg
* Copyri... |
<commit_before>/* Copyright 2009 SPARTA, Inc., dba Cobham Analytic Solutions
*
* This file is part of WATCHER.
*
* WATCHER 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 vers... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Script Generator project on Qt Labs.
**
**... |
<commit_before>/*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE... |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2004-2019 musikcube team
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//... |
<commit_before>#include "osg/Group"
#include "lua.hpp"
#include "nodescriptresulthandler.h"
#include "luabinding.h"
static osg::Node* convertToOsgNode(lua_State *luaState, int index);
NodeScriptResultHandler::NodeScriptResultHandler() :
ScriptResultHandler(ScriptResultHandler::UNLIMITED_RESULTS)
{
}
NodeScriptR... |
<commit_before>/*****************************************************************************
* volume.cpp
*****************************************************************************
* Copyright (C) 2003 the VideoLAN team
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulière <ipki... |
<commit_before>#ifndef MJOLNIR_FORCE_FIELD
#define MJOLNIR_FORCE_FIELD
#include "LocalForceField.hpp"
#include "GlobalForceField.hpp"
namespace mjolnir
{
template<typename traitsT>
class ForceField
{
public:
typedef traitsT traits_type;
typedef typename traits_type::real_type real_type;
typedef ty... |
<commit_before>#include "poly_triang.hh"
#include "Geo/area.hh"
#include "Geo/entity.hh"
#include "Geo/linear_system.hh"
#include "Geo/point_in_polygon.hh"
#include "Geo/tolerance.hh"
#include "Utils/circular.hh"
#include "Utils/statistics.hh"
#include <Utils/error_handling.hh>
#include <numeric>
struct Pol... |
<commit_before>#ifndef MJOLNIR_PERIODIC_GRID_CELL_LIST
#define MJOLNIR_PERIODIC_GRID_CELL_LIST
#include <mjolnir/core/System.hpp>
#include <mjolnir/core/NeighborList.hpp>
#include <mjolnir/core/ExclusionList.hpp>
#include <mjolnir/util/range.hpp>
#include <mjolnir/util/logger.hpp>
#include <iostream>
#include <vector>
... |
<commit_before>#include "melee_animation.h"
components::transform melee_animation::calculate_intermediate_transform(double factor) const {
components::transform result = offset_pattern[offset_pattern.size() - 1];
double distance = 0;
for (int i = 1; i < offset_pattern.size(); ++i)
distance += vec2(offset_pattern... |
<commit_before>#include <plasp/sas/TranslatorASP.h>
#include <plasp/sas/TranslatorException.h>
namespace plasp
{
namespace sas
{
////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TranslatorASP
//
////////////////////////////////////////////////////////////////... |
<commit_before>#include "types.h"
#include "multiboot.hh"
#include "kernel.hh"
#include "spinlock.hh"
#include "kalloc.hh"
#include "cpu.hh"
#include "amd64.h"
#include "hwvm.hh"
#include "condvar.hh"
#include "proc.hh"
#include "apic.hh"
#include "codex.hh"
#include "mfs.hh"
void initpic(void);
void initextpic(void);... |
<commit_before>#include "types.h"
#include "mmu.h"
#include "kernel.hh"
#include "spinlock.hh"
#include "condvar.hh"
#include "proc.hh"
#include "fs.h"
#include "file.hh"
#include "cpu.hh"
#include "uk/unistd.h"
#include "uk/fcntl.h"
#define PIPESIZE (4*4096)
struct pipe {
virtual ~pipe() { };
virtual int write(c... |
<commit_before>#include "types.h"
#include "mmu.h"
#include "kernel.hh"
#include "spinlock.h"
#include "condvar.h"
#include "queue.h"
#include "proc.hh"
#include "fs.h"
#include "file.hh"
#include "cpu.hh"
#include "ilist.hh"
#include "uk/unistd.h"
#define PIPESIZE 512
struct pipe {
virtual int write(const char *ad... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/**
* @file
*
* @brief Source for yamlcpp plugin
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
// -- Imports ------------------------------------------------------------------------------------------------------------------------------
#include "yamlcpp.hpp"
#inc... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2012, Willow Garage, Inc.
* 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... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2009-2017 The DigiByte Core developers
// Copyright (c) 2013-2014 Phoenixcoin Developers
// Copyright (c) 2016-2018 The CryptoCoderz Team / Espers
// Copyright (c) 2017-2018 The AmsterdamCo... |
<commit_before>#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include "core/plugin_handler.h"
#include "core/alloc.h"
#include "core/log.h"
#include "core/file.h"
#include "core/commands.h"
#include <stdio.h>
////////////////////////////////////////////////////////////////////////////... |
<commit_before>#include <test_bed_core/trajopt_pick_and_place_constructor.h>
#include <trajopt/problem_description.hpp>
#include <trajopt_utils/eigen_conversions.hpp>
#include <ros/ros.h>
using namespace trajopt;
using namespace Eigen;
TrajoptPickAndPlaceConstructor::TrajoptPickAndPlaceConstructor(tesseract::BasicEn... |
<commit_before>#include "test.h"
auto One0 = OnceFlag();
auto One1 = OnceFlag();
auto One2 = OnceFlag();
auto One3 = OnceFlag();
static int counter = 0;
static void proc()
{
CriticalSection cs;
counter++;
}
static void proc3()
{
One3.call(proc);
ThisTask::stop();
}
static void proc2()
{
... |
<commit_before>#include <GL/glew.h>
#include "Shader.hpp"
Shader::Shader(std::ifstream & ShaderFile,GLuint ProgramID,int Type,std::string name)
{
ShaderFile.seekg(0,std::ios_base::end);
int length=ShaderFile.tellg();
ShaderFile.seekg(0,std::ios_base::beg);
char * Contents=new char[length+1];
memse... |
<commit_before>//
// Copyright (C) 2017~2017 by CSSlayer
// wengxt@gmail.com
//
// 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
// License, or (at your option... |
<commit_before>/*
* Copyright (c) 2015 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>/*
* Copyright 2015 Intel(r) Corporation
*
* 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 applic... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: EdgePts.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>/*
* METISGraphWriter.cpp
*
* Created on: 30.01.2013
* Author: Christian Staudt (christian.staudt@kit.edu)
*/
#include "METISGraphWriter.h"
#include "../auxiliary/Enforce.h"
namespace NetworKit {
void METISGraphWriter::write(Graph& G, const std::string& path) {
this->write(G, G.isWeighted... |
<commit_before>// Scintilla source code edit control
/** @file KeyMap.cxx
** Defines a mapping between keystrokes and commands.
**/
// Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include "Platform.h"
#inclu... |
<commit_before>// Scintilla source code edit control
/** @file LexCPP.cxx
** Lexer for C++, C, Java, and Javascript.
**/
// Copyright 1998-2002 by Neil Hodgson <neilh@scintilla.org>
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#include <string.h>
... |
<commit_before>// Scintilla source code edit control
/** @file LexLua.cxx
** Lexer for Lua language.
**
** Written by Paul Winwood.
** Folder by Alexey Yutkin.
** Modified by Marcos E. Wurzius & Philippe Lhoste
**/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
... |
<commit_before>// Netizen.hh for Fluxbox
// Copyright (c) 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
// Netizen.hh for Blackbox - An X11 Window Manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software an... |
<commit_before>//
// Player.cpp
// Audiologger
//
// Created by Malte Poll on 15.02.16.
// Copyright © 2016 Malte Poll. All rights reserved.
//
#include "Player.hpp"
#include "logging.hpp"
void Player::init(){
//Allocate memory for the sample buffer
sampleBlock = (char *)malloc(FRAMES_PER_BUFFER * NUM_CHA... |
<commit_before>#include <sys/queue.h>
#include <evhttp.h>
#include <mecab.h>
#include "Server.h"
#define PARSE_URI(request, params) { \
char const *uri = evhttp_request_uri(request); \
evhttp_parse_query(uri, ¶ms); \
}
#define PARAM_GET_STR(var, params, name, mendatory) { \
var = evhttp_find_header(&... |
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// 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
//
// ... |
<commit_before>#include <cstdio>
#include <iostream>
#include <vector>
#include <cmath>
#include "SubmatrixCalculator.cpp"
#define BLANK_CHAR '-'
using namespace std;
vector<vector<string > > final_columns;
vector<vector<string > > final_rows;
string string_a, string_b;
int submatrix_dim;
int row_num;
int column_n... |
<commit_before>/*=========================================================================
Program: Visualization Library
Module: StrPtsF.cc
Language: C++
Date: $Date$
Version: $Revision$
Description:
---------------------------------------------------------------------------
This file is part ... |
<commit_before>
#include "datavis/Surf3D.hpp"
#include <osg/Geometry>
#include <fstream>
#include <sstream>
#include <iostream>
using namespace datavis;
Surf3D::Surf3D()
{
}
Surf3D::Surf3D(const std::string &filename, osg::Vec4 color) :
color(color)
{
std::ifstream filestream;
filestream.open(filena... |
<commit_before>//
// Copyright 2016 Giovanni Mels
//
// 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 ... |
<commit_before>/******************************************************************************
* Copyright (c) 2011, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>#ifndef AL_RAYAPP_H
#define AL_RAYAPP_H
#include "allocore/al_Allocore.hpp"
#include "allocore/io/al_Window.hpp"
#include "allocore/protocol/al_OSC.hpp"
#include "alloutil/al_FPS.hpp"
#include "alloutil/al_RayStereo.hpp"
#include "alloutil/al_ShaderManager.hpp"
#define PORT_TO_DEVICE_SERVER (12000)
#de... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/core/layerconfig.h"
#include "gtest/gtest.h"
#include "elm/core/exception.h"
#inc... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/layers/medianblur.h"
#include <memory>
#include "elm/core/debug_utils.h"
#includ... |
<commit_before>/*
* Copyright 2011 Esrille 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 l... |
<commit_before>#include "common.h"
#include "x86_helpers.h"
xed_reg_enum_t GetUnusedRegister(xed_reg_enum_t used_register, int operand_width) {
switch (operand_width) {
case 16:
if (used_register == XED_REG_AX) return XED_REG_CX;
return XED_REG_AX;
case 32:
if (used_register == XED_REG_EAX) ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt lice... |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>#include <boost/test/unit_test.hpp>
#include <cucumber-cpp/defs.hpp>
#include <QApplication>
#include <QDebug>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QTest>
#include <KConfig>
#include <KConfigGroup>
#include <KGlobal>
#include "akonadi/akonadiartifactqueries.h"
#incl... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>
#include "gloperate-qt/base/OpenGLWindow.h"
#include <QCoreApplication>
#include <QResizeEvent>
#include <QOpenGLContext>
#include <gloperate-qt/base/GLContext.h>
#include <gloperate-qt/base/GLContextFactory.h>
namespace gloperate_qt
{
OpenGLWindow::OpenGLWindow()
: m_context(nullptr)
, m_initiali... |
<commit_before>
#include "veraMolnarTrapezium.h"
void veraMolnarTrapezium::setup(){
iCenterX = 0;
iCenterY = 1;
iTopLeftOffsetX = 2;
iTopRightOffsetX = 3;
iBottomLeftOffsetX = 4;
iBottomRightOffsetX = 5;
fboScale = 2;
bigScreen.allocate(dimensions.width*fboScale, dimensions.height*fboScale);
// ... |
<commit_before>/*ckwg +5
* Copyright 2011-2012 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "thread_per_process_schedule.h"
#include <vistk/pipeline/config... |
<commit_before>/*
* Restructuring Shogun's statistical hypothesis testing framework.
* Copyright (C) 2016 Soumyajit De
*
* 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 o... |
<commit_before>/*
* Copyright (c) 2008 James Molloy, Jörg Pfähler, Matthew Iselin
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWA... |
<commit_before>/**
* Copyright 2017 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 req... |
<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 "base/command_line.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/debugger/devtools_client_host.h"
#include "... |
<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/ui/webui/bidi_checker_web_ui_test.h"
#include "base/base_paths.h"
#include "base/i18n/rtl.h"
#include "base/p... |
<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 "chrome/test/automation/automation_handle_tracker.h"
#include "chrome/test/automation/automation_messages.h"
#include "c... |
<commit_before>/*
* Author: Marc Ernst <marc.ernst@intel.com>
* Copyright (c) 2015 - 2017 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, inclu... |
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Copyright (c) 2013 Adam Roben <adam@roben.org>. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE-CHROMIUM file.
#include "browser/inspectable_web_contents_impl.h"
#i... |
<commit_before>#define LOG_TAG "silk-h264-enc"
#include "SimpleH264Encoder.h"
#include <media/stagefright/MediaBuffer.h>
#include <media/stagefright/MetaData.h>
// This is an ugly hack. We forked this from libstagefright
// so we can trigger key frames and adjust bitrate
#include "MediaCodecSource.h"
#include <media/o... |
<commit_before>#include "tests-base.hpp"
extern "C" {
#include "../normalization.h"
}
TEST(QueryComposition, NoResult)
{
unicode_t r = querycomposition(0x00000002F, 0x00001988, nullptr);
EXPECT_EQ(0, r);
}
TEST(QueryComposition, Found)
{
int32_t e = 0;
unicode_t r = querycomposition(0x00001F7C,... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Research In Motion
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtSensors module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees h... |
<commit_before>
#include <memory>
#include <vector>
#include <gtest/gtest.h>
#include "drake/solvers/MobyLCP.h"
#include "drake/util/testUtil.h"
namespace {
const double epsilon = 1e-6;
const bool verbose = false;
template <typename Derived>
Eigen::SparseMatrix<double> makeSparseMatrix(
const Eigen::MatrixBase<... |
<commit_before>// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
/... |
<commit_before>//===========================================
// PC-BSD source code
// Copyright (c) 2016, PC-BSD Software/iXsystems
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "page_source_control.h"
#include "ui_page_so... |
<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/views/extensions/extension_popup.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_list... |
<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_PRODUCTS_BASE_INTERNAL_HH
#define DUNE_GDT_PRODUCTS_BASE_INTERNAL_HH
#... |
<commit_before><commit_msg>debugging assert about unsorted properties on loading ooo59216-14.ods<commit_after><|endoftext|> |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2010, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the fi... |
<commit_before>#include "ofApp.h"
using namespace std;
//--------------------------------------------------------------
void ofApp::setup(){
ofAddListener(node_.unhandledMessageReceived, this, &ofApp::messageReceived);
node_.setAllowLoopback(true);
node_.setup(9000);
node_.request();
gui_.setup();
}
//-------... |
<commit_before>#include "blackmagicsdk_video_source.h"
#include "deck_link_display_mode_detector.h"
#include <chrono>
namespace gg
{
VideoSourceBlackmagicSDK::VideoSourceBlackmagicSDK()
: IVideoSource()
, _frame_rate(0.0)
, _video_buffer(nullptr)
, _video_buffer_length(0)
, _cols(0)
, _rows(0)... |
<commit_before>/*************************************************************************
*
* $RCSfile: TColumnsHelper.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: vg $ $Date: 2005-03-10 15:17:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following... |
<commit_before>/*
* Event.hpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General Public ... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
<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 <string>
#include <stdexcept>
#include <cassert>
namespace workspace {
class EmailAddress {
public:
static bool is_valid_email_address(const std::string& emailAddress) { // -> a dummy func for testing purposes only
return std::string::npos != emailAddress.find("@");
}
Email... |
<commit_before>#include "GHIElectronics_TinyCLR_Devices_Spi.h"
#include "../GHIElectronics_TinyCLR_InteropUtil.h"
TinyCLR_Result Interop_GHIElectronics_TinyCLR_Devices_Spi_GHIElectronics_TinyCLR_Devices_Spi_Provider_SpiControllerApiWrapper::get_ChipSelectLineCount___I4(const TinyCLR_Interop_MethodData md) {
auto a... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013 Yi Qiao
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, modif... |
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/framework/tensor.h"
#include "core/util/math_cpuonly.h"
#include "core/providers/common.h"
#include "core/platform/threadpool.h"
#include "skip_layer_norm.h"
namespace onnxruntime {
namespace ... |
<commit_before>/*
* Copyright Copyright 2012, System Insights, 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
*
* ... |
<commit_before>#include "ClientConnection.hpp"
#include "ConsoleUtils.hpp"
#include "CryptoHandler.hpp"
#include "FlakyFakeSocketHandler.hpp"
#include "Headers.hpp"
#include "ProcessHelper.hpp"
#include "ServerConnection.hpp"
#include "SocketUtils.hpp"
#include "UnixSocketHandler.hpp"
#include <errno.h>
#include <pwd.... |
<commit_before>#include "StdAfx.h"
#include "Setup.h"
/************************************************************************/
/* Raid_ZulGurub.cpp Script */
/************************************************************************/
// High Priestess Jeklik AI
#define CN_JEKLIK 14517
#define TRANSFORM_B... |
<commit_before>#include <org/apache/lucene/store/GCJIndexInput.h>
#include <gnu/gcj/RawData.h>
#include <java/io/IOException.h>
#include <gcj/cni.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
#include <unistd.h>
#include <iostream>
using namespace ::std;
us... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before><commit_msg>Set STATE_CLOSE when error occured.<commit_after><|endoftext|> |
<commit_before>// RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -O1 -relaxed-aliasing -fstrict-enums -std=c++11 -o - | FileCheck %s
// RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -O1 -relaxed-aliasing -std=c++11 -o - | FileCheck --check-prefix=NO-STRICT-ENUMS %s
bool f(bool *x) {
return *... |
<commit_before>#include <QCoreApplication>
#include <QDesktopServices>
#include <QLocalServer>
#include <QFile>
#include "testservice.h"
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
QString serviceName;
#if defined(Q_OS_WIN)
QDir tempDirectory(QDesktopServices::storageLocation(QDesk... |
<commit_before>#include "minilzo209/minilzo.h"
#include <node.h>
#include <v8.h>
#include <sstream>
#include <node_buffer.h>
using namespace v8;
int compress(const unsigned char *input, unsigned char *output, lzo_uint in_len, lzo_uint& out_len) {
char* wrkmem = (char*) malloc(LZO1X_1_MEM_COMPRESS);
int res... |
<commit_before>/*
* Copyright (c) 2017 Immo Software
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions and th... |
<commit_before>/**
Demonstrate service vulnerability via stack smashing
*/
#include <stdio.h>
#include <stdlib.h>
/* Vulnerable machine's word size */
typedef unsigned int word;
int offset=0;
unsigned char xorby=0;
unsigned int bytesleft=0;
void emit(unsigned char x) {
x=x^xorby; // fix outgoing xor at this stage
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.