blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65fd85efad5ba56c384027be80d1a9ea5e20c948 | 0faf14a347e134a82a5d406c7e5e7f5f2ded0cdd | /PlatformLib/Graphics/Vulkan/include/VulkanRenderPass.h | 02c63aa67bab42fbbe5de505182a8758fa526ece | [
"MIT"
] | permissive | monge13/Rev | 7fa177dc816afc88ffc8ea49038444697aa121ff | db3b71a27659a2652bdd50069a881702b3ae059e | refs/heads/master | 2022-12-13T04:07:48.451662 | 2020-07-25T13:06:52 | 2020-07-25T13:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 779 | h | VulkanRenderPass.h | #ifndef __VULKANRENDERPASS_H__
#define __VULKANRENDERPASS_H__
#ifdef _USE_VULKAN
#include "revDevice.h"
#include "revMaterial.h"
#include "revRect.h"
#include "VulkanCommandList.h"
class VulkanSwapChain;
class VulkanRenderPass
{
public:
VulkanRenderPass();
~VulkanRenderPass();
bool Create(revDevice* dev... |
1d914618d8ea0a53e9443c72ef6e3dd74ee41363 | 3665f9d8c2f4e8d162970916f7eb4c6a1443ae57 | /dfg.cpp | bcba28ccefb666dd2c67620e1b08af033612d931 | [] | no_license | snehad1998/DSPD | f1dfa13284d30d1e6fea74e19ea566541a1a8e43 | 03b56b4e617d877c368b56e59fcb2e71808b1619 | refs/heads/master | 2022-10-06T00:12:22.507134 | 2020-06-07T07:05:02 | 2020-06-07T07:05:02 | 270,221,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | dfg.cpp | output(struct process_manag_system pmc[],int n)
{
printf("process id\tarrival time\trun time\tdeadline\tpriority\tprocess class\n");
printf("--------------------------------------------------------------------------------------------------------------------------------------------\n");
int i;
for(i=o;i<n;i++)
... |
81d0778f8202fc9004ee17b19ade4b6bf86caad8 | b85e261325bb5bee6bc498ed234c38a52e4a5839 | /leetCodeProblem/T40.cpp | 56df41d3e63fbade4e5bc69c422d904a04148cb6 | [] | no_license | xuguocong/LeetCodeAnswer | 62d9facb0b0cc23e1e3921092c5a1a20f1ead95f | 9dd585c1eab4c504ad72d788850944c504977c4c | refs/heads/master | 2022-11-10T03:09:46.669988 | 2020-06-29T13:39:16 | 2020-06-29T13:39:16 | 242,729,910 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,715 | cpp | T40.cpp | // 40. 组合总和 II 给定一个数组 candidates 和一个目标数 target ,找出 candidates
// 中所有可以使数字和为 target 的组合。
// candidates 中的每个数字在每个组合中只能使用一次。
// 说明:
// 所有数字(包括目标数)都是正整数。 解集不能包含重复的组合。 示例 1 :
// 输入 : candidates = [10, 1, 2, 7, 6, 1, 5],
// target = 8,
// 所求解集为 : [[1, 7], [1, 2, 5], [2, 6], [1, 1, 6]] 示例 2 :
// 输入 : c... |
74040cf1b6d64e853fbd7c80d8c0fa9de3026df1 | 58976a3ce086865c4ab91e700d2a19684fa5f232 | /common/log.h | 6a0e142edcecbd1a8ff95dd3a8f252ece1bae28e | [
"Apache-2.0"
] | permissive | zhangdongai/table_reader_Advanced | a8a1de3d22be06ec215c93db3fb1a187ef7cb950 | 21352090e868503b777ded289ed4a1895e39cea7 | refs/heads/master | 2020-05-25T14:16:43.017182 | 2019-05-22T12:45:44 | 2019-05-22T12:45:44 | 187,840,905 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,254 | h | log.h | #ifndef COMMON_LOG_H
#define COMMON_LOG_H
#include <iostream>
#include <assert.h>
#define DEBUG_LOG(...) \
{ \
char debug_log[1024] = {0}; \
snprintf(debug_log, sizeof(debug_log), __VA_ARGS__); \
std::cout << "Info: " << debug_log << std::en... |
b002bed75ed8a5fd45a9b409a44fde222ea94579 | fc56fa52dcd40a640237be19b3faeb7c4339f4ea | /meta-heuristics-1.3/meta-heuristics-1.3/SCHED/schedInsertion.h | b31d9fd74858fec6cef9b70aec3035d6f6b80eff | [] | no_license | nghiabui/Metaheuristic | 592e9b4c25cfd11f5fa610031141c6b8186f90fb | 9852941f9fde6981a15e1897b046b07f205d0adb | refs/heads/master | 2021-01-10T18:49:27.746091 | 2015-08-20T02:44:48 | 2015-08-20T02:44:48 | 40,337,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,090 | h | schedInsertion.h | /*
* File: schedInsertion.h
* Author: Trung Nghia
*
* Created on April 15, 2014, 10:05 AM
*/
#ifndef schedINSERTION_H
#define schedINSERTION_H
#include "schedDefine.h"
#include "schedNeighbour.h"
class schedInsertion : public schedNeighbour {
public:
// Construction
schedInsertion(unsigned int la... |
eed46a0e7b3688de7520bc8a4829a1fb5c88db36 | fe911a3efea8558ae122b570c2a8c2a5c3c48da6 | /GraphFlows/HyperCube.cpp | c45889bad66b77841f697ffdba22394bf2a3ecdb | [] | no_license | Ariello05/Algorithms | 9bfdee3ae1a8734fe60f882905354c9e9146511d | 8c504b8be9ac47f0142784dba7c2404143b8936a | refs/heads/master | 2021-07-20T09:04:11.120943 | 2020-06-07T15:29:56 | 2020-06-07T15:29:56 | 176,267,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,247 | cpp | HyperCube.cpp | #include "HyperCube.h"
#include <utility>
#include <random>
#include <time.h>
#include <boost/random.hpp>
int getH(int x) {
unsigned int c; // c accumulates the total bits set in v
for (c = 0; x; c++)
{
x &= x - 1; // clear the least significant bit set
}
return c;
}
int next(int initial, int current) {
if (i... |
a24d1726a7479c5695dbd33357a249186bfd6579 | 157fd7fe5e541c8ef7559b212078eb7a6dbf51c6 | /TRiAS/Global Includes/TRiAS Includes/ScopeVar.h | 27d703d827332344872e154ecbfef232931abe4f | [] | no_license | 15831944/TRiAS | d2bab6fd129a86fc2f06f2103d8bcd08237c49af | 840946b85dcefb34efc219446240e21f51d2c60d | refs/heads/master | 2020-09-05T05:56:39.624150 | 2012-11-11T02:24:49 | 2012-11-11T02:24:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,096 | h | ScopeVar.h | // Wrapper zum Zwischenspeichern eines Wertes
// File: ScopeVar.h
#if !defined(_SCOPEVAR_H)
#define _SCOPEVAR_H
#include <LockCS.h>
template<class T>
class CScopeVar :
public CComObjectThreadModel::AutoCriticalSection
{
private:
T &m_rVar;
T m_oldValue;
bool m_fAssigned;
public:
CScopeVar (... |
9f4c91d5e8229c28179deb55a75591e579a11000 | 6ca6f15ff1f3c76491e2276fbfbd2002369d8adb | /src/Automata.cpp | 83734704c0bb310108bec188fe4cd20e25816c3b | [] | no_license | starfame/mod-task03-automata | e2827a5ff2166d2ccecbcfbc5f1112106cb96b97 | da9b9712732342ca1ee65e0d04153536537751cb | refs/heads/main | 2023-03-29T17:19:48.483213 | 2021-04-03T22:25:40 | 2021-04-03T22:25:40 | 354,381,490 | 0 | 0 | null | 2021-04-03T19:53:11 | 2021-04-03T19:53:11 | null | UTF-8 | C++ | false | false | 1,042 | cpp | Automata.cpp | #include "Automata.h"
using namespace std;
void Automata::returnMoney()
{
cash = 0;
}
void Automata::cancel()
{
state = WAIT;
returnMoney();
}
void Automata::finish()
{
state = WAIT;
returnMoney();
}
void Automata::cook()
{
state = COOK;
finish();
}
void Automata::on()
{
if (sta... |
477b0a5c13c9f91036b13915401a6bea2136237e | e44154034dcf72ff810c64f9e3e54904c75974ed | /src/base/concurrent/Lock.cpp | e509f86147cf9d3dd38dff69d1720001aa4640d0 | [] | no_license | sunshinejunge/neptune | 788371bd10bea3867b7de1aee18d43e6195d0754 | 0ca655e24342b206823957892d7a18f51e97ba47 | refs/heads/master | 2020-12-22T05:26:31.597532 | 2020-02-29T12:56:49 | 2020-02-29T12:56:49 | 236,682,019 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 905 | cpp | Lock.cpp | #include "Lock.h"
namespace neptune {
namespace base {
RWLock::RWLock(ELockMode lockMode)
{
pthread_rwlockattr_t attr;
pthread_rwlockattr_init(&attr);
if (lockMode == READ_PRIORITY)
{
pthread_rwlockattr_setkind_np(&attr, PTHREAD_RWLOCK_PREFER_READER_NP);
}
else if (lockMode == WRITE_PRIORITY)
{
... |
96109e26954a82146634af52dd8c361ed57ebee5 | 8776e5e32be27c16c7f8cd2a9a4259b6fb7a012b | /im_server(branch)/hessian/UploadSubMerchantActionServiceProxy.cpp | 6e980486476bfc1e3ce9e7f70eb2a8995d4c0b64 | [] | no_license | 736229999/im | 970b9754da2e15fd5cdaaed6ba189e7c497e15e3 | dc00c52e77a99fae28df9dba8366e31b578a7831 | refs/heads/master | 2021-01-15T11:11:56.737294 | 2017-06-14T07:56:44 | 2017-06-14T07:56:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | cpp | UploadSubMerchantActionServiceProxy.cpp | // THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT.
#include "LogInterface/ResultInfo.h"
#include "LogInterface/SubMerchantAction.h"
#include "LogInterface/UploadSubMerchantActionServiceProxy.h"
#include "hessian/Call.h"
namespace LogInterface {
LogInterface::ResultInfo
UploadSubMerchantActionServiceProxy::up... |
74d34787dde306a0781185298a8d2efc8c213774 | a1331bcc130e49ae2401d11d49ed5dfb18bdbb83 | /DataStructure/Pila/pila.h | 26f13fb59682d5c298f79018ec73e9abba7b68e5 | [] | no_license | guoyu07/asd-exercises | b80aedbb282d85048323db6af109ce683868bdc0 | 46189135077ea1e25a4f6b391ecd20d1040099e6 | refs/heads/master | 2021-01-19T22:01:36.006015 | 2012-11-03T17:29:33 | 2012-11-03T17:29:33 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 3,035 | h | pila.h | #ifndef PILA_H
#define PILA_H
#include <iostream>
using namespace std;
template <class E>
struct nodo
{
E info;
nodo* next;
};
/* classe per la realizzazione del tipo astratto Pila<Elem>
* rappresentazione mediante sequenze di record e puntatori senza
* duplicazioni; realizzazione con side-effect senza co... |
b6636c281b5c9c5dc429bea21c58c4560af08dfd | a2ef93b3e77ea8ca76005c1e41bfbc7cfd7f2eb1 | /DataSet.h | 61ce70292332b145254adbfb5550a08bbe53fa32 | [] | no_license | PiterPoker/DataBaseLib | 8a9147a70a03d6d707564a30b0eb7449d4f73d0e | 3dbcad30a0eedf027c3bcf70251f385c9659a739 | refs/heads/master | 2020-05-05T08:52:09.901216 | 2020-03-05T22:02:40 | 2020-03-05T22:02:40 | 179,881,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 408 | h | DataSet.h | #include <string>
#include <vector>
namespace DataBase
{
class DataSet
{
private:
static void Path();
public:
static int CreateDataBase(const char* nameDir);
static int DropDataBase();
//, const char* dataBase
static int CreateTable(const char* nameFile);
static int DropTable(const char* nam... |
a1ae02bdfe9f8acfce8403680d3b22b88b95b106 | 70e1090419ad795cfd73dfffc58b645323743bf6 | /TinyTrimention/TinyTrimention/Player.cpp | cab1dd711a3553c25e15ee9077c23346cd038fb2 | [] | no_license | missdielle/trimension | cb34a43b411f1f5e397947ca88b71554c6e3f0b1 | e27972155e973415737337206b11d33b31345997 | refs/heads/fixing-more-cases | 2021-01-10T06:42:43.188629 | 2016-09-11T00:10:11 | 2016-09-11T00:10:11 | 49,557,392 | 0 | 0 | null | 2016-09-05T18:53:26 | 2016-01-13T07:28:48 | C++ | UTF-8 | C++ | false | false | 909 | cpp | Player.cpp | #include "Player.h"
#include <iostream>
Player::Player(){
pipCount = 30; //defensive game as default
}
Player::Player(int number, bool defensive){
this->number = number;
if (defensive == true){
pipCount = 30;
} else
pipCount = 0;
}
Player::~Player(){
}
void Player::removePip(Player *player){
cout << "pla... |
d86bbc83d7942ceb94bb8c8d0a798c2e6159645b | b9126e330922c8b6709590f79e3c37342e0b9972 | /DMOJ/ECOO '19 R1 P4/ECOO '19 R1 P4/main.cpp | 271312fa058ea2e60c3b15055917c070e3563327 | [] | no_license | jjjding2/Competitive-Programming | f61f78db0ab140dc0ffe8783244375b126afecd5 | 0d544e9b74950ddcd5a2467b3465ad2088fdbf97 | refs/heads/master | 2021-07-10T18:07:53.725504 | 2020-09-23T02:21:55 | 2020-09-23T02:21:55 | 199,083,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,286 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
#define scan(x) do{while((x=getchar())<'0'); for(x-='0'; '0'<=(_=getchar()); x=(x<<3)+(x<<1)+_-'0');}while(0)
char _;
#define pb push_back
#define MOD 1000000007
#define MAXN 1000
#define INF 0x3f3f3f3f
#define all(x) (x).begin(), (x).end()
typedef long long ll;
typedef ... |
fd412d95c0439aab5a55e30a89964c538374f897 | 4861067392a62a94eb6754e002c4348cfc378e43 | /src/testlib/qbenchmarkmeasurement.cpp | 99d5b1dd4fa845012ed0691244ceba6c7f33d93b | [] | no_license | qt/qtbase | 10c7d55cfa1e34e4d23c00e96c6199a1657095e1 | 0e5f60a6cae61c5086f25c039a953a5ade5fa471 | refs/heads/dev | 2023-09-01T20:11:09.742148 | 2023-08-31T15:56:57 | 2023-09-01T16:06:27 | 9,880,335 | 2,175 | 1,249 | null | 2023-07-17T10:11:10 | 2013-05-06T06:01:22 | C++ | UTF-8 | C++ | false | false | 1,630 | cpp | qbenchmarkmeasurement.cpp | // Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include <QtTest/private/qbenchmarktimemeasurers_p.h>
#include <QtTest/private/qbenchmark_p.h>
#include <QtTest/private/qbenchmarkmetric_p.h>
#include <QtTest/qbenchmark.h>
#i... |
e69b36d741d55e099c3a932d1b2ce5e7e38cbc87 | c3918b6f6dd5d0aa78483d9e494d8137c0dd4564 | /Server/plugins-dev/LogViewer/LogViewer.cpp | 2b9dfac77c5dfdef53e6a8d66ba5a98bd06e1e12 | [] | no_license | cm226/HTML-Media-Center | 3756ef456ca23453f55fbd6e5780cb9621894481 | 1f47b77c6f3b1f2ef7617debee3386b97efa1330 | refs/heads/master | 2022-08-05T20:44:28.126007 | 2022-05-03T19:31:25 | 2022-05-03T19:31:25 | 3,529,546 | 1 | 1 | null | 2021-08-20T12:42:37 | 2012-02-23T20:28:55 | C++ | UTF-8 | C++ | false | false | 326 | cpp | LogViewer.cpp | #ifndef _LOG_VIEWER_H
#define _LOG_VIEWER_H
#include "../../Server/Framework/Plugin/IPluginDLLFactory.h"
#include "LogViewerPlugin.h"
DLLHELL_API Plugin* makePlugin(CoreModules* framework)
{
return new LogViewerPlugin(framework);
}
DLLHELL_API bool releasePlugin(Plugin* plugin)
{
delete plugin;
return true;
}
... |
daf91460c9f4fb428065228ec493a09643f4af4e | 7c44809cdc2c82800921cc47b3098be4a9c88fc9 | /shawn/src/legacyapps/simple_app/simple_app_message.h | 520c59aa099dadf4461c45b3dbeb76d6ba3650f5 | [
"MIT"
] | permissive | lsfiege/shawnweb | 2563abe3f1f82cdd1fc51b374faa92596f64280a | babeae4525e6d3fc29f66448e3f2603b82398901 | refs/heads/master | 2021-04-25T21:20:44.560960 | 2019-09-30T22:29:41 | 2019-09-30T22:29:41 | 109,342,993 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 413 | h | simple_app_message.h | #ifndef __SHAWN_LEGACYAPPS_SIMPLE_APP_SIMPLE_APP_MESSAGE_H
#define __SHAWN_LEGACYAPPS_SIMPLE_APP_SIMPLE_APP_MESSAGE_H
#include "_legacyapps_enable_cmake.h"
#ifdef ENABLE_SIMPLE_APP
#include "sys/message.h"
namespace simple_app
{
class SimpleAppMessage
: public shawn::Message
{
public:
SimpleAppMe... |
4bdae41fa6826d43f1f7378745162603fe44274f | dc03b672d8a3d6f26ed57ddfeb3277b964ba79f9 | /src/Lib/ADODatabase/MAP_Database.cpp | ba815608fd4c15b88b54bcf35bc599b0a987693d | [] | no_license | 519984307/wcs_changping | 9a6e7194a7b2ec18746604e1aeb6551a81327a0a | cec206ac3e63b27e78eb839921148f2f185895f4 | refs/heads/main | 2023-08-15T07:21:57.379108 | 2021-09-29T05:17:35 | 2021-09-29T05:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,380 | cpp | MAP_Database.cpp | #include "MAP_Database.h"
#include <iostream>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include "stdlib.h"
#include "ADODatabase/DatabaseManage.h"
#include "comm/simplelog.h"
#include <Windows.h>
#include "Manage/Config_Manage.h"
MAP_Database::MAP_Database()
{
}
MAP_Database::~MAP_Database()
{
}
v... |
48a811c764f47895e476af0e8cca40abaa52cb95 | e88cae74028b343ac17f80155bbe5a8030f2f4f6 | /src/hostif/profiles/STBService/Components_XrdkSDCard.cpp | 93993db8e4009d4d160e9734053f0623b7088e99 | [
"Apache-2.0"
] | permissive | rdkcmf/rdk-tr69hostif | 99b590b23e25d6784414a0d3b2c2d559f4b2c9f1 | 86d21415ae132c503c5c4feadef61dbb7f21ba0b | refs/heads/master | 2023-01-29T14:45:15.291840 | 2018-07-30T08:12:22 | 2018-11-02T12:06:34 | 75,827,928 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 28,065 | cpp | Components_XrdkSDCard.cpp | /*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2016 RDK Management
*
* 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 ... |
09887b03971added437244c95e5fa5d8f71c4508 | 780c47c1ea527ebbce7f9cebe92da7cc4175b406 | /test/stages/FileExtensionSwitchTest.cpp | 231fccab7e5ec4853eeacd9a72f557bb4084b5f5 | [
"Apache-2.0"
] | permissive | 343829084/TeeTime-Cpp | 2f67934f735bfb902460071e13def8c320fc0687 | 72d739528d37e6bc9661d05ed11aee8c15a029f7 | refs/heads/master | 2020-03-19T23:21:32.083822 | 2018-06-04T19:52:58 | 2018-06-06T17:05:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,949 | cpp | FileExtensionSwitchTest.cpp | /**
* Copyright (C) 2016 Johannes Ohlemacher (https://github.com/teetime-framework/TeeTime-Cpp)
*
* 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/LICE... |
14c16e98f4403804b22fe7962275ae55a3b48c1b | 6fb9d14510c2be8483e538e34c82298e80dec4df | /Hihocoder 1485 hiho字符串.cpp | d6bab239f9368a9b9d2f41c946a4e338918426c2 | [] | no_license | kuonanhong/Exercise | bc5f8607d4728d327294fead8a97e288b6355caf | 88c949c36ad65f4ea068e077a03dc46cb15d9ecb | refs/heads/master | 2020-03-07T13:12:09.004437 | 2017-10-09T09:10:53 | 2017-10-09T09:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | cpp | Hihocoder 1485 hiho字符串.cpp | /*
描述
如果一个字符串恰好包含2个'h'、1个'i'和1个'o',我们就称这个字符串是hiho字符串。
例如"oihateher"、"hugeinputhugeoutput"都是hiho字符串。
现在给定一个只包含小写字母的字符串S,小Hi想知道S的所有子串中,最短的hiho字符串是哪个。
输入
字符串S
对于80%的数据,S的长度不超过1000
对于100%的数据,S的长度不超过100000
输出
找到S的所有子串中,最短的hiho字符串是哪个,输出该子串的长度。如果S的子串中没有hiho字符串,输出-1。
样例输入
happyhahaiohell
样例输出
5
*/
#include <iostr... |
03fe7f11f335516b3792a909f88a4ae0b24b72da | c60638380ab1a6a01138d467a7c69bd5c0c5e162 | /library/solver/loop/tools/error.hpp | c795a5317fd96d9ba5950d659a5cc542afce1e5d | [] | no_license | kbeling4/1Dsolver | f655eb74381ccfe7e4f40c13ccedc679bb95528f | 361506855e2138bc7828b845e141f650ef3a160a | refs/heads/master | 2020-08-23T17:00:46.897054 | 2019-12-07T18:50:25 | 2019-12-07T18:50:25 | 216,668,885 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | hpp | error.hpp | template<typename T>
double compute_error(T&& scalarP, T&& scalarM, int Nx){
std::vector<double> error(Nx, 0.0);
for( int i = 0; i < Nx; ++i ){
error[i] = std::abs(scalarP[i] - scalarM[i])/scalarP[i];
}
auto err = std::max_element(error.begin(), error.end());
return *err;
}
|
854274be06d880b061a366b256d9a38afc937d0b | 32e1c6071aedd55db0537933e88154f0495294d3 | /tests/theory_expr.cpp | 1491dfb28cc347269024d0c89aa504debf33b14c | [
"MIT"
] | permissive | scalexm/sat_solver | 6e379485f86e29a02f005bf0ab234bb86fcad44d | 0235f76d0a93c4b8ff59071479c8ca139d2e162a | refs/heads/master | 2021-01-21T13:21:12.605209 | 2016-05-17T18:31:00 | 2016-05-17T18:31:00 | 51,093,836 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,083 | cpp | theory_expr.cpp | //
// theory_expr.cpp
// tests
//
// Created by Alexandre Martin on 28/04/2016.
// Copyright © 2016 scalexm. All rights reserved.
//
#include "../solver/expr/theory_expr.hpp"
#include "unwrap.hpp"
#include <sstream>
TEST_CASE("Testing equality expressions parser", "[equality_expr]") {
auto exp = expr::equalit... |
410131bb94b4d68ad95fec07fe392013d75b6fea | 8a082af02614176dd90d32e8c744a87ef5b7e42c | /src/yarrar/tracker/marker/YarrarMarkerParser.h | dbe7f8d4c2991289c7f7020d083040fc96b50eb3 | [
"MIT"
] | permissive | TommyTeaVee/yarrar | 3cda6e643e4eda5bd5a69f52e14f06d787b8d89c | 1480aa3570433da57efa0ea412cbe62c9da0cd0a | refs/heads/master | 2021-10-22T05:54:02.599634 | 2016-05-08T20:33:23 | 2016-05-08T20:33:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | h | YarrarMarkerParser.h | #pragma once
#include "MarkerParser.h"
namespace yarrar
{
class YarrarMarkerParser : public MarkerParser
{
public:
virtual MarkerValue getData(const cv::Mat& image) override;
};
}
|
702ac51c8f78f022dfd36c31f9a0e7b25f6399f5 | cb88576f563bc8ac8096ae3ce1dc92144b3f42e0 | /src/svg/SvgSvg.h | 14231b654cfa8376ae48ecf6cf5faab1bd2e2efa | [
"MIT"
] | permissive | McMurphy-Luo/tinysvg | 5dc731e6ad3b6668da4b1dbca34407825d828928 | cfa79c02c86ef5b9d72c4743b4157ae66e7f6410 | refs/heads/master | 2021-07-12T19:23:28.500892 | 2018-11-25T06:59:27 | 2018-11-25T06:59:27 | 135,597,048 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | h | SvgSvg.h | #ifndef TINYSVG_SVGSVG_H_
#define TINYSVG_SVGSVG_H_
#include "../Config.h"
#include <vector>
#include <memory>
#include <optional>
#include "./SvgBase.h"
NAMESPACE_BEGIN
class SvgSvg {
public:
struct SvgViewBox {
optional<SvgLength> x;
optional<SvgLength> y;
optional<SvgLength> width;
optional<SvgL... |
7a2260d1eb028469b0423631535ff4829468faae | 2f6f544b94e8d8ee9cac401b31c45663158f8a71 | /Arkade/Graphics.h | 47e77b2e6bf60c308cc5ec92de338f28785634bf | [] | no_license | jaydg2000/Arkade | 733a3a09736955a36fff370b45e7a77567236e3c | 4ad0fee5583dc64a685a8e52c9e939a6b8dc3a30 | refs/heads/master | 2023-05-25T05:59:02.602913 | 2023-02-04T20:28:26 | 2023-02-04T20:28:26 | 51,189,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,939 | h | Graphics.h | #pragma once
#include <SDL.h>
#include <SDL_ttf.h>
#include <iostream>
#include <memory>
#include "ArkadeTypes.h"
#include "RGB.h"
#include "Camera.h"
#include "Sprite.h"
#include "SpritePool.h"
#include "Image.h"
#include "Font.h"
#include "Text.h"
namespace arkade
{
struct RGB;
class Graphics {
public:
Graphic... |
7c8bfa649aa4b86587d62e22d7a862ec69cdd9b9 | 5cf22843cd2ab373a81438a4cdf757766aacf9a9 | /raposang_ros/raposang_kinect/raposang_icp/src/demos/demo_icp.cpp | a8ee7bd30058702670f8d27227ad0b6743833b4c | [] | no_license | joaocgreis/socrob-ros-pkg | 594c8460d215ad2897b425d6f816f23c2f96ea23 | cfb45c7af914bb3df7ece3a73c96e7ef4747f3d0 | refs/heads/master | 2021-06-26T21:04:15.351833 | 2013-05-29T14:25:30 | 2013-05-29T14:25:30 | 10,336,756 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,871 | cpp | demo_icp.cpp | /*
* demo_icp.cpp
*
* Created by Pedro Vieira on 15/11/11.
*
*/
#include <iostream>
#include <string>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl_ros/point_cloud.h>
#include "ros/ros.h"
#include "ICPBlock.h"
#include "ICP_plane2plane.h"
#include "ICPInitializationBlock.h"
#i... |
d8fda137587d2e5088f8cbb223340c03466f78f8 | 4a9be6511060bdbedf59e7c5410ceb537be9ee0f | /NodeGates/Node.cpp | e7f34db7d55a145649af7c79bd9f3ec203ad2761 | [] | no_license | sakars/NodeGates | e798a033771b3775ffdf9305d118da36d48f2674 | 060a39e13f047b4f2bcf73aa45d7258cd263b45b | refs/heads/master | 2023-08-11T14:32:56.448399 | 2021-10-06T18:36:57 | 2021-10-06T18:36:57 | 318,834,619 | 0 | 0 | null | 2021-10-06T18:36:58 | 2020-12-05T16:26:41 | C++ | UTF-8 | C++ | false | false | 10,499 | cpp | Node.cpp | #include "Node.h"
#include <fstream>
#include <iostream>
#include <string>
namespace nd {
Node::Node(int i, int o) : input{ i }, output{ o }, nodes{}, dirty{}, type{ 0 }, x{ 200 }, y{ 200 }, name{ "BLANK" } {
}
Node::Node(int typ) : input{ 1 }, output{ 1 }, nodes{}, dirty{}, type{ typ }, x{ 200 }, y{ 200 }, name{ ... |
4857e521e069507c7ca117fa0104c89810f04888 | 2d2ba8ac224a70db9523497b2695e02f190a9be9 | /Pokedex_BST/BinaryNode.hpp | 06e2e29399c19188756bd82fa327c1784a31f3b5 | [
"MIT"
] | permissive | surutagra/Cplusplus-projects | 77925b6f8fff842f1c3aafad65d51a3c7f0c53d6 | 61568ad79e0ba73f531189c3cf61533d3a839361 | refs/heads/master | 2021-12-15T14:59:44.857882 | 2017-08-25T21:20:41 | 2017-08-25T21:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,653 | hpp | BinaryNode.hpp | /* -----------------------------------------------------------------------------
* *
* * File Name: class.cpp
* * Author: Danny Tran
* * Description:
* * Date: 31 March 2017
* *
* ---------------------------------------------------------------------------- */
template<typename ItemType>
BinaryNode<Item... |
b32d15023d5f6576e58aa5040d35b774abb7af04 | 2cf838b54b556987cfc49f42935f8aa7563ea1f4 | /aws-cpp-sdk-signer/include/aws/signer/SignerClient.h | f8678f5fa89ef5a29c2f83a0371ee2263561862a | [
"MIT",
"Apache-2.0",
"JSON"
] | permissive | QPC-database/aws-sdk-cpp | d11e9f0ff6958c64e793c87a49f1e034813dac32 | 9f83105f7e07fe04380232981ab073c247d6fc85 | refs/heads/main | 2023-06-14T17:41:04.817304 | 2021-07-09T20:28:20 | 2021-07-09T20:28:20 | 384,714,703 | 1 | 0 | Apache-2.0 | 2021-07-10T14:16:41 | 2021-07-10T14:16:41 | null | UTF-8 | C++ | false | false | 55,547 | h | SignerClient.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/signer/Signer_EXPORTS.h>
#include <aws/signer/SignerErrors.h>
#include <aws/core/client/AWSError.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/clien... |
b85d8f4ca1d7acce8ecd5ba88a4d6f02bb78af92 | 902aab58f902a488a4f0f0e8e0d6b0bab8334240 | /InProgress/te_round/case/1/k | ec98120d8b4ae294d9d760693c250b776ec59f13 | [] | no_license | Foadsf/OpenFOAM_Tutorials_ | d32d5ef6583f276018f2314a78fe66c730c47109 | 4b914e5112863f2660e15b899dfddfc0ec04f90c | refs/heads/master | 2021-09-12T08:19:21.666536 | 2018-01-24T17:31:13 | 2018-01-24T17:31:13 | 118,747,914 | 1 | 0 | null | 2018-01-24T10:10:08 | 2018-01-24T10:10:08 | null | UTF-8 | C++ | false | false | 135,722 | k | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.1 |
... | |
4418d4dcc83607fb22e7846797cb917fb7d079d7 | 9256bbaad9fb490f50578c0c3ed0905c5f159f39 | /typed_python/DictType.cpp | c6a6ba428dfdcac19e3117ecad7d3fe233c91852 | [
"Apache-2.0"
] | permissive | npang1/nativepython | 97c13ad0892ce0bec83bcd363f7b4ecc973b4afc | df311a5614a9660c15a8183b2dc606ff3e4600df | refs/heads/dev | 2020-04-22T05:57:41.084036 | 2019-02-11T15:59:15 | 2019-02-11T15:59:15 | 170,173,499 | 0 | 0 | Apache-2.0 | 2019-02-11T17:44:55 | 2019-02-11T17:44:46 | Python | UTF-8 | C++ | false | false | 6,713 | cpp | DictType.cpp | #include "AllTypes.hpp"
void Dict::_forwardTypesMayHaveChanged() {
m_name = "Dict(" + m_key->name() + "->" + m_value->name() + ")";
m_size = sizeof(void*);
m_is_default_constructible = true;
m_bytes_per_key = m_key->bytecount();
m_bytes_per_key_value_pair = m_key->bytecount() + m_value->bytecount()... |
382d9bca39a68282b8aea374d2cae241f45ea78d | 1b99bace67ee36bbb3926ee699f8d1821d44db03 | /C-Basics/isPerfect.cpp | df2e52972d4235ec434382b94a4513b9759fc82a | [] | no_license | shantanu2010/missionrnd-c | c06466f9efad11591e04daf0ae038ddee9829866 | 54c74ee1f7f6a528eef961ada1ea56394bd73b3d | refs/heads/master | 2021-08-29T18:30:25.395089 | 2017-12-14T16:14:43 | 2017-12-14T16:14:43 | 114,269,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,387 | cpp | isPerfect.cpp | /*Problem - To find if given number is perfect or not
Description - A perfect number is a number which has the sum of its factors equal to the number itself.For each test case, you will be given two arrays, an input array consisting of numbers and output array of - 1's of the same length. For every index, if the num... |
624a99f6f542e15ca450d6a874640df4513abc55 | 12c1026142942325ebc50a260545571c87500340 | /JY_C++/Backjoon/1213 팰린드롬 만들기.cpp | 951634a0709ffbbe155cb217875a2214a4176df8 | [] | no_license | beyond-algorithms/JiYoung | e9252b7d6d830d0df23847c2e7a53bca16f83430 | 7f94d1ef00abc44371aa8d2f0ae68a0d9957db58 | refs/heads/master | 2021-07-14T20:01:44.142916 | 2018-12-20T23:49:51 | 2018-12-20T23:49:51 | 140,531,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | cpp | 1213 팰린드롬 만들기.cpp |
//#include <iostream>
//#include <cstdio>
//#include <algorithm>
//#include <string>
//#include <vector>
//using namespace std;
//string name;
//int sizen;
//int allsearch() {
// int flag = 0;
// int indexbegin = 0, indexend = sizen - 1;
//
// do {
// flag = 0;
// indexbegin = 0, indexend = sizen - 1;
// for (int i... |
0a07d8b6424aee39e9d235cfee8633afff8dbdb2 | 8a6dbc5b5d68bcd6b3a9417698f6386e890203f5 | /GameLogic/include/LevelEntries.hpp | 1452ded92635ec51da5d5d3ae7fc4105e96ce2cf | [] | no_license | jesseDtucker/ChemistsFun | 2b296ef377a63dbea3078dd5333ec6b3970ba54c | e0596791ee959e186ed339cd43c91e7bd2ac6971 | refs/heads/master | 2016-09-05T21:11:29.683204 | 2015-02-02T20:04:43 | 2015-02-02T20:05:05 | 30,100,687 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | hpp | LevelEntries.hpp | #pragma once
#include <vector>
#include "Box2D/Box2D.h"
#include "Emitter.hpp"
#include "PropertyHelper.hpp"
namespace FluidGame
{
class Level;
class LevelEntries
{
public:
static std::shared_ptr<Level> LoadLevelOne(float particleRadius);
static std::shared_ptr<Level> LoadLevelTwo(float particleRadius);
pr... |
60bbba90ad9d820510689b950056d50e30d6038e | f8a2a17426dff4dfcdabeca957670642c02faf8a | /src/renderer/IndexGpuBuffer.h | b89a55d38e2dacad712484e75fdaac97dc87b09f | [] | no_license | zhenglikanex/renderer | 7b3ca6c7550ebf84499424cf771b8f27cb03e2fd | 2d4c16dda115b5e629178bf29bae034c1a53627d | refs/heads/master | 2020-04-28T01:18:56.870487 | 2019-12-27T10:13:52 | 2019-12-27T10:13:52 | 174,850,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | h | IndexGpuBuffer.h | #ifndef INDEXGPUBUFFER_H_
#define INDEXGPUBUFFER_H_
#include "VertexTypes.h"
#include "GpuBuffer.h"
namespace aurora
{
class IndexGpuBuffer : public GpuBuffer
{
public:
IndexGpuBuffer(IndexType index_type,uint32_t index_size,uint32_t index_num,const void* data);
IndexType index_type() const { return index_t... |
b5feef7ebdc5ccf1a99d13e0979e563d07f5a711 | f4164f419f371b4d0bee5b4170ad2a1d86223481 | /internationalisation/src/applicationui.hpp | 405c084220aa96deef9e8efd8472353381ed21cc | [] | no_license | abdeljalilanane/i18n | 17741ac05501f4ce3b50fda3f4b8e47740d0817f | eee83ad7d4a02eaea66782756406e83140c669f0 | refs/heads/master | 2020-04-06T11:34:29.837419 | 2013-11-28T23:01:53 | 2013-11-28T23:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,732 | hpp | applicationui.hpp | /*
* Copyright (c) 2011-2013 BlackBerry Limited.
*
* 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 ... |
f7f9b42cdbc196f9d8415b629d154aa321d0697c | e848b83f6add711fb40ce83fec70ba3ff976853d | /others/read_csv.cpp | a17bb4880a3a3df74c7d1ca8f2f0626895bed325 | [] | no_license | xiongm/dotfiles | d81915fa9f684a84b55e1019b5a1e872bbf66bc8 | 3cc03b34f5ae26eb89e39e8f39e9ea7c41d37588 | refs/heads/master | 2020-04-06T05:06:36.356299 | 2019-10-17T05:14:39 | 2019-10-17T05:14:39 | 43,662,246 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,516 | cpp | read_csv.cpp | #include <bits/stdc++.h>
using namespace std;
struct Data
{
string symbol;
double price;
bool is_open;
Data(string symbol, double price, bool is_open)
:symbol(std::move(symbol)), price(price), is_open(is_open)
{
}
friend ostream & operator<<(ostream & os, const Data & data)
{
os << data.sy... |
2bed18b3f0372c0b84f86e8ccaef0fd62f695066 | 8d1aa597eae7ff732ee475feb91999e78386e47d | /coast/modules/AccessControl/AccessController.cpp | 89777017e31a064a56919821a9413eea665bbe9d | [] | no_license | chenbk85/CuteTestForCoastTest | 63111ba3b54ab2b027684dd6f1b9c5859fcdde9b | 37d933c5fe2e0ce9a801f51b2aa27c7a18098511 | refs/heads/master | 2021-01-12T20:17:22.462721 | 2015-06-08T18:42:09 | 2015-06-10T13:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | AccessController.cpp | /*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.... |
aff9ffb3213f2284180d857a73f8e09e4ab2c96e | 63c71060f36866bca4ac27304cef6d5755fdc35c | /src/JimoDataProc/DataProcSelectR1R2.cpp | fa8d2d043ae013e732aac5bd65201839c14962e8 | [] | no_license | 15831944/barry_dev | bc8441cbfbd4b62fbb42bee3dcb79ff7f5fcaf8a | d4a83421458aa28ca293caa7a5567433e9358596 | refs/heads/master | 2022-03-24T07:00:26.810732 | 2015-12-22T07:19:58 | 2015-12-22T07:19:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,865 | cpp | DataProcSelectR1R2.cpp | ////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2005
// Packet Engineering, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification is not permitted unless authorized in writing by a duly
// appointed officer of ... |
54e5aac125809e6e58f72f5be9198b94ba8038cc | 6f5f93ea3a7d211e6bdc69e3339a02332bb91903 | /lab2/zadanie3/task1/main.cpp | 1c78325a74c7d271e56853ebc60007ce7b5a48b5 | [] | no_license | GlazyrinVladimir/New-Oop | 78ef3c8d148e93bd8a50366ee31087197f185070 | 9f91d05c3cab939acdc85151e543c6bf17da4f29 | refs/heads/master | 2020-05-21T15:10:50.782763 | 2017-01-29T20:59:25 | 2017-01-29T20:59:25 | 52,033,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | main.cpp | // task1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <Windows.h>
#include <iostream>
#include <string>
#include <map>
#include <fstream>
#include "Dictionary.h"
using namespace std;
int _tmain()
{
setlocale(LC_ALL, "RUS");
SetConsoleOutputCP(1251);
SetConsoleCP(1251)... |
5f25588629ac4826359be546662f439a8c25a47b | ac789f37185de5299197c1f861c20f0b276339c5 | /components/Alora/Alora/examples/AloraReadAllSensor/AloraReadAllSensor.ino | dd207ebbf160197b7845408568f1a54441d063f8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | dycodex/ESPectro32-IDF | 45aca218a3311737bfebd6f2f571dc12adaa7f67 | d381285115779452a5db3e09e6e4f8face781ab0 | refs/heads/master | 2021-01-22T18:15:07.935705 | 2018-11-19T08:15:15 | 2018-11-19T08:15:15 | 100,755,623 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 732 | ino | AloraReadAllSensor.ino | #include <Arduino.h>
#include <Wire.h>
#include <AloraSensorKit.h>
AloraSensorKit sensorKit;
void setup() {
// NOTE: in case the process hang right after initializing alora library, uncomment this line below:
// Wire.begin();
Serial.begin(9600);
sensorKit.begin();
}
void loop() {
// read all sen... |
46bb450a333395ab5cf18ae3d4ea639825582f87 | 5a63bd6870346aa6593233b990303e743cdb8861 | /SDK/BP_AllWeapons_classes.h | 7e1e9191bacc66664f3473d5bbaa73bc4b7eaa21 | [] | no_license | zH4x-SDK/zBlazingSails-SDK | dc486c4893a8aa14f760bdeff51cea11ff1838b5 | 5e6d42df14ac57fb934ec0dabbca88d495db46dd | refs/heads/main | 2023-07-10T12:34:06.824910 | 2021-08-27T13:42:23 | 2021-08-27T13:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,644 | h | BP_AllWeapons_classes.h | #pragma once
// Name: BS, Version: 1.536.0
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
// Classes
//---------------------------------------------------------------------------
// BlueprintGeneratedClass BP_AllWeapons.B... |
8d61aa605ab45de64e612d55be4175c900347637 | 846c6751094898a89448c2dde3ba7e244d23e9cf | /vkhlf/RenderPass.h | 08343ce0714f2b9f82d7829daec1ed326da3f92c | [] | no_license | peng1ei/VkHLF | 25dac8bffc2425fd6876a8bbc274361fc2fe3fcd | 18f5b7d494f35db3e703f33b5300336b2e33bf88 | refs/heads/master | 2021-10-11T02:01:43.782128 | 2019-01-21T09:04:48 | 2019-01-21T09:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,621 | h | RenderPass.h | /* Copyright (c) 2016-2017, NVIDIA CORPORATION. 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 ... |
ae94a4bee096caa25e62508bab2d444148010bff | 33a3e670aee211c2bf61a604b0df5008f4291f77 | /src/CursorUpdater.cpp | 005fd6b2234883b0d60530b2fdca930901c0afc6 | [] | no_license | RolandMQuiros/StoriesFromDelAbismo | 2ea0344665b60986fea379449cad94f0915e3c2d | 9b45b240fee031d69c03f7d3398273e7ac949ca3 | refs/heads/master | 2016-09-10T20:04:27.402990 | 2013-01-30T03:08:11 | 2013-01-30T03:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | cpp | CursorUpdater.cpp | #include <SFML/Window/Mouse.hpp>
#include <da/Transform.h>
#include "Cursor.h"
bool CursorUpdater::isCompatible(const da::Entity &entity) const {
return entity.hasAttribute<Cursor>() &&
entity.hasAttribute<da::Transform>();
}
void CursorUpdater::updateEntity(const da::EntityPtr &entity) {
da::Tran... |
3b52751531fc6179c1532de0f2f897c6372d3cc6 | f11059a855524ea036e4c17b1c19d11d54c16099 | /packages/dense_mapping/include/heightmap.h | ad36f1ba49a00b8c71b2ee8b48b286a7bf44b30e | [] | no_license | Forrest-Z/robot | 8edc6d27a6e69c343dde921dada2f2030fb7d8c2 | 66877347b3dd0fd5bd870a6d64fb5a606f4075c6 | refs/heads/master | 2023-04-04T11:58:33.925162 | 2021-04-15T23:25:29 | 2021-04-15T23:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,931 | h | heightmap.h | #pragma once
#include "packages/benchmarking/include/summary_statistics.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <functional>
#include <iostream>
#include <limits>
#include <memory>
#include <vector>
namespace dense_mapping {
namespace heightmap {
namespace details {
enum struct... |
b798cb65c9ba574662e5d5200183acaaf06e5fb8 | e5d5cfa272d3b1cbdd0e87706d8db8adf43d610a | /#2/Q9/2-9.cpp | 2a252aaeec3f1bbb6b01d82aa8627c423fa659a3 | [] | no_license | ut-iitbhu-42/Data-Mining | a274ac8d3ff27ef9552615ca4530bfce369b1a05 | fba096aa77588ac948b31293d40e991e3f7a40d4 | refs/heads/master | 2020-07-13T19:54:18.254574 | 2016-11-16T08:57:28 | 2016-11-16T08:57:28 | 73,884,626 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,528 | cpp | 2-9.cpp | #include<bits/stdc++.h>
using namespace std;
const int MAX = 1e4 + 5;
int id[MAX], n,e;
pair <long long, pair<int, int> > p[MAX];
struct graph {
int row;
int column;
int data;
};
graph g[1000];
bool compare(struct graph i,struct graph j) {
return (i.data<j.data);
}
void initiate() {
... |
6003a378b72add6cb117483639a7ed9cc7204f92 | 99298a83dc991a08a12880209a843738a3c3fc0f | /Applications/Utils/ModelPreparation/PartitionMesh/NodeWiseMeshPartitioner.cpp | 2bcaa08aeedff7cb80cc3b0edd866e16ac6793a1 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | KeitaYoshioka/ogs | 8fa8097c58e2c5ce134808de966e3431247579d3 | eeb7dd25db3245a94c8c1ef74ca1f689a4afbd61 | refs/heads/master | 2022-12-01T16:06:52.622393 | 2017-12-20T09:40:12 | 2017-12-20T09:40:12 | 105,892,458 | 3 | 0 | null | 2017-11-07T09:14:44 | 2017-10-05T13:19:26 | C++ | UTF-8 | C++ | false | false | 28,438 | cpp | NodeWiseMeshPartitioner.cpp | /*!
\file NodeWiseMeshPartitioner.cpp
\date 2016.05
\brief Define the members of class NodeWiseMeshPartitioner
\copyright
Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
Distributed under a Modified BSD License.
See accompanying file LICENSE.txt or
... |
c99115234e1662b91732137e36a62f7afc12e935 | 06d94fb3495674a41fa2b1496eb2858d8af5d446 | /MoonLight Engine/SpriteComponent.h | 36d3879806d6bc9a23d11b99828b872c7f01fe25 | [] | no_license | WLLMGS/MoolightEngineV2 | f3a5962b1660b2d85ff0bbe9a891297144bd7726 | 5019ca4194ddb0358815027702e10df08617f23f | refs/heads/master | 2020-03-21T23:29:38.352894 | 2018-07-17T22:15:59 | 2018-07-17T22:15:59 | 139,190,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 800 | h | SpriteComponent.h | #pragma once
#include "BaseComponent.h"
class SpriteComponent : public BaseComponent
{
public:
SpriteComponent();
~SpriteComponent();
virtual void Render() override;
virtual void Update(float elapsedSec) override;
void SetTexture(string name);
void SetTextureRect(int x, int y, int w, int h);
void SetRepeated(bo... |
7e53d8005624c1878954f78543efdd966857b33a | 8c8a8af67076b2b7ac9808d614be8e40728d7854 | /jni/Graphics/Camera/Camera2D.hpp | 7f2be70d01afd35a81f214610af20984bab5a1c9 | [] | no_license | MihaiBabiac/Framework | 694d5185c6a394c0a453f9812db327550612eb67 | ad97160286a7fb69d9f3667e2ed736c0a2a0dbfe | refs/heads/master | 2021-05-28T10:14:12.218635 | 2013-07-25T09:51:31 | 2013-07-25T09:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | hpp | Camera2D.hpp | #ifndef CAMERA2D_HPP
#define CAMERA2D_HPP
#include "Object.hpp"
#include "Maths.hpp"
#include <vector>
using namespace std;
using namespace Math;
class Camera2D
{
public:
Camera2D();
~Camera2D();
void Update(GLfloat delta);
void Transform(Vector2f &vertex) const;
void Link(Object *target=NULL);
void SetIde... |
d959487dd21815f754f5e1fb7a7033930bff4ace | d7db098f4b1d1cd7d32952ebde8106e1f297252e | /AtCoder/code-festival/2014/A/C.cpp | 71d7c57b875c1eb665a83c95054fae86e62617b5 | [] | no_license | monman53/online_judge | d1d3ce50f5a8a3364a259a78bb89980ce05b9419 | dec972d2b2b3922227d9eecaad607f1d9cc94434 | refs/heads/master | 2021-01-16T18:36:27.455888 | 2019-05-26T14:03:14 | 2019-05-26T14:03:14 | 25,679,069 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cpp | C.cpp | #include <iostream>
using namespace std;
bool data[10001];
int kazu[10001];
int count(long long int n){
long long int ret=0;
ret += (n/10000)*kazu[10000];
//if(n%10000 != 0){
ret += kazu[n%10000];
//}
return ret;
}
int main(){
for(int i=0;i<10001;i++){
data[i] = false;... |
55cde737a2088a4c887b11f838b33404c461404a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_old_hunk_2511.cpp | b7ae6a09c9408b9d8e1e07262ec32c2bfc800b75 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 427 | cpp | git_old_hunk_2511.cpp |
if (prepare_revision_walk(&revs))
die(_("revision walk setup failed"));
commit = get_revision(&revs);
if (commit) {
struct pretty_print_context ctx = {0};
ctx.date_mode = DATE_NORMAL;
strbuf_release(&buf);
format_commit_message(commit, "%aN <%aE>", &buf, &ctx);
clear_mailmap(&mailmap);
return strbuf_d... |
f094269a514bb63d6752b4c007d6a6ed3fc509fa | 24653c0a8be19e46eb95451de1d961ffbcc01341 | /software/src/8.1/src/network/VdbNetwork.cpp | 25517e273f92775ea60d2aac6ff46b51c33cd5bd | [
"BSD-3-Clause"
] | permissive | VisionAerie/vision | 150e5bfa7eb16116b1e5b4bdb1bb8cee888fbfe5 | e40c39e3abc49b0e2c9623204c54b900c4333f29 | refs/heads/master | 2021-01-19T09:23:34.429209 | 2019-01-30T17:10:59 | 2019-01-30T17:10:59 | 82,104,368 | 2 | 1 | BSD-3-Clause | 2019-01-30T17:11:00 | 2017-02-15T20:41:27 | C++ | UTF-8 | C++ | false | false | 19,233 | cpp | VdbNetwork.cpp | /***** Vision Network Handle Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
********... |
635783f4b63aa1bb8f6e41069d185b4974be6a6b | 5bf71d908865a5dfc3cceec1722f53854699b03d | /Codechef/ADAKING_JULY20B.cpp | 2e4df4bfd6b045531d719b60330590763f8c23ec | [] | no_license | shivam05241/Coding-Solution | 1f04f36bdc075a898463b2871566deb411a14df1 | 4e9848184c38e3944430e6a2e22dace12fdc7993 | refs/heads/master | 2023-02-22T16:43:04.183885 | 2021-01-29T17:50:59 | 2021-01-29T17:50:59 | 284,394,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | ADAKING_JULY20B.cpp | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n,a=0;
cin>>n;
for(int i=0;i<8;i++)
{
for(int j=0;j<8;j++)
{
if(a==0)
cout<<"O";
else if... |
181f7f105ab1fbc67eadd348655eded80657f204 | 221553caa94f29634de701409a35c74d6168404b | /Testes/2018/CI3/Codigo/ClientRecord.h | c2d3527263581531736e6076fbdce660b806026c | [] | no_license | TitanicThompson1/AEDA | dc42f606674573160df047f6f8bedee14bac7952 | 39c6f4f17d5ef5202fae7c1bb47a3b338be6d051 | refs/heads/master | 2020-08-01T02:27:50.916671 | 2020-06-03T15:07:48 | 2020-06-03T15:07:48 | 210,828,440 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 368 | h | ClientRecord.h | #ifndef SRC_CLIENTRECORD_H_
#define SRC_CLIENTRECORD_H_
#include <string>
#include "Client.h"
using namespace std;
class ClientRecord {
Client* clientPtr;
public:
ClientRecord(Client* client);
Client* getClientPointer() const;
string getName() const;
string getEMail() const;
void setEMail(string e... |
719a06da0032a4e35b929abe7d117b982ac6235b | bc124c7b52a6b9b44522d36241f0c6822bf7630a | /laws/ColorUtil.h | 1298835eafc4132de61c78539168b928017c21a4 | [] | no_license | etiandre/lacordaire | 371700d918d467bc9c396912a1dd6ad3ffde519c | 4e5cc4012b2ae10694ca9c335adf1bff9bad79b5 | refs/heads/master | 2020-05-30T22:39:18.097314 | 2019-11-07T11:48:59 | 2019-11-07T11:48:59 | 189,995,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | h | ColorUtil.h | #pragma once
#include <SFML/Graphics/Color.hpp>
#include <tuple>
class ColorUtil {
public:
static std::tuple<float, float, float> RGBtoHSL(const sf::Color& color);
static std::tuple<float, float, float> RGBtoHSV(const sf::Color& color);
static sf::Color HSLtoRGB(float H, float S, float L);
static sf::Color HS... |
5eb47cd58bb10b3fe293877fff2ce94b4d5aecfa | bb2ee2ec3cbaec08833dc9556903b72e8e400c69 | /include/authentication_manager.h | dc9abc5a4ad00a0042918d09bfa566b037296255 | [
"BSD-2-Clause"
] | permissive | mfontanini/roberto | 1be583b6a700e4a12bf58dbd9f6f28d624e7ba33 | 8e1247641d5f4559eda58d8a92d4212fa6b98d7c | refs/heads/master | 2021-01-21T06:38:38.853788 | 2017-03-13T04:16:00 | 2017-03-13T04:16:00 | 83,263,012 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | h | authentication_manager.h | #pragma once
#include <set>
#include <string>
#include <utility>
namespace roberto {
class AuthenticationManager {
public:
void add_credentials(std::string username, std::string password);
bool validate_credentials(std::string username, std::string password) const;
size_t get_credentials_count() const;
p... |
cf1fe4b1806dfeb453948852368eec6340203f45 | 052739ce84f738f7f29e77d0fb10d9a722567642 | /Lab 10/Pizano_Lab10_Problem4.cpp | f7e9f20893ed07484fbb7d87072f746f4b38a63d | [] | no_license | alpizano/ECE152-Programming-For-Engineers | 991689c67028c13551b72cc2101766d42d738feb | 023f04c7a7881f753b0cb0f586222a6db5dc56d3 | refs/heads/master | 2020-03-18T10:01:32.934581 | 2018-05-23T16:03:53 | 2018-05-23T16:03:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | Pizano_Lab10_Problem4.cpp | /* Al Pizano */
/* Lab 10 Problem 4 */
/* 4/16/2017 */
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
ofstream outputFile;
outputFile.open("text.dat");
string s;
cout << "Enter the string: ";
getline(cin, s);
while (s != "") {
outputFile << s << endl;
cout << "En... |
7366668831e8bd5c0e10b86ac3e7fa2f61c65f1e | 285cce8af401fe189981a02ad7bbdc07c5dbbc14 | /leetcode/213HouseRob2.cpp | e9c4ea769e56d684db60651f66471695b0cc4627 | [] | no_license | siatwangmin/LeetCode | 3c489c376cf38eaa411180f6c2405c556fa01d3c | aff533490a1d0c77750077d7007a514316ce715d | refs/heads/master | 2021-01-23T20:50:16.232508 | 2018-09-03T04:00:59 | 2018-09-03T04:00:59 | 38,233,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | 213HouseRob2.cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution {
private:
int maxRob(vector<int> &nums)
{
if (nums.size() == 0)
{
return 0;
}
vector<int> maxMoney;
maxMoney = vector<int>(nums.size(), 0);
if (nums.size() == 1)
{
maxMoney[0] = nums[0];
}
if (nums.size() >= 2)
{
... |
42a869418f1f3baa415321045226f5c0679ec498 | 50079da556609aefdd9c9b4a249b41f43c762fae | /WISET_Code/LED_button_Debounce/LED_button_Debounce.ino | 371e65675de9bcd10d78e14aa8f05a7b834bd5e9 | [] | no_license | zzeromin/Arduino | eab2cdb2d9d95ae57bbfb0c9bb706d32e79f0151 | 5651a3e3e55e4bf1d6547fc40c4b4aff43a900f5 | refs/heads/master | 2022-08-17T14:28:24.975906 | 2022-07-20T07:51:49 | 2022-07-20T07:51:49 | 14,380,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | ino | LED_button_Debounce.ino | // 버튼으로 LED 깜빡이기(Debounce 예제)
int BUTTON = 7; // 푸쉬버튼 핀 번호
int LED = 13; // LED를 연결한 핀 번호
int val = 0; // 버튼 상태를 저장하는 변수
int val_OLD = 0;
int State = 0; // 0: LED OFF, 1: LED ON
void setup() {
pinMode(LED, OUTPUT); // LED을 출력으로 설정
pinMode(BUTTON, INPUT); // BUTTON을 입력으로 설정
}
void loop(){
// 버튼을 입력하... |
35ed23e7140a1111d9270de79e89c0763dc9ada4 | 195a84eff9fbc23b1d9ec3e89b14c19d012cdbf4 | /The 81/coin_change1(blog).cpp | 90057fae467434902eeaf6ac789fb7b10dddeb65 | [] | no_license | Touhidul121/All_code | 419baba7b37fa831e017f977063820b431308506 | fb32f84a8d61eb30f48aae93e39388abe1388ab8 | refs/heads/main | 2023-01-02T17:16:18.433873 | 2020-10-26T18:47:07 | 2020-10-26T18:47:07 | 307,454,724 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | coin_change1(blog).cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int coin[3]={2,4,3}; // 2 taka and 4 takar coin
int way[9]; // 8 taka porjonto banate chai
memset(way,0,sizeof(way));
way[0]=1;
for(int i=0;i<3;i++)
{
for(int j=coin[i];j<=8;j++)
{
way[j]=way[j]+way[j-coin[i]... |
37d9e6d3befff710d3cb101dafd6061f0c8b1062 | ec3447aee484fae0b9943244cf190ace7d7afccc | /src/Subsystems/leftPid.h | 58853a758986fef7d8ecc94a20334b968daf6ca5 | [] | no_license | starobotics1307/RecycleRush | c5513a4e0556dfd043fcb97b80c9b05462ae9c1a | 5c6fbea4325e626a09464756dc2216dc64e3acf8 | refs/heads/master | 2016-09-05T13:06:22.952787 | 2015-03-16T20:22:07 | 2015-03-16T20:22:07 | 29,895,602 | 3 | 1 | null | 2015-03-02T17:51:44 | 2015-01-27T03:30:20 | C++ | UTF-8 | C++ | false | false | 329 | h | leftPid.h | #ifndef leftPid_H
#define leftPid_H
#include "Commands/PIDSubsystem.h"
#include "WPILib.h"
class leftPid: public PIDSubsystem
{
public:
SpeedController *leftTalon;
Encoder* leftEncoder;
leftPid();
double ReturnPIDInput();
void UsePIDOutput(double output);
void InitDefaultCommand();
void leftMotor(double);
};... |
fc27840417bd3e478dfb1e408805374c234a1f89 | 1c69a3334d02b467a2366066f02bbb5a8ed9b0a0 | /F-Lists/5-ListTmpl.h | 7eb0ddb823e07370b4112d81fd1d0ae0ff96252e | [] | no_license | pauldepalma/CPSC122 | 60af6e62fa77935e5dacab54f41b9ecf9a269526 | 70adefe738a7f8023c2042c8434dc28c7f151ab4 | refs/heads/master | 2022-12-29T20:46:19.610524 | 2022-12-10T20:17:53 | 2022-12-10T20:17:53 | 203,269,810 | 6 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,685 | h | 5-ListTmpl.h | /*
Name: Paul De Palma
Class: CPSC 122, Section 1
Date Submitted: February 25, 2021
Assignment: N/A
Description: simple linked list using templates
*/
#ifndef LIST_H
#define LIST_H
template <typename T>
struct node
{
T item;
node<T>* next;
};
template <typename T>
class List
{
public:
List();
~List();
... |
76ccb22c7a13eded13c5633617925c776f07415d | f0a6186fcdbf7d8427c84bac5f6b6c003bb4ca04 | /Estudiantes/Steven/juanmanuel/Maquina.h | 8d1182dd4af16cbda0134f61ade5d2804f7057c5 | [] | no_license | billywalker182/C-Plus-Plus | 062a02fec43bb3d46c2610eff1b4b36e3a7fba1e | f6283929632a3cd36988951da2cfe56afc9e3b81 | refs/heads/master | 2023-03-21T05:23:09.906974 | 2021-03-16T02:37:59 | 2021-03-16T02:37:59 | 321,184,242 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | h | Maquina.h | #include <iostream>
#include "Jugador.h"
using namespace std;
class Maquina: public Jugador{
private:
string nombre;
public:
Maquina(){
}
void Dato(){
nombre = "Maquina";
}
string getNombre(){
return nombre;
}
};
|
986adac01270d0911d4fcea10072c42874974bd1 | 8c763081c9088e759575c383ba6e1421c9f16c17 | /SVN/ThreeDEditing/Tools/TestTool/src/mitkWriteCVSPixel.h | 614f71600e392d1f858c66dc09210feebb8109d6 | [] | no_license | hksonngan/phan-anh-pdp | 369d7349033ae37496aea17e4fcf52cbae9aabfe | 306b2820f3bca8ada8d194cddf360a780e82bf20 | refs/heads/master | 2021-01-10T10:04:14.006874 | 2013-02-08T08:05:38 | 2013-02-08T08:05:38 | 50,319,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 55,922 | h | mitkWriteCVSPixel.h | // "pdp"
#include "mitkTestTool.h"
#include "mitkWriteGlobalToCVSPixel.h"
// MITK
#include <mitkDataNodeFactory.h>
#include "mitkSurfaceToImageFilter.h"
#include <mitkImageCast.h>
#include <mitkImageWriter.h>
// VTK
#include <vtkMassProperties.h>
#include <vtkSmartPointer.h>
#include <vtkSTLWriter.h>
#i... |
89ca28e190048e980943b9422ca20b2e179f65e6 | 3aa9efab0096db16302cb8af309318910be4da80 | /src/dram_addr_map.cpp | 3bdec422bad33dbd62fa80df99ae4c97800dcb65 | [
"MIT"
] | permissive | tsengs0/cache-sim | 694025e698b5252cb3265e7c674c6b4e99f7d110 | 9ac2cade121d96f63700787589aa076bd4b2cab2 | refs/heads/master | 2022-12-24T18:08:18.353776 | 2020-09-28T13:48:05 | 2020-09-28T13:48:05 | 293,716,058 | 0 | 0 | MIT | 2020-09-08T06:03:36 | 2020-09-08T06:03:36 | null | UTF-8 | C++ | false | false | 1,209 | cpp | dram_addr_map.cpp | #include "dram.h"
dram_addr dram_system::physical2dram_addr(unsigned int addr)
{
unsigned short BA[BANK_ADDR_WIDTH];
dram_addr temp;
// Extract the Cache line Byte-Offset
addr = addr >> CACHE_LINE_WIDTH;
// Translate column address
temp.col = addr & ((unsigned short) pow(2, COL_ADDR_WIDTH)-1);
// Translate ... |
2c09f6c9606348109e5fe44d4453fa9a7103cf1a | 1cac8f001142353af4839c5b68c9cd3b4f491627 | /11-20/20 Recursion 4 Subsets/generateBrackets.cpp | f60c2698999003987cc2b3235cca3e85cc4956c7 | [] | no_license | Sumendra2906/DS-ALGO | 28933495a2903fd932b81f984ab426bfab7b009f | 6ad794bbb5309e4437dfb3de4c66d91d48a7a9bb | refs/heads/master | 2023-08-13T23:55:13.277016 | 2021-10-16T17:27:32 | 2021-10-16T17:27:32 | 399,010,533 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | generateBrackets.cpp | #include <iostream>
using namespace std;
void generateBrackets(char *bracket, int n, int idx, int open, int close)
{
//base case
if (idx == 2 * n)
{
bracket[idx + 1] = '\0';
cout << bracket << endl;
return;
}
//putting close
if (close < open)
{
bracket[idx] =... |
f7c551497b0d13bfb16c38ec86ffd462d6efc24b | 906dee33d7e2190f3e738a1a12b5397ee23050a9 | /GameServer/MySql/Connection.h | 706fca46a45ab01ba45f0e38ad215237c6a0343a | [] | no_license | github188/DotaGame | 282554ad61e865fb92b20fac628227fb3adf0785 | e54ea187b45ee499d36aeaed3d8dc03ad85f8c22 | refs/heads/master | 2021-01-17T18:32:05.443170 | 2014-09-20T05:30:22 | 2014-09-20T05:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | h | Connection.h | #ifndef _MYSQL_CONNECTION_H_
#define _MYSQL_CONNECTION_H_
#include "sql_include.h"
namespace MySql
{
class Command;
class Connection : public std::enable_shared_from_this<Connection>
{
public:
Connection(const std::string& conn_str);
~Connection();
// HostName=localhost;DataBase=test;Port=3306;User=root;Pwd=root... |
9064125c4c33a20ac30e07889d9eb74927174eb8 | 4c1abce6baabb84c9cd2ce320a42380aed9f9fd7 | /pat_b_1011/pat_b_1011/pat_b_1011.cpp | 08830528ad388ac02d890190149ea38ecd417411 | [] | no_license | louise365/To-be-SDE | 1a1d9ad2fa3acf5acff5f10045c59090440beb95 | cbdb12c5c69f720b5ddebf2636af9617a2452014 | refs/heads/master | 2020-12-28T02:23:41.191921 | 2020-04-14T07:18:36 | 2020-04-14T07:18:36 | 238,149,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | cpp | pat_b_1011.cpp | // pat_b_1011.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int t,i = 1;
cin >> t;
while (i<=t)
{
long long a, b, c;
cin >> a >> b >> c;
cout << "Case #" << i++ << ": " << ((a + b > c)?"true":"false") << endl;
}
r... |
805efec1d291feba73f78493c39c63c0c378cb3a | 2cf1465d5469b02357b912620fd221344253cbed | /src/httpclient.cpp | febf09430af06d7326d93de554abea8ebb65f436 | [] | no_license | dlf1992/hiknetrs485 | 3c18c66425933444f1b1692d122da87f28610690 | e31ae1bed12f43886825418d8190b8814bf1637b | refs/heads/main | 2023-04-28T17:41:26.216205 | 2021-04-13T11:32:31 | 2021-05-25T02:47:07 | 357,527,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,136 | cpp | httpclient.cpp | /* Make the necessary includes and set up the variables. */
#include "httpclient.h"
CAMERAINFO front_camerainfo;
CAMERAINFO back_camerainfo;
volatile int front_enternum;
volatile int front_exitnum;
volatile int back_enternum;
volatile int back_exitnum;
/* 从字符串中读取enter人数 */
int getpdcenter(const char* pcBuf)
{
ch... |
2bd8b2728ab6d4d492407766840247205b05e700 | 49cd5b923560b3258bdc4bddf183a89d847bd3ff | /source/extensions/stat_sinks/metrics_service/grpc_metrics_service_impl.h | d65bae27f9bb8dd64c3197ce7e3960bf313c97b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | envoyproxy/envoy-wasm | 4b12c109387594122915dcc8de36bf5958eba95b | ab5d9381fdf92a1efa0b87cff80036b5b3e81198 | refs/heads/master | 2023-08-01T12:38:34.269641 | 2020-10-09T18:27:33 | 2020-10-09T18:27:33 | 185,880,979 | 223 | 96 | Apache-2.0 | 2020-12-15T18:56:39 | 2019-05-09T22:37:07 | C++ | UTF-8 | C++ | false | false | 3,521 | h | grpc_metrics_service_impl.h | #pragma once
#include <memory>
#include "envoy/grpc/async_client.h"
#include "envoy/local_info/local_info.h"
#include "envoy/network/connection.h"
#include "envoy/service/metrics/v3/metrics_service.pb.h"
#include "envoy/singleton/instance.h"
#include "envoy/stats/histogram.h"
#include "envoy/stats/sink.h"
#include "e... |
5a077de5196ce479b6b20a0db78e2954cfb1d9fb | 7d0eea62ddd1b632a434be69ef1098f5c491abfe | /Algorithms/58 - Length of Last Word/01 - Length of Last Word.cpp | 20c2da57ee76e8580a58aabec3d72866b251e8be | [] | no_license | guochangxindeGH/LeetCode | 27d3eb7c5452c4b1ab498513c74bd5b31a78f583 | 54554e465e7ac6453bc4274ed8c0c850cb1edeca | refs/heads/master | 2020-03-31T17:54:26.822386 | 2019-04-02T13:30:42 | 2019-04-02T13:30:42 | 112,553,921 | 1 | 0 | null | 2017-11-30T02:26:44 | 2017-11-30T02:26:44 | null | UTF-8 | C++ | false | false | 432 | cpp | 01 - Length of Last Word.cpp | class Solution {
public:
int lengthOfLastWord(string s) {
int count = 0;
for (int i = 0; i < s.size(); i ++) {
if (s[i] == ' ') {
if (i + 1 == s.size() || s[i + 1] == ' ') {
continue;
} else {
count = 0;
... |
030a4227ce49c2457aeeb3005a02caa9dea9c6f2 | e00314a9be7823b29809044fbaec355fc6b204a3 | /vm/bitwise_hacks.hpp | ed338dd3039794708a4a9b8ebb1f1f3c1759dbe0 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | factor/factor | 6d296fe96e84bf35d01885c6c81c021693c67497 | a23790ed37b5444662e248581f10fb5c50bcdb4f | refs/heads/master | 2023-08-17T23:36:27.598741 | 2023-08-17T22:29:10 | 2023-08-17T22:29:10 | 157,985 | 1,237 | 159 | BSD-2-Clause | 2023-09-12T20:32:17 | 2009-03-24T13:17:48 | Factor | UTF-8 | C++ | false | false | 2,104 | hpp | bitwise_hacks.hpp | namespace factor {
inline cell log2(cell x) {
cell n;
#if defined(FACTOR_X86)
#if defined(_MSC_VER)
_BitScanReverse((unsigned long*)&n, x);
#else
asm("bsr %1, %0;" : "=r"(n) : "r"(x));
#endif
#elif defined(FACTOR_AMD64)
#if defined(_MSC_VER)
n = 0;
_BitScanReverse64((unsigned long*)&n, x);
#else
asm("bsr ... |
ed8ba727f98e2aa24723bab6c10de8a87651e9ba | debb8bfa622bf1963dc97c71301ab15c63ffcc38 | /src/BoxCollider.cpp | 2546882e828f60edb444ea9a2a58360e295859a4 | [] | no_license | Nils0xFF/OpenGLSpaceInvaders3D | f8e4bafd7bc97d7ab6f87dc987eb34111906f3c9 | dbe5410167502bb16bc42fb18b54883c178c42ca | refs/heads/master | 2021-01-01T14:14:36.649971 | 2020-02-24T08:49:57 | 2020-02-24T08:49:57 | 239,314,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | BoxCollider.cpp | #include "BoxCollider.h"
#include <typeinfo>
#include "CollisionHelper.h"
#include "GameObject.h"
using namespace std;
bool BoxCollider::checkCollision(const Collider* other) const
{
if (dynamic_cast<const BoxCollider*>(other)) {
const BoxCollider* otherBox = dynamic_cast<const BoxCollider*>(other);
return Colli... |
d62ed9a1f6cd5a454927da8aa8e381c1eba16897 | b1344e8317465a5e290d5bf050aa6e3ed77e1014 | /OpenGL Tutorial/OpenGL Tutorial/SimpleRenderer2D.h | 2309e707ff96caf40d693cd6a56116b55d2801ad | [] | no_license | zerowanghao/OpenGL-Learning | 1974eeaf206682ecafdb851ce447adcadc7cc615 | 53afdf77855492c3fa17153630979a0135a43eb1 | refs/heads/master | 2021-08-24T15:26:53.442671 | 2017-12-10T06:58:41 | 2017-12-10T06:58:41 | 113,636,697 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | h | SimpleRenderer2D.h | #pragma once
#include "Renderer2D.h"
#include <deque>
namespace Renderer {
class SimpleRenderer2D : public Renderer2D
{
private:
std::deque<const Renderable2D*> mRendererDeque;
public:
void submit(const Renderable2D *pRenderable2D) override;
void flush() override;
public:
SimpleRenderer2D();
~Simpl... |
67cd92ddea3f61aca710bf719fd88f82c1e1a4b1 | 9c451121eaa5e0131110ad0b969d75d9e6630adb | /Luogu/P2853 [USACO06DEC]Cow Picnic S.cpp | c71c4784911721cc7753af5b02faa44d485ad995 | [] | no_license | tokitsu-kaze/ACM-Solved-Problems | 69e16c562a1c72f2a0d044edd79c0ab949cc76e3 | 77af0182401904f8d2f8570578e13d004576ba9e | refs/heads/master | 2023-09-01T11:25:12.946806 | 2023-08-25T03:26:50 | 2023-08-25T03:26:50 | 138,472,754 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 569 | cpp | P2853 [USACO06DEC]Cow Picnic S.cpp | #include <bits/stdc++.h>
using namespace std;
vector<int> mp[1005];
int cnt[1005],flag[1005];
void dfs(int x)
{
if(flag[x]) return;
flag[x]=1;
cnt[x]++;
for(auto &to:mp[x]) dfs(to);
}
int main()
{
int n,m,k,i,a,b,ans;
scanf("%d%d%d",&k,&n,&m);
for(i=1;i<=n;i++)
{
mp[i].clear();
cnt[i]=0;
}
vector<int> res... |
e9fb1061fa74eb374bcaac1c985fdaf51c4aed5b | be1f1c746da901ff3ef2ec0909689ad91e02628e | /Chess/King.cpp | cc608328067840f3a8d900b049bbac95c706107c | [] | no_license | bbleslie98/Chess | 6f2f7fc26462391388c7c6e2088effe04aa24e89 | 19177d9d2e2bd55d44316735963ce8d9897528a1 | refs/heads/master | 2023-06-12T13:08:50.730866 | 2018-04-28T19:18:34 | 2018-04-28T19:18:34 | 127,432,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36 | cpp | King.cpp | #include "King.h"
namespace ch {
} |
322f6796fe63ec1248510ae25f541ca5315a1534 | 90335bb8b165391b3022710b5bb48e276cc17cdc | /Source/xiaoxiaole/Public/BlockGrid.h | 3f6fbf5fd025e4ee63022689a236a258dc1ee462 | [] | no_license | hadasuifengdao/EliminateGame | 22a3f6884e75c732da681464866954653842bec6 | ed273c7729e9f4f10368fae38b0cf4d52ff115df | refs/heads/master | 2021-01-04T19:29:50.262245 | 2020-12-29T02:41:03 | 2020-12-29T02:41:03 | 240,728,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,639 | h | BlockGrid.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include"Block.h"
#include"TimerManager.h"
#include "BlockGrid.generated.h"
/*struct Blocks
{
int32 Address;
int32 ColorNumber;
FVector SpawnLocation;
};*/
UCLASS()
class XIAOXIAOLE_API ABl... |
ffc9dd75769e9afdb4977f5b99a128d5fc525366 | dc4a282b7e604cb288375e7e2876ef36b6721aa8 | /boj/2743/2743.cpp | 2c7b5e39f1a616c3dd0a46f31a7cf39ee9b80f35 | [] | no_license | yjbong/problem-solving | 89be67ba24ad7495d82dcb0788dd7db1b849996a | c775271098daa05fcac269fd15de502e60592d49 | refs/heads/master | 2023-04-02T18:47:22.920512 | 2023-03-21T17:28:02 | 2023-03-21T17:28:02 | 70,111,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 121 | cpp | 2743.cpp | #include <cstdio>
#include <cstring>
char s[101];
int main(void){
scanf("%s",s);
printf("%d\n",strlen(s));
return 0;
} |
0c48956c2324c6dd66e09922bc6cb3c4608c1f16 | 6185d5f3878e5912a932f8d693c0faee555b5050 | /AccurateMap (визуализация биллбордами, артефакты, низкий FPS)/include/ContentDoxel.h | 9dcc27c203b804c9b05c3e8a77b51ba962319352 | [] | no_license | signmotion/ogre3d-plugin | fc4921b7f36fa0103a9b42d4c60d10b93f5b7529 | 687404c22a1959cbe83460dbdb4eb23501927ca4 | refs/heads/master | 2020-05-04T00:34:54.917150 | 2014-03-31T13:02:08 | 2014-03-31T13:02:08 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 999 | h | ContentDoxel.h | #pragma once
//#include <unordered_map>
#include <boost/any.hpp>
/**
* Содержание докселя.
* Структура предназначена для наследования.
*
* @see Doxel
*/
struct ContentDoxel {
/**
* Данные докселя.
*/
//std::unordered_map< std::string, boost::any > data;
inline ContentDoxel() {
}
vir... |
d5bb4986c1018b45c1fb7a34b74720acf42b7312 | 2b1b459706bbac83dad951426927b5798e1786fc | /src/camera/lib/formatting/formatting-unittest.cc | 2f5fe138505fcc9984064ddb6aac96cbf75957cc | [
"BSD-2-Clause"
] | permissive | gnoliyil/fuchsia | bc205e4b77417acd4513fd35d7f83abd3f43eb8d | bc81409a0527580432923c30fbbb44aba677b57d | refs/heads/main | 2022-12-12T11:53:01.714113 | 2022-01-08T17:01:14 | 2022-12-08T01:29:53 | 445,866,010 | 4 | 3 | BSD-2-Clause | 2022-10-11T05:44:30 | 2022-01-08T16:09:33 | C++ | UTF-8 | C++ | false | false | 820 | cc | formatting-unittest.cc | // Copyright 2022 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 "src/camera/lib/formatting/formatting.h"
#include <fuchsia/camera2/cpp/fidl.h>
#include <gtest/gtest.h>
namespace camera {
namespace {
TEST(Fo... |
7c85293be8532043c51eb97d8ca38ddd139ed32d | 125ae0adb562478b184bbb35d40f2c43b335415c | /UI/Widgets/tVTabBar.cpp | 19952841e08fa46f4ccc34ede81d5f9a1c6f9ad6 | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 2,707 | cpp | tVTabBar.cpp | /*****************************************************/
// Copyright © 2007-2012 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
//-----------------------------------------------------------------------------
/*! \class tVTabBar tVTabBar.h
\br... |
8fdd0859346cdad7aaad5f0ed7add83afb66041b | ffb568806e34199501c4ca6b61ac86ee9cc8de2e | /gflib2/thread/include/gfl2_ThreadStatic.h | ccfa2e327fb1a900048736a6470abdb4ea0c20b2 | [] | no_license | Fumikage8/gen7-source | 433fb475695b2d5ffada25a45999f98419b75b6b | f2f572b8355d043beb468004f5e293b490747953 | refs/heads/main | 2023-01-06T00:00:14.171807 | 2020-10-20T18:49:53 | 2020-10-20T18:49:53 | 305,500,113 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,812 | h | gfl2_ThreadStatic.h | #ifndef __GFL2_THREADSTATIC_H__
#define __GFL2_THREADSTATIC_H__
//=============================================================================
/**
* @file gfl2_threadstatic.h
* @brief スレッドのスタティックな関数へ実装を隠蔽したままアクセスするためのクラス
* @author k.ohno
* @date 2014.12.24
*/
//=======================================... |
22d79a462dc91481119eeb72b3a3cf8012b529fe | ad9abcd7e9ec212742439c41f0f30f555b60aeb7 | /include/rain/networking/smtp/status-code.hpp | b069bff46e2c2190583238d087701b2288f61f9c | [] | no_license | GilgameshxZero/rain | e2469a98f2335fabc353d11181dc4c9987d3c18e | e9ee05b6731365ef8585ea5911177e008a0fd36a | refs/heads/master | 2023-06-11T00:57:43.549393 | 2023-05-31T17:26:00 | 2023-05-31T17:26:00 | 239,000,542 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,518 | hpp | status-code.hpp | // SMTP response status code, and optional unwrapping into reason phrase.
#pragma once
#include "../../string/string.hpp"
#include <iostream>
namespace Rain::Networking::Smtp {
// SMTP response status code, and optional unwrapping into reason phrase.
class StatusCode {
public:
// Categorization for status code... |
13c147441b0075474448809e7c00f685daeb1eca | 1adc9ecffcd266d5c68c274b15060b75af79cdb5 | /NetworkTests/Code/Game/Game.cpp | 870a40d48a212d971d088cc72d6ad367b1ea139d | [
"MIT"
] | permissive | codacy-badger/Abrams2018 | 13aa468cf0a81df07ab406df0a6983ee7d9c1c9a | 9e8c61bb0a3b108c99abf6c7d1696020394d1a33 | refs/heads/master | 2020-05-06T14:03:35.166168 | 2019-04-08T14:44:33 | 2019-04-08T14:44:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,146 | cpp | Game.cpp | #include "Game/Game.hpp"
#include "Engine/Core/ErrorWarningAssert.hpp"
#include "Engine/Core/Image.hpp"
#include "Engine/Core/KerningFont.hpp"
#include "Engine/Core/Rgba.hpp"
#include "Engine/Math/MathUtils.hpp"
#include "Engine/Math/IntVector2.hpp"
#include "Engine/Renderer/Camera2D.hpp"
#include "Engine/RHI/RHIOu... |
e6782a6842c23e15500b906b3193c7d02b9f3650 | ca4d70080ced49e6c9d5110a8563eafdbe79eec4 | /src/mesh/store/elementstore.cpp | be4d1b49de3cff14909984bf11d2e816d417eba8 | [] | no_license | It4innovations/espreso | f6b038dcd77f7f3677694e160a984bc45f4a4850 | 5acb7651287bd5114af736abc97c84de8a6ede99 | refs/heads/master | 2023-01-28T13:35:52.731234 | 2022-05-24T14:24:05 | 2022-06-26T06:35:31 | 66,345,061 | 18 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 11,358 | cpp | elementstore.cpp |
#include "store.h"
#include "elementstore.h"
#include "statisticsstore.h"
#include "esinfo/mpiinfo.h"
#include "esinfo/envinfo.h"
#include "mesh/mesh.h"
#include "basis/containers/point.h"
#include "basis/containers/serializededata.h"
#include "basis/utilities/packing.h"
using namespace espreso;
ElementStore::Elem... |
afcc0a0b81c3077889f0c2c9773f025aaa08a33c | aaf8f9e07a61c289fbee6c276e4c342b0a06a81b | /instrumentation/metrics_library/ddi/ml_ddi_configuration.hpp | 1beaa20d796c73c2e6359a57005799d32f36260c | [
"Intel",
"MIT"
] | permissive | intel/metrics-library | 17a02b7b8458eef6bf652ccd340bedc232f25264 | 021297fc732b2db368e0a60c3d4ce85bf8c16fb5 | refs/heads/master | 2023-09-01T19:43:21.418489 | 2023-06-13T10:24:43 | 2023-06-13T10:24:43 | 246,936,711 | 16 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 10,735 | hpp | ml_ddi_configuration.hpp | /*========================== begin_copyright_notice ============================
Copyright (C) 2020-2023 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
/*
@file ml_ddi_configuration.hpp
@brief Partially auto-generated file. Provides i... |
433d980edf50c6a45c6eb63f1b15362a733d0984 | 82cf3c60016315c8eebfdf3982ee84dfa6402462 | /project_euler_16.cpp | 173f15412a6f17c51e3a9e4c423f848ac48b9489 | [] | no_license | Dalakoti07/Maths-giggle | f42cdfe2b53838f3495c05880fa3984f0f10b353 | 848abad30bea99264a77a3a3f7973c48a3d61c57 | refs/heads/master | 2020-07-04T13:43:46.912158 | 2019-08-14T07:51:49 | 2019-08-14T07:51:49 | 202,302,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | cpp | project_euler_16.cpp | #include<iostream>
using namespace std;
int arr[1000]={0};
int main()
{
int size=1;
arr[0]=1;
cout<<"Enter the power of 2 ";
int n;
cin>>n;
int carry=0;
while(n--)
{
int i=0;
for(i=0;i<size;i++)
{
arr[i]=arr[i]*2+carry;
carry=arr[i]/10;
arr[i]%=10;
}
if(carry)
{
arr[i]=carry;
carry... |
fbfff2a17ea6c42b31e2ba5ccafa10fd39870b3b | 58e06ed8b8a70e833d6373daddcb9cba18813776 | /JM/SanTelmo/PlanPerfecto/RFID_rele/Sketchs hechos/ajedres/ajedres.ino/ajedres/ajedres.ino | 75f6bae50356295f65133443e581a599d3bba129 | [] | no_license | ftbalboa/erdevelopment | 7d37aa4ae33ffdfdbdb54a20ca27470d7503513e | e388f63f09cea15c81bd49e34af7bf543fe85b80 | refs/heads/main | 2023-06-24T16:04:11.380105 | 2021-07-28T23:15:50 | 2021-07-28T23:15:50 | 364,510,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 388 | ino | ajedres.ino | const int libros = 13;
const int rel = 10;
void setup() {
pinMode(rel,OUTPUT);
pinMode(A1, OUTPUT);
digitalWrite(A1, LOW);
pinMode(libros,INPUT);
digitalWrite(libros,HIGH);
Serial.begin(9600);
}
void loop() {
Serial.print(digitalRead(libros));
if(digitalRead(libros)){
digitalWrite(rel,HIGH);... |
140c4be6dfae84467031d72b4f852d6bead0145f | 4b8d671a2bc9c4e465792cac41d65940235576b0 | /CHAPTER 4/UVa 924/starter.cpp | 31a8d04b98e65ca51bdcf8ae54751c7e03acd2f4 | [
"MIT"
] | permissive | nebHailemariam/UVa | 7a0be9f3f89e78caaf6acc9ade646b675eaa77aa | bcac68e787d5ea6a466b9a531fbcd52758dd6d3b | refs/heads/master | 2023-02-19T11:07:56.229640 | 2021-01-19T20:14:08 | 2021-01-19T20:14:08 | 266,347,291 | 0 | 0 | null | 2021-01-19T20:14:10 | 2020-05-23T13:57:33 | C++ | UTF-8 | C++ | false | false | 1,616 | cpp | starter.cpp | #include <bits/stdc++.h>
using namespace std;
void BFS(int s, vector<vector<int>> &ADJ_LST)
{
vector<bool> visited = vector<bool>(ADJ_LST.size(), false);
vector<int> M_D = vector<int>(ADJ_LST.size(), 0);
queue<pair<int, int>> q;
q.push(pair<int, int>(s, 0));
visited[s] = true;
whi... |
e4aac61a3b0ec8148b2a434f2d989179a51b0016 | d23072274f9c42d4643827cfe671232af4ee693b | /1942-FeedTheBirds/include/Objects/Object.h | 52353f56401a9198e475151c97b71448fd21ff2e | [] | no_license | irstavr/1942-FeedTheBirds | ae12ec19e622d622cf501f6122340f0dd9fa12b6 | 78155116c69805adc1622e22c5bf569525b5555f | refs/heads/master | 2022-12-03T15:31:58.711688 | 2016-02-27T20:42:21 | 2022-11-15T22:43:54 | 48,119,225 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | h | Object.h | #ifndef _OBJECT_H
#define _OBJECT_H
#include <vector>
#include <memory>
class Rect {
public:
int x, y, w, h;
Rect(int _x, int _y, int _w, int _h);
Rect();
bool Rect::operator==(const Rect &other) const;
};
class Point {
public:
Point(int _x, int _y);
Point();
int x, y;
void setPoint(int _x, int _y);
};
#e... |
6d90f54aaa6dc44409d39d6353cb70186b2282b3 | 309d903fcfe4428778476b850a62cb62f0f17339 | /longest-repeating-character-replacement.cpp | 9ba4221b00c40da4e5bbe898e1afa05f71e18d84 | [] | no_license | zhoudayang/leetcode | f656369745baa972fb04d6e4a369e2b4903098bf | 6fe0dea34ec3b9727b1708e60a382097a4617caf | refs/heads/master | 2020-04-02T05:47:19.213115 | 2016-11-26T03:37:23 | 2016-11-26T03:37:23 | 43,750,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | cpp | longest-repeating-character-replacement.cpp | //统计当前滑窗内最多的字母,窗口宽度 - 最多字母数量 <= k,就可以继续尝试向右扩大窗口,从左边缩小窗口l++。
class Solution {
public:
int characterReplacement(string s, int k)
{
if (s.empty())
return 0;
int count[26] = {};
int result = 1;
++count[s[0]-'A'];
int l = 0;
int r = 1;
int max_val... |
d54c482e9303e78e1ee4ad18c6010d8de44b6c7f | ff010526baef07afb0424b13cac83ee12a0ed543 | /exp13_4.cpp | 2e038e68105f4a8dd958a28e6cdac85f9bf2e4d0 | [] | no_license | DeepFlying/C- | c89f92cbd5ccc5adf9694d55f74b43535e4ae11f | 3008d4d40b60293751d625665bbc2fc7a4454d6f | refs/heads/master | 2020-03-28T23:48:18.366476 | 2018-09-24T14:32:57 | 2018-09-24T14:32:57 | 149,309,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 506 | cpp | exp13_4.cpp | #include <iostream>
using namespace std;
int main()
{
int A[2][3]={{1,2,3},{4,5,6}},AT[3][2], i, j;
for (i=0; i<2; i++) //求矩阵A的转置
for(j=0;j<3;j++) AT[j][i]=A[i][j];
cout<<"A="<<endl;
for (i=0; i<2; i++) { //输出矩阵A
for(j=0;j<3;j++)
cout<<A[i][j]<<" ";
cout<<endl;
}
... |
eae37df0071157ad8e05190b9f100e2fbe49cefe | d6fb28c628cb484139d8478bec9d392ae7e9d395 | /libraries/indoorino/service-lights.h | 7bd5dae00beb764a381b658c42ad693e80955627 | [] | no_license | marza-pane/Indoorino | b9d1aaaa933c89d67da757839a297c3fcf599b7a | ae922c545115c1ff9ba56bd7e73c17e586bee1e1 | refs/heads/master | 2021-09-19T14:34:54.470692 | 2021-09-09T00:44:14 | 2021-09-09T00:44:14 | 160,186,148 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,307 | h | service-lights.h | /*
* service-lights.h
*
* Created 3.1.0 on: Aug 14, 2021 (SERVER)
*
* Author: n00b
*/
#ifndef _SRC_SERVICE_LIGHTS_H_
#define _SRC_SERVICE_LIGHTS_H_
#if defined (INDOORINO_NETWORK)
#include "../packets/ipacket.h"
#include "layout.h"
#include "services.h"
#include "timer.h"
// #include <deque>
#define SE... |
e848151349ae452ce44bf8cb78f581b582a367b1 | 0468c4edaa0d29002e70493c03fa1264d514d1e9 | /utils.h | bc630f9f94f664e522ea41523d4d6891bf620ff7 | [] | no_license | logty3/TEClib | 44c7a2a79abae7035f0ce1d1cac1fc9f6d157223 | 404d8e56b38c0773c73967d916df154b3a0e0d84 | refs/heads/master | 2022-12-26T03:26:58.941160 | 2020-10-14T18:16:49 | 2020-10-14T18:16:49 | 298,776,927 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | h | utils.h | #ifndef UTILS_H
#define UTILS_H
#include <vector>
#include "models.h"
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/greg_date.hpp>
std::vector<double> RK4(std::vector<double>(*der)(double, std::vector<double>), std::vector<double>&, double& t1, double& t2,const double& h);
... |
ee886996daf475b99b8c9c8b0a57044b891c0ca6 | 989b34c46586ce2b769afc334e53ad310ccf4ed7 | /Hubris/HVariables/HVariablesFileSystem.h | 74fc5cb20c1a62640e5af2fcfb135aeac9cc69ae | [
"Unlicense"
] | permissive | DavidCoenFish/ancient-code-1 | ed51ae1cc75cea7ed77db111d46846d36aac7975 | 8d76c810209b737bfc1ce996611807f62122fb41 | refs/heads/master | 2020-03-21T10:18:51.234695 | 2018-06-24T01:24:48 | 2018-06-24T01:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | h | HVariablesFileSystem.h | //file: Hubris/HVariables/HVariablesFileSystem.h
#ifndef _H_VARIABLES_FILE_SYSTEM_H_
#define _H_VARIABLES_FILE_SYSTEM_H_
#include "Hubris/HCommon/HCommonType.h"
namespace Hubris
{
struct HVariablesFileSystem
{
/////////////////////////////////////////////////////////////////
// disabled
private:
~HVariablesF... |
9d808d162bedb24e0d646586774dbb0066b2e0c7 | 3d4d930bafe20349d7cc9f084a803800204380fb | /THE_DEV_GAME/PROYECT/THE DEV GAME/THE DEV GAME/KeyboardController.h | c56771b690c4b7d84320c63b7b51193cdad5f1bf | [] | no_license | HafWalker/TheDevGame | e93b66fc72bdab4ae68de499bb05e1e8b709563a | 424b056b40ba5fd26cf4a4f427b3c885d1014f2a | refs/heads/master | 2023-08-05T11:53:29.174662 | 2021-09-24T13:42:06 | 2021-09-24T13:42:06 | 388,254,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | h | KeyboardController.h | #pragma once
#include "Game.h"
#include "ECS.h"
#include "Components.h"
class KeyboardController : public Component {
public:
Transform* transform;
void init() override {
transform = &entity->getComponent<Transform>();
}
/*void update() override {
if(Game::ev.type == sf::Event::KeyPressed) {
switch (Game... |
6ac39344473ca215365f220986bf189023b853d2 | 895e2a73a0e7f9a4380cde464b1907654ae43b3c | /arquivos_exemplo/11-leitura_escrita_em_arquivos/40-LerConteudoDeArquivosComC++.cpp | c235ee2b43fa2ee5c0a32373b625efd2b0b321a4 | [] | no_license | brcabral/curso_c_cpp | 94747f1a78d1a9be98bda2cca0e890f31382c970 | 6c7418b66a4f1859da9fe2b705fc3e074356857c | refs/heads/master | 2021-07-01T07:44:45.322449 | 2020-08-19T02:38:42 | 2020-08-19T02:38:42 | 133,731,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | 40-LerConteudoDeArquivosComC++.cpp | #include <fstream>
#include <iostream>
using namespace std;
int main() {
//Carrega o arquivo
ifstream input("trabalhando-com-arquivo.txt");
//String que receberá o conteúdo do arquivo
string textoArquivo;
//Percorre o arquivo lendo linha por linha
for (string linha; getline(input, linha);) ... |
22afb92b18e3d2d2c7079728ee21ef4aba1a57b0 | 1e49fb228c61da3ba57043cb083ce85df3efd16c | /Source/Pegasus/RenderSystems/DeferredRenderer/DeferredRendererSystem.cpp | f3aa6c84b676ec10e19469377d9dc571cf20481e | [] | no_license | xubingyue/Pegasus | 0597bd537f7074355b2caef28b812bb3fcddcf17 | 41c4a21df2d0777a18ae7f2cae7b345ade094ee0 | refs/heads/master | 2021-01-23T10:19:52.184169 | 2017-05-31T05:30:16 | 2017-05-31T05:30:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,005 | cpp | DeferredRendererSystem.cpp | /****************************************************************************************/
/* */
/* Pegasus */
/* ... |
bb10e907d069fd3bf85838398de013644ad66172 | af8be40deecb432e1b7506f0b2a3938ff2fdf930 | /src/AIPaddle.cpp | 17b93c2c5ee0ec45b1fad0a3dc33bc7d8e75dd11 | [] | no_license | mihhaiii/pong-game | 7f633fc851f80abe45b6bde09884c3277a3c6d13 | c278c0903c6d58ccde0d75da50e1b2d5106af0a0 | refs/heads/master | 2016-09-14T06:29:34.259907 | 2016-05-05T21:58:00 | 2016-05-05T21:58:00 | 58,132,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,319 | cpp | AIPaddle.cpp | #include "AIPaddle.h"
#include <iostream>
#include "Game.h"
#include "GameBall.h"
AIPaddle::AIPaddle()
: _velocity(0), _maxVelocity(600.0f)
{
//ctor
Load("images/paddle.png");
// assert(IsLoaded());
GetSprite().setOrigin(GetSprite().getLocalBounds().width/2, GetSprite().getLocalBounds().height/2);
// ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.