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 |
|---|---|---|---|---|---|---|---|---|
bc5adb3b743233a14041cfd972f00154824ab66f | ecd307e0b2eee273b0894f490bab792df05ddd71 | celalcakiroglu/Qt | /RigidBodyTranslationCompleted/dicCoded/platesizedialog.cpp | C++ | cpp | 2,661 | no_license | #include "platesizedialog.h"
#include "ui_platesizedialog.h"
PlateSizeDialog::PlateSizeDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::PlateSizeDialog)
{
ui->setupUi(this);
QVBoxLayout *vBox=new QVBoxLayout();
vBox->addWidget(createPlateDimGroup());
vBox->addWidget(createApplyOkBoxGroup()... |
b59d3cd449717a660b7cfb202a47144c44fca55d | 4a6ce07f91b832d03b2748eaea12fa56f6293b6a | mramirez7/CompetitiveProgramming | /books/competitive_programming/4-graphs/montesco_vs_capuleto.cpp | C++ | cpp | 1,272 | no_license | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
typedef vector <int> vi;
vector<set<int>> g;
vi vis;
int bfs(int v){
int flag = 1;
queue <ii> q;
q.push({v, 1});
vis[v] = 1;
int ans1 = 0;
int ans2 = 0;
while (q.size()){
int u = q.front().fi... |
10ef9f7e7c0522ffcc75f64b907f968dc43ca0b7 | f5bd8342ba538a3a006780d4467bdc0576073d1d | ccdxc/logSurvey | /data/crawl/git/new_hunk_3160.cpp | C++ | cpp | 520 | no_license | const char *email, unsigned long timestamp, int tz,
const char *message, void *cb_data)
{
const char *refname = cb_data;
if (verbose)
fprintf(stderr, "Checking reflog %s->%s\n",
sha1_to_hex(osha1), sha1_to_hex(nsha1));
fsck_handle_reflog_sha1(refname, osha1);
fsck_handle_reflog_sha1(refname, nsha1);
ret... |
e1bacec8c8211324586e4e5a05a4f32cf6a131b3 | be567226e6c054d2eac211703cf0c0136e56b697 | valentman/ls-cocos2d-x | /Learn/Classes/TouchEventTest/TouchEventTest.cpp | C++ | cpp | 1,478 | no_license | /*
* TouchEventTest.cpp
*
* Created on: May 24, 2013
* Author: leafsoar
*/
#include "TouchEventTest.h"
#include "cocos2d.h"
USING_NS_CC;
void TouchEventTestScene::runThisTest() {
CCLayer* layer = TouchEventTest::create();
addChild(layer);
CCDirector::sharedDirector()->replaceScene(this);
}
bool Touch... |
3921b90141df4304db0fb9708f7c1cfa4dfe4fa9 | 667447fed847152444aa68dfbb6be79902ffea54 | Symphonym/Saurobyte | /src/Saurobyte/Entity.hpp | C++ | hpp | 3,211 | permissive | #ifndef JL_ENTITY_HPP
#define JL_ENTITY_HPP
#include <unordered_map>
#include <memory>
#include <Saurobyte/IdentifierTypes.hpp>
#include <Saurobyte/Component.hpp>
namespace Saurobyte
{
typedef std::unique_ptr<BaseComponent> ComponentPtr;
typedef std::unordered_map<TypeID, ComponentPtr> ComponentBag;
typedef std::... |
39f12d7f067bacb5cf502054634555d234f109a8 | 0d0817c8b8bcf000354fdb3d9bec7aaff401a402 | tspires/personal | /assignments/Assignment4/hangman.cpp | C++ | cpp | 1,555 | permissive | #include <iostream>
#include <string.h>
short find(char[], char, short = 0);
using namespace std;
int main() {
//Get secret from user
string secretStr;
cout << "Please enter the secret. " << endl;
cin >> secretStr;
const int guessesAllowed = 5;
char guess;
bool isWon = false;
//Convert our se... |
2b6cf2dc2ab649f3ac0548de12b428f9bb84cc84 | dcd54771940720ffd94f88a6fdcffb3a16ed665d | Gamer2015/Openpp_old | /Sources/include/std/String.hpp | C++ | hpp | 209 | no_license | #ifndef OPENPP_STD_STRING_HPP_
#define OPENPP_STD_STRING_HPP_
#include <string>
namespace std
{
std::string to_string(const std::string& _string)
{
return _string;
}
}
#endif // OPENPP_STD_STRING_HPP_
|
8a3e8bb837cb719ff02b0acaac79184b7d9e573e | 6642fd2dfccab4070c544a9a9ad0f80160094997 | etyoshino/D3D | /my3d/MyTimer.cpp | C++ | cpp | 344 | no_license | #include "myTimer.h"
using namespace std::chrono;
MyTimer::MyTimer()
{
last = steady_clock::now();
}
float MyTimer::Mark()
{
const auto old = last;
last = steady_clock::now();
const duration<float> frameTime = last - old;
return frameTime.count();
}
float MyTimer::Peek()
{
return duration<float>(steady_clock::... |
7417df0246a6fcad252b9d30f53a2407b0434a75 | ee8c8dae7294339ca96f35825c2f01665cf82743 | Mitaka01-eng/CS104 | /4. Conditions/20311015/3. Nap2016.cpp/3. Nap2016.cpp.cpp | C++ | cpp | 837 | permissive |
// 3. Дължим данък към НАП за 2016
#include <iostream>
using namespace std;
int main()
{
// Променливи необходими за работата на програмата
float income; // Доход получен през ходината
float tax; // Дължим данък към НАП
// Потребителя въвежда данни за дохода си
cout << "Please enter your 2016 inco... |
d02c6ff8b48a0aa56c9ee6c60e7d32e953d12b6a | 1b5a4bd5915223a4b2a6ad80356132b7398e9035 | prolog/shadow-of-the-wyrm | /world/materials/include/Material.hpp | C++ | hpp | 844 | permissive | #pragma once
#include <string>
#include <memory>
#include "Colours.hpp"
#include "MaterialTypes.hpp"
class Material
{
public:
virtual ~Material() {};
// The type of the material
virtual MaterialType get_type() const = 0;
// The name of the material
virtual std::string get_name_sid() const =... |
481cd513317540b19e881c947535361c974da380 | 329549f856c9c03bb3cbbfc58fb11e9513b03f1f | den1s0v/dvcs-lab3 | /Kovalev.cpp | C++ | cpp | 1,232 | no_license | #include "spinboxdelegate.h"
SpinBoxDelegate::SpinBoxDelegate(QObject *parent) : QItemDelegate(parent) {
}
SpinBoxDelegate::~SpinBoxDelegate() {
}
QWidget* SpinBoxDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const {
QSpinBox *editor = new QSpinBox(paren... |
3595c69d5c6019cfddc8a67c37f5a19980b1e246 | 87c9311c55d46517632c7eebc16758dbca727e08 | jharinkesh/cplusplus | /basic c programs/POWER_FU.CPP | C++ | cpp | 315 | no_license | // program for calc power using function //
#include<stdio.h>
#include<conio.h>
int power(int n,int p)
{
int i=1;
while(p>0)
{
i=i*n;
p--;
}
return i;
}
void main()
{
int n,r,p;
clrscr();
printf("\n enter the number & its power ");
scanf("%d%d",&n,&p);
r=power(n,p);
printf("\n the result is %d ",r);
getch();
} |
6ed453d21ce8a9512853a85ff9b9b39eb14145d8 | 2afc7378bd7415da7ed9059e6f56e297f47e1016 | undernones/IXWebSocket | /ws/cobra_publisher/IXCobraConnection.cpp | C++ | cpp | 14,483 | permissive | /*
* IXCobraConnection.cpp
* Author: Benjamin Sergeant
* Copyright (c) 2017-2018 Machine Zone. All rights reserved.
*/
#include "IXCobraConnection.h"
#include <ixcrypto/IXHMac.h>
#include <algorithm>
#include <stdexcept>
#include <cmath>
#include <cassert>
#include <cstring>
namespace ix
{
TrafficTracker... |
134415fec760960389b773d58d22ee88a97220c2 | a9250b564453d25390b878727004e13d6eb941ad | asiarabbit/BINGER | /etf/src/TAT0_0.cxx | C++ | cxx | 3,340 | permissive | ///////////////////////////////////////////////////////////////////////////////////////
// Data Analysis Code Project for the External Target Facility, HIRFL-CSR, @IMP //
// //
// BINGER/inc/etf/TAT0_0.C //
// TAT0_0.C -- source file for class TAT0_0 //
// ... |
993767f4beae5ab08143c26d919dcde7dd56db87 | ba91fb77d8ce2a2ac5eb367d973c46ec93ca5504 | imikejackson/SIMPL | /Source/SIMPLib/REST/V1Controllers/PreflightPipelineMessageHandler.cpp | C++ | cpp | 4,478 | permissive | /* ============================================================================
* Copyright (c) 2017-2019 BlueQuartz Software, LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redist... |
dcbdca62f4cbdcb4151140114f3b65d77805ac21 | cb3622fa4f9a8f98a6c05bab18c9da9533697358 | mhammond/pywin32 | /com/win32com/src/extensions/PyIConnectionPoint.cpp | C++ | cpp | 5,368 | permissive | #include "stdafx.h"
#include "PythonCOM.h"
// @doc
PyIConnectionPoint::PyIConnectionPoint(IUnknown *pdisp) : PyIUnknown(pdisp) { ob_type = &type; }
PyIConnectionPoint::~PyIConnectionPoint() {}
/* static */ IConnectionPoint *PyIConnectionPoint::GetI(PyObject *self)
{
return (IConnectionPoint *)PyIUnknown::GetI(se... |
d30125a8132ca6fcffbefd856ffc85d75584822c | a2941bb41b4d781555328dc1421164a29210fef6 | besoft/MAF2 | /VME/mafVMEOutputPolyline.cpp | C++ | cpp | 4,842 | no_license | /*=========================================================================
Program: MAF2
Module: mafVMEOutputPolyline
Authors: Marco Petrone
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; witho... |
e85b3dcc828ae9241238aa40ee570337b470a8b8 | 66b88ffaf8289a54c962f0d9a30705d6634d4b84 | jamiejackherer/nghttp2 | /src/shrpx_client_handler.cc | C++ | cc | 41,616 | permissive | /*
* nghttp2 - HTTP/2 C Library
*
* Copyright (c) 2012 Tatsuhiro Tsujikawa
*
* 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 ri... |
c38a384f7ba77854261e4532bfa4b3c61a1e7391 | 6fbbd2b587b50b5a23d8894e9bd5a1bab47b643f | developerark/Cache | /Cache/DIRCache.hpp | C++ | hpp | 1,893 | no_license | //
// DIRCache.hpp
// vision
//
// Created by Aswin Raj Kharel on 9/2/20.
//
#ifndef DIRCache_hpp
#define DIRCache_hpp
#include <stdio.h>
#include "LRUCache.hpp"
#include <string>
#include <filesystem>
#include <fstream>
#include <vector>
#include <sstream>
#include <iostream>
namespace fs = std::__fs::filesystem... |
02774f4814f0ec4a64930dcf9fb1ebda6ba8e65b | e693a35ebddd499adea92cec6a64bf933be3ceef | TarsCloud/TarsCpp | /util/src/tc_gzip.cpp | C++ | cpp | 4,724 | permissive | /**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a ... |
1615dee2a5e92f475582d95f9753979c13f3a585 | 6bd5bbdf265e88840dcde0bfa713800592904c01 | asifjoardar/solving-oj-problems | /codeforce/B/B. Reach Median.cpp | C++ | cpp | 385 | no_license | #include<bits/stdc++.h>
using namespace std;
#define ll long long
main()
{
ll n,m,sum=0,i,x;
cin>>n>>m;
ll a[n];
for(i=0;i<n;i++)
cin>>a[i];
sort(a,a+n);
x=(n/2);
sum=abs(m-a[x]);
for(i=0;i<x;i++){
if(a[i]>m)
sum+=a[i]-m;
}
for(i=x+1;i<n;i++){
... |
a477f8f1ac06007aee56023973c54293c78bdcc2 | 39d117e3a96119a0398febde2449dedfdc2c7ec2 | rverma870/DSA-practice | /CSES ques/introductory/GridPaths.cpp | C++ | cpp | 1,325 | no_license | #include<bits/stdc++.h>
using namespace std;
string s;
bool a[7][7];
int ans;
bool isvalid(int r , int c)
{
if(a[r][c])
return false ;
else if( r<0 or r>6)
return false ;
else if( c<0 or c>6)
return false ;
return true ;
}
void solve(int r, int c, int i)
{
if(r==6 && c==0 && i==48)
{
... |
8d75c059bee6cfb9565741dae45f0efabcd70388 | 16ea284c2f0386ecf6f3a37d02f63097ba086c4e | ManuelsPonce/ACC_ProgrammingClasses | /COSC1337-IntroToProgramming2_(OOP)/FriendObjectPointers.cpp | C++ | cpp | 1,032 | no_license | #include <iostream>
#include <fstream>
using namespace std;
class Friend
{
private:
string name;
int age;
string food;
public:
string getName();
int getAge();
string getFood();
void setName(string);
void setAge(int);
void setFood(string);
};
string Friend::getName()
{ return name; }
int Friend... |
f7ae3e4f8c6e76838e16aa42b27e7173b7937223 | 1ab04c27fb0ae6660d8cb5a865d8dbac4b8cd006 | dbremner/matthew_van_eerde_blog_examples | /shellsort/shellsort/main.cpp | C++ | cpp | 4,812 | no_license | // main.cpp
#include <windows.h>
#include <stdio.h>
#include <shlwapi.h>
#include <stdlib.h>
#include <search.h>
int __cdecl shellsort(const void *a, const void *b);
struct line {
line() : text(nullptr), next(nullptr) {}
LPWSTR text;
line *next;
};
void DeleteLines(line *p);
struct chunk {
chunk() ... |
0a42c227a251be3df252dc79ae91a71e5c8ca22a | 7416d30d267aa552b7c25be49f5f5b9825573f8f | diegonieto/visualmatrixmultiply | /NumericMatrix.hpp | C++ | hpp | 546 | no_license | #ifndef NUMERIC_MATRIX_H
#define NUMERIC_MATRIX_H
#include "Matrix.hpp"
template <typename T>
class NumericMatrix : public Matrix<T>
{
public:
NumericMatrix(const int nrows, const int ncols) :
Matrix<T>(nrows,ncols) {}
void setZero();
};
template <typename T>
void NumericMatrix<T>::setZero()
{
fo... |
cf85707238f3b4c0711cfe60af23fae599fc0845 | edfd421d85329be98fb80ea739cb5dbae931d689 | Sirokujira/llvm | /lib/Target/Mangler.cpp | C++ | cpp | 8,726 | permissive | //===-- Mangler.cpp - Self-contained c/asm llvm name mangler --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
d6ef58a1c2c4414d0bd3a88c2340e34bb3c72b74 | 1be9b5af095877b26c1b4f9d54fafcb5e08aaa9c | MQChen211/coresoftware | /offline/framework/fun4all/Fun4AllFileOutStream.cc | C++ | cc | 2,884 | no_license | #include "Fun4AllFileOutStream.h"
#include "Fun4AllServer.h"
#include <Event/Event.h>
#include <Event/oBuffer.h> // for oBuffer
#include <Event/olzoBuffer.h>
#include <phool/phool.h>
#include <cstdio> // for snprintf
#include <cstdlib> // for exit
#include <cstring>
#include <fcntl.h>
#in... |
af033e55b39076e7ab20afbeb92b2c37bb613fee | a9a1db99c91591b347d2bbaeba03431b7fc06ae3 | AAlab1819/DavidKoswari-01082170028 | /Week5 - BST/Weekly_submissions_4C_Registrations System.cpp | C++ | cpp | 421 | permissive | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
int x;
cin>>x;
string xy[32];
for(int i=0; i<x;i++)
{
cin>>xy[i];
}
int y=0;
for(int i=0;i<x;i++)
{
if(xy[i] == xy[i-(y+1)])
{
cout<<xy[i]<<1<<endl;
... |
4860ee0193c0fecf691c5d5573a9293b4d8dff85 | 9dbf01f407c0ba02810049997cdfc8ad53a2a622 | wintonpc/pbr | /ext/pbr_ext/pbr_ext.cpp | C++ | cpp | 9,264 | permissive | #include <stdio.h>
#include <cstdint>
#include <iostream>
#include "pbr_ext.h"
#include "model.h"
#include "encode.h"
#include "common.h"
#include "ss.h"
#include "types.h"
#include "read.h"
#include "write.h"
using namespace std;
int32_t max_field_num(VALUE rb_flds);
wire_t wire_type_for_fld_type(fld_t fld_type);
M... |
26e5aea2fb961eae913496a7f7f6e2b43553b030 | 24fecf7468afa20d24a0b05787098d003c095311 | msr00t/reverse_engineering | /Unlocker-Reverse/unlocker/unlocker/unlockerclass.cpp | C++ | cpp | 4,488 | no_license | #include <windows.h>
#include "unlocker.h"
OperateFileClass* OperateFileClass::Initial()
{
IsFiletoUnlockUnicode=FALSE;
IsListOfFiletoUnlock=FALSE;
IsOutputLog=FALSE;
IsNotShowGUItoUnlock=FALSE;
Operation=FILENONE;
Command=NULL;
ObjectName=NULL;
return this;
}
int OperateFileClass::GetOperateFileParamFromCmdL... |
208fb10766b8c70fca982397977f7987151cccf2 | 32eb29a0cd7cfa943aa5a6a6368a8715f5b319ae | peperontino39/commentgame | /src/Game/Comment/CommentCardinalSystem/CommentCardinalSystem.cpp | C++ | cpp | 744 | no_license | #include "CommentCardinalSystem.h"
#include "../CommentCall.h"
#include "../CommentSystems/CommentSystems.h"
struct CommentCardinalSystem::_m_CommentCardinalSystem
{
CommentSystems::CommentFeeling feelings;
CommentSystems::CommentSystem systems;
};
std::shared_ptr<CommentCardinalSystem::_m_CommentCardinalSy... |
beda3ddd5f02e1e11d2acb9418e3744424ff51ad | ed223b3834df737c1e2245d75241ac6271ea1668 | vahehakob/cplusplus-snippets | /clock.cpp | C++ | cpp | 865 | permissive | #include <iostream>
#include <chrono>
#include <ctime>
#include <thread>
// the function f() does some time-consuming work
void f()
{
volatile double d;
for(int n=0; n<10000; ++n)
for(int m=0; m<10000; ++m)
d += d*n*m;
}
int main()
{
std::clock_t c_start = std::clock();
auto t_star... |
15b7c9c3caf11b4ee3cc88ea57cf3a1fa2ee9a3b | 8776957dc3b0e838b6adce58da8b50b5ef9a1d2b | adammb86/ProgramBukuCdanCPP | /Bahasa C++/Bab 11/Program 11.8/mallocfree.cpp | C++ | cpp | 790 | no_license | //Program 11.8
//Nama File: mallocfree.cpp
//Program penggunaan malloc dan free C++
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int *bil;
int i,jumlah_bil;
cout<<"Masukkan jumlah data : ";
cin>>jumlah_bil;
//penugasan pointer d... |
68935944c7f40d1960f402694fc51869a5e9002c | de29b47ef11826c6d2030eb6204a9d891a54fd9f | cdave1/hdk | /src/hdk/ui/hdFontPolygon.cpp | C++ | cpp | 15,670 | permissive | /*
* Copyright (c) 2014 Hackdirt Ltd.
* Author: David Petrie (david@davidpetrie.com)
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event will the authors be held liable for any damages arising from the
* use of this software. Permission is granted to anyone to use this so... |
6bf896f566e7f65aa57f0397c55d4c3b5141d07d | c36e755b471d321aa9031838c82e56db834ac734 | DanielNeville/cbmc | /src/goto-cc/as_mode.cpp | C++ | cpp | 8,547 | permissive | /*******************************************************************\
Module: Assembler Mode
Author: Michael Tautschnig
\*******************************************************************/
/// \file
/// Assembler Mode
#ifdef _WIN32
#define EX_OK 0
#define EX_USAGE 64
#define EX_SOFTWARE 70
#else
#include <sysexit... |
8a297a945350a34c6aba46f4719a0bd051249352 | e18b824b178c150e82808c81e8e062e0d85a93c1 | crazykeyboard/coral | /src/lua/generated/IScripted_Reflector.cpp | C++ | cpp | 3,493 | permissive | #include <lua/IScripted.h>
#include <co/IDynamicServiceProvider.h>
#include <co/IType.h>
#include <co/IMethod.h>
#include <co/IField.h>
#include <co/IllegalCastException.h>
#include <co/MissingInputException.h>
#include <co/IllegalArgumentException.h>
#include <co/reserved/ReflectorBase.h>
#include <memory>
#include <s... |
ab546e5d62d9b72993558e93a5f941c37be04d7a | 23dcd4f8452cad6ac39c52fda1f1280be12eb87a | visualfc/oto | /internal/oboe/oboe_flowgraph_ManyToMultiConverter_android.cpp | C++ | cpp | 1,616 | permissive | /*
* Copyright 2018 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 applica... |
564aaac31ce3908b8574af47d03b2a6a8a6fe3a8 | 3e3200eb62643180c574a67f567c179f2424f483 | bosiojoh/cse471_project_1 | /Step5/Synthie/AR.cpp | C++ | cpp | 1,015 | no_license | #include "stdafx.h"
#include "AR.h"
CAR::CAR()
{
m_duration = 0.1;
m_attack = 0.05;
m_release = 0.05;
}
CAR::~CAR()
{
}
void CAR::Start()
{
m_source->SetSampleRate(GetSampleRate());
m_source->Start();
m_time = 0;
}
bool CAR::Generate()
{
// Tell the component to generate an audio s... |
8cbb417f403c8f9649ad5587804ef453ac4db843 | e08fbcd1be77b6bba53844799bdf6c2fcbf50cca | shuaihuzhou/openglExample | /example10/opengl/src/cpp/demo.cpp | C++ | cpp | 1,253 | no_license | #include "glew.h"
#include <stdlib.h>
#include "glut.h"
#include <iostream>
#include <time.h>
#include "ShZshapeManager.h"
using namespace std;
ShZshapeManager sm;
void createShape();
void drawShape();
void clearShape();
void animation();
void display();
void reshape(int w,int h);
void init();
//int cnt =0;
int main(... |
2b5e5b97d3a87dae97dcda34834edd7cbfee2a0a | b2093076e862160c9116b5360816722ea4f26429 | wgnet/wds_qt | /qtdeclarative/tests/auto/quick/scenegraph/tst_scenegraph.cpp | C++ | cpp | 20,329 | permissive | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... |
34c0aaa8a6c279704528538dcef904df9318ca27 | b5e9e83982b09c8574a3b8b8de8eb4416ff61f46 | VB6Hobbyst7/AutodeskMachineControlFramework | /Drivers/BuR/Implementation/libmcdriver_bur_driver_bur.hpp | C++ | hpp | 10,886 | permissive | /*++
Copyright (C) 2020 Autodesk 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 conditions and the ... |
ee51c8e8069b1e0aed93cde1705ec448d90d0a79 | ffa7c441855c82be36f98639e3741613d7e98242 | EnEff-BIM/EnEffBIM-Framework | /SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimOrganization.cxx | C++ | cxx | 9,514 | permissive | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... |
a1112496cb4c5ed0747e355b733a78215eddef63 | 66813447d2c232be1848cc89c9cf0ed16c448e03 | Bruteforceman/cp-submissions | /codeforces/1086/B.cpp | C++ | cpp | 387 | no_license | #include "bits/stdc++.h"
using namespace std;
int deg[100010];
int main(int argc, char const *argv[])
{
int n, s;
scanf("%d %d", &n, &s);
for(int i = 1; i < n; i++) {
int p, q;
scanf("%d %d", &p, &q);
deg[p] += 1;
deg[q] += 1;
}
int leaf = 0;
for(int i = 1; i <= n; i++) {
leaf += (deg[i] == 1);
}
dou... |
779ad4f706e8b43fa071050c936c462e25c101b0 | 0ad94f9c4acb96a7a13dd30dec09b329a8f8bfa7 | sub307/XBI2-core | /src/test/versionbits_tests.cpp | C++ | cpp | 20,384 | permissive | // Copyright (c) 2014-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.
#include <chain.h>
#include <versionbits.h>
#include <test/setup_common.h>
#include <chainparams.h>
#include <validation.h>
#... |
0713ea95d3b504af7e6a3a9e7d7142bc6d6b4831 | 3e8e096db134215620908831450bdf32a5520751 | carmethene/prototype | /Scoreboard.cpp | C++ | cpp | 12,800 | no_license | //------------------------------------------------------------------------------
// File: Scoreboard.cpp
// Desc: Manages display, entry and storage of high scores
//
// Created: 26 September 2005 12:12:30
//
// (c)2005 Neil Wakefield, Lionhead Studios Ltd
//------------------------------------------------------... |
2ffd736fc39234ef3a23a2b18d6aa7e6ea3da11a | 10feb6af758ecb79f0de801b6fa81135695bc770 | chvillap/URI | /4_data_structures_and_libraries/2136.cpp | C++ | cpp | 1,209 | no_license | // https://www.urionlinejudge.com.br/judge/en/problems/view/2136
#include <iostream>
#include <string>
#include <set>
using namespace std;
bool compare1(pair<string, string> const &p1, pair<string, string> const &p2)
{
if (p1.second != p2.second)
return p1.second > p2.second;
return p1.first < p2.fi... |
797ba127854adaedd4769c8749ae425d76946ebf | d8d2fccad71a90ff1f50a564582a9d1575cb2db9 | julia-berger/FieaGameEngine | /PhysicsAndCollisions/PhysicsEntity.cpp | C++ | cpp | 4,937 | no_license | #include "pch.h"
#include "PhysicsEntity.h"
#include "GameTime.h"
#include "WorldState.h"
#include "Game.h"
#include <math.h>
#include "CollisionDefines.h"
using namespace std::chrono;
namespace FieaGameEngine
{
RTTI_DEFINITIONS(PhysicsEntity);
PhysicsEntity::PhysicsEntity()
: Entity(PhysicsEntity::T... |
9ab6c4e8bfe043d8d4527e46fe03e71945489100 | 6bc01e067f4430c771e031cb615bf93ac39cd778 | Piotrek321/Hackerrank | /Algorithms/Warmup/Staircase.cpp | C++ | cpp | 734 | no_license | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#inc... |
cc3a36feb2d174ced7b16b2d4d03b174341379bf | ec575d9fe0d40f5c37d36b126ea933355fdd1c66 | arsmx/ITMO | /algorithms and data structures 2nd sem/12/A-subsequence.cpp | C++ | cpp | 1,876 | no_license | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
long long n, max_count = 0, max_pos;
cin >> n;
vector<long long> list(n), count(n, 1), prev(n, -1), result;
for (long long i = 0; i < n; i++) {
cin >> list[i]; // вводим
if (n == 1) { // если о... |
1fd0789272566588bcac4bebe7badb821cf1ef40 | 9a73cba776d8625cd5a7c08684e1baf0ca22f5f4 | EleazarLopezOsuna/MIA-Proyecto1 | /cm_edit.cpp | C++ | cpp | 220 | no_license | #include "cm_edit.h"
cm_edit::cm_edit()
{
}
void cm_edit::ejecutar(){
if(path == "" || cont == ""){
cout<<"Los parametros obligatorios no se han completado";
}else{
//Agregar ejecucion
}
}
|
ff4297847dc6ded29956e56a841ddc8ec868f65a | 566dd5809f2d5f9bcf11b9ef7e762e720d390bb3 | israel-Liu/brick | /src/brick/memory/unsafe_shared_memory_region.cc | C++ | cc | 2,296 | no_license | // Copyright 2018 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 "brick/memory/unsafe_shared_memory_region.h"
#include <utility>
#include "brick/memory/shared_memory.h"
namespace base {
// static
UnsafeShar... |
7c4cdc007af7664abc396a7db08c420218f4118c | ddfcf6712aeb36f3de134e2bf3fbd818c9a98be3 | uel-dataexchange/Opencascade_uel | /src/XmlMFunction/XmlMFunction_FunctionDriver.cxx | C++ | cxx | 3,423 | no_license | // File: XmlMFunction_FunctionDriver.cxx
// Created: 04.09.01 14:47:31
// Author: Julia DOROVSKIKH
// Copyright: Open Cascade 2001
// History:
#include <XmlMFunction_FunctionDriver.ixx>
#include <XmlObjMgt.hxx>
#include <TFunction_Function.hxx>
#include <TDF_Tool.hxx>
IMPLEMENT_DOMSTRING (Gui... |
dc2fe927dfd9eb081b986c06c2dc3a953dea4778 | f7d73adbaa31fca7f836b9cc9eeddc6c0ba4f016 | kyx0r/FA_Patcher | /boost_lib/boost/hana/fwd/sort.hpp | C++ | hpp | 3,451 | permissive | /*!
@file
Forward declares `boost::hana::sort`.
@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_FWD_SORT_HPP
#define BOOST_HANA_FWD_SORT_HPP
#include <boost/hana/config.h... |
e6d3be576dd77e3060b7b8dc48b0a450144558d6 | 1a5fc261ad1b863b44dbe457c1b490046c8197b5 | TakiKauser/previously-solved-problems-of-different-OJs | /Cinema.cpp | C++ | cpp | 527 | no_license | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n, c, k, siz = 0, cntr = 0, mx = 0;
string s;
cin >> n;
while(n--) {
cin >> c >> k;
cin >> s;
siz = s.size();
cntr = 0;
mx = 0;
for(int i = 0; i < siz; i++){
if(s[i] == '0') {
... |
8c0f0c5b68c0649d553b5331ad88dffdd96a700f | e18eb1bd0ef0d6c6835426f3ba5fa9b4ebb8891f | ivan-kits/skia-opengl-emscripten | /src/chromium/gen/gen_combined/third_party/blink/renderer/bindings/modules/v8/v8_idb_object_store_parameters.cc | C++ | cc | 5,169 | permissive | // 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.
// This file has been auto-generated from the Jinja2 template
// third_party/blink/renderer/bindings/templates/dictionary_v8.cc.tmpl
// by the script code... |
81c382bb59cf9c41f0d0b76e64468478c5257781 | 33245e7484ba8c7d0a3c554c5d04370ed3b04ccf | econsystems/rtabmap | /corelib/src/util3d_filtering.cpp | C++ | cpp | 61,119 | permissive | /*
Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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
... |
817a79c8549d948f735541a6ba7169017023311e | 5fa8bf2bafe2253f831de0a1889d6cc3435c8cf7 | kthompson/qqz | /Code/Game/GameDll/GameCVars.cpp | C++ | cpp | 105,271 | no_license | /*************************************************************************
Crytek Source File.
Copyright (C), Crytek Studios, 2001-2004.
-------------------------------------------------------------------------
$Id$
$DateTime$
-------------------------------------------------------------------------
Hist... |
e0d569356ec80e96dda7f6a0c980cdb6c5f905dc | aa95e5dbf570bddd434e1110f557e79639e489d3 | parkheeyoung/grpc_cb | /src/cpp_cb/server/server_method_call_cqtag.cc | C++ | cc | 2,225 | permissive | // Licensed under the Apache License, Version 2.0.
// Author: Jin Qing (http://blog.csdn.net/jq0123)
#include "server_method_call_cqtag.h"
#include <google/protobuf/message.h> // for Message
#include <grpc_cb/service.h> // for Service
#include <grpc_cb/impl/call.h> // for Call
#include <grpc_cb/impl/completion_qu... |
43aaccfe35a2ee573e71339a9d7c3afade45a7f4 | c458dd0f0c22c9b3f3c040d3d881344b517278b7 | gurbain/Inspect_sensor_fusion | /orf.cpp | C++ | cpp | 15,868 | permissive | /*!
* \file orf.cpp
* \author Gabriel Urbain <gurbain@mit.edu> - Visiting student at MIT SSL
* \date July 2014
* \version 0.1
* \brief Sources for optical range finder class
*
* License: The MIT License (MIT)
* Copyright (c) 2014, Massachussets Institute of Technology
*/
#include "orf.h"
using namesp... |
e2f4d7cf4c4925b6122e4fcd9bda29ad8baf3ac3 | 469ab0462ee06878b25260ae4499177df1b2055b | ConnectedVision/connectedvision | /core/src/Module/Control/stubs/Stub_ModuleDescription.cpp | C++ | cpp | 15,347 | permissive | /**
* Connected Vision - https://github.com/ConnectedVision
* MIT License
*/
// auto-generated header by CodeFromTemplate - Connected Vision - https://github.com/ConnectedVision
// CodeFromTemplate Version: 0.3 alpha
// stubs/Stub_ModuleDescription.cpp
// NEVER TOUCH this file!
#include <utility>
#include <rapidjson... |
7ad42e9c4e30be92f61cf1873124908310e7c9ca | a4a1c72b89b79184edd0669e408f36d3ffe9eb23 | mganahl/MPSTools | /src/BlockTensor.hpp | C++ | hpp | 30,508 | no_license | /*
* BlockMatrix.h
*
* Created on: 09.03.2011
* Author: martinjg
*/
#ifndef BLOCKTENSOR_H_
#define BLOCKTENSOR_H_
#include "../boost_typedefs.hpp"
#include <map>
#include <iostream>
#include "keyTypes.hpp"
#include "tensormap.hpp"
#include "utilities.hpp"
#include "../blas/blasroutines.hpp"
#include <rando... |
4cc9579da322a0405cef8a51f24bdd868db4b78b | 2adfe93f7c84c42872a8bbdbb5e756785130a643 | Iivanna/UP | /HomeWork1/9Task.cpp | C++ | cpp | 260 | no_license | # include <iostream>
using namespace std;
int main ()
{
//9 Task
int number;
cin >> number;
int digitCount = 0;
while (number < 10 && number >30000) {
digitCount++;
number /= 10;
}
cout << digitCount << endl;
system("pause");
return 0;
}
|
fdabd1a05e6883168e108de0b48a098d3b1850a8 | abfd2e0f28fb430bc5be50783b132a3cd018858e | wyxmails/MyCode | /1_leetcode/substrWithConcaAllW.cpp | C++ | cpp | 1,419 | no_license | #include <iostream>
#include <string>
#include <vector>
#include <map>
using namespace std;
/*Substring with Concatenation of All Words
You are given a string, S, and a list of words, L,
that are all of the same length.
Find all starting indices of substring(s) in S
that is a concatenation of each word i... |
8bbd3bcbe22a3187588a953c04ca87f24c91621f | 7025f7d854ec641dabf19437d64847392b429d5e | apache/openoffice | /main/sc/source/ui/inc/colrowba.hxx | C++ | hxx | 3,100 | 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... |
709d050f9d693fc773cf05b0b215e144fc64f147 | 93ace496a0b986cd106c680cdfc1cd8215443300 | Gold-miners-xu/Learn-language | /20年6月/cleraPubChar/cleraPubChar/clearPubChar.cpp | C++ | cpp | 352 | no_license | #include<iostream>
#include<string>
using namespace std;
int main() {
string s1;
string s2;
getline(cin, s1);
getline(cin, s2);
string::iterator it = s2.begin();
while (it != s2.end()) {
char tmp = *it;
size_t f;
while (1) {
f = s1.find(tmp);
if (f == string::npos)
break;
s1.erase(f, 1);
}
... |
c133df934fc726489267d877c14a499e656b74ee | 3449579cbb21b13a1cb809595790fefda3252c35 | Braveboy04/myLearn | /step3/stl/myTest/container/stack/stack.cpp | C++ | cpp | 288 | no_license | #include <iostream>
#include <stack>
using namespace std;
void test()
{
stack<int> s;
for (int i = 0; i < 10; i++)
{
s.push(i);
}
while (!s.empty())
{
cout << s.top() << endl;
s.pop();
}
cout << "size = " << s.size() << endl;
}
int main()
{
test();
return 0;
}
|
36afe6f31bcb3345d30df2de6be2a0fa964fdd10 | aca4b472fc55f1e790d2881c9d6f45297eeb2eb0 | calypsodevs/calypso | /src/qt/bitcoingui.cpp | C++ | cpp | 58,650 | permissive | // Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2018 The CALYPSO developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "bitcoingui.h"
#inc... |
d24e9e2f13bd59ea5f6921376bb9341bb56cbb11 | b2c0bb99d44baaef73cebabab68dac8b5c80a6c4 | pingdynasty/RebelTechPatches | /morphing/MorphMagusPatch.hpp | C++ | hpp | 8,467 | no_license | #ifndef __MorphMagusPatch_hpp__
#define __MorphMagusPatch_hpp__
#include "MonochromeScreenPatch.h"
#include "Envelope.h"
#include "WTFactory.h"
#include "VoltsPerOctave.h"
#include "MonochromeAudioDisplay.hpp"
#define baseFrequency (20) /* starting frequency of first table */ // c1 = 32.7 Hz
#include "wavetables/s... |
f630ed05c8025b095bc1eec1c1b6fc5320a4a0a1 | 114bb86c71b48df3f4859fd6f254acc17d518e95 | danachung3/cs432 | /proj2/finaltest2.2.cc | C++ | cc | 458 | no_license | #include <iostream>
#include <stdio.h>
#include "vm_app.h"
using namespace std;
int main()
{
char *p;
p = (char*) vm_extend();
for (int i = 0; i < 10; i++){
p[i] = 'd';
}
char *q;
q = (char*) vm_extend();
for (int i = 0; i < 10; i++){
q[i] = 'e';
}
char *r;
r = (char*) vm_extend();
for ... |
982964c5cdd48ada2f575f133f32d2c35218e588 | c10239b7b7c93e9b80e9da59207b0371b30e1147 | intel/compute-runtime | /opencl/source/helpers/surface_formats.cpp | C++ | cpp | 13,444 | permissive | /*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "surface_formats.h"
#include "shared/source/gmm_helper/gmm_lib.h"
#include "shared/source/helpers/array_count.h"
#include "opencl/source/api/cl_types.h"
#include "opencl/source/helpers/cl_validators.h"
#include "opencl... |
d2454056015bec8806960d3bd086995ab323a886 | e986ca7119a6468a07b040bdeab8beee0a25aca7 | megsputra/Beginning-Cpp | /HW3_A.cpp | C++ | cpp | 3,017 | no_license | /**
PART A
A movie theater keeps 20 percent of the gross box office profit. The remainder goes to the movie distributor.
Write a program that calculates a theater’s gross and net box office profit for a night and one movie.
The program asks for the name of the movie, and how many adult and child tickets were sol... |
6a018b86c6878cb95a33c497e024fcaf48f9b2e5 | f3abf9a6b75460645158869e663ea692cf4e439b | 20SecondsToSun/Funces | /src/controller/LeapController.cpp | C++ | cpp | 4,481 | no_license | #include "LeapController.h"
using namespace std;
using namespace ci;
using namespace ci::app;
using namespace leapGestures;
using namespace LeapMotion;
LeapController LeapController::LeapControllerState;
void LeapController::Setup()
{
resetInitParams();
if (leapDevice && leapDevice->isConnected()) return;
le... |
9b36ad00d74f62e77083253c38b119843b2b3199 | 20826bbfd0f2dada3e288b7ffc212f7e61a9c0a0 | wangzhenGitHup/cocos2d-xGame | /cleanSpaceGameTest/Classes/SelectLayer.cpp | C++ | cpp | 2,499 | no_license | #include"SelectLayer.h"
#include"global.h"
#include"GameLayer.h"
#include"SettingLayer.h"
#include"SimpleAudioEngine.h"
using namespace CocosDenshion;
USING_NS_CC;
CCScene* SelectLayer::scene()
{
CCScene* scene = CCScene::create();
SelectLayer* layer = SelectLayer::create();
scene->addChild(layer);
return scene;
... |
5b87fe54e3012c0fad682d29acfd915181c05bbe | e03c510a337a122e54f56c22ed942f0e8e70aaee | Mag357num/TBDR | /Src/D3D12MiniLibrary/Engine/ShaderComponent/ShaderCluster.cpp | C++ | cpp | 1,632 | no_license | #include <wrl.h>
#include <vector>
#include <d3dcommon.h>
#include <string>
#include <d3d12.h>
#include <algorithm>
#include "ShaderCluster.h"
ShaderCluster::ShaderCluster()
{
}
ShaderCluster::~ShaderCluster()
{
_vs.Reset();
_ps.Reset();
_gs.Reset();
_ds.Reset();
_hs.Reset();
}
void ShaderCluster::SetVS(Micro... |
9b6de242bef6ee98f6f9f84d80762572539ee325 | e4cf5c722b61e6d42fcb5042574dcdd551a33c33 | jjzhang166/WinNT5_src_20201004 | /NT/drivers/storage/wmiprov/vss/vsswmi.cpp | C++ | cpp | 11,004 | no_license | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1999-2000 Microsoft Corporation
//
// Module Name: vsswmi.cpp
//
// Implementation of the provider registration and entry point.
//
// Author: MSP Prabu (mprabu) 04-Dec-2000
// Jim Benton (jb... |
b70e507cf08f5da6c6b9c1649b52e6c41aaa8c94 | 8e68855fd8a0ae06f47b7e74fba7a00803cbdf58 | Zszywaczyk/NeonAge | /cube.cpp | C++ | cpp | 691 | no_license | #include "cube.h"
#include <iostream>
using namespace std;
Cube::Cube()
{
m_name = "cube";
}
void Cube::init()
{
//m_mesh.generateCube(1.0f,1.0f,1.0f);
m_mesh = CMesh::m_meshes["cube"];
scale = QVector3D(1.0f, 1.0f, 1.0f);
m_radius = 0.5f;
m_name = "cube";
}
void Cube::render(GLWidget* glwid... |
3463f82586b30600a5cd6cfe1819811b42d839eb | 7243b07df076ffd922ffc431d41a0065745938a2 | 2bite/ARK-SDK | /SDK/ARKSurvivalEvolved_DinoCharacterStatusComponent_BP_Tropeognathus_functions.cpp | C++ | cpp | 1,324 | permissive | // ARKSurvivalEvolved (332.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DinoCharacterStatusComponent_BP_Tropeognathus_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------... |
13d3db6a0fb1848b4c8b2ed73ca6a1439d1ccd7d | f0b5562b07badf2e392099f174e9cc328f372512 | kunhuicho/crawl-tools | /codecrawler/_code/hdu2084/8420385.cpp | C++ | cpp | 455 | no_license | #include <stdio.h>
int f[102][102];
int main()
{
int C, n, i, j;
scanf("%d",&C);
while(C--)
{
scanf("%d",&n);
for(i=1; i<=n; i++)
for(j=1; j<=i; j++)
scanf("%d",&f[i][j]);
for(i=n-1; i>=1; i--)
for(j=i; j>=1; j--)
if(f[i+1][... |
894ffbcc904612646629b0585d103ccaa53933f7 | c79573bcfa6be75e592cd688651ba2091db5734a | SteveCoul/renogySolar | /src/SerialPort.cpp | C++ | cpp | 6,312 | no_license | #include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/poll.h>
#include <iomanip>
#include <sstream>
#include "Task.hpp"
#include "Log.hpp"
#include "SerialPort.hpp"
SerialPort::SerialPort( std::string device, unsign... |
8628b4774f727eb4c7c9aef846b4579b5db6c9bc | 0bd83fa490071629fdb354700b3a98cf90c9df8e | Sly14/upp-mirror | /uppdev/BeatPickerTest/BeatPickerTest.cpp | C++ | cpp | 271 | no_license | #include <Core/Core.h>
using namespace Upp;
#define DLLFILENAME "QrsOne_500sps.dll"
#define DLIMODULE QRSONE_500SPS
#define DLIHEADER <BeatPickerTest/BeatPickerTest.dli>
//#define DLLCALL LNPUBLIC
#include <Core/dli.h>
CONSOLE_APP_MAIN
{
}
|
c937347bc763b2090f9138a0fadb5c0b2ff5a4f6 | e32cfcdcc136edbc9d2e98d9b6ef215fb1fca62a | walrus7521/code | /toys/misc/cpp2/tools/box.cpp | C++ | cpp | 879 | no_license | #include <mutex>
#include <thread>
#include <chrono>
#include <iostream>
struct Box {
explicit Box(int num) : num_things{num} {}
int num_things;
std::mutex m;
};
void transfer(Box &from, Box &to, int num)
{
// don't actually take the locks yet
std::unique_lock<std::mutex> lock1(from.m, std::de... |
4fc4b5e2430420ca1196f609ded082d3c82b75ef | d6bb578600281084895bf070d1de84335104fe86 | p3tromyz0n/dldt | /inference-engine/include/builders/ie_roi_pooling_layer.hpp | C++ | hpp | 2,430 | permissive | // Copyright (C) 2018 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <builders/ie_layer_fragment.hpp>
#include <ie_inetwork.hpp>
#include <string>
#include <vector>
namespace InferenceEngine {
namespace Builder {
/**
* @brief The class represents a builder for ROIPooling layer
*... |
891ae5a4fa5deec9f56d2f669c10a42958a9814e | edae30cb1991c4d525dd5d89e144b20adeb921cb | ChoiYRim/Algorithm | /9625/9625/main.cpp | C++ | cpp | 480 | no_license | #include <iostream>
#include <algorithm>
using namespace std;
int K;
int dp[46][2] = {0,};
int main(int argc, const char * argv[])
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin >> K;
dp[0][0] = 1; dp[0][1] = 0;
dp[1][0] = 0; dp[1][1] = 1;
for(int i = 2; i <= K; i+... |
728d9a40e3dea41992d79251ea780999b3659cff | 558b08713cee94ca5a93d0c90071c57cac749370 | ayushtiwari/Algorithms-2-IITKgp | /Tutorial-3/main.cpp | C++ | cpp | 6,799 | no_license | //
// main.cpp
// closest_pair
//
// Created by Ayush Tiwari on 15/08/19.
// Copyright © 2019 Ayush Tiwari. All rights reserved.
//
#include <iostream>
#include <set>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include <limits>
#include <cmath>
#include <fstream>
#include <string>
us... |
e60fad1d3555d744886b7ac20889acd0e27a2ac7 | 81803075f6b2a0051d4a7f7cc9fc20a0c42d8def | nhold/toasty | /game/source/button.cpp | C++ | cpp | 1,002 | permissive | #include <button.hpp>
Button::Button() : node()
{
}
Button::Button(sf::Sprite * sprite, sf::Font* font, std::string name, std::function<void()> onClicked) : node(sprite, name)
{
this->onClicked = onClicked;
this->text = new sf::Text(name, *font);
this->text->setCharacterSize(16);
this->text->setOrigin(this->text-... |
871e5a89ef44c40c803e5dc3e70556bba6b7b102 | 026177f0eb8e367fcadf3dc0373f78364d38648f | wzf1997/v8 | /src/baseline/baseline-compiler.cc | C++ | cc | 82,069 | permissive | // Copyright 2021 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.
// TODO(v8:11421): Remove #if once baseline compiler is ported to other
// architectures.
#include "src/base/bits.h"
#if V8_TARGET_ARCH_IA32 || V8_TARGE... |
c3b1ca59e80bdf699f33cbc85e89a50e773217a2 | d5e658ec000cd21748b507bc2619882b85c8f2e5 | Replica-/ConEmu | /src/ConEmu/Update.cpp | C++ | cpp | 63,276 | permissive |
/*
Copyright (c) 2009-present Maximus5
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the follo... |
f1e594c39a647b3d2e46d3c196be5b8a3dbb8798 | a9eb30221ae2b5274d60bcfaeea6e1a9b60d5e9a | karunmatharu/Android-4.4-Pay-by-Data | /external/chromium_org/chrome/browser/extensions/extension_function_registry.cc | C++ | cc | 3,271 | 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/extensions/extension_function_registry.h"
#include "chrome/browser/extensions/api/preference/chrome_direct_setting.h"
#inclu... |
da60e073205ef1e6fad622aa2f4cf54f885353a9 | 7d15952fbf9161486bc51ffaea64e13ea66989a7 | whywhyzhang/ACM-ICPC-Code | /CF/346/G.cpp | C++ | cpp | 1,703 | no_license | // ━━━━━━神兽出没━━━━━━
// ┏┓ ┏┓
// ┏┛┻━━━━━━━┛┻┓
// ┃ ┃
// ┃ ━ ┃
// ████━████ ┃
// ┃ ┃
// ┃ ┻ ┃
// ┃ ┃
// ┗━┓ ┏━┛
// ┃ ┃
// ┃ ┃
// ┃ ┗━━━┓
// ┃ ┣┓
// ┃ ┏┛
// ... |
78426b8d3eb22e31fa5e2f01abbcca7901bf0078 | 8176b276571065d592cb50dff0d2fd31b54cb6f0 | blockspacer/argot | /include/argot/executor_traits/execute.hpp | C++ | hpp | 2,402 | permissive | /*==============================================================================
Copyright (c) 2018, 2019 Matt Calabrese
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)
=============================================... |
bd7eb64f02a150019f1ca87390833d8d847584f3 | 3b95054eee1b780970d6c557dc3fae7e883f083b | wangrangzhi/ACM-code--fragment | /5/264_2.cpp | C++ | cpp | 219 | no_license | #include <stdio.h>
#include <math.h>
int main()
{
int n;
while(scanf("%d", &n) == 1)
{
int k = (int)floor((sqrt(8.0*n + 1) - 1)/2-1e-9)+ 1;
int s = k*(k+1) / 2;
printf("%d/%d\n", s-n+1, k-s+n);
}
return 0;
} |
71d96bf37ec4a60bbdaf31d7923c0a4520cb1194 | 43ade548d368dab82e55e8f74104111e7c0842b6 | ashima-24/add-one-to-number | /main.cpp | C++ | cpp | 658 | no_license | #include <iostream>
#include <vector>
using namespace std;
vector<int> plusOne(vector<int> &A) {
int b=A.size() - 1;
int carry = 1;
int tmp = 0;
while (b >= 0) {
tmp = (A[b] + carry) / 10;
A[b] = (A[b] + carry) % 10;
carry = tmp;
b--;
}
if (ca... |
b4b41506d616e9b5d5ff849413a8a4cfae5ec941 | c8ec3505569cc6b68c74d57afedc168b3376987c | 3for/libscapi | /src/infra/Measurement.cpp | C++ | cpp | 6,195 | permissive | //
// Created by liork on 17/09/17.
//
/**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby gr... |
a5e67feeb9b0aeb79bf9313d8f2a88691383661a | 55dd82ad131a80ea8377e9e80d5664b00e784f09 | gustavoarsenioubuntu/intel-graphics-compiler | /IGC/Compiler/CISACodeGen/WIAnalysis.cpp | C++ | cpp | 58,117 | permissive | /*===================== begin_copyright_notice ==================================
Copyright (c) 2017 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, includi... |
c9089696b395e09927beb5f045cc115e098ca1eb | 4a8bc0a79936eda201063495bde1454190c7683d | ffrujeri/SFML-bomberman-clone | /game/Character.hpp | C++ | hpp | 3,306 | no_license | #ifndef CHARACTER_HPP
#define CHARACTER_HPP
#include "Entity.hpp"
#include "Command.hpp"
#include "ResourceIdentifiers.hpp"
#include "Bomb.hpp"
#include "TextNode.hpp"
#include "Animation.hpp"
#include "Tile.hpp"
#include <SFML/Graphics/Sprite.hpp>
#include "CharacterGraph.h"
class Character : public Entity
{
publ... |
8e60dba3160db6f0db81f24f9fd62ee4fe5a5718 | af4b8d5c199c9394be8e040ffe7309bf1f621fde | chrispbradley/scalasca | /src/pearl/replay/CompoundTask.cpp | C++ | cpp | 4,788 | permissive | /****************************************************************************
** SCALASCA http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2015 **
** Fors... |
36315d81fa403f40bd35914ea9fcfb0edd337b0e | 2ee565b1371ba090fe86cfccb51dbd25e4283f72 | jjzhang166/WinNT5_src_20201004 | /NT/ds/adsi/router/crsinfo.cxx | C++ | cxx | 19,056 | no_license | //-----------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1995.
//
// File: CRSInfo.cxx
//
// Contents: IRowsetInfo and IGetRow methods
//
// Functions:
//
// Notes:
//
//
// History: 08/30/96 ... |
246377b43bbe85802d8f3a83d437eff615d05207 | e292321c432111fd3661659c68fd317314b14e8c | Cadair/biboumi | /louloulibs/network/credentials_manager.hpp | C++ | hpp | 1,039 | permissive | #ifndef BIBOUMI_CREDENTIALS_MANAGER_HPP
#define BIBOUMI_CREDENTIALS_MANAGER_HPP
#include "louloulibs.h"
#ifdef BOTAN_FOUND
#include <botan/botan.h>
#include <botan/tls_client.h>
class TCPSocketHandler;
class Basic_Credentials_Manager: public Botan::Credentials_Manager
{
public:
Basic_Credentials_Manager(const TC... |
d82c93c74935aa241f2ed952d2c8903f78111535 | 53f9e181ad9664ff8ae502758bf5b683b06871c9 | ab3nd/NeuronRobotInterface | /catkin_ws/src/zanni/src/zanni_to_dishstate.cpp | C++ | cpp | 1,020 | no_license | #include "ros/ros.h"
#include "zanni/Channels.h"
#include "std_msgs/String.h"
#include "neuro_recv/dish_state.h"
ros::Publisher zanni_pub;
ros::Duration offset;
void translate(const zanni::Channels& msg) {
//compose the new message
neuro_recv::dish_state outMsg;
int jj = 0;
//Copy the data over
for (std::vecto... |
88a028867ba7ff663de649ef50f4d837a8607ab3 | c7b83c672ab1942e58e0815430b2881150c4f9bd | ccdxc/logSurvey | /data/crawl/git/hunk_4206.cpp | C++ | cpp | 596 | no_license | char *old_hex = sha1_to_hex(ref->old_sha1);
char *new_hex = sha1_to_hex(ref->new_sha1);
- if (!cmds_sent && (status_report || use_sideband)) {
- packet_buf_write(&req_buf, "%s %s %s%c%s%s",
+ if (!cmds_sent && (status_report || use_sideband || args->quiet)) {
+ packet_buf_write(&req_buf, "%s %s %s%c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.