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 |
|---|---|---|---|---|---|---|---|---|
f27d8349a0e907a677d61302cdfdbefc64e27079 | 4dfa6bb0a1a2be3a8fb68adfe36f77cccde6a052 | GirkovArpa/windows-theme-scheduler | /Project2.cpp | C++ | cpp | 1,146 | permissive | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
//---------------------------------------------------------------------------
USEFORM("Unit2.cpp", Form2);
USEFORM("ABOUT.cpp", AboutBox);
USEFORM("OKCANCL2.cpp", OKRightDlg);
//-----------... |
ba25a5ee209a5674817e2bb95cb6490e015e9b4d | 1e60c7d4d672ba8011f8df97062bc89db9a73c11 | NeoTim/hiphop-php-docker | /src/hiphop-php/hphp/runtime/base/stat_cache.cpp | C++ | cpp | 29,512 | permissive | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
c6e5e750f44e7e02f3d4efa2779b6a83dd2ae283 | e7ca2876f9f6c9a34ccadf0a72009f3cdfd86ef4 | joaogui1/Competitive-Programming | /I2CPx/Week 1/team.cpp | C++ | cpp | 537 | no_license | #include <bits/stdc++.h>
using namespace std;
double a[4][4];
int main(){
ifstream fin("team.in");
ofstream fout("team.out");
double ans = 0;
vector <int> v;
v.push_back(0);
v.push_back(1);
v.push_back(2);
for(int i = 0; i < 3; ++i)
for(int j = 0; j < 3; ++j)
fin >> a[i][j];
while(1){
... |
9467657bd045ba38dd7ae271ed240d719ffd0990 | 567b0ba08d5da9672938ef1308757dfa00c8bb7a | svdmaar/Coop | /CoopUtils/FontRipper/SingleSizeFont.cpp | C++ | cpp | 4,944 | no_license | #include "SingleSizeFont.h"
#include <sstream>
using namespace std;
CSingleSizeFont::CSingleSizeFont()
{
m_iMinChar = 0;
m_iMaxChar = 0;
m_iWindowsFontHeight = 0;
m_iLineDistance = 0;
m_iAverageWidth = 0;
m_iAverageHeight = 0;
m_iSpaceSize = 0;
m_iFontHeight = 0;
m_iInitialRowOffset = 0;
}
string CSingleSi... |
cbfd50cb3e4b25f970fefd238d7a871181e243c6 | ed3cae4a0e9ba8e9cdd54708ea406195f6d5ec5a | davidgjordan/ProyectosCpp | /practicas/ValidarFechasCpp/ValidarFechas.cpp | C++ | cpp | 2,501 | no_license | #include <iostream>
using namespace std;
int getAnio(int date);
int getMonth(int date);
int getDay(int date);
bool isValidDate(int date);
bool isValidYear(int a);
bool isValidMonth(int d,int m, int a);
bool isValidDay(int d, int maxDias);
bool isYearBiciesto(int a);
int main() {
int date = 20171115;
if(... |
483919e093a211779c4f351949b7c4b51778a967 | 6ea050761038815053fecd8dab7b375f1ec31f42 | Core-Game-Project-2016/nebula-trifid | /code/addons/forest/treelod.cc | C++ | cc | 8,870 | permissive | //------------------------------------------------------------------------------
// treelod.cc
// (C) 2009 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "forest/treelod.h"
#inclu... |
a00b742e381a5e6e88c668de1974982a7b8d1fe3 | bafd201cb27eb8b3ddfd348e4f7f5bde744dc320 | coindevcc/cryptopowers | /src/qt/guiutil.cpp | C++ | cpp | 16,307 | permissive | #include <QApplication>
#include "guiutil.h"
#include "bitcoinaddressvalidator.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "util.h"
#include "init.h"
#include <QDateTime>
#include <QDoubleValidator>
#include <QFont>
#include <QLineEdit>
#if QT_VERSION >= 0x050000
#include <QUrlQuery>
#else
#inclu... |
de5d27554999e18781c8fd07372707d2f76f2d20 | 3cdf3fde0b692525ea5a9805d0cc6873c4942331 | Evgenii86/ITMO.Cpp | /ControlTasksCpp/ControlTask.11/ControlTask11-1.cpp | C++ | cpp | 4,712 | no_license | #include <iostream>
#include <Windows.h>
using namespace std;
class Time
{
public:
Time() : hours(0), minutes(0), seconds(0) {}
Time(int h, int m, int s)
{
Time::hours = h;
Time::minutes = m;
Time::seconds = s;
if (s / 60 >= 1)
{
int temp = (s / 60);
Time::seconds = s % 60;
Time:... |
0de6c8386071cf7f04dac6f93f4cd73554222687 | 61a98633941ad09d7df1c997a3f839750fdd2846 | shadydealer/FMI | /Projects/SpacePewPews/utils/handlers/command_handler.cpp | C++ | cpp | 6,298 | no_license | #include "command_handler.h"
CommandHandler CommandHandler::instance;
/*
Ctor with map height and map width.
@params rhsMW - Map width.
@params rhsMH - map height.
*/
void CommandHandler::init(const int rhsMW,
const int rhsMH,
DynamicArray<Bullet> &rhs... |
e5969043d2e340af81724d0a0a442ce2424d114c | c937034e6496f0e9b4b2c70cbb308c7ac0c9bc68 | bnibni/DS | /Test/friend.cpp | C++ | cpp | 338 | no_license | #include <iostream>
#include <math.h>
using namespace std;
class Cpoint
{
int x;
int y;
public:
Cpoint(int i, int j)
{
x = i;
y = j;
}
friend double getdistance(Cpoint a, Cpoint b)
{
return sqrt((a.x-b.x)*(a.x-b.x)+(a.y-b.y)*(a.y-b.y));
}
};
int main()
{
Cpoint a(1,1);
Cpoint b(4,5);
cout << getdistan... |
df41a45616b3635f59870bbdb2b797aa3a0ac6cd | d221f2747086452c59474f17211adbfeec5a58b0 | dbuskariol-org/chromium | /content/browser/notifications/platform_notification_context_impl.cc | C++ | cc | 40,659 | 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 "content/browser/notifications/platform_notification_context_impl.h"
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#... |
127113be28d097a3e21ef9ce346acaef796cccc1 | 621636f8bac20c4fb551cccff0dd12478c4df4e8 | chagaz/param_maxflow | /code/d_maxflow/maxflow_solver.cpp | C++ | cpp | 1,844 | no_license | #include "maxflow_solver.h"
maxflow_solver::maxflow_solver(){
info.nV = 0;
info.nE = 0;
info.nBE = 0;
info.name = "solver";
info.flow = -1;
std::cout << "flow set to -1" << std::endl;
info.sweeps=0;
info.construct_t.start();
info.construct_t.stop();
info.solve_t.start();
info.solve_t.stop();
info.augment_t... |
c93925f01f2e5790dbc221c68f2636564289257b | baaef9bb79cfadc73c075427366455afb4fb70d0 | quick999/Quick | /src/test/DoS_tests.cpp | C++ | cpp | 6,024 | permissive | // Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Unit tests for denial-of-service detection/prevention code
#include "chainparams.h"
#include "keystore.h"
#include "main.... |
b64ad6c1b195158607191db82fe2405f381f3e9a | 1549f09a5f8df20d91b37fcf270acd648c50b789 | fiedukow/LindaFIFO | /src/Server/Common/Field.cpp | C++ | cpp | 1,241 | no_license | #include "Field.h"
#include <string>
#include <boost/lexical_cast.hpp>
#include "FieldCondition.h"
namespace Server
{
namespace Common
{
IntField::IntField(const int value)
: value(value)
{}
std::string IntField::asString() const
{
return boost::lexical_cast<std::string>(value);
}
bool IntField::accept(const... |
1746d8cdce0487f389c23b190f4a58274d76ce51 | 6f0e8fdcc7e12adbd2ecd1de846ba9fcff94c29a | ccdxc/logSurvey | /data/crawl/wget/old_hunk_2988.cpp | C++ | cpp | 3,163 | no_license | msgid "%s: option `-W %s' doesn't allow an argument\n"
msgstr "%s: опция `-W %s' не разрешает использовать аргумент\n"
#: src/host.c:636
#, c-format
msgid "Resolving %s... "
msgstr "Распознается %s... "
#: src/host.c:656 src/host.c:672
#, c-format
msgid "failed: %s.\n"
msgstr "сбой: %s.\n"
#: src/host.c:674
msgid "f... |
8e043970521dd9a5c44017dec6c0444cbabe0ebd | f98fe07f0433d5523150bb97c91e9feab471fc4c | DeepakIngole/FastSigmoids.jl | /c-src/P32e2.cpp | C++ | cpp | 7,411 | permissive |
#include "include/posit_conv.h"
#include "include/posit_ops.h"
#include "include/posit_ops_errno.h"
#include "include/P32e2.h"
#include "errno.h"
#include <stdexcept>
P32e2::P32e2(){ this->data = P32ZER; }
P32e2::P32e2(const float a){
this->data = f_to_p32e2((double) a).udata;
if (errno) {
throw std::domain... |
2aa44254bf778fa3e08e200f29c2ab3a75741731 | 88d50b3ec121e4e5e01a58f4bf2486160b37ce05 | najosky/darkeden-v2-serverfiles | /src/server/gameserver/item/VampireEarring.cpp | C++ | cpp | 19,614 | no_license | //////////////////////////////////////////////////////////////////////////////
// Filename : VampireEarring.cpp
// Written By : Elca
// Description :
//////////////////////////////////////////////////////////////////////////////
#include "VampireEarring.h"
#include "DB.h"
#include "Slayer.h"
#include "Vampire.h"
#... |
ecad6a46c706ec26df0470d355a2a154e360f282 | 4ffa5d507e422873cd0d9a7aba54b67e973ca94b | kchen445/cmpt-106-checkers | /game/controller.cpp | C++ | cpp | 4,247 | no_license | #include "controller.hpp"
// #define DISABLE_DISPLAY before including this file for training system
using namespace std;
using Data = cl::game_data;
//order of player parameters matter
//board will treat the first player passed in as player 1
//and have their pieces at the bottom
inline Data CheckerController::gam... |
b3fcb1ad7e0883c2c6f4283b06ea50f3eaaf0d5c | bc2ac9d8c7ebcf40c4ab345165c40f5a213b9f2c | WiViClass/cef-3.2623 | /chromium/src/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc | C++ | cc | 14,858 | permissive | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.h"
#include <cryptohi.h>
#include <keyhi.h>
#include <stdint.h>
#include ... |
32e3e5e9b29210fba24838683eb11020ff2ccca2 | 846bfaf700e97332ba0533b7ef7c2bc9671ba6b6 | Saanlima/Pano_G2C | /fpgaprog/src/butterfly.cpp | C++ | cpp | 12,763 | no_license | /* JTAG programming tools for Butterfly One and others
from http://www.gadgetfactory.net/gf
Copyright (C) 2010 Jochem Govers
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 th... |
de636eb177b24a6dcf99bd51b5663b151bae842f | 2746f3a6728536e68c6f1e94994f1ed67a9feffd | caven1987/DuilibEx | /DuiLibEx/Layout/UIVerticalLayout.cpp | C++ | cpp | 9,041 | no_license | #include "stdafx.h"
#include "UIVerticalLayout.h"
namespace DuiLibEx
{
CVerticalLayoutUI::CVerticalLayoutUI() : m_iSepHeight(0), m_uButtonState(0), m_bImmMode(false)
{
ptLastMouse.x = ptLastMouse.y = 0;
::ZeroMemory(&m_rcNewPos, sizeof(m_rcNewPos));
}
LPCTSTR CVerticalLayoutUI::GetClass() const
{
return _T... |
0a3a91f6ba1e545f47e331a287b78bc3263a04f8 | f579e8d9d88f8902c7a90c61a89f05170dd7f048 | y761823/ACM-code | /GoogleCodeJam/Google-Code-Jam-2015-Round-1A/Logging.cpp | C++ | cpp | 1,519 | no_license | #include <cstdio>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <cmath>
using namespace std;
typedef long long LL;
struct Point {
int x, y;
Point() {}
Point(int x, int y): x(x), y(y) {}
Point operator - (const Point &rhs) const {
return Point(x - rhs.x, y - rhs.y);
}
... |
0f644d3581158510ec6358f8979a51c09a4132e1 | 1bdd31d064874b7475b702a98883f280adfd99fd | chaelin0722/OpenCV_Works | /Prac1005/practiceMouseRGV/Project1/main.cpp | C++ | cpp | 1,104 | no_license | #include <opencv2/core/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2\opencv.hpp>
#include <iostream>
#include <string>
using namespace cv;
using namespace std;
void mouseEvent(int evt, int x, int y, int flags, void* param) {
Mat* rgb = (Mat*)param;
if (evt == EVEN... |
9fe1be7e3b93e1cc7fc3e393a799ebb3a8dd4fc0 | 052b4b793ec98674de105a9b8c7340f3ecab2159 | winksaville/fuchsia | /src/developer/feedback/bugreport/tests/bug_reporter_integration_test.cc | C++ | cc | 1,466 | permissive | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuchsia/mem/cpp/fidl.h>
#include <lib/sys/cpp/service_directory.h>
#include "src/developer/feedback/bugreport/bug_reporter.h"
#include "src/deve... |
91396edd9c1ebe7ea66c74359d6c66ae0400a84c | ef9407450a7a7cec7fed45ca2c0145c493beb307 | buffos/FemApp | /Materials/Veccio2DT.cpp | C++ | cpp | 4,741 | no_license | // Veccio2DT.cpp: implementation of the Veccio2D class.
//
//////////////////////////////////////////////////////////////////////
#include "Veccio2DT.h"
#include "iostream.h" // for testing
#include "Newmatio.h" // for testing
#include <fstream.h>
//////////////////////////////////////////////////////////////////////... |
e7c4d8fcc31e03e417f9a4d12bcfee00ea821077 | c041d8109ba581a36c5ec4eeed3d5f2bb8e2952c | skaramati/yask | /src/compiler/lib/Vec.hpp | C++ | hpp | 11,538 | permissive | /*****************************************************************************
YASK: Yet Another Stencil Kit
Copyright (c) 2014-2020, Intel Corporation
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 Soft... |
2a9bb7bae14a9319d283cafed682c7b8e4a6b39f | 1fa4fea97537b739a373d0c5d10090742fe28e20 | proaholic/Win2K3 | /NT/inetsrv/iis/iisrearc/iisplus/ulw3/w3server.cxx | C++ | cxx | 49,688 | no_license | /*++
Copyright (c) 1999-2000 Microsoft Corporation
Module Name:
w3server.cxx
Abstract:
W3_SERVER object holds global state for ULW3.DLL
Author:
Taylor Weiss (TaylorW) 26-Jan-1999
Revision History:
--*/
#include "precomp.hxx"
#include "rawconnection.hxx"
#include "cgi_handler.h"
#include "dav... |
c5c27122a9a4772da4cbece4799420d8581f3c1c | 35081b22b310e7c6caf332a6b9403ac7e7e47701 | hschoi1104/Algorithm | /BOJ/세그먼트트리/7578_공장.cpp | C++ | cpp | 955 | no_license | #include <iostream>
#include <vector>
using namespace std;
typedef long long ll;
vector<int> node;
vector<int> loc;
int arr1[500001];
int arr2[1000010];
int h = 1;
void update(int i, int val) {
i += h - 1;
node[i] += val;
while (i > 1) {
i /= 2;
node[i] = node[i * 2] + node[i * 2 + 1];
}
}
ll query(int L, int R... |
4ec96feb995af62445e6ee4973fe7e1adf65e137 | 422c48c51def611b0566e5ddd40b2c3b1b0ac0a3 | gitter-badger/Kvasir-1 | /Lib/Chip/Unknown/STMicro/STM32F091x/RTC.hpp | C++ | hpp | 18,964 | permissive | #pragma once
#include "Register/Utility.hpp"
namespace Kvasir {
//Real-time clock
namespace Nonetr{ ///<time register
using Addr = Register::Address<0x40002800,0xff808080,0,unsigned>;
///AM/PM notation
constexpr Register::FieldLocation<Addr,Register::maskFromRange(22,22),Register::ReadWr... |
a8cb400ab5dc62f34dd56c182bf4697b53ab9ef7 | 056fc946d82d72b5fde839ea39c1f24854918486 | aryamihirs/CppCodes | /stacks/postfixeval.cpp | C++ | cpp | 1,148 | no_license | #include<bits/stdc++.h>
using namespace std;
bool isOp(char c){
return (c == '/' || c == '^' || c == '*' || c == '+' || c == '-')? true : false;
}
int do_op(char op, int a, int b){
switch(op)
{
case '+':
return a+b;
break;
case '-':
return a-b;
break;
case '*':
retu... |
4a58bca78942f5e7b8afd3d24863bbdbca3e15bc | 3c4d40a37e813b265e432d3abe8743b556b3d484 | Ashypilo/Piscine-CPP | /day02/ex02/Fixed.hpp | C++ | hpp | 2,159 | no_license | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.hpp :+: :+: :+: ... |
1df2d609f8638ac537f758221cf383465e0ccf1d | 8053b61d7e961627d24d4e2d5b69dc71f0ff04ed | foss-for-synopsys-dwc-arc-processors/tensorflow | /tensorflow/core/framework/model.cc | C++ | cc | 74,045 | permissive | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
c2d1bb7483d9877906bc163ee37b05c504f7da86 | 8d5d9cdf69801732eb426d637f44467f46d9573c | littlepig2013/FASTER | /cc/benchmark-dir/process_ycsb.cc | C++ | cc | 977 | permissive | #include <cstdio>
#include <fstream>
#include <iostream>
#include <stdlib.h>
#include <string>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(int argc, char* argv[]) {
if (argc != 3) {
fprintf(stderr, "Requires two arguments: file copied from, file copied to.\n");
exit(-1);
}
... |
d804738aa4a8f7b459e7e9bc009f294588fbfb4f | b7ca098fddb62fa3ea47060b60df17f2af56cbc9 | blownhither/testDS | /3080.cpp | C++ | cpp | 1,165 | no_license | /*A single positive integer m (2 <= m <= 10) indicating the number of base sequences in this dataset.
* m lines each containing a single base sequence consisting of 60 bases)*/
#include<cstdlib>
#include<cstdio>
#include<iostream>
#include<string>
#include<string.h>
using namespace std;
char base[10][100];
char ans[10... |
61b619dd53606ff418186b0bc2196d7c7b72bc72 | 1d0119e184d5da4c374b9a3aa52a26d0d64ba8d6 | solisoft/arangodb | /3rdParty/snappy/snappy-1.1.8/snappy_compress_fuzzer.cc | C++ | cc | 2,601 | permissive | // Copyright 2019 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 and ... |
0db5a4ce2fdb2c72845d201bc8085b774dc9a86e | ba9ede94752fb883ce7990d67c4264a32d4dddf1 | JhairtVegaQ/uva-online-judge | /234-Switching Channels.cpp | C++ | cpp | 1,579 | no_license | #include <bits/stdc++.h>
using namespace std;
int main()
{
int p,v,a,t;
int tc=1;
while(scanf("%d",&p),p){
vector<int> programs;
for(int i=0;i<p;i++){
cin >> v;
programs.push_back(v);
}
sort(programs.begin(),programs.end());
cin >> a;
... |
2ea14de4b5b23f25dc2583d39b9d9b41b0a7e420 | 34b172f0027b6dffbfbd7cf8382ce0446cc6625c | Arsener/AES | /AES.cpp | C++ | cpp | 10,659 | no_license | #include <iostream>
#include <cstdlib>
using namespace std;
#define KEY_TOTAL_LENGTH 60
// s盒
short sBox[16][16] = {
{0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B, 0xFE, 0xD7, 0xAB, 0x76},
{0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0, 0xAD, 0xD4, 0xA2, 0xAF, 0x9C, 0xA4, 0... |
cf18693c1f9c37396436bc12dc4da333d96404d5 | 7d46b6512a76a1c9df1842c789d1b6cc5ddd58ec | AurelienLP/valhalla | /test/graphparser.cc | C++ | cc | 24,296 | permissive | #include "midgard/sequence.h"
#include "mjolnir/osmnode.h"
#include "mjolnir/pbfgraphparser.h"
#include "test.h"
#include <cstdint>
#include "baldr/rapidjson_utils.h"
#include <boost/filesystem.hpp>
#include <boost/property_tree/ptree.hpp>
#include <fstream>
#include "baldr/directededge.h"
#include "baldr/graphconsta... |
70ef24a4a50f03c6784deabec755962ea7fbcc4d | 205d15f14212b45d2fe1b059346ed7e5472c4d66 | Lgeu/hungry_geese | /nagiss/rl/src/exp001/KKT89/src/Game.hpp | C++ | hpp | 539 | no_license | #pragma once
#include "Stage.hpp"
#include <algorithm>
namespace hungry_geese {
// ステージの配列
using Stages = std::array<Stage, 200>;
// reward
using Rewards = std::array<int, 4>;
struct Game {
// コンストラクタ
Game();
// 問い合わせ
// 現在のターン数
int turn() const;
// 順位確定
void calc_Ranking();
// メンバ変数
// 現在のターン数
int mTu... |
4084a8741e6290ba915ce28708af3469c2ddf892 | ce92aa4fcf962d399c62485aa5755fdf4e3843d9 | ankrone/ankrone | /QLTHUVIEN.CPP | C++ | cpp | 10,598 | no_license | #include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <ctime> //Ham lay thoi gian hien tai tu may tinh
#include <conio.h>
#include <fstream>
#define MAX 100
using namespace std;
fstream file; //Khai bao file
int n = 0; //So luong sach co trong du lieu
//Khai bao struct date
struct dat... |
2d46ba56cfdfaeafb905e32a89e3b2768a8060e7 | ee4950b15f5644572c45b4595b9ab88783068ff7 | Gwaqaza/Piscine-CPP | /rush00/rush00/Hero.hpp | C++ | hpp | 1,218 | no_license | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Hero.hpp :+: :+: :+: ... |
d6c65ed0b4179445d2e50050b113c90604351c8f | b71c93f1f9b97e9a0b24497220eb282001115b67 | GraydonHall42/ensf614-Lab5-GH-JK | /GH/Exercise C/Circle.cpp | C++ | cpp | 1,123 | no_license | /* File Name: Circle.cpp
* Lab # and Assignment #: Lab #5
* Lab section: 1
* Completed by: Graydon Hall and Jared Kraus
* Submission Date: 2021-10-25
*/
using namespace std;
#include <iostream>
#include <math.h>
#include <cmath>
#include <iomanip>
#include "Shape.h"
#include "Point.h"
#include <string.h>
#include ... |
5f828085e62e4646d3416c800cfd7eae9a45cf9f | d9f16373b90306642697238ebaec90ac1de325ee | imcnulty837/CSC2110-Project | /IanMcNultyProject.cpp | C++ | cpp | 13,015 | no_license | // Ian McNulty CSC 2110 Project 3/26/2019
//---------------------------------------------------------------------------------------------------------------
// SUMMARY
// Barebones POS(point of sale) system for supermarket - NO GUI
//-----------------------------------------------------------------------------------... |
e44cf53f0a381ca552dac36c78f2080548b7b9d9 | b24416a17887a0b7b6e80e4d1dd2419feed77b3b | maxiang/TinyUI | /FLVPlayer/FLVDecode.cpp | C++ | cpp | 11,809 | no_license | #include "stdafx.h"
#include "FLVDecode.h"
#include "Network/TinyHTTPRequest.h"
#include "Network/TinyHTTPResponse.h"
using namespace TinyUI::Network;
namespace FLVPlayer
{
FLVDecode::FLVDecode(HWND hWND)
:m_hWND(hWND),
m_audioQueue(m_lock1),
m_videoQueue(m_lock2),
m_videoTask(*this),
m_audioTask(*this),
... |
4862085389ea73f10673ef9c5708f5bc9adba013 | c50abc311b767b23def654c8810288e83f27ac19 | ericyao2013/json.h | /test/main.cpp | C++ | cpp | 25,462 | permissive | // This is free and unencumbered software released into the public domain.
//
// Anyone is free to copy, modify, publish, use, compile, sell, or
// distribute this software, either in source code form or as a compiled
// binary, for any purpose, commercial or non-commercial, and by any
// means.
//
// In jurisdictions ... |
beb7de9d0275c0fe2d9147661d1b0e8aba1001cd | 19fac9921f29ef54a6f505b3762bfee7e1aba53a | sambow23/dxvk | /src/dxbc/dxbc_options.cpp | C++ | cpp | 1,000 | permissive | #include <unordered_map>
#include "dxbc_options.h"
namespace dxvk {
const static std::unordered_map<std::string, DxbcOptions> g_dxbcAppOptions = {{
}};
DxbcOptions getDxbcAppOptions(const std::string& appName) {
auto appOptions = g_dxbcAppOptions.find(appName);
return appOptions != g_... |
57d5bb7c3cbde247e97969e2325c0d94b2d82fb5 | 6191f34339148c148d591e1d7155fccf26781afe | matheusalb/listaAlgoritmos | /L7.cpp | C++ | cpp | 4,222 | no_license | #include <bits/stdc++.h>
using namespace std;
class Rainha{
public:
int r, c;
Rainha(int x, int y){
this->r = x;
this->c = y;
}
};
vector<vector<int>> sol2d;
vector<vector<int>> solRestrita;
vector<vector<vector<int>>> sol3d;
bool conflict(Rainha a, Rainha b){
... |
b14ae352722357381b4381968758c27eeaea0c5e | 6ed58c8f8ec37e830604db7fa24d26368d8b3332 | ariabonczek/DSAProject | /src/Physics/PhysicsContext.hpp | C++ | hpp | 888 | no_license | #pragma once
#include "../Config.hpp"
#include "ContactContainer.hpp"
#include "Grid.hpp"
#include <unordered_map>
#include <vector>
NS_BEGIN
class Collider;
class Rigidbody;
class GameObject;
struct PhysicsObject
{
Collider* collider;
Rigidbody* rigidbody;
};
/// <summary>
///
/// </summary>
class PhysicsConte... |
6de97ffedf5f1928cc79f4dd8aded5d77dc4ce85 | 81d5f15ba64a2104b532f387bd313666af880127 | antiqe/RType | /Engine/HParallax.hpp | C++ | hpp | 405 | no_license | #ifndef _HPARALLAX_H_
# define _HPARALLAX_H_
#include "AParallax.hpp"
namespace Engine
{
class HParallax : public AParallax
{
public:
HParallax(std::string const& name, std::string const& file, float z = 1.0f, Ultra::Color const& color = Ultra::Color(255));
~HParallax();
void initialize();
void update();
... |
513f9d4d16c1881eb2f8b57ad23ea5ed7fe2b121 | 039ca824f3235ab1aadcf36d56e7047607d8b82d | nachobit/CodePLUS | /MP/GesFicheros/mezclar_fich_ordenados.cpp | C++ | cpp | 1,380 | no_license | #include <fstream>
#include <iostream>
#include <cstdlib>
using namespace std;
/************************************************/
int main (int argc, char **argv)
{
double x1, x2;
ifstream fi_1, fi_2;
ofstream fo;
if (argc < 3)
{
cout << "Error: Num. de params. erroneo\n";
cout << ... |
369ab710f35fd10676d3e0852bb24be5e73279cb | 459b85b54862848e843dcd468cbbd4275d5db05a | Ju-nic2/Algorithm | /BaekJoon/1389.cpp | C++ | cpp | 1,730 | no_license | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
class Kevin
{
private:
vector<vector<int>> relations;
vector<bool> visit;
vector<int> depth;
queue<int> q;
public:
Kevin(const int& num)
{
for(int i = 0; i < num; i++)
relations.push_ba... |
85fb9b5496f85ea3ba8511f8a3a53f6f4a94ec74 | 30685720ae49c2d94d942c492a47988376214d07 | SWG-Source/client-tools | /src/engine/shared/library/sharedDebug/src/shared/RemoteDebug_inner.cpp | C++ | cpp | 16,623 | no_license | // ======================================================================
//
// RemoteDebug_inner.cpp
// copyright 2001 Sony Online Entertainment
//
// ======================================================================
#include "sharedDebug/FirstSharedDebug.h"
#include "sharedDebug/RemoteDebug.h"
#include "sharedD... |
0060e18f84451378ed68effcab607299e842ac06 | 8af536bc155ece1a8a2d3304aa5cfa15a21f6c99 | SoInstant/competitive-programming | /dunjudge/pokeadd.cpp | C++ | cpp | 1,269 | no_license | #include <bits/stdc++.h>
using namespace std;
#define int long long // ~~~LONG LONG MAN~~~
#define inf_ll 1e18
#define inf_int 1e9
#define NEWLINE cout << "\n"
int x, y, b;
vector<int> to_base(int number, int base) {
vector<int> converted_number;
if (number == 0) converted_number.push_back(0);
while(number > 0... |
a1bf84fa52de6aefb63489b643e8f0bd3a1441c2 | 9fb306331908254918e6e64e8c92cb207a91a5c5 | M-Quadra/LeetCode-problems | /lcci/16.21/sum-swap-lcci.cpp | C++ | cpp | 704 | permissive | class Solution {
public:
vector<int> findSwapValues(vector<int>& array1, vector<int>& array2) {
int dif = 0;
for (int v : array1) dif += v;
for (int v : array2) dif -= v;
if (dif&1) return {};
std::sort(array1.begin(), array1.end());
std::sort(array2.begin(),... |
b5f4cf55466598748793ab9b269ed633a8ddc95b | 58a7a39f8474ff380237d2b99dcf8e61b33e3163 | tittycoin-test/tittycoin | /src/bitcoinrpc.cpp | C++ | cpp | 119,493 | permissive | // Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Copyright (c) 2011-2012 The Litecoin Developers
// Copyright (c) 2013 adam m.
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
... |
f9e052c5a1dce5a4903b38a3a7a8db20ab2b6331 | da2bcc4c7b4de9387c69e8efbce424549c7573ba | schinmayee/nimbus | /applications/physbam/physbam-lib/External_Libraries/Archives/boost/tools/bcp/fileview.cpp | C++ | cpp | 2,625 | permissive | /*
*
* Copyright (c) 2003 Dr John Maddock
* Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
* This file implements the fileview class
*/
#include "fileview.hpp"
#include <ve... |
facc700a253e28d90390b133b68e00ec959f041d | 342bb0285231b829d88a8a8001f58baa1443bd93 | jigpu/sdrangel | /sdrbase/webapi/webapirequestmapper.cpp | C++ | cpp | 81,032 | no_license | ///////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2017 Edouard Griffiths, F4EXB. //
// //
// Swagger server adapter interface ... |
d02a8beae96809fe860b31215c3241e7be6cdaa0 | 9abc2e43c09c01f8f88a7ec4a1db0144890f8dd6 | mtonin/gestcassa | /src/dettagliarticolo.cpp | C++ | cpp | 14,046 | no_license | #include "dettagliarticolo.h"
#include <QtSql>
#include <QLocale>
#include <QInputDialog>
#include <QComboBox>
DettagliArticolo::DettagliArticolo(QWidget *parent) :
QWidget(parent), articoloBtn(NULL)
{
setupUi(this);
QDoubleValidator* validator = new QDoubleValidator(0, 99.99, 2, prezzoArticolo);... |
f3eb5f5242050a9d1458babd6e365228f08b9370 | f2fe36dea485414403eb5e38db3204e53de3c48c | mehranagh20/ACM-ICPC | /codecup/e/e.cpp | C++ | cpp | 2,976 | no_license | //In The Name Of God
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<string> vs;
typedef pair<int, int> ii;
typedef pair<int, ii> iii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef vector<vv... |
93342d48f66235c44788e019ceb58801844caf59 | 588d280bb7305895b4965acf8e91a4e0d0d1e772 | yangdazhao/LogExt | /LogExt/Src/StackWalker.cpp | C++ | cpp | 27,091 | no_license | /**********************************************************************
*
* StackWalker.cpp
*
*
* History:
* 2005-07-27 v1 - First public release on http://www.codeproject.com/
* http://www.codeproject.com/threads/StackWalker.asp
* 2005-07-28 v2 - Changed the params of the cons... |
7684bc2e6176c6edb5fa2f51cc139f15cdeee850 | e7fac33ca93ae975ee684093099e348e707c3016 | chenghuang66/Frenet_Path_Planning | /Formal_version/include/origin_frenet/orgin_frenet.hpp | C++ | hpp | 669 | no_license | #include "../cal_frenet_candidates.hpp"
// #include "polynomials.hpp"
// #include <vector>
//#include "parameter_read.hpp"
/*
Detailed description of calculating path candidates based on original frenet paper
Input:
current speed c_speed
current lateral distance c_d
current lateral velocity c_d_d
cur... |
55e2a99c957334d3ad970b4272dd83dbe8b081cf | 3a1905b902f631a71aa92d56fe9f4dff108cad96 | zzzmfps/PAT | /Basic-Level-Practice/1013 数素数 (20).cc | C++ | cc | 910 | no_license | #include <iostream>
using namespace std;
static int x = []() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
return 0;
}();
class Solution
{
private:
int m, n, *primes;
public:
Solution()
{
cin >> m >> n;
primes = new int[n]{2};
for (int i ... |
299050475d9b6659d39a9d8e4e919e3a6eff75c3 | 269b94b9ea925d35195641dac361ba002e6e702c | DZoin/BattleTanks | /BattleTanks/HUD.cpp | C++ | cpp | 1,164 | no_license | #include "HUD.h"
#include "Actor.h"
#include "Canvas.h"
HUD::HUD() {}
HUD::HUD(Canvas &canvas, Player &player, Player& player2)
{
_player1 = player;
_player2 = player2;
_healthBarSprite1 = SpriteActor(canvas, "Content/Sprites/HealthBar.png", 0, 40, 64, 8, 0, 0);
_healthBarSprite2 = SpriteActor(canvas, "Content/S... |
997159a2620a395a523b4fa488e587f3c5926efe | 867248b97fcc3c1b405990f45bd7eb569de68fcf | jimmyat2023/Firemonkey | /Embarcadero/Berlin/CPP/RegExpression/CppRegExFMX.cpp | C++ | cpp | 821 | no_license | //---------------------------------------------------------------------------
#include <fmx.h>
#ifdef _WIN32
#include <tchar.h>
#endif
#pragma hdrstop
#include <System.StartUpCopy.hpp>
//---------------------------------------------------------------------------
USEFORM("Main.cpp", Form2);
//--------------------------... |
b21c61e23f5c795c5b72ce2718b34ba41f40645d | 3c63d940b6f62a6397a8c7db4d7ca13026692be2 | Codinator29/LeetCode | /RemoveDuplicatesFromSortedArray.cpp | C++ | cpp | 641 | no_license | /*
https://leetcode.com/problems/remove-duplicates-from-sorted-array/
Given a sorted array nums, remove the duplicates in-place such that each element appears only once and returns the new length.
Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra me... |
e08c7095e4d567cd71921aa8043bdcc4025f1537 | 7c80ef6367d9f4f6f0e227cbafe4cae094f35d83 | wtrsltnk/MeshCraft | /source/CView3D.cpp | C++ | cpp | 8,001 | no_license | #include "CView3D.h"
///////////////////////////////////////////////////////////////////////////////////////////
// Constructor en Deconstructor
///////////////////////////////////////////////////////////////////////////////////////////
CView3D::CView3D()
{
m_hDC = NULL;
m_hRC = NULL;
}
CView3D::~CView3D()
{
... |
91063e4d79dd6956f6a4ae0a5bcf5cc1dad5be8d | f6db3d005672277612b0e9204e0b6f0d40538f76 | ZhekLu/Yandex-Algorithms-Training | /contest5/H.cpp | C++ | cpp | 906 | no_license | #include <iostream>
#include <unordered_map>
using namespace std;
int main()
{
unsigned symbolNum, maxDuplicateNum;
cin >> symbolNum >> maxDuplicateNum;
char* str = new char[symbolNum + 1]{' '};
unordered_map<char, int> maxSubStr;
int maxSubLen = INT32_MIN, bestL = 0;
int l, r;
for(l = 0... |
618aab46a4784d7b22c3ceba3936ca90a8e75642 | 4d958fea954609edca217181bb126c83af4fe87f | otcshare/chromium-src | /device/fido/cros/discovery.cc | C++ | cc | 1,252 | permissive | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device/fido/cros/discovery.h"
#include "base/bind.h"
#include "base/threading/sequenced_task_runner_handle.h"
namespace device {
FidoChromeOS... |
8fab9f34cf919a7e549181bf41fad875ecc12755 | 3ae73551c56ea2ed08a35466ee551fe25a263fc8 | Sarthakshah30/TopCoder-Solutions | /PilingRectsDiv2.cpp | C++ | cpp | 4,641 | no_license | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmat... |
0a115f6d1950a2d34ab531d977a08f9922bbe428 | b6e82f831726eafe043c2eead69c42385a25b7f4 | jjzhang166/WinNT5_src_20201004 | /NT/ds/security/csps/cryptoflex/slbcsp/cryptctx.cpp | C++ | cpp | 23,109 | no_license | // CryptCtx.cpp -- Cryptographic Context class implementation
// (c) Copyright Schlumberger Technology Corp., unpublished work, created
// 1999. This computer program includes Confidential, Proprietary
// Information and is a Trade Secret of Schlumberger Technology Corp. All
// use, disclosure, and/or reproductio... |
53c559692dd301bba157a21e3d317d2b9c6fd69b | 45bf2853f338d573769ff6686fb68e48d9ce625f | WiZFramework/BaseCross64 | /FullSample403/GameSources/GameStage.cpp | C++ | cpp | 3,924 | no_license | /*!
@file GameStage.cpp
@brief ゲームステージ実体
*/
#include "stdafx.h"
#include "Project.h"
namespace basecross {
//ビューとライトの作成
void GameStage::CreateViewLight() {
auto PtrView = CreateView<SingleView>();
//ビューのカメラの設定
auto bkCamera = App::GetApp()->GetScene<Scene>()->GetBackupCamera();
if (!bkCamera... |
38d33d0ee86c6d926fdf51b1e105b4f83e5b24be | 8fdd0455618994b37c14c8d7b48682a548d8b675 | PFEM/Kratos | /applications/SwimmingDEMApplication/swimming_DEM_application.cpp | C++ | cpp | 7,390 | permissive | //
// Project Name: Kratos
// Last Modified by: $Author: Guillermo Casas, gcasas@cimne.upc.edu $
// Date: $Date: $
// Revision: $Revision: 1.3 $
//
//
// System includes
// External includes
// Project includes
#include "includes/define.h"
#include "includes/variables... |
9c376f25e527d3d2c25330c722df5cec4897c05d | 93def6a33688c087b8793ac306ad5a96bcc62c9d | oceanjack/TuringCup | /Matrix/cursor/cursor.cpp | C++ | cpp | 2,136 | no_license | #include "cursor.h"
#include <math.h>
Cursor::Cursor(char *p, char *p2)
{
path = p;
path2 = p2;
}
Cursor::~Cursor()
{
//Cursor_Release();
}
bool Cursor::Cursor_Initiate()
{
tex = hge->Texture_Load(path);
if(!tex)
{
MessageBox(NULL, hge->System_GetErrorMessage(), "Error", MB_OK | MB_ICONERROR | ... |
2c7b2eeec97af1d89314beeaad33285af1ed4e33 | 4104ea51872a3f7886df72177b049663441dd996 | ezagainov/releases-comm-central | /mailnews/extensions/mailviews/src/nsMsgMailViewList.cpp | C++ | cpp | 9,912 | no_license | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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://mozilla.org/MPL/2.0/. */
#include "nsMsgMailViewList.h"
#in... |
78b6efdd2ea6d5f4f1b6ecf11885f4be1ecda3ad | 0e68223c84de098fee0a1e6496485a16ab7c6e90 | BekzhanKassenov/olymp | /codeforces.com/Contests/174 div 2/A/A.cpp | C++ | cpp | 1,102 | no_license | /****************************************
** Solution by Bekzhan Kassenov **
****************************************/
#include <iostream>
#include <cstdio>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <map>
#include <set>
... |
7036308d9dcbe5a5d4b671661950200262ed330c | b64dc82d88dae6d6fa35f840ac94af82d3647724 | PythonYXY/Cpp-How-To-Program-9E | /Chapter05/exercises/5.20/ex_520.cpp | C++ | cpp | 1,466 | no_license | /*
* =====================================================================================
*
* Filename: ex_520.cpp
*
* Description: Exercise 5.20 - Pythagorean Triples
*
* Version: 1.0
* Created: 07/04/16 17:39:49
* Revision: none
* Compiler: g++
*
* Author:... |
4cd2f8c181261a49e85eb9270c457af782d19196 | b0e0d609b1459bd5821b588b411849a816f9c379 | wanghongsheng01/of_runtime_actor | /Ec_WispFlow/oneflow/core/actor/actor_message.cpp | C++ | cpp | 3,338 | no_license | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... |
0b3de1a64766862bdfe691e8a53c46833025c1f2 | 5db66b24d97cb3206516d2e68564b1495ba23fed | Graplon/HA6-gui | /src/framedata_load.cpp | C++ | cpp | 18,747 | no_license | #include <cassert>
#include <iostream>
#include "framedata_load.h"
#include "misc.h"
TestInfo test;
void TestInfo::Print(const void *data, const void *data_end)
{
std::cout <<filename<<" "<<seqName<<" "<<seqId<<":"<<frame<<"\t";
std::cout <<"Offsets: "<<(uint64_t)((const char*)data_end - (const char*)data) << "\n";... |
ef55208f52b2a93633b36e9da4d021f2a38e4ce0 | 8e23afa745ad0e35c7df8dae79b5b9a427bec92e | Sean-Lan/leetcode | /algorithms/friendCircle/friendCircle2.cpp | C++ | cpp | 2,035 | no_license | /**
*
* Sean
* 2017-08-08
*
* https://leetcode.com/problems/friend-circles/description/
*
* There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct friend of B, and B is a direct friend of C, then A is an indirect frie... |
71817c80c7912be20d2b320089e649dc9bcfce1b | 51087f8001769cf9181b0ad99031a0d08bde66e7 | tssavita/geeksforgeeks_topicwise_practice | /dynamic-programming/intermediate-problems/longest-zig-zag-subsequence.cpp | C++ | cpp | 783 | no_license | #include <iostream>
using namespace std;
int zz_length(int *arr, int n) {
int cache[n+1][2];
for (int i = 0; i <= n; i++)
cache[i][0] = cache[i][1] = 1;
int result = 1;
for (int i = 1; i < n; i++) {
for (int j = 0; j < i; j++) {
if (arr[i] > arr[j])
cache[... |
e3331bfed989f69185ed15680b16277951904e5c | 3626c20d596ac92a1bfe8d98c783f9d6d141d1c4 | r0mai/nng-2015 | /punchcard_sorting/boost/utility/declval.hpp | C++ | hpp | 1,860 | no_license | // declval.hpp -------------------------------------------------------------//
// Copyright 2010 Vicente J. Botet Escriba
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
#ifndef BOOST_UTILITY_DECLVAL_HPP
#define BOOST_UTILITY_DECLVAL_HPP
#include "boost... |
40b91a1e53e7bddb43ea638607d94301663e6882 | 59b83edce804a63c79b078793317f69efe08e702 | wqren/fisher | /fisher_net/fisher_wmean_detector.cxx | C++ | cxx | 11,601 | no_license |
#include "fisher_detector.h"
#include "simd_math.h"
#ifndef EXP_MU
#define EXP_MU 0.013
#endif
/////////////////////////////////////////////////////
//description of the parameters:
// x = vector({sift1}, {sift2}, ...)
// lc = vector({x1, y1}, {x2, y2}, ...)
// im_size = {width, height}
// s... |
45f32fba3256c6325a4dbb997016369a8bfde63b | e2286342b4a393d650e828a0f864dd15f05f22fd | jinycoin/jinycoin | /src/utiltime.cpp | C++ | cpp | 3,460 | permissive | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2019 JINY developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licen... |
8d14f236197c68b6a12c64565d6c3aa3c015df04 | 0ac66f2727c13750cdb0606aeaaf600114008b44 | Descendant-XI/system_core | /init/builtins.cpp | C++ | cpp | 51,525 | permissive | /*
* Copyright (C) 2008 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... |
84626e37aec11e7d39e7ababc74b341187185a69 | 10ba9b61c6f5f0e450dfc5c54826c88490f4872b | theotheradamsmith/algorithm-practice | /notecard_life/3_ch/3_3.cpp | C++ | cpp | 3,760 | no_license | #include <list>
#include <vector>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
class SubStack {
public:
SubStack(int cap);
bool empty();
void push(int n);
int pop();
int getSize();
bool atCap();
void print();
private:
int cap;
int size;
std::list<int> stack;
};
SubStack::SubStack... |
a5d28cdecfa9337927f41f27b9e9d27192a7ecac | 75309578e7fe46d1d8429fd7997443b40b57bfcb | nichubbard/pr228b-analyser | /analysis/config.cpp | C++ | cpp | 3,680 | no_license | #include "config.h"
#include <algorithm>
#include <fstream>
#include <iostream>
#include <sstream>
AnalysisConfig* AnalysisConfig::instance = nullptr;
static bool get_bool(std::string value)
{
std::transform(value.begin(), value.end(), value.begin(), ::tolower);
if (value == "yes" || value == "true")
ret... |
b1494aaafd9672e3b513cc92f5311c10b9b23c0d | d45c5b8e6fd68d9f430d4fa08e75a826435923aa | CU-0xff/juliet-cpp | /000/095/617/CWE36_Absolute_Path_Traversal__char_connect_socket_ifstream_53c.cpp | C++ | cpp | 1,770 | no_license | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE36_Absolute_Path_Traversal__char_connect_socket_ifstream_53c.cpp
Label Definition File: CWE36_Absolute_Path_Traversal.label.xml
Template File: sources-sink-53c.tmpl.cpp
*/
/*
* @description
* CWE: 36 Absolute Path Traversal
* BadSource: connect_socket Read data using ... |
4a22398b7fe7f38c0ea3c3511d777e07b61eb483 | 86ac42afbcebd02cf3c4982b3d1bc350ff2f55dc | otcshare/chromium-src | /components/printing/common/printing_param_traits.cc | C++ | cc | 1,446 | permissive | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/printing/common/printing_param_traits.h"
#include "base/containers/flat_map.h"
#include "base/memory/read_only_shared_memory_region.... |
23580e7b867df4bbde5af425a3e915fc6c41b474 | 81cc353495f295d6b93c8d90c6f3a7025203c6f1 | DavidIoner/ESPDateTime | /src/DateTime.cpp | C++ | cpp | 3,856 | permissive | #include "DateTime.h"
// static time_t getCurrentTime() {
// need #include <chrono>
// using std::chrono::system_clock;
// auto now = system_clock::now();
// std::time_t now_time_t = system_clock::to_time_t(now);
// }
static time_t validateTime(const time_t timeSecs) {
auto bootSecs = timeSecs - (time_t)(mill... |
fe7bd6c2c03fbf4aa3fcd5772b987b2aa09f3e09 | 6c7a75cfb8d2a340ffd34d41daf7bb6e6430d2d5 | Szonek/cldnn-fork | /clDNN-master/kernel_selector/core/actual_kernels/fully_connected/fully_connected_kernel_yxfb_ref.cpp | C++ | cpp | 1,675 | permissive | /*
// Copyright (c) 2016 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... |
a912196433886c6d70490e92b28c9fd100c8773d | a7d56e371113ee4a5d81cb1d4336598bf19b7985 | brave/chromium | /ash/wm/overview/overview_item.cc | C++ | cc | 63,264 | permissive | // Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/wm/overview/overview_item.h"
#include <algorithm>
#include <utility>
#include <vector>
#include "ash/accessibility/accessibility_controller_impl.h"
#include "as... |
b3312a3e66035af738f704e88f1ba01eec482b12 | 9b02082fb741a21e3e75a6cc0fa417d2019bc3df | windystrife/UnrealEngine_NVIDIAGameWorks | /Engine/Plugins/Experimental/AlembicImporter/Source/ThirdParty/Alembic/alembic/lib/Alembic/AbcCoreHDF5/CacheImpl.cpp | C++ | cpp | 5,573 | permissive | //-*****************************************************************************
//
// Copyright (c) 2009-2012,
// Sony Pictures Imageworks, Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with... |
c4a76ff16cbf08c126019349a86974264e603a70 | 953d762b7603517e7aa3d20566a9992597750e26 | asunesara/CSCE121 | /Magic_Spells /dada.cpp | C++ | cpp | 2,227 | no_license | /*
DADA function definitions
*/
#include <iostream>
#include <cmath>
#include "dada.h"
using std::cout, std::endl, std::abs, std::sqrt;
int amax(const double x[], const unsigned int len)
{
double value;
double compare;
int answer=0;
compare = abs(x[0]);
if((int)len ==0)
{
return -... |
2645bfee21c8f023857bc035ebd5a387690ac0ec | 35785ed303e29a2bdb569a25223836a769c659a5 | brunolauze/openpegasus-providers | /src/Providers/UNIXProviders/tests/UNIXProviders.Tests/UNIX_ObjectManagerCommunicationMechanismFixture.cpp | C++ | cpp | 3,680 | 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... |
d834200e5d996f26b0b94061428c20d6a518fae6 | c3090160be0523c9d1468034c29bf2b0fcb64228 | imoverflow/mycode | /cccc/K/main.cpp | C++ | cpp | 547 | no_license | #include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
char s[100005];
int main()
{
scanf("%s",s);
int len=strlen(s);
char now=0;
int cnt=0;
for(int i=0;i<len;i++)
{
if(now!=s[i])
{
if(now==0)
{
now=s[i];
... |
b51bbc9b8995fe91f5384f9e0c52bbb7a506c3da | 15f0f9d8ef852f511ab1c5cd4661037c64ff93da | wyrover/WorkPlatForm | /PeraTask/Common/CallRunTimeIce.cpp | C++ | cpp | 390 | no_license | #include "stdafx.h"
#include "CallRunTimeIce.h"
#include "Tools.h"
#include "PeraIceRunRobot.h"
static CPeraIceRunRobot s_peraIceRunRobot;
BOOL CallRunRobot( std::string strInfo, int nProcessId/* = 0*/ )
{
ZTools::WriteZToolsFormatLog("CallRunRobot\n%s", strInfo.c_str());
ZTools::MBToUTF8(strInfo);
BOOL bResult ... |
a39f36aaba6c19524e323f0b9eaa5d0bf7dd9bd5 | a24f335116b1f2e981946887a91dbf090f0e65c3 | kwanliang/SP-1 | /SP1Framework/game.cpp | C++ | cpp | 4,217 | no_license | // This is the main file for the game logic and function
//
//
#include "game.h"
#include "Framework\console.h"
#include <iostream>
#include <iomanip>
double g_dElapsedTime;
double g_dDeltaTime;
bool g_abKeyPressed[K_COUNT];
COORD g_cCharLocation;
COORD g_cConsoleSize;
//----------------------------------------------... |
93a167ba0b1d59149be41f519fd4915fd4cfca6d | 39fc3bbf7e82885b024596e14725d6835e1d581a | 0793928980/UE4 | /Bai322/Bai322/main.cpp | C++ | cpp | 1,395 | no_license | //
// main.cpp
// Bai322
//
// Created by MACBOOK PRO on 10/15/20.
// Copyright © 2020 MACBOOK PRO. All rights reserved.
//
#include <iostream>
using namespace std;
void NhapMaTran(int a[][100],int n, int m)
{
int i,j;
//n la cot, m la hang.
for(i=0;i<m;i++)
{
for(j=0;j<n;j++)
{
... |
7a0d54c216bf87feafbff083d83c4a53e15fbe2a | 5b6f921f040b278864a2bb30401b63d2a0a9128d | ouroboros-project/ouroboros | /languages/python/opwig/utilities.cxx | C++ | cxx | 1,218 | permissive | #include <python/opwig/utilities.h>
#include <opwig/md/function.h>
#include <opwig/md/variable.h>
#include <string>
namespace opa {
namespace python {
using std::string;
using opwig::md::Ptr;
using opwig::md::MetadataObject;
using opwig::md::Function;
using opwig::md::Variable;
string GetWrappedNestedName(const Ptr<... |
2d5443b9e316e617077e8ca93767425fbee4f389 | 2c2e8cc3279f87469c9771f4c9f3ca869ff5ec96 | SakshiWadhwa/CPP | /adjcntdiff.cpp | C++ | cpp | 498 | no_license | #include<iostream>
using namespace std;
#include<vector>
#include<numeric>
#include<algorithm>
int main()
{
vector<int>::iterator it;
vector<int>result(4);
vector<int>v;
vector<int>v2;
for(int i=0;i<4;i++)
{
int x;
cin>>x;
v.push_back(x);
}
//adjacent_difference(v.begin(),v.end(),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.