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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cf293ba31e745be02f82f8e23d9f002bf7919984 | 3400bd103952373e2f8715f72734440e5e894734 | /2099.cpp | bbe8ae33e4e639cce0a4da387a99358bd8099746 | [] | no_license | immortalmin/ZOJ | 264f0ad94c054043eba0bf90c87b7419e67cb29e | acf5ee8e684ee1db41f68409b19fd1d0570007f4 | refs/heads/master | 2020-05-31T21:36:02.643235 | 2019-06-11T05:43:15 | 2019-06-11T05:43:15 | 190,501,369 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 422 | cpp | 2099.cpp | #include<iostream>
#include<fstream>
using namespace std;
int main()
{
// freopen("1.txt","r",stdin);
int a,b;
while(cin>>a>>b)
{
if(a==0&&b==0) break;
int maxx=a,maxy=b,minx=a,miny=b;
while(cin>>a>>b)
{
if(a==0&&b==0) break;
if(a>maxx) maxx=a;
if(a<minx) minx=a;
if(b>maxy) maxy=b... |
494f2c003820a7265e1a67e983f483eb78711918 | 1a1cd225bf6994db41f2b3abc34b55abd6cb635d | /RayTracer/RayTracer/Sphere.cpp | f38b13003d98ab3c41675b72055a6f2945aa98f2 | [] | no_license | femtiolapp/TNCG15-RayTracer | f1b59ba1eb29c3eb0a2c53084c6197b7d4b28269 | 5dc15faad7f6e1471e44d207739e36a6e2a67e1c | refs/heads/master | 2023-04-14T07:18:35.666133 | 2021-04-26T14:39:20 | 2021-04-26T14:39:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27 | cpp | Sphere.cpp | #include "Header/Sphere.h"
|
1df9bf18ab7bbfd8f2902a5bdb5f615ed89e561b | 1e0f34e2bef3cbf335c3edf68276d8d5a6c659ce | /Classes/Complex.CPP | 98d11c6b0c20a6cba201f22b2d4ce3033171b6af | [] | no_license | Abhisooraj/CPP-Programming | 1e962543b9221ea76c85a7251bc8ad86f612a0e0 | 15eda39f9c42e7e564080a61143c1b1ae44964f9 | refs/heads/master | 2022-06-20T09:37:13.066427 | 2020-05-14T18:49:49 | 2020-05-14T18:49:49 | 261,101,196 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 818 | cpp | Complex.CPP | /*
A way to define class in CPP
A Class is similar as structure with single difference "In class by default all members are private where in structure all the members are public".
Classes
A program that can print complex variables
*/
#include<iostream>
using namespace std;
/**
* @Abhishek does this
*/... |
2c926c88904832095657b92b66089aa009baab0f | 359452e023cd85c27da4d6d05c979970affa1e89 | /Study/datastructures/graph/vertexStack.cpp | d9e0ac9c0cfc95f96403b095c1be52af2ccf8833 | [] | no_license | nickMingi/nickhopper | 99c9eed5cb5d4183b7638f9db99d794df8f48730 | 097b406f3c6a4627f5c0a8416649d7d7ebc998a6 | refs/heads/master | 2021-01-23T02:54:51.307219 | 2019-10-21T21:20:22 | 2019-10-21T21:20:22 | 86,035,301 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,691 | cpp | vertexStack.cpp | #include <iostream>
#include "./vertex.h"
using namespace std;
struct Stack
{
int count;
Node* top;
};
void initStack(Stack& s);
void deleteStack(Stack& s);
bool pushStack(Stack& s, Vertex* dataIn);
bool popStack(Stack& s, Vertex*& dataOut);
bool stackTop(Stack& s, Vertex*& dataOut);
bool emptyStack(Stack& s)... |
5985b870a6600b7591a85540cefab05dc2bd4f7a | 2a8a290eb1d0703a7c7b21429b07870c5ffa868e | /Include/ecrInput/InputServiceActionBase.h | c52f9aba81ba0d79ebd7f3562097988f33bd4d99 | [] | no_license | sigmaco/gamebryo-v32 | b935d737b773497bf9e663887e326db4eca81885 | 0709c2570e21f6bb06a9382f9e1aa524070f3751 | refs/heads/master | 2023-03-31T13:56:37.844472 | 2021-04-17T02:30:46 | 2021-04-17T02:30:46 | 198,067,949 | 4 | 4 | null | 2021-04-17T02:30:47 | 2019-07-21T14:39:54 | C++ | UTF-8 | C++ | false | false | 8,181 | h | InputServiceActionBase.h | // EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Emergent Game Technologies and may not
// be copied or disclosed except in accordance with the terms of that
// agreement.
//
// Copyright (c) 1996-... |
d11dc5203e37de5f6215b7e407b4e97ffef2573a | 6f3acff2a8078676abd9b11739b720e7c7d0e7d8 | /5_8.cpp | b0d0f5ee685665d135219b4af6e6ee79d59ccb17 | [] | no_license | qinlianfang/QINLIANFANG | a183e61a45a3121550e75dd3723005ba74a8a316 | c9b31bc7c16142909f689b21222c8afbcadd451d | refs/heads/master | 2020-04-28T16:22:24.867652 | 2019-07-23T06:18:09 | 2019-07-23T06:18:09 | 175,408,205 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 820 | cpp | 5_8.cpp | //5—8整数变换问题
#include <stdio.h>
int a,b;
int k,found;
int *p;
int f(int i)
{
return 3*i;
}
int g(int i)
{
return i/2;
}
int changed(int m,int n)
{
int i,s;
if(m>k)return 0;
for(i=0;i<2;i++)
{
s=n;
if(i==0)s=g(s);
else s=f(s);
p[m]=i;
if(s==b||changed(m+1,s))
{
found=1;
return 1;
}
}
return 0... |
8c748541d6a9b612d67db993ad4049d11ea984ba | 11c180a69ddbfba2c9383c986b6700ab965ea5b6 | /CharacterTypes/Sniper.cpp | d32c574e1ee8b5f2dbd5a7aaec3b5893ca6f4dce | [] | no_license | DeVonFire27/DTW_Desolate | 34f29ce2ec91e29675e17d9fd018228260a650ec | b56e40883b086b2ab96ecad83613edbcf1e8da61 | refs/heads/master | 2021-01-10T18:02:58.060496 | 2016-03-19T23:18:26 | 2016-03-19T23:18:26 | 54,290,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,070 | cpp | Sniper.cpp | /***************************************************************
| File: Sniper.cpp
| Author: Michael Mozdzierz
| Date: 04/11/2014
|
***************************************************************/
#include "globals.h"
#include "Sniper.h"
#include "../Abilities/Laser.h"
#include "../Messages/CreateAbility... |
3b533f740eaaa278b105fbbf5d71936d2b591813 | 7799779fd7da169e87354f5f76ab4de45e187e1a | /SystemCinderApp.h | beb67132f0e2cdd32a7b4f4b6ff557d92060b516 | [] | no_license | Danielacoco/SystemCinder | 9964b2b2fa28005e688983538fec04a36b35af6d | 0103c8ede858671cc593a0aefbf978ed6449bfc4 | refs/heads/master | 2020-04-02T20:52:52.387593 | 2016-08-13T01:20:31 | 2016-08-13T01:20:31 | 65,318,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,059 | h | SystemCinderApp.h | /*SYSTEMCINDERAPP is the core of the application, this class has the methods the user can use to create its demo and it also has the private methods we will use to
show the simulator or render the images to the projectors
Cinders website: https://libcinder.org/
It is a easy to use library with a responsive community... |
0ebe1c63de69051fa9a6df3dfb744f6843ab34d5 | 0dda8cef707f38f5058c3503666cbe3bf6ce8c57 | /CODEFORCES/519A_A_and_B_and_Chess.cpp | ca5623ca988dbf75bb5fd032f9122f4ad102c45e | [] | no_license | Yuessiah/Destiny_Record | 4b1ea05be13fa8e78b55bc95f8ee9a1b682108f2 | 69beb5486d2048e43fb5943c96c093f77e7133af | refs/heads/master | 2022-10-09T07:05:04.820318 | 2022-10-07T01:50:58 | 2022-10-07T01:50:58 | 44,083,491 | 0 | 1 | null | 2017-05-04T12:50:35 | 2015-10-12T04:08:17 | C++ | UTF-8 | C++ | false | false | 542 | cpp | 519A_A_and_B_and_Chess.cpp | #include<bits/stdc++.h>
using namespace std;
char p;
int main()
{
int d = 0;
for(int i = 0; i < 8; i++)
for(int j = 0; j < 8; j++) {
scanf(" %c", &p);
if(p == 'q') d -= 9;
if(p == 'r') d -= 5;
if(p == 'b') d -= 3;
if(p == 'n') d -= 3;
if(p == 'p') d -= 1;
if(p == 'Q')... |
50387e2f67c552da2bc49d1d0630ee4581b8652d | f282c97c73627c1ebf8b0b7a0459b3b1371f2fd5 | /catkin_ws/src/ball_chaser/src/process_image.cpp | 5e1235d440cdf5dc348e8a42a47d6d793598da73 | [] | no_license | AnkushKansal/WhiteBallChaseRobo | bc573e3ae24a1d34f0717788f5f81f417801e70b | e91a3f6358e44b13ffdbb20d61ceb5ea71f9d660 | refs/heads/master | 2020-08-08T20:17:59.771231 | 2019-10-09T18:26:14 | 2019-10-09T18:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,913 | cpp | process_image.cpp | #include "ros/ros.h"
#include "ball_chaser/DriveToTarget.h"
#include <sensor_msgs/Image.h>
// Define a global client that can request services
ros::ServiceClient client;
// This function calls the command_robot service to drive the robot in the specified direction
void drive_robot(float lin_x, float ang_z)
{
ROS_... |
0eaa5f36fc82f38adedb686a993bbcc03695452b | 9b1639af63f7fc82f0e488b452dee0cb7ae22a3b | /SolarisNAVScanner/cmdline/filefind.cpp | c68ac15b6549ab6ff9be7bf54cf0ec6896c630d6 | [] | no_license | ExpLife/Norton_AntiVirus_SourceCode | af7cd446efb2f3a10bba04db8e7438092c7299c0 | b90225233fa7930d2ef7922080ed975b7abfae8c | refs/heads/master | 2017-12-19T09:15:25.150463 | 2016-10-03T02:33:34 | 2016-10-03T02:33:34 | 76,859,815 | 2 | 4 | null | 2016-12-19T12:21:02 | 2016-12-19T12:21:01 | null | UTF-8 | C++ | false | false | 15,354 | cpp | filefind.cpp | // Copyright 1996 Symantec, Peter Norton Product Group
//************************************************************************
//
// $Header: S:/CMDLINE/VCS/FILEFIND.CPv 1.3 12 Aug 1996 18:46:52 DCHI $
//
// Description:
// Functions for working with the file storage hierarchy.
//
// Contains:
// ... |
13b185a343d4b7f7c3bd5caf69ad475904e94b55 | 9751e8be0c8bd24b42d4d89c4ecb2bd1daec3a13 | /Subway_project/Subway_project/App.cpp | 19154c510c77e5d78d47589fd118d189beb63696 | [] | no_license | Seonghuun/subway_project | 52dee7fbcb6c0e99d47ff04e33c7b5057e203971 | c78af04f4c1e6010720a3b9775f6e4ce63905cf4 | refs/heads/master | 2023-03-16T14:37:11.013870 | 2021-03-10T02:32:44 | 2021-03-10T02:32:44 | 263,297,702 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 6,159 | cpp | App.cpp | #include "App.h"
#include <iostream>
using namespace std;
void App::run()
{
this->setStationList();
this->setIdList();
this->setCardList();
while (1)
{
cout << "\n\t--------------------------------------";
cout << '\n' << "\t원하시는 서비스를 선택해주세요." << '\n' << '\n';
cout << "\t1. 1회용 교통 카드 발급" << ... |
7fa73168061618887d226a26dfeaf8aadba76a9f | c999c4e5b0a071c08aa3787e619bbffae71f3a52 | /Renderer/source/Renderer/VertexArray.cpp | 33176f37fa4ac9737d7a153e2750412b8a27e736 | [] | no_license | DavidtKate/MiniSolarSystem | f08fbbf7a06710504dab6ed0d810d655fff84bd3 | 42c4b9a7e179871c9826b9c4a69c20507e20d6f3 | refs/heads/main | 2023-03-18T22:57:10.847801 | 2021-03-07T14:24:37 | 2021-03-07T14:24:37 | 320,049,739 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,115 | cpp | VertexArray.cpp | #include "repch.h"
#include "Renderer/VertexArray.h"
#include "Renderer/VertexBuffer.h"
#include "Renderer/VertexAttribLayout.h"
namespace re
{
VertexArray::VertexArray()
{
GLCheckError(glGenVertexArrays(1, &m_rendererID));
}
VertexArray::~VertexArray()
{
GLCheckError(glDeleteVertexArrays(1, &m_rendererID))... |
1c50dea05d383c96ff0545623f09e76da737ce1f | 0672b58b6669b9e892c87bef00d1777c98f3fd46 | /Project FINAL 2/Project2/arquivo.cpp | f68559c91dd81826e4e2e6ddf653677de7b9b9d0 | [] | no_license | KenjiSato97/projeto-2 | 4a91e8e01fe222b0deb8eab0a4aa2a77f46ee784 | b36e4f42da57211f5d1a94a15093e52cc053a7f0 | refs/heads/master | 2020-03-18T08:33:17.151335 | 2018-06-04T03:41:55 | 2018-06-04T03:41:55 | 134,516,895 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,735 | cpp | arquivo.cpp | #include "arquivo.h"
#include <fstream>
#include <string>
using namespace std;
arquivo::arquivo()
{
}
arquivo::~arquivo()
{
}
void arquivo::getO_Arquivo(double N)
{
ofstream arq;
if (N == 1)
{
arq.open("cassa.txt",ios::app);
}
if (N == 2)
{
arq.open("apartamento.txt");
}
... |
d01fbd01e19a4717da7db333d29c72d9d38f9db6 | 24cba75fc942f7f5abcc80bceaab294f3e910162 | /json_convertor/addline.cpp | 8d08215e301ac803b255a87818c7fcd2cbc78bbb | [] | no_license | rohitshakya/Code-Beautifier-Minifier-and-Formatter | 9ef6876496874f1384ddab0da20db84b5564897a | 91bba263a76a9145a0c565c6798d96b862c0d532 | refs/heads/master | 2023-02-23T19:07:27.775036 | 2021-02-01T12:03:09 | 2021-02-01T12:03:09 | 281,673,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 349 | cpp | addline.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
fstream f;
string filename;
char ch;
filename="city21.json";
f.open(filename.c_str());
vector<string> v;
ofstream myfile;
myfile.open ("city31.json");
while(f>>ch)
{
myfile <<ch;
if(ch==',')
{
char m='"';
myfile <<m;
}
}
myfile.clos... |
02bfaeda22a2762655c67c709f903660b61c8237 | 73d1d64ec50c7e6ccf87c73130b8917c67009cab | /src/Pegasus/ProviderManager2/JMPI/JMPIProviderModule.h | 814c02a522381027e81f891190c83f82e69bbf94 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | deleisha/neopegasus | 21a960a5664f2074d9ab176e80b023eba2bebe79 | f051727e7fa587e97d3d75f6f3865b27c7c68377 | refs/heads/master | 2021-01-18T22:32:39.786216 | 2017-08-01T15:38:38 | 2017-08-01T15:38:38 | 38,531,497 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,461 | h | JMPIProviderModule.h | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... |
040824a880eaf13a938278feebb139626c488f34 | 3d43053d2ca9e7b8883050f49eb7c28e296fa884 | /MPA4.cpp | 2c167212cb5c9ae3c67b5efae9423534fdbc0a4f | [] | no_license | johnaaron658/mazeSolver | b40c840fa575b444fc177b03ad9cb337ef91e9fc | 08b01c9702a75225c2e56c0d11b50b433243b4eb | refs/heads/master | 2020-06-20T06:27:37.395424 | 2016-11-27T09:07:51 | 2016-11-27T09:07:51 | 74,877,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,334 | cpp | MPA4.cpp | #include <iostream>
#include <stack>
#include <queue>
#include <vector>
#include <string>
#include <fstream>
using namespace std;
enum block { wall, origin, space, goal, path };
class square{
public:
block type;
bool visited;
int x,y;
string c;
square();
square(char c,int,int);
};
//problems: change c when ty... |
175bcc69c21fc22a3026d56e4bc0b556dc2b98f0 | da790975b96d76158ca2e722753ca84ab44af9e3 | /task8/main.cpp | 4e2c01513caf67ff3cc7db4bb8fb869be464c809 | [] | no_license | elladqa/cpplessons | e549a6bebc0aeb33d5a0b9a3105314c8b274cf02 | aa62dc1b7602cac80ab7e68b303c9c1337e92e5a | refs/heads/master | 2022-12-12T10:09:20.746232 | 2020-08-08T16:34:48 | 2020-08-08T16:34:48 | 269,474,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 286 | cpp | main.cpp | #include <iostream>
int main()
{
std::string letters;
std::getline(std::cin,letters);
... for (int i = 0; i < letters.length(); ++i)
{
char l = letters[i];
if (letters [i] != ' ')
{
std::cout << l;
}
}
return 0;
}
|
d151ddebdd435393a35577c55e1a68c4afe0c087 | 6c2b31724e30da475f4157e90f2ce9dda2e1b556 | /storage/cache.cpp | 4ab12131849f238522cbe2276bbc5565c38b735a | [
"BSD-3-Clause"
] | permissive | CESNET/ipfixprobe | 24c42d47803ea72044829ef3dd70075d15ab1970 | 5dc15091614015cc2b66811f1d4c08bfbe3b9525 | refs/heads/master | 2023-08-23T04:51:32.251220 | 2023-08-08T09:28:19 | 2023-08-08T09:28:19 | 108,995,508 | 31 | 13 | BSD-3-Clause | 2023-09-14T14:37:57 | 2017-10-31T12:55:06 | C++ | UTF-8 | C++ | false | false | 16,335 | cpp | cache.cpp | /**
* \file cache.cpp
* \brief "NewHashTable" flow cache
* \author Martin Zadnik <zadnik@cesnet.cz>
* \author Vaclav Bartos <bartos@cesnet.cz>
* \author Jiri Havranek <havranek@cesnet.cz>
* \date 2014
* \date 2015
* \date 2016
*/
/*
* Copyright (C) 2014-2016 CESNET
*
* LICENSE TERMS
*
* Redistribution and... |
f5020ba8ab8f7ceb4f4fbc9d687d2bd1012c4adf | b74b7c4288d49cb7b0bb7247c8b611c625ab6126 | /Project/Project/Particle.cpp | c0de969b93e1782f23508687cc39af29592fc9a6 | [] | no_license | maxluzius/BA | fdeca5ba9a6ce7a2d1f9943cb75884e906c40927 | e491896f3c6481507585b9e127b08e51fa28b819 | refs/heads/master | 2016-09-01T22:51:38.633290 | 2014-11-23T18:25:41 | 2014-11-23T18:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,515 | cpp | Particle.cpp | #include "particle.h"
#include "glm/gtc/matrix_transform.hpp"
#include <Windows.h>
vector<cv::Point3f> cameraV, newCameraV;
particle::particle()
{
dim = 3;
nParticles = 20;
}
void particle::setMaxRange(float x, float y, float z){
xRange = x; // Vor/zurück "Z-Achse" der Kamera
yRange = y; // Höhe... |
70be7929822330d7efa97734fffa70a9e7f09af8 | 663f36cfff3bfaf9ad64bba430e648b0dadc0f99 | /platform/gucefMT/include/gucefMT_CSemaphore.h | 71ec3327c1149b4ef2359946ce86ed14f91ad6a9 | [
"Apache-2.0"
] | permissive | LiberatorUSA/GUCEF | b579a530ac40478e8d92d8c1688dce71634ec004 | 2f24399949bc2b2eb20b3f445100dd3e141fe6d5 | refs/heads/master | 2023-09-03T18:05:25.190918 | 2023-09-02T17:23:59 | 2023-09-02T17:23:59 | 24,012,676 | 9 | 15 | Apache-2.0 | 2021-07-04T04:53:42 | 2014-09-14T03:30:46 | C++ | UTF-8 | C++ | false | false | 6,010 | h | gucefMT_CSemaphore.h | /*
* gucefMT: GUCEF module providing multithreading solutions
*
* Copyright (C) 1998 - 2020. Dinand Vanvelzen
*
* 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
*
* ht... |
290772693ad8f6aca8b77a93bbd9809fee6f9daf | 9040e73542635e5fe405411f63d398c478245d9a | /local.ino | 30eea5762e3f514b4ce6ad440f747df5abe29e5f | [] | no_license | ajaygalagali/Automation-of-Plant-Watering | bd0494bc89acbca6e9ffc450708a57722f4d062c | 789ab3969a290f3f10ece82ca29557276b5f4ade | refs/heads/master | 2023-06-30T12:00:14.645014 | 2021-08-04T06:12:15 | 2021-08-04T06:12:15 | 389,714,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,516 | ino | local.ino |
// ma: Soil Moisture Sensor - A Variables
const int MOISTURE_SENSOR_A_PORT = A1;
int maRawValue = 0;
int maPercentage = 0;
// mb: Soil Moisture Sensor - B Variables
const int MOISTURE_SENSOR_B_PORT = A2; // Port Number
int mbRawValue = 0;
int mbPercentage = 0;
const int MOISTURE_SENSOR_MAX = 630; // Dry 500, Air:6... |
73c919d6816d1d0622df102c7b2028e15495355d | c8ee531a51c49f765d6bc92409ce50d82663d31e | /Code/Libs/Async/Scheduler.hpp | e66d523a34517c042079ef08f3c8a12342395af6 | [
"Zlib"
] | permissive | NotKyon/Tenshi | 8dcfdb0a7fdd80d2e40ef092af26984ab042a488 | 9bd298c6ef4e6ae446a866c2918e15b4ab22f9e7 | refs/heads/master | 2021-01-17T16:40:08.688678 | 2017-05-05T08:26:57 | 2017-05-05T08:26:57 | 63,018,850 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 519 | hpp | Scheduler.hpp | #pragma once
#ifndef AX_ASYNC_SCHEDULER_VERSION
# define AX_ASYNC_SCHEDULER_VERSION 4
#endif
#if AX_ASYNC_SCHEDULER_VERSION < 1 || AX_ASYNC_SCHEDULER_VERSION > 4
# error Unknown scheduler version
#endif
#if AX_ASYNC_SCHEDULER_VERSION == 1
# include "Schedulers/Scheduler01.hpp"
#elif AX_ASYNC_SCHEDULER_VERSION == 2
#... |
c1a9703d5045ec703855e7acd9a6e4406e687d57 | 5bfa9475d7d3518bb0c1d81126d3dad703fa0e80 | /UnMap.cpp | 928b8a6a03283d632d948b69fd3010088a29c1a4 | [] | no_license | VictorFromChoback/hash | af003e0b8a64dc36cde8423b534f71835ae99dc2 | 5aa1e6e1288d78937f9a4f1ff7bb261a086165d8 | refs/heads/master | 2023-06-12T09:33:46.740136 | 2021-07-04T17:07:18 | 2021-07-04T17:07:18 | 258,861,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,776 | cpp | UnMap.cpp | #include "ListAndAlloc.h"
#include <utility>
#include <iterator>
template<typename T, typename U>
std::ostream& operator<<(std::ostream& out, const std::pair<T, U>& p) {
out << p.first << ' ' << p.second;
return out;
}
template<
typename Key,
typename Value,
typename Hash = std::hash<Key>,
ty... |
e705e8e412f0e34d00b342e557705266dfe2672a | 6691555a8b42af145d3f321a509e228c43f066d7 | /AdaptiveHuffman_Decode/main.cpp | 5e834e1006fc76234e5227d5c4469760ca294b5a | [] | no_license | AhmedElbadry/AdaptiveHuffmanCoding | b9293fa9f2530105d2384abc509649618eb28341 | 41fdfa7e140baf33ef292f571477e07171e344fd | refs/heads/master | 2020-03-13T18:04:50.097181 | 2018-04-27T01:37:03 | 2018-04-27T01:37:03 | 131,227,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,966 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int m = 26;
int e, r;
unordered_map<char, int> exists, order;
string input, theSet = "abcdefghijklmnopqrstuvwxyz", decoded;
struct node {
int weight = 0;
int nodeNumber;
char c = ' ';
node *parent = NULL;
node *left = NULL;
... |
36bb816a8390b28c656e4fa88a6f48ac60127f4c | 2e48c3103df3571dde50923a76894f38304046f9 | /src/ctp_trade/ctp_trade_handler.cpp | 5fbc9f658a8b2271675a9fe530dcfa2960168969 | [] | no_license | FrankXMX/ctp | b0a40a7f7a3ce39d196fa37750d59b14a0dbbb6a | f1280bebbd0de95f041c7fa4f097b1d337bde196 | refs/heads/master | 2020-12-14T18:00:45.273950 | 2020-02-15T10:32:31 | 2020-02-15T10:32:31 | 234,832,918 | 6 | 1 | null | null | null | null | GB18030 | C++ | false | false | 312,200 | cpp | ctp_trade_handler.cpp | #include "ctp_trade_handler.h"
void ctp_trade_handle::OnFrontConnected()
{
std::cout << "OnFrontConnected" << std::endl;
Task task = Task();
task.task_name = ONFRONTCONNECTED;
this->_task_queue.push(task);
};
void ctp_trade_handle::OnFrontDisconnected(int nReason)
{
Task task = Task();
task.ta... |
c4c882293c416cb8ca21301d562191dba00aee2b | 0417720a0c8e977a7aeddfe047422c408deaee24 | /src/imaging/ossimRLevelFilter.cpp | d04649721daedd2250b00af7f99d1812493c712a | [
"MIT"
] | permissive | ossimlabs/ossim | e093899a1e001cf8db16fb6da121ec174a7bc6ff | 3eda6223501b5d1c566e91261b832bc24975cf32 | refs/heads/dev | 2023-06-21T21:54:22.889489 | 2023-06-15T23:33:36 | 2023-06-15T23:33:36 | 41,825,646 | 300 | 161 | MIT | 2023-08-29T20:15:07 | 2015-09-02T20:20:52 | C++ | UTF-8 | C++ | false | false | 7,880 | cpp | ossimRLevelFilter.cpp | //*******************************************************************
// Copyright (C) 2000 ImageLinks Inc.
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: Garrett Potts
//
//*************************************************************************
// $Id: ossi... |
6d6a3d6e638173609bcd9dd88d247193961f1652 | 2d978d6a23763d194e594f0c067fc52092f5c486 | /Win32/CefSharp/Utils.h | f7e06cbb71476abe586eaf4640b46732f41a0886 | [] | no_license | WindowsTermKit/TermKit | 08ce90aed222e9261f1132d5d243d4cf3ab9242b | 414a36452fac78e2553265c2b43be05dd7a61656 | refs/heads/master | 2021-01-17T21:36:24.528259 | 2011-06-04T02:59:28 | 2011-06-04T02:59:28 | 1,808,466 | 25 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 312 | h | Utils.h | #include "stdafx.h"
#pragma once
using namespace System;
namespace CefSharp
{
String^ convertToString(const cef_string_t& cefStr);
String^ convertToString(const CefString& cefStr);
CefString convertFromString(String^ str);
void assignFromString(cef_string_t& cefStrT, String^ str);
} |
f2af1252c484d25bdaa13d63f060b0e2df8beba5 | ce690903b0cad896ea15642460c1d14c8ec4250e | /fimora9/Filmora9-Win/FPropertyPanel/VideoPanel/FVideoPanel.cpp | aa4a2ddca8d8a6b75f9a0efc646497bd53ffab39 | [] | no_license | LuckyKingSSS/demo | a572e280979a019246e6d51cb7c6bfa947829a5c | db4f55389d4ed2d3ada29083116654e2107e333e | refs/heads/master | 2021-07-05T22:09:17.065287 | 2017-09-28T05:51:51 | 2017-09-28T05:51:51 | 105,107,036 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 8,956 | cpp | FVideoPanel.cpp | #include "stdafx.h"
#include "FVideoPanel.h"
#include "inc_FProject/FNLETimeline.h"
#include "inc_CommonLib/externalapi.h"
#include "FPropertySlider.h"
#include "FVideoPanelMgr.h"
#include "FAdvanceVedioDlg.h"
#include <QVBoxLayout>
FVideoPanel::FVideoPanel(QWidget *parent)
: FPropertyPanel(parent)
{
m_pPanelMgr = ne... |
7a65e844d3e5a2009f6d16ee41d33e3f52771848 | e20d6ac36bfc1233b5f3774237ed7b2369e03467 | /cpp_05/ex01/Form.hpp | 56a30a92f4fe6d319b79a7cb6b3ad4c70e0c5b9c | [] | no_license | Medhrs101/CPP_42 | a9f9a746ebbf82892e79fbf80f89168f7f342b94 | eec0561cdfc693313c3a2e8ad4450f37c49687e0 | refs/heads/main | 2023-08-06T05:24:47.219525 | 2021-09-27T10:11:02 | 2021-09-27T10:11:02 | 403,364,503 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,930 | hpp | Form.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Form.hpp :+: :+: :+: ... |
b5c57bab3b17cf90e4452f26ad3de6d79ed2d748 | 384727dd548c6cc7bc46d2f006f3f8cbed7f7fe4 | /kernel/src/main.cpp | a630f31528aaac6a97a6b326496a35fb17612495 | [] | no_license | vi117/TorexOS | a1da9c02f0e14b19a1bea1f02d55ca62532e0f16 | c739d1f13401e9365412438c166e71d80bf45250 | refs/heads/master | 2020-07-15T04:23:10.533521 | 2019-09-13T05:01:24 | 2019-09-13T05:01:24 | 205,477,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,107 | cpp | main.cpp | #include <vga/vgaout.h>
#include <cpp_constructor.h>
#include <memory/memscan.h>
#include <arch/mminit.h>
#include <memory/mm.h>
#include <pic8259/pic8259.h>
#include <arch/interrupt.h>
#include <drivers/ps2/keyboard.h>
#include <keyboard/scancode.hpp>
#include <intrins.h>
#include <acpi/rsdt.h>
#inclu... |
65ed136eb771fcb69fe9bccf86ec491cd40b16c9 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /baidu/Paddle/paddle/gserver/gradientmachines/NeuralNetwork.h | 06c679a63cc79b68b9fd27dfb64dfa9add8a1078 | [
"Apache-2.0"
] | permissive | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 5,343 | h | NeuralNetwork.h | /* Copyright (c) 2016 Baidu, Inc. All Rights Reserve.
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 ... |
f9d54434f5300c4b916c42651f5f78d69bec40e3 | 5fdd476476fbaf3b6ea859691c3afcd17eab5001 | /MORNING/С++/Map/Map/main.cpp | 2bb23fbed14fb27d9f14fc142a7128e6a75dbfbd | [] | no_license | itstepP21014/PirozhnikDZ | 9c9e854a2a7cf757016161de982227e5fafcc6d8 | 94f52c304923bd6d2f47531592368135ab2c2541 | refs/heads/master | 2021-01-23T19:13:23.408395 | 2016-11-19T09:41:15 | 2016-11-19T09:41:15 | 27,079,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | main.cpp | #include <string>
#include "Unordered_Map.h"
#include "Hash_Map.h"
#include <iostream>
using namespace std;
int main() {
/*
Unordered_Map<string, float> people;
people["Anna"] = 1.7f;
people["Julia"] = 1.8f;
people["Hovard"] = 2.0f;
people.show();
*/
Hash_Map<string, string> pats(3);
pats["cat"] = "Tom";... |
0c48943a457b547e65d6e2b8301ce7e939300fe2 | a5f5283abf4dec1584e0fa4465f212db8b72a82b | /GPU_SupportVectorMachine_Unmanaged/GPU_SupportVectorMachine_Unmanaged/SearchScheme.cpp | 026783abe915840a1d3b990bf488031fce6dbee5 | [] | no_license | nagyistoce/thesis-gpgpu-svm-computeshader | d4e636f32c0f5064c97cea08cc92d7f8ba8b47a3 | 4c1e115a57d55d118e1616f2d55f4860d8d39f97 | refs/heads/master | 2020-06-05T04:05:08.136384 | 2012-04-02T09:12:08 | 2012-04-02T09:12:08 | 32,892,551 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,734 | cpp | SearchScheme.cpp | #include "stdafx.h"
#include "SearchScheme.h"
#include "StartAlgorithmMessage.h"
namespace SVM_Framework{
SearchScheme::SearchScheme(MainFrameworkPtr framework):m_stop(false),m_framework(framework){
}
void SearchScheme::run(){
m_stop = false;
runProcess();
AlgorithmDataPackPtr data = Algorit... |
d7bf2035b5666726dd1abf431366255037cc11dd | 3496574af8468023785eb0159660c9e5bdacc359 | /cpp/examples/euler_test.cpp | b69a5c6a0771042037e04eb3adda3b54a79c4f9c | [
"Apache-2.0"
] | permissive | majabedi/memilio | afdd098dd64923017b068b6c3375992422c08b3c | 54d59ce395d529dbbd782c89abb9756b9721ecf6 | refs/heads/main | 2023-09-01T06:03:31.033904 | 2021-10-12T10:22:50 | 2021-10-12T10:22:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,373 | cpp | euler_test.cpp | /*
* Copyright (C) 2020-2021 German Aerospace Center (DLR-SC)
*
* Authors: Daniel Abele, Martin J. Kuehn
*
* Contact: Martin J. Kuehn <Martin.Kuehn@DLR.de>
*
* 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 ... |
03788fa08a26dca84daef9726c33bbde1be92838 | 41c190aebf66c5a3f28cf12bc407462e96d4d4b2 | /code/UA18_Main/dash.cpp | eed28e0e9e6f78fb71c5812589ea26b247fe0685 | [] | no_license | UAlbertaFSAE2018/UA18_Datalogger | 8e2394d6f74f8e00ff6793aa14d941ff45479ce8 | 9a2ed09eff291fce29a185b6605994dc0b87ac2a | refs/heads/master | 2021-04-06T20:20:11.009293 | 2018-08-22T05:43:00 | 2018-08-22T05:43:00 | 125,427,067 | 0 | 0 | null | 2018-08-22T05:43:01 | 2018-03-15T21:16:43 | C++ | UTF-8 | C++ | false | false | 4,062 | cpp | dash.cpp | #include <Adafruit_NeoPixel.h>
#include <Arduino.h>
#include "dash.h"
//based on Lightdot 8x8 font
static const bool gearNumbers[6][64] = {{
1, 1, 1, 0, 0, 1, 1, 1,
1, 1, 1, 1, 0, 1, 1, 1,
1, 1, 1, 1, 0, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, ... |
39e907a35b38b1106936d3012bef611ad2ea5043 | 350d2bb75bef7b66d810616b3d84e83ed01d4b0a | /src/huffman_processing.cpp | 114f1e7db755ef266d4af46d3b1e8ba994da1ff9 | [] | no_license | iGaryGu/huffman_coding | 1d62a3240e7c234ffb443d6592ebacb4a64e2e8d | a014a9dabff994b3e079881e8f310a5347a6bb97 | refs/heads/master | 2020-06-04T16:14:47.775856 | 2019-06-18T16:33:14 | 2019-06-18T16:33:14 | 192,098,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,871 | cpp | huffman_processing.cpp | #include "huffman_processing.h"
void huffman_processing::init(priority_queue&& pq) {
mMin = pq;
mhead = nullptr;
}
void huffman_processing::generateHuffman() {
int index = 1;
int size = mMin.mPQ.size() - 1;
int end = mMin.mPQ.size() - 1;
Item first, second;
while(size >= 2) {
first... |
c69f51367f351133ea8305abf1120901d981a003 | 9d050551a6894d7a6c370e560f5de9f875c16053 | /DecisionMakingState.cpp | dfeaf0f3788b944d493a21fbff151f084da99dae | [] | no_license | JackDobie/AI-Assignment | 50b696adf21c51c5f72d56ee1cd5da4f06af332d | 342ea25c04c1ee4b135357233ea118a9ad9a02b0 | refs/heads/main | 2023-06-11T03:44:54.183992 | 2021-06-30T15:24:49 | 2021-06-30T15:24:49 | 370,300,641 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,098 | cpp | DecisionMakingState.cpp | #include "DecisionMakingState.h"
// used to count how many vehicles have decisionmakingstate
// static and added to when a new vehicle uses this state, then taken from on exit.
static int carsWithThis = 0;
DecisionMakingState::DecisionMakingState(Vehicle* v) : State(v)
{
_distanceToHitNode = _distanceToHitNodeDefaul... |
025ec21a7c587f76ce2aa3d1009057246db891b9 | 225054b146ae06028f6bf65029d9f0a10e447a7f | /Count_Friends.cpp | 7da7b19483f4c28c1294eb58c82f78aaf98d6218 | [] | no_license | niteshcse14/hackerearth | e15820229154f49abe5eab87780851af753588b7 | 252408226f4e75af999b835ab6f52c1058d0d201 | refs/heads/master | 2020-03-29T13:49:03.225644 | 2018-12-04T07:59:35 | 2018-12-04T07:59:35 | 149,983,748 | 2 | 1 | null | 2018-12-04T07:59:36 | 2018-09-23T12:47:18 | C++ | UTF-8 | C++ | false | false | 997 | cpp | Count_Friends.cpp | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 5;
typedef struct subset {
int parent;
int rank;
} subset;
subset subsets[maxn];
int n, q, a, b;
int find(int i) {
if (subsets[i].parent != i) {
subsets[i].parent = find(subsets[i].parent);
}
return subsets[i].parent;
}
void Unio... |
d0608241d0429ee83272958ff7144e1ab44a36a8 | df512d3250dd5319aefb5d61105c9d151dbfe222 | /BitesMathEngine/BComplex32Array.h | 298102dfc5617dd24ed531c262d77116b9b1ed40 | [] | no_license | HilalNazli/BMathEngine | 5e230e5ee1856f5340aae9eacefdd3a14fbe6ea8 | db526310ceb02e3e458acb5dc643c0a7124b5bfa | refs/heads/master | 2021-01-10T21:34:03.988175 | 2015-01-27T19:56:53 | 2015-01-27T19:56:53 | 29,931,757 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | h | BComplex32Array.h | //
// BComplex32Array.h
// BitesMathEngine
//
// Created by Hilal Özdemir on 18/07/14.
// Copyright (c) 2014 Hilal Özdemir. All rights reserved.
//
#ifndef __BitesMathEngine__BComplex32Array__
#define __BitesMathEngine__BComplex32Array__
#include "BComplex.h"
#include "BArray.h"
class BComplex32Array:public BArr... |
27cac29d068305a2909ec4d4125d2bcf2cb021f1 | 9f48878caa37ac5f2ccf938fc476efa47c89c644 | /tests/Unit/Domain/Test_MinimumGridSpacing.cpp | 531176c2420367954df948b68ce65b2be0e945af | [
"MIT"
] | permissive | sxs-collaboration/spectre | 34f7733ab4c75dbca2f432028145fed110c9ef24 | 96f573cf158201f712da2bfb3378edf497a35a0d | refs/heads/develop | 2023-08-19T11:18:18.465609 | 2023-08-19T04:24:25 | 2023-08-19T04:24:25 | 87,570,510 | 149 | 190 | NOASSERTION | 2023-09-14T20:10:35 | 2017-04-07T17:28:20 | C++ | UTF-8 | C++ | false | false | 3,827 | cpp | Test_MinimumGridSpacing.cpp | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Framework/TestingFramework.hpp"
#include <cmath>
#include <cstddef>
#include "DataStructures/DataVector.hpp" // IWYU pragma: keep
#include "DataStructures/Index.hpp"
#include "DataStructures/IndexIterator.hpp"
#include "DataStructures/M... |
6dfd93394318963136967265945d5e1ea4424b33 | 2472d06c0d59e06930f3ddef9cb118a1cd9067c0 | /main.cpp | e4ab0ba40f5dbd4a6bbf6fe8dee31118048c9f26 | [] | no_license | M162/design-pattern | 4fd905f42a3f563a73bce629029c62976285a99e | 9873d6df8eb93b0d67f03a3d243286c4fc8be07e | refs/heads/master | 2021-06-10T05:33:40.362176 | 2016-12-14T09:07:11 | 2016-12-14T09:07:11 | 72,429,364 | 0 | 0 | null | 2016-12-14T09:07:11 | 2016-10-31T11:15:33 | C++ | UTF-8 | C++ | false | false | 6,516 | cpp | main.cpp | //
// main.cpp
// design patten-observer
//
// Created by 程之远 on 2016/11/20.
// Copyright © 2016年 程之远. All rights reserved.
//
#include <iostream>
#include <list>
#include <algorithm>
#include <string>
using namespace std;
class object{
public:
virtual bool getChanged(){return false;};
virtual void upda... |
2625f0c8784d7d877132aaef1ea4daba0fd9a54d | 51a58bcf0dc5436e20241180efa7476bfd1937a9 | /MSH/MeshQualityVolume.h | 7f883f5cb62144418d6dfe344c30dc682905e8f4 | [] | no_license | ChaofanChen/ogs5_bhe | 63b6f016f76f8d793efb69eb90efb78069d7dfcb | 18db624140f64631a9652e9bff5c7f8083201b8c | refs/heads/master | 2020-03-12T15:22:10.125612 | 2018-12-14T11:29:29 | 2018-12-14T11:29:29 | 130,688,198 | 0 | 2 | null | 2018-06-12T22:58:55 | 2018-04-23T11:47:05 | C++ | UTF-8 | C++ | false | false | 374 | h | MeshQualityVolume.h | /*
* Created on: Mar 3, 2011
* Author: TF
*/
#ifndef MESHQUALITYVOLUME_H_
#define MESHQUALITYVOLUME_H_
#include "MeshQualityChecker.h"
namespace MeshLib
{
class MeshQualityVolume : public MeshQualityChecker
{
public:
MeshQualityVolume(CFEMesh const* const mesh);
virtual ~MeshQualityVolume() {}
virtual v... |
c79fbfcf5f022112a0de454fbdd783601e1e5b75 | 70f10979b6cf4c424b923506f8591e188d9f78e3 | /educational-round-45/A/main.cpp | 95615c00160d7aace9db03db7cf90ef4472f1fdc | [] | no_license | JeffersonCarvalh0/codeforces-problems | a04f0d747b8ca6ee852a25616b4ee769897fa72b | 2a81951d601fc170d3cdddee926e3173ce82fb5c | refs/heads/master | 2020-03-12T02:50:24.866661 | 2018-12-10T12:06:01 | 2018-12-10T12:06:01 | 130,412,204 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | main.cpp | # include <iostream>
typedef long long ll;
using namespace std;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
ll n, m, a, b, min_cost, tmp;
cin >> n >> m >> a >> b;
// 9 7 3 8
if (n % m == 0) cout << "0\n";
else {
tmp = (m * ((n/m) + 1));
m... |
ee60ad2fe3c273c5b0bf52d574322ac200ecafc2 | 1d8cd6bb31ad892cc0f450ac58d707432af032fd | /C++/na_rangefunc.cpp | 3bd529ba0530e4af50cf29466d90f56ad657e358 | [] | no_license | jSoboil/Advanced-R | 9cf9e2b4a91fd4257a515aa1792bde6b21ac3cd1 | 2e7662c6c0dac53109cc58cab1f60bcfacaaeaad | refs/heads/main | 2023-09-06T04:57:18.812965 | 2021-11-15T13:28:40 | 2021-11-15T13:28:40 | 306,719,638 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | na_rangefunc.cpp | # include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
NumericVector na_rangeC(NumericVector x, bool na_rm = false) {
double omin = x[0], omax = x[0];
int n = x.size();
if (n == 0) stop("`length(x)` must be greater than 0.");
for (int i = 0; i < n; ++i) {
if (na_rm == true && NumericVector::is_na(x[i])... |
9a9372ff4f8e7e7312476490e4daacf772c56139 | 3bfc5f356e7692ca8acafab8c2a067e78d66b505 | /Code/Arduino examples/Test_MODES_INPUT_max32620/Test_MODES_INPUT_max32620.ino | 92716ad682b518b80028f410a8aee804aa387dbe | [] | no_license | Blast545/Funky_Music | 21e7d76e3f3b7dc9ea635e231d2480b3cc350b93 | f4c32b256000dcc660f9d66d884be5e223fdc436 | refs/heads/master | 2020-03-22T17:30:04.797882 | 2018-08-23T18:17:33 | 2018-08-23T18:17:33 | 140,398,818 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,419 | ino | Test_MODES_INPUT_max32620.ino | /*
* Program used to test browsing different modes, using the Boot pin
*/
//unsigned long currentTime = millis();
void setup() {
//Initialize serial and wait for port to open:
Serial.begin(115200);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// Configure B... |
f3df647a23d33f0b8326227c0f0c1e3f8ca67f89 | 38b15ffd75dc2b44c644c72e7012bbd240533775 | /tests/socket_api_tests.h | 25e5f4364e5b751056a194e67cea5a0a86b8eecd | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | brettdh/libcmm | 8ef3bb1302badb28622fc0b18a4b6de33d3a4c0c | 66745da7ff64261713dda7de7e6d3d3eae4a98d9 | refs/heads/master | 2021-01-19T20:15:55.702155 | 2015-09-16T18:01:09 | 2015-09-16T18:01:09 | 25,616,631 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 970 | h | socket_api_tests.h | #ifndef socket_api_tests_h_incl
#define socket_api_tests_h_incl
#include "end_to_end_tests_forked.h"
#include <cppunit/extensions/HelperMacros.h>
class SocketAPITest : public EndToEndTestsForked {
CPPUNIT_TEST_SUITE(SocketAPITest);
//CPPUNIT_TEST(testBuffers);
CPPUNIT_TEST(testLabelsReturnedOnIROBBoundari... |
71b146db03f568beb777d471f712e02f5a09452f | 4911de3a5bfb393a4d7844b93367d39cf0d3b7de | /UltraRead/UltraRead.ino | ea500b5ed14a7f6506e573c2bf329d93e0492191 | [] | no_license | HeyMarkSquires/SplashIO | 41238d3a0f9f147a8a4cc9606dd9208dc11a7081 | cd5252381d92b2323a2bd58e3c7f580c5f2158f9 | refs/heads/master | 2022-06-22T18:55:04.414484 | 2020-05-13T07:18:59 | 2020-05-13T07:18:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,946 | ino | UltraRead.ino |
const int trigPin1=2;
const int echoPin1=3;
const int trigPin2=4;
const int echoPin2=5;
const int trigPin3=6;
const int echoPin3=7;
const int trigPin4=8;
const int echoPin4=9;
long duration1;
float distance1;
long duration2;
float distance2;
long duration3;
float distance3;
long duration4;
float distance4;
void setu... |
1acee3f157af72182e9588356020f8b7d9be467a | 5286798f369775a6607636a7c97c87d2a4380967 | /thirdparty/cgal/CGAL-5.1/include/CGAL/Has_timestamp.h | 6cb256b674a50ee98ec09dbf0c8ddcbe85a3f204 | [
"GPL-3.0-only",
"LGPL-2.1-or-later",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-unknown-license-reference",
"MIT-0",
"LGPL-3.0-only",
"LGPL-3.0-or-later"
] | permissive | MelvinG24/dust3d | d03e9091c1368985302bd69e00f59fa031297037 | c4936fd900a9a48220ebb811dfeaea0effbae3ee | refs/heads/master | 2023-08-24T20:33:06.967388 | 2021-08-10T10:44:24 | 2021-08-10T10:44:24 | 293,045,595 | 0 | 0 | MIT | 2020-09-05T09:38:30 | 2020-09-05T09:38:29 | null | UTF-8 | C++ | false | false | 1,309 | h | Has_timestamp.h | // Copyright (c) 2014 GeometryFactory Sarl (France)
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org)
//
// $URL: https://github.com/CGAL/cgal/blob/v5.1/STL_Extension/include/CGAL/Has_timestamp.h $
// $Id: Has_timestamp.h 52164b1 2019-10-19T15:34:59+02:00 Sébastien Loriot
// SPDX-License-Identifier... |
3509bcd9daf8a798469b1cdac5d9c2fa15bcd544 | 781964e465e1d49b3cd44eb69a333474916d159b | /gr/gf/scene.h | b9cb55cd5127bb79708c3050e86349a5dbb1aec3 | [] | no_license | aaalexandrov/Alex | 3742d25c6d30c80c7929631b394e1387028edc01 | 7c7aed6cb3e5897fe91cf324c79425042ba3488a | refs/heads/master | 2023-08-19T10:58:54.633930 | 2023-08-16T23:27:10 | 2023-08-16T23:27:10 | 3,391,809 | 2 | 0 | null | 2022-12-01T21:42:36 | 2012-02-08T21:55:15 | C++ | UTF-8 | C++ | false | false | 244 | h | scene.h | #pragma once
#include "scene_object.h"
#include "gr1/utl/shader_param_data.h"
NAMESPACE_BEGIN(gf)
class Scene : public std::enable_shared_from_this<Scene> {
RTTR_ENABLE()
public:
public:
gr1::ShaderParamData _params;
};
NAMESPACE_END(gf) |
df4ff0ba4f90053b699182ebf4fd0b000d3953e8 | 28866d979b8649440ba0e48274917b87b23321f4 | /notebook/src/splay_trees/splay/code/spojGSS6.cpp | 9f7c2f0e31f4c5ee85325b2c7d032a10c5a49395 | [] | no_license | sravi4701/cat-us-trophy | 45237e50e46325ab02842da779707efa3c01690f | f60152fca341970b1593c538939cbfeb4152e1dc | refs/heads/master | 2021-01-16T23:07:05.632872 | 2011-01-12T19:24:19 | 2011-01-12T19:24:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,572 | cpp | spojGSS6.cpp | #include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>
#include<iterator>
#include<ctim... |
bc1068fa7c81ffb565363e483bf5f6ab3d56de70 | 6452866acc13c4fa3199c8e25114f61ae96b85f7 | /Miscellaneous/SIS.cpp | aedc87b23d4205b469c28fc21a5030826267f315 | [] | no_license | Tanavya/Competitive-Programming | 7b46ce7a4fad8489ede77756dff44a00487f69b1 | 2519df7406bb2351230353488672afb48f45c350 | refs/heads/master | 2021-01-21T11:34:03.655193 | 2018-04-30T04:22:00 | 2018-04-30T04:22:00 | 102,010,530 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | cpp | SIS.cpp | #include <algorithm>
#include <iostream>
#include <vector>
#include <bitset>
#include <set>
#include <climits>
#include <stdio.h>
#include <assert.h>
#include <map>
#define mod 1000000007
using namespace std;
int DP[8001][8001] = {0};
int A[8001] = {0};
int main() {
int N,M;
cin >> N >> M;
for (int j = 0;... |
4c0f6fa4b58fa671b71c9bd6733ca994d297aef8 | 7246faf9a222269ce2612613f58dc5ff19091f10 | /baekjoon/3000~5999/4796_캠핑.cpp | ba9bbf60da3c42602002184c09dcd0b0d94c2d8c | [] | no_license | gusdn3477/Algorithm_Study | 87a2eb72a8488d9263a86db70dadc7944434d41d | 3fefe1dcb40122157845ffc542f41cb097711cc8 | refs/heads/main | 2023-08-30T12:18:21.412945 | 2021-09-28T13:00:11 | 2021-09-28T13:00:11 | 308,364,230 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 454 | cpp | 4796_캠핑.cpp | #include <iostream>
#include <string>
#include <map>
using namespace std;
int main(void) {
cin.tie(0);
cin.sync_with_stdio(false);
int L, P, V;
int a, b;
int count = 1;
while (1) {
cin >> L >> P >> V;
if (L == 0 && P == 0 && V == 0)
break;
a = V / P;
b = V - P * a;
if(b >= L)
cout << "Case " ... |
2df01cd0c273a04a177414dd1dbe466026045ce8 | b18866e54d98b191a2c8af91e2e356533afce223 | /spoj/charPatten7.cpp | a34b5f70ac864fbc4d974ac9b021a59f824ca158 | [] | no_license | trongthanht3/baitapkithuatlaptrinhMTA | 49ab4e7fe1b23be62676e02dad13d7bb3b722ef9 | e2c9a825195d1c425a71e0aee58252fa1eb4d574 | refs/heads/master | 2020-07-14T04:15:06.258469 | 2019-12-31T15:00:28 | 2019-12-31T15:00:28 | 205,235,649 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | cpp | charPatten7.cpp | #include <iostream>
using namespace std;
int main()
{
int t, l, c, h, w, s;
cin >> t;
for (int i=0; i<t; i++) {
cin >> l >> c >> s;
h = w = s;
for (int j=1; j<=l; j++) {
for (int k=1; k<=h*2; k++) {
for (int p=1; p<=c; p++) {
if (p%2 == 1) {
for (int q=1; q<=w; q++) {
... |
1ae82e166085f62ffe54b1bb6c030896d90ebd84 | c9b7009794df269aa3fa03b96fcbcf6036113b87 | /RulesManager.cpp | e2237af1df79fdb8067859dabf8c3d6c0c0d1e39 | [] | no_license | farshid616/simple-intent-detection | bbc1206af8e58742ef71e0457b643f5e7149bb4b | 28e57b47290a349672dbb9ec33dba37ff1921a19 | refs/heads/master | 2023-07-16T08:19:28.060217 | 2021-09-03T05:39:09 | 2021-09-03T05:39:09 | 379,170,959 | 0 | 0 | null | 2021-09-03T05:39:10 | 2021-06-22T06:51:27 | C++ | UTF-8 | C++ | false | false | 2,262 | cpp | RulesManager.cpp | //
// Created by farshid on 6/21/21.
//
#include "RulesManager.h"
#include <fstream>
#include <iostream>
RulesManager::RulesManager() {
}
//This function will call the GetRules function with the defined or predefined location of
//weather_rules file, and will return result of extracted rules from file
//file_addre... |
bb29789fced1c5ec0941d89a5603c4b4b71e60c5 | 6737136137299260fa0fe3897566be37a1efb8be | /server/Kits/Basic.h | a52df0a0ba3af02064ff65122bd60db043897d12 | [] | no_license | pengjeck/trsAttack | 9e1e0cf3d43c3100d72ad6964f408f90fc898610 | 607083486208b3375ae7c44c4095b0a4449f2298 | refs/heads/master | 2021-01-21T19:54:16.184686 | 2017-05-29T08:27:56 | 2017-05-29T08:27:56 | 92,174,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,346 | h | Basic.h | //
// Created by pj on 17-5-27.
//
#ifndef PROJECT_BASIC_H
#define PROJECT_BASIC_H
#include "jsoncpp/json/json.h"
#include <vector>
using namespace std;
class Basic{
public:
static vector<double> ReadSingleTrace(const Json::Value &root){
vector<double> out;
int sample_num = root.size();
for(int i = 0;... |
4cd7d3ef89e0abab839afb9e82d228827a2a5ea2 | fc0b9191963382df1739dcc2efe57abb2f9560d2 | /src/SQL.cpp | 451df8a731be7a301ae282a7b12c672125b0c906 | [] | no_license | katty-86/dynamic_db | 5fdc5c287ba397a9973b666707eaf4ac6aaafcee | dcc871ae3f4273e40e75ca29831ddd4a65f0dd3b | refs/heads/master | 2021-01-10T09:40:25.512402 | 2016-01-19T14:29:34 | 2016-01-19T14:29:34 | 47,764,730 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,604 | cpp | SQL.cpp | /*
* SQL.cpp
*
* Created on: Dec 23, 2015
* Author: kaky
*/
#include "SQL.h"
SQL::SQL(char s, bool flag_c, bool flag_al, std::string tablename) :
statement(s), flag_count(flag_c), flag_all(flag_al), tablename(
tablename) {
}
SQL::~SQL() {
}
void SQL::printAll() {
std::cout << this->statement << "fl... |
ecd779e0b83b4ad1221dcff14b62eeb6a2e2b476 | dafc5b3bb9c635c6b9236bb1d68578db503f4bcd | /Assignment5.2/nodes_LLoLL.h | d7cdf1d3988ea1d1bb911389ce675634c20b0a84 | [] | no_license | AnnekaGriffith/C-programs | 5958325caa5101d2d22630a565bf1e47a11bc3a6 | 73a454d0ad33702fd2f8cfeb33daf04b02fc4649 | refs/heads/master | 2022-11-25T16:06:28.823777 | 2020-07-24T20:45:49 | 2020-07-24T20:45:49 | 282,310,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | h | nodes_LLoLL.h | /*
* 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: nodes_LLoLL.h
* Author: Anneka Bath
*
* Created on March 3, 2018, 1:12 PM
*/
#ifndef NODES_LLOLL_H
#... |
e07cca3fb4f72a92d12bbd76e314ad7041d1b1db | 872770c5323aa17120f2f708a1f0be09e663c9a8 | /Elastos/Framework/Droid/eco/inc/core/widget/NumberPickerButton.h | b385ad531d0af77c1be96dcd1038c79c0f051812 | [] | no_license | xianjimli/Elastos | 76a12b58db23dbf32ecbcefdaf6179510362dd21 | f9f019d266a7e685544596b365cfbc05bda9cb70 | refs/heads/master | 2021-01-11T08:26:17.180908 | 2013-08-21T02:31:17 | 2013-08-21T02:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,286 | h | NumberPickerButton.h |
#ifndef __NUMBERPICKERBUTTON_H__
#define __NUMBERPICKERBUTTON_H__
#include "widget/ImageButton.h"
/**
* This class exists purely to cancel long click events, that got
* started in NumberPicker
*/
class NumberPickerButton : public ImageButton
{
public:
NumberPickerButton();
NumberPickerButton(
/* ... |
8533f336fc38e5cecb67cd0bbb274ed622417050 | 80e9c5a012e8e8cfc1bca8181f24ed5899a78ea1 | /USB端口安全/MyDlg3.cpp | 8cc4477fa027cdc0ef03a740412f44c731252c3c | [] | no_license | fanshuquan/The-security-of-USB | 362dd2535a775988da5bea447854e88c6f9c4869 | c673e7fd1edb66a41f1f31921058ca69b654b730 | refs/heads/master | 2020-06-02T05:42:59.512109 | 2015-03-22T03:01:17 | 2015-03-22T03:01:17 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,184 | cpp | MyDlg3.cpp | // MyDlg3.cpp : 实现文件
//
#include "stdafx.h"
#include "USB端口安全.h"
#include "MyDlg3.h"
// CMyDlg3 对话框
IMPLEMENT_DYNAMIC(CMyDlg3, CDialog)
CMyDlg3::CMyDlg3(CWnd* pParent /*=NULL*/)
: CDialog(CMyDlg3::IDD, pParent)
{
}
CMyDlg3::~CMyDlg3()
{
}
void CMyDlg3::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExcha... |
65975902879140bfe9b4ac9d0f60fb3eb07fc7e7 | 8333d50050d39fd05164bafdad6d353b9138a344 | /source/Script/Script.cpp | c207784ca029650f0128d13e71d247e72ae30404 | [
"BSD-2-Clause"
] | permissive | JanekMak/LevelMod | 1e3c4e579a218bf6b0f78e162ece8403337b247f | f272fc2d5cb467c1f9d85790169fe6bc813e3288 | refs/heads/master | 2023-03-05T17:45:42.968693 | 2021-02-17T18:04:29 | 2021-02-17T18:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,233 | cpp | Script.cpp | #undef NO_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include "pch.h"
#include "Extension\Defines.h"
#include "Script\Node.h"
#include "Memory\String.h"
#include "Render\CustomShaders.h"
#include <stdlib.h>
#include <stdio.h>
#include <tchar.h>
//#include "FastCRC.h"
#define RELOAD_LEVEL 1
#define RELOAD_SCRIPT 2
namesp... |
26ac47473445d4a260b7ab0e46e000ba9befc04a | 33e808feb63e9a6be6e661b788112cec2fc79dc7 | /snippets/boost/property_tree/xml/main.cc | da1bcd3c4351b6194b42293453274977afe173d6 | [] | no_license | 1160208849wfl/cpp-primer5e | aed5dcd79acf214c433568f039d5a7ae1282936b | 9c65747c592162b80fece860d25277d6f3622914 | refs/heads/master | 2023-05-31T15:52:03.431389 | 2019-07-11T09:07:58 | 2019-07-11T09:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,972 | cc | main.cc | #include <assert.h>
#include <boost/lexical_cast.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <exception>
#include <iostream>
#include <set>
#include <string>
namespace pt = boost::property_tree;
struct debug_settings {
std::string m_file;
int m_level;
std... |
5152a6587ce8159510eaf49dd5f073ce3d42ba6d | 1c0ceecf0a50ef95c3ee1412b64e8ebbb992d418 | /FAKEEDGEBOYS/xrofl/C_BaseEntityList.h | 43668db3de78c2f4eb5fae9bb9744d9526add31c | [
"MIT"
] | permissive | younasiqw/parallax-csgo-leak | 0ec03c2b0a27148219fcce34ffb4eab38020b4e7 | 6cce3fe4b1343e3c17434c14c37a7cdd1c150dc0 | refs/heads/master | 2021-04-30T04:46:50.138962 | 2017-10-25T06:40:54 | 2017-10-25T06:40:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 588 | h | C_BaseEntityList.h | class C_BaseEntityList {
public:
virtual C_BaseEntity* GetClientNetworkable(int entnum) = 0;
virtual void* vtablepad0x1(void) = 0;
virtual void* vtablepad0x2(void) = 0;
virtual C_BaseEntity* GetClientEntity(int entNum) = 0;
virtual C_BaseEntity* GetClientEntityFromH... |
ab45e93a0c7076037627a289cecd880efded6f92 | b3f0037b6483e6be647cd8b64d06befc3f6ce8c4 | /codeforces/1187/B.cpp | ef907618b87b564bfd891ca72de19c1e0cd0c085 | [] | no_license | arnab000/Problem-Solving | 7b658ac19b7e8ec926e6f689f989637926b8089b | b407c0d7382961c50edd59fed9ca746b057a90fd | refs/heads/master | 2023-04-05T14:40:50.634735 | 2021-04-21T01:45:00 | 2021-04-23T01:05:39 | 328,335,023 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 546 | cpp | B.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t,i;
cin>>t;
vector<int>sura[100000];
string s;
cin>>s;
for(i=0;i<s.size();i++)
{
// cout<<int(s[i])<<endl;
sura[int(s[i])].push_back(i+1);
}
int n;
cin>>n;
while(n--){
string s1;
int arr[500]={0};
int y=-1,i;
cin... |
48c7542ed1f0c12a288aef787bb7565e52a8e9b5 | 3047545349bf224a182b2c33bf1f110aef1ce9b6 | /Transims60/Include/Sim_Plan_Data.hpp | a7c3295530b82666da385746aae434796df62089 | [] | no_license | qingswu/Transim | 585afe71d9666557cff53f6683cf54348294954c | f182d1639a4db612dd7b43a379a3fa344c2de9ea | refs/heads/master | 2021-01-10T21:04:50.576267 | 2015-04-08T19:07:28 | 2015-04-08T19:07:28 | 35,232,171 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,588 | hpp | Sim_Plan_Data.hpp | //*********************************************************
// Sim_Plan_Data.hpp - travel plan data
//*********************************************************
#ifndef SIM_PLAN_DATA_HPP
#define SIM_PLAN_DATA_HPP
#include "Memory_Pool.hpp"
#include "Dtime.hpp"
//---------------------------------------------... |
14fb5d16213852de1d69a1b3dd563b33a9ae138b | 3e65171b47336555e912ece1b381eb9faa463453 | /Lesson4/Practice3.cpp | 44ca977b205a1c39d13ec7a2f33d02246e0a656c | [] | no_license | edwardkenfox/yasacpp | 032dd6d16ef3cab50baa24dfdbb1f782059348c6 | a406b3c695fbfd65bf4f5f19dda236a3fe7432d2 | refs/heads/master | 2020-12-24T12:33:27.031691 | 2016-11-20T06:57:03 | 2016-11-20T06:57:37 | 72,982,057 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | Practice3.cpp | #include <iostream>
using namespace std;
int main() {
int num1, num2, num3, num4, num5, sum;
num1 = num2 = num3 = num4 = num5 = sum = 0;
cout << "Score of subject 1: \n";
cin >> num1;
sum += num1;
cout << "Score of subject 2: \n";
cin >> num2;
sum += num2;
cout << "Score of subje... |
41c1d233ffc820bfacce7f0e14b845aad5241952 | 412a08f5d43fcd9dc5e06d2f587efa578ea40e8a | /BOJ/Math/boj1673_치킨_쿠폰.cpp | fa4fcad9a640ecea6f4146e3a3760a731c41b873 | [] | no_license | onww1/Problem-Solving | 19b920f5f4caec50a3aded971e1f1e630e8b6c46 | 86cc8854ef0457f8f7741cbae401af5038f8ae05 | refs/heads/master | 2022-06-07T15:47:45.685775 | 2022-05-25T12:59:59 | 2022-05-25T12:59:59 | 130,528,244 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | boj1673_치킨_쿠폰.cpp | #include <cstdio>
int main() {
int N, K;
while (~scanf("%d %d", &N, &K)) {
int ans = 0, S = 0;
do {
N += S / K;
S %= K;
ans += N;
S += N;
N = 0;
} while (S >= K);
printf("%d\n", ans);
}
return 0;
} |
b51035302c68d71371971fd1d7277064863cd5fa | 6cf43021bf234f48a245724ecede839a3c3b28eb | /CompleteGraphLogical.cc | b95e12743d2a2cdc859d937b262eccc2123cf698 | [] | no_license | kmrodgers/GraphTheoryProgram | 4cb3067831906cec05c897745cd9049cb5466e4c | 55086d36d906725bc13e5b8c65c573f72b7b0cc6 | refs/heads/master | 2021-01-18T14:22:38.151502 | 2014-08-11T20:37:46 | 2014-08-11T20:37:46 | 21,622,671 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,275 | cc | CompleteGraphLogical.cc | /* Author: Kyle Rodgers
* Date: 6/12/2014
*/
#include <list>
#include <string>
#include <iostream>
#include <algorithm>
#include <iterator>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include "Token.h"
#include "Node.h"
#include "CompleteGraphLo... |
6d5ea1efb400645dcf8106af1a870aa873dac97d | 7d836ed014d44500604144b6e2f369ab4c0e3dc4 | /PhoneServiceImp.cpp | 6b71695964295e5738113cce9b5d7a8a33e2b276 | [] | no_license | MarnusTainthong/OneStopService_OOP | e34a6fa900f30b879141e28f6567fdd8eccabb92 | 393fa2099f365692ae8a73c81786d20ae45584e8 | refs/heads/main | 2022-12-31T23:41:03.358037 | 2020-10-20T10:14:02 | 2020-10-20T10:14:02 | 305,668,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | PhoneServiceImp.cpp | // File name : PhoneServiceImp.cpp
#include "PhoneService.h"
PhoneService::PhoneService()
{
Status = 0;
Price = 0;
}
//fn_PhoneService DF
void PhoneService::setPrice(double price)
{
Price = price;
}
//fn_setPrice
void PhoneService::setStatus(int status)
{
Status = status;
}
//fn_setStatus
double PhoneServ... |
f41569ca1f2034a114e998f1702739618ea80b15 | c9599efb8d902d3691f9f824570878f1552093a2 | /Optimization/nn_dist/data/source_code/data_files/cpp/wavdump.cpp | 3ea0ca19551d1b86027420d24cba8f0e5edce833 | [] | no_license | srianant/DNN_Hyperparameter_Optimization | 6cea593c6cc6f13dce74ea3287227cddf172308d | 9b047a6ba4dc636e9fd72b258c5a6952565e931b | refs/heads/master | 2023-06-08T09:16:47.642735 | 2023-06-02T19:01:35 | 2023-06-02T19:01:35 | 66,166,870 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 19,528 | cpp | wavdump.cpp | //--------------------------------------------------------------------------------------
// File: wavdump.cpp
//
// WAV file content examination utility
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include <win... |
41012baf58c487a8b69e9255b8347fec377c0b4d | 4016e385eaf332ab5dbe73691211785f6516c15c | /singleProject/WeatherSnow.h | 337fa95749ce566ec270c83c4b311c40cd372eb4 | [] | no_license | afreakk/TBC | be65ef1742fec4130f373d4d35000442bc9f34f7 | 468c96d88ad5c2c345b62ba28977d88810714904 | refs/heads/master | 2016-08-06T18:26:44.223744 | 2014-06-04T13:28:10 | 2014-06-04T13:28:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | h | WeatherSnow.h | #pragma once
#include "ParticleEffect.h"
class SnowInstance : public Ogre::Singleton<SnowInstance>
{
public:
SnowInstance();
~SnowInstance();
unsigned getId();
ParticleUniverse::ParticleSystem* getSystem(unsigned id);
void returnSystem(unsigned id);
void update();
private:
std::map<unsigned, ParticleUniverse::Pa... |
bbf3fa83c21b1cdbcc765efa500de28c80855a23 | 3a8e0c9a89ca076d7c5a997294232384abda0694 | /app.cpp | 0f19b82dbc383cc832f993393335d90062c7f1b7 | [] | no_license | hamlet-lee/try_dylib | 107ed1664bd6e54b891c5a1a5015cf96b61b3d8c | c3faf7f062e7d54682244a2a03bb12994bf9b5ae | refs/heads/master | 2021-01-02T06:03:29.952176 | 2020-02-14T15:17:13 | 2020-02-14T15:17:13 | 239,521,209 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,773 | cpp | app.cpp | #include <iostream>
#include <stdlib.h>
#include <dlfcn.h>
using namespace std;
int main () {
typedef char* (*FN)(char*, char*);
void *handle = NULL;
FN fn;
typedef const char* (*FN_CALL) (const char* libName, const char* arg, const char* constArg);
typedef void (*FN_DROP) (const char* libName, co... |
18fe532b9c14da19ca2f8685edab8abfe2c9cb90 | 81e71315f2f9e78704b29a5688ba2889928483bb | /include/crIOManager/crReaderWriter.h | 6f25da01b3e81eaf6cecf1a51cdf13c76b1e25ed | [] | no_license | Creature3D/Creature3DApi | 2c95c1c0089e75ad4a8e760366d0dd2d11564389 | b284e6db7e0d8e957295fb9207e39623529cdb4d | refs/heads/master | 2022-11-13T07:19:58.678696 | 2019-07-06T05:48:10 | 2019-07-06T05:48:10 | 274,064,341 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,115 | h | crReaderWriter.h | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included ... |
a10b733f543aadc683c4fc02ddfb122e2c58b360 | 75951ae26cab69d1c8796d205144d74fb61ebef7 | /ValkyrGameEngine/Shaders/shader.cpp | 1a231029ab903dca8e0ced0989207ade482b992f | [] | no_license | MatthewBoatright/ValkyrGameEngine | 4a203b5f12d7a20e0e2f49c5e95675772065dc95 | cc3e7c94392d7ace51edd0114f0643071562ca94 | refs/heads/master | 2021-01-10T17:01:33.267588 | 2016-03-05T03:33:23 | 2016-03-05T03:33:23 | 52,566,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,736 | cpp | shader.cpp | #include "shader.h"
namespace Valkyr { namespace Graphics {
Shader::Shader(const char * vertex_file_path, const char * fragment_file_path)
{
loadShader(vertex_file_path, fragment_file_path);
}
Shader::~Shader()
{
glDeleteProgram(m_ProgramID);
}
void Shader::loadShader(const char * vertex_file_path, const... |
f56f274493dea17de0689430067f96a8e5602dd1 | 9877916b83363457a4f784b8405446b1cc623021 | /src/library.cpp | 11eeb4806501c2c6272ac837b62e1f99150a8b3f | [
"LGPL-2.0-or-later",
"LGPL-3.0-only",
"BSD-3-Clause"
] | permissive | NREL/SAM | aa32da81d94de272af6dff30cf93f4d53ae21968 | 04f5e3b04608e9212d50586a01d55eb5b458fc72 | refs/heads/develop | 2023-08-19T00:58:25.421464 | 2023-08-17T00:15:48 | 2023-08-17T00:15:48 | 7,533,354 | 299 | 148 | BSD-3-Clause | 2023-09-14T20:02:55 | 2013-01-10T02:52:47 | PowerBuilder | UTF-8 | C++ | false | false | 44,303 | cpp | library.cpp | /*
BSD 3-Clause License
Copyright (c) Alliance for Sustainable Energy, LLC. See also https://github.com/NREL/SAM/blob/develop/LICENSE
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions ... |
1c88bd3bb346ea68d5ebc7ae7052ff337aedf734 | 97b921e7af8406a57d20da1b8a099d0f3a3c66ee | /JSON_Parser.h | da4554d0f49415668b6df73668d36634a0d8449c | [
"MIT"
] | permissive | Aurasoft-UK/JSON-Writer | 81f22ac5dfc0a7108bf6760434fb4133057f5533 | f0e1c597247e16f91e63ec47d7277fa0924e030e | refs/heads/master | 2020-04-07T10:59:44.056410 | 2018-11-20T00:42:46 | 2018-11-20T00:42:46 | 158,308,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,196 | h | JSON_Parser.h | #ifndef __JSON_WRITE_READER
#define __JSON_WRITE_READER
// Simple JSON Creator
// Author: Jayce Young
// Copyright (c) Aurasoft UK & Skyline Game Engine 2008-present day
// ------------------------------------------------------------------
#include "SkyString.h"
#include "SkyVector2.h"
#include "SkyVector3.... |
b8f017d8d52ff0a8289a8f5f4541ce9936bb105a | eed3cdaa263de8fced4b982bf3e92d0ab16fdbbf | /common.h | 4139e4d31ff56c8c2aba5afec9af78403bd83112 | [
"Apache-2.0"
] | permissive | phaistos-networks/TANK | 4eeaf2e51b8397ff63705a9c63c28fa12b368fc3 | ecb7a2d23532bf6eb21c5f587490f71b7afdb859 | refs/heads/master | 2023-03-08T06:01:00.660937 | 2022-09-06T08:22:58 | 2022-09-06T08:22:58 | 62,232,843 | 1,022 | 82 | Apache-2.0 | 2020-02-01T07:12:34 | 2016-06-29T14:35:45 | C++ | UTF-8 | C++ | false | false | 4,737 | h | common.h | #pragma once
#include <switch.h>
#include <ext/martinus/robin_hood.h>
#include <cassert>
#define TANK_RUNTIME_CHECKS 1
#ifdef TANK_RUNTIME_CHECKS
//#define TANK_EXPECT(...) EXPECT(__VA_ARGS__)
#define TANK_EXPECT(...) \
do { \
assert(__VA_ARGS__); \
... |
6c3904ca4a04cc128079c254f3f6291c6c602fc9 | 235182e6814df774ab293862b15722cc87dd60ef | /ML-Research/Data/MNISTReader/MNISTReader.cpp | 542e38275a4844ab5396e719c93e2a8467ba97e1 | [] | no_license | bkestelman/MLR | 28f72eca30924119282589e4e11b35ceee72d876 | d806f514df97b57fc746fd86fcf6113eb1c4aaac | refs/heads/master | 2021-09-06T16:41:19.970524 | 2018-02-08T16:02:52 | 2018-02-08T16:02:52 | 115,453,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,990 | cpp | MNISTReader.cpp | #include "MNISTReader.h"
#include "SystemInfo.h"
#include "VectorCalculations.h"
#include<string>
#include<fstream>
#include<algorithm>
#include<vector>
#include<iostream>
static const std::string baseDir = "Data/MNISTReader/";
static const std::string trainImages = "train-images";
static const std::string testImages... |
112fdc4c2f70ab9a6f6f56a1ef5565dc11aad52f | 3c35312e85efb05b422c944892859a3582ffd493 | /src/modules/reader.h | f4c7fb0b68db91faf12ee894c9abb7b544a6ad36 | [
"MIT"
] | permissive | drinkmystery/vita2npsc | 098323957588074b3cba3c3db4f48dcb9552dd0c | 8dcd96711d9f777518e09eb27f88281d27619e4b | refs/heads/master | 2021-09-09T07:29:04.568432 | 2018-03-14T07:30:42 | 2018-03-14T07:30:42 | 125,165,392 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 886 | h | reader.h | #ifndef _READER_H_
#define _READER_H_
#include <string>
#include <vector>
struct Record {
std::string title_id;
std::string region;
std::string title;
std::string zrif;
std::string content_id;
};
class Reader {
public:
Reader() = default;
~Reader() = default;
int readLicences();
... |
49db25a96b4a5e170de902e52fb9a99c6fea01ae | c07e66efc8446949c086b6ad9ea5dbd74a300eea | /temp_victor/temp_victor.ino | 407498825a9a2ff733be45ff0342f19c8b66d3a3 | [] | no_license | PaulFl/Arduino | ade0646a08e420f9ed2000e590806024918e8bd0 | 68639e1f4ec63274ecc84d471bb44eea5f96f0b6 | refs/heads/master | 2023-04-27T15:16:55.271647 | 2020-08-14T11:22:51 | 2020-08-14T11:22:51 | 31,907,699 | 4 | 1 | null | 2023-04-16T03:19:28 | 2015-03-09T15:52:54 | C | UTF-8 | C++ | false | false | 1,399 | ino | temp_victor.ino | #include <SPI.h>
#include "Adafruit_MAX31855.h"
int MISOPin = 5;
int CLOCKPin = 7;
int CS1Pin = 6;
int CS2Pin = 4;
int tensionPin = A0;
Adafruit_MAX31855 thermo1(CLOCKPin, CS1Pin, MISOPin);
Adafruit_MAX31855 thermo2(CLOCKPin, CS2Pin, MISOPin);
float constantePasseBas = 0.2;
float thermo1PB = 20;
float thermo2PB ... |
6a446ec34a264b785ecf7351fb958fc9d64ea4b1 | 2ab9eb69b98d27f8d6cbb9bc1dab6ee7be856d90 | /Practice Material/All_Recursion/SelectionSort.cpp | 153207834764a41aebc305ece80c7627a652f47c | [] | no_license | Hammad-Ikhlaq/Computer-Programming | 8b2fa66cbbf3f5d7c80dfeff68b41d07956f3374 | d49f1089d16d78087f7dcc3654575614f12b2060 | refs/heads/master | 2020-12-02T07:21:32.368954 | 2019-12-30T15:33:38 | 2019-12-30T15:33:38 | 230,931,632 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749 | cpp | SelectionSort.cpp | //# include <iostream>
//using namespace std;
//void selectionSort(int Array[], int size, int counter)
//{
// int temp = 0;
// int max = 0;
// int index = 0;
// if (counter == size)
// {
// return;
// }
// max = Array[counter];
// index = counter;
// for (int j = counter; j < size; j++)
// {
// if (max... |
fb2b881267cf078dacf9046bd5176fdb024c933d | 46c82398ea8eb79d30b38cf92d86c97f0a4c438a | /C++/teach/day10_继承/MultiDerived1.cc | c38e34debc114e0158e549f45320eec8e9f8a3e8 | [] | no_license | ZhanXix/wangdao-training-camp | e1bb399839dd15f24bb386eff7fe522ce1ecdce0 | 3baf0c4aff0c07293268bcf5fdb420026133aeff | refs/heads/master | 2023-01-22T00:03:44.270397 | 2020-11-24T08:29:48 | 2020-11-24T08:29:48 | 190,526,517 | 17 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 580 | cc | MultiDerived1.cc | ///
/// @file MultiDerived1.cc
/// @author lemon(haohb13@gmail.com)
/// @date 2019-08-01 10:11:42
///
#include <iostream>
using std::cout;
using std::endl;
class A
{
public:
void print() const { cout << "A::print()" << endl; }
};
class B
{
public:
void print() const { cout << "B::print()" << endl; }
... |
180b91f50082677a00a563d2295252bb2631ceae | f0c4fd99838fa924a7ac682a875daa75d5c9f181 | /src/audio/music.h | ed41f4ed5ccb463bfe7d5b1cbd2954871c4ad40f | [] | no_license | pmckanry/node-sfml | 5eac6e8b8255d274861fc684a7418931e2487599 | c0216b02de844611787b75ee67c4093ca4e2d4d7 | refs/heads/master | 2021-05-15T10:57:17.871906 | 2017-11-08T16:43:49 | 2017-11-08T16:43:49 | 108,217,655 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,289 | h | music.h | #ifndef SFML_NODE_AUDIO_MUSIC_H
#define SFML_NODE_AUDIO_MUSIC_H
#include <napi.h>
#include <SFML/Audio/Music.h>
class Music : public Napi::ObjectWrap<Music> {
public:
static Napi::FunctionReference constructor;
static void Init(Napi::Env env, Napi::Object exports);
Music(const Napi::CallbackIn... |
05a18195a8b6118fac40570f29b3dbbf95d42cc3 | 332e0c3c2189c73c51a9422ab4f9e07ed7d5134e | /665.cpp | e503480b894dfa02c70a10c6edad0febc0a82d77 | [] | no_license | ksaveljev/UVa-online-judge | 352a05c9d12440337c2a0ba5a5f1c8aa1dc72357 | 006961a966004f744f5780a6a81108c0b79c3c18 | refs/heads/master | 2023-05-24T23:08:48.502908 | 2023-05-16T10:37:37 | 2023-05-16T10:37:37 | 1,566,701 | 112 | 80 | null | 2017-01-10T14:55:46 | 2011-04-04T11:43:53 | C++ | UTF-8 | C++ | false | false | 2,144 | cpp | 665.cpp | #include <iostream>
#include <vector>
#include <set>
using namespace std;
#define pow2(i) (1<<i)
#define bit(i) (1<<i)
#define isOdd(i) (i&1)
#define isEven(i) (!(i&1))
#define sz(i) i.size()
#define REP(i, b, n) for (int i = b; i < n; i++)
#define REPI(i, b, n) for (int i = b; i <= n; i++)
#define rep(i, n) REP(i, 0,... |
1f84273b0009e5a2a3300910a4d91a4c654f3893 | bc8707823cd7822b996011024af15b4dfa50d795 | /file_send_client/client.h | b23e018c672316e959605a895e7ee0afa99a3f66 | [] | no_license | gongting1/yayaVideo | f8632c2686b088e8dcbc9a6ec341fe68b4822fe4 | 79abe04d1c2abae38b30b84d13b3b3ca76221606 | refs/heads/master | 2023-03-04T19:43:40.118619 | 2021-02-09T08:49:21 | 2021-02-09T08:49:21 | 337,344,309 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,878 | h | client.h | #ifndef CLIENT_H
#define CLIENT_H
#include <iostream>
#include <boost/asio.hpp>
#include <boost/bind/bind.hpp>
#include <vector>
#include <fstream>
class Client
{
typedef Client this_type;
typedef boost::asio::ip::tcp::endpoint endpoint_type;
typedef boost::asio::ip::tcp::socket socket_type;
typedef ... |
25ca2d81cc99b15c57c6441ab42e45a660ac8420 | e66efa85fcdc786e74baa57f1f4c8afec480f961 | /Armstrong_numbers_practice/Armstrong_numbers_practice.cpp | df3685a029d91131316746a4e5c920a8b18c2b08 | [] | no_license | d-slesarev/Armstrong_numbers_practice | 3eae9fc1099a7a10d94d4d5bb265479d3d4e092a | 2eeb00028efe9de7ddfebf1508397891fe863b4f | refs/heads/main | 2023-06-07T10:03:43.999061 | 2021-06-30T20:04:10 | 2021-06-30T20:04:10 | 381,819,860 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,364 | cpp | Armstrong_numbers_practice.cpp | /*
Файл: Практическая_работа.2021.cpp
Тип работы: Практическая работа.
Автор: Слесарев Д. В. Группа: 515в
Дата создания: 25.06.2021
Тема работы: Числа Армстронга в заданом диапазоне.
*/
#include <stdio.h>
#include <locale.h>
#include <limits.h>
#include <math.h>
/*
Назначение: Поиск и вывод всех чисел Армстронга в за... |
bec67ff2e5f8f7e029a8cfb4051f8e3eedf6e058 | b968213968422b6da3c12df3f39f8a80c1f5d87a | /arduino/classifier/classifier.ino | 6daeb7709c9c8f5603e9e5186c1f50a244e5a3e2 | [] | no_license | dansong0729/inertial-handwriting | 5b79131da4c93f5fd50bbb264308be8ba0fdd414 | 205c050c61e548b8e500575433e6c89f886d2b4b | refs/heads/main | 2023-03-26T09:02:29.067472 | 2021-03-29T02:43:55 | 2021-03-29T02:43:55 | 352,491,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,741 | ino | classifier.ino | #include <Arduino_LSM9DS1.h>
//Tensorflow imports
#include <TensorFlowLite.h>
#include <tensorflow/lite/micro/all_ops_resolver.h>
#include <tensorflow/lite/micro/micro_error_reporter.h>
#include <tensorflow/lite/micro/micro_interpreter.h>
#include <tensorflow/lite/schema/schema_generated.h>
#include <tensorflow/lite/v... |
7a5b17b8b606aacd2eb187cea4b049b910fe3ab1 | 77d3fee5704fba2e937a42e4c1502f939c69d9e8 | /w2/w2_at_home/CellPhone.h | bf131df7c20691b85b771a71c9f47ff24ec7c707 | [] | no_license | Hibrahim21/OOP244 | 4de338babdfefd11ebf58cff8d219aa2d2d0e6cc | 7f201a6cfbdc3a2d1cff0eb9d427b77f0430a2e9 | refs/heads/master | 2021-08-01T01:09:08.419143 | 2021-07-31T15:50:48 | 2021-07-31T15:50:48 | 189,293,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 219 | h | CellPhone.h | #ifndef CELLPHONE_H
#define CELLPHONE_H
namespace sict {
struct CellPhone {
char m_model[32];
double m_price;
};
void display(const CellPhone &phone);
void display(const CellPhone[], int elements);
}
#endif
|
7e3099956ec2ac4a3bc0bde126f59f67846ad8cb | b3a158034526daacee4427fa2eae0b797f904924 | /Library/NetCore/HTTP/HTTPMessage.h | 89d34bcafc2e5324cab8c81fdbbd22bbcf321a54 | [] | no_license | 15831944/Corpse | e1785c12d620f7defd16ab0b0abb0705907815c9 | 51ca96ada1db58272fff3bdbdff165200be96191 | refs/heads/master | 2023-06-29T08:36:07.487065 | 2021-05-22T01:31:41 | 2021-05-22T01:31:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,509 | h | HTTPMessage.h | #pragma once
namespace NetCore
{
#define HTTP_1_0 _T("HTTP/1.0")
#define HTTP_1_1 _T("HTTP/1.1")
#define IDENTITY_TRANSFER_ENCODING _T("identity")
#define CHUNKED_TRANSFER_ENCODING _T("chunked")
#define CONTENT_LENGTH _T("Content-Length")
#define CONTENT_TYPE ... |
73f32c51b02a820887ca4c49b9a1b817e042e950 | 2ad08ec335c0f30c0b33fa40ae2d520e3c83ec21 | /Publish/unityLibrary/src/main/Il2CppOutputProject/Source/il2cppOutput/Generics12.cpp | 19b4aa0368bc10c2da19f6335a1071c03a5a0c85 | [] | no_license | yesmancan/Tetris | 5befd23e1f8a85aa80f28d18e1a6c159a355f294 | 9a3f22e77827e6a9c38f2f0a27271ebb20f30c52 | refs/heads/master | 2023-01-11T05:34:58.645738 | 2022-12-20T20:20:55 | 2022-12-20T20:20:55 | 230,675,315 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,542,486 | cpp | Generics12.cpp | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
struct VirtualActionInvoker0
{
typedef void (*Action)(void*, const RuntimeMethod*);
static inline void Invoke (Il2CppMethodSlot slot, RuntimeObject* obj)
{
const VirtualInvoke... |
25d5d17d3b6c3d0f8e2135a069591797c1ef569f | dfb09ca96e55fb072a8524741d7301c9af815d3b | /step1_TaggerPlots.cc | 610997b9ea080d4c748d657ef5edf724913cfa6c | [] | no_license | cms-ljmet/LJMet-Slimmer-1lepDnn | 9d7fb6fac469c52afc65f6f8cc9461369a6568a8 | 9258447a26401877a5c9d7132637cec6c4072f10 | refs/heads/master | 2021-06-12T06:12:02.878988 | 2021-05-11T04:31:33 | 2021-05-11T04:31:33 | 184,775,611 | 2 | 7 | null | 2021-01-19T15:47:21 | 2019-05-03T15:05:16 | C++ | UTF-8 | C++ | false | false | 187,937 | cc | step1_TaggerPlots.cc | #define step1_cxx
#include "step1.h"
#include <fstream>
#include <iostream> // std::cout
#include <algorithm> // std::sort
#include <TH2.h>
#include <TF1.h>
#include <TStyle.h>
#include <TCanvas.h>
#include <TRandom.h>
#include <TRandom3.h>
#include <sstream>
#include <string>
#include <vector>
using namespace ... |
d11f0f8e3505424c4a1570f3d2209dd0cb3d262d | 92e67b30497ffd29d3400e88aa553bbd12518fe9 | /assignment2/part6/Re=110/16.3/p | adda6eaf774cd75f58860dc72984effab7f9ed10 | [] | no_license | henryrossiter/OpenFOAM | 8b89de8feb4d4c7f9ad4894b2ef550508792ce5c | c54b80dbf0548b34760b4fdc0dc4fb2facfdf657 | refs/heads/master | 2022-11-18T10:05:15.963117 | 2020-06-28T15:24:54 | 2020-06-28T15:24:54 | 241,991,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 21,084 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
ed3e5b281a0a5806c0daba37f84cda34cf85ef22 | b5d99525009120ad228fc0d3544bd1ee6284161b | /tests/graph_operation.cpp | c0b708eae4f974b49b5d3803def09dd5a399f6c7 | [] | no_license | abhigarg/igraphhpp | f7acb2b70eec2d58a841281cb7f047494f784936 | fd42becc5bc4f5744d6b6051f061dc43066ba1ad | refs/heads/master | 2021-01-13T01:49:29.660331 | 2009-07-28T20:29:37 | 2009-07-28T20:29:37 | 34,283,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,756 | cpp | graph_operation.cpp | /*
graph_operation.cpp ... Tests all graph opertions including disjoint union, merge, intersection...
Copyright (C) 2009 Hon Wai, LAU <lau65536@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Found... |
f4a916362070701d00aa81e61127d5336b0a20df | 499414b05f435c52d33cb0de683bbe7e27bbff27 | /src/MyDrawing.cpp | 8b458829bf9c5c7f27e48929e3b6f4e715f72e26 | [] | no_license | Martoni/QrOfLife | f835dd29ab933655de99c90597f9868240b3a1ea | e48b0c754d1f454e081859fa11207f73252ae753 | refs/heads/master | 2022-04-25T20:38:57.187324 | 2020-04-29T20:21:24 | 2020-04-29T20:24:40 | 257,688,142 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,070 | cpp | MyDrawing.cpp | #include "MyDrawing.hpp"
#include <cairomm/context.h>
#include <giomm/resource.h>
#include <gdkmm/general.h> // set_source_pixbuf()
#include <glibmm/fileutils.h>
#include <iostream>
MyArea::MyArea()
{
}
MyArea::~MyArea()
{
}
void MyArea::set_gol(GameOfLife *agol){
gol = agol;
}
void MyArea::gol_evolve(int verbo... |
1cec6c38eb3b46a2a658f5846249588bc44a77cb | 0f59af59af56db89d54aa7fe771e03e993cb0bd0 | /zav_2.cpp | 24f17ca889986fac9aa70a445981c8fe8334c8d9 | [] | no_license | Chichilivskiy/DZ_1 | cbd4b556b37591bf5b2ff54868ec248b95999981 | f6922d5643d504410123e60826e2584f1c4085e2 | refs/heads/master | 2021-01-19T04:16:24.166039 | 2016-06-04T15:22:56 | 2016-06-04T15:22:56 | 60,234,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 206 | cpp | zav_2.cpp | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,x;
printf("Vvedite a:");
scanf ("%d",&a);
printf ("Vvedite b:");
scanf ("%d", &b);
x=-(b/a);
printf ("%d",x);
return 0;
}
|
1fef54e48076ce643dc3c47f13abfa435c66e86a | 36c1b439c4d4877806e008d8af1ae95c1477fbeb | /src/solutions/94.cpp | 92f17f862a89f4a532aa8f9adf3c0bc7ce531712 | [
"MIT"
] | permissive | bshankar/euler | dc141ed752531ca2e4b9ad6744fd530b7c5fc1e2 | c866a661a94d15d3744c74d85149534efac2ca23 | refs/heads/master | 2021-07-18T21:56:16.622519 | 2017-05-22T12:38:51 | 2017-05-22T13:25:08 | 92,051,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | 94.cpp | #include "../lib/euler.hpp"
using namespace std;
#define MAX 1000000000
int main() {
// number of almost equilateral triangles
// with integer height
ul ans = 0;
#pragma omp parallel for reduction(+:ans)
for (ul k = 3; k <= MAX/3 + 2; k += 2) {
// check k k k+1 for integer height
/... |
53f392a3196c806e3f09f4aa62da4c04ac2cc9e6 | fe015d6def4281847e703a900d14e2f307de2108 | /PAA/ExpondoACorrupção.cpp | 94361a409eb4bb8bf254a0612d63d1677692b675 | [
"MIT"
] | permissive | WilliamPhilippe/Questions | 3d5d78c1415e67206afc8b27c23a6c0daaceec7c | 6b3fd095c08550a29f2b055be57fa8b86e042b27 | refs/heads/master | 2021-06-10T00:37:26.520005 | 2021-04-21T03:16:58 | 2021-04-21T03:16:58 | 160,438,694 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,095 | cpp | ExpondoACorrupção.cpp | #include <bits/stdc++.h>
using namespace std;
int d, p, r, b;
int var1, var2;
int dMember[101] = {-1}, pMember[101] = {-1};
int dVisited[101] = {0}, pVisited[101] = {0};
bool rivals[101][101];
int dpMatrix[201][10000];
class Triple
{
public:
int dCount, pCount, cost;
public:
void add(int a, int b, int c)
{
... |
334c88c465e9e8ad2ce0ae538128c67d65ad7084 | beb315fa85428a92ff9d6ecd8477b191d12a2e0a | /HP_KrDef/up_startberechnungen.cpp | 4c95da414e11fee860f5705f9d176db3c4cac836 | [] | no_license | hansfriederbrandt/HP_KrDef | d3e8f3fb1a6d1395931e7fd9f333e1a6c3a44dee | 55b94aa9207c97d762729e9e1038383131146eb4 | refs/heads/master | 2021-01-20T10:15:48.996394 | 2014-09-18T16:47:06 | 2014-09-18T16:47:06 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,190 | cpp | up_startberechnungen.cpp | #include "stdafx.h"
#include "up_konstanten.h"
#include "up_startberechnungen.h"
void up_startberechnungen(Vector2d &PS)
{
//lokale Variable initialisieren
MatrixXd PRand(6, 2);
PRand << -0.037562690734863, 0.15856578063965,
-0.037143062591553, 0.15856578063965,
-0.034734931945801, 0.15868771362305,
-0.0347... |
ef476c0d13a3ba032e730e6bd46a5f68c3dda98f | f42dd0e2471c03600f890b2c769e57b24aaa08e3 | /FrameWork/Client/Code/MatchingTurn.cpp | e7b4a5983f6922afff6f5851869f5bc4e57c8be9 | [] | no_license | zeldie/- | 1722f777fbe870e9ccef9e1eed49bb07e2ce1dd7 | 658225e7ead91839750f8024593ed67b059d8923 | refs/heads/master | 2022-12-22T02:34:30.128966 | 2020-09-14T07:56:25 | 2020-09-14T07:56:25 | 295,115,224 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 4,182 | cpp | MatchingTurn.cpp | #include "stdafx.h"
#include "MatchingTurn.h"
#include "ScreenTex.h"
#include "MatchingGameObserver.h"
CMatchingTurn::CMatchingTurn(LPDIRECT3DDEVICE9 pGraphicDev)
:CUIObject(pGraphicDev),
m_eTurn(CMatchingMgr::TURN_END),
m_pMatchingGameObserver(nullptr),
m_bLateInit(true),
m_dTime(2.f),
m_fAlpha(1.f)
{
}
CMatc... |
25f632c9e3347598789aece0e44b0db08c2fd67a | 17445bc73fd275cc10d89b5083491fd0c01cb089 | /src/TCP/TCPClient.h | e3b80b91e6d1eea86c44dab6956780a038f0a7aa | [] | no_license | truongnv1903/SpeedTestCmd | 748ca7f27361c522bc3f9e0bf89a85ca4a217a52 | b873c7c1eb2242d2d165b6b2509c4384c918bfbb | refs/heads/master | 2023-08-16T21:59:28.270346 | 2021-10-15T07:58:39 | 2021-10-15T07:58:39 | 413,746,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | h | TCPClient.h | #ifndef TCPCLIENT_H
#define TCPCLIENT_H
#include <unistd.h>
#include <stdio.h>
#include <netdb.h>
#include <stdlib.h>
#include <sstream>
#include <string.h>
#include <vector>
#include <sys/socket.h>
#include <arpa/inet.h>
using namespace std;
class TCPClient {
public:
TCPClient();
~TCPClient();
bool c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.