text stringlengths 54 60.6k |
|---|
<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/command_line.h"
#include "base/logging.h"
#include "chrome/browser/defaults.h"
#include "chrome/browser/profile.h"
#incl... |
<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/ui/views/accelerator_table_gtk.h"
#include "base/basictypes.h"
#include "chrome/app/chrome_command_ids.h"
#in... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Axel Naumann <axel@cern.ch>
//------------------------------------------------------------------------------
#include "IncrementalParser.h"
#includ... |
<commit_before>/*************************************************************************
*
* $RCSfile: lngreg.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-11-17 12:37:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>/*************************************************************************
*
* $RCSfile: genericpropertyset.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2005-02-16 15:55:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>//===--------------------------------------------------------------------------------*- C++ -*-===//
// _
// | |
// __| | __ ___ ___ ___
// / _` |/ _` \ \ /\ / / '_ |
// | (_| | (_| |\ V ... |
<commit_before>/* Copyright (c) 2010-2013, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QMutexLocker>
#include <QFileInfo>
#include <QDir>
#include <TSqlDatabasePool>
#i... |
<commit_before>// Copyright Daniel Wallin & Arvid Norberg 2009. Use, modification and distribution is
// subject to 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)
#include <boost/python.hpp>
#include <libtorrent/create_torrent.hpp>
#i... |
<commit_before>/*
* Copyright (C) 2013-2014 Max Kellermann <max@duempel.org>
*
* 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>#include "parser.h"
#include "platform.h"
#include <assert.h>
extern "C" void parse(const char* json, command* wifiRC_command);
#ifndef DESKTOP
#include "edison_platform.h"
#else
#include "desktop_platform.h"
#endif
#define RC_ADDRESS_BASE "http://192.168.1."
#define RC_JSON_ADDRESS_SUFFIX ":8080/Comm... |
<commit_before>/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/effects/GrBlendFragmentProcessor.h"
#include "src/gpu/GrFragmentProcessor.h"
#include "src/gpu/KeyBuilder.h"
#include "src/gpu/SkGr.h"
#inclu... |
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/fastos/fastos.h>
#include <vespa/log/log.h>
LOG_SETUP("configmanager");
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/vespalib/util/noncopyable.hpp>
#include <v... |
<commit_before>/*
The OpenTRV project licenses this file to you
under the Apache Licence, Version 2.0 (the "Licence");
you may not use this file except in compliance
with the Licence. You may obtain a copy of the Licence at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No ... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/download/download_id.h"
#include <algorithm>
#include <map>
#include <set>
#include <vector>
#include "cont... |
<commit_before>#include <xzero/http/HttpService.h>
#include <xzero/http/HttpRequest.h>
#include <xzero/http/HttpResponse.h>
#include <xzero/http/v1/HttpConnectionFactory.h>
#include <xzero/net/LocalConnector.h>
#include <xzero/net/InetConnector.h>
#include <xzero/net/Server.h>
#include <algorithm>
#include <stdexcept>
... |
<commit_before>/* This file is part of the KDE project.
Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
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 o... |
<commit_before>/*
This file is part of KAddressbook.
Copyright (c) 2000 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 ... |
<commit_before>// Copyright 2017 The Effcee 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
//
// Unless required by applicab... |
<commit_before>/*************************************************************************
*
* Copyright (c) 2016 Kohei Yoshida
*
* 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
... |
<commit_before>//=============================================================================================================
/**
* @file rawdelegate.cpp
* @author Florian Schlembach <florian.schlembach@tu-ilmenau.de>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr... |
<commit_before>/*
* Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>#ifndef _SDD_ORDER_STRATEGIES_FORCE_HYPERGRAPH_HH_
#define _SDD_ORDER_STRATEGIES_FORCE_HYPERGRAPH_HH_
#include <deque>
#include <memory> // shared_ptr
#include <unordered_map>
#include <vector>
#include "sdd/order/strategies/force_hyperedge.hh"
#include "sdd/order/strategies/force_vertex.hh"
namespace... |
<commit_before>/*************************************************************************
*
* $RCSfile: TableFieldDescription.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: oj $ $Date: 2002-08-30 11:08:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the fo... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2012 Razor team
* Authors:
* Kuzma Shapran <kuzma.shapran@gmail.com>
* Luís Pereira <luis.artur.pereira@gmail.com>
*
* This program or library is free soft... |
<commit_before>/*
Highly Optimized Object-oriented Many-particle Dynamics -- Blue Edition
(HOOMD-blue) Open Source Software License Copyright 2009-2015 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 <string>
#include <utility>
#include <ros/ros.h>
#include <controller_manager/controller_manager.h>
#include <hardware_interface/joint_command_interface.h> // for PositionJointInterface
#include <hardware_interface/joint_state_interface.h>
#include <hardware_interface/robot_hw.h>
class Arcsys2... |
<commit_before>// $Id$
AliEmcalClusTrackMatcherTask* AddTaskEmcalClusTrackMatcher(
const char *nTracks = "Tracks",
const char *nClusters = "CaloClusters",
Double_t maxDist = 0.1
)
{
// Get the pointer to the existing analysis manager via the static access method.
//===============================... |
<commit_before>// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <stdio.h>
#include "bin/dartutils.h"
#include "bin/file.h"
#include "bin/platf... |
<commit_before>
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "openMVG/geometry/half_space_intersection.hpp"
#includ... |
<commit_before>//
// main.cpp
// afj-interpreter
//
// Created by Martin Kiesel on 17/02/16.
// Copyright © 2016 Martin Kiesel. All rights reserved.
//
#include <iostream>
#include <sys/stat.h>
#include "lib/Interpreter/Interpreter.cpp"
using namespace std;
const char* VERSION = "2.0.0";
void showHelp (char *s)... |
<commit_before><commit_msg>Filter search results by type and keyword in Template Manager.<commit_after><|endoftext|> |
<commit_before>#include "discord.h"
#include "system.h"
#include "../logger.h"
#include "../util.h"
#include "../config.h"
#include <sleepy_discord/sleepy_discord.h>
#include <random>
namespace shanghai {
namespace system {
namespace {
const std::string HELP_TEXT =
R"(/help
Show this help
/info
Print system ... |
<commit_before>/*
* Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu)
*
* Released under the MIT license, see LICENSE.txt
*/
#include <sstream>
#include <deque>
#include <vector>
#include <iostream>
#include "halValidate.h"
#include "hal.h"
using namespace std;
using namespace hal;
// current implementatio... |
<commit_before>/*************************************************************************
*
* $RCSfile: table.hxx,v $
*
* $Revision: 1.22 $
*
* last change: $Author: vg $ $Date: 2002-10-30 09:34:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>#include "asio_tcp_connection.h"
#include "halley/support/logger.h"
#include "halley/text/halleystring.h"
#include "halley/text/string_converter.h"
#include "halley/net/connection/network_packet.h"
using namespace Halley;
AsioTCPConnection::AsioTCPConnection(asio::io_service& service, TCPSocket socket)
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>// Copyright 2013 The Flutter 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 "flutter/shell/platform/linux/public/flutter_linux/fl_view.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
#include... |
<commit_before>/*
** Author(s):
** - Cedric GESTES <gestes@aldebaran-robotics.com>
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#include <qimessaging/message.hpp>
#include <qimessaging/datastream.hpp>
#include <iostream>
#include <boost/atomic.hpp>
#include <qi/log.hpp>
#include <cassert>
namespace qi {
const u... |
<commit_before>extern "C" {
#include <sys/systm.h>
#include <sys/un.h>
#include <sys/kpi_socket.h>
errno_t sock_nointerrupt(socket_t so, int on);
}
#include "base.hpp"
#include "Client.hpp"
#include "Config.hpp"
#include "IOLockWrapper.hpp"
namespace org_pqrs_KeyRemap4MacBook {
namespace {
struct sockaddr_un soc... |
<commit_before>#include <sys/types.h>
#include <sys/sysctl.h>
#include "Config.hpp"
#include "version.hpp"
#include "Client.hpp"
#include "FlagStatus.hpp"
#include "RemapClass.hpp"
#include "RemapFunc/PointingRelativeToScroll.hpp"
#include "util/CommonData.hpp"
namespace org_pqrs_KeyRemap4MacBook {
int Config::debu... |
<commit_before>#include <unistd.h>
#include <sys/epoll.h>
#include <sys/timerfd.h>
#include <signal.h>
#include <sys/signalfd.h>
#include <sys/eventfd.h>
#include <pthread.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <cstdlib>
#include <cs... |
<commit_before>#include "tablet.hpp"
#include "../core-impl.hpp"
#include "../wm.hpp"
#include "input-manager.hpp"
#include <signal-definitions.hpp>
#include <linux/input-event-codes.h>
extern "C"
{
#include <wlr/types/wlr_tablet_v2.h>
}
/* --------------------- Tablet tool implementation ------------------------- */... |
<commit_before>#include <cppunit/Portability.h>
#include <cppunit/Exception.h>
#include <cppunit/Protector.h>
#include <cppunit/TestCase.h>
#include <cppunit/TestResult.h>
#include <stdexcept>
#if CPPUNIT_USE_TYPEINFO_NAME
# include <typeinfo>
#endif
CPPUNIT_NS_BEGIN
/*! \brief Functor to call test case method (Imp... |
<commit_before>#ifndef MAINWINDOW_HPP_
#define MAINWINDOW_HPP_
#include <QtCore/QtGlobal>
#include <QtCore/QVector>
#include <QtSerialPort/QSerialPort>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QSpinBox>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QBoxLayout>
#include <qwt/qwt_plot.h>
#include <qw... |
<commit_before>// Copyright (c) 2006-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 <windows.h>
#include <psapi.h>
#include "skia/ext/bitmap_platform_device_win.h"
#include "skia/ext/platform_canvas.h"
n... |
<commit_before>//
// Copyright 2012 Francisco Jerez
//
// 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 <stdio.h>
#include <windows.h>
typedef unsigned int uint;
typedef unsigned long long qword;
const uint g_PageFlag0 = 0x1000;
const uint g_PageMask0 = 0x1000-1;
uint g_PageFlag = g_PageFlag0;
uint g_PageMask = g_PageMask0;
#pragma comment(lib, "advapi32.lib")
void InitLargePages( void )
... |
<commit_before>#include "grabber.h"
#include "main.h"
#include <X11/extensions/XTest.h>
#include <X11/Xutil.h>
Grabber::Grabber() {
current.grab = false;
current.suspend = false;
current.all = false;
current.xi = false;
current.pointer = false;
get_button();
wm_state = XInternAtom(dpy, "WM_STATE", False);
xin... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fileos2.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-11-02 13:04:22 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* $RCSfile: fileunx.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hjs $ $Date: 2003-08-18 14:47:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/* This file is part of Mapnik (c++ mapping toolkit)
* Copyright (C) 2005 Artem Pavlenko
*
* Mapnik 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 an... |
<commit_before>//
// EnttecDevice.cpp
//
// Created by Soso Limited.
//
//
#include "EnttecDevice.h"
#include "cinder/app/App.h"
#include "cinder/Log.h"
using namespace ci;
using namespace ci::app;
using namespace std;
using namespace dmx;
namespace {
const auto EnttecDeviceDummyBaudRate = 56000;
const auto Start... |
<commit_before>#include "musiclrcmanager.h"
#include <QFile>
#include <QFontDatabase>
#include <QDebug>
MusicLRCManager::MusicLRCManager(QWidget *parent) :
QLabel(parent)
{
m_intervalCount = 0.0f;
m_linearGradient.setStart(0, 10);//The starting point coordinates filled
m_linearGradient.setFinalStop(0,... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2002 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
// 75002 Paris - France
// http://www.linux-man... |
<commit_before>// Copyright (c) 2013-2017 Anton Kozhevnikov, Thomas Schulthess
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that
// the following conditions are met:
//
// 1. Redistributions of source code must retain the above cop... |
<commit_before>//===------- X86ExpandPseudo.cpp - Expand pseudo instructions -------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This application is open source and may be redistributed and/or modified under
* the terms of the GNU Public License (GPL) version 1.0 or
* (at your option) any later version.
*
* This library is distributed in the hope t... |
<commit_before>#include <delta/core/sys.h>
#include "dem/runners/Runner.h"
#include "dem/repositories/Repository.h"
#include "dem/repositories/RepositoryFactory.h"
#include "peano/utils/UserInterface.h"
#include "peano/datatraversal/autotuning/Oracle.h"
#include "peano/datatraversal/autotuning/OracleForOnePhaseDummy.... |
<commit_before>#include "functions.h"
static void initialize() {
static bool initialized = false;
if (!initialized) {
pg_query_init();
initialized = true;
}
}
NAN_METHOD(parse) {
initialize();
if (info.Length() < 1) {
return Nan::ThrowError("query parameter must be provided");
}
Nan::Utf8S... |
<commit_before>/**
* @copyright Copyright (c) 2014, J-PET collaboration
* @file JPetManager.cpp
* @author Wojciech Krzemien, wojciech.krzemien@if.uj.edu.pl
*/
#include "./JPetManager.h"
#include <cassert>
#include <ctime>
#include <string>
#include <TDSet.h>
#include <TThread.h>
#include "../JPetCmdParser/... |
<commit_before>// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/api/electron_api_desktop_capturer.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/strings/string_number_conversions.h"... |
<commit_before>/** Copyright (C) 2016, 2017 European Spallation Source ERIC */
#include <algorithm>
#include <arpa/inet.h>
#include <cassert>
#include <cinttypes>
#include <cstring>
#include <tools/ReaderPcap.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <fmt/format.h>
// GCOVR_EXCL_START
// Protocol ... |
<commit_before>#ifndef st_partition_hpp
#define st_partition_hpp
#include <set>
#include <vector>
#include "partition_wall.hpp"
namespace SorterThreadedHelper {
class Partition {
public:
Partition(const std::set<double>& pivots,
const std::vector<double>::iterator chunkBegin,
... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Permission is hereby granted, free of charge,... |
<commit_before>/*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contribut... |
<commit_before>// Copyright 2012 Luis Pedro Coelho
// This is an implementation of TIFF LZW compression coded from the spec.
// License: MIT
#include <vector>
struct code_stream {
public:
code_stream(unsigned char* buf, unsigned long len)
:buf_(buf)
,byte_pos_(0)
... |
<commit_before>#include "kernel.h"
#include "ilwisdata.h"
#include "coverage.h"
#include "symboltable.h"
#include "operationExpression.h"
#include "operationmetadata.h"
#include "commandhandler.h"
#include "operation.h"
#include "mastercatalog.h"
#include "uicontextmodel.h"
#include "drawers/draweroperation.h"
#include... |
<commit_before>#include "common.th"
#include "serial.th"
#define CHANNEL "#tenyr"
#define NICK "rynet"
#define do(X) c <- rel(X) ; call(puts) ; c <- rel(rn) ; call(puts)
_start:
prologue
do(nick)
do(user)
do(join)
loop_line:
call(getline)
// use g as backing store for line ; c is stompab... |
<commit_before>/**
* @file driver.cpp
* @brief Component driver
* @author Byunghun Hwang<bhhwang@nsynapse.com>
* @date 2015. 6. 21
* @details Load components with driver
*/
#include "driver.hpp"
#include <dlfcn.h>
#include "xmlprofile.hpp"
#include <iostream>
#include "logger.hpp"
#include "util/format.h"
#... |
<commit_before>//===--- RequestedInformation.cpp - Requested Information Utilities ---===//
//
// This file is part of the Election Method Mathematics Application (EMMA) project.
//
// Copyright (c) 2015 - 2016 Frank D. Martinez and the EMMA project authors
// Licensed under the GNU Affero General Public License, versi... |
<commit_before>#pragma once
/**
@file
@brief MS Office encryption encoder
Copyright (C) 2012 Cybozu Labs, Inc., all rights reserved.
*/
#include <cybozu/crypto.hpp>
#include <cybozu/mmap.hpp>
#include <cybozu/random_generator.hpp>
#include "crypto_util.hpp"
#include "cfb.hpp"
#include "make_dataspace.hpp"
#include "... |
<commit_before>/**
* @file evaluate_circuit.cpp
*
* @author Benjamin Villalonga (main contributor), Bron Nelson, Sergio Boixo and
* Salvatore Mandra
* @contributors: The qFlex Developers (see CONTRIBUTORS.md)
* @date Created: August 2018
*
* @copyright: Copyright © 2019, United States Government, as represented... |
<commit_before>#include "cv.h"
#include "highgui.h"
#include "opencv2/objdetect/objdetect.hpp"
#include <iostream>
#include <cstdlib>
using namespace cv;
using namespace std;
int main(int argc, char *argv[])
{
//OpenCV video capture object
VideoCapture camera;
//OpenCV image object
Mat image;
... |
<commit_before>/*
Copyright (c) 2012 Carsten Burstedde, Donna Calhoun
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>/*
* Basic Filters
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/basefilt.h>
#include <botan/key_filt.h>
namespace Botan {
void Keyed_Filter::set_iv(const InitializationVector&)
{
// assert that the iv is empty?
}
/*
* Chain Constructor
*/... |
<commit_before>/*
* Copyright (c) 2013-2014 Kajetan Swierk <k0zmo@outlook.com>
*
* 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 rig... |
<commit_before>#include <iostream>
#include "headings.h"
#include "libaps.h"
#include "constants.h"
#include <concol.h>
using namespace std;
enum MODE {DRAM, EPROM};
MODE get_mode() {
cout << concol::RED << "Programming options:" << concol::RESET << endl;
cout << "1) Upload DRAM image" << endl;
cout << "2) U... |
<commit_before>/*
* Sponge: hash sha-3 (keccak)
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "keccak.H"
#include "action_sponge.H"
#define HASH_SIZE 64
#define RESULT_SIZE 8
#undef TEST /* get faster turn-around time */
#ifdef TEST /* NO_SYNTH */ /* TEST */
# define NB_SLICES 4
# defin... |
<commit_before>#include <coffee/core/CUnitTesting>
#include <coffee/core/CFiles>
using namespace Coffee;
const cstring testfile = "fileapi_testfile.txt";
using File = FileFun;
const cstring writetest = "file_write_large.bin";
byte_t write_data[100] = {
"I'M THE TRASHMAN. I THROW GARBAGE ALL OVER THE RING, AND T... |
<commit_before>/******************************************************************************
* This file is part of the Gluon Development Platform
* Copyright (C) 2010 Arjen Hiemstra <>
* Copyright (C) 2010 Dan Leinir Turthra Jensen <admin@leinir.dk>
*
* This library is free software; you can redistribute it and... |
<commit_before>#include "coreclrutil.h"
#include <dirent.h>
#include <dlfcn.h>
#include <assert.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cstdlib>
#include <iostream>
#include <set>
#include <unicode/unistr.h>
// The name of the CoreCLR native runtime DLL
#if defined(__APPLE__)
constex... |
<commit_before>/**
* @file mean_shift_impl.hpp
* @author Shangtong Zhang
*
* Mean shift clustering implementation.
*/
#ifndef __MLPACK_METHODS_MEAN_SHIFT_MEAN_SHIFT_IMPL_HPP
#define __MLPACK_METHODS_MEAN_SHIFT_MEAN_SHIFT_IMPL_HPP
#include <mlpack/core/kernels/gaussian_kernel.hpp>
#include <mlpack/core/kernels/ker... |
<commit_before>#include "MeshSymLoader.h"
#include "FilepathHelper.h"
#include "SymbolPool.h"
#include "JsonSerializer.h"
#include "MeshIO.h"
#include "ArrayLoader.h"
#include <simp/NodeMesh.h>
#include <simp/from_int.h>
#include <simp/SIMP_PointsMesh.h>
#include <simp/SIMP_TrianglesMesh.h>
#include <simp/SIMP_Skin2Me... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#ifndef SM_STRING_ROUTINES_H
#define SM_STRING_ROUTINES_H
#include <string>
#include <cstdlib>
#include <sstream>
#include <iostream>
namespace sm
{
/// replaces the 'target' with 'replacement' searching forward through
/// the string and skipping 'skip' occurences
inline std::string replace(std::... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: PlotterBase.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2005-09-08 01:43:37 $
*
* The Contents of this file are m... |
<commit_before>/*
* Copyright (c) 2011, Peter Thorson. 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, th... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include "mainframe.h"
#include "icons.h"
#include "demoTutorialDialog.h"
#include <BALL/VIEW/KERNEL/iconLoader.h>
#include <BALL/VIEW/RENDERING/POVRenderer.h>
#include <BALL/VIEW/RENDERING/VRMLRenderer.h>
#include <BALL/VIEW/WIDGETS/molecularStru... |
<commit_before>// Copyright (c) 2015-2016 The Khronos Group 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... |
<commit_before>#include <iostream>
#include <typeinfo>
#include <map>
using std::cout;
using std::endl;
#include "viennagrid/storage/view.hpp"
#include "viennagrid/storage/container_collection.hpp"
#include "viennagrid/storage/inserter.hpp"
#include "viennagrid/storage/id.hpp"
#include "viennagrid/storage/id_genera... |
<commit_before>// RUN: %clangxx_asan -O %s -o %t
// RUN: not %run %t crash 2>&1 | FileCheck --check-prefix=CHECK-CRASH %s
// RUN: not %run %t bad-bounds 2>&1 | FileCheck --check-prefix=CHECK-BAD-BOUNDS %s
// RUN: not %run %t bad-alignment 2>&1 | FileCheck --check-prefix=CHECK-BAD-ALIGNMENT %s
// RUN: %env_asan_opts=det... |
<commit_before>#include <mantella_bits/helper/statistic.hpp>
// C++ standard library
#include <cmath>
// Mantella
#include <mantella_bits/helper/assert.hpp>
namespace mant {
double getMedianAbsoluteError(
const arma::Row<double>& data) {
return getMedian(arma::abs(data - getMedian(data)));
}
double ... |
<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 "chrome/browser/google/google_update.h"
#include <atlbase.h>
#include <atlcom.h>
#include "base/file_path.h"
#include "base/... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/gtk/browser_titlebar.h"
#include <gtk/gtk.h>
#include "app/l10n_util.h"
#include "chrome/app/chrome_dll_reso... |
<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)
//
// Contributors: Sven Kaulmann
#ifndef DUNE_STUFF_GRID_ENTITY_VISUALIZATION_HH... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
#ident "The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University o... |
<commit_before>#include "SemposScorer.h"
#include <algorithm>
#include <vector>
#include <stdexcept>
#include <fstream>
#include "Util.h"
#include "SemposOverlapping.h"
using namespace std;
SemposScorer::SemposScorer(const string& config)
: StatisticsBasedScorer("SEMPOS", config),
m_ovr(SemposOverlappingFacto... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: OPropertySet.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2007-07-25 08:47:10 $
*
* The Contents of this file are m... |
<commit_before>/****************************************************************************
** ncw is the nodecast worker, client of the nodecast server
** Copyright (C) 2010-2012 Frédéric Logier <frederic@logier.org>
**
** https://github.com/nodecast/ncw
**
** This program is free software: you can redistrib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.