text stringlengths 54 60.6k |
|---|
<commit_before><commit_msg>Wrap GL loading logs in branches<commit_after><|endoftext|> |
<commit_before>/**
* @copyright Copyright 2016 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>#include "limit_quote.h"
<commit_msg>Update limit_quote.cpp<commit_after>#include <cstddef>
#include "Limit_quote.h"
double Limit_quote::net_price(size_t n) const
{
if(n<=max_qty)
return n*price*(1-discount);
else
return max_qty*price*(1-discount)+(n-max_qty)*price;
}
<|endofte... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>/*
* This source file is part of ArkGameFrame
* For the latest info, see https://github.com/ArkGame
*
* Copyright (c) 2013-2018 ArkGame 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 ... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, 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 (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2013-2014.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<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 "mutex.h"
#include "sandbox_impl.h"
// This is a C++ implementation of trusted_thread.cc. Since it trusts
// the contents of... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/phy/seq.C $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/generic/memory/lib/spd/common/rcw_settings.H $ ... |
<commit_before>#include <iostream>
#include<stdlib.h>
#include<map>
using namespace std;
void print_num(map<char,int>M)
{
int num=rand()%100;
cout<<num<<endl;
int count=0;
map<char,int>:: iterator it;
for(it=M.begin();it!=M.end();it++)
{
count+=it->second;
if(num>0 && num<=count... |
<commit_before>#ifndef __UHD_QUEUE_HPP__
#define __UHD_QUEUE_HPP__
#include <queue>
#include <mutex>
#include <condition_variable>
namespace uhd {
template <typename T>
class Queue {
public:
Queue() {}
void push(T &&value);
void push(const T &value);
T pop();
void clear();
bool empty();
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkDijkstraGraphGeodesicPath.cxx
Language: C++
Date: $Date$
Version: $Revision$
Made by Rasmus Paulsen
email: rrp(at)imm.dtu.dk
web: www.imm.dtu.dk/~rrp/VTK
... |
<commit_before>#include "user.h"
#include "process.h"
#include <shlwapi.h>
#include <io.h>
#include <stdio.h>
#include <fcntl.h>
#include <iostream>
int wmain() {
try {
UserManager user_manager;
JobbedProcessManager process;
WCHAR szDirectory[MAX_PATH];
GetModuleFileName(nullptr, szDirectory, MAX_PATH);
*(... |
<commit_before>/*
* Copyright (C) 2008-2013 J-P Nurmi <jpnurmi@gmail.com>
*
* This test is free, and not covered by LGPL license. There is no
* restriction applied to their modification, redistribution, using and so on.
* You can study them, modify them, use them in your own program - either
* completely or parti... |
<commit_before>/*************************************************************************
*
* $RCSfile: propertyids.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2006-12-20 12:24:43 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
*
* C... |
<commit_before>
/************************/
/* Contour finder class */
/************************/
#include "nebulaContourFinder.h"
void nebulaContourFinder::setup(){
// setup contour finder parameter GUI
guiGrp.setName("Blob tracker");
guiGrp.add(enabled.set("enable",true));
guiGrp.add(minAreaRad.set("minimum a... |
<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>/*****************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: RooFitCore
* File: $Id: RooBMixDecay.cc,v 1.8 2001/11/05 18:53:48 verkerke Exp $
* Authors:
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.sta... |
<commit_before><commit_msg>Changes tab dragging code to continue iterating through windows if window's rect contains the point but the window region doesn't. This is necessary as some apps create a window the size of the desktop and set a window region on it. Without this check we don't allow docking when these apps ar... |
<commit_before>#ifndef K3_RUNTIME_QUEUE_H
#define K3_RUNTIME_QUEUE_H
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <tuple>
#include <boost/lockfree/queue.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/lockable_adapter.hpp>
#inc... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "EC_Light.h"
#include "ModuleInterface.h"
#include "Renderer.h"
#include "EC_OgrePlaceable.h"
#include "Entity.h"
#include "OgreConversionUtils.h"
#include "XMLUtilities.h"
#include "RexNet... |
<commit_before>//-----------------------------------------------------------------------------
// All code is property of Dictator Developers Inc
// Contact at Loesby.dev@gmail.com for permission to use
// Or to discuss ideas
// (c) 2018
// Systems/CaravanTrade.cpp
// When a Caravan is at the end of a route, perform t... |
<commit_before>/*************************************************************************
*
* $RCSfile: npwrap.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: rt $ $Date: 2005-03-29 13:06:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before><commit_msg>Fix a crash when using negotiate HTTP auth.<commit_after><|endoftext|> |
<commit_before>// @(#)root/base:$Id$
// Author: Maarten Ballintijn 21/06/2004
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>#include "PythonInteractor.h"
#include "Scene.h"
#include <SofaPython/PythonCommon.h>
#include <SofaPython/PythonEnvironment.h>
#include <SofaPython/ScriptEnvironment.h>
#include <SofaPython/PythonMacros.h>
#include <SofaPython/PythonScriptController.h>
#include <SofaPython/PythonScriptFunction.h>
#inc... |
<commit_before>#ifndef _YAHTTP_URL_HPP
#define _YAHTTP_URL_HPP 1
#include <sstream>
#include <string>
#include "utility.hpp"
#ifndef YAHTTP_MAX_URL_LENGTH
#define YAHTTP_MAX_URL_LENGTH 2048
#endif
namespace YaHTTP {
/*! URL parser and container */
class URL {
private:
bool parseSchema(const std::strin... |
<commit_before><commit_msg>fix ppc build<commit_after><|endoftext|> |
<commit_before>/*
Copyright (C) 2014 Sadman Kazi, Wojciech Swiderski, Serge Babayan, Shan Phylim
This file is part of MyoPad.
MyoPad 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 3 o... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCProperty.cpp
// @Author : LvSheng.Huang
// @Date : 2012-03-01
// @Module : NFCProperty
//
// -----------------------------------------------... |
<commit_before>#include "search_engine.hpp"
#include "categories_holder.hpp"
#include "geometry_utils.hpp"
#include "search_query.hpp"
#include "search_string_utils.hpp"
#include "storage/country_info_getter.hpp"
#include "indexer/classificator.hpp"
#include "indexer/scales.hpp"
#include "platform/platform.hpp"
#i... |
<commit_before>//---------------------------------------------------------------------------//
/*
Copyright (c) 2012, Stuart R. Slattery
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
*: Re... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCProperty.cpp
// @Author : LvSheng.Huang
// @Date : 2012-03-01
// @Module : NFCProperty
//
// -----------------------------------------------... |
<commit_before>// Copyright (c) 2012 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 "ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h"
#include <X11/Xlib.h>
// Get rid of a macro from Xlib.h that conf... |
<commit_before>/*
RawSpeed - RAW file decoder.
Copyright (C) 2009-2010 Klaus Post
Copyright (C) 2014-2015 Pedro Côrte-Real
Copyright (C) 2017 Roman Lebedev
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as pu... |
<commit_before><commit_msg>forgot to stage part of the patch<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 "base/at_exit.h"
#include "base/message_loop.h"
#include "base/scoped_nsautorelease_pool.h"
#include "gpu/command_buffer/commo... |
<commit_before><commit_msg>Number representation class templates have a default zero.<commit_after><|endoftext|> |
<commit_before>#include <cassert>
#include "AnnLocator.h"
using namespace cigma;
// ---------------------------------------------------------------------------
AnnLocator::AnnLocator()
{
nnk = 8;
epsilon = 0;
npts = 0;
ndim2 = 0;
dataPoints = 0;
kdtree = 0;
nnIdx = 0;
nnDists = 0;
... |
<commit_before>//=====================================================================//
/*! @file
@brief RX24T ファースト・サンプル @n
・P00(4) ピンに赤色LED(VF:1.9V)を吸い込みで接続する
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com... |
<commit_before>/* The Next Great Finite Element Library. */
/* Copyright (C) 2003 Benjamin S. Kirk */
/* This library is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as published by the Free Software Foundation; either */
/* version 2.1 o... |
<commit_before>//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRIN... |
<commit_before>#include "umundo/core.h"
#include <iostream>
#include <stdio.h>
using namespace umundo;
static int receives = 0;
static Monitor monitor;
class TestDiscoverer : public ResultSet<NodeStub> {
public:
TestDiscoverer() {
}
void added(shared_ptr<NodeStub> node) {
printf("node added!\n");
assert(node-... |
<commit_before>#include "firestore/src/include/firebase/firestore.h"
#include <cassert>
#include <map>
#include "app/meta/move.h"
#include "app/src/assert.h"
#include "app/src/cleanup_notifier.h"
#include "app/src/include/firebase/version.h"
#include "app/src/log.h"
#include "app/src/util.h"
#include "firestore/src/c... |
<commit_before>#include <fstream>
#include <stdexcept>
#include "Geometry.h"
#include "spruce.hh"
using std::string;
using std::istringstream;
using std::ifstream;
using Eigen::Vector3i;
using Eigen::Vector3d;
using Eigen::RowVectorXd;
using Eigen::Matrix3Xd;
using Eigen::Matrix3Xi;
namespace DrakeShapes {
const in... |
<commit_before>// BaseDisplay.hh for Fluxbox Window Manager
// Copyright (c) 2001 - 2002 Henrik Kinnunen (fluxgen@linuxmail.org)
//
// BaseDisplay.hh for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaini... |
<commit_before>#include <cstdio>
int main(){
int j, n, p[5], i[5], pi = 0, ii = 0;
while(scanf("%d", &n) != EOF){
if (n % 2 == 0){
p[pi] = n;
pi++;
} else {
i[ii] = n;
ii++;
}
if (pi == 5){
for (j = 0; j <= 4; j++) pri... |
<commit_before>// testForces.cpp
// Author: Ajay Seth
/*
* Copyright (c) 2005-2010, Stanford University. All rights reserved.
* Use of the OpenSim software in source form is permitted provided that the following
* conditions are met:
* 1. The software is used only for non-commercial research and education. It ... |
<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.
//
// NOTE: These tests are run as part of "unit_tests" (in chrome/test/unit)
// rather than as part of test_shell_tests because they re... |
<commit_before>/*
| Yahtzee program |
| Written by Gabriel Simmer |
| I still don't know how to play yahtzee :P |
*/
#include <iostream>
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctime>
using namespace std;
int main()
{
SetConsoleTitle("Consol... |
<commit_before>/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
<commit_before>/**
* \file parametercontainer.hh
*
* \brief containing class ParameterContainer
**/
#ifndef DUNE_STUFF_PARAMETERCONTAINER_HH_INCLUDED
#define DUNE_STUFF_PARAMETERCONTAINER_HH_INCLUDED
#ifdef HAVE_CMAKE_CONFIG
#include "cmake_config.h"
#elif defined (HAVE_CONFIG_H)
#include <config.h... |
<commit_before>/*
* Copyright (c) 2016 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>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
* Copyright (C) 2003-2005 3Dlabs Inc. Ltd.
* Copyright (C) 2004-2005 Nathan Cournia
* Copyright (C) 2008 Zebra Imaging
*
* This application is open source and may be redistributed and/or modified
* freely and without restricti... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-2007, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>/*
* Copyright (c) 2013 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>/// @brief provides CORDIC for cos function
/// @ref see H. Dawid, H. Meyr, "CORDIC Algorithms and Architectures"
#include "./../../fixed_point_lib/src/CORDIC/lut/lut.hpp"
namespace std {
template<typename T, size_t n, size_t f, class op, class up>
utils::number<T, n, f, op, up> cos(util... |
<commit_before>#include "PropertySetting.h"
#include "Sprite.h"
#include "Symbol.h"
#include <sprite2/UpdateParams.h>
#include <ee/panel_msg.h>
namespace libanim
{
PropertySetting::PropertySetting(ee::EditPanelImpl* edit_impl, Sprite* spr)
: ee::SpritePropertySetting(edit_impl, spr)
{
m_type = "Animation";
}
voi... |
<commit_before>#include "locomotion_control.h"
Locomotion_Control::Locomotion_Control(ros::NodeHandle* nh,
AL::ALMotionProxy* mProxy) {
nh_ = nh;
mProxy_ = mProxy;
INFO("Setting up Nao locomotion publishers" << std::endl);
moving_pub_ = nh_->advertise<std_msgs::Bool>("isM... |
<commit_before>#include <cstddef>
#include <cstdlib>
#include <hls_video.h>
#include "Accel.h"
#include "AccelSchedule.h"
#include "AccelTest.h"
#include "Dense.h"
#include "ZipIO.h"
#include "ParamIO.h"
#include "DataIO.h"
#include "Timer.h"
int main(int argc, char** argv) {
if (argc < 2) {
printf ("Give numbe... |
<commit_before>// Test harness for the HtmlParser class.
#include <iostream>
#include <cstdlib>
#include "FileUtil.h"
#include "HtmlParser.h"
#include "util.h"
void Usage() {
std::cerr << "Usage: " << ::progname << " html_filename\n";
std::exit(EXIT_FAILURE);
}
class Parser: public HtmlParser {
public:
... |
<commit_before>#include <iostream>
#include <boost/filesystem.hpp>
#include <opencv2/highgui.hpp>
#include "core/core.h"
#include "encoding/populationcode.h"
#include "io/readmnist.h"
#include "neuron/wtapoisson.h"
#include "neuron/neuron.h"
#include "neuron/zneuron.h"
using namespace cv;
using namespace std;
names... |
<commit_before><?hh //strict
/**
* This file is part of hhpack\codegen.
*
* (c) Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace HHPack\Codegen\Cli;
use HHPack\Codegen\{
LibraryFileGener... |
<commit_before>#include <bits/stdc++.h>
using namespace std;
// https://cp-algorithms.com/data_structures/treap.html
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
struct Node {
int key;
int size;
long long prio;
Node *l, *r;
Node(int key) : key(key), prio(rng()), size(... |
<commit_before>#include <pluginlib/class_list_macros.h>
#include <kdl_parser/kdl_parser.hpp>
#include <math.h>
#include <Eigen/LU>
#include <utils/pseudo_inversion.h>
#include <utils/skew_symmetric.h>
#include <lwr_controllers/one_task_inverse_kinematics.h>
namespace lwr_controllers
{
OneTaskInverseKinematics::OneT... |
<commit_before>// Copyright 2016 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>/**
* @function findContours_Demo.cpp
* @brief Demo code to find contours in an image
* @author OpenCV team
*/
#include "opencv2/imgcodecs.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace cv... |
<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 2018 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "src/pdf/SkPDFSubsetFont.h"
#if defined(SK_USING_THIRD_PARTY_ICU)
#include "SkLoadICU.h"
#endif
#if defined(SK_PDF_USE_HARFBUZZ_SUBSET)
#include "include/private... |
<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include <stdlib.h>
#include "packet.h"
#define BUFSIZE 121
#define FILENAME "Testfile"
#define TEST_FILENAME "Testfile2"... |
<commit_before>// Copyright (C) 2015 Jérôme Leclercq
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <NDK/Systems/VelocitySystem.hpp>
#include <NDK/Components/NodeComponent.hpp>
#include <NDK/Components/PhysicsComponent.... |
<commit_before>#include "DebugPanel.h"
#include <ui\IMGUI.h>
DebugPanel::DebugPanel() : _count(0) , _pos(10,710), _state(1) {
}
DebugPanel::~DebugPanel() {
}
void DebugPanel::reset() {
_count = 0;
}
void DebugPanel::show(const char* name, float value) {
if (_count + 1 < 32) {
DebugEntry& entry = _entries[_cou... |
<commit_before>#include "Flesh.h"
Flesh::Flesh(string skin, float x, float y, int cid, Fighter *cpartner) : Fighter(cid, x, cpartner){
path = "flesh/" + skin + "/";
sprite[IDLE] = Sprite(path + "idle.png", 8, 10);
sprite[RUNNING] = Sprite(path + "running.png", 8, 10);
sprite[JUMPING] = Sprite(path + "jumping.png"... |
<commit_before>/*************************************************************************/
/* texture_editor_plugin.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>// Solving a puzzle below
// https://twitter.com/CTak_S/status/1064819923195580417
#include <cstdlib>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <random>
#include <sstream>
#include <string>
#include <vector>
#include <boost/multi_array.hpp>
namespace {
using Cou... |
<commit_before>// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <cassert>
// StdAir
#include <stdair/stdair_exceptions.hpp>
#include <stdair/basic/BasConst_Event.hpp>
#include <stdair/bom... |
<commit_before>/*
* code.cpp
*
* Created on: Oct 30, 2015
* Author: (Bu)nn
TODO
* Background Subtration to get just the hand (binarized image)
*
*/
#include <core/cvdef.h>
#include <core/cvstd.hpp>
#include <core/cvstd.inl.hpp>
#include <core/mat.hpp>
#include <core/mat.inl.hpp>
#include <core/ma... |
<commit_before>#include "vga/timing.h"
namespace vga {
Timing const timing_vesa_640x480_60hz = {
{
8000000, // external crystal Hz
8, // divide down to 1Mhz
201, // multiply up to 201MHz VCO
2, // divide by 2 for 100.5MHz CPU clock
3, // divide by 3 for 48MHz-ish SDIO ... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>#include "pybind11/pybind11.h"
#include "pybind11/stl_bind.h"
#define FORCE_IMPORT_ARRAY
#include "RANS3PSed.h"
#include "RANS3PSed2D.h"
#if defined(__GNUC__) && !defined(__clang__)
namespace workaround
{
inline void define_allocators()
{
std::allocator<int> a0;
... |
<commit_before>#define BOOST_LOG_DYN_LINK
#include <boost/archive/iterators/binary_from_base64.hpp>
#include <boost/archive/iterators/base64_from_binary.hpp>
#include <boost/archive/iterators/transform_width.hpp>
#include <boost/log/trivial.hpp>
#include <openssl/evp.h>
#include "chunky.hpp"
// This is a simple impl... |
<commit_before>#include "petriproperties.h"
#include "ui_petriproperties.h"
#include "diagram/arcs/ipetriarc.h"
#include "diagram/items/placeitem.h"
PetriProperties::PetriProperties(QWidget *parent) :
QWidget(parent),
ui(new Ui::PetriProperties)
{
ui->setupUi(this);
this->itemDataID = "";
this->n... |
<commit_before>//Create by Christine Nattrass, Rebecca Scott, Irakli Martashvili
//University of Tennessee at Knoxville
//by default this runs locally
//With the argument true this submits jobs to the grid
//As written this requires an xml script tag.xml in the ~/et directory on the grid to submit jobs
void runCaloEt(... |
<commit_before>/*
* Copyright 2018 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. Al... |
<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>/**
* @file neuron_layer.hpp
* @author Marcus Edel
* @author Shangtong Zhang
*
* Definition of the NeuronLayer class, which implements a standard network
* layer for 1-dimensional or 2-dimensional data.
*/
#ifndef __MLPACK_METHOS_ANN_LAYER_NEURON_LAYER_HPP
#define __MLPACK_METHOS_ANN_LAYER_NEURON_... |
<commit_before><commit_msg>[ADD] added a buggy select implementation (commented out for now) and a proper shutdown of the socket to avoid being stuck accept. Solution seems suboptimal but works as expected<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2011 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>/*=========================================================================
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>// 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/net/pref_proxy_config_service.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "chrome/... |
<commit_before>/*
* Copyright 2011 The Regents of the University of California
*
* 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><commit_msg>Allow cookies and other storage data in extensions even when the user chose to block them on websites.<commit_after><|endoftext|> |
<commit_before>//*****************************************************************************
// Copyright 2017-2018 Intel Corporation
//
// 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
//
... |
<commit_before><commit_msg>remove itself from parent when deleted. In most case, this won't happen because the parent view sets child view's parent to NULL before deletion. This is necessary to safely delete view that is not owned by parent.<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2016 timercrack
*
* 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
#include "./mozart/function.hpp"
#include "./mozart/switcher.hpp"
#include "./mozart/tuple.hpp"
#include "./mozart/any.hpp"
#include <stdexcept>
#include <cstdio>
#include <string>
#include <deque>
#include <list>
namespace cov_basic {
enum class signs {
Null,And,Or,Not,Above,Under,
Equ... |
<commit_before>/*****************************************************************************
* Media Library
*****************************************************************************
* Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN
*
* Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
*
* T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.