text stringlengths 54 60.6k |
|---|
<commit_before>#pragma once
/*
** Copyright (C) 2013 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QI_SIGNAL_HPP_
#define _QI_SIGNAL_HPP_
#include <qi/atomic.hpp>
#include <qi/eventloop.hpp>
#include <qi/anyfunction.hpp>
#include <qi/type/typeobject.hpp>
#include <boost/thread/thread.hpp>
#include... |
<commit_before>#include <iostream>
#include <algorithm>
#include <map>
#include <string>
#include <cstring>
#include <fstream>
#include <cmath>
#include <getopt.h>
#include <vector>
#include <unordered_map>
#include <boost/config.hpp>
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/undirected_graph.hp... |
<commit_before>/*************************************************************************
BarriereEntree - Gère une barrière d'entrée du parking
-------------------
début : 18/03/2016
copyright : (C) 2016 par Arnaud Favier & Marc Gagné
e-mail... |
<commit_before> // Yigit Suoglu Jul 28, 2016
// Encode and decode ASCII between char and bool array
#include "encode_decode.h"
void encodeASCII(char in, bool & out0, bool & out1, bool & out2, bool & out3, bool & out4, bool & out5, bool & out6, bool & out7)
{
bool out[8];
for(int j = 0; j < 8; j++)
ou... |
<commit_before>#define HAS_VTK 1
/* The Circle class (All source codes in one file) (CircleAIO.cpp) */
#include <iostream> // using IO functions
#include <string> // using string
#include "../include/LaShellShellDisplacement.h"
using namespace std;
LaShellShellDisplacement::LaShellShellDisplacement()
{
_so... |
<commit_before><commit_msg>Late addressing<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: QNameToString.hxx,v $
* $Revisio... |
<commit_before>/* notes
The only hard part about this will be the ace. Could be 1 or 11.
The deck is suit-less, however, it would be a good idea to use an array to pick from
where it would be like [1,2,3,...10,10,10,1,2,... repeat]. The reason for this is
there are three 10s so the chance of getting one should be h... |
<commit_before>/** \brief Utility for deleting partial or entire MARC records based on an input list.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it an... |
<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/renderer/gpu/gpu_video_decode_accelerator_host.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/me... |
<commit_before>/*
* Search.cpp
*
* Created on: 16 Nov 2015
* Author: hieu
*/
#include <boost/foreach.hpp>
#include "Search.h"
#include "../Manager.h"
#include "../Hypothesis.h"
#include "../../InputPaths.h"
#include "../../InputPath.h"
#include "../../System.h"
#include "../../TranslationTask.h"
#include "..... |
<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/bug_report_view.h"
#include "app/combobox_model.h"
#include "app/l10n_util.h"
#include "app/win_util.h"... |
<commit_before><commit_msg>check optimization flags, small fix<commit_after><|endoftext|> |
<commit_before><commit_msg>Fix infinite loop in TileLayer update method when called with inconsistent state (zero view dimensions)<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* 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 require... |
<commit_before>/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
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 t... |
<commit_before>/*
* FogLAMP process class
*
* Copyright (c) 2018 Dianomic Systems
*
* Released under the Apache 2.0 Licence
*
* Author: Massimiliano Pinto
*/
#include <sending.h>
#include <condition_variable>
#include <reading_set.h>
#include <plugin_manager.h>
#include <plugin_api.h>
#include <plugin.h>
/**
... |
<commit_before>
#ifdef _DEBUG
#include "AnimationSample.h"
AnimationSample::AnimationSample()
{
m_Animation = NNAnimation::Create( 6, L"Sprite/attack_0.png",
L"Sprite/attack_1.png",
L"Sprite/die_0.png",
L"Sprite/die_1.png",
L"Sprite/idle_0.png",
L"Sprite/idle_1.pn... |
<commit_before>/*************************************************************************
*
* $RCSfile: util.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-03-29 13:28:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before><commit_msg>issue #2403<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <iomanip> // << fixed << setprecision(xxx)
#include <algorithm> // do { } while ( next_permutation(A, A+xxx) ) ;
#include <vector>
#include <string> // to_string(nnn) // substr(m, n) // stoi(nnn)
#include <complex>
#include <tuple> // get<n>(xxx)
#include <queue>
#include <st... |
<commit_before>#include <string>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/tcp.h>
#include "client.h"
using namespace std;
namespace rpc {
void Future::wait() {
Pthread_mutex_lock(&ready_m_);
while (!ready_) {
Pthread_... |
<commit_before>//===- PDB.cpp ------------------------------------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.1 Module
* -------------------------------------------------
*
* Copyright 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
... |
<commit_before>// $Id: AliHLTCaloClusterAnalyser.cxx 35107 2009-09-30 01:45:06Z phille $
/**************************************************************************
* This file is property of and copyright by the ALICE HLT Project *
* All rights reserved. *
... |
<commit_before>/*
Copyright 2013 Jun Funada
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 ag... |
<commit_before><commit_msg>ironed that shuffle bug<commit_after><|endoftext|> |
<commit_before><commit_msg>Removed old includes.<commit_after><|endoftext|> |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2014 Benoit Steiner <benoit.steiner.goog@gmail.com>
//
// 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 th... |
<commit_before>/**
* Copyright (C) 2017 3D Repo Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* T... |
<commit_before>#include <cstdio>
#include <fstream>
#include <unistd.h>
#include <kms++.h>
#include <kms++util.h>
using namespace std;
using namespace kms;
static void read_frame(ifstream& is, DumbFramebuffer* fb, Crtc* crtc, Plane* plane)
{
for (unsigned i = 0; i < fb->num_planes(); ++i)
is.read((char*)fb->map(i... |
<commit_before>#include "stdafx.h"
#include "SDL.h"
#include <limits.h>
#include <Windows.h>
#include "minmax.h"
#include "DreamPad.h"
static const Uint32 PAD_SUPPORT =
PDD_DEV_SUPPORT_TA | PDD_DEV_SUPPORT_TB | PDD_DEV_SUPPORT_TX | PDD_DEV_SUPPORT_TY | PDD_DEV_SUPPORT_ST
#ifdef EXTENDED_BUTTONS
| PDD_DEV_SUPPORT_T... |
<commit_before><commit_msg>fix SFINAE detection of const char[N] for msvc<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <sal/config.hpp>
#if __sal_os_linux || __sal_os_darwin
#include <netinet/ip.h>
#include <arpa/inet.h>
#elif __sal_os_windows
#include <ws2tcpip.h>
#pragma comment(lib, "ws2_32")
#else
#error Unsupported platform
#endif
__sal_begin
namespace net { namespace ip { namesp... |
<commit_before>/* ============================================================================
* Copyright (c) 2011, Michael A. Jackson (BlueQuartz Software)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following condi... |
<commit_before>/*************************************************************************
*
* $RCSfile: datetime.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2005-04-13 12:25:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>/*******************************************************************************
* Copyright (c) 2009-04-24 Joacim Jacobsson.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distributio... |
<commit_before>//=============================================================================
//File Name: Disabled.cpp
//Description: This function runs when robot is in disabled state
//Author: FRC Team 3512, Spartatroniks
//=============================================================================
#include <Tim... |
<commit_before>#include "stdlib.h"
#include "PcapLiveDeviceList.h"
#include "SystemUtils.h"
/**
* A struct for collecting packet statistics
*/
struct PacketStats
{
int ethPacketCount;
int ipv4PacketCount;
int ipv6PacketCount;
int tcpPacketCount;
int udpPacketCount;
int dnsPacketCount;
int httpPacketCount;
int... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cdatasection.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2007-12-06 10:58:28 $
*
* The Contents of this file are m... |
<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... |
<commit_before><commit_msg>Bugfix: added missing `#include` line.<commit_after><|endoftext|> |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Time: O(n)
// Space: O(k)
class Solution {
public:
string removeDuplicateLetters(string s) {
unordered_map<char, int> cnts;
for (const auto& c : s) {
++cnts[c];
}
string res;
unordered_set<char> visited;
stack<char> stk;
for (i... |
<commit_before>//
// HiveMindi.cpp
//
// OpenFrameworks code for the Hive Mind neuro art performance
//
// Created by Sean Montgomery on 10/06/17.
//
// This work is licensed under the MIT License
//
#include "HiveMind.h"
HiveMind::HiveMind(int tcpPort)
{
_openBci.setTcpPort(tcpPort);
//_openBci.enableDataLoggi... |
<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 softw... |
<commit_before>//===------------------------ strstream.cpp -------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLBase64ImportContext.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: mib $ $Date: 2001-06-19 14:50:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>#include <bts/blockchain/account_operations.hpp>
#include <bts/blockchain/chain_interface.hpp>
#include <bts/blockchain/exceptions.hpp>
#include <bts/blockchain/transaction_evaluation_state.hpp>
#include <fc/time.hpp>
namespace bts { namespace blockchain {
bool register_account_operation::is_delegat... |
<commit_before>/* FasTC
* Copyright (c) 2014 University of North Carolina at Chapel Hill.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for educational, research, and non-profit purposes, without
* fee, and without a written agreement is hereby gr... |
<commit_before>#include "src/subcarrier.h"
#ifdef HAVE_LIQUID
#include <cmath>
#include <complex>
#include <cstdio>
#include <deque>
#include <iostream>
#include <tuple>
#ifdef HAVE_SNDFILE
#include <sndfile.h>
#endif
#include "src/common.h"
#include "src/liquid_wrappers.h"
namespace redsea {
namespace {
const f... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLAutoTextEventImport.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2006-09-17 11:02:16 $
*
* The Contents of this... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkNetCDFCAMReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/// Copyright 2018 Pinterest 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 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLTextListItemContext.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2004-07-13 08:37:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the f... |
<commit_before>/*************************************************************************
*
* $RCSfile: rscall.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: pl $ $Date: 2001-10-10 11:51:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/**************************************************************************
* Copyright(c) 2009-2012, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*************************************************************************
*
* $RCSfile: xmltabe.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: mib $ $Date: 2001-05-07 07:50:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include <time/time.hpp>
#include <packet.hpp>
#include <client.hpp>
#include <data_provider.hpp>
#include <thread_pool.hpp>
#include <cstddef>
namespace MCPP {
class TimeSave {
public:
UInt64 Age;
UInt64 Time;
};
#pragma GCC diagnostic push
#pragma GCC diagnostic ignore... |
<commit_before>#include <glow/DebugInfo.h>
#include <sstream>
#include <algorithm>
#include <iomanip>
#include <cassert>
#include <glow/ObjectRegistry.h>
#include <glow/logging.h>
#include <glow/global.h>
#include <glow/memory.h>
#include <glow/Object.h>
#include <glow/Buffer.h>
#include <glow/FrameBuf... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do ... |
<commit_before>#include "build_helper.h"
#include "gtfs_parser.h"
namespace pt = boost::posix_time;
namespace navimake {
VJ & VJ::frequency(uint32_t start_time, uint32_t end_time, uint32_t headway_secs) {
uint32_t first_time = vj->stop_time_list.front()->arrival_time;
for(types::StopTime *st : vj->stop_time_... |
<commit_before>#include "toy/ImageBuffer.hpp"
#include "toy/file/File.hpp"
#include "toy/file/loader/Image.hpp"
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "toy/file/loader/stb/stb_image.h"
#include "toy/file/loader/stb/stb_image_write.h"
namespace toy{
namespace file{
static i... |
<commit_before>#include "VideoFaceDetector.h"
#include <iostream>
#include <opencv2\imgproc.hpp>
const double VideoFaceDetector::TICK_FREQUENCY = cv::getTickFrequency();
VideoFaceDetector::VideoFaceDetector(const std::string cascadeFilePath, cv::VideoCapture &videoCapture)
{
setFaceCascade(cascadeFilePath);
s... |
<commit_before>/* Lantern - A path tracer
*
* Lantern is the legal property of Adrian Astley
* Copyright Adrian Astley 2015 - 2016
*/
#include "visualizer/visualizer.h"
#include "renderer/renderer.h"
#include "scene/scene.h"
#include <GLFW/glfw3.h>
#include <imgui.h>
#include <imgui_impl.h>
#include <cstdio>
#inc... |
<commit_before>#include "stdafx.h"
#include "ETypes.h"
#include "Player.h"
#include "PlayerEx.h"
#include <ATF/global.hpp>
namespace GameServer
{
namespace Fixes
{
namespace
{
using namespace ATF;
using namespace GameServer::Extension;
}
void CPlayer::l... |
<commit_before>//************************************************************/
//
// CrossSection Implementation
//
// Implements the SPXCrossSection class, which performs the
// convolution and all math required to calculate the cross-
// section from a PDF and a grid file.
//
// @Author: J. Gibson, C. Embree, T. Car... |
<commit_before>/* --------------------------------------------------------------------------
MusicBrainz -- The Intenet music metadatabase
Copyright (C) 2000 Robert Kaye
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License ... |
<commit_before>//===-- PPCBranchSelector.cpp - Emit long conditional branches-----*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Nate Baegeman and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>#include <iostream>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGraphicsItemGroup>
#include <QGraphicsLineItem>
#include <QGraphicsWidget>
#include <QGraphicsEllipseItem>
#include <QTimer>
#include <QPen>
#include "GUI.h"
#include "TTTAction.h"
GUI::GUI(QWidget* parent) :
QWidget(parent... |
<commit_before>/*
* Licensed to Cloudkick, Inc ('Cloudkick') under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* Cloudkick licenses this file to You under the Apache License, Version 2.0
* (the "License");... |
<commit_before>// Copyright (c) 2018 Matthew J. Smith and Overkit contributors
// License: MIT (http://opensource.org/licenses/MIT)
#ifndef OVK_CORE_TYPE_TRAITS_HPP_INCLUDED
#define OVK_CORE_TYPE_TRAITS_HPP_INCLUDED
#include <ovk/core/Global.hpp>
#include <type_traits>
namespace ovk {
namespace core {
// Remove cv... |
<commit_before>/*
* Copyright 2007-2019 Content Management AG
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2010, 2012 Aldebaran Robotics
*/
#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <qimessaging/object.hpp>
#include <qimessaging/transport_server.hpp>
#include <qimessaging/transport_soc... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2010, 2012 Aldebaran Robotics
*/
#include <iostream>
#include <vector>
#include <map>
#include <qimessaging/object.hpp>
#include <qimessaging/transport_server.hpp>
#include <qimessaging/transport_socket.hpp>
#inclu... |
<commit_before>/*
WiFiClient.cpp - TCP/IP client for esp8266, mostly compatible
with Arduino WiFi shield library
Copyright (c) 2014 Ivan Grokhotkov. All rights reserved.
This file is part of the esp8266 core for Arduino environment.
This library is free software; you can redistribute it and... |
<commit_before>#include <eosio/chain/transaction_metadata.hpp>
#include <eosio/chain/thread_utils.hpp>
#include <boost/asio/thread_pool.hpp>
namespace eosio { namespace chain {
recovery_keys_type transaction_metadata::recover_keys( const chain_id_type& chain_id ) const {
// Unlikely for more than one chain_id to b... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <LocalRegions/LocalRegions.hpp>
#include <LocalRegions/QuadExp.h>
#include <LocalRegions/TriExp.h>
using namespace Nektar;
using namespace StdRegions;
using namespace LocalRegions;
using namespace SpatialDomains;
using namespace std;
#include <SpatialD... |
<commit_before>/*
* Copyright 2013 Gustaf Räntilä
*
* 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>#include "disassembler.h"
#include "util.h"
#include "symtab.h"
using namespace std;
enum ByteTypeGuess {
UNINITIALIZED,
UNKNOWN,
CHAR_DATA,
UNINITIALIZED_CHAR_DATA,
WORD_DATA,
UNINITIALIZED_WORD_DATA,
CODE,
};
struct program {
ByteTypeGuess byte_type_guess[65536];
char memory[65536];
bool i... |
<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>/****************************************************************/
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* All contents are licensed under LGPL V2.1 */
/* See LICENSE for full r... |
<commit_before>#include <cmath>
#include "DataStruct.h"
ClassImp(Event)
ClassImp(Dimuon)
ClassImp(Spill)
ClassImp(Track)
#define SPILLID_MIN_57 303215
#define SPILLID_MAX_57 370100
#define SPILLID_MIN_59 370110
#define SPILLID_MAX_59 388580
#define SPILLID_MIN_61 391072
#define SPILLID_MAX_61 391100
#define SPILLID_M... |
<commit_before>// Copyright 2005, Google 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 source code must retain the above copyright
// notice, this list... |
<commit_before>/*
* Copyright 2010-2012 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 applica... |
<commit_before>#include "VSprite.h"
#include "VGlobal.h"
VSprite::VSprite(sf::Vector2f Position, const sf::String& Filename) : VObject(Position)
{
RenderState = sf::RenderStates::Default;
Tint = sf::Color::White;
Scale = sf::Vector2f(1, 1);
Offset = sf::Vector2f();
vertexArray.setPrimitiveType(sf::Quads);
verte... |
<commit_before>#include "VirtualMachine.h"
#include <unistd.h>
extern TVMMainEntry VMLoadModule(const char *module);
extern void VMUnloadModule(void);
extern "C"
{
TVMStatus VMStart(int tickms, int machinetickms, int argc, char *argv[])
{
TVMMainEntry mainFunc = VMLoadModule(argv[0]);
if (mainFunc)
{
main... |
<commit_before>/*************************************************************************
*
* $RCSfile: lockhelper.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: as $ $Date: 2001-06-11 10:11:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: DeformableRegistration2.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.
See ... |
<commit_before>/*
* Copyright 2010 MQWeb - Franky Braem
*
* Licensed under the EUPL, Version 1.1 or - as soon they
* will be approved by the European Commission - subsequent
* versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the
* Licence.
* You may obtain a copy of th... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* C++ Mandelbrot.
*
* Usage: mandelbrot_cpp <image_width> <image_height> <max_iterations> <repetitions (1+)> <center x> <center y> <section height> <gradient filename> <output filename>
* Example: mandelbrot_cpp 320 200 20 1 -0.5 0.0 2.0 blue.gradient mandelbrot.raw
*
* Gradient file example:
*... |
<commit_before>
// INCLUDES
#include <unistd.h>
#include <string.h>
#include <netdb.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
#include <sys/select.h>
#include "atTCPNetworkInterface.h++"
atTCPNetworkInterface::atTCPNetworkInterface(char * address, s... |
<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 "ash/launcher/launcher.h"
#include "ash/launcher/launcher_delegate.h"
#include "ash/launcher/launcher_model.h"
#include "ash/... |
<commit_before>/*******************************
Copyright (c) 2016-2020 Gr�goire Angerand
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 righ... |
<commit_before><commit_msg>bug fix<commit_after><|endoftext|> |
<commit_before>#include <iostream>
//#include <vector>
#include <queue>
#include <math.h>
using namespace std;
double x0,x1,x2,s2,c2;
/////////////////////////////
struct engine;
struct proc;
struct chan;
struct engine{
//std::vector<chan*> ready;
std::queue<chan*> ready;
};
struct proc{
void(*recv)(cha... |
<commit_before>// Time: O(4^n)
// Space: O(n)
class Solution {
public:
vector<string> addOperators(string num, int target) {
vector<string> result;
vector<string> expr;
addOperatorsDFS(num, target, 0, 0, 0, &expr, &result);
return result;
}
void addOperatorsDFS(const strin... |
<commit_before>// Time: O(n)
// Space: O(k), k is size of the alphabet
// vector solution, need to know size of the alphabet in advance (4ms)
class Solution {
public:
string removeDuplicateLetters(string s) {
const int k = 26;
vector<int> cnts(k);
for (const auto& c : s) {
++cn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.