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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
970df27bbd8f99dc06963233fda0aa18d6bbaf7f | 2,258 | hpp | C++ | include/rllib/bundle/Bundle.hpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | 1 | 2022-02-15T17:49:44.000Z | 2022-02-15T17:49:44.000Z | include/rllib/bundle/Bundle.hpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | null | null | null | include/rllib/bundle/Bundle.hpp | loriswit/rllib | a09a73f8ac353db76454007b2ec95bf438c0fc1a | [
"MIT"
] | null | null | null | #ifndef RLLIB_BUNDLE_HPP
#define RLLIB_BUNDLE_HPP
#include <string>
#include <rllib/stream/ByteStream.hpp>
#include <rllib/bundle/FileProperties.hpp>
namespace rl
{
/**
* A bundle is a collection of files packed in a big single file. It is used to store all the game assets.
* In particular, this is where scene ar... | 27.204819 | 106 | 0.647476 | loriswit |
970e072080a9ec4db50ac4aeb4e5ca80634a2942 | 18,605 | cpp | C++ | OOP/Project_2/main.cpp | moyfdzz/University-Projects | 8d6ab689fd3fba43994494245e489b1c97544fbd | [
"MIT"
] | 4 | 2018-04-27T00:03:39.000Z | 2019-01-27T07:31:57.000Z | OOP/Project_2/main.cpp | moyfdzz/University-Projects | 8d6ab689fd3fba43994494245e489b1c97544fbd | [
"MIT"
] | 1 | 2018-04-08T18:55:36.000Z | 2018-11-01T02:30:11.000Z | OOP/Project_2/main.cpp | moyfdzz/University-Assignments | 8d6ab689fd3fba43994494245e489b1c97544fbd | [
"MIT"
] | null | null | null | #include <string>
#include <fstream>
#include <iostream>
using namespace std;
#include "EjemploVideo.h"
Materia materias[5];
Tema temas[10];
Autor autores[10];
EjemploVideo eVideos[20];
int cantidadTemasG = 0, cantidadAutoresG = 0, cantidadMateriasG = 0, cantidadEVideosG = 0;
void cargarDatosMaterias()
{
string ... | 28.623077 | 114 | 0.5448 | moyfdzz |
9710455bfa31dd6d4cbc8488a2e2b731c93b7598 | 2,848 | cpp | C++ | projects-lib/opengl-wrapper/draw/GLSquare.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 15 | 2019-01-13T16:07:27.000Z | 2021-09-27T15:18:58.000Z | projects-lib/opengl-wrapper/draw/GLSquare.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 1 | 2019-03-14T00:36:35.000Z | 2020-12-29T11:48:09.000Z | projects-lib/opengl-wrapper/draw/GLSquare.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 3 | 2020-03-02T21:28:56.000Z | 2021-09-27T15:18:50.000Z | #include "GLSquare.h"
#include <opengl-wrapper/PlatformGL.h>
namespace openglWrapper {
//short drawOrder[6] = { 0, 1, 2, 0, 2, 3 }; // order to draw vertices
GLSquare::GLSquare() {
}
void GLSquare::draw(GLShaderColor *shader) {
const int COORDS_PER_POS = 3;
const int STRUCTURE_STR... | 30.956522 | 150 | 0.601475 | A-Ribeiro |
9710f58c33f0561bfe2070f30e4e86b72d6a9a41 | 10,075 | cc | C++ | squid/squid3-3.3.8.spaceify/src/auth/negotiate/auth_negotiate.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/auth/negotiate/auth_negotiate.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/auth/negotiate/auth_negotiate.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | /*
* DEBUG: section 29 Negotiate Authenticator
* AUTHOR: Robert Collins, Henrik Nordstrom, Francesco Chemolli
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from
* the Int... | 33.250825 | 151 | 0.669181 | spaceify |
97119b216fa931d06d1caaf67a230202aa9805f0 | 451 | cpp | C++ | game/tile.cpp | StylishTriangles/Scrabble | 9d24a598ad552533d1cdf4a47fae586d8f6cb607 | [
"MIT"
] | null | null | null | game/tile.cpp | StylishTriangles/Scrabble | 9d24a598ad552533d1cdf4a47fae586d8f6cb607 | [
"MIT"
] | null | null | null | game/tile.cpp | StylishTriangles/Scrabble | 9d24a598ad552533d1cdf4a47fae586d8f6cb607 | [
"MIT"
] | null | null | null | #include "tile.h"
/**
* @brief Default constructor for Tile.
**/
Tile::Tile() :
modified(false), bonus(BONUS_NONE),
letter(L' '), backup(letter)
{
}
/**
* @brief Set character representing this Tile.
* @param ch: Character to represent this Tile object.
**/
void Tile::set(wchar_t ch)
{
if (ch != l... | 16.703704 | 54 | 0.547672 | StylishTriangles |
97147701e11e92d08470269a5d390fa33c4699b5 | 6,715 | cpp | C++ | src/tcp/socket_manager.cpp | alipay/sofa-bolt-cpp | 6f422c0a8767ff8292db2b7c0557f9990219eb6b | [
"Apache-2.0"
] | 13 | 2018-09-05T07:10:11.000Z | 2019-04-30T01:31:32.000Z | src/tcp/socket_manager.cpp | sofastack/sofa-bolt-cpp | 6f422c0a8767ff8292db2b7c0557f9990219eb6b | [
"Apache-2.0"
] | 1 | 2018-11-03T03:54:40.000Z | 2018-11-05T11:37:33.000Z | src/tcp/socket_manager.cpp | sofastack/sofa-bolt-cpp | 6f422c0a8767ff8292db2b7c0557f9990219eb6b | [
"Apache-2.0"
] | 2 | 2019-09-08T13:52:09.000Z | 2021-04-21T08:42:08.000Z | // Copyright (c) 2018 Ant Financial, Inc. All Rights Reserved
// Created by zhenggu.xwt on 18/4/13.
//
#include "socket_manager.h"
#include <future>
#include <poll.h>
#include "common/utils.h"
#include "session/session.h"
#include "schedule/schedule.h"
#include "common/log.h"
namespace antflash {
bool SocketManager:... | 36.494565 | 88 | 0.554728 | alipay |
971667fd5c4d2259c9287db4407c7eaa04968372 | 10,064 | cpp | C++ | src/subsys/CompBot/CompBotChassis.cpp | Team302/2017Steamworks | 757a5332c47dd007482e30ee067852d13582ba39 | [
"MIT"
] | null | null | null | src/subsys/CompBot/CompBotChassis.cpp | Team302/2017Steamworks | 757a5332c47dd007482e30ee067852d13582ba39 | [
"MIT"
] | 1 | 2018-09-07T14:14:28.000Z | 2018-09-13T04:01:33.000Z | src/subsys/CompBot/CompBotChassis.cpp | Team302/2017Steamworks | 757a5332c47dd007482e30ee067852d13582ba39 | [
"MIT"
] | null | null | null | /*
* CompBotChassis.cpp
*
* Created on: Jan 16, 2017
* Author: Austin/Neethan
*/
#include <utils/DragonTalon.h>
#include <utils/LimitValue.h>
#include <subsys/CompBot/CompBotChassis.h>
#include <subsys/CompBot/CompMap.h>
#include <subsys/interfaces/IChassis.h>
#include <SmartDashboard/SmartDashboard.h>
nam... | 35.066202 | 129 | 0.760036 | Team302 |
9717b27939f1cd716d928179a9561929900d5c66 | 3,709 | cpp | C++ | src/base/muduo/net/poller/poll_poller.cpp | sbfhy/server1 | b9597a3783a0f7bb929b4b9fa7f621c81740b056 | [
"BSD-3-Clause"
] | null | null | null | src/base/muduo/net/poller/poll_poller.cpp | sbfhy/server1 | b9597a3783a0f7bb929b4b9fa7f621c81740b056 | [
"BSD-3-Clause"
] | null | null | null | src/base/muduo/net/poller/poll_poller.cpp | sbfhy/server1 | b9597a3783a0f7bb929b4b9fa7f621c81740b056 | [
"BSD-3-Clause"
] | null | null | null | #include "muduo/net/poller/poll_poller.h"
#include "muduo/net/common/channel.h"
#include "muduo/base/common/logging.h"
#include "define/define_types.h"
#include <asm-generic/errno-base.h>
#include <assert.h>
#include <errno.h>
#include <poll.h>
#include <sys/cdefs.h>
using namespace muduo;
using namespace muduo::net;
... | 28.312977 | 88 | 0.640874 | sbfhy |
97183bf80c9dbf7b6f32600a7f96ade0928d99f5 | 4,191 | cpp | C++ | Practice/2018/2018.12.29/BZOJ5417.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.12.29/BZOJ5417.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.12.29/BZOJ5417.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<vector>
#include<iostream>
using namespace std;
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define ll long long
#define NAME "name"
const int maxL=505000*2;
const int maxAlpha=26;
class Node{
public:
int son[maxAlpha],fail,len;
};
... | 25.4 | 102 | 0.545455 | SYCstudio |
97189995a32bdf90aa00afcba997e87849321c16 | 6,186 | cpp | C++ | Tools/DcmCmoveSCU/dicomquery.cpp | zyq1569/HealthApp | 9e96e8759aad577693f597b5763febd2094767ee | [
"BSD-3-Clause"
] | 3 | 2020-06-30T02:44:30.000Z | 2022-01-13T12:27:09.000Z | Tools/DcmCmoveSCU/dicomquery.cpp | zyq1569/HealthApp | 9e96e8759aad577693f597b5763febd2094767ee | [
"BSD-3-Clause"
] | 3 | 2021-12-14T20:45:20.000Z | 2021-12-18T18:22:04.000Z | Tools/DcmCmoveSCU/dicomquery.cpp | zyq1569/HealthApp | 9e96e8759aad577693f597b5763febd2094767ee | [
"BSD-3-Clause"
] | 6 | 2019-09-19T11:40:48.000Z | 2020-12-07T08:01:52.000Z |
#include "dicomquery.h"
#include <boost/thread.hpp>
// work around the fact that dcmtk doesn't work in unicode mode, so all string operation needs to be converted from/to mbcs
#ifdef _UNICODE
#undef _UNICODE
#undef UNICODE
#define _UNDEFINEDUNICODE
#endif
#include "dcmtk/ofstd/ofstd.h"
#include "dcmtk/oflog/oflog.h... | 27.371681 | 159 | 0.707727 | zyq1569 |
971ba38196a99e61d55b148d731d5f280f161836 | 5,735 | cpp | C++ | src/TEXBModify.cpp | MikuAuahDark/Itsudemo | 3e939414bff6d21abd41670dd7278435721075ae | [
"Zlib"
] | 30 | 2016-02-26T16:21:39.000Z | 2021-07-21T06:42:33.000Z | src/TEXBModify.cpp | Ink-33/Itsudemo | 3e939414bff6d21abd41670dd7278435721075ae | [
"Zlib"
] | 3 | 2016-08-25T16:37:12.000Z | 2016-11-27T06:26:32.000Z | src/TEXBModify.cpp | Ink-33/Itsudemo | 3e939414bff6d21abd41670dd7278435721075ae | [
"Zlib"
] | 14 | 2016-04-03T15:42:56.000Z | 2019-09-16T02:08:33.000Z | /**
* TEXBModify.cpp
* Modification of TextureBank class
**/
#include "TEXB.h"
#include "xy2uv.h"
#include <algorithm>
#include <vector>
#include <map>
#include <string>
#include <cerrno>
#include <cstdlib>
#include <cstring>
TextureBank::TextureBank(uint32_t _Width,uint32_t _Height):Width(RawImageWidth),Height(Raw... | 28.532338 | 137 | 0.689799 | MikuAuahDark |
971cd7c3d55ec832dc00c68b332983eccc0351c9 | 748 | cpp | C++ | src/Island.cpp | luka1199/bridges | 117c91d714aa19fa4c5138b032583e3efe93d142 | [
"MIT"
] | null | null | null | src/Island.cpp | luka1199/bridges | 117c91d714aa19fa4c5138b032583e3efe93d142 | [
"MIT"
] | 1 | 2019-08-14T13:36:33.000Z | 2019-08-14T13:36:33.000Z | src/Island.cpp | luka1199/bridges | 117c91d714aa19fa4c5138b032583e3efe93d142 | [
"MIT"
] | null | null | null | // Copyright 2018,
// Author: Luka Steinbach <luka.steinbach@gmx.de>
#include "./Island.h"
#include <string>
#include <vector>
// _____________________________________________________________________________
Island::Island(int x, int y, int count) : Field(x, y) {
_islandCount = count;
_correctBridgeCount = 0;
_... | 27.703704 | 80 | 0.798128 | luka1199 |
971d0e7be632f513340bede6a7f76ecd77082369 | 77,961 | cpp | C++ | simulation-code/Network.cpp | jlubo/memory-consolidation-stc | f9934760e12de324360297d7fc7902623169cb4d | [
"Apache-2.0"
] | 2 | 2021-03-02T21:46:56.000Z | 2021-06-30T03:12:07.000Z | simulation-code/Network.cpp | jlubo/memory-consolidation-stc | f9934760e12de324360297d7fc7902623169cb4d | [
"Apache-2.0"
] | null | null | null | simulation-code/Network.cpp | jlubo/memory-consolidation-stc | f9934760e12de324360297d7fc7902623169cb4d | [
"Apache-2.0"
] | 3 | 2021-03-22T12:56:52.000Z | 2021-09-13T07:42:36.000Z | /**************************************************************************************************
*** Model of a network of neurons with long-term plasticity between excitatory neurons ***
**************************************************************************************************/
/*** Copyright 201... | 32.375831 | 161 | 0.659689 | jlubo |
97223cf5eab0d82cf2ae033407622716e90e72ba | 1,428 | cpp | C++ | Oem/dbxml/dbxml/src/dbxml/query/QueryPlanToAST.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Oem/dbxml/dbxml/src/dbxml/query/QueryPlanToAST.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Oem/dbxml/dbxml/src/dbxml/query/QueryPlanToAST.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// See the file LICENSE for redistribution information.
//
// Copyright (c) 2002,2009 Oracle. All rights reserved.
//
//
#include "../DbXmlInternal.hpp"
#include "QueryPlanToAST.hpp"
#include "ASTToQueryPlan.hpp"
#include "QueryPlan.hpp"
#include "NodeIterator.hpp"
#include <xqilla/ast/XQNav.hpp>
#include <xqilla... | 21.313433 | 100 | 0.688375 | achilex |
9725f2cc945f31ed11817f4d8f9bcff7d992073b | 558 | hpp | C++ | Classes/PlaneLayer.hpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | 2 | 2017-10-14T06:27:15.000Z | 2021-11-05T20:27:28.000Z | Classes/PlaneLayer.hpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | null | null | null | Classes/PlaneLayer.hpp | nickqiao/AirWar | 1cd8b418a1a3ec240bc02581ecff034218939b59 | [
"Apache-2.0"
] | null | null | null | //
// PlaneLayer.hpp
// AirWar
//
// Created by nick on 2017/1/19.
// Copyright © 2017年 chenyuqiao. All rights reserved.
//
#include "cocos2d.h"
USING_NS_CC;
const int AIRPLANE=747;
class PlaneLayer : public Layer {
public:
PlaneLayer();
~PlaneLayer();
static PlaneLayer* create();
... | 12.976744 | 54 | 0.587814 | nickqiao |
972b50cd1f04f521e7246ec9b1ca30ac7d0280a9 | 25,083 | cpp | C++ | src/genlib/miniserver/miniserver.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/miniserver/miniserver.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | src/genlib/miniserver/miniserver.cpp | xiyusullos/upnpsdk | a1e280530338220a91668e6e6f2f07ccbc0c1382 | [
"BSD-3-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000 Intel Corporation
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions o... | 23.398321 | 95 | 0.516047 | xiyusullos |
972b970c9e6a636bf21a733fb3226f50233e9573 | 4,163 | hpp | C++ | sdk/boost_1_30_0/boost/integer/static_log2.hpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 10 | 2021-05-04T06:40:27.000Z | 2022-01-20T20:24:28.000Z | sdk/boost_1_30_0/boost/integer/static_log2.hpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/boost/integer/static_log2.hpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // Boost integer/static_log2.hpp header file -------------------------------//
// (C) Copyright Daryle Walker 2001. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express... | 29.316901 | 88 | 0.675715 | acidicMercury8 |
972c55857ab2a64081bc3d0b601fdc8136a6e8de | 2,845 | cpp | C++ | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 354 | 2017-01-24T17:12:38.000Z | 2022-03-30T07:40:19.000Z | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 275 | 2017-01-24T20:10:36.000Z | 2022-03-24T16:24:50.000Z | external/openglcts/modules/glesext/draw_buffers_indexed/esextcDrawBuffersIndexedTests.cpp | iabernikhin/VK-GL-CTS | a3338eb2ded98b5befda64f9325db0d219095a00 | [
"Apache-2.0"
] | 190 | 2017-01-24T18:02:04.000Z | 2022-03-27T13:11:23.000Z | /*-------------------------------------------------------------------------
* OpenGL Conformance Test Suite
* -----------------------------
*
* Copyright (c) 2015-2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with ... | 36.012658 | 114 | 0.687873 | iabernikhin |
972e40c3e8102a66fd486836e97db36718a93fd6 | 1,287 | cpp | C++ | ProducerConsumer/worker.cpp | bloodMaster/ProducerConsumer | 934130b029bff0ce0f314ca65a76f8cbf9b879df | [
"MIT"
] | null | null | null | ProducerConsumer/worker.cpp | bloodMaster/ProducerConsumer | 934130b029bff0ce0f314ca65a76f8cbf9b879df | [
"MIT"
] | null | null | null | ProducerConsumer/worker.cpp | bloodMaster/ProducerConsumer | 934130b029bff0ce0f314ca65a76f8cbf9b879df | [
"MIT"
] | null | null | null | #include "worker.hpp"
#include <iostream>
#include <random>
std::mutex s_mutex;
std::atomic<int> Worker::s_numOfActiveProducers;
std::atomic<bool> Worker::s_shouldWork = true;
Worker::DataContainer Worker::s_dataContainer;
const unsigned int Worker::s_maxSizeOfQueue = 100;
const unsigned int Worker::s_a... | 19.208955 | 77 | 0.685315 | bloodMaster |
97314d6ac911c17d6d79f8ee95e6d033767e7c29 | 73,926 | cpp | C++ | httpendpoints.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | 1 | 2021-02-14T04:04:50.000Z | 2021-02-14T04:04:50.000Z | httpendpoints.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | null | null | null | httpendpoints.cpp | qbit-t/qb | c1fd82df3838f8526fc5e335254529ab6f953f78 | [
"MIT"
] | 1 | 2021-08-28T07:42:43.000Z | 2021-08-28T07:42:43.000Z | #include "httprequesthandler.h"
#include "httpreply.h"
#include "httprequest.h"
#include "log/log.h"
#include "json.h"
#include "tinyformat.h"
#include "httpendpoints.h"
#include "vm/vm.h"
#include <iostream>
using namespace qbit;
void HttpMallocStats::process(const std::string& source, const HttpRequest& request, c... | 29.487834 | 171 | 0.627141 | qbit-t |
9734163529bf58d4bd81ddf95bf6f89ab05f743b | 1,032 | cpp | C++ | C++/05_Dynamic_Programming/MEDIUM_DECODE_WAYS.cpp | animeshramesh/interview-prep | 882e8bc8b4653a713754ab31a3b08e05505be2bc | [
"Apache-2.0"
] | null | null | null | C++/05_Dynamic_Programming/MEDIUM_DECODE_WAYS.cpp | animeshramesh/interview-prep | 882e8bc8b4653a713754ab31a3b08e05505be2bc | [
"Apache-2.0"
] | null | null | null | C++/05_Dynamic_Programming/MEDIUM_DECODE_WAYS.cpp | animeshramesh/interview-prep | 882e8bc8b4653a713754ab31a3b08e05505be2bc | [
"Apache-2.0"
] | null | null | null | /* A message containing letters from A-Z is being encoded to numbers using the following mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an encoded message containing digits, determine the total number of ways to decode it.
For example,
Given encoded message "12", it could be decoded as "AB" (1 2) or "L" (12).
The nu... | 32.25 | 97 | 0.592054 | animeshramesh |
9734922a52146c96dae481fb1d6da9230ee6ff94 | 1,810 | cpp | C++ | libraries/physics/src/ContactConstraint.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | libraries/physics/src/ContactConstraint.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | libraries/physics/src/ContactConstraint.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | //
// ContactConstraint.cpp
// libraries/physcis/src
//
// Created by Andrew Meadows 2014.07.24
// 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 <SharedUtil.h>
#inclu... | 33.518519 | 112 | 0.692265 | ey6es |
9734eb840112ee3d67af26b01b7786ba873b5526 | 2,839 | hpp | C++ | include/boost/http_proto/detail/copied_strings.hpp | alandefreitas/http_proto | dc64cbdd44048a2c06671282b736f7edacb39a42 | [
"BSL-1.0"
] | 6 | 2021-11-17T03:23:50.000Z | 2021-11-25T15:58:02.000Z | include/boost/http_proto/detail/copied_strings.hpp | alandefreitas/http_proto | dc64cbdd44048a2c06671282b736f7edacb39a42 | [
"BSL-1.0"
] | 6 | 2021-11-17T16:13:52.000Z | 2022-01-31T04:17:47.000Z | include/boost/http_proto/detail/copied_strings.hpp | samd2/http_proto | 486729f1a68b7611f143e18c7bae8df9b908e9aa | [
"BSL-1.0"
] | 3 | 2021-11-17T03:01:12.000Z | 2021-11-17T14:14:45.000Z | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/CPPAlliance/http_proto
//
#ifndef BOOST_HTTP_PROTO_DET... | 22.712 | 79 | 0.559352 | alandefreitas |
97384c308cf5a7f11846cde620d00a08f7c3b3c2 | 536 | cpp | C++ | ALP/sequencia/L01_ex01.cpp | khrystie/fatec_ads | a5fec2c612943342f731a46814d4f6df67eb692f | [
"MIT"
] | null | null | null | ALP/sequencia/L01_ex01.cpp | khrystie/fatec_ads | a5fec2c612943342f731a46814d4f6df67eb692f | [
"MIT"
] | null | null | null | ALP/sequencia/L01_ex01.cpp | khrystie/fatec_ads | a5fec2c612943342f731a46814d4f6df67eb692f | [
"MIT"
] | null | null | null | /*
Exercício: Faça um algoritmo que receba 2 números inteiros e apresente a soma desses números.
*/
#include <iostream>
int main() {
//declaração de variáveis
int num1, num2;
// atribuir valor 0
num1=0;
num2=0;
std::cout << "Programa que lê dois números inteiros e retorna o valor da soma\n";
std::... | 22.333333 | 95 | 0.652985 | khrystie |
9738b40e93cc34db346f6f331cea0a1ca13bae6d | 372 | cp | C++ | Lin/Mod/X11.cp | romiras/BlackBox-linux | 3abf415f181024d3ce9456883910d4eb68c5a676 | [
"BSD-2-Clause"
] | 2 | 2016-03-17T08:27:55.000Z | 2020-05-02T08:42:08.000Z | Lin/Mod/X11.cp | romiras/BlackBox-linux | 3abf415f181024d3ce9456883910d4eb68c5a676 | [
"BSD-2-Clause"
] | null | null | null | Lin/Mod/X11.cp | romiras/BlackBox-linux | 3abf415f181024d3ce9456883910d4eb68c5a676 | [
"BSD-2-Clause"
] | null | null | null | MODULE LinX11 ["libX11.so"];
IMPORT LinLibc;
TYPE
Display* = INTEGER;
PROCEDURE XFreeFontNames* (list: LinLibc.StrArray);
PROCEDURE XListFonts* (display: Display; pattern: LinLibc.PtrSTR; maxnames: INTEGER;
VAR actual_count_return: INTEGER): LinLibc.StrArray;
PROCEDURE XOpenDisplay* (VAR [nil] ... | 26.571429 | 86 | 0.733871 | romiras |
9738eda77042cec54309a95c28906a00687bea7c | 8,818 | cpp | C++ | Classes/Helpers/AnimationHelper.cpp | funkyzooink/fresh-engine | de15fa6ebe1b686819b28cd92ee8a6771c4ff878 | [
"MIT"
] | 3 | 2019-10-09T09:17:49.000Z | 2022-03-02T17:57:05.000Z | Classes/Helpers/AnimationHelper.cpp | funkyzooink/fresh-engine | de15fa6ebe1b686819b28cd92ee8a6771c4ff878 | [
"MIT"
] | 33 | 2019-10-08T18:45:48.000Z | 2022-01-05T21:53:02.000Z | Classes/Helpers/AnimationHelper.cpp | funkyzooink/fresh-engine | de15fa6ebe1b686819b28cd92ee8a6771c4ff878 | [
"MIT"
] | 7 | 2019-10-10T11:31:58.000Z | 2021-02-08T14:24:30.000Z | /****************************************************************************
Copyright (c) 2014-2019 Gabriel Heilig
fresh-engine
funkyzooink@gmail.com
****************************************************************************/
#include "AnimationHelper.h"
#include "../GameData/Constants.h"
#include "../GameData/Game... | 37.683761 | 118 | 0.612611 | funkyzooink |
973c113401f4674b562d4ebf3724e179531270e7 | 185 | cpp | C++ | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | src/stan/language/grammars/expression07_grammar_inst.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include "expression07_grammar_def.hpp"
#include "iterator_typedefs.hpp"
namespace stan {
namespace lang {
template struct expression07_grammar<pos_iterator_t>;
}
} // namespace stan
| 20.555556 | 53 | 0.8 | alashworth |
973c1d1aef3085b665141d6b9dfc1f5600ed76b1 | 838 | cpp | C++ | Classes/Device.cpp | Tang1705/Happy-Reconstruction | 2040310be4475deff0a8d251feaf32d7ba82d0ff | [
"Apache-2.0"
] | 5 | 2021-12-13T08:48:07.000Z | 2022-01-04T01:28:40.000Z | Classes/Device.cpp | xmtc56606/Reconstruction | 7eadf91b397fa2067b983be1a31c9603043d1360 | [
"Apache-2.0"
] | null | null | null | Classes/Device.cpp | xmtc56606/Reconstruction | 7eadf91b397fa2067b983be1a31c9603043d1360 | [
"Apache-2.0"
] | 1 | 2022-03-28T06:04:34.000Z | 2022-03-28T06:04:34.000Z | #include "Device.h"
#include <QDebug>
Device* Device::instance = nullptr;
Device::Device()
{
vector<CameraInfo> cams = CameraPointGrey::getCameraList();
if (cams.size() != 0)
{
hasCamera = true;
camera = Camera::NewCamera(0, cams[0].busID, triggerModeSoftware);
CameraSettings camSettings;
camSettings.shutte... | 17.458333 | 68 | 0.711217 | Tang1705 |
973fe8eaa908632171eb72d68bcb6ed1e1b0ba35 | 4,253 | cpp | C++ | test/cfgTest.cpp | arminnh/Machines-and-Computability-project | 7e7be2541074ca8a177335aaad1b09394145fcf6 | [
"MIT"
] | null | null | null | test/cfgTest.cpp | arminnh/Machines-and-Computability-project | 7e7be2541074ca8a177335aaad1b09394145fcf6 | [
"MIT"
] | null | null | null | test/cfgTest.cpp | arminnh/Machines-and-Computability-project | 7e7be2541074ca8a177335aaad1b09394145fcf6 | [
"MIT"
] | 1 | 2017-01-30T19:16:19.000Z | 2017-01-30T19:16:19.000Z | /*
*
* File Name :
*
* Creation Date : 21-01-2015
* Last Modified : do 22 jan 12:34:27 2015
* Created By : Bruno De Deken
*
*/
#include "comparefiles.h"
#include <string>
#include <set>
#include <gtest/gtest.h>
#include <UTM/util.h>
#include <UTM/dot.h>
#include <UTM/finiteautomaton.h>
#include <UTM/CFG.h>
#incl... | 33.226563 | 140 | 0.682577 | arminnh |
9741c086d1b97a36b72febad8eb1f70578664ab7 | 2,492 | cpp | C++ | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | 2 | 2015-04-17T11:28:57.000Z | 2016-11-13T13:03:08.000Z | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | null | null | null | src/args_test.cpp | JoelSjogren/video-organizer | fc5a5c1a2fce39f2b9d8343c07c53108321ef260 | [
"Apache-2.0"
] | null | null | null | /**********************************
* args_test.cpp *
**********************************/
#include "args_test.h"
#include "args.h"
#include "fileman.h"
#include <string>
using std::string;
ArgsTest::ArgsTest() : Test("Args") {
const char* files[] = {
"Chuck.S05E01.HDTV.XviD-LOL.avi",
... | 26.795699 | 58 | 0.554575 | JoelSjogren |
97466246b549d44e5bfbfba129449c424b573d6e | 2,501 | cpp | C++ | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 71 | 2017-12-18T10:35:41.000Z | 2021-12-11T19:57:34.000Z | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 1 | 2017-12-19T09:31:46.000Z | 2017-12-20T07:08:01.000Z | test/test_timer.cpp | chyh1990/futures_cpp | 8e60e74af0cffff0a9749682a4caf1768277c04b | [
"MIT"
] | 7 | 2017-12-20T01:55:44.000Z | 2019-12-06T12:25:55.000Z | #include <gtest/gtest.h>
#include <futures/EventExecutor.h>
#include <futures/Timeout.h>
#include <futures/Timer.h>
#include <futures/Future.h>
using namespace futures;
TEST(Executor, Timer) {
EventExecutor ev;
auto f = TimerFuture(&ev, 1)
.andThen([&ev] (Unit) {
std::cerr << "DONE" << std::endl;
return ma... | 21.376068 | 102 | 0.580968 | chyh1990 |
974aa1b66be0b4d7e57c440ac9130fdb6c4d7a61 | 960 | cpp | C++ | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | 1 | 2021-04-19T12:10:01.000Z | 2021-04-19T12:10:01.000Z | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | null | null | null | lib/Food.cpp | prakashutoledo/pacman-cpp | 0d3e46bd79970d722bc83fd5aeb52a34ad6c27e5 | [
"Apache-2.0"
] | null | null | null | #include "Food.h"
void Food::Initilize(Position * position)
{
this->position = position;
drawing = CreateBitmap(position);
CollisionDetection::Instance()->Add(this);
}
Food::Food(int x, int y)
{
Initilize(new Position(x - FOOD_RADIUS, y - FOOD_RADIUS));
}
Food::Food(Position * positio... | 22.857143 | 106 | 0.628125 | prakashutoledo |
974c5c2a8c7403ab4d50628b70c73d0b2bb150e3 | 2,200 | hpp | C++ | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | 2 | 2019-11-13T13:57:37.000Z | 2019-11-25T09:55:17.000Z | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | srcs/boxpp/boxpp/base/systems/Barrior.hpp | whoamiho1006/boxpp | 5de2c5f9b2303ac6f539192f6407e9acf9144f8b | [
"MIT"
] | null | null | null | #pragma once
#include <boxpp/base/BaseMacros.hpp>
#include <boxpp/base/BaseTypes.hpp>
#include <boxpp/base/opacities/posix.hpp>
#include <boxpp/base/opacities/windows.hpp>
namespace boxpp {
/* Barrior is for guarding specific blocks. */
class BOXPP FBarrior
{
public:
FASTINLINE FBarrior() {
#if PLATFORM_WINDOWS... | 20.754717 | 73 | 0.735 | whoamiho1006 |
9752b0ceb7349ca95afc55b5ed16da2d464af0a3 | 3,746 | cpp | C++ | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | 1 | 2020-05-02T14:33:42.000Z | 2020-05-02T14:33:42.000Z | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | null | null | null | test/core/vector_specialisation_test.cpp | marovira/apollo | 79920864839066c4e24d87de92c36dde4a315b10 | [
"BSD-3-Clause"
] | null | null | null | #include <core/vector.hpp>
#include <catch2/catch.hpp>
TEMPLATE_TEST_CASE(
"[Vector] - specialised constructors", "[core]", float, double, int)
{
SECTION("Empty constructor: size 2")
{
core::Vector2<TestType> v;
REQUIRE(v.x == TestType{0});
REQUIRE(v.y == TestType{0});
}
... | 24.973333 | 79 | 0.533102 | marovira |
97530a740cbd510778a20901f769a6207c46fb76 | 2,688 | cpp | C++ | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | cpp/cpp/685. Redundant Connection II.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/redundant-connection-ii/
// In this problem, a rooted tree is a directed graph such that, there is exactly
// one node (the root) for which all other nodes are descendants of this node, plus
// every node has exactly one parent, except for the root node which has no
// parents.
// The... | 38.4 | 83 | 0.579241 | longwangjhu |
97545d9fcf31e1ca0b370f0a32ea117b6cfedd49 | 3,899 | cpp | C++ | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 170 | 2015-10-20T08:31:16.000Z | 2021-12-01T01:47:32.000Z | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 42 | 2015-10-20T23:20:17.000Z | 2022-03-18T05:47:08.000Z | src/astra/astra_point.cpp | Delicode/astra | 2654b99102b999a15d3221b0e5a11bb5291f7689 | [
"Apache-2.0"
] | 83 | 2015-10-22T14:53:00.000Z | 2021-11-04T03:09:48.000Z | // This file is part of the Orbbec Astra SDK [https://orbbec3d.com]
// Copyright (c) 2015 Orbbec 3D
//
// 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/LI... | 41.478723 | 108 | 0.595794 | Delicode |
97545f1944b626487fa100e059cfbcfc2a64195d | 129 | cpp | C++ | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/geomutils/src/pcm/GuPCMContactSphereSphere.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:d16864b0d69d3a425328f013d6bb2842892c448c6a7cdc5077078ae6564113f8
size 3329
| 32.25 | 75 | 0.883721 | realtehcman |
975467ff92a3e30d15262dd5d6e95dc133ef5092 | 1,795 | cpp | C++ | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | ysu/test_common/testutil.cpp | lik2129/ysu_coin | 47e40ed5d4000fc59566099929bd08a9ae16a4c1 | [
"BSD-3-Clause"
] | null | null | null | #include <ysu/crypto_lib/random_pool.hpp>
#include <ysu/node/testing.hpp>
#include <ysu/test_common/testutil.hpp>
#include <gtest/gtest.h>
#include <cstdlib>
#include <numeric>
using namespace std::chrono_literals;
/* Convenience constants for tests which are always on the test network */
namespace
{
ysu::ledger_co... | 33.240741 | 145 | 0.732591 | lik2129 |
975504aa4082edaf5699b688a1441696cf8721dc | 24,484 | cpp | C++ | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | 13 | 2019-01-23T04:36:05.000Z | 2022-02-21T11:20:25.000Z | src/qt/transactiontablemodel.cpp | yinchengtsinghua/BitCoinCppChinese | 76f64ad8cee5b6c5671b3629f39e7ae4ef84be0a | [
"MIT"
] | null | null | null | src/qt/transactiontablemodel.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)2011-2018比特币核心开发者
//根据MIT软件许可证分发,请参见随附的
//文件复制或http://www.opensource.org/licenses/mit-license.php。
#include <qt/... | 31.592258 | 172 | 0.628247 | yinchengtsinghua |
97562bbcc8ce6931c6929edab6d5e82527117d3a | 4,330 | cpp | C++ | test/MutationTest.cpp | ATsahikian/PeProtector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | 43 | 2016-07-30T13:50:21.000Z | 2021-06-17T22:45:00.000Z | test/MutationTest.cpp | ATsahikian/pe-protector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | null | null | null | test/MutationTest.cpp | ATsahikian/pe-protector | 4e005ea636a5679b82c9e58e09a0de53618896c5 | [
"MIT"
] | 16 | 2016-09-08T09:10:27.000Z | 2020-06-14T00:30:59.000Z | #define BOOST_TEST_MODULE mutation test
#include <boost/test/included/unit_test.hpp>
#include "pe-protector/Mutation.h"
using namespace NPeProtector;
BOOST_AUTO_TEST_SUITE(MutationTest);
// method for testing mutateCommands with Mov instruction
BOOST_AUTO_TEST_CASE(testMutateCommandsMov) {
// create command for t... | 34.365079 | 73 | 0.748037 | ATsahikian |
9758a9719e4fec47c6d0eb4501ade7763f26887c | 1,913 | cpp | C++ | openqube/testing/testatom.cpp | OpenChemistry/openqube | dc396bcf6c74cbfd9fb94201312e70bb377b0805 | [
"BSD-3-Clause"
] | 2 | 2015-05-05T19:49:55.000Z | 2021-03-30T12:27:40.000Z | openqube/testing/testatom.cpp | OpenChemistry/openqube | dc396bcf6c74cbfd9fb94201312e70bb377b0805 | [
"BSD-3-Clause"
] | null | null | null | openqube/testing/testatom.cpp | OpenChemistry/openqube | dc396bcf6c74cbfd9fb94201312e70bb377b0805 | [
"BSD-3-Clause"
] | 4 | 2015-01-29T16:25:12.000Z | 2021-01-06T17:47:47.000Z |
#include <iostream>
#include <openqube/molecule.h>
#include <openqube/atom.h>
#include <Eigen/Geometry>
using std::cout;
using std::cerr;
using std::endl;
using OpenQube::Atom;
using OpenQube::Molecule;
using Eigen::Vector3d;
namespace {
template<typename A, typename B>
void checkResult(const A& result, const B... | 24.525641 | 80 | 0.664924 | OpenChemistry |
9759ce0c8aec21542ab1727ba287d9376bdd192c | 606 | cpp | C++ | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | src/vkfw_core/gfx/vk/pipeline/ComputePipeline.cpp | dasmysh/VulkanFramework_Lib | baeaeb3158d23187f2ffa5044e32d8a5145284aa | [
"MIT"
] | null | null | null | /**
* @file ComputePipeline.cpp
* @author Sebastian Maisch <sebastian.maisch@googlemail.com>
* @date 2016.10.30
*
* @brief Implementation of a vulkan compute pipeline object.
*/
#include "gfx/vk/pipeline/ComputePipeline.h"
#include "gfx/vk/LogicalDevice.h"
#include "core/resources/ShaderManager.h"
namespac... | 25.25 | 100 | 0.709571 | dasmysh |
975cebfc63316babaaa98c51f6a47676e5c47673 | 169 | cpp | C++ | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null | Generic/VSC.cpp | jbat100/VirtualSoundControl | f84ba15bba4bfce579c185e04df0e1be4f419cd7 | [
"MIT"
] | null | null | null |
#include "VSC.h"
#include <boost/date_time/posix_time/posix_time.hpp>
VSC::Time VSC::CurrentTime()
{
return boost::posix_time::microsec_clock::universal_time();
} | 18.777778 | 63 | 0.739645 | jbat100 |
975e930eb1006c6956faf01e14b61bb51426f222 | 6,452 | hpp | C++ | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | include/cbr_drivers/v4l2_driver.hpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_drivers/blob/master/LICENSE
#ifndef CBR_DRIVERS__V4L2_DRIVER_HPP_
#define CBR_DRIVERS__V4L2_DRIVER_HPP_
#include <linux/videodev2.h>
#include <atomic>
#include <functional>
#include <memory>
#include <mutex>
#include <string>
#include <thre... | 23.720588 | 94 | 0.6677 | yamaha-bps |
975ed7bf6d419192ca9632a124ac2c327956a8d4 | 3,797 | cpp | C++ | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 3 | 2018-05-18T19:06:27.000Z | 2020-07-07T17:17:51.000Z | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 15 | 2018-04-25T17:41:36.000Z | 2019-11-20T16:06:20.000Z | tests/ModulesFactoryTest.cpp | transdz/mesos-command-modules | 5eba42137e33a1001fd1e1de9a2086f60eebe5bb | [
"Apache-2.0"
] | 5 | 2018-04-03T09:12:29.000Z | 2022-02-21T11:37:04.000Z | #include "ModulesFactory.hpp"
#include <gtest/gtest.h>
#include "CommandHook.hpp"
#include "CommandIsolator.hpp"
using namespace criteo::mesos;
// ***************************************
// **************** Hook *****************
// ***************************************
TEST(ModulesFactoryTest, should_create_hook_w... | 35.485981 | 78 | 0.709244 | transdz |
975fadcee50dd19822b817bae9019daf61fc3ee1 | 788 | cc | C++ | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null | examples/omnet_module/src/AvensClient.cc | Hyodar/pairsim-cpp | 86c1613b9bc2b0043e468abfe59fc1355619164c | [
"MIT"
] | null | null | null |
#include "./XPlaneModel.h"
#include "PairsimClient.h"
Define_Module(PairsimClient);
PairsimClient::PairsimClient() {
tickTimeout = nullptr;
}
PairsimClient::~PairsimClient() {
cancelAndDelete(tickTimeout);
}
void PairsimClient::initialize() {
tickTimeout = new cMessage("tick");
client.setServerAdd... | 24.625 | 104 | 0.694162 | Hyodar |
9761c71959084ae5a77e0308ba2d9ced7f754c3d | 27,752 | cpp | C++ | stp/sat/Solver.cpp | dslab-epfl/state-merging | abe500674ab3013f266836315e9c4ef18d0fb55c | [
"BSD-3-Clause"
] | null | null | null | stp/sat/Solver.cpp | dslab-epfl/state-merging | abe500674ab3013f266836315e9c4ef18d0fb55c | [
"BSD-3-Clause"
] | null | null | null | stp/sat/Solver.cpp | dslab-epfl/state-merging | abe500674ab3013f266836315e9c4ef18d0fb55c | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************************[Solver.C]
MiniSat -- Copyright (c) 2003-2005, Niklas Een, Niklas Sorensson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal... | 34.093366 | 263 | 0.543636 | dslab-epfl |
9765efe8e7544ab882e9e5264173796a133f3e0d | 2,114 | hpp | C++ | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 27 | 2021-02-15T00:02:12.000Z | 2022-03-24T04:34:17.000Z | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 2 | 2021-02-23T01:04:19.000Z | 2022-03-24T04:38:10.000Z | include/felspar/coro/cancellable.hpp | Felspar/coro | 67028cc10d7f66edc75229d4f4207cd8f6b82147 | [
"BSL-1.0"
] | 1 | 2022-02-20T09:41:09.000Z | 2022-02-20T09:41:09.000Z | #pragma once
#include <felspar/coro/coroutine.hpp>
namespace felspar::coro {
/**
* Wait at the suspension point until resumed from an external location.
*/
class cancellable {
coroutine_handle<> continuation = {};
bool signalled = false;
void resume_if_needed() {
... | 28.958904 | 76 | 0.487228 | Felspar |
97660134541a53225eb378fe906c3d3842bd97d8 | 9,027 | hpp | C++ | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 1,513 | 2015-01-02T17:36:20.000Z | 2022-03-21T00:10:17.000Z | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 335 | 2015-01-02T21:48:21.000Z | 2022-01-31T23:10:46.000Z | src/common/channel/codec/redis_reply.hpp | vorjdux/ardb | 8d32d36243dc2a8cbdc218f4218aa988fbcb5eae | [
"BSD-3-Clause"
] | 281 | 2015-01-08T01:23:41.000Z | 2022-03-26T12:31:41.000Z | /*
*Copyright (c) 2013-2013, yinqiwen <yinqiwen@gmail.com>
*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,
* ... | 32.825455 | 100 | 0.484657 | vorjdux |
976af6da8799161d7d6f8e1eb734ed3146607c60 | 4,092 | cc | C++ | content/browser/indexed_db/indexed_db_pre_close_task_queue.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/indexed_db/indexed_db_pre_close_task_queue.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/browser/indexed_db/indexed_db_pre_close_task_queue.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.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 "content/browser/indexed_db/indexed_db_pre_close_task_queue.h"
#include <utility>
#include "base/bind.h"
#include "base/metrics/histogram_macro... | 28.615385 | 79 | 0.695015 | sarang-apps |
976ba55f7c4e4a84dc80156378219097dd50d09b | 952 | cpp | C++ | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Medium/1286_Iterator_For_Combination.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | class CombinationIterator {
private:
int len, mask;
string s;
public:
CombinationIterator(string characters, int combinationLength) : s(characters), len(combinationLength) {
mask = (1 << characters.length()) - 1;
}
string next() {
while(mask && __builtin_popcount(mask) != len) {... | 28.848485 | 107 | 0.578782 | ShehabMMohamed |
976c95ec96dd46eac812664839e16ac76885907f | 1,114 | cpp | C++ | src/vulkan_helper/image_view.cpp | LesleyLai/Vulkan-Renderer | fd03a69fbc21bfaf3177e43811d21dba634a1949 | [
"Apache-2.0"
] | 4 | 2019-04-17T17:44:23.000Z | 2020-09-14T04:24:37.000Z | src/vulkan_helper/image_view.cpp | LesleyLai/Vulkan-Renderer | fd03a69fbc21bfaf3177e43811d21dba634a1949 | [
"Apache-2.0"
] | 3 | 2020-06-10T00:43:44.000Z | 2020-06-10T00:59:47.000Z | src/vulkan_helper/image_view.cpp | LesleyLai/Vulkan-Renderer | fd03a69fbc21bfaf3177e43811d21dba634a1949 | [
"Apache-2.0"
] | null | null | null | #include "image_view.hpp"
namespace vkh {
[[nodiscard]] auto
create_image_view(VkDevice device,
const ImageViewCreateInfo& image_view_create_info)
-> beyond::expected<VkImageView, VkResult>
{
const VkImageViewCreateInfo create_info = {
.sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
... | 30.108108 | 79 | 0.71544 | LesleyLai |
976ca940c560635702dfc2c725418346a5e9e5de | 3,196 | cxx | C++ | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | 1 | 2022-02-16T03:48:29.000Z | 2022-02-16T03:48:29.000Z | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | null | null | null | Examples/InSar/BaselineComputation.cxx | jmichel-otb/otb-insar | b6f8a7d80547ffdcf7c4d2359505ce68107cdb85 | [
"Apache-2.0"
] | null | null | null |
/*=========================================================================
Copyright 2011 Emmanuel Christophe
Contributed to ORFEO Toolbox under license Apache 2
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may ob... | 39.45679 | 310 | 0.731852 | jmichel-otb |
97703f3fa284c9cc26f37748d1b33de03287c40a | 211 | cpp | C++ | Fall-17/CSE/CPP/Assignments/Basic/ASCIIValuesChart.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | 1 | 2021-05-18T06:34:53.000Z | 2021-05-18T06:34:53.000Z | Fall-17/CSE/CPP/Assignments/Basic/ASCIIValuesChart.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | null | null | null | Fall-17/CSE/CPP/Assignments/Basic/ASCIIValuesChart.cpp | 2Dsharp/college | 239fb4c85878f082529a3668544d1ad305b46170 | [
"MIT"
] | 1 | 2018-11-12T16:01:39.000Z | 2018-11-12T16:01:39.000Z | #include <iostream>
int main(){
std::cout << "ASCII "<< "Representation" << std::endl;
for(int i=0;i<=127;i++){
char temp = i;
std::cout << i << "\t" << temp << std::endl;
}
return 0;
}
| 14.066667 | 56 | 0.492891 | 2Dsharp |
977424df8367635d711cef34f5ced409cc8ceeca | 38,699 | cpp | C++ | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 114 | 2017-08-13T22:37:32.000Z | 2022-03-25T12:28:39.000Z | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 7 | 2019-10-14T18:19:11.000Z | 2021-06-11T09:41:52.000Z | src/saiga/opengl/glbinding/source/gl/functions-patches.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 18 | 2017-08-14T01:22:05.000Z | 2022-03-12T12:35:07.000Z |
#include <glbinding/gl/functions.h>
#include <vector>
#include <glbinding/gl/functions-patches.h>
namespace gl
{
void glConvolutionParameteri(GLenum target, GLenum pname, GLenum params)
{
glConvolutionParameteri(target, pname, static_cast<GLint>(params));
}
void glConvolutionParameteriEXT(GLenum target, GLenum... | 29.86034 | 120 | 0.733404 | no33fewi |
97747fcdd08eedf08f3e44b1c0025a9411d18f4a | 9,657 | cpp | C++ | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | 40 | 2016-11-18T06:14:47.000Z | 2022-03-16T14:36:21.000Z | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | null | null | null | test/actionsTest/actionForm.cpp | perara-libs/FakeInput | 13d7b260634c33ced95d9e3b37780705e4036ab5 | [
"MIT"
] | 9 | 2017-01-23T01:49:41.000Z | 2020-11-05T13:09:56.000Z | /**
* This file is part of the FakeInput library (https://github.com/uiii/FakeInput)
*
* Copyright (C) 2011 by Richard Jedlicka <uiii.dev@gmail.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
* ... | 40.57563 | 122 | 0.678264 | perara-libs |
977517e8392b771d384ba89083fc3b3c82cb0e5d | 1,058 | cpp | C++ | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | joakimthun/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 16 | 2015-10-12T14:24:45.000Z | 2021-07-20T01:56:04.000Z | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | null | null | null | src/Compiler/code_gen/builders/array_initializer_list_expression_builder.cpp | haifenghuang/Elsa | 3be901149c1102d190dda1c7f3340417f03666c7 | [
"MIT"
] | 2 | 2017-11-12T01:39:09.000Z | 2021-07-20T01:56:09.000Z | #include "array_initializer_list_expression_builder.h"
#include "../vm_expression_visitor.h"
namespace elsa {
namespace compiler {
void ArrayInitializerListExpressionBuilder::build(VMProgram* program, VMExpressionVisitor* visitor, ArrayInitializerListExpression* expression)
{
program->emit(OpCode::iconst);
... | 27.128205 | 145 | 0.721172 | joakimthun |
977b9dcb68ea985497728997aedecb96580026b4 | 8,291 | cpp | C++ | solver.cpp | sapirp/systemPrograming-task3B | f84f4a6021537bb1e3049035a30de20640b87847 | [
"MIT"
] | null | null | null | solver.cpp | sapirp/systemPrograming-task3B | f84f4a6021537bb1e3049035a30de20640b87847 | [
"MIT"
] | null | null | null | solver.cpp | sapirp/systemPrograming-task3B | f84f4a6021537bb1e3049035a30de20640b87847 | [
"MIT"
] | null | null | null | #include<iostream>
#include "solver.hpp"
using namespace solver;
using namespace std;
double RealVariable::solveEquation(RealVariable& eq){
if(eq.a==0 && eq.b==0) throw std::exception();
if(!eq.power){
return -eq.c/eq.b;
}
else{
double SquareRoot = eq.b*eq.b - 4*eq.a*eq.c;
d... | 25.589506 | 102 | 0.624894 | sapirp |
977fc28e9f8f2c462a97235442bee7fc1b39503f | 1,523 | cpp | C++ | cppcheck/data/c_files/35.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/35.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/35.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | bool Plugin::LoadNaClModuleCommon(nacl::DescWrapper* wrapper,
NaClSubprocess* subprocess,
const Manifest* manifest,
bool should_report_uma,
ErrorInfo* error_info,
pp::CompletionCallback init_done_cb,
pp::CompletionCallback crash_cb) {
ServiceRuntime* new_service_runtime =
new ServiceRuntime(this, manifest, should_repor... | 37.146341 | 77 | 0.74327 | awsm-research |
97800b9046f54f846dc4fdb8d5c33f66a9b324f2 | 1,770 | cpp | C++ | atcoder/abc/abc_114/c.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_114/c.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | atcoder/abc/abc_114/c.cpp | hsmtknj/programming-contest | b0d7f8a2d12fb031d3a802e6a4769cd6d2defcab | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
void dfs753(std::vector<int> &list, int N, std::string s);
int main()
{
int N;
int cnt = 0;
std::cin >> N;
// find number including only 7, 5, 3
std::vector<int> list;
dfs753(list, N, "");
// find answer
for (int i = 0; i < list.size(); i++)
... | 19.450549 | 64 | 0.388136 | hsmtknj |
978137d0c0dbfb68443bae856077cccbb6774a70 | 758 | hpp | C++ | Firmware/service_providers/headers/ih/sp_ibattery_service.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 39 | 2019-10-23T12:06:16.000Z | 2022-01-26T04:28:29.000Z | Firmware/service_providers/headers/ih/sp_ibattery_service.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 20 | 2020-03-21T20:21:46.000Z | 2021-11-19T14:34:03.000Z | Firmware/service_providers/headers/ih/sp_ibattery_service.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 7 | 2019-10-18T09:44:10.000Z | 2021-06-11T13:05:16.000Z | #pragma once
#include "utils/SimpleSignal.hpp"
#include <chrono>
namespace ServiceProviders::BatteryService::Settings
{
using namespace std::chrono_literals;
constexpr std::chrono::seconds MeasurmentPeriod = 1s;
constexpr std::uint8_t MinBatteryLevel = 0;
constexpr std::uint8_t MaxBatteryLevel = 100;
} // namespace... | 22.294118 | 74 | 0.779683 | ValentiWorkLearning |
97815b3de040fd642726264a176aabf36379f628 | 457 | cpp | C++ | Algorithms/Warmup/Compare the Triplets/Solution.cpp | RAVURISREESAIHARIKRISHNA/Hackerrank | e7ec866a4d03259ed054163b1e9e536af50a1c3e | [
"MIT"
] | null | null | null | Algorithms/Warmup/Compare the Triplets/Solution.cpp | RAVURISREESAIHARIKRISHNA/Hackerrank | e7ec866a4d03259ed054163b1e9e536af50a1c3e | [
"MIT"
] | null | null | null | Algorithms/Warmup/Compare the Triplets/Solution.cpp | RAVURISREESAIHARIKRISHNA/Hackerrank | e7ec866a4d03259ed054163b1e9e536af50a1c3e | [
"MIT"
] | null | null | null | #include<iostream>
// #include<conio.h>
using namespace std;
int main(void){
int a[3];
for(int i=0;i<=2;i++){
cin>>a[i];
}
int alice,bob;
alice = bob = 0;
int x;
for(int i=0;i<=2;i++){
cin>>x;
if(x > a[i]){
bob++;
continue;
}
... | 15.233333 | 26 | 0.380744 | RAVURISREESAIHARIKRISHNA |
9783189e5d4c4aa02546453c02c6a066e94391d3 | 423 | hpp | C++ | src/leader/leader_factory.hpp | mrc-g/FogMon | dc040e5566d4fa6b0fca80fb46767f40f19b7c2e | [
"MIT"
] | 7 | 2019-05-08T08:25:40.000Z | 2021-06-19T10:42:56.000Z | src/leader/leader_factory.hpp | mrc-g/FogMon | dc040e5566d4fa6b0fca80fb46767f40f19b7c2e | [
"MIT"
] | 5 | 2020-03-07T15:24:27.000Z | 2022-03-12T00:49:53.000Z | src/leader/leader_factory.hpp | mrc-g/FogMon | dc040e5566d4fa6b0fca80fb46767f40f19b7c2e | [
"MIT"
] | 4 | 2020-03-05T17:05:42.000Z | 2021-11-21T16:00:56.000Z | #ifndef LEADER_FACTORY_HPP_
#define LEADER_FACTORY_HPP_
#include "leader_connections.hpp"
#include "factory.hpp"
#include "leader_storage.hpp"
#include "server.hpp"
class LeaderFactory : public Factory {
public:
virtual ILeaderStorage* newStorage(std::string path, Message::node node);
virtual LeaderConnection... | 26.4375 | 77 | 0.777778 | mrc-g |
97833df0227057c09fa51fbf52d1ba81477f4cff | 5,366 | hpp | C++ | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | RubetekIOS-CPP.framework/Versions/A/Headers/libnet/msw/proto/spp/packer.hpp | yklishevich/RubetekIOS-CPP-releases | 7dfbbb45b8de7dbb6fa995ff5dcbca4ec06c2bdb | [
"MIT"
] | null | null | null | #pragma once
#include <limits>
#include <exception>
#include <functional>
#include <type_traits>
#include <msw/config.hpp>
#include <msw/buffer.hpp>
#include <msw/noncopyable.hpp>
#include <msw/throw_runtime_error.hpp>
namespace msw {
namespace spp {
template <typename SizeType = wbyte>
struct packer
... | 30.488636 | 151 | 0.533545 | yklishevich |
97836c40c9b767bee00ff4f816050487973638fa | 5,084 | cpp | C++ | sender.cpp | dcberumen/Shared-Memory | eaf3970df962db713317de9011aa952b6b13428f | [
"MIT"
] | null | null | null | sender.cpp | dcberumen/Shared-Memory | eaf3970df962db713317de9011aa952b6b13428f | [
"MIT"
] | null | null | null | sender.cpp | dcberumen/Shared-Memory | eaf3970df962db713317de9011aa952b6b13428f | [
"MIT"
] | null | null | null |
#include <sys/shm.h>
#include <sys/msg.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "msg.h" /* For the message struct */
/* The size of the shared memory chunk */
#define SHARED_MEMORY_CHUNK_SIZE 1000
/* The ids for the shared memory segment and the message queue */
int shmid... | 26.479167 | 111 | 0.608379 | dcberumen |
97839573dbebe5642e4b67d09a062c8bcb9e83d5 | 24,403 | cpp | C++ | system.cpp | YunzheZJU/GLSL_Edge | 5b6a8ee1890747d2d898645594f4965d2ae114b1 | [
"MIT"
] | null | null | null | system.cpp | YunzheZJU/GLSL_Edge | 5b6a8ee1890747d2d898645594f4965d2ae114b1 | [
"MIT"
] | null | null | null | system.cpp | YunzheZJU/GLSL_Edge | 5b6a8ee1890747d2d898645594f4965d2ae114b1 | [
"MIT"
] | null | null | null | //
// System.cpp
// Processing system display and control
// Created by Yunzhe on 2017/12/4.
//
#include "system.h"
Shader shader = Shader();
VBOPlane *plane;
VBOTeapot *teapot;
VBOTorus *torus;
GLuint fboHandle;
GLuint pass1Index;
GLuint pass2Index;
GLuint renderTex;
GLuint fsQuad;
mat4 model;
mat4 view;
mat4 projec... | 39.359677 | 131 | 0.533787 | YunzheZJU |
978d4b0d959ed6727d5d1d7bc48fe5a5359b0ce0 | 1,543 | cc | C++ | facebody/src/model/GenerateHumanSketchStyleRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | facebody/src/model/GenerateHumanSketchStyleRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | facebody/src/model/GenerateHumanSketchStyleRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 29.673077 | 83 | 0.771225 | aliyun |
9791022486471675cd10515f685393c43850bd56 | 134 | cpp | C++ | src/examples/01_module/01_hello_world/hello.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz | 44adcb5fb1a307c6b5f59b4235fe83a7eb363002 | [
"MIT"
] | null | null | null | src/examples/01_module/01_hello_world/hello.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz | 44adcb5fb1a307c6b5f59b4235fe83a7eb363002 | [
"MIT"
] | null | null | null | src/examples/01_module/01_hello_world/hello.cpp | acc-cosc-1337-summer-2020-classroom/acc-cosc-1337-summer-2020-justinpesz | 44adcb5fb1a307c6b5f59b4235fe83a7eb363002 | [
"MIT"
] | null | null | null | #include "hello.h"
double calculate_paycheck(double num1, double num2)
{
auto payrate = num1 / num2;
return payrate;
}
| 13.4 | 51 | 0.664179 | acc-cosc-1337-summer-2020-classroom |
97965f72395d2a44fbf70895ef4836a59b19f5e2 | 28,101 | cpp | C++ | src/Pegasus/Common/tests/OperationContext/TestOperationContext.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/Common/tests/OperationContext/TestOperationContext.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/Common/tests/OperationContext/TestOperationContext.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | 1 | 2022-03-07T22:54:02.000Z | 2022-03-07T22:54:02.000Z | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... | 32.078767 | 129 | 0.673891 | ncultra |
979b9cab028edacd7d197e7a162952c35400c372 | 2,100 | hpp | C++ | android_app/app/src/main/cpp/include/zdl/DlSystem/ITensorItrImpl.hpp | csarron/MobileAccelerator | 5e1b40cb2332073da6cd8a52bbba2712ae30f7bd | [
"MIT"
] | 2 | 2021-07-25T01:10:03.000Z | 2021-10-29T22:49:09.000Z | android_app/app/src/main/cpp/include/zdl/DlSystem/ITensorItrImpl.hpp | csarron/MobileAccelerator | 5e1b40cb2332073da6cd8a52bbba2712ae30f7bd | [
"MIT"
] | null | null | null | android_app/app/src/main/cpp/include/zdl/DlSystem/ITensorItrImpl.hpp | csarron/MobileAccelerator | 5e1b40cb2332073da6cd8a52bbba2712ae30f7bd | [
"MIT"
] | null | null | null | //=============================================================================
// @@-COPYRIGHT-START-@@
//
// Copyright 2015 Qualcomm Technologies, Inc. All rights reserved.
// Confidential & Proprietary - Qualcomm Technologies, Inc. ("QTI")
//
// The party receiving this software directly from QTI (the "Recipient... | 34.42623 | 79 | 0.681905 | csarron |
979c6b30191b3c796513d66d784490eb5eafde41 | 15,492 | cpp | C++ | src/jc_handlers/jc_class.cpp | gavz/choupi | fb49537e9646d4797f63ca2191f3b0ddb4c6760a | [
"MIT"
] | 2 | 2021-05-22T03:24:31.000Z | 2022-01-20T14:25:25.000Z | src/jc_handlers/jc_class.cpp | gavz/choupi | fb49537e9646d4797f63ca2191f3b0ddb4c6760a | [
"MIT"
] | null | null | null | src/jc_handlers/jc_class.cpp | gavz/choupi | fb49537e9646d4797f63ca2191f3b0ddb4c6760a | [
"MIT"
] | 3 | 2021-05-06T14:24:58.000Z | 2022-01-06T07:52:27.000Z | /*
** The MIT License (MIT)
**
** Copyright (c) 2020, National Cybersecurity Agency of France (ANSSI)
**
** 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 with... | 33.173448 | 80 | 0.706106 | gavz |
97a2bce42566f20ad356ce2a39e84587bb5959a0 | 4,287 | cc | C++ | src/webpage.cc | mistydew/RSSearch | 52e597aeb495fe35f2f6069741ef19c9d0bfe2bb | [
"MIT"
] | 2 | 2019-03-13T14:47:16.000Z | 2019-07-22T09:17:43.000Z | src/webpage.cc | mistydew/RSSearch | 52e597aeb495fe35f2f6069741ef19c9d0bfe2bb | [
"MIT"
] | null | null | null | src/webpage.cc | mistydew/RSSearch | 52e597aeb495fe35f2f6069741ef19c9d0bfe2bb | [
"MIT"
] | 1 | 2019-07-22T09:17:44.000Z | 2019-07-22T09:17:44.000Z | ///
/// @file webpage.cc
/// @author mistydew(mistydew@qq.com)
/// @date 2017-12-02 15:36:06
///
#include "webpage.h"
#include "configuration.h"
#include "wordsegmentation.h"
#include <queue>
#include <sstream>
namespace md
{
WebPage::WebPage(const std::string & doc)
{
std::cout << "WebPage(const st... | 24.637931 | 128 | 0.559132 | mistydew |
97a453e833e798b0117112d4759e7c3e46460faf | 606 | cpp | C++ | test/src/algorithm/suffix.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/src/algorithm/suffix.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/src/algorithm/suffix.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #include "test.hpp"
#include "test/numbers.hpp"
#include "jln/mp/smp/algorithm/suffix.hpp"
TEST_SUITE_BEGIN()
TEST()
{
using namespace jln::mp;
using namespace ut::ints;
test_pack2<suffix, int>();
ut::same<list<>, emp::suffix<list<>, int>>();
ut::same<list<_0, int>, emp::suffix<seq_0, int>>();
test_co... | 20.896552 | 67 | 0.612211 | jonathanpoelen |
97aa1b3005b136dd27e3bffc6af997679b487c9f | 4,727 | cpp | C++ | Assignment 3/AVL_TreeOperations.cpp | Raghav1806/Data-Structures-CSL-201- | 2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177 | [
"MIT"
] | null | null | null | Assignment 3/AVL_TreeOperations.cpp | Raghav1806/Data-Structures-CSL-201- | 2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177 | [
"MIT"
] | null | null | null | Assignment 3/AVL_TreeOperations.cpp | Raghav1806/Data-Structures-CSL-201- | 2e4e3c67e3ff28ac6a9e1f06fe12a2864b17d177 | [
"MIT"
] | null | null | null | // program for basic operations in AVL Tree
#include <iostream>
#include <cstdlib>
using namespace std;
struct Node{
int data;
struct Node *left;
struct Node *right;
int height;
}*root;
struct Node *createNewNode(int x){
struct Node *newptr = new Node;
newptr->data = x;
newptr->left = NULL;
newptr->right = NU... | 19.861345 | 65 | 0.642268 | Raghav1806 |
97ab322573a6865d8a85ff34c4ad426f4104757c | 1,381 | cpp | C++ | IOCP4Http/IOCP/PerSocketContext.cpp | Joyce-Qu/IOCPServer-Client- | b1c1a76e6bffe3b67340614ba8e36e197198302e | [
"MIT"
] | 42 | 2019-11-13T06:39:31.000Z | 2021-12-28T18:55:27.000Z | IOCP4Http/IOCP/PerSocketContext.cpp | 124327288/IOCPServer | b1c1a76e6bffe3b67340614ba8e36e197198302e | [
"MIT"
] | null | null | null | IOCP4Http/IOCP/PerSocketContext.cpp | 124327288/IOCPServer | b1c1a76e6bffe3b67340614ba8e36e197198302e | [
"MIT"
] | 31 | 2019-11-14T09:58:15.000Z | 2022-03-25T08:30:41.000Z | #include <ws2tcpip.h>
#include <assert.h>
#include "Network.h"
#include "PerIoContext.h"
#include "PerSocketContext.h"
#include <iostream>
using namespace std;
ListenContext::ListenContext(short port, const std::string& ip)
{
SecureZeroMemory(&m_addr, sizeof(SOCKADDR_IN));
m_addr.sin_family = AF_INET;
inet... | 24.660714 | 63 | 0.717596 | Joyce-Qu |
97ad3e092974dd1d58c4f30432cd174a86fdc87e | 2,333 | cpp | C++ | Engine/Renderer/Gfx/src/GfxCamera.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | 3 | 2018-12-08T16:32:05.000Z | 2020-06-02T11:07:15.000Z | Engine/Renderer/Gfx/src/GfxCamera.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | null | null | null | Engine/Renderer/Gfx/src/GfxCamera.cpp | LiangYue1981816/AresEngine | c1cf040a1dffaf2bc585ed75e70ddd9322fe3f67 | [
"BSD-2-Clause"
] | 1 | 2019-09-12T00:26:05.000Z | 2019-09-12T00:26:05.000Z | #include "GfxHeader.h"
CGfxCamera::CGfxCamera(void)
{
}
CGfxCamera::~CGfxCamera(void)
{
}
void CGfxCamera::SetScissor(float x, float y, float width, float height)
{
m_camera.setScissor(x, y, width, height);
}
void CGfxCamera::SetViewport(float x, float y, float width, float height)
{
m_camera.setViewport(x, y,... | 20.646018 | 140 | 0.753536 | LiangYue1981816 |
97adcb71b727d993f3f48ec0c431b358a65b8a0a | 1,349 | hpp | C++ | Yannq/Basis/Basis.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Basis/Basis.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Basis/Basis.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | #pragma once
//! \defgroup Basis Basis for a spin-1/2 system
#include "BasisJz.hpp"
#include "BasisFull.hpp"
#include <iterator>
#include <type_traits>
#include <tbb/concurrent_vector.h>
#include <tbb/parallel_for_each.h>
#include <tbb/parallel_sort.h>
/**
* Enable if Iterable is not random access iterable
*/
templa... | 28.702128 | 107 | 0.75315 | cecri |
97af8f553fd0ca2d14f6905218236556ec82f11a | 5,132 | tcc | C++ | include/lvr2/util/ClusterBiMap.tcc | uos/lvr | 9bb03a30441b027c39db967318877e03725112d5 | [
"BSD-3-Clause"
] | 38 | 2019-06-19T15:10:35.000Z | 2022-02-16T03:08:24.000Z | include/lvr2/util/ClusterBiMap.tcc | jtpils/lvr2 | b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce | [
"BSD-3-Clause"
] | 9 | 2019-06-19T16:19:51.000Z | 2021-09-17T08:31:25.000Z | include/lvr2/util/ClusterBiMap.tcc | jtpils/lvr2 | b1010dfcc930d9ae0ff5cfa5c88d0810d65368ce | [
"BSD-3-Clause"
] | 13 | 2019-04-16T11:50:32.000Z | 2020-11-26T07:47:44.000Z | /**
* Copyright (c) 2018, University Osnabrück
* 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 li... | 27.891304 | 99 | 0.75039 | uos |
97b5ad3f88874a5ef67632c787ae9b65005b5053 | 1,021 | cpp | C++ | Lab8/Date.cpp | RustyRaptor/CS271 | 3d6787a5bf6bdd69176a685124ffcfee44de2d59 | [
"MIT"
] | null | null | null | Lab8/Date.cpp | RustyRaptor/CS271 | 3d6787a5bf6bdd69176a685124ffcfee44de2d59 | [
"MIT"
] | null | null | null | Lab8/Date.cpp | RustyRaptor/CS271 | 3d6787a5bf6bdd69176a685124ffcfee44de2d59 | [
"MIT"
] | null | null | null | // CS271 - Lab Assignment: #8
// Program name: C++ Classes
// Purpose of program: Some classes in C++
// written by: Ziad Arafat
// Date Written: 2020-04-12
#include "Date.h"
using namespace std;
unsigned int month;
unsigned int day;
unsigned int year;
Date::Date( ) {
month = 1;
day = 1;
year =... | 16.206349 | 63 | 0.481881 | RustyRaptor |
97b76d7ee77235cf4e0ebff11a4e2b84d1427b18 | 14,364 | cpp | C++ | admin/wmi/wbem/providers/win32provider/sessionandconnections/dll/connectiontosession.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/providers/win32provider/sessionandconnections/dll/connectiontosession.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/providers/win32provider/sessionandconnections/dll/connectiontosession.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /******************************************************************
ConnectionToSession.CPP -- C provider class implementation
Copyright (c) 2000-2001 Microsoft Corporation, All Rights Reserved
Description: Association between Connection To Session
******************************************... | 22.8 | 131 | 0.525968 | npocmaka |
b632914d2592fde88b55410d451e1a343d27e425 | 8,097 | cpp | C++ | sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/VisualBoyAdvance/src/win32/AccelEditor.cpp | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | // VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
// Copyright (C) 1999-2003 Forgotten
// Copyright (C) 2004 Forgotten and the VBA development team
// 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 F... | 27.824742 | 85 | 0.681116 | pdpdds |
b63479c43fe8c989fc03537f6a2975891c2d8806 | 124 | hpp | C++ | include/litmus/details/verbosity.hpp | JessyDL/litmus | 156814116d83ee7884c76adda327bf7a9ef0cb14 | [
"MIT"
] | 1 | 2021-04-03T00:18:45.000Z | 2021-04-03T00:18:45.000Z | include/litmus/details/verbosity.hpp | JessyDL/litmus | 156814116d83ee7884c76adda327bf7a9ef0cb14 | [
"MIT"
] | null | null | null | include/litmus/details/verbosity.hpp | JessyDL/litmus | 156814116d83ee7884c76adda327bf7a9ef0cb14 | [
"MIT"
] | null | null | null | #pragma once
namespace litmus
{
enum class verbosity_t
{
NONE = 0,
COMPACT = 1,
NORMAL = 2,
DETAILED = 3
};
} | 10.333333 | 23 | 0.596774 | JessyDL |
b63514f9432f7c5ca3f8514c9e50581e878cb984 | 1,005 | hpp | C++ | DifferentialEvolution/DifferentialEvolution.hpp | nottu/LinearSVM | 7f5ce05b0691e03a12377dd1f177768f59a91e30 | [
"MIT"
] | null | null | null | DifferentialEvolution/DifferentialEvolution.hpp | nottu/LinearSVM | 7f5ce05b0691e03a12377dd1f177768f59a91e30 | [
"MIT"
] | null | null | null | DifferentialEvolution/DifferentialEvolution.hpp | nottu/LinearSVM | 7f5ce05b0691e03a12377dd1f177768f59a91e30 | [
"MIT"
] | null | null | null | //
// Created by Javier Peralta on 5/31/18.
//
#ifndef SVM_DIFFERENTIALEVOLUTION_HPP
#define SVM_DIFFERENTIALEVOLUTION_HPP
#include "../Data.hpp"
#include "../OptimizationProblem.hpp"
class DifferentialEvolution {
public:
friend class Individual;
class Individual;
private:
unsigned max_evals;
unsigned num_va... | 22.840909 | 167 | 0.759204 | nottu |
b637fe4d30b266db56418882aa4a463fc1d8b7cc | 1,704 | hpp | C++ | actan_tools/core/sensors.hpp | oliver-peoples/ACTAN | 5ed78c8e88232dab92fb934d0f85c007d4e98596 | [
"Unlicense"
] | null | null | null | actan_tools/core/sensors.hpp | oliver-peoples/ACTAN | 5ed78c8e88232dab92fb934d0f85c007d4e98596 | [
"Unlicense"
] | null | null | null | actan_tools/core/sensors.hpp | oliver-peoples/ACTAN | 5ed78c8e88232dab92fb934d0f85c007d4e98596 | [
"Unlicense"
] | null | null | null | #ifndef ACTAN_TOOLS_SENSORS_HPP
#define ACTAN_TOOLS_SENSORS_HPP
#if defined(__float128)
#define depth_level __float128
#elif defined(_Float128)
#define depth_level _Float128
#else
#define depth_level long double
#endif
#include <hmath/core.hpp>
namespace actan
{
namespace sensor
{
class Sensor
... | 24.342857 | 98 | 0.619131 | oliver-peoples |
b63d21667567b563bbfa8923303d0ee361244700 | 2,794 | hpp | C++ | src/shape/Bunker.hpp | newnone/Non-Gravitar | 9d21cf7ab5ef49f6976fcaf25fa01cacbb209740 | [
"MIT"
] | null | null | null | src/shape/Bunker.hpp | newnone/Non-Gravitar | 9d21cf7ab5ef49f6976fcaf25fa01cacbb209740 | [
"MIT"
] | null | null | null | src/shape/Bunker.hpp | newnone/Non-Gravitar | 9d21cf7ab5ef49f6976fcaf25fa01cacbb209740 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2018 Oscar B.
//
// 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... | 28.222222 | 81 | 0.725125 | newnone |
b64307fb369aa01cc588abc7842c0b68c5383a69 | 61,868 | cpp | C++ | src/modules/rppi_filter_operations.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 26 | 2019-09-04T17:48:41.000Z | 2022-02-23T17:04:24.000Z | src/modules/rppi_filter_operations.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 57 | 2019-09-06T21:37:34.000Z | 2022-03-09T02:13:46.000Z | src/modules/rppi_filter_operations.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 24 | 2019-09-04T23:12:07.000Z | 2022-03-30T02:06:22.000Z | #include <rppi_filter_operations.h>
#include <rppdefs.h>
#include "rppi_validate.hpp"
#ifdef HIP_COMPILE
#include <hip/rpp_hip_common.hpp>
#include "hip/hip_declarations.hpp"
#elif defined(OCL_COMPILE)
#include <cl/rpp_cl_common.hpp>
#include "cl/cl_declarations.hpp"
#endif //backend
#include <stdio.h>
#include <iost... | 37.816626 | 101 | 0.457749 | shobana-mcw |
b6440496a92b62f842701964c833da19c16803e3 | 906 | cpp | C++ | src/parser/transform/statement/transform_transaction.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/parser/transform/statement/transform_transaction.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/parser/transform/statement/transform_transaction.cpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | #include "guinsoodb/parser/statement/transaction_statement.hpp"
#include "guinsoodb/parser/transformer.hpp"
namespace guinsoodb {
unique_ptr<TransactionStatement> Transformer::TransformTransaction(guinsoodb_libpgquery::PGNode *node) {
auto stmt = reinterpret_cast<guinsoodb_libpgquery::PGTransactionStmt *>(node);
D_... | 39.391304 | 104 | 0.825607 | GuinsooLab |
b6474bdf4746d833e16134adc8dfd774567d6580 | 4,735 | cpp | C++ | tools/extras/irstlm/src/doc.cpp | scscscscscsc/kaldi-trunk | aa9a8143e0fee12d85562ccc1d06e0e99f630029 | [
"Apache-2.0"
] | 4 | 2016-06-05T14:19:32.000Z | 2016-06-07T09:21:10.000Z | tools/extras/irstlm/src/doc.cpp | MistSC/kaldi-trunk | aa9a8143e0fee12d85562ccc1d06e0e99f630029 | [
"Apache-2.0"
] | null | null | null | tools/extras/irstlm/src/doc.cpp | MistSC/kaldi-trunk | aa9a8143e0fee12d85562ccc1d06e0e99f630029 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
IrstLM: IRST Language Model Toolkit, compile LM
Copyright (C) 2006 Marcello Federico, ITC-irst Trento, Italy
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lice... | 19.729167 | 79 | 0.530729 | scscscscscsc |
b64993be7464496ca9e61403286e83785c0c32b5 | 8,796 | cpp | C++ | source/variables/Variant.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | 2 | 2021-08-06T19:40:34.000Z | 2021-09-06T23:07:47.000Z | source/variables/Variant.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | null | null | null | source/variables/Variant.cpp | alijenabi/RelationBasedSoftware | f26f163d8d3e74e134a33512ae49fb24edb8b3b7 | [
"MIT"
] | null | null | null | //
// Variant.cpp
// Relation-Based Simulator (RBS)
//
// Created by Ali Jenabidehkordi on 19.08.18.
// Copyright © 2018 Ali Jenabidehkordi. All rights reserved.
//
#include "Variant.h"
namespace rbs::variables {
Variant::Variant()
: p_id{ TypeID::None }
, p_value{}
{
}
Variant::Variant(const Variant &o... | 52.357143 | 135 | 0.593565 | alijenabi |
b649f164b0f698ac856b600e19c2c775a25ace8b | 2,575 | cpp | C++ | imctrans/cpp/assets/tests/test_InlineMessage.cpp | paulosousadias/imctrans | cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f | [
"Apache-2.0"
] | null | null | null | imctrans/cpp/assets/tests/test_InlineMessage.cpp | paulosousadias/imctrans | cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f | [
"Apache-2.0"
] | 1 | 2019-05-23T18:36:57.000Z | 2019-05-23T18:58:32.000Z | imctrans/cpp/assets/tests/test_InlineMessage.cpp | paulosousadias/imctrans | cfa2a12ea577d9aa214c2bbb23f3561e8b50ee8f | [
"Apache-2.0"
] | 6 | 2018-11-22T18:10:58.000Z | 2020-06-26T16:55:35.000Z | //***************************************************************************
// Copyright 2017 OceanScan - Marine Systems & Technology, Lda. *
//***************************************************************************
// Licensed under the Apache License, Version 2.0 (the "License"); *
// you m... | 32.1875 | 77 | 0.528155 | paulosousadias |
b64a0ca2541b8c7a1eb67199fe1d100f536c2f4d | 10,723 | cpp | C++ | ToolKit/ReportControl/XTPReportColumns.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/ReportControl/XTPReportColumns.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/ReportControl/XTPReportColumns.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPReportColumns.cpp : implementation of the CXTPReportColumns class.
//
// This file is a part of the XTREME REPORTCONTROL MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER... | 22.246888 | 101 | 0.69654 | 11Zero |
b64aa8d9436b0552bbce48e8c47f37dbf5e429c0 | 1,248 | cpp | C++ | depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | depth_breadth_search/leetcode_dfs/366_find_leaves_of_bianry_tree.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// 366_find_leaves_of_bianry_tree.cpp
// leetcode_dfs
//
// Created by Hadley on 26.08.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include ... | 22.285714 | 91 | 0.634615 | Hadleyhzy |
b64be8ad8172ca61b4bd07a4e0923083f1e615f6 | 601 | cpp | C++ | Game/Source/Entity.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | Game/Source/Entity.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | Game/Source/Entity.cpp | Paideieitor/PlatformerGame | e00602171807c694b0c5f4afac50157ce9cd23b1 | [
"MIT"
] | null | null | null | #include "Collisions.h"
#include "Entity.h"
Entity::Entity(EntityType type, fPoint position, bool flip, Player* parent)
{
this->type = type;
this->position = position;
this->flip = flip;
this->parent = parent;
toDelete = false;
toRemove = false;
flip = false;
}
Entity::~Entity()
{
}
bool Entity::Update(float... | 14.309524 | 75 | 0.678869 | Paideieitor |
b64e3db9d1c2e542b4b9ceda3ed50c6d1649a382 | 2,361 | cpp | C++ | app/src/main/cpp/XTexture.cpp | sk95120/Connrot | d19c878d99ae85eca3663c11897fc4de1772fbff | [
"Apache-2.0"
] | 1 | 2021-11-30T04:52:16.000Z | 2021-11-30T04:52:16.000Z | app/src/main/cpp/XTexture.cpp | ShiKe-And-His-Friends/Connrot | d19c878d99ae85eca3663c11897fc4de1772fbff | [
"Apache-2.0"
] | 1 | 2019-08-27T01:34:46.000Z | 2019-08-27T01:34:46.000Z | app/src/main/cpp/XTexture.cpp | sk95120/Connrot | d19c878d99ae85eca3663c11897fc4de1772fbff | [
"Apache-2.0"
] | 1 | 2021-11-30T04:52:17.000Z | 2021-11-30T04:52:17.000Z | //
// Created by shike on 2/4/2020.
//
#include "XTexture.h"
#include "XLog.h"
#include "XEGL.h"
#include "XShader.h"
class CXTexture:public XTexture{
public:
bool ifFirst;
//FILE *fp;
XShader sh;
XTextureType type;
std::mutex mux;
virtual void Drop(){
if (CXTexture_DEBUG_LOG) {
... | 26.829545 | 108 | 0.505718 | sk95120 |
b6551c3c68b0bc35a21af4fd16c77fa72cfc1c35 | 1,413 | hpp | C++ | src/snabl/bset.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 22 | 2018-08-27T15:28:10.000Z | 2022-02-13T08:18:00.000Z | src/snabl/bset.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 3 | 2018-08-27T01:44:51.000Z | 2020-06-28T20:07:42.000Z | src/snabl/bset.hpp | codr4life/snabl | b1c8a69e351243a3ae73d69754971d540c224733 | [
"MIT"
] | 2 | 2018-08-26T18:55:47.000Z | 2018-09-29T01:04:36.000Z | #ifndef SNABL_BSET_HPP
#define SNABL_BSET_HPP
#include "snabl/cmp.hpp"
#include "snabl/std.hpp"
#include "snabl/types.hpp"
namespace snabl {
template <typename KeyT, typename ValT>
struct BSet {
using Vals = vector<ValT>;
Vals vals;
KeyT ValT::*key_ptr;
BSet(KeyT ValT::*key_ptr): key_ptr(key_... | 22.428571 | 69 | 0.530078 | codr4life |
b65aed50316ad423ff5b0889dbc0247d96bbee14 | 865 | cpp | C++ | src/lfilesaver/server/util/DefaultStatsProvider.cpp | yamadapc/filesaver | 9665cb30615530fb4aeeb775efb92092c7a51eb1 | [
"MIT"
] | 28 | 2019-09-09T08:13:25.000Z | 2022-02-09T06:20:31.000Z | src/lfilesaver/server/util/DefaultStatsProvider.cpp | yamadapc/filesaver | 9665cb30615530fb4aeeb775efb92092c7a51eb1 | [
"MIT"
] | 2 | 2020-05-26T02:06:42.000Z | 2021-04-08T08:16:03.000Z | src/lfilesaver/server/util/DefaultStatsProvider.cpp | yamadapc/filesaver | 9665cb30615530fb4aeeb775efb92092c7a51eb1 | [
"MIT"
] | 1 | 2020-06-09T23:40:04.000Z | 2020-06-09T23:40:04.000Z | //
// Created by Pedro Tacla Yamada on 14/7/20.
//
#include "DefaultStatsProvider.h"
namespace filesaver::server
{
static const double MILLISECONDS_IN_SECOND = 1000.;
DefaultStatsProvider::DefaultStatsProvider (services::stats::ThroughputTracker* throughputTracker,
servi... | 30.892857 | 112 | 0.738728 | yamadapc |
b65b8a8657c4a8f38124f9ad71297f1732e7f9ad | 396 | cpp | C++ | source/ShaderAST/Expr/ExprModulo.cpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | 148 | 2018-10-11T16:51:37.000Z | 2022-03-26T13:55:08.000Z | source/ShaderAST/Expr/ExprModulo.cpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | 30 | 2019-11-30T11:43:07.000Z | 2022-01-25T21:09:47.000Z | source/ShaderAST/Expr/ExprModulo.cpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | 8 | 2020-04-17T13:18:30.000Z | 2021-11-20T06:24:44.000Z | /*
See LICENSE file in root folder
*/
#include "ShaderAST/Expr/ExprModulo.hpp"
#include "ShaderAST/Expr/ExprVisitor.hpp"
namespace ast::expr
{
Modulo::Modulo( type::TypePtr type
, ExprPtr lhs
, ExprPtr rhs )
: Binary{ std::move( type )
, std::move( lhs )
, std::move( rhs )
, Kind::eModulo }
{
}
vo... | 15.84 | 41 | 0.643939 | Praetonus |
b65c5929e2e4a41de1bc85f2e30e137110bcc2d8 | 1,487 | cpp | C++ | cpp/app.cpp | yorung/dx12playground | 760bbd9b3dedf26a4c00219628c58721a70d4446 | [
"MIT"
] | 2 | 2016-06-16T14:00:40.000Z | 2020-04-26T12:11:34.000Z | cpp/app.cpp | yorung/dx12playground | 760bbd9b3dedf26a4c00219628c58721a70d4446 | [
"MIT"
] | null | null | null | cpp/app.cpp | yorung/dx12playground | 760bbd9b3dedf26a4c00219628c58721a70d4446 | [
"MIT"
] | null | null | null | #include "stdafx.h"
App app;
App::App()
{
}
void App::Draw()
{
const IVec2 scrSize = systemMisc.GetScreenSize();
constexpr float f = 1000;
constexpr float n = 1;
const float aspect = (float)scrSize.x / scrSize.y;
Mat proj = perspectiveLH(45.0f * (float)M_PI / 180.0f, aspect, n, f);
matrixMan.Set... | 23.234375 | 135 | 0.677875 | yorung |
b65ddc6dec39b505392574d96c345095e856a9ef | 6,408 | cpp | C++ | src/physics/operators/nonlinear_solid_operators.cpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | src/physics/operators/nonlinear_solid_operators.cpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | src/physics/operators/nonlinear_solid_operators.cpp | joshessman-llnl/serac | 1365a8f9ca372f0c50008b4b8f5f718955e4b80c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2019, Lawrence Livermore National Security, LLC and
// other Serac Project Developers. See the top-level LICENSE file for
// details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#include "physics/operators/nonlinear_solid_operators.hpp"
#include "infrastructure/logger.hpp"
#include "numerics/expr_t... | 38.142857 | 116 | 0.637953 | joshessman-llnl |
b662f049c445959516d9d4dbcce5744975b15c84 | 2,387 | cpp | C++ | Source/Editctrl/window.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | 2 | 2022-02-11T11:59:44.000Z | 2022-02-16T20:33:25.000Z | Source/Editctrl/window.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | Source/Editctrl/window.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | #include "all.h"
#include "ectrl_i.h"
void DrawLineColumn(int x, int y);
//----------------------------
C_window::C_window():
scroll_x(0),
scroll_y(0),
overwrite(false),
hwnd(NULL),
redraw(true)
{
undo[0].Add(C_undo_element::MARK);
}
//----------------------------
void C_window::Activate(){
... | 22.308411 | 91 | 0.51571 | mice777 |