text stringlengths 8.71k 38.4k |
|---|
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Utility for manipulating Google Binary Block (GBB)
//
#include <assert.h>
#include <getopt.h>
#include <stdint.h>
#include <stdio.h>
#include... |
#include "L1Trigger/L1TMuonBarrel/interface/L1TMuonBarrelParamsHelper.h"
void L1TMuonBarrelParamsHelper::print(std::ostream& out) const {
out << "L1 BMTF Parameters" << std::endl;
out << "Firmware version: " << fwVersion_ << std::endl;
}
L1TMuonBarrelParamsHelper::L1TMuonBarrelParamsHelper(const L1TMuonBarrelPa... |
/**
* @file This file is part of MeshGen.
*
* @section LICENSE
* 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, inc... |
#include <iostream>
#include <ctime>
#include <cstring>
#include <fstream>
#include <random>
uint8_t sbox[256] = {
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5,
0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76,
0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0,
0xad, 0xd4, 0xa2, 0xaf, 0x9c... |
#include "Game.h"
#include "TextureManager.h"
#include "FileUtils.h"
#include "Constants.h"
#include "MapData.h"
#include "Map.h"
#include "Computer.h"
#include "Tile.h"
#include "Player.h"
#include "EntityManager.h"
#include "GameInfoBar.h"
#include <iostream>
#include <sstream>
#include <algorithm>
#include <ctime>... |
#include <iostream>
#include <xfinal.hpp>
using namespace xfinal;
class Test {
public:
bool before(request& req, response& res) {
std::cout << "pre process aop 1" << std::endl;
std::shared_ptr<std::string> data{ new std::string("a") };
req.set_user_data("tag", data);
//res.write_string("aop1 stop");
return t... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: ColorParse.h */
/* DATE: Aug 19th 2006 ... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and r... |
#include "cNivel.h"
#include "cEnemigo.h"
#include <gl/glut.h>
int jefe2Mov[8][4] = {
{ 262, 2, 256, 140 },
{ 2, 2, 256, 140 },
{ 262, 145, 256, 140 },
{ 2, 145, 256, 140 },
{ 262, 288, 256, 140 },
{ 2, 288, 256, 140 },
{ 262, 431, 256, 140 },
{ 2, 431, 256, 140 }
};
int jefe2Explo[9][4] = {
{ 1, 38, 64, 5... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... |
#include <algorithm>
#include <vector>
#include <SDL2/SDL.h>
#include "rasterizer.h"
#include "renderer.h"
#include "main.h"
#include "common.h"
#include <vector>
#include <assert.h>
using glm::vec2;
using glm::vec3;
using glm::vec4;
using glm::mat4;
using std::min;
using std::max;
using glm::normalize;
using glm::cla... |
/******************************************
*
* This is a part of CTPPSDQM software.
* Authors:
* <NAME>
* <NAME> (<EMAIL>)
*
*******************************************/
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/Event.... |
/**************************************************************************
* Definition of the members of the JLP_GDev class (Image/Curve Graphic Devices)
* used in my plotting package
*
* JLP
* Version 13/02/2017
**************************************************************************/
#include <stdio.h>
#include <... |
//===-cPerf.cpp - Linux perf.data parsing ---------------------------------===//
//
// 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
//
//===---------------------------... |
/* Kernel includes. */
#include "FreeRTOS.h"
#include "queue.h"
#include "semphr.h"
#include "task.h"
#include "timers.h"
/* System Libraries */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Board Libraries */
#include "hardware/gpio.h"
#include "pico/stdlib.h"
#include "pico/bootrom.h"
#include "hard... |
/*
* 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 ... |
#include "Terrain.hpp"
#include "resources/ResourcesManager.hpp"
#include "graphics/GPU.hpp"
#include "graphics/ScreenQuad.hpp"
Terrain::Cell::Cell(uint l, uint x, uint z) : mesh("Cell (" + std::to_string(l) + "," + std::to_string(x) + "," + std::to_string(z) + ")"), level(l) {
}
Terrain::Terrain(uint resolution, uin... |
/****************************************************************************
**
** Copyright (C) 2014-2015 Canonical, Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
** Licensees holding valid commercial Q... |
//
// Created by sigsegv on 4/25/22.
//
#include "ext2fs.h"
#include <blockdevs/blockdev.h>
#include <cstring>
#include <strings.h>
#include <iostream>
#include "ext2fs/ext2struct.h"
ext2fs::ext2fs(std::shared_ptr<blockdev> bdev) : blockdev_filesystem(bdev), mtx(), superblock(), groups(), inodes(), BlockSize(0) {
... |
#include "Engine/Input/KeyCode.hpp"
#include "Engine/Platform/Win.hpp"
unsigned char ConvertKeyCodeToWinVK(const KeyCode& code) noexcept {
switch(code) {
case KeyCode::LButton: return VK_LBUTTON;
case KeyCode::RButton: return VK_RBUTTON;
case KeyCode::Cancel: return VK_CANCEL;
case KeyCode::MButto... |
//<NAME>
//CS163 - Program 4
//February 23 - March 7, 2019
//Functions of Program 4 can be grouped into
//two categories: tree member functions and
//term member functions.
//Term member functions include two each for
//comparing and copying terms (one from a word
//and one from a term object), two for displaying
//t... |
/**
* Copyright (c) 2020, mll <<EMAIL> at <EMAIL> dot <EMAIL>>
* All rights reserved.
*/
#include <stdio.h>
#include <sys/stat.h>
#include <libgen.h>
#include <dirent.h>
#include "antlr4-runtime.h"
#include "AVisitor.h"
#include "json/json.h"
#include "Helper.h"
#include "version.h"
#include "Protobuf3Parser.h"
#inc... |
#include "loader.h"
#include "common_funcs.h"
//#include "// ETimer.h"
//Loader::Loader(const char * f_indices_file_name, const char * f_dists_file_name){
Loader::Loader(const std::string &f_indices_file_name, const std::string &f_dists_file_name){
f_indices_name_ = f_indices_file_name.c_str();
f_dists_name... |
// Copyright 2012 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/licenses/LICENSE-2.0
//
// Unless required by applicable... |
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
*
* This product contains software technology licensed from Id
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc.
* All Rights Reserved.
*
****/
//
// write.c: writes a studio .mdl file
//
#pragma warning( disable : 4244... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/Ui/INPUTBOX.cpp $
* $Revision: 307 $
* $Da... |
/*
* Copyright (C) 2016 Southern Storm Software, Pty Ltd.
*
* 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, ... |
/****************************************************************/
/* Parallel Combinatorial BLAS Library (for Graph Computations) */
/* version 1.2 -------------------------------------------------*/
/* date: 10/06/2011 --------------------------------------------*/
/* authors: <NAME> (<EMAIL>), <NAME> --------*/
/***... |
#include<iostream>
#include<fstream>
#include<string>
#include<algorithm>
#include<ctime>
#include "Vector.h"
#include "Stack.h"
#include "Queue.h"
#include "Qu.h"
using namespace std;
//Function that prints the available commands
void command_help(){
cout<<"\nList of available Commands:"<<endl
<<"pwd... |
#include "lin_time.h"
#include "networking/lowlevel/vsnet_debug.h"
#include "networking/client.h"
#include "networking/netclient.h"
#include "networking/lowlevel/netbuffer.h"
#include "networking/zonemgr.h"
#include "networking/lowlevel/packet.h"
#include "networking/lowlevel/vsnet_clientstate.h"
#include "cmd/unit_gen... |
/**
Last name: Chen First name: Xinlei
Section: LBL A2(60696)
Partner: <NAME>
Project Title: Lighting
*/
#include <Arduino.h>
#include <Adafruit_GFX.h> // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
#include <SPI.h>
#include <math.h>
// standard U of A library setting... |
/* greedy_louvain.cpp
* Copyright (C) (2011) <NAME>, <NAME>, <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later vers... |
#include "Python.h"
#include "pytowr.h"
#include "stdio.h"
#include "math.h"
PyObject* eigenwrapper(Eigen::Vector3d a)
{
return Py_BuildValue("(ddd)",a(0),a(1),a(2));
}
/* int divide(int, int, int *) */
static PyObject *py_sample_run(PyObject *self, PyObject *args) {
int a, b;
if (!PyArg_ParseTuple(args, "ii",... |
// BugReporterVisitors.cpp - Helpers for reporting bugs -----------*- C++ -*--//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===- BufferDeallocation.cpp - the impl for buffer deallocation ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <errno.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h> // for opendir()
#include <dirent.h> // for opendir()
#include <time.h> // for time()
#include <ctype.h>
#include <sys/socket.h> // inet_ntoa()
#include <netinet/in.h> // ine... |
/* rpoly.cpp -- Jenkins-Traub real polynomial root finder.
*
* (C) 2002, <NAME>. All rights reserved.
*
* Translation of TOMS493 from FORTRAN to C. This
* implementation of Jenkins-Traub partially adapts
* the original code to a C environment by restruction
* many of the 'goto' con... |
#include "p2Defs.h"
#include "p2Log.h"
#include "j1Player.h"
#include "p2List.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1Input.h"
#include "j1Map.h"
//#include "SDL\include\SDL_timer.h"
#include "j1Collision.h"
#include "SDL_image/include/SDL_image.h"
#pragma comment( lib, "SDL_image/libx86/SDL2_image.lib... |
/* Implementation of EXPIRE (keys with fixed time to live).
*
* ----------------------------------------------------------------------------
*
* Copyright (c) 2009-2016, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "fastmath.h"
#include "Vec2.h"
#include "Vec3.h"
#include "Besier.h"
#include "Solids.h"
#include "grids2D.h"
#include "TerrainSimplex.h"
#include "Draw.h"
#inc... |
#include "dataObjPut.h"
#include "dataObjRepl.h"
#include "dataObjUnlink.h"
#include "dataPut.h"
#include "filePut.h"
#include "getRemoteZoneResc.h"
#include "icatHighLevelRoutines.hpp"
#include "modDataObjMeta.h"
#include "objMetaOpr.hpp"
#include "physPath.hpp"
#include "rcGlobalExtern.h"
#include "regDataObj.h"
#in... |
#include <iomanip>
#include <iostream>
#include <limits>
#include <cuda.h>
#include <cuda/api_wrappers.h>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet... |
/*
** IkIndexDebug : module for tracing linguistic processing and performance
*/
#ifdef AIX
#else
#include <chrono>
#endif
#include <sstream>
#include "IkIndexDebug.h"
#include "IkStringEncoding.h"
#include "IkLexrep.h"
#include "IkMergedLexrep.h"
#include "IkRuleInputPattern.h"
#include "IkRuleOutputPattern.h"
using... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// STL
#include <cmath>
#include <vector>
#include <iostream>
// GL
#include <GL/glew.h>
// GLFW
#include <GLFW/glfw3.h>
// ImGui
#include <imgui.h>
#include <i... |
#include "alfe/main.h"
#include "alfe/bitmap_png.h"
#include "alfe/terminal6.h"
#include "alfe/complex.h"
class Slider
{
public:
Slider() { }
Slider(double low, double high, double initial, String caption, double* p, int max = 512)
: _low(low), _high(high), _caption(caption), _p(p), _max(max)
{
... |
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include "RscpProtocol.h"
#include "RscpTags.h"
#include "RscpMqttMapping.h"
#include "RscpMqttConfig.h"
#include "SocketConnection.h"
#include "AES.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <mosquitto.h>
#define AES_KEY_SIZE ... |
//============================================================================
//
// SSSS tt lll lll
// SS SS tt ll ll
// SS tttttt eeee ll ll aaaa
// SSSS tt ee ee ll ll aa
// SS tt eeeeee ll ll aaaaa -- "An Atari 2600 VCS Emula... |
/* SPDX-License-Identifier: BSD-2-Clause-Patent
*
* Copyright (c) 2016-2019 Intel Corporation
*
* This code is subject to the terms of the BSD+Patent license.
* See LICENSE file for more details.
*/
#include <mapf/transport/ieee1905_transport.h>
#include <arpa/inet.h>
#include <chrono>
#ifndef ETHER_IS_MULTICA... |
/*
Copyright 2010 <NAME> and the other authors and contributors.
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, t... |
#include <vector>
#include <iostream>
#include <fstream>
#include <cmath>
#include <string.h>
//include header file for glfw library so that we can use OpenGL
#include <GLFW/glfw3.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#ifdef _WIN32
static DWORD lastTime;
#else
static struct timeva... |
#include <iostream>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <bullet/btBulletDynamicsCommon.h>
#include "../lib/Initialization.h"
#include "../lib/Texture.h"
#include "../lib/Shader.h... |
#include "ofApp.h"
#define MAX_CAMERA_DISTANCE 500.0f
//--------------------------------------------------------------
void ofApp::setup() {
ofSetFrameRate(60);
//ofSetWindowPosition(1920, 25);
//--
// Parameters
bEnable1.set("bEnable1", false);
bEnable2.set("bEnable2", false);
bEnable3.set("bEnable3", fals... |
int
J4s, HB30/*4n*/,PR//GNv
,fS
, N7/*rDT*/,A3wk ,JL3C
,yRQuw , iU
, Q
/*iE0ZV*/, dK/*Fz*/,Ut, mfR
, bkWr,
Gi ,dJ,
XpN/*wp8c*/,//1rVf4
Wz
, flC
, Xvio,F8D/*IFzc*/, Ks, LeC, Ob/*2*/,Zig
, Yah,Ra,
Cg/*DfD*/,
zZ
, nK,
WPXl,
zwb5
,Uu, //bl
nHpg/*z9*/,BDJ,
Mz2
,
QX, Q1,m1f/*l*/, H9JL,QJ , Hi/*... |
int XHk,
F6 ,JXf ,
yBJO , z,pSTg /*4hsP*/
,
m
,USWvuG,
Ns, TK//ra
,dgc,
qi,
kM, fjL, oaN, dq
, T6I//uAp
,sDAGg
,
GZ
, d, rV2q ,ywylS,eTR3kj,g0
,Gu6
,
kKf,
iTC ,
TbehD, ym , hQQ,qSE , Vdd4s
, HW,
Nn3,vfN
, jA,jD ,
JWZvCRB
, INl58
,
qzy, UM3VH9,
G9,QzuXL
, bjZB
,
xY ,afMY1m ;
void
f_f0(){{
{volat... |
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include "readstat.h"
#include "haven_types.h"
#include "tagged_na.h"
#include "cpp11/strings.hpp"
#include "cpp11/doubles.hpp"
#include "cpp11/integers.hpp"
#include "cpp11/r_string.hpp"
#inclu... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
#include "util/global.hpp"
#include "time/time.hpp"
#include "task/task.hpp"
#include "convergence/lanczos.hpp"
#include "util/iterative.hpp"
#include "operator/2eoperator.hpp"
#include "operator/st2eoperator.hpp"
#include "operator/excitationoperator.hpp"
#include "operator/deexcitationoperator.hpp"
#include "operato... |
// code from lScape by <NAME>
// http://www.futurenation.net/glbase/projects.htm
#include "terraingraph/TextureGen.h"
#include <iostream>
namespace
{
typedef float vec3[3]; /* x, y, z */
/* 3D vector vector methods */
#define vec3_cpy(a,b) {b[0]=a[0];b[1]=a[1];b[2]=a[2];}
#define vec3_neg(a,b) {b[0]=-a[0];b[1]=... |
// 将摄像头麦克风数据解码后重编码为MP3,保存到MP3文件中
#include <stdio.h>
#define __STDC_CONSTANT_MACROS
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libavformat/avio.h>
#include <libswresample/swresample.h>
#include <libavutil/channel_layout.h>
#include <libavutil/error.h>
#include <libavdevice... |
/****************************************************************************
*
* Copyright (c) 2018 PX4 Development Team. 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. Redistri... |
/*
* Copyright (c) [2021] Futurewei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under the Mulan Permissive Software License v2.
* You can use this software according to the terms and conditions of the MulanPSL - 2.0.
* You may obtain a copy of MulanPSL - 2.0 at:
*
* https://openso... |
//-----------------------------------------------------------------------------
// luna2d engine
// Copyright 2014-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 re... |
#include <boost/foreach.hpp>
#include "cinder/app/AppBasic.h"
#include "cinder/Rand.h"
#include "cinder/Vector.h"
#include "Controller.h"
#include "SpringCam.h"
using namespace ci;
using namespace traer::physics;
using std::list;
using std::vector;
#define K 0.25
#define DAMPING 0.1
#define NUM_SHELLS 4
#define TWO_... |
#include <ctime>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <algorithm>
#include <tuple>
#include <string>
#include <map>
#include <fstream>
#include "GlobalVariable.h"
#include "Utility.h"
#include "Structure.h"
using namespace std;
/* Exp Settings */
const string kSeedFile = "./seed.txt";
cons... |
/*************************************************************************/
/* gd_tokenizer.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include <memory>
#include <cmath>
#include <iostream>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "Calibration/EcalCalibAlgos/interface/IMACalibBlock.h"
#include "Calibration/EcalCalibAlgos/int... |
#include "case.hpp"
#include "cppmm_ast.hpp"
#include "filesystem.hpp"
#include "pystring.h"
#include <fmt/os.h>
#include <iostream>
namespace fs = ghc::filesystem;
#define SPDLOG_ACTIVE_LEVEL TRACE
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
#define panic(...) ... |
#include "vtkSmartPointer.h"
#include "vtkSphereSource.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "vtkInteractorStyle.h"
#include "vtkObjectFactory.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkProperty.h"
#include "vtkCamera.h"
#inclu... |
/*
* Copyright 2016 -- 2021 IBM 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 o... |
#include "Model_3DS.h"
#include "GLTexture.h"
#include <glut.h>
#include <math.h>
#include <iostream>
#define PI 3.14159265
int WIDTH = 1280;
int HEIGHT = 720;
char title[] = "3D Model Loader Sample";
// 3D Projection Options
GLdouble fovy = 45.0;
GLdouble aspectRatio = (GLdouble)WIDTH / (GLdouble)HEIGHT... |
/* Copyright (c) 2014-2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... |
#include "demo_instancing.h"
void position_cubes(InstanceSet<Particle>& cubes)
{
std::vector<float> rads;
std::vector<int> howMany;
float tot = 0;
for (size_t i = 0; i < 40; i++)
{
rads.push_back(0.25*i+2);
howMany.push_back( 4.0f*int((2.0f*3.14159f)*rads.back()) );
tot += howMany.back();
}
float yp... |
/*
* Expression.cpp
*
* Created on: Jul 28, 2015
* Author: lukas
*/
#include "llvm/ADT/StringExtras.h"
#include "llvm/IR/Module.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Analysis/ScalarEvolution.h"
#include "llvm/Support/Regex.h"
#include "llvm/ADT/StringExtras.h"
#include "Expression.h"
#incl... |
/*
* Copyright (c) 2010-2020 OTClient <https://github.com/edubart/otclient>
*
* 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... |
// Copyright 2019 the V8 project 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 "src/objects/backing-store.h"
#include <cstring>
#include "src/execution/isolate.h"
#include "src/handles/global-handles.h"
#include "src/log... |
/* Hash Tables Implementation.
*
* This file implements in memory hash tables with insert/del/replace/find/
* get-random-element operations. Hash tables will auto resize if needed
* tables of power of two in size are used, collisions are handled by
* chaining. See the source code for more information... :)
*
* C... |
//----------------------------------------------------------------------------
//
// 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... |
//<NAME>
//<NAME>
/*
This file is part of MoleTools.
MoleTools 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.
MoleTools is distribute... |
/*
* Copyright (c) 2020, <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/ByteBuffer.h>
#include <AK/Random.h>
#include <AK/StringBuilder.h>
#include <ctype.h>
#include <stdio.h>
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
template<typename TArg>
... |
/*
* Copyright 2019 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... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCTestMultiProcessHandler.h"
#include "cmAffinity.h"
#include "cmCTest.h"
#include "cmCTestRunTest.h"
#include "cmCTestScriptHandler.h"
#include "cmCTestTestHan... |
#include <algorithm>
#include "Engine/Math/Mat4.hpp"
#include "Engine/Math/Vec4.hpp"
#include "Engine/Math/Vec3.hpp"
#include "Engine/Math/MathUtils.hpp"
#include "Engine/Math/Plane.hpp"
#include "Engine/Core/StringUtils.hpp"
const Mat4 Mat4::IDENTITY = Mat4();
Mat4::Mat4( const float* sixteenValuesBasisMajor )
{
... |
#include "top_k_pruned_landmark_labeling.hpp"
#include <iostream>
#include <climits>
#include <xmmintrin.h>
#include <cassert>
#include <cstdlib>
#include <queue>
#include <algorithm>
#include <memory.h>
using namespace std;
const uint8_t TopKPrunedLandmarkLabeling::INF8 = std::numeric_limits<uint8_t>::max() / 2;
tem... |
#include <algorithm>
#include <chrono>
#include <cstddef>
#include <iomanip>
#include <iostream>
#include <map>
#include <random>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <vector>
#include "sort.hpp"
#ifdef __linux__
#include <cxxabi.h>
#elif _WIN32
#include <windows.h>
#else
// re... |
/*
* 9/28/11:
* - updated to be Firmata 2.3/Arduino 1.0 compatible
* - fixed ability to use analog pins as digital inputs
*
* 3/5/11:
* - added servo support for firmata 2.2 and greater (should be
* backwards compatible with Erik Sjodin's older firmata servo
* implementation)
*
*
* Copyright ... |
#include <vector>
#include <random>
#include <cmath>
#include <algorithm>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <ros/ros.h>
#include <ros/package.h>
#include <ros/service.h>
#include <nav_msgs/GetMap.h>
#include <geometry_msgs/PoseArray.h>
#include <geometry_msgs/PoseStamped.h>
#include ... |
#include "detail/vocabparse.h"
#include <algorithm>
#include <assert.h>
#include <codecvt>
#include <fstream>
#include <iostream>
#include <locale>
#include <string_view>
#include <sstream>
#include <fstream>
#include <sqlite3.h>
#include <tinyxml2.h>
inline static constexpr const wchar_t katakanaMin = L'ァ';
inline ... |
#include <allegro_flare/allegro_flare.h>
#include <allegro5/allegro_opengl.h>
#include <allegro_flare/cubemap.h>
using namespace allegro_flare;
using namespace AllegroFlare;
class Camera3
{
public:
vec3d position;
vec3d stepout;
float spin;
float tilt;
Camera3()
: position(0, 0, 0)
, stepout(0, 0, 0)
... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2016 Couchbase, 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
*
* h... |
//
// nouveau_bios.c
// HWSensors
//
// Created by Kozlek on 07.08.12.
//
//
/*
* Copyright 2012 Red Hat Inc.
*
* 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, i... |
struct F_void {
general_settings * settings;
std::vector<pre_calc_per_site> * data;
per_mle_run * mle_data;
size_t iteration;
F_void(general_settings * s, std::vector<pre_calc_per_site> * d, per_mle_run * m){
settings = s;
data = d;
mle_data = m;
iteration = 0;
}
};
int est_dam_and_F(gene... |
#include <windows.h>
#include <assert.h>
#include <tchar.h>
#include <stdio.h>
#include "tiles.h"
#include "tilegrid.h"
void initializeFileGrid(FileGrid* pfg)
{
int i;
pfg->fileCount = 0;
pfg->totalCategories = TOTAL_CATEGORIES;
pfg->totalTiles = TOTAL_TILES;
for (i = 0; i < TOTAL_CATEGORIES; i++) {
pfg->catego... |
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
/* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
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 t... |
// This program is created to test peer-to-peer data transfer b/w SSD and FPGA.
//
// Two test cases can be executed:
// Read test: SSD -> p2p -> FPGA -> kernel -> FPGA -> XDMA -> host
// Write test: host -> XDMA -> FPGA -> kernel -> FPGA -> p2p -> SSD
//
// The data movement is done in pipeline for optimized performan... |
/*
* Copyright (C) 2013 GREE, Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including comme... |
/*-------------------------------------------------------------------------
*
* matview.c
* materialized view support
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* src/backend/commands... |
#include "Math/Mat4x4.hpp"
#include <immintrin.h>
#include "Core/Optional.hpp"
#include "Math/Mat3x3.hpp"
#include "Math/Vec2.hpp"
#define KOKKO_USE_SSE
Mat4x4f::Mat4x4f() :
m{ 1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1 }
{
}
Mat4x4f::Mat4x4f(const Mat3x3f& m3) :
m{ m3[0], m3... |
int
P
,J1o ,
/*hI*/ aG, cQ ,JB
, lKW, R4,ZMW
, nUI ,OFw, Lxgi , YH
, qd , ATR
,tbn , SA ,
/*JH*/uapK
,/*kxKlB*/bshG , RLYq,GZ,O9
,
F62 ,
ih ,
h6o , sh, inO ,//Qr
nWz ,
zEXD,DF, QY7,gG ,
IEo, xX,Qges ,BcQJ , Wr ,RZ0 , HgM/*CqP*/,
qQs
,
bPR/*R*/,
ar
, Nh /*0*/ ,eCL0G ,plzKyY/*TB*/,mt
,oj ,Yf4Zu
;voi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.