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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b889d22b3474ba2421b9d3c1ca11fe61deb09319 | 3e644fa536a60c449ed44c674ec437c10d4e74bf | /WorldBuildingModule/OpenSimScene/OpenSimSceneExporter.cpp | 9dfaf05c5b4f4510842a99b562890078a86799df | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jarmovh/naali | 3a29a2baff715637a0986ed56d3f6e433772f9e2 | bcbd92499cdbb6e891774a4694a150bf06499e22 | refs/heads/master | 2021-01-09T05:40:50.550403 | 2011-08-12T05:42:22 | 2011-08-12T05:42:22 | 1,462,841 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 34,466 | cpp | OpenSimSceneExporter.cpp | // For conditions of distribution and use, see copyright notice in license.txt
#include "StableHeaders.h"
#include "OpenSimSceneExporter.h"
#include "OpenSimSceneService.h"
#include "WorldBuildingModule.h"
#include "SceneParser.h"
#include "UiServiceInterface.h"
#include "UiProxyWidget.h"
#include "TextureServiceInt... |
9dfe9d441dd59dc63cfc31172e4e3248919900df | 96ba02fd095db9b9ceed80df5d3fef7267473e3d | /src/tracking_node.cpp | 3065cad55b35a9fec83927fa0ce0c200efdc87fc | [] | no_license | synioe/xiaoqiang_track | 81daf448e01a989b7da6496618445ed74c8bfb1a | 164dd5606bf615210b28536fc0fa582c5daa83e0 | refs/heads/master | 2020-03-22T12:30:40.825159 | 2018-07-03T01:11:58 | 2018-07-03T01:11:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,650 | cpp | tracking_node.cpp |
/******************************************************************************
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Bluewhale Robot
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Soft... |
965e0f4f80ccc77a37979303233929296776df9e | b7461f820e656a5414c16db21e566148d165709c | /CalibrateCamera.h | c76b1ff39cd219810f73b0f5f8850dcbd1ab6d63 | [] | no_license | DSC2035/VHeightProjective | 7507d19fba145ddce60c8d473520531fac1c0a63 | dafeadd387fe191a1153c2eabeba8110ec44a13c | refs/heads/master | 2021-01-23T03:53:06.503352 | 2017-08-10T02:51:06 | 2017-08-10T02:51:06 | 86,129,876 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | h | CalibrateCamera.h | #pragma once
#include "FunctorClassI.h"
class CalibrateCamera :
public FunctorClassI
{
public:
CalibrateCamera();
~CalibrateCamera();
virtual const char* GetDescription();
virtual void Run();
};
|
9766914ffc0855177868e0b9e69b50b3335d9f2b | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /ash/wm/workspace/backdrop_delegate.h | bbf3ddf8a10c5f1471922ae83ec33ebc2fd200af | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 788 | h | backdrop_delegate.h | // Copyright 2014 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.
#ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_
#define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_BACKDROP_DELEGATE_H_
#include "a... |
eeddbf1237416a26bf530678eeec758bf9d2f54d | 56158f389e97c9d2b0592b99fc76964bc3bcb5a1 | /libraries/TGRSIAnalysis/TEmma/LinkDef.h | af8d50f263029d62789d8524c1316d07b3b8907e | [] | no_license | GRIFFINCollaboration/GRSIData | 48cb16563bdd8626f29ddb55522db1452d175bb0 | b6206a400453a92b19e338421e32818931f42153 | refs/heads/main | 2023-06-09T16:12:02.310812 | 2023-05-31T19:58:03 | 2023-05-31T19:58:03 | 145,007,439 | 2 | 11 | null | 2023-05-31T19:58:04 | 2018-08-16T15:35:09 | C++ | UTF-8 | C++ | false | false | 289 | h | LinkDef.h | //TEmma.h TEmmaHit.h
#ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ nestedclasses;
#pragma link C++ class TEmmaHit+;
#pragma link C++ class std::vector<TEmmaHit>+;
#pragma link C++ class TEmma+;
#endif
|
94f0b67df9392b6a1b07afc7336931582a5e9dc6 | 4749b64b52965942f785b4e592392d3ab4fa3cda | /content/shell/browser/shell_notification_manager.h | 7520d15e67829d01938134ba6c7800efd4cb9786 | [
"BSD-3-Clause"
] | permissive | crosswalk-project/chromium-crosswalk-efl | 763f6062679727802adeef009f2fe72905ad5622 | ff1451d8c66df23cdce579e4c6f0065c6cae2729 | refs/heads/efl/crosswalk-10/39.0.2171.19 | 2023-03-23T12:34:43.905665 | 2014-12-23T13:44:34 | 2014-12-23T13:44:34 | 27,142,234 | 2 | 8 | null | 2014-12-23T06:02:24 | 2014-11-25T19:27:37 | C++ | UTF-8 | C++ | false | false | 1,666 | h | shell_notification_manager.h | // Copyright 2014 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.
#ifndef CONTENT_SHELL_BROWSER_SHELL_NOTIFICATION_MANAGER_H_
#define CONTENT_SHELL_BROWSER_SHELL_NOTIFICATION_MANAGER_H_
#include <map>
#include "base/ca... |
26fc9fba5626e0a534767712d241ff6afcd6a9a6 | aab3a814eb3086dcba0e4474cda4434453c78246 | /src/MainForms/DateCountTabWidget.h | ef869bb08dd26be1306dd81e3c766601918ac0da | [] | no_license | isliulin/Msigma_DAR | 239744e60905a81381c50244dbda1bcce199f725 | 93b441b2c2c0b2b454f30617319a125022bc5f65 | refs/heads/main | 2023-08-25T18:20:36.534371 | 2021-10-13T02:01:53 | 2021-10-13T02:01:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,151 | h | DateCountTabWidget.h | #ifndef DATECOUNTTABWIDGET_H
#define DATECOUNTTABWIDGET_H
#include <QWidget>
#include <QTableWidget>
namespace Ui {
class DateCountTabWidget;
}
class ModelBase;
class DateCountTabWidget : public QWidget
{
Q_OBJECT
public:
explicit DateCountTabWidget(QWidget *parent = nullptr);
~DateCountTabWidget();
v... |
1a21d5769b845267812b4c97a0388b92bcd491a2 | 0bc0903fc444257398798e286d96b3ff3fca2901 | /src/common/requests/AbstractResponse.h | 182171730631f687572ae8a4265039d33788760a | [
"Apache-2.0"
] | permissive | smartdu/kafkaclient-cpp | 675bdc7f9ab6a0e7d98511364f85e4932762782b | 03d108808a50a13d7a26e63461a1ac27c5bc141c | refs/heads/master | 2020-05-18T00:14:17.062934 | 2019-05-15T03:43:33 | 2019-05-15T03:43:33 | 184,055,595 | 5 | 1 | Apache-2.0 | 2019-05-13T08:11:57 | 2019-04-29T11:07:51 | C++ | UTF-8 | C++ | false | false | 825 | h | AbstractResponse.h | #ifndef __KFK_ABSTRACTRESPONSE_H__
#define __KFK_ABSTRACTRESPONSE_H__
#pragma once
#include "AbstractRequestResponse.h"
#include <map>
class Struct;
class ResponseHeader;
class ApiKeys;
class Errors;
class AbstractResponse
: public AbstractRequestResponse
{
public:
static const int DEFAULT_THROTTLE_T... |
6b8acc70d37fa9b3653813e8d009aa645aa3a7a1 | 1388d23b912e9d7e9fe9d4240b339a781822fd6e | /uva572OilDeposits.cpp | db5090479f898dd89f8b72991238aceaf029b5a4 | [] | no_license | xiekch/AOAPC2 | b15834daec459cf4e033f91cf89d87650952b527 | 6b371d254c80dae1150ab38d0916559fe6b3980b | refs/heads/master | 2020-03-27T08:40:14.974890 | 2018-08-27T09:28:48 | 2018-08-27T09:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | uva572OilDeposits.cpp | #include<iostream>
#include<cstring>
using namespace std;
const int maxn=1000+5;
char graph[maxn][maxn];
int r,c,idx[maxn][maxn],cnt;//index has been used!
void dfs(int i,int j,int id) {
if(i<0||j<0||i>=r||j>=c)return;
if(idx[i][j]||graph[i][j]=='*')return;
idx[i][j]=id;
for(int m=-1; m<2; m++)
for(int n=-1; n<... |
5ea1d5cea91442b3ff74373a3190bb208e6a87c9 | 2340859cdfd21ecf9bf5dd3d4dc3304b89ebf115 | /dogpack-mapped/lib/3d/cart/DogStateCart3.h | 9756f97b91d7629fae00d04b2c8120a9f92ac6f2 | [] | no_license | smoe1/ThesisCode | 56c97c440f7f8182f5be7dba76848741dcf9a9d6 | bd535bc99d0add16787524bd2ac5c4a53f2d86ee | refs/heads/master | 2021-01-24T07:18:55.455846 | 2017-06-07T02:15:40 | 2017-06-07T02:15:40 | 93,338,238 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,059 | h | DogStateCart3.h | #ifndef DogStateCart3_h
#define DogStateCart3_h
#include "DogState.h"
class dTensorBC4;
class dTensorBC5;
class DogSolverCart3;
struct DogStateCart3: public DogStateTB
{
private:
dTensorBC5* q;
dTensorBC5* aux;
private:
void init(int mx, int my, int mz);
DogStateCart3& operat... |
434b24ec8e45d0feff807b51c8b11df7a8386b39 | af1f72ae61b844a03140f3546ffc56ba47fb60df | /src/swagger/converters/cpu.hpp | 4b798a7f3a76e77f5e32b16911e81669358bd2dd | [
"Apache-2.0"
] | permissive | Spirent/openperf | 23dac28e2e2e1279de5dc44f98f5b6fbced41a71 | d89da082e00bec781d0c251f72736602a4af9b18 | refs/heads/master | 2023-08-31T23:33:38.177916 | 2023-08-22T03:23:25 | 2023-08-22T07:13:15 | 143,898,378 | 23 | 16 | Apache-2.0 | 2023-08-22T07:13:16 | 2018-08-07T16:13:07 | C++ | UTF-8 | C++ | false | false | 852 | hpp | cpu.hpp | #ifndef _OP_CPU_JSON_CONVERTERS_HPP_
#define _OP_CPU_JSON_CONVERTERS_HPP_
#include "json.hpp"
namespace swagger::v1::model {
class CpuGenerator;
class CpuGeneratorConfig;
class BulkCreateCpuGeneratorsRequest;
class BulkDeleteCpuGeneratorsRequest;
class BulkStartCpuGeneratorsRequest;
class BulkStopCpuGeneratorsReques... |
10038eeb0a9b3bec95da628bebd08c20239c61de | 421a832c2d7747f4b0612f22debd4e523e4a8e24 | /RED_DWARF/PROB#31.CPP | 4a295552e6556ac3e01712120c145ffd6b5c5761 | [
"MIT"
] | permissive | AllenCompSci/FLOPPYGLORY | 85e712a7af64ab4e72a93fdbb6d0759f6565ae49 | ef08a690f237f0b8e711dc234607828375ae0a72 | refs/heads/master | 2021-01-20T01:19:51.330189 | 2018-03-18T03:11:34 | 2018-03-18T03:11:34 | 89,257,274 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | cpp | PROB#31.CPP | //Kris BIckham
//Prob31
//Tuesday
//Period 6
//Mr. Baker
//Libary Section
#include <conio.h>
#include <iostream.h>
#include <iomanip.h>
#include <apstring.h>
#include <apmatrix.h>
//Const Section
const char A='A';
const char B='B';
const char C='C';
//e Section
int Discs;
char Ans;
int I;
//Protoyp... |
dad7d64f9dd7ff3bd9b12663f9451df629758469 | 0bfc37cec10ebec82e4ad319e5de1b346ca7beda | /Project1/Ball.cpp | 5dda8c008a6f4f7f7ccd9127f7d5371b73be8778 | [] | no_license | anhtoan1103/OOP2 | a25a272f01eef9fb9dfa56a283d61b8a0244aca2 | a96fad83ad52edc1cca907f266efc752f0a1cb99 | refs/heads/master | 2020-09-28T12:52:57.652112 | 2019-12-14T17:05:44 | 2019-12-14T17:05:44 | 226,779,895 | 6 | 0 | null | 2019-12-10T09:02:42 | 2019-12-09T03:50:03 | C++ | UTF-8 | C++ | false | false | 8,058 | cpp | Ball.cpp | #include "Ball.h"
#include <time.h>
#include "Constants.h"
Ball::Ball(float initX, float initY)
{
srand(time(NULL));
int count = 0;
int i = 0, j = 0;
readFile(i, j, "2.txt");
for (int a = 0; a < i; a++)
{
for (int b = 0; b < j; b++)
{
if ((int)arr[b + a * j] == 126)
{
RectangleShape brick;
Br... |
075d16d3c11efd6c10b0a14e9fcc7b795db151ac | 3789b34cda26c9e2fe91101525a5afb78c13a8d8 | /Final/Tree.cpp | 7f58d854bb32031a51eb2e6fd504272d5555adc2 | [] | no_license | ariasmartinez/trabajosed | 636e02806c4e6e1a90bab4331f7f9c8899a83c2c | acb9c6bb948e1eb1410bdcd140587719e32526bd | refs/heads/master | 2020-04-05T20:42:57.125266 | 2019-01-07T20:48:02 | 2019-01-07T20:48:02 | 157,192,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,103 | cpp | Tree.cpp | /**
* @file src/Tree.cpp
* @author Gustavo Rivas Gervilla
*/
#include "Tree.h"
#include "Node.h"
#include "Diccionario.h"
using namespace std;
void Tree::print(ostream &os, const Node* node, int level) const{
string separator = string(level, '\t');
os << separator << node->get_label() << "|" << node->get_scor... |
68675a0fe5d92f52c2187127b5b334f6583e6dac | 722a673f676a946cb8662793fe29f2c86d11b03e | /PAETT-tool/src/libcollect_energy.cpp | 2bdb279cbd374c0c9593423baaf14ad86628dd9b | [] | no_license | JerryYouxin/PAETT-toolbox | 09a083de1d398355279cd701a9fda93a3b4f55db | 83dd7d1a505b72ef09a666adda7bea4310e6d682 | refs/heads/master | 2023-08-10T16:02:07.550669 | 2021-09-27T15:17:41 | 2021-09-27T15:17:41 | 260,846,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,767 | cpp | libcollect_energy.cpp | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <signal.h>
#include <papi.h>
#include <cassert>
#include <string.h>
#include "CallingContextTree.h"
#include "common.h"
#include <sys/time.h>
#include <sys/syscall.h>
#define MAX_THREAD 50
#define GET_THREADID 0
#include <omp.... |
d2061e44cf4358734a00585d22c316e376029c0d | 12668533836d2845f1c8c37dd13dbbbb816f3c71 | /src/IO/writeOut.h | aeda28404cc6c2aef634a25c48e67fcc6ee99be9 | [] | no_license | nyameaama/CheckData | 71d7a350c66b4438d014ccaaf01a1a6d1a58d44d | 73008c4caa298430857366dc8d24bab832e05c87 | refs/heads/master | 2022-10-02T21:41:59.345629 | 2020-06-08T10:58:36 | 2020-06-08T10:58:36 | 259,270,894 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | h | writeOut.h | #ifndef WRITE_OUT
#define WRITE_OUT
#include<fstream>
#include"../Pref/getOS.h"
//#include<unistd.h>
#define OS OperatingS
#define IN 0
#define OUT 1
class writeOut {
const char *path = "home/user/documents";
std::fstream file;
public:
//Constructor
writeOut();
//Destructor
... |
3f2778013e4412729338e1cc8928a969257126b7 | c6fa5287afb14f1f326f02806f2e2e295c0cd80a | /Source/ComponentAnimationEvent.h | faa9b25eba4920e3ff4d7b8da24fdb15815ed8fb | [
"MIT"
] | permissive | project-3-bcn-2019/Project-Atlas | d5a2537157262e55ab6c002437e32f590e237ebc | 16ae881cec41d17a168d10f2f9cd2cf9207b2855 | refs/heads/master | 2020-04-20T02:17:31.724146 | 2019-03-20T19:53:42 | 2019-03-20T19:53:42 | 168,567,870 | 0 | 0 | MIT | 2019-03-18T17:35:34 | 2019-01-31T17:38:50 | C++ | UTF-8 | C++ | false | false | 1,757 | h | ComponentAnimationEvent.h | #ifndef _ANIMATION_EVENT_
#define _ANIMATION_EVENT_
#include "Component.h"
#include "Parson/parson.h"
#include "Globals.h"
#include "Random.h"
#include <vector>
#include <string>
#include <map>
#include <list>
typedef std::map<int, void*> KeyframeVals;
typedef std::map<double, KeyframeVals> KeyMap;
typedef std::map<u... |
9b68f62ca156da1eea9df9a77deb88e71405dadc | 12c5cd2336ebf1f79722f5c92ff8f7f59297c82e | /C++程式考試作業/實習11/統計各組距人數/B2.cpp | dad3630387c29f2abf0ba3c2a00d83ec90f6a79a | [] | no_license | jennysu1101/C-CTF | 63afe4c098845502c36e72c7f9cd42d4d6dd0f1b | dcc4bd54c7affc29410d3c3bb2ded5185559010b | refs/heads/master | 2023-08-31T03:34:03.248334 | 2018-03-09T08:56:55 | 2018-03-09T08:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | B2.cpp | #include <iostream>
#include <iomanip>
using namespace std;
int distribution(int score[],int arraySize){
int n[11]={0};
int i=0;
for (;i<arraySize;i++){
n[score[i]/10]++;
}
for (int j=0;j<11;j++){
cout << n[j] << " ";
}
}
int main(){
const int arraySize=100;
int score[arraySize];
for(int i=0... |
a3eabbbcbd5127ad7f61eca5ab36a635da36de52 | b6910389f6f6065ce12055874572304d9a1a105e | /src/api/apiserver.cpp | a449503fe992f651bf7553ba6ddcafc0097694c2 | [
"MIT"
] | permissive | suxinde2009/nitroshare-desktop | 85416c811657576880720821bd33a16ccce54713 | 6b441aef15ded64e0ef38e5978093d699c49fc9e | refs/heads/master | 2021-01-16T22:50:37.151415 | 2016-09-10T18:46:05 | 2016-09-10T18:46:05 | 68,022,474 | 0 | 1 | null | 2016-09-12T15:35:54 | 2016-09-12T15:35:53 | null | UTF-8 | C++ | false | false | 2,903 | cpp | apiserver.cpp | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Nathan Osman
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use... |
8018dde97cf9adbf1712066d473afbafc88cb370 | 90cf4becd1fdea951d51ce2a615f03881b81e63c | /trunk/tzhang.cpp | 15d979b069b7411d47f7b38b7ff4765c1433f649 | [] | no_license | cbshiles/KALX-fmsroot | 9731d5557e8707671b1e80f70792f1a0fe1d251f | 5db5338566a4fef9247b55d1d14f95bb5704e87a | refs/heads/master | 2021-05-15T08:07:51.686275 | 2014-01-03T15:15:05 | 2014-01-03T15:15:05 | 109,078,881 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | cpp | tzhang.cpp | // tzhange.cpp - test Zhang root finding algorithm
#include <iostream>
#include "zhang.h"
using namespace std;
using namespace root;
template<class T>
void test_zhang(void)
{
T x0 = 1., x1 = 2.;
auto F = [](T x) { return x*x - 2; };
for (size_t i = 0; i < 10; ++i) {
size_t n = 1;
_1d::zhang_(x0... |
455935f8e0ad5f32f8a3d483e6b69bb660c5d2b5 | e7d7377b40fc431ef2cf8dfa259a611f6acc2c67 | /SampleDump/Cpp/SDK/BP_ChoiceMenuEntry_parameters.h | a51784a51936d99ed632eefdef67dfaa5b85f275 | [] | no_license | liner0211/uSDK_Generator | ac90211e005c5f744e4f718cd5c8118aab3f8a18 | 9ef122944349d2bad7c0abe5b183534f5b189bd7 | refs/heads/main | 2023-09-02T16:37:22.932365 | 2021-10-31T17:38:03 | 2021-10-31T17:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,941 | h | BP_ChoiceMenuEntry_parameters.h | #pragma once
// Name: Mordhau, Version: Patch23
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//-----------------------------------------------------... |
a1634f33a326ab80647f69fc47c88e3b0731c442 | 98e5fd588b356aff074e907c27aede0b609aae85 | /programming/HackerRank/allPairsSP.cpp | 4472637b98c07683f867ed8c782726ad606e664e | [] | no_license | ayushshukla92/algorithms | 060521612773e93bf4804abd5644fc35d4d32eb7 | a3d5baa3c71de5fa9a8049d436c802c75ad32cd2 | refs/heads/master | 2016-08-12T02:01:53.233754 | 2015-11-04T11:09:00 | 2015-11-04T11:09:00 | 45,024,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,239 | cpp | allPairsSP.cpp | #include <iostream>
#include <queue>
#include <algorithm>
#include <climits>
#include <string>
#include <cstdlib>
#include <sstream>
#include <cmath>
#include <cctype>
#include <iomanip>
#include <cstdio>
#include <list>
#include <stack>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include ... |
107db77f912bb740b3c82dad9b56037ea5213e90 | 5386865e2ea964397b8127aba4b2592d939cd9f2 | /codeforces/RCC 2014/warmup/d.cpp | 290a33ae6b73a4f6d944e80bc64de0eda819d9ba | [] | no_license | HekpoMaH/Olimpiads | e380538b3de39ada60b3572451ae53e6edbde1be | d358333e606e60ea83e0f4b47b61f649bd27890b | refs/heads/master | 2021-07-07T14:51:03.193642 | 2017-10-04T16:38:11 | 2017-10-04T16:38:11 | 105,790,126 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,782 | cpp | d.cpp | #include<bits/stdc++.h>
using namespace std;
const int maxm=105000,maxn=102;
long long n,m,b;
const long long inf=1e15;
struct state
{
long long cost;
set<int> ufr;
long long bc;//bought computers
};
struct fr
{
long long x,k,m;
long long probl[22];
};
fr frs[maxn];
state dp[maxm];
void read()
{
... |
4cd63aa9b05b0fca61508d3a0d05de7663be3e2a | 8a063e76b2796eee31b51a6d4eb16a9640219ed6 | /linux/GUI/MainWindow.cpp | 19ec1104c1a2d675dd18c16ea2bca8bafe6e1e4b | [] | no_license | ubi-agni/TactileGlove | 7368aaa800779aeaac57c1aa128f074f73bed82d | b9239af688fa3e536b856a93674037a13f0bf1b3 | refs/heads/master | 2022-10-06T02:21:11.748008 | 2022-09-20T20:42:55 | 2022-09-20T22:40:25 | 27,046,875 | 5 | 2 | null | 2022-09-01T18:18:10 | 2014-11-23T20:43:47 | C++ | UTF-8 | C++ | false | false | 16,600 | cpp | MainWindow.cpp | #include "MainWindow.h"
#include "ui_MainWindow.h"
#include "GloveWidget.h"
#include "MappingDialog.h"
#include "FileExistsDialog.h"
#include "ColorMap.h"
#include "QSerialInput.h"
#include "RandomInput.h"
#if HAVE_ROS
#include "ROSInput.h"
#endif
#include <tactile_filters/PieceWiseLinearCalib.h>
#include <QCloseEven... |
2643bb3d322af0821d68f3c038b068f681b3b1ce | d397b0d420dffcf45713596f5e3db269b0652dee | /src/Axe/ArchiveInvocation.hpp | 00c46552b502d04a2a05c0c5aa43504803137eec | [] | no_license | irov/Axe | 62cf29def34ee529b79e6dbcf9b2f9bf3709ac4f | d3de329512a4251470cbc11264ed3868d9261d22 | refs/heads/master | 2021-01-22T20:35:54.710866 | 2010-09-15T14:36:43 | 2010-09-15T14:36:43 | 85,337,070 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 387 | hpp | ArchiveInvocation.hpp | # pragma once
# include <AxeUtil/ArchiveWrite.hpp>
# include <Axe/ConnectionCache.hpp>
namespace Axe
{
class ArchiveInvocation
: public AxeUtil::ArchiveWrite
{
public:
ArchiveInvocation( const ConnectionCachePtr & _connectionCache );
public:
const ConnectionCachePtr & getConnectionCache() con... |
4f582c2bd95e66017821d799913bcdc5faa554b0 | 49f15e237696d1c166c727fad9c8923d33497494 | /cp-3/data structure /with built library/1d array/12356.cpp | 4e9fd36f2261996ecaed75d0c07a4fddda7de169 | [] | no_license | gauravkr123/Codes | 280284a3c7cdab2454a8da267c0622b40707e32b | c0295cfbad7794a25c1d4cf85ef8d4d13da8f2c6 | refs/heads/master | 2020-03-22T17:29:24.819064 | 2017-12-14T17:59:33 | 2017-12-14T17:59:33 | 140,398,111 | 2 | 0 | null | 2018-07-10T08:01:38 | 2018-07-10T08:01:38 | null | UTF-8 | C++ | false | false | 1,127 | cpp | 12356.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
while(scanf("%d %d",&a,&b),(a||b))
{
int death[a+1]={};
while(b--)
{
int x,y;
cin>>x>>y;
for(int i=x;i<=y;i++)
{
death[i]=1;
}
... |
4c84f9f98f278678bf224a35a48de16465e4838f | 224bb4c15505e0b494eec0b911ee3fc67e6935db | /ServerBrowser/HistoryGames.h | 030b8ddb8e6b6f9f254bf6442468cc187e23f1b0 | [] | no_license | MoeMod/Thanatos-Launcher | 7b19dcb432172ee35f050b4f4f46e37a1e46c612 | 1f38c7cc1ebc911805ecf83222b5254d4b25a132 | refs/heads/master | 2021-12-27T15:27:02.097029 | 2021-09-09T17:05:04 | 2021-09-09T17:05:04 | 128,214,239 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,338 | h | HistoryGames.h | #ifndef HISTORYGAMES_H
#define HISTORYGAMES_H
#ifdef _WIN32
#pragma once
#endif
#include "BaseGamesPage.h"
#include "IGameList.h"
#include <ServerBrowser/IServerRefreshResponse.h>
#include "server.h"
class CHistoryGames : public CBaseGamesPage
{
DECLARE_CLASS_SIMPLE(CHistoryGames, CBaseGamesPage);
public:
CHisto... |
d370a170b563e479f3e29dc995cffe5a8ae4281f | 9e646ddaa1f210a56b75d841697025e758e7339f | /LeetCode/LeetCode/KeyboardRow.cpp | 2e1bb160a51f369858ef4ad4c2006eda69ecd253 | [] | no_license | madpotato1713/algorithm | 03faec881bc7aea99ae23395a081fc570a648e20 | 6789523646813780c6fcf77ab0a74887c0e41913 | refs/heads/master | 2020-09-17T04:27:12.723476 | 2020-08-26T16:25:37 | 2020-08-26T16:25:37 | 223,982,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,821 | cpp | KeyboardRow.cpp | /* CASE1 */
class Solution {
public:
vector<string> findWords(vector<string>& words) {
vector<string> res;
unordered_map<char, int> um;
um['q'] = um['w'] = um['e'] = um['r'] = um['t'] = um['y'] = um['u'] = um['i'] = um['o'] = um['p'] = 1;
um['Q'] = um['W'] = um['E'] = um['R'] = um['T'] = um['Y'] = um['U'] = um... |
256e7fa7776d182147936516e954356df64f164b | 07eeea7ed7ca6772cce5de55e0eabb91cb47cd1b | /cgnspp/cgnsconverged.cpp | d7f6a56f8b63d29f82423698e8776c1485740183 | [
"MIT"
] | permissive | octwanna/CGNSxx | 2cefb8ce8163b22a71f73f942afb0820bffcc842 | bbb6985ba1817c055e16a3b8ed1bb5fe3024730b | refs/heads/master | 2021-05-09T22:07:35.755297 | 2017-10-03T00:05:16 | 2017-10-03T00:05:16 | 118,742,907 | 1 | 0 | null | 2018-01-24T09:28:53 | 2018-01-24T09:28:53 | null | UTF-8 | C++ | false | false | 1,954 | cpp | cgnsconverged.cpp | /***************************************************************************
cgnsconverged.cpp - description
-------------------
begin : Mon Mar 26 2001
Copyright (c) 1998-2004 Manuel Kessler, University of Stuttgart
Copyright (c) 2001-... |
917e94b17eaad8c1e98c34d62e7810902777da76 | 40138941b188d387e613c53f9aacf8cf54b55fd5 | /code/creature.h | 5039943409a8d16c6587b07e7702f26b9725f545 | [] | no_license | RogerGee/AdventureGame | 06c580f7f827dd84678486b1bf3f41886780ec8b | 95e546912ff02d8ea3abbe69504def765ab61d2c | refs/heads/master | 2021-01-21T13:18:23.396111 | 2014-10-16T21:18:19 | 2014-10-16T21:18:19 | 13,591,056 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 900 | h | creature.h | /* creature.h
* Project: AdventureGame
* Owner: Ethan Rutherford
* Brief: Interface for creatures of various types.
*/
#ifndef ADVENTUREGAME_CREATURE_H
#define ADVENTUREGAME_CREATURE_H
#include <string> // get 'string' type
#include "game_element.h"
#include "tag.h" // get 'tag' type
namespace adventure_game{
cla... |
5f826cbdc16e494f8b72d2a213050a3edc5c1712 | 75526e4ffbff7598208247dcfaa3b5ad07b703bd | /NeuralNetwork/Perceptron/Perceptron.h | 63875fc911ccf989e6b3656bd15a7d8f2a0456c7 | [
"BSD-2-Clause"
] | permissive | alekstheod/tnnlib | 2106e4592a1f9939911949744ca365ea0ca22f2e | d69c26cf6df5b01e23fa35844433bce8d33f0455 | refs/heads/master | 2023-08-05T10:36:09.253840 | 2023-07-08T13:10:44 | 2023-07-08T13:10:44 | 21,096,548 | 6 | 1 | BSD-2-Clause | 2023-07-08T13:16:17 | 2014-06-22T15:03:31 | C++ | UTF-8 | C++ | false | false | 4,841 | h | Perceptron.h | #pragma once
#include "NeuralNetwork/Serialization/PerceptronMemento.h"
#include "NeuralNetwork/Utils/Utils.h"
#include <MPL/Tuple.h>
#include <MPL/Algorithm.h>
#include <MPL/TypeTraits.h>
#include <algorithm>
#include <cassert>
#include <tuple>
#include <type_traits>
namespace nn {
namespace detail {
... |
701f5cd55df858f8ca995be53fbeba11d6c41516 | e032843d31309ca21bfba351d45c354ee5a36e8b | /main.cpp | 6b18cb6797547271fec65432b175d15e15b1142c | [] | no_license | yukiyoru98/Matrix | 9fcbf3ab97e8af686fc9313b63a852ced3728020 | 94b88cdd6abb198d0c0864126bec2aeb60dafcc3 | refs/heads/master | 2022-04-25T11:34:18.790205 | 2020-04-26T02:51:49 | 2020-04-26T02:51:49 | 258,924,360 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,962 | cpp | main.cpp |
#include<iostream>
#include"Matrix.h"
#include"Complex.h"
using namespace std;
int main()
{
cout << "<<Default Construster>>\ntest1\n";
Matrix test1;
test1.displayData();
cout << endl;
cout << "\n<<Constructor>> (只設定大小, 資料預設為0)"<<endl;
cout<<"test2\n";
Matrix test2(3, 4);
test2.di... |
e8d42dc4b00e0ee9b305947cfd1f5594f2217e58 | 09ac39bfd5b8fd30a2764d6c975deb7b41029cea | /src/core/renderer/Voxelizer.h | ef289a6ee65c8da856a1ec44b1e99a18534baf87 | [
"MIT"
] | permissive | Kelan0/SVOEngine | 5a5c07efeeb97de86761cff2e819b8cd6aedda7c | b3546715a07c13d240e6ba6fb42e90f175a9d937 | refs/heads/master | 2021-02-07T06:45:53.386926 | 2020-05-24T14:04:27 | 2020-05-24T14:04:27 | 243,963,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,552 | h | Voxelizer.h | #pragma once
#include "core/pch.h"
class ShaderProgram;
class Voxelizer {
enum VoxelStorage {
POSITION = 0,
CHILD_INDEX = 0,
ALBEDO = 1,
NORMAL = 2,
EMISSIVE = 3
};
enum VoxelizationStage {
FRAGMENT_COUNT = 0,
FRAGMENT_STORAGE = 1,
OCTREE_FLAG = 2,
OCTREE_ALLOCATE = 3,
OCTRE... |
17e43b8ec18df34b3d3663f4003e4b098c264cf8 | 9b98a87adf62be44af9c0d93ee8359999a1f5d9b | /GameEngineProject/Intermediate/Build/Win64/UE4Editor/Inc/GameEngineProject/GameEngineProjectGameMode.generated.h | b2dda0f290c5b954c95824cef615962592a4550c | [] | no_license | PFratt/UnrealProject | 395a482698773b6dbfe4b2589cace5f5bc246952 | 652a0251d135832e65a5e285b72f17c7d9c284fc | refs/heads/master | 2020-07-27T02:20:26.222550 | 2019-10-21T14:01:39 | 2019-10-21T14:01:39 | 208,834,258 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,943 | h | GameEngineProjectGameMode.generated.h | // Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==========================================================... |
dfd51d08bb23915fc8f95c95fe14f56253fec0e7 | 0568e3d075240aba67b22a2befa8c5a7e6a4484c | /core/frechet.h | fd9d93e91e832401c29c87d50d43baa17fec97b9 | [
"Apache-2.0"
] | permissive | Cecca/FRESH | 9c723276ae527e880e2d415c17e08c84bb6f6089 | d7740ed59b1566bf77f6a54ed3423e6a3d62e230 | refs/heads/master | 2020-03-27T18:10:57.264735 | 2018-09-02T09:07:13 | 2018-09-02T09:07:13 | 146,903,653 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,073 | h | frechet.h | /*
* Copyright 2018 Matteo Ceccarello
*
* 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... |
ef30169643090cc16515d9b486e8529d39e94af3 | 62669fbaa3d9b52bd34a8ab8bf781f2d18b3778b | /dlib/test/threads.cpp | 1aeb1a3f96b29f4f91116e8fa4020b0433d2e21f | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | davisking/dlib | 05c04e5c73c8b92526c77431e9bb622974ffe3f2 | f6c58c2d21a49d84967e48ffa33e7d1c783ae671 | refs/heads/master | 2023-09-06T08:22:13.063202 | 2023-08-26T23:55:59 | 2023-08-26T23:55:59 | 16,331,291 | 13,118 | 3,600 | BSL-1.0 | 2023-09-10T12:50:42 | 2014-01-29T00:45:33 | C++ | UTF-8 | C++ | false | false | 4,580 | cpp | threads.cpp | // Copyright (C) 2006 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <dlib/misc_api.h>
#include <dlib/threads.h>
#include "tester.h"
namespace
{
using namespace test;
... |
42f4ce6dbf83fd0c9ff0aa13ab3c9f155e5d9ec4 | c056dfe8476cc7db4ee7af6ba908cba19f251e89 | /RTRA1/src/scene/Scene00.cpp | 07d59689bfececde15f20027e8f37bca397f4e81 | [] | no_license | tomashaddad/RTRA1 | 9bbe11fbfb6b5b4134172a11fda9094bfa4f06b6 | b57f91032a52e64469882c77e648249dc953dd89 | refs/heads/master | 2023-07-26T05:33:43.676088 | 2021-09-05T12:23:42 | 2021-09-05T12:23:42 | 397,475,859 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,249 | cpp | Scene00.cpp | #include "Scene00.h"
#include <glad/glad.h>
#include "RTRApp.h"
#include "api/Shader.h"
#include <iostream>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/string_cast.hpp>
#include <glm/gtc/quaternion.hpp>
#include <glm/gtx/quaternion.hpp>
Scene00::Scene00()
: m_VBO(0)
, m_cubeVAO(0)
, m_lig... |
cfcc279bf3551d12fa7f606090471f067b3f0ded | 27edfcd70a4bb9c051b8bcbeed7cefc966cc60a8 | /EMComponent/CommonEdge.cpp | c86fc1943f813db0632982897571ee5431d4227a | [] | no_license | xiangwei0909/EMFA | e3fca62bb7e1761613d2e237267a4bad555294b6 | c31dcef457c9f6ae2c4fe162c77c24569b3c1853 | refs/heads/master | 2022-10-19T21:56:46.167618 | 2020-06-10T07:52:18 | 2020-06-10T07:52:18 | 271,191,251 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 24,868 | cpp | CommonEdge.cpp | #include "CommonEdge.h"
#include "ErrorHandle.h"
#include "tools.h"
#include "Mathdef.h"
using namespace component;
CommonEdge::CommonEdge()
{
}
CommonEdge::~CommonEdge()
{
}
void CommonEdge::getCommonEdge(int index, int & _vp, int & _vm, int & _fp, int & _fm, value_t & _len) const
{
auto& edge = m_ceList[index];
... |
904c3ea49cee7b0e30404a8c40c5f76b792dd38f | bb60bd764b23d780c5796a76f91439e182849ad5 | /include/patterns.h | 06023bc7475a0e57869049736c607300d0092d05 | [] | no_license | SPbun/cobi | b83ce25603dfec3c09a000e191ce130246db3dd7 | e9bc4a5675ead1874ad9ffa953de8edb3a763479 | refs/heads/master | 2020-04-11T10:39:56.986607 | 2014-06-10T04:27:21 | 2014-06-10T04:27:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,265 | h | patterns.h | /*****************************************************************************
** Cobi http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 2009-2010 **
** ... |
75d796415ef0eb6324e893ff46356fc54cb9568e | 115c6d0b28478f068cc666d1be0f7aa0b645fc41 | /e05_04/src/e05_04.cpp | d2c300e019fdbf253c7df1390793a632fe602581 | [] | no_license | ddtBeppu/meikaicpp_beppu | 586e758911472323a8f0b4fa6f5eba5d568ff1b9 | c0aa321ca8a7886789181e4265901c0d47c17183 | refs/heads/master | 2021-04-28T20:09:23.297808 | 2018-05-02T02:35:41 | 2018-05-02T02:35:41 | 121,744,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,436 | cpp | e05_04.cpp | //============================================================================
// Name : e05_04.cpp
// Author : Naoto Beppu
// Version :
// Copyright : Your copyright notice
// Description : 演習5-4
// 連続する要素が同じ値とならないように、演習5-3のプログラムを改変したプログラムを作成せよ。
// 例えば、{1,3,5,5,3,2}とならないよう... |
5d7132baf944850753c0cc46bace6dc7f4b0acca | 2d0bada349646b801a69c542407279cc7bc25013 | /examples/waa/plugins/include/pl/features/xf_fast.hpp | e0d1683651bad72c53ae48bfd7e5768e6c543fc1 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | C++ | false | false | 38,216 | hpp | xf_fast.hpp | /*
* Copyright 2019 Xilinx, Inc.
*
* 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... |
75af3a46d0ffef8e607eacec8824846b0c4afddd | d97b36614ecd3ea7f1e32b5a131db1c4cec2d452 | /ADSA-PS/PracticeCPP/GCDEuclid.cpp | 4ff98a7d781578e806617a46171274b1570c10d2 | [] | no_license | SumanM-IIIT/IIIT-H_Sem1_Suman | 896e1b5f5fd6f7dcd8801f1d413ae89bcb154416 | 1cc57d131ebcff4154dcdf9292d94bd5f6a847e4 | refs/heads/master | 2023-01-21T08:50:16.959690 | 2020-11-27T15:35:35 | 2020-11-27T15:35:35 | 294,190,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | GCDEuclid.cpp | #include <bits/stdc++.h>
using namespace std;
template <class T>
class demo {
T x, y;
public:
demo(T a, T b) {
x = a;
y = b;
}
void print() {
cout << x << " " << y << endl;
}
};
int main(int argc, char const *argv[])
{
/*int a, b, swap;
cin >> a >> b;
if(b > a) {
swap = a;
a = b;
b = swap;
}
int t... |
7a50c318e78e839b6a1d0be9e1decd5c4b6fc613 | 15b141a7648a05b7ad6c724c43fb703c7ba25857 | /cache/Solution.cpp | a4d0104e740cb23aa66fe0cd7358ae3afecfce96 | [] | no_license | puffikru/Brown_belt | d1a1ec0797535eae04852461a395ba3e33cb431d | e309ce08e21f48454195849b573bb119d051ac56 | refs/heads/master | 2021-06-20T12:19:16.014648 | 2021-05-08T21:44:04 | 2021-05-08T21:44:04 | 215,209,647 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,824 | cpp | Solution.cpp | #include "Common.h"
#include <unordered_map>
#include <list>
#include <mutex>
using namespace std;
class LruCache : public ICache {
public:
LruCache(
shared_ptr<IBooksUnpacker> books_unpacker, const Settings &settings) :
books_unpacker_(move(books_unpacker)), settings_(setting... |
7c79a06dc11baf05599326c75f8966bf0eec0dfe | 1d9237e0ecc227a3c9ce3cb6d4b913d3ad87e368 | /Arkanoid_v2.0/ball/ball.cpp | 3fcea50fd18559b3c3c20606a19bc03d9ecff604 | [] | no_license | jarromi/Arkanoid_v2.0 | d5d5438526a11775ef70426372f3917866f79d83 | e2094a0e9f1100a1098741c67ef75cc21461e035 | refs/heads/master | 2022-07-06T08:15:56.561790 | 2020-05-18T18:31:05 | 2020-05-18T18:31:05 | 263,603,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,159 | cpp | ball.cpp | #include "ball.h"
// -------------------------------------------------------------
// Initialization of static variables
// Vertices (in header file since only a few of them)
const float ball::vertices[] = {
0.0f, 1.0f, _PHI_ICOSAHEDRON, 0.1f, 0.2f,
0.0f, 1.0f,-_PHI_ICOSAHEDRON, 0.8f, 0.4f,
0.0f,-1.0f, _PHI_ICO... |
d0a7307d287687e479ea9b832d3fc62e939cc4f7 | d14b5d78b72711e4614808051c0364b7bd5d6d98 | /third_party/llvm-16.0/llvm/lib/DebugInfo/LogicalView/Core/LVElement.cpp | a320752befc4634639227d85d53b6884c504c69d | [
"Apache-2.0"
] | permissive | google/swiftshader | 76659addb1c12eb1477050fded1e7d067f2ed25b | 5be49d4aef266ae6dcc95085e1e3011dad0e7eb7 | refs/heads/master | 2023-07-21T23:19:29.415159 | 2023-07-21T19:58:29 | 2023-07-21T20:50:19 | 62,297,898 | 1,981 | 306 | Apache-2.0 | 2023-07-05T21:29:34 | 2016-06-30T09:25:24 | C++ | UTF-8 | C++ | false | false | 17,558 | cpp | LVElement.cpp | //===-- LVElement.cpp -----------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
3866a16f11b506576b00b0933307d4d432724c80 | a077eb51ff18df52d741d6c9ba9a5003673415df | /cpp/functions/helpers/get_printInstanceName.cc | 067641e942681458c1eb2415065a4e06935d75fc | [
"MIT"
] | permissive | michieluithetbroek/A-MDVRP | d4a5f2f4e742c70c9cebd7dccde9837b1f718a2f | f378333e21b874e1cfad1333df5d47dec8c7b13e | refs/heads/master | 2022-04-30T19:55:40.080660 | 2022-03-29T15:19:58 | 2022-03-29T15:19:58 | 241,376,430 | 43 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cc | get_printInstanceName.cc | #include "./../../main.ih"
string getPrintInstanceName(int n, int m, int rep)
{
string instName;
if (P_TYPE == PROBLEMTYPE::MDATSP)
instName += "A-MDTSP";
else if (P_TYPE == PROBLEMTYPE::MDAMTSP)
instName += "A-MDmTSP";
else if (P_TYPE == PROBLEMTYPE::MDACVRP)
instName += "A-MDCVRP";
... |
27e4151f0adfacb61d919e05af39a809cebab85d | 0c9c8af5dd109d5458d5d9e95df33c5806a057a7 | /src/test.cpp | 4a4e4b1dac2824c477edf44ec1a0f09fbd33321e | [
"MIT"
] | permissive | tairaO/CarND-Kidnapped-Vehicle-Project | ebd363afebcaf1e02dc51643b8b2cbcca3ff4772 | 77ddb953d34348ead50c97d135eb7fb8b0f5da71 | refs/heads/master | 2020-03-27T08:54:12.110462 | 2018-08-27T13:12:35 | 2018-08-27T13:12:35 | 146,296,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,464 | cpp | test.cpp | #include <uWS/uWS.h>
#include <iostream>
#include "json.hpp"
#include <math.h>
#include "particle_filter.h"
using namespace std;
int main(){
//Set up parameters here
double delta_t = 0.1; // Time elapsed between measurements [sec]
double sensor_range = 50; // Sensor range [m]
double sigma_pos [3] = {0.3, 0... |
4e9af4b9e40dfe968b0d88dd8d678442dd944f0c | 4503b4ec29e9a30d26c433bac376f2bddaefd9e5 | /XtreamToolkit/v16.4.0/Source/CommandBars/XTPFrameWnd.cpp | 13363508ac635965ad9c7604cda76c7bf5a56f34 | [] | no_license | SwunZH/ecocommlibs | 0a872e0bbecbb843a0584fb787cf0c5e8a2a270b | 4cff09ff1e479f5f519f207262a61ee85f543b3a | refs/heads/master | 2021-01-25T12:02:39.067444 | 2018-02-23T07:04:43 | 2018-02-23T07:04:43 | 123,447,012 | 1 | 0 | null | 2018-03-01T14:37:53 | 2018-03-01T14:37:53 | null | UTF-8 | C++ | false | false | 2,257 | cpp | XTPFrameWnd.cpp | // XTPFrameWnd.cpp : implementation for the CXTPFrameWnd and CXTPMDIFrameWnd classes.
//
// This file is a part of the XTREME COMMANDBARS MFC class library.
// (c)1998-2013 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY... |
13cd32382a005024bf149040cb5942256e221dc0 | 4bf11a797dc9daa52b56b1f370c13171c34d856d | /solution/0008____String_to_Integer_(atoi).cpp | fa1630926e6fece5ef808549fe827adc42791cc7 | [
"MIT"
] | permissive | jhinkoo331/leetcode | 680635f6ef5cbe701e4c345fe3e3f90d0d88d3b3 | 2ef6886575e0004097815fe38ed2cfafe0b7aa6c | refs/heads/master | 2023-06-24T11:50:21.403165 | 2023-06-19T16:51:32 | 2023-06-19T16:51:32 | 231,519,913 | 1 | 0 | null | 2020-07-19T13:50:43 | 2020-01-03T05:43:05 | C++ | UTF-8 | C++ | false | false | 1,186 | cpp | 0008____String_to_Integer_(atoi).cpp | #include <string>
using std::string;
class Solution {
public:
int myAtoi(string str) {
return _1(str);
}
private:
static const int k = 0x7fffffff / 10;
/**
* @perf: [4ms, 19]
* @time: O(n), where n is the length of the string
* @space: constant
* @param str
* @return int
*/
int _1(string str){
... |
516a82c277e8a94598612db6e9a43e812b1de9cd | e28f2a1e39f48015f5ec62b71c3ec5a93ad5573e | /oj/hdoj/hdoj_2602.cpp | f0837a5fef813595e2a8787ad6ab479cc59bb877 | [] | no_license | james47/acm | 22678d314bcdc3058f235443281a5b4abab2660d | 09ad1bfc10cdd0af2d56169a0bdb8e0f22cba1cb | refs/heads/master | 2020-12-24T16:07:28.284304 | 2016-03-13T15:16:48 | 2016-03-13T15:16:48 | 38,529,014 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | hdoj_2602.cpp | #include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int N, V, T;
int dp[1100], v[1100], w[1100];
int main()
{
scanf("%d", &T);
while(T--)
{
scanf("%d%d", &N, &V);
for (int i = 0; i < N; i++)
scanf("%d", v+i);
for (int i = 0; i < N; i++)
scanf("%d", w+i);
memset(dp, -1, sizeof(d... |
ee979b3bf8c0ec2d156ee8c06510b89503f09212 | 47cd0d53bec9ecf1d8a57eee587c6782493aa7e1 | /main.cpp | 578ef6fe51f0b5b458bdad3fa669b35061b42e43 | [] | no_license | asilardo/-CPP-Polymorphism-Demo-4-in-1-2-Variable-Arithmetic-Calculator | fad6105c85c6476af8f3d79e86fb9dc755e2b903 | ddb7a7fb416e6800d7442d23b7264511e687dc5e | refs/heads/master | 2022-11-28T10:10:49.344605 | 2020-07-28T02:23:12 | 2020-07-28T02:23:12 | 283,069,160 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,895 | cpp | main.cpp | #include <iostream>
using namespace std;
class calculator
{
protected:
int num1, num2;
public:
calculator(int n1 = 0, int n2 = 0)
{
num1 = n1;
num2 = n2;
}
virtual int calc() //used for dynamic linkage
{
cout << "Parent class: " << endl;
return 0;
}
};
class addition : public calculator
{
pu... |
dbea0de3334eece142e277629c36ff26fb71a848 | 2ab7bf87d98fd7e367b1f3c3190573b45b9fb497 | /XQ_Muggle/evaluate.cpp | e76b5802b3d6527400674db96066054f40a92c78 | [] | no_license | NewCityLetter/TJCS-XQ_Muggle | 6764e426581863ead3fa4ff77da7e7b7bebd963b | 4562ed124be23c9d5a1998fabd92ea2236ad316b | refs/heads/main | 2023-05-15T00:52:33.673373 | 2021-06-07T05:52:25 | 2021-06-07T05:52:25 | 349,408,741 | 5 | 0 | null | null | null | null | GB18030 | C++ | false | false | 21,341 | cpp | evaluate.cpp | #include "base.h"
#include "board.h"
const int TOTAL_MIDGAME_VALUE = 66;
const int TOTAL_ADVANCED_VALUE = 4;
const int TOTAL_ATTACK_VALUE = 8;
const int ADVISOR_BISHOP_ATTACKLESS_VALUE = 80;
const int TOTAL_ADVISOR_LEAKAGE = 80;
int32 AdvancedVal; //先行权因素的分值
int32 redValueTable[7][256]; //计... |
73ae91a3f8ca98e2be800383e533b302e1234960 | 70a148273adf94c8a3305523585d6472b56247f7 | /problems_1_lottery/lottery.cpp | 9608d079fb474f2609fb2fbde215d5d8b64007f3 | [] | no_license | xunter/yacup2020_algorithm | b1cbda758e2ffb8a6cdff22faa4a65429062a8f7 | 56d1791d50a7e7fcf36fd3cb04986eae5d468322 | refs/heads/master | 2022-12-24T22:56:44.736845 | 2020-10-02T19:25:56 | 2020-10-02T19:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,920 | cpp | lottery.cpp | #include <stdio.h>
#include <iostream>
#include <vector>
using namespace std;
vector<string> split(const string& str, const string& delim);
int main()
{
int luckyNums[10] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
string sLuckyNums, sTiraz, sTicketNums;
vector<int*> ticketNumsArr;
getline(cin, sLuckyNums);
vector<str... |
990ff57809ceea1cd365ca87ee0af8259dc315fd | cc324e4a74aeb8ed984fafbac87167a299625d23 | /Algorithms/BinaryTreeIterativeTraversal.h | dbb7e020d0d76a928e8139dc5264057d0ed80fed | [] | no_license | narekhovsepian/DataStructure | fe5085029cdc428de5a741a350d7460608ca7087 | 40052e8176f576015f877b55e43f8f93a7e1ed7e | refs/heads/master | 2020-03-07T23:14:22.461686 | 2018-12-02T20:39:26 | 2018-12-02T20:39:26 | 127,774,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,852 | h | BinaryTreeIterativeTraversal.h | #pragma once
#include<iostream>
namespace BinaryTreeIterativeTraversal {
template<typename T>
struct Node {
T _info;
Node<T> *_father, *_left, *_right;
Node(const T& info = T()) : _info(info), _father(0), _left(0), _right(0) { }
};
template<typename T>
void PreorderIterative_NLR(Node<T> *tree) {
if ... |
a2dcd8ba42b345e3ca313911b65104542aee8bf4 | 8271edfc6939415f8d49058a4d0f5a00c92aead6 | /source/string.cpp | 96baa91741b601d53c9b036256926c59be352707 | [] | no_license | kdchambers/kpl | c4d813f1a0496b8b9dc8203979044a2f605b6b1c | 4e54f35745468d9797c8e98b0edd5d7a7e93d071 | refs/heads/master | 2020-04-24T10:18:25.841478 | 2019-12-19T03:31:37 | 2019-12-19T03:31:37 | 171,889,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,499 | cpp | string.cpp | #include <kpl/string.h>
namespace kpl
{
QString viewToString(kpl::StringView string)
{
kpl::Char tmp = *string.end();
kpl::Char* end = const_cast<kpl::Char*>(string.end());
*end = '\0';
QString result(string.begin());
result.append(tmp);
*end = tmp;
return result;
}
kpl::String trimEn... |
7bae7c4b8d0910ecec300c22f1f6a24febb5c9d1 | 86bf90b77cd97c9959dfd27774e5d9437be81be7 | /Release/include/cpprest/details/http_response_proxy.h | 30bbab288e51483a6a4faba6119e89c651028a20 | [
"MIT"
] | permissive | SergeyZhuravlev/cpprestsdk_Net | e9c599959b5ca2d5aba8e6eb2b560752cea04701 | 11331ee568e2bfe486c3ebb57818b7c040716ab0 | refs/heads/master | 2022-05-22T05:28:52.034314 | 2022-04-27T20:04:25 | 2022-04-27T20:04:25 | 177,675,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | h | http_response_proxy.h | #pragma once
#include "..\..\include\cpprest\CppRestProxyExport.h"
#include "http_response_base.h"
#include "..\..\include\cpprest\http_headers.h"
#include "..\..\include\cpprest\istreambuf_type_erasure.h"
namespace web::http::details
{
class http_response_proxy : public http_response_base, public std::enable_shared_... |
faf821b0517e5c9421a359af4b478979eefefaac | 35e2595f82bb3295012ab9bdaa98597a715ade56 | /CCFwithAxin/Hearthstone/Minion.cpp | e1fa5948755fd0e579c95a4b82c93cc43736f421 | [] | no_license | kangyijie5473/AC_list | 328084923796751f5a1836e85a6ea69d9e1e990a | 3f8092c3cc857111cb64e9e9662b657228ea8dc2 | refs/heads/master | 2021-07-15T04:47:09.584992 | 2019-01-13T14:47:38 | 2019-01-13T14:47:38 | 97,422,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 429 | cpp | Minion.cpp | /*
* > File Name: Minion.cpp
* > Author: Jack Kang
* > Mail: kangyijie@xiyoulinux.org
* > Created Time: 2017年10月29日 星期日 10时01分24秒
*/
#include <iostream>
#include "Minion.h"
using namespace std;
void Minion::attack(Hero &enemy, int id)
{
if(!id){
enemy.hp -= this->attackNum;
return;
}
i... |
a3488f5ee6980890c1bc7502729f0471ecc879dd | ef43f7a4ec8317ccfdff09121ca03727f8bcbd05 | /src/default_traits.h | 22519380f840baef8b94afae9ef8d4343d704e60 | [
"BSD-3-Clause"
] | permissive | chafey/charls | 30baa98f5107c22a731a55e188e6c18b7131fa6c | 3058b6856abe1120665d49ebd616d1c4f417146c | refs/heads/master | 2021-01-18T21:49:52.755519 | 2020-04-24T16:20:07 | 2020-04-24T16:20:07 | 250,872,014 | 1 | 3 | NOASSERTION | 2020-03-28T19:01:54 | 2020-03-28T19:01:53 | null | UTF-8 | C++ | false | false | 4,357 | h | default_traits.h | // Copyright (c) Team CharLS.
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include "constants.h"
#include "util.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdlib>
// Default traits that support all JPEG LS parameters: custom limit, near, maxval (not power of 2)
// This traits ... |
f8e629ef3760accf7e58902d67343fdf7d8b8af7 | 68ab5a57117168cb77c8755a34eb094a573e89f9 | /leetcode/cpp/find_all_anagrams_in_a_string.cpp | 4d468f6a5fdc6ee0e45a22031cbf8d890439172b | [] | no_license | hitlye/code-pool | 732197e76d27b57c2d328adf34cc843c03101673 | 2ab57dd33db76abeac1632fd68c136a7ae3978af | refs/heads/master | 2020-03-24T16:16:01.422465 | 2019-09-04T06:58:54 | 2019-09-04T06:58:54 | 142,818,753 | 0 | 0 | null | 2019-02-18T07:58:18 | 2018-07-30T03:13:45 | C++ | UTF-8 | C++ | false | false | 1,272 | cpp | find_all_anagrams_in_a_string.cpp | // Copyright 2018 Leo - All Rights Reserved
// Author: Leo
// Best solution time: O(n) n is the length
// Best solution space: O(1)
// Solution dependencies
#include<map>
#include<string>
#include<vector>
using std::map;
using std::string;
using std::vector;
// Core: Sliding Window
// Time: O(n) n is the length of ... |
0add1d388d445d3487bee0c23b72fa2dbbd4b829 | 1016c5f6570b2a0f20ccc73748f6baf347a0510c | /BoxTreeNode.h | 12e61827385ab78abaf9a504805e700f842012c4 | [] | no_license | awthomps/CSE168HW3 | f9ad05ae9810b3fca002b1740adc7ac2ea6ca59c | 211a2e5cb051b85f4c1ac6971c168b96507a3a80 | refs/heads/master | 2021-01-17T15:01:28.042764 | 2014-05-14T18:53:53 | 2014-05-14T18:53:53 | 19,590,978 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | h | BoxTreeNode.h | #pragma once
#ifndef CSE168_BOXTREENODE_H
#define CSE168_BOXTREENODE_H
#define MAXTRIANGLESPERBOX 10
#define SHARENUMBER 1
#include "Vector3.h"
#include "Intersection.h"
#include "Ray.h"
#include "Triangle.h"
class BoxTreeNode
{
public:
BoxTreeNode();
~BoxTreeNode();
bool Intersect(const Ray &ray, Intersection ... |
660c4aef4c78e0d1a2c3473339010c120621fb93 | 7188896510d360dc713c6d9af35fba91095bd717 | /Lab_5.cpp | ba9f82804ba1e9cf728e99f6136b7b77891ebdba | [] | no_license | MarmuraVlad/OOP_Laboratories | ee4a3f9359191cf909c218d33b226fddb77c2991 | 01b4ce07be6dd767045eea785162386818f6c86a | refs/heads/master | 2022-07-31T11:03:49.830639 | 2020-05-24T21:45:31 | 2020-05-24T21:45:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,662 | cpp | Lab_5.cpp | #include <iostream>
#include <String>
using namespace std;
void clear() {
cout << "____________________________________________________________" << endl;
}
class Ship {
public:
void setShipName(string Name) {
sName = Name;
}
void setShipPass(int passengers) {
sPass = pa... |
6c2b29e9a3815471292faeef5978630e81d37825 | 437504aa449f1f0b0ce75de1a6c7d271b3e956df | /src/lib/uno/uno.h | 4103e2edc776ae05d9982621ba50e569376cfaed | [] | no_license | AtifMahmud/UNO | 26d4edd5697c06e2692b04b2d39cf78d42d25af0 | 8d29c225313f39243ee38e3ea7bfedd9138014e8 | refs/heads/master | 2020-04-07T06:30:54.522975 | 2019-11-30T02:44:38 | 2019-11-30T02:44:38 | 158,138,717 | 1 | 1 | null | 2019-11-30T02:44:39 | 2018-11-18T23:55:07 | C++ | UTF-8 | C++ | false | false | 259 | h | uno.h | #ifndef UNO_H
#define UNO_H
/**
* File: uno.h
* Purpose: Declarations of the functions to implement the UNO gameplay
* Author: Atif Mahmud
*
*/
#include "../cardClass/cardClass.h"
#include <vector>
std::vector <CardClass> initUnoVector();
#endif
|
ad89bce8ed909a34fdf5c0e53178291bc3ceab90 | c00cd6aed5ba0be602f44262bbaa22672688e8ad | /src/libtimer/Timer.h | 07cce8212d0711efcffbe890c442dd77c87ff9b1 | [
"MIT"
] | permissive | selavy/word-brain-solver | 8c72902589574058c86ef2041b694bd840d5fafb | 2c011053f560a9e5b388f2ae809e17d872ce914e | refs/heads/master | 2016-09-05T10:50:17.878788 | 2015-04-26T21:34:36 | 2015-04-26T21:34:36 | 30,813,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | h | Timer.h | //
// Created by peter on 3/29/15.
//
#ifndef WORD_BRAIN_SOLVER_TIMER_H
#define WORD_BRAIN_SOLVER_TIMER_H
#include <cstdint>
#include <chrono>
class Timer {
public:
Timer();
~Timer() {}
void start();
int64_t elapsedNs() const;
private:
std::chrono::time_point<std::chrono::high_resolution_clock> s... |
ff5af8a71270fda25445a08385c56502180a2f94 | f2188de782bbbb123a1fa72bef2c4c7e3c7dbf3e | /src/train/pretrain.cpp | eeadba4cbffdbcee51152b7420c33c77012abe6b | [
"WTFPL"
] | permissive | shaswata56/GOTURN | 68d71855f18473071aa53daaeac8f5e69e6cad9b | e96067f42ef1233a4846e393dbffe58f6600b6eb | refs/heads/master | 2020-03-25T19:53:57.696829 | 2018-08-09T05:45:06 | 2018-08-09T05:45:06 | 144,105,900 | 2 | 0 | MIT | 2018-08-09T05:42:22 | 2018-08-09T05:42:21 | null | UTF-8 | C++ | false | false | 3,526 | cpp | pretrain.cpp | #include <string>
#include <iostream>
#include <caffe/caffe.hpp>
#include "example_generator.h"
#include "helper/helper.h"
#include "loader/loader_imagenet_det.h"
#include "loader/rgbd_loader.h"
#include "network/regressor_train.h"
#include "train/tracker_trainer.h"
#include "tracker/tracker_manager.h"
using std::st... |
55222bf961a6662c5d5ed6b6f789cca5a4537704 | 9d364070c646239b2efad7abbab58f4ad602ef7b | /platform/external/chromium_org/chrome/test/chromedriver/logging.h | b6471fbc5126352ebae841a19140dcb40fade764 | [
"BSD-3-Clause"
] | permissive | denix123/a32_ul | 4ffe304b13c1266b6c7409d790979eb8e3b0379c | b2fd25640704f37d5248da9cc147ed267d4771c2 | refs/heads/master | 2021-01-17T20:21:17.196296 | 2016-08-16T04:30:53 | 2016-08-16T04:30:53 | 65,786,970 | 0 | 2 | null | 2020-03-06T22:00:52 | 2016-08-16T04:15:54 | null | UTF-8 | C++ | false | false | 1,848 | h | logging.h | // Copyright (c) 2013 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.
#ifndef CHROME_TEST_CHROMEDRIVER_LOGGING_H_
#define CHROME_TEST_CHROMEDRIVER_LOGGING_H_
#include <string>
#include "base/basictypes.h"
#include "bas... |
b5b196999a2e50af5e84772c0da04bce86b4bd67 | 7e87822f3dd391188eb6510866dec0245a7eaa23 | /main.cpp | 3b2efc650d9c10ea801fa9a8ec47cd8d6398ea52 | [] | no_license | harrahx3/SFML_game | d0c61fb2288e9be422444250a64d5bc1b345c51a | b96546671332e65e035b040c2f008d9d535cf041 | refs/heads/main | 2023-03-09T18:37:17.378550 | 2021-02-26T15:59:00 | 2021-02-26T15:59:00 | 342,621,202 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 11,389 | cpp | main.cpp | #include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <cmath>
#include <string>
#include <sstream>
#include <vector>
#include <time.h>
#include <ctime>
#include <fstream>
#include "Perso.h"
#include "Perso.cpp"
#include "fonctions.cpp"
#include "fonctions.h"
using namespa... |
da1c5210a0ebfb359683352a089efed74d418baf | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /ddoscoo/src/model/DescribeDefenseRecordsResult.cc | 9bff687cb292ab5416654c85011caf0d12cfb824 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 2,818 | cc | DescribeDefenseRecordsResult.cc | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
9b46d8cf1c9b222c950b6f1c9fbb09ea45b468d2 | f106e9a8197d2f8e2e151bb345cbc7db7cbab3e3 | /exp2prob6.cpp | 9381b41744c162038b504851c4a8bd21f27f6d8c | [] | no_license | franchescago/experiment2 | e6af507ab2090a76216a4bc3c3a4c189aaba7c5f | 58f8804177f55dcaeab163d8e72186ed125bf5f1 | refs/heads/master | 2020-05-19T12:53:44.267131 | 2019-05-05T12:00:08 | 2019-05-05T12:00:08 | 184,856,903 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | cpp | exp2prob6.cpp | #include<iostream>
#include<math.h>
#include<conio.h>
using namespace std;
int main()
{
int n, sum, i;
do
{
cout<<"Enter a number: " ;
cin>>n;
if (n<=0)
{
cout<<"Thank you!"<<endl;
}
i = 1;
sum = 0;
while(i<=n)
{
sum+=i;
i++;
}
cout<<"The sum of all wh... |
b0a300ac7ede47a21ac6ad66a1871208901f220a | 1e0db3bab23930fce239844e3e4813ae51735861 | /Attacks_on_reduced-round_KetjeMinor/Teston6rKetjeMinor_rightkey.cpp | 2ed85bbbc88ef1ea60618e1fbfe75460948e154b | [] | no_license | siweisun/MILP_conditional_cube_attack | 7ac4d543bbf6792ced2bc51c4d0d8a3d56936cb2 | 2000fbc847e07b2d0404952a437db36311553b90 | refs/heads/master | 2021-01-25T14:27:00.726233 | 2017-07-15T12:23:27 | 2017-07-15T12:23:27 | 123,699,708 | 0 | 2 | null | 2018-03-03T14:33:53 | 2018-03-03T14:33:53 | null | UTF-8 | C++ | false | false | 13,332 | cpp | Teston6rKetjeMinor_rightkey.cpp | /*
Teston6rKetjeMinor_rightkey.cpp;
Test whether the cube sum with the right key guess is zero or not.
The program is run in Visual Studio 2010 with x64 platform Release.
One experiment averagely takes 76 minutes with this procedure.
*/
#include <stdio.h>
#include <conio.h>
#include <string.h>
#i... |
7a0a618dccfc52140bfb782f69d59bd34ff57b9d | 8ae6b1b46d56ed9a221ac498a3a67a655159b83a | /flexc++/pattern/interval.cc | d430a1114dd4853cd76e3fb72e3a71da82196115 | [] | no_license | ajunlonglive/flexcpp | decc3baa645ddfe6f455291c110d3250ba9c18bf | 2de6b90d79d930152f767bf0117a8d2b26a11e12 | refs/heads/master | 2023-03-16T11:32:46.610788 | 2018-06-25T12:45:38 | 2018-06-25T12:45:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,389 | cc | interval.cc | #include "pattern.ih"
Pattern Pattern::interval(States &states, Pattern ®ex,
Interval const &interval)
{
Pattern ret;
size_t lower = interval.lower();
size_t upper = interval.upper();
if (lower == 0)
{
switch (upper)
{
case 0:
... |
cf3a23a059e5b665b50c0ff9b0031ed011ee1928 | 9bc2462106be4df51f31e44e28ea6a78b42a3deb | /2019_05_19/a/src.cpp | 5371569bca12fadb291d53355bc692469d98c495 | [] | no_license | ysuzuki19/atcoder | 4c8128c8a7c7ed10fc5684b1157ab5513ba9c32e | 0fbe0e41953144f24197b4dcd623ff04ef5bc4e4 | refs/heads/master | 2021-08-14T19:35:45.660024 | 2021-07-31T13:40:39 | 2021-07-31T13:40:39 | 178,597,227 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 185 | cpp | src.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int i, j;
int N, K;
cin >> N >> K;
string S;
cin >> S;
S[K-1] = S[K-1] + 0x20;
cout << S << endl;
return 0;
}
|
ab51500e83d64019f33e9f409b176b3ac1743de4 | 3e1551295154d40d22c5e94b421ed3b1c3f32fcc | /课程设计/8随机文件读写/8随机文件读写/file.h | 8eb903177b90462272aea2483d601738bfbb6453 | [] | no_license | letusget/Cplusplus_work | 2cdd81a029839c1fa530ea86e20818576b884333 | 24590a90dd4afe8081744084b40511710f674490 | refs/heads/master | 2023-06-01T01:58:25.726968 | 2021-07-02T15:37:42 | 2021-07-02T15:37:42 | 373,537,522 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 395 | h | file.h | #pragma once
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <fstream>
using namespace std;
class ReadFile
{
public:
//获取文章数据
map<int, vector<string>>mFile;
//存放文件名
map<int, string>mFileName;
//构造函数
ReadFile();
//读取文件
void read();
//重载操作符,实现从数据文件随机读写
void operator[](int i);
... |
7639fe60ec1c90f0e67bbd46e651e4271459c8e6 | 42d643419562048f585ea7d78caac0e8726d93cd | /llm_dct.cc | f06ae726489474c6fc93ad11b4da3847970e5913 | [] | no_license | mypopydev/dct | 00e4fdb877f18151139f2548b7b7f2bb311662db | df802d0436e32456ceb90e4a6257764ac9ccd222 | refs/heads/master | 2023-05-06T19:23:24.761827 | 2021-06-05T07:39:55 | 2021-06-05T07:39:55 | 373,781,709 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,865 | cc | llm_dct.cc | // https://unix4lyfe.org/dct-1d/
#include <cmath>
// Implementation of LLM DCT.
void llm_dct(const double in[8], double out[8]) {
// Constants:
const double s1 = sin(1. * M_PI / 16.);
const double c1 = cos(1. * M_PI / 16.);
const double s3 = sin(3. * M_PI / 16.);
const double c3 = cos(3. * M_PI / 16.);
con... |
062aa8b7b5ef2a64c0114acfab7ea7e9d51e7136 | 4fd97ff64e457d41820348aebaea704ca4abc48b | /src/plugins/legacy/meshMapping/meshMappingPlugin.cpp | 700afd4a1b8dbabb2e950d1640bde3bc08e1c20d | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Florent2305/medInria-public | c075b2064b2fe96081197ce300777be5be18a339 | 595a2ce62c8864c4ecb8acbf0d50e32aa734ed8f | refs/heads/master | 2023-08-08T00:41:51.671245 | 2023-04-12T07:46:33 | 2023-04-12T07:46:33 | 98,999,842 | 1 | 1 | BSD-4-Clause | 2021-05-31T08:38:28 | 2017-08-01T12:39:01 | C++ | UTF-8 | C++ | false | false | 1,977 | cpp | meshMappingPlugin.cpp | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2019. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.... |
5d0a36138e28fdc280426a2525226c5bd4a7eb02 | 05ba6be9793ba2d9a6507dbaa8ae17561a864f30 | /kwm/space.cpp | 6d178f4ce143eaa258b9c5912deaa1657cdd35bf | [
"MIT"
] | permissive | acarlson1029/kwm | c3a07aa8e12039dec0469cd8362408674c677781 | 3554ebf4fb9203536f34c823408a907885b261a6 | refs/heads/master | 2020-04-08T14:31:23.921002 | 2016-03-01T09:09:14 | 2016-03-01T09:09:14 | 52,635,532 | 0 | 0 | null | 2016-02-26T22:01:07 | 2016-02-26T22:01:07 | null | UTF-8 | C++ | false | false | 6,944 | cpp | space.cpp | #include "space.h"
#include "display.h"
#include "window.h"
#include "tree.h"
#include "border.h"
extern kwm_screen KWMScreen;
extern kwm_focus KWMFocus;
extern kwm_toggles KWMToggles;
extern kwm_mode KWMMode;
extern kwm_thread KWMThread;
extern kwm_border FocusedBorder;
extern kwm_border MarkedBorder;
void GetTagFor... |
7d116da9caafc090827d4a4d6b1b9b9e67c8ad0f | bbeac306f87b85d31b163d9e0673d5fb24f47f39 | /punteros-ej2.cpp | 88986d18a8a00378f99d792d68d6cf8d59650d05 | [] | no_license | programacion-desde-cero/Ejemplos | d24ba4e28f2e17d150488437fe7e70cfdcffc821 | c7b13e8eb4afe8305739e5e21cd2e7fe49ba153b | refs/heads/master | 2021-06-25T08:13:15.227092 | 2021-03-22T11:51:09 | 2021-03-22T11:51:09 | 202,524,811 | 13 | 23 | null | 2020-08-30T23:02:40 | 2019-08-15T10:53:27 | C++ | UTF-8 | C++ | false | false | 1,016 | cpp | punteros-ej2.cpp | /* ----------------
/* Este ejemplo corresponde al video sobre punteros: https://www.youtube.com/watch?v=s8T7cPnYrz0
/* Ejecución del código paso a paso: http://pythontutor.com/cpp.html#code=%23include%20%3Ciostream%3E%0A%23include%20%3Cstring%3E%0Ausing%20namespace%20std%3B%0A%0Aint%20main%28%29%20%7B%0A%20%20string%2... |
6d1a065ac53476db423292341e52deb3028a02bd | 9cf4270a3adac89e49b18e534648e9e7bf500f55 | /SHM#2/ProgramFiles/Player.cpp | e92845cd1b0d14d017950c9f5b6c9b7892d336db | [] | no_license | BarTes8/MaciejSalamonski | e1bd303cf4bc1c25ea5f3d2d1c57c0681173ef41 | c14cc54dfe2912bb56d2d2ca9280f9822f51f63e | refs/heads/master | 2023-03-09T09:49:46.025498 | 2021-02-10T17:26:14 | 2021-02-10T17:26:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,341 | cpp | Player.cpp | #include "Player.hpp"
Player::Player(std::shared_ptr<Ship> ship, uint16_t money, uint16_t availableSpace)
: ship_(ship), money_(money), availableSpace_(availableSpace) {}
std::shared_ptr<Ship> Player::getShip() const {
return ship_;
}
uint16_t Player::getMoney() const {
return money_;
}
uint16_t Player:... |
9783756dbaa6da1fe2a1b3ce93d066d8a0c8c0cf | e034278570555d2be24d7852a856ffc14466fc77 | /Testing/UnitTests/enigmaTest.cpp | b9bea404935c6948cbd8cc62dfcc770b46818e6c | [] | no_license | Toyohara01/ChatRoom | 0592b7647b3f1e61bb428f68ec28af55200a4f60 | 22197046f6db624fef6b175346d567de9f0c2f3a | refs/heads/master | 2022-10-28T23:11:55.704289 | 2020-01-19T22:17:46 | 2020-01-19T22:17:46 | 271,136,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,492 | cpp | enigmaTest.cpp |
/******************************************************************************
* enigmaTest.cpp *
* Test driver for the Crypto module, runs a user specified number of test *
* cases in which a random string is generated, encryped and decrypted. *... |
204c057accde49c0c5ccce0f940a8bae47088c30 | 38bdfe2722abac8d3a3bb0dafed42791d6fbbef4 | /StudentActivity.cpp | 815eb42ddd48967a4ea62734f2aab0aada3e9941 | [] | no_license | abe-mused/student-activities | 4df52e56a0ea85f351061a82767a5ac3a4cafdae | 6c8b40fcfd70045cfcf02c871b1a816faf250575 | refs/heads/master | 2022-12-29T04:44:06.288794 | 2020-10-19T22:32:16 | 2020-10-19T22:32:16 | 305,528,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,337 | cpp | StudentActivity.cpp | #include "StudentActivity.h"
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
StudentActivity::StudentActivity(string sportName, double sportFee, string clubOneName, string clubOneMettingDay, string clubTwoName, string clubTwoMettingDay,
int studentId, string studentName): sport(sportName... |
4e5fbe8675866c0c93c637c60d838539f0649330 | 1bf1bec2a1439de2f53a955a527461235b654601 | /Zumo32U4LEDs.h | 6cb668d363d56d2f4b1acaf48eb081c6ea94154b | [
"MIT"
] | permissive | jeppefrandsen/zumo-32u4-arduino-library | a9d6ea718839642016b0a9525a6a7c3fafa8adf9 | 9756156895cca55344c0dcbfbcefa99b59c03573 | refs/heads/master | 2021-01-02T10:50:02.709401 | 2020-02-15T10:52:24 | 2020-02-15T10:52:24 | 240,090,651 | 0 | 0 | NOASSERTION | 2020-02-12T18:57:11 | 2020-02-12T18:57:10 | null | UTF-8 | C++ | false | false | 1,293 | h | Zumo32U4LEDs.h | // Copyright Pololu Corporation. For more information, see http://www.pololu.com/
/*! \file Zumo32U4LEDs.h */
#pragma once
#include <FastGPIO.h>
/*! \brief Turns the red user LED (RX) on or off.
The red user LED is on pin 17, which is also known as PB0, SS, and RXLED. The
Arduino core code uses this LED to indic... |
f58d3b152d190dc74cd0ccf1a861ff320f87497e | 320413f31bb959ae5902cb37dcb87dd977fd38ab | /spoj/ANARC05B.cpp | 52f9f0a77d3cd7cbe2ad513064c8fda51c61d70c | [] | no_license | aquelemiguel/road-to-swerc | d74b0010f36ac5b078764d428211d97a2541683d | 0f869865b1ea642db5a6a7d97aa5da25577c7606 | refs/heads/master | 2020-03-18T00:51:13.865042 | 2018-07-31T03:52:37 | 2018-07-31T03:52:37 | 134,115,863 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,126 | cpp | ANARC05B.cpp | #include <bits/stdc++.h>
using namespace std;
#define MAX 10000
int main() {
ios::sync_with_stdio(0); // Input and output become more efficient.
cin.tie();
int na, nb;
int a[MAX], b[MAX];
while (true) {
scanf("%d", &na);
if (na == 0) break;
int res = 0, sa = 0, sb = 0;
... |
b53f14374c181a14e728186ab1815f8a349d569f | 63367295aef13e2d4d812dc71227631462a10605 | /ConsoleApplication1/ConsoleApplication1/general_register.cpp | e67e20b582d055f4eba22b57118a895b710072f6 | [] | no_license | daggerplusplus/OS-Group-Project | d2d7d41b7f58d58b36827dc7e1ad93e27cf40442 | 1e1311e9069a8314166a2712d13999710f75e456 | refs/heads/master | 2023-07-13T13:54:14.710744 | 2020-10-07T19:02:02 | 2020-10-07T19:02:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cpp | general_register.cpp | #include "general_register.h"
OSSim::general_register::general_register(){
content = 0;
}
OSSim::general_register::~general_register(){}
int OSSim::general_register::get_content(){
return content;
}
void OSSim::general_register::set_content(int contents){
content = contents;
}
void OSSim::genera... |
92a06b548fcef09c3bb610bd8652f12a26c6bcb1 | e875f4349e4bb8b75b88e0c80626bddf724abb34 | /SmartVestArduino/sketch_smartvest_new.ino | 3e19319ff33cacb25da3cc5d01e3ca17d9e85dbb | [] | no_license | nayoon-kim/SmartSafetyVest | c0b7601b138e3eb8134326ee257827ee5db1dd94 | 447cfbc50ac685e82ae79f824bf4c5e195cd5680 | refs/heads/master | 2023-08-27T19:31:58.680252 | 2021-10-31T15:08:06 | 2021-10-31T15:08:06 | 315,169,050 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,557 | ino | sketch_smartvest_new.ino |
#include <SoftwareSerial.h>
#define BT_RXD 9//수신
#define BT_TXD 8//전송
SoftwareSerial bluetooth(8, 9);
//lcd
#include <Wire.h> // i2C 통신을 위한 라이브러리
#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // 접근주소: 0x3F or 0x27
//온습도
#include <DHT.h>
#define DHTPIN 2 //digtal ~2 pin ... |
766d7a9bdfd44d02fefecc924f5de559786730f9 | d1f382dd8090791eca8813bc61d4829c43349a0e | /level1/12932.cpp | 3cb3cdfe9df66606699ed70a43aff227a25070b4 | [] | no_license | kangyeop/algorithm | 0f12ac33acbfc6a7c20db300d51a1a22c0b0429b | d39587ad2b0832d86efcec70a1f2a4f5ec557cc9 | refs/heads/master | 2023-04-24T09:54:21.300288 | 2021-05-07T06:11:44 | 2021-05-07T06:11:44 | 308,500,889 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | cpp | 12932.cpp | #include <string>
#include <vector>
using namespace std;
vector<int> solution(long long n) {
string s = to_string(n);
vector<int> answer;
for (int i = s.size() - 1; i >= 0; i--) {
answer.push_back(s[i] - '0');
}
return answer;
} |
d3333bbf9619f47a178efb4240700809b78f0924 | ac34cad5e20b8f46c0b0aa67df829f55ed90dcb6 | /src/ballistica/scene_v1/node/sound_node.h | 2ce642e73daf4e0adad6bd0f3664612d6be72339 | [
"MIT"
] | permissive | sudo-logic/ballistica | fd3bf54a043717f874b71f4b2ccd551d61c65008 | 9aa73cd20941655e96b0e626017a7395ccb40062 | refs/heads/master | 2023-07-26T19:52:06.113981 | 2023-07-12T21:32:56 | 2023-07-12T21:37:46 | 262,056,617 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | h | sound_node.h | // Released under the MIT License. See LICENSE for details.
#ifndef BALLISTICA_SCENE_V1_NODE_SOUND_NODE_H_
#define BALLISTICA_SCENE_V1_NODE_SOUND_NODE_H_
#include <vector>
#include "ballistica/scene_v1/node/node.h"
namespace ballistica::scene_v1 {
class SoundNode : public Node {
public:
static auto InitType() -... |
cb6ce523b8cb70e9c724e40b1602413cbfd39c58 | 060c7e5fb11d25c7c32f20e5961b2f13d83774a5 | /Chapter5/Chapter5Task1.cpp | 1f512d54fdcdc6fb85c847e9dae57610af636d57 | [] | no_license | StevenTCShearer/Jumping-Into-CPP | 501c415a7c1802c52164e262d1ef8593ccecc3fb | 23cb5da7971725e5fdac69d3864ad9b93f54059b | refs/heads/master | 2020-04-01T12:04:57.347677 | 2018-10-19T01:20:18 | 2018-10-19T01:20:18 | 153,190,438 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,697 | cpp | Chapter5Task1.cpp | #include <iostream>
using namespace std;
int main()
{
int answer;
cout << "Menu" << endl;
cout << "1) Calculator" << endl;
cout << "2) 99 Bottles of Beer" << endl;
cin >> answer;
switch (answer) {
case 1:
calculator();
break;
case 2:
99Bottles... |
52a0dde0ac741507707df66c614408dc19f88ea1 | 29eb66c7d378e212c78278b3e622a77436db1f58 | /SourceCode/Framework/android/AndroidHandler.cpp | 02ba727945fc76ae379359923f85c600fb037cf5 | [] | no_license | yf885188/BeyondEngine | b71dc0db844e5e9769e30a341e1ca55fc784d9de | 9950c12e6c34450c234905731454b40a6f55609c | refs/heads/master | 2021-06-16T16:02:09.778944 | 2017-03-06T07:01:33 | 2017-03-06T07:01:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29,667 | cpp | AndroidHandler.cpp | #include "stdafx.h"
#include <arpa/inet.h>
#include "AndroidHandler.h"
#include "Event/TouchDelegate.h"
#include "Event/GestureState.h"
#include "Framework/Application.h"
#include "Render/RenderTarget.h"
#include "Render/RenderManager.h"
#include "external/Configuration.h"
#include "Framework/android/JniHelper.h"
#incl... |
e62373314512888f03f0b328400a5dc9e4563c82 | 02cd67235f286cb56c2b52eec5f08851121d7c5a | /banjo/declaration.hpp | a75d24475be9d19a7ea7ec7b5b3c67c41bc19354 | [
"MIT"
] | permissive | Jenny-fa/banjo | 787142a3b9f3050edb25dcaea137100d55192d05 | 26c8675b510ce3bdc73f6d999b904b0fc6005700 | refs/heads/master | 2021-01-18T05:17:06.374467 | 2016-02-14T18:23:24 | 2016-02-14T18:23:24 | 50,858,948 | 0 | 0 | null | 2016-02-01T17:58:09 | 2016-02-01T17:58:08 | null | UTF-8 | C++ | false | false | 287 | hpp | declaration.hpp | // Copyright (c) 2015-2016 Andrew Sutton
// All rights reserved
#ifndef BANJO_DECLARATION_HPP
#define BANJO_DECLARATION_HPP
#include "prelude.hpp"
namespace banjo
{
struct Context;
struct Decl;
struct Scope;
Decl* declare(Context&, Scope&, Decl&);
} // namespace banjo
#endif
|
cc6aa64d066c7f22a7c12b6708c6b19de3489af8 | 15a7b4cbf97b803775b26d8a1a7094cea114cff2 | /Client/include/Text.hh | 2d16d2f52828ab0186a8a81d5915363e8b6ec033 | [] | no_license | AGuismo/G-BALLS-Rtype | 5ba71039a5b7c5bc31f950ff5e6f8758f4e963e5 | 75ba8ee5cded3e450c884a1c222699b8415e5973 | refs/heads/master | 2021-01-17T02:34:34.274163 | 2014-12-30T20:46:31 | 2014-12-30T20:46:31 | 13,957,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,771 | hh | Text.hh | //
// Text.hh for text in /home/brigno/Projects/R-Type/r-type/Client
//
// Made by brigno
// Login <brigno@epitech.net>
//
// Started on Thu Oct 24 10:55:11 2013 brigno
// Last update Sat Nov 23 18:29:45 2013 brigno
//
#ifndef __TEXT_HH__
# define __TEXT_HH__
#include "AWidget.hh"
class Text : public AWidget
{
... |
424fc88f2c4d0ce6e0ba3564f2046195f610d055 | 1fa89d7de3e9acf432cf11356de319669df3dfa0 | /01/c++/prog.cpp | 4d358174188751533ee3bf8058b7764cc108125a | [
"MIT"
] | permissive | flopp/aoc2019 | 58b51ac4855171596415283ff373cd1707a86d12 | d9dae3b88866e0817e643bcd929575c284e074c1 | refs/heads/master | 2020-09-22T00:46:24.745404 | 2019-12-15T12:12:08 | 2019-12-15T12:12:08 | 224,991,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,880 | cpp | prog.cpp | #include <cmath>
#include <iostream>
#include <string>
int fuel_for_mass(int mass) {
return static_cast<int>(floor(mass / 3.0)) - 2;
}
int total_fuel_for_mass(int mass) {
const int fuel = fuel_for_mass(mass);
if (fuel < 0) {
return 0;
}
return fuel + total_fuel_for_mass(fuel);
}
int main... |
435ae37ad846cccad0ee5685546bde484cd81a9e | e1a579d31a579ac5b76af45ff85e5e593e1ed1f1 | /4-5. Disjoint Set/problem3.cpp | f83bdbdbbe78cf111736730121a33eb45ac560ac | [] | no_license | kangyul/CodingTestPrep | 6e60903a8906a62c9babd636baef825f56a777ad | 4b944cb8821de159fce50c1b0ea82726ee40e08e | refs/heads/master | 2023-08-05T01:47:26.999894 | 2021-09-24T05:15:19 | 2021-09-24T05:15:19 | 405,547,000 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | problem3.cpp | #include <iostream>
#include <numeric>
using namespace std;
const int maxn = 40004;
int arr[maxn];
void initialize() {
iota(arr, arr+maxn, 0);
}
int root(int x) {
if(arr[x] == x) return x;
else return arr[x] = root(arr[x]);
}
void connect(int x, int y) {
x = root(x); y = root(y);
if(x == y) ret... |
f25c54b69f1be1dab2f3e0eb1bca0d6affa30d72 | 3ffea2e3fc43fe1d59d66f0b72e0d66723ba9e81 | /mookCalculator.cpp | 4394b986b78af53a33d22fa049343bbe437d8fe1 | [] | no_license | ZeeMastermind/Mook-Calculator | 8d267dc35dc7da14ec052a51be1db9ad3a4b0ef0 | 1ef4270499878513e010dc69d09542294d8c2cfa | refs/heads/master | 2020-06-29T13:04:56.727143 | 2019-08-04T23:51:32 | 2019-08-04T23:51:32 | 200,545,412 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,650 | cpp | mookCalculator.cpp | #include <iostream>
#include <cmath>
using namespace std;
int pascal(int x, int y)
{
/*
Taken from https://stackoverflow.com/questions/15601867/how-can-i-calculate-the-number-at-a-given-row-and-column-in-pascals-triangle
*/
if((x+1)==1 || (y+1)==1 || x==y)
{
return 1;
}
else
{
... |
8696507b4e6636b1214507240078fd28cb13785a | 0140aae256c803510c8ffa2cba2c0597bad5e9ed | /DP- Longest Repeating Subsequence.cpp | 7b0d2b48454b8a457040cc199a4b578a00ea9ea0 | [] | no_license | ks-kushagra/Algorithms | 4d54cad638ed461a8a289a86802b17eea3c43b8e | 8508b4780bb4cb42efd4ad5474c906a4241af4f1 | refs/heads/master | 2022-05-28T00:34:47.861290 | 2022-03-30T17:06:08 | 2022-03-30T17:06:08 | 252,371,902 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,399 | cpp | DP- Longest Repeating Subsequence.cpp | /*
Longest Repeating Subsequence
Given a string, find length of the longest repeating subseequence such that the two subsequence don’t have same string
character at same position, i.e., any i’th character in the two subsequences shouldn’t have the same index
in the original string.
Input: str = "abc"
Output: 0
T... |
ad197c37193f5ffa4309f131d06fe151eef5aa64 | 9f1c4f342a9f52bb25ebda466c529f3eeddc910f | /Cplus/cProject64/traderJni/TraderJniClient.h | cf7c0e3691653b6c17e6e8247c1f95ac956f65b0 | [] | no_license | jamesmasika/JNI | b2562bc472c2cc2ae190db74fb9f5dd8ce5b655c | fd653afe81ae7ba8de1fe83657df861675d66abf | refs/heads/master | 2021-01-23T05:24:53.450390 | 2017-03-28T05:26:19 | 2017-03-28T05:26:19 | 86,304,703 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 650 | h | TraderJniClient.h | #ifndef _TraderJniClient_H_
#define _TraderJniClient_H_
#include <jni.h>
#include "TraderJniApi.h"
#include "TraderJniSpi.h"
class TraderJniClient
{
public:
TraderJniClient(){};
~TraderJniClient(){};
TraderJniApi * getTraderJniApi(){
return this->m_traderJniApi;
};
TraderJniSpi * getTraderJniSpi(){
return th... |
648176605e0bf9d7382163156a4cbe5f0fde8bec | 0014d8cfd3f5b4d383bb1dd4b1f89d9dfb16a575 | /src/experiments/server.cpp | c90d63a05f9a04852b0b0406d88b9f34d3756638 | [
"MIT"
] | permissive | BADAL244/jetson | 697a5780206cc18c077a4f1195524c8499c9ebdb | 63e3b5be2eeb80e842ee2549c0bd4439580c7890 | refs/heads/master | 2020-09-16T03:09:46.556197 | 2015-07-01T02:50:21 | 2015-07-01T02:50:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,765 | cpp | server.cpp | #include <stdlib.h>
#include <iostream>
#include <string.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#define BUFLEN 512
#define PORT 8888
int main(int argc, char* argv[])
{
struct sockaddr_in si_me;
struct sockaddr_in si_other;
int s... |
2ed37aad8f7479831a80e3b8462d8c1b3ec97a52 | da7abd64fc212f4f64c9e46c856a35be3546685f | /notes/module2/examples/exclusiveOr/main.cpp | eaec16422d737a0d456b065a5e13ac7b60c3eba8 | [] | no_license | mortenoj/mathematics | 6b15e800d768464065e57eab1348bc1cb7d85efc | be699a018f0b580af37266852309a31b700d10bd | refs/heads/master | 2020-04-26T10:02:16.047873 | 2019-05-05T17:12:21 | 2019-05-05T17:12:21 | 173,475,855 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,014 | cpp | main.cpp | #include <iostream>
int main(int argc, char const *argv[]) {
int a = 4, b = 3;
std::cout << "initial values of a and b: a = " << a << " b = " << b << std::endl;
a = a^b;
b = a^b;
a = a^b;
std::cout << "new values of a and b: a = " << a << " b = " << b << std::endl;
// Clear... |
6227e83b2cfbf186d825730dea93af875c51621b | 0b5011eb29a90517f9e229233e52d30a2e82133d | /ESP8266 Module Firmware/V2/ESPCraftModulesV2/wifi_.h | dc90b9ec529b6f9e81a23c361fc609278337f16d | [] | no_license | immakermatty/ESPCraft | e595bc5f66d7f208f1c067a92d2532074e33358c | c10381d407f5e8d2e7757936447ee883ef88c75e | refs/heads/master | 2020-04-01T09:54:30.411465 | 2019-03-20T16:43:27 | 2019-03-20T16:43:27 | 153,094,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,475 | h | wifi_.h | #ifndef MODULEWIFI_H
#define MODULEWIFI_H
#include "module.h"
#include <ESP8266WiFi.h>
class ModuleWifi {
private:
String _ssid = MY_WIFI_SSID;
String _pass = MY_WIFI_PASSWORD;
String _name = BOARD_NAME;
protected:
Control *control;
public:
ModuleWifi(Control *c) {
control = c;
}
ModuleWifi(Control *c, ... |
cdc02c9faff40236b7da2f09edce1df4fa62c7aa | a04b6b706aed29af28139e57aeba853dd659d827 | /src/interface/lib-cpp.h | e21de9b58c6b221ee859fc681ef6e4bf95254654 | [
"MIT"
] | permissive | samuell/cell-runtime | 21e749e7d873600c5fd00cbe7ddd1801cccdb889 | 033680ecf9d554fbd55666f05c76cc8e23e0eb25 | refs/heads/master | 2023-03-20T08:20:24.932847 | 2018-08-21T09:39:07 | 2018-08-21T09:39:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,153 | h | lib-cpp.h | #include <vector>
#include <string>
#include <tuple>
#include <memory>
#include <sstream>
#include "cell-lang.h"
using std::vector;
using std::string;
using std::tuple;
using std::unique_ptr;
using std::make_tuple;
/////////////////////////////////// value.cpp //////////////////////////////////
unique_ptr<cell::Va... |
7d8b8254e94fed5377234a0bc2f80419e9f49ba8 | 5e9044c1032ccfa3fd9e216dcd255cc908e7e92b | /D3DXCamera.h | ea25187c9a8efcf357512fcba1b92a8c181766ff | [] | no_license | AspenDove/SolarSystem | ded88d172a5369673aa88198a8e1cff1e8e8129d | 324deab9e6c718ac02a4ae835e032fc7898577ac | refs/heads/master | 2020-11-25T20:36:20.712785 | 2019-12-18T12:21:29 | 2019-12-18T12:21:29 | 228,834,399 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,123 | h | D3DXCamera.h | #ifndef _D3DXCAMERA_
#define _D3DXCAMERA_
#include <d3dx9.h>
class D3DXCamera
{
private:
D3DXVECTOR3 m_vCameraPos; //相机位置
D3DXVECTOR3 m_vCameraLook; //视线方向
D3DXVECTOR3 m_vCameraUp; //竖直方向
D3DXVECTOR3 m_vCameraRight; //右手方向
LPDIRECT3DDEVICE9 m_pd3dDevice;
D3DXMATRIX m_matView;
bool bLookAt = false;
bool bW... |
e99e3ab440f3bbb5ff88ab18ae328505d9bfefcb | 6fe17c32ba5bb492e276e13128c516a3f85f01ff | /beginagain/beginagain2/915B. Browser.cpp | ef015e68958f0ff8cc14f1f2e05886eb6ccd298f | [] | no_license | YaminArafat/Codeforces | 35c5c527c8edd51c7f591bfe6474060934241d86 | 3d72ba0b5c9408a8e2491b25b5b643e9f9be728b | refs/heads/master | 2023-08-17T03:12:04.596632 | 2021-10-06T14:49:29 | 2021-10-06T14:49:29 | 351,042,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | 915B. Browser.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,pos,l,r,ans=0;
cin>>n>>pos>>l>>r;
if(pos>=l && pos<=r)
{
if(l>1 && r<n)
{
ans=((pos-l)<=(r-pos)?(pos-l)*2+(r-pos):(r-pos)*2+(pos-l))+2;
}
else if(r<n)
{
ans=r-pos+1;
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.