text
stringlengths
3.08k
22k
/* * 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 ...
#include <iostream> #include<fstream> #include<string> #include <sstream> #include<iomanip> #include<stdlib.h> #include<stdio.h> #include<cmath> #include <stdc++.h> using namespace std; string tbstrmax[5000]; string tbpost1max[5000] [500]; string tbpost2max[5000] [500]; int tbstrmaxlimit=5000; int tbp...
#include "camera.h" #include "MySequence.h" #include "imgui.h" #define IMAPP_IMPL #include "glutil.h" #include "Win32Window.h" #include "ImGuiImplScreenState.h" #include "Renderer.h" #include "wgl.h" #include "ImGuizmo.h" #include <math.h> #include <vector> #include <algorithm> #include "imgui_internal.h" // // // ImGu...
/***************************************************************************** h6280.c - Portable HuC6280 emulator Copyright (c) 1999, 2000 <NAME>, <EMAIL> This source code is based (with permission!) on the 6502 emulator by <NAME>. It is released as part of the Mame emulator project. Let me know if yo...
#include "Cube.h" #include <QVector2D> #include <QVector3D> #include <QDebug> struct VertexData { QVector3D position; QVector2D texCoord; }; Cube::Cube(GLFuncName *func) : m_func(func) , m_indexBuf(QOpenGLBuffer::IndexBuffer) , m_vertexShader(QOpenGLShader::Vertex) , m_fragmentShader(QOpenGLShad...
//------------------------------------------------------------------------------ // Author: <NAME> (<EMAIL>) // Based on Eli's example. (<EMAIL>) //------------------------------------------------------------------------------ #include "clang/AST/AST.h" #include "clang/AST/ASTConsumer.h" #include "clang/Basic/SourceMan...
/* * CSCI3280 Introduction to Multimedia Systems * * --- Declaration --- * * I declare that the assignment here submitted is original except for source * material explicitly acknowledged. I also acknowledge that I am aware of * University policy and regulations on honesty in academic work, and of the * disciplinary gui...
#include <iostream> #include <imgui.h> #include "imgui_impl_sdl.h" #include "imgui_impl_opengl3.h" #include <SDL.h> #include <GL/gl3w.h> #include "DolphinReader/DolphinReader.h" #include <iostream> #include <fstream> #include <math.h> #include <string.h> #include <vector> #include <map> #include "helper.h" #includ...
/* 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 "androiddatamigration.h" #include "logger.h" #include "mozillavpn.h" #include "settingsholder.h" #includ...
/****************************************************************************** * HMDQ Tools - tools for VR headsets and other hardware introspection * * https://github.com/risa2000/hmdq * * * ...
// Copyright (c) <2016> <<NAME>, UNICA> // 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, distri...
#include <hxalignmicrotubules/HxComparePointMatchings.h> #include <QString> #include <cstdlib> #include <hxcore/HxMessage.h> #include <hxspatialgraph/internal/HierarchicalLabels.h> #include <hxspatialgraph/internal/HxSpatialGraph.h> #include <mclib/McMath.h> HX_INIT_CLASS(HxComparePointMatchings, HxCompModule); Hx...
// Using Code from Author: <NAME> #include <vector> #include <string> #include <iostream> #include <pthread.h> #include <chrono> #include <thread> #include <time.h> #include "../include/ProjectTest.h" #include "../include/Tests.h" #include <unistd.h> #include <stdlib.h> #include <stdio.h> #include <signal.h> #include ...
#include "shared.h" using namespace syslib; using namespace syslib::android; extern "C" { int main (...); } namespace { /* Константы */ const char* THREAD_NAME = "system.android.launcher"; //имя нити приложения const char* ENG...
#include <thread> #include <clp.h> #include "Rubis_bench.hh" #include "Rubis_txns.hh" #include "DB_profiler.hh" #include "clp.h" using db_params::constants; using db_params::db_params_id; using db_params::db_default_params; using db_params::db_default_commute_params; // TicToc requires node tracking for phantom prot...
#include "CommonTools/RecoAlgos/interface/PrimaryVertexAssignment.h" #include "DataFormats/ParticleFlowCandidate/interface/PFCandidate.h" #include "DataFormats/VertexReco/interface/Vertex.h" #include "TrackingTools/TransientTrack/interface/TransientTrackBuilder.h" #include "DataFormats/Math/interface/deltaR.h" #include...
#include <assert.h> #include <iostream> #include "type.h" #include "reloc.h" #include "writepkt.h" #include "wpkt_inst.h" #include "instance_iter.h" #include "struct_writer.h" #include "code_builder.h" #include "evalctx.h" #include "util.h" using namespace std; extern CodeBuilder *code_builder; extern symtab_map symta...
// Copyright 2010-2017 Google // 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 wri...
#include "QPMath.hpp" // #include "QPMath.h" #include "QPVector.hpp" #include "QPMatrix.hpp" #include "math.h" #include "iostream" double QPMath::Gaussian::Simple1D(double x, double integral, double mean, double sig...
/* * ofxBox2dPolygon.cpp * ofxBox2d * * Created by <NAME> on 1/14/11. * Copyright 2011 Interactive Design. All rights reserved. * */ #include "ofxBox2dPolygon.h" #include "ofxBox2dPolygonUtils.h" //---------------------------------------- ofxBox2dPolygon::ofxBox2dPolygon() { bIsTriangulated = false; bIs...
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmParseArgumentsCommand.h" #include <map> #include <set> #include <sstream> #include <stddef.h> #include <utility> #include "cmAlgorithms.h" #include "cmMakefil...
#include "linux_parser.h" #include <dirent.h> #include <unistd.h> #include <iostream> #include <stdexcept> #include <string> #include <vector> using std::stof; using std::string; using std::to_string; using std::vector; // DONE: An example of how to read data from the filesystem string LinuxParser::OperatingSystem(...
#include "math/math.h" //#define _USE_MATH_DEFINES //#include <cmath> #define M_PI 3.14159265358979323846 const float _dataI[] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }; const Mat4x4 Mat4x4::I(_dataI); const float _dataO[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
#include "bmptk.h" #include "gtest/gtest.h" #include "string20.hpp" int len( const char * s ){ return ( *s == '\0' ) ? 0 : 1 + len( s + 1 ); } bool equal( const string20 & lhs, const char *rhs ){ EXPECT_EQ( lhs.length(), len( rhs ) ) << "length"; if( lhs.length() != len( rhs )) return false; for( int i = ...
#include <iostream> #include "core/types.h" #include "core/shader.h" using namespace std; uint32_t g_screenWidth = 600; uint32_t g_screenHeight = 600; struct Particle { Vec2 x0,x1; Vec2 v0; }; Particle g_particle; FILE* g_file; int g_frame; bool g_step = false; bool g_pause = false; float sqr(float x) { return...
/* * File: first_follow.cpp * Author: apoorv * * Created on April 3rd 2012 */ /* * Take note of the consts used in grammars, these are hard coded * 1. "EPSILON" - stands for the empty string * 2. "$" - stands for the end marker * 3. "TERMINAL" - is the productionLeft when first() of some terminal is request...
#include <functional> #include <set> #include <string> #include <unordered_map> #include <vector> #include <map> #include <iostream> #include <unistd.h> #include <arpa/inet.h> #include <linux/ip.h> #include <string.h> #include <curses.h> #include <pcap.h> #include <term.h> #include <mysql.h> int win_time=1; void Clea...
// Copyright (C) 2004 Id Software, Inc. // #include "../precompiled.h" #pragma hdrstop #define POLYTOPE_VERTEX_EPSILON 0.1f /* ==================== idSurface_Polytope::FromPlanes ==================== */ void idSurface_Polytope::FromPlanes( const idPlane *planes, const int numPlanes ) { int i, j, k, *windingVerts;...
#include <stdint.h> #include <string> #include <vector> #include <list> #include <map> #include <unordered_map> #include <fstream> #include "zlib.h" #include "debug.hpp" #include "defines.hpp" #include "Config.hpp" #include "Ins.hpp" #include "Trace.hpp" #include "Request.hpp" #include "Response.hpp" #include "Mem_Inte...
#include <map_merge_3d/map_merge_node.h> #include <pcl_ros/point_cloud.h> #include <pcl/common/transforms.h> #include <ros/assert.h> #include <ros/console.h> #include <tf2_eigen/tf2_eigen.h> namespace map_merge_3d { MapMerge3d::MapMerge3d() : subscriptions_size_(0) { ros::NodeHandle private_nh("~"); std::string m...
/* * MIT License * * Copyright (c) 2021 Imperial College London * * 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 us...
/* Copyright ©1995-1996, <NAME> All rights reserved. File: CDepot.c Created: Wednesday, March 8, 1995, 06:01 Modified: Wednesday, August 14, 1996, 16:34 */ #include "CDepot.h" #include "CAbstractMissile.h" #include "CAvaraGame.h" #include "CBSPWorld.h" #include "CGrenade.h" #include "CMissile.h" ...
#include "rosbridge.h" #include <dbw_mkz_msgs/BrakeCmd.h> #include <dbw_mkz_msgs/SteeringCmd.h> #include <dbw_mkz_msgs/ThrottleCmd.h> #include <sensor_msgs/Image.h> #include <styx_msgs/TrafficLightArray.h> #include <ros/duration.h> #include <ros/time.h> #include <cv_bridge/cv_bridge.h> #include <tf/transform...
/** * @file * @author <NAME>, based on code by <NAME> <<EMAIL>> * @version 1.0 * * @section LICENSE * * Copyright [2012] [Carnegie Mellon University] * * 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 co...
// Runge-Kutta-Fehlberg method (RKF45) #include <cmath> #include <functional> #include <iostream> typedef double Real; typedef int Index; /* Butcher Tableau time | c -----+----- | 5 order | 4 order */ const Real tableau[8][7]{ { 0.0, 0.0, 0.0, 0.0, 0.0, ...
#include "spoa/spoa.hpp" #include <stdio.h> #include <iostream> #include <sstream> #include <iterator> #include <fstream> #include <iostream> #include <thread> #include <functional> #include <locale> #define ALIGNMENT_TYPE_GLOBAL 1 #define SCORE_M 5 #define SCORE_X -3 #define SCORE_G -9 #define ASCII_SIZE 128 #define ...
/** * 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 "fbmeshd/routing/SyncRoutes80211s.h" #include <sys/ioctl.h> #include <chrono> #include <folly/MacAddress.h> #include <...
#include "net.h" #include "ikcp.h" #ifdef _WIN32 #include <winsock2.h> #include <ws2tcpip.h> #include <iphlpapi.h> #include <Windows.h> #undef EINTR #undef EAGAIN #undef EWOULDBLOCK #define EINTR WSAEINTR #define EWOULDBLOCK WSAEWOULDBLOCK #define EAGAIN WSATRY_AGAIN #define socklen_t int #undef...
//============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk 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; ei...
/****************************************************************** * * Copyright 2016 Samsung Electronics 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 * ...
#include "common.h" int nX, nY; // number of x-axis and y-axis elements int N; // linear system dimension int i, k, n, m, step = 0, flag = 0; // counters and flags int *ig, *jg; // portrait double *gridX, *gridY; // x-axis and y-axis grids double *edges; // types of boundary conditions on four sides double *g...
/* * This source file is part of libRocket, the HTML/CSS Interface Middleware * * For the latest information, see http://www.librocket.com * * Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
// Copyright (c) Microsoft Corporation. // Copyright (c) 1999 <NAME>, <NAME>. // Copyright (c) 2000, 2001 <NAME>, <NAME>, <NAME>. // Licensed under the MIT license. #include "Node.h" #include "ITimer.h" #include "Message.h" #include "Message_tags.h" #include "Principal.h" #include "Time.h" #include "crypt.h" #include...
/*! \file log.cpp Implementation of syslog functions. */ #ifndef UNICODE #define UNICODE #endif #define _WINSOCK_DEPRECATED_NO_WARNINGS #include <mlib/log.h> #include <psapi.h> #include <mlib/trace.h> #include <stdio.h> #include <utf8/utf8.h> #ifdef _MSC_VER # pragma comment (lib, "psapi.lib") # pragma comment (l...
/* ************************************************************************ * Copyright 2020 Advanced Micro Devices, Inc. * ************************************************************************ */ #include "norm.hpp" #include "rocsolver_test.hpp" #include "rocsolver_arguments.hpp" #include "rocsolver.hpp" #includ...
#include "client.h" #include "connect-worker.h" static const int RESULT_BATCH_SIZE = 5; Nan::Persistent<v8::Function> Client::constructor; void Client::NoticeProcessor(void *arg, const char *message) { Client *client = static_cast<Client *>(arg); if (client->noticeProcessor_) { v8::Local<v8::Value> argv[] =...
#include "fat.hpp" #include <cassert> #include <fs/path.hpp> #include <cstring> #include <memory> //#define FS_PRINT(fmt, ...) printf(fmt, ##__VA_ARGS__) #define FS_PRINT(fmt, ...) /** **/ inline size_t roundup(size_t n, size_t multiple) { return ((n + multiple - 1) / multiple) * multiple; } inline bool iequal...
//===--- LexerTests.cpp -----------------------------------------*- C++ -*-===// // Part of the Sora project, licensed under the MIT license. // See LICENSE.txt in the project root for license information. // // Copyright (c) 2019 <NAME> //===----------------------------------------------------------------------===// ...
// // Created by <NAME> on 04.12.19. // /* Copyright (c) 2019 <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, mod...
//*-- Author : <NAME>(<EMAIL>) 27/10/2006 // // $Id: StCheckQtEnv.cxx,v 1.10 2010/02/26 01:23:06 fine Exp $ // This class sets the Qt/Root environment "on fly" and // generates the correct ROOT resource ".rootrc" file // also #include "StCheckQtEnv.h" #include "TSystem.h" #include "TApplication.h" #if ROOT_VERS...
// Modified by <NAME>, <EMAIL> // For companies(Austin,TX): If you would like to get my resume, send an email. // //****************************************************************************** // // Original version made by <NAME>, http://www.mvps.org/win32/ // // demonstrates getting the command line of anoth...
/* * Copyright (C) 2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include <level_zero/ze_api.h> #include "zello_common.h" #include <algorithm> #include <fstream> #include <iostream> #include <memory> #include <vector> extern bool verbose; bool verbose = false; #define imageIndex(buf, x, y, z, c...
/*-----------------------------------------------------------------------*/ /* MMC/SDSC/SDHC (in SPI mode) control module (C)ChaN, 2007 */ /*-----------------------------------------------------------------------*/ /* Only rcvr_spi(), xmit_spi(), disk_timerproc() and some macros are */ /* platform ...
// // Created by Harold on 2021/5/1. // #include <Eigen/Dense> #include <iostream> // 2D Zero-Order Gaussian Regression Filter // TODO: verify Eigen::MatrixXd RGR0_2D(Eigen::MatrixXd const& data, double lambdax = 0.25, double lambday = 0.25, double dx...
// OVIMGeneric.cpp: Generic Input Method, reads .cin // // Copyright (c) 2004-2008 The OpenVanilla Project (http://openvanilla.org) // 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...
#include "stdafx.h" #include "Alembic.h" #include "AlembicIntermediatePolyMesh3DSMax.h" #include "AlembicMetadataUtils.h" #include "AlembicPointsUtils.h" #include "AlembicPolyMsh.h" #include "AlembicXForm.h" #include "CommonMeshUtilities.h" #include "CommonSubtreeMerge.h" #include "SceneEnumProc.h" #include...
//===- QuantUtils.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 // //===---------------------------...
/* High Performance Astrophysical Reconstruction and Processing (HARP) (c) 2014-2015, The Regents of the University of California, through Lawrence Berkeley National Laboratory. See top level LICENSE file for details. */ #include <harp_internal.hpp> using namespace std; using namespace harp; spec_slice_re...
// // XXX mostly most of db stuff is duped from dialnaleznosci // #include <Box.h> #include <Button.h> #include <String.h> #include <StringView.h> #include <View.h> #include "santa/ColumnListView.h" #include "santa/CLVEasyItem.h" #include "globals.h" #include "dialnaleznosci.h" #include "dialnalodb.h" #include "fakd...
#include "S_Game.h" S_Game::S_Game(S_StateManager* stateManager, SDL_Renderer* renderer, C_Vec2 dimensions, C_Music* backgroundMusic) : S_State(stateManager, renderer, dimensions), mousePos(C_Vec2()), playerSprite(new C_Texture("Assets/Images/player699x436.png", renderer)), playerArcherSprite(new C_Texture("Asse...
#include "assert.hpp" #include <algorithm> #include <fstream> #include <iostream> #include <map> #include <optional> #include <streambuf> #include <string_view> #include <string> using namespace std::literals; void test_path_differentiation(); void custom_fail(assert_detail::assertion_printer& printer, assert_detai...
#include <gtest/gtest.h> #include <iostream> // for random #include <cstdlib> // for time() seed #include <ctime> #include "algorithm.h" #include "../fast_vector/fast_vector.h" TEST(algorithm_tests, max) { ASSERT_EQ(my::max( 10, 20), 20); ASSERT_EQ(my::max( 20, 10), 20); ASSERT_EQ(my::max( 10, 10),...
/// @file itemModel.hpp /// @brief Define item model variables and methods. /// @author <NAME> /// @date Mar 31 2015 /// @copyright /// Copyright (c) 2016 <NAME> <<EMAIL>> /// Permission is hereby granted, free of charge, to any person obtaining a /// copy of this software and associated documentation files (the "...
// Copyright 2008 by BBN Technologies Corp. // All Rights Reserved. #include "Generic/common/leak_detection.h" // This must be the first #include #include "Generic/driver/Stage.h" #include "Generic/common/UnexpectedInputException.h" #include "Generic/common/InternalInconsistencyException.h" #include <stdio....
// jhcFrontal.cpp : finds faces in head regions and checks if frontal // // Written by <NAME>, <EMAIL> // /////////////////////////////////////////////////////////////////////////// // // Copyright 2017-2020 IBM Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this fi...
// Copyright (C) 2018-2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "low_precision_transformer_single_layer_tests.hpp" #include "cpp_interfaces/interface/ie_internal_plugin_config.hpp" #include "common/validation.hpp" #include "tests_common_func.hpp" #include <cpp/ie_cnn_net_reader.h> TBlo...
// license:BSD-3-Clause // copyright-holders:<NAME> /**************************************************************************************** LUCKY 74 - WING CO.,LTD. ------------------------ *** VIDEO HARDWARE *** Written by <NAME>. Games running on this hardware: * Lucky 74 (bootleg, se...
#define BOIL_USE_STB_IMAGE #include "../boiler/boiler.h" #include <random> #include <vector> #include <utility> #include <iostream> std::string path_to_img; // Initialize a good random number generator. std::default_random_engine rng_source; // An image is a one-dimensional array of unsigned integers. However, a ...
/* ----------------------------------------------------------------------------------------------------------- Software License for The Fraunhofer FDK AAC Codec Library for Android ?Copyright 1995 - 2013 Fraunhofer-Gesellschaft zur F?derung der angewandten Forschung e.V. All rights reserved. 1. INTRODUCTION T...
// Copyright (c) 2020 kamyu. All rights reserved. /* * Google Code Jam 2020 Round 3 - Problem D. Recalculating * https://codingcompetitions.withgoogle.com/codejam/round/000000000019ff7e/00000000003775e9 * * Time: O(N^2 * logN) * Space: O(N^2) * * slower but more general in calculation of rect area * */ #inc...
//// // Compare with smiledetect.cpp sample provided with opencv //// #include "opencv2/objdetect.hpp" #include "opencv2/highgui.hpp" #include "opencv2/imgproc.hpp" #include <iostream> using namespace std; using namespace cv; static void help() { cout << "\nThis program demonstrates the smile detector.\n" ...
/* ks-action.c - OpenPGP keyserver actions * Copyright (C) 2011 Free Software Foundation, Inc. * Copyright (C) 2011, 2014 <NAME> * Copyright (C) 2015 g10 Code GmbH * * This file is part of GnuPG. * * GnuPG is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public Lic...
#include <iostream> #include <mutex> #include <boost/thread/thread.hpp> #include <boost/thread/tss.hpp> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/graphviz.hpp> #include <list> #include <tuple> #define LOOP 100000 #define BENCH_RUNS 5 using namespace std; using namespace boost; template <typenam...
/*************************************************************** * * 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 (c) 2017 Regents of the SIGNET lab, University of Padova. // 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 copyrigh...
#include <functional> #include <iostream> #include <spdlog/spdlog.h> #include <docopt/docopt.h> #include <thing.hpp> #include <parser.hpp> #include <algorithms.hpp> #include <ast.hpp> static constexpr auto USAGE = R"(parser Test. Usage: parser_test [options] Options: -h --help Sho...
#include "subsystems/DriveTrain.h" #include "commands/TeleOpDrive.h" #include <frc/smartdashboard/SendableBuilder.h> #include <cmath> #include <iostream> #include <iomanip> DriveTrain::DriveTrain(wpi::json &jsonConfig) : frc::Subsystem("DriveTrain") { # ifndef PROTOBOT // m_MotorRightFront.SetSmartCurrent...
/* 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 "StdAfx.h" #include "Mpeg2Decoder.h" extern "C" { extern vo_open_t vo_dxrgb_open; extern vo_open_t vo_dx_open; } CMpeg2Decoder::CMpeg2Decoder(void) { output = NULL; mpeg2dec = NULL; } CMpeg2Decoder::~CMpeg2Decoder(void) { FreeDatas(); } void CMpeg2Decoder::InitDatas(void) { ...
/* * cInitFile.cc * Avida * * Called "init_file.cc" prior to 12/7/05. * Copyright 1999-2011 Michigan State University. All rights reserved. * Copyright 1993-2003 California Institute of Technology. * * * This file is part of Avida. * * Avida is free software; you can redistribute it and/or modify it u...
#include "fight.h" #include "ui_fight.h" #include <QMessageBox> Fight::Fight(QWidget *parent) : QMainWindow(parent), ui(new Ui::Fight) { ui->setupUi(this); ui->label_giveOut->hide(); ui->comboBox_giveOut->hide(); ui->pushButton_select->hide(); connect(this,SIGNAL(setResult()),this->parent...
#include <cstdlib> #include <chrono> #include <iomanip> #include <fstream> #include <iostream> #include <fstream> #include <string> #include <time.h> #include <algorithm> #include <string.h> #include "mkl.h" #include <math.h> #include "configure.h" #include "mkl_spblas.h" #define SIGMOID(x) (1 / (1 + exp(-(x)))) #de...
#include <fstream> #include <sstream> #include <map> #include <cassert> #include "iclicker.h" #include "student.h" extern std::vector<std::string> ICLICKER_QUESTION_NAMES; extern float MAX_ICLICKER_TOTAL; std::vector<float> GLOBAL_earned_late_days; std::map<int,Date> LECTURE_DATE_CORRESPONDENCES; Student* GetStude...
/****************************************************************************** Copyright (C) 2013 by <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 version 2...
#include <cstdlib> #include <iterator> #include <fmt/core.h> #include <pybind11/stl.h> #include <cbag/common/box_t_util.h> #include <cbag/common/transformation_util.h> #include <cbag/util/math.h> #include <pybind11_generics/iterator.h> #include <pybag/bbox_array.h> #include <pybag/bbox_collection.h> #include <pyba...
/* * 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 * * Unless required by applicable law or agreed to in wr...
#include "buffers.h" #include "texture.h" void bindFrameBuffer(int frameBuffer, int width, int height) { glBindTexture(GL_TEXTURE_2D, 0);//To make sure the texture isn't bound glBindFramebuffer(GL_FRAMEBUFFER, frameBuffer); glViewport(0, 0, width, height); } void unbindCurrentFrameBuffer(int scrWidth, int scrHeight...
//----------------------------------------------------------------------------- // Application Core Library // Copyright (c) 2009-2012 <NAME>ing, LLC. // Portions Copyright (c) 2009 GarageGames, Inc. //----------------------------------------------------------------------------- #include "core/util/delegate.h" #includ...
//----------------------------------------------------------------------------- // MIT License // // Copyright (c) 2017 <NAME> // 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 dea...
/*! \mainpage daddy ServerEngine \section information 목적 - 컴포넌트식 네트워크 서버엔진 \section advanced 소개 - dd_binary.hpp/dBinary: 바이너리의 스마트한 데이터관리 - dd_detector.hpp/dDetector: logger랑 통신하는 로그클라이언트 - dd_escaper.hpp/dEscaper: 기존 객체개념을 탈출한 새로운 객체모델 - dd_global.hpp/dGlobal: 일괄적으로 On/Off가 가능한 글로벌인스턴스관리 - dd_...
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2016 ResiliNets, ITTC, University of Kansas * * This program 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 Foundation; ...
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/> * 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 2 of the License, or * (at your option) any later version....
#include <iostream> #include <vector> #include <string> #include <unordered_map> #include <fstream> #include <iterator> #include <sstream> #include <sys/types.h> #include <dirent.h> #include <errno.h> #include <algorithm> #include <cmath> #include <iomanip> #include <deque> #include "env.hh" using namesp...
#include <bits/stdc++.h> using namespace std; int MOD[] = {1000000007, 998244353, 998244853}; template <int ITH> struct modular { constexpr modular() : val(0){} constexpr modular(const modular& _m) : val(_m.val) {} template <typename U> constexpr modular(const U& _r = U()) { val = -MOD[ITH] <= _r...
//======================================================================= // Copyright (c) 2013-2020 <NAME>. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //======================================================================= ...
#include "IntroScene.h" #include "Application.h" #include "ModuleFadeToBlack.h" #include "ModuleTextures.h" #include "ModuleRender.h" #include "ModuleAudio.h" #include "ModuleInput.h" #include "ModulePlayer.h" #include "ModuleFonts.h" #include "ModuleCollisions.h" #include "ModuleEnemies.h" #include <SDL\include\S...
/* Spike is universal dedicated module handler This souce contains data output context Part of PreCore project Copyright 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 Li...
#include "MergeCoplanarFacets.h" pointVector get_facetPoints(Polyhedron::Halfedge_handle& heH) { Polyhedron::Facet::Halfedge_around_facet_circulator itHDS = heH->facet_begin(); // same as just heH? pointVector facetPnts; do facetPnts.push_back(itHDS->vertex()->point()); while (++itHDS != heH->facet_begin()); ret...
#include "../common/cephes.h" #include "../Test.h" /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * O V <NAME> T E M <NAME> T E T E S T * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ static double Pr(int u, double eta) { int l; double sum, p; if (u...
//===- RealmABI.cpp - Lower Tapir into Realm runtime system calls -----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------------------...