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 |
|---|---|---|---|---|---|---|---|---|
0d1950139d46bfbda5b866d5882a909de4e4f7ef | 3dd7c6a319755671fef33f5fb33c86685fb97e81 | dahahua/pap_wclinet | /client/Client/WXClient/Network/PacketHandler/CGChannelInviteHandler.cpp | C++ | cpp | 253 | no_license | #include "StdAfx.h"
#include "CGChannelInvite.h"
UINT CGChannelInviteHandler::Execute( CGChannelInvite* pPacket, Player* pPlayer )
{
__ENTER_FUNCTION
return PACKET_EXE_CONTINUE ;
__LEAVE_FUNCTION
return PACKET_EXE_ERROR ;
}
|
364b63a0ca3e25728562854f94b4cfeb53e69dbf | c032276136c087f951b4929a4df35fafab055940 | dkjiang2018/compute-runtime | /opencl/test/unit_test/os_interface/windows/driver_info_tests.cpp | C++ | cpp | 10,394 | permissive | /*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/preemption.h"
#include "shared/source/execution_environment/execution_environment.h"
#include "shared/source/execution_environment/root_device_environment.h"
#include "shared/source/os_inter... |
9abd04262f4792f4afd7b485539eff9629c5d683 | aa11b613338abba6377697355f8afcc79bc7846f | HyperionXII/ChilliSource | /Source/CSBackend/Rendering/OpenGL/Base/RenderInfoFactory.cpp | C++ | cpp | 3,833 | permissive | //
// The MIT License (MIT)
//
// Copyright (c) 2016 Tag Games Limited
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
... |
ce283e80aef6cb2505eff6ff5f67daf14d59d60c | de59dd23abd542c658497e3a014d23e353103fe1 | alisw/AliPhysics | /PWGGA/PHOSTasks/PHOS_LHC16_pp/AliPP13SpectrumSelectionSimple.cxx | C++ | cxx | 1,830 | permissive | // --- Custom header files ---
#include "AliPP13SpectrumSelectionSimple.h"
// --- ROOT system ---
#include <TH2F.h>
#include <TH3F.h>
// --- AliRoot header files ---
#include <AliVCluster.h>
#include <iostream>
using namespace std;
ClassImp(AliPP13SpectrumSelectionSimple);
//_____________________________________... |
9440cc44041dcc420c0cecdc88ae931bf810d9d5 | fc6681bf0df2e48aa5470fb0b36c94f5b004ad4d | lanhuong1999/Data-Structures-and-Algorithms | /Contest7/bai12/main.cpp | C++ | cpp | 704 | no_license | #include <bits/stdc++.h>
using namespace std;
bool isOperator(char x){
if(x=='+'||x=='-'||x=='*'||x=='/'||x=='^'||x=='%')
return true;
return false;
}
string prefix_infix(string s){
stack<string>st;
for(int i=s.length()-1;i>=0;i--){
if(isOperator(s[i])){
string a... |
1a4526a78104b02269c6cb035db76256f0558c1b | ef87a35dc39af9f3209c93bb40c695db41db6f80 | LeverImmy/Codes | /比赛/学校/2019-9-21邀请赛/source/HB-吴凯迪/array.cpp | C++ | cpp | 647 | no_license | #include<bits/stdc++.h>
const int MAXN = 1e5+10;
const int sqr = 350;
int a[MAXN];
int D[sqr+10][MAXN];
signed main(void)
{
freopen("array.in","r",stdin);
freopen("array.out","w",stdout);
int totNums,totOptn;
int p,k,ans;
scanf("%d", &totNums);
for(int i=1;i<=totNums;i++) scanf("%d", a+i);
for(int i=0;... |
0d4d606986f872827cf737fd239a9f98cfa98520 | a5bf50ec848cde7f81fbbb3219d40ff619b93508 | ruitaocc/filament | /libs/filamentapp/src/IBL.cpp | C++ | cpp | 7,248 | permissive | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
5758a8e71248f79cf3ba954b4fd34911e6bf3c55 | 49b0a1ede01bbd64e52d3ecffee33a39b611fb8d | GuttinRibeiro/alg2 | /trab2/Btree_simple/src/datahandle.cc | C++ | cc | 3,463 | no_license | #include "datahandle.hh"
DataHandle::DataHandle(const char *dataFile, const char *indexFile, const char *logFile) {
_log = new LogHandle(logFile);
if(_log == NULL) {
std::cerr << "[Error] DataHandle coudn't create Log. Abort.\n";
abort();
}
_btree = new BTree(indexFile, _log);
if... |
64f11c870773a13f39c065d46ffd0999ff827bf5 | 17a7e4d19b025ba4218c8b268a2ad36603c5f19f | rekuszk/Duperele | /Cpp/MyMatrixNew.cpp | C++ | cpp | 7,171 | no_license | #include <vector>
#include <iostream>
#include <iomanip>
using namespace std;
template <typename T> class MyMatrix {
private:
vector<vector<T> > matrix;
unsigned rows;
unsigned cols;
public:
// konstruktory
MyMatrix(unsigned wiersz, unsigned kolumna, const T& x) {
matrix.r... |
7ef9b8567f6bc439dd490a494b0a6e602ed05c09 | ce1ae4eeea840e7d206aaa97d36877e6b472d066 | jwoo9928/-Object-oriented-design | /week5/example01.cpp | C++ | cpp | 1,336 | no_license | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string.h>
#include <vector>
class Animal {
char * name;
int age;
public:
Animal(int age_, const char* name_) {
age = age_;
name = new char[strlen(name_) + 1];
strcpy(name, name_);
}
Animal(const Animal & a) {//Copy constructor w... |
86ec229bcd8ed409088d873b3536132e5f82271e | 9f5f0e898c14c6b836d33d70924edb1653928868 | HaloExchange/HaloBitcoin | /src/qt/utilitydialog.cpp | C++ | cpp | 5,018 | permissive | // Copyright (c) 2011-2014 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 "utilitydialog.h"
#include "ui_helpmessagedialog.h"
#include "halobitcoingui.h"
#include "clientmodel.h"
#include "... |
0bc3eb7f057fd9f837d5396bea420f0627120f52 | 0646ad730ad29b996bc0b76b8659692bbc9ad4f7 | matheuter/TouchMind | /TouchMindLib/touchmind/view/path/BasePathView.cpp | C++ | cpp | 319 | permissive | #include "stdafx.h"
#include "touchmind/view/path/BasePathView.h"
touchmind::view::path::BasePathView::BasePathView(std::weak_ptr<touchmind::model::node::NodeModel> node)
: m_node(node)
, m_pNodeViewManager(nullptr)
, m_pConfiguration(nullptr) {
}
touchmind::view::path::BasePathView::~BasePathView() {
}
|
c82357b77cb50cfb83396dfbcdc39a8d245c40f1 | 47dd9c7e8aae79540cbbb47561c0ee28e329f7ac | prifio/cpp-grep | /mainwindow.cpp | C++ | cpp | 2,388 | no_license | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <thread>
#include <sstream>
#include <iostream>
#include <string>
QString get_thread_id() {
auto myid = std::this_thread::get_id();
std::stringstream ss;
ss << myid;
return QString::fromStdString(ss.str());
}
MainWindow::MainWindow(QWidget *... |
92f2a82edbf94039a2ce7538485e7e0f2661dd84 | 16b8fd2c3f3520a7d35db15d286bbcb9d34ed242 | googlelegacy/chromium-src | /chrome/browser/chromeos/login/chrome_restart_request.cc | C++ | cc | 14,284 | 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/chromeos/login/chrome_restart_request.h"
#include <vector>
#include "ash/ash_switches.h"
#include "base/command_line.h"
#includ... |
085452a2d610afd019fe41bd7ff6370406270ed7 | f961b55398ab51d85239053cb52f2abfce65e7ff | emc2foundation/einsteinium | /src/bitcoind.cpp | C++ | cpp | 5,914 | permissive | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include "config/bitcoin-config.h"
#endif
#include "c... |
593b82010aca9b9238a5902153c01c47b02c5287 | 8b2527bd827934aae571952387795daf08f03c54 | daisygosorio/Garcia-OsorioDaisy_CISCSC_5_Spring_2018 | /Lab/Lab_04-19-18/PI_With_Random_Numbers/main.cpp | C++ | cpp | 1,389 | no_license | /*
* File: main.cpp
* Author: Dr. Mark E. Lehr
* Created on April 19, 2018, 12:00 PM
* Purpose: Random Numbers used in approximating PI
*/
//System Libraries Here
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime>
using namespace std;
//User Libraries Here
//Global Constants Only, No G... |
9abeff3af95811962e03d6171a15bcb053625409 | 0610c97736d61029bd153a75b65f4b626d1b99fb | KadriyeMacit/Flutter-Examples | /floating_action_button/linux/my_application.cc | C++ | cc | 3,676 | permissive | #include "my_application.h"
#include <flutter_linux/flutter_linux.h>
#ifdef GDK_WINDOWING_X11
#include <gdk/gdkx.h>
#endif
#include "flutter/generated_plugin_registrant.h"
struct _MyApplication {
GtkApplication parent_instance;
char** dart_entrypoint_arguments;
};
G_DEFINE_TYPE(MyApplication, my_application, GT... |
7bcc0829a339ca9e0fd20a62943609e27755aadf | 2827a7d3f3868caca09ad1c4701e4dbe841d8f94 | Baze4/step-IT-projects-cpp | /step IT projects c++/struct4.cpp | C++ | cpp | 2,476 | no_license | #include<iostream>
#include<cstdlib>
#include<iomanip>
#include<string.h>
#include<cmath>
using namespace std;
struct stud
{
char nume[255];
char grupa[255];
int virsta;
double media;
int NRnote;
struct note
{
int nota;
}NOTA[50];
};
int insertINT(char mess[])
{
int x;
cout<<mess;
cin>>x;
return... |
e941910e78dd5cdffe14ab4406b5e2cb57939d01 | c493b96248fb332cf2fda255bba3ee558ad925f4 | icota/bitcoin | /src/wallet/sqlite.cpp | C++ | cpp | 21,238 | permissive | // Copyright (c) 2020 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/sqlite.h>
#include <chainparams.h>
#include <crypto/common.h>
#include <logging.h>
#include <sync.h>
#include <u... |
9480aa2a59f056a5017515f37324bd5188900a65 | a72eea43f8f987f7e569795ef0dcc5e66ea25841 | donghL-dev/C-and-Cpp | /C++/c++ 첫번째.cpp | C++ | cpp | 2,324 | no_license | // string::find_first_not_of
#include <iostream> // std::cout
#include <string> // std::string
#include <cstddef> // std::size_t
using namespace std;
int main ()
{
string str ("look for non-alphabetic characters...");
string space = "lok ";
string s = " ";
//size_t found = str.find_first_n... |
0892214c39b1ecb6c04f19f4629197cdc9e31a08 | a737f318c69ea4612840d51d9e848e9891d88117 | blackberry/Boost | /boost/mpl/aux_/sequence_wrapper.hpp | C++ | hpp | 8,577 | permissive |
// NO INCLUDE GUARDS, THE HEADER IS INTENDED FOR MULTIPLE INCLUSION
#if !defined(BOOST_PP_IS_ITERATING)
///// header body
// Copyright Aleksey Gurtovoy 2000-2008
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org... |
5a969f41fbcf7815c7a531696957b92317d25fa8 | 6e0be1cd29a37b85c3a7b0a597e362f43b3691a0 | savieo/Space_Invaders_2 | /main.cpp | C++ | cpp | 2,419 | no_license | #include <iostream>
#include "Round.h"
#include "UIKit.h"
#include "Bullet.h"
#include <dos.h>
#include "Extraterrestrial.h"
#include <string>
#include <conio.h>
#include <ctype.h>
using namespace std;
int main()
{
int type; char choice='c';
system("mode 650");
HANDLE hOut;
CONSOLE_CURSOR_INFO ConCurInf;
hOut... |
0d1f6630bc0c7fca6254b1d0d6ba8238b74d5228 | 2ec5158213ea97ce57fc99f607a8c224057248ef | splucs/Competitive-Programming | /URI/1606.cpp | C++ | cpp | 637 | no_license | #include <stdio.h>
bool c[100000];
int main() {
int a, b;
while(scanf("%d %d" , &a, &b) != EOF)
{
for (int i = 0; i <= b; ++i)
{
c[i] = false;
}
bool first = false;
for (int i = 1; i <= a; ++i)
{
int n;
scanf("%d", &n);
... |
1c2175b77ac0a99af9cb4ce2e2267011505178dc | a9372edafb0acde76f167708598c36577bddad1e | Xu-xunshan/C-Primer-Plus-6th-code | /cpp/chapter3/test/4.cpp | C++ | cpp | 429 | no_license | #include <iostream>
int main()
{
using namespace std;
long long num;
int days,hours,minutes,seconds;
cout<<"Enter the number of seconds: ";
cin>>num;
days=num/(60*60*24);
hours=(num-days*60*60*24)/3600;
minutes=(num-days*60*60*24-hours*3600)/60;
seconds=num-days*60*60*24-hours*3600-minutes*60;
cout<<num<<" se... |
b40183866490e89cc8128a3a59b77b7dd9da5851 | 7644e39f02dde2adb110554a5af116bb01c386c6 | hunslater/pdfium | /core/src/fxge/dib/fx_dib_main.cpp | C++ | cpp | 60,843 | permissive | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "../../../include/fxge/fx_dib.h"
#include "../../../include/fxge/fx_... |
c6c68f276f50bf0e796eae79aa9fd779d885d233 | 50e429681cbdc9ace7fd6ff2601082069532d2fa | pearldarkk/C-Cplusplus | /SPOJ/BCPTICH.cpp | C++ | cpp | 390 | no_license | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = 1; i <= n; ++i)
{
int x;
int count = 0;
cin >> x >> x;
x *= 2;
for (int i = 2; i <= sqrt(x); ++i)
if (x%i == 0)
if ((x / i + 1 - i) % 2 == 0) ++co... |
f8a5c8095d5850b93680c0695c28672d8888e546 | 5e067d80abc666c69d3ad85eb22f033fe2067588 | DasNaCl/old-university-projects | /rt/rt/lights/pointlight.cpp | C++ | cpp | 433 | permissive | #include <core/scalar.h>
#include <rt/lights/pointlight.h>
namespace rt
{
PointLight::PointLight(const Point& position, const RGBColor& intensity)
: pos(position)
, intensity(intensity)
{
}
LightHit PointLight::getLightHit(const Point& p) const
{
return { (pos - p).normalize(), (pos - p).length(), { 0, 0, 0 } ... |
5b558a7ab8dec7b0ab3efa902d26f0d4bb62c918 | 38e7fd49bbcea6c2ff76d3aa4a3869cf4992f398 | InsightSoftwareConsortium/ITK | /Modules/Filtering/Deconvolution/include/itkProjectedIterativeDeconvolutionImageFilter.hxx | C++ | hxx | 2,400 | 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
*
* https://www.apache.o... |
433e1af55c2e78135a8a05eff39e42f2095dca23 | 85940d2dbb1de9e5436e7339468f4161a36418fa | muncrypto/muncoin | /src/qt/networkstyle.cpp | C++ | cpp | 3,846 | permissive | // Copyright (c) 2014 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Mun Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "networkstyle.h"
#include "guiconstants.h"
#include "guiutil.h"
#inc... |
b8942057f0d120f524692befa224f00df77e014c | db0e8a8f677a87211a476f507364c55c518ecb75 | francescog/nt2 | /modules/reduction/include/nt2/toolbox/reduction/function/simd/common/hmsb.hpp | C++ | hpp | 1,708 | permissive | //////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... |
e7de85cd046a5988cf848a456da7be216ab0c1ee | 5154f3b8094a4d7bebacd01416118518c416b7f3 | joeykrakowski/enjin-cpp-sdk | /src/schemas/player/mutations/SendAsset.cpp | C++ | cpp | 2,928 | permissive | /* Copyright 2021 Enjin Pte. Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
117bdbb3300fc181345931bb65e6e7fe5df7ccde | 95c345cb47ff843aa678a4263be9b8a8ff6020c2 | ravichandrae/uva | /11942.cpp | C++ | cpp | 865 | no_license | #include <iostream>
#include <cstdlib>
using namespace std;
int main() {
int t;
cin >> t;
cout << "Lumberjacks:" << endl;
while(t--){
int nums[10];
int i;
for(i = 0; i < 10; i++) {
cin >> nums[i];
}
int rel = nums[1] > nums[0] ? 1:0;
bool orde... |
944cb5b24c8ef696bcd2e17dafd5497db4fc4170 | f09e254ff49430d04cdc040b64b7d18bd38702b0 | HyeonDKIM/AlgorithmStudy | /BOJ/1977.cpp | C++ | cpp | 428 | no_license | #include <iostream>
#include <algorithm>
using namespace std;
int main(void) {
int M, N;
cin >> M;
cin >> N;
int Sum = 0;
int PerfectSquare = 0;
int minNum = 10000;
for (int i = 1; i*i <= N; i++) {
if (i*i >= M) {
minNum = min(minNum, i*i);
Sum = Sum + (i*i);
PerfectSquare = 1;
}
}
if (Perfect... |
57e39a2a44f169e60259bbc1fb5b11b5dd42d607 | ba13a629235a7686ffbd50f23ca2751ec3679c4e | Aharobot/SIGServer | /srcs/simserver/readconf/SgvX3DSimObjCreator.cpp | C++ | cpp | 41,288 | no_license | /*
* Modified by Okamoto on 2012-02-14
*/
#include "SgvX3DSimObjCreator.h"
#include "SSimWorld.h"
#include "ODEWorld.h"
#include "Joint.h"
#include "Rotation.h"
//#include "SgvLog.h"
//#include "CX3DNodeType.h"
#include <stdarg.h>
//#define ENABLE_DUMP // if you want to enable DUMP, you should remove the comment of... |
f6addd7bfb9cce8f657e63ab36d7ff0245a02437 | ee526beda20546eb93dc834c3f07d8f026ac1ae9 | hayaten0415/Competitive-programming | /AOJ/GRL/3/C.cpp | C++ | cpp | 5,448 | no_license | #pragma region Macros
// #pragma GCC target("avx2")
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep(i, n) for (int i = (n - 1); i >= 0; i--)
#define ALL(v) v.begin(), v.end()
#define pb push_back
#define eb emplace_back
#define endl "\n"
#define popcount(... |
848312d16582ce1c892176485ec1030540aa68ed | b90aa1c0ea55c479cf4ba9c01bc14acceedf581e | aws/aws-sdk-cpp | /generated/src/aws-cpp-sdk-es/source/model/DeleteInboundCrossClusterSearchConnectionResult.cpp | C++ | cpp | 1,469 | permissive | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/es/model/DeleteInboundCrossClusterSearchConnectionResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUt... |
032d5f2a01988a95c55288ea3cdaa7c309963be8 | bc267f9dbd521a06c59f9c07cfd5ba53d6be401f | fsps60312/old-C-code | /C++ code/NTU Online Judge/1520.cpp | C++ | cpp | 628 | no_license | #include<cstdio>
#include<cassert>
#include<vector>
using namespace std;
typedef long long LL;
LL A,B,MOD,DP[10],ANS;
void Dfs(const int depth,const LL now)
{
if(B<now)return;
assert(depth<10);
if(A<=now)
{
LL ta=0;
for(int i=0;i<=depth;i++)(ta+=DP[depth])%=MOD;
(ANS+=ta)%=MOD;
(DP[depth]+=ta+1)%=MOD;
}
f... |
7b538705c20b3cde6cceaf4f982ec6296ea64041 | 77cbc4c751ab2ca05e349974b673ef13821cd020 | kinsunyang/CoreRender | /CoreRender/src/scene/Scene.cpp | C++ | cpp | 19,986 | no_license | /*
Copyright (C) 2010, Mathias Gottschlag
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distrib... |
400d372ab4dbc66ad61b0d10e45886110cd3ff2e | 512c30b13b09d1b842ad8f7ec11d707ee85b2982 | cw100/SoT-SDK | /SDK/SoT_Title_OOS_VoyagerOfLostSouls_classes.hpp | C++ | hpp | 760 | no_license | #pragma once
// Sea of Thieves (1.4) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "SoT_Title_OOS_VoyagerOfLostSouls_structs.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//-----------------------------------------------------------------... |
4c93f1c6d8ddbdc48de84052325864f1ffe47b65 | 92245d0a077febaf19100552e6880b6f8b4345d3 | cpetig/midgard | /midgard/libmagus/Random.cc | C++ | cc | 1,145 | no_license | /* $Id: Random.cc,v 1.2 2003/09/01 06:47:57 christof Exp $ */
/* Midgard Character Generator
* Copyright (C) 2001 Malte Thoma
* Copyright (C) 2003 Christof Petig
*
* 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
* ... |
d5dfe9393503265db66fb4cdb3ea212f3b124cd3 | c85b871c7155bb8b77dd014d0be1a6923cb2216f | emanuele6/serenity | /Libraries/LibWeb/HTML/HTMLMapElement.cpp | C++ | cpp | 1,634 | permissive | /*
* Copyright (c) 2020, The SerenityOS developers.
* 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
* ... |
8c8ad68131754765620957b534ab13522ef19fa7 | 7b29f52c5d639a23faf7631d9776bc22d10aa955 | Mango-3/appleseed | /src/appleseed/renderer/modeling/postprocessingstage/effect/resamplex2applier.cpp | C++ | cpp | 4,993 | permissive |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2020 Tiago Chaves, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtaining... |
9fe5324acdab4243884e595fdac9ebedc0be97a1 | 4b2dfb29aa4e6d8d9183b4ccaf567b5a47a8a41a | jazzboysc/SwingEngine2 | /SwingEngine/SEGeometricTools/Intersection/SEIntrTriangle2Triangle2.cpp | C++ | cpp | 22,038 | no_license | // Swing Engine Version 2 Source Code
// Most of techniques in the engine are mainly based on David Eberly's
// Wild Magic 4 and 5 open-source game engine. The author of Swing Engine
// learned a lot from Eberly's experience of architecture and algorithm.
// Several subsystems are totally new, and others are reorgani... |
24fc1d50aac977e42380615553a2a249b6e2e79b | 36cd44365cccb5b517d60e6b2819d54d497eef0c | RDTCREW/SoT-SDK | /SDK/SoT_bsp_bush_cluster_04_c_classes.hpp | C++ | hpp | 1,241 | no_license | #pragma once
// SeaOfThieves (1.6.4) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass bsp_bush_cluster_0... |
9b446898bd7a62e1f7c8ca2e6d5959bf3aaa0881 | d19446ca64a001b8f5da8de604842501ba23fa0a | stennyc/sen | /src/qt/notificator.cpp | C++ | cpp | 9,444 | permissive | #include "notificator.h"
#include <QMetaType>
#include <QVariant>
#include <QIcon>
#include <QApplication>
#include <QStyle>
#include <QByteArray>
#include <QSystemTrayIcon>
#include <QMessageBox>
#include <QTemporaryFile>
#include <QImageWriter>
#ifdef USE_DBUS
#include <QtDBus/QtDBus>
#include <stdint.h>
#endif
#i... |
9fcaa4bbbee008cecfd487b8a8e2028ea8eefc91 | 1a6fc625c6e1421809093ac3a3cfc98b53260333 | happog/ncnn | /src/layer/arm/eltwise_arm.cpp | C++ | cpp | 31,060 | permissive | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
ac92787761604ffb18ea9612fd668e362df0c112 | 0da8ee3b7aede392925e80c9b806377f75210041 | madera/Moneta | /tests/core/moneta/sql/traits/field_names_test.cxx | C++ | cxx | 1,869 | permissive | // [===========================================================================]
// [ M o n e t a ]
// [---------------------------------------------------------------------------]
// [ ... |
76ec17ab5a5f7696c4d91408a7167b3bda87749f | ef48c3cf368c470bb98717faf5c459a8e1ffb280 | Debashish-hub/100-Days-Of-Coding | /Day 20/Merge sort for linked list.cpp | C++ | cpp | 2,197 | no_license | // Merge Sort for Linked List
// Given Pointer/Reference to the head of the linked list, the task is to Sort the given linked list using Merge Sort.
// Note: If the length of linked list is odd, then the extra node should go in the first list while splitting.
// { Driver Code Starts
#include <iostream>
#include <std... |
0be631147ef56fedb64534d24332c3dc9dcfc5d9 | 23aa22cd96992dc46f9436e7b672f953b06591ae | daniaudthomas/CellDatabase | /main.cpp | C++ | cpp | 438 | no_license | #include <string>
#include <iostream>
#include "Repository.h"
#include "menu.h"
using namespace std;
int main(int argc, char** argv) {
// Todo : Faire des try catch pour s'assurer de l'exécution des fonctions add et del
// Todo : Afficher Message si array eukaryote / prokaryote vide
// Todo : Mettre ... |
597a51786bae17acd0e925962d87a2839fd1d377 | 145d798be1983ff174bad1254985557496017ade | klyuchnikov/LabsTwoSemestrEVM | /laba77/laba77.cpp | C++ | cpp | 24,940 | no_license | // laba77.cpp: определяет точку входа для приложения.
//
#include "stdafx.h"
#include "laba77.h"
#include "laba7.h"
#include "laba7_2D.h"
#include "STDLIB.H"
#include <math.h>
#include <conio.h>
#include <dos.h>
#include <time.h>
#include <istream>
#include "WinDef.h"
using namespace std;
#pragma warning(disable : ... |
ca80b647a6fa4e964996432b338a66913be85849 | 715a9a60ad3b346e2dd2e430d193e87b7b30aa4f | spolitov/yugabyte-db | /src/yb/tserver/tablet_server-test.cc | C++ | cc | 70,218 | permissive | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
22f3512c90ec2585c652f1108fb4653500f6b2ad | fd6db9c747c90e546b44fd24a9d4e8cbe50dcbb4 | brunolauze/openpegasus-providers | /src/Providers/UNIXProviders/DiskPartition/UNIX_DiskPartition_ZOS.hxx | C++ | hxx | 1,809 | permissive | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
75c7133320bb5336e528cac9220b5cb56a262735 | 1027443e37a85c13077af2fe4be8aaf2ac16124b | sogapalag/contest | /aizu/RitsCamp17Day3/a.cpp | C++ | cpp | 326 | no_license | #include <iostream>
#include <string>
#include <vector>
#define rep(i, n) for (int i = 0; i < int(n); ++i)
using namespace std;
int main() {
string s;
cin >> s;
int a[26] = {};
rep(i, s.length()) {
a[s[i] - 'a'] += 1;
}
int cnt = 0;
rep(i, 26) {
cnt +=
a[i] % 2;
}
cout << cnt / 2 << en... |
5f2ad2d21623b96ecbe5c3c010bec52218050239 | 23421d921da49127c2bcc5c6a8e89f7e6b9495d4 | publiqnet/publiq.pp | /src/libblockchain/transaction_content.hpp | C++ | hpp | 1,429 | permissive | #pragma once
#include "global.hpp"
#include "message.hpp"
#include "node.hpp"
#include "state.hpp"
#include <string>
#include <vector>
namespace publiqpp
{
std::vector<std::string> action_owners(BlockchainMessage::Content const& content);
std::vector<std::string> action_participants(BlockchainMessage::Content const&... |
a5918e74ef0a3442a4d2ce7ae8f5ac9ee7571184 | b0a2a8b7e0ad2e502a54e223937524efd61ce57b | alexhein189/code-plagiarism-detector | /data/final-16/sources/u2396_48_E_218518.cpp | C++ | cpp | 4,280 | no_license | #include "cmath"
#include "cstdio"
#include "cstring"
#include "algorithm"
#include "map"
#include "numeric"
#include "queue"
#include "set"
#include "string"
#include "utility"
#include "vector"
using namespace std;
typedef long long i64;
struct edge_t {
edge_t(int src_, int dest_)
: src(src_), ... |
e2a6b08d66815b110206861c243ba15b26b4e085 | 12c6baee59b02b0f497942b96ce500cdc9e1652d | dario2332/viso | /src/matcher/Detector.cpp | C++ | cpp | 3,066 | no_license | #include "Detector.h"
void Detector::nonMaxSuppression(vector<KeyPoint> &points, float min_distance) {
int max_row = 0;
int max_col = 0;
for (auto point : points) {
if (point.pt.x > max_col) max_col = point.pt.x;
if (point.pt.y > max_row) max_row = point.pt.y;
}
Mat response_matrix = Mat::zeros(max_... |
24cdc9f694b4c6e945052b890f41967a5e59d928 | 0e1c09f405851b39599e2d28906659d9246dab13 | ralfebert/omim | /platform/platform.hpp | C++ | hpp | 7,936 | permissive | #pragma once
#include "platform/country_defines.hpp"
#include "coding/reader.hpp"
#include "base/exception.hpp"
#include "std/string.hpp"
#include "std/vector.hpp"
#include "std/utility.hpp"
#include "std/function.hpp"
#include "std/bitset.hpp"
#include "defines.hpp"
DECLARE_EXCEPTION(FileAbsentException, RootExc... |
31fa22e28462558f0e0735782a770810cca5e3de | 52dce9f7f5c571be8e0e44943f94edaa2100bac3 | wwjiang007/atlas | /atlas-aapt-old/frameworks/base/libs/androidfw/BackupHelpers.cpp | C++ | cpp | 46,746 | permissive | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
96fabeda5df8342f1dc22cf0f8a9c5dbfe621003 | ab635f00ead06a2a28987ff6d7047ef22d082f17 | aabin/mapmatrix3d-2.0 | /mm3dMapperEvent/osgDragPointEvent.cpp | C++ | cpp | 6,874 | no_license | // osgDragPointEvent.cpp : 定义 DLL 应用程序的导出函数。
//
#include "stdafx.h"
#include "osgDragPointEvent.h"
#include "InterfaceOsgExtractWall.h"
#include "Geometry.h"
#define EPS 0.00001
void COsgDragPointEvent::UpdateActivatedStatus(std::vector<OperatingState> vecOpState)
{
bool flag = false;
if (isActivated ... |
9dd3f8b06702b53d591154a48209a7eb2e2dafd6 | a119d4cda82c192497f641a6b53d755d3c10091e | cjh1/VTK | /Filters/Matlab/vtkMatlabEngineFilter.cxx | C++ | cxx | 24,078 | permissive | /*=========================================================================
Program: Visualization Toolkit
Module: vtkMatlabEngineFilter.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 sof... |
219e6e6271a9fde0419667b7cea464b2190aeeb0 | 913c703cddcff8639a8e4846228ab5e58f6186fd | gstavrinos/jaguar_robot | /jaguar_base/src/jaguar_base.cpp | C++ | cpp | 2,470 | no_license | #include "jaguar_hardware.hpp"
#include "controller_manager/controller_manager.h"
#include "ros/callback_queue.h"
#include <boost/chrono.hpp>
typedef boost::chrono::steady_clock time_source;
/**
* Control loop for Jaguar, not realtime safe
*/
void controlLoop(jaguar_base::JaguarHardware &jaguar,
con... |
6a69009b6e9f9e371d159d272fdb89e0db463130 | 58ca408bf4337e2abfbf44cbb3b88e7e3d36100e | johanneslochmann/datacollector | /crimetype.cxx | C++ | cxx | 363 | no_license | #include "crimetype.hxx"
CrimeType::CrimeType()
: Storable() {
}
QString CrimeType::name() const
{
return m_name;
}
void CrimeType::setName(const QString &name)
{
m_name = name;
}
QString CrimeType::description() const
{
return m_description;
}
void CrimeType::setDescription(const QString &descrip... |
7dae4aad34735aded5900abe30dc18defa79a1ff | d83f6ab68145696b1db2a380c43bc2add7d0539f | lab104yifan/ACM | /UVA12009+.cpp | C++ | cpp | 495 | no_license | #include <stdio.h>
#include <string.h>
int t, n, mi;
bool judge(int num) {
long long sb = (long long)num * num;
if (sb % (mi * 10) == num) return true;
return false;
}
int main() {
int cas = 0;
scanf("%d", &t);
while (t--) {
scanf("%d", &n);
mi = 1;
for (int i = 1; i < n; i++)
mi *= 1... |
5d6868d4ab8d65703c03a949553a42e2a7fb26d2 | 2ce6b6564080e54d2276ec6d9d89468e90cf8737 | Sondro/Acid | /Sources/Graphics/Buffers/StorageHandler.hpp | C++ | hpp | 2,370 | permissive | #pragma once
#include <cstring>
#include "StorageBuffer.hpp"
namespace acid {
/**
* @brief Class that handles a storage buffer.
*/
class ACID_EXPORT
StorageHandler {
public:
explicit StorageHandler(bool multipipeline = false);
explicit StorageHandler(const Shader::UniformBlock &uniformBlock, bool multipipeline ... |
bd2563c1f6abb9f31134904140eb09d263a0bcdc | 0dfe92741f6d7d9e0bfece1b3d5e00887051be2e | marco-toli/ECAL_Endcap_tapered | /src/EventAction.cc | C++ | cc | 1,902 | no_license | // Martin Goettlich @ DESY
//
#include "EventAction.hh"
#include "G4RunManager.hh"
#include "G4Event.hh"
#include "G4EventManager.hh"
#include "G4TrajectoryContainer.hh"
#include "G4Trajectory.hh"
#include "G4VVisManager.hh"
#include "G4ios.hh"
#include "G4SDManager.hh"
#include "MyMaterials.hh"
#include "CreateTree.... |
fcfe8d353cc234b6a2f7baf27f20777e5fc23776 | e57251193d957531ce2272c58fcb4ef9a47eab5c | Thooms/pyston | /src/runtime/code.cpp | C++ | cpp | 8,054 | permissive | // Copyright (c) 2014-2016 Dropbox, 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 agr... |
44cf49c1b7538be28c73928dda679fde461c3746 | 4023790e0dbfa2a4b3bfaa3b332a1bec8607d42b | SymbianSource/oss.FCL.sf.app.imgeditor | /imageeditor/plugins/ClipartPlugin/src/ClipartSelectionDialog.cpp | C++ | cpp | 25,878 | no_license | /*
* Copyright (c) 2010 Ixonos Plc.
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:... |
bba52453d412eed8aff82e2b4f91364a9b8c3203 | 89fe99463a58f1de30799b904dbaa9c2005306d4 | ashutosh0gupta/llvm_bmc | /examples/litmus/c/run-scripts/tmp_5/W+RWC+dmb.st+ctrl+dmb.sy.c.cbmc_out.cpp | C++ | cpp | 44,144 | no_license | // Global variabls:
// 0:vars:3
// 3:atom_1_X0_1:1
// 4:atom_1_X2_0:1
// 5:atom_2_X2_0:1
// Local global variabls:
// 0:thr0:1
// 1:thr1:1
// 2:thr2:1
#define ADDRSIZE 6
#define LOCALADDRSIZE 3
#define NTHREAD 4
#define NCONTEXT 5
#define ASSUME(stmt) __CPROVER_assume(stmt)
#define ASSERT(stmt) __CPROVER_assert(stmt, ... |
f560b1a96c8a3cf05985f9f99beecf05e16a5af0 | bbf1a2667a3ac3c3318cc747540bf0d6bf66a3de | Eelis/json | /example/validate.cpp | C++ | cpp | 3,458 | 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/cppalliance/json
//
/*
This example verifies that ... |
9145217db4bc06c040ca837b4d46432b46716fcd | 61ffb7c21e00f887acb931425c31bf4fd6cfca94 | odanado/Procon | /AtCoder/ABC008/B.cpp | C++ | cpp | 990 | no_license | #include <algorithm>
#include <functional>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <vector>
#include <list>
#include <stack>
#include <queue>
#include <map>
#include <set>
#include <bitset>
#include <cl... |
50e85be6758e77c227560a7ece2f5b5e994d51d0 | 618090ec5261ae40af61ce66bb3e672ab8fcde5d | pedrohenriqueos/maratona | /udesc_2018.2/buracos.cpp | C++ | cpp | 1,819 | no_license | #include<bits/stdc++.h>
using namespace std;
int T,N,B,Q,cas,m;
struct _ele{
double x,y,z;
string n;
};
typedef struct _ele ele;
vector<pair<double,int> > G[200];
double dist[200];
double dijkstra(int v,int z){
for(int i=0;i<(m+1);i++)
dist[i]=(1LL<<62);
dist[v]=0.0;
priority_queue< pair<double,int> > pq;
pq.pu... |
5b804a6323991cd50e85561b96f7c9f44f583a8a | 2d4738e4ae027c920d0c6c2d0f1ec03ed91e9ce5 | eldsg/BOJ | /BOJ/2670/2670.cpp | C++ | cpp | 769 | no_license | #include<cstdio>
#include<vector>
using namespace std;
vector<double> st;
double num[10001];
double max(double a, double b){
return a > b ? a : b;
}
double update(int s, int e, int n){
if(s == e) return st[n] *= num[s];
return st[n] = update(s, (s+e)/2, 2*n) * update((s+e)/2+1, e, 2*n+1);
}
double query(int s, i... |
c21ad5aa1394510a157ee62e35abbfc41d414b91 | 3d1276a06498f7cedbc6db27ae165bb7bef5075c | romanbtt/42-Piscine-Cpp | /cpp05/ex01/Bureaucrat.hpp | C++ | hpp | 1,889 | no_license | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Bureaucrat.hpp :+: :+: :+: ... |
47d64a89c69c32e8dd0e983f59d95efee2654972 | 5741272e3131221a03c67aa829b129794057660b | CHAZICLE/MuseumGuard | /src/cpp/ai/path/NavigationGraph.cpp | C++ | cpp | 10,352 | no_license | #include "util/gl.h"
#include "render/shaders/ShaderUtils.hpp"
#include "render/BasicShapes.hpp"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/norm.hpp>
#include "render/RenderManager.hpp"
#include "util/DeltaTime.hpp"
#include "util/StreamUtils.hpp"
#include "util/Globals.hpp"
#include "NavigationGraph.h... |
aaf8f0e5a49aaa725feaab9cebed7001d2130ec3 | a4416cfa86fbdb9ec09932528198dc55093aeeeb | Sally27/B23MuNu_backup | /preparetuplesforBDTfinalallvartrigger/comparedistributions/plottingtool.cc | C++ | cc | 45,985 | no_license | #include<iostream>
#include "TH1F.h"
#include "TCanvas.h"
#include "TFile.h"
#include "TTree.h"
#include "TLorentzVector.h"
#include "TVector3.h"
#include "TBranch.h"
#include "TRandom.h"
#include "TBranch.h"
#include "TString.h"
#include<string>
#include<vector>
#include "THStack.h"
#include "TLine.h"
#include "TPaveT... |
2343659c17eaacb560eb7c7df08be5c39ca57d22 | a3d5eb1f6af6490558ec9aca0e72919aeef9d971 | wangscript007/netplus | /test/rpc/src/rpc_node2.cpp | C++ | cpp | 4,548 | permissive | #include <netp.hpp>
#include "shared.hpp"
void on_rpc_call(NRP<netp::rpc> const& RPC, NRP<netp::packet> const& in, NRP<netp::rpc_call_promise> const& f) {
(void)RPC;
nlohmann::json json_in = nlohmann::json::parse((const char*)in->head(), (const char*)(in->head() + in->len()) );
//nlohmann::json json_in = nlohmann... |
6872043c095651487fcf1ad89cdbd1a83dba25c4 | 2aa5842f269db3dcad9604ec865b27a7db5fdb5f | WiViClass/cef-3.2623 | /chromium/src/components/password_manager/core/browser/fake_affiliation_fetcher.cc | C++ | cc | 2,152 | permissive | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/password_manager/core/browser/fake_affiliation_fetcher.h"
#include <utility>
namespace password_manager {
password_manager::FakeAf... |
ddc9cdb1acf81b945f9cbaa2e59bdfefdd101613 | 4bef70507508fc5a81e00730cc64d44877db5f4e | KVVaisakh/CompetetiveProgramming | /codechef/18-4-long/WGHTNUM.cpp | C++ | cpp | 497 | no_license | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
long long t,n,w;
cin>>t;
while(t--)
{
cin>>n>>w;
if(w<10 && w>-10)
{
if(w>=0) cout<<fmod((pow(10,(n-2))*(9-w... |
5fe75fe3711dd6851f02a24d1b55a936bb279ebc | 7e99a892f2b15c247755c5b98b5b679497278861 | arichardson/juliet-test-suite-c | /testcases/CWE762_Mismatched_Memory_Management_Routines/s02/CWE762_Mismatched_Memory_Management_Routines__delete_char_calloc_05.cpp | C++ | cpp | 4,960 | no_license | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__delete_char_calloc_05.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml
Template File: sources-sinks-05.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory Management Routi... |
0c031f435f1456be0897795bffd05fdc932dfcd8 | a8e62a74aea3b846b2c27e6c28363ae330460ca4 | lihaosky/poj | /Joseph/joseph_bad.cpp | C++ | cpp | 1,780 | no_license | //k bad guys and k good guys. alway kill bad guys first. find m
//not effecient program
//AUTOR: LIHAO
//DATE: Jan 22th 2009
#include <iostream>
using namespace std;
bool is_ok(int k,int m)
// judge if the number m is valid
{
bool x[29]; // store the status of the person: true for killed
... |
17579bc61405b0f9f22835ddd60d75a60b5c4a76 | 678fe34899d50a32324a0feaa06ac6bc008eabf2 | Codeon-GmbH/mulle-clang | /test/PCH/thread-local.cpp | C++ | cpp | 965 | permissive | // RUN: %clang_cc1 -pedantic-errors -Wno-c11-extensions -std=c++11 -triple x86_64-linux-gnu -emit-pch %s -o %t
// RUN: %clang_cc1 -pedantic-errors -Wno-c11-extensions -std=c++11 -triple x86_64-linux-gnu -include-pch %t -verify %s
// REQUIRES: x86-registered-target
#ifndef HEADER_INCLUDED
#define HEADER_INCLUDED
extern... |
d0edf31580917e3d407fecf74f7b52404a2b6d80 | c58a1589b7f5d5f7544f58c19b2dc96067982aa0 | bgoonz/UsefulResourceRepo2.0 | /MY_REPOS/misc-experiments/_FIREBFIRE/grpc-SwiftPM/test/core/gprpp/host_port_test.cc | C++ | cc | 2,807 | permissive | /*
*
* Copyright 2015 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
#include <grpc/support/alloc.h>
#include <g... |
e5c136c709ebf4e56daed2bf4ebb2fcfca2e5c42 | 60ce000ab64f26ab203c500c6b76dbc41b3bb65d | rtohid/blaze | /blazetest/src/mathtest/smatsmatmult/UCaLCa.cpp | C++ | cpp | 5,048 | permissive | //=================================================================================================
/*!
// \file src/mathtest/smatsmatmult/UCaLCa.cpp
// \brief Source file for the UCaLCa sparse matrix/sparse matrix multiplication math test
//
// Copyright (C) 2012-2018 Klaus Iglberger - All Rights Reserved
//
// Th... |
9f4ad2f00436902ba0fba0a2ee46f66e6275898b | 9d18436c30d6ebaf94ad18d29d0bc0941b927a95 | Yuki45/PT | /NEW COMPLEX IMEI V 2.5/EinComplex/AceMP/Source/AxControlPanel.cpp | C++ | cpp | 3,137 | no_license | #include "stdafx.h"
#include "AxControlPanel.h"
#include "AxMaster.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CAxControlPanel::CAxControlPanel()
{
m_sName = _T("ControlPanel");
m_profile.m_sIniFile = _T("\\Data\\Profile\\System\\ControlPanel.ini");
m_nStartLock = 0;
}
CAxControlPanel::~CAxControlPanel()
{
m_b... |
d3846362f022c973928769f139909d1272d4dfb7 | 74366222cad1602cb32de5f5259ba855c899a529 | rszalski/rtbkit | /soa/service/passive_endpoint.cc | C++ | cc | 8,004 | permissive | /* passive_endpoint.cc
Jeremy Barnes, 29 April 2011
Copyright (c) 2011 Datacratic. All rights reserved.
Passive endpoint implementation.
*/
#include <unordered_map>
#include "soa/service//passive_endpoint.h"
#include <poll.h>
#include <boost/date_time/gregorian/gregorian.hpp>
using namespace std;
using na... |
99e1076c2102ed042b8cf5e10d6cd31141d2ed32 | 40f4973ac74d0aa45a990f8c1111492194e871f7 | mahbubcseju/Programming-Problem-Solutions | /Codeforces/contest_id_439/Devu, the Dumb Guy.cpp | C++ | cpp | 1,193 | no_license |
/*
MAHBUBCSEJU
CSE 22
JAHANGIRNAGAR UNIVERSITY
TIMUS:164273FU
UVA>>LIGHTOJ>>HUST:mahbubcseju
*/
#include<fstream>
#include<cstdio>
#include<cstdlib>
#include<cmath>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<map>
#include<cstring>
#include<string>
#include<vector>
#include<queue>
#include<stack... |
5b7eab97720f998c9265d29b0930256b2ab85993 | d2e7682cdf7f284aef6d0a4e39f2a9da06b94308 | MonashCybersecurityLab/SGXSSE | /Bunker-B/CryptoTestingApp/Client.cpp | C++ | cpp | 5,265 | no_license | #include "Client.h"
#include <string>
//#include <string.h> // memset(KF, 0, sizeof(KF));
#include "stdio.h"
#include <fstream>
#include <iostream>
#include <sstream> //std::stringstream
#include <vector>
#include <cstring>
#include <openssl/rand.h>
Client::Client(){
file_reading_counter = 0;
RAND_bytes(KW,... |
01734001730a0683226f47788ead9b21e7df0394 | b9680c390855ba458d34b60c8a40a02b04bc1092 | ShineYeon/baekjoon | /baekjoon/2577.cpp | C++ | cpp | 334 | no_license | //
// 2577.cpp
// baekjoon
//
// Created by 최희연 on 2021/05/03.
//
#include <iostream>
using namespace std;
int main(){
int a, b, c;
cin>>a>>b>>c;
int x;
x = a*b*c;
int arr[10]={0,};
while(x>0){
arr[x%10]++;
x/=10;
}
for(int i=0;i<10;i++){
cout<<arr[i]<<endl;
... |
1c8b4ae2d57aec1157bc1b09649dcec700263381 | cdb9e467dc9e3cf84f7fd7cd391f058db75e0180 | mciupek/AliRoot | /GPU/GPUTracking/SliceTracker/GPUTPCTrackletConstructor.cxx | C++ | cxx | 21,303 | no_license | //**************************************************************************\
//* This file is property of and copyright by the ALICE Project *\
//* ALICE Experiment at CERN, All rights reserved. *\
//* *\
//* Prim... |
f7f97d1588831dcc9e0984e0422193f272128872 | bba49f6b410cc189bdba2a24c29b6cf03e646bdb | lorepieri8/moveit | /moveit_core/collision_detection_bullet/src/collision_env_bullet.cpp | C++ | cpp | 17,119 | permissive | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, Jens Petit
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
0cc34ff53db47f51ae358d9b4c319a23e4b3ad20 | a9f7fad0007add54ae68cbd69cda570fb7000e01 | runom/AtCoderSubmissions | /AtCoder/abc037/abc037_d.cpp | C++ | cpp | 1,560 | no_license | #include <bits/stdc++.h>
#define FOR(i,a,b) for(int (i)=(a);(i)<(b);(i)++)
#define REP(i,n) FOR(i,0,n)
#define RER(i,n) FOR(i,0,(n+1))
#define pb push_back
#define mp(a,b) make_pair((a),(b))
#define mset(m,v) memset(m,v,sizeof(m))
using namespace std;
typedef vector<int> vi;
typedef pair<... |
6c78ad1123fa458afcd0cdbf3c3c2a8a52a7af3e | 90c18c28fa3f36669ce02ab107995cf76afd6da8 | danielfilipealmeida/AlmondGUI | /tests/ButtonGroup.cpp | C++ | cpp | 2,159 | no_license | //
// ButtonGroup.cpp
// Catch Tests
//
// Created by Daniel Almeida on 07/01/2018.
//
#include <stdio.h>
#include "catch.hpp"
#include "ButtonGroup.hpp"
#include "Viewport.hpp"
TEST_CASE("Should create sub buttons", "") {
ButtonGroup buttonGroup;
buttonGroup.set({
{"options", {
{
... |
df6627126fdef1f292b8a08dbcc1a2c7472b3cd7 | cf43bec8b4e6e51b51de0eb4df73ad57b68836dd | 1564143452/bnsbot | /bnsbot/packets.cpp | C++ | cpp | 5,710 | no_license | #include "packets.h"
char packets::mushin_f9[0x80] =
{
0x00, 0xAC, 0x13, 0x41, 0x01, 0x00, 0x00, 0x00, 0x91, 0x04, 0x79, 0x49, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x68, 0x00, 0x75, 0x00, 0x6E, 0x00, 0x14, 0x00, 0xBE, 0x61, 0x02, 0x00, 0x6B, 0x00,
0x01, 0x00, 0x00, 0x00, 0x28, 0xAD, 0x04, 0x00, 0x00, 0x00, 0x79, 0x0... |
52eb74509dae245c2c970110a88917b5aad30cdd | 38b0c3c62d9a9ce98f6eb61c6165c5142d38c6f7 | ShowLove/Robotics_Club | /zebulon/projects/igvc/2011/src/igvc/ground/path/historybeam.cpp | C++ | cpp | 9,440 | no_license | #include "ground/path/historybeam.h"
using namespace Zebulon;
using namespace IGVC;
using namespace Cartographer;
HistoryBeam::HistoryBeam()
{
mLaneHeadingSet = false;
mpSettings = new Cartographer::Navigator::Settings;
mpSettings->Set(HistoryBeam::PathWidthMeters, 0.5);
mpSettings->Set(HistoryBeam:... |
ace49c279aad0f3bf60b9c316799e73c89897bc1 | de784645581264d76824e30b3d7970825a4f623e | jazzboysc/SwingEngine2 | /SwingEngine/ThirdPartyLibs/VRaySDK/include/vraythrow.hpp | C++ | hpp | 2,307 | no_license | #ifndef _VRAY_THROW_HPP_
#define _VRAY_THROW_HPP_
#include <string>
namespace VRay {
class VRayException {
std::string msg;
public:
explicit VRayException(const std::string& msg) : msg(msg) { }
explicit VRayException() : msg("Unknown V-Ray exception.") { }
const char* what() const {
return msg.c_str();... |
91c073fe7559310fd420d7a5c4edec34b66cd374 | 5ce535840e531d48460c4b80cc534887f177892a | joshkainth/All_Programmes_Files | /DCLD_Lab/multiplexer.cpp | C++ | cpp | 390 | no_license | #include<iostream>
using namespace std;
int main(){
int a,b,c,d;
char choice;
do{
cout << "Enter four inputs : ";
cin >> a >> b >> c >> d;
cout <<"Output : " << (((!b)&(!c))|((!a)&(!b)&(!d))|(b&c&d)|(a&b&c)) << endl;
cout << "Do You want to Continue Y or N : ";
cin >... |
c4ab4e8c672a9cf3b9686a630f4c74a71b668c19 | a21b04d4df425937d4b99b07cbd7b019bef7babe | wkailiu/openvino_test | /openvino_test/HumanPose.cpp | C++ | cpp | 1,790 | no_license | //
// @ Project : HumanPose3D
// @ File Name : HumanPose.cpp
// @ Date : 2019/6/11
// @ Author : lwk
//
#include "HumanPose.h"
int HumanPose::getGoodNodeNum() {
int cnt = 0;
for (auto node : bodyNodeVector) {
if (node.isGood3D())cnt++;
}
return cnt;
}
bool HumanPose::isGood2D(int nodeId) {
return bodyNode... |
227d6a58fd9a4171632f1bbd7dc8b738784c19b1 | 59d3716e9cb2fe4659c695293b2141227b776fb8 | xuzheliang135/sjtu_rm2019_winter_version | /main.cpp | C++ | cpp | 3,091 | no_license | //
// Created by zhikun on 18-11-10.
//
#include <fstream>
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "armor_finder/armor_finder.h"
#include "armor_finder/constant.h"
#include "camera/camera_wrapper.h"
#include "camera/vid... |
f5c079553cb384782dd9ca5544beeb3f916ceed8 | 1479139304b7ab2d49ebdb2becf5f1abe7bde9cc | IF-YASMAJJ/Grammaire-et-Langages | /src/etat/e04.cpp | C++ | cpp | 453 | no_license | #include "e04.h"
#include "../symbole/Symbole.h"
#include "../Automate.h"
#include "../MessagesErreurs.h"
#include "e05.h"
E04::E04()
{
}
void E04::transition(Automate* automate)
{
Symbole *s = automate->getNextLexer();
switch(*s){
case IDENTIFICATEUR:
automate->decalage(s, new E05());
break;... |
3fca92fce5c3cb244ff1d4fb2747e4f80905f796 | 44803a881e95bb84917891a366a03daf5d505b26 | hotsphink/rr | /src/replay_syscall.cc | C++ | cc | 42,743 | permissive | /* -*- Mode: C++; tab-width: 8; c-basic-offset: 2; indent-tabs-mode: nil; -*- */
#include "replay_syscall.h"
#include <asm/prctl.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/futex.h>
#include <linux/perf_event.h>
#include <linux/shm.h>
#include <stddef.h>
#include <stdint.h>
#include <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.