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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b384c76b6a71004ca990700ca576519ee4148b01 | 26c05bda03a9134ca4a5d5a93549e2e2dc1d7d68 | /modules/editor/source/CodeEditor.cpp | 22688d1b7dd8f401fd546ee404b496a0043fe38c | [] | no_license | alxarsenault/eos | 19f97c94aca9dadfe4ae1c46cc087861742912f0 | d962c83a5af4022bd663695a1c699c1e5581dd30 | refs/heads/master | 2021-05-30T18:16:39.782464 | 2016-01-25T17:13:44 | 2016-01-25T17:13:44 | 41,336,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,574 | cpp | CodeEditor.cpp | #include "CodeEditor.h"
#include <algorithm>
#include "axLib/axButton.h"
/*******************************************************************************
* eos::TextEditor::Logic.
******************************************************************************/
TextEditor::Logic::Logic()
: _file_path("")
, _cursor_p... |
3d7d9fa01703098c64de8df3e6baba150eaa455c | 7d23b7237a8c435c3c4324f1b59ef61e8b2bde63 | /include/win32/mmap/detail/file_mapping.hpp | d485283d15e35269773a3a5c0c08d19b0be695af | [] | no_license | chenyu2202863/smart_cpp_lib | af1ec275090bf59af3c29df72b702b94e1e87792 | 31de423f61998f3b82a14fba1d25653d45e4e719 | refs/heads/master | 2021-01-13T01:50:49.456118 | 2016-02-01T07:11:01 | 2016-02-01T07:11:01 | 7,198,248 | 4 | 3 | null | null | null | null | GB18030 | C++ | false | false | 4,348 | hpp | file_mapping.hpp | #ifndef __MMAP_FILEMAPPING_HPP
#define __MMAP_FILEMAPPING_HPP
#include "map_file.hpp"
#include "access_buffer.hpp"
namespace mmap
{
// -------------------------------------------------------------------------
// class HandleProxy
template < typename Owner >
class proxy_t
{
public:
typedef typename Owner:... |
61a0951ea1c1939f08660a565b4be212b78267d4 | c7273a49160e9413e85a91e36bc4a2fea7306db6 | /online/decoder_maindaq/DecoParam.h | fe72e502821891f7da8c2bfcef1e91b4206f0508 | [] | no_license | liuk/e1039-core | f04467e3ffdb0592528c48da069d96245cb7ff34 | 2bbff57544dc2bce70bfa0aa87129be2e719c63e | refs/heads/master | 2022-07-26T08:04:24.899781 | 2022-05-31T13:21:15 | 2022-05-31T13:21:15 | 195,715,486 | 0 | 1 | null | 2019-10-21T01:12:29 | 2019-07-08T01:27:24 | C++ | UTF-8 | C++ | false | false | 1,792 | h | DecoParam.h | #ifndef __DECO_PARAM_H__
#define __DECO_PARAM_H__
#include <geom_svc/ChanMapTaiwan.h>
#include <geom_svc/ChanMapV1495.h>
#include <geom_svc/ChanMapScaler.h>
//#include "assert.h"
class EventInfo;
/** This class contains all decoder parameters.
* Two types of parameters are included.
* - For controlling the decoder ... |
16bfa9c4c575bc4859a62db9694520b7338270eb | 174fb4289a0401c517ee2dd4fb8826f1cba4142a | /src/potentials/potential_harmonic.cpp | 05f283d8d77d832fc41118880cc6a553364dceb3 | [] | no_license | ansko/CppMd | cf1c800c0011476764c1238116915bea79143108 | 31d0fdba43eb6fbf14d2f81839d45345a232550c | refs/heads/master | 2021-08-23T09:03:02.670684 | 2017-12-04T12:13:07 | 2017-12-04T12:13:07 | 112,761,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,048 | cpp | potential_harmonic.cpp | #include "potential_harmonic.hpp"
float PotentialHarmonic::E(std::shared_ptr<Bond> bond_ptr)
{
std::shared_ptr<Particle> par1_ptr = bond_ptr->getParticle1_ptr();
std::shared_ptr<Particle> par2_ptr = bond_ptr->getParticle2_ptr();
float x = par2_ptr->x() - par1_ptr->x();
float y = par2_ptr->y() - par1_p... |
8ddfd7c6f7ed9b7ae38a897d1a27a37b2a052d8d | d046106c706374aea31449e757f9d0898684da18 | /APIMode/WithLibrary/XBeeLib/XBeeLib.h | bdf66700941ee744e05c55c3ab3bb1d6d89a12d6 | [] | no_license | leomr85/ArduinoTeam | c96a7175dda5c0620c038245880b7d78ed13833b | a965cfd40d9900403f33b036c4ee25bd743bd347 | refs/heads/master | 2016-09-01T19:46:16.199350 | 2014-11-27T12:24:09 | 2014-11-27T12:24:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | h | XBeeLib.h | /*
XBeeLib - Library for XBee Modules.
Created by Leonardo M. Rodrigues, July 17, 2014.
Released into the puclic domain.
*/
#ifndef XBeeLib_h
#define XBeeLib_h
#include "Arduino.h"
class XBeeLib
{
public:
XBeeLib(int coordinatorEnable);
void helloWorld();
void waitFor(long time);
void txRequest(String* m... |
71fedd23020a12c5052d9aff0e4a6ed6ddd91911 | 1fdd12563de929f934fcdda811cad259f100b8b1 | /lab1Words/wordsparser.h | 6f4b9ce03d4bc750711cac63bd5f72a0ac86fe6b | [] | no_license | alexandrprotasenya/OOPLabs | 07d71189fb73030b1b8ad36c25e49f4e8f02ddff | b09106a61451d5b00dc948a7abc5f03304ef1592 | refs/heads/master | 2021-05-29T23:03:39.037404 | 2015-12-02T07:47:32 | 2015-12-02T07:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | h | wordsparser.h | #ifndef WORDSPARSER_H
#define WORDSPARSER_H
#include "pc_header.h"
class WordsParser
{
public:
WordsParser();
void printWords();
void printStr();
void setStr(char* str) {
m_str = str;
}
private:
char* m_str;
int get_word( const char *s, int &size, int start = 0 );
};
#endif // ... |
a19ce3f69630130e2f20bc0b67a648a3632e0912 | 36e5c06883c0288dc48e3978ca9deaf6d6a9bffc | /src/assert/assert.hpp | 18acbb1806478ab2de4709e03f4aed5d362001ad | [
"MIT"
] | permissive | cwbaker/forge | 46271bc05311ce64b09e2c6e2311f51a124761c2 | 18b7ec97769354b28189d390474bd22473537f49 | refs/heads/main | 2022-11-19T17:13:46.367043 | 2022-11-11T07:23:23 | 2022-11-11T07:23:23 | 3,674,381 | 14 | 2 | MIT | 2022-09-07T04:20:33 | 2012-03-09T20:16:16 | C++ | UTF-8 | C++ | false | false | 1,767 | hpp | assert.hpp | #ifndef SWEET_ASSERT_ASSERT_HPP_INCLUDED
#define SWEET_ASSERT_ASSERT_HPP_INCLUDED
#if defined(BUILD_MODULE_ASSERT) && defined(BUILD_LIBRARY_TYPE_DYNAMIC)
#define SWEET_ASSERT_DECLSPEC __declspec(dllexport)
#elif defined(BUILD_LIBRARY_TYPE_DYNAMIC)
#define SWEET_ASSERT_DECLSPEC __declspec(dllimport)
#else
#defi... |
9c996981dc837755f6d5ccdc086250227dcb8e4a | 96b8e40f7a163c82dadc85b461cfd6342706c829 | /hashTableTest.cpp | 3cdf00523641d2596846e8fd7875bb0d723b6caf | [] | no_license | krisli210/Cheaters | 0048517c3dd24f65b5fcddc6c787a44533dc8c59 | da0722f51c962cf9b038bdfb5cfa7e99019782de | refs/heads/master | 2020-04-09T00:24:53.545854 | 2018-12-07T20:43:04 | 2018-12-07T20:43:04 | 159,865,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,042 | cpp | hashTableTest.cpp | #include <cstdlib>
#include <iostream>
#include <string>
#include <vector>
#include "hashTable.h"
using namespace std;
int main() {
const int ts = 393241;
HASH_TABLE<int, ts> ht;
cout << ht.getTableSize() << endl;
string key1 = "hereisakey" ;
string key2 = "hereisalsoakey";
string key3 = "notlikeothers";
co... |
5f83e22f80aab070c35c5a243dc18a6e8981d7a7 | 1a3fd15e9be7cf0ca6f0895e240f318043414da7 | /groups/1506-3/sannikova_vo/1-test-version/solver.cpp | 29aa6475168d3127b30bdb0d43ef7aa9ee22fe5f | [] | no_license | alvls/parprog-2018-1 | 09e2ea3d502165cdc6b9e1d50d4e17ab51b92628 | 293c76b89373669288b7cb454f32e3a7838f4758 | refs/heads/master | 2021-04-28T07:19:33.028962 | 2018-07-05T06:29:28 | 2018-07-05T06:29:28 | 122,221,726 | 0 | 52 | null | 2018-07-05T06:29:29 | 2018-02-20T16:09:14 | C++ | WINDOWS-1251 | C++ | false | false | 7,392 | cpp | solver.cpp | #include <iostream>
#include <stdio.h>
#include <math.h>
#include <vector>
#include <chrono>
#include <iostream>
#include <random>
#include "math.h"
#define MAXSTACK 2048
using namespace std;
void qSort_NO_recursion(vector<double>::iterator begin, vector<double>::iterator end)
{
long i, j; // указатели, участвующие в... |
95d1bc9e9a2f9c0b22d00e92fa0c2f76c1b67489 | bdf70a0995bf5251561c490a42a732950186fe06 | /Engine/Src/Ancona/Menu/Screens/MenuGameSystems.hpp | df2e2a86867cb85107ea4d1d54e0be3f2474fcc2 | [
"MIT"
] | permissive | ild-games/Ancona | f48761d0d069ee6d15cdf4ae3b661943e48931bb | 6a4f520f97d17648a6dd3ba0582cd51da4f9e809 | refs/heads/develop | 2023-03-05T06:33:59.538272 | 2021-11-24T20:05:40 | 2021-11-24T20:05:40 | 42,762,744 | 13 | 4 | MIT | 2021-11-24T20:05:57 | 2015-09-19T06:36:27 | C++ | UTF-8 | C++ | false | false | 2,312 | hpp | MenuGameSystems.hpp | #ifndef Anona_Menu_Systems_MenuGameSystems_H_
#define Anona_Menu_Systems_MenuGameSystems_H_
#include <Ancona/Core2D/Systems/CameraSystem.hpp>
#include <Ancona/Core2D/Systems/RotateSystem.hpp>
#include <Ancona/Core2D/Systems/Drawable/DrawableSystem.hpp>
#include <Ancona/Core2D/Systems/InputControlSystem.hpp>
#include <... |
7ec4990744b56bf00b78c4903397f97922f58c96 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /remoting/host/audio_volume_filter_unittest.cc | d4d97c63e9166890493240338037fbe1f4afd188 | [
"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 | 2,427 | cc | audio_volume_filter_unittest.cc | // Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "remoting/host/audio_volume_filter.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace remoting {
namespace {
class FakeAudioVolumeFilter : public AudioVol... |
233b82ab4ef447f8d94d1fd6ddb952567cf63f7e | f3cd9679cb127414dfd9703659b4ea66ef10b7b6 | /die-tk/Surface.h | 51421f8a529e72eabeb36c6d4b61b72a13100a13 | [
"Artistic-2.0"
] | permissive | thinlizzy/die-tk | 04f0ea4b5ef5cd596fe37e5f7f09f22d21c32a6b | eba597d9453318b03e44f15753323be80ecb3a4e | refs/heads/master | 2021-07-04T10:44:25.246912 | 2021-06-03T22:26:45 | 2021-06-03T22:26:45 | 45,441,362 | 11 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,443 | h | Surface.h | #ifndef SURFACE_H_DIE_TK_2014_09_22_22_08
#define SURFACE_H_DIE_TK_2014_09_22_22_08
#include <memory>
#include "Callbacks.h"
#include "WindowObjects.h"
#include "custom/CustomControlImpl.h"
namespace tk {
class Canvas;
class NativeControlImpl;
/** Base class for all widgets, including windows. */
class Surface {
p... |
002ef48d5ac6f8cccd9d1c680c11a5259306635d | 39e4a82a5d9a35a2c7b73a9d3f3ce3f5d4793e23 | /filemanager apha 0.1(源码)/standard.h | 29d5e74ab45844a94f0a49a640722363e1f0029c | [] | no_license | jzy-byte-cmd/filemanager | 2fc13cf927c85398c0f3d9bc7a796e37b5e6a5b8 | f2942af903c90afc29e9dd9e5ad034fe2f06040a | refs/heads/master | 2023-08-17T14:37:04.150579 | 2021-10-03T16:06:19 | 2021-10-03T16:06:19 | 413,115,495 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | h | standard.h | #include <iostream>
#include <windows.h>
#include <fstream>
#include <string>
#include <tchar.h>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <algorithm>
//标准头文件
using std::cout;
using std::endl;
using std::cin;
using std::cerr;
using std::clog;
using std::abs;
using std::ios;
using std::string;... |
5c76c5c4a6dda315f48aba60527b442f698db650 | f08225aa3689ef23e68b0f516c12f4bda1f8280d | /complex/complex.cpp | 51b6704dc21e2e5ed48731b20cb0857395b6200f | [] | no_license | mind2cloud/MISiS_2nd_course_CPP_Tasks | 75782c26d8d1845def1f31c4e671646922814bd4 | 9b57b25b34e690b60296b2adb30b8e8ed4ee2622 | refs/heads/master | 2023-01-06T05:33:17.173392 | 2020-11-06T21:45:59 | 2020-11-06T21:45:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,206 | cpp | complex.cpp | #include "complex.h"
#include <iostream>
#include <cmath>
Complex::Complex(const double real)
: Complex(real, 0.0)
{
}
Complex::Complex(const double real, const double imaginary)
: re(real)
, im(imaginary)
{
}
Complex& Complex::operator=(const Complex& complex)
{
re = complex.re;
im =... |
513a6d60ae20f3cb758ab7853c9bb1a89874c532 | 75a711b3c75a8584d0ada9c4b732b57d7dad10eb | /include/vise/vise_request_handler.h | 7ff3392a77be01264c22e54929497720b10fa19a | [
"BSD-2-Clause"
] | permissive | alexanderwilkinson/vise2 | 3f0ede1f64cf4acdc3060ea03de8d124d0433a69 | a29b898800e7babf3ac7012a056e954eb1af2be4 | refs/heads/master | 2021-06-24T08:27:00.035623 | 2021-01-21T12:09:40 | 2021-01-21T12:09:40 | 200,913,504 | 0 | 5 | BSD-2-Clause | 2021-01-14T13:03:33 | 2019-08-06T19:39:10 | C++ | UTF-8 | C++ | false | false | 1,652 | h | vise_request_handler.h | /** @file vise_request_handler.h
* @brief A singleton class which handles http requests related to vise
*
*
* @author Abhishek Dutta (adutta@robots.ox.ac.uk)
* @date 18 June 2018
*/
#ifndef _VISE_REQUEST_HANDLER_H_
#define _VISE_REQUEST_HANDLER_H_
#include <iostream>
#include <sstream>
#include <fstream... |
008b4ec3d19de7654ba791e162c7f7b9a8d5a9f4 | f9b554496eaac8e1c413ebfc2d410e142de7567d | /uva/10008.cpp | ad036afdc595d6e1c0972ebc0a828ceb90d0f6a8 | [] | no_license | shabab477/Competitive-Programming | 9a911b264730aa00482710295bd3f2f0ee253dc7 | 9fa070991c8caf427f9e9c14db0262ec342eaefe | refs/heads/master | 2016-09-12T20:55:47.056789 | 2016-04-30T06:06:41 | 2016-04-30T06:06:41 | 57,429,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,320 | cpp | 10008.cpp | #include <iostream>
using namespace std;
#include <string.h>
#include <algorithm>
#include <stdio.h>
struct Alpha
{
char alpha;
int count;
}
bool isCharacter(char ch)
{
int d = (int)ch;
if((d >= 65 && d <= 90) || (d >= 97 && d <= 122))
{
return true;
}
return false;
}
bool isLower(char ch)
{
int d = ... |
ef19bbb72e214187b9613d53e259972a74080c15 | f2a3b969582c42748ebfe29806caa423e7f0de2a | /cartographer/mapping/proto/internal/legacy_submap.pb.cc | ac7dd7c22f6726c54a5413ac70ecad70bb5b8e92 | [] | no_license | xuguangyun/map_update_client | 816e6dd698774fcf37bc919c967ccc1161a0f9f0 | 4ddbe618880097ec03e60c36bf8635706f58c1cd | refs/heads/master | 2020-07-29T23:41:18.744694 | 2020-05-07T08:32:52 | 2020-05-07T08:32:52 | 210,002,732 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | true | 68,519 | cc | legacy_submap.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cartographer/mapping/proto/internal/legacy_submap.proto
#include "cartographer/mapping/proto/internal/legacy_submap.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google... |
1c4a29a622c412d8612da32eb4a90f2afa9b30d1 | 03df7376721a13fa14fa2cb73d19612454a923b4 | /AirForce/Engine.h | be0d726d7784a316d416a85fc3484ace60d9d136 | [] | no_license | KarolPietryka/AirForce | 54509d7f55f080320769291a25e7c23d24c282ef | c27428d15b8a9cf7768b988faacaa45ba9fbbd28 | refs/heads/master | 2020-09-29T03:31:47.405121 | 2019-12-09T18:29:44 | 2019-12-09T18:29:44 | 226,939,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,480 | h | Engine.h | #pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include "Libretto.h"
#include "Collision.h"
#include "VisualEffect.h"
#include <vector>
using namespace std;
using namespace sf;
class Engine
{
public:
Engine(float _windowSizeX, float _windowSizeY);
~Engine();
Player & getPlayer();
void setTex... |
6d06e5d94a4414ad771f65398ed6d8f17db81308 | 9e62d7b3861178f6b91e6cb50edbc9f31ae30852 | /Code/LCD.cpp | d90a06d1e1c17a801d29e1652ba59477093adb7e | [] | no_license | YassinRostom/Inf-Display-Module | 0c940e191d215978296003d2e6823b1165f24241 | 8b57dabf246c19b76581b4187516ecdc6d022c47 | refs/heads/main | 2023-09-05T16:27:47.956376 | 2021-11-14T19:22:52 | 2021-11-14T19:22:52 | 428,018,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,079 | cpp | LCD.cpp | //************************************************************************/
// Integrated Autonomous Tester - PROJ325 - LCD.cpp
//
// Responsible for displaying the test results to the user
//
//************************************************************************/
#include "LCD.h"
//LCD Initialization
... |
0a76c7fee75d8de1689c96f2d1d3d016f667df4a | 69074c766f83085cd0d4dec8f3c002f9c4c9b32a | /target_tracking/src/KalmanFilter.cpp | e4df43477daedaf4a4ecaa4f3b71999041bf8657 | [] | no_license | umdrobotics/Rendezvous | f1c94c166172ec1687aa3738fbaf16eaafe53bd6 | b1d168a171983a04756c7526f4f2136988dbf7e3 | refs/heads/master | 2020-04-12T03:08:33.620224 | 2019-04-29T18:21:50 | 2019-04-29T18:21:50 | 65,505,156 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 11,186 | cpp | KalmanFilter.cpp |
#include "target_tracking/KalmanFilter.h"
// Module "core"
#include <sstream> // stringstream, ...
#include <iostream> // std::cout, std::end, ...
#include <iomanip> // std::setprecision
// #include <signal.h>
//#include <opencv2/core/core.hpp>
// Module "highgui"
//#include <opencv2/highgui/highgui.hpp>
// M... |
0cab716df9aa1900ef4e93c8dd18976bd22b2fce | 9987fded6026ace187753eaa3e520d0bb72047a0 | /isis/src/base/objs/RadarSkyMap/RadarSkyMap.cpp | 3864654f21f1bc5591054738736144a87107e00e | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | kberryUSGS/ISIS3 | 1345e6727746e2ebc348058ff3ec47c252928604 | b6aba8c38db54d84b1eb5807a08d12190bf8634e | refs/heads/dev | 2021-07-17T16:53:37.490510 | 2021-03-13T00:09:53 | 2021-03-13T00:09:53 | 118,936,778 | 0 | 1 | Unlicense | 2020-03-31T19:44:30 | 2018-01-25T16:17:20 | C++ | UTF-8 | C++ | false | false | 1,327 | cpp | RadarSkyMap.cpp | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... |
5889d71c8eb0062c60b803a48331548e287b0b97 | da54fc282e407ea430a1b3dd99c602a7857e88ac | /system/main/VideoRetrievalSystem.cpp | dc15a0372df6453b22190f5414e5f9a1d6d622c2 | [] | no_license | slh0302/Idm | 7d41901337158d2d2ec91a1e6d5f2c011c515dc0 | a5fa7bb1be8f7147bad3e75343ad2a13f50db910 | refs/heads/master | 2018-10-15T13:43:41.328727 | 2018-07-12T03:53:45 | 2018-07-12T03:53:45 | 114,886,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,128 | cpp | VideoRetrievalSystem.cpp | //
// Created by slh on 17-11-11.
//
#include <iostream>
#include "boost/timer.hpp"
#include "boost/thread.hpp"
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string>
#include "boost/algorithm/string.hpp"
#include <feature.h>
#include <sstream>
#include <vector>
#in... |
a1aaa6d04559f3fb9e32b51681eae6aca50ad8cd | eacb259838517910db3703ddd63dfbef07191071 | /include/matrix.hpp | c3e20537478b6e3c99d7a8a37495f79a0170906c | [] | no_license | amitsingh19975/Boost_Simple_Matrix | e2b52136ec29e0125825fe6fa832ab82786010d6 | baf16bee097166b10d38c2232d620f5663224705 | refs/heads/master | 2020-04-22T00:19:32.162174 | 2019-03-24T18:42:34 | 2019-03-24T18:42:34 | 169,975,636 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,885 | hpp | matrix.hpp | #ifndef MATRIX_HPP
#define MATRIX_HPP
#include <vector>
#include <iostream>
#include <type_traits>
/**
* Simple Matrix
*/
namespace simple{
/**
* Base class for casting
*/
template<typename Expression>
struct BaseExpression{
/**
* @return Expression
*/
const... |
48f414f02e92cae8f526781a06e355af4185c0a7 | 0a7c429c78853d865ff19f2a75f26690b8e61b9c | /Usul/Interfaces/IProjectCoordinates.h | 27bc591c627224ecaa6426065303cb67f9190672 | [] | no_license | perryiv/cadkit | 2a896c569b1b66ea995000773f3e392c0936c5c0 | 723db8ac4802dd8d83ca23f058b3e8ba9e603f1a | refs/heads/master | 2020-04-06T07:43:30.169164 | 2018-11-13T03:58:57 | 2018-11-13T03:58:57 | 157,283,008 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,544 | h | IProjectCoordinates.h |
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007, Arizona State University
// All rights reserved.
// BSD License: http://www.opensource.org/licenses/bsd-license.html
// Created by: Adam Kubach
//
//////////////////////////////////////////////////////////////... |
c00e93d4197a19d838b3d4d54a6b120f3b7dc7e6 | aa7eca0eeccc7c71678a90fc04c02dce9f47ec46 | /Codes_13TeV/PostAnalyzer_Run2015Data_2p5fbinv/PostAnalyzer_Qstar13TeV/LimitCode/BAT-0.9.2/src/BCH2DDict.cxx | e8a0b44580dd183741e5fbba39195d5c6c9cf2fa | [
"DOC"
] | permissive | rockybala/Analyses_codes | 86c055ebe45b8ec96ed7bcddc5dd9c559d643523 | cc727a3414bef37d2e2110b66a4cbab8ba2bacf2 | refs/heads/master | 2021-09-15T10:25:33.040778 | 2018-05-30T11:50:42 | 2018-05-30T11:50:42 | 133,632,693 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 29,095 | cxx | BCH2DDict.cxx | //
// File generated by /cvmfs/cms.cern.ch/slc6_amd64_gcc481/lcg/root/5.34.10-cms7//bin/rootcint at Sun Feb 14 14:56:16 2016
// Do NOT change. Changes will be lost next time file is generated
//
#define R__DICTIONARY_FILENAME BCH2DDict
#include "RConfig.h" //rootcint 4834
#if !defined(R__ACCESS_IN_SYMBOL)
//Break the... |
3430a7665349d409a87c5615fe69157a6838630a | 7253d45d66b12b309f320c2f7cd25ae94bf8c0d8 | /systems/collision.cpp | 7bb55d93e242cf041019554536728f7c54bfa9b2 | [] | no_license | bysnack/ray_caster | 781648a82656cf5610f05e5ba389330c2d686ece | 1fa7c6034f81da220faa5e3d5379744b41225328 | refs/heads/master | 2021-07-03T14:08:42.042129 | 2021-01-24T20:15:29 | 2021-01-24T20:15:29 | 218,593,513 | 0 | 0 | null | 2020-02-08T20:48:58 | 2019-10-30T18:16:29 | C++ | UTF-8 | C++ | false | false | 2,455 | cpp | collision.cpp | #include "collision.h"
#include "../components/components.h"
#include "../utils/vector.h"
/*
* Anonymous namespace
*
* @brief Contains a set of helper functions used to detect collisions
*/
namespace {
/*
* Heading to pos modifier
*
* @brief Calculates a position modifier depending on the ... |
1e9c126aa7cc8701b05a9fef7d9e4044ac6c7744 | 5d0a98b4a6e80e0d663c2503a7b9462812e96141 | /full-screen-window/4DPlugin.cpp | ae9c494c9f077211cfd9e963926b11dbe1a277b7 | [] | no_license | miyako/4d-plugin-full-screen-window | e8339499b66f913ad3c0cb37b5447e2e8b6429a3 | 17cc86e0e3201459404340cdea0abab8abb52d42 | refs/heads/master | 2020-05-23T08:00:38.539098 | 2018-05-29T00:53:38 | 2018-05-29T00:53:38 | 80,484,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,670 | cpp | 4DPlugin.cpp | /* --------------------------------------------------------------------------------
#
# 4DPlugin.cpp
# source generated by 4D Plugin Wizard
# Project : full-screen-window
# author : miyako
# 2017/01/31
#
# --------------------------------------------------------------------------------*/
#include "... |
df590b2ff744fa78cad91846999c14b527912bbb | fbc9b87e8b425715286addf14a19205bcbf21923 | /Primer Parcial/cicloforanidado/main.cpp | 372ee035703078ce234009af50b31bda5239368c | [] | no_license | decoello/Programacion2 | 20a1ed0ea5b9ffdde6ff65f65df6e88d3bf1d8ae | 5c056bf99d808242bb6906e3e7adf96936c26373 | refs/heads/master | 2020-06-04T02:01:26.926760 | 2014-09-23T04:24:26 | 2014-09-23T04:24:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | main.cpp | #include <iostream>
using namespace std;
int main()
{
int i,k;
for(i=1;i<5;i++){
for(k=1;k<=i;k++){
cout<<k;
}
cout<<"\n";
}
for(i=5;i>=1;i--){
for(k=1;k<=i;k++){
cout<<k;
}
cout<<"\n";
}
}
|
6e93a52b28c27e25ffcbd32dedbd8ed1bbf81d51 | 11372f47584ed7154697ac3b139bf298cdc10675 | /刷题比赛/HDU/1283.cpp | b3c56aacc7132c8b15bf995d17175245db4e073f | [] | no_license | strategist614/ACM-Code | b5d893103e4d2ea0134fbaeb0cbd18c0fec06d12 | d1e0f36dab47f649e2fade5e7ff23cfd0e8c8e56 | refs/heads/master | 2020-12-20T04:21:50.750182 | 2020-01-24T07:43:50 | 2020-01-24T07:45:08 | 235,958,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | cpp | 1283.cpp | /*
独立思考
一个题不会做,收获5%,写了代码10%,提交对了30%,总结吃透了这个题才是100%.
*/
#include<bits/stdc++.h>
using namespace std;
template <typename T>
void read(T &x)
{
x = 0;
char c = getchar();
int sgn = 1;
while(c<'0'||c>'9'){if(c=='-')sgn=-1;c=getchar();}
while(c>='0'&&c<='9')x=x*10+c-'0',c=getchar();
x*=sgn;
}
template <typename T>
... |
3ead160e96f1d1a25e39dff6a7666580365dbe4e | bcddc28628daa3dd1904077bb3307759e7bc732a | /Design Hit Counter.cpp | 85a0f5d2c3c3254966ef9b9a0ad3bdc34d97db3a | [] | no_license | Funsom/Leetcode | 985304fda728cd13a9e16d8d73563f1cacb9a5b0 | c613acb1fed2021f03faa74a73bb8df0d1874e60 | refs/heads/master | 2020-03-19T02:44:32.641984 | 2017-03-24T19:45:15 | 2017-03-24T19:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 862 | cpp | Design Hit Counter.cpp | class HitCounter {
public:
/** Initialize your data structure here. */
HitCounter() {
res=0;
}
/** Record a hit.
@param timestamp - The current timestamp (in seconds granularity). */
void hit(int timestamp) {
if(!roc.empty()&&roc.back().first==timestamp){
... |
8587b59230f0b20dfc722b28c272a39ae72b600a | 243b10891fb389f408a48c8f17215464ff7def49 | /KEditor/Inc/Actor/image_actor.cpp | d9d98d6c9feb9440c9a0b6595e5557ccdf38f879 | [] | no_license | kwangminy27/K-Diablo-II-Expansion | 4b3eb4146331995410f77494337e8e61f76f73cb | 9a2adcf915a59871df50848da7db531dcba38979 | refs/heads/master | 2020-04-11T05:50:12.683927 | 2019-01-02T12:44:27 | 2019-01-02T12:44:27 | 161,561,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,819 | cpp | image_actor.cpp | #include "stdafx.h"
#include "image_actor.h"
#include "Component/default_component.h"
void K::ImageActor::Initialize()
{
try
{
auto const& object_manager = ObjectManager::singleton();
auto transform = object_manager->CreateComponent<Transform>(TAG{ TRANSFORM, 0 });
CPTR_CAST<Transform>(transform)->set_local_... |
c0389dc8aba865df68cb23da3d0de398d13a0431 | b465f47fbcc1037905a2e54dc6bc3b83b80d268f | /CP Codes/Dictionary Search.cpp | 3518fa19c377b6ff3783166531d7ce4e41856b8d | [] | no_license | mrafayfarooq/CPP-Codes | 7db47576a8b8120b0c0d40838b4d322e059b7c31 | 037dd4733c88c4fd0e55c7f4146c2abda5b7ac51 | refs/heads/master | 2016-09-12T11:17:03.249549 | 2016-04-27T18:03:20 | 2016-04-27T18:03:20 | 57,234,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 692 | cpp | Dictionary Search.cpp | /*Author:k112257-M.Rafay Farooq
Program Mechanism: Take a character from user and find that character
in the dictionary and tell that how many time that word occurs*/
#include<iostream>
#include<conio.h>
#include<fstream>
#include<assert.h>
using namespace std;
int main()
{
char search;
char find;
string str;
int i... |
10013c403a4119b43f5e12cf2489b0febe285858 | f42c5827c1cdccbdf4289789a5ba06d5a1aada6b | /SerialStream.h | baa189060857b0205e89823988605b7b50c7baa6 | [] | no_license | jasperswallen/dhrystone-mbed | e337a1b864855e344ddbde58a09180a77fb10ef4 | 1ab64da99654c55450e9e6a276bec9754201c376 | refs/heads/master | 2023-02-22T16:59:29.605016 | 2021-01-26T09:16:09 | 2021-01-26T09:16:09 | 333,025,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,882 | h | SerialStream.h | #ifndef SERIALSTREAM_H
#define SERIALSTREAM_H
#include <mbed.h>
#include <platform/Stream.h>
/**
* SerialStream
* Bringing MBed serial ports back like it's 1999... or at least 2019.
*
* This class adapts an MBed 6.0 serial port class into a Stream instance.
* This lets you do two useful things with it... |
5f92afe092e3de913073b6b577377419bbed9083 | 46558a72c0babae2e12ae51c06f0e3ed609bec45 | /test3/src/test3.cpp | e5b07d0e3efbcc8f1f76636d09d7cbad0d339c2a | [] | no_license | 13651077712/algorithmPractice | f861e6480b07f4137a3d64f7443b42df5489a5fb | 5bd67d75c3d48aae46c21b6428d2db345fbbc531 | refs/heads/master | 2020-08-27T00:24:40.990483 | 2019-11-04T03:28:37 | 2019-11-04T03:28:37 | 217,193,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 577 | cpp | test3.cpp | //============================================================================
// Name : test3.cpp
// Author : bxk
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================
#include ... |
8b9848ec5733a7f3b52424dcd7c525ea5117c230 | 36baa210a9d8f31cf11ac805da92545aeac516ba | /DataStructures/main.cpp | b7827b68426bb87375307af7934720ece81cc9ad | [] | no_license | kenshin0302/DataStructures | 09643c74f7cdef867f9513ec4e5b6255aed55bf2 | bb94d7ee1d231b44eb7a02c3b598ea6407cf91d1 | refs/heads/master | 2021-05-18T02:41:56.324535 | 2020-04-02T08:28:15 | 2020-04-02T08:28:15 | 251,069,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 345 | cpp | main.cpp | #include "MyStack.h"
#include<iostream>
#include <string>
int main() {
MyStack<int> stack(4);
for (size_t i = 0; i < 1000; i++) {
std::cout << i << std::endl;
stack.Push(i);
}
//LOG("aaa");
std::cout << std::to_string(*stack.Pop()) << std::endl;
std::cout << std::to_string(*stack.Peek()) << std::endl;
char... |
b3a83bb79fe9b2723d8ae9a8159f63b35c01ce8f | 0749005eeb6d702d7a1205bb6ac87109a0750128 | /C++/Zad5/Zad5/Lista.h | 3c54a55193a5650f1cadef3f2ebdf158366aff10 | [] | no_license | KamilFCB/Studies | 140305e4b1285f5d9c1d6f009b2de98f1dfb54c8 | 32dbb3b77f421a1f4cdc74828acb5db5e6988a67 | refs/heads/master | 2022-07-23T23:28:25.167352 | 2020-02-11T17:55:53 | 2020-02-11T17:55:53 | 133,565,429 | 0 | 2 | null | 2022-07-08T19:22:26 | 2018-05-15T19:46:03 | C | UTF-8 | C++ | false | false | 338 | h | Lista.h | #pragma once
#include <iostream>
using namespace std;
class Lista
{
public:
Lista();
Lista(int v);
~Lista();
void wypisz();
public:
class Wezel
{
public:
Wezel();
Wezel(double v);
~Wezel();
Wezel *prev;
Wezel *next;
double val;
void dodaj(double v, int poz);
};
public:
Wezel *pierwszy;
W... |
efdacf09ec4ef7814d63f0489b2fbe513ef0d9a3 | 03b5b83024bf236ae0aaddfcecc7bec7b93c8516 | /test/test.cpp | 0902eb851c6169d5359ef6e7184e811b10f66737 | [] | no_license | kouxichao/crnn | 049d25876dbce9ba9541a455aefad623426f1415 | 476d1fa46fcfdee28aa05c7fb18cc7b3f628833f | refs/heads/master | 2020-04-06T12:52:02.960052 | 2019-09-21T02:54:47 | 2019-09-21T02:54:47 | 157,473,964 | 27 | 12 | null | null | null | null | UTF-8 | C++ | false | false | 4,381 | cpp | test.cpp | #include<dirent.h>
#include<string.h>
#include<stdio.h>
#include<iostream>
#include<vector>
#include "text_recognization.h"
#include "dlib/dlib/image_io.h"
#include "dlib/dlib/image_processing.h"
#include "dlib/dlib/image_processing/generic_image.h"
int toLowercase(std::string& name_string)
{
for (size_t i = 0; i ... |
2e73243009135fc0c1aceaaf0d323a0d985593b6 | ace20ae898aadf18c4ef8a2355b528422fc27bb5 | /codeforces/1042D.cpp | 6ba1b25790176c3d9ed776e2c165b1dcd2ad4ef4 | [] | no_license | pidddgy/competitive-programming | 19fd79e7888789c68bf93afa3e63812587cbb0fe | ec86287a0a70f7f43a13cbe26f5aa9c5b02f66cc | refs/heads/master | 2022-01-28T07:01:07.376581 | 2022-01-17T21:37:06 | 2022-01-17T21:37:06 | 139,354,420 | 0 | 3 | null | 2021-04-06T16:56:29 | 2018-07-01T19:03:53 | C++ | UTF-8 | C++ | false | false | 2,104 | cpp | 1042D.cpp | #include <bits/stdc++.h>
using namespace std;
#define cerr if(false) cerr
#define watch(x) cerr << (#x) << " is " << (x) << endl;
#define endl '\n'
#define ld long double
#define int long long
#define pii pair<int, int>
#define fi first
#define se second
#define sz(a) (int)a.size()
#define all(x) (x).begin(), (x).end()... |
2e4368ae62c53c40dba8ddb38645b42f94f9d180 | f9105601fdfb86ec6872b35725cabc61e7585e66 | /OperOverAssign/OperOverAssign.cpp | 40ed088d082e53b0fe5376b67f3ffb1da4565507 | [] | no_license | qudwns2052/cpp | 48d2d9d416c428f80d45de59e1fa707ad5111f1b | 512b7e205dd374327e665c1c7b15c3adc13582f0 | refs/heads/master | 2021-10-19T23:11:47.292646 | 2019-02-24T16:19:54 | 2019-02-24T16:19:54 | 170,008,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 687 | cpp | OperOverAssign.cpp | #include "stdafx.h"
#include <iostream>
using namespace std;
class CMyData
{
private:
int *m_pnData = nullptr;
public:
explicit CMyData(int nParam)
{
m_pnData = new int(nParam);
}
~CMyData() { delete m_pnData; }
operator int() { return *m_pnData; }
CMyData& operator=(const CMyData &rhs)
{
if (this == ... |
df89c0b8e4d64cd69a88436acb3ef53951d1f391 | fa7474550cac23f55205666e13a99e59c749db97 | /crash-reporter/crash_serializer.cc | 7090ae87365330d698ed5299d3b28b6b329822fa | [
"BSD-3-Clause"
] | permissive | kalyankondapally/chromiumos-platform2 | 4fe8bac63a95a07ac8afa45088152c2b623b963d | 5e5337009a65b1c9aa9e0ea565f567438217e91f | refs/heads/master | 2023-01-05T15:25:41.667733 | 2020-11-08T06:12:01 | 2020-11-08T07:16:44 | 295,388,294 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 12,144 | cc | crash_serializer.cc | // Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "crash-reporter/crash_serializer.h"
#include <stdio.h>
#include <string>
#include <utility>
#include <base/big_endian.h>
#include <base/comp... |
75bb9f23fa2b752b0dc2689f6e10db3c58e6c079 | a8247916c4e226bb77822db627dc72681669cefa | /main/src/game.cpp | 1a47fd66af8f2267d15b7467e714455f665c2814 | [] | no_license | RioneSSL/RI-AI | 817c0f8683abf02e27d273f79f9b23aa2b01b016 | f0709628279c6c19aa992c00bbf7712a9bb707c5 | refs/heads/master | 2022-12-17T01:24:15.483434 | 2020-09-21T09:48:28 | 2020-09-21T09:48:28 | 278,121,351 | 1 | 4 | null | 2020-08-13T09:46:24 | 2020-07-08T15:06:53 | Makefile | UTF-8 | C++ | false | false | 5,001 | cpp | game.cpp | #include <iostream>
#include <cmath>
#include <rclcpp/rclcpp.hpp>
#include "game.hpp"
using namespace std;
using namespace std::chrono_literals;
Game::Game() : Node("Masuo"){ //setting
publisher = this->create_publisher<message_info::msg::RobotCommands>("robot_commands",10); //grsimへのpublisher
auto callback =... |
d02fe26c9c66b4ea0ef68ef2ffe238880086c2a8 | 7d2a5178df248ecaad56be4dffb891cfa109896d | /PETOOL_DLL/InlineHook.cpp | d1be4b19a61d3650a32ab8c2ef35949bdb12c94e | [] | no_license | arckiCriss/PETools | ce5845e75c3c38b2c025afdf139ef17585bcb286 | 12e64174e378759f4d5da5b2d9cc29ea5964bae8 | refs/heads/master | 2020-06-23T15:45:27.243797 | 2019-06-10T14:36:02 | 2019-06-10T14:36:02 | 198,667,979 | 1 | 0 | null | 2019-07-24T16:01:59 | 2019-07-24T16:01:58 | null | GB18030 | C++ | false | false | 4,040 | cpp | InlineHook.cpp | #include "stdafx.h"
//8个32位通用寄存器
struct REGISTER_X86
{
DWORD eax;
DWORD ebx;
DWORD ecx;
DWORD edx;
DWORD esp;
DWORD ebp;
DWORD esi;
DWORD edi;
};
DWORD srcFuncAddr = 0; //原函数的入口地址
DWORD retFuncAddr = 0; //返回至原函数的地址
REGISTER_X86 register_x86 = { 0 }; //保存寄存器状态
PBYTE pSrcCodeBuffer = 0; //保存被HOOK的代码句
/**... |
2bd6b35a4c5879838d318e1b6f14e4a5aae25bf1 | abe541ae6e92d6683de6a0432ad0cf662a0fc5f9 | /Algorithms/Implementation/between-two-sets.cpp | c53436947098e67326d41da6dd6f24a36913a32f | [] | no_license | ozzi7/Hackerrank-Solutions | ab64805124f81256269d3a5ee766200cb495d8c1 | d094f83ffcbcf9bd264ddbac7c27091eedd21ad3 | refs/heads/master | 2021-01-01T19:44:33.257815 | 2018-08-10T20:39:39 | 2018-08-10T20:39:39 | 98,666,888 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cpp | between-two-sets.cpp | #include <iostream>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <string>
#include <stack>
#include <queue>
#include <unordered_set>
#include <unordered_map>
#include <cstdlib>
#include <ctime>
#include <deque>
#incl... |
fb7463f3d9115d3b52a24ddf49012250b1981097 | 064a279a3ce7e18802b728f57b266a9cd7f8d181 | /objects.cpp | 648c0f0baeab4386957485b6c4257e64d41052dd | [
"MIT"
] | permissive | simop07/boids-2D-simulation | 014cae402830e5505f1644845e304be05a47738c | eaaea4c65d2d0243b0c4e78271231160364c0a74 | refs/heads/main | 2023-04-14T20:14:58.430948 | 2023-01-04T13:22:54 | 2023-01-04T13:22:54 | 490,634,037 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,036 | cpp | objects.cpp | #include "objects.hpp"
double Vector_2d::xcomp() const { return m_x; }
double Vector_2d::ycomp() const { return m_y; }
double Vector_2d::norm() const { return sqrt(m_x * m_x + m_y * m_y); }
Vector_2d& Vector_2d::operator+=(Vector_2d const& v) {
m_x += v.m_x;
m_y += v.m_y;
return *this;
}
Vector_2d& Vector_2d... |
4fc5cccf65a693fb4296e0b1d8275171d84c33be | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-quicksight/source/model/TopBottomFilter.cpp | 6971e510e0bd3091387516fdfed2520d350cb1ed | [
"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 | 3,765 | cpp | TopBottomFilter.cpp | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/quicksight/model/TopBottomFilter.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
na... |
b6ff88d40f0be1abffe3f5179ab4c990687a2b71 | c847fc66148a59b3462d1c299bcc7f8afc88322c | /SceneTitleMenu/LayerTitleFront.h | d67e075f51ca55d4d98c68c7788b20bbe300a804 | [] | no_license | sasanon/action | 40d7392ffc9b47bc417be8d50665cf62beb38ee9 | f4fa8d0b52665cf165908354ca035d6b3722572d | refs/heads/master | 2020-05-17T01:53:17.249552 | 2015-03-10T02:28:41 | 2015-03-10T02:28:41 | 31,696,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | h | LayerTitleFront.h | #ifndef __LayerTitleFront_h__
#define __LayerTitleFront_h__
#include "cocos2d.h"
class LayerTitleFront : public cocos2d::Layer
{
public:
// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
virtual bool init();
virtual void update (float delta);
... |
8526fe71dc86d13814bec8337537d15cba0360d0 | 1e5d25a8e0e31b78c4e979af55ee2ad64687c258 | /77 Combinations/combination-optimization.cpp | de5928c221a8b11bbaa1a95d2dc0dadedfa031af | [] | no_license | charlenellll/LeetCodeSolution | ed02ee9b4059d6c1c6972af8cc56ea7bc85d401f | 3b846bf4cc1817aaae9e4e392547ad9ccde04e76 | refs/heads/master | 2021-01-01T16:18:58.440351 | 2019-11-19T15:48:04 | 2019-11-19T15:48:04 | 97,808,314 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | combination-optimization.cpp | class Solution {
private:
vector<vector<int>> res;
vector<bool> used;
void generateCombination(int n, int k, int start, vector<int> &c){
if( c.size() == k ){
res.push_back(c);
return;
}
// There's k-c.size() vacancies left, so the slot [i..n] has to h... |
5398f807174a8ea8551acfd41e599f912ae56614 | 9b4b8bc4fff192264db7e4996f5a53f0163e2784 | /并查集/1069.cpp | 9df3579e06cf8a9d7fc3d1affb659804ed25861d | [] | no_license | momoliu88/wikioi | a72f37b25e2bfc93677825cc7814965f64c7be57 | 5d5e3242241efdf37e798038e4bb95db42430024 | refs/heads/master | 2020-05-29T19:44:32.383356 | 2014-01-06T09:07:03 | 2014-01-06T09:07:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 968 | cpp | 1069.cpp | #include <iostream>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>
using namespace std;
#define MAXN 20001
#define MAXM 100001
int pa[MAXN*2];
typedef struct Node{
int a,b,c;
}Node;
int find(int x){
if(x==pa[x]) return x;
pa[x] = find(pa[x]);
return pa[x];
}
bool join(int x,int y){
... |
c440ba11a675ae0787dc783543d68c018e20972c | 51ec27cf1f9d14c6a36435ef893f05a0cdec3810 | /tcpServer/main.cpp | 45701599fd07da27c1aa93d5b9a53fe13db5952d | [] | no_license | Lev-vz/NBprj | 892296ce8ed1daaf7ff11bf7d3730269e877dfc2 | b455653fffb555ec831ed4572d59223b0eccfbb2 | refs/heads/master | 2023-02-27T15:08:05.761209 | 2021-02-05T13:33:35 | 2021-02-05T13:33:35 | 325,499,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,082 | cpp | main.cpp | #include <iostream>
#include <netinet/in.h>
#include <errno.h>
#include <string.h>
#include <unistd.h>
#include "defines.h"
#include "tools.h"
#include <sys/select.h>
//#define BUFFER_SIZE 1024
using namespace std;
int getSoketForServer(int port, int n){
int socketId = socket(AF_INET, SOCK_STREAM, 0); //Соз... |
3c89747840862c8e543702309010cce39933c008 | 7868fe0216e80926efc69709262772253851508d | /Aladdin/AppleItem.cpp | 8db7c8d3c353ddbda758c40e36067ad327e4f537 | [] | no_license | khangjig/Aladdin_ForTheLastTime | 173679bf0442650267c2483a15d0a5567796946a | a2af08b0bba3de3776ce23f5a477d53142311d0d | refs/heads/master | 2022-01-04T19:14:33.566074 | 2019-12-28T02:31:08 | 2019-12-28T02:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,037 | cpp | AppleItem.cpp | #include "AppleItem.h"
#include "Guard1State.h"
vector<Animation *> AppleItem::animations = vector<Animation *>();
AppleItem::AppleItem(int x, int y, int CellID, int id)
{
this->x = x;
this->y = y;
this->CellID = CellID;
this->id = id;
collider.x = x;
collider.y = y;
collider.vx = 0;
collider.vy = 0;
collid... |
5d09d8a3047fb5e44e51eccfb3eb018234aeb28d | 9fc07f1b2aa196d66ee6edd3b7386b55495f1554 | /Plants/Ogayonne_JonLuke_Plants.cpp | 4b2d0ad95df14feec55ea56c744952f5e75b4d42 | [] | no_license | JonLukeOgayonne/Final_Project_Plants | 7b8cef9d3460c760950d605a26867c0bb99842ae | 41960256e74d5c9ede1f0b8f8e26dc3591dd3b4c | refs/heads/master | 2023-05-02T20:18:09.928492 | 2021-05-10T03:40:17 | 2021-05-10T03:40:17 | 365,397,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,097 | cpp | Ogayonne_JonLuke_Plants.cpp | /*
JonLuke R. Ogayonne
CIS 1202 501
May 04, 2021
*/
#include <iostream>
#include<string>
#include "Plant.h"
#include "Tree.h"
#include "Flower.h"
using namespace std;
int main() {
// data types.
string plantID, plantColor;
int plantSize;
double plantLifespan;
int plantFruit;
// Prompt user to enter plant data... |
9130e8084032b612f4261e369f97691e5d867497 | 6660b02a2c7a69dad7f0b56dd22f5f5cc0a89bb6 | /structs_to_json.hpp | 511e07a4c222e2c4b5b15f352c31da061b289115 | [] | no_license | chenmusun/EasyServer | 2e4d111cc7ad3ff10d2897a97de19ebb26af5cb1 | bd3f166b46ad1f237b164919e7026d95c30c9bb7 | refs/heads/master | 2021-01-11T03:25:31.130549 | 2017-04-07T04:09:06 | 2017-04-07T04:09:06 | 71,035,133 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,622 | hpp | structs_to_json.hpp | #ifndef STRUCTS_TO_JSON_HPP_
#define STRUCTS_TO_JSON_HPP_
#include<string>
#include <jsoncpp/json/json.h>
#include"visit_struct.hpp"
struct SelfDefinedClass{
};
struct ConvertObjectToJson{
ConvertObjectToJson(Json::Value * root){
root_=root;
}
template<typename T>
voi... |
8e4da3cd1fe81f5d35d2495126c7fc67ad0c38e1 | 3d1d97c4ccf318c961b53d4580ebbc3104fe93ec | /TestTSPriorityQueue/unittest1.cpp | 1ae46e55beb6df75c8f7a88c21c3368deaa37b76 | [] | no_license | Sir0ga90/ThreadSafePriorityQueue | 161a27929793cdfd2dc31928ab7ac3e0914b8214 | 2b93393e7f056c40efe83b55c62a43d231c74d48 | refs/heads/master | 2020-03-28T13:18:27.506186 | 2018-09-11T21:48:36 | 2018-09-11T21:48:36 | 148,381,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 666 | cpp | unittest1.cpp | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../TSPriority_Queue/TSPriorQueue.h"
#include "../TSPriority_Queue/PriorityQueueDerived.h"
#include <algorithm>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace TestTSPriorityQueue {
TEST_CLASS(UnitTest1) {
public:
PriorityQueueDer... |
342261963fd138d91ef0ede24fbea6f07531f2cf | ea89955e343ced5e705b4a338039e658a4ba67cb | /Source/Shell/ShellMenuItem.cpp | a882094c316a9b65b2687a3351c4095b73b39618 | [] | no_license | kennethdmiller3/videoventure | 775ce24ee4aebe3dfc65876a3fc9abb93f29b51d | 7182b78fde61421c48abc679ef6f2992e740d678 | refs/heads/master | 2021-06-03T19:26:26.704306 | 2020-07-25T05:37:02 | 2020-07-25T05:37:02 | 32,195,803 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,231 | cpp | ShellMenuItem.cpp | #include "StdAfx.h"
#include "ShellMenuItem.h"
#include "VarItem.h"
#include "Font.h"
// color palette
const Color4 optionbackcolor[NUM_BUTTON_STATES] =
{
Color4( 0.2f, 0.2f, 0.2f, 0.5f ),
Color4( 0.1f, 0.3f, 1.0f, 0.5f ),
Color4( 0.4f, 0.4f, 0.4f, 0.5f ),
Color4( 0.1f, 0.7f, 1.0f, 0.5f ),
};
const Co... |
2ee0a243340a07e9c8b46db4cc51686d8d0f30b7 | 6d3dc5ec1a562724888ac7b56178c2b4aa32754c | /src/interfaces/python/opengm/inference/pyReducedInference.cxx | 3403c4d27f6294c4a850a88115c6c3d47b71b9cf | [
"MIT"
] | permissive | lijx10/opengm | 82ef2cfd7dc19e1e8c69826e088e11adddf02509 | 3ee326e544a54d92e2981f1dd65ca9949b93c220 | refs/heads/master | 2020-04-15T20:57:44.696418 | 2019-01-10T08:03:10 | 2019-01-10T08:03:10 | 165,015,640 | 8 | 0 | MIT | 2019-01-10T07:53:22 | 2019-01-10T07:53:22 | null | UTF-8 | C++ | false | false | 4,219 | cxx | pyReducedInference.cxx | #ifdef WITH_QPBO
// redefined symbol since pyTrws.cxx:(.text+0x0): multiple definition of `DefaultErrorFn(char*)'
#define DefaultErrorFn DefaultErrorFn_ReducedInference
#include <boost/python.hpp>
#include <string>
#include "inf_def_visitor.hxx"
#include <opengm/inference/reducedinference.hxx>
#include <param/reduc... |
8cdfbb9609be98215237aaad6691cccb93d56211 | 52d97c724054fe880e8bb22e9ab5185227ed14f6 | /mortgageCalculator2.cpp | 4dce039036b588e39ea7e0b03dcdc2df35286e84 | [] | no_license | mkwok94/School | 9c66d5c6cc93d4257b4a9891eb970f43d40f04b3 | bb1448629de4156243584a3e2e4ff05f208aafa1 | refs/heads/master | 2020-04-12T05:43:20.326900 | 2017-02-10T06:11:57 | 2017-02-10T06:11:57 | 62,365,085 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | mortgageCalculator2.cpp | #include <iostream>
#include <string>
#include <cmath>
using namespace std;
int getPassword()
{
int i;
i = 0;
while (i != 3)
{
string password;
cout << "Enter the password: ";
getline(cin, password);
if(password.compare("12345") == 0)
{
return 0;
}
else
{
cout << "INVALID.... |
00926a2b5b88335ecd1a643599967a8aa2ccea4c | eca9d5f5410dd00224e08bcf8a7d23b4b05ea1f6 | /src/magnet.cpp | ed004314050e52aeccb97a43e8d93107c8c199df | [] | no_license | shivam14300/Jetpack-Joyride-Clone | 40d04cbcf3f01ac59b9a9ad87b652da4a3a8e9cf | 874e12002957488e1a65074e40f6bbaae4ae4775 | refs/heads/master | 2020-04-30T21:41:22.236226 | 2019-03-22T08:18:06 | 2019-03-22T08:18:06 | 177,099,552 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,356 | cpp | magnet.cpp | #include "magnet.h"
#include "main.h"
#include<math.h>
Magnet::Magnet(float x, float y, color_t color) {
this->position = glm::vec3(x, y, 0);
this->rotation = 0;
this->timer = 0.0f;
// Our vertices. Three consecutive floats give a 3D vertex; Three consecutive vertices give a triangle.
// A cube has ... |
717d8ce2cd46865bbce91f66a9d19be224893f0e | 68329a5d26876479f59f6d3e281f67c994bce867 | /B00_P2_BERNABE_PAU_CERRRILLO_MARC/Exercici2Practica2/main.cpp | 7a69b5313860fd5ff59c63ee351e6fd640bbb4ba | [] | no_license | paubernabe/EstructuraDeDades | a355ac725ff3883deb05dccdbbeccd4cf0a3e7c8 | e4628218833c4d1e40ef89935182f3b54e4af7f8 | refs/heads/master | 2021-10-23T22:46:39.527243 | 2019-03-20T17:15:05 | 2019-03-20T17:15:05 | 122,514,188 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,270 | cpp | main.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: main.cpp
* Author: paubc
*
* Created on 22 / de març / 2018, 13:07
*/
#include <cstdlib>
#include "L... |
ede3dd5e89693f94125818f18b5d09ef5ff2a8b5 | ec156e39a7c3b372d8f1ded40a49aa9acef8f6e5 | /test/return_forget_frame_subroutine.cpp | 37ac69ddde45fbe55372a0b720beeaf435af2fe6 | [
"CC-BY-4.0"
] | permissive | Farwaykorse/coroutine | 255a4db274a056c5e0731597652783763b4d6737 | cfe7f0ca5ab4670e539a9f4d6c69d85ba4cb18f7 | refs/heads/master | 2020-12-10T10:31:10.642384 | 2019-12-27T05:26:12 | 2019-12-27T05:26:12 | 233,567,524 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 991 | cpp | return_forget_frame_subroutine.cpp | //
// Author : github.com/luncliff (luncliff@gmail.com)
// License : CC BY 4.0
//
#include <coroutine/return.h>
#include "test.h"
using namespace std;
using namespace coro;
// the type is default constructible
auto invoke_and_no_await() -> forget_frame {
return {};
};
auto coro_forget_frame_without_await_test... |
0dbf2874032e350a060e686de0b763a6348d6734 | fa7ec826c6e1645b780a2a16617a5f08f16dfff9 | /include/geoshape/Point2D.h | d2169ebf75b3495ad22a313187178413d987d2ad | [
"MIT"
] | permissive | xzrunner/geoshape | 3692a8b9fe567426d5ce1dada42543d84589378c | a79d5ef70e9949afeef472878ca25ed81d7ee1e6 | refs/heads/master | 2023-03-02T03:41:01.187203 | 2023-02-25T00:42:28 | 2023-02-25T00:42:28 | 152,873,339 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | h | Point2D.h | #pragma once
#include "geoshape/Shape2D.h"
namespace gs
{
class Point2D : public Shape2D
{
public:
Point2D() {}
Point2D(const sm::vec2& pos);
virtual ShapeType2D GetType() const override { return ShapeType2D::Point; }
virtual std::unique_ptr<Shape2D> Clone() const override;
virtual bool IsContain(const sm::v... |
c4c75600bb59bf6d924b57d0c40740f5a35b2973 | fd2b32674d9c2dc9b14fb3a803b6dc9aafc641dc | /day17/old/old_part1.cpp | 2e389723ebc0b9762ac825f4bbee5c0971562bee | [] | no_license | felrock/Advent-of-Code-2020 | 5287203ffa77fc8100183be8501ef4bcc1f0125d | 8db0f738331680a7bc74e7df74f224d0d947c40a | refs/heads/master | 2023-02-05T13:36:35.892658 | 2020-12-24T15:19:33 | 2020-12-24T15:19:33 | 317,660,011 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,589 | cpp | old_part1.cpp | #include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <array>
#include <map>
#include <regex>
#include <unordered_map>
using XYZ = std::tuple<int, int, int>;
std::string xyzToString(const XYZ& xyz)
{
return std::to_string(std::get<0>(xyz)) + "," + std::to_string(st... |
fb4b45f0f6265c742525cbc6a8e8f5fdb2ed7151 | 1ebcfbba6da89d31a0c99a04d0ba931b989d61be | /Tool/EtcTool.cpp | 86e6223793f43fc67b099c4c650d3d48734f838e | [
"Unlicense"
] | permissive | sangshub/55231 | a36ed4b765a6fb61a9b719c2247966d84c1e2496 | 1f31ab8610999856e932bac9327255475f56e4d4 | refs/heads/master | 2021-01-25T04:09:39.054813 | 2017-06-12T06:44:35 | 2017-06-12T06:44:35 | 93,401,540 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 7,441 | cpp | EtcTool.cpp | // EtcTool.cpp : 구현 파일입니다.
//
#include "stdafx.h"
#include "Tool.h"
#include "Monster.h"
#include "EtcTool.h"
#include "Tile.h"
#include "FileInfo.h"
#include "TextureMgr.h"
#include "BufferMgr.h"
#include "ObjMgr.h"
#include "ObjFactory.h"
#include "TileMap.h"
// CEtcTool 대화 상자입니다.
IMPLEMENT_DYNAMIC(CEtcTool, CDial... |
02f14d0fc6d0bdf46d8591479c414a765adcda35 | ab7a432885b11cd96eee137e296da7ae6ca96d52 | /atcoder/B172/c.cpp | c38e2c86a925f1c6656bc54f588f4293fe2ee87f | [] | no_license | n3k0fi5t/competitive_programming | 4bd0b845a2d43231c34894817973782b338a8ef6 | 363b40cad754c44ee106f0299f60f4de3c125555 | refs/heads/master | 2023-02-20T10:40:07.798767 | 2021-01-17T03:59:03 | 2021-01-17T03:59:03 | 284,964,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 731 | cpp | c.cpp | #include<bits/stdc++.h>
#define ull unsigned long long
#define ll long long
#define imei(...) "[ "<< #__VA_ARGS__ <<" = "<< __VA_ARGS__ <<" ] "
using namespace std;
void solve(int t) {
int n;
cin >> n;
}
vector<ll> a,b;
int n, m, k;
int main(int argc, char *argv[])
{
int ans = 0;
cin >> n >> m >> ... |
a66e410ebc7262bcd5acdf841e5220adf1bd1b69 | 1eeba9a9c3eaf3249a78a07ff8e03e69523a4f78 | /include/radix/util/Hash.hpp | 11d0d71d9d7ac5bf0f7d732a8d3bcaf645abd7de | [
"Zlib"
] | permissive | alyssais/RadixEngine | 3d40a31ec783438af2fb5c2756d71e98bf0d5fac | c9647067fbd1c65fe02db9e6012cc6f37420b854 | refs/heads/master | 2022-12-01T21:28:26.486541 | 2020-07-19T00:34:50 | 2020-07-19T13:59:08 | 287,838,730 | 0 | 0 | Zlib | 2020-08-15T23:09:15 | 2020-08-15T23:09:14 | null | UTF-8 | C++ | false | false | 1,884 | hpp | Hash.hpp | #ifndef RADIX_UTIL_HASH_HPP
#define RADIX_UTIL_HASH_HPP
#include <cstdint>
namespace radix {
namespace impl {
// MurmurHash2, by Austin Appleby, https://sites.google.com/site/murmurhash/
#if 0
constexpr unsigned int MurmurHash2(const void *key, int len, unsigned int seed) {
static_assert(sizeof(int) == 4, "int ty... |
1684c2399e231d91ea36128c9a6038f77952c120 | 6e40dca200bc41836fc479e59cf361617771812d | /tests/synchronized_tests.cpp | 8df7667e73674d3ea059a71a98161967efe8934b | [
"Unlicense"
] | permissive | aautushka/haisu | e7568663770d57c6a489ed4720c821dd7a60b5b6 | 3d961ffa090ade54aa3d6e8fc82cacb71c40cbb2 | refs/heads/master | 2021-12-15T07:07:13.217299 | 2021-12-04T07:29:48 | 2021-12-04T07:29:48 | 79,335,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,181 | cpp | synchronized_tests.cpp | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... |
d3fdaca51d470cc4ace4c06e14efeba43bb7133a | 1f58668ff008cbdc9c8a266f98e0eacad5c389ec | /others/QtC++Course/build-Qt436-Desktop_Qt_5_12_3_MinGW_32_bit-Debug/ui_suredialog.h | 728c312db6f05b4e5c5595905a13ae6d2ac7f95a | [] | no_license | rockdonald2/studying | c17201299cd565fad79d34955cbc49cf6e850619 | 069750a060be00c5e2a36fd1ae91f95b13f12537 | refs/heads/master | 2021-06-15T14:33:53.486395 | 2021-02-10T08:48:17 | 2021-02-10T08:48:17 | 134,238,959 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,787 | h | ui_suredialog.h | /********************************************************************************
** Form generated from reading UI file 'suredialog.ui'
**
** Created by: Qt User Interface Compiler version 5.12.3
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************************... |
d7408624d42d8251f324486fc5ab8aabae48dcdb | 697b96cea985d4b19d506ddece109a5706c7518a | /content/graph/matching/min-bi-cover.cpp | e5ac66531fdf6a09b381c635756a935d0ea52284 | [
"MIT"
] | permissive | ToxicPie/codebook | ed08db73a80ba0bda811f5a9b24bf050819995a0 | fc084c4b61026f33a03f2901430b6fe36d2c1e6f | refs/heads/master | 2023-07-19T02:08:17.566513 | 2021-08-31T17:53:39 | 2021-08-31T17:53:39 | 275,392,346 | 10 | 1 | MIT | 2021-08-31T17:53:40 | 2020-06-27T14:46:14 | C++ | UTF-8 | C++ | false | false | 1,274 | cpp | min-bi-cover.cpp | // maximum independent set = all vertices not covered
// include Dinic, x : [0, n), y : [0, m]
struct Bipartite_vertex_cover {
Dinic D;
int n, m, s, t, x[maxn], y[maxn];
void make_edge(int x, int y) {D.make_edge(x, y + n, 1);}
int matching() {
int re = D.max_flow(s, t);
for(int i = 0; i < n; i++)
for(Dinic::... |
da16026b6e3ad66df9cdca96afe312eba3ca1390 | b73f2ac1df7539f6d12afcb03e4a5625926e803b | /src/Capture/FileOutputStream.cpp | 5622bedc4c2f95ce20781128560dad19eb1122a2 | [] | no_license | nikkadim/SLS | 80c09ee4b2bb930335f73be753d48fcb9f24cbda | 5b34987bd5f4fd8ed9ac0614f39ddcf28e6f1d72 | refs/heads/master | 2020-03-21T08:25:57.863594 | 2013-08-09T19:35:50 | 2013-08-09T19:35:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | cpp | FileOutputStream.cpp | #include "Capture/FileOutputStream.h"
FileOutputStream::FileOutputStream(string& filename, int width, int height)
{
m_filename = filename;
m_width = width;
m_height = height;
}
void FileOutputStream::Open(void)
{
m_io.openSaveStream(m_filename, m_width, m_height, 30);
}
void FileOutputStream::WriteStream(shared_... |
65b0d4b40ad7b81d66dbfc708c0d0a2e77b8bbfd | 20b59e8a6419ed7ddb5adf35d05f0eb63e040076 | /test_file/test_hands/cards.cpp | c594f2361f72c16877b35786af85cc9cc1d9160f | [] | no_license | josekijosephi/poker | 00fd25b5accfd6104935fcb5212300dc8f0a84a4 | acc8a77ef7566abfc232e1f1d40600f2fee469bc | refs/heads/master | 2022-08-03T01:29:02.335811 | 2020-05-26T06:25:31 | 2020-05-26T06:25:31 | 266,235,000 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,375 | cpp | cards.cpp | /*
* Here we are concerned with creating a new deck
* of cards and printing a current deck
*
*/
#include <iostream>
#include <string>
#include <vector>
#include <iomanip>
#include <chrono> // we are going to try get milliseconds and pump fresh cards out faster
//#include <ctime>
#include <cstdlib>
#include "... |
2fe9dd58f223922d025b653a6cc345b1e02963d3 | 5388d29600f9eef6e3a401e41fbb1ec5f01c9c4e | /02_Lists/11_merge.cpp | aac81f930b1efa27648c695ea17ef92ba7fe7f78 | [] | no_license | a-lagopus/CPP-Playground | 380ecac02e9d4a87d6aed0dd2823d5b82b58f689 | 600bbfa1b0fd9f23534d4475e12ba90c77a7cef1 | refs/heads/master | 2020-04-02T04:12:41.290521 | 2018-11-06T21:57:41 | 2018-11-06T21:57:41 | 154,005,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | cpp | 11_merge.cpp | #include <stdio.h>
#include <iostream>
#include <list>
using namespace std;
bool merge(list<int> * a,list<int> * b,list<int> * c){
while (!a->empty() && !b->empty())
{
if(a->front() <= b->front()){
c->push_back(a->front());
a->pop_front();
}else{
c->push_back(b->front());
b->pop_f... |
d5bfee1c865fe56cc4612e2fa566d1480eeb154f | 27fbce7c075cd9f4cee7e1250e82cd56a7699c02 | /tao/x11/PolicyC.h | 626a47a09eb714895538c191a8213399d7823fca | [
"MIT"
] | permissive | jwillemsen/taox11 | fe11af6a7185c25d0f236b80c608becbdbf3c8c3 | f16805cfdd5124d93d2426094191f15e10f53123 | refs/heads/master | 2023-09-04T18:23:46.570811 | 2023-08-14T19:50:01 | 2023-08-14T19:50:01 | 221,247,177 | 0 | 0 | MIT | 2023-09-04T14:53:28 | 2019-11-12T15:14:26 | C++ | UTF-8 | C++ | false | false | 18,208 | h | PolicyC.h | /**
* @file PolicyC.h
* @author Martin Corino
*
* @brief CORBA C++11 Policy client stub class.
* Handcrafted after initial generation by RIDL.
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
/*
* **** Code generated by the RIDL Compiler ****
* RIDL has been developed by:
* Remedy IT Expe... |
00cefdec682d90b9d45d59a242a66b6b579bca50 | ed313bf0460c93ad03ad34e86175250b3c0e6ab4 | /dhuoj/dhu_a.cpp | 40874383c0eb0575accad6c4691f1e53dc955225 | [] | no_license | ThereWillBeOneDaypyf/Summer_SolveSet | fd41059c5ddcbd33e2420277119613e991fb6da9 | 9895a9c035538c95a31f66ad4f85b6268b655331 | refs/heads/master | 2022-10-20T02:31:07.625252 | 2020-04-24T11:51:32 | 2020-04-24T11:51:32 | 94,217,614 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 871 | cpp | dhu_a.cpp | #include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<vector>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<string>
#include<stack>
#include<map>
#include<set>
using namespace std;
//thanks to pyf ...
#define INF 0x3f3f3f3f
#define CLR(x,y) memset(x,y,sizeof(x))
#define mp(x,y... |
e08973d4a4e4ec061a44521e9ec5b0f599f39d5b | 47abbe9932aa4509e0a73480e8541bcac20d8f78 | /pretest.cpp | 4fb1ced64559779a8a87fe0e2b0bfac2c091f44c | [] | no_license | daffalfa/stukdat-02 | f7f9c94794e7da99c4073b5809bb6f201d678651 | 69086f7ec9a5c620b15c6b37faca301f3ebe00c1 | refs/heads/master | 2020-04-26T21:47:05.748917 | 2019-03-05T02:55:02 | 2019-03-05T02:55:02 | 173,851,498 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | cpp | pretest.cpp | #include<iostream>
using namespace std;
void moveZeroToEnd (int arr[], int n)
{
int count = 0;
for (int i = 0; i < n; i++)
if (arr[i] != 0)
arr[count++] = arr[i];
while (count < n)
arr[count++] = 0;
}
void input (int (&arr)[100],int& n)
{
cin>>n;
}
void output (int arr[]... |
58793e22b18555f09f140195864def81d35023c7 | ac1c9fbc1f1019efb19d0a8f3a088e8889f1e83c | /out/release/gen/content/browser/devtools/protocol/storage.cc | 9b8db8fe69491ff7704748d4c98da52dd780aff8 | [
"BSD-3-Clause"
] | permissive | xueqiya/chromium_src | 5d20b4d3a2a0251c063a7fb9952195cda6d29e34 | d4aa7a8f0e07cfaa448fcad8c12b29242a615103 | refs/heads/main | 2022-07-30T03:15:14.818330 | 2021-01-16T16:47:22 | 2021-01-16T16:47:22 | 330,115,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,480 | cc | storage.cc | // This file is generated by TypeBuilder_cpp.template.
// Copyright (c) 2016 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.
#include "content/browser/devtools/protocol/storage.h"
#include "content/browser/devtools/pro... |
05c5ab7a4f8f87bd91e82699d46b33e8d12539c7 | 25983054099903dc8615d6ee26e3a11f9d725322 | /SumReverseOrder.cpp | edc791aad42387d04d64f4e962ecfea320e83d23 | [] | no_license | joshbenner851/Cracking-Coding-Interview | 5c6334a1097cdc76e65f9b218d5289a821217ad4 | 0b8f24d38458bd2dde4848231527ac89c0b92a38 | refs/heads/master | 2021-01-20T19:59:31.604407 | 2016-08-26T16:32:42 | 2016-08-26T16:32:42 | 61,261,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,331 | cpp | SumReverseOrder.cpp | //Things to add: Carrying columns: 5 + 7 = 1 -> 2 not 12
//You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the Ts digit is at the head of the list. Write a function that adds the two numbers and returns the sum as a linked li... |
273900b51e8a5cecff98ef45ff28d2af5850f315 | 3f0a8e94be42866e44d95f09f503938f45046ef8 | /LoadBalancer.h | be227a6bccd7b26da51e63c5ffbb292d13e0699e | [] | no_license | VetaMaximova/SignatureGeneration | 3c31df84b1b535c57e94c92055380bc6788bb3d7 | 165d336e1fd4e728ef1d0396104e3276102990ff | refs/heads/main | 2023-01-13T20:51:51.333362 | 2020-11-15T21:36:46 | 2020-11-15T21:36:46 | 313,127,795 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 597 | h | LoadBalancer.h | ///
/// @file
/// @copyright Copyright (C) 2020, Bayerische Motoren Werke Aktiengesellschaft
/// (BMW AG)
///
#ifndef _LOADBALANCER_H_
#define _LOADBALANCER_H_
#include "HashWriter.h"
#include <boost/thread.hpp>
#include <memory>
class LoadBalancer {
public:
LoadBalancer(const std::shared_ptr<FileWriter> file_write... |
d38c54ca31b851f1ceee6d3d09bf08eb9fe5f80b | 90e2f09587cac69b1f4a76f3f090d1c02ef78391 | /src/modes/system/systemConfigurationWidget.cpp | 6328ae0a309cfe67e484cd93e6e2d807f1bc7833 | [
"BSD-3-Clause"
] | permissive | KDE/ksystemlog | 70fa55a30bb960c6954e6d01f7c7d286a33f24eb | 6ba2eb3ed81390fda48b091b114610d5c747b8a3 | refs/heads/master | 2023-08-16T18:26:34.352481 | 2023-08-06T01:54:13 | 2023-08-06T01:54:13 | 42,737,002 | 13 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | cpp | systemConfigurationWidget.cpp | /*
SPDX-FileCopyrightText: 2007 Nicolas Ternisien <nicolas.ternisien@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "systemConfigurationWidget.h"
SystemConfigurationWidget::SystemConfigurationWidget()
: LogModeConfigurationWidget(i18n("System Log"), QStringLiteral(SYSTEM_MODE_ICON), i18... |
90adaf82cfec3a453cb8de8010cbe0b1188fb884 | 9bdd58cc75b495e67ec6c186802c81121199c064 | /amsr-vector-fs-libvac/lib/include/vac/memory/optional_traits.h | db87bb9dd4d35cd3a3b58d3e66ceb8d783b3546a | [] | no_license | flankersky/vector_ap_bsw | 3bac290b569dd2f72d4d4971fcb8f96b8e188914 | b8f667356126a4f76a79109b02ee14ae1cd16a58 | refs/heads/master | 2022-01-14T03:38:29.499494 | 2019-07-04T04:15:02 | 2019-07-04T04:15:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,082 | h | optional_traits.h | /**********************************************************************************************************************
* COPYRIGHT
* -------------------------------------------------------------------------------------------------------------------
* \verbatim
* Copyright (c) 2018 by Vector Informatik GmbH. Al... |
450b4a61e6884f2ca5af02f998fa9b41b2c0bc65 | 7480d4c05930f0d56e9e4532cf0b7e305fcf4ed1 | /window_with_imgui/main.cpp | 30952f8d082e8c2d21d038389836fcb99a299742 | [] | no_license | mrjbom/OpenGL-examples | ee64693ff8615becc411a22dcad0b86743224c8f | 78e368ac47fd532c6b29dfb98019e1570c8897eb | refs/heads/master | 2022-02-13T04:21:53.050358 | 2019-08-26T11:12:47 | 2019-08-26T11:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,604 | cpp | main.cpp | #include <iostream>
#include <chrono>
#include <GL/glut.h>
#include "imgui.h"
#include "imgui_impl_glut.h"
#include "imgui_impl_opengl2.h"
#ifdef _MSC_VER
#pragma warning (disable: 4505) // unreferenced local function has been removed
#endif
using namespace std;
constexpr auto FPS_RATE = 120;
int windowHeight = 600,... |
be227d9a2bef1b8785f78ed42ddd3aaa87a3cf19 | a13950bee0e609a7492412bb8cd0f8c2fe91ca0f | /depthrgbobserver.h | d2ca0c802d0eb92d8d1247cc9b5a246c361980ae | [] | no_license | StPessina/OpenGEVApplication | 8d01e34bfd56d8f87682ea0d14280262be4ff508 | 580b52f7aa34a53638d7b923e29b83555672feb8 | refs/heads/master | 2021-01-15T16:14:29.811112 | 2016-03-05T15:45:05 | 2016-03-05T15:45:05 | 47,760,079 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 998 | h | depthrgbobserver.h | #ifndef DEPTHRGBOBSERVER_H
#define DEPTHRGBOBSERVER_H
#include <QObject>
#include <log4cpp/Category.hh>
#include "Application/streamdatareceiver.h"
#include "pcl/point_cloud.h"
#include "pcl/point_types.h"
#include <chrono>
#include "simpleviewer.h"
class DepthRgbObserver : public QObject
{
Q_OBJECT
public:... |
303e34e1c2203146b20dc3a780d1ccd40b46598c | 245641aa3e21083de399edf1e051a2ba8ac8dbce | /src/segmenterbin/segmentation-create-subsegments.cc | ccc3f7e68400d990fa4292876ac9f3a043449084 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | AccessibleAI/kaldi | 06e4b7d95c6bfaea50a67fb7f0ead664bd99ff31 | 6c6395d36cd06d3fd328a9f4a6e4ebba1383e356 | refs/heads/master | 2021-01-21T05:40:17.370150 | 2016-01-11T08:54:17 | 2016-01-11T08:54:17 | 48,358,346 | 0 | 0 | null | 2015-12-21T07:50:55 | 2015-12-21T07:50:55 | null | UTF-8 | C++ | false | false | 4,989 | cc | segmentation-create-subsegments.cc | // segmenterbin/segmentation-create-subsegments.cc
// Copyright 2015 Vimal Manohar (Johns Hopkins University)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
//... |
bbdee99dbb0efc118e50f38e3633975fd1726668 | 12154201c2c4dc8968b690fa8237ebfe1932f60a | /BOJ/10101.cpp | fda81ca6d55fa108517ac247d2d2ab38cf648a99 | [] | no_license | heon24500/PS | 9cc028de3d9b1a26543b5bd498cfd5134d3d6de4 | df901f6fc71f8c9d659b4c5397d44de9a2031a9d | refs/heads/master | 2023-02-20T17:06:30.065944 | 2021-01-25T12:43:48 | 2021-01-25T12:43:48 | 268,433,390 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | cpp | 10101.cpp | #include <iostream>
using namespace std;
int main() {
int angle[3];
int sum = 0;
bool isEqual = true;
for (int i = 0; i < 3; i++) {
cin >> angle[i];
sum += angle[i];
if (angle[i] != 60) isEqual = false;
}
if (isEqual) cout << "Equilateral";
else {
if (sum ... |
fa66b3d89d2ba19a701c55fccf0bf45a988b60f8 | db08a68639f7352b54ddf04d77f203956b9e328b | /Chapter4/main/main.cpp | 8c2d30209387d041a358b4b8b691abcdd173ab58 | [] | no_license | BrandonSchaefer/Formal-Language-Algorithms | 13ab86f6d8a05d568042e5196c8eed284618e5f8 | 9110ebd37d64f050ac3b4a239945434e4cfe4c66 | refs/heads/master | 2019-01-19T17:58:42.725355 | 2011-06-02T20:42:29 | 2011-06-02T20:42:29 | 1,688,917 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | main.cpp | #include "gramLib.h"
#include "gramIO.h"
#include "chap4.h"
using namespace std;
int main(){
char gramIn[30] = "grammers/grammerA.txt";
char gramOutA[30] = "grammer3.txt";
char gramOutB[30] = "grammer3Out.txt";
int i = 0;
// char* test[10] = {"a", "aa", "aab", "baa", "aabb", "bbaa", "bbbaaa", "aaabbb", "abb... |
71cf0f1778890b28940c9dd48e43a33b077d0008 | 1212b9f40d5863b4d351aa122f4ed25d952b0c5d | /include/Dictionary.h | b72a4e6fbb7f5cc9eb4184fe321e8e34dc0f2c9e | [] | no_license | suziyousif/Hangman_Game_POO | 055a3bf6b995097d87482878931f0390929cfe7b | 58228000c6a7bd9c0fd72dc1f0a80318048f4555 | refs/heads/master | 2020-05-16T21:40:27.882715 | 2019-06-14T17:38:26 | 2019-06-14T17:38:26 | 183,312,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | h | Dictionary.h | #ifndef DICTIONARY_H
#define DICTIONARY_H
#include "Word.h"
#include <vector>
#include <stdlib.h>
#include <time.h>
class Dictionary
{
public:
Dictionary();
void addWord(Word *_word);
Word *selectWord();
virtual ~Dictionary();
protected:
private:
vector <Word*> vec_... |
db6c92dbe105dc6fe8070ba8b25fb8682c5d5d28 | a3569601d203ad418a5cf68043001be5610da90f | /Array/26.删除有序数组中的重复项.cpp | 57c1caa75cb6609dfcec292bf700751d0c635465 | [] | no_license | l1nkkk/leetcode | a12b0e117dd5e580fe8356f66774f75edb4612ac | 6c4bb462afb68f5cd913d6f3010b39f62dce2d86 | refs/heads/master | 2023-03-16T17:25:18.765935 | 2022-08-06T15:31:42 | 2022-08-06T15:31:42 | 220,748,877 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 581 | cpp | 26.删除有序数组中的重复项.cpp | //
// Created by l1nkkk on 2021/7/26.
//
#include <iostream>
#include <vector>
using namespace std;
namespace leetcode26{
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
if(nums.size() == 0) return 0;
int slow, fast;
slow = 0;
fast = 0;
... |
7777a6ce75dd78152fa99f34b6bb5ae4d622932d | 67c2a90c7edfac3cfd891cb332c45e71cf4a6ad1 | /src/cdm_rcpp_irt_classify.cpp | c8c5096ba439004f0566b7eaae02aeec583f3ee5 | [] | no_license | alexanderrobitzsch/CDM | 48316397029327f213967dd6370a709dd1bd2e0a | 7fde48c9fe331b020ad9c7d8b0ec776acbff6a52 | refs/heads/master | 2022-09-28T18:09:22.491208 | 2022-08-26T11:36:31 | 2022-08-26T11:36:31 | 95,295,826 | 21 | 11 | null | 2019-06-19T09:40:01 | 2017-06-24T12:19:45 | R | UTF-8 | C++ | false | false | 1,120 | cpp | cdm_rcpp_irt_classify.cpp | //// File Name: cdm_rcpp_irt_classify.cpp
//// File Version: 0.07
// [[Rcpp::depends(RcppArmadillo)]]
//#include <RcppArmadillo.h>
#include <Rcpp.h>
using namespace Rcpp;
//using namespace arma;
///********************************************************************
///** cdm_rcpp_irt_classify_individuals
// [[Rcp... |
70a9c7707faa418eadc5a8cf089add654fd95150 | 0da00c4d8c477be869b0c1d2c3dcdff8f94142be | /SPOJ/STRSEQ.cpp | 854866a2592101441a235dae37335d7a62fc117b | [] | no_license | Kevinwen1999/Other-solutions | 031274517754e9684146261beeaf5369c810a0b0 | 5bfecc4bbf3fc2a7e90914c7558a6b458280556f | refs/heads/master | 2021-06-11T18:30:03.596911 | 2021-05-24T05:11:00 | 2021-05-24T05:11:00 | 100,914,594 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,735 | cpp | STRSEQ.cpp | #include <bits/stdc++.h>
#define MAXN 100010
#define INF 0x3f3f3f3f
using namespace std;
string in;
int N;
int nextidx[MAXN][10];
int dp[MAXN];
int nextone[MAXN];
int DP(int cur) {
if (~dp[cur]) return dp[cur];
dp[cur] = INF;
for (int i = 0; i < 10; i++) {
int nx = nextidx[cur + 1][i];
if (... |
6ce558473162363d75435e8e3b45a5fa9ee9c8ae | 33a52c90e59d8d2ffffd3e174bb0d01426e48b4e | /uva/11300-/11307.cc | b95be63de06a8b46c2fe39877b9bb656b6cf3031 | [] | no_license | Hachimori/onlinejudge | eae388bc39bc852c8d9b791b198fc4e1f540da6e | 5446bd648d057051d5fdcd1ed9e17e7f217c2a41 | refs/heads/master | 2021-01-10T17:42:37.213612 | 2016-05-09T13:00:21 | 2016-05-09T13:00:21 | 52,657,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,179 | cc | 11307.cc | #include<iostream>
#include<sstream>
#include<vector>
using namespace std;
const int BUF = 10005, COLOR = 20, INF = 1<<20;
int nNode, nIn[BUF];
vector<int> adj[BUF];
bool read(){
for(int i=0;i<BUF;i++){ adj[i].clear(); nIn[i] = 0; }
cin >> nNode;
if(nNode==0) return false;
string dummy; getline(cin,dummy);
... |
fe702d0bbe217b535eec1a2e5c4b2e6aa86969a6 | e9ce970d4690c49acd5141e5608925924c41eca6 | /CPP/HelloCpp2/chapter_27/OperatorOverload2.cpp | d21f45ccb810e7befa096a2b15a4c34fe80e6652 | [
"MIT"
] | permissive | hrntsm/study-language | 8422f2fa5ad45521031dd32334463736107a012f | 922578a5321d70c26b935e6052f400125e15649c | refs/heads/main | 2023-08-30T02:10:26.585375 | 2021-11-18T12:47:58 | 2021-11-18T12:47:58 | 341,214,562 | 1 | 0 | MIT | 2021-02-23T01:41:40 | 2021-02-22T13:45:32 | Python | UTF-8 | C++ | false | false | 302 | cpp | OperatorOverload2.cpp | #include <iostream>
using namespace std;
class String
{
public:
char *str;
String operator=(char *str)
{
this->str = str;
return *this;
}
};
int main()
{
String str1, str2;
str1 = str2 = "Kitty on your lap\n";
cout << str1.str << str2.str;
return 0;
}
|
c8070fbc0dd8a902f20033354e8081d8ca3fc86f | b59bd8b2004c25c7e0780a840c7b163020945f72 | /Solutions/C++/Problem 062.cpp | c53a815167c54bb9677e402fc00b7acab8740257 | [] | no_license | serishan/LeetCode | 5d9b5338279a22059610b936c48bd5279cd73543 | 1d1d492176628e76729ec7ca1e1266b0c99a0a76 | refs/heads/master | 2020-04-25T13:58:58.168403 | 2019-04-26T10:07:42 | 2019-04-26T10:07:42 | 172,825,670 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,094 | cpp | Problem 062.cpp | /*
Problem 62: Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
How many possible un... |
3dc5fa58bbcf3590c083ac85217e340e663406b8 | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/exponential/include/constants/log10_elo.hpp | 651c5a79eb54cb5fa017a5e1385415df365b3d18 | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 190 | hpp | log10_elo.hpp | #ifndef NT2_EXPONENTIAL_INCLUDE_CONSTANTS_LOG10_ELO_HPP_INCLUDED
#define NT2_EXPONENTIAL_INCLUDE_CONSTANTS_LOG10_ELO_HPP_INCLUDED
#include <nt2/exponential/constants/log10_elo.hpp>
#endif
|
153edaf503b7de3aff4398be6d9eca1f019b4810 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_new_log_6984.cpp | 4d6a7c0388b596664cffe3895ffd2453d2fbfd4c | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 175 | cpp | httpd_new_log_6984.cpp | ap_log_error(APLOG_MARK, APLOG_TRACE2, 0, server,
"%s: reusing backend connection %pI<>%pI",
scheme, local_addr, conn->addr); |
aba548ee71e7463c209aa59199e053342df9d932 | 0c9a1d588d5b1d6c741aac3613862985424c90a5 | /printer_manager/cupsconnection4ppds.cpp | 6a865cafda183381cfa0bf15b056f8fe3cff9c05 | [] | no_license | UbuntuKylin/kylin-printer | 0aa3702c1cb888ec16acc2dd428d6cb0a7bd8d14 | 419168270ee8c00d2a6b660e8f221f8547f1d4b0 | refs/heads/master | 2023-06-28T14:21:15.992747 | 2021-03-08T11:01:05 | 2021-03-08T11:01:05 | 327,815,268 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | cpp | cupsconnection4ppds.cpp | #include <QTimer>
#include <QDateTime>
#include "cupsconnection4ppds.h"
#include "ukuiPrinter.h"
CupsConnection4PPDs::CupsConnection4PPDs()
{
qDebug() << "CUPS开始建立" << QDateTime::currentDateTime().toString("yyyy-MM-dd-hh-mm-ss");
server = cupsServer();
ippPortNum = ippPort();
encryptionType = cupsEnc... |
6aac4ac212a55dc128854339fd63869fbf30e082 | b571a0ae02b7275b52499c66a756d10815136326 | /1049.Last.Stone.Weight.II/sol.cpp | 5549a4ec68b3b7b508ed32645fc8b2479b867b43 | [] | no_license | xjs-js/leetcode | 386f9acf89f7e69b5370fdeffa9e5120cf57f868 | ef7601cbac1a64339e519d263604f046c747eda8 | refs/heads/master | 2022-02-02T00:51:23.798702 | 2022-01-19T14:48:13 | 2022-01-19T14:48:13 | 89,140,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 746 | cpp | sol.cpp | class Solution {
public:
int pkg(vector<int>& vol, vector<int>& val, int v) {
int f[v+1];
memset(f, 0, sizeof f);
int n = val.size();
for (int i = 0; i < n; ++i) {
int curVol = vol[i];
int curVal = val[i];
for (int j = v; j >= curVol; ... |
4be4a221159641dfe9547c78042cbee5d9daae02 | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/xpressive/detail/core/results_cache.hpp | 5ee0def5226b6c5bb8ca184b0ece70a055a4a23b | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 81 | hpp | results_cache.hpp | #include "thirdparty/boost_1_58_0/boost/xpressive/detail/core/results_cache.hpp"
|
6e6fce171a46c6eefee27d1a30a5dd3b5a9eadb2 | dea58388a1ef05d3c934c0b5f16ec8a7569c72d6 | /MiniDebugger/DlgProxy.h | 5eb14ece356fc5669eae7fef361855a998fae20d | [] | no_license | feilang864/MiniDebugger | 3fa7cd8df5345f5d663a26d55fe4f6a3ebcda003 | 2dfdb8fc0707eb97cf0651effde2fe418eb50765 | refs/heads/master | 2021-01-10T11:28:04.121506 | 2015-08-07T13:02:59 | 2015-08-07T13:02:59 | 45,438,335 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 725 | h | DlgProxy.h |
// DlgProxy.h: 头文件
//
#pragma once
class CMiniDebuggerDlg;
// CMiniDebuggerDlgAutoProxy 命令目标
class CMiniDebuggerDlgAutoProxy : public CCmdTarget
{
DECLARE_DYNCREATE(CMiniDebuggerDlgAutoProxy)
CMiniDebuggerDlgAutoProxy(); // 动态创建所使用的受保护的构造函数
// 特性
public:
CMiniDebuggerDlg* m_pDial... |
23f3b107c304172c185784bb641fe514b20ff469 | 444795313ac4dd280670bac6e5c58d2257bba047 | /src/cubelet.cpp | 053338f41b6eeeec02e9f2f55dbecc9dea4b71da | [] | no_license | alexasensio/rubik_cube | af313f4729448adedb7b747068c4bcc17aef2065 | 1b21a576e7a9e131e94e710a97972df8522936dd | refs/heads/master | 2020-07-02T09:52:21.354082 | 2016-11-29T16:31:43 | 2016-11-29T16:31:43 | 74,311,870 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,827 | cpp | cubelet.cpp | #include "cubelet.h"
#include <iostream>
cubelet::cubelet() //default constructor
{
colourX='-';
colourY='-';
colourZ='-';
}
cubelet::cubelet(char A, char B, char C) //constructor with parameters
{
colourX=A;
colourY=B;
colourZ=C;
}
cubelet::~cubelet() //destructor. Usi... |
96387b02355095cffd8a405d94445f00123b3997 | 2105a3a0f2395f9c790f591cada94186dd92ae53 | /assignment5/TravellingAgency/Hotel.cpp | e86c710576ddc3bd3809d48789a343f42e08a946 | [] | no_license | abdullahcheema63/cp_assignments | 98dfb032356678602059f8c057c73cb5abb45a4b | 7a516edb396d9dbcda2bd5f6722e29b2f967e843 | refs/heads/master | 2021-01-19T16:08:55.522133 | 2017-08-21T20:04:30 | 2017-08-21T20:04:30 | 100,988,092 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | Hotel.cpp | /*
* Hotel.cpp
*
* Created on: Apr 13, 2017
* Author: abdullah
*/
#include "Hotel.h"
Hotel::Hotel(string n,double fFee,int nN,double ppn):TravelOption(n,fFee) {
// TODO Auto-generated constructor stub
numNights=nN;
pricePerNight=ppn;
}
double Hotel::price()
{
return (numNights*pricePerNight)+flatFee;
}... |
7d8b7ba643602cde30ff2ae1eed996d4f6dfd26b | b0c9bb1fb35525844297dc509b4b0a010e4c2b48 | /abc193_b.cpp | e71e61dbb6f3050fb8dd79db9dea3c41bfc357b2 | [] | no_license | takumi-zer0/competitiveprogramming | 5768bbb8e8370f5f36ed25e452f8b2d953ff0043 | c9bc21494d26676c7c0103d9d4419e44b75810b6 | refs/heads/master | 2023-07-11T17:46:12.982924 | 2021-08-25T08:32:57 | 2021-08-25T08:32:57 | 386,274,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | cpp | abc193_b.cpp | #include <bits/stdc++.h>
#define ll long long
using namespace std;
template<class T>bool chmax(T &a, const T &b){if(a>b){a=b; return 1;} return 0;}
template<class T>bool chmin(T &a, const T &b){if(b<a){a=b; return 1;} return 0;}
int main(){
ll n; cin >> n;
ll a,b,c;
vector<int> d;
for(int i= 0; i< n;i++){
cin >>... |
89fc83c71d3590492ee3f1b41e37f80d2f10562f | ad40beac422d2b8f10ed74943703fa84fca69b14 | /Google_tests/TestObjects.cpp | a3b85c1b4d04c3fdad82c962dd42a208c5c03165 | [] | no_license | Davide307/Esame_Programmazione | 13ba79c47e813c025d511bada2dd25966027ac2e | 67174f563c3ee2ba2bbcdbd95b3357479ddead4f | refs/heads/master | 2020-08-08T03:20:16.704339 | 2020-02-15T16:21:47 | 2020-02-15T16:21:47 | 213,691,811 | 0 | 1 | null | 2019-10-09T20:21:53 | 2019-10-08T16:11:37 | C++ | UTF-8 | C++ | false | false | 1,811 | cpp | TestObjects.cpp | #include <gtest/gtest.h>
#include <SFML/System.hpp>
#include "../Hero.h"
#include "../GameCharacter.h"
#include "../RectangleShape.h"
#include "../Bullet.h"
//
// Created by davide on 28/09/19.
TEST(Bullet, checkInitObject) {
RectangleShape o1;
o1.init(90,100,sf::Vector2f(10,20));
ASSERT_EQ(90,o1.x);
A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.