text
stringlengths
5.71k
33.7k
/* * Copyright (c) 2013-2014 <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, publish...
/** Copyright 2017-2019 Red Anchor Trading Co. Ltd. Distributed under the Boost Software License, Version 1.0. See <http://www.boost.org/LICENSE_1_0.txt> */ #include <wright/configuration.hpp> #include <wright/exception.hpp> #include <wright/exec.capacity.hpp> #include <wright/exec.childproc.hpp> #incl...
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) DreamWorks Animation LLC // // All rights reserved. This software is distributed under the // Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ ) // // Redistributions of source code must retain the above copyrigh...
#include <stdio.h> #define GLAD_DEBUG #include <glad/glad.h> #include <GLFW/glfw3.h> #include <GL/glu.h> #include <imgui.h> #include <imgui_impl_glfw.h> #include <imgui_impl_opengl3.h> #include <stbi.h> #include <stb_image_write.h> GLFWwindow* window; char buffer[10*1024*1024]; const float quadTexCoordVerts[] = {0...
/* Training module for Charon */ #include "strategy.hpp" #include "powerset.hpp" #include "network.hpp" #include <iostream> #include <fstream> #include <cstdlib> #include <time.h> #include <map> #include <Python.h> #include <zonotope.h> #include <bayesopt/bayesopt.hpp> #ifdef TACC #include <mpi.h> #else #include <mpi...
#include "world.h" void set(Vec3 *vec, int x, int y, int z){ vec->x = x; vec->y = y; vec->z = z; } int equal(Vec3 *vec1, Vec3 *vec2){ //printf("Comparing %d,%d,%d and %d,%d,%d\n", vec1->x, vec1->y, vec1->z, vec2->x, vec2->y, vec2->z); if(vec1->x == vec2->x && vec1->y == vec2->y && vec1->z == vec2-...
// #define NDEBUG #include <cassert> #include <cmath> #include <cstdio> #include <cstring> #include <climits> #include <set> #include <vector> #include <algorithm> using namespace std; #ifndef NDEBUG #define DEBUG(fmt, ...) printf(fmt, __VA_ARGS__) #define DEBUG_PUTS(str) puts(str); #else #define DEBUG #define DEBU...
#include "glad/glad.h" #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include "glm/gtc/type_ptr.hpp" #include <GLFW/glfw3.h> #include <array> #include <hitobject/parse_hitobject.h> #include <iostream> #include <osu_reader/sliderpath.h> #include <osu_reader/string_stuff.h> void framebuffer_size_callba...
template <int Ix, int Iy, int Iz, // output int Jx, int Jy, int Jz> // input __forceinline static void Apply_Spoke(uint64_t base_offset, SIMD_Type f[3], Const_Array_Type u_x, Const_Array_Type u_y, Const_Array_Type u_z, ...
/* * Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the file license.txt. */ #in...
#include "AncestralRecombinationGraph.h" #include <memory> #include <random> #include <utility> #include <vector> #include "BlocksRange.h" #include "ParentPairUrn.h" #include "PopulationStructureHistory.h" using namespace std; template<typename T> vector<T> trim(vector<T>& v, long n) { return vector<T>(make_move_it...
/* * Copyright (c) 2003-2004, Karlsruhe University * * 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 conditions and th...
// Copyright 2021 <NAME> /// @file /// @brief Support for Kelan AC protocol. /// Both sending and decoding should be functional for models of series /// KELON ON/OFF 9000-12000. /// All features of the standard remote are implemented. /// /// @note Unsupported: /// - Explicit on/off due to AC unit limitations /// ...
#include "SDK.h" #include "Panels.h" #include "CDrawManager.h" #include "Client.h" #include "CMenu.h" //55 8B EC 81 EC ? ? ? ? 53 8B 5D 08 56 57 6A KeyValues::GetString CScreenSize gScreenSize; //================================================================================== void Debug(CBaseEntity* pLoca...
#include "HModel.h" #include "HConst.h" #include <cstdio> #include <cmath> HModel hmodel; const double HEMS_INF = 1e31; #ifdef __GNUC__ #define HEMS_API void #else #define HEMS_API extern "C" __declspec(dllexport) void __stdcall #endif HEMS_API hems_dsca(int *rtcod, double *dspace, int ndwords, int nmodel) { if...
/* 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...
/* Speculation tracking and mitigation (e.g. CVE 2017-5753) for AArch64. Copyright (C) 2018-2020 Free Software Foundation, Inc. Contributed by ARM Ltd. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published...
/* * 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")...
// CLASSIFICATION: UNCLASSIFIED /***************************************************************************/ /* RSC IDENTIFIER: NEW ZEALAND MAP GRID * * ABSTRACT * * This component provides conversions between Geodetic coordinates * (latitude and longitude) and New Zealand Map Grid coordinates * (east...
#ifdef MSVC #define _SCL_SECURE_NO_WARNINGS // for stx::btree in msvc build. #endif #include <libdariadb/flags.h> #include <libdariadb/storage/bloom_filter.h> #include <libdariadb/storage/manifest.h> #include <libdariadb/storage/pages/page.h> #include <libdariadb/storage/pages/page_manager.h> #include <libdariadb/stora...
#include <hdbscan/HDBSCAN_star.h> #include <math.h> #include <common/list.h> void ComputeHierarchyAndClusterTree( UndirectedGraph_C* mst, size_t min_cluster_size, bool compact_hierarchy, const Vector* const constraints, std::string hierarchy_output_file, std::string tree_output_file, const char...
#include "gripper.h" #include <sys/socket.h> #include <cstring> #include <netdb.h> #include <chrono> #include <iomanip> extern "C" __attribute__((visibility("default"))) Gripper* create_object() { Gripper* instance = new Gripper(); return instance; } extern "C" __attribute__((visibility("default"))) void destroy...
// evaluate.cpp: part of sequence tagger for Wordnet supersenses, and other tagsets // // Copyright 2006 <NAME> (<EMAIL>), <NAME> (<EMAIL>) // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the ...
/* NAME: NLinuxSystem.cpp DESCRIPTION: Linux system support. COPYRIGHT: Copyright (c) 2006-2013, refNum Software <http://www.refnum.com/> All rights reserved. Released under the terms of licence.html. __________________________________________________________________________ */ //======================...
#include "function_hook.h" #include <stddef.h> #include <stdio.h> #include <string.h> #include <algorithm> /* max, min */ #include <unistd.h> /* getpagesize */ #include <sys/mman.h> /* mmap */ #include "ZydisInstructionDecoder.hpp" #include "debug.h" #if defined __APPLE__ && defined __MACH__ /* Mac OS X */ #include <m...
// This file is part of the EXTERNAL IK for V-REP // // Copyright 2006-2015 Coppelia Robotics GmbH. All rights reserved. // <EMAIL> // www.coppeliarobotics.com // // The EXTERNAL IK is licensed under the terms of EITHER: // 1. EXTERNAL IK commercial license (contact us for details) // 2. EXTERNAL IK educ...
#include "LoboTetMesh.h" #include <igl/copyleft/tetgen/tetrahedralize.h> #include <igl/unproject_onto_mesh.h> #include <igl/project.h> #include <igl/barycentric_coordinates.h> #include <igl/in_element.h> #include <igl/AABB.h> #include "Functions/EigenMatrixIO.h" #include "Functions/computeTriangle.h" #include "Utils/g...
// file : liblava/resource/mesh.cpp // copyright : Copyright (c) 2018-present, Lava Block OÜ // license : MIT; see accompanying LICENSE file #include <liblava/resource/mesh.hpp> #ifndef LIBLAVA_ASSIMP #define LIBLAVA_ASSIMP 0 #endif #if LIBLAVA_ASSIMP #include <assimp/Importer.hpp> #include <assimp/cimport.h>...
#include "debugger.h" #include <string> #include <iostream> #include <csignal> #include "oxtra/logger/logger.h" #include "oxtra/dispatcher/dispatcher.h" debugger::DebuggerBatch::DebuggerBatch() { _adding_jump = false; } size_t debugger::DebuggerBatch::add(utils::riscv_instruction_t inst) { // add the jump to the d...
/******************************************************************** Copyright (c) 2010-2015, Regents of the University of Colorado 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 s...
/** * @file lilygo main.cpp * */ /********************* * INCLUDES *********************/ #include "config.h" #include <WiFi.h> #include <nmeaparser.h> NMEAParser parser; #define MAX30105_ADDRESS 0x57 #define PCF8563_ADDRESS 0x51 #define BMA423_ADDRESS 0x19 #define AXP202_ADDRESS 0x35 #define FT6206_ADDRESS...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
/* * CometOS --- a component-based, extensible, tiny operating system * for wireless networks * * Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted pr...
#include <phys-services/I3CrossSection.h> #include <array> #include <fstream> namespace{ double particleMass(I3Particle::ParticleType type){ I3Particle p(I3Particle::Null,type); if(!p.HasMass()){ log_debug_stream("Treating particle of type " << p.GetTypeString() << " with unknown mass as ma...
/*ETIENNE (づ。◕‿‿◕。)づ PENAULT */ #include "Graphe.hpp" #include "Road.hpp" #include <glad/glad.h> #include <GLFW/glfw3.h> #include "camera.hpp" #include "shader.hpp" /*WINDOW SIZE*/ const unsigned int SCR_WIDTH = 1600; const unsigned int SCR_HEIGHT = 900; void framebuffer_size_callback(GLFWwindow* window, int widt...
#include "stdafx.h" #include "tkFile/TkmFile.h" //法線スムージング。 class NormalSmoothing { private: struct SSmoothVertex { Vector3 newNormal = g_vec3Zero; TkmFile::SVertex* vertex = nullptr; }; struct SFace { Vector3 normal; std::vector<int> vertexNos; }; public: template <class IndexBuffer> void Execute(TkmF...
#include <dvtui.h> qreal DVTUI::getDevicePixelRatio() { qreal devicePixelRatio = 1.0; devicePixelRatio = ((QGuiApplication*)QCoreApplication::instance())->devicePixelRatio(); return devicePixelRatio; } QSize DVTUI::getToolbarIconSize() { QSize size = QSize(24,24); return size; } bool DVTUI::custo...
 #include "pch.h" #include "Hvy3DScene.h" #include "..\Common\DirectXHelper.h" using namespace Parallux; using namespace DirectX; using namespace Windows::Foundation; void Hvy3DScene::gv_CreateSamplerState() { // Sampler State Object for the Pixel Shader to render the Bitmap: D3D11_...
