text
stringlengths
54
60.6k
<commit_before>/* * Copyright (C) 2018 The Android Open Source Project * * 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 ...
<commit_before>// FbRun.cc // Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen<at>users.sourceforge.net) // // 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 w...
<commit_before>#ifndef _LAPACK_WRAP_HPP_ #define _LAPACK_WRAP_HPP_ #include "mkl.h" #include <stdexcept> extern "C" { void dgemm_(char *transa, char *transb, int *m, int *n, int *k, double *alpha, double *a, int *lda, double *b, int *ldb, double *beta, double *c, int *ldc); void sgemm_(char *transa, ch...
<commit_before>// Base header file. Must be first. #include <Include/PlatformDefinitions.hpp> #include <cassert> #include <fstream> #include <iostream> #include <strstream> #include <util/PlatformUtils.hpp> #include <XalanTransformer/XalanTransformer.hpp> //This is here for the Windows threads. #define WIN...
<commit_before>#pragma once #include "depthai-shared/common/Extrinsics.hpp" namespace dai { struct CameraInfo { CameraInfo() : width(0), height(0), measuredFovDeg(0) {} uint16_t width, height; std::vector<std::vector<float>> intrinsicMatrix; std::vector<float> distortionCoeff; Extrinsics extrinsic...
<commit_before>#include "trajopt/configuration_space.hpp" #include <boost/foreach.hpp> #include "trajopt/rave_utils.hpp" #include "utils/math.hpp" using namespace OpenRAVE; using namespace util; // TODO: configuration should know something about what dofs are part of SO(1), SO(2) etc for functions like RandomDOFValues...
<commit_before>// --------------------------------------------------------------------- // // Copyright (C) 2017 by the deal.II authors // // This file is part of the deal.II library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesser Gener...
<commit_before>#include "../sys_uniform_value.hpp" #include "screen.hpp" #include "../glx_if.hpp" #include "../systeminfo.hpp" #include "../sys_uniform.hpp" namespace rs { namespace util { const IdValue PostEffect::U_RectScale = IEffect::GlxId::GenUnifId("u_rectScale"); // --------------------- PostEffect -------...
<commit_before>#include "../bitmap_content.hpp" namespace sani { namespace resource { inline const uint32 BitmapContent::getWidth() const { return width; } inline const uint32 BitmapContent::getHeight() const { return height; } template <class PixelType> PixelBitmapContent<PixelType>::PixelBitmap...
<commit_before>#pragma once #include "util.hpp" #include <utility> #include <algorithm> #include <cereal/access.hpp> namespace spi { namespace test { //! non-copyableな値 template <class T> class MoveOnly { public: using value_t = T; private: value_t _value; // MoveOnlyがネストされていた場合にget()で一括除去 ...
<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 "Lice...
<commit_before>/* ******************************************************* Parallel PLUQ quad recurisve with OpenMP ******************************************************* g++ -D__FFLASFFPACK_HAVE_CBLAS -Wall -g -fopenmp -O3 -march=native -mavx -I/home/sultan/soft/fflas-ffpack/ -I/usr/local/soft/givaro-3.7.1...
<commit_before>// Copyright (C) 2009, 2010 by Florent Lamiraux, Thomas Moulard, JRL. // // This file is part of the hpp-corbaserver. // // This software is provided "as is" without warranty of any kind, // either expressed or implied, including but not limited to the // implied warranties of fitness for a particular pu...
<commit_before>#include "gtest/gtest.h" #include <ten/json.hh> #include <array> #include "ten/logging.hh" #include "ten/jsonstream.hh" #include <map> using namespace std; using namespace ten; const char json_text[] = "{ \"store\": {" " \"book\": [" " { \"category\": \"reference\"," " \"author\": \"Nig...
<commit_before>#include <string> #include <stdio.h> #include <id3v2tag.h> #include <infotag.h> #include <tbytevectorlist.h> #include <tpropertymap.h> #include <wavfile.h> #include <cppunit/extensions/HelperMacros.h> #include "utils.h" using namespace std; using namespace TagLib; class TestWAV : public CppUnit::TestFi...
<commit_before>/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Benchmark.h" #include "Resources.h" #include "SkBitmap.h" #include "SkData.h" #include "SkImageEncoder.h" #include "sk_tool_utils.h" class EncodeBen...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * Version: MPL 1.1 / GPLv3+ / LGPLv3+ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License or as spec...
<commit_before>#include <sys/time.h> #include <sys/types.h> #include <sys/syscall.h> #define gettid() syscall(__NR_gettid) #include "thread_private.h" #include "parameters.h" #define NUM_PAGES (40960 * nthreads) extern bool verify_read_content; void check_read_content(char *buf, int size, off_t off) { // I assume ...
<commit_before>#include "otc/otcli.h" using namespace otc; // Note that the "taxonomy" data member here will be the first tree (the supertree) struct DistanceState : public TaxonomyDependentTreeProcessor<TreeMappedWithSplits> { unsigned long totalRF; unsigned long totalNumNotDisplayed; unsigned long totalN...
<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>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#define _REENTRANT #include <cstdio> #include "sync_objs.h" #include "loom.h" #include <pthread.h> #include <semaphore.h> using namespace std; static pthread_mutex_t mutexes[MAX_N_FIXES]; static sem_t sems[MAX_N_FIXES]; void init_sync_objs() { for (int i = 0; i < MAX_N_FIXES; ++i) { pthread_mutex_i...
<commit_before>/************************************************************************* * * $RCSfile: patattr.hxx,v $ * * $Revision: 1.11 $ * * last change: $Author: rt $ $Date: 2004-08-23 09:25:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>#include <opencv2/opencv.hpp> #include <stdio.h> #include <stdlib.h> #include <vector> using namespace cv; using std::vector; int main(int argc, char** argv) { // Display usage if (argc < 5) { printf("Usage: %s <rows> <cols> <size> [cameras...]\n", argv[0]); return -1; } ...
<commit_before>#include <cassert> #include <algorithm> #include "jsobject.h" #include "property.h" #include "jsfunction.h" #include "jsval.h" #include "jsenv.h" #include "context.h" #include "class.h" namespace iv { namespace lv5 { JSObject::JSObject() : prototype_(NULL), class_name_(), extensible_(true), ...
<commit_before>/* Copyright 2014 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 required by applicable law o...
<commit_before>#include <opencv2/core/core.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/imgcodecs.hpp> #include <iostream> #include <math.h> #include <stdio.h> using namespace cv; using namespace std; int main() { //char dir[100]={"/home/sedrica/Desktop/imag...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkRawImageReadWrite.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Insight Consortium. All rights reserved. See ITK...
<commit_before>// Copyright (2015) Gustav #include "ride/builtinthemes.h" #include <string> typedef google::protobuf::RepeatedPtrField<ride::Theme> ThemeList; ride::Theme* GetOrCreateTheme(ThemeList* themes, const std::string& name) { for (ride::Theme& t : *themes) { if (t.name() == name) return &t; } ri...
<commit_before>#include "catch.hpp" // mapnik #include <mapnik/vertex_cache.hpp> // stl #include <iostream> #include <vector> #include <tuple> struct fake_path { using coord_type = std::tuple<double, double, unsigned>; using cont_type = std::vector<coord_type>; cont_type vertices_; cont_type::iterato...
<commit_before>/* * RudeMesh.cpp * * Bork3D Game Engine * Copyright (c) 2009 Bork 3D LLC. All rights reserved. * */ #include "RudeMesh.h" #include "RudeGL.h" #include "RudeTextureManager.h" #include "RudeFile.h" #include "RudeDebug.h" RudeMesh::RudeMesh(RudeObject *owner) : m_owner(owner) , m_scale(1.0f, 1...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#include <iostream> #include <fstream> #include <boost/regex.hpp> #include <boost/filesystem.hpp> #include "Reseed.h" #include "Log.h" #include "util.h" namespace i2p { namespace data { static std::vector<std::string> httpReseedHostList = { "http://193.150.121.66/netDb/", "http://netdb.i2p2.n...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>#include <cassert> #include <iostream> #include "CallGraph.h" #include "FindCalls.h" #include "IR.h" #include "Util.h" namespace Bish { void Module::set_main(Function *f) { add_function(f); main = f; } void Module::add_function(Function *f) { functions.push_back(f); } void Module::add_glo...
<commit_before>/************************************************************************* * * $RCSfile: admininvokationpage.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2004-08-02 17:36:08 $ * * The Contents of this file are made available subject to the terms of * either of the foll...
<commit_before>#include "marketorderswidget.hpp" #include "ui_marketorderswidget.h" #include <QSqlQuery> #include <QListIterator> #include <QPushButton> #include <QTableWidget> #include <QtXmlPatterns> #include <QMovie> #include "network.hpp" #include "queries.hpp" #include "settings.hpp" #include "global.hpp" Market...
<commit_before>/*************************************************************************** * Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> * * * * This program is free software; you can redistribute it and/or modify ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xmlfiltertabpagexslt.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-17 07:49:14 $ * * The Contents of this f...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: statusbarcontroller.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: kz $ $Date: 2008-03-07 14:34:07 $ * * The Contents of this fil...
<commit_before>// vasi.hxx -- a class to hold some critical vasi data // // Written by Curtis Olson, started December 2003. // // Copyright (C) 2003 Curtis L. Olson - curt@flightgear.org // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License ...
<commit_before>#include <iostream> #include <cmath> #include <cstdlib> #include <iomanip> #include <string> using namespace std; int main(){ int f[20] = {1,1}; for (int i=2;i<20;i++){ f[i] = f[i-1] + f[i-2]; } for (int i=0;i<20;i++){ if(i%4 == 0)cout<<endl; cout.width(5); cout<<f[i]; } cout<<endl; //...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#include <wdt/Throttler.h> #include <wdt/test/TestCommon.h> #include <glog/logging.h> #include <gtest/gtest.h> #include <chrono> namespace facebook { namespace wdt { void testThrottling(std::shared_ptr<Throttler> throttler, int expectedRate) { int64_t numTransferred = 0; auto startTime = Clock::no...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: stylepool.cxx,v $ * $Revision: 1...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sqlparserclient.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-09-17 05:13:37 $ * * The Contents of this file a...
<commit_before>/* Copyright 2013-2014 Daniele Di Sarli 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 ...
<commit_before> #include <string> #include <vector> #include <iostream> #include <algorithm> #include <sstream> #include "logstore.h" #include "regionAllocator.h" #include "diskTreeComponent.h" #include <assert.h> #include <limits.h> #include <math.h> #include <pthread.h> #include <sys/time.h> #include <time.h> #defi...
<commit_before>#pragma once // `krbn::device_observer` can be used safely in a multi-threaded environment. #include "boost_defs.hpp" #include "grabbable_state_manager.hpp" #include "grabber_client.hpp" #include "hid_observer.hpp" #include "logger.hpp" #include "time_utility.hpp" #include "types.hpp" #include <pqrs/d...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: fieldmappingimpl.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:07:28 $ * * The Contents of this file a...
<commit_before> #include <string> #include <sstream> #include "flame/base.h" #include "pyflame.h" #define NO_IMPORT_ARRAY #define PY_ARRAY_UNIQUE_SYMBOL FLAME_PyArray_API #include <numpy/ndarrayobject.h> #if SIZE_MAX==NPY_MAX_UINT32 #define NPY_SIZE_T NPY_UINT32 #elif SIZE_MAX==NPY_MAX_UINT64 #define NPY_SIZE_T NPY_...
<commit_before>#include "ofQtUtils.h" static bool bQuicktimeInitialized = false; //---------------------------------------- void initializeQuicktime(){ if (bQuicktimeInitialized == false){ //---------------------------------- // do we have quicktime installed at all? // http://www.apple.com/quicktime/down...
<commit_before>/* * eos - A 3D Morphable Model fitting library written in modern C++11/14. * * File: python/pybind11_Image.hpp * * Copyright 2017 Patrik Huber * * 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 ...
<commit_before>#include "material.h" #include "simconf.h" #include "functions.h" #include <cmath> #include <iostream> void materialBase::prepare() { double tt = 0.0; // get total stoichiometry for( int i = 0; i < element.size(); i++ ) { if( element[i]->t < 0.0 ) element[i]->t = 0.0; tt += element[i...
<commit_before>#include "SingleElimination.hpp" std::vector<std::shared_ptr<lionheart::Player>> lionheart::SingleElimination::run() { std::vector<std::shared_ptr<Player>> winners; auto fortMap = lionheart::makeMap("forts.in"); auto infantryPaths = std::make_shared<lionheart::Paths>(fortMap, 1); auto mountedPat...
<commit_before><commit_msg>08/07/2017<commit_after><|endoftext|>
<commit_before>/**************************************************************** * Copyright (c) 2014, The Pennsylvania State University * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted for * personal and commercial purposes provided that ...
<commit_before>#include "svgpath.h" #include "svgutils.h" #include "graphicscontext.h" SvgPath::SvgPath(const std::string &str) { setPath(str); } void SvgPath::setPath(const std::string &str) { data.commands.clear(); data.coords.clear(); ok = true; lastError = ""; if (str.empty()) { ok = false; return; ...
<commit_before>#include <iostream> #include <chrono> #include <infra/config/config.h> #include <mips/mips_memory.h> #include <mips/mips_rf.h> #include "perf_sim.h" static const uint32 PORT_LATENCY = 1; static const uint32 PORT_FANOUT = 1; static const uint32 PORT_BW = 1; static const uint32 FLUSHED_STAGES_NUM = 4; ...
<commit_before>#include "builtin/data.hpp" #include "builtin/class.hpp" #include "objectmemory.hpp" #include "object_utils.hpp" #include "gc/gc.hpp" #include "capi/capi.hpp" #include "ontology.hpp" namespace rubinius { void Data::init(STATE) { GO(data).set(ontology::new_class(state, "Data", G(object))); ...
<commit_before>#include "PlatformEntity.h" PlatformEntity::PlatformEntity(){} PlatformEntity::~PlatformEntity() { this->Shutdown(); } int PlatformEntity::Initialize(int entityID, PhysicsComponent * pComp, GraphicsComponent * gComp, AIComponent * aiComp) { int result = 0; this->InitializeBase(entityID, pComp, gComp, ...
<commit_before>// // // The Laxkit, a windowing toolkit // Please consult http://laxkit.sourceforge.net about where to send any // correspondence about this software. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // ...
<commit_before>/* bzflag * Copyright (c) 1993 - 2004 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLI...
<commit_before>/* Copyright (c) 2018 PaddlePaddle 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 Unless required by appl...
<commit_before>/************************************************* * Servo * * read joystick data, normalize, write to servo * * * * @author: Navid Kalaei <navidkalaie@gmail.com> * * @github: @navid-kalaei *...
<commit_before>/* HardwareSerial.cpp - Hardware serial library for Wiring Copyright (c) 2006 Nicholas Zambetti. All right reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; e...
<commit_before>// irview : simple viewer for adding false colour to IR or thermal images // / video / camera feed // usage: prog {image/video file} // Author : Toby Breckon, toby.breckon@durham.ac.uk // Copyright (c) 2008 School of Engineering, Cranfield University // Copyright (c) 2017 School of Engineering and ...
<commit_before>#include <iostream> #include <stdlib.h> #include "io/PPMLoader.hpp" #include "converter/RGBToYCbCrConverter.hpp" #include "converter/YCbCrToRGBConverter.hpp" #include "helper/Test.hpp" #include "Huffman.hpp" #include "DCT.hpp" #include "Arai.hpp" #include <math.h> #include "bitstream/Bitstream.hpp" #in...
<commit_before>//===--- Alloc.cpp - Swift Language ABI Allocation Support ----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xformsexport.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 13:12:03 $ * * The Contents of this file are m...
<commit_before>/************************************************************************* * * $RCSfile: registerservices.cxx,v $ * * $Revision: 1.30 $ * * last change: $Author: vg $ $Date: 2005-02-16 16:42:28 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<commit_before>// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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 // 3 of the License, or (at your option) a...
<commit_before>#include <stdio.h> #include "sprocket.h" #define DEBUG 0 int main(int argc, char ** argv) { int i; char mode; char origin; char input[128]; char outfile[128]; char infile[128]; FILE * source; FILE * dest; for(i = 0; i < 25; i++) printf("\n"); printf("Welcome to Sprocket\n---------------...
<commit_before>#include "config.h" #include "vm.hpp" #include "vm/object_utils.hpp" #include "objectmemory.hpp" #include "primitives.hpp" #include "builtin/array.hpp" #include "builtin/class.hpp" #include "builtin/exception.hpp" #include "builtin/integer.hpp" #include "builtin/string.hpp" #include "builtin/time.hpp" ...
<commit_before>#include <eosio/chain/webassembly/eos-vm-oc/executor.hpp> #include <eosio/chain/webassembly/eos-vm-oc/code_cache.hpp> #include <eosio/chain/webassembly/eos-vm-oc/memory.hpp> #include <eosio/chain/webassembly/eos-vm-oc/intrinsic_mapping.hpp> #include <eosio/chain/webassembly/eos-vm-oc/intrinsic.hpp> #incl...
<commit_before>/************************************************************************* * * $RCSfile: xformsimport.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2004-11-16 10:04:05 $ * * The Contents of this file are made available subject to the terms of * either of the following ...
<commit_before>/* ---------------------------------------------------------------------- * Copyright (C) 2010-2018 Arm Limited. All rights reserved. * * * Project: CMSIS NN Library * Title: arm_nnexamples_cifar10.cpp * * Description: Convolutional Neural Network Example * * Target Processor: Cortex-M4/C...
<commit_before>#include "encode_jpeg.h" #include "common_jpeg.h" namespace vision { namespace image { #if !JPEG_FOUND torch::Tensor encode_jpeg(const torch::Tensor& data, int64_t quality) { TORCH_CHECK( false, "encode_jpeg: torchvision not compiled with libjpeg support"); } #else using namespace detail; ...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015 Couchbase, 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 ...
<commit_before>// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. #include "vm/bootstrap_natives.h" #include "vm/exceptions.h" #include "vm/native_entry....
<commit_before>#include "itkCommandLineArgumentParser.h" #include "CommandLineArgumentHelper.h" #include "itkImageFileReader.h" #include "itkImageToVectorImageFilter.h" #include "itkImageFileWriter.h" //------------------------------------------------------------------------------------- /** run: A macro to call a f...
<commit_before>#include <sys/types.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> #include <cstring> #include "InputPacket.h" #include "Server.h" using namespace ni; Server::Server(short port) : m_socket(createSocket(port)), m_running(true) { } void Server::run() { InputPacket packet; w...
<commit_before>#include <string.h> #include <float.h> #include "reductions.h" #include "rand48.h" using namespace LEARNER; struct LRQstate { vw* all; bool lrindices[256]; size_t orig_size[256]; std::vector<std::string> lrpairs; bool dropout; uint64_t seed; uint64_t initial_seed; }; bool valid_int (cons...
<commit_before> #include "include/Shapes.h" double sumOfArea(const std::vector<Shape *> & shapes) { double total =0; for (Shape *shapePoint: shapes) total += shapePoint->area(); return total; } double sumOfPerimeter(const std::vector<Shape *> & shapes){ double total = 0; for (Shape *...
<commit_before>/* Copyright (c) by respective owners including Yahoo!, Microsoft, and individual contributors. All rights reserved. Released under a BSD (revised) license as described in the file LICENSE. */ #include <sstream> #include <float.h> #include <math.h> #include "reductions.h" #include "rand48.h" #include "...
<commit_before>/* This file is part of solidity. solidity 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 of the License, or (at your option) any later version. solidity ...
<commit_before>/* * Copyright (C) 2007,2008,2009 Red Hat, Inc. * * This is part of HarfBuzz, an OpenType Layout engine library. * * Permission is hereby granted, without written agreement and without * license or royalty fees, to use, copy, modify, and distribute this * software and its documentation for any p...
<commit_before>#include "clay.hpp" #include "libclaynames.hpp" ExprPtr desugarCharLiteral(char c) { ExprPtr nameRef = prelude_expr_Char(); CallPtr call = new Call(nameRef, new ExprList()); ostringstream out; out << (int)c; call->args->add(new IntLiteral(out.str(), "i8")); return call.ptr(); } ...
<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 or agree...
<commit_before>/****************************************************************************** ** Copyright (c) 2014-2015, Intel Corporation ** ** All rights reserved. ** ** ...
<commit_before>#include <sksat/common.hpp> namespace sksat { using opt_func = int (*)(int, char**); class optparse { public: struct option { char s_opt; sksat::string l_opt, desc; opt_func func; }; optparse() : argc(0), argv(nullptr) {} void add_opt(optparse::option o){ opts.push_back(o); } void add_...
<commit_before>/* * Copyright (C) 2007-2013 German Aerospace Center (DLR/SC) * * Created: 2013-09-03 Martin Siggel <Martin.Siggel@dlr.de> * * 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>#include "BoundingBox.hpp" namespace fast { void BoundingBox::createCorners(Float3 pos, Float3 size) { // Create corners float corners[8][3] = { {pos.x(),pos.y(),pos.z()}, {pos.x()+size.x(),pos.y(),pos.z()}, {pos.x()+size.x(),pos.y()+size.y(),pos.z()}, {pos.x()+s...
<commit_before>// RUN: %clang -target x86_64-unknown-nacl -ccc-echo %s -emit-llvm-only -c -o %t.o 2>&1 | FileCheck %s -check-prefix=ECHO // RUN: %clang -target x86_64-unknown-nacl %s -emit-llvm -S -c -o - | FileCheck %s // RUN: %clang -target x86_64-unknown-nacl %s -emit-llvm -S -c -pthread -o - | FileCheck %s -check-p...
<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>// // Copyright (c) 2008-2016 the Urho3D project. // // 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...
<commit_before>#include <QTimer> #include <QsLog.h> #include "inverter_gateway.h" #include "abstract_detector.h" #include "settings.h" #include "fronius_udp_detector.h" static const int MaxSimultaneousRequests = 32; InverterGateway::InverterGateway(Settings *settings, QObject *parent) : QObject(parent), mSettings(s...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions 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.or...
<commit_before>/* ----------------------------------------------------------------------- *//** * * @file linear.cpp * * @brief Linear-regression functions * *//* ----------------------------------------------------------------------- */ #include <dbconnector/dbconnector.hpp> #include <modules/shared/HandleTrait...
<commit_before>#include "console.hpp" #include "cpp/ylikuutio/callback_system/callback_parameter.hpp" #include "cpp/ylikuutio/callback_system/callback_object.hpp" #include "cpp/ylikuutio/callback_system/callback_engine.hpp" #include "cpp/ylikuutio/callback_system/callback_magic_numbers.hpp" #include "cpp/ylikuutio/comm...