text stringlengths 3.08k 12.5k |
|---|
#include "touch.hh"
const char *const armadillo::touch::TOUCH_PATH = "/dev/input/event1";
void *armadillo::touch::handler_wrapper(void *arg)
{
handler_arg_t *tmp = (handler_arg_t *)arg;
touch_event_t ev = tmp->event;
touch *self = tmp->self;
(*self->handlers[ev.type])(ev, self->args[ev.type]);
free(arg);
return... |
#include <cstdarg>
#include <cstdio>
#include <string>
#include "calibration.h"
#include "daisy_patch.h"
#include "daisysp.h"
#include "notes.h"
#include "settings.h"
#include "supersaw.h"
using namespace daisy;
using namespace daisysp;
DaisyPatch gPatch;
class ChordApp {
public:
void Init(DaisyPatch *_pa... |
//=============================================================================
// Copyright (c) 2019-2021 Advanced Micro Devices, Inc. All rights reserved.
/// @author AMD Developer Tools Team
/// @file
/// @brief Implementation for the carousel item widget base class.
//==============================================... |
// DAE2XML written by <NAME> August 2, 2006
// modified by <NAME> 2007 for PAL support
/*
Abstract:
PAL - Physics Abstraction Layer.
Stand alone COLLADA loader
This demonstrates loading a COLLADA file with PAL
Author:
<NAME>
Revision History:
Version 0.0.5: 01/03/09 - +/- inf processing and detecing spher... |
#include "Library.h"
// default constructor
// nothing loaded into library class
Library::Library() {
}
// main constructor
// version string loaded into constructor for the menu
Library::Library(std::string version) {
m_version = version;
}
// default deconstructor
Library::~Library() {
}
void Library::showMenu... |
#include "train.h"
#include <boost/program_options.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/info_parser.hpp>
#include <iostream>
namespace po = boost::program_options;
using boost::filesystem::path;
using boo... |
// c
#include <cmath>
// std
#include <iostream>
// 3rd party
#include <boost/math/constants/constants.hpp>
#include <boost/random.hpp>
#include <boost/random/normal_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#include <gtest/gtest.h>
#include <opencv2/opencv.hpp>
// local
#include "OccupancyGr... |
#include "Curve.hpp"
#include <cfloat>
#include <iostream>
/****************************************
* 低阶的Bezier曲线,直接采用定义的方式求
* B(t)=C(n,0)*(1-t)^n*t^0*P0 + C(n,1)*(1-t)^(n-1)*t^1*P1+...+C(n,n)*(1-t)^0*t^n*Pn
****************************************/
BezierSurface::BezierSurface(const std::vector<Vector2f> &points,... |
#include <gtest/gtest.h>
#include <XdgUtils/DesktopEntry/DesktopEntry.h>
using namespace XdgUtils::DesktopEntry;
class TestDesktopEntry : public ::testing::Test {
protected:
const std::string exampleDesktopEntry = "[Desktop Entry]\n"
"Version=1.0\n"
... |
/*
* Copyright (C) 2020 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... |
// Copyright 2018 The Fuchsia 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 <stdio.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include ... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
int basicDist[1000];
int dist[1000];
void init(int cur, const vector<int> &keys, int cost) {
if (cost == 4)
return;
for (int ... |
#include "class.Drawer.hpp"
#include "util.h"
Drawer::Drawer() {
m_roi_index = 0;
m_roiDraw = false;
m_debugDraw = false;
m_teamColoring = false;
m_drawType = 2;
m_roi = new ThresholdColor(Scalar(35, 72, 50), Scalar(51, 142, 144));
m_roi->createTrackBars("roiMask");
log = CREATE_log4CPP();
if(log != NULL) {
... |
//----------------------------------------------------
// file: LightEditor.cpp
//----------------------------------------------------
#include "Pch.h"
#pragma hdrstop
#include "NetDeviceLog.h"
#include "LightEditor.h"
#include "Light.h"
#include "SceneClassList.h"
#include "MenuTemplate.rh"
//---------... |
// Selective lcm2lcm combiner for Edinburgh Kuka Arm including SDH hand
// mfallon
#include <boost/thread/mutex.hpp>
#include <boost/shared_ptr.hpp>
#include <cstdlib>
#include <sys/time.h>
#include <time.h>
#include <iostream>
#include <map>
#include <Eigen/Dense>
#include <lcm/lcm-cpp.hpp>
#include "lcmtypes/bot_c... |
#include "Executable.h"
#include "Function.h"
#include "JanusContext.h"
#include "ParseELF.h"
#include "Disassemble.h"
#include "IO.h"
#include "capstone/capstone.h"
#include <cstring>
#include <algorithm>
#include <set>
#include <cstring>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <sstream>
usi... |
/*
* ______ __ __ __
* / __/ /_ ____ __ / //_/__ _______ ___ / /
* / _// / // /\ \ / / ,< / -_) __/ _ \/ -_) /
* /_/ /_/\_,_//_\_\ /_/|_|\__/_/ /_//_/\__/_/
*
* copyright (c) 2021 <NAME> (aka corigan01)
*
* Permission is hereby granted, free of charge... |
//---------------------------------------------------------------------------//
// Copyright (c) 2018-2021 <NAME> <<EMAIL>>
//
// MIT License
//
// 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 Soft... |
// -*- Mode: c++ -*-
// copyright (c) 2012 by <NAME>
// $Revision$
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the term... |
#include "StreamServer.hpp"
#include <chrono>
#include <cstdio>
#include <vlc/libvlc_vlm.h>
#include <vlc/vlc.h>
#include <Ice/Ice.h>
#include <IceStorm/IceStorm.h>
StreamServer::StreamServer() {
Ice::CommunicatorPtr ic;
try {
ic = Ice::initialize();
Ice::ObjectPrx obj = ic->stringToProxy("IceStorm/TopicManager... |
/*++
Module Name:
DistanceHist.cpp
Abstract:
Compute a histogram of the edit distances between simulated reads and their correct
alignments.
Authors:
<NAME>, May 2013
Environment:
`
User mode service.
Revision History:
--*/
#include "stdafx.h"
#include "Compat.h"
#include "Genome.h"
#in... |
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <tuple>
#include <utility>
#include <type_traits>
#include "QtStructDatabase/database.h"
#include "QtStructDatabase/QtTupleConversions/structconversions.h"
#include "QtStructDatabase/databaseviewmodel.h"
#include "QtStructDa... |
/************************************************************************
* Copyright 2013 <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... |
/*
* COPYRIGHT (c) 2008 by Lattice Semiconductor Corporation
*
* All rights reserved. All use of this software and documentation is
* subject to the License Agreement located in the file LICENSE.
*/
/** @file LSCPCIe2_IF.cpp */
#include <cstdlib>
#include <string>
#include <sstream>
#include <iomanip>
#include ... |
#include "Engine.h"
GLFWwindow* Engine::mainWindow = nullptr;
Camera Engine::mainCamera;
Scene Engine::scene = Scene(60);
DebugDraw Engine::debugDraw;
InputManager Engine::input;
Engine::Engine()
{
}
Engine::~Engine()
{
}
//Initalize the engine.
//A lot of the initalization codes are from box2d testbed.
int... |
/**************************************************************
*
* 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 y... |
#include <chrono>
#include <stdexcept>
#include <SDL2/SDL.h>
#include <SDL2/SDL_vulkan.h>
#ifdef _DEBUG
#pragma comment(lib, "SDL2maind.lib")
#else
#pragma comment(lib, "SDL2main.lib")
#endif
#include "Math.h"
#include "Scene.h"
#include "RenderEngine.h"
#include "InterfaceScene.h"
#include "CubeScene.h"
#include "Fo... |
#include <boost/asio/async_result.hpp>
#include <boost/asio/bind_executor.hpp>
#include <boost/asio/executor_work_guard.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/read.hpp>
#include <boost/asio/write.hpp>
#include <boost/beast/core/type_traits.hpp>
#include <boost/pr... |
#include <avr/interrupt.h>
#include "clock.h"
#include "uart.h"
CLOCK* CLOCK::clock_ptr;
ISR(RTC_CNT_vect) {
// PORTA.OUTSET = PIN7_bm;
// PORTA.OUTCLR = PIN7_bm;
RTC.INTFLAGS = RTC_OVF_bm;
CLOCK::clock_ptr->current_tick++;
}
CLOCK::CLOCK() {
clock_ptr = this;
_is_running = 0;
_mode = CONTINUOUS;
RTC... |
// clang-format off
#include<bits/stdc++.h>
// g++ -std=c++17 -Wl,-stack_size -Wl,0x10000000 main.cpp
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 1000000007
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define t1(x) c... |
/*
EXAMPLE osmium_amenity_list
Create a list of all amenities in the OSM input data. The type of amenity
(tag value) and, if available, the name is printed. For nodes, the location
is printed, for areas the center location.
DEMONSTRATES USE OF:
* file input
* location indexes and the NodeLocationsForWa... |
// Copyright 2019 The MediaPipe 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://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
// -*- C++ -*-
//
// Package: validateBTagDB
// Class: validateBTagDB
//
/**\class TestOctoberExe TestOctoberExe.cc RecoBTag/TestOctoberExe/src/TestOctoberExe.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>
// Created: Tue N... |
#include "OV2640.h"
#define TAG "OV2640"
// definitions appropriate for the ESP32-CAM devboard (and most clones)
camera_config_t esp32cam_config{
.pin_pwdn = -1, // FIXME: on the TTGO T-Journal I think this is GPIO 0
.pin_reset = 15,
.pin_xclk = 27,
.pin_sscb_sda = 25,
.pin_sscb_sc... |
// Copyright 2011 the V8 project authors. 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 ... |
//**************************************************************************\
//* This file is property of and copyright by the ALICE Project *\
//* ALICE Experiment at CERN, All rights reserved. *\
//* *\
//* Prim... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
// Copyright (c) Prevail Verifier contributors.
// SPDX-License-Identifier: MIT
/**
* This module is about selecting the numerical and memory domains, initiating
* the verification process and returning the results.
**/
#include <cinttypes>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>... |
//
// Created by istvan on 6/5/18.
//
#include <discoveryd/r_dhttracker.h>
#include <algorithm>
#include <framework/rfw_network_interfaces.h>
#include <spdlog/sinks/stdout_sinks.h>
constexpr auto LOGGER_NAME = "dht_tracker";
namespace spd = spdlog;
using namespace std;
using namespace riaps::utils;
namespace riap... |
/**
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* Written for the ACRC, University of Bristol
*
* Licensed under the Educational Community 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.osedu.org/lice... |
/*
The MIT License (MIT)
Copyright (c) 2014,2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
// Copyright (c) 2012 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/favicon/select_favicon_frames.h"
#include "skia/ext/image_operations.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/ima... |
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 <NAME> (Glaurung author)
Copyright (C) 2008-2014 <NAME>, <NAME>, <NAME>
Stockfish 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 ... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <string>
#include <algorithm>
#include <iterator>
#include <numeric>
#include <ext/numeric>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#include "mpi... |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <map>
#include <string>
#include <cmath>
#include <math.h>
typedef std::vector<double> values_t;
double analyze(const std::vector<double>& values)
{
double sum = std::accumulate(values.begin(), values.end(),... |
/* <stig/rpc/type_streamers.cc>
Implements <stig/rpc/type_streamers.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.apache.org... |
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/IR/GetElementPtrTypeIterator.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instruction.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"
#include "scaf/Utilities/CaptureUtil.h"
#include "scaf/Utilities/FindAllTransUses.h"
#include "scaf/MemoryAnalys... |
// Chemfiles, a modern library for chemistry file reading and writing
// Copyright (C) <NAME> and contributors -- BSD license
#include <cassert>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include "chemfiles/formats/Tinker.hpp"
#include "chemfiles/ErrorFmt.hpp"
#include "chemfiles/Frame.hpp"
#include "chemfil... |
/** \file FrequencyEph.cxx
\brief Implementation of the FrequencyEph class.
\authors <NAME>, GSSC,
<NAME>, HEASARC/GSSC
*/
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <utility>
#include "pulsarDb/PulsarEph.h"
#include "pulsarDb/FrequencyEph.h"
#include "timeSystem/Calenda... |
#include "Vulkan/VkGlobals.h"
#include "Scenes/Scenes.h"
#include "Scenes/_SceneMenu/SceneMenu.h"
#include "Vulkan/VkCore.h"
#include "ImGui/ImGuiGlobals.h"
#include <chrono>
namespace {
//Initialization - Window
GW::SYSTEM::GWindow GWindow;
GW::CORE::GEventReceiver GWindowReceiver;
//Initialization - Scenes
Sc... |
#include "../include/instance_creator.hpp"
#include "../include/builder.hpp"
#include "../include/router.hpp"
#include "../include/constants.hpp"
#include "../include/distributer.hpp"
//TODO: deserves more commenting
int holds_triangular(const std::vector< std::vector<double> >& mat);
int is_assymmetric(const std::ve... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
/*
Audio File Library
Copyright (C) 2012, <NAME> <<EMAIL>>
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 License, or
(at your option) any later version.
This program... |
#include <libadb/api/guild/data/guild.hpp>
#include <nlohmann/json.hpp>
#include <libadb/types/helpers/json-optional.hpp>
#include <libadb/types/helpers/json-nullable.hpp>
#include <libadb/types/helpers/json-enum.hpp>
#include <libadb/resource/image-resolver.hpp>
#include <algorithm>
using namespace adb::api;
using nam... |
#include <iostream>
#include "global.h"
#include "utils.h"
#include "GMMFit.h"
#include "visualize.h"
#include "pc_process.h"
#include "opt_plane_param.hpp"
#include "opt_grid_fitting.h"
#include "opt_reprj_calib.h"
using namespace cv;
void
calib_opt(
vector<vector<Eigen::Vector2d>> &v_est_img_corner_pt,... |
/*************************************************************************
> File Name: request_manager.cpp
> Author:
> Created Time: Thu 22 Mar 2018 04:22:56 PM CST
************************************************************************/
#include "reply_manager.hpp"
#include "request.hpp"
#include <Pl... |
/*
Flash.cpp - Flash library
Original Copyright (c) 2017 <NAME>. All right reserved.
This library 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... |
/*
* Copyright (c) 2013-14, Freescale Semiconductor, 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:
*
* o Redistributions of source code must retain the above copyright notice, this l... |
// Copyright (c) 2015-2016, <NAME> - All rights reserved
#include "BRSEngine.h"
#include "ARFilter.h"
IMPLEMENT_GAME_MODULE(FDefaultGameModuleImpl, BRSEngine);
DEFINE_LOG_CATEGORY(LogBRSEngine);
DEFINE_LOG_CATEGORY(LogBRSGameSettings);
void GetAllBlueprintAssetData(UClass* BaseClass, TArray<FAssetData>& AssetList,... |
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "Geometry/MuonNumbering/interface/CSCNumberingScheme.h"
#include "Geometry/MuonNumbering/interface/MuonBaseNumber.h"
#include "Geometry/MuonNumbering/interface/MuonDDDConstants.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
//#define LOCAL_DE... |
#include "rulemanager.h"
#include <string>
#include "completion.h"
#include "globals.h"
#include "ipc-protocol.h"
#include "utils.h"
using std::string;
using std::to_string;
using std::endl;
/*!
* Implements the "rule" IPC command
*/
int RuleManager::addRuleCommand(Input input, Output output) {
Rule rule;
... |
//
// PegBoard.cpp
//
// This file implements the PegBoard.h interface.
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abstractions in C++" by <NAME>
// Chapter 6, Exercise 4
// Stanford University, Autumn Quarter 2012
// http://web.stanford.edu/class/archi... |
/*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;}
int sub(int x... |
#include <iostream>
#include <thread>
#include <vector>
#include <random>
#include <chrono>
#include <algorithm>
#include <iomanip>
#include "safe_ptr.h"
struct user_accounts_t {
std::string user_name; int64_t money;
user_accounts_t(std::string u, int64_t m) : user_name(u), money(m) {}
};
safe_ptr<std::map... |
// Copyright (c) Facebook, Inc. and its affiliates.
#include <glog/logging.h>
#include <boost/functional/hash.hpp>
#include <unordered_map>
#include "block_data.h"
#include "block_map.h"
#include "event.h"
#include "types.h"
#include "util.h"
using namespace std;
using std::optional;
// Chunks are 16x16x16 cubes of... |
#include "rendering/drawables/annotation/LandmarkGroup3d.h"
#include "common/HZeeException.hpp"
#include "logic/camera/CameraHelpers.h"
#include "rendering/common/MeshPolygonOffset.h"
#include "rendering/drawables/BasicMesh.h"
#include "rendering/drawables/Transformation.h"
#include "rendering/records/MeshGpuRecord.h... |
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <vector>
#include <cassert>
#include <iostream>
#include <fstream>
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods);
void mouse_button_callback(GLFWwindow... |
/*
* Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.
*/
#in... |
/****************************************************************************
**This file is part of the Motorcar 3D windowing framework
**
**
**Copyright (C) 2014 <NAME>
**
**
** You may use this file under the terms of the BSD license as follows:
**
** "Redistribution and use in source and binary forms, with or witho... |
#include <fstream>
#include <gtest/gtest.h>
#include "codec_def.h"
#include "utils/BufferedData.h"
#include "utils/FileInputStream.h"
#include "BaseEncoderTest.h"
static int InitWithParam (ISVCEncoder* encoder, SEncParamExt* pEncParamExt) {
SliceModeEnum eSliceMode = pEncParamExt->sSpatialLayers[0].sSliceArgument.u... |
#include <iostream>
#include <filesystem>
namespace fs = std::filesystem ;
void UsingPath() {
fs::path selectedPath{R"(E:\Data\Material\C++\Assignments.docx)"} ;
std::cout << selectedPath << std::endl;
std::cout << selectedPath.string() << std::endl;
selectedPath.remove_filename() ;
selectedPath /= "newfile" ;
... |
#include <StdFuncs.h>
#include <File.h>
#include <StdSocket.h>
#include <string.h>
#include "Commands.h"
const char *g_commandNames[] =
{
"execute",
"get",
"send",
"shutdown",
"version"
};
/**
* Requests execution of a file.
* Requests the remote execution of an executable or script file. The file's stdout a... |
#include "laraanim.h"
#include "laramisc.h"
#include "objects.h"
#include "lot.h"
#include "game.h"
#include "lara2gun.h"
#include "camera.h"
#define DINO_TOUCH_DAMAGE 1
#define DINO_TRAMPLE_DAMAGE 10
#define DINO_BITE_DAMAGE 10000
#define DINO_TOUCH (0x3000)
#define DINO_ROAR_CHANCE 0x200
#define DINO_RUN_TURN (ON... |
#include <array>
#include <chrono>
#include <fstream>
#include <iostream>
#include <stdexcept> // runtime_error
#include <string>
#include <boost/asio.hpp>
#include "tools/loss/burst.hh"
#include "tools/loss/stream.hh"
#include "tools/loss/uniform.hh"
/*---------------------------------------------------------------... |
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* 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, or (at your option)
* any later version.
*
* ... |
#include <baseGraphics.h>
#include <math.h>
#define DEF_LOC_X 16 // Just anything so the user can see something.
#define DEF_LOC_Y 16
#define DEF_SIZE_X 16
#define DEF_SIZE_Y 16
/*
void printPoint(point* inPt,char* name) {
Serial.print(name);
Serial.print(inPt->x);
Serial.print(F(", "));
Serial.println(inPt... |
#include <Arduino.h>
#include <FreqMeasure.h>
#include <SwitecX25.h>
#include <Wire.h>
#include <MovingAverageFilter.h>
MovingAverageFilter movingAverageFilter(20);
//#define MAXSTEP 738 // 0-6000rpm
#define MAXSTEP 692 // 0-85mph 0-137kmh
const float kmhXToSteps = 5.0; //Multiply for kmh to gauge ... |
/*
[PREDITLE]
Jumpshot, p100, millionware on top
Awp don't need no scope, hop around don't miss a shot
7 shots in my deagle always got me lookin' evil
p100 like it's cheat-codes just need one shot never reload
I hit the edgebug jumpbug spin around and flickshot (ooh)
Didn't even see you but your skull's eating my AWP... |
#include <opencv2/highgui.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/core.hpp>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <message_filters/subscriber.h>
#include <... |
/*
* Copyright (C) 2015-2021 Swift Navigation Inc.
* Contact: https://support.swiftnav.com
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ... |
//*********************************************************
// Passenger_Report.cpp - travel summary report
//*********************************************************
#include "PlanSum.hpp"
//---------------------------------------------------------
// Passenger_Report
//---------------------------------------------... |
#include "BSPlayer.h"
BSPlayer::BSPlayer(){
resetPlayer();
playerName = new char[PLAYERNAME_LENGTH+1];
numberOfTurns = 1;
}
BSPlayer::~BSPlayer(){
delete[] playerName;
}
void BSPlayer::resetPlayer(){
cursorPosition = {0,0};
// clean map
for (uint8_t i = 0; i < BS_MAP_SIZE; i++) {
for (uint8_t j = ... |
// vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... |
//
// Created by covariance on 03.05.2020.
//
#include <bits/stdc++.h>
class DKA {
private:
int n;
std::vector<bool> terminal;
std::vector<std::unordered_map<char, int>> edges;
bool _inverse_calculated;
std::vector<std::vector<int>> _inverse;
void _calculate_inverse() {
if (_inverse_... |
/*
* 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 <iomanip>
#include <base/bit_cast.h>
#include <pcg_random.hpp>
#include <Core/Defines.h>
#include <Common/BitHelpers.h>
#include <Common/Stopwatch.h>
#include <Common/TournamentTree.h>
#include <Common/randomSeed.h>
#include <Common/thread_local_rng.h>
using namespace DB;
static size_t compare_count = 0;
... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/*
* ibun - bundle files operation
*/
#include "irods_client_api_table.hpp"
#include "irods_pack_table.hpp"
#include "rodsClient.hpp"
#include "parseCommandLine... |
#include "SkipGram.hpp"
#include "Utils.hpp"
#include "ActFunc.hpp"
#include <fstream>
#include <iostream>
void SkipGram::init(const int dim, const int windowSize_, const int numNegative_, const std::string& trainFile, const bool train)
{
std::ifstream ifsTrain(trainFile.c_str());
this->ngramVector = MatD(dim, th... |
#include "../../include/Client.h"
SDL::SDL(uint32_t in_width, uint32_t in_height) {
ERROR(SDL_Init(SDL_INIT_VIDEO) < 0, "Can't init SDL");
SDL_DisplayMode res;
SDL_GetCurrentDisplayMode(0, &res);
ERROR(res.w < in_width || res.h < in_height,
"Server screen resolution is greater than client resolution.");
wid... |
/*
$Author = <NAME>;
$Corp = RedM Inc;
$Web = https://redm.pro/;
$Lincese = BSD 3;
$Name = mLang;
$Description = A programming language for web programming.;
*/
#define _FILE_OFFSET_BITS 64
#include "math_functions.h"
#include <sys/time.h>//gettimeofday
#include "string_functions.h"//lhex_digits, TODO
string f$dec... |
/*
* Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
#include "globals.h"
#include "flags.h"
#include "fluxmap.h"
#include "writer.h"
#include "protocol.h"
#include "usb/usb.h"
#include "encoders/encoders.h"
#include "decoders/decoders.h"
#include "fluxsource/fluxsource.h"
#include "fluxsink/fluxsink.h"
#include "imagereader/imagereader.h"
#include "fmt/format... |
/*
* Copyright (c) 2021, NVIDIA CORPORATION. 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 requi... |
// Copyright 2019 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/ash/printing/server_printers_provider.h"
#include <map>
#include <memory>
#include <vector>
#include "base/containers/contains.... |
/*
* Copyright (C) 2014 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 app... |
/*
* Copyright 2017-2019 Autoware Foundation. 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 requi... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid commercial Qt... |
/* Copyright (c) 2018 <NAME> <<EMAIL>>
*
* This work is licensed under the terms of the MIT license. See LICENSE file
* for more information.
*/
#include "segmentator.hpp"
#include "converter.hpp"
#include <algorithm>
#include <exception>
#include <vector>
/* HSV threshold range. */
#define HSV_COLOR_LOW cv::S... |
#include "NumberEncoder.h"
#include "EncodingHelper.h"
#include "../utils/QrException.h"
using namespace qr::encoding;
std::string NumberEncoder::encode(char ch, bool flush) {
// setting into buffer
mCharacterBuffer[mBufferLen++] = ch - '0';
if (mBufferLen == 3) {
// we can use flush method becaus... |
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <set>
#include <string>
#include <sstream>
#include <vector>
std::string tmux_quote(std::string const& s)
{
std::string result = "\'";
for (char ch : s) {
if (ch == '\'')
result += "'\"'\"'";
else
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.