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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4110e68c6e1829114c8ac5891e51be787988da9b | 847 | cpp | C++ | AtCoder/joisc2007/score/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/joisc2007/score/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/joisc2007/score/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n; cin >> n;
vector<int> score(n, 0);
for (int i = 0; i < n; i++) cin >> score[i];
vector<int> score_sort = score;
sort(score_sort.begin(), score_sort.end());
reverse(score_sort.begi... | 31.37037 | 110 | 0.532468 | H-Tatsuhiro |
411251e0a5dacee18864cc4ce694d8846aea0fde | 201,514 | cpp | C++ | PlayFabServerSDK/PlayFabAdminAPI.cpp | PlayFab/Cocos2d-xSDK | b0ba5c90ff0731b9ffb6fb56fcdaaafaa6dca6b9 | [
"Zlib",
"Apache-2.0",
"MIT",
"OpenSSL",
"OLDAP-2.8",
"BSD-3-Clause"
] | 5 | 2016-01-08T19:33:53.000Z | 2021-02-01T15:20:45.000Z | PlayFabServerSDK/PlayFabAdminAPI.cpp | PlayFab/Cocos2d-xSDK | b0ba5c90ff0731b9ffb6fb56fcdaaafaa6dca6b9 | [
"Zlib",
"Apache-2.0",
"MIT",
"OpenSSL",
"OLDAP-2.8",
"BSD-3-Clause"
] | 24 | 2015-08-07T18:32:47.000Z | 2018-04-06T16:58:36.000Z | PlayFabServerSDK/PlayFabAdminAPI.cpp | PlayFab/Cocos2d-xSDK | b0ba5c90ff0731b9ffb6fb56fcdaaafaa6dca6b9 | [
"Zlib",
"Apache-2.0",
"MIT",
"OpenSSL",
"OLDAP-2.8",
"BSD-3-Clause"
] | 6 | 2015-07-27T19:28:53.000Z | 2019-02-20T14:32:44.000Z | #include "HttpRequest.h"
#include "HttpRequesterCURL.h"
#include "PlayFabResultHandler.h"
#include "PlayFabSettings.h"
#include "PlayFabAdminAPI.h"
#include <string>
using namespace PlayFab;
using namespace PlayFab::AdminModels;
PlayFabAdminAPI::PlayFabAdminAPI() {}
void PlayFabAdminAPI::AbortTaskInstance(
Abort... | 38.722905 | 168 | 0.733076 | PlayFab |
4113bdb2b83767bdb6188bc328682494c8311a42 | 6,002 | cpp | C++ | src/bmf_filter.cpp | dnbh/BMFtools | db81e1dbeede0a67b1e3c0f049e7cfad9ce9b636 | [
"MIT"
] | 22 | 2016-02-24T18:57:12.000Z | 2022-01-08T02:49:57.000Z | src/bmf_filter.cpp | dnbh/BMFtools | db81e1dbeede0a67b1e3c0f049e7cfad9ce9b636 | [
"MIT"
] | 22 | 2016-01-15T18:34:37.000Z | 2018-02-13T23:43:34.000Z | src/bmf_filter.cpp | dnbh/BMFtools | db81e1dbeede0a67b1e3c0f049e7cfad9ce9b636 | [
"MIT"
] | 5 | 2016-07-15T14:56:45.000Z | 2019-06-05T07:54:39.000Z | #include <getopt.h>
#include <functional>
#include "dlib/bam_util.h"
namespace bmf {
int usage(char **argv, int retcode=EXIT_FAILURE) {
fprintf(stderr,
"Filters a bam by a set of given parameters.\n"
"Usage: bmftools filter <-l output_compression_level> in.bam out.bam\n"
... | 41.972028 | 110 | 0.574808 | dnbh |
411adc9b9bbe8bea9de20991ac6a6056d0d91bda | 16,678 | cpp | C++ | game.cpp | NX1125/cg-tf | 84a2e05908066efcbe797d35c6498f69a51ad917 | [
"MIT"
] | null | null | null | game.cpp | NX1125/cg-tf | 84a2e05908066efcbe797d35c6498f69a51ad917 | [
"MIT"
] | null | null | null | game.cpp | NX1125/cg-tf | 84a2e05908066efcbe797d35c6498f69a51ad917 | [
"MIT"
] | null | null | null |
#include <algorithm>
#include "game.h"
#include "player.h"
#include "cube.h"
#include "textrendering.h"
#include "bomb.h"
#include "bullet.h"
#define FIXED_THIRD_PERSON_CAMERA
Game::Game(app_settings* settings) {
glClearColor(0, 0, 0, 0);
wf_object_loader_t loader;
// as stated in the spec, the height... | 26.727564 | 151 | 0.54353 | NX1125 |
411af259641f3b3b4eb42e75ff2293f699af951e | 1,161 | cpp | C++ | Leetcode/2001-3000/2120. Execution of All Suffix Instructions Staying in a Grid/2120.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/2001-3000/2120. Execution of All Suffix Instructions Staying in a Grid/2120.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/2001-3000/2120. Execution of All Suffix Instructions Staying in a Grid/2120.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> executeInstructions(int n, vector<int>& startPos, string s) {
const int m = s.length();
const int uMost = startPos[0] + 1;
const int dMost = n - startPos[0];
const int lMost = startPos[1] + 1;
const int rMost = n - startPos[1];
const unordered_map<char, pa... | 27 | 75 | 0.489233 | Next-Gen-UI |
411b62f216e68ade1a22793804d2cfb2eaef675b | 30,349 | cc | C++ | support/strops.cc | gorlak/P4 | fa25916ef69fa77887bb493800b6ce12be3f469e | [
"BSD-2-Clause"
] | null | null | null | support/strops.cc | gorlak/P4 | fa25916ef69fa77887bb493800b6ce12be3f469e | [
"BSD-2-Clause"
] | null | null | null | support/strops.cc | gorlak/P4 | fa25916ef69fa77887bb493800b6ce12be3f469e | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 1995, 1996 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
/*
* strings.cc - support for StrBuf, StrPtr
*/
# define CHARHASH(h, c) ( 293 * (h) + (c) );
# define NEED_QUOTE
# include <stdhdrs.h>
# include <charman.h>
# include <c... | 18.516779 | 80 | 0.469472 | gorlak |
411c1271c107c31bf0823b036b46fad178394606 | 2,833 | cc | C++ | spot/tests/core/tostring.cc | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2018-03-02T14:29:57.000Z | 2018-03-02T14:29:57.000Z | spot/tests/core/tostring.cc | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | null | null | null | spot/tests/core/tostring.cc | mcc-petrinets/formulas | 10f835d67c7deedfe98fbbd55a56bd549a5bae9b | [
"MIT"
] | 1 | 2015-06-05T12:42:07.000Z | 2015-06-05T12:42:07.000Z | // -*- coding: utf-8 -*-
// Copyright (C) 2008, 2009, 2012, 2015, 2016 Laboratoire de Recherche
// et Développement de l'Epita (LRDE).
// Copyright (C) 2003 Laboratoire d'Informatique de Paris 6 (LIP6),
// département Systèmes Répartis Coopératifs (SRC), Université Pierre
// et Marie Curie.
//
// This file is part of S... | 24.213675 | 72 | 0.507589 | mcc-petrinets |
411e2d9b298c266088f96e61e5f657debeb92e81 | 3,121 | cc | C++ | CodeChef/WF/Medium Hard/LOTERY/A.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | CodeChef/WF/Medium Hard/LOTERY/A.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | CodeChef/WF/Medium Hard/LOTERY/A.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foreach(it, v) for(auto it=(v).begin(); it != (v).end(); ++it)
#define _ ios_base::sync_with_s... | 19.878981 | 118 | 0.521948 | VastoLorde95 |
411fec6bb00572d72e8ddbbead952383ea18a1b5 | 5,456 | cpp | C++ | src/provider/local/src/movie/moviemetadatafetcher.cpp | jimmypoms/couch | 2371ad236a04bf9623098da9b1fdec10997f1dd0 | [
"Apache-2.0"
] | null | null | null | src/provider/local/src/movie/moviemetadatafetcher.cpp | jimmypoms/couch | 2371ad236a04bf9623098da9b1fdec10997f1dd0 | [
"Apache-2.0"
] | null | null | null | src/provider/local/src/movie/moviemetadatafetcher.cpp | jimmypoms/couch | 2371ad236a04bf9623098da9b1fdec10997f1dd0 | [
"Apache-2.0"
] | null | null | null | /*
* movieinfofetcher.cpp
*
* Created on: 4 Nov 2015
* Author: jimmypoms
*/
#include "moviemetadatafetcher.h"
#include <qfile.h>
#include <qglobal.h>
#include <qiodevice.h>
#include <qstring.h>
#include <qurl.h>
#include <qxmlstream.h>
#include "couch/movie/moviemetadata.h"
#include "couch/source.h"
usin... | 31.537572 | 96 | 0.629216 | jimmypoms |
41204d277c876bfce0bd5ad03b90ccbf0eb34943 | 2,435 | cpp | C++ | test/test-views/chain-request.cpp | amukha/fostgres | d908e80d6ebeafc456bae086dd397c216d59b001 | [
"BSL-1.0"
] | 17 | 2017-02-06T07:54:49.000Z | 2019-07-20T03:55:15.000Z | test/test-views/chain-request.cpp | amukha/fostgres | d908e80d6ebeafc456bae086dd397c216d59b001 | [
"BSL-1.0"
] | 17 | 2017-06-01T08:51:26.000Z | 2019-09-02T13:46:23.000Z | test/test-views/chain-request.cpp | amukha/fostgres | d908e80d6ebeafc456bae086dd397c216d59b001 | [
"BSL-1.0"
] | 6 | 2017-05-03T13:05:19.000Z | 2019-08-06T11:34:41.000Z | /**
Copyright 2020 Red Anchor Trading Co. Ltd.
Distributed under the Boost Software License, Version 1.0.
See <http://www.boost.org/LICENSE_1_0.txt>
*/
#include <fost/http>
#include <fost/ua/exceptions.hpp>
#include <fost/urlhandler>
namespace {
const class chain_request : public fostlib::urlhan... | 36.893939 | 80 | 0.540041 | amukha |
41210be229bacb8ae73157fc015e68dbc23b0b33 | 450 | hpp | C++ | GUI/GUI-extc.hpp | erurami/huffman-encoder | 94278ddcda8611dfe65638f7905a3f349bcd4064 | [
"MIT"
] | null | null | null | GUI/GUI-extc.hpp | erurami/huffman-encoder | 94278ddcda8611dfe65638f7905a3f349bcd4064 | [
"MIT"
] | null | null | null | GUI/GUI-extc.hpp | erurami/huffman-encoder | 94278ddcda8611dfe65638f7905a3f349bcd4064 | [
"MIT"
] | null | null | null |
#ifndef _GUI_GUI_EXTC_HPP_
#define _GUI_GUI_EXTC_HPP_
#include <windows.h>
#define EXTCPROG_WINDOW_WIDTH 400
#define EXTCPROG_WINDOW_HEIGHT 220
HINSTANCE _G_GUI_GUI_Extc_hpp_H_Instance;
struct ExtractionInfos
{
LPTSTR strFrom;
LPTSTR strTo;
bool blKeepOriginal;
long* npProgress;
int * npEx... | 14.516129 | 76 | 0.775556 | erurami |
412122b0ced084733b6bfc2dcfd4fc4847eda873 | 252 | hpp | C++ | ccf/ccf.hpp | drbenmorgan/cmake-compile-features | 97b8720c914ac8d192410e7d52e736d5c767013f | [
"MIT"
] | 6 | 2015-10-30T17:49:53.000Z | 2019-06-13T14:27:16.000Z | ccf/ccf.hpp | drbenmorgan/cmake-compile-features | 97b8720c914ac8d192410e7d52e736d5c767013f | [
"MIT"
] | 1 | 2021-02-24T17:47:11.000Z | 2021-02-24T17:47:11.000Z | ccf/ccf.hpp | drbenmorgan/cmake-compile-features | 97b8720c914ac8d192410e7d52e736d5c767013f | [
"MIT"
] | 1 | 2016-05-09T08:04:46.000Z | 2016-05-09T08:04:46.000Z | #ifndef CCF_HH
#define CCF_HH
#include <string>
// Include the export header, this handles the symbol visibility for us
#include "ccf/ccf_export.h"
namespace ccf {
void CCF_EXPORT message(const std::string& m);
} // namespace ccf
#endif // CCF_HH
| 16.8 | 71 | 0.738095 | drbenmorgan |
41216132d55a5bd9a68982563e0f3b00ab9036e9 | 1,843 | cpp | C++ | BZOJ/4635/std.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/4635/std.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/4635/std.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<cstdio>
const int N=1001,M=7100,P=1000000007;
int T,type,t,n,m,l,r,i,j;
int f[N][N],s[N][N],G[N],V[M],NXT[M],mul[N],g[N],v[M],nxt[M],ed;
int p[N],a[10000001],b[N],ans;
inline void up(int&a,int b){a+=b;while(a>=P)a-=P;}
inline int pow(int a,int b){int t=1;for(;b;b>>=1,a=1LL*a*a%P)if(b&1)t=1LL*t*a%P;return t;}
i... | 27.507463 | 90 | 0.45198 | sjj118 |
4121e83668fa45f8ab45550e5177bb6d1332d714 | 4,551 | cpp | C++ | 作业/作业5/nack-oriented-reliable-multicast-master/norm-1.5r6/src/common/fecTest.cpp | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | 7 | 2020-11-09T09:24:42.000Z | 2021-09-17T07:35:05.000Z | 作业/作业5/nack-oriented-reliable-multicast-master/norm-1.5r6/src/common/fecTest.cpp | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | null | null | null | 作业/作业5/nack-oriented-reliable-multicast-master/norm-1.5r6/src/common/fecTest.cpp | He-Ze/Distributed-System-SYSU | 61bcff6e271c77bf3a3ad5f9fc531c1ceb9b9087 | [
"MIT"
] | 1 | 2022-01-21T03:23:14.000Z | 2022-01-21T03:23:14.000Z | // This code tests our NORM FEC encoder/decoder implementations
#include "protoTime.h" // for ProtoTime
#include "normEncoderRS8.h"
#include "normEncoderRS16.h"
#include <string.h> // for memcpy(), etc
#include <stdlib.h> // for rand()
#include <stdio.h>
const unsigned int NUM_PARITY = 100;
const unsigned int N... | 33.463235 | 116 | 0.55746 | He-Ze |
41221b938128f8ff8d76139fe474fb7f0e57eba4 | 1,323 | cc | C++ | runtime/renderer/android/xwalk_permission_client.cc | yejingfu/crosswalk | ad9ec6a2bc7539e6ccc8c84ca19327d4ec23725c | [
"BSD-3-Clause"
] | null | null | null | runtime/renderer/android/xwalk_permission_client.cc | yejingfu/crosswalk | ad9ec6a2bc7539e6ccc8c84ca19327d4ec23725c | [
"BSD-3-Clause"
] | null | null | null | runtime/renderer/android/xwalk_permission_client.cc | yejingfu/crosswalk | ad9ec6a2bc7539e6ccc8c84ca19327d4ec23725c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 The Chromium 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 "xwalk/runtime/renderer/android/xwalk_permission_client.h"
#include "content/public/common/url_constants.h"
#include "content/public/renderer/re... | 33.075 | 80 | 0.724868 | yejingfu |
4123ecb854d1ba8e54cbb03d4df5ae43bd3a9fc0 | 5,908 | cxx | C++ | Parts/mediaref/brender/src/3dmatlm.cxx | magic-lantern-studio/mle-parts | 551cdb0757fcd6623cd5c7572dca681165b43a29 | [
"MIT"
] | 1 | 2021-02-04T22:44:16.000Z | 2021-02-04T22:44:16.000Z | Parts/mediaref/brender/src/3dmatlm.cxx | magic-lantern-studio/mle-parts | 551cdb0757fcd6623cd5c7572dca681165b43a29 | [
"MIT"
] | null | null | null | Parts/mediaref/brender/src/3dmatlm.cxx | magic-lantern-studio/mle-parts | 551cdb0757fcd6623cd5c7572dca681165b43a29 | [
"MIT"
] | null | null | null | /** @defgroup MleParts Magic Lantern Parts */
/**
* @file 3dmatlm.cxx
* @ingroup MleParts
*
* This file implements the class for a 3D Material Media Reference
* targeting the BRender platform.
*
* @author Mark S. Millard
* @date May 1, 2003
*/
// COPYRIGHT_BEGIN
//
// Copyright (C) 2000-2007 Wizzer Works
/... | 27.100917 | 111 | 0.66046 | magic-lantern-studio |
412529ab284bbe64123f3e55276a236abadccb47 | 6,843 | cpp | C++ | event_handles/Sewing2dPatternEventHandle.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 32 | 2016-12-13T05:49:12.000Z | 2022-02-04T06:15:47.000Z | event_handles/Sewing2dPatternEventHandle.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 2 | 2019-07-30T02:01:16.000Z | 2020-03-12T15:06:51.000Z | event_handles/Sewing2dPatternEventHandle.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 18 | 2017-11-16T13:37:06.000Z | 2022-03-11T08:13:46.000Z | #include <QEvent>
#include <GL\glew.h>
#include "Viewer2d.h"
#include "Viewer3d.h"
#include "cloth\clothManager.h"
#include "cloth\clothPiece.h"
#include "Renderable\ObjMesh.h"
#include "cloth\graph\GraphsSewing.h"
#include "../clothdesigner.h"
#include "Sewing2dPatternEventHandle.h"
Sewing2dPatternEventHandle::Sewing2... | 28.160494 | 96 | 0.682595 | dolphin-li |
4127d200b32a30057857677b98275f949debbbc3 | 2,830 | cpp | C++ | QPandaSDK/QuantumCommandControl/QCloudCommandVector.cpp | ArrowYL/QPanda | cef733118cdf8c02676ad710851ad4169bd84b31 | [
"Apache-2.0"
] | 58 | 2018-07-16T11:09:17.000Z | 2022-03-01T07:35:52.000Z | QPandaSDK/QuantumCommandControl/QCloudCommandVector.cpp | ArrowYL/QPanda | cef733118cdf8c02676ad710851ad4169bd84b31 | [
"Apache-2.0"
] | 1 | 2018-12-20T08:59:25.000Z | 2018-12-20T08:59:25.000Z | QPandaSDK/QuantumCommandControl/QCloudCommandVector.cpp | ArrowYL/QPanda | cef733118cdf8c02676ad710851ad4169bd84b31 | [
"Apache-2.0"
] | 15 | 2018-07-17T02:55:48.000Z | 2020-04-22T00:16:09.000Z | /******************************************************************************
Copyright (c) 2017-2018 Origin Quantum Computing Co., Ltd.. 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 co... | 30.76087 | 115 | 0.572438 | ArrowYL |
4129836e3f01333d47fce9639f52375e1c223f68 | 317 | cpp | C++ | src/distr/comm_manager.cpp | ChristopherKotthoff/Aphros-with-GraphContraction | 18af982a50e350a8bf6979ae5bd25b2ef4d3792a | [
"MIT"
] | 252 | 2020-06-03T16:01:59.000Z | 2022-03-30T14:06:32.000Z | src/distr/comm_manager.cpp | ChristopherKotthoff/Aphros-with-GraphContraction | 18af982a50e350a8bf6979ae5bd25b2ef4d3792a | [
"MIT"
] | 4 | 2021-03-13T11:13:55.000Z | 2022-03-31T15:11:22.000Z | src/distr/comm_manager.cpp | ChristopherKotthoff/Aphros-with-GraphContraction | 18af982a50e350a8bf6979ae5bd25b2ef4d3792a | [
"MIT"
] | 27 | 2020-09-18T04:12:03.000Z | 2022-03-30T04:22:42.000Z | // Created by Petr Karnakov on 02.01.2021
// Copyright 2021 ETH Zurich
#include "util/macros.h"
#if USEFLAG(MPI)
#include "comm_manager.ipp"
#else
#include "comm_manager_seq.ipp"
#endif
template struct CommManager<1>;
template struct CommManager<2>;
template struct CommManager<3>;
template struct CommManager<4>;
| 19.8125 | 41 | 0.769716 | ChristopherKotthoff |
412be1a18b70adcc658e3482d4770405496559af | 10,320 | cpp | C++ | src/modules/rw_uart/rw_uart.cpp | yihangHKU/PX4_Firmware_yh | c47884f7665dd500b606b9ca0372d3e2ee9d907d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T07:07:34.000Z | 2019-12-25T07:07:34.000Z | src/modules/rw_uart/rw_uart.cpp | yihangHKU/yihang | c47884f7665dd500b606b9ca0372d3e2ee9d907d | [
"BSD-3-Clause"
] | null | null | null | src/modules/rw_uart/rw_uart.cpp | yihangHKU/yihang | c47884f7665dd500b606b9ca0372d3e2ee9d907d | [
"BSD-3-Clause"
] | 1 | 2022-01-26T16:01:22.000Z | 2022-01-26T16:01:22.000Z | /*
* 串口读取函数
* rw_uart.c
*/
#include <px4_posix.h>
#include <px4_defines.h>
#include <px4_config.h>
#include <px4_tasks.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <termios.h>
#include <unistd.h>
#include <stdbool.h>
#include <errno.h>
#include <drivers/drv_hrt.h>
#include <poll.h>
#includ... | 32.149533 | 188 | 0.567733 | yihangHKU |
412c384ed1e2550d7af1b4696d2d61601be4d35d | 8,549 | cpp | C++ | src/CourseUtil.cpp | turion64guy/PSPMania | ce837dca954c76fa7188552ade88becf243899bc | [
"Info-ZIP"
] | 9 | 2015-06-10T21:46:09.000Z | 2021-04-22T20:47:31.000Z | src/CourseUtil.cpp | turion64guy/PSPMania | ce837dca954c76fa7188552ade88becf243899bc | [
"Info-ZIP"
] | null | null | null | src/CourseUtil.cpp | turion64guy/PSPMania | ce837dca954c76fa7188552ade88becf243899bc | [
"Info-ZIP"
] | 5 | 2016-06-24T12:06:12.000Z | 2021-08-14T17:33:28.000Z | #include "global.h"
#include "CourseUtil.h"
#include "Course.h"
#include "RageTimer.h"
#include "ProfileManager.h"
#include "SongManager.h"
#include "XmlFile.h"
#include "GameState.h"
#include "Style.h"
//
// Sorting stuff
//
static bool CompareCoursePointersByName(const Course* pCourse1, const Course* pCourse2)
{
/... | 30.423488 | 173 | 0.740554 | turion64guy |
412de78d84d82e6938f5146805a70a5dc593a7c3 | 23,966 | cpp | C++ | server/query_api_processor.cpp | TheTrueSkam/griddb_nosql | 3286b8c3c25d76c29c187144de5d1ae6575da73e | [
"Apache-2.0"
] | 3 | 2018-12-31T09:39:53.000Z | 2021-06-01T17:14:13.000Z | server/query_api_processor.cpp | TheTrueSkam/griddb_nosql | 3286b8c3c25d76c29c187144de5d1ae6575da73e | [
"Apache-2.0"
] | 4 | 2021-09-15T02:50:12.000Z | 2021-09-15T02:50:32.000Z | server/query_api_processor.cpp | TheTrueSkam/griddb_nosql | 3286b8c3c25d76c29c187144de5d1ae6575da73e | [
"Apache-2.0"
] | 1 | 2018-11-18T21:33:50.000Z | 2018-11-18T21:33:50.000Z | /*
Copyright (c) 2017 TOSHIBA Digital Solutions Corporation
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This... | 32.651226 | 83 | 0.71059 | TheTrueSkam |
4135be1ac2368d429c59ae065be880bfb9da5919 | 1,469 | cpp | C++ | HolographicJS/Console.cpp | lwansbrough/HolographicJS | 8e71dd890e587929e46fba25c9dcaa72748ba73f | [
"Apache-2.0"
] | 120 | 2016-09-02T23:52:06.000Z | 2020-02-27T05:25:53.000Z | HolographicJS/Console.cpp | lwansbrough/HolographicJS | 8e71dd890e587929e46fba25c9dcaa72748ba73f | [
"Apache-2.0"
] | 3 | 2016-10-15T01:18:03.000Z | 2017-02-20T21:28:16.000Z | HolographicJS/Console.cpp | lwansbrough/HolographicJS | 8e71dd890e587929e46fba25c9dcaa72748ba73f | [
"Apache-2.0"
] | 7 | 2016-10-16T16:21:36.000Z | 2019-09-26T07:51:44.000Z | #include "pch.h"
#include "Console.h"
#include "Binding.h"
#include <assert.h>
Console::Console()
{
}
JsValueRef Console::prototype;
JsValueRef CALLBACK Console::constructor(JsValueRef callee, bool isConstructCall, JsValueRef *arguments, unsigned short argumentCount, void *callbackState)
{
assert(isConstructCall);
... | 25.77193 | 155 | 0.733152 | lwansbrough |
4137d1876d3450ed4113066e20cbcca14d5e0ee2 | 4,988 | cpp | C++ | examples/optimisation_1/optimisation_1_run.cpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | null | null | null | examples/optimisation_1/optimisation_1_run.cpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | 1 | 2020-11-05T13:21:52.000Z | 2020-11-05T13:21:52.000Z | examples/optimisation_1/optimisation_1_run.cpp | giordano/stationsimcpp | e8b7a5c5d7b7aa8f80bd983a170e6afc59f548d4 | [
"MIT"
] | 1 | 2020-06-18T17:52:06.000Z | 2020-06-18T17:52:06.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2020 Eleftherios Avramidis <ea461@cam.ac.uk>
// Research Computing Services, University of Cambridge, UK
//
// Distributed under The MIT License (MIT)
// See accompanying file LICENSE
//-------------------------------------... | 34.164384 | 120 | 0.664395 | giordano |
41397016e849101524e0069b27678cb78c6a0b83 | 816 | hpp | C++ | include/usagi/concepts/tuple/distinct.hpp | SachiSakurane/usagi | 952a07d87ead0c7b5839648d0bde54213effde09 | [
"BSL-1.0"
] | 1 | 2021-07-24T17:45:16.000Z | 2021-07-24T17:45:16.000Z | include/usagi/concepts/tuple/distinct.hpp | SachiSakurane/usagi | 952a07d87ead0c7b5839648d0bde54213effde09 | [
"BSL-1.0"
] | 11 | 2021-11-09T06:38:47.000Z | 2021-11-27T15:56:23.000Z | include/usagi/concepts/tuple/distinct.hpp | SachiSakurane/usagi | 952a07d87ead0c7b5839648d0bde54213effde09 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <tuple>
#include <utility>
#include <usagi/tuple/erase.hpp>
#include <usagi/tuple/front.hpp>
#include <usagi/tuple/has.hpp>
namespace usagi::concepts::tuple {
namespace detail {
template <class TupleType, size_t Size = std::tuple_size_v<TupleType>>
class distinct_impl {
using target = u... | 26.322581 | 88 | 0.721814 | SachiSakurane |
413a23a5f2afa082e8d33c1c2c782771e470330f | 1,148 | cpp | C++ | SiftEC/src/util/serializable_address_value_pair.cpp | zdx-alex/Sift | 68647aebb1db23d879ca67e5e9cd54fda1f833d7 | [
"Apache-2.0"
] | 3 | 2020-04-20T20:12:01.000Z | 2021-12-07T03:39:09.000Z | SiftEC/src/util/serializable_address_value_pair.cpp | zdx-alex/Sift | 68647aebb1db23d879ca67e5e9cd54fda1f833d7 | [
"Apache-2.0"
] | null | null | null | SiftEC/src/util/serializable_address_value_pair.cpp | zdx-alex/Sift | 68647aebb1db23d879ca67e5e9cd54fda1f833d7 | [
"Apache-2.0"
] | 3 | 2020-11-15T01:23:23.000Z | 2021-03-01T06:51:55.000Z | #include "include/util/serializable_address_value_pair.h"
#include <cstring>
#include <assert.h>
SerializableAVPair::SerializableAVPair() {}
SerializableAVPair::~SerializableAVPair() {}
char* SerializableAVPair::serialize() {
char* frame = new char[sizeof(AVPair)];
memcpy(frame, &value, sizeof(AVPair)); // c... | 24.956522 | 72 | 0.735192 | zdx-alex |
413a4e31790c1e62e18ef60ddbdfc4cf4d9b6555 | 23,551 | cpp | C++ | VideoServer/src/mod/endpoints/mod_khomp/src/khomp_pvt_fxo.cpp | zengfanmao/mpds | c2bba464eaddc9ec70604a8614d84c5334461e8e | [
"MIT"
] | null | null | null | VideoServer/src/mod/endpoints/mod_khomp/src/khomp_pvt_fxo.cpp | zengfanmao/mpds | c2bba464eaddc9ec70604a8614d84c5334461e8e | [
"MIT"
] | null | null | null | VideoServer/src/mod/endpoints/mod_khomp/src/khomp_pvt_fxo.cpp | zengfanmao/mpds | c2bba464eaddc9ec70604a8614d84c5334461e8e | [
"MIT"
] | null | null | null | /*******************************************************************************
KHOMP generic endpoint/channel library.
Copyright (C) 2007-2010 Khomp Ind. & Com.
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in complianc... | 28.650852 | 171 | 0.586854 | zengfanmao |
413bb842cc773ed2dff9dab9af6c8ebf39e092a5 | 11,031 | cc | C++ | src/bitcoin/BitcoinUtils.cc | vpashka/btcpool | dab18b2bc90b3db2fb30698fc04e7e21a06acd11 | [
"MIT"
] | null | null | null | src/bitcoin/BitcoinUtils.cc | vpashka/btcpool | dab18b2bc90b3db2fb30698fc04e7e21a06acd11 | [
"MIT"
] | null | null | null | src/bitcoin/BitcoinUtils.cc | vpashka/btcpool | dab18b2bc90b3db2fb30698fc04e7e21a06acd11 | [
"MIT"
] | 1 | 2021-11-05T08:36:28.000Z | 2021-11-05T08:36:28.000Z | /*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
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, me... | 31.60745 | 80 | 0.654519 | vpashka |
413eb05fc0d7d0e96a1b86e7b5bceb90e3b3f079 | 4,666 | cpp | C++ | modules/filters/src/smoothing/average.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/filters/src/smoothing/average.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/filters/src/smoothing/average.cpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2018 Simon Vogl <svogl@voxel.at>
Angel Merino-Sastre <amerino@voxel.at>
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/licen... | 24.687831 | 82 | 0.623875 | voxel-dot-at |
413f3f27e5c9f76897708e6dc0809a96a106c978 | 696 | cpp | C++ | Src/EntityStorage.cpp | Condzi/Engine | 10f6acdf33b24b8d0aab9efcec570821a73423a1 | [
"MIT"
] | 1 | 2018-07-30T10:51:23.000Z | 2018-07-30T10:51:23.000Z | Src/EntityStorage.cpp | Condzi/Engine | 10f6acdf33b24b8d0aab9efcec570821a73423a1 | [
"MIT"
] | null | null | null | Src/EntityStorage.cpp | Condzi/Engine | 10f6acdf33b24b8d0aab9efcec570821a73423a1 | [
"MIT"
] | null | null | null | /*
Conrad 'Condzi' Kubacki 2018
https://github.com/condzi
*/
#include "Engine/EnginePCH.hpp"
#include "Engine/EntityStorage.hpp"
#include <SFML/System/Clock.hpp>
namespace con::priv
{
void EntityStorage::update()
{
if ( cleanupClock.getElapsedTime() >= CLEANUP_INTERVAL ) {
cleanupClock.restart();
cleanup();... | 17.846154 | 92 | 0.666667 | Condzi |
414109480f97f72793bb34a95ce9392a781c0ea8 | 801 | cpp | C++ | codeforces/cf616 div2/A.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | codeforces/cf616 div2/A.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | codeforces/cf616 div2/A.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#include<vector>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#define ll long long
#define F(i,a,b) for(int i=(a);i<=(b);i++)
#define mst(a,b) memset((a),(b),sizeof(a))
#define PII pair<int,int>
using namespace std;
template<class ... | 19.071429 | 67 | 0.566792 | songhn233 |
41432ebf6921c49b130331274b6bd1d5e211e863 | 8,991 | cpp | C++ | examples/mgard-x/CompressXgcData/TestXGCAbsoluteError.cpp | JieyangChen7/MGARD | acec8facae1e2767a3adff2bb3c30f3477e69bdb | [
"Apache-2.0"
] | null | null | null | examples/mgard-x/CompressXgcData/TestXGCAbsoluteError.cpp | JieyangChen7/MGARD | acec8facae1e2767a3adff2bb3c30f3477e69bdb | [
"Apache-2.0"
] | null | null | null | examples/mgard-x/CompressXgcData/TestXGCAbsoluteError.cpp | JieyangChen7/MGARD | acec8facae1e2767a3adff2bb3c30f3477e69bdb | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021, Oak Ridge National Laboratory.
* MGARD-X: MultiGrid Adaptive Reduction of Data Portable across GPUs and CPUs
* Author: Jieyang Chen (chenj3@ornl.gov)
* Date: April 2, 2021
*/
#include <chrono>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <fstream>
#include <math.h>
#include <mpi.h... | 35.121094 | 80 | 0.592926 | JieyangChen7 |
41474d27de1e30b6ef540ccf2ffc3a345c748405 | 10,962 | cpp | C++ | KDIS/DataTypes/LinearSegmentParameter.cpp | cdit-ma/kdis | f722221cee0e5ea6869f9e923ad1cdb93d5d289f | [
"BSD-2-Clause"
] | null | null | null | KDIS/DataTypes/LinearSegmentParameter.cpp | cdit-ma/kdis | f722221cee0e5ea6869f9e923ad1cdb93d5d289f | [
"BSD-2-Clause"
] | null | null | null | KDIS/DataTypes/LinearSegmentParameter.cpp | cdit-ma/kdis | f722221cee0e5ea6869f9e923ad1cdb93d5d289f | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************
Copyright 2013 Karl Jones
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above ... | 31.5 | 124 | 0.479201 | cdit-ma |
41478c1abdf58e75a9669798d363830f2899bc65 | 8,989 | cc | C++ | src/main/image.cc | hisahi/malpinx | 3fd3630073d5abc6e53aa18e6672fb3265f5da94 | [
"MIT"
] | null | null | null | src/main/image.cc | hisahi/malpinx | 3fd3630073d5abc6e53aa18e6672fb3265f5da94 | [
"MIT"
] | null | null | null | src/main/image.cc | hisahi/malpinx | 3fd3630073d5abc6e53aa18e6672fb3265f5da94 | [
"MIT"
] | null | null | null | /****************************************************************************/
/* */
/* MALPINX SOURCE CODE (C) 2020 SAMPO HIPPELAINEN (HISAHI). */
/* SEE THE LICENSE FILE IN THE SOURCE ROOT DIRECTORY FOR LICENSE INFO. */
... | 27.1571 | 79 | 0.410835 | hisahi |
414862b9dbd90ee656c9fdfe2c2bffd6df2013b6 | 746 | cpp | C++ | 16790.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | 16790.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | 16790.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main() {
int t;
cin >> t;
while (t--) {
ll n;
cin >> n;
if (n % 4 == 0 && n % 6 == 0) {
cout << n / 6 << " " << n / 4 << endl;
}
else if (n < 6) {
if (n % 4 == 0) {
cout << "1"
... | 13.814815 | 54 | 0.290885 | jnvshubham7 |
414abbfa519798a07d24f8ca2562ecadaaadf100 | 1,632 | cpp | C++ | Common01/Source/Common/DrawSystem/HeapWrapper/HeapWrapperItem.cpp | DavidCoenFish/game02 | 3011cf2fe069b579759aa95333cb406a8ff52d53 | [
"Unlicense"
] | null | null | null | Common01/Source/Common/DrawSystem/HeapWrapper/HeapWrapperItem.cpp | DavidCoenFish/game02 | 3011cf2fe069b579759aa95333cb406a8ff52d53 | [
"Unlicense"
] | null | null | null | Common01/Source/Common/DrawSystem/HeapWrapper/HeapWrapperItem.cpp | DavidCoenFish/game02 | 3011cf2fe069b579759aa95333cb406a8ff52d53 | [
"Unlicense"
] | null | null | null | #include "CommonPCH.h"
#include "Common/DrawSystem/HeapWrapper/HeapWrapperItem.h"
#include "Common/DrawSystem/HeapWrapper/HeapWrapper.h"
std::shared_ptr<HeapWrapperItem> HeapWrapperItem::Factory(
ID3D12Device2* const pDevice,
const std::shared_ptr<HeapWrapper>& pHeapWrapper,
const int length
)
{
const ... | 21.76 | 84 | 0.717525 | DavidCoenFish |
414b75f8c43cce60e5ea63b0cd22d03b196f1fa0 | 1,778 | cpp | C++ | 2016/Day12/JSONAnalysis.cpp | marcuskrahl/AdventOfCode | 0148d9a01a565aac1a6104a6001478fab3b6d4f8 | [
"MIT"
] | null | null | null | 2016/Day12/JSONAnalysis.cpp | marcuskrahl/AdventOfCode | 0148d9a01a565aac1a6104a6001478fab3b6d4f8 | [
"MIT"
] | null | null | null | 2016/Day12/JSONAnalysis.cpp | marcuskrahl/AdventOfCode | 0148d9a01a565aac1a6104a6001478fab3b6d4f8 | [
"MIT"
] | null | null | null | #include "JSONAnalysis.hpp"
#include <regex>
std::regex number_regex("-?\\d+");
int get_sum_of_numbers(const std::string& input) {
std::smatch match;
int sum = 0;
std::string reduced_input = input;
while (std::regex_search(reduced_input, match, number_regex)) {
int extracted_number = std::sto... | 25.4 | 83 | 0.53937 | marcuskrahl |
414e1522bedbbdecdfa07ad64e3729724491da39 | 2,642 | cpp | C++ | cpp-htp/standard/ch21solutions/Ex08_45/Ex08_45.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | 75 | 2020-03-23T11:00:31.000Z | 2022-02-20T05:22:53.000Z | cpp-htp/standard/ch21solutions/Ex08_45/Ex08_45.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | null | null | null | cpp-htp/standard/ch21solutions/Ex08_45/Ex08_45.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | 39 | 2020-04-03T23:47:24.000Z | 2022-01-19T05:06:39.000Z | // Exercise 8.45 Solution: Ex08_45.cpp
// NOTE: THIS PROGRAM ONLY HANDLES VALUES UP TO $99.99
// The program is easily modified to process larger values
#include <iostream>
using namespace std;
int main()
{
// array representing string of values from 1-9
const char *digits[ 10 ] = { "", "ONE", "TWO", "... | 40.030303 | 77 | 0.520439 | yanshengjia |
414eab0e3202fa44efd2dbb1e20082a48190f367 | 589 | cpp | C++ | system/StageTwo.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | system/StageTwo.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | system/StageTwo.cpp | arulagrawal/cos214_project | 1ea65ac7e46b97107c0ec2a75359514bc6c98c15 | [
"BSD-2-Clause"
] | null | null | null | #include "StageTwo.h"
///runs all the functions of stage according to stageTwo parameters and requirements.
StageTwo::StageTwo(Falcon* f) : Stage(f){
}
bool StageTwo::staticFire(){
return falcon->getEngine()->test();
}
void StageTwo::on(){
falcon->getEngine()->on();
}
void StageTwo::off(){
falcon->getEn... | 19.633333 | 85 | 0.657046 | arulagrawal |
414f12097a2bc370b77d5aab568c54547749b933 | 5,435 | cc | C++ | libmems/iio_channel_impl.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | libmems/iio_channel_impl.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | libmems/iio_channel_impl.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 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 <memory>
#include <string>
#include <base/check.h>
#include <base/logging.h>
#include <base/strings/stringprintf.h>
#include <base/strings/st... | 29.22043 | 80 | 0.632199 | Toromino |
a990b55a32bca41668116e24767449113cd671c5 | 601 | hxx | C++ | is_scalar.hxx | mojo-runtime/lib-std | 35178964db5b51184f35447f33c379de9768b534 | [
"MIT"
] | null | null | null | is_scalar.hxx | mojo-runtime/lib-std | 35178964db5b51184f35447f33c379de9768b534 | [
"MIT"
] | null | null | null | is_scalar.hxx | mojo-runtime/lib-std | 35178964db5b51184f35447f33c379de9768b534 | [
"MIT"
] | null | null | null | #pragma once
#include "is_arithmetic.hxx"
#include "is_enum.hxx"
#include "is_member_pointer.hxx"
#include "is_null_pointer.hxx"
#include "is_pointer.hxx"
#include "is_same.hxx"
namespace std {
template <typename T>
struct is_scalar : integral_constant<bool,
std::is_arithmetic<T>... | 26.130435 | 67 | 0.475874 | mojo-runtime |
a991b326d2ac427045ca5eba1bc42335298aaa78 | 4,737 | cc | C++ | third_party/blink/renderer/modules/quota/navigator_storage_quota.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/modules/quota/navigator_storage_quota.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | third_party/blink/renderer/modules/quota/navigator_storage_quota.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | /*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 41.191304 | 78 | 0.779185 | zealoussnow |
a992ba126e56e0b23d57c00117ba222b7b40fb14 | 977 | hpp | C++ | deps/boost/include/boost/atomic/detail/caps_arch_msvc_arm.hpp | kindlychung/mediasoup-sfu-cpp | f69d2f48f7edbf4f0c57244280a47bea985f39cf | [
"Apache-2.0"
] | 80 | 2021-09-07T12:44:32.000Z | 2022-03-29T01:22:19.000Z | deps/boost/include/boost/atomic/detail/caps_arch_msvc_arm.hpp | kindlychung/mediasoup-sfu-cpp | f69d2f48f7edbf4f0c57244280a47bea985f39cf | [
"Apache-2.0"
] | 2 | 2021-12-23T02:49:42.000Z | 2022-02-15T05:28:24.000Z | deps/boost/include/boost/atomic/detail/caps_arch_msvc_arm.hpp | kindlychung/mediasoup-sfu-cpp | f69d2f48f7edbf4f0c57244280a47bea985f39cf | [
"Apache-2.0"
] | 25 | 2021-09-14T06:24:25.000Z | 2022-03-20T06:55:07.000Z | /*
* 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)
*
* Copyright (c) 2009 Helge Bahmann
* Copyright (c) 2013 Tim Blechmann
* Copyright (c) 2012 - 2014 Andrey Semashev
*/
/*!
* \file atomic/detai... | 27.914286 | 63 | 0.78608 | kindlychung |
a992fccffe9fc9d862760abcb34e8a93ff94f878 | 1,594 | cpp | C++ | source/start.cpp | Manolomon/blind-jump-portable | 6149d8b639bc9c50533b7eb5fc26884addf563fd | [
"MIT"
] | 140 | 2019-08-31T02:52:17.000Z | 2022-03-25T12:38:23.000Z | source/start.cpp | Manolomon/blind-jump-portable | 6149d8b639bc9c50533b7eb5fc26884addf563fd | [
"MIT"
] | 8 | 2020-11-30T11:29:56.000Z | 2021-08-08T16:39:17.000Z | source/start.cpp | Manolomon/blind-jump-portable | 6149d8b639bc9c50533b7eb5fc26884addf563fd | [
"MIT"
] | 5 | 2020-07-08T23:44:32.000Z | 2021-11-04T21:17:52.000Z | #include "blind_jump/game.hpp"
#include "globals.hpp"
#include "transformGroup.hpp"
class UpdateTask : public Platform::Task {
public:
UpdateTask(Synchronized<Game>* game, Platform* pf);
void run() override;
private:
Synchronized<Game>* game_;
Platform* pf_;
};
UpdateTask::UpdateTask(Synchronized<... | 19.925 | 86 | 0.521957 | Manolomon |
a99405149444514516d370fec6285fa324b8c334 | 2,363 | cc | C++ | coding/Reactor/v3/TCPConnection.cc | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | coding/Reactor/v3/TCPConnection.cc | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | coding/Reactor/v3/TCPConnection.cc | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | #include "TCPConnection.hh"
#include "EventLoop.hh"
#include <sstream>
using std::ostringstream;
namespace wd
{
TCPConnection::TCPConnection(int fd, EventLoop *event)
: _sock(Socket(fd)),
_sockio(SocketIO(fd)),
_localAddr(getLocalAddr(fd)),
_peerAddr(getPeerAddr(fd)),
_isShutdownWrite(fals... | 22.292453 | 72 | 0.65256 | snow-tyan |
a997bcc1fdde75b4f44ee1faf0878146758765f4 | 8,387 | cpp | C++ | thrift/lib/cpp2/protocol/nimble/test/NimbleForwardCompatibilityTest.cpp | laohubuzaijia/fbthrift | ab263311864ec93b8e52665dad954264f094137f | [
"Apache-2.0"
] | 2,112 | 2015-01-02T11:34:27.000Z | 2022-03-31T16:30:42.000Z | thrift/lib/cpp2/protocol/nimble/test/NimbleForwardCompatibilityTest.cpp | laohubuzaijia/fbthrift | ab263311864ec93b8e52665dad954264f094137f | [
"Apache-2.0"
] | 372 | 2015-01-05T10:40:09.000Z | 2022-03-31T20:45:11.000Z | thrift/lib/cpp2/protocol/nimble/test/NimbleForwardCompatibilityTest.cpp | laohubuzaijia/fbthrift | ab263311864ec93b8e52665dad954264f094137f | [
"Apache-2.0"
] | 582 | 2015-01-03T01:51:56.000Z | 2022-03-31T02:01:09.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 30.834559 | 86 | 0.701323 | laohubuzaijia |
a997e3e1615ebe70661c294f3cc8e2239b83a4dd | 18,695 | cpp | C++ | Calc/src/device_vkw.cpp | generalistr6/Radeon_Rays | d9e0a89d8e770c7fbd1e8c20761432b8ce93ecf7 | [
"MIT"
] | null | null | null | Calc/src/device_vkw.cpp | generalistr6/Radeon_Rays | d9e0a89d8e770c7fbd1e8c20761432b8ce93ecf7 | [
"MIT"
] | null | null | null | Calc/src/device_vkw.cpp | generalistr6/Radeon_Rays | d9e0a89d8e770c7fbd1e8c20761432b8ce93ecf7 | [
"MIT"
] | null | null | null | #include "except_vk.h"
#if defined(USE_VULKAN)
#include <cassert>
#include "misc/debug.h"
#include "wrappers/device.h"
#include "wrappers/shader_module.h"
#include "wrappers/buffer.h"
#include "wrappers/descriptor_set_group.h"
#include "wrappers/command_pool.h"
#include "wrappers/compute_pipeline_manager.h"
#include "... | 34.429098 | 153 | 0.58406 | generalistr6 |
a9985768f5243857f9a298a0d96976ed15e56125 | 9,797 | cpp | C++ | external_codes/boost_multi/multi/timings/tr_prod.cpp | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | null | null | null | external_codes/boost_multi/multi/timings/tr_prod.cpp | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | 11 | 2020-05-09T20:57:21.000Z | 2020-06-10T00:00:17.000Z | external_codes/boost_multi/multi/timings/tr_prod.cpp | djstaros/qmcpack | 280f67e638bae280448b47fa618f05b848c530d2 | [
"NCSA"
] | null | null | null | #if COMPILATION_INSTRUCTIONS
c++ -std=c++14 `#-DNDEBUG` -Ofast -Wall -Wextra $0 -o $0x.x -lpthread && $0x.x 16384 128 128 $@ && rm -f $0x.x; exit
#endif
#include<iostream>
#include<cstdlib>
#include<sys/time.h>
#include<numeric>
#include "/home/correaa/prj/alf/boost/multi/array.hpp"
#include <future>
using std::cout;... | 29.42042 | 116 | 0.545779 | djstaros |
a99a73d48b07f1ab1a0b6b3802aaee2cda5d0857 | 827 | cpp | C++ | homomorphism/src/forget_handler_any.cpp | ChristianLebeda/HomSub | 947700ec72a9560bf47bec27e922f5d128d9eef4 | [
"MIT"
] | 2 | 2020-10-22T09:01:43.000Z | 2022-01-04T13:14:08.000Z | homomorphism/src/forget_handler_any.cpp | ChristianLebeda/HomSub | 947700ec72a9560bf47bec27e922f5d128d9eef4 | [
"MIT"
] | 1 | 2020-06-04T10:45:20.000Z | 2020-06-04T10:45:20.000Z | homomorphism/src/forget_handler_any.cpp | ChristianLebeda/HomSub | 947700ec72a9560bf47bec27e922f5d128d9eef4 | [
"MIT"
] | null | null | null | #include "homomorphism/forget_handler_any.h"
std::vector<size_t>& ForgetHandlerAny::forget(std::vector<size_t> &input, std::vector<size_t> &output,
size_t b, size_t idx) {
// Since index and exponents are inverted. If this is changed this line should be removed.
size_t pos = idx;
size_t xMax = size... | 28.517241 | 102 | 0.555018 | ChristianLebeda |
a99a86827074ceb9346abcf4d3656dfb1fc28ace | 820 | cpp | C++ | tests/includes/test_includes.cpp | Mogball/waterloop-wlib | 41890e0c1b12d0d1df8eecf84a466d4e1558fe9d | [
"MIT"
] | 2 | 2017-11-06T22:57:31.000Z | 2017-12-06T14:51:16.000Z | tests/includes/test_includes.cpp | Mogball/waterloop-wlib | 41890e0c1b12d0d1df8eecf84a466d4e1558fe9d | [
"MIT"
] | 43 | 2017-10-30T04:31:38.000Z | 2017-12-06T05:39:38.000Z | tests/includes/test_includes.cpp | Mogball/waterloop-wlib | 41890e0c1b12d0d1df8eecf84a466d4e1558fe9d | [
"MIT"
] | 8 | 2017-11-02T03:00:19.000Z | 2017-11-25T21:36:02.000Z | #include <wlib/array_heap>
#include <wlib/array_list>
#include <wlib/array2d>
#include <wlib/bit_set>
#include <wlib/comparator>
#include <wlib/dynamic_string>
#include <wlib/equals>
#include <wlib/hash>
#include <wlib/hash_map>
#include <wlib/hash_set>
#include <wlib/hash_table>
#include <wlib/initializer_list>
#inclu... | 22.777778 | 32 | 0.75122 | Mogball |
a99ad348afbb52eae1bad522a78bb3bc5a926217 | 788 | cpp | C++ | third_party/common/src/RE/NiAVObject.cpp | qis/alchemy | fe6897fa8c065eccc49b61c8c82eda223d865d51 | [
"0BSD"
] | 3 | 2018-04-05T04:04:17.000Z | 2021-02-01T17:50:01.000Z | third_party/common/src/RE/NiAVObject.cpp | qis/alchemy | fe6897fa8c065eccc49b61c8c82eda223d865d51 | [
"0BSD"
] | null | null | null | third_party/common/src/RE/NiAVObject.cpp | qis/alchemy | fe6897fa8c065eccc49b61c8c82eda223d865d51 | [
"0BSD"
] | 1 | 2021-02-01T17:50:03.000Z | 2021-02-01T17:50:03.000Z | #include "RE/NiAVObject.h"
#include "RE/Offsets.h"
#include "REL/Relocation.h"
namespace RE
{
void NiAVObject::UpdateModelHair(NiColorA** a_color)
{
using func_t = function_type_t<decltype(&NiAVObject::UpdateModelHair)>;
REL::Offset<func_t*> func(Offset::NiAVObject::UpdateModelHair);
return func(this, a_colo... | 24.625 | 73 | 0.744924 | qis |
a99bfc42e52ec1502a3586f60e38578f54f0fd19 | 451 | cpp | C++ | ref/SerialTool-master/SerialTool/src/views/terminal/qvterminal/qvtchar.cpp | Azjhong/qt | 98f26b097289e3a11b4ae606c880461b876eebb2 | [
"MIT"
] | null | null | null | ref/SerialTool-master/SerialTool/src/views/terminal/qvterminal/qvtchar.cpp | Azjhong/qt | 98f26b097289e3a11b4ae606c880461b876eebb2 | [
"MIT"
] | null | null | null | ref/SerialTool-master/SerialTool/src/views/terminal/qvterminal/qvtchar.cpp | Azjhong/qt | 98f26b097289e3a11b4ae606c880461b876eebb2 | [
"MIT"
] | null | null | null | #include "qvtchar.h"
QVTChar::QVTChar()
{
m_char = QChar();
}
QVTChar::QVTChar(QChar c, const QVTCharFormat &format)
{
m_char = c;
m_background = format.background();
m_foreground = format.foreground();
}
QChar QVTChar::c() const
{
return m_char;
}
void QVTChar::setC(QChar c)
{
m_char = c;
}... | 13.264706 | 54 | 0.658537 | Azjhong |
a99d63a5cdc85bd5904e86268ce69ef64e31b706 | 794 | cpp | C++ | src/EExceptionMonitor.cpp | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 7 | 2016-08-25T14:22:36.000Z | 2020-05-25T17:27:51.000Z | src/EExceptionMonitor.cpp | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 1 | 2018-07-11T12:37:55.000Z | 2018-07-12T00:05:33.000Z | src/EExceptionMonitor.cpp | developkits/CxxMina | 705734fccc5ef87c7faa385b77cd1e67c46c5c75 | [
"Apache-2.0"
] | 2 | 2017-06-09T01:22:36.000Z | 2021-09-29T16:27:58.000Z | /*
* EExceptionMonitor.cpp
*
* Created on: 2015-12-28
* Author: cxxjava@163.com
*/
#include "../inc/EExceptionMonitor.hh"
#include "../inc/EDefaultExceptionMonitor.hh"
namespace efc {
namespace eio {
EExceptionMonitor* EExceptionMonitor::instance = null;
DEFINE_STATIC_INITZZ_BEGIN(EExceptionMonitor)
ESys... | 18.904762 | 65 | 0.744332 | developkits |
a99e30306c8b5bd2be26a72a754703095b967968 | 9,388 | cc | C++ | proxy/hdrs/HuffmanCodec.cc | jpappa200/trafficserver | de6d02b4b27f64437646b106bdcf70712b78dfbc | [
"Apache-2.0"
] | null | null | null | proxy/hdrs/HuffmanCodec.cc | jpappa200/trafficserver | de6d02b4b27f64437646b106bdcf70712b78dfbc | [
"Apache-2.0"
] | null | null | null | proxy/hdrs/HuffmanCodec.cc | jpappa200/trafficserver | de6d02b4b27f64437646b106bdcf70712b78dfbc | [
"Apache-2.0"
] | null | null | null | /** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... | 36.107692 | 123 | 0.560929 | jpappa200 |
a99fa9d2dbedeef58d0aafbc070a00004912be4c | 237 | cpp | C++ | test/test_config.cpp | yangfly/FaceApi | a7c217d8bc05224a79593d8c5c664bab4adc821c | [
"MIT"
] | null | null | null | test/test_config.cpp | yangfly/FaceApi | a7c217d8bc05224a79593d8c5c664bab4adc821c | [
"MIT"
] | null | null | null | test/test_config.cpp | yangfly/FaceApi | a7c217d8bc05224a79593d8c5c664bab4adc821c | [
"MIT"
] | null | null | null | #include "config.hpp"
using namespace std;
using namespace ocean_ai;
int main() {
try {
Config config("config.json");
int a = 5;
}
catch (const std::invalid_argument& ex) {
cout << "exception: " << ex.what();
}
return 0;
} | 14.8125 | 42 | 0.628692 | yangfly |
a9a3a58302bc727d64e0c96f63bdaced213d6497 | 1,571 | cc | C++ | libs/time/legacy-test-date-stamp.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/time/legacy-test-date-stamp.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/time/legacy-test-date-stamp.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::Time: test-stamp.cc
//
// Test harness for time library - reading and converting durations
//
// Copyright (c) 2005 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//========... | 29.092593 | 76 | 0.460216 | sandtreader |
a9a3aee61896fbd27bfe3e26f9043970a1ce5ae3 | 1,806 | cpp | C++ | libs/oef-base/src/comms/Listener.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1 | 2019-09-30T12:22:46.000Z | 2019-09-30T12:22:46.000Z | libs/oef-base/src/comms/Listener.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | null | null | null | libs/oef-base/src/comms/Listener.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1 | 2019-12-06T10:02:35.000Z | 2019-12-06T10:02:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI 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
//
// ... | 30.1 | 88 | 0.629014 | chr15murray |
a9a57ed0894c21409c2f26778fbfdfad3dd691d8 | 592 | cpp | C++ | infer/tests/codetoanalyze/cpp/shared/reference/temporary_lvalue.cpp | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 1 | 2016-12-19T07:33:16.000Z | 2016-12-19T07:33:16.000Z | infer/tests/codetoanalyze/cpp/shared/reference/temporary_lvalue.cpp | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | 2 | 2020-11-13T19:42:27.000Z | 2020-11-13T19:49:19.000Z | infer/tests/codetoanalyze/cpp/shared/reference/temporary_lvalue.cpp | shakenetwork/infer | faf04af1f4bd7a590948f3760cc9a11540420361 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015 - present Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
int div(co... | 24.666667 | 78 | 0.701014 | shakenetwork |
a9a6531c61c9b4b0b7a146cda2efe541ccda6cd6 | 1,286 | cpp | C++ | src/kenobet.cpp | iurylamonie/keno | b6dd28a7a36037ac5ea606d1ba77abd0d400ad6c | [
"MIT"
] | null | null | null | src/kenobet.cpp | iurylamonie/keno | b6dd28a7a36037ac5ea606d1ba77abd0d400ad6c | [
"MIT"
] | null | null | null | src/kenobet.cpp | iurylamonie/keno | b6dd28a7a36037ac5ea606d1ba77abd0d400ad6c | [
"MIT"
] | null | null | null | #include "kenobet.h"
bool KenoBet::add_number( number_type spot_ )
{
if( spot_ >= 1 and spot_ <= 80)
{
if( m_spots.size() ) ///< Verifica se já foi salvo algum spot do jogador.
{
auto rbsearch = std::binary_search( m_spots.begin(), m_spots.end(), spot_ );
if( !rbsearch ) ///< Caso o spot não exista em m_... | 22.561404 | 96 | 0.664852 | iurylamonie |
a9a9138a72b45826f20291e2c911ae60c60f41f8 | 4,579 | cpp | C++ | src/sa-bsn/target_system/components/component/src/Sensor.cpp | gabrielevi10/bsn | 2d42aa006933caf75365bb327fd7d79ae30c88b7 | [
"MIT"
] | 8 | 2020-01-26T15:26:27.000Z | 2022-01-05T15:38:07.000Z | src/sa-bsn/target_system/components/component/src/Sensor.cpp | gabrielevi10/bsn | 2d42aa006933caf75365bb327fd7d79ae30c88b7 | [
"MIT"
] | 50 | 2019-08-29T23:52:43.000Z | 2021-01-24T19:09:54.000Z | src/sa-bsn/target_system/components/component/src/Sensor.cpp | gabrielevi10/bsn | 2d42aa006933caf75365bb327fd7d79ae30c88b7 | [
"MIT"
] | 4 | 2019-06-15T17:23:57.000Z | 2020-10-16T20:09:41.000Z | #include "component/Sensor.hpp"
Sensor::Sensor(int &argc, char **argv, const std::string &name, const std::string &type, const bool &active, const double &noise_factor, const bsn::resource::Battery &battery, const bool &instant_recharge) : Component(argc, argv, name), type(type), active(active), buffer_size(1), replic... | 29.165605 | 397 | 0.590304 | gabrielevi10 |
a9a9809d4b02025eb25c5f05d3cd79f34999512b | 903 | cpp | C++ | Day 1-9/Day 2/Q1.cpp | getoxdev/SDE_Interview_Problems | d9203a22ed295b7a5e8ee45f236281c95975e23f | [
"MIT"
] | 30 | 2021-05-27T14:11:33.000Z | 2021-08-02T17:51:02.000Z | Day 1-9/Day 2/Q1.cpp | getoxdev/SDE_Interview_Problems | d9203a22ed295b7a5e8ee45f236281c95975e23f | [
"MIT"
] | null | null | null | Day 1-9/Day 2/Q1.cpp | getoxdev/SDE_Interview_Problems | d9203a22ed295b7a5e8ee45f236281c95975e23f | [
"MIT"
] | 9 | 2021-06-02T09:21:04.000Z | 2021-07-21T15:05:07.000Z | #include<bits/stdc++.h>
#define boost ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
#define R 1000
#define C 1000
#define deb(x) cout << #x << "=" << x << endl
using namespace std;
//Set matrix zeroes
int main()
{
boost;
int r,c;
cin>>r>>c;
int m[r][c];
for(int i=0;... | 17.037736 | 66 | 0.378738 | getoxdev |
a9aa53a9b142cb0f6b8b7c6c79a7225c1feb3b20 | 3,688 | cpp | C++ | Codeforces Round #781 (Div. 2)/E.cpp | frederickpek/codeforces | 04d6801583ea5901df6bf63fc6f0c092b9b02136 | [
"MIT"
] | null | null | null | Codeforces Round #781 (Div. 2)/E.cpp | frederickpek/codeforces | 04d6801583ea5901df6bf63fc6f0c092b9b02136 | [
"MIT"
] | null | null | null | Codeforces Round #781 (Div. 2)/E.cpp | frederickpek/codeforces | 04d6801583ea5901df6bf63fc6f0c092b9b02136 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
typedef vector<int> vi;
class SegmentTree { // OOP style
private:
int n; // n = (int)A.size()
vi A, st, lazy; // the arr... | 26.919708 | 74 | 0.404826 | frederickpek |
a9ab5f739470fcc4cca6d479a6d2e06baa90a1eb | 27,996 | cpp | C++ | ogr/ogrsf_frmts/gmlas/ogrgmlasconf.cpp | VisualAwarenessTech/gdal-2.2.1 | 5ea1c6671d6f0f3b93e9e9bf2a71da618c834e8d | [
"Apache-2.0"
] | null | null | null | ogr/ogrsf_frmts/gmlas/ogrgmlasconf.cpp | VisualAwarenessTech/gdal-2.2.1 | 5ea1c6671d6f0f3b93e9e9bf2a71da618c834e8d | [
"Apache-2.0"
] | null | null | null | ogr/ogrsf_frmts/gmlas/ogrgmlasconf.cpp | VisualAwarenessTech/gdal-2.2.1 | 5ea1c6671d6f0f3b93e9e9bf2a71da618c834e8d | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Project: OGR
* Purpose: OGRGMLASDriver implementation
* Author: Even Rouault, <even dot rouault at spatialys dot com>
*
* Initial development funded by the European Earth observation programme
* Copernicus
*
******************... | 41.231222 | 89 | 0.51093 | VisualAwarenessTech |
a9ab6ace81a22116b07aa9ddf94f0c06789aa42c | 19,394 | cpp | C++ | test/oxtra/encoding/encoding_test.cpp | oxtra/oxtra | cd538062869bfe68fc8552604c22334589d7380c | [
"BSD-3-Clause"
] | 9 | 2019-10-22T19:44:25.000Z | 2021-05-02T17:47:14.000Z | test/oxtra/encoding/encoding_test.cpp | oxtra/oxtra | cd538062869bfe68fc8552604c22334589d7380c | [
"BSD-3-Clause"
] | 1 | 2020-11-16T20:06:14.000Z | 2020-11-16T20:06:14.000Z | test/oxtra/encoding/encoding_test.cpp | oxtra/oxtra | cd538062869bfe68fc8552604c22334589d7380c | [
"BSD-3-Clause"
] | 2 | 2020-11-16T17:05:47.000Z | 2021-05-02T17:47:16.000Z | #include "../../catch2/catch.hpp"
#include "oxtra/codegen/encoding/encoding.h"
#include <stdlib.h>
#include <string.h>
using namespace encoding;
void refactor(const char *assembly, utils::riscv_instruction_t encoded) {
char assembly_[100] = {0};
strcat(assembly_, ".section .text\n.global _start\n\n_start:\n\t");
s... | 33.670139 | 155 | 0.714087 | oxtra |
a9ab6af87adce41a19d46985ce2361e13b03ec66 | 272 | cpp | C++ | test/special.cpp | DarthPigrum/TypeSI | 3505cad5113c1c6c907c48b3bd71e24e9ddb32bc | [
"BSL-1.0"
] | null | null | null | test/special.cpp | DarthPigrum/TypeSI | 3505cad5113c1c6c907c48b3bd71e24e9ddb32bc | [
"BSL-1.0"
] | null | null | null | test/special.cpp | DarthPigrum/TypeSI | 3505cad5113c1c6c907c48b3bd71e24e9ddb32bc | [
"BSL-1.0"
] | null | null | null | #include "si_base.hpp"
#include "si_prefix.hpp"
#include "si_special.hpp"
#include <gtest/gtest.h>
TEST(SpecialUnits, Gram) {
EXPECT_EQ(typeid(Si::Prefix<std::milli, Si::Special::Gram<double>>),
typeid(Si::Prefix<std::micro, Si::Base::Kilogram<double>>));
} | 30.222222 | 72 | 0.683824 | DarthPigrum |
a9ad58da5829d2f16fcc1b28726e9bf8034af167 | 2,079 | h++ | C++ | include/ogonek/normalization/normalize.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 25 | 2016-10-21T12:37:23.000Z | 2021-02-22T05:46:46.000Z | include/ogonek/normalization/normalize.h++ | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | null | null | null | include/ogonek/normalization/normalize.h++ | 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.
//
// ... | 40.764706 | 131 | 0.733045 | libogonek |
a9ae5a3a20caf67488f614a600cd600bd591d8ff | 24,393 | hpp | C++ | ios/Pods/boost-for-react-native/boost/numeric/odeint/algebra/default_operations.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 8,805 | 2015-11-03T00:52:29.000Z | 2022-03-29T22:30:03.000Z | ios/Pods/boost-for-react-native/boost/numeric/odeint/algebra/default_operations.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 14,694 | 2015-02-24T15:13:42.000Z | 2022-03-31T13:16:45.000Z | ios/Pods/boost-for-react-native/boost/numeric/odeint/algebra/default_operations.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 1,329 | 2015-11-03T20:25:51.000Z | 2022-03-31T18:10:38.000Z | /*
[auto_generated]
boost/numeric/odeint/algebra/default_operations.hpp
[begin_description]
Default operations. They work with the default numerical types, like float, double, complex< double> ...
[end_description]
Copyright 2010-2012 Karsten Ahnert
Copyright 2010-2013 Mario Mulansky
Distributed u... | 40.655 | 316 | 0.57455 | rudylee |
a9b0206a44fd1fdf0d17e1f2771c9f40dfe9bc91 | 2,164 | hpp | C++ | include/flecs/addons/cpp/module.hpp | logankaser/flecs | 6638a030604542835908463feabbe621c58b057a | [
"MIT"
] | 2 | 2021-09-09T13:20:15.000Z | 2021-09-09T20:23:25.000Z | include/flecs/addons/cpp/module.hpp | NrdyBhu1/flecs | b6a36158ba42f23638c370d5f38aa55774987a65 | [
"MIT"
] | null | null | null | include/flecs/addons/cpp/module.hpp | NrdyBhu1/flecs | b6a36158ba42f23638c370d5f38aa55774987a65 | [
"MIT"
] | null | null | null |
namespace flecs
{
////////////////////////////////////////////////////////////////////////////////
//// Define a module
////////////////////////////////////////////////////////////////////////////////
template <typename T>
flecs::entity module(const flecs::world& world) {
flecs::entity result = world.id<T>().en... | 28.473684 | 80 | 0.538355 | logankaser |
a9b50c0d71264cae947f2b1187e180ff49e60095 | 7,020 | cc | C++ | src/dns/cfg/dns_config.cc | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 37 | 2020-09-21T10:42:26.000Z | 2022-01-09T10:16:40.000Z | src/dns/cfg/dns_config.cc | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | null | null | null | src/dns/cfg/dns_config.cc | jnpr-pranav/contrail-controller | 428eee37c28c31830fd764315794e1a6e52720c1 | [
"Apache-2.0"
] | 21 | 2020-08-25T12:48:42.000Z | 2022-03-22T04:32:18.000Z | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/bind.hpp>
#include "base/logging.h"
#include "base/task.h"
#include "base/util.h"
#include "bind/bind_util.h"
#include "cfg/dns_config.h"
#include "cfg/config_listener.h"
#include "ifmap/ifmap_link.h"
#include "ifmap/ifmap_table.h... | 32.803738 | 88 | 0.621795 | jnpr-pranav |
a9b5acd464cf204b0c13947d12ec1c9d8f1951f0 | 773 | cpp | C++ | solutions/1005/20101031T152007Z-3278259.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | 11 | 2019-10-29T15:34:53.000Z | 2022-03-14T14:45:09.000Z | solutions/1005/20101031T152007Z-3278259.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | null | null | null | solutions/1005/20101031T152007Z-3278259.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | 6 | 2018-06-30T12:06:55.000Z | 2021-03-20T08:46:33.000Z | #include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int comb(int n, int k, int sum, int array[])
{
vector<int> mask(k, 0);
mask.resize(n, 1);
int min=sum;
do
{
int x=0;
for (int i=0; i < mask.size(); i++){
if (!mask[i]) {
x+=array[i];
}
... | 17.177778 | 55 | 0.50194 | Mistereo |
a9b64ea76ca5c3c8420ae225a512de52ca1153c3 | 47,480 | cpp | C++ | Core/third_party/JavaScriptCore/runtime/ProxyObject.cpp | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 677 | 2017-09-23T16:03:12.000Z | 2022-03-26T08:32:10.000Z | Core/third_party/JavaScriptCore/runtime/ProxyObject.cpp | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 3 | 2018-06-11T02:04:02.000Z | 2020-04-24T09:26:05.000Z | Core/third_party/JavaScriptCore/runtime/ProxyObject.cpp | InfiniteSynthesis/lynx-native | 022e277ee6767f5b668269a17b1679072cf7c3d6 | [
"MIT"
] | 92 | 2017-09-21T14:21:27.000Z | 2022-03-25T13:29:42.000Z | /*
* Copyright (C) 2016 Apple Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | 40.755365 | 237 | 0.710152 | InfiniteSynthesis |
a9ba9b76a0b56833cd2301970b0ea56c957ebf9a | 7,498 | cpp | C++ | Messy_Test-master/demo/CppBaseTest/multi_threaded_memory_pool.cpp | shenjl/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | 1 | 2019-11-10T08:23:00.000Z | 2019-11-10T08:23:00.000Z | Messy_Test-master/demo/CppBaseTest/multi_threaded_memory_pool.cpp | selonsy/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | null | null | null | Messy_Test-master/demo/CppBaseTest/multi_threaded_memory_pool.cpp | selonsy/Cplusplus | 345c2f582bf160d663c8accfafbcabc2ff011e57 | [
"MIT"
] | null | null | null | #include "multi_threaded_memory_pool.hpp"
#include <iostream>
#include <chrono>
#include <string>
#include <mutex>
// Blog: https://blog.csdn.net/fengbingchun/article/details/84592548
namespace multi_threaded_memory_pool_ {
// reference: 《提高C++性能的编程技术》:第七章:多线程内存池
////////////////////////////////////////////////
cla... | 23.878981 | 186 | 0.710856 | shenjl |
a9c315adcd8c274980e63fa2c2249545ad7c537f | 824 | cpp | C++ | index.cpp | advanced-programmming/plusminus-cpp | 1c2bc335cdaeb7e480b0ded8c34aef9278556c60 | [
"MIT"
] | null | null | null | index.cpp | advanced-programmming/plusminus-cpp | 1c2bc335cdaeb7e480b0ded8c34aef9278556c60 | [
"MIT"
] | null | null | null | index.cpp | advanced-programmming/plusminus-cpp | 1c2bc335cdaeb7e480b0ded8c34aef9278556c60 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include <iomanip>
using namespace std;
void plusMinus(vector<int> array);
int main() {
int arraysize = 0;
cin>>arraysize;
vector<int> array;
int number = 0;
for(int i = 0; i < arraysize; i++){
cin>>number;
array.push_back(number);
}
p... | 17.913043 | 66 | 0.510922 | advanced-programmming |
a9c3a04cdb80b70c9e9aff3c92c5e941d3bae561 | 72,251 | cpp | C++ | media/libstagefright/MediaCodec.cpp | rubis-lab/NANS_framework_av | fc0e7dfab044f96b33c641d7ddf60d5a8f1ac46e | [
"Apache-2.0"
] | null | null | null | media/libstagefright/MediaCodec.cpp | rubis-lab/NANS_framework_av | fc0e7dfab044f96b33c641d7ddf60d5a8f1ac46e | [
"Apache-2.0"
] | null | null | null | media/libstagefright/MediaCodec.cpp | rubis-lab/NANS_framework_av | fc0e7dfab044f96b33c641d7ddf60d5a8f1ac46e | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2012, The Android Open Source Project
*
* 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 applica... | 31.619694 | 96 | 0.534636 | rubis-lab |
a9c82ad487d78846a9f4c73d61634745f58f30ec | 1,302 | hpp | C++ | poc/tstins4/devlogger.hpp | upenn-acg/barracuda | db2549b62593934d81e3e8141302dd344f85a407 | [
"BSD-3-Clause"
] | 3 | 2020-05-08T04:37:48.000Z | 2021-01-31T15:57:15.000Z | poc/tstins4/devlogger.hpp | upenn-acg/barracuda | db2549b62593934d81e3e8141302dd344f85a407 | [
"BSD-3-Clause"
] | 1 | 2020-11-22T18:24:12.000Z | 2020-11-22T18:24:12.000Z | poc/tstins4/devlogger.hpp | upenn-acg/barracuda | db2549b62593934d81e3e8141302dd344f85a407 | [
"BSD-3-Clause"
] | 2 | 2019-12-04T05:43:51.000Z | 2019-12-04T07:57:31.000Z | #pragma once
__device__ void __store_op(const void* address, unsigned char op)
{
unsigned int active = __ballot(1);
unsigned int myidx = threadIdx.x % WARP_SIZE;
unsigned int ldridx = __ffs(active) - 1;
int pos = 0;
const int tbid = (blockIdx.x + pcqnum - 1) % pcqnum;
const int size = pcqbuffe... | 34.263158 | 159 | 0.61828 | upenn-acg |
a9c99f11d593fc21f176f3fc21df504ddf26661a | 8,006 | cpp | C++ | src/scriptinterface/tcScenarioRandomizer.cpp | dhanin/friendly-bassoon | fafcfd3921805baddc1889dc0ee2fa367ad882f8 | [
"BSD-3-Clause"
] | 2 | 2021-11-17T10:59:38.000Z | 2021-11-17T10:59:45.000Z | src/scriptinterface/tcScenarioRandomizer.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | src/scriptinterface/tcScenarioRandomizer.cpp | dhanin/nws | 87a3f24a7887d84b9884635064b48d456b4184e2 | [
"BSD-3-Clause"
] | null | null | null | /**
** @file tcScenarioRandomizer.cpp
*/
/*
** Copyright (c) 2014, GCBLUE PROJECT
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
**
** 1. Redistributions of source code must retain the ab... | 30.67433 | 146 | 0.573945 | dhanin |
a9cb087bbf07db62ca7ce4c4dd0807595d7cd505 | 860 | cpp | C++ | stream/src/main.cpp | IamWangYunKai/BallDetection | 71671f40d451eae174efad944fb324b1cd9ec89e | [
"MIT"
] | null | null | null | stream/src/main.cpp | IamWangYunKai/BallDetection | 71671f40d451eae174efad944fb324b1cd9ec89e | [
"MIT"
] | null | null | null | stream/src/main.cpp | IamWangYunKai/BallDetection | 71671f40d451eae174efad944fb324b1cd9ec89e | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include <chrono>
#include <mutex>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace cv;
using namespace std;
mutex mtx;
template <typename T>
void change(T *p, T *q){
T tmp;
tmp = *p;
*p = *q;
*q = tmp;
}
void get_video(VideoCap... | 17.916667 | 66 | 0.666279 | IamWangYunKai |
a9cb3bcf7499ba66d1f6d647fd1e4412aa95faf5 | 495 | cpp | C++ | 563. Binary Tree Tilt.cpp | dipta007/leetcode-solutions-dipta007 | 0454ad24ce686a37fab8025c75efb7d857985f29 | [
"MIT"
] | null | null | null | 563. Binary Tree Tilt.cpp | dipta007/leetcode-solutions-dipta007 | 0454ad24ce686a37fab8025c75efb7d857985f29 | [
"MIT"
] | null | null | null | 563. Binary Tree Tilt.cpp | dipta007/leetcode-solutions-dipta007 | 0454ad24ce686a37fab8025c75efb7d857985f29 | [
"MIT"
] | null | null | null | class Solution {
public:
int shortestDistance(vector<string>& words, string word1, string word2) {
int v1, v2;
v1 = v2 = -10000000;
int ret = 10000000;
for(int i=0; i<words.size(); i++) {
if(words[i] == word1) {
ret = min(ret, i - v2);
v1 =... | 26.052632 | 77 | 0.4 | dipta007 |
a9cbc05d053b377e197edc8677b483ea8bcaf06c | 712 | hpp | C++ | engine/screens/include/TextDisplayScreen.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/screens/include/TextDisplayScreen.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/screens/include/TextDisplayScreen.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #pragma once
#include <deque>
#include "Screen.hpp"
#include "Colours.hpp"
#include "Symbol.hpp"
// A generic screen that can be used to display text (help files, etc).
class TextDisplayScreen : public Screen
{
public:
TextDisplayScreen(DisplayPtr display, const std::string& new_title_text_sid, const std::vector... | 33.904762 | 211 | 0.744382 | prolog |
a9cd520ee0f9d54cdb0c0853ac14a396e06d4197 | 1,310 | cpp | C++ | src/augmented_account.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 4 | 2016-07-05T07:42:07.000Z | 2020-07-15T15:27:22.000Z | src/augmented_account.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 1 | 2020-05-07T20:58:21.000Z | 2020-05-07T20:58:21.000Z | src/augmented_account.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Matthew Harvey
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 26.2 | 75 | 0.755725 | skybaboon |
a9cfd6d770a53467acdcc14affa04ab4498b826c | 2,077 | cpp | C++ | src/Axis.cpp | WhoBrokeTheBuild/Temporality | 72e6e1ee6e971724bbb8b4dea27b73cda62676c1 | [
"MIT"
] | 9 | 2020-11-13T21:02:53.000Z | 2020-11-13T21:03:20.000Z | src/Axis.cpp | WhoBrokeTheBuild/Temporality | 72e6e1ee6e971724bbb8b4dea27b73cda62676c1 | [
"MIT"
] | 2 | 2018-04-10T17:29:52.000Z | 2019-12-08T04:59:30.000Z | src/Axis.cpp | benjinx/Temporality | 72e6e1ee6e971724bbb8b4dea27b73cda62676c1 | [
"MIT"
] | null | null | null | #include "Axis.hpp"
#include <App.hpp>
#include <StaticMeshComponent.hpp>
#include <Shader.hpp>
Axis::Axis()
{
if (!_mMesh)
{
GLuint vao;
glGenVertexArrays(1, &vao);
glBindVertexArray(vao);
GLfloat position[] = {
0.0f, 0.0f, 0.0f,
0.5f, 0.0f, 0.0f,
... | 26.974026 | 91 | 0.561868 | WhoBrokeTheBuild |
a9d37e111b99e5c184a9e00de1cd74f8027ea8c4 | 1,646 | cpp | C++ | src/pca9685.cpp | ruwix/balance-bot | 6493f0ae5ed150c4a57f651205ac9fe4883f14d8 | [
"MIT"
] | null | null | null | src/pca9685.cpp | ruwix/balance-bot | 6493f0ae5ed150c4a57f651205ac9fe4883f14d8 | [
"MIT"
] | null | null | null | src/pca9685.cpp | ruwix/balance-bot | 6493f0ae5ed150c4a57f651205ac9fe4883f14d8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <array>
#include <algorithm>
#include "pca9685.hpp"
#include "i2c.hpp"
PCA9685::PCA9685(I2C i2c, float freq) : i2c(i2c)
{
i2c.enable(PCA9685_ADDRESS);
if (freq > 0)
{
setPWMFreq(freq);
}
}
void PCA9685::setPWMFreq(int freq)
{
freq = (freq > 1000 ? 1000 : (freq ... | 21.102564 | 61 | 0.583232 | ruwix |
a9d4f8ea0740bb1b0ed928c69a02fe66e1ba7540 | 1,502 | cpp | C++ | model/mosesdecoder/phrase-extract/extract-mixed-syntax/Parameter.cpp | saeedesm/UNMT_AH | cc171bf66933b5c0ad8a0ab87e57f7364312a7df | [
"Apache-2.0"
] | 3 | 2019-12-02T14:53:29.000Z | 2020-08-12T18:01:49.000Z | tools/mosesdecoder-master/phrase-extract/extract-mixed-syntax/Parameter.cpp | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-11-06T14:40:10.000Z | 2020-12-29T19:03:11.000Z | tools/mosesdecoder-master/phrase-extract/extract-mixed-syntax/Parameter.cpp | Pangeamt/nectm | 6b84f048698f2530b9fdbb30695f2e2217c3fbfe | [
"Apache-2.0"
] | 2 | 2020-03-26T16:05:11.000Z | 2020-08-06T16:35:39.000Z | /*
* Parameter.cpp
*
* Created on: 17 Feb 2014
* Author: hieu
*/
#include "Parameter.h"
#include "moses/Util.h"
#include "util/exception.hh"
using namespace std;
Parameter::Parameter()
:maxSpan(10)
,minSpan(0)
,maxNonTerm(2)
,maxHieroNonTerm(999)
,maxSymbolsTarget(999)
,maxSymbolsSource(5)
,m... | 20.026667 | 89 | 0.685087 | saeedesm |
a9d7e38ace670c0b6a49bdce99453de78e4ab36c | 651 | cpp | C++ | domains/dubins_traffic/dubins_traffic_utils/examples/standalone/helloroadnet.cpp | fmrchallenge/fmrbenchmark | 529520a2b254f7da366b681983182c9e25555b6c | [
"Apache-2.0"
] | 14 | 2015-05-28T22:52:43.000Z | 2021-07-08T00:21:12.000Z | domains/dubins_traffic/dubins_traffic_utils/examples/standalone/helloroadnet.cpp | fmrchallenge/fmrbenchmark | 529520a2b254f7da366b681983182c9e25555b6c | [
"Apache-2.0"
] | 15 | 2016-02-07T20:57:09.000Z | 2021-04-30T23:42:06.000Z | domains/dubins_traffic/dubins_traffic_utils/examples/standalone/helloroadnet.cpp | fmrchallenge/fmrbenchmark | 529520a2b254f7da366b681983182c9e25555b6c | [
"Apache-2.0"
] | 5 | 2015-12-28T20:53:26.000Z | 2018-03-08T23:30:44.000Z | #include <iostream>
#include <vector>
#include <Eigen/Dense>
#include "roadnet.hpp"
using namespace dubins_traffic;
int main()
{
Eigen::Vector3d transform( 1.0, 0.0, 1.6 );
dubins_traffic::RoadNetwork rd( 2.0, transform, 2, 3 );
std::cout << rd << std::endl;
double x, y;
rd.map_point( 0, 0, x, ... | 23.25 | 71 | 0.526882 | fmrchallenge |
a9daea8ac8aa448e80b811125c8af2a24c2d190b | 20,698 | cc | C++ | android_webview/browser/safe_browsing/aw_safe_browsing_allowlist_manager_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | android_webview/browser/safe_browsing/aw_safe_browsing_allowlist_manager_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | android_webview/browser/safe_browsing/aw_safe_browsing_allowlist_manager_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2017 The Chromium 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 "android_webview/browser/safe_browsing/aw_safe_browsing_allowlist_manager.h"
#include <memory>
#include <utility>
#include "base/bind.h"
#inclu... | 40.112403 | 85 | 0.729636 | zealoussnow |
a9e2404928aa26e85ab15c137604eaaa483bf7ca | 2,942 | cpp | C++ | framework/graph/llvm/optimizer/conv_elewise_fusion_scheduler.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 1 | 2018-09-10T06:42:09.000Z | 2018-09-10T06:42:09.000Z | framework/graph/llvm/optimizer/conv_elewise_fusion_scheduler.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 3 | 2018-06-22T09:08:44.000Z | 2018-07-04T08:38:30.000Z | framework/graph/llvm/optimizer/conv_elewise_fusion_scheduler.cpp | Shixiaowei02/Anakin | f1ea086c5dfa1009ba15a64bc3e30cde07356360 | [
"Apache-2.0"
] | 5 | 2018-06-22T03:36:38.000Z | 2020-07-29T07:28:13.000Z | #include "framework/graph/llvm/optimizer/conv_elewise_fusion_scheduler.h"
namespace anakin {
namespace graph {
bool ConvElsFusionScheduler::callable(node& node_arg) {
if(_helper.has_node(node_arg)) {
auto& node_arc_out_its = _vgraph->get_out_arc_its(node_arg.name);
auto& node_arc_in_its = _vgraph->get_in_arc_i... | 32.688889 | 114 | 0.648538 | Shixiaowei02 |
a9e9407a7d439dd668877c50af313e9a847d029b | 3,219 | cpp | C++ | src/shogun/kernel/string/DistantSegmentsKernel.cpp | srgnuclear/shogun | 33c04f77a642416376521b0cd1eed29b3256ac13 | [
"Ruby",
"MIT"
] | 1 | 2015-11-05T18:31:14.000Z | 2015-11-05T18:31:14.000Z | src/shogun/kernel/string/DistantSegmentsKernel.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | src/shogun/kernel/string/DistantSegmentsKernel.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2011 Heiko Strathmann
* DS-Kernel implementati... | 24.953488 | 77 | 0.66356 | srgnuclear |
a9eb1de259763b8454801313bfddfc007de762d7 | 10,986 | cc | C++ | src-C/prototype/charm/strassen/charm/Node.cc | FreeON/spammpack | fdb1cd8be99078e75dc627b00247f7c017c9579c | [
"BSD-3-Clause"
] | 2 | 2021-07-14T20:27:25.000Z | 2021-09-29T03:03:00.000Z | src-C/prototype/charm/strassen/charm/Node.cc | FreeON/spammpack | fdb1cd8be99078e75dc627b00247f7c017c9579c | [
"BSD-3-Clause"
] | 1 | 2015-07-27T04:37:16.000Z | 2015-07-27T15:11:04.000Z | src-C/prototype/charm/strassen/charm/Node.cc | FreeON/spammpack | fdb1cd8be99078e75dc627b00247f7c017c9579c | [
"BSD-3-Clause"
] | 3 | 2015-08-19T22:52:57.000Z | 2021-09-29T03:02:59.000Z | #include "Node.h"
#include "Utilities.h"
#include <bitset>
#include <cstring>
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
inline
int blockIndex (int i, int j, int iLower, int jLower, int blocksize)
{
return (i-iLower)*blocksize+(j-jLower);
}
Node::Node (int tier, int blocksize, int iLower, int jLower... | 25.910377 | 116 | 0.587566 | FreeON |
a9ecc8748c324e9c8291f8ad83ff9298ec37d0c5 | 909 | cpp | C++ | _includes/leet098/leet098.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet098/leet098.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet098/leet098.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
bool isValidBST(TreeNode* root) {
if(root==NULL) return true;
return dfs(root,N... | 28.40625 | 90 | 0.525853 | mingdaz |
a9ed37eaf10c5298b2d1bef662b99cf8ddeffdae | 13,846 | cpp | C++ | samples/demo/application/source/ecs/object-factory/MainObjectFactory.cpp | yhyu13/Engine2021 | 6ded548caa45bf980d88e09bed59431b61f5337e | [
"MIT"
] | null | null | null | samples/demo/application/source/ecs/object-factory/MainObjectFactory.cpp | yhyu13/Engine2021 | 6ded548caa45bf980d88e09bed59431b61f5337e | [
"MIT"
] | null | null | null | samples/demo/application/source/ecs/object-factory/MainObjectFactory.cpp | yhyu13/Engine2021 | 6ded548caa45bf980d88e09bed59431b61f5337e | [
"MIT"
] | null | null | null | #include "application-precompiled-header.h"
#include "MainObjectFactory.h"
#include "engine/scene-graph/Scene3DManager.h"
#include "engine/ecs/header/header.h"
#include "engine/renderer/header/header.h"
#include "engine/audio/AudioManager.h"
#include "editor/ecs/header/header.h"
#include "ecs/header/header.h"
... | 32.732861 | 159 | 0.66828 | yhyu13 |
a9ede13eb735326dff1d85f46e0dacb1b0b7d20f | 11,086 | cc | C++ | ash/public/cpp/quick_answers/quick_answers_state.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2020-09-02T03:05:41.000Z | 2022-03-30T04:40:55.000Z | ash/public/cpp/quick_answers/quick_answers_state.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 45 | 2020-09-02T03:21:37.000Z | 2022-03-31T22:19:45.000Z | ash/public/cpp/quick_answers/quick_answers_state.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 8 | 2020-07-22T18:49:18.000Z | 2022-02-08T10:27:16.000Z | // Copyright 2021 The Chromium 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 "ash/public/cpp/quick_answers/quick_answers_state.h"
#include "ash/constants/ash_features.h"
#include "ash/public/cpp/assistant/assistant_state.... | 35.76129 | 80 | 0.72587 | zealoussnow |
a9efdb96ecfe4f7a77873f54edbb55108c9497f9 | 823 | cc | C++ | src/lib_ext/webrtc/webrtc/test/fuzzers/rtp_packet_fuzzer.cc | saurabhshri/CCAligner | 12bd2f214d5e2a6f562262f4f1e45aa1b7038b58 | [
"MIT"
] | 139 | 2017-06-10T17:23:54.000Z | 2022-03-23T21:08:17.000Z | third_party/webrtc/test/fuzzers/rtp_packet_fuzzer.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 72 | 2017-09-30T17:58:56.000Z | 2021-08-16T08:13:01.000Z | third_party/webrtc/test/fuzzers/rtp_packet_fuzzer.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 67 | 2017-11-28T17:59:19.000Z | 2022-02-22T04:09:38.000Z | /*
* Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 27.433333 | 71 | 0.730255 | saurabhshri |
a9efe0aa88184dfd39d89090d594d5170326eb8a | 4,587 | cpp | C++ | cpp/godot-cpp/src/gen/XMLParser.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/XMLParser.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/XMLParser.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "XMLParser.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
namespace godot {
XMLParser::___method_bindings XMLParser::___mb = {};
void XMLParser::___init_method_bindings() {
___mb.mb_get_attribute_count = go... | 41.324324 | 199 | 0.792893 | GDNative-Gradle |
a9f01dd4df43db2f233e44740bfc1831c5075455 | 1,721 | cpp | C++ | jetson/carControl/src/0.3/lane_detection/test_lane_detection.cpp | thanhwins/DriveCarLessChallenge | 716304f3e25b383781ade5f1560ef0d538fc634e | [
"MIT"
] | 1 | 2017-12-19T15:53:55.000Z | 2017-12-19T15:53:55.000Z | jetson/carControl/src/0.3/lane_detection/test_lane_detection.cpp | thanhwins/DriveCarLessChallenge | 716304f3e25b383781ade5f1560ef0d538fc634e | [
"MIT"
] | null | null | null | jetson/carControl/src/0.3/lane_detection/test_lane_detection.cpp | thanhwins/DriveCarLessChallenge | 716304f3e25b383781ade5f1560ef0d538fc634e | [
"MIT"
] | 1 | 2019-11-27T03:01:55.000Z | 2019-11-27T03:01:55.000Z |
#include "api_lane_detection.h"
int
main( int argc, char** argv )
{
string videoFileName = argv[1];
cout<< "Opening File: "<< videoFileName << endl<< flush;
cv::VideoCapture video;
bool isOpenVideo = video.open(videoFileName);
// bool isOpenVideo = video.open(0);
if(!isOpenVideo)
{
... | 18.912088 | 72 | 0.499709 | thanhwins |
a9f0c210ff638967706fae5d4aa1160d4d7e7ab0 | 2,437 | hpp | C++ | src/binder/inc/binderinterface.hpp | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 159 | 2020-06-17T01:01:55.000Z | 2022-03-28T10:33:37.000Z | src/binder/inc/binderinterface.hpp | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 19 | 2020-06-27T01:16:35.000Z | 2022-02-06T20:33:24.000Z | src/binder/inc/binderinterface.hpp | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 19 | 2020-05-21T08:18:20.000Z | 2021-06-29T01:13:13.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ============================================================
//
// BinderInterface.hpp
//
//
// Defines the publ... | 34.814286 | 90 | 0.547805 | elinor-fung |
a9f2a679802d39255e1bacc8f9e646ee877f068c | 2,414 | cpp | C++ | src/main.cpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 277 | 2021-11-19T20:15:18.000Z | 2022-03-29T12:07:59.000Z | src/main.cpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 46 | 2021-11-21T10:25:58.000Z | 2022-03-23T15:04:51.000Z | src/main.cpp | imaphatduc/Hypr | 1528659eebf2f41fcfde6ab514a956f5dd51cdfc | [
"BSD-3-Clause"
] | 28 | 2021-12-07T02:49:16.000Z | 2022-03-22T05:26:07.000Z | /*
Hypr Window Manager for X.
Started by Vaxry on 2021 / 11 / 17
*/
#include <fstream>
#include "windowManager.hpp"
#include "defines.hpp"
#include "bar/Bar.hpp"
int main(int argc, char** argv) {
clearLogs();
Debug::log(LOG, "Hypr debug log. Built on " + std::string(__DATE__) + " at " + std::string(__TIME_... | 29.439024 | 139 | 0.634217 | imaphatduc |
a9f2ecfc32c59cb23b5c6943dfe31f41336965b9 | 43,049 | cpp | C++ | ecl/hqlcpp/hqlcatom.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | ecl/hqlcpp/hqlcatom.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | ecl/hqlcpp/hqlcatom.cpp | oxhead/HPCC-Platform | 62e092695542a9bbea1bb3672f0d1ff572666cfc | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 28.795318 | 117 | 0.755349 | oxhead |
a9f62c033f389d11459ee3e3e0e7f798d2dcd764 | 9,430 | cpp | C++ | src/ImgProc/Comm/ImgReg/Recognizer/CStuckReg.cpp | BernhardRiemann/GameAISDK | da24c600e1cdc890739ee274032a17fb9ce75c5c | [
"Apache-2.0"
] | 3 | 2021-03-15T13:53:37.000Z | 2021-11-17T10:34:29.000Z | src/ImgProc/Comm/ImgReg/Recognizer/CStuckReg.cpp | VenmoTools/GameAISDK | 208320760440400d369aa8ab2f2439494195e6bd | [
"Apache-2.0"
] | null | null | null | src/ImgProc/Comm/ImgReg/Recognizer/CStuckReg.cpp | VenmoTools/GameAISDK | 208320760440400d369aa8ab2f2439494195e6bd | [
"Apache-2.0"
] | 1 | 2021-02-19T12:04:05.000Z | 2021-02-19T12:04:05.000Z | /*
* This source code file is licensed under the GNU General Public License Version 3.
* For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
* Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
*/
#include "Comm/ImgReg/Recognizer... | 27.175793 | 114 | 0.592153 | BernhardRiemann |
a9f7a031f587d2f6f2914b58878c15d91a981fc8 | 1,287 | cpp | C++ | filecode/app_g/tstind.cpp | Snowapril/file_structure | 3698cb06039200c7163a33efe9b59ac60ee0c45c | [
"MIT"
] | null | null | null | filecode/app_g/tstind.cpp | Snowapril/file_structure | 3698cb06039200c7163a33efe9b59ac60ee0c45c | [
"MIT"
] | null | null | null | filecode/app_g/tstind.cpp | Snowapril/file_structure | 3698cb06039200c7163a33efe9b59ac60ee0c45c | [
"MIT"
] | null | null | null | //testind.cc
#include "textind.h"
#include "delim.h"
#include "buffile.h"
#include "recordng.h"
#include "indfile.h"
#include <iostream.h>
// make an indexed file from a recording file
int ReadIndexRecordingFile (char * myfile,
TextIndexedFile<Recording> & indexFile)
{
Recording fileRec;
Recording indRec;
int re... | 23.833333 | 53 | 0.683761 | Snowapril |
a9f7d5e11d48d70389957fad91cbb5fd9232ac89 | 3,694 | cpp | C++ | MathOperationsOnImage/src/main.cpp | blongho/CV1 | 896f35850e962f148665f0426184bd9cc87aed5d | [
"MIT"
] | null | null | null | MathOperationsOnImage/src/main.cpp | blongho/CV1 | 896f35850e962f148665f0426184bd9cc87aed5d | [
"MIT"
] | null | null | null | MathOperationsOnImage/src/main.cpp | blongho/CV1 | 896f35850e962f148665f0426184bd9cc87aed5d | [
"MIT"
] | 1 | 2020-06-14T03:48:33.000Z | 2020-06-14T03:48:33.000Z | #include "Base.h"
#include "ContrastAndBrightness.h"
int main(int argc, char** argv)
{
try
{
const std::string path = "../../images/messi5.jpg";
//Mat image = imread(path);
//const double scalingFactor = 1 / 255.0;
//const double shift = 0;
//Mat contrastHigh = image.clone();
//Mat bright = image.clone(... | 30.528926 | 105 | 0.643476 | blongho |