text stringlengths 54 60.6k |
|---|
<commit_before>/**
* Performs dispatch for RC switch messages.
*
* (C) 2015 Andrew Barry <abarry@csail.mit.edu>
*/
#ifndef RC_SWITCH_DISPATH_HPP
#define RC_SWITCH_DISPATH_HPP
#include <iostream>
#include <lcm/lcm-cpp.hpp>
#include "../../LCM/lcmt/tvlqr_controller_action.hpp"
#include "../../LCM/lcmt/rc_switch_ac... |
<commit_before>
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015-2018 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, ... |
<commit_before>/*
* Copyright (c) 2010 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 implementati... |
<commit_before>/*
* http://github.com/dusty-nv/jetson-inference
*/
// #include "gstCamera.h"
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <autobot/compound_img.h>
#include <autobot/detected_img.h>
#include <autobo... |
<commit_before>#pragma once
#include "blackhole/config.hpp"
#include "blackhole/detail/thread/lock.hpp"
#include "blackhole/detail/config/noncopyable.hpp"
#include "blackhole/forwards.hpp"
#include "blackhole/record.hpp"
#include "blackhole/config.hpp"
namespace blackhole {
template<class Wrapper>
struct unwrap {
... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// abstract_catalog.cpp
//
// Identification: src/catalog/abstract_catalog.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===-------------------------... |
<commit_before>/* Copyright © 2001-2014, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open publ... |
<commit_before>#include "navigation/walk_to_ball_server.hpp"
WalkToBallAction::WalkToBallAction(std::string name) :
as_(nh_, name, boost::bind(&WalkToBallAction::executeCB, this, _1), false),
action_name_(name) {
// as_.registerGoalCallback(boost::bind(&WalkToBallAction::goalCB, this));
ball_pos_sub_ = nh_.sub... |
<commit_before>/// Eepromscope driver
///
/// (c) Koheron
#ifndef __DRIVERS_CORE_EEPROM_HPP__
#define __DRIVERS_CORE_EEPROM_HPP__
#include <vector>
#include <drivers/lib/dev_mem.hpp>
#include <drivers/addresses.hpp>
#include <thread>
#include <chrono>
// http://www.atmel.com/images/Atmel-5193-SEEPROM-AT93C46D-Data... |
<commit_before>/* This file is part of Ingen.
* Copyright (C) 2007-2009 Dave Robillard <http://drobilla.net>
*
* Ingen 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 (... |
<commit_before>#include "ingamescene.h"
#include <QPixmap>
#include <QtGlobal>
#include "../dice.h"
#include <QTimeLine>
#include <QEasingCurve>
#include "block.h"
#include "localgame.h"
IngameScene::IngameScene(qreal x, qreal y,
qreal width, qreal height,
QObject *pa... |
<commit_before>// Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_GRAPHICS_OGLPROCEDUREGETTER_HPP
#define OUZEL_GRAPHICS_OGLPROCEDUREGETTER_HPP
#include "../../core/Setup.h"
#if OUZEL_COMPILE_OPENGL
#include <algorithm>
#include <stdexcept>
#include "OGL.h"
#if OUZEL_OPENGLES
# include "... |
<commit_before>/* -*- C++ -*-
*
* kPPP: A pppd front end for the KDE project
*
* $Id$
*
* Copyright (C) 1997 Bernd Johannes Wuebben
* wuebben@math.cornell.edu
*
* This file contributed by: Mario Weilguni, <mweilguni@sime.com>
* Thanks Mario!
*
* This program is free s... |
<commit_before>#ifndef ITER_ACCUMULATE_H_
#define ITER_ACCUMULATE_H_
#include "internal/iterbase.hpp"
#include <utility>
#include <iterator>
#include <initializer_list>
#include <functional>
#include <type_traits>
#include <memory>
namespace iter {
namespace impl {
template <typename Container, typename Accumu... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Lorenz Esch <lorenz.esch@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date April, 2019
*
* @section LICENS... |
<commit_before>#include "../stkpl/StkPl.h"
#include "StkProperties.h"
class StkProperties::Impl
{
public:
char PropertyName[256][256];
char PropertyValue[256][256];
int NumOfProperties;
};
StkProperties::StkProperties()
{
pImpl = new Impl;
pImpl->NumOfProperties = 0;
}
StkProperties::~StkProperties()
{
delete... |
<commit_before>// minimal set of files to be linked with a compiled database
#include "../journal/File.cpp"
#include "../journal/Generic_File.cpp"
#include "../journal/Journal_File.cpp"
#include "../journal/Readonly_Journal.cpp"
#include "../journal/Stream_File.cpp"
<commit_msg>Writeable.cpp in minimal_runtime.cpp<comm... |
<commit_before>#include "aio_private.h"
#define AIO_DEPTH (40 * num_open_files() / nthreads)
#define EVEN_DISTRIBUTE
const int MAX_BUF_REQS = 1024 * 3;
/*
* each file gets the same number of outstanding requests.
*/
#ifdef EVEN_DISTRIBUTE
#define MAX_OUTSTANDING_NREQS (AIO_DEPTH / num_open_files())
#define ALLOW... |
<commit_before>//
// Created by wahba on 18/08/17.
//
#include <iostream>
#include <utility>
#include <unordered_map>
#include "alarmWatch.h"
class duration;
using namespace std::chrono_literals;
alarmWatch::alarmWatch() : _runningFlag(false) {
stopWatch();
}
void alarmWatch::alarmEvery(int repeats, std::chron... |
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved.
#ifndef CONTAINERS_INTRUSIVE_PTR_HPP_
#define CONTAINERS_INTRUSIVE_PTR_HPP_
#include <stddef.h>
#include <stdint.h>
#include "errors.hpp"
// Yes, this is a clone of boost::intrusive_ptr. This will probably
// not be the case in the future.
// No... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Jolla Ltd.
** Contact: Vesa-Matti Hartikainen <vesa-matti.hartikainen@jollamobile.com>
**
****************************************************************************/
/* This Source Code Form is subje... |
<commit_before>/*
* Copyright (C) 2017 The Android Open Source Project
*
* 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>/* dtkPluginManager.cpp ---
*
* Author: Julien Wintz
* Copyright (C) 2008 - Julien Wintz, Inria.
* Created: Tue Aug 4 12:20:59 2009 (+0200)
* Version: $Id$
* Last-Updated: Sun Jul 18 14:57:08 2010 (+0200)
* By: Julien Wintz
* Update #: 126
*/
/* Commentary:
*
*/
/* Change ... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "btree/secondary_operations.hpp"
#include "btree/operations.hpp"
#include "buffer_cache/alt/alt.hpp"
#include "buffer_cache/alt/blob.hpp"
#include "buffer_cache/alt/serialize_onto_blob.hpp"
#include "containers/archive/vector_stream.hpp"
R... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2005 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>#include <algorithm>
#include <functional>
#include <utility>
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
template <typename Dtype>
void ArgMaxLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
c... |
<commit_before>// Copyright 2014 BVLC and contributors.
#include <vector>
#include "caffe/layer.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void ConcatLayer<Dtype>::SetUp(const vector<Blob<Dtype>*>& bottom,
vector<Blo... |
<commit_before>/*!\page test_twobody Twobody
* This program will simulate two protein molecules
* in a dielectric solvent with explicit mobile ions.
* The container is SPHERICAL w. hard walls.
*
* \author Mikael Lund
* \date Prague 2007
* \todo Maybe use a cylindrical cell?
* \include twobody.cpp
*/
#include ... |
<commit_before>#include <stdio.h>
#include <math.h>
#include <GL/glut.h>
#include "Camera.h"
void Camera::Init()
{
m_yaw = 70.0;
m_pitch = -0.3;
SetPos(-25, 17, -40);
}
void Camera::Refresh()
{
// Camera parameter according to Riegl's co-ordinate system
// x/y for flat, z for height
m_lx = cos(m_yaw) * cos(m_p... |
<commit_before>// Actions specific to an NPC.
#include "../clients/CClient.h"
#include "../triggers.h"
#include "CChar.h"
// Add some enemy to my Attacker list
bool CChar::Attacker_Add(CChar * pChar, int threat)
{
ADDTOCALLSTACK("CChar::Attacker_Add");
CUID uid = pChar->GetUID();
if (!m_lastAttackers.empt... |
<commit_before>//
// http_server_handler_stats.cc
//
#include "plat_os.h"
#include "plat_net.h"
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cerrno>
#include <csignal>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector... |
<commit_before>/**
* A server which is responsible for interacting with devices.
*
* @date July 7, 2014
* @author Joeri HERMANS
* @version 0.1
*
* Copyright 2013 Joeri HERMANS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may... |
<commit_before>#ifndef GUARD_MLOPEN_OCL_KERNEL_HPP_
#define GUARD_MLOPEN_OCL_KERNEL_HPP_
#include <sstream>
#include <array>
#include <utility>
#include <vector>
#include <mlopen.h>
#include <cassert>
#include <functional>
#include <array>
#include <memory>
#include <algorithm>
#include <mlopen/errors.hpp>
#include <... |
<commit_before>/**
* Based on: https://github.com/davetcoleman/ros_control_boilerplate
*/
#include <kulbu_hardware/kulbu_hardware_interface.h>
#include <fcntl.h>
#define SYSFS_GPIO_DIR "/sys/class/gpio"
#define SYSFS_PWM_DIR "/sys/devices/platform/pwm-ctrl"
#define MAX_BUF 256
// FIXME: Encapsulate this IO code... |
<commit_before>/*
* GCM GHASH
* (C) 2013,2015,2017 Jack Lloyd
* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/ghash.h>
#include <botan/internal/ct_utils.h>
#include <botan/loadstor.h>
#include <botan/cpuid.h>
#if defined... |
<commit_before>/*
*
* Copyright (c) 2020 Project CHIP Authors
*
* 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 (c) 2014 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify,... |
<commit_before>#include "Camera.h"
#include <opencv2/opencv.hpp>
#include <thread>
#define DOUBLE_BUFFERING
Camera::Camera(const std::string &device): ThreadedClass("Camera") {
cap = new cv::VideoCapture(device.c_str());
if (!cap->isOpened()) // if not success, exit program
{
throw std::runtime_error("Camera not... |
<commit_before>#include "pattern.h"
#include <OpenEXR/ImathMatrix.h>
namespace lightfields {
Pattern::Pattern() : m_lensPitch(1.0), m_pixelPitch(1.0), m_rotation(0.0), m_scaleFactor(1.0, 1.0), m_sensorResolution(100, 100) {
}
Pattern::Pattern(double lensPitch, double pixelPitch, double rotation,
Imath::V2d scaleFa... |
<commit_before>
/*
* Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org)
*
* 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/LICENS... |
<commit_before>#include "FlagStatus.hpp"
#include "RemapUtil.hpp"
#include "Config.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace FlagStatus {
Item item[ModifierFlag::listsize];
void
Item::initialize(ModifierFlag::ModifierFlag _flag)
{
flag = _flag;
key = RemapUtil::getModifierKeyC... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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... |
<commit_before>#include "ClassSpaceSymbolTable.h"
#include <algorithm>
#include "CompilationExceptions.h"
ClassSpaceSymbolTable::ClassSpaceSymbolTable() {
analyzer.reference = this;
}
ClassSpaceSymbolTable::~ClassSpaceSymbolTable() {
for(map<string, pair<PropertySymbolTable*, bool> >::iterator it = classes.begin();... |
<commit_before>// Copyright 2015, University of Freiburg,
// Chair of Algorithms and Data Structures.
// Author: Björn Buchhold (buchhold@informatik.uni-freiburg.de)
#include <string>
#include <sstream>
#include <algorithm>
#include "./QueryExecutionTree.h"
#include "./IndexScan.h"
#include "./Join.h"
#include "./Sort... |
<commit_before>/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkAdvancedTypefaceMetrics.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkDescriptor.h"
#include "SkFontDescriptor.h"
#include "SkGlyph.h"
... |
<commit_before>/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2011 Sandro Santilli <strk@kbt.io
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General P... |
<commit_before>/*
* This file is part of Clockwork.
*
* Copyright (c) 2014-2016 Jeremy Othieno.
*
* The MIT License (MIT)
* 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 restr... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2020 Alexander Chumakov
*
* 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 ... |
<commit_before>/*
* Copyright (c) 2010 Eduard Burtescu
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND TH... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2019 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>#include "ingameelements/projectile.h"
#include "engine.h"
#include <cmath>
Projectile::Projectile(double id_, Gamestate *state, EntityPtr owner_) : MovingEntity(id_, state), owner(owner_)
{
entitytype = PROJECTILE;
}
Projectile::~Projectile()
{
//dtor
}
void Projectile::midstep(Gamestate *st... |
<commit_before>// This code is in the public domain -- castanyo@yahoo.es
#include <nvmath/SphericalHarmonic.h>
using namespace nv;
namespace
{
// Basic integer factorial.
inline static int factorial( int v )
{
if (v == 0) {
return 1;
}
int result = v;
while (--v > 0) {
result *= v;
}
return... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <wincodec.h>
#include "SkAutoCoInitialize.h"
#include "SkImageDecoder.h"
#include "SkImageEncoder.h"... |
<commit_before>/*
* Copyright (C) 2010 - 2015 Leonid Kostrykin
*
* Chair of Medical Engineering (mediTEC)
* RWTH Aachen University
* Pauwelsstr. 20
* 52074 Aachen
* Germany
*
*/
#include <Carna/presets/RayMarchingStage.h>
#include <Carna/base/Mesh.h>
#include <Carna/base/Vertex.h>
#include <Carna/base/... |
<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
* "... |
<commit_before>/* Copyright 2010 Antonie Jovanoski
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
<commit_before>#include "calculatorfactory.h"
#include "calculators/integrals.h"
#include "calculators/marcusrates.h"
#include "calculators/readxml.h"
#include "calculators/writexml.h"
#include "calculators/contkmc.h"
#include "calculators/estatics.h"
#include "calculators/histintegrals.h"
#include "calculators/shuffl... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2014 Klaus Post
Copyright (C) 2017 Roman Lebedev
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; eith... |
<commit_before>#include "runtime_internal.h"
extern "C" {
void *dlopen(const char *, int);
void *dlsym(void *, const char *);
int dlclose(void *);
#define RTLD_LAZY 0x1
#define RTLD_LOCAL 0x4
WEAK void *halide_get_symbol(const char *name) {
return dlsym(NULL, name);
}
WEAK void *halide_load_library(const char ... |
<commit_before>// illarionserver - server for the game Illarion
// Copyright 2011 Illarion e.V.
//
// This file is part of illarionserver.
//
// illarionserver 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 Found... |
<commit_before>#include "Central.h"
Central::Central(uint32_t tSede1, uint32_t tSede2)
{
tel1 = tSede1;
tel2 = tSede2;
}
Central::~Central()
{
}
Address Central::llamar(uint32_t llamante, Time duracion)
{
ns3::UniformRandomVariable rnd;
// Se escoge aleatoriamente un nmero al que llamar
int llamado = rnd.GetV... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: mempool.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2007-06-27 22:15:56 $
*
* The Contents of this file are made a... |
<commit_before>#include "Line.hpp"
#include "Point.hpp"
#include "Circle.hpp"
using namespace Geometry2d;
bool Line::intersects(const Line &other, Point *intr) const
{
// From Mathworld:
// http://mathworld.wolfram.com/Line-LineIntersection.html
float x1 = pt[0].x;
float y1 = pt[0].y;
float x2 = pt[1].x;
float... |
<commit_before>#include <GLXW/glxw.h>
#include <iostream>
#include <vector>
#include <defer.h>
#include "../assimp/include/assimp/Importer.hpp"
#include "../assimp/include/assimp/postprocess.h"
#include "../assimp/include/assimp/scene.h"
#include "utils/models.h"
GLfloat* importedModelCreate(const char* fname, unsign... |
<commit_before>// WatchdogLog - logs program address to EEPROM before watchdog timeout MCU reset https://github.com/per1234/WatchdogLog
#include "WatchdogLog.h"
//determine the size of the program counter based on flash size
#ifdef FLASHEND
#if FLASHEND > 65535
const byte programCounterSize = 3; //bytes
#else //FLASH... |
<commit_before>#include <iostream>
#include "lcm/lcm-cpp.hpp"
#include "Automatic.h"
#include "common/CallbackHandler.hpp"
#include "poll.h"
#include "Command/TakeOff.hpp"
using namespace common;
int main(int argc, char** argv){
lcm::LCM handler, handler2, handler3;
if (!handler.good() && !handler2.good() && !ha... |
<commit_before>#include "HttpClient.hpp"
#include "Timer.hpp"
#include <iostream>
#include <sstream>
#include <string>
#include <stdexcept>
using namespace Kite;
class Kite::HttpClientPrivate
{
public:
HttpClientPrivate()
{
state = 0;
responseCode = 999;
}
void setUrl(const std::stri... |
<commit_before>/*
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable l... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2010-2013, 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>#if defined(__APPLE__)
#include "net_rubygrapefruit_platform_internal_jni_OsxFileEventFunctions.h"
#include "generic.h"
#include <CoreServices/CoreServices.h>
#include <pthread.h>
class Server;
static void handleEventsCallback(
ConstFSEventStreamRef streamRef,
void *clientCallBackInfo,
siz... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: depapp.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2006-04-20 15:15:01 $
*
* The Contents of this file are made a... |
<commit_before>/*
Initial version copied from https://raw.githubusercontent.com/JetBrains/intellij-community/master/native/fsNotifier/mac/.
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
/*
* Apple specific functions.
... |
<commit_before>// This file is part of the dune-gdt project:
// http://users.dune-project.org/projects/dune-gdt
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_GDT_PRODUCTS_BASE_HH
#define DUNE_GDT_PRODUCTS_BASE_HH
#include <dune/stuf... |
<commit_before>/*
* Initial version copied from https://github.com/JetBrains/intellij-community/blob/master/native/fsNotifier/mac/fsnotifier.c
*/
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
/*
* Apple specific functions... |
<commit_before>// Longest common prefix
// 9/2/2017
// Easy
#include <iostream>
#include <vector>
#include <string>
#include <cassert>
using namespace std;
string longestcommonprefix(vector<string> &strs) {
if (strs.empty()) return "";
for (int i = 0; i < strs[0].size(); i++) {
for (int j = 1; j < st... |
<commit_before>/*******************************************************************************
* Project: Nebula
* @file CmdOnSetCustomConf.hpp
* @brief 设置自定义配置文件
* @author Bwar
* @date: 2019年9月14日
* @note
* Modify history:
**************************************************************************... |
<commit_before><commit_msg>málfarslagfæringar, smásnittbreytingar<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Benchmark.h"
#include "Resources.h"
#include "SkBitmap.h"
#include "SkJpegEncoder.h"
#include "SkPngEncoder.h"
#include "SkWebpEncoder.h"
#include "Sk... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2017, Irstea
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... |
<commit_before>#include <net/if.h>
#include <boost/scoped_array.hpp>
#include "TLV.hh"
#include "endian.hh"
// Most Significant Bit in the type field indicates the type is optional.
#define OPTIONAL_MASK (1 << 7)
/**
* Makes a deep copy of the given TLV.
*/
TLV::TLV(const TLV& other) {
this->init(other.getType... |
<commit_before>//
// configview.cpp
//
// Description: View for configuring the set of targets to be used with the debugger
//
//
// Copyright (c) 2010 Kåre Särs <kare.sars@iki.fi>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// Li... |
<commit_before>/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy... |
<commit_before>
////using the C++ API
#include "zorba_api.h"
#include "store/naive/basic_item_factory.h"
#include "store/naive/simple_store.h"
//for debug
#include "compiler/parser/xquery_driver.h"
#include "util/logging/loggermanager.hh"
#include "timer.h"
#include "error_display.h"
#include <fstream>
#include <io... |
<commit_before>
#include "ImwPlatformWindow.h"
#include "ImwWindowManager.h"
namespace ImWindow
{
//SFF_BEGIN
ImwPlatformWindow::ImwPlatformWindow(bool bMain, bool bIsDragWindow, bool bCreateState)
{
m_bMain = bMain;
m_bIsDragWindow = bIsDragWindow;
m_pContainer = new ImwContainer(this);
m_pState = NULL;
... |
<commit_before>#include "x11api.h"
#ifdef __LINUX__
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
#include <X11/Xos.h>
#include <X11/keysymdef.h>
#include <X11/Xutil.h>
//#include <GL/glx.h> //FIXME
#include <Tempest/Event>
#include <Tempest/TextCodec>
#include <Tempest/Window>
#include <atomic>
#i... |
<commit_before>/*
docker-script: run script files inside Docker containers
Copyright (c) 2017, Adam Rehn
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 withou... |
<commit_before>/**
* PcapSearch application
* ======================
* This application searches all pcap files in a given directory and all its sub-directories (unless stated otherwise) and outputs how many and which
* packets in those files match a certain pattern given by the user. The pattern is given in Be... |
<commit_before>#include "FPSCounter.h"
#include "../Application.h"
#include "../FSE-ImGui/imgui-plotvar.h"
#include <rttr/registration>
namespace fse
{
FPSCounter::FPSCounter(Scene* scene) : FPSCounter(scene, sf::Vector2f(0, 0))
{
}
FPSCounter::FPSCounter(Scene* scene, const sf::Vector2f& spawnPos) : FSEObject(s... |
<commit_before>#include "Destination.h"
#include "Identity.h"
#include "ClientContext.h"
#include "I2PService.h"
namespace i2p
{
namespace client
{
static const i2p::data::SigningKeyType I2P_SERVICE_DEFAULT_KEY_TYPE = i2p::data::SIGNING_KEY_TYPE_ECDSA_SHA256_P256;
I2PService::I2PService (std::shared_ptr<ClientDest... |
<commit_before>#include "compute/edflib.h"
#include "compute/eeg_spectrogram.h"
#include "json11/json11.hpp"
#include "wslib/server_ws.hpp"
using namespace std;
using namespace SimpleWeb;
using namespace json11;
#define NUM_THREADS 4
#define PORT 8080
#define TEXT_OPCODE 129
#define BINARY_OPCODE 130
void send_messa... |
<commit_before>#include <queso/Environment.h>
#include <queso/GslVector.h>
#include <queso/GslMatrix.h>
#include <queso/VectorSpace.h>
#include <queso/BoxSubset.h>
#include <queso/UniformVectorRV.h>
#include <queso/GaussianVectorRV.h>
#include <queso/GaussianJointPdf.h>
#include <queso/InvLogitGaussianJointPdf.h>
#incl... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkShrinkFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkSpherePuzzle.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>// $Id$
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. *
//* ... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice 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 ... |
<commit_before>/*************************************************************************
*
* $RCSfile: PrintManager.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2004-01-20 11:40:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<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>/*! \file uclient.cc
****************************************************************************
*
* Linux implementation of the URBI interface class
*
* Copyright (C) 2004, 2006, 2007, 2008 Jean-Christophe Baillie. All rights reserved.
*
* This program is free software; you can redistribute it a... |
<commit_before>#include <iostream>
#include <seqan/sequence.h>
#include <seqan/file.h>
int main()
{
seqan::String<char> str = "admn";
///The metafunction @Metafunction.Iterator@ returns the iterator type for a given container type.
seqan::Iterator<seqan::String<char> >::Type it = begin(str);
std::cout <<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.