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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2838d7723bec10af122648d89ddec7b22e52cd2 | 3e265c6ef6af8148c7f040e48543aebe76434fd1 | /Recursion Advanced/SelectionSort.cpp | 32445d3486820fa3faa6cfc7d07da734f495933f | [] | no_license | RishabhAttri/Codes | 3332c10d8833fa547e971784034568f7136b7798 | 0e00d4c383843f5102ca472e2356b116544387b9 | refs/heads/master | 2020-05-04T12:50:23.387684 | 2019-04-02T18:39:03 | 2019-04-02T18:39:03 | 179,137,410 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | SelectionSort.cpp | #include <iostream>
using namespace std;
void SelectionSort (int *arr, int n){
if (n<=1) return;
int smallestIndex=0;
for (int i=1;i<n;i++){
if (arr[i]<arr[smallestIndex]) smallestIndex=i;
}
swap(arr[0],arr[smallestIndex]);
SelectionSort(arr+1,n-1);
}
int main(){
int arr[]={7,13... |
df1159eb60db63126639b5e6fb08cb32fa1eca1e | e680ea51931bd531c6c7ccd56d364585d60b032e | /SceneScrollerTeatheredCloth.cpp | 198b33d77f9961710fa3f9deebf2469896b0c882 | [] | no_license | yuyuyu00/ClothScrollerDemo | f13b41b7c7a49a1a5f89dee1537f8bee3b8ab7b6 | af315910b02eaa749fad2acf2b45f5a00c4786fc | refs/heads/master | 2021-01-15T18:59:12.387733 | 2013-08-22T11:30:45 | 2013-08-22T11:30:45 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 5,876 | cpp | SceneScrollerTeatheredCloth.cpp | // SceneScrollerTeatheredCloth.cpp - Cloth teathered on four corners, being blown by wind from
// directly behind, with a scrolling message imprinted on
// the cloth - implementation.
#include "SceneScrollerTeatheredCloth.h"
CSceneScrollerTeathered... |
a57f8a745f9667feb9b5f36167077433a696879c | 7ca198de2cd10cfb7c313609f2b0f10ac169e8a9 | /src/Character.hh | 46756f101009242d7cb9c5c75f2e20d419147367 | [] | no_license | atikf3/pac-man | 147d7800c454295e5911d581f3ab0b50f2ba5b47 | 4212512e9a47a3d5b6ce7d6dbc3b0e454e71e11b | refs/heads/master | 2023-03-29T11:46:00.630569 | 2021-04-02T04:54:33 | 2021-04-02T04:54:33 | 354,032,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 797 | hh | Character.hh | #ifndef CHARACTER_HH
#define CHARACTER_HH
#include "AbstractEntity.hh"
#include "IObservable.hh"
#include "IObserver.hh"
#include "json.hpp"
using json = nlohmann::json;
class Character : public AbstractEntity, public IObservable
{
private:
double _x;
double _y;
int _life;
std::s... |
e6cc1c726ab016a85ecc4eab241ef892b06ac079 | 7f1a4ca6e2e51c560e27e84b52908cae77c2eac6 | /OJ/CSES/Cycle Finding.cpp | 9b63dce2de4c5699d1503daa927242d6524162e2 | [] | no_license | gabrielmorete/Competitive-Programming | ebab7d03c341c5a90b4536564122feb8183d2923 | 724771c6f3cf20758bfd417f1138f02ae230e88b | refs/heads/master | 2023-03-04T14:09:43.768784 | 2023-02-25T22:53:14 | 2023-02-25T22:53:14 | 206,603,364 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,589 | cpp | Cycle Finding.cpp | #include "bits/stdc++.h"
using namespace std;
#define pb push_back
#define fst first
#define snd second
#define fr(i,n) for (int i = 0; i < n; i++)
#define frr(i,n) for (int i = 1; i <= n; i++)
#define endl '\n'
#define gnl cout << endl
#define chapa cout << "oi meu chapa" << endl
#define dbg(x) cout << #x ... |
f761a75d18607c33e85f402e2f8130acf1ebb083 | 1a66e03b11ec7a2967e5dda4b64702ae9d2f6f52 | /acmp/string/password.cpp | 59397fb3a739c46cd9c6be8a6376a0ecc87c16f3 | [] | no_license | Bonaparto/CPP-Codes | 42dda7470788a151ef542dd49bcd33097d477ecb | 7ae23eee1f41ca2d130ad94fd69686b0aad13677 | refs/heads/main | 2023-08-04T07:33:53.859954 | 2021-10-02T17:21:00 | 2021-10-02T17:21:00 | 347,952,241 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 953 | cpp | password.cpp | #include <iostream>
using namespace std;
int main(){
int n, A, B, C;
cin >> n >> A >> B >> C;
string s = "";
for(int i = 0; i < A; ++i){ cout << char('A' + i % 26); s += char('A' + i % 26);}
for(int i = 0; i < B; ++i){ cout << char('a' + i % 26); s += char('a' + i % 26);}
for(int i = 0; i < C; +... |
c25da208e3d84d5a0acaf8ff022d40c2f83eca97 | c9f9cdea7b401c4be29c70dd0cda8972811f833a | /MyHash.h | f65ef212e7bcec485a912c44d76413e2f7c90bf6 | [] | no_license | jenny-l-li/Decryptor | 686484d3a9660c855090e23299418558911d4233 | 0f26c7d22f4fd597ed4dd7b7cadc771989b76f15 | refs/heads/master | 2020-03-31T19:26:15.124460 | 2018-10-10T22:29:10 | 2018-10-10T22:29:10 | 152,497,414 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,040 | h | MyHash.h | //
// main.cpp
// proj4
//
// Created by Jenny Li on 3/8/18.
// Copyright © 2018 Jenny Li. All rights reserved.
//
#include <iostream>
#ifndef MYHASH_H
#define MYHASH_H
template<typename KeyType, typename ValueType>
class MyHash
{
public:
MyHash(double maxLoadFactor = 0.5) //O(B)
: m_maxLoad(maxLoadFactor... |
e025340593385efc9d4b7a67481f3a95dfeee1e3 | e05c6343d03ea5d015c0a805e9b4ff334e4063b2 | /opengl/inc/OpenGLFBRenderTarget.hpp | ef5933d7d934fa85134842cd5319ef907b503542 | [] | no_license | nguyenvuducthuy/3Dengine | a74e4ea43d1461f4b92e0f3f7f0a5e2e7cf3f9b5 | 8d0d38a5f1373c1ba632386657965679e026fd0b | refs/heads/master | 2020-05-21T21:22:48.286975 | 2018-12-10T11:14:56 | 2018-12-10T11:14:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,327 | hpp | OpenGLFBRenderTarget.hpp | /**
* @class OpenGLFBRenderTarget
* @brief Render target for OpenGL. A render target allows to render objects to it
* instead of to the main screen. Then the target can be rendered to the main screen as
* a texture
*
* The FB render target uses no effect-shader and performs no blending,... |
1959ed98ce89eed655eaa1a573231c99418159a8 | 1ea5d69824f2d3fa8cdbc106e7af2ce299607367 | /Aufgabe5/Aufgabe5.cpp | 692e59418af5e48aa065119a0ead53e5fa2fc6fe | [] | no_license | MoritzMessner/CLion | 26ef0ce1c946e6eb21da01deed7f8f646e5faed9 | 4d2239342251ac1c5d614e3bb242ee7f300192ca | refs/heads/main | 2023-06-04T12:43:14.750240 | 2021-06-22T07:59:34 | 2021-06-22T07:59:34 | 363,932,266 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,345 | cpp | Aufgabe5.cpp | //
// Created by moritz on 20.04.2021.
//
#include "Aufgabe5.h"
#include "Date.h"
#include "Person.h"
#include "Friends.h"
#include <iostream>
#include <cassert>
namespace AufgabeFive {
void test_person_date() {
Date test_date(1992, 8, 16);
Person a = Person("Gustav", "Hüha", test_date);
... |
c8d2db478c2428a7f2128ded626f61beed6eefda | fa09f9ae0eee4a1cad0d0d65b9e8b85e8be200eb | /Progra1_P2.cpp | da0e0594d6157807a39648461cfb5042b7824bc4 | [] | no_license | jcdlacruz/umg-examen-final-p1-sa | 6d3c785952f407b884a477c86d926c9c7a8f7a56 | 1500e5a3006a87cd4a77d4f4ade058272a3ef5b0 | refs/heads/master | 2022-10-08T23:58:49.063781 | 2020-06-06T01:52:09 | 2020-06-06T01:52:09 | 269,555,629 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,109 | cpp | Progra1_P2.cpp | #include <fstream>
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
void mp();
void ejercicio01();
void ejercicio02();
void ejercicio03();
void agregarRegistro01();
void agregarRegistro02();
void agregarRegistro03();
void descargarRegistro02();
void descargarRegistro03();
void reporte0... |
46a127855ef909ab7ec96d9aa3ba987e2684b28c | 5196c4a1265ea3584dc5b8739fb4f62d1723cbb1 | /1553_api_project/src/zynq_1553b_api.cpp | dfd2c7217b09bd23fa340e2546ed67761f1b434e | [] | no_license | yinhonggen/1553b | 88876f3a427c3d22ad31da2d583a528929db7f02 | ab4cc2f4d98764fb65e7cb5fc42c5b5f610aa083 | refs/heads/master | 2021-06-20T22:30:13.497839 | 2017-06-30T09:30:59 | 2017-06-30T09:30:59 | 90,962,395 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 8,883 | cpp | zynq_1553b_api.cpp | #include <string.h>
#include "zynq_1553b_api.h"
#include "common_bc.h"
#include "genmti.h"
#include "BrAda1553B_RT.h"
#include "actel1553io.h"
/*定义全局类,包括BC,RT,MT的类*/
BrAda1553B_RT adaRT;
BrAda1553B_BC_COMM adaBC;
GIST_MT2 adaMT;
/*************************************************************
*函数名 :z... |
b01ecefbee720394388cbe24038c90f1af6e3b26 | baa58c1bb63456da866f1a40123161036d6f7d29 | /Coding/Extra/LinkList.h | f5f3721b27749a8f1cd0fbf0d79b3879722a45f9 | [] | no_license | sachin5284/CodingCPP | 4b7815d8959acb18ae67ac5d0e408c97e28dd478 | 2cc7449a8085548f45d2459fc86ef7dd5006d0aa | refs/heads/master | 2021-06-19T12:38:38.803337 | 2019-05-31T11:45:32 | 2019-05-31T11:45:32 | 149,019,195 | 0 | 0 | null | 2021-01-05T07:42:17 | 2018-09-16T17:30:14 | C++ | UTF-8 | C++ | false | false | 1,856 | h | LinkList.h | #include<iostream>
using namespace std;
struct Node
{
int data;
Node* next;
Node(int val)
{
this->data=val;
this->next=NULL;
}
} ;
class LinkList
{
private:
Node* root;
Node* iterator;
public:
LinkList(int val)
... |
6cb6c318945c08cba86fbc65c4efe6eefaccb72e | 5d844df52b8297602c3a92a670ef4eb4bb18da07 | /SearchBusinessByEmailOrWebsite.cpp | 90abeee495f1a5e3cdd4e8d632efa940774953e7 | [] | no_license | ChristoferBerruz/DirectoryManagementSystem | 02f78fa6af22523f8067216bbc36347c44fc3536 | 453713277598612523f45b770156b62baa8ad742 | refs/heads/master | 2023-04-11T06:00:46.391704 | 2021-05-03T02:48:32 | 2021-05-03T02:48:32 | 357,252,042 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,369 | cpp | SearchBusinessByEmailOrWebsite.cpp | #include "SearchBusinessByEmailOrWebsite.h"
/// <summary>
/// Searches a business contact that matches either a email ending or website domain.
/// Returns results aggregated by Category
/// </summary>
/// <param name="contacts"></param>
/// <returns></returns>
map<string, int> SearchBusinessByEmailOrWebsite::Search(c... |
d4c2a14251a221a6e470f9aa003357349524c520 | 4f267de5c3abde3eaf3a7b89d71cd10d3abad87c | /ThirdParty/Libigl/igl/false_barycentric_subdivision.h | 98426b57253363add5fcfddde3b2d0e133caff4d | [
"MIT"
] | permissive | MeshGeometry/IogramSource | 5f627ca3102e85cd4f16801f5ee67557605eb506 | a82302ccf96177dde3358456c6dc8e597c30509c | refs/heads/master | 2022-02-10T19:19:18.984763 | 2018-01-31T20:09:08 | 2018-01-31T20:09:08 | 83,458,576 | 29 | 17 | MIT | 2022-02-01T13:45:33 | 2017-02-28T17:07:02 | C++ | UTF-8 | C++ | false | false | 1,265 | h | false_barycentric_subdivision.h | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
//
// 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://... |
1e477f58e92bc53f3fd9a2529ec0e7949b5cd1a1 | 03c255c3ef68e7f0a484daaf2356aefef5f1f0e5 | /main.cpp | 55d5528db426446a590be4b700f302c46cf8ad96 | [] | no_license | kajetanoss123/Modbus_Tester | 7cedd41941267d2fe5f8788d583e91001538ce37 | cd052e22479c45da227e2a9a5315b28d2b2d4777 | refs/heads/master | 2020-12-07T18:07:33.312303 | 2020-01-09T09:06:22 | 2020-01-09T09:06:22 | 232,766,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 954 | cpp | main.cpp | #include "ToshibaVFS15.h"
#include <thread>
#include "modbus.h"
int main() {
// ToshibaVFS15 inverter = ToshibaVFS15(8899, 5, "192.168.106.165");
//
// inverter.tryConnect();
//inverter.readStatus();
// inverter.start();
// inverter.setFrequency(20);
// std::this_thread::sleep_for(10s);
//inver... |
b81ceda256148e1f8eea40d751976afb05a3bae7 | bc01d89e3b77b9b60afd6f5f8fcad5675b813f8e | /natfw/natfwstunplugin/tsrc/ut_cnatfwstunplugin/src/ut_cnatfwstunconnectionhandler.cpp | d0b3eb22f371671ac44190ced395a10d4897a147 | [] | no_license | SymbianSource/oss.FCL.sf.mw.ipappsrv | fce862742655303fcfa05b9e77788734aa66724e | 65c20a5a6e85f048aa40eb91066941f2f508a4d2 | refs/heads/master | 2021-01-12T15:40:59.380107 | 2010-09-17T05:32:38 | 2010-09-17T05:32:38 | 71,849,396 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,332 | cpp | ut_cnatfwstunconnectionhandler.cpp | /*
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.h... |
6c364d42568104c6ad573b05a892ed46babdc86c | 2962f164cecb440ecd905ab9f3cc569c03a01ad5 | /RtspPlayer/assemblies/sunell/include/NvdcDll.h | fa24b1da67dc04d47951c044ac59f9537db93008 | [] | no_license | paxan222/hello-world | 5ef9bd04a5c4337c1403a04973e2c0c11665bb26 | c55c60e0f72a04e1e2560dc19c2a6bbd7e8b430f | refs/heads/master | 2020-12-11T21:09:30.200433 | 2017-05-04T08:39:53 | 2017-05-04T08:39:53 | 55,044,669 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 92,814 | h | NvdcDll.h | // NvdcDll.h : NvdcDll DLL 的主头文件
//
#ifndef _NVDCDLL_H_
#define _NVDCDLL_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "SNPlatOS.h"
#include "SN_Struct.h"
#include "SNError.h"
#if (defined(WIN32) || defined(_WIN32_WCE))
#include "EventConst.h"
#endif
#ifndef byte
typedef unsigned char byte;
#endif
using na... |
5bb3ca03c53031b4466ab7089b8ecc4b1e5d5c30 | d56bfa586706bd10853051597453e7fae0d993e5 | /src/unit.cc | 590ff2b91475fe9d0c86a6a7ce57e9e6fa3addaa | [] | no_license | sxy799/TEST | 59cc45b3a9c7b4367d31dfff7ecc88a0e77428b9 | a939012453c5a3885cc13d8e5ba6621f3126f993 | refs/heads/master | 2020-03-07T02:23:40.695227 | 2018-03-28T22:58:16 | 2018-03-28T22:58:16 | 127,208,021 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,773 | cc | unit.cc | #include <math.h>
#include "unit.h"
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
double newton_sqrt(double n)
{
if (n < 0) {
printf("你输入的数是负数不能被开平方\n");
return 0.0;
}
double x = 1.0;
while(fabs(x * x - n) > EPSLON)
{
x = x - (x * x - n) / (2 * x);
}
... |
2299da5871a301e4a31f82b94beb8473ed53b3ae | fc79fe29914d224d9f3a1e494aff6b8937be723f | /Libraries/Rim Sound/include/rim/sound/filters/rimSoundParametricEqualizer.h | d996d29197b7c95a5c626faf522602433613b8ca | [] | no_license | niti1987/Quadcopter | e078d23dd1e736fda19b516a5cd5e4aca5aa3c50 | 6ca26b1224395c51369442f202d1b4c4b7188351 | refs/heads/master | 2021-01-01T18:55:55.210906 | 2014-12-09T23:37:09 | 2014-12-09T23:37:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,431 | h | rimSoundParametricEqualizer.h | /*
* rimSoundParametricEqualizer.h
* Rim Sound
*
* Created by Carl Schissler on 11/30/12.
* Copyright 2012 __MyCompanyName__. All rights reserved.
*
*/
#ifndef INCLUDE_RIM_SOUND_PARAMETRIC_EQUALIZER_H
#define INCLUDE_RIM_SOUND_PARAMETRIC_EQUALIZER_H
#include "rimSoundFiltersConfig.h"
#include "rimSoundF... |
5b5b984272da44db22d8fa1e0993d001ddb6b127 | 7c617b4fcb1970b0e1540b730c1b6580714012aa | /Classes/CompControllerTest.cpp | 78d68d4ac4ddfd88daf20f1798854a03d7cea313 | [] | no_license | YoungForLong/TDDEMO | d93036322200ff78f0309f6ec33d3d65f59855cf | cdf6f127c12b39bd32fc55ccaa545b2f483f3a73 | refs/heads/master | 2021-01-11T12:06:55.828820 | 2017-03-23T09:28:51 | 2017-03-23T09:28:51 | 76,558,377 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,229 | cpp | CompControllerTest.cpp | #include "ComponentDependencies.h"
#include "EntityBase.h"
#include "Cell_Space_Partition.h"
#include <numeric>
bool CompControllerTest::init()
{
if (!root)
return false;
return true;
}
void CompControllerTest::update()
{
if (_curKeyState == 0)
return;
auto cm = root->getComponent<CompMoving>(comp_moving);
... |
91565d05a85b3f15e3b7e573ea9c2d01304796ac | 276c472235c963c01160275830fb68a68bc78eed | /POJ/POJ3666.cpp | 6b3a701e521303421580e630fc9d3afb7485088b | [] | no_license | MicDZ/Code | 057f5ef39e6b296d3d38897f20a7fae1edf37fa9 | 6665d48c742fd6e80f87b5ef23c030ec7f60fd2f | refs/heads/master | 2022-12-07T20:33:49.153077 | 2022-11-28T03:49:35 | 2022-11-28T03:49:35 | 218,696,992 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | POJ3666.cpp | #include<iostream>
#include<cstdio>
#include<queue>
#include<cmath>
using namespace std;
priority_queue<int, vector<int>, greater<int> > q;
priority_queue<int> p;
int ans1,ans2;
int my_abs(int x) {
if(x>0) return x;
else return -x;
}
int main(){
int n;
cin>>n;
for(int i=1; i<=n; i++) {
int... |
542cdd14726e6a3f696a25b416a5e8a7b1e7e044 | 9c400e7e3a84f4657af32d1fbaf7da0572ccca5b | /applications/gps/GPSsysc/src/GUI_HEARTBEAT_class.cpp | b7b9a84bedac064f9fdbefc0d43c72b0b69dca05 | [] | no_license | xtuml/models | 1986868b6a12f92017588c3a38f894a1bc7c00bb | 34dc3e28318207e17a0e532bc81f88fef8b011d5 | refs/heads/master | 2023-07-20T14:38:42.048389 | 2023-07-06T14:14:44 | 2023-07-06T14:14:44 | 6,943,299 | 14 | 98 | null | 2023-07-06T14:14:45 | 2012-11-30T17:59:41 | C | UTF-8 | C++ | false | false | 3,835 | cpp | GUI_HEARTBEAT_class.cpp | /*----------------------------------------------------------------------------
* File: GUI_HEARTBEAT_class.cpp
*
* Class: UI Heartbeat (HEARTBEAT)
* Component: GUI
*
* (C) Copyright 1998-2012 Mentor Graphics Corporation. All rights reserved.
*----------------------------------------------------... |
678d693915c32acb4971a1ac20ffb84c84f2f997 | 5aff8752c20fc8f57d28cff74f6b70bae3b836c6 | /src/detector.cpp | 3a90753863868eab38d9edbaf3e32b7125aae8ee | [] | no_license | rll/proctor | a4e410a6d6d1f48822edbcec806529ed83800397 | 3d1f38d34123734ddd0409f3ac2ea6e750dd0c22 | refs/heads/master | 2016-09-06T15:38:01.091393 | 2011-10-24T17:46:29 | 2011-10-24T17:46:29 | 2,258,604 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,464 | cpp | detector.cpp | #include <pcl/features/fpfh.h>
#include <pcl/io/pcd_io.h>
#include <pcl/keypoints/uniform_sampling.h>
#include <pcl/registration/icp.h>
#include "proctor/detector.h"
#include "proctor/ia_ransac_sub.h"
#include "proctor/proctor.h"
/** create the viewports to be used by top candidates */
class create_viewports {
public... |
96f1d1011f85f66a316cca741466492b23e5479b | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Generators/GeneratorFilters/src/FourLeptonMassFilter.cxx | 93dadaec833af29bb5d6e30169f87c54128bf79d | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,996 | cxx | FourLeptonMassFilter.cxx | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#include "GeneratorFilters/FourLeptonMassFilter.h"
FourLeptonMassFilter::FourLeptonMassFilter(const std::string& name, ISvcLocator* pSvcLocator)
: GenFilter(name,pSvcLocator)
{
declareProperty("MinPt", m_minPt =... |
948bed53a5e74c3bfc9faa38667a7032bdc26f56 | f957a687dbb54e40f3f6ff1a57e0a172822d903d | /CPU.h | 72403f0a845d3630ef5bd62258e01e8750c96e77 | [] | no_license | tectronics/theft | c5e5ad252265355d6609bbbc111858d75d310831 | 5bd20d3e6e2b7adfe334e46810722a81892fa56b | refs/heads/master | 2018-01-11T15:15:32.277740 | 2008-05-31T21:43:02 | 2008-05-31T21:43:02 | 45,602,492 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 252 | h | CPU.h | #pragma once
#include "player.h"
#include "define.h"
class CCPU :
public CPlayer
{
public:
CCPU(void);
~CCPU(void);
int GetState() {return m_State;};
void SetState(_CPU_STATE a) {m_State = a;};
private:
_CPU_STATE m_State;
};
|
085f6ee82828b4c32a67f84ec2a7d084016f98df | 2af28d499c4865311d7b350d7b8f96305af05407 | /inference-engine/thirdparty/movidius/tests/XLink/cases/XLink_tests_case.hpp | 26e223717c177c4b6c32184d69b8ff29cabae278 | [
"Apache-2.0"
] | permissive | Dipet/dldt | cfccedac9a4c38457ea49b901c8c645f8805a64b | 549aac9ca210cc5f628a63174daf3e192b8d137e | refs/heads/master | 2021-02-15T11:19:34.938541 | 2020-03-05T15:12:30 | 2020-03-05T15:12:30 | 244,893,475 | 1 | 0 | Apache-2.0 | 2020-03-04T12:22:46 | 2020-03-04T12:22:45 | null | UTF-8 | C++ | false | false | 3,491 | hpp | XLink_tests_case.hpp | // Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "gtest/gtest.h"
#include "XLink.h"
#include "XLink_tests_helpers.hpp"
//------------------------------------------------------------------------------
// class XLinkTests
//-----------------------------... |
ed2bf2f901d855e4c172897a5f72c498615381d6 | 00f1ccbe095de1611e48a91b199c0edc93220e25 | /SetOnceVariable_Template.h | f149cb4cd819a40fc8d60e1f0539460d3f55d4ee | [] | no_license | romintomasetti/Effect-of-electromagnetic-radiation-on-the-brain | 81e6bb5e5b2f3761188b8f3779055413fefe566d | 20fbec2c3768205068288ffbaeecd8c037fb41e4 | refs/heads/master | 2018-07-17T06:46:49.186204 | 2018-06-01T18:03:03 | 2018-06-01T18:03:03 | 120,669,952 | 3 | 4 | null | 2018-04-26T11:53:43 | 2018-02-07T20:50:01 | C++ | UTF-8 | C++ | false | false | 1,201 | h | SetOnceVariable_Template.h | /* This is a template for providing variables that can be set only once */
/* That is, when it has been set once, it can never be changed. */
#ifndef SETONCEVARIABLE_TEMPLATE_H
#define SETONCEVARIABLE_TEMPLATE_H
#include <iostream>
#include <typeinfo>
#include <stdio.h>
#include <stdlib.h>
template<typename T... |
33de488ab6eb00600d33aa6c8bf6ef74cb0d27a2 | 13c905cf85bdcbfbbbaec327c06b07056393cd36 | /presentations/work-summer.tpp | 2eec8bf08111ec44dabecfc79428621f9ce04014 | [] | no_license | vrthra/java-clones | 5292619af242a816601062771d21085450dafea8 | e276fc3040f30ebd9cd238b61d0b30628f4b238a | refs/heads/master | 2021-01-20T07:15:25.700189 | 2012-10-24T01:07:33 | 2012-10-24T01:07:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,861 | tpp | work-summer.tpp | --title Test Recommendation
--author Rahul Gopinath <gopinath@eecs.oregonstate.edu>
--##--footer Repository: https://github.com/vrthra/java-clones/
--newpage Why
--heading Why
--horline
* We are lazy
---
* A survey on programmers found that very few actually test code.
* Testing is tedious and boring[1], not worth th... |
ce452e99c78e4c08e23f21783e038ad9527e043e | 2e3bc5b5c60ed2d5cbdf7b66f6ffe2502207e605 | /SMD0080/068_objLoaderDesignPatterns/src/loader/textFileParser.cpp | 9d811af93fc275dd6ed6a825ecc8a927762be100 | [] | no_license | Tiago24/SMD | c120daca5b6be0b07773e2b5d9e8f15ceecbeff6 | ba24efa31ebf3c439749803eb1d42cf635bc8099 | refs/heads/master | 2020-03-18T07:04:18.932213 | 2018-05-19T02:30:29 | 2018-05-19T02:30:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,819 | cpp | textFileParser.cpp | #include <loader/textFileParser.h>
// --------------------------------------------------------------------------
// LineBasedParsingCommand
// --------------------------------------------------------------------------
LineBasedParsingCommand::LineBasedParsingCommand( const char* pref)
: _prefix(pref)
{
}
// ---------... |
631a423cc933ee7af867d576515b51f0ce90792d | e55f8545f4a133a63800297bc83e3080082b7a11 | /include/Tcp_server.h | 5dc68958da373db3fe207d182ca02d4956ae8219 | [] | no_license | frankwyw7/Calliope | c0a7e523308f835ed241558fd14a1d4d7c2ea878 | 8d5e1543c275257f469dacc8c49ec9469a78fce4 | refs/heads/master | 2021-05-31T22:29:48.282706 | 2016-08-12T19:17:36 | 2016-08-12T19:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 908 | h | Tcp_server.h | #ifndef __TCP__SERVER__H__
#define __TCP__SERVER__H__
#include <memory>
namespace honoka
{
class Reactor;
class Acceptor;
class Configuration;
class Connection_processor;
class Tcp_server
{
public:
Tcp_server(int thread_pool_size = 1);
//读取json,更新config,reactor,acceptor更... |
0b020e54011cfd5edb34390320df7073a168855a | ee7ea642b0b6e4d64804efd71b342951f74ea7c8 | /brep_application.cpp | 13e358b438ee34a1bb8080bad421ffe75bb97fad | [] | no_license | yamanatoo/brep_application | 4428c2808b81537fb7b77538cdfb7136463ea498 | d9c91e70558d68e1f3d0c5bf47ff470b443356d7 | refs/heads/master | 2022-11-16T12:21:34.216465 | 2020-07-15T13:08:56 | 2020-07-15T13:08:56 | 279,871,926 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,575 | cpp | brep_application.cpp | //
// Project Name: Kratos
// Last Modified by: $Author: hbui $
// Date: $Date: Oct 25, 2014$
// Revision: $Revision: 1.0 $
//
//
//Change log:
// + 28/7/2015: create brep_application.cpp
// System includes
// External includes
// Project includes
#include "brep_appl... |
fbc94e1480eb194c3ec53c0a99519cd0b2d1b029 | 5b79e29dd7be6ca7577b0e84a2c906fade7e0b69 | /optional.hpp | d50727cd0ef1d032352ba306420d8882ac899bb8 | [] | no_license | eugeneyche/index-pool | 18f6dd6fbd500d7569d48412aa426c942c3b0bd4 | 2c1cb8f1b4da1ad22dbe390af2cb370ba7d9a498 | refs/heads/master | 2022-12-22T18:23:52.538418 | 2016-12-17T08:23:30 | 2016-12-17T08:27:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | hpp | optional.hpp | #pragma once
#include <memory>
#include <stdexcept>
#include <sstream>
template <typename T>
class Optional
{
public:
Optional();
Optional(const T& value);
Optional(T&& value);
Optional(const Optional& other) = default;
Optional(Optional&& other) = default;
virtual ~Optional() = default;
Optional& operator=(con... |
2d4c17b564c36c00540872ffde0f450b11baf1a0 | 47cec727aa95560ac54184fccab50d1a6c727083 | /ReEngine/src/Runtime/RHI/IShader.h | b361e44c906cfce58237cee6e9e2898bf98cd499 | [] | no_license | kingdomheartstao/Renderer-Learning | 303cd8f054178dfdc629d81f3569c7fcb2b1eb1d | b35f963414a4dabf6d2fd9ab7dee278ecf38284a | refs/heads/master | 2023-07-28T01:07:32.919132 | 2021-09-10T09:24:46 | 2021-09-10T09:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,062 | h | IShader.h | #pragma once
#include <string>
#include <vector>
#include "IRHIResources.h"
#include "RHI_API.h"
class Matrix4x4;
class Matrix3x3;
class IShader : public IRHIResources
{
public:
//Set Uniforms
virtual void SetUniform1f(const std::string& name, float v0) = 0;
virtual void SetUniform2f(const std::string& name, floa... |
d2bcdce9b8142a618acf91296befa84018b34fbc | 3a7b62c2d94746d2a1309e87a5222b90c93f6590 | /PlanetaEngine/src/planeta/core/InputUtility.hpp | 1f3f6d90d7c992430a3739db06cd6f216efcbc5a | [
"MIT"
] | permissive | CdecPGL/PlanetaEngine | 8d49b5a3514be2cbb9f40edd0753d6027c00dbf1 | b15d5b13c3b2aee886d3f92d13777f1b12860260 | refs/heads/master | 2021-05-11T20:20:09.199919 | 2018-01-14T13:42:38 | 2018-01-14T13:42:38 | 117,433,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 443 | hpp | InputUtility.hpp | #pragma once
#include<string>
#include"InputDefinitions.hpp"
namespace plnt {
namespace private_ {
namespace utils {
std::string ConvertKeyToString(Key::type);
std::string ConvertPadToString(Pad::type);
std::string ConvertButtonToString(Button::type);
Key::type ConvertStringToKey(const std::string&);... |
c2b91e9118cf4dcf892238552b7975785f7be335 | b0893dbcad94f7677871bd77a1f7f9abfc40cc46 | /example/check/geometry/ellipse/check.cpp | 63b13f7b0a3c9bb41b34aef9977e6d30a9c79ade | [
"Apache-2.0"
] | permissive | dmilos/math | 71124fc3e750eae5bf5fb787ff371573bb9e2464 | 41131d481d8112eda4f71a86a0effe7c3154a17e | refs/heads/master | 2023-04-28T05:48:20.038227 | 2023-04-22T17:43:09 | 2023-04-22T20:26:09 | 140,083,004 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 954 | cpp | check.cpp | #include <iostream>
#include <iomanip>
#include <string>
#include "math/math.hpp"
using namespace std;
int main( int argc, char *argv[] )
{
cout << "Hello World" << endl;
::math::linear::vector::point<double,2> point;
::math::geometry::direction::parametric<double,2> direction;
::... |
165098462ff07ee0b1d9ed802c85399ba27620ca | 9891c65690bfc3d774285ccfbd4733c2ad249d5a | /ok/ok/MainForm.h | 5fc156b92cbbf90cbbb0dc709c6bcf2606d2b1cc | [] | no_license | saki21/saki21 | 55569cdebd012b861f7b0ca9843caf1a404df0cc | f50ef1b9c5ac305f4edce6a4502ecc6afd104a34 | refs/heads/master | 2021-01-19T07:53:59.989872 | 2010-10-09T15:22:16 | 2010-10-09T15:22:16 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 21,704 | h | MainForm.h | #pragma once
namespace ok {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// MainForm の概要
/// </summary>
#define OFF lis... |
040c18c8771097216184802aa236556c25de1fb6 | b1ad48788ca9da319c3f808faf52d58013d1ee61 | /Math/筛素数&&分解素因子.cpp | 93f551eda5aa50428b2416c58fd6e88b92262a72 | [] | no_license | darenlin49/ACM_Algorithm_Templates | e26f59bd933595b602ee5291dbeef4d65aad83b5 | 3359717b1c6b36464f2bc4e67952a8c60ce9c018 | refs/heads/master | 2021-05-28T03:43:34.594182 | 2014-11-18T05:18:16 | 2014-11-18T05:18:16 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,416 | cpp | 筛素数&&分解素因子.cpp | /*
关于厄拉多塞筛法和线性筛法的选择:
①如果只用bool型数组的1和0表示某个数是否是素数,因为厄拉多塞筛法可以把i的范围缩到sqrt(n),效果会比较好.
②如果需要把素数单独放到一个数组中使用,则因为两者都需要i从2~n,此时线性筛法效果会好很多.
------情况②下:
筛 [0, 3200000) 范围内的素数:
第一种素数筛法 297 毫秒
第二种素数筛法 109 毫秒
筛 [0, 6400000) 范围内的素数:
第一种素数筛法 922 毫秒
第二种素数筛法 266 毫秒
筛 [0, 12800000) 范围内的素数:
第一种素数筛法 2187 毫秒
第二种素数筛法 563 毫秒
*/
/*--... |
5733064f4a2ebd6ec84de58d2ba75d4495bf071e | 07c0798498968cfd5f5467dd0241a4881e6bb160 | /leetcode38.cpp | 09b40acb8fd7ed39adc79ab96051f6e902742e2a | [] | no_license | yuqingqing/leetcode | 5efd7d51fcae1d98a9a20b308f87e3656dc4d0ad | 688825dc19046e2cf268e8d20ca567f963302fd7 | refs/heads/master | 2021-01-04T16:57:29.968275 | 2020-02-15T13:04:32 | 2020-02-15T13:04:32 | 240,645,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 738 | cpp | leetcode38.cpp | //
// Created by yqq3081 on 2020/2/13.
//
//38. 外观数列
#include <iostream>
using namespace std;
string countAndSayCore(string s)
{
string res;
size_t idx = 0;
while(idx < s.size())
{
int cnt = 1;
while(s[idx] == s[idx + 1])
{
cnt++;
idx++;... |
c3c21cff9c907ed1e9b2156ccff2ee050cfad68a | 0a447323231cebdb8a22d0623f70ea12d4a8efc4 | /src/crypto/argon2gpu/opencl/device.cpp | 70a80c0021fcd1454a832a3fd8eb670df58ccdc6 | [
"MIT"
] | permissive | duality-solutions/Dynamic | 06ae668ef5b55b598fa4721f6e16766016f51db7 | 7e31544f63ec85024cf46801965930c02a706fb0 | refs/heads/main | 2021-12-26T00:14:56.287647 | 2021-08-21T03:00:10 | 2021-08-21T03:00:10 | 108,872,749 | 64 | 41 | NOASSERTION | 2021-12-17T02:22:50 | 2017-10-30T15:46:23 | C++ | UTF-8 | C++ | false | false | 9,800 | cpp | device.cpp | /*
* Copyright (C) 2015-2021 Łukasz Kurowski <crackcomm@gmail.com>, Ondrej Mosnacek <omosnacek@gmail.com>
*
* This program is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation: either version 2
* of the Licens... |
556b04ee4b23d08d7d8989da008a729638fe205c | 2ea3a45c079d62b68d56b531d9bc985810d6db72 | /blackjack/c++/Cards.h | 852feb6812386a417510c760d2904953e6d3ed07 | [] | no_license | jimwise/shared | e3a7d7ac671af0b11491e0ecffd936fcd098d30f | 9c81210d781bbdd058cc3fc8edce2b20cc8ea2ea | refs/heads/master | 2022-08-08T17:19:36.659521 | 2022-06-10T15:35:18 | 2022-06-10T15:35:18 | 460,874 | 3 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 787 | h | Cards.h | #ifndef CARDS_H
#define CARDS_H
#include <deque>
#include <string>
#include <vector>
using namespace std;
class Card {
public:
enum _suit {HEARTS=0, DIAMONDS, CLUBS, SPADES};
enum _value {ACE=0, TWO, THREE, FOUR, FIVE, SIX, SEVEN,
EIGHT, NINE, TEN, JACK, QUEEN, KING};
typedef unsigned int suit;
typed... |
091118c60b555ca118580458d7a788fb5b1934d4 | 0158c4e47ab426b3a54e9931b9cd656a00e51cc2 | /tetris/tetris_ui/tetris_ui_L_M.cpp | f9b8421b65428547e97a2ee6a3475620d03ce420 | [] | no_license | tinnfu/game | c3578af94457a61ca12391284c6a3c8627006fcd | 9de9fd631052e2a9693cacccde8e881b85d03610 | refs/heads/master | 2021-06-18T13:43:43.337725 | 2017-01-25T11:57:41 | 2017-01-25T11:57:41 | 33,314,740 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,514 | cpp | tetris_ui_L_M.cpp | #include "tetris_ui.h"
///////////////////////////////////////////////////////////
// classs ui_interface_L_M
int ui_interface_L_M_0::set_tetris_ui(tetris_ui & ui)
{
int status = ui.get_status();
if(0 == status)
{
int row = ui.get_tetris_rows();
int col = ui.get_tetris_cols();
// ... |
e65ce2cb5f52c5efb39474792e602de31fb725bd | a63fe1b25bc6c56b40443bce1f303950399c9884 | /Sandbox/src/SandboxApp.cpp | 8b7b0c086055952b38a6577bc6e70e7ad494deb6 | [] | no_license | AlikanakelaKarwowski/Walnut | b100ee2289a2314c5917522a992c17aad5acd753 | dd791647d93a496c156655f3a3cf5c4e8871db6d | refs/heads/main | 2023-07-13T05:33:29.851708 | 2021-08-23T22:24:31 | 2021-08-23T22:24:31 | 396,890,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 190 | cpp | SandboxApp.cpp | #include <Walnut.h>
class Sandbox : public Walnut::Application
{
public:
Sandbox() {
}
~Sandbox() {
}
};
Walnut::Application* Walnut::CreateApplication() {
return new Sandbox();
}
|
323b192b9f0f7417d8abb53be6a5f271b5eba28b | 65049dc869fab93a09eb096a1665583d57b0532b | /Source code/Coursework_V3/user.cpp | e732cb39a65e016c1fd3ef341fe902b064b5a37c | [
"MIT"
] | permissive | benkalmus/UniversityLogin_coursework_gui | 8200b043059a0c6ab7d44b3a0306e1f85adc86ce | 00569dc117ba4c8bf3bb4efedc27687e79a67cd5 | refs/heads/main | 2023-02-15T14:49:55.342393 | 2021-01-14T12:05:50 | 2021-01-14T12:05:50 | 329,603,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,094 | cpp | user.cpp | #include "user.h"
#include <string>
#include <ios>
#include <iostream>
#include <fstream>
#include <QDebug>
#include <QCryptographicHash>
int person::User::userCount=0;
int person::Employee::staffCount=0;
namespace person
{
User::User()
{
this->userCount++;
this->idUser = -1;
}
person::User::User(int idUser... |
b2f4072a8987ce6c9bb1a6d8b6d0d822d08ec041 | 6ef38b23501b812b841f327183945af33a3cd7b3 | /src/decoder.cpp | 5812a1125c129dce7f7a40968bbcd161520d5afb | [
"MIT"
] | permissive | JakubVojvoda/LPC-decoder | 5795a4c072dcdfa34c3d1c3ae1084e633e30db90 | 12dac0ee535517a7cd0b62620bc586ecc5384563 | refs/heads/master | 2021-01-10T16:30:48.898403 | 2016-12-21T18:48:37 | 2016-12-21T18:48:46 | 52,218,813 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,813 | cpp | decoder.cpp | /*
* Simple LPC (Linear Predictive Coding) decoder in C++
* by Jakub Vojvoda [github.com/JakubVojvoda]
* 2015
*
* Source code is licensed under MIT License
* (for more details see LICENSE)
*
*/
#include "decoder.h"
#include <fstream>
#include <string>
#include <sstream>
double value(std::vector<double> x... |
1fa48c177950d588c3fe7d868a4f34ce6a30224a | 3e27f2a7ec01b5032d67bf0d6fef08e7fc22eba3 | /Chapter 3/3_2.cpp | 305f71e770085da73b3b4d51a2bdd265b674ccfd | [] | no_license | AntonSivalnev/Prata_6 | c8ed3bf744194d1fdf02faaaefc8233de2c6d694 | 14984cd108dcce11bcc5f3008eb0959b82eedc26 | refs/heads/master | 2021-07-21T20:59:04.005377 | 2017-10-21T19:02:33 | 2017-10-21T19:02:33 | 96,557,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 808 | cpp | 3_2.cpp | #include <iostream>
const int INCH_IN_FOOT = 12;
const float INCH_IN_METER = 0.0254;
const float KILOGRAM_IN_POUND = 2.2;
int main()
{
int feet, inches, pounds;
float meters, kilograms, body_mass_index;
std::cout << "Enter your height in feet: _\b";
std::cin >> feet;
std::cout << "An... |
0d1f5eec605cbe41e658be4a1e73ba5a026b583e | 4bc6d2dcc7aadcd075890c0e75d9645896314710 | /vol105/10583.cpp | 47dae27005eb5113c875fafc9643ae839a30d070 | [] | no_license | dibery/UVa | ed50d28abae01a2bc119648b448ebb48f249d0b0 | 9696e6b8ed8cf459a9f3b917d6fb0549b13504e6 | refs/heads/master | 2021-06-09T11:10:07.721013 | 2021-05-14T17:07:58 | 2021-05-14T17:07:58 | 19,485,747 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 960 | cpp | 10583.cpp | #include<cstdio>
#include<list>
using namespace std;
int DFS( list<int> *adj, int index, bool *visited )
{
int back = 1;
visited[ index ] = true;
for( list<int>::iterator it = adj[ index ].begin(); it != adj[ index ].end(); ++it )
if( !visited[ *it ] )
back += DFS( adj, *it, visited );
... |
f372645337b8ae5204a17bd7470056e24d495cb5 | f2308b7afff535131d28fb63812f46253f592d20 | /NCSU_Monopoly/main.cpp | 029c96b94474ef5986871de8c24e49380085e14e | [] | no_license | NRDavis/NRDavis_CPlusPlus | d5009863394071754181f43ae3fd47bb11198165 | e0034e0a8309119050232f474d2b38cc5e48c51f | refs/heads/master | 2021-02-04T10:22:18.977611 | 2020-06-24T01:36:19 | 2020-06-24T01:36:19 | 243,656,509 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,536 | cpp | main.cpp | #include <iostream>
// we're going to create a series of modularized functions useful in a monopoly game
using namespace std;
struct property
{
char name[20]; // string variable for a name
int price;
int costPerNight;
};
// we're going to define a template class to handle
struct player
{
... |
dfe4ad70302f0490ccb2e521b42bfd7b7f22e861 | 904c4904cf2ae7e4b207b2a553521e0215b4f66b | /HiLib/ChildRowHeaderColumn.h | 351828ffb6d559c6e97fd62c4caa5703618623a4 | [] | no_license | higeze/XYZViewer | aa503760b5490e168f56d14278c2edd4a98dd809 | f9fefe900ac521e557d43066cbddd67064090837 | refs/heads/master | 2021-07-16T21:37:55.523687 | 2017-10-23T12:35:12 | 2017-10-23T12:35:12 | 107,979,230 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | h | ChildRowHeaderColumn.h | #pragma once
#include "ChildIndexColumn.h"
class CChildRowHeaderColumn:public CChildIndexColumn
{
public:
CChildRowHeaderColumn(CSheetCell* pSheetCell):CChildIndexColumn(pSheetCell){}
virtual ~CChildRowHeaderColumn(){}
virtual cell_type HeaderCellTemplate(CRow* pRow, CColumn* pColumn);
virtual cell_type CellTemp... |
91cbe7cb36a693fe8c0a0f06710947227e3fa976 | de5f555645ac0f70a129d5531fdc3934b1803bea | /Online-Judges/Codechef/DISTNUMS.cc | ed9fec315b10ed1066d0ef0a9d6d1da902ccb9f5 | [] | no_license | kaushal02/CP | 52737875c70a40b3e0f7885b2553fdb1b7447bf9 | 704543bcd17e75759a584f88300033a348dc71ab | refs/heads/master | 2022-10-20T06:59:33.421829 | 2022-10-18T05:25:54 | 2022-10-18T05:26:20 | 70,631,083 | 33 | 18 | null | 2018-10-26T13:48:52 | 2016-10-11T20:09:00 | C++ | UTF-8 | C++ | false | false | 1,263 | cc | DISTNUMS.cc | #include <iostream>
using namespace std;
const int MOD = 1E9 + 7;
int pwr(int a, int n, int mod) {
// a^n % mod
int ans = 1;
while (n) {
if (n & 1) ans = (long long) ans * a % mod;
if (n >>= 1) a = (long long) a * a % mod;
}
return ans;
}
int inv(int n) {
return pwr(n, MOD - 2,... |
af4b537a296107b9ef518b94e7daa250850c6892 | 46c56e2305159f05362adbc084d6a0ff0dfe9495 | /gui/StatusBar.cpp | e6d1510d37ee97cff635b19de08f2ccae6f6aea3 | [] | no_license | fritzone/netscan | 6da63eda87f71721237de39f687fbfb12d49f89b | d8313942ba65a82645d66cbd09c1b875dca8666b | refs/heads/master | 2020-05-30T05:28:59.422254 | 2016-08-25T09:30:27 | 2016-08-25T09:30:27 | 21,980,082 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | StatusBar.cpp | #include "StatusBar.h"
#include "Debugger.h"
#include "Window.h"
#include "wind_upg.h"
#include "leaker.h"
/**
* Constructor
*/
CStatusBar::CStatusBar(CWindow* _parent, int _id, int _parts, int* _partPos):CControl( _parent, 0, 0,0 ,0, L"", _id)
{
HWND mainHandle = _parent->getHandle();
hwnd = CreateWindowEx(
0,
... |
bdeca7da38198b83f03b0d2ed5f923acc104c742 | cb77dcbbce6c480f68c3dcb8610743f027bee95c | /android/art/compiler/optimizing/linear_order.h | 151db001e1ae42c826a6d68eecccb575aaf6fc37 | [
"Apache-2.0",
"NCSA",
"MIT"
] | permissive | fengjixuchui/deoptfuscator | c888b93361d837ef619b9eb95ffd4b01a4bef51a | dec8fbf2b59f8dddf2dbd10868726b255364e1c5 | refs/heads/master | 2023-03-17T11:49:00.988260 | 2023-03-09T02:01:47 | 2023-03-09T02:01:47 | 333,074,914 | 0 | 0 | MIT | 2023-03-09T02:01:48 | 2021-01-26T12:16:31 | null | UTF-8 | C++ | false | false | 1,912 | h | linear_order.h | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
5e046cf8f6ec29aa41635373ddab81fef896e7bf | 3d7c2de12fe9e107eac972bc5be834f13876644b | /Arrays/check-if-array-elements-are-consecutive.cpp | 9a4e155e55757249da91134ef4d6e023a2b13f41 | [] | no_license | shah-antriksh/Coding | abdb2f14a9a35da54d3527e454d5c3664c65176f | c5d2b16de9dfdca5a45d7b546c5eb48ba8f46d57 | refs/heads/master | 2020-12-25T14:12:49.186225 | 2016-08-06T17:31:15 | 2016-08-06T17:31:15 | 64,283,067 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | check-if-array-elements-are-consecutive.cpp | //http://www.geeksforgeeks.org/check-if-array-elements-are-consecutive/
#include<bits/stdc++.h>
using namespace std;
int main()
{
int arr[]={88,89,90,91,92,94,93};
int n = sizeof(arr)/sizeof(int);
int maxv=INT_MIN;
int minv=INT_MAX;
for (int i=0;i<n;i++)
{
maxv=max(arr[i],maxv);
minv=min(arr[i],minv);
}
for (int i... |
dfbe042353221014acbfa7961ca1baf02ba4bf65 | f0b4ce0ba6972301435f182a6d4c02987ee17ab3 | /addTwoNums.cc | 0afd6ad3a779c5e353f60a2586f1a0b7c2b636c8 | [] | no_license | gs0622/leetcode | b64bf1ac8d52ea473cac98b057a5edd1c8ff3591 | ef9388f875c375f6f3cd290b04e457b416d860dc | refs/heads/master | 2021-06-02T00:54:32.332803 | 2020-05-19T01:13:51 | 2020-05-19T01:13:51 | 20,798,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,176 | cc | addTwoNums.cc | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
#include <iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution {
publ... |
2f35e1c85d6e9e7b49a5538cf9be6119acc95b92 | 62d48af115ea9d14bc5a7dd85212e616a48dcac6 | /src/tpchBench/headers/SupplierData.h | 88e6e41215ff2908e1b2a86d9c70b10891d9ef48 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | asu-cactus/lachesis | ab1ab1704e4f0f2d6aef1a2bff2dc99ea8f09337 | 92efa7b124a23894485a900bb394670487051948 | refs/heads/master | 2023-03-05T11:41:35.016673 | 2021-02-14T21:50:32 | 2021-02-14T21:50:32 | 151,744,205 | 2 | 0 | Apache-2.0 | 2021-02-14T16:37:54 | 2018-10-05T15:49:15 | C++ | UTF-8 | C++ | false | false | 2,703 | h | SupplierData.h | #ifndef CUSTOMER_SUPPLIER_PART_AGG_H
#define CUSTOMER_SUPPLIER_PART_AGG_H
#include "Object.h"
#include "PDBVector.h"
#include "PDBString.h"
#include "Handle.h"
using namespace pdb;
// This class represents a triple that holds a triple of (customerName, SupplierName, PartID)
class SupplierData : public pdb... |
13786816b11b346945238376b05cc261ffb0b121 | 387549ab27d89668e656771a19c09637612d57ed | /DRGLib UE project/Source/FSD/Public/ArmorPrimitiveDestroyedDelegate.h | 746da9593b559f5083e145b69737f31c8cc77e98 | [
"MIT"
] | permissive | SamsDRGMods/DRGLib | 3b7285488ef98b7b22ab4e00fec64a4c3fb6a30a | 76f17bc76dd376f0d0aa09400ac8cb4daad34ade | refs/heads/main | 2023-07-03T10:37:47.196444 | 2023-04-07T23:18:54 | 2023-04-07T23:18:54 | 383,509,787 | 16 | 5 | MIT | 2023-04-07T23:18:55 | 2021-07-06T15:08:14 | C++ | UTF-8 | C++ | false | false | 255 | h | ArmorPrimitiveDestroyedDelegate.h | #pragma once
#include "CoreMinimal.h"
#include "ArmorPrimitiveDestroyedDelegate.generated.h"
class UPrimitiveComponent;
UDELEGATE(BlueprintCallable) DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FArmorPrimitiveDestroyed, UPrimitiveComponent*, collider);
|
59ed9208acaa7038fffb9fb8d195e7c01b1b78b1 | c0d0251b9d22b2570cd61c2692d7014a6261e247 | /hollowknight/playGround.cpp | 765ff80bf1f72a89e4d92a54d1b34a575ab76747 | [] | no_license | KRkimyj/hollowknight | 825c64093ae687de394664be4ac7db3dd89dc0f6 | 1e9c63ec6286cda71d66e953bff4ad756e6744fb | refs/heads/master | 2023-07-31T10:14:51.136003 | 2021-09-28T04:31:41 | 2021-09-28T04:31:41 | 411,134,389 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,735 | cpp | playGround.cpp | #include "stdafx.h"
#include "playGround.h"
playGround::playGround()
{
}
playGround::~playGround()
{
}
//초기화는 여기다 하세요 제발
HRESULT playGround::init()
{
gameNode::init(true);
//===전방선언 삽입===
_sm = new stageManager;
_sm->init();
_pl = new player;
_pl->init();
_em = new enemyManager;
_sm->setPlayer(_pl);
_... |
92dc33fb6d5543394d5dcae1dd78b797016e1772 | 12f2153cce750f245e309370f02ead5609b49d50 | /day01 (BASICS 2)/ex05/Human.hpp | fae7f4a1e8bcdd97fa66ce42f53f1a3e8b097ff0 | [] | no_license | hlombard/Piscine_CPP | e638d082171b0e84ead6444373e2ec57b03da1ff | 90ce065d9a1714cdca0551c438c6e491742d0410 | refs/heads/master | 2023-02-23T16:56:24.722420 | 2021-01-26T18:52:08 | 2021-01-26T18:52:08 | 333,182,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | hpp | Human.hpp | #ifndef HUMAN_HPP
# define HUMAN_HPP
#include <string>
#include "Brain.hpp"
class Human {
private:
const Brain _brain;
public:
Human(void);
std::string identify(void) const;
const Brain &getBrain(void) const;
};
#endif
|
d39ae52d681917b52c53eeafcd995faf275cbf4a | 805e83058e2cb1c4042fe31a0c5f2aacf76eca63 | /Glanda/CmdChangeCurrentScene.h | 03f254a5b54ba6e336d706ae54b571f9e954eee0 | [] | no_license | progmalover/vc-stgld | 70ee037f3f27857fcdbb344b5ee8533c724b43b9 | 96055b2a2deca44eed5bb2c6e1e3f6cb1aff3a6b | refs/heads/master | 2021-01-12T05:17:05.334966 | 2017-01-12T14:49:44 | 2017-01-12T14:49:44 | 77,895,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | h | CmdChangeCurrentScene.h | #pragma once
#include "command.h"
class gldScene2;
class CCmdChangeCurrentScene :
public TCommand
{
protected:
gldScene2* m_pNewScene;
gldScene2* m_pOldScene;
public:
CCmdChangeCurrentScene(gldScene2* pScene);
virtual ~CCmdChangeCurrentScene(void);
virtual bool Execute();
virtual bool Unexecute(... |
1a111b002550da6acdde6b0165ce5fed64876320 | 981d954ac6f5930d6cf14f2becfb5deb92b5df3d | /libnet/tests/sctx.h | 6e8715fb1d43ff3d139a66debb111089af987ae7 | [
"MIT"
] | permissive | wma1729/simple-n-fast | e04b97afad55c5964930509b2ff763723a0d2bf9 | abb06a9147b1eb4418ef5acb176eead64b991c51 | refs/heads/master | 2021-07-09T17:27:09.630851 | 2021-04-30T18:33:56 | 2021-04-30T18:33:56 | 102,918,847 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,191 | h | sctx.h | #include "ctx.h"
class sctx : public snf::tf::test
{
private:
static constexpr const char *class_name = "sctx";
public:
sctx() : snf::tf::test() {}
~sctx() {}
virtual const char *name() const
{
return "Certificate";
}
virtual const char *description() const
{
return "Tests SSL context";
}
virtual boo... |
90e888c1228f5bca40705aaeb96a4f39807dc4da | b9c8bb339751898ad37989e8fc6d1360bd90639f | /Include/TLS_Socket.h | 1ee48e394ec3e0c86f04db85c00b596ad268a252 | [] | no_license | ski0090/PK_Sock | 84f5f401f1fe85994fb5f438933e987947bf07fa | a67924912bdcebd2cdc1e05b230378f574ef38b6 | refs/heads/main | 2022-05-12T06:06:15.795648 | 2020-04-06T08:02:18 | 2022-03-26T07:12:18 | 253,431,282 | 4 | 0 | null | null | null | null | UHC | C++ | false | false | 766 | h | TLS_Socket.h | #pragma once
/*
openssl 라이브러리가 base이다.
TCPsocket 클래스의 컴포넌트로 활용한다.
*/
#ifdef _USE_SSL
class SOCK_DLL TLS_Socket
:BaseSocket
{
public:
~TLS_Socket();
int32_t Connect(const SocketAddress& inToAddress);
int32_t Bind(const SocketAddress& inToAddress);
int32_t Listen(int inBackLog = 32);
shared_ptr<TLS_Socket>... |
e0f08f6cb4128fc9822f06204955d4c71a75d20a | 85971f9d33b2ebfb70ee1fc4ef24042b7f586d2d | /sensor_system/include/sensor.h | 715ea02a4c04509bc2f292a468d569e692629f8e | [] | no_license | andrei-herdt/coding-exercises | f33a87a5cf545a925ee14d0e667bad367b2c6dd6 | 7c77011c9caa2c575cc0ae0ec52858d84e97e0cc | refs/heads/master | 2023-06-22T07:49:36.526283 | 2023-06-07T12:55:56 | 2023-06-07T12:55:56 | 167,746,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | h | sensor.h | #ifndef SENSOR_H_
#define SENSOR_H_
#include <functional>
template <class DataT>
class Sensor
{
using CallBackType = std::function<void(DataT)>;
public:
bool Start()
{
return true;
}
void Register(const CallBackType& call_back)
{
consumer_call_back_ = call_back;
}
... |
f04427c140cbec0ea67d331849cc8ea94588536b | 8c92baa9eb58de359dec00a785c7648b31076b03 | /infoarena_campion/palmieri.cpp | 2b7f4f82043e58cb8f3c72016f1592d185340353 | [] | no_license | george-popoiu/infoarena_campion | 2e5f2433c4fe4252d11765411cb0ff4ed4eb941a | 22569d32ac87f8031d9fdaf123da4adf4a7b2a9e | refs/heads/master | 2021-01-19T14:59:04.887725 | 2012-08-08T12:42:30 | 2012-08-08T12:42:30 | 5,341,237 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,251 | cpp | palmieri.cpp | #include<stdio.h>
#include<algorithm>
#define inf "palmieri.in"
#define outf "palmieri.out"
#define NMax 250001
using namespace std;
int N, A;
struct punct {
int x, y;
} V[NMax];
void read()
{
scanf("%d%d", &N, &A);
for(int i=1; i<=N; i++) scanf("%d%d", &V[i].x, &V[i].y);
}
struct cmp {
... |
7a7082563b3a901527780583ab6c46d6df890bd3 | bc583598fa9319ebb537f10f7749cdcf1b1c8819 | /LineTopology/console/src/src_line/FEA.cpp | 5ad68ff9f0fafb00c906fd583f19f7662024997b | [
"BSL-1.0"
] | permissive | mrcoder95/codeSamples | 3f4b90a5715e8910a9fb9d51be06631925757b59 | 18bcf0e616ba999f4413f9ea1971d61214951a37 | refs/heads/master | 2022-11-29T14:16:13.293114 | 2020-08-11T15:00:12 | 2020-08-11T15:00:12 | 283,332,983 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,715 | cpp | FEA.cpp | /**
Finite Element Analysis
Solving linear system of equation using GMRES solver (BOOST)
Original Code was developed by Ole Sigmund in MATLAB.
Source: https://www.topopt.mek.dtu.dk/Apps-and-software/A-99-line-topology-optimization-code-written-in-MATLAB
The MATLAB code is converted to C++ c... |
6da93ea74502af25333e2abe59b178c2180684f1 | 1482f92f53ee677463a0c200e0481a5e5ddc522a | /src/Renderer/camera.cpp | 74c9e638da44a828c10d5479d68696d8f1703472 | [
"MIT"
] | permissive | Whittler23/WhitE-SFML-Engine | b8673b3d82b7218dac3f86be1e2265cedc323270 | 98f6fcba303dc169dfcc4ef21b13e9cb369def66 | refs/heads/master | 2020-06-25T13:15:54.874479 | 2019-08-30T19:00:28 | 2019-08-30T19:00:28 | 199,318,454 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,174 | cpp | camera.cpp | #include "Renderer/camera.hpp"
#include "Logger/logs.hpp"
#include "Utilities/cast.hpp"
#include "Tests/player.hpp"
namespace WhitE {
Camera::Camera(sf::RenderTarget& renderTarget)
:mRenderTarget(renderTarget)
,mView(renderTarget.getView())
//,mCameraTarget(nullptr)
{
WE_CORE_INFO("Camera initialized with view s... |
fd1fdf1dee3a0e27be2ef8b12fe0347905701926 | b59e6c14b813897a7515ccca050f64055ac8a84e | /ConsolePrompt/Main.cpp | 2d153e24898acb33ab00f2f32f1ac88d39048664 | [] | no_license | kongressnlt/ConsolePrompt | 94d365c174ae54ad88eadb159bf4e2f0521c6edb | 78768378293f5a053f7811e0a6fa4516b7bbc57a | refs/heads/master | 2021-07-15T08:12:14.988257 | 2017-10-21T19:36:56 | 2017-10-21T19:36:56 | 107,580,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,711 | cpp | Main.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <Windows.h>
#include <vector>
#include "Custom_Class.h"
#include "aditionally.h"
#include "Process_Working.h"
#include "MemoryEngine.h"
using namespace std;
/*
Привет, данный проект кодил @alexuiop1337, не удаляй данный ватермарк хотя бы... |
10d601a174ace541a42411fd4a96748e55afe4ea | 3e88ef7f012b58b6d03e06fbc6c6628e1a675ae5 | /GameOfLife_mod/Source/Keyboard.hpp | 25c4b338f33acdb27178a5ccc93be4e515693ed3 | [] | no_license | Kraftex/cpp_proys | b85c0b4b0c7317e50bd9c041670308dee87f3c2f | bcb43953718d89555e66eab4148ae1896c43664d | refs/heads/master | 2021-01-16T06:06:17.397363 | 2020-02-25T19:53:47 | 2020-02-25T19:53:47 | 243,002,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 358 | hpp | Keyboard.hpp | #ifndef KEYBOARD_HPP
#define KEYBOARD_HPP
#include <SFML/Window/Event.hpp>
#include <SFML/Window/Keyboard.hpp>
#include <array>
class Keyboard {
private:
// array with "KeyCount" number of elements
std::array<bool, sf::Keyboard::KeyCount> keys;
public:
Keyboard();
void update(sf::Event e);
bool isKeyDown(s... |
278a853ed0b4d449b9192333d333b1bf66285bb5 | 93343c49771b6e6f2952d03df7e62e6a4ea063bb | /HDOJ/5279_autoAC.cpp | 4c17a613fe25d323e4c45984e02db02901bbf405 | [] | no_license | Kiritow/OJ-Problems-Source | 5aab2c57ab5df01a520073462f5de48ad7cb5b22 | 1be36799dda7d0e60bd00448f3906b69e7c79b26 | refs/heads/master | 2022-10-21T08:55:45.581935 | 2022-09-24T06:13:47 | 2022-09-24T06:13:47 | 55,874,477 | 36 | 9 | null | 2018-07-07T00:03:15 | 2016-04-10T01:06:42 | C++ | UTF-8 | C++ | false | false | 3,251 | cpp | 5279_autoAC.cpp | #include <stdio.h>
#include <string.h>
#include <algorithm>
using namespace std ;
typedef long long LL ;
#define clr(a,x); memset ( a , x , sizeof a ) ;
const int MAXN = 1 << 17 ;
const int mod = 998244353 ;
const int g = 3 ;
LL f[MAXN] , invf[MAXN] ;
LL tcnt[MAXN] ;
LL dp[MAXN] , dp2[MAXN] ;
LL x1[MAXN] , ... |
3028580797bcdbc661817187d3d774e5fe098232 | ad314dea4fc194b741d69c91ce157b13b8c84959 | /LinesMeasurerLibrary/detect-lines.cpp | 12fe232bcde494a0c9662d77777baf9a9e1c6566 | [] | no_license | aliakseis/Coordinator | 2741dc4f6cec8a75111dd89a858a609f9e03a8ea | 5820c6ed3a3d9bbee92d882c93336ddad3f0204a | refs/heads/master | 2023-03-27T15:35:24.099432 | 2021-03-26T13:46:43 | 2021-03-26T13:46:43 | 344,247,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 68,802 | cpp | detect-lines.cpp | #include "detect-lines.h"
#include "known-good.h"
#include "tswdft2d.h"
#include "opencv2/highgui.hpp"
#include "opencv2/imgcodecs.hpp"
#include "opencv2/imgproc.hpp"
#include <opencv2/photo.hpp>
#include <opencv2/plot.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <opencv2/ximgproc.hpp>
#include <ceres/ceres... |
a3ce37938ca99e0d0843581032b6755b4eb2ebe5 | 205045c80436de28abe4c73cc33bb512cc3d8b08 | /19.04.2018/zad1/Person.cpp | 7e80c91c728baf1214b4c5388cd91dac4105813d | [] | no_license | KarolinaSerpatowska/Programowanie-obiektowe | 8acb317d5cf8e81704670c66662862081c97d249 | ed8e4412379617f6a3b490bf5de5050927576d87 | refs/heads/master | 2021-04-27T16:04:40.527887 | 2018-06-21T13:01:22 | 2018-06-21T13:01:22 | 122,481,796 | 0 | 2 | null | 2018-03-04T19:51:45 | 2018-02-22T13:24:57 | C++ | UTF-8 | C++ | false | false | 124 | cpp | Person.cpp | #include "Person.h"
Person::Person(string name)
{
this->name = name;
}
string Person::ident()
{
return name;
} |
84832371435a21570115c3d115000ab4e57955bd | 734f735b60f64c4f85b8ef5c689c0ef43443c630 | /rucy/ext/rucy/defs.h | a3676580863942da024f9d79b2e8fbed88917a54 | [
"MIT"
] | permissive | xord/reflexion | 3440f5481744b566dfc9d104413a1a9673ca94d4 | f8cd058f4a8c8275496872a9cbfc5cf48e1fba1a | refs/heads/master | 2023-03-03T15:29:57.999704 | 2023-02-27T14:39:35 | 2023-02-27T14:39:35 | 32,271,244 | 3 | 0 | MIT | 2022-11-13T17:36:17 | 2015-03-15T16:37:07 | C++ | UTF-8 | C++ | false | false | 150 | h | defs.h | // -*- c++ -*-
#pragma once
#ifndef __RUCY_EXT_DEFS_H__
#define __RUCY_EXT_DEFS_H__
#include <rucy.h>
#define RUCY_END RUCY_DEF_END
#endif//EOH
|
33cf0bd795f73b39790a4d08e3b7970c0eb1fc9a | f80795913b6fbbfbc1501ca1e04140d1dac1d70e | /10.0.14393.0/winrt/internal/Windows.Media.Import.2.h | 84f604966a02bc1835431545cc70145c6fc0c6de | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | jjhegedus/cppwinrt | 13fffb02f2e302b57e0f2cac74e02a9e2d94b9cf | fb3238a29cf70edd154de8d2e36b2379e25cc2c4 | refs/heads/master | 2021-01-09T06:21:16.273638 | 2017-02-05T05:34:37 | 2017-02-05T05:34:37 | 80,971,093 | 1 | 0 | null | 2017-02-05T05:27:18 | 2017-02-05T05:27:17 | null | UTF-8 | C++ | false | false | 31,035 | h | Windows.Media.Import.2.h | // C++ for the Windows Runtime v1.0.161012.5
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
#pragma once
#include "Windows.Media.Import.1.h"
#include "Windows.Foundation.2.h"
WINRT_EXPORT namespace winrt {
namespace ABI::Windows::Foundation {
#ifndef WINRT_GENERIC_cdb5efb3_5788_509d_9be1_71ccb8a... |
0fb3ed228deb2976b43e4a8e3c7a74dec1e00093 | b9fccefb37e5b293e30a6ca3071c2b23f4cb7351 | /Game/AI_Rise.h | 3f2f82bf3e9f7b9f99520c263967195e357fafa2 | [] | no_license | qavenger97/Automaton-Assault | bb60fe07b52bd78521410a3e874f02a20290fa72 | 616c1dedabfe649f31b064c5024d4bad6c2b0876 | refs/heads/master | 2020-12-31T07:11:33.554420 | 2017-01-31T22:04:42 | 2017-01-31T22:04:42 | 80,561,820 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 434 | h | AI_Rise.h | #pragma once
class AI_Rise : public Hourglass::IAction
{
public:
void LoadFromXML( tinyxml2::XMLElement* data );
void Init( Hourglass::Entity* entity );
IBehavior::Result Update( Hourglass::Entity* entity );
IBehavior* MakeCopy() const;
private:
StrID m_LaserEntityName;
hg::Entity* m_LaserEntity;
Vector3 m... |
f307e69259880d74c2dc925978fe1a70b186c949 | 23297db7d8a2a402acb1afad022b7081fed5701e | /legacy/spike/weather.cc | 8bfd5910764544b00c03e1967c3d6ec339055d0b | [] | permissive | drewvlaz/virtual-assistant | 0e87f6141c57aefd67960887bb19545683186546 | a790d8ae1fce633a85efc8750dae5730c8bd14b5 | refs/heads/master | 2022-10-02T00:03:21.045152 | 2021-08-06T23:06:52 | 2021-08-06T23:06:52 | 203,483,995 | 6 | 3 | MIT | 2022-09-01T23:22:02 | 2019-08-21T01:42:59 | Java | UTF-8 | C++ | false | false | 2,895 | cc | weather.cc | #include <iostream>
#include <map>
#include <curl/curl.h>
#include "CommonFunctions.h"
void RetrieveWeather() {
// Recieve weather information from the Dark Sky API (1000 calls/day)
Json::Value api_keys {CommonFunctions::ReadInJson("../data/api_keys.json")};
std::string url {"https://api.darksky.net/foreca... |
8a4d32685ab2a6b08945ceda033d1e65e88bc75f | 10aa9c991f12457074c91058d4d800ef5e96bad1 | /Bai Thuc Hanh So 3/Bai3.4.cpp | 5cbfd7976f10b6c5f6d75c89ed780a3b964d2785 | [] | no_license | nguyennhatminh230801/LapTrinhHDT | 566b1cb3cc7fda796c3697b3d697270016859097 | 59f6d62bf44cc335805b3b44e1b29a60b91b64de | refs/heads/master | 2023-06-21T06:52:14.616439 | 2021-07-26T17:08:31 | 2021-07-26T17:08:31 | 341,476,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,745 | cpp | Bai3.4.cpp | #include <bits/stdc++.h>
using namespace std;
class PTB2
{
float a, b, c;
public:
PTB2();
PTB2(float a, float b, float c);
void NHAP();
void XUAT();
void GIAI();
};
PTB2::PTB2()
{
a = 0;
b = 0;
c = 0;
}
PTB2::PTB2(float a, float b, float c)
{
this->a =... |
fb43e1b822168f0791bdeaee24597d9187546684 | 41828199720027d440a2409e7208fa47ca421c3c | /DRUGON-Qt-Project-Folder/katastasi.h | c73ecb84d166df5a9d4e41f39584a6b3f01e376b | [] | no_license | RoboGR00t/DRUGON | 832c184eab05b376ce7d2498a6ef218e34e077f0 | cb9786362d79cb4162c67b28974a9a7b7c85bd0a | refs/heads/main | 2023-01-30T12:00:43.919858 | 2020-12-17T20:06:20 | 2020-12-17T20:06:20 | 302,967,215 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | h | katastasi.h | #ifndef KATASTASI_H
#define KATASTASI_H
#include <QDialog>
#include <iostream>
#include <vector>
using namespace std;
namespace Ui {
class Katastasi;
}
class Katastasi : public QDialog
{
Q_OBJECT
public:
explicit Katastasi(QString dataset,QWidget *parent = nullptr);
~Katastasi();
... |
7eaf629cb333c491e862841559a87c8439e41156 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/blink/renderer/platform/graphics/color_behavior.h | ede3256c36c8e7e9404d401306c3d6c3135b49aa | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"Apache-2.0",
"MIT"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 2,129 | h | color_behavior.h | // Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COLOR_BEHAVIOR_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_GRAPHICS_COLOR_BEHAVIOR_H_
#include "third_party/blink/rende... |
ddd37ad25a0a60501bf1987b1507908879aef8aa | 59d8e103219b6df4fb564f57168e02c42772c20e | /main.cpp | 14d7292d4107bc4e999d7b42d8623c04dcb53ca2 | [] | no_license | incredibleLeitman/kd-tree | 7e73504824a110fd30f6e29467a6552dd69cc186 | 6bac06c90cf6ca13a125ba2604457d048489dc87 | refs/heads/main | 2023-03-11T15:27:05.160371 | 2021-03-02T10:50:47 | 2021-03-02T10:50:47 | 335,015,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,313 | cpp | main.cpp | #include "kdtree.h"
#ifdef _WIN32 // vis only supported on windows
#include "vis.h"
#endif
#include "pointGenerator.h"
#include <cstring> // stoi
#include <chrono>
void raycast (KDTree& tree, Ray& ray)
{
const Triangle* triangle = tree.raycast(ray);
std::cout << "hit triangle: " << (triangle ? triangle->toString()... |
b06c7c3dad49bfecb55266022e17dd8279b4282e | 7eb0a1418bac3c352a0b79043f2a411db4806f1b | /Contest/Con637B.cpp | 91f8a2a25906124a0af194c22a5682dbc714cdd3 | [
"Apache-2.0"
] | permissive | Satyabrat35/Programming | 6a88ee7f8726d2d279e1191f667d0602d8eec94e | 841ead1bf847b567d8e21963673413cbd65277f4 | refs/heads/master | 2022-01-15T08:17:56.938907 | 2022-01-12T16:27:21 | 2022-01-12T16:27:21 | 142,171,986 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,685 | cpp | Con637B.cpp | /**************erik****************/
#include<bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
//map<ll,ll> mp1;
//set<int> s1;
//set<int>::iterator it;
#define maxm(a,b,c) max(a,max(c,b))
#define minm(a,b,c) ... |
a0daa3fce6c2c438a3cc645463502471dec0c906 | 5581753996de11d1940effd55127e5ff6a9e5fad | /src/Proto/GameEventBuffer.pb.h | 10d1d9f77657b5f9353e5057f84797329a1749b9 | [
"Apache-2.0"
] | permissive | redhat-gamedev/srt-game-server | 8b28805a7463036bbf74293f2f81ee2924b212ed | 7f53264b2282494f977b184f71b42125fe8a64b8 | refs/heads/master | 2023-08-13T08:59:01.516065 | 2021-09-29T12:26:42 | 2021-09-29T12:26:42 | 319,087,483 | 5 | 2 | Apache-2.0 | 2021-06-09T17:00:17 | 2020-12-06T17:12:30 | C++ | UTF-8 | C++ | false | true | 52,090 | h | GameEventBuffer.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GameEventBuffer.proto
#ifndef PROTOBUF_INCLUDED_GameEventBuffer_2eproto
#define PROTOBUF_INCLUDED_GameEventBuffer_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3006001
#error This file was gene... |
7d962e7fbb0d6cca7ee01fea53f7fbe07dafbb97 | 7852ad083d3fb837171ff5b04173bee2a25ee354 | /ch13/13_1/Ex_13_1.cpp | cc212f032ee170593e800ca2df2cdfd92d915b3b | [] | no_license | SeA-xiAoD/Learning_OpenCV3_Homework | 2d19cde2063c148ce641393816fc3a4b4d4559da | 47dc1c90783a84c246c7013bd59bdad3464e116c | refs/heads/master | 2021-08-10T02:51:45.170860 | 2018-09-30T06:57:09 | 2018-09-30T06:57:09 | 136,334,801 | 4 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | Ex_13_1.cpp | #include <opencv2/opencv.hpp>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char** argv) {
cv::Mat img = cv::Mat::zeros(1000, 1, CV_32FC1);
cv::RNG rng = cv::theRNG();
rng.fill(img, cv::RNG::UNIFORM, 0.0, 1.0);
cv::Mat hist;
float value_range[] = {0.0, 1.0};
c... |
ab3170c105f7e898bde007068edb1ebb8940e607 | bee9b4cb77c34e173f95c93a2c7acc8db7f47339 | /3DServer/Object.h | 0d862c308def7b9e5358419d62bdb9aa308cea2e | [] | no_license | ParkByoungHO/AttackFieldServer | e3864ab90b01778173919451019cb7a567f0d9b0 | 00bf0f771750905d0464548d58f3b3728704a94d | refs/heads/master | 2020-12-31T07:42:44.981542 | 2017-09-03T20:00:37 | 2017-09-03T20:00:37 | 86,552,061 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,649 | h | Object.h | #pragma once
class CGameObject;
struct CollisionInfo
{
CGameObject* m_pHitObject = nullptr;
float m_fDistance = FLT_MAX;
XMFLOAT3 m_f3HitNormal = XMFLOAT3(0, 0, 0);
DWORD m_dwFaceIndex = 0;
float m_fU = 0.0f;
float m_fV = 0.0f;
UINT m_nObjectID = 0;
ChracterBoundingBoxParts m_HitParts = Chra... |
6f9492b0fc810dd40b2b1f12fdf970763acb3226 | 5ef7f5ba06b98319a5406dfa3b25c985257713d4 | /IGC/Compiler/Legalizer/InstPromoter.h | ff3baf6132f6613c203e545afd90cb0cb5268e31 | [
"MIT"
] | permissive | intel/intel-graphics-compiler | 6a1ae1a84c541e967e70324492f22c941a02e38f | ea522543be6d042ec80e5db8e8878be31af68938 | refs/heads/master | 2023-09-03T20:31:55.215461 | 2023-08-29T18:31:52 | 2023-09-02T08:55:05 | 105,299,467 | 546 | 176 | NOASSERTION | 2023-08-23T08:57:03 | 2017-09-29T17:27:54 | C++ | UTF-8 | C++ | false | false | 2,346 | h | InstPromoter.h | /*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef LEGALIZER_INSTPROMOTER_H
#define LEGALIZER_INSTPROMOTER_H
#include "TypeLe... |
3fe27a68f84e935049bd227e09ba7573dc274475 | 6c1669b18999df5168f597e980e7f3c69e43aae0 | /imglib/block_compressed_image.h | 45334ff8fbd3f2510902bc849951ec3c94d33c34 | [] | no_license | biomorphs/Glimmer | 48dd9d9f1945f402c0a477bdc07377009848e8ab | 0b4665c75e2f5be44940cafa8fa91bc7145e1761 | refs/heads/master | 2020-04-26T02:39:02.835564 | 2019-08-05T23:22:51 | 2019-08-05T23:22:51 | 173,240,771 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,871 | h | block_compressed_image.h | #ifndef IMGCONVERTER_BLOCK_COMPRESSED_IMAGE_INCLUDED
#define IMGCONVERTER_BLOCK_COMPRESSED_IMAGE_INCLUDED
#include "block_compressed_pixels.h"
#include <stdint.h>
#include <vector>
// An image containing 4x4 blocks of DXT1 pixel data
// Note! Data is stored with flipped y-axis (i.e. top left = 0,0; bottom right = w, ... |
db480e3e402d895fb9bf12b8f1a7ecf0de09acd3 | d4d5a0bc519294e4b3f312048dd52cf9264b7e29 | /HYSBZ/1040/19909327_AC_3112ms_62504kB.cpp | 7b9a97e275bc3561644c42777431cb68c4bfbd2a | [] | no_license | imhdx/My-all-code-of-Vjudge-Judge | fc625f83befbaeda7a033fd271fd4f61d295e807 | b0db5247db09837be9866f39b183409f0a02c290 | refs/heads/master | 2020-04-29T08:16:24.607167 | 2019-07-24T01:17:15 | 2019-07-24T01:17:15 | 175,981,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | 19909327_AC_3112ms_62504kB.cpp | #include<bits/stdc++.h>
using namespace std;
const int maxn=1000006;
int pre[maxn],a[maxn];
vector<int> v[maxn];
int getx(int x)
{
if (pre[x]==x) return x;
return pre[x]=getx(pre[x]);
}
pair<int,int> huan[maxn];
int root1=-1,root2=-1;
long long dp[maxn][2];
void dfs(int now,int fa)
{
dp[now][0]=0;
dp[no... |
c87cbf3473f3d9f8d52cc366f25006d8014e89ff | 2aa75176e93bc5cee6e3c66a82acf3701af56678 | /qt5/qt5/Cube2/main.cpp | 35425d40577cb70f55b211b26ee09b8d4da15f48 | [] | no_license | dedowsdi/journey | 5d5c11a5e2c143f031ad2d801c731c2ca381c18a | 0e9f1dd34a6bb7d5c9c8225ef1595a8cfd188593 | refs/heads/master | 2021-06-02T00:31:44.925551 | 2020-10-05T06:14:08 | 2020-10-05T06:14:08 | 116,079,146 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | main.cpp | #include "MainWindow.h"
#include <QtWidgets/QApplication>
#include <QSurfaceFormat>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// setup surface format
QSurfaceFormat fmt;
fmt.setSamples(4);
fmt.setVersion(3, 3);
fmt.setRedBufferSize(8); // default
fmt.setGreenBufferSiz... |
67614d1b23d7caf2854cd9c107f11c6d5e3c2ea2 | 12d3a7f7b82c3498ca5942dbf0c641d3d8741c73 | /MurderMagic/Source/MurderMagic/Private/Enemies/NPC.cpp | 7a3e1aebca67f4a2240c63d6dc4fa80d1d88e557 | [] | no_license | beckrpgirl/Murder-Magic | 7b5864d826979e088654a6174f01cbb8b89d7de0 | 42c0717e05c1e23882daabf4aca6b3d1a59134c1 | refs/heads/master | 2020-07-24T06:19:10.215674 | 2019-10-12T00:40:46 | 2019-10-12T00:40:46 | 207,823,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,359 | cpp | NPC.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "NPC.h"
#include "CollectibleParent.h"
#include "Math/Vector.h"
#include "Components/PrimitiveComponent.h"
// Sets default values
ANPC::ANPC(const FObjectInitializer& OI)
{
AIControllerClass = ANPCAIController::StaticClass();
... |
618de04b237bdcf47a86ca7734261ffbf0825f15 | 1f17c16f3c492cc8061b4a6fa911c8897c2094c3 | /Settings.h | 6434d4d58799a8476773161dae0c7e15d4d75052 | [] | no_license | misakshoyan/MovingDetection | 235f0d5ec36a57a3ada0c52746f76adb34ed9afe | 426d3080e8ae441a6efbc573a0da4e81a574b149 | refs/heads/master | 2020-12-26T19:24:30.997698 | 2020-02-01T12:49:45 | 2020-02-01T12:49:45 | 237,613,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | h | Settings.h | #ifndef SETTINGS_H
#define SETTINGS_H
class Settings
{
public:
Settings() {}
static Settings* createSettings();
public:
bool m_detectShadows = true;
int m_historyLength = 500;
bool m_isGaussianBlur = false;
bool m_isMedianBlur = true;
int m_minBoundingRectArea = 100;
... |
e4449e30b38612dca602500eaff11d3629a259f1 | 14654aafdd514fdb7ce794b5abe7faf66b36cbe2 | /Project/main.cpp | dbecca55ba6acd2ce885e76104001922f3138bc5 | [] | no_license | Shiro-Kitsune/Hidden-Object-3D-Game | 68d8999e7cbd43fa7a9d278e9373b82a983f9d4a | 525a9f197f111c25471cb29e8182dfeb8d26614d | refs/heads/master | 2020-04-16T21:52:27.806417 | 2019-01-16T00:24:49 | 2019-01-16T00:24:49 | 165,943,541 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 142 | cpp | main.cpp | #include "Window.h"
#include "Shader.h"
int main(void)
{
Window window(1366, 768, "Project");
window.run();
glfwTerminate();
return 0;
} |
39ef6c9bb8b3d28d2bc8e60e88cbd4b94cc95936 | 34cfe613e04e84b630bf9bcb8d66ea36e379af5e | /wildcard_matching.cpp | 018d396d15caab4a4d945c7681cf42e2d93e4a69 | [] | no_license | happysiddharth/DynmaicProgramming | e23de5852c518cc254bd77099e89b789d5117265 | 4024311d9fa7813501632894ddf7ce8853577110 | refs/heads/master | 2020-09-26T17:57:09.470611 | 2020-01-01T19:54:46 | 2020-01-01T19:54:46 | 226,307,555 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | wildcard_matching.cpp | #include <cstring>
#include <iostream>
using namespace std;
int main() {
string text, pattern;
cin>>text>>pattern;
int textL = text.length();
int patternL = pattern.length();
bool dp[patternL+1][textL+1];
memset(dp,false,sizeof(dp));
dp[0][0] = 1;
for (int j = 1; j <= patternL; j++... |
c3c5f7d97f74ac1ba43281f328659a37f1369777 | 9647a9403862a14079c57b8039c31819eb135d6b | /inc/NutellaPlayer.hpp | 1a77050f166011759b029e9d0d9ec136f306d36d | [] | no_license | ajthompson/cs4513-proj3 | 01e1ef1b8f9ef5aa4c08c155bde22ec9bcd09faf | f785aa5c6c015c443ff9b3903e0f2a4abcb51822 | refs/heads/master | 2021-01-10T14:56:56.935084 | 2016-02-16T18:39:19 | 2016-02-16T18:39:19 | 51,858,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,061 | hpp | NutellaPlayer.hpp | /**
* NutellaPlayer.h
*
* The NutellaPlayer is forked off to handle receiving and playing
* a movie.
*
* Alec Thompson - ajthompson@wpi.edu
* February 2016
*/
#ifndef NUTELLA_PLAYER_HPP_
#define NUTELLA_PLAYER_HPP_
#include <string>
#include <queue>
#include "MoviePlayer.hpp"
class NutellaPlayer {
int tflag... |
a654c1fef60dea6bf5762c8e47fdd4fb1614ac5c | 13b14c9c75143bf2eda87cb4a41006a52dd6f02b | /Uva/Uva2010/10771/10771.cpp | 6db9013270d266edcbb05501835d12a047b0a31e | [] | no_license | yutaka-watanobe/problem-solving | 2c311ac856c79c20aef631938140118eb3bc3835 | f0b92125494fbd3c8d203989ec9fef53f52ad4b4 | refs/heads/master | 2021-06-03T12:58:39.881107 | 2020-12-16T14:34:16 | 2020-12-16T14:34:16 | 94,963,754 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 843 | cpp | 10771.cpp | #include<iostream>
#include<vector>
#include<cassert>
using namespace std;
#define MAX 2000
int n, m, k, s, pos;
vector<char> T;
void next(){
pos = (pos+k)%(T.size());
}
void pre(){
if ( pos == 0 ) pos = T.size()-1;
else pos--;
}
void simulate(){
T.clear();
s = n + m;
for ( int i = 0; i < n ;... |
092d696783ca260cfb912c92194e6a56bbbf32c2 | b3814242f60ebb4393e4a105b91ac464078c88a7 | /shared/packets/ClientPacketWrapper.hpp | 3e3c0b018c2825f371c776a7875e8bf110e7b406 | [] | no_license | Techno-coder/SpaceShift | f858402c60637bfa68ff700c29557620cfee0966 | ed3a6a041d9d7ea2078242e38998f4f299e59040 | refs/heads/master | 2021-03-27T13:59:35.785446 | 2017-09-27T06:56:57 | 2017-09-27T06:56:57 | 103,614,271 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 464 | hpp | ClientPacketWrapper.hpp | #pragma once
#include "PacketWrapper.hpp"
class ClientPacketWrapper : public PacketWrapper {
public:
enum class Type : sf::Uint16 {
DISCONNECT = 0,
AUTHENTICATION_REQUEST = 1,
CHECK_ALIVE_RESPONSE = 2,
QUICK_JOIN_REQUEST = 3,
MOVE_REQUEST = 5
} type = Type::DISCONNECT;
private:
sf::Uint16 getType() cons... |
34a7d5b402bbfb1b1bac27f22620fa9356e6750c | 11b59df37235d5d61515ca79e6a18e0cb3e2bece | /src/Coroutine.cpp | 08058a2f939db11112488b6070318575a41786d8 | [
"BSD-3-Clause"
] | permissive | blastbao/coroutine-2 | 932282ff589596427b873604de08dd8e49c8b3cc | a8c48aa4506e52088bc368b2f8292d92b1511d55 | refs/heads/master | 2021-01-13T12:06:32.302132 | 2015-04-15T08:18:14 | 2015-04-15T08:18:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | cpp | Coroutine.cpp | #include "Coroutine.h"
#include "Schedule.h"
#include <assert.h>
#include <string.h>
#include <stdlib.h>
namespace coroutine
{
Coroutine::Coroutine(const CoroutineFunc& func, int id_arg)
: func_(func),
id_(id_arg),
state_(kReady),
stack_(NULL),
capacity_(0),
size_(0)
{
}
Coroutine:... |
9436c714d7f4bf2109a9936d740e01552bb8b598 | 1ba24756d0333d23511866af27702f5a9021ca6a | /src/AnarchyHook/Threading/Win32Thread.h | 2c57abf32ed1c406af660a13487d2fc953977fc7 | [
"WTFPL"
] | permissive | gordonc64/AOtomation.Hook | 84ffa54d944a7be4fe3d6a56b9c1456596022d63 | 5aec454260e177c737fe41df6f58ffe45b161297 | refs/heads/master | 2021-01-17T23:24:33.939296 | 2013-05-29T19:35:18 | 2013-05-29T19:35:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | h | Win32Thread.h | #pragma once
#include "Mutex.h"
namespace AnarchyHook {
namespace Threading {
// Simple Win32 Thread Class - David Poon
// http://www.flipcode.com/archives/Simple_Win32_Thread_Class.shtml
class Win32Thread {
public:
Win32Thread();
virtual ~Win32Thread();
unsigned int Id() const;
bool Cr... |
b98cce0a4d52b790cf34a0745e0f63c7e6b9e73c | b35023db97093d0c1566d400e1ff9c3b8ffda278 | /tool/measuringCore/src/sharedEntities/configurators/RunCommandConfigurator.cpp | 8fa052af0cc49c08c0d9b79603f0291606896fd4 | [] | no_license | GeorgOfenbeck/Thesis_Steinmann | 39b98eb25c6c83b6d4551f8a05ddd84792651de7 | 6ea893bdfbf2e97d036d59807f53a14c397b9616 | refs/heads/master | 2018-12-27T23:30:43.487941 | 2012-12-03T16:11:36 | 2012-12-03T16:11:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | cpp | RunCommandConfigurator.cpp | /*
* SystemConfigurator.cpp
*
* Created on: Feb 1, 2012
* Author: ruedi
*/
#include "Logger.h"
#include "RunCommandConfigurator.h"
#include "sharedEntities/configurators/RunCommand.h"
#include <cstdlib>
#include <sys/wait.h>
#include "utils.h"
#include <cstdio>
#include "Exception.h"
using namespace std;
... |
37fce3cf034bf4d77453acaba657fdbd49f29a37 | e4f62c6e1a160c46fabab9d4de962802fdef5e2e | /command_pattern/command/main.cpp | acd6bc5b5be47b592481a6555f8de5b808571c6f | [] | no_license | wayneliu0512/cpp-design-pattern | 625a205bc65b8ca5b4fe6cefae9c58b63cedb0e7 | a06ec2360126db781eb716275729b1d0c89c5d08 | refs/heads/master | 2020-04-19T08:16:02.661543 | 2019-06-13T09:52:47 | 2019-06-13T09:52:47 | 168,071,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,176 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
struct BankAccount {
int balance {0};
void deposit(int amount) {
balance += amount;
cout << "bank deposit " << amount << " and balance is " << balance << endl;
}
void withdraw(int amount) {
balance -= amount;
co... |
01bbda7052b107af4cf12f1c9eb1dad5861a8c21 | 9030ce2789a58888904d0c50c21591632eddffd7 | /SDK/ARKSurvivalEvolved_FPVWeaponAnimBP_Base_Carrying_classes.hpp | 18f36920e6bddc8d84ec06807cab29de8b07c97a | [
"MIT"
] | permissive | 2bite/ARK-SDK | 8ce93f504b2e3bd4f8e7ced184980b13f127b7bf | ce1f4906ccf82ed38518558c0163c4f92f5f7b14 | refs/heads/master | 2022-09-19T06:28:20.076298 | 2022-09-03T17:21:00 | 2022-09-03T17:21:00 | 232,411,353 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 45,237 | hpp | ARKSurvivalEvolved_FPVWeaponAnimBP_Base_Carrying_classes.hpp | #pragma once
// ARKSurvivalEvolved (332.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_FPVWeaponAnimBP_Base_Carrying_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------... |
21e8011952dc3799f37689a5de16fcbf3bd106df | 3ff1fe3888e34cd3576d91319bf0f08ca955940f | /cls/include/tencentcloud/cls/v20201016/model/KafkaConsumerContent.h | 4b2aa5a341370e2cfbf65b04a3861641120b68bc | [
"Apache-2.0"
] | permissive | TencentCloud/tencentcloud-sdk-cpp | 9f5df8220eaaf72f7eaee07b2ede94f89313651f | 42a76b812b81d1b52ec6a217fafc8faa135e06ca | refs/heads/master | 2023-08-30T03:22:45.269556 | 2023-08-30T00:45:39 | 2023-08-30T00:45:39 | 188,991,963 | 55 | 37 | Apache-2.0 | 2023-08-17T03:13:20 | 2019-05-28T08:56:08 | C++ | UTF-8 | C++ | false | false | 8,226 | h | KafkaConsumerContent.h | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... |
ab6aa71b691fb2823000da11d65aa7847690bf3f | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-finspace/source/model/KxCluster.cpp | 4cd71f3e53173d6af1c76ba203aa2a1ec4864722 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 5,220 | cpp | KxCluster.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/finspace/model/KxCluster.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace ... |
3d2b2c2598205904887ec6c66a46e73b441f9f9d | 5b36dcac15f22f4fa0f03d408fbdd361cdea4e97 | /grasping_oru/aass_icr/libicr/icrcpp/include/utilities.h | 95b5b164f3301db3af35b338bfe30ce4a1342876 | [] | no_license | windbicycle/oru-ros-pkg | 54706d94e0b085bfdf4c495aa2c2f5a36906a7f2 | b93b907d634a2749a95d0e978b5236a0146c4672 | refs/heads/master | 2021-01-10T02:19:45.152464 | 2014-05-04T13:49:57 | 2014-05-04T13:49:57 | 47,093,044 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,768 | h | utilities.h | #ifndef utilities_h___
#define utilities_h___
#include <Eigen/Core>
#include <Eigen/StdVector>
#include <list>
#include <vector>
#include <tr1/memory>
#define EPSILON_WRENCH_CONE_ROTATION 1e-10
#define EPSILON_UNIT_NORMAL 1e-6
#define EPSILON_FORCE_CLOSURE 1e-10
#define PI 3.14159265358979323846264338327950
#define N... |
066bd3e8e392f156b6cd2567c932150738fb2234 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/1.07/p | aa6a28ad281523d6b7d4e1c83fb5b1d03386e6a5 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 87,569 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.