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
559983827fa9e761faba73d5b459a725fa0dcdff
e083534e95817ce8186664f57bec4e1c4a9b5874
jack16888/bundlefusion_ubuntu1604
/mLibExternal/include/OpenMesh/Tools/Decimater/ModHausdorffT.hh
C++
hh
7,223
no_license
/* ========================================================================= * * * * OpenMesh * * Copyright (c) 2001-2015, RWTH-Aachen University * ...
7a1446055fd78d338b440061cfef6c6cda564e1f
85f0e5ae7c864fbc99c04fbe81a69c620c011810
jlowenz/castor
/includes/test/test_castor.cpp
C++
cpp
18,006
permissive
// Castor : Logic Programming Library // Copyright © 2007-2010 Roshan Naik (roshan@mpprogramming.com). // This software is governed by the MIT license (http://www.opensource.org/licenses/mit-license.php). #include <string> #include <iostream> #include <sstream> #include <vector> #include <stack> #include <lis...
5e2d4ab201752f3fc00fcf5d617c388efa7cfc12
fba05b84da4f2851bdfa261587de55433ce6f6b9
nikepupu/232B
/inference/filter.cpp
C++
cpp
5,925
no_license
#include "util/meta_type.hpp" #include "filter.hpp" #include "misc.hpp" #include "saot_config.hpp" #include <boost/log/trivial.hpp> #include <cmath> namespace AOG_LIB { namespace SAOT { void GaborFilter(double scale, int orient, cv::Mat &filter, cv::Mat &symbol) { int expand = 12; int h = static_cast<int>(floor...
3a01e4e66d8e19b3be2c4b08b2fe922dde7e3729
527a1e1e29ef81d0a6fd6e6c3a3c9f82b3dbfc14
xamarin/xamarin-android
/src/monodroid/jni/cpu-arch.hh
C++
hh
536
permissive
#ifndef __CPU_ARCH_H #define __CPU_ARCH_H #include <monodroid.h> #define CPU_KIND_UNKNOWN ((unsigned short)0) #define CPU_KIND_ARM ((unsigned short)1) #define CPU_KIND_ARM64 ((unsigned short)2) #define CPU_KIND_MIPS ((unsigned short)3) #define CPU_KIND_X86 ((unsigned short)4) #define CPU_KIND_X86_64 ((u...
9506a6e8e5baafa583c4176831741e8cab42d56f
97a12f3481a94c5aed2fdc4f072ef47e8d5171ff
KatOfCats/w2rap-contigger
/src/feudal/Oob.cc
C++
cc
978
permissive
/////////////////////////////////////////////////////////////////////////////// // SOFTWARE COPYRIGHT NOTICE AGREEMENT // // This software and its documentation are copyright (2010) by the // // Broad Institute. All rights are reserved. This software is supplied // ...
a1c49804196666c7b41fff46ada509363327582a
73c9a49f13bac72489071449cd06a3ce18f7f654
jetpotion/CPP-Design-Pattern
/Decorator/NameDecorator.cpp
C++
cpp
1,972
no_license
#include "NameDecorator.hpp" namespace WilliamZhang { namespace Decorator { NameDecorator::NameDecorator() : ShapeDecorator() { } NameDecorator::NameDecorator(const std::shared_ptr<Shape> obj, const std::string& m_name) : ShapeDecorator(obj), name(m_name) { } ...
b925bbc2295f2cadadb379241c798b7630831ad0
ede1a921b786a356b41a1f750836da47d25269b0
ks2659415/SinghKuldeep_CSC5_47472
/Homework/Assignment_2/Gaddis_8thEd_Chap3_Prob1/main.cpp
C++
cpp
975
no_license
/* * File: main.cpp * Author: Kuldeep Singh * Created on September 26, 2017, 6:00 PM * Purpose: Miles per Gallon */ //System Libraries Here #include <iostream> using namespace std; //User Libraries Here //Global Constants Only, No Global Variables //Like PI, e, Gravity, or conversions //Fu...
eb621848a3129212f2b455b7ffb8bad5d08fcf1d
f32ced48c90b871c747ee8b7922b54d459e6313f
PubFork/FS2Open_Trunk
/fs2_open-unstable_old/code/menuui/credits.cpp
C++
cpp
27,193
no_license
/* * Copyright (C) Volition, Inc. 1999. All rights reserved. * * All source code herein is the property of Volition, Inc. You may not sell * or otherwise commercially exploit the source or things you created based on the * source. * */ /* * $Logfile: /Freespace2/code/MenuUI/Credits.cpp $ * $Revision: 2.34 ...
a010b24dd337d52ae3d85ecde50fcb043b244263
a0d90a73bee65c481e76414fc81ee4525efd40d7
amitmarx/reviiyot
/src/Players/PlayerType2.cpp
C++
cpp
925
no_license
// // Created by amitmarx on 26/11/16. // #include <limits> #include "../../include/Player.h" CardRequest* PlayerType2::playTurn() { vector<Card*> inHand = getInHandCards(); int counter=1; int counterMin = std::numeric_limits<int>::max(); Card *cardAppearedLeast= inHand[0]; for(int i=0;i<inHand.si...
9d939192b0668355696d032a7cea70c721a6fbb8
b739d3c236e64624e0b0b3a29e7c13c1d71abdbe
libraua/complainer
/app/src/main/cpp/native-lib.cpp
C++
cpp
275
no_license
#include <jni.h> #include <string> extern "C" JNIEXPORT jstring JNICALL Java_online_khlivniuk_complainer_MainActivity_stringFromJNI( JNIEnv *env, jobject /* this */) { std::string hello = "Hello from C++"; return env->NewStringUTF(hello.c_str()); }
e67e5f18761ea9d202d895b014c7a3589fe18730
ad3133315cf8f163ccbd0f643d94ee004166d8d1
stothe2/mantid
/Code/Mantid/Framework/PythonInterface/mantid/api/src/Exports/WorkspaceHistory.cpp
C++
cpp
2,432
no_license
#include "MantidAPI/WorkspaceHistory.h" #include "MantidAPI/AlgorithmHistory.h" #include "MantidAPI/IAlgorithm.h" #include "MantidPythonInterface/kernel/Policies/RemoveConst.h" #include <boost/python/class.hpp> #include <boost/python/copy_const_reference.hpp> #include <boost/python/list.hpp> #include <boost/python/ope...
4e6172a34e8edf1d0acf77c801634ccded44e7ab
3021a96661e66b45f7ed5a07fb17c23c820325f9
Rex-Nemoresis/class11
/class11/t1.cpp
C++
cpp
1,186
no_license
/*#include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <iostream> using namespace cv; using namespace std; // Normalizes a given image into a value range between 0 and 255. Mat norm_0_255(const Mat& src) { // Create and return normalized image: ...
2012aa1ddb420d7c7128e82d7090c5e4be63464f
a3113b49f41ec670c81bf34c5bdde6b6c4d91d81
openharmony/third_party_flutter
/skia/third_party/externals/angle2/src/compiler/translator/blocklayoutHLSL.cpp
C++
cpp
5,297
permissive
// // Copyright 2013 The ANGLE 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. // // blocklayout.cpp: // Implementation for block layout classes and methods. // #include "compiler/translator/blocklayoutHLSL.h" #include "co...
9ec49cff6d52ddbdd6c5c9b95165b14f167824b8
62787ab30f33cb8f0ce91316b1342a0d93713cc9
fei0511/C--PrimerPLusCode
/C++PrimerPlus/chapter16/16-string类和标准模板库/16.02_strfile.cpp
C++
cpp
1,073
no_license
#include <iostream> #include <fstream> #include <string> #include <cstdlib> //功能:16.2 string类输入 //时间:2020年12月7日18:45:50 //int main() //{ // using namespace std; // // ifstream fin; // fin.open("tobuy.txt"); // if (fin.is_open() == false) // { // cerr << "Can't open file. Bye.\n"; // exit(EXIT_FAILURE); // } // std...
4bd27a003f1a685790fd68d7e4c6a749302beee8
44d3f3812ca5573afffe7195ec48d7b408153bc8
DaniLedesma1/My_Beginnings_Programming
/MasterMiner/juego.cpp
C++
cpp
11,491
no_license
//Daniel Ledesma Ventura //Nestor Marin Gomez #include "juego.h" #include <Windows.h> using namespace std; tTecla leerTecla(std::istream &m, tJuego &j) { if (j.modoEmpleo == 1) { int dir; cin.sync(); dir = _getch(); // dir: tipo int if (dir == 0xe0) { dir = _getch(); if (dir == 72) { ...
b0b7e916237bc50ea2d805c0becf9ccf4d7fe764
8fac7b004fd3f30970d1ad97edff9a4786ab75d8
monman53/online_judge
/CodeForces/0842/c.cpp
C++
cpp
1,312
no_license
// header {{{ // #define NDEBUG #include <bits/stdc++.h> using namespace std; // {U}{INT,LONG,LLONG}_{MAX,MIN} #define ALPHABET (26) #define INF INT_MAX #define MOD (1000000007LL) #define EPS (1e-10) #define EQ(a, b) (abs((a)-(b)) < EPS) #define CILING(a, b) (((a)+(b)-1LL)/(b)) te...
aa4d3e073e6922a88add3a81fccae22139c8d441
7b2e825de069daee87c7648bb427d9ef059f24f3
ChuanChinLai/LaiCraft
/ExampleGame_/ExampleGame/WorldMapSystem/Block/BlockFactory/CactusBlock.cpp
C++
cpp
428
no_license
#include "CactusBlock.h" LaiEngine::CactusBlock::CactusBlock() { m_texCord_Top = { 2, 0 }; m_texCord_Bottom = { 2, 0 }; m_texCord_Sides = { 4, 1 }; m_meshLoader.LoadFromFileObj("Assets/Models/cube.obj"); Mesh mesh; this->LoadFaceTop(mesh); this->LoadFaceBottom(mesh); this->LoadFaceSides(mesh); m_model...
6434dc7d079f16d0a0f4f4770c8976e37cd10cbf
2c2dcbaea7720547b3c55c37ce09e5390a0873b9
Rusto/openmediaplayer
/player/videonowplayingwindow.cpp
C++
cpp
36,105
no_license
/************************************************************************** This file is part of Open MediaPlayer Copyright (C) 2010-2011 Mohammad Abu-Garbeyyeh This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by ...
a05167a6f0149361f1d2e487251582eac091ad2c
bb6a329e9bc9ad1fd7d17115df067c43f2d52958
Kitware/vtk-examples
/src/Cxx/IO/WriteVTP.cxx
C++
cxx
712
permissive
#include <vtkCellArray.h> #include <vtkNew.h> #include <vtkPoints.h> #include <vtkPolyData.h> #include <vtkXMLPolyDataWriter.h> int main(int, char*[]) { // Create 10 points. vtkNew<vtkPoints> points; for (unsigned int i = 0; i < 10; ++i) { points->InsertNextPoint(i, i, i); } // Create a polydata obje...
a653114a8a78a549c3affa8e420f4fd3d2b39d1e
99d98c238682c130671930f8dd5301f64462ec1c
IMCG/Me-Operating-System
/MeOS/AHCI.cpp
C++
cpp
12,939
no_license
#include "AHCI.h" // private data and helper function HBA_MEM_t* abar; // PCI header Base address register 5 relative to the ahci controller uint32 AHCI_BASE = 0; uint32 port_ok = 0; // bit significant variable that states if port is ok for use char buffer[4096]; // TODO: Make one page buffer more lovely void* ...
9a5b613d0960e0770c002de3c9e056358e352e55
dc352531c0863c8e680bf4dde716ab2cdced0d31
yyamada12/atCoder
/abc/abc130_c.cpp
C++
cpp
1,215
no_license
#include <iostream> #include <iomanip> #include <vector> #include <set> #include <map> #include <queue> #include <deque> #include <algorithm> #include <cmath> #include <cstring> using namespace std; #define REP(i,n) for(int i = 0; i < n; i++) #define RREP(i,n) for(int i = n - 1; i >= 0; i--) #define ALL(v) v.begin()...
90328f89eb8ecd78c296e7b9b0c2c7030c6afcc5
0aea9ed555113ce6c6cdee759c772e953a69a489
leeyangjie/quiche
/gquiche/quic/core/qpack/value_splitting_header_list_test.cc
C++
cc
4,881
permissive
// Copyright (c) 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "gquiche/quic/core/qpack/value_splitting_header_list.h" #include "absl/base/macros.h" #include "absl/strings/string_view.h" #include "gquich...
5edb27a30f4f8edf7879323d9972fb8becba992b
0375e3ab25e556472c832b398a09479c5998f3f6
zhuysh1988/phosphor-host-ipmid
/psucommands.hpp
C++
hpp
1,984
permissive
#pragma once #include <cstdint> namespace inspur { // PSU GPIO configure static constexpr const int psuConf[2] = {320, 321}; static constexpr const uint8_t psuSubCmd = 0x00; static constexpr const uint8_t PSU_MFR_LEN (16); static constexpr const uint8_t PSU_MODEL_LEN (16); static constexpr const uint8_t PSU_SN_LE...
ac089c0d994e11cf52daa166017039a420486b34
7850b01cf1761d07a4cc129fbb87ba5ca368722f
jcd1994/MatlabTools
/Compiled/blaze-3.2/blazetest/src/mathtest/dmatsmatsub/LDaSCb.cpp
C++
cpp
4,165
permissive
//================================================================================================= /*! // \file src/mathtest/dmatsmatsub/LDaSCb.cpp // \brief Source file for the LDaSCb dense matrix/sparse matrix subtraction math test // // Copyright (C) 2012-2017 Klaus Iglberger - All Rights Reserved // // This fi...
37eaf8c11b24f05d611a9d1a5a29899ca769bc36
b0ed892cf365612ae3a96e0a6927c38bfd7ee970
BeomjoonGoh/vim-tutorial
/demo/folding/maths.cpp
C++
cpp
3,236
no_license
#ifndef MATHS_H #define MATHS_H #include <cmath> #include <limits> namespace Maths { // constants extern const double pi = 3.14159265358979323846264338327950288419716939937511; extern const double e = 2.71828182845904523536028747135266249775724709369995; extern const double Inf = std::...
7405524775f8cc8ab5847acc42eca2edbfcef78f
12e303893c508fea44d93dc94a97b6d68da931e6
Trisfald/mixme
/mixme/detail/check/comparison.hpp
C++
hpp
6,270
permissive
// Copyright (C) 2017 Andrea Spurio. All rights reserved. // // Licensed under the MIT License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // http://opensource.org/licenses/MIT // // Unless required by applicable law or agreed to in wri...
fafd67a0af6854bd14823493acb5e96194abbb9f
1579dfbd578e7ea9dee58bdb7441d4d22518801c
ddlee-cn/MXNet_contrib
/OPs/MultiProposalTarget/mxnet/multi_proposal_target.cc
C++
cc
21,890
no_license
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
ac651947c5d51846180b8d19baaec769608dc15a
ebd585f2e3139db9f7217e0d593b73cf977e1380
amecky/diesel2D
/utils/font.cpp
C++
cpp
3,227
no_license
#include "font.h" #include "..\utils\Log.h" namespace ds { namespace font { // ------------------------------------------------------- // Calculate size of text // ------------------------------------------------------- v2 calculateSize(const BitmapFont& bitmapFont, const char* text, int padding, float sca...
c956cbf056db28cfce07d17381c0c3e612abd700
d98f14de680a0500c95630d04fe12633c64cb618
sergioaraki/Graficos
/src/applicationui.hpp
C++
hpp
744
permissive
#ifndef ApplicationUI_HPP_ #define ApplicationUI_HPP_ #include <QObject> #include <bb/device/DisplayInfo> namespace bb { namespace cascades { class Application; class LocaleHandler; } } class QTranslator; /*! * @brief Application object * * */ class ApplicationUI : public QObject { ...
773102b8537458d9a401e2e36187e419ffd722d6
43907b4c83d9e0c2dcae9bb0b3d0c479b27242ec
alexandraback/datacollection
/solutions_5669245564223488_0/C++/lechjeda/gcj2014_1c_b.cpp
C++
cpp
2,693
no_license
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<utility> #include<vector> #include<queue> #include<set> #include<map> #include<string> #include<cmath> using namespace std; #define PB push_back #define PPB pop_back #define MP make_pair #define LL long long #define ULL u...
76c32805dd37bba282bc1cd945ef3ba5be05278b
e28423e1fc4e9a6ae231518a89ecb7c0b11ae4b3
smartin-13/openexr
/PyIlmBase/PyImath/PyImathRandom.cpp
C++
cpp
15,847
permissive
/////////////////////////////////////////////////////////////////////////// // // Copyright (c) 1998-2011, Industrial Light & Magic, a division of Lucas // Digital Ltd. LLC // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that ...
b4ee14c2387e740c05aed09da410dc4e5eab0707
941b6e8908adf62cc406264cd02d092253be670c
rfabbri/vxl-1
/contrib/brl/bseg/bvxm/pro/processes/bvxm_update_process.cxx
C++
cxx
5,483
no_license
// This is brl/bseg/bvxm/pro/processes/bvxm_update_process.cxx #include "bvxm_update_process.h" //: // \file #include <bprb/bprb_func_process.h> #include <bprb/bprb_parameters.h> #include <brdb/brdb_value.h> #include <vil/vil_image_view_base.h> #include <vpgl/vpgl_camera_double_sptr.h> #include <bvxm/bvxm_voxel_worl...
378aaffad552ee02af19cdaf7f26dbf238e60179
ac6ec287261b7b4bc2695ef4a29c7c529ce102f7
departed-trailblazer/swift
/lib/Serialization/ModuleFile.cpp
C++
cpp
43,467
permissive
//===--- ModuleFile.cpp - Loading a serialized module ---------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
af997f16eb53386a116cf3ef0c56a273b9f693c4
c11e02ba05e5fb8d882c0445490b3aed6941e62f
celestialkey/survival
/app/entities/Structure.hpp
C++
hpp
3,651
permissive
#ifndef APP_STRUCTURE_HPP #define APP_STRUCTURE_HPP #include "engine/app3D/physics/CollisionFilter.hpp" #include "engine/util/Trace.hpp" #include "Entity.hpp" #include <memory> namespace engine { namespace app3D { class RigidBody; class Model; } } namespace app { class StructureDef; class TurretComponent; class El...
0c29f84a62e825fbc591f5e855f5aab955ef6dda
85883043f756d66b63f276e76b90e409b4bd6248
danielperpar/Solution-learnopengl
/30.Breakout/post_processor.cpp
C++
cpp
4,830
no_license
/******************************************************************* ** This code is part of Breakout. ** ** Breakout is free software: you can redistribute it and/or modify ** it under the terms of the CC BY 4.0 license as published by ** Creative Commons, either version 4 of the License, or (at your ** option) any la...
107e2bfc851d1d23f48e704e88d7a2f2f2a53c10
bf473255128c13e408ae3a13bef63c907a2eeba6
JinKyong/Zelda
/zelda_triforce/zelda_triforce/InvenOpen.cpp
C++
cpp
742
no_license
#include "stdafx.h" #include "InvenOpen.h" HRESULT InvenOpen::init(Player * player) { return S_OK; } void InvenOpen::release() { } void InvenOpen::update() { controlKey(); } void InvenOpen::render(HDC hdc) { char str[128]; sprintf_s(str, "index : %d", INVENTORYMANAGER->getIndex()); TextOut(hdc, 10, 10, str, st...
6fc97d7077750858607b3d6178861d41a301f3f7
223b10adc0f7c3cd1c9dfae2b71f28f1d2952f3b
AimanCheong/MCTE_4342_Embedded_System_Design
/Weekly Assessments and Exercises/Week 2/pointers.cpp
C++
cpp
298
no_license
#include <stdio.h> #include <stdlib.h> #include <math.h> int main () { char c; char *p = &c; //pointer p points to c c = 32; printf ("%d \n", p); //print address of c printf ("%d \n", *p); //print the value of c printf ("%d \n", &p); //print the address of p }
8273188e614bebb882567bbc0ad654d658446e98
8262c1207de777fdd37b14a25e6d669589e68163
kimvs2001/-
/플밍수업 - 복사본/실습 문제들/2연결리스트/05. 연결 리스트 - 문제2.cpp
C++
cpp
2,842
no_license
#include <stdio.h> #include <stdlib.h> #include <string.h> struct node { int data; struct node * next; }; void print_list(struct node *); void insert_front(struct node **, int); void swap(struct node **, struct node **); struct node *sum_list(struct node *, struct node *); struct node *min_list(struct ...
275a82a47545e843b20f50aeb6ceb7eea27198cf
b1850ff71b0a4c651e9db864f2cb2bc5942238c3
wefoust/visualization
/mpas7/MPAS-Model/src/paraview_catalyst/Adaptor/MPASAdaptor.cxx
C++
cxx
18,854
permissive
#include "MPASAdaptor.h" #include "MPASAdaptorAPIMangling.h" #include "vtkFloatArray.h" #include "vtkDoubleArray.h" #include "vtkUnsignedCharArray.h" #include "vtkCell.h" #include "vtkCellArray.h" #include "vtkCellData.h" #include "vtkCellType.h" #include "vtkCPDataDescription.h" #include "vtkCPInputDataDescription.h...
bd3613d3d7301bc59057c4da9fbaa11fba5629a6
97bbd44221adc9acffb4d63f6009116fff401290
osdeverr/CXOS
/src/cx/os/kernel/devices/pci/pci_device.hpp
C++
hpp
562
no_license
// // pci_device.hpp // Kernel // // Created by Nikita Ivanov on 06.12.2020. // Copyright © 2020 CXOS Team. All rights reserved. // #ifndef pci_device_h #define pci_device_h #include <cx/os/kernel/devices/pci/pci_definitions.hpp> #include <cx/os/kernel/devices/pci/pci_subclass.hpp> #include <cx/os/kernel/devices/p...
efd6e1a53fa3cfe4728ea69721fb85b86b14794c
b3f9e602b4cbe4f8130bdfa9ff8f666a5d7f68b1
brendanreza/audiogridder
/Server/Source/App.cpp
C++
cpp
14,818
permissive
/* * Copyright (c) 2020 Andreas Pohl * Licensed under MIT (https://github.com/apohl79/audiogridder/blob/master/COPYING) * * Author: Andreas Pohl */ #include "App.hpp" #include "Server.hpp" #include "Screen.h" #include "Signals.hpp" #include "CoreDump.hpp" #ifdef JUCE_WINDOWS #include <windows.h> #include <stdlib...
f7eb8b37687afdaddb3a4104bb2156abcef7b0a6
6be31af70fce57e3e2022156f67e8195cd585bbf
HarshitDawar55/Algorithmic-Toolbox
/algorithmic_toolbox/week_4/03_divide_and_conquer_starter_files_20160804/binary_search/binary_search.cpp
C++
cpp
966
no_license
#include <iostream> #include <cassert> #include <vector> using std::vector; int binary_search_iterative(const vector<int> &a, int x) { int left = 0, right = (int) a.size(); while (left <= right) { int mid = left + (right - left) / 2; if (x == a[mid]) return mid; else if (x < a[mid]) ri...
1c1aa33ce9673239c7ab02aa43074e31a277b93c
486aea4bd7d5ccf681990e96b44ea966cb7e3130
Zehaos/onnx
/onnx/defs/nn/defs.cc
C++
cc
112,725
permissive
/* * SPDX-License-Identifier: Apache-2.0 */ #include <algorithm> #include <cmath> #include "onnx/defs/function.h" #include "onnx/defs/schema.h" namespace ONNX_NAMESPACE { const char* pads_doc = "Padding for the beginning and ending along each spatial axis, it can take any value greater " "than or equal to 0...
e3716cdb966b41342a99338fa9fb3ee0dd028252
e516ff3dab5dfa0c51dc432baf36c2523609663e
krzemien888/paro22-05
/tests/t.cpp
C++
cpp
565
no_license
#include <iostream> #include <ctime> #include <ratio> #include <chrono> int main () { using namespace std::chrono; high_resolution_clock::time_point t1 = high_resolution_clock::now(); std::cout << "printing out 1000 stars...\n"; for (int i=0; i<1000; ++i) std::cout << "*"; std::cout << std::endl; high_r...
2a8dac9c5a714b76f980bc648d59031b20399494
714c55c7312c66bc96caa118a05479215ef84939
KavyaSriChennoju/graphs
/kruskals algorithm.cpp
C++
cpp
2,832
no_license
#include<iostream> using namespace std; int s[15],b[10];int i5=0; int find(int x) { if(s[x]!=0) {int a=find(s[x]);} else return(x); } int findandcompress(int x) { if(s[x]!=0) { b[i5++]=s[x]; int a=findandcompress(s[x]); } else { int n=i5; for(int i1=0;i1<n;i1++) s[b[i1]]=x; int i1=0; return(x);...
b1a0cbbb37ab6d478667b55bb91ac62d303626f2
c24ee9b31943eccd9e9a83577ab5d49d3a6e416d
jonathenzc/Algorithm
/LeetCode/iter2/C++/BinaryTreePreOrderTraversal.cpp
C++
cpp
1,275
no_license
#include <iostream> #include <string> #include <algorithm> #include <vector> #include <sstream> #include <unordered_map> #include <unordered_set> using namespace std; struct TreeNode { int val; TreeNode *left; TreeNode *right; TreeNode(int x) : val(x), left(NULL), right(NULL) {} }; class Solution { public: vec...
ef520e2651a20e53026b6ba9faaa824df5d7953e
21d3ae60a03f67832648f7a6bdc15557d93e0ff5
qql7267/Cocos2dx
/Chapter04/ChapterFour04/Classes/HelloWorldScene.cpp
C++
cpp
1,821
permissive
#include "HelloWorldScene.h" #include "cocostudio/CocoStudio.h" #include "ui/CocosGUI.h" USING_NS_CC; using namespace cocostudio::timeline; Scene* HelloWorld::createScene() { // 'scene' is an autorelease object auto scene = Scene::create(); // 'layer' is an autorelease object auto layer = HelloW...
353c88babae8be58a364859140cf3a283174a24a
edce4bc5dfef4d1dcde258058af81df66816e52e
oopsmishap/nt_wrapper
/include/ntw/ob/job_info.hpp
C++
hpp
12,539
permissive
/* * Copyright 2020 Justas Masiulis * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
edbc558df8199f51658b9d32d50e179f6fad62db
ccbbed08c2b545164a155e44c11ba6a8e0faa592
wzj1988tv/code-imitator
/data/dataset_2017/dataset_2017_8_formatted_macrosremoved/sam721/3264486_5736519012712448_sam721.cpp
C++
cpp
613
no_license
#include <bits/stdc++.h> using namespace std; char S[100010]; int n, k; int main() { int t; scanf("%d", &t); for (int c = 1; c <= t; c++) { scanf("%s %d", S, &k); n = strlen(S); printf("Case #%d: ", c); int f = 0; for (int i = 0; i <= n - k; i++) { if (S[i] == '+') continue; ...
cea9fdf7ad91e2fe24a2a5ab72e555b54969811a
7a8e11543a4c7007c5e917238184b5111f76f951
reymontero/Leonardo
/src/turtle/turtle.hpp
C++
hpp
537
no_license
#ifndef TURTLE_HPP #define TURTLE_HPP #include <string> #include <memory> #include "../writer.hpp" class Turtle final { private: double pos_x = 0; double pos_y = 0; int rot = 0; std::string color = "#0000FF"; int pen_down = 0; std::unique_ptr<Writer> writer; public: Turtle(std::unique_ptr<Wri...
f0b9a7e0abaeb7d4b65e617005063686711a259d
070c16e67bdcb28cdaec4b36cf6aa84b98d03759
wernight/incubator-pagespeed-mod
/net/instaweb/rewriter/critical_css_beacon_filter_test.cc
C++
cc
16,967
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
65d9ef43b5b44d98802fcaa413feee7d1372c1c3
9df4f9d6c75ee0f5e8c05514c2a7cdd6779b230c
SWEG-BATCH2012-SECA-G5/school-billing-system
/projectk.cpp
C++
cpp
7,131
no_license
#include <iostream> using namespace std; int i,s; const int hl=50; const int pr=60; const int el=40; int elm=el*30; int elt=el*100; int ely=el*300; int hlm=hl*30; int hlt=hl*100; int hly=hl*300; int prm=pr*30; int prt=pr*100; int pry=pr*300; void addstud(); void school_expense(); void reciept(); v...
96acb5d866937bf3639b533cce3c78b89c74e796
a01a036cd7033b9b02e3f29e986b80177245214e
lsudduth/UnbreakableCoin_2017
/src/rpcserver.cpp
C++
cpp
41,996
permissive
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcserver.h" #include "base58.h" #include "init.h" #include "main.h" #include "u...
1e26893c90204891ff6cc9dd15fefe9401706539
c9d8a0be9d6ad5d4b0e8fb34a106249298924c81
fcatrin/rxAmigaAddOnAlt
/jni/core2/m68k/fame/m68k_intrf.cpp
C++
cpp
9,995
no_license
#ifdef DREAMCAST #include <kos.h> #endif #include <string.h> #include "sysconfig.h" #include "sysdeps.h" #include "debug_uae4all.h" #include "config.h" #include "uae.h" #include "options.h" #include "memory-uae.h" #include "custom.h" #include "autoconf.h" #include "ersatz.h" #include "savestate.h" ...
7ea0c1479f954c1d9b0f90a90d9bd8491696318d
42506f73d2fefdf4991d845c798949b6c9d5660e
DaveKoz/gulden-official
/src/test/base64_tests.cpp
C++
cpp
901
permissive
// Copyright (c) 2011-2015 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 "utilstrencodings.h" #include "test/test_bitcoin.h" #include <boost/test/unit_test.hpp> BOOST_FIXTURE_TEST_SUITE(b...
b8a9b60136722a24995ae2781103cca505b1bb2e
01330fd69dffc93802bd160031e888eb14c8a612
darkjedi9922/hotel-rooms
/classes/rooms/ApartmentRoom.cpp
C++
cpp
453
no_license
#include "ApartmentRoom.h" using namespace std; ApartmentRoom::ApartmentRoom(int number, ViewFromWindow *view) : Room(number, view) {} string ApartmentRoom::getInfo() const { return (string)"Апартаменты, аналог квартиры. Состоит из нескольких комнат и кухни"; } float ApartmentRoom::getDollarPrice() const { ret...
08242801e042f759e21a0c8f7a704b3c490c4ecd
bace33a16b6537b1af50f538b5f6b27ef7651c1a
hika24/DRINK
/tst/train-pairs.cpp
C++
cpp
9,686
no_license
/*! * \brief Test program for descriptor research. * \date March 13th, 2013. * \version 1.0 * \copyright GNU Public License * * \author Matheus Gadelha, Bruno Motta * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
28b4639a8717ea5c4358dfe436bc6b784e9f6940
a29c130585db6661cfa91e9809fba932481119b1
PeterTieu/Battle-Star
/player.cpp
C++
cpp
3,300
no_license
#include "player.h" #include "splashkit.h" //Obtain the Player bitmap corresponding to the enumerated kind bitmap player_bitmap(player_kind kind) { switch (kind) { case SKIN1: return bitmap_named("skin1"); case SKIN2: return bitmap_named("skin2"); case SKIN3: re...
51483e6af2203ec37b1cf26d01f2e293e5a9a63a
c0402cc53816d41779e7f162bef1c5c1ca2e705c
rtohid/blaze
/blazetest/src/mathtest/dmatdmatadd/LDbMDb.cpp
C++
cpp
3,943
permissive
//================================================================================================= /*! // \file src/mathtest/dmatdmatadd/LDbMDb.cpp // \brief Source file for the LDbMDb dense matrix/dense matrix addition math test // // Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved // // This file i...
22a74e37c1b82993cfd81ec4de94e6fb6620bc46
91bb4709c2770b24687b60030e462fe831ceb1ff
DanielLinsc/evosoro
/evosoro/_voxcad/voxelyzeMain/main.cpp
C++
cpp
5,377
permissive
#include <iostream> #include "VX_Object.h" #include "VX_Environment.h" #include "VX_Sim.h" #include "VX_SimGA.h" #include "VX_MeshUtil.h" #include "VXS_SimGLView.h" int main(int argc, char *argv[]) { char* InputFile; //create the main objects CVXC_Structure structure; CVX_Object Object; CVX_Environm...
d9667476ac2425a84d83e5758fc7e6f3d00ce2c3
28005063a99da43c264f51b8a89f1491fc9ffd74
vinnamkim/navigation2
/nav2_tasks/include/nav2_tasks/navigate_to_pose_action.hpp
C++
hpp
2,245
no_license
// Copyright (c) 2018 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agr...
0491ec93a11e169fe64a04907b7279e5901b3e1b
c27465939142809bec983218efaaf9ce04c723fb
extdata/BubbleSortBeta
/BubbleSortBeta.cpp
C++
cpp
1,318
no_license
#include <iostream> #include <cstdlib> #include <ctime> using std::cout; using std::cin; bool change( int &, int & ); bool change( double &, double & ); int main() { srand(( int ) time( 0 )); int valor1 = rand() % 10 + 1; int valor2 = rand() % 10 + 1; int valor3 = rand() % 10 + 1; int valor4 = rand() % 10 + 1; ...
4d44bf36e199e891123e1d5c3538d143fd56fff3
cc8895e6718313c87c55e3446dca3b81caf3db4e
IgorBoyarshin/NetNest
/user2.cpp
C++
cpp
6,280
no_license
#include <iostream> #include<cstring> // memset() #include <unistd.h> // close socket #include <arpa/inet.h> // inet_aton() #include <netinet/in.h> #include <sys/socket.h> #include <sys/types.h> #include <errno.h> #include <signal.h> #include <sys/wait.h> #define PORT_SELF 2344 #define PORT_REMOTE 2343 void handl...
0fbecbc30082661d3ecc6a9880481a08fc16363a
e38d3c071e1f259c8466b22f6aa63506f22dada9
mackode/castLabs-cpp
/downloadtask.cpp
C++
cpp
1,616
no_license
#include <iostream> #include <QFileInfo> #include <QCoreApplication> #include <QDir> #include "downloadtask.h" DownloadTask::DownloadTask(const QString &url) : networkManager(new QNetworkAccessManager(this)), url(url) { connect(networkManager.data(), SIGNAL(finished(QNetworkReply *)), this, SLOT(finishe...
133b2e478df6b0efbd3dfd443d0839b7ed86d74c
fe2577e1e9730947fb52f3a79d8c18eaaad1cdca
alexandraback/datacollection
/solutions_5753053697277952_1/C++/Ballball/1.cpp
C++
cpp
1,343
no_license
#include<iostream> #include<fstream> #include<vector> #include<string> using namespace std; const int MAXN = 26; int a[MAXN]; int N; int count[10]; int chooseOne() { int ans = -1; int max = 0; for (int i = 0;i<N;i++) if (a[i]>max) { max = a[i]; ans = i; } return ans; } bool vali...
091126e4435315bf9eef8b589a5aedc4c7893f42
6789a45b91a645f4e90ca5ab190519b1a2434e64
yandod/processwarp
/src/builtin_posix.cpp
C++
cpp
1,242
permissive
#include <cassert> #include <cinttypes> #include <cstring> #include "builtin_posix.hpp" #include "vmachine.hpp" using namespace processwarp; // __assert_fail(assertの内部実装)関数。 bool BuiltinPosix::__assert_fail(VMachine& vm, Thread& th, BuiltinFuncParam p, vaddr_t dst, std::vector<uint8_t>& src) { // パタメタを読み取り ...
61f74d1dbe8aa76d552992b43c08c73ac61bafaa
0a0dc823e6a0c7e67e7feefa08dc097253036481
joshemorris/astar
/random_board.cpp
C++
cpp
1,857
no_license
// Josh Morris // CSCI 4160 // OLA 1 - Random Board // 9/28/17 #include <iostream> #include <stdlib.h> using namespace std; void swap(int board[3][3], int zeroCord[2], int swapCord[2]); int main(int argc, char* argv[]) { int board[3][3]; int zeroCord[2] = {0, 0}; // {x, y} // check number of arguements if (ar...
566453ffeab3dc1c4b138d95bfecab0afb908d17
3102327572eb31133c334dbcb0eef778e75f7745
imyzx2017/mindspore_pcl
/mindspore/ccsrc/frontend/parallel/ops_info/gather_v2_p_info.cc
C++
cc
29,017
permissive
/** * Copyright 2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
2c5f77d32e479531e3472eccd079e2792a228749
1318835de705bffd00d778e18f6022c7f599fb0c
haloservices/haloservices-source
/src/kernel.cpp
C++
cpp
23,585
permissive
// Copyright (c) 2012-2013 The PPCoin developers // Copyright (c) 2014 The HaloCoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp> #include "kernel.h" #include "txdb.h" using...
ea84d8e1e451bd2ae8c2d9a2b03ff96e687a15c2
08b6e66d94bb58a9d598e689a283571aab4c3e92
jcarrier0026/dbz
/input.cpp
C++
cpp
632
no_license
#include "input.h" void Input::BeginNewFrame() { pressed_keys_.clear(); released_keys_.clear(); } void Input::KeyUpEvent(const SDL_Event& event) { released_keys_[event.key.keysym.scancode] = true; held_keys_[event.key.keysym.scancode] = false; } void Input::KeyDownEvent(const SDL_Event& event) { pressed_ke...
abd325ae70d156d990a51fb48cc2ff32f7929432
bde03f0776c551a54c50e7b02a5d60f8eb02e937
jerilseb/node-native-bindings
/addon-src/hello.cc
C++
cc
1,359
no_license
#include <nan.h> const int maxValue = 10; int numberOfCalls = 0; NAN_METHOD(WhoAmI) { auto message = Nan::New<v8::String>("I'm a Node Hero!").ToLocalChecked(); info.GetReturnValue().Set(message); } NAN_METHOD(Increment) { if (!info[0]->IsNumber()) { Nan::ThrowError("Argument must be a number")...
0dc28317a30ec869fd403fbe81d2561ab347d066
4af1abdfb3ab9855110315ee7310748dd308cb92
Vieper1/MemoryManager
/Engine/String/String.cpp
C++
cpp
1,045
no_license
#pragma once #include "String.h" bool String::ReadString(char* &str) { int size = 0; char c; while ((c = std::cin.get()) != '\n') { if (size > 0) { char* temp = new char[size]; StringCopy(str, temp, size); delete[] str; str = new char[++size + 1]; str[size - 1] = c; StringCopy(temp, str, si...
8df173d60be8d2b82115b6021a4849124ccec490
6fcee3057d36020fc3e293810f5df1a9c512f5d6
SkrShadow/Zircon
/system/utest/debugger/inferior-control.cc
C++
cc
17,103
permissive
// Copyright 2016 The Fuchsia 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 "inferior-control.h" #include <elf.h> #include <inttypes.h> #include <link.h> #include <stdarg.h> #include <stdbool.h> #include <stdlib.h> #inclu...
769b7e637df00e53ffac16015fb61ea1e58fdae7
5e429c0629213218b2274ab3c71f908df2e5e565
niuxu18/logTracker-old
/second/download/git/gumtree/git_repos_function_749_last_repos.cpp
C++
cpp
574
no_license
const char *current_config_origin_type(void) { int type; if (current_config_kvi) type = current_config_kvi->origin_type; else if(cf) type = cf->origin_type; else die("BUG: current_config_origin_type called outside config callback"); switch (type) { case CONFIG_ORIGIN_BLOB: return "blob"; case CONFIG_ORI...
25dcb1dcfade69e11d0375834834b2a8ac46135b
59e2ba2391b744dbfcd2af146adfed4e037bfc1e
VALINT/AVR-EXAMPLES-
/ADC/1509_ADC/1509_ADC/1509_ADC.cpp
C++
cpp
3,406
no_license
#include <avr/io.h> #include <avr/delay.h> #include <avr/interrupt.h> #include <math.h> #define indicator_port PORTD #define digita PORTB unsigned int digit,amp,hgr,dec,uni,volt,adc,data,ini = 0; int voltage,amparage,acpd; int symbol(int x); //Функція стартової ініціалізації периферії void initial(v...
5f8364c748ad82ab8c2f327ea147c6a380d43fd6
cc60b218508457aecd11eda2d1eea743d71e54bc
firmread/fuseVJ
/v4-flockAudienceOSC/src/testApp.cpp
C++
cpp
6,807
no_license
#include "testApp.h" // comparison routine for sort... bool comparisonFunction( particle * a, particle * b ) { return a->pos.x < b->pos.x; } //-------------------------------------------------------------- void testApp::setup(){ ofBackground(0, 0, 0); ofSetVerticalSync(true); ofSetFrameRate(60); ofEn...
f04558870865e7657b65d2be9eaee1faafbf3559
1f63b4fbff490ecae1041fb77a26b4ab7acaac58
jmirabel/hpp-constraints
/include/hpp/constraints/active-set-differentiable-function.hh
C++
hh
2,770
no_license
// Copyright (c) 2017, Joseph Mirabel // Authors: Joseph Mirabel (joseph.mirabel@laas.fr) // // This file is part of hpp-constraints. // hpp-constraints is free software: you can redistribute it // and/or modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation,...
ab78c662ee9ba8586f096fdd170aaf5cd70e1a52
1dac7a270f1211be8153b14a8f3e9f57c1703e02
RafikFarhad/Code_is_fun
/Others/Test 18 [Graph] [CSE 2013-2014] [17-01-2017]/B - Critical Linkss.cpp
C++
cpp
5,894
no_license
/*De La Grandi Mephistopheles*/ #include <cstdio> #include <iostream> #include <string> #include <cstring> #include <math.h> #include <ctime> #include <cstdlib> #include <algorithm> #include <new> #include <vector> #include <stack> #include <queue> #include <map> #include <set> #include <list> /****...
22f7094739935d5dd21c1274959f9c5c1ab10497
79590cb035ced59fab810bcb64d7e566c00df3f4
sansajn/osmut
/road_render/osm_map.cpp
C++
cpp
4,618
no_license
#include <agg_basics.h> #include "agg_rendering_buffer.h" #include "agg_rasterizer_scanline_aa.h" #include "agg_conv_stroke.h" #include "agg_conv_dash.h" #include "agg_conv_curve.h" #include "agg_conv_contour.h" #include "agg_conv_smooth_poly1.h" #include "agg_conv_marker.h" #include "agg_arrowhead.h" #include "agg_vcg...
eada20949bef90be43faa9e754ac017add217b1f
09e3ead6cebf223ab3c943a16974c6b7f4a88103
kazuki-sakurai/Atom-work
/analyses/ATLAS_1405_7875/ATLAS_1405_7875.cc
C++
cc
15,654
no_license
/// /// @file 1405_7875.cc /// @brief Implementation of 1405_7875 analysis /// @author Kazuki /// @date created 04/15/2015 /// @date last revision 04/15/2015 /// // -*- C++ -*- #include "Atom/Analysis.hh" // use the stock set or include only the projections you use from "include/Atom/Projections/" directory if compil...
f92fba7c044d1f262c348198e7953ef8d33f7c4e
3abaf4f858b6d48d27b2ceb93f51d40d79f772db
randombit/botan
/src/lib/mac/siphash/siphash.cpp
C++
cpp
3,085
permissive
/* * SipHash * (C) 2014,2015 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include <botan/internal/siphash.h> #include <botan/internal/fmt.h> #include <botan/internal/loadstor.h> #include <botan/internal/rotate.h> namespace Botan { namespace { void SipRounds(uint64_t M, se...
bebf83395b007deca147905b28a8c71ec338f749
9979ef579d8897923302132d47c9865566e2ec8f
Eli-yp/cprimer_test
/seven_chapter/7_41.cpp
C++
cpp
444
no_license
#include<iostream> #include<string> using namespace std; class Screen{ public: typedef string::size_type pos; Screen(pos ht, pos wd, char c) : height(ht), width(wd), contents(ht * wd, c) { cout << "委托函数" << endl; } Screen(): Screen(3, 5, '#'){}; Screen(istream &is): Screen(){ cout << "istream" << endl; }...
96ddd46774dc4d386e1bdd70a6a550a332b6cb5f
cad8f32ad844497783dd288e273e484ed099db33
freebsd/freebsd-ports
/games/burrtools/files/patch-src-halfedge-polyhedron.cpp
C++
cpp
702
permissive
--- src/halfedge/polyhedron.cpp.orig 2013-05-08 19:02:06 UTC +++ src/halfedge/polyhedron.cpp @@ -206,12 +206,12 @@ void Polyhedron::finalize(void) // add the edge, to make sure we don't process it again handeled.insert(idx); - map<pair<int,int>, HalfEdge*>::iterator cit = connections.find(idx); + mult...
bd6c64548f14fdea2b3e51d37374ef1651b7085d
aa7da583416dca1b5c5e561e9b2446fdc2415a5b
Alohahah/leetcode-1
/P65/P65/Source.cpp
C++
cpp
879
no_license
#include <iostream> #include <string> using namespace std; class Solution { public: bool isNumber(string s) { int i = 0; // skip the whilespaces for(; s[i] == ' '; i++) {} // check the significand if(s[i] == '+' || s[i] == '-') i++; // skip the sign if exist int n_nm, n_pt; for(n...
031b6ea0b4c2ddda0b560e1caa8dabaf28f518a9
4c46e7af0dde422385e5cc764781596f2c21e2e4
HaikuArchives/FeedKit
/Server/Main.cpp
C++
cpp
2,580
permissive
#include "FeedServer.h" #if 0 #include <Message.h> #include <String.h> #include <map> #include <Flattenable.h> class FlatTest : public BFlattenable { public: int32 value; // BFlattenable Hooks status_t Flatten(void *buffer, ssize_t numBytes) const { BMessage msg; msg.AddInt32("value", value); printf("Val...
ac294c111498efecc62536ff052e8a094827bb0e
f1f661bdb951bd35093c75a7b95801c7642bc3ba
renwotao/quic
/libquic/src/net/spdy/spdy_pinnable_buffer_piece.cc
C++
cc
931
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. #include "net/spdy/spdy_pinnable_buffer_piece.h" namespace net { SpdyPinnableBufferPiece::SpdyPinnableBufferPiece() : buffer_(0), length_(0...
dbc4ec3a9a1c7b7c34bdb33e7ce6d78cadc2af44
64ba6966588515ce0612d66a98233e1a74935879
townboy/acm-algorithm
/HDOJcode/3844 2013-05-03 16 30 06.cpp
C++
cpp
3,081
no_license
****************************** Author : townboy Submit time : 2013-05-03 16:30:06 Judge Status : Accepted HDOJ Runid : 8224907 Problem id : 3844 Exe.time : 671MS Exe.memory : 9908K https://github.com/townboy ****************************** #include<stdio.h> #include<iostream> #include...
5d7298b1ee58cd52bf77e28fd31f6fcfc90ce996
64e728e421b62a71aab38b2584233428b91d304b
brandonneth/hpctoolkit-demo
/hpctoolkit-lulesh-v2.0-RAJA-seq.exe-database/src/home/brandonneth/LLNL/RAJALC/RAJA/include/RAJA/util/View.hpp
C++
hpp
7,838
no_license
/*! ****************************************************************************** * * \file * * \brief RAJA header file defining a multi-dimensional view class. * ****************************************************************************** */ //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
40ef452c33812eb746c88861b6120d2e718ebd44
47faa0739899e03f9192671a1173871a2ea6e98d
aranajhonny/chromium
/chrome/browser/chromeos/external_metrics_unittest.cc
C++
cc
2,223
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 "base/file_util.h" #include "base/files/scoped_temp_dir.h" #include "base/memory/scoped_ptr.h" #include "base/metrics/statistics_recorder.h" ...
4f0d89fc5578bd38fd78db7bffb58525ab48c44b
038b8f79bdb41214b2290dc02450b7cd19aa7c06
flanbel/DECIDE
/fbEngin/GraphicsDevice.cpp
C++
cpp
2,569
no_license
#include "GraphicsDevice.h" CGraphicsDevice::CGraphicsDevice(void){ } /************************************************/ /* InitD3d関数 */ /*機能:Direct3Dデバイス・オブジェクト初期化  */ /*引数: */ /* hWnd:ウィンドウハンドル */ /*戻り値:成功(S_OK)か失敗(E_FAIL)か */ /************************************************/ HRESULT CGrap...
a751af83d11db1a91722d2298a1c340f0188ee4e
887fdec072654ac074b20ed724e112b9ef7e12f2
otcshare/chromium-src
/content/browser/accessibility/browser_accessibility_manager_auralinux_unittest.cc
C++
cc
4,876
permissive
// Copyright (c) 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/accessibility/browser_accessibility_manager_auralinux.h" #include <atk/atk.h> #include "content/browser/accessibility/brow...
e7ad4879fee1a8ab525e8a544ecbe5cd04d60319
9b91e9f2b2c55b7f2aa549e96028d7f54362a16d
sunder67/neutrinohd2
/nhd2-exp/src/gui/moviebrowser.cpp
C++
cpp
130,461
no_license
/*************************************************************************** Neutrino-GUI - DBoxII-Project Homepage: http://dbox.cyberphoria.org/ $Id: moviebrowser.cpp,v 1.10 2013/08/18 11:23:30 mohousch Exp $ Kommentar: Diese GUI wurde von Grund auf neu programmiert und sollte nun vom Aufbau und auch den...
bbb331323e21583f7e57d2bb16bf8141109803be
d673b14583b3f6945835b0a79dec67f2f321e2e7
mmerabet42/ECS-System
/Component.hpp
C++
hpp
900
no_license
/* A component stores data for an object */ #pragma once #include "Notifiable.hpp" namespace dn { // A component is a notifiable, it notifies the object it is attached to, if its active state changes. struct Component : public dn::Notifiable<> { Component() : _active(true) ...
30d3c1bac0c152df43b25b953a91d161c7baee1b
1eeaf27954f3676e728bb48aa21bddce02c79828
olowal/secret
/Source/secret/Angelscript/Bind_AnimMontage.cpp
C++
cpp
1,246
no_license
#include "Engine/Engine.h" #include "Animation/AnimMontage.h" #include "AngelscriptCodeModule.h" #include "UObject/UObjectIterator.h" #include "AngelscriptManager.h" #include "AngelscriptType.h" #include "AngelscriptBinds.h" #include "StartAngelscriptHeaders.h" #include "as_objecttype.h" #include "EndAngelscriptHe...
6162bad4fb64e9461e0249227f087a82a6b53474
6eef6e90095fbf30cbaf3e18f1c54194d3cced7c
Jylhis/Lappbill
/settingsdialog.cpp
C++
cpp
3,711
permissive
/* * SPDX-License-Identifier: BSD-3-Clause * Copyright (c) 2017 Markus Jylhänkangas */ #include "settingsdialog.hpp" #include "ui_settingsdialog.h" SettingsDialog::SettingsDialog(bool first, DatabaseStruct *db, QWidget *parent) : QDialog(parent), databaseInstance(db), ui(new Ui::SettingsDialog) { ui->setupUi...
0953ad3c0a05e3ba5f4a77cbbd76d58b152c1cfc
7464e3ac50d751a406c9cd8724d346f4a2ca3166
DDan1l232/SoT-SDK
/SDK/SoT_BP_GH_Rank14_RankDesc_functions.cpp
C++
cpp
364
no_license
// Sea of Thieves (2.0.17) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "SoT_BP_GH_Rank14_RankDesc_parameters.hpp" namespace SDK { //--------------------------------------------------------------------------- //Functions //--------------------------------------------------------------------------- }...
f443fbe3f2880af22de5c0b3da0f4951422bf88e
f6010ff9708e7ebff4d2dd7768e7524875589515
RafaelAgcaoili/Misc-Projects
/C++ Projects/3DOpenGL/3DOpenGL/mesh.cpp
C++
cpp
1,151
no_license
#include "mesh.h" Mesh::Mesh(Vertex* vertices, unsigned int numVertices) { drawCount = numVertices; std::vector<glm::vec3> positions; std::vector<glm::vec4> colors; for (unsigned int i = 0; i < numVertices; i++) { positions.push_back(vertices[i].pos); colors.push_back(vertices[i].color); } glGenVertexArr...
373301a644f90a9059220836c1c350d9aa0825be
35e6e543a44b38360f62b83a6861e43100a51ea6
cmitash/PhysimGlobalPose
/src/physim_pose_estimation/src/segmentation/Segmentation.hpp
C++
hpp
1,018
no_license
#ifndef SEGMENTATION #define SEGMENTATION #include <common_io.h> #include <GlobalCfg.hpp> #include <SceneCfg.hpp> namespace segmentation{ class Segmentation{ public: Segmentation(); ~Segmentation(); void compute3dSegment(scene_cfg::SceneCfg *sCfg); virtual void compute2dSegment(GlobalCfg *gCfg, scene_cfg:...
eca2e0d0ab674152a09a32cb4ed9f06c40c34160
9f9f31139c9c86e0e7c06321186f33d50e6d3907
hoaf13/SPOJ_PTIT_DSA
/P172SUMC.cpp
C++
cpp
228
no_license
#include<stdio.h> #include<math.h> int main(){ long n; scanf("%ld",&n); if (n%4==0){ printf("6"); } if ((n+1)%4==0){ printf("2"); } if ((n+2)%4==0){ printf("4"); } if ((n+3)%4==0){ printf("8"); } return 0; }
8db37f45cd923f49b5d583d1aeb33f4232c3d047
307ed3bfcd4a1ea8b32b0a13d501946b1c0a276a
Sondro/iree
/iree/hal/host/async_command_queue_test.cc
C++
cc
8,315
permissive
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...