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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5236d919c073af46b8f557d57a7cdd132bdcb307 | 2,833 | cpp | C++ | Code Library Of Others/sgtlaugh/Mincost Maxflow (Dijkstra + Potentials).cpp | BIJOY-SUST/ACM---ICPC | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | 6 | 2018-10-15T18:45:05.000Z | 2022-03-29T04:30:10.000Z | Code Library Of Others/sgtlaugh/Mincost Maxflow (Dijkstra + Potentials).cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | null | null | null | Code Library Of Others/sgtlaugh/Mincost Maxflow (Dijkstra + Potentials).cpp | BIJOY-SUST/Competitive-Programming | b382d80d327ddcab15ab15c0e763ccf8a22e0d43 | [
"Apache-2.0"
] | 4 | 2018-01-07T06:20:07.000Z | 2019-08-21T15:45:59.000Z | #include <stdio.h>
#include <bits/stdtr1c++.h>
#define MAX 200010 /// 2 * max(nodes, edges)
#define clr(ar) memset(ar, 0, sizeof(ar))
#define read() freopen("lol.txt", "r", stdin)
#define dbg(x) cout << #x << " = " << x << endl
#define ran(a, b) ((((rand() << 15) ^ rand()) % ((b) - (a) + 1)) + (a))
using namespace st... | 31.831461 | 101 | 0.424991 | BIJOY-SUST |
523c82d598610ed85e251d90b8fb16f630693245 | 2,695 | cpp | C++ | Utilities/Poco/Util/src/ConfigurationView.cpp | nocnokneo/MITK | 2902dcaed2ebf83b08c29d73608e8c70ead9e602 | [
"BSD-3-Clause"
] | null | null | null | Utilities/Poco/Util/src/ConfigurationView.cpp | nocnokneo/MITK | 2902dcaed2ebf83b08c29d73608e8c70ead9e602 | [
"BSD-3-Clause"
] | null | null | null | Utilities/Poco/Util/src/ConfigurationView.cpp | nocnokneo/MITK | 2902dcaed2ebf83b08c29d73608e8c70ead9e602 | [
"BSD-3-Clause"
] | null | null | null | //
// ConfigurationView.cpp
//
// $Id$
//
// Library: Util
// Package: Configuration
// Module: ConfigurationView
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of t... | 29.615385 | 96 | 0.748052 | nocnokneo |
523f0000c9d1dc3d2d02ba758a52dbd04330f56c | 1,842 | cpp | C++ | cpp/speech/text_to_speech/source/text_to_speech.cpp | ortelio/rapp_beginner_tutorials | 5f770c15bef9906b667dd6a7cb0b12eeccfb37bb | [
"Apache-2.0"
] | null | null | null | cpp/speech/text_to_speech/source/text_to_speech.cpp | ortelio/rapp_beginner_tutorials | 5f770c15bef9906b667dd6a7cb0b12eeccfb37bb | [
"Apache-2.0"
] | null | null | null | cpp/speech/text_to_speech/source/text_to_speech.cpp | ortelio/rapp_beginner_tutorials | 5f770c15bef9906b667dd6a7cb0b12eeccfb37bb | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2015 RAPP
*
* 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 writin... | 34.754717 | 89 | 0.660152 | ortelio |
5240981bf238356625fd7f055df893fd7614289e | 8,415 | hpp | C++ | src/computationalMesh/meshReading/meshReading.hpp | tomrobin-teschner/AIM | 2090cc6be1facee60f1aa9bee924f44d700b5533 | [
"MIT"
] | null | null | null | src/computationalMesh/meshReading/meshReading.hpp | tomrobin-teschner/AIM | 2090cc6be1facee60f1aa9bee924f44d700b5533 | [
"MIT"
] | null | null | null | src/computationalMesh/meshReading/meshReading.hpp | tomrobin-teschner/AIM | 2090cc6be1facee60f1aa9bee924f44d700b5533 | [
"MIT"
] | null | null | null | // This file is part of Artificial-based Incompressibile Methods (AIM), a CFD solver for exact projection
// methods based on hybrid Artificial compressibility and Pressure Projection methods.
// (c) by Tom-Robin Teschner 2021. This file is distribuited under the MIT license.
#pragma once
// c++ include headers
#incl... | 39.507042 | 120 | 0.706239 | tomrobin-teschner |
5243eb71583b16949d662fa38df0917d621d6c3a | 1,413 | cpp | C++ | experiments/nrf24receiver/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 4 | 2016-12-10T13:20:52.000Z | 2019-10-25T19:47:44.000Z | experiments/nrf24receiver/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | null | null | null | experiments/nrf24receiver/src/main.cpp | chacal/arduino | 6b77e59138a36d0627ab6f529e6f2ea7e65bcdfd | [
"Apache-2.0"
] | 1 | 2019-05-03T17:31:38.000Z | 2019-05-03T17:31:38.000Z | #include <Arduino.h>
#include <SPI.h>
#include <power.h>
#include "RF24.h"
#include <printf.h>
#define NRF_CE 9 // Chip Enbale pin for NRF radio
#define NRF_CSN 10 // SPI Chip Select for NFR radio
void initializeNrfRadio();
RF24 nrf(NRF_CE, NRF_CSN);
uint8_t address[6] = "1Node";
uint8_t rcvbuf[4... | 21.089552 | 83 | 0.62845 | chacal |
524402f2959773a724d40a8cdf1f45393030bac8 | 5,073 | cpp | C++ | lib/src/cyber/parse.cpp | yuri-sevatz/cyberpunk-cpp | b0c9a95c012660bfd21c24ac3a69287330d3b3bd | [
"BSD-2-Clause"
] | 5 | 2021-06-12T10:29:58.000Z | 2022-03-03T13:21:57.000Z | lib/src/cyber/parse.cpp | yuri-sevatz/cyber_breach | b0c9a95c012660bfd21c24ac3a69287330d3b3bd | [
"BSD-2-Clause"
] | null | null | null | lib/src/cyber/parse.cpp | yuri-sevatz/cyber_breach | b0c9a95c012660bfd21c24ac3a69287330d3b3bd | [
"BSD-2-Clause"
] | 1 | 2021-02-21T09:45:37.000Z | 2021-02-21T09:45:37.000Z | #ifdef _WIN32
#include <io.h>
#endif
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <boost/algorithm/hex.hpp>
#include <opencv2/text/ocr.hpp>
#include <cyber/layout.hpp>
#include <cyber/parse.hpp>
namespace {
matrix_type parse_matrix(cv::text::OCRTesseract & ocr, cv::Mat image, matrix_length_t... | 34.277027 | 151 | 0.631382 | yuri-sevatz |
5248a9267eb09f75ad898a6faead5b4f3934d5f8 | 666 | cpp | C++ | ch02/build_in_types.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | 3 | 2019-09-21T13:03:57.000Z | 2020-04-05T02:42:53.000Z | ch02/build_in_types.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | ch02/build_in_types.cpp | imshenzhuo/CppPrimer | 87c74c0a36223e86571c2aedd9da428c06b04f4d | [
"CC0-1.0"
] | null | null | null | /*************************************************************************
> File Name: build_in_types.cpp
> Author: ma6174
> Mail: ma6174@163.com
> Created Time: 2019年08月26日 星期一 09时54分25秒
************************************************************************/
#include<iostream>
using namespace std... | 26.64 | 74 | 0.527027 | imshenzhuo |
524b177fb74d415d855d19cebdeca29a669facf1 | 546 | cc | C++ | src/cpu/hamaji/util.cc | puyoai/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 115 | 2015-02-21T15:08:26.000Z | 2022-02-05T01:38:10.000Z | src/cpu/hamaji/util.cc | haripo/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 214 | 2015-01-16T04:53:35.000Z | 2019-03-23T11:39:59.000Z | src/cpu/hamaji/util.cc | haripo/puyoai | 575068dffab021cd42b0178699d480a743ca4e1f | [
"CC-BY-4.0"
] | 56 | 2015-01-16T05:14:13.000Z | 2020-09-22T07:22:49.000Z | #include "util.h"
#include <stdio.h>
#include <stdarg.h>
string ssprintf(const char* fmt, ...) {
va_list ap;
va_start(ap, fmt);
char buf[4097];
int len = vsnprintf(buf, 4096, fmt, ap);
buf[len] = '\0';
va_end(ap);
return buf;
}
void split(const string& str, const string& delim, vector<string>* output) ... | 20.222222 | 76 | 0.604396 | puyoai |
524cdc7a8b2796054517d198d905195c92e4fa79 | 617 | hpp | C++ | contrib/backends/nntpchan-daemon/include/nntpchan/template_engine.hpp | majestrate/nntpchan | f92f68c3cdce4b7ce6d4121ca4356b36ebcd933f | [
"MIT"
] | 233 | 2015-08-06T02:51:52.000Z | 2022-02-14T11:29:13.000Z | contrib/backends/nntpchan-daemon/include/nntpchan/template_engine.hpp | Revivify/nntpchan | 0d555bb88a2298dae9aacf11348e34c52befa3d8 | [
"MIT"
] | 98 | 2015-09-19T22:29:00.000Z | 2021-06-12T09:43:13.000Z | contrib/backends/nntpchan-daemon/include/nntpchan/template_engine.hpp | Revivify/nntpchan | 0d555bb88a2298dae9aacf11348e34c52befa3d8 | [
"MIT"
] | 49 | 2015-08-06T02:51:55.000Z | 2020-03-11T04:23:56.000Z | #ifndef NNTPCHAN_TEMPLATE_ENGINE_HPP
#define NNTPCHAN_TEMPLATE_ENGINE_HPP
#include "file_handle.hpp"
#include "model.hpp"
#include <any>
#include <map>
#include <memory>
#include <string>
namespace nntpchan
{
struct TemplateEngine
{
virtual ~TemplateEngine() {};
virtual bool WriteBoardPage(const nntpchan::model::... | 22.035714 | 102 | 0.774716 | majestrate |
524eaf36a35357f069d8871bb54c4172835435c2 | 5,574 | cc | C++ | generated/aisClassBPositionReport.cc | rkuris/n2klib | e465a8f591d135d2e632186309d69a28ff7c9c4e | [
"MIT"
] | null | null | null | generated/aisClassBPositionReport.cc | rkuris/n2klib | e465a8f591d135d2e632186309d69a28ff7c9c4e | [
"MIT"
] | null | null | null | generated/aisClassBPositionReport.cc | rkuris/n2klib | e465a8f591d135d2e632186309d69a28ff7c9c4e | [
"MIT"
] | null | null | null | // class AisClassBPositionReport
// Automatically generated by mkmsgs - DO NOT EDIT
// Description: AIS Class B Position Report
#include "../n2k.h"
namespace n2k {
class AisClassBPositionReport : public Message {
public:
enum class RepeatIndicator:unsigned char {
Initial = 0,
First_retransmission =... | 41.597015 | 117 | 0.678507 | rkuris |
52538b9e11f80bfbc7629458198ad9823a0bdef1 | 1,128 | cpp | C++ | source/FAST/Examples/DataImport/importLineSetFromFile.cpp | SINTEFMedtek/FAST | d4c1ec49bd542f78d84c00e990bbedd2126cfffa | [
"BSD-2-Clause"
] | 3 | 2019-12-13T07:53:51.000Z | 2020-02-05T09:11:58.000Z | source/FAST/Examples/DataImport/importLineSetFromFile.cpp | SINTEFMedtek/FAST | d4c1ec49bd542f78d84c00e990bbedd2126cfffa | [
"BSD-2-Clause"
] | 1 | 2020-02-05T09:28:37.000Z | 2020-02-05T09:28:37.000Z | source/FAST/Examples/DataImport/importLineSetFromFile.cpp | SINTEFMedtek/FAST | d4c1ec49bd542f78d84c00e990bbedd2126cfffa | [
"BSD-2-Clause"
] | 1 | 2020-12-10T12:40:59.000Z | 2020-12-10T12:40:59.000Z | /**
* Examples/DataImport/importLineSetFromFile.cpp
*
* If you edit this example, please also update the wiki and source code file in the repository.
*/
#include <FAST/Tools/CommandLineParser.hpp>
#include "FAST/Importers/VTKMeshFileImporter.hpp"
#include "FAST/Visualization/LineRenderer/LineRenderer.hpp"
#include ... | 32.228571 | 96 | 0.73227 | SINTEFMedtek |
52553b6f38c3f8ee78eaaa8614d9030dea1b79c4 | 1,916 | cpp | C++ | animation/viewComponent/picScaleComp.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | 6 | 2021-12-08T03:09:47.000Z | 2022-02-24T03:51:14.000Z | animation/viewComponent/picScaleComp.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | animation/viewComponent/picScaleComp.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | #include "picScaleComp.h"
#include <QLabel>
#include <QHBoxLayout>
#include "aspectRatioPixmapLabel.h"
#include "pictureItem.h"
#include "pictureItemcontroller.h"
PicScaleComp::PicScaleComp(PictureItem* item, QWidget *parent)
:QFrame(parent),
m_item(item), m_controller(std::make_unique<PictureItemController>(... | 25.210526 | 83 | 0.730167 | seaCheng |
525a74659773292687da9bb529964f25e41707ee | 4,862 | cpp | C++ | libnaucrates/src/md/CMDIdScCmp.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-05T10:08:56.000Z | 2019-03-05T10:08:56.000Z | libnaucrates/src/md/CMDIdScCmp.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libnaucrates/src/md/CMDIdScCmp.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2013 EMC Corp.
//
// @filename:
// CMDIdScCmp.cpp
//
// @doc:
// Implementation of mdids for scalar comparisons functions
//---------------------------------------------------------------------------
... | 22.719626 | 77 | 0.433155 | khannaekta |
525cb27c2ddd2bed9cf9436b0c1284064d608e15 | 2,384 | cpp | C++ | orm-cpp/orm/store_test/store_interface_test.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/store_test/store_interface_test.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | orm-cpp/orm/store_test/store_interface_test.cpp | ironbit/showcase-app | 3bb5fad9f616c04bdbec67b682713fbb671fce4a | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include <memory>
#include <cstring>
#include "orm/store/store.h"
#include "orm/store_mark/store.h"
#include "orm/store_test/person.h"
using ::testing::Return;
MATCHER_P(CompareProperty, expected, "") {
try {
for (const auto& attribute : PersonCoder::attributes) {
if (!(arg->get(attri... | 27.72093 | 115 | 0.627936 | ironbit |
525e7c5607b680323acd83e64ef7159a3bbb638e | 545 | cpp | C++ | naked_asm/example.cpp | marziel/cpp-examples | 4c24639a9ec8807ed687e06e5fb96304ae34093a | [
"Unlicense"
] | 1 | 2020-02-22T12:05:52.000Z | 2020-02-22T12:05:52.000Z | naked_asm/example.cpp | marziel/cpp-examples | 4c24639a9ec8807ed687e06e5fb96304ae34093a | [
"Unlicense"
] | null | null | null | naked_asm/example.cpp | marziel/cpp-examples | 4c24639a9ec8807ed687e06e5fb96304ae34093a | [
"Unlicense"
] | null | null | null | #include <cstdio>
[[gnu::naked]] int check_sgx_support()
{
asm("\n\
push rbx \n\
push rcx \n\
mov rax, 7 \n\
xor rcx, rcx \n\
cpuid \n\
and rbx, 0x02 \n\
shr rbx, 1 \n\
mov rax, r... | 20.961538 | 78 | 0.348624 | marziel |
525f92723cb8d105dbdb0f782835e8af287e3be4 | 644 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_GetNonTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_GetNonTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_GetNonTypeParam.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_GetNonTypeParam.cpp
//
#include "smtc_GetNonTypeParam.h"
// semantic
#include "smtc_CheckParamName.h"
#include "smtc_CheckSpecFlags.h"
#include "smtc_CreateNonTypeParam.h"
#include "smtc_Message.h"
#define LZZ_INLINE inline
namespace smtc
{
ParamPtr getNonTypeParam (gram::SpecSel const & spec_sel, CvType con... | 24.769231 | 134 | 0.737578 | SuperDizor |
5261aedc5ba7563b9f11d36620eccc67e42321de | 1,177 | cpp | C++ | src/daisyHat.cpp | recursinging/daisyHat | 94a3a2f8da13ee4df372027058f2741c84493a0e | [
"MIT"
] | null | null | null | src/daisyHat.cpp | recursinging/daisyHat | 94a3a2f8da13ee4df372027058f2741c84493a0e | [
"MIT"
] | null | null | null | src/daisyHat.cpp | recursinging/daisyHat | 94a3a2f8da13ee4df372027058f2741c84493a0e | [
"MIT"
] | null | null | null | #include "daisyHat.h"
#include <daisy_seed.h>
namespace daisyhat
{
int numFailedAssertions = 0;
uint32_t startTime = 0;
daisy::DaisySeed* seed;
void StartTest(daisy::DaisySeed& _seed, const char* testName)
{
startTime = daisy::System::GetNow();
numFailedAssertions = 0;
see... | 25.042553 | 69 | 0.553951 | recursinging |
52621431098a8575346e7e54188cbab1feb2b0e5 | 12,088 | cc | C++ | test/sdk/message/subscribe_message-test.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | 1 | 2018-02-09T21:20:31.000Z | 2018-02-09T21:20:31.000Z | test/sdk/message/subscribe_message-test.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | 7 | 2017-11-20T22:22:12.000Z | 2018-03-21T13:00:06.000Z | test/sdk/message/subscribe_message-test.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | null | null | null | #include "dsa/message.h"
#include "dsa/util.h"
#include <gtest/gtest.h>
using namespace dsa;
bool check_static_headers(SubscribeRequestMessage& message,
uint8_t* expected_values, size_t size) {
uint8_t buf[1024];
message.write(buf);
return (memcmp(expected_values, buf, size) == 0);
}
... | 30.994872 | 78 | 0.708388 | iot-dsa-v2 |
526244c99d1ea9bbaa557b4233703972dfda8f79 | 4,123 | cpp | C++ | test/api/shared/test_utils.cpp | mcellteam/libbng | 1d9fe00a2cc9a8d223078aec2700e7b86b10426a | [
"MIT"
] | null | null | null | test/api/shared/test_utils.cpp | mcellteam/libbng | 1d9fe00a2cc9a8d223078aec2700e7b86b10426a | [
"MIT"
] | null | null | null | test/api/shared/test_utils.cpp | mcellteam/libbng | 1d9fe00a2cc9a8d223078aec2700e7b86b10426a | [
"MIT"
] | 1 | 2021-05-11T21:13:20.000Z | 2021-05-11T21:13:20.000Z |
#include "test_utils.h"
#include "bng/bng.h"
using namespace std;
using namespace BNG;
std::string get_test_bngl_file_name(const char* source_file) {
// source_file is a full path obtained with __FILE__
std::string src(source_file);
size_t pos = src.find_last_of("/\\");
release_assert(pos != string::npos);
re... | 29.241135 | 96 | 0.718894 | mcellteam |
5262d3bf3a65ccf0f40e3d66e265422f4a540872 | 1,719 | cpp | C++ | Refureku/Generator/Source/Properties/InstantiatorPropertyCodeGen.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 143 | 2020-04-07T21:38:21.000Z | 2022-03-30T01:06:33.000Z | Refureku/Generator/Source/Properties/InstantiatorPropertyCodeGen.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 7 | 2021-03-30T07:26:21.000Z | 2022-03-28T16:31:02.000Z | Refureku/Generator/Source/Properties/InstantiatorPropertyCodeGen.cpp | jsoysouvanh/Refureku | 7548cb3b196793119737a51c1cedc136aa60d3ee | [
"MIT"
] | 11 | 2020-06-06T09:45:12.000Z | 2022-01-25T17:17:55.000Z | #include "RefurekuGenerator/Properties/InstantiatorPropertyCodeGen.h"
#include <Kodgen/InfoStructures/MethodInfo.h>
using namespace rfk;
InstantiatorPropertyCodeGen::InstantiatorPropertyCodeGen() noexcept:
kodgen::MacroPropertyCodeGen("Instantiator", kodgen::EEntityType::Method)
{
}
bool InstantiatorPropertyCodeGe... | 47.75 | 267 | 0.731239 | jsoysouvanh |
526343b853d1ba13c5432a679c6ff9757fee0104 | 19,186 | hpp | C++ | wz4/wz4frlib/wz4_physx.hpp | wzman/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 47 | 2015-03-22T05:58:47.000Z | 2022-03-29T19:13:37.000Z | wz4/wz4frlib/wz4_physx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | null | null | null | wz4/wz4frlib/wz4_physx.hpp | whpskyeagle/werkkzeug4CE | af5ff27829ed4c501515ef5131165048e991c9b4 | [
"BSD-2-Clause"
] | 16 | 2015-12-31T08:13:18.000Z | 2021-03-09T02:07:30.000Z | /*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... | 31.095624 | 141 | 0.577504 | wzman |
52642bec5b476187a4b080365f0c2c21a954e68d | 8,857 | cpp | C++ | src/main.cpp | ZeroxCorbin/tm_driver | d0abe90b5dba42d48a4aa9825b378b130a5b745c | [
"MIT"
] | null | null | null | src/main.cpp | ZeroxCorbin/tm_driver | d0abe90b5dba42d48a4aa9825b378b130a5b745c | [
"MIT"
] | null | null | null | src/main.cpp | ZeroxCorbin/tm_driver | d0abe90b5dba42d48a4aa9825b378b130a5b745c | [
"MIT"
] | null | null | null | #include "tm_driver/tm_driver.h"
#include "tm_driver/tm_print.h"
#include <SctResponse.hpp>
#include <StaResponse.hpp>
#include <ConnectTM.hpp>
#include <SendScript.hpp>
#include <SetEvent.hpp>
#include <SetPositions.hpp>
#include <SetIO.hpp>
#include <AskSta.hpp>
#include <iostream>
TmDriver* iface_;
std::mutex sta... | 29.134868 | 125 | 0.579767 | ZeroxCorbin |
52642c4a4142a47d7de99e089f15aee33b5afd86 | 2,513 | cpp | C++ | source/Editor/assetsWidget.cpp | nicovanbentum/GE | 1dd737b50bef306118116c6c4e1bd36c0ebb65c6 | [
"MIT"
] | null | null | null | source/Editor/assetsWidget.cpp | nicovanbentum/GE | 1dd737b50bef306118116c6c4e1bd36c0ebb65c6 | [
"MIT"
] | null | null | null | source/Editor/assetsWidget.cpp | nicovanbentum/GE | 1dd737b50bef306118116c6c4e1bd36c0ebb65c6 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "assetsWidget.h"
#include "editor.h"
#include "IconsFontAwesome5.h"
namespace Raekor {
AssetsWidget::AssetsWidget(Editor* editor) : IWidget(editor, "Asset Browser") {}
void AssetsWidget::draw(float dt) {
ImGui::Begin(title.c_str());
auto materials = IWidget::GetScene().view<Materi... | 33.065789 | 146 | 0.55193 | nicovanbentum |
52645cd5fee7053d4352bdd350085e063bbafe5d | 1,017 | cpp | C++ | PORT3/Box/Point/Point.cpp | Kush12747/CSC122 | 36c6f1c0f4a3ddd035529043d51217ec22961c84 | [
"MIT"
] | null | null | null | PORT3/Box/Point/Point.cpp | Kush12747/CSC122 | 36c6f1c0f4a3ddd035529043d51217ec22961c84 | [
"MIT"
] | null | null | null | PORT3/Box/Point/Point.cpp | Kush12747/CSC122 | 36c6f1c0f4a3ddd035529043d51217ec22961c84 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include "Point.h"
using namespace std;
//input function for (x,y) format
void Point::Input(std::istream& is)
{
char temp;
is >> temp >> x >> temp >> y >> temp;
return;
}
//output for (x,y) format
void Point::Output(std::ostream& os) const
{
os << '(' << x << ", " <... | 21.1875 | 47 | 0.621436 | Kush12747 |
526df46baac02adbf5df94c02ed2422a11ca8f19 | 3,314 | cpp | C++ | hw5/src/Mass_spring_system.cpp | jrabasco/acg2015 | 419fd0fdf5293dda95ea0231cf6c6f4af5331120 | [
"MIT"
] | null | null | null | hw5/src/Mass_spring_system.cpp | jrabasco/acg2015 | 419fd0fdf5293dda95ea0231cf6c6f4af5331120 | [
"MIT"
] | null | null | null | hw5/src/Mass_spring_system.cpp | jrabasco/acg2015 | 419fd0fdf5293dda95ea0231cf6c6f4af5331120 | [
"MIT"
] | null | null | null | //=============================================================================
//
// Exercise code for the lecture
// "Advanced Computer Graphics"
//
// Adapted from Prof. Dr. Mario Botsch, Bielefeld University
//
// Copyright (C) 2013 LGG, epfl
//
// DO NOT REDISTRIBUTE
//===================================... | 27.38843 | 93 | 0.489439 | jrabasco |
526e0d7be42cc896ae48eb68811aea75cfc4f063 | 442 | cpp | C++ | src/Records/STAT.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:33.000Z | 2022-03-01T19:17:33.000Z | src/Records/STAT.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 8 | 2015-04-17T12:04:15.000Z | 2015-07-02T14:40:28.000Z | src/Records/STAT.cpp | Koncord/ESx-Reader | fa7887c934141f7b0a956417392f2b618165cc34 | [
"Apache-2.0"
] | 1 | 2022-03-01T19:17:36.000Z | 2022-03-01T19:17:36.000Z | /*
* File: STAT.cpp
* Author: Koncord <koncord at rwa.su>
*
* Created on 8 Апрель 2015 г., 21:57
*/
#include "STAT.hpp"
using namespace std;
bool RecordSTAT::DoParse()
{
const string subType = GetLabel();
if(subType == "EDID")
data.edid = GetString();
else if(subType == "OBND")
d... | 17.68 | 52 | 0.608597 | Koncord |
52701db43a8bcfffe51f676b52a0ce8710d52aae | 622 | hpp | C++ | libs/camera/include/sge/camera/ortho_freelook/optional_projection_rectangle_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/camera/include/sge/camera/ortho_freelook/optional_projection_rectangle_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/camera/include/sge/camera/ortho_freelook/optional_projection_rectangle_fwd.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_CAMERA_ORTHO_FREELOOK_OPTIONAL_PROJECTION_RECTANGLE_FWD_HPP_INCLUDED
#define SGE_CAMERA... | 31.1 | 95 | 0.790997 | cpreh |
527428aef2ea21c9089c421310c198be0f7bcab4 | 16,949 | cpp | C++ | src/renderer/render.cpp | infosia/Raster | e53a6f9c10212ec50951198496800a866f40aaca | [
"MIT"
] | null | null | null | src/renderer/render.cpp | infosia/Raster | e53a6f9c10212ec50951198496800a866f40aaca | [
"MIT"
] | null | null | null | src/renderer/render.cpp | infosia/Raster | e53a6f9c10212ec50951198496800a866f40aaca | [
"MIT"
] | null | null | null | /* distributed under MIT license:
*
* Copyright (c) 2022 Kota Iguchi
*
* 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... | 38.963218 | 150 | 0.518792 | infosia |
5278996f201a4a3d69282c1bd7b0d230d0f6cd39 | 5,324 | hpp | C++ | 3rdparty/libprocess/3rdparty/stout/include/stout/os/setns.hpp | dharmeshkakadia/mesos | d418c17b89856a9e9d43ece0a7c656f2489a922a | [
"Apache-2.0"
] | 1 | 2015-07-18T09:47:35.000Z | 2015-07-18T09:47:35.000Z | 3rdparty/libprocess/3rdparty/stout/include/stout/os/setns.hpp | dharmeshkakadia/mesos | d418c17b89856a9e9d43ece0a7c656f2489a922a | [
"Apache-2.0"
] | 1 | 2015-12-21T23:47:34.000Z | 2015-12-21T23:47:47.000Z | 3rdparty/libprocess/3rdparty/stout/include/stout/os/setns.hpp | dharmeshkakadia/mesos | d418c17b89856a9e9d43ece0a7c656f2489a922a | [
"Apache-2.0"
] | null | null | null | /**
* 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, software
* distributed... | 26.098039 | 75 | 0.680503 | dharmeshkakadia |
527a5477df3948238a67398ef99b72c8c6744789 | 1,462 | hpp | C++ | src/algorithms/math/sum_of_multiples.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/algorithms/math/sum_of_multiples.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/algorithms/math/sum_of_multiples.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef SUM_OF_MULTIPLES_OF_3_AND_5_HPP
#define SUM_OF_MULTIPLES_OF_3_AND_5_HPP
// https://projecteuler.net/problem=1
// If we list all the natural numbers below 10 that are multiples of 3 or 5,
// we get 3, 5, 6 and 9. The sum of these multiples is 23.
// Find the sum of all the multiples of 3 or 5 below 1000.
// Ans... | 31.106383 | 76 | 0.602599 | iamantony |
527bdf32aa48375a0031e961fc8f563997fa6425 | 4,575 | cpp | C++ | Engine/Source/Vulkan/VulkanRHICache.cpp | DanDanCool/GameEngine | 9afae8bc31c7e34b9afde0f01a5735607eb7870e | [
"Apache-2.0"
] | 1 | 2021-09-20T01:50:29.000Z | 2021-09-20T01:50:29.000Z | Engine/Source/Vulkan/VulkanRHICache.cpp | DanDanCool/GameEngine | 9afae8bc31c7e34b9afde0f01a5735607eb7870e | [
"Apache-2.0"
] | null | null | null | Engine/Source/Vulkan/VulkanRHICache.cpp | DanDanCool/GameEngine | 9afae8bc31c7e34b9afde0f01a5735607eb7870e | [
"Apache-2.0"
] | null | null | null | #include "VulkanRHICache.h"
#include "jpch.h"
#include "VulkanContext.h"
#include "VulkanPipeline.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
namespace VKRHI
{
VulkanRHICache::VulkanRHICache()
: m_VertexBuffer()
, m_IndexBuffer()
, m_ProjectionMatrix()
, m_De... | 38.125 | 114 | 0.64612 | DanDanCool |
528122c614618d2ecdc2c0adc4921b30e8978edd | 6,884 | cpp | C++ | awsconnection.cpp | recaisinekli/aws-iot-device-sdk-qt-integration | 9ba0b3aa4509e72667f3ccc58f3d0eee2c1f861c | [
"Apache-2.0"
] | null | null | null | awsconnection.cpp | recaisinekli/aws-iot-device-sdk-qt-integration | 9ba0b3aa4509e72667f3ccc58f3d0eee2c1f861c | [
"Apache-2.0"
] | null | null | null | awsconnection.cpp | recaisinekli/aws-iot-device-sdk-qt-integration | 9ba0b3aa4509e72667f3ccc58f3d0eee2c1f861c | [
"Apache-2.0"
] | null | null | null | #include "awsconnection.h"
AWSConnection::AWSConnection(QObject *parent) : QObject(parent)
{
}
bool AWSConnection::init(){
bool state = true;
Io::EventLoopGroup eventLoopGroup(1);
if (!eventLoopGroup)
{
fprintf(stderr, "Event Loop Group Creation failed with error %s\n", ErrorDebugString(ev... | 32.780952 | 140 | 0.633934 | recaisinekli |
5281beb60cb59b280a611d92f69c6cf314acbb4e | 1,329 | hpp | C++ | src/mbgl/shader/symbol_icon_shader.hpp | followtherider/mapbox-gl-native | 62b56b799a7d4fcd1a8f151eed878054b862da5b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/shader/symbol_icon_shader.hpp | followtherider/mapbox-gl-native | 62b56b799a7d4fcd1a8f151eed878054b862da5b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/mbgl/shader/symbol_icon_shader.hpp | followtherider/mapbox-gl-native | 62b56b799a7d4fcd1a8f151eed878054b862da5b | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #pragma once
#include <mbgl/gl/shader.hpp>
#include <mbgl/gl/attribute.hpp>
#include <mbgl/gl/uniform.hpp>
namespace mbgl {
class SymbolVertex;
class SymbolIconShader : public gl::Shader {
public:
SymbolIconShader(gl::Context&, Defines defines = None);
using VertexType = SymbolVertex;
gl::Attribute<in... | 40.272727 | 87 | 0.551543 | followtherider |
5281c30c6b6d7bd81ef9284c262126f764d9ad0c | 4,170 | cpp | C++ | src/gameoflife_test.cpp | meteoritenhagel/conways_game_of_life | 5a15cc008b9e7b700cd1c900bcc2509a3a22f233 | [
"MIT"
] | null | null | null | src/gameoflife_test.cpp | meteoritenhagel/conways_game_of_life | 5a15cc008b9e7b700cd1c900bcc2509a3a22f233 | [
"MIT"
] | null | null | null | src/gameoflife_test.cpp | meteoritenhagel/conways_game_of_life | 5a15cc008b9e7b700cd1c900bcc2509a3a22f233 | [
"MIT"
] | null | null | null | #include "gameoflife_test.h"
#include "gameoflife.h"
#include <iostream>
void GameOfLife_Test::testAll()
{
// invoke all tests
testTogglingCellStatus();
testNeighbourUpdateWhenAddingCell();
testNeighbourUpdateWhenAddingAndRemovingCell();
testComplexGridNeighbours();
}
void GameOfLife_Test::testT... | 29.785714 | 112 | 0.584892 | meteoritenhagel |
528355a5c46201bd35e151049bef5689434dd601 | 1,080 | cpp | C++ | apps/2d/advection/sine_example/AfterQinit.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/2d/advection/sine_example/AfterQinit.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/2d/advection/sine_example/AfterQinit.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | #include <cmath>
#include <iostream>
#include "dogdefs.h"
#include "IniParams.h"
#include "DogSolverCart2.h"
class DogSolverCart2;
void AfterQinit(DogSolverCart2& solver)
{
DogStateCart2* dogStateCart2 = &solver.fetch_dogStateCart2();
dTensorBC4& qnew = dogStateCart2->fetch_q();
dTensorBC4& aux ... | 25.714286 | 65 | 0.566667 | dcseal |
52847f6a8298ad61698f6ed0084b9342f6b08fc5 | 762 | hpp | C++ | test/src/Algorithm/FindIf.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 48 | 2019-05-14T10:07:08.000Z | 2021-04-08T08:26:20.000Z | test/src/Algorithm/FindIf.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | null | null | null | test/src/Algorithm/FindIf.hpp | changjurhee/CppML | 6d4cc6d0dd2fa3055823f191dc7fe953e4966fc5 | [
"MIT"
] | 4 | 2019-11-18T15:35:32.000Z | 2021-12-02T05:23:04.000Z | #include "CppML/CppML.hpp"
namespace FindIfTest {
template <typename T> using Predicate = ml::f<ml::IsSame<>, char, T>;
template <typename T> struct R {};
void run() {
{
using T = ml::f<ml::FindIf<ml::F<Predicate>, ml::F<R>>, int, char, bool>;
static_assert(std::is_same<T, R<char>>::value,
... | 29.307692 | 78 | 0.568241 | changjurhee |
528487b78082d510660b1cc934f048ec41668cab | 32,568 | hxx | C++ | couchbase/errors.hxx | jrawsthorne/couchbase-cxx-client | b8fea51f900af80abe09cbdda90aef944b05c10a | [
"Apache-2.0"
] | null | null | null | couchbase/errors.hxx | jrawsthorne/couchbase-cxx-client | b8fea51f900af80abe09cbdda90aef944b05c10a | [
"Apache-2.0"
] | null | null | null | couchbase/errors.hxx | jrawsthorne/couchbase-cxx-client | b8fea51f900af80abe09cbdda90aef944b05c10a | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020-2021 Couchbase, 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
*
* ... | 35.632385 | 140 | 0.675325 | jrawsthorne |
5284bf97e2825f1cf5d2bd7f256da9103a454f28 | 1,785 | hpp | C++ | include/dca/phys/dca_analysis/deprecated/cpe_solver/basis_functions/radial_function.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 27 | 2018-08-02T04:28:23.000Z | 2021-07-08T02:14:20.000Z | include/dca/phys/dca_analysis/deprecated/cpe_solver/basis_functions/radial_function.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 200 | 2018-08-02T18:19:03.000Z | 2022-03-16T21:28:41.000Z | include/dca/phys/dca_analysis/deprecated/cpe_solver/basis_functions/radial_function.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 22 | 2018-08-15T15:50:00.000Z | 2021-09-30T13:41:46.000Z | // Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Peter Staar (taa@zurich.ibm.com)
//
// Radial function.
#ifndef DCA_PHYS_DCA_ANAL... | 26.25 | 101 | 0.72493 | PMDee |
52860bf855c97239e852dd101375f82d7d058012 | 2,101 | cpp | C++ | inference-engine/tests_deprecated/functional/ie_tests/src/optimized_network_matcher.cpp | anton-potapov/openvino | 84119afe9a8c965e0a0cd920fff53aee67b05108 | [
"Apache-2.0"
] | 2 | 2020-11-18T14:14:06.000Z | 2020-11-28T04:55:57.000Z | inference-engine/tests_deprecated/functional/ie_tests/src/optimized_network_matcher.cpp | anton-potapov/openvino | 84119afe9a8c965e0a0cd920fff53aee67b05108 | [
"Apache-2.0"
] | 30 | 2020-11-13T11:44:07.000Z | 2022-02-21T13:03:16.000Z | inference-engine/tests_deprecated/functional/ie_tests/src/optimized_network_matcher.cpp | mmakridi/openvino | 769bb7709597c14debdaa356dd60c5a78bdfa97e | [
"Apache-2.0"
] | 3 | 2021-03-09T08:27:29.000Z | 2021-04-07T04:58:54.000Z | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <fstream>
#include <string>
#include <gtest/gtest.h>
#include <ie_plugin_config.hpp>
#include "optimized_network_matcher.hpp"
using namespace InferenceEngine;
using namespace InferenceEngine::PluginConfigParams;
void Reg... | 31.358209 | 111 | 0.690624 | anton-potapov |
52876ae3972891c398c3f1bc637cb69486966a39 | 12,484 | cpp | C++ | fdbserver/MemoryPager.actor.cpp | timansky/foundationdb | 97dd83d94060145687395fe1fa440b88aaa078a8 | [
"Apache-2.0"
] | 1 | 2020-08-17T10:57:40.000Z | 2020-08-17T10:57:40.000Z | fdbserver/MemoryPager.actor.cpp | timansky/foundationdb | 97dd83d94060145687395fe1fa440b88aaa078a8 | [
"Apache-2.0"
] | 2 | 2019-02-06T08:10:00.000Z | 2019-02-06T08:12:11.000Z | fdbserver/MemoryPager.actor.cpp | timansky/foundationdb | 97dd83d94060145687395fe1fa440b88aaa078a8 | [
"Apache-2.0"
] | 1 | 2019-03-12T20:17:26.000Z | 2019-03-12T20:17:26.000Z | /*
* MemoryPager.actor.cpp
*
* This source file is part of the FoundationDB open source project
*
* Copyright 2013-2018 Apple Inc. and the FoundationDB project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You m... | 27.317287 | 137 | 0.734941 | timansky |
5288d48d136e2e32f4f3784eb0a99f770704f015 | 1,238 | cpp | C++ | test/features.cpp | Ogiwara-CostlierRain464/transaction-system | fb63b96e03e480bc2ae6ebc06f5c392af1ab9012 | [
"Apache-2.0"
] | 9 | 2020-06-09T04:28:36.000Z | 2022-02-02T05:27:51.000Z | test/features.cpp | Ogiwara-CostlierRain464/transaction-system | fb63b96e03e480bc2ae6ebc06f5c392af1ab9012 | [
"Apache-2.0"
] | null | null | null | test/features.cpp | Ogiwara-CostlierRain464/transaction-system | fb63b96e03e480bc2ae6ebc06f5c392af1ab9012 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
using namespace std;
/**
* Used to check C++ features.
*/
class Features: public ::testing::Test{};
template <typename T>
bool typeCheck ( T x )
{
reference_wrapper<int> r=ref(x);
// should return false, so ref(int) ≠ int&
return is_same<T&,decltype(r)>::value;
}
/**
* A reference_... | 17.942029 | 96 | 0.575929 | Ogiwara-CostlierRain464 |
52943455ab9c912707ad9d4daae1e997d6ae5f8a | 43,772 | cpp | C++ | R/src/rcpp_functions.cpp | hillarykoch/pGMCM | 2aeac31fdac4e87c8349222d595afd78dedf4b84 | [
"Artistic-2.0"
] | null | null | null | R/src/rcpp_functions.cpp | hillarykoch/pGMCM | 2aeac31fdac4e87c8349222d595afd78dedf4b84 | [
"Artistic-2.0"
] | null | null | null | R/src/rcpp_functions.cpp | hillarykoch/pGMCM | 2aeac31fdac4e87c8349222d595afd78dedf4b84 | [
"Artistic-2.0"
] | null | null | null | // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
#include <RcppArmadillo.h>
#include <algorithm>
using namespace Rcpp;
using namespace RcppArmadillo;
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::plugins(cpp11)]]
//
// Stuff for general penalized Gaussian mixture model
//
// Made ... | 35.271555 | 149 | 0.486018 | hillarykoch |
5296a365d54aa77ca2a68c2206565464ad489d93 | 2,086 | cpp | C++ | first/src/textures/Texture.cpp | DeeJack/opengl_first_project | 29a6ec89d80046ceb575c02d009e611b835f49fe | [
"MIT"
] | null | null | null | first/src/textures/Texture.cpp | DeeJack/opengl_first_project | 29a6ec89d80046ceb575c02d009e611b835f49fe | [
"MIT"
] | null | null | null | first/src/textures/Texture.cpp | DeeJack/opengl_first_project | 29a6ec89d80046ceb575c02d009e611b835f49fe | [
"MIT"
] | null | null | null | #include "GLEW/glew.h"
#include "Texture.h"
#include <stdexcept>
#include <thread>
#include "Image.h"
#include "../log.h"
Texture::Texture() = default;
Texture::Texture(const char* path)
{
load(path);
}
void Texture::load_texture(const unsigned char* const buffer)
{
glGenTextures(1, &_renderer_id);
bind(0);
/... | 25.439024 | 98 | 0.723873 | DeeJack |
529a8e2fab9f629782fa7a9d338c22dacac2a961 | 2,426 | hpp | C++ | dependencies/generator/include/ph_coroutines/generator/generator.hpp | phiwen96/ph_coroutines | 985c3ba5efa735d6756f8d777b9d2fcc3ac8fd18 | [
"Apache-2.0"
] | null | null | null | dependencies/generator/include/ph_coroutines/generator/generator.hpp | phiwen96/ph_coroutines | 985c3ba5efa735d6756f8d777b9d2fcc3ac8fd18 | [
"Apache-2.0"
] | null | null | null | dependencies/generator/include/ph_coroutines/generator/generator.hpp | phiwen96/ph_coroutines | 985c3ba5efa735d6756f8d777b9d2fcc3ac8fd18 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <experimental/coroutine>
#include <concepts>
#include "iterator.hpp"
//#include <ph_coroutines/coroutines.hpp>
//using namespace std;
using namespace std::experimental;
using namespace std::chrono_literals;
template <class promise>
struct generator
{
using value_type = typename promi... | 25.270833 | 92 | 0.545754 | phiwen96 |
529e0b142143ea50aa09452f74cab2708bdb2e4d | 315 | cc | C++ | tests/CompileTests/ElsaTestCases/t0179.cc | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/ElsaTestCases/t0179.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/ElsaTestCases/t0179.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | // t0179.cc
// template, partially specialized to a template argument
// this one uncovered all kinds of subtle errors in the
// handling of template argument lists ...
template <class S, class T>
struct A {};
template <class T>
struct B {};
typedef int myint;
template <>
struct A<int, B<myint> >
{};
| 17.5 | 57 | 0.68254 | maurizioabba |
529e2642f50eda53c3d3955b56008286583d1536 | 224 | cpp | C++ | submit2/input8/87.cpp | czhongyu/kolmogorov-complexity | 0130f7b2116e77165788ce3ed153e9c2782f2599 | [
"Apache-2.0"
] | 1 | 2020-06-18T13:04:58.000Z | 2020-06-18T13:04:58.000Z | submit2/input8/87.cpp | zychn/kolmogorov-complexity | 0130f7b2116e77165788ce3ed153e9c2782f2599 | [
"Apache-2.0"
] | null | null | null | submit2/input8/87.cpp | zychn/kolmogorov-complexity | 0130f7b2116e77165788ce3ed153e9c2782f2599 | [
"Apache-2.0"
] | null | null | null | #include<ios>
int c[10],g=1,x,i;
q(int a)
{
if(a>9)
for(i=0;i<110;)
putchar(i%10==c[i/10]|i++/100|48);
for(int b=0;b<10;c[a]=b++,g?q(a+1):g++)
for(i=0;i<a;i++)x=b-c[i],g*=a-i^x&&x&&i-a^x;
}
main(){q(0);}
| 18.666667 | 47 | 0.459821 | czhongyu |
52a63af40245c4def7efe6e41064d43f6ce98764 | 595 | hpp | C++ | src/ai/common.hpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | 1 | 2022-01-16T07:06:13.000Z | 2022-01-16T07:06:13.000Z | src/ai/common.hpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | null | null | null | src/ai/common.hpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <entt/core/hashed_string.hpp>
namespace ai {
constexpr entt::hashed_string null = "null";
constexpr entt::hashed_string hv_trigger = "hv-trigger";
constexpr entt::hashed_string full_chest = "full-chest";
constexpr entt::hashed_string empty_chest = "empty-chest";
constexpr entt::hashed_strin... | 35 | 61 | 0.759664 | synaodev |
52a885a1788b99d61de7d997ad48a0878adc4e5c | 1,637 | cpp | C++ | practice/binarySearch/AllocatePages.cpp | atpk/CP | 0eee3af02bb0466c85aeb8dd86cf3620567a354c | [
"MIT"
] | null | null | null | practice/binarySearch/AllocatePages.cpp | atpk/CP | 0eee3af02bb0466c85aeb8dd86cf3620567a354c | [
"MIT"
] | null | null | null | practice/binarySearch/AllocatePages.cpp | atpk/CP | 0eee3af02bb0466c85aeb8dd86cf3620567a354c | [
"MIT"
] | null | null | null | // { Driver Code Starts
// Initial template for C++
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template in C++
class Solution
{
public:
bool isValid(int a[], int n, int m, int k){
int sum=0,total=0;
int i=0;
while(i<n){
if(a[i]>k)return fal... | 19.258824 | 48 | 0.435553 | atpk |
52b00100248ae4696a8454cebd4087b5dc4e8fbf | 925 | cpp | C++ | src/core/loader/internal/AbstractLoaderInternal.cpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | src/core/loader/internal/AbstractLoaderInternal.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | src/core/loader/internal/AbstractLoaderInternal.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 PolarAI. All rights reserved.
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//... | 44.047619 | 80 | 0.629189 | alexbatashev |
52b0d4b4284f3565532ef9c76599df007167424f | 1,306 | cpp | C++ | src/systems/RenderSystem.cpp | TheoVerhelst/Aphelion | 357df0ba5542ce22dcff10c434aa4a20da0c1b17 | [
"Beerware"
] | 8 | 2022-01-18T09:58:21.000Z | 2022-02-21T00:08:58.000Z | src/systems/RenderSystem.cpp | TheoVerhelst/Aphelion | 357df0ba5542ce22dcff10c434aa4a20da0c1b17 | [
"Beerware"
] | null | null | null | src/systems/RenderSystem.cpp | TheoVerhelst/Aphelion | 357df0ba5542ce22dcff10c434aa4a20da0c1b17 | [
"Beerware"
] | null | null | null | #include <SFML/System/Time.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
#include <systems/RenderSystem.hpp>
#include <components/Body.hpp>
#include <components/components.hpp>
#include <components/Animations.hpp>
#include <vector.hpp>
RenderSystem::RenderSystem(Scene& scene):
_scene{scene} {
}
void RenderSystem... | 34.368421 | 85 | 0.652374 | TheoVerhelst |
52b50a908db902afa0e13d51d584d664204d4995 | 1,371 | hpp | C++ | include/Buffer2OS2.hpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | 1 | 2017-11-27T00:03:28.000Z | 2017-11-27T00:03:28.000Z | include/Buffer2OS2.hpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | null | null | null | include/Buffer2OS2.hpp | notwa/crap | fe81ca33f7940a98321d9efce5bc43f400016955 | [
"MIT"
] | null | null | null | template<class Mixin>
struct Buffer2OS2 : public Mixin {
virtual void
process2(v2df *buf, ulong rem) = 0;
halfband_t<v2df> hb_up, hb_down;
TEMPLATE void
_process(T *in_L, T *in_R, T *out_L, T *out_R, ulong count)
{
disable_denormals();
v2df buf[BLOCK_SIZE];
v2df over[FULL_SIZE];
for (ulong pos = 0; pos... | 19.869565 | 60 | 0.574034 | notwa |
52b64135199edef65d9c32051761db1a2092f890 | 2,225 | cpp | C++ | mrstelephonedigits/mrstelephonedigits/mrstelephonedigits.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | 1 | 2019-09-11T04:55:06.000Z | 2019-09-11T04:55:06.000Z | mrstelephonedigits/mrstelephonedigits/mrstelephonedigits.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | mrstelephonedigits/mrstelephonedigits/mrstelephonedigits.cpp | msalazar266/ITSE-1307 | e224f535e2b2537833241df90877c1d9669db108 | [
"MIT"
] | null | null | null | // mrstelephonedigits.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
/*
Matthew Salazar
ITSE - 1307 Spring 2019
20190402
This program outputs telephone digits that correspond to uppercase letters.
Pseudo Code :
1. User inputs numbers and or letters
2. if... | 25.872093 | 109 | 0.556404 | msalazar266 |
52ba60d470e838a0e432ca87c80b74b7bb598e68 | 9,226 | cpp | C++ | inetsrv/msmq/src/trigger/trigserv/tginit.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/msmq/src/trigger/trigserv/tginit.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/msmq/src/trigger/trigserv/tginit.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1995-97 Microsoft Corporation
Module Name:
TgInit.cpp
Abstract:
Trigger service initialization
Author:
Uri Habusha (urih) 3-Aug-2000
Environment:
Platform-independent
--*/
#include "stdafx.h"
#include "mq.h"
#include "Ev.h"
#include "Cm.h"
#include "mqsym... | 25.070652 | 173 | 0.658032 | npocmaka |
1ebefb266df852d2d45b7385b6198ba91e7d9983 | 254 | cpp | C++ | part1/1-2/inputoutput.cpp | seopbo/cpp101 | c23cfd6a131723404fe5659df709887817f54223 | [
"MIT"
] | null | null | null | part1/1-2/inputoutput.cpp | seopbo/cpp101 | c23cfd6a131723404fe5659df709887817f54223 | [
"MIT"
] | null | null | null | part1/1-2/inputoutput.cpp | seopbo/cpp101 | c23cfd6a131723404fe5659df709887817f54223 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
int numOfWatermelon = 0;
cout << "How many watermelons do you have?" << endl;
cin >> numOfWatermelon;
cout << "I have " << numOfWatermelon << endl;
return 0;
}
| 19.538462 | 56 | 0.625984 | seopbo |
1ec13ce474f44a4f39295fdf3ddc6bec91cd769a | 4,746 | hh | C++ | AssocTools/AstSTLKeyMap.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | AssocTools/AstSTLKeyMap.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | AssocTools/AstSTLKeyMap.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | #ifndef ASTSTLKEYMAP_HH
#define ASTSTLKEYMAP_HH
//----------------------------------------------------------------
// File and Version Information:
// $Id: AstSTLKeyMap.hh 436 2010-01-13 16:51:56Z stroili $
//
// Description:
// one-directional association map ofbetween two data types.
// the operator [] ret... | 31.223684 | 83 | 0.59271 | brownd1978 |
1ec2fbaca2371284f2ebc1edd5e492bee3a1717d | 5,517 | cpp | C++ | DNLS/cpu-implementation/DNLS.cpp | pisto/nlchains | 6e94b7a1dcacdd6fccb2b9e862bc648c1b263286 | [
"MIT"
] | 1 | 2019-06-25T01:09:19.000Z | 2019-06-25T01:09:19.000Z | DNLS/cpu-implementation/DNLS.cpp | pisto/nlchains | 6e94b7a1dcacdd6fccb2b9e862bc648c1b263286 | [
"MIT"
] | null | null | null | DNLS/cpu-implementation/DNLS.cpp | pisto/nlchains | 6e94b7a1dcacdd6fccb2b9e862bc648c1b263286 | [
"MIT"
] | null | null | null | #include <cmath>
#include <vector>
#include <fftw3.h>
#include "../../common/utilities.hpp"
#include "../../common/configuration.hpp"
#include "../../common/results.hpp"
#include "../../common/symplectic.hpp"
#include "../../common/loop_control.hpp"
#include "../../common/wisdom_sync.hpp"
#include "../DNLS.hpp"
using ... | 38.3125 | 127 | 0.649085 | pisto |
1ec3a8617265c163a3f252b88e8e6b6eaba4c3f3 | 79 | cpp | C++ | Tests/DigitTest.cpp | Bow0628/Qentem-Engine | 9d16acfaa4b9c8822edbb5903aa3e90cce1b0cd0 | [
"MIT"
] | 2 | 2021-07-03T06:26:42.000Z | 2021-08-16T12:22:22.000Z | Tests/DigitTest.cpp | fahad512/Qentem-Engine | 95090ea13058a2d3006c564c26d1f9474a1071c5 | [
"MIT"
] | null | null | null | Tests/DigitTest.cpp | fahad512/Qentem-Engine | 95090ea13058a2d3006c564c26d1f9474a1071c5 | [
"MIT"
] | null | null | null | #include "DigitTest.hpp"
int main() { return Qentem::Test::RunDigitTests(); }
| 19.75 | 52 | 0.696203 | Bow0628 |
1ec3dec06f90df9e2cc7d44b30a598fda650e931 | 3,644 | cpp | C++ | src/maiken/pack.cpp | Dekken/maiken | 57151345be77aa1ed9860f54908ded70ff6d8f55 | [
"BSD-3-Clause"
] | 61 | 2015-02-05T07:43:13.000Z | 2020-05-19T13:26:50.000Z | src/maiken/pack.cpp | Dekken/maiken | 57151345be77aa1ed9860f54908ded70ff6d8f55 | [
"BSD-3-Clause"
] | 29 | 2016-11-21T03:37:42.000Z | 2020-10-18T12:04:53.000Z | src/maiken/pack.cpp | Dekken/maiken | 57151345be77aa1ed9860f54908ded70ff6d8f55 | [
"BSD-3-Clause"
] | 12 | 2016-01-05T05:35:29.000Z | 2020-03-15T11:03:37.000Z | /**
Copyright (c) 2022, Philip Deegan.
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 of conditions and the follow... | 38.357895 | 93 | 0.649835 | Dekken |
1ec4442b4ef23ec36e1c800acb9858ed777edeaa | 268 | hpp | C++ | src/stc/Optional.hpp | LunarWatcher/stc | 941888c967df2cf5e7c2d1e36edcdee09ed10153 | [
"MIT"
] | null | null | null | src/stc/Optional.hpp | LunarWatcher/stc | 941888c967df2cf5e7c2d1e36edcdee09ed10153 | [
"MIT"
] | null | null | null | src/stc/Optional.hpp | LunarWatcher/stc | 941888c967df2cf5e7c2d1e36edcdee09ed10153 | [
"MIT"
] | null | null | null | #pragma once
#if __has_include(<optional>)
#include <optional>
template <typename T>
using StdOptional = std::optional<T>;
#else
#include <experimental/optional>
template <typename T>
using StdOptional = std::experimental::optional<T>;
#endif
| 22.333333 | 55 | 0.69403 | LunarWatcher |
1eca1e3b0e17ddabf630826e466dd37cfa8ecae8 | 1,712 | cpp | C++ | impl/jamtemplate/common/sound_group.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 6 | 2021-09-05T08:31:36.000Z | 2021-12-09T21:14:37.000Z | impl/jamtemplate/common/sound_group.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 30 | 2021-05-19T15:33:03.000Z | 2022-03-30T19:26:37.000Z | impl/jamtemplate/common/sound_group.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 3 | 2021-05-23T16:06:01.000Z | 2021-10-01T01:17:08.000Z | #include "sound_group.hpp"
#include "random/random.hpp"
#include "sound.hpp"
#include <algorithm>
namespace {
std::shared_ptr<jt::Sound> loadSound(std::string const& filename)
{
auto snd = std::make_shared<jt::Sound>();
snd->load(filename);
return snd;
}
} // namespace
jt::SoundGroup::SoundGroup(std::vec... | 20.380952 | 87 | 0.630257 | Laguna1989 |
1ecc97bde4e6e9e2e17ba8a0f1b0dc935d0f7a2f | 57,344 | cxx | C++ | PWG/EMCAL/EMCALtasks/AliAnalysisTaskEmcalTriggerPatchClusterMatch.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWG/EMCAL/EMCALtasks/AliAnalysisTaskEmcalTriggerPatchClusterMatch.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWG/EMCAL/EMCALtasks/AliAnalysisTaskEmcalTriggerPatchClusterMatch.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 46.059438 | 310 | 0.695679 | maroozm |
1ecca6b25bb8fe54956c9dc44601e315f9d0bf88 | 446 | hpp | C++ | src/Engine.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | src/Engine.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | src/Engine.hpp | AgaBuu/TankBotFight | 154b176b697b5d88fffb4b0c9c9c2f8dac334afb | [
"MIT"
] | null | null | null | #pragma once
#include <SFML/System/Vector2.hpp>
#include <memory>
enum class Gear { Drive, Neutral, Reverse };
class Engine {
public:
virtual void set_gear(Gear) = 0;
[[nodiscard]] virtual float get_current_speed() const = 0;
[[nodiscard]] virtual sf::Vector2f get_position_delta(float rotation_radians) = 0;
v... | 29.733333 | 84 | 0.70852 | AgaBuu |
1eccfd96d413a263c0a9a473c59290c595bd7e45 | 1,134 | cpp | C++ | src/csapex_core/src/param/null_parameter.cpp | betwo/csapex | f2c896002cf6bd4eb7fba2903ebeea4a1e811191 | [
"BSD-3-Clause"
] | 21 | 2016-09-02T15:33:25.000Z | 2021-06-10T06:34:39.000Z | src/csapex_core/src/param/null_parameter.cpp | cogsys-tuebingen/csAPEX | e80051384e08d81497d7605e988cab8c19f6280f | [
"BSD-3-Clause"
] | null | null | null | src/csapex_core/src/param/null_parameter.cpp | cogsys-tuebingen/csAPEX | e80051384e08d81497d7605e988cab8c19f6280f | [
"BSD-3-Clause"
] | 10 | 2016-10-12T00:55:17.000Z | 2020-04-24T19:59:02.000Z | /// HEADER
#include <csapex/param/null_parameter.h>
/// PROJECT
#include <csapex/param/register_parameter.h>
#include <csapex/serialization/io/std_io.h>
#include <csapex/utility/yaml.h>
CSAPEX_REGISTER_PARAM(NullParameter)
using namespace csapex;
using namespace param;
NullParameter::NullParameter() : ParameterImpl... | 19.551724 | 139 | 0.738095 | betwo |
1ecd18516e68adf3b5710df766cbfee49a1ff29a | 599 | cpp | C++ | Dia2/C-PermutationDescentCounts.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | Dia2/C-PermutationDescentCounts.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | Dia2/C-PermutationDescentCounts.cpp | pauolivares/ICPCCL2018 | 72708a14ff5c1911ab87f7b758f131603603c808 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
long long dp[101][101];
long long mod = 1001113;
long long solve(long long a,long long b){
if(a==0 && b== 0) return 1;
if(b==0 ) return 1;
if(b>=a) return 0;
if(dp[a][b]!=-1) return dp[a][b];
return dp[a][b] = (((a-b)*solve(a-1,b-1))%mod + ((b+1)*solve(a-1,b))%m... | 18.71875 | 80 | 0.512521 | pauolivares |
1ecf5c4fb5a9e61cd9cf632b2401608d24e6c28b | 1,332 | hpp | C++ | include/tweedledum/utils/hash.hpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | include/tweedledum/utils/hash.hpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | include/tweedledum/utils/hash.hpp | AriJordan/tweedledum | 9f98aad8cb01587854247eb755ecf4a1eec41941 | [
"MIT"
] | null | null | null | /*--------------------------------------------------------------------------------------------------
| This file is distributed under the MIT License.
| See accompanying file /LICENSE for details.
*-------------------------------------------------------------------------------------------------*/
#pragma once
#include... | 23.368421 | 100 | 0.567568 | AriJordan |
1ed0f2023f31e1426b8dc324ab909ba7ed20edde | 1,237 | hpp | C++ | 9_ranges/filter.hpp | rgrover/yap-demos | d4e100f9fb835bea2a6505f2ed9b8e87ee1ee928 | [
"BSD-2-Clause"
] | null | null | null | 9_ranges/filter.hpp | rgrover/yap-demos | d4e100f9fb835bea2a6505f2ed9b8e87ee1ee928 | [
"BSD-2-Clause"
] | null | null | null | 9_ranges/filter.hpp | rgrover/yap-demos | d4e100f9fb835bea2a6505f2ed9b8e87ee1ee928 | [
"BSD-2-Clause"
] | null | null | null | #ifndef _FILTER_HPP
#define _FILTER_HPP
#include "range.hpp"
#include "range_expr.hpp"
#include <boost/yap/algorithm.hpp>
#include <boost/callable_traits/args.hpp>
#include <boost/callable_traits/return_type.hpp>
#include <boost/callable_traits/function_type.hpp>
#include <type_traits>
template <typename Predicate>... | 28.767442 | 114 | 0.742926 | rgrover |
1ed10d782a2f461a5471e60cc06762abc511c0dc | 20,585 | cc | C++ | src/CCA/Components/Arches/Properties.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 2 | 2021-12-17T05:50:44.000Z | 2021-12-22T21:37:32.000Z | src/CCA/Components/Arches/Properties.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | null | null | null | src/CCA/Components/Arches/Properties.cc | damu1000/Uintah | 0c768664c1fe0a80eff2bbbd9b837e27f281f0a5 | [
"MIT"
] | 1 | 2020-11-30T04:46:05.000Z | 2020-11-30T04:46:05.000Z | /*
* The MIT License
*
* Copyright (c) 1997-2020 The University of Utah
*
* 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... | 38.12037 | 214 | 0.595579 | damu1000 |
1ed1f24df57c20bbed87b228585b3e7dce5e5730 | 1,982 | cc | C++ | pw_rpc/fake_channel_output.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | pw_rpc/fake_channel_output.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | pw_rpc/fake_channel_output.cc | ffzwadd/pigweed | 75e038f0d852b310d135b93061bc769cb8bf90c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The Pigweed Authors
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | 29.58209 | 80 | 0.692735 | ffzwadd |
1ed31cfaff50f31ffc6baa199f9a6071773c54ea | 1,054 | cpp | C++ | src/6_2_voxel_grid.cpp | liwind/PCL_Example | 9f807412ecf8110e0e05d5f41df31335a1c7d4ae | [
"MIT"
] | 2 | 2019-12-05T15:05:11.000Z | 2021-04-17T09:15:04.000Z | src/6_2_voxel_grid.cpp | liwind/PCL_Example | 9f807412ecf8110e0e05d5f41df31335a1c7d4ae | [
"MIT"
] | null | null | null | src/6_2_voxel_grid.cpp | liwind/PCL_Example | 9f807412ecf8110e0e05d5f41df31335a1c7d4ae | [
"MIT"
] | 2 | 2019-12-05T15:05:15.000Z | 2021-04-18T01:57:24.000Z | #include <iostream>
#include <pcl/io/pcd_io.h>
#include <pcl/PCLPointCloud2.h>
#include <pcl/point_types.h>
#include <pcl/filters/voxel_grid.h>
using namespace std;
int main(int argc, char** argv)
{
pcl::PCLPointCloud2::Ptr cloud(new pcl::PCLPointCloud2());
pcl::PCLPointCloud2::Ptr cloud_filtered(new pcl::PCLPointC... | 31.939394 | 94 | 0.701139 | liwind |
1ed9532e2da37d7fb8b2fe6f2e25983f51b0106e | 5,492 | cpp | C++ | src/wcmodel.cpp | anrichter/qsvn | d048023ddcf7c23540cdde47096c2187b19e3710 | [
"MIT"
] | 22 | 2015-02-12T07:38:09.000Z | 2021-11-03T07:42:39.000Z | src/wcmodel.cpp | anrichter/qsvn | d048023ddcf7c23540cdde47096c2187b19e3710 | [
"MIT"
] | null | null | null | src/wcmodel.cpp | anrichter/qsvn | d048023ddcf7c23540cdde47096c2187b19e3710 | [
"MIT"
] | 17 | 2015-01-26T01:11:51.000Z | 2020-10-29T10:00:28.000Z | /********************************************************************************
* This file is part of QSvn Project http://www.anrichter.net/projects/qsvn *
* Copyright (c) 2004-2010 Andreas Richter <ar@anrichter.net> *
* ... | 31.028249 | 117 | 0.5437 | anrichter |
1eda477cefef2a4c78c409045f5588eaf7277aec | 9,855 | cpp | C++ | src/ExpressionContext.cpp | VincentPT/xpression | 3aed63a899e20ac0fe36eaa090f49f1ed85e4673 | [
"MIT"
] | null | null | null | src/ExpressionContext.cpp | VincentPT/xpression | 3aed63a899e20ac0fe36eaa090f49f1ed85e4673 | [
"MIT"
] | null | null | null | src/ExpressionContext.cpp | VincentPT/xpression | 3aed63a899e20ac0fe36eaa090f49f1ed85e4673 | [
"MIT"
] | null | null | null | #include "ExpressionContext.h"
#include "SimpleCompilerSuite.h"
#include "xutility.h"
#include <string.h>
#include <DefaultPreprocessor.h>
#include <CLamdaProg.h>
#include <Program.h>
#include <string>
#include <list>
#include "VariableManager.h"
#include "ExpressionGlobalScope.h"
#include "ExpressionInter... | 38.197674 | 135 | 0.645561 | VincentPT |
1edb5939708559a1085f61d7cc47d748fce51752 | 4,982 | hpp | C++ | include/robotoc/cost/task_space_3d_cost.hpp | mcx/robotoc | 4a1d2f522ecc8f9aa8dea17330b97148a2085270 | [
"BSD-3-Clause"
] | 58 | 2021-11-11T09:47:02.000Z | 2022-03-27T20:13:08.000Z | include/robotoc/cost/task_space_3d_cost.hpp | mcx/robotoc | 4a1d2f522ecc8f9aa8dea17330b97148a2085270 | [
"BSD-3-Clause"
] | 30 | 2021-10-30T10:31:38.000Z | 2022-03-28T14:12:08.000Z | include/robotoc/cost/task_space_3d_cost.hpp | mcx/robotoc | 4a1d2f522ecc8f9aa8dea17330b97148a2085270 | [
"BSD-3-Clause"
] | 12 | 2021-11-17T10:59:20.000Z | 2022-03-18T07:34:02.000Z | #ifndef ROBOTOC_TASK_SPACE_3D_COST_HPP_
#define ROBOTOC_TASK_SPACE_3D_COST_HPP_
#include "Eigen/Core"
#include "robotoc/robot/robot.hpp"
#include "robotoc/robot/contact_status.hpp"
#include "robotoc/robot/impulse_status.hpp"
#include "robotoc/cost/cost_function_component_base.hpp"
#include "robotoc/cost/cost_function... | 34.358621 | 85 | 0.644721 | mcx |
1edecb27d8e09c4670cba165a18a2b56fe1b62df | 5,438 | cpp | C++ | android/jni/JNIRegistStaticMethod.cpp | 15d23/NUIEngine | a1369d5cea90cca81d74a39b8a853b3fba850595 | [
"Apache-2.0"
] | 204 | 2017-05-08T05:41:29.000Z | 2022-03-29T16:57:44.000Z | android/jni/JNIRegistStaticMethod.cpp | 15d23/NUIEngine | a1369d5cea90cca81d74a39b8a853b3fba850595 | [
"Apache-2.0"
] | 7 | 2017-05-10T15:32:09.000Z | 2020-12-23T06:00:30.000Z | android/jni/JNIRegistStaticMethod.cpp | 15d23/NUIEngine | a1369d5cea90cca81d74a39b8a853b3fba850595 | [
"Apache-2.0"
] | 65 | 2017-05-25T05:46:56.000Z | 2021-02-06T11:07:38.000Z | #include "JNIRegistStaticMethod.h"
#include <stdlib.h>
extern JavaVM * gJavaVM; // 全局变量, 在JNI_OnLoad时获取
#define JR_MUTEX
JNIRegistStaticMethod::JNIRegistStaticMethod()
{
m_bRegistered = false;
m_isAttached = false;
m_class = NULL;
m_methodCallback = NULL;
}
int JNIRegistStaticMethod::UnregisterC... | 24.944954 | 135 | 0.683523 | 15d23 |
1edf28b4c16873887af05e48cd01f1bbd7fd38b0 | 1,508 | cpp | C++ | dependencies/PyMesh/tests/tools/Assembler/unit_test_driver.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | 5 | 2018-06-04T19:52:02.000Z | 2022-01-22T09:04:00.000Z | dependencies/PyMesh/tests/tools/Assembler/unit_test_driver.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | dependencies/PyMesh/tests/tools/Assembler/unit_test_driver.cpp | aprieels/3D-watermarking-spectral-decomposition | dcab78857d0bb201563014e58900917545ed4673 | [
"MIT"
] | null | null | null | /* This file is part of PyMesh. Copyright (c) 2015 by Qingnan Zhou */
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "Mesh/TriangleMeshTest.h"
#include "Mesh/TetrahedronMeshTest.h"
#include "ShapeFunctions/ShapeFunctionTest.h"
#include "ShapeFunctions/IntegratorTest.h"
#include "ShapeFunctions/FEBasisTest.h... | 40.756757 | 69 | 0.820955 | aprieels |
1edf879c820917e2e08561cc1df1f33663f58404 | 9,301 | hpp | C++ | include/aikido/constraint/uniform/detail/RnBoxConstraint-impl.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 181 | 2016-04-22T15:11:23.000Z | 2022-03-26T12:51:08.000Z | include/aikido/constraint/uniform/detail/RnBoxConstraint-impl.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 514 | 2016-04-20T04:29:51.000Z | 2022-02-10T19:46:21.000Z | include/aikido/constraint/uniform/detail/RnBoxConstraint-impl.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 31 | 2017-03-17T09:53:02.000Z | 2022-03-23T10:35:05.000Z | #include <stdexcept>
#include "aikido/constraint/uniform/RnBoxConstraint.hpp"
namespace aikido {
namespace constraint {
namespace uniform {
using constraint::ConstraintType;
//==============================================================================
extern template class RBoxConstraint<0>;
extern template cla... | 29.433544 | 80 | 0.571551 | personalrobotics |
1ee0729bb215ca814e8f741dc25b511d1e4734bb | 7,652 | cpp | C++ | lib/stages/RawReader.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 19 | 2018-12-14T00:51:52.000Z | 2022-02-20T02:43:50.000Z | lib/stages/RawReader.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 487 | 2018-12-13T00:59:53.000Z | 2022-02-07T16:12:56.000Z | lib/stages/RawReader.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 5 | 2019-05-09T19:52:19.000Z | 2021-03-27T20:13:21.000Z | #include "RawReader.hpp"
#include "Config.hpp" // for Config
#include "Hash.hpp" // for Hash, operator<, operator==
#include "StageFactory.hpp" // for REGISTER_KOTEKAN_STAGE, StageMakerTemplate
#include "buffer.h" // for mark_frame_full, wait_for_empty_frame, mark_frame_empty
#include... | 38.646465 | 99 | 0.618008 | eschnett |
1ee1c1a03180101329705d42a18c44e34535805b | 3,011 | cc | C++ | Source/BladeBase/source/utility/Delegate.cc | OscarGame/blade | 6987708cb011813eb38e5c262c7a83888635f002 | [
"MIT"
] | 146 | 2018-12-03T08:08:17.000Z | 2022-03-21T06:04:06.000Z | Source/BladeBase/source/utility/Delegate.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 1 | 2019-01-18T03:35:49.000Z | 2019-01-18T03:36:08.000Z | Source/BladeBase/source/utility/Delegate.cc | huangx916/blade | 3fa398f4d32215bbc7e292d61e38bb92aad1ee1c | [
"MIT"
] | 31 | 2018-12-03T10:32:43.000Z | 2021-10-04T06:31:44.000Z | /********************************************************************
created: 2013/11/21
filename: Delegate.cc
author: Crazii
purpose:
*********************************************************************/
#include <BladePCH.h>
#include <utility/Delegate.h>
namespace Blade
{
//////////////////////////////////... | 24.088 | 83 | 0.406177 | OscarGame |
1ee378688d73b111128c3a5e92105221a99bfaff | 8,324 | cpp | C++ | GameEngine/cMesh.cpp | GottaCodeHarder/GT-Engine | 44ae4d8c974605cc1cd5fd240af81f999b613e8a | [
"MIT"
] | 1 | 2017-09-15T23:56:00.000Z | 2017-09-15T23:56:00.000Z | GameEngine/cMesh.cpp | GottaCodeHarder/GT-Engine | 44ae4d8c974605cc1cd5fd240af81f999b613e8a | [
"MIT"
] | 5 | 2017-09-20T07:13:20.000Z | 2017-10-12T10:57:16.000Z | GameEngine/cMesh.cpp | GottaCodeHarder/GT-Engine | 44ae4d8c974605cc1cd5fd240af81f999b613e8a | [
"MIT"
] | null | null | null | #include "glew/include/glew.h"
#include "SDL/include/SDL_opengl.h"
#include <gl/GL.h>
#include <gl/GLU.h>
#include "cMesh.h"
#include "ResourceMesh.h"
#include "cTransform.h"
#include "Application.h"
#include "ModuleRenderer3D.h"
#include "GameObject.h"
cMesh::cMesh(GameObject* _gameObject) : Component(MESH, _gameObj... | 34.396694 | 203 | 0.704469 | GottaCodeHarder |
1ee59a5ae98048b0f7ffa8b13de4f4aab1e432bc | 4,703 | cpp | C++ | problem/Sumo.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | problem/Sumo.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | problem/Sumo.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | /***********************************************************************************
* AUTHOR
* - Eduardo Segredo
*
* LAST MODIFIED
* October 2018
************************************************************************************/
#include "Sumo.h"
bool Sumo::init (const vector<string> ¶ms) {
if ... | 26.273743 | 115 | 0.584946 | esegredo |
1ee6ca3ec182f0d67d3a2ffa921535469bee15ba | 366 | cpp | C++ | src/main.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | src/main.cpp | mwerlberger/cpp11_tutorial | e02e7a1fb61b029681060db97ff16e1b8be53ad1 | [
"BSD-3-Clause"
] | null | null | null | // system includes
#include <assert.h>
#include <cstdint>
#include <iostream>
int main(int /*argc*/, char** /*argv*/)
{
try
{
std::cout << "Hello World" << std::endl;
}
catch (std::exception& e)
{
std::cout << "[exception] " << e.what() << std::endl;
assert(false);
}
// std::cout << imp::... | 17.428571 | 57 | 0.557377 | mwerlberger |
1ef07f284291c1d3a93f5d07346049b8236e62f4 | 5,687 | cpp | C++ | lib/src/platform/gtk/dialog.cpp | perjonsson/DeskGap | 5e74de37c057de3bac3ac16b3fabdb79b934d21e | [
"MIT"
] | 1,910 | 2019-02-08T05:41:48.000Z | 2022-03-24T23:41:33.000Z | lib/src/platform/gtk/dialog.cpp | perjonsson/DeskGap | 5e74de37c057de3bac3ac16b3fabdb79b934d21e | [
"MIT"
] | 73 | 2019-02-13T02:58:20.000Z | 2022-03-02T05:49:34.000Z | lib/src/platform/gtk/dialog.cpp | ci010/DeskGap | b3346fea3dd3af7df9a0420131da7f4ac1518092 | [
"MIT"
] | 88 | 2019-02-13T12:41:00.000Z | 2022-03-25T05:04:31.000Z | #include "./BrowserWindow_impl.h"
#include "dialog.hpp"
namespace DeskGap {
namespace {
inline const char* NullableCStr(const std::optional<std::string>& str, const char* fallback = nullptr) {
return str.has_value() ? str->c_str() : fallback;
}
}
struct Dialog::Impl {
... | 37.913333 | 112 | 0.611043 | perjonsson |
1ef1fd4571a534f87a45240fe528c374e53a8d2c | 10,706 | cpp | C++ | pwiz/data/misc/PeakDataTest.cpp | edyp-lab/pwiz-mzdb | d13ce17f4061596c7e3daf9cf5671167b5996831 | [
"Apache-2.0"
] | 11 | 2015-01-08T08:33:44.000Z | 2019-07-12T06:14:54.000Z | pwiz/data/misc/PeakDataTest.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 61 | 2015-05-27T11:20:11.000Z | 2019-12-20T15:06:21.000Z | pwiz/data/misc/PeakDataTest.cpp | shze/pwizard-deb | 4822829196e915525029a808470f02d24b8b8043 | [
"Apache-2.0"
] | 4 | 2016-02-03T09:41:16.000Z | 2021-08-01T18:42:36.000Z | //
// $Id: PeakDataTest.cpp 4129 2012-11-20 00:05:37Z chambm $
//
//
// Original author: Darren Kessner <darren@proteowizard.org>
//
// Copyright 2007 Spielberg Family Center for Applied Proteomics
// Cedars Sinai Medical Center, Los Angeles, California 90048
//
// Licensed under the Apache License, Version 2.0 (the... | 22.211618 | 180 | 0.6204 | edyp-lab |
1ef6aab4ec1b0b6130682c2a119de5a12944fce4 | 3,277 | cpp | C++ | Day 18/solution2.cpp | Ocete/Advent-Of-Code-2017 | 201295b6ac7a2dfdb149ab3e6709525708ca66dd | [
"MIT"
] | 1 | 2018-02-02T20:07:01.000Z | 2018-02-02T20:07:01.000Z | Day 18/solution2.cpp | Ocete/Advent-Of-Code-2017 | 201295b6ac7a2dfdb149ab3e6709525708ca66dd | [
"MIT"
] | null | null | null | Day 18/solution2.cpp | Ocete/Advent-Of-Code-2017 | 201295b6ac7a2dfdb149ab3e6709525708ca66dd | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <list>
using namespace std;
void ReadCode (vector<vector<string> > & code) {
code.clear();
string str;
cin >> str;
while (cin) {
vector<string> new_line;
new_line.push_back(str);
if (str != "snd" && str != "rcv" ){
cin >> str;
new_lin... | 25.403101 | 92 | 0.575526 | Ocete |
1ef7f1c2d833232fe7f318f76626a80379ce42d9 | 4,087 | cpp | C++ | 3rdParty/boost/1.77.0/libs/asio/test/experimental/coro/exception.cpp | Mu-L/arangodb | a6bd3ccd6f622fab2a288d2e3a06ab8e338d3ec1 | [
"BSL-1.0",
"Apache-2.0"
] | 106 | 2015-08-07T04:23:50.000Z | 2020-12-27T18:25:15.000Z | 3rdParty/boost/1.77.0/libs/asio/test/experimental/coro/exception.cpp | Mu-L/arangodb | a6bd3ccd6f622fab2a288d2e3a06ab8e338d3ec1 | [
"BSL-1.0",
"Apache-2.0"
] | 130 | 2016-06-22T22:11:25.000Z | 2020-11-29T20:24:09.000Z | 3rdParty/boost/1.77.0/libs/asio/test/experimental/coro/exception.cpp | Mu-L/arangodb | a6bd3ccd6f622fab2a288d2e3a06ab8e338d3ec1 | [
"BSL-1.0",
"Apache-2.0"
] | 41 | 2015-07-08T19:18:35.000Z | 2021-01-14T16:39:56.000Z | //
// experimental/coro/exception.cpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2021 Klemens D. Morgenstern
// (klemens dot morgenstern at gmx dot net)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.o... | 23.900585 | 79 | 0.649865 | Mu-L |
1ef9dcfadf57af939eb6934da5e0edde6fc2abc0 | 901 | cpp | C++ | MultiComposite/MultiComposite/Compositor.cpp | DrPotatoNet/MultiComposite | d71e065661a55b22bfcec8b162859e4fbec18782 | [
"MIT"
] | 2 | 2020-09-06T08:14:15.000Z | 2020-09-06T19:03:12.000Z | MultiComposite/MultiComposite/Compositor.cpp | Bluscream/MultiComposite | eac46d3fc7167629181b0652087cb6c2ab12747a | [
"MIT"
] | 4 | 2020-09-07T09:50:31.000Z | 2020-09-30T05:16:31.000Z | MultiComposite/MultiComposite/Compositor.cpp | Bluscream/MultiComposite | eac46d3fc7167629181b0652087cb6c2ab12747a | [
"MIT"
] | 1 | 2020-09-29T20:57:15.000Z | 2020-09-29T20:57:15.000Z | #include "Compositor.h"
#include <cassert>
#include "Logger.h"
#include <string>
ICompositor* ICompositor::pD11Compositor;
D3D_FEATURE_LEVEL featureLevel;
UINT flags = D3D11_CREATE_DEVICE_SINGLETHREADED;
void D3D11Compositor::Init()
{
HRESULT hr = D3D11CreateDevice(
NULL,
D3D_DRIVER_TYPE_HARDWAR... | 21.452381 | 93 | 0.674806 | DrPotatoNet |
1efa947bdb52c2df00c3e74faa120ae5d53fab46 | 7,679 | cpp | C++ | Microsoft.WindowsAzure.Storage/src/xml_wrapper.cpp | JasonDictos/azure-storage-cpp | 8accecace59ad631cd7686f9e11fa7498fe717ac | [
"Apache-2.0"
] | null | null | null | Microsoft.WindowsAzure.Storage/src/xml_wrapper.cpp | JasonDictos/azure-storage-cpp | 8accecace59ad631cd7686f9e11fa7498fe717ac | [
"Apache-2.0"
] | null | null | null | Microsoft.WindowsAzure.Storage/src/xml_wrapper.cpp | JasonDictos/azure-storage-cpp | 8accecace59ad631cd7686f9e11fa7498fe717ac | [
"Apache-2.0"
] | 2 | 2020-04-06T11:22:08.000Z | 2020-11-14T19:16:58.000Z | /***
* ==++==
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 25.768456 | 149 | 0.63029 | JasonDictos |
1efd3eec8179fcabb009c7b871ffb59ca240e0f0 | 519 | cpp | C++ | HDUOJ/2107/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/2107/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/2107/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <climits>
#include <iomanip>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
int num;
while (cin >> num)
{
if (num == 0)
break;
int maxAC ... | 17.3 | 37 | 0.493256 | codgician |
480045f02400a442128bc7f8dac3c4f556842671 | 845 | cpp | C++ | examples/convex_hull/example_small.cpp | digu-007/Boost_Geometry_Competency_Test_2020 | 53a75c82ddf29bc7f842e653e2a1664839113b53 | [
"MIT"
] | null | null | null | examples/convex_hull/example_small.cpp | digu-007/Boost_Geometry_Competency_Test_2020 | 53a75c82ddf29bc7f842e653e2a1664839113b53 | [
"MIT"
] | null | null | null | examples/convex_hull/example_small.cpp | digu-007/Boost_Geometry_Competency_Test_2020 | 53a75c82ddf29bc7f842e653e2a1664839113b53 | [
"MIT"
] | null | null | null | /*
Boost Competency Test - GSoC 2020
digu_J - Digvijay Janartha
NIT Hamirpur - INDIA
*/
#include <algorithm>
#include <iostream>
#include <utility>
#include "../../includes/convex_hull_gift_wrapping.hpp"
#include <boost/geometry/geometry.hpp>
namespace bg = boost::geometry;
using bg::dsv;
int main()
{
... | 22.236842 | 67 | 0.595266 | digu-007 |
4803a70814664920e2971465545e5535280eedd8 | 31,198 | cc | C++ | gobi-cromo-plugin/gobi_gsm_modem.cc | doitmovin/chromiumos-platform2 | 6462aaf43072307b5a40eb045a89e473381b5fda | [
"BSD-3-Clause"
] | 5 | 2019-01-19T15:38:48.000Z | 2021-10-06T03:59:46.000Z | gobi-cromo-plugin/gobi_gsm_modem.cc | doitmovin/chromiumos-platform2 | 6462aaf43072307b5a40eb045a89e473381b5fda | [
"BSD-3-Clause"
] | null | null | null | gobi-cromo-plugin/gobi_gsm_modem.cc | doitmovin/chromiumos-platform2 | 6462aaf43072307b5a40eb045a89e473381b5fda | [
"BSD-3-Clause"
] | 2 | 2021-01-26T12:37:19.000Z | 2021-05-18T13:37:57.000Z | // Copyright (c) 2010 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 "gobi-cromo-plugin/gobi_gsm_modem.h"
#include <ctype.h> // for isspace(), to implement TrimWhitespaceASCII()
#include <stdio.h> // for ... | 35.614155 | 80 | 0.668504 | doitmovin |
4804cc559d007f9a4ec71d6b82738d862d9b10fd | 2,961 | cpp | C++ | clang/test/CXX/stmt.stmt/stmt.select/p3.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | clang/test/CXX/stmt.stmt/stmt.select/p3.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | clang/test/CXX/stmt.stmt/stmt.select/p3.cpp | medismailben/llvm-project | e334a839032fe500c3bba22bf976ab7af13ce1c1 | [
"Apache-2.0"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | // RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -verify %s
// RUN: %clang_cc1 -fsyntax-only -Wno-unused-value -std=c++1z -Wc++14-compat -verify %s -DCPP17
int f();
void g() {
if (int x = f()) { // expected-note 2{{previous definition}}
int x; // expected-error{{redefinition of 'x'}}
} else {
int x; // ... | 38.454545 | 110 | 0.670382 | medismailben |
48051423bc5c493b50ebae69a545a1c307765da5 | 834 | cpp | C++ | google/2015/r1a/a/a.cpp | suhwanhwang/problem-solving | 9421488fb97c4628bea831ac59ad5c5d9b8131d4 | [
"MIT"
] | null | null | null | google/2015/r1a/a/a.cpp | suhwanhwang/problem-solving | 9421488fb97c4628bea831ac59ad5c5d9b8131d4 | [
"MIT"
] | null | null | null | google/2015/r1a/a/a.cpp | suhwanhwang/problem-solving | 9421488fb97c4628bea831ac59ad5c5d9b8131d4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
void printSolution(const vector<int>& m) {
int m1 = 0;
for (int i = 1; i < (int)m.size(); ++i) {
if (m[i - 1] > m[i]) {
m1 += m[i - 1] - m[i];
}
}
int max_d = 0;
for (int i = 1; i < (int)m.size(); ++i)... | 19.857143 | 49 | 0.383693 | suhwanhwang |
4808e862bfc0d52cf5df59d3ce7118508cf15f97 | 1,933 | hpp | C++ | include/hfsm2/detail/shared/macros_off.hpp | amessing/HFSM2 | 419c6847adcc644cabb6634757ec1b403bf2e192 | [
"MIT"
] | null | null | null | include/hfsm2/detail/shared/macros_off.hpp | amessing/HFSM2 | 419c6847adcc644cabb6634757ec1b403bf2e192 | [
"MIT"
] | null | null | null | include/hfsm2/detail/shared/macros_off.hpp | amessing/HFSM2 | 419c6847adcc644cabb6634757ec1b403bf2e192 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
#if defined(__GNUC__) || defined(__GNUG__)
#pragma GCC diagnostic pop
#endif
#ifdef __clang__
#pragma clang diagnostic pop
#endif
#if _MSC_VER == 1900
#pragma warning(pop)
#endif
/////////////////////////////////////////////////////... | 21.965909 | 80 | 0.741852 | amessing |
48091586f2316542b3f3dcd6f8f27847601a2096 | 439 | cpp | C++ | C/2019122001CppStringManipulation/2019122001CppStringManipulation/stringmanipulation.cpp | AungWinnHtut/POL | ee8bdf655073134df8b8529ab0ece20e118b19e1 | [
"MIT"
] | 2 | 2016-02-10T10:22:13.000Z | 2020-01-19T09:49:28.000Z | C/2019122001CppStringManipulation/2019122001CppStringManipulation/stringmanipulation.cpp | AungWinnHtut/POL | ee8bdf655073134df8b8529ab0ece20e118b19e1 | [
"MIT"
] | null | null | null | C/2019122001CppStringManipulation/2019122001CppStringManipulation/stringmanipulation.cpp | AungWinnHtut/POL | ee8bdf655073134df8b8529ab0ece20e118b19e1 | [
"MIT"
] | 1 | 2020-01-19T09:22:29.000Z | 2020-01-19T09:22:29.000Z | #include<stdio.h>
#include<conio.h>
#include<string.h>
//size_t strlen(const char *s);
int myStrlen(const char *s);
int main()
{
char s1[4]={'a','b','c','d'};
char s2[4]={'e',' ','g','h'};
int i=0;
while(s2[i]>0)
{
i++;
}
printf("count = %d",i);
printf("\ncount2 = %d",strlen(s2));
printf("\ncount3 = %d",mySt... | 14.633333 | 38 | 0.544419 | AungWinnHtut |
480cc56e31a8c4c9948f2c76f1a697313526ba52 | 2,306 | cpp | C++ | implementations/divisors.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | 1 | 2019-12-15T22:23:20.000Z | 2019-12-15T22:23:20.000Z | implementations/divisors.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | null | null | null | implementations/divisors.cpp | LeoRiether/Competicao-Programativa | ad5bd4eba58792ad1ce7057fdf9fa6ef8970b17e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <iterator>
// Just so I can cout a vector
template <class T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& v) {
int a{0};
for (const auto& e : v) {
os << (a++ ? " " : "") << e;
}
return os;
}
// O(sqrt(n))
std::vector<int> ge... | 23.773196 | 70 | 0.519081 | LeoRiether |
480dd44b55b36de2c87762ac429a259273a77a24 | 1,754 | hpp | C++ | ext/hdmi/native/FillView.hpp | rsperanza/BB10-WebWorks-Framework | 4d68e97f07bba2eeca5b4299e6fafae042a4cbc2 | [
"Apache-2.0"
] | 1 | 2022-01-27T17:02:37.000Z | 2022-01-27T17:02:37.000Z | ext/hdmi/native/FillView.hpp | rsperanza/BB10-WebWorks-Framework | 4d68e97f07bba2eeca5b4299e6fafae042a4cbc2 | [
"Apache-2.0"
] | null | null | null | ext/hdmi/native/FillView.hpp | rsperanza/BB10-WebWorks-Framework | 4d68e97f07bba2eeca5b4299e6fafae042a4cbc2 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011-2012 Research In Motion Limited.
*
* 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 b... | 21.654321 | 91 | 0.701254 | rsperanza |
480df195db6e5c1d6d9427e60cbd5dffe2b84d32 | 2,000 | cpp | C++ | modules/trustchain/src/KeyPublishAction.cpp | TankerHQ/sdk-native | 5d9eb7c2048fdefae230590a3110e583f08c2c49 | [
"Apache-2.0"
] | 19 | 2018-12-05T12:18:02.000Z | 2021-07-13T07:33:22.000Z | modules/trustchain/src/KeyPublishAction.cpp | TankerHQ/sdk-native | 5d9eb7c2048fdefae230590a3110e583f08c2c49 | [
"Apache-2.0"
] | 3 | 2020-03-16T15:52:06.000Z | 2020-08-01T11:14:30.000Z | modules/trustchain/src/KeyPublishAction.cpp | TankerHQ/sdk-native | 5d9eb7c2048fdefae230590a3110e583f08c2c49 | [
"Apache-2.0"
] | 3 | 2020-01-07T09:55:32.000Z | 2020-08-01T01:29:28.000Z | #include <Tanker/Trustchain/KeyPublishAction.hpp>
#include <Tanker/Errors/AssertionError.hpp>
#include <Tanker/Errors/Exception.hpp>
#include <Tanker/Serialization/Serialization.hpp>
#include <Tanker/Trustchain/Errors/Errc.hpp>
#include <Tanker/Trustchain/Serialization.hpp>
#include <nlohmann/json.hpp>
#include <st... | 30.30303 | 80 | 0.6845 | TankerHQ |
480e4057f810f381ed34a96ffd35ccec1dae750d | 576 | cpp | C++ | tests/test_strcspn.cpp | sushisharkjl/aolc | 6658f7954611de969b1fe1de017ad96bbfadf759 | [
"BSD-3-Clause"
] | null | null | null | tests/test_strcspn.cpp | sushisharkjl/aolc | 6658f7954611de969b1fe1de017ad96bbfadf759 | [
"BSD-3-Clause"
] | null | null | null | tests/test_strcspn.cpp | sushisharkjl/aolc | 6658f7954611de969b1fe1de017ad96bbfadf759 | [
"BSD-3-Clause"
] | null | null | null | #include "aolc/_test_string.h"
#include <string.h>
#include "aolc/compare_buffer_functions.h"
#include "gtest/gtest.h"
TEST(strcspn, Basic) {
char str[] = {'x', 'x', 'x', 'X', 'y', 'X', 'X', '\0'};
char x[] = "x";
char xX[] = "xX";
char X[] = "X";
char y[] = "y";
char xyX[] = "xyX";
... | 27.428571 | 59 | 0.564236 | sushisharkjl |
480eecc0a0c8d313706107d8572398af58326e8b | 2,229 | hpp | C++ | src/assembler/Assembler.hpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | null | null | null | src/assembler/Assembler.hpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | null | null | null | src/assembler/Assembler.hpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | null | null | null | #ifndef ASSEMBLER_HPP
#define ASSEMBLER_HPP
#include <polyfem/ElementAssemblyValues.hpp>
#include <polyfem/Problem.hpp>
#include <Eigen/Sparse>
#include <vector>
#include <iostream>
#include <cmath>
#include <memory>
namespace polyfem
{
template<class LocalAssembler>
class Assembler
{
public:
void assemble(
... | 23.967742 | 83 | 0.740691 | ldXiao |
481455ffabbc21e4d72ae04a61143c43ed73ea65 | 3,694 | cpp | C++ | irob_vision_support/src/camera_preprocessor.cpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | 11 | 2018-06-07T22:56:06.000Z | 2021-11-04T14:56:36.000Z | irob_vision_support/src/camera_preprocessor.cpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | 2 | 2019-12-19T10:04:02.000Z | 2021-04-19T13:45:25.000Z | irob_vision_support/src/camera_preprocessor.cpp | BenGab/irob-saf | 3a0fee98239bd935aa99c9d9526eb9b4cfc8963c | [
"MIT"
] | 8 | 2018-05-24T23:45:01.000Z | 2021-05-07T23:33:43.000Z | /*
* camera_preprocessor.cpp
*
* Author(s): Tamas D. Nagy
* Created on: 2018-03-13
*
*/
#include <iostream>
#include <sstream>
#include <vector>
#include <cmath>
#include <ros/ros.h>
#include <ros/package.h>
#include <sensor_msgs/Image.h>
#include <irob_vision_support/camera_preprocessor.hpp>
namespace ... | 18.107843 | 134 | 0.67163 | BenGab |
4816d6f0f4fdd0fe18cbe816d1a799ce007d8a03 | 8,544 | hpp | C++ | gsa/wit/COIN/include/CglProbing.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 1 | 2019-10-25T05:25:23.000Z | 2019-10-25T05:25:23.000Z | gsa/wit/COIN/include/CglProbing.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 2 | 2019-09-04T17:34:59.000Z | 2020-09-16T08:10:57.000Z | gsa/wit/COIN/include/CglProbing.hpp | kant/CMMPPT | c64b339712db28a619880c4c04839aef7d3b6e2b | [
"Apache-2.0"
] | 18 | 2019-07-22T19:01:25.000Z | 2022-03-03T15:36:11.000Z | // Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
#ifndef CglProbing_H
#define CglProbing_H
#include <string>
#include "CglCutGenerator.hpp"
/** Probing Cut Generator Class */
class CglProbing : public CglCutGenerator {
friend void CglProbingUnitTest(const Osi... | 31.762082 | 79 | 0.670529 | kant |