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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a910878cc2156fa598cf3e5fe5731b768fffc06 | ae68506d397c28f95e8bfee86832cb951cd031aa | /castle venia/Castlevania/Fireball.cpp | 161b5d83f00b93f755ed5adf50473307c7682c80 | [] | no_license | yshaia7/castle-venia | 7219191d01d7e4c85d43d197a5c48865b16a8e5a | 594a99679f1c576ef4e4f712b4d2d417a4226c9b | refs/heads/master | 2020-07-13T20:41:33.106408 | 2020-07-04T10:08:47 | 2020-07-04T10:08:47 | 205,150,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 442 | cpp | Fireball.cpp | #include "Fireball.h"
//----------------------------------------------------------
Fireball::Fireball(sf::Vector2f origin, int direction) : Range(origin, direction)
{
m_velocity.x = 3;
if (direction == 0)
{
m_velocity.x = -m_velocity.x;
m_sprite.setOrigin({ m_sprite.getLocalBounds().left, 0 });
m_... |
be6bdf3236cc40dc9de79dc2dd0bea40ea20c2a4 | 773fcc0b33a9733ca1760db6b1bffb43364d8026 | /_SAFC_/SAFC_InnerModules/CAT.h | 0fda10a6b29b1017967db3f0b84ccab05ef2217a | [
"Apache-2.0"
] | permissive | DixelU/SAFC | e341b4a162c95edbee0e0639e43810d86779d95a | 144325849ac460d5e78689cd06f6571ba3837366 | refs/heads/master | 2023-08-18T18:22:22.810386 | 2023-08-14T17:17:09 | 2023-08-14T17:17:09 | 167,155,875 | 8 | 0 | Apache-2.0 | 2023-01-08T04:56:34 | 2019-01-23T09:30:31 | C++ | UTF-8 | C++ | false | false | 633 | h | CAT.h | #pragma once
#ifndef SAF_CAT
#define SAF_CAT
#include <optional>
#include <Windows.h>
struct CutAndTransposeKeys
{
std::uint8_t Min, Max;
std::int16_t TransposeVal;
CutAndTransposeKeys(std::uint8_t Min, std::uint8_t Max, std::int16_t TransposeVal = 0)
{
this->Min = Min;
this->Max = Max;
this->TransposeVal... |
b99c243c9eb537e4751e210ef872ffd47dfa5c59 | a74acf296bd4380b4b98819c23b9b20fdf663c34 | /opencv_project1/mainwindow.cpp | f9174b0db0608b00c3897fa31f32d4f3aebb38f6 | [] | no_license | zenglingchang/Opencv_project | 809adc73417b036e5cd68d09209b5b84269cdd13 | b3a2cc0ff49ebe04471fadf1805ce55cdd460810 | refs/heads/master | 2020-03-15T00:17:53.069717 | 2018-05-22T07:57:07 | 2018-05-22T07:57:07 | 131,864,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,386 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
int X[]={-1,1,0,0,1,1,-1,-1};
int Y[]={0,0,-1,1,-1,1,-1};
std::stack<std::pair<int,int>> S_p;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->spinBox->setMinimum(0);
ui->spinBox->setMaxi... |
e5e3bef506a03dbabcc094340e402746f2535f66 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir22441/dir22442/dir22443/dir22444/dir22630/file22794.cpp | e7fcc624845aa7e4e3a1b6710196fe132d536ee5 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file22794.cpp | #ifndef file22794
#error "macro file22794 must be defined"
#endif
static const char* file22794String = "file22794"; |
c4d1b0d534c66651c7f224925e56bc746c83f165 | 975f01015f94d67bdfdc9086bdafd8ac59332a0f | /source/ExerciseSet.h | e6f8f5e5a7ced42ade7287bab1d446d63466616f | [
"MIT"
] | permissive | R-Fehler/microbit-samples | 55f3fd7a45e9e2c9dae8c9b3bd560b1912da7356 | 24dd4a1a3a28c3572b7142e03b39bfc65395b43c | refs/heads/master | 2023-02-03T00:35:16.004423 | 2020-12-19T17:41:37 | 2020-12-19T17:41:37 | 174,408,960 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,282 | h | ExerciseSet.h | #ifndef MICROBIT_SAMPLES_EXERCISE_SET_H
#define MICROBIT_SAMPLES_EXERCISE_SET_H
#include "MicroBitEvent.h"
#include "MicroBitUARTService.h"
#include "Microbit.h"
#include "TwoDigitDisplay.h"
#include "myInput.h"
#define DPTIMEUNTILFIRSTREP 300
#define MAX_FILTER_REDUCTION_CONSTANT 3
//#define ACCELOREMETERSERIALOUTPU... |
0ab56edae6d793bf55c51e793b62b0b7a8fce46c | edab58696afb07657232f17490b24c8e1e11b6c2 | /uva/1116.cpp | 86cbe594bfb1a76622a4e04e0b3aa2ca8042ec1a | [] | no_license | mhcayan/competitive-programming | cd8e08da67138cfbdcd2d47cd70572a7fc6435fd | f80ab6929a5d2eb780d35679688ea39138cf9e8a | refs/heads/master | 2022-05-27T15:03:46.147224 | 2022-05-22T00:21:29 | 2022-05-22T00:21:29 | 161,851,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 287 | cpp | 1116.cpp | #include<stdio.h>
int main()
{
long cas,t,n,e;
scanf("%ld",&cas);
for(t=1;t<=cas;t++)
{
scanf("%ld",&n);
if(n%2)
printf("Case %ld: Impossible\n",t);
else
{
e=1;
while(n%2==0)
{
n=n/2;
e*=2;
}
printf("Case %ld: %ld %ld\n",t,n,e);
}
}
return 0;
}
|
8bac50fd79c6900726378d3e9c90b98c9a7de06f | 971c8fef5e1c3e23a9fbba046e075a30c4508077 | /Processamento Gráfico - TGB - Jogo 2D Tiles/Tile.h | 22ef04c9a110955b399d55e3cc34437eba268bf7 | [] | no_license | leofelix077/processamentoGrafico | 2b58e3acc8e593278ae2984c0c26ea13a69d9a6c | 3e799b1b1736b21325d59f75e1fe3e9f215b036f | refs/heads/master | 2020-03-09T08:33:01.297204 | 2018-04-09T00:33:50 | 2018-04-09T00:33:50 | 128,691,869 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 358 | h | Tile.h | #pragma once
#include "Image.h"
//----------------------------------------------------------------------
//classe descontinuada
class Tile {
public:
Tile(int id, Image *img) {
this->id = id;
this->img = img;
}
int getId() {
return id;
}
//---------------------------------------------------------------------... |
1f3381b133b8fa8e188e0fa4e4d395498cfdc401 | 6799592f780197259b8217c70c7f905da233a2ed | /plugins/ftp/lib/DirList/unix.cpp | be7dcdbaf8c51050efd10bef02624c6d4ebe6c9b | [
"BSD-3-Clause"
] | permissive | FarGroup/FarManager | 22b1f754a4cf4bcc6e1822a6ce66408fabf140d5 | da34b0c6da3e03518b8ce7e53783e9fda518bac4 | refs/heads/master | 2023-08-20T04:52:54.443453 | 2023-08-12T20:53:56 | 2023-08-12T20:53:56 | 107,807,404 | 1,691 | 228 | BSD-3-Clause | 2023-09-14T20:07:19 | 2017-10-21T18:55:45 | C++ | UTF-8 | C++ | false | false | 8,433 | cpp | unix.cpp | #include <all_far.h>
#pragma hdrstop
#include "Int.h"
#define MIN_DATETIME_STRING (3+4) //The minimal date-time string is "F 2000"
/*
*--Full format
1 2 3 4 5 6 7
01234567890123456789012345678901234567890123456789012345678901234567890123456789
Sep ... |
332dbe0d81e2e3060e446fbfe409869551f1d64a | f5f97b069e9506f39c4a40d09056555fe8179b6f | /MiniTest_01/Game/Game/Lib/Object3D.cpp | 62be16c3405338423df6bfdac309013d1e65a957 | [] | no_license | nezumimusume/GamePG_2017 | 16434f7f6fc35d7f312da09bcdf70274b41c5570 | 7674c648f94343782e6beb3bc617a12becc8223e | refs/heads/master | 2023-07-20T15:57:25.695194 | 2017-07-10T15:04:28 | 2017-07-10T15:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,493 | cpp | Object3D.cpp | /*!
*@brief Actor
*/
#include "stdafx.h"
#include "Lib/Object3D.h"
CLight Object3D::defaultLight;
void Object3D::Init(const char* filePath, const CCamera& camera)
{
defaultLight.SetDiffuseLightDirection(0, CVector3(0.707f, 0.0f, -0.707f));
defaultLight.SetDiffuseLightDirection(1, CVector3(-0.707f, 0.0f, -0.70... |
0679920dff0fe357bad0a9aec0a335b18b74967b | 5b9e02d6199b3be3a83cedad9eb4ad58f784274e | /_OSODT/alg_3/_old/alg31.cpp | e5226764aada02c67bdb45c409b57d8dcb52f208 | [] | no_license | ZonDBeer/Bachelor_work | 2a09cdf894a83f846484325bba7981c25d5d87b5 | 36226b68ad9496ad7c31d7c1c4ca1482ce4991bc | refs/heads/master | 2020-03-19T02:56:08.576575 | 2018-06-01T07:35:50 | 2018-06-01T07:35:50 | 135,676,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,093 | cpp | alg31.cpp | //#include "stdafx.h"
//#include <intrin.h>
//#include <conio.h>
#include <cstdio>
#include <cstdlib>
#include <malloc.h>
#include <sys/time.h>
#include <immintrin.h>
#define MAX 10000000 // MAX t_data size
using namespace std;
double wtime()
{
struct timeval t;
gettim... |
15348fef53b188311f934cc353ce1fc10e433d9e | 048fafade61e500adcce2d4d153ad5e9bb845468 | /day04/test.cpp | fb078c489d37a8eb26300e8778c67a435236cfa1 | [] | no_license | ngulya/CPP | 2a8e36fd9662c5a68e2e9440522d06d47aa7c499 | 936e4111a673e38e044541a52be03855a7744ecc | refs/heads/master | 2021-08-24T06:40:21.797362 | 2017-12-08T13:00:00 | 2017-12-08T13:00:00 | 113,574,733 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,417 | cpp | test.cpp | // ************************************************************************** //
// //
// ::: :::::::: //
// test.cpp :+: :+: :+: ... |
10682b87617395a9387b5c450a25eadf04b752df | 8583b5bfc594b994f51d24d012e92ae66bf2e5ea | /src/BabylonCpp/src/meshes/builders/mesh_builder_options.cpp | 39f8fc68b5372d7b7d63fe5d40f5a29c4abe64c1 | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | samdauwe/BabylonCpp | 84b8e51b59f04a847681a97fa6fe0a5c554e9e1f | 3dad13a666299cbcf2e2db5b24575c19743e1000 | refs/heads/master | 2022-01-09T02:49:55.057544 | 2022-01-02T19:27:12 | 2022-01-02T19:27:12 | 77,682,359 | 309 | 41 | Apache-2.0 | 2020-11-06T12:16:17 | 2016-12-30T11:29:05 | C++ | UTF-8 | C++ | false | false | 16,874 | cpp | mesh_builder_options.cpp | #include <babylon/meshes/builders/mesh_builder_options.h>
namespace BABYLON {
//--------------------------------------------------------------------------------------------------
// Box mesh options
//--------------------------------------------------------------------------------------------------
BoxOptions::BoxOp... |
41321c5e45ed4df895380ab3d812cab0495d44e0 | f3978512d2ee7ce7b68fb0bf227cf8f7a5845f7a | /FileTransferApp/main.cpp | c22ba47c90fd21fd203c606a50ef15694be3c049 | [] | no_license | Feoggou/filetransfer | d4bc37f489b4d1f8959a4c654142055dcbfe7591 | ae641e5dd94b071a8c5c84fa5f795aee04840163 | refs/heads/master | 2020-06-02T04:39:44.974383 | 2013-08-04T14:41:25 | 2013-08-04T14:41:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,192 | cpp | main.cpp | #include <math.h>
#include <exception>
#include "General.h"
#include "Application.h"
#include "MainDlg.h"
#include "resource.h"
#include "Recv.h"
#include "Send.h"
#include "String.h"
//the variable that specifies if the connection and all that goes with it should end or not
BOOL bOrderEnd = false;
//this specifies... |
cf6b2ac3fd3d25d5c71bef14014a4c502ef2f621 | 3c325be3820097a67c08d7048ca3552db71e446c | /codeforces/1280A.cpp | 7489720773084252e8694fbd80ced28ce9a0e353 | [] | no_license | M45UDrana/DS-Algo-Problem-Solving | 2dc2ba53f162675ddc6b549f0c84b702f738a485 | 5548d514f9ffff7aa618b29fcb8440a8b85afb8b | refs/heads/main | 2023-07-17T06:14:51.062413 | 2021-09-01T18:19:14 | 2021-09-01T18:19:14 | 375,086,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 523 | cpp | 1280A.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const ll inf = 1e9+7;
int main()
{
int t; cin >> t;
while(t--)
{
ll n; cin >> n;
string s; cin >> s;
ll m = s.size();
for(int i = 0; s.size() < n; i++)
{
int x = s[i]-'0', md = s.size();
while(x > 1 and s.size() < n)
{
for(... |
7600b1a72c3dcab76cc6e8f9cbf1f026eb3373f6 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /base/gmock_unittest.cc | 649054de9b8ce2794cf6e2267dc454b30bd7fd33 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 3,928 | cc | gmock_unittest.cc | // Copyright 2009 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This test is a simple sanity check to make sure gmock is able to build/link
// correctly. It just instantiates a mock object and runs through a couple of
// the basic moc... |
963e4db5cf0a37d82c4807bfc8063119b5e06aba | cae9161d77926313e0062333dd1e76784b112765 | /game/packet/requestprivatestorequit.cpp | bacead049b2dda7c382c1745fbdfa03f9b15a0f9 | [] | no_license | yury-dymov/legacy_l2tradebot | 9cbd0f94da8fc3ed7239715c5b349e0ee6689277 | 914671cdd31a884020a531ec86915d4a09de7523 | refs/heads/master | 2021-01-10T01:11:08.096960 | 2016-08-12T17:23:11 | 2016-08-12T17:23:11 | 55,140,565 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | requestprivatestorequit.cpp | #include "gamepacket.h"
string GamePacket::requestPrivateStoreQuit ()
{
string ret;
ret += E_C_GAME_REQUEST_PRIVATE_STORE_QUIT;
return ret;
}
|
bb131a5914556ffe3ae4d6b969272b90d2ff3298 | 80947518e20f28660dc92580e1726573493b7d6c | /aoba/ir/node_inputs.h | 6458992f586eba89ec8ecf6be264bef0612365ef | [] | no_license | blockspacer/aoba | 6a3148f93d8b8cb9f9a87a44d12cd93e5285ffce | 675d1e534c765bf77e1b8df81510b3431d1156d0 | refs/heads/master | 2020-09-14T20:40:09.023275 | 2017-11-12T15:27:23 | 2017-11-12T15:27:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,264 | h | node_inputs.h | // Copyright (c) 2016 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef AOBA_IR_NODE_INPUTS_H_
#define AOBA_IR_NODE_INPUTS_H_
#include <vector>
#include "base/macros.h"
namespace aoba {
class Zone;
namespace ir {
clas... |
ce2c1a9d4966856845b5c7345a6ac65bdf67ab71 | 1c2371f6f0d9a3a6758fe9a2262dcb29d5548505 | /src/banking/InvalidPIN.cpp | 720080f540699420b49a68cf8130eee2e9de0637 | [
"MIT"
] | permissive | hxbc01/project-cpp-qt-atm | c820f83ad577621463344a80ed8054341a34a015 | 021a46517bd7a64df4e8f5507dd3261a7f6506bd | refs/heads/master | 2022-04-22T15:55:14.112215 | 2020-04-26T21:56:57 | 2020-04-26T21:56:57 | 268,283,108 | 1 | 0 | MIT | 2020-05-31T13:12:33 | 2020-05-31T13:12:33 | null | UTF-8 | C++ | false | false | 221 | cpp | InvalidPIN.cpp | #include <QDebug>
#include "InvalidPIN.h"
banking::InvalidPIN::InvalidPIN() : StatusFailure("Invalid PIN")
{
}
banking::InvalidPIN::~InvalidPIN()
{
}
bool banking::InvalidPIN::isInvalidPIN()
{
return true;
}
|
bd1b2dff817765c3564b129f5b842546cea03213 | 6fafdbe916c2469c0b8c56a4da86ac819bd0da37 | /code/bp-heterogeneoTW/ModeloHeuristica.cpp | e958db8aa16ea0c3d1680da6dd1c916a1c731927 | [] | no_license | lulzzz/phd-cross-docking | ca84b7f749be778b27cd72b0a2f54e35b075969f | 980e5abc9402cadeff5916c63bc8298df8aaf247 | refs/heads/master | 2021-05-09T15:08:44.878172 | 2017-02-17T17:36:47 | 2017-02-17T17:36:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,262 | cpp | ModeloHeuristica.cpp | #include "ModeloHeuristica.h"
ModeloHeuristica::~ModeloHeuristica(){
int maxVeiculos = lambdaInt.getSize();
objective.end();
constraints1.endElements();
constraints2.endElements();
constraints3.endElements();
constraints4.endElements();
constraints5.endElements();
constraints6.endElements();
for (int k = 0;... |
58de82cbbea93a36a813b3a4de21960ba17a688b | 550c97fa465ace75d1252731e36a66ea97aa12b1 | /src/main.cpp | df4d484bdbbc1d1fd30decefc1d80c16c19d9ef9 | [] | no_license | peterborkuti/thermocam | 1bd1bed7551b948526169c4d9cc6cb37fec9aa64 | 624fc14d83cc3cffd7bfd147670138cf6bb9e037 | refs/heads/master | 2021-01-22T03:54:57.777599 | 2014-10-19T19:24:59 | 2014-10-19T19:24:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,031 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Sep 9, 2014
* Author: peter
*/
#include <iostream>
#include "numberscanner/numberscanner.hpp"
#include "distancemeter/distancemeter.hpp"
#include "imagereader/imagereader.hpp"
#include "cli/cli.hpp"
#include <cstdio>
/*
int omain() {
std::cout << "START" << std::endl;
ns::N... |
5b77ddee61f35fb296bbfaf336595a56393654e1 | 62efb9ba2ffdfcb0aacca9d7bf1f347a9ee535e1 | /NNGameFramework/Main.cpp | 338615ee0f54592cf9128fee5a3b34dc5c844616 | [] | no_license | agebreak/Sample_2DFighter | 97c3caa60bd4a4962624f0c3c07fa236d56ba575 | da13929920d21241f09bdc96cd53fcb9f7285cf7 | refs/heads/master | 2021-01-10T20:55:36.485414 | 2013-11-07T07:30:24 | 2013-11-07T07:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cpp | Main.cpp |
#include "NNApplication.h"
#include "SpriteExampleScene.h"
#include "C2DFighterScene.h"
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmdParam, int nShowCmd )
{
#ifdef _DEBUG
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF|_CRTDBG_LEAK_CHECK_DF);
//_CrtSetBreakAlloc( );
#endif
NNApplication* Ap... |
ac2ced379dc5b17a137b313948cd041a6fb129e9 | 7e84926686c4055a570855e4b299b0eb254c4a52 | /Rain_fence.cpp | a624082f25c6ef2ad53a3ad61d6bea6a49780704 | [] | no_license | Minhvn98/ATBM | c0f66c806915eba18206944df7ee43c034558f21 | 494c3934e2c81ed58e32aa26f5713839a31d998b | refs/heads/master | 2020-06-23T11:28:50.950998 | 2020-01-14T08:44:16 | 2020-01-14T08:44:16 | 198,609,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | Rain_fence.cpp | #include<iostream>
using namespace std;
main(){
string s, s1, s2;
cout << "Nhap chuoi : "; getline(cin, s);
//Ma hoa
for(int i = 0; i < s.size(); i++){
if(i % 2 == 0) s1 += s[i];
else s2 += s[i];
}
s = s1 + s2;
cout << "Chuoi sau ma hoa : " << s <<endl;
// Giai ma
string P;
if(s.size() % 2 == 0){
... |
865230fcb3d1f27102f0bfa731a3d6e2cd653a46 | e92af86f33f4bdd457578733074d3c7f6aa7c7fb | /source/GameCommon/SceneObject.proto.fflua.cc | c6433cab3d590cb7ca71afcadd9bc637dd5b8555 | [] | no_license | crazysnail/XServer | aac7e0aaa9da29c74144241e1cc926b8c76d0514 | da9f9ae3842e253dcacb2b83b25c5fa56927bdd3 | refs/heads/master | 2022-03-25T15:52:57.238609 | 2019-12-04T09:25:33 | 2019-12-04T09:25:33 | 224,835,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 13,344 | cc | SceneObject.proto.fflua.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: SceneObject.proto
#include "SceneObject.pb.h"
#include "SceneObject.proto.fflua.h"
namespace Packet {
bool SceneLayout_fflua_reg(lua_State* state)
{
//for decltype
SceneLayout* message(nullptr);
message;
ff::fflua_register_t<SceneLayout, ctor()>(... |
c45ab2624e886b1fa0a871e225a8bcd2d457fe8a | 473c46829b93e230f05a9bbfb927959d0ab1fd6f | /temp/Graph.h | d6bbf717fd63ffc831afd45d80da9a524ad932c1 | [] | no_license | Sh4nglj/BA1-2-Data-Structure | 357d63e97095c5866f8712cd852237b80f93ea7d | 9c4051c35e38a4dfd71807f1de3eb92ac4ff3910 | refs/heads/master | 2022-09-28T16:01:35.739846 | 2020-06-04T10:44:31 | 2020-06-04T10:44:31 | 263,648,277 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,624 | h | Graph.h | /*******************************************************************************
* FileName: Graph.h
* Author: Name
* Student Number: Student_id
* Date: 2020/04/29 11:24:55
* Version: v1.0
* Description: Data Structure Experiment #11
****************************************... |
4bc1fc3677a5418b9210f425422056f55f6d78c1 | 013c01020523b5b184c1f44bf7df41ab2ed59923 | /Projet4/FrostbiteGeneral.h | 00cec8025010bea278071bcf29ee72b3ab6abf69 | [] | no_license | Kuwagamon/Cplus | 499e2539a540699a373982379f06dd2c403db033 | 6787e366526903f0aa16f3c337646acbca975109 | refs/heads/master | 2023-03-15T16:19:27.066441 | 2015-04-24T19:40:20 | 2015-04-24T19:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,777 | h | FrostbiteGeneral.h | #pragma once
#include <Windows.h>
#include "Eastl.h"
namespace fb
{
// typedef eastl::allocator eastl_arena_allocator;
#define EASTLDummyAllocatorType
template<typename T> class WeakToken
{
public:
T* m_RealPtr; //0x0000
};//Size=0x0008
template<typename T> class ConstWeakPtr
... |
c50b1bb6b49dc07d51d16f0e4fd5045d6f5a3398 | 69379350f785b0931a26741b6f817b43ea06d520 | /QuickSort.h | 9075884e206c8d655956ed9448d215eba16b2383 | [] | no_license | wangsi12/Sort | fbd73e0b1d3e35eeac88b54258e893f4542faa5a | 60f041f0b8c67c65ffc82d078d76bc2f980077e0 | refs/heads/master | 2020-04-28T00:30:29.882555 | 2019-03-10T13:15:45 | 2019-03-10T13:15:45 | 174,818,044 | 1 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 263 | h | QuickSort.h | #ifndef QUICKSORT_H
void QuickSort(int* nums, int low, int high);//µÝ¹é
template<typename T> void QuickSortTemplate(T* nums, int low, int high);
template<typename T> void QuickSortTemplate1(T* nums, int n);
void Test_QuickSort();
#endif // !QUICKSORT_H
|
f7ba083f1b495daeb6cc4bce8cda00dd3b81021e | 7fb17afc90efcee56bc38025ca92c5c9785e3813 | /Concurrency3/concurrency3.cpp | d7859986d2ef9d91f368f1ee41dd84f53c369712 | [] | no_license | bomberm/CS444Assignments | f6ae1a780bdb2c263af00243e2c18a799deeb48e | c096e1402df86479f8ece55562647b5d65778dc3 | refs/heads/master | 2021-08-19T19:01:34.435021 | 2017-11-27T06:21:43 | 2017-11-27T06:21:43 | 106,240,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,936 | cpp | concurrency3.cpp | #include <iostream>
#include <thread>
#include <sstream>
#include <stdlib.h>
#include <unistd.h>
#include <vector>
#include "generalHelpers.h"
#include "sharedResource.h"
void problem1();
void problem2();
int main(void)
{
std::string input;
int choice;
std::cout << "Please select if you would like to see the d... |
b3ce5c8dd8b177d2df89305deacce3a9ca1500ac | 03c4096d19255a6e72b40949ff2e77ba79fa74f7 | /HCalib/HCalib.h | e5f820cb51fb1c1e49079114e0dbc9c2fefed977 | [] | no_license | sPHENIX-Collaboration/analysis | c0687cd1b4ea9ec426e71303d2a8b4c34d19c11c | dc932e3355d09898bba525ac1e6292ade5c48d02 | refs/heads/master | 2023-08-31T22:22:52.275236 | 2023-08-29T22:53:04 | 2023-08-29T22:53:04 | 37,741,543 | 4 | 58 | null | 2023-09-13T19:37:21 | 2015-06-19T19:25:00 | C | UTF-8 | C++ | false | false | 1,186 | h | HCalib.h | #ifndef __HCALIB_H__
#define __HCALIB_H__
#include <fun4all/SubsysReco.h>
#include <string>
class PHCompositeNode;
class RawTowerContainer;
class RawTowerGeomContainer;
class PHG4CellContainer;
class PHG4ScintillatorSlatContainer;
class TFile;
class TH1F;
class RawTower;
#include <g4detectors/PHG4ScintillatorSlatDef... |
f18ec264992d07edf847e1486d45fd60431d59f8 | 91ac3071b9e5de4ad796c884ab1d945234d79dc7 | /Algorithm/Stringarray/waveARR.cpp | e0b2862748ea56d17dede6183c3f877ee5c39777 | [] | no_license | anshumanvarshney/CODE | aa22950acf1aed4a694774454716dd5acff38143 | a93bb1f20a246948d178a1a59d1ce99945c063f6 | refs/heads/master | 2021-05-04T12:15:56.879649 | 2018-02-05T10:48:21 | 2018-02-05T10:48:21 | 120,291,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,021 | cpp | waveARR.cpp | /*
Sort an array in wave form
Given an unsorted array of integers, sort the array into a wave like array. An array ‘arr[0..n-1]’ is
sorted in wave form if arr[0] >= arr[1] <= arr[2] >= arr[3] <= arr[4] >= …..
opposite to zigzag
Examples:
Input: arr[] = {10, 5, 6, 3, 2, 20, 100, 80}
Output: arr[] = {10, ... |
2693e35a4abea5bb7e0ae2c5be12e26b3d4d4a89 | fffcaf31dbaa4b7a880fdbbbe32f950122d626d8 | /pathtracer13/include/display/film.h | 1bed0ab35fa6a397fae47eb26a955f4d102d4f54 | [] | no_license | CS-FreeStyle/papi-cuda | 4622c8d6acaf9b0564d301df55a409637b003f0f | 1eb28a4e4a6bde009b4415f71e6658127aeff043 | refs/heads/master | 2020-06-16T18:59:02.027877 | 2012-07-12T22:05:07 | 2012-07-12T22:05:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,794 | h | film.h | /***************************************************************************
* Copyright (C) 1998-2009 by David Bucciarelli (davibu@interfree.it) *
* *
* This file is part of SmallLuxGPU. *
* ... |
323842d163e4d8e36b3928cb0cfa3ec0c392507f | 492976adfdf031252c85de91a185bfd625738a0c | /src/Game/AI/AI/aiChemicalEnemyFindPlayer.cpp | de0569c43db2b4aa9d35a2363cf2809c867ed51b | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 571 | cpp | aiChemicalEnemyFindPlayer.cpp | #include "Game/AI/AI/aiChemicalEnemyFindPlayer.h"
namespace uking::ai {
ChemicalEnemyFindPlayer::ChemicalEnemyFindPlayer(const InitArg& arg)
: LandHumEnemyFindPlayer(arg) {}
ChemicalEnemyFindPlayer::~ChemicalEnemyFindPlayer() = default;
void ChemicalEnemyFindPlayer::enter_(ksys::act::ai::InlineParamPack* params... |
ff5286cad1bc341670f9f8dac2568e9ba8c6fd6b | 0f2b08b31fab269c77d4b14240b8746a3ba17d5e | /onnxruntime/core/providers/cann/npu_data_transfer.cc | 2f51c550b207ef8aba665ad32a795e5154bb3c54 | [
"MIT"
] | permissive | microsoft/onnxruntime | f75aa499496f4d0a07ab68ffa589d06f83b7db1d | 5e747071be882efd6b54d7a7421042e68dcd6aff | refs/heads/main | 2023-09-04T03:14:50.888927 | 2023-09-02T07:16:28 | 2023-09-02T07:16:28 | 156,939,672 | 9,912 | 2,451 | MIT | 2023-09-14T21:22:46 | 2018-11-10T02:22:53 | C++ | UTF-8 | C++ | false | false | 4,608 | cc | npu_data_transfer.cc | // Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Huawei. All rights reserved.
// Licensed under the MIT License.
#include "core/providers/shared_library/provider_api.h"
#include "core/providers/cann/npu_data_transfer.h"
namespace onnxruntime {
NPUDataTransfer::NPUDataTransfer() {}
NPUDat... |
fea62a5eeea4908ad154950711859a6239771352 | 2d9cd06217a836395bcad23dfcf6e4a670663af3 | /libraries/kali/string.h | 6e2fca44ed5b081d9a8276e2910683a8aa679594 | [
"MIT"
] | permissive | seven-phases/spectrum-analyzer | 922b5effea4190447f848a5d22a645f3528c39e7 | b3638de0a194cf43afb5e96c9e6bc7c9ca2687d7 | refs/heads/master | 2021-01-10T04:16:14.125687 | 2015-07-14T00:07:41 | 2015-07-14T00:07:41 | 36,190,752 | 101 | 23 | null | null | null | null | UTF-8 | C++ | false | false | 2,734 | h | string.h |
#ifndef KALI_STRING_INCLUDED
#define KALI_STRING_INCLUDED
#include <string.h>
#include <stdarg.h>
#include "kali/platform.h"
// ............................................................................
namespace kali {
namespace details {
// ...................................................................... |
fb3a41c2fa0c1e15d79e594ccfe7abe3eb1afd5d | 65ac436d3a7f2cd86a6449a1952ed0d50e283852 | /L2/src/architecture.h | fa192968347ba6990f9d6fe86e4b5b9303ceef9e | [] | no_license | dwivedisankalp97/Compiler-Construction | a38a7faddd1b25507ddcee9415197d533ee0e769 | 678f69ba1011fc7160150c521afcda804e8973c6 | refs/heads/master | 2022-04-11T07:04:12.158465 | 2020-03-05T20:00:24 | 2020-03-05T20:00:24 | 244,785,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | h | architecture.h | #pragma once
namespace L2 {
extern std::string GPregisters[16] = {"rdi", "rax", "rbx", "rbp", "r10", "r11", "r12", "r13", "r14", "r15", "rsi", "r8", "r9", "rcx", "rdx"};
}
|
6505112ef4a469b385f508e138b33ad46b444fb1 | 39ac6d3f7f93be4a1a7bf4bf7bc8b292bec9e552 | /src/core/events/eventdispatch.h | 25b4b232530e0d64e541b6ef10afb57b575b7dce | [
"MIT"
] | permissive | jpxor/Boilerplate | d3cc7840d29a4d4392f6a6c9fb477936471bdbc7 | c1736b1a1fc714be21fba5f3159f6483b888a662 | refs/heads/master | 2021-09-04T05:15:22.135249 | 2018-01-16T07:16:37 | 2018-01-16T07:16:37 | 106,244,746 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | h | eventdispatch.h |
#pragma once
#include <memory>
#include <functional>
namespace Events{
class Event{
public:
int id;
Event(int event_id):id(event_id){;;}
};
int subscribe(std::string chan_name, std::function<void(std::unique_ptr<Event>&)> callback);
void unsubscribe(std::string chan_name, i... |
7b76ba37b9dd0e1ea94d6b29bd0936aa3381195b | 2d91d1af1f049248c9e5f2c4047289d614fcb0b4 | /cpp_utils/BLEAddress.h | 7eff4da4bb624185410f474b1632a1121cd99eea | [
"Apache-2.0"
] | permissive | chegewara/esp32-snippets | 8b9d8e5fb8cbe9ef912b38561795620944b59b01 | 874ce79815817a4796612716c95ea6d639c9df0b | refs/heads/wip | 2021-05-07T03:38:48.099902 | 2018-10-01T23:37:06 | 2018-10-01T23:37:06 | 110,790,433 | 9 | 4 | Apache-2.0 | 2018-10-03T22:53:41 | 2017-11-15T06:01:18 | C | UTF-8 | C++ | false | false | 749 | h | BLEAddress.h | /*
* BLEAddress.h
*
* Created on: Jul 2, 2017
* Author: kolban
*/
#ifndef COMPONENTS_CPP_UTILS_BLEADDRESS_H_
#define COMPONENTS_CPP_UTILS_BLEADDRESS_H_
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#include <esp_gap_ble_api.h> // ESP32 BLE
#include <string>
/**
* @brief A %BLE device address.
*
... |
bf73f814aecaecb231aa204ae3d9b4ea5747417a | 5c176fb35c7f24229657e78014ad151f0bf49880 | /UglyNumber.cpp | 7f61ea13a0bb1264aa220000445aee3e5ef35f4b | [] | no_license | YangKai-NEU/algorithms | e3caac49d6e30bdcbe3268ad16e797167a03f5eb | 308f0f3434392b294747099626c42b963e0ebfef | refs/heads/master | 2021-01-22T07:42:30.083682 | 2017-09-04T02:55:18 | 2017-09-04T02:55:18 | 102,311,499 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | UglyNumber.cpp | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int GetUglyNumber_Solution(int index) {
vector<int> s;
s.push_back(0);
s.push_back(1);
int pos2=1;
int pos3=1;
int pos5=1;
for(int i=2;i<=index;i++){
s.push_back(min(min(s[pos2]*2,s[pos3]*3),s[pos5... |
4a5437d4103490a9c791fd07db6b9ef879fcbd60 | 751f8fce7aa82084e5d5e08a8e36033e105d7de0 | /Client/src/Game.cpp | 5afa2a5fe47ac83215713152186936a1a8d52e7a | [] | no_license | jstoja/r-type | fe8563d3a00eda5f56ed4ac69a7206acd06aa5e2 | 8e2a290abca5c1094527afcf6669073552fa86ed | refs/heads/master | 2021-01-20T01:03:42.751198 | 2013-01-23T11:00:27 | 2013-01-23T11:00:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,980 | cpp | Game.cpp | //
// Game.cpp for R-Type in /home/olivie_a/R-Type
//
// Made by Samuel Olivier
// Login <olivie_a@epitech.net>
//
// Started on ven. janv. 18 10:36:08 2013 Samuel Olivier
//
#include "Game.h"
Game::Game(uint32 id) : Object(id), _nbPlayer(0), _nbSlot(0) {
}
Game::~Game() {
_clear();
}
void Game::setName(std::s... |
5577d2d8f830860168e8eb2f90360efcbff8a2dc | 450c9a8e8d590b5ad887611cfcf6804248755dfd | /2054/sol.cc | 3d1dabdd58d57afb48c01c4ca9f70c6ae0dffc0b | [] | no_license | bcc32/tju-online-judge | 64d6a4afbdf9b8f8cbbeb0c881fefac94dfde967 | 7e0c38bcff12b5d48b6d4d3c4320242a2022030f | refs/heads/master | 2021-01-24T17:37:53.715808 | 2020-01-25T18:23:09 | 2020-01-25T18:23:09 | 3,436,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,819 | cc | sol.cc | #include <iostream>
#include <vector>
#include <utility>
#include <algorithm>
using namespace std;
bool cmp(pair< pair<int, int>, pair<int, int> > a, pair< pair<int, int>,
pair<int, int> > b);
int main(void)
{
int dollars, cents, a, b, c, d;
char foo;
for (cin >> dollars >> foo >> cents >> a >> b >> ... |
fb0909667bce8b7c063ad87afd987e5d97c8ade7 | 9903efc5369774f7e4ddb0dbe610d4a3bb3b3759 | /mq/lock/thread.cpp | 60039c1e2293a46f627f231e1182009f998dfbbc | [] | no_license | wyf2317/C- | 6a49f583bcf0728c4da1ac0f2a40afec2cfe9b0e | 50ea7cc5a4e677ebb3d5fdd614968d74ac1bde84 | refs/heads/master | 2020-07-10T13:05:32.423245 | 2019-09-19T13:17:46 | 2019-09-19T13:17:46 | 204,269,321 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | thread.cpp | // g++ -lpthread -std=c++11 thread.cpp
#include <stdio.h>
#include <iostream>
#include <thread>
#include <mutex> // std::mutex
std::mutex mtx; // mutex for critical section
int money;
void addMoney(int id)
{
for (int i = 0; i < 10000; i++)
{
mtx.lock();
money = mo... |
8718f3b98569df9922d33df3c6110accecde21be | 271b2bdcd2534ecc63ef480474c82f8503440101 | /JPEG-Encoder-SIMD/BitBuffer.h | 2013c643642d3a125db754852f2ef2c41cf303b6 | [] | no_license | Irame/JPEG-Encoder | 4174e4179f2033722951ed6551f6a0fbd01df4a0 | 5636d696e341500eac19e02efaf0e5e539f0d176 | refs/heads/master | 2021-01-10T17:54:51.997641 | 2016-12-17T12:29:00 | 2016-12-17T12:29:00 | 43,671,990 | 9 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,908 | h | BitBuffer.h | #pragma once
#include <vector>
#include <memory>
class BitBuffer
{
size_t bufferSizeInByte;
std::vector<byte> data;
// position in 'data' in bits
size_t dataBitOffset;
void ensureFreeSpace(size_t numOfBits);
static byte joinTwoBytes(byte leftByte, byte rightByte, size_t leftCount);
void pus... |
b3e166e1849f4066f4bdf654ec48a1d7a1ff6064 | 3dc794e259aecc627f617be97c77fe247e99a0cb | /src/json_rpc.h | 22e682a574a1c4fcbf58df23103c40d5d179c984 | [] | no_license | bebac/fuzzy-octo-avenger | 0cbb9e783d4279a698719b728df6ff5f4e747b29 | 9e37192307479c204873ecd3e3aacce5ed882738 | refs/heads/master | 2021-01-01T06:49:57.114440 | 2016-01-25T18:32:08 | 2016-01-25T18:32:08 | 23,521,652 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,395 | h | json_rpc.h | // ----------------------------------------------------------------------------
//
// Filename : json_rpc.h
//
// Author : Benny Bach <benny.bach@gmail.com>
// Copyright (C) 2014
//
// --- Description: -----------------------------------------------------------
//
//
// ------------------... |
05d86a6e1ea0eded56ffa6c598dcfca6e777015c | bdd9f3cdabe0c768641cf61855a6f24174735410 | /src/engine/client/application/DatabaseObjectViewer/ChildFrame.h | 9c9ae012ba397cd667f3dac0abee2d9cf17abaaa | [] | no_license | SWG-Source/client-tools | 4452209136b376ab369b979e5c4a3464be28257b | 30ec3031184243154c3ba99cedffb2603d005343 | refs/heads/master | 2023-08-31T07:44:22.692402 | 2023-08-28T04:34:07 | 2023-08-28T04:34:07 | 159,086,319 | 15 | 47 | null | 2022-04-15T16:20:34 | 2018-11-25T23:57:31 | C++ | UTF-8 | C++ | false | false | 1,100 | h | ChildFrame.h | // ======================================================================
//
// ChildFrame.h
// asommers
//
// copyright 2003, sony online entertainment
//
// ======================================================================
#ifndef INCLUDED_ChildFrame_H
#define INCLUDED_ChildFrame_H
// =========================... |
d35b996e6c131d8985c298cc277ced28e7e270e8 | df4a25b6271058d66faf1374fbb1b1d9563a5f7f | /dungeon-sounder/dungeon-sounder/dungeonsounder.h | 1be40785309e0baf419c37c71059aa80bc8cf780 | [
"MIT"
] | permissive | Talndir/dungeon-sounder | d05e132d58ca65e329512662eafe97b6559f8cbf | 3c42c2c065e1e09a9bee1d2def36e342b14ef673 | refs/heads/master | 2021-01-01T06:36:04.582111 | 2017-07-27T16:32:47 | 2017-07-27T16:32:47 | 97,465,236 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | h | dungeonsounder.h | #pragma once
#include <QtWidgets/QMainWindow>
#include "ui_dungeonsounder.h"
#include "buttonsoundengine.h"
class dungeonsounder : public QMainWindow
{
Q_OBJECT
public:
dungeonsounder(QWidget *parent = Q_NULLPTR);
virtual ~dungeonsounder();
private slots:
void handleSoundButton();
void stopIndividualSounds(... |
6aafc01721f0acedd291d911d506170d2d0d4134 | ca6b7bd6516e5098310cd803168007249f3b469d | /src/applications/mne_scan/libs/scDisp/realtimemultisamplearraywidget.cpp | a817644495811882aad9c7c0e0fb3cfcfa5de58c | [
"BSD-3-Clause"
] | permissive | mne-tools/mne-cpp | 125e90d2373cb30ae8207fb3e2317511356a4705 | 3b3c722936981e4ecc3310c3b38f60b1737c69ec | refs/heads/main | 2023-08-16T16:41:05.569008 | 2023-08-09T15:28:39 | 2023-08-09T17:52:56 | 5,600,932 | 145 | 150 | BSD-3-Clause | 2023-08-09T17:52:57 | 2012-08-29T13:33:22 | C++ | UTF-8 | C++ | false | false | 17,071 | cpp | realtimemultisamplearraywidget.cpp | //=============================================================================================================
/**
* @file realtimemultisamplearraywidget.cpp
* @author Lars Debor <Lars.Debor@tu-ilmenau.de>;
* Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Lorenz Esch <lesch@mgh.harvard.ed... |
e79adb11160a8ccbd3dc3295e9f2187b4d377c71 | 19912a564e911ff015ac365ebd57428bad54eeed | /projects/SkyWays/Classes/TileObject.cpp | 68c829e24f280afebdd282f38859f670bed7c1b3 | [
"MIT"
] | permissive | chiguire/skyways | 1df66bac8720882ba81113714db5c0c60ac8a5bc | cdabba86d2155573ce25bbc4a21099c224fb27d7 | refs/heads/master | 2021-01-13T13:04:19.613776 | 2013-11-14T11:58:06 | 2013-11-14T11:58:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | TileObject.cpp | /*
* TileObject.cpp
*
* Author: Ciro
*/
#include "TileObject.h"
TileObject::TileObject()
: body(NULL)
{
}
TileObject::~TileObject() {
}
|
6f7fad73c7fb2b8de581dea79f2b915cc45c0309 | 1763d06f5671d725a54cdacc34a9e956a8bdbc69 | /Core/Source/IceSceneManager.cpp | e87dc70a20ccf86dfedcde2bf663b4b21480c39c | [] | no_license | JohannKollmann/blackstar-engine | 09697e6ca9834730302defa41412a070a9492461 | 25daf59562d31479e471c66eb787dd901e0a479d | refs/heads/master | 2016-09-06T11:15:01.776148 | 2013-04-23T13:26:40 | 2013-04-23T13:26:40 | 42,470,412 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,685 | cpp | IceSceneManager.cpp |
#include "IceSceneManager.h"
#include "IceMain.h"
#include "LoadSave.h"
#include "IceWeatherController.h"
#include "Saveable.h"
#include "shellapi.h"
#include "IceScriptSystem.h"
#include "IceAIManager.h"
#include "IceProcessNode.h"
#include "IceProcessNodeQueue.h"
#include "IceProcessNodeManager.h"
#inclu... |
5a90098e70f38041205484242972035e5620fbef | 7d7eef464406ad65ebaa924ffd3258ae3a09c171 | /include/bad/storage/store_iterator.hh | 3a4992352daecd6403604cd40c4ea4dce807bd17 | [] | no_license | ekmett/bad | 5d70b3715fa756789c699341235ebbc1a6deaf7d | 978b8056ffafc992fd1b7300ccf7bd1219cd3a20 | refs/heads/main | 2023-03-29T04:06:43.432870 | 2021-03-18T20:35:35 | 2021-03-18T20:35:35 | 330,171,266 | 16 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 8,936 | hh | store_iterator.hh | #ifndef BAD_STORAGE_STORE_ITERATOR_HH
#define BAD_STORAGE_STORE_ITERATOR_HH
#include "bad/common.hh"
/// \file
/// \author Edward Kmett
/// \brief const_store_expr_iterator and store_expr_iterator implementations
namespace bad::storage::detail {
template <size_t d, size_t s, class T, class plane>
struct const_st... |
a699e687648ea486b5dc4af7a536c0931e48d7d5 | f57380148cd8a325d8621e9ab7fb2bca9237f667 | /Door.cpp | 8912853aeeaa5df2014716bf537957569a4441be | [] | no_license | Roggan1/OOAD2 | 8456a65d8684f3e6003cb9ed3a6f529635cb2482 | e4b08c4464837d0b2ccfba792eeee415b70515db | refs/heads/master | 2021-01-17T11:55:01.227548 | 2017-06-27T21:08:34 | 2017-06-27T21:08:34 | 95,593,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | Door.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Door.cpp
* Author: stud
*
* Created on 21. Mai 2017, 14:35
*/
#include "Door.h"
Door::Door()
{
m_Status=fals... |
d543518a5a3a70f19cb353df8f813c03a791ac16 | e94ca3b308dddd06fe4255f35b123fd38e811ed0 | /src/obj/crypto/CryptoBlock.h | 28a0f6ed19836c703bc330f580fb2877312e00dc | [] | no_license | LoghinVladDev/IS-T1-CPP | 848836e952a3622fbb8c110fac58ba4a7538f2a9 | 46855995ecc85a350babdeb8422c1a40c2eec813 | refs/heads/master | 2023-01-05T07:31:17.844548 | 2020-11-08T01:55:48 | 2020-11-08T01:55:48 | 310,169,069 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,439 | h | CryptoBlock.h | //
// Created by loghin on 02.11.2020.
//
#ifndef SI_T1_CRYPTOBLOCK_H
#define SI_T1_CRYPTOBLOCK_H
#include <types.h>
#include <cstring>
#include <algorithm>
#include <string>
#include <list>
namespace crypto {
typedef enum : byte {
BITS_64 = 8,
BITS_128 = 16,
BITS_256 = 32,
BITS_... |
2d13509a4339d397ccd3c749bdbdba7dd29467ff | 25e69032c803a1ecb7706d924289bf1197250bae | /GASystem/GASystem/GASystem/geneticalgorithm.h | 4d6a15d52d7090ca283a1dee30c1b97cfb4b6913 | [] | no_license | igorawratu/NNGA | ee553997ba652b7478e4ea8517c2911cdeaf7643 | 8b84fb1a61ef433a6209b8ba9ea29dc58a62ed79 | refs/heads/master | 2016-09-01T21:38:47.149291 | 2015-03-14T07:53:23 | 2015-03-14T07:53:23 | 10,990,053 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 560 | h | geneticalgorithm.h | #ifndef GENETICALGORITHM_H
#define GENETICALGORITHM_H
#include <vector>
#include <string>
#include "simulationcontainer.h"
#include "filewriter.h"
using namespace std;
class GeneticAlgorithm
{
public:
GeneticAlgorithm(){
pTotalFitnessEvals = 20000;
}
virtual ~GeneticAlgorithm(){}
virtual So... |
1844425c386923e633a7b6a13aadc70f142b5c58 | d3dea2b8adb52261d6c8a125ed7ff5a532a06059 | /Lab11/Lab11/lab11.cpp | e06c0b41bafdfdad5b94aa72baa749443c4fb09e | [] | no_license | clfz6/CS201L_Lab11 | 9c4447ed36b10c5d1a0a2f2eb22a881659b30fea | ed6cd46bf0be6ef02f9a14d484b7a339a3975b97 | refs/heads/master | 2022-11-22T21:35:13.955186 | 2020-07-18T21:59:42 | 2020-07-18T21:59:42 | 280,692,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,000 | cpp | lab11.cpp | #include "Employee.h"
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
ifstream fin("input.txt");
ofstream fout("output.txt");
string input, f_name, l_name;
vector<Employee> employees;
int id, size, rate; \
if (fin.fail())
{
cout << "Input file ... |
68aacd3aaead538cdcd495995e9cf03db717ab10 | ecd2833f00a2df88d6224deef4be6478375a0982 | /week5/CharacterFrequencyIterator.cpp | 657a1637b1587bb9a68d5f5818b1a4bf328eaee6 | [] | no_license | pondodev/dspwork | 0f273843a0f210b8cd75bbdb16750353aae24e8b | b2ae7b73f74a0ec3073913e31481c5153e28854d | refs/heads/master | 2021-05-17T20:50:20.563042 | 2020-03-29T03:20:52 | 2020-03-29T03:20:52 | 250,944,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | CharacterFrequencyIterator.cpp | #include "CharacterFrequencyIterator.h"
void CharacterFrequencyIterator::advanceIndex()
{
}
CharacterFrequencyIterator::CharacterFrequencyIterator( const CharacterCounter& aCounter, bool aSort)
{
}
void CharacterFrequencyIterator::sort()
{
}
const CharacterMap& CharacterFrequencyIterator::operator*()... |
de7b932d42db535f9a30d2e834be7ea86d85a7bc | 9fb8b1fae3283cf8f1fb01441ffba781ae0377f3 | /examples/example9.cpp | a29c93b68389dadafb5fb2e6f2518e2695b45eb1 | [] | no_license | wthibault/ssg | efaf10dd1728dc036e20827050f7421bcb8a4f39 | cba8876dbcb740f31198c830feced8a12e1fb99c | refs/heads/master | 2022-03-15T02:44:34.505013 | 2022-02-05T16:32:12 | 2022-02-05T16:32:12 | 7,494,493 | 15 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,512 | cpp | example9.cpp | //
// example9.cpp
// articulated figure
//
#include "ssg.h"
using namespace glm;
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
using namespace std;
using namespace ssg;
Ptr<Instance> root;
Camera camera;
int width, height;
vector<vec3> controlPoints;
Ptr<Instance> link0, link1, link2;
... |
13cccec9dc972e65afa3a6b174b09629e653be0f | 51fdb0052b36d0b7bf221b8ffbcc662632f1bfef | /tensorflow/compiler/plugin/poplar/driver/tools/while_loop_util.cc | 303fe4540f52f999136108065886e626411abfed | [
"Apache-2.0"
] | permissive | DavidChan0519/tensorflow | f78a50b5d7f25e6aed1d3965555767d00d14c180 | 09116526433a1a89d2ff213e143bf5745666d0cc | refs/heads/master | 2022-11-15T23:58:13.574558 | 2019-05-31T10:56:36 | 2019-05-31T10:56:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,394 | cc | while_loop_util.cc | #include "tensorflow/compiler/plugin/poplar/driver/tools/while_loop_util.h"
#include "tensorflow/compiler/plugin/poplar/driver/tools/matcher_predicates.h"
#include "tensorflow/compiler/plugin/poplar/driver/tools/util.h"
#include "tensorflow/compiler/xla/service/hlo_computation.h"
#include "tensorflow/compiler/xla/serv... |
b1a6366c073d74c65fb8c0d24159f5b1407520bf | b1ad48788ca9da319c3f808faf52d58013d1ee61 | /Gragh/Cut Edge, Edge-Biconnected component.cpp | bb5c0e36768230d2f183864d2c63e98a304b6675 | [] | 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 | 6,256 | cpp | Cut Edge, Edge-Biconnected component.cpp | /**
POJ 3352 && POJ 3177 题意:加几条边原图才能变成边双连通分量
[求割边]对图深度优先搜索,定义DFS(u)为u在搜索树(以下简称为树)中被遍历到的次序号。定义Low(u)为u或u的子树中能通过非父子边追溯到的最早的节点,即DFS序号最小的节点。根据定义,则有:Low(u)=Min {DFS(u),DFS(v)|(u,v)为后向边(等价于DFS(v)<DFS(u)且v不为u的父亲节点),Low(v)|(u,v)为树枝边}
[条件]一条无向边(u,v)是桥,当且仅当(u,v)为树枝边,且满足DFS(u)<Low(v)
[求点双连通分支]只需在求出所有的桥以后,把桥边删除,原图变成了多个连通块,则每... |
67a1292e97423090a967aeaf8d5aa685ba75a8d0 | 78653238a8c09d466d62faa01984afb97a73da30 | /cxx/net/ipv4_error.h | d532c268b7b801ccc9c18dbe21a8884f5e6e96c2 | [
"MIT"
] | permissive | RomaA2000/tgnews | 3790a5197bd5149086ec79f331e2c175012f6d85 | bae476b616df02d2b8e1ea5cbe3bc82e738714a8 | refs/heads/master | 2022-08-30T18:17:53.753413 | 2020-05-25T18:28:46 | 2020-05-25T18:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | h | ipv4_error.h | #ifndef WEB_CRACKER_IPV4_EXCEPTION_H
#define WEB_CRACKER_IPV4_EXCEPTION_H
#include <string>
#include <stdexcept>
#if defined(__linux) || defined(__APPLE__)
#define gerrno errno
#define NET_EINPROGRESS EINPROGRESS
#elif defined(WIN32)
#define gerrno WSAGetLastError()
#define NET_EINPROGRESS WSAEINPROGRESS
#endif
#def... |
2d7c60cc7044dcce10e34ffe4b4bdfa4043de2ac | ee2bcf0c6cb100f6b72d3e655d4a93663112f24e | /mobile-pc-filetransfer/test_pcserver/clientmain.cpp | 70b142107c9d87b0586d5ae8ea35809dfcc18f74 | [] | no_license | wyrover/mobile-pc-filetransfer | 194b2b5a865add1f5c69a44ac67793752ef79c24 | 4b397713aa1f5a1def2e2be737a66f640c1ec198 | refs/heads/master | 2021-01-16T00:41:54.821177 | 2014-11-21T12:33:39 | 2014-11-21T12:33:39 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 6,323 | cpp | clientmain.cpp | #include <boost/asio.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/algorithm/string.hpp>
#include <regex>
#include <array>
#include <vector>
#include <memory>
#include <utility>
#include <sstream>
#include <thread>
#include "tcpclient.h"
namespace asio = ... |
98a58d3e697cba62a0280e8d66ae491e06d4f576 | 88040197168aef6cdde84a5fa0e56129808506da | /Prev/C/prog/pointers/character or string/04 pointers to multiple strings/pointers to number of striongs.cpp | fa495c713df97291f5ec803561c16b403005c4ab | [] | no_license | A-Samad1206/cpp | 9d0f1d2d30d96e9fa75031e2dc0a309e2b9907e2 | 410135d5861d9883697efca7510bb800176f54e8 | refs/heads/master | 2023-07-18T00:47:28.345492 | 2021-09-03T17:58:38 | 2021-09-03T17:58:38 | 402,854,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | cpp | pointers to number of striongs.cpp | //to print %s it NOT need dereferencing contrar to 2-d array of characters.
//bcoz array holds address of every strings
//evident from 01 and 02.
//name+i=&name[i].
//to retrive charcters *name[i].
//NO METHODS TO RETRIEVE CHARACTER.
#include<stdio.h>
main()
{
char *name[]={"ABDUS SAMAD","AHAD","TALHA"};
//printf("... |
5b1a65c184fe81c05cb2b8a09ac2d441794e9ea5 | 3e700f47bd3e33250cc248c01b1e6ee1261049ef | /Codeforces/873/b2.cpp | 2649b3349b66f73870e4d182b5558671b282dff9 | [] | no_license | pranavgupta1234/AlgorithmsAndDataStructures | 8012e5f10d6f7cdbe65c1db31ad6ffa516f04207 | a7530d66839265dbf542af8d3d7904d28da74d69 | refs/heads/master | 2021-05-01T05:03:42.246193 | 2019-04-27T23:16:39 | 2019-04-27T23:16:39 | 79,713,495 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 817 | cpp | b2.cpp | #ifdef __GNUC__
#pragma GCC target("sse4,avx")
#endif
#include <immintrin.h>
#include <algorithm>
#include <string>
#include <iostream>
#include <vector>
#include <cstdint>
#include <numeric>
void run(std::istream &in, std::ostream &out) {
size_t n;
in >> n;
std::string s;
in >> s;
std::vector<int>... |
c1588b7b61f377df2bc80c55fbabd54be2641d5f | 2ee533886925ba001cdce500d8c31fa2015b57b7 | /Source/ExportApiWinMM.cpp | fe36786355fb1873a280020e3f90b11e894f0ff0 | [
"BSD-3-Clause"
] | permissive | Rufoo/Xidi | 23f330a67df0ad2b181e4bcf3be92f6d93d95c78 | d7585ecf23fd17dd5be4e69f63bae08aa0e96988 | refs/heads/master | 2023-02-20T22:07:37.286610 | 2021-01-25T00:12:15 | 2021-01-25T00:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,975 | cpp | ExportApiWinMM.cpp | /*****************************************************************************
* Xidi
* DirectInput interface for XInput controllers.
*****************************************************************************
* Authored by Samuel Grossman
* Copyright (c) 2016-2021
********************************************... |
b72266b5c5489fc6c31f2c2979b883bf1965c242 | d2190cbb5ea5463410eb84ec8b4c6a660e4b3d0e | /old_hydra/hydra/tags/aug04/mdcutil/hmdcoffset.h | b3832aba53e0a2d2696787567391ba9d5d0480ec | [] | no_license | wesmail/hydra | 6c681572ff6db2c60c9e36ec864a3c0e83e6aa6a | ab934d4c7eff335cc2d25f212034121f050aadf1 | refs/heads/master | 2021-07-05T17:04:53.402387 | 2020-08-12T08:54:11 | 2020-08-12T08:54:11 | 149,625,232 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,866 | h | hmdcoffset.h | #ifndef HMDCOFFSET_H
#define HMDCOFFSET_H
#include "hreconstructor.h"
#include "hstartdef.h"
#include "hmdctimecut.h"
#include "hlocation.h"
#define HEX_NAN 0x7fc00000
typedef Int_t MyInt;
typedef Float_t MyFloat;
typedef TH1F MyHist;
class TFile;
class HCategory;
class HIterator;
class HMdcCalPar;
class HMdcCa... |
ce9993efe7e3129aa8a6f8caff99cd7f08f7df45 | 0a669f975928aa153ecd643f82d4133b253cc1dd | /Widgets/MainWidget/headerwidget.h | d3f54652e7a7b719f84cd93be51fde6e31a32441 | [] | no_license | ZhaZhaXie1024/XHotel | 29c951ea840c790871d0b93d5ed5f923d4f26827 | 5207d4b7b94b787d98e1f8eed24157aa99972351 | refs/heads/main | 2023-09-01T04:27:59.885947 | 2021-10-30T06:56:23 | 2021-10-30T06:56:23 | 328,307,148 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | h | headerwidget.h | #ifndef HEADERWIDGET_H
#define HEADERWIDGET_H
#include <QWidget>
/**
* @brief RETCODE_RESTART
*
* define a retcode:773 = 'r'+'e'+'s'+'t'+'a'+'r'+'t' = restart
*
* 即为 重启 的意思
*/
static const int RETCODE_RESTART = 773;
namespace Ui {
class HeaderWidget;
}
class HeaderWidget : public QWidget
{
Q_OBJECT
publi... |
154e1c5dc6c3c2640e10add95d1a777b41027f8c | 8b71e5bf7385f545ef5b2542d98655e5bfacb41c | /examples/CouplingLBNS/components/java/cca/cfd/NSAbstractImplementation.h | 6b55705084f9c50b5f9ba89dfa33c40810136bac | [] | no_license | ascodt-users/ascodt-nightly | 1494f695ffb6ef22c81a36c379beb9ec8837325f | 35d8222c9ea39ece35987c97946fd9fd0f7e794a | refs/heads/master | 2020-05-31T08:45:35.308852 | 2014-09-22T03:43:39 | 2014-09-22T03:43:39 | 10,525,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,350 | h | NSAbstractImplementation.h | #ifndef CCA_CFD_NSABSTRACTIMPLEMENTATION_H_
#define CCA_CFD_NSABSTRACTIMPLEMENTATION_H_
//
// ASCoDT - Advanced Scientific Computing Development Toolkit
//
// This file was generated by ASCoDT's simplified SIDL compiler.
//
// Authors: Tobias Weinzierl, Atanas Atanasov
//
#include "cca/cfd/LBSolverNativeDispatcher... |
91a6911e22e0e78026e7a2271362f869c988db59 | 815c1e11221e7ceff832b2b41a60ae760c56b269 | /parser.cpp | 8e7da62826b8b9428b5474a5a14f6f10b9b58ee2 | [] | no_license | jerry-peng/llvm-kaleidoscope | 36d4818849eb94fa0c45791570032f4455e17d2c | b22b788eb33c66ec2e6ef55c5544eb3a523155b5 | refs/heads/master | 2020-03-27T16:30:16.179513 | 2019-12-25T14:18:29 | 2019-12-25T14:18:29 | 146,787,569 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,192 | cpp | parser.cpp | #include "parser.h"
std::unique_ptr<ExprAST> log_error_e(const char *str) {
log_error(str);
return nullptr;
}
std::unique_ptr<PrototypeAST> log_error_p(const char *str) {
log_error(str);
return nullptr;
}
// cur_tok/get_next_tok() - provide a simple token buffer
int get_next_tok() {
return cur_to... |
fa0ec14a0d8682da89ee7d22acc7d9ee9e4c2377 | 9b786a416df97d9ab806d8601b4f1f1fae777715 | /3033/escape-from-enemy-territory.cc | 4c9a588857d3bee2690fb908f1af5d4b7f44a741 | [] | no_license | ailyanlu/tju | b5368074141140b674119e575da24931fe7d7646 | 57f16b9226266dd19be49110c524c68c12c328f1 | refs/heads/master | 2018-01-15T16:35:42.653356 | 2011-01-24T01:16:47 | 2011-01-24T01:16:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,326 | cc | escape-from-enemy-territory.cc | #include <cstdio>
#include <algorithm>
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <map>
#include <vector>
#include <queue>
#include <set>
using namespace std;
#define FOR(i, x) for (int i = 0; i < x; i++)
#define FORI(i,a, x) for (int i = a; i < x; i++)
#define ALL(x) (x).begin(), (x).end()
#def... |
0514654154da31b4e654a753a510f38307f7d0ab | 0dc970a658392a7f68bb37ba4d04a01134f5f96c | /GCodeExporter.h | f68c29150e2acab4d388b5083b3feba72e41229c | [
"MIT"
] | permissive | AwesomeCNC/CncClock | cde89c011258ba054180262ec672686c50af82d2 | 93fb78d59ff7ed87515056ea01a8bd0452a45dd9 | refs/heads/master | 2021-12-20T17:52:10.919616 | 2017-04-15T05:16:02 | 2017-04-15T05:16:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | h | GCodeExporter.h | #pragma once
// TODO: Exports GCode given a series of parts.
// Also displays what the parts will look like once exported, accounting for bit radius.
class GCodeExporter
{
public:
GCodeExporter();
~GCodeExporter();
};
|
2fda194b90163b0d27a3af489e740bcca62eeeb2 | c4eaa3e6cdca0ef6eea9487735369fb4d215949f | /2DAE07_Geers_Pieter_digdug/Minigin/SMState.cpp | 76ba2f4d55a4b646bda2abdcce17ae3974a211ad | [] | no_license | PieterGeers/DigDug | 483fc09f6425501aea7e690831517d695c56bea2 | b69e05ca025558a089d1d10bda1ee01677292a54 | refs/heads/master | 2022-02-26T02:42:53.016532 | 2019-10-31T15:37:02 | 2019-10-31T15:37:02 | 175,878,736 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,505 | cpp | SMState.cpp | #include "MiniginPCH.h"
#include "SMState.h"
#include "SMAction.h"
#include "SMTransition.h"
#include "Debug.h"
SMState::SMState(std::vector<SMAction*> entryActions, std::vector<SMAction*> actions,
std::vector<SMAction*> exitActions, std::vector<SMTransition*> transitions)
:m_EntryActions(entryActions)
,m_Actions(a... |
5e74362947caf9d80f4efc07e0136056fc0dc065 | f405ecb43b6fd95778020101eee4163340e747ff | /energy_monitoring_210_v3.ino | aa37d7275d6c2bc28e22fc890267cbc212c1d150 | [] | no_license | caletagreen/Automation | 61e45703540c669942edc4b7e441ebbcf1af9c8d | 04bea4765958608855029138d074f60345863394 | refs/heads/master | 2021-01-18T21:24:21.550521 | 2018-03-05T04:39:05 | 2018-03-05T04:39:05 | 35,110,961 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,069 | ino | energy_monitoring_210_v3.ino | /* www.caletagreen.com
Energy monitoring 210 V.
Store data on m2mlight.com:
- Real power consumption of cooktop
- Real power of the house (210 V)
- Input voltage of the house
- Input currents (phase1 and phase2) of the house
Use m2mData arduino library (https://github.com/m2mlight/m2mData... |
d03ab3183d7ba5882859562b946be35f274631d0 | b47259e4774efe357cd82db8035c0120273e5367 | /1_semestr/Recursive/backend.cpp | fc12b80670d6068283ff6009b772c4f3037498ba | [] | no_license | Arseniy16/MIPT | ac56f6672bf022d3caffed540d37367a4c61bd6f | 4b6b15e925f8aeebe8ff53d110a976b00c21a5e2 | refs/heads/master | 2023-04-13T18:31:13.351263 | 2021-04-28T14:52:07 | 2021-04-28T14:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,816 | cpp | backend.cpp | #include "tree.cpp"
enum STATES {
IN__FUNCTION = 0,
OUT_FUNCTION,
PUSH_ME,
POP_TO_ME
};
// for IF, ELSE, WHILE...
int global_counter = 0;
void Interpretate(Node* node, FILE* ams, int state = 0) {
if (!node) return;
assert(ams);
switch (node->type) {
case TOKEN_NUMBER:
if (state... |
c0965ac3c325548740b4eb4c631b621e38bb16bf | a3f2feb2c5906b238f77c63fe716420a7495a9e7 | /Include/Button.h | d24a4264c053a535daddc9e0eee7d4dc225c5c16 | [] | no_license | XiaZiXi/Dragonfly | e206c25d09e66113ebaa2f08ea4fd2aa0630d752 | 869043162ebf23349a48c22f36b4a1674c2c138e | refs/heads/master | 2020-03-17T00:21:12.181173 | 2017-10-13T07:45:39 | 2017-10-13T07:45:39 | 133,113,176 | 1 | 0 | null | 2018-05-12T04:14:06 | 2018-05-12T04:14:06 | null | UTF-8 | C++ | false | false | 322 | h | Button.h | #pragma once
#include "SFML/Graphics.hpp"
namespace df {
namespace Mouse {
// Set of mouse buttons recognized by Dragonfly.
enum Button {
UNDEFINED_MOUSE_BUTTON = -1,
LEFT = sf::Mouse::Left,
RIGHT = sf::Mouse::Right,
MIDDLE = sf::Mouse::Middle
};
static std::vector<Button> buttons = {
LEFT,
RIGHT,
MIDDLE
};
}... |
6544a703d92019a383f3daf958527f7a04814e9b | c3a19e2f6e092340cd6afa0388fc0fedf393c1ca | /src/ooc_cudnnSoftmaxBackward_optimize.cpp | 269a32cbf9a1df2cb4e1f68b8a2dcbbed5725447 | [
"MIT"
] | permissive | yukiito2/ooc_cuDNN | e568762d1fc61bbcd0734e3027b1395fa0653c49 | b366abf5c0e22713f23f8e5fcdd628eead40fbea | refs/heads/master | 2020-03-08T08:43:53.426848 | 2018-04-05T06:07:56 | 2018-04-05T06:07:56 | 128,029,095 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 7,552 | cpp | ooc_cudnnSoftmaxBackward_optimize.cpp |
#include "ooc_cudnn.h"
#include <sys/time.h>
#include <float.h>
double cudnnSoftmaxBackward_weight;
double cudnnSoftmaxBackward_bias;
extern double cudaMemcpy_weight;
extern double cudaMemcpy_bias;
cudnnStatus_t CUDNNWINAPI ooc_cudnnSoftmaxBackwardProfile(){
int i, loop = 100;
str... |
0769c54afff78bce669e8386b6809ffe386fc8f9 | e85db833349381ba8347168161ac02996813de4e | /tabularFomatting.cpp | 80d6f5d60cd79f3592ea3c74328ed509a545d6ba | [] | no_license | jjbutler52/Code-samples | 3c1e0dc63a1d963aa17c7ed81cd831f5c6580df0 | 8f317edc03862bd5557fc1b56f699ba9ed458b18 | refs/heads/master | 2023-03-30T02:26:34.532878 | 2021-03-07T02:28:19 | 2021-03-07T02:28:19 | 314,299,622 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 734 | cpp | tabularFomatting.cpp |
#include <iostream>
#include <ios>
#include <iomanip>
using namespace std;
void f_to_c(double fah) {
double cent = 0.0;
cent = 5 * (fah - 32) / 9;
cout << setw(15) << left << fah << " degF" << "|";
cout << setw(16) << right << cent << " degC" << endl;
}
void tabularFormatting() {
cout << " Fa... |
918b970ea8c4bbb2f4fc816ea19c514588513051 | 82ec9ecef04a3b16b3670706b6482faf1cb7d452 | /Practica 1/3_1_5_Scope.cpp | 8d05c762db8d80cb395412ff3bea7ae4c7c45af8 | [] | no_license | Pimed23/Practica | 3ae73b3556cb5ac4672f60dfc64c7bb92bdd0c66 | a82635ec3909179bd4b31180c2e3a90af293d91c | refs/heads/master | 2020-05-04T17:09:54.320597 | 2019-04-24T05:04:32 | 2019-04-24T05:04:32 | 179,300,795 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | 3_1_5_Scope.cpp | #include <iostream>
using namespace std; // #include <iostream>
// using namespace std;
int main() {
cout << "Hello, world!\n";
return 0;
}
#include <iostream>
// Don't compile because cout was no declarated in this scope
// cout belongs to iostream library
// C++ follow a secuence top -... |
4f9eee195a298b7ccf7df6837e08d74c9616c68b | a8d0bb2f9a42320be0aa5e383f1ce67e5e44d2c6 | /Advanced Datastructures/033 BITwithRURQ.cpp | 7dc43c739967b39b8d6414f98bab14995820eeb6 | [] | no_license | camperjett/DSA_dups | f5728e06f1874bafbaf8561752e8552fee2170fa | f20fb4be1463398f568dbf629a597d8d0ae92e8f | refs/heads/main | 2023-04-19T18:18:55.674116 | 2021-05-15T12:51:21 | 2021-05-15T12:51:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | 033 BITwithRURQ.cpp | #include<bits/stdc++.h>
using namespace std;
// basic BIT functions
void update(int* BIT, int i, int val, int sz){
i++;
for(; i<=sz; i+=i&-i){
BIT[i] = val;
}
}
int getSum(int* BIT, int i, int sz){
i++;
int sum = 0;
for(; i>0; i-=i&-i){
sum+=BIT[i];
}
return sum;
}
int q... |
af73ea8d90e71617e99e3f3dafc686f454866959 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/TAO/tao/PortableServer/Upcall_Command.cpp | 52dc05020e2d9f39618d62f27c4cff8416bd2e01 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-sun-iiop"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 166 | cpp | Upcall_Command.cpp | #include "tao/PortableServer/Upcall_Command.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO::Upcall_Command::~Upcall_Command (void)
{
}
TAO_END_VERSIONED_NAMESPACE_DECL
|
716ec65fe6c77d328a44a4f1dfa17197da767346 | 38a2d029f071efee27e676ec22625c166769552e | /Source code/Paint/StatusBar.h | 59b3a096fa51097f640f8ddb8c4a8d389a8b60d2 | [
"MIT"
] | permissive | tqbdev/Paint-Win32-Dll | d610c001f93dba22be36cc644cda471a7ca85de0 | 291cdedc4d15c07692a9f7a43804796aa267cb65 | refs/heads/master | 2021-01-24T12:05:25.796883 | 2018-02-27T11:27:13 | 2018-02-27T11:27:13 | 123,118,200 | 1 | 0 | null | 2018-02-27T11:27:14 | 2018-02-27T11:14:42 | C++ | UTF-8 | C++ | false | false | 394 | h | StatusBar.h | #pragma once
namespace MyPaint
{
class StatusBar
{
private:
HINSTANCE hInst_;
HWND hParent_;
HWND hStatusBar_;
long ID_;
public:
StatusBar();
~StatusBar();
void Create(HWND parentWnd, long ID, HINSTANCE hParentInst,
long lStyle = WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP | SBARS_TOOLTIPS);
... |
327aa859b709c906b853887e95c75613c62bb81a | 23c7bf7123e9408f77d54b169b3d898f4551028b | /swap_3rdvariable.cpp | 2bf14887cdd42d25ba675b906629703ac1f7acfa | [] | no_license | ganeshknvs/sample_programs2 | 8f6f624351f6779edb9dec0ea77e1d9841441703 | eff2326f68660ac9f8e4b0c2962e40c244ac6b46 | refs/heads/master | 2020-03-24T10:19:13.625014 | 2018-07-28T06:49:45 | 2018-07-28T06:49:45 | 142,653,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 212 | cpp | swap_3rdvariable.cpp | #include<iostream>
using namespace std;
int swap(int &x, int &y)
{
x = x+y;
y = x-y;
x = x-y;
}
int main()
{
int a = 30;
int b = 20;
swap(a,b);
cout << a << endl;
cout << b << endl;
return 0;
}
|
9a3a820add88cf7c9e2d2b09a2a5af37ac78d42c | 342f81e941f6e936264b4902c7b75ef2387c8a7d | /STL/iostream/main.cpp | 253100c80ed542e25e4e6cb761345bfb3e11d4eb | [] | no_license | linzhenhua/Cpp_STL_test | b96ac9cd338d23fa4691727a918c96cf54c7a328 | 132e7bb9acb7acb92750836df69d0fa6c4f9f373 | refs/heads/master | 2020-12-30T23:09:00.671360 | 2017-10-17T09:44:04 | 2017-10-17T09:44:04 | 80,620,520 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,677 | cpp | main.cpp | #include <string.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
using namespace std;
void myIosteam1()
{
stringstream i;
cout << i.good() << "\t" << i.bad() << '\t' << i.eof() << '\t' << i.fail() << '\n';
cout << i.rdstate() << endl;
}
void myIosteam2()
{
char str[5]... |
a051526ceca8c8933832c30e1131702f4affe86b | d96607cdf79c4f3818788cfe2bef9888a49d56a8 | /C++ How to Program/Chapter_7/7.33-linear-search-rec.cpp | 632618ffeca2b4b2fe50f382571cd7c68cf587be | [] | no_license | dasanchez/hellocpp | 41646533ee826e59841b25961b5ff6dc93b3487d | 3b37c21d4f864686ba0c5fe60f4939ea06d91cda | refs/heads/master | 2021-06-02T08:56:46.201450 | 2020-09-28T03:16:20 | 2020-09-28T03:16:20 | 126,009,535 | 0 | 0 | null | 2018-08-12T21:02:20 | 2018-03-20T11:51:02 | C++ | UTF-8 | C++ | false | false | 1,157 | cpp | 7.33-linear-search-rec.cpp | // 7.33: Linear Search by Recursion
// Use recursive function linearSearch to perform
// a linear search of the array.
// The function should receive an integer array and
// the size of the array as arguments.
// If the search key is found, return the array subscript;
// otherwise, return -1.
#include <iostream>
using... |
618831a1611026bef58e812457bd1162fbd8a521 | 3b748bf71830029a9c9b7132456a8c8b4a23282a | /test/simulation_test/world_test.cpp | 2c2add0b55969b8578c9e83edc6c938fe040d944 | [
"MIT"
] | permissive | CoffeeMcRoasted/ucloth | 97a9e7d1191f95336e66f0e5feee35dbc9542ab2 | e0e22ca8d8205894b2d0bca5ceaa0b2481a70b24 | refs/heads/master | 2022-07-05T03:14:34.116858 | 2020-02-06T23:58:58 | 2020-02-07T00:45:49 | 238,817,533 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | cpp | world_test.cpp | #include <gtest/gtest.h>
#include <simulation/world.h>
TEST(UClothWorldTest, HelloTest)
{
EXPECT_EQ(true, true);
}
|
e09aae6c37653addb076c03fb8c414dc2dc3ebe7 | 71a256308ea30a4125fa6a52341512963697d244 | /pre/Object-Oriented Programming/Inheritance/Virtual Function/Shape.h | 86fb36d2ef0737b210b8d44371d0a1f2d7a924f3 | [] | no_license | oymin2001/DataStructure | ac6d76ae120b59f097a3daf688b65f8859ca5bc6 | e676d886f88153b9f566df04f125321e1f693777 | refs/heads/master | 2023-03-04T09:39:34.604986 | 2023-02-28T11:22:17 | 2023-02-28T11:22:17 | 285,205,505 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | h | Shape.h | #ifndef SHAPE_H
#define SHAPE_H
#include<string>
#include"Position.h"
using namespace std;
enum COLORS{RED,BLUE,BLACK,ORANGE};
extern const char* shapeColor[];
class Shape
{
friend ostream& operator<<(ostream& S, Shape&);
public:
Shape();
Shape(Position p, COLORS color, string name);
virtual ~Shape();
virtua... |
d7e356e337ed77868738d273223ffdfd54378825 | 591dbb1cf8799698c670cd11c277bc6a76abf9a3 | /src/OpenLoco/Windows/ToolbarBottomEditor.cpp | 7a2b88be452f2fc37e3504cd311741309d5844e3 | [
"MIT"
] | permissive | aw20368/OpenLoco | 4956fb8b01d7f4b39c73be920e64358892304c22 | ce37179813b0036b38061c604581e70f8d41873f | refs/heads/master | 2021-07-06T00:50:06.205984 | 2020-10-09T15:52:08 | 2020-10-09T15:52:08 | 190,220,932 | 0 | 0 | MIT | 2020-10-10T18:59:12 | 2019-06-04T14:44:18 | C++ | UTF-8 | C++ | false | false | 353 | cpp | ToolbarBottomEditor.cpp | #include "../Interop/Interop.hpp"
#include "../Ui/WindowManager.h"
using namespace OpenLoco::Interop;
namespace OpenLoco::Ui::Windows::ToolbarBottom::Editor
{
// 0x0043CCCD
void open()
{
call(0x0043CCCD);
// Note call to window_resize_gui_scenario_editor not part of this function
/... |
c8a4f17df8edacb10ce2fd2ba1ecf70f6d775fe8 | 079fc299d6a1622832f738bac1f28167df6b0b9c | /cpp_module04/ex03/Unequiped.hpp | c01ac2450c1c6a2b517cc560c96dfb7da380c7d5 | [] | no_license | xogml123/cpp | 294fa038e078a18cf3e24fdd7eea32692b634b25 | 4e2a24e169ad2e31cb8d9d6ba3afa2f8de21d9f3 | refs/heads/master | 2023-08-14T01:40:37.260112 | 2021-10-06T14:59:55 | 2021-10-06T14:59:55 | 374,075,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | hpp | Unequiped.hpp | #ifndef UNDQUIPED_HPP
# define UNDQUIPED_HPP
#include "AMateria.hpp"
struct Unequiped{
Unequiped(AMateria* am);
~Unequiped();
AMateria* m;
Unequiped* link;
};
#endif |
2a958d41e3be152c3a48d263f3b16cf3ed7e977a | de7e771699065ec21a340ada1060a3cf0bec3091 | /core/src/test/org/apache/lucene/analysis/TestCharArraySet.cpp | be9163aae952d05e4608f3624f4fae2b29b6bcf3 | [] | no_license | sraihan73/Lucene- | 0d7290bacba05c33b8d5762e0a2a30c1ec8cf110 | 1fe2b48428dcbd1feb3e10202ec991a5ca0d54f3 | refs/heads/master | 2020-03-31T07:23:46.505891 | 2018-12-08T14:57:54 | 2018-12-08T14:57:54 | 152,020,180 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,830 | cpp | TestCharArraySet.cpp | using namespace std;
#include "TestCharArraySet.h"
namespace org::apache::lucene::analysis
{
using CharArraySet = org::apache::lucene::analysis::CharArraySet;
using LuceneTestCase = org::apache::lucene::util::LuceneTestCase;
std::deque<wstring> const TestCharArraySet::TEST_STOP_WORDS = {
L"a", L"an", L"and", ... |
5909858745fc3a30f5f3b51c7a2999396f623b94 | e4ddd6fc2b956a7e7d9fdf24bf86ecbdd33efdfe | /SanzidaAfrinNishu/based.h | 737121985668328f081c9acd342854afa76e3247 | [] | no_license | Basedul/StaticToNonstatic | 727fa988f5f2a5cb1565a20568d7c559f3e1af3d | 2a1b85da8f6a588a33d551f0e4de1aa787b2ef76 | refs/heads/master | 2020-09-23T05:25:45.797726 | 2019-12-02T16:08:43 | 2019-12-02T16:08:43 | 225,416,025 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | h | based.h | #ifndef BASED_H
#define BASED_H
class based : public QObject
{
Q_OBJECT
public:
based(QObject *parent = 0);
public slots:
void finaly();
};
#endif // BASED_H
|
874fcc25065fb8a680284f4426f811f60a1d4172 | ae6892121cdedd98a22f2e8dedde644b64803377 | /Vertex.h | c7d951512be94e0afdefe891d9bfbe6a565ffd24 | [] | no_license | ssjjsj/mygame | 0abfa7599a9b25d6ef30e2a07fe9f177c6c8e202 | 57e67dfbd424819db7757c715a6315af09537774 | refs/heads/master | 2021-01-21T04:50:14.024920 | 2016-06-27T12:31:02 | 2016-06-27T12:31:02 | 48,326,567 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | h | Vertex.h | #ifndef VERTEX_H
#define VERTEX_H
#include "MathHelp.h"
#include <vector>
#include "BoneVertexAssignment.h"
using namespace std;
namespace MyVertex
{
enum VertexType
{
P_N_UV = 0,
P_C,
};
struct Vertex
{
XMFLOAT3 Pos;
XMFLOAT3 Nor;
XMFLOAT2 UV;
XMFLOAT4 boneIndexs;
XMFLOAT4 weight;
Vertex()
{
... |
3983178b32fce6e49ce3b2b8907417066f6efbd9 | 3b51b742b316038513f3094141efa5cec7ba9c74 | /AIR3 System/AirPathFind.cpp | 3cbbc5c39f785642fa3674e802a030cc51ef0379 | [
"BSD-2-Clause"
] | permissive | Sgw32/AIR3-System | e4c1a6076c1567e02a21b2bb3a1231a7dc03d2bc | 6fd06acf662ababd4d5092bd14699fa61b370dad | refs/heads/master | 2021-01-17T15:30:09.211029 | 2016-05-12T22:59:31 | 2016-05-12T22:59:31 | 42,395,902 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,789 | cpp | AirPathFind.cpp | #include "AirPathFind.h"
__declspec(dllexport) AirPathFind::AirPathFind()
{
dFound=false;
}
__declspec(dllexport) AirPathFind::~AirPathFind()
{
}
__declspec(dllexport) void AirPathFind::setNodes(std::vector<NPCNode*> nodes)
{
mNodesStartup=nodes;
}
__declspec(dllexport) void AirPathFind::setWorld(OgreNewt::World*... |
072b33384b7abf371c509b07fb69849e67fbf74c | 962e521c226d816934c03a5dfdb85d9dee2d0564 | /Chapter7/7.2.3(1).cpp | 51268a2a785adef03dfc068a64899847a279784a | [] | no_license | mezhdelova/Essentials | 58eaed8e5248cab4899de031df8bb356d6ea9f39 | 09d1440917a494d675f2b1770cbf82d93d62ba2b | refs/heads/master | 2021-05-15T19:52:30.967790 | 2017-12-20T05:53:12 | 2017-12-20T05:53:12 | 107,812,798 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 583 | cpp | 7.2.3(1).cpp | #include <string>
#include <iostream>
using namespace std;
const int DivideByZero = 111;
float internaldiv(float arg1, float arg2)
{
if (0 == arg2)
throw DivideByZero;
return arg1 / arg2;
}
float div(float arg1, float arg2) {
if (arg2 == 0.0)
throw string ("Your input is not valid. You can't divide by zero.");... |
b820f2beb674b0302478fc7c57f3a09d1d864793 | 7ec3a516999a3324d03f2f9b3c3e236fbbe8d837 | /src/Game.cpp | f9352bbefd293dae8b705f556532761f7b108392 | [] | no_license | antaires/tic-tac-toe-c-plus-plus | ba0db2c3d1225c359b9d10874c3050247b2332a6 | 26d159a8eba599ba1a664ed672f26135a8e91844 | refs/heads/master | 2021-01-09T12:52:12.116035 | 2020-02-29T08:42:07 | 2020-02-29T08:42:07 | 242,306,875 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,592 | cpp | Game.cpp | #include "./Game.h"
Game::Game() {
this->isRunning = false;
}
bool Game::IsRunning() const {
return this->isRunning;
}
void Game::Initialize(int width, int height){
this->board = new Board();
this->graphics = new Graphics();
this->minimax = new Minimax();
graphics->Initialize(width, height);
Start();
... |
f6394bf40ba1a52677ce1f39689683113e44bfe4 | a70581d6277d6f7540e26c83c854623aa2eccd87 | /server/src/httpRequestParser.cpp | 17627dcbcad498fb03ff6bce211e904fdbdb7400 | [
"MIT"
] | permissive | icecreamrua/tiny-htttp-server | 27f5ab97f7c0568ccacb0c569e020f6b6a0222a3 | 5ceb6bbe9753c895966fb1ecefad86b3d42d1a5a | refs/heads/main | 2023-07-25T22:42:11.879648 | 2021-09-06T12:33:31 | 2021-09-06T12:33:31 | 402,740,761 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,914 | cpp | httpRequestParser.cpp | #include "httpRequestParser.h"
#include<iostream>
httpRequestParser::httpRequestParser() :
tem_data(new char[4096]), tem_idx(0), tem_size(4096),
parser_state(ParserState::Request_Line_Parser)
{
}
httpRequestParser::~httpRequestParser()
{
delete[] tem_data;
}
int httpRequestParser::getLine(std::string&... |
fa9c18695a82f27642d0097849d4e107b32af829 | b0069cfa317b9281f064a7fbd9d1463c33ee1ac4 | /Firestore/core/src/model/field_index.h | 57f159e9c670025bfbdb59ae757245e7cf1cc77e | [
"Swift-exception",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | firebase/firebase-ios-sdk | 5bb2b5ef2be28c993e993517059452ddb8bee1e6 | 1dc90cdd619c5e8493df4a01138e2d87e61bc027 | refs/heads/master | 2023-08-29T23:15:28.905909 | 2023-08-29T21:49:41 | 2023-08-29T21:49:41 | 89,033,556 | 5,048 | 1,594 | Apache-2.0 | 2023-09-14T21:11:30 | 2017-04-22T00:26:50 | Objective-C | UTF-8 | C++ | false | false | 9,742 | h | field_index.h | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
961d61f401581ea376dcd8aedf76fef4f1ebdf7c | 41863ae6b2f4c48d584c30d4f584541d6dea73f2 | /Solution.cpp | 8e90865029454022962c16dea4ef69e4bac5e76a | [] | no_license | MaximFisherman/CodingGame_Shadows-of-the-Knight-2 | e55b986dacf18d5a06a617a920f80e77a81573e8 | fdffaa5a0fb8dacd16448219d50505196a51a055 | refs/heads/master | 2020-03-24T14:30:51.588124 | 2018-07-29T15:04:45 | 2018-07-29T15:04:45 | 142,770,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,201 | cpp | Solution.cpp | #include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <algorithm>
using namespace std;
#define _DEBUG_
#define _DEBUG_COORD
namespace user
{
struct coordinate
{
public:
int x; int y;
coordinate() : x(0), y(0) {};
coordinate(int _x, int... |
e160582e15d8798a88d87c5000359074f85f5790 | 87f9cb5d08c5b75a3e2767b653976039f67a9560 | /mot/cholesky.h | 737b4b206080158240a7d7f0eca8c2ecdccf4e01 | [] | no_license | sunlinlin-aragon/TensorRT-Scaled-YOLOv4 | e287c9c440956fd07f704d0d0fc3c70a6a8afbbf | 520b54b469221f55e1afb7c4396a0a854dd74c13 | refs/heads/master | 2023-04-20T04:10:30.951232 | 2021-04-29T13:37:21 | 2021-04-29T13:37:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 310 | h | cholesky.h | #ifndef _CHOLESKY_H_
#define _CHOLESKY_H_
#include <vector>
namespace cholesky{
using namespace std;
vector<vector<float>> fuck_cholesky(const vector<vector<float>> matrix);
vector<vector<float>> fuck_cholesky_solve(const vector<vector<float>>lower_diag,const vector<vector<float>> b);
}
#endif |
6e46398e2e3fd03dd5529645bd3cf33867b9ca8d | 01cef00c34ac59e6ed6017f13e410709293ac94e | /include/cores/CameraCore.hpp | 2a10148843f59005ee2518c9935b0f668b01cf68 | [] | no_license | thelaui/guacamole-attic | 4b35130f45a97f2c2169d2262bbcb259de4881dd | e267d7c4a68a833fda5d125b023744b1ae9f72de | refs/heads/master | 2020-04-11T04:27:38.150880 | 2012-11-11T12:33:13 | 2012-11-11T12:33:13 | 2,898,153 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,611 | hpp | CameraCore.hpp | ////////////////////////////////////////////////////////////////////////////////
// Guacamole - An interesting scenegraph implementation.
//
// Copyright: (c) 2011-2012 by Felix Lauer and Simon Schneegans
// Contact: felix.lauer@uni-weimar.de / simon.schneegans@uni-weimar.de
//
// This program is free software: you c... |
253b50b00815d714d740254697d41f2178177820 | 800ad43d3b6e27c5ad1e3e8fac97c5fb1fb9f697 | /R-Prototype/Game/Renderer.cpp | 4b740d0b239faed4d92c4d938faef866c8df64e3 | [] | no_license | lmsierra/R-Prototype | dd6531e38da32215701e93a1c0c905496f08c4f0 | df0519d47466ae756d9d97751b6c01cb60f6a59f | refs/heads/master | 2021-01-23T13:35:31.003030 | 2017-09-07T00:19:59 | 2017-09-07T00:19:59 | 102,670,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | cpp | Renderer.cpp | #include "stdafx.h"
#include "Renderer.h"
#include "Sprite.h"
#include "HUD.h"
Renderer::Renderer()
{
}
Renderer::~Renderer()
{
}
void Renderer::Init()
{
hud = new HUD();
}
void Renderer::Deinit()
{
sprites.clear();
}
void Renderer::AddSprite(Sprite *sprite)
{
sprites.push_back(sprite);
}
void ... |
03313b8048cb27ba13f6794eb681465eb1e2e758 | a6881510f380da03ff438003b47248caa87f1cef | /server/src/main.cpp | 4d65e0e2d1f0e8efb951602c9c350447ac17ab8a | [] | no_license | P3ti/RakSAMP | d6ea216aff175e81eb77b1e675d0c130c5163846 | 670cf880f8c1541334f31b25ec0e1e3a7640b722 | refs/heads/master | 2018-01-12T15:00:31.237615 | 2017-07-09T07:49:53 | 2017-07-09T07:49:53 | 21,405,476 | 74 | 50 | null | 2018-08-20T02:52:39 | 2014-07-01T23:38:33 | C++ | UTF-8 | C++ | false | false | 3,386 | cpp | main.cpp | /*
Updated to 0.3.7 by P3ti
*/
#include "main.h"
TiXmlDocument xmlSettings;
char szWorkingDirectory[MAX_PATH];
int iMainLoop = 1;
RakServerInterface *pRakServer = NULL;
unsigned int _uiRndSrvChallenge;
int iPort;
unsigned short usMaxPlayers;
int iLagCompensation;
char szLogFile[MAX_PATH];
FILE *flLog = NULL;
str... |
ec345e8ffaee76f2fe1472525a0d30821d6e1c1e | f62223da2505395adf6954d21a3443411229c23f | /Core/RequestFactory.h | face3c3da29e007aaadf10169202c824189e1e13 | [] | no_license | jell0wed/8tracksplayer | 08f0e7da42a84ff31b80634522bc169d94e07587 | 139b46b2d413c3832286c8ef0411b1771402b19f | refs/heads/master | 2021-01-01T18:17:47.282635 | 2015-01-23T05:47:15 | 2015-01-23T05:47:15 | 29,718,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | h | RequestFactory.h | #ifndef REQUESTFACTORY_H
#define REQUESTFACTORY_H
/**
factory used to create request from specified actions and parameters
*/
#include <map>
#include <string>
#include <assert.h>
#include "API_Defines.h"
#include "BaseRequest.h"
#include "LoginRequest.h"
#include "MixSearchRequest.h"
#include "PlayTokenRequest.h"
#... |
81d2672cc0166f6f3e69b60bdfeee2bd1ba45fab | 8c731cbbe3743b7e275a486b6a6582d732e08e4a | /myhttpd.cc | 34106242f8a1e0d129f2ab0359d5f7617445bbc0 | [] | no_license | HongxuMeng/cs252 | 6fcadd0bb62484fb5dac4742e2412598953223b5 | 5eccecf9bf833cc6ed3287115fd0db6aa94b3fcc | refs/heads/master | 2022-01-22T19:47:18.969123 | 2019-07-31T20:34:12 | 2019-07-31T20:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,209 | cc | myhttpd.cc | const char * usage =
" \n";
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include <iostream>
#include <sys/types.h>
... |
ef924b43be4e9fde799348c4c077cdff9dcf7e20 | c76e78581983830158b2a6f56b807e37132f4bba | /Codeforces/c1400-1499/c1433p3.cpp | 8a2f7321f72dfeecfadbf25b3c157ffb5fa7da61 | [] | no_license | itslinotlie/competitive-programming-solutions | 7f72e27bbc53046174a95246598c3c9c2096b965 | b639ebe3c060bb3c0b304080152cc9d958e52bfb | refs/heads/master | 2021-07-17T17:48:42.639357 | 2021-05-29T03:07:47 | 2021-05-29T03:07:47 | 249,599,291 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 853 | cpp | c1433p3.cpp | // 10/20/2020
// https://codeforces.com/contest/1433/problem/C
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define CLR(a) memset(a, 0, sizeof(a))
#define REP(i, n) for(int i=0;i<n;i++)
#define FOR(i, n) for(int i=1;i<=n;i++)
#define F first
#define S second
const int m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.