text stringlengths 54 60.6k |
|---|
<commit_before>/* libscratch - Multipurpose objective C++ library.
Copyright (c) 2013 - 2016 Angelo Geels <[email protected]>
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
res... |
<commit_before>// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2005 OPeNDAP, Inc.
// Author: James Gallagher <[email protected]>
//
// This library is free software; you can redistribute it and/or
// modify it un... |
<commit_before><commit_msg>Initialize NSS with databases.<commit_after><|endoftext|> |
<commit_before>// $Id: sample.cpp 793 2008-08-17 14:33:30Z glandrum $
//
// Copyright (C) 2009 Greg Landrum
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <Graph... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: sb.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2007-06-27 14:10:46 $
*
* The Contents of this file are made availa... |
<commit_before>//
// Copyright (C) 2013-2018 University of Amsterdam
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any late... |
<commit_before>/*
* FileSystem.cc
* Apto
*
* Created by David on 12/7/05.
* Copyright 2005-2011 David Michael Bryson. All rights reserved.
* http://programerror.com/software/apto
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* follow... |
<commit_before>//==================================================================
// ָOfferԹپͱ⡷
// ߣκ
//==================================================================
// 14
// ĿһΪnӣӼmΣmnn>1m1
// ÿεӵijȼΪk[0]k[1]k[m]k[0]*k[1]**k[m]ܵ
// Ƕ٣統ӵij8ʱǰɳȷֱΪ233Σ
// ʱõij˻18
#include <iostream>
#include <cmath>
int maxProduct... |
<commit_before>/** Copyright (C) 2016 Ultimaker - Released under terms of the AGPLv3 License */
#include "SettingRegistry.h"
#include <sstream>
#include <iostream> // debug IO
#include <libgen.h> // dirname
#include <string>
#include <cstring> // strtok (split string using delimiters) strcpy
#include <fstream> // ifst... |
<commit_before>#include "mitkPointSetWriter.h"
#include <iostream>
#include <fstream>
//
// Initialization of the xml tags.
//
const char* mitk::PointSetWriter::XML_POINT_SET_FILE = "point_set_file" ;
const char* mitk::PointSetWriter::XML_FILE_VERSION = "file_version" ;
const char* mitk::PointSetWriter::XML_POINT_... |
<commit_before>/***********************************************************************
options.cpp - Implements the Option class hierarchy.
Copyright (c) 2007 by Educational Technology Resources, Inc. Others
may also hold copyrights on code in this file. See the CREDITS
file in the top directory of the distribu... |
<commit_before>#ifndef GUARD_phatbooks_database_connection_hpp
#define GUARD_phatbooks_database_connection_hpp
/** \file phatbooks_database_connection.hpp
*
* \brief Header file pertaining to PhatbooksDatabaseConnection class.
*
* \author Matthew Harvey
* \date 04 July 2012.
*
* Copyright (c) 2012, Matthew Harv... |
<commit_before>// Copyright (c) 2018-2021 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 <chainparams.h>
#include <core_io.h>
#include <psbt.h>
#include <util/strencodings.h>
#include <util/... |
<commit_before>/*
** Copyright (C) 2012 Aldebaran Robotics
** See COPYING for the license
*/
#include "servicedirectoryclient.hpp"
#include <qitype/objecttypebuilder.hpp>
#include "servicedirectory_p.hpp"
#include "tcptransportsocket.hpp"
namespace qi {
ServiceDirectoryClient::ServiceDirectoryClient()
: _rem... |
<commit_before>/**
* @file /cost_map_visualisations/src/applications/service_relay.cpp
*/
/*****************************************************************************
** Includes
*****************************************************************************/
#include <cstdlib>
#include <ecl/command_line.hpp>
#inclu... |
<commit_before>#include "CAQrencode.h"
#include "images/qrencode/qrencode.h"
#include "platform/CADensityDpi.h"
NS_CC_BEGIN
CAImage* CAQrencode::createWithQRString(const std::string& string, unsigned int sideLength)
{
return CAQrencode::createWithQRString(string, sideLength, CAColor4B::WHITE, CAColor4B::BLACK);
}... |
<commit_before>/******************************************************************************
This source file is part of the tomviz project.
Copyright Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
... |
<commit_before>//===-- sanitizer_win.cc --------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "vm.h"
#include "opcodes.h"
#include "sections.h"
#include <cassert>
#include <iostream>
#define STR_MASK 0x8000000000000000
#define ARRAY_MASK 0x4000000000000000
#define MASK(MASK, V) ((V) | (MASK))
#define UNMASK(MASK, V) ((V) & ~(MASK))
#define IS_MASK(MASK, V) ((V) & (MASK))
#define MAS... |
<commit_before>#include "Vision/RTSVisionManager.h"
#include "EngineUtils.h"
#include "Engine/GameInstance.h"
#include "Engine/World.h"
#include "GameFramework/PlayerController.h"
#include "Kismet/GameplayStatics.h"
#include "RTSGameMode.h"
#include "RTSLog.h"
#include "RTSOwnerComponent.h"
#include "RTSPlayerState.h... |
<commit_before>#include "../include/File.h"
#include <vector>
#include <ctype.h>
#include <locale>
using namespace std;
const string tok = ";";
const string vars = "var";
const string consts = "const";
const string minitok = ",";
const string equals = "=";
const string affct = ":=";
const string plusLut = "+";
const s... |
<commit_before>/**
* Copyright (c) 2013, Timothy Stack
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
... |
<commit_before>// A small, simple heap manager based (loosely) on the startup heap
// based on the startup heap manager from FreeBSD.
//
// Manages a fixed-size memory pool, supports malloc and free only.
// No support for realloc.
//
// Allocates chunks in multiples of four bytes, with a four byte header
// for ... |
<commit_before>#include <gtest/gtest.h>
#include <sstream>
#include "../../main/models/combination/RandomChoosingCombinedModel.h"
#include "../../main/models/combination/RandomChoosingCombinedModelExpertUpdater.h"
namespace {
class DummyModel : public Model {
public:
void add(RecDat*){ add_counter_++; }
int ... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) [2016] [BTC.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 rights
to use, c... |
<commit_before>
#include <gtest/gtest.h>
#include <aerial_autonomy/common/conversions.h>
#include <aerial_autonomy/controller_connectors/rpyt_relative_pose_visual_servoing_connector.h>
#include <aerial_autonomy/controllers/rpyt_based_relative_pose_controller.h>
#include <aerial_autonomy/tests/test_utils.h>
#include <a... |
<commit_before>////////////////////////////////////////////////////////////////////////
//
// AliTPCTracking.C
//
// date: 22.08.2002
// author: Jiri Chudoba based on code of Jourij Belikov
// version: 1.0
// description:
// reconstructs of tracks in TPC inthe following steps:
// TPC cluster finding
// ... |
<commit_before>/*
* Unit tests for the Raft library.
*
* Copyright (C) 2017 Nextworks
* Author: Vincenzo Maffione <[email protected]>
*
* This file is part of rlite.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as p... |
<commit_before>#include "stdafx.h"
#include "UIGifButton.h"
namespace DuiLib
{
CGifButtonUI::CGifButtonUI()
:m_pGif(NULL)
,m_nPreUpdateDelay(0)
,m_isUpdateTime(false)
{
}
CGifButtonUI::~CGifButtonUI()
{
m_pManager->KillTimer(this, GIF_TIMER_ID);
if (m_pGif)
{
delete m_pGif;
... |
<commit_before>#include <LibUtilities/BasicUtils/SessionReader.h>
#include <LibUtilities/BasicUtils/MeshPartition.h>
#include <LibUtilities/Communication/CommSerial.h>
#include <iostream>
using namespace std;
using namespace Nektar;
using namespace Nektar::LibUtilities;
class BrokenComm : public CommSerial
{
public:... |
<commit_before><commit_msg>added colors generation<commit_after><|endoftext|> |
<commit_before>/*
*
* Copyright 2014, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>#include "unlimited.h"
#include "test/test_bitcoin.h"
#include "../consensus/consensus.h"
#include <boost/algorithm/string.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
using namespace std;
// Defined in rpc_tests.cpp not bitcoin-cli.cpp
extern UniValue CallRPC(string str... |
<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/lib/ui/painting/single_frame_codec.h"
#include "flutter/lib/ui/painting/frame_info.h"
#include "flutter/lib/ui/ui_dart_st... |
<commit_before>/*
Copyright (c) 2013, Project OSRM, Dennis Luxen, others
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>/*
c2ffi
Copyright (C) 2013 Ryan Pavlik
This file is part of c2ffi.
c2ffi 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 la... |
<commit_before>// Copyright (c) 2016 Ansho Enigu
#include "crypto/lamport.h"
#include "crypto/ripemd160.h"
#include "crypto/common.h"
bool LAMPORT::checksig(unsigned char* data, char sig[160][20], char pubkey[320][20])
{
bool messhashb[160];
unsigned char* messhash;
CRIPEMD... |
<commit_before>#include <fcntl.h>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <errno.h>
#define MAX_BUF 1024
#include <sstream>
#include <iostream>
#include <string>
using namespace std;
#include <boost/property_tree/json_parser.hpp>
static in... |
<commit_before>/*
c2ffi
Copyright (C) 2013 Ryan Pavlik
This file is part of c2ffi.
c2ffi 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 la... |
<commit_before>/* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... |
<commit_before>/*
Copyright (c) 2015 Michael C. Miller. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any... |
<commit_before>/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id$ */
/// By Laurent Aphecetche
{
cout << "Loading MUON libraries ..." << endl;
gROOT->LoadMacro("${ALICE_ROOT}/MUON/loadlibs.C");
gInterp... |
<commit_before>//===- DCE.cpp - Code to perform dead code elimination --------------------===//
//
// This file implements dead code elimination and basic block merging.
//
// Specifically, this:
// * removes definitions with no uses (including unused constants)
// * removes basic blocks with no predecessors
// *... |
<commit_before>/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <vector>
#include <thread>
#include "common/log.h"
#include "gfx/gl/driver.h"
#include "gfx/camera.h"
#include "gfx/object.h"
#include "gfx/scene_node.h"
#include "gfx... |
<commit_before><commit_msg>this counter is not needed in sw/.. view.cxx, thanks cppcheck<commit_after><|endoftext|> |
<commit_before>
#include "../common.h"
#include "gamefw.h"
#include <glm/gtc/matrix_projection.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/euler_angles.hpp>
using namespace gamefw;
Renderer::Renderer(const GLuint display_width, const GLuint display_height) :
m_display_width((float) display_wi... |
<commit_before>//===========================================
// Lumina-DE source code
// Copyright (c) 2012-2015, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "LClock.h"
#include "LSession.h"
#include <LuminaThe... |
<commit_before>/* Adapted from diffdrive gazebo plugin.
Copyright (c) 2010, Daniel Hewlett, Antons Rebguns
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 so... |
<commit_before>/*
* Unit tests for the TTSampleMatrix Object for Jamoma DSP
* Copyright © 2012, Tim Place & Nathan Wolek
*
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*/
#include "TTSampleMatrix.h"
TTErr TTSampleMatrix::test(TTValue& re... |
<commit_before>#ifndef __JSON_HPP__
#define __JSON_HPP__
#include <cctype>
#include <string>
#include <vector>
#include <regex>
namespace JSON {
using namespace std;
struct Error {};
struct SyntaxError : public Error {};
struct LoadError : public Error {};
struct AccessError : public Error {};
template<typena... |
<commit_before>#include "socket.h"
#include "dialer.h"
#include "listener.h"
#include "exceptions.hpp"
#include <vector>
namespace nng {
using std::placeholders::_1;
using std::placeholders::_2;
using std::placeholders::_3;
using std::placeholders::_4;
socket::socket(const nng_ctor_func& nng_cto... |
<commit_before>// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Engine - Core module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_RESOURCEREF_HPP
#define NAZARA_RESOURCEREF_HPP
#include <Nazara/Prerequesites.hpp>
#include <Nazara/... |
<commit_before>#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#elif defined (HAVE_CONFIG_H)
#include "config.h"
#endif // ifdef HAVE_CMAKE_CONFIG
#include <vector>
#include <boost/filesystem.hpp>
#include <dune/common/exceptions.hh>
#include <dune/common/mpihelper.hh>
#include <dune/common/timer.hh>
#includ... |
<commit_before>/*
* ArmorObjectImplementation.cpp
*
* Created on: 02/08/2009
* Author: victor
*/
#include "ArmorObject.h"
#include "server/zone/templates/tangible/ArmorObjectTemplate.h"
#include "server/zone/objects/manufactureschematic/ManufactureSchematic.h"
#include "server/zone/objects/tangible/weapon/W... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2020 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/// \file
/// \ingroup tutorial_v7
///
/// \macro_code
///
/// \date 2018-03-18
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/// \author Iliana Betsou
#include "ROOT/RCanvas.hxx"
#include "ROOT/RColor.hxx"
#inclu... |
<commit_before>#include "controller.h"
Controller::Controller() {
}
int Controller::setup_db() {
return this->tagdb.open();
}
int Controller::setup_reader() {
return this->rfreader.init_spi();
}
void Controller::main_loop() {
uint8_t status;
while(1)
{
status = this->rfreader.read_tag();
// status = TAG_O... |
<commit_before>// @(#)root/minuit2:$Id$
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
/**********************************************************************
* *
* Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT ... |
<commit_before>#include "cellmlmodelrepositorywindow.h"
#include "internetfile.h"
#include "ui_cellmlmodelrepositorywindow.h"
#include <QDebug>
namespace OpenCOR {
namespace CellMLModelRepository {
CellmlModelRepositoryWindow::CellmlModelRepositoryWindow(QWidget *pParent) :
DockWidget(pParent),
mUi(new Ui::... |
<commit_before>template<typename Key, typename Val>
struct deamortized_map {
deamortized_map();
struct Cell {
Key key;
Value val;
};
Node {
Cell data;
Node *left, *right, *next;
size_t height;
};
Node * head;
Cell * find(const Key&) const;
Cell * insert(const Key&, const Val&);
si... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: i18n_im.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: rt $ $Date: 2005-09-09 12:40:19 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: saldata.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:05:41 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<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.
*/
#include "GrGLUtil.h"
#include "SkMatrix.h"
#include <stdio.h>
void GrGLClearErr(const GrGLInterface* gl) {
while (GR_GL_NO_ERROR != gl->fFunctions.fGetEr... |
<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>#include "DataSetModel.hh"
#include "DataSetItem.hh"
#include "MetaTypes.hh"
#include <QDebug>
#include <QIcon>
namespace aleph
{
namespace gui
{
DataSetModel::DataSetModel( QObject* parent )
: QAbstractItemModel( parent )
, _root( new DataSetItem( QString(), QVariant() ) )
{
QList<DataSetItem... |
<commit_before>#pragma once
#include <mapbox/geojsonvt/types.hpp>
namespace mapbox {
namespace geojsonvt {
struct Tile {
mapbox::geometry::feature_collection<int16_t> features;
uint32_t num_points = 0;
uint32_t num_simplified = 0;
};
namespace detail {
class InternalTile {
public:
const uint8_t z;
... |
<commit_before>/* Copyright (C) 2017 INRA
*
* 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, merge, pu... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include "min_heap.hpp"
#define LEFT_CHILD(i) ((i << 1) + 1)
#define RIGHT_CHILD(i) ((i << 1) + 2)
#define PARENT_ENTRY(i) ((i - 1) >> 1)
template <class P, class V> MinHeap<P, V>::MinHeap(int size) {
this->length = size... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>/************************************************************************/
/* */
/* Copyright 1998-2002 by Ullrich Koethe */
/* Cognitive Systems Group, University of Hamburg, Germany */
/* ... |
<commit_before>#include "Matrix33.hpp"
#include "Matrix44.hpp"
#include "Vector3.hpp"
using namespace coffeemill;
typedef RealVector3 Realvec;
typedef RealMatrix33 Matrix3;
typedef RealMatrix44 Matrix4;
int main()
{
Realvec v1;
Realvec v2(1e0);
Realvec v3(1e0, 2e0, 3e0);
Realvec v4(v2);
Realvec v5... |
<commit_before>/**@file GSM/SIP Mobility Management, GSM 04.08. */
/*
* Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
* Copyright 2011 Range Networks, Inc.
*
* This software is distributed under the terms of the GNU Affero Public License.
* See the COPYING file in the main directory for details.
*
* T... |
<commit_before>#include "Run.h"
#include "InputContainer.h"
Run::Run(std::string iTag) : mRunName(iTag) {
Options runOptions = loadRunOptions(iTag);
init(runOptions);
}
Run::Run(const Options& iOptions) {
init(iOptions);
}
void Run::init(const Options& iOptions) {
mRunOptions = iOptions;
// Create inpu... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: atom.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2006-06-19 14:08:09 $
*
* The Contents of this file are made avai... |
<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>#ifdef ENABLE_LLVM
#if RBX_LLVM_API_VER >= 302
#include <llvm/DataLayout.h>
#else
#include <llvm/Target/TargetData.h>
#endif
#include <llvm/Transforms/Scalar.h>
#include "llvm/state.hpp"
#include "llvm/jit_context.hpp"
#include "llvm/jit_runtime.hpp"
#include "llvm/jit_memory_manager.hpp"
#include "llv... |
<commit_before>// Copyright (c) 2018 The Dash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "providertx.h"
#include "specialtx.h"
#include "deterministicmns.h"
#include "hash.h"
#include "clientversio... |
<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>/**
* \file
* \brief DynamicThreadBase class header
*
* \author Copyright (C) 2015-2017 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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
* dis... |
<commit_before>#include "aes.hpp"
int aes::setKey(char *_key)
{
for(int i = 0; i < Nk; i++)
{
for(int j = 0; j < 4; j++)
{
key[i*4+(3-j)] = _key[i*4+j];
}
}
return expandKey();
}
int aes::expandKey()
{
for(int i = 0; i < Nk; i++)
{
roun... |
<commit_before>#include"all_defines.hpp"
#include"aio.hpp"
#include"heaps.hpp"
#include"types.hpp"
#include"objects.hpp"
#include"processes.hpp"
#include"workers.hpp"
#include"bytecodes.hpp"
#include"symbols.hpp"
/*Generic code for AIO*/
/*This contains code that is shared across AIO implementations*/
/*internal fun... |
<commit_before>#include"all_defines.hpp"
#include"aio.hpp"
#include"heaps.hpp"
#include"types.hpp"
#include"objects.hpp"
#include"processes.hpp"
#include"workers.hpp"
#include"bytecodes.hpp"
#include"symbols.hpp"
/*Generic code for AIO*/
/*This contains code that is shared across AIO implementations*/
/*internal fun... |
<commit_before>#include "ant.hpp"
extern int debug;
Ant::Ant(Graph *graph, double alpha, double beta, double gamma, unsigned max_solution_length)
: graph(graph)
, alpha(alpha)
, beta(beta)
, gamma(gamma)
, max_solution_length(max_solution_length)
, solution(NULL)
, generator()
{}
void Ant::traverse_graph() {
bool... |
<commit_before>#include "app.h"
#include <memory>
#include <utility>
#include <cmath>
#include "platform.h"
#include "view/view.h"
#include "GLES2/gl2.h"
#include "EGL/egl.h"
#include "EGL/eglext.h"
std::shared_ptr<View> m_view;
void initialize() {
logMsg("%s\n", "initialize");
// Create view
m_view =... |
<commit_before>/*
* Copyright (c) 2000-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>/******************************************************************************
* Copyright (c) 2016 Sergey Alexandrov
*
* 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 wi... |
<commit_before>//
// SString.cpp
// DataStruct
//
// Created by haozhu on 2017/6/10.
// Copyright © 2017年 neu. All rights reserved.
//
//串采用定长顺序存储结构
//SString是数组类型,故不需引用类型
#include "SString.hpp"
<commit_msg>完成串的部分操作方法<commit_after>//
// SString.cpp
// DataStruct
//
// Created by haozhu on 2017/6/10.
// Copyri... |
<commit_before>/*
*
* Copyright 2018 gRPC 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>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/ddr4/nvdimm... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the QtLocation module of the Qt Toolkit.
**
** $QT_BEG... |
<commit_before>/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Symbian Foundation License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://... |
<commit_before>#include <sys/errno.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/uio.h>
#include <errno.h>
#include <limits.h>
#include <signal.h>
#include <unistd.h>
#include <common/buffer.h>
#include <common/limits.h>
#include <event/action.h>
#include <event/callback.h>
#include <event/event_sy... |
<commit_before>#include "layers/icp.h"
#include "pcl/registration/registration.h"
#include "pcl/registration/icp.h"
#include <Eigen/Dense> ///< to enable OpenCV's eigen2cv()
#include <opencv2/core/eigen.hpp> ///< for eigen2cv(), preceeded be #include <Eigen/Dense>
#include "core/exception.h"
#include "cor... |
<commit_before>/*
* Copyright (C) 2008 Barracuda Networks, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later... |
<commit_before>#ifndef OCTARINE_LANG
#define OCTARINE_LANG
// Table of contents
// ## 00 Macro Definitions
// ## 10 Includes
// ## 20 Type declarations and typedefs
// ## 30 Function declarations
// ## 40 Type definitions
// ## 50 Function definitions
// ## 60 C API
// ## 00 Macro Definitions
#ifdef _WIN32
#define W... |
<commit_before>/*
Copyright (c) 2015, Project OSRM contributors
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>/*
* Copyright (c) 2013 Eugene Lazin <[email protected]>
*
* 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 ve... |
<commit_before>#include "databaseconnectiondatadialog.hxx"
#include <apps/app/app.hxx>
#include <apps/app/settings.hxx>
#include <ui/widgets/gridgroupbox.hxx>
#include <ui/widgets/databaseconnectionstatuslabel.hxx>
#include <ui/widgets/fieldlabel.hxx>
#include <ui/widgets/hostnameedit.hxx>
PROJECT_NAMESPACE_BEGIN
WI... |
<commit_before>//
// Copyright (c) 2008 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef WITHOUT_HSA_BACKEND
#include <string>
#include <sstream>
#include <fstream>
#include <iostream>
#include "os/os.hpp"
#include "rocdevice.hpp"
#include "rocprogram.hpp"
#if defined(WITH_LIGHTNING_COMPILER)
#include "op... |
<commit_before>#include "blackhole/formatter/json.hpp"
#include <array>
#include <boost/variant/apply_visitor.hpp>
#ifndef RAPIDJSON_HAS_STDSTRING
#define RAPIDJSON_HAS_STDSTRING 1
#endif
#include <rapidjson/document.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h>
#include <rapidjson/pointer.h>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.