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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9d3ee34e5bc71c5ea9d4dd3a28380d48297a732 | 11,380 | cpp | C++ | src/sledluaplugin_SharedSampleCode/ScopedSledDebugger-5.2.3.cpp | ViseEngine/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 158 | 2015-03-03T00:11:56.000Z | 2022-02-08T18:43:11.000Z | src/sledluaplugin_SharedSampleCode/ScopedSledDebugger-5.2.3.cpp | mcanthony/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 3 | 2015-04-30T13:00:43.000Z | 2015-07-07T22:58:35.000Z | src/sledluaplugin_SharedSampleCode/ScopedSledDebugger-5.2.3.cpp | mcanthony/SLED | 7815ee6feb656d43f70edba8280caa8a69d0983b | [
"Apache-2.0"
] | 48 | 2015-03-05T05:30:45.000Z | 2021-10-18T02:09:02.000Z | /*
* Copyright (C) Sony Computer Entertainment America LLC.
* All Rights Reserved.
*/
#include "ScopedSledDebugger.h"
#include <sce_sled/sled.h>
#include "../sleddebugger/assert.h"
#include "../sledluaplugin/Extras/extras.h"
#include "../sledcore/sleep.h"
#include <cstdio>
#include <cstring>
#include "fileut... | 30.923913 | 163 | 0.707996 | ViseEngine |
c9d657b49f5a221a0f2fedb755fadb70f7a65a8a | 1,774 | hpp | C++ | ShadowPeople/dx11/GraphicsPipelineImpl.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | ShadowPeople/dx11/GraphicsPipelineImpl.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | ShadowPeople/dx11/GraphicsPipelineImpl.hpp | SamuelSiltanen/ShadowPeople | 58f94a4397dc5084d9705d4378599cae480b4776 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 Samuel Siltanen
GraphicsPipelineImpl.hpp
*/
#pragma once
#include <d3d11.h>
#include "DX11Utils.hpp"
#include "ShaderResourcesImpl.hpp"
#include "ShaderImpl.hpp"
namespace graphics
{
class DeviceImpl;
class ShaderManagerImpl;
class TextureViewImpl;
class GraphicsPipelineImpl
{
publi... | 29.566667 | 100 | 0.75761 | SamuelSiltanen |
c9d6a7590e7733126552eb51efa9b32a1c234c49 | 2,266 | hpp | C++ | ising/free_energy/common.hpp | todo-group/exact | ee76421fab9b2b1eaf77d6b01830a18e66f7180a | [
"Apache-2.0"
] | 1 | 2021-07-27T14:45:49.000Z | 2021-07-27T14:45:49.000Z | ising/free_energy/common.hpp | todo-group/exact | ee76421fab9b2b1eaf77d6b01830a18e66f7180a | [
"Apache-2.0"
] | 1 | 2018-11-30T14:48:41.000Z | 2018-11-30T14:48:41.000Z | ising/free_energy/common.hpp | todo-group/exact | ee76421fab9b2b1eaf77d6b01830a18e66f7180a | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2015-2021 by Synge Todo <wistaria@phys.s.u-tokyo.ac.jp>
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... | 27.975309 | 75 | 0.69241 | todo-group |
c9d6e79cc6dd03bdd5c35210d1f475ec0a209caa | 426 | cpp | C++ | obi/p2/2018/f1/compensacao.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | obi/p2/2018/f1/compensacao.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | obi/p2/2018/f1/compensacao.cpp | homembaixinho/codeforces | 9394eaf383afedacdfe86ca48609425b14f84bdb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6+5;
int m, n, in[maxn], out[maxn];
long long ans, sum;
int main() {
cin.tie(0)->sync_with_stdio(0);
cin >> m >> n;
int x, v, y;
while (m--) {
cin >> x >> v >> y;
out[x] += v, in[y] += v, sum += v;
}
for (int i = 1; i <= n; i++)
a... | 20.285714 | 43 | 0.460094 | homembaixinho |
c9e2858d46eeccfdc95a141aee66bdb296534ee3 | 2,720 | hh | C++ | src/Distributed/BoundingVolumeDistributedBoundary.hh | as1m0n/spheral | 4d72822f56aca76d70724c543d389d15ff6ca48e | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 19 | 2020-10-21T01:49:17.000Z | 2022-03-15T12:29:17.000Z | src/Distributed/BoundingVolumeDistributedBoundary.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/Distributed/BoundingVolumeDistributedBoundary.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 5 | 2020-11-03T16:14:26.000Z | 2022-01-03T19:07:24.000Z | //---------------------------------Spheral++----------------------------------//
// BoundingVolumeDistributedBoundary
//
// Build a distributed boundary based on testing for intersecting bounding
// volumes of domains.
//
// Created by JMO, Tue Jan 19 09:22:37 PST 2010
//-----------------------------------------------... | 34.43038 | 91 | 0.655147 | as1m0n |
c9e2a344f319cb72edf2948f659c377e25c95c8c | 1,497 | hpp | C++ | Classifier/GlassReader.hpp | TomaszRewak/Classifiers | 35f383b4a87d905f9c15dfdec88a94ea9f8b1abb | [
"MIT"
] | null | null | null | Classifier/GlassReader.hpp | TomaszRewak/Classifiers | 35f383b4a87d905f9c15dfdec88a94ea9f8b1abb | [
"MIT"
] | null | null | null | Classifier/GlassReader.hpp | TomaszRewak/Classifiers | 35f383b4a87d905f9c15dfdec88a94ea9f8b1abb | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <fstream>
#include <string>
#include "CsvParser.hpp"
#include "FeatureSet.hpp"
#include "ClassSet.hpp"
using namespace std;
using namespace Classifier::Data;
namespace Classifier::Test::Readers
{
class GlassReader {
public:
using InitialSetType = FeatureSet<double, doub... | 23.390625 | 108 | 0.60187 | TomaszRewak |
5184b369d6932c95d475b4532ae3cc3d3569f6ab | 827 | cpp | C++ | src/bench/examples.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 13 | 2019-01-23T04:36:05.000Z | 2022-02-21T11:20:25.000Z | src/bench/examples.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | null | null | null | src/bench/examples.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 3 | 2019-01-24T07:48:15.000Z | 2021-06-11T13:34:44.000Z |
//此源码被清华学神尹成大魔王专业翻译分析并修改
//尹成QQ77025077
//尹成微信18510341407
//尹成所在QQ群721929980
//尹成邮箱 yinc13@mails.tsinghua.edu.cn
//尹成毕业于清华大学,微软区块链领域全球最有价值专家
//https://mvp.microsoft.com/zh-cn/PublicProfile/4033620
//版权所有(c)2015-2018比特币核心开发商
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/licenses/mit-license.php。
#include <ben... | 19.232558 | 58 | 0.689238 | yinchengtsinghua |
5188f0d64bca2c59fedec25ea6ab8ba45aa7656e | 5,308 | inl | C++ | Base/PLCore/include/PLCore/Container/StackIterator.inl | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Base/PLCore/include/PLCore/Container/StackIterator.inl | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 27 | 2019-06-18T06:46:07.000Z | 2020-02-02T11:11:28.000Z | Base/PLCore/include/PLCore/Container/StackIterator.inl | naetherm/PixelLight | d7666f5b49020334cbb5debbee11030f34cced56 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: StackIterator.inl *
* Stack iterator template implementation
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereb... | 31.784431 | 98 | 0.58685 | ktotheoz |
5198921e3e4692b55f89a0ccb6b8613d8eb8c525 | 1,124 | cpp | C++ | Source/03ModelModular/PreProcessing/VTKThread/vtkthreadmarchingcubes.cpp | BeyondXinXin/OpenBrowser | 0cc0486a36eff5e21a70b514bfc9f15bc9632784 | [
"Apache-2.0"
] | 1 | 2021-05-09T13:56:35.000Z | 2021-05-09T13:56:35.000Z | Source/03ModelModular/PreProcessing/VTKThread/vtkthreadmarchingcubes.cpp | BeyondXinXin/OpenBrowser | 0cc0486a36eff5e21a70b514bfc9f15bc9632784 | [
"Apache-2.0"
] | null | null | null | Source/03ModelModular/PreProcessing/VTKThread/vtkthreadmarchingcubes.cpp | BeyondXinXin/OpenBrowser | 0cc0486a36eff5e21a70b514bfc9f15bc9632784 | [
"Apache-2.0"
] | null | null | null | // 01 Frame includes
#include "vtkthreadmarchingcubes.h"
// VTK includes
#include <vtkImageCast.h>
VtkThreadMarchingCubes::VtkThreadMarchingCubes(QObject *parent) :
VtkThread(parent) {
this->Initial();
}
VtkThreadMarchingCubes::~VtkThreadMarchingCubes() {
}
void VtkThreadMarchingCubes::SetInputImageData(con... | 23.416667 | 91 | 0.738434 | BeyondXinXin |
519e0dc1c003343c30637324ffb229614bab5772 | 1,358 | cpp | C++ | AtCoder/AGC_017/B.cpp | kakira9618/competive_programming_sources | a735263eba1e617cf015cbd773b5a48937e6a4cf | [
"MIT"
] | 1 | 2017-11-03T15:53:28.000Z | 2017-11-03T15:53:28.000Z | AtCoder/AGC_017/B.cpp | kakira9618/competive_programming_sources | a735263eba1e617cf015cbd773b5a48937e6a4cf | [
"MIT"
] | null | null | null | AtCoder/AGC_017/B.cpp | kakira9618/competive_programming_sources | a735263eba1e617cf015cbd773b5a48937e6a4cf | [
"MIT"
] | null | null | null | //B - Moderate Differences: http://agc017.contest.atcoder.jp/tasks/agc017_b
//上げるor下げる幅が決まっていれば順番は関係ない。iを動かし、上げるのがi回、下げるのがN-i-1回の場合において、最小の場合と最大の場合の中にBが入っていればOK。
#include <map>
#include <set>
#include <list>
#include <cmath>
#include <queue>
#include <stack>
#include <cstdio>
#include <string>
#include <vector>
#inclu... | 23.824561 | 85 | 0.561856 | kakira9618 |
51a06a85196fa181a9c4194fbdfb4cc12ceeae20 | 39,040 | cpp | C++ | plugins/EstimationPlugin/src/base/measurement/MeasurementManager.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 1 | 2018-09-18T07:09:36.000Z | 2018-09-18T07:09:36.000Z | plugins/EstimationPlugin/src/base/measurement/MeasurementManager.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | null | null | null | plugins/EstimationPlugin/src/base/measurement/MeasurementManager.cpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 2 | 2020-06-18T04:45:30.000Z | 2021-07-20T02:11:54.000Z | //$Id: MeasurementManager.cpp 1398 2011-04-21 20:39:37Z $
//------------------------------------------------------------------------------
// MeasurementManager
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Co... | 33.684211 | 82 | 0.491368 | rockstorm101 |
51a7c631d00f7a39d3c2814d7a4c7ca312fd5bb5 | 2,553 | cpp | C++ | codes/UVA/10001-19999/uva10123.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/10001-19999/uva10123.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/10001-19999/uva10123.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <algorithm>
using namespace std;
#define N 30
struct block{
int x;
int w;
}b[3][N], rec[N];
int L, M, n, cnt[3], vis[3][N];
int ok, pace[3];
double wr1, wr2, wl1, wl2;
bool cmp(const block &a, const block &b){
return abs(a.x * a.w) < ab... | 22.394737 | 78 | 0.386996 | JeraKrs |
51a92fb5cad2d2aea18f49bfe24fb4d907157c41 | 1,423 | cpp | C++ | euhat/mfc/JyListCtrl.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/mfc/JyListCtrl.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | euhat/mfc/JyListCtrl.cpp | euhat/EuhatExpert | 3932238a0bd72a8f12b4ae6ced1ade6482228fe0 | [
"BSD-2-Clause"
] | null | null | null | #include "stdafx.h"
#include "JyListCtrl.h"
#include <EuhatPostDefMfc.h>
BEGIN_MESSAGE_MAP(JyListCtrl, CListCtrl)
ON_NOTIFY_REFLECT(LVN_COLUMNCLICK, &JyListCtrl::OnColumnClick)
END_MESSAGE_MAP()
void JyListCtrl::init()
{
vecCol_.resize(GetHeaderCtrl()->GetItemCount());
}
void JyListCtrl::sort()
{
int rowCount = G... | 21.892308 | 89 | 0.701335 | euhat |
51aae3e18d90f29908abd369f566e049ff227654 | 35,861 | cpp | C++ | mazebacktracking.cpp | fulgorit/mazegen | 0b983e7498230c84f43d18cc12d23038bac5953d | [
"BSD-3-Clause"
] | null | null | null | mazebacktracking.cpp | fulgorit/mazegen | 0b983e7498230c84f43d18cc12d23038bac5953d | [
"BSD-3-Clause"
] | null | null | null | mazebacktracking.cpp | fulgorit/mazegen | 0b983e7498230c84f43d18cc12d23038bac5953d | [
"BSD-3-Clause"
] | null | null | null | #include "mazebacktracking.h"
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
#include <QDebug>
#include <maze.h>
#include <algorithm>
#include "Cell.h"
#include "Matrix.h"
#define UP 0 //-y
#define DOWN 1 //+y
#define LEFT 2 //-x
#define RIGHT 3 //+x
#define prim
#define nodeade... | 42.090376 | 198 | 0.367837 | fulgorit |
51abb0b538519945f5ef5e98a3d38707a967246a | 54,874 | cpp | C++ | libpharos/convention.cpp | dberlin/pharos | 2ff59e71b59725742ab9c53a77ba49316e6fe44e | [
"RSA-MD"
] | null | null | null | libpharos/convention.cpp | dberlin/pharos | 2ff59e71b59725742ab9c53a77ba49316e6fe44e | [
"RSA-MD"
] | null | null | null | libpharos/convention.cpp | dberlin/pharos | 2ff59e71b59725742ab9c53a77ba49316e6fe44e | [
"RSA-MD"
] | null | null | null | // Copyright 2015-2019 Carnegie Mellon University. See LICENSE file for terms.
#include <boost/optional.hpp>
#include <boost/property_tree/ptree.hpp>
#include <rose.h>
// For isNOP().
#include <sageInterfaceAsm.h>
#include "misc.hpp"
#include "funcs.hpp"
#include "pdg.hpp"
#include "defuse.hpp"
#include "masm.hpp"
... | 39.908364 | 106 | 0.674254 | dberlin |
51aedfe805231a682e3a3f158ad3e7c766f44963 | 1,469 | cpp | C++ | KalmanFilterinCPP/KalmanFilterinCPP/CChatterDetectionSystem.cpp | YDWWYD/MECH552-Project | 7df8b583d3b4fcd46d71052dc72a767ea1440426 | [
"MIT"
] | null | null | null | KalmanFilterinCPP/KalmanFilterinCPP/CChatterDetectionSystem.cpp | YDWWYD/MECH552-Project | 7df8b583d3b4fcd46d71052dc72a767ea1440426 | [
"MIT"
] | null | null | null | KalmanFilterinCPP/KalmanFilterinCPP/CChatterDetectionSystem.cpp | YDWWYD/MECH552-Project | 7df8b583d3b4fcd46d71052dc72a767ea1440426 | [
"MIT"
] | null | null | null | #include "CChatterDetectionSystem.h"
CChatterDetectionSystem::CChatterDetectionSystem(int N, double spindleSpeed, double samplingPeriod, double lamda, double R,
double startFreq, double stopFreq, double TPE, double dt, double stopBandMag, double rippleMag,
double energyThreshold, double ene... | 47.387097 | 131 | 0.810075 | YDWWYD |
51af22f472b2c19f856a8297bfca53c75f71da8c | 31,800 | cpp | C++ | plugin/AL_USDMayaTestPlugin/AL/maya/test_EventHandler.cpp | wdas/AL_USDMaya | 64925975b503b1b0407f23fcc04d80b63837139b | [
"Apache-2.0"
] | 5 | 2017-12-04T16:56:32.000Z | 2019-05-24T05:20:18.000Z | plugin/AL_USDMayaTestPlugin/AL/maya/test_EventHandler.cpp | duskior/AL_USDMaya | 64925975b503b1b0407f23fcc04d80b63837139b | [
"Apache-2.0"
] | null | null | null | plugin/AL_USDMayaTestPlugin/AL/maya/test_EventHandler.cpp | duskior/AL_USDMaya | 64925975b503b1b0407f23fcc04d80b63837139b | [
"Apache-2.0"
] | 4 | 2018-03-17T15:55:28.000Z | 2021-02-01T01:25:38.000Z |
#include "AL/event/EventHandler.h"
#include <maya/MGlobal.h>
#include <gtest/gtest.h>
using namespace AL;
using namespace AL::event;
//----------------------------------------------------------------------------------------------------------------------
static const char* const eventTypeStrings[] =
{
"custom",
"... | 30.665381 | 146 | 0.630849 | wdas |
51b24b4a9541895edda173b526875d1ab668caa1 | 529 | cpp | C++ | 5176.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 5176.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | 5176.cpp | jaemin2682/BAEKJOON_ONLINE_JUDGE | 0d5c6907baee61e1fabdbcd96ea473079a9475ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <memory.h>
#include <math.h>
#include <queue>
using namespace std;
int main() {
int k;
cin >> k;
for (int i = 0; i < k; i++) {
int p, m;
cin >> p >> m;
vector<bool> seat(m+1);
for (int j = 1; j < m + 1; j++) seat[i] = fal... | 17.633333 | 50 | 0.521739 | jaemin2682 |
51b61982ffc62b3e61aab77f373d70bfc4b5d107 | 883 | cpp | C++ | libcaf_core/test/typed_behavior.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/typed_behavior.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/test/typed_behavior.cpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#define CAF_SUITE typed_behavior
#include "caf/typed_behavior.hpp"
#include "core-test.h... | 33.961538 | 79 | 0.659117 | seewpx |
51b9ad552559ad872edaaea3ec6eb3be70d1a95b | 1,902 | c++ | C++ | test/old-issue.c++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 25 | 2016-10-21T12:37:23.000Z | 2021-02-22T05:46:46.000Z | test/old-issue.c++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | null | null | null | test/old-issue.c++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 4 | 2016-09-05T10:23:18.000Z | 2020-07-09T19:37:37.000Z | // Ogonek
//
// Written in 2012-2013 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warranty.
... | 36.576923 | 97 | 0.617245 | libogonek |
51bd7e73f098dce538898e1725a9c910237bf527 | 2,930 | cpp | C++ | libdevcore/SnappyCompress.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | libdevcore/SnappyCompress.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | libdevcore/SnappyCompress.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | /**
* @CopyRight:
* FISCO-BCOS 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 Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope ... | 37.088608 | 99 | 0.654949 | imtypist |
51cf2f16562ba429e505b6de2010ddad86b2a1cb | 179 | cpp | C++ | Sources/Overload/OvUI/src/OvUI/Widgets/Layout/Group.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 755 | 2019-07-10T01:26:39.000Z | 2022-03-31T12:43:19.000Z | Sources/Overload/OvUI/src/OvUI/Widgets/Layout/Group.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 111 | 2020-02-28T23:30:10.000Z | 2022-01-18T13:57:30.000Z | Sources/Overload/OvUI/src/OvUI/Widgets/Layout/Group.cpp | kmqwerty/Overload | f3b8c751a05815400ed35dd2be20a3900f3454fd | [
"MIT"
] | 97 | 2019-11-06T15:19:56.000Z | 2022-03-25T08:40:04.000Z | /**
* @project: Overload
* @author: Overload Tech.
* @licence: MIT
*/
#include "OvUI/Widgets/Layout/Group.h"
void OvUI::Widgets::Layout::Group::_Draw_Impl()
{
DrawWidgets();
}
| 13.769231 | 47 | 0.670391 | kmqwerty |
51d3609ebcd099ee805a36d00fafbd8fca9ced06 | 3,658 | hpp | C++ | include/dracosha/validator/utils/foreach_if.hpp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 27 | 2020-09-18T13:45:33.000Z | 2022-03-16T21:14:37.000Z | include/dracosha/validator/utils/foreach_if.hpp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 7 | 2020-08-07T21:48:14.000Z | 2021-01-14T12:25:37.000Z | include/dracosha/validator/utils/foreach_if.hpp | evgeniums/cpp-validator | e4feccdce19c249369ddb631571b60613926febd | [
"BSL-1.0"
] | 1 | 2021-03-30T09:17:58.000Z | 2021-03-30T09:17:58.000Z | /**
@copyright Evgeny Sidorov 2020
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
/****************************************************************************/
/** @file validator/utils/foreach_if.hpp
*
* Defines helpers... | 29.739837 | 109 | 0.601422 | evgeniums |
51d3affb2e0f557c822ce797e09149a190ded6b0 | 3,261 | cpp | C++ | sources/Base/spThreadManager.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/Base/spThreadManager.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/Base/spThreadManager.cpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2020-02-15T09:17:41.000Z | 2020-05-21T14:10:40.000Z | /*
* Thread manager file
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#include "Base/spThreadManager.hpp"
#include "Base/spInputOutputLog.hpp"
namespace sp
{
#if defined(SP_PLATFORM_WINDOWS)
ThreadManager::Thre... | 22.335616 | 97 | 0.641521 | rontrek |
51d849ec82cd016560251cf2df988ac4843dee86 | 477 | cpp | C++ | src/flame/net/udp_packet.cpp | partyfly/php-flame | aa7b06a1183f4f32dd1adaeefd564c6fbf8e8ea9 | [
"MIT"
] | null | null | null | src/flame/net/udp_packet.cpp | partyfly/php-flame | aa7b06a1183f4f32dd1adaeefd564c6fbf8e8ea9 | [
"MIT"
] | null | null | null | src/flame/net/udp_packet.cpp | partyfly/php-flame | aa7b06a1183f4f32dd1adaeefd564c6fbf8e8ea9 | [
"MIT"
] | null | null | null | #include "deps.h"
#include "../flame.h"
#include "../coroutine.h"
#include "net.h"
#include "udp_packet.h"
namespace flame {
namespace net {
void udp_packet::init(const php::string& data, const struct sockaddr_storage* addr) {
prop("payload", 7) = data;
prop("remote_address", 14) = sock_addr2str(addr);
... | 25.105263 | 87 | 0.660377 | partyfly |
51d952e92524ef89f7ae064781fb79d9c6785caf | 935 | cpp | C++ | GU/Renderer/OrthographicCamera.cpp | ImGili/GU | 5337781a8921b47cdd2e4eafe3224b87c4bcf35d | [
"MIT"
] | 1 | 2021-12-10T07:34:31.000Z | 2021-12-10T07:34:31.000Z | GU/Renderer/OrthographicCamera.cpp | ImGili/GU | 5337781a8921b47cdd2e4eafe3224b87c4bcf35d | [
"MIT"
] | null | null | null | GU/Renderer/OrthographicCamera.cpp | ImGili/GU | 5337781a8921b47cdd2e4eafe3224b87c4bcf35d | [
"MIT"
] | null | null | null | /*
* @Author: ImGili
* @Description: 正交相机
*/
#include"Renderer/OrthographicCamera.h"
#include<glm/gtc/matrix_transform.hpp>
using namespace GU;
OrthographicCamera::OrthographicCamera(float left, float right, float bottom, float top)
: m_ProjectionMatrix(glm::ortho(left, right, bottom, top, -1.0f, 1.0f)), m_ViewM... | 33.392857 | 139 | 0.740107 | ImGili |
51db4360e12cfb106854d699f02741d125c440f4 | 9,236 | hpp | C++ | h5cpp/H5Dwrite.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | 9 | 2022-01-29T22:21:19.000Z | 2022-03-10T06:26:40.000Z | h5cpp/H5Dwrite.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | h5cpp/H5Dwrite.hpp | ChrisDrozdowski/h5cpp | 6e41361bf860610dcdaedb557d589af9371a7986 | [
"BSD-3-Clause-LBNL",
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 vargaconsulting, Toronto,ON Canada
* Author: Varga, Steven <steven@vargaconsulting.ca>
*/
#ifndef H5CPP_DWRITE_HPP
#define H5CPP_DWRITE_HPP
namespace h5 {
/** \func_write_hdr
* TODO: write doxy for here
* \par_file_path \par_dataset_path \par_ref \par_offset \par_count \par_dxpl \... | 43.158879 | 128 | 0.662949 | ChrisDrozdowski |
51dbcdfeb98daa4a09b903fb385b62222b33605b | 5,828 | cpp | C++ | test/BinaryActuatorTest.cpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | 2 | 2018-01-09T15:48:08.000Z | 2019-10-29T22:37:14.000Z | test/BinaryActuatorTest.cpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | null | null | null | test/BinaryActuatorTest.cpp | davidorlea/smarty-esp8266 | 69cdac544a03c58cebe9f44001470d5c66c82b33 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "Smarty/Transducer/BinaryActuator.hpp"
using ::testing::Return;
class BinaryActuatorTest : public TestFixture {};
TEST_F(BinaryActuatorTest, testThatSetupSetsPinToOutput) {
EXPECT_CALL(*TestFixture::arduinoMock, pinMode(1, OUTPUT))
.Times(1);
Smarty... | 32.377778 | 83 | 0.762697 | davidorlea |
51dc51dc4598de1d4b24250cc08cc75927589510 | 217 | cpp | C++ | Game/Source/StarterProject/StarterProject.cpp | monkeykane/UnrealGDKStarterProject | 30fd18ffc8e397bf87181ef04b779f0e150e606f | [
"MIT"
] | 6 | 2018-07-31T16:12:10.000Z | 2019-02-09T14:41:19.000Z | Game/Source/StarterProject/StarterProject.cpp | monkeykane/UnrealGDKStarterProject | 30fd18ffc8e397bf87181ef04b779f0e150e606f | [
"MIT"
] | 6 | 2018-08-09T15:59:50.000Z | 2019-03-27T14:33:06.000Z | Game/Source/StarterProject/StarterProject.cpp | monkeykane/UnrealGDKStarterProject | 30fd18ffc8e397bf87181ef04b779f0e150e606f | [
"MIT"
] | 10 | 2018-08-15T08:48:22.000Z | 2021-08-06T08:54:58.000Z | // Copyright (c) Improbable Worlds Ltd, All Rights Reserved
#include "StarterProject.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, StarterProject, "StarterProject" );
| 31 | 90 | 0.806452 | monkeykane |
51e39c08bf5cb97718840952ed07e2daef21ada4 | 729 | hpp | C++ | include/sim0mqpp/any.hpp | riebl/sim0mqpp | d888777db7fa76b6d624d1d161038ccc278192ab | [
"BSD-3-Clause"
] | null | null | null | include/sim0mqpp/any.hpp | riebl/sim0mqpp | d888777db7fa76b6d624d1d161038ccc278192ab | [
"BSD-3-Clause"
] | null | null | null | include/sim0mqpp/any.hpp | riebl/sim0mqpp | d888777db7fa76b6d624d1d161038ccc278192ab | [
"BSD-3-Clause"
] | 2 | 2020-04-17T15:11:04.000Z | 2021-11-15T10:22:24.000Z | #pragma once
#include "field_type.hpp"
#include "quantity.hpp"
#include <boost/variant/variant.hpp>
#include <string>
namespace sim0mqpp
{
// forward declarations
class SerializationInput;
class SerializationOutput;
using Any = boost::variant<
std::int8_t,
std::int16_t,
std::int32_t,
std::int64_t,
... | 18.225 | 49 | 0.70096 | riebl |
51e39c829e568ff436c99587f390197efcf4b6b0 | 3,340 | cpp | C++ | code archive/skyoj 151.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/skyoj 151.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/skyoj 151.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | //{
#include<bits/stdc++.h>
using namespace std;
typedef int ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_a.end(... | 22.416107 | 129 | 0.523952 | brianbbsu |
51e59faf787253da31bfb331f56be35cb4c229f9 | 2,508 | cpp | C++ | src/chat.cpp | burnedram/csgo-plugin-color-say | 64adc99eefa5edfd44c0716e3b0c0d5983a99ee8 | [
"MIT"
] | 5 | 2017-10-17T03:26:24.000Z | 2021-07-08T23:24:05.000Z | src/chat.cpp | burnedram/csgo-plugin-color-say | 64adc99eefa5edfd44c0716e3b0c0d5983a99ee8 | [
"MIT"
] | 1 | 2016-10-29T12:59:12.000Z | 2017-04-23T18:45:07.000Z | src/chat.cpp | burnedram/csgo-plugin-color-say | 64adc99eefa5edfd44c0716e3b0c0d5983a99ee8 | [
"MIT"
] | 5 | 2016-09-15T10:11:55.000Z | 2022-02-15T16:58:25.000Z | #include "chat.h"
#include "recipientfilters.h"
#include "globals.h"
#include "utils.h"
#include <eiface.h>
#include <cstrike15_usermessages.pb.h>
using namespace std;
namespace colorsay {
namespace chat {
void say_all(const string &str) {
vector<int> indices;
indices.reserve(Glo... | 33 | 106 | 0.548644 | burnedram |
51e8a9b5d3a477fb41c8560f1e6c83e06de58b23 | 1,779 | cpp | C++ | src/mono/nodejsfunc.cpp | wenkaili/edge | 6c2edc11f96ed1785e63f4f731f30661c6fe9051 | [
"Apache-2.0"
] | null | null | null | src/mono/nodejsfunc.cpp | wenkaili/edge | 6c2edc11f96ed1785e63f4f731f30661c6fe9051 | [
"Apache-2.0"
] | null | null | null | src/mono/nodejsfunc.cpp | wenkaili/edge | 6c2edc11f96ed1785e63f4f731f30661c6fe9051 | [
"Apache-2.0"
] | null | null | null | #include "edge.h"
static MonoClass* GetNodejsFuncClass()
{
static MonoClass* klass;
if (!klass)
klass = mono_class_from_name(MonoEmbedding::GetImage(), "", "NodejsFunc");
return klass;
}
NodejsFunc::NodejsFunc(Handle<Function> function)
{
DBG("NodejsFunc::NodejsFunc");
static MonoMethod... | 26.954545 | 118 | 0.70489 | wenkaili |
51e9109aa535f6ff2b508e2f70a05ea265a2054d | 390 | cpp | C++ | Src/RT/Light.cpp | QuaternionMark/Ray-Tracer | 48accbf479520daace3d225cd5ff2421211b8df0 | [
"Zlib"
] | null | null | null | Src/RT/Light.cpp | QuaternionMark/Ray-Tracer | 48accbf479520daace3d225cd5ff2421211b8df0 | [
"Zlib"
] | null | null | null | Src/RT/Light.cpp | QuaternionMark/Ray-Tracer | 48accbf479520daace3d225cd5ff2421211b8df0 | [
"Zlib"
] | null | null | null | #include "Light.h"
Light::Light(const Vector3f& position, const Vector3f& diff, const Vector3f& spec)
: position(position), diffuseColor(diff), specularColor(spec) { }
const Vector3f Light::getPosition() const {
return position;
}
const Vector3f Light::getDiffuseColor() const {
return diffuseColor;
}
const ... | 24.375 | 82 | 0.741026 | QuaternionMark |
51ef5d1be67375ec23aa840cc8d5aba204f76f51 | 3,180 | cc | C++ | src/bin/netconf/unix_control_socket.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 273 | 2015-01-22T14:14:42.000Z | 2022-03-13T10:27:44.000Z | src/bin/netconf/unix_control_socket.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 104 | 2015-01-16T16:37:06.000Z | 2021-08-08T19:38:45.000Z | src/bin/netconf/unix_control_socket.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 133 | 2015-02-21T14:06:39.000Z | 2022-02-27T08:56:40.000Z | // Copyright (C) 2018-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
/// @file unix_control_socket.cc
/// Contains... | 32.44898 | 82 | 0.675472 | oss-mirror |
51f208475877fd30a44382690d108151dc792785 | 1,098 | cpp | C++ | 1577/2950327_AC_0MS_88K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 1577/2950327_AC_0MS_88K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 1577/2950327_AC_0MS_88K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<cstdio>
const int SIZE=100,INF=-1;
int level=0,nodeNum;
char leaves[SIZE][SIZE];
struct Node{
char value;
int left,right;
}tree[SIZE*SIZE];
void PushTree(int root,int leaf){
if(root==leaf)
return;
if(tree[leaf].value<tree[root].value){
if(tree[root].left==INF)
tree[root].left=leaf;
... | 18.3 | 54 | 0.58561 | vandreas19 |
51f462e2211211dce4a6ac3ddd06ab6de177b1ec | 1,923 | hpp | C++ | tests/src/TextDiffTests.hpp | Ishiko-Cpp/Diff | 45ecdcc66c66978512a0eb2b6f4f47b2f9099e09 | [
"MIT"
] | null | null | null | tests/src/TextDiffTests.hpp | Ishiko-Cpp/Diff | 45ecdcc66c66978512a0eb2b6f4f47b2f9099e09 | [
"MIT"
] | null | null | null | tests/src/TextDiffTests.hpp | Ishiko-Cpp/Diff | 45ecdcc66c66978512a0eb2b6f4f47b2f9099e09 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2021-2022 Xavier Leclercq
Released under the MIT License
See https://github.com/ishiko-cpp/diff/blob/main/LICENSE.txt
*/
#ifndef _ISHIKO_CPP_DIFF_TESTS_TEXTDIFFTESTS_HPP_
#define _ISHIKO_CPP_DIFF_TESTS_TEXTDIFFTESTS_HPP_
#include <Ishiko/TestFramework/Core.hpp>
class TextDiffTests : publ... | 40.0625 | 88 | 0.75039 | Ishiko-Cpp |
51f5eaad6ef3309f382bb6ba14fa20d769fcfebc | 68,695 | cpp | C++ | CPVulkan/Extensions.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | 1 | 2019-11-13T00:47:05.000Z | 2019-11-13T00:47:05.000Z | CPVulkan/Extensions.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | null | null | null | CPVulkan/Extensions.cpp | MatthewSmit/CPVulkan | d96f2f6db4cbbabcc41c2023a48ec63d1950dec0 | [
"MIT"
] | null | null | null | #include "Extensions.h"
#include "CommandBuffer.h"
#include "Instance.h"
#include "Trampoline.h"
ExtensionGroup::ExtensionGroup() = default;
ExtensionGroup::ExtensionGroup(std::vector<Extension>&& extensions):
extensions{extensions}
{
}
VkResult ExtensionGroup::MakeInstanceCopy(int vulkanVersion, const std::vector... | 32.160581 | 165 | 0.755994 | MatthewSmit |
51f9c473bf0bf547df4218c8e27073551c3f5e7d | 2,954 | cpp | C++ | powershell_cpp.cpp | yisonPylkita/powershell_cpp | 72cecf9df3fe4f72fffb0e7c30ba29a6e0167aac | [
"MIT"
] | 12 | 2018-08-25T03:38:37.000Z | 2021-03-30T22:55:57.000Z | powershell_cpp.cpp | yisonPylkita/powershell_cpp | 72cecf9df3fe4f72fffb0e7c30ba29a6e0167aac | [
"MIT"
] | null | null | null | powershell_cpp.cpp | yisonPylkita/powershell_cpp | 72cecf9df3fe4f72fffb0e7c30ba29a6e0167aac | [
"MIT"
] | 4 | 2018-08-25T03:38:38.000Z | 2018-12-10T02:55:37.000Z | #using <mscorlib.dll>
#include <vcclr.h>
#include <memory>
#include <powershell_cpp/string.hpp>
#pragma managed
using namespace System;
using namespace System::Management::Automation;
ref class PSOutHelper
{
public:
void OnDataAddedDebug(Object ^sender, DataAddedEventArgs ^args)
{
ConsoleColor origi... | 32.822222 | 139 | 0.670278 | yisonPylkita |
51fff4d94f8a667ec18066104a85f63690f4a7ad | 733 | cpp | C++ | CSC/CSC114/GaddisExamples/Chapter17/Program 17-17.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | 4 | 2020-02-14T23:54:05.000Z | 2022-01-30T18:29:06.000Z | CSC/CSC114/GaddisExamples/Chapter17/Program 17-17.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | null | null | null | CSC/CSC114/GaddisExamples/Chapter17/Program 17-17.cpp | HNSS-US/DelTech | a424da4e10ec0a33caaa6ed1c1d78837bdc6b0a2 | [
"MIT"
] | 6 | 2020-02-24T07:06:47.000Z | 2022-02-03T02:46:46.000Z | #include <iostream>
#include <string>
#include <map>
#include "Customer.h"
using namespace std;
int main()
{
// Create some Customer objects.
Customer customer1(1001, "Sarah Scott");
Customer customer2(1002, "Austin Hill");
Customer customer3(1003, "Megan Cruz");
// Create a map to hold th... | 24.433333 | 49 | 0.620737 | HNSS-US |
a401b0c12583a725783611dbf67d8ef9f4720376 | 4,110 | cpp | C++ | frontend/services/gui/src/widgets/ImageWidget.cpp | schatzkn/megamol | ab3a65edfdbf531dd5543203bf48cf293f927322 | [
"BSD-3-Clause"
] | null | null | null | frontend/services/gui/src/widgets/ImageWidget.cpp | schatzkn/megamol | ab3a65edfdbf531dd5543203bf48cf293f927322 | [
"BSD-3-Clause"
] | null | null | null | frontend/services/gui/src/widgets/ImageWidget.cpp | schatzkn/megamol | ab3a65edfdbf531dd5543203bf48cf293f927322 | [
"BSD-3-Clause"
] | null | null | null | /*
* ImageWidget_gl.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
#include "ImageWidget.h"
#include "mmcore/misc/PngBitmapCodec.h"
#include "mmcore/utility/FileUtils.h"
#include "vislib/graphics/BitmapImage.h"
using namespace megamol;
using namespace megamol::gui;
... | 35.73913 | 115 | 0.63017 | schatzkn |
a4042db5c6e7463e1d312b9d0e3f2e182121cb38 | 14,232 | hpp | C++ | include/seqan3/alignment/pairwise/policy/banded_score_trace_dp_matrix_policy.hpp | anbratu/seqan3 | 8cbfe77a996572065b57c3fe67094cc56a2c43da | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | include/seqan3/alignment/pairwise/policy/banded_score_trace_dp_matrix_policy.hpp | anbratu/seqan3 | 8cbfe77a996572065b57c3fe67094cc56a2c43da | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | include/seqan3/alignment/pairwise/policy/banded_score_trace_dp_matrix_policy.hpp | anbratu/seqan3 | 8cbfe77a996572065b57c3fe67094cc56a2c43da | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2019, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2019, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 48.573379 | 120 | 0.613828 | anbratu |
a40a20afc8d994f57554be3bd4128fcf9d447275 | 754 | cpp | C++ | daily_challenge/September_LeetCoding_Challenge_2021/maximumConsecutiveOnes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | daily_challenge/September_LeetCoding_Challenge_2021/maximumConsecutiveOnes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | daily_challenge/September_LeetCoding_Challenge_2021/maximumConsecutiveOnes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @Email : architsingh456@gmail.com
* @file : maximumConsecutiveOnes.cpp
* @created : Tuesday Sep 21, 2021 14:13:29 IST
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define P pair<int,int>
void init(){
freopen("... | 20.378378 | 51 | 0.513263 | archit-1997 |
a41335f30719ba12228f13121b096c5dc5ad32ee | 614 | hpp | C++ | include/ion/log/output.hpp | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/log/output.hpp | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/log/output.hpp | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
namespace ion { namespace log
{
enum Manipulator
{
Endl = '\n',
Tab = '\t',
Space = ' '
};
class ConsoleOutput
{
public:
ConsoleOutput() {}
virtual ~ConsoleOutput() {}
ConsoleOutput& operator<<(const Manipulator... | 17.542857 | 54 | 0.486971 | dvdbrink |
a416bc754a5121e6338ece302781f6fad8327a75 | 1,193 | cpp | C++ | src/numerics/tensor_op_add.cpp | UB-Quantic/exatn | 031a00894be2f286c561a091f76daf067f18b4c2 | [
"BSD-3-Clause"
] | 1 | 2021-04-15T10:43:58.000Z | 2021-04-15T10:43:58.000Z | src/numerics/tensor_op_add.cpp | UB-Quantic/exatn | 031a00894be2f286c561a091f76daf067f18b4c2 | [
"BSD-3-Clause"
] | null | null | null | src/numerics/tensor_op_add.cpp | UB-Quantic/exatn | 031a00894be2f286c561a091f76daf067f18b4c2 | [
"BSD-3-Clause"
] | null | null | null | /** ExaTN::Numerics: Tensor operation: Adds a tensor to another tensor
REVISION: 2020/08/11
Copyright (C) 2018-2020 Dmitry I. Lyakh (Liakh)
Copyright (C) 2018-2020 Oak Ridge National Laboratory (UT-Battelle) **/
#include "exatn_service.hpp"
#include "tensor_op_add.hpp"
#include "tensor_node_executor.hpp"
namespace... | 24.854167 | 119 | 0.730092 | UB-Quantic |
a41d4519d70f1e6310a89765f8f55a2f05d5d3b1 | 30,470 | cpp | C++ | compiler/codegen_llvm/lib/lumen/EIR/IR/EIRTypes.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 2,939 | 2019-08-29T16:52:20.000Z | 2022-03-31T05:42:30.000Z | compiler/codegen_llvm/lib/lumen/EIR/IR/EIRTypes.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 235 | 2019-08-29T23:44:13.000Z | 2022-03-17T11:43:25.000Z | compiler/codegen_llvm/lib/lumen/EIR/IR/EIRTypes.cpp | mlwilkerson/lumen | 048df6c0840c11496e2d15aa9af2e4a8d07a6e0f | [
"Apache-2.0"
] | 95 | 2019-08-29T19:11:28.000Z | 2022-01-03T05:14:16.000Z | #include "lumen/EIR/IR/EIRTypes.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/SMLoc.h"
#include "llvm/Support/raw_ostream.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Dialect.h"
#include "mlir/IR/DialectImplementatio... | 33.893215 | 80 | 0.599409 | mlwilkerson |
a41f3176880cc5a66fb9cc437dfbc1194ff32538 | 1,960 | cc | C++ | src/eckit/utils/LZ4Compressor.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | null | null | null | src/eckit/utils/LZ4Compressor.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | 14 | 2019-09-30T19:24:29.000Z | 2020-10-15T16:02:11.000Z | src/eckit/utils/LZ4Compressor.cc | wsmigaj/eckit | 1a44679243fde8907e760f9cc9eaca87efbd651a | [
"Apache-2.0"
] | 2 | 2019-10-17T13:52:08.000Z | 2019-11-25T14:53:52.000Z | /*
* (C) Copyright 1996- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an interg... | 30.153846 | 120 | 0.621429 | wsmigaj |
a4200c3d979f4fc6478345a294bfdaf8a4b00dda | 1,050 | cpp | C++ | tools/frame-optimizer/src/main.cpp | parkerchard/hifi | ae348babe4624bbce4151c9d84fa9cbeedf2c0eb | [
"Apache-2.0"
] | 1 | 2019-07-08T06:54:01.000Z | 2019-07-08T06:54:01.000Z | tools/frame-optimizer/src/main.cpp | parkerchard/hifi | ae348babe4624bbce4151c9d84fa9cbeedf2c0eb | [
"Apache-2.0"
] | null | null | null | tools/frame-optimizer/src/main.cpp | parkerchard/hifi | ae348babe4624bbce4151c9d84fa9cbeedf2c0eb | [
"Apache-2.0"
] | 2 | 2019-06-13T22:25:13.000Z | 2022-01-31T15:17:55.000Z | //
// Created by Bradley Austin Davis on 2018/10/14
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QtCore/QCoreApplication>
#ifdef Q_OS_WIN
#include <Windows.h>
#end... | 26.25 | 122 | 0.722857 | parkerchard |
a42205b4055b4b66b2e94c1930f57b2ab97c07e4 | 1,672 | cpp | C++ | examples/BFS.cpp | aimsky/PhiGraph | 9fd89c0093172f03855415472b974353cb4b4fc8 | [
"Apache-2.0"
] | 3 | 2016-05-25T08:04:30.000Z | 2016-06-01T08:02:32.000Z | examples/BFS.cpp | aimsky/PhiGraph | 9fd89c0093172f03855415472b974353cb4b4fc8 | [
"Apache-2.0"
] | null | null | null | examples/BFS.cpp | aimsky/PhiGraph | 9fd89c0093172f03855415472b974353cb4b4fc8 | [
"Apache-2.0"
] | null | null | null | #include "phigraph/phigraph.h"
class BFS:public PhiGraphProgram{
public:
uphiLong* parents;
BFS(Graph<Vertex>& phigraph,uphiLong start){
//phigraph.vertex[start].setVisited();
parents = phimalloc(uphiLong,phigraph.vertexNum);
parallel_for(phiLong i = 0;i < phigraph.vertexNum;++i){
parents[i] = ... | 29.333333 | 85 | 0.660287 | aimsky |
a4226a12a9a35b4d93012b0c09cff0b851dc3247 | 641 | cc | C++ | src/analyzer/main.cc | loganek/workertracker | b4e66f02e6a7cdf91e5f0a418cabbd23ac636f2e | [
"Beerware"
] | null | null | null | src/analyzer/main.cc | loganek/workertracker | b4e66f02e6a7cdf91e5f0a418cabbd23ac636f2e | [
"Beerware"
] | 1 | 2017-01-10T10:13:37.000Z | 2017-01-10T10:13:37.000Z | src/analyzer/main.cc | loganek/workertracker | b4e66f02e6a7cdf91e5f0a418cabbd23ac636f2e | [
"Beerware"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <marcin.kolny@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, ... | 35.611111 | 83 | 0.51014 | loganek |
a428bedb5781698822e0a29929571bd4c9ac5818 | 3,403 | cpp | C++ | TWMapper/TWMapper/SpherePropDlg.cpp | zbeckerman/attac | ca07aeb7fbb14e2aea8d19aeb0b044bbc27721e7 | [
"Apache-2.0"
] | 1 | 2019-05-01T23:43:55.000Z | 2019-05-01T23:43:55.000Z | TWMapper/TWMapper/SpherePropDlg.cpp | zbeckerman/attac | ca07aeb7fbb14e2aea8d19aeb0b044bbc27721e7 | [
"Apache-2.0"
] | null | null | null | TWMapper/TWMapper/SpherePropDlg.cpp | zbeckerman/attac | ca07aeb7fbb14e2aea8d19aeb0b044bbc27721e7 | [
"Apache-2.0"
] | null | null | null | // SpherePropDlg.cpp : implementation file
//
#include "stdafx.h"
#include "MouseSel.h"
#include "SpherePropDlg.h"
// CSpherePropDlg dialog
IMPLEMENT_DYNAMIC(CSpherePropDlg, CDialog)
CSpherePropDlg::CSpherePropDlg(CWnd* pParent /*=NULL*/)
: CDialog(CSpherePropDlg::IDD, pParent)
{
m_dRadius=1.;
m_Red = 0;
m_Blue... | 19.117978 | 80 | 0.734352 | zbeckerman |
a428e30a6941deb99931be4fd58984366a5a582c | 1,742 | hh | C++ | src/cxx/include/layout/ReadMetadata.hh | sbooeshaghi/bcl2fastq | 3f39a24cd743fa71fba9b7dcf62e5d33cea8272d | [
"BSD-3-Clause"
] | 5 | 2021-06-07T12:36:11.000Z | 2022-02-08T09:49:02.000Z | src/cxx/include/layout/ReadMetadata.hh | sbooeshaghi/bcl2fastq | 3f39a24cd743fa71fba9b7dcf62e5d33cea8272d | [
"BSD-3-Clause"
] | 1 | 2022-03-01T23:55:57.000Z | 2022-03-01T23:57:15.000Z | src/cxx/include/layout/ReadMetadata.hh | sbooeshaghi/bcl2fastq | 3f39a24cd743fa71fba9b7dcf62e5d33cea8272d | [
"BSD-3-Clause"
] | null | null | null | /**
* BCL to FASTQ file converter
* Copyright (c) 2007-2017 Illumina, Inc.
*
* This software is covered by the accompanying EULA
* and certain third party copyright/licenses, and any user of this
* source file is bound by the terms therein.
*
* \file ReadMetadata.hh
*
* \brief Declaration of ReadMetadata.
*... | 26.393939 | 161 | 0.69116 | sbooeshaghi |
a42b7e5d4c98d1726b377213a44badd9e178dd46 | 11,677 | hpp | C++ | datastructures/LinkedList.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | datastructures/LinkedList.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | datastructures/LinkedList.hpp | arupa-loka/lrep | 7ef6ce39e7527693f8fb7d62b80a69fa29adc295 | [
"Apache-2.0"
] | null | null | null | #ifndef _LINKED_LIST_HPP
#define _LINKED_LIST_HPP
#include <iostream>
#include <stdlib.h>
template<class T>
class LinkedNode {
public:
LinkedNode();
LinkedNode(T iObj);
inline T getObj() const;
inline void setObj(T iObj);
inline LinkedNode<T>* getNext();
inline void setNext(LinkedNode<T>* iNode);
i... | 20.237435 | 119 | 0.569239 | arupa-loka |
a42cd8a1112be6630e77063cfc4a0883af9f897e | 9,374 | hpp | C++ | src/mlpack/methods/ann/trainer/trainer.hpp | abhinvgpta/mlpack | c5573b26c0f5c78037e4b82e75ccbcef6f254694 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-08-17T11:59:20.000Z | 2021-08-17T11:59:20.000Z | src/mlpack/methods/ann/trainer/trainer.hpp | abhinvgpta/mlpack | c5573b26c0f5c78037e4b82e75ccbcef6f254694 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/ann/trainer/trainer.hpp | abhinvgpta/mlpack | c5573b26c0f5c78037e4b82e75ccbcef6f254694 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file trainer.hpp
* @author Marcus Edel
*
* Definition and implementation of a trainer that trains the parameters of a
* neural network according to a supervised dataset.
*/
#ifndef MLPACK_METHODS_ANN_TRAINER_TRAINER_HPP
#define MLPACK_METHODS_ANN_TRAINER_TRAINER_HPP
#include <mlpack/core.hpp>
#include <m... | 30.141479 | 92 | 0.635054 | abhinvgpta |
a42e8d1ad9cfbb44a0d675e997af776b5e18b294 | 2,649 | cpp | C++ | software/src/master/src/kernel/Vca_VFilterDeviceImplementation.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/kernel/Vca_VFilterDeviceImplementation.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/kernel/Vca_VFilterDeviceImplementation.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** Vca_VFilterDeviceImplementation Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****... | 27.59375 | 99 | 0.309928 | c-kuhlman |
a430315a5451d55530751d1935e42e3c1274a5d5 | 6,239 | cpp | C++ | src/gameview.cpp | hakmao/mazehunt | e63158892b6a208f93bccd92156b83271245c933 | [
"MIT"
] | null | null | null | src/gameview.cpp | hakmao/mazehunt | e63158892b6a208f93bccd92156b83271245c933 | [
"MIT"
] | null | null | null | src/gameview.cpp | hakmao/mazehunt | e63158892b6a208f93bccd92156b83271245c933 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include<thread>
#include<chrono>
//#include <ncurses.h>
//#include "utils.h"
#include "defs.h"
#include "gameview.h"
GameView::GameView(std::shared_ptr <GridLayout> grd, int screen_H, int screen_W) : exit_requested{ false }, grid{ grd },
... | 21.513793 | 120 | 0.563231 | hakmao |
a432d9b3a64bd2ad24426d5ae1d21d7f65df9101 | 196 | hxx | C++ | include/nola/simd.hxx | cmbrandt/nola-simd | 9c38f41bd807c030ff6077f9cafd096df7fc047c | [
"MIT"
] | null | null | null | include/nola/simd.hxx | cmbrandt/nola-simd | 9c38f41bd807c030ff6077f9cafd096df7fc047c | [
"MIT"
] | 1 | 2021-03-26T03:03:22.000Z | 2021-03-26T03:03:22.000Z | include/nola/simd.hxx | cmbrandt/nola-simd | 9c38f41bd807c030ff6077f9cafd096df7fc047c | [
"MIT"
] | 1 | 2022-02-28T22:18:57.000Z | 2022-02-28T22:18:57.000Z | // Copyright (c) 2020-2021 Christopher M. Brandt
// All rights reserved
#ifndef NOLA_SIMD_HXX
#define NOLA_SIMD_HXX
#include <nola/internal/avx2.hxx>
#include <nola/internal/avx512.hxx>
#endif | 17.818182 | 48 | 0.765306 | cmbrandt |
a4336e79028be6596491615ae3dc4c28cae5247a | 3,857 | cpp | C++ | source/Midi.cpp | KaixoCode/SoundMixr | 6f27c14f596c45debb584925db4e1f45808031a9 | [
"MIT"
] | 18 | 2021-01-24T14:28:15.000Z | 2021-12-02T20:19:09.000Z | source/Midi.cpp | KaixoCode/SoundMixr | 6f27c14f596c45debb584925db4e1f45808031a9 | [
"MIT"
] | 1 | 2021-06-21T18:39:56.000Z | 2021-06-22T16:09:18.000Z | source/Midi.cpp | KaixoCode/SoundMixr | 6f27c14f596c45debb584925db4e1f45808031a9 | [
"MIT"
] | null | null | null | #include "Midi.hpp"
Midi::Event::Event(std::vector<uint8_t>& message)
{
int bytes = message.size();
if (bytes > 0)
type = (Type)((message[0] & 0b11110000) >> 4),
channel = (message[0] & 0b00001111);
if (bytes > 1)
data1 = (message[1] & 0b01111111);
if (bytes > 2)
data2 = (message[2] & 0b01111111);
}
s... | 24.883871 | 123 | 0.641172 | KaixoCode |
bf9c2e376e8904ac4c62c6e85844796e869ffb7c | 1,511 | cpp | C++ | tests/symmetric-tree-test.cpp | Red-Li/leetcode | 908d579f4dbf63a0099b6aae909265300ead46c5 | [
"Apache-2.0"
] | null | null | null | tests/symmetric-tree-test.cpp | Red-Li/leetcode | 908d579f4dbf63a0099b6aae909265300ead46c5 | [
"Apache-2.0"
] | null | null | null | tests/symmetric-tree-test.cpp | Red-Li/leetcode | 908d579f4dbf63a0099b6aae909265300ead46c5 | [
"Apache-2.0"
] | null | null | null | /**
* @file symmetric-tree-test.cpp
* @brief
* @author Red Li
* @version
* @date 2014-11-24
*/
#include <sstream>
#include <gtest/gtest.h>
#include "binary-tree.hpp"
typedef BTreeNodeBase<int> TreeNode;
#include <queue>
namespace sym_tree{
#define NAMESPACE
#include "symmetric-tree.hpp"
}
using namespace... | 15.739583 | 58 | 0.610192 | Red-Li |
bfa3f77a9782a30fefe3b9a429752601c2b6b3a1 | 1,094 | cpp | C++ | main8.cpp | labbasaiteja/Programming-with-CPP | 48a89ceb77cf8604054ff83d4438cbd2818ed2aa | [
"MIT"
] | null | null | null | main8.cpp | labbasaiteja/Programming-with-CPP | 48a89ceb77cf8604054ff83d4438cbd2818ed2aa | [
"MIT"
] | null | null | null | main8.cpp | labbasaiteja/Programming-with-CPP | 48a89ceb77cf8604054ff83d4438cbd2818ed2aa | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
char input[1000];
int Stack[1000], in;
void push(int x){
Stack[++in] = x;
}
bool isempty(){
if(in > 0) return false;
else return true;
}
bool verify(char input[]){
in = 0;
int n = strlen(input);
for(int i = 0; i < n; i++){
if(input[i] == '... | 19.535714 | 56 | 0.38574 | labbasaiteja |
bfa5a0f260f7d3e97d08f6f69f2b70da60747457 | 5,436 | cpp | C++ | benchmark_scripts/rocFFT_scripts/src/sample_6_benchmark_rocFFT_single_r2c.cpp | xfong/VkFFT | b951b37b75533bb5078e1d38166ba3b42f3590bd | [
"MIT"
] | 2 | 2022-01-21T20:18:27.000Z | 2022-02-01T19:53:26.000Z | benchmark_scripts/rocFFT_scripts/src/sample_6_benchmark_rocFFT_single_r2c.cpp | krakenrf/VkFFT | 4d581d411fb494a07c5356cf48b49f7392552646 | [
"MIT"
] | null | null | null | benchmark_scripts/rocFFT_scripts/src/sample_6_benchmark_rocFFT_single_r2c.cpp | krakenrf/VkFFT | 4d581d411fb494a07c5356cf48b49f7392552646 | [
"MIT"
] | null | null | null | //general parts
#include <stdio.h>
#include <vector>
#include <memory>
#include <string.h>
#include <chrono>
#include <thread>
#include <iostream>
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
//ROCM parts
#include "hip/hip_runtime.h"
#include <hipfft.h>
#define GROUP 1
void... | 44.195122 | 390 | 0.648271 | xfong |
bfa672f971442e7847f0c2abec85b43d77723549 | 8,330 | cc | C++ | tensorflow/lite/micro/kernels/xtensa/quantize.cc | rascani/tflite-micro | b7e8ac3985a10919ce4f6c3b4f6b0d54b584a388 | [
"Apache-2.0"
] | null | null | null | tensorflow/lite/micro/kernels/xtensa/quantize.cc | rascani/tflite-micro | b7e8ac3985a10919ce4f6c3b4f6b0d54b584a388 | [
"Apache-2.0"
] | null | null | null | tensorflow/lite/micro/kernels/xtensa/quantize.cc | rascani/tflite-micro | b7e8ac3985a10919ce4f6c3b4f6b0d54b584a388 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 The TensorFlow Authors. 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 applicable law or a... | 43.842105 | 80 | 0.655822 | rascani |
bfa6c1fb5d378275952ee0aeaa7d766d99e0c612 | 664 | cpp | C++ | Algorithm's Analysis/Find the second maximum element.cpp | GianfrancoMS/Algorithms | 16e9b4cbb80a00007fbc876f9d3404aa5a6937f3 | [
"MIT"
] | 1 | 2020-10-30T01:23:45.000Z | 2020-10-30T01:23:45.000Z | Algorithm's Analysis/Find the second maximum element.cpp | GianfrancoMS/Algorithms | 16e9b4cbb80a00007fbc876f9d3404aa5a6937f3 | [
"MIT"
] | null | null | null | Algorithm's Analysis/Find the second maximum element.cpp | GianfrancoMS/Algorithms | 16e9b4cbb80a00007fbc876f9d3404aa5a6937f3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int secondMaxBySelecting(vector<int> numbers) {
int numbersSize = numbers.size();
nth_element(numbers.begin(), numbers.begin() + numbersSize - 2, numbers.end());
int secondMax = numbers[numbersSize - 2];
return secondMax;
... | 24.592593 | 83 | 0.667169 | GianfrancoMS |
bfa9ce8d78be6b300efdbf7470ac1b892874025e | 304 | cpp | C++ | src/liblogic/src/message/LogicMessageHandler.cpp | SimonPiCarter/GameEngine | 10d366bd37d202a5a22eb504b2a2dd9a49669dc8 | [
"Apache-2.0"
] | null | null | null | src/liblogic/src/message/LogicMessageHandler.cpp | SimonPiCarter/GameEngine | 10d366bd37d202a5a22eb504b2a2dd9a49669dc8 | [
"Apache-2.0"
] | 15 | 2021-05-18T14:16:03.000Z | 2021-06-17T19:36:32.000Z | src/liblogic/src/message/LogicMessageHandler.cpp | SimonPiCarter/GameEngine | 10d366bd37d202a5a22eb504b2a2dd9a49669dc8 | [
"Apache-2.0"
] | null | null | null | #include "LogicMessageHandler.h"
#include <iostream>
LogicMessageHandler::LogicMessageHandler() {}
LogicMessageHandler::~LogicMessageHandler() {}
void LogicMessageHandler::handleMessage(LogicMessage *msg_p)
{
msg_p->visit(*this);
}
void LogicMessageHandler::visitNoOp(NoOpLogicMessage &)
{
// NA
}
| 17.882353 | 60 | 0.773026 | SimonPiCarter |
bfaaf69af1ffab8f1c1e437e6ad35b45ffdfb744 | 2,804 | cpp | C++ | sp/src/game/server/insolence/weapon_hmg1.cpp | 95Navigator/insolence-2013 | d6f75214602a4e14b51a5abf8af0355f679ae94d | [
"Unlicense"
] | 11 | 2018-11-04T16:19:35.000Z | 2020-11-21T22:03:16.000Z | sp/src/game/server/insolence/weapon_hmg1.cpp | 95Navigator/insolence-2013 | d6f75214602a4e14b51a5abf8af0355f679ae94d | [
"Unlicense"
] | null | null | null | sp/src/game/server/insolence/weapon_hmg1.cpp | 95Navigator/insolence-2013 | d6f75214602a4e14b51a5abf8af0355f679ae94d | [
"Unlicense"
] | null | null | null | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Heavy machine gun
//
//=============================================================================
#include "cbase.h"
#include "basehlcombatweapon.h"
#include "NPCevent.h"
#include "basecombatcharacter.h"
#include "AI_BaseNPC... | 23.965812 | 113 | 0.597004 | 95Navigator |
bfac8df6e23750017e3ec3726c064e2ec08fb7a3 | 4,753 | cpp | C++ | src/RestConn.cpp | bastianhjaeger/RestConn | ba65692818488a7145dd1362bee2f82102b7cee8 | [
"MIT"
] | null | null | null | src/RestConn.cpp | bastianhjaeger/RestConn | ba65692818488a7145dd1362bee2f82102b7cee8 | [
"MIT"
] | null | null | null | src/RestConn.cpp | bastianhjaeger/RestConn | ba65692818488a7145dd1362bee2f82102b7cee8 | [
"MIT"
] | null | null | null | #include <RestConn/RestConn.h>
#include<iostream>
#include <curl/curl.h>
namespace RestConn {
CURL* curl = nullptr;
size_t curl_write_callback(void *ptr, size_t size, size_t nmemb, std::string* data) {
data->append((char*) ptr, size * nmemb);
return size * nmemb;
}
void restConn_init(const std::string& _creden... | 27.958824 | 136 | 0.60951 | bastianhjaeger |
bfae17ea1c3be5dbacea9ecc5e2e9f1780775044 | 46,415 | cpp | C++ | Framework/Externals/Spire/Source/SpireCore/Syntax.cpp | tfoleyNV/Falcor-old | 2155109af2322f2aa1db2385cde44d1b7507976b | [
"BSD-3-Clause"
] | 1 | 2020-03-24T18:16:27.000Z | 2020-03-24T18:16:27.000Z | Framework/Externals/Spire/Source/SpireCore/Syntax.cpp | tfoleyNV/Falcor-old | 2155109af2322f2aa1db2385cde44d1b7507976b | [
"BSD-3-Clause"
] | null | null | null | Framework/Externals/Spire/Source/SpireCore/Syntax.cpp | tfoleyNV/Falcor-old | 2155109af2322f2aa1db2385cde44d1b7507976b | [
"BSD-3-Clause"
] | null | null | null | #include "Syntax.h"
#include "SyntaxVisitors.h"
#include <typeinfo>
#include <assert.h>
namespace Spire
{
namespace Compiler
{
// BasicExpressionType
bool BasicExpressionType::EqualsImpl(const ExpressionType * type) const
{
auto basicType = dynamic_cast<const BasicExpressio... | 31.382691 | 137 | 0.525563 | tfoleyNV |
bfb2b66477e00464690796c9d49e82ed04cab4ad | 7,170 | cpp | C++ | 3rdparty/libpedsim/src/ped_scene.cpp | saurabhp369/pedsim_ros2 | 001491d4cd1b8df14be43673703fa232404feb84 | [
"BSD-2-Clause"
] | 2 | 2020-10-29T06:27:08.000Z | 2021-04-15T14:18:54.000Z | 3rdparty/libpedsim/src/ped_scene.cpp | saurabhp369/pedsim_ros2 | 001491d4cd1b8df14be43673703fa232404feb84 | [
"BSD-2-Clause"
] | null | null | null | 3rdparty/libpedsim/src/ped_scene.cpp | saurabhp369/pedsim_ros2 | 001491d4cd1b8df14be43673703fa232404feb84 | [
"BSD-2-Clause"
] | 1 | 2020-10-29T09:29:18.000Z | 2020-10-29T09:29:18.000Z | //
// pedsim - A microscopic pedestrian simulation system.
// Copyright (c) 2003 - 2012 by Christian Gloor
//
#include "pedsim/ped_scene.h"
#include "pedsim/ped_agent.h"
#include "pedsim/ped_obstacle.h"
#include "pedsim/ped_tree.h"
#include "pedsim/ped_waypoint.h"
#include <algorithm>
#include <cstddef>
#include <sta... | 32.739726 | 80 | 0.688145 | saurabhp369 |
bfb499254c2b4a25aa66195fa37662de89a30526 | 908 | hpp | C++ | thirdparty/nfl/include/nfl/arch.hpp | FutureTPM/rlweot | 7c9910519de5f88d47fa164408990f53b8258252 | [
"MIT"
] | 1 | 2021-11-22T02:38:00.000Z | 2021-11-22T02:38:00.000Z | thirdparty/nfl/include/nfl/arch.hpp | FutureTPM/rlweot | 7c9910519de5f88d47fa164408990f53b8258252 | [
"MIT"
] | null | null | null | thirdparty/nfl/include/nfl/arch.hpp | FutureTPM/rlweot | 7c9910519de5f88d47fa164408990f53b8258252 | [
"MIT"
] | null | null | null | #ifndef NFL_ARCH_HPP
#define NFL_ARCH_HPP
#include "nfl/arch/common.hpp"
#ifdef NFL_OPTIMIZED
#pragma message ( "Compiling with NFL_OPTIMIZED" )
#if defined __AVX512F__ && defined __AVX512BW__ && defined __AVX512DQ__ && defined __AVX512CD__ && defined __AVX512VL__ && defined NTT_AVX512
#pragma message ( "Compiling w... | 29.290323 | 141 | 0.769824 | FutureTPM |
bfb96c192dc2cdac7921cdbc7badfd12cb77bcac | 756 | cpp | C++ | Clouds/Core/RenderTexture.cpp | swr06/VolumetricClouds | 3b356afdd611739a92c5dca4427fa1ffb003ebbd | [
"MIT"
] | 3 | 2021-06-06T16:57:37.000Z | 2022-01-07T06:28:28.000Z | Clouds/Core/RenderTexture.cpp | swr06/VolumetricClouds | 3b356afdd611739a92c5dca4427fa1ffb003ebbd | [
"MIT"
] | null | null | null | Clouds/Core/RenderTexture.cpp | swr06/VolumetricClouds | 3b356afdd611739a92c5dca4427fa1ffb003ebbd | [
"MIT"
] | 1 | 2022-01-07T06:28:33.000Z | 2022-01-07T06:28:33.000Z | #include "RenderTexture.h"
GLClasses::RenderTexture::~RenderTexture()
{
glDeleteTextures(1, &m_ID);
m_ID = 0;
}
void GLClasses::RenderTexture::CreateRenderTexture(int w, int h)
{
if (m_ID != 0)
{
throw "Trying to create a texture when one is already created!";
}
glGenTextures(1, &m_ID);
glBindTexture(GL_TEX... | 26.068966 | 78 | 0.767196 | swr06 |
bfbce1da847f4f0c1c308a72a8001a1c67fa84c5 | 2,230 | cpp | C++ | Code/include/igl/png/texture_from_png.cpp | FabianRepository/SinusProject | 48d68902ccd83f08c4d208ba8e0739a8a1252338 | [
"BSD-3-Clause"
] | null | null | null | Code/include/igl/png/texture_from_png.cpp | FabianRepository/SinusProject | 48d68902ccd83f08c4d208ba8e0739a8a1252338 | [
"BSD-3-Clause"
] | null | null | null | Code/include/igl/png/texture_from_png.cpp | FabianRepository/SinusProject | 48d68902ccd83f08c4d208ba8e0739a8a1252338 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2014 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://... | 29.342105 | 100 | 0.680269 | FabianRepository |
bfbf04b24faa48ce44e4515fc59dfd964e96bcaa | 253 | cc | C++ | ch10/ex10-14.cc | ts25504/Cpp-Primer | d1c5960f5f0ba969b766224f177f6c29c13d0d22 | [
"MIT"
] | null | null | null | ch10/ex10-14.cc | ts25504/Cpp-Primer | d1c5960f5f0ba969b766224f177f6c29c13d0d22 | [
"MIT"
] | null | null | null | ch10/ex10-14.cc | ts25504/Cpp-Primer | d1c5960f5f0ba969b766224f177f6c29c13d0d22 | [
"MIT"
] | null | null | null | /*
* Exercise 10.14: Write a lambda that takes two ints and returns their
* sum.
*/
#include <algorithm>
#include <iostream>
int main()
{
auto f = [] (int a, int b) -> int { return a+b; };
std::cout << f(1, 2) << std::endl;
return 0;
}
| 16.866667 | 71 | 0.56917 | ts25504 |
bfc05f7e7434c98364f1c56a124779fb7e606656 | 1,730 | cpp | C++ | sdag/BlockHeader.cpp | TOSIO/tos | cedece4dbb092ac50395788d953688b5fc50c506 | [
"MIT"
] | 20 | 2018-05-06T09:49:43.000Z | 2018-12-05T08:21:23.000Z | sdag/BlockHeader.cpp | TOSIO/tos | cedece4dbb092ac50395788d953688b5fc50c506 | [
"MIT"
] | 1 | 2018-06-01T15:00:34.000Z | 2018-06-01T15:00:34.000Z | sdag/BlockHeader.cpp | TOSIO/tos | cedece4dbb092ac50395788d953688b5fc50c506 | [
"MIT"
] | null | null | null | #include "BlockHeader.h"
#include <toscore/common/CommonData.h>
#include <toscore/log/Log.h>
#include "Common.h"
using namespace std;
using namespace dev;
using namespace dev::sdag;
void BlockHeader::printBlockHeader()
{
cnote << "block header content " << "m_version: " << m_version<< " m_type: " << m_type<< " m_time... | 21.097561 | 173 | 0.642197 | TOSIO |
bfc48fa688176bbecc6015e2efa9ff7a075edc6f | 7,072 | cpp | C++ | tests/vector_test.cpp | pip010/talg | 58212bb0a216f54987448f7fa0622f46a3e9b61e | [
"MIT"
] | 1 | 2016-03-18T09:54:31.000Z | 2016-03-18T09:54:31.000Z | tests/vector_test.cpp | pip010/talg | 58212bb0a216f54987448f7fa0622f46a3e9b61e | [
"MIT"
] | null | null | null | tests/vector_test.cpp | pip010/talg | 58212bb0a216f54987448f7fa0622f46a3e9b61e | [
"MIT"
] | null | null | null |
#include "catch/catch.hpp"
#include <vector.hpp>
#include "helpers.h"
TEST_CASE("Testing Vector<N,T,Tag> ", "[vector.hpp]")
{
using namespace talg;
using Txyz = TVector<3, double, vtag_xyz>;
using Txyzw = TVector<4, double, vtag_xyzw>;
using Tijk = TVector<3, long long, vtag_ijk>;
//4D vectors
Txyzw xyzw... | 21.894737 | 92 | 0.619627 | pip010 |
bfc5079802d2e40d1c601f64d2d44b46c2e86175 | 7,998 | cpp | C++ | csf_workspace/ec/src/device_io/ec_device_io/hi/csf_hisystem.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | 2 | 2019-12-17T13:16:48.000Z | 2019-12-17T13:16:51.000Z | csf_workspace/ec/src/device_io/ec_device_io/hi/csf_hisystem.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | csf_workspace/ec/src/device_io/ec_device_io/hi/csf_hisystem.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
*
*Copyright: f
*
*Author: f
*
*File name: csf_hisystem.hpp
*
*Version: 1.0
*
*Date: 03-12月-2019 20:29:46
*
*Description: Class(csf_hisystem)
*
*Others:
*
*History:
*
***********************************************************************... | 18.513889 | 84 | 0.674169 | Kitty-Kitty |
bfc6457cf5eb2f4df3b461434633fffa521bccd6 | 2,865 | cpp | C++ | test-main.cpp | mariano-gn/simple-logger | d99a19e01a4b9c9c54fe246b84acd1f1744b0292 | [
"MIT"
] | null | null | null | test-main.cpp | mariano-gn/simple-logger | d99a19e01a4b9c9c54fe246b84acd1f1744b0292 | [
"MIT"
] | null | null | null | test-main.cpp | mariano-gn/simple-logger | d99a19e01a4b9c9c54fe246b84acd1f1744b0292 | [
"MIT"
] | null | null | null | /**
Copyright (c) 2016 Mariano Gonzalez
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 use, copy, modify, merge, publish, distribut... | 44.765625 | 135 | 0.716579 | mariano-gn |
bfc6b738cb708e9b057f2ad6e51a0cca10ed7c55 | 640 | hpp | C++ | src/value.hpp | Seluxit/qberry | 27ca13cac24e9bd910fabc8630ad595d028075dc | [
"MIT"
] | null | null | null | src/value.hpp | Seluxit/qberry | 27ca13cac24e9bd910fabc8630ad595d028075dc | [
"MIT"
] | null | null | null | src/value.hpp | Seluxit/qberry | 27ca13cac24e9bd910fabc8630ad595d028075dc | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <memory>
#include "state.hpp"
#include "json.hpp"
namespace berry {
using json = nlohmann::json;
class Device;
class Value {
private:
const Device* parent_;
public:
Value(const Device* parent, const std::string& uuid);
// ------
... | 17.297297 | 61 | 0.559375 | Seluxit |
bfc9bb8524f1d988dd4090de101368fe03dd8f07 | 1,322 | cpp | C++ | tests/temp_sensors/data_generator.cpp | nathan-backman/cmsc491-SPE | b836b6d74dd97f767a09e7d955b8ad2173ca609d | [
"MIT"
] | null | null | null | tests/temp_sensors/data_generator.cpp | nathan-backman/cmsc491-SPE | b836b6d74dd97f767a09e7d955b8ad2173ca609d | [
"MIT"
] | null | null | null | tests/temp_sensors/data_generator.cpp | nathan-backman/cmsc491-SPE | b836b6d74dd97f767a09e7d955b8ad2173ca609d | [
"MIT"
] | null | null | null | // Copyright 2019 [BVU CMSC491 class]
#include <stdlib.h>
#include <time.h>
#include <iostream>
int main(int argc, char** argv) {
// Verify command line parameter format
if (argc != 3) {
std::cerr << "[Error] Usage: " << argv[0] << " <numData> <numSensors>"
<< std::endl;
return 1;
}
// V... | 28.12766 | 78 | 0.524206 | nathan-backman |
bfcb9dd5706f36b5386bc715dc8a3598e27016b8 | 7,504 | cpp | C++ | src/iksdl/BaseText.cpp | InternationalKoder/iksdl | 066a60b405bab5310a500132b0bd4d82c6476f24 | [
"Zlib"
] | null | null | null | src/iksdl/BaseText.cpp | InternationalKoder/iksdl | 066a60b405bab5310a500132b0bd4d82c6476f24 | [
"Zlib"
] | null | null | null | src/iksdl/BaseText.cpp | InternationalKoder/iksdl | 066a60b405bab5310a500132b0bd4d82c6476f24 | [
"Zlib"
] | null | null | null | /*
* IKSDL - C++ wrapper for SDL
* Copyright (C) 2021 InternationalKoder
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this softwar... | 33.801802 | 155 | 0.653785 | InternationalKoder |
bfccf7b46ba83174ca0c5894475e0c2cc2a6e2aa | 13,759 | cpp | C++ | MetaCPP-CLI/ASTScraper.cpp | mlomb/MetaCPP | f37022541641326adcbe6d1d4f83c9d61f9f436b | [
"Apache-2.0"
] | 40 | 2018-03-26T20:48:47.000Z | 2022-03-08T16:45:02.000Z | MetaCPP-CLI/ASTScraper.cpp | mlomb/MetaCPP | f37022541641326adcbe6d1d4f83c9d61f9f436b | [
"Apache-2.0"
] | 3 | 2020-04-11T03:53:19.000Z | 2020-10-26T23:49:43.000Z | MetaCPP-CLI/ASTScraper.cpp | mlomb/MetaCPP | f37022541641326adcbe6d1d4f83c9d61f9f436b | [
"Apache-2.0"
] | 9 | 2019-06-08T14:31:46.000Z | 2021-02-28T12:37:46.000Z | #include "ASTScraper.hpp"
#include <iostream>
#include <clang/AST/ASTContext.h>
#include <clang/AST/PrettyPrinter.h>
#include <clang/AST/RecordLayout.h>
#include <clang/AST/DeclTemplate.h>
#include <clang/AST/VTableBuilder.h>
#include <clang/AST/Decl.h>
#include <clang/Basic/TargetInfo.h>
#include "MetaCPP/Type.hpp"... | 34.744949 | 200 | 0.702958 | mlomb |
bfcf136714c32968fcfddda5e85eb69f567376e9 | 1,107 | cc | C++ | verifying_an_alien_dictionary.cc | shyam2347/leetcode_2022 | dfeedde7c5b3344f4732218caa6c89a2496e4a79 | [
"MIT"
] | null | null | null | verifying_an_alien_dictionary.cc | shyam2347/leetcode_2022 | dfeedde7c5b3344f4732218caa6c89a2496e4a79 | [
"MIT"
] | null | null | null | verifying_an_alien_dictionary.cc | shyam2347/leetcode_2022 | dfeedde7c5b3344f4732218caa6c89a2496e4a79 | [
"MIT"
] | null | null | null | class Solution {
public:
// Returns 0 if l == r
// Returns < 0 if l < r
// Returns > 0 if l > r
int AlienStrCmp(const string& l, const string& r, const int char_order_map[26]) {
int l_index = 0;
int r_index = 0;
while (l_index < l.length() && r_index < r.length()) {
... | 27.675 | 85 | 0.492322 | shyam2347 |
bfd0f2cef3818b137793d6a18736ee297cce231b | 2,877 | cpp | C++ | main/App.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | main/App.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | main/App.cpp | enelson1001/M5StackDemo01 | 0ed654406b01e2575facaff522289fcaf555fa91 | [
"MIT"
] | null | null | null | /****************************************************************************************
* App.cpp - The Application class
* Created on Dec. 03, 2019
* Copyright (c) 2019 Ed Nelson (https://github.com/enelson1001)
* Licensed under MIT License (see LICENSE file)
*
* Derivative Works
* Smooth - A C++ framework fo... | 38.878378 | 116 | 0.475843 | enelson1001 |
bfd1a032b70f871c2d118ae6be0664344b528ed5 | 28,072 | cpp | C++ | export/windows/obj/src/lime/math/_BGRA/BGRA_Impl_.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/math/_BGRA/BGRA_Impl_.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | export/windows/obj/src/lime/math/_BGRA/BGRA_Impl_.cpp | seanbashaw/frozenlight | 47c540d30d63e946ea2dc787b4bb602cc9347d21 | [
"MIT"
] | null | null | null | // Generated by Haxe 3.4.7
#include <hxcpp.h>
#ifndef INCLUDED_95f339a1d026d52c
#define INCLUDED_95f339a1d026d52c
#include "hxMath.h"
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime_math__BGRA_BGRA_Impl_
#include <lime/math/_BGRA/BGRA_Impl_.h>
#endif
#ifndef INCLUDED_lime_... | 54.297872 | 600 | 0.645519 | seanbashaw |
bfd29b7888b6fa716b61a2b03697c585515f0eff | 1,802 | cpp | C++ | LeetCode/1415. The k-th Lexicographical String of All Happy Strings of Length n.cpp | rranjan14/cp-solutions | 9614508efbed1e4ee8b970b5eed535d782a5783f | [
"MIT"
] | null | null | null | LeetCode/1415. The k-th Lexicographical String of All Happy Strings of Length n.cpp | rranjan14/cp-solutions | 9614508efbed1e4ee8b970b5eed535d782a5783f | [
"MIT"
] | null | null | null | LeetCode/1415. The k-th Lexicographical String of All Happy Strings of Length n.cpp | rranjan14/cp-solutions | 9614508efbed1e4ee8b970b5eed535d782a5783f | [
"MIT"
] | null | null | null | /*
1415. The k-th Lexicographical String of All Happy Strings of Length n
A happy string is a string that:
1.consists only of letters of the set ['a', 'b', 'c'].
2.s[i] != s[i + 1] for all values of i from 1 to s.length - 1 (string is 1-indexed).
For example, strings "abc", "ac", "b" and "abcbabcbcb" are all... | 28.603175 | 183 | 0.590455 | rranjan14 |
bfd46ba8506efdad1820cbe74c0faf4e404f4712 | 8,823 | cpp | C++ | src/apps/haikudepot/textview/TextEditor.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 4 | 2017-06-17T22:03:56.000Z | 2019-01-25T10:51:55.000Z | src/apps/haikudepot/textview/TextEditor.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/apps/haikudepot/textview/TextEditor.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | /*
* Copyright 2014, Stephan Aßmus <superstippi@gmx.de>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "TextEditor.h"
#include <algorithm>
#include <stdio.h>
TextEditor::TextEditor()
:
fDocument(),
fLayout(),
fSelection(),
fCaretAnchorX(0.0f),
fStyleAtCaret(),
fEditing... | 18.267081 | 73 | 0.699082 | axeld |
bfd4d9322407b2ef2ecd889b8ea72e5ed27fafcb | 10,296 | hpp | C++ | nn/parser/main/CUpng.hpp | research-note/Many-as-One | eb9520c30b4b2b944d4f3713aada256feaf322bc | [
"Apache-2.0"
] | null | null | null | nn/parser/main/CUpng.hpp | research-note/Many-as-One | eb9520c30b4b2b944d4f3713aada256feaf322bc | [
"Apache-2.0"
] | 4 | 2021-11-13T23:49:46.000Z | 2021-12-03T03:09:44.000Z | nn/parser/main/CUpng.hpp | research-note/Many-as-One | eb9520c30b4b2b944d4f3713aada256feaf322bc | [
"Apache-2.0"
] | 2 | 2021-11-13T03:45:19.000Z | 2021-11-13T03:47:42.000Z | /* Copyright 2021 The Many as One Authors. 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 applicable law or ... | 34.666667 | 156 | 0.651224 | research-note |
bfd5135e0c845fa01449846c06242caa1b1cdf2f | 3,138 | cpp | C++ | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/uiactioncmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/uiactioncmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | packages/thirdParty/wxWidgets/wxWidgets-2.9.4/src/common/uiactioncmn.cpp | wivlaro/newton-dynamics | 2bafd29aea919f237e56784510db1cb8011d0f40 | [
"Zlib"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Name: src/common/uiactioncmn.cpp
// Purpose: wxUIActionSimulator common implementation
// Author: Kevin Ollivier, Steven Lamerton, Vadim Zeitlin
// Modified by:
// Created: 2010-03-06
// RCS-ID: $Id$
// Copyright: ... | 21.346939 | 77 | 0.535692 | wivlaro |
bfd7257ab8dd3e79d50169354bda9bd4841af3b9 | 2,645 | cpp | C++ | dailyprogrammer/353-intermediate.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | dailyprogrammer/353-intermediate.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | dailyprogrammer/353-intermediate.cpp | cwboden/coding-practice | a80aea59d57bfdd55c15ef2fdf01f73aff168031 | [
"MIT"
] | null | null | null | /**
* PROMPT:
* I work as a waiter at a local breakfast establishment. The chef at the
* pancake house is sloppier than I like, and when I deliver the pancakes I
* want them to be sorted biggest on bottom and smallest on top. Problem is,
* all I have is a spatula. I can grab substacks of pancakes and flip them ... | 28.44086 | 81 | 0.69414 | cwboden |
bfd75b9cd4441de2f409679cdb80b2a287dd0526 | 6,745 | cpp | C++ | Meduza/Source/Platform/General/Editor/EditorHelper.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 6 | 2020-10-17T10:50:13.000Z | 2022-02-25T20:14:23.000Z | Meduza/Source/Platform/General/Editor/EditorHelper.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | null | null | null | Meduza/Source/Platform/General/Editor/EditorHelper.cpp | NWagter/Meduza | d1df99061381fa1c7665d09e275ddc0060a6ac8d | [
"MIT"
] | 1 | 2020-05-06T12:02:47.000Z | 2020-05-06T12:02:47.000Z | #include "MePCH.h"
#include "Platform/General/Editor/EditorHelper.h"
void Me::Editor::Helper::EditorHelper::DrawVec2Prop(const std::string &a_label, Me::Math::Vec2& a_value, float a_resetValue, float a_columnWidth)
{
ImGui::PushID(a_label.c_str());
ImGui::Columns(2);
ImGui::SetColumnWidth(0, a_columnWidth... | 34.238579 | 145 | 0.637361 | NWagter |
bfda1cb525df1ec5d5df728cef5a1ff89f364fed | 7,742 | cpp | C++ | tests/mac/test_api_mac_ttmac.cpp | samleybrize/cryptopp-bindings-api | 247eb69ed1953b34878c9ce3c4d2e47ad6a6333b | [
"MIT"
] | null | null | null | tests/mac/test_api_mac_ttmac.cpp | samleybrize/cryptopp-bindings-api | 247eb69ed1953b34878c9ce3c4d2e47ad6a6333b | [
"MIT"
] | null | null | null | tests/mac/test_api_mac_ttmac.cpp | samleybrize/cryptopp-bindings-api | 247eb69ed1953b34878c9ce3c4d2e47ad6a6333b | [
"MIT"
] | null | null | null | /*
* This file is part of cryptopp-bindings-api.
*
* (c) Stephen Berquet <stephen.berquet@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include "src/exception/api_exception.h"
#include "src/mac/api_mac_ttmac.h"
#incl... | 30.360784 | 148 | 0.700207 | samleybrize |
bfdd6b0f54bff0918c60edf96f2e41fc5e260492 | 11,404 | cpp | C++ | libcrocofix_tests/session_fixture.cpp | GaryHughes/crocofix | e702803cecf42153bb491f7d09d7b109db20e8b4 | [
"MIT"
] | 2 | 2021-01-12T19:27:34.000Z | 2022-03-19T05:32:29.000Z | libcrocofix_tests/session_fixture.cpp | GaryHughes/crocofix | e702803cecf42153bb491f7d09d7b109db20e8b4 | [
"MIT"
] | null | null | null | libcrocofix_tests/session_fixture.cpp | GaryHughes/crocofix | e702803cecf42153bb491f7d09d7b109db20e8b4 | [
"MIT"
] | 1 | 2022-03-30T05:53:23.000Z | 2022-03-30T05:53:23.000Z | #include "session_fixture.hpp"
#include <libcrocofixdictionary/fix50SP2_messages.hpp>
#include <libcrocofixdictionary/fix50SP2_fields.hpp>
#include <libcrocofixdictionary/fix50SP2_orchestration.hpp>
#include <catch.hpp>
namespace crocofix
{
namespace fix = crocofix::FIX_5_0SP2;
session_fixture::session_fixture()
: ... | 37.025974 | 151 | 0.663364 | GaryHughes |
bfe07408ddce78677fe278c4b658ca52c7f1b495 | 9,117 | cpp | C++ | rEFIt_UEFI/Settings/SelfOem.cpp | harperse/CloverBootloader | 8d1baad2a62c66aae776cfd45d832399632c299e | [
"BSD-2-Clause"
] | null | null | null | rEFIt_UEFI/Settings/SelfOem.cpp | harperse/CloverBootloader | 8d1baad2a62c66aae776cfd45d832399632c299e | [
"BSD-2-Clause"
] | null | null | null | rEFIt_UEFI/Settings/SelfOem.cpp | harperse/CloverBootloader | 8d1baad2a62c66aae776cfd45d832399632c299e | [
"BSD-2-Clause"
] | null | null | null | /*
* Self.cpp
*
* Created on: Sep 28, 2020
* Author: jief
*/
#include <Platform.h>
#include "../Settings/SelfOem.h"
#include "../Settings/Self.h"
#include "../refit/lib.h"
#define DONT_DEFINE_GLOBALS
#ifndef DEBUG_ALL
#define DEBUG_SELF 1
#else
#define DEBUG_SELF DEBUG_ALL
#endif
#if ... | 37.060976 | 296 | 0.673906 | harperse |
bfed2d54a285011bf3bb5d927e02823ec0aa1587 | 770 | cpp | C++ | unreal/ReactUMG/Source/ReactUMG/ReactUMGModule.cpp | morirain/puerts | c8930a84d35fdcf3e1901cd9e16dd8afa3a3a377 | [
"BSD-3-Clause"
] | 1 | 2022-03-09T14:15:52.000Z | 2022-03-09T14:15:52.000Z | unreal/ReactUMG/Source/ReactUMG/ReactUMGModule.cpp | morirain/puerts | c8930a84d35fdcf3e1901cd9e16dd8afa3a3a377 | [
"BSD-3-Clause"
] | null | null | null | unreal/ReactUMG/Source/ReactUMG/ReactUMGModule.cpp | morirain/puerts | c8930a84d35fdcf3e1901cd9e16dd8afa3a3a377 | [
"BSD-3-Clause"
] | 2 | 2021-12-01T08:29:19.000Z | 2021-12-14T09:21:15.000Z | /*
* Tencent is pleased to support the open source community by making Puerts available.
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
* Puerts is licensed under the BSD 3-Clause License, except for the third-party components listed in the file 'LICENSE' which may
* be subject t... | 29.615385 | 131 | 0.719481 | morirain |
bffabc88a4f3d2ee7c9d911e4edd17493b16e815 | 2,388 | cc | C++ | libcef_dll/ctocpp/sslkey_delegate_ctocpp.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | libcef_dll/ctocpp/sslkey_delegate_ctocpp.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | libcef_dll/ctocpp/sslkey_delegate_ctocpp.cc | frogbywyplay/appframeworks_cef | 12e3a6d32370b4f72707b493ab951a5d8cb3989d | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2016 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translato... | 31.421053 | 101 | 0.7433 | frogbywyplay |
bffe886293616f11626c9a379e43e3d8095fedb5 | 459 | cpp | C++ | Digits in Words.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | Digits in Words.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | Digits in Words.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
char word[][10] = {"Zero", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine"};
int display(int n)
{
int digits[10];
int dc = 0;
do
{
digits[dc] = n % 10;
n = n / 10;
dc++;
} while (n != 0);
for (int i = dc - 1;... | 19.125 | 99 | 0.444444 | aaryan0348 |
8702faa69a822f6606150e0e98e64ad9a2be6381 | 451 | cxx | C++ | meshL/NormalL.cxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | 1 | 2021-08-23T06:55:22.000Z | 2021-08-23T06:55:22.000Z | meshL/NormalL.cxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | null | null | null | meshL/NormalL.cxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////
//
// $Id: NormalL.cxx 2021/06/05 14:19:21 kanai Exp $
//
// Copyright (c) 2021 Takashi Kanai
// Released under the MIT license
//
////////////////////////////////////////////////////////////////////
#include "NormalL.hxx"
#include "MeshL.hxx"
// se... | 23.736842 | 68 | 0.425721 | kanait |
8703f2068282f779e514b38ee51f6dc3611afa21 | 440 | cpp | C++ | Blind 75 Must Do LC/Maximum Subarray.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Blind 75 Must Do LC/Maximum Subarray.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Blind 75 Must Do LC/Maximum Subarray.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | // Hari
int maxSubArray(vector<int>& nums) {
// fast
ios_base::sync_with_stdio(false);
int max_overall = INT_MIN;
int max_till_here = 0;
for(int i = 0; i<nums.size(); i++){
max_till_here += nums[i];
if(max_overall < max_till_here) max_overall = m... | 25.882353 | 72 | 0.531818 | Tiger-Team-01 |
87065a14f4ba5ee1aa85f4c8bb978246459be073 | 2,416 | cpp | C++ | src/orntagsmodel.cpp | elros34/harbour-storeman | a4f1b603f27a9b453bae1afa57c114316bcb4888 | [
"MIT"
] | null | null | null | src/orntagsmodel.cpp | elros34/harbour-storeman | a4f1b603f27a9b453bae1afa57c114316bcb4888 | [
"MIT"
] | null | null | null | src/orntagsmodel.cpp | elros34/harbour-storeman | a4f1b603f27a9b453bae1afa57c114316bcb4888 | [
"MIT"
] | null | null | null | #include "orntagsmodel.h"
#include "orntaglistitem.h"
#include "ornapirequest.h"
#include "orn.h"
#include <QNetworkAccessManager>
#include <QNetworkReply>
OrnTagsModel::OrnTagsModel(QObject *parent) :
OrnAbstractAppsModel(false, parent)
{}
QStringList OrnTagsModel::tagIds() const
{
return mTagIds;
}
void ... | 22.579439 | 83 | 0.599752 | elros34 |
8706b95dc8ed9ffbbbe8bc17a3d1fc66c2ed67df | 1,079 | cpp | C++ | QHTML_Static/guitools/DIBSetColourTransparent.cpp | karolbe/DSS | 5a834561fbe7345d0be36f41ed8620ebbdb2f222 | [
"BSD-3-Clause"
] | null | null | null | QHTML_Static/guitools/DIBSetColourTransparent.cpp | karolbe/DSS | 5a834561fbe7345d0be36f41ed8620ebbdb2f222 | [
"BSD-3-Clause"
] | null | null | null | QHTML_Static/guitools/DIBSetColourTransparent.cpp | karolbe/DSS | 5a834561fbe7345d0be36f41ed8620ebbdb2f222 | [
"BSD-3-Clause"
] | 1 | 2020-06-28T19:21:22.000Z | 2020-06-28T19:21:22.000Z | /*----------------------------------------------------------------------
Copyright (c) Gipsysoft. All Rights Reserved.
Please see the file "licence.txt" for licencing details.
File: DIBSetColourTransparent.cpp
Owner: russf@gipsysoft.com
Purpose: <Description of module>.
------------------------------------------------... | 24.522727 | 83 | 0.57924 | karolbe |
870766c632413cdb486918e41f6a65c2f77c9e32 | 5,922 | cpp | C++ | NfdcAppCore/BaseDialog.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | 1 | 2021-10-03T16:47:04.000Z | 2021-10-03T16:47:04.000Z | NfdcAppCore/BaseDialog.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null | NfdcAppCore/BaseDialog.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "BaseDialog.h"
#include "../NfdcAppCore/Application.h"
BaseDialog::BaseDialog(QWidget *parent, bool bHeader/* = true*/)
: QDialog(parent),
m_DialogFrame(NULL),
m_pDialogLayout(NULL),
m_pMainFrame(NULL),
m_pMainLayout(NULL),
m_pHeaderFrame(NULL),
m_pTitleLabel(NULL),
m_pTitleLayout(... | 26.4375 | 108 | 0.758359 | Mason-Wmx |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.