text stringlengths 3.08k 12.5k |
|---|
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <stdio.h>
#include "DiscoveryRTSP_IP.h"
#include <unistd.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <string.h>
#include "VideoPlayer.h"
#include "VideoWr... |
// Copyright 2013-2019 Stanford University
//
// 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 ... |
#pragma once
#include <functional>
#include <vector>
#include <string>
#include <iostream>
#include <csignal>
struct BaseCase
{
virtual void run() = 0;
virtual void abort() = 0;
virtual bool isAborted() = 0;
virtual ~BaseCase() = default;
};
struct AbortThisCase {};
class UnitTest
{
private:
Unit... |
/*
* Copyright (c) 2020, 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 requir... |
/*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "StripDebugInfo.h"
#include <string>
#include <unordered_map>
#include <vector>
#include "DexClass.h"
#include "DexUtil.... |
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <queue>
#define E 0
#define W 1
#define R 2
#define B 3
using namespace std;
const int N = 3;
const int INF = 900000;
const int POSS = 262144+6;
int ER, EC;
int board[N][N];
int ... |
/// @file tVisSource.cc
///
/// @copyright (c) 2010 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// <EMAIL>
///
/// This file is part of the ASKAP software distribution.
///
/// The ASKAP softwa... |
//
// ===============================================================================
// clReflect
// -------------------------------------------------------------------------------
// Copyright (c) 2011-2012 <NAME> & clReflect Authors (see AUTHORS file)
// Released under MIT License (see LICENSE file)
// =====... |
//
// Copyright (c) 2020 <NAME> (laudrup at stacktrace dot dk)
//
// 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 <boost/asio/strand.hpp>
#include <boost/beast/core.hpp>
#include <boost/beast/http.hpp>
... |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed ... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| https://www.mrpt.org/ |
| |
| Cop... |
// @author <NAME>, 1219611
#include "..\include\Train.h"
#include "..\include\TrainLine.h"
HighSpeedTrain::HighSpeedTrain(int ID, TrainDirection dir, TrainLine* l, TrainTime* time)
: Train(ID, TrainType::ALTA_VELOCITA, dir, l, time){
if(dir==TrainDirection::FORWARD){
prevStation=line->get_station... |
#include <v8.h>
#include <assert.h>
#include <string.h>
using namespace std;
using namespace v8;
const char* var_name = "a";
const char* prop_name = "b";
const char* meth_name = "c";
const char* ToCString(const String::Utf8Value& value) {
return *value ? *value : "<string conversion failed>";
}
void ReportExcep... |
/************************************************************************
* Derived from the BSD3-licensed
* LAPACK routine (version 3.7.0) --
* Univ. of Tennessee, Univ. of California Berkeley,
* Univ. of Colorado Denver and NAG Ltd..
* December 2016
* Copyright (c) 2019-2022 Advanced Micro Devices, ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "../moka.h"
Moka::Context test("Moka", [](Moka::Context& it) {
it.has("test blocks", [](Moka::Context& it) {
it.should("succeed if nothing unusual happens", []() {
// Everything. Is. Fine.
});
it.should("fail if an exception is thrown", []() {
throw std::bad_exception();
});
}... |
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2011 The Boeing Company
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This progra... |
// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/views/options/language_combobox_model.h"
#include "base/string_util.h"
#include "chrome/browser/browser_process.h"
#inc... |
// -*- C++ -*-
//
// Package: L1HfRingEtScaleOnlineProd
// Class: L1HfRingEtScaleOnlineProd
//
/**\class L1HfRingEtScaleOnlineProd L1HfRingEtScaleOnlineProd.h L1TriggerConfig/L1ScalesProducers/src/L1HfRingEtScaleOnlineProd.cc
Description: <one line class summary>
Implementation:
<Notes on implementatio... |
#include "aoc21/helpers.h"
#include <vector>
#include <map>
#include <numeric>
namespace {
using BinaryValue = std::vector<bool>;
const std::map<char, BinaryValue> V{
{ '0', { 0, 0, 0, 0 } },
{ '1', { 0, 0, 0, 1 } },
{ '2', { 0, 0, 1, 0 } },
{ '3', { 0, 0, 1, 1 } },
{ '4', { 0, 1, 0, 0 } },
... |
// RegHelper.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// The one and only application object
CWinApp theApp;
using namespace std;
static void Usage();
static BOOL CreateProgId(const char * exepath, const char * progid, const char... |
// matth-x/ArduinoOcpp
// Copyright <NAME> 2019 - 2021
// MIT License
#include <ArduinoOcpp/MessagesV16/ChangeConfiguration.h>
#include <ArduinoOcpp/Core/Configuration.h>
#include <Variants.h>
using ArduinoOcpp::Ocpp16::ChangeConfiguration;
ChangeConfiguration::ChangeConfiguration() {
}
const char* ChangeConfig... |
#include "TrackerWiFi.h"
#include "port.h"
#include "sdspi_host.h"
static Logger _log("twfi");
static spi_context_t context;
TrackerWiFi *TrackerWiFi::instance;
TrackerWiFi::TrackerWiFi() {
instance = this;
}
TrackerWiFi::~TrackerWiFi() {
}
void TrackerWiFi::setup() {
PORT_SPI.setDataMode(SPI_MODE0);
... |
#include "hrtf_func.h"
#include "filter.h"
#include "hrtf.h"
#include "nn_search.hpp"
HRTF::HRTF(int sample_rate, int block_size)
{
_sample_rate = sample_rate;
_block_size = block_size;
hrtf_index_ = -1;
hrtf__elevation_deg = -1.0;
hrtf__azimuth_deg = -1.0;
left_right_swap_ = false;
filter_size_ = -1;
hrtf_nn... |
// Copyright 2019, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief HSV debug viewer code.
* @author <NAME> <<EMAIL>>
* @ingroup aux_tracking
*/
#include "util/u_misc.h"
#include "util/u_debug.h"
#include "util/u_format.h"
#include "tracking/t_tracking.h"
#include <opencv2/opencv.hpp>
... |
/*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
*/
#include "ChatCommandHandlerStrategy.h"
#include "Playerbots.h"
class ChatCommandActionNodeFactoryInterna... |
// Copyright 2016 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.
// TODO: Taken from crashlogger. Revisit.
#include <fcntl.h>
#include <link.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd... |
#include <DQM/RPCMonitorClient/interface/RPCNoisyStripTest.h>
#include "DQM/RPCMonitorClient/interface/RPCRollMapHisto.h"
#include "DQM/RPCMonitorClient/interface/utils.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "Geometry/RPCGeometry/interface/RPCGeomServ.h"
RPCNoisyStripTest::RPCNoisyStrip... |
//== NullDerefChecker.cpp - Null dereference checker ------------*- C++ -*--==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2009-2015, 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:
//
// ... |
#import "libid:F1AA5209-5217-4B82-BA7E-A68198999AFA"
#include "serial/serial.h"
#include <iostream>
#include "json/json.h"
//#define SHOW_FPS
#define SHOW_INFO
#ifdef SHOW_FPS
#include <chrono>
#include <ctime>
#endif
serial::Serial wled_serial;
void cleanup()
{
if (wled_serial.isOpen()) {
wled_serial.close();
... |
#include <nds.h>
#include <stdio.h>
#include <maxmod9.h>
#include "autoboot.h"
extern bool sdRemoveDetect;
extern const char *unlaunchAutoLoadID;
extern char unlaunchDevicePath[256];
extern void unlaunchSetHiyaBoot();
extern bool arm7SCFGLocked;
extern int consoleModel;
extern int launcherApp;
extern u16 bmpImage... |
// Copyright (c) <NAME>. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full
// license information.
#include "Face.h"
// TODO(meganetaaan): move to another file
void transformSprite(M5Canvas *from, M5Canvas *to, float r, float s) {
int width = to->width();
int he... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2011, <NAME>, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/*
* https://github.com/bphermansson/EspSparsnasGateway
*
* Based on code from user Sommarlov @ EF: http://elektronikforumet.com/forum/viewtopic.php?f=2&t=85006&start=255#p1357610
* Which in turn is based on Strigeus work: https://github.com/strigeus/sparsnas_decoder
*
*/
#include <Arduino.h>
#include <SPI.h... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <random>
#include <cmath>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include "display.h"
#include "pose/poseocv.h"
cv::Vec2d project3d(const cv::Mat& K, const Eigen::Quaterniond& Q, const double tx, const double... |
#include "bezier.h"
#include "mesh.h"
#include <iostream>
BezierCurve::BezierCurve(glm::vec3 a, glm::vec3 b, glm::vec3 c, glm::vec3 d) {
controlPoints.push_back(a);
controlPoints.push_back(b);
controlPoints.push_back(c);
controlPoints.push_back(d);
inverseMat = glm::mat4(1.0f);
//glGenVertexArrays(1, &VAO);
}
B... |
/*
* utils.cpp
*
* Created on: 26-Oct-2015
* Author: chandrahas
*/
#include "utils.h"
#include <vector>
#include <iostream>
#include <fstream>
#include <cstring>
#include <algorithm>
#include <cstdlib>
#include <cassert>
#include <map>
#include "Eigen/Dense"
template<class iter>
iter random_shuffle(iter b... |
#include <cstdio>
#include <vector>
#include <cstdlib>
#include <stack>
#include <list>
#include <queue>
#include <set>
#define UNDEFINED -1
typedef int Vertex;
class Graph{
private: std::vector< std::list<Vertex> > _lists;
private: int _numVertex;
private: int _numConnections;
public: Graph(int numVertex,int ... |
/**********************************************************************/
/** Microsoft Windows/NT **/
/** Copyright(c) Microsoft Corp., 1991 **/
/**********************************************************************/
/*
lmocnfg.cxx
... |
///! Copyright (C) <NAME> 2021
///!
///! main.cpp -- AuTaskbar Program
///!
///! /PROJECT - Aurora's Xeneva
///! /AUTHOR - <NAME>
///!
///!================================================
#include <QuBase.h>
#include <QuWindow.h>
#include <string.h>
#include <sys\_sleep.h>
#include <sys\_process.h>
#include <sys\_wa... |
// fpaq0 - Stationary order 0 file compressor.
// (C) 2004, <NAME> under GPL, http://www.gnu.org/licenses/gpl.txt
// To compile: g++ -O fpaq0.cpp
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cassert>
namespace std {} // for MARS compiler
using namespace std;
typedef ... |
#include "compiler.h"
#include <unordered_set>
#include <cstring>
#define SPACE_AMOUNT 7
static std::unordered_set<std::string> variables_list;
void print_asm_expr(Ast *node, char *name);
void print_asm_ops(Ast *node);
char *next_temp_name() {
static int tmpCount = 0;
char *name = new char[20];
snprintf... |
#include <iostream>
#include "util/table-types.h"
#include "hmm/posterior.h"
#include "nnet/nnet-nnet.h"
#include "cudamatrix/cu-device.h"
class Foo{
public:
Foo() {
x[0] = 0.5f;
x[1] = 1.5f;
x[2] = 2.5f;
x[3] = 3.5f;
x[4] = 4.5f;
}
... |
/*
* Copyright (C) 2008 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... |
#ifdef _DEBUG
#include "../../../library/src/debug_template.hpp"
#define DMP(...) dump(#__VA_ARGS__, __VA_ARGS__)
#else
#define DMP(...) ((void)0)
#endif
#include <cassert>
#include <cstdio>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <set>
#include <map>
#inclu... |
#include "queryresult.h"
#include "ui_queryresult.h"
#include <QMainWindow>
#include <QStyle>
#include <QStyleFactory>
using namespace GeoStar::Utility::Data;
QueryResult::QueryResult(QWidget *parent) :
QDialog(parent),
ui(new Ui::QueryResult)
{
ui->setupUi(this);
ui->treeWidget->setHeaderHidden(true);... |
/*
* Copyright (C) 2009-2015 FBReader.ORG Limited <<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.
*
... |
// Range v3 library
//
// Copyright <NAME> 2014
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler/range-v3
#include <sst... |
//
// Programming Assignment #1
//
// <NAME>
//
//
//
/***************************************************************************/
/**
* Name : <NAME>
* Homework # : 1
*
* Conventions :
* - "_": means previous value. Ex: x_last_ -> previous value of x_last
*/
/* Include needed files */... |
#include "Controller.h"
using namespace std;
Controller::Controller(){};
Controller::~Controller(){};
Controller::Controller(View &v, Renderer &s){
renderer = s;
view = v;
}
void Controller::HandleKeyboard(GLFWwindow* window, int key, int code, int action, int mode){
if (key == GLFW_KEY_ESCAPE && action =... |
/***********************************************************************
* File: INTERACT
* Author: <NAME>
************************************************************************/
#include <string>
#include <sstream>
#include <cassert>
#include <time.h>
#include <cstdlib>
#ifdef __APPLE__
#include <openGL/gl.h>
#... |
#pragma once
#include "../common.hpp"
#include <Prelude/HashTable.hpp>
#include <Prelude/Vector.hpp>
#include <Prelude/FastList.hpp>
#include "../collector.hpp"
#include "nodes.hpp"
namespace Mirb
{
class Block;
class Parser;
namespace Tree
{
class Chunk
{
public:
static const size_t main_size = 512;
... |
#include "artifact_utility.h"
#include <iostream>
#include <string>
#include <set>
#include <vector>
#include <fstream>
#include <signal.h>
#include <unistd.h>
#include <stdbool.h>
#include <string.h>
int get_timeout(int argc, char ** argv) {
int timeout;
if (argc <= 1)
return 3600*10;
else {
try {
... |
#include "resourceHandler.hpp"
static const char * LOAD_FAILURE_MSG = "blindjump [crash]: missing resource";
template <typename T, typename E>
void loadResource(const std::string & str, E id, T & array) {
int idx = static_cast<int>(id);
if (!array[idx].loadFromFile(str)) {
throw std::runtime_error(LOA... |
// Local Headers
#include "glitter.hpp"
// Console Color
#include "consoleColor.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Standard Headers
//#include <cstdio>
//#include <cstdlib>
#include <iostream>
// 声明按键函数
void key_callback(GLFWwindow* window, int key, int scancode, int action, in... |
//
// Created by deangeli on 3/15/17.
//
#include "morphology.h"
Image *dilate(Image *image, AdjacencyRelation *AdjRel){
Image* dilatedImage = createImage(image->nx,image->ny,1);
dilatedImage->scalingFactor = image->scalingFactor;
#pragma omp parallel for
for (int p=0; p < image->numberPixels; p++) {
... |
#include <iostream>
#include "Chroma.h"
#include "Ray.h"
#include "Sphere.h"
#include "Hitpoint.h"
#include "BoundingBox.h"
#include "Sampler.h"
Sphere::Sphere() :
Primitive(&stdDiffuse, true, &stdAir), center(Vector3(0, 0, 0)), radius(0.0f) {
area = 0.0f;
}
Sphere::Sphere(float coords[4], Material *ma... |
/*
* Copyright (c) 2018 <NAME>
*
* SPDX-License-Identifier: MIT
*/
#include <functional>
#include <utility>
#include <vector>
using namespace std;
class MyHashMap {
public:
// https://leetcode.com/problems/design-hashset
MyHashMap() : n_items(0), buckets(bucket_block_size, nullptr) {}
void put(int key, i... |
#include "prediction.h"
#include "vehicle.h"
Prediction::Prediction(const MapWaypoints& map, const VehicleState& ego)
: map(map), ego(ego){};
void Prediction::update(nlohmann::json sensor_fusion) {
for (auto& object_entry : sensor_fusion) {
std::size_t id = object_entry[0];
double x = object_entry[1];... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
// -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*-
/* Copyright (c) 2010, 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 ... |
// Copyright 2016 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 "core/fpdfapi/page/cpdf_shadingpattern.h"
#include <algorithm>
#inc... |
/*******************************************************************************
The MIT License (MIT)
Copyright (c) 2015-2021 OC3 Entertainment, Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Softw... |
#include "Arduino.h"
#include "RobotArm.h"
#include "SoftwareSerial.h"
#include "VarSpeedServo.h"
#include "Geometry.h"
#include "BasicLinearAlgebra.h"
float linkLengths[] = {0.05, 0.105, 0.105, 0.045};
RobotArm robotArm(linkLengths);
float positions[10][3];
int noOfPositions=-1;
// This function coverts a comma separ... |
#include "ros/ros.h"
#include <nav_msgs/Odometry.h>
// PCL
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/io/ply_io.h>
#include <pcl/point_types.h>
#include <pcl/octree/octree.h>
#include <pcl/filters/passthrough.h>
#include <pcl/filters/project_inliers.h>
#include <pcl/ModelCoe... |
// Copyright 2021 - present, <NAME>
// All rights reserved.
//
// For the license information refer to LICENSE
#include "ecoro/scope_guard.hpp"
#include "ecoro/sync_wait.hpp"
#include "ecoro/when_all.hpp"
#include "gtest/gtest.h"
#include <string>
TEST(when_all, sanity_check) {
ecoro::sync_wait([]() -> ecoro::task... |
#include "pch.h"
/**********************************************************************
Golgotha Forever - A portable, free 3D strategy and FPS game.
Copyright (C) 1999 Golgotha Forever Developers
Sources contained in this distribution were derived from
Crack Dot Com's public release of Golg... |
/*
Copyright 2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, ... |
/**
* @file runDiamond.cpp
*
*/
// Example
//
// Note that this example needs updating. It works fine, but is
// written in a way that is less than transparent or
// user-friendly. This could be rewritten using class Interface to
// make things simpler.
#include <iostream>
#include <string>
#inc... |
/*
* Copyright (c) 2020 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <cstdlib>
#include <vector>
#include <set>
#include "delfem2/dtri.h"
#include "delfem2/objf_geo3.h"
#include "delfem2/objfdtri_objfdtri23.h"
#inc... |
// Copyright (c) 2017 <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:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of co... |
#include "nuclear_pedigree.h"
NuclearPedigree::NuclearPedigree(const char* pedFile) {
htsFile *hts = hts_open(pedFile, "r");
kstring_t s = {0,0,0};
std::vector<std::string> v;
std::vector<std::string> smIDs;
while(hts_getline(hts,'\n', &s)>=0) {
if ( s.s[0] == '#' ) continue;
std::string line(s.s);
... |
#include <Sample5.h>
#include <FilePathManager.h>
#include <NotificationCenter.h>
#include "CoreItem.h"
#include "CoreVector.h"
#include "JSonFileParser.h"
#include <iostream>
// Kigs framework Sample5 project
// CoreItem features :
// - import / export JSON objects
// - create/evaluate mathematical expression
// - a... |
//===-- TypeStreamMerger.cpp ------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <stdio.h>
#include <stdlib.h>
#include <memory>
#include <string>
#include "betting_trees.h"
#include "canonical_cards.h"
#include "cfr_values.h"
#include "cfrd_eg_cfr.h"
#include "game.h"
#include "hand_tree.h"
#include "reach_probs.h"
#include "resolving_method.h"
#include "vcfr_state.h"
using std::shared... |
/*
NekOS
Physical memory management unit
*/
#include "physmem.h"
// bitmap bitness
// how many bits stores one element of bitmap
static constexpr size_t BB = 8;
namespace physmem {
static u8* bitmap;
static size_t page_count;
static size_t used_page_count;
static size_t start_search_free_page; // start in... |
/*
* Copyright 2017-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance with the Business Source License, use of this
* software will be governed by... |
/*
Copyright [2017-2020] [IBM Corporation]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... |
/***************************************************************************
* Copyright (C) by gempa GmbH *
* EMail: <EMAIL> *
* *
* You can redis... |
/*******************************************************************************
** __ __
** / \ ___ _ _ ___ / \
** / \ | | | | / \ | \ / \
** / /\ \ | / | | / \ ... |
#include <fstream>
#include <iostream>
#include <map>
#include <ostream>
#include <string>
#include <vector>
#include "gtest/gtest.h"
#include "test_tools.h"
#include "easyzip/easyzip.h"
using namespace easyzip;
TEST(StringZipTest, Test1) {
if (IsFileExists(L"zip测试.zip"))
std::remove("zip测试.zip");
Zipper zip... |
// Copyright (c) 2010-2021, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... |
#define CYBOZU_TEST_DISABLE_AUTO_RUN
#include <cybozu/test.hpp>
#include <cybozu/inttype.hpp>
#include "parser.hpp"
#include <iostream>
CYBOZU_TEST_AUTO(parseFloat)
{
const struct {
const char *src;
bool ok;
float v;
} tbl[] = {
{ "0", true, 0 },
{ "0.0", true, 0 },
{ "1.5", true, 1.5 },
{ "-1", true, ... |
#include "DAW.h"
std::vector<Note> DAW::loadNotesFromTrack(TrackChunk & track, int timeDivision)
{
std::vector<Note> notes;
float tickFraction = timeDivision * 2.0f;
long time = 0;
int program_change = 0;
std::vector<Note> clickedNotes;
auto events = track.getEvents();
for (auto event : events) {
const Even... |
/*
Niniejszy program jest wolnym oprogramowaniem; możesz go
rozprowadzać dalej i / lub modyfikować na warunkach Powszechnej
Licencji Publicznej GNU, wydanej przez Fundację Wolnego
Oprogramowania - według wersji 2 tej Licencji lub(według twojego
wyboru) którejś z późniejszych wersji.
Niniejszy program rozpowszechniany ... |
/*
Copyright (C) 2018 <NAME>. - All Rights Reserved
* You may use, distribute and modify this code under the
* terms of the MIT license.
* You should have received a copy of the MIT license with
* this file. If not visit https://opensource.org/licenses/MIT
*/
#include "evolvent.hpp"
#include <cassert>
#include <cma... |
// Copyright (c) 2017, <NAME> al. All rights reserved.
// Please see LICENSE file
#include <iostream>
#include <fstream>
#include <sys/time.h>
#include <string>
#include <cstring>
#include <unordered_map>
#include <vector>
#include <assert.h>
#include <atomic>
#include <pthread.h>
#include "src/preprocess/node.h"
#in... |
/*
* Copyright 2010-2011, <NAME>. All Rights Reserved.
* Copyright 2004-2009, pinc Software. All Rights Reserved.
* Distributed under the terms of the MIT license.
*/
#include "ntp.h"
#include <errno.h>
#include <netdb.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/select.h>
#include ... |
// ui
#include <luiconf.h>
#include <core/ui_manager.h>
#include <graphics/ui_dcomp.h>
#include <graphics/ui_graphics_impl.h>
#include <debugger/ui_debug.h>
// c++
#include <cassert>
// window dcom
#define NOMINMAX
struct IDCompositionVisual;
#include <Windows.h>
#include <dcomp.h>
// longui namespace
namespace Long... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
#include <bits/stdc++.h>
#include "../util/helpers.cpp"
using namespace std;
// http://adventofcode.com/2018/day/17
int spring_x = 500;
int spring_y = 0;
pii x_bounds = make_pair(500, 500);
pii y_bounds = make_pair(numeric_limits<int>::max(), numeric_limits<int>::min());
// setters and getters offsetting by min bo... |
#include "fuel.hpp"
#include <algorithm>
#include <cmath>
#include <iostream>
#include <limits>
const size_t FuelGrid::GRID_SIZE = 300;
FuelGrid::FuelGrid(int grid_serial) : serial(grid_serial) {
for (size_t x = 0; x < GRID_SIZE; ++x) {
std::vector<std::unique_ptr<FuelCell>> line_x;
for (size_t y ... |
#include "stdafx.h"
#include "GameObject.hpp"
#include "mesh.hpp"
#include "model.hpp"
#include "settings.hpp"
#include "physics.hpp"
#include "constants.hpp"
GameObject::GameObject(glm::vec3 position, glm::vec3 rotationEA, glm::vec3 scale, std::string modelName, int makeStatic, bool grabbable, bool usePhysics, bool c... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services 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:
* Redistributions of source code must retain the above copyright notice, this list of ... |
#include <iostream>
#include <vector>
#include <string>
#include <iomanip>
#include <algorithm>
#include "sqlite3.h"
using std::string;
using std::cout;
using std::cin;
using std::vector;
using std::endl;
const char separator = ' ';
const int nameWidth = 35;
const int numWidth = 5;
const int MAX_N = 100;
struct Pr... |
// Copyright (c) 2019 The Veil developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/veil/tutorialwidget.h>
#include <qt/veil/forms/ui_tutorialwidget.h>
#include <qt/guiutil.h>
#include <QDebug>
#include <QFile... |
/*
Copyright 2016 - 2017 <NAME>.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http ://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.