text stringlengths 3.08k 22k |
|---|
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 1999, 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... |
#include "base/logging.hpp"
#include "base/string_utils.hpp"
#include "coding/file_name_utils.hpp"
#include "geometry/mercator.hpp"
#include "geometry/point2d.hpp"
#include "indexer/classificator.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/feature.hpp"
#include "indexer/feature_processor.hpp"
... |
/*
===========================================================================
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... |
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/st_usbfs.h>
#include <libopencm3/usb/cdc.h>
#include <libopencm3/usb/usbd.h>
#include <config.hpp>
#include <uart.hpp>
#include <usb.hpp>
#include <usb_interfaces.h>
#include <usb_protocol.hpp>
namespace {
// Handle to HAL... |
#include "RecoEgamma/EgammaElectronAlgos/interface/PixelHitMatcher.h"
#include "RecoEgamma/EgammaElectronAlgos/interface/ElectronUtilities.h"
#include "TrackingTools/PatternTools/interface/TrajectoryMeasurement.h"
#include "TrackingTools/DetLayers/interface/DetLayer.h"
#include "TrackingTools/MeasurementDet/interface/L... |
//
// Author: <NAME> <<EMAIL>>
//
// License: MIT
//
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <signal.h>
#include <string>
#include <vector>
#include <cstring>
#include <errno.h>
#include <getopt.h>
#include "buffer.h"
#include "tcp_sink.... |
/************************************************************************************
* WrightEagle (Soccer Simulation League 2D) *
* BASE SOURCE CODE RELEASE 2016 *
* Copyright (c) 1998-2016 WrightEagle 2D Soccer Simulation Te... |
// Copyright 2016 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... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#include "test_precomp.hpp"
#include "test_invariance_utils.hpp"
using namespace std;
using namespace cv;
using std::tr1::mak... |
/*
* Copyright (c) 2016-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
/*
Copyright (c) 2019, <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 conditions and the followin... |
/***************************************************
Description : Easing Library.
Author : <NAME>.
Reference:
1. https://github.com/luisllamasbinaburo/Arduino-Easing
2. https://github.com/nicolausYes/easing-functions
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file e... |
#include <string.h>
#include "utils.h"
// Thread block size
#define GROUP_SIZE 256
inline double dot (double4 &a, double4 &b)
{
return (a.x * b.x + a.y * b.y) + (a.z * b.z + a.w * b.w);
}
inline double4 operator+(double4 a, double4 b)
{
return {a.x + b.x, a.y + b.y, a.z + b.z, a.w + b.w};
}
inline double4 opera... |
/*
Copyright (c) 2007 <NAME>. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... |
/**
* This term represents the flux of particles from a p/xi grid across the grid
* p boundary into the fluid grid. The flux of particles into the fluid grid
* cell 'r' is given by the pitch-integrated flux across the p=pmax boundary:
*
* / +1
* S(r) = 2*pi*pmax^2 | Phi^{(p)}(r, pmax, xi... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2011,2014,2015,2017,2018,2019, by the GROMACS development team, led by
* <NAME>, <NAME>, <NAME>, and <... |
#include "homework_4.h"
#include <iostream>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/core.hpp>
using namespace std;
using namespace cv;
const char* canny_window_name = "homework 4 - canny edge detection";
const char* hough_window_name = "homework 4 - hough lines detection";
con... |
/**
* Copyright (C) 2019 LEIDOS.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this plogFile 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... |
#include "piano.h"
// Many members remain uninitialized.
pianoAlg::pianoAlg():
VAlgorithm(),
pianod(nullptr),
tabsize(TABSIZE),
tabsize1(tabsize+1),
tabsizef(float(TABSIZE)),
wavetab(nullptr),
gmag1(nullptr),
gmag2(nullptr),
offsetwave(nullptr),
offsetgmag(nullptr),
attn(nullptr),
rlsn(nullptr)... |
#include "turbulence.h"
#include "debuggr.h"
#include "renderow.h"
#include "weather.h"
extern unsigned long vuxGameTime;
extern bool g_bDrawWakeTurbulence;
// static class members
TurbulanceList lTurbulenceList;
unsigned long AircraftTurbulence::lastPurgeTime = 0;
TurbulanceList::~TurbulanceList()
{ // this wil... |
/* -*- coding: utf-8-unix -*-
*
* oedevice.cpp
*
* Created: 2021-02-23 2021 by <NAME>
*
* Copyright (C) 2021 <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 o... |
#include <iostream>
#include"opencv2/opencv.hpp"
#include"opencv2/core/core.hpp"
#include"opencv2/imgproc/imgproc.hpp"
#include"opencv2/highgui/highgui.hpp"
#include"opencv2/ml/ml.hpp"
#include<cstdlib>
#include<stdio.h>
#include<string.h>
#define TESTNUM 3334 ///测试样本数
#define TRAINNUM 6666 ///训练样本数... |
#include <PS2.h>
#include <APIC.h>
#include <CString.h>
#include <Device.h>
#include <Fs/Filesystem.h>
#include <IDT.h>
#include <Logging.h>
#include <System.h>
#include <stddef.h>
#include "PS2.h"
#define PACKET_QUEUE_SIZE 64
#define PS2_RESET 0xFF
#define PS2_ACK 0xFA
#define PS2_RESEND 0xFE
#define PS2_ENABLE_AU... |
/*
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 no... |
#include <algorithm>
#include <array>
#include <chrono>
#include <cstring>
#include <random>
#include "gameinstance.h"
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_real_distribution<> dis(0.0, 1.0);
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
auto g = std::default_rando... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetFrameRate(60);
setup_ImGui();
// Parameters
params.setName("paramsGroup1");// main container
params2.setName("paramsGroup2");// nested
params3.setName("paramsGroup3");// nested
params.add(indexPreset... |
/* align.cpp ----- <NAME> 2014 */
/*
* align source code file
*/
#include "align.hpp"
// kernel input
struct in_t {
uint32_t id;
uint8_t pck_sym[42];
uint8_t len;
uint8_t is_pad;
};
// kernel output
struct out_t {
uint32_t id;
uint32_t low;
uint32_t high;
uint32_t pad;
};
using namespace std;
//... |
/****************************************************************************
**
** Copyright (C) Qxt Foundation. Some rights reserved.
**
** This file is part of the QxtGui module of the Qxt library.
**
** This library is free software; you can redistribute it and/or modify it
** under the terms of the Common P... |
#define EXTERN22 extern
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define TRUE 1
#define FALSE 0
struct complex2 {
double x, y;
};
#define MULT4
#define PI 3.1415926535979
int doFFT(double *x,double *y,long length,int direction);
int doFFT2(double *x,double *y,long length,int direction);
int fft(d... |
#include "dsp.hpp"
DSP::DSP(arma::vec& signal_1,
arma::vec& signal_2,
arma::vec& output_statistics_signal_1,
arma::vec& output_statistics_signal_2)
: signal_1(signal_1)
, signal_2(signal_2)
, output_statistics_signal_1(output_statistics_signal_1)
, output_statistics_signal_2(output_... |
/* textile.c - by <NAME>, SGI */
/* The idea behind texture tiling is that OpenGL's texture modes,
particularly its support for a texture border make it possible to "tile"
together small textures with a result identical to if a much larger
texture was supported. OpenGL allows implementations to limit the ma... |
#include "pch.h"
#include "ExternalImporter.h"
#include <fstream>
#include <boost/algorithm/algorithm.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <experimental/filesystem>
#include <openvdb/tools/Dense.h>
static void printProgress(const std::string& prefix, float progress)
{
int barWidth = 50;
std... |
/*
* Copyright 2017, The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... |
#include "stdafx.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "spars.h"
CEntry::CEntry()
{
next=NULL;
x=0;
c=0;
}
CBigLinProb::CBigLinProb()
{
n=0;
Precision=1.e-8; // default solver precision
bar=NULL;
}
CBigLinProb::~CBigLinProb()
{
if (n==0) return;
int i;
... |
// Adapted from: https://github.com/ValveSoftware/driver_hydra/blob/master/tools/hydra_monitor/hydra_monitor.cpp
// driver_psmoveservice.cpp : Interacts with driver_psmoveservice to provide overlay instructions at startup
//
#include <openvr.h>
#include <set>
#include <chrono>
#include <thread>
#include <iostr... |
/*
* Copyright 2010, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <DebugLooper.h>
#include <new>
#include <AutoLocker.h>
#include <DebugMessageHandler.h>
#include <TeamDebugger.h>
#include <util/DoublyLinkedList.h>
struct BDebugLooper::Debugger {
BTeamDebugger* debugger;
B... |
#include <iostream>
#include <fstream>
#include "json\json.h"
#include "timer.h"
#include "logger.h"
#include "scenerender.h"
#include <chrono>
#include <Windows.h>
std::vector<std::string> FindFilesInDirectory(const std::string& _dir,
const std::string& _format);
std::string FileName(const std::string& _file_path... |
// This file if part of the llir-opt project.
// Licensing information can be found in the LICENSE file.
// (C) 2018 <NAME>. All rights reserved.
#include "core/cast.h"
#include "core/block.h"
#include "core/prog.h"
#include "core/func.h"
#include "core/insts.h"
#include "passes/caml_alloc_inliner.h"
// -----------... |
#include "terrain.hpp"
#include <glm/ext.hpp>
#include <glm/gtc/noise.hpp>
#include "materials.hpp"
#include "terrain_samplers.hpp"
using namespace glm;
namespace {
vec4 rainbow(float dist)
{
using namespace mc::util::color;
const hsv hC { 360 * dist, 0.6F, 1.0F };
const auto rgbC = Hsv2Rgb(hC);
re... |
/*
TGD2151 Computer Graphics Fundamentals
Faculty of Computing & Informatics, Multimedia University
CGLabmain.cpp
Objective: Main Program for Lab01 to Lab11
NOTE: For Lab12 and Lab13, a modified version (CGLab12and13main.cpp)
will be provided.
(C) 2006-2015 <NAME>, All Rights Reserved.
http://wongyapi... |
/*
* Copyright 2009-2011 Red Hat, 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 agr... |
/*
* 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, including without limitation the rights
* to use, copy, modify, m... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
vector<int> X, Y, R;
inline int dist_sqr(int x, int y, int xc, int yc) {
return (x-xc)*(x-xc) + (y-yc)*(y-yc);
}
inline bool i... |
/**
* @file simulator.cc
* @author <NAME> - <EMAIL>
* @date 01-01-16
* @brief
*/
#include "qx/representation.h"
#include "qx/libqasm_interface.h"
#include <qasm_semantic.hpp>
#ifdef USE_GPERFTOOLS
#include <gperftools/profiler.h>
#endif
#include <iostream>
#include "qx/version.h"
void print_banner() {
p... |
/*
@copyright
<pre>
Copyright 2018 Chair of Electronic Design Automation, TUM
This file is part of ETISS tool, see <https://github.com/tum-ei-eda/etiss>.
The initial version of this software has been created with the funding support by the German Federal
Ministry of ... |
//Import other files that are used
#include "ros/ros.h"
#include "actionlib/server/simple_action_server.h"
#include <behavior_actions/RotatePanelAction.h>
#include <controllers_2020_msgs/ControlPanelSrv.h>
#include <controllers_2020_msgs/ClimberSrv.h>
//Import files used for controlling the drivebase
//#include "geome... |
#include "Texture.h"
#include <iostream>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <FreeImage.h>
Texture2D::Texture2D(std::string_view filename, unsigned mask)
{
m_Filename = filename;
#if 0
int channels = 0;
stbi_set_flip_vertically_on_load(true);
stbi_uc* data = stbi_load... |
#include "imgui.h"
#include "ImGuizmo.h"
#include "./BsImgui.h"
#include "BsPrerequisites.h"
#include "Input/BsInputFwd.h"
#include "Platform/BsPlatform.h"
#include "Platform/BsCursor.h"
#include "Input/BsInput.h"
#include "BsApplication.h"
// utility operator for osstream debugging.
std::ostream& operator<<(std::os... |
#include "parse_cmdline.hpp"
#include "data_types.hpp"
#include "util/helper.hpp"
#include "constants.hpp"
#include "cpu/common.hpp"
#include <boost/program_options.hpp>
#include <iostream>
#include <cuda/api_wrappers.h>
#include <iomanip>
#include <sstream>
#include <unordered_map>
using std::tie;
using std::make_... |
/*
Copyright 2020 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 writing, software
dis... |
/*
* 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 related... |
#include "Brofiler.h"
#include "ModuleScene.h"
#include "GameObject.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleMenu.h"
#include <queue>
#include "ComponentTransform.h"
#include "ComponentBB.h"
#include "ComponentCamera.h"
#include "ComponentMaterial.h"
#include <vector>
#include "Quadtree.h"
... |
/*
** Copyright 2014-2016 The Earlham Institute
**
** 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... |
/*
* SoftwareSerial.cpp (formerly NewSoftSerial.cpp)
*
* Multi-instance software serial library for Arduino/Wiring
* -- Interrupt-driven receive and other improvements by ladyada
* (http://ladyada.net)
* -- Tuning, circular buffer, derivation from class Print/Stream,
* multi-instance support, porting to 8M... |
// Copyright (C) 2019 <NAME> and Artificial Necessity
// This code distributed under zlib, see LICENSE.txt for terms.
#pragma once
#include <array>
#include <iostream>
#include "kdop.hpp"
#include <numeric>
#include <stack>
#include <unordered_set>
#include <vector>
template <typename Type>
class BoundingVolume : ... |
#include "ofApp.h"
int numCircles= 0;
int maxDiameter = 22;
int minDiameter = 8;
int lastX = -1, lastY = -1;
ofImage motive;
class ofxPoint
{
float x,y;
ofxPoint(float x, float y) {
this->x = x;
this->y = y;
}
};
class Circle
{
float x, y, radius;
vector<int> xs, ys;
ofColor bg, fg;
Circle() {
radi... |
//////////////////////////////////////////////////////////////
//Seed points begin as "interest points" consisting of local
//extremum detected on a regular grid. Two options are
//available, full 3-d grid search, or 2-d grid search on
//projection image followed by localization in the z-direction.
#include "SeedCont... |
//
// Created by <NAME> on 2020-04-11.
//
#include "PrincipalGraph.h"
#include "SubProblem.h"
using std::string;
using std::vector;
PrincipalGraph::PrincipalGraph(int shift_type, SubProblem* sp):
pSP_(sp), shift_type_(shift_type), max_cons_(-1) {
if(sp) {
max_cons_ = sp->maxCons(shift_type);
int i = 0;
... |
/*
Copyright (c) 2009-present Maximus5
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the follo... |
/*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 <NAME>. *
* All rights reserved. Email: <EMAIL> Web: www.q12.org *
* ... |
#include<bits/stdc++.h>
using namespace std;
const int N = 3e5 + 9;
void induced_sort(const vector<int> &vec, int val_range, vector<int> &SA, const vector<bool> &sl, const vector<int> &lms_idx) {
vector<int> l(val_range, 0), r(val_range, 0);
for (int c : vec) {
if (c + 1 < val_range) ++l[c + 1];
... |
/*************************************************************************/
/* translation_po.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "stdafx.h"
#include "WeaponKnife.h"
#include "WeaponHUD.h"
#include "Entity.h"
#include "Actor.h"
#include "level.h"
#include "xr_level_controller.h"
#include "gamemtllib.h"
#include "level_bullet_manager.h"
#include "ai_sounds.h"
#include "game_cl_single.h"
#include "game_object_space.h"
#define KNIFE_MATER... |
/*
* Copyright (C) 2001-2010 <NAME>
*
* This file is part of Implicit.
*
* Implicit 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 License, or (at your option) any ... |
// Raspicop@<NAME> 2015-10-30 : config file, mainly hardware and clock configuration related
// Code based on richardghirst/PiBits demo_3d example
// modified to object-oriented C++
// remove internal MPU6050 reading
// modified to allow external ypr values so that
// the collecting data process is not d... |
/**
* Copyright 2017 Google 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... |
/* convert.c - Hex conversion functions.
* Copyright (C) 2006, 2008 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of either
*
* - the GNU Lesser General Public License as published by the Free
* So... |
/*
==============================================================================
This file is part of the RUBYK project (http://rubyk.org)
Copyright (c) 2007-2009 by <NAME> - Buma (http://teti.ch).
------------------------------------------------------------------------------
Permission is hereby grant... |
/* <Int> */
struct uInt
{
using uint64 = unsigned long long;
static constexpr int N=2000;
static constexpr uint64 mask=~(1ll<<63);
int size=0;
std::vector<uint64> data; // each unit is 63 bits
uInt() : data(N,0) {}
uInt(const uInt& a) {
data = a.data;
size = a.size;
}
uInt(std::string s) : data(N,0) {
c... |
/*
Spout OpenFrameworks Data Receiver example
Example of receiving per-frame data
Copyright (C) 2021 <NAME>.
Spout 2.007
OpenFrameworks 10
Visual Studio 2017
=========================================================================
This program is free software: you can redistribute it and/or modify
... |
/*
* Copyright 2012 <NAME>, CRACS & INESC-TEC, DCC/FCUP
*
* 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 requir... |
///////////////////////////////////////////////////////////////////
// Copyright <NAME> 2018 - 2021. //
// Distributed under the Boost Software License, //
// Version 1.0. (See accompanying file LICENSE_1_0.txt //
// or copy at http://www.boost.org/LICENSE_1_0.txt) ... |
#include <core/exception.h>
#include <core/union_find.h>
#include <core/util.h>
#include <geom/aabb.h>
#include <geom/classify.h>
#include <geom/is_valid.h>
#include <geom/primitives.h>
#include <geom/project.h>
#include <geom/properties.h>
bool IsValidPolygon(cspan<double2> poly) {
auto n = poly.size();
if (n... |
/*
* GLAM - GLSL Linear Algebra Math Library
*
* Copyright (c) 2012-2014, <NAME> <<EMAIL>>
* 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 ret... |
#include "CWorldLoader.h"
#include "Core/GameProject/CGameProject.h"
#include "Core/GameProject/CResourceStore.h"
#include <Common/Log.h>
CWorldLoader::CWorldLoader() = default;
void CWorldLoader::LoadPrimeMLVL(IInputStream& rMLVL)
{
/*
* This function loads MLVL files from Prime 1/2
* We start immediat... |
/*************************************************************************/
/* dir_access.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/// The ogg player runs ogg123 on a playable slot.
/* Part of the rsked package.
* Copyright 2020 <NAME> farlies(at)gmail.com
*
* 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 a... |
#include <errno.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <assert.h>
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <deque>
#include <fst... |
/*
Glassomium - web-based TUIO-enabled window manager
http://www.glassomium.org
Copyright 2012 The Glassomium Authors
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:... |
#include "stdafx.h"
#include "SynchronousGrabber.h"
// Utility class for time measurements.
#include "StopWatch.h"
#ifdef CIH_LINUX_BUILD // Make sure proper headers are used when compiling under Linux ...
#include <unistd.h>
#endif
#ifdef CIH_WIN_BUILD // ... or under Windows.
#include <windows.h>
#en... |
#include "main.h"
/* Passwords & Ports
* wifi: ssid, password
* ISY: hash, isy, isyport
* MQTT mqtt_server, mqtt_serverport
*/
#include "sej.h"
/*
* Camera class
*/
OV2640 cam;
/*
* MQTT
*/
bool status = false;
boolean mqttConnected = false;
const char* topic = "sej"; // main topic
String clientId = "esp... |
// Pixmap.cpp
#include <cstdint>
#include <exception>
#include <iostream>
#include "Pixmap.h"
#include "PixelBlock.h"
#include "DxtBlock.h"
#include "Common.h"
using namespace std;
// Skips the specified number of input bytes.
void skip(istream& s, int bytes)
{
s.seekg(bytes, ios::cur);
}
Pixel Pixel::interp... |
// sd.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <Windows.h>
#include <stdio.h>
#include <sddl.h>
#include <string>
#include <AclAPI.h>
std::wstring SidToString(const PSID sid) {
PWSTR ssid;
std::wstring result;
if (::ConvertSidToStringSid(sid, &ssid)) {
re... |
// Copyright (c) 2021 <NAME>ics
//
// 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 i... |
/**
* @file
* @brief Implementation of the [Subset
* Sum](https://en.wikipedia.org/wiki/Subset_sum_problem) problem.
* @details
* We are given an array and a sum value. The algorithm finds all
* the subsets of that array with sum equal to the given sum and return such
* subsets count. This approach will have exp... |
//SKELETON PROGRAM
//---------------------------------
//include libraries
//include standard libraries
#include <iostream > //for output and input: cin >> and cout <<
#include <iomanip> //for formatted output in 'cout'
#include <conio.h> //for getch()
#include <string> //for stri... |
/**
* \file SearchForXLinks.cpp
* \brief Object for running search-for-xlinks
*****************************************************************************/
#include "SearchForXLinks.h"
#include "xlink_search.h"
#include "util/mass.h"
#include "util/Params.h"
using namespace std;
/**
* \returns a blank SearchFor... |
// Copyright 2019, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
// SPDX-License-Identifier: BSD-2-Clause
#include <limits>
#include <list>
#include <algorithm>
#include "CScheduleAlgorithmSufferageMig2Dyn.h"
#include "CTask.h"
#include "CTaskCopy.h"
#include "CEstimation.h"
#include "CSchedule.h"
#include "CScheduleExt.h"
#incl... |
#include "world.h"
std::vector<CellPosAndCell> World::findCarryPropUpdates() {
std::vector<CellPosAndCell> toRet;
for (const sf::Vector2i &cellPos : cellsOnEdge) {
assert(doesCellExists(cellPos));
if (cells[cellPos].getStatus() != HALF_DEFINED)
continue;
if (doesCellExists(cellPos + EAST) &&
... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
// Copyright 2008 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
// or its licensors, as applicable.
//
// You may not use this file except under the terms of the accompanying license.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance with ... |
/* Copyright 2018 Stanford, <NAME>, LANL
*
* 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 ag... |
/*
* Client.cpp
*
*/
#include "Client.h"
#include "common.h"
#include "utils.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <errno.h>
#include <boost/thread.hpp>
static void ... |
/* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2007 CaH4e3
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licen... |
#include "system.h"
System::System() {}
System::~System() {}
void System::newconc() {
std::string nome;
int cnpj;
int estoque;
std::string proprietario;
std::cout << "Insira os dados da nova concessionaria:" << std::endl;
std::cout << "\tNome: ";
getline(std::cin, nome);
std::cout << "\tCNPJ: ";
std::cin... |
#include "stdafx.h"
#include "InfinityEngine.h"
#include "zlib.h"
#include <map>
#include <tio/tio.h>
InfiniData ieData;
void InfiniData::ReadChitin(){
// read header
auto chitin_file = tio_fopen("chitin.key", "rb");
if (chitin_file == nullptr)
return;
tio_fread(&keyHeader, sizeof(ChitinKeyHeader), 1, chitin... |
#include <ctime>
#include <fstream>
#include <iostream>
#include <regex>
#include <algorithm>
#include <stdexcept>
#include <unordered_map>
#include <unordered_set>
#include "process.hpp"
namespace {
static size_t MaxArgumentLength = 0; // Manually set.
size_t GetMaxArgumentLength() {
static const size_t MAX_ARG... |
/***************************************************************************
qgsoraclenewconnection.cpp - description
-------------------
begin : August 2012
copyright : (C) 2012 by <NAME>
email : jef at norbit dot d... |
#include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include "../check-builder.hpp"
#include "../layoutable.hpp"
enum {
TOKEN_INVALID,
TOKEN_BAREKEY,
TOKEN_STRKEY,
TOKEN_STRING,
TOKEN_BOOLEAN,
TOKEN_FIXNUM,
TOKEN_FLONUM,
TOKEN_DATETIME,
TOKEN_LBRACE,
TOKEN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.