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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b79e6723155f4fa9db925ece6942bda041a0ac8e | 67e8364603f885231b6057abd6859e60562a4008 | /Cpp/340_LongestSubstringWithAtMostKDistinctCharacters/002.cpp | 6aad93c99a44bda066f493107c6de1d6927980a3 | [] | no_license | NeighborUncleWang/Leetcode | 988417721c4a395ac8800cd04e4d5d973b54e9d4 | d5bdbdcd698006c9997ef0e368ffaae6f546ac44 | refs/heads/master | 2021-01-18T22:03:27.400480 | 2019-02-22T04:45:52 | 2019-02-22T04:45:52 | 36,253,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 808 | cpp | 002.cpp | class Solution {
public:
int lengthOfLongestSubstringKDistinct(string s, int k) {
vector<int> indices(256, -1);
int distinct = 0, res = 0;
for (int left = 0, right = 0; right < s.size(); ++right) {
if (indices[s[right]] == -1) {
++distinct;
}
... |
f1d9274e0103c723118c7275b13a5a43489916f8 | 7f506b25d31c4a86bdd2215bcc27cecb71ad90c3 | /medium-problem_078/sllist.hpp | 5b57f15c0a76470e975533a382936a52842713eb | [] | no_license | davidr69/daily-coding-problems | 5ad5ede2c17cf089a896c8ebc8e09559aa0545d1 | ab50da84d04ed0aa9ede46af6181c493c3741033 | refs/heads/master | 2020-12-14T15:31:04.350435 | 2020-01-18T20:49:58 | 2020-01-18T20:49:58 | 234,789,209 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | hpp | sllist.hpp | class LinkedList {
private:
struct Node {
int value;
Node *next;
};
Node *head = nullptr;
Node *tail = nullptr; // makes appending easy
Node *iter = nullptr; // keeps track of "next"
public:
void append(int);
void display();
int *next(); // Why a pointer? Because no value can represent end-of-list; nullptr ... |
727686b262b4455a578405ce3ab5ddf8d8c0fe67 | 7c7e5147f6dce5f3e465a79be7915ac88c99be64 | /Mathematics/absoluteValue.cpp | e5a1bc15e3b097877639e44d8b72465e98b12909 | [
"MIT"
] | permissive | Yuvrajchandra/DSAPractice | 3974c2672b237bab3d0e97a3bb6b809c10ac73f3 | d3e396bcd16289722988bd5a90b29bd87c0df1da | refs/heads/main | 2023-02-12T18:40:43.432431 | 2021-01-11T12:12:33 | 2021-01-11T12:12:33 | 328,637,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123 | cpp | absoluteValue.cpp | int absolute(int I) {
// code here
if(I<0)
{
return -I;
}
else
{
return I;
}
}
|
8dac1daf4859b1cf3b83152f3e50fa754a13cb8c | f8f4cbc5ff1d4fbb8d98729432bd5aea1b249e1c | /TemplateParserDlg.cpp | 8af4f2cb95e811e6ea68a424c81cde2096c06ac8 | [] | no_license | Onglu/TemplateMaker | b1756ee3f893a1a1f229177b476fafb0cb68a5d5 | 3279e3af8489d1a27d78965bf047e8ef44d35234 | refs/heads/master | 2020-03-25T13:22:13.603840 | 2013-08-19T10:27:38 | 2013-08-19T10:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 38,992 | cpp | TemplateParserDlg.cpp | #include "TemplateParserDlg.h"
#include "ui_TemplateParserDlg.h"
#include "json.h"
#include <QDebug>
#include <QFileDialog>
#include <QUuid>
#include <QSettings>
#include <QDateTime>
#include <QMessageBox>
#include <QCloseEvent>
#define CHANGED_SUFFIX " *"
#define TEMP_FOLDER "tlpt"
#define TEMP_FILE... |
b6987ad9c2e3e65a8e9aa5783f76b883f7ab709c | 5cc00bad4391ef53636a6316ca04f9cdcdb51147 | /mqtt.cpp | 1a653c2b65f82f2edeba111b365ecf7dfa70d377 | [
"MIT"
] | permissive | TylerWilley/familylight | 5755b4e3ed72ccff856ac2749617f97a5de42df9 | 5eab330b312439fdc2e17b9ebc36c0804f801f2e | refs/heads/master | 2023-04-28T21:41:41.448199 | 2021-05-25T03:46:54 | 2021-05-25T03:46:54 | 296,750,587 | 0 | 1 | MIT | 2021-05-25T03:46:54 | 2020-09-18T23:38:33 | C++ | UTF-8 | C++ | false | false | 3,569 | cpp | mqtt.cpp | #include "mqtt.h"
#include "storage.h"
#include "neo.h"
WiFiClient espClient;
WiFiClientSecure espClientSsl;
extern ConfigMap config;
PubSubClient *client = NULL;
String clientId = "";
uint32_t next_connect_attempt = 0;
void callback(char* topic, byte* payload, unsigned int length) {
/*
Called on MQTT messag... |
5807c3a1abcef479b03d53b720af606e5960ea22 | 8ed7af43f519d5f70f9162e91390b97e3e4a7fb8 | /app/main.cpp | cd8883a775fc58258c1697174c2f2924f534693e | [] | no_license | ibradam/voronoi | 75c4fc2f03e353dd64e11b6dd0021904826a3d44 | a184752edbd21fde2c9ec4bc04ed091485ef4a3b | refs/heads/master | 2021-01-10T10:16:05.515021 | 2016-03-18T11:39:02 | 2016-03-18T11:39:02 | 47,836,117 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
int resultat(0), a(5), b(8);
resultat = a + b;
cout << "5 + 8 = " << resultat << endl;
return 0;
}
|
3b5c01624737290cb6d1b7f58ea151bfd022b2ba | ebfea37709e91365d41748f90e1831461ca7eae7 | /IChannel.h | cf4ba96b4bb12c616420e3994e05a42ab93ac0d1 | [] | no_license | ocarizr/Cpp-Project | 872e26b320e546ee1f3e978f0ea4a7ed07d77524 | d99082392559e793049b2770de557968c2a962b3 | refs/heads/master | 2021-02-16T10:03:34.081573 | 2020-03-23T21:42:12 | 2020-03-23T21:42:12 | 244,993,246 | 2 | 1 | null | 2020-03-23T21:42:13 | 2020-03-04T20:06:31 | C++ | UTF-8 | C++ | false | false | 762 | h | IChannel.h | #ifndef ICHANNEL_H
#define ICHANNEL_H
#include "ConfigManager/ConfigManagerLib.h"
#include "LogManager/LogManagerLib.h"
template<typename T>
class IChannel
{
protected:
LogManager::Logger<T> m_logger;
// Add Pipe Information
uint16_t m_ID;
public:
IChannel() = delete;
IChannel(LogManager::Logger<... |
5b0299be88473415ff1282026508602980cc61b0 | cee93f32358764aa2fa586a7455e314e51bd91c0 | /code/c and c++/ML_backpropagation/Neuron.h | 5bda65f7ede930516071ead5a80b6299a8f626a6 | [] | no_license | starrain3/Blog-samples | 2cdb8403a0eabfd7baeeff506dead0159be6aac1 | 5e448a579780eeb1e51ea13ed75d4049209091a4 | refs/heads/master | 2022-11-23T22:27:36.741032 | 2020-07-27T15:36:43 | 2020-07-27T15:36:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | h | Neuron.h | #pragma once
#include <vector>
using namespace std;
#pragma once
class Neuron
{
public:
Neuron(int dendritesSize);
~Neuron();
void pushInput(double* in);
void activity();
double output();
void correct(int index,double detla);
double getWeight(int index);
int dendritySize();
int WeightSize();
private:
dou... |
4b35e14c3bc59e902f22e039a23f4848f0edf1e6 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /services/tracing/test_util.h | 821a7eb023c01c623f68fdf62186129e18a57f50 | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | C++ | false | false | 1,385 | h | test_util.h | // Copyright 2017 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 SERVICES_TRACING_TEST_UTIL_H_
#define SERVICES_TRACING_TEST_UTIL_H_
#include <string>
#include <vector>
#include "base/trace_event/trace_log.h"
... |
e6271a3f15d39f1705ffb5a3806cece66c6cb383 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/pdfium/xfa/fxfa/parser/xfa_utils.cpp | 3967784fe9491c9b391663a9655ba4130690f561 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 15,157 | cpp | xfa_utils.cpp | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/xfa_utils.h"
#include "core/fxcrt/fx_ext.h"
#includ... |
316765da1a9783a41841227cf00bf559eaa46be4 | afa15c758963822802704f76086602d5c8235424 | /src/led_strip_controller/hsv_helper.h | d1ad7ecaa4821d076dc67350f73f1d1179567b12 | [
"MIT"
] | permissive | moonfall/Pixel-Styles-Host | 47df8d27f553fda370ff098d2a126074307a6afb | d407761ed03e8d4facf0ef00912004ba7730b949 | refs/heads/master | 2021-01-22T09:20:41.239378 | 2016-03-03T07:54:22 | 2016-03-03T07:54:22 | 58,141,942 | 1 | 0 | null | 2016-05-05T15:40:13 | 2016-05-05T15:40:12 | null | UTF-8 | C++ | false | false | 1,414 | h | hsv_helper.h | /*
* hsv_helper.h - Colors manipulations helpers
*
* Copyright (C) 2013 William Markezana <william.markezana@me.com>
*
*/
#pragma once
#include <stdlib.h>
#include <stdint.h>
#include <string>
#if !defined(min_of)
#define min_of(A,B) ( A < B ? A : B )
#endif
#if !defined(max_of)
#define max_of(A,B) ( A < B ? B... |
e7a255c944ec4f9f8f69d112afd84167711c9455 | 331a1e6356e0080b72571f373338dcd92d5159ce | /leetcode/1.cpp | 8cdb4714b2c856f3371a03003eab4d0f1a314996 | [] | no_license | fgcmaster/MyCode | d339e2ab3c1278b3304f3e9b9bd29cdcc8f750c4 | 1fa3ff57bb94062aa136b5b831cc85d2ac886cd2 | refs/heads/master | 2021-06-13T10:30:33.163615 | 2021-04-27T01:25:45 | 2021-04-27T01:25:45 | 31,703,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | cpp | 1.cpp | #include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <iostream>
#include <unordered_map>
using namespace std;
typedef vector<int> IntVec;
typedef unordered_map<int, int> IntMap;
class Solution
{
public:
vector<int> twoSum(const vector<int>& nums, int target)
{
IntMap numMap;
for(int i = 0; i ... |
529c54114413e3e9a2d28fd189ebe40990c21f24 | 8de0009236b21045d5b043ccb2d1f4216f1a76c3 | /magic_item.cpp | 12baf46935bc33affd981b51926f5fbff56ea63b | [] | no_license | B-Techie/Derived-Class | 0c388b3ca6434f2a62b59ea99ce029498fec620a | a2a01d35046c4e75128c02f2660f8bc6b6081efe | refs/heads/master | 2016-09-01T08:37:54.169090 | 2015-12-09T01:48:36 | 2015-12-09T01:48:36 | 47,661,191 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | cpp | magic_item.cpp | #include "magic_item.h"
// Overloaded derived Constructor
// @param name
// @param value
// @param desciption
// @param mana_required
// Constructor call to class Item
MagicItem::MagicItem(string name, unsigned int value, string description,
unsigned int mana_required)
: Item(name, value),
description_(descrip... |
40d549f5bad8eb7962f95c8747906392abf9d711 | 3ad2482be0d2487ad0b24fbe569ea4e7f7e97974 | /src/Utils.cpp | e47717b4448c9447a827194e7fb4a833c91f9f53 | [
"Unlicense"
] | permissive | falki147/mkatlas | 25d0d77d21487763611f4d7cae20bdd1f7aa0df1 | f0f81d91134982365d1a597242db05744e9f1484 | refs/heads/master | 2023-01-06T05:55:46.678957 | 2017-02-12T16:28:41 | 2023-01-02T18:06:05 | 46,113,106 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | Utils.cpp | #include "Utils.hpp"
unsigned int makeRGBFromString(const std::string& color, unsigned char alpha) {
auto num = std::stoul(color, nullptr, 16);
return makeRBGA((unsigned char) (num >> 16), (unsigned char) (num >> 8), (unsigned char) num, alpha);
}
|
a7c8883144e2656520b2f5985fcbe139729d928d | c4c134e39d011165e951c8aeda497e542a0d3932 | /res/zoom_panel.cxx | b4bd92a757feff81f58d02dfe826eb93d14cdfd3 | [] | no_license | kolkhi/CVtool | c734074ed0a9fe2aed2bd1dce6ae66ce7250c02a | 689cf0df9fcc7e8840d15ef873ef11f03c53b18a | refs/heads/master | 2020-03-07T03:36:20.794634 | 2018-05-09T15:39:25 | 2018-05-09T15:39:25 | 127,241,138 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43,605 | cxx | zoom_panel.cxx | // generated by Fast Light User Interface Designer (fluid) version 1.0304
#include "zoom_panel.h"
#include <FL/Fl_Image.H>
static const unsigned char idata_line[] =
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0... |
c7bf0664174c6281b09ca07ccbf14baa8dd95b8e | 8ff320e31e8ad83c75c93cd8f71347a38e718e71 | /src/lib/views/volumeBar/volumeBar.h | 1afffdd2289636fd07864e9d862c624d3287e8d1 | [] | no_license | tavu/karakaxa | 60ff6e3e79196f5a3e079c5dc1cc1c430d9ff1be | 03f3df0f22a6a001438589d72c42c34a3f3dd519 | refs/heads/master | 2021-01-01T18:22:49.392260 | 2013-09-04T13:42:02 | 2013-09-04T13:42:02 | 4,357,814 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | h | volumeBar.h | #ifndef VOLUMEBAR_H
#define VOLUMEBAR_H
#include <KToolBar>
#include<QAction>
#include <Phonon/VolumeSlider>
namespace views
{
class volumeBar :public KToolBar
{
Q_OBJECT
public:
volumeBar(QWidget *parent=0);
private:
QAction *volumeAction;
Phonon::VolumeSlider *volume;
};
};
#e... |
160ae55d298e3ab7eb03549a83cb2e1f78f1ab28 | 4fc25c2d1c9b68cdb5f34ecd585dd52fe187184e | /Projet_health_monitoring/Sensor.cpp | 63f91e4532a64561ed790af256ed742e93ea052b | [] | no_license | Assianguyen/BE_Cpp | c48fe41754b54c25d9312ed655c2f87360f941a1 | 6217bebc57ceea94c28a8c4366ca373445c8c697 | refs/heads/main | 2023-04-25T06:05:32.839984 | 2021-05-19T13:54:04 | 2021-05-19T13:54:04 | 355,508,506 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | Sensor.cpp | #include "Sensor.h"
//constructeur vide
Sensor::Sensor(){
atRisk = false;
minValue = 0.0;
maxValue = 0.0;
}
//constructeur avec attributs
Sensor::Sensor(bool stateRisk, bool stateWarning, float min, float max, int port){
atRisk = stateRisk;
warning = stateWarning;
minValue = min;
maxValue = max;
numPort = po... |
dbacc685f31d1394baa2e70ac5bd710f3fb81750 | f64a28df46d7f3b2558ca9eeca004bb7a71ac593 | /project/core/game/Wall/Wall.hpp | 4f01e4ac17d58a2773582bd51f3452acf9fdcafa | [] | no_license | DbilliT/cpp_bomberman | e297265af7134e6a0d04e5c5e96c4617bf40ca8d | 7c7ed242bccc9445c289a7067c7d7fc6f45d9356 | refs/heads/master | 2021-01-25T12:30:24.956107 | 2018-03-05T21:58:12 | 2018-03-05T21:58:12 | 123,474,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 485 | hpp | Wall.hpp | //
// Wall.hpp for Wall in /home/david_k/cpp_rendu/cpp_bomberman/project/core/game/Wall
//
// Made by paul david
// Login <david_k@epitech.net>
//
// Started on Thu May 21 14:55:04 2015 paul david
// Last update Thu May 21 16:22:20 2015 paul david
//
#ifndef WALL_HPP_
#define WALL_HPP_
#include "ICase.hpp"
clas... |
65ef4718dd16f3d4900c151e8f0fba48260ba493 | e7c45d18fa1e4285e5227e5984e07c47f8867d1d | /Common/Models/CONTROL1/GenStats.cpp | a0cb7b064d9bdf54c131a5ab626b843530e93e38 | [] | no_license | abcweizhuo/Test3 | 0f3379e528a543c0d43aad09489b2444a2e0f86d | 128a4edcf9a93d36a45e5585b70dee75e4502db4 | refs/heads/master | 2021-01-17T01:59:39.357645 | 2008-08-20T00:00:29 | 2008-08-20T00:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,637 | cpp | GenStats.cpp | //================== SysCAD - Copyright Kenwalt (Pty) Ltd ===================
// $Nokeywords: $
//===========================================================================
#include "stdafx.h"
#include "sc_defs.h"
#include "pgm_e.h"
#include "genstats.h"
#if !SKIPIT
//===================================... |
6d68c8fa48dcb4555695cfbdff29c0cfc81f42cb | 076e59ce9746a07e6cacdbb745f0a62775428542 | /contests/sumitrust2019/sumitb2019_b/main.cpp | 1bdcedbdc83a906eda3fc9c4f3e4baf091360437 | [] | no_license | tsugitta/atcoder | faea5a301818fda11016d8a656398e9468cf945f | f399e1672f50aee69eabf69959c4b7328f971b64 | refs/heads/master | 2023-03-07T23:06:01.227474 | 2021-09-23T05:45:00 | 2021-09-23T05:46:05 | 191,819,586 | 10 | 0 | null | 2023-02-24T18:59:24 | 2019-06-13T19:12:38 | C++ | UTF-8 | C++ | false | false | 2,372 | cpp | main.cpp | // https://atcoder.jp/contests/sumitrust2019/tasks/sumitb2019_b
#include "algorithm"
#include "cmath"
#include "functional"
#include "iomanip"
#include "iostream"
#include "numeric"
#include "queue"
#include "set"
#include "string"
#include "vector"
#define rep(i, to) for (ll i = 0; i < (to); ++i)
#define repf(i, from... |
9e641d5cddbc661f6ac7c21e560d06455adc7552 | ed7a5d83d559f0b16656bdbdc3f1c0591d45df1d | /_MODEL_FOLDERS_/copperEntrance/copperEntrance_GLOBALS.cpp | 73e71aed7ee770f21ca628eb66374a0353833f5c | [] | no_license | marcclintdion/sin_cos | 3b391f1f9d07bb1fab1546aa74b538bef67e00da | 67633c39556e5f99301548ec590c68b0692ab045 | refs/heads/master | 2021-01-10T21:17:35.033174 | 2015-07-29T06:00:49 | 2015-07-29T06:00:49 | 39,876,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,943 | cpp | copperEntrance_GLOBALS.cpp | void load_copperEntrance_FromHDtoSystemRAM(void*);
void delete_copperEntrance_FromSystemRAM(void); //The VOID pointer is a potential mistake,(it's not a thread function?)
//------------------------------------
FREE_IMAGE_FORMAT fifmt_copperEntrance; ... |
43aadcb338954e84b19588c433202fded951034d | 1061216c2c33c1ed4ffb33e6211565575957e48f | /cpp-qt-qhttpengine-server/server/src/models/OAIDraft.cpp | 82766b4bcd16d60b29f10775ca7ebeecca9e4324 | [
"MIT"
] | permissive | MSurfer20/test2 | be9532f54839e8f58b60a8e4587348c2810ecdb9 | 13b35d72f33302fa532aea189e8f532272f1f799 | refs/heads/main | 2023-07-03T04:19:57.548080 | 2021-08-11T19:16:42 | 2021-08-11T19:16:42 | 393,920,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,782 | cpp | OAIDraft.cpp | /**
* Zulip REST API
* Powerful open source group chat
*
* The version of the OpenAPI document: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
#include "OAIDraft.h"
#include <QDebug>
#i... |
ff2552db992866e2b76cb5db849b58cb2eb88063 | f60f62d0b915df9dbea9564ae696372d47874667 | /code forces/A. Arrival of the General.cpp | 56e693e2a51c243a1ad1eaff8294b24b00f6c256 | [] | no_license | AbdelrahmanRadwan/Competitive-Programming-Staff | 1256d8615f7b445a17c9f2c53ba1461dbc385d2a | f2010a11aba7c524099a7066bebee16b29c6cd41 | refs/heads/master | 2021-01-02T09:06:48.755299 | 2017-12-15T18:50:08 | 2017-12-15T18:50:08 | 99,144,416 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | cpp | A. Arrival of the General.cpp | #include<iostream>
#include<algorithm>
#include<climits>
using namespace std;
int change(int arr[],int size,int &max,int mini)
{
int counter=0;
for(int i=mini;i<size-1;i++)
{
swap(arr[i],arr[i+1]);
counter++;
}
if(mini<max)
{
max--;
}
for(int i=max;i>0;i--)
{
swap(arr[i],arr[i-1]);
counter++;
}
retu... |
84918af4b6f39103bf851281b1e3b9471dc2cc6f | 36716f5db03da1d0de16cf9b8ab7c95db5275cfb | /epi/chapter10/1.test_if_height_balanced.cpp | ec4d6d235cb259b1450cf23a935fc3062c453239 | [] | no_license | mbiggio/cpp_algo | 831d9742bed229ff440c3f56cf898de74300814f | a33bb1c5ec8c1c08e4322ddba465dd4276bcb587 | refs/heads/master | 2020-06-14T21:52:33.342526 | 2019-07-17T07:36:25 | 2019-07-17T07:36:25 | 195,136,129 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | 1.test_if_height_balanced.cpp | #include <bits/stdc++.h>
#include "binaryTree.hpp"
using namespace std;
template <typename T>
pair<bool,int> isHeightBalancedHelper(const unique_ptr<binaryTreeNode<T>> &root) {
if (!root) return {true,-1};
int hl = -1, hr = -1;
auto pl = isHeightBalancedHelper(root->left);
if (!pl.first) return {false,0};
... |
3d3fffa6cb3f919bc5ba6ed8386c19d75208b114 | b3812a6eba173f43edbe58c67124bccdc6369489 | /Cpp/studyCPP/ds-hash.cpp | 22fee6f4622fc1aa52f0ed02ba51ad5310a20da8 | [] | no_license | OsmondYe/studyWindows | 14cf87887c97fcf03da225a17044e7ceb5b090d4 | cf0fa556eb5b8a9a52401fe212bf361047d9be95 | refs/heads/master | 2021-08-08T21:58:11.732795 | 2021-07-26T07:07:24 | 2021-07-26T07:07:24 | 124,972,867 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 373 | cpp | ds-hash.cpp | #include "pch.h"
#include "helper.hpp"
template<typename Key, typename Value>
class base_dictionary {
public:
virtual ~base_dictionary() {}
virtual bool empty() =0;
virtual int size() =0;
virtual const Value& find(const Key& key)=0;
virtual void erase(const Key& key) =0;
virtual void insert(const Key& key, const... |
28b4a5eb589df8a4af137da634751ff3c81d579f | a7128536d3a8c077251de5f3a1eaa6be2000fd21 | /test/compiling-test/compile-nothrow-assignable.cpp | a266046ee9868d73333c14b49a5a19c620c9cccc | [
"MIT"
] | permissive | Bosswestfalen/stopwatch | 1b8ead9269d3d781467a62e760c850ee86af26a9 | 32780e9a599caa17c5d7597bc7da51244c2352c6 | refs/heads/master | 2020-04-23T04:43:09.231592 | 2019-02-24T15:26:13 | 2019-02-24T15:26:13 | 170,916,705 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | compile-nothrow-assignable.cpp | #include "bosswestfalen/stopwatch.hpp"
int main()
{
unsigned tmp;
bosswestfalen::stopwatch x{tmp};
}
|
c092505d4a1c9be3375e5a610aaf2e028d8f1a8d | 005e18b6032988b395656b836eaef0db8e438e97 | /ConsentiumThings v1.1/ConsentiumThings.cpp | 045dc5671b6cc54b38854ae3c128f02672f5f1c1 | [
"MIT"
] | permissive | ConsentiumInc/Edge-Beta-Firmware | eda5abe3e459924346127abbf9b12daccc337f10 | f973db34cf47cf500dce160eb6762453448e7ab7 | refs/heads/main | 2023-06-09T14:05:18.414815 | 2021-06-30T17:04:01 | 2021-06-30T17:04:01 | 378,160,141 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,275 | cpp | ConsentiumThings.cpp | #include <ConsentiumThings.h>
#define EspBaud 115200
ConsentiumThings::ConsentiumThings(){}
bool sendAT(String command,char response[]){
Serial.println(command);
delay(5000);
if(Serial.find(response)){
return true;
}
else
return false;
}
void ConsentiumThings::connect(){
Serial.begin(EspBa... |
7d3957024cf562c6addd92d0da642eba40fe3a2b | a559776b3a8b8e21bb7041c3d76e55ac9889bfb4 | /213lizi/ZhengTaiFenBu.cpp | acfefbefdcc981c719f4a7e846034e1265d039d4 | [] | no_license | 113dilei/Test11 | 0424d8760918c726b3a2f5e112685c4d71debe4b | 850a47b75a4d43fe9739419a57ac767b3ff6ffbc | refs/heads/main | 2023-01-24T05:43:08.361299 | 2020-11-26T07:38:07 | 2020-11-26T07:38:07 | 315,935,413 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,280 | cpp | ZhengTaiFenBu.cpp | // ZhengTaiFenBu.cpp: implementation of the ZhengTaiFenBu class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "213lizi.h"
#include "ZhengTaiFenBu.h"
#include "math.h"
#define PI 3.14159
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define n... |
7c4b69795830bd07461956d5d3a3068a95b32adb | 477c64cc295740de10c54ae67c09a61d9d724677 | /Multiplication/Multiplication/Karatsuba.cpp | 465a6fac2c7f619fe5551fcadaec5b9f063a2850 | [] | no_license | yunjaena/multiplication_multicore_programming | a6f64bab1f3a092ce533cad93bdc46a9633b4d60 | 84ac86d4221bd4bb27bc79a43a2f9d7592511af2 | refs/heads/master | 2022-05-28T17:39:08.244769 | 2020-05-08T12:12:17 | 2020-05-08T12:12:17 | 256,092,214 | 5 | 0 | null | 2020-05-08T12:12:18 | 2020-04-16T02:46:43 | C++ | UTF-8 | C++ | false | false | 4,696 | cpp | Karatsuba.cpp | #include "Karatsuba.h"
#include <omp.h>
string Karatsuba::get_serial_result(const string &s1, const string &s2) {
set_vector(s1, s2);
vector<int> result = serial_karatsuba(v1, v2);
return seial_get_result_from_vector(result);
}
string Karatsuba::seial_get_result_from_vector(const vector<int> &vec) {
s... |
fe4d67fa7e9d2ceaa06b64dadf9f3acdb9674171 | 219da4ddbd1a71c50325dd6e07d3013d23655012 | /Типи даних/main3.cpp | d124638bfd4cbc0e0e8c1786861c85bf0a6a1457 | [] | no_license | rustyMacintosh/cPractice | 94fafcc52089083af9af6481402dc0de80bd0367 | 644e0096b2bc90173c89b94c56e7c740bfedbdaf | refs/heads/master | 2020-04-26T00:07:11.814674 | 2019-05-05T10:48:19 | 2019-05-05T10:48:19 | 173,167,384 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 2,099 | cpp | main3.cpp | #include <conio.h>
#include <iostream>
#include <climits>
using std::cout;
using std::cin;
using std::endl;
int main()
{
/*
ЦІЛОЧИСЛЕННІ *unsigned відрізає відємні і відповідно розширює діапазон
int a; // 4 bytes машинозалежний і може мінятися на різних системах. також він може зберігати число в інших система... |
0576b459b6e3ed9fce6ad1d65a563ad1e034cab4 | c778d082d9dcf2db72c618509bdaa46b31f2a658 | /NANO_AM2305_SD_fat_mod_nuevo_reles/EEPROM.ino | dc034416483635c5a085a8da3f25b264328ae74d | [] | no_license | CStevenO/MCI | 07793f7e3f9f989304267f2d8b3dd040618750a1 | 1cb5aae856351c2ab9f003eda51ef6ad249fe26b | refs/heads/master | 2020-12-10T14:22:40.336229 | 2020-09-30T20:51:32 | 2020-09-30T20:51:32 | 233,615,678 | 1 | 0 | null | 2020-01-14T15:43:51 | 2020-01-13T14:33:35 | C++ | UTF-8 | C++ | false | false | 502 | ino | EEPROM.ino | void cargar() {
hora1Sub = EEPROM.read(0);
min1Sub = EEPROM.read(1);
hora2Sub = EEPROM.read(2);
min2Sub = EEPROM.read(3);
////////////////////////////////////////
actHSub = EEPROM.read(10);
}
void guardar() {
lcd.clear();
lcd.setCursor(0, 0); lcd.print("Datos Guardados!");
EEPROM.write(... |
b89318504189ff6872761bf1b345dd6b1ae819dd | 216ecd2f955d333aecce9d905f42583e99794c05 | /ContinuumEngine3D/Engine/Renderer/GameObject/Model.h | 3a32967b33caea588bd89f661f1c3166305e4eeb | [
"MIT"
] | permissive | Arieandel/ContinuumEngine | 1014ca2bb395ccf5a1635e4b3282bedf0e258865 | 46688dd99195dd88ab15a4ffe0532ac03bc8e373 | refs/heads/master | 2020-05-17T16:14:52.004911 | 2019-04-27T19:38:31 | 2019-04-27T19:38:31 | 183,811,783 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | h | Model.h | #ifndef MODEL_H
#define MODEL_H
#include "Mesh.h"
#include <OpenGL/glm/gtc/matrix_transform.hpp>
#include "LoadOBJModel.h"
#include "../Graphics/ShaderHandler.h"
namespace ContinuumEngine3D {
class Model
{
public:
Model(const std::string& objPath_, const std::string& matPath_, const std::string& shaderProgram_,... |
f45a77b4064f8b9160f1efa98879a7542c24c1a2 | cba54fda668bdbadbfe04130b17d2f703a53971c | /sr2/src/items/weapons/WeaponTypeExclusionList.cpp | 933b352490dbff6bfcb530dc759cf9702747b98c | [] | no_license | Nightwind0/stonering | 85af318ad90c6698bc424c86a031481cb6d67ee0 | f6c31db3840bfdc3d9a5da7f66aed9186615a2c9 | refs/heads/master | 2021-01-17T18:45:07.301920 | 2018-08-29T20:19:56 | 2018-08-29T20:19:56 | 65,499,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 807 | cpp | WeaponTypeExclusionList.cpp | #include "WeaponTypeExclusionList.h"
#include "WeaponTypeRef.h"
using namespace StoneRing;
WeaponTypeExclusionList::WeaponTypeExclusionList()
{
}
WeaponTypeExclusionList::~WeaponTypeExclusionList()
{
// std::for_each(mWeaponTypes.begin(),mWeaponTypes.end(),del_fun<WeaponTypeRef>());
}
std::list<WeaponTypeRef*>:... |
22d8478a26ec740f137d14333a89cb83f6ac8e01 | 9c8e08103673d59d00688ba6b674f95df969e2d6 | /TP2_Filters/canny.cpp | 5aaf116f59fec0cb5d0cb567725ab0f5f4c5186a | [] | no_license | cepedus/ComputerVision | 9528fd0b99202561b5313d1be8548b28b22a31c6 | fd845a97d741c91b4be709593dca7efbae7dbb4d | refs/heads/main | 2022-12-28T10:43:00.839936 | 2020-10-16T17:18:33 | 2020-10-16T17:18:33 | 304,691,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,543 | cpp | canny.cpp | #include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <queue>
#define PI 3.14159265
using namespace cv;
using namespace std;
// Step 1: complete gradient and threshold DONE
// Step 2: complete sobel DONE
// Step 3: complete canny (recommended substep... |
feb627365471113b185163ad3e307f339412d95b | 959cd3ca5f4780ae39b6f75a16fcecac50f10583 | /Dates.h | c1238d0da9c04aab8798941ec4bd4377dc473e8e | [] | no_license | buecktobias/Praktikum_PAD4_08_06 | 55fbde7f244ce8188ed3f6a1a1b18e02ccc750c1 | b8bb80aa196653d1b0bc521df98462d038a99e45 | refs/heads/master | 2023-06-04T18:43:50.887813 | 2021-06-24T16:30:09 | 2021-06-24T16:30:09 | 379,988,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | Dates.h | //
// Created by bueck on 09.06.2021.
//
#ifndef PRAKTIKUM_PAD4_08_06_DATES_H
#define PRAKTIKUM_PAD4_08_06_DATES_H
#include "Date.h"
class Dates {
public:
static bool isSchaltJahr(Date date);
};
#endif //PRAKTIKUM_PAD4_08_06_DATES_H
|
6ef6dcfd35d5e9eee86a217653969ee8e2ef6d0d | 9c7c58220a546d583e22f8737a59e7cc8bb206e6 | /Project/MyProject/MyProject/Source/MyProject/Private/BaseFrame/Libs/Ui/Base/Form.cpp | 9c6fcc57edb8f033094dcc540baf9732998d003a | [] | no_license | SiCoYu/UE | 7176f9ece890e226f21cf972e5da4c3c4c4bfe41 | 31722c056d40ad362e5c4a0cba53b05f51a19324 | refs/heads/master | 2021-03-08T05:00:32.137142 | 2019-07-03T12:20:25 | 2019-07-03T12:20:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,641 | cpp | Form.cpp | #include "MyProject.h"
#include "UMGForm.h"
#include "Prequisites.h"
#include "UtilEngineWrap.h"
#include "PointF.h"
#include "MyGameInstanceBase.h" // UMyGameInstanceBase
#include "UMGWidget.h" // UUMGWidget
#include "WindowAnchor.h"
#include "SafePointer.h"
void UForm::loadUWidget(const TCHAR* name)
{
UClass* widg... |
1bd51f7a2fc4bd8f2c0d915b7cad13410b15324d | 506f7c7e18a20ce6fb9198bc020621273201e36b | /vm/src/any/prims/glueDefs.cpp | a61b05f73444497f61dc5fe8f30c7c49f05bca3c | [] | no_license | doublec/self | b49e5af8db3869ef3759ae7e8875bbfd8a59654c | 43ebab6c80544803afbc02847d3ae8bfc54f3c4a | refs/heads/master | 2020-12-24T23:18:25.069800 | 2015-05-25T01:58:11 | 2015-05-25T01:58:11 | 256,688 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 270 | cpp | glueDefs.cpp | /* Sun-$Revision: 30.9 $ */
/* Copyright 1992-2012 AUTHORS.
See the LICENSE file for license information. */
# include "generation_inline.hh"
# include "glueDefs.hh"
# include "space_inline.hh"
bool xlib_semaphore = false;
bool quartz_semaphore = false;
|
83757ffbfeaf3afd9fc04b8edc9eaf9d45a28c2d | 258abfd3c0ac304af263fdfff5c549e43bd18364 | /include/parAlmond/parAlmondCoarseSolver.hpp | 3cd08c7910f34d0acb28e1e785945127ad9c4969 | [
"MIT"
] | permissive | CEED/libParanumal | 6919025b47cbf877e8c59b62f6c6c9472e039f18 | cee9c5eeb1a5d95339affd384c82e582c0fedbc5 | refs/heads/master | 2023-08-17T01:15:18.143119 | 2022-06-08T00:21:50 | 2022-06-08T00:21:50 | 164,707,123 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,518 | hpp | parAlmondCoarseSolver.hpp | /*
The MIT License (MIT)
Copyright (c) 2017-2022 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus, Rajesh Gandham
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, includ... |
200d9f77f7cbb54fb43861b6870662346cf83c2a | fe3d7da03dad0238c90274283b39d0a72fa6d7f6 | /DirectShowFilters/MPAudioRenderer/source/AudioClockTracker.cpp | 6d7b013652fe03ed05ee6f92f7a1fcb935c795ac | [] | no_license | morpheusxx/MediaPortal-1 | d39f55ea833f2e236d409698f46c1e2c7f8c8b54 | 91418996e35b76f08b5885246a84f131fff0c731 | refs/heads/EXP-TVE3.5-MP1-MP2 | 2023-08-03T12:07:08.853789 | 2014-07-20T08:48:57 | 2014-07-20T08:48:57 | 11,057,754 | 1 | 4 | null | 2023-06-04T11:10:11 | 2013-06-29T19:00:10 | C# | UTF-8 | C++ | false | false | 2,487 | cpp | AudioClockTracker.cpp | // Copyright (C) 2005-2012 Team MediaPortal
// http://www.team-mediaportal.com
//
// MediaPortal 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 2 of the License, or
// (at your option)... |
f7e9c8a55229792d64c991b40370a249f3ac61ed | 78e2c512ca819c2dddb72ced9f48b35f430daba1 | /Europa v6s/Europa v6/CMesh.cpp | b1c7b46ce590b391ccbe0e1c9fa017911df0f1b3 | [] | no_license | thedarkprincedc/Europa | 5bd0225d3b14c8e46b9f24b3531ef7b9b4fe4e7c | 67d8b871485668ec014bec0ac4f734543956ad09 | refs/heads/master | 2021-01-18T13:58:34.223954 | 2014-12-04T04:52:31 | 2014-12-04T04:52:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,871 | cpp | CMesh.cpp | #include "./CMesh.h"
CMesh::CMesh(IDirect3DDevice9* pDevice, char *pszFilename, char *pszTexturepath)
{
LoadMesh(pDevice, pszFilename, pszTexturepath);
}
HRESULT CMesh::LoadMesh(IDirect3DDevice9* pDevice, char *pszFileName, char *pszTexturePath)
{
ID3DXBuffer *adjBuffer = 0;
ID3DXBuffer *mtrlBuffer = 0;... |
b2cbc5f008b6fe8fc6d42a9e01c452ca6ef085ea | dfa6ddf5fb513d553d43a028add28cdf40b46249 | /719. Find K-th Smallest Pair Distance.cpp | f83cb7009ea443dc710020f4f45604a16132884b | [] | no_license | brucechin/Leetcode | c58eb6eedf3a940841a0ccae18d543fd88b76f65 | 798e6f1fa128982c7fd141a725b99805131361cb | refs/heads/master | 2021-11-22T14:31:53.143147 | 2021-10-08T06:50:28 | 2021-10-08T06:50:28 | 109,366,643 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,193 | cpp | 719. Find K-th Smallest Pair Distance.cpp | /*
The distance of a pair of integers a and b is defined as the absolute difference between a and b.
Given an integer array nums and an integer k, return the kth smallest distance among all the pairs nums[i] and nums[j] where 0 <= i < j < nums.length.
Example 1:
Input: nums = [1,3,1], k = 1
Output: 0
Explanation... |
5bf8c3da8805a752d0726caa709eb7cfb6474c5d | 151b1ed23a4d972582cdd26b21c49d8689c804bb | /eventlib/eventI_noninv_infY.cc | 0ff01697abb1e168c625e607174924bece4f83ca | [] | no_license | Chuzzle/masters_thesis | 63cf48996c35e6752f82e4ef169d6bace16e83eb | f785d0d6a4ddc45490f73c343fc23d7c686c631a | refs/heads/master | 2020-05-21T19:10:22.282789 | 2017-08-12T18:01:28 | 2017-08-12T18:01:28 | 61,619,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 441 | cc | eventI_noninv_infY.cc | #include "eventI_noninv_infY.h"
using namespace std;
double EventI_noninv_infY::update_prob(double t) {
prob = constants.get_prob("PROB_NON_INVASION_INVASIVE") * pop.get_pop("YOUNG_INF_INVASIVE");
return prob;
}
void EventI_noninv_infY::execute_event() {
pop.move_pop("YOUNG_INF_INVASIVE", "YOUNG_CARRIERS_INVAS... |
ad486586c2c0e77bc67d8c18f7b3df1f6820220d | 0681a9fd09f690149472c28587e2ed387c449ab5 | /src/model/cell.cpp | adcc59b3f8e46c9695a4fab314ea0df7dac46222 | [] | no_license | zhzh2001/tnpquest | 8b50c857cf5d6b8032d873d82bb0876dabd1f9ee | 26d0e4540bbc9b309460f4a886e500856551193f | refs/heads/master | 2022-09-09T10:16:29.394325 | 2022-08-28T03:55:12 | 2022-08-28T03:55:12 | 202,351,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,896 | cpp | cell.cpp | #include "cell.h"
#include "enemy.h"
#include "star.h"
#include "../utils/utils.h"
#include "../utils/msgbox.h"
#ifdef _WIN32
#include "../pdcurses/curses.h"
#else
#include "../ncurses/ncurses.h"
#endif
#include <typeinfo>
Cell::Cell() : visibility(none), item(nullptr), terrain(nullptr), star(nullptr) {}
... |
f6c3e91d9f5185340c27ad9caab732a455df0dd7 | 8dfc879a6e98055a5d62b334b56f5e2c1f278913 | /AtCoder/contest_atcoder/ABC118/proC.cpp | 33e71e7007ed606189befb094c3ed0d09cd6ff7c | [] | no_license | sitRyo/templateCpp_atcoder | fcdad44ea348c76a9bde4a320cf2925df7d8a751 | cec7103ab55af136a8fb03efdaae0a9c2b460ff5 | refs/heads/master | 2021-06-25T19:33:31.043330 | 2019-06-20T06:57:57 | 2019-06-20T06:57:57 | 142,314,195 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,351 | cpp | proC.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <functional>
#include <queue>
#include <string>
#include <cstring>
#include <numeric>
#include <cstdlib>
#include <cmath>
#include <map>
#include <set>
using namespace std;
typedef long long ll;
#define INF 10e17 // 4倍しても(4回足しても)lon... |
d11fbb0a6641af42a5bdaec5f43f2bf7d5004bbf | dcbf00e94e3f01ad549f63e41b0590f5833f6ca8 | /source/projects/abc.audio_tilde/abc.audio_tilde.cpp | a6a55ad62070e65aa668599228c50fafc54f590e | [] | no_license | Badokas/max-external | 58c95cfdd2ec0251cb5b92e9700b0d710998b890 | 298fd99da962ce051aac8846404f70750b0e5e22 | refs/heads/master | 2022-10-29T07:47:39.473908 | 2020-06-10T08:51:45 | 2020-06-10T08:51:45 | 220,852,807 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,572 | cpp | abc.audio_tilde.cpp | #include "c74_msp.h"
#include "c74_common.h" // for usage of Attributes
using namespace c74::max;
#define OBJECT_NAME "abc.audio~" // name of the object
static t_class *this_class = nullptr; // required global pointer to this class
typedef struct _abc
{
t_pxobject x_obj;
t_symbol name; // used in Attribut... |
ff51348bb34486f4ea08411f877d9b9e3f8d51aa | 385476063e09e7c629bb4796c6d59e9be3e1fb6d | /src/main.cc | ee173384249fb127a0e100f41c3a14136c13ede9 | [
"BSD-2-Clause"
] | permissive | interval1066/filecryptor | 57e2fa2366516dc0fc5c8534fecda4c36c783305 | 323b78651d04e73a20f4ebdd0563462d55dfad53 | refs/heads/main | 2023-04-12T02:38:08.967891 | 2021-05-19T22:53:44 | 2021-05-19T22:53:44 | 328,503,171 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 362 | cc | main.cc | #include "include/mainwindow.h"
#include <QApplication>
#include <QSharedMemory>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
QSharedMemory shared("c53d1e4a-7b10-40a2-8a77-7b0f8e1a357a");
if(!shared.create( 512, QSharedMemory::ReadWrite))
exit(0);
... |
573dd2d6a8f67b6a95c6bba358fb873f57c9411a | 51635684d03e47ebad12b8872ff469b83f36aa52 | /external/gcc-12.1.0/libstdc++-v3/testsuite/20_util/optional/84601.cc | fbfa8fdeebf23fab14f7134ec3c131073b90977d | [
"LGPL-2.1-only",
"GPL-3.0-only",
"GCC-exception-3.1",
"GPL-2.0-only",
"LGPL-3.0-only",
"LGPL-2.0-or-later",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | zhmu/ananas | 8fb48ddfe3582f85ff39184fc7a3c58725fe731a | 30850c1639f03bccbfb2f2b03361792cc8fae52e | refs/heads/master | 2022-06-25T10:44:46.256604 | 2022-06-12T17:04:40 | 2022-06-12T17:04:40 | 30,108,381 | 59 | 8 | Zlib | 2021-09-26T17:30:30 | 2015-01-31T09:44:33 | C | UTF-8 | C++ | false | false | 429 | cc | 84601.cc | // { dg-do compile { target c++17 } }
#include <optional>
#include <utility>
using pair_t = std::pair<int, int>;
using opt_t = std::optional<pair_t>;
static_assert(std::is_copy_constructible_v<opt_t::value_type>);
static_assert(std::is_copy_assignable_v<opt_t::value_type>);
static_assert(std::is_copy_assignable_v<... |
fb173d46e7dbd1c3de509dab97b1a74d772c4c44 | 7c104ee1b6b00343f9f436a3374aaeec132584c9 | /DXRPG.Engine/Platform/Common/World/Map/Map.cpp | c58b2e68114b023bc29b20196c40e6e281601e76 | [] | no_license | FBLipke/DXRPG-Engine | 5885480ce124a50d0dd0ed33e236174f549c6cd4 | 94aa0308ece33a05ef374c4610df28413c0472aa | refs/heads/master | 2020-08-02T09:12:33.048408 | 2019-09-28T16:58:19 | 2019-09-28T16:58:19 | 211,299,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | cpp | Map.cpp | #include <Platform/Platform.h>
Map::Map(const glm::vec3& mapSize)
{
this->mapSize = mapSize;
}
Map::~Map()
= default;
void Map::Add_Layer(const int& layerId, const glm::vec3& size)
{
this->map_layers.emplace_back(layerId);
for (auto iY = 0; iY < size.y; iY++)
{
for (auto iX = 0; iX < size.x; iX++)
{
this... |
cf90c67d4c15d021cbb584a9bc12c87137352de2 | 0490f71df4da7778d5555ffbfabd5af7d6a415d1 | /apps/RAMDanceToolkit/src/scenes/Future/Future.h | 74b8d8f0fecb7b03b8513654e82b34aeb17d7208 | [
"Apache-2.0"
] | permissive | ofxyz/RAMDanceToolkit | 050d231266b1318db7b921a732ac1d2efc5ea108 | 5db15135f4ad6f6a9116610b909df99036f74797 | refs/heads/master | 2021-05-23T18:42:04.342125 | 2018-02-09T02:57:07 | 2018-02-09T02:57:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,535 | h | Future.h | //
// Future.h - RAMDanceToolkit
//
// Copyright 2012-2013 YCAM InterLab, Yoshito Onishi, Satoru Higa, Motoi Shimizu, and Kyle McDonald
//
// 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
... |
6d476af2cde86ff9cb19fcb4bed8b02eb7547d68 | 58158c18390549157070514f34c56e85188327af | /[Codeforces 997C] Sky Full of Stars.cpp | 27f0ac248b97b13bbf6a61be32c1d2330159bf71 | [] | no_license | TosakaUCW/Solution_Source_Code | 8c24e3732570bb813d5d713987a99fea17618e1f | 8469cc7a177ed17e013a5fb17482983d8e61911e | refs/heads/master | 2021-11-26T21:23:50.423916 | 2021-11-19T02:34:01 | 2021-11-19T02:34:01 | 149,946,420 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,432 | cpp | [Codeforces 997C] Sky Full of Stars.cpp | #include <stdio.h>
#include <algorithm>
#define int long long
int read(int x = 0, int f = 0, char ch = getchar())
{
while ('0' > ch or ch > '9')
f = ch == '-', ch = getchar();
while ('0' <= ch and ch <= '9')
x = x * 10 + (ch ^ 48), ch = getchar();
return f ? -x : x;
}
const int N = 1e6 + ... |
15d6749de532fa637029dcb02361e350a563103d | 57df95c78857a9a421a60537c78d4ea9154a5e3e | /minigl.cpp | be7ac57fadcabc13c950dbdc881b5252f6fc1243 | [] | no_license | anoopjk/OpenGLPipeLine | 9b9887ce92eebb635dc876ccf232efa42eb4fb85 | 27f3a5ca0a3d772d456e4324de3d3bb199042d73 | refs/heads/master | 2020-06-27T05:01:17.030283 | 2017-08-09T01:38:13 | 2017-08-09T01:38:13 | 97,046,985 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,647 | cpp | minigl.cpp | /**
* minigl.cpp
* -------------------------------
* Implement miniGL here.
* Do not use any additional files
*/
// #includes of all the necessary libraries
#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
#include <cstdio>
#include <cstdlib>
// including the minigl header fi... |
24400a7c1ab4e17259d41879475c7948ac75a872 | 464b8d5c5cc9b459f68cd0f443bd69cff110303a | /src/os_x/read_benchmark.cpp | 1a6549d271bd09080d3567186e55df61ae2637ea | [
"CC-BY-4.0"
] | permissive | lukaspustina/io_benchmark | 62958d1191656378613b09db2e6761dadfae35be | 2581a2b738b275821892547e41ce544dffe265ce | refs/heads/master | 2020-06-27T07:04:21.545795 | 2019-08-04T07:51:21 | 2019-08-04T07:51:43 | 199,878,851 | 0 | 0 | null | 2019-07-31T15:05:34 | 2019-07-31T15:05:33 | null | UTF-8 | C++ | false | false | 6,091 | cpp | read_benchmark.cpp | /*
** File Name: read_benchmark.cpp
** Author: Aditya Ramesh
** Date: 06/03/2014
** Contact: _@adityaramesh.com
**
** This is a simple benchmark that compares various methods for sequentially
** reading a file.
*/
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <cstdint>
#include <functional>
#incl... |
fe58a3f4bd75b33d2e3b6451ba39419ebce2831e | 38e2760e5687d7447f006179696b2ac695f9e346 | /index.h | 94c53b19698dae9fff531c74e8944ed690ac20f1 | [
"MIT"
] | permissive | lehoangha/tomo2d_HeriotWatt | c96d735ec9eff3814064f7251b8ac1fe1dab036e | 48477115ed2455a8255521570e4e81ffe754be08 | refs/heads/master | 2021-01-10T08:37:27.282716 | 2015-10-02T12:31:24 | 2015-10-02T12:31:24 | 43,548,323 | 3 | 2 | null | 2015-10-04T08:18:14 | 2015-10-02T11:01:13 | C++ | UTF-8 | C++ | false | false | 391 | h | index.h | /*
* index.h
*
* Jun Korenaga, MIT/WHOI
* January 19999
*/
#ifndef _TOMO_INDEX_H_
#define _TOMO_INDEX_H_
class Index2d {
public:
Index2d(){}
Index2d(int i1, int i2){ i_[0]=i1; i_[1]=i2; }
int i() const { return i_[0]; }
int k() const { return i_[1]; }
void set(int i1, int i2) { i_[0]=i1; i_[... |
0666991471147f084b4998fd44d734f6b4a4f86a | 8450b112624cb33e8062e307f04cb66df0634606 | /common_knowledge/references/test4.cpp | 93f5a98ac4d103e9801756a4942bba861e1f9b5d | [] | no_license | pcbhanjdeo/codeprac | 870a86aca3494b7437f8fd9174ee0e780d0b0267 | 13989ca49dfce43062682680a7faa2ebccee150e | refs/heads/master | 2021-01-22T09:58:03.497583 | 2015-11-07T18:40:29 | 2015-11-07T18:40:29 | 15,540,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | cpp | test4.cpp | #include <iostream>
using namespace std;
int f(const int& a)
{
cout <<"inside function f val of a = " << a << endl;
return a;
}
int main()
{
cout <<"enter main" << endl;
f(10);
return 0;
}
|
f983acd4d49fb961da4f63deb55f2253e3bebb32 | 2d5b147e9fce070bc2a21a22a6b71c8b3a7cde30 | /gotocomm.h | 6fe2c1971cb2ca8d1fb13a6d82bb6c412222cf84 | [] | no_license | AnthonyGOAT/Interactive-Fiction-Interpreter | 90ad49a014c169fce9cd35b4675e941c4cafa4e8 | 0fed4e44c4f8d4114661b76b5222b2ebe06bc786 | refs/heads/master | 2020-07-19T14:56:03.438336 | 2019-09-05T03:56:52 | 2019-09-05T03:56:52 | 206,468,162 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | gotocomm.h | #ifndef __GOTOCOMM_H__
#define __GOTOCOMM_H__
#include <string>
#include <iostream>
#include <sstream>
#include "part.h"
class GoToComm : public Part{
private:
string target;
public:
GoToComm(PartToken& in);
virtual void print();
virtual string getTarget() const {retur... |
6403afcf28083123fb44a87541439ba56746d8b3 | b8f2cf6a2e6bd435455091e517cbe38616927473 | /WhileIf.h | 812c84f2cdb139d37695d5e58758818f751390e6 | [] | no_license | wszeborowskimateusz/ScriptLanguage | 2706325e055a01d1142a16f0e43f215966f0eeb8 | 49477cc3d8bb648d354338814ce6203218c231c9 | refs/heads/master | 2021-04-30T03:48:02.264912 | 2018-02-14T14:53:42 | 2018-02-14T14:53:42 | 121,522,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | h | WhileIf.h | #pragma once
#define MAX_SIZE 300
#include "KodWhileIf.h"
#include "Int.h"
class WhileIf
{
public:
char*warunek;
KodWhileIf* first;
KodWhileIf* last;
char* getWarunek() { return warunek; }
void setWarunek(char* war);
void addWhile();
void addIf();
void addIns(char * instrukcja, Int** z... |
55032ff12f227463a9b886c66a1ce94712207a02 | 2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5 | /src/plugins/intel_gpu/src/graph/include/strided_slice_inst.h | d51f7a3c783eb77235f9adba6a343126c6be6aa3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | openvinotoolkit/openvino | 38ea745a247887a4e14580dbc9fc68005e2149f9 | e4bed7a31c9f00d8afbfcabee3f64f55496ae56a | refs/heads/master | 2023-08-18T03:47:44.572979 | 2023-08-17T21:24:59 | 2023-08-17T21:24:59 | 153,097,643 | 3,953 | 1,492 | Apache-2.0 | 2023-09-14T21:42:24 | 2018-10-15T10:54:40 | C++ | UTF-8 | C++ | false | false | 1,523 | h | strided_slice_inst.h | // Copyright (C) 2018-2023 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include "intel_gpu/primitives/strided_slice.hpp"
#include "primitive_inst.h"
#include <string>
#include <vector>
namespace cldnn {
template <>
struct typed_program_node<strided_slice> : public typed_program_node_ba... |
0219c28df67d185927a87b14ce9dbdff3220afba | 4f4b084a889207c4b38817b8b3a36e9c4b1d9739 | /Source/InventorySystem/Private/Inventory/Actors/PreviewActor.cpp | ef74ddc8931c8a31cf694c58170244d0f2b58d5e | [
"MIT"
] | permissive | phalasz/Threshold | adfa4bd582e55a7609056e1bc5ce2d81cb18f779 | b0178e322548ca7cbe31cbf26943df3d4c616c8a | refs/heads/master | 2023-01-13T22:24:11.338463 | 2020-11-17T21:00:23 | 2020-11-17T21:00:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | PreviewActor.cpp | // Copyright (c) 2020 Spencer Melnick
#include "Inventory/Actors/PreviewActor.h"
// APreviewActor
// Component name constants
FName APreviewActor::OriginComponentName(TEXT("RootComponent"));
// Default constructor
APreviewActor::APreviewActor()
{
// Create an empty scene component to serve as a center point... |
12b01834b08a7286407a26faa6e0bb67bd613cbb | 85aed0bcac5d6aea781dff64029c2d23fcba984b | /RanClientUILib/Interface/VideoOption.h | d885603cbba9d26396dbd66e18795f99fa6fc482 | [] | no_license | youdontknowme17/ura | 3c76bf05eccd38b454b389841f1db49b59217e46 | e31bc9fd9c2312175d250dc4dc1f9c656c7f2004 | refs/heads/master | 2020-03-28T15:49:00.379682 | 2018-09-15T09:57:49 | 2018-09-15T09:57:49 | 148,628,762 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,152 | h | VideoOption.h | #pragma once
#include "../EngineUILib/GUInterface/UIGroup.h"
class CBasicTextBox;
class CBasicButton;
class CD3DFontPar;
class CBasicComboBox;
class CBasicComboBoxRollOver;
enum EMSCREEN_FORMAT;
#define DEFAULT_OPTION_SIZE 4
#define DEFAULT_ZOOM_SIZE 3
class CBasicVideoOption : public CUIGroup
{
static const char ... |
8994fedabc1fc22b136f51584855bb4222fe1857 | ccb3b042a3ea1cb921a8c320e335146aeed0a272 | /stdafx.cpp | 59b5291aeb4da9ff038fcde934d9036ba69df53d | [] | no_license | thilovonbraun/bird | 7db96560631a2ea9f468a61e3695c229b1bec810 | f1d04a6ed9244ca4c153646eb02c964c693e85b9 | refs/heads/master | 2020-05-18T01:24:24.820365 | 2012-08-17T21:06:16 | 2012-08-17T21:06:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | stdafx.cpp | // Copyright (c) 2012 Thilo von Braun
// Distributed under the EUPL v1.1 software license, see the accompanying
// file license.txt or http://www.osor.eu/eupl/european-union-public-licence-eupl-v.1.1
// stdafx.cpp : source file that includes just the standard includes
// BiRD.pch will be the pre-compiled header
// std... |
75d7a2956e0184bf8f380cc4bedd9f5380113708 | 4e530e2a28cd0f0d30b488f66997f300b053e3dc | /OperatorOverloading/Room.h | db84b6c4270acc792374f4ad013df559d2515d15 | [] | no_license | sodell72/OperatorOverloading | 8a62cd855776cde2f6777376973c23dd217bbc22 | 4f93462429d6e55b864e1af164aab2b5b914a599 | refs/heads/master | 2020-04-20T17:25:32.511064 | 2019-02-03T20:07:13 | 2019-02-03T20:07:13 | 168,988,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | Room.h | #pragma once
#include<string>
class Room {
private:
std::string name;
double cost;
static int unNamedRooms;
static const int minCost = 1000;
public:
Room();
Room(std::string, double = 0);
~Room();
std::string getName();
double getCost();
Room operator+(const Room &rm) const;
Room operator+=(const Room &... |
b6fcc23e3204d3f6aa03d4269b9cf96cf7d46c00 | c5ca8f817997f2933d20bbcd4cfb016933bc9dad | /ext/MitsubaLoader/CMitsubaPipelineMetadata.h | 518706fe9f1789af1977d3e4c32040d78df441b7 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | VisarBuza/Nabla | 0a873a5bd79f2e496ae7496afdd1203f44233f6c | 881deedeac39b6141d061756fa9b00951fb57f28 | refs/heads/master | 2022-12-25T02:57:47.612218 | 2020-10-07T18:54:15 | 2020-10-07T18:54:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,488 | h | CMitsubaPipelineMetadata.h | // Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#ifndef __IRR_C_MITSUBA_PIPELINE_METADATA_H_INCLUDED__
#define __IRR_C_MITSUBA_PIPELINE_METADATA_H_INCLUDED__
#include "irr/core/IRe... |
b2002f72ee90d6526dd28d3c65bce3ba016e8ffe | 0128e9ecab5239a135682412e9b41479e1f05f19 | /lib/ops/reduce_boxes_only_op.cc | 0cc00d814d66f47bc446f7ba87541c34f9c8ea5f | [] | no_license | LuoweiZhou/detectron-vlp | e29dd777c135359dd15af364aecde3b8c6baabe8 | aa22e50935b463e52d69bd790b2d8351bc26014e | refs/heads/master | 2021-06-23T03:55:36.886160 | 2020-11-21T04:12:38 | 2020-11-21T04:12:38 | 140,052,204 | 21 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 5,585 | cc | reduce_boxes_only_op.cc | #include "reduce_boxes_only_op.h"
using std::pair;
using std::make_pair;
using std::priority_queue;
namespace caffe2 {
namespace {
// to compare two values
template <typename T>
struct _compare_value {
bool operator()(
const pair<T, int>& lhs,
const pair<T, int>& rhs) {
return (lhs.first > rhs.fir... |
e93e7885bb12538804bb16aa720ce56ef2d0dc07 | a4515918f56dd7ab527e4999aa7fce818b6dd6f6 | /Data Structures/LinkedLists/linked_list_decimal_equivalent.cpp | a96d20bf4bc93fb21b2f09cbff463aa84c96a45f | [
"MIT"
] | permissive | rathoresrikant/HacktoberFestContribute | 0e2d4692a305f079e5aebcd331e8df04b90f90da | e2a69e284b3b1bd0c7c16ea41217cc6c2ec57592 | refs/heads/master | 2023-06-13T09:22:22.554887 | 2021-10-27T07:51:41 | 2021-10-27T07:51:41 | 151,832,935 | 102 | 901 | MIT | 2023-06-23T06:53:32 | 2018-10-06T11:23:31 | C++ | UTF-8 | C++ | false | false | 737 | cpp | linked_list_decimal_equivalent.cpp | #include <bits/stdc++.h>
using namespace std;
struct Node
{
int data;
Node *next;
};
void push(Node **head, int new_data)
{
Node *new_node = new Node;
new_node->data = new_data;
new_node->next = (*head);
(*head) = new_node;
}
void printList(Node *head)
{
Node *temp = head;
while(temp !=... |
d251d54a0cb7151752650456ace26a1985ca5b34 | 6000873cbd6ba769f87205d03989a09415c04000 | /mill/peoplemgr.h | 9a6b1463669fb095397c25eae94efbaa4123f35d | [] | no_license | timepp/mill | 251657320508dbd5652a24a7b1d2f8630a8d8071 | aacabaa92937ce3a2a7b5683920f34e1cb921716 | refs/heads/master | 2021-01-20T08:49:07.247306 | 2012-10-22T10:55:56 | 2012-10-22T10:55:56 | 5,385,304 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,709 | h | peoplemgr.h | #pragma once
#include "serviceid.h"
#include <tplib/include/service.h>
#include <string>
#include <vector>
#include <map>
#include "mill.h"
struct People
{
std::wstring name;
std::wstring gender;
std::wstring contact;
std::wstring pinyin;
time_t birthday;
std::wstring idnumber;
std::wstring address;
std::wstr... |
cdb976b7f8d2f4a29b2bfee43627a005f4b2f957 | 277af3cd48d2fc481b85cad361ac11d95985bebf | /01_C++_Programs/07_deci_to_bin_hex_oct_vice_versa/07_deci_to_bin_hex_oct_vice_versa.cpp | 02b9ebbf005e90b0c0bc4bf00c4fd0a67dff0400 | [] | no_license | AbhiAbzs/CIS_Training | 8864bb4b38fb0fb6f835b3290f782481364707ca | 7fc4cc79f1b7d89c63c22707b214728478936199 | refs/heads/master | 2020-04-17T17:38:08.662662 | 2019-02-12T15:01:17 | 2019-02-12T15:01:17 | 166,469,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,304 | cpp | 07_deci_to_bin_hex_oct_vice_versa.cpp | /*
* Write a program to convert decimal to binary, octal, hexadecimal & vice versa.
**/
#include <iostream>
#include <string>
#include <string.h>
using namespace std;
//For decimal to any.
void deci2any();
string deci2bin(int);
string deci2oct(int);
string deci2hex(int);
//For binary to any.
void ... |
fabc3e6cec0004e4dc4b55cfaac41ad8200014fc | d860a2c1fa8fffc76a9101e4f91cecc80c27e802 | /hihocoder/weekly/053_1184_连通性二·边的双连通分量.cpp | f2522591539d48059e674113fe077f46c25489fb | [] | no_license | heroming/algorithm | 80ea8f00ac049b0bc815140253568484e49c39e3 | 18e510f02bff92bc45cceb7090a79fbd40c209ec | refs/heads/master | 2021-01-19T01:27:31.676356 | 2019-06-09T08:51:16 | 2019-06-09T08:51:16 | 62,952,889 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,232 | cpp | 053_1184_连通性二·边的双连通分量.cpp | /*
* Author:heroming
* File:heroming.cpp
* Time:2017/01/14 07:45:56
*/
#include <vector>
#include <list>
#include <set>
#include <map>
#include <deque>
#include <queue>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <io... |
b297ee03d27fe5fd18285a37dc733e76a80c68b5 | a2d63ccd34ded40c1323673dbc97eafafdba36f7 | /src/Configuration.cpp | 949f0a18606716e0bb0f9142c74ac07ccab8dd7e | [] | no_license | viniciusbandeira/Dauphine | 47ea464b7b81cae59e4f865f089174a34b1bed19 | a51f222cbb96bbfef3e2a91ed9d089944a2ded90 | refs/heads/master | 2021-08-22T19:40:51.261964 | 2017-11-18T06:14:07 | 2017-11-18T06:14:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,840 | cpp | Configuration.cpp | /* Dauphine
* Universidade de Brasília - FGA
* Técnicas de Programação, 2/2017
* @Configuration.cpp
* Game configuration class
* License: Copyright (C) 2014 Alke Games.
*/
#include "Configuration.h"
#include "LuaScript.h"
// Default screen ratio is 16:10
const unsigned int Configuration::resolutionWidth = 192;... |
a089da655fa23af7de1e2c2130484f9a4b655584 | 8a87f5b889a9ce7d81421515f06d9c9cbf6ce64a | /3rdParty/boost/1.78.0/boost/interprocess/smart_ptr/scoped_ptr.hpp | f480428ca894f884151ca05c17d6dd158dd254a8 | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"ICU",
"Zlib",
"GPL-1.0-or-later",
"OpenSSL",
"ISC",
"LicenseRef-scancode-gutenberg-2020",
"MIT",
"GPL-2.0-only",
"CC0-1.0",
"LicenseRef-scancode-autoconf-simple-exception",
"LicenseRef-scancode-pcre",
"Bison-exception-2.2",
"LicenseRef-scancode... | permissive | arangodb/arangodb | 0980625e76c56a2449d90dcb8d8f2c485e28a83b | 43c40535cee37fc7349a21793dc33b1833735af5 | refs/heads/devel | 2023-08-31T09:34:47.451950 | 2023-08-31T07:25:02 | 2023-08-31T07:25:02 | 2,649,214 | 13,385 | 982 | Apache-2.0 | 2023-09-14T17:02:16 | 2011-10-26T06:42:00 | C++ | UTF-8 | C++ | false | false | 5,921 | hpp | scoped_ptr.hpp | //////////////////////////////////////////////////////////////////////////////
//
// This file is the adaptation for Interprocess of boost/scoped_ptr.hpp
//
// (C) Copyright Greg Colvin and Beman Dawes 1998, 1999.
// (C) Copyright Peter Dimov 2001, 2002
// (C) Copyright Ion Gaztanaga 2006-2012. Distributed under the Bo... |
aa52c795b076c00d4d45b9d502e2e2a7879d6c2f | 4622e2012258d10738b6de76467df4963f03d121 | /src/Common2/Common2/Container/Interface/istring.hpp | 72c9928ffc6e29765a09bb74ae2e42695a27ea5b | [] | no_license | ldalzotto/Engine | d4389fe0009d9df704dcafb4c9de51e7c909855a | a3dfa3dd5d4da8af3a3d62f93e1185cb8073f7b2 | refs/heads/master | 2023-06-28T01:16:34.554196 | 2021-06-28T05:30:13 | 2021-06-28T18:05:14 | 331,091,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | hpp | istring.hpp | #pragma once
template <class _String> struct iString
{
_String& string;
inline void append(const Slice<int8>& p_elements)
{
this->string.append(p_elements);
};
inline void insert_array_at(const Slice<int8>& p_elements, const uimax p_index)
{
this->string.insert_array_at(p_elem... |
82ca8d0d61dd2c89bed6ca5b9c725c2c261521fd | 902fc8de6c8eae81f3d379ff98e48ea832a68dc5 | /src/toxi/geom/mesh/STLWriter.h | 277d6b6fbb07848604cb7b9f8500dab53d9ec6e2 | [] | no_license | Jornason/ofxToxiclibs | d4dfa3105925ebea3f24ff6cdc9547cae270f998 | abe4fe29fd04ea7772dad8a47688b2bb00b6a2b1 | refs/heads/master | 2021-01-15T20:08:23.534814 | 2013-10-06T18:56:02 | 2013-10-06T18:56:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | STLWriter.h | #pragma once
#ifndef __STLWRITER_H__
#define __STLWRITER_H__
#include <string>
//#include "../Vec3D.h"
#include "Vertex.h"
namespace toxi
{
namespace geom
{
namespace mesh
{
class STLWriter
{
public:
STLWriter(void);
~STLWriter(void);
void beginSave( std::string path, int numFaces );
... |
bfbfc4acb6aea981d3ab4c4456868150a25adbb9 | d4d7fd0a4521b9f8d99d69ad50a38cd29642bec5 | /HConfig.cpp | 4a9a58121b4bfb500dda5a42b9c004674fc0d42e | [] | no_license | Servayejc/Home | eb60e7621d4135dc3cdd6785b96f95b871b8453b | 1cba4d2590adb22ddaa2ed19bd1a4fae6ddfc1db | refs/heads/master | 2016-08-04T18:52:34.811576 | 2015-04-19T01:20:13 | 2015-04-19T01:20:13 | 29,815,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,292 | cpp | HConfig.cpp | #include <EEPROMEx.h>
#include "HConfig.h"
#include "Globals.h"
#include "Utils.h"
HConfig::HConfig()
{
}
byte HConfig::calcTime(byte H, byte M) {
return H*6 + M/10; // period of 10 minutes
}
void HConfig::setDefaultConfig() {
for (byte c = 0; c < 6; c++) {
for (byte g = 0; g < 2; g++) {
setTime(c, g, c, calc... |
700586cd2806c08f61a66bb898f138c6a2582944 | 283394dd0e0fa94ec07795114cd5d353073065f7 | /base64.cpp | 547f7f6bc07e73222cae69cdacba68e99ab57714 | [] | no_license | gitdxj/simple-SMTP-server | 5122aa286713141369c03f2a96bcdc9d317fde92 | f8657e6c35ec8065cf97cefd09ebb7408f017473 | refs/heads/master | 2020-04-14T01:52:58.410778 | 2018-12-30T08:01:35 | 2018-12-30T08:01:35 | 163,571,609 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,946 | cpp | base64.cpp | #include "base64.h"
using namespace std;
char* base64_decode(char *s) {
char *unit = s, *e, *r, *_ret;
int len = strlen(s);
unsigned char i;
e = s + len;
len = len / 4 * 3 + 1;
r = _ret = new char[len];
while (unit < e) {
for (i = 0; unit[0] != Alp[i] && i < 64; i++)
... |
851fb9d77d9605922229ee16e9247dd703fc2236 | c10a283ad259089ef4955b0cd4c3378436fbc1a2 | /Client/Library/Project/BaseClass/DShowAPI.cpp | 111a5c7b6282536ea16c1c55be51668a8bc8a8b2 | [] | no_license | sunjiangbo/NetRadio-1 | d829248c2703b9ac3b4cde33492f7d84244b3925 | 8d86116268963952364ab0325f53f494e1124eab | refs/heads/master | 2020-05-01T07:51:39.857544 | 2012-07-05T08:40:01 | 2012-07-05T08:40:01 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 32,123 | cpp | DShowAPI.cpp | #include <string>
#include "DShowAPI.h"
#pragma warning(disable : 4996)
// 文件相关
//=============================================================================
// Filter是否已注册
BOOL IsFilterRegistered(CLSID FilterID)
{
IBaseFilter * pFilter = NULL;
if (SUCCEEDED(CoCreateInstance(FilterID, NULL, CLSCTX_INPR... |
9c7e16463be4c38827f77c7c96cc8a44750f985d | 07dbd95507b1acf1bd8587e669b8ea8df2052ea5 | /Trainings/2018My_All/2018.9.12/G.cpp | 943aae1c45b7ddef4b969ce7b05be8c01d238fd5 | [] | no_license | LargeDumpling/Programming-Contest | 20fc063a944253da9f0a96d059c3fd4c0f6917ad | 001f75b6bc4af6f63bd2c250d649b70b77f92ebe | refs/heads/master | 2021-06-21T12:01:23.015714 | 2019-09-16T14:13:08 | 2019-09-16T14:13:08 | 107,221,521 | 0 | 0 | null | 2017-10-18T14:38:35 | 2017-10-17T05:22:16 | C++ | UTF-8 | C++ | false | false | 1,382 | cpp | G.cpp | /*
Author: LargeDumpling
Email: LargeDumpling@qq.com
Edit History:
2018-09-12 File created.
*/
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<algorithm>
#define INF f[14][2049]
using namespace std;
const int MAXV=2050;
const int MAXN=15;
int v,n;
int cnt[MAXN],f[MA... |
97dfaba1bdb2a67f623eff33a62e21778dc4811d | dad702b35a39f0a87fa8ff296c6a2fca2e08c9ff | /gxemul/tags/0.5-devel/src/ir/IRBackend.cc | fe017cc67fd730a4871b9df8a288b1a7a208ada0 | [
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | skrll/gxemul | d207f28ea004ce83626557f0ae8acfef1333b496 | 609431d26909b6e4d99530ba752331d6934a60b0 | refs/heads/master | 2023-07-08T14:39:10.702343 | 2021-08-21T10:49:03 | 2021-08-21T14:10:39 | 394,869,934 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,222 | cc | IRBackend.cc | /*
* Copyright (C) 2009 Anders Gavare. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... |
f17aeb9a1ea12ffb016d61ad10e4cf4c76ef1b3c | 09989042f69b1f10ea7c9f6c669ff491a5991f34 | /tuioRect/src/ofApp.cpp | 9012696a4659c2cb129d25236e5bdf2ac2af8a82 | [] | no_license | LYHSH/tuioRect_LianYunGang | 660569d35e4b4f69bb73c0149d823490191daea9 | 55ec719ee242ad8bd4306ebe20f91b46f93a86ea | refs/heads/master | 2020-07-01T11:29:22.540708 | 2019-08-08T14:31:40 | 2019-08-08T14:31:40 | 201,162,265 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,993 | cpp | ofApp.cpp | #include "ofApp.h"
#include "ofxIdentificationMgr.h"
//--------------------------------------------------------------
void ofApp::setup(){
{
int nums = 5;
ofxIdentificationMgr::setExtraInfo(ofToString(nums));
ofxIdentificationMgr::setup();
}
myBoxMgr.setup();
gui.setup();
video.setup();
bSetting = fa... |
c28ed77efc6cd4c67675fd7c381e6410e05e8ff6 | c961ec8c298b1bdae3faf4a536830f73fc58e3fd | /branches/geoaida-v2/tools/image_view/SaveSelectionDialog.h | 515b9135459652ccff817b9771d4df09f8a23f74 | [] | no_license | BackupTheBerlios/geoaida-svn | 3d91bcc812dbb68e65fb8af0964a5e61b386f184 | f549b14a7d877af737123c98a3113890ad18c525 | refs/heads/master | 2020-12-30T10:36:49.757432 | 2010-09-03T13:23:35 | 2010-09-03T13:23:35 | 40,669,877 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,888 | h | SaveSelectionDialog.h | /***************************************************************************
SaveSelectionDialog.h -
-------------------
begin : Mon Nov 2 2009
copyright : (C) 2009 TNT, Uni Hannover
authors : Karsten Vogt
em... |
29ef38c73e2a1ba828d6f8b568df54805218f343 | 36183993b144b873d4d53e7b0f0dfebedcb77730 | /GameDevelopment/Game Programming Gems 3/Source Code/02 Mathematics/05 Weber/CoralTree/wds/initlook.cc | 23da4025773085b23ff3f6c429a69a888f64f45a | [
"Artistic-2.0",
"Intel",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | alecnunn/bookresources | b95bf62dda3eb9b0ba0fb4e56025c5c7b6d605c0 | 4562f6430af5afffde790c42d0f3a33176d8003b | refs/heads/master | 2020-04-12T22:28:54.275703 | 2018-12-22T09:00:31 | 2018-12-22T09:00:31 | 162,790,540 | 20 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 32,375 | cc | initlook.cc | /******************************************************************************
Coral Tree wds/initlook.cc
Copyright (C) 1998 Infinite Monkeys Incorporated
This program is free software; you can redistribute it and/or modify
it under the terms of the Artistic License.
This program is distributed in the hope that it ... |
d5a544776c56809aeeb426e6ba3372d9ff927a46 | 923e7df48e06716797ba0010e07c6d49c87754cc | /internal/core/src/pb/segcore.pb.cc | 9b2b0800803b2d9e4273619563c655233a413724 | [
"Apache-2.0"
] | permissive | xiaocai2333/milvus | b22269545f7b9f3f52a59a5f35422018c08fe8ff | 82edb4d2df25b289fb5b5fe364e693f50f9a170f | refs/heads/master | 2023-08-28T12:43:43.095519 | 2023-01-05T07:33:39 | 2023-01-05T07:33:39 | 219,463,625 | 1 | 0 | Apache-2.0 | 2019-11-04T09:28:29 | 2019-11-04T09:28:28 | null | UTF-8 | C++ | false | true | 58,376 | cc | segcore.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: segcore.proto
#include "segcore.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <g... |
491a7dcfd3e00f912dbe038ab24a22ca35669087 | 4d2c78fddb365ec874b379ec9c6accbf142bd464 | /ibubble/ibubble/Classes/scenes/SettingScene.h | 3f3c283adf226499b85dc8bc41daecedf3082201 | [] | no_license | lkeplei/QeeQoo | c5c695060756c6c6d622d25eccf9eea7a972408f | 9ce31e28bb0d9dbd09af865c7584e6dfd45e7ac0 | refs/heads/master | 2021-01-10T08:15:51.900831 | 2015-01-09T13:42:41 | 2015-01-09T13:42:41 | 22,003,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,501 | h | SettingScene.h | //
// SettingScene.h
// ibubble
//
// Created by Ryan Yuan on 12-11-24.
// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
#ifndef ibubble_SettingScene_h
#define ibubble_SettingScene_h
#include "cocos2d.h"
#include <string>
#include "GameMacros.h"
#include "cocos-ext.h"
USING_NS_CC_EXT;
USING_NS_CC... |
33c2b44a1d6016d7e292af38f082cb2fd566ecfe | 768a290ac7f08cb3ceb830922cad2efe60d540ef | /Engine/EntityManager.cpp | 399995e87d21c466ed44adbd4faba89dc06d693c | [] | no_license | lim-james/-Old-Allure | 5fa74861ef163e03ebf8d791b1bd35f1824a3271 | 4dc3ded3be5711bc7711618cb93c2bbe90a1c592 | refs/heads/master | 2022-04-01T05:18:41.213667 | 2020-01-23T17:37:26 | 2020-01-23T17:37:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 883 | cpp | EntityManager.cpp | #include "EntityManager.h"
#include "Transform.h"
#include <Helpers/VectorHelpers.h>
unsigned EntityManager::Create() {
if (unused.empty()) Expand();
const unsigned id = unused.front();
unused.erase(unused.begin());
used.push_back(id);
GetComponent<Transform>(id)->SetActive(true);
return id;
}
EntityManager... |
69cf786e492fce5655246cb3b8ee3c9a3364ac92 | 7579107b4bc53472e9a98d0dfdcc40979687a096 | /apps/exercices/ch09_TextureMapping_Vulkan/TextureImage.h | a0c709584685158d4751c696b8228c39ae19f237 | [] | no_license | cpvrlab/SLProject | d29ef6f62c7e044c0718dd6a1186272108607a2a | f624fbeb7fb69f3904c73ab73810734cac6962ce | refs/heads/master | 2023-06-09T17:25:02.193744 | 2023-05-12T16:27:36 | 2023-05-12T16:27:36 | 30,246,579 | 58 | 30 | null | 2021-01-20T09:56:08 | 2015-02-03T14:26:56 | C++ | UTF-8 | C++ | false | false | 2,139 | h | TextureImage.h | #ifndef IMAGE_H
#define IMAGE_H
#include "Buffer.h"
// forward decalaration
class Buffer;
class CommandBuffer;
class Device;
class Sampler;
//-----------------------------------------------------------------------------
// TODO: Rename to Image + remove sampler + make class Texture for textures (has a image and samp... |
0eb2655264f7102591c31a49b8893e2c8855a5d8 | fe3b751188aa334a58a6aabcbcc212bb4a7780be | /lib/include/adschain/crypto/Signer.h | b3960dd5b02e4aebc08f96e8b0850761d5af7354 | [
"Apache-2.0"
] | permissive | apastor/ads-chain-cpp-library | a59c289a84ffb65486e03a077edbb348aef31a70 | 323d9c731f14031532dc072703d24e237d0a252e | refs/heads/master | 2022-06-16T18:50:06.388333 | 2020-05-10T23:01:23 | 2020-05-10T23:01:23 | 262,840,390 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | h | Signer.h | #pragma once
#include <string>
#include <openssl/evp.h>
#include "adschain/crypto/PrivateKey.h"
namespace adschain {
class Signer {
public:
virtual std::string signB64(std::string str) = 0;
};
fruit::Component<PrivateKey, Signer> getSignerComponent();
fruit::Component<PrivateKey, Signer> getSignerComponentFrom... |
a798f3aff1ae225b2abac3186c3ee6aa974abea5 | d228c045d5a49edba42108e69521a71c32eb4bb2 | /nebula/net/engine/rpc_client.h | b53d4a3cc5d6179977899a32a3dbbc269fa3f7f9 | [
"Apache-2.0"
] | permissive | iineva/nebula | 11a889ad0fc1ba1cc2ac6f8258336c2dc73dae24 | feb4f309d896210aeda7a606d38aab4af5cb6ada | refs/heads/master | 2021-02-12T09:23:00.307402 | 2020-03-13T04:28:05 | 2020-03-13T04:28:05 | 244,581,726 | 0 | 0 | Apache-2.0 | 2020-03-03T08:30:42 | 2020-03-03T08:30:41 | null | UTF-8 | C++ | false | false | 1,203 | h | rpc_client.h | /*
* Copyright (c) 2016, https://github.com/zhatalk
* 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
*
* Unl... |
6a62653c54727fe56385f90bd8cd60a0461e333c | 99e0cb2bf37987e10b1f79c3e7712438da5e522e | /src/GraphicGenerator.cpp | f3e48d67bbcf6b5a572e646d3c0b0d64156ff23e | [] | no_license | urbanpixellab/DRaaimolen2019_ArtnetControler | 1dae0a7fcbe0b02329bf5bf2973b56586dd15769 | 1057ccee4774b22b373476c3c397bd6a0932a17c | refs/heads/master | 2020-06-04T09:14:58.003588 | 2019-09-14T07:48:33 | 2019-09-14T07:48:33 | 191,960,880 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,160 | cpp | GraphicGenerator.cpp | //
// GraphicGenerator.cpp
// Sequencer
//
// Created by Enrico Becker on 14/08/2019.
//
#include "GraphicGenerator.hpp"
GraphicGenerator::GraphicGenerator()
{
shader.load("test.vert","test.frag");
mesh.setMode(OF_PRIMITIVE_TRIANGLE_STRIP);
mesh.addVertex(ofVec3f(0,0,0));
mesh.addTexCoord(ofVe... |
aac0d2cd06c32052033cc3fbf047d41acf06cb4d | 6247051fc105ee0f7847c9ad7d64e6dd22e2e5e2 | /codeforces/527-A/527-A-23230100.cpp | 59dcfbc8ead13a1b68abb4590ec04d13fe6b2391 | [] | no_license | satishrdd/comp-coding | 5aa01c79bd1269287f588a064d5d09f824daa8fd | 96d22817488d55623d77a2e7f3d4ef0955028086 | refs/heads/master | 2020-04-07T06:50:53.743622 | 2017-04-16T09:05:25 | 2017-04-16T09:05:25 | 46,654,615 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 293 | cpp | 527-A-23230100.cpp | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[])
{
/* code */
long long a,b,count=0;
cin>>a>>b;
while(a>0 && b>0){
if(a>=b){
count+=a/b;
a = a%b;
}else{
count+=b/a;
b = b%a;
}
}
cout<<count<<endl;
return 0;
} |
22bcc2baa3530987bbef7b8c46c0db5c7719b066 | db32e1a75c36287fdd150f88e4a2e6b778337ced | /Chapter1/3_urlify.cpp | 26b49e281241c05a75fb8ebf737e371ba051b519 | [] | no_license | jlstr/CtCi6 | fd5eea779c513bb611b2b92cc26a32800fcbced4 | 0267b9fc1fd5db2d23d4a9e4f1ab5f6bc7515cc9 | refs/heads/master | 2020-12-02T19:21:25.664740 | 2018-11-26T20:36:10 | 2018-11-26T20:36:10 | 96,328,126 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | cpp | 3_urlify.cpp | #include <iostream>
#include <string>
#include <sstream>
using namespace std;
std::string urlify(const string&, const int);
int main() {
const string str = "Mr John Smith ";
const int size = 13;
cout << urlify(str, size) << endl;
return 0;
}
std::string urlify(const string &original, const int size) {... |
705296ed838da3d1824300f6ce7bec238e5610d8 | b4803e8dbacb16bde18818a51cc57bfa1341779c | /src/imageFilters/ImageFilter.cpp | 3252e8d815aca6e794181e4689d54b261edd5e7f | [] | no_license | HustStevenZ/OclExample | 97dbec79c72bb7042f31d37c3f4befd944b1fd83 | 3aa4f47a0d5ab0d8eda1915d8c1bde945f0d05ae | refs/heads/master | 2020-04-06T09:03:56.023997 | 2016-08-31T11:39:21 | 2016-08-31T11:39:21 | 63,135,775 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,963 | cpp | ImageFilter.cpp | //
// Created by Sanqian on 16/7/8.
//
#include <cassert>
#include <src/io/clSource.h>
#include <iostream>
#include "ImageFilter.h"
#ifdef __APPLE__
#include <OpenGL/gl.h>
#endif
//////////////////////////
// 3*3 Filter
//[ * * * ]
//[ * * * ] * 1/factorsum
//[ * * * ]
////////////////////////
std::string imageFilter... |
7837d10fa00581c9dc7758c061d68ea2fdf6535b | 905a210043c8a48d128822ddb6ab141a0d583d27 | /viewer/mainwindow.cpp | c9f434fec9e94290e89e87423f489527dee71e1a | [] | no_license | mweiguo/sgt | 50036153c81f35356e2bfbba7019a8307556abe4 | 7770cdc030f5e69fef0b2150b92b87b7c8b56ba5 | refs/heads/master | 2020-04-01T16:32:21.566890 | 2011-10-31T04:35:02 | 2011-10-31T04:35:02 | 1,139,668 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,087 | cpp | mainwindow.cpp | #include <QtGui>
#include <QActionGroup>
#include <QList>
#include "mainwindow.h"
#include "sgr_render2d.h"
#include "layermanagerwidget.h"
#include "tools.h"
#include <exception>
#include <iostream>
#include <list>
using namespace std;
MainWindow::MainWindow()
{
doc = new Document;
context ... |
3ecdc8730fcd9f637dd008e4eafc279cfc4ecc3c | c13cf8f0375e1d904d2dfebd5db9ead8404c8a38 | /17 Letter Combinations of a Phone Num.cpp | 01d4227001493e171a8e6dfed41c5641ff162158 | [] | no_license | xuzhaocheng/LeetCode | f92eec2aa0de06ed8c8f2d41fa5f86064dd6efcb | 53b54f0bc81c15589be06ea8ef17ebe7fe2bc4f3 | refs/heads/master | 2016-09-11T12:13:08.172151 | 2015-02-26T15:14:04 | 2015-02-26T15:14:04 | 31,371,452 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 989 | cpp | 17 Letter Combinations of a Phone Num.cpp | // 17 Letter Combinations of a Phone Num.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include <string>
#include <vector>
#include <iostream>
using namespace std;
class Solution {
public:
vector<string> letterCombinations(string digits) {
string letters[] = {" ", "", "abc", "def", "ghi", "jkl", "... |
025f02a4833e5f3e4d77b76c35a1f57d4dfc2c3a | 80de881ed1406aaf2c16baf58370437864d920bc | /src/parsers/wikiArticleHandlers/allLinksArticleHandler.h | 7a971d4cae2402d77351c62234d62d68e61f999c | [
"MIT"
] | permissive | bencabrera/wikiMainPath | 84a49318edc175677b38ee300aa2c5844c33439a | a42e81a8fbe119e858548045653b2a22068a34f8 | refs/heads/master | 2021-03-24T09:23:25.604093 | 2018-11-17T14:45:35 | 2018-11-17T14:45:35 | 68,536,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,702 | h | allLinksArticleHandler.h | #pragma once
#include <vector>
#include <set>
#include <map>
#include <boost/container/flat_set.hpp>
#include <boost/graph/graph_traits.hpp>
#include <boost/graph/adjacency_list.hpp>
#include "../../../libs/wiki_xml_dump_xerces/src/handlers/abstractWikiPageHandler.hpp"
#include "vectorMutex.hpp"
#include "../../core... |
b6cbe80779f8c80312fab83a6b428e16635bda12 | 998c9177b2d0ff4c66e5592c2e43297afe0a2956 | /beginner/OOP/Animals.cpp | e7ea9159c556928487a4165646408e10439361d6 | [] | no_license | marcusjwhelan/cppcourses | 571ab5f742a3c1477693965865225d114ac5c344 | 88a5eef92c7cc4325fd92818512eec08f4874b6b | refs/heads/master | 2020-03-31T00:27:20.111093 | 2018-10-05T15:20:20 | 2018-10-05T15:20:20 | 151,740,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 200 | cpp | Animals.cpp | #include "Animals.h"
#include <iostream>
using namespace std;
namespace mjw {
Dog::Dog() {
}
Dog::~Dog() {
}
void Dog::speak() {
cout << "Bark! Bark!" << endl;
}
} |
8514ed008068d23331fe2aad704fd0299a300784 | 72f5e54a4cba2a4293af314510feb2eb69b0a6b2 | /ThemeSwitcher/source/fs.hpp | 7ea486ec8a115fe5d655695a72433575d4e94edd | [] | no_license | exelix11/SysThemeSwitcher | 59e398e9ba8ed26deda3ad9e436c47d1433558ef | f94392938cef25f8a78df17d3fdd8975fa271a62 | refs/heads/master | 2020-04-14T06:13:06.367061 | 2019-01-01T11:59:48 | 2019-01-01T11:59:48 | 163,680,336 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | hpp | fs.hpp | #pragma once
#include "MyTypes.h"
#include <switch.h>
#include <stdio.h>
#include <vector>
#include <string>
#include <dirent.h>
extern std::string CfwFolder;
bool StrEndsWith(const std::string &str, const std::string &suffix);
void CopyFile(const std::string &original, const std::string &target);
bool CheckThemesFo... |
946e31e8c3b8cd9633da0aceac155797404f679f | 3729bd41bc37c5c4f08b3b2675aa6576030fb9cf | /a5.cpp | d3b94c0e648f0328901f8639ee1b767b5ff244f4 | [] | no_license | kamalpreetk701/STL-Iterators-and-Algorithms-in-C- | 93e55ee1abf11d52d191937332ed1a6765d3d907 | 67d6a21dae367b7bb20b81e0e3d099de898f7cc6 | refs/heads/master | 2021-01-19T17:54:29.212113 | 2017-08-22T19:51:57 | 2017-08-22T19:51:57 | 101,096,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,291 | cpp | a5.cpp | #include"iostream"
#include<string>
#include<algorithm>
#include<iterator>
#include<vector>
#include"fstream"
#include<map>
#include<sstream>
#include<iomanip>
#include<set>
using namespace std;
bool is_Palindrome(const std::string &phrase)
{
string temp;
auto lambda = [](char x) {return !isalph... |
d3bb16389c964780b46a545a51584db7422deb9b | bc4dd48807e10ac159d6802774ceff49c3af8af1 | /src/Interface/YesNo.hpp | 634f310bd31a3e9924f62d8c307099796a39032c | [] | no_license | kshiraki3/SHIRAKI-Project | c60df17e8e781599385a2cd9d87581e1d8ceeb9e | 6e7151ddb313a69d873112dc9aa4b6948df8d03e | refs/heads/master | 2021-05-04T00:30:11.638519 | 2016-10-25T12:38:49 | 2016-10-25T12:38:49 | 71,855,327 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 452 | hpp | YesNo.hpp | //
// Interface/YesNo.hpp
// SHIRAKI Project
//
// Created by 白木滉平 on 2016/10/20.
// Copyright (C) 2016 SHIRAKI System. All rights reserved.
//
#ifndef Included_Interface_YesNo_hpp
#define Included_Interface_YesNo_hpp
#include <string>
class YesNo {
public:
YesNo();
explicit YesNo(const std::string& text);
~... |
7ce5cae40a6bb137625b3546832302da187ac8d9 | d1241da8c1d5ca251a80da8fcb1e4df535b1d7f0 | /include/sim/KineticParameter.h | ec3548f5b0d097fc860272803a4f5909e721c7dd | [] | no_license | reogac/salib | 296b310655286254bb375665fd88107cd582a593 | b209f91314f74a77b31e2925a6545a071f5472c7 | refs/heads/master | 2016-09-06T10:10:18.397835 | 2015-05-27T02:45:55 | 2015-05-27T02:45:55 | 35,530,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 805 | h | KineticParameter.h | /**
@file KineticParameter.h
@brief Header file for KineticParameter class
@author Thai Quang Tung (tungtq), tungtq@gmail.com
*/
#ifndef KineticParameter_INC
#define KineticParameter_INC
#include "OdeModelVariable.h"
BIO_NAMESPACE_BEGIN
class KineticParameter : public OdeModelVariable
{
public:
Kineti... |
1a86b99d03bb1440e76a96133e32c16b061d4dea | aadf624bd4b79ad68d26fedc03c93d9263d9f690 | /SuperMarioBros3/SuperMarioBros3/Ultis.h | 21a00e598e48cb47cbd23e5127b461da101ccd4e | [] | no_license | th-tuan-1402/DirectX-SuperMarioBros3 | 5e4f4f92c0c46864e196834f7708b7c1d18e1ce0 | 531140c6123d749d98dd71d153987b84fa0a736f | refs/heads/main | 2023-05-13T04:25:27.221122 | 2021-01-23T05:43:43 | 2021-01-23T05:43:43 | 629,717,572 | 0 | 0 | null | 2023-04-18T22:16:48 | 2023-04-18T22:16:47 | null | UTF-8 | C++ | false | false | 807 | h | Ultis.h | #pragma once
#include <Windows.h>
#include <signal.h>
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <map>
using namespace std;
#define _W(x) __W(x)
#define __W(x) L##x
#define VA_PRINTS(s) { \
va_list argp; \
va_start(argp, fm... |
6a3c0bb789ed8684e0fc0cd8397da74e47919731 | e99c20155e9b08c7e7598a3f85ccaedbd127f632 | / sjtu-project-pipe/thirdparties/VTK.Net/src/Rendering/vtkOpenGLImageMapperDotNet.cxx | bfcae0a6bd63e736962952763423161115abfb01 | [
"BSD-3-Clause"
] | permissive | unidevop/sjtu-project-pipe | 38f00462d501d9b1134ce736bdfbfe4f9d075e4a | 5a09f098db834d5276a2921d861ef549961decbe | refs/heads/master | 2020-05-16T21:32:47.772410 | 2012-03-19T01:24:14 | 2012-03-19T01:24:14 | 38,281,086 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,119 | cxx | vtkOpenGLImageMapperDotNet.cxx |
// managed includes
#include "vtkDotNetConvert.h"
#include "vtkOpenGLImageMapperDotNet.h"
// native includes
#include "strstream"
#include "vtkOpenGLImageMapper.h"
#include "vtkActor2D.h"
#include "vtkImageData.h"
#include "vtkObject.h"
#include "vtkViewport.h"
using namespace System;
namespace vtk... |
e64759ae6129c6f15387fb5955ed67d581487d5b | c74a5b242c7470b38cdb1e9b1c2f57a1266c589a | /src/persistence/contractdb.h | c64b3872608e18b26c3b542fa35de5bc5fe6bf1a | [
"MIT"
] | permissive | zhenc520/WaykiChain | 2097f8bb5c73a0e80e608f9386e9655515f332c4 | 5a67aabfcd79bf9a41afc7ff6607d0fcd0c8cdd1 | refs/heads/master | 2020-06-05T18:24:19.436545 | 2019-06-04T10:20:21 | 2019-06-04T10:20:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,077 | h | contractdb.h | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2017-2019 The WaykiChain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef PERSIST_CONTRACTDB_H
#define PERSIST_CONTRACTDB_H
#include "commons/ar... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.