text stringlengths 5.71k 33.7k |
|---|
// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#include "chrome/browser/views/tabs/tab_strip_2.h"
#include "app/gfx/canvas.h"
#include "app/slide_animation.h"
#include "base/command_line.h"
#inclu... |
#include "join_nested_loop.hpp"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "resolve_type.hpp"
#include "storage/create_iterable_from_segment.hpp"
#include "storage/segment_iterables/any_segment_iterable.hpp"
#include "storage/segment_iterate.hpp"
#include "type_comparison.hpp"
#... |
// Copyright (c) <NAME> (<EMAIL>)
//
// 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 commercial... |
#include <exception>
#include <json/value.h>
#include <boost/filesystem.hpp>
#include "../include/ModelData.h"
#include "TEMLogger.h"
#include "TEMUtilityFunctions.h"
extern src::severity_logger< severity_level > glg;
/** Returns a string with first colum r justified and
* of with 'w'. Can be used to b... |
/***************************************************************************
File : ScaleDraw.cpp
Project : QtiPlot
--------------------------------------------------------------------
Copyright : (C) 2006 by <NAME>
Email (use @ for *) : <EMAIL>
Descripti... |
/*!
* \file unit_model.cpp
*/
#include "unit_model.h"
using namespace std;
void unit_Model_constructor() {
cout << "MODEL CONSTRUCTOR TEST STARTING..." << endl;
// TEST 1 - DEFAULT CONSTRUCTOR
ModelImpl *def = new ModelImpl();
assert(def->getName() == "default1");
// TEST 2 - NAME CONSTRUC... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are perm... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/crash/linux/synchronized_minidump_manager.h"
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <string.h>
#include ... |
//
// MIT License
//
// Copyright (c) 2022 <NAME> (<EMAIL>)
//
// 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,... |
#include "globalaction.h"
#include "debug.h"
#include <QApplication>
QHash<QPair<quint32, quint32>, QAction *> GlobalAction::actions_;
void GlobalAction::init()
{
qApp->installNativeEventFilter(new GlobalAction);
}
bool GlobalAction::makeGlobal(QAction *action)
{
QKeySequence hotKey = action->shortcut();
if (... |
#pragma once
#include "BackNet2.h"
//#include "../PEB.Utility/Utility.h"
#include <vector>
#include <algorithm>
using std::vector;
//initialize
BackNet2::BackNet2() { Setup(0, 0, 0, 0, TEXT); }
BackNet2::BackNet2(int num_inputs, int num_hiddens, int num_nodesHidden, int num_outputs, problem_type mt)
{
Setup(num_inpu... |
//===--- AccessEnforcementDom.cpp - dominated access removal opt ---===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... |
#include <gtest/gtest.h>
#include <wlib/stl/OpenMap.h>
#include "../template_defs.h"
using namespace wlp;
typedef static_string<16> string16;
typedef open_map<string16, string16> string_map;
typedef open_map<int, int> int_map;
typedef int_map::iterator imi;
typedef pair<imi, bool> P_imi_b;
TEST(open_map_test, test_... |
/*
* EncryptionOps.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2022 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ... |
/* Copyright (c) <2003-2019> <Newton Game Dynamics>
*
* 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,
* includi... |
//
// PumpHouseMgr.cpp
// wellpump
//
// Created by <NAME> on 9/2/21.
//
#include "PumpHouseMgr.hpp"
#include "LogMgr.hpp"
#include "Utils.hpp"
const char* PumpHouseMgr::PumpHouseMgr_Version = "1.0.3 dev 1";
//void signal_callback_handler(int signum) {
// cout << "Caught signal " << signum << endl;
// // Termi... |
#define AcdDigi_AcdDigiAlg_CXX
// File and Version Information:
// $Header: /nfs/slac/g/glast/ground/cvs/AcdDigi/src/AcdDigiAlg.cxx,v 1.60 2014/02/19 18:55:04 echarles Exp $
// Description:
// Implementation of the latest digitization algorithm for the ACD where
// the Monte Carlo hit information is assumed to be stor... |
#include "omega.h"
static unsigned int c_fband_min[13] = {
/*the reason to use 392000(but not 400000) because cal_rssi will use 400000-8000= 392000;*/
392000, 440000, 484000, 533000, 587000, 645000, 710000, 782000, 860000,
1450000, 1492000, 1660000, 1685000
};
//static unsigned int c_fN_min[9] = {
// 49000, 740... |
/******************************************************************************
** Copyright (C) 1999 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 10/02/00
**
** Fil... |
#include "T4.h"
// Internal elements
static int pins[T4maxPin]; /**< Stores the output pins. */
static int pwmRes = 1 << 8; /**< Resolution of the PWM-output (standard 9 Bit). */
static int arRes = 1 << 9; /**< Resolution of the analog inputs (standard 10 Bit). */
static void (*in1)(); /*... |
// AUTO GENERATED by vnxcppcodegen
#include <vnx/addons/package.hxx>
#include <vnx/addons/HttpResponse.hxx>
#include <vnx/Hash64.hpp>
#include <vnx/Object.hpp>
#include <vnx/Value.h>
#include <vnx/addons/HttpData.hxx>
#include <vnx/vnx.h>
namespace vnx {
namespace addons {
const vnx::Hash64 HttpResponse::VNX_TYP... |
/**
*
* @author <NAME>
* @copyright 2015 <NAME>, <EMAIL>
* @date 25.07.2015
* @name pirate_teensy_control.cpp
* @brief Teensy Controller for the IR, PIR, RELAY and MD25 Motors
*
*/
// Do not remove the include below
#include "pirate_teensy_control.h"
// ANALOG/DIGITAL PIN
#define LED_DEFAULT_PIN 13
#define IR... |
#include <stdio.h>
#include <stdlib.h>
#include <list>
#include <algorithm>
#include "SceMiPipe.h"
#define DEBUG false
// ------------------------------------------------------------
// implementation structures
struct tNotification {
tNotification* prev;
tNotification* next;
SceMiPipe* pipe_hdl;
void* ... |
#include "sexpr.h"
#include <assert.h>
#include <iostream>
#include <map>
#include <string>
#include <vector>
extern "C" {
const char *__asan_default_options() { return "detect_leaks=0"; }
};
template <typename T1, typename T2>
std::ostream &operator<<(std::ostream &o, const std::pair<T1, T2> &p) {
return o << "(" ... |
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* 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 appl... |
#include <unordered_set>
#include <unordered_map>
#include "L1Trigger/L1THGCal/interface/backend/HGCalClusteringImpl.h"
#include "DataFormats/Common/interface/PtrVector.h"
#include "DataFormats/Common/interface/OrphanHandle.h"
//class constructor
HGCalClusteringImpl::HGCalClusteringImpl(const edm::ParameterSet & conf)... |
/*
* Copyright 2006 - 2011, <NAME> <<EMAIL>>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "MainWindow.h"
#include <stdio.h>
#include <Alert.h>
#include <Application.h>
#include <Catalog.h>
#include <GroupLayout.h>
#include <Menu.h>
#include <MenuItem.h>
#include <Messenger.h... |
/*
main_spotlight.cpp
This file introduces light and reflection models for OpenGL and GLSL.
In particular it shows the implementation of a spotlight.
The class implements a per-fragment shader, which means that the light equations
calcualte a light color per fragment (vs. per-vertex light, with one color per vertex... |
///////////////////////////////////////////////////////////////////////////////
//
// ZX-ESPectrum - ZX Spectrum emulator for ESP32
//
// Copyright (c) 2020, 2021 <NAME> [dcrespo3d]
// https://github.com/dcrespo3d/ZX-ESPectrum-Wiimote
//
// Based on previous work by <NAME>, <NAME> and many others
// https://github.com/... |
/*
* eos - A 3D Morphable Model fitting library written in modern C++11/14.
*
* File: examples/fit-model.cpp
*
* Copyright 2016 <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... |
/* MIT License
*
* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* 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, mo... |
/** \file st_stream_test.cxx
\brief Test program for st_stream library.
\author <NAME>, HEASARC/GSSC
*/
#include <fstream>
#include <iostream>
#include <limits>
#include <string>
#include "st_stream/Stream.h"
#include "st_stream/StreamFormatter.h"
#include "st_stream/st_stream.h"
using namespace st_stream;
/... |
/* @@@LICENSE
*
* Copyright (c) 2008-2012 Hewlett-Packard Development Company, L.P.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... |
#include "ukf.h"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
// Constructor //
/**
* Initialises Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (exce... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
#include "global.h"
#include "PrefsManager.h"
#include "ScreenUnlockStatus.h"
#include "ThemeManager.h"
#include "GameState.h"
#include "RageLog.h"
#include "UnlockManager.h"
#include "SongManager.h"
#include "ActorUtil.h"
#include "Song.h"
#include "Course.h"
using std::vector;
#define UNLOCK_TEXT_SCROLL_X THEME->G... |
/*
===========================================================================
Doom 3 GPL Source Code
Copyright (C) 1999-2011 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 GPL Source Code (?Doom 3 Source Code?).
Doom 3 Source Code is free software: you can redistribute it and/or modify... |
/*
* Things to improve:
* 1. Check if coordinates and muscles are disabled (DONE)
* 2. Use nonlinear muscle model (DONE: not solving dynamics)
* 3. Use generalized forces instead of so results (DONE)
* 4. Use largest polytope instead of the smallest (DONE)
* 5. Sample the feasible polytope to ... |
/*
* Partition.cpp
*
=======================================================*/
#include "Partition.hpp"
#include "PartitionPool.hpp"
#include <assert.h>
#include <math.h>
#include <limits.h>
#include <functional>
#include <iostream>
#include <sstream>
#include <algorithm>
#include "utils/utils.hpp"
#include "MPI.hpp... |
#include "FLAE.h"
#include <complex>
using Eigen::Vector3d;
using Eigen::Vector4d;
using Eigen::Matrix3d;
using Eigen::Matrix4d;
using Eigen::Quaterniond;
using std::vector;
using std::complex;
using std::max;
Quaterniond FlaeSymbolic(const vector<Vector3d>& P, const vector<Vector3d>& Q, const vector<doub... |
//=================================================================================================
// Copyright (c) 2014, <NAME>, WUT
// All rights reserved.
//=================================================================================================
/* The program has been designed by <NAME>
Motion Intention ... |
/************************************************************************************
Copyright (C) 2005
<NAME>, <NAME>, <NAME>, <NAME>, <NAME>
This file is part of the XFEM C++ Library (OpenXFEM++) written
and maintained by above authors.
This program is free software; you can redistribute it and/or modify it.
T... |
/*
* ButtonWidgets.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "ButtonWidgets.h"
#include "graph/Parameter.h"
#include "imgui.h"
using namespace megamol;
using namespace megamol::gui;
bool megamol::gui::ButtonWidgets::OptionButton(
ButtonStyle button... |
//
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
//
// Principal developer : <NAME> (<EMAIL>)
//
#include <vector>
#include <math.h>
#include "cQuotientCore.h"
//#ifdef __APPLE__
//#include <Accelerate/Accelerate.h>
//#else
//#if d... |
// 編號:19-0928N0v4_Bin-Subtraction_File.c
// 程式類別:C語言
// 概念題:遞迴練習 ( 難度 **** )
/* 題目:二進制減法 -> 從檔案 hw2.txt 讀入兩個二進制的數字
(8個 bits),讀入的第一個值為被減數,讀入的第二個值為減數,
試輸出其相減結果至 result.txt*/
// 時間:NULL ( 不限 ) //最佳 1s內
// 內存大小:8MB
// 輸入格式: Null
// 1011 -> File
// 1110000 -> File
// 輸出格式:
// e.g: 00001011 - 01110000 = 100... |
/* Copyright (C) 2022 Barcelona Supercomputing Center
* SPDX-License-Identifier: MIT
*/
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <iostream>
#include <cmath>
#include <cstring>
#ifndef SCALE
#define SCALE 1
#endif
#ifndef NUM_DEVICES
#define NUM_DEVICES 1
#endif
#ifndef... |
#include <jni.h>
#include <string>
#include <iostream>
#include <vector>
#define CL_TARGET_OPENCL_VERSION 200
#include <CL/opencl.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <chrono>// Replace <ctime>
#include <CL/err_code.h>
#include "matrixMul.h"
#include "Event.h"
using namespace std::c... |
#include "roomba_slam_auto_cpp/roomba.h"
Roomba::Roomba(ros::NodeHandle& n)
: n_(n),
pn_("~")
{
cmd_vel_pub = n_.advertise<geometry_msgs::Twist>("cmd_vel", 1);
bumper_sub = n_.subscribe("bumper", 1, &Roomba::bumperCallback, this);
cliff_sub = n_.subscribe("cliff", 1, &Roomba::cliffCallback, this);
data.... |
#include "../include/Being.h"
Enemy::Enemy()
{
ID = 0;
Name = "NULL";
Type = "Enemy";
AttackDescription = "NULL";
Health = 0;
Mana = 0;
Strength= 0;
MaxHealth = 0;
Mana = 0;
MaxMana = 0;
Intelligence = 0;
Agility = 0;
Experience = 0;
Gold = 0;
ypos = 0;
xpos = 0;
yReset = 0;
xReset = 0;
for (int ... |
#pragma once
#include <vector>
#include <GLM/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Core/Reader.h"
#include "Core/ModelLoader.h"
#include "Core/Texture.h"
#include "Core/Context.h"
#include "Core/Material.h"
#include "Core/Shader.h"
#include "Core/VertexArrayObjec... |
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <algorithm>
#include <assert.h>
#include <pthread.h>
#include <time.h>
#include <unordered_map>
#include <map>
#include <vector>
#include <list>
#include <set>
#include <queue>
#include "config.h"
... |
#include <map>
#define SHARDS_FOLDER MD5_FOLDER "/shards"
#define SHARDS_INDEX SHARDS_FOLDER "/.shards"
#define KEYWORDS_INDEX SHARDS_FOLDER "/.keywords"
typedef struct
{
String word;
size_t count;
} ban_keyword_count_t;
std::vector<ban_keyword_count_t> ban_vec_3 = {
{"bit",0}, {"off",0}, {"box",0}, {"too",0... |
#include "HiggsSoapyDriver.hpp"
#include "HiggsDriverSharedInclude.hpp"
#include "driver/EventDsp.hpp"
// #include "driver/JsonServer.hpp"
#include "HiggsUdpOOO.hpp"
#include "duplex_schedule.h"
#include "AirPacket.hpp"
#include "TxSchedule.hpp"
#include "DemodThread.hpp"
#include <SoapySDR/Registry.hpp>
using namesp... |
#pragma once
#include "game.h"
#include "Init.h"
#include "glaux.h"
#include <gl\gl.h>
#include <gl\glu.h>
#include <glut.h>
#include "freeglut.h"
#include "carInfo.h"
#include <iostream>
using namespace std;
// preload variables
#define HI 1 // height of the camera
#define WI 40.0 // wid... |
/*
Chemical Kinetics and Dynamics Library
Copyright (C) 2008-2013, <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
vers... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <inttypes.h>
#include <stdint.h>
#include <algorithm> // for max/min
#include <vector> // for sorting_kmers
#include <sys/time.h>
#include "Faucet.h"
#include <iostream>
#include <fstrea... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "AcousticsAudioComponent.h"
#include "AcousticsDynamicOpening.h"
#include "Engine/GameEngine.h"
#include "TritonWwiseParams.h"
#include "MathUtils.h"
#include "AkComponent.h"
#include "AkAudioEvent.h"
#include <Cla... |
// //////////////////////////////////////////////////////////
// microdoku.cpp
// Copyright (c) 2020 <NAME>
// see https://create.stephan-brumme.com/microsat-cpp/
//
// "MIT License":
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (... |
/* ___ _ ____ _ _ _ ____ ___
/ _ \ ___| |_ ___ | _ \ _ __(_)_ __ | |_ / \ | _ \_ _|
| | | |/ __| __/ _ \| |_) | '__| | '_ \| __| / _ \ | |_) | |
| |_| | (__| || (_) | __/| | | | | | | |_ / ___ \| __/| |
\___/ \___|\__\___/|_| |_| |_|_| |_|\__/_/ \_\_| |___|
.......B... |
//
// MultitouchPadOscApp.cpp
// MultitouchPadOsc is released under the MIT License.
//
// Copyright (c) 2011-2016, <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 restri... |
#include <idt.h>
#include <gdt.h>
#include <io.h>
#include <debug.h>
#include <logging.h>
#include <stacktrace.h>
#include <panic.h>
#include <apic.h>
#include <kstring.h>
#include <scheduler.h>
idt_desc_t s_idt[256];
idt_t idt_ptr;
struct isr_data_pair {
isr_t handler;
void* data;
};
isr_data_pair interrupt... |
#include <gl/glew.h>
#include "ObjModel.h"
#include "Texture.h"
#include <fstream>
#include <iostream>
#include <vector>
#include <algorithm>
#include <glm.hpp>
#define BUFFER_OFFSET(i) ((char *)NULL + (i))
std::string replace(std::string str, std::string toReplace, std::string replacement)
{
size_t index = 0;
whi... |
#include <stdint.h>
#include <string.h>
#include <LittleFS.h>
#include <time.h>
#include <TFT_eSPI.h>
#include <Timezone.h>
#include "Configuration.h"
#include "display.h"
#include "dbg.h"
#include "state.h"
#define ICON_W 50
#define ICON_H ICON_W
#define SMALL 1
#define LARGE 2
// These read 16- and 32-bit types... |
#include <Rcpp.h>
#include "geometries/utils/attributes/attributes.hpp"
#include "geometries/bbox/bbox.hpp"
#include "geometries/matrix/to_mat.hpp"
#include "geometries/utils/sexp/sexp.hpp"
#include "geometries/utils/columns/columns.hpp"
#include "geometries/utils/rleid/rleid.hpp"
#include "geometries/utils/lists/as_l... |
//%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
/*
* Code based from UCSC CSE220 class project (<NAME>). Code has
* several functions cut&pasted from https://github.com/bluespec/RISCV_gdbstub
*
* Copyright (c) 2016-2018 Bluespec, Inc. All Rights Reserved
* Author: <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use thi... |
#include "fboard.h"
#include <iostream>
#include <iomanip>
#include <inttypes.h>
#include <string>
#include <sstream>
#include <fstream>
#define NDEBUG 1
#include <cassert>
//
// description of a futoshiki board, with functions for setting cells and propagating constraints
//
FBoard::FBoard(const string &fileOrPuzzleSt... |
/** \class EcalClusterEnergyUncertainty
* Function that provides uncertainty on supercluster energy measurement
* Available numbers: total effective uncertainty (in GeV)
* assymetric uncertainties (positive and negative)
*
* $Id: EcalClusterEnergyUncertainty.h
* $Date:
* $Revision... |
/*
* Copyright 2010,
* <NAME>,
* <NAME>,
*
* CNRS/AIST
*
*/
/* --------------------------------------------------------------------- */
/* --- INCLUDE --------------------------------------------------------- */
/* --------------------------------------------------------------------- */
/* SOT */
#include <sot... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAME>.... |
/* PROJECT: Medo
* AUTHORS: <NAME>, Melbourne Australia
* COPYRIGHT: Zen Yes Pty Ltd, 2019-2021
* DESCRIPTION: Effect / Colour LUT
*/
#include <cstdio>
#include <cassert>
#include <InterfaceKit.h>
#include <translation/TranslationUtils.h>
#include "Yarra/Render/Texture.h"
#include "Yarra/Render/SceneNode.h"
#... |
#include <sstream>
#include "UVF.h"
#include "Basics/Checksums/crc32.h"
#include "Basics/Checksums/MD5.h"
#include "Basics/nonstd.h"
#include "DataBlock.h"
#include "Controller/Controller.h"
#include "Basics/ProgressTimer.h"
using namespace std;
using namespace UVFTables;
uint64_t UVF::ms_ulReaderVersio... |
#include "headers/model.h"
#include "headers/material.h"
#include <stdio.h>
#include <stdlib.h>
#include <GL/glew.h>
#include <GL/glfw.h>
#include <fstream>
#include <vector>
#include <iostream>
#include <string>
#include "headers/PPMReader.h"
using namespace std;
#define BYTES_PER_FLOAT 4
#define FLOATS_PER_VERTEX 3
... |
#include "Socket.h"
#include <cstring>
#include <cstdlib>
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
/* WINDOWS -------------------------------------------------------- */
/* -------------------------------------------... |
#include "pch.h"
#include "AssetGenerator.h"
template<class T>
void MakeCheckerImage(T* pixels, int width, int height, int block_size)
{
T black = { 0.1f, 0.1f, 0.1f, 1.0f };
T white = { 0.8f, 0.8f, 0.8f, 1.0f };
for (int iy = 0; iy < height; iy++) {
for (int ix = 0; ix < width; ix++) {
... |
/*
* This Code Was Created By <NAME> and <NAME> 2000
* A HUGE Thanks To <NAME> For Cleaning Up
* And Optimizing The Base Code, Making It More Flexible!
* If You've Found This Code Useful, Please Let Me Know.
* Visit Our Sites At www.tiptup.com and nehe.gamedev.net
*/
// SDL port by <NAME> ( <EMAIL> )
#ifdef... |
// Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
/*************************************************************************
-------------------------------------------------------------------------
$Id$
$DateTime$
-------------------------------------------------------------------------
History... |
#define mkconst_real(x) AST::AstNode::mkconst_real(x)
void UhdmAst::visit_range(vpiHandle obj_h, const std::function<void(AST::AstNode *)> &f)
{
std::vector<AST::AstNode *> range_nodes;
visit_one_to_many({vpiRange}, obj_h, [&](AST::AstNode *node) { range_nodes.push_back(node); });
if (range_nodes.size() > ... |
/* --------------------------------------------------------------
Project: CProgressDlg
Purpose: Progress Dialog
Author: <NAME> (<EMAIL>)
Date: Since Nov 28, 2014
Filename: CProgressDlg.cpp
Last modified: Feb 3, 2015
License:
*
* Copyright (C) 2014 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0... |
#include <cstdio>
#include "crank_test.hpp"
int tests = 0;
int fails = 0;
int equals(Block *current, Block *other, int x1, int y1, int x2, int y2)
{
int result = 1, i, j;
for (i = x1; i <= x2; i++)
{
for (j = y1; j <= y2; j++)
{
if(current->map[i][j] != other->map[i][j])
{
fprintf(st... |
#include <drawpp.hpp>
#include <algorithm> // std::min
// Window settings
constexpr int Wwidth = 1500;
constexpr int Wheight = 1000;
// perlin noise settings
// The size of perlin noise will be 512px * 512px
constexpr int gen_height = 1024;
constexpr int gen_width = 1024;
// Camera
float zoomlevel = 0.0f;
int camera... |
/*
pxCore Copyright 2005-2018 <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... |
/*
* Copyright © 2011 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... |
/*
* Copyright 2021 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... |
#include "keypoints.h"
char pattern_31_x_a[256] = {
8, 4, -11, 7, 2, 1, -2, -13, -13, 10, -13, -11, 7, -4, -13,
-9, 12, -3, -6, 11, 4, 5, 3, -8, -2, -13, -7, -4, -10, 5,
5, 1, 9, 4, 2, -4, -8, 4, 0, -13, -3, -6, 8, 0, 7,
-13, 10, -6, 10, -13, -13, ... |
// ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... |
/*
* Copyright (C) 2014 <NAME>, <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, ... |
// Copyright (C) 2018 <NAME>
// Boost Software License - Version 1.0 - August 17th, 2003
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include "../headers/aes.h"
#define Nb 4 // The number of columns comprising a state in AES
#define Nk 8
#define Nr 14
// state - array holding the intermediate results during decryption.
typedef uint8_t state_t[4][4];
const uint8_t sbox[256] =... |
#include "gemm.h"
#include "zero_matrix_task.h"
#include "node.h"
#include "lapack_blas.h"
#include "timer.hpp"
#include "macros.h"
using namespace LegionRuntime::Accessor;
static void
scale_matrix(double beta, LogicalRegion &matrix,
Context ctx, HighLevelRuntime *runtime) {
assert(false);
}
namespace {
c... |
#include <iostream>
#include <fstream>
#include <string>
#include "../sqb_0.1/include/Eigen/Dense"
#include "../superannotator_sel/Matrix3D.h"
#include <SQB/Core/RegTree.h>
#include <SQB/Core/RegTree.h>
#include <SQB/Core/Utils.h>
#include <SQB/Core/Booster.h>
#include <SQB/Core/LineSearch.h>
#include "itkImage.h"
#i... |
/*
Copyright (c) 2018-2021 by <NAME>, <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,... |
/**
* Analysis.cpp
* Authors: <NAME>, <NAME>
*
* Implementations of various analysis techniques. Usage of OpenCV documentation for Fourier analysis. See reference.
*
* Reference: (https://docs.opencv.org/3.4/d8/d01/tutorial_discrete_fourier_transform.html).
*/
#include "Analysis.h"
Analysis::Analysis() {}
Ana... |
/******************************************************************
* File: output.cpp (Formerly output.c)
* Description: Output pass
* Author: <NAME>
* Created: Thu Aug 4 10:56:08 BST 1994
*
* (C) Copyright 1994, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version... |
/************************************************************************************************\
* 2020 <NAME> , <NAME> and <NAME> *
* DOI: 10.5281/zenodo.4319281 *
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT... |
// vim:ts=4:sw=4:et
/*
Author: <NAME>
Date: 2016-11-14
*/
#pragma once
#include <sys/types.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#include <signal.h>
#include <termios.h>
#include <sys/ioctl.h>
#ifdef HAVE_CAP
... |
/**
* Copyright 2014-2016 Social Robotics Lab, University of Freiburg
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* # Redistributions of source code must retain the above copyright
* notice, this list of ... |
/* <tools/nycr/symbol/write_cst.cc>
Implements <tools/nycr/symbol/write_cst.h>.
Copyright 2010-2014 Tagged
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.ap... |
/* $Id: CoinPresolveMatrix.cpp 1854 2015-12-18 14:18:54Z forrest $ */
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include <stdio.h>
#include <cassert>
#include <iostream>
#includ... |
/*************************************************************************/
/* body_pair_sw.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.