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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e29e281e82c8b73a70e866e70df5575688adbf9f | b1df6b7fd6ec08a011ffcd6d07a7d42915c61e15 | /project/source/game/system/UnitData.h | 35a7c420875096feaaa3381a424d3a7285f49654 | [
"MIT"
] | permissive | Shdorsh/carpg | dbca0277d3182ce4852e21826e05f423a5d7dd6f | 376130a1ed410116fc8a607601b327eae7dca383 | refs/heads/devel | 2022-06-17T04:01:27.682849 | 2018-12-01T21:23:58 | 2018-12-01T21:23:58 | 159,889,860 | 0 | 0 | MIT | 2022-06-02T07:12:48 | 2018-11-30T23:32:57 | C++ | WINDOWS-1250 | C++ | false | false | 8,760 | h | UnitData.h | #pragma once
//-----------------------------------------------------------------------------
#include "Material.h"
#include "UnitStats.h"
#include "Blood.h"
#include "StatProfile.h"
#include "ArmorUnitType.h"
#include "Resource.h"
#include "DamageTypes.h"
#include "ItemScript.h"
#include "FrameInfo.h"
#include "Class.... |
5c1e9711ce2e5ec2e217222aa8f0194ed947f1e4 | 77d9bbd06859fc3243e77f615254a9d76d97a962 | /src/TaskObject.cpp | eefde452ebe6821a390c39942e352a04e18874f4 | [] | no_license | meshellchoo/Task-Manager | 0f5ac24877b9081312ebd1310238b346ee87c43b | 194032b6fb57bcfc85ba159b4364784ede18f828 | refs/heads/master | 2023-04-14T20:59:34.932577 | 2021-04-10T02:13:04 | 2021-04-10T02:13:04 | 332,090,072 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,036 | cpp | TaskObject.cpp | #ifndef __TASKOBJECT_CPP__
#define __TASKOBJECT_CPP__
//#include "/home/csmajs/jooi001/cs100-task-manager/header/TaskObject.hpp"
#include "/home/csmajs/mchu017/cs100-task-manager/header/TaskObject.hpp"
//#include "/home/csmajs/htran164/cs100-task-manager/header/TaskObject.hpp"
void TaskObject::setTaskName(std::string... |
04066f25da3879983e2dd316b67ba897a58133e3 | a5ca102bb14e2cc137ec27a7f5d3d486c5191a83 | /Shader-Programs/transformations.cpp | beaa71d1b43632ebecb46d6383cac33c13093b80 | [] | no_license | phahs/course-projects | 4e3b231bd69766b3ca174eca988b70a39234bbff | fcba3ab0650639f47672eed5f7fae49501dd8dd6 | refs/heads/master | 2021-01-10T21:50:01.910366 | 2020-04-29T21:05:37 | 2020-04-29T21:05:37 | 35,395,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,677 | cpp | transformations.cpp | //
// Philip Hahs
// phil.hahs@gmail.com
// CS 484
//
// Procedural module that implements transformations used in
// the homework assignment.
//
// $Id: transformations.cpp 4964 2014-04-25 04:43:20Z mshafae $
//
// STUDENTS _MUST_ ADD THEIR CODE INTO THIS FILE
//
#include "transformations.h"
#include "stdio.h"
// ... |
92bbe2b23491e601d2a2e00b49e7fd9368c35695 | 2a016f97e5bb82ce83a0d77bf625361fe9b2968c | /pr8/4.cpp | 4427aa6bc4cc8a1d443a2d12db07edd77bf4feb0 | [] | no_license | JuliManhupli/Fundamental-of-Programming-II | 1ba169590c7b112ad4578b3b34b05aea025ac59e | a1b6cebacdc5e30c3bd3eb222232c00458f8cc1f | refs/heads/main | 2023-08-22T07:21:18.784383 | 2021-10-25T10:53:38 | 2021-10-25T10:53:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 399 | cpp | 4.cpp | #include<iostream>
using namespace std;
int main() {
ios::fmtflags prev = cout.flags();
cout.unsetf(ios::dec);
cout.setf(ios::showbase | ios::hex);
cout << 100 << endl;
cout.flags(prev);
cout << 100 << endl;
return 0;
}
/*showbase - при выводе указывать числовую базу
hex - значения выводятся в шестнадцатерично... |
85a6ea09b43aa6f33f59ae5074a5bde932c56469 | 52103f13257ccf0cdd79eac297056c2144c88450 | /week2/AnalogDim/AnalogDim.ino | d0407af77f8ed3cbd0bb8f276a34aabbfc41bb94 | [] | no_license | parmcoder/iot-T3-2020 | e28798cbe8792d6d02fd8be28b2c8d9ec32385d9 | 51aca42955b1fedb601641135f9d5390645aa691 | refs/heads/main | 2023-07-23T09:36:06.717873 | 2021-09-04T22:46:29 | 2021-09-04T22:46:29 | 364,955,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 206 | ino | AnalogDim.ino | int led = 3;
int brightness = 0;
int fadeAmount = 5;
void setup() {
pinMode(led, OUTPUT);
Serial.begin(9600);
}
void loop(){
int pot_in = analogRead(A0);
analogWrite(led, pot_in/4);
delay(20);
}
|
af439941f2abbd151a7b50728313b1b04450a0a7 | 2f8bb946a984ce647c56aabe669de0f68286ad33 | /d1/ex04/ex04.cpp | 7e6a6bf6062bb349c498cb8ceff26be10e699c4f | [] | no_license | Smi1e-man/Bootcamp_C_plus_plus | 14580607a3c9602af7dbe22fd6a3c225f4bdf10e | f381fd5adab7e99a051912fd4e0c6bf18a33661d | refs/heads/master | 2020-05-19T00:52:42.409127 | 2019-05-03T11:49:55 | 2019-05-03T11:49:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | cpp | ex04.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ex04.cpp :+: :+: :+: ... |
bd56072cd3bfe955676edbdf5875cb13a419a221 | 0c7e20a002108d636517b2f0cde6de9019fdf8c4 | /Sources/Elastos/LibCore/inc/elastos/security/cert/CertPathBuilderSpi.h | 8d33c569ccbe28d0386cd8448536f1f219dcb888 | [
"Apache-2.0"
] | permissive | kernal88/Elastos5 | 022774d8c42aea597e6f8ee14e80e8e31758f950 | 871044110de52fcccfbd6fd0d9c24feefeb6dea0 | refs/heads/master | 2021-01-12T15:23:52.242654 | 2016-10-24T08:20:15 | 2016-10-24T08:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | h | CertPathBuilderSpi.h |
#ifndef __ELASTOS_SECURITY_CERT_CERTPATHBUILDERSPI_H__
#define __ELASTOS_SECURITY_CERT_CERTPATHBUILDERSPI_H__
#include "Elastos.CoreLibrary.Security.h"
#include "core/Object.h"
namespace Elastos {
namespace Security {
namespace Cert {
class CertPathBuilderSpi
: public Object
, public ICertPathBuilderSpi
{
p... |
a261717fcd56a85779c42b4282e72a5fab535663 | 9cf05b3cd95d829e6d10d8a18cb292d04dc369c9 | /include/communication.h | 93d1fa92ebbf1c0af5ebc588ae28a212f013f6be | [
"BSD-3-Clause"
] | permissive | hommeabeil/perception3d | 21bba6b0f8915bb536443787d018379f21896458 | face90e2cc1722c9d049056426adfa1b578622b8 | refs/heads/master | 2021-01-18T05:03:20.978493 | 2014-08-15T19:05:42 | 2014-08-15T19:05:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,386 | h | communication.h | #ifndef COMMUNICATION_H
#define COMMUNICATION_H
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <objectExtractor.h>
#include <stdlib.h>
#include <fileAPI.h>
#include <jaco_custom.h>
#include <Eigen/Eigen>
#include <Eigen/Geometry>
#include <eigen_conversions/eigen_msg.h>
#include <tf/transform_datatypes.h>... |
9210c231774afa03446b0be74299a623b4c5f16e | 94db0bd95a58fabfd47517ed7d7d819a542693cd | /client/ClientRes/IOSAPI/Classes/Native/Bulk_Lidgren.Network_0.cpp | 2024546c53140a763015a88286260cb389368a7a | [] | no_license | Avatarchik/card | 9fc6efa058085bd25f2b8831267816aa12b24350 | d18dbc9c7da5cf32c963458ac13731ecfbf252fa | refs/heads/master | 2020-06-07T07:01:00.444233 | 2017-12-11T10:52:17 | 2017-12-11T10:52:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806,315 | cpp | Bulk_Lidgren.Network_0.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
// Lidgren.Network.MWCRandom
struct MWCRandom_t315011312;
// Lidgren.Network.NetBitVector
struct NetBitV... |
8afdb4d04cc71a96e4312399a523dc9dcfd338c2 | a699a508742a0fd3c07901ab690cdeba2544a5d1 | /RailwayDetection/RWDSClient/LineList.cpp | 65bd323e83512844fbab3346531f77f42880f3e8 | [] | no_license | xiaomailong/railway-detection | 2bf92126bceaa9aebd193b570ca6cd5556faef5b | 62e998f5de86ee2b6282ea71b592bc55ee25fe14 | refs/heads/master | 2021-01-17T06:04:48.782266 | 2011-09-27T15:13:55 | 2011-09-27T15:13:55 | 42,157,845 | 0 | 1 | null | 2015-09-09T05:24:10 | 2015-09-09T05:24:09 | null | GB18030 | C++ | false | false | 11,800 | cpp | LineList.cpp | // LineList.cpp : 实现文件
//
#include "stdafx.h"
#include "RWDSClient.h"
#include "LineList.h"
#include "afxdialogex.h"
#include "DataService.h"
#include "CmdDefine.h"
// CLineList 对话框
IMPLEMENT_DYNAMIC(CLineList, CDialogEx)
CLineList::CLineList(CWnd* pParent /*=NULL*/)
: CDialogEx(CLineList::IDD, pP... |
b29d35db9b6ae5e9079b443be9b4daa199d5720a | febf32873cd46c5cd143f9bf878c43f0c0073825 | /Parallelogram.h | 94892770da9a748490a29971f086d40de31a9b9b | [] | no_license | natali1821/figures | 81d5265b99ee65c10f79e2980d89b59cc790ee56 | 5d1f55ece4721913f9e0a8121434bba14e42054c | refs/heads/master | 2023-03-22T06:56:52.690958 | 2021-03-15T15:35:49 | 2021-03-15T15:35:49 | 348,019,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | Parallelogram.h | #ifndef PARALLELOGRAM_H_INCLUDED
#define PARALLELOGRAM_H_INCLUDED
#include "Figure.h"
class Parallelogram : public Figure {
public:
Parallelogram(double a, double b, double angle);
double calculateP() const override;
double calculateS() const override;
protected:
double _a, _b, _angle;
const double... |
6a77ecd7f1e60c6f94268d01de616b18f4ac3fa0 | df5423ea65e7679a80725a5b9f252caaf5289296 | /Q2.Anagrams_check.cpp | 8f57a48b2954a4a1aecd8baf07bb3adb3fa48349 | [] | no_license | abhyamgupta123/DSA-Assignment-questions | 6e696e8dab00892654137eb15d1ea57374e40bf4 | f5a578fa3bbd2c915c385c4ab70dbc51f01b74d3 | refs/heads/master | 2020-08-10T01:18:42.309764 | 2019-10-10T21:08:09 | 2019-10-10T21:08:09 | 214,220,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,637 | cpp | Q2.Anagrams_check.cpp | //assumption overhere is that you only giving the only one anagram pairs to be checked by the code.
#include <bits/stdc++.h>
using namespace std;
string st(string s1){ //this function converts the given string into all lower cases charachters.
string temp1;
int j=0;
while (s1[j]){
... |
1c08d8c71a20c16f81725dcabcfaadf42d3cb7ef | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/libwebrtc/modules/audio_processing/transient/wpd_tree.cc | 0408e4ae89bd3562ed22fda2044ecc377698fe70 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | C++ | false | false | 3,078 | cc | wpd_tree.cc |
#include "modules/audio_processing/transient/wpd_tree.h"
#include <string.h>
#include "modules/audio_processing/transient/wpd_node.h"
#include "rtc_base/checks.h"
namespace webrtc {
WPDTree::WPDTree(size_t data_length,
const float* high_pass_coefficients,
const float* low... |
6aca2af7f3235fe9cb0fa3ce456898f5bc7bdba6 | 9eafdefb2871414922546f51536aab94ae233ba7 | /src/qt/qwt/qwt_matrix_raster_data.h | d13a0acc78aa9e469cc1836dbfe3a897e6f0171f | [
"MIT"
] | permissive | dzimbeck/BitBay | e8efd61752e2427f601f3d32043b22e82fd88e35 | 8ac692d0b02bea2cec21b828de0d2606a02c67bd | refs/heads/master | 2022-02-03T22:24:58.728968 | 2022-01-04T14:22:37 | 2022-01-04T14:22:37 | 56,190,831 | 29 | 23 | MIT | 2018-10-04T10:44:09 | 2016-04-13T22:41:46 | C++ | UTF-8 | C++ | false | false | 2,121 | h | qwt_matrix_raster_data.h | /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
* Qwt Widget Library
* Copyright (C) 1997 Josef Wilgen
* Copyright (C) 2002 Uwe Rathmann
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the Qwt License, Version 1.0
**************... |
a1d6a1e0505c659e1debcbee9b241fd659821d7d | a5b56f286982ad0c162a2d61783d7378609d547b | /program1/program1.cpp | 89b7c194fc5ffc7597364833eb281000eccc18c6 | [] | no_license | alex-emily-justin-mckenzie/project01 | 3d7d26a37b7822393e9292547f877a8c2bcac1a4 | dc1469dae124472597b9bd130e44f3cc2b59c9ac | refs/heads/master | 2020-07-13T07:56:35.779388 | 2019-08-30T01:47:38 | 2019-08-30T01:47:38 | 205,039,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,144 | cpp | program1.cpp | // Justin Foster - Program 1
// August 28, 2019 - CS201
#include <iostream>
#include <string>
#include <ctime>
#include <cmath>
#include <cstdlib>
using namespace std;
//Declaration of functions
int diceRoll();
int playerTurn(int& playerScore); //Both of these functions using bass-by-reference to keep... |
1d8304b86fe034caf282ec8d67139317c1aa7d10 | c12dc233139fc8aa95877e6081e671c4a972b091 | /RSTACK/IlcRSTACKDebugHit.h | a427414af8dee2d3bb48bf077bdd80b05afcd97d | [] | no_license | yanqicw/ORKA-ILCRoot | b4be984cb9f1991b0c174da7428366af4973ef84 | 6e66c4cbae6835586274a385bee9bed254a63976 | refs/heads/master | 2020-04-01T02:27:50.942859 | 2012-12-03T17:51:10 | 2012-12-03T17:51:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,317 | h | IlcRSTACKDebugHit.h | #ifndef ILCRSTACKHIT_H
#define ILCRSTACKHIT_H
/* 2012-2013 Infrastructure for Large Collider Experiment. *
* All rights reserved. *
* See cxx source for full Copyright notice */
/* $Id: IlcRSTACKebugHit.h 7865 2003-07-13 09:26:14Z ... |
37b5180b80ec4ab223dee4c8bf380616cd591f16 | 665dc0007545cec787c36f05555b360a8fe9e604 | /test/test_ClikObject.cpp | 0ec5e678dcfe667dc1c12c8f62b982446d0cc11f | [] | no_license | hdp1213/pc_multinest | 439a20d82c5a537d83055afa0653d41bc64340a3 | 812bad29280e9088f9debeff4dae91356965d8dc | refs/heads/master | 2020-03-22T02:46:41.273764 | 2020-02-19T12:15:08 | 2020-02-19T12:15:08 | 139,392,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,159 | cpp | test_ClikObject.cpp | #include "ClikObject.hpp"
#include <iostream>
#include <stdexcept>
using namespace std;
int main(int argc, char const *argv[])
{
const string lo_l_clik_file = string(PLIK_LOW_L_FILE_DIR) \
+ "/lowl_SMW_70_dx11d_2014_10_03_v5c_Ap.clik/";
vector<param_t> lo_params = {A_planck};
ClikObject* lo_l_clik(0);
#ifde... |
900e172f6540356503228605d2d193750bbe849e | e7df6d41d7e04dc1c4f4ed169bf530a8a89ff17c | /OpenSim/Tests/Wrapping/testMuscleLengthRegression.cpp | 4f3a17221aeb84790e3d9127a7ca2c35f11e6386 | [
"Apache-2.0"
] | permissive | opensim-org/opensim-core | 2ba11c815df3072166644af2f34770162d8fc467 | aeaaf93b052d598247dd7d7922fdf8f2f2f4c0bb | refs/heads/main | 2023-09-04T05:50:54.783630 | 2023-09-01T22:44:04 | 2023-09-01T22:44:04 | 20,775,600 | 701 | 328 | Apache-2.0 | 2023-09-14T17:45:19 | 2014-06-12T16:57:56 | C++ | UTF-8 | C++ | false | false | 4,534 | cpp | testMuscleLengthRegression.cpp | /* -------------------------------------------------------------------------- *
* OpenSim: testMuscleLengthRegression.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
28ca98916a60127934cee2759d53a17a4f32679b | fdc86a784a21f0ff755f62d70256febefbc83416 | /mainwindow.cpp | a54fa203f11d7f3826ba3e6d47bdb76c332ba787 | [] | no_license | labstreaminglayer/App-Cognionics | ad3bf70dc1bdaa72573fd9933c51b49bad24e4df | 205066ccc2a112c2230e94df76ec020110ad5f84 | refs/heads/master | 2021-01-24T22:26:44.586971 | 2018-11-25T03:36:54 | 2018-11-25T03:36:54 | 123,280,592 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,347 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/foreach.hpp>
#include <boost/date_time/posix_time/posix_time.h... |
3f130b4e80b08f1f08752e7dd6dd729636ea0510 | 8a0f440ab4e2f94786114358609a39c0ccfc12c4 | /old/Particle.cpp | aed10d7d68167435b07393163a3fcec67088c3d0 | [] | no_license | michaelwilkie/Yoshis-Island2 | 8829bbe427db5107500ef97c6799d04cc99bad5b | f6856f8e1ecbb91242f51a12fc8e72def6f79e39 | refs/heads/master | 2018-11-24T00:58:59.683003 | 2018-10-30T20:56:35 | 2018-10-30T20:56:35 | 104,089,007 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 307 | cpp | Particle.cpp | /*#include "Particle.h"
Particle::Particle(int x, int y)
{
//Set offsets
mPosX = x - 5 + (rand() % 25);
mPosY = y - 5 + (rand() % 25);
}
void Particle::render()
{
//Show image
mTexture->render(mPosX, mPosY);
//Show shimmer
//Animate
mFrame++;
}
bool Particle::isDead()
{
return mFrame > 10;
}*/ |
16300c925cb1bc7cbac433609c4b962003512ede | 5fb996563e366c1a4f3eed41d932e719679a3e71 | /a20j ladders/Caesar's Legions.cpp | 35895ee7cfa11e2e7439d368e47a589d86e688ac | [] | no_license | rijusougata13/A2oj-solution | 3474a7d5c71ab296184a2249c489d398e2d714f1 | fd0da6c0c36fcf35397140b7fa5ddb7e42117bcd | refs/heads/master | 2023-01-02T12:04:38.115291 | 2020-10-31T08:42:04 | 2020-10-31T08:42:04 | 307,930,643 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,422 | cpp | Caesar's Legions.cpp | /*
░██████╗░█████╗░██╗░░░██╗░██████╗░░█████╗░████████╗░█████╗░
██╔════╝██╔══██╗██║░░░██║██╔════╝░██╔══██╗╚══██╔══╝██╔══██╗
╚█████╗░██║░░██║██║░░░██║██║░░██╗░███████║░░░██║░░░███████║
░╚═══██╗██║░░██║██║░░░██║██║░░╚██╗██╔══██║░░░██║░░░██╔══██║
... |
90ddbd204d4636e88dc3cde8af05246867092fad | aabbf50f01c8b0dc7631896a9d8220f032dde1dc | /beauty_test/iterator/iterator_category/bidirectional_iterator_tag.hpp | bbd6cc7b93f197264e65b359cb4b4a78735acef2 | [] | no_license | privateos/RewritingOfSTL | 24696f9ddd313d946614f24b249200001d73aabe | 0a507c2f8cd3d62d1ffd34a785c7db866b78f2d9 | refs/heads/master | 2022-04-04T05:26:35.120314 | 2020-01-27T10:54:22 | 2020-01-27T10:54:22 | 236,470,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | hpp | bidirectional_iterator_tag.hpp |
#ifndef include___beauty__iterator__iterator_category___forward_iterator_tag_hpp
#define include___beauty__iterator__iterator_category___forward_iterator_tag_hpp
#include<./beauty/iterator/iterator_category/forward_iterator_tag.hpp>
#endif
namespace beauty{namespace iterator{namespace iterator_category{
... |
83bef0f81f642457f270c94d6a09bbf8e9d4cfc2 | 73ac765d4f54b9184c4775d40bb054c58d55d1f4 | /code/skinnedmesh.hpp | cdfda34dc1d56f6e5c730d10a15d63dc9156abfc | [] | no_license | yixu34/RestlessMoon2 | b495accf9f7b73775387ddc5e22b82139bdb1394 | 7eeb9381dbbd1cf4a74530e19b0689d840b79ca1 | refs/heads/master | 2020-05-27T11:19:48.460066 | 2012-08-02T23:36:16 | 2012-08-02T23:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,576 | hpp | skinnedmesh.hpp | #ifndef SKINNEDMESH_HPP
#define SKINNEDMESH_HPP
#include <boost/shared_ptr.hpp>
#include <string>
#include <vector>
#include <d3dx9.h>
#include "resource.hpp"
#include "renderable.hpp"
#include "mesh.hpp"
#include "texture.hpp"
#include "effect.hpp"
#include "allocmeshhierarchy.hpp"
class SkinnedMesh;... |
5945d323c61b53cc74fefa9af8b49cbc16c8d48c | 3d631872e5cd31da7b0e186e5a08a65980f2d04c | /Sokoban/source_code/ui/num_draw.cpp | 53be0c3104701d1caea7061c342ec87eb8c332d1 | [] | no_license | Philip-Teh/MyGame | 8fd2783dd50fd1b69b710d7eb1f48cdbefd34402 | 8ed2fa1a77ebeb7200463078a3654b11b9f02ca1 | refs/heads/master | 2022-10-12T17:36:44.966098 | 2020-06-15T05:04:38 | 2020-06-15T05:04:38 | 221,345,799 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,602 | cpp | num_draw.cpp | using namespace std;
void CNumDraw::Init(float sizeX, float sizeY)
{
mTexture = "asset/texture/number/number.png";
//ポインタ作成
mpNumber = make_unique<CNumber>();
mpNumber->Init(mTexture, sizeX, sizeY);
mDigit = NUMBER_DIGIT;
//描画最大数を計算
mCounterStop = 1;
for (int i = 0;i < mDigit;i++)
{
mCounterStop *= 10;... |
2d08a1eefc3e7e614e7289106c567ce1c6f319d1 | cc744d590c6c8907912e75622a497db9f05fbb1b | /myMonitor.h | 24309c9f367beca721e66f22c30125e8aef5a74a | [] | no_license | opalkonrad/monitor_producer_consumer | 8a1f0e5d04a8b8ca5ae2e22a281aa219d3a8a889 | 259576a8904185db63343838072c259d1eac1967 | refs/heads/master | 2020-04-22T01:47:50.741278 | 2019-02-10T20:49:16 | 2019-02-10T20:49:16 | 170,025,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 404 | h | myMonitor.h | #include "monitor.h"
#define TABSIZE 10
struct Elements
{
int elems[TABSIZE];
bool isRead;
int length, first, last;
};
class MonitorAC : public Monitor
{
};
class MyMonitor : private Monitor
{
private:
MonitorAC monitor_ac;
Elements buff;
Condition empty, full, read;
void add(int id);
int get();
... |
9ae60ed6ed05155e344e998502dd6faa4ff7a014 | bdd9f3cdabe0c768641cf61855a6f24174735410 | /src/external/3rd/library/maya5/include/maya/MFnPartition.h | b20920f2dc24f3d9419be1323ec766d61f8ab178 | [] | no_license | SWG-Source/client-tools | 4452209136b376ab369b979e5c4a3464be28257b | 30ec3031184243154c3ba99cedffb2603d005343 | refs/heads/master | 2023-08-31T07:44:22.692402 | 2023-08-28T04:34:07 | 2023-08-28T04:34:07 | 159,086,319 | 15 | 47 | null | 2022-04-15T16:20:34 | 2018-11-25T23:57:31 | C++ | UTF-8 | C++ | false | false | 2,951 | h | MFnPartition.h |
#ifndef _MFnPartition
#define _MFnPartition
//
// *****************************************************************************
//
// Copyright (C) 1997-2003 Alias|Wavefront Inc.
//
// These coded instructions, statements and computer programs contain
// unpublished information proprietary to Alias|Wavefront Inc. and ... |
03a10695d9faea9c0c6403f6a0a7e0503a902759 | db8dfd7ef00432842d187335ca6598341edc1922 | /escher/include/escher/tab_view_data_source.h | 62cf29921d3b6e7c5f8890381f767c60db81a74d | [] | no_license | EmilieNumworks/epsilon | a60746285ede5a603916e5dc9361a689926f0fbd | bb3baa7466f39f32b285f2d14b6dc1f28e22e7a5 | refs/heads/master | 2023-01-28T20:49:55.903580 | 2022-09-02T13:15:05 | 2022-09-02T13:15:05 | 102,631,554 | 1 | 0 | null | 2017-09-06T16:20:48 | 2017-09-06T16:20:48 | null | UTF-8 | C++ | false | false | 390 | h | tab_view_data_source.h | #ifndef ESCHER_TAB_VIEW_DATA_SOURCE_H
#define ESCHER_TAB_VIEW_DATA_SOURCE_H
extern "C" {
#include <stdint.h>
}
namespace Escher {
class TabViewDataSource {
public:
TabViewDataSource();
int activeTab() const;
int selectedTab() const;
void setSelectedTab(int index);
void setActiveTab(int index);
private:
i... |
2cd281a012652d088ac8bda799358e1a54688b07 | 75aad4831e513b05b342849eb7ae7a4c24fa7178 | /src/parse_stream.cpp | 0d780dac0e3de4af4792b03f1ba3ed6197539db0 | [
"MIT"
] | permissive | aurtg/open-david | 6583897977f019be1dccad9c9690caf8a300feea | 26922b8b9f35ee749f44e56a599aa5e7136024e2 | refs/heads/master | 2020-03-28T02:55:14.792348 | 2018-12-28T00:34:23 | 2018-12-28T00:34:23 | 147,606,710 | 12 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,607 | cpp | parse_stream.cpp | #include "./parse.h"
namespace dav
{
namespace parse
{
stream_t::stream_t(std::istream *is)
: m_is(is), m_row(1), m_column(1), m_readsize(0), m_filesize(0)
{
if (m_is != &std::cin)
m_filesize = dav::filesize(*is);
}
stream_t::stream_t(const filepath_t &path)
: m_row(1), m_column(1), m_readsize(... |
be590a3f1974b3f1dbed9d168feaba5c288a0833 | 4d405f617444dd34e7cc95a940c4b5f75922fffe | /Source/DirectoryExplorerTreeViewItem.cpp | 6decea690155c266e86fb12d460e5a066a0f5dbb | [] | no_license | Jacob-Rose/SamplifyPlus-JUCE | 2818edcd12119f9d48d308a5568b540e89c9dfd8 | 14fc9a59dee51bdcc08f61bf8b55054ea47f9a7d | refs/heads/master | 2023-04-07T18:38:03.468624 | 2023-03-25T21:39:17 | 2023-03-25T21:39:17 | 170,420,927 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,112 | cpp | DirectoryExplorerTreeViewItem.cpp | #include "DirectoryExplorerTreeViewItem.h"
#include "SamplifyMainComponent.h"
#include "SamplifyProperties.h"
#include "SamplifyLookAndFeel.h"
using namespace samplify;
DirectoryExplorerTreeViewItem::DirectoryExplorerTreeViewItem(std::shared_ptr<SampleDirectory> dir)
{
mSampleDirectory = dir;
mSampleDirectory->add... |
8ff1fc7a15396a64a518f7f47889eebec41cce15 | 548fb26a24715036dc453c2d333252ed4e107118 | /ACM-ZS/ACM1007.cpp | 7e77133d01fe9505f10d581d3abecda85961fbb0 | [] | no_license | Mereco/ACM-ZS | fa5295e8080a2435f62325fe3cdbdafa57a94459 | 3eedb5f812e0e2a1a2ae35abc3bf3d9c66fa04e5 | refs/heads/master | 2021-01-10T16:20:11.547427 | 2016-03-16T07:36:55 | 2016-03-16T07:36:55 | 54,010,537 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 160 | cpp | ACM1007.cpp | #include<iostream>
using namespace std;
int main()
{
int a=0,b=0,c=0,x=0,y=0;
cin>>x;
a=x/100;
b=(x%100)/10;
c=x%10;
y=a+c+b;
cout<<y<<endl;
return 0;
} |
b5e7aa5242bb8a76722ea12cc41d31acc93262c1 | 197c05e4546df7b95391105aef4a279f98a02932 | /cpp/stepik/cpp1/ex.2.7.10.cpp | 2e9709a4330c778d9e33765cf9894680fb046c17 | [] | no_license | sergey-pashaev/practice | c269c0f6f7495701f175c566d0942ab5d52f661a | e92ef5c17f0e89c274f89b7ad8f1326e526ce91c | refs/heads/master | 2023-02-18T20:42:14.503574 | 2023-02-13T18:01:13 | 2023-02-13T18:01:13 | 167,481,051 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 652 | cpp | ex.2.7.10.cpp | #include <cassert>
#include <cstddef>
#include <cstring>
#include <iomanip>
#include <iostream>
using namespace std;
void append(char* other_str, size_t other_size) {
char* str = new char[6];
strcpy(str, "Hello");
size_t size = strlen(str);
cout << str << '\n';
size_t new_size = size + other_size ... |
92110505e4ad4044e7a94513b581694339908450 | ee24ef7aaa7d4ab6a66c56e95953414306302df3 | /Cpp/SDK/AWL_Credits_parameters.h | 3eae93ae95859c28496977c32f62b3dfc61d089b | [] | no_license | zH4x-SDK/zAWL-SDK | bfc0573125d3398d892c85eac05a6575592db187 | 3d7001585dab120480e0d16fc24396f61a1d46c6 | refs/heads/main | 2023-07-15T11:05:51.834741 | 2021-08-31T15:10:19 | 2021-08-31T15:10:19 | 401,745,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,719 | h | AWL_Credits_parameters.h | #pragma once
// Name: AWL, Version: 4.24.3
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//----------------------------------------------------------... |
d52481b02fc2d34e2ed4b3e4ae38cba292aa9f16 | 106c0808d4486332d5c4b4265101931b191ae13e | /GameEngineNew/RedObjectScript.h | f6a9fced0e600ed7dc9b3ace708118eae009e889 | [] | no_license | fnk0/MarcusGameEngine | 875caaf30939a3e55b1f3697995d5a4da8e5cec1 | d3a59c4ead708ca75c3f946d32be5fd66d37d732 | refs/heads/master | 2021-01-10T20:06:47.030745 | 2014-12-11T01:53:15 | 2014-12-11T01:53:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | RedObjectScript.h | //
// Created by Marcus Gabilheri on 12/8/14.
// Copyright (c) 2014 Marcus Gabilheri. All rights reserved.
//
#ifndef __RedObjectScript_H_
#define __RedObjectScript_H_
#include "GameObjectScript.h"
class RedObjectScript : public GameObjectScript{
public:
private:
virtual void run() override;
virtual voi... |
cec98b1b4916687e6b6887ccc8ff1ff01cb302c9 | a78d0875997780a4ba963fa9b21adce8505be9d7 | /randgen.cpp | eb17a713452c3d08c2453e851a7b309082bdb01f | [] | no_license | Fertasd/simulation | a8e62a46e1e8c45b2bc8277f9984baf074181b32 | 5e5d9f1a8451c63ac76d49cb05c1d5340ff35d4e | refs/heads/master | 2021-01-17T20:36:56.691845 | 2016-06-17T13:26:45 | 2016-06-17T13:26:45 | 60,847,652 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | randgen.cpp | #include "randgen.h"
#include <cmath>
RandomGenerator::RandomGenerator(int32_t seed) : nd(0) /*initializes the generator from a given seed*/
{
ra[0] = static_cast<int32_t>(fmod(16807.0 * seed, 2147483647.0));
for (int32_t i = 1; i <= M; i++)
ra[i] = static_cast<int32_t>(fmod(16807.0 * ra[i - 1], 2147483647.0));
}
... |
0ed7769b3575af9b8071fbe8849349ea8a9551d3 | f493371b734e0c8af53b8d124d4f0c0ace7a4e1d | /行为型模式/Context.cpp | 409a6a641a6d15faa5fa9126097f28347029d44d | [] | no_license | lazycoding/DesignPattern | 4d019ebbde9adc8c4399843517cf4857894f9cef | 4870f799e5747607a9259701fba10903e4e8a261 | refs/heads/master | 2021-01-22T11:55:22.996812 | 2014-02-27T06:02:36 | 2014-02-27T06:02:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 250 | cpp | Context.cpp | #include "Context.h"
#include "StateA.h"
using namespace std;
Context::Context() :current_state_(make_shared<StateA>()), time_(0)
{
}
Context::~Context()
{
}
void Context::Request()
{
if (current_state_)
{
current_state_->Request(this);
}
} |
c7a7208bbb564aa8922bd09ae7a8014dbbcb8a84 | c65cf5d6124b5e7a21ed47a0ab76055f8aea0499 | /src/BT_LevelList.h | 200e10e7ae874f00d629ddd1889495fd5b75ec9a | [] | no_license | ConnorMacDonell/Interview_Preparation_Solutions | 53c0fa462345b062d9d204839802b0d354e2cc3e | dc633bd80a17ea26df3d779da69d052c726be413 | refs/heads/master | 2020-05-05T13:01:55.957110 | 2019-06-24T06:03:46 | 2019-06-24T06:03:46 | 180,056,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 302 | h | BT_LevelList.h | /*
* LevelList.h
*
* Created on: Mar 19, 2019
* Author: Connor
*/
#include <vector>
#include <queue>
#include <list>
#include <utility>
#include "BT_Node.h"
#ifndef LEVELLIST_H_
#define LEVELLIST_H_
std::vector<std::list<bt_node*> > levelList(bt_node* root);
#endif /* LEVELLIST_H_ */
|
4e5574dba0251880e95f51a21777171a57607527 | f5d87ed79a91f17cdf2aee7bea7c15f5b5258c05 | /cuts/Message_Handler.h | 54bd442264d1e62579431316547efc5539fe55d6 | [] | no_license | SEDS/CUTS | a4449214a894e2b47bdea42090fa6cfc56befac8 | 0ad462fadcd3adefd91735aef6d87952022db2b7 | refs/heads/master | 2020-04-06T06:57:35.710601 | 2016-08-16T19:37:34 | 2016-08-16T19:37:34 | 25,653,522 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,145 | h | Message_Handler.h | // -*- C++ -*-
//=============================================================================
/**
* @file Message_Handler.h
*
* $Id$
*
* @author James H. Hill
*/
//=============================================================================
#ifndef _CUTS_MESSAGE_HANDLER_H_
#define _CUTS_M... |
eac1a4bfb0b9594af313a86873205cd54c1ff8b1 | 59acdae236217431b7eeaccb38e52f17bae10d45 | /Algorithms/plusMinus.cpp | 63002fb6de5ebd3dacaedc65ad85267230820e8e | [
"MIT"
] | permissive | Alex0Blackwell/c-cpp-DSA | 71dfe1015bfa2982eab1c0dfca9cb7c57285bae0 | eb5a4507603b8510abc18223fd99c454e8effc38 | refs/heads/master | 2023-02-18T13:16:25.295792 | 2021-01-13T17:52:58 | 2021-01-13T17:52:58 | 228,251,079 | 3 | 2 | MIT | 2020-10-02T06:27:29 | 2019-12-15T20:55:12 | C++ | UTF-8 | C++ | false | false | 1,636 | cpp | plusMinus.cpp | #include <bits/stdc++.h>
using namespace std;
vector < string > split_string(string);
// Complete the plusMinus function below.
void plusMinus(vector < int > arr) {
double len = arr.size();
double pos, neg, zero;
pos = neg = zero = 0.0;
for (int i = 0; i < arr.size(); i++) {
if (arr[i] == 0) {
zer... |
1750d00d2be21e256e105025bfbe657c5f64c8ae | 7e8ec48c8ca2bea1ea1da63288f6c9aee8a1849a | /Hw5and6/test.cc | 5738f380bb67e462a87d4c5f7a5673bb174f4b7a | [] | no_license | marikaswanberg/ComputerSystems | 33970a618e10313979dd43ab45ff076f57181be2 | 863e7e4df65b1524c16ab534c1d24ea06a931f5d | refs/heads/master | 2020-03-28T02:40:16.186542 | 2018-12-13T22:12:38 | 2018-12-13T22:12:38 | 147,588,392 | 0 | 1 | null | 2018-10-01T01:59:22 | 2018-09-05T22:51:18 | C | UTF-8 | C++ | false | false | 5,457 | cc | test.cc | /*
This file tests our Cache. We modified the tests to only use strings as
the values (as per the API specification)
*/
#include "cache.hh"
#define CATCH_CONFIG_MAIN
#include "catch2.hpp"
// // cache is empty upon initialization
// TEST_CASE("test_init_empty", "[space_used]"){
// Cache mycache(10);
// REQUIRE(... |
96e4e1d2420a125db79d2abb8ae1ab6f3333c374 | 03305ab34e0a379f7b7881b0dafd9b6b0365c8b7 | /main/Solid3Effect.h | d4f73b656072ee2074d488c642b1338f20f43614 | [
"Apache-2.0"
] | permissive | mreierson/neopixel-esp32-firmware | 2471dd69b22c783558f1265b5ac57cf2cde90f8e | cb9e235b5999319a5c0ff618ae8b35a5b5963aae | refs/heads/master | 2020-03-27T05:41:00.868580 | 2018-09-05T02:21:33 | 2018-09-05T02:21:33 | 146,039,461 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,070 | h | Solid3Effect.h | #ifndef SOLID3EFFECT_H
#define SOLID3EFFECT_H
#include "NeoPixelEffect.h"
class Solid3Effect : public NeoPixelEffect {
public:
virtual void init(NeoPixelStrip *strip, uint8_t numParams, uint8_t params[])
{
r0 = params[0]; g0 = params[1]; b0 = params[2];
r1 = params[3]; g1 = params[4]; b1 = pa... |
cd95cc5449d38def445760440bcb5bb3d7b30852 | 1c41663cf064206d51c9cf9a2165f65e60b03d2f | /test/other/cpp11.h | ab01121df2cfd5b0e8e7855aabb1ae9516dce91e | [] | no_license | kevin-chshen/C-11_exercise | f1c64f4c64f0bb5982f90a5ac8144b988a02b61b | 4dfa1fd622f19b9b1a31be870a4d9ca83e0a0a7d | refs/heads/master | 2023-08-23T10:27:07.328729 | 2021-10-17T13:17:28 | 2021-10-17T13:17:28 | 341,764,800 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | h | cpp11.h | #pragma once
class cpp11
{
public:
void run();
private:
void LambdaFunc();
void SharedPtrFunc();
void AllocatorFunc();
void AttributesFunc();
void MoveFunc();
void ForwardFunc();
void ForwardFunc2();
void EmplaceFunc();
void IsSameFunc();
void ResultOfFunc();
void AnyFunc();
void ClassConstMemb... |
e3940ef2b01c18ebc67736aeed065be5c0d5388f | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-ssm-contacts/include/aws/ssm-contacts/SSMContactsServiceClientModel.h | 9044c425b5eecaa5edd6c83f26f395e7fe8c3f27 | [
"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 | 22,716 | h | SSMContactsServiceClientModel.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
/* Generic header includes */
#include <aws/ssm-contacts/SSMContactsErrors.h>
#include <aws/core/client/GenericClientConfiguration.h>
#include <aws/core/client/AWSError.h>
#include <aws/... |
bc64fe2d4fda449984c7952b3afbe87fe198f73a | 4d2d1887c3d7d4cc3e201cafc6bd8b04ecfe4a08 | /Lab09/Dog.cpp | ea805bbc00d2a62f7838add84eec552203441252 | [] | no_license | mgorman7/cse20133 | 4aa52b7753c9f73de6344f4ab97021ee9fedd30c | b767549b97d036529cfb1520f6a0e115be4b2f8e | refs/heads/master | 2023-01-03T13:34:59.217833 | 2020-10-28T11:36:37 | 2020-10-28T11:36:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | Dog.cpp | #include "Dog.h"
// Define the Dog constructor. A dog must have a name and an age.
// Remember, define the member's default constructors if not entered in the method,
// except for the happiness, which should be default at 100.
// All members must be defined in the order of the class.
// Define the me... |
6a335ea8daba8194ff6347eb5d5af705a7567668 | 114d183f85e91502b4f87581521dcfa41a8152a0 | /include/eagine/units/unit/si/electrical_conductance.hpp | 4c0bb87da1368d49e3a752dba4137baf595dd64d | [
"BSL-1.0",
"GPL-3.0-only",
"GPL-1.0-or-later"
] | permissive | ford442/oglplu2 | 5544c888a11b9b2f92c3dd658c914403a6372604 | abf1e28d9bcd0d2348121e8640d9611a94112a83 | refs/heads/develop | 2023-07-28T03:56:59.431213 | 2021-09-01T05:40:48 | 2021-09-01T05:40:48 | 403,495,160 | 0 | 0 | BSL-1.0 | 2021-09-06T05:23:50 | 2021-09-06T05:21:38 | null | UTF-8 | C++ | false | false | 905 | hpp | electrical_conductance.hpp | /// @file
///
/// Copyright Matus Chochlik.
/// Distributed under the Boost Software License, Version 1.0.
/// See accompanying file LICENSE_1_0.txt or copy at
/// http://www.boost.org/LICENSE_1_0.txt
///
#ifndef EAGINE_UNITS_UNIT_SI_ELECTRICAL_CONDUCTANCE_HPP
#define EAGINE_UNITS_UNIT_SI_ELECTRICAL_CONDUCTANCE_HPP
... |
dd0150c628b91290106c6fe9a8cdbaa84aad1b85 | 74fc7c5d39baa6c30aa929e629ff60bf40500c61 | /test/unit-tests/cli/command_mock.h | e050bfa4ee9f2d1bc5597f2fa8881a7e1128997f | [
"BSD-3-Clause"
] | permissive | jhyunleehi/poseidonos | e472be680d0e85dc62f0e2c0d7356dbee74a3bd6 | 1d90e4320855d61742ff37af8c0148da579d95d4 | refs/heads/develop | 2023-07-13T03:37:29.754509 | 2021-08-23T15:26:08 | 2021-08-23T15:26:08 | 393,203,347 | 0 | 0 | BSD-3-Clause | 2021-08-20T00:04:14 | 2021-08-06T00:30:35 | C | UTF-8 | C++ | false | false | 370 | h | command_mock.h | #include <gmock/gmock.h>
#include <list>
#include <string>
#include <vector>
#include "src/cli/command.h"
namespace pos
{
class MockPosInfo : public PosInfo
{
public:
using PosInfo::PosInfo;
};
class MockCommand : public Command
{
public:
using Command::Command;
MOCK_METHOD(string, Execute, (json & doc,... |
ea62e7b57ba70f2fc8189d0e52b2ddee314e8d6d | 634b0984484d2518ec9b9d363a7c08e190f57b80 | /model/src/Stats.cpp | 1be070642ca73c445c9d1bf9d2fda640988296a7 | [] | no_license | jozik/community-rx | faf37aa47163d02b77871b28ca48f36fed83b83b | 695aa0557bab057d72351c772714926997208496 | refs/heads/master | 2023-04-26T01:33:32.363255 | 2021-06-04T06:40:08 | 2021-06-04T06:40:08 | 268,900,558 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,185 | cpp | Stats.cpp | /*
* Stats.cpp
*
* Created on: Dec 15, 2017
* Author: nick
*/
#include "stddef.h"
#include <iostream>
#include "Stats.h"
namespace crx {
void make_beta_type(MPI_Datatype* beta_type) {
MPI_Datatype types[3] = {MPI_DOUBLE, MPI_UNSIGNED, MPI_INT};
int block_lengths[3] = {2, 1, 1};
MPI_Aint disp... |
1f669b1ee874115b4d65d7e31fe92b1fa07748f7 | 9845786e887c1aab0dfaf0de56461db5880135a9 | /Project-1-Code/Token.h | 89e11237b369870ee5c46228f88bfb7b88cae145 | [] | no_license | julianacsmith/cs-236-lab-1 | b38c5f00547eec0f1bc49e07cce9a71448b624ee | 2bd671b42917e0e190bb22e6fbe74b7967a79d11 | refs/heads/master | 2023-08-17T05:45:33.855342 | 2021-09-16T01:47:28 | 2021-09-16T01:47:28 | 406,209,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,566 | h | Token.h | #ifndef TOKEN_H
#define TOKEN_H
#include <iostream>
#include <string>
enum class TokenType {
COLON,
COLON_DASH,
// TODO: add the other types of tokens
COMMA,
PERIOD,
Q_MARK,
LEFT_PAREN,
RIGHT_PAREN,
MULTIPLY,
ADD,
SCHEMES,
FACTS,
RULES,
QUERI... |
3240fd63ae8b4def9f6b76b367b4c55eb0a64d13 | 21ed9af25866f12596884bbf4b93f5ba0d9adade | /ImageProcessing/CDownSampleDlg1.h | 5cb115f4d09ae41842b65e0b872fee6972e204cc | [] | no_license | CheolYongLee/Visual_Studio | 6dc7a7a80807837ea60f41ac20490a5d3967b1aa | f1a330681f39d19069a06e409a15da5d25ca812e | refs/heads/main | 2023-06-23T14:47:33.255186 | 2021-07-27T07:43:00 | 2021-07-27T07:43:00 | 375,936,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | h | CDownSampleDlg1.h | #pragma once
// CDownSampleDlg1 대화 상자
class CDownSampleDlg1 : public CDialog
{
DECLARE_DYNAMIC(CDownSampleDlg1)
public:
CDownSampleDlg1(CWnd* pParent = nullptr); // 표준 생성자입니다.
virtual ~CDownSampleDlg1();
// 대화 상자 데이터입니다.
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG1 };
#endif
protected:
virtual void DoD... |
fc6934332177ea55ea81f3ca90dce18cce363c15 | c8aab3aac9305580d8b682bdabc0f3cb0d646583 | /build_isolated/cartographer/install/cartographer/mapping/proto/submap.pb.cc | 80040de17f320685e7c5cbb7025717a34ae2df99 | [] | no_license | yangliu111111111/cartographer | 9c27a0a93ef20d37c166d3f9d02cf2800cc21956 | 3bff0e53a56243e75519879fcbe8ebbe2b3e8fcb | refs/heads/master | 2023-02-21T00:18:34.507718 | 2021-01-12T05:29:21 | 2021-01-12T05:29:21 | 328,870,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | true | 43,351 | cc | submap.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cartographer/mapping/proto/submap.proto
#include "cartographer/mapping/proto/submap.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include... |
08e7f2252f73fa116afd45363a766adf138adad0 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-mediatailor/include/aws/mediatailor/model/RelativePosition.h | 82724bb51c82b18b4844de625cef35db32e77260 | [
"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 | 698 | h | RelativePosition.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/mediatailor/MediaTailor_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace MediaTailor
{
namespace Model
{
enum class RelativePosition
... |
9a525d308d7a314784024d67dc1b61c581ff14ab | f1d37e57d27b7e84b378bf48710f05cc23927d5b | /Roteiro4/Questao3/Funcionario.cpp | e9f721a052c861770bb6b03117f7e1029120ce32 | [] | no_license | RamalhoDev/Roteiros | cfe95a493c581a6a5bf4ae63497219f379670171 | a5c7871c6bbcef9709f5ea3c4bc1a4821896167a | refs/heads/master | 2020-03-16T03:26:19.434487 | 2018-05-23T17:33:48 | 2018-05-23T17:33:48 | 132,487,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | cpp | Funcionario.cpp | #include "Funcionario.h"
#include <string>
using namespace std;
Funcionario::Funcionario(){
nome = "";
matricula = 0;
salario = 0;
}
Funcionario::Funcionario(const string &nome, int matricula, double salario){
this -> nome = nome;
this -> matricula = matricula;
this -> salario = salario;
}
voi... |
759f4188d6218d62cc5305be206155993633a563 | 34c224c526a05835fbfedbe77c248db7d3dd8e94 | /adlib/test3.cc | 0559ff77ca16791608dbc177fc30c946425b76f1 | [
"BSL-1.0"
] | permissive | rbehrends/AdLib | 8a3ae4cad58e9d5d6de4fa43ba5f32deaf111322 | fb709cc7a116238e864a1cce4f1abd3297714574 | refs/heads/main | 2023-05-13T01:27:06.350880 | 2021-03-17T14:05:22 | 2021-06-02T05:53:51 | 373,054,395 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,071 | cc | test3.cc | #include "lib.h"
#include "set.h"
const char *data[] = {
"alpha",
"beta",
"gamma",
"delta",
"epsilon",
"zeta",
"eta",
"theta",
"iota",
"kappa",
"lambda",
"mu",
"nu",
"xi",
"omicron",
"pi",
"rho",
"sigma",
"tau",
"upsilon",
"phi",
"chi",
"psi",
"omega",
NULL,
};
const ... |
e92da6d809789f444cf21e277d85aa366b0a50c2 | 3ef16236cc4566b03328552843b28adde7389612 | /chromeos/dbus/fwupd/fwupd_update.cc | 6cbda596966ec781f0fe12e4108d1dca8e971e53 | [
"BSD-3-Clause"
] | permissive | moteesh-in2tive/chromium | c5962834c8218ba607846ce59d0ba008be00fe2b | e1e495b29e1178a451f65980a6c4ae017c34dc94 | refs/heads/main | 2023-09-05T00:46:48.898998 | 2021-11-23T19:52:34 | 2021-11-23T19:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 686 | cc | fwupd_update.cc | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/dbus/fwupd/fwupd_update.h"
namespace chromeos {
FwupdUpdate::FwupdUpdate() = default;
FwupdUpdate::FwupdUpdate(const std::string& ve... |
34d6a09f233ea56beb88d14700140c43962f8d60 | bf2c1226aecee49647e1351286af14d489ccb08a | /src/layers/layer.cc | e9fa1315550b92c3441c36be9480ffa00a2f9776 | [] | no_license | WheatBeer/nebula_inference | c684a4fdebce5fe905e285c9e539cb4aa7c12be7 | 46fa2eb6deb21e57d2c4266a97c2d9b16b24f12d | refs/heads/master | 2022-11-16T11:57:36.209236 | 2020-07-18T05:49:47 | 2020-07-18T05:49:47 | 273,401,601 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,019 | cc | layer.cc | #include <cstring>
#include <functional>
#include "layer.h"
namespace nebula {
layer_t::layer_t(network_t *m_network, layer_t *m_prev_layer, layer_type_t m_layer_type) :
layer_type(m_layer_type),
activation_type(activation_type_t::UNDEFINED_ACTIVATION),
input_height(1),
input_width(1),
input_chann... |
743af3a934110a4cc3e2cd9430b7cde64ade272c | 7c4292c562bb1cdeb8b4e5bc7f7dd80f33b2e37c | /src/rulecreator.cpp | 913eeff61dc1103e9d3f8c9e265c5269052f2b82 | [] | no_license | chinadog/rulecreator | 14844e7b6c55ae735bd36cd302c6d10346803054 | 2740134ba747a8e44f164c7380db5c02f8baf8bd | refs/heads/master | 2020-12-03T03:57:46.375534 | 2017-07-12T06:45:02 | 2017-07-12T06:45:02 | 95,787,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,637 | cpp | rulecreator.cpp | #include <QBoxLayout>
#include <QDateTime>
#include <QFileDialog>
#include <QMessageBox>
#include <QTabBar>
#include <Common/Resources>
#include <TRules/TRules>
#include <fstream>
#include "rulecreator.h"
#include <QDebug>
//==============================================================================================... |
113736fe4259a4aec10300595c9371de8655283c | 5ea21725bd5958fbfbb9434d8aad3e4b70f47f10 | /tests/Hexagon/Notifications/NotificationTest.cpp | 30f6ad56230b73ea6e9ddf5358c87e81bf615e07 | [] | no_license | MarkOates/hexagon | 38610a11bee4c57afb36690d3174da47d093d2bb | f103d717848c903dc24f1e6564fdad36d4fc1e23 | refs/heads/master | 2023-08-31T18:00:28.302024 | 2023-08-28T10:35:00 | 2023-08-28T10:35:00 | 147,267,150 | 0 | 0 | null | 2022-08-30T22:44:12 | 2018-09-04T00:36:30 | C++ | UTF-8 | C++ | false | false | 488 | cpp | NotificationTest.cpp |
#include <gtest/gtest.h>
#include <Hexagon/Notifications/Notification.hpp>
TEST(Hexagon_Notifications_NotificationTest, can_be_created_without_blowing_up)
{
Hexagon::Notifications::Notification notification;
}
TEST(Hexagon_Notifications_NotificationTest, body_text__has_a_getter__and_is_initialized_with_the_expec... |
c084a8a6f592b1242cd1460638eae874e13a9ab4 | 373035950bdc8956cc0b74675aea2d1857263129 | /cpp/test-harness/ta3/harness-info-request-handler_test.cc | 777e85170f7abd827c4c8be3bd48a73ef2cdb776 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | limkokholefork/SPARTA | 5d122cd2e920775d61a5404688aabbafa164f22e | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | refs/heads/master | 2021-11-11T21:09:38.366985 | 2017-06-02T16:21:48 | 2017-06-02T16:21:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,845 | cc | harness-info-request-handler_test.cc | //*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: ni24039
// Description: Unit tests for HarnessInfoRequestHandler
//
// Modifications:
// Date Name Modification
// ---- ---... |
3e8e9d09135f4b424401e3d8e27e8bb693eb2a57 | f5d011c82c49c6b754f7652e2f7b1ed308103621 | /firmware/Прочее/noisePerlin/noisePerlin.ino | f2e12e972b3430f24478d70481d5e0fa325d59b7 | [
"MIT"
] | permissive | BellARuss/FireFX | 5a92e26511bd55425c277bd5fdf28912e0a8fe9b | f9b0e087d48a69460ebca45acdd0df7b13cd3069 | refs/heads/master | 2023-08-07T19:44:39.505340 | 2021-09-09T16:07:36 | 2021-09-09T16:07:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | ino | noisePerlin.ino | #include <FastLED.h>
#define SMOOTH_K 0.05 // коэффициент плавности огня
void setup() {
Serial.begin(9600);
}
float zoneValues = 0;
void loop() {
static int counter = 0;
Serial.println(inoise8(counter, counter));
counter += 15;
delay(100);
}
|
dcb0428d6888f80b95baf970f445f20c85ebb4d2 | f26da4e9f242ad9b3f17ba30bffb3e9eb2e9e6ba | /ParseTest/src/main.cpp | 1645591d1b9902be741818db7f1d7a27e4e73346 | [
"Zlib"
] | permissive | fallahn/tmxlite | cb33e9ad972e39fbc0824ff8078a4d058970291d | 2ac30553ceea838966829da22777cc31458db56d | refs/heads/master | 2023-07-23T00:35:40.190433 | 2023-07-13T10:10:48 | 2023-07-13T10:10:48 | 73,632,818 | 420 | 107 | NOASSERTION | 2023-07-13T10:10:50 | 2016-11-13T17:55:24 | C++ | UTF-8 | C++ | false | false | 7,107 | cpp | main.cpp | /*********************************************************************
Matt Marchant 2016 - 2023
http://trederia.blogspot.com
tmxlite - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this sof... |
c4b1d06d733b29361800b259e10602cb90abe2d3 | 430e2e80ad87d0c845f925edcf4d2c07b4c61379 | /MS5/Error.h | 815849d0256d7c08d90cf05865c08e89406b882c | [
"Unlicense"
] | permissive | dtnguyen22/OOP244SFF | 92978a0b8627399a741a8b08a08c8662bdaa83c5 | 7a5e3eee5817f56b19f855818021317ce91c6b8d | refs/heads/master | 2022-01-18T19:00:19.449259 | 2019-08-01T02:54:37 | 2019-08-01T02:54:37 | 197,991,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | h | Error.h | // Final Project Milestone 2 - Error Class
// Error.h
// DucTai Nguyen - 147942171 - dtnguyen22@myseneca.ca
/////////////////////////////////////////////////////////////////
#ifndef _AID_ERROR_H
#define _AID_ERROR_H
#include <iostream>
namespace aid {
class Error {
char* m_errorMessage;
public:
explicit Error(con... |
dcd9bdb98b78d8fb706e1e89ef8cb0af18738c7a | eff12a942ce4740dd582532a32ea8995081f0b49 | /p454.cpp | 87a5ff0feca4bd4f93dbf379b530f5220281a5e6 | [] | no_license | armmah/LeetcodeProblems | a58a5458268f0e876a042493080d5ab6cee6e45b | f828083c433e90f5697ce747bf9e56de14b6642c | refs/heads/master | 2021-01-02T10:25:24.803750 | 2020-03-10T17:30:16 | 2020-03-10T17:30:16 | 239,577,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,774 | cpp | p454.cpp | #include "LeetCodeProblem.h"
#include "Utility.h"
#include <vector>
#include <unordered_map>
// https://leetcode.com/problems/4sum-ii/submissions/
class p454 : public LeetCodeProblem {
// CPU 61%, MEM 32%
int fourSumCount(std::vector<int>& A, std::vector<int>& B, std::vector<int>& C, std::vector<int>& D) {
... |
5d45d61e2e23910991c7256b0605b0de5547fc51 | 8f72438d5f4ca7219df3ae7799c3282faab5e33e | /C++ Programming/05. Fifth Course/04 overView.cpp | b0bb622c78d71a03782bfc2a0ced9c8aeafb187f | [] | no_license | mdzobayer/Problem-Solving | 01eda863ef2f1e80aedcdc59bbaa48bcaeef9430 | a5b129b6817d9ec7648150f01325d9dcad282aed | refs/heads/master | 2022-08-15T22:04:18.161409 | 2022-08-08T11:46:00 | 2022-08-08T11:46:00 | 165,687,520 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 521 | cpp | 04 overView.cpp | #include <iostream>
using namespace std;
class Employee {
public:
void SetName(string name);
void SetEmpNo(int empno);
void SetExtension(int ext);
string GetName();
int GetEmpNo();
int GetExtension();
protected: // functions
private: // functions
public: // data (avoid wherever possib... |
b294d86564fd0322d94f65c232ef7a43165adcdc | a30927331c2468581e21a11e50d8792c2d196e0c | /spoj/WiseAndMiser/misermap.cpp | 201f3f044b6fdc9a7a700714dd25cccd0bc6367b | [] | no_license | abhaymittal/Online-Judges | 8803e30fd37aa8890a3ffb7a84d22eb33c8ee4c1 | c9c2ed19cd303be2f1893e50ef2a3a01ec9fbce7 | refs/heads/master | 2021-01-20T09:13:35.843574 | 2017-01-10T19:04:42 | 2017-01-10T19:04:42 | 101,583,558 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | misermap.cpp | #include<cstdio>
#include<algorithm>
#include<climits>
using namespace std;
int main() {
int N,M,K,temp, cost[102][102], minCost;
for(int i=1;i<102;i++) {
for(int j=0;j<102;j++) {
cost[i][j]=INT_MAX;
}
}
scanf("%d%d",&N,&M);
for(int i=1;i<=N;i++) {
for(int j=1;j<=M;j++) {
scanf("%d",&... |
60db72fd1aed2e3ced0fb6d349fb7421d3833177 | bf393f27196e613e0cbd1ffe66a885fddf92a62a | /core/securesocket.cpp | b9f7b591fbbc31c1c5177128f525bf3132cf1011 | [
"BSD-3-Clause"
] | permissive | Stykk-Gruppen/qTracker-Client | 3e84e80cbb5351674d1abc7d2ba5791f04603222 | 5d80fde660e7edd354020f9273fa54e6f73e99b2 | refs/heads/master | 2023-02-05T01:56:19.140757 | 2020-12-23T04:14:29 | 2020-12-23T04:14:29 | 239,994,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,638 | cpp | securesocket.cpp | #include "securesocket.h"
#include "config.cpp"
#include <iostream>
SecureSocket::SecureSocket(QObject *parent):QObject(parent)
{
}
SecureSocket::~SecureSocket()
{
if(out)
{
BIO_free(out);
}
if(web != NULL)
{
BIO_free_all(web);
}
if(NULL != ctx)
{
SSL_CTX_free(c... |
7bd402d6b9e8824cd62e6fdb2f39672bf3532b88 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium/chrome/browser/extensions/isolated_app_apitest.cc | bc9e2211aeff525deb10914d6e7e58cbc75c678d | [
"BSD-3-Clause",
"MIT"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 6,019 | cc | isolated_app_apitest.cc | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/utf_string_conversions.h"
#include "chrome/browser/automation/automation_util.h"
#include "chrome/browser/extensions/extension_apitest.... |
86d8c6218808261ad79419d6143e3facae501d29 | db1667adf524535b2f0f8bac49751f41b3b58240 | /prog4/func.cpp | 05c97e79c3502ba671b9582ff434b1828c7b82cb | [] | no_license | mcspohrer/163-Data-Structures | 493e79f1f020510c89247940b7f5067730eb4d6e | 8aa8ef626bf122b8d2b4cd63c821ac8646d779b2 | refs/heads/main | 2023-03-21T11:54:11.851784 | 2021-03-16T18:45:37 | 2021-03-16T18:45:37 | 348,456,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,906 | cpp | func.cpp | //Matthew Spohrer
//PSU ID 958566579
//CS163 prog 4
#include "prog4.h"
using namespace std;
//reads in the data from the external data file then stores it on the BST
int read(table & BST)
{
ifstream file_in;
file_in.open("website.txt");
char array[SIZE];
int file= 0;
info * temp = new info;
if (!file_in) retur... |
27bcd203bf917105f2086521a92700000aba8526 | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/boost/1.78.0/libs/geometry/doc/src/examples/algorithms/length.cpp | 71693bcf69b31ece8597cc9a029a5dd3e6e9540a | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 974 | cpp | length.cpp | // Boost.Geometry (aka GGL, Generic Geometry Library)
// QuickBook Example
// Copyright (c) 2011-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LI... |
b16219375df5f098b08a5877c91ecbf0a1b4b778 | 518c1ea218366df02c9d04c08a9944742a94339a | /COCI/COCI-2015-216-Round#1/KARTE.cpp | 2836703069eb1412aacfa8fd958609b1bc566991 | [] | no_license | jhonber/Programming-Contest | 5b670d0e96263926e5d467c7b7c2434328c53c83 | c2aa60acd3ac55f9e58a610ac037b31f52236ad4 | refs/heads/master | 2021-01-24T12:52:39.569485 | 2020-03-13T01:24:32 | 2020-03-13T01:24:32 | 16,530,134 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 485 | cpp | KARTE.cpp | #include<bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
int n = s.size();
map<char, int> mapa;
set<string> st;
for (int i = 0; i < n; i += 3) {
string sub = s.substr(i, 3);
if (st.count(sub) > 0) {
cout << "GRESKA" << endl;
return 0;
}
st.insert(sub);
... |
fac975d14046c4d2974fff2190100b890967bcf8 | f958418bcc7d64378fe92c58b92c3bb1493af46c | /1008.cpp | 8815074e1068bf0ae34cc72edd7c0bff1dc7c9a3 | [] | no_license | yuyuyi/PAT-Basic-Level- | 60f616c5dd3f087017b9ec6404d0ce75befbc73d | 543f93b5ab39196066f97b77c26ea9e8b0ccf0b3 | refs/heads/master | 2022-09-29T17:30:23.212863 | 2020-05-30T12:28:21 | 2020-05-30T12:28:21 | 268,074,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | 1008.cpp | #include<iostream>
#include<algorithm>
#include<string>
#include<vector>
using namespace std;
int main()
{
int num[100];
int n,m;
cin >> n >> m;
for(int i=0;i<n;i++)
{
cin >> num[i];
}
int k;
int z=n;
if(m!=0 && n-m>0) k = n-m;
else if(n-m <0)
{
while(n-m <0)
{
n+=z;
}
k=n-m;
}
else k =0;
... |
e7d1ab41953453f74598f512eefa1dc0c40c5325 | bbe83cf58ea0451d6c03212592e42ac0b0706fea | /image_reprojection_plugins/test/random.hpp | 0fccfd9990b7aa354719ddfe90fa0d479ebd4853 | [
"MIT"
] | permissive | Arslan-Z/image_reprojection | 0539571580f4c71494c2b4cd33c3dfe275ad39cf | 7398c49619f7132ab95d8b9accce90a241d6507a | refs/heads/master | 2023-08-15T03:14:44.005829 | 2021-10-02T11:50:04 | 2021-10-02T11:50:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,698 | hpp | random.hpp | #ifndef IMAGE_REPROJECTION_PLUGINS_TEST_RANDOM_HPP
#define IMAGE_REPROJECTION_PLUGINS_TEST_RANDOM_HPP
#include <geometry_msgs/Point.h>
#include <opencv2/core/core.hpp>
// the global random number generator
static cv::RNG g_rng(std::time(NULL));
// generate random value between a and b
static inline double randomVal... |
e7035a6d8045adeed5bb7e5a58468ab4e4a77d92 | 154ffb7c5e31d36757dd3c7db80bb254ce19581b | /CNodo.cpp | 3a071aabfdfaeece174a681d9f3a47535eb7a351 | [] | no_license | Orlando-BP/Serialization-of-different-objects-in-a-list | 39a98357d14d6c0bcc83e0af71f95fe35c3ddcbf | 200b4a35279e2bad9fa3f51b3636ad330dcfff6b | refs/heads/main | 2023-08-11T02:48:01.020311 | 2021-09-30T02:02:25 | 2021-09-30T02:02:25 | 411,889,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 543 | cpp | CNodo.cpp | #include "CNodo.h"
#include "CSerializable.h"
void CNodo::InsertarAdelante(CSerializable* nd) {
CNodo* PNuevo = nullptr;
PNuevo = new CNodo;
PNuevo->Psig = this->Psig;
PNuevo->Pant = this;
this->Psig->Pant = PNuevo;
this->Psig = PNuevo;
PNuevo->Dato = nd;
}
CSerializable* CNodo::EliminarSig... |
8490ab4b83ea53ca001a5ceeff5c20460d528fe5 | bf276c6108d219d29bab60ccfcefdde4d9c1b65d | /kernel/src/python/py_bs_log.cpp | f8cc02429d991d6a4208a39300bebb696e634128 | [] | no_license | brbr520/bluesky | 4a66be03337a4bbae013489495a9a072ce308692 | a69bda4bf10364a32d9ae2557e6ab4ef5b7ee21a | refs/heads/master | 2021-01-23T22:06:19.260739 | 2013-04-27T12:53:17 | 2013-04-27T12:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,904 | cpp | py_bs_log.cpp | // This file is part of BlueSky
//
// BlueSky is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 3
// of the License, or (at your option) any later version.
//
// BlueSky is distributed ... |
0d164c5cb76a65dc762b0a2b3dc782cfce38f0e7 | 31cd6780df183837a242fcb7df18b530b6d090e6 | /arduino/bus/Bus.h | afdfc9726cc340201a22ad4f01a4a96cacaf2483 | [] | no_license | ttmdear/repository | 22ecb44e5e9232188156f9e6edc4e6687e9133af | 52706275152246c973801a8308bb9312957b1887 | refs/heads/master | 2023-08-17T23:33:47.688660 | 2023-08-16T17:24:51 | 2023-08-16T17:24:51 | 229,145,298 | 0 | 0 | null | 2023-07-23T00:51:34 | 2019-12-19T21:58:28 | Makefile | UTF-8 | C++ | false | false | 1,279 | h | Bus.h | #ifndef LIGHT_GARDEN_CONTROLLER_BUS_H
#define LIGHT_GARDEN_CONTROLLER_BUS_H
#include <Arduino.h>
#define STATE_IDLE 0
#define STATE_READ 1
#define STATE_TRANSMIT 2
#define SIG_TIME 200
class Bus {
private:
char state = 0;
unsigned long time = 0;
unsigned long transmitTime;
unsigned long transmitBitA... |
7576de2fae3c63d0ad64c56547574594b5c9080b | ce4800790395bfc62ec582413a768c55e781e5b8 | /leetcode/1402. Reducing Dishes.h | d6f03e93898141200e723f54cfa4294943836905 | [] | no_license | apel13/cpp-training | 5168bebcb7df3d9f4924f751622eeeae56628b96 | a9103f83f20138c63064871d9964d67e56b1ecf4 | refs/heads/main | 2023-03-17T12:52:54.858106 | 2021-03-07T19:31:32 | 2021-03-07T19:31:32 | 319,043,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | h | 1402. Reducing Dishes.h | //
// Created by apel on 29.12.2020.
//
#ifndef CPP_TRAINING_1402_REDUCING_DISHES_H
#define CPP_TRAINING_1402_REDUCING_DISHES_H
// problem:
// https://leetcode.com/problems/reducing-dishes/
class Solution {
public:
int maxSatisfaction(vector<int>& satisfaction) {
int n = satisfaction.size();
std... |
647d732dd46c979a95659fa8509602acefae8a48 | 2f2c0d04dbe3b9e40a5c2a012c0e5dfd4b3b514a | /Fibo.cpp | 52e9c21c86e2f47a75ea02f8ba73b2188a25f2a6 | [] | no_license | kksiom/20210720_codingtest | 01ac1474817d407c3d6829ee4ce465a5c09300a3 | 63996ea9820ac20d65c4f56138c69ad7a04a298c | refs/heads/master | 2023-06-21T00:25:15.556030 | 2021-07-25T06:27:18 | 2021-07-25T06:27:18 | 387,780,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 313 | cpp | Fibo.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<int> dt(100, 0);
int fibo(int x){
int result =0;
if (dt[x]!=0)
return dt[x];
dt[x] = fibo(x-2)+fibo(x-1);
return dt[x];
}
int main(){
dt[1] = dt[2]=1;
int result = fibo(40);
cout << result <<endl;
return 0;
} |
8f8e78c4442a036dd99453b4413e233e0ccbc4b9 | 9411845e7ea1f914982d2fd18b35832d3eefc388 | /Bones.Engine/DirectionalLightShadowMap.hpp | 5d89d93f4f1d1771c3ba554c4e7aa8f46133b54a | [] | no_license | luka712/bones | d7a7022aead03731da7754c10bb794ad64e5dee8 | 04a20127f45150a53ead4146093354ffc3f2033b | refs/heads/master | 2023-03-19T20:50:42.948779 | 2021-03-11T23:13:37 | 2021-03-11T23:13:37 | 320,836,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,951 | hpp | DirectionalLightShadowMap.hpp | //#pragma once
//
//#include <iostream>
//#include <string>
//#include "BaseTexture.hpp"
//#include "core_types.h"
//#include "DirectionalShadowShader.hpp"
//
//using namespace std;
//using namespace Bones::Shader;
//using namespace Bones::Textures;
//
//namespace Bones
//{
// namespace Shadow
// {
// struct ShadowMap... |
2af43e1ce5552547e25b3daf4a2b11050abdd45a | abc890e58719c78d41bb5661bae1fa9eedbc4124 | /cdfb.cpp | 3db78dc7b4841d3bebd7ef99cd4e81ead65bb905 | [] | no_license | MHaq23/CC_Solutions-Codechef-Codeforces- | 2d8337dbddda088a66114dd9f07271d05ee895cf | f8b5cf1310c4892d627267766478fc375582fbe4 | refs/heads/master | 2021-01-02T18:36:47.403032 | 2020-02-11T11:45:13 | 2020-02-11T11:45:13 | 239,746,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 640 | cpp | cdfb.cpp | #include<bits/stdc++.h>
using namespace std ;
#define int long long
signed main(){
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
string s,s1="",s0="";
cin>>s;
int _front=0,_back=0,max_dist=0;
for(int i=0;i<n;i++)
{
s1+="1",s0+="0";
}
if(s==s1)
{cout<<2*n<<endl;cont... |
60e6e46e0419fbb6ff0c514411dca5d6f9fd6bc8 | 4f74100af8077e8ddf6ccfee577d4c2715a2ee64 | /lib/SDL2/include/SDL2/unique_resource.h | dd7febb1dfbf06d59f7823b50094e9ef15e9b22e | [
"BSL-1.0"
] | permissive | KABoissonneault/OpenMM3 | cd4f7a640c3137d4e616cccbc9073165e07703d5 | b1b543392f5233104b99dc72b3c6ec0cf3c47b6a | refs/heads/main | 2023-04-15T16:55:09.775005 | 2021-05-03T20:09:24 | 2021-05-03T20:09:24 | 363,252,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 814 | h | unique_resource.h | #pragma once
#include <memory>
struct SDL_Window;
struct SDL_Renderer;
struct SDL_Texture;
struct SDL_Surface;
namespace omm::sdl
{
struct window_delete
{
void operator()(SDL_Window* p) const noexcept;
};
struct renderer_delete
{
void operator()(SDL_Renderer* p) const noexcept;... |
eb018a52048437e25b8d529c58f9f4949485de14 | a5e00504919bb338910de4cc5c3c3c4afb71e8c6 | /CodeForces/contest/1301/c.cpp | e4748799a419e8a6d97de38b4205633c0f10a1d9 | [] | no_license | samuel21119/Cpp | f55333a6e012e020dd45b54d8fff59a339d0f808 | 056a6570bd28dd795f66f31c82537c79eb57cc72 | refs/heads/master | 2023-01-05T15:14:55.357393 | 2020-10-20T23:32:20 | 2020-10-20T23:32:20 | 168,485,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | cpp | c.cpp | /*************************************************************************
> File Name: c.cpp
> Author: Samuel
> Mail: enminghuang21119@gmail.com
> Created Time: Fri Feb 14 11:21:30 2020
*************************************************************************/
#include <bits/stdc++.h>
typedef long long ll;
us... |
a90e3e65e698c4bb33ea5003e845b80429fef770 | 29ba22c4fe73a3f5c6c13ae6ba4bb493fd2f957c | /utility.cpp | 45d23de9990db3589e66b769a74a4d79d04b1b8e | [] | no_license | mingchengzack/2D-Drawing-System | 6681ac0a023a4951252c87838888b8c2cf53a2cd | 78ea4ea27c8e23434f21ba5e218bd8e51b7074ff | refs/heads/master | 2020-04-11T15:13:00.111927 | 2019-10-10T19:37:12 | 2019-10-10T19:37:12 | 161,883,815 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | cpp | utility.cpp | #include <cstdlib>
#include <cmath>
#include <fstream>
#include <iostream>
#include "utility.h"
using namespace std;
//rounding function
int rd(const float a) { return int(a + 0.5); }
//turn pixel(x,y) to (r, g, b) value
void MakePix(int x, int y, float r, float g, float b)
{
//if it is inside the win... |
8e065e147df3dc475e4472c7910678b271d84c9c | f55f34c95fc3d28b818565bf8f20f5ee99ebf97f | /VoxwellEngine/Biomes/Mountains.h | d5d5c64868f9448a6309a2ae0baaaaa4064c2dd1 | [] | no_license | gtier/VoxwellEngine | 2ac5c8d54f332d16e8780e89f5749a05f1f66c6f | 551de7b04cbd35fa29cecdb632a7d46c93c0157e | refs/heads/master | 2023-08-22T11:51:53.341222 | 2021-09-09T19:22:06 | 2021-09-09T19:22:06 | 404,835,601 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 551 | h | Mountains.h | //
// Created by Griffin Dunaif on 3/17/21.
//
#ifndef FINAL_PROJECT_MOUNTAINS_H
#define FINAL_PROJECT_MOUNTAINS_H
#include "../ves.h"
#include "../Biome.h"
#include "BiomePreset.h"
#include "../PerlinNoise/PerlinNoise.hpp"
using namespace glm;
class Mountains : BiomePreset {
public:
Mountains(glm::ivec3 locati... |
539b8d8464783e4e749b6a77d1dd5a45b4af9847 | 80ebe41d667deb94da96585525e4b4f4638476cd | /BattleCityApp/BattleCityApp/check_threads_funcs.cpp | cc6b299f8671e3940c480f5f64e910675363bb0e | [] | no_license | HelgeID/BattleCityApp | 0a1f6a4ff4ebc00424923eaf843ecfadd291d215 | c9d74b1a6816d031ffd55c93410eb91ccc5a66e6 | refs/heads/master | 2020-06-28T22:41:40.067080 | 2019-07-31T08:00:00 | 2019-10-13T20:19:27 | 199,274,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,500 | cpp | check_threads_funcs.cpp | //FINAL
#include "check_threads.h"
#include "field.h"
bool ThreadsCheck::isCloseThread() const
{
auto status = future.wait_for(std::chrono::milliseconds(0));
return (status == std::future_status::ready);
}
bool ManagerThreads::isThreads(std::vector<ThreadsCheck*>& vecThsCheck)
{
if (!vecThsCheck.size())
return... |
63df4bc18d0db3c797175605d17cf9bd22d8f298 | a9f6090a8e11cbc4b9ce2f655438367a381922db | /src/Jeu/Etat.cpp | cb030f9336b21c23eedc1bd793bec1ff59ff03af | [] | no_license | gitter-badger/CPP-AK-ME-DDZ | 6219207ea4aa20f30323b5f05b0056f20eb049fd | 4c147705b1fe91a7a684d63504e9e8833ffa39f2 | refs/heads/master | 2021-01-23T21:43:42.650629 | 2015-01-30T20:51:56 | 2015-01-30T20:51:56 | 30,090,357 | 0 | 0 | null | 2015-01-30T20:55:51 | 2015-01-30T20:55:51 | null | UTF-8 | C++ | false | false | 212 | cpp | Etat.cpp | /*
* Etat.cpp
*
* Created on: 27 janv. 2015
* Author: Amin
*/
#include "Etat.h"
Etat::Etat() {
// TODO Auto-generated constructor stub
}
Etat::~Etat() {
// TODO Auto-generated destructor stub
}
|
bf705d50369f97e843e00b3723ecfd859057b944 | 45e170edfd7b4448d356ae1c7f7f832889dc9348 | /uebung6/toh.cpp | 95190051ef7d5e0445cd1a3df05185cdd77eea49 | [] | no_license | Boffmann/PT2 | 53ebe61b52e1725db32e00f61cb2854ba4c5cd64 | 04277f14f033c5be95ea1b08c4bac9bc3e95ee6b | refs/heads/master | 2021-01-16T23:07:13.376967 | 2015-07-11T18:51:27 | 2015-07-11T18:51:27 | 34,122,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,901 | cpp | toh.cpp |
#include <cassert>
#include <iostream>
#include <string>
#include <cstddef>
#include <vector>
#include <cstring>
#include <cmath>
static const auto N = 5;
//static const auto N = 4;
auto A = std::vector<int>();
auto B = std::vector<int>();
auto C = std::vector<int>();
void print()
{
#ifdef... |
c9de0f43c205fe66d7ba95f7794c718258fec00a | 22be20ebaab75b3fe0a4c0f8e799dc5b8da5fbaf | /Lab3/Lab3/Arrive.cpp | 7eacbe5c7d690379f3ba76d50a4a799abd5b30c6 | [] | no_license | AllexisAlvarico/AI-Labs | cfbeabbb209f03eb75cc8d00a4cc7ba69b970d05 | 58e38dad0abb91b78539601bf0543c35c640d9b0 | refs/heads/master | 2023-09-02T17:31:47.941639 | 2021-11-19T10:24:41 | 2021-11-19T10:24:41 | 412,156,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,717 | cpp | Arrive.cpp | #include "Arrive.h"
Arrive::Arrive()
{
setupSprite();
}
void Arrive::setupSprite()
{
if (!m_texture.loadFromFile("ASSETS\\IMAGES\\enemyArrive.png")) {
std::cout << "Error enemy's texture not found!" << std::endl; // Error on texture
}
m_texture.setSmooth(true);
m_sprite.setTexture(m_texture);
m_sprite.setPos... |
f40028667c3faa5427e595163bd1a212f6405b47 | 11d76a0f99bf8515c0e4a58e141ab180b2e6ea78 | /newpropertydialog.cpp | a4cffae9f64dee92c0cd076460d3e6e2fe7e4eae | [] | no_license | frl1317/UIEdit | 698d36fe06a5230694b6baabbf86affc626b9a5d | 5cd599eabacdd92d50bfee346620e5557c70c2ba | refs/heads/master | 2020-12-25T19:14:47.660741 | 2014-03-27T08:11:47 | 2014-03-27T08:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | cpp | newpropertydialog.cpp | #include "newpropertydialog.h"
#include "ui_newpropertydialog.h"
#include "view.h"
NewPropertyDialog::NewPropertyDialog(View *view):
ui(new Ui::NewPropertyDialog)
{
ui->setupUi(this);
QVBoxLayout *l = (QVBoxLayout *)layout();
//l->addWidget( &browser, -1, Qt::AlignVCenter);
l->addWidget(ui->butto... |
93277395a1643fc9c1817111d8e3eb3956f07b71 | 5ca2f162f0d3a3d63cb6e014c4146e75f4e063d3 | /4.1.cpp | 2d21ae234245de2a983be4101d8251a850406dba | [] | no_license | escape0707/cplusplus-primer-exercises | 126b437b3d258a902cbe4e78367925e2420b3dc2 | 2d4905769ea54bb15137ea7e6c590a2109428a1b | refs/heads/master | 2021-07-07T18:03:13.034296 | 2020-11-07T11:53:49 | 2020-11-07T11:53:49 | 202,526,516 | 0 | 0 | null | 2019-10-15T08:22:22 | 2019-08-15T11:06:50 | C++ | UTF-8 | C++ | false | false | 394 | cpp | 4.1.cpp | #include <cstddef>
#include <cstring>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
using std::begin, std::end, std::cbegin, std::cend;
using std::cin, std::cout, std::endl;
using std::size_t, std::ptrdiff_t;
using std::string;
using std::strlen, std::strcmp, std::strcat, std::strcpy;
usi... |
689d0c2bf3331b65be460d2684a3c7ae9b6d280c | bda32ed222d39dc25dffc63111d31af719ead2f2 | /Day - 0/Aryan-Singh-Chauhan.cpp | 4f103e7d228783d652460458b2d2ee8a8e509af1 | [] | no_license | UtkarshBhardwaj123/Commit-Ur-Code | 20a15fd6115f3c8cee32854054e962ad14a845ac | 029d04e05c6e5237703e46c99f4eb178d492836f | refs/heads/main | 2023-08-28T08:35:50.259567 | 2021-10-17T18:53:39 | 2021-10-17T18:53:39 | 415,533,097 | 0 | 0 | null | 2021-10-11T03:20:54 | 2021-10-10T08:54:49 | Java | UTF-8 | C++ | false | false | 632 | cpp | Aryan-Singh-Chauhan.cpp | // chauhan739's boilerplate for competetive programming
// press F9 to compile
#include <bits/stdc++.h>
typedef long long int ll;
typedef unsigned int ui;
typedef unsigned long long int ul;
using namespace std;
int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt"... |
c7dfa6bf8fecbb38abc351d29e240ed54afd3d27 | 7ad3607feeff61b51fb8a3c101691e1e99671138 | /Number Theory/Multiple occurrence.cpp | 9b4c4fa3cde1aef750229e686ba7a4b68717c48e | [] | no_license | Md-Johaer-Plabon/Hackerearth-Solution | 15c0662ef860798b5ce06272d07edc843c3cf75a | 36743c23cea0b67ccf541dce276132453c9f0d9b | refs/heads/main | 2023-02-21T10:22:59.722264 | 2021-01-18T08:10:51 | 2021-01-18T08:10:51 | 329,932,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | Multiple occurrence.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
ios::sync_with_stdio(0);
cin.tie(0),cout.tie(0);
map<int,pair<int,int> >mp;
map<int,pair<int,int> >::iterator it;
int t;
cin>>t;
while(t--){
mp.clear();
ll n,x;
cin>>n;
for(int i=1;i<=n;i++){
cin>>x;
if(mp[x].first==0... |
0c7a01fdb610474e99e6db3c52246f19c9bee528 | b831b6968b4450f5db6ce79603a7fe015e0da979 | /day05/ex02/RobotomyRequestForm.hpp | 9e88338cd7d72db3903c9130385b92028b7d830e | [] | no_license | RinatNur/CPP_Module | 486927b782b27da8d461805a7803af454ff1ef5a | d7ebf39392e8586ce93960bf3f6a2c2bb9a591e5 | refs/heads/master | 2023-04-02T09:23:31.701456 | 2021-04-03T16:50:25 | 2021-04-03T16:50:25 | 339,352,078 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 570 | hpp | RobotomyRequestForm.hpp | //
// Created by Rinat Nurutdinow on 3/23/21.
//
#ifndef DAY05_ROBOTOMYREQUESTFORM_HPP
#define DAY05_ROBOTOMYREQUESTFORM_HPP
#include <iostream>
#include <string>
#include "Form.hpp"
class RobotomyRequestForm : public Form {
private:
std::string szTarget_;
public:
RobotomyRequestForm(const std::string& szTarget)... |
7e9afcb182eb7d2c1981c4b4430c520f92f26a96 | 366e085423920b0d9845ba1574bff3158f84e43f | /Projects/Yac/Yac/Core/Text/Line.h | 501158b7ba86cbb9d45d7b8770eb35a56d633089 | [] | no_license | dSyncro/Yac | e652511684f1586ebd29b578117b34ca8741f30e | 31223462f4bad4cd79a3e4c7074297a4b5520a56 | refs/heads/master | 2023-06-22T12:03:20.593667 | 2021-07-23T15:51:33 | 2021-07-23T15:51:33 | 226,870,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | h | Line.h | #pragma once
#include "TextSpan.h"
#include <string>
namespace Yac {
struct Line final {
public:
Line(const std::string& text, TextSpan span)
: _text(text), _span(span) { }
char operator [](UIntT index) const { return _text[index]; }
const std::string& getText() const noexcept { return _text; }
co... |
908e51ae00c51649ad9946547cc1d343a6e08d64 | cb7e7486374cc995045d003c6c08be405364498e | /src/qpid/broker/Lvq.cpp | 34f080c57f877f4cbb966d8b86241c27da1ce0ba | [
"Apache-2.0"
] | permissive | apache/qpid-cpp | f7e05f2d2fa0e90988634cfe309a58b74a42d50d | 1077fe6b2a2e0db9921e8cf10ec3a4ce19d64fad | refs/heads/main | 2023-08-29T05:27:02.237085 | 2023-04-17T10:03:01 | 2023-04-17T10:03:01 | 62,698,709 | 86 | 81 | Apache-2.0 | 2023-04-17T10:03:02 | 2016-07-06T07:00:07 | C++ | UTF-8 | C++ | false | false | 2,217 | cpp | Lvq.cpp | /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
ef98f7833c81656044773ee3147ac400aec412b5 | 23c84c283f0dd2ffe6811e85d5924102a05d7ed1 | /UVa/V110/11059 - Maximum Product.cpp | e42048645a1537a6f3fd46f47fbc2fbbbb4dbfc3 | [] | no_license | HJackH/OnlineJudges | efaaaf35fabeb5393a3fefac9a19e3c89a535b3b | 1e5bfc7ad13cc171e16d562a4cac0bcdc92bbce2 | refs/heads/master | 2022-07-08T21:31:37.960165 | 2022-06-22T07:01:57 | 2022-06-22T07:01:57 | 245,434,136 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | 11059 - Maximum Product.cpp | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 18 + 5;
int n;
long long a[MAXN];
int main() {
int kase = 0;
while (cin >> n) {
for (int i = 0; i < n; i++) {
cin >> a[i];
}
long long ans = 0;
for (int i = 0; i < n; i++) {
long long tmp =... |
5609467be4048461ecd836869f771f043a556eac | 9a93d6d697164ccd4386ce455fb7824217a68667 | /Diff_enum_and_enum_class.cpp | c2be26047a3d3608e894bd75a067839562145465 | [
"MIT"
] | permissive | MaajidKhan/DesignPatterns_In_cpp | 6f2a7edcc2a03658b15998691fa6f3538dd94fc2 | d40a65cf76c5a927b5527a63b3ffc3da6ed3956f | refs/heads/main | 2023-05-30T20:18:18.378945 | 2021-06-06T13:39:47 | 2021-06-06T13:39:47 | 324,754,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,688 | cpp | Diff_enum_and_enum_class.cpp | #include <iostream>
using namespace std;
int main() {
// plain Enum
enum Color1{ red, green, blue };
Color1 c1 = red;
switch(c1)
{
case red :
cout << "red" << endl; break;
case green :
cout << "green" << endl; break;
case blue :
cout << "blue" << endl; break;
}
/*
Difference 2:
in... |
554237229ea10b1d1a777301886da57442c306a3 | 4d39cde46cc7a7e82c590179cb2ffdf94f753169 | /include/export.h | e744c348bf9eafcb1669ca09ffc80787c4f60aa5 | [] | no_license | tomtzook/pe | 5ccead95627ba2617219fd4afe81c6bafb4d54c7 | 411598d89c1bab7c3f2e8b9f695767d483cea11d | refs/heads/master | 2023-07-19T06:15:58.998284 | 2021-09-07T15:32:49 | 2021-09-07T15:32:49 | 403,682,713 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,634 | h | export.h | #pragma once
#include <iterator>
#include "winnt_def.h"
#include "section.h"
namespace pe {
class ExportedNamesTable {
public:
using name_type = const char*;
using ordinal_type = export_ordinal_t;
class iterator;
struct entry {
public:
entry(const entry& entry);
entry& operator... |
81df4a69cea98f8ac4a65fb1b4e71b07e61a29ed | 65deabfadbc675929f17e280156597f92cf2480d | /laughing-pancake_tools/UIGenerator/UIGenerator/bin/Debug/combo.cpp | 4f7ce1a7512ac9d8576fe1b2538e6b4a0ced0129 | [] | no_license | Frogp/laughing-pancake | ab4121bd3ce59d96ebbb81d62d4b040ed3838938 | bf102cf2ddfdfbdf1e9e7b5af586882924ca4213 | refs/heads/master | 2021-05-04T02:41:05.858104 | 2016-07-21T17:52:22 | 2016-07-21T17:52:22 | 55,394,402 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 931 | cpp | combo.cpp | /// <summary>
/// 디자이너 지원에 필요한 메서드입니다.
/// 이 메서드의 내용을 코드 편집기로 수정하지 마십시오.
/// </summary>
#include "combo.h"
#include "cocostudio/CCSSceneReaderext.h"
#include "cocostudio/CocoStudio.h"
USING_NS_CC;
using namespace cocostudio;
using namespace cocos2d;
using namespace ui;
combo::combo()
{
root = GUIReader::shareReader(... |
d11a97d228d7a8e3a5a7c65205fe3ea2684c8615 | c93abb5a3d88dbc9a55bd449ad50ae9e39d971a1 | /MiniTreeFormat/MTFormat/src/MTVertex.cc | 23d6b249173da8a06c7329d6e7b9ec11e75fdd37 | [] | no_license | fhoehle/NTupleFWKIPHC | 883fba9bbb79a9351d0fe818ac35660f071b7d45 | 03c379461b02efa484f9d428f650e3a83e9490b7 | refs/heads/master | 2020-08-05T00:52:23.238768 | 2013-05-21T23:12:54 | 2013-05-21T23:12:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 308 | cc | MTVertex.cc | #include "../interface/MTVertex.h"
using namespace TopTree;
using namespace std;
//using namespace edm;
//using namespace reco;
MTVertex::MTVertex ()
{
}
MTVertex::~MTVertex ()
{
}
void
MTVertex::Reset ()
{
p3Err.SetXYZ (0.0, 0.0, 0.0);
}
void MTVertex::DumpExtended(std::ostream & os){
Dump(os);
}
|
f9b6686cd99b171318b41c147942aa74b127d7d6 | 9838ecc040260b8403456df421746c4fee531b73 | /inc/algorithms.h | f570e5fa0ddde1b1a00dddf5c5aadc55ecf81597 | [] | no_license | rishabhjain08/Workflow-Systems | 27d97354d5b0229a8b160a738f2517730cd44716 | a8278a9fd80ac7dece37204751e35e500c1ab7fb | refs/heads/master | 2021-01-20T15:36:13.729765 | 2011-11-14T18:34:46 | 2011-11-14T18:34:46 | 2,774,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,970 | h | algorithms.h | #ifndef ALGORITHMS_H
#define ALGORITHMS_H
#include <stdio.h>
#include <vector>
#include <string>
#include <queue>
#include <stdlib.h>
#include <queue>
#include <math.h>
#include <iostream>
#include <fstream>
#include <sstream>
#define TEMP 10
#define CONFIRMED 20
#define UNMET 5
using namespace std;
//extern vector... |
f9a1a9f4757d00b1184670eec7c24ec1ef529eb8 | a0d97e57842892f29e77fb477441f86078d3a356 | /sources/layers/movelayerundocommand.cpp | 8941d30943586722f9ec18b18aa0bfbd473361c1 | [] | no_license | ymahinc/MyTypon | 89cac5385edeed2d171392e2160b62bf6ed2fd7f | 5fa2548d2cfa909575797474c66361772c9ce397 | refs/heads/master | 2020-04-27T21:03:20.178564 | 2019-03-09T10:56:12 | 2019-03-09T10:56:12 | 174,682,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | cpp | movelayerundocommand.cpp | #include "movelayerundocommand.h"
#include <QDebug>
MoveLayerUndoCommand::MoveLayerUndoCommand(LayersStack *stack, Layer *layer, bool up)
: m_stack(stack), m_layer(layer), m_up(up){
if ( up )
setText(QObject::tr("Move %1 layer up").arg(layer->name()));
else
setText(QObject::tr("Move %1 lay... |
f731dbe9ce708f7342c73c6500cb9f250f823414 | bf38282baabbff7996de206ba817489b3c965739 | /Old Sketches/Original_Controller/Original_Controller.ino | 6cf7d9cebc56f44c81cb8a2a2b27f56c500ab348 | [] | no_license | TeamWhizzard/EECE-281-Project-1 | bffdf7551fa243503d5dc82e72d0cf32b628280a | d15fc7dd8999a5fcc84d23266b005486f0f360c2 | refs/heads/master | 2020-05-18T14:07:20.088833 | 2015-03-15T06:49:19 | 2015-03-15T06:49:19 | 31,488,683 | 2 | 0 | null | 2015-03-10T02:33:38 | 2015-03-01T06:17:33 | C++ | UTF-8 | C++ | false | false | 15,821 | ino | Original_Controller.ino | #include <LiquidCrystal.h> //For LCD functionality
#include <Wire.h> //For Gyro/Accell functionality
#include <Math.h> //For calculating angles (arctan function)
#include "WhizzardTone.h" //For playing Pacman music
//LCD Constants
b#define RS_PIN 4
#define E_PIN 7
#define D4_PIN 8
#define D5_PIN 9
#define D6_PIN 10
#de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.