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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
475c6b2d3279c433fdf8b7adeaa360ee3671a805 | 661 | cpp | C++ | cses/graph-algorithms/flight-discount.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | cses/graph-algorithms/flight-discount.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | cses/graph-algorithms/flight-discount.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
#include <cpplib/graph/shortest-path/dijkstra.hpp>
int32_t main(){
// https://cses.fi/problemset/task/1195
desync();
int n, m;
cin >> n >> m;
vvii adj(n+1), adjinv(n+1);
for(int i=0; i<m; ++i){
int a, b, c;
cin >> a >> b >> c;
adj[a].pb({b, c... | 24.481481 | 75 | 0.465961 | tysm |
47614d5c08eaa65b87512ced2d003ab1dd8dc524 | 21,690 | cpp | C++ | Extensions/ZilchShaders/LibraryTranslator.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | Extensions/ZilchShaders/LibraryTranslator.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | Extensions/ZilchShaders/LibraryTranslator.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2015, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
namespace Zero
{
//---------------... | 41.235741 | 198 | 0.734071 | RachelWilSingh |
4766675bb3b3c49968239efc5d6e18f6cda280fd | 6,022 | hpp | C++ | src/alignment.hpp | h-2/vaquita | 8ec97df9be7ff50166bc724065be6a49575f7d48 | [
"BSD-3-Clause"
] | 11 | 2017-06-14T06:17:40.000Z | 2021-02-10T11:24:42.000Z | src/alignment.hpp | h-2/vaquita | 8ec97df9be7ff50166bc724065be6a49575f7d48 | [
"BSD-3-Clause"
] | 11 | 2017-06-15T11:53:17.000Z | 2020-12-16T08:57:56.000Z | src/alignment.hpp | h-2/vaquita | 8ec97df9be7ff50166bc724065be6a49575f7d48 | [
"BSD-3-Clause"
] | 2 | 2017-06-13T15:31:34.000Z | 2018-10-16T13:30:41.000Z | // ==========================================================================
// Vaquita
// ==========================================================================
// Copyright (c) 2017, Jongkyu Kim, MPI-MolGen/FU-Berlin
// All rights reserved.
//
// Redistribution and use in source and... | 44.279412 | 131 | 0.62089 | h-2 |
47684729576dfa76505d3551eec1f5544e4b1749 | 325 | cc | C++ | common/buffer/buffer_error.cc | changchengx/ReplicWBCache | f0a8ef3108513fcac3a2291dafaebfb52cacfcac | [
"Apache-2.0"
] | null | null | null | common/buffer/buffer_error.cc | changchengx/ReplicWBCache | f0a8ef3108513fcac3a2291dafaebfb52cacfcac | [
"Apache-2.0"
] | null | null | null | common/buffer/buffer_error.cc | changchengx/ReplicWBCache | f0a8ef3108513fcac3a2291dafaebfb52cacfcac | [
"Apache-2.0"
] | null | null | null | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright(c) 2020 Liu, Changcheng <changcheng.liu@aliyun.com>
*/
#include <iostream>
#include "buffer/buffer_error.h"
std::ostream& spec::buffer::operator<<(std::ostream& out, const spec::buffer::error& berror) {
const char* info = berror.what();
return out << inf... | 25 | 94 | 0.683077 | changchengx |
4769e3dac92d306980461b3534ecb870f1dff916 | 682 | hpp | C++ | src/include/migraphx/time.hpp | raramakr/AMDMIGraphX | 83e7425367f6ce850ec28fe716fe7c23ce34c79f | [
"MIT"
] | 72 | 2018-12-06T18:31:17.000Z | 2022-03-30T15:01:02.000Z | src/include/migraphx/time.hpp | raramakr/AMDMIGraphX | 83e7425367f6ce850ec28fe716fe7c23ce34c79f | [
"MIT"
] | 1,006 | 2018-11-30T16:32:33.000Z | 2022-03-31T22:43:39.000Z | src/include/migraphx/time.hpp | raramakr/AMDMIGraphX | 83e7425367f6ce850ec28fe716fe7c23ce34c79f | [
"MIT"
] | 36 | 2019-05-07T10:41:46.000Z | 2022-03-28T15:59:56.000Z | #ifndef MIGRAPHX_GUARD_RTGLIB_TIME_HPP
#define MIGRAPHX_GUARD_RTGLIB_TIME_HPP
#include <chrono>
#include <migraphx/config.hpp>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
struct timer
{
std::chrono::time_point<std::chrono::steady_clock> start = std::chrono::steady_clock::now();
template <class... | 20.666667 | 96 | 0.696481 | raramakr |
476c479cdfcd3cbd35ea8f9f9d6f33c1e5e24777 | 338 | cc | C++ | lib/AST/OutputPort.cc | rawatamit/scheme | 2c5e121fa873a2fb7762b69027480e28686bbb87 | [
"MIT"
] | null | null | null | lib/AST/OutputPort.cc | rawatamit/scheme | 2c5e121fa873a2fb7762b69027480e28686bbb87 | [
"MIT"
] | null | null | null | lib/AST/OutputPort.cc | rawatamit/scheme | 2c5e121fa873a2fb7762b69027480e28686bbb87 | [
"MIT"
] | null | null | null | #include "AST/OutputPort.h"
Scheme::OutputPort::OutputPort(FILE* out) :
Scheme::SchemeObject(Scheme::SchemeObject::OUTPUT_PORT_TY), out_(out)
{}
Scheme::OutputPort::~OutputPort()
{}
FILE* Scheme::OutputPort::getOutputStream() const {
return out_;
}
int Scheme::OutputPort::closeOutputStream() {
retur... | 19.882353 | 77 | 0.707101 | rawatamit |
476dafc7c493d911796401bf107e152777f5ee12 | 4,959 | cpp | C++ | pj_tensorrt_depth_stereo_hitnet/image_processor/image_processor.cpp | Pandinosaurus/play_with_tensorrt | 250bfaef2f880ea3131d6ddfcc4870140cc9964e | [
"Apache-2.0"
] | null | null | null | pj_tensorrt_depth_stereo_hitnet/image_processor/image_processor.cpp | Pandinosaurus/play_with_tensorrt | 250bfaef2f880ea3131d6ddfcc4870140cc9964e | [
"Apache-2.0"
] | null | null | null | pj_tensorrt_depth_stereo_hitnet/image_processor/image_processor.cpp | Pandinosaurus/play_with_tensorrt | 250bfaef2f880ea3131d6ddfcc4870140cc9964e | [
"Apache-2.0"
] | null | null | null | /*** Include ***/
/* for general */
#include <cstdint>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <array>
#include <algorithm>
#include <chrono>
#include <fstream>
#include <memory>
/* for OpenCV */
#include <opencv2/opencv.hpp>
/* for My modules */
#include "c... | 31.386076 | 185 | 0.655576 | Pandinosaurus |
476e156b97f8e3552d02104d5edbe3c0bde6a514 | 9,400 | cpp | C++ | BesImage/appConfig.cpp | BensonLaur/BesImage | 63e32cc35db093fbe3f3033c32837ee6595d8c49 | [
"MIT"
] | 2 | 2019-10-17T06:13:13.000Z | 2020-05-24T12:39:47.000Z | BesImage/appConfig.cpp | BensonLaur/BesImage | 63e32cc35db093fbe3f3033c32837ee6595d8c49 | [
"MIT"
] | null | null | null | BesImage/appConfig.cpp | BensonLaur/BesImage | 63e32cc35db093fbe3f3033c32837ee6595d8c49 | [
"MIT"
] | 3 | 2019-06-30T02:31:42.000Z | 2021-11-30T02:14:24.000Z | #include "appConfig.h"
AppConfig& AppConfig::GetInstance()
{
static AppConfig* instance = nullptr;
if(instance == nullptr)
instance = new AppConfig();
return *instance;
}
//获得打数 (如果未加载自动去文件读取,已加载则使用已载入的参数。bForceLoadFromFile 强制从文件获得最新参数)
bool AppConfig::GetAppParameter(AppConfigParameter& ... | 29.936306 | 177 | 0.58266 | BensonLaur |
4778a51eccb0064ff5353bb11892d0feff6d2070 | 1,710 | cpp | C++ | Compiler/ErrorHandler.cpp | davidov541/MiniC | d3b16a1568b97a4d801880b110a8be04fe848adb | [
"Apache-2.0"
] | null | null | null | Compiler/ErrorHandler.cpp | davidov541/MiniC | d3b16a1568b97a4d801880b110a8be04fe848adb | [
"Apache-2.0"
] | null | null | null | Compiler/ErrorHandler.cpp | davidov541/MiniC | d3b16a1568b97a4d801880b110a8be04fe848adb | [
"Apache-2.0"
] | null | null | null | #include "ErrorHandler.h"
#include "stdafx.h"
namespace MiniC {
ErrorHandler* ErrorHandler::instance = NULL;
ErrorHandler::ErrorHandler(int debugCode)
{
this->debugCode = debugCode;
}
ErrorHandler::~ErrorHandler() { }
bool ErrorHandler::CheckFlag()
{
bool flag = this->FlagRaised;
this->FlagRaised = ... | 17.1 | 60 | 0.669006 | davidov541 |
47796a9a1dbf55676661038472e0926a913caf1b | 820 | cpp | C++ | CorrelationApp/CheckCorrelation/main.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | CorrelationApp/CheckCorrelation/main.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | CorrelationApp/CheckCorrelation/main.cpp | zkbreeze/KunPBR | 9f545a4e589998691b469bbcadb65a63ac826ebd | [
"BSD-3-Clause"
] | null | null | null | //
// main.cpp
//
//
// Created by Kun Zhao on 2015-12-11 15:22:50.
//
//
#include <iostream>
#include <fstream>
#include "Correlation.h"
// Load test csv data
int main( int argc, char** argv )
{
std::ifstream ifs( argv[1], std::ifstream::in );
char* buf = new char[256];
ifs.getline( buf, 256 ); // Skip
ifs.get... | 23.428571 | 80 | 0.62439 | zkbreeze |
47796f2012760298993adf0f73bdbf77d162e967 | 3,064 | cpp | C++ | higan/sfc/coprocessor/icd2/interface/interface.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/sfc/coprocessor/icd2/interface/interface.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/sfc/coprocessor/icd2/interface/interface.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | auto ICD2::lcdScanline() -> void {
if(GameBoy::ppu.status.ly > 143) return; //Vblank
if((GameBoy::ppu.status.ly & 7) == 0) {
write_bank = (write_bank + 1) & 3;
write_addr = 0;
}
}
auto ICD2::lcdOutput(uint2 color) -> void {
uint y = write_addr / 160;
uint x = write_addr % 160;
uint addr = write_ba... | 24.910569 | 90 | 0.574739 | ameer-bauer |
477a2dce24aedf16869dd3b5bd5701dc2f7b277c | 5,374 | hh | C++ | src/Damage/ScalarDamageModel.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/Damage/ScalarDamageModel.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Damage/ScalarDamageModel.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// ScalarDamageModel -- Base class for the scalar damage physics models.
// This class does not know how to seed the flaw distribution -- that is
// required of descendant classes.
//
// Created by JMO, Sun Oct 10 17:22:05 PDT 2004
//----... | 36.557823 | 83 | 0.628768 | jmikeowen |
477b0bf7314789f5b8525cd0a59d12ed95a22d03 | 5,941 | cc | C++ | flecsi/execution/test/index_subspaces.cc | manopapad/flecsi | 8bb06e4375f454a0680564c76df2c60ffe49c770 | [
"Unlicense"
] | null | null | null | flecsi/execution/test/index_subspaces.cc | manopapad/flecsi | 8bb06e4375f454a0680564c76df2c60ffe49c770 | [
"Unlicense"
] | null | null | null | flecsi/execution/test/index_subspaces.cc | manopapad/flecsi | 8bb06e4375f454a0680564c76df2c60ffe49c770 | [
"Unlicense"
] | null | null | null | /*~-------------------------------------------------------------------------~~*
* Copyright (c) 2014 Los Alamos National Security, LLC
* All rights reserved.
*~-------------------------------------------------------------------------~~*/
#include <cinchdevel.h>
#include <flecsi/execution/context.h>
#include <flecs... | 31.433862 | 80 | 0.479717 | manopapad |
477f6910f6b332be8565a1020006d12339e9f4d7 | 1,693 | cpp | C++ | src/lib/slo/SloInfo.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | 4 | 2015-05-07T03:29:52.000Z | 2016-08-29T17:30:15.000Z | src/lib/slo/SloInfo.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | 1 | 2018-05-14T04:41:04.000Z | 2018-05-14T04:41:04.000Z | src/lib/slo/SloInfo.cpp | MarkLeone/PostHaste | 56083e30a58489338e39387981029488d7af2390 | [
"MIT"
] | null | null | null | // Copyright 2009 Mark Leone (markleone@gmail.com). All rights reserved.
// Licensed under the terms of the MIT License.
// See http://www.opensource.org/licenses/mit-license.php.
#include "slo/SloInfo.h"
#include "slo/SloInputFile.h"
#include "slo/SloOutputFile.h"
#include <string.h>
int
SloInfo::Read(SloInputFile*... | 33.86 | 79 | 0.558771 | MarkLeone |
477f7069f85a04f13aa7fea995156ed92eca4669 | 25,605 | cpp | C++ | randitem/obri_effects.cpp | uesp/obranditem | 4869f96bb9eda7b3a2369815c5f225050d28c445 | [
"MIT"
] | null | null | null | randitem/obri_effects.cpp | uesp/obranditem | 4869f96bb9eda7b3a2369815c5f225050d28c445 | [
"MIT"
] | null | null | null | randitem/obri_effects.cpp | uesp/obranditem | 4869f96bb9eda7b3a2369815c5f225050d28c445 | [
"MIT"
] | null | null | null | /*===========================================================================
*
* File: Obri_Effects.CPP
* Author: Dave Humphrey (uesp@sympatico.ca)
* Created On: 21 April 2006
*
* Description
*
*=========================================================================*/
/* Include Files */
#includ... | 36.216407 | 108 | 0.49588 | uesp |
477f9c9b2104983abe33713e3d572ea630c4aea1 | 632 | cpp | C++ | Creational Patterns/bridge/AbstractionImp.cpp | lijiansong/design-pattern | 64f6be452c1af2c0098b0255adacaf828f765e8f | [
"MIT"
] | 1 | 2021-03-26T06:07:27.000Z | 2021-03-26T06:07:27.000Z | Creational Patterns/bridge/AbstractionImp.cpp | lijiansong/design-pattern | 64f6be452c1af2c0098b0255adacaf828f765e8f | [
"MIT"
] | null | null | null | Creational Patterns/bridge/AbstractionImp.cpp | lijiansong/design-pattern | 64f6be452c1af2c0098b0255adacaf828f765e8f | [
"MIT"
] | 2 | 2020-06-03T08:48:45.000Z | 2021-09-14T12:16:04.000Z | #include "AbstractionImp.h"
#include <iostream>
using namespace std;
AbstractionImp::AbstractionImp()
{}
AbstractionImp::~AbstractionImp()
{}
void AbstractionImp::Operation()
{
cout << "Abstraction... imp..." <<endl;
}
ConcreteAbstractionImpA::ConcreteAbstractionImpA()
{}
ConcreteAbstractionImpA::~ConcreteAbstrac... | 17.555556 | 51 | 0.754747 | lijiansong |
4784403837a3640e1fa74c8ff40704737246c70f | 3,593 | cpp | C++ | sample/gl/kalmanfilter/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 24 | 2017-09-07T16:08:33.000Z | 2022-02-26T16:32:48.000Z | sample/gl/kalmanfilter/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | null | null | null | sample/gl/kalmanfilter/main.cpp | sanko-shoko/simplesp | 6a71022dbb9a304e5a68d60885a04906dc78913a | [
"MIT"
] | 8 | 2018-11-30T02:53:24.000Z | 2021-05-18T06:30:42.000Z | #include "simplesp.h"
#include "spex/spgl.h"
using namespace sp;
class KalmanfilterGUI : public BaseWindow {
private:
void help() {
printf("\n");
}
virtual void init() {
help();
}
virtual void display() {
glClearColor(0.10f, 0.12f, 0.12f, 0.00f);
glClear(GL_CO... | 23.180645 | 126 | 0.367659 | sanko-shoko |
47883c640e13051e023540983403195e1dca9627 | 820 | cpp | C++ | docs/mfc/codesnippet/CPP/ccolordialog-class_5.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/codesnippet/CPP/ccolordialog-class_5.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/ccolordialog-class_5.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | // Override OnColorOK to validate the color entered to the
// Red, Green, and Blue edit controls. If the color
// is BLACK (i.e. RGB(0, 0,0)), then force the current color
// selection to be the color initially selected when the
// dialog box is created. The color dialog won't close so
// user can enter a new color.
BO... | 32.8 | 60 | 0.614634 | jmittert |
478b8065eb80f55e29466001e75deb52edbbb88c | 1,900 | cpp | C++ | Ch04/comp3.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | Ch04/comp3.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | Ch04/comp3.cpp | rzotya0327/UDProg-Introduction | c64244ee541d4ad0c85645385ef4f0c2e1886621 | [
"CC0-1.0"
] | null | null | null | #include "std_lib_facilities.h"
int main()
{
double number = 0, smallest = 0, largest = 0, convert = 0;
string unit;
const double m_to_cm = 100;
const double in_to_cm = 2.54;
const double ft_to_in = 12;
const double cm_to_m = 0.01;
vector<double> distances; //értékek eltárolása a vectorban
cout <... | 23.75 | 96 | 0.568947 | rzotya0327 |
478bee93f76c8091bdb6bc47ba42943eab8ef293 | 16,272 | cpp | C++ | led/CQLFontEd.cpp | colinw7/CVFont | 7ff7eb85425e756d46f9461071400fecfca4cceb | [
"MIT"
] | 2 | 2021-09-03T01:49:54.000Z | 2021-12-23T02:23:03.000Z | led/CQLFontEd.cpp | colinw7/CVFont | 7ff7eb85425e756d46f9461071400fecfca4cceb | [
"MIT"
] | null | null | null | led/CQLFontEd.cpp | colinw7/CVFont | 7ff7eb85425e756d46f9461071400fecfca4cceb | [
"MIT"
] | null | null | null | #include <CQLFontEd.h>
#include <CFile.h>
#include <QStatusBar>
#include <QLabel>
int
main(int argc, char **argv)
{
CQApp qapp(argc, argv);
Application *app = new Application("lfont");
app->init();
app->show();
return qapp.exec();
}
Application::
Application(const std::string &name) :
CQMainWindow(), ... | 18.724971 | 97 | 0.631207 | colinw7 |
478ed2e73e827ab55a48aadc2eae9190dcdb2147 | 2,302 | cpp | C++ | src/ZJGUIDataExchange.cpp | sowicm/mb-savedata-editor | 73dfb1c906ea651c0a9eb21b71702af895a3589c | [
"MIT"
] | null | null | null | src/ZJGUIDataExchange.cpp | sowicm/mb-savedata-editor | 73dfb1c906ea651c0a9eb21b71702af895a3589c | [
"MIT"
] | null | null | null | src/ZJGUIDataExchange.cpp | sowicm/mb-savedata-editor | 73dfb1c906ea651c0a9eb21b71702af895a3589c | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "ZJGUIDataExchange.h"
#include "ZJ_Algorithm.h"
void DDX_Text(CDataExchange* pDX, CZJGUI& gui, UINT iView, int nIDC, CString& value)
{
CZJGUIView *pView = gui.GetView(iView);
for (int i = 0; i < pView->GetNumControls(); ++i)
{
if (pView->GetControl(i)->GetID() ... | 28.419753 | 85 | 0.470026 | sowicm |
4794f526217319dbb03ce885bc3d8c28f20184cc | 1,857 | cpp | C++ | LaplacianSmoother/src/MeshLaplacianData.cpp | tody411/MayaPluginSamples | 785f1b1425e202f42d77622290c3faf80d7bd06f | [
"MIT"
] | 2 | 2016-06-16T14:48:42.000Z | 2018-06-28T20:12:09.000Z | LaplacianSmoother/src/MeshLaplacianData.cpp | tody411/MayaPluginSamples | 785f1b1425e202f42d77622290c3faf80d7bd06f | [
"MIT"
] | null | null | null | LaplacianSmoother/src/MeshLaplacianData.cpp | tody411/MayaPluginSamples | 785f1b1425e202f42d77622290c3faf80d7bd06f | [
"MIT"
] | null | null | null | #include "MeshLaplacianData.h"
#include <maya/MIntArray.h>
//! Get Laplacian data.
const Eigen::SparseMatrix<double> MeshLaplacianData::GetLaplacianMatrix(int numFunctions)
{
if ( _geometryPath.hasFn(MFn::kMesh) )
{
MFnMesh meshFn( _geometryPath );
return getLaplacianMatrix(meshFn, numFunctions);
}
if ( _g... | 21.847059 | 106 | 0.705439 | tody411 |
4796a51b0812e1f9b09a9121f7572f0d11bd228b | 7,078 | cpp | C++ | samples/openNI2_2d-icp-slam/test.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 2 | 2017-03-25T18:09:17.000Z | 2017-05-22T08:14:48.000Z | samples/openNI2_2d-icp-slam/test.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | null | null | null | samples/openNI2_2d-icp-slam/test.cpp | yhexie/mrpt | 0bece2883aa51ad3dc88cb8bb84df571034ed261 | [
"OLDAP-2.3"
] | 1 | 2021-08-16T11:50:47.000Z | 2021-08-16T11:50:47.000Z | /* +---------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| ... | 35.747475 | 182 | 0.567816 | yhexie |
4799f417e923c2b78dc497746a1dd3e6c2a2f1ec | 762 | cpp | C++ | MrGimmick/BaseEnemySound.cpp | CodingC1402/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 1 | 2021-06-02T09:31:15.000Z | 2021-06-02T09:31:15.000Z | MrGimmick/BaseEnemySound.cpp | CornyCodingCorn/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 1 | 2021-07-13T13:56:18.000Z | 2021-07-13T13:56:18.000Z | MrGimmick/BaseEnemySound.cpp | CodingC1402/SpaghettiEngine | 80fddf7c68ae7476a5880aae8fd0eac5bbf6ad1a | [
"MIT"
] | 2 | 2021-04-25T02:08:42.000Z | 2021-04-29T04:18:34.000Z | #include "BaseEnemySound.h"
#include "FieldNames.h"
REGISTER_FINISH(BaseEnemySound, BaseSoundScript) {}
void BaseEnemySound::OnStart()
{
_health = GET_FIRST_SCRIPT_OF_TYPE(HealthScript);
_health->AddToHealthEvent([&](const int& health, const int& delta) {
this->Play(health, delta);
});
BaseSoundScript::OnS... | 18.585366 | 69 | 0.730971 | CodingC1402 |
479c8c6bdcf1594041d33deddb256f189d88cc6e | 9,743 | cpp | C++ | KeyWords/DX10AsmKeyWords.cpp | GPUOpen-Tools/common-src-ShaderUtils | 545195d74ff0758f74ebf9a8b4c541f9390a1df7 | [
"MIT"
] | 18 | 2017-01-28T14:18:44.000Z | 2020-04-29T00:05:10.000Z | KeyWords/DX10AsmKeyWords.cpp | GPUOpen-Archive/common-src-ShaderUtils | 545195d74ff0758f74ebf9a8b4c541f9390a1df7 | [
"MIT"
] | 1 | 2019-02-09T18:00:53.000Z | 2019-02-09T18:00:53.000Z | KeyWords/DX10AsmKeyWords.cpp | GPUOpen-Tools/common-src-ShaderUtils | 545195d74ff0758f74ebf9a8b4c541f9390a1df7 | [
"MIT"
] | 5 | 2018-04-29T09:46:06.000Z | 2019-11-01T23:11:27.000Z | //=====================================================================
//
// Author: AMD Developer Tools Team
// Graphics Products Group
// Developer Tools
// AMD, Inc.
//
// DX10AsmKeywords.cpp
// File contains <Seth file description here>
//
//============================================... | 39.445344 | 248 | 0.655548 | GPUOpen-Tools |
479db04fb3008cba1e3ec58ea4e97fd851c6c5b7 | 3,044 | cc | C++ | day-10/ten.cc | JoBoCl/advent-of-code-2018 | 536bcd422a8289a8944d847c7806a81a1044442d | [
"MIT"
] | null | null | null | day-10/ten.cc | JoBoCl/advent-of-code-2018 | 536bcd422a8289a8944d847c7806a81a1044442d | [
"MIT"
] | null | null | null | day-10/ten.cc | JoBoCl/advent-of-code-2018 | 536bcd422a8289a8944d847c7806a81a1044442d | [
"MIT"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <regex>
#include <set>
#include <string>
#include <utility>
#include <vector>
using namespace std;
struct Star {
int x;
int y;
int u;
... | 20.993103 | 74 | 0.538436 | JoBoCl |
47a41b1dff642d2d8441b83a3b1f3f79aa7397b4 | 2,990 | cpp | C++ | demo/dataflow/pipeline.cpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 2 | 2018-10-31T08:09:03.000Z | 2021-01-18T19:23:54.000Z | demo/dataflow/pipeline.cpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2020-02-02T11:58:22.000Z | 2020-02-02T11:58:22.000Z | demo/dataflow/pipeline.cpp | DanieleDeSensi/Nornir | 60587824d6b0a6e61b8fc75bdea37c9fc69199c7 | [
"MIT"
] | 1 | 2019-04-13T09:54:49.000Z | 2019-04-13T09:54:49.000Z | /*
* pipeline.cpp
*
* Created on: 04/05/2016
*
* =========================================================================
* Copyright (C) 2015-, Daniele De Sensi (d.desensi.software@gmail.com)
*
* This file is part of nornir.
*
* nornir is free software: you can redistribute it and/or
* modify it under ... | 25.338983 | 79 | 0.563211 | DanieleDeSensi |
47a839414bbddb9f1dfcfcf391b5a446432faaad | 1,420 | hpp | C++ | test_funcs.hpp | wagavulin/ropencv2 | c57b8611ccc241e0953eb04451bb21cc4d589611 | [
"Apache-2.0"
] | null | null | null | test_funcs.hpp | wagavulin/ropencv2 | c57b8611ccc241e0953eb04451bb21cc4d589611 | [
"Apache-2.0"
] | 6 | 2021-05-24T14:29:40.000Z | 2021-07-04T15:31:46.000Z | test_funcs.hpp | wagavulin/ropencv2 | c57b8611ccc241e0953eb04451bb21cc4d589611 | [
"Apache-2.0"
] | null | null | null | #include "opencv2/core.hpp"
namespace cv
{
CV_EXPORTS_W double bindTest1(int a, CV_IN_OUT Point& b, CV_OUT int* c, int d=10, RNG* rng=0, double e=1.2);
CV_EXPORTS_W void bindTest2(int a);
CV_EXPORTS_W int bindTest3(int a);
CV_EXPORTS_W void bindTest4(int a, CV_IN_OUT Point& pt);
CV_EXPORTS_W void bindTest5(int a, CV_... | 44.375 | 108 | 0.814789 | wagavulin |
47aa9aa21f0b3b47d9eea9921357eae0dc2e60cb | 2,578 | hpp | C++ | include/amtrs/.driver/win32-api-gdi_bitmap.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | include/amtrs/.driver/win32-api-gdi_bitmap.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/amtrs/.driver/win32-api-gdi_bitmap.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__os__win32__gdi_bitmap__hpp
#define __libamtrs__os__win32__gdi_bitmap__hpp
#include... | 31.060241 | 104 | 0.70287 | isaponsoft |
47aaad505c523dbf9a61dde609f519c82c5c0414 | 6,339 | cpp | C++ | buffer_stream/buffer_stream_test.cpp | churuxu/codesnippets | 9d01c53a5bd7be29168e3c8bfb27ebacc5164f03 | [
"MIT"
] | 4 | 2018-11-05T03:21:02.000Z | 2021-09-25T15:33:52.000Z | buffer_stream/buffer_stream_test.cpp | churuxu/codesnippets | 9d01c53a5bd7be29168e3c8bfb27ebacc5164f03 | [
"MIT"
] | null | null | null | buffer_stream/buffer_stream_test.cpp | churuxu/codesnippets | 9d01c53a5bd7be29168e3c8bfb27ebacc5164f03 | [
"MIT"
] | 2 | 2021-01-28T08:14:07.000Z | 2021-09-25T15:33:54.000Z | #include "gtest.h"
#include "buffer_stream.h"
//默认模式基本测试
TEST(buffer_stream, test_default){
int len;
void* data;
buffer_stream* s = buffer_stream_create(64);
ASSERT_TRUE(s);
//写入两次,一次读取
buffer_stream_push(s, "hello", 5);
buffer_stream_push(s, "world", 5);
data = buffer_s... | 25.560484 | 65 | 0.589525 | churuxu |
47ace847e2d274e60f2f7f77dbbfabf7e2094d83 | 5,951 | cpp | C++ | buildpng.cpp | iggyvolz/GDD1-Assets | 80449c6860f63460db589727bbc6655537236f73 | [
"MIT"
] | null | null | null | buildpng.cpp | iggyvolz/GDD1-Assets | 80449c6860f63460db589727bbc6655537236f73 | [
"MIT"
] | null | null | null | buildpng.cpp | iggyvolz/GDD1-Assets | 80449c6860f63460db589727bbc6655537236f73 | [
"MIT"
] | null | null | null | #include <png++/png.hpp>
#include "buildpng.h"
#include<cmath>
#include <ft2build.h>
#include<iostream>
using namespace std;
#include FT_FREETYPE_H
bool about(double a, double b, double delta)
{
if(a>b)
{
return (a-b)<delta;
}
return (b-a)<delta;
}
void red(Image& image, png::uint_32 startX, p... | 27.298165 | 99 | 0.524282 | iggyvolz |
47ae79401ad2ce538b80529b0a0e3f1b09e06d1c | 155,326 | cc | C++ | avida/avida-core/source/cpu/cHardwareBCR.cc | FergusonAJ/plastic-evolvability-avida | 441a91f1cafa2a0883f8f3ce09c8894efa963e7c | [
"MIT"
] | 2 | 2021-09-16T14:47:43.000Z | 2021-10-31T04:55:16.000Z | avida/avida-core/source/cpu/cHardwareBCR.cc | FergusonAJ/plastic-evolvability-avida | 441a91f1cafa2a0883f8f3ce09c8894efa963e7c | [
"MIT"
] | null | null | null | avida/avida-core/source/cpu/cHardwareBCR.cc | FergusonAJ/plastic-evolvability-avida | 441a91f1cafa2a0883f8f3ce09c8894efa963e7c | [
"MIT"
] | 2 | 2020-08-19T20:01:14.000Z | 2020-12-21T21:24:12.000Z | /*
* cHardwareBCR.cc
* Avida
*
* Created by David on 11/2/2012 based on cHardwareMBE.cc
* Copyright 1999-2013 Michigan State University. All rights reserved.
*
*
* This file is part of Avida.
*
* Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General P... | 39.144657 | 191 | 0.692466 | FergusonAJ |
47b049c9e4869ebbbd4de24229d857dc7f9d8ba3 | 712 | cpp | C++ | Cpp_primer_5th/code_part7/prog7_12.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_12.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_12.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
/*****?????*****/
struct Sales_data;
istream &read(istream&, Sales_data&)
/*****?????****/
struct Sales_data{
Sales_data() = default;
Sales_data(const string &s): bookNo(s){}
Sales_data(const string &s, unsigned n, double p):
bookNo(s), units_sold(n), ... | 22.25 | 51 | 0.664326 | Links789 |
47ba25b5b6bb5c35f5de6f1d7d57d2d57f51f8eb | 939 | cc | C++ | test_rank.cc | kjwilder/ranker | ff0dd14e29443759e5047d093aa42c83ad9c5f37 | [
"Unlicense"
] | null | null | null | test_rank.cc | kjwilder/ranker | ff0dd14e29443759e5047d093aa42c83ad9c5f37 | [
"Unlicense"
] | null | null | null | test_rank.cc | kjwilder/ranker | ff0dd14e29443759e5047d093aa42c83ad9c5f37 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <string>
#include "./ranker.h"
int main(int argc, char** argv) {
uint num = 10, dump = 1;
string method = "average"; // Can also be "min" or "max" or "default"
if (argc > 1) num = (uint) atol(argv[1]);
if (argc > 2) method = argv[2];
if (argc > 3) dump = (uint... | 24.076923 | 72 | 0.497338 | kjwilder |
47ba365ea94c1d5faa483f784bd17cc4b55b109f | 7,470 | cpp | C++ | inference-engine/tests/functional/inference_engine/transformations/convert_nms_gather_path_to_unsigned_test.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 2,406 | 2020-04-22T15:47:54.000Z | 2022-03-31T10:27:37.000Z | inference-engine/tests/functional/inference_engine/transformations/convert_nms_gather_path_to_unsigned_test.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 4,948 | 2020-04-22T15:12:39.000Z | 2022-03-31T18:45:42.000Z | inference-engine/tests/functional/inference_engine/transformations/convert_nms_gather_path_to_unsigned_test.cpp | monroid/openvino | 8272b3857ef5be0aaa8abbf7bd0d5d5615dc40b6 | [
"Apache-2.0"
] | 991 | 2020-04-23T18:21:09.000Z | 2022-03-31T18:40:57.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include "common_test_utils/ngraph_test_utils.hpp"
#include "ngraph/pass/visualize_tree.hpp"
#include <ngraph/function.hpp>
#include <ngraph/opsets/opset8.hpp>
#include <ngraph/pass/manager.hpp>
#include <tr... | 53.741007 | 140 | 0.680321 | monroid |
47baa49a0ba1970330753567d5245aac574281a8 | 15,796 | cpp | C++ | test/unittest/unittest_nntrainer_modelfile.cpp | Gaminee/nntrainer | 16c816d46d32dba8610f13b480c1ac18b4b0212f | [
"Apache-2.0"
] | null | null | null | test/unittest/unittest_nntrainer_modelfile.cpp | Gaminee/nntrainer | 16c816d46d32dba8610f13b480c1ac18b4b0212f | [
"Apache-2.0"
] | null | null | null | test/unittest/unittest_nntrainer_modelfile.cpp | Gaminee/nntrainer | 16c816d46d32dba8610f13b480c1ac18b4b0212f | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 Jihoon Lee <jhoon.it.lee@samsung.com>
*
* @file unittest_nntrainer_modelfile.cpp
* @date 16 July 2020
* @brief NNTrainer datafile parmeterized tester.
* @see https://github.com/nnstreamer/nntrainer
* @author Jihoon Lee <jhoon.it.lee@samsung.com>
* ... | 37.34279 | 113 | 0.6451 | Gaminee |
47bae4bedba652c46011937b615aac6b912324ac | 2,212 | cpp | C++ | Plugins~/Src/MeshSyncClientBlender/msblenContextState.cpp | Mu-L/MeshSyncDCCPlugins | dccf716d975435e4a897964a6f6789e046119740 | [
"Apache-2.0"
] | 18 | 2020-02-20T02:30:54.000Z | 2020-04-13T01:39:12.000Z | Plugins~/Src/MeshSyncClientBlender/msblenContextState.cpp | Mu-L/MeshSyncDCCPlugins | dccf716d975435e4a897964a6f6789e046119740 | [
"Apache-2.0"
] | 6 | 2020-03-09T01:56:05.000Z | 2020-03-20T21:55:30.000Z | Plugins~/Src/MeshSyncClientBlender/msblenContextState.cpp | Mu-L/MeshSyncDCCPlugins | dccf716d975435e4a897964a6f6789e046119740 | [
"Apache-2.0"
] | 4 | 2020-02-29T15:41:49.000Z | 2020-04-02T06:22:24.000Z | #include "msblenContextState.h"
#include <msblenUtils.h>
using namespace msblenUtils;
void msblenContextState::ObjectRecord::clearState()
{
touched = renamed = false;
dst = nullptr;
}
void msblenContextState::eraseObjectRecords()
{
for (auto i = records.begin(); i != records.end(); /**/) {
if (!i... | 26.333333 | 120 | 0.62613 | Mu-L |
47bb1acf4ff47f8f113f2614ea4efc6c29f40a96 | 720 | cpp | C++ | 1100/10/1117b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1100/10/1117b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1100/10/1117b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <algorithm>
#include <iostream>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(unsigned long long h)
{
std::cout << h << '\n';
}
void solve(std::vector<unsigned>& a, unsig... | 16 | 65 | 0.529167 | actium |
47bd74ead7bb1825623904024bbbe758333dc239 | 9,896 | cpp | C++ | HiroCamSDK/src/main/cpp/dependence/src/libmp4v2/src/mp4util.cpp | shirleyyuqi/UIFySim | 15810480022003f5f84509229ef5acbd47e54172 | [
"Apache-2.0"
] | 1 | 2019-12-25T17:38:30.000Z | 2019-12-25T17:38:30.000Z | HiroCamSDK/src/main/cpp/dependence/src/libmp4v2/src/mp4util.cpp | shirleyyuqi/UIFySim | 15810480022003f5f84509229ef5acbd47e54172 | [
"Apache-2.0"
] | 1 | 2020-03-18T10:20:43.000Z | 2020-03-18T10:20:43.000Z | mp4v2-2.0.0/src/mp4util.cpp | nichesuch/AirOrche | ab048fe01eb85633464ab676ff33e06c7fef1097 | [
"MIT"
] | null | null | null | /*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS... | 28.033994 | 85 | 0.504446 | shirleyyuqi |
47c06b8d3ea9f4cfcee2a13f492820d16fceebdf | 1,527 | hpp | C++ | include/boost/simd/constant/fourthrooteps.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/constant/fourthrooteps.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/constant/fourthrooteps.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2012-2015 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//======================... | 25.032787 | 100 | 0.599214 | yaeldarmon |
47c0c074906c5921573aedfd4429293b5cdba56e | 798 | cpp | C++ | acmicpc/4195.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/4195.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/4195.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
#include <map>
using namespace std;
#define MAX 200001
int root[MAX], num[MAX];
int find(int n)
{
if (n == root[n])
return n;
root[n] = find(root[n]);
return root[n];
}
int uni(int a, int b)
{
int x = find(a);
int y = find(b);
if (x != y) {
root[y] = x;
num[x] += num[y];
num[y] = 1... | 13.3 | 41 | 0.497494 | juseongkr |
47c175b7c4ab7e626ee2c7977a3473a902b69f5b | 43,304 | cxx | C++ | src/Event.cxx | jsiado/CyMiniAna | 8bffd7701bbb2efc1ffbce9d03dd278067bf9c20 | [
"MIT"
] | null | null | null | src/Event.cxx | jsiado/CyMiniAna | 8bffd7701bbb2efc1ffbce9d03dd278067bf9c20 | [
"MIT"
] | 17 | 2018-01-15T01:42:56.000Z | 2018-08-14T21:08:45.000Z | src/Event.cxx | jsiado/CyMiniAna | 8bffd7701bbb2efc1ffbce9d03dd278067bf9c20 | [
"MIT"
] | 3 | 2018-01-30T19:08:30.000Z | 2019-12-09T11:59:45.000Z | /*
Created: --
Last Updated: 13 December 2017
Dan Marley
daniel.edison.marley@cernSPAMNOT.ch
University of Michigan, Ann Arbor, MI 48109
-----
Event class
Contains all the objects (& structs) with event information
Assumes a flat ntuple data structure
*/
#include "Analysis/CyMiniAna/interface/Event.h"
// ... | 36.917306 | 146 | 0.643705 | jsiado |
47c25a172a351618765dc20a09321167ea17f565 | 9,246 | cpp | C++ | dlb_st2110/0.9/dlb_st2110/src/dlb_st2110_hardware.cpp | DolbyLaboratories/pmd_tool | 4c6d27df5f531d488a627f96f489cf213cbf121a | [
"BSD-3-Clause"
] | 11 | 2020-04-05T19:58:40.000Z | 2022-02-04T19:18:12.000Z | dlb_st2110/0.9/dlb_st2110/src/dlb_st2110_hardware.cpp | DolbyLaboratories/pmd_tool | 4c6d27df5f531d488a627f96f489cf213cbf121a | [
"BSD-3-Clause"
] | 1 | 2020-02-25T22:08:30.000Z | 2020-02-25T22:08:30.000Z | dlb_st2110/0.9/dlb_st2110/src/dlb_st2110_hardware.cpp | DolbyLaboratories/pmd_tool | 4c6d27df5f531d488a627f96f489cf213cbf121a | [
"BSD-3-Clause"
] | null | null | null | /************************************************************************
* dlb_st2110
* Copyright (c) 2021, Dolby Laboratories 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:
*
... | 32.442105 | 124 | 0.652498 | DolbyLaboratories |
47c30f2e4a346afa32e383094f6e32de924e1f01 | 5,742 | cpp | C++ | src/Buffer.cpp | twh2898/glpp | b413293b525d885fefd20fedb51988edf1999b70 | [
"MIT"
] | null | null | null | src/Buffer.cpp | twh2898/glpp | b413293b525d885fefd20fedb51988edf1999b70 | [
"MIT"
] | null | null | null | src/Buffer.cpp | twh2898/glpp | b413293b525d885fefd20fedb51988edf1999b70 | [
"MIT"
] | null | null | null | #include "glpp/Buffer.hpp"
namespace glpp {
void Attribute::enable() const {
glVertexAttribPointer(index, size, type, normalized, stride, pointer);
glVertexAttribDivisor(index, divisor);
glEnableVertexAttribArray(index);
}
void Attribute::disable() const {
glDisableVertexAt... | 29.147208 | 88 | 0.547893 | twh2898 |
47c3f83ad828e82b70371511ad1432f7cbc01dcc | 229 | hpp | C++ | apps/smart_switch/messaging_config.hpp | ecrampton1/MspPeripheralmm | ae1f64cc785b9a3b994074e851e68c170aef613f | [
"MIT"
] | null | null | null | apps/smart_switch/messaging_config.hpp | ecrampton1/MspPeripheralmm | ae1f64cc785b9a3b994074e851e68c170aef613f | [
"MIT"
] | 1 | 2021-03-07T14:18:31.000Z | 2021-03-07T14:18:31.000Z | apps/smart_switch/messaging_config.hpp | ecrampton1/MspPeripheralmm | ae1f64cc785b9a3b994074e851e68c170aef613f | [
"MIT"
] | null | null | null | #ifndef MESSAGING_CONFIG_HPP_
#define MESSAGING_CONFIG_HPP_
static constexpr uint8_t NODEID = 12;
#define FOR_ALL_INCOMING_MESSAGES(ACTION) \
ACTION( SwitchQuery ) \
ACTION( SwitchRequest )
#endif //MESSAGING_CONFIG_HPP_
| 16.357143 | 43 | 0.799127 | ecrampton1 |
47c4f41adfef2f62a4ded2a00efa0df1d6622b27 | 4,605 | cpp | C++ | tests/testRoundOverflow.cpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 1 | 2019-05-10T02:50:50.000Z | 2019-05-10T02:50:50.000Z | tests/testRoundOverflow.cpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2020-10-28T03:44:51.000Z | 2021-01-18T19:49:33.000Z | tests/testRoundOverflow.cpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2018-08-31T14:02:47.000Z | 2020-04-17T16:01:54.000Z | //---------------------------------------------------------------------------
//
// Example of redistribution with Boost serialization and 2 Redistributions
// (1 producer and 2 consumers)
//
// Matthieu Dreher
// Argonne National Laboratory
// 9700 S. Cass Ave.
// Argonne, IL 60439
// mdreher@anl.gov
//
//------------... | 32.659574 | 94 | 0.562215 | tpeterka |
47c66700d43402dc38bfb61fad5360d931f13a8e | 2,047 | cc | C++ | cpp/common/logging_test.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | cpp/common/logging_test.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | cpp/common/logging_test.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | //*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Unit tests for the logging stuff.
//
// Modifications:
// Date Name Modification
// ---- ---- ... | 31.984375 | 77 | 0.609184 | nathanawmk |
47c6c005554922431087bdabdb6764600c4d0542 | 3,270 | cpp | C++ | src/BabylonImGui/src/inspector/inspector.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 277 | 2017-05-18T08:27:10.000Z | 2022-03-26T01:31:37.000Z | src/BabylonImGui/src/inspector/inspector.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 77 | 2017-09-03T15:35:02.000Z | 2022-03-28T18:47:20.000Z | src/BabylonImGui/src/inspector/inspector.cpp | sacceus/BabylonCpp | 94669cf7cbe3214ec6e905cbf249fa0c9daf6222 | [
"Apache-2.0"
] | 37 | 2017-03-30T03:36:24.000Z | 2022-01-28T08:28:36.000Z | #include <babylon/inspector/inspector.h>
#include <iomanip>
#include <sstream>
// glad
#include <glad/glad.h>
#define GLFW_INCLUDE_NONE
// GLFW
#include <GLFW/glfw3.h>
#ifdef _WIN32
#undef APIENTRY
#define GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_EXPOSE_NATIVE_WGL
#include <GLFW/glfw3native.h>
#endif
// ImGui
#include... | 23.191489 | 93 | 0.745872 | sacceus |
47c7d15a0ef1098622a38870faeb081adc0ac63e | 6,780 | cc | C++ | federated/session_manager_proxy_test.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | federated/session_manager_proxy_test.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | federated/session_manager_proxy_test.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 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 "federated/session_manager_proxy.h"
#include <memory>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <utility>
#include <ve... | 33.731343 | 80 | 0.725664 | Toromino |
47cf64f750b91e4cf5b82e79ad54c4b1f14cd3ac | 3,947 | cc | C++ | pkg/src/bibliography/reference.cc | saaymeen/bib-parser | e1a5a2db7fa5dfef9b09c032beeeca6129043419 | [
"Unlicense"
] | 1 | 2020-06-12T10:33:56.000Z | 2020-06-12T10:33:56.000Z | pkg/src/bibliography/reference.cc | saaymeen/bib-parser | e1a5a2db7fa5dfef9b09c032beeeca6129043419 | [
"Unlicense"
] | null | null | null | pkg/src/bibliography/reference.cc | saaymeen/bib-parser | e1a5a2db7fa5dfef9b09c032beeeca6129043419 | [
"Unlicense"
] | 2 | 2020-06-12T10:31:41.000Z | 2020-06-12T13:19:08.000Z | #include <string>
#include <unordered_map>
#include <vector>
#include "bib-parser/bibliography/reference.h"
using std::string;
using std::unordered_map;
using std::vector;
using TUCSE::EntryType;
using TUCSE::FieldType;
using TUCSE::Reference;
Reference::Reference(string const &citationKey, EntryType const entryTyp... | 25.62987 | 81 | 0.776032 | saaymeen |
47d20a53ccc40177b08696933123dd87db5c76d9 | 51,908 | cc | C++ | mysql-server/router/tests/component/test_routing_connection.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/tests/component/test_routing_connection.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/tests/component/test_routing_connection.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018, 2020, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain software (including
... | 38.853293 | 80 | 0.678585 | silenc3502 |
47d7d065dbf3721fde1de556c174656dad925aeb | 391 | cpp | C++ | quadoutlet/retriggerablemonostable.cpp | 980f/dro | 571452d480ea6f428c16a016e629dc3722a7fc7d | [
"MIT"
] | null | null | null | quadoutlet/retriggerablemonostable.cpp | 980f/dro | 571452d480ea6f428c16a016e629dc3722a7fc7d | [
"MIT"
] | null | null | null | quadoutlet/retriggerablemonostable.cpp | 980f/dro | 571452d480ea6f428c16a016e629dc3722a7fc7d | [
"MIT"
] | null | null | null | #include "retriggerablemonostable.h"
RetriggerableMonostable::RetriggerableMonostable(const BoolishRef &output, Ticks ticks) :
Q(output),period(ticks){
}
void RetriggerableMonostable::trigger(){
Q = 1;
restart(period);
}
void RetriggerableMonostable::stop(){
Q = 0;
freeze();
systicksRemaining = 0;//prec... | 17.772727 | 89 | 0.7289 | 980f |
c51780512e28374845c1afe517668cfdbb12b6e0 | 3,565 | cpp | C++ | src/runtime/Consistency.cpp | swiftcurrent2018/iris | 7ae5567c8235137e4c10d6bb079f1a13a1c6342d | [
"BSD-3-Clause"
] | null | null | null | src/runtime/Consistency.cpp | swiftcurrent2018/iris | 7ae5567c8235137e4c10d6bb079f1a13a1c6342d | [
"BSD-3-Clause"
] | null | null | null | src/runtime/Consistency.cpp | swiftcurrent2018/iris | 7ae5567c8235137e4c10d6bb079f1a13a1c6342d | [
"BSD-3-Clause"
] | null | null | null | #include "Consistency.h"
#include "Debug.h"
#include "Device.h"
#include "Command.h"
#include "Kernel.h"
#include "Mem.h"
#include "Scheduler.h"
#include "Task.h"
namespace brisbane {
namespace rt {
Consistency::Consistency(Scheduler* scheduler) {
scheduler_ = scheduler;
}
Consistency::~Consistency() {
}
void Con... | 31.548673 | 118 | 0.634222 | swiftcurrent2018 |
c51a1573724e40f8ea13aecbcc47a8ed7cec6052 | 737 | cpp | C++ | AIC/AIC'20 - Level 2 Training Contests/Contest #10/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 2 Training Contests/Contest #10/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 2 Training Contests/Contest #10/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://vjudge.net/contest/436257#problem/B
#include <bits/stdc++.h>
using namespace std;
bool solve(string A, string B) {
if (A == B) {
return true;
}
string X = A, Y = B;
sort(X.begin(), X.end());
sort(Y.begin(), Y.end());
if ((A.size() & 1) || (X != Y)) {
return false;
... | 27.296296 | 85 | 0.497965 | MaGnsio |
c51a70404b06ddc50ef0b305ed28bc0d083e84be | 1,708 | cpp | C++ | ESP01_NowSender/src/esp_now_ext/esp_now_ext.cpp | Pliskin707/ESPNOW_SmartHome | 6d09049fd39a4995e0cb4fb647aa9c260253f7aa | [
"MIT"
] | null | null | null | ESP01_NowSender/src/esp_now_ext/esp_now_ext.cpp | Pliskin707/ESPNOW_SmartHome | 6d09049fd39a4995e0cb4fb647aa9c260253f7aa | [
"MIT"
] | 2 | 2021-12-23T14:48:25.000Z | 2021-12-23T23:49:06.000Z | ESP01_NowSender/src/esp_now_ext/esp_now_ext.cpp | Pliskin707/ESPNOW_SmartHome | 6d09049fd39a4995e0cb4fb647aa9c260253f7aa | [
"MIT"
] | null | null | null | #include "esp_now_ext.hpp"
EspNowExtClass EspNowExt;
static uint8_t _txRetries = 0;
static struct
{
uint8_t txRetriesRemaining;
uint8_t len;
mac dest;
const uint8_t * data;
} _txPackage = {0, 0, {0}, nullptr};
bool EspNowExtClass::begin (const uint8_t txRetries)
{
if (esp_now_init() == 0)
{
... | 29.448276 | 221 | 0.70726 | Pliskin707 |
c51a83a62be319f139825ca299feea89f5fbee2d | 91,003 | cpp | C++ | src/plugins/DreamColor/DreamColorCalib.cpp | SchademanK/Ookala | 9a5112e1d3067d589c150fb9c787ae36801a67dc | [
"MIT"
] | null | null | null | src/plugins/DreamColor/DreamColorCalib.cpp | SchademanK/Ookala | 9a5112e1d3067d589c150fb9c787ae36801a67dc | [
"MIT"
] | null | null | null | src/plugins/DreamColor/DreamColorCalib.cpp | SchademanK/Ookala | 9a5112e1d3067d589c150fb9c787ae36801a67dc | [
"MIT"
] | null | null | null | // --------------------------------------------------------------------------
// $Id: DreamColorCalib.cpp 135 2008-12-19 00:49:58Z omcf $
// --------------------------------------------------------------------------
// Copyright (c) 2008 Hewlett-Packard Development Company, L.P.
//
// Permission is hereby granted, fre... | 35.813853 | 153 | 0.54941 | SchademanK |
c51e70df53ff4ef05d75a898a1bccdcaab7a530b | 585 | cpp | C++ | src/Model/DerivedObjects/Bullet.cpp | Raffson/Space-Invaders | 5c390f0989e7354943c384059ce5d1d63d0a6100 | [
"MIT"
] | 1 | 2020-05-24T02:42:47.000Z | 2020-05-24T02:42:47.000Z | src/Model/DerivedObjects/Bullet.cpp | Raffson/Space-Invaders | 5c390f0989e7354943c384059ce5d1d63d0a6100 | [
"MIT"
] | null | null | null | src/Model/DerivedObjects/Bullet.cpp | Raffson/Space-Invaders | 5c390f0989e7354943c384059ce5d1d63d0a6100 | [
"MIT"
] | null | null | null | /*
* Bullet.cpp
*
* Created on: Nov 21, 2013
* Author: raffson
*/
#include "Bullet.h"
namespace AR {
Bullet::Bullet(const Location& loc, const float& s) : Object(loc, s) { }
Bullet::~Bullet() { }
void Bullet::MoveLeft()
{
//should not be able to move left
}
void Bullet::MoveRight()
{
//should not be ... | 14.268293 | 72 | 0.615385 | Raffson |
c520886c21dbd449c1f42be232463c022b1d0384 | 3,281 | cpp | C++ | src/physics/island.cpp | N500/D3D12Renderer | 7a0d247564800a0e09f02c37e6e26c557723fe3a | [
"MIT"
] | 18 | 2021-01-27T09:50:49.000Z | 2022-03-17T19:03:43.000Z | src/physics/island.cpp | N500/D3D12Renderer | 7a0d247564800a0e09f02c37e6e26c557723fe3a | [
"MIT"
] | 1 | 2021-04-18T10:38:36.000Z | 2021-04-18T10:38:36.000Z | src/physics/island.cpp | N500/D3D12Renderer | 7a0d247564800a0e09f02c37e6e26c557723fe3a | [
"MIT"
] | 2 | 2022-01-09T13:16:09.000Z | 2022-01-12T18:52:31.000Z | #include "pch.h"
#include "island.h"
#include "core/cpu_profiling.h"
void buildIslands(memory_arena& arena, constraint_body_pair* bodyPairs, uint32 numBodyPairs, uint32 numRigidBodies, uint16 dummyRigidBodyIndex, const constraint_offsets& offsets)
{
CPU_PROFILE_BLOCK("Build islands");
uint32 islandCapacity = numBod... | 25.238462 | 178 | 0.706187 | N500 |
c523658548de1ac5bde7283a1cdcabe837a4ba7b | 1,069 | cpp | C++ | hackerrank/algorithms/search/missing-numbers.cpp | maximg/comp-prog | 3d7a3e936becb0bc25b890396fa2950ac072ffb8 | [
"MIT"
] | null | null | null | hackerrank/algorithms/search/missing-numbers.cpp | maximg/comp-prog | 3d7a3e936becb0bc25b890396fa2950ac072ffb8 | [
"MIT"
] | null | null | null | hackerrank/algorithms/search/missing-numbers.cpp | maximg/comp-prog | 3d7a3e936becb0bc25b890396fa2950ac072ffb8 | [
"MIT"
] | null | null | null |
// https://www.hackerrank.com/challenges/missing-numbers/problem
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
vector <int> missingNumbers(vector <int> arr, vector <int> brr) {
vector<int> missing(100);
int bmin{brr[0]};
for (auto x: b... | 21.38 | 65 | 0.525725 | maximg |
c527ea2dc845956f912c85f6b9d7da344ff93f3b | 3,333 | cpp | C++ | src/Graphics.cpp | HerrNamenlos123/BatteryEngine | bef5f1b81baf144176653a928c9e8ac138888b3a | [
"MIT"
] | null | null | null | src/Graphics.cpp | HerrNamenlos123/BatteryEngine | bef5f1b81baf144176653a928c9e8ac138888b3a | [
"MIT"
] | 1 | 2021-10-07T09:59:58.000Z | 2021-10-07T10:06:53.000Z | src/Graphics.cpp | HerrNamenlos123/BatteryEngine | bef5f1b81baf144176653a928c9e8ac138888b3a | [
"MIT"
] | null | null | null |
#include "Battery/pch.h"
#include "Battery/Graphics.h"
// ImGui library
#include "imgui/imgui.h"
#include "imgui/imgui_internal.h"
#include "imgui.h"
#include "imgui_impl_allegro5.h"
namespace Battery {
namespace Graphics {
glm::vec3 __fillcolor = { 255, 255, 255 };
glm::vec3 __strokecolor = { 0, 0, 0 };
dou... | 28.008403 | 110 | 0.69667 | HerrNamenlos123 |
c52aa1f923212c0b4ae0d12329313cd1edf83658 | 1,163 | cpp | C++ | AIC/AIC'20 - Level 2 Training Contests/Contest #3/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | AIC/AIC'20 - Level 2 Training Contests/Contest #3/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | AIC/AIC'20 - Level 2 Training Contests/Contest #3/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | //https://vjudge.net/contest/416541#problem/B
#include <bits/stdc++.h>
using namespace std;
#define F first
#define S second
typedef long long ll;
typedef long double ld;
ll mod = 1e9 + 7;
ll bs (vector<pair<ll, ll>> &v, ll f)
{
ll l = 0, r = v.size () - 1, ans = 0;
while (l <= r)
{
ll mid = l + (... | 21.943396 | 63 | 0.426483 | MaGnsio |
c52de22bc9c35eeee3a86a15ad2c70a26233f2f7 | 516 | cpp | C++ | res/src/PicSeeOne/Tool_Place/PicTool.cpp | jxcjxcjzx/picSeeOne | 171f3a4588d34ffbe3c43f17f5cc906e6eca5b62 | [
"Apache-2.0"
] | null | null | null | res/src/PicSeeOne/Tool_Place/PicTool.cpp | jxcjxcjzx/picSeeOne | 171f3a4588d34ffbe3c43f17f5cc906e6eca5b62 | [
"Apache-2.0"
] | null | null | null | res/src/PicSeeOne/Tool_Place/PicTool.cpp | jxcjxcjzx/picSeeOne | 171f3a4588d34ffbe3c43f17f5cc906e6eca5b62 | [
"Apache-2.0"
] | null | null | null | template <class BeingCounted>
class Counted
{
public:
class TooManyObjects{}; // used to be throwed out
static int objectCount(){return numObjects;}
protected:
Counted();
Counted(const Counted& rhs);
~Counted(){--numObjects;}
private:
static int numObjects;
static const size_t maxObjects;
void init();
};
template<cla... | 17.793103 | 50 | 0.755814 | jxcjxcjzx |
c5346eaff5201f731e266b53b16c2b0dd1d97d8d | 688 | cpp | C++ | src/Pipeline/TimedWorkWrapper_Test.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | 2 | 2021-12-17T17:35:07.000Z | 2022-01-11T12:38:00.000Z | src/Pipeline/TimedWorkWrapper_Test.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | null | null | null | src/Pipeline/TimedWorkWrapper_Test.cpp | rcstilborn/SecMon | f750d9c421dac1c5a795384ff8f7b7a29a0aece9 | [
"MIT"
] | 2 | 2018-01-15T06:10:07.000Z | 2021-07-08T19:40:49.000Z | /*
* TimedWorkWrapper_Test.cpp
*
* Created on: Aug 27, 2017
* Author: Richard
*
* Copyright 2017 Richard Stilborn
* Licensed under the MIT License
*/
#include "TimedWorkWrapper.h"
#include <gtest/gtest.h>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <memory>
void ttw_test_function(cons... | 21.5 | 102 | 0.688953 | rcstilborn |
c534fb6ca70c053d8e069d69de9822e139d0a52d | 4,442 | cpp | C++ | Axis.Capsicum/foundation/computing/GPUManager.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.Capsicum/foundation/computing/GPUManager.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.Capsicum/foundation/computing/GPUManager.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "GPUManager.hpp"
#include <cuda_runtime.h>
#include <cuda.h>
#include <vector>
namespace afc = axis::foundation::computing;
#define ERR_CHECK(x) {cudaError_t errId = x; if (errId != CUDA_SUCCESS) throw errId;}
#define AXIS_MIN_CUDA_COMPUTE_MAJOR_VERSION 2
#define AXIS_MIN_CUDA_COMPUTE_MINOR_VERSION... | 30.634483 | 127 | 0.708915 | renato-yuzup |
c53744556267aefd9647f1eb957ceca53b9cf48b | 13,529 | cpp | C++ | lib/sck/server.cpp | TheMarlboroMan/listener_service | 955b952a9c36d4a1ba3704551a9b1ac1d3dd2fb8 | [
"MIT"
] | null | null | null | lib/sck/server.cpp | TheMarlboroMan/listener_service | 955b952a9c36d4a1ba3704551a9b1ac1d3dd2fb8 | [
"MIT"
] | null | null | null | lib/sck/server.cpp | TheMarlboroMan/listener_service | 955b952a9c36d4a1ba3704551a9b1ac1d3dd2fb8 | [
"MIT"
] | null | null | null | #include <sck/server.h>
#include <sck/exception.h>
#include <lm/sentry.h>
#include <cstring> //Memset.
#include <arpa/inet.h> //inet_ntop.
#include <signal.h> //Memset.
#include <sys/un.h> //Local sockets...
#include <iostream>
/*
struct addrinfo {
int ai_flags; // AI_PASSIVE, AI_CANONNAME, ... | 27.058 | 167 | 0.688151 | TheMarlboroMan |
c53e306b453a4b49d262e15673de0b6d7baca7c2 | 1,589 | hpp | C++ | engine/src/engine/input/InputManager.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | 1 | 2018-08-14T05:45:29.000Z | 2018-08-14T05:45:29.000Z | engine/src/engine/input/InputManager.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | null | null | null | engine/src/engine/input/InputManager.hpp | CaptureTheBanana/CaptureTheBanana | 1398bedc80608e502c87b880c5b57d272236f229 | [
"MIT"
] | null | null | null | // This file is part of CaptureTheBanana++.
//
// Copyright (c) 2018 the CaptureTheBanana++ contributors (see CONTRIBUTORS.md)
// This file is licensed under the MIT license; see LICENSE file in the root of this
// project for details.
#ifndef ENGINE_KEYBOARDMANAGER_HPP
#define ENGINE_KEYBOARDMANAGER_HPP
#include <st... | 24.446154 | 84 | 0.702329 | CaptureTheBanana |
c53ff2426e6f9f7a26a85f6cfc6dda4cac796a33 | 2,690 | hpp | C++ | routing/car_directions.hpp | dbf256/organicmaps | 1b20d277200dd5444443cf10c6b43cbabf59f3d8 | [
"Apache-2.0"
] | 1 | 2022-02-18T17:26:50.000Z | 2022-02-18T17:26:50.000Z | routing/car_directions.hpp | dbf256/organicmaps | 1b20d277200dd5444443cf10c6b43cbabf59f3d8 | [
"Apache-2.0"
] | null | null | null | routing/car_directions.hpp | dbf256/organicmaps | 1b20d277200dd5444443cf10c6b43cbabf59f3d8 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "routing/directions_engine.hpp"
#include "routing_common/num_mwm_id.hpp"
#include <map>
#include <memory>
#include <vector>
namespace routing
{
class CarDirectionsEngine : public DirectionsEngine
{
public:
CarDirectionsEngine(MwmDataSource & dataSource, std::shared_ptr<NumMwmIds> numMwmIds)... | 42.03125 | 108 | 0.715613 | dbf256 |
c543bf36206b1938e768f1f7dd2e8d1c2d5e72cc | 17,816 | cpp | C++ | bwchart/common/sysinfo.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/common/sysinfo.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/common/sysinfo.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | //
#include "stdafx.h"
#include <windows.h>
#include <wincon.h>
#include <stdlib.h>
#include <stdio.h>
#include <io.h>
#include <time.h>
#include "sysinfo.h"
static char MACP[17+1];
static char MAC[12+1];
static int nMACSearched = 0;
static int gnCodingMethod = 0;
static char ipconfig[32]="bwrecorder.dta... | 25.933042 | 106 | 0.584082 | udonyang |
c546ecb9d78c548501323f1c49a45f0ae83a872f | 3,550 | cpp | C++ | MineCloneProject/src/MCP/Renderer/Shader/Shader.cpp | didimojuni/MineClone | 68efadc775c324d64f61094b7bbeb3855d2df901 | [
"Apache-2.0"
] | 3 | 2019-12-07T03:57:55.000Z | 2021-01-26T15:40:19.000Z | MineCloneProject/src/MCP/Renderer/Shader/Shader.cpp | dindii/MineClone | 68efadc775c324d64f61094b7bbeb3855d2df901 | [
"Apache-2.0"
] | null | null | null | MineCloneProject/src/MCP/Renderer/Shader/Shader.cpp | dindii/MineClone | 68efadc775c324d64f61094b7bbeb3855d2df901 | [
"Apache-2.0"
] | null | null | null | #include "mcpch.h"
#include "Shader.h"
#include <glad/glad.h>
#include "MCP/Utils/Logger.h"
#include <fstream>
#include <sstream>
namespace MC
{
Shader::Shader(const std::string& vertexSource, const std::string& fragmentSource)
{
Init(vertexSource, fragmentSource);
}
void Shader::Init(const std::string& verte... | 25.177305 | 106 | 0.729577 | didimojuni |
c5474079ac031b8a30e3f6e686c2ba4e14a8c971 | 415 | hpp | C++ | phantom/include/phantom/inputs/linux_input.hpp | karanvivekbhargava/phantom | 35accd85cbbfd793b9c2988af27b6cf3a8d0c76f | [
"Apache-2.0"
] | null | null | null | phantom/include/phantom/inputs/linux_input.hpp | karanvivekbhargava/phantom | 35accd85cbbfd793b9c2988af27b6cf3a8d0c76f | [
"Apache-2.0"
] | null | null | null | phantom/include/phantom/inputs/linux_input.hpp | karanvivekbhargava/phantom | 35accd85cbbfd793b9c2988af27b6cf3a8d0c76f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "GLFW/glfw3.h"
#include "phantom/application.hpp"
#include "phantom/inputs/input.hpp"
namespace Phantom
{
class LinuxInput : public Input
{
protected:
virtual bool IsKeyPressedImpl(int32_t keycode) override;
virtual bool IsMouseButtonPressedImpl(int32_t button) overr... | 23.055556 | 80 | 0.720482 | karanvivekbhargava |
c5476e04f7ae4d07121f07ea3a27412a9942cac8 | 8,453 | hpp | C++ | src/client/headers/client/sqf/camera.hpp | TheWillard/intercept | 7bd96f4b0cec66f5ef1f3cbef7c4abe35e4f8fda | [
"MIT"
] | 166 | 2016-02-11T09:21:26.000Z | 2022-01-01T10:34:38.000Z | src/client/headers/client/sqf/camera.hpp | TheWillard/intercept | 7bd96f4b0cec66f5ef1f3cbef7c4abe35e4f8fda | [
"MIT"
] | 104 | 2016-02-10T14:34:27.000Z | 2022-03-26T18:03:47.000Z | src/client/headers/client/sqf/camera.hpp | TheWillard/intercept | 7bd96f4b0cec66f5ef1f3cbef7c4abe35e4f8fda | [
"MIT"
] | 85 | 2016-02-11T23:14:23.000Z | 2022-03-18T05:03:09.000Z | /*!
@file
@author Verox (verox.averre@gmail.com)
@author Nou (korewananda@gmail.com)
@author Glowbal (thomasskooi@live.nl)
@author Dedmen (dedmen@dedmen.de)
@brief Camera related Function wrappers.
https://github.com/NouberNou/intercept
*/
#pragma once
#include "shared/client_types.hpp"
using namespace... | 51.230303 | 164 | 0.653969 | TheWillard |
c55010c9b7c513f7fd8ab4e172072e12a9a4f3fd | 7,704 | cpp | C++ | dp/rix/gl/src/SamplerStateGL.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 217 | 2015-01-06T09:26:53.000Z | 2022-03-23T14:03:18.000Z | dp/rix/gl/src/SamplerStateGL.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T12:42:05.000Z | 2017-11-28T16:10:16.000Z | dp/rix/gl/src/SamplerStateGL.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 44 | 2015-01-13T01:19:41.000Z | 2022-02-21T21:35:08.000Z | // Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list o... | 42.098361 | 129 | 0.670042 | asuessenbach |
c5533ca349bab1fc8faf4fe99ac9d68e54830ce6 | 3,444 | cpp | C++ | Src/GeometryShop/AMReX_IFData.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-05-20T13:04:05.000Z | 2021-05-20T13:04:05.000Z | Src/GeometryShop/AMReX_IFData.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/GeometryShop/AMReX_IFData.cpp | malvarado27/Amrex | 8d5c7a37695e7dc899386bfd1f6ac28221984976 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <iostream>
#include <iomanip>
#include "AMReX_NormalDerivative.H"
#include "AMReX_IFData.H"
//leave to default faulse. Moving the coords works better
//but makes for weird convergence tests
bool LocalCoordMoveSwitch::s_turnOffMoveLocalCoords = true;
// empty constructor (dim == 1)
IFData<1>::IFData()
{
}
... | 26.90625 | 128 | 0.692218 | malvarado27 |
c554d4d723a44de8e0d5e7353c212ecf0e6e1f61 | 1,872 | cc | C++ | shell/renderer/printing/print_render_frame_helper_delegate.cc | lingxiao-Zhu/electron | 2d85b1f8f527d55f884904dbfdde50ee66a49830 | [
"MIT"
] | 40 | 2020-05-04T12:34:43.000Z | 2022-02-18T22:59:17.000Z | shell/renderer/printing/print_render_frame_helper_delegate.cc | lingxiao-Zhu/electron | 2d85b1f8f527d55f884904dbfdde50ee66a49830 | [
"MIT"
] | 4 | 2020-07-19T04:26:04.000Z | 2021-05-12T22:25:03.000Z | shell/renderer/printing/print_render_frame_helper_delegate.cc | lingxiao-Zhu/electron | 2d85b1f8f527d55f884904dbfdde50ee66a49830 | [
"MIT"
] | 18 | 2020-06-22T01:04:59.000Z | 2022-01-02T14:01:20.000Z | // Copyright (c) 2018 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/renderer/printing/print_render_frame_helper_delegate.h"
#include "content/public/renderer/render_frame.h"
#include "extensions/buildflags/buildflags.h"
#include "third... | 32.842105 | 80 | 0.748397 | lingxiao-Zhu |
c5557bc89b09fff49b0d2ce31d46af36e4e256e6 | 12,844 | cpp | C++ | test/function/string_functions_test.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 3 | 2018-01-08T01:06:17.000Z | 2019-06-17T23:14:36.000Z | test/function/string_functions_test.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 1 | 2020-04-30T09:54:37.000Z | 2020-04-30T09:54:37.000Z | test/function/string_functions_test.cpp | aaron-tian/peloton | 2406b763b91d9cee2a5d9f4dee01c761b476cef6 | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// string_functions_test.cpp
//
// Identification: test/expression/string_functions_test.cpp
//
// Copyright (c) 2015-2018, Carnegie Mellon University Database Group
//
//===------------------------... | 36.282486 | 80 | 0.645905 | aaron-tian |
c557875997d78542cb0593c52ceed50ff6fef5f2 | 372 | cpp | C++ | BOJ/1699.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | BOJ/1699.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | BOJ/1699.cpp | ReinforceIII/Algorithm | 355f6e19f8deb6a76f82f5283d7c1987acd699a6 | [
"MIT"
] | null | null | null | /* 1699 제곱수의 합 */
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n;
cin>>n;
vector<int> number(n+1);
vector<int> memo(n+1);
for(int i=1; i<=n; i++) {
memo[i] = i;
for(int j=1; j*j<=i; j++) {
if(memo[i] > memo[i-j*j] + 1) memo[i] = memo[i-... | 17.714286 | 64 | 0.510753 | ReinforceIII |
c55fffd11d11540757b91a2786112889d990257e | 2,084 | cpp | C++ | liupeng/src/main/java/liupeng/Ch2_HDFS/liveMedia/H264VideoFileSink.cpp | jayfans3/example | 6982e33d760dd8e4d94de40c81ae733434bf3f1b | [
"BSD-2-Clause"
] | null | null | null | liupeng/src/main/java/liupeng/Ch2_HDFS/liveMedia/H264VideoFileSink.cpp | jayfans3/example | 6982e33d760dd8e4d94de40c81ae733434bf3f1b | [
"BSD-2-Clause"
] | null | null | null | liupeng/src/main/java/liupeng/Ch2_HDFS/liveMedia/H264VideoFileSink.cpp | jayfans3/example | 6982e33d760dd8e4d94de40c81ae733434bf3f1b | [
"BSD-2-Clause"
] | null | null | null |
#include "H264VideoFileSink.hh"
#include "OutputFile.hh"
#include "H264VideoRTPSource.hh"
////////// H264VideoFileSink //////////
H264VideoFileSink::H264VideoFileSink(UsageEnvironment& env, FILE* fid,char const* sPropParameterSetsStr,unsigned bufferSize, char const* perFrameFileNamePrefix)
: FileSink(env, fid, buffe... | 32.061538 | 160 | 0.74904 | jayfans3 |
c561ca10519214a918976548c93ead4cba1cb998 | 5,532 | cpp | C++ | src/main.cpp | LordIdra/orbit | 0830adb984586b7de820fbc00979f5083d3a98b9 | [
"MIT"
] | null | null | null | src/main.cpp | LordIdra/orbit | 0830adb984586b7de820fbc00979f5083d3a98b9 | [
"MIT"
] | null | null | null | src/main.cpp | LordIdra/orbit | 0830adb984586b7de820fbc00979f5083d3a98b9 | [
"MIT"
] | null | null | null | #define _WIN32_WINNT 0x0601
#define SDL_MAIN_HANDLED
#include <iostream>
#include <vector>
#include <windows.h>
#include "Shader.h"
#include "Text.h"
#include "Geometry.h"
#include "WindowInformation.h"
#include "SolarSystem.h"
#include "OrbitPrediction.h"
using std::vector;
/* https://www.pluralsight.com/blo... | 24.370044 | 113 | 0.622379 | LordIdra |
c563dfeda280a9c5ef8c980ece6a94fb77f83bed | 437 | hpp | C++ | client/src/ui/ui_microphone_sensitivity_layout.hpp | Grarak/NXCord | 7ba09804c79cdc74da0d4f4766e6d8a1a8a10279 | [
"MIT"
] | 36 | 2019-12-11T15:46:34.000Z | 2021-12-18T10:14:36.000Z | client/src/ui/ui_microphone_sensitivity_layout.hpp | Grarak/NXCord | 7ba09804c79cdc74da0d4f4766e6d8a1a8a10279 | [
"MIT"
] | 10 | 2020-01-26T11:38:13.000Z | 2020-10-10T22:04:20.000Z | client/src/ui/ui_microphone_sensitivity_layout.hpp | Grarak/NXCord | 7ba09804c79cdc74da0d4f4766e6d8a1a8a10279 | [
"MIT"
] | 7 | 2020-01-23T13:33:40.000Z | 2021-03-23T21:54:08.000Z | #pragma once
#include <common/utils.hpp>
#include "ui_custom_layout.hpp"
using pu::ui::elm::Button;
using pu::ui::elm::Rectangle;
using pu::ui::elm::TextBlock;
class UIMicrophoneSensitivityLayout : public UICustomLayout {
private:
time_t _sensitivity_looked_up = 0;
size_t _current_threshold = 0;
public:
ex... | 20.809524 | 69 | 0.778032 | Grarak |
c565b5546aa51e3ffd187c3712cacec6dda6caa4 | 920 | cpp | C++ | src/utils.cpp | LiamTyler/LTEngine | b1697a63546516debfeb4f32e888484e37cd5e06 | [
"MIT"
] | null | null | null | src/utils.cpp | LiamTyler/LTEngine | b1697a63546516debfeb4f32e888484e37cd5e06 | [
"MIT"
] | null | null | null | src/utils.cpp | LiamTyler/LTEngine | b1697a63546516debfeb4f32e888484e37cd5e06 | [
"MIT"
] | null | null | null | #include "include/utils.h"
#include "include/renderer.h"
#include "include/input.h"
#include "include/resource_manager.h"
Renderer* renderer;
Input* input;
ResourceManager* resourceManager;
void InitEngine() {
// Init SDL2
if (SDL_Init(SDL_INIT_VIDEO) != 0) {
std::cerr << "Failed to init SDL" << std::... | 23 | 82 | 0.686957 | LiamTyler |
c56d6ed2a9310b1fd70492be5826329ec0309abd | 2,284 | cpp | C++ | src/ossimPlanet/ossimPlanetVisitors.cpp | ossimlabs/ossim-planet | ba37375aaab4dcc4b01d55d297c8d1f2b2dbbef8 | [
"MIT"
] | 11 | 2015-12-24T03:25:01.000Z | 2021-01-09T18:22:56.000Z | src/ossimPlanet/ossimPlanetVisitors.cpp | ossimlabs/ossim-planet | ba37375aaab4dcc4b01d55d297c8d1f2b2dbbef8 | [
"MIT"
] | 3 | 2016-01-24T10:30:35.000Z | 2018-03-31T15:07:16.000Z | src/ossimPlanet/ossimPlanetVisitors.cpp | ossimlabs/ossim-planet | ba37375aaab4dcc4b01d55d297c8d1f2b2dbbef8 | [
"MIT"
] | 5 | 2015-12-16T13:10:16.000Z | 2021-11-12T19:23:31.000Z | #include <ossimPlanet/ossimPlanetVisitors.h>
#include <ossimPlanet/ossimPlanetLayer.h>
#include <ossimPlanet/ossimPlanetNode.h>
void ossimPlanetLayerNameIdSearchVisitor::apply(osg::Node& node)
{
ossimPlanetLayer* layer = dynamic_cast<ossimPlanetLayer*>(&node);
ossimPlanetNode* layerNode = dynamic_cast<ossimPlane... | 20.212389 | 70 | 0.528021 | ossimlabs |
c56ddedb6dc095f70df3d91e1b1a86922bcba0fe | 2,252 | hpp | C++ | src/ReteVisualSerialization.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/ReteVisualSerialization.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | src/ReteVisualSerialization.hpp | sempr-tk/sempr-gui | ba96dca6945122a157f61fec9e41f4aa6060e3b2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SEMPR_GUI_RETEVISUALSERIALIZATION_HPP_
#define SEMPR_GUI_RETEVISUALSERIALIZATION_HPP_
#include <cereal/cereal.hpp>
#include <cereal/types/set.hpp>
#include <rete-core/NodeVisitor.hpp>
#include <string>
#include <set>
/*
This file provides a few classes to help with creating and transmitting a
visual... | 24.747253 | 83 | 0.666963 | sempr-tk |
c5706c0899bfe77334fc6b2eedb54176f2304505 | 32,041 | hh | C++ | bayehem/rsem/detonate-1.11/ref-eval/re_help.hh | fmaguire/BayeHem | f4594926e672a7af596716cb40464ccc06567c15 | [
"Apache-2.0"
] | null | null | null | bayehem/rsem/detonate-1.11/ref-eval/re_help.hh | fmaguire/BayeHem | f4594926e672a7af596716cb40464ccc06567c15 | [
"Apache-2.0"
] | null | null | null | bayehem/rsem/detonate-1.11/ref-eval/re_help.hh | fmaguire/BayeHem | f4594926e672a7af596716cb40464ccc06567c15 | [
"Apache-2.0"
] | null | null | null | // This file is autogenerated. Edit the template instead.
std::string get_help_string() { return
" REF-EVAL: A toolkit of reference-based scores for de novo transcriptome\n"
" sequence assembly evaluation\n"
"\n"
"Overview\n"
"\n"
" REF-EVAL computes a number of reference-based scores. These sc... | 44.012363 | 88 | 0.549889 | fmaguire |
c570bfb70284d78d42c5c150e462cd6efd27988e | 24,468 | cpp | C++ | Daniel2.Benchmark/Daniel2.Benchmark.cpp | Cinegy/Cinecoder.Samples | 28a567b52ee599307bf797f6420dbb1e54c918e5 | [
"Apache-2.0"
] | 17 | 2018-04-06T07:51:30.000Z | 2022-03-21T13:38:50.000Z | Daniel2.Benchmark/Daniel2.Benchmark.cpp | Cinegy/Cinecoder.Samples | 28a567b52ee599307bf797f6420dbb1e54c918e5 | [
"Apache-2.0"
] | 9 | 2019-02-22T10:00:03.000Z | 2020-12-11T03:27:46.000Z | Daniel2.Benchmark/Daniel2.Benchmark.cpp | Cinegy/Cinecoder.Samples | 28a567b52ee599307bf797f6420dbb1e54c918e5 | [
"Apache-2.0"
] | 4 | 2018-06-05T12:37:47.000Z | 2020-07-28T08:31:21.000Z | #define _CRT_SECURE_NO_WARNINGS
#ifdef _WIN32
#include <windows.h>
#include <atlbase.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <thread>
#include <chrono>
using namespace std::chrono;
using namespace std::chrono_literals;
#include "cpu_load_meter.h"
#include "../common/cuda_dyn/cuda_dyn_load.h"
#in... | 30.932996 | 166 | 0.65506 | Cinegy |
c57320827df3d63551e6259d6cedb1a413afc4c6 | 71 | cpp | C++ | test/data/pkg_config_use/program.cpp | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 72 | 2015-06-23T02:35:13.000Z | 2021-12-08T01:47:40.000Z | test/data/pkg_config_use/program.cpp | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 139 | 2015-03-01T18:48:17.000Z | 2021-06-18T15:45:14.000Z | test/data/pkg_config_use/program.cpp | thomasrockhu/bfg9000 | 1cd1226eab9bed2fc2ec6acccf7864fdcf2ed31a | [
"BSD-3-Clause"
] | 19 | 2015-12-23T21:24:33.000Z | 2022-01-06T04:04:41.000Z | #include <hello.hpp>
int main() {
hello::say_hello();
return 0;
}
| 10.142857 | 21 | 0.605634 | thomasrockhu |
c57601efe76fd07101ca62475a552334f32818e2 | 1,774 | cpp | C++ | tests/memRdRspFunc/src_pers/PersF2_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/memRdRspFunc/src_pers/PersF2_src.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/memRdRspFunc/src_pers/PersF2_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
#include "PersF2.h"
void CPersF2::PersF2()
{
if (PR1_htValid) {
switch (PR1_htInst) {
case F2_ENTRY:
{
if (ReadMemBusy()) {
HtRetry();
break;
}
S_rslt64 = 0;
ReadMem_func64(PR1_addr, 0x15, 256);
ReadMemPause(F2_RD32);
break;
}
case F2_RD32:
{
if (ReadMemBusy... | 16.735849 | 108 | 0.658399 | TonyBrewer |
c578dba7f0a93edf0400edcf89b7997f87186002 | 4,691 | cpp | C++ | src/core/ATN.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | 3 | 2021-02-23T01:34:28.000Z | 2021-07-19T08:07:10.000Z | src/core/ATN.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | null | null | null | src/core/ATN.cpp | satoshigeyuki/Centaurus | 032ffec87fc8ddb129347974d3478fd1ee5f305a | [
"MIT"
] | null | null | null | #include "ATN.hpp"
namespace Centaurus
{
template<typename TCHAR>
void ATNNode<TCHAR>::parse_literal(Stream& stream)
{
wchar_t leader = stream.get();
wchar_t ch = stream.get();
for (; ch != L'\0' && ch != leader; ch = stream.get())
{
m_literal.push_back(wide_to_target<TCHAR>(ch));
}
... | 20.307359 | 123 | 0.600938 | satoshigeyuki |
c57ba4261852f02d3a759d4c8041348a8c49c2a4 | 390 | cpp | C++ | components/math/vecmath/tests/utility_quat_to_matrix.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/math/vecmath/tests/utility_quat_to_matrix.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/math/vecmath/tests/utility_quat_to_matrix.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "shared.h"
int main ()
{
printf ("Results of utility_quat_to_matrix_test:\n");
quatf q = to_quat (degree (90.0f), vec3f (0, 0, 1));
dump ("q", q);
dump ("to_matrix (q)", to_matrix (q));
mat3f m1;
mat4f m2;
to_matrix (q, m1);
to_matrix (q, m2);
dump ("to_matrix... | 16.956522 | 56 | 0.528205 | untgames |
c58141e88dc23d1837083adc556f132d7fe48867 | 901 | cc | C++ | base/loader/test/gtfs/transfers_test.cc | hockbene/motis | cd6f7b14a4186f4cd6d3082b0af1219b2a59dfb9 | [
"MIT"
] | 60 | 2020-04-27T14:06:11.000Z | 2022-03-22T14:33:01.000Z | base/loader/test/gtfs/transfers_test.cc | CanThoma/motis | d3e7ae3214110f008fedeef6e90a72adf47fc3a3 | [
"MIT"
] | 59 | 2020-04-27T21:12:22.000Z | 2022-03-30T09:28:58.000Z | base/loader/test/gtfs/transfers_test.cc | CanThoma/motis | d3e7ae3214110f008fedeef6e90a72adf47fc3a3 | [
"MIT"
] | 28 | 2020-05-18T15:47:51.000Z | 2022-01-19T17:16:33.000Z | #include "gtest/gtest.h"
#include "motis/loader/gtfs/files.h"
#include "motis/loader/gtfs/transfers.h"
#include "./resources.h"
using namespace utl;
using namespace motis::loader;
using namespace motis::loader::gtfs;
stop_pair t(stop_map const& stops, std::string const& s1,
std::string const& s2) {
re... | 31.068966 | 80 | 0.687014 | hockbene |
c5837d6982872fcc793d1599fc5d9d5acbddd2ef | 27,057 | cpp | C++ | src/stage/batched/host/KokkosKernels_Test_Trsm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/stage/batched/host/KokkosKernels_Test_Trsm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | src/stage/batched/host/KokkosKernels_Test_Trsm.cpp | crtrott/kokkos-kernels | 0dba50f62188eb82da35bb4fe0211c7783300903 | [
"BSD-3-Clause"
] | null | null | null | /// \author Kyungjoo Kim (kyukim@sandia.gov)
#include <iomanip>
#if defined(__KOKKOSKERNELS_INTEL_MKL__)
#include "mkl.h"
#endif
#include "Kokkos_Core.hpp"
#include "impl/Kokkos_Timer.hpp"
#include "KokkosKernels_Vector.hpp"
#include "KokkosKernels_Trsm_Serial_Decl.hpp"
#include "KokkosKernels_Trsm_Serial_Impl.hpp... | 36.076 | 120 | 0.465684 | crtrott |
c58ad934d4ed6e4fb6e24e1d071af8e48ba586bf | 126 | hpp | C++ | motor-control-firmware/src/uavcan/Torque_handler.hpp | greck2908/robot-software | 2e1e8177148a089e8883967375dde7f8ed3d878b | [
"MIT"
] | 40 | 2016-10-04T19:59:22.000Z | 2020-12-25T18:11:35.000Z | motor-control-firmware/src/uavcan/Torque_handler.hpp | greck2908/robot-software | 2e1e8177148a089e8883967375dde7f8ed3d878b | [
"MIT"
] | 209 | 2016-09-21T21:54:28.000Z | 2022-01-26T07:42:37.000Z | motor-control-firmware/src/uavcan/Torque_handler.hpp | greck2908/robot-software | 2e1e8177148a089e8883967375dde7f8ed3d878b | [
"MIT"
] | 21 | 2016-11-07T14:40:16.000Z | 2021-11-02T09:53:37.000Z | #ifndef TORQUE_HANDLER_HPP
#define TORQUE_HANDLER_HPP
#include "uavcan_node.h"
int Torque_handler_start(Node& node);
#endif
| 15.75 | 37 | 0.81746 | greck2908 |
c58fed8c8d5a08b6977399826871e6f95f7cdf70 | 5,719 | cpp | C++ | src_db/random_access_file/RandomAccessFile.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 1 | 2020-10-15T08:24:35.000Z | 2020-10-15T08:24:35.000Z | src_db/random_access_file/RandomAccessFile.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | src_db/random_access_file/RandomAccessFile.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | null | null | null | /*
* RandomAccessFile.cpp
*
* Created on: 2018/04/26
* Author: iizuka
*/
#include "random_access_file/RandomAccessFile.h"
#include "base/UnicodeString.h"
#include "base_io/File.h"
#include "base_io_stream/exceptions.h"
#include "random_access_file/MMapSegments.h"
#include "random_access_file/MMapSegment.... | 24.440171 | 118 | 0.715335 | alinous-core |
c590c230a6c90ad6494de571cb3c2919d9261094 | 2,901 | hpp | C++ | include/picture.hpp | Andrew15-5/walk-game | 550f4adeb4933fd298866cde0dd30dca11559334 | [
"MIT"
] | null | null | null | include/picture.hpp | Andrew15-5/walk-game | 550f4adeb4933fd298866cde0dd30dca11559334 | [
"MIT"
] | null | null | null | include/picture.hpp | Andrew15-5/walk-game | 550f4adeb4933fd298866cde0dd30dca11559334 | [
"MIT"
] | null | null | null | #ifndef PICTURE_HPP
#define PICTURE_HPP
#include "include/texture_functions.hpp"
#include "include/vector2.hpp"
#include "include/vector3.hpp"
#include <IL/il.h>
#include <IL/ilu.h>
class Picture {
GLuint texture_id;
Vector2 size;
Vector3 position;
GLfloat angle;
const std::string texture_path = ... | 28.165049 | 89 | 0.599104 | Andrew15-5 |
c590e975c9615eaa7016c5d2b80dd1a7528eefa5 | 1,254 | cpp | C++ | UnicornRender/source/Loggers.cpp | GrapefruitTechnique/R7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 12 | 2017-02-18T15:17:53.000Z | 2020-02-03T16:20:33.000Z | UnicornRender/source/Loggers.cpp | GrapefruitTechnique/R7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 93 | 2017-02-15T21:05:31.000Z | 2020-08-19T06:46:27.000Z | UnicornRender/source/Loggers.cpp | GrapefruitTechnique/R-7 | 3eaa97ac63bbc1b42e4cabf97d4d12649e36f665 | [
"MIT"
] | 4 | 2015-10-23T11:55:07.000Z | 2016-11-30T10:00:52.000Z | #include <unicorn/Loggers.hpp>
#include <unicorn/utility/InternalLoggers.hpp>
#include <algorithm>
#include <cassert>
namespace unicorn
{
std::array<mule::LoggerPtr, Log::size> g_loggers;
namespace
{
static std::array<char const*, Log::size> s_logger_names = {{
"unicorn"
, "unicorn_profile"
, "unicorn... | 19.904762 | 75 | 0.655502 | GrapefruitTechnique |
c590f4d58677b8f942caa6dbedd7c45ffd3527c0 | 15,483 | cpp | C++ | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.cpp | TetrisAI/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | 7 | 2016-11-28T13:42:44.000Z | 2021-08-05T02:34:11.000Z | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.cpp | PowerOlive/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | null | null | null | StandardTetrisMSVC2005/StandardTetrisMSVC2005/source/CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.cpp | PowerOlive/StandardTetris | b5cbe25541ceb45517472fe7feabea0c81fd55b0 | [
"MIT"
] | 8 | 2015-07-31T02:53:14.000Z | 2020-04-12T04:36:23.000Z | // All contents of this file written by Colin Fahey ( http://colinfahey.com )
// 2007 June 4 ; Visit web site to check for any updates to this file.
#include "CPF.StandardTetris.STStrategyRogerLLimaLaurentBercotSebastienBlondeelOnePiece1996.h"
#include "CPF.StandardTetris.STBoard.h"
#include "CPF.StandardTetris.S... | 24.57619 | 97 | 0.564942 | TetrisAI |
c59528f6199ab531fc6e2039c5b782c1789c25dd | 2,538 | cpp | C++ | src/condor_collector.V6/collector_main.cpp | clalancette/condor-dcloud | 70d1b1896ea0e5cfb4f051c7fb73cf4d12cd9727 | [
"Apache-2.0"
] | 2 | 2018-06-18T23:11:20.000Z | 2021-01-11T06:30:00.000Z | src/condor_collector.V6/collector_main.cpp | clalancette/condor-dcloud | 70d1b1896ea0e5cfb4f051c7fb73cf4d12cd9727 | [
"Apache-2.0"
] | null | null | null | src/condor_collector.V6/collector_main.cpp | clalancette/condor-dcloud | 70d1b1896ea0e5cfb4f051c7fb73cf4d12cd9727 | [
"Apache-2.0"
] | 1 | 2021-08-29T14:03:53.000Z | 2021-08-29T14:03:53.000Z | /***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... | 22.263158 | 75 | 0.576044 | clalancette |
c5984c9becabf026deb1fb70e3e29fa9e35d81d6 | 564 | hpp | C++ | include/io/IOBase.hpp | get9/sipl | ae139f25516aed54f0e04c72288198850f48298a | [
"Apache-2.0"
] | 1 | 2019-10-17T12:05:18.000Z | 2019-10-17T12:05:18.000Z | include/io/IOBase.hpp | get9/sipl | ae139f25516aed54f0e04c72288198850f48298a | [
"Apache-2.0"
] | 1 | 2016-03-03T17:39:54.000Z | 2016-03-05T08:48:17.000Z | include/io/IOBase.hpp | get9/sipl | ae139f25516aed54f0e04c72288198850f48298a | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifndef SIPL_IO_IOBASE_HPP
#define SIPL_IO_IOBASE_HPP
#include <stdexcept>
#include <string>
namespace sipl
{
// Current supported file types
enum class FileType { PGM, PPM, BMP, UNKNOWN };
// From: http://stackoverflow.com/a/8152888
class IOException : public std::exception
{
public:
explicit IOE... | 16.114286 | 70 | 0.703901 | get9 |
c598b41954851370883a4876885e36af02fa6e61 | 2,857 | cc | C++ | src/eic_evgen/reaction_routine.cc | sjdkay/DEMPGen | a357cfcd89978db3323435111cb1e327b191352d | [
"MIT"
] | null | null | null | src/eic_evgen/reaction_routine.cc | sjdkay/DEMPGen | a357cfcd89978db3323435111cb1e327b191352d | [
"MIT"
] | 1 | 2022-03-07T21:30:26.000Z | 2022-03-07T21:30:26.000Z | src/eic_evgen/reaction_routine.cc | sjdkay/DEMPGen | a357cfcd89978db3323435111cb1e327b191352d | [
"MIT"
] | 3 | 2022-03-07T21:19:40.000Z | 2022-03-10T15:37:25.000Z | ///*--------------------------------------------------*/
/// Reaction_routine.cc
///
/// Creator: Wenliang (Bill) Li
/// Date: Mar 12 2020
/// Email: wenliang.billlee@gmail.com
///
/// Comment: Mar 12, 2020: Subroutine Exclusive_Omega_Prodoction is created
/// modeled off the Exclusive_Omega_Prodoction routin... | 28.57 | 105 | 0.547427 | sjdkay |
c59eec8d9e32e294c484a57dbba628de6cab8f2a | 763 | cpp | C++ | src/band_list.cpp | peterus/ESP32_WSPR | 979ba33f855141ac85dbbf7ac3606bdb06301985 | [
"MIT"
] | null | null | null | src/band_list.cpp | peterus/ESP32_WSPR | 979ba33f855141ac85dbbf7ac3606bdb06301985 | [
"MIT"
] | null | null | null | src/band_list.cpp | peterus/ESP32_WSPR | 979ba33f855141ac85dbbf7ac3606bdb06301985 | [
"MIT"
] | null | null | null | #include "band_list.h"
String BandConfig::getName() const {
return _name;
}
BandConfig::BandConfig(String const &name, ConfigBool *enable, ConfigInt *frequency) {
_name = name;
_enable = enable;
_frequency = frequency;
}
bool BandConfig::isEnabled() const {
return _enable->getValue();
}
long BandC... | 20.621622 | 86 | 0.706422 | peterus |
c5a4ccc2bb96d10ddec421b138061ef514cdbe68 | 4,018 | cpp | C++ | OpenSees/SRC/tcl/tkAppInit.cpp | kuanshi/ductile-fracture | ccb350564df54f5c5ec3a079100effe261b46650 | [
"MIT"
] | 8 | 2019-03-05T16:25:10.000Z | 2020-04-17T14:12:03.000Z | SRC/tcl/tkAppInit.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | null | null | null | SRC/tcl/tkAppInit.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | 3 | 2019-09-21T03:11:11.000Z | 2020-01-19T07:29:37.000Z | /*
* tkAppInit.c --
*
* Provides a default version of the Tcl_AppInit procedure for
* use in wish and similar Tk-based applications.
*
* Copyright (c) 1993 The Regents of the University of California.
* Copyright (c) 1994-1997 Sun Microsystems, Inc.
*
* See the file "license.terms" for information on usage an... | 26.609272 | 89 | 0.630164 | kuanshi |