text
stringlengths
3.08k
12.5k
#include "stdlib.h" #include "PcapFileDevice.h" #include "PcapLiveDeviceList.h" #include "PlatformSpecificUtils.h" #include "EthLayer.h" #include "IPv4Layer.h" #include "UdpLayer.h" #include "PayloadLayer.h" #include "QmetadataLayer.h" #include <arpa/inet.h> #include <iostream> #include <thread> #include <signal.h> #d...
/* * Copyright 2017 resin.io * * 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 in w...
#include "m3g/m3g.hpp" #include <GL/glut.h> #include <iostream> #include <vector> using namespace std; using namespace m3g; std::vector<Object3D*> objs; World* wld = NULL; CompositingMode* cmode = NULL; static void draw_string (int x, int y, const char* s) { while (*s) { glWindowPos2i (x+=8, y); g...
#ifndef _GNU_SOURCE #define _GNU_SOURCE // for MAP_ANONYMOUS #endif #include <cassert> #include <cstdlib> #include <cstdint> #include <iostream> #include <stdexcept> #include <system_error> #include <utility> #include <algorithm> #include <iterator> #include <errno.h> // for errno #include <unistd.h> // for sysc...
// this is a bit hacky #define private public #include "app.hpp" #include "window_factory.hpp" #undef private #include "config.hpp" #include "config_alarm.hpp" #include "event.hpp" #include "serializer_rapidjson.hpp" #include "window.hpp" #include "windowevent.hpp" #include <gtest/gtest.h> #include <list> // these ...
#include <iostream> #include <cstdlib> #include <chrono> #include "utilities/neural_network_utilities.hpp" void print_matrix (struct Matrix2 a) { std::cout << std::endl; std::cout << "["; for (int i=0; i<a.rows; i++) { std::cout << "["; for (int j=0; j<a.cols; j++) { ...
// Copyright (c) 2015, <NAME>. // Distributed under the BSD 2-Clause License (see LICENSE.txt for details) #include "SliderWnd.h" #include <windowsx.h> #include "../MeterWnd/Meters/SliderKnob.h" #define TIMER_IGNORE_INPUT 50 #define IGNORE_DURATION 100 SliderWnd::SliderWnd(LPCWSTR className, LPCWSTR title, HINSTAN...
// Note.cpp: implementation of the CNote class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "Note.h" #include "CryptRandom.h" CNote::CNote() { ATLTRACE(_T("CNote::CNote()\n")); // Set up default values m_strNoteText = EMPTY_STRING; m_strNoteRTF = EMPTY...
/* -*- mode:C++; c-basic-offset:4 -*- Shore-kits -- Benchmark implementations for Shore-MT Copyright (c) 2007-2009 Data Intensive Applications and Systems Labaratory (DIAS) Ecole Polytechnique Federale de Lausanne All Rights Reserved. ...
//Author: <NAME> //Ported for MSVC by: <NAME> // //Module name: SSCString.cpp //Comes with: the GLPoem screensaver tutorial hosted at nehe.gamedev.net //Copyright: see copyright.txt accompanying this source project //Bugs/questions/suggestions/ideas: <EMAIL> #include "SCString.h" #include "Main.h" //the default contr...
/** * @file CreateNetworkDefinitionUI.cpp * @author <NAME> * @date 2/27/2014 */ #include "CreateNetworkDefinitionUI.hpp" #include <core/Options.hpp> #include <ui/MessageDialog.hpp> #include <utilities/CursesUtilities.hpp> #include <ncurses.h> #include <string> /** * Write the log message when creating a...
#include "../hdr/ClientDriver.h" #include "../hdr/Environment.h" #include "../hdr/Client.h" constexpr unsigned int hash(const char *s, int off = 0) { return !s[off] ? 5381 : (hash(s, off+1)*33) ^ s[off]; } bool setup_env_with_conf(std::string cFilePath...
#include "gaussian_newton_method.h" #include "ros/ros.h" #include "tf/transform_listener.h" #include "sensor_msgs/LaserScan.h" #include "nav_msgs/Path.h" double GN_NormalizationAngle(double angle); class GaussianNewtonDebug { public: GaussianNewtonDebug() { m_laserscanSub = m_nh.subscribe("sick_scan"...
#include "simulation/ElementCommon.h" static int update(UPDATE_FUNC_ARGS); void Element::Element_ANT() { Identifier = "DEFAULT_PT_ANT"; Name = "ANT"; Colour = PIXPACK(0xD4C4BA); MenuVisible = 0; MenuSection = SC_ORGANIC; Enabled = 1; Advection = 0.1f; AirDrag = 0.09f * CFDS; AirLoss = 0.94f; Loss = 0.95f; ...
/*************************************************************************** main.cpp - description ------------------- begin : Sat Jul 6 11:27:50 PDT 2002 copyright : (C) 2002 by <NAME> email : <EMAIL> *****...
/* * Copyright (c) 2013, <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: * * Redistributions of source code must retain the above copyright * notice, this list of conditio...
/* Copyright (c) 2017, ARM Limited and Contributors * * SPDX-License-Identifier: MIT * * 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 ...
#include <iostream> #include <unistd.h> // for sleep() #include <time.h> // for nanosleep() #include <windows.h> #include "Text.h" const char BREAK_KEY = 0x71; // == q const char INCR_SPD_KEY = 0x69; // == i const char DECR_SPD_KEY = 0x64; // == d const char KEY_OFFSET = 0x20; using namespace std; Text::Text(strin...
#include "agcrc32enforcer.h" #include "hud.h" #include "cl_util.h" static char szDisconnect[] = "disconnect\n"; struct FILES { char* pszFile; WORD32 w32CheckSum; }; static FILES s_Files[] = { "gfx.wad", 1240178454, // "halflife.wad", 1657905259, "liquids.wad", 1067140096, "models/player/hgrunt/hgrunt.mdl...
#include "pcb.h" #include <dos.h> #include "thread.h" #include "list.h" #include "SCHEDULE.H" #include <iostream.h> #include "idle.h" #include "lock.h" #include "siglist.h" PCB * PCB::running = 0; List * PCB::PCBList = new List(); List * PCB::activePCBList = new List(); int PCB::Id = 0; int PCB::mainId =...
/* Circles Tested: AIZU */ // circle-circle intersection vector<point> intersect(circle C, circle D) { double d = abs(C.p - D.p); if (sign(d - C.r - D.r) > 0) return {}; // too far if (sign(d - abs(C.r - D.r)) < 0) return {}; // too close double a = (C.r*C.r - D.r*D.r + d*d) / (2*d); double h = sqrt(C.r*C...
#include "stdafx.h" #include "board.h" #include "dictionary.h" #include "cwcreator.h" #include <algorithm> #include <fstream> #include <sstream> using namespace std; // Will make the entire string in uppercase void cwcreator::uppercase_letterscw(string &word) { transform(word.begin(), word.end(), word.begin(), toup...
/* * Library for analog reflecting sensor as an enconder. * Rev 06/10/2018 */ #include <EncoderPair.h> EncoderPair::EncoderPair(const unsigned int left_pin, const unsigned int right_pin) { this->left_pin = left_pin; this->right_pin = right_pin; this->high_threshold_left = 512; this->high_threshold_right = 512; ...
// This example demonstrates the use of the TextInput functionality. // One can tab through, or click into the text fields and change it's contents. // At its most basic form, you only need to create a new TextInput instance and // pass it to your window via setTextInput. Until you call this function again, // passing...
/** how to see all log info. $ GLOG_logtostderr=1 ./t_log */ //To use glog, just include this #define SF1_TIME_CHECK 1 #include <boost/test/unit_test.hpp> #include <util/izene_log.h> //#include <nvwa/debug_new.h> #include <iomanip> #include <string> using namespace std; using namespa...
#include "software/ai/hl/stp/play/kickoff_enemy_play.h" #include "shared/constants.h" #include "shared/parameter/cpp_dynamic_parameters.h" #include "software/ai/evaluation/enemy_threat.h" #include "software/ai/evaluation/possession.h" #include "software/ai/hl/stp/tactic/move/move_tactic.h" #include "software/ai/hl/stp...
#include <mlpack/methods/linear_regression/linear_regression.hpp> #include <mlpack/prereqs.hpp> #include <mlpack/core.hpp> #include <mlpack/methods/ann/loss_functions/mean_squared_error.hpp> #include <mlpack/core/data/scaler_methods/min_max_scaler.hpp> #include <mlpack/methods/ann/layer/layer.hpp> #include <mlpack/core...
/* The MIT License (MIT) Copyright (c) 2018 <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, ...
#include "StdIOSocket.hpp" #include "Log/Log.hpp" #include "Exceptions/BaBLEException.hpp" using namespace std; StdIOSocket::StdIOSocket(uv_loop_t* loop, shared_ptr<AbstractFormat> format) : AbstractSocket(move(format)) { m_header_length = 4; m_payload_length = 0; m_header.reserve(m_header_length); m_poller ...
#include "core.h" #include "checkBox.h" #include "label.h" #include "path/path.h" #include "texture.h" #include "renderUtils.h" #include "mesh/primitive.h" CheckBox::CheckBox(std::string text, double x, double y, double width, double height, bool textured) : Component(x, y, width, height) { this->label = new Labe...
//Optimise #include <bits/stdc++.h> using namespace std; // #define multitest 1 // #define Debug #ifdef Debug #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); #define pc(...) PC(#__VA_ARGS__, __VA_ARGS__); template <typename T, typename U> ostream &operator<<(ostream &out, const pair<T, U> &p) { out << '[' << p.first <...
#pragma once ////////////////////////////////////////////////////////////// // Player // \brief Player. Can move in a circle around the screen // and shoot rockets towards the center // // \params PLAYER_SPEED // \see Game ///////////////////////////////////////////////////////////// #include "Player.hpp" #...
#include "usbEvent.h" #include "common.h" #include "cfile.h" #include "deelx.h" #include "clog.h" usbEvent::usbEvent() : sockid(-1) { sockid = initHotplugSock(); if(sockid < 0) { LOG_ERROR("create usbEvent fail"); } memset(usb_path_info, 0, sizeof(usb_path_info)); } usbEvent::~u...
// Filename: pnmPainter.cxx // Created by: drose (02Feb07) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should...
#include "uart.h" #include "vic.h" #include <nxp/iolpc2387.h> #include <stdio.h> #include <intrinsics.h> #include <assert.h> // ============================================================================ static uart_rx_callback callbacks[4] = { NULL, NULL, NULL, NULL }; //static volatile unsigned long* const iirRe...
#include <cassert> #include "BitPatternTreeNode.h" #include "ReversibleTreeNode.h" int globalErrorCode; char *errorCodeStrings[] = { "", "", "Error allocating memory for reversible tree indices", "Error loading network file", "Maximum number of reactions supported is 448", "Null pointer from malloc, increase MA...
#include "main.h" #include <cage-core/entitiesVisitor.h> #include <cage-core/math.h> #include <cage-core/timer.h> namespace { void visitorBasics() { CAGE_TESTCASE("visitor basics"); Holder<EntityManager> man = newEntityManager(); man->defineComponent(Vec3()); man->defineComponent(Real()); man->defineCom...
#include "Globals.h" #include <GL/glew.h> #include "SDL_opengl.h" #include "Application.h" #include "ModuleRenderer3D.h" #include "Dependencies/SDL\include\SDL_opengl.h" #include "imgui.h" #include "examples\imgui_impl_sdl.h" #include "examples\imgui_impl_opengl3.h" //GLuint vertexbuffer; ModuleRenderer3D::ModuleRend...
/* Copyright (C) 2021 <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 Unless required by applicable law or agreed to i...
#include "ComponentTransform.h" #include "Component.h" #include "Application.h" #include "ModuleInput.h" #include "GUIDGenerator.h" #include "GameObject.h" #include "Math/float4x4.h" #include "imgui.h" #include "Globals.h" #include "MemoryLeakDetector.h" ComponentTransform::ComponentTransform(float3 position, float3 ...
#include "imagehandler.h" // Using Papert contour following algorithm // http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.83.6509&rep=rep1&type=pdf // Part 2, Figure 2 // check if pixel black bool imageHandler::isPixelBlack(pixel pix){ return (img.pixelColor(pix.gety(), pix.getx()).red() == 0 && ...
#include "TestCommon.h" #include <cerrno> #include <pcap.h> const uint16_t kEthertypeIP4 = 0x0800; struct ethhdr { uint8_t smac[6]; uint8_t dmac[6]; uint16_t ethertype; }; using namespace IPFIX; static StructTemplate caftmpl; static int datalink; class CapfixReceiver : public SetReceiver { privat...
#include "Mouse.h" #include <iostream> #include <random> #include <cmath> void Mouse::Click(int button) { // Send a click message to the RuneScape client at // our current mouse coordinates with a delay before // we release the mouse. WParam must be set to // MK_LBUTTON (0x1) which marks that the left button // i...
#if defined(HAVE_CONFIG_H) #include "config.h" #endif #include "resip/stack/CSeqCategory.hxx" #include "resip/stack/UnknownParameter.hxx" #include "rutil/Data.hxx" #include "rutil/DnsUtil.hxx" #include "rutil/Logger.hxx" #include "rutil/ParseBuffer.hxx" //#include "rutil/WinLeakCheck.hxx" // not compatible with place...
#include "HX711_Driver.h" /* MIT License Copyright (c) 2018 <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, modi...
// // ggqr_lu.cpp // Generalized Gaussian Quadrature // // MIT License // // Copyright (c) 2017 <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 (c) 2006-2017, Universities Space Research Association (USRA). * 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 ...
//Optimise #include <bits/stdc++.h> using namespace std; // #define multitest 1 #ifdef WIN32 #define db(...) ZZ(#__VA_ARGS__, __VA_ARGS__); #define pc(...) PC(#__VA_ARGS__, __VA_ARGS__); template <typename T, typename U> ostream &operator<<(ostream &out, const pair<T, U> &p) { out << '[' << p.first << ", " << p.secon...
#include "blackjack/BlackboardNode.h" using namespace blackjack; #include "SixCatsLogger.h" #include "SixCatsLoggerMacro.h" #include <sstream> #include <cmath> // round USING_NS_CC; using namespace std; static const string dealerLabelText = "Dealer total: "; static const string dealerLabelTextHidden = "Dealer total...
/* Copyright (C) 2021 hidenorly 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 in wr...
/* * Lazy segment tree supporting an arbitrary monoid. * (See https://en.wikipedia.org/wiki/Monoid) * Range updates must be composable. * (See https://en.wikipedia.org/wiki/Semigroup_action) * Represented as a perfect binary tree, identity-initialized. * Root is 1. Parent of node i is i/2. Children of node i ...
// Copyright <NAME> 2018 - 2021. // Distributed under the Boost Software License, Version 1.0. // // writexsd.cpp - xsdgen #include "pch.h" #pragma hdrstop using namespace std; using namespace Dim; /**************************************************************************** * * Declarations * ***/ namespace { s...
/* ======================================================================= Copyright (c) 2011-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. ----------------- Vie...
#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), curFile("Diary.txt"), ui(new Ui::MainWindow) { ui->setupUi(this); createActions(); // INITIALIZATION TABS UserTab* YearTab = new UserTab("Year Goals"); UserTab* MonthTab =...
#include "code/utilities/program/call/lib.hpp" #include "code/utilities/program/common_actions/exits/lib.hpp" #include "code/utilities/program/call/process_spawn/process_spawner.hpp" #include "code/utilities/types/strings/observers/converting/lib.hpp" #include <iostream> //general system stuff //runs in the shell and...
#include "lagrange_polynomials.h" #include "vtk_io.h" #include "common.h" void create_annular_mesh(int elem_order, SwageMesh &mesh) { int Nd = 3; int Ne = 2; int Np = elem_order; int Nvd = Np + 1; int Nve = std::pow(Nvd, Nd); int Nv = Nve*Ne - Nvd*Nvd; NumType ri = 0.5; // 0.5*C/M_PI - 0.5*dr; Num...
////////////////////////////////////////////////////////////////////////////////////////////////// // // File: MyD3D.cpp // // Author: <NAME> (C) All Rights Reserved // // System: 3.20 GHz Intel® Core™ Quad CPU, a GeForce GT 770 graphics card, 4 GB RAM, Windows 7. // // Desc: Provides utility functions for simplifyi...
/*============================================================================= UnName.cpp: Unreal global name code. Copyright 1997-1999 Epic Games, Inc. All Rights Reserved. Revision history: * Created by <NAME> =============================================================================*/ #include "CorePrivat...
#include<bits/stdc++.h> using namespace std; #define D(x) cout << #x " = " <<(x) << endl #define MAX 100000 typedef long long int LL; struct Node{ int sum, label, value; Node *p, *pp, *l, *r; Node(){ p = pp = l = r = 0; sum = value = 0; } }; void update(Node *x){ x->sum = x...
//////////////////////////////////////////////////////////////////////////////// // -------------------------------------------------------------------------- // // // // (C) 2011-2013 <NAME> // // ...
#include "stdlib.h" #include "PfRingDevice.h" #include "PfRingDeviceList.h" #include "PlatformSpecificUtils.h" #include "EthLayer.h" #include "IPv4Layer.h" #include "UdpLayer.h" #include "PayloadLayer.h" #include "QmetadataLayer.h" #include <arpa/inet.h> #include <iostream> #include <thread> #include <signal.h> #defin...
/****************************************************************************** ** Copyright (C) 1998 by CEA ******************************************************************************* ** ** UNIT ** ** Version: %V% ** ** Author: 08/23/99 ** ** Date: 1.1 ** ** File: SP_Pca.cc *...
//////////////////////////////////////////////////////////////////////////// // 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...
//------------------------------------------------------------------------------ // Created : 06.08.21 // Author : <NAME> // Description : Import Spinnnaker-based capturer into project (see TMKDCL-380) //------------------------------------------------------------------------------ // // Created by victor ...
#include "sim/monitor.h" #include "sim/sampling.h" #include "sim/config.h" #include "sim/binarysampler.h" #include "arch/MGSystem.h" #include <ios> #include <iostream> #include <fstream> #include <iomanip> #include <cmath> #include <sys/time.h> #include <unistd.h> #ifdef CAN_USE_SIGMASK_ON_STD_THREAD #include <csigna...
// Simple development tests #include "craam/ImMDP.hpp" #include "craam/Simulation.hpp" #include "craam/Samples.hpp" #include "craam/algorithms/values.hpp" #include "rm/range.hpp" #include <iostream> #include <iterator> #include <random> #include <cmath> #include <cassert> #include <boost/functional/hash.hpp> #inclu...
#include <getopt.h> #include <glob.h> #include <iostream> #include "config.h" #include "cpu.h" #include "defines.h" #include "filesystem.h" #include "formatter.h" #include "gpu.h" #include "inet.h" #include "mem.h" #include "parse_size.h" #include "power.h" #include "thermal.h" #include "utils.h" string get_soc_fami...
#include <BuildingPlacer.h> BuildingPlacer::BuildingPlacer() { reserveMap.resize(BWAPI::Broodwar->mapWidth(), BWAPI::Broodwar->mapHeight()); reserveMap.setTo(false); this->buildDistance=1; } bool BuildingPlacer::canBuildHere(BWAPI::TilePosition position, BWAPI::UnitType type) const { //returns true if we can bu...
//===------ MemoryBuiltins.cpp - Identify calls to memory builtins --------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/** * This test ensures that the sketch application (for Elemental matrices) is * done correctly (on-the-fly matrix multiplication in the code is compared * to true matrix multiplication). * This test builds on the following assumptions: * * - El::Gemm returns the correct result, and * - the random...
/** * Copyright (C) 2019 Samsung Electronics Co., Ltd. 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 requ...
/* * ar_stack_node.cpp * * Created on: Apr 14, 2015 * Author: jon */ #include <ros/ros.h> #include "ohm_perception_msgs/QrArray.h" #include "ohm_perception_msgs/Qr.h" #include <visualization_msgs/MarkerArray.h> #include <visualization_msgs/Marker.h> #include <iostream> #include <fstream> using namespace ...
#include <iostream> #include <mpi.h> #include <string> #include "kmer_dump.hpp" #include "utils.hpp" #define READ_BUFFER_SIZE 100 #define PARTITION_COUNT 10 using std::cout; using std::endl; struct QueryKmerPartition { int size; int current_filled; hashmap_key_type **kmer_pointers; hashmap_value_type **kmer_...
// Copyright (c) 2015-2016 The Khronos Group 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 ...
#include "STEPaggrGeneric.h" #include "typeDescriptor.h" #include <sstream> /** \file STEPaggrGeneric.cc * implement classes GenericAggregate, GenericAggrNode */ GenericAggregate::GenericAggregate() { } GenericAggregate::~GenericAggregate() { } SingleLinkNode * GenericAggregate::NewNode() { return new Generic...
/* * 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 "src/gpu/GrAuditTrail.h" #include "src/gpu/ops/GrOp.h" #include "src/utils/SkJSONWriter.h" const int GrAuditTrail::kGrAuditTrailInvalidID = -1; void GrAuditTrail::a...
// client_handler.cpp,v 1.11 2000/03/19 20:09:23 jcej Exp /* Since this is the third time we've seen most of this, I'm going to strip out almost all of the comments that you've already seen. That way, you can concentrate on the new items. */ #include "client_acceptor.h" #include "client_handler.h" /*...
// // Created by <NAME> on 29.03.2018 // #include "server/asio/service.h" #include "server/asio/ssl_client.h" #include "benchmark/reporter_console.h" #include "system/cpu.h" #include "threads/thread.h" #include "time/timestamp.h" #include <atomic> #include <iostream> #include <vector> #include <OptionParser.h> usi...
#include "DNAFlatBuilding.h" #include "DNAWall.h" #include <decalEffect.h> #include <nodePathCollection.h> TypeHandle DNAFlatBuilding::_type_handle; int DNAFlatBuilding::current_wall_height = 0; DNAFlatBuilding::DNAFlatBuilding(const std::string& name): DNANode(name), m_width(0), ...
//////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2013 <NAME> // // SPDX-License-Identifier: BSL-1.0 // 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) //////////////...
// // Copyright 2021 Splunk 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 to i...
/* * * Copyright (c) 2020 Project CHIP 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...
/** @file @brief CUDA Sparse System Solution declarations LIBRARY DEPENDENCY: ((math/linear_algebra/CholeskyLdu.o) (math/linear_algebra/cuda/CudaIfUtils.o)) */ #include "CudaSparseSolve.hh" #include "software/exceptions/TsNumericalException.hh" #include <sstream> #include <cfloat> #include <cuda_runtime.h> #...
// Copyright 2013 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 "remoting/host/native_messaging/native_messaging_reader.h" #include <cstdint> #include <string> #include <utility> #include "base/bind.h" #incl...
#include "Round.h" #include "Action/Action.h" #include "Character/Character.h" #include "Item/Item.h" // call constructor to create a Round Object Round::Round() {} // adds an action to the list of added actions bool Round::add_action(Action* action) { if (action->doer->AP < action->get_action_APcost()) return fa...
/* * 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 ma...
#include "Loki.h" // nothing doing in the constructor and destructor Loki::Loki() {} void Loki::init(int x, int y) { _loki_sizex = 23; _loki_sizey = 26; _loki_x = x; _loki_y = y; // bubbles initialization _bubble_sizex = 9; _bubble_sizey = 9; _bubble1_x = WIDTH...
//MainWindow.h #include "ApplicationKit.h" #include "MainWindow.h" #include "DefaultMenuItem.h" #include "MenusApplication.h" #include "Command.h" #include "MenusAbout.h" using namespace VCF; /** *Lets make a simple class that demonstrates *customizing the drawing of menu items *We'll derive from ...
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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 ...
/* * librdkafka - Apache Kafka C library * * Copyright (c) 2014, <NAME> (librdkafka example I gratuitously stole from), <NAME> (techdays 2016 example) * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions...
#include "FEDataStructures.h" #include <iostream> #include <mpi.h> #include <stdlib.h> #include <vtkCPInputDataDescription.h> #include <vtkCellData.h> #include <vtkCellType.h> #include <vtkDoubleArray.h> #include <vtkExtentTranslator.h> #include <vtkImageData.h> #include <vtkNew.h> #include <vtkPointData.h> #include ...
/* ==================================================================== * The Vovida Software License, Version 1.0 * * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following...
// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008-2009 <NAME> <<EMAIL>> // // Eigen 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; eith...
#include <QByteArray> #include <QDebug> #include <QMap> #include <QPair> #include <QString> #include <QStringList> #include <QTcpServer> #include <QTcpSocket> #include <QTimer> #include <QUrl> #if QT_VERSION >= 0x050000 #include <QUrlQuery> #endif #include "o0globals.h" #include "o2replyserver.h" O2ReplyServer::O2Rep...
/* ------------------------------------- Credits ----------------------------------------------------------------- Generalized National Airspace Trajectory Simulation (GNATS) software 2017-2021 GNATS Development Team at Optimal Synthesis Inc. are: Team Lead, Software Architecture and Algorithms: Dr. <NAME> Algorithms a...
/*************************************************************** * * 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...
// <NAME>, Geometric Tools, Redmond WA 98052 // Copyright (c) 1998-2020 // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt // https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt // Version: 4.0.2020.09.28 #include <MathematicsGPU/GTMathematicsGPUPCH.h> #incl...
//------------------------------------------------------------------------------ // <copyright file="DepthBasics.cpp" company="Microsoft"> // Copyright (c) Microsoft Corporation. All rights reserved. // </copyright> //------------------------------------------------------------------------------ #include "stdafx...
#include <array> typedef uint32_t u32; typedef uint64_t u64; typedef unsigned char uchar; namespace strobf { template<u32 S, u32 A = 16807UL, u32 C = 0UL, u32 M = (1UL<<31)-1> struct LinearGenerator { static const u32 state = ((u64)S * A + C) % M; static const u32 value = state; typede...
#include "response.h" //************************ Response Object Constructors*********************// Response::Response(int id_, string url_, int target_sockfd_, int browser_fd_, bool is_get_, string server_) : id(id_), url(url_), target_sockfd(target_sockfd_), browser_fd(browser_fd_), is_...