text stringlengths 3.08k 12.5k |
|---|
#include <iostream>
#include <string>
#include <csignal>
#include <sys/socket.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <unistd.h>
/*----------------------------------------------------------------
#include <sys/socket.h>
int socket (int domain, int type, int protocol);
Upon successful completion, s... |
#include <iostream>
#include "Draw3D_api_interface.hh"
#include "Dr3D_gnuplot_api.hh"
#include "Obiekt3D.hh"
#include "MacierzOb.hh"
#include "Macierz.hh"
#include "prostopadloscian.hh"
#include "graniastoslup.hh"
#include "dron.hh"
#include "sruba.hh"
#include "powierzchnia.hh"
#include "dno.hh"
#include "prst_przesz... |
/***************************************************************************/
/** Microsoft Windows **/
/** Copyright(c) Microsoft Corp., 1995-1996 **/
/***************************************************************************/
... |
/*
Copyright 2016 <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 wr... |
/*
Copyright 2021 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublice... |
/*
* Copyright (c) 2010, <NAME>, <NAME>, <NAME>,
* <NAME>, <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:
* - Redistributions of source code must retain the above copyright... |
/*
* Open Chinese Convert
*
* Copyright 2020 <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 require... |
//
// Created by Vincent on 09/06/2018.
//
#include "endgame.h"
constexpr int PREFER = 100;
constexpr int KNOWN_WIN = 1000;
constexpr int VALUE[6] = {100, 280, 300, 500, 925, 0};
constexpr int CORNERS[64]{
100, 90, 80, 70, 70, 80, 90, 100,
90, 70, 60, 50, 50, 60, 70, 90,
80, 60, 40, 30, 30, 4... |
#include <iostream>
#include <sqlite3.h>
#include <vector>
#include "database.h"
int callback(void* data, int rows, char** argv, char** azColName) {
if (data != NULL) {
//SelectValues called
std::vector<std::string>& dataVect = *reinterpret_cast<std::vector<std::string>*>(data);
for (int i ... |
#include <iomanip>
#include <iostream>
#include <bits/stdc++.h>
#define ll long long int
#define ld long int
#define nl "\n"
#define ss second
#define ff first
#define pb push_back
#define pp pop_back
#define mp make_pair
#define all(cnt) cnt.begin(), cnt.end()
using namespace std;
const ll be_b = 1... |
#include "brickpool.hpp"
#include "brickedvolume.hpp"
VolumeBrickPool::VolumeBrickPool(){
mBrickSize = vec3size_t(32);
mActualDataSize = vec3size_t(33);
};
void VolumeBrickPool::set_brick_size(
const vec3size_t &bricksize,
const vec3size_t &padding
){
mBrickSize = bricksize;
mActualDataSize =... |
#include <iostream>
#include <vector>
#include <cassert>
#include <queue>
#include <stack>
#define PRINT_VISITED
// Point definition
// First: row
// Second: column
typedef std::pair<size_t, size_t> Point;
// AStar step definition
// Step: Matrix location
// Cost: Manhattan grid distance + distance
// Start_Dist: Di... |
/*
Chomp 16x16 board solver
- runs in about 4 minutes 20 seconds on a 2.4 GHz Intel Broadwell cpu
- New version: 3 minutes 45 seconds
- Latest version: 1 minutes 7 seconds
- Final version: 27 seconds
- Outputs a binary file "16x" (6.33 MiB), where every int represents a losing position.
Specific... |
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/policy/status_collector/enterprise_activity_storage.h"
#include <memory>
#include "components/policy/proto/device_managemen... |
/* Copyright 2021 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 agre... |
// Day6.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <set>
#include <string>
#include <vector>
#include "Point.h"
#include "../AoCHelpers/InputHandl... |
#include <algorithm>
#include <iostream>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "SimCalorimetry/EcalTestBeamAlgos/interface/EcalTBReadout.h"
#include "SimDataFormats/EcalTestBeam/interface/PEcalTBInfo.h"
EcalTBReadout::EcalTBReadout(const s... |
/* Copyright (C) 2012, dark_skeleton (d-rez) <<EMAIL>>
Copyright (C) 2005-2012, <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:
- Redistributions of source code mus... |
#include "cbase.h"
#include "asw_hud_portraits.h"
#include "asw_hud_marine_portrait.h"
#include "asw_hud_health_cross.h"
#include "c_asw_marine_resource.h"
#include "c_asw_marine.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
CASW_HUD_Health_Cross::CASW_HUD_Health... |
/**
* @file
* @copyright defined in ../../../LICENSE
*/
#include "../Common/common.hpp"
#include "../Token/Token.hpp"
#include "BancorNetwork.hpp"
ACTION BancorNetwork::setmaxfee(uint64_t max_affiliate_fee) {
require_auth(get_self());
settings settings_table(get_self(), get_self().value);
auto st =... |
/*
* Copyright (C) 2019 The Android Open Source Project
* 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, t... |
#include <bits/stdc++.h>
using namespace std;
template <typename M, typename D>
struct SegLazy {
using Op = function<M(const M&, const M&)>;
using D2M = function<void(M&, const D&)>;
using D2D = function<void(D&, const D&)>;
M ID;
D UN;
Op op;
D2M d2m;
D2D d2d;
int N, L;
... |
// Copyright 2020 Open Source Robotics Foundation, 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 appli... |
/* Copyright (c) <NAME>, 1994. */
/* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. */
/* blender renders two spinning icosahedrons (red and green).
The blending factors for the tw... |
/* =========================================================================
Program: MPCDI Library
Language: C++
Date: $Date: 2012-02-08 11:39:41 -0500 (Wed, 08 Feb 2012) $
Version: $Revision: 18341 $
Copyright (c) 2013 Scalable Display Technologies, Inc.
All Rights Reserved.
The MPCDI Librar... |
/* -*- C++ -*- *****************************************************************
* Copyright (c) 2013 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* Licensed under the NASA Open Source Agreement, Version 1.3 (the "Lice... |
//
// ECUUniverse.cpp
// esoterionUniverse
//
// Created by <NAME> on 06/12/2014.
//
//
#include "ECUUniverse.h"
ECUUniverse::ECUUniverse() {
cout << "made cam" << endl;
// cam.enableMouseInput();
saved = false;
debug = false;
}
ECUUniverse::~ECUUniverse() {
clearUniverse();
}
void ECU... |
#include "LSH.hpp"
#include "utility.hpp"
#include "WriteOutput.hpp"
#include "Metric.hpp"
#include "ReadInput.hpp"
#include <float.h> //DBL_MAX
#include <time.h>
#include <iostream>
using namespace std;
void Search(list<myvector> &vlist, HashTable &HTable,
double radius, list<myvector> &queries, ofstrea... |
/*===========================================================================*\
|
| FILE: frame_mod_edit.cpp
| A simple modifier that gets mapping coordinates from
| the UVW Frame helper object
| 3D Studio MAX R3.0
|
| AUTH: <NAME>
| Mankua
| Copyright(c) Mankua 2001
|
| HIST: Started 6-6-20... |
#include <map>
#include <iostream>
#include "Shell.h"
#include "PadCommand.h"
#include "joystick/Joystick.h"
#include <jsoncpp/json/json.h>
static std::string file_get_contents(std::string path)
{
std::ifstream ifs(path.c_str());
std::string content((std::istreambuf_iterator<char>(ifs)),
(std::istr... |
/*******************************************************************\
Module: Fastsynth Language Frontend Utility
Author: <NAME>, <EMAIL>
\*******************************************************************/
#include "frontend_util.h"
#include "cegis.h"
#include <goto-programs/goto_model.h>
#include <goto-progra... |
// <NAME>, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2022
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 6.0.2022.03.07
#include "DLODNodesWindow3.h"
#include <Graphics/Mesh... |
#include "AdaptiveAStarPlanning.h"
AdaptiveAStarPlanning::AdaptiveAStarPlanning(int rows, int cols) : rows_(rows), cols_(cols)
{
graph_.resize(rows * cols);
for (unsigned i = 0; i < graph_.size(); i++)
{
graph_[i].SetId(i);
}
}
AdaptiveAStarPlanning::~AdaptiveAStarPlanning()
{
}
void AdaptiveAStarPlanning::Set... |
// cmake .. // From build
// make
// export PATH=/home/rmlans/anaconda3/envs/tf2_env/bin:$PATH
// export LD_LIBRARY_PATH=/home/rmlans/anaconda3/envs/tf2_env/lib:$LD_LIBRARY_PATH
#include <iostream>
#include <time.h>
#include <math.h>
#include <string.h>
#include <Python.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VER... |
/*
* Author: <NAME>
* Date: May 2019
*/
#include <iostream>
#include <chrono>
#include <random>
#include <typeinfo>
#include <limits>
using namespace std;
#define ALGORITHM_NAME ("Merge Sort") // The name of the algorithm used for sorting
#define RANDOM_SEED 2019 // Random Seed number to keep values constant.
#defi... |
/*
* @author <NAME>
* @date 07/2015
* @contact <EMAIL>
*/
#include "Utils.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <iostream>
#include <getopt.h>
#include "IDF.h"
#include "ICF.h"
#include "RF.h"
#include "ICFBASED.h"
#include "RFXIDF.h"
#include "QUIQUAD.h"
using namespace std;
cha... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <syslog.h>
#include <chrono>
#include <thread>
#include <algorithm>
#include <service_c... |
/*
<%
setup_pybind11(cfg)
import pkg_resources
cfg['include_dirs'] = [pkg_resources.resource_filename("exoplanet", "theano_ops/lib/include/exoplanet")]
%>
*/
#include <pybind11/pybind11.h>
#include <sys/time.h>
#include <algorithm>
#include <cmath>
#include <tuple>
#include <vector>
#include "kepler.h"
namespace py ... |
/**
* @file
* @brief Sample implementation of an AllJoyn client.
*/
/******************************************************************************
*
*
* Copyright (c) 2009-2011, AllSeen Alliance. All rights reserved.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpos... |
/*
* DebugSocket.cpp
*
* Created on: Jun 29, 2017
* Author: pls
*/
#include <thrift/thrift-config.h>
#include <cstring>
#include <sstream>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
#endif
#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
#endif
#include <sy... |
#include <limits>
#include <vector>
#include <queue>
#include <unordered_map>
#include <functional>
#include <cstdlib>
const int INFINITY = std::numeric_limits<int>::max();
struct MapT {
const unsigned char* data;
int width;
int size;
};
struct NodeValue {
int index;
int f;
int h;
NodeValue(int index... |
#include "Content/AssetSaver.h"
#include "Streams/FileWriter.h"
#include "Core/Diagnostics/DbgUtils.h"
#include "Graphics/Resources/SingleUseCommandBuffer.h"
#include "Core/Threading/Tasks/Scheduler.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define STBIW_WINDOWS_UTF8
#define STBI_MSC_SECURE_CRT
#ifndef _DEBUG
#define... |
// Copyright 2021 The Chromium OS 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 "media_capabilities/camera.h"
#include <fcntl.h>
#include <linux/media.h>
#include <linux/videodev2.h>
#include <string.h>
#include <sys/stat... |
#include "Adapter.hh"
#include <clean-core/assert.hh>
#ifdef PHI_HAS_OPTICK
#include <optick/optick.h>
#endif
#include <phantasm-hardware-interface/common/log.hh>
#include <phantasm-hardware-interface/config.hh>
#include <phantasm-hardware-interface/features/gpu_info.hh>
#include "adapter_choice_util.hh"
#include "... |
const int MXN = 100005;
const int MEM = 100005;
struct Treap {
static Treap nil, mem[MEM], *pmem;
Treap *l, *r, *p, *lctp;
int val;
int rev, size;
Treap () :
l(&nil), r(&nil), p(&nil), lctp(&nil), val(-1), rev(0), size(0) {}
Treap (int _val) :
l(&nil), r(&nil), p(&nil), lctp(&nil), val(_val), rev(0)... |
#include <bits/stdc++.h>
using namespace std;
#define MAXN 500
#define MAXM 50005
typedef long long ll;
typedef pair<int, int> ii;
class SegmentTree {
public:
int lo[4*MAXN+1], hi[4*MAXN+1], minimum[4*MAXN+1], delta[4*MAXN+1];
SegmentTree() {
init(1, 0, MAXN-1);
}
void update(int a, int b... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class CreateGroups {
public:
int minChanges(vector <int> groups, int minSize, int maxSize) {
int a = 0;
int b = ... |
#include "app.h"
#include <cstdio>
#include <glad/glad.h>
#define GLT_IMPLEMENTATION
#include "libs/gltext.h"
Clock::Clock()
{
m_start = SDL_GetTicks();
}
// Returns elapsed time in seconds
float Clock::restart()
{
m_end = SDL_GetTicks();
float elapsed = (m_end - m_start) / 1000.0;
m_start = m_end;
... |
/*
* LoRaWANStack.cpp
*
* Created on: 27.05.2018
* Author: Maxi
*/
#include <LoRaWANStack.h>
#include "lorawan/LoRaWANInterface.h"
#include "lorawan/system/lorawan_data_structures.h"
#include "lorawan/lorastack/phy/lora_phy_ds.h"
#include "events/EventQueue.h"
#include "main.h" /* for LoRaWAN interface */
#... |
#include <iostream>
#include <QFile>
#include <QDebug>
#include <QHBoxLayout>
#include <QLabel>
#include <QPixmap>
#include <QPushButton>
#include <QLineEdit>
#include <QJsonDocument>
#include <QJsonObject>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QCryptographicHash>
#include <openssl/rsa... |
//
// Created by <NAME> on 2/3/19.
//
#include "../views/playfield/PlayfieldView.hpp"
#include "NNAI.hpp"
NNAI::NNAI( Side side )
: Paddle( side )
{
}
void NNAI::init()
{
Paddle::init();
playfield = static_cast<PlayfieldView*>(getParent());
// clear playfieldDataRight.dat
fstream playfieldD... |
// 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... |
/*************************************************************************
* Copyright (C) [2020] by Cambricon, Inc. 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 a... |
/* 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 distributed in the hope that it... |
/*
* Description : Function comparator is a tool to compare functions codes in different (<!--or same!-->) files
* It's different than diff in the fact that it allows comparison of single functions
* undependantly from the position of the function code in the files
* Author : <NAME>... |
#include <iostream>
#include <algorithm>
#include <vector>
#include <sstream>
#include <string>
#include <complex>
using std::vector;
using std::cout;
using complex = std::complex<double>;
const complex I(0,1); // imaginary unit
const double PI = 3.14159265359;
class Pair {
public:
int ind;
complex val;
Pair(int... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
/*
* Created by <NAME> on 2018/5/16.
*
* 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... |
#include <prior.h>
#include <enlist.h>
#include <exception.h>
#include <l.h>
#include <o.h>
#include <ukv.h>
namespace {
template <class X> using OT = ObjectTraits<X>;
const struct Prior {
template <class FUN, class R, class Y>
O operator()(FUN f, R r0, R r1, Y* first, Y* last) const {
... |
#include <iostream>
#include <stdio.h>
#include <cmath>
#include <vector>
#include <cstring>
#include <queue>
#include <cassert>
#include <algorithm>
using namespace std;
typedef long double ld;
const int MAX_N = 1e6 + 6;
const int MAX_M = 1e6 + 6;
const ld eps = 1e-9;
vector<int> edg[MAX_N];
vector<int> rev_edg[MAX_... |
//
// Author: <NAME>
// Copyright 2016
//
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <vector>
#include "Constants.h"
#include "LinAlg.h"
#include "PegTrans.h"
using std::vector;
// Default constructor
PegTrans::PegTrans() :
mat(3,vector<double>(3)),
matinv(3,vector<double>(3)),
ov(3) ... |
////////////////////////////////////////////////////////////////////////////
//
// This file is part of RTTeensyLink
//
// Copyright (c) 2015, richards-tech, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"... |
#include <Arduino_FreeRTOS.h>
#include <semphr.h> // add the FreeRTOS functions for Semaphores (or Flags).
#include "shared.h"
#include "lcd.h"
#include "gear.h"
#include "control.h"
#include "lights.h"
static int aBtnValue = 0;
SemaphoreHandle_t xSerialSemaphore;
LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, ... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#in... |
#include <boost/program_options.hpp>
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <pcl/common/point_operators.h>
#include <pcl/common/io.h>
#include <pcl/search/organized.h>
#include <pcl/search/octree.h>
#include <pcl/search/kdtree.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/filters/co... |
#include "bipolar/core/function.hpp"
#include <array>
#include <vector>
#include <gtest/gtest.h>
using namespace bipolar;
using namespace std::literals;
TEST(Function, Traits) {
EXPECT_TRUE(std::is_nothrow_move_constructible_v<Function<int(int)>>);
EXPECT_TRUE(std::is_nothrow_move_assignable_v<Function<int(... |
/*
* iknp-ot-ext-receiver.cpp
*
* Created on: Mar 4, 2015
* Author: mzohner
*/
#include "iknp-ot-ext-rec.h"
BOOL IKNPOTExtRec::receiver_routine(uint32_t id, uint64_t myNumOTs) {
uint64_t myStartPos = id * myNumOTs;
uint64_t wd_size_bits = m_nBlockSizeBits;
myNumOTs = min(myNumOTs + myStartPos, m_nOTs)... |
/***************************************************************************
qgsgrassshell.cpp
--------------------------------------
Date : Thu Apr 23 08:35:43 CEST 2009
Copyright : (C) 2009 by Lorenzo "<NAME>" Masini
Email : <EMAIL>
********************... |
#include "StdAfx.h"
#include "GuidUtilUnitTests.h"
using namespace DVLib::UnitTests;
CPPUNIT_TEST_SUITE_REGISTRATION(GuidUtilUnitTests);
void GuidUtilUnitTests::testguid2wstring()
{
typedef struct
{
LPCWSTR pszGuid;
GUID clsid;
} TestData;
TestData data[] =
{
... |
#include "qawsiotnetworkrequest_p.h"
#include <QString>
#include <QDateTime>
#include <QMessageAuthenticationCode>
#include <QCryptographicHash>
#include <QVector>
#include <numeric> //for std::accumulate
#include <algorithm> //for std::sort
QString vectorToDelimitedString(const QVector<QString> &vector, cons... |
/*
widgets.cpp: Additional widgets that are not part of NanoGUI
This file is part of the implementation of
Instant Field-Aligned Meshes
<NAME>, <NAME>, <NAME>, and <NAME>
In ACM Transactions on Graphics (Proc. SIGGRAPH Asia 2015)
All rights reserved. Use of this source code is gov... |
#include "google-tts.h"
#define HTTP_TCP_BUFFER_SIZE (1460)
String GoogleTTS::urlencode(String str)
{
String encodedString="";
char c;
char code0;
char code1;
char code2;
for (int i =0; i < str.length(); i++){
c=str.charAt(i);
if (c == ' '){
encodedString+= '+';
} els... |
#include "DataContainer.h"
void DataContainer::getDataFromMySQL(char* hostname ,
char* user ,
char* password ,
char* db_name ,
char* table_name ,
... |
#include "common.hpp"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/gpio.h>
#include <cstring>
#include <mutex>
#include <condition_variable>
#include "io/ir.hpp"
#include "io/si7021.hpp"
#include "dsp/persistent.hpp"
#include "dsp/filter.hpp"
#include "net/udp_client.hpp"
#include "net/udp_server.hpp"
#inc... |
#pragma once
#include <map>
#include <vector>
#include <chrono>
#include <memory>
#include <limits>
#define Slide_MAPLEN 2048 // was 325056
// Slide_HUGEPAGES defined in Node.h
#define Slide_USE_SMART_POINTERS 0 // 1 to use smart pointer or 0 to not. WARNING smart pointers are not thread safe
class Bucket;
class Ne... |
///////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
// This example code is from the book:
//
// Object-Oriented Programming with C++ and OSF/Motif
// by
// <NAME>
// ... |
#include "internal/define_user_funcs.hpp"
#include "frontend/diag_defs.hpp"
#include "internal/check_inf_recursion.hpp"
#include "internal/const_binder.hpp"
#include "internal/get_expr.hpp"
#include "internal/utilities.hpp"
#include "parse/nodes.hpp"
#include "prog/expr/node_call.hpp"
#include <cassert>
namespace {
c... |
/*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... |
#include "qhttprequestabstract.h"
QHttpRequestAbstract::QHttpRequestAbstract(QObject *parent) :
QObject(parent)
{
_authenticate = false;
_redirection = false;
setFriendlySeparator(false);
setContentType(Html);
setAcceptCompression(false);
_userAgent = QByteArray(USER_AGENT).append(" (Qt "... |
/*** File Header ************************************************************/
/**
* tfl_nonmaxsuppression.cc
*
* Elixir/Erlang Port ext. of tensor flow lite: post processing
* @author <NAME>
* @date create Tue Jul 13 14:25:06 JST 2021
* System MINGW64/Windows 10<br>
*
**/
/*************************************... |
#include "windows.h"
#include "avisynth.h"
#include "poster.h"
SSPoster::SSPoster(PClip _child, int _count, bool _clr,
IScriptEnvironment* env) :
GenericVideoFilter(_child), count(_count), clr(_clr) {
}
SSPoster::~SSPoster() {
}
PVideoFrame __stdcall SSPoster::GetFrame(int n,
IScriptEnvironment* env) {
PVide... |
#include <math.h>
#include <iostream>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include "sum_tree.h"
#include <sstream>
sum_tree::sum_tree(int buffer_size, double init_priorities):
buffer_size(buffer_size),
n_nodes(2 * int(pow(2, ceil(log2(buffer_size)))) - 1),
r... |
// Copyright (c) 2018 Norwegian University of Science and Technology (NTNU)
//
// BSD v3 License
//
// 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 ... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... |
#include "ObjManager.h"
#include "System.h"
void ObjManager::objToVAO(Obj3D* obj) {
Mesh* mesh = obj->getMesh();
for (Group* group : mesh->getGroups()) {
vector < GLfloat > vPosition;
vector < GLfloat > vColor;
for (Face* face : group->getFaces()) {
vector<int> verts = face->getVerts();
vector<int> col... |
// Software License for MTL
//
// Copyright (c) 2007 The Trustees of Indiana University.
// 2008 Dresden University of Technology and the Trustees of Indiana University.
// 2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: <NAME> and <NAME>
//
// ... |
//
// Orbit.hpp
// trappist
//
// Created by <NAME> on 08/03/2017.
// Copyright © 2017 <NAME>. All rights reserved.
//
#pragma once
#include <utility>
#include "Physics.hpp"
#include "Math/Utils.hpp"
#include "Math/vec3.hpp"
class Orbit {
long double a_, e_, i_, arg_, raan_, m_, T_;
Orbit(long do... |
/**
* Copyright 2004-present Facebook. All Rights Reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
const char* kUsage = R"(
- Reads equirect masks and projects them to individual cameras assuming a given depth.
- ... |
// Copyright 2013-2016 Stanford University
//
// Licensed under the Apache License, Version 2.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
#include "KickerBoard.hpp"
#include <tuple>
using namespace std;
std::shared_ptr<KickerBoard> KickerBoard::Instance;
KickerBoard::KickerBoard(shared_ptr<SharedSPI> sharedSPI, PinName nCs,
PinName nReset, PinName ball_led,
const string& progFilename)
: AVR910(shar... |
#include <iostream>
#include <windows.h>
#include <wrl/client.h>
#include "CLI11.hpp"
#include "dxcapi.h"
using Microsoft::WRL::ComPtr;
struct DxilMinimalHeader
{
UINT32 four_cc;
UINT32 hash_digest[4];
};
inline bool is_dxil_signed(void* buffer)
{
DxilMinimalHeader* header = reinterpret_cast<DxilMinimalHeader*>(... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
/*
* graph_search_inc_test.cpp
*
* Created on: Mar 14, 2018 14:05
* Description:
*
* Copyright (c) 2018 <NAME> (rdu)
*/
#include <stdio.h>
#include <vector>
#include "gtest/gtest.h"
#include "graph/graph.hpp"
#include "graph/search/astar.hpp"
#include "graph/search/dijkstra.hpp"
using namespace rdu;
struct ... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*******************************************************************
Copyright(c) 2016, <NAME>
All rights reserved.
Distributed under the BSD license.
(See accompanying file LICENSE.txt at
https://github.com/zhedahht/CodingInterviewChinese2/blob/master/LICENSE.txt)
*****************************************************... |
#include "deform_psroi_pooling.hpp"
#include "util/util.hpp"
namespace Shadow {
namespace Vision {
inline float bilinear_interp(const float* data, float x, float y, int width,
int height) {
auto x1 = static_cast<int>(std::floor(x));
auto x2 = static_cast<int>(std::ceil(x));
auto y... |
#include "../include/ceras.hpp"
#include "../include/layer.hpp"
#include "../include/utils/range.hpp"
#include "../include/utils/better_assert.hpp"
#include "../include/utils/color.hpp"
#include "../include/utils/tqdm.hpp"
#include "../include/model.hpp"
#include <fstream>
#include <string>
#include <vector>
#include ... |
#include "pch.h"
#include "ProtectorPublic.h"
#include "Protector.h"
#include "Locker.h"
void ProtectUnload(PDRIVER_OBJECT);
OB_PREOP_CALLBACK_STATUS OnPreOpenProcess(PVOID RegistrationContext, POB_PRE_OPERATION_INFORMATION Info);
NTSTATUS ProtectCreateClose(PDEVICE_OBJECT, PIRP Irp);
NTSTATUS ProtectDeviceControl(PDE... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel Corporation. 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 copyr... |
/* vim: noexpandtab nosmarttab tabstop=8 shiftwidth=8 softtabstop=8 textwidth=80
* author: <NAME>
* summary: Analyze a set of files for most commonly used words that are at
* least 6 characters long and no more than 50 letters long.
*/
#include <ctype.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdint.h>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.