blob_id stringlengths 40 40 | content_id stringlengths 40 40 | repo_name stringlengths 5 114 | path stringlengths 5 318 | language stringclasses 5
values | extension stringclasses 12
values | length_bytes int64 200 200k | license_type stringclasses 2
values | content stringlengths 143 200k |
|---|---|---|---|---|---|---|---|---|
44b278dc0798c1a1691555328fe47932b8ea4ef1 | b7755619676b770231a14f866194ef742e8ecf9e | tjrantal/dataQDI720SampleTest | /sdk1Dlg.cpp | C++ | cpp | 9,021 | permissive | //------------------------------------------------------------------------------------------
//This program demonstrates how to acquire data via using the DataqSdk control
//You can apply this program to all DATAQ products
//------------------------------------------------------------------------------------------
// ... |
80410f108f2c177ab9ffcb387fb4565470e56c81 | 732582051e138447abde2c27cac33585de6bb4ba | thismehmood/hackerrank_practice | /Day 7: Arrays.cpp | C++ | cpp | 1,309 | no_license | #include <bits/stdc++.h>
using namespace std;
vector<string> split_string(string);
int main()
{
int n;
cin >> n;
cin.ignore(numeric_limits<streamsize>::max(), '\n');
string arr_temp_temp;
getline(cin, arr_temp_temp);
vector<string> arr_temp = split_string(arr_temp_temp);
vector<int> ... |
519bdce58823ccd4e4abeb57592e08467c1f92ce | f30fc5be2a82530d9c2fc7e0a091a8443d1aa579 | russellaugust/QRSlate | /cpp/core/src/zxing/common/HybridBinarizer.cpp | C++ | cpp | 6,851 | no_license | // -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
/*
* HybridBinarizer.cpp
* zxing
*
* Copyright 2010 ZXing authors All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obta... |
698bbd8c70014aefdbc1fcd386ae4156055e9f31 | e7736226b675b49dff06ab6eef694807e8aafbc2 | RetepMil/BOJ-Algorithm-Practice | /3052.cpp | C++ | cpp | 273 | no_license | #include <iostream>
int main() {
int n, cnt = 0;
int map[42] = {0};
for (int i = 0; i < 10; i++) {
std::cin >> n;
map[n % 42] = 1;
}
for (int j = 0; j < 42; j++) {
if (map[j] == 1)
cnt++;
}
std::cout << cnt << std::endl;
return 0;
} |
36321b97fdc505ed51e87101f73c47cf7c8c8754 | 810a8803a2786d99189e41e1191d4ac0f6de3365 | wouterboomsma/quickstep | /external/boost_1_60_0/qsboost/fusion/view/single_view/detail/value_of_impl.hpp | C++ | hpp | 1,214 | permissive | /*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Copyright (c) 2011 Eric Niebler
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)
====... |
4e02579c2024aa434c2a2806f6ab6bf730cb0f1e | 9f96897ca909570cc6e8abb965670d45df2c9779 | Gongyihang/cpp | /8.31/server-select.cpp | C++ | cpp | 3,650 | no_license | #include <signal.h>
#include <stdio.h>
//#include<stdlib.h>
//#include<string.h>
#include <arpa/inet.h>
#include <errno.h>
#include <iostream>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <wait.h>
using namespace std;
//const
const int BUFSIZE = 1024;
const int LI... |
7d89ac0a0c9ad3968d1ef7309be6e104596b93a5 | d7f9a29d443b84cb7f7897d29db9cd5dfcc764df | Nextdoor/envoy | /test/extensions/filters/http/oauth2/oauth_test.cc | C++ | cc | 8,637 | permissive | #include <memory>
#include <string>
#include "source/common/http/message_impl.h"
#include "source/common/protobuf/utility.h"
#include "source/extensions/filters/http/oauth2/oauth.h"
#include "source/extensions/filters/http/oauth2/oauth_client.h"
#include "test/mocks/http/mocks.h"
#include "test/mocks/server/mocks.h"
... |
c48cd3760efe74980c47b2a3b80bcb2a6f6d0378 | fa9689e794867122aa6a9949ff149bef9aa5d760 | Baltoli/llvm | /lib/Transforms/IPO/GlobalOpt.cpp | C++ | cpp | 116,238 | permissive | //===- GlobalOpt.cpp - Optimize Global Variables --------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
97eccec0c5d97ef94dd78d46506f4e3053c42154 | 273425708f7e5b49adea68287a653f2ae3191c87 | FreshMutroom/FPS-Game | /Source/Sniper_Projectile.cpp | C++ | cpp | 3,206 | no_license | // Fill out your copyright notice in the Description page of Project Settings.
#include "FPS_Project.h"
#include "Sniper_Projectile.h"
#include "FPS_ProjectCharacter.h"
#include "Sniper_Bot.h"
// Sets default values
ASniper_Projectile::ASniper_Projectile()
{
// Set this actor to call Tick() every frame.... |
ab48a3562dcf475a377b50eec77420009a1fda01 | 03a7889813b75f700df54ceb5dfa82ec7c92a785 | Legulysse/gugu-engine | /Dev/SourcesEditor/Gugu/Editor/Modal/OpenProjectDialog.cpp | C++ | cpp | 1,174 | permissive | ////////////////////////////////////////////////////////////////
// Header
#include "Gugu/Common.h"
#include "Gugu/Editor/Modal/OpenProjectDialog.h"
////////////////////////////////////////////////////////////////
// Includes
#include "Gugu/Editor/Editor.h"
#include "Gugu/System/SystemUtility.h"
#includ... |
4a42ee487f9dc099a3503fc08555861356f8988d | e1c63da541ff9a0b4dd973fac700df90163f0480 | Parantido/sipphone | /src/dskphone/logic/lamp/ledlamp/src/eventslot.cpp | C++ | cpp | 2,719 | no_license | #include "eventslot.h"
#include "ledlamp.h"
#include "lightinfotreater.h"
#include "dsklog/log.h"
#include "factory.h"
VECTORLIGHTINFO CEventSlot::m_vLightInfo;
bool CEventSlot::PostEvent(LAMP_EVENTTYPE _eventType, const tEventUnit & eventUnit, bool bRegister,
int iLampNum)
{
/* 放入链表(若为... |
ba8c9329f91db03056e7f3ef00adde6fbd92b905 | 01f1acdd65427742a9102945e2145c268f242a72 | zumy/zumycoin | /src/qt/zumyamountfield.cpp | C++ | cpp | 8,324 | permissive | // Copyright (c) 2009-2018 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Developers
// Copyright (c) 2014-2018 The Dash Core Developers
// Copyright (c) 2016-2018 Duality Blockchain Solutions Developers
// Copyright (c) 2017-2018 Zumy Developers
// Distributed under the MIT/X11 software license, see the accom... |
e2722d97ed2518dc0ba3f57073281e66f064f368 | c37d7ce95a4c1c514f2f69d4d9c72f0e9129430e | contacoonta/sgap-direct3d | /004 using DXUT/011 DirectInput/DInput.cpp | C++ | cpp | 2,465 | no_license | #include "DXUT.h"
#include "DInput.h"
#pragma comment(lib, "dinput8.lib")
DInput::DInput()
{
Initialize();
}
DInput::DInput(const DInput&)
{
}
DInput::~DInput()
{
Release();
}
/*
*/
HRESULT DInput::Initialize()
{
HRESULT hr = S_OK;
Release();
m_mouseDelta[0] = 0; // MOUSE DELTA X
m_mouseDelta[1] = 0; // M... |
197daeca9dff080d6030f6f77bc9c33a07a21b06 | c779fb10c1ea68c57ecd9c7d94a1f269024f36c4 | byzhang/claire-netty | /claire/netty/TcpServer.cc | C++ | cc | 6,802 | permissive | // Copyright (c) 2013 The claire-netty Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <claire/netty/TcpServer.h>
#include <boost/bind.hpp>
#include <boost/make_shared.hpp>
#... |
e6a31fcac27b1da8e300a5b0a26292eaeccd63dc | 83b8c56c1774ed935d48199cb9f10aa9752f2064 | ipsely/Lab-4b | /Problem 15.cpp | C++ | cpp | 1,013 | no_license | #include <iostream>
using namespace std;
int maximum (int arr[],int j,int l);
int minimum(int arr[],int j,int l);
int main() {
int n,arr[100],i,max,min;
cout<<"enter the nuber of elemnts in an array\n";
cin>>n;
cout<<"enter "<<n<<" elements of array\n";
for(i=0;i<n;i++)
{
cin>>arr[i];
}
max= maximum(arr,0,n)... |
561645a35b2ca03ec64eec5781bd79ba2c31e0c0 | ec239e4864e68476ca9151f6ec625ec4234e768a | P-dot/C-_CODE | /Game/intro.cpp | C++ | cpp | 357 | no_license | #include <iostream>
using namespace std;
RidiculouslyLongType::SubtType function()
{
}
int main()
{
bool b;
int32_t i32;
uint64_t u64 = 0;
int8_t i8 = 0;
uint8_t u8;
const char *str = "we begin programming ib c";
string cppstr = "Hi there!!!";
auto a = 1.0f;
auto a2 = 1;
... |
fc9d0ff30b849cf06742d60c59c03897de3e26a2 | 764c6a6ca5fb24cc293571c74fa716be2dd3584a | greenty/ACM_Training | /usaco/skidesign.cpp | C++ | cpp | 592 | no_license | /*
ID:greenty2
LANG:C++
TASK:skidesign
*/
#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std;
int a[1005];
int main()
{
freopen("skidesign.in","r",stdin);
freopen("skidesign.out","w",stdout);
int n;
scanf("%d",&n);
double sum=0;
for(int i=1;i<=n;i++)
{
scanf("%d",&a[i]);
//sum+=a[i]*1.0... |
195f75e27baa8bc6c873c08d952dd6e85fe128d6 | fb0118b516c456f14cff5d51f790212340a46cbb | sam442/Distributed-Text-Processor | /src/Logger.cpp | C++ | cpp | 1,808 | no_license | #include <Logger.h>
Logger::Logger() : _outputToFile(false), _outputToFileRules(0), _outputToStdout(false), _outputToStdoutRules(0),
_outputToDebugger(false), _outputToDebuggerRules(0)
{
#ifdef _WIN32
_ID = std::to_string(GetCurrentProcessId());
#else
_ID = std::to_string(getpid());
#endif
}
Logger::~Logger()
... |
efcaf0b6a695aa9b4af9a3a8b19edefd81fb7748 | 4063b9a95e9129daf4fb40f7f81fb359e13c09fe | tpurtell/android-cpp-sdk | /android-cpp-sdk/platforms/android-7/android/os/PowerManager.hpp | C++ | hpp | 10,154 | permissive | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: android.os.PowerManager
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMEN... |
bc8a913574fc72716edc4b44ace7cb953350cb7e | d088423e7a37ccd2f1ec72901c570b63975e95d4 | hhsaez/crimild | /core/src/Simulation/Systems/UISystem.cpp | C++ | cpp | 2,278 | permissive | #include "UISystem.hpp"
#include "Components/UIResponder.hpp"
#include "Simulation/Input.hpp"
#include "Simulation/Simulation.hpp"
#include "Visitors/Apply.hpp"
using namespace crimild;
using namespace crimild::messaging;
void UISystem::start( void ) noexcept
{
/*
if ( !System::start() ) {
return false;
}... |
5a2bd87e088e635830b4186c62bd2bafddf58bfb | 33dbc76429523bd9a66b349b9ee4a0c4b617871d | Beanyy/CeilingLights | /effectBase.hpp | C++ | hpp | 550 | no_license | #ifndef EFFECTBASE_HPP
#define EFFECTBASE_HPP
#include "ledStrip.hpp"
#ifdef SIMULATOR
#include <ctime>
unsigned long millis();
#endif
class Effect
{
private:
int prog;
public:
unsigned long lastTime;
int duration; //Try to make this a number with many factors.
int progessOffset;
float speed;
CRGB colorRgb;
... |
0e5d8844642916e1e022a96c37d3b9bfe5d723df | 454757e4bc941fae6adec1d9364421380059a4e8 | quanhengwen/rock_github | /code_test/learn/sensor_drivers/device_drivers/mag/mag0_driver_core.cpp | C++ | cpp | 2,522 | no_license | /*
* Copyright (c) 2016 Qualcomm Technologies, Inc. All Rights Reserved.
* Qualcomm Technologies Proprietary and Confidential.
*/
static SnavDriverPortTypeEnum mag_port_type = SNAV_DRIVER_PORT_TYPE_I2C;
static int32_t mag_port = 8;
static int32_t mag_bit_rate = 400000;
static uint32_t mag_trx_ti... |
4f6dc9cb4b914f3fa975d39de21edfa10e6b768b | b125a32bf9ab4dacdf6f2997fb513b16c4375fe2 | chenweichang/or-tools | /examples/cpp/flow_api.cc | C++ | cc | 3,469 | permissive | // Copyright 2010-2017 Google
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... |
09abddc502c5ed1856f06005a92e75963dc87ad4 | 5ae74d2a0275ae195662f8d7f3e6e969b42a5cda | tusharsharma2020/cpp | /function/check_prime_using_fn_7_5_21.cpp | C++ | cpp | 537 | no_license | #include <iostream>
#include <math.h>
using namespace std;
int ischeckprime(int num1)
{
for (int i =2;i<=sqrt(num1);i++)
{
if(num1%i==0)
{
return false;
}
}
return true;
}
int main() // armstrong
{
int a;
cout<<"enter the number a ";
... |
e90f71ccdbbcd2ca0ccf6834923f64350fb4c895 | 94889cf46db67ef36803b12cd3e1883ba331b92b | brunolauze/openpegasus-providers-old | /src/Providers/UNIXProviders/HostedAuthenticationRequirement/UNIX_HostedAuthenticationRequirementProvider.cpp | C++ | cpp | 3,429 | permissive | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
158f262f0ff135bf016508cc712e19e22022cc44 | 1ff82d194703fea7a669ea65cfb37a09329fe7b4 | jingjiajie/WorkScript | /WorkScript/Util/StringCache.cpp | C++ | cpp | 430 | permissive | #include "StringCache.h"
using namespace std;
using namespace WorkScript;
llvm::Value* StringCache::getCachedLLVMStringPtr(const std::wstring &str) const noexcept
{
auto it = this->cachedString.find(str);
if(it != this->cachedString.end()){
return it->second;
}
return nullptr;
}
void StringCa... |
2f30c96ce5d6d50aa9a319d03c4eeac0cea4f89b | 5004f008a6867b2be77c356260621de7914cfbb7 | WarfareCode/mixr | /src/terrain/factory.cpp | C++ | cpp | 745 | no_license |
#include "mixr/terrain/factory.hpp"
#include "mixr/base/Object.hpp"
#include "mixr/terrain/QuadMap.hpp"
#include "mixr/terrain/ded/DedFile.hpp"
#include "mixr/terrain/dted/DtedFile.hpp"
#include "mixr/terrain/srtm/SrtmHgtFile.hpp"
#include <string>
namespace mixr {
namespace terrain {
base::Object* factory(const ... |
39177e573a66d2b1dde987767f4292f0486edeb8 | f1dd5e121e3f3fdbd7ec95f0a6869f4ca35d1379 | javierborja95/JB_CSC17a | /Assignments/Assignment_04/Menu_Assignment_4/retailitem.cpp | C++ | cpp | 638 | no_license | /* File: retailitem.h
* Author: Javier B
*
* Created on November 7, 2016, 8:38 PM
* Purpose: Retail item class specification file
*/
#include "retailitem.h"
//System Libraries
#include <cstdlib>
RetailItem::Item(int n){
info={""};
units=0;
price=0.0;
}
void RetailItem::setInfo(string info){
th... |
f8734b5a1d143bcb2a2c6ca9082972e1d133c892 | f43617022983dc0747299d0ad6d908539c2a6a3d | xh119/imgbrd-grabber | /src/lib/src/models/source.cpp | C++ | cpp | 7,107 | permissive | #include "models/source.h"
#include <QCryptographicHash>
#include <QFile>
#include <QFileInfo>
#include <QJSEngine>
#include <QJSValue>
#include <QJSValueIterator>
#include <QMutex>
#include "auth/auth-const-field.h"
#include "auth/auth-field.h"
#include "auth/auth-hash-field.h"
#include "auth/http-auth.h"
#include "au... |
25777a2bc0196b163950d84b9ed9156cfbeb3b7e | fc6fa63e2fe961016f8062b144abc772f1b8b6d7 | dvirs12345/Cpp-Solver | /solver.cpp | C++ | cpp | 4,035 | permissive | // Author - Dvir Sadon
#include "solver.hpp"
#include <iostream>
#include <string>
#include <complex>
using namespace std;
using namespace solver;
namespace solver
{
double solve (const RealVariable& x) { return 0; }
complex<double> solve (const ComplexVariable & x) { return *(new complex<double>);}
/* Rea... |
b4111f4bf96dfcea765f64af216e57bf55eaff4a | 317f79eaf91057b0b8f72999f195984197e4cead | thibault-martinez/iota.lib.cpp | /test/source/models/neighbor_test.cpp | C++ | cpp | 4,342 | permissive | //
// MIT License
//
// Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon
//
// 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... |
846bc59f2b585256a5261ccfcab3535d8f9210c2 | 6218a69aba5c1b42c2844f547f9cd6edf87396a6 | xtmgah/yacrd | /inc/utils.hpp | C++ | hpp | 1,748 | permissive | /*
Copyright (c) 2018 Pierre Marijon <pierre.marijon@inria.fr>
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, me... |
59f6728c82035b04ccc7d9475cc49d77e331ebaf | fbe3450e9ba116fc761aa04eb7a53929fb673135 | sanger-pathogens/fastml | /libs/phylogeny/fromCountTableComponentToDistance.cpp | C++ | cpp | 834 | no_license | // $Id: fromCountTableComponentToDistance.cpp 4742 2008-08-19 17:40:56Z cohenofi $
#include "fromCountTableComponentToDistance.h"
#include "likeDist.h"
#include <cassert>
fromCountTableComponentToDistance::fromCountTableComponentToDistance(
const countTableComponentGam& ctc,
const stochasticProcess &sp,
const M... |
18f205039a70a69df3cc9df88ee6badd1c34ddcc | 42a7fcaefa9f7432b7b6d6fcd6ef43488c4446a3 | Weelown/BBGali_VI_Dynavolt | /main_prototype V 2.0/Dynamixel_Serial.cpp | C++ | cpp | 29,673 | no_license | /*
17 Jan 2012
J.Teda
-Updated to work with Arduino 1.0
04 Dec 2011
J.Teda
- Added turn write to registor
- have to amout of cide used for left and right selection
30 Nov 2011
J.Teda
-Added Return Delay, how long before status frames are sent after instuctions
27 Nov 2011
J.Teda
-Added load read, how much loa... |
42da6086a40ce3dbda1e4de29b5b64f8b5d8a1f8 | 3dc640dca062aebbef9c93157bc0fa964b45680f | sigurdle/FirstProject2 | /src/HTML/MediaSource2.cpp | C++ | cpp | 28,204 | no_license | #include "stdafx.h"
#include "LHTML.h"
#include "MediaSource.h"
#include "MPEG.h"
#include <qedit.h>
#pragma comment(lib, "C:\\Program Files\\Microsoft SDK\\samples\\multimedia\\directshow\\BaseClasses\\debug\\strmbasd.lib")
/////////////
#include <streams.h>
//#include "vidprop.h"
#include <initguid.h>
//#include ... |
ddacdadaf27b70e3db0317160543ce0aa3084821 | 7f2a8353f2ae1c905053bb1b0924ddb37801dc79 | pshemoth/openvino | /inference-engine/src/transformations/src/transformations/common_optimizations/common_optimizations.cpp | C++ | cpp | 7,036 | permissive | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <memory>
#include "transformations/init_node_info.hpp"
#include "transformations/itt.hpp"
#include "transformations/common_optimizations/algebraic_simplification.hpp"
#include "transformations/common_optimizations/nop_eliminati... |
29d82de7351c464b6372a6c21241a7cb7e22fd28 | 236a9de9f81212521299e2a25801986525b52802 | syed-jafrul-husen/Competitive-Programming-Code | /LightOJ/1020/16068078_AC_8ms_1688kB.cpp | C++ | cpp | 670 | no_license | #include<bits/stdc++.h>
using namespace std;
int main()
{
long long u,v,q,t,i,j,k,x1,x2,x3,x4,y1,y2,y3,n,y4;
scanf("%lld",&t);
char s[100];
for(i=0; i<t; i++)
{
scanf("%lld",&n);
getchar();
scanf("%s",&s);
getchar();
printf("Case %lld: ",i+1);
//cout<... |
085458b01277429fad2f4ba8b51dee5af3f0a472 | 7f51bfade23c2866e017f2dd190d71d2ff443f0c | apache/openoffice | /main/svx/source/inc/formcontroller.hxx | C++ | hxx | 39,646 | permissive | /**************************************************************
*
* 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... |
1abd6df89756b03ebe2689863c01a1d44bf04e3c | d01fe32b6f446c77e44a86016cf929b132595026 | DLR-TS/gdal | /ogr/ogrsf_frmts/oci/ogrocisession.cpp | C++ | cpp | 21,934 | permissive | /******************************************************************************
*
* Project: Oracle Spatial Driver
* Purpose: Implementation of OGROCISession, which encapsulates much of the
* direct access to OCI.
* Author: Frank Warmerdam, warmerdam@pobox.com
*
************************************... |
cf161413d5f33087c0a646812f6d5b73178d23ab | 0d446a037f3e400ea532bf87d27ae0619459684b | yszc-wy/mimics_demo | /mimics_damo/qFourViewWidget.hpp | C++ | hpp | 8,708 | no_license | #pragma once
#include <QWidget>
#include <vtkSmartPointer.h>
#include <memory>
//#include <itkImage.h>
//#include <itkImageSeriesReader.h>
//#include <itkGDCMImageIO.h>
//#include <itkGDCMSeriesFileNames.h>
//#include <itkThresholdImageFilter.h>
//#include <itkVTKImageToImageFilter.h>
//#include <itkImageToVTKImageFi... |
049382c985fdaf6265e4e25de6a6eee9439f1d8d | 5a6747ef5b6b40e77480c4431358239761af7bda | vaibhav-s/self-driving-car | /image-localization/community-code/roboauto/ros/src/slam/src/main.cpp | C++ | cpp | 1,001 | permissive | /*
* Copyright 2016 RoboAuto team, Artin
* All rights reserved.
*
* This file is part of RoboAuto HorizonSlam.
*
* RoboAuto HorizonSlam 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 vers... |
30cf6e6f2104570b2bda9ee2e778b012c7e15041 | d1aadecb72a1408abb0bd64aedafc3159451340a | fermi-lat/GlastRelease-scons-old | /CalibData/src/CalibTime.cxx | C++ | cxx | 1,109 | no_license | // $Header$
#include "CalibData/CalibTime.h"
namespace {
static longlong billion = 1000000000;
}
namespace CalibData {
using facilities::Timestamp;
CalibTime::CalibTime() : Timestamp() {
m_gtime = Gaudi::Time(this->getClibTime(), this->getNano());
}
CalibTime::CalibTime(const Timestamp& stamp) :
fa... |
99db1b09b51b6c74b7b0bc102401328ac843aec4 | 929dd36b3902bf15b4e270978802f10c5e657b89 | bpranaw/CS-Assignments | /CS-162/Assignments/Assignment 2/program.cpp | C++ | cpp | 954 | no_license | #include "restaurant.h"
using namespace std;
int main()
{
//Repeats until the user chooses to leave
while(1)
{
//Initializes the krusty krab pizza shop
Restaurant krustyKrab;
//Takes all the information form the files and puts them into the krusty krab's books
krustyKrab.loadData();
... |
c1a35bc52c8cf5255219ea8af146cc98d7e07de1 | 974055ad49dd5ada13971ec13baef534aa998a1d | Saikat-S/acm-problems-solutions | /Codeforces/66/B. Petya and Countryside.cpp | C++ | cpp | 2,476 | permissive | /***************************************************
* Problem Name : B. Petya and Countryside.cpp
* Problem Link : https://codeforces.com/contest/66/problem/B
* OJ : Codeforces
* Verdict : AC
* Date : 2018-11-06
* Problem Type : Div 2 - B
* Author Name : Saikat Sharma
* University : C... |
cd911eef968b183bba917fb634f82b97c0e4abfd | afaa699a1c6ed991afda5aacd7f510c25063fb3b | Supernode-SUNO/SUNO | /src/qt/supernodecoin/lockunlock.cpp | C++ | cpp | 2,727 | permissive | // Copyright (c) 2020 The Supernode Coin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "qt/supernodecoin/lockunlock.h"
#include "qt/supernodecoin/forms/ui_lockunlock.h"
LockUnlock::LockUnlock(QWidget *pare... |
2cb55e352c72d46b0c44f1e5b1233289a1d57195 | d662ce1324051c8ab26b038fdc06a37bd739b9e5 | tmoreau89/tvm | /tests/cpp/tvmscript_printer_traced_object_functor_test.cc | C++ | cc | 6,794 | permissive | /*
* 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 ... |
77b2b20f8f133e1341a73b8c10ce80e58bf451e4 | ba53f3153424b59b1136d3a0c7ee975ee95d3f24 | JackKingChen/NetCamera | /src/components/input/mipwinmminput.cpp | C++ | cpp | 10,375 | permissive | /*
This file is a part of EMIPLIB, the EDM Media over IP Library.
Copyright (C) 2006-2016 Hasselt University - Expertise Centre for
Digital Media (EDM) (http://www.edm.uhasselt.be)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU ... |
63f1bd483116ef7d8d3eaf5abb8f665cab817346 | 1146f4430519afce2971a83ad7aea2ff6c105ec2 | Miho09/PS_5 | /generate/generateData.cc | C++ | cc | 1,999 | no_license | // Generate simple multivariate data according to a specified
// hypothesis (signal or backround) or as a mixture.
// Glen Cowan, RHUL, Physics, November 2007
#include <iostream>
#include <cmath>
#include <TH1D.h>
#include <TFile.h>
#include <TRandom3.h>
#include <TTree.h>
#include "../inc/Event.h"
using namespace st... |
7d2925c6032de32abb519eca616f40ef9bdda628 | 0c1254dbaa362f68d15822b369cf4b2734158e04 | pdpdds/yuzaos | /kernel/yuza_core/KeyBoard/KeyBoard.cpp | C++ | cpp | 8,248 | no_license | #include <stringdef.h>
#include <stringdef.h>
#include "KeyBoard.h"
#include "SkyConsole.h"
#include "intrinsic.h"
#include <IDT.h>
namespace KeyBoard
{
static KeyBoardState _keyBoardState;
//키보드 인터럽트 핸들러
__declspec(naked) void i86_kybrd_irq()
{
_asm {
cli
pushad
}
_asm
{
... |
00ddee766c55282e73d6951c8ed3ba2094dd70f7 | f5d2b0f8abd2388ce186aa0088938540391ad74e | akki251/competitive-Programming | /Arrays and Sorting Algos/Searching and Sorting Questions/Product array cycle.cpp | C++ | cpp | 700 | no_license | int leftRightPrdouct(int a[], int low, int mid, int high)
{
int leftProduct = 1;
int rightProduct = 1;
int i;
for (i = low; i < mid; i++)
{
leftProduct = leftProduct * a[i];
}
for (i = mid + 1; i <= high; i++)
{
rightProduct = rightProduct * a[i];
}
if (low == ... |
bbc699482776b986dc90b4a663b59a31540e0151 | 64666e36da2b6047568c26cb85ebad6758dd0c55 | skeshri/TrGEMG4 | /include/TrGEMSteppingAction.hh | C++ | hh | 452 | no_license | #ifndef TrGEMSteppingAction_h
#define TrGEMSteppingAction_h 1
#include "G4UserSteppingAction.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class TrGEMSteppingAction : public G4UserSteppingAction
{
public:
TrGEMSteppingAction();
~TrGEMSteppingAction(){};
vo... |
588114b63790f7d71a186edf63a68cc40f7b1577 | c889c193f913cf0c70cf85fbfc6d605673f7e8e5 | zivzone/DroneSimulator | /src/Application.cpp | C++ | cpp | 16,868 | no_license | //
// Created by adamyuan on 10/28/17.
//
#include "GL/glew.h"
#include "Application.hpp"
#include <algorithm>
#define GROUND_Y 0.0f
#define CAMERA_Y 1.7f
#define H_GROUND_SIZE 1000.0f
#define INIT_DENSITY 0.7f
#define BLOOM_ITERATE_TIMES 8
//most of the framebuffer stuff is from https://learnopengl.com/
static boo... |
9fdcac205ac2ab560144548fd5ead368f312981e | b4c50dfd282017446a019ba0b372df3f84bb042f | trannda1223/v8 | /src/full-codegen/mips/full-codegen-mips.cc | C++ | cc | 132,830 | permissive | // Copyright 2012 the V8 project 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 V8_TARGET_ARCH_MIPS
// Note on Mips implementation:
//
// The result_register() for mips is the 'v0' register, which is defined
// by the ABI to co... |
d39433aa10b4df7130ee518537522befa98f1177 | c54c4a5f5b6c5a1c8d6b756b97f090a5779de453 | zh-dou/Source-File | /模板/数据结构/stack.cpp | C++ | cpp | 767 | no_license | #include<map>
#include<set>
#include<queue>
#include<cmath>
#include<cstdio>
#include<string>
#include<cstring>
#include<cstdlib>
#include<iostream>
#include<algorithm>
using namespace std;
#define int long long
inline int read(){
int x=0,y=1;char ch=getchar();
while(ch>'9'||ch<'0'){if(ch=='-')y=-1;ch... |
dbd04376e33b16c118c68d8005634e4abd20a133 | f438860dac68bb4ea767b23fbfa75d1b86906cda | Phoxine/Android | /HAL_EXAMPLE/JNI/com_android_server_HelloWorldService.cpp | C++ | cpp | 2,292 | no_license | /*
* Copyright (C) 2009 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... |
d1830964e82c7ac3fa4e00e6743ad56fb5365f8c | b963da4ebd1b042bace747b323e324bf2b2c8558 | bju2000/android_hardware_intel | /PRIVATE/audiocomms/audio-hal/sample_specifications/src/AudioUtils.cpp | C++ | cpp | 5,728 | no_license | /*
* INTEL CONFIDENTIAL
* Copyright (c) 2013-2014 Intel
* Corporation All Rights Reserved.
*
* The source code contained or described herein and all documents related to
* the source code ("Material") are owned by Intel Corporation or its suppliers
* or licensors. Title to the Material remains with Intel Corpora... |
f8d6fe7e72407cf490a7c9f1b5ef022ae0b6bcb4 | ddd8b57fd5556cfe51e6eeaf2e53998070e83ff1 | 3p3r/ChromiumGStreamerBackend | /content/browser/download/save_package.cc | C++ | cc | 58,925 | permissive | // 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 "content/browser/download/save_package.h"
#include <algorithm>
#include <utility>
#include "base/bind.h"
#include "base/files/file_path.h"
... |
5a2f8547184e6586d6d6152ad79e55431a20718d | 44b12d07dfaa0761724afea90ba15c3104f02216 | tnordenmark/UU | /00.Kompendium_C++/Exempel/v3.0/kap6ex/mod_fak.cc | C++ | cc | 443 | no_license | // Filnamn: .../mod_fakult.cc
#include <iostream>
using namespace std;
void PrintChar( char c, int n ) {
for (int i=1; i<=n; i++)
cout << c;
cout << endl;
}
int fakultet( int x ) {
int temp;
PrintChar( '>', x );
if (x<=1)
temp = 1;
else
temp = x * fakultet(x-1);
PrintChar( '<',x )... |
908a2eafae2b2177929a717fda7701823a750e3f | 11a89ca803c234d9f44f1c45351522b6181e88d2 | produdez/C-Fundamental-182 | /Lab5/Prob4fix.cpp | C++ | cpp | 614 | no_license | #include<iostream>
#include<string>
#include <stdio.h>
#include <string.h>
using namespace std;
void prob4a(string &str){
char *pSN,*pGN;
pSN= &str[0]; //set pointer at the start of string
while(*pSN==' ') pSN++;
pGN=pSN;
while(*pGN !=' ') pGN++;
while(*pGN==' ') pGN++;
char *pC =new char[s... |
6e3e9ccecebc9dbe125197318bb4aa874515d4da | 845246eb9ef087c7b038ef31a8c781fb22dc4f29 | xLLLxLLLx/xLLLx | /cf/1004/tt.cpp | C++ | cpp | 721 | no_license | #include<bits/stdc++.h>
#define fr(i,x,y) for(int i=x;i<=y;++i)
#define rf(i,x,y) for(int i=x;i>=y;--i)
#define ll long long
using namespace std;
const int N=2e6+10;
int t,a[N],b[N];
int main(){
scanf("%d",&t);
int mx=0;
fr(i,1,t) {
int x;
scanf("%d",&x);
a[x]++;
mx=max(mx,x);
}
int x=0;
fr(i,1,t) {
if... |
6c0d4f47a800e5ad8e9b4cfdb8c610abffe10023 | bb21efba8acf905a9f22f5ef3335a52afb4fd88d | World3D/pap | /utf8/lib/client/FairyCore/src/OgreExt/OgreRibbonSet.cpp | C++ | cpp | 9,304 | no_license | /********************************************************************
filename: OgreRibbonSet.cpp
purpose: 这个类用于产生一条或多条ribbon chain
*********************************************************************/
#include "OgreRibbonSet.h"
#include <OgreSceneNode.h>
namespace Ogre
{
RibbonSet::RibbonSet(const Ogre::S... |
672b856999b850f717d0df945853848ec4543847 | 61fecc0045153fe90b93252fc8e9b6b1ba7a5d41 | aliyun/aliyun-openapi-cpp-sdk | /eflo/src/model/ListElasticNetworkInterfacesRequest.cc | C++ | cc | 4,319 | permissive | /*
* Copyright 2009-2017 Alibaba Cloud 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... |
b291e6025bea85a806f8f5551da549797daabd93 | bb465ebac80c1a2d8b1c13b90e8c1e61909fed84 | haixiang1977/algorithm-selfstudy | /data_structure/queue/queue_linkedlist_impl.cpp | C++ | cpp | 1,237 | permissive | // queue implemented with linked list
// g++ queue_linkedlist_impl.cpp -o queue_linkedlist_impl.out
// ./queue_linkedlist_impl.out
// expected size 3, size 3
// expected front 100, front 100
// expected back 300, back 300
// expected front 200, front 200
#include <iostream>
#include <list>
using namespace std;
class... |
20b1553b9ba5f56e35546942bfc9d70b1976e9d2 | 85545c59e92be8a351c9e479e377bb100e4000ed | little199011/votechain | /src/qt/paymentserver.cpp | C++ | cpp | 4,571 | permissive | // Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication>
#include "paymentserver.h"
#include "guiconstants.h"
#include "ui_interface.h"
#include "util.h"
#i... |
50893f9c20e1a448c9fb86f231e2c55dc714dcc7 | b9b397dcad08e214bd99d443d7a36c96f242d24a | Wlammm/ComponentSystem | /ComponentSystem/ComponentSystem/ComponentArray.hpp | C++ | hpp | 3,196 | no_license | #pragma once
#include <assert.h>
#include <array>
#include <unordered_map>
#include "Types.h"
class IComponentArray
{
public:
virtual ~IComponentArray() = default;
virtual void GameObjectDestroyed(GameObjectID anEntity) = 0;
virtual void Update() = 0;
virtual void LateUpdate() = 0;
virtual void SetActive(GameObje... |
078f7f2034a55413a9123b90c2d532bf7c1a8feb | b4f405e2fb9eabbe40a6f0b1b538299d6a145a7a | BSUIR450503/450503_novik | /Labs/Lab1/child.cpp | C++ | cpp | 910 | no_license | #ifdef _WIN32
#include <windows.h>
#include <stdio.h>
#include <iostream>
#elif __linux__
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#endif
using namespace std;
#ifdef _WIN32
int main()
{
HANDLE hPipe;
LPTSTR PipeName = TEXT("\\\\.\\pipe\\MyPipe");
DWORD BytesToRead;
DWORD BytesToWrite;
int i;
S... |
4918187dc9205275057955bf9f664d51cfa47f03 | aa3793a466ea883dfd56ccae6f55f33f62b3f6e1 | mizunohadouken/04_BattleTank | /BattleTank/Source/BattleTank/Private/TankTurret.cpp | C++ | cpp | 449 | no_license | // Fill out your copyright notice in the Description page of Project Settings.
#include "TankTurret.h"
#include "Math/UnrealMathUtility.h"
void UTankTurret::RotateTurret(float RelativeSpeed)
{
RelativeSpeed = FMath::Clamp<float>(RelativeSpeed, -1, +1);
auto YawChange = RelativeSpeed * MaxDegreesPerSecond *(GetWorl... |
a38822ac43b62272f65d8dec2e9572773c141fcf | 545bfd92d33ecc89d85b6135259853c0032aa65a | ndlwill1020/OpenGL | /ogl-OpenGL-tutorial_0015_21/tutorial12_extensions/tutorial12.cpp | C++ | cpp | 11,925 | no_license | // Include standard headers
#include <stdio.h>
#include <stdlib.h>
#include <vector>
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <glfw3.h>
GLFWwindow* window;
// Include GLM
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
using namespace glm;
#include <common/shader... |
0e4a1698b4eda07c9d903f5da8aeb127e9cfa9ae | 8b65fd8a30fa2704092b55b6a0ee261a84436ad1 | maxkimlyk/cvclasses18 | /cvlib/src/image_stitching.cpp | C++ | cpp | 6,715 | permissive | /* Demo application for Computer Vision Library.
* @file
* @date 2018-11-25
* @author Anonymous
*/
#include <algorithm>
#include <cvlib.hpp>
using namespace cvlib;
namespace
{
void merge_images(cv::Mat src, cv::Mat dst)
{
for (int i = 0; i < dst.rows; ++i)
for (int j = 0; j < dst.cols; ++j)
{... |
4e843e9f930431395f081b022a1d7e60d983b06b | 99278c702c46e339a962a95da5a949740203e810 | David20080125/cacu | /imgui/imwindow/ImwWindowManagerOpenGL.cpp | C++ | cpp | 1,219 | no_license | #include "ImwWindowManagerOpenGL.h"
#include "ImwPlatformWindowOpenGL.h"
#include <imgui_impl_glfw_gl3.h>
using namespace ImWindow;
ImwWindowManagerOpenGL::ImwWindowManagerOpenGL()
{
ImwPlatformWindowOpenGL::InitDX11();
}
ImwWindowManagerOpenGL::~ImwWindowManagerOpenGL()
{
ImwPlatformWindowOpenGL::ShutdownDX11();... |
1a0a8c33d0988d99e8c6203533eda45339b91c85 | 2723bf603e16e856b8cfcd546ba10366b16a9318 | DanielSharp01/SandboxFramework--DEPRECATED | /SandboxFramework/src/XML/XDocument.cpp | C++ | cpp | 910 | no_license | #include "XDocument.h"
#include <iostream>
#include "XMLParser.h"
#include "../IO/FileStream.h"
#include "../IO/StreamReader.h"
#include "../IO/StreamWriter.h"
namespace XML
{
XDocument::~XDocument()
{
delete Root;
}
std::string XDocument::ToString()
{
std::string ret = "<?xml version = \"1.0\" encoding = \... |
7d798036b500daf69af23453d9733eaed85f7002 | b702a1c5465a3a0eb4189b5c8ecf987a3d92292b | scharlton2/prepost-gui | /libs/pre/preprocessorwindowprojectdataitem.cpp | C++ | cpp | 7,324 | no_license | #include "datamodel/preprocessorinputconditiondataitem.h"
#include "datamodel/preprocessorrootdataitem.h"
#include "preobjectbrowser.h"
#include "preobjectbrowserview.h"
#include "preprocessordatamodel.h"
#include "preprocessorgraphicsview.h"
#include "preprocessorwindow.h"
#include "preprocessorwindowactionmana... |
7d582d70698551d5ec80421c33e54bb33e25a32e | b5b6f0666c19021fc18ec70d35df07622fe6eca7 | egorovdanil/MediaSDK | /_studio/shared/src/libmfx_core.cpp | C++ | cpp | 56,701 | permissive | // Copyright (c) 2017-2019 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 deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge,... |
3c29116bc856f75b235e8d205ff8c6b1f94c8ea1 | bd21a1f86c8842adcaedc1eb66456b26b8d2e469 | yashsoni501/Competitive-Programming | /Google/Codejam/2019/Qualification Round/Foregone Solutions.cpp | C++ | cpp | 813 | no_license | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
ll t;
cin>>t;
for(int test=1;test<=t;test++)
{
char n[200];
cin>>n;
ll len=strlen(n);
char a[len],b[len];
for(i... |
bc9c2d9644251e59cb12fa040d1af3ab994f796a | d22694b1cdba4cdf70686ee685a852eb1fa8fa41 | DouglasAdler/perfmetrics | /src/Node.cpp | C++ | cpp | 2,648 | permissive | /*****************************************************************************
MIT License
Copyright (c) 2016 Douglas Adler
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, in... |
84f1c96d9fa88f23c2447a263a635c23778da7bf | 70a7203d3186cc0a39bba743e1c89cfd590de34d | jwahn37/sgx_ssd_kernel | /piggyback_eval/mapping_app.cpp | C++ | cpp | 6,539 | no_license | #include <iostream>
#include <algorithm>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <string.h>
#include <map>
#include <vector>
#include <regex>
#include <vector>
#include <string>
const int BUF_MAX_SIZE = 1000;
const int para_MAX_SIZE = 3;
const int para_MAX_LEN = 100; //same as max directory size
#define DIR... |
98af123971ea20d1e239239e5820943465ca0145 | 4d168903b8437cc50fc0f5fa9ce0525668cff459 | AdamSzr/IT-HighSchool | /C++/liczba pierwsza/main.cpp | C++ | cpp | 581 | no_license | #include <iostream>
#include <math.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
cout<< "podaj liczbę ktora mam sprawdzic ";
int liczba;
cin>>liczba;
int pom=sqrt(liczba);
bool czy_pierwsza = true;... |
aa58d2880291fb971043233a18b55f89c5afa41c | ec68096efc606cfb7b341aeb5eacd09526edf8dd | thecodingwizard/competitive-programming | /POI/POI07-Flood.cpp | C++ | cpp | 8,577 | no_license | /*
* If we have something like 6 -1 4, we can place a pump on 4 to drain all the water in the city.
* Make sure you see why.
*
* We can greedily assign pumps to the lowest city if it is not already covered by an existing pump.
* Why? Well, we don't have to put any pumps on a square if it isn't part of the city... |
4e862f4b1cb6c94116748dfac5b5b80a7b7cc8e5 | 30b1e73d65428874a0db8f5b1e6e7678776044bb | xiangyubo/DesignPatterns | /StrategyPattern(Filter)/CountryFilter.cpp | C++ | cpp | 465 | no_license | #include"CountryFilter.h"
bool ChinaFilter::predicate(std::map<FilterCondition, void *> ¶ms) const
{
return China == *static_cast<CountryInfo *>(params[Country]);
}
bool GermanFilter::predicate(std::map<FilterCondition, void *> ¶ms) const
{
return German == *static_cast<CountryInfo *>(params[Country]);
}
bo... |
a83842b37ec48f2fe42c408a2aff8eddff2d4a49 | 2273225ebf0c114cd28499e0a8085d494b3c62ea | reignofwebber/oglTest | /6_texture/main.cpp | C++ | cpp | 4,461 | no_license | #include <GL/glew.h>
#include <GLFW/glfw3.h>
// #define STB_IMAGE_IMPLEMENTATION
// #include <stb_image.h>
#include <iostream>
#include "shader.h"
#include "image_loader.h"
static float mixValue = 0.0f;
void framebuffer_size_callback(GLFWwindow *window, int width, int height)
{
glViewport(0, 0, ... |
619e9ec8a214826bb39748ab6b018e18531816e3 | ee26561cf7577e985aa2aaa399f1961a12cd4e92 | julbouln/musicbox | /SDFileSystem/FATFileSystem/ChaN/diskio.cpp | C++ | cpp | 3,172 | no_license | /*-----------------------------------------------------------------------*/
/* Low level disk I/O module skeleton for FatFs (C)ChaN, 2007 */
/*-----------------------------------------------------------------------*/
/* This is a stub disk I/O module that acts as front end of the existing */
/* disk I/O ... |
cf17d32615870548d262af3066b3270bf1f44ff9 | 5ad1036e953e67a15b0480bba36ada2de90b4f52 | fireduck64/bitcoin-abc | /src/qt/rpcconsole.cpp | C++ | cpp | 55,802 | permissive | // Copyright (c) 2011-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/bitcoin-config.h>
#endif
#include <qt/rpcconsole.h>
#include <chainparams.h>
#i... |
c9622b27f08ea77c42a6b07e74795705d0e273af | 90a71116a526f2b9049e6e3caf65c5cf60c3c491 | chromium/chromium | /components/viz/demo/client/demo_client.cc | C++ | cc | 7,929 | permissive | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/viz/demo/client/demo_client.h"
#include <memory>
#include <utility>
#include <vector>
#include "components/viz/common/quads/compositor_frame.h"
#include ... |
0289ae6610a1c102df2262ac740722c9532a7912 | 5b9b1159873e5caf34667a841a73e7e946699539 | sqliu/chromium-crosswalk | /chrome/browser/profiles/profile_io_data.cc | C++ | cc | 32,382 | permissive | // 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 "chrome/browser/profiles/profile_io_data.h"
#include <string>
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/bind_helpe... |
13daa4003399c0a239d17c05e2c0ed5bf3e573eb | 1408e5c436e3b1a4d7b1fb50d5328ae137cf4c85 | freebsd/freebsd-ports | /www/ungoogled-chromium/files/patch-third__party_angle_src_gpu__info__util_SystemInfo__linux.cpp | C++ | cpp | 941 | permissive | --- third_party/angle/src/gpu_info_util/SystemInfo_linux.cpp.orig 2022-10-01 07:40:07 UTC
+++ third_party/angle/src/gpu_info_util/SystemInfo_linux.cpp
@@ -71,6 +71,24 @@ bool GetPCIDevicesWithLibPCI(std::vector<GPUDeviceInfo
bool GetSystemInfo(SystemInfo *info)
{
+#if defined(__OpenBSD__) || defined(__FreeBSD__)
+ ... |
f36a1c283ef0ca71923bd0de56ef30c0a6df707d | 36d2d97226ef998c3fd15e525eeb589f34fed635 | antrorsum/libtins | /tests/src/offline_packet_filter_test.cpp | C++ | cpp | 2,402 | permissive | #include <gtest/gtest.h>
#include <cstring>
#include <string>
#include <stdint.h>
#include <tins/offline_packet_filter.h>
#include <tins/ip.h>
#include <tins/tcp.h>
#include <tins/ethernetII.h>
#include <tins/dot3.h>
#include <tins/sll.h>
#include <tins/llc.h>
#include <tins/udp.h>
#include <tins/rawpdu.h>
using names... |
8c990783221df8346289faf86db445019e6f6b48 | ea201dae54f2ef5861c66fcc2eb329b25f9003b6 | xzbei/TSTPF | /code/TSTRecognizer.hpp | C++ | hpp | 1,068 | no_license | /*
* BTD.h
* BTD
*
* Created by Taehee Lee on 7/18/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#ifndef _TSTRECOGINZER_H_
#define _TSTRECOGINZER_H_
#include <math.h>
#include <cv.h>
#include <highgui.h>
#include <algorithm>
#include <vector>
#include <opencv2/core/core.hpp>
#include <... |
5525d5e19eb8acb4514e94d7e5d6ec30dfc603ef | 37142cf359961a0c211bdb8116a2bbb750d0bf9a | brycelelbach/nt2 | /modules/gsl_specfun/unit/scalar/gsl_sf_bessel_il_scaled.cpp | C++ | cpp | 2,482 | permissive | //////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
56b289b61e544d768ee03caf1c8027cb939e400b | d81c04c52cdabaadb4178013a239dd2a26fab372 | oberkampferic/voca | /bin/vocaGl/main.cpp | C++ | cpp | 2,294 | no_license | #include "main.hpp"
#include "openGl.hpp"
int openGlInterface::tastatur=TASTATUR_DEUTSCH;
int openGlInterface::activerAffichage=true;
Uint32 openGlInterface::start_time;
Uint32 openGlInterface::last_time;
Uint32 openGlInterface::current_time;
Uint32 openGlInterface::ellapsed_time;
string openGlInterface::s_Allemand;
s... |
9942bd846df872908c03cc83c569aec91c191ba8 | bf1bf6ea6c896cb4a7e30b63c2ed01359b4b17ff | jsjutzi/Student-Registration | /student.cpp | C++ | cpp | 2,599 | no_license | //
// student.cpp
// C867-Jack-Jutzi
//
// Created by Jack Jutzi on 12/15/20.
// Copyright © 2020 Jack Jutzi. All rights reserved.
//
#include "student.hpp"
#include "degree.hpp"
#include <string>
#include <vector>
#include <iostream>
using std::string;
using std::vector;
using std::cout;
using std::endl;
// Co... |
4dfd626ea6a7b3258a93700b848884f29f450bc5 | 7d87dd257fcf219a482e02715bf83a2a5abab684 | CS1103/unidad-2-semana-4-algoritmos-stl-Miguellamacarrasco | /Ejercicio1.cpp | C++ | cpp | 1,022 | no_license | #include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <algorithm>
int main()
{
std::string linea;
std::ifstream archivo("input.txt");
std::vector<int> vect;
std::getline(archivo, linea);
bool bandera = true;
while (bandera)
{
for (auto c... |
19e509aa490b5e0bb7ad555d9ab75881f7774d50 | cddb20dd54f7b62bcaf2822fe981fd0b42a823ef | MonoKelvin/BookStudyApp | /MainWindow.cpp | C++ | cpp | 9,155 | no_license | #include "MainWindow.h"
#include "ui_MainWindow.h"
#include "Http/HttpRequest.h"
#include "Utility/BookStudyAPI.h"
#include "Utility/Utility.h"
#include "Http/ILoginOperation.h"
#include "Widgets/PromptWidget.h"
#include "Widgets/AvatarWidget.h"
#include "Widgets/UserPageWidget.h"
#include "Widgets/BookViewWidget.h"
... |
1d49c55e5e4d8fd56e63913e7019837f49869924 | 8ec58425026793965b9c7ae25ee5b826df4f8bf3 | patrickhadlaw/RGLEngine | /programs/interface.cpp | C++ | cpp | 6,987 | no_license | // interface.cpp
#include "rgle.h"
glm::vec4 randomColor() {
return glm::vec4(
(float)(rand() % 255) / 255,
(float)(rand() % 255) / 255,
(float)(rand() % 255) / 255,
1.0
);
}
const float UI_TICK = 1.0f / 20.0f;
template<size_t N, typename Type>
class Stack {
public:
Stack() : Stack(Type{}) {
}
Stack(T... |
4163911c08b9b0d053f28428cff8c7fe64ca9106 | f4d68bd143cafa5401062e06afc1f4251f51c570 | xuanxx/Impala | /be/src/scheduling/backend-config.cc | C++ | cc | 4,232 | permissive | // 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... |
c625ecb4ad7b7e01217d77484739ce166cbe638d | 5fe0042a2debfdc972a7a99f97b68601e6c4ecad | tanqingkuang/LeetCode | /source/039_组合总和_normal/dp/interface.cpp | C++ | cpp | 3,809 | no_license | #include "../interface.h"
int upperArray(const void *a, const void *b)
{
return *(const int *)a - *(const int *)b;
}
int lowerNum(int* candidates, int candidatesSize, int target)
{
int idx = 0;
for (; idx < candidatesSize; idx++) {
if (candidates[idx] > target) {
return idx;
}
... |
8fd9eeedc53d41e392f3cdd2baf597072cb777c7 | 43f3a204bc703371396253ab6a1ddad6326d1724 | marcfp/proves | /error9.cpp | C++ | cpp | 806 | no_license | #include<iostream>
#include<stdlib.h>
#include <vector>
#include <string.h>
#include <limits>
using namespace std;
int main()
{
//detectar errors ;
/*
EX 5
vector<int>::iterator it;
int res = 7;
vector<int> v(10);
it=v.begin();
it=it+4;
it=v.insert(it,7);
cout << "Success!\n";
*/
//ex6
/*vector<int> v(10);
vecto... |
7979562d080697b36b7a5ccfad39948f7e45ce1d | 039846f79f4a3800fe37cb431452c904523f2493 | lvxin0805/apollo | /modules/planning/planning_base.cc | C++ | cc | 5,944 | permissive | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
2abf059238ae56b3a13583c7ab1f7e4364fa4d40 | 01ad56f20e7725cdcba6a8293bca7eb37647a5f1 | MandatoryMania/hifi | /interface/src/ui/overlays/Overlay.cpp | C++ | cpp | 6,472 | permissive | //
// Overlay.cpp
// interface/src/ui/overlays
//
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Overlay.h"
#include <NumericalConstants.h>
#include <RegisteredMeta... |
ea2dbe0e499895318b128db6f7f3cf6465bc30ce | 92ecdc558774536993bd67fb24792c75fe89fce6 | nurettin/libnuwen | /gluon.hh | C++ | hh | 6,608 | permissive | // Copyright Stephan T. Lavavej, http://nuwen.net .
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://boost.org/LICENSE_1_0.txt .
#ifndef PHAM_GLUON_HH
#define PHAM_GLUON_HH
#include "compiler.hh"
#ifdef NUWEN_PLATFORM_MSVC
#pragma once
#e... |
3eb0100124604d940d47249e7a37c49650b4c9e4 | 4c1b15223dc11abe14ab77685286a7ba337c7b6d | pavel-krivanek/PicoVGA | /vga_balloons/img/hotair.cpp | C++ | cpp | 129,556 | no_license | #include "include.h"
// format: 8-bit pixel graphics
// image width: 128 pixels
// image height: 165 lines
// image pitch: 128 bytes
const u8 HotairImg[21120] __attribute__ ((aligned(4))) = {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.