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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b5e70ccc7874ecb72d72a5aa70e54a7f5ca15176 | 22675f7a25e1e9825debcafb8933eeb5aa1857dc | /Client/src/GameView/Characters/Hud.cpp | 896d378148a70176263c1d5858479f640f2d37f4 | [] | no_license | SaFernandezC/taller-tpFinal-1c2021 | adfebc425a86354a2d37af63f5c2d956df6e40bf | 2c653f577bb6d79cb5b0528f453640163bb3003e | refs/heads/main | 2023-06-20T03:06:31.348721 | 2021-07-20T20:32:05 | 2021-07-20T20:32:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,094 | cpp | Hud.cpp | #include "Hud.h"
Hud::Hud(Renderer& renderer, int window_width, int window_height):renderer(renderer),
window_width(window_width), window_height(window_height), time_to_explode(-1){}
void Hud::loadMedia(){
Color black_color = {0x00, 0x00, 0x00};
Color yellow = {0xFF, 0xFF, 0x00};
numbers.loadFromFile(re... |
73b1797a9e1546f153d213f80b01549f2bdc637a | 8832b04803f1657567cefb6708593ecd92a01432 | /FAQ_C++/Strategy.cpp | 2c31417b72f7c2fc9765fc453cd30f5d0f32a35f | [] | no_license | haspeleo/Algorithms-implementation | f7d41c1c8d83a4b6ef2d75225662af4a7782c0f7 | 78b5b0f7b6ae4f0211ad26051870b9608a99720a | refs/heads/master | 2016-09-10T20:08:36.924676 | 2012-11-03T18:10:50 | 2012-11-03T18:10:50 | 2,006,372 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 480 | cpp | Strategy.cpp |
#include <iostream>
#include "Strategy.h"
using namespace std;
/*
void AlgorithmeA::execute() {
cout << "Traitement A" << endl;
}
void AlgorithmeB::execute() {
cout << "Traitement B" << endl;
}
void AlgorithmeB::execute() {
cout << "Traitement B" << endl;
}
... |
c0654d9fb027c6fe3656bd63e5ef7e9082846dce | fc361f9be95b553e4563ba0b6e11b78699157859 | /projeto/cutvoxel.h | 4fcc0c827fef30bbfd901d094306d27d147eeada | [] | no_license | davisouzaf/projetoProgramacao | d0ab32529c55369a707746237e6999c020641e57 | 58e859cbb1da5ddbd06519d6262e10573adc6aab | refs/heads/master | 2020-07-16T23:22:07.888774 | 2019-11-25T16:02:33 | 2019-11-25T16:02:33 | 205,889,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | h | cutvoxel.h | #ifndef CUTVOXEL_H
#define CUTVOXEL_H
#include "figurageometrica.h"
/**
* @brief A classe CutVoxel apaga um voxel na posição especificada
* @details
*/
class CutVoxel:public FiguraGeometrica{
private:
int x,y,z;
public:
/**
* @brief CutVoxel é o construtor da classe
* @param x
* ... |
93367308202979c17db60ac6d79b8d2e393a8358 | 161e09a54e42370f807f48b5d4e95350ac0ee38a | /chaps/session_test.cc | 7365c47ef078f3a2d412cea30c2b095139b6aea9 | [
"BSD-3-Clause"
] | permissive | ansiwen/chromiumos-platform2 | eed53bb36e0d51f3593b1b76fb4a437e961dae3c | 5ade4272fa8cc7d4a2aa2442c5e8572329a36473 | refs/heads/master | 2021-01-19T16:41:28.950357 | 2017-03-03T22:04:40 | 2017-03-04T10:59:07 | 88,277,533 | 0 | 2 | null | 2017-04-14T15:07:57 | 2017-04-14T15:07:57 | null | UTF-8 | C++ | false | false | 40,606 | cc | session_test.cc | // Copyright (c) 2012 The Chromium OS 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 "chaps/session_impl.h"
#include <memory>
#include <string>
#include <vector>
#include <base/logging.h>
#include <gmock/gmock.h>
#include... |
2335982d7db04aa6f4985e8a93f22541a7405789 | 7a3f61d60d9af4b4ff0a6f794fbe61d6ba29021d | /testTCPClient/testTCPClient/main.cpp | 4c64ec085f4a5379a65ef64d7de4af0bbd0145ca | [] | no_license | clustc/ByteBuffer | 80da10184d76d2c154ecbf60f7e500c17d82252e | 05ae51cb92da70be59ef4d2abe270b6199d38c97 | refs/heads/master | 2021-05-11T23:47:11.039074 | 2018-01-15T08:49:05 | 2018-01-15T08:49:05 | 117,520,150 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | cpp | main.cpp |
#include "stdafx.h"
#include "TCPClient.h"
int _tmain(int argc, _TCHAR* argv[])
{
TCPClient client;
client.run();
system("pause");
return 0;
}
|
71553c6d983fba28608e1aa66970612b1ee37d8a | 188fb8ded33ad7a2f52f69975006bb38917437ef | /Fluid/processor5/0.09/p | df2f3025659d2207710ddcc51640e9e37a89ee25 | [] | no_license | abarcaortega/Tuto_2 | 34a4721f14725c20471ff2dc8d22b52638b8a2b3 | 4a84c22efbb9cd2eaeda92883343b6910e0941e2 | refs/heads/master | 2020-08-05T16:11:57.674940 | 2019-10-04T09:56:09 | 2019-10-04T09:56:09 | 212,573,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,297 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
... | |
59342384bc28283fd01c0a874f0f61e0b904489d | c37c450c8f83d311ade0641a94910f6f09e6cded | /ch_11_more_classes_OOP/8_HTML_tables/HTMLTable.h | 676baf4aaf6d6eefa1930402681d2307ed8f88a3 | [] | no_license | JackCode/Early_Objects_Practice | 60d62843cff5c56fc809d540f6ba2e4a079224f9 | 617bf59663329cc6aaca039dace66ca561bb7013 | refs/heads/master | 2022-11-22T17:55:52.528440 | 2022-11-18T02:20:12 | 2022-11-18T02:20:12 | 255,453,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | h | HTMLTable.h | #ifndef HTML_TABLE_H
#define HTML_TABLE_H
#include <string>
#include <vector>
#include <iostream>
using namespace std;
class HTMLTable {
public:
struct Student {
string studentName;
int studentScore;
};
HTMLTable(){};
HTMLTable(const vector<Student> &students) { this->classroom = students; }
void... |
af7db47443c0e2acb77349fc2b5f4f388cee6526 | c49eefe7b62109cc0afae883ddcff51dfc79c34e | /src/Dusk/Graphics/RenderContext.hpp | 1e342d3f07dcabd72896830f4c3ce3f6f0a7ba68 | [] | no_license | WhoBrokeTheBuild/Dusk-mk4 | 6e34cb988695f246a35a2e1ecccbb56463d59598 | 74dbb31dd8e398401c33351f66dc959092d7a0fe | refs/heads/master | 2021-01-19T23:03:24.941271 | 2016-09-15T14:53:15 | 2016-09-15T14:53:15 | 88,917,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | hpp | RenderContext.hpp | #ifndef DUSK_RENDER_CONTEXT_HPP
#define DUSK_RENDER_CONTEXT_HPP
#include <Dusk/Graphics/Texture.hpp>
#include <Dusk/Graphics/Window.hpp>
#include <Dusk/Types.hpp>
#include <SFML/Graphics.hpp>
namespace dusk
{
/// The object used to draw to the screen buffer
/** The context that contains methods for drawing primitive... |
f48f003a04e1f3e2536fe14340518cbf8cb3ebfb | dc4a282b7e604cb288375e7e2876ef36b6721aa8 | /swexpertacademy/8278/8278.cpp | ced58ced268a6b3f93b8116b605dc931aae5cf39 | [] | no_license | yjbong/problem-solving | 89be67ba24ad7495d82dcb0788dd7db1b849996a | c775271098daa05fcac269fd15de502e60592d49 | refs/heads/master | 2023-04-02T18:47:22.920512 | 2023-03-21T17:28:02 | 2023-03-21T17:28:02 | 70,111,700 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,655 | cpp | 8278.cpp | #include <cstdio>
#define MAX_M 1000
typedef long long ll;
int T; // 테스트 케이스 수
ll N, M;
ll check[MAX_M][MAX_M]; // check[x][y] = 직전 두 값(Si-1, Si-2)을 M으로 나눈 나머지가 각각 x, y가 될 때의 i값
int main() {
scanf("%d",&T);
for(int z=1; z<=T; z++){
scanf("%lld %lld",&N,&M);
printf("#%d ", z);
if(M==1)... |
851b5a71419a9d0e6323c7fc126303a6d0634cea | c40fff1a7432e08b8a8c4f94649cb0f39cdd4af2 | /CSGPathTracer/Math/Geometry/intersection.h | 6ea2a4b6e99ddffc01abb100584749f78b06af09 | [
"MIT"
] | permissive | TomaszRewak/CSGPathTracer | ed0db6430af30b5a64fd00a2cd23514893a106da | 4d388290cc3b90ccc1b8534e44ab0252f9b61b7d | refs/heads/master | 2020-03-25T11:44:13.766002 | 2019-02-22T12:28:25 | 2019-02-22T12:28:25 | 143,746,171 | 0 | 1 | null | 2019-02-22T12:28:26 | 2018-08-06T15:14:10 | C++ | UTF-8 | C++ | false | false | 516 | h | intersection.h | #pragma once
#include "point.h"
namespace Math
{
struct Intersection
{
Math::Point position;
Math::Vector normalVector;
float distance;
__device__ __host__ Intersection() :
distance(INFINITY)
{ }
__device__ __host__ explicit Intersection(float maxDistance) :
distance(maxDistance)
{ }
__dev... |
44ec259e2ad8ab846573fc4db487b287e641cbb2 | 2431af25c7e0ada19187b499d20d96178f1748a1 | /FlightNodeTracker.h | e11262b4859f17e0bb19ae00ba87d31c0f6a28b1 | [] | no_license | cswrigh2/Flight-Booking-System | babfcfefea2ff4aac0d8f3f55eba562f87566bd5 | 3f8538b7a543a9490b7b6ebc45111a776885c8bc | refs/heads/master | 2020-07-12T05:39:18.960826 | 2014-03-29T23:11:31 | 2014-03-29T23:11:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 194 | h | FlightNodeTracker.h | #ifndef FlightNodeTracker_h
#define FlightNodeTracker_h
#include "Common.h"
#include "FlightNode.h"
class FlightNodeTracker
{
public:
FlightNode *current;
FlightNodeTracker *next;
};
#endif |
0e51593c3784fa39dcb02974bf8c3f6e56df4dc8 | 8cad315164aa5010120320c5ac24cb1aa0772fb1 | /cpp-module-05/ex01/Form.hpp | 12cc85ad396bbff394869cdcf967c631cfea9d13 | [] | no_license | thefullarcticfox/cpp_modules | 50e804458a6eb605d7fed8e65f4d9d0c57c430f7 | 6c1a11c59807a899dc733495db86b498c286be89 | refs/heads/master | 2023-06-15T08:23:54.639049 | 2021-07-12T13:51:32 | 2021-07-12T13:51:32 | 346,848,151 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,633 | hpp | Form.hpp | #ifndef FORM_HPP
# define FORM_HPP
# include <iostream>
# include <string>
# include <exception>
class Form;
# include "Bureaucrat.hpp"
class Form {
private:
const std::string name;
bool _issigned;
const int signgrade;
const int execgrade;
Form();
public:
Form(const std::string& name, int signgrade, cons... |
713f4ab3bf623b9b2d868751b673c39f9818c372 | 67872bb1d77c766445314177a31c2e8862034def | /VentMonFirmware/networking.cpp | a90d06ea67b4b85a8be18143f9298f2ad7043f1a | [
"MIT",
"CC0-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bencoombs/ventmon-ventilator-inline-test-monitor | f0a274b2fca3b269eeeff3eaf50c1e91f177f8c9 | 9a0d899b580f29ccfd6593ebbcdeb846d4091f3f | refs/heads/master | 2022-11-19T04:34:03.767060 | 2020-07-19T01:59:42 | 2020-07-19T01:59:42 | 279,210,400 | 1 | 0 | MIT | 2020-07-13T04:30:39 | 2020-07-13T04:30:38 | null | UTF-8 | C++ | false | false | 5,943 | cpp | networking.cpp |
#include <PIRDS.h>
#include <Ethernet.h>
#include <WiFi.h>
//#include <WiFiUdp.h>
#include <EthernetUdp.h>
#include <Dns.h>
#include "display.h"
// Set true to use wifi, false to use ethernet.
//bool using_wifi = false;
// NETWORKING
#define PARAM_HOST "ventmon.coslabs.com"
#define PARAM_PORT 6111 //... |
59a79f91d8fe499cf07418d0982d64ee2c1cd84b | 76dba61f664fe4a9ecf7fa5a926a43055e8b92d5 | /miniapps/tools/get-values.cpp | 8c54610edaf4951ccd165306e2cff9bc408cd73a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Zlib"
] | permissive | mfem/mfem | 4be8b3782f69af874a543565c25b3615188137a1 | a15866e212b167ab83d5384e7326cdd3fa0723b2 | refs/heads/master | 2023-08-16T23:11:02.996304 | 2023-08-16T03:10:57 | 2023-08-16T03:10:57 | 37,287,688 | 1,442 | 548 | BSD-3-Clause | 2023-09-14T16:29:14 | 2015-06-11T21:42:21 | C++ | UTF-8 | C++ | false | false | 10,843 | cpp | get-values.cpp | // Copyright (c) 2010-2023, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... |
2202cac771d2c31cebb42c1fae04b0cbc5aa808a | e7c16164ceb387a4fba777be4744930c22bf6a31 | /dbserver/profile/dbprofiler.cpp | 659abb53f65d1454915f460b4a58cfaec68d5bf4 | [] | no_license | freewayso/gameserver | a661415b18db93813b93126c7c3ecc62c69c6f3c | 74738181e6b01b0f68414d27c1d2d9cd4b139a2e | refs/heads/main | 2023-01-07T08:28:03.734762 | 2020-11-10T13:01:23 | 2020-11-10T13:01:23 | 311,651,825 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 787 | cpp | dbprofiler.cpp | #include "pch.h"
#include "dbprofiler.h"
#include "mysql/mysqlmgr.h"
INSTANCE_SINGLETON(CDbProfiler)
CDbProfiler::CDbProfiler()
{
}
CDbProfiler::~CDbProfiler()
{
}
bool CDbProfiler::Init()
{
StartTimer();
SetFileName("dbserver");
return true;
}
void CDbProfiler::Uninit()
{
StopTimer();
}
void CDbProfiler::D... |
d5909320cbfe39c25ec1010058b043405c6fbab7 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir521/dir3871/dir4221/dir4367/file4468.cpp | a52f8bf83756e85acde66a9317ea61debb754e42 | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | file4468.cpp | #ifndef file4468
#error "macro file4468 must be defined"
#endif
static const char* file4468String = "file4468"; |
56874eea74e3872bd74ace05e128b50a255374f6 | a79cb046e2ba8c0f483ccff4bce82048368f5970 | /src/main.cpp | 993c171673efb39d242a4bdc76e9434d3b1b777b | [] | no_license | Nickolas1987/image_viewer | 5453d07ed70b33c56ebf98ce63179a69ede8cb00 | 1d0c1d48eaecb33bfd5e0010ae270805baa5fa88 | refs/heads/main | 2023-01-08T23:06:24.804873 | 2020-11-08T10:52:28 | 2020-11-08T10:52:28 | 310,605,274 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,668 | cpp | main.cpp | #include "app.h"
#include "imagehandler.h"
#include "image.h"
using namespace image_viewer_np;
/*Strings for interface*/
const std::unordered_map<std::string, App::COMMAND_TYPE> COMMAND_NAMES{ {"load", App::COMMAND_TYPE::LOAD},
{"ld", App::... |
5398d7e54f82ae51a28a4e0e7d1ea48b252569fd | 4eac9667d4b248a366462c60fd6f6d323b875fca | /Codeforces-D. Soldier and Number Game.cpp | 8e72b78e42283bb5c80a89eb82acbddab783c8a6 | [] | no_license | joy-mollick/Number-Theory | be4a884b1488f3910debc5ff2d9b4a837dfa41f5 | 8d678d6fc93a041b123a3ce5bc2fa2983d46074a | refs/heads/master | 2021-06-27T05:47:06.437366 | 2021-01-02T20:07:13 | 2021-01-02T20:07:13 | 199,852,129 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | Codeforces-D. Soldier and Number Game.cpp | #include<bits/stdc++.h>
using namespace std;
const int mx=5000001;
int prime_fact[mx]={0};
long long dp[mx]={0};
void precal(){
for(int i=2;i<mx;i++)
{
if(prime_fact[i]==0)
{
for(int j=i;j<mx;j=j+i)
{
int temp=j;
while(temp>1&&temp%i==0)
... |
1281b256ecad5bbf12cb596acbe1c6736ff4d512 | 417f1635a1df67a179a37be1a7fc6b726d2c75af | /548B.cpp | 5bbc3f13db0b4f69d2100c131cca10480ffc51f4 | [] | no_license | paulot/codeforces | bf076130e11badebec11849ec6c843bfd320f46a | f12773005991333633b4a61896d7dde21bb0f44f | refs/heads/master | 2021-01-19T04:32:58.990321 | 2017-06-30T08:01:10 | 2017-06-30T08:01:10 | 36,417,705 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 737 | cpp | 548B.cpp | #include <iostream>
using namespace std;
bool state[500][500];
int row[500];
int n, m, q;
int maxr(int r) {
int rm = 0, gm = 0;
for (int i = 0; i < m; i++) {
if (state[r][i]) rm++;
else rm = 0;
gm = max(gm, rm);
}
return gm;
}
int getmax() {
int ma = 0;
for (int i = 0; i < n; i++) {
ma... |
0a0028e083960cf7767e22b0c94fb7f6059cee04 | aef4c847697d7948fbbd73674c73191efff2e359 | /isode++/code/iso/itu/osi/als/ssap/spdu/CDO.cpp | 34a8bdd1686f909637483687c9891f2b2e2dc84e | [
"Apache-2.0"
] | permissive | Kampbell/ISODE | a80682dab1ee293a2711a687fc10660aae546933 | 37f161e65f11348ef6fca2925d399d611df9f31b | refs/heads/develop | 2021-01-10T15:56:44.788906 | 2016-03-19T11:00:15 | 2016-03-19T11:00:15 | 52,000,870 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | cpp | CDO.cpp | /*
* CDO.cpp
*
* Created on: 22 nov. 2014
* Author: FrancisANDRE
*/
#include "als/ssap/spdu/CDO.h"
namespace ALS {
namespace SSAP {
namespace SPDU {
int CDO::encode() {
return 0;
}
ReturnCode CDO::decode(NetworkBuffer& tsdu) {
return OK;
}
} /* namespace SPDU */
} /* namespace SSAP */
} /* namespace A... |
4973357d4bdda0a61bbe388c6edafde0ce0aba7d | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /Tracking/TrkEventCnv/TrkEventAthenaPool/src/VxContainerCnv.h | c65358da6b0a4925b9168edd8030353ec06dab0f | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,653 | h | VxContainerCnv.h | /*
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
*/
//-----------------------------------------------------------------------------
//
// file: VertexContainerCnv.h
// author: Kirill Prokofiev <Kirill.Prokofiev@cern.ch>
//
//----------------------------------------------------------------... |
20abad890b1328fd95690cb74b03f755163a9893 | 335666920a4a5cdcfc9b07b68faafc44ebfa7443 | /CStation/widgets/sensorsdisplayform.h | c72329b96e82964d6bd22a92585abeb3d720d64e | [] | no_license | Pvg08/ESP_CStation | ad756824eb6d1bb72db2050828553558feeab6db | 3c0354cc7ee3253931724331150829e0fb0d6f6c | refs/heads/master | 2020-12-10T12:27:14.260080 | 2017-04-06T02:16:01 | 2017-04-06T02:16:01 | 38,884,014 | 0 | 1 | null | 2016-12-20T19:38:14 | 2015-07-10T14:18:45 | C | UTF-8 | C++ | false | false | 1,618 | h | sensorsdisplayform.h | #ifndef SENSORSDISPLAYFORM_H
#define SENSORSDISPLAYFORM_H
#include <QDialog>
#include "./sensorblock.h"
#include "./ipcamviewer.h"
#include "../server.h"
namespace Ui {
class SensorsDisplayForm;
}
class SensorsDisplayForm : public QDialog
{
Q_OBJECT
public:
explicit SensorsDisplayForm(Server* c_server, QWid... |
253929e4035d4821e88129b7bb2ef1c65f2a1ff7 | 21fe8b7b8c0b87ff9d271f6a8dcfa1891fc17715 | /MSCvisus/MSCTest2DViewer/main_2d_viewer.cpp | 40d9e5d828ec3d8180b9ad72a78587292bb6e151 | [] | no_license | sam-lev/UnSupUnetMSCSegmentation | f2541bc7237b00b727cd6c62b7607f87b21e1bcd | 8a9f996cf7bc7d1e7951deb14c9cb756ac79f48c | refs/heads/master | 2022-03-31T04:10:32.161467 | 2020-01-19T05:13:38 | 2020-01-19T05:13:38 | 197,672,736 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 91,671 | cpp | main_2d_viewer.cpp |
#include <iostream>
#include "dump_image.h"
#ifdef WIN32
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <OpenGL/glu.h> // openGL utilities
#include <OpenGL/gl.h> // openGL declarations
#ifdef WIN32
#include "freeglut.h"
#else
#include "glut.h"
#endif
#include "M... |
8d552fd362164f908830598c4fff6534f1c62f13 | 3033d31326bc844dbdbec57aab67bed61f6a57a0 | /Src/Modules/Modeling/OracledWorldModelProvider/OracledWorldModelProvider.cpp | 332709813c44928e3a508f7ef8eb55e3496d20b5 | [
"BSD-2-Clause"
] | permissive | yelite/BHumanCodeRelease | 4b96c94b50822bcb56aa6ebbad7dba28760cf497 | d6df4573dfa6ad6a1ddfb7c7a46d1957ae1b516a | refs/heads/master | 2021-01-24T14:22:00.174065 | 2014-09-28T01:54:07 | 2014-09-28T01:54:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,280 | cpp | OracledWorldModelProvider.cpp | /**
* @file Modules/Infrastructure/OracledWorldModelProvider.h
*
* This file implements a module that provides models based on simulated data.
*
* @author <a href="mailto:tlaue@uni-bremen.de">Tim Laue</a>
*/
#include "OracledWorldModelProvider.h"
OracledWorldModelProvider::OracledWorldModelProvider():
lastBallModelCo... |
e2df070bfd5f235493c6d54ddffa6c79d28fc94f | 661d438fae4bb60141e89ae59531fee9cc332279 | /lib/Analysis.cpp | 10a4e11565c481260615b668b1af6b684d393ca6 | [
"BSD-3-Clause"
] | permissive | LLNL/typeforge | 651332e722e3e272ae3adc67f92fdca1fc70ce36 | e91c0447140040a9ae02f3a58af3621a00a5e242 | refs/heads/master | 2023-06-12T22:12:39.014512 | 2020-03-10T19:52:45 | 2020-03-10T19:53:33 | 229,631,812 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 47,282 | cpp | Analysis.cpp | /**
* Copyright 2020 Lawrence Livermore National Security, LLC and other Typeforge developers.
* See the top-level NOTICE file for details.
*
* SPDX-License-Identifier: BSD-3
*/
#include "sage3basic.h"
#include "SgNodeHelper.h"
#include "Typeforge/Analysis.hpp"
#include "Typeforge/ToolConfig.hpp"
#include <boo... |
d9b4864b7b80d8ad3747dbc5c0782a61efd1dc5c | 9ce5c27b87659936ac398e2e7f280c440cd4f0ac | /Hw2/CircularQueue/main.cpp | 8736114b23ddb51ab8af9aafbd5cae59693be6aa | [] | no_license | RexCYJ/EECS2040-Data_Structure | 1df998e91254d1b7efa96dce692b56ed51045e31 | 1ed1a1921ef5ab9553a455e8fcdfc99357b389e8 | refs/heads/master | 2023-06-12T23:05:08.751094 | 2021-06-28T18:44:40 | 2021-06-28T18:44:40 | 365,291,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,837 | cpp | main.cpp | #include <iostream>
#include "Queue.h"
using namespace std;
// using std::cin;
// using std::cout;
int main(void)
{
Queue<int> A(10);
Queue<int> B(5);
char c;
int input;
B.Push(1000);
B.Push(2000);
B.Push(3000);
B.Push(4000);
cout << "Type your instructions below.\n";
cout <... |
bdd1c7ababe0e7ccf9c83f4ac5311583aa3bcf79 | b8723a2862a0bc34e02a44628a2f9434693ea7d1 | /kattis/wheresmyinternet.cpp | 38a420e38b6093ab2676e66cfa3ee4dd15b86768 | [] | no_license | mario7lorenzo/cp | ea6d20bbde7ec7217b7bab45f635dda40d2e078b | 253c16599a06cb676a3c94b4892279905486cf5d | refs/heads/master | 2022-05-03T22:27:07.710681 | 2022-04-10T08:37:53 | 2022-04-10T08:37:53 | 158,787,709 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,631 | cpp | wheresmyinternet.cpp | #include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
#define white 1
#define black -1
int dfs_num[200500];
map<int, vector<int>> al;
unordered_set<int> saver;
queue<int> q;
void dfs(int x) {
saver.insert(x);
dfs_num[x-1] = black;
for (int i = 0;... |
e3e430ae1cf68954781f8cba07ea7b54ff312ec0 | 293bc62390ee1f28a985674d04ed58b4607974da | /WindowsService/win_service.cpp | a98c59665f2084ead06c9e99b977095f91bc9a23 | [] | no_license | dd181818/WindowsService-2 | 3aa2dfbe8d3f358840be0ed84570ca2a6d9d94bc | 42e21222e9169f315e4db3e41c923912a64153f6 | refs/heads/master | 2020-04-04T18:01:56.379687 | 2018-07-11T03:30:31 | 2018-07-11T03:30:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,131 | cpp | win_service.cpp | #include "win_service.h"
WinService & WinService::Instance()
{
// instantiated in first use, guaranteed to be destroyed
static WinService instance;
return instance;
}
void WinService::ServiceControlHandler(DWORD dwControlCode)
{
switch (dwControlCode)
{
case SERVICE_CONTROL_SHUTDOWN:
case SERVICE_CONTROL_STOP:... |
2c5e216425f650cb1b4190201afd50ceaf1e4d9c | 950b506e3f8fd978f076a5b9a3a950f6f4d5607b | /cf/vkcup-2017/round-1/B.cpp | 6072b43fe1c71a5cbd512c890b23db89ebd665e9 | [] | no_license | Mityai/contests | 2e130ebb8d4280b82e7e017037fc983063228931 | 5b406b2a94cc487b0c71cb10386d1b89afd1e143 | refs/heads/master | 2021-01-09T06:09:17.441079 | 2019-01-19T12:47:20 | 2019-01-19T12:47:20 | 80,909,953 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,711 | cpp | B.cpp | #define filesfl 0
#define consolefl 01
#define fname "keke"
// evgenstf - batya
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <ctime>
#include <cassert>
#include <stdint.h>
#include <utility>
#include <cmath>
#include <algorithm>
#include <set>
#include <vector>
#include <map>
... |
f19d0a2675afe96140e0ee89bb716481d172e7b4 | 5bd1b0ba0da4d1c72106cfce765a3166f3c98dfd | /Tankerfield/Tankerfield/Obj_RewardBox.cpp | 3152d07fd0f529484be73e600f37c6090f44602e | [
"MIT"
] | permissive | vsRushy/Tankerfield | e608c540d1419d5b6d02217896d6351462c48c2d | f5e3b75f1b428e3b80b0d54879b39bb5320b5418 | refs/heads/master | 2020-07-23T16:12:51.306570 | 2019-09-08T11:42:06 | 2019-09-08T11:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,992 | cpp | Obj_RewardBox.cpp |
#include "Brofiler/Brofiler.h"
#include "PugiXml\src\pugixml.hpp"
#include "Obj_RewardBox.h"
#include "App.h"
#include "M_Render.h"
#include "M_Collision.h"
#include "M_PickManager.h"
#include "M_Map.h"
#include "M_Audio.h"
Obj_RewardBox::Obj_RewardBox(fPoint pos) : Object(pos)
{
coll = app->collision->AddCollid... |
81d7fd3923729febd62a0c0d22e271307559387b | 6ee6cc888f0a82e36fd1687fed4a109f0cb800a7 | /leetcode/973.cpp | f6f1a18f8c25cf5f5c495c53eb05b4d0c87557f9 | [] | no_license | Rayleigh0328/OJ | 1977e3dfc05f96437749b6259eda4d13133d2c87 | 3d7caaf356c69868a2f4359377ec75e15dafb4c3 | refs/heads/master | 2021-01-21T04:32:03.645841 | 2019-12-01T06:33:44 | 2019-12-01T06:33:44 | 49,385,474 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | 973.cpp | struct point{
int x, y;
point(int xx, int yy):x(xx), y(yy){}
};
int sq_dist(const point &p){
return p.x * p.x + p.y * p.y;
}
bool cmp(const point &p1, const point &p2){
return sq_dist(p1) < sq_dist(p2);
}
class Solution {
public:
vector<vector<int>> kClosest(vector<vector<int>>& points, int... |
da61611ec5e5abad6dd2d5c5aba2d21be60eaa20 | 26e089cdfad6834f0792aef058c18620741309a5 | /GLScene/sources/Renderables/InstancedMesh/GLSInstancedMesh_buffers.cpp | 558e1057fb62223a9c186e39e92932e1d20a1fe5 | [] | no_license | amasson42/GLSScene | fd2ec2127a07c15684fcda3188b897508e73adb4 | 5cc6661200e9ea3ee8b6e89f298fd4aa9c7d773d | refs/heads/master | 2023-08-22T15:51:50.263599 | 2023-08-09T15:52:11 | 2023-08-09T15:52:11 | 129,882,209 | 1 | 0 | null | 2021-04-25T00:28:35 | 2018-04-17T09:44:32 | C++ | UTF-8 | C++ | false | false | 2,349 | cpp | GLSInstancedMesh_buffers.cpp | //
// GLSInstanced_buffers.cpp
// GLScene
//
// Created by Arthur Masson on 13/04/2018.
// Copyright © 2018 Arthur Masson. All rights reserved.
//
#include "GLSMesh.hpp"
namespace GLS {
void InstancedMesh::generateBuffers() {
Mesh::generateBuffers();
if (!Mesh::bufferGenerated())
... |
7a2b66b15b0618d7b0db9593b41ae27e35537b0e | 53610da5165ac696e617a13005666eaca040177b | /ordinaryPipes/Lab.cpp | fc809d54f0c07b10252f5b93d61ba851831426ce | [] | no_license | NikkiNgNguyen/cecs326 | 9a69e320bc8529c5357ae672639d098f07e2418c | 5e96dc1d3b7c681e14b3645e9eac1a0787c98838 | refs/heads/master | 2020-04-19T20:07:53.752154 | 2019-04-15T22:55:34 | 2019-04-15T22:55:34 | 168,407,016 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,679 | cpp | Lab.cpp | #include <sys/types.h>
#include <iostream>
#include <cstring>
#include <unistd.h>
using namespace std;
int main(){
string write_msg, msg_read, write_operand;
const short MSG_SIZE = 25;
char msg_write[ MSG_SIZE ];
char read_msg[ MSG_SIZE ];
int fd[2];
pid_t pid;
string operation[3];
pipe( fd ); //create... |
a02fb8c0a5055f523e4791430c44c6d207fb5054 | ebebda1f10b59d0bfa946d9e7bc9687349f95879 | /src/piping.cpp | 153124123c98c5363983ce372bd736b020dde3a9 | [
"BSD-3-Clause"
] | permissive | bw-kiel/contraflow | 7ebab038dfd87d408fa2539a16e6004b6eb09695 | 0199baf8b56735869b28ae526f78dcca117b2060 | refs/heads/master | 2021-04-17T09:29:06.632716 | 2020-03-20T22:08:04 | 2020-03-20T22:08:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | piping.cpp | #include "piping.h"
#include "configuration.h"
#include "interface.h"
namespace contra
{
Piping::Piping(PipingData pipingData, FluidData fluidData) : fluid(fluidData),
d_0_i(pipingData.d_0_i), d_0_o(pipingData.d_0_o),
d_1_i(pipingData.d_1_i), d_1_o(pipingData.d_1_o),
w(pipingData.w),
lambda_0(pipingData.lambd... |
0848d27de22edd941112d66479a30e224bee1251 | 7439f49b0f5652c09d8ab3dc700b9de142962864 | /func/Funcao.h | db7da2bfb16bbf9a60253589d72ced9bcee67436 | [] | no_license | metaheuristics/cgrasp | a211938fce994300d730916170f93798b564059d | 6054abc1a66d2d5da277c684472a2e610e20a8f8 | refs/heads/master | 2016-09-06T15:52:38.466511 | 2013-05-17T19:32:02 | 2013-05-17T19:32:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,176 | h | Funcao.h | #ifndef FUNCAO_H_
#define FUNCAO_H_
#include "ap.h"
#include "real.h"
class Funcao
{
protected:
int cont;
int contGrad;
real minValue;
real bestValue;
public:
static const int ROSENBROCK = 1;
static const int ZAKHAROV = 2;
static const int SUMSQUARES = 3;
s... |
dee809dd6cd315a8acfaab604141ad706e39ec5d | 314e5633c0478ac7b00d81a3d430e6444e6e1cf0 | /OOP/exercise8/exercise4.cpp | 5c1ededbc7c92cccf632223e3babc8cb0140ef2d | [] | no_license | Petrychho/studies | 1db1df092af632719970313ded005297ad8781ca | a1d4fdc818f069849c6b604e1c9a43002d40627a | refs/heads/master | 2021-09-11T01:21:26.064459 | 2018-04-05T15:15:01 | 2018-04-05T15:15:01 | 109,724,550 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,927 | cpp | exercise4.cpp | #include <iostream>
#include <string>
using namespace std;
class Publication
{
private:
string book;
float price;
public:
Publication(): book("N/A"), price(0.0)
{};
void PutPublication()
{
cout << "Введите название книги: "; cin >> book;
cout << "Введите цену книги: "; cin >> price;
}
vo... |
6414c19df76979c448486726234fb72aa486fddf | c87ef4aefec6b872392c99dbf905b0c9d67e1cab | /bintree/binary_tree.hpp | 7dbf233b052a33b607a03e5d3b6da99b1bc00c76 | [] | no_license | goodboybeau/data_structures | eefe4c470b94b4b987b06832d96378382ba47b55 | 204cea96ac985a297a36a2140d0e6fe6f4d3863f | refs/heads/master | 2021-05-31T02:51:28.838028 | 2016-01-29T17:20:21 | 2016-01-29T17:20:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,594 | hpp | binary_tree.hpp | #ifndef _BINARY_TREE_HPP_
#define _BINARY_TREE_HPP_
#include "include_c11.h"
#include <scoped_lock.hpp>
#include <memory>
#include <atomic>
#include <mutex>
#include <iostream>
#define DEBUG(s) std::cout << s << std::endl; std::flush(std::cout);
template <typename T>
struct node
{
node() = delete;
node(const ... |
9d207c0dd49c3782634fc5b9392b1133eeb927cc | eedc3592e3f94aace892db75f97da3cdccff2dfc | /core/dictionary.h | 387e91d070af32fac82b3c0df226209e41a253c7 | [] | no_license | MatheusWoeffel/TwitterSentimentAnalysis | b54ceba26dff765cbff73e642ffdfc7f071e9601 | 4042ed69808b6d3373f83ff968f776ff692a2af8 | refs/heads/master | 2021-09-17T11:43:34.652459 | 2018-07-02T00:48:42 | 2018-07-02T00:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,996 | h | dictionary.h | #include <vector>
#include <iostream>
#include "tinyutf8.h"
#include <list>
//Stores the information about the given word
typedef struct wordData {
utf8_string word;
float weight;
int occurrences; //Number of occurences
int score; //Accumulated score
wordData() :
word(""), weight... |
453f11f751a58bbf97d7922bca596019add7c6f8 | fba2a523abfa3904c212080c1d59cb05c81d262d | /calice_userlib/include/.svn/text-base/LinearFitResultLCIO.hh.svn-base | 2dee561fabbe94a3e74e161fd1904e525f6e4701 | [] | no_license | linghuiliu/CosmiTestLCIO | 5f3ff6ae72514e56c8d5ae942ca394e3564d6405 | 0b8b076bd1fce8f74f1882ed6477b52894d4341a | refs/heads/master | 2021-09-06T19:16:55.615298 | 2017-12-08T10:50:43 | 2017-12-08T10:50:43 | 110,945,118 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,523 | LinearFitResultLCIO.hh.svn-base | #ifndef LINEAR_FIT_RESULT_HH
#define LINEAR_FIT_RESULT_HH 1
#include "UTIL/LCFixedObject.h"
#include <cmath>
#include <iostream>
namespace CALICE {
// helper enums:
// NDF = number of degress of freedom
enum EIntLFTValues {k_ID_IntLFT, k_NDF_IntLFT, kNIntLFTValues};
// no floats for the moment
enum EFlo... | |
308324a1d9177743c3ff5e170269349a89d956d2 | ba1bb8d233cd3c2e8953f879d7c054307118f606 | /SystemCImplementation/controller/stage_counter/stage_counter.hpp | b694c4da1bf4b9b8cd66224fc996a645656e2f37 | [] | no_license | hzc9107/FFT_PROJECT | 4f1869cebb2ba0858a5622e4c3583cfaf5acf37f | b2f7b0b2bdb1b5c4c007c0531ff20cd46be0c5c7 | refs/heads/master | 2021-09-16T00:23:38.268093 | 2018-06-13T20:19:28 | 2018-06-13T20:19:28 | 109,652,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 759 | hpp | stage_counter.hpp | #include<systemc>
#ifndef STAGE_CNT_H
#define STAGE_CNT_H
template<unsigned int stage_width>
SC_MODULE(stage_counter){
// Inputs
sc_core::sc_in_clk clk;
sc_core::sc_in<bool> reset,
enable,
stage_finish;
// Outputs
sc_core::sc_out<sc_dt::sc_uint<stage_width> > st... |
e3396834e155e7144f3fda762e7af2279756c568 | 58b5ca0ad9d0db45bc4c47ea0c62e6424b779ba2 | /Week_01/day-5/31/main.cpp | c2da26e5924dce34d33cdbe814d555a67f274eea | [] | no_license | green-fox-academy/znemeth | b72f48f4621c9434b1ae114c5b1c368cc21f87c1 | eda20c847143812f77d3e5d44614be49cc6dcbbc | refs/heads/master | 2020-04-16T18:51:54.696643 | 2019-07-25T14:27:37 | 2019-07-25T14:27:37 | 165,837,872 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | main.cpp | #include <iostream>
int main(int argc, char* args[]) {
// Write a program that reads a number from the standard input, then draws a
// square like this:
//
//
// %%%%%%
// % %
// % %
// % %
// % %
// %%%%%%
//
// The square should have as many lines as the n... |
00097d04e196faaffbcabe10b727c8283c311b93 | 7d0f691bd1b39033de8dc67e8712fc6863c4bdde | /src/hello.cpp | 43ad69126082840e1b23852c707d610de0b63888 | [] | no_license | LJLCarrien/nodeTest | 3e702f8ffcca74bbdb3eac26d8c8d010382c5b61 | 8ccf5b97eed37c1f9374f9b9659e25dc784701e5 | refs/heads/master | 2022-12-15T09:12:50.909829 | 2020-09-03T10:14:28 | 2020-09-03T10:14:28 | 292,163,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,593 | cpp | hello.cpp | #include <node.h>
using namespace v8;
namespace demo
{
// using v8::FunctionCallbackInfo;
// using v8::Isolate;
// using v8::Local;
// using v8::Number;
// using v8::Object;
// using v8::String;
// using v8::Value;
// Method1 实现一个 输出"hello world ONE !" 的方法
void Method1(const Functi... |
49442df5b4268ac9ab6f111df7c11ec7689ff6bd | 6ef53083d8de65d54bc20ec1a06060458ec92ebe | /2.1/2.1.13/test2113.cpp | bd0407b3e7c4cb1c896f8bdd30e80591937c32d1 | [] | no_license | lanecoder/leetcode | fa5c59dfd2344412bf8902dc1f68b02698478f31 | 419c9f814d25e54682fe13c658801a3c23ace239 | refs/heads/master | 2020-03-19T23:38:23.329400 | 2018-07-21T10:43:06 | 2018-07-21T10:43:06 | 137,013,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | cpp | test2113.cpp | #include<iostream>
#include<vector>
#include<string>
#include<algorithm>
// the set [1,2,3...n] contains a total of !n unique permulation
// by listing and labeling all of the permulation in order,we get
// the following sequence(ie,for n=3):
// "123" "132" "213" "231" "312" "321"
// given n and k,return the kth permu... |
f76be4f3a4a7919448ee743adf8632a4d766fb33 | e1951b7f7a739b96e961797f8849e58dcb41f00d | /falcon/mpl/back_inserter.hpp | 1769f4680c1f0b056dfe9f28383041be72803426 | [
"MIT"
] | permissive | jonathanpoelen/falcon | fcf2a92441bb2a7fc0c025ff25a197d24611da71 | 5b60a39787eedf15b801d83384193a05efd41a89 | refs/heads/master | 2021-01-17T10:21:17.492484 | 2016-03-27T23:28:50 | 2016-03-27T23:28:50 | 6,459,776 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | hpp | back_inserter.hpp | #ifndef FALCON_MPL_BACK_INSERTER_HPP
#define FALCON_MPL_BACK_INSERTER_HPP
#include <falcon/mpl/push_back.hpp>
#include <falcon/mpl/inserter.hpp>
#include <falcon/mpl/arg.hpp>
namespace falcon {
namespace mpl {
template<typename Sequence>
using back_inserter = inserter<Sequence, push_back<arg<1>, arg<2>>>;
}}
#endi... |
ce8056915350f1de5ada085d62d15b9af5ec5f68 | 443771b647250b420cde376f43d4c879ad0bd417 | /test/project_euler/0001-0050/Problem12.cpp | e32646adaff6cb22db13bf2a5240a689d5377d22 | [
"MIT"
] | permissive | wtmitchell/challenge_problems | 09c07e6d4d5b2275da3e47721cd1538b0f4e2278 | b0fd328af41901aa53f757f1dd84f44f71d7be44 | refs/heads/master | 2020-12-24T08:54:48.229896 | 2020-04-04T12:03:52 | 2020-04-04T12:03:52 | 13,024,003 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 996 | cpp | Problem12.cpp | #include <gtest/gtest.h>
#include "project_euler/Factory.h"
using project_euler::Factory::create;
#include "project_euler/0001-0050/Problem12.h"
using project_euler::Problem12;
TEST(Problem12, bruteForce) {
Problem12 p;
EXPECT_EQ(28, p.bruteForce(5));
EXPECT_EQ(76576500, p.bruteForce(500));
}
TEST(Problem12,... |
d3ee06af6877d009064c77a3d5e174b6f73c1ecd | 4363abbef1d9ae18ed418cea00cb6cf0ee78b4b7 | /2-dimention array.cpp | 92c652eacfbec03856d5f1e5fd70b83defa88e99 | [] | no_license | michaelY386/Leetcode-problems | 67c99cff90110188352f685b2b7176191db5308d | f4c89ef73a72008105da701b83fb70aa4e668036 | refs/heads/master | 2021-07-05T10:24:28.773123 | 2017-10-01T19:22:00 | 2017-10-01T19:22:00 | 104,435,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | cpp | 2-dimention array.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <cstdlib>
using namespace std;
void Traverse(int direction, int i, int j, vector<vector<int>>& matrix,
vector<vector<int>>& flag) {
const int dx[] = {0, 1, 0, -1};
const int dy[] = {1, 0, -1, 0};
int m = matrix.size();
int n ... |
9b18076bb1f55762a474539fa9d6ca9760e2b0dc | 529d526489190b75a700e3ebe4a176576766141c | /cpp/String/String/main.cpp | d9f64c05e65cb39cea41e98a4ce8df809191b1ae | [] | no_license | chongqichuizi/cpp_homework | 306c975d2feca8338f46fb85c23cff6992b02131 | 6896027f5059f18b2ea8f9537f4873759599d2d5 | refs/heads/master | 2020-05-18T06:17:12.619594 | 2019-05-15T12:28:58 | 2019-05-15T12:28:58 | 184,229,887 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 647 | cpp | main.cpp | #include <iostream>
#include "String.h"
using namespace std;
int main()
{
String str1, str2, str3, temp;
cout << "please input three strings:"<<endl;
cin >> str1 >> str2 >> str3;
cout << "str1 + str2 = " << str1 + str2 << endl;
if (str2 > str3){
temp = str2; str2 = str3; str3 = temp;
}
if (str1 <= str2)
... |
a6094183a4842714ca3e439a1ba987b13c4efec9 | d5a4f0e7c362c432299f06e7e81908eb72df5226 | /Cola2.cpp | 6f75a3ae42d3e160062860501c4f576855d20fc0 | [] | no_license | Brian022/Stack-and-Queue | 9f8571d25288d9815094c9078c7e5d0663be3fea | 74f1b55c9cb6d3d99f22b800d2b49f27026294b4 | refs/heads/master | 2020-06-06T07:32:06.226197 | 2019-06-26T17:19:38 | 2019-06-26T17:19:38 | 192,678,503 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,089 | cpp | Cola2.cpp | #include <iostream>
using namespace std;
template<typename T>
class Cola;
template<typename T>
class Node
{
private:
Node<T> *sgte;
T data;
public:
Node(T data){this->data = data;}
friend class Cola<T>;
};
template<typename T>
class Cola
{
private:
Nod... |
182d15b4e86fd75f90515ffb604a2a3825f2bdb1 | cc047b5c8a3a8049912a15d03e37fa4f68aaf37b | /9/Ćw 9,2.cpp | 83b280a0a64e8e33fe44cc1b6b74a6f40c963062 | [] | no_license | SeiperLu/Nauka | a046609f38478ddd5f1922a74eb1d3bd59bdd8d5 | 39411650c262b6b9232d9a0ab3859240a72c9f9e | refs/heads/master | 2023-07-14T19:29:45.229810 | 2021-08-12T11:04:39 | 2021-08-12T11:04:39 | 343,428,592 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 716 | cpp | Ćw 9,2.cpp | #include<iostream>
#include<cstring>
using namespace std;
void strcount(const string str);
int main()
{
string input;
char next;
cout << "Wprowadz wiersz:\n";
getline(cin, input);
while (cin)
{
strcount(input);
cout << "Wprowadz nastepny wiersz (wiersz pusty konczy wprowadz... |
a48dc6703d9fba1302cd0e82b912f282ee279b1f | 676259e3d88b159d388ab19f8b090a02a0785457 | /Plataforma/saboteador_base/src/saboteador_hw_interface.cpp | faf82c88ad99df5ac16fbc7301bb294f899b4bd2 | [] | no_license | jj-jc/Saboteador | a78df3e952a985c9e132d1cd79fb1bbc7bd5756d | 3ffe7baa611828b1959b41033402be3ce46389bf | refs/heads/master | 2023-08-20T18:58:20.552438 | 2021-05-27T08:53:26 | 2021-05-27T08:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,290 | cpp | saboteador_hw_interface.cpp | #include <saboteador_base/saboteador_hw_interface.h>
// ROS parameter loading
#include <rosparam_shortcuts/rosparam_shortcuts.h>
#include <std_msgs/Float32.h>
//#include <std_msgs/Int32.h>
#include <iomanip>
namespace saboteador_base
{
SaboteadorHWInterface::SaboteadorHWInterface(ros::NodeHandle &nh, urdf::Mod... |
a2a1b1a10bcc0f1842ceb4d6189175931b4142e5 | 6e45a15f8fb5d919f573924b20a2c5f835776c48 | /PacketGenerator/MessageManager.cpp | fd651b2b6c46a936dee364219bb0fec7ca7526ec | [] | no_license | 433Project/PacketGenerator | c169a6db8ca37fba2ab3ef23be8240ad4d4e8308 | 6082d0c49d987bc56774f43a7ee363ec810549c2 | refs/heads/master | 2021-01-17T18:11:42.197178 | 2016-11-24T06:16:57 | 2016-11-24T06:16:57 | 71,208,362 | 0 | 0 | null | 2016-11-17T06:21:56 | 2016-10-18T04:18:15 | C++ | UTF-8 | C++ | false | false | 794 | cpp | MessageManager.cpp | #include "MessageManager.h"
MessageManager::MessageManager(int packetSize)
{
this->packetSize = packetSize;
}
MessageManager::~MessageManager()
{
}
void MessageManager::MakePacket(char* bytes, COMMAND comm, string data1)
{
flatbuffers::FlatBufferBuilder builder;
flatbuffers::Offset<Body> body;
if (data1.empty... |
320dd41037bea6b2fb3ffeefa529880f62e5ec7a | 8f9a6ca8f37eb4a85e4a0519bc76d6a4525493cc | /google-codejam/Qualification Round 2009/Alien Language/solution.cpp | 437b4fa8ac331f14fd13b8c49a6e011bae55a982 | [] | no_license | shivam04/codes | 58057cc7c79171fdad6b597f744448573f581ea0 | 46f7c0f0f81304b2169a1a25ed7e95835d63e92c | refs/heads/master | 2023-07-19T17:17:21.414147 | 2023-07-09T17:41:07 | 2023-07-09T17:41:07 | 75,619,021 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,117 | cpp | solution.cpp | #include <bits/stdc++.h>
using namespace std;
int ans(vector<string> words, string w[], int l) {
int cnt = 0;
int anss = 0;
for(int i=0;i<l;i++) {
int cnt = 0;
for(int j=0;j<w[i].length();j++) {
// fout<<w[i][j]<<" "<<words[j]<<"\n";
for(int k=0;k<words[j].length();k++) {
if(words[j][k]==w[i][j]) {
... |
f4099a8268fab062ff45d50f687e170e86f78c59 | c7850d478e1a62fc8b016225d7a748cf1b0cb81f | /tpf/modelos-nested/modelos/goodwin-minsky-matlab/atomics/chgPopulation_PopulationDEVS_BASIC_COUPLED_Population.h | 22f732265784161e433b152e430245daee9a5431 | [] | no_license | dioh/sed_2017_tps | 8bac2bd824335581a33ad9b010747ea4af273130 | c17d1d2d4b1d80bafe33053f7f2b58661b9bcc65 | refs/heads/master | 2021-09-14T07:35:57.009752 | 2018-05-09T19:16:33 | 2018-05-09T19:16:33 | 103,854,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,088 | h | chgPopulation_PopulationDEVS_BASIC_COUPLED_Population.h | #ifndef _chgPopulation_PopulationDEVS_BASIC_COUPLED_Population_H_
#define _chgPopulation_PopulationDEVS_BASIC_COUPLED_Population_H_
#include <random>
#include "atomic.h"
#include "VTime.h"
#define CHGPOPULATION_POPULATIONDEVS_BASIC_COUPLED_POPULATION "chgPopulation_PopulationDEVS_BASIC_COUPLED_Population"
class c... |
e0387f65def40ae32f7494858b2608b23d6c91c5 | eee4e1d7e3bd56bd0c24da12f727017d509f919d | /Case/case1/1100/nut | b1b8a95b6247c29f1dfe85f8b69c0e1b89312746 | [] | no_license | mamitsu2/aircond5_play5 | 35ea72345d23c5217564bf191921fbbe412b90f2 | f1974714161f5f6dad9ae6d9a77d74b6a19d5579 | refs/heads/master | 2021-10-30T08:59:18.692891 | 2019-04-26T01:48:44 | 2019-04-26T01:48:44 | 183,529,942 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,555 | nut | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
090fd48fbda0427547293949bbe0fdea128f4818 | 79f281325b5fcce161905669c00ce8681b117fb3 | /Tests.h | 2e35dbb7bd444e7aa04f5bb3f6ada3e3e206fd13 | [] | no_license | Mindaugas3/hash_generatorius | 6f856277db6d8774059f57e5f100a9bb2daca61e | 99c19827fbb2ecc99cb9182ce80d19e172ab2ebd | refs/heads/master | 2022-12-29T09:15:59.698556 | 2020-10-19T15:53:12 | 2020-10-19T15:53:12 | 299,103,674 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | h | Tests.h | //
// Created by Mindaugas on 2020-10-08.
//
#ifndef HASH_GENERATORIUS_TESTS_H
#define HASH_GENERATORIUS_TESTS_H
#include "Converter.h"
#include <vector>
class Tests { //klase skirta failu dvejetainio ir sesioliktainio skirtumu palyginimui ir taip pat simboliu generavimui
private:
public:
static void compare... |
9416d3ff941bb1a52b8d415431d0dcd7a8a2dea4 | 0e88892ac677c180d6aa9bb5665729a609d3a170 | /src/core/memory/stack_allocator.h | d7e42d54f005879e9b7fd0fe1a4121d236d79c16 | [
"MIT"
] | permissive | UIKit0/crown | 630720672389903140392db772b70e1dd9f3c998 | 11e8631a0a80830695ba3594a952a2d0ac278d54 | refs/heads/master | 2020-12-03T03:34:41.998651 | 2015-12-12T13:54:29 | 2015-12-12T13:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | h | stack_allocator.h | /*
* Copyright (c) 2012-2015 Daniele Bartolini and individual contributors.
* License: https://github.com/taylor001/crown/blob/master/LICENSE
*/
#pragma once
#include "allocator.h"
namespace crown
{
/// Allocates memory linearly in a stack-like fashion from a
/// predefined chunk. All deallocations must occur in... |
8e268b1fbc82d4f61a89c5f8498c4dc1f4b1ee4e | 94c0a7140191c79e79954d79e64d86a24241999a | /NEVista/System/File/FileDirectBinaryWriter.cpp | 6d09e130f1d0bfa44733b2bfc136ca1a319e782e | [] | no_license | lemmingrad/NEVista | 58e6d96358a9dee855300cc1cd1fbca4bff547c6 | c1ca13fff5d0bca21bca4babcf16ded9193bcd03 | refs/heads/master | 2021-01-15T15:54:50.333313 | 2016-10-05T14:29:07 | 2016-10-05T14:29:07 | 2,606,111 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,073 | cpp | FileDirectBinaryWriter.cpp | //----------------------------------------------------------//
// FILEDIRECTBINARYWRITER.CPP
//----------------------------------------------------------//
//-- Description
// CFileDirectBinaryWriter class. Derived from
// CFileDirectWriter.
//----------------------------------------------------------//
#include "Fil... |
cca5b4636d26f311e7136a226787ecc432c4cacf | 4b478a68e29260e2e370f08f1a92ae0af77391c5 | /Blliards/include/GPLS/DX11/CS.h | f9d40626c0d90e3272f6facad07f5e3b36b0ea39 | [
"MIT"
] | permissive | winpass0601/Training | 6f446f63374cee5854dd178234a5bad6fba65472 | 481eaf4697f971fe8aa01ae33ac70a928852b7e1 | refs/heads/master | 2021-01-13T15:08:58.063913 | 2016-12-12T11:37:35 | 2016-12-12T11:37:35 | 76,235,059 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 601 | h | CS.h | #pragma once
#pragma warning(disable:4005)
#include<./Macro.h>
#include <D3D11_1.h>
#include <./GPLS/DX11/Interfaces.h>
namespace rinfw {
namespace graphics {
namespace gpls {
class CS :
public gplsi::IComputeShader,
public gplsi::IBuffer,
public gplsi::IShaderResourceView,
public gplsi::IUnorderedAccessView{
publ... |
8aad5230065a4bf0ccc9fd9a93e7d09d394c4c53 | 41a8bb6d83e336b2d00d008c3eca28defccde3a0 | /app-pitch/pitchframe.h | 2d918bf4f3bc8631f6e864eb229657dd4f8dd88d | [] | no_license | jocelyn-stericker/creator-live | 2ec4197e416bf630cd53ceafcd10504f7e563554 | 958078804d061f60720d4e84cc17a977983e2cfa | refs/heads/master | 2022-11-12T13:52:38.247316 | 2013-06-27T05:52:35 | 2018-06-14T02:17:07 | 10,294,551 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,641 | h | pitchframe.h | /*******************************************************
Part of the Creator Live Music Production Suite.
Copyright (C) Joshua Netterfield <joshua@nettek.ca> 2012
All rights reserved.
*******************************************************/
#ifndef PITCHFRAME_H
#define PITCHFRAME_H
#include <... |
e5c0f6ce99ac038465448f737505c25968838e09 | 3a36c4ed78a275cf8ca178b983c62bfd2eb7a39c | /hackerearth/circ_jun_19/1.cpp | 7c7412efe8028d656bbdb76d6d44523280dabf2e | [
"Unlicense"
] | permissive | tuket/challenges | af7b5811bbb44bb0a21c80ff49ce4cee6fd88488 | 456979020c78dfcae2f8681245000bb64a6aaf38 | refs/heads/master | 2021-07-13T12:59:05.052206 | 2020-05-22T21:12:34 | 2020-05-22T21:12:34 | 147,118,768 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | 1.cpp | #include <iostream>
#include <string>
using namespace std;
int main()
{
int n;
cin >> n;
string a, b;
cin >> a >> b;
int i;
for(i=0; i<=n; i++) {
int j;
for(j=i; j<n; j++) {
if(a[j] != b[j-i])
break;
}
if(j == n)
break;
... |
7a70df790958e8e8376be6ce09ada17a3f2966db | 27466e78d3cd1ed168d96fd4c2fb26add1ec7cc3 | /NVIS/Code/Render/Rendering/Spatial/Renderers/NEZoneCompartmentRenderer.cpp | 215b0600ae74179e3fdc5ffce1d0c7ff8fdfa657 | [] | no_license | gpudev0517/Fire-Simulator | 37e1190d638a30c186ae1532975a56b23ffaac67 | 46581c19356e47a5c6fc8a9ee6f6478b96d02968 | refs/heads/master | 2023-04-26T02:54:53.458427 | 2021-05-14T10:16:10 | 2021-05-14T15:25:28 | 277,579,935 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 11,023 | cpp | NEZoneCompartmentRenderer.cpp | #include "NEZoneCompartmentRenderer.h"
#include "Base/NEBase.h"
#include "Mesh/NEZoneCompartment.h"
#include "Rendering/Manager/NEGLManager.h"
#include "Rendering/Manager/NEIGLSurface.h"
#include "Rendering/Manager/NERenderManager.h"
#include "Rendering/NEGLRenderer.h"
#include "Resource/Mesh/NEIndexedTriMesh.h"
#in... |
f9e6577673440376c32f6a448fd7dbd4110bd9e8 | 33b8b8fca8025ad32f877a829ab894d4f106f244 | /bg2e-modified/include/bg/render/vulkan_low_overhead_pipeline.hpp | 49f1ce35992863a1ac7cd6ef5d6de4f6a52decb6 | [] | no_license | FredyTP/TestSite | 2a2e8b0efbe92b6be12f5783f250183c212fd989 | 2c7e1e0f3277b5776d7bee964b1ba79afff2ec57 | refs/heads/master | 2020-04-16T03:39:09.270311 | 2019-02-13T13:11:25 | 2019-02-13T13:11:25 | 165,239,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,126 | hpp | vulkan_low_overhead_pipeline.hpp | /*
* bg2 engine license
* Copyright (c) 2016 Fernando Serrano <ferserc1@gmail.com>
*
* 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 th... |
9cb0220e8afe8a367470a8b0d0aad5d977b56d5f | 48208f47129a304ff1864c43eb80204cf97e156c | /CardGame/temp/state_machine/StateMachine.h | 4c8c4f2153e8af3f4947b37cd4b56642230447a4 | [] | no_license | JimmyFromSYSU/CardGame | c2bb6acfd708191e5073a97a1b033e63f83d1ae4 | 2a822a9dead3cd607e3447597376bb618651c95c | refs/heads/master | 2021-01-15T21:34:03.611606 | 2017-08-12T07:47:55 | 2017-08-13T06:57:47 | 99,878,084 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 184 | h | StateMachine.h | #ifndef CARD_GAME_STATE_MACHINE
#define CARD_GAME_STATE_MACHINE
#include "EventQueueListener.h"
class StateMachine {
};
#endif /* end of include guard: CARD_GAME_STATE_MACHINE */
|
e3814e7d0eafd8ffe4e77ba191faba51448a50c0 | 11d88efb3a4325654a3285bf12e8bb464fbd076a | /Code/Engine/Math/Vec3.hpp | ca4739c8322e0f3d49e7060ccb07a757e2a22d46 | [
"MIT"
] | permissive | iomeone/Engine-1 | eb465d4080bf8004023027cc8a7fe2539e43b558 | 0ca9720a00f51340c6eb6bba07d70972489663e8 | refs/heads/master | 2022-11-07T05:03:07.614714 | 2020-06-20T04:23:01 | 2020-06-20T04:23:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,624 | hpp | Vec3.hpp | #pragma once
#include <string>
//------------------------------------------------------------------------------------------------------------------------------
struct Vec2;
//------------------------------------------------------------------------------------------------------------------------------
struct Vec3
{
pub... |
c1ebd6d892122bd71860bcd8244f14595aee0577 | 17b990be4f317e42be5fb98cab3a4e4f035a823d | /Platformer/pickup/flashingPickup.h | 62aff632fc5ed850fffa580d8c8d9cce0adc6dd0 | [] | no_license | adrian17/cavestory | ac0b7dbf6597e4c4eee4094d75e3f7bef7bac4d9 | c351bf52f4ef762fdc8d79fb461b5badd11699e9 | refs/heads/master | 2021-01-01T05:51:59.933107 | 2015-01-12T12:48:02 | 2015-01-12T12:48:02 | 19,618,897 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 954 | h | flashingPickup.h | #pragma once
#include "pickup/pickup.h"
#include "sprite/sprite.h"
#include "util/timer.h"
#include <memory>
class FlashingPickup : public Pickup
{
public:
Rectangle collisionRectangle() const;
bool update(const Units::MS dt, const Map &map);
void draw(Graphics &graphics) const;
int value() const { return value_... |
bdd69d242ebc18dea829dc252507abdcc5280e96 | 6b52b266551442f57b95e577438c88baa45f436b | /Deious/그래프와 BFS/알고스팟(1261).cpp | 9a0d0f2a1353eba6f5cee9ec86b836b33cded3e3 | [] | no_license | as-is-as/Basic | 7db88e0e825c1d1c137ef5f5a55edd903965d1ae | b4a14d1149b381f41f3632e99782898f349e9959 | refs/heads/master | 2021-07-02T01:25:11.280205 | 2020-12-09T13:32:20 | 2020-12-09T13:32:20 | 195,760,874 | 3 | 3 | null | 2020-12-09T13:32:22 | 2019-07-08T07:40:17 | C++ | UTF-8 | C++ | false | false | 1,106 | cpp | 알고스팟(1261).cpp | #include <iostream>
#include <deque>
using namespace std;
int algoMap[101][101];
int breakCount[101][101];
bool check[101][101];
int dx[] = { 0, 0, 1, -1 };
int dy[] = { 1, -1, 0, 0 };
int n, m;
int Bfs()
{
deque<pair<int, int>> d;
d.push_back(make_pair(1, 1));
check[1][1] = true;
while (!d.empty())
{
int ... |
1d8c2cba82fb39829119f9c04a54e3d4e80acf93 | 6a49a58d0ac7a1bb5acfcbc0eac0fd6985146b2d | /Motor2D_1er/j1Map.cpp | 2bc7ef6b64cfb6f3ecdd647b8a535169a10c16fb | [
"Unlicense"
] | permissive | xDragan/programacio_2 | 9f620dfdd6bf417b0cfe9ccfe7e6beedf9bf48c6 | 4a38c4986e85aba912a53c912c1ca79da7806c74 | refs/heads/master | 2020-01-23T22:01:38.140117 | 2015-08-20T22:47:42 | 2015-08-20T22:47:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,486 | cpp | j1Map.cpp | #include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1FileSystem.h"
#include "j1Textures.h"
#include "j1Map.h"
#include "base64/base64.h"
#include "zlib/include/zlib.h"
#include "trim.h"
#include "SDL/include/SDL.h"
#include <math.h>
#pragma comment( lib, "zlib/libx86/zdll.lib" )... |
3a8dafb3a06121eb4431028f8caa6135b8913e21 | 42136dbc35b311dd7a4665001539e48d44d5aa5e | /Source/Base/ECS/EntityManager.h | 83c0fe795848cf64d80149ef3da712b433a0cd63 | [] | no_license | mink365/RacingEngine | 4b2564cf10488c7e04e6bd3461355e472b047040 | 0ab4f1ac7e0aa8ee50d214e34bee424714347b88 | refs/heads/master | 2020-12-24T16:32:24.022254 | 2016-12-15T06:15:58 | 2016-12-15T06:16:59 | 17,405,087 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 835 | h | EntityManager.h | #ifndef RE_ENTITYMANAGER_H
#define RE_ENTITYMANAGER_H
#include <vector>
#include "Base/Singleton.h"
#include "Base/Shared.h"
#include "ComponentHandle.h"
namespace re {
class BaseComponent;
class Entity;
using EntityPtr = SharedPtr<Entity>;
class EntityManager : public Singleton<EntityManager>
{
public:
EntityM... |
ae8bbd09694686d6ea715811dbd2a0098fab652d | 8333d50050d39fd05164bafdad6d353b9138a344 | /source/Objects/SuperSectors.cpp | 4d8adfc4c03ff51bc9837228e48edf21eceffa18 | [
"BSD-2-Clause"
] | permissive | JanekMak/LevelMod | 1e3c4e579a218bf6b0f78e162ece8403337b247f | f272fc2d5cb467c1f9d85790169fe6bc813e3288 | refs/heads/master | 2023-03-05T17:45:42.968693 | 2021-02-17T18:04:29 | 2021-02-17T18:04:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,741 | cpp | SuperSectors.cpp | #define NO_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include "pch.h"
#include "SuperSectors.h"
#include "Model.h"
bool updatingObjects = false;
EXTERN std::vector<MovingObject> movingObjects;//List of Objects on the move
MovingObject::MovingObject(SuperSector* _sector, Model* mdl)
{
debug_print("FOLLOW_MODEL\n");... |
cf3c48371a0a9eb5df73ad6560743da33407cada | da72d7ffe4d158b226e3b3d9aabe900d0d232394 | /llvm/lib/CAS/CASOutputBackend.cpp | 1e6643dc7c9e4e860634fcc595c1d41fda0c7370 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | ddcc/llvm-project | 19eb04c2de679abaa10321cc0b7eab1ff4465485 | 9376ccc31a29f2b3f3b33d6e907599e8dd3b1503 | refs/heads/next | 2023-03-20T13:20:42.024563 | 2022-08-05T20:02:46 | 2022-08-05T19:14:06 | 225,963,333 | 0 | 0 | Apache-2.0 | 2021-08-12T21:45:43 | 2019-12-04T21:49:26 | C++ | UTF-8 | C++ | false | false | 3,323 | cpp | CASOutputBackend.cpp | //===- CASOutputBackend.cpp -------------------------------------*- C++ -*-===//
//
// 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
//
//===---------------------------... |
ca07c4eb0766cabde274400352ed9f9d97d885e5 | 92e1b4ad344d86983de13d95c5552dd1e46e43fb | /Luchador.cpp | b6fbcc8004bb1d4ff1d8538c3e0ee3cfa36d9ef5 | [
"MIT"
] | permissive | ErickMartinez2/Lab9P3_ErickMartinez | 3ea81fe3dbded8f1be3068b97ec72f6bd4d2e8e3 | 361ff73de87ca76fcb33a1b04cc1b9789f2e0160 | refs/heads/master | 2021-06-28T00:21:05.830001 | 2017-09-16T04:45:15 | 2017-09-16T04:45:15 | 103,683,613 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,009 | cpp | Luchador.cpp | #include "Luchador.h"
Luchador::Luchador() {
}
Luchador::Luchador(string pnombre) {
nombre = pnombre;
batallas_ganadas = 0;
experiencia = 0;
}
string Luchador::getNombre() {
return nombre;
}
void Luchador::setNombre(string pnombre) {
nombre = pnombre;
}
int Luchador::getBatallas() {
return batallas_ganadas;... |
2d14b9640cdd9742db36998bf06e350cfa0963a4 | 1fb357bb753988011e0f20c4ca8ec6227516b84b | /EW/src/LEP2AFBcharm.cpp | 65094225fe8b0c7f9f5fc2138c04981bb52c77aa | [
"DOC"
] | permissive | silvest/HEPfit | 4240dcb05938596558394e97131872269cfa470e | cbda386f893ed9d8d2d3e6b35c0e81ec056b65d2 | refs/heads/master | 2023-08-05T08:22:20.891324 | 2023-05-19T09:12:45 | 2023-05-19T09:12:45 | 5,481,938 | 18 | 11 | null | 2022-05-15T19:53:40 | 2012-08-20T14:03:58 | C++ | UTF-8 | C++ | false | false | 317 | cpp | LEP2AFBcharm.cpp | /*
* Copyright (C) 2012 HEPfit Collaboration
*
*
* For the licensing terms see doc/COPYING.
*/
#include "LEP2AFBcharm.h"
double LEP2AFBcharm::computeThValue()
{
double AFB_c = SM.LEP2AFBcharm(s);
#ifdef LEP2TEST
AFB_c = myTEST.AFBcharmTEST(sqrt_s);
#endif
return AFB_c;
}
|
0f23739b9b80950fdb3b794e4f1bba4b37f52144 | cff92d6e527dd3bda671e896891d6ebd6e7fd6ec | /common/event_log.cc | 96115e7c6cdb1b494b60e32238927c317383f90f | [
"BSD-3-Clause"
] | permissive | eLong-opensource/pyxis | d5e78f419078a9e5ecd62548890059845236a5c5 | 304820eb72bd62d3c211c3423f62dc87b535bb3c | refs/heads/master | 2021-06-05T12:58:34.267022 | 2016-07-21T12:41:42 | 2016-07-21T12:41:42 | 63,775,973 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,239 | cc | event_log.cc | #include <toft/storage/path/path.h>
#include <glog/logging.h>
#include <gflags/gflags.h>
#include <muduo/base/Timestamp.h>
#include <stdio.h>
#include <inttypes.h>
#include <pyxis/proto/rpc.pb.h>
#include <pyxis/proto/node.pb.h>
#include <pyxis/common/watch_event.h>
#include <pyxis/common/event_log.h>
#include <pyxis/c... |
205ce47b6eafdb1eab8984ef20aceec58adc98d6 | 46087ddd70356ed4717dc23ea2bb9cc4e003dd63 | /Codeforces Round #209 (Div. 2) - B. Permutation/Codeforces Round #209 (Div. 2) - B. Permutation/main.cpp | ac33fc934bdad7ed09500991dca0412cac3d2ddf | [] | no_license | smhemel/Codeforces-Online-Judge | dae1b6a128fe90923d3cb308b3288b6d5df4df4e | e143341ca0a0149ee088bfbce50dac923b6e3d47 | refs/heads/master | 2020-04-04T13:16:02.975187 | 2019-11-09T09:20:14 | 2019-11-09T09:20:14 | 155,955,102 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | cpp | main.cpp | //
// main.cpp
// Codeforces Round #209 (Div. 2) - B. Permutation
//
// Created by S M HEMEL on 3/31/17.
// Copyright © 2017 Eastern University. All rights reserved.
//
#include <iostream>
using namespace std;
int main()
{
int n,m;
cin >> n >> m;
m *= 2;
n *= 2;
cout << m;
for(int i=1; i<n;... |
3bf49454f952809591a41a61bc6998c24f9f8af1 | 73bdf06846b5c0e71d446581264b7b1e67a3bdd6 | /13214_The_Robots_Grid.cpp | 5962d1b9a2b042006342cdf2d780e4646429efa6 | [] | no_license | RasedulRussell/uva_problem_solve | 0c11d7341316f4aca78e3c14a102aba8e65bd5e1 | c3a2b8da544b9c05b2d459e81ee38c96f89eaffe | refs/heads/master | 2021-06-13T09:10:42.936870 | 2021-03-24T15:49:15 | 2021-03-24T15:49:15 | 160,766,749 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | cpp | 13214_The_Robots_Grid.cpp | #include<bits/stdc++.h>
using namespace std;
#define int long long
#define pii pair<int,int>
#define x first
#define y second
#define __FastIO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define MOD 1000000007
#define INF 100000000
#define nll cout << "\n"
#define nl "... |
58cd303b7f97496be9eb2ed1c7fd4715779a166c | 4265f9ead043ead518929a80797664ced14af5b2 | /src/solo/bullet/SoloBulletStaticMeshCollider.cpp | 07840c65fde6079b5b3fe293c5a4e9b6d6e0d10c | [
"Zlib"
] | permissive | DingYong4223/solo | d9bdbbfe63425958e7974eb612cb1658019501d0 | 9da1ad9c53083fe1f889ec724e4d6583189baf1e | refs/heads/master | 2021-01-09T15:48:36.467994 | 2020-01-19T10:11:35 | 2020-01-19T10:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,092 | cpp | SoloBulletStaticMeshCollider.cpp | /*
* Copyright (c) Aleksey Fedotov
* MIT license
*/
#include "SoloBulletStaticMeshCollider.h"
#include "SoloDevice.h"
#include "SoloMeshData.h"
using namespace solo;
BulletStaticMeshCollider::BulletStaticMeshCollider(sptr<MeshData> data):
data_(data)
{
SL_DEBUG_PANIC(data_->indexData().empty(), "Col... |
5fb3a9c592e5bad17ab3591f1b7433c93471b61b | 654e42a8405d0ee09910cf64dca8427d5ce7c680 | /awt/JSeparator.h | fe15dacb8b5db3ec67d6d8477bf8bd9bcff585c2 | [] | no_license | neattools/neattools | bbd94d46c4e5aeb1ab524bf63a9b1ac623e7fd58 | ac63c05ba1d575797303e48558fa2383a5e8ccf7 | refs/heads/master | 2020-05-29T17:34:04.002088 | 2018-03-01T15:59:04 | 2018-03-01T15:59:04 | 17,801,058 | 0 | 0 | null | 2018-03-01T15:59:05 | 2014-03-16T14:29:07 | C++ | UTF-8 | C++ | false | false | 452 | h | JSeparator.h | #if !defined( _JSeparator_h )
#define _JSeparator_h
#include "JCanvas.h"
class
#include "JAWT.hpp"
JSeparator : public JCanvas {
public:
enum { HORIZONTAL, VERTICAL};
virtual const char* className() const;
virtual JObject* clone() const;
static JSeparator* create(JComponent* p, int _type);
JSepa... |
6c637064aa58e9a3d4d06af9532ec7031b08d892 | 68d2d3a9789a8bf88d370c25984945c3c5f12872 | /Dynamic Programming/EditDistance.cpp | 2d6d2c5e6594581a2b53f6b8a5d3b64f21f1c3ec | [] | no_license | raghavkhator/CSES-problemset-solution | 45e9d893304a4e2c8bf2cafa0ab7431d095fc9db | c16f44219a971d9a1e9fff27730cf73815b58b40 | refs/heads/master | 2023-01-02T13:19:10.539907 | 2020-10-28T13:48:52 | 2020-10-28T13:48:52 | 308,008,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | cpp | EditDistance.cpp | #include<bits/stdc++.h>
#define ll long long
using namespace std;
int main(){
string s1,s2;
s1 = "LOVE";
s2 = "MOVIE";
cin>>s1>>s2;
vector<vector<int> > dp(s1.length()+1,vector<int>(s2.length()+1,0));
for(int i =0;i<=s1.length();i++) dp[i][0] = i;
for(int i =0;i<=s2.length();i++) dp[0][i] = i;
for(int i=1;i... |
4dd04b8248cddc845569e8d1a1247e7ea7055780 | fb5b25b4fbe66c532672c14dacc520b96ff90a04 | /export/release/windows/obj/include/openfl/utils/_AGALMiniAssembler/OpCode.h | 2162b1c3a6c95166cb78357598ac52b4dcab0d60 | [
"Apache-2.0"
] | permissive | Tyrcnex/tai-mod | c3849f817fe871004ed171245d63c5e447c4a9c3 | b83152693bb3139ee2ae73002623934f07d35baf | refs/heads/main | 2023-08-15T07:15:43.884068 | 2021-09-29T23:39:23 | 2021-09-29T23:39:23 | 383,313,424 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,920 | h | OpCode.h | #ifndef INCLUDED_openfl_utils__AGALMiniAssembler_OpCode
#define INCLUDED_openfl_utils__AGALMiniAssembler_OpCode
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_STACK_FRAME(_hx_pos_b6bb58d9c0266c23_804_new)
HX_DECLARE_CLASS3(openfl,utils,_AGALMiniAssembler,OpCode)
namespace openfl{
namespace utils{
namespace _AG... |
a612f30db7fa0384f3ff78f54cdf43a363315083 | 3d0d1d826e6877d77f99d7eca1d2426528efea54 | /src/escalonamento.h | d14b46c4549e6c068b8f66debc9e75de284e769b | [] | no_license | Tiago370/escalonamento | 4680b4b1b6906e0e586312a17af0f688264a44f3 | cd125a22c0dde11ffd7c9034166a5fd32b493f7d | refs/heads/main | 2023-06-04T18:29:21.473757 | 2021-06-23T19:03:13 | 2021-06-23T19:03:13 | 353,482,548 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,026 | h | escalonamento.h | #include<vector>
#include<string>
using namespace std;
class Escalonamento{
public:
void readInstance(char* arquiv);
unsigned int getNumberTasks();
unsigned int getNumberMachines();
unsigned int getMakeSpan();
void setMakeSpan(unsigned int);
vector<unsigned int>* getTasks();
void printMach... |
44a34948567583510704bf3d77c21ca79445120a | f126fab6f351c3a31ab90006a6f24cb6dab7e3ee | /TTT_Mult/GM_MP_Game.cpp | aec1fe001606efd27977afffb44a11165c098abb | [] | no_license | luedos/TTT_Mult | eba958b7052af99f793dc59f6819c3b09a29fc41 | a4bee33d0c95cc2c9b3bfba7ee33c5f1921dd722 | refs/heads/master | 2021-05-08T02:21:57.378841 | 2018-01-26T15:27:48 | 2018-01-26T15:27:48 | 106,447,330 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 10,506 | cpp | GM_MP_Game.cpp | #include "stdafx.h"
#include "GameInclude/GM_MP_Game.h"
#include "Game.h"
GM_MP_Game::GM_MP_Game(Game* InGame, Graphics* InGraph)
{
MyGame = InGame;
MyGraph = InGraph;
IsMyTurn = true;
MyIndex = 1;
IsServer = true;
ChangeGrid(5, 5, 3);
}
GM_MP_Game::~GM_MP_Game()
{
}
void GM_MP_Game::GM_EventTick(float Del... |
e66e763fd924c4e5120667edd1e0de91e1985ef5 | 9de0cec678bc4a3bec2b4adabef9f39ff5b4afac | /PWGJE/EMCALJetTasks/UserTasks/AliTrackContainerV0.cxx | f46e93d9399325317e747d00ca5d7ab4fe4de36f | [] | permissive | alisw/AliPhysics | 91bf1bd01ab2af656a25ff10b25e618a63667d3e | 5df28b2b415e78e81273b0d9bf5c1b99feda3348 | refs/heads/master | 2023-08-31T20:41:44.927176 | 2023-08-31T14:51:12 | 2023-08-31T14:51:12 | 61,661,378 | 129 | 1,150 | BSD-3-Clause | 2023-09-14T18:48:45 | 2016-06-21T19:31:29 | C++ | UTF-8 | C++ | false | false | 4,843 | cxx | AliTrackContainerV0.cxx | /*************************************************************************
* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors are m... |
d45c50350e80061cea075c554045f06cdeaba533 | 6111401e3997bfdd31f991e0e551d4c0609e07e4 | /video_player/main.cpp | ee3c06f91bee28967b7999473a8a49e1790be06f | [] | no_license | SimonFu/learning_opencv | 91b074cc744971269bf8b018a66b738a77ad29b3 | ae0b2e694794721bb0f3ae951cf2f40eb6b1fb7e | refs/heads/master | 2020-04-08T19:46:46.407667 | 2018-12-05T07:15:38 | 2018-12-05T07:15:38 | 159,670,783 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 826 | cpp | main.cpp | #include <QCoreApplication>
#include <QTimer>
#include <QDebug>
#include <opencv2/opencv.hpp>
using namespace cv;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
if(argc < 2)
{
qInfo() << "Usage: " << argv[0] << " [video file path]";
return -1;
}
VideoCapture ... |
6608281b47ab1699e10f5b6f68af8b8119b6bb2c | a979c083b34cb85ccdd9e36df74280645dd28138 | /kmymoney/widgets/widgethintframe.h | 5b1f9baf7e636850274190d85c241cba1b924ef8 | [] | no_license | rhabacker/kmymoney | 9b386d2165c786279891273dcb57657205100479 | 0d5c7e80f6e7718756a288d45287e7f17fd9a1b4 | refs/heads/master | 2023-04-13T18:11:00.217195 | 2022-08-21T09:20:48 | 2022-08-24T04:56:52 | 69,508,455 | 0 | 0 | null | 2016-09-28T22:22:32 | 2016-09-28T22:22:31 | null | UTF-8 | C++ | false | false | 2,937 | h | widgethintframe.h | /*
SPDX-FileCopyrightText: 2015-2018 Thomas Baumgart <tbaumgart@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef WIDGETHINTFRAME_H
#define WIDGETHINTFRAME_H
#include "kmm_base_widgets_export.h"
// ----------------------------------------------------------------------------
// QT Includes
#inclu... |
2c5238b97c8ad32dfffcd69a32d9a0322ac224b4 | de0ffd2462cd1ccd589fefaaf0769219be03577f | /Screen.cpp | 06fd9faf2baa581ff7c95a1c8da1bbdedd18ee39 | [] | no_license | EdgardoCuellar/DoublePendule | 760f7bee3e2c6754c03fb3f412d16a17f0e6d33e | de2e4dab639d4fde5a6a8a33496f072bca2182ad | refs/heads/master | 2023-08-27T02:33:04.581537 | 2021-10-05T12:54:44 | 2021-10-05T12:54:44 | 413,817,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,319 | cpp | Screen.cpp | #include "Screen.hpp"
using namespace std;
Screen::Screen() noexcept = default;
Screen::~Screen() noexcept = default;
void Screen::init(const char *title, int xpos, int ypos, int wigth, int height, bool fullscreen) {
int flags = 0;
if (fullscreen){
flags = SDL_WINDOW_FULLSCREEN;
}
if (SDL_I... |
38e7837c70fc92bef3745c86304b2d114d190b89 | 40b0530ef3eb345c49fc0d2face8bed9088a58c5 | /v1.3/apps/hall/lib/hall-stm32/hall.cpp | 46ecf75d83ac219ff28012cb9bcb04a608c8bc5a | [
"LicenseRef-scancode-public-domain",
"Unlicense"
] | permissive | Enjection/monty | 1262974ab1c74b82fc0ce4cef7906b36eea77bdb | e7f2ecaf1b7f2ed0ce24f5aaa4c14e801d18dfde | refs/heads/main | 2023-07-18T16:17:08.465840 | 2021-08-25T09:30:01 | 2021-08-25T09:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,530 | cpp | hall.cpp | #include "hall.h"
#include <cstring>
extern uint32_t SystemCoreClock; // CMSIS
namespace hall {
uint8_t irqMap [100]; // TODO size according to real vector table
Device* devMap [20]; // must be large enough to hold all device objects
uint8_t devNext;
volatile uint32_t Device::pending;
constexpr ... |
31dc516094030978faaf60ecfe1b4a32f5552e71 | 5e69255c5f7400efee204851b1b6fccf606d7a32 | /kvstore_client.h | 60130524734751189322f624a0ff91fdc8734fb9 | [
"MIT"
] | permissive | RaymondJune/csci499_RaymondJune | af8e8bf4e9afaddc0e5ecd8f7ae8f89e2c051355 | 01606fa3707492b28adf17d5b9c903e3687e1e97 | refs/heads/master | 2022-06-23T13:07:12.940035 | 2020-05-06T23:50:05 | 2020-05-06T23:50:05 | 236,248,003 | 1 | 1 | null | 2020-05-06T23:50:06 | 2020-01-26T00:15:32 | C++ | UTF-8 | C++ | false | false | 1,164 | h | kvstore_client.h | //
// Created by Ruimin Zeng on 2/15/20.
//
#ifndef CS499_RAYMONDJUNE_KVSTORE_CLIENT_H
#define CS499_RAYMONDJUNE_KVSTORE_CLIENT_H
#include <grpcpp/grpcpp.h>
#include "build/kvstore.grpc.pb.h"
using grpc::Channel;
using grpc::ClientContext;
using grpc::ClientReaderWriter;
using grpc::Status;
using kvstore::GetReply... |
166a18af6d4b4117caf360eade58af6eb43b512c | 76726498127e40a9e1d9e4a2aad38613494bb7d2 | /src/student_t.cpp | ed24b6a75401311e94ac2e8cd1dd524327cc1412 | [] | no_license | bbbales2/math-benchmarks | ea413edbb5d481016bffcbb87cf307e043b5584b | 207e6b5d29b055adcf650d297740092e96c690ec | refs/heads/master | 2023-02-05T08:37:32.964850 | 2020-12-21T20:19:50 | 2020-12-21T20:19:50 | 294,805,502 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,807 | cpp | student_t.cpp | #include <benchmark/benchmark.h>
#include <stan/math.hpp>
#include <utility>
#include "toss_me.hpp"
#include "callback_bench_impl.hpp"
template <typename T1, typename T2, typename T3, typename T4>
struct init {
auto operator()(benchmark::State& state) {
using stan::math::exp;
Eigen::VectorXd y_val = Eigen::Vect... |
122e2bb05398a72183c20b014017be007957d369 | 2305606b976c1a17fd96b354d3e6ef9117cec4b8 | /src/AssimpImporter.cpp | d01154fc6e0a5f46bb14dc88e152b6bec02459ee | [] | no_license | riveranb/ogre-assimp | ce700987af70a7b7cbb8169cc1d6f0f9047020f6 | 9c0cbfefeab09de7f51e8be3495a33b16a6eb9c9 | refs/heads/Ogre_Assimp_Adaptor | 2021-08-15T02:42:25.000720 | 2017-11-17T06:58:05 | 2017-11-17T06:58:05 | 106,502,156 | 1 | 0 | null | 2017-10-11T03:41:31 | 2017-10-11T03:41:31 | null | UTF-8 | C++ | false | false | 1,846 | cpp | AssimpImporter.cpp | #include <iostream>
#include "AssimpImporter.h"
#include "AssimpLoader.h"
#include "OgreMesh.h"
#include "OgreMeshManager.h"
#include "OgreMesh2.h"
#include "OgreMeshManager2.h"
namespace Demo
{
namespace assimp
{
Importer::Importer()
{
}
bool Importer::createMeshV2(Ogre::MeshPtr & pdestmesh, const Ogre::Strin... |
8f63d0b45ee5722255080f333e191e32a7c6c3a5 | 0e17d3f47b50b6995093b71cd039acb8368d97e8 | /SceneObject/ButtonDepr.h | 17ee82878cb5a8ace0525c679063c8c87931cd54 | [] | no_license | Krupnikas/christmasDefence | e22441471bd6bf1ef5596e65485558d0af2c8d70 | 04fd4e4401d92b37248de96a700d61239a1b620a | refs/heads/master | 2021-01-19T00:19:57.196304 | 2019-12-11T21:33:36 | 2019-12-11T21:33:36 | 72,995,889 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | h | ButtonDepr.h | #pragma once
#include <SceneObject/SceneObject.h>
#include <Game/Game.h>
class CButtonDepr : public CSceneObject
{
Q_OBJECT
public:
CButtonDepr();
CButtonDepr(EButtonType Type, QRect ButtonRect, std::shared_ptr<QPixmap> Pixmap,
CGame *Game,
qreal ZOrder = 10, qreal Angle = 0);
... |
b7891b1ed091cffbb43db05602a128c4619dd1a9 | 9f075f47ecb22f95985add4224ae84357ce8e03c | /sandbox/src/global.h | d57ee45121e2dee0d898168b0157e78f9ac58d58 | [
"Zlib"
] | permissive | ApiO/pgtech | 5b2a2688a43f3fe839cf5ce732766a51108b9563 | e7c03ea1a269a96fca27b60a417cf4a5759d40ba | refs/heads/master | 2020-05-24T18:21:53.067826 | 2019-05-18T22:37:25 | 2019-05-18T22:37:25 | 187,404,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 695 | h | global.h | #pragma once
#include <runtime/types.h>
#include <runtime/memory_types.h>
#include "camera.h"
namespace app
{
struct Screen
{
pge::i32 width;
pge::i32 height;
pge::f32 w2;
pge::f32 h2;
};
extern Screen global_screen;
extern pge::u64 global_simple_package;
extern pge::u... |
df571a6b0776b46c369ea61f0e46c8ed9f5457d9 | b71556aee4654b48e91ba8124a3a8ded26de273e | /contest/USSTforces #22 (Div. 3)/C.cpp | ea25762c662949024e7648ad7a77472435b2d82f | [] | no_license | young-zy/algorithm | 0255a327390c6b149870b34fbd34816dc002e82e | 536eddd9a6bc03e81c566afa05c53f555eb14a86 | refs/heads/master | 2021-07-23T07:23:29.929221 | 2020-04-23T16:33:28 | 2020-04-23T16:33:28 | 149,439,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | cpp | C.cpp | #include<bits/stdc++.h>
#define endl "\n"
#define INF 0x3f3f3f3f
using namespace std;
int ch[5005][5005];
int sum[5005][5005] = {0};
long long a(int x1, int y1,int x2,int y2){
return (long long)sum[x2][y2] - sum[x1][y2] - sum[x2][y1] + sum[x1][y1];
}
int main(){
// ios_base::sync_with_stdio(false);
// c... |
f46bb41ac0c6721a8ed5e238ed4eb48340d351f3 | 211f86d4ae3465352f314a9d07cf5a62cbcb670e | /src/Molinete.cpp | c857ff522d8e3c36c6982f348e159288ec521ced | [
"Apache-2.0"
] | permissive | EddyVegaGarcia/tda-accesos-cpp | ef9cac10356ea660890db019dfe7b09dab1d4580 | 8644c43b6b5a2e76996b29f00ac4d6cafd96a3e4 | refs/heads/master | 2021-06-25T04:12:39.539894 | 2017-09-07T05:18:41 | 2017-09-07T05:18:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,113 | cpp | Molinete.cpp | #include "Molinete.h"
Molinete::Molinete() {
personasQueEntraron = 0;
personasQueSalieron = 0;
maximaCantidadDePersonasDentro = 0;
}
Molinete::Molinete(int personasQueYaEstanDentro) {
if (personasQueYaEstanDentro > 0) {
personasQueEntraron = personasQueYaEstanDentro;
} else {
personasQ... |
1c32586beb48b3cc0b02d0aa2d9a040e9a4e6106 | 56f252bb1cec2b15e668ed785e2e6ff4ff05dc5f | /include/octoon/input/iinput.h | 9d8d88d4100d3a3da2376483c115dabdcb76a4a8 | [] | no_license | EMinsight/octoon | 31096ae3243143ddd7ee07aa587c985c37ea93a0 | 6297971996dab45fb35757d12dafe5733768dec7 | refs/heads/master | 2022-01-02T10:40:47.804455 | 2018-02-21T05:43:24 | 2018-02-21T05:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,125 | h | iinput.h | #ifndef OCTOON_INPUT_BASE_H_
#define OCTOON_INPUT_BASE_H_
#include <octoon/input/iinput_device.h>
#include <octoon/input/iinput_keyboard.h>
#include <octoon/input/iinput_mouse.h>
namespace octoon
{
namespace input
{
class OCTOON_EXPORT IInput : public runtime::RttiInterface
{
OctoonDeclareSubInterface(IInput... |
3fb824ea836f68ff39ccf4e1cf81aba449859cd3 | ea7c02f98b75b39b85019677a38d50a70bfe2de3 | /OpenCVLearn/Lesson_01/Lesson_01/Chapter5/Learn_5_5.cpp | ac8085d6135c378c6438ec00596f9d92b21bfd09 | [] | no_license | caixindong/New-Guy-In-CV | d0967261695ff434122e0fd60ac35084506bac79 | ac125421764f19804d3dc1d679dba88a3199e87a | refs/heads/master | 2021-05-09T08:10:01.554589 | 2018-05-03T11:56:48 | 2018-05-03T11:56:48 | 119,381,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,357 | cpp | Learn_5_5.cpp | //
// Learn_5_5.cpp
// Lesson_01
//
// Created by 蔡欣东 on 2018/1/4.
// Copyright © 2018年 蔡欣东. All rights reserved.
//
#include "Learn_5_5.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
using namespace cv;
using namespace std;
static void on_ContrastAndBright(int,vo... |
610fd1cbf641f81ed3f5d52e1dfacf82e98dcaaa | 11de28ee69acb540070358405e0b34670addb458 | /Ch2/rankSort.cpp | d14026d7fd0435981f574eb8264a367c2e2c51b0 | [] | no_license | yz53665/algorithms-C-plus | d94f87910a8f55f4c4b05f70c382b5816447b06b | 72670df224474764e92e2aaa6706fb4266ff87a6 | refs/heads/master | 2023-04-04T21:51:10.967868 | 2021-04-14T10:36:42 | 2021-04-14T10:36:42 | 357,866,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,066 | cpp | rankSort.cpp | /*
* filename: rankSort.cpp
* description: 名次排序相关算法
* author: QRQ
*/
#include "../common/common.h"
#include <algorithm>
#include <iostream>
template <class T>
void rank(T arrayToRank[], const int& arrayLength, int rankToSave[]) {
// 计算数组的名次, 名次=更小的数字个数+左侧相同的数字个数
for (int i = 0; i < arrayLength; ++i) {
rank... |
efd4bb245fe478a567b0424aa4765bc42dda9548 | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_1/processor17/15/p | 3396a217fea5118cfd6b8a43c0882a5f16b1d07b | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,151 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
e108d72e4b233e9fab3d9e952685f5df9d53dc25 | 0574237636f4d9ee0099f77c79adf182ce69419d | /UVA/Huge Easy Contest 1/M - Crazy King.cpp | 0cff24fd914712065e3b0bd94d099959742e16f6 | [] | no_license | andreicoman11/code | 77359bccd7cc451d6db5edbfea9b2bf81f44250f | c0e318e7c7e192f1d90e82e2468344b6a27a310f | refs/heads/master | 2020-05-27T05:08:22.332100 | 2014-12-19T01:39:41 | 2014-12-19T01:39:41 | 28,082,193 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,333 | cpp | M - Crazy King.cpp | #include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <cstring>
#include <cstdlib>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <queue>
#include <list>
#include <set>
#include <map>
using namespace std;
typedef vector<int> VI;
typedef vector<VI> VVI... |
225545b9ec95be5667bb64167ed363854309e29d | 32bfbd6a6e424de779a9ea715a43c702fdb749f4 | /Final Project Smoke/SmokeSim/SmokeSim/SourceCode/blurfilter.cpp | 91ef202700cacdb0823fa8383ff6cad405ed927a | [
"Zlib"
] | permissive | shijingliu/CIS-563-Target-Driven-Smoke-Simulation | c44dd907c66b87d70f04b2e4f646edd4dc542460 | 84096986d0f1e0463e8b508f7d3f3c155e6cbe51 | refs/heads/master | 2020-05-31T10:21:43.700834 | 2014-06-14T22:41:50 | 2014-06-14T22:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,724 | cpp | blurfilter.cpp | #include "blurfilter.h"
#include "mac_grid.h"
#include "constants.h"
#ifndef M_PI
#define M_PI 3.1415926535897932384626433832795
#endif
BlurFilter::BlurFilter() :
mCenter(0)
{
}
void BlurFilter::SetSigma(double sigma)
{
assert(sigma > 0.0);
int kernelSize = (int) (40 * sigma) * 2 + 1;
mCenter = kernelSiz... |
e8230d469e68e0d6e7dd25b61c577b4e3ee762bf | 1ed1ed934e4175bb20024311a007d60ae784b046 | /SN/SN.cpp | a5470e443f972c54a2b5f7bc6e041f792f2b9ff1 | [] | no_license | kkkcoder/Code_in_thptchuyen.ntucoder.net | f568cddc01b641c9a6a3c033a4b48ca59bb6435e | c4c0e19ea56a6560014cbb6e4d7489fb16e8aad7 | refs/heads/master | 2023-07-16T16:15:39.421817 | 2021-08-29T15:56:35 | 2021-08-29T15:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | cpp | SN.cpp | #include <bits/stdc++.h>
#define ll long long
#define fo(i, a, b) for (long long i = a; i <= b; i++)
#define nmax 1000005
#define fi first
#define se second
#define ii pair<int, int>
const ll mod = 1e9 + 7;
using namespace std;
ll x, dem = 0, n, a[nmax], z = 0, b[nmax];
int main()
{
ios::sync_with_stdio(0);
cin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.