text
stringlengths
3.08k
22k
//-------------------- pNumberImg.cpp ----------------------- //----------------------------------------------------------- #include "precHeader.h" //----------------------------------------------------------- #include "pNumberImg.h" #include "pPanel.h" #include "clientWin.h" #include "extMonitor.h" //-----------------...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "SkCanvas.h" #include "SkPaint.h" #include "SkDashPathEffect.h" static void drawline(SkCanvas* canvas, int on, int off, const SkPaint& paint, ...
/* Divvy Bike Data Analysis program. Author: <NAME> Date: 11/01/2021 Class: CS 141, Fall 2021, UIC System: Visual Studio Code 2021 IDE Windows Menu Option 5 Extra Credit URL: https://www.google.com/maps/d/u/0/edit?mid=1kEBEpX9wK7_L-cxFBnXy6ZYR_u0mVIs6&usp=sharing Coordinates for Home I woul...
/* Copyright 2005-2008 Intel Corporation. All Rights Reserved. This file is part of Threading Building Blocks. Threading Building Blocks is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundat...
#ifndef _WIN32_WINNT #if (_MSC_VER >1200) #define _WIN32_WINNT 0x0500 #else #define _WIN32_WINNT 0x0400 #endif #endif #include <windows.h> #ifdef __WINCRYPT_H__ #undef __WINCRYPT_H__ #endif #include <wincrypt.h> #include <iostream> #define BLOCK_SIZE 160 extern BOOL debug_flag; //rex...
/********************************************************************** * Copyright (c) 2008-2015, Alliance for Sustainable Energy. * All rights 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 ...
// base64 decode optimized using table lookup // Copyright (C) 2005 Insilicos LLC All Rights Reserved // bpratt 10-5-05 /* 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...
//bcw0x1bd2 {{{ #include<bits/stdc++.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define MC(n,m) memcpy((n),(m),sizeof(n)) #define F first #define S second #define MP make_pair #define PB push_back #define FOR(x,y) for(__typeof(y.begin())x=y.begin();x!=y.end();x...
// Copyright (c) 2021-2022 Glass Imaging Inc. // Author: <NAME> <<EMAIL>> // // 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 ...
/* nsjail ----------------------------------------- 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/li...
#include "ExampleLayer.h" #include "imgui/imgui.h" #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> /* Hazel Engine License : Apache 2.0 */ //ExampleLayer::ExampleLayer () : Layer ("ExampleLayer"), m_CameraController (1280.0f / 720.0f) ExampleLayer::ExampleLayer () : Layer ("ExampleLayer"),...
/* * Copyright (c) 2019, NVIDIA CORPORATION. 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 condition...
/** * particle_filter.cpp * * Created on: Dec 12, 2016 * Author: <NAME> */ #include "particle_filter.h" #include <math.h> #include <algorithm> #include <iostream> #include <iterator> #include <numeric> using std::string; using std::vector; void ParticleFilter::init(double x, double y, double theta, double std[...
/* Copyright (c) 2016 Snowplow Analytics Ltd. All rights reserved. This program is licensed to you under the Apache License Version 2.0, and you may not use this file except in compliance with the Apache License Version 2.0. You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICE...
//////////////////////////////////////////////////////////////////////////////// // // // Copyright (C) 2016, goatpig. // // Distributed under the MIT license ...
//--------------------------------------------------------------------- // Algorithmic Conjurings @ http://www.coyotegulch.com // // mtprng.cpp (libcoyote) // // Mersenne Twister -- A pseudorandom Number Generator // // ORIGINAL ALGORITHM COPYRIGHT // ============================ // Copyright (C) 1997, 2002 <NAME...
/*************************************************************** * Estimate Camera Move using 2D-2D Feature Match **************************************************************/ #include <iostream> #include "opencv2/calib3d.hpp" #include "opencv2/features2d.hpp" #include "opencv2/highgui.hpp" using namespace std; us...
// Copyright (2015) Gustav #include "ride/outputcontrol.h" #include <wx/clipbrd.h> #include <wx/regex.h> #include <wx/uri.h> #include "settings.pb.h" // NOLINT this is how we include it #include "ride/cmdrunner.h" #include "ride/compilermessage.h" #include "ride/mainwindow.h" #include "ride/stcutils.h" #include "r...
/* * matiec - a compiler for the programming languages defined in IEC 61131-3 * * Copyright (C) 2012 <NAME> (<EMAIL>) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either versio...
/* ----------------------------------------------------------------- * Programmer(s): <NAME>, <NAME> @ LLNL * ----------------------------------------------------------------- * SUNDIALS Copyright Start * Copyright (c) 2002-2022, Lawrence Livermore National Security * and Southern Methodist University. * All righ...
/** @file A brief file description @section license License 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 und...
// ================================================================================================= // Copyright Adobe // Copyright 2011 Adobe // All Rights Reserved // // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms // of the Adobe license agreement accompanying it. ...
// Copyright (c) 2015-2020 by the parties listed in the AUTHORS file. // All rights reserved. Use of this source code is governed by // a BSD-style license that can be found in the LICENSE file. #include <_libtoast.hpp> #ifdef _OPENMP # include <omp.h> #endif // ifdef _OPENMP #include <chrono> void apply_flags_to_...
//////////////////////////////////////////////////////////////////////////// // Module : sight_manager_target.cpp // Created : 27.12.2003 // Modified : 08.04.2008 // Author : <NAME> // Description : sight manager target functions //////////////////////////////////////////////////////////////////////////// #inclu...
// MIT License // // Copyright (c) 2020 ADCIRC Development Group // // 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, ...
/* * Copyright 2019 Google LLC. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "src/gpu/ops/TessellationPathRenderer.h" #include "include/private/SkVx.h" #include "src/core/SkPathPriv.h" #include "src/gpu/GrClip.h" #include "src/gpu/GrMemoryPoo...
/* -*- mode: C++ ; c-file-style: "stroustrup" -*- ***************************** * Qwt Widget Library * Copyright (C) 1997 <NAME> * Copyright (C) 2002 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the Qwt License, Version 1.0 *******************...
/* All modification made by Cambricon Corporation: © 2022 Cambricon Corporation All rights reserved. All other contributions: Copyright (c) 2014--2022, the respective contributors All rights reserved. For the list of contributors go to https://github.com/pytorch/pytorch/graphs/contributors Redistribution and use in sou...
// Copyright 2014 Georgia Institute of 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 ...
/********************************************************* CSCI 241 - Assignment 2 -Spring 2017 Programmer: <NAME> Z-ID: z1818810 Section: 4 TA: <NAME> Date Due: 02/16/2017 Function: This file contains the declaration for class methods of AccountDB. These methods mostly manipulate data in ways such as sorting, search...
#include <iostream> #include <numeric> #include <algorithm> #include <map> #include <cmath> #include <ctime> using namespace std; unsigned long long power_mod(unsigned long long x, unsigned long long y, unsigned long long p) { unsigned long long result = 1; x %= p; y %= p; while (y > 0) ...
#include "software/ai/evaluation/indirect_chip.h" #include "shared/constants.h" #include "software/geom/rectangle.h" #include "software/geom/util.h" #include "software/new_geom/angle.h" #include "software/new_geom/point.h" #include "software/world/world.h" std::optional<Point> Evaluation::findTargetPointForIndirectCh...
#include <assert.h> #include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <experimental/optional> #include <string> #include <vector> #include <hel.h> #include <hel-syscalls.h> #include <libcompose.hpp> #include <libterminal.hpp> //FIXME: HelH...
#include "GMAConverter.h" #ifdef _MSC_VER #define _CRT_SECURE_NO_WARNINGS #endif #include <string> #include "FunctionsAndDefines.h" typedef struct { uint32_t modelOffsetFromBase; uint32_t nameOffsetFromNames; }Model; inline void copyAscii(FILE *input, FILE *output, uint32_t offset) { fseek(input, offset, SEEK_SE...
// SHA-512. Adapted from LibTomCrypt. This code is Public Domain #include "sha512.hpp" #include <cstring> typedef std::uint32_t u32; typedef std::uint64_t u64; static const u64 K[80] = { 0x428a2f98d728ae22ULL, 0x7137449123ef65cdULL, 0xb5c0fbcfec4d3b2fULL, 0xe9b5dba58189dbbcULL, 0x3956c25bf348b538ULL, 0x59f11...
// This file is distributed under the BSD 3-Clause License. See LICENSE for details. #include "pass_punch.hpp" #include "iassert.hpp" #include "lbench.hpp" #include "lgedgeiter.hpp" #include "lgraph.hpp" static Pass_plugin sample("pass_punch", Pass_punch::setup); Pass_punch::Pass_punch(const Eprp_var &var) : Pass(...
#include <sstream> #include "WordSubwordDecoder.hh" #include "Lookahead.hh" #include "ClassLookahead.hh" #include "conf.hh" #include "str.hh" #include "decoder-helpers.hh" using namespace std; void read_config(WordSubwordDecoder &d, string cfgfname) { ifstream cfgf(cfgfname); if (!cfgf) throw string("Proble...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ /* * 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 <co...
/* compiled using https://godbolt.org/ gcc 9.3 -O3 -m64 -march=x86-64 -mtune=x86-64 -fopt-info-vec -mavx -fomit-frame-pointer -DNDEBUG */ #include <stdlib.h> #include <algorithm> #define RANDOM_MAX 2147483647 #ifndef FLT_MAX #define FLT_MAX 3.40282347e+38 #endif /*----< euclid_dist_2() >---------------------------...
#include <deque> #include <experimental/optional> #include <iostream> #include <stdlib.h> #include <assert.h> #include <stdio.h> #include <async/result.hpp> #include <protocols/mbus/client.hpp> #include <protocols/usb/usb.hpp> #include <protocols/usb/api.hpp> #include <protocols/usb/client.hpp> #include "storage.hp...
#include "global.h" #include <stdio.h> #if defined(HAVE_UNISTD_H) #include <unistd.h> #endif #include <sys/types.h> #include <sys/stat.h> #if defined(HAVE_FCNTL_H) #include <fcntl.h> #endif #include <errno.h> #include "LightsDriver_Linux_stac.h" #include "GameState.h" #include "Game.h" #include "RageLog.h" #include ...
// // Created by zeph on 11/15/16. // Just want to work on algorithm design. // // QuickSort(A, begin, end) // INPUT: smart array of comparables A[i, j) {using mathematical notation for clopen interval) // OUTPUT: in-place sorting of this vector using quicksort // // PSEUDOCODE: /* * QuickSort( A[i,j) ): * if ...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" #include "WexTestClass.h" #include "CommonState.hpp" #include "globals.h" #include "..\interactivity\win32\Clipboard.hpp" #include "..\interactivity\inc\ServiceLocator.hpp" #include "dbcs.h" #include <cc...
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This program generates a user profile and history by randomly generating // data and feeding it to the history service. #include "chrome/tool...
#pragma once #include <muse/app/application.hpp> #include <muse/chain/account_object.hpp> #include <muse/chain/database.hpp> #include <fc/io/json.hpp> #include <fc/smart_ref_impl.hpp> #include <iostream> #define INITIAL_TEST_SUPPLY (10000000000ll) using namespace graphene::db; extern uint32_t ( MUSE_TESTING_GENESIS...
// Student can take only maximum of 1 project #include<bits/stdc++.h> using namespace std; struct Project{ int pno; int c; // capacity }; struct Student{ int sno; //Student number vector<int> sp; //Student Preference of Projects }; struct Lecturer{ int Lno; //Lecturer Numbe...
/* * Copyright 2013 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 required by applica...
/* * Copyright 2004-2020 Hewlett Packard Enterprise Development LP * Other additional copyright holders may be indicated within. * * The entirety of this work is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * * You may obtai...
/* * Open source copyright declaration based on BSD open source template: * http://www.opensource.org/licenses/bsd-license.php * * This file is part of the OP2 distribution. * * Copyright (c) 2011, <NAME> and others. Please see the AUTHORS file in * the main source directory for a full list of copyright holders....
#include <math.h> #include <stdio.h> #include <stdlib.h> #define pi 3.141592653589793 #define solar_mass (4 * pi * pi) #define days_per_year 365.24 typedef double v2df __attribute__ (( vector_size(2*sizeof(double)) )); double __inline lower(const v2df& v) { return ((double*)&v)[0]; } double __inline upper(const...
/*************************************************************************** vidhrdw.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #include "vidhrdw/generic.h" unsigned char *bankp_videor...
#include "FWCore/PluginManager/interface/PluginManager.h" #include "FWCore/PluginManager/interface/standard.h" #include "FWCore/PluginManager/interface/SharedLibrary.h" #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/ServiceRegistry/interface/ServiceRegistry.h" // #include "CondCore/CondDB/inte...
///*|----------------------------------------------------------------------------- // *| This source code is provided under the Apache 2.0 license -- // *| and is provided AS IS with no warranty or guarantee of fit for purpose. -- // *| See the project's LICENSE.md for details. ...
/*############################################################################## HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®. 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...
/** * @file MapUtils.cpp * * @see MapUtils.hpp */ #include <cmath> #include <iostream> #include "../../include/terrain/MapUtils.hpp" #include "../../include/math/InterpolationFunctions.hpp" /** * @brief * Macro aiming at computing an image of the distance between two points. * * @param x0 The ...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <ctype.h> typedef unsigned short WORD; typedef unsigned int LONG; typedef unsigned int INTEGER; typedef unsigned char BYTE; #define READ(var) fread((char*)&var, sizeof(var), 1, file) enum ObjectTypes { OBJECT_TYPE_PRODUCER = 0x1, OBJ...
/* * Copyright 2012-2014 <NAME> * * This program is free software; you can redistribute it and/or modify it * under the terms of the standard MIT license. See COPYING for more details. */ #ifndef WIN32 #include <arpa/inet.h> #else #include <winsock2.h> #endif #include <stdbool.h> #include <stddef.h> #include <s...
#include "glwindow.h" #include "shaders.h" #include <QtCore> #include <QDebug> #include <QOpenGLContext> #include <QOpenGLFunctions> #include <QOpenGLExtraFunctions> #include <QOpenGLTexture> #include <QOpenGLShaderProgram> #include <QOpenGLVertexArrayObject> #define SHOW_RESULT 1 GLWindow::GLWindow() :m_isExtHas...
// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full license information. // #include "CNTKLibrary.h" #include <functional> #include "Common.h" #include "Image.h" using namespace CNTK; MinibatchSourcePtr CreateCifarMinibatchSource(size...
/************************************************************************** <NAME> (C) 1987 Jaleco driver by <NAME> (<EMAIL>) Note: if MAME_DEBUG is defined, pressing Z with: Q shows background W shows foreground E shows frontmost (text) layer A shows sprites ...
// // Created by Jemin on 3/27/19. // Modified by Inkyu on 22/July/2019 (based on Laikago Environment) // MIT License // // Copyright (c) 2019-2019 Robotic Systems Lab, ETH Zurich // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (t...
/************************************************************************/ /* */ /* HTMLReboot.cpp */ /* */ /* Renders the HT...
// Copyright 2020-present MongoDB Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed t...
// RBotFirmware // <NAME> 2016-18 #include "application.h" #include "ConfigPinMap.h" #include "math.h" #include "MotionHelper.h" #include "Utils.h" MotionHelper::MotionHelper() : _motionActuator(_motionIO, _motionPipeline) { // Init _isPaused = false; _moveRelative = false; _xMaxMM = 0; ...
#include "ray_tracing_renderer.hpp" RayTracingRenderer::RayTracingRenderer(std::shared_ptr<Viewport> viewport, std::shared_ptr<Projection> projection, std::shared_ptr<Camera> camera) : viewport(viewport), projection(projection), camera(camera) { } void RayTracingRenderer::animate(Scene scene, double duration, double ...
/* AudioFileSourceID3 ID3 filter that extracts any ID3 fields and sends to CB function Copyright (C) 2017 <NAME>, III This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 ...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
#pragma once #include<particle_simulator.hpp> #include"particle_base.hpp" #include"changeover.hpp" #define ASSERT assert #include"artificial_particles.hpp" const PS::F64 SAFTY_FACTOR_FOR_SEARCH = 0.99; //const PS::F64 SAFTY_FACTOR_FOR_SEARCH_SQ = SAFTY_FACTOR_FOR_SEARCH * SAFTY_FACTOR_FOR_SEARCH; //const PS::F64 SAFTY...
/* History: January 2022, <NAME>, Created. Purpose: Swerve Drive file Uses 4 wheeldrive ~ swerve module class to control movement Has auto drive, robot or field oriented and incorporates odometry */ #include "SwerveDrive.h" #include <iostream> //Constructor SwerveDrive::SwerveDrive(){} //Drive fun...
#include "stdafx.h" #include "InputMapper.h" #include "ConfigurationStore.h" #include "ActionProviderPlugin.h" #include "ActionName.h" //included for test reasons only (ifdef DEBUG??) #include "NoOpCommand.h" using namespace OIS; /**Inizialize on first use the vector of known key names. This key names must be used...
// 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 "chrome/common/badge_util.h" #include "base/logging.h" #include "base/strings/utf_string_conversions.h" #include "grit/ui_resources.h" #incl...
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
/* ** Copyright 2013,2017 Centreon ** ** 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 agreed t...
/* Juggle Fest Share on LinkedIn Description: Many developers here at Yodle are avid jugglers. To celebrate their prowess we are organizing a Yodle Open JuggleFest, but we need your help planning it. There will be thousands of participants split into teams. Each team will attempt to complete a juggling circuit ...
#include "common.h" #include "WorldSegment.h" #include "SpriteMaps.h" #include "GameBuildings.h" #include "Constructions.h" #include "BuildingConfiguration.h" #include "ContentLoader.h" #include "GUI.h" #include "MapLoading.h" #include "MiscUtils.h" #include "df/buildings_other_id.h" #include "df/building_wellst.h" #i...
// Copyright 2020 multiparty.org // This file defines the "Party" class, which represents // A party/machine-specific instance of our protocol. // // When deployed, every machine's code will construct exactly a single // instance of this class, and use it as the main control flow for the protocol. // // In a simulated...
/* * This file is part of Poedit (https://poedit.net) * * Copyright (C) 2000-2022 <NAME> * * 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 l...
#include "GLMaterial.h" #include <cmath> #include <QtMath> #include <QDebug> GLMaterial::GLMaterial(QWidget *parent) : QOpenGLWidget(parent) { connect(&timer,&QTimer::timeout,this,[this](){ rotate+=1; if(isVisible()){ update(); } }); timer.setInterval(50); } GLMater...
// -*- C++ -*- // // Package: L1O2OTestAnalyzer // Class: L1O2OTestAnalyzer // /**\class L1O2OTestAnalyzer L1O2OTestAnalyzer.cc CondTools/L1O2OTestAnalyzer/src/L1O2OTestAnalyzer.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME>-<NAME> /...
/* * 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 "License"); you...
// This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved. #define BOOST_TEST_MAIN #define BOOST_TEST_DYN_LINK #include <boost/test/unit_test.hpp> #include <vector> #include <iostream> #include "mldb/plugins/jml/jml/classifier.h" #include "mldb/plugins/jml/jml/dense_features.h" #include "mldb/uti...
/* * MDPC (Morse Decompositions for Piecewise Constant vector fields) * Copyright (c) 2012 <NAME> * * 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 wi...
// 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 "base/stringprintf.h" #include "base/utf_string_conversions.h" #include "chrome/browser/sync/profile_sync_service_harness.h" #include "chrome...
/* -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include <iostream> #include <list> #include <map> #include <sys/types.h> #include <arpa/inet.h> #include <iomanip> #include <pthread.h> #include <sched.h> #include <netinet/tcp.h> #include "print.h" #include "ring.h" using namespace std; using fawn::D...
/** */ #include "vcl/vcl.hpp" #include <iostream> #include "initialization.hpp" #include "interface.hpp" #include "deformation.hpp" using namespace vcl; // Visual elements used to display the picked elements struct picking_visual_parameters { mesh_drawable sphere; // the sphere indicating which vertex is unde...
/*************************************************************************** Copyright (c) 2016, Xilinx, 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: 1. Redistributions of source code must retai...
/// \ingroup newmat ///@{ /// \file tmta.cpp /// Part of matrix library test program. //#define WANT_STREAM #include "include.h" #include "newmatap.h" #include "tmt.h" #ifdef use_namespace using namespace NEWMAT; #endif /**************************** test program ******************************/ static void proce...
/**************************************************************************** Copyright (c) 2017-2018 <NAME> Co., Ltd. http://www.cocos2d-x.org 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 Softwar...
/***************************** Copyright 2011 <NAME>. 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 list of cond...
/* * main.cpp * * Created on: Jun 21, 2012 * Author: marius */ #include "MotifWorker.h" #include <ctime> #include <cmath> #include <getopt.h> #include "utils.h" #include <cstdio> #ifndef NOMPI #include <mpi.h> #endif #define MAX_MOTIFS_PER_PROC 100000 void *runWork(void *w) { ((MotifWorker*) w)->doWork()...
/** * SPDX-License-Identifier: GPL-2.0-or-later * * This file is part of osm2pgsql (https://osm2pgsql.org/). * * Copyright (C) 2006-2022 by the osm2pgsql developer community. * For a full list of authors see the git log. */ /* * Dirty tile list generation * * Please refer to the OpenPisteMap expire_tiles.py ...
#include <include/Rede.h> //----- Constructors ------------------------------------------ Rede::Rede(uint numNeurons, uint numStep, uint transiente, double eps, double beta, double sig) : RedeBase(numNeurons, numStep, transiente, eps, beta, sig) { adjVetSize = 0; conectividadeMedia = 0.0; adjVet = NULL; m_contr...
/* ============================================================================ Copyright (c) 2011-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. ----------------- ViennaSHE - Th...
/// /// @file test.cpp /// @brief primesieve self tests (option: --test). /// /// Copyright (C) 2022 <NAME>, <<EMAIL>> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primesieve.hpp> #include <primesieve/ParallelSieve.hpp> #include <stdint....
/* TPC DA for online calibration Contact: <EMAIL>, <EMAIL> Link: Run Type: PHYSICS STANDALONE DAQ DA Type: MON Number of events needed: 500 Input Files: /castor/cern.ch/alice/raw/global/2009/08/22/11/09000080958023.30.root Output Files: tpcQA.root, to be exported to the DAQ FXS fileId: QA Trigger types used: PHYSICS...
#pragma once #include "cru/common/Base.hpp" #include "cru/platform/Base.hpp" #include "cru/common/String.hpp" #include "cru/common/Format.hpp" #include <cstdint> #include <optional> #include <string_view> #include <unordered_map> namespace cru::platform { struct CRU_PLATFORM_API Color { constexpr Color() : Color(0...
// Copyright 2021 SAMURAI TEAM. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include <samurai/box.hpp> #include <samurai/field.hpp> #include <samurai/hdf5.hpp> #include <samurai/amr/mesh.hpp> #include <samurai/algorithm/update.hpp> #inclu...
//===- ARCInstrInfo.cpp - ARC Instruction Information -----------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/**Kattis - stringmultimatching * Multiple string matching queries on a big string. We thus use a suffix array to avoid TLE. Using * our standard suffix array code, it is not too difficult. * * Time: O(n log n + q m log n), Space: O(n + m) */ #pragma GCC optimize("Ofast") #pragma GCC target("sse,sse2,sse3,ssse3,ss...
// Copyright 2006-2015 <NAME> (<EMAIL>). // // This file is part of the Carve CSG Library (http://carve-csg.com/) // // 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,...