text string | size int64 | token_count int64 |
|---|---|---|
#include "perf_precomp.hpp"
using namespace std;
using namespace cv;
using namespace perf;
using std::tr1::tuple;
using std::tr1::make_tuple;
using std::tr1::get;
#define TYPICAL_MAT_SIZES_SORT TYPICAL_MAT_SIZES
#define TYPICAL_MAT_TYPES_SORT CV_8UC1, CV_16UC1, CV_32FC1
#define SORT_TYPES ... | 1,518 | 665 |
#include "LocalHookBase.h"
namespace blackbone
{
std::unordered_map<void*, DetourBase*> DetourBase::_breakpoints;
void* DetourBase::_vecHandler = nullptr;
DetourBase::DetourBase()
{
}
DetourBase::~DetourBase()
{
VirtualFree( _buf, 0, MEM_RELEASE );
}
/// <summary>
/// Allocate detour buffer as close to target a... | 7,246 | 2,493 |
#include<iostream>
#include<fstream>
#include<map>
#include<vector>
#include<cstdlib>
#include<algorithm>
#include<set>
#define CH printf("check!!\n");
using namespace std;
int main(int argc,char *argv[])
{
ifstream infile1(argv[1]);
ofstream outfile(argv[2],ios_base::out | ios_base::binary);
string str1,str2;... | 3,195 | 1,280 |
#include <test/unit/math/test_ad.hpp>
TEST(mathMixMatFun, log1m) {
auto f = [](const auto& x1) { return stan::math::log1m(x1); };
stan::test::expect_common_unary_vectorized(f);
stan::test::expect_unary_vectorized(f, -21.5, -21, -1, 0.9, 3);
}
| 250 | 116 |
#include "LumenPCH.h"
#include <regex>
#include <stb_image.h>
#define TINYEXR_IMPLEMENTATION
#include <zlib.h>
#include <tinyexr.h>
#define TINYGLTF_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define TINYOBJLOADER_IMPLEMENTATION
#include "RayTracer.h"
RayTracer* RayTracer::i... | 22,717 | 10,115 |
#include "Diagnostics.H"
#include "Diagnostics/ComputeDiagFunctors/ComputeDiagFunctor.H"
#include "ComputeDiagFunctors/BackTransformParticleFunctor.H"
#include "Diagnostics/FlushFormats/FlushFormat.H"
#include "Diagnostics/ParticleDiag/ParticleDiag.H"
#include "FlushFormats/FlushFormatAscent.H"
#include "FlushFormats/... | 19,044 | 6,324 |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrCircleBlurFragmentProcessor.fp; do ... | 16,133 | 5,059 |
#include <cassert>
#include "UserAgent.hxx"
#include "UserAgentServerAuthManager.hxx"
#include <resip/dum/DialogUsageManager.hxx>
#include <resip/dum/ServerAuthManager.hxx>
#include <resip/dum/UserAuthInfo.hxx>
#include <resip/dum/UserProfile.hxx>
#include <rutil/MD5Stream.hxx>
#include <rutil/WinLeakCheck.hxx>
#def... | 5,159 | 1,565 |
// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE SparseFormatsTest
#include "../lib/popsparse/SparseStorageInternal.hpp"
#include <boost/test/unit_test.hpp>
// CSR/CSC representation of matrix for element sparsity
// 10 20 0 0 0 0
// 0 30 0 40 0 0
//... | 20,539 | 10,820 |
//
// onnxOpConverter.cpp
// MNNConverter
//
// Created by MNN on 2019/01/31.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "onnxOpConverter.hpp"
#include "OpCount.hpp"
using namespace MNN;
static int32_t _limit(int64_t i64) {
if (i64 > (int64_t)(1 << 30)) {
return 1 << 30;
}
i... | 9,224 | 3,036 |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 20,382 | 6,110 |
/**
* Copyright 2004-present, 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 ... | 1,628 | 512 |
/*
* Copyright (c) 2014 - 2015, The Linux Foundation. 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 li... | 35,578 | 13,990 |
//
// IndexBox.h
// InternetMap
//
// Created by Alexander on 11.12.12.
// Copyright (c) 2012 Peer1. All rights reserved.
//
#ifndef InternetMap_IndexBox_hpp
#define InternetMap_IndexBox_hpp
#include "Types.hpp"
#include <set>
static const float IndexBoxMinX = -8;
static const float IndexBoxMaxX = 8;
static cons... | 1,538 | 520 |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2016, Intel Corporation
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
// documentation files (the "Software"), to de... | 13,132 | 4,527 |
#include "prestopch.h"
#include "Channel.h"
#include "Presto/Components/Electronics/Communication/Signals/ISignal.h"
namespace Presto
{
void Channel::Send(ISignal* signal)
{
m_Signal = signal;
}
ISignal* Channel::Read()
{
return m_Signal;
}
} | 286 | 110 |
// Copyright (c) 2011 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 "base/string16.h"
#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/common/chrome_switches... | 2,497 | 896 |
#include "default_theme_provider.h"
#include "ui_base/resource/resource_bundle.h"
#include "view/widget/native_widget_win.h"
namespace view
{
DefaultThemeProvider::DefaultThemeProvider() {}
DefaultThemeProvider::~DefaultThemeProvider() {}
void DefaultThemeProvider::Init(Profile* profile) {}
SkBi... | 1,055 | 309 |
#include <cmath>
#include "greentea-client/test_env.h"
#include "mbed.h"
#include "unity.h"
#include "utest.h"
#include "vznncv_stepper_motor.h"
#include "vznncv_stepper_motor_extra.h"
using namespace utest::v1;
using vznncvsteppermotor::BaseStepperMotor;
using vznncvsteppermotor::microseconds_u32;
using vznncvstepp... | 20,804 | 8,500 |
// -*- C++ -*-
//===--------------------------- semaphore --------------------------------===//
//
// 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
//
//===------------... | 8,329 | 3,142 |
/***************************************************************************
* ARM Stack Unwinder, Michael.McTernan.2001@cs.bris.ac.uk
* Updated, adapted and several bug fixes on 2018 by Eduardo José Tagle
*
* This program is PUBLIC DOMAIN.
* This means that there is no copyright and anyone is able to take a copy
... | 34,521 | 13,141 |
/*
* 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 ... | 4,411 | 1,385 |
#include <algorithm>
#include "predictor.cpp"
inline double sq(const double& x) { return x * x; }
double cosine(const LDMap &syms1, const LVec &syms2,
const Tfidf &tfidf){
double sig = 0, sig1 = 0, sig2 = 0;
for (auto s : syms1)
sig1 += sq(tfidf.get(s.first)) * sq(s.second);
for (auto s : syms... | 2,271 | 981 |
/*
Текстовый квест 20WaysToDie
Учебный проект
(c) Брянцев Всеволод
(c) Компьютерная академия ШАГ . Воронеж
Версия 1.0 (08.04.2019)
*/
#include "pch.h"
#include <iostream>
#include <stdlib.h>
using namespace std;
int endings[21];
int menu_choice;
/*--------------------------------------------... | 45,266 | 20,287 |
#include <UnitTest/UnitTest.hpp>
#include <Euclid/Geometry/Axis.hpp>
namespace Euclid
{
namespace Geometry
{
UnitTest::Suite AxisTestSuite {
"Euclid::Geometry::Axis",
{"Construction",
[](UnitTest::Examiner & examiner) {
auto a1 = Axis<RealT>{IDENTITY};
examiner << "Identity axis has zero tr... | 2,401 | 1,135 |
// Copyright 2021 The Fuchsia 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 "src/devices/testing/mock-ddk/mock-device.h"
#include <zircon/syscalls/log.h>
MockDevice::MockDevice(device_add_args_t* args, MockDevice* parent... | 8,428 | 3,037 |
#include "Controller.hpp"
#include "Transform.hpp"
#include "Window.hpp"
Controller::Controller(Engine& engine) : _engine(engine), _possessed(engine) {
SYSFUNC_ENABLE(SystemInterface, update, 0);
SYSFUNC_ENABLE(SystemInterface, cursorPosition, 0);
SYSFUNC_ENABLE(SystemInterface, keyInput, 0);
SYSFUNC_ENABLE(Syst... | 3,136 | 1,254 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/render_text.h"
#include <algorithm>
#include "base/debug/trace_event.h"
#include "base/i18n/break_iterator.h"
#include "base/loggin... | 35,240 | 11,571 |
// $Id: SSL_Asynch_Stream_Test.cpp 90163 2010-05-18 21:42:20Z mitza $
// ============================================================================
//
// = LIBRARY
// tests/SSL
//
// = FILENAME
// SSL_Asynch_Stream_Test.cpp
//
// = DESCRIPTION
// This program is a functionality test of ACE_SSL_... | 17,743 | 6,401 |
/*
Copyright (c) 2019 Adam Biser <adambiser@gmail.com>
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, pub... | 20,030 | 6,526 |
/*
* MIT License
*
* Copyright (c) 2018 insa.4if.hexanome_kalate
*
* 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 us... | 23,963 | 6,058 |
//*****************************************************************************
// Copyright (c) 2003. All rights reserved.
// Developed by Jarl Lindrud.
// Contact: jlindrud@hotmail.com .
//*****************************************************************************
#ifndef _UTIL_READWRITEPROTECT_HPP_
#defi... | 3,021 | 962 |
#include "InetAddress.h"
#include "TlsAcceptor.h"
#include "TlsConfig.h"
#include "TlsStream.h"
int main(int argc, char* argv[])
{
TlsConfig config;
// config.setCaFile("ca.pem");
config.setCertFile("server.pem");
config.setKeyFile("server.pem");
InetAddress listenAddr(4433);
TlsAcceptor acceptor(&config,... | 425 | 173 |
#pragma warning(default:4005)
extern void** ppPluginData;
extern void* pAMXFunctions;
typedef void (*logprintf_t)(const char* szFormat, ...);
extern logprintf_t logprintf;
| 172 | 62 |
/**
* @brief define container Data_Vec
*
* @file class_data_vec.hpp
* @author Michal Vrastil
* @date 2018-07-11
*/
#pragma once
#include "stdafx.h"
#include <array>
/**
* @class: Data_Vec
* @brief: class containing data [x, y,...]
*/
template <typename T, size_t N>
class Data_Vec
{
public:
// CONSTRUCTO... | 1,227 | 465 |
/*
@@@@@@@@ @@ @@@@@@ @@@@@@@@ @@
/@@///// /@@ @@////@@ @@////// /@@
/@@ /@@ @@@@@ @@ // /@@ /@@
/@@@@@@@ /@@ @@///@@/@@ /@@@@@@@@@/@@
/@@//// /@@/@@@@@@@/@@ ////////@@/@@
/@@ /@@/@@//// //@@ @@ /@@/@@
/@@ @@@//@@@@@@ //@@... | 4,529 | 1,593 |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... | 1,623 | 536 |
#include "bmat.hpp"
#include "SwapByTwoIndex.hpp"
/*
bool SwapByTwoIndex::getVal(class sstd::bmat& bMat, uint& p, uint& q){
// Mat 座標 <- bMat 座標
uint p_Div8 = p / 8;
uint q_Div8 = q / 8;
// bMat8x8 座標 <- bMat 座標
uint p_Mod8 = p - p_Div8 * 8; // p % 8;
uint q_Mod8 = q - q_Div8 ... | 1,284 | 670 |
/**
* \file linkedlist.hpp
* \author Dan Obermiller
* \brief Implementation of a singly-linked list.
*/
#ifndef LINKEDLIST_HPP
#define LINKEDLIST_HPP 1
#include <cstddef>
#include <iterator>
#include "list.hpp"
#include "../exceptions.hpp"
/**
* \brief A paramaterized singly-linked list
*/
template <typename... | 7,117 | 2,510 |
/*
* TFTP.cpp
*
* See also:
* * https://tools.ietf.org/html/rfc1350
* Created on: May 21, 2017
* Author: kolban
*/
#include "TFTP.h"
#include <esp_log.h>
#include <FreeRTOS.h>
#include <GeneralUtils.h>
#include <string>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <Socket.h>
#includ... | 10,916 | 4,241 |
/*
textdefs.c
diStorm3 - Powerful disassembler for X86/AMD64
http://ragestorm.net/distorm/
distorm at gmail dot com
Copyright (C) 2003-2016 Gil Dabah
This library is licensed under the BSD license. See the file COPYING.
*/
#include <stdafx.h>
#include "textdefs.h"
#ifndef DISTORM_LIGHT
static uint8_t Nibble2ChrTabl... | 6,462 | 4,052 |
//
// UtcTime - shows how to use UTC time in logs.
//
#include <plog/Log.h>
#include <plog/Init.h>
#include <plog/Formatters/CsvFormatter.h>
#include <plog/Formatters/TxtFormatter.h>
#include <plog/Appenders/ColorConsoleAppender.h>
#include <plog/Appenders/RollingFileAppender.h>
int main()
{
static plog::ColorCon... | 898 | 329 |
#include "bam.h"
#include "sam.h"
#include "stdlib.h"
#include <vector>
#include <string>
#include <set>
#include <iostream>
#include <fstream>
#include <map>
#include <sstream>
#include <numeric>
#include <iomanip>
using namespace std;
typedef struct {
int beg, end;
samfile_t *in;
} tmpstruct_t;
int GetTLe... | 3,723 | 1,716 |
// Fill out your copyright notice in the Description page of Project Settings.
#include "CompoundStorageComponent_Cell.h"
#include "Character_SingleCelled.h"
#include "Logging.h"
#include "Runtime/Engine/Classes/Kismet/GameplayStatics.h"
#include "Meta_CellStage.h"
// Sets default values for this component's propert... | 12,690 | 5,064 |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "myriad_metrics.h"
#include <algorithm>
#include <vpu/utils/error.hpp>
using namespace vpu::MyriadPlugin;
using namespace InferenceEngine;
using namespace VPUConfigParams;
using namespace PluginConfigParams;
//---------... | 4,202 | 1,459 |
#include "enclave.h"
int enclave_b_flow(oe_enclave_t* enclave, const char* input_file) {
int ret = 0;
const char* encrypted_file = "./out.encrypted";
const char* decrypted_file = "./out.decrypted";
// encrypt a file
std::cout << "Host: decrypting file:" << decrypted_file << std::endl;
ret = enc... | 1,230 | 398 |
// 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 may... | 16,444 | 5,397 |
// Copyright Oliver Kowalke 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_FIBERS_DETAIL_CONFIG_H
#define BOOST_FIBERS_DETAIL_CONFIG_H
#include <cstddef>
#include <bo... | 1,913 | 860 |
#define FMT_HEADER_ONLY
#include <fmt/format.h>
int main() {
fmt::print("Hello, {}!\n", 42);
}
| 98 | 46 |
// MapGenerator
// from https://github.com/Rellikiox/MapGenerator
/*
* LineEquation.cc
*
* Created on: Mar 5, 2012
* Author: rellik
*/
#include "LineEquation.h"
equ::equ(Vec2 p1, Vec2 p2) {
// Calculamos la pendiente
if (p1.x != p2.x) {
vertical = false;
m = (p2.y - p1.y) / (p2.x - p1.x);
b = p1... | 1,743 | 910 |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "precomp.h"
#include <wextestclass.h>
#include "../../inc/consoletaeftemplates.hpp"
#include "adaptDispatch.hpp"
using namespace WEX::Common;
using namespace WEX::Logging;
using namespace WEX::TestExecution;
namespace M... | 118,963 | 37,484 |
/*******************************************************************************
* Copyright 2014-2019 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.apa... | 5,417 | 2,057 |
//snippet-sourcedescription:[list_receipt_filters.cpp demonstrates how to list the Amazon SES IP filters for an AWS account.]
//snippet-service:[ses]
//snippet-keyword:[Amazon Simple Email Service]
//snippet-keyword:[C++]
//snippet-keyword:[Code Sample]
//snippet-sourcetype:[full-example]
//snippet-sourceauthor:[... | 2,939 | 885 |
#include <common.h>
#pragma hdrstop
#include <OpenGlRenderMechanism.h>
#include <GlContextManager.h>
#include <GlWindowUtils.h>
#include <DrawEnums.h>
#include <State.h>
#include <Framebuffer.h>
namespace Gin {
//////////////////////////////////////////////////////////////////////////
COpenGlRenderMec... | 3,145 | 1,128 |
// Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <CoreLib/LogSystem/EntityLogger.hpp>
namespace bw
{
inline EntityLogger::EntityLogger(Ndk::EntityHandle entity, const Logger& logParent) :
LoggerPro... | 472 | 162 |
//===-- MipsRegisterInfo.cpp - MIPS Register Information -== --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 11,230 | 3,930 |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "BehaviorTreeEditorPrivatePCH.h"
#include "BehaviorTreeEditorCommands.h"
#define LOCTEXT_NAMESPACE "BehaviorTreeEditorCommands"
FBTCommonCommands::FBTCommonCommands()
: TCommands<FBTCommonCommands>("BTEditor.Common", LOCTEXT("Common", "Common"),... | 2,598 | 852 |
#include <mscorlib/System/Security/Permissions/mscorlib_System_Security_Permissions_StrongNameIdentityPermissionAttribute.h>
#include <mscorlib/System/mscorlib_System_String.h>
#include <mscorlib/System/mscorlib_System_Type.h>
namespace mscorlib
{
namespace System
{
namespace Security
{
namespace Permission... | 5,634 | 2,073 |
//
// Created by Sebastian on 26/11/2020.
//
#include "Checking_Account.h"
Checking_Account::Checking_Account(std::string name, double balance, double fee)
: Account{name, balance}, fee{fee} {
}
bool Checking_Account::withdraw(double amount) {
amount += fee;
return Account::withdraw(amount);
}
std::os... | 514 | 177 |
/*
* Copyright (c) 2001, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 36,610 | 10,089 |
#pragma once
#include "../../other/template.hpp"
#include "../../other/monoid.hpp"
template<class M> class SlidingWindowAggregation {
protected:
using T = typename M::value_type;
std::stack<T> lst, rst;
std::stack<T> lsm, rsm;
T internal_all_prod() const {
assert(!empty());
if (lst.e... | 1,873 | 655 |
// Copyright 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 "base/power_monitor/power_monitor.h"
#include "base/macros.h"
#include "base/test/power_monitor_test_base.h"
#include "base/test/task_environmen... | 8,107 | 2,700 |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
... | 11,924 | 3,989 |
// Copyright (c) 2012-2018 fo-dicom contributors.
// Licensed under the Microsoft Public License (MS-PL).
#if defined(_WIN32)
#define EXPORT_OpenJPEG __declspec(dllexport)
extern "C"{
#include "OpenJPEG/openjpeg.h"
#include "OpenJPEG/j2k.h"
}
#elif defined(__linux__)
#define EXPORT_OpenJPEG extern
extern "C"{
#incl... | 2,342 | 1,042 |
/* $NoKeywords: $ */
/*
//
// Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved.
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
// McNeel & Associates.
//
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
// ALL IMPLIED WARRANTIES OF FITNE... | 33,014 | 14,645 |
/*
* Copyright (C) 2008, 2009 Google 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 retain the above copyright
* notice, this list of co... | 4,364 | 1,465 |
// This file is generated by Ubpa::USRefl::AutoRefl
#pragma once
#include <USRefl/USRefl.h>
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::UECS::SingletonsView> :
TypeInfoBase<Ubpa::UECS::SingletonsView>
{
#ifdef UBPA_USREFL_NOT_USE_NAMEOF
static constexpr char name[27] = "Ubpa::UECS::SingletonsView";
#endif... | 630 | 231 |
// -*- C++ -*-
// Grid_i.cpp,v 1.20 2001/04/02 18:12:24 kitty Exp
#include "Grid_i.h"
#include "tao/corba.h"
// Default constructor.
Grid_i::Grid_i (void)
: width_ (0),
height_ (0),
array_ (0)
{
//no-op
}
// Constructor.
Grid_i::Grid_i (CORBA::Short x,
CORBA::Short y,
... | 4,241 | 1,746 |
/*
* Copyright (C) 2020 The Android Open Source Project
*
* 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 app... | 6,639 | 2,215 |
// Copyright 2015 Patrick Putnam
//
// 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 o... | 2,705 | 924 |
/******************************************************************************
* Copyright (c) 2017 Philipp Schubert.
* All rights reserved. This program and the accompanying materials are made
* available under the terms of LICENSE.txt.
*
* Contributors:
* Philipp Schubert and others
**********************... | 23,828 | 7,313 |
// @HEADER
// ***********************************************************************
//
// Sacado Package
// Copyright (2006) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this s... | 24,618 | 8,162 |
//
// Created by hossein on 9/22/20.
//
#include "tf_publisher/tf_publisher.h"
int main(int argc, char **argv){
rclcpp::init(argc, argv);
std::shared_ptr<TFPublisher> tf_publisher_node = std::make_shared<TFPublisher>();
rclcpp::spin(tf_publisher_node);
rclcpp::shutdown();
return 0;
} | 297 | 131 |
#include "clinterface/batteryarg.h"
namespace rtt {
namespace clinterface {
BatteryArg::BatteryArg() {}
BatteryArg::BatteryArg(const std::string & battery) {
init(battery);
}
std::string BatteryArg::getName(Constants::BatteryID batteryId) {
switch(batteryId) {
case Constants::BatteryID::NIST_STS:
... | 5,896 | 2,257 |
#pragma once
#include <typed-geometry/functions/basic/limits.hh>
#include <typed-geometry/functions/vector/math.hh>
#include <typed-geometry/types/objects/triangle.hh>
#include "aabb.hh"
#include "coordinates.hh"
/**
* Rasterization of objects
*
* Enumerates all integer points (tg::ipos2, tg::ipos3, ...) that are... | 9,149 | 3,323 |
/*
* Copyright 2019 Xilinx, 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... | 15,862 | 5,808 |
#include "common.h"
#include <sys/time.h>
int main(int argc, char** argv)
{
int batchSize;
options_description batchOption("batch_write option");
batchOption.add_options()("batch_size,b", value<int>(&batchSize)->default_value(1), "batch size");
variables_map vm = parse(argc, argv, &batchOption);
... | 1,733 | 581 |
/*
* Copyright (C) 2015 Samsung Electronics Co., Ltd All Rights Reserved
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Free Software Foundation.
*
* This library is distributed in the h... | 1,925 | 632 |
// Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// _Stoxflt function
#include "xmath.h"
#include <ctype.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
_EXTERN_C_UNLESS_PURE
constexpr int _Base = 16; // hexadecimal
constexpr int _Ndig... | 4,002 | 1,472 |
#include "VelocityComponent.h"
VelocityComponent::VelocityComponent()
{
m_xVelocity = 0;
m_yVelocity = 0;
}
VelocityComponent::~VelocityComponent()
{
}
VelocityComponent::VelocityComponent(int xVelocity, int yVelocity)
{
}
int VelocityComponent::GetXVelocity()
{
return 0;
}
int Ve... | 603 | 246 |
#include "EffectSetting.h"
#include "../Graphics/GraphicsDevice.h"
#include "../Sound/SoundDevice.h"
#include "FileInterface.h"
#ifdef _WIN32
#include "../Graphics/Platform/DX11/efk.GraphicsDX11.h"
#endif
#include "../Graphics/Platform/GL/efk.GraphicsGL.h"
#include <EffekseerSoundOSMixer.h>
namespace Effekseer::Tool... | 1,758 | 612 |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are perm... | 27,569 | 7,508 |
/*
* Copyright (c) 2006-2013 Apple Inc. All Rights Reserved.
*
* SSL viewer tool, SecureTransport / Aspen version.
*/
#include <Security/SecureTransport.h>
#include <Security/SecureTransportPriv.h> // for SSLGetPeerSecTrust
#include <Security/SecTrustPriv.h>
#include "sslAppUtils.h"
#include "ioSock.h"
#include "u... | 43,655 | 18,368 |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#pragma once
#include <memory>
#include <set>
#include "../allocator.hpp"
#include "../utils/utils.hpp"
#include "kvdk/namespace.hpp"
namespace KVDK_NAMESPACE {
constexpr uint32_t kFreelistMaxClassifiedBlockSize = 255;
constexpr ui... | 7,852 | 2,540 |
/*
oscpack -- Open Sound Control packet manipulation library
http://www.audiomulch.com/~rossb/oscpack
Copyright (c) 2004-2005 Ross Bencina <rossb@audiomulch.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files
(the "Software"), to ... | 5,554 | 2,485 |
#include "mandelbrot.hpp"
#include <FL/fl_draw.H>
Mandelbrot::Mandelbrot(int max_iter, int screen_width, int screen_height, double start_x, double end_x, double start_y, double end_y, double zoom_center_x, double zoom_center_y, double zoom_coeff) :
max_iter(max_iter),
screen_width(screen_width), screen_height(screen... | 3,048 | 1,292 |
namespace hise { using namespace juce;
//==============================================================================
struct HiseJavascriptEngine::RootObject::TokenIterator
{
TokenIterator(const String& code, const String &externalFile) : location(code, externalFile), p(code.getCharPointer()) { skip(); }
Debugabl... | 62,594 | 22,691 |
#include <utility>
#include <iostream>
#include <tuple>
#include <functional>
template <typename N>
void print(N v)
{
std::cout << v << std::endl;
}
template <typename N, typename... Ns>
void print(N v, Ns... vs)
{
std::cout << v << ", ";
print(vs...);
}
template <size_t... I>
void print(std::index_sequence<I...>... | 1,938 | 807 |
// Copyright 2016 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 "platform/v8_inspector/V8ConsoleAgentImpl.h"
#include "platform/v8_inspector/V8ConsoleMessage.h"
#include "platform/v8_inspector/V8DebuggerImpl.... | 3,401 | 1,038 |
#include <stdio.h>
int main(){
int v[10001], n,x,y, maior, menor;
scanf("%d", &n);
for(int i =0; i < n; i++){
scanf("%d %d", &x, &y);
if(x > y){
maior = x; menor = y;
}else{
maior = y; menor = x;
}
v[i]=0;
for(int j = menor + 1; j < ... | 486 | 205 |
// **************************************
// File: KButtonView.cpp
// Copyright: Copyright(C) 2013-2017 Wuhan KOTEI Informatics Co., Ltd. All rights reserved.
// Website: http://www.nuiengine.com
// Description: This code is part of NUI Engine (NUI Graphics Lib)
// Comments:
// Rev: 2
// C... | 2,342 | 974 |
#include <iostream>
#include <fstream>
#include "lexer.h"
#include "parser.h"
using namespace kaleidoscope;
int main(int argc, char **argv) {
if (argc != 2) {
std::cout << "Too few arguments; you need to specify the input filename.\n";
return -1;
}
std::fstream f(argv[1]);
if (f.fail()) {
std::co... | 535 | 214 |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/url_request/url_request_context_builder.h"
#include <string>
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include... | 14,569 | 4,366 |
// Copyright (c) 2018 Parsa Amini
// Copyright (c) 2018 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(PHYLANX_PRIMITIVES_SUM)
#define PHYLANX_PRIMITIVES_SUM
#include <phylanx/confi... | 3,054 | 957 |
//
// FILE NAME: CQCTreeBrws_CfgSrvBrws.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 12/11/2015
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://op... | 29,258 | 9,734 |
/*! \file
\brief The AnnotationManager that generates ActiveStandard.
\authors Michelle Strout
\version $Id: ManagerActiveStandard.cpp,v 1.8 2005/06/10 02:32:02 mstrout Exp $
Copyright (c) 2002-2005, Rice University <br>
Copyright (c) 2004-2005, University of Chicago <br>
Copyright (c) 2006, Contributo... | 7,244 | 2,316 |
#include <ros/ros.h>
#include <graph_core/parallel_moveit_collision_checker.h>
#include <graph_replanning/trajectory.h>
#include <moveit/robot_state/robot_state.h>
#include <graph_replanning/replanner.h>
int main(int argc, char **argv)
{
ros::init(argc, argv, "node_test_replanner");
ros::AsyncSpinner spinner(4);
... | 9,299 | 3,149 |
#include "landscapes/svo_tree.sanity.hpp"
#include "landscapes/svo_tree.hpp"
#include "landscapes/svo_formatters.hpp"
#include "format.h"
#include <iostream>
#include <tuple>
namespace svo{
::std::ostream& operator<<(::std::ostream& out, const svo::svo_block_sanity_error_t& error)
{
if (!error.has_err... | 47,872 | 14,020 |
/*
* Copyright (C) 2012 The Android Open Source Project
*
* 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 app... | 3,979 | 1,345 |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) |
+---------... | 70,741 | 30,470 |