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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
86a57747062ca35d62f8fd620761c60aff5a346f | 485ff07efdbb3e56b9633e3134b1c81271c2d8a3 | /cpp/SampleAutomation/SampleScriptObject.h | 516d8bae3ed44fc5fdc49a7779bb4bcebb3dbd38 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | mcneel/rhino-developer-samples | 8f8a332d4d6a9a5fa064be6c1532e665d37c8f13 | 4fb376adcf94f9d583878d1c1208038f86bde312 | refs/heads/7 | 2023-08-18T22:04:34.036498 | 2023-06-08T16:28:43 | 2023-06-08T16:28:43 | 72,225,588 | 526 | 362 | NOASSERTION | 2023-09-06T20:29:31 | 2016-10-28T16:52:21 | C++ | UTF-8 | C++ | false | false | 481 | h | SampleScriptObject.h | #pragma once
class CSampleScriptObject : public CCmdTarget
{
DECLARE_DYNAMIC(CSampleScriptObject)
public:
CSampleScriptObject();
virtual ~CSampleScriptObject();
virtual void OnFinalRelease();
protected:
DECLARE_MESSAGE_MAP()
DECLARE_DISPATCH_MAP()
DECLARE_INTERFACE_MAP()
BSTR Hello();
DOUBLE Add(D... |
59a1bd301ae75eda3a703a1a1a704b2247aca452 | 8d015f5c24ab54e45c709536842a53173f76405f | /apps/Demo.UI/src/DemoApplication.h | f5a312e6442398b2c0c7711fd1dd84b62006b1ec | [
"MIT"
] | permissive | Geniok/Ghurund | e8a6f1a11a3bec19f4ffa63f77cca47e95a9ac8d | 2b58565f3eeccba54c185f72a191ee179ad684e7 | refs/heads/master | 2023-05-04T14:39:08.001761 | 2021-05-23T22:06:06 | 2021-05-26T22:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 507 | h | DemoApplication.h | #include "core/math/MathUtils.h"
#include "DemoWindow.h"
namespace Demo {
using namespace Ghurund;
using namespace Ghurund::UI;
class DemoApplication:public Application {
public:
DemoApplication() {
Features.add<UIFeature>(ghnew UIFeature(*this));
}
void onInit() ... |
361838402569f7666c729dc2418c6937a9ac02bf | e8122796b3870a01dae0424716ee7a2b3c48ff2f | /Include/Block.hpp | 5e2f6a725458cf32d42404748332fb4a976bb130 | [] | no_license | hadi-ilies/IndieStudio | ed72ff01c3447b4045dd931bb20ba332ff61e95f | b7eb2a0d65cdbc1f56bf90807d25773bc4faf821 | refs/heads/master | 2020-06-25T09:58:04.685150 | 2019-06-20T10:28:51 | 2019-06-20T10:28:51 | 199,277,437 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | hpp | Block.hpp | /**
* @author Corentin Gautier (https://github.com/Adorr29)
* @author Hadi Bereksi (https://github.com/hadi-ilies)
* @author Camille Police (https://github.com/CamillePolice)
* @copyright © 2019, OOP_indie_studio_2018, Zappy group
* @file Block
*/
#ifndef BLOCK_HPP
#define BLOCK_HPP
#include <string>
#include <... |
e5a5522a449ffc3084df1fee597ece7434ac720f | 214a1a8ce7d6386b2b428887bb40041e89ad9b59 | /include/Screen.h | ca41f6f92b37ae308c464e455af18810fe546316 | [] | no_license | Stephen321/DefendersOfTheAI | 450beb6d6af89ccff9b1741331187aef2d7aef6a | 70fc5388d1634717ade90982b1f4f03d2badabf9 | refs/heads/master | 2021-03-27T20:41:13.889856 | 2019-02-19T21:00:14 | 2019-02-19T21:00:14 | 72,381,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 119 | h | Screen.h | #pragma once
#include "SFML\Graphics.hpp"
class Screen
{
public:
virtual int run(sf::RenderWindow &window) = 0;
}; |
d9cc1a0987ae9a64cfc6f0e56be5e1fa342e7dfb | 4092c15954099f15a9fed54b6ee2837bdf06bfec | /include/type.hpp | 8d0d624a9a9614f495b377f47ca4e4ac13838092 | [] | no_license | Shagula/HCC | 0a04ef281ebf7f485f4a17d3ca8d85238ab359c5 | 1e558379a9c0bc8b843eb196038453bd6f4b6b27 | refs/heads/master | 2020-11-28T17:57:22.161493 | 2020-02-24T13:06:49 | 2020-02-24T13:06:49 | 229,886,924 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 868 | hpp | type.hpp | #pragma once
#include <vector>
#include <string>
#include <map>
#include <set>
namespace hcc {
namespace type {
class Type;
extern std::map<std::string, Type*> basic_type_map;
extern Type* void_type;
enum TypeTag {
BASIC=1,PTR,CONST_PTR,CONST,NONE,
};
class Type {
public:
Type(const std::string& n,... |
76b121568b74f2f21317a93957ee6d2adb47aa61 | 70fa0ad1dbc8326130f68309bd61b4e30f2d8a4d | /mosp/mosp-client/entity.cc | 8877542d66174805322d450412663b2414d37cc6 | [] | no_license | alongubkin/mosp | cb21f9faa4b66f2cc6e1f6625c2ab0495b138ef1 | bba6ab1a4cb78e75bcd2aa65d748601a355b0a1c | refs/heads/master | 2020-04-07T05:54:44.149987 | 2015-04-10T11:05:50 | 2015-04-10T11:05:50 | 24,295,645 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | cc | entity.cc | #include "stdafx.h"
#include "entity.h"
#include "game.h"
Entity::Entity(Game* game, Ogre::String meshName)
{
this->game = game;
node = game->GetSceneManager()->getRootSceneNode()->createChildSceneNode(Ogre::Vector3::UNIT_Y * 5.0f);
entity = game->GetSceneManager()->createEntity(meshName);
node->attachObject(enti... |
26e22595beccd8f45ab6063b8f50a0c187e5bf66 | df56c3d9f44132d636c0cef1b70e40034ff09022 | /linklayercontrol/networkinterfacemgr/te_connectioncontrol/configdaemon/include/ConfigSess.h | 9a57d3cc244f75d844c1dd708bb9347697bdddb9 | [] | no_license | SymbianSource/oss.FCL.sf.os.networkingsrv | e6317d7ee0ebae163572127269c6cf40b98e3e1c | b283ce17f27f4a95f37cdb38c6ce79d38ae6ebf9 | refs/heads/master | 2021-01-12T11:29:50.765762 | 2010-10-14T06:50:50 | 2010-10-14T06:50:50 | 72,938,071 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,234 | h | ConfigSess.h | /**
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl... |
8ad70a26156855ef8fa1fb95b3f887b4b479c311 | d14244f273715b6aa276a121ac82eb4acfa8e613 | /include/Gnulight.h | 87dbc338ccda1ee92b725bf3751d8ae39597cd58 | [] | no_license | tylercorleone/old_gnulight_dev_bkp | 19e594ae05aa736676de94f48429333978482cba | eea332be984682b91cc6d953d889f1d700e00cdb | refs/heads/master | 2020-03-28T08:11:43.586228 | 2018-10-26T09:59:34 | 2018-10-26T09:59:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,193 | h | Gnulight.h | #ifndef GNULIGHT_H
#define GNULIGHT_H
#include "defines.h"
#include "Button.h"
#include "LithiumBattery.h"
#include "Task.h"
#include "AdvancedLightDriver.h"
#include "BatteryMonitor.h"
#include "PowerOffMode.h"
#include "ConstantLightMode.h"
#include "StrobeMode.h"
#include "ParameterCheckMode.h"
#include "UserInter... |
8c6a8e2ac68551bb0edfd0b978099862739e8517 | 1542a50f6ff9a8606f4229b62c21dd277aa74207 | /SmartVII_Faster/LidarObject.cpp | 9bb402288b33e052b1b433cbb9dafadf5e4e7acd | [] | no_license | heryms/SmartV_Lu | f5e09233915d3217a8b4a449f0d77797543eca45 | d41de5ee26e3b6f0ceffbeeb4ccbe09bac3a5b6d | refs/heads/master | 2021-01-22T21:16:56.353552 | 2017-03-18T15:16:03 | 2017-03-18T15:16:03 | 85,407,986 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,224 | cpp | LidarObject.cpp | #include "StdAfx.h"
#include "LidarObject.h"
CLidarObject::CLidarObject(void)
{
m_pOkBuf=NULL;
m_pPointBuffer=NULL;
}
CLidarObject::~CLidarObject(void)
{
}
float CLidarObject::cal_std(int start,int num,const float *val)//计算val的标准差
{
float val_average = 0.0;
for(int i = start;i < start + num; i++)
val_average +... |
69ee77394e0766bcf4cd53e61f94a7c711343a74 | d775a1417237291b6d04042455c863cc25da9092 | /Project/src/Engine/Core/Timing/Timing.cpp | e73f3a12f6d33c92b3b3bd20e95e9db5447fffc8 | [
"MIT"
] | permissive | olegat/dungen | e4bdaa600b4d7cd3770d6c44ea66e12ab75a0ea8 | 3768908aa172715278dc9307b99361746fb38f2e | refs/heads/master | 2022-09-11T04:31:49.530705 | 2020-05-27T09:21:40 | 2020-05-27T09:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 564 | cpp | Timing.cpp | //
// Timing.cpp
// Dissert
//
// Created by Olivier Legat on 08/04/12.
// Copyright (c) 2012 ss42. All rights reserved.
//
#include <platform.h>
#include <glfw/glfw.h>
#include "Timing.h"
float Timing::GameCurrentTime = 0.0f;
float Timing::GameTimeElapsed = 0.0f;
void Timing::Init() {
Timing::GameCurrentTi... |
168df2456a0c6ad3e8a92cab2bc5f3be2a1bf66d | 0e0ab6f0f1af2543ce117d927fd1c920d8bd4125 | /Source/bindings/tests/results/core/TestDictionary.h | 5e7184d33d62a11e6261954de27799398ed7e268 | [
"BSD-3-Clause"
] | permissive | nwjs/blink | f59203f7dea96e421682e156eebfb4da8927d18b | 27b680078f32e59d6aabcbd63747e164997d3dd2 | refs/heads/nw12 | 2023-08-31T13:04:22.913202 | 2015-06-25T05:21:30 | 2015-06-25T06:09:46 | 10,447,469 | 91 | 57 | NOASSERTION | 2019-11-10T13:15:00 | 2013-06-03T05:07:00 | HTML | UTF-8 | C++ | false | false | 10,005 | h | TestDictionary.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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#ifndef TestDictionary_h
#define TestDictionary_h
#include "bindings/core/v... |
1104f79604f19defaec4822ea9801e47b2289f6e | 579985d969eee88c86d4e55be088e96b2b7fc90c | /projectSrc/include/gb/core/GpuControl.hpp | 6410870aa149a01c65bfc4e5aaf6e3fe0724bad9 | [
"MIT"
] | permissive | edelangh/GBmu | b7e37dfa8250b69445b1246dd2561f7a550e1477 | 7aae7d2ce18d1d0e3677ceb4c69d544848d56c8f | refs/heads/master | 2021-01-13T08:22:47.206821 | 2016-12-20T15:49:19 | 2016-12-20T15:49:19 | 71,890,187 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 336 | hpp | GpuControl.hpp |
#pragma once
typedef struct s_gpuControl
{
union
{
uint8_t LCD;
struct
{
uint8_t background:1; // 0x01
uint8_t sprite:1;
uint8_t sprite_size:1;
uint8_t tile_map:1; // 0x08
uint8_t tile_set:1; // 0x10
uint8_t window:1;
uint8_t wtile_map:1;
uint8_t display:1; // 0x80
};
};
} ... |
90649fa71654ecf07314856065afc7a4585f8347 | e87fdccb0e4ff05d414981920328256fe8e27911 | /sequence_transformation_C_div3.cpp | 8998b69e0b26a4c414eee890884ad9bf0ed29bb4 | [] | no_license | CP-lands/Codeforces | 4250ff459d2b0c700682f92b250769153d33e6bf | b5a14e254e17740415c84acdde9deab98326ffa6 | refs/heads/master | 2023-08-28T11:25:16.331344 | 2021-11-10T11:53:29 | 2021-11-10T11:53:29 | 394,057,952 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | sequence_transformation_C_div3.cpp | #include<bits/stdc++.h>
//https://codeforces.com/contest/1454/problem/C
using namespace std;
void Solve(){
int n;
cin>>n;
vector<int> v(n + 1);
map<int, vector<int>> mm;
for(int i = 1; i <= n; i++){
cin>>v[i];
mm[v[i]].push_back(i);
}
int res = INT_MAX;
... |
e71fbc24b70a9cfd496689e681559cfe43734750 | ce5eb47b22aba8545e9d3d75a7286e40e5170040 | /Lab3/Task1.cpp | f00d03f47d032396fefa33ed097bb2c583d387b6 | [] | no_license | Oleg20502/infa_2sem | 972bd4bd3e5294aa009419b22d115987c5b57f45 | dc37555014494a7de62ef646f8dcb0d8ebb7a72a | refs/heads/main | 2023-09-06T03:59:47.309765 | 2021-11-14T09:26:16 | 2021-11-14T09:26:16 | 335,083,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 426 | cpp | Task1.cpp | #include <iostream>
using namespace std;
int main()
{
int s = 0, n, mean;
cin >> n;
int *array = new int [n];
for (int i=0; i<n; ++i){
cin >> array[i];
}
for (int i=0; i<n; i++){
s += array[i];
}
mean = s / n;
s = 0;
for (int i=0; i<n; i++){
if (array[i... |
f5e93a354ec91f044ab53a4e1d240ca81473f0ce | 0e53338d293cb951b7e05f6b10f9d8790120725a | /ImageLoader.h | fc73a710fe51fea333c4edabb7eb9b6b33d6e0a7 | [] | no_license | lishunan246/object_classification | 8b90acb4524303be22f3d16669b263e0eefed5e8 | a0ef179c8ff82d6ac54f52f8db5b7444665243c4 | refs/heads/master | 2021-03-22T05:17:38.309230 | 2017-02-17T14:11:53 | 2017-02-17T14:11:53 | 78,179,597 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | h | ImageLoader.h | #pragma once
#include <QObject>
#include <QUrl>
#include <QDebug>
#include <opencv2/opencv.hpp>
#include "ImageConverter.h"
#include "ImageProvider.h"
#include "common.h"
class ImageLoader :
public QObject
{
Q_OBJECT
public:
ImageLoader(ImageProvider* image_provider);
virtual ~ImageLoader();
Q_INVOKABLE QString ... |
f6f0542601eb640bed72215d8b7e0add5980f117 | 69fdfa0d96b02d907497f11b3c965a38d0b30e54 | /src/editor/gui/game_view_gui.cpp | 09463b64420d6d9d5941c25f2ddf227c10e58202 | [
"Apache-2.0"
] | permissive | Markovna/SprintEngine | 1622c5d7a1cd4dd071cdb77cd7895f1a0692ba4b | 60110c62e951b74873986d5784aad57f1b5c08ee | refs/heads/master | 2023-03-26T18:41:22.484832 | 2021-03-29T11:00:08 | 2021-03-29T11:00:08 | 284,050,040 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,394 | cpp | game_view_gui.cpp | #include "game_view_gui.h"
#include "gui.h"
#include "core/renderer.h"
#include "renderer/texture.h"
#include "renderer/render_texture.h"
#include "core/engine.h"
namespace sprint::editor {
std::unique_ptr<GameViewGui> GameViewGui::Create(EditorGui& editor, Engine& engine) {
return std::make_unique<GameViewGui>(e... |
ce205e9c5c18d6c824d0390c8883f56df31f2eb4 | 1637c970bc7b46d110f09539b9befbd7285d3eb7 | /unittest/CumulativeMovingAverageUnitTest.cpp | 6af1a63c91d7d16091715df39b6c7a920b3417c5 | [] | no_license | wangscript007/Forte | 2fd9ef15217b56496b1d17004fe6e570be6a8421 | 0aa9a639d8cde809a7a832b10eee98c782de0ae1 | refs/heads/master | 2021-05-28T07:07:17.842774 | 2014-01-25T20:35:26 | 2014-01-27T20:44:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,465 | cpp | CumulativeMovingAverageUnitTest.cpp | #include <gtest/gtest.h>
#include "CumulativeMovingAverage.h"
#include "LogManager.h"
using namespace Forte;
LogManager logManager;
class CumulativeMovingAverageUnitTest : public ::testing::Test
{
protected:
static void SetUpTestCase() {
logManager.BeginLogging("//stdout");
logManager.SetLogMask(... |
cfc402f3e2a5756cdc8ba5d353b2147070eaf86e | 013acb0aa82ef11caf0a0c41b50f347a5bbfe95f | /runtime_safety_assurance_ros_packages/rte_monitor/include/smile/syscoord.h | d79bc938e1207765c6a79a7cf51445cff5bf7735 | [
"MIT"
] | permissive | DEIS-Project-EU/RuntimeDDIs | 79f9868a0ea2f2e8151b4d3bce53edde49da559d | 696cce1bb539a13cd3e9a00e088b7690f1d8076d | refs/heads/master | 2022-04-09T12:46:13.648169 | 2020-02-11T13:26:47 | 2020-02-11T13:26:47 | 227,149,916 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,265 | h | syscoord.h | #ifndef SYSCOORD_H
#define SYSCOORD_H
// {{SMILE_PUBLIC_HEADER}}
#include "dslobject.h"
#include "intarray.h"
class DSL_Dmatrix;
class DSL_nodeDefinition;
class DSL_nodeValue;
class DSL_sysCoordinates : public DSL_object
{
protected:
DSL_Dmatrix *link;
DSL_intArray currentPosition;
int currentIntPos... |
7a322dc782d5e90661e31a56ff232ef2976b27c5 | e6148031b471d952dbf1615d05eb47013591216f | /code/Nowcoder2019/day1/E_dafeng.cpp | 3362b3c264848e8c21110c85311f3fbbdb815da3 | [] | no_license | Dafenghh/Training_Summary | 1bdc2a3efaf5dd8e71f9c4a566c4245727769c57 | c38f8d2062a87ead98cf65f3255a5960351f6002 | refs/heads/master | 2021-06-03T11:49:03.488574 | 2020-02-09T16:19:53 | 2020-02-09T16:19:53 | 144,736,350 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 768 | cpp | E_dafeng.cpp | #include <bits/stdc++.h>
using namespace std;
const int N = 4004;
const int Mod = 1e9+7;
int dp[N][N];
typedef long long ll;
void add(int &a, ll b) {
a = (a + b) % Mod;
}
void solve(int n, int m) {
int tot = 2 * (n+m);
for (int i = 0; i <= tot+1;i++)for (int j =0;j <= tot+1; j++) dp[i][j] = 0;
... |
a6190c651f17e75954f298e70cbcce073b0231bf | c6c0be23b5d81d1f0f3f9c25317f079acee2b0e0 | /src/Square.hpp | 843afa68d39858f44307452a839ce9771a9daad9 | [] | no_license | bioalb/slach | 137cf5b9596128f57807c218160c60ff43e20b8a | 772483ac9ca9d540635e57e5932c66fa72f2fc19 | refs/heads/master | 2021-01-01T18:41:35.161799 | 2015-05-10T06:49:39 | 2015-05-10T06:49:39 | 32,622,390 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,772 | hpp | Square.hpp | #ifndef _SQUARE_HPP_
#define _SQUARE_HPP_
#include <string>
#include "SlachTypes.hpp"
namespace slach
{
/**
* Class that encapsulates a square on the chessboard
* It can be on the playing board or one of the border squares
*/
class Square
{
private:
/**
* The file ("column") of this square. Initialised ... |
64010a60d1786b41956c6fd7c64251614a842023 | 7e14d7902818594374280f8a1be982a5c903696b | /cplusplus/minitool/src/encoder_test.cc | a695ce1b189fecc017de1e3070e52c89a0cd9677 | [] | no_license | qteqpid/minitool | d59782b35a69d1618cc03560f7d52da869622fd0 | 94560599550afd9fb74ad2aec06b16c6ccbae0e7 | refs/heads/master | 2016-09-06T18:00:43.839121 | 2011-08-23T03:41:42 | 2011-08-23T03:41:42 | 2,259,706 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 811 | cc | encoder_test.cc |
#ifdef WIN32
#include "encoder.h"
#include <gtest/gtest.h>
TEST(EncoderTest, UTF8ToWideChar) {
char str[]={(char)0x61,(char)0x62,(char)0xe4,(char)0xb8,(char)0xad,(char)0xe6,(char)0x96,(char)0x87,0x0};//"ab中文"的UTF8编码
wchar_t wstr[]={0x0061,0x0062,0x4e2d,0x6587,0x0};//"ab中文"的UTF16编码
std::wstring to_wst... |
70072d46ca011c7432a74f293536814c52fa6e05 | bf52cc5e6958084ada9cb22f2b2e128919ad1bbf | /runtime/webextractor/service/useractivitymonitor.cpp | aefaf1617c7a736dd89e387c3a52ba1dc93f1d21 | [] | no_license | KDE/nepomuk-web-extractor | 29b2c228d24244202d86e3651a93afda60216721 | 6e9af02a4db4e9d1f5a56c6da5ba4e059479bb2e | refs/heads/master | 2021-03-12T21:56:15.890287 | 2018-12-29T11:22:54 | 2018-12-29T11:22:54 | 42,723,350 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,231 | cpp | useractivitymonitor.cpp | /* This file is part of the KDE Project
Copyright (c) 2010 Sebastian Trueg <trueg@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distribute... |
8d864c51d06b15347b8a55dd58ff5900bf5820a6 | 64ccd38817d3223554f9842ef8a55cc30154313c | /include/infra/gdalspatialreference.h | 028e2e973a7c6e6bba72cb789eda3cecd615c5b1 | [
"MIT"
] | permissive | VITObelgium/cpp-infra | 7cc73d5af3aa410e8260ab499c2ef7596b4967fa | 7a6c88f49b7f1743284d9d9072acfc819d6e77c1 | refs/heads/master | 2023-07-04T20:52:56.092989 | 2023-06-30T09:31:48 | 2023-06-30T09:31:48 | 241,909,345 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,156 | h | gdalspatialreference.h | #pragma once
#include "infra/coordinate.h"
#include "infra/point.h"
#include <gdal_version.h>
#include <memory>
#include <ogr_spatialref.h>
#include <optional>
#include <string>
namespace inf::gdal {
/*! Wrapper around the OGRSpatialReference class
* Needed as the OGRSpatialReference destructor is deprecated
* so... |
560f39dec868e29c087082d841533df1d711b459 | 094e599d1f7f6bd31ba1985a84d7f267d9f47c27 | /ImageClassifier/tensors/layer22_weight0.hpp | c1cf5007bf6c9193ea131d5ed7c02045f7cee31f | [] | no_license | fynv/RawNN | 8f02ca15a7064b5a0fad5c491a47b7ed62819df0 | 51949c85e2365020eca33f9cb281bb431794f126 | refs/heads/main | 2023-01-06T06:36:31.606640 | 2020-11-09T02:53:58 | 2020-11-09T02:53:58 | 309,553,012 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,663 | hpp | layer22_weight0.hpp | const static size_t layer22_weight0_size = 9216;
static unsigned layer22_weight0[]={
0xbd77b00f,0x3de7ccdf,0x3e1abc83,0x3e7e1038,0x3e955273,0x3d9d69ef,0x3e7a64d1,0x3e13aa18,0xbb980b69,0xbe8930b5,
0xbdeadb90,0xbd1b2d58,0xbe8086d9,0xbe572a17,0xbe19220f,0xbe025385,0xbdca6711,0x3dbcc893,0xbe1462aa,0x3ccea055,
0xbd74edae,0x... |
e75f56d3609c4dd7bc511b0e1d159e0ee94bad7f | fead33ecdad1a18daa74403eac2fa2e9cd39c830 | /libs/kernel/dmzLuaKernel.cpp | 8fb9f6c6481618edb8c4518c7ca99da00b8f159b | [] | no_license | shillcock/lua | 5162052d57b8459ac583433a79d227d2a5ad434b | 5a5246ab71a4f307ea9dfff846e97868ff9b9583 | refs/heads/master | 2020-12-30T17:45:10.487907 | 2010-08-10T18:31:20 | 2010-08-10T18:31:20 | 806,218 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,915 | cpp | dmzLuaKernel.cpp | #include <dmzLuaKernel.h>
#include <dmzLuaKernelErrorHandler.h>
#include <dmzLuaKernelInit.h>
#include "dmzLuaKernelPrivate.h"
#include "dmzLuaKernelValidate.h"
#include <dmzSystemStream.h>
#include <dmzTypesHashTableStringTemplate.h>
#include <dmzTypesHashTableUInt32Template.h>
#include <dmzTypesString.h>
/*!
\class... |
07593eca9489c3bf3cf54b2aa8f8f78be92e67d2 | a0f835e25efc514320c9c91110c28ab8af03eabe | /src/decoder/decoder.cc | 3e8637e9475e7f2aba8d97b54cc95b41ee479334 | [] | no_license | deepakn94/alfalfa | be125d3fefb55e299869cf3fc75665d70c942399 | 97ed6c03ffb3163ec1f4eaf545df5c127403af12 | refs/heads/master | 2021-01-18T07:46:17.951478 | 2015-11-17T06:45:41 | 2015-11-17T06:45:41 | 42,884,529 | 0 | 0 | null | 2015-09-21T18:10:20 | 2015-09-21T18:10:20 | null | UTF-8 | C++ | false | false | 13,363 | cc | decoder.cc | #include "decoder.hh"
#include "uncompressed_chunk.hh"
#include "frame.hh"
#include "decoder_state.hh"
#include <sstream>
using namespace std;
Decoder::Decoder( const uint16_t width, const uint16_t height )
: state_( width, height ),
references_( width, height ),
continuation_raster_( references_.last )
{}... |
93fa86f170442c8ac631ce7620f28f0ca8ab023f | 8f08cf24ddc4b2ce3e091d8c1d1f013ccadba0ac | /LadleMag/_CLadle_Cha_Dre_Lin.cpp | 10b2aecd12e49ce2f8202603e524d00c779be590 | [] | no_license | rcw0125/lgLogic | 42cf0a67b367d0a2ab86260639aface6cb847680 | 47a11962ab0132420231ca88157db862203f5cdc | refs/heads/master | 2020-03-10T05:12:29.589505 | 2018-04-12T07:31:13 | 2018-04-12T07:31:13 | 129,211,942 | 0 | 2 | null | null | null | null | GB18030 | C++ | false | false | 1,506 | cpp | _CLadle_Cha_Dre_Lin.cpp | // 逻辑类CLadle_Cha_Dre_Lin源文件
// 本文件是由L3集成开发环境自动生成,在没有充分了解本文件的内容前,请不要随意修改本文件中的内容
// 否则可能带来严重后果。
#include "StdAfx.h"
#include "_CLadle_Cha_Dre_Lin.h"
IMPLEMENT_L3CLASS(CLadle_Cha_Dre_Lin,CL3Object,1)
BEGIN_L3PROPTABLE(CLadle_Cha_Dre_Lin,CL3Object)
L3PROP_DATETIME(Input_Time)
L3PROP_LONG(ChaID)
L3PROP_STRING(LadleID)... |
ed4688bece4526a4a955fa6dcfbfe67911ab56b9 | 2348000ede440b3513010c29a154ca70b22eb88e | /src/CPP/src/leetcode/ValidParentheses.cpp | 721976fe124ee67db5380ce3bee2e43289a69902 | [] | no_license | ZhenyingZhu/ClassicAlgorithms | 76438e02ecc813b75646df87f56d9588ffa256df | 86c90c23ea7ed91e8ce5278f334f0ce6e034a38c | refs/heads/master | 2023-08-27T20:34:18.427614 | 2023-08-25T06:08:00 | 2023-08-25T06:08:00 | 24,016,875 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,600 | cpp | ValidParentheses.cpp | /*
* [Source] https://leetcode.com/problems/valid-parentheses/
* [Difficulty]: Easy
* [Tag]: Stack
* [Tag]: String
*/
#include <iostream>
using namespace std;
// [Solution]: Use a stack to push left part, and if encounter a right part not match the top of stack, or at the end the stack is not empty, return fals... |
76d1902c7c00b1553844e04b69d1ae83c1a34143 | 5b956901fceb2c6549d74c5904644c4fdd40d900 | /engine/temp/graphics/vulkan/vk_utility.cpp | 948f304f1323b0226c85fee0667f658357e43b09 | [
"MIT",
"BSD-2-Clause"
] | permissive | tsukushibito/tempura_old | a65e251a9341b39f845b09552caca49ffa0c1496 | 173773e9180adbb0b4fe3b89f28399314f26ac7d | refs/heads/master | 2021-09-28T18:53:17.311156 | 2018-11-19T15:22:08 | 2018-11-19T15:22:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,471 | cpp | vk_utility.cpp | #include "temp/core/define.h"
#if defined(TEMP_GRAPHICS_VULKAN)
#include "temp/core/core.h"
#include "temp/graphics/vulkan/vk_utility.h"
namespace temp {
namespace graphics {
namespace vulkan {
const char* kVkUtilityTag = "VkUtility";
const char* kAppName = "TempuraEngine";
const char* kEngineName = "Tempura";
const ... |
3e53d491cc7ea5fdf9d0baf2754915bfd33beb75 | 5dc3a43762384fe4d2bcbc25e573014716fb334b | /sensory_bme.h | d4e3dd93919dc2d92f1a69a370154867947eb0b8 | [] | no_license | jaredquinn/sensory | 7580a47005bafe7390df1ba8f5de34af1ba8a571 | e08086b3d237025526c30f71840e0ddd4e13660a | refs/heads/master | 2020-03-18T14:18:20.915569 | 2018-05-30T00:45:21 | 2018-05-30T00:45:21 | 134,841,132 | 0 | 1 | null | 2018-06-13T22:51:07 | 2018-05-25T10:23:57 | C++ | UTF-8 | C++ | false | false | 451 | h | sensory_bme.h | #ifndef SENSORY_BME_H
#define SENSORY_BME_H
#include <BME280.h>
#include <BME280I2C.h>
#include "sensory.h"
class Sensory_BME : public Sensory_Base {
public:
Sensory_BME();
protected:
Sensory_BME& _begin();
Sensory_BME& _loop(long cycle);
private:
BME280I2C * _bme;
BME28... |
c6f7b3e193c8dada929560bc3b5acb8fdd4deb26 | fc71a78b443d831bc6d5c9382e20dcbef6f6fd18 | /src/Core.cpp | 83743b7fc711422f4afc05986a361b08eff02dbd | [
"MIT"
] | permissive | AmayaHena/UWU | fcea6af44ab5bc392e15c6b5644b567a141897a5 | 5ac736cba95b41c29f4e5204a93d3e8119328611 | refs/heads/master | 2022-12-09T10:40:08.150459 | 2020-09-05T08:03:19 | 2020-09-05T08:03:19 | 282,543,223 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,651 | cpp | Core.cpp | /*
** PERSONAL PROJECT, 2020
** UWU
** File description:
** Core
*/
#include <stdlib.h>
#include "Core.hpp"
bool Core::run(const std::string &s)
{
setup();
if (!fileCheck(s)
|| !dataCheck()
|| !keysCheck())
return false;
Process::Converter c;
for (std::string f : _f.getContent()) {
... |
1a8d40a99c10de5a90a4bcf16e78c7d770b13f5d | 61213ecd66afa8990e5b4094cf4b65a0631b73b8 | /GlueBonus.hpp | cfefec67a398b0ee0e1b14d0c23d7a6bc9583314 | [] | no_license | Kozlov992/Arcanoid | 8bd14d598e64a99f7be6b95e54723718a791e87e | 15f983bae4717841d6b2dcaaf7b5ff3188679f7c | refs/heads/master | 2022-10-18T16:44:14.016516 | 2020-06-01T15:28:44 | 2020-06-01T15:28:44 | 268,154,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | hpp | GlueBonus.hpp | #pragma once
#include "Bonus.hpp"
class GlueBonus : public Bonus {
public:
GlueBonus(sf::Vector2f& size, sf::Vector2f& position) : Bonus(size, position) { this->SetColor(sf::Color(25, 153, 0)); }
void Activate(shared_ptr<Ball>& ball, shared_ptr<Shield>& shield, shared_ptr<MovingBlock>& movingBlock, shared_ptr<Carria... |
824077cfa3d209a800a6207cd3370cfe6c9f4fca | bed3ac926beac0f4e0293303d7b2a6031ee476c9 | /Modules/Core/ImageFunction/test/itkGaussianInterpolateImageFunctionTest.cxx | 3ad81ab006bd775701856694f722bf84a804f7fb | [
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"SMLNJ",
"BSD-3-Clause",
"BSD-4.3TAHOE",
"LicenseRef-scancode-free-unknown",
"Spencer-86",
"LicenseRef-scancode-llnl",
"FSFUL",
"Libpng",
"libtiff",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
... | permissive | InsightSoftwareConsortium/ITK | ed9dbbc5b8b3f7511f007c0fc0eebb3ad37b88eb | 3eb8fd7cdfbc5ac2d0c2e5e776848a4cbab3d7e1 | refs/heads/master | 2023-08-31T17:21:47.754304 | 2023-08-31T00:58:51 | 2023-08-31T14:12:21 | 800,928 | 1,229 | 656 | Apache-2.0 | 2023-09-14T17:54:00 | 2010-07-27T15:48:04 | C++ | UTF-8 | C++ | false | false | 3,571 | cxx | itkGaussianInterpolateImageFunctionTest.cxx | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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
*
* https://www.apache.o... |
f902a1ad5360fbcddac7571344a87f866d7cd9ba | 7e385bf9e0740d12e691e2e1004ed4ad64bfcddb | /Reverse and Add.cpp | 36380b48bcf83c58ea4350353d1f2ddf299cb54a | [] | no_license | 504281906/ACM | c23def3e50cbcbc020641d1df7021f6a75acd039 | 481d7d4d16f1cb421500aff3b747ccefe0f3d369 | refs/heads/master | 2021-01-23T04:13:40.729427 | 2017-04-18T02:07:34 | 2017-04-18T02:07:34 | 32,318,925 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | cpp | Reverse and Add.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace std;
int f(char s[20])
{
int l=strlen(s);
for (int i=0;i<l/2;i++)
if (s[i]!=s[l-i-1]) return 1;
return 0;
}
int main()
{
int T;
char s[100];
scanf("%d",&T);
while (T--)
{
getchar... |
c77a0953cad21a45940661771c4e4245d240a252 | 4698a0806f85cd12a0122d6abe64cb85ac51ced5 | /c_plus_plus/Algorithm_expert/Medium/Medium_Validate_BST.cpp | f756209a34475aef0f9604e48fa0f9c86f0795b3 | [] | no_license | manjurrashed/coding-solution | 7e02827390f2b2caf6f20271ad0222d222a1a427 | 948b8c835008c99b32ac0ba5915a0af879c172de | refs/heads/master | 2023-06-05T08:47:02.305208 | 2021-07-04T19:28:30 | 2021-07-04T19:28:30 | 326,808,115 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 510 | cpp | Medium_Validate_BST.cpp | class BST {
public:
int value;
BST *left;
BST *right;
BST(int val);
BST &insert(int val);
};
bool helper(BST *root, int min_val, int max_val) {
if (root == nullptr)
return true;
if (root->value < min_val || root->value >= max_val)
return false;
bool left = helper(root->left, min_val, root->value);
... |
438827a77b2ca6d735753737de9d323829f9d1c5 | dfadd879ccc98bb99c45651a33c80c18181589d9 | /Projects/Win32Launcher/Win32LauncherDll/LauncherComponents.cpp | dc005fd7cd3a44cc7da775e866ad11774f6b85b0 | [
"MIT"
] | permissive | zeroengineteam/ZeroCore | f690bcea76e1040fe99268bd83a2b76e3e65fb54 | 14dc0df801b4351a2e9dfa3ce2dc27f68f8c3e28 | refs/heads/1.4.2 | 2022-02-26T04:05:51.952560 | 2021-04-09T23:27:57 | 2021-04-09T23:27:57 | 148,349,710 | 54 | 27 | MIT | 2022-02-08T18:28:30 | 2018-09-11T16:51:46 | C++ | UTF-8 | C++ | false | false | 10,508 | cpp | LauncherComponents.cpp | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Josh Davis
/// Copyright 2016, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
namespace Zero
{
// Small helper to ... |
a597b2ded05d4217378e4963f70ee87b2767ac3d | aea46590312550a0949cc8d216fa22bcffdafa3c | /LC123.cpp | 0489036655af651fdd998bb006cfdc66fcb6e027 | [] | no_license | ma1371sao/Leetcode-CPP | 9f820f4042af6146613275c3ec733171f2febcc8 | c9eeb4aa77904f46cfc895ec206ebdfbe346c538 | refs/heads/master | 2022-12-05T22:08:54.872421 | 2020-08-23T21:52:30 | 2020-08-23T21:52:30 | 77,488,436 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | LC123.cpp | //DP
class Solution1 {
public:
int maxProfit(vector<int>& prices) {
if (prices.size() <= 1) return 0;
vector<vector<int>> dp(3, vector<int>(prices.size(), 0));
for (int k = 1; k <= 2; k++) {
int profitAtBuy = dp[k - 1][0] - prices[0];
for (int i = 1; i < prices.size()... |
9fcca200b548f4018cca464a5a7f0a951af43bb2 | 6fabfe3b0379b5fd159fe888a11e28677541211a | /Parser/Accessors.h | 0ed023b71ee31f3b538b1a7fb620c5535da53d56 | [
"MIT"
] | permissive | MarkRakhmatov/ImageCapture | 61113c53cb3e16a94d673d29d911ac4c126936f6 | 27d40b7f338ce61205ee3993550ef868b9cf763d | refs/heads/master | 2021-02-14T14:24:26.508975 | 2020-06-17T02:03:45 | 2020-06-17T02:03:45 | 244,811,026 | 1 | 0 | MIT | 2020-06-12T13:06:28 | 2020-03-04T04:56:59 | C++ | UTF-8 | C++ | false | false | 411 | h | Accessors.h | #include "ObjectData.h"
#include <string>
namespace Parser
{
template<typename T>
T AsInt(const ObjectData& objData)
{
return *objData.GetData<T>();
}
char AsChar(const ObjectData& objData)
{
return *objData.GetData<char>();
}
std::string AsString(const ObjectData& objData)
{
return objData.GetData<ch... |
4f7f71609db0dff43287749cb64d5bc4eb248409 | 6258de2aeb36cc728c998c107013ccd3f4ec29f1 | /시뮬레이션/시뮬레이션/게리맨더링2_17779.cpp | 8d64def421a577ae158f0235d2b70ab464e27929 | [] | no_license | gihop/AlgorithmStudy | ac1f885ad03ba896d5b88334aaedc8a385d2fb48 | 281d786f4e6fc51bceb69fbc8684ab9485489012 | refs/heads/master | 2021-06-30T11:57:18.768253 | 2021-05-07T15:56:46 | 2021-05-07T15:56:46 | 230,912,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,460 | cpp | 게리맨더링2_17779.cpp | //
// 게리맨더링2_17779.cpp
// 시뮬레이션
//
// Created by jiho park on 2020/02/02.
// Copyright © 2020 jiho park. All rights reserved.
//
#include <iostream>
#include <set>
#include <tuple>
using namespace std;
int n;
int a[20][20];
int d[20][20];
int dx[] = {1, 1, 1, 1};
int dy[] = {-1, 1, 1, -1};
int ans=... |
eb7016f204b35ce34db69756c07a32d6eb8f891d | f4dd0a6de36666c8669bc677a3b5c83077a635dc | /src/libs/json/test/src/unit-regression1.cpp | 92c27ff4e2657555910e560a6921d28c05a39f62 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"CC0-1.0"
] | permissive | 0vercl0k/wtf | f1c42189bee27c6030c2cfa098a2eda050255295 | 9823579ef764b0b3c0af2f71b61d5aa47fb3de51 | refs/heads/main | 2023-07-19T17:59:45.759383 | 2023-07-09T04:21:04 | 2023-07-09T04:21:04 | 384,769,357 | 1,244 | 117 | MIT | 2023-07-09T04:21:06 | 2021-07-10T18:53:57 | C++ | UTF-8 | C++ | false | false | 58,529 | cpp | unit-regression1.cpp | /*
__ _____ _____ _____
__| | __| | | | JSON for Modern C++ (test suite)
| | |__ | | | | | | version 3.10.4
|_____|_____|_____|_|___| https://github.com/nlohmann/json
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
Copyright (c) 2013-2019 Niels L... |
d9124575e90d3de99ad49951450cf899da48c715 | c344cbe00f1cf6a93efc77cdb8a876ca87e3cf5d | /day05/ex01/main.cpp | 06b195161800d9ef903c516e51ea687b22062b38 | [] | no_license | TlStephen2011/CPP_Bootcamp | 5978286db680130b20d1f22e39db2a4f5b61cded | 9b3f5fd34383fd09c8616e6a70eb4034d42e5690 | refs/heads/master | 2020-05-27T15:50:54.278143 | 2019-06-15T14:10:29 | 2019-06-15T14:10:29 | 188,687,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | main.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... |
d0b67c4a055b460de12277a8fa8a4f5e8d35fdac | cbda47de29fd481dbf942c0d7a53f59c0c4f5f22 | /RigidBody.h | cfcbab8d601fd6adf0a4623ddaf0fe19ce5d462a | [
"Apache-2.0"
] | permissive | Scorpiour/AIModule | bda2c49cd75023cc6c5f25bdd6e8942058b5f589 | 2c5dc91369373c42102dfbca946124b2d6dfb073 | refs/heads/master | 2020-09-27T16:06:16.709080 | 2017-07-10T03:20:23 | 2017-07-10T03:20:23 | 67,004,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,598 | h | RigidBody.h | #ifndef __INCLUDE_RIGIDBODY_H__
#define __INCLUDE_RIGIDBODY_H__
#include <iostream>
#include <fstream>
#include <cmath>
#include <set>
#include <deque>
#include <vector>
#include <functional>
#include <algorithm>
#include "GlobalMacro.h"
#include "GlobalVariable.h"
enum class RigidTypeID{
Rigid... |
8297d926e8ba35ba8e27a010d61fdd05a657cfdf | b5348dd489f07f0f8ab507099b5bc0802fd75d33 | /3D Computer Graphics/FBO.hpp | 2f48526d6e28dfc737fadfc44a54930ae0fb66c1 | [] | no_license | junfication/3D-Computer-Graphics | ee188aa7b57367435b640ccb4de9edabfa518630 | 41952bff3eeab4906e0ed7964d0d3f044c24e353 | refs/heads/master | 2020-07-30T23:22:06.641010 | 2019-09-23T16:10:18 | 2019-09-23T16:10:18 | 210,396,145 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | hpp | FBO.hpp | #pragma once
// include GLEW
# include <gl/glew.h>
// include GLFW
#include <GLFW/glfw3.h>
#include <iostream>
bool SetUpFBO(GLuint* FBOHandle, GLuint* renderedTexture, GLuint* depthrenderbuffer);
bool UseFBO(GLuint FBOHandle);
|
bd7d1cf21cf3da3f5065199818956540efff9dec | d2d7cabf45d430afc6033edf3e335551e65c7904 | /NPSC_Junior/2016_Final/pB.cpp | a46442c8e39ae20212f1769300b9391e716a13de | [] | no_license | browntoad/Competitive-Programming | b6d7f778253fa828a6efc13d0feeb7e2378a740f | a15a963303e2d7455e18a0a99f1e75ac31210e02 | refs/heads/master | 2023-06-12T23:23:43.272499 | 2021-07-05T15:54:51 | 2021-07-05T15:54:51 | 282,873,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,726 | cpp | pB.cpp | #include <bits/stdc++.h>
#pragma GCC optimize ("Ofast", "unroll-loops")
using namespace std;
#define ll long long
#define int ll
#define FOR(i,a,b) for (int i = (a); i<(b); i++)
#define REP(i,n) FOR(i,0,n)
#define REP1(i,n) FOR(i,1,n+1)
#define RREP(i,n) for (int i=(n)-1; i>=0; i--)
#define f first
#define s second
#de... |
0d380e90f241bcb8a6f10f88d2bebfa589cf9588 | a1a5724ab0f1671f2d8b6c3d7786228b2477b961 | /CodingBlocksBitwiseOperators/OddEven.cpp | 5ea0abd7603ef7cacb35d1b427f75a9dc2807549 | [] | no_license | Mark-DSouza/CP | 87bfd1c910e7d8d5b5aeccf8a0fbb644bb248946 | 7b93e81b33d9b53a55939512ee4472d19f3a5a42 | refs/heads/master | 2023-04-01T07:11:13.551450 | 2021-03-31T07:35:19 | 2021-03-31T07:35:19 | 282,376,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cpp | OddEven.cpp | /*
Problem Statement:
Find if a number is even or odd
*/
#include <iostream>
using namespace std;
void isOddOrEven(int n) {
if (n & 1)
cout << "Odd" << endl;
else
cout << "Even" << endl;
}
int main() {
int n = 8;
isOddOrEven(n);
return 0;
} |
b85e110d781f0ef463970a05ae6cd66858d99966 | e815b20b0aea8f721308a09e33c8721aa0b96102 | /Code.hpp | e76fbecf8fe037c281967ad8fe23331de75d8751 | [] | no_license | budspencer1/ScriptLanguage | 888249998f8e8718c641f71d8680c57ddc72f8da | 4a320d9d4b813ef95a82ce77d1959fd6eba4b9b9 | refs/heads/master | 2021-08-22T08:54:02.299807 | 2017-11-29T20:27:43 | 2017-11-29T20:27:43 | 112,524,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 654 | hpp | Code.hpp | #pragma once
#ifndef CODE_HPP
#define CODE_HPP
enum {
TOKEN_START = 0, TOKEN_END, TOKEN_IDENTIFIER, TOKEN_LOOKUP,
TOKEN_COMMA, TOKEN_NUMBER, TOKEN_STRING, TOKEN_VECTOR,
TOKEN_LPAREN, TOKEN_RPAREN, TOKEN_LBRAK, TOKEN_RBRAK,
TOKEN_BODY, TOKEN_LBODY, TOKEN_BLOCK, TOKEN_INTERNLOOKUP,
TOKEN_RBODY, TOKEN_UNKNOWN, TOKE... |
5dfc7b0352d1f5e0c280dfc752ab7debf089af55 | 857ff9c943448f809aba8ca0c7df6ee602c278a8 | /inference_backend/image_inference/openvino/openvino_image_inference.cpp | 7eb49df203f845065bdd82d3a067bd89913544ea | [
"MIT"
] | permissive | fkhoshne/gst-video-analytics | 2483eb39e2e08e4627bb4557bad0a05047b7d5fb | c76892b40dd5df1caa9bab6a74bdf1fba928e14f | refs/heads/master | 2020-06-12T13:23:46.591144 | 2019-07-23T17:29:33 | 2019-07-23T17:29:33 | 191,635,254 | 0 | 0 | MIT | 2019-06-12T19:51:41 | 2019-06-12T19:51:41 | null | UTF-8 | C++ | false | false | 17,480 | cpp | openvino_image_inference.cpp | /*******************************************************************************
* Copyright (C) 2018-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#include "openvino_image_inference.h"
#include <functional>
#include <stdio.... |
cec2bb7c5d11deb76512662105c671966c33cc26 | 82b567f5b1cfaeb9c5564a1c221f7e31fd8fa69f | /Threads/GradeCalcuation.cpp | abecf9457662510965a12f507ffeba32c7f976af | [] | no_license | hmzakhalid/Unix-Threads-and-Processes-C-Programs | 6d3740fd721a95508a36130adea8daac9d53d915 | 80b520466a4289d9879977af1a2e5fbab4f38925 | refs/heads/main | 2023-07-02T07:51:08.611472 | 2021-08-04T05:16:22 | 2021-08-04T05:16:22 | 392,547,003 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,610 | cpp | GradeCalcuation.cpp | #include <iostream>
#include <pthread.h>
using namespace std;
struct Student {
string name;
int age;
double absolute;
string grade;
};
void * calcGrade(void *temp){
Student arg = *(Student *)temp;
double absolutes = arg.absolute;
if (absolutes >= 90)
arg.grade = "A+";
else if (... |
db803d0a631135a8a0623ef8deacbbcd170b5146 | 5af7d18576a26a0b090e4bf0f8d76339ea6acfb7 | /arrow_movement.h | 472ccbf020c492dd998bb96e1a1251539d1ce69b | [] | no_license | harshi12/FILE_EXPLORER-1 | 9b3e36d9997220fba34c1797a39f470e66a66658 | 3a42bc1a8cab0fb55f30e3e23d53c22eae00b5a5 | refs/heads/master | 2020-08-04T13:02:19.294757 | 2019-10-01T16:28:40 | 2019-10-01T16:28:40 | 212,144,934 | 0 | 0 | null | 2019-10-01T16:28:03 | 2019-10-01T16:28:03 | null | UTF-8 | C++ | false | false | 602 | h | arrow_movement.h | #include <stdlib.h>
#include <stdio.h>
#include<iostream>
#include <string>
#include <termios.h>
#include <unistd.h>
#include<dirent.h>
#include<stack>
#define gotoxy(x,y) printf("%s%d%s%d%s","\033[",(x),";",(y),"H");
using namespace std;
void arrow_movement(struct dirent **namelist, int n);
int snapshot(string path,... |
5a582b683fd3ca9301cb31a9fb3dc083d15040ee | 268d2e0b607dff051c847b492b939d049fed4ebb | /ImageRotation/rotation.cpp | f9d4ee7fe2c8164c5807bce7852aa338a4eebb5a | [] | no_license | nevermoreT/opencltest | 5c97d462ed877ea5892f00f00270522c5c36e2f6 | bf10d4588bb2789b9d6f58aef27280d7f7e45370 | refs/heads/master | 2021-08-29T21:49:30.137801 | 2017-12-15T04:18:29 | 2017-12-15T04:18:29 | 114,326,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,369 | cpp | rotation.cpp | //this program implements a vector addition using OpenCL
//System includes
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include <string>
#include <string.h>
#include<fstream>
//oepncl includes
#include<CL/cl.h>
#pragma warning( disable : 4996 )
#define SUCCESS 0
#define FAILURE 1
using namespace std;
typed... |
de4449e0fcf2f92e2260ce3fde1791232ce713bd | b5f7be8a58f1d39e0072f987c397349f9447bff3 | /main3.cpp | 6a099025586acfbc36f28ea7e91f606d71ca080c | [] | no_license | IrinaHaid/-.1 | 64559b38fdbebe5f8b5b44f51a3da800711f8ef4 | 006db4e3a7e8d4acb3a4be88bab42d742440bb67 | refs/heads/master | 2021-09-06T19:16:20.127832 | 2018-02-10T08:51:23 | 2018-02-10T08:51:23 | 119,888,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,280 | cpp | main3.cpp | #include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <time.h>
const int n = 10000;
using namespace std;
void selection(int *ar, int size)
{
clock_t start = clock();
int i, j, mx, nmx;
for (i = 0; i < size - 1; i++)
{
mx = ar[i];
nmx = i;
for (j = i + 1; j < size; j... |
cf1ca0cc306d50d6805904e16c999cfc26ffe5a5 | 7ee0d0f6678c0742fb8199820ba679aa55d53848 | /PQUEUE.cpp | 0ce2f811ac763c271ce6082006c84f1cfa063044 | [] | no_license | Autoratch/spoj-solutions | aac2c0cb1665c7911e08719e1945d712277ad0da | 77e15274b5d9495b24b6cd78baee17e5811e46ff | refs/heads/master | 2022-12-23T14:13:00.507540 | 2020-10-01T13:39:02 | 2020-10-01T13:39:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 482 | cpp | PQUEUE.cpp | #include<iostream>
using namespace std;
int main()
{
int t,i,j,k,n,p,a[100],max,num,pos,count,x;
cin>>t;
for(i=0;i<t;i++)
{
count=0;
max=-1;
cin>>n>>p;
for(j=0;j<n;j++)
{
cin>>a[j];
if(a[j]>max)
max=a[j];
}
num=a[p];
pos=0;
for(j=max;j>num;j--)
{
x=pos;
for(k=x;k<x+n;k++)
{
... |
51319820d54980e2910c014d6fd3c846b85dda53 | 2ceabf71dd73dfaba6541b16ab9419a70265ea59 | /src/cmd/pkcs8.cpp | 19af70eb10228eb821b112feee674622a18cf792 | [
"BSD-2-Clause"
] | permissive | cryptlex/botan | 4a7ef6ac5866174cffeb75b73269206c4ec7c204 | 92816309828aece4e23a97bac00bccbd8c5a03ee | refs/heads/master | 2020-05-29T11:39:53.119254 | 2015-10-05T20:45:18 | 2015-10-05T20:45:18 | 44,014,375 | 1 | 0 | null | 2015-10-10T14:43:07 | 2015-10-10T14:43:07 | null | UTF-8 | C++ | false | false | 1,635 | cpp | pkcs8.cpp | /*
* (C) 2015 René Korthaus
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "apps.h"
#include <iostream>
#include <fstream>
#include <string>
#include <memory>
#include <chrono>
#if defined(BOTAN_HAS_PUBLIC_KEY_CRYPTO)
#include <botan/pk_keys.h>
#include <botan/pkcs8.h>
#include <... |
0957ef3be824ab6cd1800da80df955ab209ed369 | d69cce312b3e91b6b71e9ba039caef544b069d53 | /jianzhioffer-cpp/树/8二叉树的下一个节点.cpp | 198e1e0883bb93e7f26f3a186d6c287ff96d9c78 | [] | no_license | wangleihitcs/LeetCode-JianzhiOffer | 5b11e16af7d64d499f3656d68d4d29895767fcbb | 6d434c8a2be7fda49d809376da8b77f522e61e76 | refs/heads/master | 2020-03-23T17:38:29.677086 | 2019-06-04T13:47:18 | 2019-06-04T13:47:18 | 141,868,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,317 | cpp | 8二叉树的下一个节点.cpp | //
// 8getNextNode.cpp
// JianzhiOffer
//
// Created by 汪磊 on 2019/3/1.
// Copyright © 2019 wanglei. All rights reserved.
//
#include <iostream>
using namespace std;
struct TreeLinkNode {
int val;
TreeLinkNode* left;
TreeLinkNode* right;
TreeLinkNode* next;
TreeLinkNode(int x) : val(x), left(N... |
3647e0bdd487aed9fc0b95e4ed07c29ec75ea745 | b9f27ef2470ed2dd70ae9be9d5f9f4ab49a3b09e | /c++/基础题/J_超市购物/源.cpp | d914f6770d0ab3a5fd4a80e6cc01673979f7efd3 | [] | no_license | YinAoXiong/project | 948e630cf364d9369c3946991fefd050a06654ca | 321f1cc2321eb10df445cf241d5bd544e19d887f | refs/heads/master | 2021-01-18T22:53:19.899840 | 2017-09-01T02:30:45 | 2017-09-01T02:30:45 | 87,078,440 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | 源.cpp | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
struct kind
{
int a;
int b;
};
int main()
{
int k = 0, m = 0, time = 0;
while (cin>>k>>m)
{
vector<kind> *map = new vector<kind>[k];
for (int i = 0; i < k; ++i)
{
int n = 0;
kind temp;
cin >> n;
for (int j = 0; j < n; ++... |
f01fbd16838c8e4d0fbc286227a6d12f3a1e5b7d | 6b54805fb60b31e91fb06c7c1b87ba0af4994418 | /ex04/Asteroid.hpp | e72bf1ecd696620b0937f02f10478f7c7de5dfdb | [] | no_license | gbudau/cpp-module-04 | f7ac3edf910c1d34642d847c65a7bba2cb128b17 | d81f9cc84cb3951566bc8a4c2c1493e438d69116 | refs/heads/master | 2023-03-29T15:01:56.716113 | 2021-04-01T01:01:43 | 2021-04-01T18:26:02 | 350,467,647 | 0 | 0 | null | 2021-03-30T12:12:08 | 2021-03-22T19:39:33 | C++ | UTF-8 | C++ | false | false | 497 | hpp | Asteroid.hpp | #ifndef ASTEROID_HPP_
#define ASTEROID_HPP_
#include <iostream>
#include <string>
#include "IAsteroid.hpp"
#include "DeepCoreMiner.hpp"
#include "StripMiner.hpp"
class Asteroid : public IAsteroid {
public:
Asteroid();
Asteroid(Asteroid const & src);
~Asteroid();
Asteroid & operator=(Asteroid const & rhs)... |
bfc4d1c45b1bc0a831cd15809492507ca84890a3 | 579e5b34d5bb8f8a633512165c7da6ecc5bb6a4c | /Core/components/Drawable.hpp | b4f5340a68f211a2b35a3ebb73600afd274c8391 | [
"MIT"
] | permissive | WeyrSDev/SpaceY | d836777eba7b2f14c8a97475cddac160add956f9 | b2ce9be0df85acb534c60ee36678d02801c677b9 | refs/heads/master | 2021-06-20T08:53:48.615460 | 2017-07-15T19:12:23 | 2017-07-15T19:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,341 | hpp | Drawable.hpp | /*
Conrad 'Condzi' Kubacki 2017
https://github.com/condzi
*/
#pragma once
#include <cinttypes>
#include <memory>
#include <SFML/Graphics/Text.hpp>
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/CircleShape.hpp>
#include <Core/Macros.hpp>
#include <Core/ecs/C... |
d8e81273c75935df1d9ab4cd8a599d907d55dec0 | 28fd25f6566e4f5d20a8144b4ab4c156c55a5902 | /Functions/namespacetest2.cpp | 0a4df72e89f02288afb1d8ce876fc654dbcf508f | [] | no_license | nileshshirkemet/DACFeb19batch | c7d98f1b07b7a1b69c49924b1c2880b3d9250f8d | 1fe213a42bda7a2b4c0b6415b3af8a52d594432f | refs/heads/master | 2020-05-15T22:06:07.631941 | 2019-05-13T13:26:45 | 2019-05-13T13:26:45 | 182,517,827 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 89 | cpp | namespacetest2.cpp | #include "people.h"
int main(void)
{
using namespace Jack;
return age + Jill::age;
}
|
be347c182f59ad2ce26b4183c54f7567cc9c71c4 | b558854f71449bbb47c130f59ada0039085e762d | /TENGAI/ModuleSceneForest.cpp | 707f1fd062ce49212b6df54f95d22de8c97aea3e | [
"MIT"
] | permissive | ponspack9/TENGAI-Project1 | 22f61ef2fa498f149b584ff2210d92985230ae24 | c6e51d2990051a0cba38029167d984c653553c8d | refs/heads/master | 2020-03-31T10:40:16.274269 | 2018-06-05T22:05:05 | 2018-06-05T22:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,424 | cpp | ModuleSceneForest.cpp | #include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include "ModuleRender.h"
#include "ModuleTextures.h"
#include "ModuleMiko.h"
#include "ModuleInput.h"
#include "ModuleFadeToBlack.h"
#include "ModuleSceneForest.h"
#include "ModuleParticles.h"
#include "ModuleAudio.h"
#include "ModuleSceneOutr... |
9a44c25385706f5144ce8433bbe5bc286c26c493 | cb381d8fb6e877d92831fbfb86f3d8b2081a09f9 | /src/pbrt/util/bits.h | 438b21a196775d549783f706a7bafcb7bab6b29d | [
"Apache-2.0"
] | permissive | mmp/pbrt-v4-ci-testing | 95c2bc888261800b4b1ea9d6ed6fe765dfc9264d | 70eb8fa81deb0db326d1f48f5fa292ac057ffbbf | refs/heads/master | 2023-02-27T07:44:22.106255 | 2021-02-09T15:27:08 | 2021-02-09T15:27:08 | 337,428,137 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,073 | h | bits.h | // pbrt is Copyright(c) 1998-2020 Matt Pharr, Wenzel Jakob, and Greg Humphreys.
// The pbrt source code is licensed under the Apache License, Version 2.0.
// SPDX: Apache-2.0
#ifndef PBRT_UTIL_BITS_H
#define PBRT_UTIL_BITS_H
#include <pbrt/pbrt.h>
#include <pbrt/util/check.h>
#include <cstdint>
#ifdef PBRT_HAS_INT... |
3b66b42cade706c68912379f1dd2e43f5e965a42 | e5516d4598da3927d904c51f96b24b600298428a | /PROJET/src/views/gamepadProfileSelectView.hpp | 3a0ed4bd208fc03d4f6e127edf3d1b4934c0c99e | [] | no_license | caiqia/sar | 7d0bea38debd8d4dac7c2c3839f27a2ac53add01 | 504e506e0fa26c60ed0137e67a9a7f50fe1eded0 | refs/heads/master | 2021-01-19T06:29:02.522243 | 2017-07-20T23:53:05 | 2017-07-21T00:03:50 | 87,463,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | hpp | gamepadProfileSelectView.hpp | #ifndef DEF_GAMEPADPROFILESELECTVIEW
#define DEF_GAMEPADPROFILESELECTVIEW
#include"abstractView.hpp"
class View;
class GamepadProfileSelectView : public AbstractView
{
public:
GamepadProfileSelectView(View* view);
~GamepadProfileSelectView();
virtual GamepadProfileSelectView* render(const ViewData& view... |
e526e3b38a14b7c52397a77644748e3c06009fde | c1720c81612dbd512dce413618d3cd246faa0a74 | /DEM/Src/L1/Data/FSBrowser.cpp | 426686b9211a9981ed54dd6546636e6be361c710 | [
"MIT"
] | permissive | moltenguy1/deusexmachina | 307ba62a863034437cd77a6599c191ffe8ae953c | 134f4ca4087fff791ec30562cb250ccd50b69ee1 | refs/heads/master | 2021-01-23T21:35:42.122378 | 2012-10-03T23:33:16 | 2012-10-03T23:33:16 | 35,931,317 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,578 | cpp | FSBrowser.cpp | #include "FSBrowser.h"
namespace Data
{
bool CFSBrowser::ForceToFirstEntry()
{
if (hDir) FS->CloseDirectory(hDir);
hDir = DataSrv->OpenDirectory(CurrPath, NULL, FS, CurrEntryName, CurrEntryType);
AtFirstEntry = true;
return !!hDir;
}
//------------------------------------------------------------------... |
e0049194af1a136272e9c296ba9c42291ecaf750 | 777b99cf334cc7c37ff5fd59f67b747274805c0c | /Asteroid Hunter/Player.cpp | 59e9ab6d84a7b9b23fc8f7f203d63d03de21f5a1 | [] | no_license | WojciechSzweda/Asteroid-Hunter | 846949c66daf56cdb9c29947a626f68fc309f4da | 4aedad7341bf50b7c51dac8587d203db35512f46 | refs/heads/master | 2021-01-23T03:42:40.907012 | 2017-04-20T21:34:29 | 2017-04-20T21:34:29 | 86,109,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,912 | cpp | Player.cpp | #include "Player.h"
#include "GlobalVariables.h"
int windowWidth = 800;
int windowHeight = 800;
Player::Player(float x, float y, float r)
{
this->Radius = r;
this->turningSpeed = 5.0f;
this->Speed = 0.5f;
this->Position = Vector2(x, y);
SetPosition(windowWidth / 2.0f, windowHeight / 2.0f);
this->Direction = Vec... |
3f9873cbc7002cdd52091fa2d238c5306511f939 | b75bbf0368aca007b124dbb4b9fe21d6e0b96e3b | /include/VgeApp.h | a126bb7caaabb581d6b859d48fb9564f9716420f | [] | no_license | xchuki00/VGE-projekt-2020 | 6f5a73b8bfda711bb1245f68c76e31a5a8beb5b2 | 92c5b87a3ae6664b4725f76399b9cfc5f95a85ae | refs/heads/master | 2022-06-10T21:58:33.649657 | 2020-05-05T21:48:18 | 2020-05-05T21:48:18 | 253,284,429 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,226 | h | VgeApp.h | //
// Created by patrik on 05.04.20.
//
#ifndef VGE_VGEAPP_H
#define VGE_VGEAPP_H
#if defined(_WIN32)
#include <windows.h>
#endif
#include <nanogui/window.h>
#include "OutputWindow.h"
#include <nanogui/glutil.h>
#include <vector>
#include <tuple>
#include <nanogui/textbox.h>
#include <nanogui/checkbox.h>
#include "Ar... |
9829e5963f71b8f4f1c2d71af7c406bb7ab9b2b8 | a470846ae283c483b0cbe684c4068511c514c2c5 | /2020/data-structures/snippets/section08/BST/Map.hpp | 6291f32dcb3ced8c30a16ed1f0f285bba0698346 | [] | no_license | Olivia-919/sbme-tutorials.github.io | 0eec60e5032228505583e2166ebdecc591b5548b | b15b1f3827da403ca2a1619dc43c5d6d10936ef7 | refs/heads/master | 2023-06-22T18:52:27.841831 | 2021-05-12T11:50:28 | 2021-05-12T11:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,027 | hpp | Map.hpp | #ifndef MAP_HPP
#define MAP_HPP
#include <iostream>
template< typename K, typename V >
class Map
{
struct MapNode
{
K key;
V value;
MapNode *left;
MapNode *right;
};
static bool isEmpty( const MapNode *m )
{
return m == nullptr;
}
static bool isLea... |
15eb7db8e5c068b8b9a2d8806e2b8e93ef5395f8 | f6a7e828eccc14248dfcee92e1cb1199f2dd7666 | /behavioral/observer/TrafficAdministration.h | c75aa4b4fd867caff36ab8ef064f1e3ca3ce38aa | [] | no_license | DahamChoi/ModernCpp-DesignPattern | 2f3bce429e85fdce11496f2acd976ee9a682ce4e | cd618b4d83e699ce2ed9341a78695188103219a5 | refs/heads/main | 2023-03-27T01:33:00.614375 | 2021-04-01T11:19:39 | 2021-04-01T11:19:39 | 350,175,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 453 | h | TrafficAdministration.h | #pragma once
#include "Observer.h"
#include "Person.h"
#include <iostream>
class TrafficAdministration : public Observer<Person>
{
void field_changed(Person& source, const std::string& field_name)
{
if (field_name == "age")
{
if (source.get_age() < 17)
std::cout << "Whoa there, you are not old enough to... |
46b73a761942694e2b0c10b99d35f919d1e622bc | f63028878311f21f73ed21f9bc88a0fd2ba8ba88 | /06.arduino/chapter05/01.keypad/ex01/app.ino | 1dd205804b46a2d84062cd29259296a121479e21 | [] | no_license | nugeat23/workspace | ac12b93b0cb826206138aa2262382b0e6389977b | 221344b95daa40c3ba66d27e04cbf9dae3172edc | refs/heads/master | 2023-07-14T20:37:32.851769 | 2021-09-01T08:55:01 | 2021-09-01T08:55:01 | 383,780,263 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 494 | ino | app.ino | #include <MiniCom.h>
#include <Keypad.h>
#include "keymap.h"
MiniCom com;
// Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
Keypad keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
String input="";
void setup() {
com.init();
com.print(0, "[[Keypad Test]]");
}
void loop() {
... |
5916460c8b875f6aa49e4e2699dac1528e756150 | 7ed2f2dcf8fa1f38e6caeaad3cc8a810bb4971c0 | /src/sdk/function/function.h | cc214b9159d14465b3a989fbe2cd63f331f108e8 | [] | no_license | pxhmeiyangyang/USC_SDK_PXH | ee4065181a852a156b06d03a82fe77e26b3bd1d3 | b827f9e3940c17d114755ec62045aa36bd3278f3 | refs/heads/master | 2021-01-11T01:48:00.055189 | 2016-10-20T06:12:27 | 2016-10-20T06:12:27 | 70,667,409 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 693 | h | function.h | #ifndef __FUNCIONT_H__
#define __FUNCIONT_H__
#include <string>
int GetRandomNum();
int TransError2User(int errorCode);
void usc_sleep(int milliseconds);
std::string GetSystemTimeS_Y_M_D();
std::string GetSystemTimeS();
std::string GetSystemTimeTick();
std::string GetUuid();
// get md5 number
int GetMd5(char* str, ch... |
979169c8b703754269f45fecffd7364eda3007c9 | 0b4f2880eb3dc8d23c82c4592318ae14e336afce | /Assignment 6/q24.cpp | 14b186a5afb8e1073654867c900ba10ba6c14bb9 | [] | no_license | rahulbeeram12/ABC_Assignments | 6ab31bcafa3a1424ac907703d88d596dc2a4baa2 | 6308805baa7f952039571aaf908c21f7a1f7710b | refs/heads/master | 2023-04-15T19:59:24.536806 | 2021-04-19T13:37:32 | 2021-04-19T13:37:32 | 359,471,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 322 | cpp | q24.cpp | #include<iostream>
using namespace std;
#define nline "\n"
int main() {
int spaces = 4;
int star = 1;
for (int i = 0; i < 5 ; i++) {
// spaces
for (int j = 0; j < spaces; j++) {
cout << " " ;
}
spaces--;
//stars
for (int j = 0; j < star ; j++) {
cout << "* ";
}
star += 1;
cout << nline;
}... |
4cc9d1e92bb97f7114d74ecc70336364c74c3d01 | eb47bf8011f957e95a84ac64aab29598c59081a1 | /src/BodyPlugin/MultiDeviceStateSeqItem.h | 2ce9e3a692c7a13a781cc024458b9b8ef33ceece | [
"Zlib",
"MIT"
] | permissive | choreonoid/choreonoid | fd776aaab99d9ec544e5ceec04fbc283b8a3aee3 | 94b353722d5b9ff10e9c0ca8982e549f85b5f59f | refs/heads/master | 2023-09-01T12:27:17.849641 | 2023-08-04T13:54:12 | 2023-08-04T13:54:12 | 274,977,786 | 117 | 30 | NOASSERTION | 2023-05-23T08:25:33 | 2020-06-25T17:36:56 | C++ | UTF-8 | C++ | false | false | 1,036 | h | MultiDeviceStateSeqItem.h | #ifndef CNOID_BODY_PLUGIN_MULTI_DEVICE_STATE_SEQ_ITEM_H
#define CNOID_BODY_PLUGIN_MULTI_DEVICE_STATE_SEQ_ITEM_H
#include <cnoid/MultiDeviceStateSeq>
#include <cnoid/AbstractSeqItem>
#include "exportdecl.h"
namespace cnoid {
class MultiDeviceStateSeqItem : public AbstractMultiSeqItem
{
public:
static void initial... |
83a549da293107ba14ee7d6ab1e895b6ae6cb1c4 | c4a66686285857e441d05420f970a9b72bc8d5d5 | /2802_OddEven.cpp | 708518d0a1ddaecbeb4aa4d8603c8a1349eae006 | [] | no_license | himanshu-rawat/CBcplusplus | 99140cb25a96b66c6160f6689b02d278ac8ba66d | fbb5de2e4945457eed604fc11fb2093da4258ecc | refs/heads/master | 2020-05-03T20:38:32.174661 | 2019-07-24T13:13:06 | 2019-07-24T13:13:06 | 178,807,210 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | cpp | 2802_OddEven.cpp | #include<iostream>
using namespace std;
void Odd(int n,int i){
if(i>n){
return;
}
if(i%2!=0){
cout<<i<<" ";
}
Odd(n,i+1);
}
void Even(int n,int i){
if(i>n){
return;
}
if(i%2==0){
cout<<i<<" ";
}
Even(n,i+1);
}
int main(){
int n;
cin>>n;
... |
1ed2e0004532c5bf63a7e4a5013abfd3f1225774 | 74a44e5174847a60c747428a9271a234954163a2 | /SquiLu-ext/sq_nn.cpp | 14616ea02913cc64f5f4471b37c3f3e41f1231a8 | [] | no_license | mingodad/squilu | 8bc74484d0af7c5c5a66cb577e1feeebc9ce9774 | ef96bae1f0b226737367c3ad662de2526fd58a65 | refs/heads/master | 2022-12-10T06:56:55.251824 | 2022-12-08T17:31:36 | 2022-12-08T17:31:36 | 33,980,799 | 81 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 53,478 | cpp | sq_nn.cpp | #include <stdio.h>
#include "squirrel.h"
#include <string.h>
#include <inttypes.h>
#include <math.h>
#include <stdlib.h>
#include <sys/time.h>
//#include <pthread.h>
SQ_OPT_STRING_STRLEN();
extern "C" {
#include "nn.h"
void *ann_malloc(size_t sz)
{
return sq_malloc(sz);
}
void ann_free(void *p)
{
sq_free(p, ... |
588a2dea3bc352e7f6b55929b1415d3947981bc1 | 578b5e3a17e141454230952b23b44917caa88636 | /src/main4.cpp | d0b391f38741078543b244264aa0613575f78238 | [] | no_license | volodin89/C-lab-5 | 8d302276407a0e60351ab0bd82b9eaccce5f4836 | c05230bdc5a217d213a680f6687ab63793951313 | refs/heads/master | 2020-04-21T21:45:49.296994 | 2019-02-10T11:19:39 | 2019-02-10T11:19:39 | 169,889,332 | 0 | 0 | null | 2019-02-09T16:54:15 | 2019-02-09T16:54:15 | null | UTF-8 | C++ | false | false | 273 | cpp | main4.cpp | #include <stdio.h>
#include "task1.h"
#define N 256
int main()
{
char in[N] = { 0 };
char out[N] = { 0 };
FILE *fp;
fp = fopen("in.txt", "r");
if (fp == NULL)
printf("File not found!");
while (fgets(in, N, fp) != NULL)
puts(randomWords(in, out));
return 0;
} |
f5f6b2d4f56c5eb1370690652d963336ad261a25 | c3027d7bd4285c60fbec46ef9bdd0c942124d20e | /client/InventoryState.cpp | a627154f1b595ad0f81b5904a681bcf7831d1202 | [
"MIT"
] | permissive | blazeroni/foxc | d35d15deab9882022b3a00af63fbfdfedabc8762 | c143edb63b90a6c500193ea5eac95f9c89e3c4ff | refs/heads/master | 2022-12-22T03:10:54.097399 | 2020-09-26T07:41:35 | 2020-09-26T07:41:35 | 298,534,484 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 27,534 | cpp | InventoryState.cpp | #include "includes.h"
#include "InventoryState.h"
#include "MainGameState.h"
#include "Input.h"
#include "FrontEndGameState.h"
#include "xcore/UnitCreateEvent.h"
#include "xcore/GameJoinEvent.h"
#include "xcore/GameListEvent.h"
#include "xcore/PlayerJoinEvent.h"
#include "ClientNetwork.h"
#include "ConfigOpti... |
4bad82e40bf8e4cdf5714795a8a424fd5694aeae | 945b10bfaa203c0f89693b745c7d978620577e23 | /jmde/csurf/Helpers.cpp | 709a8d4d7e74d50a8b3f531d54b8065742446542 | [] | no_license | diodenschein/Ultraschall-Midi-Plugin | 971ba6087bfc4e92cba9e936e0a297b446e644d6 | 0450ff9f7626760d749a025f353241a9b91b5671 | refs/heads/master | 2020-06-11T00:25:49.137762 | 2016-12-12T01:52:08 | 2016-12-12T01:52:08 | 75,832,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | cpp | Helpers.cpp | //
// Helpers.cpp
// reaper_csurf_fpxt
//
// Created by Robert Nixdorf on 7.12.2016.
// Copyright (c) 2016 . All rights reserved.
//
#include "Helpers.h"
#include "csurf.h"
double charToVol(unsigned char val)
{
double pos=((double)val*1000.0)/127.0;
pos=SLIDER2DB(pos);
return DB2VAL(pos);
}
uns... |
0fa921e3229d86bd7c322b568a998800dbd5b8a5 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/11/54/6.cpp | 4f0d7f0825b142e2ed96cfb149056237f6643e45 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 1,881 | cpp | 6.cpp | #pragma comment(linker, "/STACK:64000000")
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <cmath>
#include <cassert>
#include <sstream>
using namespace std;
#define forn(i, n) for (in... |
b539f61d91290f2258b23d24b5be8f6b58075d21 | 25a1d2c351589ce2e6ba1bf1781a161ec089b805 | /android/Agora-Online-KTV/app/src/main/cpp/XEGL.cpp | 4c66b3d9fa4c0fd8a5f36b07fefba3c751fc4a1b | [
"MIT"
] | permissive | dedencLichKing/Agora-Online-KTV | 0eb5b19f1edd0ada0ffbfd3af78f443c367165af | 39aaf37565d329f2c589973fec670369d3676371 | refs/heads/master | 2020-03-27T21:25:26.245215 | 2018-09-03T02:08:21 | 2018-09-03T02:08:21 | 147,142,559 | 1 | 0 | null | 2018-09-03T02:40:15 | 2018-09-03T02:40:15 | null | UTF-8 | C++ | false | false | 3,217 | cpp | XEGL.cpp | //
// Created by zhanxiaochao on 2018/5/5.
//
#include "XEGL.h"
#include "AgoraLog.h"
#include <android/native_window.h>
#include <EGL/egl.h>
#include <mutex>
class CXEGL:public XEGL
{
public:
EGLDisplay display = EGL_NO_DISPLAY;
EGLSurface surface = EGL_NO_SURFACE;
EGLContext context = EGL_NO_CONTEXT;
... |
d11456bf811ceaaaa2a5551a7b0e4533275be514 | ac75da6166f0f461391e29f9c6f2fd35647701db | /src/idu_PE2_CONFIG_RNN_LAYER_SIZING.cc | ad91f6e4de9e283868028c05cc61fed10d5f0d53 | [] | no_license | Bo-Yuan-Huang/flexasr-sim | 504a6b3c20171dabae6e19ce67a9971327584a98 | 9a04e4279cfede7f13648ec68960019771ded0d1 | refs/heads/main | 2023-09-03T06:09:24.672913 | 2021-11-10T21:13:23 | 2021-11-10T21:13:23 | 426,778,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,425 | cc | idu_PE2_CONFIG_RNN_LAYER_SIZING.cc | #include <flex.h>
bool flex::decode_flex_PE2_CONFIG_RNN_LAYER_SIZING() {
sc_biguint<1> local_var_2 = ~flex_if_axi_rd;
sc_biguint<1> local_var_3 = (flex_if_axi_wr & local_var_2);
sc_biguint<1> local_var_4 = 1;
bool local_var_5 = (local_var_3 == local_var_4);
sc_biguint<32> local_var_7 = 910163984;
bool local_var_8 = (fl... |
cede7e0b48857968373e41957a63b51e3cb60ebe | 544be852b4cdbb43d1419fb57b21c13ec337c6d3 | /CPU_Raytracer/source/Material.h | ec9d2c722daca75fef52b90f3aa44f9450ae20bc | [] | no_license | Robin-DePaepe/Graphics-Programming | 1ce4017448783afc2c213e915fe24e00cd7275b3 | b000e565fbb09b01ee828fd9ebec1a81662ade23 | refs/heads/main | 2023-03-31T23:45:37.877604 | 2021-04-11T15:23:42 | 2021-04-11T15:23:42 | 356,891,885 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | h | Material.h | #pragma once
#include "ERGBColor.h"
#include "EMath.h"
#include "Structs.h"
using namespace Elite;
class Material
{
public:
//rule of 5
Material() = default;
virtual ~Material() = default;
Material(const Material& other) = delete;
Material(Material&& other) = delete;
Material& operator=(const Material& rhs) = ... |
a899b1671218a82bbdedc258dfbba3065de988c7 | d79927ea9e3605189de0220ab12bab541d7b8597 | /old/src/version#1.0/wander.cpp | dabf9a08169e0f121a41bc1b04f112f1d780f788 | [] | no_license | samanz/Fribbler-PS-Driver | 2cfec88ca562815328980187f59826c825c1f8c3 | 09fa46567a931d7802e825af9c3010b84ccd92b8 | refs/heads/master | 2021-01-01T10:14:07.147321 | 2010-07-22T18:25:47 | 2010-07-22T18:25:47 | 339,638 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,934 | cpp | wander.cpp | #include "scribbler.h"
#include "system.h"
#include <string>
#include <assert.h>
#include <unistd.h>
int gDebugging = 0;
//YUVRange range(0x00FE, 0x7E8C, 0x5A78);
//YUVRange range(0x00FE, 0x00FF, 0x00FF);
YUVRange range(0x00FE, 0x3388, 0xBEFE);
/****************************************************************... |
a8b1602ab98c5fa18dcab8719cb3c05856f64f64 | 147084d81d56ef68dff9ee802650f9e0e03465dd | /3DProject/3DProject/cCollisionObject.h | 76867af81b96825aedab169a347211fb69520d63 | [] | no_license | isoundy000/Project-Tera | 0c3f24f87237fbd7bac86a6f6cddc0e7776f70ad | c96714b3569bb794839d9dce42699046d217775e | refs/heads/master | 2021-03-02T22:45:17.051442 | 2016-06-25T16:34:20 | 2016-06-25T16:34:20 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,402 | h | cCollisionObject.h | #pragma once
#include "cGameObject.h"
#include "ICollider.h"
class cCollisionObject :
public cGameObject,
public ICollisionDelegate
{
using _ColliderRepoTy = std::vector<ICollider*>;
using _HadCollidedRepoTy = std::vector<bool>;
public:
cCollisionObject( );
virtual ~cCollisionObject( );
virtual void Update( ... |
eb4fd38e72de79575774babb0c51f69fe16944b7 | d10fe231038cb399e7f9dd9748fa65e9e8e91ff9 | /Algorithms/Implementation/Grading_Students/main.cpp | bbd1a4e4af4dcae6baeda39c0a7aeb458b1729d2 | [
"MIT"
] | permissive | ugurcan-sonmez-95/HackerRank | 93fe54a8a93231365239b5ad4d5626c89101ca5c | 187d83422128228c241f279096386df5493d539d | refs/heads/master | 2022-12-25T07:43:14.919067 | 2020-09-28T14:31:22 | 2020-09-28T14:31:22 | 260,935,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 635 | cpp | main.cpp | // Grading Students - Solution
#include <iostream>
#include <vector>
std::vector<int> gradingStudents(const std::vector<int> &grades) {
std::vector<int> new_grades;
for (auto &grade: grades)
(grade < 38 || (5 - grade%5) >= 3) ? new_grades.push_back(grade) : new_grades.push_back(grade + (5 - grade%5))... |
406d50b59ab3401f972d9ff4ecb0ffac4ef3dc5e | e0e05c3e11d5bcc109dc088067519a611b323a35 | /c++/mm-temp/11/11-21.cpp | e18c46593312f877584f9dc04da344bc3f233c94 | [] | no_license | miaomao1989/program_test | ac3858e600a7a28a4f2a4dc7c2ae0fa472ea075c | e537f008035b0695d03bb0534c6138c65a895a3e | refs/heads/master | 2020-04-06T06:56:45.561929 | 2016-08-30T11:48:49 | 2016-08-30T11:48:49 | 52,199,904 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | 11-21.cpp | #include <iostream>
#include <algorithm>
#include <list>
using namespace std;
int main()
{
int ia[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
list< int > ilst(ia, ia+10);
list< int >::reverse_iterator riter;
riter = find(ilst.begin(), ilst.end(), 0);
// 输出结果
if (riter != ilst.rend())
cout << "element after ... |
a179ede1cfc01794a8ea1905888f8bbfcb31d1ab | a4d4286b8da709bf0543a9f65f00708ad09c0105 | /Assignment1_LEXER/lexeme_printer.cpp | b0667fd925d96c995af0b1e852f6a6dc088b45a3 | [] | no_license | niketagl/C-Plus-Compiler | a6334262e0d07c4e471b04fb58ecf69593ffb01a | 58554153d8f05840fd03a0651f71335e62963d57 | refs/heads/master | 2020-06-20T20:43:59.859812 | 2019-07-16T19:08:51 | 2019-07-16T19:08:51 | 197,242,084 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | cpp | lexeme_printer.cpp | #include<iostream>
#include<fstream>
#include<string>
using namespace std;
fstream output_file;
struct mapping
{
string tag_name;
string color;
} *list ;
int list_size;
void lexeme_printer( string lexeme, string tag_name )
{
// tag_name to colour mapping has to be created in main from cfg file.
string color;
... |
01cbb0e9783f04359cad4d57738afd0d093028f5 | 874e2ea8adad2ecd2bdf78d01135c468518e6842 | /Project5/Project5/P1_f_file.h | 29ba69ab8edc4c48978cb2ecd9ca687db2305f63 | [] | no_license | krukarkonrad/PK_MP_LAB | 464c0a92e227cf47c64d296ab2d88eb27ffab292 | 69d1384b525fe031d41eda83b498e9414f6283c6 | refs/heads/master | 2020-04-07T02:27:17.026748 | 2018-11-18T21:53:28 | 2018-11-18T21:53:28 | 157,977,023 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 1,024 | h | P1_f_file.h | #ifndef L_FILES_H
#define L_FILES_H
#include <fstream>
#include <string>
#include <iostream>
/*
"POCZATEK FUKNCJI"
@tab-tablica zestawu;
@lwz-liczb w zestawie;
*/
int f_mergeSort(int* tab, int lwz);
/*
REKURENCYJNE DZIEL I ZWY.
@tab -tablica zestawu
@temp_tab -tablica tymczasowa stworzona przez f_mergeSort;
@left -... |
e440a1ece4367ae9f8b124ce64d342aebfdae513 | 3d4f601fee634723f25f739f755bd0aca2b3a489 | /cf3/Tools/GooglePerfTools/GoogleHeapProfiling.cpp | 73f70af0dadabb840e455e785d8b2d6dc04dfb92 | [] | no_license | barche/coolfluid3 | 69d8701a840377e83bb46b158300da6d4d8f3bc5 | 688173daa1a7cf32929b43fc1a0d9c0655e20660 | refs/heads/master | 2021-07-16T18:09:42.818240 | 2020-08-06T11:55:11 | 2020-08-06T11:55:11 | 2,173,454 | 2 | 7 | null | 2020-09-20T20:57:29 | 2011-08-08T13:37:11 | C++ | UTF-8 | C++ | false | false | 1,636 | cpp | GoogleHeapProfiling.cpp | // Copyright (C) 2010-2011 von Karman Institute for Fluid Dynamics, Belgium
//
// This software is distributed under the terms of the
// GNU Lesser General Public License version 3 (LGPLv3).
// See doc/lgpl.txt and doc/gpl.txt for the license text.
#include <google/heap-profiler.h>
#include "common/Log.hpp"
#include ... |
cf7c90a6d0c77601a46b7d3ab1a16333fdbcd123 | 37a368d47a664bf5156068ad65684359aaad9897 | /cpp/src/barretenberg/honk/sumcheck/polynomials/pow.test.cpp | b67816d36321ddd43345f050a0eab6fcdb503642 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AztecProtocol/barretenberg | e35828f2ec58be737edf5af53d75f491bbc797fc | e5df3f2efe5db8c6ece54a6d1e4db876c9b788a2 | refs/heads/master | 2023-08-30T20:57:07.608894 | 2023-08-30T14:13:42 | 2023-08-30T14:14:20 | 574,999,978 | 58 | 29 | Apache-2.0 | 2023-09-12T16:37:34 | 2022-12-06T14:34:53 | C++ | UTF-8 | C++ | false | false | 763 | cpp | pow.test.cpp | #include "barretenberg/ecc/curves/bn254/fr.hpp"
#include "barretenberg/honk/utils/power_polynomial.hpp"
#include "pow.hpp"
#include <gtest/gtest.h>
namespace proof_system::honk::sumcheck::pow_test {
using FF = barretenberg::fr;
TEST(SumcheckPow, FullPowConsistency)
{
constexpr size_t d = 5;
FF zeta = FF::ra... |
c9c8a3df8a06d3f54e01c894f1d33abd5abdb25a | e9907bc518adcd4770f6c62c2a792cbda396aff3 | /leetcode_max_nested_paranthesis.cpp | 9041dd4d47764fd2289ebcc8ea6218618640f04f | [] | no_license | md-qubais/DSA_updated | efa59fee40001b21c16fa76ef7bf300d725b5dfd | 93b9569670def3dc68073b133133642571d40631 | refs/heads/main | 2023-06-16T18:33:20.346480 | 2021-07-10T06:14:28 | 2021-07-10T06:14:28 | 384,624,998 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | leetcode_max_nested_paranthesis.cpp | class Solution {
public:
int maxDepth(string s){
int ans=INT_MIN;
int curr_max=0;
for(int i=0;i<s.length();i++){
if(s[i]=='('){
curr_max++;
ans=max(ans,curr_max);
}else if(s[i]==')'){
curr_max--;
}
}
ans=max(ans,curr_max);
return ans;
}
}; |
a3a4d1e15b3780477d1907578df277207cc7a9bc | c008f88941235837dbf809d39113911b54934fbe | /sample/android/sample/haxe/bin/include/nme/display/InterpolationMethod.h | bf5466a7340df1112c25b260beff29608e79c9d1 | [
"MIT"
] | permissive | proletariatgames/nmexpro | fb90b6c6465c57f5e8b0987deafdd2effc3dd8ce | 1f322c4e126543b30db20fc90d99202b1cac5c94 | refs/heads/master | 2022-05-04T02:05:12.648496 | 2022-03-24T17:31:09 | 2022-03-24T17:31:09 | 8,226,048 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,034 | h | InterpolationMethod.h | #ifndef INCLUDED_nme_display_InterpolationMethod
#define INCLUDED_nme_display_InterpolationMethod
#ifndef HXCPP_H
#include <hxcpp.h>
#endif
HX_DECLARE_CLASS2(nme,display,InterpolationMethod)
namespace nme{
namespace display{
class InterpolationMethod_obj : public hx::EnumBase_obj
{
typedef hx::EnumBase_obj super;
... |
a1a6c6606867b5f551e15a2e3c6068eb44aa9651 | 4bea57e631734f8cb1c230f521fd523a63c1ff23 | /projects/openfoam/rarefied-flows/impingment/sims/test/nozzle1/0.26/U | 81bdac08643b0399c3ccd21a5a5c04443032ffb1 | [] | no_license | andytorrestb/cfal | 76217f77dd43474f6b0a7eb430887e8775b78d7f | 730fb66a3070ccb3e0c52c03417e3b09140f3605 | refs/heads/master | 2023-07-04T01:22:01.990628 | 2021-08-01T15:36:17 | 2021-08-01T15:36:17 | 294,183,829 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 50,176 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
... | |
c6437d93bf79f67cb2f16fdb0592c46e92ea34ef | f1fff1ec58708a7770bdd5491ff54349587530e9 | /recitation/call_by_reference2.cpp | 255259ca22865b371a7bb77766de21fa9494e7de | [
"MIT"
] | permissive | chgogos/oop | a7077e7c3bfab63de03eb02b64f77e097484589f | 8f8e9d7f2abd58acf48c2adce6550971c91cfcf7 | refs/heads/master | 2022-06-28T03:44:37.732713 | 2022-06-06T11:41:15 | 2022-06-06T11:41:15 | 171,113,310 | 16 | 11 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | call_by_reference2.cpp | // Γράψτε μια συνάρτηση με όνομα circle που να δέχεται μια παράμετρο που να αντιστοιχεί στην
// ακτίνα ενός κύκλου και να επιστρέφει το εμβαδόν του κύκλου και την περίμετρο του κύκλου.
#include <iostream>
using namespace std;
void circle(double r, double &a, double &p)
{
a = 3.14 * r * r;
p = 2 * 3.14 * r;
}... |
d06429cdcef30a289de5dedef608ec863de18cce | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /net-mgmt/fastnetmon/files/patch-src_netmap__plugin_netmap__collector.cpp | 19a3f3d8b17db68f4dd68bba3c66f8c05d9c5bcf | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | C++ | false | false | 281 | cpp | patch-src_netmap__plugin_netmap__collector.cpp | --- src/netmap_plugin/netmap_collector.cpp.orig 2023-03-01 14:23:34 UTC
+++ src/netmap_plugin/netmap_collector.cpp
@@ -19,6 +19,7 @@
// Disable debug messages from Netmap
#define NETMAP_NO_DEBUG
+typedef bool _Bool;
#include <boost/thread.hpp>
#include <net/netmap_user.h>
|
627795be79239054a9a09c56d239bb3f64e71b3e | 05099a30fcb1d738c7f34ec7c3dd3f3484e9c8e1 | /mav_control_interface/src/rc_interface_aci.cpp | a7e65c5e8f903b936105c9cf88aacba7a013d126 | [
"Apache-2.0"
] | permissive | caomuqing/mav_control_rw | a326c877b8987d82d9365b205c66b70b47133baf | 95beac589cb88b0040d5db1453ede9de952fb283 | refs/heads/master | 2023-01-21T23:08:13.576983 | 2023-01-07T05:11:06 | 2023-01-07T05:11:06 | 205,482,778 | 1 | 0 | Apache-2.0 | 2019-08-31T02:13:17 | 2019-08-31T02:13:17 | null | UTF-8 | C++ | false | false | 3,089 | cpp | rc_interface_aci.cpp | /*
* Copyright (c) 2015, Markus Achtelik, ASL, ETH Zurich, Switzerland
* Copyright (c) 2014, Sammy Omari, ASL, ETH Zurich, Switzerland
* You can contact the author at <markus dot achtelik at mavt dot ethz dot ch>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... |
8e8f25d399d5559682b8fd4b4178f1ec31610d78 | 50a8a3fe0fdffb4141b12b0ee73363f218efc222 | /src/ngap/ngapIEs/PduSessionAggregateMaximumBitRate.cpp | e9313c966300aa162d540f84c5a7f0c1af7496fa | [] | no_license | dukl/fake_gnb | f89972ad50c6a50e620fe8590cece7200d2560da | b6f772e8fb82c61a9949a4f4c317637d97c36fb6 | refs/heads/master | 2022-12-07T21:55:26.285263 | 2020-08-27T07:11:37 | 2020-08-27T07:11:37 | 290,703,480 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,205 | cpp | PduSessionAggregateMaximumBitRate.cpp | #include "PduSessionAggregateMaximumBitRate.hpp"
#include <iostream>
using namespace std;
namespace ngap{
PduSessionAggregateMaximumBitRate::PduSessionAggregateMaximumBitRate(){}
PduSessionAggregateMaximumBitRate::~PduSessionAggregateMaximumBitRate(){}
void PduSessionAggregateMaximumBitRate::s... |
2ef41aee97753d08dcd3fefbe8528d9bac5beebd | d59c149ec015f0da90d89c99e58d7139efbe394e | /Move_Dictionary.cpp | 0252f0cf1a2b5587d59bd930032812fb143ecfcf | [] | no_license | amit-samuel-34/PokeTracker | 696bf46d3b53febcd0b98da295524d61f5cf3113 | 76ea0105200d780198505d0babe3174ccc020548 | refs/heads/master | 2022-11-16T20:11:38.522954 | 2020-07-08T00:05:06 | 2020-07-08T00:05:06 | 198,148,428 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,785 | cpp | Move_Dictionary.cpp | //
// Created by amits on 6/25/2019.
//
#include "Move_Dictionary.h"
Move_Dictionary::Move_Dictionary() {
std::ifstream file;
file.open("Move_List.txt");
if(!file.is_open()) return;
Move* move_ptr;
std::string line;
while(std::getline(file, line)){
std::vector<std::string> line_spac... |
ca36e7614f5bb8e869a658467c5af95d252ee79d | 45f88dea35020d923c426958a406ab567d9c0073 | /Circle.cpp | f7373cea233eef6503e654aa6969a1b59d2c6eb3 | [] | no_license | gudaol/CPPNHF2 | dfd58023566815c867cd640d16b7d48e057d8478 | 04ccef21415ff38d16b7b2a834f0708109d4c0bc | refs/heads/master | 2021-01-10T20:00:41.379881 | 2015-05-15T14:04:46 | 2015-05-15T14:04:46 | 35,662,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | cpp | Circle.cpp | //
// Created by qz9n1f on 2015.05.14..
//
#include "Circle.h"
Circle::Circle(const float _z) {
z = _z;
}
Circle::Circle(const Material &_material, const float _z) {
material = _material;
z = _z;
}
bool Circle::_intersect(const Ray &_ray, Hit &_hit) {
Vector E1 = _ray.eye;
Vector V1 = _ray.v;
... |
65bbeeda055027cca0b35f188e1bfe2f788d1e49 | e08b905c5baa62a2e6dd1e0cbb2a24da907b9a32 | /src/common/Constants.cc | 1e99e4bd4d09f411580554efb5edcd10288de2f5 | [
"MIT"
] | permissive | sunniel/VirtualNetContentSharing | d833c93a255f35c9592c0d25d77d69f5d40a95f8 | 60fc51024ad20196630a456c0b9f226425d5ca73 | refs/heads/master | 2020-04-18T23:03:26.933170 | 2019-04-05T19:38:35 | 2019-04-05T19:38:35 | 167,811,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,332 | cc | Constants.cc | //
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it wil... |
816db34ecd7dca678621650ebf599b53e2bd9934 | ca32d531ff2596425ce5218a8e2b732a6744faa0 | /asterisk-cpp/asteriskcpp/manager/actions/AbsoluteTimeoutAction.h | 03164905c02de17256bfd56ccc67b72ff23b0908 | [
"Apache-2.0"
] | permissive | augcampos/asterisk-cpp | a8a115a164194db6e9712c676111af164a8526fb | 921423e0d1b6042d0ce2be6d7b9d98af4feb7460 | refs/heads/master | 2022-07-06T00:37:41.907214 | 2022-07-01T03:51:25 | 2022-07-01T03:51:25 | 2,310,863 | 22 | 15 | null | 2017-09-26T00:10:45 | 2011-09-01T23:05:30 | C++ | UTF-8 | C++ | false | false | 1,883 | h | AbsoluteTimeoutAction.h | /*
* AbsoluteTimeoutAction.h
*
* Created on: Aug 19, 2011
* Author: augcampos
*/
#ifndef ABSOLUTETIMEOUTACTION_H_
#define ABSOLUTETIMEOUTACTION_H_
#include "AbstractManagerAction.h"
namespace asteriskcpp {
/**
* The AbsoluteTimeoutAction sets the absolute maximum amount of time permitted
* ... |
9962a57f3b1205875db9add656db0fade2b672e0 | feff5dadc85629c0947abf87a79f86ace8c84539 | /acmicpc/2019-Yokohama/H.cpp | 6753e945286f3a1324ce1f6d82468584a230be6e | [] | no_license | Redleaf23477/ojcodes | af7582d9de8619509fa4ffa5338b2a59d9176608 | 7ee3053a88a78f74764bc473b3bd4887ceac6734 | refs/heads/master | 2023-08-13T22:34:58.000532 | 2023-08-10T15:54:05 | 2023-08-10T15:54:05 | 107,507,680 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,304 | cpp | H.cpp | //
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
typedef long long int ll;
struct Node
{
int leafIdx;
int combo;
Node *parent, *root;
Node *lchild, *rchild, *mostLson;
Node(int idx = -1):leafIdx(idx)
{
combo = 0;
parent = root = this;
lchild = rchild =... |
22c08681f284a8c834abb65bc7e6357ee4a8c64e | d96f973e0e7bb80f3f51332f83f2ed4fc3431ea8 | /CardIn.cpp | 93a9a9a5eeb21df01157ac3903a4eca451ddbaf0 | [] | no_license | aramakus/Dirac-Hartree-Fock | 16afd7cf563c7dfc351bc217256eed66e7f28484 | 9bad80afb59194effc2c1f4b8a5fc3feb8f6669e | refs/heads/master | 2022-11-26T13:52:51.136569 | 2020-07-23T11:25:44 | 2020-07-23T11:25:44 | 236,901,861 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,499 | cpp | CardIn.cpp | /*===========================================================================
This file is part of Atom.
Atom is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.