text stringlengths 8.71k 38.4k |
|---|
#include <cassert>
#include <deque>
#include <unordered_map>
#include <vector>
#include "../include/datastructures.h"
#include "unionfind.h"
// ColouredSet
int ColouredSet::getColour(int x) const { return inverse_mapping.at(x); }
const std::deque<int> &ColouredSet::getColourClass(int i) const {
return mapping[i];... |
#include <arrayfire.h>
#include <iostream>
#include <vector>
#include <fstream>
#include <cmath>
#include <thread>
#include <tbb/concurrent_queue.h>
#include <tuple>
#include <algorithm>
#include <chrono>
using af::span;
using af::seq;
double gammac = 1.3;
double k = 150.0;
double R = 8.31;
double mu = 0.29;
double c... |
////////////////////////////////////////////////////////////////////////////////
// RegExp.cpp
////////////////////////////////////////////////////////////////////////////////
//#include "stdafx.h"
#include <stdlib.h>
#include "RegExp.h"
#include <string.h>
#include <iostream>
using namespace std;
#define TRACE0(_s)... |
#include <prequel/container/btree.hpp>
#include <prequel/container/hash_table.hpp>
#include <prequel/simple_file_format.hpp>
#include <clipp.h>
#include <fmt/format.h>
#include <chrono>
#include <random>
using namespace prequel;
using std::chrono::high_resolution_clock;
enum class mode {
init,
stats,
d... |
// simple app to iterate through active connections
#ifndef UNICODE
#define UNICODE
#endif
#include <stdio.h>
#include <process.h>
#include <direct.h>
#include <stdlib.h>
#include <ctype.h>
#include <ppl.h>
#include <vector>
#include <string>
#include <atomic>
#include <assert.h>
#include <fstream>
#include <iostream... |
#include "vtr_memory.h"
#include "vtr_random.h"
#include "vtr_time.h"
#include "globals.h"
#include "read_place.h"
#include "initial_placement.h"
#include "vpr_utils.h"
#include "place_util.h"
#include "place_constraints.h"
#include "move_utils.h"
#include "region.h"
#include "echo_files.h"
#include <chrono>
#includ... |
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
/*========================== begin_copyright_notice ============================
T... |
// Copyright (c) 2021-2022 Glass Imaging Inc.
// Author: <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 ... |
/* The latency monitor allows to easily observe the sources of latency
* in a Redis instance using the LATENCY command. Different latency
* sources are monitored, like disk I/O, execution of commands, fork
* system call, and so forth.
*
* ----------------------------------------------------------------------------... |
// NOTE: This file should probably be renamed to "config.cpp" or something similar.
// It doesn't really have anything to do with FireREST, except for the fact that it reads
// the same config.json file that's shared between firefuse and firerest. -- NJ 2014/10/04
#include <string>
#include <stdio.h>
#include <errno.h... |
#include "brutus/brutus.h"
#include "brutus/brutus_internal.h"
#include "brutus/Dialect/Julia/JuliaOps.h"
#include "brutus/Conversion/JLIRToLLVM/JLIRToLLVM.h"
#include "brutus/Conversion/JLIRToStandard/JLIRToStandard.h"
#include "julia.h"
#include "mlir/IR/Verifier.h"
#include "mlir/ExecutionEngine/ExecutionEngine.h... |
/*!
@file
@author <NAME>
*/
#include "MainWindow.h"
#include <QCheckBox>
#include <QComboBox>
#include <QDebug>
#include <QDoubleSpinBox>
#include <QFile>
#include <QFileDialog>
#include <QFileInfo>
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>
#include <QMenu>
#include <QMenuBar>
#include <QPalett... |
/**
* \file RaspiFastCamD.c
* Deamon to capture pictures from the camera on demand.
* Send a USR1 Signal to take a picture.
*
* \date 20/08/2013
* \Modified by: <NAME>
* \Author: <NAME>, <NAME>
*
* Description
*
* This program is designed to be a fast alternative to raspistill.
* It keeps the connection to ... |
//
// main.cpp
// GA
//
// Created by <NAME> on 19/11/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include <random>
#include <iostream>
#include <sys/stat.h>
#include <nlohmann/json.hpp>
#include "Individual.hpp"
#include "Selection.hpp"
#include "Variation.hpp"
#include "FitnessFunction.hpp"
#includ... |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use these files except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed... |
/*
* Copyright (c) [2021] Futurewei Technologies Co.,Ltd.All rights reserved.
*
* OpenArkCompiler is licensed under the Mulan Permissive Software License v2.
* You can use this software according to the terms and conditions of the MulanPSL - 2.0.
* You may obtain a copy of MulanPSL - 2.0 at:
*
* https://openso... |
// Copyright 2005 Google Inc. All Rights Reserved.
#include <algorithm>
using std::min;
using std::max;
#include <cmath>
using std::atan2;
using std::fabs;
using std::remainder;
using std::sin;
#include <ostream>
using std::ostream;
#include "s2latlngrect.h"
#include "base/logging.h"
#include "r1interval.h"
#inclu... |
/*! @file
@brief IMEの処理
@author <NAME>
@date 1998/03/13 作成
@date 2008/04/13 CEditView.cppから分離
*/
/*
Copyright (C) 1998-2002, <NAME>
Copyright (C) 2000, genta, JEPRO, MIK
Copyright (C) 2001, genta, GAE, MIK, hor, asa-o, Stonee, Misaka, novice, YAZAKI
Copyright (C) 2002, YAZAKI, hor, aroka, MIK, Moca, minfu, ... |
//===- PDLToPDLInterp.cpp - Lower a PDL module to the interpreter ---------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
The MIT License
Copyright (c) 2010 by <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, p... |
// Copyright (c) 2011-2015 <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, d... |
#include "Kmer.hpp"
#include <bitset>
#include <string>
#include <iostream>
using namespace std;
/*// use: int2bin(a, buffer, buf_size);
// pre: buf_size >= 8 and buffer has space for buf_size elements
// post: buffer[0,...,7] is the binary representation of a
void int2bin(uint32_t a, char *buffer, int buf_size) {
... |
#include "Arduino.h"
#include "gbConfig.h"
#include "gbGlobals.h"
#include "Z80.h"
#include "zx81.h"
//JJ #include "zx80rom.h"
//JJ #include "zx81rom.h"
#include "dataFlash/gbrom.h"
#include "dataFlash/gbpfile.h"
#include "emuapi.h"
//JJ #include "common.h"
//JJ #include "AY8910.h"
#include "string.h"
#include <stdio.h... |
int J ,eB ,OMiU
,
jS7MY32N,XOrN,dRhb ,
VN
, ohs/*klo*/, Uq
, yDqf//Ya
,ZVfF
,
M44
,akysR
,
xNaH
,//yCv
WP , sTv,Yr ,
//HY2n
XCttK
/*FQ*/, mZG
,WyU
,
ZNd0 ,S,
L ,
j,//p
AW ,/*U9z*/ b6F//
,QQH/*Kx*/, LPxd
,vP3G ,XO9g //vVM
, IKS ,//gor
//5Itr
RL
, QOcq ,//XI
ch
,
gp ,Cq , /*qo*/ LV,Rg
... |
/*
* Copyright 2021 <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 writ... |
#include "BSPParser.h"
#include "FileFormat/Structs.h"
#include <cstring>
#include <stdlib.h>
#include <cmath>
#include <stdexcept>
#include <limits>
using namespace BSPStructs;
using namespace BSPEnums;
inline float Dot(const float a[3], const float b[3])
{
return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
}
inline... |
/*
* Copyright 2015, 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 ... |
#include <stdio.h>
#include "texmunge.h"
#define COSTCODE 0
#define RIVER 15*16+2
#define ROAD 15*16+3
#define TOWN 15*16+4
#define BURBCODE 2
#define FARMCODE 3
#define FREECODE 4
#define BRIDGECODE 4*16+256*8
#define BRIDGECODE2 4*16+256*9
#define BRIDGECODE3 4*16+256*10
#define EARTCODE3 5
#define FORRCODE 2*16... |
#include "Tema1.h"
#include <vector>
#include <iostream>
#include <Core/Engine.h>
#include "Transform2D.h"
#define DEG2RAD 3.14159/180.0
using namespace std;
Tema1::Tema1()
{
}
Tema1::~Tema1()
{
}
void Tema1::Init() {
resolution = window->GetResolution();
auto camera = GetSceneCamera();
camera->SetOrthograph... |
/**
* This file is in the public domain.
* Contributors: <NAME>
*/
#include <iostream>
#include <vector>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "gl_core_3_0.hpp"
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "shad... |
#include "bluegin/resourcemanager.h"
#include "flx/flxG.h"
#include "PlayState.h"
#include "Hall.h"
#include "HUD.h"
#include "Jet.h"
#include "Sequence.h"
#include "Shard.h"
#include "Smoke.h"
#include "Walker.h"
using namespace ci;
using namespace bluegin;
using namespace flx;
extern FlxGlobal FlxG... |
#include "types/sobserver.hpp"
#include <iostream>
#include <deque>
#include <list>
#include "types/error.hpp"
#include "types/assumption.hpp"
using namespace cola;
using namespace prtypes;
//
// combining states
//
template<typename T> // T must be of pointer-type
class CombinationMaker {
private:
const std::v... |
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <vector>
#include <cmath>
#include <map>
#include <ctime>
#include <sstream>
#include <algorithm>
#include <boost/thread/thread.hpp>
#include <ros/ros.h>
#include... |
//============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... |
/* ===============================================================================================
scanDatabase.cpp Version 3 Last Update: 03/28/2019
This program reads in an image file, the directory of images to compare it with, the keypoint
files of those image (t... |
#include <stdio.h>
#include <vector>
#include <string>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include <map>
using namespace std;
#define NRNODES 5
struct DataEntry
{
string IP;
int rssi;
string macFrom;
string macTo;
uint32_t pid;
uint32_t time;
};
vector< DataEntry > ... |
#include "crypto.h"
#define AES_BLOCK_BYTES 16
#define AES_BLOCK_WORDS (AES_BLOCK_BYTES / sizeof(DWORD))
#define ROR32(v, n) ( (v) << (32 - n) | (v) >> n )
static const BYTE AesKeyV4[] = { 0x05, 0x3D, 0x83, 0x07, 0xF9, 0xE5, 0xF0, 0x88, 0xEB, 0x5E, 0xA6, 0x68, 0x6C, 0xF0, 0x37, 0xC7, 0xE4, 0xEF, 0xD2, 0xD6 };
... |
/************************************************************************
* "residuals_gili_2.c"
*
* To compute the residuals of measurements of binary stars
* from known orbits.
*
* From o-c.for (version of 2008)
* written by <NAME> - Osservatorio Astronomico di Brera-Merate
*
* New features:
* - It is no longer neces... |
#include "FreeRTOS.h" // FreeRTOS利用時必須
#include <Arduino.h>
#include "TaskControl.h"
#include "DBG.h"
#include "TFT.h"
#include <TimeLib.h> // for use now()
extern "C" {
#include "CTime.h"
}
double DispField[7][24][3];
char DispDate[7][32];
void drawtextxy(int x, int y, char *text, uint16... |
// This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... |
// ROS includes.
#include <ros/ros.h>
#include <ros/time.h>
#include <visualization_msgs/Marker.h>
#include <visualization_msgs/MarkerArray.h>
#include <geometry_msgs/Point.h>
#include <tf/transform_datatypes.h>
#include <tf/transform_listener.h>
// Boost includes
#include <stdio.h>
#include <stdlib.h>
// std includ... |
/*
chademo.cpp - Houses all chademo related functionality
*/
#include "chademo.h"
template<class T> inline Print &operator <<(Print &obj, T arg) { obj.print(arg); return obj; } //Sets up serial streaming Serial<<someshit;
void timestamp();
void inline checkRAM();
CHADEMO::CHADEMO()
{
bStartedCharge = 0;
bChademoMo... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
#include <cstdlib>
#include <cstring>
#include <string>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <vector>
#include <map>
#include <algorithm>
using namespace std;
class analyzer {
public:
enum MsgType { ERR_SYN, ERR_IN, ERR_OUT, INFO_FIN, INFO_HELP };
private:
struct report... |
////////////////////////////////////////////////////////////////////////
// Parallel amoeba algorithm for finding a minimum of the given
// multidimensional function. Implements the "parallel simplex" method
// described by <NAME> Wiswall, itself a modification of the "downhill
// simplex method" of Nelder and Mead.
/... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <linux/i2c-dev.h>
#include "caminit.h"
#include "camcfg.h"
static config_t cfg_ov5640_advanced_awb_[] =
{
// Enable Advanced AWB
{0x3406 ,0x00},
{0x5192 ,0x04},
{0x5191 ,0xf8},
{0... |
#include <wallet/createtransaction.h>
#include <wallet/fees.h>
#include <mweb/mweb_transact.h>
#include <policy/policy.h>
#include <policy/fees.h>
#include <policy/rbf.h>
#include <util/system.h>
#include <consensus/validation.h>
#include <validation.h>
#include <txmempool.h>
#include <logging.h>
#include <numeric>
#in... |
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <cassert>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
#include <poll.h>
#include <string.h>
#include <inttypes.h>
#include <libyuv.h>
#include <sys/resource.h>
#include <string>
#include <iostream>
#include <fstream>
#include <streambuf>
#... |
//--model=Data/Chicken/Mesh.xml --mesh=Data/Chicken/Mesh.ply
// --use_gpu --fast --method=1 --error=2 --confidence=0.9 --iterations=500 --inliers=30 --model=Data/Chicken/Mesh.xml --mesh=Data/Chicken/Mesh.ply --test_images=./Data/Chicken/Chicken/*.JPG --camera_intrinsic_file=Data/out_camera_dataset_101.yml
// --use_gpu ... |
// Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include <chrono>
#include <iostream>
#include "mfem.hpp"
#include "serac/serac_config.hpp"
#include "serac/numeric... |
#include "Application.hpp"
#include <iostream>
#include <unordered_set>
#include <algorithm>
#include <imgui.h>
#include <glmlv/Image2DRGBA.hpp>
#include <glmlv/scene_loading.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/io.hpp>
#define TINYGLTF_IMPLEMENTATION
#inclu... |
#include "cc/layers/CompositingLayer.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/WebKit/Source/platform/geometry/IntRect.h"
#include "third_party/WebKit/Source/wtf/text/WTFString.h"
#include "third_party/WebKit/Source/wtf/Ref... |
// ccealign -- structural alignment plugin modele for PyMol
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) <NAME>.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the foll... |
#include "omnicore/rpcrawtx.h"
#include "omnicore/createtx.h"
#include "omnicore/omnicore.h"
#include "omnicore/rpc.h"
#include "omnicore/errors.h"
#include "omnicore/tx.h"
#include "omnicore/utilsbitcoin.h"
#include "omnicore/rpctxobject.h"
#include "omnicore/rpcvalues.h"
#include "consensus/validation.h"
#include "... |
// Recommended Compilation Command:
// g++ -O3 -march=native <filename>.cpp -o <filename>
#include <algorithm>
#include <array>
#include <chrono>
#include <cstring>
#include <deque>
#include <fstream>
#include <iostream>
#include <limits>
#include <random>
#include <set>
#include <windows.h>
using namespace std;
cons... |
#include "TokenStream.h"
#include <cstdint>
#include <map>
static const std::map<std::string, TokenType> keywords = {
{"var", TokenType::Var},
{"let", TokenType::Let},
{"fn", TokenType::Fn},
{"loop", TokenType::Loop},
{"in", TokenType::In},
{"continue", TokenType::Con... |
/***************************************************************************
* rpc.cc -- Functions related to the RPCGrind (-sR) facility of Nmap. *
* This includes reading the nmap-rpc services file and sending rpc *
* queries and interpreting responses. The actual scan engine used for *
* rpc grin... |
// Copyright (c) 2017 Franka Emika GmbH
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
#include <iostream>
#include <franka/exception.h>
#include <franka/robot.h>
#include <franka/gripper.h>
#include <franka/model.h>
#include <thread>
#include <fstream>
#include "../examples/examples_com... |
/*
* Copyright (c) 2011-2013
* <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 must retain the above copyright notice,
* t... |
/* heXon
// Copyright (C) 2018 <NAME> (<EMAIL>)
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This progra... |
/*
* Copyright (c) 2015 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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... |
#include "half-edge_mesh.h"
HEmesh::HEmesh()
{}
HEmesh::~HEmesh()
{
for (int i = 0; i < this->verts.size(); i++)
delete this->verts[i];
for (int i = 0; i < this->edges.size(); i++)
delete this->edges[i];
for (int i = 0; i < this->faces.size(); i++)
delete this->faces[i];
for (int i = 0; i < this->nor... |
/*! @file
@brief DIFF差分表示ダイアログボックス
@author MIK
@date 2002.5.27
*/
/*
Copyright (C) 1998-2001, <NAME>
Copyright (C) 2001, Stonee, genta, JEPRO, YAZAKI
Copyright (C) 2002, aroka, MIK, Moca
Copyright (C) 2003, MIK, genta
Copyright (C) 2004, MIK, genta, じゅうじ
Copyright (C) 2006, ryoji
Copyright (C) 2009, ryoji
... |
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
/****************************************************************/
/* Parallel Combinatorial BLAS Library (for Graph Computations) */
/* version 1.6 -------------------------------------------------*/
/* date: 6/15/2017 ---------------------------------------------*/
/* authors: <NAME>, <NAME> ------------------------... |
#include "Pch.h"
#include "GameCore.h"
#include "GameResources.h"
#include "Item.h"
#include "Action.h"
#include "Building.h"
#include "BaseTrap.h"
#include "Spell.h"
#include "SceneNode.h"
#include "Language.h"
#include "Game.h"
#include "GameGui.h"
#include "Level.h"
#include <ResourceManager.h>
#include <SoundManage... |
// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// 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.apa... |
/*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright 1991- The GROMACS Authors
* and the project initiators <NAME>, <NAME> and <NAME>.
* Consult the AUTHORS/COPYING files and https://www.gromacs.org for details.
*
* GROMACS is free software; you can redistribute it and/or
* modify i... |
#include <mug.h>
#include <config.h>
#include <utf8.h>
#include <time.h>
#include <list>
#include <vector>
#include <string>
using namespace std;
#include <pthread.h>
#include <semaphore.h>
#include <errno.h>
#define cimg_display 0
#include <CImg.h>
using namespace cimg_library;
#include <locale.h>
#include "ft2bu... |
/*****************************************************************************
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved.
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
Founda... |
/*
* Default render file for Bela projects running Pd patches
* using libpd.
*/
#include <Bela.h>
#include <DigitalChannelManager.h>
#include <cmath>
#include <stdio.h>
#define PD_THREADED_IO
#include <libpd/z_libpd.h>
extern "C" {
#include <libpd/s_stuff.h>
};
#include <UdpServer.h>
#include <Midi.h>
#include <Scop... |
// Copyright (c) 2013 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 <GLES2/gl2.h>
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include ... |
// The final step in compilation, the now known-to-be-correct ASTs are fed into the code generator to produce C output, which is given to a C compiler to generate the binary.
#include "headers/passes.h"
#include "headers/context.h"
#include "headers/ast.h"
#include "headers/type.h"
#include "headers/arena.h"
#include ... |
#include "PostRoute.h"
#include "PinTapConnector.h"
void PostRoute::getPinTapPoints() {
dbNet.postOrderVisitGridTopo([&](std::shared_ptr<db::GridSteiner> node) {
if (node->pinIdx >= 0) {
pinTaps.push_back(node);
}
});
}
db::RouteStatus PostRoute::run() {
db::RouteStatus status ... |
//
// Created by <NAME> on 6/28/15.
//
#include "ForwardingModule.hpp"
#include <iostream>
#include <loci/of_message.h>
#include <tins/ethernetII.h>
#include <NetUtils.h>
#include <zsdn/Configs.h>
#include <zsdn/proto/DeviceModule.pb.h>
#include <zsdn/topics/DeviceModuleTopics.hpp>
#include <RequestUtils.h>
#include <... |
//
// main.cpp
//
// This program reimplements the sort function as a hybrid Quicksort with
// a crossover point under which selection sort is used.
//
// Notes
//
// I dunno. I'm not sure there is enough stability in my runtime environment
// to properly tune the crossover point. I'm seeing very subtle effects,
// i... |
int
Ry
, vS
,pU ,Ot , qJ , LaY ,
rNXf , KkD
, sXm, ch ,
H0,/*B*/sI ,Knc ,
NRtIQ ,
IBa
, emxm//1UG
, fjZ, Z
,/*n*/ n70
,/*NC*/ceS4S , i5Z
,PCn,
J8w,Yc//
,pH
, O4h, OUC,vbG,
q//ew
, cqi, V , tMDc , ksS05,xIF8rB//
, FIp,npo, rd, fJq
, WgY,
oZ ,B
,HWUb8,/*g*/R4H
,/*H*/kGmR , sYAA ,//nvl
HHX, SDV7q,... |
/*
* Copyright (C) 2015 <NAME>
*/
#include "include/ContextInfo.h"
#include <set>
#include <unordered_set>
#include <vector>
#include "include/util.h"
#include "include/ConstraintPass.h"
#include "include/SEG.h"
#include "include/ValueMap.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "l... |
#define Analysis_cxx
#include "Analysis.h"
#include "EnergyLoss.h"
#include <TRandom3.h>
#include <string>
#include "EffectiveThickness.h"
#include "json/json.h"
#include "Utilities.h"
//DOPPLER CORRECTION FUNCTION DEFINITION
Float_t dop(Float_t GamAngle, Float_t RecoilBeta, Float_t GamEnergy){
Float_t RecoilGamm... |
// MIT License
//
// Copyright(c) 2021-2022 <NAME>
// Copyright(c) 2021-2022 <NAME> - Reality XP
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwareand associated documentation files(the "Software"), to deal
// in the Software without restriction, including without lim... |
//[]Tic-tac-toe
//TODO
//--reimplement tie checker
//--implement spectacular endgame display
#include "MACROS.h"
#include <iostream>
#include <sstream>
#include <conio.h>
#include <cstdio>
#include <cctype>
#include <iomanip>
#include <vector>
#include <ctime>
#include <cstdlib>
#include <algorithm>
#include <limits... |
// todo:
// - compute min/max distance across all faces, then we can use this to adjust knob to min needed
#define NmStl 1 // 1=just one STL putput, 4= output this number STL files
#define NmStl_Arr 4
#include "../common/vtk_common.h"
#include <vtkSmartPointer.h>
#include <vtkVersion.h>
#include <vtkParametricFun... |
#include "Solver.h"
#include <string>
using namespace std;
/// Definitions for the CUDA Kernel calls and Kernels
extern "C"
{
/// Calculates the grid and block sizes
void computeGridSize(unsigned int n, unsigned int blockSize, unsigned int &numBlocks, unsigned int &numThreads);
/// Calls a function and checks if ... |
/*
* Copyright 2009 Rensselaer Polytechnic Institute
* 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.
*
* Thi... |
#include <iostream>
#include <sstream>
#include <bitset>
#include <iomanip>
#include <algorithm>
#include "DES.h"
#include "Colors.h"
#include <cmath>
DES::DES(std::string P, std::string K) {
plainText = hex2bin(P);
key64 = hex2bin(K);
}
DES::~DES() {}
void DES::xor48 (const std::string &inBlk48, const std::string ... |
/*
Moga serial to vJoy interface
Copyright (c) <NAME>. All rights reserved.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
PURPOSE.
... |
#include "topology_graph.h"
////////////////////////////////////////
// INITIALIZATION / SHUTDOWN METHODS
///////////////////////////////////////
// constructor
topology_graph::topology_graph() {
initialized = false;
last_update_sent_time = 0;
}
// clears the topology graph without stopping daemon
// equivalent ... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016-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 Soft... |
/** Util.cc
*
* Created on: Jun 20, 2016
* Author: <NAME>
*/
#include <cmath>
#include <vector>
#include "Util.h"
/**
* Header Interface for Class Util
*
*
class Util
{
public:
Util() {};
int interleave(int x, int y, int z, int level);
std::vector<double> uninterleave(int n, int L);
... |
/*
* Controller_SM_Trajectory_v2.cpp
*
* Created on: Nov 27, 2012
* Author: jespestana
*/
#include "Controller_SM_Trajectory_v2.h"
using namespace CVG;
/* ***** TrajectoryWaypoint functions ***** */
// DONE: solve - Problema de glibc:
// 1) double free or corruption (fasttop)
// 2) habia otro que p... |
//
// See LICENSE.txt for this sample’s licensing information.
//
// ztr_platform_independent_layer.cpp
// ZOZO Technologies Cross Platform Renderer Example
//
// MARK: Includes
#import "ztr_platform_abstraction_layer.h"
// MARK: Standard library includes
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#... |
int wn
, Cxv
,
bRO ,h5YZ//Pu
,/*h*/ NB ,Roc,bY9B ,Aoco //fY
,YC7 ,
Lq
,Ch
, qYLLg,//m
NXq , pomZo
,hQH ,
snF
, h7WX/**/,WE//
,xtBTR
,CK,//xT
R//6
,
Ieele, xK,nen,kl8o//N
/*ORo*/,SJR ,
tOaEm,A4
,
aQ, ZmY ,F7E73R
,TgD ,cfc, BxMS, kz7
, HgX
,
Ff//mgkMi
,Ur,dt,//m
qL ,aa, //c
ML8
,PO,
O5 ;void f_... |
#include "3ds.h"
#include "log.h"
#include <stdio.h>
#include <float.h> // to use _isnan( )
#ifndef PI
#define PI 3.1415926535897932 // This is our famous PI
#endif
void destroy_t3DModel(t3DModel *g_3DModel)
{
// Go through all the objects in the scene
for(int i = 0; i < g_3DModel->numOfObject... |
/*
dparallel_recursion: distributed parallel_recursion skeleton
Copyright (C) 2015-2020 <NAME>, <NAME>, <NAME>. Universidade da Coruna
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:/... |
#include "level.hpp"
CPlayer * CLevel::player = 0;
Widget * CLevel::widget = 0;
Camera * CLevel::cam = 0;
SDL_Renderer * CLevel::renderer = 0;
CLevel::CLevel ( SDL_Renderer * r, int tilesize, int i ): kernel_signal(r), exit_signal(r)
{
renderer = r;
widget_color = (SDL_Color){0,0,0,255};
if (!widget)
widget =... |
////////////////////////////////////////////////////////////////////////////////
// FreeSteel -- Computer Aided Manufacture Algorithms
// Copyright (C) 2004 <NAME> and <NAME>, with modifcations by <NAME> 2009
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Ge... |
/*
* Copyright 2012 Facebook, 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... |
#include <set>
#include <functional>
#include <Logic/Logics/Camera/sge_logic_camera_zoom.hpp>
#include <Object/Shape/sge_shape.hpp>
#include <algorithm>
#include <random>
#include "RavenScene.hpp"
#include "Image.hpp"
#include "Logics.hpp"
#include "Actions.hpp"
#include "RavenBot.hpp"
#include "Utilities.hpp"
#incl... |
#include <clickhouse/columns/array.h>
#include <clickhouse/columns/date.h>
#include <clickhouse/columns/enum.h>
#include <clickhouse/columns/factory.h>
#include <clickhouse/columns/lowcardinality.h>
#include <clickhouse/columns/nullable.h>
#include <clickhouse/columns/numeric.h>
#include <clickhouse/columns/string.h>
#... |
//===- Coroutines.cpp -----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.