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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68b7dfa76355b85d6669e09cfa03515af68051b0 | 784a9d8e17e25b88564f0bc4067ae50789aa6be7 | /20.cpp | c75b8d892ca2a9179fb4e775f0dc969b5d866dd2 | [] | no_license | emanur1999/Final450 | 0b729e8a124e6e17eba162c4a17f42f14e19c725 | 5ab66cebc01107cb6b811a0b81063b2583411479 | refs/heads/main | 2023-07-10T18:11:46.331340 | 2021-09-01T17:26:14 | 2021-09-01T17:26:14 | 402,140,869 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | 20.cpp | #include<bits/stdc++.h>
using namespace std;
void reverse(vector<int> & nums,int s,int e){
for(int i=s,j=e;i<j;i++,j--){
swap(nums[i],nums[j]);
}
}
vector<int> nextPermutation(vector<int> & nums){
int min;
int i;
for( i = nums.size()-1;i>0;i--){
if(nums[i-1]<nums[i]){
... |
fa6c80652f086defd92deab1f9848a0157ff38e8 | 7cade01964f33d9a11b3469cb7f5e933b8609fa8 | /src/quad.h | 2d6746a8e5723608ce3d60e00096b98a884489a0 | [] | no_license | zhf459/hairrender | 1c8d84182c5fd7061a8b0cbcf4fb6d334f762fd5 | be336f45b40c130e9e2bf5dfb4083cea7dd5e72a | refs/heads/master | 2021-09-05T11:36:41.948743 | 2018-01-26T23:56:31 | 2018-01-26T23:56:31 | 125,788,754 | 6 | 0 | null | 2018-03-19T02:09:12 | 2018-03-19T02:09:12 | null | UTF-8 | C++ | false | false | 207 | h | quad.h | #ifndef QUAD_H
#define QUAD_H
#include "openglshape.h"
class Quad
{
public:
Quad() { }
virtual ~Quad();
void init();
void draw();
private:
OpenGLShape m_shape;
};
#endif // QUAD_H
|
084163df403b31e5458da920fab166a25d80f70f | 3f17bef125d4032f65d296ec1f416f69a5b298e1 | /src/clothsimulator.h | 9b95f0f58a8e442767d778d7b00c021f927927dd | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | xphillyx/dust3d | 2a8ef9b0df84dce36b50997926d25a5478ac43ae | 7c43ac49167d50ddc45e6df0f5c3ad87bc6aefb3 | refs/heads/master | 2023-04-01T00:37:37.477528 | 2020-11-29T02:12:09 | 2020-11-29T02:12:09 | 317,751,319 | 0 | 0 | MIT | 2021-04-01T06:56:42 | 2020-12-02T04:40:06 | null | UTF-8 | C++ | false | false | 1,587 | h | clothsimulator.h | #ifndef DUST3D_CLOTH_SIMULATOR_H
#define DUST3D_CLOTH_SIMULATOR_H
#include <QObject>
#include <QVector3D>
#include <vector>
struct mass_spring_system;
class MassSpringSolver;
class CgRootNode;
class CgSpringDeformationNode;
class CgMeshCollisionNode;
class CgPointFixNode;
class ClothSimulator : public QObject
{
Q... |
07bbf3c9a825e0dfff482f7eba0b3ee8e9dd73c1 | a801eaa92a08214b64c4bdd7f4e40b001d97d86e | /drones_manager_test.hpp | 70c98e232f91966a128bacd8f21b74cac64f664b | [] | no_license | andrewmouch/DronesManagerProject | dbd33054cccf0b051ac5da54f9f0f0ca9240a3fe | 7770396dcc6acbc708938a8ae68ba457c51d27ab | refs/heads/master | 2020-03-22T12:10:45.153856 | 2018-07-11T21:58:15 | 2018-07-11T21:58:15 | 140,022,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,983 | hpp | drones_manager_test.hpp | #ifndef DRONES_MANAGER_TEST
#define DRONES_MANAGER_TEST
#include "drones_manager.hpp"
#define ASSERT_TRUE(T) if (!(T)) return false;
#define ASSERT_FALSE(T) if ((T)) return false;
class DronesManagerTest {
public:
// new empty list is valid
bool test1() {
DronesManager manager;
ASSERT_TRUE(manager.get_size(... |
5d0a6f91c8584d63418fab8ca9307816ef564536 | 3fb5cb7e059dd00548f0468d25eddfd4b470a51a | /src/session/client/Email.cpp | de7fec8f506fde7f75b0f13c60c05bac3b7b5237 | [] | no_license | openwns/applications-loadgen | b02eea2489a1666da8c9deb5c9807bc5a885b737 | 800306e37efad86fee599d4cb82fff18fc822dec | refs/heads/master | 2016-09-06T01:22:02.559343 | 2014-06-29T23:28:03 | 2014-06-29T23:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,352 | cpp | Email.cpp | /*******************************************************************************
* This file is part of openWNS (open Wireless Network Simulator)
* _____________________________________________________________________________
*
* Copyright (C) 2004-2007
* Chair of Communication Networks (ComNets)
* Kopernikusstr.... |
7ad36a94d89487289092da92c7eab2fd899822ed | 4e39749b375deff46e66ca489097c257ecf2c986 | /STBTransfer/Src/HttpCmd/HttpCmdClient.h | d3c43f08ff8e46cf04e419473a5df631f0fb92e2 | [] | no_license | jeffgu0727401152/STBHdmiTransfer | 803aaff4943e1f94ea648ba2959871d891675cb6 | 87b873ddb39a448d2f5b31722273971a56cddf0f | refs/heads/master | 2020-03-28T15:27:00.969136 | 2018-08-17T07:01:33 | 2018-08-17T07:02:20 | 148,594,464 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 773 | h | HttpCmdClient.h | /*
* PlayerCmdServer.h
*
* Created on: 2013-1-18
* Author: kyo
*/
#pragma once
#include "curlhelp.h"
#include "BaseThread.h"
class CHttpCmdClient : public IThreadFuncInterface
{
public:
CHttpCmdClient();
virtual ~CHttpCmdClient();
public:
void Start(
const char* cServerIP,
int nServerPort);
void ... |
e588f0ead1dc6eb756bd6ba66b7995948dffb52f | 0350d1eb869653fd7b7452e8885496e81b2fcf89 | /KinectTracker/inc/Analyzer/src/BBMovementAnalyzer.cpp | aad3b6a66ca406651999fcbd3031416c8e0b675b | [] | no_license | GromeTT/KinectTracker | 2b7a1e190452b7a9d760cabc0f0f5e2e69834460 | e93bcffa7abfc07764d71b562a9b53c6950d0e41 | refs/heads/master | 2020-05-07T16:29:21.461443 | 2014-10-13T13:41:06 | 2014-10-13T13:41:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,589 | cpp | BBMovementAnalyzer.cpp | #include "../inc/BBMovementAnalyzer.h"
/*!
\brief BBMovementAnalyzer::BBMovementAnalyzer
Standardconstructor.
*/
BBMovementAnalyzer::BBMovementAnalyzer( QObject* parent )
: MovementAnalyzer( parent )
, m_deltaX( 0.1f )
, m_deltaY( 0.1f )
, m_deltaZ( 0.1f )
{
setObjectName( "BoudingBoxMoveme... |
a93f9909449e057dac32748385048d850ae01839 | 4b0a0793238d31413b95b71b3af8fc37ac883427 | /libcef/common/chrome/chrome_content_client_cef.h | 4076aca58884d82144e741af35ae1fc1891991ee | [
"BSD-3-Clause"
] | permissive | sarthak-saxena/cef_node_webkit | a408c8b4b620923e5546dab5d05c7431de7e81f4 | cca786066cdc635d2bcfb67315a70a1c40c5d77a | refs/heads/master | 2023-05-04T22:09:59.270934 | 2021-05-16T14:19:43 | 2021-05-16T14:19:43 | 367,562,455 | 1 | 0 | NOASSERTION | 2021-05-15T07:04:05 | 2021-05-15T06:58:07 | C++ | UTF-8 | C++ | false | false | 709 | h | chrome_content_client_cef.h | // Copyright 2015 The Chromium Embedded Framework Authors.
// Portions copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CEF_LIBCEF_COMMON_CHROME_CHROME_CONTENT_CLIENT_CEF_H_
#define CEF_LIBCEF_COMMO... |
36ab9cd3e7c1c39de3902a107374c9352aada897 | 4e2af214ee8bf36beb13464f1aca1352bbc04673 | /constructor/b.cpp | 810f3ecc4bd90d09ebf653c96b47a8138a628dc0 | [] | no_license | inaniwa3/test | c495b2423f59755294d01ab08a428868a0d58438 | 68f8c031728a693463492977e20b1e055e38a3e5 | refs/heads/master | 2021-06-15T05:46:36.442731 | 2021-05-28T13:46:11 | 2021-05-28T13:46:11 | 7,850,871 | 0 | 0 | null | 2018-06-14T12:04:33 | 2013-01-27T10:29:34 | C | UTF-8 | C++ | false | false | 943 | cpp | b.cpp | // http://www.cplusplus.com/doc/tutorial/classes2/
#include <cstdio>
class Hoge
{
public:
Hoge()
{
puts("Default constructor");
}
Hoge(const Hoge& a)
{
puts("Copy constructor");
m = a.m;
}
Hoge& operator= (const Hoge& a)
{
puts("Copy assignment");
... |
5c8fcd47a92872bc505011911db14a22e7ff1b99 | 10264d50c75ab1e0920ca2c57edefb01dbc2c23c | /editor/echo/Editor/UI/ShaderEditor/ShaderEditor.cpp | 6cb3eb3ea789809da1ffab895d94b0e6ca8b3cda | [
"MIT"
] | permissive | moneytech/echo | 53eb25cfc14a252b9ca5b1edcbf3176fb272ae1d | 483109a721fce8ea34fd7f0fe5a655b9a86b6252 | refs/heads/master | 2020-11-26T03:36:23.199714 | 2019-12-16T14:34:58 | 2019-12-16T14:34:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 923 | cpp | ShaderEditor.cpp | #include "ShaderEditor.h"
#include <nodeeditor/NodeData>
#include <nodeeditor/FlowScene>
#include <nodeeditor/FlowView>
#include <nodeeditor/DataModelRegistry>
#include "NumberSourceDataModel.h"
namespace Studio
{
static std::shared_ptr<QtNodes::DataModelRegistry> registerDataModels()
{
auto ret = std::make_shared... |
69ec5143f4a3ff46fa045b21188e683bb4a6a8c3 | a02eb6200d0a4b628bb18c6cebb168538fa15fbb | /src/SoftVST/Source/PluginProcessor.h | 7926c6095eea71c70e9d85453da122cb6f6d0ccf | [] | no_license | hardlyrichie/SoftVST | e7ee456fbc0640726844f866f93ad997f878919c | 0ddca4ea041ad5f8ffc9bb68b21860f8e7573323 | refs/heads/master | 2021-01-06T05:56:33.239849 | 2020-04-04T09:00:39 | 2020-04-04T09:00:39 | 241,228,431 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,716 | h | PluginProcessor.h | #pragma once
#include <JuceHeader.h>
#include "SynthSound.h"
#include "SynthVoice.h"
#define ATTACK_ID "ATTACK"
#define ATTACK_NAME "Attack"
#define DECAY_ID "DECAY"
#define DECAY_NAME "Decay"
#define SUSTAIN_ID "SUSTAIN"
#define SUSTAIN_NAME "Sustain"
#define RELEASE_ID "RELEASE"
#define RELEASE_NAME "R... |
d439f5c8e04d6747e5f25f114f9a6e7a3f2b46c2 | 3f78a9da3eecc6d8e401f1cce37e054a252930bc | /[Client]MH/CharMakeDialog.cpp | 21dd088d021fa44f1f75ade09e03a86e4553b4a9 | [] | no_license | apik1997/Mosiang-Online-Titan-DarkStroy-Azuga-Source-Code | 9055aa319c5371afd1ebd504044160234ddbb418 | 74d6441754efb6da87855ee4916994adb7f838d5 | refs/heads/master | 2020-06-14T07:46:03.383719 | 2019-04-09T00:07:28 | 2019-04-09T00:07:28 | 194,951,315 | 0 | 0 | null | 2019-07-03T00:14:59 | 2019-07-03T00:14:59 | null | UTF-8 | C++ | false | false | 3,184 | cpp | CharMakeDialog.cpp | #include "stdafx.h"
#include "CharMakeDialog.h"
#include "WindowIDEnum.h"
#include ".\interface\cWindowManager.h"
#include "interface/cButton.h"
//#include "cComboBoxEx.h"
#include "interface/cStatic.h"
#include "CharMakeManager.h"
cCharMakeDlg::cCharMakeDlg()
{
m_type = WT_CHARMAKEDIALOG;
}
cCharMakeDlg::~cCharMak... |
006b78f94e9c96a5c7ce2aac60d132402f5419de | dd949f215d968f2ee69bf85571fd63e4f085a869 | /subarchitectures/conceptual.sa/branches/dora-yr4-20120620/src/c++/conceptual/components/Tester/NavWidget/NavWidget.h | 164190e4544da7855cf2eae609ba2a426c1cfa64 | [] | no_license | marc-hanheide/cogx | a3fd395805f1b0ad7d713a05b9256312757b37a9 | cb9a9c9cdfeba02afac6a83d03b7c6bb778edb95 | refs/heads/master | 2022-03-16T23:36:21.951317 | 2013-12-10T23:49:07 | 2013-12-10T23:49:07 | 219,460,352 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 562 | h | NavWidget.h | #ifndef NAVWIDGET_H
#define NAVWIDGET_H
#include <QtGui/QWidget>
#include "ui_NavWidget.h"
#include "SpatialData.hpp"
namespace conceptual
{
class Tester;
}
class NavWidget : public QWidget
{
Q_OBJECT
public:
NavWidget(QWidget *parent, conceptual::Tester *component);
~NavWidget();
public slots:
voi... |
add623033f578cdd3f2d1ecb985265eb3fd47b4e | 36e165b3d48e4b1b78e6347bf90771ab172da0cd | /Dependencies/GWCA/GWCA_DLL/GWCA.cpp | e9424e69ead603c9a9261d05728dc306b424d77e | [] | no_license | Eppa93/GWToolboxpp-2.8 | f6d5ffeec4134375a80c036106609238541f9a80 | 2e0f4aecca7b8151c2b6626419474e43359a40bf | refs/heads/master | 2021-04-27T15:50:45.427029 | 2018-03-27T18:53:05 | 2018-03-27T18:53:05 | 122,474,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,019 | cpp | GWCA.cpp | #include <Windows.h>
#include "GWCA.h"
#include <GWCA\GWCA.h>
#include <GWCA\Managers\AgentMgr.h>
#include <GWCA\Managers\CameraMgr.h>
#include <GWCA\Managers\ChatMgr.h>
#include <GWCA\Managers\CToSMgr.h>
#include <GWCA\Managers\EffectMgr.h>
#include <GWCA\Managers\FriendListMgr.h>
#include <GWCA\Managers\GameThreadM... |
42f65b85b08c297f032bf6574d5e992fcde96460 | c1b62a702aed2cca7268400e98d83ec3a084bed3 | /guess_number.cpp | f16af9a0a2c8203fee8f1c2343bda2d57bef2c2d | [] | no_license | Pallavi-114/Hacktoberfest-PR-for-beginners | 9c541acb8192a59bfc3ea6dfee96cee7fd739b75 | 8840deb8811270032780949523753e18995efdda | refs/heads/master | 2023-08-30T07:13:49.414440 | 2021-10-31T15:34:45 | 2021-10-31T15:34:45 | 423,186,941 | 0 | 0 | null | 2021-10-31T15:33:41 | 2021-10-31T15:33:41 | null | UTF-8 | C++ | false | false | 862 | cpp | guess_number.cpp | // guess_number.cpp
// Author: AlexLunaP
// GitHub: https://github.com/AlexLunaP
// Description: This program is a simple game where the user has to guess a number (between 0 and 999).
#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main(){
std::srand(time(0)); //setting the seed for ... |
18b4d4bbb71cee1fcbcb98332fbaf83407a047f9 | 46911fea9371a994a7c0353571890472f415c75b | /question1_junecookoff.cpp | 344580b074e015bc0f8fac3934ddad006ad1e09a | [] | no_license | Harsh2098/Kickstart-Solutions | f28fa7a4addf1d879cbbacc767426c753b70e90f | 3990ee45a9fe3466532860ff06baa1b09da2bbb7 | refs/heads/master | 2020-06-16T14:15:07.532273 | 2019-07-07T03:21:54 | 2019-07-07T03:21:54 | 195,605,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | cpp | question1_junecookoff.cpp | #include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
#define INF 1000000000000007
#define MOD 1000000007
#define pb push_back
#define sync ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
using namespace std;
template<typename T>
void prn(T first) {
cout << first << "\n";
}
int ma... |
ff21ec6762c0fcc77d53d68165ae139a8f420fac | 7b6641de8c194ca01ed4fa0e44ee1de5f1fa5fdf | /Bus_Reservation_System.cpp | 72e2e609598de6d928ccb453eed749ef3a4def83 | [] | no_license | Sohanpatnaik106/Bus-reservation-system | deb7531254b32f81c2fa03e3eb38b1b9d24401d5 | b911ace6503ea5ec72ead13b25e4640b39ea57c8 | refs/heads/master | 2022-07-25T22:38:42.553595 | 2020-05-17T05:25:58 | 2020-05-17T05:25:58 | 264,589,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,954 | cpp | Bus_Reservation_System.cpp | #include"bits/stdc++.h"
using namespace std;
class BusCompany {
private :
string busNo;
string driverName;
string arrivalTime;
string destinationTime;
string arrivalDestination;
string finalDestination;
vector<string> seat;
int noOfSeatsAv... |
da0799c3992a9be1ac4191b515467e72ff460d6c | 30a3a74b906f5ddf4ecff34ab028bc480a95e78c | /gmock/leetcode/LargestNumber_179.cpp | 3d3190bb06a244c6e805505b23fb7ddea4df168d | [] | no_license | Junch/StudyCppUTest | 3a6d0f5305de4b45f2a1b73bfdc491a5f25fe2cb | b12cbbb992e3cde0593855bf0793431086edbd63 | refs/heads/master | 2021-01-15T15:50:17.580680 | 2016-11-21T09:14:50 | 2016-11-21T09:14:50 | 8,309,383 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,353 | cpp | LargestNumber_179.cpp | //
// LargestNumber_179.cpp
// leetcode
//
// Created by Jun on 16/2/6.
//
//
#include <gmock/gmock.h>
#include <vector>
#include <string>
#include <sstream>
using namespace std;
using namespace testing;
namespace LargestNumber {
class Solution {
public:
string getDigits(int m){
stringstream ... |
657189a745e360b50a4002ddaeab30ace05b822c | a55372600d9da8c8b857bb2b8257c0b887276019 | /core/olap/perftests/queue-perf/queue-perf.cpp | 77805bfedfd5b454493e1077b987de8105a57313 | [] | no_license | epfl-dias/proteus | 75ae8036f19b9a41f295903233f08beecd28fa86 | 575c0bcfc5d280d2d1c98c0a907302c5ad9d5b22 | refs/heads/main | 2023-09-03T16:23:07.999208 | 2023-08-18T22:31:29 | 2023-08-19T00:19:09 | 158,891,236 | 8 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 18,691 | cpp | queue-perf.cpp | /*
Proteus -- High-performance query processing on heterogeneous hardware.
Copyright (c) 2021
Data Intensive Applications and Systems Laboratory (DIAS)
École Polytechnique Fédérale de Lausanne
All Rights Reserved.
Permission to u... |
967a34d268b5367787d545ea110169d81a6a4ec4 | 07b4c79169c37c6aa937aa9243e5428cb5571676 | /CS3505_Server/database.h | 71600c4db2090370da5e874e0b61437e57b2aa88 | [] | no_license | nrudh/CS3505Server | c6d884364a274605569dfea014af16417b29aac4 | 1317263764697a5e97f87dea2cd7ffc2f31814da | refs/heads/master | 2021-01-10T05:48:59.419325 | 2015-12-14T21:28:28 | 2015-12-14T21:28:28 | 47,367,218 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 853 | h | database.h | #ifndef DATABASE_H
#define DATABASE_H
#include <string>
#include <QPluginLoader>
#include <QCoreApplication>
#include <QtSql>
#include <qstring.h>
class DataBase
{
public:
QSqlDatabase* db;
QSqlQuery* query;
QMutex *mutex;
DataBase();
std::string runCommand(QList<std::string> command);
std::st... |
45ce86243398d21bb1ffeb9aa2cfdbf1aa9a8ed9 | 081c75d11a4a8eb139f1685f087d9cc85a4fa072 | /include/nmtools/testing/data/array/clip.hpp | 16693a328fa8b3edb7e9e8651f57d8dcafab4aeb | [] | no_license | alifahrri/nmtools | c0a9d63b4101193b484f3e05bce606d58c3b85e2 | fa8a45bc3ddb373b7f547dfea3c2c7bea3056e06 | refs/heads/master | 2023-08-28T19:36:41.814434 | 2023-08-20T08:28:40 | 2023-08-20T08:28:40 | 190,819,342 | 7 | 0 | null | 2023-08-20T08:28:41 | 2019-06-07T22:43:35 | C++ | UTF-8 | C++ | false | false | 2,277 | hpp | clip.hpp | #ifndef NMTOOLS_TESTING_DATA_ARRAY_CLIP_HPP
#define NMTOOLS_TESTING_DATA_ARRAY_CLIP_HPP
#include "nmtools/testing/testing.hpp"
#include "nmtools/testing/array_cast.hpp"
namespace nm = nmtools;
namespace na = nm::array;
namespace view = nm::view;
namespace kind = na::kind;
NMTOOLS_TESTING_DECLARE_CASE(array, clip)
{
... |
a91968f4c2a5a980535543460fbf227dae8a4e57 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-fully/77/U | e1a81e7c23ed5b598e044db5f2ed414383a2e602 | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 531,284 | U | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
37e3c14e7023303b76c3b323b9c90f9f855050d4 | c46b8445410c4dc6199f7c3274dcf120b6709818 | /Matrix/matrix/Matrix.cpp | 226e1cd26c34b5e51ba7dc28867595499251d0a8 | [] | no_license | j8xixo12/My_test_site | 97889fa610a104f3e10b10ae97f114d34b016ef5 | 7f57d8b777471cf06127aba17373f876921a2665 | refs/heads/master | 2020-12-06T23:15:11.269159 | 2020-01-30T03:42:50 | 2020-01-30T03:42:50 | 232,577,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 561 | cpp | Matrix.cpp | #include "Matrix.hpp"
Matrix&& operator+ (Matrix &lhs, const Matrix &rhs) {
lhs += rhs;
return std::move(lhs);
}
Matrix&& operator+ (Matrix &&lhs, const Matrix &rhs) {
lhs += rhs;
return std::move(lhs);
}
std::ostream & operator << (std::ostream &ostr, Matrix co... |
0c00bb84bf35201486dd3f9308fb0665ebeb0c11 | 3b04925b4271fe921020cff037b86e4a5a2ae649 | /windows_embedded_ce_6_r3_170331/WINCE600/PRIVATE/SERVERS/SMB/LOADER/startsrv.cpp | 89f4c5be2823626ff4cc1dbe1175715033a25bee | [] | no_license | fanzcsoft/windows_embedded_ce_6_r3_170331 | e3a4d11bf2356630a937cbc2b7b4e25d2717000e | eccf906d61a36431d3a37fb146a5d04c5f4057a2 | refs/heads/master | 2022-12-27T17:14:39.430205 | 2020-09-28T20:09:22 | 2020-09-28T20:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,232 | cpp | startsrv.cpp | //
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft shared
// source or premium shared source license agreement under which you licensed
// this source code. If you did not accept the terms of the license agreement,
// you are... |
1d15031f00ed62ae25d45b5fc00590b7d37df5c5 | 4599f63c8fd470e6099eb86b4cdc94d3e4ffcd98 | /app_ndn-cpp/data_sender.cpp | 7d64a74fdd4f7a61a13b0532dfd95f2e1cf965f5 | [] | no_license | sijiahi/NDN_Qt_App | 71284d8dcb418f51b991b756687dd353b03a379d | 753ee036496ded3724f218ff76d54a928a964bac | refs/heads/main | 2023-04-01T02:49:56.754871 | 2021-04-12T12:02:19 | 2021-04-12T12:02:19 | 357,176,205 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | cpp | data_sender.cpp | #include "data_sender.h"
data_sender::data_sender()
{
}
void
data_sender::run(){
try{
face.processEvents();
}
catch (std::runtime_error& e) {
std::cout<<"Errorin data sender"<<std::endl;
}
}
|
c81b6bfc2f18faa2d4da1b29b4b8b5c53b8f07d1 | aa4ea5bc3efc6ca0d1d8e90aa76933ce73e89cc2 | /Game02_Soccer.h | d48a639a325df0551114beb7a7460c726a444666 | [] | no_license | hoseogame/20142333- | d3be8e23fc14e93a1b2ebe9fb5d0e7fb1383b31a | 9018be9bc7e81c669667f1fd6722567ce04371d7 | refs/heads/master | 2020-12-24T04:23:37.713755 | 2016-06-14T02:21:38 | 2016-06-14T02:21:38 | 61,083,319 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,703 | h | Game02_Soccer.h | #pragma once
#include "system.h"
#define StageMax 2
class Soccer : public System
{
public:
///------- init
Soccer();
virtual ~Soccer();
///-------- System
void KeyInput();
void Init();
void Init(int, int, int, int, int, int, int, int);
void Render();
void Update();
int Get_Instance(int);
private:
///-... |
895dc353792dfd57bea1b20613a6a6c4b9109fb3 | 9b79ccd797ea338ac70d2dc457c06cc95b66e0b1 | /78-Subsets/main.cpp | a6ee23ed494f7290abe6a299e270145e1449e5e3 | [] | no_license | mosqd/leetcode | b3629c47ff80f2752d4fa4af9fa58890641fc464 | d44f48d3b89b5b22f78f0ebb363a4e4a72ebc777 | refs/heads/master | 2021-07-26T00:14:17.338268 | 2021-07-12T12:41:22 | 2021-07-12T12:41:22 | 225,331,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 938 | cpp | main.cpp | /**
Given a set of distinct integers, nums, return all possible subsets (the power set).
Note: The solution set must not contain duplicate subsets.
Example:
Input: nums = [1,2,3]
Output:
[
[3],
[1],
[2],
[1,2,3],
[1,3],
[2,3],
[1,2],
[]
]
*/
class Solution {
public:
vector<vector<int>> subsets(... |
0d2334ac7d722f749a691aa1f461e79bafb50ea4 | 21b237d21900049538179bf2bdc8a72e3541ab21 | /BitMagic/BrianKerningan.cpp | 525e015885b9b1c89db930683299b6539d06e1b4 | [
"MIT"
] | permissive | SagarMedtiya/DSA-in-c-plus-plus | ed7d84ba6b4f534e5f0831288a08f80366b40782 | eae528d97bdbbb2d3e5ecd3e91be346503d0c8af | refs/heads/main | 2023-06-27T01:27:48.377725 | 2021-07-29T18:48:16 | 2021-07-29T18:48:16 | 382,650,712 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 204 | cpp | BrianKerningan.cpp | #include<bits/stdc++.h>
using namespace std;
int countsetbit(int n){
int res = 0;
while(n>0){
n= (n&(n-1));
res++;
}
return res;
}
int main(){
int n;
cin>>n;
cout<<countsetbit(n);
return 0;
} |
ccb5b31f56ac51a613060a39cab5f832c130b03b | b65f475d1a23e2c56a7798d2facb530fecdac082 | /mymobkit/mymobkit/myMobKit/src/main/jni/libx264/encoder.cpp | 5e814e62ed1a5195517cff4007e2fe91e6653000 | [] | no_license | KenYinkz/myMobKit | a56c0e19550380a1ef04148ffeb4a6d0717a52a5 | 86c2bd085d41092f66f4b05379eeb0588f15db5e | refs/heads/master | 2021-01-13T15:28:25.315588 | 2016-11-20T04:45:53 | 2016-11-20T04:45:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,356 | cpp | encoder.cpp | #ifdef ANDROID
#include <jni.h>
#include "helper.h"
#include "h264encoder.h"
#undef JNIEXPORT
#define JNIEXPORT __attribute__((visibility("default")))
#define JOW(rettype, name) extern "C" rettype JNIEXPORT JNICALL \
Java_com_yacamera_p2p_NativeAgent_##name
H264Encoder *myAVC = NULL;
JOW(void, initVideoEnc... |
0130106f5e19f26d903f01dce04526bb366dab5c | 022ddbfd08623b855f50331861309d5429753d99 | /比赛/河南工大校赛重现/小天使改名/main.cpp | 0b75da4f5d0ad91ec72f3c80131087ac92b289f1 | [] | no_license | xluos/ACM | 06d6881dac8c12e6e0ded66fc5da43974e3520e7 | e90707178cc203e0e36092dc73bdc807c7daa246 | refs/heads/master | 2020-06-21T07:20:14.584736 | 2018-03-20T13:26:53 | 2018-03-20T13:26:53 | 94,203,765 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 704 | cpp | main.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
using namespace std;
int main()
{
char s[1004],s2[1004];
int w;cin>>w;
getchar();
while(w--)
{
scanf("%s %s",s,s2);
int l=strlen(s);
if(!strcmp(s,s2))
{
sort(s,... |
eaf713684a2abf08c0ac8df323ef73c6ad5602be | 3f39de71cc3574d7f083e335ff02826b6bb0037f | /NotifyCenter/stack7.h | 8ecf179da4d053019656277d9140a9b1312636f8 | [] | no_license | realayi/NotifyCenter | de6b09602261507b9d63a555741316681e43d40e | 1b119edde23f57127cf44abebb272ea3b9d18f71 | refs/heads/master | 2020-05-17T03:42:00.625149 | 2015-01-29T06:42:51 | 2015-01-29T06:42:51 | 29,522,035 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,751 | h | stack7.h | #pragma once
#include <deque>
#include <stdexcept>
#include <memory>
template <typename T,
template <typename ELEM,
typename = std::allocator<ELEM> >
class CONT = std::deque>
class Stack7 {
private:
CONT<T> elems; // 元素
public:
void push(T const&); // push 元素
void pop(); // pop 元素
T top() const; // 传回 Stack7 的顶... |
6235d8c88502bac224b7d1cd96bc23940c03515d | d623301f58ed390ebb2f7e8bb09cb6fb7f0a8af4 | /pb-common/Utils/maths.hpp | fdd443b1f5b2d485df6bece1d6b1e3f49c2444be | [] | no_license | prisme-studio/pb-common | 2d64899f69408935466baf81152b7b925e476372 | 6de66c6745ca5a684706f611fc4ffe1fe6df63d0 | refs/heads/master | 2021-01-09T04:30:25.757517 | 2020-03-16T17:09:12 | 2020-03-16T17:09:12 | 242,246,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,221 | hpp | maths.hpp | //
// maths.hpp
// Protocol Bernardo
//
// Created by Valentin Dufois on 2019-09-18.
//
#ifndef maths_h
#define maths_h
/// The default scalar type to use throughout the application
///
/// The type is defined as a macro to conserve the possibility of
/// easily switching the entire app to another scalar type.
#de... |
1c6db835d054395e54701076f31ae279279faa16 | 218adf234399b15ed99efb2fce7ed6cc880f5c38 | /Data-Structure/CSIE/hw2-VetorMultiply/HW2_103403513_v2.cpp | 4a11986fadebecc86399a771464af113b72abc2f | [] | no_license | e212156822000/CollegeHomeworkCollection | eb5a9305fc349b0624eb678a00b42df475042a60 | e392a99c830ec5700c9a7ddd0ba4241d5326087f | refs/heads/master | 2021-01-17T04:36:05.480401 | 2017-11-01T10:58:02 | 2017-11-01T10:58:02 | 56,417,584 | 1 | 0 | null | null | null | null | BIG5 | C++ | false | false | 4,055 | cpp | HW2_103403513_v2.cpp | #include<iostream>
#include<vector>
using namespace std;
struct sparce{
int row;
int col;
int val;
};
vector< vector<int> > vectorA; // 2D array
vector< vector<int> > vectorB; // 2D array
vector<sparce> sparceA;
vector<sparce> sparceB;
vector<sparce> sparceC;
vector<sparce> transform_sparce_row_major(int,int,vect... |
c2fbdd7d2b9a7cffdeba404a46f57d142126c64f | 762622feb719631404255b6800e51044dd325c8e | /codeforces/connected.cpp | 0bd83a0384d150e8fb4480df0b5fb8dd2e29576c | [] | no_license | SudShekhar/Programming | 31b96a7ab6251dd8f8a1db1f2feb90cfc9b2f9e8 | f240d84aeaa0ebb933e95bbb932a6258c24247cc | refs/heads/master | 2020-06-02T09:23:24.785376 | 2014-12-12T16:48:02 | 2014-12-12T16:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,870 | cpp | connected.cpp | // Standard includes
#include<cstdio>
#include<iostream>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<limits.h>
#include<string.h>
//Data Structures
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<map>
#include<utility>
#include<stack>
#include<queue>
using namespace std;
... |
6de34686bb42fbe73748bac1e3afeff23d6db7ba | 56d59aa91bc5334f4b267d1486df4ac5ba4b0a47 | /pon-polja3.cpp | 182c3209bbd243300b92b70c7503d64ed40ee8ae | [] | no_license | neven14/pon-polja | 59c3b73451d217c0e4eb3746b3ab1796b0f2d699 | 3935c37c8af381187e70995dcb4243d62e54abd4 | refs/heads/master | 2021-01-14T16:39:44.727321 | 2020-02-24T08:28:50 | 2020-02-24T08:28:50 | 242,683,253 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 256 | cpp | pon-polja3.cpp | #include <iostream>
using namespace std;
int ap(int p){
p%2=0;
return x;
}
int an(int n){
n=1;
return n;
}
int main(){
int a;
cout<<"Unesi a: ";
cin>>a;
system("Pause");
return 0;
}
|
c6f634bc82e7631d6c7a0c0059611d88caa35e51 | 6b67ec0f8633e4dfb19d5771fa051b4f6a398993 | /usdsCPP/Autotest/Include/unitTest/base/usdsErrorTest.h | 61c7d3802c9f60bd102711f4814dae92bfcb1ac7 | [] | no_license | rolandocampo/USDS | 6c825c1f388312ea662c8866e410a5be487421d8 | 11a612ccd7e558a7b82853602335a7a3b17776c7 | refs/heads/USDS-1.0 | 2021-01-15T19:35:23.569617 | 2016-06-09T14:46:56 | 2016-06-09T14:46:56 | 64,934,724 | 0 | 0 | null | 2016-08-04T12:57:02 | 2016-08-04T12:57:02 | null | UTF-8 | C++ | false | false | 299 | h | usdsErrorTest.h | #ifndef USDS_ERROR_TEST_H
#define USDS_ERROR_TEST_H
#include "usdsAutotest.h"
class ErrorTest
{
public:
ErrorTest() {};
~ErrorTest() {};
void runTest(int32_t number);
private:
void test_1();
void test_2();
void test_3();
void test_4();
void test_5();
int32_t testNumbers;
};
#endif |
e8fe477ec90d0d8d2b9ab41832f190ce361ce11a | f6280ac708d4792c1ac82943c99defca455dd901 | /ADDREV.cpp | 12c05a9bfc5a93c5f43ddc1d7f05440ea605d9db | [] | no_license | UchihaDoThTrong/SPOJ | 4e52e866ca824d653ec0242eaca76c3ddcdc1989 | e35b8da07dae3c525ea23e03d0e674372ef5e99b | refs/heads/master | 2023-07-08T17:30:20.098156 | 2013-06-21T15:31:52 | 2013-06-21T15:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | cpp | ADDREV.cpp | #include <iostream>
#include <algorithm>
using namespace std;
int reversed(int inp)
{
char buff[20];
sprintf(buff,"%d",inp);
string tmp(buff);
reverse(tmp.begin(),tmp.end());
return atoi(tmp.c_str());
}
int main()
{
int T;
scanf("%d",&T);
while(T--){
int num1,num2;
scanf("%d%d",&num1,&num2);
printf(... |
4b11c31a15b7a20ff1cee5d826b3c22901782afb | fdd6f4bf703a9535515a5c6c6293f0ac610365d4 | /04/ex01/RadScorpion.hpp | 85bbec29cc70daa59d542a678d396ba32e5f00f5 | [] | no_license | AlexJeannot/CPP | 2f0ea4cff4a890f084c5b1967b45b9cfc6cf422d | 37b365f1ece7f3ebf48b56354b7584c4b1a94012 | refs/heads/master | 2022-12-04T14:15:52.855564 | 2020-08-27T16:51:34 | 2020-08-27T16:51:34 | 265,583,402 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | hpp | RadScorpion.hpp | #ifndef RADSCORPION_HPP
#define RADSCORPION_HPP
#include <iostream>
#include <string>
#include "Enemy.hpp"
class RadScorpion : public Enemy
{
public:
/* Constructors and destructors */
RadScorpion();
RadScorpion(const RadScorpion & other);
~RadScorpion();
/* Operators over... |
df58d7c92566de22b575ef90816a95e27dc9cb86 | 5fe69ed0378e653011304f713a506b441b5b1c9b | /code/FramePageFinal.cpp | acff6b4228aa859ad3460db63428f65219571671 | [] | no_license | midiway/WebPDF | 3675c2d8d6a413f2cc9dfcec811d51fdf2ff56d3 | dcada14574df10b4086ce8efd6c168c3c457a7cc | refs/heads/master | 2016-09-06T20:56:03.935599 | 2015-06-30T02:01:09 | 2015-06-30T02:01:09 | 2,390,883 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,254 | cpp | FramePageFinal.cpp | #include "stdafx.h"
#include "FramePageFinal.h"
#include "g_engine.h"
CFramePageFinal::CFramePageFinal()
{
}
void CFramePageFinal::OnPageLoad( sciter::dom::element dom_frame )
{
m_dom_frame = dom_frame;
// Final values
PCTSTR path_output;
bool dblinkOK;
mng_Export->PDFFinalVars(path_output, dblinkOK);
// Sc... |
8017eb476949a8ebdcbf92660b47debb1c33caa6 | c8278b14d1e7a576014513148a356909a00fa2fa | /myrrh/python/seqan/string.h | 1bb7f2c24675f9aebcf0a14a4f85cdf7c9c0d29f | [
"MIT"
] | permissive | JohnReid/myrrh | 7a195131c25a1017864cc1fa297a1bdb366cc2db | 09dc97c739232c03493e2344e64735b30eea5f99 | refs/heads/master | 2021-01-10T16:36:42.543512 | 2015-09-15T15:04:51 | 2015-09-15T15:04:51 | 8,554,330 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,421 | h | string.h | /** Copyright John Reid 2009
*
* \file
* \brief Exposes seqan strings to python.
*/
#ifndef _MYRRH_PYTHON_SEQAN_STRING_H_
#define _MYRRH_PYTHON_SEQAN_STRING_H_
#include <myrrh/python/seqan/defs.h>
namespace myrrh {
namespace python {
namespace seqan {
/**
* Expose a string to python.
*/
template< typename St... |
ccfb9c3b5d5d697e85ecfbb92c13cb2635fa15bf | 38b0630c1fd367b071c5161f43715e937e0333da | /tests/include/voxelizer_utils.h | 76b9bec1ada963c307fe951e5de43e379d48d8c5 | [
"MIT"
] | permissive | metorm/Voxelizer | 9d02e4709620e1518e974fabe653b93ee0c789ab | 06cc77a34f442262c71649cea57b1276b38a592c | refs/heads/master | 2021-01-14T08:34:34.447220 | 2015-07-24T02:19:40 | 2015-07-24T02:19:40 | 39,321,883 | 0 | 0 | null | 2015-07-19T04:04:56 | 2015-07-19T04:04:56 | null | UTF-8 | C++ | false | false | 2,029 | h | voxelizer_utils.h | #ifdef _WIN32
#pragma once
#endif
#ifndef VOXELIZER_UTILS_H
#define VOXELIZER_UTILS_H
#include "voxelizer.h"
#include "vtkPolyData.h"
#include "vtkCellArray.h"
#include "vtkPolygon.h"
#include <cmath>
#include <cstdint>
#include <cfloat>
#define UTIL_RES 256
struct intList
{
uint centre, left, right, up, down, i... |
1b8614e99a4e8b3744d869b6d26bd15c94d47704 | 5c334697577581550d0ae6f99f07d6755b5d3dc0 | /2017校招真题练习/网易-小易喜欢的单词.cpp | 7e6fd6aac188fbbb75d5738d26fcd1913a0f7f13 | [] | no_license | aruyuna9531/my-nowcoder-codes | 329497648a992a36f1bbf1e3ae2807e8626e3932 | 95546cf55c6413580abd0e228793439877f32613 | refs/heads/master | 2020-03-19T11:42:19.551722 | 2018-06-07T15:43:16 | 2018-06-07T15:43:16 | 136,471,090 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,419 | cpp | 网易-小易喜欢的单词.cpp | /*
小易喜欢的单词具有以下特性:
1.单词每个字母都是大写字母
2.单词没有连续相等的字母
3.单词没有形如“xyxy”(这里的x,y指的都是字母,并且可以相同)这样的子序列,子序列可能不连续。
例如:
小易不喜欢"ABBA",因为这里有两个连续的'B'
小易不喜欢"THETXH",因为这里包含子序列"THTH"
小易不喜欢"ABACADA",因为这里包含子序列"AAAA"
小易喜欢"A","ABA"和"ABCBA"这些单词
给你一个单词,你要回答小易是否会喜欢这个单词。
思路:
(1)存在非大写字母的输出不喜欢,结束
(2)存在连续双字母的输出不喜欢,结束
(3)xyxy子序列,由于x和y可以一致,那么首先
[1]有同一个字母... |
6e099135a906700a3ac48380838e98aea543ab4f | 1c52c7480bb8ba9b550bb0edd20e2923b7e175ce | /netlib/Socket.h | 74099d2856af2b0e246cc011d5e5af7be9a1aa50 | [] | no_license | ythunder/yushu | 0e4bf5326a241a29754b80cd2bda97f83912493e | ae05bedcf83b39a897cbb0bbd5995a3abc0bf829 | refs/heads/master | 2021-01-10T01:09:19.843255 | 2017-02-25T07:12:29 | 2017-02-25T07:12:29 | 46,052,937 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | h | Socket.h | /*************************************************************************
> File Name: Socket.h
> Author:
> Mail:
> Created Time: 2016年11月09日 星期三 18时32分47秒
************************************************************************/
#ifndef _SOCKET_H
#define _SOCKET_H
#include <sys/types.h>
#include <string>
cl... |
73bcedef78a913b3038e6cd1f3b9a920e05e9800 | d73e32c38bf9a59171ec2b4cdb9a48c6bfe2e5bf | /Block.cpp | 7d20a76c92c491cb60c21e0c24879916eaa7ea30 | [] | no_license | wenjunz/3d_snake | 7e400751d05f5aa2170f6d2eb3b8ac356d60e475 | 50bf32fe23d39a0b9d73416136a9e964535af8c5 | refs/heads/master | 2020-12-24T15:22:53.436130 | 2013-12-19T01:37:37 | 2013-12-19T01:37:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,104 | cpp | Block.cpp | #include "Block.h"
#include <GL/glut.h>
#include <math.h>
Block::Block(int i)
{
snake = false;
bonus = false;
dead_snake = false;
index = i;
}
Block::~Block(void)
{
}
void Block::Draw(void)
{
/*glColor3f(1,0,0);
glBegin(GL_QUAD_STRIP);
glVertex3f(-0.5,-0.5,0);
glVertex3f(-0.5,0.5,0);
... |
d9da3426383b581c9665541444488719ea9703d2 | 919dcd13b0020ef1be4b6eb41ff77b9124d78825 | /20190501/textQuery.cc | 425ff7242c8f8af471dfd823658a4b51c3961802 | [] | no_license | 15Venne/LinuxCPP | 5c2da00c0124cc2c2d80559a9072ff64005f1707 | 8d5d8505fdbab1af3c1e9368f1d85c294d1f1502 | refs/heads/master | 2020-05-07T14:44:01.169125 | 2019-05-17T14:30:44 | 2019-05-17T14:30:44 | 180,606,490 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,866 | cc | textQuery.cc |
#include<iostream>
#include<set>
#include<vector>
#include<string>
#include<map>
#include<memory>
#include<fstream>
#include<sstream>
#include<algorithm>
using std::cout;
using std::endl;
using std::set;
using std::string;
using std::vector;
using std::map;
using std::shared_ptr;
using std::ifstream;
using std::istr... |
8914e9ac547de774428ffa623580886121143d76 | d9e14b73ae5ed920b248adca1f40c5dc6d22d542 | /gui/rps/MaevePanel.h | f10fd6cad88d0a1206be773857438f644a0d6660 | [] | no_license | michinat/RockPaperScissor | db0e20d9107b24ff6fc90b8dd5bcc76b3e5eac67 | 24d69da2dfef8e9e72155f8f3ccc263c1853c376 | refs/heads/master | 2020-03-29T20:57:45.673860 | 2018-11-07T08:11:32 | 2018-11-07T08:11:32 | 150,341,254 | 2 | 3 | null | 2018-10-22T17:39:07 | 2018-09-25T23:30:22 | C++ | UTF-8 | C++ | false | false | 644 | h | MaevePanel.h | /**
CraZ CoderZ RPS
Maeve Panel subclass
*/
#pragma once
#include "RpsPanel.h"
#include <wx/stattext.h>
class MaevePanel : public RpsPanel {
public:
MaevePanel(wxPanel * mainPanel);
void Init(wxPanel * mainPanel) override;
wxStaticText * getMaevePredictedScoreText() { return maevePredictedScoreT... |
b74260527af87236985dec6bcdbb36cd1ab8a8c8 | d7eda878e722afc160e098126e4c39649e124746 | /include/BinReader.h | 9d0960e51a2e8e19af47a4d35375e9c06da12268 | [] | no_license | anydream/ArmInt | 788ce1554d526e6fe8a4044d22bcc42ea45c5075 | ab14c1f975f0b6d6de48ba58054c0724095c6abb | refs/heads/master | 2021-07-10T01:21:25.560160 | 2017-10-11T14:55:09 | 2017-10-11T14:55:09 | 106,486,959 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,373 | h | BinReader.h | #pragma once
#include <stdint.h>
#include <string.h>
//////////////////////////////////////////////////////////////////////////
// 二进制数据读取器
class BinReader
{
public:
explicit BinReader(const void *ptr, size_t len)
: Buffer_(static_cast<const uint8_t*>(ptr))
, Length_(len)
{}
bool ReadBytes(size_t sz, void *p... |
33a7926d64cde4a3646793e8c6181244f710c20a | 2905e6745a67004580aa70a3fa246aa47c0eee97 | /netsim/tools/ssfnet-xlate/code_generator.cc | d69073f33dc8393cc9aada9f5b07f9986108ae66 | [] | no_license | summonersRift/primogeni | 32cbf949f62e6442d0748258dfdff2dd63199a3b | 763cf746dcd7c9c4d3d20d328899cb96efe6da69 | refs/heads/master | 2020-12-25T00:08:58.727433 | 2015-01-30T18:13:36 | 2015-01-30T18:13:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 100,260 | cc | code_generator.cc | #include "code_generator.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <sys/stat.h>
#include <stdint.h>
#include <map>
#include <string>
#include <iostream>
#include <locale>
#include <vector>
#include <set>
#include <list>
#include "primex_config.h" // global configuration ... |
8692c3f2047c925adc89653df48a8b1bce45b8dd | 29c6c8f614715cee9d5362b138801339be18806e | /Source/System/CommonTools.cpp | 87edb62fbbd37ecfb7a147af21eb5c7dcb493b83 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | sierra-zero/Vulkan2DRenderer | b18ee7254f28f883e6b9cb6bb9990c8f8274ab63 | 5110a2422dfbf0bf5cfb1d3e13c5b97d5b80243e | refs/heads/master | 2023-02-21T10:33:55.496596 | 2021-01-13T00:09:35 | 2021-01-13T00:09:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 653 | cpp | CommonTools.cpp |
#include "Core/SourceCommon.h"
#include "System/CommonTools.h"
std::vector<VkExtent2D> vk2d::_internal::GenerateMipSizes(
glm::uvec2 full_size
)
{
std::vector<VkExtent2D> mipmap_levels;
mipmap_levels.reserve( 16 );
VkExtent2D last { full_size.x, full_size.y };
mipmap_levels.push_back( last );
while( last.wi... |
e9bd63ea0691e942e707707cc90ed93ab18453c4 | 343553b8d77a87e2fe42d448bed2b8436b45842e | /UC-Apex-Remastered/Util.cpp | 1301c8d30ed53eab4db30612579506dc19dbae32 | [] | no_license | METAMONDESU/UC-Apex-Remastered | fc6988b0f503b4269148347941069d1e08c0e5bd | 9e824c274dd5d2426a27fa55b5b78b94f48caa4d | refs/heads/main | 2023-08-10T09:49:08.691077 | 2021-09-16T10:35:54 | 2021-09-16T10:35:54 | 408,416,796 | 1 | 0 | null | 2021-09-20T11:31:14 | 2021-09-20T11:31:14 | null | UTF-8 | C++ | false | false | 3,628 | cpp | Util.cpp | #include "Util.h"
#include <random>
#include <ctime>
std::string Util::RandomString(const int len)
{
const std::string alpha_numeric("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890");
std::default_random_engine generator{ std::random_device{}() };
const std::uniform_int_distribution< std::string:... |
a383d785bd796a513a4ee634bf32bd024ebbc1ac | b88af1bf6ed92aababbc8423fe61607bffe9c9a6 | /test/search/433_minimum_genetic_mutation_test.cpp | 0d855f902e2d6351d79e96ea1aea45f71ac81af1 | [] | no_license | long-gong/leetcode | 0d84b5213e4437e8334ac3920ccf364ef31bacaa | afc756dd881dfd1447e410668b2359f646d17753 | refs/heads/master | 2020-03-25T19:51:01.822018 | 2018-10-09T05:33:29 | 2018-10-09T05:33:29 | 144,103,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 608 | cpp | 433_minimum_genetic_mutation_test.cpp | //
// Created by saber on 8/25/18.
//
#include <433_minimum_genetic_mutation.hh>
#include <gtest/gtest.h>
TEST(MinimumMutationsTest, Solution01)
{
Solution sol;
std::vector<string> bank;
bank = {"AACCGGTA"};
EXPECT_EQ(1, sol.minMutation("AACCGGTT", "AACCGGTA", bank));
bank = {"AACCGGTA", "AACCGCTA", "AAACG... |
467fc71f5b94d5ec9727e9953557af92e4a06c5e | 65971f95ee6228b2a575762db9235c3d579d0c3d | /bench/run.cpp | 32517f2d0f16d8ae45c61c19cea45236befdf282 | [
"ISC"
] | permissive | tangrams/geojson-vt-cpp | a0fef0659d11c69021b868ecf7595a58da39fcbb | 2c25bacd35149f2dae2b97ad6c078d1514241b0f | refs/heads/master | 2021-11-26T14:58:38.337786 | 2017-02-07T17:32:20 | 2017-02-07T21:17:11 | 41,071,118 | 1 | 7 | ISC | 2021-07-31T22:37:40 | 2015-08-20T02:33:32 | C++ | UTF-8 | C++ | false | false | 1,358 | cpp | run.cpp | #include <mapbox/geojson.hpp>
#include <mapbox/geojsonvt.hpp>
#include "util.hpp"
#include <fstream>
#include <iostream>
int main() {
Timer timer;
const std::string json = loadFile("data/countries.geojson");
timer("read file");
const auto features = mapbox::geojson::parse(json).get<mapbox::geojson:... |
07d751941660dd6d561c4ddd9f81a5847f7278dd | 078a75babf7a54138a09d0d3ee8e8e20242028a6 | /cn/C++/question/___Offer_40____k____LCOF.cpp | fdb9558fd4b95249518e22db33d9cca8cc160753 | [] | no_license | FuChaolei/algorithm_ago | 142e3772212342279187a763a6880612317cf1d1 | b8806e2b06fea14e384fe996bca8771ca4574127 | refs/heads/main | 2023-07-30T15:10:02.803531 | 2021-09-23T15:17:26 | 2021-09-23T15:17:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | cpp | ___Offer_40____k____LCOF.cpp | // @algorithm @lc id=100301 lang=cpp
// @title zui-xiao-de-kge-shu-lcof
#include <bits/stdc++.h>
#include <iostream>
#include <vector>
#include <string>
#include "algm/algm.h"
using namespace std;
class Solution
{
private:
void quickSort(vector<int> &arr, int l, int r)
{
}
public:
vector<int> getLeast... |
81276782cb870ffd9ca409138b36d9404a108d61 | e5a3d532ba5d7e7fd95ea02300f6ecb46354d408 | /SwapNodesinPairs.h | 865d9456f978e6c741e8d6beb6d8badbf7ce13b9 | [] | no_license | luoskdev/LeetCode | 5fdb905bef3954cf772c418b9c99cb372d129257 | 60dd640e9d78435934a7eb3cfc17600a407e211f | refs/heads/master | 2021-01-25T03:48:52.294544 | 2013-11-05T09:37:57 | 2013-11-05T09:37:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | h | SwapNodesinPairs.h | /**************************************
* Author : luoshikai
* Version : 1.0
* Date : 2013-10-10
* Email : luoshikai@gmail.com
*************************************/
/**************************************
* Given a linked list, swap every two adjacent nodes and return its head.
*
* For example,
* Give... |
f534ec61c10e78166feed4d68899d3267c3bf1cd | d49ae7489f1c26de887f7b521a935b55e66c83c7 | /128.最长连续序列.cpp | 0773a49c6c3950ca2b5057a8fade357226d7c440 | [] | no_license | Sander-houqi/leetcode-cpp | 391d4c97c5dbbc7b7a9690539409c156090a867f | c0b6a06d246555ece17cebcb35309209f31e22bf | refs/heads/main | 2023-05-02T20:39:34.811841 | 2021-05-21T08:08:51 | 2021-05-21T08:08:51 | 341,105,472 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | cpp | 128.最长连续序列.cpp | /*
* @lc app=leetcode.cn id=128 lang=cpp
*
* [128] 最长连续序列
*/
#include<vector>
#include<unordered_set>
using namespace std;
// @lc code=start
class Solution {
public:
int longestConsecutive(vector<int>& nums) {
// hash 有两种,unordered_set 和 unordered_map,带键值对;
unordered_set<int> hash;
fo... |
71f7640b0505ccf90d551ae816c1ccc3d502a47c | 3af68b32aaa9b7522a1718b0fc50ef0cf4a704a9 | /cpp/B/E/E/C/C/ABEECC.cpp | fdb1f19172daa36f37263ff6cb7325f7b5aa43e3 | [] | no_license | devsisters/2021-NDC-ICECREAM | 7cd09fa2794cbab1ab4702362a37f6ab62638d9b | ac6548f443a75b86d9e9151ff9c1b17c792b2afd | refs/heads/master | 2023-03-19T06:29:03.216461 | 2021-03-10T02:53:14 | 2021-03-10T02:53:14 | 341,872,233 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 108 | cpp | ABEECC.cpp | #include "ABEECC.h"
namespace ABEECC {
std::string run() {
std::string out("ABEECC");
return out;
}
} |
708ae4d582fbcee09bdae2b8c5de2ba9ccee6fbd | a3cd1a7b28b40352d85ef757cf3c67cf14a779bf | /Libraries/Lib/Motor/DC_Motor_test_cpp/DC_Motor.h | ad73f8fe850c760bcbc9d5acac2b4e04bf0e7434 | [
"MIT"
] | permissive | sreevatsank1999/Robocon2k17 | 2ce1b4c252afbf045379d5740aa7f7497a3d65c6 | 072f53e92bc71fab4d72e19c48d197c19fca6006 | refs/heads/master | 2021-05-05T09:14:50.052352 | 2018-03-04T11:45:44 | 2018-03-04T11:45:44 | 119,273,834 | 0 | 0 | MIT | 2018-02-13T15:10:04 | 2018-01-28T16:06:15 | C++ | UTF-8 | C++ | false | false | 675 | h | DC_Motor.h | #ifndef DC_Motor_h
#define DC_Motor_h
#include <Arduino.h>
class DC_Motor { // C++ DC_Motor Class // M(PWM_pin, DIR_pin, Max_pwm=220);
const int M_PWM;
const int M_DIR;
const int pwm_Bias;
int pwm_Max;
public:
float Vr; // Vr => V/Vm, Vm - Max Motor Velocity
DC_Motor(cons... |
4d3c7741e773dc92e6018b9db61cb3b0b61779aa | 1f2d3068d0a6958cb18f44f5619a1950d405a128 | /src/add_markers/src/add_markers_session_8.cpp | 0f39904bf2f9a337a5d7d61274d46d201b41a318 | [] | no_license | the-john/ROS_Service_Robot | eddc4c70d334b443887f6ed9eca3ff1ddaa4b530 | a62a17c27fe058fb8bc87811b0730211ec7b852e | refs/heads/master | 2020-08-03T13:00:34.589861 | 2019-10-02T21:17:52 | 2019-10-02T21:17:52 | 211,760,532 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,067 | cpp | add_markers_session_8.cpp | #include <ros/ros.h>
#include <visualization_msgs/Marker.h>
int pick_up = 0;
int main( int argc, char** argv )
{
ros::init(argc, argv, "add_markers"); // Initialize ROS & define node name of "add_markers"
ros::NodeHandle n; // Main access point to ROS system & initialize node
ros::Rate loop_rate(1)... |
f58d2bda8dddb782651e0036585fb3c624196ffa | 7498906ed42295fba4ac9e34a299359b2b85d430 | /Strings/Commonly Asked/More/URL Shortener.cpp | a780f5eb1f995962a927a070d53b6fba14252d24 | [] | no_license | addiegupta/GfGProblems | 81e4301e9183b9ccb974823185553cef666d934e | 0da9e2bd10ce82f644664a7738c94078d636693c | refs/heads/master | 2022-07-14T11:54:29.854926 | 2022-06-30T10:06:57 | 2022-06-30T10:06:57 | 141,699,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | cpp | URL Shortener.cpp | /*
GeeksForGeeks: Design a tiny URL or URL shortener
Link to Problem: https://practice.geeksforgeeks.org/problems/design-a-tiny-url-or-url-shortener/0
Difficulty: Medium
Design a system that takes big URLs like “http://www.geeksforgeeks.org/count-sum-of-digits-in-numbers-from-1-to-n/” and converts them into a short... |
9018e43bbeef6b6da420bc7a2a899b2ab746bff3 | 9b38e55f8aa2024a734cfa65c315ca61b16e35b6 | /src/amqpAnalyze/amqp10/ProtocolHeader.cpp | 900a2b4c0210a23867f27d336594b6c7cc0ecd94 | [
"Apache-2.0"
] | permissive | kpvdr/amqpAnalyze | 2c1b118e3d880c5612167ab8e5b836b6e9b6a8eb | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | refs/heads/master | 2021-01-19T13:14:30.377543 | 2018-01-02T17:41:58 | 2018-01-02T17:41:58 | 88,074,868 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,225 | cpp | ProtocolHeader.cpp | /*
* AmqpHeader.cpp
*
* Created on: Apr 3, 2017
* Author: kpvdr
*/
#include "ProtocolHeader.hpp"
#include <amqpAnalyze/amqp10/FrameBuffer10.hpp>
#include <amqpAnalyze/Color.hpp>
#include <amqpAnalyze/Options.hpp>
#include <amqpAnalyze/ValidationError.hpp>
#include <iomanip>
#include <netinet/in.h>
namespa... |
a95a25107cbde8db31f4e279ea3a4cb56bef17d3 | 8973143376a547fd3bc0db7cd38a29775e6b51d3 | /SWLogDebuggingTool(W)/FolderManager.cpp | c107157eb4214b91010e96d667539dc9a5f9d0f6 | [] | no_license | ckwndgur/LoMIG | 8e1b6e200501cbfcdda0bbcc59379c646ee2ef41 | 67bba8e8355001e2f56a04c2dea75c9199958330 | refs/heads/master | 2021-01-11T09:14:24.279161 | 2017-04-20T12:35:03 | 2017-04-20T12:35:03 | 76,950,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | cpp | FolderManager.cpp | #include "stdafx.h"
#include "FolderManager.h"
FolderManager::FolderManager(void)
{
}
FolderManager::~FolderManager(void)
{
}
void FolderManager::MakeDirectory(char* filedirectory, char* filename)
{
char cTemp[256], *sp;
strcpy(cTemp, mStringManager.AppendChar(filedirectory, filename));
cTemp[strlen(cTemp) - 1] ... |
5edc421bd3a7459cf1dec1ec583a5aea298d108b | 2f0792879fad96762a57d44357d42b27ef73a9a6 | /tensorflow/compiler/xla/mlir_hlo/deallocation/IR/deallocation_ops.cc | 223a61636b213150bc8fdde2a99ea1850837b8db | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | lskov/tensorflow | 6a765ab89f06fb64d28ba71e581fd0bb3da4e6ba | e2d9b35870681b11003eedc78c95a1960e041e76 | refs/heads/master | 2023-09-01T09:04:20.665885 | 2023-03-03T00:11:25 | 2023-03-03T00:21:29 | 230,987,205 | 0 | 0 | Apache-2.0 | 2023-03-03T09:25:53 | 2019-12-30T22:18:32 | C++ | UTF-8 | C++ | false | false | 4,575 | cc | deallocation_ops.cc | /* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
22a7e6515f9dcaa26e989051ba1f40d07431ecc8 | 1b5802806cdf2c3b6f57a7b826c3e064aac51d98 | /tensorrt-basic-1.10-3rd-plugin/TensorRT-main/plugin/splitPlugin/split.h | 4ed9eddfc0e98d9a41f8f19aeb54e5e786f7b98e | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"ISC",
"BSD-2-Clause"
] | permissive | jinmin527/learning-cuda-trt | def70b3b1b23b421ab7844237ce39ca1f176b297 | 81438d602344c977ef3cab71bd04995c1834e51c | refs/heads/main | 2023-05-23T08:56:09.205628 | 2022-07-24T02:48:24 | 2022-07-24T02:48:24 | 517,213,903 | 36 | 18 | null | 2022-07-24T03:05:05 | 2022-07-24T03:05:05 | null | UTF-8 | C++ | false | false | 5,602 | h | split.h | /*
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
888363abbc6fc42b108ea4630eb6267f2fc86778 | 4b70ff9e92163f19e15c08c9a18c4cf5eb445f9d | /cpp/TemplateProject/unit_tests/test_main.cpp | bb557f6a8d93638a3f2cbb3064da1d4c6871a54e | [
"Apache-2.0"
] | permissive | LouisParkin/TDDKata | 36f6563ef1b11c92f5febaa8bda6381f39e1cc22 | 4763ff819a9c8a42552f081fa0ee6e6a72bc1f1c | refs/heads/master | 2021-01-01T05:43:53.026031 | 2016-04-22T14:55:53 | 2016-04-22T14:55:53 | 56,863,047 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,268 | cpp | test_main.cpp | #include <QtTest/QtTest>
#include <QDebug>
#include "test_myclass.h"
/*!
* Check if the OUTPUT_XML command line argument is present.
* \param argc The number of command line arguments
* \param argv The list of command line arguments
* \return True if OUTPUT_XML argument exists
*/
bool must_output_xml(int argc, char**... |
f199560039f731527efc84af4b6802ccd1a08e43 | e357d25bd2b9000b2d63337423c97974320d12f5 | /dp/难度很低的动态规划题.cpp | e5b2b80701fa5cf6fb0887d6b63f66a161d13cc1 | [] | no_license | sooglejay/geeksforgeeks | eb2fc5892ab19bdffd854891a5d173ab640378d0 | fd4e9f4f3eac545d505886b997752ba595998ebf | refs/heads/master | 2021-06-19T03:08:24.067182 | 2017-07-01T03:42:35 | 2017-07-01T03:42:35 | 69,029,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | cpp | 难度很低的动态规划题.cpp | //
// Created by sooglejay on 17/4/18.
//
//http://practice.geeksforgeeks.org/problems/largest-zigzag-sequence/0
#include <iostream>
#include <string.h>
#define MAX 101
using namespace std;
int walk(int arr[MAX][MAX], int n) {
int dp[MAX][MAX];
memset(dp, 0, sizeof(dp));
for (int i = 0; i < n; ++i) {
... |
09536a8a2ab873371cf19dc6e4e81d687051b8e2 | 7e98b2ff8ec98605ada716fa766831c5d36d992c | /youbot/youbot_driver/src/youbot/YouBotManipulator.cpp | 4720a22766de4d2b955148500f3795642904c596 | [
"MIT",
"LGPL-2.1-only",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | FontysAtWork/ESA-PROJ | 2d7f50f5f2fad136bfb7c4129750659ebcb2344b | 50d5b397f634db98e2627a764c7731e76a4b3feb | refs/heads/master | 2021-09-07T07:20:34.681550 | 2018-02-19T13:58:34 | 2018-02-19T13:58:34 | 101,985,367 | 2 | 0 | MIT | 2018-01-25T10:08:32 | 2017-08-31T09:41:45 | C++ | UTF-8 | C++ | false | false | 30,833 | cpp | YouBotManipulator.cpp |
/****************************************************************
*
* Copyright (c) 2011
* All rights reserved.
*
* Hochschule Bonn-Rhein-Sieg
* University of Applied Sciences
* Computer Science Department
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Author:
* Jan Paulus, Nico Ho... |
7730767d1e0bb3a727aab699eb02a091114e08dc | b8421bb95074b6e35f1f5f57c37bf2aeff37913e | /objects_Projectile.h | 40c0de9d861a88300f31c725115729fc9455494a | [] | no_license | crashdemons/spacegameF055 | 104f70e31af1e32f934e305960f6e41c452f3336 | e15ca14e58f1ae5f9bd26e7c3b8acce48ca23549 | refs/heads/main | 2023-03-20T10:37:55.895203 | 2021-03-07T00:35:23 | 2021-03-07T00:35:23 | 345,222,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,273 | h | objects_Projectile.h | /**
@file objects_Projectile.h
@brief
...
@author crashenator (crashenator -at- gmail.com)
*/
#pragma once
#include "objects_Physical.h"
enum CollisionType /// NOT IMPLEMENTED
{
COLLISION_LINEAR,
COLLISION_RADIUS,
COLLISION_BOX
};
class Projectile : public PhysicalObject /// Physical objects that are fired, use... |
6f801cd1df0d759e8a4a38d76a6ec1251daea6ed | d417d6957bc23d5366375c55ffe1345c98606525 | /CodeChef/jump.cpp | eb03340df9032ff9ca50602cf6a077923fc65d3e | [] | no_license | ro4stb33f/Competitive-Programming | 08b53ccb5ba48222cb57fd6b96e99f34d8d04cdc | 1cc6200e14804e194988a8cb4df3e0cb6c505f16 | refs/heads/master | 2023-04-02T14:26:09.759254 | 2021-04-04T00:12:05 | 2021-04-04T00:12:05 | 288,871,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,976 | cpp | jump.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mx = 3e5;
struct Line {
mutable ll k, m, p;
bool operator<(const Line& o) const { return k < o.k; }
bool operator<(ll x) const { return p < x; }
};
struct LineContainer : multiset<Line, less<>> {
// (for doubles, use inf = 1/.0, div(a,b)... |
f79b6bd948dca4b61fa26cb30a7670edb35905cc | acd5b57c18e4618ad5113f914d4c8b3a62fe1f9f | /UI/SignalPage.h | ac7369ea87d514f8424203cb18fb511c1c6e0c66 | [] | no_license | flylokj/AndroidScada | 8fa41dc3eb561dbca8df2e9d4d6f1dece332b13e | d3c08d6a95d366a861fdc82fd4c19202b2c99da6 | refs/heads/master | 2016-09-06T11:37:20.942026 | 2015-09-06T02:28:33 | 2015-09-06T02:28:33 | 41,983,358 | 2 | 4 | null | null | null | null | GB18030 | C++ | false | false | 511 | h | SignalPage.h | #ifndef SIGNALPAGE_H
#define SIGNALPAGE_H
#include <QWidget>
#include "Basectrl.h"
//教导页面的子页面:塑机信号
namespace Ui {
class SignalPage;
}
class SignalPage : public QWidget
{
Q_OBJECT
public:
explicit SignalPage(QWidget *parent = 0);
~SignalPage();
signals:
void insertTutorRecord(LPTutorRecordStr pRecor... |
05b38988870292454a0b50aebea6cb094226d7cf | 5669a47093c7bbf1e3af7fae40152833d36e6ba6 | /add_test.hpp | 51697467887db44b79830a022cb3f152fe9880ed | [] | no_license | shwenakak/CS100-Lab3--CompositePattern | d243156391182fc0ea68631aa303c3d153d48336 | 5052baedc53b3fc8cb25003f6aeca39806bd5254 | refs/heads/master | 2023-05-29T03:51:12.689489 | 2021-04-20T19:48:59 | 2021-04-20T19:48:59 | 374,930,207 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,811 | hpp | add_test.hpp | #include "gtest/gtest.h"
#include "div.hpp"
#include "sub.hpp"
#include "mult.hpp"
#include "add.hpp"
#include "pow.hpp"
TEST(AddTest, AddEvalPositive){
Op* val1 = new Op(1.0);
Op* val2 = new Op(2.8);
Add* test = new Add(val1, val2);
EXPECT_EQ(test->evaluate(),3.8);
}
TEST(AddTest, AddEvalZero){
Op* val1 ... |
da1d3614974da9a1ae88f897144f15799cbe27e8 | a36a8e71be19502aa71c6cc63c7a1354dd365655 | /algorithm/sort_algorithm/insert_sort.cpp | 6541ee323123a964e3a84a87e5e64503553fcffb | [] | no_license | AlbertGithubHome/Bella | 1202cc66c06a2bd388d8ea9f3fbd6ffde241d9e8 | f78c90d9a4d76cbe56e79bed863c52b30538dea0 | refs/heads/master | 2023-08-03T05:56:29.580093 | 2023-07-23T09:07:04 | 2023-07-23T09:07:04 | 34,572,277 | 10 | 5 | null | null | null | null | GB18030 | C++ | false | false | 2,139 | cpp | insert_sort.cpp | // insert_sort.cpp : 插入排序算法
//
#include <stdio.h>
#include <stdlib.h>
// 数组元素的个数
#define MAX_ELEMNT_COUNT 10
// 插入排序,从小到大
void insert_sort(int array[], int count);
// 数组输出函数
void print_array(int array[], int count);
int main(int argc, char* argv[])
{
// 初始化原始数据
int array_data[MAX_ELEMNT_COUNT] = { 100, 34... |
4fdd1b451739552e1f16d72de2c4d90edfc047fb | 01d6feb157226d01ffd19d52fe3927cc80bbf718 | /packages/plugin_library/OpenCVCamera/src/OpenCVCameraFactory.cpp | 75419a77af1f602c01b874522a950ef46d500220 | [] | no_license | jackros1022/UrRobotControllerInTCP | 3dda2d17d4bbc120bcd5b29bdc753f3df084790c | 3dd388c58b21d909b6c69c4d6160e631ab306a7a | refs/heads/master | 2020-03-25T16:52:10.601581 | 2018-02-13T12:30:26 | 2018-02-13T12:30:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 409 | cpp | OpenCVCameraFactory.cpp | //
// Created by 潘绪洋 on 17-4-14.
// Copyright (c) 2017 Wuhan Collaborative Robot Technology Co.,Ltd. All rights reserved.
//
#include <cobotsys_abstract_object_factory.h>
#include <extra2.h>
#include "cobotsys_abstract_factory_macro.h"
#include "OpenCVCamera.h"
COBOTSYS_FACTORY_BEGIN(OpenCVCameraFactory)
COB... |
52f2e6037489ee91825d6155371b22a21edd4cee | faa5e7e0c3b066814e0ce47c3b18f5ba67f8e212 | /oooarkavr/guidance/Guide.cpp | f20ae50ecf2c5f45918644703b22ee1211864f93 | [] | no_license | mindmurugan/myProject | e582537b96de75d31d0a7e97b161ca3b5642a413 | d1f24d0d78e4c7a6c0ffb9dac1b9271ce853d029 | refs/heads/master | 2021-01-19T09:28:53.402518 | 2011-06-18T00:55:27 | 2011-06-18T00:55:27 | 1,888,663 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,387 | cpp | Guide.cpp | /*
* Guide.cpp
* Copyright (C) Brandon Wampler 2010 <bwampler@users.sourceforge.net>
*
* Guide.cpp 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
* (at your option) ... |
69b90e304c9c58358a2a3b9f17ca15cefd2f7719 | c9e0227c3958db89747488328bd2b255e54f008f | /solutions/1004. Max Consecutive Ones III/1004.cpp | 8de538206ac354e0d88dd9f0dcf0ec353078d455 | [] | no_license | XkhldY/LeetCode | 2deba28b7491c36b4f224c3132fb89feea318832 | 94e23db2668615d9fe09e129a96c22ae4e83b9c8 | refs/heads/main | 2023-04-03T08:17:30.743071 | 2021-04-14T23:34:03 | 2021-04-14T23:34:03 | 358,136,537 | 1 | 0 | null | 2021-04-15T05:20:21 | 2021-04-15T05:20:21 | null | UTF-8 | C++ | false | false | 292 | cpp | 1004.cpp | class Solution {
public:
int longestOnes(vector<int>& A, int K) {
int ans = 0;
for (int l = 0, r = 0; r < A.size(); ++r) {
if (A[r] == 0)
--K;
while (K < 0)
if (A[l++] == 0)
++K;
ans = max(ans, r - l + 1);
}
return ans;
}
};
|
45db5c3a0aca9d160413bd3e114b2ee7b0739638 | 6a8d1b1e31656e8a505c1a2e187e8ace5094f2e2 | /Prov2/1.a/main.cpp | 8986679fec943b85e84cd220f34a1660ee93144c | [] | no_license | linusmvp/nytt | 6f11d82b29b75fa1dcd46ebc9aa425427308001e | 81aa063b219f7977ed2499c468b606003f822999 | refs/heads/master | 2020-03-10T13:28:38.728854 | 2018-04-17T06:33:48 | 2018-04-17T06:33:48 | 129,401,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | main.cpp | /* Uppgift 1,Emil Lidbom*/
#include <iostream>
using namespace std;
int main()
{
for ( int n = -10 ; n <= 0 ; n++ )
{
cout << n << " ";
}
return 0;
}
|
3261a0ed737bdb2ca1bd5027879b571c5f435ce3 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /FastSimulation/CaloHitMakers/test/testEcalHitMaker.cc | 8681dc8e92a491dec09ae5ddde525c13e0c4bcd9 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 8,017 | cc | testEcalHitMaker.cc | // -*- C++ -*-
//
// Package: testCaloCaloGeometryTools
// Class: testCaloCaloGeometryTools
//
/**\class testCaloCaloGeometryTools testEcalHitMaker.cc test/testEcalHitMaker/src/testEcalHitMaker.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// system include f... |
47b05cc733d65977eb20dcf01ee71ecce7ec44d1 | 3ae80dbc18ed3e89bedf846d098b2a98d8e4b776 | /header/Text/Builder/HTMLBuilder.h | ecd4f22f26b41c03544e0c111100482a360f916c | [] | no_license | sswroom/SClass | deee467349ca249a7401f5d3c177cdf763a253ca | 9a403ec67c6c4dfd2402f19d44c6573e25d4b347 | refs/heads/main | 2023-09-01T07:24:58.907606 | 2023-08-31T11:24:34 | 2023-08-31T11:24:34 | 329,970,172 | 10 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 606 | h | HTMLBuilder.h | #ifndef _SM_TEXT_BUILDER_HTMLBUILDER
#define _SM_TEXT_BUILDER_HTMLBUILDER
#include "Text/StringBuilderUTF8.h"
#include "Text/StyledTextWriter.h"
namespace Text
{
namespace Builder
{
class HTMLBuilder : public Text::StyledTextWriter
{
protected:
NotNullPtr<Text::StringBuilderUTF8> sb;
Bool bodyContent;
... |
e832b3717ac10a780d0bed8c1ab84f22d5fc22bd | 3841f7991232e02c850b7e2ff6e02712e9128b17 | /小浪底泥沙三维/EV_Xld/jni/src/EV_Symbol_Java/wrapper/simplemarkersymbol_wrapperjava.cpp | f033167718f442c5ea4485657cccb76c90d5142e | [] | no_license | 15831944/BeijingEVProjects | 62bf734f1cb0a8be6fed42cf6b207f9dbdf99e71 | 3b5fa4c4889557008529958fc7cb51927259f66e | refs/heads/master | 2021-07-22T14:12:15.106616 | 2017-10-15T11:33:06 | 2017-10-15T11:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 92,086 | cpp | simplemarkersymbol_wrapperjava.cpp | /* This file is produced by the JNI AutoWrapper Utility
Copyright (c) 2012 by EarthView Image Inc */
#include "symbol/simplemarkersymbol.h"
#include <jni.h>
#include "core_java/global_reference.h"
#include "core_java/jni_load.h"
#include <typeinfo>
namespace EarthView
{
namespace World
{
namespace Spatial
{
... |
ea1fc8e6ba2acfa5cf3d8a4152f074287f6fd7ac | ac507aec48525e085a6634e0db67ac8687824d22 | /common/tests/test_letters.h | 426327853dfc634549cd21f66dc936958a99e6fd | [] | no_license | rnabulsi/r-a-t | 52592c2de7c635c7b37a860b6e1dd2cdcbdca3e6 | 27a7285e167bb27837fa097bbfa0087f79be4a6f | refs/heads/master | 2021-01-23T18:49:54.890345 | 2015-03-25T17:32:06 | 2015-03-25T17:32:06 | 32,312,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 502 | h | test_letters.h | #ifndef TEST_LETTERS_H
#define TEST_LETTERS_H
#include <QtTest>
class TestLetters : public QObject {
Q_OBJECT
public:
TestLetters() : QObject() {}
virtual ~TestLetters() {}
private slots:
virtual void testIsDelimiter();
virtual void testIsPunctuationMark();
virtual void testIsNonConnectingLet... |
39b37f2a3c8701baae2187ba9609f7cb5e495397 | 2359adeeb4bf3a5fb5f62a178cbfcbe9c6c9fba4 | /plugins/remote_controls/fire_bird_6_remote_control/entry_points.cpp | dcb937954b2be234c98cc9f1d06224e9a27d5012 | [] | no_license | nex-robotics/WebotsFB6NexRobotics | e295cf4cb2a27180c75fa58f1fbc2385e3bcb211 | ee7974133b661a706ffe66e1769e281940d9d943 | refs/heads/master | 2021-03-22T03:56:55.520719 | 2016-06-22T14:26:00 | 2016-06-22T14:26:00 | 32,200,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | cpp | entry_points.cpp | #include "entry_points.hpp"
#include "Wrapper.hpp"
bool wbr_init(WbrInterface *ri) {
Wrapper::init();
ri->mandatory.wbr_start = Wrapper::start;
ri->mandatory.wbr_stop = Wrapper::stop;
ri->mandatory.wbr_has_failed = Wrapper::hasFailed;
ri->mandatory.wbr_robot_step = Wrapper::robotStep;
ri->mandatory.wbr_st... |
9494071dd38ef85779ea25ba32866c8a0ff28098 | f84b6f345115f63cd78562030299ccdafd1fef54 | /src/app/clusters/window-covering-server/window-covering-server.cpp | 8ec6ab05eb27f6f1dd12c93b63e9017f327fdc5d | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | JordanField/connectedhomeip | 436bde7b804ffbbaafd254e3d782cabf569a8186 | 8dcf5d70cd54209511be6b1180156a00dd8e0cf8 | refs/heads/master | 2023-09-04T02:30:33.821611 | 2021-10-30T14:14:43 | 2021-10-30T14:14:43 | 423,137,284 | 0 | 0 | Apache-2.0 | 2021-10-31T12:08:08 | 2021-10-31T12:08:08 | null | UTF-8 | C++ | false | false | 19,950 | cpp | window-covering-server.cpp | /**
*
* Copyright (c) 2020 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
3a4e5f3a1ae2171c0eab88e0cf13bef7a2afb5a8 | e1f6d45aab63e046df303e05a1a0507d03d74ca7 | /src/GameState/environment/GSpikesProcess.cpp | 3a7ba07a25a0fa1319c53202e065f6ba46412107 | [
"MIT",
"GPL-3.0-only"
] | permissive | isabella232/modite-adventure | 0fd089444985c948cdc0aa635ed63ead7cc5672d | 66c7779271706ec35e0a2f808afe92d7e15e0f85 | refs/heads/master | 2023-03-10T08:06:15.629929 | 2021-01-28T18:35:46 | 2021-01-28T18:35:46 | 335,581,685 | 0 | 0 | MIT | 2021-02-24T06:05:17 | 2021-02-03T10:07:03 | null | UTF-8 | C++ | false | false | 2,041 | cpp | GSpikesProcess.cpp | #include "GSpikesProcess.h"
TInt GSpikesProcess::mGroups[MAX_SPIKE_GROUPS] = {0};
const TUint16 SPIKE_SPEED = 3;
static const ANIMSCRIPT spikesAnimation[] = {
ABITMAP(ENVIRONMENT_SLOT),
ASTEP(SPIKE_SPEED, IMG_SPIKES),
ASTEP(SPIKE_SPEED, IMG_SPIKES + 1),
ATYPE(STYPE_EBULLET),
ASTEP(SPIKE_SPEED, IMG_SPIKES +... |
a0c01b69c91295cbb0dd061c2a91fd5255df3119 | 883887c3c84bd3ac4a11ac76414129137a1b643b | /mdump/DumpParamsGetter.h | 9296870748b7852f74b5c8478ac0a3dc9cf8214c | [] | no_license | 15831944/vAcademia | 4dbb36d9d772041e2716506602a602d516e77c1f | 447f9a93defb493ab3b6f6c83cbceb623a770c5c | refs/heads/master | 2022-03-01T05:28:24.639195 | 2016-08-18T12:32:22 | 2016-08-18T12:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 236 | h | DumpParamsGetter.h | #pragma once
#include <string>
class CDumpParamsGetter
{
public:
CDumpParamsGetter(void);
virtual ~CDumpParamsGetter(void);
BOOL get( TCHAR *keyName, wchar_t **sValue, TCHAR *sDefaultValue);
private:
std::wstring m_sFileName;
};
|
2c424a929c3115fa25668bb7a498e4cbeef397db | 3ebc94392094359228063ef09d452c7726e6c56b | /libclang/main.cpp | 351be5f03057af0dd1ab0e6236381bdfd4a24f39 | [
"MIT"
] | permissive | igorJarek/SourceCodeAnalyzer | afd0f564abf4e688d711890c858c769d0c788b4a | 737d6a5e287c978249261a9dae8581f401a3f324 | refs/heads/master | 2023-04-09T16:41:23.205296 | 2021-04-24T18:32:56 | 2021-04-24T18:32:56 | 238,986,516 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 664 | cpp | main.cpp | #include "UtilityFunctions.h"
#include "ArgsParser.h"
uint32_t g_appOptions;
int main(int argc, char* argv[])
{
ArgsParser args(argc, argv);
if(args.isCmdOptionExists("-html"))
g_appOptions |= HTML_ENABLED;
if(args.isCmdOptionExists("-cAll"))
g_appOptions = 0x3FFFFE;
else
{
... |
9f4be543db81bbefeb3f8a263bf22359f571e1d9 | 2a62e3d95e54c54a3ddcdcfb1c94e8337be1d32c | /realtime/db/protocol.cpp | a9c741d71691aac30226396072579cd0247d152f | [
"Apache-2.0"
] | permissive | chaibio/chaipcr | e5d45899f614b43bbf244fba58f4169dd15f6702 | 8153be9add46f1b29b89a4dde72ed3ad907321f3 | refs/heads/master | 2023-03-15T20:55:35.404867 | 2023-03-11T16:54:08 | 2023-03-11T16:54:08 | 59,871,130 | 76 | 34 | null | 2023-03-11T16:54:10 | 2016-05-28T01:07:56 | C++ | UTF-8 | C++ | false | false | 3,300 | cpp | protocol.cpp | //
// Chai PCR - Software platform for Open qPCR and Chai's Real-Time PCR instruments.
// For more information visit http://www.chaibio.com
//
// Copyright 2016 Chai Biotechnologies Inc. <info@chaibio.com>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... |
43f61a75ed90f3070cb5a7af13d96fd044e85fe3 | 3671df8e8f09d2c6fe6bf209148a6bbc84901dce | /src/engine/DistanceCalculatorEngineFactory.hpp | a7cbd52c0393e8dfd025b8187ce95dc004dabc2a | [] | no_license | lnikon/testing | 5b9e5e86e7b8824f40cec3dd9bf5e76ce30b7686 | 7b6b046cea36968e295adde44b0e375fff2e4e27 | refs/heads/master | 2022-12-23T06:51:57.421757 | 2020-09-26T16:41:12 | 2020-09-26T16:41:12 | 300,822,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | hpp | DistanceCalculatorEngineFactory.hpp | #pragma once
#include "CPPThreadsDistanceCalculatorEngine.hpp"
#include "CUDADistanceCalculatorEngine.hpp"
#include "DistanceCalculatorEngineType.hpp"
#include "IDistanceCalculatorEngine.hpp"
#include "MPIDistanceCalculatorEngine.hpp"
#include "SequentialDistanceCalculatorEngine.hpp"
#include <memory>
template <type... |
acd79df2bec009aed2c0b628563797badb65b7a0 | 34c7c869ef85bae35d4dd01d70d4a35be33506fe | /OpenRobot/src/main.cpp | 326dcc6bfbf8e63b261540ec602f5d5213ea16ea | [] | no_license | micvision/OpenRobot_NEO | 8cd86db47b43305654bc7a6297e44ed79fca1280 | 385612fe0584a51eac0f1a296265a5de12fee03f | refs/heads/1_0 | 2020-03-22T08:43:35.716519 | 2017-12-21T08:42:16 | 2017-12-21T08:42:16 | 139,404,614 | 0 | 0 | null | 2018-07-05T02:41:54 | 2018-07-02T07:08:54 | C | GB18030 | C++ | false | false | 22,328 | cpp | main.cpp | #include <stdlib.h>
#include <math.h>
#include "sys.h"
#include "delay.h"
#include "drv_include.h"
#include "drv_led.h"
#include "IMU.h"
#include <ros.h>
#include <ros/time.h>
#include <sensor_msgs/Imu.h>
#include <std_msgs/Int32.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/JointState.h>
#include <geometry_m... |
27d4d6ba331106d58d6accfa3adfd2b0c8018313 | bb014e36e83615621af5c48be1e1b346409d0339 | /bacnetbuffermanager.cpp | 10770067bd439a918fe5f0b7917db4413aaa4136 | [] | no_license | longcongduoi/proto-gateway | 38e3aff489a0a05979bcf225be7ef6eadba06e16 | bd20c78ede766c490fb4882263454aeae3f79520 | refs/heads/master | 2020-04-02T09:23:32.217039 | 2012-01-14T15:41:10 | 2012-01-14T15:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,955 | cpp | bacnetbuffermanager.cpp | #include "bacnetbuffermanager.h"
class BufferWrapper {
public:
BufferWrapper(quint16 buffSize):
refCount(0),
buff(&refCount, buffSize)
{
buff._buffer = new quint8[buffSize];
}
quint8 refCount;
Buffer buff;
};
BacnetBufferManager *BacnetBufferManager::_instance = 0;... |
2f880081777a5842340fb62fae0fe430838051e9 | ae3fc7e3880f5a743c66964ba3cc56bc84ce83be | /libmakaron/libmakaron.cc | d7a3e4997a695d8b2724eee54ecc2ea5885d9c5d | [
"0BSD"
] | permissive | brucelevis/makaronLab | 3c9fe0cae9c20e26d932d51075a5b0dc83e3083e | 6a4c1b4e8081d809f9c01949c0736db3c5aaaede | refs/heads/master | 2023-03-18T09:01:16.914820 | 2021-03-06T15:39:04 | 2021-03-06T15:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26 | cc | libmakaron.cc |
#include "makaron/api.h"
|
3b58abc5d412ce63623e0c59d3f54aa55775b332 | 984269dc1027f651b236cf9d2a7b1af5e42cbbff | /reverse group of node.cpp | 47cef213927f97d948245f2aff32fe42932e15b6 | [] | no_license | krishnashah921/Linked-list | f3ae6e90b396961303956ddfdbd82a066352833a | 98e25ecf8bbc458d52ee23976c28d6dc961d7e1e | refs/heads/main | 2023-04-22T08:13:59.333598 | 2021-04-23T11:19:08 | 2021-04-23T11:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,690 | cpp | reverse group of node.cpp | #include<stdio.h>
#include<stdlib.h>
struct node {
int data;
struct node *next;
};
void *create(struct node **start,int data1);
void *display(struct node **start);
void *reversegroup(struct node **start,int group);
int main()
{
struct node *start=NULL;
int ch=1,data1,k=0;
while (ch==1)
{
k=k+1;
... |
24bd252af8e6ecfe00ec80f9a6670e133e04b760 | b4a77b4e81c3f4a3824f8e3d41a1b8f77b728fdc | /src/module-common/openxbox/module_common.h | 0d643cbd777023d787cb9557b2eed09a7a5bb3c9 | [] | no_license | darrena092/OpenXBOX | 2a7ccf33fbafbb4cbfe71216a18c1d8cc73126b9 | 7ed80d7f36f839f7c53d073b8951f2cec603d00b | refs/heads/master | 2021-04-06T10:36:54.891532 | 2018-03-19T21:10:03 | 2018-03-19T21:10:03 | 125,215,799 | 1 | 0 | null | 2018-03-14T13:21:50 | 2018-03-14T13:21:50 | null | UTF-8 | C++ | false | false | 1,052 | h | module_common.h | #pragma once
namespace openxbox {
// Shared library export/import specs
#ifdef _WIN32
#if defined(OPENXBOX_MODULE_EXPORTS)
#define OPENXBOX_MODULE_API __declspec(dllexport)
#else
#define OPENXBOX_MODULE_API __declspec(dllimport)
#endif
#else
#define OPENXBOX_MODULE_API
#endif
#ifdef _WIN32
#define OPENXBOX... |
f71e6742aa0c9f8685c45b53b5ac9c22f24c1a67 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/nearby_sharing/fast_initiation/fast_initiation_scanner_unittest.cc | 97da0ff828b2ce80e3b2df0353dec61d9868a8dc | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 8,443 | cc | fast_initiation_scanner_unittest.cc | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/nearby_sharing/fast_initiation/fast_initiation_scanner.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#inclu... |
4e04adec35d8b8e5127883ad97a7680a84de607e | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-ce/source/model/GetAnomalySubscriptionsRequest.cpp | 2496a0cdb201839c3067ee4ab3be22a5e8ca6c1b | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 1,792 | cpp | GetAnomalySubscriptionsRequest.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ce/model/GetAnomalySubscriptionsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::CostExplorer::Model;
using namespace Aws::Utils::Json... |
84dd2a04f0de66875aafc0033a5ec3db06f8918f | 6ffd48964d36f61f94b86cb87313066da5d16e25 | /c_registrationSystem.cc | a89767a5e2a8fdaf015c386a96d8ce591f63abaa | [] | no_license | YaleCheung/CodeForces | d484c04c59508b45f31979ac2752875eacf0fc58 | e6b4bbe541351107721e3c277803c6cdca1c590a | refs/heads/master | 2020-04-06T04:18:43.622691 | 2018-03-23T03:17:10 | 2018-03-23T03:17:10 | 58,988,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,618 | cc | c_registrationSystem.cc | /*
* =====================================================================================
*
* Filename: c_registrationSystem.cc
*
* Description: G
*
* Version: 1.0
* Created: 07/11/16 05:17:14
* Revision: none
* Compiler: gcc
*
* Author: YOUR NAME (),
* ... |
95e534e4720c08a194023ea7161ffea536402208 | 1fdf686ee7d424b2c1323d44ccfd9eefa7c15b5e | /Chapter 5 C++ and STL/exercises/1595/1595.cpp | 20ba074e2de3f880b4dbd6a8a07b74464881d1bc | [] | no_license | siyuanchai1999/AOAPC-II-Beginning-Algorithm-Contests | bb7e594b7adafc835828b758898f7f27b998d48d | f7add8eb7eab00f632f113b15f66efbc8d7b9c7f | refs/heads/master | 2020-04-04T18:01:43.138972 | 2019-08-23T17:11:44 | 2019-08-23T17:11:44 | 156,146,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,524 | cpp | 1595.cpp | /*
Hint: find whether or not each line is symmetric first
Compare result of each lines
*/
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <vector>
#include <unordered_set>
using namespace std;
bool isGoodline(vector<double> &xPos, double &mid){
sort(xPos.begin(), xPos.end());
... |
3a6d546cb72d8ccf41ae520c2bee49fc044374de | b33dd2f91e733b6dfad53597b668360c1926c3a3 | /computacao-grafica/ex/RosiJogo.cpp | f40f5b09a4e9df0aaad0aa79c85315eb739af6b0 | [] | no_license | olaviolacerda/uniritter | 5d44df2c5ba170c6f342299364d977000cb18e99 | f0776b5d8b60d0fa63324e63ad6ff9a88cd2cf2c | refs/heads/master | 2022-12-01T01:15:18.644248 | 2020-08-08T15:12:49 | 2020-08-08T15:12:49 | 286,058,431 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,796 | cpp | RosiJogo.cpp | #include "GL\glew.h"
#include "GL\freeglut.h"
#include <stdio.h>
#include "conio.h"
#include <windows.h>
#include <stdlib.h> //Fundamental para chamada de sistemas.
float p1x, p1y;
float p2x, p2y;
float largura, altura;
float bolax, bolay, bola;
float velocidadeX, velocidadeY, aumentaVelocidade;
int contador;
voi... |
ee4f8339b8fe9e1573b00679af5df65fc9cc6f99 | 608aefe4234248cbb8f0c1614caeb3a2c215cceb | /713 - Adding Reversed Numbers.cpp | 9f7092ea64bcf0bf08fcdd94e45f403f6873d9e0 | [] | no_license | MahtabTanim/UVA | 06ab16b19c229c1b85e3d0f07b8344b1deb335a7 | 46992933b8909e013944c48d06cb47aded32246d | refs/heads/master | 2023-02-07T16:23:36.012410 | 2021-01-01T06:47:57 | 2021-01-01T06:47:57 | 259,660,819 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,149 | cpp | 713 - Adding Reversed Numbers.cpp | #include<bits/stdc++.h>
using namespace std;
//#define mod 1000000007
#define pb push_back
#define mp make_pair
#define MP ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define ll long long int
#define maxn 1000000
#define FP ff.open("output.txt")
fstream ff;
#define N 101
ll a,b,c,d,k,h,e,f,t,m,n,i,j,x,y,co... |
1f08d78bce7225f152bb8e69396a964c55001578 | 8cc95381e7c810f0ee4921fb2e6140748dd3ea57 | /200_299/277_find_celebrity.h | 3aa1640141f9dbefda9297aa913a2ad6732b553b | [] | no_license | wangchenwc/leetcode_cpp | 5691fd6091050cd09ececfa94c02497f78b88293 | 6c0c847f25710781f40a2817cb0e0152002f1755 | refs/heads/master | 2020-04-22T02:36:02.836904 | 2018-11-08T06:13:00 | 2018-11-08T06:13:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 554 | h | 277_find_celebrity.h | //
// 277_find_celebrity.h
// cpp_code
//
// Created by zhongyingli on 2018/8/7.
// Copyright © 2018 zhongyingli. All rights reserved.
//
#ifndef _77_find_celebrity_h
#define _77_find_celebrity_h
class Solution {
public:
int findCelebrity(int n) {
int res = 0;
for (int i = 0; i < n; ++i) {
... |
1c093544c11c6a1913e38159ee26161da1bccabd | c49870c4a74b36d77633258ef209dcb96a012480 | /src/widgets/simpleWidgets.cpp | e7a261585fe5b59e2735d3b50afbf1978838062e | [
"BSD-3-Clause"
] | permissive | jdstmporter/VCV-Plugins | dc0b15db8d7f275e460779634f30ae06d4d69506 | cea4eb8073a44f7359791d5a19550131d3231229 | refs/heads/master | 2022-11-28T04:09:23.844054 | 2020-08-14T22:51:19 | 2020-08-14T22:51:19 | 277,945,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 820 | cpp | simpleWidgets.cpp | /*
* widgets.cpp
*
* Created on: 31 Jul 2020
* Author: julianporter
*/
#include "../plugin.hpp"
#include "simpleWidgets.hpp"
namespace rack { namespace componentlibrary {
FourSwitch::FourSwitch() {
addFrame(APP->window->loadSvg(asset::plugin(pluginInstance,"res/CKSSFour_0.svg")));
addFrame(APP->wind... |
f098248245787aefeedea20629cc217f821564ff | e7298797898a582bb47d63d453737c6860dacabe | /FP_PP_3_20161561_강태호/FP_PP_3_20161561_강태호/Subscription.h | 4cec33dffd928d3410350ad4f888c91f4d68a6ed | [] | no_license | EBEL21/file-processing | d57afaace109fb9ce8b71f1590b4a192583748bf | d9154c9da827f8f3dda6b03852d5d6e367d171f8 | refs/heads/master | 2020-07-26T10:17:53.765402 | 2020-01-13T12:32:26 | 2020-01-13T12:32:26 | 208,614,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,172 | h | Subscription.h | #pragma once
#ifndef SUBSCRIPTION_H
#define SUBSCRIPTION_H
#include <iostream>
#include <string>
#include<cstring>
#include "delim.h"
#define LEN_SUB_ID 17
#define LEN_NA_ID 13
#define LEN_MIL 11
using namespace std;
class Subscription {
private:
char Subscription_ID[LEN_SUB_ID];
char NewsAgency... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.