text stringlengths 3.08k 12.5k |
|---|
/**
* Copyright (c) 2020, Horizon Robotics, Inc.
* All rights reserved.
* @Author:
* @Mail: @horizon.ai
*/
#include <signal.h>
#include <unistd.h>
#include <malloc.h>
#include <iostream>
#include <sstream>
#include <memory>
// #include "hbipcplugin/hbipcplugin.h"
#include "hobotlog/hobotlog.hpp"
#include "rtspplu... |
/**
* @file main.cpp
* @brief Arduino Lux Meter with OLED Graph
* @author KrizTioaN (<EMAIL>)
* @date 2021-08-06
* @note BSD-3 licensed
* @details Dim hallway 0.1 lux
* Moonlit night 1 lux
* Dark room ... |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
int computeArea(int A, int B, int C, int D, int E, int F, int G, int H) {
int area1 = (C - A) * (D - B);
int area2 = (G - E) * (H - F);
int l1, l2, r1, r2;
l1 = (A < E) ? E ... |
#include<bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using ii = pair<int,int>;
using vii = vector<ii>;
using vvi = vector<vi>;
using ll = long long;
using llu = unsigned long long;
using vb = vector<bool>;
using vvb = vector<vb>;
using vd = vector<double>;
using vvd = vector<vd>;
using vll = vector<ll>... |
// Boost.Bimap
//
// Copyright (c) 2006-2007 <NAME>
//
// 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)
// VC++ 8.0 warns on usage of certain Standard Library and API functions that
// can be cause buffer ove... |
/*
* UIToolkitCMDLineExample.cpp
* !CHOAS
* Created by <NAME>.
*
* Copyright 2012 INFN, National Institute of Nuclear Physics
*
* 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 Lic... |
#include "stdio.h"
#include "prop2DAcoVTIDenQ_DEO2_FDTD.h"
void test() {
long freeSurface = 1;
long nthread = 1;
long nx = 51;
long nz = 41;
long nbx = 51;
long nbz = 8;
long nsponge = 10;
float dx = 25;
float dz = 25;
float dt = 0.001;
Prop2DAcoVTIDenQ_DEO2_FDTD *op = ne... |
#include <Configuration.h>
#include <S3.h>
#include <Tasks.h>
#include <Utils.h>
#include <config.h>
#include <stdlib.h>
#include <cstdint>
#include <string>
#include <S3.h>
#include <gflags/gflags.h>
DEFINE_int64(nworkers, -1, "number of workers");
DEFINE_int64(rank, -1, "rank");
DEFINE_string(config, "", "config")... |
struct Register {
uint16 data = 0;
bool modified = false;
inline operator uint() const {
return data;
}
inline auto assign(uint value) -> uint16 {
modified = true;
return data = value;
}
inline auto operator++() { return assign(data + 1); }
inline auto operator--() { return assign(data - ... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
#include <cstdint>
#include <iostream>
#include <cassert>
#include <cmath>
class Average
{
private:
std::int_least32_t m_total;
std::int_least8_t m_numbers;
public:
Average(std::int_least32_t sum = 0, std::int_least8_t numbers = 0)
: m_total{sum}, m_numbers{numbers}
{
}
Average &operato... |
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <iostream>
#include <cmath>
using namespace cv;
using namespace std;
int Hmin,Hmax,Smin,Smax,Vmin,Vmax,k,s,d,tre;
static void ch(int, void*)
{
}
int main(int argc, char ** argv )
{
Mat src, HSV, dst, dx ,dy,mask,gray... |
#include <position_controller/initialPose.h>
namespace position_controller
{
void moveBaxter::fillJointNames()
{
joints_names_.clear();
joints_names_.push_back(side_ + "_e0");
joints_names_.push_back(side_ + "_e1");
joints_names_.push_back(side_ + "_s0");
joints_names_.push_back(side_ + "_s1");... |
// list of used IO ports
#define USE_PORTA
#define USE_PORTB
#define USE_PORTC
// NOTE that you need to add library platform independent and platform specific
// folders to compiler include files search paths:
// '../../mcucpp' and '../../mcucpp/ARM/STM32' respectively for this example
// defination of T... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2022, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
#ifdef _WIN32
#include <windows.h>
#endif
#include <stdio.h>
#include <iostream>
#include "topic.h"
#include "producer.h"
using namespace std;
Producer::ItemType Producer::ItemType::create(size_t len) {
ItemType ret(new char[len], len);
ret._shouldDelete = true;
return std::move(ret);
}
Producer::ItemT... |
/*
This file is part of the PhantomJS project from Ofi Labs.
Copyright (C) 2011 <NAME> <<EMAIL>>
Copyright (C) 2011 <NAME> <<EMAIL>>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source... |
//===-- WebAssemblyRegStackify.cpp - Register Stackification --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// This module implements the QsciLexerXML class.
//
// Copyright (c) 2020 Riverbank Computing Limited <<EMAIL>>
//
// This file is part of QScintilla.
//
// This file may be used under the terms of the GNU General Public License
// version 3.0 as published by the Free Software Foundation and appearing in
// the file... |
// Copyright (c) 2017 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-CHROMIUM file.
#include "shell/browser/ui/views/electron_views_delegate.h"
#include <dwmapi.h>
#include <shellapi.h>
#include <utility>
#include "base/bi... |
#include "globals.h"
//Copyright (c) Microsoft Corporation. All rights reserved.
// Other global variables
int g_iBmp = 0; // current bmp
HIMAGELIST g_hListBmp = 0; // image list
const int g_aMapVisemeToImage[22] = { 0, // SP_VISEME_0 = 0, // Silence
11, // SP_VISEME_1, ... |
/* TyTools - public domain
<NAME> <<EMAIL>>
https://koromix.dev/tytools
This software is in the public domain. Where that dedication is not
recognized, you are granted a perpetual, irrevocable license to copy,
distribute, and modify this file as you see fit.
See the LICENSE file for more details. */... |
#include "fixed_point_conv.h"
#include <stdio.h>
f_type sign_and_accumulate(f_type pixels[K][K], ap_uint<K2> weights)
{
#pragma HLS INLINE
f_type acc = 0;
for(int i=0; i < K; i++)
{
f_type row_accumulator = 0;
for(int j=0; j < K; j++)
if(weights[i*K +j] == 0)
row_accumulator -= pixels[i][j];
else
... |
#include "XF.hpp"
struct XF_102 : XF {
static const int deviceCount = 2;
enum ParamIds {
PARAM_CV_1, PARAM_CV_2,
PARAM_MODE_1, PARAM_MODE_2,
PARAM_FADE_1, PARAM_FADE_2,
PARAM_LINK_1,
NUM_PARAMS
};
enum InputIds {
INPUT_A_1, INPUT_A_2,
INPUT_B_1, INPUT_B_2,
INPUT_CV_1, INPUT_CV_2,
NUM_INPUTS
};
... |
/*
* KfoldTimeSeriesData.cpp
*
* Created on: Jun 12, 2014
* Author: <NAME>
*/
#include "KfoldTimeSeriesData.h"
KfoldTimeSeriesData::KfoldTimeSeriesData(GRT::LabelledTimeSeriesClassificationData inputDataset):
inputDataset(inputDataset){
crossValidationSetup = false;
crossValidationIndexs.clear();
... |
// Copyright 2010-2018 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... |
/*
https://practice.geeksforgeeks.org/problems/k-largest-elements4206/1
k largest elements
Medium Accuracy: 53.0% Submissions: 27220 Points: 4
Given an array Arr of N positive integers, find K largest elements from the array. The output elements should be printed in decreasing order.
Example 1:
Input:
N = 5, K = 2
... |
/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org
Copyright (c) 2000-present <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of... |
/*
* 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 is distributed in the hope that it will be use... |
#include<bits/stdc++.h>/*{{{*/
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#... |
/** \file ibisami_api.cpp
* \brief Provides IBIS-AMI API and necessary bootstrapping.
*
* Original author: <NAME> <br>
* Original date: April 29, 2015
*
* Copyright (c) 2015 <NAME>; all rights reserved World wide.
*
* Provides the API (application programming interface) to the
* *.SO (shared object) or *.DLL (dynam... |
// Berkeley Open Infrastructure for Network Computing
// http://boinc.berkeley.edu
// Copyright (C) 2005 University of California
//
// This 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 v... |
//===-- ErrorHandling.cpp -------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
/*
The MIT License
Copyright (c) 2017 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dis... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcserver.h"
#include "rpcclient.h"
#include "init.h"
#include <boost/algorithm/s... |
//
// $Id: Session.cpp 91652 2010-09-08 14:42:59Z johnnyw $
//
#include "Session.h"
#include "tao/debug.h"
Session::Session (Test::Session_Control_ptr control,
CORBA::ULong payload_size,
CORBA::ULong thread_count,
CORBA::ULong message_count,
CORBA... |
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** You may use this file under the terms of th... |
#include <string>
#include <boost/algorithm/string.hpp>
#include <boost/regex.hpp>
#include <stdexcept>
#include <new>
#include <vector>
#include <stdlib.h>
#include <boost/lexical_cast.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/io.hpp>
#include "viewport_mapper.h"
#include "util.h"
#... |
/*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#ifdef WIN32
#include <windows.h>
#include <vector>
#include <string>
using namespace std;
#include <windowsx.h>
#endif
#include "MeshImport.h"
#pragma warning(disable:4996)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#in... |
#ifdef HAVE_CONFIG_H
#include <../../config.h>
#endif
/*
* Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University
* Copyright (c) 1991 Silicon Graphics, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and
* its documentation for any purpose is hereby granted without fee, provi... |
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* 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... |
//***************************************************************************
//
// Implementation of DecompressJCALG1 in C++ by <NAME>
//
// JCALG1 is copyright (C) <NAME>
//
// Note: This code should work on any little-endian system that supports
// mis-aligned reads. To support non-little endian, the functions
//... |
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "Lab_1.h"
#include "Lab_1GameMode.h"
#include "Lab_1PlayerController.h"
#include "Lab_1Character.h"
#include "PizzaHUD.h"
#include "HouseActor.h"
ALab_1GameMode::ALab_1GameMode()
{
// Set the default HUD class to be used in game.
HUDClass =... |
/*
-------------------------------------------------------------------------------
This file is part of OgreKit.
http://gamekit.googlecode.com/
Copyright (c) 2006-2013 <NAME>.
Contributor(s): none yet.
-------------------------------------------------------------------------------
This software is p... |
/*******************************************************************************
* Copyright (c) 2014, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of so... |
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//#include<string>
//#include<iostream>
#include <cstdlib>
namespace slamTemplateEx
{
struct Set
{
// std::string f... |
#include "mex.h"
#include "blas.h"
//#include <pthread.h>
#include <math.h>
#include <string.h>
#include <iostream>
#include <vector>
/*
* This code is used for computing filter responses. It computes the
* response of a set of filters with a feature map.
*
* Multithreaded blas version.
*/
struct thread_data ... |
/*
* Copyright 2014 RWTH Aachen University. All rights reserved.
*
* Licensed under the RWTH LM License (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an ... |
#include "../../include/objects/tex_string.h"
#include "../../include/stb_image.h"
#include "../../include/stb_image_resize.h"
#include "../../include/systems/system.h"
#include <cstdio>
#include <iostream>
#include <fstream>
#include <random>
#include <vector>
static const char tex_template[] =
"\\documentclass[... |
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export(name=".sim_fun_on_tree")]]
IntegerMatrix sim_fun_on_tree(
const List & offspring,
const IntegerVector & types,
const IntegerVector & pseq,
const NumericVector & psi,
const NumericVector & mu_d,
const NumericVector & mu_s,
c... |
/**
* @file wettertafel.cpp
* Qualitative Anzeige von Wetterdaten auf einer Wettertafel über Servo-Motoren
* ============================================================================
* @author Dr. <NAME>, Zeller Ring 15, 34246 Vellmar, Deutschland
* @version 1.1
* @date 21 16 Jan 2022 16 Dez 21 20 Nov 26 Okt 3... |
/*
* Copyright (c) 2009 <NAME> University.
* 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
*
* Unl... |
//===- SPIRVFunction.cpp - Class to represent a SPIR-V Function --- C++ -*-===//
//
// The LLVM/SPIRV Translator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------------... |
// 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 <errno.h>
#include <fcntl.h>
#include <poll.h>
#include <pthread.h>
#include <stdio.h>
#include <sys/reboot.h>
#include <sys/socket.h>
#inclu... |
#include "MarkupParser.hpp"
#include "GraphicsImpl.hpp"
#include <Gosu/Font.hpp>
#include <Gosu/Graphics.hpp>
#include <Gosu/Image.hpp>
#include <Gosu/Math.hpp>
#include <Gosu/Text.hpp>
#include <Gosu/Utility.hpp>
#include <utf8proc.h>
#include <array>
#include <cassert>
#include <map>
#include <stdexcept>
using name... |
#include "Snek.hpp"
#include <iostream>
#include <cmath>
#include <cmath>
struct Snek::segment {
int x, y;
int life;
};
std::vector<GameObject::cell> Snek::getCollisionCells() {
return cells;
}
// iterate through all segments and draw them to the screen
void Snek::render(SDL_Renderer *renderer) {
for... |
// sha3.c
// 19-Nov-11 <NAME> <<EMAIL>>
// Revised 07-Aug-15 to match with official release of FIPS PUB 202 "SHA3"
// Revised 03-Sep-15 for portability + OpenSSL - style API
// Modified for use with browservice (omit unused stuff, follow strict aliasing rules)
#include "sha3.h"
#if __BYTE_ORDER__ != __ORDER_LITTLE... |
#include<bits/stdc++.h>
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define MOD 999983
#define EPS 1e-6
#define ll long long int
#define ld long double
#define fi first
#define se second
#define all(v) v.begin(),v.end()
#define pr(v) { for(int i=0;i<v.size();i++) { v[i]==INF? ... |
/*
x = Comm;
MEX file to send and receive UDP messages.
<NAME>, 6/09 <<EMAIL>>
Add multiple port support
<NAME>, 04/13 <<EMAIL>>
*/
#include <string>
#include <map>
#include <deque>
#include "string.h"
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include... |
#include <kognac/lz4io.h>
#include <kognac/filemerger.h>
#include <kognac/utils.h>
#include <trident/kb/dictmgmt.h>
#include <trident/kb/kbconfig.h>
#include <trident/kb/inserter.h>
#include <trident/kb/memoryopt.h>
#include <trident/loader.h>
#include <boost/chrono.hpp>
#include <boost/log/trivial.hpp>
#include <io... |
/*
** Copyright (c) 1999, 2000, 2001, 2002, 2003
** <NAME>. All rights reserved
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions
** are met:
**
** 1.Redistributions of source code must retain the above copyright notice,
*... |
//
// floor.cpp
// SimpleNethack
//
// Created by 尤大智 on 2018/5/10.
// Copyright © 2018年 尤大智. All rights reserved.
//
#include "floor.hpp"
#include <cstring>
Floor::Floor(int floor_num)
: upstairs_pos_(0,0), downstairs_pos_(0,0)
{
switch (floor_num) {
case 0:
{
char floor_input_0[kF... |
#include <stdio.h>
#include <string.h>
#include <vector>
#include "sobel.hpp"
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
const char *kernel =
"void __kernel find_edge(global uchar *in, global uchar *out,\n"
"const unsigned int w, const unsigned int h) {\n"
"size_t r = get_global_id(0... |
/* ----------------------------------------------------------------------------
* GTDynamics Copyright 2020, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* See LICENSE for the license information
* -------------------------------------------------------------------------- ... |
// Copyright surrealwaffle 2018 - 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#include "table.hpp"
#include <cstdio>
#include <algorithm> // std::find_if
#include ... |
#include "Utility.h"
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <cmath>
#include <iostream>
using namespace sf;
using namespace std;
Vector2f Diff(Vector2f const& v1, Vector2f const& v2, float const& deltaTime) { /* Calculates the change of 2 vectors in a timeframe*/
Vector2f diff = (v1 - v2)... |
/*
Certification of Authenticity:
I, <NAME>, certify that this assignment is my own work.
Disclosures:
- I received some math / formula help and general assistance from a Game Architecture tutor in Joyce 101 (forgot his name),
though all written code is my own
*/
// Includes from C/C++ library
#include <iostrea... |
/***************************************************************************\
|* *|
|* Copyright 2010-2016 NVIDIA Corporation. All rights reserved. *|
|* *|
|*... |
#include "ftpwidget.h"
#include "ui_ftpwidget.h"
#include <QMessageBox>
FtpWidget::FtpWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::FtpWidget)
{
ui->setupUi(this);
this -> ui -> label_status -> setText("Please enter the name of an FTP server.");
this -> ui -> treeWidget_fileL... |
/*
* Copyright 2018 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 agreed to in ... |
/*!
LTC2655: Quad I2C 16-/12-Bit Rail-to-Rail DACs with 10ppm/C Max Reference
@verbatim
The LTC2655 is a family of Quad I2C 16-/12-Bit Rail-to-Rail DACs with
integrated 10ppm/C max reference. The DACs have built-in high performance,
rail-to-rail, output buffers and are guaranteed monotonic. The LTC2655-L has a... |
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include "system.h"
#include "basedefs.h"
#include "scanner.h"
#include "ir.h"
#include "parser.h"
#ifdef __linux__
#define EXEEXT ""
#else
#define EXEEXT ".exe"
#endif
// Static members of IR classes
char* IRNode::name;
int IRNode::... |
#include <bits/stdc++.h>
#define CONST_P static_cast<uint64_t>(31)
#define CONST_M static_cast<uint64_t>(1e9 + 7)
#define MAX_LENGTH 10000
void init_powp(std::vector<uint64_t>& powp) {
powp[0] = 1;
for (size_t i = 1; i < powp.size(); ++i)
powp[i] = (powp[i - 1] * CONST_P) % CONST_M;
}
void init_hashes(const ... |
#include <game.h>
#include <sfx.h>
//#define REIMPLEMENT
extern "C" bool SpawnEffect(const char*, int, Vec*, S16Vec*, Vec*);
class daChengeBlock_c : public dStageActor_c {
static daChengeBlock_c *build();
u32 _394;
u64 initialFlags;
enum Action { Destroy, Create };
enum Pattern { Fill, CheckerA, CheckerB };
... |
////////////////////////////////////////////////////////////////////////////
/*
This file is a part of an interpreter for Tao, a high level
object-oriented computing and scripting language.
Copyright (C) 2004-2005, <NAME>.
Contact: <EMAIL>, <EMAIL>
This program is free software... |
/*
* Copyright (c) 2000-2001,2011,2014 Apple Inc. All Rights Reserved.
*
* The contents of this file constitute Original Code as defined in and are
* subject to the Apple Public Source License Version 1.2 (the 'License').
* You may not use this file except in compliance with the License. Please obtain
* a copy o... |
#include <ros/ros.h>
#include "audio_msg/AudioBuffer.h"
#include "audio_core/create.h"
#include "audio_core/remove.h"
#include "audio_core/getBufferTime.h"
#include <audio/river/river.h>
#include <audio/river/Interface.h>
#include <audio/river/Manager.h>
#include <boost/thread.hpp>
#include <sstream>
#include "debug.... |
/**
* @file leetcode-211-design-add-and-search-words-data-structure.cpp
* @author <NAME> (<EMAIL>)
* @brief
*
* This is my implementation of trie. I watched
* this [youtube tutorial by hackerrank](https://www.youtube.com/watch?v=zIjfhVPRZCg),
* and now I'm gonna implement what I literally saw in the video.
... |
/*=========================================================================
* class to support interaction with the FSL tools
*
* WARNING! platform specific code in here....
*
* Copyright 2007-2013, the MURFI dev team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th... |
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <Windows.h>
#include <time.h>
#define MAX_X 20
#define MAX_Y 10
enum Flags {
isStillPlaying = 1 << 1,
isObtained = 1 << 2,
headDetected = 1 << 3
};
enum Directions {
UP, DOWN, LEFT, RIGHT
};
stru... |
//
// Created by <NAME> on 01/05/2018.
//
#include "gtest/gtest.h"
#include "odncrypto/msp.hpp"
#include "odncrypto/algorithms.hpp"
TEST(lsss, msp_or) {
using namespace ::odn::crypto;
binary_policy_tree policy(NodeType::OR);
auto *orNode = &policy.root();
orNode->addLeft(policy, NodeType::LEAF, "A");
orNod... |
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#ifndef _OJ_
#include <Windows.h>
#endif // !_OJ_
using namespace std;
#define MAXDIGIT 5000
#define Max(a,b) a > b ? a : b
const int MAXN = 1e4 + 8000;
struct Complex{
Complex(){
a = 0;
b = 0;
}
Complex(double x,double y):a(x),b(... |
/******************************************************************************\
* SOUBOR: hevc_decompress.cc
* AUTOR: <NAME> (xdlaba02)
\******************************************************************************/
#include "file_mask.h"
#include <ppm.h>
extern "C" {
#include <libavcodec/avcodec.h>
#include <... |
/*
* File: main.cpp
* Author: LION
*
* Created on 12 mai 2015, 21:54
*/
#include <mpi.h>
#include "squares.h"
void algoTabuMPI(int * puzzle_step, const int height, const int width, const int nbNeigbours, const int tps) {
const int numProc = MPI::COMM_WORLD.Get_rank();
const int nbProc = MPI::COMM_WORL... |
#include <stdio.h>
#include <string>
#include <vector>
#include <sstream>
#include "term_util.h"
#include "hollows_hunter.h"
#define VERSION "0.1.7-a"
#define PARAM_MODULES_FILTER "/mfilter"
#define PARAM_IMP_REC "/imp"
#define PARAM_HOOKS "/hooks"
#define PARAM_SHELLCODE "/shellc"
#define PARAM_NO_UNMAP "/vdump"
... |
#include "Scoreboard.h"
#include "LanguageSettings.h"
#include "Exception.h" // write_error, read_error
#include <stdexcept> // invalid_argument
#include <algorithm> // for_each, fill
#include <iomanip> // setw, left
#include <iostream> // cout, endl
#include <fstream> // re... |
#include <memory>
#include "llvm/Support/raw_ostream.h"
#include "phasar/DB/ProjectIRDB.h"
#include "phasar/PhasarLLVM/ControlFlow/LLVMBasedICFG.h"
#include "phasar/PhasarLLVM/DataFlowSolver/IfdsIde/FlowFunctions.h"
#include "phasar/PhasarLLVM/Pointer/LLVMPointsToInfo.h"
#include "phasar/PhasarLLVM/TypeHierarchy/LLVM... |
#include "Brevik.h"
/* The constructor for the Aguiar Path Following Controller */
Brevik::Brevik(ros::Publisher surge_pub, ros::Publisher yaw_pub, ros::Publisher rabbit_pub) {
/* Save the publishers, to latter publish the data */
this->surge_pub_ = surge_pub;
this->yaw_pub_ = yaw_pub;
this->rabbit_pub_ = rab... |
//<NAME>
//Network Systems Lab, UMass Amherst
#include "ns3/core-module.h"
#include "ns3/network-module.h"
#include "ns3/point-to-point-module.h"
#include "ns3/ndnSIM-module.h"
namespace ns3 {
/**
* This scenario simulates a network topology consisted of a consumer,two routers, a NFV node, and a producer:
*
*
... |
#include <malloc.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <pthread.h>
#ifdef _WIN32
#include <stdio.h>
#else
#include <android/log.h>
#endif
#include "Image.h"
extern WORD **gLinesPtr;
extern int gCancel;
extern int gMaxThreadNum;
static int colorConvert_5bit[32];
static int color... |
//
// MODULE: TextView.cpp
//
// PURPOSE: Implementation of the TextView control
//
// NOTES: www.catch22.net
//
#define STRICT
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <tchar.h>
#include "TextView_def.h"
#include "TextView.h"
#define COOKIE_BEGIN 0
#define COOKIE_END 1
//typedef struct LEX;
t... |
/** This library is under the 3-Clause BSD License
Copyright (c) 2017-2022, Orange S.A.
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... |
// Copyright 2013 The Flutter 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 "flutter/shell/platform/linux/fl_scrolling_manager.h"
static constexpr int kMicrosecondsPerMillisecond = 1000;
struct _FlScrollingManager {
GO... |
// Copyright 2021 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 ... |
#include <ros/ros.h>
#include <smarc_msgs/DVL.h>
#include <smarc_msgs/Leak.h>
#include <smarc_msgs/ThrusterRPM.h>
#include <sensor_msgs/FluidPressure.h>
#include <sensor_msgs/BatteryState.h>
#include <nav_msgs/Odometry.h>
#include <std_msgs/Float64.h>
#include <eigen3/Eigen/Dense>
#include <tf2_ros/static_transform... |
/*------------------------------------------------------------------------------
CGMF-1.1
Copyright TRIAD/LANL/DOE - see file LICENSE
For any questions about CGMF, please contact us at <EMAIL>
-------------------------------------------------------------------------------*/
/*! @file parpop.cpp
\brief Particl... |
/*
Copyright (c) 2021 Sogou, 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 writing,... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "media/MediaEngineWrapper.h"
#include "media/MediaFoundationHelpers.h"
using namespace winrt;
using namespace Windows;
using namespace Windows::ApplicationModel::Core;
using namespace Windows::Foundation::Numerics;
u... |
/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium 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 3
of the License, or (at your option) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.