text string | size int64 | token_count int64 |
|---|---|---|
#include <cstdlib>
#include <cstdio>
#include <iostream>
#include <fstream>
#include <unistd.h>
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp>
#define PANEL_ENTRY_NUM 5
#define SERVER_NUM 12
#define TESTCASE_NUM 10
#define ONE_SECOND 1000000
#defi... | 13,734 | 4,550 |
/*/////////////////////////////////////////////////////////////////////////////
module: implementation of geom classes (CPP-A.04S_GLDraw2D)
purpose: implements all geometrical classes used in the draw application
written: U.Kuenzler
version: 1.01
history: 1.00 - initial version of OpenGL drawing application
/////////... | 13,847 | 3,580 |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation ... | 7,122 | 2,495 |
#include <mutex>
#include <Common/Brokerage/brokerage.h>
#include <Common/Order/orderstatus.h>
#include <Common/Order/ordermanager.h>
#include <Common/Logger/logger.h>
#include <Common/Security/portfoliomanager.h>
using namespace std;
namespace EliteQuant
{
extern std::atomic<bool> gShutdown;
mutex brokerage::mtx_C... | 9,017 | 3,900 |
#include <iostream>
#include <fstream>
using namespace std;
int main() {
string s;
ifstream fin("myFile.txt");
if (!fin.is_open()) {
cout << "ファイルをオープンできません!";
return 1;
}
while (getline(fin, s)) {
cout << s << endl;
}
fin.close();
return 0;
} | 301 | 119 |
#include <algorithm>
#include <array>
#include <iostream>
#include <string>
#include <utility>
#include <variant>
#include <vector>
enum class token_type {
paren_open,
paren_close,
period,
literal_number,
symbol,
};
std::ostream &operator<<(std::ostream &os, const token_type &type) noexcept {
switch (type... | 4,674 | 1,656 |
//
// Created by Troldal on 05/08/16.
//
#include "XLDocument.h"
#include <sstream>
#include <pugixml.hpp>
using namespace std;
using namespace OpenXLSX;
/**
* @details The constructor creates a new object with the parent XLDocument and the file path as input, with
* an optional input being a std::string with the ... | 3,473 | 1,058 |
#ifndef EASYSDL_OBJECTS_H
#define EASYSDL_OBJECTS_H
#include "EasySDL.hpp"
namespace objects
{
struct Area
{
int h;
int w;
int x=0, y=0;
map<string, double> values;
SDL_Surface * area=NULL;
void areaPlace(SDL_Surface *surf, bool autoDestroySurface, int x, int y, int x0=x_left, int y0=y_top, double an... | 1,950 | 741 |
/*
Assignment: 4
Description: Paycheck Calculator
Author: Justin Harper
WSU ID: 10696738 Completion Time: 4hrs
In completing this program, I received help from the following people:
myself
version 1.0 (major relese) I am happy with this version!
*/
#include "NegateBlue.h"
using namespace std;
//image processor t... | 579 | 207 |
#include <iostream>
class base {
public:
void print(int x) { std::cout << "int: " << x << '\n'; }
};
class derived : public base {
public:
void print(double x) { std::cout << "double: " << x << '\n'; }
using base::print;
};
int main() {
derived d{};
d.print(3);
d.print(3.0... | 340 | 126 |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or ... | 92,211 | 27,042 |
//////////////////////////////////////////////////////////////////////////////////////////////
/// \file NoiseModel.hpp
///
/// \author Sean Anderson, ASRL
//////////////////////////////////////////////////////////////////////////////////////////////
#ifndef STEAM_NOISE_MODEL_HPP
#define STEAM_NOISE_MODEL_HPP
#includ... | 9,786 | 2,379 |
#ifndef _EAGLEEYE_EDGE_H_
#define _EAGLEEYE_EDGE_H_
#include "eagleeye/common/EagleeyeMacro.h"
#include <atomic>
#include <memory>
namespace eagleeye{
namespace dataflow {
class Node;
class Edge {
public:
Edge(Node & prev,int prev_slot, Node & next, int next_slot) noexcept
: prev_(prev), next_(next), prev_slot_... | 901 | 362 |
#include <gnc_functions.hpp>
//include API
int main(int argc, char** argv)
{
//initialize ros
//argc and char** argv allows us to enter command line arguments to ROS
ros::init(argc, argv, "gnc_node");
ros::NodeHandle gnc_node("~");
//initialize control publisher/subscribers
// publishers send data out from ... | 3,549 | 1,234 |
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
/*
g++ -w -o out Source.cpp && ./out
g++ -o out Source.cpp
*/
int main()
{
srand(time(NULL));
int n1, m1, n2, m2, k, l = 2;
system("chcp 1251");
cout << "��� ������������ ���������" << endl <<
"�������� ������������ ���... | 11,728 | 5,915 |
// $Id: SOCK_Dgram_Mcast.cpp 92580 2010-11-15 09:48:02Z johnnyw $
#include "ace/SOCK_Dgram_Mcast.h"
#include "ace/OS_Memory.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_errno.h"
#include "ace/os_include/net/os_if.h"
#include "ace/os_include/arpa/os_inet.h"
#if defined (__linux__) && defined (ACE_HAS_IPV6)
#i... | 29,393 | 9,936 |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2017 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 2,225 | 736 |
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will... | 28,047 | 8,676 |
/*
Copyright 2020 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/config.hpp>
#if !defined(BOOST_NO_CXX11_CONSTEXPR) && \
(!defined(BOOST_MSVC) || (BOOST_MSVC >= 1922))
#include <boost/operators.hpp>
#i... | 1,705 | 701 |
/**
* @file tuple_sort_type.hpp
*
* @brief tuple_sort_type の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_TUPLE_TUPLE_SORT_TYPE_HPP
#define BKSGE_FND_TUPLE_TUPLE_SORT_TYPE_HPP
#include <bksge/fnd/tuple/fwd/tuple_sort_type_fwd.hpp>
#include <bksge/fnd/type_traits/bool_constant.hpp>
namespace bksge... | 839 | 463 |
/**
* Copyright <2017> <Tomoyuki Nakabayashi>
* This software is released under the MIT License, see LICENSE.
*/
#include <gtest/gtest.h>
#include <QCoreApplication>
#include "global_args.h"
int g_argc;
char **g_argv;
int main(int argc, char *argv[])
{
g_argc = argc;
g_argv = argv;
::testing::InitGoogleTest... | 363 | 150 |
//===- LEB128.cpp ---------------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------------------... | 5,757 | 2,521 |
#ifdef PEGASUS_OS_HPUX
#ifndef __UNIX_CERTIFICATEAUTHORITY_PRIVATE_H
#define __UNIX_CERTIFICATEAUTHORITY_PRIVATE_H
#endif
#endif
| 135 | 73 |
#include "LUTFunction.hpp"
#include <stdint.h>
#include <cmath>
namespace motor_driver {
namespace math {
template <typename T> float LUTFunction<T>::lookup(float arg) const {
float norm_arg = (arg - x_first_) / (x_last_ - x_first_);
float norm_arg_integral = std::floor(norm_arg);
float norm_arg_fraction = no... | 1,528 | 569 |
// 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 "third_party/blink/renderer/modules/manifest/manifest_parser.h"
#include <string>
#include "base/feature_list.h"
#include "base/strings/stringp... | 53,615 | 16,637 |
// Rar1Decoder.cpp
// According to unRAR license, this code may not be used to develop
// a program that creates RAR archives
#include "StdAfx.h"
#include "Rar1Decoder.h"
namespace NCompress {
namespace NRar1 {
static const unsigned kNumBits = 12;
static const Byte kShortLen1[16 * 3] =
{
0,0xa0,0... | 11,185 | 5,207 |
// Copyright (C) 2012-2020 Internet Systems Consortium, Inc. ("ISC")
//
// 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/.
#include <config.h>
#include <perfdhcp/comma... | 54,742 | 16,858 |
//---------------------------------------------------------------------------
#include "getoptdlg.h"
#include "getmain.h"
#include <QFileDialog>
#include <QShowEvent>
#include <QIntValidator>
#include <QCompleter>
#include <QFileSystemModel>
extern MainForm *mainForm;
//---------------------------------------------... | 2,841 | 804 |
#ifndef SDL2_GFX_EXT
#define SDL2_GFX_EXT
#include <SDL2/SDL.h>
int thickEllipseRGBA(SDL_Renderer * renderer, Sint16 xc, Sint16 yc, Sint16 xr, Sint16 yr, Uint8 r, Uint8 g, Uint8 b, Uint8 a, Uint8 thick);
int thickArcRGBA(SDL_Renderer * renderer, Sint16 xc, Sint16 yc, Sint16 rad, Sint16 start, Sint16 end, Uint8 r, Uin... | 2,358 | 952 |
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <sstream>
#include <algorithm>
using namespace std;
class Cliente {
std::string nome;
int id;
int pos;
public :
Cliente (std::string nome = "", int id = 0, int pos = 0) {
this->nome = nome;
this->id = id;... | 2,933 | 947 |
/// An interface logging.
/**
* This defines the interface for a logger. A logger handles general application
* logging as well as network logging.
*
* Copyright 2018 Vaniya Agrawal, Ross Arcemont, Kristofer Hoadley, Shawn Hulce, Michael McCulley
*
* @file logger_interface.hpp
* @authors Kristofer H... | 2,799 | 823 |
#ifndef INFRA_LIMITED_INPUT_STREAM_HPP
#define INFRA_LIMITED_INPUT_STREAM_HPP
#include "infra/stream/InputStream.hpp"
namespace infra
{
class LimitedStreamReader
: public StreamReader
{
public:
LimitedStreamReader(StreamReader& input, uint32_t length);
LimitedStreamReader(const Lim... | 1,267 | 358 |
// Copyright 2011 Victor Smirnov
//
// 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... | 5,145 | 1,868 |
// Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include "memduff.h"
namespace ouro {
bool memcmp4(const void* mem, long value, size_t bytes)
{
// Compares a run of memory against a constant value.
// this compares a full int value rather than a char value.
// First move mem up t... | 1,328 | 523 |
// 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 "base/message_loop/message_pump_win.h"
#include <algorithm>
#include <cstdint>
#include <type_traits>
#include "base/bind.h"
#include "base... | 32,806 | 10,144 |
#include "Player.h"
Player::Player()
{
}
Player::~Player()
{
}
bool Player::init() {
if (!Sprite::initWithFile("player.png")) return false;
_speed = 100;
_direction = Vec2(0, 1);
_isMoving = false;
return true;
}
void Player::respawn() {
this->setPosition(16, 16);
//SimpleAudioEngine::getInstance()->playE... | 343 | 143 |
/*
* Copyright (C) 2011-2019 Hendrik Leppkes
* http://www.1f0.de
*
* 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... | 50,126 | 20,888 |
#include "JSE.h"
#include "JSEUILabel.h"
using namespace v8;
namespace JSE { namespace UI {
void JSEUILabel::SetMethods(Isolate *&isolate, Handle<FunctionTemplate> &tpl)
{
tpl->SetClassName(String::NewFromUtf8(isolate, "Label"));
JSE_UI_SET_ACCESSOR(tpl, "left", Get_left, Set_left);
JSE_UI_SET_ACCE... | 4,637 | 1,586 |
/*
* Copyright 2009-2020 The VOTCA Development Team
* (http://www.votca.org)
*
* 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
*
* h... | 3,260 | 1,140 |
/*
// Definition for a Node.
class Node {
public:
int val;
Node* next;
Node* random;
Node(int _val) {
val = _val;
next = NULL;
random = NULL;
}
};
*/
class Solution {
public:
Node* copyRandomList(Node* head) {
if (!head)
return nullptr;
// 在每个节点后复制一个新节点
... | 929 | 343 |
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <cbb/power_of_2_constants.hpp>
using namespace cbb;
using namespace ieme::fraction_literals;
TEST_CASE("power_of_2 construction", "[power_of_2]")
{
SECTION("default") { STATIC_REQUIRE(power_of_2().get_exponent() == 0); }
SECTION("from exponent")
... | 5,956 | 2,797 |
/* FastCRC library code is placed under the MIT license
* Copyright (c) 2014,2015,2016 Frank Bosing
*
* 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
... | 4,504 | 2,169 |
#include "plug.h"
#include <QGraphicsSceneMouseEvent>
#include <QPainter>
#include <QStyleOptionGraphicsItem>
#include <QtMath> // for M_PI, qRadiansToDegrees
#include "drawedge.h"
#include "node.h"
#include "perimeter.h"
#include "plugedge.h"
#include "pluglabel.h"
#include "scene.h"
#include "utils.h"
static QGrap... | 13,341 | 4,438 |
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/beans/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <javax/swing/fwd-POI.hpp>
#include <java/awt/event/ActionListener.hpp>
struct javax::swing::Action
: pu... | 2,007 | 696 |
class Solution {
public:
bool containsDuplicate(vector<int>& nums) {
unordered_set<int> res;
for(int num:nums){
if(res.find(num) == res.end()){
res.insert(num);
}
else
return true;
}
return false;
... | 327 | 96 |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008 Andreas Gaida
Copyright (C) 2008 Ralph Schreyer
Copyright (C) 2008 Klaus Spanderen
Copyright (C) 2014 Johannes Göttker-Schnetmann
This file is part of QuantLib, a free-software/open-source library
for financial... | 3,895 | 1,285 |
//
// Created by Riley Quinn on 6/14/20.
//
#include "flags/errors.hpp"
std::string flags::errors::make_option_error_str(const option_error err, const std::string &option_name) {
switch (err) {
case undefined: {
return "Undefined option '" + option_name + "'.";
}
case missing_v... | 650 | 187 |
#include "Game/PursueBehavior.hpp"
#include "Engine/Math/MathUtils.hpp"
#include "Game/Actor.hpp"
#include "Game/Command.hpp"
#include "Game/RestCommand.hpp"
#include "Game/MoveCommand.hpp"
#include "Game/MoveNorthCommand.hpp"
#include "Game/MoveSouthCommand.hpp"
#include "Game/MoveEastCommand.hpp"
#include "Game/Mov... | 2,257 | 787 |
#include "pch.h"
#include <FancyZonesLib/FancyZonesData/LayoutDefaults.h>
#include "FancyZonesLib\FancyZonesDataTypes.h"
#include "FancyZonesLib\JsonHelpers.h"
#include "FancyZonesLib\VirtualDesktop.h"
#include "FancyZonesLib\ZoneSet.h"
#include <filesystem>
#include "Util.h"
#include <common/SettingsAPI/settings_hel... | 50,061 | 14,950 |
#include"ace/SOCK_Stream.h"
#include"ace/SOCK_Connector.h"
#include"ace/SOCK_Stream.h"
#include<iostream>
#include<cstring>
#include<cstdio>
#include"../../src/io/RtExternalSenderImageInfo.h"
using namespace std;
// noise proerties
bool noise = false;
unsigned short max_noise = 50;
int
ACE_TMAIN (int argc, ACE_TC... | 3,200 | 1,298 |
// 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 <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <memory>
#include "base/big_endian.h"
#include "base/containers/circular_deque.h"
... | 21,145 | 7,875 |
/*!
@file
Defines `boost::hana::lazy`.
@copyright Louis Dionne 2013-2017
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_LAZY_HPP
#define BOOST_HANA_LAZY_HPP
#include <boost/hana/fwd/lazy.hpp>... | 8,176 | 2,530 |
#include <cstdio>
#include "PID.h"
double PID::update(double cte)
{
if (!initialized)
{
prev_cte = cte;
initialized = true;
}
sum += cte;
// Limiting integral term summa
if (sum > 15) { sum = 15; }
if (sum < -15) { sum = -15; }
double res = - (Kp * cte + Ki * sum + Kd * (cte-prev_cte) );
pre... | 349 | 160 |
#pragma once
#include <QAbstractListModel>
namespace gm
{
namespace Slot
{
class InputBase;
class GM_CORE_EXPORT InputList : public QAbstractListModel
{
Q_OBJECT
public:
enum Roles
{
Slot = Qt::UserRole + 1,
... | 984 | 282 |
/*****************************************************************************/
/* SFileOpenFileEx.cpp Copyright (c) Ladislav Zezula 2003 */
/*---------------------------------------------------------------------------*/
/* Description : */
... | 14,365 | 4,300 |
#include <iostream>
#include <fstream>
#include "rrLogger.h"
#include "rrUtils.h"
#include "UnitTest++.h"
#include "XmlTestReporter.h"
#include "TestReporterStdOut.h"
using namespace std;
using namespace rr;
using namespace UnitTest;
int main(int argc, char* argv[])
{
string outFolder;
string repo... | 1,492 | 539 |
// Copyright John McFarlane 2015 - 2016.
// 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 <cnl/_impl/config.h>
#include <cnl/elastic_integer.h>
#include <cnl/rounding_integer.h>... | 1,239 | 474 |
// David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2021
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
// https://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// Version: 4.0.2019.08.13
#include "ConformalMappingWindow3.h"
#include <... | 9,281 | 3,341 |
/*
* 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 ... | 2,898 | 1,102 |
#include <iostream>
using namespace std;
void swap(int &a, int &b)
{
int temp;
temp = a;
a = b;
b = temp;
}
int main()
{
int x = 10, y = 20;
cout << "Value of actual parameters x and y before swap(x,y) :\nx = " << x << "\ty = " << y << endl;
cout << "Address of actual parameters x and y bef... | 2,319 | 611 |
#include "qtmudprecvvoice.h"
#include <QThread>
#include <QCoreApplication>
QTmUDPRecvVoice::QTmUDPRecvVoice(QObject *parent) : QObject(parent)
{
m_bStartRecvData = false;
connect(&m_connectTimer,SIGNAL(timeout()),this,SLOT(slot_timer()));
}
bool QTmUDPRecvVoice::init(qint32 nPort)
{
qDebug()<<"init udp s... | 2,309 | 893 |
#include<iostream>
#include<vector>
#include<list>
using namespace std;
int social()
{
int n,m,k;
cin>>n>>m>>k;
vector<vector<int> > vec(n,vector<int>(n, 0));
list<int> famous;
int x,y;
for(int i=0;i<m;i++)
{
cin>>x>>y;
x--; y--;
vec[x][y]=1;
vec[y][x]=1;
}
for(int i=0;i<n;i++)
{
int fol=0;
for(i... | 758 | 434 |
/*
* Copyright (c) 2011 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 conditio... | 8,208 | 2,619 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 16,903 | 6,478 |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 3,369 | 1,019 |
// 引用元 : https://atcoder.jp/contests/abc121/submissions/12412105
// 得点 : 300
// コード長 : 553
// 実行時間 : 77
#include <bits/stdc++.h>
using namespace std;
using lli = long long int;
using ll = long long ;
using ld=long double;
using d= double;
int main() {
int n,m;
cin>>n>>m;
vector<pair<ll,ll>> p(n)... | 668 | 340 |
//No ZBuffer
double a[]= {
-100,-100,100,
100,-100,100,
100,100,100,
-100,100,100,
};//前
double b[]= {
-100,-100,-100,
100,-100,-100,
100,100,-100,
-100,100,-100,
};//后
double c[]= {
-100,-100,-100,
100,-100,-100,
100,-100,100,
-100,-100,100,
};//下
double d[]= {
-100,100,-100,
100,100... | 1,290 | 827 |
// 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 "components/pdf/browser/pdf_web_contents_helper.h"
#include <utility>
#include "base/feature_list.h"
#include "base/memory/ptr_util.h"
#inc... | 11,113 | 3,361 |
# 1 "/tmp/tmpxft_00000a86_00000000-1_radixsort_kernel.cudafe1.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/tmp/tmpxft_00000a86_00000000-1_radixsort_kernel.cudafe1.cpp"
# 1 "/home/normal/checkout/gpuocelot/tests-ptx-2.1/cuda2.2/tests/particles/radixsort_kernel.cu"
# 46 "/usr/local/cuda/bin/../include/device_types.h"... | 616,154 | 341,616 |
//============================================================================
// Copyright 2019 Fairtide Pte. 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.apa... | 11,897 | 3,442 |
/*
* Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
* Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
* Copyright (C) 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
* ... | 5,547 | 1,873 |
#include "TextureManager.h"
#include <algorithm>
#include <string>
#include <sstream>
#include "GLRenderer.h"
#include "Utility.h"
#include "gl/glew.h"
extern "C"
{
#include "SOIL/SOIL.h"
#include "SOIL/image_DXT.h"
#include "SOIL/image_helper.h"
}
std::weak_ptr<TextureManager> TextureManager::singleton;
... | 18,633 | 6,096 |
/* Copyright 2017 The MathWorks, Inc. */
#include "MWDepthConcatenationLayer.hpp"
#include "MWDepthConcatenationLayerImpl.hpp"
#include <stdarg.h>
#include <cassert>
MWDepthConcatenationLayer::MWDepthConcatenationLayer()
{
}
MWDepthConcatenationLayer::~MWDepthConcatenationLayer()
{
}
void MWDepthConcatenationL... | 1,712 | 552 |
// License: BSD 2 Clause
// Copyright (C) 2011, Google Inc. All rights reserved.
// Copyright (C) 2015+, The LabSound Authors. All rights reserved.
#include "LabSound/core/DefaultAudioDestinationNode.h"
#include "LabSound/extended/AudioContextLock.h"
#include "LabSound/extended/Logging.h"
#include "internal/Assertio... | 2,513 | 714 |
/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* Copyright (C) 2003-2017 Apple Inc. All rights reserved.
* Copyright (C) 2009 Rob Buis (rwlbuis@gmail.com)
* Copyright (C) 2011 Google Inc. All rights rese... | 20,266 | 5,961 |
/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2019 The Khronos Group Inc.
* Copyright (c) 2019 Valve Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file ... | 39,610 | 16,035 |
#pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//IWDG
namespace IwdgIwdgKr{ ///<Key register
using Addr = Register::Address<0x58004800,0xffff0000,0x00000000,std::uint32_t>;
///Key value (write only, read 0x0000) These bits must be written by software at regular ... | 6,080 | 1,540 |
// 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 <fcntl.h>
#include <fontconfig/fontconfig.h>
#include <stddef.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <stri... | 9,429 | 3,418 |
#include "TileSet.hpp"
#include <SFML/System/Vector2.hpp>
#include <iostream>
#include <filesystem>
#include <fstream>
#include <sstream>
#include <functional>
#include "spdlog/spdlog.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "../Logger.hpp"
TileSet::TileSet(const std::string& name, const std::string& ... | 3,364 | 1,333 |
/*
** Copyright 2014-2016 The Earlham Institute
**
** 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 la... | 4,185 | 1,703 |
#include "coalitional_values_generator_NRD.h"
#include "utility.h"
#include <cassert>
coalitional_values_generator_NRD::coalitional_values_generator_NRD() :
nrd_generator(coalition::value_t(0), coalition::value_t(0.1)), AgentToAgentToTaskSkillLevel{}
{
}
void coalitional_values_generator_NRD::reset
(
u... | 3,030 | 1,251 |
/*
* Copyright (c) MarkLogic 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 by ... | 960 | 327 |
#include "shadowMapping/shadowMappingDepth.h"
const unsigned int SHADOW_WIDTH = 1024, SHADOW_HEIGHT = 1024;
ShadowMappingDepth::~ShadowMappingDepth()
{
}
void ShadowMappingDepth::Init()
{
glEnable(GL_DEPTH_TEST);
m_depthShader = new Shader("../Cocos2dx/src/shadowMapping/shadow_mapping_depth.vs",
"../Cocos2d... | 3,259 | 1,519 |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* BPSerializer.tcc
*
* Created on: Sep 16, 2019
* Author: William F Godoy godoywf@ornl.gov
*/
#ifndef ADIOS2_TOOLKIT_FORMAT_BP_BPSERIALIZER_TCC_
#define ADIOS2_TOOLKIT_FORMAT_BP_BPSE... | 14,328 | 3,957 |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 2,586 | 854 |
/*******************************************************************************
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
(c) Copyright 1996 - 2002 Gary Henderson (gary.henderson@ntlworld.com) and
Jerremy Koot (jkoot@snes9x.com)
(c) Copyright 2001 - 2004 ... | 7,705 | 2,791 |
#include <iostream>
#include <algorithm>
using namespace std;
long long sum(void)
{
long long result = 0LL;
return result;
}
| 139 | 47 |
#include "BCGVelAdvect.H"
#include "EBAdvectionFunctions.H"
#include "Chombo_ParmParse.H"
#include "Chombo_NamespaceHeader.H"
///
void
BCGVelAdvect::
applyVeloFluxBCs(EBFluxData<Real, 1> & a_flux,
const DataIndex & a_dit,
EBFluxData<Real, 1> & a_scalarLo,
EBFluxDa... | 12,005 | 4,427 |
/*
* Developing brain Region Annotation With Expectation-Maximization (Draw-EM)
*
* Copyright 2013-2020 Imperial College London
* Copyright 2013-2020 Christian Ledig
* Copyright 2013-2020 Antonios Makropoulos
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except ... | 24,568 | 11,032 |
#include "hippo/input/keyboard.h"
#include "hippo/log.h"
#include <algorithm>
#include "SDL2/SDL_keyboard.h"
namespace hippo::input
{
std::array<bool, Keyboard::KeyCount> Keyboard::keys;
std::array<bool, Keyboard::KeyCount> Keyboard::keysLast;
void Keyboard::Initialize()
{
std::fill(keys.begin()... | 1,350 | 580 |
// This file is the part of the Indexer++ project.
// Copyright (C) 2016 Anna Krykora <krykoraanna@gmail.com>. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.
#include "SortingProperty.h"
namespace indexer {
SortingProperty Propert... | 1,802 | 552 |
/*!
* Copyright (c) by Contributors 2019-2022
*/
#include "xgboost/json.h"
#include <dmlc/endian.h>
#include <cctype>
#include <cmath>
#include <cstddef>
#include <iterator>
#include <limits>
#include <sstream>
#include "./math.h"
#include "charconv.h"
#include "xgboost/base.h"
#include "xgboost/json_io.h"
#includ... | 24,678 | 9,144 |
/* endpoint.cc
Mathieu Stefani, 22 janvier 2016
Implementation of the http endpoint
*/
#include <pistache/config.h>
#include <pistache/endpoint.h>
#include <pistache/peer.h>
#include <pistache/tcp.h>
#include <array>
#include <chrono>
namespace Pistache
{
namespace Http
{
class TransportImpl ... | 8,935 | 2,486 |
// Copyright 2015 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 <cassert>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <limits>
#include <string>
#include "libxml/parser.h"
#include "... | 3,515 | 1,371 |
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/helpers/ptr_math.h"
#include "shared/test/unit_test/helpers/debug_manager_state_restore.h"... | 12,934 | 4,441 |
// Copyright 2022 Bezrodnov Dmitry
#include "../../../modules/task_1/bezrodnov_d_radix_sort_double_batcher/radix_sort_double_batcher.h"
#include <random>
#include <cmath>
#include<algorithm>
std::vector<std::vector<int>> get_vector_part(const std::vector<int>& vec,
int ... | 3,506 | 1,271 |
#include <cage-core/geometry.h>
#include <cage-core/config.h>
#include <cage-core/serialization.h>
#include <cage-core/flatSet.h>
#include <cage-engine/graphics.h>
#include <cage-engine/opengl.h>
#include <cage-engine/shaderConventions.h>
#include <cage-engine/window.h>
#include "../engine.h"
#include "graphics.h"
#i... | 43,653 | 19,152 |
// Copyright 2017-2019 VMware, Inc.
// SPDX-License-Identifier: BSD-2-Clause
//
// The BSD-2 license (the License) set forth below applies to all parts of the
// Cascade project. You may not use this file except in compliance with the
// License.
//
// BSD-2 License
//
// Redistribution and use in source and binary fo... | 5,308 | 1,903 |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "workqueue.hpp"
#define LL_ADD(item, list) { \
item->prev = NULL; \
item->next = list; \
list = item; \
}
#define LL_REMOVE(item, list) { \
if (item->prev != NULL) item->prev->next = item->next; \
if (item->next != NULL) item->next->prev = item-... | 2,637 | 1,134 |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 1,661 | 563 |