text stringlengths 54 60.6k |
|---|
<commit_before>eeed3d78-2e4e-11e5-9284-b827eb9e62be<commit_msg>eef238d2-2e4e-11e5-9284-b827eb9e62be<commit_after>eef238d2-2e4e-11e5-9284-b827eb9e62be<|endoftext|> |
<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 "base/android/jni_helper.h"
#include "base/android/jni_android.h"
#include "base/logging.h"
using base::android::AttachCurre... |
<commit_before>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include "api/types.hpp"
#include "configuration/Configuration.hpp"
#include "utils/Logger.hpp"
#include "ServerParser.hpp"
#include "ConfigurationParserException.hpp"
using namespace zhttpd;
using namespace zhttpd::parser;
ServerParser::Se... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "controlpanel.h"
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QDebug>
controlPanel::controlPanel(QWidget *parent) :
QWidget(parent),
_playPauseButton(new QPushButton("Play/Pause")),
_nextButton(new QPushButton("Next")),
_previousButton(new QPushButton("Previo... |
<commit_before>/* @author: Fabian Wegscheider */
#include <iostream>
#include <fstream>
#include <math.h>
#include <vector>
using namespace std;
int main(int numargs, char *args[]) {
if (numargs != 2) {
cerr << "Usage: " << args[0] << " filename" << endl;
exit(EXIT_FAILURE);
}
ifstream inputFile;
inputFi... |
<commit_before>#include <iostream>
using namespace std;
struct state
{
int resource[100];
int claim[100][100];
int alloc[100][100];
int available[100];
}intitial,temp;
void saveState()
{
}
bool isSafe()
{
return true;
}
int main(){
int t=0, p, r, Time;
cout<<"Enter number of process(p) to simulate\n";... |
<commit_before>/** \copyright
* Copyright (c) 2012, Stuart W Baker
* 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 not... |
<commit_before>/**
Copyright 2017 Mayank Mathur
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 agreed to in writi... |
<commit_before>/*
* Copyright (c) 2013 Opposite Renderer
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
#include "Application.hxx"
#include "RunningStatus.h"
#include <QMetaType>
#include <QApplication>
#include <QThread>
#include... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Copyright 2016 Duc Hoang Bui, KAIST. All rights reserved.
// Licensed under MIT ($LICENSE_URL)
#include "browser_profiler_impl_state.h"
#include <sstream>
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "base/strings/string_split.h"
namesp... |
<commit_before>/*==============================================================================
Library: MSVTK
Copyright (c) The University of Auckland.
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>/*******************************
Copyright (C) 2013-2015 gregoire ANGERAND
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 late... |
<commit_before>/** \brief Tool for generating reasonable input for the FulltextImporter if only a PDF fulltext is available
* \author Johannes Riedl
*
* \copyright 2019 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under th... |
<commit_before>/** \brief Updates Zeder (via Ingo's SQL database) w/ the last N issues of harvested articles for each journal.
* \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de)
*
* \copyright 2018-2020 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free softw... |
<commit_before>#include "httpserver.h"
#include "../logger.h"
#include "../config.h"
#include <microhttpd.h>
namespace shanghai {
namespace system {
namespace {
using mtx_guard = std::lock_guard<std::mutex>;
// libmicrohttpd の内部アサートっぽいので諦めて死ぬ
void AtPanic(void *cls, const char *file, unsigned int line, const char *... |
<commit_before>//Consul Admin Tests
#include "logging.h"
#include "consul_admin.h"
#include <string>
#include <string.h>
#include <assert.h>
int main()
{
//Construction tests
ConsulAdmin ca ("http://localhost:8500/");
Service s ("1", "CLyman", "tcp://*", "5555");
s.add_tag("Testing");
Service s2 ("2", "CLyman", "tc... |
<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.
// This is a simple application that stress-tests the crash recovery of the disk
// cache. The main application starts a copy of itself... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: grdocsh.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: kz $ $Date: 2006-12-12 17:13:05 $
*
* The Contents of this file are made ... |
<commit_before>/*
* Copyright (C) 2005-2010, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/// \file li... |
<commit_before>/// \file libuobject/uvar.cc
#include <libport/escape.hh>
#include <urbi/uabstractclient.hh>
#include <urbi/ublend-type.hh>
#include <urbi/uexternal.hh>
#include <urbi/uobject.hh>
#include <urbi/usyncclient.hh>
namespace urbi
{
class UVardata
{
public:
UVardata()
{
}
~UVardata()
... |
<commit_before>/*
* Copyright (C) 2007-2011, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#ifndef SDK_... |
<commit_before>#include "pacman_vision/kinect2_processor.h"
#include <array>
Kinect2Processor::Kinect2Processor () : device(0), packetPipeline(0), registration(0),
listener(0), started(false), initialized(false)
{
undistorted = new libfreenect2::Frame(512, 424, 4);
registered = new libfreenect2::Frame(512, 424, ... |
<commit_before>#include "libbbn-ni-r.h"
//global to hold on to session handle
NiFpga_Session session;
bool isOpen = false;
//Initialize FPGA on loading the library -- constructor hook in header
void init() {
NiFpga_Status status = NiFpga_Initialize();
}
//Cleanup NI library -- destructor hook in header
void cleanu... |
<commit_before>/*
* Copyright (C) 2009, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
#include <libport... |
<commit_before>// HW-4-4-8 Data Statistics - Patrick Kubiak - 6/3/2015
// Reading floating point-values and display average, smallest, largest, and range of the dataset.
#include <iostream>
#include <iomanip>
#include <limits>
using namespace std;
int main()
{
const int OUTPUT_WIDTH = 12;
double num, total = 0, sma... |
<commit_before><commit_msg>直接交换两变量值的例子<commit_after><|endoftext|> |
<commit_before>#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <malloc.h>
#include "../MemoryModule.h"
typedef int (*addNumberProc)(int, int);
BOOL LoadFromMemory(char *filename)
{
FILE *fp;
unsigned char *data=NULL;
size_t size;
HMEMORYMODULE handle;
... |
<commit_before>//
// CRT.hpp
// Clock Signal
//
// Created by Thomas Harte on 19/07/2015.
// Copyright © 2015 Thomas Harte. All rights reserved.
//
#ifndef CRT_hpp
#define CRT_hpp
#include <stdint.h>
#include "CRTTypes.hpp"
#include "Internals/Flywheel.hpp"
#include "Internals/CRTOpenGL.hpp"
#include "Internals/... |
<commit_before>// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify ... |
<commit_before>// Copyright Joshua Boyce 2010-2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// This file is part of HadesMem.
// <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com>
#inc... |
<commit_before>/*
* Copyright (C) 2016 deipi.com LLC and contributors. 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 limit... |
<commit_before>
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE libstorage
#include <boost/test/unit_test.hpp>
#include "storage/Devices/Disk.h"
#include "storage/Devices/LvmVg.h"
#include "storage/Devices/LvmLvImpl.h"
#include "storage/Utils/HumanString.h"
#include "storage/Devicegraph.h"
#include "storage/Sto... |
<commit_before>#include <iostream>
#include <math.h>
using namespace std;
int main() {
short int cResult = (8*2) + 7 + 1;
cout << cResult;
return 0;
}
<commit_msg>Second step: header file inclusive<commit_after>#include <iostream>
#include <math.h>
// Functions inclusive:
#include <new-feature.h>
// End.
using... |
<commit_before>#include <algorithm>
#include "SpMP/CSR.hpp"
#include "CSR_Interface.h"
using namespace std;
using namespace SpMP;
// w = (alpha*A*x + beta*y + gamma)*z
template<class T, bool HAS_VALUE = true, bool HAS_Z = false>
static void SpMV_(
int m,
T *w,
T alpha,
const int *rowptr, const int *colidx, ... |
<commit_before>/*************************************************************************
*
* $RCSfile: columninfo.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2004-04-07 10:51:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>/* Copyright 2015 Stanford University, NVIDIA 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 ... |
<commit_before><commit_msg>Enabled glTF samples on Windows<commit_after><|endoftext|> |
<commit_before>//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-2016 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>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<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 "net/test/test_server.h"
#include <windows.h>
#include <wincrypt.h>
#include "base/base_paths.h"
#include "base/command_line... |
<commit_before>// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/optimizer/initializer.h"
#include "core/optimizer/layer_norm_fusion.h"
#include "core/graph/graph_utils.h"
#include "float.h"
#include <deque>
using namespace ONNX_NAMESPACE;
using namespace on... |
<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: seriesconverter.hxx,v $
*
* $Re... |
<commit_before>/*! \file
*
* \brief Python exports for the tensor library
* \author Benjamin Pritchard (ben@bennyp.org)
*/
#include "bpmodule/python_helper/Pybind11.hpp"
#include "bpmodule/tensor/InitFinalize.hpp"
namespace bpmodule {
namespace tensor {
namespace export_python {
PYBIND11_PLUGIN(parallel)
{
... |
<commit_before>#include "ride/finddlg.h"
#include "ride/wx.h"
#include "ride/generated/ui.h"
#include "ride/wxutils.h"
#include "wx/stc/stc.h"
// based on http://docs.wholetomato.com/default.asp?W193
class FindDlg : public ui::Find {
public:
FindDlg(wxWindow* parent, const wxString& find);
const wxString GetTe... |
<commit_before>//===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===//
//
// 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>//===-- llc.cpp - Implement the LLVM Compiler -----------------------------===//
//
// This is the llc compiler driver.
//
//===----------------------------------------------------------------------===//
#include "llvm/Bytecode/Reader.h"
#include "llvm/Target/Sparc.h"
#include "llvm/Target/TargetMachine... |
<commit_before>#include <QtNetwork>
#include <QtWidgets>
#define USER_AGENT "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)" \
"Chrome/55.0.0.0 Safari/537.36 Dobostorta/" GIT_VERSION
#define CONNECTION_NAME "dobostorta-downloader.sock"
class TortaRequestHandler : publi... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX24T グループ・省電力制御 @n
Copyright 2016 Kunihito Hiramatsu
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "RX24T/system.h... |
<commit_before>/*
* qiunwrap.cpp
*
* Created by Tobias Wood on 11/06/2015.
* Copyright (c) 2015 Tobias Wood.
*
* 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.... |
<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/string16.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/auto... |
<commit_before>/*
The MIT License
Copyright (c) 2011 by Jorrit Tyberghein
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... |
<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/ref_counted.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/tes... |
<commit_before>#include "main.h"
/* example constructor, sets some options */
CaesarAttack::CaesarAttack()
{
// declare options, keep options as uppercase
vector<string> temp;
temp.push_back("INPUTFILE");
temp.push_back("OUTPUTFILE");
set_opts(temp);
// set default values, option must exist or... |
<commit_before>//===- llvm/unittest/VMCore/InstructionsTest.cpp - Instructions unit tests ===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
Copyright 2015-2020 Igor Petrovic
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 agreed to i... |
<commit_before>// Fundamentals
#include <iostream>
// Windows headers
#include <Windows.h>
// Kinect Api
#include "NuiApi.h"
#include "Kinect.h"
using namespace ozansKinect;
Kinect::Kinect()
:pNuiSensor(NULL),
kinectWorkingStatus(true),
coordinateX(0), coordinateY(0)
{
}
Kinect::~Kinect()... |
<commit_before>#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/Capture.h"
#include "cinder/Log.h"
#include "GridTexture.h"
#include "Landscape.h"
#include "Constants.h"
#ifdef CINDER_COCOA_TOUCH
#include "cinder/MotionManager.h"
#endif
using namespace ci;
u... |
<commit_before>// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2010, Knut Reinert, FU Berlin
// All rights reserved.
//
// ... |
<commit_before>#include <stdlib.h>
#include <time.h>
#include "util.h"
#if defined linux
#include <unistd.h> // Microsoft Visual C++ do not has this header
#endif
#if defined WIN32
#include <windows.h> // POSIX-only environment do not has this header
#endif
namespace util{
#if defined linux
void milliSleep(int ms)... |
<commit_before>// $Id$
// Category: run
//
// See the class description in the header file.
#include "TGeant4.h"
#include "TG4Messenger.h"
#include "TG4GeometryManager.h"
#include "TG4PhysicsManager.h"
#include "TG4StepManager.h"
#include "TG4VisManager.h"
#include "TG4RunManager.h"
#include "TG4Globals.h"
TGeant4... |
<commit_before>/**
* This file is part of the "libfnord" project
* Copyright (c) 2015 Paul Asmuth
*
* FnordMetric is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License v3.0. You should have received a
* copy of the GNU General Public License along with th... |
<commit_before>#include "PlainPrinter.h"
PlainPrinterAction::PlainPrinterAction(const llvm::StringRef &filename) :
ASTAction<PlainPrinterAction>() {
OutputFile = std::make_shared<std::fstream>();
OutputFile->open(filename, std::fstream::out);
}
PlainPrinterAction::~PlainPrinterAction() {
OutputFile->close();
... |
<commit_before>/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*- */
/* vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5) */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Ver... |
<commit_before>/* Copyright (c) 2016, the Cap authors.
*
* This file is subject to the Modified BSD License and may not be distributed
* without copyright and license information. Please refer to the file LICENSE
* for the text and further information on this license.
*/
#include <cap/electrochemical_impedance_s... |
<commit_before>#include "Golem.h"
#include "j1Render.h"
#include "j1Textures.h"
#include "j1App.h"
#include "p2Defs.h"
#include "j1Scene.h"
#include "j1Input.h"
#include "j1Item.h"
#include "j1Collision.h"
#include "j1Player.h"
#include "j1EntityElementsScene.h"
Golem::Golem()
{
}
Golem::~Golem()
{
}
bool Golem::Awa... |
<commit_before>#include "clockUtils/sockets/TcpSocket.h"
#include "clockUtils/errors.h"
#include <WinSock2.h>
#include <thread>
#include <chrono>
namespace clockUtils {
namespace sockets {
int TcpSocket::_counter = 0;
std::mutex TcpSocket::_lock;
TcpSocket::TcpSocket() : _sock(-1), _status(SocketStatus::INACTI... |
<commit_before>#include "PipeThrottler.h"
#include "Server.h"
#include "Interface/Mutex.h"
PipeThrottler::PipeThrottler(size_t bps)
: throttle_bps(bps), curr_bytes(0), lastresettime(0)
{
mutex=Server->createMutex();
}
PipeThrottler::~PipeThrottler(void)
{
Server->destroy(mutex);
}
bool PipeThrottle... |
<commit_before>#include "ImagePyramid.hpp"
#include <openslide/openslide.h>
#include <tiffio.h>
#include <FAST/Utility.hpp>
#include <FAST/Data/Image.hpp>
#include <FAST/Data/Access/ImagePyramidAccess.hpp>
#include <utility>
#ifdef WIN32
#include <winbase.h>
#else
#include <sys/mman.h>
#include <fcntl.h>
#include <stdi... |
<commit_before>// @(#)root/rint:$Name: $:$Id: TRint.cxx,v 1.1.1.1 2000/05/16 17:00:46 rdm Exp $
// Author: Rene Brun 17/02/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include "AConfig.h"
#if(HAS_STD_LIGHTS)
// Includes
#include <Arduino.h>
#include "CLights.h"
#include "CPin.h"
#include "NConfigManager.h"
#include "NModuleManager.h"
#include "NCommManager.h"
// One of these will have the correct pin defined for the lights
#if(HAS_STD_CAPE)
#include "CCape.h"
#endif... |
<commit_before>#include <iostream>
#include <string>
#include <fstream>
#include <time.h> // for nanosleep
#include <osvr/ClientKit/Context.h>
#include <osvr/ClientKit/Interface.h>
using std::cin;
using std::cout;
using std::endl;
using std::ofstream;
using std::string;
#define MIN_GRAB_VALUE 0.82
/* Globals */
do... |
<commit_before>// Copyright (c) 2015, squirreldb. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <pthread.h>
#include <unistd.h>
#include <time.h>
#include <vector>
#include <iostream>
#include <string>
#include <sofa/pbrpc/pbrpc.h>... |
<commit_before>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <algorithm>
#include <Eigen/Dense>
#include "RRTPlanner.hpp"
#include "motion/TrapezoidalMotion.hpp"
#include <Constants.hpp>
#include <Utils.hpp>
using namespace std;
using namespace Planning;
Geometry2d::Point Planning::randomPoi... |
<commit_before>/*
* nextpnr -- Next Generation Place and Route
*
* Copyright (C) 2018 Miodrag Milanovic <miodrag@symbioticeda.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and thi... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include <unistd.h... |
<commit_before>#include <dlfcn.h>
#include "loader.h"
BVS::Loader::Loader(Control& control, const Info& info)
: control(control),
logger("Loader"),
info(info),
modules(Control::modules)
{
}
BVS::Loader& BVS::Loader::load(const std::string& moduleTraits, const bool asThread, const std::string& poolName)
{
/... |
<commit_before>#include <time.h>
#include <stdlib.h>
#include "game_modes.hpp"
GameModes::GameModes(GameDesk* desk_point, IoView* view) {
desk_ = desk_point;
ioview_ = view;
}
void GameModes::start(int argc, char* argv[]) {
if (argc == 1) {
help();
} else if (*++argv[1] == 'w') {
game... |
<commit_before>/*
* Written by Nitin Kumar Maharana
* nitin.maharana@gmail.com
*/
class Solution {
int haystackLen, needleLen;
void findPrefixArray(string& pattern, int *prefix)
{
int lastPrefixLen = 0;
prefix[0] = 0;
int i = 1;
while(i < needleLen)
... |
<commit_before>/****************************************************************************
* Copyright (c) 2012-2017 by the DataTransferKit authors *
* All rights reserved. *
* ... |
<commit_before>//!
//! @author Yue Wang
//! @date 26.11.2014
//!
//! @brief Implementation for Listing 4.12
#include <../include/utilities.hpp>
#include <iostream>
#include <list>
#include <algorithm>
namespace para {
/**
* @brief sequential_functional_quick_sort
*
* for Listing 4.12
*/
template<typename T>
s... |
<commit_before>#include <stingray/toolkit/Factory.h>
#include <stingray/app/ApplicationContextPublic.h>
#include <stingray/app/Scheduler.h>
#include <stingray/app/Scheduler.h>
#include <stingray/app/Scheduler.h>
#include <stingray/app/Scheduler.h>
#include <stingray/app/Scheduler.h>
#include <stingray/app/Scheduler.h>... |
<commit_before>#include <stingray/toolkit/Factory.h>
#include <stingray/toolkit/any.h>
#include <stingray/app/RecordErrors.h>
#include <stingray/app/activation_manager/ActivationIntent.h>
#include <stingray/app/application_context/AppChannel.h>
#include <stingray/app/application_context/ChannelList.h>
#include <sting... |
<commit_before>#include "BodymovinParser.h"
#include "FilepathHelper.h"
#include <fstream>
#include <assert.h>
#include <string.h>
namespace gum
{
BodymovinParser::BodymovinParser()
: m_frame_rate(0)
, m_width(0)
, m_height(0)
, m_start_frame(0)
, m_end_frame(0)
{
}
void BodymovinParser::Parse(const Json::Val... |
<commit_before><commit_msg>Fix the offical build by passing local state to the initialize metrics function.<commit_after><|endoftext|> |
<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/net/url_info.h"
#include <math.h>
#include <algorithm>
#include <string>
#include "base/format_macros.h"
#i... |
<commit_before>namespace mant {
namespace bbob2009 {
class BlackBoxOptimisationBenchmark2009 : public OptimisationProblem<double> {
public:
inline explicit BlackBoxOptimisationBenchmark2009(
const unsigned int& numberOfDimensions) noexcept;
virtual ~BlackBoxOptimisationBenchmark... |
<commit_before><commit_msg>Re-disable all Worker tests until I can figure out exact set of failing ones. TBR=atwilson Review URL: http://codereview.chromium.org/239004<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (C) 2015 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#ifndef UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_DISTRIBUTED_SERVER_HPP_INCLUDED
#define UAVCAN_PROTOCOL_DYNAMIC_NODE_ID_SERVER_DISTRIBUTED_SERVER_HPP_INCLUDED
#include <uavcan/build_config.hpp>
#include <uavcan/debug.hpp>
#include <u... |
<commit_before>#include "compiler.h"
#include "dosio.h"
static OEMCHAR curpath[MAX_PATH];
static OEMCHAR *curfilep = curpath;
#define ISKANJI(c) (((((c) ^ 0x20) - 0xa1) & 0xff) < 0x3c)
// ----
static FATFS Fatfs;
static FILINFO _fi;
#ifdef _USE_LFN
static char lfn[_MAX_LFN + 1];
#endif
void dosio_init(void) {
... |
<commit_before>{
gROOT->Reset();
TCanvas *nut = new TCanvas("nut", "FirstSession",100,10,700,900);
nut->Range(0,0,20,24);
nut->SetFillColor(10);
nut->SetBorderSize(2);
TPaveLabel *pl = new TPaveLabel(3,22,17,23.7,"My first ROOT interactive session","br");
pl->SetFillColor(18);
pl->SetTextSize(0... |
<commit_before>#ifndef LIGHTPTR_HPP
# define LIGHTPTR_HPP
# pragma once
#include <cassert>
#include <atomic>
#include <memory>
#include <type_traits>
#include <utility>
namespace generic
{
namespace detail
{
namespace light_ptr
{
using counter_type = unsigned;
using atomic_type = ::std::atomic<counter_type>;
... |
<commit_before>/*
* linker32.cpp
*
* Created on: Jul 23, 2014
* Author: Pimenta
*/
#include <cstdint>
#include <cstring>
#include <cstdio>
#include <fstream>
#include <set>
#include <map>
#include <string>
using namespace std;
typedef uint32_t uword_t;
#ifndef MEM_WORDS
#define MEM_WO... |
<commit_before>#include "Constraints.h"
namespace Analytics {
Constraints::Constraints() {
}
/**
* Add an item constraint of a given constraint type. When
* frequent itemsets are being generated, only those will be considered
* that match the constraints defined here.
*
* @param ... |
<commit_before>#include "pinocchio/spatial/fwd.hpp"
#include "pinocchio/spatial/se3.hpp"
#include "pinocchio/multibody/joint.hpp"
#include "pinocchio/multibody/visitor.hpp"
#include "pinocchio/multibody/model.hpp"
#include "pinocchio/algorithm/rnea.hpp"
#include <iostream>
#include "pinocchio/tools/timer.hpp"
//#de... |
<commit_before>#ifndef STRING_HPP
# define STRING_HPP
#include <cstring>
#include <algorithm>
#include <string>
namespace generic
{
// join
//////////////////////////////////////////////////////////////////////////////
template <typename C>
inline typename C::value_type join(C const& container,
typename C::value... |
<commit_before>// Copyright 2009 The RE2 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 "util/util.h"
#include "util/flags.h"
#include "util/benchmark.h"
#include "re2/re2.h"
DEFINE_string(test_tmpdir, "/var/tmp", "temp d... |
<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 app... |
<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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.