text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef PHPCXX_ARRAY_TCC
#define PHPCXX_ARRAY_TCC
#ifndef PHPCXX_ARRAY_H
#error "Please do not include this file directly, use array.h instead"
#endif
namespace phpcxx {
template<typename T>
Array& Array::operator=(const vector<T>& v)
{
zval* z = &this->m_z;
ZVAL_DEREF(z);
zval_ptr_dtor(z... |
<commit_before>#include "apfMPAS.h"
#include <apfMesh2.h>
#include <apfNumbering.h>
#include <diffMC/src/parma_ghostOwner.h>
#include <netcdf>
namespace apf {
using namespace netCDF;
struct MpasFile
{
~MpasFile()
{
delete [] x;
delete [] y;
delete [] z;
delete [] conn;
}
int elements;
int n... |
<commit_before>// Licensed GNU LGPL v2.1 or later: http://www.gnu.org/licenses/lgpl.html
#include "bsecategories.hh"
#include "bsesource.hh"
#include "bseprocedure.hh"
#include "bsemain.hh"
#include "bsestandardsynths.hh"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.... |
<commit_before><commit_msg>Cast Buffers to Char * for Winsock<commit_after><|endoftext|> |
<commit_before>#include <cassert>
#include <climits>
#include <cmath>
#include "rational.hh"
#include "zs_error.hh"
#include "zs_memory.hh"
static_assert(sizeof(int) < sizeof(long long),
"integer overflow cannot be treated properly");
using namespace std;
// TODO: make this as constructor.
Rational& R... |
<commit_before><commit_msg>Updated FormattedString function to use precision argument.<commit_after><|endoftext|> |
<commit_before>// Demonstrates atomically decrementing a counter in shared memory between
// multiple processes using boost named_mutex and interprocess APIs.
//
// To run:
// ./harness.o -num_processes 2 ./test.o
//
// Author: Sam Xi
#include <boost/interprocess/managed_shared_memory.hpp>
#include <boost/interprocess... |
<commit_before><commit_msg>fix msgs, add optional args to chain/wallet RPC-API additions<commit_after><|endoftext|> |
<commit_before><commit_msg>Mark btf as depending on libbpf in --info<commit_after><|endoftext|> |
<commit_before><commit_msg>Using MsgPack::select() to filter results<commit_after><|endoftext|> |
<commit_before>/*
* HttpEndPoint.cpp - Kurento Media Server
*
* Copyright (C) 2013 Kurento
* Contact: Miguel París Díaz <[email protected]>
* Contact: José Antonio Santos Cadenas <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the G... |
<commit_before>/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. *
* All rights reserved. Email: [email protected] Web: www.q12.org *
* ... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011,2012 Preferred Infrastracture and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
/... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: appchild.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2007-06-27 22:55:19 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* $RCSfile: imagemgr.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: pb $ $Date: 2001-05-14 10:10:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
* Part of HTTPP.
*
* Distributed under the 3-clause BSD licence (See LICENCE.TXT file at the
* project root).
*
* Copyright (c) 2013 Thomas Sanchez. All rights reserved.
*
*/
#include "httpp/utils/ThreadPool.hpp"
#include <atomic>
#include <boost/log/trivial.hpp>
namespace HTTPP
{
namespa... |
<commit_before>/***************************************************************************
* Copyright (C) 2003 by Unai Garro *
* [email protected] *
* ... |
<commit_before>/*
Copyright (c) 2006, Arvid Norberg & Daniel Wallin
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>/*
Copyright (c) 2006, Arvid Norberg & Daniel Wallin
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>//
// This file is part of the Marble Virtual Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Bastian Holst <[email protected]>
//
// Self
#include "Abstr... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** No Commercial Usage
**
** This file contains pre-release cod... |
<commit_before>#ifndef slic3r_TriangleMesh_hpp_
#define slic3r_TriangleMesh_hpp_
#include "libslic3r.h"
#include <admesh/stl.h>
#include <functional>
#include <vector>
#include <boost/thread.hpp>
#include "BoundingBox.hpp"
#include "Line.hpp"
#include "Point.hpp"
#include "Polygon.hpp"
#include "ExPolygon.hpp"
namesp... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation ([email protected])
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:LG... |
<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>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holdi... |
<commit_before>#include <alvar_logger/alvar_logger_node.h>
#include <sensor_msgs/image_encodings.h>
#include <cv_bridge/cv_bridge.h>
AlvarLoggerNode::AlvarLoggerNode(ros::NodeHandle &nh) : nh_(nh), it_(nh), frame_number_(0)
{
std::string camera_info_topic;
if (!nh_.getParam("camera_info_topic", camera_info_top... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkInstantiator.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: global.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-11-02 13:09:53 $
*
* The Contents of this file are made av... |
<commit_before>/**
* @file dt_main.cpp
* @ Parikshit Ram ([email protected])
*
* This file provides an example use of the DET
*/
#include <mlpack/core.hpp>
#include "dt_utils.hpp"
using namespace mlpack;
using namespace mlpack::det;
using namespace std;
PROGRAM_INFO("Density estimation with DET", "This program... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX24T/RX66T グループ・CMPC 定義
@author 平松邦仁 ([email protected])
@copyright Copyright (C) 2016, 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/... |
<commit_before>#include "shadow/util/boxes.hpp"
#include "shadow/util/log.hpp"
namespace Boxes {
template <typename Dtype>
void Clip(const Box<Dtype> &box, Box<Dtype> *clip_box, Dtype min, Dtype max) {
clip_box->xmin = std::max(std::min(box.xmin, max), min);
clip_box->ymin = std::max(std::min(box.ymin, max), min)... |
<commit_before>#include <cudaarithm.hpp>
#include <opencv2/highgui.hpp>
extern "C"
struct TensorWrapper minCuda(
struct cutorchInfo info, struct TensorWrapper src1, struct TensorWrapper src2, struct TensorWrapper dst)
{
GpuMatT dstMat = dst.toGpuMatT();
cuda::GpuMat & mat = dstMat.mat;
cuda::min(sr... |
<commit_before>#pragma once
#include <dispatch/dispatch.h>
#include <sstream>
#include <string>
class gcd_utility final {
public:
class scoped_queue final {
public:
scoped_queue(void) {
auto label = get_next_queue_label();
queue_ = dispatch_queue_create(label.c_str(), nullptr);
}
~scoped_... |
<commit_before>#include "SysConfig.h"
#if(HAS_PCA9539)
#include <CI2C.h>
#include "CPCA9539.h"
#include "CTimer.h"
#include "NDataManager.h"
namespace
{
CTimer pcaSampleTimer;
namespace knight_rider
{
//Knight rider stuff
//Bit counter
uint8_t counter;
... |
<commit_before>/*
* AddSimMessage.cpp
*
* Created on: 18.04.2016
* Author: Marc Hartung
*/
#include "../../include/messages/AddSimMessage.hpp"
#include "../../include/messages/AbstractMessage.hpp"
#include "../../include/AdditionalTypes.hpp"
#include "../../include/network_impl/SimNetworkFunctions.hpp"
#in... |
<commit_before>/*!
* Copyright (c) 2017 Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
#ifndef LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#define LIGHTGBM_METRIC_XENTROPY_METRIC_HPP_
#include <LightGBM/meta.h>
#include... |
<commit_before>#include "GPU.H"
#include "CAMERA.H"
#include "LOAD_LEV.H"
#include "PROFILE.H"
#include <assert.h>
#include <LIBGPU.H>
unsigned long GnFrameCounter = 19;
unsigned long GnLastFrameCount = 19;
struct PSXTEXTSTRUCT* psxtextinfo;
struct PSXSPRITESTRUCT* psxspriteinfo;
int rgbscaleme = 256;
int gfx_debugg... |
<commit_before>/*!
\mainpage The QtSparql library
\brief <center>unstable</center>
\section Introduction
<b>Description</b>
QtSparql is a client-side library for accessing RDF stores.
The query language for RDF stores is <a
href="http://www.w3.org/TR/rdf-sparql-query/">SPARQL</a>.
... |
<commit_before>// Copyright (c) 2012-2015 Dano Pernis
// See LICENSE for details
#include "ssa.h"
namespace hcc {
namespace ssa {
namespace {
struct congruence_classes {
std::map<argument, reg> classes;
std::function<void(argument&)> replacer()
{
return [&](argument& arg) {
if (!arg.... |
<commit_before>// Copyright 2018 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless require... |
<commit_before>/*
Resembla: Word-based Japanese similar sentence search library
https://github.com/tuem/resembla
Copyright 2017 Takashi Uemura
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
h... |
<commit_before>// Convert DMD CodeView debug information to PDB files
// Copyright (c) 2009-2010 by Rainer Schuetze, All Rights Reserved
//
// License for redistribution is given by the Artistic License 2.0
// see file LICENSE for further details
#include <algorithm>
#include "symutil.h"
#include "demangle.h... |
<commit_before>#include <numpy_eigen/boost_python_headers.hpp>
#include <sm/eigen/matrix_sqrt.hpp>
#include <sm/assert_macros.hpp>
Eigen::MatrixXd matrixSqrt(const Eigen::MatrixXd & M)
{
SM_ASSERT_EQ(std::runtime_error, M.rows(), M.cols(), "The matrix must be square");
Eigen::MatrixXd sqrtM;
Eigen::Compu... |
<commit_before>#pragma once
namespace svgren{
struct SubSurface{
std::uint8_t* data; //RGBA premultiplied alpha
unsigned stride;
unsigned width;
unsigned height;
unsigned posx;
unsigned posy;
};
}
<commit_msg>stuff<commit_after>#pragma once
namespace svgren{
struct SubSurface{
std::uint8_t* data; //RGBA p... |
<commit_before><commit_msg>Measurement jacobians<commit_after><|endoftext|> |
<commit_before><commit_msg>indexcodec: Add extensive comments<commit_after><|endoftext|> |
<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 "net/base/cert_status_flags.h"
#include "base/logging.h"
#include "net/base/net_errors.h"
namespace net {
int MapNetErrorTo... |
<commit_before>#include <cucumber-cpp/internal/connectors/wire/WireProtocol.hpp>
#include <cucumber-cpp/internal/connectors/wire/WireProtocolCommands.hpp>
#include <json_spirit/json_spirit_reader_template.h>
#include <json_spirit/json_spirit_writer_template.h>
#include <boost/make_shared.hpp>
#include <boost/shared_p... |
<commit_before>/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorFilter.h"
#include "SkColorSpaceXformCanvas.h"
#include "SkColorSpaceXformer.h"
#include "SkGradientShader.h"
#include "SkImage_Base.h"
#includ... |
<commit_before>/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*
COPYING CONDITIONS NOTICE:
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as
... |
<commit_before>#include <osgText/Text>
#include <osgText/Font>
#include <iostream>
#include <string>
#include <osg/Vec3>
#include <osg/Vec4>
#include <osg/io_utils>
#include <osgDB/Registry>
#include <osgDB/Input>
#include <osgDB/Output>
#include <osgDB/ParameterOutput>
bool Text_readLocalData(osg::Object &obj, osg... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>
#include "ui_sc_editor.h"
#include <Scintilla.h>
namespace ImGui
{
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void FillRect(ImVec2 pos, ImVec2 size, unsigned int color)
{
ImGuiWindow* window = GetCurrentWindow();
ImVec2 c... |
<commit_before>/**
* projectM -- Milkdrop-esque visualisation SDK
* Copyright (C)2003-2007 projectM Team
*
* 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 t... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: exprnode.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: hr $ $Date: 2006-06-19 17:41:41 $
*
* The Contents of this file are made... |
<commit_before>/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* Copyright Projet JRL-Japan, 2009
*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* File: CoMFreezer.cpp
* Project: SOT
* Author: Pierre Gergondet
*
* Version control
* ===============
*
* ... |
<commit_before>/*
* Copyright 2009 The VOTCA Development Team (http://www.votca.org)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... |
<commit_before>#ifndef TURBO_TOOLSET_INTRINSIC_HPP
#define TURBO_TOOLSET_INTRINSIC_HPP
#include <cstdint>
#include <limits>
namespace turbo {
namespace toolset {
constexpr int uint32_digits()
{
return std::numeric_limits<std::uint32_t>::digits;
}
constexpr int uint64_digits()
{
return std::numeric_limits<st... |
<commit_before><commit_msg>include DYLD_LIBRARY_PATH on macOS for run/dbg<commit_after><|endoftext|> |
<commit_before>#include "common/Clock.h"
#include "rgw_log.h"
#include "rgw_acl.h"
#include "rgw_access.h"
#define DOUT_SUBSYS rgw
static rgw_bucket log_bucket(RGW_LOG_POOL_NAME);
static void set_param_str(struct req_state *s, const char *name, string& str)
{
const char *p = s->env->get(name);
if (p)
str = ... |
<commit_before>/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must... |
<commit_before>/*
* bacteria-core, core for cellular automaton
* Copyright (C) 2016 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <boost/foreach.hpp>
#include <boost/test/unit_test.hpp>
#include "Model.hpp"
typedef void (Implementation::Model::*OneArgMethod) (
const Abstract::Point& co... |
<commit_before>/*
* This file is part of WinSparkle (http://winsparkle.org)
*
* Copyright (C) 2009 Vaclav Slavik
*
* 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 restrict... |
<commit_before>#include <QtGui>
#include <QHeaderView>
#include <QDesktopServices>
#include <QEvent>
#include <QShowEvent>
#include <QHideEvent>
#include "QtAwesome.h"
#include "utils/utils.h"
#include "seafile-applet.h"
#include "rpc/rpc-client.h"
#include "rpc/local-repo.h"
#include "download-repo-dialog.h"
#include... |
<commit_before>/*
* Copyright (C) 2010-2015 Max Kellermann <[email protected]>
*
* 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>/*************************************************************************
*
* $RCSfile: tabvwsh.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: nn $ $Date: 2000-09-22 18:28:50 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*
Copyright (c) 2011 <[email protected]>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later ... |
<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>/*
* webrtc-echo - A WebRTC echo server
* Copyright (C) 2014 Stephan Thamm
*
* 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... |
<commit_before>/*
* webrtc-echo - A WebRTC echo server
* Copyright (C) 2014 Stephan Thamm
*
* 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... |
<commit_before>#include "ompu/music/concrete/context.hpp"
#include "ompu/music.hpp"
namespace ompu { namespace music { namespace concrete {
namespace detail {
bool ContextKeyboard::empty() const noexcept
{
return notes_.empty();
}
void ContextKeyboard::on(Note note) noexcept
{
notes_.emplace(std::move(note... |
<commit_before>#include <iostream>
#include <iomanip>
#include <cmath>
#include <stdlib.h>
/* MacLaurin Serie for sin(x), Taylor serie with a = 0
* sin(x) = (Σn=0, ∞)(((-1 ^ n)/(2n + 1)!)(x^(2n + 1))
* As the serie converges, the next term of the sum will be
* smaller than the last one, and also will be alterna... |
<commit_before>/*
* Copyright 2016 - 2021 [email protected]
*
* 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 <array>
#include <SDL.h>
#include <... |
<commit_before>#include <cmath>
#include <cstdio>
#include <vector>
#include <deque>
#include <map>
#include <set>
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <iostream>
#include <fstream>
#include <limits.h>
#define DEBUG 0
#define MAX_N 5001
unsigned long long sumstb[MAX... |
<commit_before>#ifndef CXX_CONVERSIONS_HXX
# define CXX_CONVERSIONS_HXX
# include <boost/optional.hpp>
# include <libport/assert.hh>
# include <libport/path.hh>
# include <libport/symbol.hh>
# include <object/cxx-object.hh>
# include <object/float.hh>
# include <object/list.hh>
# include <object/path.hh>
# include <... |
<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><commit_msg>p843 - Crypt Kicker<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <cstdio> // printf()
#include <cstring> // memcmp()
#include <string>
#include <queue>
#include <openssl/sha.h>
#include <byteswap.h>
#include "alphabet.h"
using namespace std;
// clear text password entered by user
string pwd;
// contains the hash of the unknown password
... |
<commit_before>#ifndef STAN_MODEL_MODEL_BASE_CRTP_HPP
#define STAN_MODEL_MODEL_BASE_CRTP_HPP
#include <stan/model/model_base.hpp>
#include <iostream>
#include <utility>
#include <vector>
namespace stan {
namespace model {
/**
* Base class employing the curiously recursive template pattern for
* static inheritance ... |
<commit_before>/**
* @file Test_StaticStore.cpp
* @brief Tests: libxaos-core:memory/store/impl/StaticStore.h
*
* Several StaticStores are constructed in mememory, populated with data,
* and tested to see if said data persists.
*/
#include <cstdint>
#include "memory/store/impl/StaticStore.h"
#include "catch... |
<commit_before>#include <cstdio>
#include <algorithm>
#include <string>
#include <map>
#include <cstdlib>
using namespace std;
map <string ,int> Dict;
//debug
#ifdef LOCAL
#define fp stdin
#else
FILE *fp;
#endif
string getword(){
char ch;
string s;
while((ch=getc(fp))!=EOF){
if(ch=='-'){
if(getc(fp)=='\n'){
... |
<commit_before>#include <iostream>
#include <cstdio>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <cstring>
#include <string>
#include <vector>
#include <iomanip>
#include <cmath>
#include <list>
#include <bitset>
using namespace std;
#define ll long long
#define lson... |
<commit_before>#include <stdio.h>
#include <queue>
#include <vector>
#include <utility>
#include <iostream>
#include <string>
#include <stack>
#include <queue>
using namespace std;
queue<string> lv1;
queue<string> lv2;
queue<string> lv3;
queue<string> lv4;
string temp;
int templv;
int temptime=0;
int usernum;
int us... |
<commit_before>// rbOOmit: An implementation of the Certified Reduced Basis method.
// Copyright (C) 2009, 2010 David J. Knezevic
// This file is part of rbOOmit.
// rbOOmit 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 Fr... |
<commit_before>/**
* Open[Flex] Board View
*
* Copyright chloridite 2016
* Copyright inflex 2016 (Paul Daniels)
*
* Git Fork: https://github.com/inflex/OpenBoardView
*
*/
#include "BoardView.h"
#include "imgui_impl_dx9.h"
#include <d3d9.h>
#define DIRECTINPUT_VERSION 0x0800
#include "platform.h"
#include "conf... |
<commit_before>#include <math.h>
#include "angort.h"
#define FN(f) a->pushFloat(f(a->popFloat()))
%name stdmath
%word cos (x -- cos x)
{
FN(cosf);
}
%word sin (x -- sin x)
{
FN(sinf);
}
%word tan (x -- tan x)
{
FN(tanf);
}
%word ln (x -- ln x)
{
FN(logf);
}
%word log (x -- ln x)
{
FN(log10f);
}
... |
<commit_before>// Copyright (c) 2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <string>
#include <time.h>
#include "version.h"
// Name of client reported in the 'version' message. Report... |
<commit_before>/*
This file is part of Android File Transfer For Linux.
Copyright (C) 2015-2018 Vladimir Menshakov
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 v... |
<commit_before>/*
<License>
Copyright 2015 Virtium Technology
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 or agree... |
<commit_before>#include "Core\Context.h"
#include "Core\Engine.h"
using namespace Mile;
int main( )
{
auto context = std::make_unique<Context>( );
auto engine = new Engine( context.get( ) );
if ( !engine->Init( ) )
{
return 1;
}
int execute = engine->Execute( );
context.reset( );
retur... |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011-2016 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Licen... |
<commit_before>/**
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2012 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*/
#include "TiUIPicker.h"
#include "TiGenericFunctionObject.h"
TiUI... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <opencv2/opencv.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "camera.hpp"
#pragma comment(lib,"opencv_world320.lib")
static const int N = 256;//文字列の長さ
static const int AOV = 62.2;//ANGLE OF VIEW
//明度について
static const int MAX_VALU... |
<commit_before>#ifndef TSA_VU8_DETAIL_FROM_V8_HPP
#define TSA_VU8_DETAIL_FROM_V8_HPP
#include <vu8/detail/ConvertibleString.hpp>
#include <v8.h>
#include <string>
#include <stdexcept>
#include <vector>
namespace vu8 { namespace detail {
typedef v8::Handle<v8::Value> ValueHandle;
template <class T>
struct FromV8;
... |
<commit_before>#include <yuni/yuni.h>
#include <yuni/core/noncopyable.h>
#include <yuni/io/file.h>
#include <yuni/core/system/console.h>
#include <yuni/core/getopt.h>
#include <yuni/io/directory.h>
#include <yuni/io/directory/info.h>
#include <yuni/datetime/timestamp.h>
#include <yuni/core/logs/logs.h>
#include "nany/n... |
<commit_before>// Copyright 2014 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/chromeos/file_system_provider/request_manager.h"
#include "base/files/file.h"
#include "base/stl_util.h"
#include... |
<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/tab_contents/render_view_host_delegate_helper.h"
#include <string>
#include "base/command_line.h"
#include "... |
<commit_before>#ifndef _PITO_INTERCEPTOR_LIB_C_
#define _PITO_INTERCEPTOR_LIB_C_
#include <pito/interceptor/lib/c_traits.hpp>
#include <pito/interceptor/SystemCall.hpp>
#include <stdlib.h>
#include <stdarg.h>
#include <fcntl.h>
#ifndef PITO_SYSTEM_CALL_BASE
#define PITO_SYSTEM_CALL_BASE SystemCallBase
#endif
#ifnd... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.