text stringlengths 54 60.6k |
|---|
<commit_before>/* -*- coding: utf-8; mode: c++; tab-width: 3; indent-tabs-mode: nil -*-
Copyright 2015
Raffaello D. Di Napoli
This file is part of Abaclade.
Abaclade 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 Foundat... |
<commit_before>#ifndef __TENSOR3_HPP_INCLUDED
#define __TENSOR3_HPP_INCLUDED
#include "matrix.hpp"
// Include standard headers
#include <stdint.h> // uint32_t etc.
namespace linear_algebra
{
class Tensor3
{
public:
// constructor.
Tensor3(uint32_t height, uint32_t width, uint3... |
<commit_before>#include <vector>
#include <thread>
#include <mutex>
#include <algorithm>
#include <signal.h>
#include <ev3/servo.h>
namespace ev3cv {
namespace {
std::vector<servo *> servos;
std::mutex servos_lock;
std::thread controller_thread;
}
void controller_main() {
// Clock to use for controllers.
typed... |
<commit_before>#include <netdb.h>
#include <netinet/tcp.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/poll.h>
#include <sys/types.h>
#include <errno.h>
#include <fcntl.h>
#include <queue>
#include "Connection.h"
using douban::mc::io::BufferWriter;
using douban::mc::io::BufferRea... |
<commit_before>#include "planner.hpp"
#include "algorithms.hpp"
#include "common.hpp"
#include "types.hpp"
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <functional>
#include <vector>
using namespace std::chrono;
namespace mpel {
Planner::Planner(Planner::Config pc)
: _pc(pc)
{
}
void Planne... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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... |
<commit_before>/*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
/****************************************************************************************************/
#include ... |
<commit_before>// This file is part of the dune-stuff project:
// https://users.dune-project.org/projects/dune-stuff
// Copyright holders: Rene Milk, Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_STUFF_LA_CONTAINER_PATTERN_HH
#define DUNE_STUFF_LA_CONTAIN... |
<commit_before><commit_msg>Edited whitespace.<commit_after><|endoftext|> |
<commit_before>/**
* @file device_properties.hxx
* @author Cameron Shinn (ctshinn@ucdavis.edu)
* @brief
* @version 0.1
* @date 2020-11-09
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <type_traits>
#ifndef SM_TARGET
#define SM_TARGET 0
#endif
namespace gunrock {
namespace cuda {
/**
* @br... |
<commit_before>
/*
* Copyright 2015 Cloudius Systems
*/
/*
* This file is part of Scylla.
*
* Scylla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at yo... |
<commit_before>/*******************************************************************************
* ALMA - Atacama Large Millimiter Array
* (c) European Southern Observatory, 2002
* Copyright by ESO (in the framework of the ALMA collaboration)
* and Cosylab 2002, All rights reserved
*
* This library is fre... |
<commit_before>#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
/**
* @param prices: Given an integer array
* @return: Maximum profit
*/
long maxProfit(vector<int> &prices) {
auto const N = prices.size();
if (N == 0)
return 0;
vector<vector<vector<long>>> dp(
N + 2, vector<ve... |
<commit_before>/**
* Appcelerator Kroll - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#include "k_python_list.h"
namespace kroll
{
KPythonTuple::KPythonTuple(PyObject *tuple) :
tuple(tuple... |
<commit_before>#include "DotCircuit.h"
extern "C" {
#include "provsql_utils.h"
#include <unistd.h>
}
#include <cassert>
#include <string>
#include <fstream>
#include <sstream>
#include <cstdlib>
// Has to be redefined because of name hiding
unsigned DotCircuit::setGate(const uuid &u, DotGate type)
{
unsigned id = ... |
<commit_before>/******************************************************************************
* Copyright (c) 2017 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>/*************************************************************************
*
* $RCSfile: JAccess.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: vg $ $Date: 2003-06-25 11:04:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>#define THEWIZARDPLUSPLUS_WIZARD_PARSER_PARSER_MACROSES
#include "vendor/fmt/format.hpp"
#include "vendor/better-enums/enum_strict.hpp"
#include "vendor/range/v3/view/drop.hpp"
#include "vendor/range/v3/view/transform.hpp"
#include "vendor/range/v3/view/chunk.hpp"
#include "vendor/docopt/docopt.hpp"
#in... |
<commit_before>
#ifndef EC_MANAGER_HPP
#define EC_MANAGER_HPP
#define EC_INIT_ENTITIES_SIZE 256
#define EC_GROW_SIZE_AMOUNT 256
#include <cstddef>
#include <tuple>
#include <utility>
#include "Meta/Combine.hpp"
#include "Bitset.hpp"
namespace EC
{
template <typename ComponentsList, typename TagsList>
struct... |
<commit_before><commit_msg>tsan: fix suppress_java logic<commit_after><|endoftext|> |
<commit_before>/*
* libjingle
* Copyright 2015 Google Inc.
*
* 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 copyright notice,
* this list of condit... |
<commit_before>
#include "QstCommInt.h"
/*****************************************************************************/
/* 普通显示 */
/*****************************************************************************/
/*
===============================... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "Activity.h"
using namespace Stroika::Foundation;
using namespace Stroika::Foundation::Characters;
using namespace Stroika::Foundation::Execution;
/*
********************************... |
<commit_before>#include <stdio.h>
#include <malloc.h>
typedef enum{
MIN_HEAP,
MAX_HEAP
}heap_type_t;
typedef struct{
heap_type_t type;
size_t length;
size_t itemSize;
size_t size;
void* data;
}heap_t;
int heap_init(heap_t* heap, heap_type_t type, size_t itemSize, size_t size)
{
heap->type=type;... |
<commit_before>/*
* Tree.hpp -- tree structure and algorithms
*
* Copyright (c) 2007-2010, Frank Mertens
*
* See ../LICENSE for the license.
*/
#ifndef PONA_TREE_HPP
#define PONA_TREE_HPP
#include "atoms"
namespace pona
{
class Tree: public Instance
{
public:
typedef Tree Node;
~Tree();
inline Ref<Node>... |
<commit_before>
#include "config_palettizer.cxx"
#include "destTextureImage.cxx"
#include "eggFile.cxx"
#include "filenameUnifier.cxx"
#include "imageFile.cxx"
#include "omitReason.cxx"
#include "pal_string_utils.cxx"
#include "paletteGroup.cxx"
#include "paletteGroups.cxx"
#include "paletteImage.cxx"
#inclu... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
#include "notch.hpp"
#include "notch_io.hpp" // IDXReader
#include "notch_pre.hpp" // OneHotEncoder
#include "notch_metrics.hpp" // AClassifier
using namespace std;
const string IMAGES_FILE = "../data/train-images-idx3-ubyte";
const ... |
<commit_before>/*=========================================================================
*
* Copyright NumFOCUS
*
* 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:... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: Awrapadox.hxx,v $
*
* $Revision: 1.13 $
*
* last change: $Author: hr $ $Date: 2006-06-20 02:00:37 $
*
* The Contents of this file are mad... |
<commit_before>#include "../../../runtime/types/InternalTypes.h"
#include "../../../runtime/utils/Formatting.h"
void ListType::__constructor__() {
Program::push(Program::create<ListInstance>());
}
void ListType::append() {
auto self = Program::argument<ListInstance>();
auto item = Program::pop();
se... |
<commit_before>#include "LikelihoodProfiler.h"
// from STL
#include <set>
// from ROOT
#include "TCanvas.h"
#include "TGraph.h"
#include "TH2D.h"
#include "TAxis.h"
#include "TStyle.h"
// from RooFit
#include "RooFitResult.h"
// from DooCore
#include <doocore/io/MsgStream.h>
#include <doocore/io/Progress.h>
#inclu... |
<commit_before>/*
* fontcolour.cpp - font and colour chooser widget
* Program: kalarm
* Copyright © 2001-2008 by David Jarvie <djarvie@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 Softw... |
<commit_before>#ifndef _CH_FRB_IO_HPP
#define _CH_FRB_IO_HPP
#if (__cplusplus < 201103) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
#error "This source file needs to be compiled with C++0x support (g++ -std=c++0x)"
#endif
#include <string>
#include <vector>
#include <hdf5.h>
namespace ch_frb_io {
#if 0
}; // pacify emac... |
<commit_before>/*
main.cpp:
Copyright (C) 2006 Istvan Varga
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 l... |
<commit_before>#include "../../utils/utils.hpp"
#include "../../rdb/rdb.hpp"
#include <cassert>
// Sorry, this is some of the ugliest code
// that I have ever written.
// If this is not the empty string then spt-it-out
// code showing the least squares fit is dumped
// to the given file.
std::string sptpath = "lms.sp... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>/*
* Copyright (c) 2018, Arm Limited and affiliates.
* SPDX-License-Identifier: Apache-2.0
*
* 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... |
<commit_before>// Copyright 2020 The Wuffs 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... |
<commit_before>#include "HelloPolycodeApp.h"
HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
core = new POLYCODE_CORE(view, 640,480,false,false,0,0,90);
CoreServices::getInstance()->getResourceManager()->addArchive("Resources/default.pak");
CoreServices::getInstance()->getResourceManage... |
<commit_before>/*
* traywindow.cpp - the KDE system tray applet
* Program: kalarm
* Copyright © 2002-2008 by David Jarvie <djarvie@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 ... |
<commit_before>/**
* @file Fullscreen.cpp
* @brief Tests of glfw fullscreen mode.
*
* Copyright (c) 2014 Sebastien Rombauts (sebastien.rombauts@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <GLFW/glfw3... |
<commit_before>/***********************************************************************
multiquery.cpp - Example showing how to iterate over result sets upon
execution of a query that returns more than one result set. You can
get multiple result sets when executing multiple separate SQL
statments in a single query... |
<commit_before>// ========================================================================== //
// This file is part of DO++, a basic set of libraries in C++ for computer
// vision.
//
// Copyright (C) 2013 David Ok <david.ok8@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// Lic... |
<commit_before>#include "Game/Piece.h"
#include <cctype>
#include <algorithm>
#include <cassert>
#include <array>
#include <cctype>
#include "Game/Square.h"
#include "Game/Color.h"
#include "Moves/Move.h"
#include "Moves/Direction.h"
#include "Moves/Pawn_Move.h"
#include "Moves/Pawn_Double_Move.h"
#include "Moves/Pa... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkSampleSelectiveMeanShiftBlurringFilterTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All r... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distr... |
<commit_before>/*=============================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compl... |
<commit_before>/*
* Copyright (c) 2015, 2016, 2017, 2018, Intel Corporation
*
* 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
* noti... |
<commit_before>//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012, John Haddon. All rights reserved.
// Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are per... |
<commit_before>#include <assert.h>
#include <math.h>
#include <vector>
#include "common_header.h"
#include "converter.h"
static std::vector<float> s_normal_temp;
static uint _get_image_stride(uint width, uint bpp) {
assert(bpp % 8 == 0);
uint byteCount = bpp / 8;
uint stride = (width * byteCount + 3) & ~3;
retur... |
<commit_before>#include "xml_doc.hpp"
#include "xml_parser_ctxt.hpp"
#include <string>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <utility>
#include <libxml/parser.h>
// #include "bilanz.hpp"
static auto loadXml( std::istream &is, XmlErrorHandler &handler )
-> std::shared_ptr<xmlDoc>;
... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rig... |
<commit_before>#ifndef COM_MASAERS_POLYSET_HPP
#define COM_MASAERS_POLYSET_HPP
#include "pointer_union.hpp"
#include <utility>
#include <set>
namespace com_masaers {
template<typename...>
class polyset;
template<>
class polyset<> {
protected:
template<typename T> const void* do_find(const T& value) const {
... |
<commit_before>#include "z80.h"
#include <cassert>
z80::z80() {
reset();
}
void z80::cycle() {
pc += 1;
int op = mmu.readbyte(pc.getfull());
call(op);
if (!setticks) assert(false && "No ticks added! (incorrect or no instruction)");
setticks = false;
}
void z80::reset() {
clock_m = 0;
clo... |
<commit_before>/*=========================================================================
*
* Copyright NumFOCUS
*
* 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:... |
<commit_before>#include "FEMesh.h"
namespace voom {
// Constructor from input file
FEMesh::FEMesh(const string Nodes, const string ConnTable): Mesh(Nodes, ConnTable) {
ifstream inp(ConnTable.c_str());
uint NumEl = 0, temp = 0;
string ElType;
// First line
// First number is NumNodes, Second i... |
<commit_before>#include <iostream>
#include "clang/Basic/TargetInfo.h"
#include "clang/Basic/TargetOptions.h"
#include "clang/Driver/Driver.h"
#include "clang/Driver/Options.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Lex/HeaderSearchOptions.h"
#inc... |
<commit_before>#include "diagram.h"
#include "type.h"
#include "enumType.h"
#include "numericType.h"
#include "stringType.h"
#include "portType.h"
#include "nodeType.h"
#include "edgeType.h"
#include "editor.h"
#include <QtCore/QDebug>
Diagram::Diagram(QString const &name, QString const &nodeName, QString const &dis... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<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-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, ... |
<commit_before>/*
* Copyright (C) 1997 by Stephan Kulow <coolo@kde.org>
* 2007 the ktimetracker developers
*
* 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; eit... |
<commit_before>#include "ExampleGame/Components/GameScripts/Units/Thief.h"
#include "ExampleGame/Components/Grid/GameGrid.h"
#include "ExampleGame/Components/Grid/GridCell.h"
#include "ExampleGame/Components/Grid/GridConstants.h"
#include "ExampleGame/Components/Grid/GridManager.h"
#include "ExampleGame/Components/Grid... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/*
* StringUtil.cpp
*
* Copyright 2002, Log4cpp Project. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include "StringUtil.hh"
#include <iterator>
#include <stdio.h>
#if defined(_MSC_VER)
#define VSNPRINTF _vsnprintf
#else
#ifdef LOG4CPP_HAVE_SNPRIN... |
<commit_before>// Copyright 2010-2018 Google LLC
// 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 law ... |
<commit_before>#pragma once
// C++ standard library
#include <string>
#include <memory>
#include <unordered_map>
// Armadillo
#include <armadillo>
// Mantella
#include "mantella_bits/optimisationProblem/surrogateModel.hpp"
#include "mantella_bits/regressionFunction.hpp"
#include "mantella_bits/correlationFunction.hp... |
<commit_before>
#include "Translator.hpp"
/* TRANSLATOR GROUP */
TranslatorGroup::~TranslatorGroup(){
clear();
}
void TranslatorGroup::clear(){
std::map<std::string, TranslatorGroup*>::iterator it = els.begin();
while(it != els.end()){
delete it->second;
it++;
}
}
void TranslatorGroup::set(const std... |
<commit_before>/* Created and copyrighted by Kevin D. Sidwar. Offered as open source under the MIT License (MIT). */
#include "UartSerial.h"
#include <sys/ioctl.h>
#include <unistd.h>
#include <fcntl.h>
#include <climits>
#include <cstdlib>
#include <cstring>
using namespace remote_wiring::transport;
using namespa... |
<commit_before>/*
User Server code for CMPT 276 Group Assignment, Spring 2016.
This server manages a user’s social networking session.
This server supports sign on/off, add friend, unfriend, update status,
get user's friend list.
This server handles disallowed method malformed request.
As defined in Ser... |
<commit_before>#pragma once
#include <oscpack/ip/UdpSocket.h>
#include <oscpack/osc/OscPacketListener.h>
#include <memory>
#include <thread>
#include <functional>
#include <map>
#include <iostream>
class OscReceiver
{
public:
using message_handler = std::function<void(const osc::ReceivedMessage&)>;
//using ... |
<commit_before>/* Copyright 2012 10gen 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 app... |
<commit_before><commit_msg>ensure the getCycleTime function returns a value<commit_after><|endoftext|> |
<commit_before>#include "Module/Adaptor/Adaptor.hpp"
using namespace aff3ct;
using namespace aff3ct::module;
Adaptor
::~Adaptor()
{
(*this->buffer)[this->id].clear();
(*this->first)[this->id] = 0;
(*this->last )[this->id] = 0;
}
void Adaptor
::deep_copy(const Adaptor &m)
{
Module::deep_copy(m);
int id = -1;
f... |
<commit_before>/*********************************************************************
* AnitomyJs - Node.js wrapper for Anitomy
*
* Copyright (c) 2016 Thiago Oliveira
*
* MIT License <https://github.com/nevermnd/anitomy-js/blob/master/LICENSE>
********************************************************************/
... |
<commit_before>/*
* Copyright (C) 2008, 2009 Nokia Corporation.
*
* Contact: Marius Vollmer <marius.vollmer@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.... |
<commit_before><commit_msg>Create main_BACKUP.cpp<commit_after><|endoftext|> |
<commit_before>/***************************************************************************//**
* FILE : rendition.hpp
*/
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use th... |
<commit_before>/*
* Copyright (c) 2002-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>// @(#)root/utils:$Id$
// Author: Axel Naumann, 2014-04-07
/*************************************************************************
* Copyright (C) 1995-2014, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved.
//
// _____ _ _
// |_ _|_ _ __| |_ __ ___ | | ___
// | |/ _` |/ _` | '_ \ / _ \| |/ _ \
// | | (_| | (_| | |_) | (_) | | __/
// |_|\__,_|\__,_| .__/ \___/|_|\___|
// |_|
//
// Redistribution and use in s... |
<commit_before>// Copyright (c) 2021 ASMlover. All rights reserved.
//
// ______ __ ___
// /\__ _\ /\ \ /\_ \
// \/_/\ \/ __ \_\ \ _____ ___\//\ \ __
// \ \ \ /'__`\ /'_` \/\ '__`\ / __`\\ \ \ /'__`\
// \ \ \/\ \L\.\_/\ \L\ \ \ \L\ \/... |
<commit_before>/*
** Copyright (C) 2017 Softbank Robotics Europe
** See COPYING for the license
*/
#ifndef QI_SHA1_HPP
#define QI_SHA1_HPP
#pragma once
#include <array>
#include <cstdint>
#include <type_traits>
#include <openssl/sha.h>
#include <boost/uuid/sha1.hpp>
#include <qi/scoped.hpp>
#include <qi/type/traits... |
<commit_before>/***************************************************************************
* The Kernel-Machine Library *
* Copyright (C) 2004, 2005 by Rutger W. ter Borg *
* ... |
<commit_before>// @(#)root/geom:$Id$
// Author: Andrei Gheata 28/04/04
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<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 <X11/keysym.h>
#include <cstring>
#include "base/message_loop.h"
#include "chrome/browser/chromeos/input_method/input_method... |
<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.
//
// This test creates a fake safebrowsing service, where we can inject
// malware and phishing urls. It then uses a real browser to g... |
<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 entry.
#include "chrome/browser/sync/util/extensions_activity_monitor.h"
#include "base/file_path.h"
#include "base/string_util.h"
#include ... |
<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 "net/base/cert_database.h"
#include <openssl/x509.h>
#include "base/logging.h"
#include "net/base/net_errors.h"
#include "ne... |
<commit_before><commit_msg>Return ERR_SSL_PROTOCOL_ERROR instead of the default ERR_FAILED when we read EOF during the SSL handshake. The ERR_SSL_PROTOCOL_ERROR error code will allow the TLS-intolerant server handling code in http_network_transaction.cc to kick in if necessary.<commit_after><|endoftext|> |
<commit_before><commit_msg>lambda version of ferret<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <math.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <pthread.h>
#include <cass.h>
extern "C" {
#include <cass_timer.... |
<commit_before>//===- CrashDebugger.cpp - Debug compilation crashes ----------------------===//
//
// This file defines the bugpoint internals that narrow down compilation crashes
//
//===----------------------------------------------------------------------===//
#include "BugDriver.h"
#include "SystemUtils.h"
#includ... |
<commit_before>/*
* Copyright (c) 2010-2011 by Patrick Schaefer, Zuse Institute Berlin
* 2011 by Michael Berlin, Zuse Institute Berlin
*
* Licensed under the BSD License, see LICENSE file for details.
*
*/
#include "libxtreemfs/user_mapping_unix.h"
#ifndef WIN32
#include <grp.h>
#include <pwd... |
<commit_before>/*
* Copyright (c) 2006 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 copyri... |
<commit_before>/*
* Copyright (c) 2007 The Hewlett-Packard Development Company
* All rights reserved.
*
* Redistribution and use of this software in source and binary forms,
* with or without modification, are permitted provided that the
* following conditions are met:
*
* The software must be used only for Non... |
<commit_before>// Copyright 2017 Adam Smith
//
// 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 law... |
<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 Qt Linguist of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No C... |
<commit_before>#ifndef RECURSE_HPP
#define RECURSE_HPP
#include <QCoreApplication>
#include <QObject>
#include <QTcpServer>
#include <QTcpSocket>
#include <QHostAddress>
#include <QHash>
#include <QVector>
#include <functional>
using std::function;
using std::bind;
struct Request {
// tpc request data
QStrin... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id:
#include "ballviewDemo.h"
#include <BALL/VIEW/KERNEL/mainControl.h>
#include <BALL/VIEW/KERNEL/common.h>
#include <BALL/KERNEL/system.h>
#include <BALL/VIEW/DIALOGS/displayProperties.h>
#include <BALL/VIEW/WIDGETS/molecularStructure.h>
#inc... |
<commit_before>/*
* Copyright (c) 2012, Willow Garage, 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
* ... |
<commit_before>/// HEADER
#include <csapex_ros/ros_message_conversion.h>
/// COMPONENT
#include <csapex_ros/generic_ros_message.h>
#include <csapex/msg/generic_pointer_message.hpp>
/// PROJECT
#include <csapex/msg/io.h>
/// SYSTEM
#include <topic_tools/shape_shifter.h>
using namespace csapex;
RosMessageConversion:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.