text
stringlengths
3.08k
12.5k
// // Created by Chrim14 on 09.11.2017. // #include "Language.h" ///From: Settings::getLanguagePacket ///Function: create standar language pack for english settings void Language::setLanguage(json &language) { language["singleplayer"] = "Singleplayer"; language["multiplayer"] = "Multiplayer"; language["o...
/***************************************************************************** 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...
#include "path_common.h" #include "path_math.h" #include "path_car.h" #include "path_car_ai.h" #include "ros/ros.h" #include "std_msgs/String.h" #include "std_msgs/Bool.h" #include "race/drive_param.h" #include "sensor_msgs/LaserScan.h" #include <stdio.h> #include <vector> ros::Publisher DrivePublisher; ros::Subscribe...
#include "Player.hpp" #include "Settings.hpp" // the first vector is the number of the sprite (column), second is the delay or speed for each // vectors must be equal size! std::map<PlayerState, std::pair<std::vector<int>, std::vector<float>>> Player::animationMap = { {PlayerState::NONE, {{3, 1, 3, 2, 3},{baseSpeed...
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
#include "Engine.hpp" #include <iostream> #include <SDL2/SDL.h> #ifdef __EMSCRIPTEN__ #include <emscripten.h> #else #include <engine/render/vlk/VlkRenderer.hpp> #include <spdlog/sinks/rotating_file_sink.h> #endif #include <spdlog/sinks/stdout_color_sinks.h> #include <ExperimEngineConfig.h> #include <engine/render/...
// // Copyright (c) 2008-2020 the Urho3D project. // Copyright (c) 2022 the rbfx 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 limitati...
#include "pch.h" using namespace std; inline bool operator==(COORD a, COORD b) { return (a.X == b.X) && (a.Y == b.Y); } int main() { SetConsoleCP(1251); SetConsoleOutputCP(1251); uint period = 333; static const HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_CURSOR_INFO ccinf; ccinf.bVisible = FALSE;...
//===-- Core/IncludeExcludeInfo.cpp - IncludeExclude class impl -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* $Id: UIPopupPaneMessage.cpp $ */ /** @file * VBox Qt GUI - UIPopupPaneMessage class implementation. */ /* * Copyright (C) 2013-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribu...
/** \class L3MuonCandidateProducer * * Intermediate step in the L3 muons selection. * This class takes the L3 muons (which are reco::Tracks) * and creates the correspondent reco::RecoChargedCandidate. * * Riccardo's comment: * The separation between the L3MuonProducer and this class allows * the in...
#include <occa/defines.hpp> #include <occa/tools/sys.hpp> #include <occa/tools/testing.hpp> #include <occa/lang/primitive.hpp> void testInit(); void testLoad(); void testBadParsing(); void testToString(); int main(const int argc, const char **argv) { testInit(); testLoad(); testBadParsing(); testToString(); ...
// @file run-bfvrns.cpp - benchmark for BFVrns (it was used to generate Table 3 // in https://eprint.iacr.org/2018/117) // @author TPOC: <EMAIL> // // @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT) // All rights reserved. // Redistribution and use in source and binary forms, with or without //...
/* * gVirtuS -- A GPGPU transparent virtualization component. * * Copyright (C) 2009-2010 The University of Napoli Parthenope at Naples. * * This file is part of gVirtuS. * * gVirtuS is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
#include "core/engine.h" #ifdef EMSCRIPTEN #include <emscripten/emscripten.h> #endif #include <SDL.h> #include <SDL_image.h> #include <glm/vec3.hpp> #include <array> #include "easylogging++.h" Engine::Engine() : appName("undefined") { screenWidth = globals::SCREEN_WIDTH; screenHeight = globals::SCREEN_HEIG...
/* * .file advanced/spectra/shared_objects.cpp * .brief Implements a class wrapping shared (GL) objects. * * @author <NAME> * * Copyright 2012-2015 <NAME>. 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)...
//===-- TraceSessionFileParser.cpp ---------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------...
#include<iostream> #include"conio.h" using namespace std; char arr[50]; void menu() { cout<<"***************************************"<<endl; cout<<"************ (N*N game) ************"<<endl; cout<<"************ TIC TAC TOE ************"<<endl; cout<<"*************************************...
/* libs/graphics/effects/SkEmbossMask.cpp ** ** Copyright 2006, 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...
/* Copyright (c) 2007 <NAME>. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless require...
#include "vkapi.h" #include <nlohmann/json.hpp> #include <random> #include "base64.h" #include "uribuilder.h" #include <nlohmann/json.hpp> #include "uribuilder.h" #include <limits> #include <tuple> #include <spdlog/sinks/stdout_color_sinks.h> #include "oauth-exceptions.h" #include "spdlog/spdlog.h" #include "httpc...
/* * Copyright (c) 2008 Princeton University * 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 conditio...
#include "kinematic_solver.h" /* * KinematicFunctor class * */ AD<double> KinematicObjFunctionSet::CalculateCost(const ADvector &Vars) const{ AD<double> Cost = 0; for (size_t i = 0; i < N; ++i){ // minimize deviation from desired state Cost += 1000 * CppAD::pow(Vars[CTE_Idx+i ] - target_CTE, 2); ...
//------------------------------------------------------------------------------ // SoloudMOD.cc //------------------------------------------------------------------------------ #include "Pre.h" #include "Core/Main.h" #include "Core/Containers/StaticArray.h" #include "IO/IO.h" #include "HttpFS/HTTPFileSystem.h" #inclu...
////////////////////////////////////////////////////////////////////// // // EllipsoidGeometry.cpp - Implementation of the ellipsoid class // // Author: <NAME> // Date of Birth: May 7, 2004 // Tabs: 4 // Comments: // // License Information: Please see the attached LICENSE.TXT file // ///////////////////////////...
// Copyright (c) 2020 NVIDIA Corporation. All rights reserved. // This work is licensed under the NVIDIA Source Code License - Non-commercial. Full // text can be found in LICENSE.md //g++ glad/egl.c glad/gl.c egl.cpp -I glad -lpthread -ldl #include <stdio.h> #include <stdio.h> #include <stdlib.h> #include <string.h...
#include <string> #include <iostream> #include "StringVectorList.h" namespace CodeTestingSpace { bool DetectIfFunctionExists() { bool FunctionDetected = false; return FunctionDetected; } }; int main(int ConsoleParamNumber, char *CommandArgs []) { StringVectorList LoadedFile; if(ConsoleParamNumber == 2) { ...
#include <bits/stdc++.h> using namespace std; #define pb push_back #define all(x) (x).begin(), (x).end() #define sz(x) ((int)(x).size()) typedef vector<int> vi; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> pii; mt19937 mrand(random_device{}()); const ll mod = 1000000007; int rnd(int x) {...
// // Copyright (c) 2010-2017 Fabric Software Inc. All rights reserved. // #include "FabricUpgradeAttrCommand.h" #include "FabricSpliceConversion.h" #include <maya/MStringArray.h> #include <maya/MFnDependencyNode.h> #include <maya/MPlug.h> #include <maya/MSelectionList.h> #include <maya/MGlobal.h> #include <maya/MFnA...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
// // Copyright (C) 2017 // University Corporation for Atmospheric Research // All Rights Reserved // ////////////////////////////////////////////////////////////////////////// // // File: RenderEventRouter.cpp // // Author: <NAME> // National Center for Atmospheric Resear...
/* @@@LICENSE * * Copyright (c) 2008-2012 Hewlett-Packard Development Company, L.P. * * 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 * * Unl...
#include "igtlWebServerSocket.h" #include <iostream> #include <math.h> #include <cstdlib> #include <cstring> #include "igtlOSUtil.h" #include "igtlMessageHeader.h" #include "igtlImageMessage.h" #include "igtlServerSocket.h" #include "igtlTrackingDataMessage.h" #include "igtlMultiThreader.h" #include <fstream> #inclu...
/* +------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | https://www.mrpt.org/ | | | | Cop...
// Copyright 2016 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "core/fpdfapi/page/cpdf_color.h" #include "core/fpdfapi/page/cpdf_do...
/** * This file is part of the CernVM File System. */ #include <string> #include "cvmfs_config.h" #include "logging.h" #include "swissknife.h" #include "swissknife_check.h" #include "swissknife_gc.h" #include "swissknife_graft.h" #include "swissknife_hash.h" #include "swissknife_history.h" #include "swissknife_in...
/** * 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 <yoga/YGFloatOptional.h> #include <gtest/gtest.h> #include <yoga/YGFloatOptional.h> #include <yoga/Yoga.h> constexpr auto...
#include "textbox.hpp" class MEZO : public ABLAK // A mező amin valamelyik játékos áll vagy állhat. { public: MEZO(double x, double y, int szine) : ABLAK(x,y,33,33,650,szine*33+1,false) {}; void setter(istream& be); void addObj(OBJ *obj) {}; // Nem lehet hozzáadni újabb objektumokoat. }; void MEZO::setter(ist...
#include "pch.hpp" #include "WinAudioOut.hpp" #include "Core.hpp" #include "Log.hpp" #include "IEncoder.hpp" WinAudioOut::WinAudioOut() : mWav{} { CoInitializeEx( NULL, COINIT_MULTITHREADED ); HRESULT hr; ComPtr<IMMDeviceEnumerator> deviceEnumerator; hr = CoCreateInstance( __uuidof( MMDeviceEnumerator ), NU...
// -*- tab-width: 4; indent-tabs-mode: nil; -*- // vim: tabstop=4:softtabstop=4:expandtab:shiftwidth=4 // // $Id: dt.cpp 24625 2009-07-31 01:05:55Z unknown $ // // Copyright (c) 2008 <NAME> /***** This license governs use of the accompanying software. If you use the software, you accept this license. If you ...
/* * Copyright (c) 2017-2018, 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, modify, merge, p...
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; bool G[50][50]; int n; long long mod = 112901989; long long dp[51][51][2][2][2]; int lim; bool C[50]; long long go(int, int, b...
#include <fstream> #include <iostream> #include <math.h> #include <sstream> #include <stdio.h> #include <string> #include <vector> using namespace std; struct threadblock_info { bool initialized; unsigned tb_id_x, tb_id_y, tb_id_z; vector<vector<string>> warp_insts_array; threadblock_info() { ...
#include <vector> #include <cstdlib> #include <cmath> #include <iostream> #include <float.h> #include <TestReporterStdout.h> #include "UnitTest++.h" #include "hdf5.h" #include "state_evaluators_registration.hh" #include "VerboseObject_objs.hh" // This computes the L2 error norm for the given component in the output f...
/* ------------------------------------------------------------------ Copyright (c) 2011-2020 <NAME> email: <EMAIL> This code is distributed under the MIT License. Please see <root-path>/LICENSE for details. -------------------------------------------------------------- */ #include "pr2_heuristi...
/** *----------------------------------------------------------------------------- * Title : SMuRF Frame Statistics Module * ---------------------------------------------------------------------------- * File : FrameStatistics.cpp * Created : 2019-09-27 *------------------------------------...
// // Recorder - a GPS logger app for Windows Mobile // Copyright (C) 2006-2019 <NAME> // /// \file Receiver.cpp GPS receiver // #include "StdAfx.h" #include "Receiver.hpp" #include "SerialPort.hpp" #include "WorkerThread.hpp" #include <boost/bind.hpp> #include <boost/scoped_ptr.hpp> #ifdef _WIN32_WCE #include "Blueto...
// SPDX-License-Identifier: Apache-2.0 // // Copyright 2000-2014 <NAME> // Copyright 2004-2013 Gigablast, Inc. // Copyright 2013 Web Research Properties, LLC // // 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...
/****************************************************************************//* * Copyright (C) 2021 <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, includ...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. Y...
/* * Copyright 2015 Applied Research Center for Computer Networks * * 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 b...
#include "Logger.h" #include <IconsFontAwesome4.h> extern "C" { #include <lauxlib.h> } #define TAG "[LUA] " hc::Logger::Logger(Desktop* desktop) : View(desktop) {} bool hc::Logger::init() { static char const* actions[] = { ICON_FA_FILES_O " Copy", ICON_FA_FILE_O " Clear", NULL }...
#ifndef Q_MOC_RUN #include "Camera.h" #include <GL/gl.h> #include <stdio.h> #include <iostream> #define GLM_FORCE_RADIANS #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #endif using namespace tg; Camera::Camera() { m_intrinsic = glm::perspective<float>(45.0f * M_PI / 180.0f, 4.0f / 3.0f,...
// Copyright 2018 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/password_manager/password_manager_interactive_test_base.h" #include "base/strings/stringprintf.h" #include "content/public/test/...
/* Copyright 2013 <NAME> 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 of the License, or (at your option) any later version. This program is distributed in ...
#include "skybox.h" #include <QImage> #include <QVector4D> Skybox::Skybox() { } Skybox::~Skybox() { glDeleteTextures(1, &m_cubeTex); } void Skybox::init_skybox(){ //initialize OGLFunctions and test bool success =initializeOpenGLFunctions(); Q_ASSERT(success); Q_UNUSED(success); ...
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2009, Distributed Systems Architecture Group, Universidad */ /* Complutense de Madrid (dsa-research.org) */ /* ...
#include <qapplication.h> #include <qlayout.h> #include <qwt_plot.h> #include <qwt_plot_marker.h> #include <qwt_plot_curve.h> #include <qwt_legend.h> #include <qwt_point_data.h> #include <qwt_plot_canvas.h> #include <qwt_plot_panner.h> #include <qwt_plot_magnifier.h> #include <qwt_text.h> #include <qwt_symbol.h> #inclu...
void rsResoSplitFilter::processFrame(float inL, float inR, float* fltOutL, float* fltOutR, float* resOutL, float* resOutR) { rsFloat32x4 x(inL, inR, inL, inR); rsFloat32x4 y = ladder.getSample(x); *fltOutL = y[2]; *fltOutR = y[3]; *resOutL = y[0] - *fltOutL; *resOutR = y[1] - *fltOutR; } //============...
// Copyright 2020 The Fuchsia 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 <fuchsia/sys2/cpp/fidl.h> #include <lib/async-loop/cpp/loop.h> #include <lib/async-loop/default.h> #include <lib/fdio/directory.h> #include <lib/f...
#include <ros/ros.h> #include <octomap_msgs/conversions.h> #include <octomap_msgs/Octomap.h> #include <octomap/octomap.h> #include <octomap/OcTree.h> #include <octomap/OcTreeBase.h> #include <octomap/octomap_types.h> #include <tf/transform_datatypes.h> #include <dynamicEDT3D/dynamicEDTOctomap.h> #include <chrono> #incl...
// Copyright 2022 PingCAP, Ltd. // // 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 to i...
#include "check_zpool_free.h" namespace fs = std::filesystem; class Pool { public: std::string name, size, alloc, free, ckpoint, expandsz, frag, cap, dedup, health, altroot; }; class PoolArg { public: std::string name; double freePctW = 10, freePctC = 5; }; std::vector<PoolArg> poolArgs; PoolArg getPoolArg(std:...
/* * Copyright (c) 2009-2018, 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, modify, merge, p...
/* * Copyright (C) 2017 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 app...
// bdlma_defaultdeleter.t.cpp -*-C++-*- // ---------------------------------------------------------------------------- // NOTICE // // This component is not up to date with current BDE coding standards, and // should not be used as an example f...
/* The MIT License (MIT) Copyright (c) 2015 <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 limitation the rights to use, copy, modify, merge, publis...
/* * _____ * / _ \ * / _/ \ \ * / / \_/ \ * / \_/ _ \ ___ _ ___ ___ ____ ____ ___ _____ _ _ * \ / \_/ \ / / _\| | | __| / _ \ | ++ \ | ++ \ / _ \ |_ _|| | | | * \ \_/ \_/ / | | | | | ++ | |_| || ++ / | ++_/| |_| | | | | +-+ | * \ \_/ / | |_ | |_ | +...
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * ...
// ESP8266 Simple sniffer // 2018 Carve Systems LLC // <NAME> #include <Arduino.h> #include <ESP8266WiFi.h> #include "sdk_structs.h" #include "ieee80211_structs.h" #include "string_utils.h" extern "C" { #include "user_interface.h" } String TARGET = "00:00:00:00:00:00"; int chl = 11; #define TARGETMODE true //"XX:XX:...
/* *Author:GeneralSandman *Code:https://github.com/GeneralSandman/TinyWeb *E-mail:<EMAIL> *Web:www.dissigil.cn */ /*---XXX--- * **************************************** * */ #include <tiny_base/log.h> #include <tiny_base/configer.h> #include <tiny_core/clientpool.h> #include <tiny_core/eventloop.h> #include ...
/* MIT License Copyright(c) 2018-2019 megai2 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, modify, merge, publish, dist...
#include "osp_process.hpp" // set/get params code for class OspProcess /** * @brief Updates parameters * Called by OspParse. * @param group The group (beamforming, freping, etc) that has updates * @param channels 0=left, 1=right, 2=both * @return string "success" or "FAILED" */ std::string OspProcess::set_param...
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "TransformerCPC.h" #include "flashlight/fl/autograd/Functions.h" #include "flashlight/fl/contrib/modules/Transforme...
/* * Usage: ./send <systemCode> <unitCode> <command> * Command is 0 for OFF and 1 for ON */ #include "RCSwitch.h" #include <stdlib.h> #include <stdio.h> #include <string> #include <getopt.h> //#include <iostream> void printUsage() { printf("This is rasperry remote, an application to control remote plugs with t...
/* * FREConverters.cpp * This file is part of FRESteamWorks. * * Created by Ventero <http://github.com/Ventero> on 2014-04-09. * Copyright (c) 2012-2014 Level Up Labs, LLC. All rights reserved. */ /* * Functions to create FREObjects from native primitives. */ #include "FREConverters.h" #include <sstream>...
// Question: https://projecteuler.net/problem=165 // g++ problem165.cpp -O3 -std=c++17 // https://en.wikipedia.org/wiki/Line%E2%80%93line_intersection#Given_two_points_on_each_line #include<algorithm> #include<vector> #include<iostream> #include<numeric> #include<string> #include<unordered_set> #include<utility> us...
/* -*- mode: C++; indent-tabs-mode: nil; -*- * * This file is a part of LEMON, a generic C++ optimization library. * * Copyright (C) 2003-2010 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * * Permission to use, modify and distribut...
//========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: Miscellaneous code // //============================================================================= #include "stdafx.h" // memdbgon must be the last include file in a .cpp file!!! #include "tier0/memdbgon.h" //------------...
auto PPU::Line::renderBackground(PPU::IO::Background& self, uint source) -> void { if(!self.aboveEnable && !self.belowEnable) return; if(self.tileMode == TileMode::Mode7) return renderMode7(self, source); if(self.tileMode == TileMode::Inactive) return; array<bool[256]> windowAbove; array<bool[256]> windowBel...
#include "Integrator21Base.hh" #include "fmt/format.h" #include <iostream> #include <iterator> using namespace Eigen; using namespace std; Integrator21Base::Integrator21Base(size_t xbins, int xorders, double* xedges, int yorder, double ymin, double ymax) : GNAObjectBind1N<double>("hist", "f", "hist", 1, 0, 0), m_xor...
/******************************************************************************* + + LEDA 6.3 + + + dic_test.c + + + Copyright (c) 1995-2010 + by Algorithmic Solutions Software GmbH + All rights reserved. + *******************************************************************************/ #include <LEDA/core/di...
#include "test.h" #include <iostream> #include <vector> //TEst comment int NOCLASSFIELD; void globalMethod(){ int aVarInGlobalMethod = 100; } class TestRangeLoop { std::vector<int> vec; void testFun(){ vec.push_back( 10 ); vec.push_back( 20 ); for (int i : vec ) { ...
/** \file \author <NAME> */ #include "Camera.h" #include "RangeCamera.h" #include "StdBodyLoader.h" #include "StdBodyWriter.h" #include <cnoid/ValueTree> #include <cnoid/EigenUtil> #include <fmt/format.h> #include "gettext.h" using namespace std; using namespace cnoid; using fmt::format; const char* Camera::t...
/* * Copyright (c) 2004-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #inc...
// Copyright (c) 2021 LibreSprite Authors (cf. AUTHORS.md) // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #include <freetype2/ft2build.h> #include FT_FREETYPE_H #include <common/inject.hpp> #include <common/Parser.hpp> #include <common/Font.hpp> #include <log/L...
// Copyright (c) 2016, Toyota Research Institute. 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 co...
// Copyright 2020 <NAME> // // 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 #include "SportSensor.h" #include <stddef.h> #include "D...
// // PlaybackSegment.cpp - RAMDanceToolkit // // Copyright 2012-2013 YCAM InterLab, <NAME>, <NAME>, <NAME>, and <NAME> // // 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:/...
// Copyright 2006-2009 Google 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 ...
//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) 2020 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pow/aserti32d.h> #include <chain.h> #include <consensus/params.h> uint32_t GetNextASERTWorkRequired(const CBlockIndex *pinde...
/* * other/net_t.cpp * */ #include <cstring> // strncpy, memmove, strcmp #include "net_t.h" const int globals_updates_per_second = 15; const int globals_port_default = 22934; const int NETWORK_PROTOCOL_VERSION = 2, // enet change, gui rewrite NETWORK_TEXT_LENGTH = 300, NETWORK_PLAYERS_MAX ...
#include "DataFormats/L1CaloTrigger/interface/L1CaloRegion.h" using std::dec; using std::endl; using std::hex; using std::ostream; // default constructor L1CaloRegion::L1CaloRegion() : m_id(), m_data(0), m_bx(0) {} // constructor for RCT emulator (HB/HE regions) L1CaloRegion::L1CaloRegion( unsigned et, bool ov...
/* $Id: learn_generic.cpp 1429 2011-01-24 11:49:09Z davidpiegdon $ * vim: fdm=marker * * This file is part of libalf. * * libalf 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 o...
#include "main.h" int* MSG_ReadCount = nullptr; int* MSG_CurrentSize = nullptr; int* MSG_BadRead = nullptr; int MSG_SavedReadCount = 0; sizebuf_t* MSG_Buffer = nullptr; HL_MSG_ReadByte MSG_ReadByte = nullptr; HL_MSG_ReadShort MSG_ReadShort = nullptr; HL_MSG_ReadLong MSG_ReadLong = nullptr; HL_MSG_ReadFloat...
#include <unistd.h> #include <sys/time.h> #include <sys/types.h> #include <string> #include <map> #include <sstream> #include <iostream> #include <algorithm> #include <termios.h> #include <ros/ros.h> #include <std_msgs/Int32.h> #include <std_msgs/Float32MultiArray.h> #define BUF_LEN 1 #define STOP 9 #define FORWARD 1 ...
// $Id$ // // Copyright (C) 2016 <NAME>, <NAME> // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDBoost/python.h> #include <RDB...
#include "passes/Circuiter.h" void Circuiter::shorten(Module& module) { for (size_t i = 0; i < module.size(); i++) { Item& item = module[i]; switch (item.form) { case Item::FUNCTION: { Function& func = (Function&)item; shorten(func.block); } break; default: break; } } } void Circuiter::shorte...