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 |
|---|---|---|---|---|---|---|---|---|
2178bf7991fe4b954218fe998f59f02c6fffc640 | cdac29ce6b549b3be0fa49e1687edb38db3d2e97 | wojciechkuzmik/ProjektGrafika | /GUI.cpp | C++ | cpp | 4,844 | no_license | ///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Oct 26 2018)
// http://www.wxformbuilder.org/
//
// PLEASE DO *NOT* EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "GUI.h"
//////... |
9b60084cf2f1f9d40f0f39c0bb9f8aef18b87ca9 | 42431368313e3f95e890b04dd8e5e25358b34e12 | feliperodri/cbmc | /unit/analyses/variable-sensitivity/full_struct_abstract_object/to_predicate.cpp | C++ | cpp | 2,363 | permissive | /*******************************************************************\
Module: Tests for full_struct_abstract_objectt::to_predicate
Author: Jez Higgins
\*******************************************************************/
#include <analyses/variable-sensitivity/abstract_environment.h>
#include <analyses/variable-s... |
1a6f1c4dd2a0cfd87b71c35f6401ca2fd69e0461 | b45c43326ab5b2c6793325877f17d5a1f54bb52d | jocagos/competitive | /UVa/UVa1235.cpp | C++ | cpp | 8,553 | no_license | #include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/trie_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/priority_queue.hpp>
using namespace std;
using namespace __gnu_pbds;
using ll = long long;
using i64 = unsigned long long;
using ld = long double;
/... |
38b9e8117c37f0e4306b4640a536ba78fe64de29 | e2d6afe32397073ad5471bf1672844666d943178 | weisha1991/Dsl | /code/src/l0-infra/trans-dsl/utils/AdaptedTimerInfo.cc | C++ | cc | 646 | no_license | /*
* AdaptedTimerInfo.cc
*
* Created on: Apr 24, 2013
* Author: arthur
*/
#include "l0-infra/trans-dsl/utils/AdaptedTimerInfo.h"
TSL_NS_BEGIN
////////////////////////////////////////////////////////////////
AdaptedTimerInfo::AdaptedTimerInfo()
: timerInfo(0)
{
}
//////////////////////////////////////... |
8805efbb48c799e3bad7391fc34904b9a6fbde51 | ca1bcc517643146483f3499119de2e298648f2dd | ananya-byte/Code-for-HacktoberFest-2021 | /Beginner/C++/evenOrOdd.cpp | C++ | cpp | 269 | no_license | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--){
int n;
cin>>n;
if(n%2 == 0){
cout<<"Even"<<endl;
}
else{
cout<<"Odd"<<endl;
}
}
return 0;
} |
48a20984124115ea242b95e34f337441a936aa18 | 1ead619518b29d5cb0d449fca32c8d6f3b8f81bd | Superty/llvm-project | /mlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp | C++ | cpp | 27,501 | permissive | //===- ConvertSPIRVToLLVM.cpp - SPIR-V dialect to LLVM dialect conversion -===//
//
// 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
//
//===---------------------------... |
78d05640820cac283fe1c9c49370fc2a165112c3 | 34db3548d8026ae47a031c56eedf96ad57835fa1 | ghsecuritylab/RZA1LU_GUILabs | /completed/RZA1LU_Lab07/src/tes/GUI_Sample/Source/MyGUI_SR.cpp | C++ | cpp | 3,646 | no_license | /*
* Copyright (C) 2004 TES Electronic Solutions GmbH,
* All Rights Reserved.
* This source code and any compilation or derivative thereof is the
* proprietary information of TES Electronic Solutions GmbH
* and is confidential in nature.
* Under no circumstances is this software to be exposed to or placed
* under an Op... |
3560e89215f5378f4912c12148fbc75bd7fdf3b1 | 6f5b4528b7f68f307227dca1e02e5f702453f075 | StateFromJakeFarm/compProgramming | /code_jam_17/tidy_numbers/tidy_numbers.cpp | C++ | cpp | 932 | no_license | #include <iostream>
#include <vector>
using namespace std;
void print(const vector<char> &v) {
for (unsigned i=0; i<v.size(); i++) {
cout << v[i];
}
cout << endl;
}
void print_last_tidy(string &N) {
vector<char> v;
int i;
for (i=0; i<N.length(); i++) {
v.push_back(N[i]);
}... |
1590bcf41e334e766c9277892269cfc2365b9fc3 | 2adfd4c66c66b25032d5030fc2e812fca02ddeb7 | svn2github/libicu_full | /tags/release-3-0/source/common/normlzr.cpp | C++ | cpp | 18,151 | permissive | /*
*************************************************************************
* COPYRIGHT:
* Copyright (c) 1996-2003, International Business Machines Corporation and
* others. All Rights Reserved.
*************************************************************************
*/
#include "unicode/utypes.h"
#if !UCONF... |
58e9d06ccf2748a6cde91cb30eaf83f3ef990dcd | 8cbe346ebdb1dbdca487580f731643e533dc7e5b | ndnhuy/QuickNote-LTWin | /QuickNote/QuickNote.cpp | C++ | cpp | 25,056 | no_license | // QuickNote.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "QuickNote.h"
#include <commctrl.h>
#include <windowsX.h>
#include <winuser.h>
#include <float.h>
#include <stdio.h>
#include <iostream>
#include <io.h>
#include <fcntl.h>
#include <windows.h>
#pragma comment(linker,"\"/m... |
3bf7864f5a920a2631800a8cbd35b9fb3e7d893d | 8a4043b1ee109c10e1feb5ed22c18e550de9c134 | edenreich/console-component | /examples/todo/commands/hello_world.cpp | C++ | cpp | 1,562 | permissive | #include "hello_world.h"
/**
* Retrieve the name of the command.
*
* @return std::string
*/
std::string HelloWorld::getName() { return "hello:world"; }
/**
* Retrieve the description of the command.
*
* @return std::string
*/
std::string HelloWorld::getDescription() { return "output hello world to the console... |
c68a8ea08586f71ccac9173a53b7d7d73086ba26 | c239a954088e44ff5204b18e96be0d296096e9b8 | ianhbell/teqp | /interface/js/emscripten_interface.cxx | C++ | cxx | 2,008 | permissive | /// *********************************************************************************
/// EMSCRIPTEN (for javascript)
/// *********************************************************************************
#include <emscripten/bind.h>
using namespace emscripten;
#include <optional>
#include "teqp/m... |
e0ccf925ff88382049a90e87dc2ed84efd9e0199 | 4b0f67378f3748a1f12ab306ff2fb3ac0025b059 | huynguy97/IP-Week8 | /main.7845338531718678014.cpp | C++ | cpp | 16,132 | no_license | //
//
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <cassert>
using namespace std;
struct Length
{
int minutes; //
int seconds; //
};
struct Track... |
1ba0dd885c989271b9f7e788d15595a679510674 | c879f66d06459d0fef11046b9b5614bd4a13daa0 | Chunshan-Theta/winsock2--Client-server | /C_Templete/main.cpp | C++ | cpp | 1,386 | no_license | //Client
#define _WINSOCK_DEPRECATED_NO_WARNINGS
//#include "stdafx.h"
#include <WINSOCK2.H>
#include <STDIO.H>
#include <string>
#pragma comment(lib,"ws2_32.lib")
using namespace std;
void Requery()
{
WORD sockVersion = MAKEWORD(2, 2);
WSADATA data;
if (WSAStartup(sockVersion, &data) != 0)
{
system("Pause");
... |
134509ee1a8f48151f4eb6341f569ca5803c2d8b | b48e321e2b98166893cd0e46a7db990e297eaa74 | JamesYang007/FastAD | /test/forward/core/forward_unittest.cpp | C++ | cpp | 4,107 | permissive | #define _USE_MATH_DEFINES
#include <fastad_bits/forward/core/forward.hpp>
#include "gtest/gtest.h"
namespace ad {
struct adforward_fixture: ::testing::Test
{
protected:
};
////////////////////////////////////////////////////////////
// Unary
////////////////////////////////////////////////////////////
TEST_F(adforw... |
d3d977995be027c30df0c8f1b63da26afcba6010 | a961ae2825078a7cc6f7bdc1ce02fc44e5f930c5 | imoctavio/SmartCityHostGUI | /second_window.cpp | C++ | cpp | 2,437 | no_license | #include "second_window.h"
#include "ui_second_window.h"
#include "temp_graph_node1.h" // This includes the new window for the temperaure of node #1
#include "temp_graph_node2.h"
#include "temp_graph_node3.h"
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>
#include <QDebug>
QSerialPort *ser... |
7fbbec8972f57235fc32a843656cf70852eb786b | c1095686e75cb93bfe88b6e86a53621cf438adc2 | bartholmberg/openvino | /inference-engine/src/legacy_api/src/shape_infer/ie_reshape_launcher.hpp | C++ | hpp | 9,759 | permissive | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <ie_layers.h>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <string>
#include <vector>
#include "shape_infer/built-in/ie_built_in_holder.hpp"
#include "shape_infer/const_infer/ie_c... |
983b69bd9f2df52eb0dfac7eff29453d00d4e82f | 694b9bc6e3e8e6cf11133b46ec6fd18784b448f1 | railsonrames/chromium | /ash/assistant/ui/assistant_container_view.cc | C++ | cc | 14,206 | permissive | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/assistant/ui/assistant_container_view.h"
#include <algorithm>
#include "ash/assistant/assistant_controller.h"
#include "ash/assistant/assi... |
c8bb16b4399870b61363b8cdd8a690931ed09952 | bfab2d0448a97bcc70e400c13f4979b9be3d92c1 | lai3d/ThisIsASoftRenderer | /ThisIsASoftRenderer/Editor/XTP/Source/SkinFramework/XTPSkinObjectTab.cpp | C++ | cpp | 12,674 | no_license | // XTPSkinObjectTab.cpp: implementation of the CXTPSkinObjectTab class.
//
// This file is a part of the XTREME SKINFRAMEWORK MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER ... |
8efa47533ed5f73ef022a050fe17cc8e55db013f | 68ae2630ceffadb0f43073129d3318fee881f6f8 | scottsideleau/MOOS-IvP-releases | /ivp/src/lib_behaviors-marine/BHV_ConstantHeading.cpp | C++ | cpp | 5,662 | no_license | /*****************************************************************/
/* NAME: Michael Benjamin, Henrik Schmidt, and John Leonard */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: BHV_ConstantHeading.cpp */
/* DATE: Jul 21st 2005 ... |
fb16ca3666c66a2360b77ed878f4965cb31e572c | 06c64993d8e5d6181cecc9472b492413a4b389f2 | JVictorGalvao/LP1 | /Lista 1/Ex4/main.cpp | C++ | cpp | 1,179 | no_license | #include <iostream>
#include "4.h"
int main(){
Data hoje = Data(16,12,2019);
Data amanha = Data();
Data futuro = Data(1,1,2020);
std::cout << "Hoje: " << hoje.getDia() << '/' << hoje.getMes() << '/' << hoje.getAno() << std::endl;
std::cout << "Mes: " << hoje.getMesExtenso() << std::endl;
std:... |
862519a94468ce91dec4be5ddecdd5a720c13ac0 | 0702d12b6dadf4b589a8ed73dcae57bbdea5fbef | almedina-ms/botbuilder-dotnet | /libraries/AdaptiveExpressionsCpp/AdaptiveExpressionsCpp/BuiltinFunctions/Ceiling.cpp | C++ | cpp | 962 | permissive | #include "Ceiling.h"
#include "../Code/ExpressionType.h"
#include "../Code/FunctionUtils.h"
#include <limits>
#include <any>
#include <cstdlib>
#include <cmath>
#include <math.h>
AdaptiveExpressions_BuiltinFunctions::Ceiling::Ceiling() :
ExpressionEvaluator(ExpressionType::Ceiling, ReturnType::Number)
{
}
ValueE... |
fef7993cac236e849fb8df4e7b1aa42aac4e66bf | 1e5507db4ac73207c4f1fe93ac34780d577fd387 | Himanish-9502/Competative_Coding | /Dynamic_Programming/azgrid1.cpp | C++ | cpp | 3,269 | no_license | /*
Number of Paths in Grid - 1
Time-Limit: 1 sec Score: 100
Memory: 256 MB
Relevant For:
Description
Given a grid of size n*m, you need to find the number of paths from (1, 1) to (n, m). You are allowed to move from (x, y) to (x+1, y) and (x, y) to (x, y+1). The grid may have some blocked cells, represented by 1, a... |
730d4370f187eec09bd243bfdfcc7f57a6c9c62b | 4899b64ba81c18536a1081796d664950a745c927 | LeZhang2016/openthread | /src/core/thread/src_match_controller.cpp | C++ | cpp | 6,896 | permissive | /*
* Copyright (c) 2017, The OpenThread Authors.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this ... |
ddf8df2f2cdfe3f87805a6e84f2aedca5f755721 | 8cef955d9df8b42f5a139197d870d6fe48a25118 | Chiru/NVE_Simulation | /GUI/XmlSerializer.cpp | C++ | cpp | 8,067 | no_license | /**
* Copyright (c) 2013 Center for Internet Excellence, University of Oulu, All Rights Reserved
* For conditions of distribution and use, see copyright notice in license.txt
*/
#include "XmlSerializer.h"
#include "StreamWidget.h"
#include <QFile>
#include <iostream>
XmlElement::XmlElement(const QString &name)
... |
bc6821b4b54c1ab70e7c0bd2183f0d3610e5a20d | 6e252cc1e61839ba208097fa600d1381c0a2c9c8 | aritra1999/Competitive-Programming | /template/template_test_case_number_output.cpp | C++ | cpp | 1,803 | no_license | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define TAB << "\t" <<
#define vll vector<ll>
#define vi vector<int>
#define pi pair<int,int>
#define vs vector<string>
#define vp vector < pair<int, int> >
#define pb push_back
#define all(a) (a).begin(), (a).end()
#de... |
0a6ac00ea6744d2bba5aa3adabd34a7c480b6421 | 02d687929ecb5c685d8edb87d6ccd0c75e741702 | bopopescu/quic-inverse-multiplex | /src/net/quic/test_tools/crypto_test_utils_test.cc | C++ | cc | 6,548 | 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 "net/quic/test_tools/crypto_test_utils.h"
#include "net/quic/core/crypto/crypto_server_config_protobuf.h"
#include "net/quic/core/quic_utils... |
e913d69fe75a7471ac4c9b4d63adac8d4dfc3fe2 | 9b8f66f172db457b6564cdbea4f1c774dab65efe | kiranhegde/2D_NS_Solver | /src/diss_roe2_prim.cpp | C++ | cpp | 35,226 | no_license | #include "../inc/global_declarations.h"
#include "../inc/basic_functions.h"
template <typename T>
T MaxEigVal(T ur, T ul, T vr, T vl, T ar, T al, T nx, T ny);
template <typename T>
T Minmod_Flux(T del_p, T del_m);
template <typename T>
T VanAlbada_Limiter(T del_plus, T del_minus);
template <typename T>
T Venki_Limi... |
baca607caa5248822e86c1613a31bf97018e8cb1 | 36729b3a0c5e9effbe7444d3ff839d7de396e1ac | dungdna2000/gamedev-intro-tutorials | /04-Collision/Mario.cpp | C++ | cpp | 6,871 | no_license | #include <algorithm>
#include "debug.h"
#include "Mario.h"
#include "Game.h"
#include "Goomba.h"
#include "Coin.h"
#include "Collision.h"
void CMario::Update(DWORD dt, vector<LPGAMEOBJECT> *coObjects)
{
vy += ay * dt;
vx += ax * dt;
if (abs(vx) > abs(maxVx)) vx = maxVx;
// reset untouchable timer if untouchab... |
dcbb29647f8f7e6eeb6a9d3fa34f40ede41b7020 | 42f3dd9ffbc017df1ef4d41e8e5a3878e9bc8a66 | nohajc/llscheme | /include/reader.hpp | C++ | hpp | 1,653 | permissive | #ifndef LLSCHEME_READER_HPP
#define LLSCHEME_READER_HPP
#include <iostream>
#include <sstream>
#include <memory>
#include <string>
#include <vector>
#include <stack>
#include "runtime.h"
namespace llscm {
using namespace std;
enum TokenType {
INT, FLOAT, STR, SYM, KWRD, ERR
};
enum Keyword {
KW_LPAR, KW_RPA... |
e241b1cd0eead967a2bde4a26bad43e97490e607 | de27f02285d5db1dcea93841cb86934c352a44d9 | KhronosGroup/VK-GL-CTS | /external/vulkancts/modules/vulkan/amber/vktAmberDepthTests.hpp | C++ | hpp | 1,227 | permissive | #ifndef _VKTAMBERDEPTHTESTS_HPP
#define _VKTAMBERDEPTHTESTS_HPP
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2020 Valve Corporation.
* Copyright (c) 2020 The Khronos Group Inc.
*
* Licensed under the Apache Lice... |
4dccb4f9afa27d08dd7329b16ca12614f445a558 | 1bdff012d1b908f88e04c9fa6ff3d458611e64d8 | jordan-woyak/glwrap | /include/glwrap/shader.hpp | C++ | hpp | 1,524 | no_license | #pragma once
#include "attribute.hpp"
#include "framebuffer.hpp"
#include "detail/variable.hpp"
namespace GLWRAP_NAMESPACE
{
class context;
namespace detail
{
struct shader_obj
{
static void create_objs(enum_t _target, sizei_t _n, uint_t* _objs)
{
while (_n--)
{
*(_objs++) = GLWRAP_GL_CALL(glCreateShader... |
cbb0fe34e71564ef50153a9df8e37953e0cc2c8c | 5dea89b3a637cfb12799a6ca4856c763a2ffe94c | taylr/vespa | /eval/src/tests/eval/compile_cache/compile_cache_test.cpp | C++ | cpp | 14,864 | permissive | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/testkit/test_kit.h>
#include <vespa/eval/eval/llvm/compile_cache.h>
#include <vespa/eval/eval/key_gen.h>
#include <vespa/eval/eval/test/eval_spec.h>
#include <vespa/vespalib/ut... |
ae3e6ac7671cc5aaf4aa88dfff126900175ddec4 | 90760cf9e91fb40db483d350eabdedfda03e413b | priyananda/projects | /pixelx/src/PxPhysics/src/PxVector.cpp | C++ | cpp | 3,927 | no_license | #include "PxVector.h"
PxVector::PxVector(float X,float Y,float Z)
{
x = X; y = Y; z = Z;
}
PxVector PxVector::operator+(const PxVector & vVector) const
{
return PxVector(vVector.x + x, vVector.y + y, vVector.z + z);
}
PxVector PxVector::operator-(const PxVector & vVector) const
{
return PxVector(x - vVector.x, y - ... |
5b88cea268c325216ef6abfe486bdeb1c89ee56a | 69bf8906d47d4c6357451f959e122e569878f75a | LazyPlanet/MX-Architecture | /ThirdParty/boost_1_63_0/libs/geometry/test/algorithms/set_operations/union/union.cpp | C++ | cpp | 22,360 | permissive | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Unit Test
// Copyright (c) 2007-2016 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2016 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2016 Mateusz Loskot, London, UK.
// This file was modified by Oracle on 2016.
// Modification... |
8c320be4cc5572e4242888f35303606dca58dd4c | afe5b70d1aae7740ba85538dcc4c6c20ce359e26 | seth1002/antivirus-1 | /Mail/Filters/Antispam/TrainSupport/OLAddrBook.cpp | C++ | cpp | 8,640 | no_license | #include "stdafx.h"
#include <mapix.h>
#include "../../../interceptors/OutlookPlugin/mapiedk/mapiedk.h"
#include "OLAddrBook.h"
#define PR_SMTP_ADDRESS PROP_TAG(PT_TSTRING, 0x39FE)
namespace AddrBook
{
static CMAPIEDK* g_pMAPIEDK = NULL;
COLAddrBookInitializer::COLAddrBookInitializer():m_pAddrBook(... |
3ea78a3f4b051de14f98731d57c6d6421f74d13c | c800fe2c2a31d67f29016f21a38c81d5e4955e02 | Orbbec-3DPG/camera_imu_ros | /src/camera_imu_utils.cpp | C++ | cpp | 18,217 | no_license |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <getopt.h> /* getopt_long() */
#include <fcntl.h> /* low-level i/o */
#include <unistd.h>
#include <errno.h>
#include <malloc.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include... |
875141e8314c3b8edc92f0563d9168c97c931642 | 46546832dce7aeb0a87bd22b42aa4050caa3bb05 | boostorg/qvm | /include/boost/qvm/gen/mat_operations2.hpp | C++ | hpp | 43,849 | permissive | #ifndef BOOST_QVM_GEN_MAT_OPERATIONS2_HPP_INCLUDED
#define BOOST_QVM_GEN_MAT_OPERATIONS2_HPP_INCLUDED
// Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc.
// 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... |
b31744538f3376ac69c0e367c31e5c1c125b2161 | 972a0abdfeec95e3c8f86e05e1f2ae7701002e8e | elysionlab/client | /Filerun_candle_vgrid_원본/Default Include/ACE 5.4/ACE_wrappers/ace/Get_Opt.cpp | C++ | cpp | 23,818 | permissive | // Get_Opt.cpp
// Get_Opt.cpp,v 4.42 2003/11/05 23:30:46 shuston Exp
#include "ace/Get_Opt.h"
#if !defined (__ACE_INLINE__)
#include "ace/Get_Opt.i"
#endif /* __ACE_INLINE__ */
#include "ace/ACE.h"
#include "ace/Log_Msg.h"
#include "ace/SString.h"
#include "ace/OS_NS_string.h"
ACE_RCSID(ace, Get_Opt, "Get_Opt.cpp,v... |
c7a6999b7c6b6ee37c51aac4f1a15c49cbc84a35 | 3f565ed8313fbbf78cd7a4987e6b459c8d677b5c | SINTEFMedtek/CustusX | /source/plugins/org.custusx.registration.method.pointcloud/cxRMPCFromPointerWidget.cpp | C++ | cpp | 5,618 | permissive | /*=========================================================================
This file is part of CustusX, an Image Guided Therapy Application.
Copyright (c) SINTEF Department of Medical Technology.
All rights reserved.
CustusX is released under a BSD 3-Clause license.
... |
905c5d41f4f028a51167495fe679214250349c75 | 59f2de56f846561e154a3d59d55fbd4780c76ac7 | Nhooxy/Avalam | /SRC/SFML/System/Clock.hpp | C++ | hpp | 3,690 | no_license | ////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2014 Laurent Gomila (laurent.gom@gmail.com)
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages ... |
57e5a2ba0ad44a87716bfe7a57206203b8cada61 | 2c6a682b2bfde0569249f1803758b87a9387c16c | 2bite/ARK-SDK | /SDK/ARKSurvivalEvolved_DinoDeathHarvestingComponent_DoubleHugest_FishMeatOnly_classes.hpp | C++ | hpp | 1,060 | permissive | #pragma once
// ARKSurvivalEvolved (332.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DinoDeathHarvestingComponent_DoubleHugest_FishMeatOnly_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//------------------... |
949ff893fb684678a783821cfc9ca7467151f772 | 99231117a23d9a17448be8a4830d70c649759811 | bethau/ezEngine | /Code/EditorPlugins/Scene/EditorPluginScene/Visualizers/PointLightVisualizerAdapter.cpp | C++ | cpp | 2,461 | permissive | #include <EditorPluginScenePCH.h>
#include <EditorEngineProcessFramework/Gizmos/GizmoHandle.h>
#include <EditorFramework/Assets/AssetDocument.h>
#include <EditorPluginScene/Visualizers/PointLightVisualizerAdapter.h>
#include <RendererCore/Lights/PointLightComponent.h>
#include <ToolsFoundation/Object/ObjectAccessorBas... |
90735798a897871e1b31b735b69c887e520a6749 | 733eff3c14ec73ccc5435d3defd7d39c480b625a | zschira/rasfly | /src/rasfly_config.cpp | C++ | cpp | 4,411 | no_license | #include "rasfly_config.h"
#include "rasfly_imu.h"
#include <fstream>
#include <sstream>
#include <iostream>
#include <cstring>
#include "string_utils.h"
rasfly::config::config() {
std::string home = getenv("HOME");
config_name = home + "/rasfly.config";
}
rasfly::config::config(std::string fname) {
config_name =... |
6329d8d5c21a2ed188fa184c034153203657090b | 82dfd1984c1d56bc1482139a3b53fc5c03e8ce7a | bino7/chromium | /third_party/WebKit/Source/web/WebSpeechRecognitionHandle.cpp | C++ | cpp | 2,201 | permissive | /*
* Copyright (C) 2012 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... |
02cdafe3c21ece1a18a6407beea4bd4d0746060f | 8e0aeadab26371e20f22d8c5e309e201326c31cb | 2bt/gorge2 | /src/item.cpp | C++ | cpp | 3,631 | no_license | #include "item.hpp"
#include "audio.hpp"
#include "world.hpp"
int BallItem::s_count;
int HeartItem::s_count;
namespace {
std::array<vec2, 4> BIG_ITEM_POLYGON = {
vec2{3, 3},
vec2{3, -3},
vec2{-3, -3},
vec2{-3, 3},
};
std::array<vec2, 8> BIG_ITEM_BOUNCE_POLYGON = {
... |
c8c554abcaab97e09c2b40f2668b0da264afb2c3 | 9feb553cd56f6086c655e205fbeeb7fc50ab648e | HopeD2/Algorithms | /Data Structures/GenericLinkedList/GenericLinkedList/main.cpp | C++ | cpp | 1,299 | no_license | #include "LinkedList.h"
#define MAX 1000
int main()
{
int option = 0;
int size;
ds::LinkedList<int> *iLl;
ds::LinkedList<float> *fLl;
ds::LinkedList<char> *cLl;
ds::LinkedList<string> *sLl; //TODO: Find a way to change this disgusting stuff.
int iArr[MAX];
float fArr[MAX];
char cArr[MAX];
string sArr[MA... |
df54d0ca5623b0a2e43e43d5f6b0f1b8ed79d6dd | 351bc61565559c5a35524c5bd0db1c3969de7d31 | OpenOS-Project-Creator-Founder/plasma-framework | /src/declarativeimports/platformcomponents/icondialog.cpp | C++ | cpp | 972 | no_license | /*
SPDX-FileCopyrightText: 2014 Ivan Cukic <ivan.cukic(at)kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "icondialog.h"
#include "utils/d_ptr_implementation.h"
#include <QDebug>
#include <KIconDialog>
#include <KWindowSystem>
#include "utils/sharedsingleton.h"
/**
*
*/
class IconDialog:... |
5c577b46040c23a1a6614d15746ff2a3839d267c | 66c6eefda1bb3f3bf9f3501f68590a2d046f5982 | USDX/USDX-Coin | /src/rpcwallet.cpp | C++ | cpp | 54,759 | permissive | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "wallet.h"
#include "walletdb.h"
#include... |
14d7ae4764c3227d460b608caba3784eb3a014f7 | 554af3c587bc40e5542088c71523844168c518cb | cordercorder/ProgrammingCompetionCareer | /ACM集训/D.cpp | C++ | cpp | 466 | no_license | # include<iostream>
using namespace std;
int Q(int a,int b){
if(a%b==0)
return b;
return Q(b,a%b);
}//求两个数的最大公约数
int main(void){
int t,n,a,b,x,sum=0;
cin>>t;
while(t--){
cin>>n>>a>>b;
sum++;
x=Q(a,b);
cout<<"Case #"<<sum<<": ";
if(a==1||b==1||x==1){
if(n%2)
cout<<"Yuwgna"<<endl;
else
cou... |
3442edfc175b8734deef665b298d8c221404e284 | d15422d7f87a50fb7894b4f28b2b8c4237499ff2 | Garcia6l20/cppcoro | /include/cppcoro/net/ip_endpoint.hpp | C++ | hpp | 3,526 | permissive | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Lewis Baker
// Licenced under MIT license. See LICENSE.txt for details.
///////////////////////////////////////////////////////////////////////////////
#ifndef CPPCORO_NET_IP_ENDPOINT_HPP_INCLUDED
#define CPPCORO_NET_IP_END... |
f6978c5baea2ab3da2a6ba44ebe8960c9b60b023 | f642f443dbe0cc4bf0817ea35e97ecb5a166d21e | JiangKevin/FishEngine | /Engine/Source/FishEditor/EditorGUI.cpp | C++ | cpp | 9,591 | permissive | #include "EditorGUI.hpp"
#include <cassert>
#include <FishEngine/Debug.hpp>
#include <FishEngine/GameObject.hpp>
#include <FishEngine/Transform.hpp>
#include <FishEngine/Component.hpp>
#include <FishEngine/LayerMask.hpp>
#include <FishEngine/ReflectClass.hpp>
#include <FishEngine/Vector3.hpp>
#include <FishEngine/Tex... |
4dd0271ef21e6a0a71a82e30428395cd8ec42a1a | 153411dc40d61413a70935104fa6856944d2b44a | metux/chromium-suckless | /ui/views/border.cc | C++ | cc | 6,707 | 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 "ui/views/border.h"
#include <memory>
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/ptr_util.h"
#include "third_... |
bb2b0342090599108d068d9959559a12f3501920 | f41ecccfc69a6a086aa640e40702e0fea85920d1 | almasluffy/Algorithm-and-data-structures | /midc/a.cpp | C++ | cpp | 637 | no_license | #include<iostream>
#include<vector>
#include<set>
#include <algorithm>
#include<map>
using namespace std;
int main(){
string s;
string t;
cin>>s;
map<char, int> m1,m2;
map<char, int> :: iterator it;
for(int i = 0;i<s.size();i++)
{
m1[s[i]]++;
}
wh... |
117b471ae9c716272a7c11c9d58ed13d54b14717 | 449295960b0bb2ca6950cfe87ada6ea5f10b9faa | jbenjos/aeon | /loader/src/buffer_pool.cpp | C++ | cpp | 1,083 | permissive | /*
Copyright 2016 Nervana Systems 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 writin... |
2b6c77c6c34e2b6996cc4acda75a7687ac52609c | 9d95e81f3e33e9f0aa64987c852c02f607fcd91c | novaquark/aws-sdk-cpp | /aws-cpp-sdk-machinelearning/source/model/MLModel.cpp | C++ | cpp | 8,458 | permissive | /*
* Copyright 2010-2017 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... |
70ce67609f7e8373444a92bc5254deed47724232 | 8fee9fc06f1e2ad9d392ad4c8e26e2b8fc9a3730 | ethanfurman/python_ics | /src/ice/ice_library_manager.cpp | C++ | cpp | 1,228 | permissive | #include "ice_library_manager.h"
#include <sstream>
#include "ice_exception.h"
using namespace ice;
LibraryManager::LibraryManager()
{
}
LibraryManager::~LibraryManager()
{
Libraries::iterator iter = m_libs.begin();
for (; iter != m_libs.end(); iter = m_libs.begin())
this->remove(iter->first);
}... |
d421cf6203cda55bb643a242127cbf0788682b9b | 6a3ffe36ebd43725b86bf750d95c68d86fa50436 | peng3738/cpp_primer_selfstudy_exercise | /chapter_6/exercise_6_50/Source.cpp | C++ | cpp | 378 | no_license | #include<iostream>
using std::cout;
using std::endl;
void f()
{
cout << "case 1" << endl;
}
void f(int)
{
cout << "case 2" << endl;
}
void f(int, int)
{
cout << "case 3" << endl;
}
void f(double, double = 3.14)
{
cout << "case 4" << endl;
}
int main()
{
//f(2.56, 42);
f(42);
f(42... |
ec798b2f63b7611be546c1d853491038750b15af | 10e9494bdf46364b26e4e84dc025bfc78b232a40 | ericpareja/wwiv | /bbs/dropfile.cpp | C++ | cpp | 20,076 | permissive | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2020, WWIV Software Services */
/* ... |
21d2ab245bdbdd40f974af69ad0cdc7eae37064d | 1fe3765a8a545176b5425da3499d493a4c1b2caf | willrebuild/flyffsf | /SRC/OFFI SRC!/boost_1_34_1/boost_1_34_1/libs/regex/src/icu.cpp | C++ | cpp | 20,867 | permissive | /*
*
* Copyright (c) 2004
* John Maddock
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent... |
26b94b7e639f1559cdcdbce2e37aaa5df84b1959 | 35ab39380920d5c8ccdca8d47633da3f972787f8 | JoeFannie/Label85 | /caffe-master/src/caffe/layers/txt_feat_data_layer.cpp | C++ | cpp | 8,041 | no_license | #ifdef USE_OPENCV
#include <opencv2/core/core.hpp>
#include <fstream> // NOLINT(readability/streams)
#include <iostream> // NOLINT(readability/streams)
#include <string>
#include <utility>
#include <vector>
#include "caffe/layers/txt_feat_data_layer.hpp"
#include "caffe/util/benchmark.hpp"
#include "caffe/util/io.h... |
59781384eef2eb402cccd2a07465340132027593 | 572286bd4b0727d430021e4eaedacb3e595366a1 | foxesknow/zork | /ZorkLib/Source/Instructions.cpp | C++ | cpp | 1,670 | no_license | #include <Zork\Instructions.h>
namespace zork
{
std::ostream &operator<<(std::ostream &stream, OpcodeForm opcodeForm)
{
switch(opcodeForm)
{
case OpcodeForm::Long: return stream << "Long";
case OpcodeForm::Short: return stream << "Short";
case OpcodeForm::Variable: return stream << "Variable";
case Opcode... |
9cca897d41dcacffb70238ee1d6f4da7b283e58e | 88cf8b57db80f5f07baf427951712f7e110896db | huxiangdong/mixr | /include/mixr/base/numeric/operators/Subtract.hpp | C++ | hpp | 882 | no_license |
#ifndef __mixr_base_numeric_Subtract_HPP__
#define __mixr_base_numeric_Subtract_HPP__
#include "mixr/base/numeric/operators/Operator.hpp"
namespace mixr {
namespace base {
//------------------------------------------------------------------------------
// Class: Subtract
// Description: Class for subtracting Number... |
a8eeffa4abb5604f9954827cb2825f3ac49a3e58 | c2f307c21352b3ff9af647d60a2d6575d75cc2df | GiorgiGagnidze/CEF | /chromium_git/chromium/src/out/Debug/gen/blink/bindings/modules/v8/V8MIDIOutput.cpp | C++ | cpp | 8,693 | permissive | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "V8MIDIOutput.h"
#include "bindings/core/v8/ExceptionState.h"
#inc... |
4c9d7e608a118c3a6f8e71bfa7581109f17e2784 | 4be02f916dd3645847c88407502b6f8c7543aeb4 | rmrychecky/CSCI1300 | /Hmwk 2/Problem4.cpp | C++ | cpp | 1,145 | no_license | // Author: Raegan Rychecky CS1300 Fall 2018
// Recitation: 104 (8am) – Richard Tillquist
// Cloud9 Workspace Editor Link: https://ide.c9.io/rmrychecky/csci1300
// Homework 2 - Problem 4
#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;
/**
* Algorithm: Calculates luminosity with two input... |
bdadcce42cd68053d630d9d88e44f4d63724d337 | 2f26f8d99324923c5347387dfdef9887a49e2f65 | adamhasselwander/cf | /455/455/A/A.cpp | C++ | cpp | 1,056 | no_license | #define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
//#include <vector>
#define sd(n) scanf("%d",&n) == 0
#define sl(n) scanf("%I64d",&n) == 0
#define ss(n) scanf("%s",n) == 0
#define sc(n) scanf(" %c",&n) == 0
#define pd(x) printf("%d", x)
#define ps(x) printf("%s", x)
#define pl(x) printf("%I64d", x)
#define ... |
2abe319df20722b38377c63e92083cf29d35bd54 | ea4109cdc5cfda1ef6fcbcd79d2d6d86a1108cae | hmchung/teleop_ugv | /src/pan_tilt_tf_broadcaster.cpp | C++ | cpp | 4,015 | no_license | #include <std_msgs/UInt8.h>
#include <std_msgs/Int8.h>
#include <sensor_msgs/Imu.h>
#include <tf/transform_broadcaster.h>
std::string node_name = "tilt_tf_broadcaster";
int publish_rate = 10; //Hz
std::string frame_name_parent_pan = "pt_pan_stator";
std::string frame_name_child_pan = "pt_pan_rotor";
std::string fra... |
bad8923c8bcdef566a87dd55eb41c4befd4b2691 | 590a80a6e2d03017ee87fc52d11ced3290a34ba1 | apache/openoffice | /main/autodoc/source/exes/adc_uni/cmd_sincedata.hxx | C++ | hxx | 2,661 | permissive | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
bf51dd6ecfdaa22ba56e446a0c1196456d981c93 | dcae6c5e63219f7ce9a93a2403d08a8d0f1c1987 | ganga1807/Solutions | /Codeforces/AdjacentReplacements.cpp | C++ | cpp | 304 | no_license | #include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++){
cin>>a[i];
}
for(int i=0;i<n;i++){
if(a[i]%2==0)a[i]=a[i]-1;
}
for(int i=0;i<n;i++){
cout<<a[i]<<" ";
}
return 0;
} |
01f5a639fce43d4ddf0802bc5eb740c9dc0e401e | 42fb92c543352f47cc62c33052b505972ecd2371 | IrinaKulikova/IT-STEP | /C++/9-patnashki/Win32Project1 - 1_button/Win32Project1/CALLBAK_Proc.cpp | C++ | cpp | 1,959 | no_license | #pragma once
#include "stdafx.h"
BOOL CALLBACK DlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{
case WM_INITDIALOG:
CheckRadioButton(hWnd, IDC_3X3, IDC_5X5, IDC_4X4);
CreateVectorNumber();//создание вектора имён кнопок
CreateButtons(hWnd);//создаём кнопки
InvalidateRect(hDlg, NUL... |
6434f59f08ed0b73c14a3849f25b265b60b47a54 | 16a017d4ebd2cc2f12ed52e37b19775eef6c698a | skywalker888888/leetcode | /cpp/062. Simplify Path/62. Simplify Path.cpp | C++ | cpp | 11,508 | no_license | /**
Given an absolute path for a file (Unix-style), simplify it.
For example,
path = "/home/", => "/home"
path = "/a/./b/../../c/", => "/c"
Corner Cases:
Did you consider the case where path = "/../"?
In this case, you should return "/".
Another corner case is the path might contain multiple slashes ... |
79e151a1787713c403b409cc3a1257e42c2fb18c | ee1f3b6ca07f86fcae8fad9d8b983e442c43aa17 | Ankits-lab/frameworks_base | /media/mca/filterfw/jni/jni_gl_environment.cpp | C++ | cpp | 14,106 | permissive | /*
* Copyright (C) 2011 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 requir... |
573c463a16715ba0f02ce8d9b417f03c2fe0e81e | b9ad989afe1cfdf8c9286dcd02e1b7afbc729aaa | rickwebiii/clutil | /clUtilPlatform.cc | C++ | cc | 3,060 | no_license | #include <clUtilPlatform.h>
using namespace clUtil;
using namespace std;
PlatformInfo::PlatformInfo(cl_platform_id platformID)
{
Utility::fetchPlatformInfo(platformID, CL_PLATFORM_PROFILE, Profile);
Utility::fetchPlatformInfo(platformID, CL_PLATFORM_VERSION, Version);
Utility::fetchPlatformInfo(platformID, CL_P... |
5aad45268fe44d23333bbf17a68c3c33c354b14a | b24f903bf215170e40cf89d761fdc37663d0e2ea | privefl/bigsnpr | /src/ldpred2.cpp | C++ | cpp | 2,234 | no_license | /******************************************************************************/
#include <bigsparser/SFBM.h>
#include <bigstatsr/utils.h>
/******************************************************************************/
// [[Rcpp::export]]
NumericVector ldpred2_gibbs_one(Environment corr,
... |
322db4355f0c94dd57e58e3b6707da8f3314c4dc | ea44a7a90d6db1e89e3773f40af74a8920f952a8 | GetJonWithIt/Vanguard | /HPR/hprwavespeeds.cpp | C++ | cpp | 960 | no_license | #include "hprwavespeeds.h"
HPRWaveSpeeds::HPRWaveSpeeds()
{
}
double HPRWaveSpeeds::computeAdiabaticSoundSpeed(double density, double pressure, HPRMaterialParameters materialParameters)
{
double totalEnergyDerivativeDensity = HPRDerivatives::computeTotalEnergyDerivativeDensity(density, pressure, materialParameter... |
b429859ceceba36020f32f55c5a4396bdf9b487f | 04c885c4db96ce255eaeb154cafaca05125677c6 | misterpilou/playweb | /V8Parser/out.gn/x64.release.sample/gen/torque-generated/src/builtins/object-tq-csa.cc | C++ | cc | 60,887 | no_license | #include "src/builtins/builtins-array-gen.h"
#include "src/builtins/builtins-bigint-gen.h"
#include "src/builtins/builtins-collections-gen.h"
#include "src/builtins/builtins-constructor-gen.h"
#include "src/builtins/builtins-data-view-gen.h"
#include "src/builtins/builtins-iterator-gen.h"
#include "src/builtins/builtin... |
ddac50a36717074c2592b38bd73483a6b8c4cf06 | ccad1375cbcb98c67aef752e8ed466b864b2f873 | zachstence/portfolio | /cs2308/PAs/PA6/CharStackDriver.cpp | C++ | cpp | 1,792 | no_license | // File Name: assign6_zms22.cpp
//
// Author: Zachary Stence
// Date: 4/18/2017
// Assignment Number: 6
// CS 2308.256 Spring 2017
// Instructor: Jill Seaman
//
// Prompts the user to enter a filename then tells the user if all brackets
// in said file match and are nested properly. Uses a string to manage a
// stack ... |
67dd6952be5649830745cec6704381c2acba3107 | 9b2cab23d99ee7e5f8e38b1066c2f7f896dcef2f | wkrzemien/j-pet-framework | /Core/JPetTask/JPetTaskTest.cpp | C++ | cpp | 272 | permissive | #define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE JPetTaskTest
#include <boost/test/unit_test.hpp>
#include "./JPetTask/JPetTask.h"
BOOST_AUTO_TEST_SUITE(JPetTaskTestSuite)
BOOST_AUTO_TEST_CASE( my_test1 )
{
//BOOST_REQUIRE(1==0);
}
BOOST_AUTO_TEST_SUITE_END()
|
0214e1273745454c842f9391b324ea3c8d6adf69 | 4274adb3970642b92eebf361c1a6b26880e680bb | itachi1101/Leetcode-_Solutions | /TreeQuestion/Easy/sumOfLeftLeaves.cpp | C++ | cpp | 635 | no_license | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... |
5318430de5bb3130cb3c30d536b58b25d01f1a65 | bd8142e5cb66017372e2f905d667f670651dbd4f | thomtl/Maia | /source/al.cpp | C++ | cpp | 558 | no_license | #include <Maia/al/al.hpp>
#include <maxmod9.h>
#include <soundbank_bin.h>
#include <soundbank.h>
al::Module::Module(uint32_t id): id{id} {
mmLoad(id);
}
al::Module& al::Module::start(bool loop) {
mmStart(id, loop ? MM_PLAY_LOOP : MM_PLAY_ONCE);
return *this;
}
al::Module& al::Module::stop() {
mmSto... |
801e99f425bb9e0c2f52e809cf8aa012d859f990 | 6fc8248bfbb663ab10229891c6b95ca7054029b1 | TrellixVulnTeam/Chromium_7C66 | /chrome/browser/extensions/extension_migrator.cc | C++ | cc | 1,568 | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_migrator.h"
#include <utility>
#include "base/values.h"
#include "chrome/browser/defaults.h"
#in... |
7eccb1e5b1e01fbeeeb651ae48824ef91b9d04b5 | f936ffb389f6bd99ae36e8906a1c1b88980a8764 | OpenNoah/usbboot | /host/Usb Boot/Usb_Boot_Driver/Usb_Boot_Driver.cpp | C++ | cpp | 4,743 | no_license | // Generated by DriverWizard version DriverStudio 3.1.0 (Build 1722)
// Requires Compuware's DriverWorks classes
//
#define VDW_MAIN
#include <vdw.h>
#include <kusb.h>
#include "Usb_Boot_Driver.h"
#include "Usb_Boot_Driver_Device.h"
#pragma hdrstop("Usb_Boot_Driver.pch")
// Generated by DriverWizard ve... |
b8c227d335c5017c82ebddf56371b94d37115bf4 | 8665b09e240f196968087e5f13e5413f647e6678 | songminkyu/CPP_TEST | /NumPyCpp/NumCpp/include/NumCpp/Functions/rms.hpp | C++ | hpp | 6,305 | permissive | /// @file
/// @author David Pilger <dpilger26@gmail.com>
/// [GitHub Repository](https://github.com/dpilger26/NumCpp)
/// @version 2.1.0
///
/// @section License
/// Copyright 2020 David Pilger
///
/// Permission is hereby granted, free of charge, to any person obtaining a copy of this
/// software and associated docum... |
9aa35e70c49e7860db61108fe3cd708976c56bbf | 45c4a62f2a8f682f4272dc5ea7c5ad56be43173a | rollfatcat/ProblemSet | /演算法題型分類/圖論/c503.cc | C++ | cc | 916 | no_license | // MST(Kruskal)
#include<bits/stdc++.h>
using namespace std;
vector<int> parent;
inline bool scanInt(int &x){char c;for(x=0;(c=getchar())>='0' and c<='9';x=(x<<3)+(x<<1)+c-'0');return c!=EOF;}
struct ee{
int a,b,v;
bool operator<(const ee &other)const{ return v<other.v; }
}now;
int find_parent(int x){
if(parent[... |
66091f6a35aa437d2a3f4f2a6130b54b868ed1b9 | d3a27658bbd5b4390a9fba08be2392942fccf015 | MFTabriz/slabcc | /src/slabcc_math.cpp | C++ | cpp | 9,890 | permissive | // Copyright (c) 2018-2023, University of Bremen, M. Farzalipour Tabriz
// Copyrights licensed under the 2-Clause BSD License.
// See the accompanying LICENSE.txt file for terms.
#include "slabcc_math.hpp"
arma::cube interp3(const arma::rowvec &x, const arma::rowvec &y,
const arma::rowvec &z... |
830c949b9c3a20ff83d24d49ff98b0e58774ffe1 | e90fe5313d5728c06d6e6141c294671027e88419 | khoister/projecteuler | /problem043/substring_divisibility.cpp | C++ | cpp | 1,263 | no_license | #include <string>
#include <iostream>
#include <set>
using namespace std;
bool pandigital_has_divisible_property(unsigned long long n)
{
unsigned long long divisors[] = { 17, 13, 11, 7, 5, 3, 2 };
bool has_property = true;
for (int i = 0; i < sizeof(divisors) / sizeof(unsigned long long); ++i)
{
int num = n %... |
4e775ed53ce03213d72d67a405eff5c412898f27 | 7b813250e690ea6b55f4c0a65c58824cc589ff5c | Jaredgs1988/ApplicationThemes | /source/ui/chrdlg/swuiccoll.cxx | C++ | cxx | 9,450 | no_license | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozil... |
00370ca9717911c46f77e03897610a89a1b390a2 | 271b00bcee2042fcf4ca8dd72fa1864b49da4207 | PatrickAJonas/emojicode | /EmojicodeCompiler/PathAnalyser.hpp | C++ | hpp | 3,079 | permissive | //
// PathAnalyser.hpp
// EmojicodeCompiler
//
// Created by Theo Weidmann on 04/07/2017.
// Copyright © 2017 Theo Weidmann. All rights reserved.
//
#ifndef PathAnalyser_hpp
#define PathAnalyser_hpp
#include "EmojicodeCompiler.hpp"
#include <vector>
#include <algorithm>
#include <cassert>
namespace EmojicodeComp... |
e6c80c1e05b62eed5b946331194d03fccd80a07a | 21b34c96aa4356c167c5e58d1b785c36dbeb61ba | shaunno94/MCompTeamProject_2016 | /CSC8503 Framework/Game Technologies/GameTechNew/PhysicsEngine.cpp | C++ | cpp | 3,600 | no_license | #include "PhysicsEngine.h"
#include "TaskScheduler.h"
#include "GameObject.h"
#include "CollisionDetection.h"
#include <nclgl\Window.h>
PhysicsEngine::PhysicsEngine()
{
m_Gravity = Vector3(0.0f, -9.81f, 0.0f);
m_DampingFactor = 1.0f;// 0.999f;
}
void PhysicsEngine::AddPhysicsObject(PhysicsObject* obj)
{
m_Physic... |
ec3927169cb37785e3da931d9cbf9885c6ffdb80 | 0ab3b9691c6523a54a83a3c4587633c59fd3b85b | affanefrance/caffe | /include/caffe/multinode/SendCallback.hpp | C++ | hpp | 2,311 | 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... |
8c5e46afa1e22d39bd919cfbc9cb92164c23757b | b116465b7984e3fc6c79664354615c299866bdb6 | kj91024/ipoo | /Clase8/ejercicio6.cpp | C++ | cpp | 505 | no_license | #include <iostream>
using namespace std;
const string vowels = " aeiou " ;
string pigLatinify ( const string s ) {
if ( s . size () == 0) {
// oops , empty string
return s ;
}
if ( s . find ( " qu " ) == 0) { // Starts with " qu "
return s . substr (2 , s . size () -2) + " -" + s . substr (0 , 2) + " ay ";
}... |
8cc0d85709ed54f079d35ddbdc521fb2849bc445 | 332b57d1a550ed2fc6b8a43c2ebfd15390a0cf78 | goremykin-michael/Hyperion | /Content/code-samples/c++/QuestSystem/Quests/TutorialQuests/BuildingTutorialQuests/RoomBuildingTutorial.hpp | C++ | hpp | 14,569 | no_license | #ifndef ROOMBUILDINGTUTORIAL_H
#define ROOMBUILDINGTUTORIAL_H
#include "DungeonsIncludes.h"
#include "Gameplay/QuestSystem/Quest.h"
#include "Gameplay/GameObjects/Buildings/BuildingPlacement.h"
#include "Graphics/GUI/Dialogs/WorkshopsDialog.h"
#include "Gameplay/GameObjects/Monsters/MonsterFactory.h"
class RoomBuildi... |
db5125c6658921198fd85e1cb34df197016a5027 | dab0e91454ccbdc1950a11305b5dd693f20f18df | tdlight-team/old-migrated-repository | /tddb/td/db/TQueue.cpp | C++ | cpp | 13,305 | permissive | //
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2020
//
// 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 "td/db/TQueue.h"
#include "td/db/binlog/Binlog.h"
#... |
b94aed6fbf4545460d3b40ce010352a822617fb9 | e20ceb2f4867517cac78e614ac2791dc42d08fcf | gyyfifafans/reshade | /source/effect_codegen.hpp | C++ | hpp | 18,204 | permissive | /*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#pragma once
#include "effect_module.hpp"
#include <memory> // std::unique_ptr
#include <algorithm> // std::find_if
namespace reshadefx
{
/// <summary>
/// A SSA code generation back-end interfac... |
3f4a71dc8ca80e17edd2cef5f54236373e16104f | 2d8eeaabe363595f54acebce421fbb83d247bb4c | tmaciejewski/Biker | /src/main.cpp | C++ | cpp | 5,817 | no_license | // main.cpp
//
// Copyright 2009 Tomasz Maciejewski <ponton@jabster.pl>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// ... |
bea1edb751030c866a6f3fb6bde9390813a4447c | 2ef6107d12cc6e8dcd09750e6a6275fbc30e3031 | opendarkeden/client | /Client/Packet/Gpackets/GCNPCInfo.cpp | C++ | cpp | 3,694 | no_license | //-------------------------------------------------------------------------------- //
// Filename : GCNPCInfo.cpp
// Written By : reiot@ewestsoft.com
// Description :
//
//--------------------------------------------------------------------------------
// include files
#include "Client_PCH.h"
#include... |
e563888b00a8dd057f0f3ac60e0a79984bbc7fdb | 93dc9b392c0fb25dc6da0a5495e975c8cfa3f4fa | fjkfjk/Practice_2017 | /String/CollectStr/sln1/colstr.cpp | C++ | cpp | 1,468 | no_license | #include <string>
#include <vector>
#include <unordered_map>
#include <stdio.h>
typedef std::unordered_map<char,int> HashMap;
bool IsBrotherStr(std::string s1,std::string s2)
{
if(s1.empty() || s2.empty())
return false;
if(s1.length() != s2.length())
return false;
HashMap map;
for(auto& x : s1)
{
... |
0a114c5d105f42881c5cbb9e5dff053d0a9629ce | fad132a822653980394437f2e199858e32fdf3c0 | 15831944/PHStart | /Win32/NXOPEN/NXOpen/Features_ShipDesign_InverseBendingLines.hxx | C++ | hxx | 2,175 | no_license | #ifndef NXOpen_FEATURES_SHIPDESIGN_INVERSEBENDINGLINES_HXX_INCLUDED
#define NXOpen_FEATURES_SHIPDESIGN_INVERSEBENDINGLINES_HXX_INCLUDED
//--------------------------------------------------------------------------
// Header for C++ interface to JA API
//------------------------------------------------------------------... |
cb86dcb7c4f78a93e725eb0935ba2ae7ab94359e | 7bde3be04b962c01205f089ad1da4288f67faf91 | smhemel/Codeforces-Online-Judge | /Codeforces Round #442 (Div. 2) - A/Codeforces Round #442 (Div. 2) - A/main.cpp | C++ | cpp | 774 | no_license |
#include <iostream>
#include <cstring>
#include <string>
using namespace std;
string s;
int main(){
cin >> s;
int cnt = 0;
for(int i=0; s[i]; i++){
string s1 = "";
for(int l=i; s[l]; l++){
s1 += s[l];
if(s1=="Danil"){
cnt++;
break;
... |
e7542bed92e8180b04d9322ac4ba1538d92433b2 | 727d4cd30ee202405bd35a430783bf2148b3486f | supudo/Kuplung-DX-CXX | /Sample/Sample3DSceneRenderer.cpp | C++ | cpp | 10,075 | permissive | #include "pch.h"
#include "Sample3DSceneRenderer.h"
#include <DX\DirectXHelper.h>
using namespace Kuplung_DX::Sample;
using namespace DirectX;
using namespace Windows::Foundation;
// Loads vertex and pixel shaders from files and instantiates the cube geometry.
Sample3DSceneRenderer::Sample3DSceneRenderer(const std:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.