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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dbdff797db9d1330f4ad5c6b024fa5b66b06ae05 | c1c5a8dc79cacf3b419bad77881213c5db2f80c3 | /UVa/C++/445.cpp | c2fc884068f40a30639714c16347fe69aa92eca3 | [] | no_license | EoinDavey/Competitive | 7ff8b6b6225814ac60c3ace659bb63190eb52420 | b2b6909b93f5c073b684477f8a4b06dac22ec678 | refs/heads/master | 2023-01-08T00:06:19.076941 | 2022-12-26T14:00:31 | 2022-12-26T14:00:31 | 67,259,478 | 17 | 1 | null | 2022-01-19T18:17:59 | 2016-09-02T22:46:26 | C++ | UTF-8 | C++ | false | false | 705 | cpp | 445.cpp | #include<iostream>
#include<cstdio>
#include<string>
#include<vector>
#include<cmath>
#include<cstring>
using namespace std;
int main(){
char c;
int reps = 0;
while(scanf("%c",&c)==1){
if((int) c >= '0' && (int) c <= '9'){
reps += (int)c-'0';
}else if(c=='b'){
for(i... |
b28d758f6659f12a59b0f0daf0bd027084b6057a | 67414e7e5c8e2ef92d633ac4deee59b8e6ba8c4b | /LanChat/LanChatClient/signup.h | 4cde656fdda9d3b69379ab2266e87b58528a2b7e | [] | no_license | JasonOldWoo/QtProjects | 99da87fa4a8b4612c905e9db3c2b719571a557ed | 79b93915f1a3417fa79dc6f74debaeaaa9b43174 | refs/heads/master | 2021-01-01T15:54:33.234633 | 2014-04-04T05:42:08 | 2014-04-04T05:42:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | h | signup.h | #ifndef SIGNUP_H
#define SIGNUP_H
#include <QDialog>
#include <QTcpSocket>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
class SignUp : public QDialog
{
Q_OBJECT
public:
explicit SignUp(QWidget *parent = 0);
~SignUp();
private slots:
void on_pushButton_clicked();
void sl... |
c94c20a4969587e13b600f95249a053cdb392478 | de815759dc21b78aa6d347c076c7c6a62a2c94cf | /exploration/src/rrt_point_publisher_node.cpp | 08729c3077df81134ac20770611d3a3a46ccd5eb | [] | no_license | rfzeg/multiple_robots_slam | 795a12cc73b5ab3e782c99787041020cd42d65fa | d2a87873f47be599235a930f2c65ddf08d5ff76d | refs/heads/master | 2022-04-12T03:20:38.555166 | 2020-02-26T06:32:50 | 2020-02-26T06:32:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,785 | cpp | rrt_point_publisher_node.cpp | #include <ros/ros.h>
#include <geometry_msgs/PointStamped.h>
#include <exploration_libraly/construct.h>
int main(int argc, char *argv[]){
ros::init(argc, argv, "rrt_point_publisher");
int MAP_TYPE;
ros::Publisher pub = ros::NodeHandle().advertise<geometry_msgs::PointStamped>("/clicked_point",1,true);
... |
4c9b03882ff4be0b30ecf61b9bc0e87e30d8419c | ba5d1d776888be6ae9688d850f0445d80973ee8f | /game/client/tfo/InventoryPanel.h | 64a0864b361f2ee025a76b3f081cb93364c10a09 | [
"MIT"
] | permissive | BerntA/tfo-code | eb127b86111dce2b6f66e98c9476adc9ddbbd267 | b82efd940246af8fe90cb76fa6a96bba42c277b7 | refs/heads/master | 2023-08-17T06:57:13.107323 | 2023-08-09T18:37:54 | 2023-08-09T18:37:54 | 41,260,457 | 16 | 5 | MIT | 2023-05-29T23:35:33 | 2015-08-23T17:52:50 | C++ | UTF-8 | C++ | false | false | 2,355 | h | InventoryPanel.h | //========= Copyright Bernt Andreas Eide, All rights reserved. ============//
//
// Purpose: Inventory Panel GUI - Still quite hardcoded, this file has been heavily refactored and tweaked for the past years.
//
//=============================================================================//
#ifndef GAME_INV_PANEL_H
#... |
9feb71a4534a4f22e0e95bf51dd51abbe7786fe2 | 986bc202c5d0e66efc61d4b1428b28a557b5cda0 | /SoftRenderer/Time.cpp | 5b63600ede3a45a93a060b90ebe9b0ec2c7a12f2 | [] | no_license | lyuavery/SoftRenderer | 1df5d67147bd5e889b2d590026e2d3b1ab8a8043 | 0df8aaa0194f0a70e6c987f5658f370bfcff6bd4 | refs/heads/master | 2021-04-19T10:43:02.712737 | 2020-06-17T00:06:39 | 2020-06-17T00:06:39 | 249,601,136 | 0 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 1,207 | cpp | Time.cpp | #include "Time.h"
#include "Header.h"
float SR::Time::deltaTime = 0.033f;
UInt32 SR::Time::frameCnt = 0;
double SR::Time::lastUpdateTime = 0;
double SR::Time::clockPeriod = -1; // Κ±ΦΣΦάΖΪ
double SR::Time::startTime = -1;
float SR::Time::fpsStatLastTime = 0;
float SR::Time::fpsStatElapseTime = 0;
UInt32 SR::Time::fpsSt... |
d0c2338c44ba13da76d0f6d72f2b46f890e5ae27 | c7f307e9d3b95a6b8875940b89e225ac3a4e34a5 | /dynamic_object_retrieval/convex_segmentation/include/object_3d_retrieval/supervoxel_segmentation.h | a846d1fc91e9d9ae51caa38379d386beb36aaa13 | [] | no_license | strands-project/strands_3d_mapping | e540c6ab1da3ce047df4b739b357c36ad992981f | 28ee7a6b6ab6f591de201bd0a6e8a37c5a57a9ea | refs/heads/hydro-devel | 2021-01-23T21:27:31.872040 | 2017-05-05T07:13:55 | 2017-05-05T07:13:55 | 11,306,586 | 23 | 28 | null | 2022-08-30T10:53:40 | 2013-07-10T08:32:49 | C++ | UTF-8 | C++ | false | false | 7,648 | h | supervoxel_segmentation.h | #ifndef SUPERVOXEL_SEGMENTATION_H
#define SUPERVOXEL_SEGMENTATION_H
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/segmentation/supervoxel_clustering.h>
#include <boost/graph/incremental_components.hpp>
#include <boost/graph/graphviz.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/hi... |
2ef5ee6355a9f79f395f6cf3507b77b88f934fdc | 71c1c86b30c1518e21728f7d5e0f09b5e602baac | /Algo_Engine/ROM_Handler/AceRom/DestConnector.h | 6da1f9389a3eafcdc75f1ec1e470963890f3bcd4 | [] | no_license | ssh352/ronin | 3ddf360fec5f106015c6902b5107aedefe934836 | 33301b6c5e68fa9d02c7d54bc86f6b7732985fc2 | refs/heads/master | 2023-05-03T11:00:39.368460 | 2021-05-17T18:41:08 | 2021-05-17T18:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 173 | h | DestConnector.h | #ifndef __DESTCONNECT_H__
#define __DESTCONNECT_H__
class CDestConnector
{
public:
CDestConnector(void);
~CDestConnector(void);
};
#endif //__DESTCONNECT_H__
|
25bd30168d0d237f480b74246642ddb563648a44 | a0f76c994b9871e12fb56d2c75f521cea43c1749 | /platillococinamodelo.cpp | b312809263de62e4cb97c9a095d7e2afca9e823d | [] | no_license | DylRenalty/DelfinDorado | d6dd4320fbe1a52ddebcdd935c12f2865d1a1103 | 18b347e3f8c9f1fa83dc111e36ce5e02d0532416 | refs/heads/master | 2022-01-09T02:00:47.569532 | 2019-03-07T04:09:15 | 2019-03-07T04:09:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,635 | cpp | platillococinamodelo.cpp | #include "platillococinamodelo.h"
PlatilloCocinaModelo::PlatilloCocinaModelo(QObject *parent) : QAbstractListModel(parent)
{
QSqlQuery qryPlatillosComanda;
qryPlatillosComanda.prepare("SELECT * FROM platilloscomanda");
qryPlatillosComanda.exec();
int idPlatillosComanda;
int idComanda;
int idP... |
8114d3b0fe980c3153b4b35ca974531ced1105c3 | 9d74b8a8d42a217669e27534132787b522829e03 | /FastVideoPro/FastVideov1/VideoDownloader/cwaitdlg.h | 231b46aeffa4279243bc048e1ec001cd7adff29b | [] | no_license | TommyZhang936/TChallaOld | c8450880135d1ff2392236e288c515ccb799216e | 6d980b31f40fc7e6b789b862e2e7f408296dadfc | refs/heads/master | 2020-07-01T08:15:02.259552 | 2016-11-10T01:32:59 | 2016-11-10T01:32:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,182 | h | cwaitdlg.h | #ifndef CWAITDLG_H
#define CWAITDLG_H
#include <QDialog>
#include <memory>
#include <thread>
#include <mutex>
#include <QThread>
#include <functional>
#include <set>
#include <qdebug.h>
#include <memory>
namespace Ui
{
class CWaitDlg;
}
template<class Fn>
class DoingThread : public QThread
{
Fn mF;
public... |
c637ac07b86e8f317e3bd891eb38deb2966ec3db | 3e517907b9662c1d2ebbcea19d3f1b9a93925c3d | /Factory/SimpleFactory.cpp | 99f7cdcd31a7161df956624aedc58e605654b54c | [] | no_license | CarsonCook/DesignPatterns | 941195acc973807d33c98cd57dd82fbf6dadc8ba | 2e7088062f420a4084c2dec6f5c0a10655da1858 | refs/heads/master | 2021-01-20T14:53:57.836039 | 2017-05-25T02:02:25 | 2017-05-25T02:02:25 | 90,686,820 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 725 | cpp | SimpleFactory.cpp | #include <string>
#include <iostream>
#include "SimpleFactory.hh"
Door* DoorFactory::makeDoor(float width, float height)
{
if (width<=0)
{
std::cout << "Bad width, returning with width as 1!" << std::endl;
width=1;
return NULL;
}
if (height<=0)
{
std::cout << "Bad he... |
47a982eff7ce1cc034fbaace19fa21e56af7cc59 | 0034e4d9221e45bd0d5feb09abc4c153fa2c134a | /3DSample/3DSample/Medal.h | ccb5be2d89684a6698ddceaf166d50b2b685c41f | [
"Apache-2.0"
] | permissive | YoshidaChihiro/metroydLike | 7ba79499e0c975a12613723a5952c63e301e1d27 | da0cde35ec6aae63e766b5711bc1617931fcb8af | refs/heads/master | 2020-12-27T11:44:38.214493 | 2020-02-21T00:29:26 | 2020-02-21T00:29:26 | 237,888,168 | 0 | 1 | Apache-2.0 | 2020-02-03T05:35:46 | 2020-02-03T04:58:07 | C++ | UTF-8 | C++ | false | false | 107 | h | Medal.h | #pragma once
#include"GameObject.h"
#include"Resource.h"
#include"Collision2D.h"
namespace Framework {
} |
354a8256f4cb32d70830a539fc01fd31a82594dd | f83188b3db85cf02bd64ace78875e3a4c464e936 | /Documents/Vault 7/Marble Framework/devutils/marble/Marbler/MBL_FORLOOP_FUNC_BUMP11.cpp | 4c05c189a5a4fa53dfbec3ad67279b7318521e36 | [
"MIT",
"ISC"
] | permissive | f13end/NSABlocklist | 4e5c72d438ae540e78298584108a739565a8c4bd | 4fafc9303c593d426e6530e1eb688f85c06fc272 | refs/heads/master | 2021-07-19T13:59:41.701191 | 2020-05-17T00:54:29 | 2020-05-17T00:54:29 | 157,699,145 | 4 | 0 | NOASSERTION | 2020-05-17T00:54:31 | 2018-11-15T11:17:10 | Python | UTF-8 | C++ | false | false | 2,427 | cpp | MBL_FORLOOP_FUNC_BUMP11.cpp | #pragma once
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "MBL_FORLOOP_FUNC_BUMP11.h"
MBL_FORLOOP_FUNC_BUMP11::MBL_FORLOOP_FUNC_BUMP11(void)
{
cKeyLiteral = NULL;
cWKeyLiteral = NULL;
srand(time(NULL));
for (int i = 0; i < 16; i++)
cKey[i] = (unsigned char)(rand() % 225... |
68388393be2d235f873b9948973d13af80c2e60c | ad9f7514cfcbf09066ce5ba6a1e2c55fb76c2aaf | /traversal/maze_traverse_astar.cpp | 1e8a14945d1e24e123cac945ceaf3ed23751b523 | [] | no_license | SpiritualXTC/mazegen | 8dec5bddabf2bcdce504267eabdc222ce137192a | 777ba6c6a43ea4a510117fa718e1bc5317f1c8f9 | refs/heads/master | 2021-01-20T18:15:50.630953 | 2016-08-09T23:46:22 | 2016-08-09T23:46:22 | 65,334,745 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,727 | cpp | maze_traverse_astar.cpp | /********************************************************************
File: maze_traverse_astar.cpp
Author: s3435406
********************************************************************/
#include "maze_traverse_astar.h"
#include <cassert>
using namespace traversal;
/*
*/
MazeTraverseAStar::MazeTraverseAStar()
{
}... |
0982ac155c6f0fe4d72cc6208e7a523fe2e7d59c | 7f179f81a5aff2ee4f95bf3d00b40e1b59783c17 | /UEPrototype/Source/UEPrototype/Private/Grid/EditorGrid.cpp | 6e01bb6750bfef89d01d290490ef7e3a849c550c | [
"MIT"
] | permissive | sanghun219/Prototype | 2cb928db15cb36113c8a1a60a7bcf4265b59fe26 | 4fdcd43ab3f6040927df4f91b033fb31261724dc | refs/heads/master | 2023-03-18T12:39:08.408368 | 2019-08-18T08:43:45 | 2019-08-18T08:43:45 | 219,662,598 | 0 | 0 | MIT | 2019-11-05T05:10:52 | 2019-11-05T05:10:52 | null | UTF-8 | C++ | false | false | 3,459 | cpp | EditorGrid.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "Grid/EditorGrid.h"
#include "Components/StaticMeshComponent.h"
#include "GameFramework/PlayerController.h"
#include "GameFramework/Actor.h"
#include "UEPrototype.h"
#include "Materials/MaterialInstance.h"
#include "Materials/Mate... |
30ee95cde5c5da3a7f6ab1cb40e533fc60a3eb81 | e12a1de3d6dc20a9dc0636bbb21f0803f60f44c8 | /revision/algorithm/partition.cpp | 898edfb317b06a6fe063abf559db8efabc2c6b93 | [] | no_license | mady4ever/Preparation | e5e3715fe6e677486658f382feb5d8004d881851 | 44944e40c4daf3ee75b63a50e0dcadd05acd1562 | refs/heads/master | 2020-04-21T08:37:32.987977 | 2019-10-10T07:52:59 | 2019-10-10T07:52:59 | 169,425,046 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 247 | cpp | partition.cpp | #include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int a[]={1,2,3,4,5};
int b[5];
auto it = partition(begin(a),end(a),[](int a){ return a%2==0?true:false;});
for(auto i: a)
cout<<i<<"\t";
return 0;
}
|
3c638a4239ce1195e9f5d64e397672e63af7b489 | 4a7eb115906b6a940c94e797332e394bed450a30 | /src/MyExceptions.h | f1a7dd002df291b9b7985d5e0b82581d04780836 | [] | no_license | catramos96/IART-Projeto | a9c6e9572718855fbaf335d3f4d04f0009578617 | e8f509cbc95a599632e380c30eb3f61360e1cb9c | refs/heads/master | 2021-03-27T16:55:35.793551 | 2017-05-21T23:44:05 | 2017-05-21T23:44:05 | 82,324,382 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | MyExceptions.h | #ifndef MYEXCEPTIONS_H_
#define MYEXCEPTIONS_H_
using namespace std;
template <class T> class elementNotInVectorException{
private:
T element;
public:
elementNotInVectorException(T element)
{
this->element = element;
}
T getElement() const
{
return this->element;
}
};
#endif /* MYEXCEPTIONS_H_ */
|
bb687a831597b72351a0a60c4422220811180b75 | c02c8f11b085de917946cd0442fbd282ec65ddfe | /src/main.cpp | 97dd866c63ad0dfcacb64a21ca382804dbb4f4b5 | [] | no_license | gcorp-git/vm | a90ff65abaaacf689d0318799329fa3fdb3840e3 | c6f1eb813b98ece5157b25673e7b57bd77fe0eae | refs/heads/main | 2023-08-23T06:55:33.049738 | 2021-09-28T13:57:03 | 2021-09-28T13:57:03 | 411,279,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 533 | cpp | main.cpp | #include "vm/vm.cpp"
using namespace VM;
int main() {
auto bc = load( "test.gbc" );
auto scope = scope_create();
auto _ext_test = [ scope ]( Scope* _scope, std::vector<Object*>* args, std::unordered_map<std::string, Object*>* kargs) -> Object* {
std::cout << ">>> EXT TEST CALLED <<<";
return object_create_in... |
d4a823a07dabd959ffad7a5c33d81bcd977c86ff | 3e5c3732b06748456fde9e259b5c4a63f37ccdfa | /arm/Robot/Sources/generalfunction/Myfunctions.h | 1c61f759de680f95be41bf00884c89abdefd7210 | [] | no_license | TIWTIW/causual-project | c8e14d26db8eb21cb157bf3711657e1f518bce0f | 649325643605feee85d22c21cc74190858e53c87 | refs/heads/master | 2021-05-11T22:33:34.431201 | 2017-12-27T10:38:53 | 2017-12-27T10:38:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | h | Myfunctions.h |
#ifndef _Myfunction_H_
#define _Myfunction_H_
#include <unistd.h>
#include <sys/stat.h>
#include <errno.h>
#include <string>
#include <cstdlib>
#include <cstring>
#include <dirent.h>
#include <stdio.h>
using namespace std;
int is_dir( const char *filename );
bool CreateDir( const char *dir_path );
int DeleteDir( con... |
32b8c23d3f477c78056d6ee2b9f025cbe4f6ac7a | 0ca8541fc410efcd82c450e5fb83ba183d7ffb4b | /1000-4999/2512.cpp | 29eb1b8a3b2cd9f53d50a705e6ef9d316385573e | [] | no_license | mttw2820/BaekJoon_cpp | 85ecb68f2f5274e28ce75b6cf60b1f9ac0d82e64 | 9ff110d5f372b96fd9be17fa096edd237a77daf6 | refs/heads/main | 2023-05-05T17:41:50.896038 | 2021-05-03T14:45:33 | 2021-05-03T14:45:33 | 328,638,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cpp | 2512.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int money[10001] = { 0, };
int main() {
int n; long long m;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> money[i];
}
cin >> m;
sort(money, money + n);
long long mx = 0;
long long left = 0;
long long right = money[n-1];
while (left <= right) ... |
acc82b774b324ebfdb7d076ff58bb66961375f27 | 6f0a3b83e2f202cdad787a316c7173caf9691e21 | /timer1.ino | 8af2730ca49db44bd6b92ae1555fda6c71acd9a8 | [] | no_license | musfera/Embedded-C | fdd6d2d4e8b85c6f29fa622c87950cd3f975ba25 | 00627c270be2d871c9fd0cc82ab3e8fbb15ee1d5 | refs/heads/master | 2020-12-23T11:01:43.925976 | 2020-01-30T03:30:41 | 2020-01-30T03:30:41 | 237,130,813 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | ino | timer1.ino | // this code sets up timer1 for a 1s @ 16Mhz Clock (mode 4)
#include <avr/io.h>
#include <avr/interrupt.h>
ISR (TIMER1_COMPA_vect)
{
Serial.println("IM IN");
}
int main(void)
{
OCR1A = 0x3D08;
TCCR1B |= (1 << WGM12);
// Mode 4, CTC on OCR1A
TIMSK1 |= (1 << OCIE1A);
//Set ... |
d4d98d34acfab27c0d679d62087c3106f3e49ac2 | 0577a46d8d28e1fd8636893bbdd2b18270bb8eb8 | /update_notifier/thirdparty/wxWidgets/src/common/languageinfo.cpp | d3eab299a5a7020b638d60ee09cddaf777b70c10 | [
"BSD-3-Clause"
] | permissive | ric2b/Vivaldi-browser | 388a328b4cb838a4c3822357a5529642f86316a5 | 87244f4ee50062e59667bf8b9ca4d5291b6818d7 | refs/heads/master | 2022-12-21T04:44:13.804535 | 2022-12-17T16:30:35 | 2022-12-17T16:30:35 | 86,637,416 | 166 | 41 | BSD-3-Clause | 2021-03-31T18:49:30 | 2017-03-29T23:09:05 | null | UTF-8 | C++ | false | false | 47,916 | cpp | languageinfo.cpp | /////////////////////////////////////////////////////////////////////////////
// Name: src/common/languageinfo.cpp
// Purpose: wxLocale::InitLanguagesDB()
// Author: Vadim Zeitlin, Vaclav Slavik
// Created: 2010-04-23
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence... |
6d5e0950ad13e3daed7141da21f41e29ee6bd4ce | fe364970093c8995720585a5e85572ddeaa3895e | /SockStreams.cpp | 2358cce68a36d361195ac0720ad0ead3eb17ea0b | [] | no_license | ofirbe/AlgServer | 6ea7784f844cdc797e06b6bd18f14c957a7dd685 | 99ffd80867e389c571eb3952f0002c92430aa66f | refs/heads/master | 2022-04-10T11:41:59.551645 | 2020-03-21T15:16:50 | 2020-03-21T15:16:50 | 260,215,958 | 1 | 0 | null | 2020-04-30T13:15:24 | 2020-04-30T13:15:23 | null | UTF-8 | C++ | false | false | 66 | cpp | SockStreams.cpp | //
// Created by ofir on 12/01/2020.
//
#include "SockStreams.h"
|
2d5ee82a37fe354becdfa9a6aceb71f53e5ae133 | 3e70eda6819fec5bf5ba2299573b333a3a610131 | /mole/gamesvr/games/angel_fight/levelinfo.cpp | ec93fe0c36b21e3ecd8d4466ad90077517845291 | [] | no_license | dawnbreaks/taomee | cdd4f9cecaf659d134d207ae8c9dd2247bef97a1 | f21b3633680456b09a40036d919bf9f58c9cd6d7 | refs/heads/master | 2021-01-17T10:45:31.240038 | 2013-03-14T08:10:27 | 2013-03-14T08:10:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,055 | cpp | levelinfo.cpp | /*
* =====================================================================================
*
* Filename: levelinfo.cpp
*
* Description:
*
* Version: 1.0
* Created: 06/20/2011 04:18:14 PM
* Revision: none
* Compiler: gcc
*
* Author: Ericlee, Ericlee@taomee.com... |
2d7db64a45901dbc502f45b208d545ac874edd6b | b25b45763b3c0f953332b4b5ea123b0ebe610488 | /engine_tools/res_pack/pipeline_compiler/Private/ScriptObjects.cpp | 7b01181b547c94129d945eefeec578540a5fe6e7 | [
"MIT"
] | permissive | yunatoomi/AE | 139d731c46ccec5bb84400d9ef8e68db6f0ed2fd | 31a42b9bf3bdd86304d565d66e4710e7d89d7392 | refs/heads/master | 2022-04-05T17:29:10.596443 | 2020-02-29T09:27:27 | 2020-02-29T09:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,198 | cpp | ScriptObjects.cpp | // Copyright (c) 2018-2020, Zhirnov Andrey. For more information see 'LICENSE'
#include "Private/ScriptObjects.h"
#include "stl/Algorithms/StringUtils.h"
#include "stl/Algorithms/StringParser.h"
#include "stl/Stream/FileStream.h"
#include <locale>
#include <codecvt>
namespace AE::PipelineCompiler
{
namespace {
/*
... |
18c9489d046a3d5cdeb9c42cd2030ce842c3d205 | 2f5ead92fd5631f41b0df1f9af337955ef4ba487 | /Chapter4_Stack_and_Queue/p150_Evaluate_Reverse_Polish_Notation.cpp | f889912450c75f445ae260d04665a9d132757f50 | [] | no_license | r06921037zwh/Leetcode_note | 1e1132b6fbfe6c73246b3654b11a78f8ade7c11e | 40838d2d63bd3e8855b08985e084d89d79865f27 | refs/heads/master | 2021-06-22T14:04:05.028978 | 2021-06-06T15:08:35 | 2021-06-06T15:08:35 | 221,789,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | p150_Evaluate_Reverse_Polish_Notation.cpp | #include <stack>
#include <string>
class Solution {
public:
int evalRPN(vector<string>& tokens) {
if(tokens.size() == 0) return 0;
stack<int> nums;
const string op = "+-*/";
int a, b;
for(auto token: tokens){
if(op.find(token) != string::npos){
... |
d152bf5b86b6c072601070a3cf64e805249a99bb | f112a56eaf1d9cceabc6d0bb3809fadc4cfc9846 | /src/main.cpp | fe82ec5a80c505cf15d46b7a3a0ffcba8dae9e7d | [] | no_license | saminzana/Sam-Tripwire | f5ac44082eede9d4dee5fe71aee4e5f5a5662c35 | 25cef9e6aa5971cb35d03cd0adc3139c91eca79a | refs/heads/master | 2023-06-17T15:42:49.529007 | 2021-07-12T04:00:46 | 2021-07-12T04:04:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | cpp | main.cpp | #include <Arduino.h>
void setup() {
Serial.begin(9600);
pinMode(3, OUTPUT);
pinMode(11, INPUT);
TCCR2A = _BV(COM2B1) | _BV(WGM21) | _BV(WGM20);
TCCR2B = _BV(WGM22) | _BV(CS21);
OCR2A = 51;
OCR2B = 26;
}
void loop() {
if(digitalRead(11) == LOW) {
Serial.println("Signal Low");
}
else {
Ser... |
ce13cbc571eed4f3be8b75f4f1eccda4ab10d2ab | 4158d1aff880a2949ab032e5107773f4736d46f3 | /Zappin' Kraken v1.0.6/src/main/include/Auto/Modes/DriveOffLine.h | a15c900961f3f618333cb5e5ee5cf79de70472c0 | [] | no_license | FRC1410/infiniterecharge2020 | 37023c2af913ed1c6ecc9fa1c76310b589de35a2 | 00e0bf970debda2e1e232ff2261f6b489ba3a51c | refs/heads/master | 2021-01-02T13:08:01.256723 | 2020-03-11T06:02:14 | 2020-03-11T06:02:14 | 239,635,589 | 5 | 4 | null | 2020-02-17T17:27:54 | 2020-02-10T23:32:11 | C++ | UTF-8 | C++ | false | false | 123 | h | DriveOffLine.h | #pragma once
#include "Util/Libraries.h"
class DriveOffLine : public frc::CommandGroup {
public:
DriveOffLine();
}; |
37defc6a83c5fa90907a819461ff42223826d5e4 | 5b3bf81b22f4eb78a1d9e801b2d1d6a48509a236 | /leetcode/30-day/14-perform-string-shifts.cc | a66f20926d0c203d2a4ad44608e22471b21276ed | [] | no_license | okoks9011/problem_solving | 42a0843cfdf58846090dff1a2762b6e02362d068 | e86d86bb5e3856fcaaa5e20fe19194871d3981ca | refs/heads/master | 2023-01-21T19:06:14.143000 | 2023-01-08T17:45:16 | 2023-01-08T17:45:16 | 141,427,667 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cc | 14-perform-string-shifts.cc | #include <vector>
using namespace std;
class Solution {
public:
string stringShift(string s, vector<vector<int>>& shift) {
int total = 0;
for (auto& v : shift) {
if (v[0])
total -= v[1];
else
total += v[1];
}
total += s.size... |
16f45b8bb2f77fa2affe48cf327ab08b48eaeeb8 | ab40d305fe7377af5fec9d1785058aeeeed7eafe | /basic/lesson02/QuickMedian_text.cc | 5dd5a9c0c4a8ac7de9ff38c8d4ba09104b17cda0 | [] | no_license | feng-qi/algorithm_class | 3bf2f62ac15b9f6e579f899ec5cca0d008f08e56 | a66936d26fa6f24db8541ccc5d451b1037a2e038 | refs/heads/master | 2020-03-22T03:57:39.159205 | 2018-07-18T17:23:38 | 2018-07-18T17:23:38 | 139,463,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 411 | cc | QuickMedian_text.cc | #include <gtest/gtest.h>
#include "QuickMedian.h"
TEST(QuickMedianTest, Basic) {
QuickMedian qm;
qm.add_number(1);
ASSERT_EQ(qm.get_median(), 1);
qm.add_number(5);
ASSERT_EQ(qm.get_median(), 3);
qm.add_number(3);
qm.dump_heap();
ASSERT_EQ(qm.get_median(), 3);
qm.add_number(10);
... |
9cd263ef18e0fedc10da549a5868314b8709b44d | bb229e7e77e86a3b5b9d2df913c11dd676b10b23 | /Functors/src/Functors.cpp | 63fea034d3a1c66871a4c17c1ba828f941c8606f | [] | no_license | Olshansk/advanced-cplusplus | 90834f47d666c3f3d2852ec760bdf1856c2fd456 | d29da477a671aa5d3d1a808401920d519da2869b | refs/heads/master | 2022-11-05T14:20:37.920706 | 2020-06-23T15:35:47 | 2020-06-23T15:35:47 | 255,978,131 | 1 | 0 | null | 2020-04-15T16:40:42 | 2020-04-15T16:40:41 | null | UTF-8 | C++ | false | false | 1,799 | cpp | Functors.cpp | #include <iostream>
using namespace std;
struct Test {
virtual bool operator()(string& test)=0;
};
struct MatchTest : public Test {
virtual bool operator()(string& test) {
return test == "valid" ? true : false;
}
};
void check_test(string& text, Test& tester) {
if (tester(text)) {
co... |
3a2da061dca5933f93e24ea7ab97a93d9b23ee57 | b273daf480bfeaad340061063ef1d8782e3d7286 | /OrderBook.cpp | ba0bc753b43102a589ce8169659842ff4b8ab53d | [] | no_license | renjitrr/OrderBook | b14e3466dee326a47eb14cc56a486760ea0aa70d | d5523e60aab95531191a88d184d77ba7a57c8172 | refs/heads/master | 2020-04-07T12:27:30.641357 | 2020-02-03T04:55:47 | 2020-02-03T04:55:47 | 158,368,737 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,718 | cpp | OrderBook.cpp | #include "OrderBook.h"
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <string.h>
#include <functional>
using namespace OrderMatching;
bool OrderBook::add( long orderId, long originalOrderId, std::string side, long qty, double price )
{
Sid... |
cd326d4975f20bcfcf0b58da5c05747ceddcfe40 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/waveFoam/firstSuccessfullTest/7.4/phi | 4f42128830772f72ebe47934e281f380dfdb20fa | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526,766 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
81b24fdd4d9f7071c05e33f7e586b759b579ed33 | 8105733df657df6cb42b5a39bfe64a1c2f40f1f2 | /Library/picture-tricolormappalettepixelconv.h | 362476354f0dc1cde8de653345e563aeb5aea0ba | [] | no_license | beakie/Studio | 27c1eddade1185f47c2aa71be6c277b392c320a3 | debe855132e72779fd635379d2964b60a97a3047 | refs/heads/master | 2020-12-14T07:22:03.188593 | 2015-06-26T14:38:53 | 2015-06-26T14:38:53 | 31,416,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | h | picture-tricolormappalettepixelconv.h | #ifndef PICTURE_TRICOLORMAPPALETTEPIXELCONV_H
#define PICTURE_TRICOLORMAPPALETTEPIXELCONV_H
#include "core.h"
#include "common.h"
namespace Picture
{
//template specialization the main function. will be quicker, and end resulting would be the same... code base is bigger but worth every bytes
template <typename TUN... |
79d30dc3e86472bbbdba9c6d7cfaa6a731a81551 | 70418d8faa76b41715c707c54a8b0cddfb393fb3 | /10165.cpp | 085f138f7b1d8d2fc26bf669463d55b07d2e286e | [] | no_license | evandrix/UVa | ca79c25c8bf28e9e05cae8414f52236dc5ac1c68 | 17a902ece2457c8cb0ee70c320bf0583c0f9a4ce | refs/heads/master | 2021-06-05T01:44:17.908960 | 2017-10-22T18:59:42 | 2017-10-22T18:59:42 | 107,893,680 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | 10165.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int piles, stones, tmpStones;
while (cin >> piles, piles)
{
stones = 0;
for (int i = 1; i <= piles; i++)
{
cin >> tmpStones;
stones ^= tmpStones;
}
cout << (stones ? "Yes" : "No") << endl;
}
return 0;
}
|
be3197e95864f8981987a326fe171f5c6ccf7d3e | f76ae6e1f43680d192118514bc549e67a4ad04a0 | /test/expression/variable/unary_unittest.cpp | 242a8b159b59a40523a6c91ea528172e12ef0fa3 | [
"MIT"
] | permissive | StHamish/autoppl | da5d6ec50f93e27c6cf60631edc3e480626b4276 | e78f8d229d2e399f86f338e473da5ddc7dbed053 | refs/heads/master | 2022-12-17T00:29:54.216065 | 2020-09-13T20:07:16 | 2020-09-13T20:07:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,123 | cpp | unary_unittest.cpp | #include "gtest/gtest.h"
#include <fastad>
#include <testutil/base_fixture.hpp>
#include <autoppl/expression/variable/unary.hpp>
namespace ppl {
namespace expr {
namespace var {
struct unary_fixture:
base_fixture<double>,
::testing::Test
{
protected:
using op_t = ad::core::Exp;
using scl_unary_t = Un... |
a59e8e2f9bc5cb97a0d872046c99bd1e6e7c8eb3 | 61fa5f518f1e7db4d3db8597f304d30c6bb2daba | /tests/src/main.cpp | 37222a449138c8be395ce2c42425593fb6958faf | [
"MIT"
] | permissive | rlexmann/maala | caafc62f70482bbd6cc6e1ed17882e020e1783e0 | b5b34a9fd1fb4129c1fe160fd800bfc175857f1d | refs/heads/master | 2020-04-10T14:37:08.476998 | 2019-06-27T05:22:12 | 2019-06-27T05:22:12 | 161,082,015 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 292 | cpp | main.cpp | #include <iostream>
#include <string>
#include <config.hpp>
#include <tests.hpp>
int
main() {
testSuite1();
testSuite2();
#ifdef WIN32
std::cout << std::endl << "Press Return to exit..." << std::endl;
std::string input;
std::getline(std::cin, input);
#endif
return 0;
}
|
de102ea13d2eabfc8cc5bfbfe771e6215d4be1f4 | 1e31f0ab55fdd2baa54f33b50213055c2a52b979 | /cpp01/ex03/HumanA.cpp | 6311753716f2e4091e77299298bc0d035a125d93 | [] | no_license | AverageSlug/CPP | bf4ed437592569cf284dfa8372d9056804a29d2a | 395e4fbc3b8d1245cb496d0ce63a12618337d2a6 | refs/heads/master | 2023-09-02T10:51:51.497544 | 2021-11-22T13:01:25 | 2021-11-22T13:01:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 300 | cpp | HumanA.cpp | #include "HumanA.hpp"
HumanA::HumanA(std::string name, Weapon &type) : _weapon(type) {
_name = name;
}
HumanA::~HumanA(void) {
}
void HumanA::attack(void) {
std::cout << _name << " attacks with his " << _weapon.getType() << std::endl;
}
void HumanA::setWeapon(Weapon &type) {
_weapon = type;
} |
9a435cd7ef1a1bee2dfc7327daeb2882742cb88c | f11eecff117c1ed16d5db61f7bf082110da1ec30 | /ListDriver.cpp | bcda73fc42d4b885ad282a28c65abd186c89d20d | [] | no_license | andocoyote/AndoList | f12630f4d3c4903d9d9089f10a6bb5eb623b4969 | 659f3232cde914c056c65677f9015b1fdb33f8f0 | refs/heads/master | 2021-01-17T15:05:53.709734 | 2016-06-23T03:14:40 | 2016-06-23T03:14:40 | 57,000,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,067 | cpp | ListDriver.cpp | /*Andrew Mikesell
10-26-01
CSS 342-C
This program is a driver for the List class. It performs no error handling
when the user is required to enter a single string, or select from the menu.
*/
#include "List.h" //include the List class
using namespace std;
int menu(); //displays the user menu, returns the menu sel... |
1a3b439aa49f873d96b2e13111a00e1959b39bb8 | 2c3f2af67a12f354cc357c87da915a924621f20a | /Greedy/mua_luong_thuc.cpp | 7ff8fe0fd397a6301136f2a24d5cd7c221f0e214 | [] | no_license | dungnguyen-art/Data-Structures-and-Algorithms | 92df0bf51bad9e4a1e1387ddd747ae2ee5ae4d3a | 268cfd7a1e55b8acecb1f920b9cc8c1e9435d8b3 | refs/heads/main | 2023-06-23T04:06:37.925373 | 2021-07-17T18:08:04 | 2021-07-17T18:08:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 169 | cpp | mua_luong_thuc.cpp | #include<bits/stdc++.h>
int main(){
int n,s,m;
cin>>n>>s>>m;
if(n<m){
cout<<"-1"<<endl;
return;
}
else{
}
} |
cfd42b178fe7d84dc3fcf23564a72e20dbc68478 | f8af71cc0b50d768866d1a6f721b7bc7f5331202 | /make/src/delimitar.cpp | 4029467ccf1fe6a65c1202acb3d73616af1f35c0 | [] | no_license | Barrilao/Metodologia-de-la-programacion | 740152ffbad1b393c0456dd3852902d10097b06d | 8eacd37b84966d403c563057fa45b93f1f73fe0f | refs/heads/master | 2021-10-22T18:12:34.336569 | 2019-03-12T12:49:40 | 2019-03-12T12:49:40 | 112,184,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | cpp | delimitar.cpp | #include "punto.h"
#include <iostream>
using namespace std;
int main()
{
int n;
Punto min, max, p;
cout << "Introduzca el numero de puntos ";
cin >> n;
cout << "Introduzca el punto 1: ";
min=LeerPunto();
max=min;
for(int i=2;i<=n;i++)
{
cout << "Introduzca el punto " << i << ": ";
p=LeerPunto();
... |
9f3853bf5ecce8765a9b10273301dabfc4a9b19c | 1e3e848be0271c605c3f90b58d6ec38c06b4f0f3 | /BallTracker/ball_information.h | f66e3e3db90b99b9dbc7fabc17b85a90756e4f33 | [] | no_license | jonapap/ball_tracker | 50c45cca42d3f7f9ece24123f67162219066e0ca | 0aff6fbce61cafb7433f5a4d0d9ee34e21e68a53 | refs/heads/master | 2022-05-27T12:54:44.874225 | 2020-04-30T13:53:16 | 2020-04-30T13:53:16 | 256,552,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 645 | h | ball_information.h | #ifndef BALL_INFORMATION_H
#define BALL_INFORMATION_H
#include "chrono"
#include "opencv2/core.hpp"
namespace balltracker {
/*
Holds information about the ball.
Please note that units represents the ball on the image.
*/
class BallInformation {
public:
BallInformation() = default;
BallInformation(cv::Point2f cent... |
d8cc71ddebf6c2ea14e3c398c7ade23fcfa135ae | 4f879879b5c1b520f676de2d4cd58d4b8b0db37c | /binary_decoder/phasespace_file_decoder.h | f262cecd8896912b160637d6e4a0ba63d125e22b | [] | no_license | ALaDyn/tools-ALaDyn | 1d816a070556471c58e73f9622e1bc05f60548cd | 6a66f3d1eb5d30789ac83bcc3b62af8da2dcf33e | refs/heads/master | 2021-08-11T23:10:47.070781 | 2021-08-06T16:21:42 | 2021-08-06T16:21:42 | 2,422,206 | 6 | 5 | null | 2021-08-06T16:21:43 | 2011-09-20T12:36:48 | C++ | UTF-8 | C++ | false | false | 586 | h | phasespace_file_decoder.h | #pragma once
#include "parameters.h"
#include "binning.h"
#include "filter.h"
#include "swap_tools.h"
class Part_v1 {
double x, y, z;
double px, py, pz;
};
class Part_v2 {
double x, y, z;
double px, py, pz;
double weight;
};
class Part_v3 {
double x, y, z;
double px, py, pz;
float weight;
int charg... |
2d62e651c2f12e4a97f4d2fa680cdd8c29f8bac3 | 45874c847c5a2fc4e89e05a7fc8ad9b63d8c4860 | /sycl/include/sycl/known_identity.hpp | 80dc784bae669cab366367b1634c0f8829128b4c | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | intel/llvm | 2f023cefec793a248d8a237267410f5e288116c5 | a3d10cf63ddbdcc23712c45afd1b6b0a2ff5b190 | refs/heads/sycl | 2023-08-24T18:53:49.800759 | 2023-08-24T17:38:35 | 2023-08-24T17:38:35 | 166,008,577 | 1,050 | 735 | NOASSERTION | 2023-09-14T20:35:07 | 2019-01-16T09:05:33 | null | UTF-8 | C++ | false | false | 17,795 | hpp | known_identity.hpp | //==----------- known_identity.hpp -----------------------------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
d1b4c16c4d6960a25f656fb1248b1c24fc5e56ce | a16a0e23e530baeea28d75b2a6cddc46b1189a12 | /src/tools/sfen2csa/Sfen2Csa.hpp | d9f787752f2e6571fa102128ee5efbf44ea2ea57 | [
"MIT"
] | permissive | sunfish-shogi/sunfish4 | 87ab6e05cf7a8cae521c16d0befc036a6c472030 | 91cff975e68ccfcb89c13d4433bf0620a83f3adb | refs/heads/master | 2022-08-29T13:19:30.929799 | 2022-07-22T17:59:22 | 2022-07-22T17:59:22 | 44,056,424 | 5 | 1 | MIT | 2022-07-22T17:59:22 | 2015-10-11T14:57:54 | C++ | UTF-8 | C++ | false | false | 281 | hpp | Sfen2Csa.hpp | /* Sfen2Csa.hpp
*
* Kubo Ryosuke
*/
#ifndef SUNFISH_TOOLS_SFEN2CSA_SFEN2CSA_HPP__
#define SUNFISH_TOOLS_SFEN2CSA_SFEN2CSA_HPP__
namespace sunfish {
class Sfen2Csa {
public:
bool run();
private:
};
} // namespace sunfish
#endif // SUNFISH_TOOLS_SFEN2CSA_SFEN2CSA_HPP__
|
8dc2873ccb181dd9399bfbf6ee91ab58abb2873a | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-connect/source/model/PropertyValidationException.cpp | d30eb4c9c5c145765bde98562f6f4a2d3002e1f2 | [
"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 | 1,965 | cpp | PropertyValidationException.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/connect/model/PropertyValidationException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace... |
1cbf8abbd92f2a545d7b7a1a7afc26dc3cd202e3 | 5d201972ebf01a252a46188d1cbd148d9395c6f3 | /libarduino_m328/src/libarduino_m328/iohardware.h | 62dbf24b507c5d4fd4348411d20f26713c9bed93 | [] | no_license | TeddyHut/SEM2019 | 498a3a17e7b1bc1aa39508617bd333f172fd9623 | 1aeca4773292056a021ebc5aab9a1580cae42f30 | refs/heads/master | 2020-04-09T02:17:23.175714 | 2020-01-07T10:12:05 | 2020-01-07T10:12:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,190 | h | iohardware.h | /*
* iohardware.h
*
* Created: 24/01/2019 4:50:39 AM
* Author: teddy
*/
#pragma once
#include <Arduino.h>
#include <libmodule/utility.h>
#include <libmodule/twislave.h>
namespace libmodule {
namespace hw {
void panic();
}
}
namespace libarduino_m328 {
class DigitalOut : public libmodule::utility::Output... |
bd84a486c558702979fff5368a7d5ecf98b3eeba | 964976d9ed6ba7948bbd44a307494e11d00ee568 | /1.3 Integer_numbers/task_7.cpp | 2aeeda0831c86ce42068211b460cc6d19c9900c2 | [] | no_license | inpicksys/stepik_yandex_Introduction_to_Programming_Cpp | cb021e20330bd195fbaff85d16f15d37c79039f7 | 417a6d01f48fa4536a946d7edef62963289ce6cf | refs/heads/master | 2023-02-05T00:11:08.681542 | 2020-12-20T14:33:58 | 2020-12-20T14:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 689 | cpp | task_7.cpp | /*
Следующее четное
На вход дается натуральное число N. Выведите следующее за ним четное число
Формат входных данных
На вход дается целое положительное число N, не превышающее 10000.
Формат выходных данных
Выведите одно целое число - ответ на задачу.
Sample Input 1:
7
Sample Output 1:
8
Sample Input 2:
8
Sampl... |
3fabfed1d11e3efeafd22eeb74198ec64f67788e | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Trigger/TrigEvent/TrigEventAthenaPool/src/TrigTauContainerCnv.h | 8baf76302a9c186c067387db3133e1217e8b96f0 | [
"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 | 970 | h | TrigTauContainerCnv.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef TRIGEVENTATHENAPOOL_TRIGTAUCONTAINER_CNV_H
#define TRIGEVENTATHENAPOOL_TRIGTAUCONTAINER_CNV_H
#include "GaudiKernel/MsgStream.h"
#include "AthenaPoolCnvSvc/T_AthenaPoolCustomCnv.h"
#include "TrigParticle/TrigTauContainer.h"
#... |
9e92822289f6eb3a25e5ca27755bf9598746dda0 | a46d23b1c03be1edf8127db532170580ae919b22 | /rtp/test/obsolete/tpjackd.cxx | a672de3cb5c7939359659985b447078880bcb5b9 | [
"BSD-2-Clause"
] | permissive | greearb/vocal-ct | 0e2935aa43d6bddf1506ad904d0cf61484724438 | 8c99a61930cc7c4887515ade518ad01022011a4e | refs/heads/master | 2023-08-19T05:26:24.583272 | 2023-08-12T00:08:06 | 2023-08-12T00:08:06 | 87,567,277 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,703 | cxx | tpjackd.cxx |
/* ====================================================================
* The Vovida Software License, Version 1.0
*
* Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following... |
c18e18301f2c6bb260ad1e08903d53fbf06e310c | d2c8d8954c54d6ed0df6af4c0888ba650e8f022b | /src/main/cpp/logging/LogConsoleSink.cpp | 78843e8306e213f739a8f0fcdf6113999474e714 | [
"BSD-3-Clause"
] | permissive | frc3512/Robot-2019 | 71ef73e7c7ed28d2fae9c5ab305a262e3c2fd242 | 376a94f138562f8af59215f5e21a41a68b3f5cd2 | refs/heads/main | 2021-10-28T01:52:50.485462 | 2021-02-02T00:11:09 | 2021-10-18T03:30:57 | 161,420,122 | 4 | 1 | NOASSERTION | 2021-07-20T23:31:30 | 2018-12-12T02:14:40 | C++ | UTF-8 | C++ | false | false | 250 | cpp | LogConsoleSink.cpp | // Copyright (c) 2014-2019 FRC Team 3512. All Rights Reserved.
#include "logging/LogConsoleSink.hpp"
#include <wpi/raw_ostream.h>
using namespace frc3512;
void LogConsoleSink::Log(LogEvent event) {
wpi::outs() << event.ToFormattedString();
}
|
88a597e29504317e077de99b72cc42e030592c55 | f4f024b16f8efde55a7f0d4c988bd1cdc09cf559 | /#1009/1009.cpp | 99edff884b6ca413d478ceaafc2d4260c941c66b | [] | no_license | Chickenbumps/BOJ | 4fdfd29d7374385cff26569e44248315d4088ef3 | c3c8c227b3998fb3da1fa9817411b975cd927fbf | refs/heads/master | 2022-05-16T15:33:08.971378 | 2022-04-30T14:52:02 | 2022-04-30T14:52:02 | 163,260,172 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 726 | cpp | 1009.cpp | #include <iostream>
#include <math.h>
using namespace std;
typedef long long ll;
int CycleCheck(ll a, ll b) {
a = a - (a - (a % 10));
if (a % 10 == 0)
return 10;
int Cycle[5] = { 0,0,0,0,0};
int index;
for (int i = 0; i < 5; i++) {
Cycle[i] = (ll)pow(a, i+1)-((ll)pow(a, i+1) -((ll)pow(a, i+1) % 10));
i... |
01f2611f3b85b59999fd1b7c898d87b2e1be242b | d0e4275244e0eba2b0c1fc2c518e04f0212e3bac | /uva/failzlai.cpp | f87785a7988dfdf9f59f081c1bd6b87e4cbcb25b | [] | no_license | IamYourAlpha/CONTEST-CODES | 0b34ba29ef7cfa725539c069bc8a1e3ba5b8e54f | e8b12e08af53fcff4bdc08cc7a42eecd5598a83d | refs/heads/master | 2021-06-08T13:00:35.511893 | 2021-02-26T07:44:45 | 2021-02-26T07:44:45 | 97,600,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | failzlai.cpp | #include<bits/stdc++.h>
using namespace std;
int main() {
int n;
int arr[2000];
string str;
scanf("%d",&n);
cin>>str;
for(int i=0; i<str.length(); i++) arr[i]= str[i]-'0';
sort(arr,arr+n);
for(int i=0; i<n; i++) cout<<abs(arr[0]-arr[i]);
}
|
7580d884f1b75c2661305eff1d82be1b3dd58006 | 1b4ed35b6945397ee577a7a6924de11e23c9cb8c | /src/FbTk/FbWindow.cc | aa1705deb1266b51df79044fc2976ac08bf3cf35 | [
"MIT"
] | permissive | HuidaeCho/fbpager | 0565a8432b3c23d8a743d47230f569754d492baf | 5a5319eef7e34c61a1abb228d4b9757fe876623d | refs/heads/master | 2021-05-08T13:32:11.366626 | 2018-02-02T18:47:35 | 2018-02-02T18:47:35 | 120,009,586 | 0 | 0 | null | 2018-02-02T17:18:45 | 2018-02-02T17:18:45 | null | UTF-8 | C++ | false | false | 14,210 | cc | FbWindow.cc | // FbWindow.cc for FbTk - fluxbox toolkit
// Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restricti... |
37c03eed396de628c2c062216adff42d14b80df2 | ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7 | /common/recipes-qin/object-tree/files/src/Object.h | ee617e1233111ff55d03f6f3f0d8a9b64f9f57ac | [] | no_license | facebook/openbmc | bef10604ced226288600f55248b7f1be9945aea4 | 32777c66a8410d767eae15baabf71c61a0bef13c | refs/heads/helium | 2023-08-17T03:13:54.729494 | 2023-08-16T23:24:18 | 2023-08-16T23:24:18 | 31,917,712 | 684 | 331 | null | 2023-07-25T21:19:08 | 2015-03-09T19:18:35 | C | UTF-8 | C++ | false | false | 9,993 | h | Object.h | /*
* Copyright 2014-present Facebook. All Rights Reserved.
*
* 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 License, or
* (at your option) any later version.
*
*... |
1249bb208389afb24dde5f6feb9b37d2e475b2ca | fb6b75c3348a384b87f8c0736c11e3846544c31c | /DxDispatch/src/model/BucketAllocator.h | 39662b789543d08642e73d944324608024a1a51a | [
"LGPL-2.1-or-later",
"MIT",
"Apache-2.0",
"GPL-3.0-only",
"LicenseRef-scancode-generic-cla"
] | permissive | microsoft/DirectML | abcf90a6ecdded088da1636567bc111c43aca3a6 | ce57292b4214b63f1aaf636a69d64e3a8b581015 | refs/heads/master | 2023-08-27T22:08:27.587128 | 2023-08-26T03:28:45 | 2023-08-26T03:28:45 | 175,103,120 | 1,405 | 222 | MIT | 2023-09-14T16:44:45 | 2019-03-12T00:08:04 | Python | UTF-8 | C++ | false | false | 4,196 | h | BucketAllocator.h | // MIT License
// Copyright (c) Microsoft Corporation
//
// NOTE: this is a modified version of StackAllocator.h from the DirectML execution provider in the onnxruntime repo (licensed under MIT):
// https://github.com/microsoft/onnxruntime/blob/8d737f977056444a307f1b7f0bcd402fba62d790/onnxruntime/core/providers/dml/Dml... |
c7e2c4511297e30d68b4eff1e9253f2eef4f1b46 | 4ecc909e7d5419b49b0c79ec8632f030a48c3465 | /winrt/test.external/CanvasBitmapTests.cpp | 0a36346a3f7c13f29f375c07bbb51e49ece2e582 | [
"Apache-2.0"
] | permissive | guyburstein/Win2D | da18d435800c4847b1cff9b810b7b3ceb3ffdc99 | b4dfc20e4d296a00f7cf14113e1705abec0e7daa | refs/heads/master | 2021-01-20T17:43:00.476081 | 2014-10-21T23:51:40 | 2014-10-21T23:51:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,245 | cpp | CanvasBitmapTests.cpp | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may
// not use these files 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 applicab... |
a1e3c1210b36c3c4b5e9e647748f407ca401f7b2 | 1a5a6f69fd3530ba286a64deefb029b83bbbdee4 | /test/theia/run_ransac.cpp | 9af797787e793feb1d9abb5b365a459eb50fc371 | [
"MIT"
] | permissive | fsobral/RAFF.jl | 8669eb20afb9729cae18c9c13062a11c4e79e1ee | 51dff3950d2126ac168ee39a2b8037483e5494f8 | refs/heads/master | 2023-06-09T11:37:02.861220 | 2021-10-15T19:55:49 | 2021-10-15T19:55:49 | 147,533,027 | 21 | 3 | MIT | 2020-06-18T18:52:14 | 2018-09-05T14:40:02 | Julia | UTF-8 | C++ | false | false | 2,441 | cpp | run_ransac.cpp | /*
g++ -std=c++11 -I/usr/include/eigen3 -I/usr/local/include/theia/libraries/vlfeat -I/usr/include/suitesparse -I/usr/local/include/theia/libraries/ -I/usr/local/include/theia/libraries/statx -I/usr/local/include/theia/libraries/optimo -I/usr/local/include/theia ransac.cpp -o ransac -ltheia -lglog
*/
#include<theia... |
56de5b6fe4bdc875bbffc20d8f4b7b578ddbf6de | c7aa213f39006d8ad92b56801be0481213de31c5 | /TMSRV/CWarTower.h | f1432b0dc35fb6d9903fe525f4627290aba142ef | [] | no_license | luis44xi/Open-7556-By-SexyCode- | 8276deed8e0a71128e09583cb02142db76a96483 | e4e6d9d5e3a8791523a0aa29ad1fb58797e142d6 | refs/heads/master | 2022-12-14T22:28:37.548160 | 2020-09-11T16:44:59 | 2020-09-11T16:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | h | CWarTower.h | #include <stdio.h>
#include "stdafx.h"
class CWarTower
{
private:
CWarTower();
public:
static void __stdcall GuildProcess(tm* timeinfo);
static void __stdcall MobKilled(int target, int conn, int PosX, int PosY);
static void __stdcall CGenerateMob(int index, int PosX, int PosY, int tmob);
static BOOL TowerAttac... |
7e1b566a485c90bd2b30f072e499baca928bb1c1 | 85cd4cea6a2f95b357bb1ec8edccc3ccfc63cd24 | /Algo++/Graph Theory/Kruskal's Algorithm for MST.cpp | 4651265ce1a7c8c8a5829ac7eebb2bb138d9535d | [] | no_license | tarunluthra123/Competitive-Programming | f55a55dcd01fcd181ccc6ddf89103a26f557f1bc | fb731bed4e2c7bb06fa01ef0a93d0bd19373cb0b | refs/heads/master | 2023-03-25T05:47:50.723518 | 2021-03-20T15:52:32 | 2021-03-20T15:52:32 | 308,401,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,035 | cpp | Kruskal's Algorithm for MST.cpp | #include <bits/stdc++.h>
using namespace std;
#define sync \
ios_base::sync_with_stdio(false); \
cin.tie(0); \
cout.tie(0);
class Edge
{
public:
int src;
int dest;
int wt;
};
class Set
{
public:
int rank;
int parent;
};
int find(Set *set... |
febf2100243802e1bfd3596ce3ec0a5a89c247ff | ee67021d9922f32b363a84c20c78c215fae59136 | /Graguation Portfolio/Graphics/DirectXSetup/DirectXClass.h | 0e9f00322be24f0ee6ecb7a85e575c88cf8ecf22 | [] | no_license | HyoJInNam/Graguation-Portfolio | f6364a6e287fe7dbaf0d065157afa23e5dd71432 | 25f909e4149792c8395bffc2e7758693ba7e8f97 | refs/heads/master | 2022-11-06T03:18:06.282549 | 2020-06-21T12:14:55 | 2020-06-21T12:14:55 | 256,984,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | h | DirectXClass.h | #pragma once
#include "AdapterReader.h"
class DirectXClass
{
public:
bool InitializeDirect(HWND hwnd, int width, int height);
void RenderDirect();
void PresentBuffer();
BOOL TurnOnCulling();
BOOL TurnOffCulling();
BOOL TurnOnFilling();
BOOL TurnOffFilling();
private:
BOOL DeviceAndSwapChain(HWND& hwnd);
BOO... |
1bb9775ab32e7cdce43ace28b9b2d525a3cf49c6 | f1aaed1e27416025659317d1f679f7b3b14d654e | /MenuMate/MenuMate/Source/Analysis/Misc/ReportManager.h | 823195ec79f1de4560aab83f9c01a210639a2207 | [] | no_license | radtek/Pos | cee37166f89a7fcac61de9febb3760d12b823ce5 | f117845e83b41d65f18a4635a98659144d66f435 | refs/heads/master | 2020-11-25T19:49:37.755286 | 2016-09-16T14:55:17 | 2016-09-16T14:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,051 | h | ReportManager.h | #ifndef ReportManagerH
#define ReportManagerH
#include <memory>
#include "ZedReport.h"
#include "MM_DBCore.h"
#include "GlobalSettings.h"
#include "XReport.h"
#include "IReportBuilder.h"
#include "ReportBuilderFactory.h"
#include "ReportEnums.h"
class ReportManager
{
public:
ReportManager();
~ReportManager();... |
1838edd1c18f0eb2b89d665129f3565990e8ff63 | e47d30e95f856d8c1e5b2cb03d6e47eed1b17507 | /view.h | d17f6f01d794d84adb46bd027add3f23a970af12 | [] | no_license | pmatern/eventview | cd9ce66437ecfe73eb2dd158de026c617ae8eafb | dea2b34fbd91dc31d0f6596f99b5acae50ba466f | refs/heads/master | 2023-06-23T14:37:37.608149 | 2019-05-31T00:32:33 | 2019-05-31T00:32:33 | 182,829,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,256 | h | view.h |
#ifndef EVENTVIEW_VIEW_H
#define EVENTVIEW_VIEW_H
#include <optional>
#include <variant>
#include "types.h"
#include "opdispatch.h"
namespace eventview {
template<std::uint32_t NumThreads>
class ViewReader {
public:
explicit ViewReader(std::shared_ptr<OpDispatch<NumThreads>> dispatch) : dispatc... |
bcb588d1cd7b9a599b61e9ceb9b018aaa076d773 | 2fe59fd4aa45df3bdcdf5fc6941e962e0d45f4c6 | /guide/guide.ino | 224ba750ec73936123f0300c8677066165506974 | [] | no_license | WillLangas/FastLEDTutorial | e59510e4776f31d6569055e9b63b3f083782e87a | bade09ff98a572ef8de4757f408904820b891f61 | refs/heads/master | 2021-05-13T15:25:02.660713 | 2019-12-25T07:22:36 | 2019-12-25T07:22:36 | 116,768,266 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531 | ino | guide.ino | #include <FastLED.h>
#define LED_PIN 1
#define NUM_LEDS 15
#define BRIGHTNESS 64
#define LED_TYPE WS2811
#define COLOR_ORDER RGB
CRGB leds[NUM_LEDS];
#define UPDATES_PER_SECOND 100
void setup() {
delay(3000);
FastLED.addLeds<LED_TYPE, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStri... |
34531560f0576d87774d4cda2d49c8f01044c4e5 | 006bcad317d2b0a447eb5cb398279f357c9eb5ff | /templates/deque begin.cpp | b3f623c38df5997b0a5f0cbd99b65fe0597f5ae5 | [] | no_license | sanuguladurgaprasad/Codes | ee0df35668418223c18307f858bffd9bbcec8251 | 20fbfb9cfba7c7be97e3591ab7a96d848d1156cc | refs/heads/master | 2021-09-01T01:04:24.728097 | 2017-12-24T01:31:01 | 2017-12-24T01:31:01 | 108,693,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | deque begin.cpp | // deque::begin
#include <iostream>
#include <deque>
using namespace std;
int main ()
{char t;
deque<int> mydeque;
deque<int>::iterator it;
for (int i=2; i<=5; i++) mydeque.push_back(i);
cout << "mydeque contains:";
it = mydeque.begin();
//cout<<mydeque.begin();
while (it != mydeque.end())
cout << "... |
9d6214cf20e83064b7325917a35c08528aaa8b01 | 9c0f61fe03048392b56c9332e057e153cf5f2d52 | /Scene.cpp | 1ca48e9ead8ea8786ac75df841d0fbb6cecd3568 | [] | no_license | 8Observer8/SinglePointEditor | 30f4a75c541ef5c6fc6184f196a29bada3f265fa | e6cfa61e4871079d085ebe20adfd4e1d6cc10108 | refs/heads/master | 2021-01-22T21:17:04.147349 | 2014-08-20T14:55:47 | 2014-08-20T14:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,244 | cpp | Scene.cpp |
#include <QOpenGLVertexArrayObject>
#include "Scene.h"
Scene::Scene( QWidget *widget ) :
QGLWidget( widget )
{
m_program = new QGLShaderProgram( this );
}
void Scene::setBackgroundColor(const Color &color)
{
GLclampf red = static_cast<GLclampf>( color.getRed() );
GLclampf green = static_... |
02653974a4d407cc613d555c22ebbbd5d2e2fef5 | 5f44b574b954a1c48053a15a7a629c2ee8ad57d9 | /Classes/LayerMainMenu.h | 80f9a00adc73c5dce8d9969f32f0dd8d0122e57a | [] | no_license | tolycui/ReversalJudge | 7e58d7dacdcb57ab59b276030cc115e1142a3c05 | 02cffeb97864da464cca6d3e8eb5712072de2bc3 | refs/heads/master | 2021-05-16T01:26:03.467315 | 2017-10-30T10:35:58 | 2017-10-30T10:35:58 | 107,066,307 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | LayerMainMenu.h | #pragma once
#include "LayerTopbarBasics.h"
#include "BottomBar.h"
class LayerMainMenu :
public LayerTopbarBasics
{
public:
LayerMainMenu();
virtual ~LayerMainMenu();
CREATE_FUNC(LayerMainMenu);
bool init();
BottomBar * getBottomBar(){ return bottomBar; }
bool Myclicked(Ref* pSender);
protected:
BottomBar *bott... |
f7299611c219a50e7c5eff3ac680312242b1573e | 533dcbdfa8f6e551007dc84d8e2c063cbd8199b3 | /List/Delete_node.cpp | 38556876bb6d4259a903e008d9e913b199d752fc | [] | no_license | hustaoyang/structure | a0f0d7120bff916d30e0ae9292e4fd4e2e555116 | 8b447561f3a556d3837ecf152b5e7ab5f266d88d | refs/heads/master | 2016-08-10T22:37:37.144674 | 2015-08-20T15:05:27 | 2015-08-20T15:05:27 | 36,045,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,663 | cpp | Delete_node.cpp | #include<iostream>
#include<stdlib.h>
using namespace std;
struct ListNode
{
int m_nKey;
ListNode* m_pNext;
};
void CreateList(ListNode ** p, int key)
{
ListNode* first_node = (ListNode*)malloc(sizeof(ListNode));
first_node->m_nKey = key;
first_node->m_pNext = NULL;
if(*p == NULL)
*p = firs... |
b62102744f4c572d531c5ab952668294b040ac39 | 4d508e0bd33dfc2134485ed19692d0c75dc05d67 | /src/V2World/Issues/IssueCategoryHelperTests.cpp | ab27fd1fb6fe56afa52331a76e08afc356d66e49 | [
"MIT"
] | permissive | ParadoxGameConverters/Vic2ToHoI4 | 4f97a00eb989d45cf7c4c460a884273aceab3a46 | 518bdc4542eb9e2f3a6f4eb02659ef4d67fabb22 | refs/heads/master | 2023-08-17T15:20:41.599432 | 2023-08-12T01:31:06 | 2023-08-12T01:31:06 | 160,988,154 | 33 | 45 | MIT | 2023-09-04T23:13:34 | 2018-12-08T23:37:24 | C++ | UTF-8 | C++ | false | false | 1,502 | cpp | IssueCategoryHelperTests.cpp | #include "external/common_items/external/googletest/googletest/include/gtest/gtest.h"
#include "src/V2World/Issues/IssueCategoryHelper.h"
#include <sstream>
TEST(Vic2World_Issues_IssueCategoryHelperTests, IssuesDefaultsToEmpty)
{
std::stringstream input;
Vic2::IssueCategoryHelper helper(input);
ASSERT_TRUE(helper... |
f21701da163d4be7086baf3b076f709ac3037749 | 7d9f2017c403d1e0c4841544564b321eb55d48d0 | /BackSwipeApp/app/src/main/cpp/internal/languageModel/marisa-bitvector.cc | fcbdb5bebfafd7299e5e92388754edbdb114172b | [] | no_license | cuiwenzhe/BackSwipe | 82b215f44241761e9b710d9ed3cf09a24c752157 | 580b5468b793944e1801f91a80afaa32a5dbc9bd | refs/heads/master | 2023-08-15T11:36:57.608775 | 2021-10-05T18:26:13 | 2021-10-05T18:30:53 | 324,816,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,917 | cc | marisa-bitvector.cc | #include "marisa-bitvector.h"
#include "../base/logging.h"
#include "marisa/io.h"
namespace keyboard {
namespace lm {
namespace louds {
using marisa::grimoire::io::Mapper;
using marisa::grimoire::io::Reader;
using marisa::grimoire::io::Writer;
MarisaBitVector::MarisaBitVector()
: bit_vec... |
7fe2d5791ccd0f43d3be7e1d2ac717bd12dd0a60 | 44ca921d6ac1d4cef54182c4f08308935d0978aa | /Siv3D_Learning/Main.cpp | 295f5ac5bb96ad6cfdc99f082fa814f59987fb5c | [] | no_license | Siiiec/Siv3D_Learning | 1b95978a874e44807e37b0806cd69f55c0b6c404 | 073c3fdde89ed4f4db7efb08be7fe19fbbdd7e87 | refs/heads/master | 2021-01-16T19:28:16.282867 | 2017-09-04T02:56:52 | 2017-09-04T02:56:52 | 100,176,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,476 | cpp | Main.cpp | #include <Siv3D.hpp>
#include <boost/format.hpp>
#include <Eigen/Core>
#include <Eigen/QR>
#include <Eigen/Geometry>
//using namespace Eigen;
//using namespace boost;
//double Cost(const matrix<double>& X, const matrix<double>& theta, const matrix<double>& y)
//{
// const auto m {y.size1()};
// const matrix<d... |
7f1465d9dfd53f7ad1d914df46f79619110f75d4 | da06402bb3393cc3f4fb5bb1f5e33456bd6dbc02 | /c++Training_harman/Training/CPP/VirtualFunctions/Design/E73.cpp | a5113ab34eed58dda8f67eed2c74396aba510b55 | [] | no_license | sanjeev1102/cpp_program | 03254f4b56d1415617eb46ead3be3e4c8673abd5 | 8aaa89d0c87c876546f9d39d5ded5f5f12981635 | refs/heads/master | 2020-11-28T02:52:12.694831 | 2019-12-24T11:29:44 | 2019-12-24T11:29:44 | 229,685,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,107 | cpp | E73.cpp | #include<iostream>
#include<vector>
using namespace std;
namespace Ex73
{
struct Static {} STATIC;
//**********************************************************
struct Emp
{
static vector<Emp*> m_vec; //prototypes
protected:
Emp(Static) //static constructor
{
m_vec.push_back(this);
... |
419c42eb9a05189bbd7ec9dc6e1afbde92a7c9a5 | 12e41ade40648a68388b1994e31950195391e765 | /intro_c++/8_2_exercise_TransArray.cpp | 4539e68b6e6c6fc06f67dc66e129e729cdea5a8f | [] | no_license | ycl818/Cplusplus | 88d1fcda196fc8b0949d244641c1906fd2971446 | 02dc53b50fb70f9bbf4b1b25d45ed64b27b62694 | refs/heads/main | 2023-07-13T12:04:33.844325 | 2021-08-28T23:19:45 | 2021-08-28T23:19:45 | 317,267,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | 8_2_exercise_TransArray.cpp | #include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
int a[3][3];
int b[3][3];
int main() {
srand(time(NULL));
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
a[i][j] = rand() % 9 + 1;
cout << a[i][j] << " ";
}
cout << endl;
}
cout << "After transform ... |
fb96f4ff04ddb431938343d924a40a41eb14aa40 | f3784a79939e4e76be7f74f67725c8805f352339 | /C++/pipecutting.cpp | 323087baa97c6be7873196168dec9c34483813ce | [] | no_license | saggarwal98/Practice | 3bd10ececb12c9c5e36d3b6d8a150de4806d0432 | 4bbe7d82e189b6a7184ccf0c3cfb7461ac3b4680 | refs/heads/master | 2023-01-22T12:15:47.468227 | 2020-12-02T17:15:31 | 2020-12-02T17:15:31 | 285,211,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | cpp | pipecutting.cpp | #include<iostream>
#include<iterator>
#include<vector>
using namespace std;
int checkCondition(int a,int b,int B){
//int len1=0,len2=0,len3=0;
cout<<a<<":"<<b<<endl;
if(a==b){
return 0;
}
else if(a>=B){
return 1;
}
else if((b-a)>=B){
return 1;
}
else if((100-b... |
8a8e45bde87f58e6e87b1d294592877b90c8a7c1 | fda1a5488ee22ea8f6a3dea8f5b1d84b3bb693ff | /Tools.h | 5c39c6877c44a46ddcf6d6d0e1902e459467cb7c | [] | no_license | shultays/pigment | 1e7c430503d9fcad1d60576bf4adcf29fe538ed2 | 62b67215bbb88f94689d917ed0147fe2eea69bac | refs/heads/master | 2016-09-16T01:55:58.515767 | 2016-02-10T01:19:29 | 2016-02-10T01:19:29 | 8,525,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,161 | h | Tools.h | #ifndef TOOLS_H
#define TOOLS_H
#include <d3d9.h>
#include <d3dx9.h>
#include <stdio.h>
#include "DirectInput.h"
#include <fstream>
using namespace std;
#define PI 3.14159265358979f
#define PId2 1.570796326794895f
#define testvar 123131313121
#define PFILE0(str) fprintf(Tools::f, str)
#define PFILE1(str,x) fprintf(... |
fd10470f56258052415e74e606d78c5bba17b7ef | be748220086ccafc2f1ea24e1259d20a2a8f7716 | /include/mad/utils/ui/features/zoomfeature.hpp | 0cc79a1eb941ad0863c59a7024185254808e6e97 | [] | no_license | MaDcz/utils | b2967cab5abe1c446b823ed5012fba1241aaa630 | 0a7aacd29fc4d95d08523bb98aee2a33bcb1c67c | refs/heads/master | 2021-08-08T17:38:59.819108 | 2020-05-30T09:25:44 | 2020-05-30T09:25:44 | 184,934,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | hpp | zoomfeature.hpp | #pragma once
#include "feature.hpp"
#include <QObject>
#include <QPoint>
#include <QPointer>
#include <QWidgetAction>
#include <memory>
#include <optional>
class QIntValidator;
class QLineEdit;
class QWidgetAction;
namespace mad { namespace utils { namespace ui {
class ZoomFeature : public Feature
{
public:
cla... |
96a19bf13f745191bf63730459c5a064fce7a6cc | 67cff220c93120ac56191101b21e1d16d04ef70c | /include/nbl/ext/RadeonRays/RadeonRays.h | c17f73d7c44beeb3931b4020aabe23d709a4be67 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Przemog1/Nabla | ad271f723cb52ba2f0c5767dd37dc010335e76d7 | 4ba1fb2f3fe57dbdcd8360ce9e484dd443895781 | refs/heads/master | 2023-06-10T11:03:32.621767 | 2021-05-08T19:44:12 | 2021-05-08T19:44:12 | 294,165,513 | 0 | 0 | Apache-2.0 | 2021-04-27T21:35:48 | 2020-09-09T16:15:07 | C++ | UTF-8 | C++ | false | false | 6,559 | h | RadeonRays.h | // Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#ifndef __NBL_EXT_RADEON_RAYS_H_INCLUDED__
#define __NBL_EXT_RADEON_RAYS_H_INCLUDED__
#include "nabla.h"
#define RR_STATIC_LIBRARY
... |
80f4de18b679875dd6875629556869d4372d9bcb | 32965ef4360884f522a4140225efffc45608e040 | /Data Structures/week2_priority_queues_and_disjoint_sets/job_queue.cpp | 4c2f26afb81097ff4ba140b0f2d3ee38bac30888 | [] | no_license | eklavaya2208/practice-ml-cp | f1ee217a7126f2bc09ca866a41fd6023224c5f9b | 369e636d1726b922063a49f0b9463134603ef179 | refs/heads/master | 2022-12-03T14:44:09.736756 | 2020-08-29T06:05:28 | 2020-08-29T06:05:28 | 291,211,678 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,251 | cpp | job_queue.cpp | #include <iostream>
#include <queue>
#include <algorithm>
using namespace std;
struct thread{
long long int th;
long long int st=0;
thread(long long int th, long long int st)
:th(th),st(st)
{
}
};
struct comparethread{
bool operator()(thread const& t1,thread const& t2){
... |
a6be94466d4458b49f0e5d02042eb9277be40b56 | 68cf71d51d1ec73432eac938d61300b2705bceb2 | /src/verilog/vexpr/VExprConstantPrimaryInterface.h | 244c5e3b507906fa409c66928ee8870c21489af9 | [] | no_license | ciklon-z/v4abs | ed72583475d1a818b830572b074b2fcf938b2a6d | 6ef899eafc1f7df98d7d7cf9bf454e907be5a898 | refs/heads/master | 2021-01-14T08:32:08.419868 | 2014-09-15T08:27:56 | 2014-09-15T08:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 347 | h | VExprConstantPrimaryInterface.h | #ifndef VEXPR_CONSTANT_PRIMARY_INTERFACE_H
#define VEXPR_CONSTANT_PRIMARY_INTERFACE_H
#include "nstl/shared_ptr/SharedPtr.h"
class VExprConstantPrimaryInterface {
public:
virtual ~VExprConstantPrimaryInterface();
virtual std::string getString() const;
virtual size_t getSize() const;
};
#endif // VEXPR_CO... |
9de2124004bf9e6b3ddfa3fac1ae2ca9fc0e7bd6 | 36802b7d2e5e03b9366ea06705c8761ef775d1e6 | /src/game.cc | f70a89f4b6a88e76d9a4ab4345a13b4068bc3369 | [] | no_license | HiddenTesla/fivecard | 5ccb018c4c28fd9c3016d85b303fc723758362e8 | 91c4a5d2330f365e49d930c23519aff3a09668ea | refs/heads/master | 2020-12-24T09:30:42.841793 | 2017-01-02T04:48:48 | 2017-01-02T04:48:48 | 73,288,748 | 0 | 0 | null | 2016-11-09T14:15:21 | 2016-11-09T13:58:30 | C++ | UTF-8 | C++ | false | false | 8,553 | cc | game.cc | #include "game.hh"
#include <string>
#include <cstring>
#include <cstdio>
#include <sys/time.h>
int randomBetween(int lower, int upper);
Player::Player():
mRoundBet(0),
mBalance(INITIAL_BALANCE),
mNumCards(0)
{
}
int Player::drawCard(std::vector<int>& deck)
{
if (mNumCards >= SIZE_OF_FULLHAN... |
915858e7606e02c670444b77e67ebaef1c4df68e | 99f63e18bde39256a98dad947e1431d03561998b | /textdisplay.cc | f9437e873b57207ee9f82c003bfffa6d2b5ba05a | [] | no_license | printfCalvin/biquadirs | a9b3b0eb40ca2fdcffe289304a499835bf38feec | b74f046fad2ed18434b26209563d65936a22ad73 | refs/heads/master | 2022-11-16T04:23:49.134217 | 2020-06-26T05:30:53 | 2020-06-26T05:30:53 | 275,079,397 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,377 | cc | textdisplay.cc | #include <iostream>
#include <vector>
#include <iomanip>
#include "textdisplay.h"
using namespace std;
const int row = 18;
const int col = 11;
TextDisplay::TextDisplay(){
theDisplay=vector<vector<char>>(row, vector<char>(col,' '));
}
void TextDisplay::notify(Subject &whoNotified){
Info i = whoNotified.getInf... |
718b89555a407a5a48551a6dfe4b1c91a5c42609 | 959bf8f673bbe26fa5356b66d0d5173c24aee23e | /1/src/lexical/utf8/combined_byte.cpp | cadd469650e5a00ab0bb62e06474d90fc3afed86 | [] | no_license | bjadamson/psychic-archer | c21a7a113e3aadbdad357990fbb28189ea2ec515 | d208c36cd2452d19699d249b4b46b4f51fb2f424 | refs/heads/master | 2021-01-23T13:55:18.384586 | 2013-03-17T21:54:48 | 2013-03-17T21:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,625 | cpp | combined_byte.cpp | /*
* Copyright (c) 2013 Benjamin Adamson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publ... |
3c0a7a8af108d858b0637bc86e0b1a20227a92c5 | db04ecf258aef8a187823b8e47f4a1ae908e5897 | /Cplus/Maximum69Number.cpp | 08618696ab266ef6d5b14ae477b3374905d61021 | [
"MIT"
] | permissive | JumHorn/leetcode | 9612a26e531ceae7f25e2a749600632da6882075 | abf145686dcfac860b0f6b26a04e3edd133b238c | refs/heads/master | 2023-08-03T21:12:13.945602 | 2023-07-30T07:00:50 | 2023-07-30T07:00:50 | 74,735,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 258 | cpp | Maximum69Number.cpp |
class Solution
{
public:
int maximum69Number(int num)
{
int val = 0, base = 1, res = num;
while (num != 0)
{
if (num % 10 == 6)
res = (num + 3) * base + val;
val = val + num % 10 * base;
num /= 10;
base *= 10;
}
return res;
}
}; |
320d57b0cea8b0c0fe59a6396de47c3cd2d2a6f9 | 44ca75ef68243f144603740d60912043fabd562e | /thomas/ThomasEngine/src/math/Random.cpp | a36ae0085e4e287a0ba8a8a9227f391bdda1856e | [
"MIT"
] | permissive | Bojzen-I-Mitten/Stort-spelprojekt | 5830dc4158181c7d3a409656b5434180c5cd682c | 01654cebf2b5b4e31730c1d168693ad54c8e7a25 | refs/heads/master | 2021-07-14T02:45:55.020218 | 2019-01-24T10:42:51 | 2019-01-24T10:42:51 | 147,340,602 | 0 | 1 | null | 2019-04-14T22:19:39 | 2018-09-04T12:11:42 | C++ | UTF-8 | C++ | false | false | 763 | cpp | Random.cpp |
#pragma unmanaged
#include <stdlib.h> /* srand, rand */
#include <math.h>
#pragma managed
#include "Random.h"
namespace ThomasEngine
{
void Random::InitState(int seed)
{
srand(seed);
}
float Random::Range(float min, float max)
{
return min + static_cast <float> (rand()) / (static_cast <float> (RAND_MAX... |
9c063a4cec7f62d1b115e61ada5832fe95e0ede4 | 4d650ad96f830ffd2a1b635ddfa3bc4bbead7de5 | /第八次作业/1002.cpp | 7ed040bdff780918b0c63b7f8fbab228ffb4053f | [] | no_license | TD21forever/goodgoodstudy_acm | 94abda2aebd0c3a081840d647c902b086c3934da | 7ffbaed6fa3f60d9fc971f92c49737099f8a828c | refs/heads/master | 2020-03-29T06:32:20.087535 | 2019-08-29T12:28:15 | 2019-08-29T12:28:15 | 149,629,337 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,135 | cpp | 1002.cpp | /*
* @Author: TD21forever
* @Date: 2018-12-05 18:41:40
* @Last Modified by: TD21forever
* @Last Modified time: 2018-12-05 19:14:49
*/
#include<iostream>
#include<string.h>
using namespace std;
int waste[505] = {};
int value[505] = {};
int dp[10005] = {};
int main(int argc, char const *argv[])
{
int... |
f1914ca9095330337ba7072ac1ecd7a8d0ea27da | abc7c85fc10d7016c0072877c05e47c127e65305 | /filter.h | 1ca2be029ea6e16682e905e9b3032747b72210b5 | [] | no_license | moonwalker300/lyxDB | db2c74c018267279b47d9ed4667ed215501af778 | 4cb4e44a288a5a3d63989e282ce28013e6f9f6f8 | refs/heads/master | 2021-01-12T09:47:02.791809 | 2016-12-31T07:55:50 | 2016-12-31T07:55:50 | 76,251,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 269 | h | filter.h | #pragma once
#include<string>
enum FilterType {
IntFilter, StringFilter
};
enum FilterOperator {
FEQ, FLE, FLT, FGE, FGT, FIsNull, FZERO
};
class Filter {
public:
int columnNumber;
FilterType type;
FilterOperator op;
int ival;
std::string sval;
}; |
b48a9d09d7d0d63db1e823de19c4d203a3ef18ff | 7779c68e3ce723e0061025203db8f236bd0dd99f | /linearsolver/solver.cpp | dbb0bce9c7d1b737380cf65dfcf00627772646c1 | [] | no_license | Luohaothu/linearsolver | 31e9e35dc80cdb27c619b2ff5f0f0180edbcf562 | eb87ab2d55baf15f38cd5f52f801729b3b1bd79a | refs/heads/master | 2016-09-10T16:48:00.848414 | 2015-07-17T08:19:23 | 2015-07-17T08:19:23 | 38,425,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,880 | cpp | solver.cpp | #include <stdio.h>
#include <mpi.h>
#include "parameters.h"
#include "solver_work.h"
int main(int argc, char *argv[])
{
MPI_Init(&argc, &argv);
int rank, size;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
//for serial condition, use standalone function to solve
//else start scatter... |
5a1fc4a38f9cc922848e8eba9d53c43784d18235 | 35288f26000d89106d759d960931a3e931eceafd | /Test.cpp | 17568d8044862ecd88548be0182cab17723f58fb | [] | no_license | dvir8/EX5-CPPB | d6e339c2816c1dc44b991dc88e420c4ba77b8e66 | f32bae3a1207f662561417849457920d2ac26482 | refs/heads/main | 2023-05-14T21:46:51.430452 | 2021-06-09T16:12:29 | 2021-06-09T16:12:29 | 375,415,812 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,774 | cpp | Test.cpp | #include "BinaryTree.hpp"
#include "doctest.h"
using namespace ariel;
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <string>
#include <vector>
using namespace std;
const int max_rand = 1000;
const int div_fa... |
58bcdd09bc522be6a9ab5da857dd13e9fda20895 | 1586b71d095fa84fa6f968bdaa3449e802358a42 | /win32build/include/plpsdk/DTXTHR.INL | bca96152c9a449b99df3a9d401d8a97e9bf4e6fc | [] | no_license | chennqqi/DeZendX | 1e2e608c4d092f7f4b872fed4c3af872f6932ebe | 73c99883e79e84f8972e797d5025b9c6ccae769a | refs/heads/master | 2020-08-06T20:20:08.444169 | 2018-07-02T04:06:12 | 2018-07-02T04:06:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | inl | DTXTHR.INL | //////
// DTXTHR.inl - Inline header file for the DTXThread, DTXSynchronization and DTXProcess classes
// (c)Copyright InnerX Communications, Inc. 1997-1998
//////
inline DTX_VOID DTXCurrentThread::setStackSize( DTX_UINT nSize )
{
nStack = nSize ;
}
inline DTX_VOID DTXCurrentThread::setTID( DTX_THREADID nTID )
{
... |
dfa7accd661c52f698fd5255519738c3c49ab31d | bc1c82115b5b003b2dc609a4017f6de311baf6b4 | /DO_manip_log/DO_manip0318.h | 4539b80593977b9f525dd63f1b127e902bb4ee62 | [
"Apache-2.0"
] | permissive | HuangJingGitHub/PracMakePert_C-Cpp | 3d06cbe7a74384d5778462bfff14f025c142c691 | 9163c5c26f5ad94cc5f128f52482f276696c3ea2 | refs/heads/master | 2023-08-31T09:33:06.900701 | 2023-08-30T15:57:46 | 2023-08-30T15:57:46 | 137,732,878 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,835 | h | DO_manip0318.h | #include <iostream>
#include <math.h>
#include <stdlib.h>
#include <opencv2/video/tracking.hpp>
#include <opencv2/core.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include "opencv2/imgcodecs.hpp"
#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/Eigenvalu... |
9bd4ff9a617c4c85c01d82da4a479ece5ace77b8 | a977ab09124355810ea55cefd5a39a268df74abe | /var1/var1/ProperFraction.h | fb4898ee14aec27e13c009d6fc8060ca5acbaa0a | [] | no_license | barpacha/KR-Baranchik-Mamatov | 266e8bd2cb9a7bac64df7e6e652c029e1fc61e13 | a57440b7c63aca602ce702bd6c249b376917a5c3 | refs/heads/master | 2022-07-01T14:42:35.276909 | 2020-05-15T17:56:04 | 2020-05-15T17:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 997 | h | ProperFraction.h | #include <iostream>
#pragma once
class ProperFraction
{
public:
ProperFraction();
ProperFraction(int integer, int numerator, int denominator);
ProperFraction(const ProperFraction& obj);
~ProperFraction();
ProperFraction operator+(ProperFraction &obj2);
ProperFraction operator-(ProperFraction &obj2);
ProperFracti... |
9d87780826883d715bcb685b6166b0e68641b442 | 504c2d594447e88e1563e2771f62be7dcafe1849 | /include/steeriously/VectorMath.hpp | ae53f632ac25072911649e8b495972e543123759 | [
"Zlib"
] | permissive | pushbuttonreceivecode/Steeriously | d008b344021f007992ffff1ca1099a9647b2b521 | 7b8d376e4dc6314449aef95fa13fe3e4ef3808dc | refs/heads/master | 2021-01-24T17:52:38.476923 | 2020-01-27T21:17:44 | 2020-01-27T21:17:44 | 113,793,158 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,471 | hpp | VectorMath.hpp | #ifndef VECTORMATH_HPP
#define VECTORMATH_HPP
#include <steeriously/SphereObstacle.hpp>
#include <steeriously/Vector2.hpp>
namespace steer //steeriously namespace
{
/**
\class VectorMath
\brief Stateless VectorMath class utilizing static methods to manipulate vectors. <br/>Copies of Vector2 are cheap, therefore al... |
343081e7f2f2e4d203311ddf1d1c30b39499c60e | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/ListInferenceRecommendationsJobStepsResult.h | 718116c4397afcd899f05ae53e6648d2f6337c07 | [
"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,119 | h | ListInferenceRecommendationsJobStepsResult.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sagemaker/model/InferenceRecom... |
03bc4705a0fb999e8c3a11b681a178be5d9bbb81 | 0ab72b7740337ec0bcfec102aa7c740ce3e60ca3 | /include/data/lattice/bond-library.h | b1de0cc1d4ad18f3b7d4a7602124880359da6868 | [] | no_license | junwang-nju/mysimulator | 1d1af4ad7ddbe114433ebdadd92de8bb3a45c04f | 9c99970173ce87c249d2a2ca6e6df3a29dfc9b86 | refs/heads/master | 2021-01-10T21:43:01.198526 | 2012-12-15T23:22:56 | 2012-12-15T23:22:56 | 3,367,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,127 | h | bond-library.h |
#ifndef _Bond_Library_H_
#define _Bond_Library_H_
#include "data/name/lattice-type.h"
#include "data/basic/property-list.h"
#include "data/basic/file-input.h"
#include "operation/basic/vector-io.h"
namespace std {
template <unsigned int LatticeType, unsigned int LatticeDim>
struct BondLib {
static const uns... |
fa00975708e070935ff5c56560e34d1cbba8cf34 | 73682284cb087b276faa3d94919bb8a51222b0b2 | /Las cartas del Dr. Lira (Adaptacion)/Main.cpp | 826ff9fd848525d24fbc25c5860a91d4ecc55c84 | [] | no_license | TheIcySpark/Omegaup | ccdd37c68598aba446f241dba1cf0de1650fb0a9 | 386dcef31ef0742a859759b0440c301ac4358e22 | refs/heads/master | 2022-09-20T20:39:19.727476 | 2020-05-29T01:13:40 | 2020-05-29T01:13:40 | 265,682,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 445 | cpp | Main.cpp | #include <bits/stdc++.h>
using namespace std;
int i,n,carta,m0,m1,cont0,cont1,menor;
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);
cin>>n;
cont0=0; cont1=0;
m0=0; m1=1;
for(i=1;i<=n;i++){
cin>>carta;
if(carta!=m0) cont0++;
if(carta!=m1) cont1++;
m0++; m1++;
... |
3279a82fafa3d0048bfbb879bafcdb7e2e398517 | d4ee2aef05b3f0621fbe2943d266c4b783810084 | /pro3.cpp | 20dc9d844cd69277f80428e8574f5e1fcc179346 | [] | no_license | Ming-J/ProjectEuler | b99aaaed78c841f511851d75e3a0020bfc5bd4ab | e791a57cd33004949f1204def8f7884525a62496 | refs/heads/master | 2020-04-23T07:25:00.892306 | 2014-05-24T22:56:05 | 2014-05-24T22:56:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | pro3.cpp | #include <iostream>
#include <math.h>
using namespace std;
/*Question 3 What is the largest prime factor of the number 600851475143
using mathod like sieve of Eratosthenes to check if the number is prime
and see if it's able to have a zero mod
*/
int main(){
long number=600851475143;
cout<<number<<endl;
lon... |
fae242a3821f1315789bfb85d58316430f767318 | f79dec3c4033ca3cbb55d8a51a748cc7b8b6fbab | /inputmethod/qt5-uim/patches/patch-qt4_immodule_plugin.cpp | 0a0a03fb2d3fed52087c6c31c2e1e731cf1c3478 | [] | no_license | jsonn/pkgsrc | fb34c4a6a2d350e8e415f3c4955d4989fcd86881 | c1514b5f4a3726d90e30aa16b0c209adbc276d17 | refs/heads/trunk | 2021-01-24T09:10:01.038867 | 2017-07-07T15:49:43 | 2017-07-07T15:49:43 | 2,095,004 | 106 | 47 | null | 2016-09-19T09:26:01 | 2011-07-23T23:49:04 | Makefile | UTF-8 | C++ | false | false | 290 | cpp | patch-qt4_immodule_plugin.cpp | $NetBSD: patch-qt4_immodule_plugin.cpp,v 1.1 2013/12/15 19:38:33 joerg Exp $
--- qt4/immodule/plugin.cpp.orig 2013-12-15 17:58:04.000000000 +0000
+++ qt4/immodule/plugin.cpp
@@ -33,6 +33,7 @@
*/
#include "plugin.h"
+#include <clocale>
#include <QtCore/QStringList>
#ifdef Q_WS_X11
|
be856bb78a6e5e16f86b987ee461c529b771e202 | 3238b0496a7f18368df3b7f01f0607dc59196433 | /src/Simulator/FluidSimulator.cpp | ecd74ee52d7d81ac0669c4be629099e0025a4fc4 | [
"Apache-2.0"
] | permissive | zeliard/MCServer | 7d0715ab0867cb7145ca1ec122ff7cfcb4f1f2f5 | 2f185ed476fffdde069b07069ef3b8fa75aab23c | refs/heads/master | 2020-12-03T05:20:32.180433 | 2015-05-19T20:27:28 | 2015-05-19T20:27:28 | 35,934,203 | 4 | 2 | null | 2015-05-20T07:57:08 | 2015-05-20T07:57:08 | null | UTF-8 | C++ | false | false | 4,116 | cpp | FluidSimulator.cpp | #include "Globals.h"
#include "FluidSimulator.h"
#include "../World.h"
cFluidSimulator::cFluidSimulator(cWorld & a_World, BLOCKTYPE a_Fluid, BLOCKTYPE a_StationaryFluid) :
super(a_World),
m_FluidBlock(a_Fluid),
m_StationaryFluidBlock(a_StationaryFluid)
{
}
bool cFluidSimulator::IsAllowedBlock(BLOCKTYPE a_... |
d98e0d4ecc8d271624dd33a7a8d5f10ac24853ae | 53556aa77553a697db5b7a05fd35e41bdd869000 | /Chapter 3 - March 2021/Day 03/Bulb Switcher.cpp | 9a18866f0326be4fa89f1f9f0a61645ad0545c4a | [] | no_license | Shree987/WinterOfCP | abace1707609475d96f9dedaef3e4a1ad2d801e4 | 66c989100bba0de22cf25035fe25c26172df948b | refs/heads/master | 2023-04-25T01:19:01.719978 | 2021-05-07T18:04:49 | 2021-05-07T18:04:49 | 298,263,911 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | Bulb Switcher.cpp | /*
Author : Shreeraksha R Aithal
Problem name : Bulb Switcher
Problem link : https://leetcode.com/problems/bulb-switcher/
Difficulty : Medium
Tags : BrainTeaser, Math
*/
class Solution {
public:
int bulbSwitch(int n) {
return sqrt(n);
}
}; |
f65869d0396dc83232bffb5636f20d1743b60a47 | e07e25bc29baf02b56f7397f7a174cbc2cfc5b6d | /src/cpp/bst-invert/bst.cpp | 225fd62a9ee5d9d09d85525381b98890b8e111ee | [] | no_license | ANARCYPHER/coding-interview-solutions | a12848be333457725a45fe723551723776ef1d8f | 68452ab2bf7de438c3e4986dcd44502b1c0b69f6 | refs/heads/master | 2023-02-08T09:58:00.174509 | 2019-08-29T19:16:39 | 2019-08-29T19:16:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,069 | cpp | bst.cpp | /*
* Invert a tree. It is like if you were looking at it in the mirror.
*
* Time complexity: O(N), where N is the number of nodes in the tree.
* Space complexity: O(logN).
*
* Explanation: to do that just change left and right pointers at each call
* and then call the function again recursively.
*/
#include ... |
4bdc549ae18274405b9cc173e28d5bd8a68a3777 | 0254f2ee4fde7362762a32cf8e59612271c63c87 | /src/plugins/schedule/generalschedule.cpp | 60fcce97bbd0a933ccc9f4a4f43fae9692fbe98e | [] | no_license | alexey-zayats/athletic | 9a97f7f221bd3671df43ac65642df2916ba42a0b | 0c65552d32a7bf581b03f0311e6764aaa60e1690 | refs/heads/master | 2020-05-22T01:31:14.186306 | 2017-07-10T12:06:58 | 2017-07-10T12:06:58 | 64,463,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 617 | cpp | generalschedule.cpp | #include "generalschedule.h"
#include "dayselector.h"
#include "schedulesportstable.h"
#include <QVBoxLayout>
namespace Schedule
{
GeneralSchedule::GeneralSchedule(QWidget *parent)
: QWidget(parent),
m_daySelector(0),
m_table(0)
{
setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.