text stringlengths 3.08k 12.5k |
|---|
#include "TestSerializeAllTypes.h"
#include "AllTypes.h"
#include "SerializedObject.h"
#include <stdlib.h>
#include <iostream>
#include <cmath>
#include "mg_extensions.h"
#include "mg_Factory.h"
#include "tests/Logger.h"
extern std::string getSerializedString(const mg::SerializedObject* object);
extern void deserializ... |
//
// Created by Milk on 2021/5/16.
//
#include "DexDump.h"
#include "utils/HexDump.h"
#include "utils/Log.h"
#include "VmCore.h"
#include "utils/PointerCheck.h"
#include "jnihook/Art.h"
#include "jnihook/ArtM.h"
#include <cstdio>
#include <fcntl.h>
#include <cstring>
#include <cstdlib>
#include <map>
#include "unist... |
/* Copyright (c) 2005, Regents of Massachusetts Institute of Technology,
* Brandeis University, Brown University, and University of Massachusetts
* Boston. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019 ArangoDB GmbH, Cologne, Germany
///
/// 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... |
#include "common.c"
#include "math.h"
#include "blas.h"
#define MAX(a, b) (a > b ? a:b)
#define MIN(a, b) (a > b ? b:a)
/** Kronecker product of a real A and a real B. */
void KronReal(const double* A, int ma, int na, const double* B, int mb, int nb, double* C) {
int i,j,k,l;
const double* pa;
con... |
/*
Copyright (c) 2014 eBay Software Foundation
Licensed under the MIT License
*/
#include "maxdnn/multiconvolution_64.hpp"
#include "maxdnn/ConvolutionIndexes.hpp"
#include "maxdnn/ConvolutionBlockings.hpp"
#include "maxdnn/GpuData.hpp"
#include "maxdnn/FileName.hpp"
#include <cuda.h>
#include <cuda_runtime.h>
#include... |
// This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include "pass_sample.hpp"
#include <string>
#include "cell.hpp"
#include "lbench.hpp"
#include "lgedgeiter.hpp"
#include "lgraph.hpp"
#include "perf_tracing.hpp"
static Pass_plugin sample("pass_sample", Pass_sample::setup);
void ... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#define _USE_MATH_DEFINES
#include <math.h>
float alpha = 0.0f, beta = 0.5f, radius = 100.0f;
float camX, camY, camZ;
void spherical2Cartesian() {
camX = radius * cos(beta) * s... |
/* ========================================
* Swell - Swell.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#include "SwellProcessor.h"
SwellProcessor::SwellProcessor()
{
paramBindings =
{
{THRESHOLD, &A},
{SWELL, &B},
{DRY_WET, &C}
};
A = 0.9;
B =... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2026-01-04
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
/*
* Copyright (c) Facebook, Inc.
* Licensed under the Apache License, Version 2.0 (the "License")
*
* Usage:
* ./SkLocalStorageIterator
*
* BPF socket local storage map iterator supported is added in 5.9.
* But since it takes locks during iterating, it may have performance
* implication if in parallel some ... |
//===-- alignment.cpp -------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
// Copyright (c) 2015 Intel 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... |
/*
* Copyright 2009-2020 The VOTCA Development Team (http://www.votca.org)
*
* 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
*
* Unle... |
#include <ros/ros.h>
#include <tf/transform_listener.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/PointStamped.h>
#include <visualization_msgs/Marker.h>
ros::Publisher marker_pub;
ros::Publisher location_pub;
visualization_msgs::Marker marker;
geometry_msgs::Pose p;
/*void locCB(const geometry_ms... |
//
// GUIString.mm
// MarkPad Project
//
// (c) <NAME> - http://www.telecom-paristech.fr/~elc
// (c) <NAME> - http://brunofruchard.com/
// Copyright (c) 2017/2020 All rights reserved.
//
#include <iostream>
#include "Conf.h"
#include "GUI.h"
#include "Strings.h"
using namespace std;
Strings Strings::instance;
co... |
#include "hero.h"
#include <iostream>
const double kHorizontalVel = 7.0;
const double kGravityAcc = 50.0;
// 3 tiles high.
const double kJumpVel = -17.9;
// 2 tiles high.
const double kJumpVelWithBox = -14.9;
const double kGrabReach = 0.3;
const char* ToString(JumpState j) {
switch(j) {
case JumpState::CAN_JUM... |
// Author: <NAME> (@mel-lain)
#include <iostream>
#include <boost/filesystem.hpp>
#include "boost/program_options.hpp"
#include "include/common.h"
#include "include/parameters.h"
#include "include/topmine_impl.h"
namespace po = boost::program_options;
bool parse_parameters(int argc, char* argv[], Parameters* param... |
///*|-----------------------------------------------------------------------------
// *| This source code is provided under the Apache 2.0 license --
// *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
// *| See the project's LICENSE.md for details. ... |
/* ************************************************************************
* Copyright 2016-2022 Advanced Micro Devices, Inc.
*
* ************************************************************************ */
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "testing_common.hpp"
/* =================... |
/*
Copyright 2016 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at
http://aws.amazon.com/apache2.0/
or in the "license" file acco... |
#include <iostream>
#include <chrono>
#include <fstream>
#define _USE_MATH_DEFINES
#include <math.h>
#include "toolbox.hpp"
Mesh generateChessboard(
unsigned int width, // Width and height of the chessboard, measured in tiles
unsigned int height,
float tileWidth, // Width and height of eac... |
// 日本語。
#include <stdio.h>
#include <string.h>
#include <crtdbg.h>
#include "WWMFReader.h"
#include "WWMFReadFragments.h"
#include <SDKDDKVer.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include "WWCommonUtil.h"
#include <mfapi.h>
static HRESULT
ReadHeader(const wchar_t *inputFile)
{
HRESULT hr = S_OK;
... |
// TEST 3
// Knapsack DP
// [Marks]
// 1 <= N <= 10 - 10m
// 1 <= N <= 10000 - 5m
// 1 <= N <+ 1000000 - 2m
// Tricky Cases - 2m
//
// Average time needed to produce file of N:
// N = 10 - 0.002s
// N = 10000 - 0.081s too long
// N = 1000000 - 7.668s too long
// File manipulation
#include <fstream>
// Ra... |
/* written by <NAME> - <EMAIL>
* the code found in this file is licensed under:
* - Unlicense - http://unlicense.org/
*
* this file is from https://github.com/nickshin/CheatSheets/
*
*
* this code will show the basic principles of:
* - constructors
* - destructors
* - base, derived, multiple inheritance and f... |
// Copyright (c) 2015 The Brick Authors.
#include "brick/message_delegate/app_window_message_delegate.h"
#include <string>
#include "brick/window_util.h"
#include "brick/helper.h"
namespace {
const char kNameSpace[] = "AppWindowEx";
const char kMessageSetSizeName[] = "SetSize";... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2014, ITU/ISO/IEC
* All rights reserve... |
#include "OBJ.h"
#include "Base.h"
#include "Debugging/Base.h"
#include "Importers/Import.h"
#include "Memory/Base.h"
#include "Parsing.h"
#include "Memory/Arena.h"
namespace OBJDeclaration {
enum Type {
Invalid = 0,
VertexTexture,
VertexNormal,
Vertex,
Face,
UseMtl,... |
/*
* HttpPdu.cpp
*
* Created on: 2013-10-1
* Author: <EMAIL>
*/
#include "util.h"
#include "HttpPdu.h"
#include "json/json.h"
#define HTTP_HEADER "HTTP/1.1 200 OK\r\n"\
"Cache-Control:no-cache\r\n"\
"Connection:close\r\n"\
"Content-Length:%d\r\n"\
"Content-Type:application/javascript\r\n\r\n%s(%s)"
#d... |
// Copyright 2019 VMware, all rights reserved
/**
* Test public functions for RocksDBMetadataStorage class.
*/
#define USE_ROCKSDB 1
#include "Logger.hpp"
#include "gtest/gtest.h"
#include "rocksdb/key_comparator.h"
#include "rocksdb/client.h"
#include "DbMetadataStorage.hpp"
#include "direct_kv_db_adapter.h"
#incl... |
/* unit.cpp, part of the Global Epidemic Simulation v1.0 BETA
/* Administrative Unit class and associated functions
/*
/* Copyright 2012, MRC Centre for Outbreak Analysis and Modelling
/*
/* Licensed under the Apache License, Version 2.0 (the "License");
/* you may not use this file except in compliance with the Licen... |
/*
DigitalRainAnim.cpp - Library for Digital Rain Animation for TFT_eSPI.
Created by <NAME>, December 30, 2020.
Released into the public domain.
*/
#include "DigitalRainAnim.h"
DigitalRainAnim::DigitalRainAnim(){}
//initialze with only tft
void DigitalRainAnim::init(TFT_eSPI* tft){
tft_DigitalRainAnim = t... |
#include "gameData.h"
#include <string>
#include <Windows.h>
#include <iostream>
#include <shlobj.h>
#include <logger.h>
// Store the singleton instance
std::shared_ptr<Data> Data::instance;
// store a player entity
std::shared_ptr<Entity> Data::player;
// store the file path to %appdata%
std::filesystem::path Data::f... |
// Copyright (c) 2019-2022, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include <exception>
#include <gtest/gtest.h>
#include "serac/infrastructure/cli.hpp"
#include "serac/infrastructur... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE ... |
#include "my_scene.h"
#include <iostream>
#include <math.h>
#include <GL/glew.h>
#include <GL/gl.h> // OpenGL include file
using namespace std;
/**
* Constructor
*
* @param radius
*/
MyScene::MyScene(float radius)
{
std::cout << "constructing : MyScene" << std::endl;
_currentObject = 0;
_radius = radi... |
/*
* Copyright (C) 2015 <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 of the License, or
* (at your option) any later version.
*
* This program is distribute... |
#include "meta-velveth.hh"
int main( int argc, char* argv[] ){
MetaVelvetH* mvh = new MetaVelvetH( argc, argv );
cout << "[meta-velveth] " << "Import sequences..." << endl;
mvh->importSequences( argc, argv );
cout << "[meta-velveth] " << "...done (import sequences)." << endl << endl;
cout << "[meta-velveth]... |
// 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 in... |
// -*- C++ -*-
//
// Package: Alignment/CommonAlignment
// Class: FilterOutLowPt
//
//
// Original Author: <NAME>
#include <memory>
#include <vector>
#include <map>
#include <set>
#include <utility> // std::pair
#include "TMath.h"
// user include files
#include "FWCore/Utilities/interface/InputTag.h"
#in... |
#include "stdafx.h"
bool CDialogResizeHelper::EvalRect(UINT id, CRect & out) const {
for(t_size walk = 0; walk < m_table.get_size(); ++walk) {
if (m_table[walk].id == id) {
CRect client; WIN32_OP_D( m_thisWnd.GetClientRect(client) );
return _EvalRect(walk, client.Size(), out);
}
}
return false;
}
bool CD... |
#pragma warning ( disable : 4786 )
#include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cctype>
#include <cstring>
#include <string>
#include <algorithm>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <queue>
#include <stack... |
/*
* School: Diablo Valley College
* Term: 2017 Fall
* Course: ComSc-110-3120,
* Introduction to Programming with C++
*
* Chapter: 12
* Program: Pr12b-Weather-Agopian-Armand.cpp
* Author: <NAME>
* Date: November 14, 2017
*
* Purpose: Similar to program 12a.
*
* Also, learn to sort based on... |
/*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... |
/*
* MIT License
*
* Copyright (c) 2017 by <NAME> at Michigan State University
*
* 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 r... |
#include <pybind11/pybind11.h>
#include <pybind11/eigen.h>
#include<pybind11/numpy.h>
#include<fstream>
#include<iostream>
#include <vector>
#include <Eigen/Dense>
using namespace std;
using namespace Eigen;
ArrayXd find_max(VectorXd mMat)
{
VectorXd::Index maxRow;
double max = mMat.maxCoeff(&maxRow);
Matrix<bool... |
/*
* Copyright 2008, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include "ancillary_data.h"
#include <stdlib.h>
#include <string.h>
#include <new>
#include <util/DoublyLinkedList.h>
#define MAX_ANCILLARY_DATA_SIZE 128
struct ancillary_data : DoublyLinkedListLinkImpl<ancillary_data>... |
#include <assert.h>
#include "../include/monoids.h"
#include "../include/handoff.h"
template<typename T>
Handoff<T> sub(Handoff<T>& h, int id) {
Handoff<T> res;
stringstream ss;
h.pack(ss, id);
res.unpack(ss);
return res;
}
void test1()
{
Handoff<int> o1(1);
Handoff<int> o2(2);
// init
o1.plus(4); ... |
/**
* @file QSolitaire.cpp
* @brief main view, can contains multiple games
* @author <NAME> xgreso00
*/
#include <QtWidgets>
#include "QSolitaire.h"
/**
* @brief QSolitaire::QSolitaire constructor
* @param parent parent widget
*/
QSolitaire::QSolitaire(QWidget *parent) :
QMainWin... |
#include "DescTables.hpp"
#include <cstring>
#include "Debug.hpp"
XLL_LOG_CATEGORY("core/desctables");
struct GdtPtr
{
uint16_t limit;
const void* base;
} __attribute__((packed));
struct IdtEntry
{
uint16_t targetLow;
uint16_t targetSelector;
uint16_t flags;
uint16_t targetMid;
uint32_t targetHigh;
u... |
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include "pvideo.h"
#include "duiwin.h"
#include "pkeybrd.h"
#include "duimenu.h"
static char barSpace[] = " ", space[] = " ";
/*-----------------------------------------------------
*/
int InitMenus(void) { return InitKeys() && InitWindows(); }
void Exit... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <utility>
#include <set>
using namespace std;
const double EPS = 1e-10;
set<double> state(double t, const vector< pair<int, int> > &P, int rw... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
// 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 applicabl... |
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/image_encodings.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/opencv.hpp>
#include <opencv2/tracking/tracker.hpp>
#include <boost/filesystem.hpp>
#include <opencv2/core.hpp>
#include <opencv2/c... |
/**
* 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 "Prototypes.h"
double signalValueViaSincAt(double *x, int N, double t, double sincLength, double stretch,
FunctionPointer3DoublesToDouble windowFunction, double windowParameter, bool normalizeDC)
{
int L = (int) floor(sincLength);
int ti = (int) floor(t); // integer part of t
if( ti < 0 || ti... |
//
// main.cpp
// pngdec_test
//
// Created by <NAME> on 5/9/21.
//
#include "../src/PNGdec.h"
PNG png; // static instance of class
/* Windows BMP header info (54 bytes) */
uint8_t winbmphdr[54] =
{0x42,0x4d,
0,0,0,0, /* File size */
0,0,0,0,0x36,4,0,0,0x28,0,0,0,
0,0,0,... |
#ifdef DOXYGEN_SHOULD_SKIP_THIS
/**
Simple grasp planning client building only a very basic GraspPlanning.srv
Copyright (C) 2016 <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;... |
/*
* vehicle.cc
*
* created: Oct 2016
* author: <NAME>
*/
/*
* information about this example is given in
* http://arxiv.org/abs/1503.03715
* doi: 10.1109/TAC.2016.2593947
*/
#include <iostream>
#include <array>
/* SCOTS header */
#include "scots.hh"
/* ode solver */
#include "RungeKutta4.hh"
/* time pr... |
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Enclave_t.h"
#include "wasm_export.h"
#include "libc_wasi_benchmark.h"
#define GLOBAL_HEAP_SIZE (160 * 1024 * 1024)
#defi... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
#include "net/ConfigFileReader.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <map>
#define MAX_PROC_NUM 10
char ProcName[48][MAX_PROC_NUM] = {0};
int nSec,ProcNum;
char Param[MAX_PROC_NUM] = {0};
typedef std::map<std::string, in... |
/****************************************************************************
**
** Copyright (C) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the Qt Script Generator project on Qt Labs.
**
** $QT_BEGIN_LICENSE:LGPL$
... |
/* Copyright (c) 2017-2018, <NAME> */
#define UNW_LOCAL_ONLY
#include "roq/logging.h"
#include <libunwind.h>
#include <cxxabi.h>
#include <signal.h>
#include <spdlog/async.h>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/stdout_sinks.h>
#include <algorithm>
#include <chrono>
#include <fstream>
#... |
//sgillen@20172214-15:22 really just a simple PID controller, subscribes to a given sensor topic,
//a given goal topic (IE what we want the sensor to read) and publishes a given command effort topic
//ros already has one of these built in but I wanted more control over what was going on to filter
//with a simple averag... |
#include <cstdio>
#include <set>
#include <vector>
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vii;
typedef set<int, greater<int>> st;
typedef vector<st> vst;
struct Node
{ int sz, label; /* size, label */
Node *p, *pp, *l, *r; /* parent, path-parent, left, right pointers */
Node() { p =... |
/*
Q Light Controller Plus
hiddmxdevice.cpp
Copyright (c) <NAME>
<NAME>
<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.o... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <time.h>
#include "sys/types.h"
#include "sys/sysinfo.h"
#include "FourRussians.h"
#include "../edlib/edlib.h"
#define DEFAULT_FILENAME "input.txt"
#define FASTA_ALL false
string loadFromFasta(string filename){
ifstream file(fi... |
#include <libv/core/miscmath.hpp>
#include <libv/lma/lma.hpp>
#include <libv/graphic/viewer_context.hpp>
#include <libv/geometry/rotation.hpp>
#include <GL/gl.h>
#include <boost/function.hpp>
#include <boost/thread.hpp>
#include <boost/bind.hpp>
template<class T> using vector = std::vector<T,Eigen::aligned_allocato... |
/* <NAME>
This is actually "easy" in concept but you need to be quite careful when implementing the queries
Observation 1:
Obviously transposing / complementing G for every type 5/6 query results in O(V^2) time for those 2 queries...
However, note that tranpose: t(G) and complement: c(G) are self-inverse, ie ... |
// Copyright (C) 2007 <NAME> <ruben dot smits at mech dot kuleuven dot be>
// Version: 1.0
// Author: <NAME> <ruben dot smits at mech dot kuleuven dot be>
// Maintainer: <NAME> <ruben dot smits at mech dot kuleuven dot be>
// URL: http://www.orocos.org/kdl
// This library is free software; you can redistribute it ... |
/* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2016 INRIA.
*
* 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
*
*... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2012-2015 DreamWorks Animation LLC
//
// All rights reserved. This software is distributed under the
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
//
// Redistributions of source code must retain the abov... |
/*************************************************************************/
/* editor_property_name_processor.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "DisoCons.h"
#include "../Globals.h"
#include "../AbstractKmer.h"
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
using std::cerr;
using std::cout;
using std::endl;
DisoCons* DisoCons::instance;
AbstractSupplementaryInformationProvider const* DisoCons::getInstance() {
if (instanc... |
#include <iostream>
#include <glbinding/gl/gl.h>
#include <glbinding/ContextInfo.h>
#include <glbinding/Version.h>
#include <GLFW/glfw3.h>
#include <globjects/globjects.h>
#include <globjects/logging.h>
#include <globjects/Uniform.h>
#include <globjects/Program.h>
#include <globjects/Shader.h>
#include <globjects/... |
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... |
#include "ImgProc.h"
#include "Matrix.h"
void ImgProc::Init(Local<Object> target) {
Nan::Persistent<Object> inner;
Local<Object> obj = Nan::New<Object>();
inner.Reset(obj);
Nan::SetMethod(obj, "undistort", Undistort);
Nan::SetMethod(obj, "initUndistortRectifyMap", InitUndistortRectifyMap);
Nan::SetMethod(... |
#include "promethee_thread.h"
#include "../promethee_function_adapter.h"
#include "../normalize.h"
#include <thread>
#include <iostream>
#include "../inputreader.h"
#include "../outputwriter.h"
#include "../parse_directory.h"
Data PrometheeThread::readData(){
InputReader inputReader = InputReader();
Data data = Da... |
/*
* LLCEncodeHelper.cpp
*
* encoding = LLCEncodeHelper(dictWords,imWords,nearestNeighborResult,beta,outputFullMat)
*
* where size(dictWords) = [m n], size(imWords) = [m l]
* and size(nearestNeighborResult) = [n l]
*
* Author: <NAME>
* Modified By: <NAME>
* May 11 - added sparse encoding matrix output, typ... |
#include <cassert>
#include <cmath>
#include <iostream>
#include "adaptive_maximization.h"
#include "fantom.h"
#include "utilities.h"
using std::cout;
using std::endl;
using std::set;
using std::string;
using std::vector;
set<int> GDT(const EvaluationOracle& oracle, const set<int>& omega, double rho,
int size_c... |
// Copyright (c) 2017 Google. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... |
#include "QP.h"
#include <iostream>
#include <sstream>
using namespace MSS;
void print_matrix(const char* name, const quadprogpp::Matrix<double>& A, int n=-1, int m=-1)
{
std::ostringstream s;
std::string t;
if (n == -1)
n = A.nrows();
if (m == -1)
m = A.ncols();
s << name << ": " << std::endl;
fo... |
//
// File: Characters.cpp
// Created by: <NAME> - <EMAIL>
//
#include "renderer/Characters.h"
#include "include.h"
#include "math.h"
#include "GL/gl.h"
#include "GL/glu.h"
using namespace std;
cCharacterList * pCharacterList = NULL;
cCharacter::cCharacter ()
{
m_id = 0;
m_angle = 0.0f;
m_body = 0;
m_hue = 0;... |
// Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
/*
* Vterrain.cpp
*
* Created on: 8 oct. 2018
* Author: lucie
*/
#include "Vterrain.h"
#include "helpers.h"
Vterrain::Vterrain(){
}
Vterrain::Vterrain(b2World* world, sf::RenderWindow& window, config::sTerrain terrainParam, int WINDOW_X_PX, double bodyLength)
: Terrain(world, window, terrainParam, WINDOW... |
// ************************************************************************
// Copyright (c) 2007 Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the PSUADE team.
// All rights reserved.
//
// Please see the COPYRIGHT_and_LICENSE file for the copyri... |
#pragma once
#include <wgut/ImGuiImplScreenState.h>
#include <imgui.h>
#include <Windows.h>
// HWND g_hWnd = nullptr;
// INT64 g_Time = 0;
// INT64 g_TicksPerSecond = 0;
ImGuiMouseCursor g_LastMouseCursor = ImGuiMouseCursor_COUNT;
bool ImGui_Impl_ScreenState_Init()
{
// ImGui_ImplWin32_Init(hwnd);
... |
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... |
/* CTermios.cpp
*
* Copyright (C) 2017 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "CTermios.h"
#include "CCBuffer.h"
#include <unistd.h>
#include <errno.h>
Local<FunctionTemplate> CTermios::init() {
Local<Func... |
/*
* Copyright 2014 - 2016, <NAME>.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dist... |
// Used for memory-mapped functionality
#include <windows.h>
#include "sharedmemory.h"
//#include <iostream>
#include <string>
// Used for this example
#include <stdio.h>
#include <conio.h>
#include "serial.h"
#include <sys/time.h>
#include <math.h>
#define _USE_MATH_DEFINES
// Name of the pCars memory mapped file
#... |
#include "pch.h"
#include "PrismSnesInstr.h"
#include "SNESDSP.h"
// *****************
// PrismSnesInstrSet
// *****************
PrismSnesInstrSet::PrismSnesInstrSet(RawFile *file,
PrismSnesVersion ver,
uint32_t spcDirAddr,
... |
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2021 YADRO.
*/
#include "pcie_cfg.h"
#include "dbus.hpp"
#include "options.hpp"
#include <phosphor-logging/log.hpp>
#include <xyz/openbmc_project/Control/PCIe/server.hpp>
#include <charconv>
using namespace phosphor::logging;
using namespace sdbusplus::x... |
#include "formatters.h"
#include <stdio.h>
#include <stdarg.h>
#include "print_helpers.h"
#include "message_logging.h"
// ====== FormatterNode =====================================================
FormatterNode::FormatterNode(uint32_t idx, const FormatterDef &def)
: node_idx_(idx)
, def_(def) {
}
bool Forma... |
// 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
/**
* PUP format.
*
* Copyright 2017-2021. Orbital project.
* Released under MIT license. Read LICENSE for more details.
*
* Authors:
* - <NAME> <<EMAIL>>
*/
#include "pup.h"
#include <orbital/crypto_ps4.h>
#include <zlib.h>
#include <stdexcept>
constexpr U32 PUP_MAGIC = 0x1D3D154F;
enum PupEndian {
LI... |
#include <Arduino.h>
// Your GPRS credentials (leave empty, if not needed)
const char apn[] = "TM"; // APN (example: internet.vodafone.pt) use https://wiki.apnchanger.org
const char gprsUser[] = ""; // GPRS User
const char gprsPass[] = ""; // GPRS Password
// SIM card PIN (leave empty, if not defined)
const cha... |
#include "pxt.h"
#include "STMLowLevelTimer.h"
#include "Accelerometer.h"
#include "light.h"
namespace pxt {
#ifdef STM32F1
STMLowLevelTimer lowTimer(TIM4, TIM4_IRQn);
#else
STMLowLevelTimer lowTimer(TIM5, TIM5_IRQn);
#endif
STMLowLevelTimer jacdacTimer(TIM2, TIM2_IRQn);
LowLevelTimer* getJACDACTimer()
{
return &... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.