text stringlengths 54 60.6k |
|---|
<commit_before>/* Copyright (c) 2012-2013 LevelDOWN contributors
* See list at <https://github.com/rvagg/node-leveldown#contributing>
* MIT +no-false-attribs License <https://github.com/rvagg/node-leveldown/blob/master/LICENSE>
*/
#include <node.h>
#include <node_buffer.h>
#include "database.h"
#include "leveldown... |
<commit_before>#include "eventbackend.h"
#define MAX_EVENTS 1024
// PDTK
#include <cxxutils/vterm.h>
lockable<std::unordered_multimap<posix::fd_t, EventBackend::callback_info_t>> EventBackend::queue;
std::list<std::pair<posix::fd_t, native_flags_t>> EventBackend::results;
#if defined(__linux__)
// epoll needs kern... |
<commit_before>#include <bits/stdc++.h>
using namespace std;
long long horner(int n, int c[], int x)
{
long long res = c[0];
for(int i=0; i<n; i++) res = res*x + c[i+1];
return res;
}
int main()
{
unsigned k, cases = 0;
int n, x, coe[1001];
ios_base::sync_with_stdio(0);
// p... |
<commit_before>/* ndhs.c - DHCPv4/DHCPv6 and IPv6 router advertisement server
*
* Copyright 2014-2017 Nicholas J. Kain <njkain at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are me... |
<commit_before>#include "plot.h"
#include "curvedata.h"
#include "signaldata.h"
#include <qwt_plot_grid.h>
#include <qwt_plot_layout.h>
#include <qwt_plot_canvas.h>
#include <qwt_plot_marker.h>
#include <qwt_plot_curve.h>
#include <qwt_plot_directpainter.h>
#include <qwt_curve_fitter.h>
#include <qwt_painter.h>
#includ... |
<commit_before>/*
* Copyright (c) 2012-2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware impleme... |
<commit_before>
#include <cublas_v2.h>
#include <cuda_runtime.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <numeric>
using namespace std;
static void CheckCudaErrorAux(const char* file, unsigned line, const char* statement, cudaError_t err) {
if (err == cudaSuccess) return;
std::cerr... |
<commit_before>#define _BSD_SOURCE
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/ptrace.h>
#include "ptbox.h"
pt_process *pt_alloc_process(pt_d... |
<commit_before>/***************************************************************************
* Copyright (C) 2006 by FThauer FHammer *
* f.thauer@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
*... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_nv_ref_clk_enable.C... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Realm 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://ww... |
<commit_before>/*
* Ascent MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
*
* 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... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, PickNik LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>#include "demo/system/precompiled.h"
#include "engine/system/system.h"
DEA_START()
#if (DEA_PLATFORM == DEA_PLATFORM_WINDOWS)
#include <windows.h>
int WINAPI WinMain(HINSTANCE hinstance, HINSTANCE prev_instance, PSTR cmd_line, int cmd_show)
{
/* Just the get this to compile for now */
(void*)hinstan... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of mcompositor.
**
** If you have questions regarding the... |
<commit_before><commit_msg>PVS: V517 The use of 'if (A) {...} else if (A) {...}' pattern was detected.<commit_after><|endoftext|> |
<commit_before>#include "atom_type.h"
namespace sirius {
void Atom_type::read_input_core(JSON_tree& parser)
{
std::string core_str;
parser["core"] >> core_str;
if (int size = (int)core_str.size())
{
if (size % 2)
{
std::string s = std::string("wrong core configuration strin... |
<commit_before>#include <cstring>
#ifdef __clang__
#include <vector>
#endif
#if defined _OPENMP
#include <omp.h>
#else
#define omp_get_thread_num() 0
#endif
#ifdef _MSC_VER
#pragma warning(disable:4127)
#endif
#define __DYN_GRID_SIZE
#include "common.h"
#include "metrix.h"
#include "aligned_malloc.h"
#define as256p... |
<commit_before>/***************************************************************************
* *
* Copyright (C) 2007-2015 by frePPLe bvba *
* ... |
<commit_before>#include <cstring>
#include <algorithm>
#include <fstream>
#include "xml_parser.h"
#include "os.h"
#include "string.h"
namespace lms {
namespace internal {
template<typename T>
struct PutOnStack {
std::stack<T> &stack;
PutOnStack(std::stack<T> &stack, const T &obj) : stack(stack) {
st... |
<commit_before>#include "node_operators.h"
#include "expression_graph.h"
#include "tensors/tensor_operators.h"
namespace marian {
ConstantNode::ConstantNode(Ptr<ExpressionGraph> graph,
const Shape& shape,
const Ptr<inits::NodeInitializer>& init,
... |
<commit_before>/*******************************************************************************
* ALMA - Atacama Large Millimiter Array
* (c) Associated Universities Inc., 2002 *
* (c) European Southern Observatory, 2002
* Copyright by ESO (in the framework of the ALMA collaboration)
* and Cosylab 2002, ... |
<commit_before>/*************************************************************************
*
* $RCSfile: FieldControls.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: oj $ $Date: 2001-03-14 10:35:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>//---------------------------- thread_management.cc ---------------------------
// $Id$
// Version: $Name$
//
// Copyright (C) 2000, 2001, 2002, 2003 by the deal.II authors
//
// This file is subject to QPL and may not be distributed
// without copyright and license information. Please ... |
<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>/*=========================================================================
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>/*
* Copyright 2007-2021 CM4all GmbH
* 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 code must... |
<commit_before>/*
Adplug - Replayer for many OPL2/OPL3 audio file formats.
Copyright (C) 1999 - 2007 Simon Peter <dn.tlp@gmx.net>, et al.
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 Foundati... |
<commit_before>#include "desktop_media_manager.h"
#include <cassert>
DesktopMediaManager::DesktopMediaManager(const std::string& hostname)
: hostname_(hostname),
format_() {
}
void DesktopMediaManager::Play() {
assert(gst_pipeline_);
gst_pipeline_->SetState(GST_STATE_PLAYING);
}
void DesktopMediaManager::... |
<commit_before>#include "blockdevices.h"
#include <list>
#include <cxxutils/posix_helpers.h>
#include <unistd.h>
#if defined(__linux__)
#include <linux/fs.h>
#else // *BSD/Darwin
#include <sys/disklabel.h>
#include <sys/disk.h>
#endif
#include <arpa/inet.h>
#ifndef DEVFS_PATH
#define DEVFS_PATH "/dev"
#en... |
<commit_before>#ifndef DISSENT_CRYPTO_CPP_DSA_LIBRARY_H_GUARD
#define DISSENT_CRYPTO_CPP_DSA_LIBRARY_H_GUARD
#include "CppDiffieHellman.hpp"
#include "CppHash.hpp"
#include "CppIntegerData.hpp"
#include "CppRandom.hpp"
#include "CppDsaPrivateKey.hpp"
#include "CppDsaPublicKey.hpp"
#include "Library.hpp"
namespace Di... |
<commit_before>#include <vtkSmartPointer.h>
#include <vtkFillHolesFilter.h>
#include <vtkPolyDataNormals.h>
#include <vtkCleanPolyData.h>
#include <vtkSelectionNode.h>
#include <vtkInformation.h>
#include <vtkUnstructuredGrid.h>
#include <vtkPolyData.h>
#include <vtkPointData.h>
#include <vtkOBJReader.h>
#include <vtk... |
<commit_before>// ========================================================================== //
// This file is part of DO++, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2013 David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Lic... |
<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>// This file is part of the dune-stuff project:
// https://github.com/wwu-numerik/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_GRIDS_PROVIDER_CUBE_HH
#define DUNE_STUFF_GRIDS_PROVIDER_CUBE_... |
<commit_before>#include "NFCMasterNet_WebServerModule.h"
#include "NFComm/NFMessageDefine/NFProtocolDefine.hpp"
#include <thread>
extern "C" int uhStats(UrlHandlerParam* param);
UrlHandler urlHandlerList[] = {
{ "stats", uhStats, NULL },
{ NULL },
};
AuthHandler authHandlerList[] = {
{ "stats", "user", "pass", "g... |
<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),
SourceFilename(NULL),
TargetFil... |
<commit_before>#include <ocean/displacement_map.h>
#include <util/error.h>
#include <util/util.h>
namespace ocean {
#define N_FFT_BATCHES 5
displacement_map::displacement_map(gpu::compute::command_queue queue, const surface_params& params)
: queue(queue),
wave_spectrum(queue.getInfo<CL_QUEUE_CONTEXT>(), param... |
<commit_before>#include <cassert>
#include <cstring>
#include <cstdlib>
#include <sstream>
#include <iostream>
#include <set>
#include <unordered_set>
#include "clause.h"
#include "config.h"
using namespace satsolver;
Clause::Clause(int nb_var, std::shared_ptr<std::vector<int>> literals) {
this->literals = std:... |
<commit_before>/*******************************************************************************
* ALMA - Atacama Large Millimeter Array
* Copyright (c) ESO - European Southern Observatory, 2011
* (in the framework of the ALMA collaboration).
* All rights reserved.
*
* This library is free software; you can redis... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2011, 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
// ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AreaChartType.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: vg $ $Date: 2007-05-22 18:43:44 $
*
* The Contents of this file are ... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved
*/
#ifndef _Stroika_Foundation_Memory_BlockAllocator_inl_
#define _Stroika_Foundation_Memory_BlockAllocator_inl_ 1
/*
********************************************************************************
***************************... |
<commit_before>///////////////////////////////////////////////////////////////////
//
// Python wrappers
//
// ----------------------------------------------------------------
//
// AUTHOR: Miguel Ramos Pernas
// e-mail: miguel.ramos.pernas@cern.ch
//
// Last update: 20/09/2017
//
// -------------------------------... |
<commit_before>/*************************************************************************
*
* $RCSfile: CustomAnimationPanel.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: kz $ $Date: 2005-03-18 17:00:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>// Copyright 2011 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<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 <jni.h>
#include "chrome/browser/android/chrome_startup_flags.h"
#include "base/android/jni_android.h"
#include "base/androi... |
<commit_before>#include "core/mat4.h"
#include "core/random.h"
#include "core/mat4.h"
#include "core/axisangle.h"
#include "core/aabb.h"
#include "core/texturetypes.h"
#include "core/vfs.h"
#include "core/vfs_imagegenerator.h"
#include "core/vfs_path.h"
#include "core/os.h"
#include "core/range.h"
#include "core/camera... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
... |
<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/browser/profiles/profile.h"
#include "base/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/platfo... |
<commit_before><commit_msg>user c-array instead of vector<> in hot loop<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/sync/signin_manager.h"
#include "chrome/browser/net/gaia/token_service.h"
#include "chrome/browser/net/gaia/t... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "session.h"
#include "domain.h"
#include "domainpart.h"
#include <vespa/fastlib/io/bufferedfile.h>
#include <cassert>
#include <vespa/log/log.h>
LOG_SETUP(".transactionlog.sess... |
<commit_before>// xiva (acronym for HTTP Extended EVent Automata) is a simple HTTP server.
// Copyright (C) 2009 Yandex <highpower@yandex.ru>
// 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; ... |
<commit_before>// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
Copyright (c) 2008 Aristid Breitkreuz, Ruediger Sonderfeld
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... |
<commit_before>/*
The IF Contextual Media Group Kernel Version 3
Source Code
Written By Jeff Koftinoff <jeffk@contextualmediagroup.com>
Copyright (c) 1995-2005
By Contextual Media Group, Inc.
http://www.contextualmediagroup.com/
ALL RIGHTS RESERVED.
*/
#ifndef IFCMG_DB_NEEDLES_HPP
#define IFCMG_DB_NEEDLES_HPP
#in... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkProgrammableSource.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1998 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyri... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
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 condi... |
<commit_before>#ifndef LIB_MART_COMMON_GUARD_NW_UNIX_H
#define LIB_MART_COMMON_GUARD_NW_UNIX_H
/**
* unix.h (mart-netlib)
*
* Copyright (C) 2019: Michael Balszun <michael.balszun@mytum.de>
*
* This software may be modified and distributed under the terms
* of the MIT license. See either the LICENSE file in the l... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "cling/MetaProcessor/MetaProce... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 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>////////////////////////////////////////////////////////////////////////////////
//
// This class provides storage for event and track information which
// are used for same-event as well as mixed-event analyses in AliAnalysisTaskKPFemto
// Author: ramona.lea@cern.ch
// was: maria.nicassio@cern.ch... |
<commit_before>// Copyright (c) 2012-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <compat/sanity.h>
#include <key.h>
#include <test/util/setup_common.h>
#include <boost/test/unit_t... |
<commit_before>#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/ml/ml.hpp>
//#include <boost/lexical_cast.hpp>
#include <boost/filesystem.hpp>
#include <iostream>
#include <fstream>
#include <cstdlib>
#include "ocr_train.hpp"
using ... |
<commit_before>AliAnalysisVertexingHF* ConfigVertexingHF() {
printf("MYCONFIGPID Call to AliAnalysisVertexingHF parameters setting :\n");
vHF = new AliAnalysisVertexingHF();
//Set Reduce Size dAOD
vHF->SetMakeReducedRHF(kTRUE);
//--- switch-off candidates finding (default: all on)
//vHF->SetD0toKpiOff... |
<commit_before>#include "osg/Uniform"
#include "osg/io_utils"
#include "osg/Notify"
#include "osgDB/Registry"
#include "osgDB/Input"
#include "osgDB/Output"
#include "Matrix.h"
using namespace osg;
using namespace osgDB;
using namespace std;
// forward declare functions to use later.
bool Uniform_readLocalData(Obje... |
<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>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 Litecoin Developers
// Copyright (c) 2013 DogeCoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licen... |
<commit_before>#include "RuntimeManager.h"
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IntrinsicInst.h>
#include "preprocessor/llvm_includes_end.h"
#include "Stack.h"
#include "Utils.h"
namespace dev
{
namespace eth
{
namespace jit
{
llvm::StructType* RuntimeManager::getRuntimeDataType()
{
st... |
<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>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>#include "PetscSupport.h"
#ifdef LIBMESH_HAVE_PETSC
#include "Moose.h"
#include "MooseSystem.h"
#include "Executioner.h"
//libMesh Includes
#include "libmesh_common.h"
#include "equation_systems.h"
#include "nonlinear_implicit_system.h"
#include "linear_implicit_system.h"
#include "sparse_matrix.h"
#i... |
<commit_before>#include "cfilelistview.h"
#include "../columns.h"
#include "model/cfilelistsortfilterproxymodel.h"
#include "delegate/cfilelistitemdelegate.h"
DISABLE_COMPILER_WARNINGS
#include <QApplication>
#include <QDebug>
#include <QDragMoveEvent>
#include <QHeaderView>
#include <QKeyEvent>
#include <Q... |
<commit_before>// Copyright (c) Facebook, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include "ComponentDescriptorRegistry.h"
#include <react/core/ShadowNodeFragment.h>
#include <react/uimanager/ComponentDescr... |
<commit_before>#include "autoattach.h"
#include <lua.hpp>
#include <mutex>
#include <stack>
#include <set>
#include <vector>
#include <intrin.h>
#include <detours.h>
#include "fp_call.h"
#include "../remotedebug/rdebug_delayload.h"
namespace autoattach {
std::mutex lockLoadDll;
std::set<std::wstring> loadedModules;
... |
<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>/* Copyright (C) 2003 MySQL AB
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, or
(at your option) any later version.
This program is d... |
<commit_before>#include "CharacterSelectState.h"
#include "Game.h"
#include "MenuState.h"
#include "BattleState.h"
CharacterSelectState::CharacterSelectState(){
background = Sprite("character_select/background.png");
character_slots = Sprite("character_select/character_slots.png");
// FIXME 2 enabled characters
f... |
<commit_before>/** \file
*
* Copyright (c) 2012 by Travis Gockel. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
* as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any la... |
<commit_before>//=============================================================================================================
/**
* @file ssvepBCIFlickeringItem.cpp
* @author Viktor Klüber <viktor.klueber@tu-ilmenauz.de>;
* Lorenz Esch <Lorenz.Esch@tu-ilmenau.de>;
* Christoph Dinh <chdinh@nmr... |
<commit_before>
#include <Atomic/IO/Log.h>
#include <Atomic/Core/CoreEvents.h>
#include <Atomic/Graphics/Graphics.h>
#include <Atomic/Graphics/Drawable.h>
#include <Atomic/Graphics/DebugRenderer.h>
#include <Atomic/Atomic3D/Terrain.h>
#include <Atomic/Scene/SceneEvents.h>
#include <Atomic/Scene/Node.h>
#include <Atom... |
<commit_before>#ifndef Ancona_Engine_Core_Systems_Collision_CollisionSystem_H_
#define Ancona_Engine_Core_Systems_Collision_CollisionSystem_H_
#include <vector>
#include <functional>
#include <Ancona/Engine/EntityFramework/UnorderedSystem.hpp>
#include <Ancona/Engine/Core/Systems/Physics/BasePhysicsSystem.hpp>
#inclu... |
<commit_before>/*
Persons Model
Copyright (C) 2012 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
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... |
<commit_before>#include "ros/ros.h"
#include "EventTriggerUtility.h"
#include "elderly_care_simulation/EventTrigger.h"
#include <queue>
#include <unistd.h> // sleep
#include "Scheduler.h"
using namespace elderly_care_simulation;
Scheduler scheduler;
Scheduler::Scheduler(){
concurrentWeight = 0;
allowNewEven... |
<commit_before>#include <ellis/ellis_array_node.hpp>
#include <ellis/ellis_node.hpp>
#include <ellis/private/using.hpp>
namespace ellis {
ellis_array_node::~ellis_array_node()
{
/* Do nothing; destruction is handled by ellis_node. */
}
ellis_node& ellis_array_node::operator[](size_t index)
{
return m_node.m_bl... |
<commit_before>#include "data-general.hpp"
#include "data-course.hpp"
#include "data-student.hpp"
using namespace std;
vector<Course> all_courses;
Student user;
void loadCourses() {
ifstream infile("data/2012-13-s2-csv.csv");
string str; // read in the header line
getline(infile, str);
while (infile.peek() != -1)... |
<commit_before>#include "core/base64.h"
#include "core/assert.h"
#include "core/cint.h"
#include <sstream>
#include <string_view>
#include <array>
// source: https://en.wikipedia.org/wiki/Base64
namespace euphoria::core::base64
{
namespace
{
constexpr std::string_view CODES = "ABCDEFGHIJKLMNOPQRSTUV... |
<commit_before>#include "clstm.h"
#include <assert.h>
#include <iostream>
#include <vector>
#include <memory>
#include <math.h>
#include <string>
#include "extras.h"
#include "utils.h"
using std_string = std::string;
#define string std_string
using std::vector;
using std::shared_ptr;
using std::unique_ptr;
using std::... |
<commit_before>/*
Copyright (c) 2007, Arvid Norberg
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 condi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: iipaobj.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: vg $ $Date: 2006-09-25 13:32:14 $
*
* The Contents of this file are made a... |
<commit_before>/* Copyright 2017 Istio 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 requi... |
<commit_before>/*
* LIFGap.hpp
*
* Created on: Jul 29, 2011
* Author: garkenyon
*/
#ifndef LIFGAP_HPP_
#define LIFGAP_HPP_
#include "LIF.hpp"
#define NUM_LIFGAP_EVENTS 1 + NUM_LIF_EVENTS // ???
#define EV_LIF_GSYN_GAP NUM_LIF_EVENTS + 1
namespace PV {
class LIFGap: public PV::LIF {
public:
LI... |
<commit_before>/*
* 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, or
* (at your option) any later version.
*
* This program is distributed in the hope... |
<commit_before>#include "model.h"
#include <string>
#include <exception>
std::istream& operator>>(std::istream& in, Model &model) {
int count;
in >> count;
while (count --> 0) {
std::string type;
in >> type;
if (type == "segment") {
int x1, y1, x2, y2;
in >> x1 >> y1 >> x2 >> y2;
mo... |
<commit_before>/**
* @file AspectRatio.hpp
* @brief AspectRatio class prototype.
* @author zer0
* @date 2018-07-10
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_MATH_ASPECTRATIO_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_MATH_ASPECTRATIO_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (... |
<commit_before>/*
Copyright (c) 2013 Daniele Bartolini, Michele Rossi
Copyright (c) 2012 Daniele Bartolini, Simone Boscaratto
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, i... |
<commit_before>
#include <mutex>
#include <cassert>
#include <cstring>
#include <sys/stat.h>
#include <list>
#include <unistd.h>
#include "global.h"
#include "partition_db.h"
std::string GetPartitionDBFilename(partition_t p)
{
return g_db_files_dirname + "/" + std::to_string(p) + ".db";
}
static int createTableCa... |
<commit_before>#include <iostream>
#include <map>
#include <memory>
#include <vector>
#include <utility>
#include <rematch/compile.h>
#include <rematch/execute.h>
#include <rematch/rematch.h>
#include "db_setup.h"
#include "../Rule.h"
using std::cout;
using std::cerr;
using std::endl;
using std::string;
using std::v... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "EC_DynamicComponent.h"
#include "IModule.h"
#include "ModuleManager.h"
#include "Entity.h"
#include "LoggingFunctions.h"
#include <QScriptEngine>
#include <QScriptValueIterator>
DEFINE_P... |
<commit_before>/* ttn_base_netjoin.cpp Tue Nov 1 2016 06:19:25 tmm */
/*
Module: ttn_base_netjoin.cpp
Function:
Arduino_LoRaWAN_ttn_base::NetJoin()
Version:
V0.2.0 Tue Nov 1 2016 06:19:25 tmm Edit level 1
Copyright notice:
This file copyright (C) 2016 by
MCCI Corporation
3520 Krums Corners Road
Ithaca... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.