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 |
|---|---|---|---|---|---|---|---|---|
6a9c3d4fd79c93216bd8bee151cc3b85b4cb5f3b | 03713a5b039d4a143951081e3da3086865fb8099 | JakobGreten/f110_pure_pursuit_rrt | /racecar_simulator/node/keyboard.cpp | C++ | cpp | 1,237 | no_license | #include <ros/ros.h>
#include <std_msgs/String.h>
#include <termios.h>
#include <stdio.h>
#include <signal.h>
// for printing
#include <iostream>
static volatile sig_atomic_t keep_running = 1;
void sigHandler(int not_used) {
keep_running = 0;
}
int main(int argc, char ** argv) {
ros::init(argc, argv, "k... |
e1fa09b8b531ad95c3deb90bd903dec01440d2e8 | f7f9e2d2ded84e348de9e82ed9612d7525d8e670 | sonich2401/bfbbdecomp | /src/Game/zNPCTypeDuplotron.cpp | C++ | cpp | 3,796 | no_license | #include "zNPCTypeDuplotron.h"
#include <types.h>
// func_801251BC
#pragma GLOBAL_ASM("asm/Game/zNPCTypeDuplotron.s", "ZNPC_Duplotron_Startup__Fv")
// func_80125224
#pragma GLOBAL_ASM("asm/Game/zNPCTypeDuplotron.s", "ZNPC_Duplotron_Shutdown__Fv")
// func_80125228
#pragma GLOBAL_ASM("asm/Game/zNPCTypeDuplotron.s", "... |
a58e2e24d457c02cbca82e99729473abb16ad40e | 6f3ddb9130e2289f610abe9243b5670f90b18c66 | harpribot/SPOJ | /source/GNY07A.cpp | C++ | cpp | 288 | permissive | #include<iostream>
#include<stdio.h>
#include<string>
using namespace std;
int main(){
int iter, pos;
scanf("%d", &iter);
string str;
for(int i = 0; i < iter; i++){
cin>>pos>>str;
str.replace(pos - 1,1,"");
printf("%d ", i + 1);
cout<<str<<endl;
}
}
|
2e8bf6f472509f2238eef0cf0daec6cc3a9b7308 | 75f1c8663f5147f376ee10edfe96bcea77d2bd38 | okwh/QuantLibEx | /QuadraticSpline.cpp | C++ | cpp | 1,283 | no_license | #include "QuadraticSpline.hpp"
#include <cmath>
namespace QuantLib {
QuadraticSpline::QuadraticSpline(const std::vector<Real>& knots)
: n_(knots.size()), knots_ex_(knots) {
knots_ex_.insert(knots_ex_.begin(), 0.0);
}
QuadraticSpline::~QuadraticSpline() {}
Real QuadraticSpline::operator()(Natural i, Real x) ... |
2f92886938327cf498206295409a3e014d55f49a | f67a9962f102733906ad83cedc7e08bad31b38a2 | skyellen/robwork-mirror | /RobWork/src/rw/geometry/TriMesh.cpp | C++ | cpp | 1,456 | permissive | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e... |
fd94b00c3e6202cfcb92ed7ed83be9b1e91a0ee6 | 5bf3b3fdeb8a9e97d2cf14b5f65954cb7645c182 | elegantcoin/Multi_agent_planning | /ut_multi_agent_planning/multi_agent_planning_ut.cpp | C++ | cpp | 438 | permissive | #include <stdio.h>
#include "multi_agent_planning.h"
#include "multi_agent_planning_ut.h"
CPPUNIT_TEST_SUITE_REGISTRATION(UTA_Graph);
//prepare data
//Node static_node;
//static_node = {1,1};
//static_node = {2,4};
//static_node = {6,8};
void UTA_Graph::test_()
{
A_Graph static_graph;
static_graph.grid_size = 5;... |
d822a60374e51a76d9f1c36fad7438b6b2414d73 | 4044c75ab17abd984f28b7795367e357d3bc8416 | slundberg/xgboost | /src/tree/updater_colmaker.cc | C++ | cc | 39,809 | permissive | /*!
* Copyright 2014 by Contributors
* \file updater_colmaker.cc
* \brief use columnwise update to construct a tree
* \author Tianqi Chen
*/
#include <xgboost/tree_updater.h>
#include <vector>
#include <cmath>
#include <algorithm>
#include "./param.h"
#include "../common/random.h"
#include "../common/bitmap.h"
#in... |
13371c656c52a375dbe2abd487220efef609aa20 | 17ff0fa4665a904d82ff5d11c34c3d25f513f5a4 | viktormihalyi/msdfgen | /core/estimate-sdf-error.cpp | C++ | cpp | 7,323 | permissive |
#include "estimate-sdf-error.h"
#include <cmath>
#include <utility>
#include "arithmetics.hpp"
namespace msdfgen {
void scanlineSDF(Scanline &line, const BitmapConstRef<float, 1> &sdf, const Vector2 &scale, const Vector2 &translate, bool inverseYAxis, double y) {
if (!(sdf.width > 0 && sdf.height > 0))
... |
8751fb293ea25f62b1fcd11c6565beaaa402a0a2 | 2a592023e59ae9a3f3bb9bb8b54db3d263e25aae | anticrisis/json | /include/boost/json/detail/default_resource.hpp | C++ | hpp | 1,659 | permissive | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/boostorg/json
//
#ifndef BOOST_JSON_DEFAULT_RESOURCE_H... |
dc3e0b6c98f852d8f32523da3dde24b22835f27a | 32008563f585657913a4f47c4e6fd72d8e88feb2 | thegamer1907/Code_Analysis | /contest/1542575318.cpp | C++ | cpp | 2,665 | no_license | #include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define F first
#define S second
#define int long long
#define ull unsigned long long
#define pb push_back
#define double long double
using namespace std;
using namespace __gnu_pbds;
typedef tree< int , null_type, less<int>, rb... |
3e171fb563ce024d6589719b271a404d76109160 | f952644a5c4bc6f68e0597db3dff5bf6d0256601 | huaweicloud/huaweicloud-sdk-cpp-v3 | /gaussdbforopengauss/src/v3/model/GetRestoreTimeResponse_restore_time.cpp | C++ | cpp | 2,566 | permissive |
#include "huaweicloud/gaussdbforopengauss/v3/model/GetRestoreTimeResponse_restore_time.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Gaussdbforopengauss {
namespace V3 {
namespace Model {
GetRestoreTimeResponse_restore_time::GetRestoreTimeResponse_restore_time()
{
startTime_ = 0L;
startTimeIsSet_ ... |
e0ccf3118e9bbfef25deb8c73f7fbbb0634d5d8c | 00b9fce0cfcf31d6168c7e3a301c18e1d0e1de3e | studiovc/cpplox | /project/src/bytecode_vm/compiler.cpp | C++ | cpp | 25,621 | permissive | #include "compiler.hpp"
#include <algorithm>
#include <cstdint>
#include <functional>
#include <utility>
#include <vector>
#include <boost/lexical_cast.hpp>
#include <gsl/gsl_util>
#include "debug.hpp"
using std::find_if;
using std::function;
using std::move;
using std::runtime_error;
using std::string;
using std::... |
95924a67f6643f576d2319a6d6b09f162faa699d | b4c5f8dc51caa940a7834c271ee90acac50a1d9c | agravgaard/ITK | /Modules/Numerics/FEM/include/itkFEMElementStd.hxx | C++ | hxx | 1,702 | permissive | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... |
80713ac9ac125aae576f83e93c70d6698faaecb2 | 89bd7309b6fb502f94e3b2e16762ed1d491aca18 | rizonesoft/CarbonCD | /FileList.cpp | C++ | cpp | 506 | permissive | #include "StdAfx.h"
#include "filelist.h"
CFileList::CFileList ( void )
{
m_Dir = NULL;
m_Next = NULL;
}
CFileList::~CFileList ( void )
{
if ( m_Next != NULL )
{
delete m_Next;
}
}
CFileList * CFileList::CreateNext ( void )
{
if ( m_Next == NULL )
{
m_N... |
fbdc62a5ea2fc8c148dd662f7af7efa62e654d06 | 5e0971d53f82bbdb159085f838d928ce59868027 | ugurinal/C | /Lab7/lab7_7.cpp | C++ | cpp | 348 | no_license | #include <iostream >
using namespace std;
int main(){
cout << "start\n";
try {
cout << "Inside try block\n";
throw 10; // throw an error
cout << "This will not execute";
} catch(int i) {
cout << "Caught One! Number is: ";
cout << i << "\n";
}
cout... |
5ab0b5d99ae570be8680faa4b4df85fad077163e | 1685bf70b3e5388fe01f780d182e5b0d4484257b | Cobra-Technologies-GmbH/OmegaCoin | /src/stakeinput.cpp | C++ | cpp | 4,736 | permissive | // Copyright (c) 2017-2020 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#include "stakeinput.h"
#include "chain.h"
#include "txdb.h"
#include "wallet/wallet.h"
COmegaStake* COmegaStake::NewOmegaStake(co... |
fdd260e9da7607b06e03a09d944954f080910722 | 9583cf705291b19df014ac91f458be444d546f3b | alissastanderwick/OpenKODE-Framework | /01_Develop/libXMCocos2D/Source/extensions/CCArtPig/media/APSSpriteFrame.cpp | C++ | cpp | 3,063 | permissive | /* --------------------------------------------------------------------------
*
* File APSSpriteFrame.cpp
* Author Y.H Mun
*
* --------------------------------------------------------------------------
*
* Created by Kim Kiyoung on 5/7/12.
* Copyright (c) 2012 ArtPig ... |
bb5a26a655fed4542373e90a586eac419e17d7c8 | 011473c36e14a65357c890be7d8fcfb7610bf08d | bbang3/BOJ | /17397 FLEX.cpp | C++ | cpp | 877 | no_license | #include <bits/stdc++.h>
using namespace std;
const int MN = 1e3 + 5;
const int MM = 2 * 1e2 + 5;
const int INF = 2e9;
int D[MN][MM][15], C[MN];
int N, M;
// D[i][j][k] : i번째 날 / 현재 남은 잔고 j / 오늘 쓸 잔고 k 일 때 최소 박탈감
int f(int i, int j, int k)
{
int& ret = D[i][j][k];
if (ret != -1) return ret;
if (i == 1) return 0;
... |
4c5916f56ef6a2a757492b5099696698184f9e41 | d839be111ac2637854aafd161317b8e4c95e1ae7 | zenotech/VTK | /Common/DataModel/vtkImplicitSelectionLoop.cxx | C++ | cxx | 6,470 | permissive | /*=========================================================================
Program: Visualization Toolkit
Module: vtkImplicitSelectionLoop.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This ... |
d69928e2d9f476f4d98a8546346f36a7e879c9d1 | 098a7c654caabc9c36291075c93dce28d129caea | zhangzheng521/couchbase-lite-core | /C/c4Query.cc | C++ | cc | 8,933 | permissive | //
// c4Query.cc
//
// Copyright (c) 2016 Couchbase, Inc 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... |
5fd617d94ceb88e0861c06d449533533ab89448e | 6b215f8332814dcd3be1cfaf37c3d8d283662cfc | cyongli/code_bricker | /algorithm/leetcode/14/14.cpp | C++ | cpp | 990 | no_license | #include<iostream>
using namespace std;
typedef struct RandomListNode{
int label;
RandomListNode *next, *random;
}RandomListNode;
class Solution {
public:
RandomListNode *copyRandomList(RandomListNode *head) {
if(head==NULL) return NULL;
RandomListNode *copyHead;
RandomListNode *curr = head;
RandomLi... |
b7eec927060032d8b56c2a856b5bf952d07a67e0 | 8c8aac8b6954686829ef4d260969f37a2a3a6ead | Anzsley/My_Juliet_Test_Suite_v1.3_for_C_Cpp | /C/testcases/CWE126_Buffer_Overread/s02/CWE126_Buffer_Overread__malloc_wchar_t_loop_82_goodG2B.cpp | C++ | cpp | 1,263 | no_license | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE126_Buffer_Overread__malloc_wchar_t_loop_82_goodG2B.cpp
Label Definition File: CWE126_Buffer_Overread__malloc.label.xml
Template File: sources-sink-82_goodG2B.tmpl.cpp
*/
/*
* @description
* CWE: 126 Buffer Over-read
* BadSource: Use a small buffer
* GoodSource: Use... |
71340ced9b93968a507cd70220951cca79775f98 | a049e5dcb7d7a8dde90a63d4c5881be63b0eeb02 | LLNL/Tool-Gear | /src/Xmlserver/TGxmlserver.cpp | C++ | cpp | 24,882 | permissive | //! \file TGxmlserver.cpp
/***************************************************************************/
/* Tool Gear (www.llnl.gov/CASC/tool_gear) */
/* Version 2.00 March 29, 2006 */
/* Please see COPYRIGHT AND LICENSE information at the end o... |
05182ec6ed0a7fba27ce4cffa69c8181cdc3aaf7 | 5ec136d255578e8233c3fb5055fa6ec93b865d79 | Lleiro/TPs | /Algo-M3103/TP-2.1/ArbreNoeudsBinairesRecherche.cpp | C++ | cpp | 19,613 | no_license | // HB librement inspiré de
// Data Abstraction & Problem Solving with C++: Walls and Mirrors
// Frank M. Carrano and Tim Henry.
// 2013 – Pearson Education
/** @file ArbreNoeudsBinairesRecherche.cpp */
#ifdef _ARBRE_NOEUDS_BINAIRES_RECHERCHE
#include <iostream>
#include "ArbreNoeudsBinairesRecherche.h"
#includ... |
212611a6d126acc067d62c381145031456b18adb | c2baa741cc7f1865dd95f629718644153571d7f1 | snmsts/wxc | /src/stc.cpp | C++ | cpp | 12,521 | no_license | #include "wrapper.h"
extern "C"
{
#include "stc_gen.cpp"
/* wxStyledTextCtrl */
EWXWEXPORT(void*,wxStyledTextCtrl_Create)(wxWindow* _prt,int _id,wxString* _txt,int _stl)
{
#ifdef wxUSE_STC
return (void*)new wxStyledTextCtrl(_prt, _id, wxDefaultPosition, wxDefaultSize,style, _stl,*_txt);
#else
return false;
#end... |
d61cbb727df5b3fa8bb93f2eb3fd6de2e8171df0 | 995a26ed9d1d661164a6bf091a4c9c3935ef37e4 | marek-cel/mscsim | /src/fdm/xml/fdm_XmlUtils.cpp | C++ | cpp | 13,676 | no_license | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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, ... |
263ce56ebcdd2f45c8c4118718ea5890ceeaabb7 | 2bd174f79e05d03a4223d83cd8dcd380883418a2 | HiteshBhragu/100-days-of-code | /C++/CircularArrayRotaion.cpp | C++ | cpp | 608 | no_license | #include<iostream>
using namespace std;
int main()
{
int input[3];
for(int i = 0; i < 3; i++)
{
cin >> input[i];
}
int arr[input[0]];
for(int i = 0; i < input[0]; i++)
{
cin >> arr[i];
}
int index;
int q, output[arr[2]];
for(int j = 0; j < input[2]; j++)
... |
bc31a696f0b2445396850b904e6fd4a0cfda4247 | e4df3176264c573d7cdb03afbbe56792c661e32f | xzrunner/gum | /source/Painting2.cpp | C++ | cpp | 2,067 | permissive | #include "gum/Painting2.h"
#include "gum/GTxt.h"
#include "gum/StringHelper.h"
#include <gtxt_label.h>
#include <painting2/Callback.h>
#include <painting2/Color.h>
#include <painting2/Text.h>
#include <sm_const.h>
namespace
{
void copy_color(gtxt_glyph_color& dst, const pt2::GradientColor& src)
{
if (src.items.siz... |
a88bbb06ec4c2926bc5cfce74c5bf97f452a9dca | a08f1f90559e1015bfc3174c0cf0fa23d1f00e4e | Koncord/sol2 | /test_usertypes.cpp | C++ | cpp | 42,233 | permissive | #define SOL_CHECK_ARGUMENTS
#include <sol.hpp>
#include <catch.hpp>
#include <iostream>
#include <list>
#include <memory>
struct non_copyable {
non_copyable() = default;
non_copyable(const non_copyable&) = delete;
non_copyable& operator=(const non_copyable&) = delete;
non_copyable(non_copyable&&) = default;
no... |
b64a2e1fc32cba86b5886f8408055cd40c22b2a9 | da98b69b0621de00cc37dbd67b9c79d067aa266e | APCVSRepo/HMI_SDK_LIB | /ReferenceDesign/SampleQTHMI/SDLApps/Templates/utils/VideoStream/gst_player.cpp | C++ | cpp | 4,261 | permissive | #include <stdio.h>
#include "gst_player.h"
GstPlayer::GstPlayer()
:state_(STATE_NULL)
,m_x_(0)
,m_y_(0)
,m_width_(0)
,m_height_(0)
{
}
GstPlayer::GstPlayer(const std::string &file_path, const std::string &sink, bool sync, guintptr xwinid)
:file_path_(file_path)
,sink_name_(sink)
,sync_... |
855b99d65fbd47c8a763434dc828f9d231dc4d9d | 52f9cdf6f00a415a98eb9e4b40aadf072897bc96 | amazingyyc/The-Solutions-of-leetcode | /LEETCODE/Rotate List/main.cpp | C++ | cpp | 1,089 | no_license | #include <iostream>
using namespace std;
/************************************************************************/
/*
Given a list, rotate the list to the right by k places, where k is non-negative.
For example:
Given 1->2->3->4->5->NULL and k = 2,
return 4->5->1->2->3->NULL.
*/
/**********************************... |
7b9002008cc32ef0129a49e633ad1878c14ce38b | 40afda235e2ee130abf38f30bf16ae350eb468d3 | SKarolcik/VESK | /main.cpp | C++ | cpp | 14,297 | no_license | #include "mbed.h"
/////////////////////
// Pin definitions //
/////////////////////
//Photointerrupter input pins
#define I1pin D2
#define I2pin D11
#define I3pin D12
DigitalIn I1(I1pin);
DigitalIn I2(I2pin);
DigitalIn I3(I3pin);
InterruptIn I1intr(I1pin);
InterruptIn I2intr(I2pin);
InterruptIn I3intr(I3pin);
//In... |
cd4812c3d60be16790ba47f1390763b72c4ad9b0 | 31a54b4dacd256b9dd7c56129f0fddf33907488b | atelszewski/sbosubmit | /src/sbo_archive.cpp | C++ | cpp | 8,670 | no_license | #include <string>
#include <vector>
#include <iostream>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <archive.h>
#include <archive_entry.h>
#include "sbo_util.h"
#include "sbo_classlog.h"
#include "sbo_filelist.h"
#include "sbo_archive.h"
// Buffer siz... |
a7ad75e57a2ede94d1f0cbd61367570a3f4dce8f | 37339ac0a02bd07846a6cc7e05f78ed2771940cb | fuyouqie/UdemyC-Intro | /Sec18_ExceptionHandling/basic.cpp | C++ | cpp | 473 | no_license | #include <iostream>
using namespace std;
int main()
{
double num1{0};
double num2{0};
double result{0};
cout << "Enter number1: ";
cin >> num1;
cout << "Enter number2: ";
cin >> num2;
try
{
if (num2 == 0)
throw 0;
result = num1 / num2;
cout << num1 << "/" << num2 << " is " << result << endl;
}
... |
f227b1c613a1a8dfa5ec3cbef15fadf364c1099c | 37cc7bde9fd0203a28a4735614d93327e962e0cb | pmiddend/sgedoxy | /include/fcppt/preprocessor/detail/stringize.hpp | C++ | hpp | 759 | no_license | // Copyright Carl Philipp Reh 2009 - 2011.
// 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 FCPPT_PREPROCESSOR_DETAIL_STRINGIZE_HPP_INCLUDED
#define FCPPT_PREPROCESSOR_DETAIL_STRINGI... |
00f08e6e609b852cbb0a48ed3ca5b2f6beedd1cd | 739251c03118a28def4916e245ff6dfec0eed0c7 | utkucandogan/udsc2 | /udsc2/src/v1_0/tie.cpp | C++ | cpp | 8,661 | permissive | #include "tie.hpp"
#include "procedural.hpp"
namespace udsc2::v1_0
{
constexpr uint16_t alveolarVariances = api::POA_DENTAL
| api::POA_ALVEOLO_PALATAL
| api::POA_RETROFLEX
| api::POA_PALATOALVEOLAR;
conste... |
1c484459720cdabc72bb6d71b981739ccd1fa789 | 6044b82d2763bb1aa91aff6318510ded9c366165 | Sayatomoki/SPChat | /cli/build-cli-Desktop_Qt_5_10_0_GCC_64bit-Debug/moc_widget.cpp | C++ | cpp | 4,069 | no_license | /****************************************************************************
** Meta object code from reading C++ file 'widget.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.0)
**
** WARNING! All changes made in this file will be lost!
*************************************************************... |
b8426d5c8bf6b21e458032f216448c5093ea5d77 | cec0d6add110e21852ee109587ab5e0956fcd6ac | poshul/OpenMS | /src/openms/source/ANALYSIS/TARGETED/PrecursorIonSelection.cpp | C++ | cpp | 56,904 | permissive | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
e815f672d59636596a0380bcb5c38f9ead3d8169 | bf84d150fa0d871dcca10ab06dfe1c8563f73be4 | sobols/lightex | /util/string.cpp | C++ | cpp | 475 | permissive | #include "string.h"
std::string EscapeHtml(const std::string& unescaped) {
std::string buffer;
buffer.reserve(unescaped.size());
for (char c : unescaped) {
switch (c) {
case '&':
buffer += "&";
break;
case '<':
buffer += "<";
... |
1815ecd6cbfc5bf73c5ceecfee50989bae86dc8f | 9233f9384da13a27d730ee719693e6ef3a4b2baf | GrimReaper666/Etiquetage | /Etiquetage/Outils/vecteur2d.cpp | C++ | cpp | 386 | no_license | #include "vecteur2d.h"
#include <sstream>
Vecteur2D::operator string() const
{
ostringstream oss;
oss <<"( "<< x <<", "<<y<<")";
return oss.str();
}
ostream & operator << (ostream & os, const Vecteur2D & u)
{
os << (string) u;
return os;
}
void fusionne(const double x[], const double y[], int m, Vecteur2D v[])
{... |
f9ca5c519fdaaf679780bbc586c5efd95bc3cad8 | 155c9f7f6ec726f7c22b5edca0ae6438be223007 | netangel2050/aliyun-openapi-cpp-sdk | /emr/src/model/SyncDataSourceSchemaDatabaseResult.cc | C++ | cc | 1,655 | permissive | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
0dfa25763c65921ff5f29774ec3343dac30ead10 | 5d272cf0b38470298a06f20fa2fe7deef9adbcc0 | R3BRootGroup/frs | /frsdata/VftxSciMappedData.cxx | C++ | cxx | 358 | no_license | #include "VftxSciMappedData.h"
VftxSciMappedData::VftxSciMappedData()
: fDetector(0)
, fPmt(0)
, fTimeCoarse(0)
, fTimeFine(0)
{
}
VftxSciMappedData::VftxSciMappedData(UShort_t detector, UShort_t pmt, UInt_t tc, UInt_t tf)
: fDetector(detector)
, fPmt(pmt)
, fTimeCoarse(tc)
, fTimeFine... |
a85af23e30af4e506d6af64089bbbc7cb0986cf6 | 47e9126b923ce7d83f0d4eb10887c99fddc4caeb | 3660628/chtmoneyhub | /br_moneyhub4.0/BankUI/UIControl/FrameBorder/SystemButtonBar.cpp | C++ | cpp | 4,031 | no_license | #include "stdafx.h"
#include "../../Skin/SkinManager.h"
#include "SystemButtonBar.h"
#define ID_SYSBTN_MIN 1
#define ID_SYSBTN_MAX 2
#define ID_SYSBTN_RESTORE 2
#define ID_SYSBTN_CLOSE 3
CSystemButtonBarCtrl::CSystemButtonBarCtrl(FrameStorageStruct *pFS) : CFSMUtil(pFS) {}
void CSystemButtonBar... |
69b8576c823a99d2426559c34284df06e2bddfa4 | 8fea95df21e30aa3d5ca191e0a0dffb1ed43badb | errorcodexero/endurance2019 | /xerolibs/xerobase/tankdrive/TankDriveDistanceAction.cpp | C++ | cpp | 10,422 | no_license | #include "TankDriveDistanceAction.h"
#include "Robot.h"
#include "basegroups.h"
#include <SettingsParser.h>
#include <cmath>
using namespace xero::misc;
namespace xero {
namespace base {
const char *TankDriveDistanceAction::kvname_ = "tankdrive:follower:left:kv" ;
const char *TankDriveDistanceAction::kaname_ = "tan... |
9593069eabb93c4478fdcaf8da5d88925833f651 | 08a2cd13632da2b5e202a249296b3d2b5cea743d | ibmsoe/ImpalaPPC | /be/src/common/init.cc | C++ | cc | 9,057 | permissive | // Copyright 2012 Cloudera 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 wr... |
77d4b011040d6754d2811b398a83f5a7dbb58256 | f341de804bde86796e23416484b472f993c06522 | bolverk/huji-rich | /source/newtonian/three_dimensional/AMR3D.cpp | C++ | cpp | 38,881 | no_license | #include "AMR3D.hpp"
#include "../../3D/GeometryCommon/Voronoi3D.hpp"
#include "../../misc/utils.hpp"
#include <boost/array.hpp>
#include <iostream>
#include "../../3D/r3d/Intersection3D.hpp"
#include <boost/scoped_ptr.hpp>
//#define debug_amr 1
namespace
{
void RemoveRefineNeighborRemove(Tessellation3D const& tess,... |
c74c01c1be494e591626f8528dee4463e7a9ed7f | 627cd05a218fc1917c6c5b2de0c38508fe6d8328 | krzys-h/Hackulator | /main.cpp | C++ | cpp | 3,739 | no_license | #include <math.h>
#include "lcd.h"
#include "keyboard.h"
#include "speaker.h"
int64_t result = 0;
int64_t inputNumber = 0;
uint8_t commaPos = 0;
bool comma = false;
bool displayResult = true;
bool hiddenMode = false;
Key operation = KEY_EQUALS;
void fatal_error()
{
LCD::ClearScreen();
LCD::MoveCursor(0, 0);... |
848afcf0f43ca7a03dac0689747f795b75cc15a0 | 7780e8ea3e57262f840aed0a9740c5ac7d7a4f89 | trantorrepository/vixen | /src/mfc/mfcframe.cpp | C++ | cpp | 4,705 | permissive | #include "vxmfc.h"
namespace Vixen {
namespace MFC {
Frame *Frame::sm_Self;
IMPLEMENT_DYNCREATE(Frame, CFrameWnd)
BEGIN_MESSAGE_MAP(Frame, CFrameWnd)
//{{AFX_MSG_MAP(Frame)
ON_WM_CREATE()
ON_WM_MOVE()
ON_WM_CLOSE()
ON_WM_SIZE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR, ... |
9f284c98e75985dc6c826781190720a83e344afe | 243f33244fc789ee2051078d8b06af91970bf8fd | AlessandroStamatto/Admiral_Mind | /code/headers/Board.hpp | C++ | hpp | 2,312 | no_license | #ifndef BOARD_HPP
#define BOARD_HPP
#include "SceneNode.hpp"
#include "Command.hpp"
#include "ResourceHolder.hpp"
#include "GameDatatypes.hpp"
#include "GameNetwork.hpp"
#include "colorDefines.hpp"
#include "SFML/Graphics.hpp"
#include <vector>
#include <string>
class Board : public SceneNode
{
public:
Boar... |
59e1cb9c109d0a2bf7923a56e12d8387dad1faaa | ccd0d704ee70673ec574c7144d2c74afb10e5a1f | open-rdc/orne_large | /orne_large_arduino/BLMMotor.cpp | C++ | cpp | 4,877 | no_license | #include "BLMMotor.h"
#include <Arduino.h>
#include <HardwareSerial.h>
const int LEFT_FORWARD_PIN = 22;
const int LEFT_REVERSE_PIN = 23;
const int LEFT_SPEED_PIN = 44;
const int LEFT_PULSE_PIN = 3;
const int RIGHT_FORWARD_PIN = 25;
const int RIGHT_REVERSE_PIN = 26;
const int RIGHT_SPEED_PIN = 45;
const int RIGHT_... |
76a48c6b4c579ad44f39944dc407168fc135bcc9 | ae18ace585b84dbb85a3d08fd01acb9ebe5f3750 | wangyx/coolfluid3 | /src/Solver/FlowSolver.cpp | C++ | cpp | 11,525 | no_license | // Copyright (C) 2010-2011 von Karman Institute for Fluid Dynamics, Belgium
//
// This software is distributed under the terms of the
// GNU Lesser General Public License version 3 (LGPLv3).
// See doc/lgpl.txt and doc/gpl.txt for the license text.
#include <iomanip>
#include <iostream>
#include <boost/assign/list_of... |
eaac7bc10d1db6d0317a4ae92abab8a8d164cc58 | 136e9e60ed02e4a76e988fc8c819f74bcacce052 | hrmendoza96/Proyecto2_Progra3 | /Liga.cpp | C++ | cpp | 1,006 | no_license | #include <iostream>
#include <string>
#include <vector>
#include "Persona.h"
#include "Entrenador.h"
#include "Doctor.h"
#include "Asistente.h"
#include "PreparadorFisico.h"
#include "Jugador.h"
#include "Equipo.h"
#include "Partido.h"
#include "Liga.h"
Liga::Liga(string fechaIncio, string fechaFinal){
this->fecha... |
562aac7f6af0f50437090e6a9bfd85851931747b | 2a268ef63e06a826ab8f05ea175d3b2503223266 | thegamer1907/Code_Analysis | /CodesNew/3772.cpp | C++ | cpp | 564 | no_license | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define pb push_back
#define SZ(i) ll(i.size())
#define ALL(i) i.begin(),i.end()
#define MEM(i,n) memset(i,(n),sizeof(i))
ll n,m,a[103],mn,sum;
int main(... |
54f1d75b67fc155a4fd9dc438012dedd9938beb7 | c58c99c6b9bc55639eb74915667d80fd1adbbf32 | manghuang/tightly_coupled_VLC_aided_visual_inertial_SLAM | /tag_estimator/src/tag_estimator_node.cpp | C++ | cpp | 7,628 | no_license | #include <ros/ros.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/image_encodings.h>
#include <sensor_msgs/PointCloud.h>
#include <sensor_msgs/Imu.h>
#include "parameters.h"
#include "estimator.h"
#include "feature.h"
#include "frame.h"
#include "aprilTag.h"
#include "factor/integration_base.h"
using namesp... |
1ccaca22c8173a5dbbd1a01882acf75ed41d4760 | 2f610a467912db766b1c9f0ceed3f59e30c2f24b | manojk16/hackerRank | /30 Days of Code/day07.cc | C++ | cc | 1,345 | no_license | #include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#inc... |
67c8aaf9a44319a21abe993ed09dce884595830f | 4615d3cafaa554bdad1d6c56aaa949ceb7266753 | bambang16/Pertemuan3 | /Tugas5.cpp | C++ | cpp | 389 | no_license | #include <iostream>
using namespace std;
// prototype
int tambahkan();
// global variable
int a, b;
// proses utama
int main(int argc, char const *argv[])
{
cout << "Hasil : " << tambahkan() << endl;
return 0;
}
// fungsi penambahan
int tambahkan()
{
cout << "Masukan nilai A : ";
cin >> ... |
d564eb361dd205948f4c17d2d0846e6e6f761ebb | 580c9bf4c213067cab621a383c98577744e4375f | proywm/numa-caffe | /release/KNL/NUMA_Caffe/src/caffe/layers/embed_layer.cpp | C++ | cpp | 6,187 | permissive | /*
All modification made by Intel Corporation: © 2016 Intel Corporation
All contributions by the University of California:
Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
All rights reserved.
All other contributions:
Copyright (c) 2014, 2015, the respective contributors
All rights rese... |
e4992ddb1fc907b8021755176b64d475e5530eaa | f5b39de0a0291bf0efe55c44fd44f51102af5054 | Harsh50/Algo-coding | /recursion/Untitled1.cpp | C++ | cpp | 960 | no_license | #include<iostream>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
using namespace std;
void permute(char str[],char per[],int len,int last,int index)
{
int i;
for(i=0;i<len;i++)
{
per[index]=str[i];
if(index==last)
{
per[last+1]='\0';
cout<<per<<"\n\n";
}
else
permute(str,per,len,last... |
f882632c10ba76b39e62eedc6a8d2114bffb5091 | 0b06a0d4562b90d0a9795877675aa6d402f9c5eb | 15831944/uppgit | /uppdev/Fonts/main.cpp | C++ | cpp | 286 | no_license | #include <CtrlLib/CtrlLib.h>
using namespace Upp;
GUI_APP_MAIN
{
DDUMP(GetGlyphInfo(Font().FaceName("Courier New"), 35798).IsNormal());
DDUMP(GetGlyphInfo(Font().FaceName("Verdana"), 35798).IsNormal());
DDUMP(GetGlyphInfo(Font().FaceName("Symbol"), 35798).IsNormal());
}
|
9a9ebdcec40911cab7b1131dd926bf783348d6c1 | c7e19e7416b0236c8b5bc5e1fd6c091b66cb00e9 | moevm/bsc_petaichuk | /filesaver.cpp | C++ | cpp | 886 | no_license | #include "filesaver.h"
FileSaver::FileSaver()
{
next = nullptr;
}
FileSaver::~FileSaver()
{
delete next;
}
void FileSaver::setNext(FileSaver *next)
{
this->next = next;
}
void PLYFileSaver::handleFileSaving(std::string fileName, pcl::PointCloud<pcl::PointXYZRGBA>::Ptr cloudToLoad)
{
if (fileName.fin... |
e449d5b7908ee6d9563a313d67d12b2c97dbac5e | 209214bebba239ae497a29936b883dcd6d43bb78 | mycnkr/omim | /openlr/openlr_match_quality/openlr_assessment_tool/traffic_mode.hpp | C++ | hpp | 7,216 | permissive | #pragma once
#include "indexer/feature.hpp"
#include "openlr/decoded_path.hpp"
#include "openlr/openlr_model.hpp"
#include "base/exception.hpp"
#include "3party/pugixml/src/pugixml.hpp"
#include <cstdint>
#include <memory>
#include <string>
#include <unordered_map>
#include <utility>
#include <boost/optional.hpp>... |
9e014b4c671c68392e9ffe560aeea2cfb695f3a6 | 7596d51bb03f8b666b492f89c65b2cd52b246647 | nlbao/competitive-programming | /solution/Codeforces/385A.cpp | C++ | cpp | 1,039 | no_license | #include <cstdio>
#include <cmath>
#include <cstring>
#include <ctime>
#include <cctype>
#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <utility>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <functional>
#include <bitset>
// #pragma ... |
570f029672f88b91d21bbea4983d03c11e1ac1f4 | 5080495286c42932bc7086253a98993714b7ba86 | mbdaso/es-final-project | /i2cconnection.cpp | C++ | cpp | 5,266 | permissive | #include "mbed.h"
#include "rtos.h"
#include "MMA8451Q.h"
#include "common.h"
#define MMA8451_I2C_ADDRESS (0x1d<<1)
#define SENSOR_ADDR (0x29<<1)
float hum, temp;
int clear_value, red_value, green_value, blue_value;
char dominant_colour;
bool readColour = false; //Variable for ISR
float x, y, z;
Thread i2c_threa... |
1673eece5270b801bd0ce127cdae251632097d69 | 6a2fe74e8e0a4537a56aef325136af40f01efab1 | yoshimon/skia | /tools/gpu/ProxyUtils.cpp | C++ | cpp | 3,190 | permissive | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/gpu/GrBackendSurface.h"
#include "src/gpu/GrContextPriv.h"
#include "src/gpu/GrDrawingManager.h"
#include "src/gpu/GrGpu.h"
#include "src/gpu/GrProxyProvider... |
3e8bc5ef581cfa792c592b272544f54628e9d6e5 | 7fb41db6d3b3f715bc2306f77d4ad136c59ae752 | liamstask/joedb | /src/interpreter/abstract/Table.cpp | C++ | cpp | 2,138 | permissive | #include "Table.h"
#include <limits>
/////////////////////////////////////////////////////////////////////////////
Field_Id joedb::Table::find_field(const std::string &name) const
/////////////////////////////////////////////////////////////////////////////
{
for (auto &field: field_names)
if (field.second == name... |
19f0c4ccccd779e6295913edf3e456c112c89f6f | bc8c231731e81981673297c7dedfbaea87c50e72 | isabella232/M680x0-mono-repo | /clang/lib/Serialization/ASTReaderStmt.cpp | C++ | cpp | 124,528 | permissive | //===- ASTReaderStmt.cpp - Stmt/Expr Deserialization ----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
515d7c98f4c6aa6841fcccddcedd0e0e2317c84c | bc1309b2f9f5db9ffdcc0bf86415c6b98a7dfa21 | hs0ring/WebAssembly-Taint | /wasm/wasm-code-specialization.cc | C++ | cc | 10,136 | no_license | // Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/wasm/wasm-code-specialization.h"
#include "src/assembler-inl.h"
#include "src/objects-inl.h"
#include "src/source-position-table.h"
#incl... |
d4cb798ee26b9f2db3912c7d7098410d49d61d3c | 570b485048bf88e593d006f63a80b975819dbfe5 | wly0518/gansiduiSql | /MiniSql/MiniSql/src/BufferManager/BufferManager.cpp | C++ | cpp | 7,630 | no_license | /*
it is the cpp file of the BufferManager of the minisql
*it administrate a buffer
*it can read a record and write a record
*the strategy of the buffer substitution is write back
*when it need a substitution, it use LRU(least recently used) to handle it
*@author wang_kejie@foxmail.com
*@date 2015/10/18
*@version 1.0
*... |
058d2cecf037f9d95ffc57f41700388c053b46b6 | 8a8f87a6a6390f05cea08709ecdca8727e1acaf5 | rfzeg/Concurrent-Traffic-Simulation-Tasks | /L3_Project/src/Intersection.cpp | C++ | cpp | 4,594 | no_license | #include <iostream>
#include <thread>
#include <chrono>
#include <future>
#include <random>
#include <mutex>
#include "Street.h"
#include "Intersection.h"
#include "Vehicle.h"
/* Implementation of class "WaitingVehicles" */
// Safeguard all accesses to the private members _vehicles and _promises with an appropriate ... |
5ee8be7b5a3642c7483ce6e23340ab061dd1ea25 | 3c33d56d8c6ca676e99ae66e20d652bed8cdd3c6 | gianricardo/smart | /src/_StateLib/bst_db.cc | C++ | cc | 6,307 | permissive |
#include "bst_db.h"
#include <stdio.h>
// ******************************************************************
// * *
// * bst_db methods *
// * ... |
8de9b828e87873cdab32f264c6eb00c2c29e760b | f35b39f539f8ba4933359181c9a7f5253cd8563b | rzr/chromium-crosswalk | /remoting/host/desktop_resizer_win.cc | C++ | cc | 6,420 | 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 "remoting/host/desktop_resizer.h"
#include <map>
#include <windows.h>
#include "base/logging.h"
namespace {
// TODO(jamiewalch): Use the c... |
3852612536b15920eb0ec9f3fcea86ed8c0895e9 | a854425875fbfa40fdcb78e84b27a8f0082cac35 | jcwalmsley/CourseNotes_Cpp | /M4_control/for_loops.cpp | C++ | cpp | 450 | no_license | /*
"for loops in C++ have the following forms:"
for ( declaration : range ) statement;
for (initialization; condition; increase) statement;
*/
// Example of the second format of a for loop
#include <iostream>
int main()
{
for(int i=0; i< 10; i++)
{
std::cout<<"i = "<<i<<"\n";
}
re... |
b97459f7fbf27744ddb29d4f00684a24d328ff12 | e0e6fe0b91fa504d779d5751becaa85eb83760ae | hokein/chromium | /chrome/browser/ui/webui/signin/inline_login_handler_impl.cc | C++ | cc | 11,887 | permissive | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/signin/inline_login_handler_impl.h"
#include "base/bind.h"
#include "base/prefs/pref_service.h"
#include "base/strings/... |
309f812a6a3ff137a83a2eb644e7fc08c4bb8a9d | 1bdd4a85ca646740bbba73ec910d869921d1506c | anadyonisio/computacao_grafica | /Point3D.cpp | C++ | cpp | 755 | no_license | #include "Point3D.h"
void Point3D::setX(double x)
{
this->x = x;
}
void Point3D::setY(double y)
{
this->y = y;
}
void Point3D::setZ(double z)
{
this->z = z;
}
double Point3D::getX()
{
return x;
}
double Point3D::getY()
{
return y;
}
double Point3D::getZ()
{
return z;
}
Point3D Point3D::multiply(Matrix3D ... |
0729322561b2030ab2d355f9f5a0f8aa00f90010 | 74d5185fbcc02b98e439ab354b4da7de8c12517f | andriugarcia/Belkan | /Comportamientos_Jugador/jugador.cpp | C++ | cpp | 29,868 | no_license | #include "../Comportamientos_Jugador/jugador.hpp"
#include "motorlib/util.h"
#include <chrono>
#include "./heap.cpp"
#include <omp.h>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <set>
#include <stack>
#include <cstdlib>
using namespace std::chrono;
// Indica si se ha recargado, para no hacer ... |
690ec25ddd9f2d9600c2a2f61c2b339d8a7f02a0 | a3664c20b07104c4020fa5daacf9295dfc76e978 | kushkgp/CompetitiveCode | /gulab/codejam/2018/Qualification/trouble_sort.cpp | C++ | cpp | 1,203 | no_license | /*
Author : Gulab Arora
Institute : IIT Kharagpur
*/
#include <bits/stdc++.h>
#define max3(a,b,c) (max(max(a,b),c))
#define min3(a,b,c) (min(min(a,b),c))
#define inf 1e9
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define all(c) (c).begin(),(c).end()
#define allr(c) (c).rbegin(),... |
16ce677783daa99395137d16a67d08e158f5bd29 | 11388d830bb2689d60c248d4875d89638ca2325c | Neryss/cpp_pool | /day02/ex00/Fixed.hpp | C++ | hpp | 313 | no_license | #ifndef FIXED_HPP
#define FIXED_HPP
#include <iostream>
#include <string>
class Fixed
{
private:
int p_value;
const static int p_bits = 8;
public:
Fixed();
Fixed(const Fixed &f1);
~Fixed();
Fixed &operator=(Fixed &other);
int getRawBits() const;
void setRawBits(int const raw);
};
#endif
|
170f8ecb59190970fb546e0169a622f6e009314d | 9f98fa35fba0e825ef9ebbe2c4c4c74aa61dacec | GINK03/lightgbm-feature-transform | /src/io/config.cpp | C++ | cpp | 18,013 | permissive | #include <LightGBM/config.h>
#include <LightGBM/utils/common.h>
#include <LightGBM/utils/random.h>
#include <LightGBM/utils/log.h>
#include <vector>
#include <string>
#include <unordered_set>
#include <algorithm>
#include <limits>
namespace LightGBM {
void ConfigBase::KV2Map(std::unordered_map<std::string, std::str... |
c3fbc878e3d2c80cbdfdcc82c96b557aa8c41220 | a377bb4bba683c7b7be679798430a22f89185468 | qoega/ClickHouse | /src/Interpreters/OptimizeDateOrDateTimeConverterWithPreimageVisitor.cpp | C++ | cpp | 7,369 | permissive | #include <Interpreters/OptimizeDateOrDateTimeConverterWithPreimageVisitor.h>
#include <Core/Field.h>
#include <Core/NamesAndTypes.h>
#include <Common/DateLUT.h>
#include <Common/DateLUTImpl.h>
#include <Functions/FunctionFactory.h>
#include <Interpreters/IdentifierSemantic.h>
#include <Parsers/ASTIdentifier.h>
#includ... |
da3ed781908965f0e0b2e0016111cd5c14e266f5 | 17ce8468acd0ce1059dbe9f7ebcea3da6f5b531d | winter-txieyyue/chromium | /chrome/browser/file_select_helper.cc | C++ | cc | 27,790 | 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/file_select_helper.h"
#include <stddef.h>
#include <string>
#include <utility>
#include "base/bind.h"
#include "base/files... |
2e065eedcc700d87e56b009bf32103819ee57923 | 9c8848ba56915d1d610fe00029abbfaad51284e7 | jorgesmu/Taller | /Diablo/Servidor/misiones.cpp | C++ | cpp | 1,157 | no_license | #include "misiones.h"
#include "../source/utilities/aux_func.h"
#include <iostream>
extern MapaServidor mapa;
void Misiones::agregarBandera() {
bool done=false;
int cont=0;
int x,y; //posiciones de la bandera
int w,h; //dimensiones del mapa
mapa.getSize(&w, &h);
while (!done && cont<999) {
x=intRand(0,w-1);
... |
af14192d3aa1cba0933fe8e28bdd2b21225aff61 | 90fddc66f4e0c56f2eb9254d9a33416458fa26a6 | Jerrylove/resiprocate | /apps/reConServer/reConServerConfig.hxx | C++ | hxx | 3,189 | permissive | #if !defined(RECON_CONFIG_HXX)
#define RECON_CONFIG_HXX
#include <sys/ioctl.h>
#include <stdio.h>
#include <map>
#include <asio.hpp>
#include <rutil/ConfigParse.hxx>
#include <rutil/Data.hxx>
#include <rutil/Log.hxx>
#include <rutil/BaseException.hxx>
#include <resip/stack/SipConfigParse.hxx>
#include <resip/recon/U... |
793d21756dced6869b4c712dad8090652857e2c8 | 8ade6b814f504cf1068481c2179c675a1a73259d | bmildner/aws-sdk-cpp | /aws-cpp-sdk-elasticache/source/model/DescribeReplicationGroupsRequest.cpp | C++ | cpp | 1,537 | permissive | /*
* Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... |
4bd24ad1ebc884e80e07edc17123cd68d11feab0 | 3f08d5f41dc3cfe1a7f907acc0929f864c4d616a | SamCZ/Hydra | /Hydra/Hydra/Platform/WIndows/App/WinTaskbar.cpp | C++ | cpp | 1,375 | no_license | #include "WinTaskbar.h"
#include <ShObjIdl.h> //Taskbar
#include "WinWindow.h"
WinTaskbar::WinTaskbar() : TaskbarList3(nullptr)
{
::CoInitialize(NULL);
if (CoCreateInstance(CLSID_TaskbarList, NULL, CLSCTX_INPROC_SERVER, IID_ITaskbarList3, (void **)&TaskbarList3) != S_OK)
{
TaskbarList3 = nullptr;
}
}
WinTask... |
bf4e076ffb2085421933d889f3e171ee0736dd56 | 4ecbb56996951a42ee1eeb049ca35b25cf829e04 | utrerf/ProgAbs | /Prog Abs/Prog Abs/P7.cpp | C++ | cpp | 649 | no_license | //
// P7.cpp
// Prog Abs
//
// Created by Francisco Utrera on 6/5/17.
// Copyright © 2017 Francisco Utrera. All rights reserved.
//
#include <iostream>
using namespace std;
// Testing programs for excercise 7 of the book
int main() {
// Initialize variables
int const SENTINEL = -1;
double scores = 0;
double sum... |
903f5d037e8d073f7f168ed06676c1c34c84990b | 3453292764070b4c275ef0fde6e614e1c687307d | YoBismarck20/NBC | /newTest.cpp | C++ | cpp | 744 | no_license | //
// main.cpp
// NB_C++
//
// Created by Alexandru Cristian on 06/04/2017.
//
//
#include "Read.hpp"
#include "NB.hpp"
#include "Diskutil.hpp"
#include <cstring>
#include <cstdlib>
#include <cstdint>
#include <unordered_map>
#include <boost/program_options.hpp>
using namespace std;
namespace p_opt = boost::program_... |
ac5164d7541fafb5d523b542ff9ccd39ed3a1534 | c8ec7efb15ab2dc77b3c031a922c549702bf10fe | mydeveloperday/llvm-project | /llvm/lib/Target/AArch64/AArch64StackTagging.cpp | C++ | cpp | 24,992 | permissive | //===- AArch64StackTagging.cpp - Stack tagging in IR --===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//... |
aaa2a1ad761e731dfd372e76f87156c5e579f28b | 49720e54c53aea968fb733648a8b4e6e861c4b0b | zxf-work/GraphProfile | /boost_1_63_0/libs/hana/example/accessors.cpp | C++ | cpp | 1,251 | permissive | // Copyright Louis Dionne 2013-2016
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
#include <boost/hana/accessors.hpp>
#include <boost/hana/assert.hpp>
#include <boost/hana/at.hpp>
#include <boost/hana/define_struct.hpp>
#... |
08da24870217a87bc5e153c00d072b6ac45219a8 | fcc2aa84823530a489235c3444f849789aa10c3b | diksh735/daa-diksh735 | /Graph_Algorithms/Elementary_Graph_Algos/BFS.cpp | C++ | cpp | 1,298 | no_license | #include<bits/stdc++.h>
#include<list>
using namespace std;
int k=0;
int arr[4];
class Graph
{
int V;
list<int> *adj;
public:
Graph (int v); //constructor
void addEdge(int v,int w);
void BFS(int s);
};
Graph :: Graph(int v)
{
V=v;
adj = new list<int>[v]; //creating an array for every ve... |
0db67dea6633e5ef2bd97138dd114a316dcec8f2 | 4c395ee027af8c78151c4fb96f1a9c33e7bd8df7 | Tasmim-Tithi/C-LAB | /oop lab q 3.cpp | C++ | cpp | 8,177 | no_license | #include <iostream>
#include <stdio.h>
#include <vector>
#include <stdlib.h>
#include <time.h>
#include <algorithm>
using namespace std;
class Person
{
private:
string name;
string DOB;
public:
Person() {}
Person(string name)
{
this->name = name;
}
Person(stri... |
e362a7c0f17fa09c1b9a8d02f033f5d433b0bb33 | e5f5d71c30ff4f01cbe82bdac84ba78c99c50c68 | uel-dataexchange/Opencascade_uel | /drv/BOPTools/BOPTools_IDMapOfPaveBlockIMapOfPaveBlock_0.cxx | C++ | cxx | 1,926 | no_license | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#include <BOPTools_IDMapOfPaveBlockIMapOfPaveBlock.... |
50b2d0da3b09b7e098e207faf3460b5001becc90 | bf0f4f3cacc887f7dbe36d5ba1933ba3129b1b5f | QPC-database/aws-sdk-cpp | /aws-cpp-sdk-alexaforbusiness/source/model/ForgetSmartHomeAppliancesRequest.cpp | C++ | cpp | 981 | permissive | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/alexaforbusiness/model/ForgetSmartHomeAppliancesRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::AlexaForBusiness::Model;
using namesp... |
281c3921634fc1d9fb466326dcf02f1c74184f21 | 1afb829253b099f4de866dd07b8d7985623cc7f2 | jaroslaw-wieczorek/lpo-image-processing | /app/cpp/mysimplegimp/src/core/transformations/edge_sobel.cpp | C++ | cpp | 1,301 | permissive | #include "edge_sobel.h"
#include <iostream>
EdgeSobel::EdgeSobel(PNM* img, ImageViewer* iv) :
EdgeGradient(img, iv)
{
prepareMatrices();
}
EdgeSobel::EdgeSobel(PNM* img) :
EdgeGradient(img)
{
prepareMatrices();
}
void EdgeSobel::prepareMatrices()
{
g_x = math::matrix<float>(3, 3, {-1, 0, 1, -2, ... |
909cd4c7b7587248d7d3c81e00892237cc7d125b | 7445f9a7080e877aefc48832e97833665d7086db | ohwada/SFML-Game-Development-Book | /09_Audio/Source/SoundPlayer.cpp | C++ | cpp | 3,125 | no_license | // SoundPlayer
// Sound effects
// We have many gameplay events that can be represented by sounds: Fired machineguns, launched missiles, explosions, collection of pickups,
// We implement a class for the sound effects, one similar to the MusicPlayer class
// The class contains a resource holder for the sound buffers a... |
dedb075ac98c70e5057d44007d3287a5d709b9e9 | 2cdb245594ed29d2010cf2f9e678d71814937ed7 | urnest/urnest | /xju/snmp/decodeSnmpV1SetRequest.cc | C++ | cc | 8,461 | permissive | // Copyright (c) 2015 Trevor Taylor
//
// Permission to use, copy, modify, distribute and sell this software
// and its documentation for any purpose is hereby granted without fee,
// provided that the above copyright notice appear in all.
// Trevor Taylor makes no representations about the suitability of this
// softw... |
f1a0aa3ee1c962354fbe1df0fd3c3acabc4bb491 | 805b00e53c9a72db4fd0ffc459e371803d7bae17 | AtomicOrbital/CppSource | /khoangcachgiuahainode.cpp | C++ | cpp | 1,084 | no_license | #include<bits/stdc++.h>
#define FORT(i,a,b) for(int i=a;i<b;i++)
#define FORD(i,a,b) for(int i=a-1;i>=b;i--)
#define mp make_pair
#define F first
#define S second
using namespace std;
vector<vector<int> > x;
vector<int> trace;
vector<bool> dd;
int V;
int bfs(int s, int t)
{
dd.clear();
dd.resize(V+1,0);
qu... |
5e1603f3431887a1e5ca9c1d65227dd6f6952502 | f79aa847a3cf9b862f6521597bf1fff29cf3f179 | zhao07/leechcraft | /src/plugins/snails/mailtreedelegate.cpp | C++ | cpp | 2,328 | permissive | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2006-2014 Georg Rudoy
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... |
2efc0710dac4e2b574dd2ea3bb7fd64151555296 | a9781ed30c53b1ded9299c0e082de86431180b97 | MLSA-Mehran-UET/learn2code | /C++/selectionSort.cpp | C++ | cpp | 911 | permissive | // C++ program for implementation of selection sort
#include <bits/stdc++.h>
using namespace std;
void swap(int *xp, int *yp)
{
int temp = *xp;
*xp = *yp;
*yp = temp;
}
void selectionSort(int arr[], int n)
{
int i, j, min_idx;
// One by one move boundary of unsorted subarray
for (i = 0; i < n-1; i++)
{
// F... |
abcf79241db4ab1cfbbad2272fa216ddf77b6e45 | 685487bec1ddaba91b3b73d53036051c91cf9157 | luoxz-ai/ew_base | /src/ewa_base/util/strlib.cpp | C++ | cpp | 7,400 | permissive | #include "ewa_base/util/strlib.h"
#include "ewa_base/basic/lookuptable.h"
#include "ewa_base/basic/codecvt.h"
#include "ewa_base/basic/system.h"
#ifdef EW_MSVC
#pragma warning(disable:4309)
#endif // EW_MSVC
EW_ENTER
arr_1t<String> string_words(const String& s)
{
const char* p=s.c_str();
bool last_i... |
461af2e65149b7324d27c657a454d139c415a153 | a11782fb04ce1066906b7d5a23823c9a278d02b3 | ishtanbul/llvm-project | /llvm/lib/Transforms/IPO/Inliner.cpp | C++ | cpp | 45,303 | permissive | //===- Inliner.cpp - Code common to all inliners --------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.