text stringlengths 3.08k 22k |
|---|
#include "imagelabel.h"
ImageLabel::ImageLabel(QWidget *parent) :
QLabel(parent)
{
setMinimumSize(1,1);
setAlignment(Qt::AlignCenter);
setMouseTracking(true);
// This is important to preserve the aspect ratio
setScaledContents(true);
// Dark background
setBackgroundRole(QPalette::Shad... |
//--------------------------------------------------------------------------------
// NVIDIA(R) GVDB VOXELS
// Copyright 2016-2018, NVIDIA Corporation.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
// 1. Redistri... |
// Extract.cpp
#include "StdAfx.h"
#include <stdio.h>
#include "Windows/FileDir.h"
#include "Windows/PropVariant.h"
#include "Windows/PropVariantConversions.h"
#include "../Common/ExtractingFilePath.h"
#include "Extract.h"
#include "SetProperties.h"
using namespace NWindows;
static HRESULT DecompressArchive(
... |
//===--- Option.cpp - Abstract Driver Options -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... |
//
// Title.cpp
// KittehAdventure
//
// Created by code on 2014/11/02.
//
//
#include "Title.h"
USING_NS_CC;
CCScene* Title::scene()
{
CCScene *scene = CCScene::create();
Title *layer = Title::create();
scene->addChild(layer);
return scene;
}
// on "init" you need to initialize yo... |
#include "ofMain.h"
#include "ofAppNoWindow.h"
#include "ofxUnitTests.h"
#include "ofxNetwork.h"
class ofApp: public ofxUnitTestsApp{
void testNonBlocking(){
int port = ofRandom(15000, 65535);
ofxUDPManager server;
ofxTest(server.Create(),"create udp socket");
ofxTest(server.SetNonBlocking(true), "set non-blo... |
/*
//@HEADER
// *****************************************************************************
//
// runtime_get.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Con... |
#include <algorithm>
#include <cmath>
#include <memory>
#include <sstream>
#include <string>
#include <unordered_map>
#include "idea.h"
#include "model.h"
#define IDEA_MODEL_INIT(model) \
std::string model##_errlev = DEFAULT_ERROR_LEVEL; \
if (... |
#include "got.h"
#include <algorithm>
#include <array>
#include <cassert>
#include <chrono>
#include <fstream>
#include <queue>
#include <random>
#include <set>
#include <vector>
#define UP 1
#define LEFT 2
#define RIGHT 3
#define DOWN 4
ifstream in;
ofstream out;
int N, M;
vector<vector<int>> map;
vector<vector<int... |
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2019, The Regents of the University of California
// All rights reserved.
//
// BSD 3-Clause License
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the... |
/*
* @Description: 利用状态机删除代码中所有注释
目前仅支持 Linux/Unix 系统下的 C++ 文件
* @LastEditors: zzh
* @LastEditTime: 2021-07-13 22:41:56
* @FilePath: /AnnotationKiller/main.cpp
* @history: -- 2021/07/12, v1.0 实现了基本功能
* -- 2021/07/13, v1.1 添加了显示文件读取进度功能
* -- 2021/07/13, v1.2 添加了... |
#include <unittest++/UnitTest++.h>
#include <iostream>
#include <cstring>
#include "m3g/Camera.hpp"
#include "m3g/Group.hpp"
#include "m3g/Transform.hpp"
using namespace std;
using namespace m3g;
TEST (Camera_default_values)
{
Camera* cam = new Camera;
Transform trans;
int type;
float m[16];
type... |
/****************************************************************************
*
* Copyright (c) 2017 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... |
/*************************************************************************/
/* resources_dock.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//*************************************************************************************
/** \file base232.cpp
* This file contains a class which operates an asynchronous (RS-232 style) serial
* port on an AVR microcontroller. Classes which use this stuff include rs232 and
* packet232.
*
* Revisions:
... |
// Copyright 2017 Google 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/*
光照-颜色
https://learnopengl-cn.github.io/02%20Lighting/01%20Colors/
*/
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <common/Shader.hpp>
#include <common/stb_image.h>
#include <common/Camera.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_p... |
#include "tcpServer.hpp"
#include <chrono>
// l_port - port on wich server running
// handler - callback-function called when client connect. Example
// lambda-function: [](TcpServer::Client){...do something...})
TcpServer::TcpServer(const uint16_t port, handler_function_t handler)
: m_port(port), m_handler(handle... |
#include <gtc/matrix_transform.hpp>
#include "Model3DSample.h"
#include "../util/GLUtils.h"
Model3DSample::Model3DSample()
{
m_AngleX = 0;
m_AngleY = 0;
m_ScaleX = 1.0f;
m_ScaleY = 1.0f;
m_pModel = nullptr;
m_pShader = nullptr;
}
Model3DSample::~Model3DSample()
{
}
void Model3DSample::Init()
{
if(m_pModel... |
/** \file
\brief Cauchy Caterpillar Tester
\copyright Copyright (c) 2017 <NAME>. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the abo... |
//+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1997 - 1997
//
// File: testinfo.cpp
//
//--------------------------------------------------------------------------
//
// testinfo.cpp: test file generati... |
/*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2010 <NAME>.
Contributor(s): silveira.nestor, xavier.thomas.1980.
-------------------------------------------------------------------------... |
/***************************************************************************************[SolverConfiguration.cc]
Glucose -- Copyright (c) 2009-2014, <NAME>, <NAME>
CRIL - Univ. Artois, France
LRI - Univ. Paris Sud, France (2009-2013)
Labri - Univ. Bordeaux, France
Syrup (Glucose Parallel) -- Copyright (c) ... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkDataTable.h"
#include "SkFontMgr.h"
#include "SkFontMgr_indirect.h"
#include "SkFontStyle.h"
#include "SkMutex.h"
#include "SkOnce.h"
#include "SkRefCnt.h"
#includ... |
#include "videostreamrenderer.hpp"
#include <algorithm>
VideoStreamRenderer::VideoStreamRenderer(float x1, float y1, float x2, float y2)
: m_outPixel(1280 * 480 * 3), m_newFrame(false), m_width(0), m_height(0),
m_updateSize(false), m_x1(x1), m_y1(y1), m_x2(x2), m_y2(y2) {}
VideoStreamRenderer::Borders
Video... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <cmath>
void framebuffer_size_callback(GLFWwindow *window, int width, int height);
void processInput(GLFWwindow *window);
char *vertexShaderSource;
char *fragmentShaderSource1;
char *fragmentShaderSource2;
int WIDTH = 800;
int HEIGHT = 600;
... |
/**
* TestingGUI.cpp
*
* @author <NAME>
* @version 2020/3/5
* Keith final revision from end of quarter 19-2
*/
#include "console.h"
#include "error.h"
#include "filelib.h"
#include "gbrowserpane.h"
#include "gthread.h"
#include "gwindow.h"
#include <iomanip>
#include <map>
#include "MemoryDiagnostics.h"
#inclu... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../../include/formfiller/FormFiller.h"
#include "../../include/formf... |
#include <system/tasking/process.h>
#include <system/system.h>
#include <system/memory/deviceheap.h>
#include <system/tasking/elf.h>
using namespace CactusOS;
using namespace CactusOS::common;
using namespace CactusOS::core;
using namespace CactusOS::system;
static int currentPID = 1;
List<Process*> ProcessHelper::P... |
//
// Created by <NAME> on 2020/3/7.
//
#include "usb_tool.h"
#ifdef WIN32
#include <libusb/libusb.h>
#else
#include <libusb-1.0/libusb.h>
#include <logger.h>
#endif
using namespace std;
using namespace clangTools;
#ifdef __FILENAME__
const char *usb_tool::TAG = __FILENAME__;
#else
const char *usb_tool::TAG = "us... |
/**
* Main class for CE221 Assignment 2 - ex1
* created by mal 19th Dec 2019
*/
#include "Student.h"
#include <string>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <list>
#include <stdlib.h>
using namespace std;
// declares the two additional functions ahe... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
/*
* ColumnListView
* Copyright (c) 1997-2000 <NAME>
*
* ColumnListView, its associated classes and source code, and the other components of
* Santa's Gift Bag are being made publicly available and free to use in freeware and
* shareware products with a price under $25 (I believe that shareware should be che... |
#include <iostream>
/*
* 原题见: https://adworld.xctf.org.cn/task/answer?type=reverse&number=4&grade=1&id=4973&page=2
* 原题为同目录下的 Newbie_calculations.exe IDA输出文件为 Newbie_calculations.idb
*/
constexpr int* Add(int* a1, const int a2)
{
*a1 += a2;
return a1;
}
constexpr int* Sub(int* a1, const int a2)
{
*a1 ... |
/*
RGB Sensor Project
==================
This is the cpp file for RGB sensor liblary.
Programmed By: <NAME> 190301H
*/
#include "RGBsensor.h"
#include "Display.h"
#include "keypad.h"
#include <Arduino.h>
// Constructor for the sensor
RGBsensor::RGBsensor(byte tSensor[]){
/*
This is the function for ini... |
#include "mat4.hpp"
mat4::mat4(float data[16])
{
std::memcpy(d, data, sizeof(float) * 16); //Not safe but meh
}
mat4::mat4(float f1, float f2, float f3, float f4, float f5, float f6,
float f7, float f8, float f9, float f10, float f11, float f12,
float f13, float f14, float f15, float f16)
{
d[0] = f1; d[1] = f2... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the demonstration applications of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding v... |
// smooth_feedback: Control theory on Lie groups
// https://github.com/pettni/smooth_feedback
//
// Licensed under the MIT License <http://opensource.org/licenses/MIT>.
//
// Copyright (c) 2021 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated d... |
#include "UntzSystem.h"
#include "SystemData.h"
#include <jni.h>
#include <android/log.h>
extern JavaVM *jvm;
using namespace UNTZ;
class PlaybackThread;
class AndroidSystemData : public UNTZ::SystemData
{
public:
AndroidSystemData() : SystemData() {}
~AndroidSystemData() {}
UInt32 getNumFrames();
U... |
#include <GL/glut.h>
#include "../rsMath/rsMath.h"
#include "impCubeVolume.h"
#include "impCrawlPoint.h"
#include "impSphere.h"
#include "impEllipsoid.h"
#include "impTorus.h"
#include "impHexahedron.h"
#include "texture.h"
impCubeVolume* volume;
impSurface* surface;
impSphere sphere;
impEllipsoid ellipso... |
/*
* Copyright (C) 2016-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
/*
* 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 may ... |
/*
* Project Name: Catch Me If You Can - Game logic
* Group:2
* Below is the DriverFile
*
* */
#include "tasks.hpp"
#include "examples/examples.hpp"
#include <stdint.h>
#include <stdio.h>
#include <time.h>
//Libraries Used for Project
#include "lpc_pwm.hpp"
#include "Adafruit_mfGFX.h"
#include "RGBmatrixPanel.h... |
//------------------------------------------------------------------------------
// DelftOnline -- Interactive Client Program
// MAIN
//
// <EMAIL>
// 24 may 12
//
//------------------------------------------------------------------------------
//---- LGPL -----------------------------------------------------------... |
/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
// copyright (c) 2011 the leveldb authors. all rights reserved.
// use of this source code is governed by a bsd-style license that can be
// found in the license file. see the authors file for names of contributors.
#include "leveldb/db.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/typ... |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <iostream>
#include <stdio.h>
#include <cstdlib>
#include <signal.h>
#include <cstring>
#include <errno.h>
#include <unistd.h>
#include "error_def.h"
#include "helpfunct.h"
#include "data.h"
void folder_creator(char* arg);
void create_serverfile(... |
/*
* Copyright (c) 2013, The Robot Studio
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of con... |
// Copyright 2005 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... |
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/Framework/interface/makeRefToBaseProdFrom.h"
#include "FWCore/ParameterSet/interface/Parame... |
#include "FunctionLib.h"
///////////////////////// Definition of the structures, mainly used as parameters for functions ///////////////////////
///////////Meaning of Words:////////////////////
//
// coef ---> coefficient
// transl ---> translation
// stddev ---> standard deviation
// magnif ---> magnification o... |
///////////////////////////////////////////////////////////////////////////////
// maxprotein.hh
//
// Compute the set of foods that maximizes protein, within a calorie budget,
// with the greedy method or exhaustive search.
//
///////////////////////////////////////////////////////////////////////////////
#pragma on... |
/*
* pianoTimer.c
*
* Created on: Jan 1, 2018
* Author: birdman
*/
#include "pianoTimer.h"
uint16_t PWMTableA[PWM_TABLE_SIZE];
uint16_t PWMTableB[PWM_TABLE_SIZE];
volatile static bool bufferEmptyFlag = true; //Flag to signal when buffer is empty of full
static Note_t keyboard[NUM_NOTES];
void initKeyboa... |
/*
This file is part of Kismet
Kismet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Kismet is distributed in the ... |
/* ************************************************************************
* Copyright 2016-2022 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "testing_common.hpp"
/* =================... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2012) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
#include <iostream>
#include <algorithm>
#include <iterator>
#include <cmath>
#include <fstream>
#include <valarray>
#include <sstream>
#include <complex>
#include <tuple>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <boost/math/constants/constants.hpp>
#include "miMaS/fiel... |
/*
** mrb_tensorflow.cpp - TensorFlow class
**
** Copyright (c) monochromegane 2017
**
** See Copyright Notice in LICENSE
*/
#include "mruby.h"
#include "mruby/data.h"
#include "mruby/class.h"
#include "mruby/string.h"
#include "mruby/array.h"
#include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/pla... |
#include "tracking_tester.hpp"
#include "FileSystemUtils.hpp"
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <cv_bridge/cv_bridge.h>
#include <dirent.h>
#include <algorithm>
#include <sstream>
#include <fstream>
#include <cassert>
const double check_for_bbox_rate = 240.0;
TrackingTester::TrackingTester... |
#include "TRAPPCH.h"
#include "SceneSerializer.h"
#include <yaml-cpp/yaml.h>
#include "Components.h"
#include "Entity.h"
#include "VFS/VFS.h"
namespace YAML
{
template<>
struct convert<TRAP::Math::Vec3>
{
static Node encode(const TRAP::Math::Vec3& rhs)
{
Node node;
node.push_back(rhs.x);
node.push_ba... |
/* $Id: step-3.cc 24232 2011-09-02 09:47:37Z kronbichler $ */
/* Author: <NAME>, 1999, <NAME>, 2011 */
/* $Id: step-3.cc 24232 2011-09-02 09:47:37Z kronbichler $ */
/* */
/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2006, 2007, 2008, 20... |
#include "clb2_lutpg.h"
bool LUTPairGraph::CanMerge(int i, int j) {
if (i < j) swap(i, j);
return graph[i].find(j) != graph[i].end();
}
int LUTPairGraph::NumPossibleFFs(const vector<Instance*>& ffs) {
if (ffs.size() < 2) return ffs.size();
for (auto iff = ffs.begin(); iff != ffs.end(); ++iff)
... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... |
#include "player_model.hpp"
#include <iostream>
#include "gl_calls.hpp"
#include "player_mesh.hpp"
#include "shader.hpp"
PlayerModel::PlayerModel(
int id, GLfloat x, GLfloat y, glm::vec3 color) {
#ifdef DEBUG
std::cout << "---- INIT PlayerModel ----" << std::endl;
#endif
this->color = color;
... |
/*
* Copyright 2009, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007-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:
//
// ... |
/*
* ====================== world_scene.cpp ===================
* -- tpr --
* CREATE -- 2019.04.29
* MODIFY --
* ----------------------------------------------------------
* scene: world
*
* 正式的 游戏世界
* ... |
#include "recording_tools/mapper_viz.h"
#include <tf/transform_broadcaster.h>
mapper_viz::mapper_viz(){
// laser_sensor
sensor_max_range_ = 50;
sensor_min_angle_ = -M_PI / 2.0;
sensor_no_of_rays_ = 180;
sensor_angle_increment_ = M_PI / (sensor_no_of_rays_ - 1);
sensor_noise_variance_ = 0.0002 ... |
#include "agent/agent.hpp"
#include "IConnectionHandler.hpp"
#include "IWorker.hpp"
#include <vector>
#include <cstdint>
#include <string>
#include <sstream>
#include <exception>
#include <amqpcpp.h>
#include <spdlog/spdlog.h>
#include <Poco/Net/StreamSocket.h>
agent::IConnectionHandler::IConnectionHandler(unsigned ... |
/*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/GrTBlockList.h"
#include "tests/Test.h"
namespace {
struct C {
C() : fID(-1) { ++gInstCnt; }
C(int id) : fID(id) { ++gInstCnt; }
C(C&& c) : C(c.... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
#include "Log.h"
#include "Utils.h"
#include <stdbool.h>
#include <stdint.h>
#include <mutex>
#include <atomic>
#include <math.h>
#include "../include/TrackingData.h"
#ifdef _WIN32
#include <Window... |
#include <iostream>
#include <cassert>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cstring>
class FileException : std::exception {};
#define PATH_INPUT "/home/anton/text.txt"
#define PATH_OUTPUT1 "/home/anton/text1.txt"
#define PATH_OUTPUT2 "/home/anton/text2.txt"
class TextFile {
///... |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
/*
* Triangulation.h
*
* function: utility class for triangulation of a 3D position using multiple linear equations in vector form (Object Rays / VectRay)
*
* author: <NAME>
*/
#include "Triangulation.h"
//#include "DataFormats.h"
//#include "Logger.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#... |
/*
* arbitrary precision integers
* Copyright (c) 2004 <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 2.1 of the L... |
/*
** Copyright 2011-2013 Centreon
**
** 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 t... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... |
#include <iostream>
#include <fstream>
#include <vector>
#include <unordered_set>
#include <algorithm>
#include "cxxopts.hpp"
#include "data.h"
cxxopts::ParseResult arg;
cxxopts::Options options("./cryptoanalysis <file>", "KIV/BIT task 2 - program for breaking substitution ciphers");
std::unordered_set<std... |
/*
* MIT License
*
* Copyright (c) 2017 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
/*
* Implementations for Joint Based Skeletons.
*
* Started on October 29th, 2015 by <NAME>.
*/
#include "joint.h"
#include "skeleton.h"
#include "mesh.h"
#include "GL/glew.h"
#include <iostream>
using namespace CMU462;
using namespace DynamicScene;
BBox Joint::get_bbox() {
BBox bbox;
Vector3D p1 = position;... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#define GLAD_DLL
#include <glad/glad.h>
#define GLFW_DLL
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include "shader.h"
// contants
constexpr int width{ 1024 }, height{ 1024 };
constexpr float mo... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, i... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/****************************************************************************
Irem M57 hardware
****************************************************************************/
#include "emu.h"
#include "includes/m57.h"
/*****************************************... |
//
// cpdb.c
// cpdb
//
// Created by <NAME> on 28/09/2016.
// Copyright © 2016 <NAME>. All rights reserved.
//
#include <string.h>
#include <stdlib.h>
#include "cpdb.h"
#define INC_CAPACITY 15;
int extractStr(char *dest, const char *src, int begin, int end) ;
void getAtomType (const char *line, char *out);
voi... |
#include <string>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <pcl/conversions.h>
#include <pcl/io/ply_io.h>
#include <pcl/point_types.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl_msgs/PolygonMesh.h>
#include <pcl_ros/point_cloud.h>
#include <ros/ros.h>
#include <sensor_msgs/PointClo... |
// ARP_packet_broadcast.cpp : Defines the entry point for the console application.
// SEND ARP REQUESTS TO CHECK WHO IS ACTIVE ON THE LOCAL NETWORK
#include "stdafx.h"
#include <iostream>
#include <string>
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <iphlpapi.h>
#include <assert.h>
#pragma comment (lib,... |
// single_gas_data.cpp - Functions for manipulating g points
//
// Copyright (C) 2020- ECMWF.
//
// This software is licensed under the terms of the Apache Licence Version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
//
// In applying this licence, ECMWF does not waive the privileges and ... |
#include <ros/refptr.h>
#include <iostream>
struct vector3_t {
union {
struct {
float x, y, z;
};
float components[3];
};
};
struct vector3 : vector3_t {
vector3() : vector3_t({0, 0, 0}) { std::cout << "empty \n"; }
vector3(float x_, float y_, float z_) : vector3_t({x_, y_, z_}) { std::cout... |
//
// build_py3.cpp
//
// Created by <NAME> on 2018/11/14.
//
#include <vector>
#include <algorithm>
#include "reader.h"
// 转换 Python 变量名
std::string namePy(const std::string &str)
{
if (str.empty()) return "";
std::string str_;
bool bTurnBig = true;
for (auto c : str)
{
if (bTurnBig)
{
if ('a' <= c ... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define bool short
#define true 1
#define false 0
//Declarando constante MAXTAM
const int MAXTAM = 50;
const int TAM = 6;
//struct String
typedef struct String
{
char string[MAXTAM];
}String;
//struct longString
typedef st... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... |
// -----------------------------------------------
// test.cpp
//
// Written by <NAME>, 2013
// Copyright (c) 2013, Dream Rock Studios, LLC
//
// 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 Softwa... |
#include "RecoJets/JetProducers/interface/ECFAdder.h"
#include "fastjet/PseudoJet.hh"
#include "fastjet/ClusterSequence.hh"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
#include... |
#include <vector>
#include <ap_int.h>
#include <ap_fixed.h>
#include <TVector2.h>
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "DataFormats/L1... |
/*
Copyright (c) 2013, Illumina 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:
. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following ... |
/** \copyright
* Copyright (c) 2012, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this list of... |
// -*- C++ -*-
//
// Package: JetPlusTracks
// Class: JetPlusTrackProducer
//
/**\class JetPlusTrackProducer JetPlusTrackProducer.cc JetPlusTrackProducer.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: <NAME>,40 R-A12,+41227671273,
// ... |
#include "swfloader.h"
#include <stdio.h>
#include <stdint.h>
#include <QtGui>
#define LE2BE32(x) ((((x) & 0xFF000000) >> 24) | (((x) & 0x00FF0000) >> 8) | (((x) & 0x0000FF00) << 8) | (((x) & 0x000000FF) << 24))
typedef enum
{
//Unknown = -1,
End = 0,
JpegTable = 8,
DefineBitsLossLess = 20,
Defi... |
#include <iostream>
#include <vector>
#include <sstream>
#include <string>
#include <math.h>
using namespace std;
// Linked List Class
class LinkedList
{
int size;
public:
LinkedList()
{
size = 0;
head = nullptr;
tail = nullptr;
}
// Nested Node Class
struct Node
{
string value;
int lineNum;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.