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
9a2fa4205b5008ca0167ff6b4a58feda564cba7d
c372d20eb65551afde5831ea32a2f09101f85060
codyat/Dodge
/bird.cpp
C++
cpp
1,306
no_license
#include "bird.h" Bird::Bird() :x_add(true), y_add(false) { time(&t); srand(t); Point p = get_random_number(); c = Circle(p,1,WHITE, true); } bool Bird::check_bottom() { return ( c.get_center().get_y() - c.get_radius() > 0); } bool Bird::check_left() { return ( c.get_center().get_x() - c.get_r...
35f5e93080c32b0cab7fb9f247b7182be8b2f786
9303549406a0137d162d75b9332ea978cbcb498a
Kronuz/constexpr-phf
/hashes.hh
C++
hh
2,097
permissive
/* * Copyright (C) 2018 German Mendez Bravo (Kronuz) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modif...
3e25018315db5750c2411bcc3b0b5d2cc52e2226
d4cec0522b84a09c904aa4bb7f30637fcf727dac
blackberry/Boost
/libs/multi_array/test/storage_order.cpp
C++
cpp
3,702
permissive
// Copyright 2002 The Trustees of Indiana University. // Use, modification and distribution is subject to 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) // Boost.MultiArray Library // Authors: Ronald Garcia // ...
7d256fd802fb5d59f260d7fa04541ae04946efe0
127a7baa12893a3b59c9e631134acdfc2e248cc1
linouk23/leetcode
/310.cpp
C++
cpp
2,212
no_license
// 310. Minimum Height Trees - https://leetcode.com/problems/minimum-height-trees #include "bits/stdc++.h" #include "gtest/gtest.h" using namespace std; class Solution { public: vector<int> findMinHeightTrees(int n, vector<pair<int, int>> edges) { if (edges.empty()) { vector<int> result(n); ...
54b94b1d51723af3f50383cd52e2d165ef34e014
b8ea1aa882d497f7d3523fc97d73eca62dcce324
stainlessio/dailyofx
/chronodex/src/label.cpp
C++
cpp
2,191
permissive
#include "ofMain.h" #include "constructors.h" #include "interfaces.h" class Label : public ILabel { public: static float S_LABEL_PADDING; Label(std::string text) : Label(text, new_connector({0,0}, {0,1})) { } Label(std::string text, IConnector *connector) : m_value(text) , m_conne...
2ad5307a112b004950d57b1d62e9ebbb1cdb0771
55aaf63fb46651734550aa85d42ebd98368b1a04
ChunHuCui/pgina-nfc-login-plugin
/rfidLoginPlugin.cpp
C++
cpp
4,199
no_license
/* Adapted from pGina Dummy plugin skeleton example code */ #include "stdafx.h" #include <wchar.h> #include <tchar.h> #include <cstdio> #include "rfidLoginPlugin.h" #include "users.h" static int getUIDfromNFC(); static void printCStr(char * cString); static void printCStr(char * cString, char *title...
a559361bf67335cb3cfd957f9ededc43da7f1df5
956c75204891e8f28e33a2534923f6cd385efd36
AkiLotus/AkikazeCP
/Vault/Codeforces Rounds/CFR502/CFR502A.cpp
C++
cpp
4,382
no_license
/********************************************************** * Code written by Akikaze * * Duy-Bach Le, #Team4T's Chief Executor * * #Team4T Tertiary Flagship - Oblivion * * * * Written by a ...
c976dfec682e0332cf8f4d900ba3c280692c1d9d
2805d8e7e006bea1e13173e0a6702f79a66f0b9f
IAmAnubhavSaini/cryptoAlgorithm-nt5src
/Source/XPSP1/NT/multimedia/directx/dxg/ref8/drv/refif.hpp
C++
hpp
1,893
no_license
//---------------------------------------------------------------------------- // // refif.hpp // // Refrast front-end/rasterizer interface header. // // Copyright (C) Microsoft Corporation, 1997. // //---------------------------------------------------------------------------- #ifndef _REFIF_HPP_ #define _REFIF_HPP_ ...
f97ca6ccb068be4575daf008451fc4473f6807b8
5114744c22f5153202b21f95e468323e63eb050e
wuyi5151/concord-bft
/util/include/MetricsServer.hpp
C++
hpp
2,096
permissive
// Concord // // Copyright (c) 2019 VMware, Inc. All Rights Reserved. // // This product is licensed to you under the Apache 2.0 license (the "License"). // You may not use this product except in compliance with the Apache 2.0 // License. // // This product may include a number of subcomponents with separate copyright ...
aad77af45e1b7d829b50dda854d254ef0ae4bd9d
55724a0cb9c9715f92ce754191d2e8f1d96ae0ee
fradav/HighFive
/include/highfive/h5easy_bits/H5Easy_xtensor.hpp
C++
hpp
2,921
permissive
/* * Copyright (c), 2017, Adrien Devresse <adrien.devresse@epfl.ch> * * 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) * */ #ifndef H5EASY_BITS_XTENSOR_HPP #define H5EASY_BITS_XTENSOR_HPP #inclu...
1510bd86477b3856f308f4c7b9d24bd6c53d7780
375e4e1a574ddf197dc12795440df40cd4e729d3
myfortune110/720PanoramaViewer
/720Core/SettingHlp.cpp
C++
cpp
1,752
permissive
#include "stdafx.h" #include "SettingHlp.h" #include "CStringHlp.h" #include "720Core.h" SettingHlpInternal::SettingHlpInternal(LPCWSTR setttingFilePath) { wcscpy_s(this->setttingFilePath, setttingFilePath); } SettingHlpInternal::~SettingHlpInternal() { } bool SettingHlpInternal::GetSettingBool(LPCWSTR key, bool def...
5e214a0ee71b8fdcccfc3f7c670a1b52ee6e9b12
d3bfcad70778097208ce6080d7e4582cdd9dda2f
jacobsologub/oscpack
/oscpack.cpp
C++
cpp
626
permissive
// // oscpack.cpp // oscpack // // Created by Jacob Sologub on 8/17/18. // Copyright © 2018 Jacob Sologub. All rights reserved. // #include <cstddef> #include "osc/OscTypes.cpp" #include "osc/OscOutboundPacketStream.cpp" #include "osc/OscReceivedElements.cpp" #include "osc/OscPrintReceivedElements.cpp" #include "i...
c6ce8fbb1b232dbd6b241e538b7850f58f874203
f33f242e16566bd4faed4a1dc87d11f14a73400d
DuyTran1234/1000ExerciseC-
/Chuong 7 - Ma tran vuong/Sap xep/bai467.cpp
C++
cpp
1,515
no_license
#include <iostream> using namespace std; void nhapMaTranVuong(int a[][100], int &m); void xuatMaTran(int a[][100], int m); void sapXepTamGiacDuoi(int a[][100], int m); void hoanVi(int &x, int &y); int main() { int nArray[100][100]; int mSize = 0; nhapMaTranVuong(nArray,mSize); xuatMaTran(nArray,mSize);...
3520c56ee9e7a36e378fd0141abd0359de770a74
353201a551715c8315aa4634262bf224f42c1076
sshedbalkar/DigiPen_Backup
/Team_Alien/GAM 550/AlienEngine/source/cameraclass.cpp
C++
cpp
5,950
no_license
//////////////////////////////////////////////////////////////////////////////// // Filename: cameraclass.cpp //////////////////////////////////////////////////////////////////////////////// #include "Precompiled.h" #include "cameraclass.h" #include "VMath.h" #include "WindowsSystem.h" #include "graphics.h" #in...
92802ef73c6a0ff220612b971995f4ce0dd36899
a22243cc67671be68d467c6be54cf3a3bd44bb75
redstorm82/Framwork
/frameworks/av/services/audiopolicy/AudioPolicyInterfaceImpl.cpp
C++
cpp
23,775
permissive
/* * Copyright (C) 2009 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
5497c4364d006db940a82e2eee622b588700309b
23586838dcc73fd1e5410676afff244a79843eac
oneapi-src/oneDAL
/cpp/daal/src/algorithms/pca/pca_result_fpt.cpp
C++
cpp
3,245
permissive
/* file: pca_result_fpt.cpp */ /******************************************************************************* * Copyright 2014 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...
cb3608d8e349c62a4389519f0ea67ffd01b62eb1
ca45f62a552b2e29a7efbb787c6b6f2b3fb9315a
suyashfokane/lab-4
/q1.cpp
C++
cpp
320
no_license
//Write a C++ program to find cube of any number using function. #include<iostream> using namespace std; float cube(float a) { float cube = a*a*a; return cube; } int main() { float a1, cube1; cout << "Enter Number: "; cin >> a1; cube1 = cube(a1); cout << "Cube of the given number= " << cube1; return 0; }
8db31a6cfe1ad1c99577e457ac5b10f4995b6b34
199870e0f40eadb34493cc2543abf63c49217395
bogdanmishchenko/lcgeo
/detector/tracker/SIT_Simple_Planar_geo.cpp
C++
cpp
16,749
no_license
//==================================================================== // lcgeo - LC detector models in DD4hep //-------------------------------------------------------------------- // F.Gaede, DESY // $Id$ //==================================================================== #include "DD4hep/DetFactoryHelper.h" #...
3612ced5eadfdf08aa534344865617662e6c307e
25d81a2ce5e2dcae53c3638c2a2d05a8e6c335cc
wagulu/cocos2dx_sanguo_heroes
/SanguoClient/frameworks/runtime-src/Classes/update/UpdateEngine.cpp
C++
cpp
18,586
no_license
// // UpdateEngine.cpp // sanguoGame // // Created by fu.chenhao on 8/10/15. // // #include "UpdateEngine.h" #include "ProjectConfig.h" #include "cocos2d.h" #include "json/rapidjson.h" #include "json/document.h" #include <thread> #include <curl/curl.h> #include <curl/easy.h> #include <unzip/unzip.h> #if (CC_TARG...
9087b62bf7eb60b8345b7e9fc38d6524ff1fdd56
035c4fe099f49dbffe04debe0dfa8ed41d476f7c
119Vik/magma-1
/devmand/gateway/src/devmand/test/cli/ReconnectingSshTest.cpp
C++
cpp
6,490
permissive
// Copyright (c) 2019-present, Facebook, Inc. // All rights reserved. // // This source code is licensed under the BSD-style license found in the // LICENSE file in the root directory of this source tree. An additional grant // of patent rights can be found in the PATENTS file in the same directory. #define LOG_WITH_G...
cdd874214735e4cf56239130cc9b09057d36445b
659710fe6c893eed0f693024c2d83efbf3aed1bf
JakobKallestad/CKattis
/OpenSource.cpp
C++
cpp
1,998
no_license
#include <iostream> #include "bits/stdc++.h"; using namespace std; int main() { set<string> hasVoted; set<string> votedTwice; map<string, set<string>> mapCount; string currentUni = ""; while (true) { string inp; getline(cin, inp); if (isupper(inp.front())) { cur...
65e1513515fecdd583c0850451334c8aab54082b
4793d5be70bb90c2aa89dccde829a3b7b66b5647
exoscale/aws-sdk-cpp
/aws-cpp-sdk-elasticmapreduce/source/model/RemoveAutoScalingPolicyRequest.cpp
C++
cpp
1,555
permissive
/* * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
02cbb9f458102b78023b2a520b6fb08a6fbdbbad
e6bdfb1fb2c3a1b766974036168e71d222fcdb63
jottCern/rootana
/dra/src/stategraph.cpp
C++
cpp
1,875
no_license
#include "stategraph.hpp" #include "messages.hpp" using namespace dc; using namespace dra; const StateGraph & dra::get_stategraph(){ static bool init = false; static StateGraph sg; if(!init){ auto s_configure = sg.add_state("configure"); auto s_process = sg.add_state("process"); au...
9112951fdc8823fe9a82fb9e934a08ee1ebb1d57
8a4b927be65f51cb177ecfb7fc329240070539fa
ksvcng/code
/documents/codechef/november challange/8.cpp
C++
cpp
1,206
no_license
#include<iostream> #include <vector> #include <algorithm> #include<string> #include<math.h> using namespace std; long long f(long long l,long long m,long long o,long long p,long long r); int main() { long long int t,n,i,q,nt,j; cin>>t; while(t--){ cin>>n; long long a[4*n]; for(i=0;i<4*...
57dcd0d3d8ee9290a7f7e6a57646bd46414465bd
ca4a951d15a918f969b7a4eec0376d7b18b27ca2
abhijais04/Competitive-Programming
/Spoj/ALICESIE.cpp
C++
cpp
256
no_license
#include <bits/stdc++.h> using namespace std; int main() { int t; scanf("%d",&t); while(t--) { int n; scanf("%d",&n); int ans=n/2; if(n&1) ans++; printf("%d\n",ans); } return 0; }
415c99d61466f54adce1965640c416a701a87607
dd29a86d43ea0446ea555d36a3f837e4c1189143
li5ch/tencentcloud-sdk-cpp
/tke/src/v20180525/model/AddExistedInstancesRequest.cpp
C++
cpp
6,568
permissive
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
be3bca09288590e40fbfd6d0bde2e1e4e32c1b91
b3aa3a96f4308fd6d2c8baeddf845371a483cffe
NVIDIA/tensorflow
/tensorflow/contrib/tensor_forest/kernels/stats_ops_test.cc
C++
cc
1,965
permissive
// Copyright 2017 The TensorFlow Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required b...
7d42d5df557eee47072202a455ab8684c9a71f88
701ca0be964044906728108aa138f5065c5c8742
ikrav/AraMassProcessing
/Validation/Ferrum/FullASM.cxx
C++
cxx
6,846
no_license
#include "FullASM.h" FullASM::FullASM() { _x = -9996; _y = -9997; _z = -9998; _t = -9999; _SetCnt = 0; } void FullASM::SetAnt( int iant, double x, double y, double z, double d, double t) { antennasX.push_back(x); antennasY.push_back(y); antennasZ.push_back(...
2d832395b80455fa8a4a5054e45427f327ef68dd
35d03df335b9c57e257864a749b42db752dfe7c0
viscenter/educe
/Seg3D/src/Core/Algorithms/Interface/NewField/GetSliceFromStructuredFieldByIndicesAlg.cc
C++
cc
2,056
permissive
// // For more information, please see: http://software.sci.utah.edu // // The MIT License // // Copyright (c) 2007 Scientific Computing and Imaging Institute, // University of Utah. // // License for the specific language governing rights and limitations under // Permission is hereby granted, free of cha...
a963bc171aa94200c5c6a68ff2941c3b9c11fe36
f76da52229ce05618c8a132ace1fcdaccfa19be1
corsy/libdynd
/src/dynd/uint128.cpp
C++
cpp
3,536
permissive
// // Copyright (C) 2011-15 DyND Developers // BSD 2-Clause License, see LICENSE.txt // #include <stdexcept> #include <sstream> #include <cmath> #include <dynd/config.hpp> #if !defined(DYND_HAS_UINT128) using namespace std; using namespace dynd; dynd::uint128::uint128(float value) { if (value < 0) { m_...
1735db1d99b78c401e58ed9451fb3ff6e36fecc0
d083927672ee8e2d7d0da772da36dc4313909378
hedgepigdaniel/chromium
/components/arc/arc_util_unittest.cc
C++
cc
5,902
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 "components/arc/arc_util.h" #include <memory> #include <string> #include "ash/shared/app_types.h" #include "base/command_line.h" #include "base...
cb4f186d9175ff6ad81e11b5e2bd99b0f097c91f
1c35056445c1f85f3f7b4d6c120a3b033c528837
wtcoin2018/wtcoin
/src/qt/optionsdialog.cpp
C++
cpp
8,233
permissive
#include "optionsdialog.h" #include "ui_optionsdialog.h" #include "bitcoinunits.h" #include "monitoreddatamapper.h" #include "netbase.h" #include "optionsmodel.h" #include <QDir> #include <QIntValidator> #include <QLocale> #include <QMessageBox> #include <QRegExp> #include <QRegExpValidator> OptionsDialog::OptionsDi...
c35b8f7aa987e1e9dbd1784679535dc24226ce52
e481ef495c650b87d2425c53b4f45fe3bf822a6c
sy-soons/design_pattern_cpp
/01_generate_pattern/04_prototype/main.cpp
C++
cpp
2,193
no_license
#include<stdio.h> #include "IHotDrink.h" #include "HotDrinkFactory.h" #include <vector> using namespace std; int main() { printf("===== main =====\n"); // HotDrinkFactory::make_drink("coffee"); // HotDrinkFactory::make_drink("tea"); // 회사, 학교에서 커피 단체 주문이 들어왔다. // 회사에서는 coffee 100잔, 학교에서는 tea 30잔 주문이 들어왔다. // 갯...
0a1f9cee26aeb5e4dea0934bef196c1e3076810e
f9678f9c39155c4d217914c3ba8f2120f573d91b
redisread/UE-Runtime
/Engine/Private/SoundNodeLooping.cpp
C++
cpp
6,016
no_license
// Copyright Epic Games, Inc. All Rights Reserved. #include "Sound/SoundNodeLooping.h" #include "Audio.h" #include "ActiveSound.h" #include "Sound/SoundBase.h" #include "Sound/SoundNodeWavePlayer.h" /*----------------------------------------------------------------------------- USoundNodeLooping implementation. ---...
df67692eaf8a1cfe92f34443736ccc2ef7fca940
0724de61433220e4e096a286ae3cb781ad9c8a48
hhaakkimm/codeforces
/448/c.cpp
C++
cpp
806
no_license
#include <algorithm> #include <iostream> #include <vector> #include <cstdio> #include <string> #include <cmath> #include <ctime> #include <queue> #include <map> using namespace std; //constants const int MAXN=(int)(1e5+1e1); const double PI=acos(-1.0); //defines #define ll long long #define TASKNAME "." #define fr f...
e50d9dae1aa865fd4f52f9288667b291a774a245
aa4724df350b77df0708a8646e120519d9221f29
jasonrudolph/chromium
/chromecast/browser/cast_content_browser_client.cc
C++
cc
36,110
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 "chromecast/browser/cast_content_browser_client.h" #include <stddef.h> #include <string> #include <utility> #include "base/base_switches.h" #i...
a7a9d55377876d87075fe83b946fee5df0011514
4c066ee0d194ab7101c3126762832ad92ecd4ff8
ShikOfTheRa/Multiwii-2.4-GPSTIME
/MultiWii/GPS.cpp
C++
cpp
66,088
no_license
#include "Arduino.h" #include "config.h" #include "def.h" #include "types.h" #include "GPS.h" #include "Serial.h" #include "Sensors.h" #include "MultiWii.h" #include "EEPROM.h" #include <math.h> #if GPS //Function prototypes for other GPS functions //These perhaps could go to the gps.h file, however these are local t...
2f39ff27ddb9e9a8cb373aef18e7851913389af2
68a5bbed6adaf4691d328321a1b52325a55b0f7f
otcshare/chromium-src
/chromecast/crash/cast_crash_storage_impl.cc
C++
cc
1,545
permissive
// Copyright 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 "chromecast/crash/cast_crash_storage_impl.h" #include "chromecast/crash/cast_crash_keys.h" #include "components/crash/core/common/crash_key.h" ...
d4d47eaa09a76037e64a8d0d4b28ff06a9ce8c20
c97a314515ed9f077a463c3321b65211d74c885d
CPPUserGroups/Germany-Hamburg
/boost-python/src/libtalk/test/motor_test.cpp
C++
cpp
3,036
no_license
// // (c) Copyright <YEAR> Eugen Wintersberger <eugen.wintersberger@gmail.com> // // This file is part of <PROJECT>. // // <PROJECT> is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 2 of the Li...
065384e2d6baa2d26eae1725a26c6f8639b502d6
a92e1a84a50837dd8210ab274ae4fd2dcaa6bc7c
Neill3d/OpenMoBu
/Src/MotionCodeLibrary/GraphView.cpp
C++
cpp
8,283
permissive
/** \file GraphView.cpp * FCurve editor */ ///////////////////////////////////////////////////////////////////////////////////////// // // Licensed under the "New" BSD License. // License page - https://github.com/Neill3d/MoBu/blob/master/LICENSE // // GitHub repository - https://github.com/Neill3d/MoBu // // Autho...
8d9043c45eb19fcbbced347657dfbdc2b9e5453f
e2407505c94b34c7d6582e063dae9d35ce05e2b7
ketankr9/leetcode-solutions
/86.partition-list.cpp
C++
cpp
1,828
no_license
/* * @lc app=leetcode id=86 lang=cpp * * [86] Partition List * * https://leetcode.com/problems/partition-list/description/ * * algorithms * Medium (37.67%) * Likes: 708 * Dislikes: 189 * Total Accepted: 168.9K * Total Submissions: 448.2K * Testcase Example: '[1,4,3,2,5,2]\n3' * * Given a linked li...
bf5bf23c60a7faa261990a84d6089c59645305d1
1303392619c8038b7cdb63726a8d5285664760bb
ReeceJones/csgomeme
/NoRecoil.cpp
C++
cpp
772
permissive
#include "Features.h" #include "Definitions.h" #include "Entity.h" #include "Interfaces.h" #include "Settings.h" void CAimbot::NoRecoil(CUserCmd* pCmd) { CBaseEntity* LocalPlayer = Interfaces::EntityList->GetClientEntity(Interfaces::Engine->GetLocalPlayer()); if (Settings.Aimbot.NoRecoil == 2) { if (pCmd->button...
edfc1e02b1a264275100dd775cdcd62a3a5d27af
e25e64fab3b64bd0a0e56e207241944740c91223
qhuy1901/IT002-ObjectOrientedProgramming
/Question3-FinalExam/VoLamTruyenKy/VoLamTruyenKy.cpp
C++
cpp
1,368
no_license
#include <iostream> #include "DoiTuong.h" #include "NhanVat.h" #include "QVDauLinh.h" #include "QVThongThuong.h" using namespace std; int main() { DoiTuong* DS[100]; cout << "Nhap so doi tuong can quan ly: "; int n; cin >> n; for (int i = 0; i < n; i++) { cout << "Nhap ...
9e117c888af1d1bfb64a573398a3d42738baeccc
40a171534d7aa2aaa2cf96ed45f8a0b512a2b1f2
gabrielrussoc/competitive-programming
/csacademy/longjourney.cpp
C++
cpp
1,369
no_license
#include <bits/stdc++.h> #define mp make_pair #define pb push_back #define ff first #define ss second using namespace std; typedef long long ll; typedef pair<int,int> pii; typedef pair<ll,ll> pll; const double eps = 1e-9; const int inf = INT_MAX; //////////////0123456789 const int N = 100004; const int modn = 1000000...
4657c85bde55865d577f7166647ef3a4b8019eb7
0a4f004ae410d0a699b673000bb4e41f6f72cd3e
Golutazem/fish-shell
/parser.cpp
C++
cpp
89,918
no_license
/** \file parser.c The fish parser. Contains functions for parsing and evaluating code. */ #include "config.h" #include <stdlib.h> #include <stdio.h> #include <wchar.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #include <termios.h> #include <pwd.h> #inclu...
6c4fadbc517a7adfbba908079793c62a32bfd714
c3f505dfcff479bad2ddff8da04b303856550be3
SigMA65/owrap
/_projects/wrap/src/property.cpp
C++
cpp
1,066
no_license
#include <string> #include <windows.h> #include <boost/property_tree/ini_parser.hpp> #include "property.h" #include "constants.h" #include "message\message.h" Property::Property() { message("Разбор конфигурационного файла"); boost::property_tree::ptree pt; boost::property_tree::ini_parser::read_ini(fil...
d1f75e1277c94726e1fe2f1f6e9ea76e0919f7cc
fbff4def0258c49aab1e1a4518030915d119de90
yschimke/rsocket-cpp
/src/ReactiveSocket.cpp
C++
cpp
6,164
permissive
// Copyright 2004-present Facebook. All Rights Reserved. #include "src/ReactiveSocket.h" #include <cassert> #include <functional> #include <memory> #include <folly/ExceptionWrapper.h> #include <folly/Memory.h> #include <folly/MoveWrapper.h> #include "src/ConnectionAutomaton.h" #include "src/DuplexConnection.h" #inc...
eaa39e0cb2ad4007bca4bab3fea9381cc04a6909
960002197197b5a4fc5f08541ad2f11ddd2d33bb
Zhouyongkan/leetcode-
/乒乓球筐.cpp
C++
cpp
389
no_license
#include<iostream> #include<string> using namespace std; int main() { string A; string B; while (cin >> A >> B) { int j = 0; int i = 0; for (; i<B.size(); ++i) { int pos = A.find(B[i], j); if (pos<A.size()) { A.erase(pos, 1); } else { cout << "No" << endl; break; } } i...
2b5ea1a92ce7ab22803bc2e7f599ffd48d8f73ad
5c8c97a5aafbfbaafb3b6ef22a5581cd231bc9eb
iong/SCP3
/bowman-fortran.cpp
C++
cpp
4,521
no_license
#ifdef HAVE_CONFIG_H # include "config.h" #endif // HAVE_CONFIG_H #include <cassert> #include <cstdlib> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <string> #include <stdexcept> #include "bowman-fortran.h" //////////////////////////////////////////////////////////////////////////////...
97bc593de54a3f9214e220c5a76fa5e6cd36a356
8861e9aafa58fb6a3218741b2bee00229713e185
shreyanshbarodiya/tutorials
/geeksforgeeks/snakesAndLadders.cpp
C++
cpp
979
no_license
#include <iostream> #include <cstdlib> #include <queue> using namespace std; struct queueEntry{ int v; int d; } int minMovesToEnd(int board[], int N){ queue<queueEntry> q; bool visited[N] ; for(int i=0; i<N; i++){ visited[i] = false; } queueEntry qe = {0,0}; q.push(qe); visited[0] = true; int V; w...
d07d3f7b52f0dcaf5f274a0390d54f3a52fbea8e
68628726d3dfaf2e474770cf37cd89d0a00be7ba
dungphan90/MINOS-NueAna
/ParticlePID/NueMiniAnaPID.cxx
C++
cxx
13,013
no_license
///////////////////////////////////////////////////////////////////// //$Id: NueMiniAnaPID.cxx,v 1.10 2009/09/21 14:32:26 scavan Exp $ // //NueMiniPID // //J Boehm 12/2007 //////////////////////////////////////////////////////////////////// ...
a6149060361dd4fa817e4e0001f4e3811be75a0f
f63d450533bc31e1b4f35226dee15c17bff1a7e8
0xSombra/RED4ext.SDK
/include/RED4ext/Types/generated/Sample_Class_2_4_0.hpp
C++
hpp
438
permissive
#pragma once // This file is generated from the Game's Reflection data #include <cstdint> #include <RED4ext/Common.hpp> #include <RED4ext/REDhash.hpp> #include <RED4ext/ISerializable.hpp> namespace RED4ext { struct Sample_Class_2_4_0 : ISerializable { static constexpr const char* NAME = "Sample_Class_2_4_0"; ...
d20ffb0c67f2653eb00f90f35879a4b82a1fe2ed
bb9f73971b67214e68ff33622d595a16ca533ac9
georgidemirev/University-Programming
/OOP (2nd semester)/Tests/Test1/Source.cpp
C++
cpp
1,041
no_license
#include <iostream> #include "Header.h" using namespace std; WebPage::WebPage() { adress = 0; ip = 0; }; WebPage::WebPage(char* a,char* b) { adress = a; ip = b; }; WebPage::~WebPage() {}; void WebPage::print() const { cout <<"The adress of the Web page is: "<< adress << endl <<"The IP adress of the Web page is...
f8255055eaffaa58e86db3cdf15fa5927423c229
ad45f06a1b256b01e7d5a4a37702fe61e9f74533
Zulfikar507/P4-Zulfikar
/Jobsheet 3 C++.cpp
C++
cpp
583
no_license
#include <iostream> using namespace std; main(){ int i,j; int matrik1[2][2],matrik2[2][2],jumlah [2][2]; cout << "Nama : ZULFIKAR" << endl; cout << "NIM : F1B019147" << endl; cout << "Kelompok : 28" << endl; for(i=0;i<2;i++) { for(j=0;j<2;j++){ cout<<"masukkan nilai matrik 1 "<<i<<","<<j<<" = "; cin>>matrik1[i][j]; ...
e40fede698fc8056992a14b4fcf39012ae13d208
dad4568a308c23a7ba10ff797126a3c69b7b2553
UWARG/simSPIKE
/gazebo/gazebo/common/Video.hh
C++
hh
2,508
permissive
/* * Copyright (C) 2012-2014 Open Source Robotics Foundation * * 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...
b97786c9a7a4946faf0ead5c265fe9d3f50ed13e
5e6826bc1b98b37cc9e2a99a944bf0bdb8f7f59c
stefanzota08/--NFA
/dfa/main.cpp
C++
cpp
1,549
no_license
#include <iostream> #include<string> #include<cstring> #include<stdio.h> #include <fstream> #include<windows.h> using namespace std; class automat { int q; int *F; int f; char *V; int v; int g; int sc; struct trans{ int a; //incep int b; //final ...
1f27798408e24a7ccb3b23cf2db71d21eb893a9e
f743631aeb2d7d7392b48b73c8b89b981a69e388
zhink/opencv_cuda
/resize_cpu.cpp
C++
cpp
651
no_license
#include <stdio.h> #include <opencv2/opencv.hpp> using namespace cv; int main(int argc, char** argv ) { if ( argc != 2 ) { printf("usage: DisplayImage.out <Image_Path>\n"); return -1; } Mat inImage; Mat outImage; inImage = imread( argv[1], 1 ); if ( !inImage.data ) { printf("No image data \n")...
a80181deb1ca97ff6265d8a74b0b06ca5c28fa3e
2efca2e0b14db08d6395c327fbf63466baef5297
skizzerz/alphacomplex
/include/components/position.hpp
C++
hpp
689
no_license
#pragma once #include "entities/entity.hpp" #include "city.hpp" struct Position : ComponentCRTP<Component::Position, Position> { Position(Point p) : pos(p) { } inline City& city() { return *pos.city; } inline int x() const { return pos.x; } inline int y() const { return pos.y; } inline Point as_point() con...
d66fee79082a8f66c7468d73302f24bdcdd244b3
95d0671ad96c4a17fa324cc777462f1ee593b39c
WIEQLI/stratton-chu-cpp
/cpp/stratton-chu-library/stratton-chu/parabolic-surface.hpp
C++
hpp
1,325
permissive
#ifndef PARABOLICSURFACE_HPP #define PARABOLICSURFACE_HPP #include "stratton-chu/surface.hpp" class ParabolicSurface : public SurfaceBase { public: ParabolicSurface (const Position& r0, const Vector& alpha, const Vector& beta, const double a, const double b); // Constructor of Parabolic surface r = r0 + α * x...
f0d7f09f799788ea95bb226044cd5e8baae0f015
f6b232e75408febe8c41a1f5a1f42979ab085bb5
rushioda/PIXELVALID_athena
/athena/PhysicsAnalysis/MuonID/MuonPerformanceAnalysis/MuonTPTools/Root/MuonTPPlotTool.cxx
C++
cxx
7,325
no_license
/* Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration */ /* * MuonTPPlots.cxx * * Created on: Aug 31, 2014 * Author: goblirsc */ #include "MuonTPTools/MuonTPPlotTool.h" MuonTPPlotTool::MuonTPPlotTool(std::string name) : AsgTool(name){ declareProperty("EfficiencyFlag", m_eff...
97fb4b499d42f9b1a100178d763a1f123fb75003
abe79c30a236b326de78b72eca7919512950279a
ritaqingqing/boost-rete
/src/negative_node.cpp
C++
cpp
4,078
no_license
// Copyright Oliver Kowalke 2013. // 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 "boost/rete/negative_node.hpp" #include <algorithm> #include <boost/bind.hpp> #include <boost/me...
a068ff533bcded0ec98e3efcfc8b195e0a464f13
959a926516a4fbf9d2883d50d2249dcb85cfdffb
jiun0507/Interview-prep
/Baekjoon/MATH]피보나치 수의 합.cpp
C++
cpp
1,535
no_license
//baekjoon 2086 //피보나치 수의 합 #include <iostream> #include <bits/stdc++.h> using namespace std; const long long k = 1500000000; const long long mod = 1000000000; long long a, b; /* n번재 피보나치 수까지의 모든 수의 합 은 n+2번째 피보나치 수에 -1을 더한 것이다. 이로써 log n시간안에 합을 구할 수 있다. */ typedef vector<vector<long long>> matrix; matrix operator...
9a566f8a9e3dbb01f03abac64d2f5434afab5d41
b8cf81ca3cacbebd87cbe2c024c6b1d7c1a6d1cc
kpu/moses-interp
/mert/pro.cpp
C++
cpp
8,614
no_license
// $Id$ // vim:tabstop=2 /*********************************************************************** Moses - factored phrase-based language decoder Copyright (C) 2011- University of Edinburgh This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License ...
d25c67de94ca12a7bc5728a7bb7c4fc4a9296771
4da00cb9cc3f7df647e104a6f61c45754c10c437
bgruening/OpenMS
/src/openms/source/FORMAT/VALIDATORS/MzIdentMLValidator.cpp
C++
cpp
2,583
permissive
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
6d8ceb52dd6deb7574208db0336035d40a40b75c
f1f490c291e9f295d0723c2f14f048e2e0d4c402
mengxinpku/GPS
/UbloxSolver.cpp
C++
cpp
20,211
no_license
#include "UbloxSolver.h" using namespace std; SvInfo::SvInfo(){ page1OK = page2OK = page3OK = false; I = T = 0; } SvInfo::~SvInfo(){} bool SvInfo::CalcuTime(double rcvtow) { tsv = rcvtow - prMes/Light_speed; tsReal = tsv; //此时的钟差是没有考虑相对论效应和 TGD的 for(int i = 0;i<5;i++){ tsDelta = a0+a1...
25acc7910c89fdb9e04648dd1bb69abfe759c9e6
ddd638324f09842af2129fc9e56fcfeb76031a9e
qian99/acm
/problem/DP/树形DP/hdu 4276 The Ghost Blows Light.cpp
C++
cpp
2,359
no_license
#include <iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<map> #include<queue> #include<stack> #include<cmath> #include<vector> #define inf 0x3f3f3f3f #define Inf 0x3FFFFFFFFFFFFFFFLL #define eps 1e-9 #define pi acos(-1.0) using namespace std; const int maxt=500...
4c880ba5636675c715973480c9ed8ca123604812
10ecfcf378eafb721ebadd2d8cdcaedfabdc9df0
Script-Kiddie-JKB/Competitive-Programming-Solutions
/CodeChef/DSALearningSeries/LinearDataStructures/ZCO12002.cpp
C++
cpp
1,141
no_license
//author @Nishant #include <bits/stdc++.h> using namespace std; #define MAX 1000002 int main(){ int n, x, y, t1, t2, duration = INT_MAX; cin >> n >> x >> y; int in[MAX], out[MAX]; vector<pair<int, int>> contest; memset(in, -1, sizeof(int) * MAX); memset(out, -1, sizeof(int) * MAX); for (in...
b49a160481703080aca92eaa93a8e19ade8b3d8e
295c19e798e07946c742d8f8b509f213e6f30fc4
D34Dspy/warz-client
/External/NaturalMotion/morpheme/SDK/euphoriaCore/src/Nodes/erNodeTrajectoryOverride.cpp
C++
cpp
6,075
no_license
//---------------------------------------------------------------------------------------------------------------------- #include "euphoria/Nodes/erNodeTrajectoryOverride.h" #include "morpheme/Nodes/mrNodePassThrough.h" #include "morpheme/mrCoreTaskIDs.h" #include "morpheme/Nodes/mrSharedNodeFunctions.h" //------------...
2be3f108b9bf5a6f903c08e0fa0337f7ac3d684c
ba72586787d39df27ecfc6046d7c6e63aa212adf
Devil-ly/PVVA_V3.0
/PVVA-v3.0/VTK/src/STLInput.cpp
C++
cpp
2,131
no_license
#include "..\include\STLInput.h" #include <vtkSTLReader.h> #include <vtkTransform.h> #include <vtkTransformPolyDataFilter.h> STLInput::STLInput(const string & file) { fileName = file; data.resize(7); Name = STLINPUT; } STLInput::STLInput(const STLInput & stl) { fileName = stl.fileName; data.resize(stl.data.size...
616bc02d811e06281a9f9c66fa738eb1ccdb18fc
2ff1f85397e7ae5723e1931bbdcad54fa977079d
DominickCleary/CSU44053-Computer-Vision
/OpenCVExample/Images.cpp
C++
cpp
13,727
no_license
/* * This code is provided as part of "A Practical Introduction to Computer Vision with OpenCV" * by Kenneth Dawson-Howe © Wiley & Sons Inc. 2014. All rights reserved. */ #include "Utilities.h" //#include <cxcore.hpp> // Example of simple grey scale image access. void ChangeQuantisationGrey( Mat &image, int new_nu...
7320756699abb8959719ea6b2686daefa7fac6a4
73e2c6761813023295cd1eee7f3d1ec1eaf671f4
zqrtalent/MercuryUI
/Framework_old/Controls/Old Classes/ESMemMan.cpp
C++
cpp
11,504
no_license
// ESMemMan.cpp : implementation file // #include "stdafx.h" #include "ESMemMan.h" #include "ESHeaderCtrl.h" #include "ESItemsList.h" #include "..\UsefulFunctions.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ////////////////////////////////////////...
ea9921cc9ad2f12d95563777eb67400322807610
b7a6de1a1950f182f0f1b10d80936973196e40fc
XenderMd/FractalProject
/Fractal/Bitmap.cpp
C++
cpp
1,479
no_license
#include "stdafx.h" #include "Bitmap.h" #include <fstream> #include "BitmapFileHeader.h" #include "BitmapInfoHeader.h" using namespace std; caveofprogramming::Bitmap::Bitmap(int width, int height) : m_width(width), m_height(height), m_pPixel(new uint8_t[width * height * 3]{})//initialize to default value - 0 { } bo...
55009be6d263ba81a1ee2a674577c284a18a288a
758410a566d717d866b8faef41a158bb9a451f20
Kcardas/Programing-Language-I
/Lista 2/Questão 8/main.cpp
C++
cpp
251
no_license
#include <iostream> #include "Salvar.h" int main(){ Salvar save; char *string; save.recoverFile(); string = save.getData(); for(int i=0; string[i] != '\0'; i++){ std::cout << string[i] << std::flush; } save.saveFile(); return 0; }
a389d27c87a4599c1516e5b5ed36281c3c59c09d
af6504be9f043714c9943be3168e0a5eb9383852
berkoecal/networkit
/networkit/cpp/distance/APSP.cpp
C++
cpp
803
permissive
/* * APSP.cpp * * Created on: 07.07.2015 * Author: Arie Slobbe */ #include "APSP.h" #include "../auxiliary/Log.h" #include "Dijkstra.h" #include "BFS.h" namespace NetworKit { APSP::APSP(const Graph& G) : Algorithm(), G(G) {} void APSP::run() { std::vector<edgeweight> distanceVector(G.upperNodeIdBound(),...
5a6d844946eb21c168c1f815d875996140f356e0
c93c6cf7fc22c1293031c50e8bca90ae80143add
zjin-lcf/HeCBench
/fresnel-sycl/sine.cpp
C++
cpp
17,562
permissive
//////////////////////////////////////////////////////////////////////////////// // File: fresnel_auxiliary_sine_integral.c // // Routine(s): // // Fresnel_Auxiliary_Sine_Integral ...
d4327278bbafd045280172989e6a06688787390d
cd878160bfe398614a7109171db263c8e2016c7b
peterwhite1997/QPTZcontrol
/widget.cpp
C++
cpp
9,502
no_license
#include "widget.h" #include "ui_widget.h" cv::Mat l_frame; cv::VideoCapture *capture; QImage image; // 存放已经转换好的图像 // 以下是内建函数 Widget::Widget(QWidget *parent) : QWidget(parent), ui(new Ui::Widget) { ui->setupUi(this); // 固定窗口大小 //this->setMaximumSize(800,600); //this->setMinimumSize(800,600); ...
531d34450da81e9a291a8fa267fe2d4a61937f48
369bd89a5abfd4428ac7db6000c2c67a92dcc2e6
roinissan/C-plus-plus
/Heroes of Might and Magic/Zombie.cpp
C++
cpp
649
no_license
// // Created by Roi on 03/01/2019. // #include "Zombie.h" Zombie::Zombie(){ this->attackPower = 2; this->defencePower = 5; this->price = 50; this->name = "Zombie"; amount = 0; }; void Zombie::attack(Creature *creature){ int attack; if((creature->getName())== "Archer") attack = 2*attackPower; else at...
e99ea0b8736d302a5c433123b0fc9daf64b05317
24ebe769de08f2f7580dc4aaff5c7e830b765fcc
webosce/chromium53
/src/third_party/webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc
C++
cc
20,216
permissive
/* * Copyright (c) 2014 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
3b60a0045ff9dd892cd1bec9ca2016a6f7442484
89cafc20c161dd0a7241819ef5bc3fdf241eb374
Nazarko1712/myCSlabs
/lb7/lb7/lb7.cpp
C++
cpp
1,878
permissive
#include <iostream> #include <math.h> #include <stdlib.h> using namespace std; int main() { cout << "Hello World!\n"; int lb; cout << "which lab you want to run(1,2,3,4)\n"; cin >> lb; while (true) { if (lb == 1) { int lenght, z; z = 0; //cout << "Matrix lenght"; //cin >> lenght; float D[5]; ...
c9bbd10d7bcb0a24b09f2f40970e67a333981c5e
0dca80955186179ff7eb50b9832385ddb558f6a1
uzleo/coast
/llvm/tools/clang/test/SemaCXX/cxx11-attr-print.cpp
C++
cpp
2,598
permissive
// RUN: %clang_cc1 -std=c++11 -ast-print -fms-extensions %s | FileCheck %s // // CHECK: int x __attribute__((aligned(4))); int x __attribute__((aligned(4))); // FIXME: Print this at a valid location for a __declspec attr. // CHECK: int y __declspec(align(4)); __declspec(align(4)) int y; // CHECK: int z {{\[}...
b275c83ca8624738856a9849c7cef6328f6ce633
92ba98646796bc7bf4d287286bc2a74ebae0f1bc
yahoojapan/k2hdkc
/lib/k2hdkccomreplkey.cc
C++
cc
11,471
permissive
/* * * K2HDKC * * Copyright 2016 Yahoo Japan Corporation. * * K2HDKC is k2hash based distributed KVS cluster. * K2HDKC uses K2HASH, CHMPX, FULLOCK libraries. K2HDKC supports * distributed KVS cluster server program and client libraries. * * For the full copyright and license information, please view * th...
7ba66ec3c75dec63dd16b3e2be592b4a8ef034d1
785213990cd02e872f68cf14f287436b7088dc36
ni/dldt
/inference-engine/src/inference_engine/transform/transformation.cpp
C++
cpp
404
permissive
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <transform/transformation.hpp> #include <string> namespace InferenceEngine { namespace Transform { std::string Transformation::getName() const { return name; } void Transformation::setName(const std::string& name) { ...
f93c83027294ca5b5033021628753e7072df5852
8360b7ba838a63d3fb2320ceb2ccfd0a7ceac2e6
xsw258x2s5w8/WorkDir1
/工作目录/称重项目/20170726/WeighSensor/chengtaicanshu.cpp
C++
cpp
710
no_license
#include "chengtaicanshu.h" #include "ui_chengtaicanshu.h" #include "index.h" #include "tiaochen.h" Chengtaicanshu::Chengtaicanshu(QWidget *parent) : QWidget(parent), ui(new Ui::Chengtaicanshu) { ui->setupUi(this); this->setWindowState(Qt::WindowFullScreen); connect(ui->returnIndex,SIGNAL(clicked(...
84699e8235426175a110d7b2acdb83440e63b113
80d3e6014d29493ce7b7aa845350a4d51f19d5b2
vncsms/8-Puzzle-Algorithms
/src/sucessor.cpp
C++
cpp
1,499
no_license
#include <string.h> #include <iostream> #include <map> #include <utility> using namespace std; typedef struct par{ string acao; string estado; int valido; }par; // 0 -> esquerda // 1 -> diretia // 2 -> cima // 3 -> baixo map<int, par> sucessor(string nome){ int pos , dir; par aux; map<int, par> pares; for(in...
410d95d58c9d1008435983675dec95d6126ff1c6
adb1edcfcc4f132b7eab988c6db5524af9cdfc6c
Est16/VKMS
/Eye_Tracking/Ejemplos_opencv/Ejemplo_WC4/eye_detector2.cpp
C++
cpp
6,637
no_license
#include <cstdio> #include <iostream> #include <math.h> #include <vector> #include <opencv2/core/types.hpp> #include <opencv2/core/core.hpp> #include <opencv2/core/mat.hpp> #include <opencv2/highgui/highgui.hpp> // no es necesaria #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/objdetect/objdetect.hpp> using...
5c963d1fc6f087a4d05be736e30de21cb0238e77
472dcad8ad2b10ada9c04b362d26938ab9c0e0a1
anirudhSK/chromium
/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
C++
cc
23,587
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/frame/glass_browser_frame_view.h" #include "base/prefs/pref_service.h" #include "base/strings/utf_string_conversion...
2b0df7004af236c348fd97bd27627d3269377c39
fd79df09e26540587e247fc4d30b8013e4429935
qxyyqx/painter
/MainFrm.cpp
C++
cpp
2,070
no_license
// MainFrm.cpp : implementation of the CMainFrame class // #include "stdafx.h" #include "¼ÆËã»úͼÐÎѧ.h" #include "MainFrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif // CMainFrame IMPLEMENT_DYNCREATE(CMainFrame, CFrameWnd) BEGIN_MESSAGE_MAP...
23e9048cae70c7e83806dc1a07c2f4cb80a8d348
836c5a3a356f17f9f1c20530c0b5a5da7c928e3a
maxidea1024/fun
/fun/base/serialization/bit_streams.cc
C++
cc
10,748
no_license
#include "fun/base/serialization/bit_streams.h" namespace fun { // Table. static const uint8 SHIFT_TABLE[8] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80}; static const uint8 MASK_TABLE[8] = {0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f};...
fc6838fae31256aa90fdedf2eba4d192ed522488
3c38182a5e9abea64fa191de9bb0c7e1b42dadfd
Gilgahex/mediapipe
/mediapipe/framework/deps/file_helpers.cc
C++
cc
3,813
permissive
// Copyright 2019 The MediaPipe Authors. // // 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 a...
e4bc4a187ed01b72d2aa2764557e0ccdb2be6b5a
88340b36e1665ed0e9accfe5a31b9f00a7dd574b
b1xian/arm-neon-opencv
/src_deprecated/paddle-resize/cubic_resize_float32.cpp
C++
cpp
14,163
no_license
// // Created by b1xian on 2020-10-26. // #include <math.h> #include <iostream> #include "arm_neon.h" #include "../../vision/common/tensor.h" #include "../../vision/common/tensor_converter.h" #include "opencv2/opencv.hpp" using namespace std; static void interpolate_cubic(float fx, float* coeffs) { const float A...
9231f1e252f0d440d409a56ec73873984f718783
1120b57a4cf8f28f804b84851fd2a671461eae74
IHR57/Competitive-Programming
/LightOJ/1111 (Best Picnic Ever).cpp
C++
cpp
1,660
no_license
#include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> #include <queue> #include <vector> #define pb push_back #define MAX 1005 using namespace std; typedef long long lint; vector<int> graph[MAX]; int visited[MAX], nodeCounter[MAX]; void breadthFirst(int source) { memset(vi...
2305aec9ec983c4425505e6e2fd5daa4b3dbf0a4
103cacb9a127b65df940bf25c3d4956e709e4a20
BackupTheBerlios/sax-svn
/sax-tags/SaX2-48-SuSE-91/xfine/frame.cpp
C++
cpp
20,106
no_license
/************** FILE : frame.c *************** PROJECT : SaX2 - SuSE advanced X configuration : AUTHOR : Marcus Schäfer <ms@suse.de> : BELONGS TO : configuration tool for the X window system : released under the XFree86 license : DESCRIPT...
24d2527b6395674130be8ae1891d21a215f3ad9e
cc4a832bf2d9eeb05a392cdea044c51384533b89
samirangode/Algo-practice
/RoundE1.cpp
C++
cpp
923
no_license
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { int T; cin>>T; int test_cases=0; while(test_cases<T){ int N; cin>>N; vector<int> v; int val = 0; for (int i = 0; i < N; ++i) { cin>>val; v.push_back(val); /* code */ } int maxLen = 0; int len = 0; int d...
dc7c2f3623b508fca80dd15fdf69ff6d763814f6
f38269e9043135dcfbab6b72f5d52ddac1068208
sparrowhark/intelligentpointer
/main.cpp
C++
cpp
898
no_license
/** * @file main.cpp * @synopsis: * @author stone * @version 1.0 * @date 2016-10-17 * Copyright(C) 2016 <stone>All right reserved */ #include <stdlib.h> #include "./unittest/example_test.h" #ifdef DEBUG int test() { // Create the event manager and test controller CPPUNIT_NS::TestResult controller; // Add ...
8af6aced591046b718b659d54aa37f250df8679e
bf119fa9deec09b265d3ec4290c6789b45536c8d
codecoin/codecoin
/src/qt/guiutil.cpp
C++
cpp
13,491
permissive
#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include "base58.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For ...
8421628f4404feaf8f506e92676e2210322f02d0
5bcbce76222b85a321c765a2c155df22af1921e2
JuanPatricioMarshall/1943-TP2
/GameServer/MoveableObject.cpp
C++
cpp
1,153
no_license
#include "MoveableObject.h" MoveableObject::MoveableObject() : GameObject(), m_direction(0,0), m_speed(25,25) { m_tag = "Nave"; } void MoveableObject::load(int x, int y, int width, int height, int textureID, int numFrames) { // posicion de la nave en el juego. Puede estar fuera de camara y se dibujará a...
bb9cfcb63f0e5edc7a6e0b2714e9acf2a67c552c
10564d8a5f1a127a1ddb47491cf6ca12b174346e
omr-turbo/wasmjit-omr
/src/ir.cc
C++
cc
12,789
permissive
/* * Copyright 2016 WebAssembly Community Group participants * * 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...
b7d11cedba7b2d6afda25827191545f67109bfc6
bfb873c61be3bf618961035386d540d964eddefc
Woloda/Lab_7_1_2
/UnitTest(Lab_7.1(2))/UnitTest(Lab_7.1(2)).cpp
C++
cpp
671
no_license
#include "pch.h" #include "CppUnitTest.h" #include "../Lab_7.1(2)/Lab_7.1(2).cpp" using namespace Microsoft::VisualStudio::CppUnitTestFramework; namespace UnitTestLab712 { TEST_CLASS(UnitTestLab712) { public: TEST_METHOD(TestMethod1) { int const line = 3; int const column = 3; int** matriz = new i...
ff19d0c7282b373489d4fe3ade757823c8eec0e4
a6d404c5935f047c8b46c34a05146889a15fb687
ptylll/tink
/cc/hybrid/ecies_aead_hkdf_hybrid_decrypt.cc
C++
cc
4,780
permissive
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
ae14315cc44071ee9eef54b9dea8780025d3be3a
724eeb7a5c508f2e3280791c6bf3de10f8c58907
sanidhyaanand/cs475-tutorials
/Tutorial_02/02_colorcube.cpp
C++
cpp
6,450
no_license
/* CSX75: Tutorial 2 A program which opens a window and draws the "color cube." Modified from An Introduction to OpenGL Programming, Ed Angel and Dave Shreiner, SIGGRAPH 2013 Written by Parag Chaudhuri, 2015 */ #include "02_colorcube.hpp" GLuint shaderProgram; GLuint vbo, vao; glm::mat4 view_matrix; g...