text stringlengths 54 60.6k |
|---|
<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/common/extensions/extension_process_policy.h"
#include "chrome/common/extensions/extension_set.h"
namespace extensio... |
<commit_before>#ifndef CPIMPL
#define CPIMPL
#include<memory> //make_unique, unique_ptr
#include<utility> //forward, move
#include<type_traits> //is_nothrow_assignable
namespace nTool
{
template<class T>
class CPimpl //a class to help you use pimpl easily
{
std::unique_ptr<T> p_;
public:
CPimpl()
:p_{std::m... |
<commit_before>/*
* Copyright (c) 2012-2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware impleme... |
<commit_before>#define GLM_SWIZZLE
#include "sound_system.hpp"
#include "../state/state_comp.hpp"
#include <core/units.hpp>
namespace mo {
namespace sys {
namespace sound {
using namespace unit_literals;
Sound_system::Sound_system(ecs::Entity_manager& entity_manager, physics::Transform_system& ts,
au... |
<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 <atlbase.h>
#include <atlcom.h>
#include "base/scoped_comptr_win.h"
#include "base/thread.h"
#include "chrome_frame/bho.h"
//... |
<commit_before>/// HEADER
#include <csapex/scheduling/thread_group.h>
/// PROJECT
#include <csapex/scheduling/task.h>
#include <csapex/utility/thread.h>
#include <csapex/scheduling/task_generator.h>
using namespace csapex;
int ThreadGroup::next_id_ = ThreadGroup::MINIMUM_THREAD_ID;
ThreadGroup::ThreadGroup(int id, ... |
<commit_before>
//////////////////////////////////////////////////////////////////////////////
// This software module is developed by SCIDM team in 1999-2008.
//
// 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 S... |
<commit_before>/*
* This file is part of OpenModelica.
*
* Copyright (c) 1998-CurrentYear, Linköping University,
* Department of Computer and Information Science,
* SE-58183 Linköping, Sweden.
*
* All rights reserved.
*
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3
* AND THIS OSMC PUBLIC LICENS... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not d... |
<commit_before>// bdlt_datetimeinterval.cpp -*-C++-*-
#include <bdlt_datetimeinterval.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(bdlt_datetimeinterval_cpp,"$Id$ $CSID$")
#ifdef BSLS_PLATFORM_OS_WINDOWS
# define copysign _copysign
#endif
#include <bdlb_bitutil.h>
#include ... |
<commit_before>/*
* Copyright © 2010 Intel Corporation
*
* 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, mod... |
<commit_before>/*-
* Copyright 2009 Colin Percival
* 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 copyright
* notice, this l... |
<commit_before>//Mancala AI
//Copyright Matthew Chandler 2012
#include <iostream>
#include <iomanip>
#include <vector>
#include <limits>
#include <cstdlib>
//board:
//2 rows of 6 bowls
//2 larger bowls for scoring (stores)
//
//Rules
//play is CCW
//ending in player's own store yields extra turn
//ending in empty bow... |
<commit_before>#include "xmlrpc.h"
#include <QDebug>
#include <QMap>
#include <QVariant>
#include <QDateTime>
#include <QStringList>
#include <QTextStream>
static void marshall( QXmlStreamWriter *writer, const QVariant &value)
{
writer->writeStartElement("value");
switch( value.type() )
{
case QVar... |
<commit_before>/*
* Copyright (c) 2003-2009, John Wiegley. 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,... |
<commit_before>/** \addtogroup examples
* @{
* \defgroup fft fft
* @{
* \brief FFT iterative method using gemv and spmv
*/
#include <ctf.hpp>
using namespace CTF;
namespace CTF_int{
void factorize(int n, int *nfactor, int **factor);
}
Matrix< std::complex<double> > DFT_matrix(int n, World & wrld){
i... |
<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>/*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#include"ork/ork.hpp"
#define ORK_STL_INC_FILE <fstream>
#include"ork/core/stl_include.inl"
#define ORK_STL_INC_FILE <iostream>
#include"ork/core/stl_include.inl"
#define ORK_STL_INC_FILE <m... |
<commit_before>/*
* opencog/ubigraph/UbigraphModule.cc
*
* Copyright (C) 2009 by Singularity Institute for Artificial Intelligence
* All Rights Reserved
*
* Written by Jared Wigmore <jared.wigmore@gmail.com>
* Adapted from DottyModule (which is by Trent Waddington <trent.waddington@gmail.com>)
*
* This program... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: polyscan.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2007-07-24 10:01:11 $
*
* The Contents of this file are made ... |
<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>/*************************************************************************
*
* $RCSfile: hatch.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 17:05:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include "ParticleConnector.h"
#include <maya/MGlobal.h>
#include <maya/MSelectionList.h>
#include <maya/MItMeshVertex.h>
#include <maya/MItSelectionList.h>
#include <maya/MFnParticleSystem.h>
#include <maya/MPlug.h>
ParticleConnector::ParticleConnector() {
}
ParticleConnector::~ParticleConnector() {
... |
<commit_before>#include "PostscriptPrinter.hpp"
namespace hpl
{
PostscriptPrinter::PostscriptPrinter(Orientation orientation) : AbstractPlotter(), PlotPrinter(orientation)
{
}
PostscriptPrinter::~PostscriptPrinter()
{
out.close();
}
bool PostscriptPrinter::saveToFile(const std::string& fileName)
{
this->file... |
<commit_before>#include <iostream>
#include <cstdio>
#include "json_object.h"
#include "json_loader.h"
#include "regex.h"
#include "grammar.h"
#include "grammar_loader.h"
#include "scope.h"
#include "tokenizer.h"
using namespace std;
void error(const char* msg) {
cerr << msg << endl;
exit(-1);
}
int file_si... |
<commit_before>#include <ncurses.h>
#include "window.hh"
#include "buffer.hh"
#include "file.hh"
#include "regex_selector.hh"
#include "command_manager.hh"
#include "buffer_manager.hh"
#include <unordered_map>
#include <cassert>
using namespace Kakoune;
void draw_window(Window& window)
{
int max_x,max_y;
get... |
<commit_before>#ifndef REFERENCERESOLVER_CPP_
#define REFERENCERESOLVER_CPP_
#include <OthUtil.h>
#include <Keywords.h>
#include <Datatypes.h>
#include <ParsedCall.h>
#include <Function.h>
#include <OthFile.h>
#include <ConfigurationNode.h>
#include <Call.h>
#include <string>
#include <stack>
#include <vector>
#includ... |
<commit_before>
#ifdef __MINGW32__
#define SDL_MAIN_HANDLED 1
#endif
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string>
#include <deque>
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
using namespace std;
const int w = 480;
const int h = 640;
const int fsize = 32;
const int cgap0 = 15;
const... |
<commit_before>#include "BiLM_NPLM.h"
#include "neuralLM.h"
#include "vocabulary.h"
namespace Moses {
BilingualLM_NPLM::BilingualLM_NPLM(const std::string &line)
: BilingualLM(line),
premultiply(true),
factored(false),
neuralLM_cache(1000000) {
if (!NULL_overwrite) {... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: frmhtmlw.cxx,v $
*
* $Revision: 1.16 $
*
* last change: $Author: ihi $ $Date: 2007-07-11 13:10:49 $
*
* The Contents of this file are mad... |
<commit_before>
#include <gtest/gtest.h>
#include <sm/logging.hpp>
#include <sm/logging/StdOutLogger.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
/// \brief Helper logger to catch console output
class TestLogger : public sm::logging::StdOutLogger {
public:
TestLogger() : sm::logging::StdOutLogger() {
... |
<commit_before>/*************************************************************************
*
* $RCSfile: svmedit2.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: pb $ $Date: 2001-05-21 11:12:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: outlundo.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 23:59:18 $
*
* The Contents of this file are made ... |
<commit_before><commit_msg>fdo#84573 COLOR PICKER: Improve keyboard navigation<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2003-2014 Rony Shapiro <ronys@users.sourceforge.net>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php... |
<commit_before><commit_msg>SAL_DLLPUBLIC->SW_DLLPUBLIC<commit_after><|endoftext|> |
<commit_before>#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <yarp/os/LogStream.h>
#include <yarp/os/Network.h>
#include <yarp/os/ResourceFinder.h>
#include "iCubProprioception/SuperimposerFactory.h"
using namespace yarp::os;
int main(int argc, char* argv[])
{
ConstString log_ID = "[Main]";
yInfo()... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/include/usr/fapi2/plat_target.H $ ... |
<commit_before><commit_msg>A follow-up to r40192. Change the log message to avoid confusion. The original log message sounded like SSL renegotiation was attempted.<commit_after><|endoftext|> |
<commit_before>#include "rollinghash.h"
#include "builtinmutation.h"
#include "util.h"
#include <memory.h>
// we use 1G memory
const int BLOOM_FILTER_LENGTH = (1<<29);
RollingHash::RollingHash(int window, bool allowTwoSub) {
mWindow = min(48, window);
mAllowTwoSub = allowTwoSub;
mBloomFilterArray = new ch... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/include/usr/ipmi/ipmiwatchdog.H $ ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: factory.cxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: rt $ $Date: 2005-09-08 07:38:10 $
*
* The Contents of this file are made a... |
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGOutputSocket.cpp
Author: Bertrand Coconnier
Date started: 09/10/11
Purpose: Manage output of sim parameters to a socket
Called by: FGOutput
------------- Copyright (C) 2011 Bertrand Coco... |
<commit_before>/*************************************************************************
*
* $RCSfile: redlnitr.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: fme $ $Date: 2002-04-22 12:35:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#pragma once
#include <stdint.h>
namespace c2py
{
template <size_t ... vals>
inline constexpr int64_t tsum() noexcept {
if constexpr (sizeof...(vals) == 0) return 0;
else return (vals + ...);
}
static_assert(tsum<1, 2, 3>() == 6);
template <class ... T>
inline c... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2003 Robert Osfield
* Copyright (C) 2003 3Dlabs Inc. Ltd.
*
* This application is open source and may be redistributed and/or modified
* freely and without restriction, both in commericial and non commericial
* applications, as long as this copyri... |
<commit_before><commit_msg>Resolve: #i119581# fix import issue for various .doc macro button imports<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before><commit_msg>Cookie finder<commit_after><|endoftext|> |
<commit_before>#include "viewer/window_manager.hh"
//%deps(OPENGL, GLFW, GLEW, pthread)
#include <atomic>
#include <chrono>
#include <iostream>
#include <map>
#include <mutex>
#include <sstream>
#include <string>
#include <thread>
namespace viewer {
constexpr bool VALGRIND = false;
void key_callback(GLFWwindow *win... |
<commit_before><commit_msg>coverity#1242879 Untrusted value as argument<commit_after><|endoftext|> |
<commit_before>#include <boost/test/unit_test.hpp>
using namespace std;
#include "mruset.h"
#include "util.h"
#define NUM_TESTS 16
#define MAX_SIZE 100
class mrutester
{
private:
mruset<int> mru;
std::set<int> set;
public:
mrutester() { mru.max_size(MAX_SIZE); }
int size() const { return set.size()... |
<commit_before>/*The MIT License (MIT)
Copyright (c) 2014 Johannes Häggqvist
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><commit_msg>Remove unused typedef<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: unodefaults.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2003-04-17 15:53:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#include "UnixSocketHandler.hpp"
#include <fcntl.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/socket.h>
#include <unistd.h>
#include <resolv.h>
namespace et {
UnixSocketHandler::UnixSocketHandler() {
}
bool UnixSocketHandler::hasData(int fd) {
lock_guard<std::... |
<commit_before>#include <boost/test/unit_test.hpp>
#include "util.h"
#include "scrypt.h"
BOOST_AUTO_TEST_SUITE(scrypt_tests)
BOOST_AUTO_TEST_CASE(scrypt_hashtest)
{
// Test Scrypt hash with known inputs against expected outputs
#define HASHCOUNT 5
const char* inputhex[HASHCOUNT] = { "020000004c1271c21171... |
<commit_before>// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
// $Id: Fragment_test.C,v 1.14 2002/12/12 11:34:40 oliver Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/KERNEL/fragment.h>
#include <BALL/KERNEL/molecule.h>
#include <BALL/CONCEPT/textPersistenceManager.h>
//... |
<commit_before>// $Id: MOL2File_test.C,v 1.1 2000/05/15 19:17:06 oliver Exp $
#include <BALL/CONCEPT/classTest.h>
///////////////////////////
#include <BALL/FORMAT/MOL2File.h>
///////////////////////////
START_TEST(MOL2File, "$Id: MOL2File_test.C,v 1.1 2000/05/15 19:17:06 oliver Exp $")
///////////////////////////... |
<commit_before>// $Id: tutorial2.C,v 1.1 2000/03/09 22:20:46 oliver Exp $
// tutorial example 1
// ------------------
// build two water molecules and write them to a file
// needed for cout
#include <iostream>
// the BALL kernel classes
#include <BALL/KERNEL/atom.h>
#include <BALL/KERNEL/bond.h>
#include <BALL/KERNE... |
<commit_before>#include "BaseTestCase.h"
#include <cmath>
#include "Maths.h"
#include "SoftwareRenderer.h"
#include "CloudLayerDefinition.h"
#include "NoiseGenerator.h"
#if 0
TEST(Clouds, Density)
{
/* Setup */
double x, y, z;
CloudLayerDefinition layer(NULL);
/* Test default coverage (empty) */
... |
<commit_before>/*!
\file system.cpp
\brief System management implementation
\author Ivan Shynkarenka
\date 06.07.2015
\copyright MIT License
*/
#include "benchmark/system.h"
#if defined(__APPLE__)
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <sys/sysctl.h>
#include <math.h>
#include... |
<commit_before>#include "thumbnail_manager.hpp"
#include <algorithm> // find
#include "algorithm.hpp"
thumbnail_manager::thumbnail_manager(x_connection & c,
const layout_t * layout,
const thumbnail_t::factory * factory)
: m_c(c), m_layout(la... |
<commit_before>#line 2 "togo/task_manager.cpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <togo/config.hpp>
#include <togo/utility.hpp>
#include <togo/assert.hpp>
#include <togo/log.hpp>
#include <togo/array.hpp>
#include <togo/priority_queue.hpp>
#include <togo/thread.hpp... |
<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>#include "LoadingState.h"
#include "Input.h"
#include "Qor.h"
#include "TileMap.h"
#include "Sprite.h"
#include "kit/log/log.h"
#include <glm/glm.hpp>
#include <cstdlib>
#include "Light.h"
using namespace std;
using namespace glm;
LoadingState :: LoadingState(Qor* qor):
m_pQor(qor),
m_pWindow(qo... |
<commit_before>/////////////////////////////////////////////////////////////////////
// = NMatrix
//
// A linear algebra library for scientific computation in Ruby.
// NMatrix is part of SciRuby.
//
// NMatrix was originally inspired by and derived from NArray, by
// Masahiro Tanaka: http://narray.rubyforge.org
//
// =... |
<commit_before>// Copyright 2018 The SwiftShader 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 the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unles... |
<commit_before>/******************************************************************************
** Copyright (c) 2013-2015, Intel Corporation **
** All rights reserved. **
** ... |
<commit_before>#include "client.h"
#include <boost/assert.hpp>
#include <boost/bind.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/xpressive/xpressive.hpp>
#include <iostream>
#include <string.h>
#include "random.h"
#define DEFAULT_ASSET_TIMEOUT 4000
using namespace std;
namespace asio = boost::asio;
namesp... |
<commit_before>/** \file crf_analyzer.cpp
* Implementation of class CRF_Analyzer.
*
* \author Jun Jiang
* \version 0.1
* \date Mar 2, 2009
*/
#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include "jma_analyzer.h"
#include "jma_knowledge.h"
#include "tokenizer.h"
namespace jma
... |
<commit_before>//
// Created by david on 2020-05-13.
//
#include "env.h"
#include <math/num.h>
#include <tensors/edges/class_edges_finite.h>
#include <tensors/edges/class_env_ene.h>
#include <tensors/edges/class_env_var.h>
#include <tensors/model/class_model_finite.h>
#include <tensors/state/class_state_finite.h>
#incl... |
<commit_before>/*************************************************************************
*
* $RCSfile: npwrap.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: rt $ $Date: 2005-06-21 10:31:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*!
* @file File game.cpp
* @brief Implementation of the class of game actions
*
* The class implemented provides the flow of the game
*
* @sa game.hpp
*/
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_ttf.h>
#include <cstdlib>
#include <cti... |
<commit_before>#include "game.h"
namespace Game {
sdl_info::sdl_info(const char* game_name, std::string font_name, int fps_param) {
window = SDL_CreateWindow(game_name, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 0, 0, SDL_WINDOW_SHOWN | SDL_WINDOW_FULLSCREEN_DESKTOP);
if (window == N... |
<commit_before>#include "dominator.h"
/*
* TODO Is there a need to do the post dominators and strictly post dominators?
* - The algorithm to do so is the same as computing dominators but you
* look swap the exit and entry node and look at look at the "outs" of
* block rather than the ins. ... |
<commit_before>/* RTcmix - Copyright (C) 2000 The RTcmix Development Team
See ``AUTHORS'' for a list of contributors. See ``LICENSE'' for
the license to this software and for a DISCLAIMER OF ALL WARRANTIES.
*/
//#define DBUG
//#define DENORMAL_CHECK
#define MAIN
#include <pthread.h>
#include <ctype.h>
#include ... |
<commit_before>// @(#)root/test:$name: $:$id: filter.cxx,v 1.0 exp $
// Author: O.Couet
//
// filters doc files.
//
#include <unistd.h>
#include <stdio.h>
#include <string>
#include <cstring>
#include <iostream>
#include <stdlib.h>
#include <stdarg.h>
#include <memory>
using namespace std;
// Auxiliary functions
v... |
<commit_before>//===--- Rewriter.cpp - Code rewriting interface --------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Chris Lattner and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>#include "diff_system.h"
#include "dof_map.h"
#include "numeric_vector.h"
#include "time_solver.h"
DifferentiableSystem::DifferentiableSystem
(EquationSystems& es,
const std::string& name,
const unsigned int number) :
Parent (e... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs
*
* Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr>
*
* This program is f... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: DAVProperties.hxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: hr $ $Date: 2006-06-20 05:33:29 $
*
* The Contents of this file are ... |
<commit_before>/*
Copyright © 2010, 2011, 2012 Vladimír Vondruš <mosra@centrum.cz>
This file is part of Magnum.
Magnum is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3
only, as published by the Free Software Foundation.
... |
<commit_before>#include <JsonBox/Convert.h>
#include <sstream>
#define MASKBITS 0x3F //00111111
#define MASK1BYTE 0x80 //10000000
#define MASK2BYTES 0xC0 //11000000
#define MASK3BYTES 0xE0 //11100000
#define MASK4BYTES ... |
<commit_before>#pragma once
#include "tatum/graph_walkers/TimingGraphWalker.hpp"
#include "tatum/TimingGraph.hpp"
#include "tatum/delay_calc/DelayCalculator.hpp"
#include "tatum/graph_visitors/GraphVisitor.hpp"
namespace tatum {
/**
* A simple serial graph walker which traverses the timing graph in a levelized
* ma... |
<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>#include "CryFuse.h"
#include <sys/types.h>
#include <sys/time.h>
#include <dirent.h>
#include <cassert>
#include "cryfs_lib/CryNode.h"
#include "cryfs_lib/CryErrnoException.h"
#define UNUSED(expr) (void)(expr)
using fusepp::path;
namespace cryfs {
namespace {
int errcode_map(int exit_status) {
... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2014 Srinath Ravichandran, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, t... |
<commit_before><commit_msg>fix couple of lines on prim vtx<commit_after><|endoftext|> |
<commit_before>/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ViewShadowNode.h"
namespace facebook {
namespace react {
const char ViewComponentName[] = "View";
bool... |
<commit_before>/*
* Copyright (C) 2015 BMW Car IT GmbH
*
* 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 appl... |
<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>/** \file
*
* Copyright (c) 2016 by Travis Gockel. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify it under the terms of the Apache License
* as published by the Apache Software Foundation, either version 2 of the License, or (at your option) any la... |
<commit_before>#include <string.h>
#include "utest_helper.hpp"
static void compiler_fill_image_1d_array(void)
{
const size_t w = 64;
const size_t array = 8;
cl_image_format format;
cl_image_desc desc;
size_t origin[3] = { };
size_t region[3];
uint32_t* dst;
memset(&desc, 0x0, sizeof(cl_image_desc));
... |
<commit_before>/*
* HMAC_DRBG
* (C) 2014,2015,2016 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/hmac_drbg.h>
#include <algorithm>
namespace Botan {
namespace {
void check_limits(size_t reseed_interval,
size_t max_number_of_bytes_per_request... |
<commit_before>///
/// @file EratBig.cpp
/// @brief Segmented sieve of Eratosthenes optimized for big sieving
/// primes. This is an optimized implementation of Tomas
/// Oliveira e Silva's cache-friendly bucket sieve algorithm:
/// http://www.ieeta.pt/~tos/software/prime_sieve.html
///
/// C... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<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 QtOpenGL module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... |
<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>#pragma once
#include <bitset>
#include <cstring>
#include <iostream>
namespace bitwise {
using std::cout;
using std::ostream;
template <typename A>
class binary final {
template <typename B>
using conref = const B&;
constexpr static size_t sz{sizeof(A)};
constexpr static size_t szB{sz <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.