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 |
|---|---|---|---|---|---|---|---|---|
97c163e99517833262842a5412f3b4ae06f779bb | eca840b43151db14084b69b34f8623a2901cbe36 | Nofil28/F2016065089 | /4.General Status/main.cpp | C++ | cpp | 861 | no_license | #include <iostream>
#include <fstream>
#include <string>
using namespace std;
class info_Disp
{
public:
info_Disp(int status,int amount,double PPM,double rem)
{
cout<<"FOLLOWING IS YOUR CURRENT STATUS INFORMATION"<<endl;
if(status==1)
{
cout<<"Loan is Granted"<<endl;
cout<<"... |
015460d12007a34b26867dba5e2777550ccd6db4 | befed5f336af8e73192271c4b4ffaeb8554fae04 | EALongva/FYS4150 | /project3/programs/include/utils.hpp | C++ | hpp | 403 | no_license | // function declarations project 2
// https://stackoverflow.com/questions/25274312/is-it-a-good-practice-to-define-c-functions-inside-header-files
#ifndef UTILS_H_INCLUDED
#define UTILS_H_INCLUDED
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <iomanip>
#include <armadillo>
#inclu... |
6bd053297ca787a7f777919b55d279df474e9648 | 392bef824bbd2f5a58b6233f9cfc9b5ee5e98bc2 | noemiacintia/TP | /Arquivos Extras/TP/Aprendendo/Aula 160321/main Cadastro1.cpp | C++ | cpp | 1,064 | permissive | /* Crie uma classe Pessoa com nome, CPF, endereço, data de nascimento.
O endereço é composto de nome da rua, número, bairro e CEP. A data de nascimento
possui dia, mês e ano. Na main, crie um cadastro com no máximo dez obejtos do
tipo pessoa */
#include <iostream>
#include <string.h>
using namespace std;
#include ... |
10f645bb731dd650452e05674f8deedafb026b64 | bb079925b5c2667a146a31de9f4741184623c0a4 | gxq-is-a-lovely-girl/lesson | /Complete Backpack.cpp | C++ | cpp | 455 | no_license | #include<iostream>
#include<cstring>
using namespace std;
int main(){
int n,rl,w[100],v[100],dp[100][100];
cin>>n,rl;
memset(w,0,sizeof(w));
memset(dp,0,sizeof(dp));
memset(v,0,sizeof(v));
for(int i=1;i<=n;i++){
cin>>w[i]>>v[i];
}
for(int i=1;i<=n;i++){
for(int j=1;j<=rl;j++){
... |
d17ba4f5251db589abae26addda544318173457d | aa58dace40d7c202bcd29340c29e0851581cfed9 | qglt/weishao | /whistle_ios_dev_2.1/src/biz/gloox_async/gloox_src/sha.cpp | C++ | cpp | 5,591 | no_license | /*
Copyright (c) 2006-2012 by Jakob Schroeter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold o... |
d7bef3a170956e68be8db5361e2bec4bf6ea649d | 74a06c54b9dee48cf47abd672b4dfaee5d64b349 | dipty13/Competitive-Programming-Codes | /hashTable1.cpp | C++ | cpp | 5,420 | no_license | #include<bits/stdc++.h>
using namespace std;
class HashTable
{
private:
const static int hash_max = 10;
class LinkedList
{
public:
string name;
string phone;
double fare;
double totalKilometerDriven;
string carType;
string carNumber;
string current... |
394d642a230c1920a90d32c118a33d8a7bfb9982 | 4d36dcb7a479d79bd46cd10560430b07e38e8aa6 | LLNL/Caliper | /src/interface/c_fortran/wrapAnnotation.cpp | C++ | cpp | 2,884 | permissive | // wrapAnnotation.cpp
// This file is generated by Shroud 0.12.2. Do not edit.
#include "wrapAnnotation.h"
#include "caliper/cali.h"
#include <cstddef>
// splicer begin class.Annotation.CXX_definitions
// splicer end class.Annotation.CXX_definitions
extern "C" {
// splicer begin class.Annotation.C_definitions
// sp... |
26569e8c8a520b6ec4b12aaaff953ce009c9cd30 | a5842ec846bf8cf138c4a197d3f15d3b0271242a | yiiyama/fittools | /src/EfficiencyFitter.cc | C++ | cc | 5,519 | no_license | #include "../include/EfficiencyFitter.h"
#include "TTree.h"
#include "TVirtualFitter.h"
#include "RooArgSet.h"
#include <algorithm>
#include <cmath>
#include <cstring>
EfficiencyFitter::~EfficiencyFitter()
{
reset();
}
void
EfficiencyFitter::setTarget(TTree* _tree, char const* _passdef, char const* _xexpr, char c... |
5e1f88c26fc9a17c0e05f67f96dbe405bb271e2d | 9c5627575308eda581b6b1e66fdb81ec39c32bc1 | ChristopherRabotin/GMAT | /src/base/parameter/BallisticMassReal.hpp | C++ | hpp | 2,862 | permissive | //$Id$
//------------------------------------------------------------------------------
// BallisticMassReal
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2020 United States Government a... |
0200f967d62e020c9b8c7f7b007d9981f956825e | 1519630ce79674d13f1459da13ddd6de8e02c8e6 | highfence/Data_Structure_n_Algorithm | /CountingSort.cpp | C++ | cpp | 2,894 | no_license | /*
작성일자 : 16.10.27
작성자 : 141060 이근원
내용 : Counting Sort 구현
Edited By MS Visual Studio 2015
*/
#ifdef CountingSort
#include "CountingSort.h"
int main(void)
{
Test test;
while (test.MakeSampleArray() != -1)
{
test.CountingSort();
test.PrintAll();
}
return 0;
}
/*
Test Class 초기화.
사이즈가 처음에는 -1을 가지고 ... |
d2c01bc4c7d2b035537c1b2335fca38ebbf5ef29 | c32646dca435e44193b28a4e886022d20386398c | aws/aws-sdk-cpp | /generated/src/aws-cpp-sdk-clouddirectory/source/model/BatchListObjectPolicies.cpp | C++ | cpp | 1,794 | permissive | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/clouddirectory/model/BatchListObjectPolicies.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namesp... |
b3b4d6d88884fc0b02b02688fa6abcc7cb8b3c48 | 18cf07400367fb153e2b830f00678a05df4e2a1c | CU-0xff/juliet-cpp | /000/068/752/CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_loop_54e.cpp | C++ | cpp | 1,822 | no_license | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805_int64_t_loop_54e.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE805.label.xml
Template File: sources-sink-54e.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate us... |
ad483ff597db7a5fffda317009547d360244a758 | 4d0ea162e66e3c4892e588b02be226e04e073414 | gary9987/oop-bang-game-project | /sample_project/Classes/ChooseCardScene.cpp | C++ | cpp | 3,582 | permissive | //
// ChooseCardScene.cpp
// HelloCpp-mobile
//
// Created by Guan Ying Chen on 2019/6/6.
//
#include "ChooseCardScene.hpp"
#include "ClientSocket.hpp"
#include "Card.hpp"
#include "WrapInfo.hpp"
#include <iostream>
USING_NS_CC;
//1000 x 517
float card_pos(int pos, int n){
// 257 一張卡
float edge = -300;
... |
e077d3e35276159e0ec82f0609a4fb68788128cc | 5bbeb23c49e307812cecd5937ee21747c407ea09 | lineCode/desktopx | /Plugins/DXSystemEx/DXSystemEx/DragDrop/DragDropUtils.cpp | C++ | cpp | 6,538 | no_license | ///////////////////////////////////////////////////////////////////////////////////////////////
//
// DXSystemEx - Extended System Information
//
// Copyright (c) 2009-2011, Julien Templier
// All rights reserved.
//
// Based on Tutorial by J. Brown / www.catch22.net
//
/////////////////////////////////////////////////... |
2efa90d2395154350c589dfc48e84c477ac1f459 | df71ce175f099f922fc9ddfe4a1afe6569d10db4 | chae-chae/BaekJoon | /String/1316.cpp | C++ | cpp | 1,194 | no_license | //
// 1316.cpp
// BaekJoon
//
// Created by 채채 on 04/01/2020.
// Copyright © 2020 chaechae. All rights reserved.
//
#include <stdio.h>
#include <string.h>
int main(void){
int n;
int cnt = 0;
scanf("%d", &n);
for (int i = 0; i<n; i++) {
char word[101];
int alpha[26] = {0, };
... |
9d26f0b1ca2b4eafb89bb4a4fbca234ac874072a | a18ce865c99e6d8756aeb56d86f64a75ff27e1cd | RealZiangLiu/usc_csci420_sp20 | /hw2-starterCode/.history/hw2_core_code/hw2_20200330001640.cpp | C++ | cpp | 54,868 | no_license | /*
CSCI 420 Computer Graphics, USC
Assignment 2: Roller Coaster
C++ starter code
Student username: ziangliu
ID: 9114346039
*/
#include "basicPipelineProgram.h"
#include "openGLMatrix.h"
#include "imageIO.h"
#include "openGLHeader.h"
#include "glutHeader.h"
#include <stdio.h>
#include <stdlib.h>
#include <... |
b94874648b769d1e010a41a86597b2b7cb8df6bc | 371b9dc03afc7f6ccb8a2e88315a462ed1334290 | chuchong/DSA-Final--news-searcher | /main.cpp | C++ | cpp | 7,095 | no_license | //由于使用了mbstowcs,需要在预处理器中添加_CRT_SECURE_NO_WARNINGS;
//需要支持c++11
//注意我将dict中的bom头删掉了
//在读取其他人文件时,还需要删掉dict的bom头
#include "Stack.h"
#include "CharString.h"
#include "CharStringLink.h"
#include "Dict.h"
#include "Searcher.h"
#include "HtmlParser.h"
#include "Devider.h"
#include "HtmlFilter.h"
#include <string>
#include <io... |
99e6b7b68a3e7cd23856e7a82d86d0b3e99747b1 | 74c1ea40f8f37c39409703cce71566e2ef850efc | Zerphed/advanced-computer-graphics-course | /2013/assignment_4/src/base/App.cpp | C++ | cpp | 21,867 | no_license | #define _CRT_SECURE_NO_WARNINGS
#include "App.hpp"
#include "base/Main.hpp"
#include "gpu/GLContext.hpp"
#include "3d/Mesh.hpp"
#include "io/File.hpp"
#include "io/StateDump.hpp"
#include "base/Random.hpp"
#include "gpu/CudaModule.hpp"
#include "gpu/CudaCompiler.hpp"
#include "RayTracer.hpp"
#include "RT... |
c06027eb86f5f0df1065e604c7aaa7aae664fbb4 | 3723c9358d08995263a466b10212dbfb4b8fd4d5 | RESQChain/CIC-Core | /src/wallet/rpcwallet.cpp | C++ | cpp | 118,607 | permissive | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 The Proton Core developers
// Copyright (c) 2018 The Cic Core developers
// Distributed under the MIT software license, see the accompanying
// fil... |
fdcc734355943bcddedba32a180fc506705d4b7f | 454b02337a783e7b7404689462c1686ad2d83ccd | kangere/compiler_design | /include/debug.cpp | C++ | cpp | 7,291 | no_license | #include "type.hpp"
#include "decl.hpp"
#include "type.hpp"
#include "expr.hpp"
#include "stmt.hpp"
#include <iostream>
//All AST structures have a debug function
//that is implemented in this file
//util functions
//skip line
static void
skipl(std::ostream& out)
{
out << std::endl;
}
static void
indent_func(int i... |
18743a5627381fe77d7249df2c6ece01da89eb48 | 4924ec0bf470de42a71e2ad05ab75ee98a576541 | touyou/CompetitiveProgramming | /aoj/0535.cpp | C++ | cpp | 619 | no_license | #include <cstdio>
#include <algorithm>
using namespace std;
int m, n;
int maps[92][92];
int res;
void dfs(int x, int y, int r) {
int dx[] = {-1,0,0,1};
int dy[] = {0,-1,1,0};
maps[x][y]=0;
for (int i=0; i<4; i++) {
int nx=x+dx[i],ny=y+dy[i];
if (maps[nx][ny]) {
dfs(nx,ny,r+1);
}
}
res=max(r,res);
maps[x... |
fae81443743d87abd6c5b02524044764b9e863e4 | f00cbfc5d1b15bdfcba7a8d33c0c993995b5594e | uel-dataexchange/Opencascade_uel | /inc/BOP_FaceBuilder.hxx | C++ | hxx | 4,838 | no_license | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _BOP_FaceBuilder_HeaderFile
#define _... |
c6a95b0d1ad2eaaadb6eb4d5b072090e840bf020 | 228a04d28abfbf41278afe6ea4d5f51dd41a2e0f | jsj2008/OPengine | /Core/src/OPdir.cpp | C++ | cpp | 2,834 | permissive | #include "./Core/include/OPdir.h"
#include "./Core/include/OPlog.h"
#include "./Core/include/OPmemory.h"
#include <stdio.h> /* defines FILENAME_MAX */
#ifdef OPIFEX_WINDOWS
#include <direct.h>
#define GetCurrentDir _getcwd
#elif defined(OPIFEX_OSX)
#include <mach-o/dyld.h>
#endif
#ifdef OPIFEX_OSX
#include <libp... |
333171a3feb79a950bd9ec7c642318159b371130 | ef3f39c17a5cc4885f44d990cee83167494ac1f9 | MarshallHunt/Lab10 | /HybridDriver.cpp | C++ | cpp | 1,121 | no_license | #include "Hybrid.h"
#include "CD.h"
using CSC2110::CD;
#include "Text.h"
using CSC2110::String;
#include "ListArray.h"
using CSC2110::ListArray;
#include "ListArrayIterator.h"
using CSC2110::ListArrayIterator;
#include <iostream>
using namespace std;
void addCDs(ListArray<CD>* list, Hybrid<CD>* h)
{
ListArrayItera... |
319e8b3814150743c92a44c0597c104162d01395 | c5df0e417438c41a4bc415b8ff01dd26e2683f92 | twoonethree123/OpenGL | /Урок 20. Тест трафарета в OpenGL/Hello_Window/main.cpp | C++ | cpp | 14,473 | no_license | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "stb_image.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "shader.h"
#include "camera.h"
#include "model.h"
#include <iostream>
void framebuffer_size_callback(GLFWwindow* window, int width, int height... |
f88a303f19bc7b4111f8d884964e2b2ad434fbc5 | b4463f6e47eb3e582a5f68776c7894322a49f183 | WanchengWildMan/HRManageMent | /.history/课设beta0_1_20201224161626.cpp | C++ | cpp | 12,373 | no_license | #include <bits/stdc++.h>
#define four 20000;
#define three 15000;
#define two 8000;
#define one 4000;
using namespace std;
#define inf 0x3f3f3f3f
string JOBS[] = {" ", "经理", "销售经理", "兼职技术人员", "兼职推销员"};
int PLUS_STEP_NUM;
double PLUS_RATE[7];
double MONEY_PER_HOUR;
double MONEY_MANAGER = 20000, MONEY_SALEMANAGER = 1500... |
66a52fc20ec40f0ea282861f553cb83ffd2ff85a | 9202387f413bfae82d0a13aed86ec430e3180a64 | mildred/self | /vm/src/any/parser/branchSet.cpp | C++ | cpp | 1,614 | no_license | /* Sun-$Revision: 30.7 $ */
/* Copyright 1992-2006 Sun Microsystems, Inc. and Stanford University.
See the LICENSE file for license information. */
# pragma implementation "branchSet.hh"
# pragma implementation "branchSet_inline.hh"
# include "_branchSet.cpp.incl"
bool BranchInfo::ResolveBranch( AbstractByteCode... |
492fb46f12c0404881690ff7a7a90fb328d13730 | 4c6f92c9154b876f5357a87264b05df42383474e | sysulwl/Tetris | /18.Tetris/18.Tetris/MainFrm.cpp | C++ | cpp | 12,607 | no_license |
// MainFrm.cpp : CMainFrame 类的实现
//
#include "stdafx.h"
#include "18.Tetris.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMainFrame
IMPLEMENT_DYNCREATE(CMainFrame, CFrameWndEx)
const int iMaxUserToolbars = 10;
const UINT uiFirstUserToolBarId = AFX_IDW_CONTROLBAR_FIRST + 40;
const UINT u... |
e5a247e9c56d051d34b4e329fd19d798d3c5ec14 | 3a0da27d44f0f019c6373d6a7b811d76bd33874d | Joncarre/CPlusPlus-language | /Estructuras de datos y Técnicas algorítmicas/Algoritmos voraces/6. Planificación de conferencias/main.cpp | C++ | cpp | 1,609 | no_license | //
// Created by Jonathan Carrero.
// Copyright (c) Jonathan Carrero. All rights reserved.
//
#include <iostream>
#include <algorithm>
#include <vector>
#include "PriorityQueue.h"
using namespace std;
typedef struct{
int inicio;
int final;
}tConferencia;
void resuelve(int numConferencias);
// ----... |
accf73f64d2a19b202f6c1d948762fc0941f3561 | 426268b77474903bdf84d3bd32124a93b4ab53c7 | niboliang/ParaView | /Plugins/SciberQuestToolKit/SciberQuest/MPIRawArrayIO.hxx | C++ | hxx | 20,414 | permissive | /*
____ _ __ ____ __ ____
/ __/___(_) / ___ ____/ __ \__ _____ ___ / /_ / _/__ ____
_\ \/ __/ / _ \/ -_) __/ /_/ / // / -_|_-</ __/ _/ // _ \/ __/
/___/\__/_/_.__/\__/_/ \___\_\_,_/\__/___/\__/ /___/_//_/\__(_)
Copyright 2012 SciberQuest Inc.
*/
#ifndef __MPIRawArrayIO_hxx
#def... |
f62020dd4f0bd0e99c75066b307708df6edf4ba9 | da126942329be8ac1e92ee1869c49d496240cf2a | rwendelboe/Graph | /GraphMain.cpp | C++ | cpp | 1,394 | no_license | #include "Graph.h"
#include <iostream>
#include <fstream>
using namespace std;
int changeLetterstoNum(char toconvert){
int newVal;
newVal = toconvert - 'A';
return newVal;
}
int main(){
ifstream file;
int numOfNodes;
int numOfEdges;
char vertex;
char adjVertex;
int weight;
//file.open(... |
886dbef0250020c939cfcdaa5e0d2af418d6039b | c9005e0420d7b71c9b5e56db6274c8ab824c28ce | amit-k-s-pundir/computing-programming | /practice/qt/widgets/examples/calculator/calculator.cpp | C++ | cpp | 3,364 | no_license | #include <QtWidgets>
#include <math.h>
#include "button.h"
#include "calculator.h"
Calculator::Calculator(QWidget* parent) : QWidget(parent){
{
sumInMemory = 0.0;
sumSoFar = 0.0;
factorSoFar = 0.0;
waitingForOperand = true;
display = new QLineEdit("0");
display->setReadOnly(true);
displa... |
e7d931fb053fd471f7a2e420917a77d55028834b | 73c2b9c8f0b9c2d889a8ad84d578bd4c4ad61689 | ATPs/trinityrnaseq | /Inchworm/src/sequenceUtil.cpp | C++ | cpp | 9,969 | permissive | #include "sequenceUtil.hpp"
#include <stdlib.h>
#include "stacktrace.hpp"
#include <math.h>
#include <iostream>
#include <sstream>
static const int MAX_LINE_LENGTH = 100000;
char _int_to_base [4] = {'G', 'A', 'T', 'C'};
unsigned char _base_to_int [256] = {
255, 255, 255, 255, 255, 255, 255, 255, 255, 255... |
20187978c1ae55920bba854a2572ff8b5d4b09e3 | d03c417e01090ab2aec4872df5330aeacc2f4590 | liuylala/v4r | /modules/common/src/normal_estimator_integral_image.cpp | C++ | cpp | 1,373 | permissive | #include <v4r/common/normal_estimator_integral_image.h>
#include <pcl/features/integral_image_normal.h>
#include <pcl/impl/instantiate.hpp>
#include <glog/logging.h>
namespace v4r
{
template<typename PointT>
pcl::PointCloud<pcl::Normal>::Ptr
NormalEstimatorIntegralImage<PointT>::compute()
{
CHECK(input_ && inpu... |
6d63d289421324260ad617fa4f859f871837b507 | f721778f2a407de6a06170cafbf70a49c453a332 | xxxluloxxx/n-reinas | /reinas.cpp | C++ | cpp | 4,146 | permissive | #include "reinas.h"
/*Constructor de la clase*/
reinas::reinas(int t) {
tam = t;
enter.open("ReinasSolucion.txt", fstream::out);
enter << "Soluciones en tablero de " << t << "*"<< t <<endl<<endl;
}
/*Este metodo generara la matriz llena con espacios vacios*/
void reinas::GenerarMatrizA() {
... |
152b50e2053c479152fd34e95e788be077ac0d66 | 1804483eb6b1be68b47b92166f931a05aa88b824 | yanhaiming56/painter | /paint/cpp_head/Geometry/Polygon.hpp | C++ | hpp | 1,100 | no_license | //
// Polygon.hpp
// paint
//
// Created by yhs on 2020/5/15.
// Copyright © 2020 yhs. All rights reserved.
//
#ifndef Polygon_hpp
#define Polygon_hpp
#include <vector>
#include "Utility.hpp"
#include "Graphic.hpp"
#include "Point.hpp"
using namespace std;
class QPolygon : public Graphic
{
private:
bool cr... |
246309638824cddfbaf7efe47072cd1366cb9269 | 0b0765e380d9927d0a68bf3dd5778fa762fb989a | gergelypeli/plum | /values/record.cpp | C++ | cpp | 6,814 | no_license | #include "../plum.h"
RecordOperationValue::RecordOperationValue(OperationType o, Value *p, TypeMatch &match)
:GenericOperationValue(o, op_arg_ts(o, match), op_ret_ts(o, match), p) {
//std::cerr << "XXX Record " << match[0] << " operation " << o << ".\n";
}
StringOperationValue::StringOperationValue(Operati... |
9a1091d827b2bae5a325b0489223af7d5c1f365f | f6e35cc63dc4ac64705e61b87b345318a2386a10 | PrncssClr/GEngine2D.old | /GEngine2D/Drawable.cpp | C++ | cpp | 1,567 | no_license | #include "Drawable.h"
#include "Mouse.h"
Drawable::Drawable(SDL_Renderer* _renderer) :
_Renderer(_renderer) {}
Drawable::Drawable(Drawable&)
{
}
Drawable::~Drawable()
{
}
void Drawable::setAnchor(Vector2D<float> _a)
{
_anchorPoint = _a;
}
void Drawable::onUpdate(float _deltaTime)
{
}
void Drawable::draw()
{
if... |
8853ffe7b2fab655047792a59fb2dd0d02bb44b2 | e97ca0bbe784a6861820b21cafa3ad7fbc02c5e5 | lrocdev/ISIS3 | /isis/tests/FunctionalTestsFrameStitch.cpp | C++ | cpp | 14,793 | permissive | #include <exception>
#include <memory>
#include "framestitch.h"
#include "Brick.h"
#include "IString.h"
#include "LineManager.h"
#include "SpecialPixel.h"
#include "Statistics.h"
#include "TestUtilities.h"
#include "Fixtures.h"
#include "gmock/gmock.h"
#include "gmock/gmock.h"
using namespace Isis;
using namespace ... |
f5707a11c58419f0f3714ec5cdbbbcf05eb735cb | e640c32f1c45e990baad64ff7140370598e6b113 | Lan-ce-lot/overflow | /acwing/课/dp/线性dp/编辑距离.cpp | C++ | cpp | 2,340 | no_license | /*************************************************************************
> FileName:
> Author: Lance
> Mail: lancelot_hcs@qq.com
> Date: 9102.1.8
> Description:
************************************************************************/
//#include <bits/stdc++.h>
//#pragma comment(linker, "/STA... |
4ec2ae3106acae7ac5cf9a3aa7f9560e06074022 | 5456a67206925e53726d720619f6ddfe87d0e24f | Gamepiaynmo/BallanceModLoader | /virtools/CKTimeManager.cpp | C++ | cpp | 2,109 | permissive | #include "CKTimeManager.h"
NAKED void VxTimeProfiler::Reset() {
JUMP(0x2428F490);
}
NAKED float VxTimeProfiler::Current() {
JUMP(0x24284970);
}
CKDWORD CKTimeManager::GetMainTickCount() {
RETURN_MEM(0x28, CKDWORD);
}
float CKTimeManager::GetTime() {
return GET_MEMPTR(0x90, VxTimeProfiler)->Current();
}
float ... |
09b1a4ecc638effbdd0868bc05f9295a5734510f | ca7561c71d7cf3291f16261d2bcf23e7e0cdbb99 | ashutosh0gupta/llvm_bmc | /examples/litmus/c/run-scripts/tmp_10/Z6.1+po+dmb.sy+dmb.ld.c.cbmc.cpp | C++ | cpp | 41,864 | no_license | // Global variabls:
// 0:vars:3
// 3:atom_2_X0_1:1
// Local global variabls:
// 0:thr0:1
// 1:thr1:1
// 2:thr2:1
#define ADDRSIZE 4
#define LOCALADDRSIZE 3
#define NTHREAD 4
#define NCONTEXT 10
#define ASSUME(stmt) __CPROVER_assume(stmt)
#define ASSERT(stmt) __CPROVER_assert(stmt, "error")
#define max(a,b) (a>b?a:b)
... |
9e6529d3632af355fad99088a004dc4c708ae74e | 20f3d8b3a1ed1278da139908073b63a0b5f39245 | n-inja/kyoupro | /src/abc/054/A.cpp | C++ | cpp | 448 | no_license | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int a, b;
cin >> a >> b;
if (a == 1) a += 13;
if (b == 1) b += 1... |
dd5d1e49acb71dcc3eb5c21e2a9f13f9600cd8ae | 9f35250146c89afb8cc8d6937943158fe917b05b | carlosten1989/Leetcode | /code/cpp/RemoveDuplicatesfromSortedArray.cpp | C++ | cpp | 404 | no_license | class Solution {
public:
int removeDuplicates(int A[], int n) {
if(n <= 1) {
return n;
}
int i,j=0;
int now = A[0];
A[j++] = now;
for(i = 1;i < n;i ++) {
if(A[i] == now) {
continue;
} else {
A[j++] = ... |
dbbbd92e5d302470ce6cc44f30e1dd23f7b86c7e | 34a06037d60b2832471236e2ee7385ab94fc9aa6 | rsobies/RSCrypto | /CMS.cpp | C++ | cpp | 2,159 | no_license | #include "pch.h"
#include "CMS.h"
#include "X509Cert.h"
#include "PairKey.h"
#include <openssl/err.h>
bool CMS::signedData(const X509Cert& cert, const PairKey& privKey, const string& dataFilename)
{
auto bioDataIn_ptr =newBIO(dataFilename, "r");
if (bioDataIn_ptr ==nullptr) {
return false;
}
cms_ptr = uniqeCM... |
b57c0ea53df3ae1716bcd5913d7827e4b5963f5e | 606665e29ecec5eb18dac443bbb0d1ec80f5a4bb | bareboat-necessities/marnav | /src/marnav/nmea/bod.cpp | C++ | cpp | 1,337 | permissive | #include <marnav/nmea/bod.hpp>
#include <marnav/nmea/io.hpp>
#include "checks.hpp"
namespace marnav
{
namespace nmea
{
constexpr sentence_id bod::ID;
constexpr const char * bod::TAG;
bod::bod()
: sentence(ID, TAG, talker::global_positioning_system)
{
}
bod::bod(talker talk, fields::const_iterator first, fields::con... |
e8b4ba7ab32b2d71216de86a26425536576d9df6 | 7ad2ac43ec500df79f1a4f8aabcb9f6946327f04 | qian-long/TileDB-multinode | /core/src/query_processor.cc | C++ | cc | 152,599 | permissive | /**
* @file query_processor.cc
* @author Stavros Papadopoulos <stavrosp@csail.mit.edu>
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2014 Stavros Papadopoulos <stavrosp@csail.mit.edu>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this softwar... |
fe6da3619216c91ac4a6324f14033a094c8e5ede | d6892862d0b2c59b10a31993fe1dbf09c80af788 | Mancoi64/chromium | /chrome/browser/media/webrtc/tab_desktop_media_list_unittest.cc | C++ | cc | 16,229 | permissive | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/media/webrtc/tab_desktop_media_list.h"
#include <memory>
#include "base/command_line.h"
#include "base/containers/cxx20_erase.h... |
fda037e34798e2557aefaad7e7d3f8a5312f7cd0 | a3deb596ac4506f44f65f2e860547a52bd60e758 | JamesLinus/NeoRL | /NeoRL/source/neo/Predictor.cpp | C++ | cpp | 13,553 | permissive | #include "Predictor.h"
using namespace neo;
void Predictor::createRandom(sys::ComputeSystem &cs, sys::ComputeProgram &program,
const std::vector<VisibleLayerDesc> &visibleLayerDescs, cl_int2 hiddenSize, cl_float2 initWeightRange,
bool useTraces,
std::mt19937 &rng)
{
_useTraces = useTraces;
cl_float4 ... |
c322e8bf8cbef18118a71e6530f3f2baa2631e42 | d8081366579ca8f0a6fe4d5db31058ba36fd5a3c | ashutosh0gupta/llvm_bmc | /examples/litmus/c/run-scripts/tmp_10/MP+dmb.st+popa.c.cbmc_out.cpp | C++ | cpp | 34,755 | no_license | // Global variabls:
// 0:vars:2
// 2:atom_1_X0_1:1
// 3:atom_1_X2_0:1
// Local global variabls:
// 0:thr0:1
// 1:thr1:1
#define ADDRSIZE 4
#define LOCALADDRSIZE 2
#define NTHREAD 3
#define NCONTEXT 10
#define ASSUME(stmt) __CPROVER_assume(stmt)
#define ASSERT(stmt) __CPROVER_assert(stmt, "error")
#define max(a,b) (a>... |
d88751e2e64480d8a705aa233a7e4ced0ecbd3b6 | a2f1e95ad01afceaa2cfc29598fb33b637b3af85 | zjh19861014/chromium | /components/offline_pages/core/offline_page_feature.cc | C++ | cc | 5,374 | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/offline_pages/core/offline_page_feature.h"
#include <string>
#include "base/command_line.h"
#include "base/feature_list.h"
#include... |
2de703163981821cb225f054d155ebb33999b8da | 35f63574c2d64d0cdf8fad97c937bce47894b8db | m7mdganem/Systems-Programming | /Contact Tracing Simulation/src/Tree.cpp | C++ | cpp | 3,706 | no_license | #include "Tree.h"
#include "Session.h"
//************************** Tree *****************************
//constructor
Tree::Tree(int rootLabel) : node(rootLabel), children({}) {}
Tree::Tree(const Tree &other) : node(other.node), children({})
{
copy(other);
}
Tree::Tree(Tree&& other) : node(other.node), children(s... |
a50649bbd2c98de4115b97a512397d42fd3093e8 | 44cd466434a6a93ac76d59bbe581c7155a3e0c37 | DevilXiaoAP/Programming-language | /c++/课件+源码/01_C++基础课程/c++基础day03/源码/dm06_copy构造函数的第4种应用场景.cpp | C++ | cpp | 1,744 | no_license |
#include <iostream>
using namespace std;
class Location
{
public:
Location( int xx = 0 , int yy = 0 )
{
X = xx ; Y = yy ; cout << "Constructor Object.\n" ;
}
//copy构造函数 完成对象的初始化
Location(const Location & obj) //copy构造函数
{
X = obj.X; Y = obj.Y;
}
~Location()
{
cout << X << "," << Y << " O... |
1b26763ee4cf27168a7134a15a06195e7b9e74a8 | ed68b19246e61087bd0d9d9e7d3499b10826578e | quocthang0507/CPP-OOP | /Bai6_Pointer/Human.cpp | C++ | cpp | 400 | no_license | #include <iostream>
using namespace std;
#include "Human.h"
Human::Human(string name, int age)
{
this->name = name;
this->age = age;
}
Human::~Human(void)
{
cout << "Deleted this object\n";
}
string& Human::GetName(void)
{
return this->name;
}
int& Human::GetAge(void)
{
return this->age;
}
void Human::Displ... |
bcbc6e4a2fa1c0e9e392af184482361b273a6e17 | f66ff0c5efe99a75688a193cbaba5168ec6e6ad3 | a1ip/mipt-materials | /2c2t/Algorithms/2t1p_MinkowskiSum/tested/poly.cpp | C++ | cpp | 13,518 | no_license | #include <iostream>
#include <fstream>
#include <algorithm>
#include <cmath>
#include <ctgmath>
#include <stdexcept>
#include <vector>
typedef double Coord;
const double kEpsilon = 1e-9;
const double kPi = 3.1415926535897932384626433;
bool equals(double x, double y);
struct Point {
Coord x;
Coord y;
Poi... |
ba498fcd1715343dffe63ae673afc049b5be9682 | 14eb871b5d96f5d6f11b3541ceff817331e80216 | timatooth/udrawd | /src/udrawd.cpp | C++ | cpp | 1,371 | no_license | #include <sys/types.h>
#include <sys/stat.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif // HAVE_UNISTD_H
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif // HAVE_FCNTL_H
#include <iostream>
#include <string>
#include <hiredis/hiredis.h>
#include <nghttp2/asio_http2_server.h>
#include <boost/algorithm/string.hpp>
#in... |
6237904659602c6556e28d10f752d6e7507b1638 | 48d02b7d14033b1a511b830044e95e20828ad243 | chaimaj/Mini-RLM | /RLM_Client/Position.cpp | C++ | cpp | 495 | no_license | /*
* File: Position.cpp
* Author: PC-Z510
*
* Created on 9 février 2015, 15:23
*/
#include "Position.h"
Position::Position() {
x=0;
y=0;
}
Position::Position(int init_x,int init_y) {
x=init_x;
y=init_y;
}
void Position::setX(int new_x){
x=new_x;
}
int Position::getX() const{
re... |
1d5c5360aaff31db2d71e9d3f0029c1f6ab69cd7 | 845c982a4c4df81653d4fcc77cb2cddddf6801fd | SeaCanFly/CODE | /Study/MFC/HW/HW2/HW2_WangYiSen/ChildView.cpp | C++ | cpp | 3,797 | no_license |
// ChildView.cpp : implementation of the CChildView class
//
#include "stdafx.h"
#include "HW2_WangYiSen.h"
#include "ChildView.h"
#include "MyShape.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CChildView
CChildView::CChildView()
{
m_lbutton_down = false;
m_rbutton_down = false;
count = 0;
count_pixel = 0;... |
08d67160a5b23cd0d80cde9aa271e7effe5cc64a | ab5dd2ce7abf41867535d4ffc788c429941d2746 | zoucuomiao/Algorithm_for_Interview-Chinese | /Algorithm_for_Interview/动态规划/背包问题-01背包.hpp | C++ | hpp | 2,584 | no_license | #pragma once
// Problem - 2602 http://acm.hdu.edu.cn/showproblem.php?pid=2602
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
// 二维 DP
void solve() {
int T;
scanf("%d", &T);
while (T--) {
int N, V;
scanf("%d%d", &N, &V);
vector<int> v(N+1, 0), w(N+1, ... |
2de271fdafcd061c0401677006f9f3d9a569ba2b | 843604769661188fc40776b311c56387373e95f6 | net-lisias-ksp/Principia | /physics/body_test.cpp | C++ | cpp | 17,979 | permissive |
#include "physics/body.hpp"
#include "astronomy/epoch.hpp"
#include "astronomy/frames.hpp"
#include "astronomy/time_scales.hpp"
#include "geometry/frame.hpp"
#include "geometry/named_quantities.hpp"
#include "geometry/r3_element.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "integrators/symmetric_l... |
e41db31e29a32fc6b4a96c84c40ddfa5df69e999 | f2a6d42e5f22606bc0ff7c88754c541c1712c5c2 | lamaromi/Opengl-Project | /main.cpp | C++ | cpp | 9,320 | no_license | #include <stdio.h>
#include <stdlib.h>
#include <glut.h>
const GLdouble FRUSTDIM = 100.f;
enum animationMode { IMMOBILE_MODE, TORUS_MODE, TEAPOT_MODE, K_MODE, SPHERE_MODE, CONE_MODE, CUBE_MODE };
enum lightMode { NORMAL_LIGHT, SPOT_LIGHT };
animationMode mode;
lightMode light_mode;
/* Objects parameters *... |
a1b51c7b8d13065b2c727947b7adcc06b7138201 | fa52b31acddfe44db3d72da199c98e20110dc496 | Rg3n0v4/schoolProjects | /CS341/hw4Main.cpp | C++ | cpp | 2,950 | no_license | #include "queue.cpp"
#include <iostream>
using namespace std;
int main()
{
queue q;
q.push(10);
q.push(20);
q.push(30);
for (int i : q)
{
std::cout << i << std::endl;
}
return 0;
}
//Wayne's test cases
// int main()
// {
// //Assuming you constructed default correctly... |
3a04c419afba91f0485bd9e1337bf7d2fb18f6d8 | dda3a0fdc0847067b4d003b2b4c8c1ed702fa55a | krofta/PnP | /src/spline.cpp | C++ | cpp | 10,472 | no_license | /****************************************************************************
**
** This file is based on rs_spline.cpp, a part of the LibreCAD project, a 2D CAD program
**
** Copyright (C) 2010 R. van Twisk (librecad@rvt.dds.nl)
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
**
** This file may be dist... |
f4473ba7801f17616e67a4d7b5fa60a6039239a3 | fc2a014a4d655afacd8cc3da8808c0f444e8632d | bmildner/aws-sdk-cpp | /aws-cpp-sdk-elastictranscoder/source/model/CaptionFormat.cpp | C++ | cpp | 1,964 | permissive | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... |
8503249689e2c8b8ed073c3e5eaeaa656e2f11b8 | f40c9cc616aedcd5e8f6d791e5973e5882f2b9ee | STEllAR-GROUP/phylanx | /src/plugins/common/sum_operation.cpp | C++ | cpp | 1,885 | permissive | // Copyright (c) 2017-2020 Hartmut Kaiser
// Copyright (c) 2017 Parsa Amini
// Copyright (c) 2019 Bita Hasheminezhad
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <phylanx/config.hpp>
#include <p... |
4869d7cae73d28138bc6d0de71ae5f452f0ca7a0 | a620fbf11eb3af474720106a9051923a1f7b6ebd | jayo-wu/MT_testing | /Controller/src/dynamics_controller.cpp | C++ | cpp | 130,010 | no_license | /*
Author(s): Djordje Vukcevic, Sven Schneider
Institute: Hochschule Bonn-Rhein-Sieg
Copyright (c) [2020]
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 li... |
4fd2718bf1732cd3bbc1c7a747f34c504be7b1c4 | 8958abe86cb2febabc9f5a79b332b2fb5a6e2e96 | 3p3r/ChromiumGStreamerBackend | /chrome/browser/ui/passwords/manage_passwords_state_unittest.cc | C++ | cc | 30,817 | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/passwords/manage_passwords_state.h"
#include <utility>
#include <vector>
#include "base/strings/utf_string_conversions.h"
#i... |
9f99ec28d04f3c4e7374d29e546aa0b7b72dc66a | db4c437a9528f84b1d52064b883df0306a6ac9fd | cms-sw/cmssw | /CondTools/Ecal/src/EcalTPGSpikeThresholdfromFile.cc | C++ | cc | 2,421 | permissive | #include "CondTools/Ecal/interface/EcalTPGSpikeThresholdfromFile.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/ParameterSet/interface/ParameterSetfwd.h"
#include "Geometry/EcalMapping/interface/EcalElectronicsMapping.h"
#include "Geometry/EcalMapping/interface/EcalMappingRcd.h"
#include <iost... |
54c5ad29e6ecaab01accab8be1f26dbe2e72c1b1 | 5c99c4c21962446086efc6e5a1a991c7dc1591cd | akhikolla/testpackages | /fuzzedpackages/GreedyEPL/src/utils_collapse_labels.cpp | C++ | cpp | 860 | no_license | #include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::export]]
Rcpp::List p__CollapseLabelsCpp (arma::vec decision) {
unsigned int i;
unsigned int N = decision.size();
unsigned int K = max(decision) + 1;
for (i=0; i<N; ++i) if (decision.at(i) < 0) throw std::runtime_error("Decision vector p... |
364499f660fbf835f18b557d13d2e3d106ac685a | 48886b841ddf0dcb8565bad0e0563bc46e132e56 | shaksham08/DSA | /Udemy/Arrays/FizzBuzzTest.cpp | C++ | cpp | 1,228 | no_license | /*
Write a function that returns a with the numbers from 1 to n with the following
restrictions: fizzbuzz vector<string>
for multiples of 3 store "Fizz" instead of the number
for multiples of 5 store "Buzz" instead of the number
for numbers which are multiples of both 3 and 5 store "FizzBuzz"
You may use the method to... |
d05ccbeb9f1b9e74557e20189590b31f9401169c | 5bb60014bce3045f02fb69ab47285d01d27cb90d | mjohnson9/cist2362-final-project | /shoutout/models/privateshout.cc | C++ | cc | 976 | no_license | // Copyright 2019 Michael Johnson
#include "shoutout/models/privateshout.h"
#include <string>
#include <utility>
namespace mjohnson {
namespace shoutout {
PrivateShout::PrivateShout(User* from, User* to, std::string content)
: from_(from), to_(to), content_(std::move(content)) {
if (from == nullptr) {
thr... |
c7e04819de7d48562ec0fd1fd1a46f1952847fae | d56a6fcf6f6564e2467e6890193c03468897e192 | Livemy/example | /c++/深入浅出MFC/FRAME8.03/MY.CPP | C++ | cpp | 2,674 | no_license | #include "my.h"
CMyWinApp theApp; // global object
BOOL CMyWinApp::InitInstance()
{
cout << "CMyWinApp::InitInstance \n";
m_pMainWnd = new CMyFrameWnd;
return TRUE;
}
CMyFrameWnd::CMyFrameWnd()
{
Create();
}
BEGIN_MESSAGE_MAP(CMyWinApp, CWinApp)
ON_COMMAND(CMyWinAppid, 0)
END_MESSAGE_MAP()
BEGIN_M... |
c851b3a5255e44c2821198ac90e80b7fa3eaef36 | 41019db4258c80ec24864e9de761a5808355f925 | mkp0/CP | /CodeForce/D - Cleaning the Phone.cpp | C++ | cpp | 1,875 | no_license | #include <bits/stdc++.h>
#define ll long long
#define pi (3.141592653589)
#define all(x) (x).begin(), (x).end()
#define vi vector<int>
#define vll vector<long long>
#define pii pair<int, int>
#define pll pair<long long, long long>
#define pb push_back
#define mp make_pair
#define S second
#define loop(i, a, b, c) for ... |
d372afd2ee61ce88a05d782494b6358f516c7cd3 | 0ae90b023e1db0562fd139fd3576419606adf784 | junxuezheng/chromium | /ppapi/cpp/private/pdf.cc | C++ | cc | 7,902 | permissive | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ppapi/cpp/private/pdf.h"
#include "ppapi/c/trusted/ppb_browser_font_trusted.h"
#include "ppapi/cpp/image_data.h"
#include "ppapi/cpp/instan... |
08fdc637f9c1e37f1167acdc27527e6806d8b5fb | 70110a986a460f7fe312536a3a8c07ffbe641891 | matthb2/ParaView-beforekitwareswtichedtogit | /Qt/Core/pqPropertyLinks.cxx | C++ | cxx | 20,724 | permissive | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms of the ParaView lice... |
43f6883b9ba0c2b33eea963edd5e1682fe2bfeb6 | 714940addba61031a3115b2d8b72de17a7af916c | dwsindorf/VTX | /wx/VtxLayerTabs.cpp | C++ | cpp | 6,495 | no_license |
#include "VtxLayerTabs.h"
#include "VtxSceneDialog.h"
//########################### VtxLayerTabs Class ########################
enum{
OBJ_SHOW,
OBJ_DELETE,
OBJ_SAVE,
ID_NAME_TEXT,
ID_MORPH_SLDR,
ID_MORPH_TEXT,
ID_WIDTH_SLDR,
ID_WIDTH_TEXT,
ID_DROP_SLDR,
ID_DROP_TEXT,
ID_RAMP_SLDR,
... |
7a6d17a1a806f09de73560bb0845543dc3bf4da6 | b29b79d64390e0b2aab280f056ffa8f1a93b64bc | iyh/airplay2-win | /airplay2/lib/fdk-aac/libDRCdec/src/FDK_drcDecLib.cpp | C++ | cpp | 31,030 | permissive | /* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
The Fraunhofer FDK AAC Codec Lib... |
4336c6aa09dfcde4f71de0df719c4abf1ad6e11c | 6d040445dd8fa24eb32b5269f5c854ba8ee3dcb0 | karunmatharu/Android-4.4-Pay-by-Data | /external/chromium_org/content/renderer/pepper/pepper_truetype_font_win.cc | C++ | cc | 8,418 | permissive | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/renderer/pepper/pepper_truetype_font.h"
#include <windows.h>
#include <set>
#include "base/compiler_specific.h"
#include "base/mem... |
609de022b44e29172761d3aaf1877a7a4e5ec5fa | ed4253dce4b0c6d451b5e24a2bd8c0b557676cea | gsaieswar/faceretrack | /lbp.cpp | C++ | cpp | 5,702 | no_license | #include "opencv2/core/core.hpp"
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <iostream>
#include <fstream>
#include <sstream>
using namespace cv;
using namespace std;
static void read_csv(const string& filename, vector<Mat>& images, vector<int>& labels, char separator = ';'... |
aa02c956e2e1579e2b09fdc2adba399080db1a89 | d19eed7647cc882e72f3af383928defeffa098e1 | principal6/TCPBase | /Client/Client.cpp | C++ | cpp | 1,059 | no_license | #include "TCPClient.h"
#include <thread>
int main()
{
CTCPClient Client{};
Client.Connect("192.168.219.200", 9999);
std::thread thrReceive{
[&]()
{
while (true)
{
if (Client.IsLeaving()) break;
if (Client.Receive())
{
std::cout << Client.GetBuffer() << std::endl;
}
}
}
};
cha... |
d0c06eebb006ea1b561ba10daef2da786f81ac9c | a65bfd47604e4c61d92da241376fbfda4fd20224 | Hackergeek/C | /矩阵翻转/源.cpp | C++ | cpp | 470 | no_license | #include<stdio.h>
int main()
{
int i = 0, j=0;
int M, N, T;
int arr1[10][10]={0}, arr2[10][10]={0};
scanf_s("%d %d %d", &M, &N, &T);
for (i = 0; i<M; i++)
{
for (j = 0; j<N; j++)
{
scanf_s("%d", &arr1[i][j]);
}
}
for (i = 0; i<M; i++)
{
for (j = 0; j<N; j++)
{
if (T==1){
arr2[M-i-1][j]=a... |
5ca881f1c55331c53cc952566db1100f6db3b193 | 17b365a7286362ffe5fe48ab62bd922da0f3c355 | silky/lolremez | /src/solver.cpp | C++ | cpp | 12,697 | no_license | //
// LolRemez — Remez algorithm implementation
//
// Copyright © 2005—2017 Sam Hocevar <sam@hocevar.net>
//
// This program is free software. It comes without any warranty, to
// the extent permitted by applicable law. You can redistribute it
// and/or modify it under the terms of the Do What the Fuck You Want
//... |
c1b4a01cbcc3bf3a57f9f6350b15d77154b46018 | 4d1edd749a13297a6721ec34d4a099b7e9fc50a7 | alexandraback/datacollection | /solutions_5630113748090880_0/C++/monteiro/B.cpp | C++ | cpp | 1,858 | no_license | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack... |
b97ea63857334dc2088ce970fe3ed8440198ac9f | a590afbe7df45dde39ca4a99031e66903bb64531 | ksaveljev/UVa-online-judge | /10950.cpp | C++ | cpp | 1,721 | no_license | #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
string expected;
int num_of_results;
vector<char> result;
vector< pair<char, string> > codes;
bool theTruthIsOutThere(const pair<char, string> &a, const pair<char, string> &b) {
return a.first < b.first;
}
bool is_p... |
93afff0fd38539efbc65b1cfa3bc39a4bf6d02e9 | 8417a6306733bc6b181d3a1080ac26c0eaf88103 | Roxest/Lab12 | /lab12_1.cpp | C++ | cpp | 1,139 | no_license | #include <iostream>
#include <cmath>
using namespace std;
void stat(const double[],int,double[]);
int main(){
double A[] = {1.2,3.5,6.9,7.8,12.5,0.5};
int N = sizeof(A)/sizeof(A[0]);
double B[6];
stat(A,N,B);
cout << "Arithmetic Mean = " << B[0];
cout << "\nStandard Deviation = " << B[1];
... |
2cd96efffceabb799109fba903e6cec839123a3d | b3a3d55b36abc7e82bbca13919d1efb1e973e939 | strigazi/athena | /Generators/GeneratorFilters/src/DiPhotonFilter.cxx | C++ | cxx | 6,787 | permissive | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "GeneratorFilters/DiPhotonFilter.h"
#include <vector>
// Pt High --> Low
/// @todo Move to a sorting utils module
class High2LowByGenParticleClassPt {
public:
bool operator() (HepMC::ConstGenParticlePtr t1, HepMC::ConstGenPart... |
fadc08dbbf3d63aa471de2245c6668590cce87a6 | 8c3b1c6a857ca09d471c061973fad264e81ccddb | pu2oqa/muServerDeps | /_Include/boost/test/utils/runtime/env/environment.cpp | C++ | cpp | 1,185 | no_license | ////////////////////////////////////////////////////////////////////////////////
// environment.cpp
// (C) Copyright Gennadiy Rozental 2004-2014.
// Use, modification, and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boo... |
f56407fcbce29a8a52eb6fdf8bb38981a1591538 | 8475efa1212d50e1dc2468b7831e72bbd9818e7a | Alaxe/noi2-ranking | /2018/solutions/E/BLL-Sofia/beautiful.cpp | C++ | cpp | 5,254 | no_license | #include<iostream>
using namespace std;
int main(){
long long ProbvanoChislo,KolkoCifrenoDaE,NaKakvoDaSeDeli;
bool NamerihLiChislo=false;
cin>>KolkoCifrenoDaE>>NaKakvoDaSeDeli;
if(KolkoCifrenoDaE==1){
for(ProbvanoChislo=1;ProbvanoChislo<10;ProbvanoChislo=ProbvanoChislo+1){
if(ProbvanoChislo%NaKakvoD... |
6645b2b4a5fc8f3ae08098a2258090bcb516097d | 914fa203e6845887f3d87b02202e14442e9b22c4 | peter0749/OOP | /HW6/TestNumbers.cpp | C++ | cpp | 1,860 | no_license | #include "TestNumbers.h"
inline bool TestNumbers::isNumber(BaseNumber *base) {
Number* inst = dynamic_cast<Number*>(base);
return inst!=NULL;
}
inline bool TestNumbers::isTwoDigitNumber(BaseNumber *base) {
TwoDigitNumber* inst = dynamic_cast<TwoDigitNumber*>(base);
return inst!=NULL;
}
inline bool Test... |
9f9fd0ac9a5cf8ec070dcc5bb749d664ed1d7b02 | c16de913f40b622d4fb25d786823591fd5a908db | imxiangpeng/chromium | /chrome/browser/metrics/tab_stats_tracker_unittests.cc | C++ | cc | 2,060 | permissive | // Copyright 2017 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/metrics/tab_stats_tracker.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
#includ... |
f9b40a9ecdddfb503fd6204e68f111ad9cc58a15 | e4f434e01b9e469374e5ee6848ad3978d665e039 | amitkvikram/COMPETITIVE-PROGRAMMING | /codeforces/980a.cpp | C++ | cpp | 506 | no_license | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
int main(){
string s;
cin >> s;
int cnt_link = 0, cnt_pearls = 0;
for (int i = 0; i < s.size(); i++){
if(s[i] == '-')
cnt_link++;
else
cnt_pearl... |
f344085d504ed6462fca15ed7636929bf9debf9d | 07008386ec746ff41a552ac4a5ec3324d5bfa43a | Yogeshk4124/Codewar | /c++/6 kyu Rectangle into Squares.cpp | C++ | cpp | 302 | no_license | #include <vector>
using namespace std;
class SqInRect
{
public:
static std::vector<int> sqInRect(int lng, int wdth){
if(lng==wdth)return {};
vector<int>c;
while(lng!=0 && wdth!=0)
if(lng>wdth){c.push_back(wdth); lng=lng-wdth;}
else {c.push_back(lng); wdth=wdth-lng;}
return c;
}
};
|
c639c61aa641ec125cd19f4a488dfc97835cbcc8 | f5bbfad8614a20d7c6cb6040a5d646e8d47df3d5 | telishev/sneakPic | /src/gui/options_dialog.cpp | C++ | cpp | 1,374 | no_license | #include "gui/connection.h"
#include "gui/options_dialog.h"
#include "gui/settings.h"
#include "gui/utils/qt_utils.h"
#include <QCheckBox>
#include <QDialogButtonBox>
#include <QVBoxLayout>
class options_dialog_ui
{
QDialog *m_dialog;
QCheckBox *m_show_next_curve_preview_checkbox;
public:
options_dialog_ui (Q... |
6632232603de9587f7b1c1535802ed4dc2413751 | 13fee189f4edb9718c6bb2615d5f3ee60affae62 | ja754969/Cplusplus-Programming | /上課檔案/課本範例檔/chapter 03_基本輸出函式及輸入函式/資料準確度問題_範例9.cpp | C++ | cpp | 546 | no_license | #include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
float a=1.2345678901234567890f;
double b;
cout.precision(20);
cout.setf(ios::fixed);
cout << "a=" << a << '\n' ;
//1.23456788063049320000
a=12.345678901234567890f;
cout << "a=" << a << '\n' ;
//12.34567928314209000000
... |
92183d18b5289a74d90ee0ed34fd2b454b43cf7a | b43ff56f349019670cdb08a37ac9fa5f1efa53c1 | liangzelang/CPP_Primer_Plus | /chapter_11/example/example11.2/example11.2/main.cpp | C++ | cpp | 488 | no_license | #include <iostream>
#include "time.h"
int main()
{
Time time1(1,3);
Time time2(2,59);
Time total;
Time operator_total;
Time _total;
std::cout << "Time1 : \n";
time1.Show();
std::cout << "Time2 : \n";
time2.Show();
std::cout << "Sum : \n";
total = time1.Sum(time2);
total.Show();
std::cout << "OP : \n"... |
b1f1b07575f68ac29aed77159778b172d78f4326 | 3d4d6156710eae87b49f6303587b7260fa3bac33 | Csineneo/Vivaldi | /chromium/components/favicon/content/content_favicon_driver_unittest.cc | C++ | cc | 6,433 | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/favicon/content/content_favicon_driver.h"
#include <memory>
#include <vector>
#include "base/macros.h"
#include "base/run_loop.h"
#... |
b022f4caf345747ace4d65bfdd848edc05f3a51f | 2ebf1715e6fb05b0f0445b98a02e3c92da3d69ac | flaithbheartaigh/lemonplayer | /ScheduleMessage/Client/source/Views/src/MainScreenContainer.cpp | C++ | cpp | 7,525 | no_license | /*
============================================================================
Name : MainScreenContainer.cpp
Author : zengcity
Version : 1.0
Copyright : Your copyright notice
Description : CMainScreenContainer implementation
=========================================================================... |
0802355cda8d421b9fabbd72e8898854af3bd939 | a604f679db93e027d228aab706f317e708c46fa8 | chengwei920412/jittor-deep_learning | /extern/cuda/cudnn/ops/cudnn_conv_backward_x_op.cc | C++ | cc | 10,394 | permissive | // ***************************************************************
// Copyright (c) 2021 Jittor. All Rights Reserved.
// Maintainers:
// Dun Liang <randonlang@gmail.com>
// Guowei Yang <471184555@qq.com>
//
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of... |
0ce366eb9b253c643cc5307b659a44383d4042e4 | 8af71c744163ff935b28feb6d4d133c474e9edbf | jivibounty/irrlicht | /tags/release-1.5.1/source/Irrlicht/CGUIContextMenu.cpp | C++ | cpp | 16,707 | permissive | // Copyright (C) 2002-2009 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#include "CGUIContextMenu.h"
#ifdef _IRR_COMPILE_WITH_GUI_
#include "IGUISkin.h"
#include "IGUIEnvironment.h"
#include "IVideoDriver.h"
... |
ffd445a6b627a74e02b39897806edfafa1acaecf | cf6801becbeca08410cf9cdc770d24f355e9b8e8 | tedvalson/NovelTea | /src/core/TextInput.cpp | C++ | cpp | 1,055 | permissive | #include <NovelTea/TextInput.hpp>
#include <NovelTea/BBCodeParser.hpp>
#include <SFML/System/Err.hpp>
namespace NovelTea
{
TextInput::TextInput()
: textInputTrigger(nullptr)
, m_refCount(0)
{
}
TextInput &TextInput::get()
{
static TextInput obj;
return obj;
}
void TextInput::clean()
{
if (m_refCount == 0)
m_li... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.