text stringlengths 54 60.6k |
|---|
<commit_before>#include "PropertyWidgetEx.h"
#include <QMouseEvent>
#include <QApplication>
#include <QMimeData>
#include <QDrag>
#include <QShortcut>
#include <QClipboard>
#include <QAction>
#include <QDebug>
static const QString kTextPlain = "text/plain";
const QString *pTextPlain = &kTextPlain;
QtnPropertyWidgetE... |
<commit_before>#include "ScriptObject.h"
#include "../Scene.h"
#include "../Application.h"
#include <regex>
namespace fse
{
ScriptObject::ScriptObject(const std::string& scriptName) : FSEObject(), script_name_(scriptName)
{
}
ScriptObject::ScriptObject(const std::string& scriptName, const sf::Vector2f& spawnP... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/gtk_preserve_window.h"
#include <gdk/gdkwindow.h>
#include <gtk/gtk.h>
#include <gtk/gtkwidget.h>
#include <gtk/gtkfi... |
<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 "chrome/browser/bookmarks/chrome_bookmark_client.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/cros/cryptohome_library.h"
#include "base/hash_tables.h"
#include "base/message_loop.h"
#include "ch... |
<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/oobe_progress_bar.h"
#include "base/logging.h"
#include "base/utf_string_conversions.h"
#inclu... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/notifications/de... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/search_engines/search_terms_data.h"
#include "base/logging.h"
#include "chrome/browser/browser_process.h"
#in... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/logging.h"
#include "base/task.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/sync/glue/data_type... |
<commit_before>
/*
* Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
* 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
... |
<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved
#include "TransitionToInteriorPointStage.h"
#include "InteriorsExplorerModel.h"
#include "InteriorsCameraController.h"
#include "InteriorInteractionModel.h"
#include "InteriorSelectionModel.h"
#include "InteriorTransitionModel.h"
namespace Exampl... |
<commit_before>#define CYBOZU_TEST_DISABLE_AUTO_RUN
#include <cybozu/test.hpp>
#include <cybozu/benchmark.hpp>
#include <cybozu/option.hpp>
#include <cybozu/xorshift.hpp>
#include <mcl/bn384.hpp>
#include <mcl/bn.hpp>
using namespace mcl::bn384;
mcl::fp::Mode g_mode;
#include "bench.hpp"
void testCurve(const mcl::C... |
<commit_before>#include "Globals.h"
#include "Application.h"
#include "ModulePhysics3D.h"
#include "PhysBody3D.h"
#include "PhysVehicle3D.h"
#include "Primitive.h"
#include "ModuleCamera3D.h"
#include "ModuleInput.h"
#ifdef _DEBUG
#pragma comment (lib, "Bullet/libx86/Debug/BulletDynamics_debug.lib")
#pragma comment (l... |
<commit_before>/**
* @file lars.hpp
* @author Nishant Mehta (niche)
*
* Definition of the LARS class, which performs Least Angle Regression and the
* LASSO.
*/
#ifndef __MLPACK_METHODS_LARS_LARS_HPP
#define __MLPACK_METHODS_LARS_LARS_HPP
#include <armadillo>
#include <mlpack/core.hpp>
#define EPS 1e-16
namespa... |
<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>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2014. All rights reserved
*/
#include "../../StroikaPreComp.h"
#if qPlatform_Windows
#include <Windows.h>
#endif
#include "../../../Foundation/Characters/CString/Utilities.h"
#include "../../../Foundation/Characters/String_Constant.h"
#i... |
<commit_before>//===-- SchedInfo.cpp - Generic code to support target schedulers ----------==//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>//===-- LiveRegMatrix.cpp - Track register interference -------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===--- Action.cpp - The LLVM Compiler Driver ------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open
// Source License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#if !defined(__CINT__) || defined(__MAKECINT__)
#include <TH2F.h>
#include <TGrid.h>
#include <TCanvas.h>
#include <TStopwatch.h>
#include <TStyle.h>
#include "AliRawReaderDate.h"
#include "AliRawReaderRoot.h"
#include "AliITSRawStreamSDD.h"
#include "AliITSRawStreamSDDCompressed.h"
#endif
// Macro to d... |
<commit_before>/**
* @file IntegralImageProvider.cpp
*
* Implementation of class IntegralImageProvider
*
*/
#include "IntegralImageProvider.h"
IntegralImageProvider::IntegralImageProvider()
{
}
IntegralImageProvider::~IntegralImageProvider()
{
}
void IntegralImageProvider::execute(CameraInfo::CameraID id)
{
camer... |
<commit_before>/*
* Copyright 2007-2020 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <[email protected]>
*
* 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... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Albrecht
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#define DUNE_STUFF_FUNCTIONS_DISABLE_CHECKS
// This one has to come first (includes the ... |
<commit_before>#include <cstdlib>
#include <SDL2/SDL.h>
#include "KeyListener.h"
KeyListener::KeyListener(){}
KeyListener::~KeyListener(){}
int KeyListener::query(){
// message processing loop
SDL_Event event;
while (SDL_PollEvent(&event))
{
// check for messages
switch (event.type)
... |
<commit_before>//===-- ScalarTest.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>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Baozeng Ding <[email protected]>
// author: Vassil Vassilev <[email protected]>
//
// This file is dual-licensed: you can choose to license it under t... |
<commit_before>//===-- Local.cpp - Functions to perform local transformations ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_WALK_HH_INCLUDED
#define DUNE_STUFF_WALK_HH_INCLUDED
#include... |
<commit_before>/*
* Author: Ivan De Cesaris <[email protected]>
* Copyright (c) 2015 - 2016 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 restrict... |
<commit_before>/******************************************************************************
* Copyright 2019 The Apollo 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 ... |
<commit_before>//===- ViewOpGraph.cpp - View/write op graphviz graphs --------------------===//
//
// Copyright 2019 The MLIR Authors.
//
// 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>/*
* Copyright 2016 - 2019 [email protected]
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "../gfx.hpp"
namespace nostalgia::core... |
<commit_before><commit_msg>Treap added (again)<commit_after>class treap{
struct item{
int x, y, l, r, k;
};
private:
vector<item> t;
public:
void resize(int num) {
t.resize(num);
}
void init(int v, int x) {
t[v].x = x;
t[v].y = rand();
t[v].l = t[v].r = 0... |
<commit_before>#include "quering.hh"
unsigned char * read_binary_file(const char * filename, size_t filesize)
{
//Get filesize
int fd;
unsigned char * map;
fd = open(filename, O_RDONLY);
if (fd == -1) {
perror("Error opening file for reading");
exit(EXIT_FAILURE);
}
map = (unsigned char *)mmap... |
<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>/********************************************************************
* AUTHORS: Trevor Hansen
*
* BEGIN DATE: May, 2010
*
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... |
<commit_before>//===- Signals.cpp - Signal Handling support ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//... |
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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>/*
* This file is part of TelepathyQt4
*
* Copyright (C) 2008-2010 Collabora Ltd. <http://www.collabora.co.uk/>
* Copyright (C) 2008-2010 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... |
<commit_before>#include "callback_engine.hpp"
#include "callback_object.hpp"
#include "code/ylikuutio/common/any_value.hpp"
#include "code/ylikuutio/hierarchy/hierarchy_templates.hpp"
// Include standard headers
#include <iostream> // std::cout, std::cin, std::cerr
#include <queue> // std::queue
#include <stdint.h>... |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published ... |
<commit_before><commit_msg>Removing second SetState from main, was just using it for testing.<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include "Dominio.h"
#include "Entidades.h"
#include "TestesDominio.h"
#include "TestesEntidades.h"
using namespace std;
int main()
{
cout << "Testes de Dominios" << endl;
TUNome testeNome;
switch(testeNome.run()){
case TUNome::SUCESSO: cou... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.... |
<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 "content/browser/plugin_service_impl.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
... |
<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.
// Portions based heavily on:
// third_party/WebKit/Source/WebKit/chromium/public/gtk/WebInputEventFactory.cpp
//
/*
* Copyright (C) 2... |
<commit_before>/*
DAcase2.c
This program connects to the DAQ data source passed as argument
and populates local "./result.txt" file with the ids of events received
during the run.
The program exits when being asked to shut down (daqDA_checkshutdown)
or End of Run event.
Messages on stdout are exported to DAQ log sy... |
<commit_before>// @(#)root/thread:$Id$
// Author: Fons Rademakers 02/07/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
* 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
* (the ... |
<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 "content/renderer/pepper/pepper_platform_image_2d_impl.h"
#include "build/build_config.h"
#include "content/common/view_messa... |
<commit_before>/*
* Copyright (c) 2012 Stanford University
*
* 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 IS PROVIDED "AS IS" AN... |
<commit_before><commit_msg>INTEGRATION: CWS dr12 (1.25.12); FILE MERGED 2004/08/27 07:46:05 sab 1.25.12.5: RESYNC: (1.37-1.39); FILE MERGED 2004/07/26 22:44:54 sab 1.25.12.4: RESYNC: (1.30-1.37); FILE MERGED 2004/05/06 11:08:19 dr 1.25.12.3: RESYNC: (1.26-1.30); FILE MERGED 2004/02/25 10:35:23 dr 1.25.12.2: RESYNC: (1.... |
<commit_before>//===--- TypeCheckPattern.cpp - Type Checking for Patterns ----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>//===-- ConstantRange.cpp - ConstantRange implementation ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>//g++ *.cpp -lpthread -lwiringPi -std=c++11
//LATER MET GUI MAKEFILE <sudo make>
#include "Sensor.h"
#include "I22cCom.h"
#include "Log.h"
#include "Camera.h"
#include "Light.h"
#include "MotionSensor.h"
#include "PressureSensor.h"
#define I2CLOC "/dev/i2c-1"// <-- this is the real I2C device ... |
<commit_before>//===-- X86JITInfo.cpp - Implement the JIT interfaces for the X86 target --===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group 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: salvd.cxx,v $
*
* $Revision: 1.22 $
*
* last change: $Author: kz $ $Date: 2008-03-05 17:01:28 $
*
* The Contents of this file are made av... |
<commit_before><commit_msg>protect against past-the-end access of empty string<commit_after><|endoftext|> |
<commit_before>#ifndef TAKEWHILE__H__
#define TAKEWHILE__H__
#include "iterbase.hpp"
#include <utility>
#include <iterator>
#include <initializer_list>
namespace iter {
//Forward declarations of TakeWhile and takewhile
template <typename FilterFunc, typename Container>
class TakeWhile;
template <ty... |
<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>/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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 applica... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, 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>#ifndef __GLOBALS_HPP_INCLUDED
#define __GLOBALS_HPP_INCLUDED
#include "any_value.hpp"
// GCC (at least g++ 4.7.2) and Visual Studio 2015 do support
// setting default values of a struct using C++11 syntax.
// Clang 3.7.0 and Visual Studio 2013 do not support
// setting default values of a struct using... |
<commit_before>#include "ws2812b.h"
#include "string.h"
int WS2812B_init(WS2812B *self, int pin, Colour *pixels, int flags, unsigned int columns, unsigned int rows)
{
if (digitalPinToPort(pin) == NOT_A_PIN) return 1;
self->port = portOutputRegister(digitalPinToPort(pin));
self->bit = digitalPinToBitMask(pin);
... |
<commit_before>/*
* File: PPAxisAncestor.cpp
* Copyright (C) 2004 The Institute for System Programming of the Russian Academy of Sciences (ISP RAS)
*/
#include "common/sedna.h"
#include "tr/executor/xqops/PPAxisAncestor.h"
#include "tr/crmutils/node_utils.h"
#include "tr/executor/base/PPUtils.h"
#include "tr/exec... |
<commit_before>#include <znc/main.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/Modules.h>
#include <znc/Nick.h>
#include <znc/Chan.h>
#include <znc/IRCSock.h>
#include <znc/version.h>
#include <limits>
#include "twitchtmi.h"
#include "jload.h"
#if (VERSION_MAJOR < 1) || (VERSION_MAJOR == 1 && V... |
<commit_before>// Copyright 2017-2020 The Verible Authors.
//
// 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 a... |
<commit_before>/*
* Copyright (c) 2012 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>#ifndef CAT2MAP_HPP
#define CAT2MAP_HPP
#include <fstream>
#include <iostream>
#include <exception>
#include <vector>
#include <cmath>
#include <cassert>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/log/trivial.hpp>
#include <boost/tokenizer.hpp... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by Ingo Kloecker <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify ... |
<commit_before>/*
* ReaderWriterMutex.hpp
*
* Copyright (C) 2019 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 following terms:
*
* Permission is hereby grant... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// operator_to_plan_transformer.cpp
//
// Identification: src/optimizer/operator_to_plan_transformer.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//==... |
<commit_before>/*
* Copyright (c) 2014 odan
* License: MIT License
*/
#include "LCG.hpp"
namespace PokeRNG {
template<typename UIntType, UIntType mul, UIntType add, UIntType mask>
LCG<UIntType, mul, add, mask>::LCG() :
div(calc_inverse_tmp<UIntType, mul, mask>::value), sub(~(div * add) + 1ULL) { }
template<... |
<commit_before>/**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: window3.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2007-06-27 20:36:17 $
*
* The Contents of this file are made a... |
<commit_before>#pragma once
#include "jsd_core.hpp"
#include "jsd_check.hpp"
#include "jsd_options.hpp"
namespace JSON
{
template <typename T>
void try_parse(T& obj, std::string const& name, PropertyTree const& tree, ParsingOptions const& options = DEFAULT_PARSER_OPTIONS,
typename std::enable... |
<commit_before>/*
*
* Copyright (C) 2004 Mekensleep
*
* Mekensleep
* 24 rue vieille du temple
* 75004 Paris
* [email protected]
*
* 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... |
<commit_before>#include <testutilscxx.h>
#include <stdexcept>
void
assert_equals(CuTest *tc,
const Frame &f1,
const Frame &f2)
{
real pos = f1.position().distance(f2.position());
CuAssertDblEquals(tc, 0, pos, POINT_EPSILON);
real tan = f1.tangent().distance(f2.tangent());
CuAssertDblEqu... |
<commit_before>#include "IShader.h"
#include "common/Exception.h"
#include <gl/glew.h>
#include <stdio.h>
#include <assert.h>
namespace d2d
{
IShader::IShader()
{
m_prog = 0;
}
IShader::~IShader()
{
DeleteShader();
}
void IShader::InitShader(const char* VS, const char* FS)
{
GLuint prog = glCreateProgram();
... |
<commit_before>/* dtkComposerNodeMatrixSquareRealOperatorBinary.cpp ---
*
* Author: slekout
* Copyright (C) 2011 - Babette lekouta, Inria.
* Created: Thu Apr 26 15:58:22 2012 (+0200)
* Version: $Id$
* Last-Updated:
* By:
* Update #:
*/
/* Commentary:
*
*/
/* Change log:
*
*/
#include "dtk... |
<commit_before>/*
* Copyright 2009 Griffin Software
*
* 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><commit_msg>Dead function prototypes gone.<commit_after><|endoftext|> |
<commit_before>// This file is part of Parsito <http://github.com/ufal/parsito/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v... |
<commit_before>#include "prefixedoutstream.h"
#include <string>
#include <iostream>
#include <streambuf>
#include <string.h>
using namespace mlpack::io;
PrefixedOutStream& PrefixedOutStream::operator<< (bool& val) {
BaseLogic<bool&>(val);
return *this;
}
PrefixedOutStream& PrefixedOutStream::operator<< (short& ... |
<commit_before>#include "continuous_fmm.h"
int main(int argc, char *argv[]) {
// Initialize FastExec (parameter handling stuff).
fx_init(argc, argv, NULL);
////////// READING PARAMETERS AND LOADING DATA /////////////////////
// FASTexec organizes parameters and results into submodules. Think
// of this a... |
<commit_before>#include <cvd/config.h>
#include <cvd/image_convert.h>
#include <cvd/utility.h>
#include <arm_neon.h>
namespace CVD {
namespace Internal {
void convert_rgb_to_grey_NEON(const SubImage<Rgb<byte> >& from, SubImage<byte>& to, const unsigned r, const unsigned g, const unsigned b) {
const uint8x8_t re... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* 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>//===-- SIMachineFunctionInfo.cpp - SI Machine Function Info -------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
/// \file
//===-------------------------------------... |
<commit_before>//===- BreakCriticalEdges.cpp - Critical Edge Elimination Pass ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// recycle result vector
on_all_cores([=] {
swap_refs({{symsrc}}.data, {{symsink}}.data);
{{symsink}}.data->vector.clear();
});
<commit_msg>newline<commit_after>// recycle result vector
on_all_cores([=] {
swap_refs({{symsrc}}.data, {{symsink}}.data);
{{symsink}}.data->vector.clear();
});
... |
<commit_before>#include "Engine.hpp"
int ProcessMudFunctions() {
// -- Handle our server protocols
if(!System.Server->ResetPollDescriptors()) { return PROCESS_FAILED; }
if(!System.Server->ResetFDControllers()) { return PROCESS_FAILED; }
if(!System.Server->SelectAndPoll()) { return PROCESS_FAILED; }
Syste... |
<commit_before>#include "Engine.hpp"
Server::Server() {
};
Server::~Server() {
}
bool Server::InitiatePort(int portNum) {
static struct sockaddr_in sa_zero;
struct sockaddr_in sa;
int x = 1;
int fd;
if ( ( fd = socket( AF_INET, SOCK_STREAM, 0 ) ) < 0 )
{
// -- TODO: insert logging mec... |
<commit_before>#ifndef ECL_ISTREAM_HPP
#define ECL_ISTREAM_HPP
#include <cstddef>
#include <cstdint>
namespace ecl {
template< class IO_device >
class istream
{
public:
// Provides type information of the underlaying device
using device_type = IO_device;
// Initializes a stream with given device
// N... |
<commit_before>/*******************************************************************************
* Copyright (c) 2009-2014, MAV'RIC 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... |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
<commit_before>// Copyright (c) 2013, Matthew Harvey. All rights reserved.
#include "reconciliation_entry_list_ctrl.hpp"
#include "entry.hpp"
#include "filtered_entry_list_ctrl.hpp"
#include "finformat.hpp"
#include "locale.hpp"
#include "ordinary_journal.hpp"
#include "reconciliation_status_marker.hpp"
#include "summ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbwiz.cxx,v $
*
* $Revision: 1.20 $
*
* last change: $Author: kz $ $Date: 2008-03-06 18:18:41 $
*
* The Contents of this file are made av... |
<commit_before>// Copyright (c) 2013, Matthew Harvey. All rights reserved.
#include "reconciliation_entry_list_ctrl.hpp"
#include "entry.hpp"
#include "filtered_entry_list_ctrl.hpp"
#include "finformat.hpp"
#include "locale.hpp"
#include "ordinary_journal.hpp"
#include "summary_datum.hpp"
#include <boost/date_time/gre... |
<commit_before>// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
<commit_before>/*
* Copyright (C) 2004-2008 Marc Boris Duerner
*
* 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) any later ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.