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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eec2bae48f0462bba7ca403aec542caa2c837a6d | 9,479 | cpp | C++ | tests/YGAlignSelfTest.cpp | emilsjolander/yoga | 02a2309b2a8208e652e351cf8a195c17694b1f01 | [
"MIT"
] | null | null | null | tests/YGAlignSelfTest.cpp | emilsjolander/yoga | 02a2309b2a8208e652e351cf8a195c17694b1f01 | [
"MIT"
] | null | null | null | tests/YGAlignSelfTest.cpp | emilsjolander/yoga | 02a2309b2a8208e652e351cf8a195c17694b1f01 | [
"MIT"
] | null | null | null | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @Generated by gentest/gentest.rb from gentest/fixtures/YGAlignSelfTest.html
#include <gtest/gtest.h>
#include <yoga/Yoga.h>
T... | 37.916 | 78 | 0.805992 | emilsjolander |
eec324e25d1f9716216d09e009c391beb70f1f50 | 3,279 | cpp | C++ | src/caffe/layers/cudnn_batch_norm_layer.cpp | madiken/caffe-CUDNN-fork | 6fdbbe9ae7fa0165feb864d122ac92a6a0d0a2f1 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/cudnn_batch_norm_layer.cpp | madiken/caffe-CUDNN-fork | 6fdbbe9ae7fa0165feb864d122ac92a6a0d0a2f1 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/cudnn_batch_norm_layer.cpp | madiken/caffe-CUDNN-fork | 6fdbbe9ae7fa0165feb864d122ac92a6a0d0a2f1 | [
"BSD-2-Clause"
] | null | null | null | #ifdef USE_CUDNN
#include <vector>
#include "caffe/filler.hpp"
#include "caffe/layer.hpp"
#include "caffe/util/im2col.hpp"
#include "caffe/util/math_functions.hpp"
#include "caffe/vision_layers.hpp"
namespace caffe {
template <typename Dtype>
void CuDNNBatchNormLayer<Dtype>::LayerSetUp(
const vector<Blob<Dtype>... | 33.459184 | 78 | 0.681 | madiken |
eec60c3b6bb4f4c06d192c556d259874e31714e6 | 17,049 | cpp | C++ | rgcmidcpp/src/midi/smf.cpp | mdsitton/rhythmChartFormat | 1e53aaff34603bee258582293d11d29e0bf53bde | [
"BSD-2-Clause"
] | 8 | 2017-09-20T20:24:29.000Z | 2019-08-10T22:55:13.000Z | rgcmidcpp/src/midi/smf.cpp | mdsitton/rhythmChartFormat | 1e53aaff34603bee258582293d11d29e0bf53bde | [
"BSD-2-Clause"
] | null | null | null | rgcmidcpp/src/midi/smf.cpp | mdsitton/rhythmChartFormat | 1e53aaff34603bee258582293d11d29e0bf53bde | [
"BSD-2-Clause"
] | 1 | 2018-08-28T19:28:20.000Z | 2018-08-28T19:28:20.000Z | // Copyright (c) 2015-2017 Matthew Sitton <[email protected]>
// See LICENSE in the RhythmGameChart root for license information.
#include "smf.hpp"
#include <iostream>
#include <cstring>
#include <cmath>
namespace RGCCPP::Midi
{
SmfReader::SmfReader(std::string filename)
:m_smfFile(filename, std::ios_b... | 38.659864 | 141 | 0.557217 | mdsitton |
eec853019dbecfe80a98045780511b34cc572681 | 49,447 | cc | C++ | src/chirpstack_client.cc | chungphb/chirpstack-client | 6a0f80f887776d6270ef821be1ccf99d87aca146 | [
"MIT"
] | 1 | 2022-01-20T02:44:29.000Z | 2022-01-20T02:44:29.000Z | src/chirpstack_client.cc | chungphb/chirpstack-cpp-client | 6a0f80f887776d6270ef821be1ccf99d87aca146 | [
"MIT"
] | null | null | null | src/chirpstack_client.cc | chungphb/chirpstack-cpp-client | 6a0f80f887776d6270ef821be1ccf99d87aca146 | [
"MIT"
] | null | null | null | //
// Created by chungphb on 2/6/21.
//
#include <chirpstack_client/chirpstack_client.h>
#include <utility>
using namespace api;
using namespace grpc;
namespace chirpstack_cpp_client {
chirpstack_client::chirpstack_client(const std::string& server_address, chirpstack_client_config config) {
_channel = CreateCh... | 41.517212 | 161 | 0.745647 | chungphb |
eec9dd2390af11b86e3b6602d5e1f1a80813dcd1 | 8,315 | cpp | C++ | src/NIfValid.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | 2 | 2017-01-04T02:27:10.000Z | 2017-01-22T05:36:41.000Z | src/NIfValid.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | null | null | null | src/NIfValid.cpp | justinmann/sj | 24d0a75723b024f17de6dab9070979a4f1bf1a60 | [
"Apache-2.0"
] | 1 | 2020-06-15T12:17:26.000Z | 2020-06-15T12:17:26.000Z | #include <sjc.h>
bool CIfValidVar::getReturnThis() {
return false;
}
shared_ptr<CType> CIfValidVar::getType(Compiler* compiler) {
if (ifVar && elseVar) {
return ifVar->getType(compiler);
}
return compiler->typeVoid;
}
void CIfValidVar::transpile(Compiler* compiler, TrOutput* trOutput, T... | 37.968037 | 194 | 0.638364 | justinmann |
eed0022b11768f6e55a13ec9bb78d4c45a30cee6 | 19,556 | cpp | C++ | test/json_printer_stream_test.cpp | gsbecerrag/cppagent | f64b1906be32b43656b905e1f5d17c4e7ccbf094 | [
"Apache-2.0"
] | null | null | null | test/json_printer_stream_test.cpp | gsbecerrag/cppagent | f64b1906be32b43656b905e1f5d17c4e7ccbf094 | [
"Apache-2.0"
] | null | null | null | test/json_printer_stream_test.cpp | gsbecerrag/cppagent | f64b1906be32b43656b905e1f5d17c4e7ccbf094 | [
"Apache-2.0"
] | null | null | null | //
// Copyright Copyright 2009-2019, AMT – The Association For Manufacturing Technology (“AMT”)
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 41.344609 | 100 | 0.724637 | gsbecerrag |
eed47df01d02a26282fc50caeb87e17cb9d2c418 | 1,080 | cpp | C++ | app/src/timer.cpp | yohrudkov/Uamp | 4ec479156767907b5ae4c35716c1bea0897461cc | [
"MIT"
] | null | null | null | app/src/timer.cpp | yohrudkov/Uamp | 4ec479156767907b5ae4c35716c1bea0897461cc | [
"MIT"
] | null | null | null | app/src/timer.cpp | yohrudkov/Uamp | 4ec479156767907b5ae4c35716c1bea0897461cc | [
"MIT"
] | null | null | null | #include "timer.h"
#include "ui_timer.h"
#include "mainwindow.h"
Timer::Timer(QWidget *parent) : QDialog(parent), ui(new Ui::Timer) {
ui->setupUi(this);
m_count = new QTimer(this);
m_count->setInterval(60000);
ui->Time->setAttribute(Qt::WA_MacShowFocusRect, 0);
connect(m_count, &QTimer::timeout, [t... | 26.341463 | 68 | 0.561111 | yohrudkov |
eed7914c708cfaeaf85f381439b09d47cab05242 | 128 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/MatrixBase_isZero.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/MatrixBase_isZero.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/MatrixBase_isZero.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:f7a925aa9d7164224342edf4003f9b299e76ea9cc9f40ba9ef2440665f648ae3
size 215
| 32 | 75 | 0.882813 | initialz |
4abcd527fecef56501d75df85e2698c148bd3712 | 3,852 | cpp | C++ | tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp | pfultz2/extra-cmake-modules | 42cbdc856588ac4adc79f28c3c91123aa5a7a307 | [
"BSD-3-Clause"
] | null | null | null | tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp | pfultz2/extra-cmake-modules | 42cbdc856588ac4adc79f28c3c91123aa5a7a307 | [
"BSD-3-Clause"
] | null | null | null | tests/ECMQtDeclareLoggingCategoryTest/testmain.cpp | pfultz2/extra-cmake-modules | 42cbdc856588ac4adc79f28c3c91123aa5a7a307 | [
"BSD-3-Clause"
] | null | null | null | /*
* 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 copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binar... | 35.33945 | 100 | 0.65784 | pfultz2 |
4ac41fce61fc7bfdcd9a080a0c89b65b0b6803c7 | 1,943 | hpp | C++ | mlog/reference_counter.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | 2 | 2021-06-19T04:14:14.000Z | 2021-08-30T15:39:49.000Z | mlog/reference_counter.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | 1 | 2021-06-21T15:58:19.000Z | 2021-06-22T02:04:39.000Z | mlog/reference_counter.hpp | Lowdham/mlog | 034134ec2048fb78084f4772275b5f67efeec433 | [
"MIT"
] | null | null | null | // This file is part of mlog.
#ifndef MLOG_REFERENCE_COUNTER_HPP_
#define MLOG_REFERENCE_COUNTER_HPP_
#include <atomic> // std::atomic<>
#include <exception> // std::terminate()
#include "assert.hpp"
#include "fwd.hpp"
namespace mlog {
template <typename ValueT = long>
class ReferenceCounter;
template <typena... | 24.2875 | 76 | 0.678332 | Lowdham |
4acb231bbc01af0ebcc6259b488d1ae469c25748 | 1,933 | cpp | C++ | imgui_markup/src/objects/panel.cpp | FluxxCode/imgui_layer | 0b0b73b132160d483259d88c9b024fdb2e1d3e63 | [
"MIT"
] | null | null | null | imgui_markup/src/objects/panel.cpp | FluxxCode/imgui_layer | 0b0b73b132160d483259d88c9b024fdb2e1d3e63 | [
"MIT"
] | null | null | null | imgui_markup/src/objects/panel.cpp | FluxxCode/imgui_layer | 0b0b73b132160d483259d88c9b024fdb2e1d3e63 | [
"MIT"
] | null | null | null | #include "impch.h"
#include "imgui_markup/objects/panel.h"
namespace imgui_markup
{
Panel::Panel(std::string id, Object* parent)
: Object("Panel", id, parent)
{
this->AddAttribute("title", &this->title_);
this->AddAttribute("position", &this->global_position_);
this->AddAttribute("size", &this->size_)... | 22.476744 | 78 | 0.630109 | FluxxCode |
4acedb3a7c286f671ca14090aed2c0c14d44b05b | 20,208 | cpp | C++ | source/Lib/TLibDecoder/TDecGop.cpp | AjayKumarSahu20/SHVC_2 | 2ce6fe131ab12eadf8d51b3408081529b5ad9366 | [
"BSD-3-Clause"
] | 2 | 2019-12-25T07:41:29.000Z | 2021-11-25T11:50:12.000Z | source/Lib/TLibDecoder/TDecGop.cpp | AjayKumarSahu20/SHVC_2 | 2ce6fe131ab12eadf8d51b3408081529b5ad9366 | [
"BSD-3-Clause"
] | null | null | null | source/Lib/TLibDecoder/TDecGop.cpp | AjayKumarSahu20/SHVC_2 | 2ce6fe131ab12eadf8d51b3408081529b5ad9366 | [
"BSD-3-Clause"
] | null | null | null | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2014, ITU/ISO/IEC
* All rights reser... | 38.345351 | 197 | 0.627771 | AjayKumarSahu20 |
4ad45318918416fe8d6e9b0f6e03f7fae5c120dc | 151 | cc | C++ | UnitTests/LoopHelixBFieldTest_unit.cc | brownd1978/KinKal | e7bf9dc4d793e9f089c30ae9defb4add8bf1657b | [
"Apache-1.1"
] | null | null | null | UnitTests/LoopHelixBFieldTest_unit.cc | brownd1978/KinKal | e7bf9dc4d793e9f089c30ae9defb4add8bf1657b | [
"Apache-1.1"
] | null | null | null | UnitTests/LoopHelixBFieldTest_unit.cc | brownd1978/KinKal | e7bf9dc4d793e9f089c30ae9defb4add8bf1657b | [
"Apache-1.1"
] | null | null | null | #include "KinKal/LoopHelix.hh"
#include "UnitTests/BFieldMapTest.hh"
int main(int argc, char **argv) {
return BFieldMapTest<LoopHelix>(argc,argv);
}
| 25.166667 | 45 | 0.748344 | brownd1978 |
4ad576b8bc66773e1114ebac32ae19b8e18ee3d7 | 1,667 | hpp | C++ | include/toy/math/Vector4.hpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | include/toy/math/Vector4.hpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | null | null | null | include/toy/math/Vector4.hpp | ToyAuthor/ToyBoxNote | accc792f5ab2fa8911dc1a70ffbfc6dfd02db9a6 | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z |
#pragma once
#include "toy/math/General.hpp"
namespace toy{
namespace math{
template <typename Type>
class Vector4
{
public:
union
{
struct
{
Type x,y,z,w;
};
Type data[4];
};
Vector4():x(Type(0)),y(Type(0)),z(Type(0)),w(Type(0)){}
Vector4(const Type xx,const Type yy,const Type z... | 14.752212 | 92 | 0.460708 | ToyAuthor |
4ad95451b82cd4bc441327ee4c8e9bfc376b8596 | 6,005 | cpp | C++ | manager/src/app_profile_frame.cpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 492 | 2019-02-14T16:10:55.000Z | 2022-03-31T00:01:27.000Z | manager/src/app_profile_frame.cpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 51 | 2019-02-14T17:31:08.000Z | 2022-03-24T00:10:09.000Z | manager/src/app_profile_frame.cpp | lunixoid/sys-clk | 731d0de5f580a7fa853804e0c776ba2f1623c932 | [
"Beerware"
] | 75 | 2019-02-14T17:46:32.000Z | 2022-03-28T07:19:25.000Z | /*
sys-clk manager, a sys-clk frontend homebrew
Copyright (C) 2019 natinusala
Copyright (C) 2019 p-sam
Copyright (C) 2019 m4xw
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Found... | 35.958084 | 162 | 0.675271 | lunixoid |
4ad9ce4c75b84db5a099b4379c339793d290d8b1 | 542 | cpp | C++ | tests/ClassFactoryTestInterface.cpp | duhone/core | 16b1880a79ce53f8e132a9d576d5c0b64788d865 | [
"MIT"
] | null | null | null | tests/ClassFactoryTestInterface.cpp | duhone/core | 16b1880a79ce53f8e132a9d576d5c0b64788d865 | [
"MIT"
] | null | null | null | tests/ClassFactoryTestInterface.cpp | duhone/core | 16b1880a79ce53f8e132a9d576d5c0b64788d865 | [
"MIT"
] | null | null | null | #include "ClassFactoryTestInterface.h"
#include "core/ClassFactory.h"
using namespace CR::Core;
using namespace std;
auto& GetInstance() {
static ClassFactory<unique_ptr<TestInterface>, TestClasses, int> instance;
return instance;
}
bool RegisterCreator(TestClasses classType, function<unique_ptr<TestInterface>(in... | 27.1 | 95 | 0.787823 | duhone |
4adc3f1e3030018504a4cad9666c434b403d91d3 | 3,013 | cpp | C++ | Uva-OnlineJudge/ACMContestAndBlackout.cpp | Maqui-LP/resolucion-de-problemas | e3c81e0f1230bf609fe2ee30f978265a9a97465c | [
"MIT"
] | null | null | null | Uva-OnlineJudge/ACMContestAndBlackout.cpp | Maqui-LP/resolucion-de-problemas | e3c81e0f1230bf609fe2ee30f978265a9a97465c | [
"MIT"
] | null | null | null | Uva-OnlineJudge/ACMContestAndBlackout.cpp | Maqui-LP/resolucion-de-problemas | e3c81e0f1230bf609fe2ee30f978265a9a97465c | [
"MIT"
] | null | null | null | /*
* name: ACM Contest And Blackout
* link: https://vjudge.net/problem/UVA-10600
* status: Wrong Answer
* date: 15/11/2020
*/
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <algorithm>
using namespace std;
const int INF = 1 << 30;
struct UFDS {
vector<int> p, rank; //también p... | 22.825758 | 87 | 0.538666 | Maqui-LP |
4adce75d5329154c2834c66a217d6df01afb2170 | 753 | cpp | C++ | solutions/29.divide-two-integers.377323112.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/29.divide-two-integers.377323112.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/29.divide-two-integers.377323112.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int divide(int dividend, int divisor) {
if (dividend == -2147483648 && divisor == -1)
return 2147483647;
int lol = (divisor < 0);
divisor = abs(divisor);
lol ^= (dividend < 0);
dividend = abs(dividend);
int lol2 = 1;
if (lol)
lol2 = -1;
vector<long... | 23.53125 | 49 | 0.501992 | satu0king |
4adf65195fe875e638756800ed672043045ce38c | 931 | hpp | C++ | old_projects/SuspendedPlotterIoT/UploadHandler.hpp | renato-grottesi/microbit | 728df27704211397b27a098445e68f8de52e8e4e | [
"Apache-2.0"
] | 3 | 2018-10-26T09:32:57.000Z | 2018-11-04T18:15:03.000Z | old_projects/SuspendedPlotterIoT/UploadHandler.hpp | renato-grottesi/microbit | 728df27704211397b27a098445e68f8de52e8e4e | [
"Apache-2.0"
] | null | null | null | old_projects/SuspendedPlotterIoT/UploadHandler.hpp | renato-grottesi/microbit | 728df27704211397b27a098445e68f8de52e8e4e | [
"Apache-2.0"
] | null | null | null | #ifndef UPLOAD_HANDLER_H
#define UPLOAD_HANDLER_H
#include "HTTPRequestHandler.h"
#include "SuspendedPlotter.h"
class UploadHandler : public HTTPRequestHandler
{
public:
UploadHandler(const char* rootPath, const char* path, TCPSocket* pTcpSocket);
virtual ~UploadHandler();
static inline HTTPReque... | 25.861111 | 105 | 0.692803 | renato-grottesi |
4ae0370dbe3021ef55b83f3070b77d7df0637ce5 | 4,470 | cpp | C++ | src/MentalPitchShift.cpp | miRackModular/Strums_Mental_VCV_Modules | 1660a55bfc1c2df098bcf028713e1f7ffbe110ab | [
"BSD-3-Clause"
] | 76 | 2017-10-13T10:39:48.000Z | 2021-12-20T14:15:45.000Z | src/MentalPitchShift.cpp | miRackModular/Strums_Mental_VCV_Modules | 1660a55bfc1c2df098bcf028713e1f7ffbe110ab | [
"BSD-3-Clause"
] | 54 | 2017-10-13T14:40:07.000Z | 2022-02-01T14:48:46.000Z | src/MentalPitchShift.cpp | miRackModular/Strums_Mental_VCV_Modules | 1660a55bfc1c2df098bcf028713e1f7ffbe110ab | [
"BSD-3-Clause"
] | 27 | 2017-10-21T15:45:12.000Z | 2021-01-15T12:27:51.000Z | ///////////////////////////////////////////////////
//
// Mental Plugin
// Pitch Shifter - shift pitch by octaves or semitones
//
// Strum 2017-19
// [email protected]
//
///////////////////////////////////////////////////
#include "mental.hpp"
//////////////////////////////////////////////////////
struct M... | 41.775701 | 187 | 0.707606 | miRackModular |
4ae062c357f69cb35ddcc76a3cca5261a114e2f5 | 2,049 | cpp | C++ | Examples/CPP/WorkingWithProjects/ImportingAndExporting/ImportDataFromMPXFileFormats.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2022-03-16T14:31:36.000Z | 2022-03-16T14:31:36.000Z | Examples/CPP/WorkingWithProjects/ImportingAndExporting/ImportDataFromMPXFileFormats.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | null | null | null | Examples/CPP/WorkingWithProjects/ImportingAndExporting/ImportDataFromMPXFileFormats.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2020-07-01T01:26:17.000Z | 2020-07-01T01:26:17.000Z | /*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Tasks for .NET API reference
when the project is build. Please check https:// Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Tasks for .NET API from https://www.n... | 37.254545 | 164 | 0.781357 | aspose-tasks |
4ae0befef910ae6f16a4f0ce916bca5d5c30bfb0 | 1,017 | cpp | C++ | Src/MapEditor/lightedit.cpp | vox-1/MapEditor | f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e | [
"MIT"
] | 23 | 2018-12-02T01:08:39.000Z | 2022-03-19T02:28:56.000Z | Src/MapEditor/lightedit.cpp | vox-1/MapEditor | f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e | [
"MIT"
] | null | null | null | Src/MapEditor/lightedit.cpp | vox-1/MapEditor | f1b8a3df64c91e9c3aef7ee21e997f4f1163fa0e | [
"MIT"
] | 15 | 2018-12-07T06:33:55.000Z | 2022-03-26T13:27:25.000Z |
#include "stdafx.h"
#include "lightedit.h"
using namespace graphic;
cLightEdit::cLightEdit()
: m_showLightDir(true)
, m_openLightEdit(false)
{
}
cLightEdit::~cLightEdit()
{
}
bool cLightEdit::Init(graphic::cRenderer &renderer)
{
m_lightDir = GetMainLight().m_direction;
return true;
}
void cLightEdit::Rende... | 19.941176 | 68 | 0.702065 | vox-1 |
4ae281caf0afe4adb10a5aba5ad5b9af692c6b8e | 1,633 | cpp | C++ | src/interprocess/basic_publisher/publisher.cpp | ashish-boss/goby3-examples | 686b290bf84a10f02ba169a8f1363dba43c9ed95 | [
"MIT"
] | 3 | 2017-08-03T19:00:29.000Z | 2019-12-15T04:47:26.000Z | src/interprocess/basic_publisher/publisher.cpp | ashish-boss/goby3-examples | 686b290bf84a10f02ba169a8f1363dba43c9ed95 | [
"MIT"
] | 3 | 2020-05-14T15:49:57.000Z | 2021-04-15T19:02:07.000Z | src/interprocess/basic_publisher/publisher.cpp | ashish-boss/goby3-examples | 686b290bf84a10f02ba169a8f1363dba43c9ed95 | [
"MIT"
] | 2 | 2020-04-27T20:12:17.000Z | 2021-08-17T01:58:56.000Z | #include <goby/middleware/marshalling/protobuf.h> // provides serializer / parser for Google Protocol Buffers
#include <goby/zeromq/application/single_thread.h> // provides SingleThreadApplication
#include "messages/groups.h" // defines publish/subscribe groups
#include "messages/nav.pb.h" // Protobuf, defines Naviga... | 39.829268 | 109 | 0.699939 | ashish-boss |
4ae4332272da3f90a2734c73e6e5212de96ef9ce | 420 | cpp | C++ | sources/GameEngine/getColor.cpp | gillioa/Bomberman | 5e21c317a4b3d00533acdddb99b98c08b102fe45 | [
"MIT"
] | null | null | null | sources/GameEngine/getColor.cpp | gillioa/Bomberman | 5e21c317a4b3d00533acdddb99b98c08b102fe45 | [
"MIT"
] | null | null | null | sources/GameEngine/getColor.cpp | gillioa/Bomberman | 5e21c317a4b3d00533acdddb99b98c08b102fe45 | [
"MIT"
] | null | null | null |
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
glm::vec4 getColor(unsigned int num, unsigned int total) {
unsigned int ec1 = 2 * (total / (num + 1) + 1 + (total % (num + 1)) * 55) % 0xFF;
unsigned int ec2 = 3 * (ec1 + total % (num + ((num + 1) % 8))) % 0xFF;
unsigned int ec3 = 4 * (ec2 + total /... | 38.181818 | 83 | 0.571429 | gillioa |
4aeb1785c46d095ced534989f8487601767d32dd | 838 | inl | C++ | gle/vao.inl | zacklukem/gle | b643eb9f418df7c80c96abf5521a92589fa17ab3 | [
"MIT"
] | null | null | null | gle/vao.inl | zacklukem/gle | b643eb9f418df7c80c96abf5521a92589fa17ab3 | [
"MIT"
] | null | null | null | gle/vao.inl | zacklukem/gle | b643eb9f418df7c80c96abf5521a92589fa17ab3 | [
"MIT"
] | null | null | null | GLE_NAMESPACE_BEGIN
inline VAO::VAO() : handle(0) {}
inline VAO::~VAO() {
if (handle) glDeleteVertexArrays(1, &handle);
}
inline void VAO::init() { glGenVertexArrays(1, &handle); }
inline void VAO::bind() const { glBindVertexArray(handle); }
template <class T>
inline void VAO::attr(GLuint index, const VBO<T> &vbo)... | 24.647059 | 79 | 0.649165 | zacklukem |
4afc58bd3678ce6f61cfd0fbc7cedaa91bbc8af6 | 2,481 | cxx | C++ | event/cyan/event.cxx | sayan-chaliha/cyan | 4e653d08ecfec0f2b4c6c077359f5a66787197a4 | [
"MIT"
] | 3 | 2021-10-30T14:59:38.000Z | 2022-02-21T03:17:48.000Z | event/cyan/event.cxx | sayan-chaliha/cyan | 4e653d08ecfec0f2b4c6c077359f5a66787197a4 | [
"MIT"
] | null | null | null | event/cyan/event.cxx | sayan-chaliha/cyan | 4e653d08ecfec0f2b4c6c077359f5a66787197a4 | [
"MIT"
] | null | null | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2020, Sayan Chaliha
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to u... | 29.891566 | 81 | 0.742846 | sayan-chaliha |
ab101573c1620ad335809ee1c7f27afdeab4d3d8 | 596 | cpp | C++ | Project1/Collision.cpp | RyunosukeKawakami/SlimeHunter | bf9c496fefc59bb68756249400ac9cba253597be | [
"IJG",
"Unlicense"
] | null | null | null | Project1/Collision.cpp | RyunosukeKawakami/SlimeHunter | bf9c496fefc59bb68756249400ac9cba253597be | [
"IJG",
"Unlicense"
] | null | null | null | Project1/Collision.cpp | RyunosukeKawakami/SlimeHunter | bf9c496fefc59bb68756249400ac9cba253597be | [
"IJG",
"Unlicense"
] | null | null | null | #include "Collision.h"
Collision::Collision()
{
}
Collision::~Collision()
{
}
bool Collision::Main(Point a, Point b)
{
if (Distance(a,b))
return Temp(a,b);
else
return false;
}
bool Collision::Distance(Point a, Point b)
{
bool x;
bool y;
x = a.x - 32 * 4 < b.x < a.x + 32 * 4;
y = a.y - 32 * 4 < b.y < a.y... | 12.956522 | 42 | 0.545302 | RyunosukeKawakami |
ab1321bb924c0c4163be90d2c196ba4de3f9fa17 | 1,572 | cpp | C++ | src/platform/opengl/graphics_gl_context.cpp | 104-Berlin/usk-graphics | 537dd48aa354b18b68424120a3aa64a246fefaf6 | [
"MIT"
] | null | null | null | src/platform/opengl/graphics_gl_context.cpp | 104-Berlin/usk-graphics | 537dd48aa354b18b68424120a3aa64a246fefaf6 | [
"MIT"
] | null | null | null | src/platform/opengl/graphics_gl_context.cpp | 104-Berlin/usk-graphics | 537dd48aa354b18b68424120a3aa64a246fefaf6 | [
"MIT"
] | null | null | null | #include "graphics_opengl.h"
using namespace GL;
void GLContext::Init(void* initData)
{
if (!initData) { printf("Please provide the GLADloadproc to the OpenGL context init"); return; }
int gladStatus = gladLoadGLLoader((GLADloadproc)initData);
printf("Glad Init Status: %d\n", gladStatus);
printf("%s... | 32.75 | 106 | 0.73028 | 104-Berlin |
ab1b41fc425059e49a59526fcc3ee6e4b776a49b | 28,467 | cxx | C++ | src/libserver/symcache/symcache_impl.cxx | msuslu/rspamd | 95764f816a9e1251a755c6edad339637345cfe28 | [
"Apache-2.0"
] | null | null | null | src/libserver/symcache/symcache_impl.cxx | msuslu/rspamd | 95764f816a9e1251a755c6edad339637345cfe28 | [
"Apache-2.0"
] | null | null | null | src/libserver/symcache/symcache_impl.cxx | msuslu/rspamd | 95764f816a9e1251a755c6edad339637345cfe28 | [
"Apache-2.0"
] | null | null | null | /*-
* Copyright 2022 Vsevolod Stakhov
*
* 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... | 26.779868 | 118 | 0.661503 | msuslu |
ab1dc4e6454038b4ccff155e208246910064f794 | 574 | cpp | C++ | Lab4/Integrals/Integrals/PolynomialThirdDegree.cpp | ladaegorova18/CalculationMethods | 7b1967cbaf0d6d6a8e744e99160f41138d40fe52 | [
"Apache-2.0"
] | 1 | 2021-09-01T20:24:35.000Z | 2021-09-01T20:24:35.000Z | Lab4/Integrals/Integrals/PolynomialThirdDegree.cpp | ladaegorova18/CalculationMethods | 7b1967cbaf0d6d6a8e744e99160f41138d40fe52 | [
"Apache-2.0"
] | null | null | null | Lab4/Integrals/Integrals/PolynomialThirdDegree.cpp | ladaegorova18/CalculationMethods | 7b1967cbaf0d6d6a8e744e99160f41138d40fe52 | [
"Apache-2.0"
] | null | null | null | #include "PolynomialThirdDegree.h"
#include <cmath>
double PolynomialThirdDegree::func(double x)
{
return pow(x, 3) * (-17) + 0.3 * pow(x, 2) - x + 5;
}
double PolynomialThirdDegree::integral(double x)
{
return pow(x, 4) * (-4.25) + pow(x, 3) * 0.1 - pow(x, 2) / 2 + 5 * x;
}
double PolynomialTh... | 21.259259 | 75 | 0.609756 | ladaegorova18 |
ab1e8e2ac93fd1c6f85770db9e0c6fde10217450 | 27,604 | hh | C++ | dune/fem/oseen/modeldefault.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/modeldefault.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | dune/fem/oseen/modeldefault.hh | renemilk/DUNE-FEM-Oseen | 2cc2a1a70f81469f13a2330be285960a13f78fdf | [
"BSD-2-Clause"
] | null | null | null | #ifndef MODELDEFAULT_HH
#define MODELDEFAULT_HH
#include <dune/common/fvector.hh>
#include <dune/fem/function/adaptivefunction/adaptivefunction.hh>
#include <dune/fem/space/dgspace.hh>
#include <dune/fem/oseen/functionspacewrapper.hh>
#include <dune/fem/oseen/boundaryinfo.hh>
#include <dune/fem/oseen/stab_coeff.hh>
... | 45.104575 | 191 | 0.528438 | renemilk |
ab20485e646e88acf9173125f322bcfdf5889021 | 1,228 | cpp | C++ | src/Shaders/SunShader.cpp | jaafersheriff/Clouds | 00de0a33f6e6fe43c3287de5cba9228c70693110 | [
"MIT"
] | 6 | 2019-06-30T20:20:52.000Z | 2022-01-07T06:31:18.000Z | src/Shaders/SunShader.cpp | jaafersheriff/Clouds | 00de0a33f6e6fe43c3287de5cba9228c70693110 | [
"MIT"
] | null | null | null | src/Shaders/SunShader.cpp | jaafersheriff/Clouds | 00de0a33f6e6fe43c3287de5cba9228c70693110 | [
"MIT"
] | 3 | 2020-10-08T16:37:07.000Z | 2022-01-07T06:31:22.000Z | #include "SunShader.hpp"
#include "Sun.hpp"
#include "Camera.hpp"
#include "Library.hpp"
void SunShader::render() {
/* Bind shader */
bind();
/* Bind sun params */
loadVector(getUniform("center"), Sun::position);
loadVector(getUniform("innerColor"), Sun::innerColor);
loadFloat(getUniform("inn... | 27.909091 | 65 | 0.614821 | jaafersheriff |
ab21554e50c831173b7ce7242a133a06b6c51146 | 2,438 | cpp | C++ | Sample/Sample_WebSocketSvr/timer/TimerMgr.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 61 | 2016-10-13T09:24:31.000Z | 2022-03-26T09:59:34.000Z | Sample/Sample_WebSocketSvr/timer/TimerMgr.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 3 | 2018-05-15T10:42:22.000Z | 2021-07-02T01:38:08.000Z | Sample/Sample_WebSocketSvr/timer/TimerMgr.cpp | sherry0319/YTSvrLib | 5dda75aba927c4bf5c6a727592660bfc2619a063 | [
"MIT"
] | 36 | 2016-12-28T04:54:41.000Z | 2021-12-15T06:02:56.000Z | #include "stdafx.h"
#include "TimerMgr.h"
void CTimerMgr::SetEvent()
{
YTSvrLib::CServerApplication::GetInstance()->SetEvent(EAppEvent::eAppTimerMgrOnTimer);
}
CTimerMgr::CTimerMgr(void)
{
m_tNow = time32();
SYSTEMTIME st;
GetLocalTime(&st);
m_nToday = st.wYear * 10000 + st.wMonth * 100 + st.wDay;
m_wCurday = ... | 23.669903 | 204 | 0.669811 | sherry0319 |
ab28d35b02607fcbbed2179e99d9c1e8ed5f9d3a | 3,160 | cpp | C++ | code/utils/xrDXT/tga.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/utils/xrDXT/tga.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/utils/xrDXT/tga.cpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | // file: targasaver.cpp
#include "stdafx.h"
#pragma hdrstop
#include "tga.h"
void tga_save(LPCSTR name, u32 w, u32 h, void* data, BOOL alpha)
{
TGAdesc tga;
tga.data = data;
tga.format = alpha ? IMG_32B : IMG_24B;
tga.height = h;
tga.width = w;
tga.scanlength = w * 4;
int hf = _open(name, ... | 24.6875 | 76 | 0.446835 | Rikoshet-234 |
ab2a947c4fe40048966908ab4adeff4b8919ae28 | 1,370 | cpp | C++ | Implementations/12 - Graphs Hard (4)/12.4 - Tarjan BCC.cpp | wangdongx/USACO | b920acd85e1d1e633333b14b424026a4dfe42234 | [
"MIT"
] | null | null | null | Implementations/12 - Graphs Hard (4)/12.4 - Tarjan BCC.cpp | wangdongx/USACO | b920acd85e1d1e633333b14b424026a4dfe42234 | [
"MIT"
] | null | null | null | Implementations/12 - Graphs Hard (4)/12.4 - Tarjan BCC.cpp | wangdongx/USACO | b920acd85e1d1e633333b14b424026a4dfe42234 | [
"MIT"
] | null | null | null | /**
* Description: computes biconnected components
* Source: GeeksForGeeks (corrected)
* Verification: USACO December 2017, Push a Box
* https://pastebin.com/yUWuzTH8
*/
template<int SZ> struct BCC {
int N;
vpi adj[SZ], ed;
void addEdge(int u, int v) {
adj[u].pb({v,sz(ed)}),
adj[... | 29.148936 | 86 | 0.439416 | wangdongx |
ab2d34a412149658399468c2f7aae2a8c7815f5f | 926 | cpp | C++ | 3641/7910679_AC_16MS_144K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 3641/7910679_AC_16MS_144K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 3641/7910679_AC_16MS_144K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #define _CRT_SECURE_NO_WARNINGS
#include<cstdio>
int powMod(int base,int exp,int mod){
__int64 powRemainder[32],pos=0,remainder=1;
for(int pos=0;exp;pos++){
if(pos==0)
powRemainder[pos]=base%mod;
else
powRemainder[pos]=(powRemainder[pos-1]*powRemainder[pos-1])%mod;
if(exp&1)
remainder=(re... | 21.534884 | 90 | 0.62095 | vandreas19 |
ab2de24b4d3597ccc2b3ed3814f695e7fa7a0315 | 9,051 | cpp | C++ | OpenGL/src/Layers/Implementation/AdvancedLayer.cpp | scooper/OpenGL | 605bc9210013e27df320de8b6bdc10522d09142d | [
"Apache-2.0"
] | null | null | null | OpenGL/src/Layers/Implementation/AdvancedLayer.cpp | scooper/OpenGL | 605bc9210013e27df320de8b6bdc10522d09142d | [
"Apache-2.0"
] | null | null | null | OpenGL/src/Layers/Implementation/AdvancedLayer.cpp | scooper/OpenGL | 605bc9210013e27df320de8b6bdc10522d09142d | [
"Apache-2.0"
] | null | null | null | #include "AdvancedLayer.h"
#include "Util/Logger.h"
#include <string>
#include <imgui.h>
float AdvancedLayer::m_CubeVertices[] = {
// positions // texture coords
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f,
0.5f, -0.5f, -0.5f, 1.0f, 0.0f,
0.5f, 0.5f, -0.5f, 1.0f, 1.0f,
0.5f, 0.5f, -0.5f, 1.0f... | 31.427083 | 131 | 0.644459 | scooper |
ab2f502ac0c07ce17c4542ab792fb032089b2abd | 8,339 | cpp | C++ | src/cache/node/node_manager.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | null | null | null | src/cache/node/node_manager.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 10 | 2018-03-02T13:58:32.000Z | 2020-06-05T11:12:42.000Z | src/cache/node/node_manager.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 3 | 2018-02-26T14:01:43.000Z | 2019-12-09T10:03:17.000Z | /*
* util.cpp
*
* Created on: 03.12.2015
* Author: mika
*/
#include "cache/node/node_manager.h"
#include "cache/node/manager/local_manager.h"
#include "cache/node/manager/remote_manager.h"
#include "cache/node/manager/hybrid_manager.h"
#include "cache/node/puzzle_util.h"
#include "cache/priv/connection.h"
... | 27.796667 | 216 | 0.725507 | EmanuelHerrendorf |
ab33ae2ba1db21e870773b128a0ab5647796cae6 | 3,916 | hpp | C++ | include/Org/BouncyCastle/Crypto/Parameters/ParametersWithID.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Crypto/Parameters/ParametersWithID.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/Org/BouncyCastle/Crypto/Parameters/ParametersWithID.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Completed includes
// Begin f... | 54.388889 | 256 | 0.723698 | Fernthedev |
ab3540c6933bd0de3a05adaa2555f5a21fd6cf53 | 500 | hpp | C++ | TE2502/src/graphics/transfer_queue.hpp | ferthu/TE2502 | de801f886713c0b2ef3ce6aa1e41e3fd9a58483e | [
"MIT"
] | null | null | null | TE2502/src/graphics/transfer_queue.hpp | ferthu/TE2502 | de801f886713c0b2ef3ce6aa1e41e3fd9a58483e | [
"MIT"
] | null | null | null | TE2502/src/graphics/transfer_queue.hpp | ferthu/TE2502 | de801f886713c0b2ef3ce6aa1e41e3fd9a58483e | [
"MIT"
] | null | null | null | #pragma once
#include "queue.hpp"
class VulkanContext;
// Represents a hardware queue used for transfer commands
class TransferQueue : public Queue
{
public:
TransferQueue() {};
TransferQueue(VulkanContext& context, VkCommandPool command_pool, VkQueue queue);
virtual ~TransferQueue();
TransferQueue(TransferQueu... | 19.230769 | 82 | 0.756 | ferthu |
ab38c6989f1e7876b85b36d27381a598adf9c48e | 3,778 | cpp | C++ | spearmint/spearmint.cpp | chopralab/spear | d45ffc907ab1730789413dd04afb347a26f35154 | [
"BSD-3-Clause"
] | 2 | 2019-07-28T07:57:02.000Z | 2019-10-28T13:58:37.000Z | spearmint/spearmint.cpp | chopralab/spear | d45ffc907ab1730789413dd04afb347a26f35154 | [
"BSD-3-Clause"
] | null | null | null | spearmint/spearmint.cpp | chopralab/spear | d45ffc907ab1730789413dd04afb347a26f35154 | [
"BSD-3-Clause"
] | null | null | null | #include <memory>
#include "spearmint.h"
#include "chemfiles/Trajectory.hpp"
#include "spear/Molecule.hpp"
#include "spear/Grid.hpp"
#include "spear/ScoringFunction.hpp"
#include "spear/atomtypes/IDATM.hpp"
#include "spear/scoringfunctions/Bernard12.hpp"
std::unique_ptr<Spear::Molecule> receptor;
std::unique_ptr<S... | 29.515625 | 112 | 0.607729 | chopralab |
ab41678ebf9fc75067453305997eaecf12b40c09 | 2,351 | cpp | C++ | lib/host/wasi_crypto/signature/signature.cpp | sonder-joker/WasmEdge | 3a522b4e242af1870bdd963f631fc8308b53bad7 | [
"Apache-2.0"
] | null | null | null | lib/host/wasi_crypto/signature/signature.cpp | sonder-joker/WasmEdge | 3a522b4e242af1870bdd963f631fc8308b53bad7 | [
"Apache-2.0"
] | null | null | null | lib/host/wasi_crypto/signature/signature.cpp | sonder-joker/WasmEdge | 3a522b4e242af1870bdd963f631fc8308b53bad7 | [
"Apache-2.0"
] | null | null | null | // SPDX-License-Identifier: Apache-2.0
#include "host/wasi_crypto/signature/signature.h"
#include "host/wasi_crypto/signature/ecdsa.h"
#include "host/wasi_crypto/signature/eddsa.h"
#include "host/wasi_crypto/signature/rsa.h"
namespace WasmEdge {
namespace Host {
namespace WASICrypto {
namespace Signatures {
WasiCryp... | 42.745455 | 70 | 0.792003 | sonder-joker |
ab41be26b1679bddb4179f28ff8e34468424d58f | 7,340 | hpp | C++ | libraries/db/include/graphene/db/object_database.hpp | VinChain/VINchain-blockchain | c52ec3bf67c6d4700bbaf5ec903185d31a2d63ec | [
"MIT"
] | 15 | 2018-04-13T18:40:35.000Z | 2021-03-17T00:11:00.000Z | libraries/db/include/graphene/db/object_database.hpp | VinChain/VINchain-blockchain | c52ec3bf67c6d4700bbaf5ec903185d31a2d63ec | [
"MIT"
] | null | null | null | libraries/db/include/graphene/db/object_database.hpp | VinChain/VINchain-blockchain | c52ec3bf67c6d4700bbaf5ec903185d31a2d63ec | [
"MIT"
] | 3 | 2018-05-15T18:38:53.000Z | 2022-01-14T18:36:04.000Z | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the... | 38.229167 | 133 | 0.585014 | VinChain |
ab4ad0701b8784476901667af4898b4831043630 | 2,728 | hpp | C++ | include/gba/util/tiles.hpp | felixjones/gba-hpp | 66c84e2261c9a2d8e678e8cefb4f43f8c1c13cf3 | [
"Zlib"
] | 5 | 2022-03-12T19:16:58.000Z | 2022-03-24T20:35:45.000Z | include/gba/util/tiles.hpp | felixjones/gba-hpp | 66c84e2261c9a2d8e678e8cefb4f43f8c1c13cf3 | [
"Zlib"
] | null | null | null | include/gba/util/tiles.hpp | felixjones/gba-hpp | 66c84e2261c9a2d8e678e8cefb4f43f8c1c13cf3 | [
"Zlib"
] | null | null | null | /*
===============================================================================
Copyright (C) 2022 gba-hpp contributors
For conditions of distribution and use, see copyright notice in LICENSE.md
===============================================================================
*/
#ifndef GBAXX_UTIL_TILES_HPP
#defi... | 28.715789 | 109 | 0.533358 | felixjones |
ab4eb62f71ac3f2af1500cc72b368bf6b982cb62 | 659 | cpp | C++ | samples/dnnMmodFaceLandmarkDetection/src/dnnMmodFaceLandmarkDetectionApp.cpp | kino-dome/Cinder-dlib | 79601367cd6761566911ce6a0ea33b45507359b9 | [
"BSD-2-Clause"
] | 1 | 2019-03-07T09:12:32.000Z | 2019-03-07T09:12:32.000Z | samples/dnnMmodFaceLandmarkDetection/src/dnnMmodFaceLandmarkDetectionApp.cpp | kino-dome/Cinder-dlib | 79601367cd6761566911ce6a0ea33b45507359b9 | [
"BSD-2-Clause"
] | null | null | null | samples/dnnMmodFaceLandmarkDetection/src/dnnMmodFaceLandmarkDetectionApp.cpp | kino-dome/Cinder-dlib | 79601367cd6761566911ce6a0ea33b45507359b9 | [
"BSD-2-Clause"
] | null | null | null | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class dnnMmodFaceLandmarkDetectionApp : public App {
public:
void setup() override;
void mouseDown( MouseEvent event ) override;
void update() override;
void... | 18.828571 | 67 | 0.758725 | kino-dome |
ab503cf1985127b70b5978ccc29657a9d3ccb5a8 | 4,913 | cpp | C++ | SysInfo/CpuModelNumber.cpp | eyalfishler/CrystalCPUID | eb6692e2b563351ecdf7f8f247a4f71dc6456738 | [
"BSD-2-Clause"
] | 19 | 2016-02-19T02:14:16.000Z | 2021-01-25T23:57:13.000Z | SysInfo/CpuModelNumber.cpp | eyalfishler/CrystalCPUID | eb6692e2b563351ecdf7f8f247a4f71dc6456738 | [
"BSD-2-Clause"
] | 1 | 2018-10-26T03:28:23.000Z | 2018-10-27T03:32:03.000Z | SysInfo/CpuModelNumber.cpp | eyalfishler/CrystalCPUID | eb6692e2b563351ecdf7f8f247a4f71dc6456738 | [
"BSD-2-Clause"
] | 10 | 2015-06-01T03:39:34.000Z | 2020-07-19T01:40:04.000Z | /*---------------------------------------------------------------------------*/
// Author : hiyohiyo
// Mail : [email protected]
// Web : http://crystalmark.info/
// License : The modified BSD license
//
// Copyright 2007 hiyohiyo, All rights rese... | 22.536697 | 80 | 0.478526 | eyalfishler |
ab51f1443d5a6f07c13a4eb20e865dac61498b50 | 20,766 | cpp | C++ | qhexview.cpp | xmikula/QHexView | ac74ab5aee8c43b4b0701496b86d8a02c898edf4 | [
"MIT"
] | null | null | null | qhexview.cpp | xmikula/QHexView | ac74ab5aee8c43b4b0701496b86d8a02c898edf4 | [
"MIT"
] | null | null | null | qhexview.cpp | xmikula/QHexView | ac74ab5aee8c43b4b0701496b86d8a02c898edf4 | [
"MIT"
] | null | null | null | #include "qhexview.h"
#include "document/buffer/qmemorybuffer.h"
#include <QApplication>
#include <QDebug>
#include <QFontDatabase>
#include <QHelpEvent>
#include <QPaintEvent>
#include <QPainter>
#include <QScrollBar>
#include <QToolTip>
#include <cmath>
#define CURSOR_BLINK_INTERVAL 500 // ms
#define DOCUMENT_WHEEL_... | 26.022556 | 79 | 0.608446 | xmikula |
ab52169cfe7b90242ba9110652f1da45dfb2c856 | 9,397 | cpp | C++ | core/lib/soci_sqlite3/session.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/lib/soci_sqlite3/session.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/lib/soci_sqlite3/session.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | //
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton, David Courtney
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include "soci-sqlite3.h"
#include <connection-parameters.h>
#include <sstream>
... | 34.547794 | 152 | 0.582952 | RomanWlm |
ab5d5c911c98f1a043baf0cd01c29bd9cd2a0db7 | 185 | cpp | C++ | Sources/functions.cpp | Gabriel-Barbosa-Pereira/vilut | 626ba392297552a15ced328a1f0fd4912b374faf | [
"MIT"
] | null | null | null | Sources/functions.cpp | Gabriel-Barbosa-Pereira/vilut | 626ba392297552a15ced328a1f0fd4912b374faf | [
"MIT"
] | null | null | null | Sources/functions.cpp | Gabriel-Barbosa-Pereira/vilut | 626ba392297552a15ced328a1f0fd4912b374faf | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <cmath>
void net(){
system("ping www.google.com");
}
double pit(double b, double c){
double a;
a = sqrt(pow(b, 2) + pow(c, 2));
return a;
} | 15.416667 | 36 | 0.578378 | Gabriel-Barbosa-Pereira |
ab5dae9226c70ba540d9ab235c33a55b1e031d63 | 2,830 | hpp | C++ | modules/scene_manager/include/lifecycle_msgs/srv/get_available_states__response__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/scene_manager/include/lifecycle_msgs/srv/get_available_states__response__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 3 | 2019-11-14T12:20:06.000Z | 2020-08-07T13:51:10.000Z | modules/scene_manager/include/lifecycle_msgs/srv/get_available_states__response__rosidl_typesupport_opensplice_cpp.hpp | Omnirobotic/godot | d50b5d047bbf6c68fc458c1ad097321ca627185d | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | // generated from
// rosidl_typesupport_opensplice_cpp/resource/msg__rosidl_typesupport_opensplice_cpp.hpp.em
// generated code does not contain a copyright notice
#ifndef LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES__RESPONSE__ROSIDL_TYPESUPPORT_OPENSPLICE_CPP_HPP_
#define LIFECYCLE_MSGS__SRV__GET_AVAILABLE_STATES__RESP... | 30.430108 | 139 | 0.863604 | Omnirobotic |
ab5f1c641901a8ba056bddb959ce47d644460973 | 13,525 | cpp | C++ | src/Plugins/MoviePlugin/Movie2Data.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Plugins/MoviePlugin/Movie2Data.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Plugins/MoviePlugin/Movie2Data.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "Movie2Data.h"
#include "Interface/ResourceServiceInterface.h"
#include "Interface/MaterialEnumInterface.h"
#include "Kernel/Materialable.h"
#include "Kernel/Logger.h"
#include "Kernel/DocumentHelper.h"
#include "Kernel/AssertionMemoryPanic.h"
#include "Kernel/ConstStringHelper.h"
namespace Mengine
{
//... | 38.642857 | 207 | 0.553789 | irov |
ab601c9dfd7974cee110faf31abd8da455ea5cf0 | 176 | hpp | C++ | hiro/cocoa/header.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | hiro/cocoa/header.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | hiro/cocoa/header.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | #include <nall/macos/guard.hpp>
#include <Cocoa/Cocoa.h>
#include <Carbon/Carbon.h>
#include <IOKit/pwr_mgt/IOPMLib.h>
#include <nall/macos/guard.hpp>
#include <nall/run.hpp>
| 22 | 34 | 0.738636 | CasualPokePlayer |
ab615e780f7777cf5c6c44d984acc61e5a9e108c | 977 | cxx | C++ | 1.4 Sortland/main.cxx | SemenMartynov/openedu-itmo-algorithms | 93697a1ac4de2300a9140d8752de7851743c0426 | [
"MIT"
] | null | null | null | 1.4 Sortland/main.cxx | SemenMartynov/openedu-itmo-algorithms | 93697a1ac4de2300a9140d8752de7851743c0426 | [
"MIT"
] | null | null | null | 1.4 Sortland/main.cxx | SemenMartynov/openedu-itmo-algorithms | 93697a1ac4de2300a9140d8752de7851743c0426 | [
"MIT"
] | null | null | null | #include <fstream>
#include <iostream>
#include <algorithm>
#include <vector>
struct citizen_t
{
long id;
double account;
};
int main(int argc, char **argv)
{
std::ifstream fin("input.txt");
std::ofstream fout("output.txt");
size_t citezens_c;
fin >> citezens_c;
std::vector<citizen_t> ci... | 20.787234 | 116 | 0.511771 | SemenMartynov |
ab6283662cdfbfa4d3e34bd586015f639bdc1b2c | 17,722 | cpp | C++ | src/cmfd_solver.cpp | HunterBelanger/openmc | 7f7977091df7552449cff6c3b96a1166e4b43e45 | [
"MIT"
] | 1 | 2020-12-18T16:09:59.000Z | 2020-12-18T16:09:59.000Z | src/cmfd_solver.cpp | HunterBelanger/openmc | 7f7977091df7552449cff6c3b96a1166e4b43e45 | [
"MIT"
] | null | null | null | src/cmfd_solver.cpp | HunterBelanger/openmc | 7f7977091df7552449cff6c3b96a1166e4b43e45 | [
"MIT"
] | null | null | null | #include "openmc/cmfd_solver.h"
#include <vector>
#include <cmath>
#ifdef _OPENMP
#include <omp.h>
#endif
#include "xtensor/xtensor.hpp"
#include "openmc/bank.h"
#include "openmc/error.h"
#include "openmc/constants.h"
#include "openmc/capi.h"
#include "openmc/mesh.h"
#include "openmc/message_passing.h"
#include "ope... | 31.091228 | 84 | 0.548584 | HunterBelanger |
036cbd9d2e99f378768e00e52d456c3fef8c1f6c | 4,073 | hpp | C++ | Libraries/Support/FileSupport.hpp | jodavis42/WelderEngineRevamp | 1b8776c53857e66b2c933321e965bbe12f0df61e | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Code/Foundation/Support/FileSupport.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | Code/Foundation/Support/FileSupport.hpp | WelderUpdates/WelderEngineRevamp | 1c665239566e9c7156926852f7952948d9286d7d | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Zero
{
inline u32 EndianSwap(u32 x)
{
return (x >> 24) | ((x << 8) & 0x00FF0000) | ((x >> 8) & 0x0000FF00) | (x << 24);
}
inline u64 EndianSwap(u64 x)
{
return (x >> 56) | ((x << 40) & 0x00FF000000000000ULL) | ((x << 24) & 0x0000FF0000000000ULL) |
... | 28.886525 | 120 | 0.741959 | jodavis42 |
0370c4933d3ba9c646169dda13548168167fe6ee | 5,104 | cpp | C++ | private/tst/avb_streamhandler/src/IasTestAvbRxStreamClockDomain.cpp | tnishiok/AVBStreamHandler | 7621daf8c9238361e030fe35188b921ee8ea2466 | [
"BSL-1.0",
"BSD-3-Clause"
] | 13 | 2018-09-26T13:32:35.000Z | 2021-05-20T10:01:12.000Z | private/tst/avb_streamhandler/src/IasTestAvbRxStreamClockDomain.cpp | keerockl/AVBStreamHandler | c0c9aa92656ae0acd0f57492d4f325eee2f7d13b | [
"BSD-3-Clause"
] | 23 | 2018-10-03T22:45:21.000Z | 2020-03-05T23:40:12.000Z | private/tst/avb_streamhandler/src/IasTestAvbRxStreamClockDomain.cpp | keerockl/AVBStreamHandler | c0c9aa92656ae0acd0f57492d4f325eee2f7d13b | [
"BSD-3-Clause"
] | 22 | 2018-09-14T03:55:34.000Z | 2021-12-07T01:13:27.000Z | /*
* Copyright (C) 2018 Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
/**
* @file IasTestAvbRxStreamClockDomain.cpp
* @date 2018
* @brief This file contains the unit tests of the IasAvbRxStreamClockDomain class.
*/
#include "gtest/gtest.h"
#define private public
#de... | 29.674419 | 100 | 0.706505 | tnishiok |
03730e9cc9e6dbb959be34cb8bb22cee50224346 | 253 | cpp | C++ | src/cbag/layout/via_wrapper.cpp | ayan-biswas/cbag | 0d08394cf39e90bc3acb4a94fd7b5a6560cf103c | [
"BSD-3-Clause"
] | 1 | 2020-01-07T04:44:17.000Z | 2020-01-07T04:44:17.000Z | src/cbag/layout/via_wrapper.cpp | skyworksinc/cbag | 0d08394cf39e90bc3acb4a94fd7b5a6560cf103c | [
"BSD-3-Clause"
] | null | null | null | src/cbag/layout/via_wrapper.cpp | skyworksinc/cbag | 0d08394cf39e90bc3acb4a94fd7b5a6560cf103c | [
"BSD-3-Clause"
] | 1 | 2020-01-07T04:45:13.000Z | 2020-01-07T04:45:13.000Z | #include <cbag/layout/via_wrapper.h>
namespace cbag {
namespace layout {
via_wrapper::via_wrapper() = default;
via_wrapper::via_wrapper(via &&v, bool add_layers) : v(std::move(v)), add_layers(add_layers) {}
} // namespace layout
} // namespace cbag
| 21.083333 | 95 | 0.72332 | ayan-biswas |
0378476e6f80c8f11254a3fe6ec963be47c226ea | 719 | hpp | C++ | src/scene/BVH.hpp | huang-jl/Graphics-Renderer | 947c145330aeec9fe127c168e9629aeab84e416e | [
"MIT"
] | null | null | null | src/scene/BVH.hpp | huang-jl/Graphics-Renderer | 947c145330aeec9fe127c168e9629aeab84e416e | [
"MIT"
] | null | null | null | src/scene/BVH.hpp | huang-jl/Graphics-Renderer | 947c145330aeec9fe127c168e9629aeab84e416e | [
"MIT"
] | null | null | null | #ifndef BVH_HPP
#define BVH_HPP
#include "AABB.hpp"
#include "Hitable.hpp"
#include "Ray.hpp"
#include <vector>
/*
* 层次包围体BHV:用AABB实现
* 这里认为层次包围盒也是一个Hitable
* 其作用是一个容器,能够高效处理光线和物体是否相交
*/
class BVHNode : public Hitable
{
public:
BVHNode() {}
// BVHNode(Hitable **l, int n, float time0, float time1);
B... | 25.678571 | 100 | 0.698192 | huang-jl |
0378b92d9bbc2a0decd7fa86b24800700a175488 | 3,500 | hpp | C++ | sdl/Util/LogInfo.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Util/LogInfo.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Util/LogInfo.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// 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 in writing,... | 33.653846 | 112 | 0.702857 | sdl-research |
0387f3344dc39e9b5d3d54312b7cacccdef236d1 | 2,970 | cpp | C++ | src/Dengo/Init_MemAllocate_Dengo.cpp | hisunnytang/gamer-fork | 8ca0cd1dd3ffd5bbd04049a4af5bdf63103b0df9 | [
"BSD-3-Clause"
] | null | null | null | src/Dengo/Init_MemAllocate_Dengo.cpp | hisunnytang/gamer-fork | 8ca0cd1dd3ffd5bbd04049a4af5bdf63103b0df9 | [
"BSD-3-Clause"
] | null | null | null | src/Dengo/Init_MemAllocate_Dengo.cpp | hisunnytang/gamer-fork | 8ca0cd1dd3ffd5bbd04049a4af5bdf63103b0df9 | [
"BSD-3-Clause"
] | null | null | null | #include "GAMER.h"
#ifdef SUPPORT_DENGO
// global variables for accessing h_Che_Array[]
// --> also used by Dengo_Prepare.cpp and Dengo_Close.cpp
// --> they are not declared in "Global.h" simply because they are only used by a few Dengo routines
int Che_NField = NULL_INT;
int CheIdx_Dens = Idx_Undefined;
int Che... | 30.618557 | 105 | 0.622896 | hisunnytang |
038b11d5956e807a02dc734015bd8dda3048d7b6 | 3,780 | cpp | C++ | source/styles/conditional_format.cpp | wuganhao/xlnt | 4acfa185c0891e64b044ddac16046baee011bdf5 | [
"Unlicense"
] | null | null | null | source/styles/conditional_format.cpp | wuganhao/xlnt | 4acfa185c0891e64b044ddac16046baee011bdf5 | [
"Unlicense"
] | null | null | null | source/styles/conditional_format.cpp | wuganhao/xlnt | 4acfa185c0891e64b044ddac16046baee011bdf5 | [
"Unlicense"
] | 1 | 2021-11-22T10:07:34.000Z | 2021-11-22T10:07:34.000Z | // Copyright (c) 2014-2021 Thomas Fussell
// Copyright (c) 2010-2015 openpyxl
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the right... | 28.208955 | 80 | 0.73254 | wuganhao |
039044f2605a851c5273020b1f45d670c8279b18 | 3,166 | cpp | C++ | cpp02/ex03/Fixed.cpp | ostef/42-cpp | 59853e5252793e8aef9a7dfe31d2888304146e90 | [
"Unlicense"
] | 1 | 2022-02-16T18:07:02.000Z | 2022-02-16T18:07:02.000Z | cpp02/ex03/Fixed.cpp | ostef/42-cpp | 59853e5252793e8aef9a7dfe31d2888304146e90 | [
"Unlicense"
] | null | null | null | cpp02/ex03/Fixed.cpp | ostef/42-cpp | 59853e5252793e8aef9a7dfe31d2888304146e90 | [
"Unlicense"
] | null | null | null | #include "Fixed.hpp"
#include <iostream>
#include <cmath>
// | integral | fractional |
// 32 ... 8 ... 0
const int Fixed::FRACT_BITS = 8;
Fixed::Fixed () : m_raw (0)
{
std::cout << "Default constructor called... Yay..." << std::endl;
}
Fixed::Fixed (const int i) : m_... | 16.575916 | 74 | 0.618446 | ostef |
0392611ba04118daee7bc62ab7989233c6d5535c | 706 | cpp | C++ | Competitve Programming & Online Problems/Coding-Interview/Chapter 3 - Stacks and Queues/3.5 sort_stack.cpp | srini1392/Programming-in-Cpp | 099f44d65cbe976b27625e5806b32ab88414b019 | [
"MIT"
] | 1 | 2019-01-02T21:52:49.000Z | 2019-01-02T21:52:49.000Z | Competitve Programming & Online Problems/Coding-Interview/Chapter 3 - Stacks and Queues/3.5 sort_stack.cpp | srini1392/Programming-in-Cpp | 099f44d65cbe976b27625e5806b32ab88414b019 | [
"MIT"
] | 1 | 2019-04-05T00:00:13.000Z | 2019-04-05T00:00:13.000Z | Competitve Programming & Online Problems/Coding-Interview/Chapter 3 - Stacks and Queues/3.5 sort_stack.cpp | srini1392/Programming-in-Cpp | 099f44d65cbe976b27625e5806b32ab88414b019 | [
"MIT"
] | 5 | 2019-02-18T08:42:32.000Z | 2021-04-27T12:11:43.000Z | #include <bits/stdc++.h>
using namespace std;
template <class T>
void sort_stack(vector<T> *s)
{
vector<T> r;
while ((*s).size())
{
T temp = (*s).back();
(*s).pop_back();
while (r.size() && r.back() > temp)
{
(*s).push_back(r.back());
r.pop_back();
... | 18.102564 | 43 | 0.446176 | srini1392 |
0396df5b6a69bf857f9697957de56037943d4780 | 3,068 | cpp | C++ | LeetCode/941.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | LeetCode/941.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | LeetCode/941.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool validMountainArray(vector<int>& arr) {
int n=arr.size();
int count1=0;
int count2=0;
if(arr.size() < 3) return false;
//check any any element is same in array return false
for(int i = 0; i < arr.size() - 1; i++)
{
if(ar... | 22.558824 | 75 | 0.390156 | jnvshubham7 |
0397526a8bc73b4e3f64ed5cd6ea08b8aef7d6eb | 1,254 | hpp | C++ | Animator/src/Debug.hpp | Trequend/Animator | 583d1d76d4e25a2840d1e122654c80f794f91d51 | [
"MIT"
] | null | null | null | Animator/src/Debug.hpp | Trequend/Animator | 583d1d76d4e25a2840d1e122654c80f794f91d51 | [
"MIT"
] | null | null | null | Animator/src/Debug.hpp | Trequend/Animator | 583d1d76d4e25a2840d1e122654c80f794f91d51 | [
"MIT"
] | null | null | null | #pragma once
#include <ctime>
#include <cstdio>
#include <vector>
#include <imgui/imgui.h>
#include "window/DebugWindow.hpp"
#ifndef MESSAGE_BUFFER_SIZE
#define MESSAGE_BUFFER_SIZE 2000
#endif // !MESSAGE_BUFFER_SIZE
class Debug
{
friend class DebugWindow;
public:
enum class MessageType
{
Info,
Warning,
... | 19.292308 | 90 | 0.703349 | Trequend |
039b753bf1d4f56f250fb5527fd17d860af561fc | 11,782 | cpp | C++ | src/all/frm/core/TextureAtlas.cpp | CPau/GfxSampleFramework | aa32d505d7ad6b53691daa2805a1b6c408e6c34a | [
"MIT"
] | null | null | null | src/all/frm/core/TextureAtlas.cpp | CPau/GfxSampleFramework | aa32d505d7ad6b53691daa2805a1b6c408e6c34a | [
"MIT"
] | null | null | null | src/all/frm/core/TextureAtlas.cpp | CPau/GfxSampleFramework | aa32d505d7ad6b53691daa2805a1b6c408e6c34a | [
"MIT"
] | null | null | null | #include "TextureAtlas.h"
#include <frm/core/Texture.h>
#include <apt/Image.h>
#ifdef frm_TextureAtlas_DEBUG
#include <imgui/imgui.h>
static eastl::vector<frm::TextureAtlas::Region*> s_dbgRegionList;
#endif
using namespace frm;
using namespace apt;
/***************************************************************... | 29.827848 | 119 | 0.652775 | CPau |
039ddd9c06d91ad456c52f2731f6fe4ddb61526c | 765 | cpp | C++ | tests/lexy/input/base.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | tests/lexy/input/base.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | tests/lexy/input/base.cpp | netcan/lexy | 775e3d6bf1169ce13b08598d774e707c253f0792 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020 Jonathan Müller <[email protected]>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#include <lexy/input/base.hpp>
#include <doctest/doctest.h>
#include <lexy/input/string_input.hpp>
TEST_CASE("partial_reader... | 26.37931 | 69 | 0.654902 | netcan |
03a26d793d446d7efba14b9a7df18e1e3221ec17 | 1,060 | cpp | C++ | example-8/src/ClientWin.cpp | GGolbik/basics-cpp | 37466e7fa03b428093055a269e2ee96b8e685b82 | [
"MIT"
] | null | null | null | example-8/src/ClientWin.cpp | GGolbik/basics-cpp | 37466e7fa03b428093055a269e2ee96b8e685b82 | [
"MIT"
] | null | null | null | example-8/src/ClientWin.cpp | GGolbik/basics-cpp | 37466e7fa03b428093055a269e2ee96b8e685b82 | [
"MIT"
] | null | null | null | #ifdef _WIN32
// _WIN32 marco is defined for both 32-bit and 64-bit environments
// windows code goes here
#include <iostream>
#include "Client.h"
namespace ggolbik {
namespace cpp {
namespace tls {
Client::Client(std::string serverAddress, unsigned short port)
: serverAddress{serverAddress}, port{port} {}
Cli... | 23.555556 | 73 | 0.695283 | GGolbik |
03a64b7c25c08d22ff6ef2a03d9014ce1515f1fe | 700 | hpp | C++ | link.hpp | helm100/2d-cdt | e79044451f0f84c1b0ff5c3290a61b5f24df45c0 | [
"MIT"
] | 3 | 2021-01-11T14:28:27.000Z | 2022-02-08T14:19:30.000Z | link.hpp | helm100/2d-cdt | e79044451f0f84c1b0ff5c3290a61b5f24df45c0 | [
"MIT"
] | 1 | 2021-02-26T12:40:53.000Z | 2021-02-26T12:40:53.000Z | link.hpp | helm100/2d-cdt | e79044451f0f84c1b0ff5c3290a61b5f24df45c0 | [
"MIT"
] | 1 | 2021-03-02T16:03:14.000Z | 2021-03-02T16:03:14.000Z | // Copyright 2020 Joren Brunekreef and Andrzej Görlich
#ifndef LINK_HPP_
#define LINK_HPP_
#include "pool.hpp"
class Vertex;
class Triangle;
class Link : public Pool<Link> {
public:
static const unsigned pool_size = 10000000;
Pool<Vertex>::Label getVertexFinal();
Pool<Vertex>::Label getVertexInitial();
Pool<Tri... | 22.580645 | 71 | 0.732857 | helm100 |
03a7a16d727583b5c47cc642f4e617a104217942 | 1,141 | cpp | C++ | examples/Primitives/src/main.cpp | jamjarlabs/JamJarNative | ed8aea9cbd3f1eed3eb49c7da0df50eea87e880e | [
"MIT"
] | 1 | 2022-03-28T02:26:23.000Z | 2022-03-28T02:26:23.000Z | examples/Primitives/src/main.cpp | jamjarlabs/JamJarNative | ed8aea9cbd3f1eed3eb49c7da0df50eea87e880e | [
"MIT"
] | 103 | 2020-02-24T23:52:58.000Z | 2021-04-18T21:00:50.000Z | examples/Primitives/src/main.cpp | jamjarlabs/JamJarNative | ed8aea9cbd3f1eed3eb49c7da0df50eea87e880e | [
"MIT"
] | 1 | 2021-05-20T22:29:44.000Z | 2021-05-20T22:29:44.000Z | #include "emscripten/html5.h"
#include "entity/entity_manager.hpp"
#include "game.hpp"
#include "message/message_bus.hpp"
#include "message/message_payload.hpp"
#include "primitives.hpp"
#include "standard/2d/interpolation/interpolation_system.hpp"
#include "standard/2d/primitive/primitive_system.hpp"
#include "standar... | 32.6 | 73 | 0.751096 | jamjarlabs |
03a91fe7f6ffd57ba51261e671bb6adbae3f5b27 | 73,798 | cpp | C++ | 2006/samples/reactors/DWFMetaData/DWFAPI.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 1 | 2021-06-25T02:58:47.000Z | 2021-06-25T02:58:47.000Z | 2006/samples/reactors/DWFMetaData/DWFAPI.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | null | null | null | 2006/samples/reactors/DWFMetaData/DWFAPI.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 3 | 2020-05-23T02:47:44.000Z | 2020-10-27T01:26:53.000Z | // (C) Copyright 2004 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty ... | 34.436771 | 141 | 0.691821 | kevinzhwl |
03aeca585a9a5164b117f7f9af56071cb43c1513 | 22,291 | cpp | C++ | agent/config.cpp | markovchainz/cppagent | 97314ec43786a90697ca7fda15db13f2973aee3e | [
"Apache-2.0"
] | null | null | null | agent/config.cpp | markovchainz/cppagent | 97314ec43786a90697ca7fda15db13f2973aee3e | [
"Apache-2.0"
] | null | null | null | agent/config.cpp | markovchainz/cppagent | 97314ec43786a90697ca7fda15db13f2973aee3e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright Copyright 2012, System Insights, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... | 33.928463 | 135 | 0.636759 | markovchainz |
03af014a9d8ef72ced695c343c136bd7c4e82d97 | 13,959 | cpp | C++ | src/systemfonts.cpp | kevinushey/systemfonts | 597f94f1cb55ba7693c5534638978924fa6a6394 | [
"MIT"
] | null | null | null | src/systemfonts.cpp | kevinushey/systemfonts | 597f94f1cb55ba7693c5534638978924fa6a6394 | [
"MIT"
] | null | null | null | src/systemfonts.cpp | kevinushey/systemfonts | 597f94f1cb55ba7693c5534638978924fa6a6394 | [
"MIT"
] | null | null | null | #include <string>
#include <R.h>
#include <Rinternals.h>
#include <R_ext/GraphicsEngine.h>
#include "systemfonts.h"
#include "utils.h"
#include "FontDescriptor.h"
// these functions are implemented by the platform
ResultSet *getAvailableFonts();
ResultSet *findFonts(FontDescriptor *);
FontDescriptor *findFont(FontDe... | 31.368539 | 95 | 0.668243 | kevinushey |
03b2d68381cf703fe34e113035b6220adb396936 | 4,754 | cpp | C++ | src/parseInput/parseTiledModel.cpp | daklinus/model-synthesis | 1c2c0c18df72bba82e36c092fc639776dabd878c | [
"MIT"
] | 47 | 2021-07-30T12:32:14.000Z | 2022-03-20T22:02:46.000Z | src/parseInput/parseTiledModel.cpp | daklinus/model-synthesis | 1c2c0c18df72bba82e36c092fc639776dabd878c | [
"MIT"
] | 1 | 2021-11-29T18:26:53.000Z | 2021-11-29T18:26:53.000Z | src/parseInput/parseTiledModel.cpp | daklinus/model-synthesis | 1c2c0c18df72bba82e36c092fc639776dabd878c | [
"MIT"
] | 3 | 2021-09-08T11:31:59.000Z | 2022-01-05T14:33:07.000Z | // Copyright (c) 2021 Paul Merrell
#include <iostream>
#include <fstream>
#include <sstream>
#include "parseTiledModel.h"
using namespace std;
// Parse a <tiledmodel /> input.
void parseTiledModel(InputSettings& settings) {
string path = "samples/" + settings.name;
ifstream modelFile(path, ios::in);
if (!modelFile... | 26.858757 | 116 | 0.592133 | daklinus |
03b5370273740e53b66b1aecc114f74eb5db2b8a | 512 | hpp | C++ | include/jln/mp/functional/flip.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | include/jln/mp/functional/flip.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | include/jln/mp/functional/flip.hpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #pragma once
#include <jln/mp/list/listify.hpp>
#include <jln/mp/utility/unpack.hpp>
#include <jln/mp/functional/call.hpp>
namespace jln::mp
{
/// \ingroup functional
/// Invokes a \function with its two first arguments reversed.
/// \treturn \sequence
template<class C = listify>
struct flip
{
templa... | 19.692308 | 64 | 0.640625 | jonathanpoelen |
03b7acf4293f327946ef2e921c4ebbaf9182fea7 | 3,384 | hpp | C++ | libs/Delphi/src/Syntax/DelphiParameterSyntax.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | libs/Delphi/src/Syntax/DelphiParameterSyntax.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | 19 | 2021-12-01T20:37:23.000Z | 2022-02-14T21:05:43.000Z | libs/Delphi/src/Syntax/DelphiParameterSyntax.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | #ifndef ARGOS_DELPHI_SYNTAX_DELPHIPARAMETERSYNTAX_H
#define ARGOS_DELPHI_SYNTAX_DELPHIPARAMETERSYNTAX_H
#include <string>
#include <argos-Core/Syntax/SyntaxVariant.hpp>
#include <argos-Core/Types.hpp>
#include "Syntax/DelphiSyntaxNode.hpp"
namespace argos::Core::Syntax { class ISyntaxToken; }
namespace argos::Delp... | 38.022472 | 110 | 0.673168 | henrikfroehling |
03b8677a9dee93d9a96f67472fefc39dbe332750 | 4,681 | cpp | C++ | tests/symbols_tests.cpp | ruthenium96/july | 62f93b33253cd7324b36c851afc58b6f80c00248 | [
"Apache-2.0"
] | null | null | null | tests/symbols_tests.cpp | ruthenium96/july | 62f93b33253cd7324b36c851afc58b6f80c00248 | [
"Apache-2.0"
] | 5 | 2021-11-28T14:29:35.000Z | 2022-03-21T08:16:20.000Z | tests/symbols_tests.cpp | ruthenium96/july | 62f93b33253cd7324b36c851afc58b6f80c00248 | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "src/common/runner/Runner.h"
TEST(symbols, throw_add_the_same_symbol_name) {
model::symbols::Symbols symbols(2);
symbols.addSymbol("same", 10);
EXPECT_THROW(symbols.addSymbol("same", 10), std::invalid_argument);
}
TEST(symbols, throw_assign_the_same_exchange) {
model:... | 36.570313 | 96 | 0.701346 | ruthenium96 |
03ba5b61d4f0bc71fa878e44810db854ec2ecfce | 5,639 | cpp | C++ | tc 160+/PizzaDelivery.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/PizzaDelivery.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/PizzaDelivery.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <queue>
using namespace std;
int T[20];
int dest[50][50];
int N;
int best[50][50];
const int inf = (1<<29);
struct state {
int t, i, j;... | 32.408046 | 309 | 0.422238 | ibudiselic |
03bfdc806b7a67ddcc7cb79eda6d799c4d39601b | 1,754 | hpp | C++ | modules/models/behavior/behavior_model.hpp | grzPat/bark | 807092815c81eeb23defff473449a535a9c42f8b | [
"MIT"
] | null | null | null | modules/models/behavior/behavior_model.hpp | grzPat/bark | 807092815c81eeb23defff473449a535a9c42f8b | [
"MIT"
] | null | null | null | modules/models/behavior/behavior_model.hpp | grzPat/bark | 807092815c81eeb23defff473449a535a9c42f8b | [
"MIT"
] | null | null | null | // Copyright (c) 2019 fortiss GmbH, Julian Bernhard, Klemens Esterle, Patrick Hart, Tobias Kessler
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#ifndef MODULES_MODELS_BEHAVIOR_BEHAVIOR_MODEL_HPP_
#define MODULES_MODELS_BEHAVIOR_BEHAVIOR_MODE... | 28.754098 | 98 | 0.730901 | grzPat |
03ca32200d1d172d5830a06267ec957700848233 | 3,513 | cc | C++ | benchmark/benchnum.cc | MengRao/str | 80389e30ff07bfd5d71f2bdcfad23db6c1353c2c | [
"MIT"
] | 90 | 2019-01-27T09:02:14.000Z | 2022-03-19T16:53:08.000Z | benchmark/benchnum.cc | MengRao/str | 80389e30ff07bfd5d71f2bdcfad23db6c1353c2c | [
"MIT"
] | 4 | 2019-01-28T03:42:53.000Z | 2021-07-04T13:46:15.000Z | benchmark/benchnum.cc | MengRao/str | 80389e30ff07bfd5d71f2bdcfad23db6c1353c2c | [
"MIT"
] | 25 | 2019-02-15T08:18:42.000Z | 2022-03-19T16:53:10.000Z | #include <bits/stdc++.h>
#include "../Str.h"
using namespace std;
inline uint64_t getns() {
return std::chrono::high_resolution_clock::now().time_since_epoch().count();
}
uint32_t getRand() {
uint32_t num = rand() & 0xffff;
num <<= 16;
num |= rand() & 0xffff;
return num;
}
string dest;
char buf[1024];
te... | 22.375796 | 120 | 0.495588 | MengRao |
03ce66746d11ffe092777d7123bc94bd6832c953 | 4,520 | cpp | C++ | 2SST/7LW/functions.cpp | AVAtarMod/University | 3c784a1e109b7a6f6ea495278ec3dc126258625a | [
"BSD-3-Clause"
] | 1 | 2021-07-31T06:55:08.000Z | 2021-07-31T06:55:08.000Z | 2SST/7LW/functions.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | 1 | 2020-11-25T12:00:11.000Z | 2021-01-13T08:51:52.000Z | 2SST/7LW/functions.cpp | AVAtarMod/University-C | e516aac99eabbcbe14d897239f08acf6c8e146af | [
"BSD-3-Clause"
] | null | null | null | #include "functions.hpp"
#include <vector>
#include <iostream>
#include <string>
#include <algorithm>
bool isMagickSquareSolved(unsigned **square, unsigned size)
{
const unsigned numberRows = size, numberCols = size, numberDiagonals = 2;
const unsigned numberObjects = numberRows + numberCols + numberDiagonals... | 25.828571 | 175 | 0.488496 | AVAtarMod |
03d02a1af870d8d0b6c13a55dac2d2be5cf4e884 | 3,680 | hh | C++ | src/drivers/Execute.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 4 | 2015-03-07T16:20:23.000Z | 2020-02-10T13:40:16.000Z | src/drivers/Execute.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 3 | 2018-02-27T21:24:22.000Z | 2020-12-16T00:56:44.000Z | src/drivers/Execute.hh | RLReed/libdetran | 77637c788823e0a14aae7e40e476a291f6f3184b | [
"MIT"
] | 9 | 2015-03-07T16:20:26.000Z | 2022-01-29T00:14:23.000Z | //----------------------------------*-C++-*----------------------------------//
/**
* @file Execute.hh
* @brief Execute class definition.
* @note Copyright (C) 2013 Jeremy Roberts.
*/
//---------------------------------------------------------------------------//
//-----------------------------------------... | 28.091603 | 79 | 0.449728 | RLReed |
03d756a651baef8b69f602d1bacd3c614a2083a0 | 1,004 | hpp | C++ | include/_app_state_recognition.hpp | zborffs/Delta | b2efa9fe1cc2138656f4d7964ccdbbbfcebba639 | [
"MIT"
] | 1 | 2022-03-03T09:34:54.000Z | 2022-03-03T09:34:54.000Z | include/_app_state_recognition.hpp | zborffs/Delta | b2efa9fe1cc2138656f4d7964ccdbbbfcebba639 | [
"MIT"
] | null | null | null | include/_app_state_recognition.hpp | zborffs/Delta | b2efa9fe1cc2138656f4d7964ccdbbbfcebba639 | [
"MIT"
] | null | null | null | #ifndef DELTA__APP_STATE_RECOGNITION_HPP
#define DELTA__APP_STATE_RECOGNITION_HPP
/// Third-Party Includes
#include <spdlog/spdlog.h>
/// Project Includes
#include "app.hpp"
#include "_app_state_eng.hpp"
#include "_app_state_shutdown.hpp"
/**
* The AppStateRecognition class is responsible for coloring the Applicati... | 30.424242 | 118 | 0.747012 | zborffs |
03d84fff4764df02d25c380969ade60037598442 | 14,202 | hpp | C++ | plugins/EstimationPlugin/src/base/estimator/BatchEstimator.hpp | Randl/GMAT | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 2 | 2020-01-01T13:14:57.000Z | 2020-12-09T07:05:07.000Z | plugins/EstimationPlugin/src/base/estimator/BatchEstimator.hpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 1 | 2018-03-15T08:58:37.000Z | 2018-03-20T20:11:26.000Z | plugins/EstimationPlugin/src/base/estimator/BatchEstimator.hpp | rdadan/GMAT-R2016a | d6a5b1fed68c33b0c4b1cfbd1e25a71cdfb8f8f5 | [
"Apache-2.0"
] | 3 | 2019-10-13T10:26:49.000Z | 2020-12-09T07:06:55.000Z | //$Id: BatchEstimator.hpp 1398 2011-04-21 20:39:37Z $
//------------------------------------------------------------------------------
// BatchEstimator
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 20... | 44.38125 | 133 | 0.62118 | Randl |
03dd78b44c732d23cd134fdf790cbca208806a4e | 8,195 | cpp | C++ | Source/gday/CoordinateSystemDlg.cpp | mattdocherty314/GDAy3.0 | 81b13012765e6f4efe3f98c0a4e2c117841f909a | [
"BSD-3-Clause"
] | 5 | 2018-10-30T08:39:02.000Z | 2022-02-18T06:34:18.000Z | Source/gday/CoordinateSystemDlg.cpp | mattdocherty314/GDAy3.0 | 81b13012765e6f4efe3f98c0a4e2c117841f909a | [
"BSD-3-Clause"
] | 1 | 2022-02-18T05:02:24.000Z | 2022-02-18T05:02:24.000Z | Source/gday/CoordinateSystemDlg.cpp | mattdocherty314/GDAy3.0 | 81b13012765e6f4efe3f98c0a4e2c117841f909a | [
"BSD-3-Clause"
] | 4 | 2019-07-30T09:31:05.000Z | 2022-01-31T05:51:18.000Z | // CoordinateSystemDlg.cpp : implementation file
//
#include "stdafx.h"
#include "GDAy.h"
#include "CoordinateSystemDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCoordinateSystem... | 29.584838 | 118 | 0.755461 | mattdocherty314 |
03deff61049e0ab79ea5e1e5fd849c974f217e2a | 1,241 | cpp | C++ | sort/cpu/quickSort.cpp | jitMatrix/xiuxian | ba52d11f39957dd14ca34b51ccb5fadb422e6833 | [
"Apache-2.0"
] | 3 | 2021-03-08T06:17:55.000Z | 2021-04-09T12:50:21.000Z | sort/cpu/quickSort.cpp | jitMatrix/xiuxian | ba52d11f39957dd14ca34b51ccb5fadb422e6833 | [
"Apache-2.0"
] | null | null | null | sort/cpu/quickSort.cpp | jitMatrix/xiuxian | ba52d11f39957dd14ca34b51ccb5fadb422e6833 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <iterator>
#include <vector>
#include "utils.hpp"
template <typename T>
std::int64_t partition(
std::vector<T> &arr, std::int64_t low, std::int64_t high) {
T pivot = arr[low];
while (low < high) {
while (low < high && arr[high] >= pivot) {
--high;
... | 25.854167 | 74 | 0.541499 | jitMatrix |
03df26affc1a5eeb7c79ba5b2b54f5f493990d25 | 1,582 | cpp | C++ | src/cpp/rtps/resources/ResourceSend.cpp | zhangzhimin/Fast-RTPS | 3032f11d0c62d226eea39ea4f8428afef4558693 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/resources/ResourceSend.cpp | zhangzhimin/Fast-RTPS | 3032f11d0c62d226eea39ea4f8428afef4558693 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/resources/ResourceSend.cpp | zhangzhimin/Fast-RTPS | 3032f11d0c62d226eea39ea4f8428afef4558693 | [
"Apache-2.0"
] | 1 | 2021-08-23T01:09:51.000Z | 2021-08-23T01:09:51.000Z | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 24.71875 | 77 | 0.747788 | zhangzhimin |
03e12365b2cc583b2428393857ecc55ab3bd134b | 421 | cpp | C++ | src/edible.cpp | Md7tz/Running-Lizard | 9a3109cfb7e253dadd75655631bbdefa46a7ee28 | [
"MIT"
] | 7 | 2022-02-03T15:57:50.000Z | 2022-02-22T12:42:06.000Z | src/edible.cpp | Md7tz/Running-Lizard | 9a3109cfb7e253dadd75655631bbdefa46a7ee28 | [
"MIT"
] | null | null | null | src/edible.cpp | Md7tz/Running-Lizard | 9a3109cfb7e253dadd75655631bbdefa46a7ee28 | [
"MIT"
] | null | null | null | #include "GameObjects/edible.h"
const uint8_t Edible::count = 2;
Edible::Edible() {}
Edible::Edible(uint8_t _randInt)
{
randInt = _randInt;
foodColor = RED;
}
Edible::~Edible() {}
bool Edible::update(int16_t lizardHeadx, int16_t lizardHeady)
{
if (foodPos.x == lizardHeadx && foodPos.y == lizardHeady)
... | 16.84 | 61 | 0.655582 | Md7tz |
03e136b4a44a2c80b6aa24e40c73c346a590b9c6 | 19,606 | hpp | C++ | gearoenix/math/gx-math-matrix-4d.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 35 | 2018-01-07T02:34:38.000Z | 2022-02-09T05:19:03.000Z | gearoenix/math/gx-math-matrix-4d.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 111 | 2017-09-20T09:12:36.000Z | 2020-12-27T12:52:03.000Z | gearoenix/math/gx-math-matrix-4d.hpp | Hossein-Noroozpour/gearoenix | c8fa8b8946c03c013dad568d6d7a97d81097c051 | [
"BSD-Source-Code"
] | 5 | 2020-02-11T11:17:37.000Z | 2021-01-08T17:55:43.000Z | #ifndef GEAROENIX_MATH_MATRIX_4D_HPP
#define GEAROENIX_MATH_MATRIX_4D_HPP
#include "gx-math-vector-4d.hpp"
namespace gearoenix::math {
/// It is a column major matrix
template <typename Element>
struct Mat4x4 {
Element data[4][4];
constexpr Mat4x4() noexcept
: data {
{ static_cast<Element>... | 42.163441 | 236 | 0.511527 | Hossein-Noroozpour |
03e1ff81de734ba25e35f11c2c9a5d2de140ded4 | 10,929 | cpp | C++ | src/core/TChem_IgnitionZeroD.cpp | mschmidt271/TChem | 01adfcbef0ac107cbc7b9df9d03d783ef5eac83b | [
"BSD-2-Clause"
] | null | null | null | src/core/TChem_IgnitionZeroD.cpp | mschmidt271/TChem | 01adfcbef0ac107cbc7b9df9d03d783ef5eac83b | [
"BSD-2-Clause"
] | null | null | null | src/core/TChem_IgnitionZeroD.cpp | mschmidt271/TChem | 01adfcbef0ac107cbc7b9df9d03d783ef5eac83b | [
"BSD-2-Clause"
] | null | null | null | #include "TChem_Util.hpp"
#include "TChem_IgnitionZeroD.hpp"
/// tadv - an input structure for time marching
/// state (nSpec+3) - initial condition of the state vector
/// qidx (lt nSpec+1) - QoI indices to store in qoi output
/// work - work space sized by getWorkSpaceSize
/// tcnt - time counter
/// qoi (time + qi... | 32.526786 | 84 | 0.631897 | mschmidt271 |
03e5b62ad865ba44024dd644fc012af939d2db94 | 14,267 | cpp | C++ | Tools/AssetBuilder/src/AssetPacking.cpp | palikar/DirectXer | c21b87eed220fc54d97d5363e8a33bd0944a2596 | [
"MIT"
] | null | null | null | Tools/AssetBuilder/src/AssetPacking.cpp | palikar/DirectXer | c21b87eed220fc54d97d5363e8a33bd0944a2596 | [
"MIT"
] | null | null | null | Tools/AssetBuilder/src/AssetPacking.cpp | palikar/DirectXer | c21b87eed220fc54d97d5363e8a33bd0944a2596 | [
"MIT"
] | null | null | null | #include "AssetBuilder.hpp"
static size_t CalculateBaseOffset(AssetBundlerContext& context)
{
size_t offset{0};
offset += sizeof(AssetColletionHeader);
offset += sizeof(TextureLoadEntry) * context.TexturesToCreate.size();
offset += sizeof(IBLoadEntry) * context.IBsToCreate.size();
offset += sizeof(VBLoadEntry) *... | 40.997126 | 163 | 0.624658 | palikar |
03e68c0fdd51c9a3e227755939abfa568dd29f5f | 648 | cpp | C++ | dmoj/uncategorized/16_bit_sw_only.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-07-16T01:46:38.000Z | 2020-07-16T01:46:38.000Z | dmoj/uncategorized/16_bit_sw_only.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | dmoj/uncategorized/16_bit_sw_only.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | 1 | 2020-05-27T14:30:43.000Z | 2020-05-27T14:30:43.000Z | #include <iostream>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
int main()
{
use_io_optimizations();
unsigned int multiplications;
cin >> multiplications;
for (unsigned int i {0}; i < multiplications; ++i)
{
lon... | 15.804878 | 54 | 0.521605 | Rkhoiwal |
03e71a3be1508cfe9132a6a65b3a9f9b2ede5228 | 1,031 | cpp | C++ | proZPRd/ScriptParser.cpp | peku33/proZPRd | 632097bc8221116c57b9ae5e76dafd0a63d57fe6 | [
"MIT"
] | null | null | null | proZPRd/ScriptParser.cpp | peku33/proZPRd | 632097bc8221116c57b9ae5e76dafd0a63d57fe6 | [
"MIT"
] | null | null | null | proZPRd/ScriptParser.cpp | peku33/proZPRd | 632097bc8221116c57b9ae5e76dafd0a63d57fe6 | [
"MIT"
] | null | null | null | #include "ScriptParser.hpp"
#include "File.hpp"
#include "Tools/Exception.hpp"
#ifdef _WIN32
#define popen _popen
#define pclose _pclose
#endif
proZPRd::ScriptParser::ScriptParser(const std::string & ParserExecutable): ParserExecutable(ParserExecutable)
{
}
std::string proZPRd::ScriptParser::Parse(const std::st... | 27.131579 | 109 | 0.702231 | peku33 |
03e7e0fb3bd5648ac5f66e0f418e07bb932947ff | 7,226 | cc | C++ | src/sgmmbin/sgmm-acc-tree-stats.cc | hihihippp/Kaldi | 861f838a2aea264a9e4ffa4df253df00a8b1247f | [
"Apache-2.0"
] | 19 | 2015-03-19T10:53:38.000Z | 2020-12-17T06:12:32.000Z | src/sgmmbin/sgmm-acc-tree-stats.cc | UdyanSachdev/kaldi | 861f838a2aea264a9e4ffa4df253df00a8b1247f | [
"Apache-2.0"
] | 1 | 2018-12-18T17:43:44.000Z | 2018-12-18T17:43:44.000Z | src/sgmmbin/sgmm-acc-tree-stats.cc | UdyanSachdev/kaldi | 861f838a2aea264a9e4ffa4df253df00a8b1247f | [
"Apache-2.0"
] | 47 | 2015-01-27T06:22:57.000Z | 2021-11-11T20:59:04.000Z | // sgmmbin/sgmm-acc-tree-stats.cc
// Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
// 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/L... | 36.680203 | 101 | 0.596872 | hihihippp |
03e7eedbb9a40e47d88ba5db11d7f0db5d1e653c | 1,634 | cpp | C++ | src/Common_Controls/Button/Button.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | 21 | 2020-03-04T17:38:14.000Z | 2022-03-07T02:46:39.000Z | src/Common_Controls/Button/Button.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | null | null | null | src/Common_Controls/Button/Button.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | 6 | 2021-03-12T20:57:00.000Z | 2022-03-31T23:19:03.000Z | #include <string>
#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Repeat_Button.H>
#include <FL/Fl_Window.H>
using namespace std;
namespace Examples {
class Main_Window : public Fl_Window {
public:
Main_Window() : Fl_Window(200, 100, 300, 300, "Button example") {
butt... | 36.311111 | 123 | 0.672583 | gammasoft71 |
03ec5b5f51d937311a211b54c17fb4910be5ee95 | 2,286 | hh | C++ | notification/inc/com/centreon/broker/notification/builders/composed_timeperiod_builder.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/inc/com/centreon/broker/notification/builders/composed_timeperiod_builder.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/inc/com/centreon/broker/notification/builders/composed_timeperiod_builder.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2014 Centreon
**
** 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 t... | 36.285714 | 146 | 0.698163 | sdelafond |
03edcec7dd078dd995694fd563f26e980748dcfa | 2,271 | hpp | C++ | include/codegen/include/OVR/OpenVR/IVROverlay__FindOverlay.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/OVR/OpenVR/IVROverlay__FindOverlay.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/OVR/OpenVR/IVROverlay__FindOverlay.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:02 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.MulticastDelegate
#include "System/MulticastDelegate.... | 45.42 | 157 | 0.745927 | Futuremappermydud |
03f2d5de87a128dbbf8ea8b365b65dd3c6282c1b | 2,590 | cpp | C++ | Source/engine/render/automap_render.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 2 | 2021-02-02T19:27:20.000Z | 2022-03-07T16:50:55.000Z | Source/engine/render/automap_render.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | null | null | null | Source/engine/render/automap_render.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 1 | 2022-03-07T16:51:16.000Z | 2022-03-07T16:51:16.000Z | /**
* @file automap_render.cpp
*
* Line drawing routines for the automap.
*/
#include "automap_render.hpp"
#include "all.h"
DEVILUTION_BEGIN_NAMESPACE
#ifdef _DEBUG
/** automap pixel color 8-bit (palette entry) */
char gbPixelCol;
/** flip - if y < x */
bool _gbRotateMap;
/** valid - if x/y are i... | 23.981481 | 116 | 0.609266 | pionere |
03f6af84193b21e7db5661a2f272d288bb969f3c | 964 | cpp | C++ | codeforces/A - Parity/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/A - Parity/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/A - Parity/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Feb/15/2019 00:51
* solution_verdict: Accepted language: GNU C++14
* run... | 35.703704 | 111 | 0.378631 | kzvd4729 |
03fed44f9750c22e983dccbafcbdc592396eee76 | 784 | hpp | C++ | cppsrc/js-wrappers/wrapColour.hpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | 11 | 2021-06-05T19:32:08.000Z | 2022-03-24T02:01:10.000Z | cppsrc/js-wrappers/wrapColour.hpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | 1 | 2021-11-13T13:12:48.000Z | 2022-02-07T23:46:17.000Z | cppsrc/js-wrappers/wrapColour.hpp | sjoerd108/jimp-native | d489a68923e377d5a7f4fd0f9583382fc3773906 | [
"MIT"
] | null | null | null | #pragma once
#include <napi.h>
#include "../util/referenceFactory.hpp"
void wrapBrightness (const Napi::CallbackInfo& info, ReferenceFactory& referenceFactory);
void wrapOpacity (const Napi::CallbackInfo& info, ReferenceFactory& referenceFactory);
void wrapOpaque (const Napi::CallbackInfo& info, ReferenceFactory& re... | 39.2 | 90 | 0.8125 | sjoerd108 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.