#include "AlmaVST.h" #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wmain" #include "IPlug_include_in_plug_src.h" #pragma clang diagnostic pop #include "IControl.h" #include "IKeyboardControl.h" #include "resource.h" #include <math.h> #include <algorithm> #include <functional> const int kNumProgram...
/* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 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; version 2 of the License. This program is distributed i...
#include "stdafx.h" #include "meta_reader.h" using namespace std; enum class meta_diff : int { same, removed, changed, child_changed, added }; bool print_diff(meta_diff diff) { switch (diff) { case meta_diff::same: /* wprintf_s(L" = "); return true;*/ return false; case meta_diff::removed: wprintf_s(L" ...
/***************************************************************************************** * SGCT * * Simple Graphics Cluster Toolkit * * ...
#include <cmath> #include <vector> #include <cstring> #include "B10_Standard_Ripper.h" using namespace std; using namespace WAV_Class; using namespace Rippers; #define TOLERANCE 0.15f #define bytesPerPulse(tstates) ((float)tstates*WAVSampleRate/Z80HZ) // Bytes per pulse for T-states parameter on a WAV frequency...
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* 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 "nsRDFConMemberTestNode.h...
/* * (C) 2006, 2007 <NAME> <<EMAIL>> * Copyright (c) 2003-2008 Novell, Inc. (All rights reserved) * Copyright 2009-2012 Canonical Ltd. * * The libapparmor library is licensed under the terms of the GNU * Lesser General Public License, version 2.1. Please see the file * COPYING.LGPL. * * This library is distrib...
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2010, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Re...
#include "nvme_manager.hpp" #include "smbus.hpp" #include <filesystem> #include <map> #include <nlohmann/json.hpp> #include <phosphor-logging/elog-errors.hpp> #include <phosphor-logging/log.hpp> #include <sdbusplus/message.hpp> #include <sstream> #include <string> #include <xyz/openbmc_project/Led/Physical/server.hpp...
//LatLong- OSGB conversion.cpp //Lat Long - OSGB, OSGB - Lat Long conversions #include <math.h> #include <stdio.h> #include <stdlib.h> #include "constants.h" #include "LatLong-OSGBconversion.h" #include <string> using namespace std; void LLtoOSGB(const double Lat, const double Long, long &OSGBEasting, long &OSG...
#include "Attack.h" Attack::Attack() { getRandomMac(mac); if (settings.getBeaconInterval()) { // 1s beacon interval beaconPacket[32] = 0xe8; beaconPacket[33] = 0x03; } else { // 100ms beacon interval beaconPacket[32] = 0x64; beaconPacket[33] = 0x00; } deauth.time = cu...
/************************************************************************* * Copyright(c) 1998-2020, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors a...
#include "geometry.h" using namespace std; /** POINT **/ XYZ::XYZ() { } XYZ::~XYZ() { } XYZ::XYZ(const XYZ *a) { r3[0] = a->r3[0]; r3[1] = a->r3[1]; r3[2] = a->r3[2]; } XYZ::XYZ(float x, float y, float z) { r3[0] = x; r3[1] = y; r3[2] = z; } void XYZ::normalize(void) { XYZ::normalize(1...
/* -*- mode: C++; indent-tabs-mode: nil; -*- * * This file is a part of LEMON, a generic C++ optimization library. * * Copyright (C) 2003-2013 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport * (Egervary Research Group on Combinatorial Optimization, EGRES). * * Permission to use, modify and distribut...
/* Copyright © 2017-2021 ABBYY Production 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 copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in ...
// // NeoSWSerial // Copyright (C) 2015-2017, SlashDevin // // NeoSWSerial 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. // // Neo...
/*--------------------------------------------------------------------------------------------------------------------*/ //Required libraries #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glew.h> #include <GL/glut.h> #include <IL/il.h> #endif /*-------------------------------------------...
#include "basicWorld.h" #include "entities.h" #include "characters.h" PhysicsSettings terrain; const std::array<std::string, 6> nightskyboxnames = { "night_right.png", "night_left.png", "night_top.png", "night_bottom.png", "night_front.png", "night_back.png" }; const std::array<std::string, 6> dayskyboxnames =...
/** * $Id: df1b2invcumdbeta.cpp 789 2010-10-05 01:01:09Z johnoel $ * * Author: Unknown */ #include <df1b2fun.h> #include <admodel.h> #include <df3fun.h> #include "df33fun.h" #define MAXIT 100 #define EPS 1.0e-9 //#define EPS 3.0e-7 #define FPMIN 1.0e-30 df1b2variable inv_cumd_beta_stable(const df1b2variable& a, ...
// Credit from ocornut's binary_to_compressed.cpp // Helper tool to turn a file into a C array, if you want to embed file data in your source code. // Usage: // binary_to_compressed_c.exe [-base85] [-nocompress] <inputfile> <symbolname> // Usage example: // # binary_to_compressed_c.exe myfont.ttf MyFont > myfont.c...
/* Copyright (c) 2018, Skolkovo Institute of Science and Technology (Skoltech) * * 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 * * U...
// This file contains member functions for interface class #include "NanoParticle.h" //defulat constructor body NanoParticle::NanoParticle(){} void NanoParticle::make_bins(){} // bin ions to get density profile for disk void NanoParticle::bin_ions(){} // compute initial density profile void NanoParticle::compute_i...
/* * 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 "NormalizeConstructor.h" #include "DexClass.h" #include "EditableCfgAdapter.h" #include "MethodReference.h" #include "Rea...
/* * Copyright 2019-2020 NVIDIA CORPORATION. * * 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...
#include <algorithm> #include "extdll.h" #include "util.h" #include "cbase.h" #include "player.h" #include "game.h" #include "spawnchooser.h" extern std::vector<CBaseEntity*> g_spawnPoints; extern std::vector<CBaseEntity*> g_spawnHistory; extern void SetupVisibility(edict_t *pViewEntity, edict_t *pClient, unsigned ...
// 2020.04.12 - <NAME> #pragma once #include <lvd/hash.hpp> #include "sept/core.hpp" #include "sept/NPTerm.hpp" namespace sept { // This is a sentinel value for use in the template parameters of NonParametricType_t to indicate that // no term instantiator should be made. struct TermNone { TermNone () = delete; ...
/* * Copyright 1993-2019 NVIDIA Corporation. All rights reserved. * * NOTICE TO LICENSEE: * * This source code and/or documentation ("Licensed Deliverables") are * subject to NVIDIA intellectual property rights under U.S. and * international Copyright laws. * * These Licensed Deliverables contained herein is ...
#include "Fuzzer/PatternAddressMapper.hpp" #include <algorithm> #include "GlobalDefines.hpp" #include "Utilities/Uuid.hpp" // initialize the bank_counter (static var) int PatternAddressMapper::bank_counter = 0; PatternAddressMapper::PatternAddressMapper() : instance_id(uuid::gen_uuid()) { /* NOLINT */ code_ji...
#include <algorithm> #include <chrono> #include <functional> #include <thread> #include "display.h" #include "display_params.h" #include "keyboard.h" #include "field_params.h" #include "maneuver.h" #define COLOR_WHITE al_map_rgb(255,255,255) #define COLOR_BLACK al_map_rgb(0,0,0) #define COLOR_LIME al_map_...
#pragma once #include "NullImplementation/NullFont.hpp" #include <BlackBox/Input/IInput.hpp> #include <BlackBox/Renderer/IFont.hpp> #include <BlackBox/Renderer/Texture.hpp> #include <BlackBox/ScriptSystem/IScriptSystem.hpp> #include <BlackBox/System/IConsole.hpp> #include <BlackBox/System/ILog.hpp> #include <list> #in...
/*************************************************************************** qgszonalstatistics.cpp - description ---------------------------- begin : August 29th, 2009 copyright : (C) 2009 by <NAME> email : marco...
/**/ #define _USE_MATH_DEFINES #include <string> #include <vector> #include <math.h> #include "sds_bar2.h" #include "asp_misc.h" using namespace std; using namespace asp; using namespace SDS; #ifdef WIN32 #include <float.h> #define isnan _isnan inline bool isinf(double x) { int c = _fpclass(x); ...
// This file is part of BOINC. // http://boinc.berkeley.edu // Copyright (C) 2019 University of California // // BOINC is free software; you can redistribute it and/or modify it // under the terms of the GNU Lesser General Public License // as published by the Free Software Foundation, // either version 3 of the Licens...
/********************************************************************** Swimming Pool Simulation Sept. 24th, 2002 This opengl sample was written by <NAME> Contact: <EMAIL> www.codecolony.de Every comment would be appreciated. If you want to use parts of any code of mine: let me know a...
#include "GARotorEstimator.h" #include "Multivector.h" #include <array> #include <iostream> using Eigen::Vector3d; using Eigen::Vector4d; using Eigen::Matrix3d; using Eigen::Matrix4d; using Eigen::Quaterniond; using std::vector; using std::array; /* a = H4 * e1 + H5 * e2 + H6 * e3 + H1 * e4; b = H5 *...
//####### Test module for Quantum Synchrotron core functions ################### //Define Module name #define BOOST_TEST_MODULE "phys/quantum_sync/core" //Include Boost unit tests library & library for floating point comparison #include <boost/test/unit_test.hpp> #include <boost/test/tools/floating_point_comparison....
#include "optionen.h" void OptionenClass::init() { } void OptionenClass::display() { if (_pageAt == 0) { //Border tft.fillScreen(backgroundColor); tft.drawRect(0, 0, 320, 240, strokeColor); tft.drawRect(1, 1, 319, 239, strokeColor); tft.drawRect(2, 2, 318, 238, strokeColor); //Gra...
#include "camera.hpp" #include <terminalpp/palette.hpp> #include <map> #include <math.h> #include <vector2d.hpp> static terminalpp::attribute darken_high_colour(terminalpp::high_colour col, double percentage) { auto const red_component = terminalpp::ansi::graphics::high_red_component(col.value_); auto const gr...
/// @file test_pyramid.cc /// @brief test pyramid /// @author <NAME> <<EMAIL>> /// @version 1.0 /// @date 2013-01-14 #include "horny_toad/verify.h" #include "horny_toad/pyramid.h" #include <algorithm> #include <fstream> #include <functional> #include <iomanip> #include <iostream> #include <stdexcept> using namespace ...
// // SPDX-License-Identifier: BSD-3-CLAUSE // // (C) Copyright 2018, Xilinx, Inc. // #include "interface.h" string g_output_layer_name; classifycpp::classifycpp(){ cout<< PFX << "C++ inferce object created" <<endl; } classifycpp::classifycpp(string xclbin_t, string dataDir_t, string netCfgFile_t, ...
/** This is free and unencumbered software released into the public domain. The authors of ISIS do not claim copyright on the contents of this file. For more details about the LICENSE terms and the AUTHORS, you will find files of those names at the top level of this repository. **/ /* SPDX-License-Identifier: CC0-1.0...
/* file "dep_node.cc" */ /* Copyright (c) 1994 Stanford University All rights reserved. This software is provided under the terms described in the "suif_copyright.h" include file. */ #include <suif_copyright.h> #define _MODULE_ "libdependence.a" #pragma implementation "dep_node.h" #include <cstdio> #...
/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * TestBPWriteTypes.c * * Created on: Aug 9, 2017 * Author: Haocheng */ #include <adios2_c.h> #ifdef ADIOS2_HAVE_MPI #include <mpi.h> #endif #include <gtest/gtest.h> #include "Smal...
// Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration /* * geoloader.cpp * * Author: <NAME> @ CERN * Created on: Jul, 2020 * */ #include "loader/headers/GeoLoaderQt.h" #include <Qt3DExtras/QCuboidMesh> // C++ includes #include <iostream> #include <fstream> #include <cstdlib> // EXIT_FA...
/* * Copyright 2020 Xilinx, 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...
/* cgVerifyThr.cpp - simple version CertGroupVerify test */ #include "testParams.h" #include <Security/cssm.h> #include <utilLib/common.h> #include <utilLib/cspwrap.h> #include <clAppUtils/clutils.h> #include <clAppUtils/tpUtils.h> #include <clAppUtils/timeStr.h> #include <stdio.h> #include <stdlib.h> #include <time.h...
#ifdef CH_LANG_CC /* * _______ __ * / ___/ / ___ __ _ / / ___ * / /__/ _ \/ _ \/ V \/ _ \/ _ \ * \___/_//_/\___/_/_/_/_.__/\___/ * Please refer to Copyright.txt, in Chombo's root directory. */ #endif #include <stdio.h> #include "Vector.H" #include "BoxIterator.H" #include "Pa...
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \___|\...
/* * Copyright (c) 2021-2022 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 * * U...
// Copyright (c) 2012-2013 The PPCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <pos/kernel.h> #include <chainparams.h> #include <db.h> #include <init.h> #include <policy/policy.h> #include <script...
/**************************** Gclust: For genomes clustering based on all Maximal Exact Matches or MEM extension between genome sequences. By <NAME> 2011.10.12 ****************************/ #include <iostream> #include <iomanip> #include <fstream> #include <vector> #include <getopt.h> #include <time.h> #include ...
#include "ExplicitCFD.h" #include "elementutilitiescfd.h" #include "ElementBase.h" #include <chrono> void ExplicitCFD::setSolver(int slv, int *parm, bool cIO) { prepareMatrixPattern(); calcMassMatrixForExplicitDynamics(); return; } int ExplicitCFD::prepareMatrixPattern() { ...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2021, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
#include "gentables.h" // std includes #include <array> #include <cassert> #include <fstream> #include <functional> #include <iostream> // Coordinate system // // y // | // | // | // 0-----x // / // / // z // // Cube Corners // Corners are voxels. Numbers correspond to Mort...
/*************************************************************************/ /* _winreg.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include "poses.h" #include "limbpose.h" #include "../core/core.h" // R, P, Y, X, Y, Z // Feet: Toes up(+) down(-) / ankles left(+) right(-) / twist left right / X / Y / Z // Hands: Arms up down / ? / ? / (X) / (Y) / (Z) // Invert for L/R: // Feet: No / Yes / Yes / Yes / No / No // Hands: No / ? / Yes / Yes / No ...
// ---------------------------------------------------------------------------- // // // SubWorld -- SubMarine Game // // Copyright (c) 2020, F.Lainard // Original author: F.Lainard // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files ...
// // GameUnit.cpp // PixFight // // Created by <NAME> on 07/01/2018. // Copyright © 2018 <NAME>. All rights reserved. // #include "GameUnit.hpp" #include "glTextureLoader.hpp" xVec2 unitoffset[5*6] = { //M_INFANTRY xVec2(0,0), xVec2(0,0), xVec2(0,0), xVec2(0,0), xVec2(0,0), xVec2(0,0)...
/* * Copyright 2021 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
#include "nn/train.hpp" #include "nn/mlp.hpp" #include "nn/nnintegrator.hpp" #include "evaluation/renderer.hpp" #include "evaluation/evaluation.hpp" #include "evaluation/stability.hpp" #include "heateqeval.hpp" #include <random> #include <chrono> using NetType = nn::Convolutional; static_assert((!std::is_same_v<NetTyp...
#include <stdlib.h> #include <math.h> #include <vector> #include <iostream> #include <fstream> #include <opencv/cv.h> #include <opencv/highgui.h> #include "LapVectorField.h" #ifdef _DEBUG #pragma comment(lib, "opencv_core246d.lib") ; #pragma comment(lib, "opencv_highgui246d.lib") ; #pragma comment(l...
#include <iostream> #include <string> #include <glad/glad.h> #include <GLFW/glfw3.h> #include <stb/stb_image.h> #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> #include "VAO.h" #include "VBO.h" #include "EBO.h" #include "Texture.h" #include "ShaderClass.h" #include "Camer...