text string | size int64 | token_count int64 |
|---|---|---|
// -*- C++ -*-
// $Id: Current.cpp 96992 2013-04-11 18:07:48Z huangh $
#include "tao/RTScheduling/Current.h"
#include "tao/RTScheduling/Distributable_Thread.h"
#include "tao/RTCORBA/Priority_Mapping_Manager.h"
#include "tao/RTCORBA/RT_Current.h"
#include "tao/ORB_Core.h"
#include "tao/TSS_Resources.h"
#include "ace/AC... | 25,394 | 8,512 |
#pragma once
#include <string>
#include <list>
#include <vector>
#include <map>
#include <iterator>
using namespace std;
#include <initguid.h>
#include "CPP/7zip/Archive/IArchive.h"
| 184 | 71 |
/**
* @file Test.cc
* @brief Generated class Test source file.
*
* This class is a part of SmartObjects solution. It provides
* factory functionallity which allows client to use SmartSchemas
* in accordance with definitions from Test.xml file
*/
// Copyright (c) 2013, Ford Motor Company
// All rights reserved.
/... | 20,875 | 7,182 |
#pragma once
#include <redx/core/platform.hpp>
#include <nlohmann/json.hpp>
#include <redx/core/stringpool.hpp>
#include <redx/core/gstring.hpp>
namespace redx {
inline constexpr uint32_t gstring_name_category_tag = 'GNAM';
using gname = gstring<gstring_name_category_tag>;
namespace literals {
us... | 1,539 | 557 |
#pragma once
#import <MetalKit/MetalKit.h>
#include "drape/graphics_context.hpp"
#include "drape/metal/metal_gpu_program.hpp"
#include "drape/pointers.hpp"
#include "drape/texture_types.hpp"
#include <cstdint>
#include <map>
namespace dp
{
namespace metal
{
class MetalStates
{
public:
struct DepthStencilKey
{
... | 2,591 | 869 |
/*++
Copyright (c) 2001 Microsoft Corporation
Module Name :
options_handler.cxx
Abstract:
Handle OPTIONS requests
Author:
Anil Ruia (AnilR) 4-Apr-2001
Environment:
Win32 - User Mode
Project:
ULW3.DLL
--*/
#include "precomp.hxx"
... | 2,998 | 1,044 |
#include <iostream>
#include "DataBus.h"
#include "ControlLines.h"
void TestDataBusWrite()
{
std::cout << "Testing the address bus\n";
ControlLines the_control_lines(HIGH, HIGH, HIGH);
DataBus the_data_bus(true);
unsigned short data = 1;
for (unsigned char i = 0; i < 8;i++) {
the_data_bus.Set(data);
std... | 467 | 205 |
// The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.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 r... | 5,822 | 2,247 |
#include <iostream>
#include "./EntityManager.h"
#include "./Collision.h"
#include "./components/ColliderComponent.h"
void EntityManager::ClearData() {
for (auto& entity: entities) {
entity->Destroy();
}
}
bool EntityManager::HasNoEntities() {
return entities.size() == 0;
}
void EntityManager::Up... | 2,295 | 673 |
//이건
#include <llvm/Transforms/Utils/BasicBlockUtils.h>
#include <llvm/Transforms/Utils/Local.h>
#include <llvm/ADT/Statistic.h>
#include <llvm/IR/InstIterator.h>
#include <llvm/IR/IntrinsicInst.h>
#include <map>
#include <set>
#include "util.h"
#include "MPAvailable.h"
#define DEBUG_TYPE "deltatags-prop"
using na... | 35,041 | 13,197 |
#include <stdio.h>
#include <string.h>
#include <map>
#include <algorithm>
#include "comm_graph.h"
#include "lock_functions.h"
#include "fnv.h"
#include "pin.H"
#define HASH_MASK 0xffffff
#define HASH_SIZE 0x1000000
/*#define READ 1
#define WRITE 2*/
#define FREE "free"
#define MALLOC "malloc"
#define REQUEST 1
... | 35,374 | 13,746 |
/*
* JSONConfiguration.cpp
*
* Created on: Jul 10, 2014
* Author: ahueck
*/
#include <core/configuration/JSONConfiguration.h>
#include <core/logging/Logger.h>
#include <fstream>
namespace opov {
JSONConfiguration::JSONConfiguration() {
// TODO Auto-generated constructor stub
}
bool JSONConfiguration::... | 1,669 | 544 |
#pragma once
#include <phantasm-hardware-interface/commands.hh>
#include <phantasm-renderer/argument.hh>
#include <phantasm-renderer/common/api.hh>
#include <phantasm-renderer/fwd.hh>
#include <phantasm-renderer/resource_types.hh>
namespace pr::raii
{
class Frame;
class PR_API ComputePass
{
public:
[[nodiscard]... | 4,281 | 1,489 |
#include <autograph/Core/Support/Debug.h>
#include <autograph/Core/Support/string_view.h>
#include <autograph/Core/Types.h>
#include <autograph/Engine/ResourceManager.h>
#include <experimental/filesystem>
namespace ag {
namespace fs = std::experimental::filesystem;
///////////////////////////////////////////////////... | 3,337 | 1,058 |
#include "pch.h"
#include "Shader.h"
#include <fstream>
#include <sstream>
const Shader* Shader::m_currentlyBound = nullptr;
Shader::Shader(const char* vertexShaderPath, const char* fragmentShaderPath)
: m_id(0)
{
PS_LOG("Shader object constructed");
assignData(vertexShaderPath, fragmentShaderPath);
... | 5,344 | 1,905 |
// Loader.hpp
// Class that loads a .obj file into vectors of floats for OpenGL
#ifndef LOADER_HPP
#define LOADER_HPP
#include <vector>
#include "IndexedVertexArray.hpp"
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
using std::vector;
class Loader {
private:
public:
static IndexedVertex... | 384 | 142 |
class Solution {
public:
string countAndSay(int n) {
int curr = 1;
string curr_str = "1";
while (curr < n) {
curr++;
string newString;
char curr_char = ' ';
int count = 0;
for (int i = 0; i < curr_str.size(); i++) {
... | 870 | 250 |
#include "acmacs-base/argv.hh"
#include "acmacs-base/read-file.hh"
#include "acmacs-base/range-v3.hh"
#include "acmacs-whocc/xlsx.hh"
#include "acmacs-whocc/log.hh"
// ----------------------------------------------------------------------
using namespace acmacs::argv;
struct Options : public argv
{
Options(int a_... | 2,041 | 678 |
/////////////////////////////////////////////////////////////////////////////
// Copyright (C) 1993-1996 Microsoft Corporation. All Rights Reserved.
//
// MODULE: PickGrp.cpp
//
// PURPOSE: Dialog to allow the user to select groups to post to in the
// send note window.
//
#include "pc... | 19,719 | 7,318 |
//
// Handshake.cpp
// HackerRank
//
// Created by Fabrizio Duroni on 02/09/16.
//
// https://www.hackerrank.com/challenges/handshake
#include <cmath>
#include <iostream>
using namespace std;
/*
In the previous version I used the
standard Binomial coefficient formula.
But there's a more efficient multiplicati... | 938 | 322 |
/*
* Copyright (c) 2021, Krisna Pranav
*
* SPDX-License-Identifier: BSD-2-Clause
*/
// includes
#include <base/MACAddress.h>
#include <kernel/bus/PCI/IDs.h>
#include <kernel/net/E1000ENetworkAdapter.h>
#include <kernel/Sections.h>
namespace Kernel {
#define REG_EEPROM 0x0014
static bool is_valid_device_id(u16 de... | 5,901 | 3,092 |
// Copyright (C) 2004-2006 The Trustees of Indiana University.
// Use, modification and distribution is subject to 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)
// Authors: Douglas Gregor
// Andrew Lumsdaine
#ifndef BO... | 1,812 | 555 |
/*
* Copyright (c) 2014, Autonomous Systems Lab
* 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 conditions... | 9,325 | 2,948 |
/*
* (c) Copyright 2020–2021 Xilinx, 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 2,128 | 917 |
#include <QtTest/QTest>
#include <QtTest/QSignalSpy>
#include "HttpHandlerTest.h"
#include "HttpHandler.h"
#include "HttpHandlerSimpleRouter.h"
#include "HttpConnection.h"
#include <QtCore/QDir>
#include <QtCore/QBuffer>
#include <QtCore/QCoreApplication>
using namespace Pillow;
Pillow::HttpConnection * HttpHandlerTes... | 22,776 | 7,861 |
/****************************************************************************
** Meta object code from reading C++ file 'delete.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
**
** WARNING! All changes made in this file will be lost!
*************************************************************... | 3,911 | 1,538 |
//
// Copyright Antony Polukhin, 2012-2014.
//
// 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)
#include <boost/test/minimal.hpp>
#include <boost/type_index.hpp>
#include <boost/functional/hash.hpp>
... | 13,758 | 5,743 |
#include "libtg.hpp"
#define clip(X) min(X,10000)
using namespace std;
static vector<Vertex>* formula;
// position of u in a reverse toposort
static vector<int> posdp;
static int pos(int u) {
static int next = 1;
int& ans = posdp[u];
if (ans) return ans;
for (int v : (*formula)[u].down) pos(v);
return ans... | 2,190 | 959 |
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* 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... | 2,831 | 929 |
#include "HardClip.hpp"
#include <cmath>
namespace brettstory {
namespace audio {
namespace clipping {
double HardClip::ClipSample(double sample, double threshold) {
return (0.5 * (abs(sample + threshold) - abs(sample - threshold))) / threshold;
}
}
}
} | 270 | 99 |
#include <iostream>
#include <algorithm>
#include <iterator>
#include <deque>
#include <tuple>
#include <string>
#include <fstream>
using namespace std;
using dict_entry = pair<string, string>;
namespace std {
ostream& operator<<(ostream &os, const dict_entry p)
{
return os << p.first << " " << p.second;
}
istr... | 863 | 314 |
void atm::getting_pin() {
incoming.wait()
.handle<digit_pressed>([&](digit_pressed const& msg) {
unsigned const pin_length = 4;
pin += msg.digit;
if (pin.length() == pin_length) {
bank.send(verify_pin(account, pin, incoming));
state = &atm::verifying_pin;
}
... | 596 | 193 |
// Copyright(c) 2019, NVIDIA CORPORATION. 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 b... | 3,032 | 980 |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 7,126 | 1,891 |
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include "box2d_wrapper.hpp"
namespace py = pybind11;
b2Vec2 operator+ (const b2Vec2 & lhs, const py::tuple & rhs)
{
return b2Vec2(
lhs.x + rhs[0].cast<float>() ,
lhs.y + rhs[1].cast<float>()
);
}
b2Vec2 operator+ (const py::tup... | 9,288 | 3,836 |
// Copyright (C) 2011-2020 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_MPL_TYPETRAITS_CLOCK_HPP
#define INCLUDED_SROOK_MPL_TYPETRAITS_CLOCK_HPP
#ifdef _MSC_VER
# if _MSC_VER > 1000
# pragma once
# endif
#endif
#include <srook/type_traits/clock/is_clock.hpp>
#include <srook/type_traits/cl... | 354 | 176 |
/*
Slackback!
*/
#include "RJModules.hpp"
#include "common.hpp"
#include "Chorus.h"
#include <iostream>
#include <cmath>
#include <sstream>
#include <iomanip>
#include <unistd.h>
#include <mutex>
using namespace std;
#define HISTORY_SIZE (1<<21)
struct RJChorusRoundSmallBlackKnob : RoundSmallBlackKnob
{
RJChoru... | 3,135 | 1,374 |
/*
Copyright (c) 2017-2019,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See the top-level NOTICE for
additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "../core/core-exceptions.hpp"
#include "../helics.hpp"
#incl... | 28,193 | 9,664 |
#include "yacx/main.hpp"
#include <algorithm>
#include <array>
#include <cstdio>
#include <ctime>
#include <functional>
#include <iostream>
#include <iterator>
#include <random>
#include <string>
using yacx::Source, yacx::KernelArg, yacx::Kernel, yacx::Options, yacx::Device,
yacx::load, yacx::KernelTime, yacx::De... | 8,489 | 3,139 |
#include "ofApp.h"
//https://commons.wikimedia.org/wiki/File:Beer_in_glass_close_up.jpg
// This is the most basic pdsp example
// we set up everything and check that everything is working
// before running this also check that the basic oF audio output example is working
// ofxx_folder/examples/sound/audioOutputExample... | 11,268 | 3,797 |
// Copyright (C) NeoAxis Group Ltd. 8 Copthall, Roseau Valley, 00152 Commonwealth of Dominica.
#include "OgreStableHeaders.h"
#include "OgreNativeWrapperGeneral.h"
#pragma hdrstop
#include "MiniDump.h"
#ifdef MINIDUMP
#include "MiniDump.h"
#include <windows.h>
#include <dbghelp.h>
#include <tchar.h>
typedef BOOL (... | 4,118 | 1,816 |
#include <algorithm>
#include <QList>
#include <QString>
#include <QStringList>
#include <QVector>
#include <SpiceUsr.h>
#include "Cube.h"
#include "Brick.h"
#include "Constants.h"
#include "Cube.h"
#include "IString.h"
#include "LeastSquares.h"
#include "NaifStatus.h"
#include "nocam2map.h"
#include "PolynomialBiva... | 30,479 | 10,241 |
class Solution {
public:
vector<vector<int>> kClosest(vector<vector<int>>& points, int K) {
priority_queue<pair<int, int>> pq;
for (int i = 0; i < points.size(); ++i) {
pq.emplace(points[i][0]* points[i][0] + points[i][1] * points[i][1], i);
if (pq.size() > K) {
... | 566 | 196 |
/* Copyright 2018 Dimitrij Mijoski, Sander van Geloven
* Copyright 2016-2017 Dimitrij Mijoski
*
* This file is part of Nuspell.
*
* Nuspell is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either ... | 7,382 | 2,594 |
// +-------------------------------------------------------------------------
// | Copyright (C) 2017 Yunify, Inc.
// +-------------------------------------------------------------------------
// | Licensed under the Apache License, Version 2.0 (the "License");
// | You may not use this work except in compliance with t... | 7,752 | 2,310 |
//===-- Physics/PMXMotionState.cpp - Defines a Motion State for PMX ----*- C++ -*-===//
//
// The XBeat Project
//
// This file is distributed under the University of Illinois Open Source License.
// See LICENSE.TXT for details.
//
//===--------------------------------------------------------------... | 1,144 | 320 |
#include "testlib.h"
using namespace std;
int main(int argc, char * argv[])
{
setName("compare sequences of tokens");
registerTestlibCmd(argc, argv);
int n = 0;
string j, p;
while (!ans.seekEof() && !ouf.seekEof())
{
n++;
ans.readWordTo(j);
ouf.readWordTo(p);
... | 876 | 322 |
// Copyright (c) 2019 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/third_party/quiche/src/quic/quic_transport/quic_transport_server_session.h"
#include <memory>
#include "url/gurl.h"
#include "net/thir... | 5,753 | 1,783 |
#include"Animal.h"
Animal::Animal(int health){
this->health=health;
}
void Animal::eat(Food& f,int quantity){
health+=f.eat(quantity);
};
int Animal::getHealth()const{
return health;
};
| 191 | 80 |
#ifndef PYTHONIC_NUMPY_ARGMINMAX_HPP
#define PYTHONIC_NUMPY_ARGMINMAX_HPP
#include "pythonic/utils/functor.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/numpy/asarray.hpp"
#include "pythonic/builtins/ValueError.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
namespace details
{
template <class P, si... | 9,491 | 3,521 |
class Solution {
public:
int maxProfit(vector<int>& prices) {
int cost = INT_MAX, sell=0;
for(int i:prices)
{
cost = min(cost,i);
sell = max(sell,i-cost) ;
}
return sell ;
}
}; | 266 | 88 |
/**
* @file timer.h
* @brief 中断抽象头文件
* @author Zone.N (Zone.Niuzh@hotmail.com)
* @version 1.0
* @date 2021-09-18
* @copyright MIT LICENSE
* https://github.com/Simple-XX/SimpleKernel
* @par change log:
* <table>
* <tr><th>Date<th>Author<th>Description
* <tr><td>2021-09-18<td>digmouse233<td>迁移到 doxygen
* </t... | 1,059 | 537 |
#include <iostream>
#include <vector>
#include <string>
#include <math.h>
using namespace std;
int main() {
/*int N, M, D;
cin >> N >> M >> D;
cout << N << " " << M << " " << D << endl;*/
cout << "Type your message:" << endl;
cin.ignore();
string x;
getline(cin, x);
int length = x.length();
cout << le... | 502 | 217 |
// 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 "components/exo/ui_lock_controller.h"
#include "ash/constants/ash_features.h"
#include "ash/public/cpp/app_types.h"
#include "ash/wm/window_stat... | 6,003 | 1,998 |
#include "sdk/object/entity.hpp"
#include "sdk/object/weapon.hpp"
#include "csgo/engine.hpp"
C_BaseEntity* C_BaseEntity::GetBaseEntity( const int index )
{
const auto client_entity = csgo::m_client_entity_list->GetClientEntity( index );
return (client_entity ? client_entity->GetBaseEntity() : nullptr);
}
C_BaseEnt... | 3,235 | 1,315 |
#pragma once
#include "../../JObject.hpp"
class JObject;
namespace android::media
{
class MediaCodecInfo_CodecProfileLevel : public JObject
{
public:
// Fields
static jint AACObjectELD();
static jint AACObjectERLC();
static jint AACObjectERScalable();
static jint AACObjectHE();
static jint AACObjectHE... | 6,296 | 2,523 |
/**
* MXS-1947: Composite roles are not supported
*
* https://jira.mariadb.org/browse/MXS-1947
*/
#include <maxtest/testconnections.hh>
int main(int argc, char** argv)
{
TestConnections test(argc, argv);
test.repl->connect();
auto prepare =
{
"DROP USER test@'%'",
"CREATE USER te... | 1,346 | 502 |
#include "Shared.h"
#include "DictionaryReader.h"
#include <string>
#include <fstream>
namespace
{
void Trim( std::string &str )
{
size_t charPos = str.find_first_not_of( " \n" );
if ( charPos != std::string::npos ) {
str.erase( 0, charPos );
}
charPos = str.find_last_not_of( " \n" );
if ( c... | 1,221 | 552 |
#include "main.h"
int main(){
Pessoa Joao, Cleide, Claudo;
Joao.setId(1);
Joao.setIdade(10);
Joao.setSexo(true);
Joao.setUsaOculos(false);
Joao.copy(Joao);
std::cout << Cleide.getId() << std::endl;
std::cout << Joao.getIdade() << std::endl;
Produto cadeira, ventilador, amplif... | 412 | 180 |
#include <iostream>
#include <stdint.h>
using namespace std;
class A
{
int32_t a;
};
class B: public A
{
int32_t a;
};
int main()
{
cout << "sizeof(A): " << sizeof(A) << endl; // Печатает 4.
// Печатает 8, так как содержит в том числе родительские члены.
cout << "sizeof(B): " << sizeof(B) << endl;... | 325 | 146 |
#pragma once
#include "sub0pub/sub0pub.hpp"
#if Sub0Pub_CrossModule_Publisher_EXPORTS
#define DLLEXPORT __declspec(dllexport)
#define DLLEXTERN
#else
#define DLLEXPORT __declspec(dllimport)
#define DLLEXTERN extern
#endif
// @note Exporting the broker is critical for the instance to become shared across DLL modu... | 506 | 188 |
/*
bullet.cpp
Aron Lebani
29 March 2016
*/
#include "../include/character.h"
#include "../include/bullet.h"
#include "../include/tools.h"
bullet::bullet()
{
width = 13;
height = 2;
}
void bullet::draw()
{
tools::printw(getY() , getX(), " x ");
tools::printw(getY()+1, getX(), " x ");
}
void... | 460 | 219 |
#include<iostream>
#include<string>
#include<algorithm>
#include<list>
#include<stdexcept>
#include<boost/program_options.hpp>
#include <Interp.hpp>
#include <AnyInterpolator.hpp>
#include <Utils/ReadFunction.hpp>
using namespace std;
namespace po = boost::program_options;
void print_version()
{
cout<<"interp-cl... | 3,920 | 1,299 |
#pragma once
#include "Command.hpp"
#include "Variable.hpp"
class Cheats {
public:
void Init();
void Shutdown();
};
extern Variable sar_autorecord;
extern Variable sar_autojump;
extern Variable sar_jumpboost;
extern Variable sar_aircontrol;
extern Variable sar_duckjump;
extern Variable sar_disable_challenge_stats_h... | 843 | 276 |
// Copyright (c) 2018-2021 Pocketnet developers
// Distributed under the Apache 2.0 software license, see the accompanying
// https://www.apache.org/licenses/LICENSE-2.0
#include <primitives/transaction.h>
#include "pocketdb/models/dto/User.h"
namespace PocketTx
{
User::User() : Transaction()
{
SetTyp... | 6,393 | 2,169 |
// Copyright 2021 Xeni Robotics
//
// 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 i... | 3,405 | 1,167 |
#include "Acceptor.hh"
#include "TCPConnection.hh"
#include "EventLoop.hh"
#include <iostream>
#include <string>
using namespace std;
using namespace wd;
// 普通函数版的回调函数
void onConnection(const TCPConnectionPtr &conn)
{
cout << conn->toString() << " has connected" << endl;
conn->send("welcome to server");
}
vo... | 917 | 324 |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... | 25,891 | 8,487 |
/*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: javax.crypto.spec.DESKeySpec
================================================================================*/
#ifndef J2CPP_INCLUDE_IMP... | 4,922 | 2,232 |
#include "Global.h"
#define MAKERGB15(R, G, B) ((((R)>>3)<<10)|(((G)>>3)<<5)|((B)>>3))
#define ROUND(c) rtbl[(c) + 128 + 256]
#define RGB15CL(N) IMAGE[N] = MAKERGB15(ROUND(GETY + R), ROUND(GETY + G), ROUND(GETY + B));
#define RGB24CL(N) IMAGE[N+ 2] = ROUND(GETY + R); IMAGE[N+ 1] = ROUND(GETY + G); IMAGE[N+ 0] ... | 7,572 | 3,486 |
#pragma once
#include "Quaternion.hpp"
#include "vbConfiguration.hpp"
#include "vbGeometry.hpp"
#include "vbCamera.hpp"
#include "vbTrackCameraControl.hpp"
#include "vbFPSCameraControl.hpp"
#include "vbMoveOrbitZoomCameraControl.hpp"
#include "vbMovingForwardCameraControl.hpp"
#include "vbHorizontalPanCameraControl.h... | 24,117 | 8,472 |
#ifndef CONTRACTOR_TERMS_GENERALTERM_HPP_
#define CONTRACTOR_TERMS_GENERALTERM_HPP_
#include "terms/Tensor.hpp"
#include "terms/Term.hpp"
#include <memory>
#include <vector>
namespace Contractor::Terms {
class BinaryTerm;
/**
* This special kind of Term simply describes the contained Terms as a list of Tensors. N... | 1,916 | 628 |
/*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. You may obtain a copy of the License at
*
* http://www.apache.org/li... | 5,051 | 1,729 |
/*
* LibCassandra
* Copyright (C) 2010 Padraig O'Sullivan
* All rights reserved.
*
* Use and distribution licensed under the BSD license. See
* the COPYING file in the parent directory for full text.
*/
#include <string>
#include <sstream>
#include "libcassandra/cassandra.h"
#include "libcassandra/cassandra_ho... | 1,354 | 508 |
/******************************************************************************
* Copyright (c) 2018, Sylvain Corlay and Johan Mabille, and Wolf Vollprecht *
* *
* Distributed under the terms of the BSD 3-Clause License. *
... | 5,279 | 1,652 |
#include "stdafx.h"
// General
#include "MPQArchiveManager.h"
// Additional
#include "BaseManager.h"
#if (VERSION == VERSION_Vanila)
const char* archives = "D:/_games/World of Warcraft 1.12.1/Data/";
#elif (VERSION == VERSION_WotLK)
const char* archives = "D:/_games/World of Warcraft 3.3.5a/Data/";
#endif
//
CMPQ... | 3,579 | 1,464 |
#include <iostream>
using namespace std;
int main()
{
int test;
cin >> test;
int PP[] = {2, 3, 5, 7, 11, 101, 131, 151, 181, 191, 313, 353, 373, 383, 727, 757, 787, 797, 919, 929, 10301, 10501, 10601, 11311, 11411, 12421, 12721, 12821, 13331, 13831, 13931, 14341, 14741, 15451, 15551, 16061, 16361,... | 1,666 | 1,507 |
// Copyright 2014 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 "core/frame/VisualViewport.h"
#include "core/dom/Document.h"
#include "core/frame/BrowserControls.h"
#include "core/frame/FrameHost.h"
#include ... | 100,492 | 31,183 |
// 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.
#if defined(OS_WIN)
#include <windows.h>
#endif
#include "content/common/gpu/gpu_channel.h"
#include <queue>
#include <vector>
#include "base/bind.... | 32,477 | 10,589 |
// Copyright 2017 Google 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 at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 6,289 | 2,016 |
#include "AliESDEvent.h"
#include "AliESDtrack.h"
#include "AliHLTZMQhelpers.h"
#include "AliOptionParser.h"
#include "TFile.h"
#include "TSystem.h"
#include "TTree.h"
#include "signal.h"
#include "zmq.h"
#include <iostream>
#include <memory>
#include <pthread.h>
#include <string>
#include <sys/time.h>
#include <time.h... | 20,442 | 8,016 |
// Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Foundation Library source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf
// and may not be copied ... | 10,485 | 4,532 |
/// @file
/// @brief Contains Switch::System::IFormatProvider interface.
#pragma once
#include "../Interface.hpp"
#include "Object.hpp"
#include "Type.hpp"
/// @cond
namespace Switch {
namespace System {
class Type;
}
}
/// @endcond
/// @brief The Switch namespace contains all fundamental classes to access H... | 1,332 | 323 |
#include "ImageShapeSegmentation.hpp"
#include "ImageColorSegmentation.hpp"
#include "Shape.hpp"
// #include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <glob.h>
#include <unistd.h>
#include <limits.h>
std::... | 2,923 | 1,182 |
#include "stage/action/FsAction.h"
#include "stage/FsScene.h"
#include "mgr/FsObjectMgr.h"
NS_FS_BEGIN
const char* Action::className()
{
return FS_ACTION_CLASS_NAME;
}
NS_FS_END
| 187 | 88 |
#include "GripPipeline.h"
namespace grip {
GripPipeline::GripPipeline() {
}
/**
* Runs an iteration of the pipeline and updates outputs.
*/
void GripPipeline::Process(cv::Mat& source0){
//Step Resize_Image0:
//input
cv::Mat resizeImageInput = source0;
double resizeImageWidth = 640.0; // default Double
double re... | 6,671 | 2,357 |
#define COMPONENT police
#define COMPONENT_BEAUTIFIED Police
#include "\x\keko\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_POLICE
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_POLICE
#define DEBUG_S... | 407 | 171 |
// Copyright (c) 2019-2020 The STE||AR GROUP
//
// SPDX-License-Identifier: BSL-1.0
// 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(HPX_MPI_FORCE_LINKING_HPP)
#define HPX_MPI_FORCE_LINKING_HPP
#in... | 594 | 255 |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <sstream>
#include <list>
#include <queue>
#include <stack>
//#include <unordered_map>
//#inclu... | 1,792 | 840 |
#pragma once
#include <libng_core/types/noncopyable.hpp>
namespace libng {
class JSONLexer : public NonCopyable {
public:
void nextChar();
};
} // namespace libng | 168 | 59 |
// Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef OPBOX_SINGLETON_HH
#define OPBOX_SINGLETON_HH
#include "faodel-common/Common.hh"
#include "faodel-common... | 1,570 | 524 |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2013-2018 Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne Univers... | 2,143 | 655 |
/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... | 6,475 | 1,661 |
#ifdef _WIN32
#include <assert.h>
#include <malloc.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include "winservice.h"
namespace reindexer_server {
#define SERVER_STOP_WAIT 5000
#define SERVER_START_WAIT 5000
WinService *g_Service;
static std::string GetLastErrorAsString() {
// Get the error mes... | 5,916 | 2,372 |
/// \copyright Simmypeet - Copyright (C)
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE', which is part of this source code package.
#ifndef AXIS_SYSTEM_STATICARRAY_HPP
#define AXIS_SYSTEM_STATICARRAY_HPP
#pragma once
#include "Config.hpp"
#include "Trait.hpp"... | 1,808 | 564 |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the ... | 5,605 | 2,112 |
/**TODO: Add copyright*/
#define BOOST_TEST_MODULE LossFunctionTensor test suite
#include <boost/test/included/unit_test.hpp>
#include <SmartPeak/ml/LossFunctionTensor.h>
#include <iostream>
using namespace SmartPeak;
using namespace std;
BOOST_AUTO_TEST_SUITE(lossFunctionTensor)
/**
ManhattanDistanceLossOp Te... | 57,619 | 27,003 |
//==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 1,964 | 876 |
/*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
licecert.cpp
Abstract:
This module contains the APIs for parsing and verifying X509 certificates
Author:
Frederick Chong (fredch) 6/1/1998
Environment:
Win32, WinCE, Win16
Notes:
--*/
#include <windows.h>
... | 7,001 | 2,221 |
/****************************************************************************
*
* This is a part of CTPPS offline software.
* Authors:
* Jan Kašpar (jan.kaspar@gmail.com)
* Nicola Minafra
* Laurent Forthomme
*
****************************************************************************/
#include "FWCore/Framewor... | 45,458 | 17,323 |