text stringlengths 3.08k 12.5k |
|---|
/**
* If not stated otherwise in this file or this component's LICENSE
* file the following copyright and licenses apply:
*
* Copyright 2021 RDK Management
*
* 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 th... |
#include "stdafx.h"
#include "granny/grntype.h"
#include "granny/grannymodel.h"
#include "granny/grnbones.h"
#include <iostream>
using namespace std;
// Utility Function
void calculateBoneRests( Bone *bone );
cGrannyFile::cGrannyFile()
{
texture = 0;
}
cGrannyFile::~cGrannyFile()
{
// Destroy the Texture we're bi... |
// Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "common/leak_detection.h" // This must be the first #include
#include "Generic/CASerif/correctanswers/CorrectRelMention.h"
#include "Generic/CASerif/correctanswers/CorrectRelation.h"
#include "Generic/CASerif/correctanswers/CorrectMen... |
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
const int maxn = 50010;
#define lowbit(x) ((x)&(-x))
struct Node {
Node* ch[2];
int key, len, idx, val;
int mlen, midx;
Node () {}
Node (int key, int len, int idx):key(key), len(len), idx(idx), ... |
/*
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 condit... |
#undef NDEBUG
#include <algorithm>
#include <cassert>
#include <cstring>
#include <functional>
#include <iostream>
#include <iterator>
#include <math.h>
#include <random>
#include <sstream>
#include <vector>
#include "ch19.hpp"
#include "reference/ch19.hpp"
using namespace std;
using namespace study;
using referen... |
/*
* Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
* Copyright (c) 2002-2007, Professor <NAME>
* Copyright (c) 2001-2003, <NAME>
* Copyright (c) 2002-2003, <NAME>
* Copyright (c) 2003-2007, <NAME> and <NAME>
* Copyright (c) 2005, <NAME>, Fre... |
/*
* book.cpp
* Author: davidwu
*/
#include "../core/global.h"
#include "../board/board.h"
#include "../book/book.h"
//Differences in position matter more the further advanced you are.
static const double X_EXPAND[8] = {1.0,1.0,1.2,1.4,1.6,1.7,1.7,1.7};
static const double Y_MAPPING[8] = {0.0,1.0,2.0,3.3,4.7,6.2,7... |
// https://leetcode.com/contest/biweekly-contest-28/problems/allocate-mailboxes/
//
// #biweekly 28
// #like, #dp, #7
// Allocate k mail boxes between n houses such that total distance between each
// house and its nearest mailbox is minimum.
//
// E.g. houses = [1,4,8,10,20], k = 3, allocate mailboxes in
// posi... |
/**
* @file
* @copyright defined in eosio/LICENSE.txt
*/
#include <appbase/application.hpp>
#include <eosio/chain_plugin/chain_plugin.hpp>
#include <eosio/http_plugin/http_plugin.hpp>
#include <eosio/net_plugin/net_plugin.hpp>
#include <eosio/producer_plugin/producer_plugin.hpp>
#include <fc/log/logge... |
#include "localsock6.h"
#include "bpf_generic/log.h"
#include <arpa/inet.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <fcntl.h>
#include <fstream>
#include <regex>
#include <unistd.h>
// implementation of test client for ipv6 //
static const char* printIpAddr(const sockaddr_in6* addr){
static ... |
#include <cstring>
#include <fstream>
#include "square4.h"
#include "../line/line2.h"
#include "../../../basis/matrices/denseMatrix.h"
using namespace espreso;
std::vector<Property> Square4::_DOFElement;
std::vector<Property> Square4::_DOFFace;
std::vector<Property> Square4::_DOFEdge;
std::vector<Property> Square4:... |
#include "common.hpp"
#include <three/cameras/perspective_camera.hpp>
#include <three/core/geometry.hpp>
#include <three/lights/ambient_light.hpp>
#include <three/lights/directional_light.hpp>
#include <three/materials/mesh_lambert_material.hpp>
#include <three/materials/mesh_face_material.hpp>
#include <three/objects... |
/****************************************************************************
*
* Copyright (c) 2015-2016 PX4 Development Team. 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. Red... |
#include <utility>
#include <cmath>
#include <ctime>
#include <iostream>
#include "abm_interfaces.h"
#include "run_abm.h"
#include "vector.h"
extern "C" {
#include "mt19937ar.h"
}
#define RANDOM_FUNCTION genrand_real2
double freePathLength(const vec3 &vector, const vec3 &normal, double cosI, double absorptionCo... |
#include <iostream>
#include <cmath>
#include <cstring>
#include "include/LiteMath.h"
#include "LiteMathOld.h"
bool vf4_test035_matrixmul()
{
float initData[16] = {1.0f, 2.0f, 3.0f, 4.0f,
5.0f, 6.0f, 7.0f, 8.0f,
9.0f, 10.0f,11.0f,12.0f,
13.0... |
#include "../../template.hpp"
/*
N0 = N
N1 = N - K + 1 = N - (K - 1)
N2 = N - K + 1 - K + 1 = N - (K - 1) * 2
Ni = N - (K - 1) * i
=> N - (K - 1) * i = m
=> N - m = (K - 1) * i
=> (N - m) % (K - 1) == 0
*/
int rec(const vi& arr, const int K, const vi& prefix, int i, int j, int m) {
if ((j - i + 1 - m) % (K - 1) !=... |
#define TEST_RINGBUFFER
#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <memory>
#include "tty.h"
#include "color.h"
using namespace leaf;
using namespace std;
auto& tty = Tty::getInstance();
std::vector<string> source1 = {
{ "a" },
{ "ab" },
{ "a\r" },
{ "a\r\x7f"... |
/*
* 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 ... |
/*
* Copyright (c) 2015 <NAME>
* Copyright (c) 2022 <NAME>
*
* Use of this source code is governed by a MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <lk/trace.h>
#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include "fat_fs.h"
#... |
// Copyright (c) 2009-2020 The Bitcoin Core developers
// Copyright (c) 2014-2020 The DigiByte Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/peertablemodel.h>
#include <qt/guiconstants.h>
#include... |
#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)
#ifdef O... |
/****************************************************************************
Copyright (c) 2012-2013 cocos2d-x.org
http://www.cocos2d-x.org
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 withou... |
// Copyright (c) 2013, The Regents of the University of California (Regents).
// 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... |
#include "simplegraph.h"
#include "global.h"
#include <fmt/printf.h>
#include <cassert>
#include <optional>
#include <unordered_set>
SimpleGraph::SimpleGraph() = default;
SimpleGraph::~SimpleGraph() = default;
int64_t SimpleGraph::add_node(int64_t id, NodeData nd) {
m_nodes.try_emplace(id, nd);
return id;... |
#include <sstream>
#include <sys/mman.h>
#include "core/File.h"
#include "core/MemoryUtils.h"
#include "core/Params.h"
#include "core/TritonSortAssert.h"
#include "mapreduce/common/boundary/DiskBackedBoundaryKeyList.h"
#include "mapreduce/common/boundary/PartitionBoundaries.h"
std::string DiskBackedBoundaryKeyList::g... |
/** \class DQMHistNormalizer
*
* Class to produce efficiency histograms by dividing nominator by denominator histograms
*
* \author <NAME>, UC Davis
*/
// framework & common header files
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework... |
#include <string>
#include <vector>
#include <queue>
#include <iostream>
#include <sstream>
#include <fstream>
#include "tir_model.h"
//read_next fails only on non-recoverable error!
bool input_data::read_next(packet_t &data)
{
std::string dir;
bool restarted = false;
data.clear();
if(!f.is_open()){
return... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
/*
* Software License Agreement (BSD License)
*
* 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 conditions
* are met:
*
* * Redistributions of source code must reta... |
#include <termios.h>
#include "iostream"
#include "ros/ros.h"
#include "std_msgs/Bool.h"
#include "std_msgs/String.h"
#include "api_hal.h"
#include "geometry_msgs/Point.h"
#include "std_msgs/Float32.h"
#include "api_i2c_pwm.h"
PCA9685 *pca9685 = new PCA9685() ;
using namespace std;
bool STATUS1 = false;
bool STATUS2 =... |
// Copyright (c) 2021 Lawnjelly
// 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, distr... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
#include <iostream>
#include <memory>
#include <array>
#include <typeinfo>
#include "gloo/allreduce.h"
#include "gloo/allreduce_ring.h"
#include "gloo/rendezvous/context.h"
#include "gloo/rendezvous/file_store.h"
#include "gloo/rendezvous/prefix_store.h"
#in... |
#include <string>
#include <math.h>
#include "optional.hpp"
#include "util.h"
#include "structs.h"
#include <algorithm>
using std::experimental::optional;
std::string direction_as_string(const Direction& direction) {
switch(direction) {
case Direction::Down:
return "DOWN";
case Direction::Up:
return "UP... |
/*
* Copyright 2016 <NAME> <<EMAIL>>
*
* 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... |
/*
* Copyright (c) 2013, Linear Technology. All rights reserved.
*/
#include "common/common.h"
#include "RemoteLogPublisher.h"
#include <boost/assert.hpp>
#include "logevent.pb.h"
#include "rpc/public/SerializerUtility.h"
using namespace zmqUtils;
extern bool changeIPCFilePrivilege(const std::string& serverAddr, ... |
/**
* \file
* \author <NAME>
* \date no date
* \brief Implementation of the StationTreeModel class.
*
* \copyright
* Copyright (c) 2013, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* ... |
//
// ramOscPlaybacker.cpp
// RAMDanceToolkit
//
// Created by motoishmz on 4/27/13.
// Copyright (c) 2013 YCAMInterlab. All rights reserved.
//
#include "ramOscPlaybacker.h"
ramOscPlaybacker::ramOscPlaybacker(const string path)
{
clearPlaybackData();
load(path);
}
ramOscPlaybacker::~ramOscPlaybacker()
{
}
... |
#include "GeneticAlgorithm.hpp"
GeneticAlgorithm::GeneticAlgorithm(ObjectCollection& agents, ResourceAllocator<sf::Texture>& textureAllocator, WorkingDirectory& workingDir, Window& window) : agents(agents), textureAllocator(textureAllocator), workingDir(workingDir), window(window), totalFitnessScore(0.f), mutationChan... |
/*
* Copyright (c) 2019, The Regents of the University of California
* 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
*... |
#include "trajectory.h"
#include "coordinates.h"
#include "spline.h"
#include <algorithm>
#include <limits>
#include <iostream>
#include <cmath>
// TODO: Make sure that waypoints are in car coordinates;
class Trajectory::impl {
public:
std::vector<XY> &points;
int resolution;
tk::spline s;
double ma... |
// Copyright 2020 <NAME>
#include "../../../modules/task_3/guschin_a_cc_labeling/cc_labeling.h"
#include <tbb/tbb.h>
#include <ctime>
#include <iostream>
#include <random>
#include <vector>
std::vector<std::vector<std::int32_t>> Labeling_tbb(
const std::vector<std::vector<std::int8_t>>& pic) {
std::vector<std::v... |
/*
* Copyright (c) 2020-2021 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* IMPORTANT:
* These tests are designed to run only in CI environment.
*/
#include "CBuildIntegTestEnv.h"
#include "CbuildUtils.h"
#include <algorithm>
using namespace std;
class DebPkgTests : public ... |
#include "Version.hpp"
#include "io/FileIterables.hpp"
#include "io/ZipWriter.hpp"
#include "io/CliParser.hpp"
#include "io/Scene.hpp"
#include "io/Path.hpp"
#include <rapidjson/stringbuffer.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/document.h>
#include <unordered_map>
#include <unordered_set>
#inclu... |
#include <rte_config.h>
#include <rte_common.h>
#include <rte_ring.h>
#include <stdio.h>
#include "bytesizedring.hpp"
// DPDK SPSC bounded ring buffer
/*
* This wraps the DPDK SPSC bounded ring buffer into a structure whose capacity
* limits the number of bytes it can hold.
*/
struct bs_ring* create_bsring(uint32_... |
/*
* Copyright (C) 2012-2016 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/*
* 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... |
/*
Created: 25 January 2018
Last Updated: 25 January 2018
<NAME>
<EMAIL>
University of Michigan, Ann Arbor, MI 48109
-----
Match reconstructed objects to truth objects
*/
#include "Analysis/CyMiniAna/interface/truthMatching.h"
truthMatching::truthMatching(configuration &cmaConfig) :
m_config(&cmaC... |
// Standard headers
#include <ctime>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <cstring>
#include <cstdint>
#include <vector>
#include <list>
#include <string>
// Game Library headers
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/SDL_mixer.h>
// cust... |
/**
* @file tests/mean_shift_test.cpp
* @author <NAME>
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along with mlpack. If not, see
* http://www.opensource.org/licenses/BSD-3-Cla... |
/*
Name: <NAME>
Class: CS 2
Assignment #: 2
All Compilers Used: g++, VS17
Operating Systems on Which Compiled: Linux, Win10
Date and Time of Last successful run: 9/24/2017 @2300
Email: <EMAIL>
*/
#include "BankAccount.h"
#include "BankAccountList.h"
void test_main();
int main() {
BankAccountList BAL;
BankAccou... |
/* -*- mode: C++; indent-tabs-mode: nil; -*- */
/** \file
* \brief The main SMN program.
*
* This file is part of the openBuildNet simulation framework
* (OBN-Sim) developed at EPFL.
*
* \author <NAME> (<EMAIL>)
*/
#include <iostream>
#include <thread>
#include <obnsmn_report.h>
#include <obnsmn_gc.h> // The ... |
/*
Copyright (c) 2011 Arduino. All right reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This ... |
#include "SiPixelDigiToRaw.h"
#include "DataFormats/Common/interface/Handle.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/Common/interface/DetSetVector.h"
#include "DataFormats/SiPixelDigi/interface/PixelDigi.h"
#include "DataForma... |
/**********
Copyright (c) 2019, Xilinx, 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:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... |
/* Copyright 2019 The TensorFlow Authors. 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 law or a... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2010-2011, <NAME>, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
/*
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, distribute, sublicen... |
/*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... |
//=======================================================================
// Copyright <NAME> 2013-2018.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=======================================================================
... |
/*
* Copyright (C) 2014 <NAME>, <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, ... |
/*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "config/stm32plus.h"
#include "config/dac.h"
using namespace stm32plus;
/**
* Demonstration of DAC channel 1 playing back a sampl... |
#include "dialog.h"
#include "screen.h"
#include "../specKeyboard.h"
#define PROGRESSBAR_SIZE 24
char progressBarBuffer[PROGRESSBAR_SIZE + 1];
//---------------------------------------------------------------------------------------
void Shell_Window(int x, int y, int w, int h, const char *title, byte attr)
{
DrawFra... |
// Keyglove controller source code - Feedback implementations for single LED
// 2015-07-03 by <NAME> <<EMAIL>>
/* ============================================
Controller code is placed under the MIT license
Copyright (c) 2015 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this ... |
#include <HalideRuntime.h>
extern "C" {
#include <qurt.h>
#include <stdlib.h>
#include <memory.h>
}
#include "log.h"
struct halide_thread {
qurt_thread_t val;
};
int halide_host_cpu_count() {
// Assume a Snapdragon 820
return 4;
}
namespace {
struct spawned_thread {
void (*f)(void *);
void *cl... |
#include "UMix.hpp"
#define SUM "sum"
#define CVMODE "cv_mode"
json_t* UMix::toJson() {
json_t* root = json_object();
json_object_set_new(root, SUM, json_boolean(_sum));
json_object_set_new(root, CVMODE, json_boolean(_cvMode));
return root;
}
void UMix::fromJson(json_t* root) {
json_t* s = json_object_get(root... |
#include "calendar.h"
#include <uuid.h>
#include <QtCore/qalgorithms.h>
#include <QDebug>
#include <icalformat.h>
#include <icaltimezones.h>
#include <memorycalendar.h>
#include <extendedstorage.h>
#include <extendedcalendar.h>
#include <libical/ical.h>
#include <sys/file.h>
#include <unistd.h>
#include <fcntl.h>
#in... |
// Unit test (stat)
#include <gtest/gtest.h>
#include <cstdlib> // random
#include "stat.h"
using namespace nmlib;
// Sample data generators
static double urand1(void){
return (random()%RAND_MAX+0.5)/RAND_MAX;
}
static Matrix mrand(size_t r, size_t c){
Matrix m(r,c);
for(size_t k=0; k<m.dim(); k++) m(k)=ura... |
/*ACPC10D - Tri graphs
no tags
Here’s a simple graph problem: Find the shortest path from the top-middle vertex to the bottom-middle vertex in a given tri-graph. A tri-graph is an acyclic graph of (N ≥ 2) rows and exactly 3 columns. Unlike regular graphs, the costs in a tri-graph are associated with the vertices rath... |
// -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: verilator_coverage: main()
//
// Code available from: http://www.veripool.org/verilator
//
//*************************************************************************
//
// Copyright... |
#include "pathfinding.hpp"
Pathfinding::Pathfinding()
: Pathfinding(WINDOW_WIDTH, WINDOW_HEIGHT, X_NODES, Y_NODES)
{
}
Pathfinding::Pathfinding(int width, int height, int x_nodes, int y_nodes)
: x_nodes(x_nodes),
y_nodes(y_nodes),
width(width),
height(height),
nodes_width(width ... |
/* The MIT License (MIT)
*
* Copyright (c) 2014-2018 <NAME> and <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
* ... |
/*
* Copyright (c) 2019, NVIDIA 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 ... |
#include "common/Jetson.h"
#include "RobotData.h"
void Jetson::RobotInit()
{
currentAlliance = 0;
auto inst = nt::NetworkTableInstance::GetDefault();
auto table = inst.GetTable("default");
currentAlliance = 0;
// PUTS OUT VALS INTO NETWORK TABLE TO TUNE JETSON
table->PutNumber("bl... |
#include <iostream>
using std::cout;
using std::endl;
struct node {
int val;
node* next;
};
void add(node* &head, int new_val);
void addToEndGuard(node* &head, int new_val);
void print(node* head);
void bubbleSortEffective(node* &head);
//fix swap function (or just delete it)
void swap(node* p, node* e);
in... |
//
// character.cpp
// ocr
//
// Created by zlh on 3/27/15.
// Copyright (c) 2015 zlh. All rights reserved.
//
#include "character.h"
#include <iostream>
using namespace std;
Character::Character(unsigned char (*img)[256], int ulr, int ulc, int h, int w ){
image = img;
ul_r = ulr;
ul_c = ulc;
heig... |
#include "simple_bvh_parser.hpp"
#include <filesystem>
#include <hitagi/core/memory_manager.hpp>
#include <hitagi/core/file_io_manager.hpp>
#include <hitagi/core/thread_manager.hpp>
#include <fmt/core.h>
#include <cxxopts.hpp>
#include <fstream>
#include <algorithm>
#include <iterator>
#include <memory_resource>
#inc... |
/*****************************************************************************
*
* MiniOSC
*
* Autor: <NAME> 2015-2016
*
*****************************************************************************
*
* Biblioteka spectrum - analiza widmowa, transformata Fouriera z wykorzystaniem biblioteki FFTW
*
***********... |
#include <iostream>
#include <limits>
#include "HalideBuffer.h"
#include "halide_image_io.h"
#include "halide_benchmark.h"
#include "resize_box_float32_up.h"
#include "resize_cubic_float32_up.h"
#include "resize_linear_float32_up.h"
#include "resize_lanczos_float32_up.h"
#include "resize_box_float32_down.h"
#include ... |
#include <cmd_handlers_server.h>
#include <fallen.h>
#include <runtasks.h>
#include <iostream>
#include <employ_database.h>
#include <employ_server_info.h>
#include <QtCore>
/*****************************************
* This handler will be return public info
*****************************************/
CmdHandlerPubl... |
#include "../ris_lib/ris_resources_from_file.h"
#include "../ris_lib/ris_bundle_compression.h"
#include "../ris_lib/ris_writing_files.h"
#include "../ris_lib/template.h"
#include "../ris_lib/ris_resource_loader.h"
#include "../ris_lib/ris_default_or_from_file.h"
#include "../ris_lib/ris_resource_snapshot.h"
#include ".... |
#include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
#define int int64_t
template<size_t sz = 100'000>
struct Math {
vector<int> p; // primes
int fpr[sz + 1]; // smallest prime divisor, IsPrime(p) ? 0 : fpr[p]
int expo[sz + 1]; // exponent of smallest prime divisor
... |
#include "DefHeader.h"
#include "Shader.h"
dx::Shader::Shader(const Shader& other) :
m_size(other.m_size),
m_type(other.m_type)
{
// Allocate memory
m_ptrBlob = malloc(other.m_size);
EXPP_ASSERT(m_ptrBlob, "Memory allocation failed");
// Copy from other
memcpy(m_ptrBlob, other.m_ptrBlob, other.m_size);
}
dx::... |
/*
* Vega Strike
* Copyright (C) 2001-2002 <NAME>
*
* http://vegastrike.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... |
// Copyright 2015 The Kyua Authors.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditio... |
//*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: ni24039
// Description: Tests SpawnSUT function.
//
// Modifications:
// Date Name Modification
// ---- ---- ----... |
#include <mlpack/prereqs.hpp>
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/loss_functions/mean_squared_error.hpp>
#include <mlpack/core/data/scaler_methods/min_max_scaler.hpp>
#include <mlpack/methods/ann/layer/layer.hpp>
#include <mlpack/core/data/split_data.hpp>
#include <mlpack/methods/ann/ffn.hpp>
#inclu... |
#include <iostream>
#include <filesystem>
#include <GLFW/glfw3.h>
#include "types.h"
#include "window.h"
#include "mono_script.h"
#include "shader.h"
#include "mesh.h"
#include "image.h"
#include "audio.h"
#include "light.h"
#include "text.h"
using namespace visualkey;
void
InitProject(const std::string &dir) {
if... |
/*
Copyright 2014 <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... |
#include <cstdio>
#include <cstring>
#include <queue>
#include <algorithm>
using namespace std;
int n, m;
char a[32][32];
char f[32][32][32][32][2];
char out[32][32][32][32][2];
struct z {
z(int _x1, int _y1, int _x2, int _y2, int _t)
: x1(_x1), y1(_y1), x2(_x2), y2(_y2), t(_t) {}
char x1, y1, x2, ... |
/*
* Copyright (C) 2017 by Author: Aroudj, Samir, born in Suhl, Thueringen, Germany
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD 3-Clause license. See the License.txt file for details.
*/
#include "Session.h"
#include "UDPServerSocket.h"
using namespace Ne... |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include <arpa/inet.h>
#include <netdb.h>
#include <netinet/in.h>
#include <resolv.h>
#include <string.h>
#include <sys/socket.h>
#include <openenclave/host.h>
#include <openssl/bio.h>
#include <openssl/err.h>
#include <op... |
// https://www.hackerrank.com/challenges/balanced-forest/problem
#include <iostream>
#include <cstdio>
#include <vector>
#include <ctime>
#include <cstdlib>
#include <algorithm>
using namespace std;
typedef long long LL;
const LL INF = 1e17 + 6;
const int MAX_P = 1e6 + 6;
struct Treap {
static Treap mem[MAX_P];
... |
#include "ColliderResources.h"
#include "ErrorHandler.h"
#include "ParticleShooterLevel01.h"
#include "Transform.h"
#include <nlohmann/json.hpp>
#include <string>
#include <fstream>
using json = nlohmann::json;
ParticleShooterLevel01::ParticleShooterLevel01()
{
_transform.reset(new Transform(_bounds));
}
void Part... |
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 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.apac... |
/*
// Copyright (c) 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... |
/*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... |
// Neuron for Rallpack Benchmark (rallpack3)
//
// Copyright 2006 <NAME>. All rights reserved.
//
// File: neuron_rallpack.cpp
//
// Release: 1.0.0
// Author: <NAME>
// Updated: 14 July 2006
//
// Description:
//
// This header file contains the declarations defining neuron
// objects for the rallpack1 and rallpack3... |
#include "MainMenu.h"
#include "CFG.h"
#include "Core.h"
/* ******************************************** */
MainMenu::MainMenu(void) {
this->lMO.push_back(new MenuOption("1 PLAYER GAME", 178, 276));
this->lMO.push_back(new MenuOption("OPTIONS", 222, 308));
this->lMO.push_back(new MenuOption("ABOUT", 237, 340));
... |
/********************************************************************************
* Copyright 2009 The Robotics Group, The <NAME>-<NAME>ler Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.