hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc03999d57d4c2c81c6f04254e22d6e72cf90287 | 2,699 | cpp | C++ | C++/98.validate-binary-search-tree.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/98.validate-binary-search-tree.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/98.validate-binary-search-tree.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
// version 1 : recursive dfs
/*
long long pre = LONG_LONG_MIN;
bool res = true;
... | 23.267241 | 89 | 0.438681 | WilliamZhaoz |
cc115785c91f7893b229086f186b767ccfff34c7 | 917 | hpp | C++ | include/gui/ng/spinbox.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 3 | 2015-03-28T02:51:58.000Z | 2018-11-08T16:49:53.000Z | include/gui/ng/spinbox.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 39 | 2015-05-18T08:29:16.000Z | 2020-07-18T21:17:44.000Z | include/gui/ng/spinbox.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | null | null | null | #ifndef NAMELESSGUI_SPINBOX_HPP
#define NAMELESSGUI_SPINBOX_HPP
#include "spritewidget.hpp"
namespace namelessgui {
class Button;
class LineInput;
class SpinBox : public RectangularWidget
{
public:
SpinBox();
~SpinBox();
void setSize(const sf::Vector2f& size) override;
void setValue(unsigned int val... | 16.375 | 52 | 0.74373 | namelessvoid |
cc123b87d4c7220161a9900c43b7459bf1513cea | 7,069 | cpp | C++ | src/examples/raytrace.cpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 13 | 2019-10-29T14:16:13.000Z | 2022-02-24T06:44:37.000Z | src/examples/raytrace.cpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 62 | 2019-04-16T13:53:50.000Z | 2022-03-07T19:44:23.000Z | src/examples/raytrace.cpp | JordanMcManus/MBES-lib | 618d64f4e042bf5660015819f89537cdd70e696d | [
"MIT"
] | 18 | 2019-04-10T19:51:21.000Z | 2022-01-31T21:42:22.000Z | /*
* Copyright 2020 © Centre Interdisciplinaire de développement en Cartographie des Océans (CIDCO), Tous droits réservés
*/
/*
* \author Jordan McManus
*/
#ifndef MAIN_CPP
#define MAIN_CPP
#pragma comment(lib, "Ws2_32.lib")
#include <Eigen/Dense>
#include <fstream>
#include <iostream>
#include <string>
#inclu... | 29.33195 | 275 | 0.524261 | JordanMcManus |
cc1544596c5220414a64bf31e7c7544231b3ac25 | 7,412 | cpp | C++ | anphon/phonons.cpp | dlnguyen/alamode | f99d333262489f28a3ef4838dfbe3147dc239261 | [
"MIT"
] | null | null | null | anphon/phonons.cpp | dlnguyen/alamode | f99d333262489f28a3ef4838dfbe3147dc239261 | [
"MIT"
] | null | null | null | anphon/phonons.cpp | dlnguyen/alamode | f99d333262489f28a3ef4838dfbe3147dc239261 | [
"MIT"
] | null | null | null | /*
phonons.cpp
Copyright (c) 2014, 2015, 2016 Terumasa Tadano
This file is distributed under the terms of the MIT license.
Please see the file 'LICENCE.txt' in the root directory
or http://opensource.org/licenses/mit-license.php for information.
*/
#include "mpi_common.h"
#include <iostream>
#include "phonons.... | 28.728682 | 109 | 0.557879 | dlnguyen |
cc16a6e325f7cdac7d5abdb49100566b69ee4aa7 | 1,113 | cpp | C++ | String/0Other Important Solved/Leetcode/76. Minimum Window Substring.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | 1 | 2021-01-18T14:51:20.000Z | 2021-01-18T14:51:20.000Z | String/0Other Important Solved/Leetcode/76. Minimum Window Substring.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | String/0Other Important Solved/Leetcode/76. Minimum Window Substring.cpp | Coderangshu/450DSA | fff6cee65f75e5a0bb61d5fd8d000317a7736ca3 | [
"MIT"
] | null | null | null | // window length is maintained using 2 pointers
// begin and end, for each end it is incremented
// according to validity the parameters are
// updated and then when all the parameters are
// satisfied then the begin is incremented until
// a small part of the parameter gets unsatisfied
// then again the end is moved... | 41.222222 | 70 | 0.63522 | Coderangshu |
cc17f204626a8fd652d8f6ae7b570d3d4ea31278 | 7,903 | cpp | C++ | Code/src/engine/graphics/gui/Container.cpp | Thraix/MasterThesis | 4e4cb94b2a4ee261b2b9974aa4b20f6643eb6595 | [
"MIT"
] | 1 | 2021-04-16T10:54:38.000Z | 2021-04-16T10:54:38.000Z | Code/src/engine/graphics/gui/Container.cpp | Thraix/MasterThesis | 4e4cb94b2a4ee261b2b9974aa4b20f6643eb6595 | [
"MIT"
] | null | null | null | Code/src/engine/graphics/gui/Container.cpp | Thraix/MasterThesis | 4e4cb94b2a4ee261b2b9974aa4b20f6643eb6595 | [
"MIT"
] | null | null | null | #include "Container.h"
#include <graphics/gui/GUIUtils.h>
#include <utils/Utils.h>
#include <utils/AABBUtils.h>
#include <graphics/gui/Component.h>
#include <cstdlib>
namespace Greet
{
REGISTER_COMPONENT_DEFINITION(Container);
Container::Container()
: Container(XMLObject(), nullptr)
{
}
Container::Co... | 25.659091 | 130 | 0.617614 | Thraix |
cc1978fdc685268ec2b998e7613ebd537cd2b805 | 3,768 | cpp | C++ | code/client/login.cpp | AjdeDjokovic/ComputerNetworkCourseDesign | 35a365a6e0ce054b45ab08cdddff77e4fe99fdf7 | [
"MIT"
] | 5 | 2020-09-09T14:09:15.000Z | 2021-12-02T01:09:19.000Z | code/client/login.cpp | AjdeDjokovic/ComputerNetworkCourseDesign | 35a365a6e0ce054b45ab08cdddff77e4fe99fdf7 | [
"MIT"
] | null | null | null | code/client/login.cpp | AjdeDjokovic/ComputerNetworkCourseDesign | 35a365a6e0ce054b45ab08cdddff77e4fe99fdf7 | [
"MIT"
] | null | null | null | #include "login.h"
#include "ui_login.h"
#pragma execution_character_set("utf-8")
Login::Login(QWidget *parent) :
QWidget(parent),
ui(new Ui::Login)
{
ui->setupUi(this);
this->setWindowTitle("登录");
ui->qle_ip->setFocus();
ui->qle_ip->setText("127.0.0.1");
ui->qle_port->setText("1234");
... | 28.545455 | 130 | 0.649151 | AjdeDjokovic |
cc1ff6dbbc942aee4476f4a5ec5c05398dd9a3e1 | 1,794 | cpp | C++ | snippets/cpp/VS_Snippets_CLR_Classic/classic Array.CreateInstance4 Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-02-22T09:30:21.000Z | 2021-08-02T23:44:31.000Z | snippets/cpp/VS_Snippets_CLR_Classic/classic Array.CreateInstance4 Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR_Classic/classic Array.CreateInstance4 Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
// <Snippet1>
using namespace System;
void PrintValues( Array^ myArr );
void main()
{
// Creates and initializes a multidimensional Array instance of type String.
array<int>^myLengthsArray = {3,5};
array<int>^myBoundsArray = {2,3};
Array^ myArray = Array::CreateInstance( String::typeid, myLengthsArray, myB... | 28.03125 | 107 | 0.590858 | BohdanMosiyuk |
cc2bd8e040e32dd5a376c734768e8af8debc6d69 | 2,221 | hpp | C++ | src/problems/51-100/93/problem93.hpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | 1 | 2019-12-25T10:17:15.000Z | 2019-12-25T10:17:15.000Z | src/problems/51-100/93/problem93.hpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | src/problems/51-100/93/problem93.hpp | abeccaro/project-euler | c3b124bb973dc3a1cf29e8c96c3e70c8816d5fa3 | [
"MIT"
] | null | null | null | //
// Created by Alex Beccaro on 01/03/18.
//
#ifndef PROJECT_EULER_PROBLEM93_HPP
#define PROJECT_EULER_PROBLEM93_HPP
#include <vector>
#include <map>
#include <set>
namespace problems {
class problem93 {
private:
/**
* Apply all basic operators (+, -, *, /) combinations to the first digit a... | 37.644068 | 116 | 0.595678 | abeccaro |
cc30f74ad652803f4f5119b82ce65872ac3f1ee4 | 5,983 | cpp | C++ | SerialPrograms/Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | 1 | 2022-03-29T18:51:49.000Z | 2022-03-29T18:51:49.000Z | SerialPrograms/Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonLA/Inference/PokemonLA_DialogDetector.cpp | Gin890/Arduino-Source | 9047ff584010d8ddc3558068874f16fb3c7bb46d | [
"MIT"
] | null | null | null | /* Dialog Detector
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include <QImage>
#include "CommonFramework/ImageTools/ImageStats.h"
#include "CommonFramework/ImageTools/SolidColorTest.h"
#include "PokemonLA_CommonColorCheck.h"
#include "PokemonLA_DialogDetector.h"
#include <io... | 37.39375 | 135 | 0.670734 | Gin890 |
cc3b1cd4c0389980dc03552abe4412a4465caeda | 7,183 | cpp | C++ | framework/trace.cpp | trevortomesh/OpenApoc | 53cd163889fbfd21a9c128183427dad4255ac1a3 | [
"MIT"
] | 1 | 2020-11-10T18:31:44.000Z | 2020-11-10T18:31:44.000Z | framework/trace.cpp | FilmBoy84/OpenApoc_FB84 | a6b69cafba01744998ced6c67b93fbd937d32d26 | [
"MIT"
] | null | null | null | framework/trace.cpp | FilmBoy84/OpenApoc_FB84 | a6b69cafba01744998ced6c67b93fbd937d32d26 | [
"MIT"
] | null | null | null | #include "framework/trace.h"
#include "framework/configfile.h"
#include "framework/options.h"
#include <chrono>
#include <fstream>
#include <list>
#include <memory>
#include <mutex>
#include <sstream>
#include <thread>
#include <utility>
#include <vector>
namespace
{
using OpenApoc::UString;
const unsigned int TRACE... | 22.875796 | 96 | 0.677015 | trevortomesh |
cc3eb655f59cc5712c0b334e6f1ecdae77342af8 | 189 | cpp | C++ | src/game/Utils.cpp | TimoRiegebauer/Sandbox-Clone | 0efec439ea1a674a303439b73fa5d414f7abdc73 | [
"MIT"
] | null | null | null | src/game/Utils.cpp | TimoRiegebauer/Sandbox-Clone | 0efec439ea1a674a303439b73fa5d414f7abdc73 | [
"MIT"
] | null | null | null | src/game/Utils.cpp | TimoRiegebauer/Sandbox-Clone | 0efec439ea1a674a303439b73fa5d414f7abdc73 | [
"MIT"
] | null | null | null | #include "Utils.hpp"
long double currTime() {
return std::chrono::duration_cast<std::chrono::milliseconds>(
std::chrono::system_clock::now().time_since_epoch()
).count();
} | 27 | 65 | 0.671958 | TimoRiegebauer |
cc4539669dddac10a8275985937b799bf4c94607 | 17,533 | cpp | C++ | src/GUI-qt/plugins/Heatmap/Heatmap.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/GUI-qt/plugins/Heatmap/Heatmap.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/GUI-qt/plugins/Heatmap/Heatmap.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | 2 | 2016-09-19T00:16:05.000Z | 2021-03-29T22:06:45.000Z | /****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 **
** Fors... | 40.213303 | 233 | 0.657047 | OpenCMISS-Dependencies |
cc4a91f7af1e10f677add0c3a688365ebb14ef63 | 16,641 | cpp | C++ | prototype/src/asf_meta/enum_table.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 3 | 2017-12-31T05:33:28.000Z | 2021-07-28T01:51:22.000Z | prototype/src/asf_meta/enum_table.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | null | null | null | prototype/src/asf_meta/enum_table.cpp | glshort/MapReady | c9065400a64c87be46418ab32e3a251ca2f55fd5 | [
"BSD-3-Clause"
] | 7 | 2017-04-26T18:18:33.000Z | 2020-05-15T08:01:09.000Z | /** Enum-to-string tables automatically generated by enum_parse.pl from enum.h--
DO NOT EDIT THIS FILE! Edit enum.h and re-run enum_parse.pl instead!
enum_parse.pl last regenerated this file on Mon Jan 28 14:49:32 AKST 2008
*/
#include "asf_meta/util.h"
#include "asf_meta/enum.h"
const asf::enum_value_description_t... | 80.781553 | 262 | 0.746349 | glshort |
cc4cf0071cb5dc9177cca12e0c2aafd35be75202 | 1,987 | cpp | C++ | android-28/android/content/ClipboardManager.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/content/ClipboardManager.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/content/ClipboardManager.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./ClipData.hpp"
#include "./ClipDescription.hpp"
#include "../../JString.hpp"
#include "./ClipboardManager.hpp"
namespace android::content
{
// Fields
// QJniObject forward
ClipboardManager::ClipboardManager(QJniObject obj) : android::text::ClipboardManager(obj) {}
// Constructors
// Methods
void... | 21.597826 | 93 | 0.712632 | YJBeetle |
cc5993d5bb03cc7ca9d5fbc40f3f5419e0315764 | 2,363 | cpp | C++ | trabalho_02/src/SDLBase.cpp | matheuscscp/IDJ | c180717da6a5d1c2a67d022df631adbc9e136e95 | [
"MIT"
] | null | null | null | trabalho_02/src/SDLBase.cpp | matheuscscp/IDJ | c180717da6a5d1c2a67d022df631adbc9e136e95 | [
"MIT"
] | null | null | null | trabalho_02/src/SDLBase.cpp | matheuscscp/IDJ | c180717da6a5d1c2a67d022df631adbc9e136e95 | [
"MIT"
] | null | null | null | /// @ingroup MOD_SDLBASE
/// @file SDLBase.cpp
/// @brief Implementations of all methods of the SDLBase class
/// @author Matheus Pimenta
#include "../include/mod/simplestructures.hpp"
#include "../include/SDLBase.hpp"
using namespace std;
SDL_Surface* SDLBase::screen_ = NULL;
unsigned int SDLBase::dt_ = 0;
unsigne... | 18.753968 | 69 | 0.646212 | matheuscscp |
7fdf26e36b5635c874ece940718f6d1f08261a4a | 5,518 | cpp | C++ | tesseract_motion_planners/ompl/src/continuous_motion_validator.cpp | bi3ri/tesseract_planning | 7e8d9f0daa07a06f2b8e0b433de3bf4d36c12189 | [
"BSD-3-Clause",
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | tesseract_motion_planners/ompl/src/continuous_motion_validator.cpp | bi3ri/tesseract_planning | 7e8d9f0daa07a06f2b8e0b433de3bf4d36c12189 | [
"BSD-3-Clause",
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | tesseract_motion_planners/ompl/src/continuous_motion_validator.cpp | bi3ri/tesseract_planning | 7e8d9f0daa07a06f2b8e0b433de3bf4d36c12189 | [
"BSD-3-Clause",
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | /**
* @file continuous_motion_validator.cpp
* @brief Tesseract OMPL planner continuous collision check between two states
*
* @author Jonathan Meyer
* @date April 18, 2018
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2017, Southwest Research Institute
*
* @par License
* Software License... | 36.065359 | 120 | 0.712396 | bi3ri |
7fe00e2f4e503573f61899f8e9bd5e8d3c530e44 | 1,744 | cpp | C++ | 10806.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10806.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 10806.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 18.956522 | 68 | 0.540711 | felikjunvianto |
7fe08db260efa5b38ed0694b51aaec8a681943f6 | 17,157 | cpp | C++ | src/framework/dr/protocol/rapidjson_protocol.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 841 | 2016-11-11T21:44:15.000Z | 2022-03-13T09:00:56.000Z | src/framework/dr/protocol/rapidjson_protocol.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 21 | 2016-11-17T04:24:06.000Z | 2019-04-11T09:36:52.000Z | src/framework/dr/protocol/rapidjson_protocol.cpp | qingnia/Pebbble | 8f8ea5f24565f3e6c5e488597131eba9bdbf7d31 | [
"BSD-2-Clause"
] | 343 | 2016-11-11T11:06:19.000Z | 2022-03-21T09:07:45.000Z | /*
* Tencent is pleased to support the open source community by making Pebble available.
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the Lic... | 26.724299 | 136 | 0.656583 | qingnia |
7fe9ebb67165a7b03c641fbb7b90453de7bcc99f | 471 | hpp | C++ | ares/ng/card/card.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ng/card/card.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ng/card/card.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | struct Card {
Node::Peripheral node;
VFS::Pak pak;
Memory::Writable<n8> ram;
struct Debugger {
Card& self;
//debugger.cpp
auto load(Node::Object) -> void;
auto unload(Node::Object) -> void;
struct Memory {
Node::Debugger::Memory ram;
} memory;
} debugger{*this};
//card.cpp
... | 16.821429 | 38 | 0.611465 | CasualPokePlayer |
7fecf7f71a2a0681b2fef50e70552d308cef2a68 | 7,266 | cc | C++ | frontend/converters/mutations.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 179 | 2020-03-30T20:30:49.000Z | 2022-03-31T04:47:55.000Z | frontend/converters/mutations.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 53 | 2020-08-31T15:14:30.000Z | 2022-03-30T21:28:36.000Z | frontend/converters/mutations.cc | sgorse12/cloud-spanner-emulator | 13ebb6d42867bfbc80224b4a74a896b683ae4555 | [
"Apache-2.0"
] | 26 | 2020-04-02T04:05:58.000Z | 2022-02-22T12:05:55.000Z | //
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | 37.647668 | 86 | 0.651941 | sgorse12 |
7fed413f27786ce180a671244d38fc81ee664359 | 351 | cpp | C++ | Part2/ten.cpp | praseedpai/BasicCppCourse | fb6c2300dfb48961a5f647a51eb9c2032bfb45ea | [
"MIT"
] | 1 | 2021-05-03T16:09:53.000Z | 2021-05-03T16:09:53.000Z | Part2/ten.cpp | gnsreepad/BasicCppCourse | 5eebc3c68c014425ded0d6d6eeb4ab34803c610e | [
"MIT"
] | null | null | null | Part2/ten.cpp | gnsreepad/BasicCppCourse | 5eebc3c68c014425ded0d6d6eeb4ab34803c610e | [
"MIT"
] | 1 | 2021-05-03T16:09:46.000Z | 2021-05-03T16:09:46.000Z | ///////////////////////////////////
// ten.cpp
// A C/C++ program to spit the environmental variables
// g++ -oenvspitter.exe ten.cpp
// cl /Feenvspitter.exe ten.cpp
#include <stdio.h>
int main( int argc , char **argv , char **envp ){
char **temp = envp;
while (*(temp+1) != 0 ) {
puts(*temp);
... | 23.4 | 54 | 0.501425 | praseedpai |
7ffc61337e3fbe2d1e21212a219956d75a3dc433 | 1,960 | cpp | C++ | src/convolution.cpp | atsmith3/ifde | dcb7b412e2172a87f6928bdabdd21abc65d17fdf | [
"MIT"
] | null | null | null | src/convolution.cpp | atsmith3/ifde | dcb7b412e2172a87f6928bdabdd21abc65d17fdf | [
"MIT"
] | null | null | null | src/convolution.cpp | atsmith3/ifde | dcb7b412e2172a87f6928bdabdd21abc65d17fdf | [
"MIT"
] | null | null | null | #include "convolution.h"
#include "rgbapixel.h"
#include "kernel.h"
namespace Image {
void convolve(PNG& input, PNG& output) {
Kernel edgeDetection;
uint8_t average = 0;
for(size_t x = 0; x < input.width(); x++) {
for(size_t y = 0; y < input.height(); y++) {
int red = 0;
// ... | 25.128205 | 84 | 0.422959 | atsmith3 |
3d03ee3be6c4942e9f9f2efab5943161f0397d1a | 38,973 | cpp | C++ | ortc/adapter/cpp/ortc_adapter_SDPParser_ParseSDP.cpp | dialpad/ortclib-cpp | 70cbde2fc193a778076e64728d3422ccb0801e96 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ortc/adapter/cpp/ortc_adapter_SDPParser_ParseSDP.cpp | dialpad/ortclib-cpp | 70cbde2fc193a778076e64728d3422ccb0801e96 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | ortc/adapter/cpp/ortc_adapter_SDPParser_ParseSDP.cpp | dialpad/ortclib-cpp | 70cbde2fc193a778076e64728d3422ccb0801e96 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*
Copyright (c) 2016, Hookflash Inc. / Hookflash Inc.
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 condi... | 43.59396 | 160 | 0.547328 | dialpad |
3d04a508b198f146c5e3d41bacb1179b681ca056 | 94,268 | cpp | C++ | Source/items.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 2 | 2021-02-02T19:27:20.000Z | 2022-03-07T16:50:55.000Z | Source/items.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | null | null | null | Source/items.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 1 | 2022-03-07T16:51:16.000Z | 2022-03-07T16:51:16.000Z | /**
* @file items.cpp
*
* Implementation of item functionality.
*/
#include "all.h"
DEVILUTION_BEGIN_NAMESPACE
int itemactive[MAXITEMS];
int itemavail[MAXITEMS];
/** Contains the items on ground in the current game. */
ItemStruct items[MAXITEMS + 1];
BYTE* itemanims[NUM_IFILE];
int numitems;
/** ... | 25.505411 | 143 | 0.627816 | pionere |
3d07b1f7e2576930ef874949a9e3d643c0bcf17d | 548 | cpp | C++ | epikjjh/baekjoon/2166.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 3 | 2019-05-19T13:44:39.000Z | 2019-07-03T11:15:20.000Z | epikjjh/baekjoon/2166.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 7 | 2019-05-06T02:37:26.000Z | 2019-06-29T07:28:02.000Z | epikjjh/baekjoon/2166.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 1 | 2019-07-28T06:24:54.000Z | 2019-07-28T06:24:54.000Z | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
int n;
scanf("%d",&n);
vector<pair<ll,ll>> vec(n);
for(int i=0;i<n;i++){
ll x,y;
scanf("%lld %lld",&x,&y);
vec[i] = {x,y};
}
double ret=0;
for(int i=1;i<n-1;i++) ret += double(vec[0].f... | 23.826087 | 213 | 0.543796 | 15ers |
3d07e241c444ad0cf8b110f9073420b656c1c33f | 8,483 | cpp | C++ | Ouroboros/Source/oAutoBuild/oMSBuild.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oAutoBuild/oMSBuild.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | Ouroboros/Source/oAutoBuild/oMSBuild.cpp | jiangzhu1212/oooii | fc00ff81e74adaafd9c98ba7c055f55d95a36e3b | [
"MIT"
] | null | null | null | // Copyright (c) 2014 Antony Arciuolo. See License.txt regarding use.
#include "oMSBuild.h"
#include <oBase/container_support.h>
#include <oBase/timer.h>
#include <oBasis/oScopedPartialTimeout.h>
#include <oBasis/oContainer.h>
#include <oCore/filesystem.h>
#include <oCore/process.h>
#include <oBase/algorithm.h>... | 32.132576 | 166 | 0.707297 | jiangzhu1212 |
3d07f5f876ed0f9e85fc0afa7ec6a3b6558608f5 | 1,157 | cpp | C++ | 2458 Rigging the Bovine Election/main.cpp | sqc1999-oi/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | 1 | 2016-07-18T12:05:16.000Z | 2016-07-18T12:05:16.000Z | 2458 Rigging the Bovine Election/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | 2458 Rigging the Bovine Election/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
char map[6][6];
int bin[6][6], ans = 0;
bool visited[1 << 25], visiting[6][6];
bool vis(int x, int y)
{
if (x < 1 || x>5 || y < 1 || y>5) return false;
return visiting[x][y];
}
void dfs(int tot, int cnt, int s)
{
if (tot == 7)
{
if (cn... | 18.967213 | 94 | 0.423509 | sqc1999-oi |
3d12bd5434dcf2c0677dcf0e9f93623beeadc70f | 215 | hpp | C++ | learncpp_com/6-arr_string_pointer_references/204-quiz/quiz_6/headers/printer.hpp | mitsiu-carreno/cpp_tutorial | 71f9083884ae6aa23774c044c3d08be273b6bb8e | [
"MIT"
] | null | null | null | learncpp_com/6-arr_string_pointer_references/204-quiz/quiz_6/headers/printer.hpp | mitsiu-carreno/cpp_tutorial | 71f9083884ae6aa23774c044c3d08be273b6bb8e | [
"MIT"
] | null | null | null | learncpp_com/6-arr_string_pointer_references/204-quiz/quiz_6/headers/printer.hpp | mitsiu-carreno/cpp_tutorial | 71f9083884ae6aa23774c044c3d08be273b6bb8e | [
"MIT"
] | null | null | null | #ifndef PRINTER_H
#define PRINTER_H
#include <cardTypes.hpp>
#include <vector>
namespace printer{
void printCard(const cardTypes::Card &card);
void printDeck(std::vector<cardTypes::Card> &deck);
}
#endif
| 12.647059 | 53 | 0.730233 | mitsiu-carreno |
3d17ce7ff42f1eefae658b1c59dd02adade0cdca | 9,479 | cpp | C++ | libraries/plugins/investments_history/investments_history_api.cpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/plugins/investments_history/investments_history_api.cpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/plugins/investments_history/investments_history_api.cpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #include <deip/app/api_context.hpp>
#include <deip/app/application.hpp>
#include <deip/chain/services/dbs_account.hpp>
#include <deip/chain/services/dbs_asset.hpp>
#include <deip/chain/services/dbs_research.hpp>
#include <deip/investments_history/investments_history_api.hpp>
#include <deip/investments_history/investmen... | 42.891403 | 271 | 0.657137 | DEIPworld |
3d1865eff830d15d1bf2d33e34371cdff94bcbc7 | 11,415 | hpp | C++ | utils/include/array2d.hpp | Ludophonic/JigLib | 541ec63b345ccf01e58cce49eb2f73c21eaf6aa6 | [
"Zlib"
] | 10 | 2016-06-01T12:54:45.000Z | 2021-09-07T17:34:37.000Z | utils/include/array2d.hpp | Ludophonic/JigLib | 541ec63b345ccf01e58cce49eb2f73c21eaf6aa6 | [
"Zlib"
] | null | null | null | utils/include/array2d.hpp | Ludophonic/JigLib | 541ec63b345ccf01e58cce49eb2f73c21eaf6aa6 | [
"Zlib"
] | 4 | 2017-05-03T14:03:03.000Z | 2021-01-04T04:31:15.000Z | //==============================================================
// Copyright (C) 2004 DanmNy Chapman
// danmNy@rowlhouse.freeserve.co.uk
//--------------------------------------------------------------
//
/// @file array2d.hpp
//
//===================================... | 23.731809 | 96 | 0.479807 | Ludophonic |
3d18d3fb80dc246ab1f84f1268165445c0fb7178 | 50 | cpp | C++ | src/albody.cpp | AngryAccelerated/physics-engine | db7f9a5892d10c130d8ed043c8da9e80d26bf20e | [
"MIT"
] | 2 | 2020-07-14T14:08:16.000Z | 2020-09-17T04:10:55.000Z | src/albody.cpp | AngryAccelerated/physics-engine | db7f9a5892d10c130d8ed043c8da9e80d26bf20e | [
"MIT"
] | null | null | null | src/albody.cpp | AngryAccelerated/physics-engine | db7f9a5892d10c130d8ed043c8da9e80d26bf20e | [
"MIT"
] | 1 | 2020-07-15T13:01:32.000Z | 2020-07-15T13:01:32.000Z | #include "albody.h"
| 1.5625 | 19 | 0.28 | AngryAccelerated |
3d1c4c419af0c2c188df24e119d5c0baee4ee0b7 | 686 | cpp | C++ | Source/ReplicatedALS/Private/Characters/ALSCharacterBase.cpp | eyupalemdar/Replicated-ALS | 2b63299264e31a30a608b679ee79a41a6bd5da5a | [
"MIT"
] | 16 | 2021-05-09T21:18:32.000Z | 2022-03-13T16:39:23.000Z | Source/ReplicatedALS/Private/Characters/ALSCharacterBase.cpp | eyupalemdar/Replicated-ALS | 2b63299264e31a30a608b679ee79a41a6bd5da5a | [
"MIT"
] | null | null | null | Source/ReplicatedALS/Private/Characters/ALSCharacterBase.cpp | eyupalemdar/Replicated-ALS | 2b63299264e31a30a608b679ee79a41a6bd5da5a | [
"MIT"
] | 3 | 2021-06-02T07:20:56.000Z | 2021-09-22T11:02:35.000Z | // Copyright 2020-2030 AlemdarLabs, All Rights Reserved
#include "Characters/ALSCharacterBase.h"
#include "Components/ALSCharacterMovementComponent.h"
AALSCharacterBase::AALSCharacterBase(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer.SetDefaultSubobjectClass<UALSCharacterMovementComponent>(C... | 29.826087 | 116 | 0.851312 | eyupalemdar |
3d224d84417aee4e7275b9cea039d0e3b83aa550 | 3,953 | cpp | C++ | sk4d/src/c/sk4d_shader.cpp | viniciusfbb/skia | da7af57027e2cec90985fbfd75192cc896994eff | [
"BSD-3-Clause"
] | 4 | 2021-08-11T01:22:19.000Z | 2021-11-04T12:08:25.000Z | sk4d/src/c/sk4d_shader.cpp | viniciusfbb/skia | da7af57027e2cec90985fbfd75192cc896994eff | [
"BSD-3-Clause"
] | null | null | null | sk4d/src/c/sk4d_shader.cpp | viniciusfbb/skia | da7af57027e2cec90985fbfd75192cc896994eff | [
"BSD-3-Clause"
] | 1 | 2021-08-13T18:17:26.000Z | 2021-08-13T18:17:26.000Z | /*
* Copyright (c) 2011-2021 Google LLC.
* Copyright (c) 2021 Skia4Delphi Project.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/c/sk4d_shader.h"
#include "src/c/sk4d_mapping.h"
sk_shader_t* sk4d_shader_make_blend(sk_blendmode_t mode... | 59 | 212 | 0.795345 | viniciusfbb |
3d22eb015d5e4694adb965086070243a18cee961 | 1,195 | cpp | C++ | examples/filmstrip-qwidget/App.cpp | darbyjohnston/tlRender | 0bdb8aa3795a0098811a7c3ed6add3023bcfd55a | [
"BSD-3-Clause"
] | 59 | 2021-04-26T23:38:35.000Z | 2022-03-23T15:21:44.000Z | examples/filmstrip-qwidget/App.cpp | darbyjohnston/tlRender | 0bdb8aa3795a0098811a7c3ed6add3023bcfd55a | [
"BSD-3-Clause"
] | 17 | 2021-04-30T02:03:08.000Z | 2022-01-11T19:54:47.000Z | examples/filmstrip-qwidget/App.cpp | darbyjohnston/tlRender | 0bdb8aa3795a0098811a7c3ed6add3023bcfd55a | [
"BSD-3-Clause"
] | 5 | 2021-06-07T16:11:53.000Z | 2021-12-10T23:29:45.000Z | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2021-2022 Darby Johnston
// All rights reserved.
#include "App.h"
#include "MainWindow.h"
#include <tlrCore/Math.h>
#include <tlrCore/StringFormat.h>
#include <tlrCore/Time.h>
namespace tlr
{
App::App(int& argc, char** argv) :
QApp... | 25.425532 | 67 | 0.50795 | darbyjohnston |
3d2b6ff3f511d47c0ef9c7a3f79a9c647820147e | 3,715 | hpp | C++ | src/VineCopulaCPP/VineCopulaCPP_helper.hpp | JuliaFinMetriX/Copulas.jl | cfb5f56ba8d3091a45606011a09627b98f9158f0 | [
"MIT"
] | 8 | 2015-01-29T09:52:14.000Z | 2020-07-10T14:17:55.000Z | src/VineCopulaCPP/VineCopulaCPP_helper.hpp | JuliaFinMetriX/Copulas.jl | cfb5f56ba8d3091a45606011a09627b98f9158f0 | [
"MIT"
] | 8 | 2015-01-17T15:50:58.000Z | 2015-02-09T20:04:59.000Z | VineCopulaCPP_helper.hpp | MalteKurz/VineCopulaCPP | 742e8762ef7a61666b97fd8a381cf7c759d96cfe | [
"MIT"
] | 7 | 2015-01-22T13:16:52.000Z | 2021-11-17T14:41:44.000Z | #include "VineCopulaCPP_header.hpp"
#define LowerBoundUnitInterval 1e-10
#define UpperBoundUnitInterval 1-1e-10
inline double max(double x, double y)
{
return (x > y)? x : y;
}
inline unsigned int max(unsigned int x, unsigned int y)
{
return (x > y)? x : y;
}
inline double min(double x, double y)
{
re... | 28.79845 | 184 | 0.503903 | JuliaFinMetriX |
3d322d90785ad80a46bd576257c90b6d831af062 | 739 | cpp | C++ | Exercise5/main.cpp | richrosenthal/CPlusPlus-Exercises | 8468e379cd3fad6f73a743856dfb3ac41f81b65c | [
"MIT"
] | null | null | null | Exercise5/main.cpp | richrosenthal/CPlusPlus-Exercises | 8468e379cd3fad6f73a743856dfb3ac41f81b65c | [
"MIT"
] | null | null | null | Exercise5/main.cpp | richrosenthal/CPlusPlus-Exercises | 8468e379cd3fad6f73a743856dfb3ac41f81b65c | [
"MIT"
] | null | null | null | //Richard Rosenthal
// 1-7-20
//Purpose: an exercise in initializing and displaying vectors.
#include <iostream>
#include <vector>
using namespace std;
vector<int> use_vector();
int main() {
cout << "I will initialize the vector with the numbers 10, 20, 30, 40, and 50" << endl;
vector<int> vec = use_vector(... | 18.475 | 91 | 0.579161 | richrosenthal |
3d32556ea0644bf4bbca27c316887886dc49461c | 2,724 | cpp | C++ | src/SkyBox.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | 1 | 2016-05-17T03:36:52.000Z | 2016-05-17T03:36:52.000Z | src/SkyBox.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | src/SkyBox.cpp | foxostro/CheeseTesseract | 737ebbd19cee8f5a196bf39a11ca793c561e56cb | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "SkyBox.h"
SkyBox::SkyBox(TextureFactory &textureFactory,
FileName _top,
FileName _bottom,
FileName _east,
FileName _west,
FileName _north,
FileName _south) {
// Texture clamp on these ones
top.setT... | 20.793893 | 71 | 0.663363 | foxostro |
3d3ab4ab8070688d9685fecfe0271b8d249d1556 | 868 | cpp | C++ | unittest/pbdata/metagenome/TitleTable_gtest.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 4 | 2015-07-03T11:59:54.000Z | 2018-05-17T00:03:22.000Z | unittest/pbdata/metagenome/TitleTable_gtest.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 79 | 2015-06-29T18:07:21.000Z | 2018-09-19T13:38:39.000Z | unittest/pbdata/metagenome/TitleTable_gtest.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 19 | 2015-06-23T08:43:29.000Z | 2021-04-28T18:37:47.000Z | /*
* =====================================================================================
*
* Filename: TitleTable_gtest.cpp
*
* Description: Test pbdata/metagenome/TitleTable.hpp
*
* Version: 1.0
* Created: 11/29/2012 03:34:56 PM
* Revision: none
* Compiler: gcc
*
... | 25.529412 | 88 | 0.491935 | ggraham |
3d3fab3d281015b3766fd461b43bab321289fe7a | 289 | cpp | C++ | SEHPWorkFolder/Source/-public-2.cpp | leeli73/GHP | 313e02a55049d379de598318ffb93b70e0055b10 | [
"Apache-2.0"
] | 12 | 2019-09-23T10:29:25.000Z | 2019-11-15T02:38:58.000Z | SEHPWorkFolder/Source/-public-2.cpp | leeli73/GHP | 313e02a55049d379de598318ffb93b70e0055b10 | [
"Apache-2.0"
] | null | null | null | SEHPWorkFolder/Source/-public-2.cpp | leeli73/GHP | 313e02a55049d379de598318ffb93b70e0055b10 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(int argc,char *argv[])
{
string Command = "D:\\CHP\\Code\\Version-Public-1\\SEHPWorkFolder\\Executable\\UserDefined\\GetMessageList\\main.exe";
system(Command.c_str());
cout<<endl;
exit(0);
return 0;
} | 26.272727 | 122 | 0.678201 | leeli73 |
3d3fb5879c8f97d8b58e01f7d26922f06bcc7fe2 | 1,603 | hpp | C++ | src/parser_nodes/poetic_decimal_parser_node.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/poetic_decimal_parser_node.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | src/parser_nodes/poetic_decimal_parser_node.hpp | lowlander/nederrock | aa23f79de3adf0510419208938bf4dcdbe786c9f | [
"MIT"
] | null | null | null | //
// Copyright (c) 2020 Erwin Rol <erwin@erwinrol.com>
//
// SPDX-License-Identifier: MIT
//
#ifndef NEDERROCK_SRC_POETIC_DECIMAL_PARSER_NODE_HPP
#define NEDERROCK_SRC_POETIC_DECIMAL_PARSER_NODE_HPP
#include "poetic_decimal_parser_node_pre.hpp"
#include "poetic_decimal_digit_separator_parser_node_pre.hpp"
#include "... | 29.685185 | 90 | 0.810356 | lowlander |
3d412378634f0f6ae7d8c83913639e1d036176ef | 1,295 | cpp | C++ | src/Timer.cpp | lukaopc/Projeto | f2409a29ed8c93d696621d6ae8a5ff913fc2eb34 | [
"MIT"
] | null | null | null | src/Timer.cpp | lukaopc/Projeto | f2409a29ed8c93d696621d6ae8a5ff913fc2eb34 | [
"MIT"
] | null | null | null | src/Timer.cpp | lukaopc/Projeto | f2409a29ed8c93d696621d6ae8a5ff913fc2eb34 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
#include "Timer.h"
//-----------------------------------------------------------------------------
// constructor
//-------------------------------------... | 23.125 | 80 | 0.338996 | lukaopc |
3d4128f937c348fccf58634c17b444de4c9a9bcd | 1,612 | hpp | C++ | coconut-pulp-world/src/main/c++/coconut/pulp/world/World.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | 1 | 2017-05-02T12:01:54.000Z | 2017-05-02T12:01:54.000Z | coconut-pulp-world/src/main/c++/coconut/pulp/world/World.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | coconut-pulp-world/src/main/c++/coconut/pulp/world/World.hpp | mikosz/coconut | 547bfd55062f09d7af853043c393fc51e8a7a8b6 | [
"Apache-2.0"
] | null | null | null | #ifndef _COCONUT_PULP_WORLD_WORLD_HPP_
#define _COCONUT_PULP_WORLD_WORLD_HPP_
#include <chrono>
#include "coconut/milk/graphics/Renderer.hpp"
#include "coconut/milk/fs.hpp"
#include "coconut/pulp/renderer/shader/Property.hpp"
#include "coconut/pulp/renderer/Scene.hpp"
#include "coconut/pulp/renderer/ModelFactory.hpp"... | 24.424242 | 88 | 0.754342 | mikosz |
3d468cfc7b409c7227b88f99e91088adc1a5c018 | 1,042 | hpp | C++ | cEpiabm/src/dataclasses/place.hpp | SABS-R3-Epidemiology/epiabm | 8eb83fd2de84104f6f77929e3771095f7b033ddc | [
"BSD-3-Clause"
] | 11 | 2021-12-02T15:24:02.000Z | 2022-03-10T14:02:13.000Z | cEpiabm/src/dataclasses/place.hpp | SABS-R3-Epidemiology/epiabm | 8eb83fd2de84104f6f77929e3771095f7b033ddc | [
"BSD-3-Clause"
] | 119 | 2021-11-24T13:56:48.000Z | 2022-03-30T11:52:07.000Z | cEpiabm/src/dataclasses/place.hpp | SABS-R3-Epidemiology/epiabm | 8eb83fd2de84104f6f77929e3771095f7b033ddc | [
"BSD-3-Clause"
] | 3 | 2022-01-13T03:05:19.000Z | 2022-03-11T22:00:17.000Z | #ifndef EPIABM_DATACLASSES_PLACE_HPP
#define EPIABM_DATACLASSES_PLACE_HPP
#include "person.hpp"
#include <memory>
#include <set>
#include <functional>
namespace epiabm
{
class Cell;
class Population;
class Place
{
private:
size_t m_mPos; // Position of Place in Population's vector of pl... | 22.652174 | 132 | 0.669866 | SABS-R3-Epidemiology |
3d4c47a1182b4d0d03cb718741687e36637a3dd7 | 7,676 | cpp | C++ | src/lookup_table_generator.cpp | kohonda/state_lattice_planner | 3368f222d0296c6325673027f9c59989b8783733 | [
"BSD-3-Clause"
] | 79 | 2019-05-31T14:57:32.000Z | 2022-03-26T13:49:33.000Z | src/lookup_table_generator.cpp | lucianzhong/state_lattice_planner | 21da9743ad56f58e68dd7bb651c16c2dde57294c | [
"BSD-3-Clause"
] | 17 | 2019-04-18T06:48:16.000Z | 2022-02-01T02:09:11.000Z | src/lookup_table_generator.cpp | lucianzhong/state_lattice_planner | 21da9743ad56f58e68dd7bb651c16c2dde57294c | [
"BSD-3-Clause"
] | 33 | 2019-10-29T07:17:03.000Z | 2022-02-18T06:12:58.000Z | #include "state_lattice_planner/lookup_table_generator.h"
LookupTableGenerator::LookupTableGenerator(void)
:local_nh("~")
{
local_nh.param("MIN_X", MIN_X, {1.0});
local_nh.param("MAX_X", MAX_X, {5.0});
local_nh.param("DELTA_X", DELTA_X, {1.0});
local_nh.param("MAX_Y", MAX_Y, {2.0});
local_nh.param(... | 47.092025 | 256 | 0.565529 | kohonda |
3d4ed9e66a830f661f38ab8c7dfb571743162295 | 1,752 | cpp | C++ | src/widgets/tooltipwidget.cpp | alexandera3/chatterino2 | 41fbcc738b34a19f66eef3cca8d5dea0b89e07a3 | [
"MIT"
] | 1 | 2018-03-24T18:40:00.000Z | 2018-03-24T18:40:00.000Z | src/widgets/tooltipwidget.cpp | alexandera3/chatterino2 | 41fbcc738b34a19f66eef3cca8d5dea0b89e07a3 | [
"MIT"
] | null | null | null | src/widgets/tooltipwidget.cpp | alexandera3/chatterino2 | 41fbcc738b34a19f66eef3cca8d5dea0b89e07a3 | [
"MIT"
] | null | null | null | #include "tooltipwidget.hpp"
#include "singletons/fontmanager.hpp"
#include "singletons/thememanager.hpp"
#include <QDebug>
#include <QDesktopWidget>
#include <QStyle>
#include <QVBoxLayout>
namespace chatterino {
namespace widgets {
TooltipWidget::TooltipWidget(BaseWidget *parent)
: BaseWindow(parent)
, dis... | 25.028571 | 99 | 0.699772 | alexandera3 |
3d4fb0f7932b5a93d4611ce92f08dc7b4bd9af59 | 425,045 | cpp | C++ | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__154.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__154.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__154.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
VL_INLINE_OPT void VTestHarness::_sequent__TOP__8899(VTestHarness__Syms* __restrict vlSy... | 113.375567 | 195 | 0.71232 | vargandhi |
3d5939ade83717d781051f8610d72730d2c76d68 | 3,393 | cpp | C++ | leetcode/8.cpp | LihuaWu/algorithms | ea0f177f3d7b6eca667c7d53e76f590b4f5bf9c5 | [
"MIT"
] | null | null | null | leetcode/8.cpp | LihuaWu/algorithms | ea0f177f3d7b6eca667c7d53e76f590b4f5bf9c5 | [
"MIT"
] | null | null | null | leetcode/8.cpp | LihuaWu/algorithms | ea0f177f3d7b6eca667c7d53e76f590b4f5bf9c5 | [
"MIT"
] | null | null | null | /*
* Implement atoi to convert a string to an integer.
*
* Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input cases.
*
* Notes: It is intended for this problem to be specified vaguely (ie, no given input specs). You are r... | 35.715789 | 297 | 0.587975 | LihuaWu |
3d5b54f2945534999918170977fca5de6ab19cda | 1,437 | hpp | C++ | rmvmath/vector/affinevector3x/operator/TAffineVector3_operator.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | rmvmath/vector/affinevector3x/operator/TAffineVector3_operator.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | rmvmath/vector/affinevector3x/operator/TAffineVector3_operator.hpp | vitali-kurlovich/RMMath | a982b89e5db08e9cd16cb08e92839a315b6198dc | [
"MIT"
] | null | null | null | //
// Created by Vitali Kurlovich on 2/21/16.
//
#ifndef RMVECTORMATH_TAFFINEVECTOR3_OPERATOR_HPP
#define RMVECTORMATH_TAFFINEVECTOR3_OPERATOR_HPP
#include "../TAffineVector3_def.hpp"
#include "../../vector3x/TVector3_def.hpp"
namespace rmmath {
namespace vector {
template<typename T>
constex... | 28.176471 | 102 | 0.580376 | vitali-kurlovich |
87cc68c910df8150267548f6687ba930d92a72ba | 3,248 | ipp | C++ | include/External/stlib/packages/ads/utility/ParseOptionsArguments.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/ads/utility/ParseOptionsArguments.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/ads/utility/ParseOptionsArguments.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__ads_utility_ParseOptionsArguments_ipp__)
#error This file is an implementation detail of ParseOptionsArguments.
#endif
namespace ads {
// Return true if the option was given. Set the option value.
template<typename T>
inline
bool
ParseOptionsArguments::
getOption(const Str... | 26.622951 | 75 | 0.599138 | bxl295 |
87d17773f942dd8b3e1d995d9357e30419da0d78 | 4,523 | cpp | C++ | writer/ASMWriter.cpp | meklort/ipxact | 7a149b449ded3c08ac6d6d1d099f160534a4ede9 | [
"BSD-3-Clause"
] | 2 | 2021-02-05T21:10:40.000Z | 2021-02-18T21:04:10.000Z | writer/ASMWriter.cpp | meklort/ipxact | 7a149b449ded3c08ac6d6d1d099f160534a4ede9 | [
"BSD-3-Clause"
] | 1 | 2020-01-21T03:34:35.000Z | 2020-01-22T00:15:25.000Z | writer/ASMWriter.cpp | meklort/ipxact | 7a149b449ded3c08ac6d6d1d099f160534a4ede9 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
///
/// @file source/ASMWriter.cpp
///
/// @project ipxact
///
/// @brief Assembly header writer.
///
////////////////////////////////////////////////////////////////////////////////
///
//////////////////////////////////////... | 33.257353 | 97 | 0.604466 | meklort |
87d20db4584bd30000433da5e602214d0fb8121f | 4,339 | cpp | C++ | src/main.cpp | Honeybunch/raycaster | 7fc70e1cae2a4959fec6e99a94ccf57f36420c88 | [
"MIT"
] | null | null | null | src/main.cpp | Honeybunch/raycaster | 7fc70e1cae2a4959fec6e99a94ccf57f36420c88 | [
"MIT"
] | null | null | null | src/main.cpp | Honeybunch/raycaster | 7fc70e1cae2a4959fec6e99a94ccf57f36420c88 | [
"MIT"
] | null | null | null | #include "float2.hpp"
#include "renderer.hpp"
#include "window.hpp"
#include "map.hpp"
#include "map_1.hpp"
#define _USE_MATH_DEFINES
#include <math.h>
#include <assert.h>
#include <stdio.h>
namespace raycaster {
const float pi_f = float(M_PI);
const float pi_2_f = float(M_PI_2);
Window window = nullptr;
struct ... | 20.961353 | 70 | 0.662595 | Honeybunch |
87d4f8e44b47c5e77afa555682658ceb2c3bc15a | 14,210 | cpp | C++ | src/stage/character-stage-stat-box.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | 2 | 2019-02-28T00:28:08.000Z | 2019-10-20T14:39:48.000Z | src/stage/character-stage-stat-box.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | src/stage/character-stage-stat-box.cpp | tilnewman/heroespath-src | a7784e44d8b5724f305ef8b8671fed54e2e5fd69 | [
"BSL-1.0",
"Beerware"
] | null | null | null | // This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// ----------------------------------------------------------------------------
// "THE BEER-WARE LICENSE" (Revision 42):
// <ztn@zurreal.com> wrote this fi... | 30.55914 | 101 | 0.527234 | tilnewman |
87d67966c77dd629a9a0a2e6f71e02f31c711a68 | 33 | cpp | C++ | src/ControllableObject.cpp | dantehemerson/Arkanoid-Returns | 478ae8df92f978dce95fd227a9047e83dea9a855 | [
"MIT"
] | 3 | 2018-09-25T07:59:06.000Z | 2019-08-24T09:35:43.000Z | src/ControllableObject.cpp | dantehemerson/Arkanoid-Returns | 478ae8df92f978dce95fd227a9047e83dea9a855 | [
"MIT"
] | 1 | 2018-05-08T11:34:05.000Z | 2018-05-08T11:34:05.000Z | src/ControllableObject.cpp | dantehemerson/Arkanoid-Returns | 478ae8df92f978dce95fd227a9047e83dea9a855 | [
"MIT"
] | 1 | 2020-06-07T21:23:24.000Z | 2020-06-07T21:23:24.000Z | #include "ControllableObject.hpp" | 33 | 33 | 0.848485 | dantehemerson |
87d7e35e90308c278a295727076be09877ed0f96 | 940 | cpp | C++ | src/commandline.cpp | voltrare/Tachidesk-qtui | 84bc2c3697ca92bdb0f2753dc722808cfd89d345 | [
"MIT"
] | 19 | 2021-08-18T00:37:05.000Z | 2022-03-25T00:43:58.000Z | src/commandline.cpp | voltrare/Tachidesk-qtui | 84bc2c3697ca92bdb0f2753dc722808cfd89d345 | [
"MIT"
] | 1 | 2021-08-31T13:08:50.000Z | 2021-08-31T13:08:50.000Z | src/commandline.cpp | mgn-norm/Tachidesk-qtui | 785ce6b7d36b76c580d07e28b8f7f836386ffd7d | [
"MIT"
] | null | null | null | #include "commandline.h"
const QCommandLineOption CommandLine::hostname(
"hostname", "server's hostname", "hostname", "http://127.0.0.1");
const QCommandLineOption CommandLine::port(
"port", "server's port", "port", "4567");
const QCommandLineOption CommandLine::qmldir(
"qmldir", "Load qml from filesystem ... | 20.434783 | 69 | 0.734043 | voltrare |
87e21e6722e4306b0de08c6c2ea82d2ca37e0110 | 3,243 | cpp | C++ | code/SoulVania/WhipFlashingRenderingSystem.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | 1 | 2021-06-30T06:29:54.000Z | 2021-06-30T06:29:54.000Z | code/SoulVania/WhipFlashingRenderingSystem.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | null | null | null | code/SoulVania/WhipFlashingRenderingSystem.cpp | warzes/Soulvania | 83733b6a6aa38f8024109193893eb5b65b0e6294 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "WhipFlashingRenderingSystem.h"
#include "MathHelper.h"
#include "Whip.h"
#include "Settings.h"
WhipFlashingRenderingSystem::WhipFlashingRenderingSystem(Whip &parent, std::string spriteConfigPath) :
WhipRenderingSystem{ parent, spriteConfigPath }
{
}
void WhipFlashingRenderingSystem::Rec... | 26.801653 | 102 | 0.766883 | warzes |
87e26b5d0853460b5c00fb14498724083c306332 | 15,386 | cpp | C++ | Chapter 7 Lighting/Lighting/LightingDemo.cpp | luchuncheng/d3d11_examples | bbd5fc160b13b2369a11f3be76c5d51d1853cca3 | [
"MIT"
] | 212 | 2015-02-11T18:10:44.000Z | 2022-03-29T02:26:08.000Z | Chapter 7 Lighting/Lighting/LightingDemo.cpp | markandrewkelly/Introduction-to-3D-Game-Programming-With-DirectX11 | c55ee49481529de4a96467ee992fd79b1c1cdf31 | [
"MIT"
] | 1 | 2018-01-27T16:36:45.000Z | 2018-01-27T16:36:45.000Z | Chapter 7 Lighting/Lighting/LightingDemo.cpp | markandrewkelly/Introduction-to-3D-Game-Programming-With-DirectX11 | c55ee49481529de4a96467ee992fd79b1c1cdf31 | [
"MIT"
] | 110 | 2016-06-15T10:28:49.000Z | 2022-03-26T13:26:06.000Z | //***************************************************************************************
// LightingDemo.cpp by Frank Luna (C) 2011 All Rights Reserved.
//
// Demonstrates 3D lighting with directional, point, and spot lights.
//
// Controls:
// Hold the left mouse button down and move the mouse to rotate.
// Hol... | 28.758879 | 121 | 0.702652 | luchuncheng |
87ee1343a9a580f38ddfa6542cd85ce744a0b638 | 7,913 | cpp | C++ | settingsdlg.cpp | pile-contributors/pile-gui | 6c1e8c2f466e5b84a62e14931271edb8ece3bfe2 | [
"BSD-3-Clause"
] | null | null | null | settingsdlg.cpp | pile-contributors/pile-gui | 6c1e8c2f466e5b84a62e14931271edb8ece3bfe2 | [
"BSD-3-Clause"
] | null | null | null | settingsdlg.cpp | pile-contributors/pile-gui | 6c1e8c2f466e5b84a62e14931271edb8ece3bfe2 | [
"BSD-3-Clause"
] | null | null | null | #include "config.h"
#include "settingsdlg.h"
#include "ui_settingsdlg.h"
#include "setting_names.h"
#include "support/simplecrypt.h"
#include <QSettings>
#include <QFileDialog>
#include <QStandardPaths>
SettingsDlg::SettingsDlg(QWidget *parent) :
QDialog(parent),
ui(new Ui::SettingsDlg)
{
ui->setupUi(thi... | 27.961131 | 74 | 0.519525 | pile-contributors |
87faa18e72d0752ec959aea42e3325ae9013ae95 | 1,106 | cpp | C++ | curves/MoonSpencerFit1945.cpp | JournalOfComputerGraphicsTechniques/TEST-0002-02-01-Wyman-Sloan-Shirley | 3d3d21ffbb79a205881d6ac6d39dda62ab8a3c07 | [
"MIT"
] | 1 | 2015-12-28T09:04:44.000Z | 2015-12-28T09:04:44.000Z | curves/MoonSpencerFit1945.cpp | JournalOfComputerGraphicsTechniques/TEST-0002-02-01-Wyman-Sloan-Shirley | 3d3d21ffbb79a205881d6ac6d39dda62ab8a3c07 | [
"MIT"
] | null | null | null | curves/MoonSpencerFit1945.cpp | JournalOfComputerGraphicsTechniques/TEST-0002-02-01-Wyman-Sloan-Shirley | 3d3d21ffbb79a205881d6ac6d39dda62ab8a3c07 | [
"MIT"
] | null | null | null |
#include <math.h>
#include "MoonSpencerFit1945.h"
float XYZMoonSpencer1945::X( float wavelen )
{
double wav = wavelen/1000.0;
double xA = ( 1.237894975e+32 / pow( wav, 365.3388 ) )*exp( -164.9506 / wav );
double xB = ( 3.247132422e+54 / pow( wav, 500.0 ) )*exp( -237.5 / wav );
double xC = ( 3.933688... | 29.891892 | 83 | 0.589512 | JournalOfComputerGraphicsTechniques |
87fe43c80aee980d388ed4e1a2de54699fa1791e | 10,824 | cpp | C++ | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Direct3D-Direct2D interop sample (Windows 8)/C++/TextInterop.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Direct3D-Direct2D interop sample (Windows 8)/C++/TextInterop.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Direct3D-Direct2D interop sample (Windows 8)/C++/TextInterop.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | //// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
//// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
//// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//// PARTICULAR PURPOSE.
////
//// Copyright (c) Microsoft Corporation. All rights reserved
#include "pch.h... | 30.066667 | 124 | 0.621859 | alonmm |
87fe8d6aa1c2d356ea36a31993df59b91115959c | 174 | cpp | C++ | solutions/1083/20101104T215703Z-3289439.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | 11 | 2019-10-29T15:34:53.000Z | 2022-03-14T14:45:09.000Z | solutions/1083/20101104T215703Z-3289439.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | null | null | null | solutions/1083/20101104T215703Z-3289439.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | 6 | 2018-06-30T12:06:55.000Z | 2021-03-20T08:46:33.000Z | #include <iostream>
#include <string>
void main(){int n;std::string str;std::cin>>n>>str;int k=str.length();int nk=n;int x=1;while(n-k*x>0){nk*=(n-k*x);x++;}std::cout<<nk;} | 58 | 134 | 0.632184 | Mistereo |
87ff09403ee0ffea4fc4b2d8ff28efe78e4e7c83 | 5,308 | hpp | C++ | src/share/manipulator/manipulators/mouse_motion_to_scroll/options.hpp | fe7/Karabiner-Elements | fdbf3b47d845e5d225c1d33f9b3c696406d404ba | [
"Unlicense"
] | 1 | 2021-11-09T10:28:50.000Z | 2021-11-09T10:28:50.000Z | src/share/manipulator/manipulators/mouse_motion_to_scroll/options.hpp | fe7/Karabiner-Elements | fdbf3b47d845e5d225c1d33f9b3c696406d404ba | [
"Unlicense"
] | null | null | null | src/share/manipulator/manipulators/mouse_motion_to_scroll/options.hpp | fe7/Karabiner-Elements | fdbf3b47d845e5d225c1d33f9b3c696406d404ba | [
"Unlicense"
] | 2 | 2020-04-27T10:51:37.000Z | 2020-09-09T03:44:04.000Z | #pragma once
#include "logger.hpp"
#include "types/absolute_time_duration.hpp"
#include <pqrs/osx/chrono.hpp>
namespace krbn {
namespace manipulator {
namespace manipulators {
namespace mouse_motion_to_scroll {
struct options final {
public:
static constexpr double speed_multiplier_default_value = 1.0;
static con... | 33.175 | 125 | 0.694612 | fe7 |
e2036418d1fef8091ed5c8f1398ff048888636f1 | 756 | cpp | C++ | project2D/StateManager.cpp | ConnorY97/ai | 0eab3514131ae54f22658d8ba587380895c0e648 | [
"MIT"
] | null | null | null | project2D/StateManager.cpp | ConnorY97/ai | 0eab3514131ae54f22658d8ba587380895c0e648 | [
"MIT"
] | null | null | null | project2D/StateManager.cpp | ConnorY97/ai | 0eab3514131ae54f22658d8ba587380895c0e648 | [
"MIT"
] | null | null | null | #pragma once
#include "StateManager.h"
#include "StateMachine.h"
StateManager* StateManager::instance = nullptr;
StateManager::StateManager(){
if(instance)throw "There can only be One Instance of the State Manager";
instance = this;
}
StateManager::~StateManager(){
instance = nullptr;
}
void StateManager::Create... | 20.432432 | 73 | 0.756614 | ConnorY97 |
e203a7f0f68aa2800cd279c6a13951f7061f0037 | 3,545 | cpp | C++ | src/display.cpp | redforks/thermostat | 279ebd8fbb3b8d2cffb04e85740fe71dd58c90f0 | [
"Apache-2.0"
] | 1 | 2020-10-27T13:16:23.000Z | 2020-10-27T13:16:23.000Z | src/display.cpp | redforks/thermostat | 279ebd8fbb3b8d2cffb04e85740fe71dd58c90f0 | [
"Apache-2.0"
] | null | null | null | src/display.cpp | redforks/thermostat | 279ebd8fbb3b8d2cffb04e85740fe71dd58c90f0 | [
"Apache-2.0"
] | null | null | null | #include <EEPROM.h>
#include <core.h>
#include <LiquidCrystal_I2C.h>
#include "display.h"
#include "thermostat.h"
#include "display_mode.h"
#include "shutdown.h"
using namespace core;
LiquidCrystal_I2C lcd(0x27, 16, 2); // set LCD I2C address 0x27, 16 chars wide, 2 lines
DisplayMode _initialMode;
DisplayMode *mode ... | 19.91573 | 87 | 0.678984 | redforks |
e2075f4e8c227eefe1ea27706002b680b87dbee2 | 32,309 | cpp | C++ | iKan/src/iKan/Scene/Viewport.cpp | ashish1009/iKan | 4823c2798c22c61a7fb959f1f907c8c6de730550 | [
"Apache-2.0"
] | null | null | null | iKan/src/iKan/Scene/Viewport.cpp | ashish1009/iKan | 4823c2798c22c61a7fb959f1f907c8c6de730550 | [
"Apache-2.0"
] | null | null | null | iKan/src/iKan/Scene/Viewport.cpp | ashish1009/iKan | 4823c2798c22c61a7fb959f1f907c8c6de730550 | [
"Apache-2.0"
] | null | null | null | // ******************************************************************************
// File : Viewport.cpp
// Description : stores all the information of Viewport
// Project : iKan : Scene
//
// Created by Ashish on 02/05/21.
// Copyright © 2021 Ashish. All rights reserved.
// ******************************... | 39.740467 | 260 | 0.47804 | ashish1009 |
e2091d2ef2f91c200e6ee602b727552ccfdf12c9 | 1,385 | cpp | C++ | src/Graphics/Light.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | src/Graphics/Light.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | src/Graphics/Light.cpp | razerx100/Gaia | 4e58cbb00d5f8b5d1c27fae461c6136ff54bee9b | [
"MIT"
] | null | null | null | #include <Light.hpp>
#include <Graphics.hpp>
#include <ImGuiImpl.hpp>
#include <SolidSphere.hpp>
#include <Camera.hpp>
Light Light::s_instance;
Light::Light(Graphics& gfx, float radius) {
Init(gfx, radius);
}
void Light::Init(Graphics& gfx, float radius) {
ResetData();
m_lightSource = std::make_un... | 23.083333 | 76 | 0.698917 | razerx100 |
e20a5e1b4e2b673089ed10db1bb72a886c147c0b | 2,737 | cpp | C++ | Based_Engine/Based_Engine/TextureLoader.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | Based_Engine/Based_Engine/TextureLoader.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | Based_Engine/Based_Engine/TextureLoader.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "ilut.h"
#include "ilu.h"
#include "il.h"
#include "TextureLoader.h"
void TextureLoader::Init()
{
ilutInit();
iluInit();
ilInit();
ilutRenderer(ILUT_OPENGL);
LOG("Initialize TextureLoader DevIL")
}
std::string TextureLoader::CreateFileName(const char* assetsPath)
{
std::string name... | 24.657658 | 191 | 0.704056 | Sanmopre |
e20b22e5d5ee49c85748b431fc30e338b4d0de6b | 3,257 | cpp | C++ | src/plugins/core/src/VRRequestProcessorDelegateImpl.cpp | iotbzh/agl-service-voice-high | 528d076d224f3de80d4bc04fcc7d5e53b20ff5c0 | [
"Apache-2.0"
] | 1 | 2019-12-10T21:41:10.000Z | 2019-12-10T21:41:10.000Z | src/plugins/core/src/VRRequestProcessorDelegateImpl.cpp | iotbzh/agl-service-voice-high | 528d076d224f3de80d4bc04fcc7d5e53b20ff5c0 | [
"Apache-2.0"
] | null | null | null | src/plugins/core/src/VRRequestProcessorDelegateImpl.cpp | iotbzh/agl-service-voice-high | 528d076d224f3de80d4bc04fcc7d5e53b20ff5c0 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018-2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... | 34.648936 | 117 | 0.708321 | iotbzh |
e20d354fb882612ae38172a431e2fbe2a3aa9065 | 11,160 | cpp | C++ | src/utils.cpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 47 | 2016-07-27T07:22:06.000Z | 2021-08-17T13:08:19.000Z | src/utils.cpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 1 | 2016-09-24T06:04:39.000Z | 2016-09-25T10:34:19.000Z | src/utils.cpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 13 | 2016-07-27T10:44:35.000Z | 2020-07-01T21:08:33.000Z | /**************************************************************************
** This file is a part of our work (Siggraph'16 paper, binary, code and dataset):
**
** Roto++: Accelerating Professional Rotoscoping using Shape Manifolds
** Wenbin Li, Fabio Viola, Jonathan Starck, Gabriel J. Brostow and Neill D.F. Campbell
*... | 37.324415 | 111 | 0.572133 | vinben |
e20d8ebbe9e4d5ce4ea983b52ce7f811e8c8f8da | 5,034 | cpp | C++ | DictionaryHTable.cpp | dongpengxia/Spellchecker | 58ea3617c08267dd97de2494bba1c841b30b586d | [
"MIT"
] | null | null | null | DictionaryHTable.cpp | dongpengxia/Spellchecker | 58ea3617c08267dd97de2494bba1c841b30b586d | [
"MIT"
] | null | null | null | DictionaryHTable.cpp | dongpengxia/Spellchecker | 58ea3617c08267dd97de2494bba1c841b30b586d | [
"MIT"
] | null | null | null | /*
* DictionaryHTable.cpp
*
* Hashtable Spellchecker
*
* 11/29/2016
* Dongpeng Xia
*/
#include <iostream>
#include <string>
#include "DictionaryLL.h"
#include "DictionaryHTable.h"
using std::string;
/****************************************************************************
***************************... | 29.964286 | 78 | 0.351609 | dongpengxia |
e20e5f06ab4870078519d94ee523b63c44690980 | 2,636 | cpp | C++ | Books/SFML Game Development by Example/Chapter 12/ActionRPG/ActionRPG/src/S_State.cpp | mequint/Cpp-Samples | a5e8e08381121c10c100632ae190cc509be3293e | [
"MIT"
] | null | null | null | Books/SFML Game Development by Example/Chapter 12/ActionRPG/ActionRPG/src/S_State.cpp | mequint/Cpp-Samples | a5e8e08381121c10c100632ae190cc509be3293e | [
"MIT"
] | null | null | null | Books/SFML Game Development by Example/Chapter 12/ActionRPG/ActionRPG/src/S_State.cpp | mequint/Cpp-Samples | a5e8e08381121c10c100632ae190cc509be3293e | [
"MIT"
] | null | null | null | #include "S_State.h"
#include "SystemManager.h"
S_State::S_State(SystemManager * systemManager) :
S_Base(System::State, systemManager) {
Bitmask req;
req.TurnOnBit(static_cast<unsigned int>(Component::State));
m_requiredComponents.push_back(req);
m_systemManager->GetMessageHandler()->Subscribe(EntityMessage::M... | 30.298851 | 117 | 0.736722 | mequint |
e2160285deb86925e4c2bfb3e80647bd7cad9878 | 902 | hpp | C++ | test/algorithm/zip_with.hpp | kvasir-io/MPL | 59cd21381c3f3285939c0d32dbfe657398c52ec9 | [
"BSL-1.0"
] | 148 | 2017-03-02T21:11:44.000Z | 2022-03-26T04:04:19.000Z | test/algorithm/zip_with.hpp | kvasir-io/MPL | 59cd21381c3f3285939c0d32dbfe657398c52ec9 | [
"BSL-1.0"
] | 37 | 2017-02-13T22:45:27.000Z | 2021-03-28T16:26:33.000Z | test/algorithm/zip_with.hpp | kvasir-io/MPL | 59cd21381c3f3285939c0d32dbfe657398c52ec9 | [
"BSL-1.0"
] | 32 | 2017-03-06T21:34:25.000Z | 2022-01-02T16:40:35.000Z | // Copyright Chiel Douwes 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <kvasir/mpl/algorithm/zip_with.hpp>
#include <kvasir/mpl/functional/bind.hpp>
namespace {
n... | 41 | 96 | 0.609756 | kvasir-io |
e21c24b5685569f2ff5b136ca4a25ff3aae02bc5 | 3,748 | cpp | C++ | ECF/AlgAEliGPEA2.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/AlgAEliGPEA2.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | ECF/AlgAEliGPEA2.cpp | KarlaSalamun/ECF | 4bd21cf43d09435f034259a6b59129b1df6ad1b3 | [
"MIT"
] | null | null | null | #include "ECF_base.h"
#include "ECF_derived.h"
#include "ECF_macro.h"
#include "AlgAEliGPEA2.h"
const int MASTER = 0;
const int RANDOM = 0;
const int WORST = 1;
AlgAEliGpea2::AlgAEliGpea2()
{
name_ = "AlgAEliGPEA2";
selectionOp.push_back(static_cast<SelectionOperatorP> (new SelRandomOp));
selectionO... | 27.970149 | 86 | 0.656083 | KarlaSalamun |
e21cdeb6fb2e08606bbe0885d28b23386e739efe | 23,040 | hh | C++ | dam/source/cc/dam/records/WibFrame.hh | DUNE/dunepdsprce | 2a4ca9b5ed08e1ba6ff7972681d8c0076d314d30 | [
"BSD-3-Clause-LBNL"
] | null | null | null | dam/source/cc/dam/records/WibFrame.hh | DUNE/dunepdsprce | 2a4ca9b5ed08e1ba6ff7972681d8c0076d314d30 | [
"BSD-3-Clause-LBNL"
] | null | null | null | dam/source/cc/dam/records/WibFrame.hh | DUNE/dunepdsprce | 2a4ca9b5ed08e1ba6ff7972681d8c0076d314d30 | [
"BSD-3-Clause-LBNL"
] | null | null | null | // -*-Mode: C++;-*-
#ifndef RECORDS_WIB_FRAME_HH
#define RECORDS_WIB_FRAME_HH
/* ---------------------------------------------------------------------- *//*!
*
* @file records/WibFrame.hh
* @brief Definition of a WibFrame
* @verbatim
* Copyright 2017
* ... | 49.1258 | 87 | 0.367578 | DUNE |
e228db922fc336755ba51a7ddb20dd3df942c9cf | 312 | cc | C++ | python_wrappers/sim_helper.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | python_wrappers/sim_helper.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | python_wrappers/sim_helper.cc | Thomas-Ulrich/core | 1c7bc7ff994c3570ab22b96d37be0c4c993e5940 | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | #include "sim_helper.h"
void start_sim(const char* logfile)
{
MS_init();
SimModel_start();
Sim_readLicenseFile(0);
if (logfile)
Sim_logOn(logfile);
is_started = true;
}
void stop_sim()
{
Sim_unregisterAllKeys();
SimModel_stop();
MS_exit();
}
bool is_sim_started()
{
return is_started;
}
| 13 | 35 | 0.685897 | Thomas-Ulrich |
e229db3ad459e09af92b4b5db8d4c71729cabf4c | 1,667 | cpp | C++ | src/otCore/GUID.cpp | eglrp/otSim | 24b5773536856847bfaa90a47e331ccf9475bb9b | [
"MIT"
] | 2 | 2021-12-29T16:21:31.000Z | 2022-01-09T11:29:11.000Z | src/otCore/GUID.cpp | eglrp/otSim | 24b5773536856847bfaa90a47e331ccf9475bb9b | [
"MIT"
] | null | null | null | src/otCore/GUID.cpp | eglrp/otSim | 24b5773536856847bfaa90a47e331ccf9475bb9b | [
"MIT"
] | 2 | 2021-04-09T12:46:15.000Z | 2022-01-09T11:29:21.000Z | /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: GUID.cpp
Author: Cory Parks
Date started: 09/2017
See LICENSE file for copyright and license information
FUNCTIONAL DESCRIPTION
--------------------------------------------------------------------------------
Allows ... | 28.254237 | 80 | 0.395921 | eglrp |
e22c8910bddc24db3dfae4c7923e77bc8cc83b8b | 9,637 | hpp | C++ | vendor/cybozulib/include/cybozu/minixml.hpp | teamsimplepay/ooxml_crypt | 8a20790b2f7ec49e98171af0c2be78e8cd241f3e | [
"MIT"
] | 48 | 2015-02-06T12:24:25.000Z | 2021-11-26T15:28:07.000Z | vendor/cybozulib/include/cybozu/minixml.hpp | teamsimplepay/ooxml_crypt | 8a20790b2f7ec49e98171af0c2be78e8cd241f3e | [
"MIT"
] | 4 | 2017-09-07T08:32:33.000Z | 2021-11-29T01:51:41.000Z | vendor/cybozulib/include/cybozu/minixml.hpp | teamsimplepay/ooxml_crypt | 8a20790b2f7ec49e98171af0c2be78e8cd241f3e | [
"MIT"
] | 22 | 2015-01-26T10:44:48.000Z | 2022-02-08T20:36:07.000Z | #pragma once
/**
@file
@brief mini XML parser(not strict)
@author MITSUNARI Shigeo(@herumi)
*/
#include <assert.h>
#include <cybozu/exception.hpp>
#include <map>
#include <istream>
#include <list>
namespace cybozu {
namespace minixml {
const int indentWidth = 3;
inline std::string escape(const std::string& str... | 21.273731 | 110 | 0.569887 | teamsimplepay |
e230e51b604c277941715b9d874389331ba715d5 | 1,332 | cpp | C++ | sources/Inputs/GLFWInput.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | sources/Inputs/GLFWInput.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | sources/Inputs/GLFWInput.cpp | Gilqamesh/GameEngineDemo | 796bb107df5c01b875c2ae73fcfd44e7c07e3a87 | [
"MIT"
] | null | null | null | #include "Inputs/GLFWInput.hpp"
#include "Debug/Trace.hpp"
namespace NAMESPACE
{
GLFWInput *GLFWInput::thisInstance = nullptr;
std::mutex GLFWInput::thisInstanceMutex;
GLFWwindow *GLFWInput::currentWindow = nullptr;
GLFWInput::GLFWInput()
{
TRACE();
}
GLFWInput::~GLFWInput()
{
TRACE();
delete thisIns... | 18.5 | 72 | 0.662913 | Gilqamesh |
e2315eaf91c821b189002e8030a84b204d4108db | 8,991 | cpp | C++ | Libs/ClipSys/ClipModel.cpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/ClipSys/ClipModel.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/ClipSys/ClipModel.cpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#include "ClipModel.hpp"
#include "ClipWorld.hpp"
#include "ClipWorld_private.hpp"
#include "CollisionModel_base.hpp"
#include "TraceResult.hpp"
#include "TraceSolid.h... | 35.258824 | 189 | 0.66422 | dns |
e23b894dbd00734522e6223e4d3ba5343f6ebf98 | 1,308 | cpp | C++ | 搜索/Flood Fill/acwing_1076.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 搜索/最短路模型/acwing_1076.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 搜索/最短路模型/acwing_1076.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | /*
* @Description: 1076. 迷宫问题
* @Author: Xiaobin Ren
* @Date: 2020-10-14 16:26:30
* @Last Modified time: 2020-10-14 16:26:48
*/
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
typedef pair<int ,int > pii;
#define x first
#define y second
const int N = 1010, M = N * N;
int g[N][N];
in... | 22.169492 | 60 | 0.437309 | tempure |
e240d1b4eba57f45b5a3d5c54db01a6f436ed5eb | 525 | cpp | C++ | LeetCode/434 - Number of Segments in a String.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/434 - Number of Segments in a String.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | LeetCode/434 - Number of Segments in a String.cpp | GokulVSD/ScratchPad | 53dee2293a2039186b00c7a465c7ef28e2b8e291 | [
"Unlicense"
] | null | null | null | // https://leetcode.com/problems/number-of-segments-in-a-string/submissions/
// Simple enough
class Solution {
public:
int countSegments(string s) {
if(s.size() == 0) return 0;
int count = 0;
bool prevNotWS = false;
for(int i = 0; i < s.size(); ++i){
if(s[i] != ' ') pre... | 25 | 76 | 0.470476 | GokulVSD |
e24285537d491c0239589ce2714b8716850e9cc1 | 8,026 | cpp | C++ | ZooidEngine/SceneRenderer/ShadowRenderer.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 4 | 2019-05-31T22:55:49.000Z | 2020-11-26T11:55:34.000Z | ZooidEngine/SceneRenderer/ShadowRenderer.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | null | null | null | ZooidEngine/SceneRenderer/ShadowRenderer.cpp | azon04/Z0-Engine | 1a44781fb5308c11c3b63b954ad683a51e9ba271 | [
"MIT"
] | 1 | 2018-04-11T02:50:47.000Z | 2018-04-11T02:50:47.000Z | #include "ShadowRenderer.h"
#include "Memory/Handle.h"
#include "Renderer/DrawList.h"
#include "Scene/Light/LightComponent.h"
#include "Math/MathOps.h"
#include "ZEGameContext.h"
#include "Renderer/Structs.h"
#include "Renderer/IRenderer.h"
#include "RenderInfo/MeshRenderInfo.h"
#include "RenderInfo/SkinMeshRenderInfo... | 32.104 | 187 | 0.754299 | azon04 |
f46da23e446228b314f8fa681ff5cafda67fd982 | 7,539 | cc | C++ | src/test/core_index/posting_list_test.cc | tinro/RedGiant | 01cd9d8d13d5b5db581af771a51e32e5e96dba85 | [
"MIT"
] | 17 | 2016-05-30T07:20:45.000Z | 2021-08-16T07:40:42.000Z | src/test/core_index/posting_list_test.cc | tinro/RedGiant | 01cd9d8d13d5b5db581af771a51e32e5e96dba85 | [
"MIT"
] | 13 | 2016-04-21T03:30:18.000Z | 2016-06-02T03:48:50.000Z | src/test/core_index/posting_list_test.cc | tinro/RedGiant | 01cd9d8d13d5b5db581af771a51e32e5e96dba85 | [
"MIT"
] | 5 | 2016-05-24T11:49:13.000Z | 2016-06-06T09:22:17.000Z | #include <memory>
#include <utility>
#include <vector>
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "mock_weight.h"
#include "../core_reader/mock_reader.h"
#include "core/index/posting_list.h"
#include "core/index/map_posting_list.h"
#include "core/index/btree_posting_list.h... | 32.356223 | 112 | 0.713357 | tinro |
f46e1029cfb7b0c79ce35243a76a9bdcc0dcdfee | 28,234 | cpp | C++ | test/acl_CoreSocket_Test.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | test/acl_CoreSocket_Test.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | test/acl_CoreSocket_Test.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | /**
* \copyright Copyright 2021 Aqueti, Inc. All rights reserved.
* \license This project is released under the MIT Public License.
**/
#include <iostream>
#include <thread>
#include <vector>
#include <CoreSocket.hpp>
using namespace acl::CoreSocket;
/// @brief How many socket connections to try
stat... | 35.64899 | 136 | 0.586527 | ReliaSolve |
f46fce8f0dda1d320f86fb4157d2eb525ef786c6 | 5,802 | cpp | C++ | src/Client.cpp | edwjchen/cse125-sp20-group1 | c4fd6dc8a60a81519a4808e57abc12c63dbbe388 | [
"MIT"
] | null | null | null | src/Client.cpp | edwjchen/cse125-sp20-group1 | c4fd6dc8a60a81519a4808e57abc12c63dbbe388 | [
"MIT"
] | null | null | null | src/Client.cpp | edwjchen/cse125-sp20-group1 | c4fd6dc8a60a81519a4808e57abc12c63dbbe388 | [
"MIT"
] | null | null | null | //
// Client.cpp
// Gaia
//
// Created by Cain on 4/16/20.
// Copyright © 2020 SphereEnix. All rights reserved.
//
#include "Client.h"
Cube* Client::cube;
Sphere* Client::sphere;
IO_handler* Client::io_handler;
Client::Client(int width, int height) {
window = new Window(width, height, "Window");
std::pair<in... | 24.378151 | 97 | 0.583937 | edwjchen |
f4707b1cee58a5111ce55d0804c170bd09c667c7 | 1,652 | cpp | C++ | Vault/Source/Vault/Private/VaultOutputLog.cpp | nsynkde/Vault-Dev | e5809c94994b606899cd5a7bacb88e2bcb484f67 | [
"MIT"
] | 11 | 2020-11-04T13:51:19.000Z | 2022-02-24T23:11:44.000Z | Vault/Source/Vault/Private/VaultOutputLog.cpp | nsynkde/Vault-Dev | e5809c94994b606899cd5a7bacb88e2bcb484f67 | [
"MIT"
] | null | null | null | Vault/Source/Vault/Private/VaultOutputLog.cpp | nsynkde/Vault-Dev | e5809c94994b606899cd5a7bacb88e2bcb484f67 | [
"MIT"
] | 3 | 2022-01-23T10:14:56.000Z | 2022-03-30T13:35:10.000Z | // Copyright Daniel Orchard 2020
#include "VaultOutputLog.h"
#include "CoreGlobals.h"
#define LOCTEXT_NAMESPACE "VaultOutputLog"
// On construct, add as an output device, and serialize.
FVaultOutputLog::FVaultOutputLog()
{
GLog->AddOutputDevice(this);
GLog->SerializeBacklog(this);
AcceptedLogCategories =
{
F... | 25.030303 | 115 | 0.756053 | nsynkde |
f4732a3534df74ed3bbeecb5caf09c870de4274f | 238 | cpp | C++ | 3DEngine/src/Helper/AnimationDebugHelper.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | 3DEngine/src/Helper/AnimationDebugHelper.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | 3DEngine/src/Helper/AnimationDebugHelper.cpp | tobbep1997/Bitfrost_2.0 | a092db19d4658062554b7df759f28439fc1ad4f8 | [
"Apache-2.0"
] | null | null | null | #include "EnginePCH.h"
#include "AnimationDebugHelper.h"
float AnimationDebugHelper::foo = 0.0f;
float AnimationDebugHelper::bar = 0.0f;
AnimationDebugHelper::AnimationDebugHelper()
{
}
AnimationDebugHelper::~AnimationDebugHelper()
{
}
| 18.307692 | 45 | 0.785714 | tobbep1997 |
f4755fc260859909785d8a25d2f1c3f212f13dc2 | 3,158 | cpp | C++ | Contract/EOS/payout/backup/dawn/payout.cpp | flyq/dapp-rosetta | 0b66f1798c68cd23211105cca363ae1e8eca6876 | [
"MIT"
] | 21 | 2019-01-24T12:43:33.000Z | 2021-12-20T02:03:22.000Z | Contract/EOS/payout/backup/dawn/payout.cpp | flyq/dapp-rosetta | 0b66f1798c68cd23211105cca363ae1e8eca6876 | [
"MIT"
] | 1 | 2021-12-19T18:15:15.000Z | 2022-02-09T04:50:32.000Z | Contract/EOS/payout/backup/dawn/payout.cpp | flyq/dapp-rosetta | 0b66f1798c68cd23211105cca363ae1e8eca6876 | [
"MIT"
] | 13 | 2019-02-14T01:56:26.000Z | 2020-09-25T02:52:18.000Z | #include "payout.hpp"
void payout::stake(account_name from, uint64_t delta)
{
require_auth(from);
eosio_assert(delta > 0, "must stake a positive amount");
singleton_voters _voters(_self, from);
auto v = _voters.get_or_create(_self, voter_info{});
auto g = _global.get();
v.staked += delta;
... | 31.89899 | 112 | 0.618429 | flyq |
f4764575e4bad6c84c35ee3edcece1308f6b60be | 8,394 | cpp | C++ | src/g2o/demoG2O.cpp | zoumson/CurveFitting | bf115ce0e98478a8a1e6962e8a124582e0a7be4b | [
"Unlicense",
"MIT"
] | null | null | null | src/g2o/demoG2O.cpp | zoumson/CurveFitting | bf115ce0e98478a8a1e6962e8a124582e0a7be4b | [
"Unlicense",
"MIT"
] | null | null | null | src/g2o/demoG2O.cpp | zoumson/CurveFitting | bf115ce0e98478a8a1e6962e8a124582e0a7be4b | [
"Unlicense",
"MIT"
] | null | null | null | #include <iostream>
#include <g2o/core/base_vertex.h>
#include <g2o/core/base_unary_edge.h>
#include <g2o/core/block_solver.h>
#include <g2o/core/optimization_algorithm_levenberg.h>
#include <g2o/core/optimization_algorithm_gauss_newton.h>
#include <g2o/core/optimization_algorithm_dogleg.h>
#include <g2o/solvers/dense/... | 33.442231 | 150 | 0.596378 | zoumson |
f4848bdc1265aaced626ae4ef3e407ccdbab8fed | 196 | hh | C++ | src/Titon/Intl/locales/ko/locale.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Intl/locales/ko/locale.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Intl/locales/ko/locale.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh
// Korean
return Map {
'code' => 'ko',
'iso2' => 'ko',
'iso3' => 'kor',
'timezone' => 'Asia/Seoul',
'title' => 'Korean',
'plural' => Titon\Intl\PluralRule::RULE_1
};
| 16.333333 | 45 | 0.484694 | ciklon-z |
f48def8b7fc32da064525b639cfa6f967058eac5 | 2,939 | cpp | C++ | pointimposters/NdfImposters/NdfImposterLibary/SparseApproximator.cpp | reinago/sndfs | 0d152e6bf4f63d1468c8e91915a4ff970c978882 | [
"MIT"
] | null | null | null | pointimposters/NdfImposters/NdfImposterLibary/SparseApproximator.cpp | reinago/sndfs | 0d152e6bf4f63d1468c8e91915a4ff970c978882 | [
"MIT"
] | null | null | null | pointimposters/NdfImposters/NdfImposterLibary/SparseApproximator.cpp | reinago/sndfs | 0d152e6bf4f63d1468c8e91915a4ff970c978882 | [
"MIT"
] | 1 | 2021-11-19T15:30:43.000Z | 2021-11-19T15:30:43.000Z | #include "SparseApproximator.h"
using namespace SparseApproximation;
template class SparseApproximator<float>;
template <typename DataType>
ApproximationResult SparseApproximator<DataType>::Approximate(glm::ivec2 histogramResolution, glm::ivec2 spatialResolution, int maxClusters, std::vector<float> data, int emItera... | 39.186667 | 185 | 0.765226 | reinago |
f492e5be4d1c9b0deb2445e0cd7805589388289f | 368 | cxx | C++ | tests/test_wip.cxx | germasch/gtensor | 36eb41cb9fe63cc5efac0331de3489b57b490cd9 | [
"BSD-3-Clause"
] | null | null | null | tests/test_wip.cxx | germasch/gtensor | 36eb41cb9fe63cc5efac0331de3489b57b490cd9 | [
"BSD-3-Clause"
] | null | null | null | tests/test_wip.cxx | germasch/gtensor | 36eb41cb9fe63cc5efac0331de3489b57b490cd9 | [
"BSD-3-Clause"
] | null | null | null |
#include <gtest/gtest.h>
#include <gtensor/gtensor.h>
TEST(gview, newaxis)
{
gt::gtensor<double, 2> a = {{11., 12., 13.}, {21., 22., 23.}};
gt::gtensor<double, 1> b = {100., 101., 102.};
auto bv = gt::view<2>(b, {gt::all(), gt::newaxis()});
auto c = a + bv;
EXPECT_EQ(
c, (gt::gtensor_device<double, 2... | 20.444444 | 80 | 0.538043 | germasch |
f4947faa1d0b31fff32d0e24df6b076fcf8a2838 | 1,616 | cc | C++ | src/objects/statement/each.cc | bengotow/better-sqlite3 | 2606eef344cdf22f23ec8bd403f4aeb305f644cb | [
"MIT"
] | 2 | 2017-10-10T06:24:35.000Z | 2021-06-15T15:01:39.000Z | src/objects/statement/each.cc | bengotow/better-sqlite3 | 2606eef344cdf22f23ec8bd403f4aeb305f644cb | [
"MIT"
] | null | null | null | src/objects/statement/each.cc | bengotow/better-sqlite3 | 2606eef344cdf22f23ec8bd403f4aeb305f644cb | [
"MIT"
] | 2 | 2017-03-15T06:34:50.000Z | 2017-05-05T02:47:03.000Z | // .each(...any boundValues, Function callback) -> undefined
NAN_METHOD(Statement::Each) {
Statement* stmt = Nan::ObjectWrap::Unwrap<Statement>(info.This());
if (!(stmt->state & RETURNS_DATA)) {
return Nan::ThrowTypeError("This statement does not return data. Use run() instead.");
}
REQUIRE_LAST_ARGUMENT_FUNCTIO... | 38.47619 | 88 | 0.720916 | bengotow |
f4976dd24401de91fca10f49784a13d811c97ede | 1,914 | cpp | C++ | Project13/main.cpp | dgramirez/SSE_MathV1 | aab1516601f1df49e8f8546146008ac58b3f2205 | [
"MIT"
] | null | null | null | Project13/main.cpp | dgramirez/SSE_MathV1 | aab1516601f1df49e8f8546146008ac58b3f2205 | [
"MIT"
] | null | null | null | Project13/main.cpp | dgramirez/SSE_MathV1 | aab1516601f1df49e8f8546146008ac58b3f2205 | [
"MIT"
] | 1 | 2019-11-01T15:43:02.000Z | 2019-11-01T15:43:02.000Z | #include <iostream>
#include "tMath.h"
#include "vec_test.h"
#include "mat_test.h"
#define LOG(x) std::cout << x << std::endl;
int main()
{
#pragma region vec4_tests
LOG("vec4_isequal: " << test_vec4_isequal());
LOG("vec4_add: " << test_vec4_add());
LOG("vec4_sub: " << test_vec4_sub());
LOG("vec4_mul: " << test_... | 33.578947 | 56 | 0.678161 | dgramirez |
f4a8bdb7d2c726391d9537f6412cbc0d502b4150 | 457 | hpp | C++ | include/detail/indicators/indicator_interface.hpp | Kristian-Popov/opencl-benchmark | e2c99bc179b36296ea5b16ea49ec7ada53e7c2be | [
"MIT"
] | null | null | null | include/detail/indicators/indicator_interface.hpp | Kristian-Popov/opencl-benchmark | e2c99bc179b36296ea5b16ea49ec7ada53e7c2be | [
"MIT"
] | null | null | null | include/detail/indicators/indicator_interface.hpp | Kristian-Popov/opencl-benchmark | e2c99bc179b36296ea5b16ea49ec7ada53e7c2be | [
"MIT"
] | null | null | null | #ifndef KPV_INDICATORS_INDICATOR_INTERFACE_H_
#define KPV_INDICATORS_INDICATOR_INTERFACE_H_
#include <map>
#include <memory>
namespace kpv {
namespace cl_benchmark {
class IndicatorInterface {
public:
// TODO can we replace that with to_json?
virtual void SerializeValue(nlohmann::json& tree) = 0;
virtual... | 22.85 | 58 | 0.770241 | Kristian-Popov |
f4ab0a56f24a50638ad863258b69e6e425a62321 | 236 | cpp | C++ | URI Online Judge/1035.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | URI Online Judge/1035.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | URI Online Judge/1035.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
int main()
{
int a, b, c, d;
cin>>a>>b>>c>>d;
if(b>c && d>a && c+d>a+b && c>0 && d>0 && a%2==0) cout<<"Valores aceitos\n";
else cout<<"Valores nao aceitos\n";
return 0;
}
| 15.733333 | 80 | 0.516949 | Al3x76 |
f4b263afab125d3638f802248cd28aff36bf78ac | 7,745 | cpp | C++ | ext/include/osgEarthFeatures/ScatterFilter.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 6 | 2015-09-26T15:33:41.000Z | 2021-06-13T13:21:50.000Z | ext/include/osgEarthFeatures/ScatterFilter.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | null | null | null | ext/include/osgEarthFeatures/ScatterFilter.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 5 | 2015-05-04T09:02:23.000Z | 2019-06-17T11:34:12.000Z | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... | 34.118943 | 111 | 0.53286 | energonQuest |
f4b844286d46fa79ce6504bd984a2a94fcdd6015 | 2,314 | cpp | C++ | ComponentCanvas.cpp | rogerta97/TryHard_Engine | 6dc6725264a2a1d86530aa3d8f00f260f8509883 | [
"MIT"
] | null | null | null | ComponentCanvas.cpp | rogerta97/TryHard_Engine | 6dc6725264a2a1d86530aa3d8f00f260f8509883 | [
"MIT"
] | null | null | null | ComponentCanvas.cpp | rogerta97/TryHard_Engine | 6dc6725264a2a1d86530aa3d8f00f260f8509883 | [
"MIT"
] | null | null | null | #include "ComponentCanvas.h"
#include "ComponentRectTransform.h"
#include "Application.h"
#include "UI_Canvas.h"
ComponentCanvas::ComponentCanvas(GameObject* parent)
{
component_type = CMP_CANVAS;
gameobject = parent;
render_elements = true;
}
ComponentCanvas::~ComponentCanvas()
{
delete canvas;
}
bool Compo... | 18.66129 | 97 | 0.731201 | rogerta97 |
f4ba6d291284001160d64b91ad7e6393dafcb28a | 2,135 | cpp | C++ | DataStructure/BinaryTree/BinaryTree.cpp | kdw313/cppDataStructure | 2f79b4bb9d562661c473c964ce44fc0d0a6815b2 | [
"MIT"
] | null | null | null | DataStructure/BinaryTree/BinaryTree.cpp | kdw313/cppDataStructure | 2f79b4bb9d562661c473c964ce44fc0d0a6815b2 | [
"MIT"
] | null | null | null | DataStructure/BinaryTree/BinaryTree.cpp | kdw313/cppDataStructure | 2f79b4bb9d562661c473c964ce44fc0d0a6815b2 | [
"MIT"
] | null | null | null | #include "BinaryTree.h"
BinaryTree::BinaryTree()
{
BinaryTree::root = nullptr;
}
void BinaryTree::destroy_tree(node *leaf)
{
if(leaf != nullptr){
destroy_tree(leaf->left);
destroy_tree(leaf->right);
delete leaf;
}
return;
}
void BinaryTree::insert(int key, node *leaf)
{
... | 18.893805 | 70 | 0.488056 | kdw313 |
f4bae4277fc38feade6cfd6a6ad3d9581d62d808 | 690 | cpp | C++ | find_pivot_efficiently.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | find_pivot_efficiently.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | find_pivot_efficiently.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
//Calculate the left sum of array
int left_sum[n];
left_sum[0]=0;
for(int i=1;i<n;i++)
{
left_sum[i]=left_sum[i-1]+arr[i-1];
}
/*
//Print the left sum to check
for(int i=0;i<n;i++)
{... | 13.529412 | 39 | 0.552174 | onexmaster |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.