text stringlengths 54 60.6k |
|---|
<commit_before>#include <iostream>
#include "net/genecis_server.h"
using namespace std ;
int main() {
cout << "server running..." << endl ;
// try{
int port = 45000 ;
genecis_server server( port ) ;
while( true ) {
genecis_server new_sock ;
server.accept( new_sock ) ;
// try{
while( true ) {... |
<commit_before>#include <vector>
#include <openssl/sha.h>
#include <openssl/hmac.h>
#include <opkele/util.h>
#include <opkele/exception.h>
#include <opkele/server.h>
#include <opkele/data.h>
namespace opkele {
using namespace std;
void server_t::associate(const params_t& pin,params_t& pout) {
util::dh_t dh;
... |
<commit_before>// Copyright (c) 1999-2012 OPEN CASCADE SAS
//
// The content of this file is subject to the Open CASCADE Technology Public
// License Version 6.5 (the "License"). You may not use the content of this file
// except in compliance with the License. Please obtain a copy of the License
// at http://www.openc... |
<commit_before>/*
This file is part of Kontact.
Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
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 2 of the License... |
<commit_before>#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <assert.h>
#include <stdio.h>
#include <sys/mman.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <portal.h>
#include "sock_fd.h"
#include "sock_utils.h"
static st... |
<commit_before>#include "pixelboost/script/luaManager.h"
extern "C"
{
#include "pixelboost/external/lua/lua.h"
#include "pixelboost/external/lua/lauxlib.h"
#include "pixelboost/external/lua/lualib.h"
}
using namespace pixelboost;
LuaManager::LuaManager()
{
_State = luaL_newstate();
luaL_openlibs(_State);
}
... |
<commit_before>/*
Graphics File Loader: a test program for csgfxldr library
Copyright (C) 2000 Andrew Zabolotny <bit@eltech.ru>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Founda... |
<commit_before>/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with ... |
<commit_before>/*******************************************************************************
GPU OPTIMIZED MONTE CARLO (GOMC) 2.20
Copyright (C) 2018 GOMC Group
A copy of the GNU General Public License can be found in the COPYRIGHT.txt
along with this program, also can be found at <http://www.gnu.org/licenses/>.
**... |
<commit_before>/*************************************************************************
*
* $RCSfile: editable.hxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: nn $ $Date: 2002-11-20 14:32:18 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libetonyek 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 a... |
<commit_before>#include "compiler/rewriter/rules/ruleset.h"
#include "compiler/expression/expr.h"
#include "context/static_context.h"
#include "compiler/rewriter/tools/expr_tools.h"
#include "compiler/rewriter/framework/rule_driver.h"
#include <memory>
using namespace std;
namespace zorba {
class SubstVars : publ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>//
// Copyright (c) 2013-2014 The ANGLE 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.
//
// blocklayout.cpp:
// Implementation for block layout classes and methods.
//
#include "compiler/translator/blocklay... |
<commit_before>#include "Common.h"
#include "DarunGrim.h"
#include "LogOperation.h"
LogOperation Logger;
DarunGrim::DarunGrim():
pStorageDB(NULL),
pOneIDAClientManagerTheSource(NULL),
pOneIDAClientManagerTheTarget(NULL),
pDiffMachine(NULL),
pIDAClientManager(NULL)
{
Logger.SetLogOutputType( LogToS... |
<commit_before>#include "Common.h"
#include "DarunGrim.h"
#include "LogOperation.h"
LogOperation Logger;
DarunGrim::DarunGrim():
pStorageDB(NULL),
pOneIDAClientManagerTheSource(NULL),
pOneIDAClientManagerTheTarget(NULL),
pDiffMachine(NULL),
pIDAClientManager(NULL)
{
Logger.SetLogOutputType( LogToS... |
<commit_before>#include <stdio.h>
#include <string.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <unistd.h>
#include <Carbon/Carbon.h>
#include "server.hpp"
#include "server_objc_part.h"
#include "Mutex.hpp"
namespace {
org_pqrs_KeyRemap4... |
<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 "ppapi/cpp/instance.h"
#include "ppapi/c/dev/ppp_printing_dev.h"
#include "ppapi/c/ppb_instance.h"
#include "ppapi/cpp/dev/sc... |
<commit_before>#include "cookies.h"
#include "util.h"
namespace cpr {
Cookies::Cookies(const std::initializer_list<std::pair<const std::string, std::string>>& pairs)
: map_{pairs} {}
std::string Cookies::GetEncoded() const {
std::stringstream stream;
for (const auto& item : map_) {
// specia... |
<commit_before>/*
* FixedContextCategory.cpp
*
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2001, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include "log4cpp/Portability.hh"
#include "log4cpp/FixedCont... |
<commit_before>
#include "../../Internal.h"
#include <Lumino/GUI/GUIManager.h>
#include <Lumino/GUI/ControlTemplate.h>
#include <Lumino/GUI/Controls/ListBox.h>
#include <Lumino/GUI/Controls/StackPanel.h>
namespace Lumino
{
namespace GUI
{
//=============================================================================
... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:... |
<commit_before>/*
Parsing.cpp - HTTP request parsing.
Copyright (c) 2015 Ivan Grokhotkov. All rights reserved.
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... |
<commit_before>
// the syntax for messages is:
// wd 'mb type buttons title message'
//
// type specifies the icon and default behaviour:
// info (default OK button)
// warn (default OK button)
// critical (default OK button)
// query (requires two or three buttons)
//
// if one button, there is no... |
<commit_before>/***************************************************************************
* Copyright (c) 2020 sliptonic <shopinthewoods@gmail.com> *
* *
* This file is part of the FreeCAD CAx development system. ... |
<commit_before>// Copyright (c) 2020 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>// Copyright 2014 Open Source Robotics Foundation, 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 re... |
<commit_before>// Copyright (c) 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/message_pump_libevent.h"
#include <errno.h>
#include <fcntl.h>
#include "base/logging.h"
#include "base/scoped_nsautor... |
<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/path_service.h"
#include "base/basictypes.h"
#include "base/file_util.h"
#include "base/file_path.h"
#if defined(OS_WIN... |
<commit_before>// @(#)root/base:$Name: $:$Id: TVirtualProofMgr.cxx,v 1.7 2006/06/02 15:14:35 rdm Exp $
// Author: G. Ganis, Nov 2005
/*************************************************************************
* Copyright (C) 1995-2005, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief client connection
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004-2013 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file ... |
<commit_before>/***********************************************************************
cpool.cpp - Implements the ConnectionPool class.
Copyright (c) 2007 by Educational Technology Resources, Inc. and
(c) 2007 by Jonathan Wakely. Others may also hold copyrights on
code in this file. See the CREDITS file in the ... |
<commit_before>/**
* A class which describes the properties of a MySQL database connection.
*
* @date Jul 21, 2013
* @author Joeri HERMANS
* @version 0.1
*
* Copyright 2013 Joeri HERMANS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... |
<commit_before>//===- FunctionResolution.cpp - Resolve declarations to implementations ---===//
//
// 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 MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>#include "RdRobotManager.hpp"
//-- This is very important:
rd::RdRobotManager * rd::RdRobotManager::robotManager = NULL;
void rd::RdRobotManager::registerManager(std::string name, rd::RdRobotManager *manager)
{
if ( robotManagerRegistry.find(name) == robotManagerRegistry.end() )
{
robo... |
<commit_before>/*-
* linux_wire.cc
*
* Implementation of Wire for linux, may work on other UN*X systems
* too...
*/
#include "config.h"
#if !HAVE_LIBPCAP
#include <cstring>
#include <cerrno>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <net/ethernet.h>
#... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** GNU Lesser General Public License Usage
**
** This file may ... |
<commit_before>//! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the BSD License.
*/
#ifndef TRITON_SYMBOLICVARIABLE_H
#define TRITON_SYMBOLICVARIABLE_H
#include <string>
#include "symbolicEnums.hpp"
#include "tritonTypes.hpp"
//! The Triton namespace
namespace triton {
/*!
* \ad... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include <string>
#include <map>
#include "common.hh"
#include "stats.hh"
#include "kvstore.hh"
#include "sqlite-kvstore.hh"
KVStore *KVStore::create(db_type type, EPStats &stats,
... |
<commit_before>#include <iostream>
#include <windows.h>
#include <TlHelp32.h>
#include <TCHAR.h>
#include <string>
#include <sstream>
//Here is where the hax begin
using namespace std;
//FUNCTIONS
DWORD GetModuleBaseAddress(DWORD dwProcessIdentifier, TCHAR *lpszModuleName)
{
HANDLE hSnapshot = CreateToolhelp32... |
<commit_before>// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "searchable_feed_view.h"
#include "forcecommitcontext.h"
#include "operationdonecontext.h"
#include "removedonecontext.h"
#include <vespa/searchcore/proton/feedoperation/compact_lid_space_op... |
<commit_before>#include <lua.hpp>
#include "brotli/dec/decode.h"
#include "brotli/enc/encode.h"
#include "brotli/enc/streams.h"
class MemReader : public brotli::BrotliIn
{
public:
MemReader(const void *data, size_t len) : data_(data), len_(len) { }
virtual ~MemReader() { }
virtual const void* Read(size_t n, si... |
<commit_before>/**
* @file gaussian_kernel.hpp
* @author Wei Guan
* @author James Cline
* @author Ryan Curtin
*
* Implementation of the Gaussian kernel (GaussianKernel).
*/
#ifndef __MLPACK_CORE_KERNELS_GAUSSIAN_KERNEL_HPP
#define __MLPACK_CORE_KERNELS_GAUSSIAN_KERNEL_HPP
#include <mlpack/core.hpp>
#include <ml... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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)
//======================================... |
<commit_before>#include <QApplication>
#include <QDebug>
#include <QSysInfo>
#include <QFile>
#include <QFont>
#include <QLibrary>
using namespace std;
#ifdef QT_OS_ANDROID
#include <jni.h>
extern "C" int state_run (int,char **,char *,bool,void *,void *);
extern "C" void javaOnLoad(JavaVM * vm, JNIEnv * env);
#else
t... |
<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>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/mc/ex... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2009 Emmanuel Benazera, juban@free.fr
*
* 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>#ifndef HMLIB_MATH_ROOT_INC
#define HMLIB_MATH_ROOT_INC 100
#
#include<utility>
#include<iterator>
#include<boost/math/tools/roots.hpp>
namespace hmLib {
namespace math {
template<typename T>
struct toms748_root_stepper {
using value_type = T;
private:
value_type step;
value_type error;
... |
<commit_before>//
// Copyright 2019 The ANGLE 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.
//
// EGLChooseConfigTest.cpp:
// Tests of proper default-value semantics for eglChooseConfig
#include <gtest/gtest.h>
#include ... |
<commit_before>#include "GlQuadTreeLODCalculator.h"
#include "Utils.h"
#include "QuadTree.h"
#include "GlEntity.h"
#include "GlLayer.h"
#ifdef _OPENMP
#include <omp.h>
#endif
#include <tulip/Matrix.h>
#include <tulip/LayoutProperty.h>
#include <tulip/PropertyInterface.h>
using namespace std;
using namespace tlp;
Gl... |
<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 "Lice... |
<commit_before>/*
* Copyright (C) 2020 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>#ifndef STAN_MATH_REV_CORE_AUTODIFFSTACKSTORAGE_HPP
#define STAN_MATH_REV_CORE_AUTODIFFSTACKSTORAGE_HPP
#include <stan/math/memory/stack_alloc.hpp>
#include <vector>
namespace stan {
namespace math {
/**
* Provides a thread_local singleton if needed. Read warnings below!
* For performance reasons th... |
<commit_before>#include "Elk.h"
#include "MooseFactory.h"
// misc
#include "BodyForceRZ.h"
#include "CoefDiffusion.h"
#include "Convection.h"
#include "InternalVolume.h"
#include "InternalVolumeRZ.h"
#include "NeumannRZ.h"
// heat_conduction
#include "HeatConduction.h"
#include "HeatConductionRZ.h"
#include "HeatCond... |
<commit_before>//-----------------------------------------------------------------------bl-
//--------------------------------------------------------------------------
//
// GRINS - General Reacting Incompressible Navier-Stokes
//
// Copyright (C) 2014-2015 Paul T. Bauman, Roy H. Stogner
// Copyright (C) 2010-2013 The... |
<commit_before>#include "dsa/crypto.h"
#include "dsa/responder.h"
#include <gtest/gtest.h>
#include <boost/filesystem/operations.hpp>
#include <boost/format.hpp>
#include <thread>
#include "../test_config.h"
#include "dslink.h"
#include "module/default/console_logger.h"
#include "module/logger.h"
#include "util/string... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
... |
<commit_before>/*************************************************************************
*
* $RCSfile: operators_new_delete.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2003-03-26 16:45:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/*
* Copyright 2010 Apple Inc. All rights reserved.
* Copyright (C) 2012 Samsung Electronics. 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 c... |
<commit_before>/********************************************************************
Motor.cpp - A Library for Controlling the Motors of the MRK-1
An Introduction to Robot Programming
Author - Eric Ryan Harrison <me@ericharrison.info>
http://github.com/SumoRobotLeague/MRK-1/
Improved motor control library wi... |
<commit_before>
#include <synext.hpp>
#include "../ast/expr.hpp"
#include "../ast/ast.hpp"
#include "../parse/common.hpp"
#include "macro_rules.hpp"
class CMacroRulesExpander:
public ExpandProcMacro
{
bool expand_early() const override { return true; }
::std::unique_ptr<TokenStream> expand(Span sp,... |
<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>/*
* nt loader
*
* Copyright 2006-2008 Mike McCormack
*
* 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... |
<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 distributed WIT... |
<commit_before>#include "TDirectory.h"
#include "TMath.h"
#include "TString.h"
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
AliAnalysisTask *AddTaskJFFlucJCMAPsMaster(TString taskName = "JFFlucJCMAP_Run2_pass2", UInt_t period = 0, double ptMin = 0.2, double ptMax = 5.0,
std::string conf... |
<commit_before>/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
==... |
<commit_before>// Copyright 2008, 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>/*************************************************************************
*
* 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: SlsPageObjectViewContact.cxx,v $
... |
<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.o... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
* Copyright (c) 2016, Ford Motor Company
* 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
*... |
<commit_before>/*
Copyright (c) 2014, Project OSRM, Felix Guendling
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
of c... |
<commit_before>#include "mopViewer.h"
mopViewer::mopViewer() {
}
mopViewer::~mopViewer() {
}
void mopViewer::showStats() {
mopfile = new MopFile();
mopfile->setFilename("Testing_Project.mop");
mopfile->openMopfileReader();
mopstate = new MopState();
mopstate = mopfile->readCyclingState();
mopstate = mopfi... |
<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-CHROMIUM file.
#include "browser/browser_main_parts.h"
#include "browser/browser_context.h"
#include "browser/devtools_manager_delegate.h"
#... |
<commit_before>#include "specifyGenerationRulesDialog.h"
#include "ui_specifyGenerationRulesDialog.h"
using namespace qReal;
using namespace gui;
SpecifyGenerationRulesDialog::SpecifyGenerationRulesDialog(MainWindow &mainWindow
, EditorManagerInterface &interpreterEditorManager
, Id const &id) :
QDialog(&mainWin... |
<commit_before>/*
* Copyright (c) <2002-2006> <Jean-Philippe Barrette-LaPierre>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files
* (cURLpp), to deal in the Software without restriction,
* including without l... |
<commit_before>/* Copyright 2007-2015 QReal Research Group
*
* 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 ap... |
<commit_before>#include "i2c_interface.h"
I2CInterface::I2CInterface(const std::string& deviceFile, uint8_t slaveAddress)
: m_deviceFile(deviceFile),
m_slaveAddress(slaveAddress),
m_fileDescriptor(0)
{
}
I2CInterface::~I2CInterface()
{
closeFileDescriptor();
}
I2CInterface::RET_CODE I2CInterface:... |
<commit_before>#include <clang-c/Index.h>
#include <cstdio>
#include <array>
#include <iostream>
#include <vector>
namespace {
const unsigned int indent_spaces = 4;
const std::string indentation(indent_spaces, ' ');
}
CXCursor tu_cursor;
struct client_data
{
CXTranslationUnit tu;
std::vector<CXCu... |
<commit_before>/*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2009-2014 The Regents of
the University of Michigan All rights reserved.
HOOMD-blue may contain modifications ("Contributions") provided, and to which
copyright is held, by vari... |
<commit_before>#include "utility/w5100.h"
#include "utility/socket.h"
extern "C" {
#include "string.h"
}
#include "Arduino.h"
#include "Ethernet.h"
#include "EthernetClient.h"
#include "EthernetServer.h"
#include "Dns.h"
uint16_t EthernetClient::_srcport = 49152; //Use IANA recommended ephemeral port range 4... |
<commit_before>#include "movearray.hpp"
MoveArray::MoveArray() : count(0), num_attacks(0) {
//moveArray = new BitMove[100];
moveArray.resize(100);
}
MoveArray::~MoveArray() {}
void MoveArray::clear() {
count = 0;
num_attacks = 0;
}
void MoveArray::addMove(BitMove mv) {
moveArray[count] = mv;
++count;
}
<commi... |
<commit_before>#include <cstdio>
#include <cstring>
#include <ctime>
#include <iostream>
#include <memory>
#include "block.hpp"
#include "hash.hpp"
#include "slice.hpp"
#include "threadpool.hpp"
#include "transforms.hpp"
int main (int argc, char** argv) {
time_t start, end;
time(&start);
std::unique_ptr<transform... |
<commit_before>/* Copyright 2007-2015 QReal Research Group, Dmitry Mordvinov
*
* 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
*
* Unl... |
<commit_before>// Copyright (c) 2013 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
// Test for issue 178: a manual compaction causes deleted data to reappear.
#include <io... |
<commit_before>/*******************************************************************************
* c7a/api/read_lines.hpp
*
* Part of Project c7a.
*
* Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com>
* Copyright (C) 2015 Timo Bingmann <tb@panthema.net>
*
* This file has no license. Only Chuck Norris can com... |
<commit_before>#include "LDLTResponse.h"
#include <sofa/core/ObjectFactory.h>
namespace sofa {
namespace component {
namespace linearsolver {
SOFA_DECL_CLASS(LDLTResponse)
int LDLTResponseClass = core::RegisterObject("A sparse Cholesky factorization of the response matrix.").add< LDLTResponse >();
LDLTResponse::L... |
<commit_before>#include "ninja.h"
#include <gtest/gtest.h>
struct NinjaTest : public testing::Test {
NinjaTest() {
rule_cat_ = state_.AddRule("cat", "cat @in > $out");
}
Rule* rule_cat_;
State state_;
};
TEST_F(NinjaTest, Basic) {
Edge* edge = state_.AddEdge(rule_cat_);
state_.AddInOut(edge, Edge::I... |
<commit_before>#include "interfaces/non_conservative/navier_stokes.h"
#include "pidomus.h"
#include "deal.II/base/numbers.h"
#include "Teuchos_CommandLineProcessor.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "Teuchos_oblackholestream.hpp"
#include "Teuchos_StandardCatchMacros.hpp"
#include "Teuchos_Version.... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2014-2015 Esteban Tovagliari, The appleseedhq Organization
//
// Permission is hereby granted, free of charge... |
<commit_before>#pragma once
#include <cstddef>
#include <cstring>
#include <string>
#include <utility>
#include <iterator>
#include <iomanip>
namespace microbson
{
typedef unsigned char byte;
enum node_type {
double_node = 0x01,
string_node = 0x02,
document_node = 0x03,
binary... |
<commit_before>#include <iostream>
#include <queue>
#include <utility>
using namespace std;
typedef pair<int,int> node;
int re[1000000];
int main(int argc, char const *argv[])
{
priority_queue<node> pq;
pq.push(make_pair(1,2));
node n;
while(1){
node n=pq.top();
pq.pop();
switch(n.second){
case 2:
... |
<commit_before>/*
* EnvironmentMonitor.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero Ge... |
<commit_before>//
// application_context.cpp
// usbtest
//
// Created by Kristoffer Andersen on 13/07/15.
// Copyright (c) 2015 Monolit ApS. All rights reserved.
//
#include "application_context.h"
#include "application_controller_interface.h"
#include <display_painter.h>
#include "consoles.h"
#include <mbed_inter... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_psi_scom.C $ ... |
<commit_before>/*
* Bubble.cpp
* openc2e
*
* Created by Alyssa Milburn on Sat Apr 26 2008.
* Copyright (c) 2008 Alyssa Milburn. All rights reserved.
*
* 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 th... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_memdiag.C $ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.