text stringlengths 54 60.6k |
|---|
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: molecularFileDialog.C,v 1.14 2003/03/20 16:26:44 anhi Exp $
#include <BALL/MOLVIEW/GUI/DIALOGS/molecularFileDialog.h>
#include <BALL/FORMAT/PDBFile.h>
#include <BALL/FORMAT/HINFile.h>
#include <BALL/FORMAT/MOLFile.h>
#include <BALL/FORMAT/... |
<commit_before>/***************************************************************************
filter_pmail.cxx - Pegasus-Mail import
-------------------
begin : Sat Jan 6 2001
copyright : (C) 2001 by Holger Schurig
email ... |
<commit_before>#include "player.h"
#include <cmath>
const double PI = 3.14159265358979323846264338329750288419716939937510582;
const double CROUCH_OFFSET = 0.30;
const double CRAWL_OFFSET = 0.70;
Player::Player() : Speed(0), Moving(false), Crouching(false), Crawling(false), Name("Untitled"), StandingOn(NULL), Gravit... |
<commit_before>#include "player.h"
#include "gamestate.h"
#include "datastructures.h"
#include "mccree.h"
Player::Player(Gamestate *state) : character(0)
{
;
}
Player::~Player()
{
;
}
void Player::midstep(Gamestate *state, double frametime)
{
;
}
void Player::clone(Gamestate *oldstate, Gamestate *newst... |
<commit_before>//===- DeadStoreElimination.cpp - Dead Store Elimination ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Owen Anderson and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>// SA:MP Profiler plugin
//
// Copyright (c) 2011 Zeex
//
// 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>//===- Reg2Mem.cpp - Convert registers to allocas -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*******************************************************************************
Licensed to the OpenCOR team under one or more contributor license agreements.
See the NOTICE.txt file distributed with this work for additional information
regarding copyright ownership. The OpenCOR team licenses this file... |
<commit_before>/** Implementation of the pqxx::result class and support classes.
*
* pqxx::result represents the set of result rows from a database query
*
* Copyright (c) 2001-2019, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code,... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <string>
#include <string.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <errno.h>
using namespace std;
int main() {
while (1) {
string cmd;
string arg1;
string arg2;
cout << "Please enter cmd: ";
getline(cin... |
<commit_before>/* Copyright 2016 The TensorFlow 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
Unless required by appl... |
<commit_before>////////////////////////////////////////////////////////////////////////
// This file is part of Grappa, a system for scaling irregular
// applications on commodity clusters.
// Copyright (C) 2010-2014 University of Washington and Battelle
// Memorial Institute. University of Washington authorizes use ... |
<commit_before>#include <Halide.h>
#include <stdio.h>
#include "clock.h"
using namespace Halide;
int main(int argc, char **argv) {
Func f;
Var x, y;
f(x, y) = x + y;
f.parallel(x);
// Having more threads than tasks shouldn't hurt performance too much.
double correct_time = 0;
for (int t... |
<commit_before>/**
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2009 Appcelerator, Inc. All Rights Reserved.
*/
#include "utils.h"
#include <cstdio>
namespace UTILS_NS
{
namespace PlatformUtils
{
std::string GetFir... |
<commit_before><commit_msg>clang format<commit_after><|endoftext|> |
<commit_before>//---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 Greenplum, Inc.
//
// @filename:
// CMDIdGPDB.cpp
//
// @doc:
// Implementation of metadata identifiers
//---------------------------------------------------------------------------... |
<commit_before>/*
MPL3115A2 Barometric Pressure Sensor Library
By: Nathan Seidle
SparkFun Electronics
Date: September 24th, 2013
License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
Get pressure, altitude and temperature from the MPL3115A2 sensor.
... |
<commit_before>/*
MPL3115A2 Barometric Pressure Sensor Library
By: Nathan Seidle
SparkFun Electronics
Date: September 24th, 2013
License: This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
Get pressure, altitude and temperature from the MPL3115A2 sensor.
... |
<commit_before>/*****************************************************************************
* win32_factory.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@... |
<commit_before>/*
* Matcha Robotics Application Framework
*
* Copyright (C) 2011 Yusuke Suzuki
*
* 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.... |
<commit_before><commit_msg>Update open_space_info.cc<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* Copyright 2017 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>#include "net/grpc/gateway/codec/grpc_web_encoder.h"
#include <cstdint>
#include <cstring>
#include <vector>
#include "net/grpc/gateway/runtime/types.h"
#include "third_party/grpc/include/grpc++/support/byte_buffer.h"
#include "third_party/grpc/include/grpc++/support/slice.h"
namespace grpc {
namespac... |
<commit_before>// @(#)root/base:$Name: $:$Id: TFolder.cxx,v 1.28 2007/01/25 11:47:53 brun Exp $
// Author: Rene Brun 02/09/2000
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>//
// FilePath.cpp
//
// Functions for helping with management of directories and file paths.
//
// Copyright (c) 2002-2004 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include <stdio.h>
#include <errno.h>
#include "FilePath.h"
#ifdef unix
# include <unistd.h>
# inclu... |
<commit_before>/*
* File: ImageJPEG.cpp
* Author: Heinrich Mellmann
*
* Created on 11. Dezember 2018, 17:24
*/
// choose the compression method
//#define JPEG_COMPRESS_TURBO
#define JPEG_COMPRESS_DEFAULT
//#define JPEG_COMPRESS_NONE
#include "ImageJPEG.h"
#include "Messages/Framework-Representations.pb.h"
#in... |
<commit_before>//
// Implements the following classes:
//
// AutoDialog - An improvement to wxDialog which makes validation easier.
//
// AutoPanel - An improvement to wxPanel which makes validation easier.
//
// wxNumericValidator - A validator capable of transfering numeric values.
//
// Copyright (c) 2001-2004 Virtu... |
<commit_before>// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law ... |
<commit_before>// 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 "base/file_path.h"
#include "base/file_util.h"
#include "base/scoped_ptr.h"
#include "base/stri... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkMinimumMaximumImageCalculatorTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights res... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkDiscreteGaussianImageFilterTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reser... |
<commit_before>#include <sstream>
#include "Exceptions.h"
#include "Extensions.h"
#include "UNetSender.h"
// -----------------------------------------------------------------------------
using namespace std;
using namespace UniSetTypes;
using namespace UniSetExtensions;
// ----------------------------------------------... |
<commit_before>//
// "$Id: Fl_XColor.H 4288 2005-04-16 00:13:17Z mike $"
//
// X-specific color definitions for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2001 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library Genera... |
<commit_before>#include <stdio.h>
#include <ctype.h>
#include <iostream>
#include <fstream>
#include <string>
#include <metaUtils.h>
#include <metaObject.h>
#include <metaScene.h>
#include <metaTube.h>
#include <metaEllipse.h>
#include <metaGaussian.h>
#include <metaImage.h>
#include <metaBlob.h>
#include <metaLandmar... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioe_dl_sco... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_fbc_ioo_dl_sco... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_update_security_ctr... |
<commit_before>#include "search.h"
#include "logging.h"
#include <boost/algorithm/string.hpp>
#include <iostream>
void SearchParams::setSearchTerms(const std::string & terms) {
search_field_ = terms;
//split search terms, and remove empty ones
boost::split(search_terms_, terms, boost::is_any_of(" "));
... |
<commit_before>//===--- CommentDumper.cpp - Dumping implementation for Comment ASTs ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>
#ifdef _WIN32
#define GLEW_STATIC 1
#include <GL/glew.h>
#endif
#include "efk.GraphicsGL.h"
#include <EffekseerRendererGL/EffekseerRenderer/EffekseerRendererGL.GLExtension.h>
#include <EffekseerRendererGL/EffekseerRenderer/GraphicsDevice.h>
namespace efk
{
RenderTextureGL::RenderTextureGL(Graphics* gr... |
<commit_before>#ifndef test_entitygetpublicid
#define test_entitygetpublicid
/*
This c++ source file was generated by for Arabica
and is a derived work from the source document.
The source document contained the following notice:
Copyright (c) 2001-2004 World Wide Web Consortium,
(Massachusetts Institute of Technol... |
<commit_before>/*
* FUNCTION:
* ODBC driver -- developed/tested with unixodbc http://www.unixodbc.org
*
* ODBC is basically brain-damaged, and so is this driver.
* The problem is that ODBC forces you to guess how many columns there
* are in your reply, and etc. which we don't know a-priori. Also
* makes VARCHAR... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz>
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 r... |
<commit_before>//===--- Migrator.cpp -----------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>/**
* Copyright (c) 2016, Loic Blot <loic.blot@unix-experience.fr>
* All rights reserved.
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above co... |
<commit_before><commit_msg>[lsan] Add _os_trace into LSan's suppression list<commit_after><|endoftext|> |
<commit_before>// common re2 things
#include <stdio.h>
#include <re2/re2.h>
#include <iostream>
#include <string>
#include <sys/time.h>
#include <algorithm>
#include <inttypes.h>
using namespace std;
#ifndef USE_UTF8
#define ENCODING_OPTION RE2::Options::EncodingLatin1
#else
#define ENCODING_OPTION RE2::Options:... |
<commit_before>/*
* CustomVar.cpp
* OpenLieroX
*
* Created by Albert Zeyer on 24.02.10.
* code under LGPL
*
*/
#include "CustomVar.h"
#include "CBytestream.h"
#include "Debug.h"
#include "game/Attr.h"
#include "util/macros.h"
void CustomVar::reset() {
assert( thisRef.classId != ClassId(-1) );
std::vecto... |
<commit_before>/*
* Copyright (c) 2014-2018 Kartik Kumar (me@kartikkumar.com)
* Copyright (c) 2014-2016 Marko Jankovic, DFKI GmbH
* Copyright (c) 2014-2016 Natalia Ortiz, University of Southampton
* Copyright (c) 2014-2016 Juan Romero, University of Strathclyde
* Distributed under the MIT License.
* See accompany... |
<commit_before>#ifndef HOUGH_IMAGE_HPP
#define HOUGH_IMAGE_HPP
#include "fast_hough.hh"
#include "vpp/algorithms/Line_tracker_4_sfm/Hough_Extruder/feature_matching_hough.hh"
#include "vpp/algorithms/Line_tracker_4_sfm/miscellanous/operations.hh"
namespace vpp{
int SobelX[3][3] =
{
-1, 0, 1,
-2, 0, 2,
-1,... |
<commit_before>//===--- SROA.cpp - Scalar Replacement of Aggregates ----------------------===//
//
// 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>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TX... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#include "TextureD3D11.h"
#include "core/Engine.h"
#include "RendererD3D11.h"
#include "utils/Log.h"
namespace ouzel
{
namespace graphics
{
static DXGI_FORMAT convertPixelFormat(PixelFormat pixelFormat)
... |
<commit_before>#include "AssembledSolver.h"
#include <sofa/component/linearsolver/EigenSparseMatrix.h>
#include <sofa/component/linearsolver/EigenVector.h>
#include <sofa/core/ObjectFactory.h>
#include <sofa/simulation/common/MechanicalOperations.h>
#include <sofa/simulation/common/VectorOperations.h>
#include "Assem... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief map the environment to javascript
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache L... |
<commit_before>//===-- BasicBlock.cpp - Implement BasicBlock related methods -------------===//
//
// 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>#include <boost/version.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <iostream>
#include <mapnik/memory_datasource.hpp>
#include <mapnik/feature.hpp>
#include <mapnik/feature_factory.hpp>
#include <mapnik/unicode.hpp>
#include <mapnik/geometry.hpp>
#include <mapnik/map.hpp>
#include <mapnik... |
<commit_before>#include "training/species_manager.hpp"
#include "utility/random.hpp"
using namespace Hippocrates;
using namespace Hippocrates::Training;
auto SpeciesManager::CreateInitialOrganisms(Bodies& bodies) -> void {
species.clear();
for (auto& currTrainer : bodies) {
Genotype::Genome standardGenes(currTra... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2006 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This l... |
<commit_before>/*
MIT License
Copyright (c) 2017 Alan Tonks
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, modify, merg... |
<commit_before>/*
MIT License
Copyright (c) 2017 Alan Tonks
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, modify, merg... |
<commit_before>#include <stdlib.h>
#include <sys/socket.h>
#include <string.h>
#include <netinet/in.h>
#include <cstring>
#include <stdio.h>
#include <string>
#include <iostream>
#include <list>
#include <map>
#include "server.h"
#include "duckchat.h"
// TODO Server can accept connections.
// TODO Server handles Log... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "packet.h"
#define USAGE "Usage:\r\nc \r\n[tux machine number] \r\n[probability of packet... |
<commit_before>/* Copyright 2015-2018 Egor Yusov
*
* 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
*
* THE SOFTWARE IS PRO... |
<commit_before>#include <Beacon.h>
#include <sys/time.h>
#include "HCIDumpParser.h"
// Uncomment to publish the raw byte[] for the beacon, otherwise, properties are sent
//#define SEND_BINARY_DATA
static int64_t currentMilliseconds() {
timeval now;
gettimeofday(&now, nullptr);
int64_t nowMS = now.tv_sec;... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2019 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>#include "gtest/gtest.h"
#include "tcframe/io.hpp"
#include <set>
#include <sstream>
#include <string>
#include <vector>
using std::ostringstream;
using std::set;
using std::string;
using std::vector;
using tcframe::IOFormat;
using tcframe::IOFormatException;
using tcframe::IOFormatsCollector;
using t... |
<commit_before>//----------------------------------------------------------------------------
// Copyright(c) 2015-2020, Robert Kimball
// 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>/* -------------------------------------------------------------------------- *
* OpenSim: buildDeviceModel.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and ... |
<commit_before>/*******************************************************************************
Copyright (c) 2012-2016 Alex Zhondin <lexxmark.dev@gmail.com>
Copyright (c) 2015-2020 Alexandra Cherdantseva <neluhus.vagus@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this fil... |
<commit_before>// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "TextAssetEditorPrivatePCH.h"
#include "Factories.h"
#include "SDockTab.h"
#define LOCTEXT_NAMESPACE "FTextAssetEditorToolkit"
DEFINE_LOG_CATEGORY_STATIC(LogTextAssetEditor, Log, All);
/* Local constants
************************... |
<commit_before>
#include <cstdio>
#include <cstdlib>
#include <cstddef>
#include <cstring>
#include <ctime>
#include <memory>
#include "tagha.h"
struct Player {
float speed;
uint32_t health, ammo;
};
/* lldiv_t lldiv(long long int numer, long long int denom); */
void Native_lldiv(class CTagha *sys, union TaghaVal... |
<commit_before>#include "musicabstractmoveresizewidget.h"
#include <QPainter>
#include <QMouseEvent>
#include <QApplication>
#define DISTANCE 5
MusicAbstractMoveResizeWidget::MusicAbstractMoveResizeWidget(QWidget *parent)
: QWidget(parent)
{
m_struct.m_mouseLeftPress = false;
m_direction = Direction_No;... |
<commit_before>#include "amftest.hpp"
#include "amf.hpp"
#include "types/amfdouble.hpp"
static void isEqual(const std::vector<u8>& expected, double value) {
ASSERT_EQ(expected, AmfDouble(value).serialize());
}
TEST(DoubleSerializationTest, SimpleValues) {
isEqual(v8 { 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00... |
<commit_before>// Copyright 2010-2013 The CefSharp Project. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "Stdafx.h"
#include "Cef.h"
#include "Settings.h"
#include "Internals\ClientApp.h"
using namespace System::Runtime::Interop... |
<commit_before>
//ADDED FOR COMPATIBILITY WITH WIRING
extern "C" {
#include <stdlib.h>
}
#include "CmdMessenger.h"
#include <Streaming.h>
//////////////////// Cmd Messenger imp ////////////////
CmdMessenger::CmdMessenger(Stream &ccomms)
{
comms = &ccomms;
init(' ',';');
}
CmdMessenger::CmdMessenger(Stream &ccom... |
<commit_before>// Natron
//
/* 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/. */
/*
*Created by Alexandre GAUTHIER-FOICHAT on 6/1/2012.
*contact: immarespond at gmail ... |
<commit_before>#include "Cube.h"
#include <GL/glew.h>
#include <MathGeoLib/include/Math/float3.h>
#include <MathGeoLib/include/Math/MathFunc.h>
Cube::Cube() :
Primitive() {}
Cube::Cube(const float3& position, const Quat& rotation) :
Primitive(position, rotation) {}
Cube::Cube(const float3& position, const Quat& ... |
<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 "base/command_line.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extension_s... |
<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/extensions/sandboxed_extension_unpacker.h"
#include <set>
#include "base/crypto/signature_verifier.h"
#inclu... |
<commit_before> /*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: NPreparedStatement.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 05:51:42 $
*
* The Contents of this fil... |
<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/browser/dom_storage/dom_storage_message_filter.h"
#include "base/auto_reset.h"
#include "base/bind.h"
#include "base... |
<commit_before>/**
* Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* This file is licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License. A copy of
* the License is located at
*
* http://aws.amazon.... |
<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 (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/chrome_paths_internal.h"
#include "base/environment.h"
#include "base/file_util.h"
#include "base/memory/scope... |
<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/file_util.h"
#include "base/path_service.h"
#include "base/platform_thread.h"
#include "base/string_util.h"
#includ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rscdbl.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-09-17 15:57:57 $
*
* The Contents of this file are made a... |
<commit_before>/* -*- mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
// vim:sts=4:sw=4:ts=4:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s
/*
* Copyright (C) 2014 FFLAS-FFACK group
*
* Written by Clement Pernet <Clement.Pernet@imag.fr>
* Brice Boyer (briceboyer) <boyer.brice@gmail.com>
*
*
* ==... |
<commit_before>//
// Pipeline.cpp
// Vortex2D
//
#include "Pipeline.h"
#include <algorithm>
namespace Vortex2D { namespace Renderer {
GraphicsPipeline::Builder::Builder()
{
mInputAssembly = vk::PipelineInputAssemblyStateCreateInfo()
.setTopology(vk::PrimitiveTopology::eTriangleList);
mRasteri... |
<commit_before>#include "colibri_ca.h"
scan_ca::scan_ca()
{
goal_dir = 60; //goal direction
memset(scan4ca, 0.2, NUM_RAY4CA);
ptrScan4ca = scan4ca;
memset(delta_phi_vec, 0, NUM_RAY4CA);
memset(kp_phi_vec, 0, NUM_RAY4CA);
memset(phi_start_vec, 1, NUM_RAY4CA);
memset(phi_end_vec, 181, NUM_RAY4CA);
memset(krf... |
<commit_before>/*
I heard of the longest palindrome string problem the first time,
and was researching for what it is. Then I found leetcode official tuto.
http://articles.leetcode.com/2011/11/longest-palindromic-substring-part-i.html
Among my google result, it was the best study material I had.
It was short and simple... |
<commit_before>#if defined(_MSC_VER)
#define _CRTDBG_MAP_ALLOC
#define _CRT_SECURE_NO_WARNINGS
#include <crtdbg.h>
#include <sys/stat.h>
#else
#include <sys/stat.h>
#endif
#include <string>
//#include "CoolProp.h"
#include "IncompressibleBackend.h"
#include "../Fluids/FluidLibrary.h"
#include "Solvers.h"
#include "Ma... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.