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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6e5b96b3b9a80bf364e304c2adacf3ba49033fd | 554 | hpp | C++ | chratos/chratos_node/daemon.hpp | chratos-system/chratos | caf1b608a21ccc7b13726a64497036ab53f837b3 | [
"BSD-2-Clause"
] | 2 | 2018-09-10T16:28:16.000Z | 2020-02-13T17:44:43.000Z | chratos/chratos_node/daemon.hpp | chratos-system/chratos | caf1b608a21ccc7b13726a64497036ab53f837b3 | [
"BSD-2-Clause"
] | null | null | null | chratos/chratos_node/daemon.hpp | chratos-system/chratos | caf1b608a21ccc7b13726a64497036ab53f837b3 | [
"BSD-2-Clause"
] | 2 | 2018-08-27T13:00:56.000Z | 2018-10-16T21:54:13.000Z | #include <chratos/node/node.hpp>
#include <chratos/node/rpc.hpp>
namespace chratos_daemon
{
class daemon
{
public:
void run (boost::filesystem::path const &);
};
class daemon_config
{
public:
daemon_config (boost::filesystem::path const &);
bool deserialize_json (bool &, boost::property_tree::ptree &);
void serial... | 22.16 | 63 | 0.749097 |
b6e6b03c6aec479a89fd0f21a6e2e0b311c44c75 | 20,841 | cpp | C++ | third_party/omr/compiler/optimizer/OMROptimization.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/compiler/optimizer/OMROptimization.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/compiler/optimizer/OMROptimization.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 36.057093 | 230 | 0.64685 |
b6e747e98efbae07098d7fecd8734f2aacbde5f4 | 605 | cpp | C++ | Ball.cpp | f-prime/SFMLPong | 281e3a76d1d8f80a86f890ade78d789f2af09b0a | [
"WTFPL"
] | 1 | 2018-08-29T16:45:29.000Z | 2018-08-29T16:45:29.000Z | Ball.cpp | f-prime/SFMLPong | 281e3a76d1d8f80a86f890ade78d789f2af09b0a | [
"WTFPL"
] | null | null | null | Ball.cpp | f-prime/SFMLPong | 281e3a76d1d8f80a86f890ade78d789f2af09b0a | [
"WTFPL"
] | null | null | null | #include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include "Ball.hpp"
Ball::Ball(sf::RenderWindow& window):window(window) {
this->ball = sf::RectangleShape(sf::Vector2f(5, 5));
this->direction = 1;
this->speed = 5;
this->angle = 0;
this->setPos(400, 300);
}
void Ball::setPos(int x, int y) {... | 16.805556 | 56 | 0.62314 |
b6e7c2d8d635b8d2618c1ab12877d03218257eeb | 1,077 | cpp | C++ | CCTV/CCTV/CCTVSet.cpp | DNATUNA/opencvProject | 6afd9b11f98c86b8e41d3bf44115f2d9bc62b970 | [
"BSD-3-Clause"
] | 1 | 2019-01-24T04:37:41.000Z | 2019-01-24T04:37:41.000Z | CCTV/CCTV/CCTVSet.cpp | DNATUNA/2018opencvProject | 6afd9b11f98c86b8e41d3bf44115f2d9bc62b970 | [
"BSD-3-Clause"
] | null | null | null | CCTV/CCTV/CCTVSet.cpp | DNATUNA/2018opencvProject | 6afd9b11f98c86b8e41d3bf44115f2d9bc62b970 | [
"BSD-3-Clause"
] | null | null | null | #include<opencv\cv.h>
#include<opencv\highgui.h>
#include<cstdio>
int main(){
CvCapture* capture = cvCaptureFromCAM(0);
if (!capture){
printf("the video file was not found.");
return 0;
}
int width = (int)cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_WIDTH);
int height = (int)cvGetCaptureProperty(capture... | 22.914894 | 75 | 0.723305 |
b6eb39ef45bc5c2f56339e4c9849eee6c477b6e3 | 1,711 | cxx | C++ | src/converter/fix_helper.cxx | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2019-09-26T12:08:19.000Z | 2019-09-26T12:08:19.000Z | src/converter/fix_helper.cxx | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | null | null | null | src/converter/fix_helper.cxx | abdelkaderamar/fix2xml | fa781b747a8e40ed4c2d3dee8294fb51654f7428 | [
"MIT"
] | 1 | 2020-12-11T04:11:44.000Z | 2020-12-11T04:11:44.000Z | #include "fix_helper.hxx"
#include <quickfix/FixFieldNumbers.h>
#include <algorithm>
#include <functional>
#include <vector>
namespace fix2xml {
using namespace std;
//-----------------------------------------------------------------------------
void msg_to_list(const FIX::Message &fix_msg,
const ... | 34.22 | 79 | 0.548802 |
b6f2464ac1f220f4d92948ee29510bccaf768fc8 | 2,030 | cpp | C++ | DS/DS/graph/bellman_ford.cpp | puneet222/Data-Structures | c5c460739c7423cce53685c5557c97c70ca1d171 | [
"Apache-2.0"
] | null | null | null | DS/DS/graph/bellman_ford.cpp | puneet222/Data-Structures | c5c460739c7423cce53685c5557c97c70ca1d171 | [
"Apache-2.0"
] | null | null | null | DS/DS/graph/bellman_ford.cpp | puneet222/Data-Structures | c5c460739c7423cce53685c5557c97c70ca1d171 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<stdio.h>
#include<queue>
#include<malloc.h>
#include<limits.h>
using namespace std ;
struct graph{
int v ;
int e ;
int **wgh ;
} ;
struct graph *weightMatrix(int vertices , int edges)
{
struct graph *g = new graph ;
g -> v = vertices ;
g -> e = edges ;
g -> wgh = (int **)malloc(siz... | 17.964602 | 96 | 0.484236 |
b6f37f224de07b2b6fbcd897a1d9b8df7744e108 | 151 | cpp | C++ | serialRW/main.cpp | codinggg/tools | 196043db7a46cda4d35547eb85a2449d52528c7e | [
"MIT"
] | null | null | null | serialRW/main.cpp | codinggg/tools | 196043db7a46cda4d35547eb85a2449d52528c7e | [
"MIT"
] | null | null | null | serialRW/main.cpp | codinggg/tools | 196043db7a46cda4d35547eb85a2449d52528c7e | [
"MIT"
] | null | null | null | #include <QApplication>
#include "serial.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
serial se;
return a.exec();
}
| 13.727273 | 32 | 0.629139 |
b6f669662fc07113ef4dc65531cf932b8353b1f9 | 2,127 | cpp | C++ | 1. Деревья поиска/0.2. Удалить из дерева #3535/[OK]169443.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 19 | 2018-05-19T16:37:14.000Z | 2022-03-23T20:13:43.000Z | 1. Деревья поиска/0.2. Удалить из дерева #3535/[OK]169443.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 6 | 2020-05-07T21:06:48.000Z | 2020-06-05T17:52:57.000Z | 1. Деревья поиска/0.2. Удалить из дерева #3535/[OK]169443.cpp | godnoTA/acm.bsu.by | 3e1cf1c545c691de82b5e1d2e0768b41ea581734 | [
"Unlicense"
] | 31 | 2019-03-01T21:41:38.000Z | 2022-03-27T17:56:39.000Z | #include<iostream>
#include<fstream>
using namespace std;
//Входной и выходной файлы
ifstream in("input.txt");
ofstream out("output.txt");
struct node{
int key;
node *left;
node *right;
};
void push(int a,node *&t)
{
if (t == NULL)
{
t = new node; //Выделяем память
t ->... | 19.694444 | 77 | 0.535966 |
b6f7f2f06130d095c5b2a916d993ecd6bd4f62f6 | 833 | cpp | C++ | 机试/动态规划/leetcode123.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode123.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode123.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProfit(vector<int>& prices) {
if(prices.size() == 0){
return 0;
}
int len = prices.size();
vector<vector<int>> dp(len, vector<int>(5));
dp[0][0] = 0;
dp[0][1] = -prices[0];
dp[0][2] = 0;
dp[0][3] = -prices[0];
... | 36.217391 | 105 | 0.421369 |
b6f8e89b7854ae190ce4fb84d665ae55b410da1d | 21,275 | cc | C++ | tests/unit/speech_recog_test.cc | CPqD/asr-sdk-cpp | ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1 | [
"Apache-2.0"
] | 4 | 2017-10-12T20:09:31.000Z | 2021-05-24T13:46:26.000Z | tests/unit/speech_recog_test.cc | CPqD/asr-sdk-cpp | ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1 | [
"Apache-2.0"
] | null | null | null | tests/unit/speech_recog_test.cc | CPqD/asr-sdk-cpp | ca1d0a81a250f54c272b6bc39d2a1c5a1c9f58a1 | [
"Apache-2.0"
] | 4 | 2017-10-04T14:30:11.000Z | 2022-02-25T10:13:06.000Z | /*****************************************************************************
* Copyright 2017 CPqD. 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:... | 33.769841 | 88 | 0.676193 |
b6fb19c28ec6bab8291643f67434843fb09d55bf | 3,231 | cpp | C++ | docs/tests/graph.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 23 | 2019-07-11T14:47:39.000Z | 2021-12-24T09:56:24.000Z | docs/tests/graph.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | null | null | null | docs/tests/graph.cpp | nyorain/tokonoma | b3a4264ef4f9f40487c2f3280812bf7513b914bb | [
"MIT"
] | 4 | 2021-04-06T18:20:43.000Z | 2022-01-15T09:20:45.000Z | #include "bugged.hpp"
#include <deferred/graph.hpp>
TEST(basic) {
FrameGraph graph;
auto& pass1 = graph.addPass();
vk::Image img1;
vk::Image img2;
auto& out1 = pass1.addOut(syncScopeFlex, img1);
auto& out2 = pass1.addOut(syncScopeFlex, img2);
auto scope2 = SyncScope {
vk::PipelineStageBits::computeShader,
... | 23.078571 | 58 | 0.692974 |
b6fbfbcd376fa5bc3b2a981074d82b19475e59ea | 644 | cpp | C++ | native/code/src/gdnative/GodotLibrary.cpp | Chery-cake/base_gdnative | c6c1d60dcf3c6f8a7d70e6ca7eceb7b40efbe93e | [
"MIT"
] | null | null | null | native/code/src/gdnative/GodotLibrary.cpp | Chery-cake/base_gdnative | c6c1d60dcf3c6f8a7d70e6ca7eceb7b40efbe93e | [
"MIT"
] | null | null | null | native/code/src/gdnative/GodotLibrary.cpp | Chery-cake/base_gdnative | c6c1d60dcf3c6f8a7d70e6ca7eceb7b40efbe93e | [
"MIT"
] | null | null | null | #include <Godot.hpp>
#include <AutoRegister.hpp>
/** GDNative Initialize **/
extern "C" void GDN_EXPORT godot_gdnative_init(godot_gdnative_init_options *o) {
godot::Godot::gdnative_init(o);
}
/** GDNative Terminate **/
extern "C" void GDN_EXPORT godot_gdnative_terminate(godot_gdnative_terminate_options *o) {
godot... | 21.466667 | 90 | 0.754658 |
b6ffd38232e34a6c633d9472a60fc53d10602b17 | 1,380 | cpp | C++ | llvm/lib/Target/PTX/PTXRegisterInfo.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 3 | 2019-02-12T04:14:39.000Z | 2020-11-05T08:46:20.000Z | llvm/lib/Target/PTX/PTXRegisterInfo.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-02-22T09:59:21.000Z | 2020-02-22T09:59:21.000Z | llvm/lib/Target/PTX/PTXRegisterInfo.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-05-15T12:53:42.000Z | 2020-05-15T12:53:42.000Z | //===-- PTXRegisterInfo.cpp - PTX Register Information --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 35.384615 | 80 | 0.588406 |
8e05cb6da00cf835ee44dbc77bfd1da9a6871ed1 | 1,217 | cpp | C++ | L9/17_JavaCpp_/03ObjectsInMemory/c_HeapInstance/1/FooBar.cpp | DeirdreHegarty/advanced_OOP | e62d8f2274422d3da9064e2576e2adc414eccee1 | [
"MIT"
] | null | null | null | L9/17_JavaCpp_/03ObjectsInMemory/c_HeapInstance/1/FooBar.cpp | DeirdreHegarty/advanced_OOP | e62d8f2274422d3da9064e2576e2adc414eccee1 | [
"MIT"
] | null | null | null | L9/17_JavaCpp_/03ObjectsInMemory/c_HeapInstance/1/FooBar.cpp | DeirdreHegarty/advanced_OOP | e62d8f2274422d3da9064e2576e2adc414eccee1 | [
"MIT"
] | null | null | null | /*
//Header file declarations reproduced here
// for quick access
//FooBar.h
class Bar{
public:
void doBarThing();
};
class Foo
{ //The default-access specifier is private in C++
Bar *aBar; //hence 'aBar' pointer is private
public:
virtual ~Foo();
void cre... | 23.403846 | 62 | 0.579293 |
8e07241468fe38fce70be538f51e493f0382cfe9 | 17,809 | cpp | C++ | gmsh/Geo/SOrientedBoundingBox.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | 4 | 2019-05-06T09:35:08.000Z | 2021-05-14T16:26:45.000Z | gmsh/Geo/SOrientedBoundingBox.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | null | null | null | gmsh/Geo/SOrientedBoundingBox.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | 1 | 2019-06-28T09:23:43.000Z | 2019-06-28T09:23:43.000Z | // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
//
// Contributor(s):
// Bastien Gorissen
//
#include <algorithm>
#include <cmath>
#include <time.h>
#include "GmshConfig.h... | 30.758204 | 80 | 0.563479 |
8e07633464a0d666535aa331121e742093136dfd | 21,396 | cc | C++ | PhysicsTools/Heppy/src/Davismt2.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | PhysicsTools/Heppy/src/Davismt2.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | PhysicsTools/Heppy/src/Davismt2.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | // #ifndef MT2_BISECT_C
// #define MT2_BISECT_C
/***********************************************************************/
/* */
/* Finding mt2 by Bisection */
/* ... | 31.008696 | 171 | 0.509348 |
8e07bad7c48cced67ed1bb63bfa534f09f6a4132 | 1,964 | hpp | C++ | dev/Basic/long/database/entity/DevelopmentPlan.hpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/Basic/long/database/entity/DevelopmentPlan.hpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/Basic/long/database/entity/DevelopmentPlan.hpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | /*
* DevelopmentPlan.hpp
*
* Created on: Dec 22, 2015
* Author: gishara
*/
#pragma once
#include "Common.hpp"
#include "Types.hpp"
namespace sim_mob {
namespace long_term {
class DevelopmentPlan {
public:
DevelopmentPlan(BigSerial fmParcelId = INVALID_ID, BigSerial templa... | 31.677419 | 246 | 0.586049 |
8e088785a57c9cdd56c5d1336d4b561c74e6883d | 5,064 | cxx | C++ | TOF/TOFbase/AliTOFRawMap.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TOF/TOFbase/AliTOFRawMap.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TOF/TOFbase/AliTOFRawMap.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 28.772727 | 76 | 0.463073 |
8e08daffcf5d0d0d495089a41cb8900f3d15d331 | 650 | cpp | C++ | Chapter_13/Figures/Fig_13_8.cpp | mtrdazzo/Deitel | 4efc02147a1768125d2e27d7d68f664c4628cdc5 | [
"MIT"
] | 1 | 2021-09-07T19:23:24.000Z | 2021-09-07T19:23:24.000Z | Chapter_13/Figures/Fig_13_8.cpp | mtrdazzo/Deitel | 4efc02147a1768125d2e27d7d68f664c4628cdc5 | [
"MIT"
] | null | null | null | Chapter_13/Figures/Fig_13_8.cpp | mtrdazzo/Deitel | 4efc02147a1768125d2e27d7d68f664c4628cdc5 | [
"MIT"
] | null | null | null | /**
* @file Fig_13_8.cpp
* @author Matthew J Randazzo (mtrdazzo@gmail.com)
* @brief width member function of classes istream and ostream
* @version 0.1
* @date 2020-07-19
*
* @copyright Copyright (c) 2020
*
*/
#include <iostream>
int main() {
int widthValue{4};
char sentence[10];
std::cout <<... | 21.666667 | 67 | 0.615385 |
8e09c3050af11576e808b35c4254aa250b22992a | 3,437 | cpp | C++ | Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | Trees/BinaryTree/foldablebinarytree/foldablebinarytree.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
/* You would want to remove below 3 lines if your compiler
supports bool, true and false */
#define bool int
#define true 1
#define false 0
/* A binary tree node has data, pointer to left child
and a pointer to right child */
struct node
{
int data;
struct node* left... | 21.347826 | 81 | 0.551644 |
8e0a7e06d8dc19dff9e3ddc30d095372b9ce0452 | 26 | cpp | C++ | tests/environment.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | tests/environment.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | tests/environment.cpp | TheQuantumPhysicist/HttpRpcRelay | 810d9ed8907b4c769faa432ba7f829445b8d6f9f | [
"MIT"
] | null | null | null | #include "environment.h"
| 13 | 25 | 0.730769 |
8e0b642cd53e9e136944340e6f8368a9ae096647 | 3,381 | cpp | C++ | TAO/tests/Bug_3748_Regression/Test_Protocols_Hooks.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/tests/Bug_3748_Regression/Test_Protocols_Hooks.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/tests/Bug_3748_Regression/Test_Protocols_Hooks.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // -*- C++ -*-
//
// $Id: Test_Protocols_Hooks.cpp 91648 2010-09-08 13:25:56Z johnnyw $
//
#include "Test_Protocols_Hooks.h"
#include "TestC.h"
Test_Protocols_Hooks::Test_Protocols_Hooks (void)
: failure_count_ (0)
{
}
Test_Protocols_Hooks::~Test_Protocols_Hooks (void)
{
}
void
Test_Protocols_Hooks::init_hooks (... | 18.080214 | 73 | 0.696539 |
8e0b9590dd090921dfd51bf8831426402488f77c | 1,115 | hpp | C++ | src/volt/gpu/d3d12/d3d12.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/gpu/d3d12/d3d12.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | src/volt/gpu/d3d12/d3d12.hpp | voltengine/volt | fbefe2e0a8e461b6130ffe926870c4848bd6e7d1 | [
"MIT"
] | null | null | null | #pragma once
#include <volt/gpu/enums.hpp>
namespace volt::gpu::d3d12 {
extern std::unordered_map<HRESULT, std::string> result_messages;
extern std::unordered_map<command_types, D3D12_COMMAND_LIST_TYPE> command_list_types;
template<command_types T>
constexpr D3D12_COMMAND_LIST_TYPE command_list_type;
template<>
co... | 30.135135 | 114 | 0.821525 |
8e0f910636ef878151394c403e6a3de3879d1de8 | 401 | cpp | C++ | exemplos/5_Repeticao/soma-ate-0.cpp | danielgs83/cpe-unb | f958d2a4899a8d4d5c1465637d1d1b10610661e4 | [
"CC0-1.0"
] | 1 | 2022-02-04T17:16:50.000Z | 2022-02-04T17:16:50.000Z | exemplos/5_Repeticao/soma-ate-0.cpp | danielgs83/cpe-unb | f958d2a4899a8d4d5c1465637d1d1b10610661e4 | [
"CC0-1.0"
] | null | null | null | exemplos/5_Repeticao/soma-ate-0.cpp | danielgs83/cpe-unb | f958d2a4899a8d4d5c1465637d1d1b10610661e4 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int soma, parcela;
soma = 0;
cout << "numero a ser somado (0 para sair): ";
cin >> parcela; //leitura do primeiro numero
while (parcela != 0) {
soma += parcela; //acumula
cout << "numero a ser somado (0 para sair): ";
cin >> parcela; //l... | 17.434783 | 50 | 0.586035 |
8e0ffef18e846b6a08b69ae0c7a5c108185c7c95 | 2,027 | cpp | C++ | cpp/backtracking/The_knights_tour_problem.cpp | banerjeesoumya15/AlgoBook | 79fcbd0631a6f1fbe24a8d3627550d1ec9ad605c | [
"MIT"
] | 191 | 2020-09-28T10:00:20.000Z | 2022-03-06T14:36:55.000Z | cpp/backtracking/The_knights_tour_problem.cpp | banerjeesoumya15/AlgoBook | 79fcbd0631a6f1fbe24a8d3627550d1ec9ad605c | [
"MIT"
] | 210 | 2020-09-28T10:06:36.000Z | 2022-03-05T03:44:24.000Z | cpp/backtracking/The_knights_tour_problem.cpp | banerjeesoumya15/AlgoBook | 79fcbd0631a6f1fbe24a8d3627550d1ec9ad605c | [
"MIT"
] | 320 | 2020-09-28T09:56:14.000Z | 2022-02-12T16:45:57.000Z | #include <bits/stdc++.h>
using namespace std;
//a function to check whether a grid is valid or not
bool isvalid(int x, int y, int **tour, int n){
return(x>=0 && y>=0 && x<n && y<n && tour[x][y]==-1);
}
//function to solve the tour
bool solve_knighttour(int x, int y, int moves,int n, int **tour, int nxt_x[8], int... | 27.767123 | 93 | 0.510607 |
8e11f514fbf9d3a021bc436e68abee51dd29ae11 | 3,955 | cpp | C++ | tests/TestWord.cpp | SergioRosello/OSO | bbd3c6a95b1c2388732babc6a540c07034cce026 | [
"MIT"
] | 1 | 2019-10-14T07:25:32.000Z | 2019-10-14T07:25:32.000Z | tests/TestWord.cpp | SergioRosello/OSO | bbd3c6a95b1c2388732babc6a540c07034cce026 | [
"MIT"
] | null | null | null | tests/TestWord.cpp | SergioRosello/OSO | bbd3c6a95b1c2388732babc6a540c07034cce026 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "../include/Selection.h"
namespace OSO {
// The fixture for testing class Foo.
class WordTest : public ::testing::Test {
protected:
// You can remove any or all of the following functions if its body
// is empty.
WordTest() {
// You can do set-up wo... | 34.692982 | 84 | 0.672566 |
8e1250f35886ace8a9135303cfb8532ee7dde5fb | 4,415 | cpp | C++ | src/test/git/TestGitClientImpl.cpp | TNG/mustard-cli | aa8db4e923271546b46a1f9a71778b3bed1efe3a | [
"Apache-2.0"
] | 7 | 2019-04-12T07:13:32.000Z | 2021-09-22T20:53:44.000Z | src/test/git/TestGitClientImpl.cpp | TNG/mustard-cli | aa8db4e923271546b46a1f9a71778b3bed1efe3a | [
"Apache-2.0"
] | 2 | 2020-07-21T05:01:13.000Z | 2020-08-14T15:38:17.000Z | src/test/git/TestGitClientImpl.cpp | TNG/mustard-cli | aa8db4e923271546b46a1f9a71778b3bed1efe3a | [
"Apache-2.0"
] | 1 | 2020-07-21T05:03:09.000Z | 2020-07-21T05:03:09.000Z | #include <gtest/gtest.h>
#include <Depend.h>
#include "../../main/git/GitClientImpl.h"
#include "GitTestEnvironment.h"
using namespace testing;
class TestGitClientImpl: public Test
{
public:
GitClientImpl gitClient;
};
TEST_F ( TestGitClientImpl, Unit_GetHeadCommit )
{
GitTestEnvironment testEnv;
testE... | 34.76378 | 86 | 0.671574 |
8e162cb1124cae1e7130e2f70a1789d04925c119 | 448 | cc | C++ | example/linux/flutter/generated_plugin_registrant.cc | jainris/flutter_audio_desktop | 63d5823facbab34358875c6722874f950eb10393 | [
"MIT"
] | 50 | 2020-09-13T12:13:40.000Z | 2022-02-26T03:36:45.000Z | example/linux/flutter/generated_plugin_registrant.cc | jainris/flutter_audio_desktop | 63d5823facbab34358875c6722874f950eb10393 | [
"MIT"
] | 28 | 2020-09-23T05:29:26.000Z | 2021-03-17T11:21:11.000Z | example/linux/flutter/generated_plugin_registrant.cc | jainris/flutter_audio_desktop | 63d5823facbab34358875c6722874f950eb10393 | [
"MIT"
] | 16 | 2020-09-14T07:12:29.000Z | 2021-10-13T23:52:12.000Z | //
// Generated file. Do not edit.
//
#include "generated_plugin_registrant.h"
#include <flutter_audio_desktop/flutter_audio_desktop_plugin.h>
void fl_register_plugins(FlPluginRegistry* registry) {
g_autoptr(FlPluginRegistrar) flutter_audio_desktop_registrar =
fl_plugin_registry_get_registrar_for_plugin(reg... | 32 | 89 | 0.841518 |
8e1788ea9d52b0333d00766225789530cdb08ec7 | 19,774 | hpp | C++ | library/grammar/string.hpp | grandquista/chimera | 2a5326afc866d878517f2b0f5df2bf6cba20f4eb | [
"MIT"
] | 2 | 2017-12-14T07:05:06.000Z | 2021-02-07T03:31:27.000Z | library/grammar/string.hpp | grandquista/chimera | 2a5326afc866d878517f2b0f5df2bf6cba20f4eb | [
"MIT"
] | 149 | 2018-08-06T13:14:46.000Z | 2019-11-19T02:00:56.000Z | library/grammar/string.hpp | grandquista/chimera | 2a5326afc866d878517f2b0f5df2bf6cba20f4eb | [
"MIT"
] | null | null | null | // Copyright (c) 2017 Adam Grandquist <grandquista@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
// in the Software without restriction, including without limitation the rights
// to use, cop... | 40.02834 | 80 | 0.51148 |
8e19451dbab2934f8cf55793fc1999021ad77ba2 | 23,113 | cxx | C++ | TUHKMgen/AliGenUHKM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TUHKMgen/AliGenUHKM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TUHKMgen/AliGenUHKM.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /////////////////////////////////////////////////////////////////////////////
// Generator using UHKM 3.0 as an external generator. //
// ( only the HYDJET++ part is implemented for a moment) //
// temporary link: //
// http:... | 35.287023 | 109 | 0.637304 |
8e19f72fb5aa9c9e2c6dcc6fd006fdb906053580 | 321 | cpp | C++ | CodeChef/Begginer-Problems/FACTRL2.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 7 | 2018-11-08T11:39:27.000Z | 2020-09-10T17:50:57.000Z | CodeChef/Begginer-Problems/FACTRL2.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | null | null | null | CodeChef/Begginer-Problems/FACTRL2.cpp | annukamat/My-Competitive-Journey | adb13a5723483cde13e5f3859b3a7ad840b86c97 | [
"MIT"
] | 2 | 2019-09-16T14:34:03.000Z | 2019-10-12T19:24:00.000Z | #include <iostream>
#include <vector>
using namespace std;
long long int fact(int n){
if(n==1 || n==0){
return 1;
}else{
return n*fact(n-1);
}
}
int main(){
int t,n;
cin>>t;
vector<int>a;
while(t--){
cin>>n;
cout<<fact(n)<<"\n";
}
return 0;
... | 13.956522 | 28 | 0.457944 |
8e1b77a1b41375bf2e83aaaa75576ef7a55dea34 | 16,114 | cc | C++ | LuaKitProject/src/Projects/common/common/business_client_thread_impl.cc | andrewvmail/luakit | edbadd7824bd17b6a430d8323f255d404498c27a | [
"MIT"
] | 321 | 2018-06-17T03:52:46.000Z | 2022-03-18T02:34:52.000Z | LuaKitProject/src/Projects/common/common/business_client_thread_impl.cc | andrewvmail/luakit | edbadd7824bd17b6a430d8323f255d404498c27a | [
"MIT"
] | 19 | 2018-06-26T10:37:45.000Z | 2020-12-09T03:16:45.000Z | LuaKitProject/src/Projects/common/common/business_client_thread_impl.cc | andrewvmail/luakit | edbadd7824bd17b6a430d8323f255d404498c27a | [
"MIT"
] | 58 | 2018-06-21T10:43:03.000Z | 2022-03-29T12:42:11.000Z | // Copyright (c) 2012 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 "common/business_client_thread_impl.h"
#include <string>
#include "base/atomicops.h"
#include "base/bind.h"
#include "base/compiler_specifi... | 34.139831 | 96 | 0.707459 |
8e1f39860ad53ee845c9229cd700b5083a830a9c | 651 | cpp | C++ | Online Judges/Huxley/93GatoNoChapeu.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 3 | 2018-12-18T13:39:42.000Z | 2021-06-23T18:05:18.000Z | Online Judges/Huxley/93GatoNoChapeu.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 1 | 2018-11-02T21:32:40.000Z | 2018-11-02T22:47:12.000Z | Online Judges/Huxley/93GatoNoChapeu.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 6 | 2018-10-27T14:07:52.000Z | 2019-11-14T13:49:29.000Z | #include <bits/stdc++.h>
#define lli long long int
int main()
{
lli height, working;
while (scanf("%lld %lld", &height, &working) && !(!height && !working))
{
for (lli n = 1, c = 1, cc = 1, h = height, pile = height; n < height;)
{
// printf("%lld %lld %lld\n", n, c, h);
if (h == 1) { printf(... | 24.111111 | 74 | 0.428571 |
8e20ae742e2e67402b240670ebd6aeed26f4edb8 | 3,840 | hpp | C++ | Demos/Tests/TestBase/Camera.hpp | DhirajWishal/Flint | 0750bd515de0b5cc3d23f7c2282c50ca483dff24 | [
"Apache-2.0"
] | null | null | null | Demos/Tests/TestBase/Camera.hpp | DhirajWishal/Flint | 0750bd515de0b5cc3d23f7c2282c50ca483dff24 | [
"Apache-2.0"
] | 1 | 2021-10-30T11:19:53.000Z | 2021-10-30T11:19:54.000Z | Demos/Tests/TestBase/Camera.hpp | DhirajWishal/Flint | 0750bd515de0b5cc3d23f7c2282c50ca483dff24 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Dhiraj Wishal
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include "GraphicsCore/Device.hpp"
#include <glm/glm.hpp>
namespace Flint
{
/**
* Flint editor camera matrix.
*/
struct CameraMatrix
{
CameraMatrix(const glm::mat4& view, const glm::mat4& projection) : mViewMatrix(view), mPr... | 20.645161 | 120 | 0.622396 |
8e22e8d5c0651e4c65a88720de2083de7edd2054 | 7,199 | cc | C++ | systems/controllers/pid_controlled_system.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 2 | 2021-02-25T02:01:02.000Z | 2021-03-17T04:52:04.000Z | systems/controllers/pid_controlled_system.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | null | null | null | systems/controllers/pid_controlled_system.cc | RobotLocomotion/drake-python3.7 | ae397a4c6985262d23e9675b9bf3927c08d027f5 | [
"BSD-3-Clause"
] | 1 | 2021-06-13T12:05:39.000Z | 2021-06-13T12:05:39.000Z | #include "drake/systems/controllers/pid_controlled_system.h"
#include "drake/common/default_scalars.h"
#include "drake/common/drake_assert.h"
#include "drake/systems/primitives/saturation.h"
namespace drake {
namespace systems {
namespace controllers {
template <typename T>
PidControlledSystem<T>::PidControlledSyste... | 42.347059 | 80 | 0.711488 |
8e27b8f69bd4c6ef07d4ebdc6d55e6ba669c8e09 | 2,382 | cpp | C++ | Day12/12.cpp | Legolaszstudio/aoc2021 | dc2e341738e11a55232ae0f37aa0cc5625d8d831 | [
"BSD-3-Clause"
] | null | null | null | Day12/12.cpp | Legolaszstudio/aoc2021 | dc2e341738e11a55232ae0f37aa0cc5625d8d831 | [
"BSD-3-Clause"
] | null | null | null | Day12/12.cpp | Legolaszstudio/aoc2021 | dc2e341738e11a55232ae0f37aa0cc5625d8d831 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <fstream>
#include <sstream>
#include <deque>
#include <vector>
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <set>
struct Graph {
std::unordered_map<std::string, std::vector<std::string>> tree;
//WARNING It is not the best option to store the entire solutions b... | 30.538462 | 136 | 0.669186 |
8e2ce4cd297c21145788a920086b875e6bc37617 | 12,262 | cpp | C++ | groups/bal/balb/balb_leakybucket.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | 1 | 2022-01-23T11:31:12.000Z | 2022-01-23T11:31:12.000Z | groups/bal/balb/balb_leakybucket.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | null | null | null | groups/bal/balb/balb_leakybucket.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | null | null | null | // balb_leakybucket.cpp -*-C++-*-
#include <balb_leakybucket.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(balb_leakybucket.cpp,"$Id$ $CSID$")
#include <bsl_c_math.h>
namespace BloombergLP {
namespace {
bsls::Types::Uint64 calculateNumberOfUnitsToDrain(
... | 36.494048 | 79 | 0.576333 |
8e2efa1781bfb88bc7793216fa25a00987bde79b | 681 | cpp | C++ | framework/source/metadata_backward_compatibility.cpp | xrEngine512/interop | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | null | null | null | framework/source/metadata_backward_compatibility.cpp | xrEngine512/interop | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | 4 | 2017-05-31T12:34:10.000Z | 2018-10-13T18:53:03.000Z | framework/source/metadata_backward_compatibility.cpp | xrEngine512/MosaicFramework | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | 1 | 2020-04-23T14:09:11.000Z | 2020-04-23T14:09:11.000Z | //
// Created by islam on 14.01.18.
//
#include "metadata_backward_compatibility.h"
#include "exceptions.h"
namespace interop {
module_metadata_t convert_metadata_to_current(const version_t & version, const void * metadata)
{
/** version of module's interop ABI matches version of node **/
if (version == inter... | 32.428571 | 100 | 0.671072 |
8e3ed45500eab3fc875fa1d2d2cfc349273f1962 | 14,036 | hpp | C++ | Svc/UdpReceiver/test/ut/Handcode/GTestBase.hpp | SSteve/fprime | 12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8 | [
"Apache-2.0"
] | 5 | 2019-10-22T03:41:02.000Z | 2022-01-16T12:48:31.000Z | Svc/UdpReceiver/test/ut/Handcode/GTestBase.hpp | SSteve/fprime | 12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8 | [
"Apache-2.0"
] | 42 | 2021-06-10T23:31:10.000Z | 2021-06-25T00:35:31.000Z | Svc/UdpReceiver/test/ut/Handcode/GTestBase.hpp | SSteve/fprime | 12c478bd79c2c4ba2d9f9e634e47f8b6557c54a8 | [
"Apache-2.0"
] | 3 | 2020-09-05T18:17:21.000Z | 2020-11-15T04:06:24.000Z | // ======================================================================
// \title UdpReceiver/test/ut/GTestBase.hpp
// \author Auto-generated
// \brief hpp file for UdpReceiver component Google Test harness base class
//
// \copyright
// Copyright 2009-2015, by the California Institute of Technology.
// ALL RIGHTS ... | 39.76204 | 100 | 0.558421 |
8e3f6cf476c45f2b7a7bef65b062dc198e4b0edc | 13,656 | hpp | C++ | server/http_context.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | 7 | 2021-08-19T01:11:21.000Z | 2021-08-31T15:25:51.000Z | server/http_context.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | server/http_context.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | #pragma once
#include <filesystem>
#include <fstream>
#include <charconv>
#include "core/named_tuple.hpp"
#include "core/traits.hpp"
#include "date_manager.hpp"
#include "external/json.hpp"
#include "http/http_common.hpp"
#include "http/query_parser.hpp"
#include "http_request.hpp"
#include "http_response.hpp"
#includ... | 36.126984 | 89 | 0.603691 |
8e3fc245d1db558c8a00cf72a0a4d0f26e5e772f | 669 | cc | C++ | test/collections/btree_map.cc | Alexhuszagh/funxx | 9f6c1fae92d96a84282fc62be272f4dc1e1dba9b | [
"MIT",
"BSD-3-Clause"
] | 1 | 2017-07-21T22:58:38.000Z | 2017-07-21T22:58:38.000Z | test/collections/btree_map.cc | Alexhuszagh/funxx | 9f6c1fae92d96a84282fc62be272f4dc1e1dba9b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | test/collections/btree_map.cc | Alexhuszagh/funxx | 9f6c1fae92d96a84282fc62be272f4dc1e1dba9b | [
"MIT",
"BSD-3-Clause"
] | null | null | null | // :copyright: (c) 2017 Alex Huszagh.
// :license: MIT, see LICENSE.md for more details.
/*
* \addtogroup Tests
* \brief B-tree map unittests.
*/
#include <pycpp/collections/btree_map.h>
#include <gtest/gtest.h>
PYCPP_USING_NAMESPACE
// TESTS
// -----
TEST(btree_map, constructor_null)
{
using map = btre... | 20.272727 | 51 | 0.61136 |
8e44e5ce8037c084d185b31b2dfa3424701da62a | 2,905 | cpp | C++ | 2020/04.cpp | mdelorme/advent_of_code | 47142d501055fc0d36989db9b189be7e6756d779 | [
"Unlicense"
] | null | null | null | 2020/04.cpp | mdelorme/advent_of_code | 47142d501055fc0d36989db9b189be7e6756d779 | [
"Unlicense"
] | null | null | null | 2020/04.cpp | mdelorme/advent_of_code | 47142d501055fc0d36989db9b189be7e6756d779 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
std::vector<std::string> passports;
bool is_valid(std::string str) {
str = str.substr(1);
std::istringstream iff(str);
bool valid=true;
try {
for (std::string s; iff >> s;) {
size_t pos = s.find(":");
std::string key = s.substr(0, pos);
std::string value = s.s... | 22.346154 | 96 | 0.483305 |
8e47d105a11187712c0cb262db1c1cccb0d83f5f | 7,731 | cpp | C++ | modules/build_seqset/correct_reads_test.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 16 | 2021-07-14T23:32:31.000Z | 2022-03-24T16:25:15.000Z | modules/build_seqset/correct_reads_test.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-20T20:39:47.000Z | 2021-09-16T20:57:59.000Z | modules/build_seqset/correct_reads_test.cpp | spiralgenetics/biograph | 33c78278ce673e885f38435384f9578bfbf9cdb8 | [
"BSD-2-Clause"
] | 9 | 2021-07-15T19:38:35.000Z | 2022-01-31T19:24:56.000Z | #include "modules/build_seqset/correct_reads.h"
#include "modules/bio_base/dna_testutil.h"
#include "modules/build_seqset/part_repo.h"
#include "modules/io/config.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace {
using namespace testing;
using namespace build_seqset;
using namespace dna_testutil;
} ... | 34.513393 | 96 | 0.608071 |
8e4db243cb4788f9aafac665ea049faaf53059e3 | 1,105 | cpp | C++ | Actividad2_recibe/ventanaarchivoexistente.cpp | adricatena/I2-puertoSerie | cb9efbde2bf30e517649e80a9ebb585449194287 | [
"MIT"
] | null | null | null | Actividad2_recibe/ventanaarchivoexistente.cpp | adricatena/I2-puertoSerie | cb9efbde2bf30e517649e80a9ebb585449194287 | [
"MIT"
] | null | null | null | Actividad2_recibe/ventanaarchivoexistente.cpp | adricatena/I2-puertoSerie | cb9efbde2bf30e517649e80a9ebb585449194287 | [
"MIT"
] | null | null | null | #include "ventanaarchivoexistente.h"
#include "ui_ventanaarchivoexistente.h"
VentanaArchivoExistente::VentanaArchivoExistente(QWidget *parent) :
QDialog(parent),
ui(new Ui::VentanaArchivoExistente)
{
ui->setupUi(this);
configuracion = new QSettings("Informatica II", "Actividad 2", this);
}
... | 26.95122 | 112 | 0.640724 |
8e4f9a1fc9b1d1a49e96f9ef39fff5f0ef06b3c1 | 1,791 | cpp | C++ | dev/Gems/EMotionFX/Code/Tests/UI/LY-93621.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/EMotionFX/Code/Tests/UI/LY-93621.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/EMotionFX/Code/Tests/UI/LY-93621.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 54.272727 | 169 | 0.646008 |
8e53f4f2c6c82933b403124f1fac80b47f2c14b7 | 5,556 | hpp | C++ | include/multi_trie_index.hpp | kampersanda/frechet_simsearch | c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c | [
"MIT"
] | 7 | 2019-10-07T08:48:44.000Z | 2022-03-23T02:39:45.000Z | include/multi_trie_index.hpp | kampersanda/frechet_simsearch | c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c | [
"MIT"
] | null | null | null | include/multi_trie_index.hpp | kampersanda/frechet_simsearch | c91e0b12f0acf5f8a563ec16d71bf76bc0dc169c | [
"MIT"
] | 1 | 2019-12-23T16:33:01.000Z | 2019-12-23T16:33:01.000Z | #pragma once
#include "trit_array_trie.hpp"
#include "vcode_array.hpp"
namespace frechet_simsearch {
template <class Point, uint32_t Length>
class MultiTrieIndex {
public:
using point_type = Point;
using vcode_trait_type = VCodeTraits<Length>;
using vint_type = typename vcode_trait_type::vint_type;
... | 33.46988 | 114 | 0.578294 |
8e56d9e614f40f44f8657bdba23674583775c8bd | 2,620 | cpp | C++ | src/frame_transformation.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | null | null | null | src/frame_transformation.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | 3 | 2021-10-16T05:46:37.000Z | 2021-10-18T22:16:20.000Z | src/frame_transformation.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | 2 | 2021-10-06T02:52:31.000Z | 2021-10-06T05:16:28.000Z | /**
* MIT License
*
* Copyright (c) 2021 Anubhav Paras, Sakshi Kakde, Siddharth Telang
*
* 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 limitati... | 35.890411 | 81 | 0.681679 |
8e5ae16a99a4d082dbe5b8f34c5a4c69add57ac0 | 2,282 | cc | C++ | conf_crawler/url_dedup/dedup_config.cc | WinterW/crawler_cpp | e0c8dba77233005b1ab13731d1cbcce274b70778 | [
"Apache-2.0"
] | null | null | null | conf_crawler/url_dedup/dedup_config.cc | WinterW/crawler_cpp | e0c8dba77233005b1ab13731d1cbcce274b70778 | [
"Apache-2.0"
] | null | null | null | conf_crawler/url_dedup/dedup_config.cc | WinterW/crawler_cpp | e0c8dba77233005b1ab13731d1cbcce274b70778 | [
"Apache-2.0"
] | 2 | 2020-09-12T13:50:38.000Z | 2020-09-16T15:55:14.000Z | /**
* @Copyright 2011 GanJi Inc.
* @file ganji/crawler/conf_crawler/url_dedup/dedup_config.cc
* @namespace ganji::crawler::conf_crawler::dedup
* @version 1.0
* @author lisizhong
* @date 2011-08-01
*
* 改动程序后, 请使用tools/cpplint/cpplint.py 检查代码是否符合编码规范!
* 遵循的编码规范请参考: http://google-styleguide.googlecode.com/... | 31.694444 | 94 | 0.689308 |
8e5b90c24846d9cb3ce2bc6863a6f6474e160be2 | 3,230 | cpp | C++ | GTraining/SortedArrayIterator.cpp | tzaffi/cpp | 43d99e70d8fa712f90ea0f6147774e4e0f2b11da | [
"MIT"
] | null | null | null | GTraining/SortedArrayIterator.cpp | tzaffi/cpp | 43d99e70d8fa712f90ea0f6147774e4e0f2b11da | [
"MIT"
] | null | null | null | GTraining/SortedArrayIterator.cpp | tzaffi/cpp | 43d99e70d8fa712f90ea0f6147774e4e0f2b11da | [
"MIT"
] | null | null | null | //
// Created by zeph on 12/4/16.
//
#include <vector>
/**
* Given two sorted Vectors, use the merge sort iteration method to iterate through the arrays
* and reduce from the union by applying the choice() function. For example, if:
* o choice = insertLeft() - always pick the left param (useful for union)
* o... | 39.390244 | 116 | 0.588854 |
8e5c5cf73edd2031dd4c597f8ce890c017208f5d | 3,459 | hh | C++ | include/tchecker/system/intvar.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 7 | 2019-08-12T12:22:07.000Z | 2021-11-18T01:48:27.000Z | include/tchecker/system/intvar.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 40 | 2019-07-03T04:31:19.000Z | 2022-03-31T03:40:43.000Z | include/tchecker/system/intvar.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 8 | 2019-07-04T06:40:49.000Z | 2021-12-03T15:51:50.000Z | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_SYSTEM_INTVAR_HH
#define TCHECKER_SYSTEM_INTVAR_HH
#include <limits>
#include <stdexcept>
#include <string>
#include <vector>
#include "tchecker/basictypes.hh"
#include "tchecker/syst... | 31.162162 | 119 | 0.713501 |
8e5eff5c63cdb00e353c2626a812851af7f7b89e | 5,673 | hpp | C++ | modules/gate_ops/bit_group/bit_group.hpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 29 | 2020-04-13T04:40:35.000Z | 2021-12-17T11:21:35.000Z | modules/gate_ops/bit_group/bit_group.hpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 6 | 2020-03-12T17:40:00.000Z | 2021-01-20T12:15:08.000Z | modules/gate_ops/bit_group/bit_group.hpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 9 | 2020-09-28T05:00:30.000Z | 2022-03-04T02:11:49.000Z | /**
* @file bit_group.hpp
* @author Lee J. O'Riordan (lee.oriordan@ichec.ie)
* @brief Implements grouping of bits to LSB side of register
* @version 0.1
* @date 2019-04-02
* @detailed This header file introduces routines for bit-wise shifting of set bits to the side of a register (ie |01010> -> |00011>).
* Note... | 47.275 | 150 | 0.609907 |
8e6004c4560112cb7ade852df3b98d5e54497a23 | 12,526 | cpp | C++ | sift_1b.cpp | dbaranchuk/hnsw | 2bed1138a31eeb65ec705c92fb03cd2cdae6dece | [
"Apache-2.0"
] | 2 | 2017-12-17T14:18:25.000Z | 2020-01-15T09:15:43.000Z | sift_1b.cpp | dbaranchuk/hnsw | 2bed1138a31eeb65ec705c92fb03cd2cdae6dece | [
"Apache-2.0"
] | null | null | null | sift_1b.cpp | dbaranchuk/hnsw | 2bed1138a31eeb65ec705c92fb03cd2cdae6dece | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#include <queue>
#include <chrono>
#include "hnswlib.h"
#include <map>
#include <unordered_set>
using namespace std;
using namespace hnswlib;
class StopW {
std::chrono::steady_clock::time_point time_begin;
public:
StopW() {
time_begin = ... | 34.13079 | 151 | 0.586779 |
8e60171a198c91c1f18eba310410edbff7d07090 | 4,895 | cpp | C++ | ngraph/frontend/onnx_import/src/utils/onnx_internal.cpp | kenkoyanagi/openvino | 864b3ba62fb86e685c847ca84016043cdea870c5 | [
"Apache-2.0"
] | 1 | 2021-04-22T07:28:03.000Z | 2021-04-22T07:28:03.000Z | ngraph/frontend/onnx_import/src/utils/onnx_internal.cpp | kenkoyanagi/openvino | 864b3ba62fb86e685c847ca84016043cdea870c5 | [
"Apache-2.0"
] | 105 | 2020-06-04T00:23:29.000Z | 2022-02-21T13:04:33.000Z | ngraph/frontend/onnx/onnx_import/src/utils/onnx_internal.cpp | mpapaj/openvino | 37b46de1643a2ba6c3b6a076f81d0a47115ede7e | [
"Apache-2.0"
] | 3 | 2021-04-25T06:52:41.000Z | 2021-05-07T02:01:44.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <onnx/onnx_pb.h>
#include "core/graph.hpp"
#include "core/model.hpp"
#include "core/null_node.hpp"
#include "core/transform.hpp"
#include "onnx_import/onnx_framework_node.hpp"
#include "onnx_import/utils/onnx_internal.hpp"... | 43.705357 | 98 | 0.489275 |
769fc25c2db959e7739f02dfbd9b42abdccf62af | 1,315 | hh | C++ | src/motor/introspect/api/motor/introspect/node/reference.hh | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/introspect/api/motor/introspect/node/reference.hh | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/introspect/api/motor/introspect/node/reference.hh | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | /* Motor <motor.devel@gmail.com>
see LICENSE for detail */
#ifndef MOTOR_INTROSPECT_NODE_REFERENCE_HH_
#define MOTOR_INTROSPECT_NODE_REFERENCE_HH_
/**************************************************************************************************/
#include <motor/introspect/stdafx.h>
#include <motor/introspect/node... | 29.222222 | 100 | 0.591635 |
76a412372c85c9f49be328ce89adba110ab8bef5 | 56,487 | cpp | C++ | src/test/analysis.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 6 | 2019-03-18T00:22:43.000Z | 2022-03-16T19:21:21.000Z | src/test/analysis.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 14 | 2019-03-18T03:30:53.000Z | 2020-10-08T15:32:45.000Z | src/test/analysis.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 2 | 2021-10-05T17:44:29.000Z | 2021-11-04T20:45:01.000Z | /**
* @file analysis.cpp
* @author A. M. Kazachkov
* @date 2019-03-04
*/
#include "analysis.hpp"
// COIN-OR
#include <OsiSolverInterface.hpp>
#include <OsiCuts.hpp>
#include <CglGMI.hpp>
// Project files
#include "BBHelper.hpp"
#include "CglVPC.hpp"
#include "CutHelper.hpp"
#include "Disjunction.hpp"
#include "Pa... | 45.849838 | 217 | 0.652876 |
76a4ece61a7d68d10de049ef4a74ce6bd9f37d37 | 1,494 | cpp | C++ | multiview/contrib/mosya_conics/src/IsCrossingWindow.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 5 | 2021-09-03T23:12:08.000Z | 2022-03-04T21:43:32.000Z | multiview/contrib/mosya_conics/src/IsCrossingWindow.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 3 | 2021-09-08T02:57:46.000Z | 2022-02-26T05:33:02.000Z | multiview/contrib/mosya_conics/src/IsCrossingWindow.cpp | prcvlabs/multiview | 1a03e14855292967ffb0c0ec7fff855c5abbc9d2 | [
"Apache-2.0"
] | 2 | 2021-09-26T03:14:40.000Z | 2022-01-26T06:42:52.000Z |
namespace mosya {
int IsCrossingWindow(M6x1 A, reals R)
/*
*/
{
reals RR,F0,x,y,det,Two=2.;
RR = R*R;
F0 = (A(0) + A(1) + A(1) + A(2))*RR + Two*(A(3) + A(4))*R + A(5);
if (((A(0) - A(1) - A(1) + A(2))*RR + Two*(A(3) - A(4))*R + A(5))*F0 <= 0) return(1);
if (((A(0) - A(1) - A(1) + A(2))*RR ... | 35.571429 | 132 | 0.390897 |
76a6fbb86df683ddd90b26466743ee20b8bee87b | 1,247 | cpp | C++ | C-Plus-Plus/Pancake_sort.cpp | MjCode01/DS-Algo-Point | 79d826fa63090014dfaab281e5170c25b86c6bbf | [
"MIT"
] | 1,148 | 2020-09-28T15:06:16.000Z | 2022-03-17T16:30:08.000Z | C-Plus-Plus/Pancake_sort.cpp | MjCode01/DS-Algo-Point | 79d826fa63090014dfaab281e5170c25b86c6bbf | [
"MIT"
] | 520 | 2020-09-28T18:34:26.000Z | 2021-10-30T17:06:43.000Z | C-Plus-Plus/Pancake_sort.cpp | MjCode01/DS-Algo-Point | 79d826fa63090014dfaab281e5170c25b86c6bbf | [
"MIT"
] | 491 | 2020-09-28T18:40:14.000Z | 2022-03-20T13:41:44.000Z | //This code is solely written by Arnav without any external sources.
// Pancake sort
#include<bits/stdc++.h>
using namespace std;
void flip(int arr[] , int i){
for(int j = 0 ; j <= (i / 2) ; j++)
{
int temp = arr[i-j] ;
arr[i-j] = arr[j] ;
arr[j] = temp ;
}
}
// time complexity = O(n) ; S... | 18.338235 | 144 | 0.540497 |
76a97b05240b232ce4c2d9953ced0cdb79098a1e | 21,068 | cc | C++ | src/moorerror.cc | CHEN-Lin/OpenMoor | f463f586487b9023e7f3678c9d851000558b14d7 | [
"Apache-2.0"
] | 7 | 2019-02-10T07:03:45.000Z | 2022-03-04T16:09:38.000Z | src/moorerror.cc | CHEN-Lin/OpenMoor | f463f586487b9023e7f3678c9d851000558b14d7 | [
"Apache-2.0"
] | null | null | null | src/moorerror.cc | CHEN-Lin/OpenMoor | f463f586487b9023e7f3678c9d851000558b14d7 | [
"Apache-2.0"
] | 4 | 2018-03-01T14:34:52.000Z | 2018-06-14T12:13:55.000Z | // This file is part of OpenMOOR, an Open-source simulation program for MOORing
// systems in offshore renewable energy applications.
//
// Copyright 2018 Lin Chen <l.chen.tj@gmail.com> & Biswajit Basu <basub@tcd.ie>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file exce... | 45.8 | 83 | 0.623078 |
76ae2c05042d464bd907ab21b1c03582f2c8b85a | 2,001 | cpp | C++ | Sources/Internal/Platform/TemplateAndroid/JniExtensions.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | 5 | 2020-02-11T12:04:17.000Z | 2022-01-30T10:18:29.000Z | Sources/Internal/Platform/TemplateAndroid/JniExtensions.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | null | null | null | Sources/Internal/Platform/TemplateAndroid/JniExtensions.cpp | reven86/dava.engine | ca47540c8694668f79774669b67d874a30188c20 | [
"BSD-3-Clause"
] | 4 | 2019-11-28T19:24:34.000Z | 2021-08-24T19:12:50.000Z | #include "JniExtensions.h"
#if !defined(__DAVAENGINE_COREV2__)
#if defined(__DAVAENGINE_ANDROID__)
#include "Platform/TemplateAndroid/CorePlatformAndroid.h"
#include "UI/UIControlSystem.h"
#include "Math/Rect.h"
#include "Logger/Logger.h"
#include "Debug/DVAssert.h"
namespace DAVA
{
JniExtension::JniExtension()
{
... | 26.328947 | 116 | 0.709645 |
76b1445040b47301c1d5ceb15e854fd7590c3876 | 574 | cpp | C++ | 3/3/35.cpp | Jamxscape/LearnCPlusPlus | 9770af743a2f6e9267421ff8fec93eb9d81c1f14 | [
"Apache-2.0"
] | null | null | null | 3/3/35.cpp | Jamxscape/LearnCPlusPlus | 9770af743a2f6e9267421ff8fec93eb9d81c1f14 | [
"Apache-2.0"
] | null | null | null | 3/3/35.cpp | Jamxscape/LearnCPlusPlus | 9770af743a2f6e9267421ff8fec93eb9d81c1f14 | [
"Apache-2.0"
] | null | null | null | //
// 35.cpp
// 3
//
// Created by 马元 on 2016/12/25.
// Copyright © 2016年 MaYuan. All rights reserved.
//大家提到LTC都佩服的不行,不过,如果竞赛只有这一个题目,我敢保证你和他绝对在一个水平线上你的任务是:计算方程x^2+y^2+z^2= num的一个正整数解。Input输入数据包含多个测试实例,每个实例占一行,仅仅包含一个小于等于10000的正整数num。Output对于每组测试数据,请按照x,y,z递增的顺序输出它的一个最小正整数解,每个实例的输出占一行,题目保证所有测试数据都有解。
#include <iostr... | 26.090909 | 196 | 0.627178 |
76b2c5fdc93414e954ec805be777754828ea48ef | 739 | cpp | C++ | src/VK/SemaphoreWrapper.cpp | razerx100/Terra | a30738149cb07325283c2da9ac7972f079cb4dbc | [
"MIT"
] | null | null | null | src/VK/SemaphoreWrapper.cpp | razerx100/Terra | a30738149cb07325283c2da9ac7972f079cb4dbc | [
"MIT"
] | null | null | null | src/VK/SemaphoreWrapper.cpp | razerx100/Terra | a30738149cb07325283c2da9ac7972f079cb4dbc | [
"MIT"
] | null | null | null | #include <SemaphoreWrapper.hpp>
#include <VKThrowMacros.hpp>
SemaphoreWrapper::SemaphoreWrapper(VkDevice device, size_t count)
: m_deviceRef(device), m_semaphores(count) {
VkSemaphoreCreateInfo semaphoreInfo = {};
semaphoreInfo.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
VkResult result;
for (siz... | 29.56 | 76 | 0.759134 |
76b2d918729e127a4b073b29b126d91cd5f6e0d2 | 1,049 | cpp | C++ | Chapter_3/p3_16.cpp | aalogancheney/CPlusPlus_For_Everyone | 251247cf1f1ca169826179379831192fadfaa5f9 | [
"MIT"
] | null | null | null | Chapter_3/p3_16.cpp | aalogancheney/CPlusPlus_For_Everyone | 251247cf1f1ca169826179379831192fadfaa5f9 | [
"MIT"
] | null | null | null | Chapter_3/p3_16.cpp | aalogancheney/CPlusPlus_For_Everyone | 251247cf1f1ca169826179379831192fadfaa5f9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
void ClearInputDisplayMessage(const string& message)
{
cout << message << endl;
cin.clear();
string ignore;
getline(cin, ignore);
}
int main(int argc, char *argv[])
{
cout << "Enter the employees name: ";
... | 16.919355 | 69 | 0.632984 |
76b4b622cd484e8969d77bfa2d4b292a7158258f | 2,880 | hpp | C++ | src/io/FileWriterInterface.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | src/io/FileWriterInterface.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | src/io/FileWriterInterface.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | /** \defgroup Output Output module
* @{ <img src="output.png"> @}
*/
#pragma once
#include <vector>
#include <string>
#include "AMDiS_fwd.hpp"
#include "Mesh.hpp"
namespace AMDiS
{
class FileWriterInterface
{
public:
FileWriterInterface()
: filename(""),
appendIndex(0),
indexLengt... | 25.263158 | 109 | 0.621875 |
76b4efc373f16d2ffbb1f048bf2b579d8d95c96f | 2,746 | cpp | C++ | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/constants/rmm.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/constants/rmm.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/common/agent-framework/src/module/constants/rmm.cpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright
* Copyright (c) 2017-2019 Intel Corporation
*
* @copyright
* 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
*
* @copyright
* http://www.apache.org/licenses/LICENSE-... | 34.325 | 75 | 0.776766 |
76b777a4b45c88e0548d0939d5c537fbebce4b59 | 269 | cpp | C++ | src/ComponentSet.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | 1 | 2017-11-22T11:39:25.000Z | 2017-11-22T11:39:25.000Z | src/ComponentSet.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | null | null | null | src/ComponentSet.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | null | null | null |
#include "ComponentSet.h"
using namespace Meadows;
ComponentSet::ComponentSet() : componentBitSet(ComponentRegistry::getNumRegisteredComponents()) {
}
ComponentSet::~ComponentSet() {
for (Component* component : components) {
delete(component);
}
}
| 17.933333 | 97 | 0.717472 |
76bc393e21a080577c2bc57cc5ae93e4b500e791 | 535 | cpp | C++ | spoj/HOTELS.cpp | amarlearning/CodeForces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | 3 | 2016-02-20T12:14:51.000Z | 2016-03-18T20:09:36.000Z | spoj/HOTELS.cpp | amarlearning/Codeforces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | null | null | null | spoj/HOTELS.cpp | amarlearning/Codeforces | 6625d3be21cb6a78b88c7521860d1da263e77121 | [
"Unlicense"
] | 2 | 2018-07-26T21:00:42.000Z | 2019-11-30T19:33:57.000Z | /*
Author : Amar Prakash Pandey
contact : http://amarpandey.me
*/
#include <bits/stdc++.h>
#define ll long long
#define MAX 1000005
using namespace std;
ll int A[MAX];
int main(int argc, char const *argv[]) {
ll int N, M, sum = 0;
scanf("%lld %lld", &N, &M);
for (ll int i = 0; i < N; ++i) {
scanf("%lld", ... | 12.738095 | 40 | 0.506542 |
76be93f1975379ff4d2dbd50e15a7220270d08af | 304 | cpp | C++ | cc/tests/test1/submit.cpp | DragoonKiller/bruteforces | e6283b18c692a3726e7e52a6a60e64ddc903da91 | [
"MIT"
] | null | null | null | cc/tests/test1/submit.cpp | DragoonKiller/bruteforces | e6283b18c692a3726e7e52a6a60e64ddc903da91 | [
"MIT"
] | null | null | null | cc/tests/test1/submit.cpp | DragoonKiller/bruteforces | e6283b18c692a3726e7e52a6a60e64ddc903da91 | [
"MIT"
] | null | null | null |
static void this_is_a_function_in_brute_gen_in_all_hpp() { }
static void this_is_a_function_in_bits_hpp() { }
#include <bits/stdc++.h>
static void this_is_another_function_in_bits_hpp() { }
#include <chrono>
static void this_is_a_function_outof_brute_gen_in_all_hpp() { }
int main()
{
return 0;
} | 21.714286 | 63 | 0.776316 |
76c2f4df9cb8a71855172fdb7ebc46cab2b57915 | 8,603 | cpp | C++ | src/ui/SciControl/CScintillaController.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | src/ui/SciControl/CScintillaController.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | src/ui/SciControl/CScintillaController.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | /** title info */
#include "CScintillaController.h"
#include "ScintillaSend.h"
#include "common_defs.h"
/* colourizing defines */
#if PLATFORM == MAC
#define DEF_KEYW_1 "#FF627E"
#define DEF_KEYW_2 "#FF00FF"
#define DEF_NUM "#0000FF"
#define DEF_OP "#0000FF"
#define DEF_STRING "#EE9A4D"
#define ... | 37.404348 | 84 | 0.749622 |
76c84ac58ffc95d332730ba9586637136a402d87 | 4,225 | cpp | C++ | ZEDModel.cpp | balder2046/WorldViewer | 088f7bfdbf3a4ac8ca82f301c26969e1b4db40f0 | [
"MIT"
] | null | null | null | ZEDModel.cpp | balder2046/WorldViewer | 088f7bfdbf3a4ac8ca82f301c26969e1b4db40f0 | [
"MIT"
] | null | null | null | ZEDModel.cpp | balder2046/WorldViewer | 088f7bfdbf3a4ac8ca82f301c26969e1b4db40f0 | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include <glm/detail/type_mat.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "ZEDModel.hpp"
#include "glm/glm.hpp"
void CheckGLError();
Zed3D::Zed3D() {
body_io.clear();
path_mem.clear();
vaoID = 0;
vboID = 0;
darktriID = 0;
allumtriID = 0;
}
Zed3D::~Zed3D() {
... | 31.296296 | 117 | 0.641657 |
76c8aee4977befd247672662a0830efb72cbde0c | 10,425 | cpp | C++ | source/printf.cpp | Rohansi/RaspberryPi | 8cc24fa49ae7842ee7a9df954fe9672d32826a4b | [
"MIT"
] | 3 | 2015-12-27T21:41:09.000Z | 2017-03-28T14:29:09.000Z | source/printf.cpp | Rohansi/RaspberryPi | 8cc24fa49ae7842ee7a9df954fe9672d32826a4b | [
"MIT"
] | null | null | null | source/printf.cpp | Rohansi/RaspberryPi | 8cc24fa49ae7842ee7a9df954fe9672d32826a4b | [
"MIT"
] | 2 | 2016-01-06T21:26:42.000Z | 2021-02-18T16:47:25.000Z | //
// Created by Daniel Lindberg on 2015-11-29.
//
#include <limits.h>
#include "string.h"
#include "printf.h"
#define MAX_INTEGER_SIZE 65
#define FLAG_LEFT_ADJUST 0x01
#define FLAG_ALWAYS_SIGN 0x02
#define FLAG_PREPEND_SPACE 0x04
#define FLAG_ALTERNATIVE 0x08
#define FLAG_PAD_WITH_ZERO 0x10
#define INPUT_TYP... | 28.561644 | 126 | 0.526331 |
76c94f79b5ba8720a93381adb8428d974c59c32e | 10,586 | cc | C++ | src/procps.cc | thlorenz/procps | b713185dc7b4c82d8cbc9f4be7e345f09df365bb | [
"MIT"
] | 5 | 2016-02-14T11:03:22.000Z | 2019-11-27T12:29:36.000Z | src/procps.cc | thlorenz/procps | b713185dc7b4c82d8cbc9f4be7e345f09df365bb | [
"MIT"
] | null | null | null | src/procps.cc | thlorenz/procps | b713185dc7b4c82d8cbc9f4be7e345f09df365bb | [
"MIT"
] | 9 | 2017-08-31T11:03:02.000Z | 2021-11-21T14:09:19.000Z | #include <node.h>
#include <nan.h>
#include "procps.h"
#include "proc/sysinfo.h"
#include "proc/whattime.h"
#include <cassert>
#include <time.h>
#include <sys/time.h>
using v8::FunctionTemplate;
using v8::Handle;
using v8::Local;
using v8::Object;
using v8::String;
using v8::Number;
using v8::Integer;
using v8::Int3... | 26.59799 | 134 | 0.665029 |
76cebccee3d56683320f6a612249e7a872d7c0ac | 3,434 | cpp | C++ | willow/src/patterns/initaccumulatepattern.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 61 | 2020-07-06T17:11:46.000Z | 2022-03-12T14:42:51.000Z | willow/src/patterns/initaccumulatepattern.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 1 | 2021-02-25T01:30:29.000Z | 2021-11-09T11:13:14.000Z | willow/src/patterns/initaccumulatepattern.cpp | gglin001/popart | 3225214343f6d98550b6620e809a3544e8bcbfc6 | [
"MIT"
] | 6 | 2020-07-15T12:33:13.000Z | 2021-11-07T06:55:00.000Z | // Copyright (c) 2020 Graphcore Ltd. All rights reserved.
#include <popart/error.hpp>
#include <popart/graph.hpp>
#include <popart/op/add.hpp>
#include <popart/op/init.hpp>
#include <popart/op/pad.hpp>
#include <popart/patterns/initaccumulatepattern.hpp>
#include <popart/patterns/patterns.hpp>
#include <popart/tensor.h... | 28.147541 | 77 | 0.692196 |
76d4f57531e01891535353830596594b082f7844 | 2,064 | hpp | C++ | include/boost/simd/arch/common/scalar/function/if_else_zero.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/common/scalar/function/if_else_zero.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/common/scalar/function/if_else_zero.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2015 NumScale SAS
@copyright 2015 J.T. Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
... | 31.753846 | 100 | 0.493702 |
76e3c01117eab50b90b46fcac940cf4a60f2d3f7 | 47,332 | cxx | C++ | PWG/muondep/AliMuonAccEffSubmitter.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWG/muondep/AliMuonAccEffSubmitter.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWG/muondep/AliMuonAccEffSubmitter.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 29.843632 | 314 | 0.655223 |
76e571f497eee37ee1d1c998d036ab36c27fb434 | 407 | cpp | C++ | atcoder.jp/abc176/abc176_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc176/abc176_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc176/abc176_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
vector<long long> a(n);
for (long long i = 0; i < n; i++)
{
cin >> a[i];
}
long long sum = 0;
for (long long i = 1; i < n; i++)
{
if (a[i - 1] - a[i] > 0)
{
sum += a[... | 17.695652 | 37 | 0.36855 |
76e80425e6f570ee6e75f0f24157922dde924e0f | 14,289 | cc | C++ | tile/lang/gen_special.cc | redoclag/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 4,535 | 2017-10-20T05:03:57.000Z | 2022-03-30T15:42:33.000Z | tile/lang/gen_special.cc | HOZHENWAI/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 984 | 2017-10-20T17:16:09.000Z | 2022-03-30T05:43:18.000Z | tile/lang/gen_special.cc | HOZHENWAI/plaidml | 46d9e8b3f1e1093aab2a0dfa40b2e15e3cc7d314 | [
"Apache-2.0"
] | 492 | 2017-10-20T18:22:32.000Z | 2022-03-30T09:00:05.000Z |
#include "tile/lang/gen_special.h"
#include <exception>
#include <map>
#include <memory>
#include <utility>
#include "base/util/logging.h"
#include "tile/lang/gid.h"
#include "tile/lang/ops.h"
#include "tile/lang/sembuilder.h"
#include "tile/lang/semprinter.h"
namespace vertexai {
namespace tile {
namespace lang {
... | 39.472376 | 120 | 0.654629 |
76e865181b8b8475f8930cbeb4ae1fcc7ea85a41 | 1,131 | cpp | C++ | StatisticsCollector/CollectStatistics.cpp | kozlov-andrey/anync-glbufferdata-bench | ca95752cd3857e9d6bc31162168c0a8658533831 | [
"Unlicense"
] | null | null | null | StatisticsCollector/CollectStatistics.cpp | kozlov-andrey/anync-glbufferdata-bench | ca95752cd3857e9d6bc31162168c0a8658533831 | [
"Unlicense"
] | null | null | null | StatisticsCollector/CollectStatistics.cpp | kozlov-andrey/anync-glbufferdata-bench | ca95752cd3857e9d6bc31162168c0a8658533831 | [
"Unlicense"
] | null | null | null | #include "CollectStatistics.h"
#include "Time.h"
#include "GLRenderer.h"
#include <iostream>
#include <fstream>
#include <map>
void collect_statistics(
std::function<void()> swap_func,
std::function<void()> create_context,
std::function<void()> destroy_context,
int width,
int height,
const char *output_path)
{... | 20.196429 | 82 | 0.712644 |
76ec34d5e9013b663a976d1ec8b0e86c06081e50 | 650 | cpp | C++ | Sources/CryGame C++/Solution1/STLPORT/test/regression/lexcmp1.cpp | fromasmtodisasm/CryENGINE_MOD_SDK | 0b242ffcf615cdc0177f6c96b03b4d60a4338321 | [
"FSFAP"
] | 14 | 2016-05-09T01:14:03.000Z | 2021-10-12T21:41:02.000Z | src/STLport/test/regression/lexcmp1.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | null | null | null | src/STLport/test/regression/lexcmp1.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | 6 | 2015-08-19T01:28:54.000Z | 2020-10-25T05:17:08.000Z | // STLport regression testsuite component.
// To compile as a separate example, please #define MAIN.
#include <iostream>
#include <algorithm>
#ifdef MAIN
#define lexcmp1_test main
#endif
#if !defined (STLPORT) || defined(__STL_USE_NAMESPACES)
using namespace std;
#endif
int lexcmp1_test(int, char**)
{... | 23.214286 | 71 | 0.64 |
76f414310d4339aaf3d0b460446f0cf8c02a9f17 | 1,078 | cpp | C++ | Photon/photon/util/Transform.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | 1 | 2017-05-28T12:10:30.000Z | 2017-05-28T12:10:30.000Z | Photon/photon/util/Transform.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | null | null | null | Photon/photon/util/Transform.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | null | null | null | #include "Transform.h"
namespace ph
{
glm::mat4 Transform::buildMatrix()
{
mat = glm::mat4();
mat = glm::translate(mat, pos);
glm::mat4 rotm = glm::mat4_cast(rot);
mat *= rotm;
mat = glm::scale(mat, scale);
return mat;
}
void Transform::rotEuler(glm::vec3 eu)
{
glm::quat qP = glm::angleAxis(glm:... | 17.966667 | 74 | 0.59462 |
76f529c822bc107727ad263e023f4c0149759b69 | 1,576 | hpp | C++ | redist/inc/imqdst.hpp | gmarcon83/mq-mqi-nodejs | 27d44772254d0d76438022c6305277f603ff6acb | [
"Apache-2.0"
] | null | null | null | redist/inc/imqdst.hpp | gmarcon83/mq-mqi-nodejs | 27d44772254d0d76438022c6305277f603ff6acb | [
"Apache-2.0"
] | null | null | null | redist/inc/imqdst.hpp | gmarcon83/mq-mqi-nodejs | 27d44772254d0d76438022c6305277f603ff6acb | [
"Apache-2.0"
] | null | null | null | /* @(#) MQMBID sn=p924-L211104 su=_OdbBaj17EeygWfM06SbNXw pn=include/imqdst.pre_hpp */
#ifndef _IMQDST_HPP_
#define _IMQDST_HPP_
// Library: IBM MQ
// Component: IMQI (IBM MQ C++ MQI)
// Part: IMQDST.HPP
//
// Description: "ImqDistributionList" class declaration
// <copyright
// notice="lm-s... | 28.142857 | 86 | 0.706853 |
76f885c2f0a786d1eecf066cc26c0cf3da44d3a2 | 230 | cpp | C++ | src/plane_traits.cpp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | 3 | 2019-02-14T16:55:33.000Z | 2022-02-07T13:08:47.000Z | src/plane_traits.cpp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | 1 | 2019-02-14T17:10:37.000Z | 2019-02-14T17:10:37.000Z | src/plane_traits.cpp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | null | null | null | #include <plane_traits>
#include <impl/plane_traits.hpp>
namespace triplet_match {
#define INSTANTIATE_PCL_POINT_TYPE(type) \
template struct plane_traits<type>;
#include "pcl_point_types.def"
} // namespace triplet_match
| 20.909091 | 42 | 0.782609 |
76fa0b5358e9073caaf294c15fc60955f02be592 | 3,010 | cpp | C++ | src/stms/curl.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2021-10-02T19:31:14.000Z | 2021-10-02T19:31:14.000Z | src/stms/curl.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-06-17T01:15:45.000Z | 2020-06-17T01:16:08.000Z | src/stms/curl.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-10-17T23:57:27.000Z | 2020-10-17T23:57:27.000Z | //
// Created by grant on 6/2/20.
//
#include "stms/curl.hpp"
#include <mutex>
#include "stms/logging.hpp"
namespace stms {
void initCurl() {
curl_global_init(CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32);
auto version = curl_version_info(CURLVERSION_NOW);
STMS_INFO("LibCURL {}: On host '{}' with ... | 31.354167 | 146 | 0.619934 |
76fbe39e413419e717be088742184ad004bd0256 | 1,937 | cpp | C++ | Engine/src/renderer/material/TexturePNG.cpp | Owlinated/SkyHockey | 787a7fa6c4cd1773c5a5c7e15e014f675947a21e | [
"MIT"
] | null | null | null | Engine/src/renderer/material/TexturePNG.cpp | Owlinated/SkyHockey | 787a7fa6c4cd1773c5a5c7e15e014f675947a21e | [
"MIT"
] | null | null | null | Engine/src/renderer/material/TexturePNG.cpp | Owlinated/SkyHockey | 787a7fa6c4cd1773c5a5c7e15e014f675947a21e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <png.h>
#include <src/support/Logger.h>
#include "TexturePNG.h"
/**
* Load texture from .png file
* @param image_path File of .png file.
* @param mipmap Whether to load/generate mipmaps.
*/
TexturePNG::TexturePNG(const std::string& image_path, bool mipmap... | 33.396552 | 102 | 0.710893 |
76fcf2736b58a99b802d5f28f72253782ebdd52f | 2,947 | cpp | C++ | RobWork/src/rw/trajectory/TimedUtil.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/trajectory/TimedUtil.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/trajectory/TimedUtil.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 30.697917 | 93 | 0.624364 |
76fe86d469a3f2265d05dc3009f9981988a6a44a | 647 | cpp | C++ | src/kc/core/Clock.cpp | nekoffski/libkc | f72cc40d2780747a707eaf6b822ba98848d92237 | [
"MIT"
] | null | null | null | src/kc/core/Clock.cpp | nekoffski/libkc | f72cc40d2780747a707eaf6b822ba98848d92237 | [
"MIT"
] | null | null | null | src/kc/core/Clock.cpp | nekoffski/libkc | f72cc40d2780747a707eaf6b822ba98848d92237 | [
"MIT"
] | null | null | null | #include "Clock.h"
#include <ctime>
#include <iomanip>
namespace kc::core {
float toSeconds(const Clock::TimePoint& timePoint) {
using namespace std::chrono;
return duration_cast<microseconds>(timePoint.time_since_epoch()).count() / Clock::microsecondsInSecond;
}
std::string Clock::getTimeString(const std::... | 21.566667 | 107 | 0.678516 |
0a00f41bfb75f9575dd010edec32c552fcb78c42 | 4,845 | cc | C++ | packages/solid/Cylinder_3D.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/solid/Cylinder_3D.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/solid/Cylinder_3D.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "Cylinder_3D.hh"
#include "Vector_Functions_3D.hh"
#include <cmath>
using namespace std;
namespace vf3 = Vector_Functions_3D;
Cylinder_3D::
Cylinder_3D(int index,
Surface_Type surface_type,
double radius,
vector<double> const &origin,
vector<double> const &di... | 29.011976 | 108 | 0.490815 |
0a028dcc0da795f0e336636cc08e39356c210a3f | 7,281 | cpp | C++ | src/core/Hub.cpp | gabrielklein/SensorNode | e92dbd56aa0a7d75ab95b9c484f27ba6d0be64df | [
"MIT"
] | 2 | 2018-01-21T11:43:36.000Z | 2019-07-15T20:08:31.000Z | src/core/Hub.cpp | gabrielklein/SensorNode | e92dbd56aa0a7d75ab95b9c484f27ba6d0be64df | [
"MIT"
] | null | null | null | src/core/Hub.cpp | gabrielklein/SensorNode | e92dbd56aa0a7d75ab95b9c484f27ba6d0be64df | [
"MIT"
] | null | null | null | #include "Hub.h"
#include "../Settings.h"
Hub::Hub() {
};
Hub::~Hub() {
delete(this->webServerSN);
delete(this->apStaClient);
delete(this->led);
delete(this->temp);
delete(this->relay);
delete(this->switc);
delete(this->geiger);
delete(this->mqtt);
... | 30.721519 | 77 | 0.439363 |
0a065fe2c8f15d4ad8f0c1d2ae1aae271b46cd46 | 2,916 | cpp | C++ | src/batterymonitor.cpp | spiiroin/btrfs-balancer | 5c1f0145db34dd6837bcbb38f00854f6d962bcc3 | [
"BSD-3-Clause"
] | null | null | null | src/batterymonitor.cpp | spiiroin/btrfs-balancer | 5c1f0145db34dd6837bcbb38f00854f6d962bcc3 | [
"BSD-3-Clause"
] | null | null | null | src/batterymonitor.cpp | spiiroin/btrfs-balancer | 5c1f0145db34dd6837bcbb38f00854f6d962bcc3 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************************
**
** Copyright (C) 2015 Jolla Ltd.
** Contact: Martin Grimme <martin.grimme@gmail.com>
** All rights reserved.
**
** This file is part of the btrfs-balancer package.
**
** You may use this file under the terms of the GNU Lesser G... | 33.517241 | 89 | 0.63546 |
0a096f8d0bea078fd113c110e2ccfa182e51f0ee | 156 | hpp | C++ | example/src/Utils/Config.hpp | matusnovak/doxydown | 187dc2991dabe65f808263845e608e2ba2a41082 | [
"MIT"
] | 131 | 2019-12-12T09:08:03.000Z | 2022-03-27T01:48:11.000Z | example/src/Utils/Config.hpp | matusnovak/doxydown | 187dc2991dabe65f808263845e608e2ba2a41082 | [
"MIT"
] | 69 | 2020-02-21T05:50:27.000Z | 2022-03-11T21:16:17.000Z | example/src/Utils/Config.hpp | matusnovak/doxydown | 187dc2991dabe65f808263845e608e2ba2a41082 | [
"MIT"
] | 27 | 2020-02-20T04:50:23.000Z | 2022-03-17T00:55:00.000Z | #pragma once
/*!
* @brief Autogenerated version string by CMake
* @ingroup Utils
*/
#define ENGINE_VERSION "v1.0.1"
#define ENGINE_ARCH "amd64"
| 17.333333 | 48 | 0.679487 |
0a0cf82fe63806cf84c2abc335fc5cb6eda5b4c6 | 563 | cpp | C++ | Section10/LetterPyramid/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | Section10/LetterPyramid/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | Section10/LetterPyramid/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
cout << "Welcome to the Letter Pyramid Generator!" << endl;
string input;
cout << "Enter the input text: ";
getline(cin, input);
size_t padding{input.length() - 1};
for (size_t i{1}; i <= input.length(); ++i)
{
cout << string(... | 17.060606 | 61 | 0.520426 |
0a0f0a5347be9d4d7b08b04467c4ed9c6c63ce96 | 14,129 | cpp | C++ | include/h3api/H3Dialogs/H3BaseDialog.cpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3Dialogs/H3BaseDialog.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3Dialogs/H3BaseDialog.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 34.293689 | 232 | 0.69375 |
0a0f1f29e718edf02fe77504a3c521cca069adde | 5,283 | cpp | C++ | mgmtd/source/net/message/nodes/storagepools/ModifyStoragePoolMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | mgmtd/source/net/message/nodes/storagepools/ModifyStoragePoolMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | mgmtd/source/net/message/nodes/storagepools/ModifyStoragePoolMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include "ModifyStoragePoolMsgEx.h"
#include <common/app/log/LogContext.h>
#include <common/net/message/nodes/storagepools/ModifyStoragePoolRespMsg.h>
#include <common/net/message/control/GenericResponseMsg.h>
#include <nodes/StoragePoolStoreEx.h>
#include <program/Program.h>
bool ModifyStoragePoolMsgEx::processIncom... | 29.847458 | 99 | 0.607609 |
0a1013d51b3e1a8ab70f40d2abc05e2d462045d7 | 5,677 | cpp | C++ | mainwindow.cpp | diegofps/picker | a8e09c74e2d34a17a61ba6e1be08df135cbce60b | [
"Apache-2.0"
] | null | null | null | mainwindow.cpp | diegofps/picker | a8e09c74e2d34a17a61ba6e1be08df135cbce60b | [
"Apache-2.0"
] | null | null | null | mainwindow.cpp | diegofps/picker | a8e09c74e2d34a17a61ba6e1be08df135cbce60b | [
"Apache-2.0"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QToolButton>
#include <QShortcut>
#include <QBitmap>
#include <QStyle>
#include <QFile>
#include <QFileInfo>
#include <QDir>
#include <QSet>
#include <QProcess>
using namespace wup;
MainWindow::MainWindow(Params & params, QWidget *parent)
: QMainWindow... | 24.469828 | 119 | 0.574599 |
0a116c910ba20a7b92c886dcea15f9b4b3040368 | 24,529 | cpp | C++ | source/renderer/scene/adaptiveGrid/AdaptiveGrid.cpp | DaSutt/VolumetricParticles | 6ec9bac4bec4a8757343bb770b23110ef2364dfd | [
"Apache-2.0"
] | 6 | 2017-06-26T11:42:26.000Z | 2018-09-10T17:53:53.000Z | source/renderer/scene/adaptiveGrid/AdaptiveGrid.cpp | DaSutt/VolumetricParticles | 6ec9bac4bec4a8757343bb770b23110ef2364dfd | [
"Apache-2.0"
] | 8 | 2017-06-24T20:25:42.000Z | 2017-08-09T10:50:40.000Z | source/renderer/scene/adaptiveGrid/AdaptiveGrid.cpp | DaSutt/VolumetricParticles | 6ec9bac4bec4a8757343bb770b23110ef2364dfd | [
"Apache-2.0"
] | null | null | null | /*
MIT License
Copyright(c) 2017 Daniel Suttor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | 34.941595 | 154 | 0.755229 |
0a11745da99a17acd76d39f6448e62662e77c7cd | 826 | hpp | C++ | iOS/G3MiOSSDK/Commons/Mesh/DirectMesh.hpp | RMMJR/g3m | 990467dc8e2bf584f8b512bdf06ecf4def625185 | [
"BSD-2-Clause"
] | 1 | 2016-08-23T10:29:44.000Z | 2016-08-23T10:29:44.000Z | iOS/G3MiOSSDK/Commons/Mesh/DirectMesh.hpp | RMMJR/g3m | 990467dc8e2bf584f8b512bdf06ecf4def625185 | [
"BSD-2-Clause"
] | null | null | null | iOS/G3MiOSSDK/Commons/Mesh/DirectMesh.hpp | RMMJR/g3m | 990467dc8e2bf584f8b512bdf06ecf4def625185 | [
"BSD-2-Clause"
] | null | null | null | //
// DirectMesh.hpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 12/1/12.
//
//
#ifndef __G3MiOSSDK__DirectMesh__
#define __G3MiOSSDK__DirectMesh__
#include "AbstractMesh.hpp"
class DirectMesh : public AbstractMesh {
protected:
void rawRender(const G3MRenderContext* rc) const;
Mesh* createNormalsMesh()... | 19.209302 | 51 | 0.621065 |
0a11a41c4f6816516a80e4c0094caf5df7e4b4c3 | 137 | inl | C++ | TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/orbsvcs/orbsvcs/Event/EC_Null_Scheduling.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // $Id: EC_Null_Scheduling.inl 73791 2006-07-27 20:54:56Z wotte $
ACE_INLINE
TAO_EC_Null_Scheduling::TAO_EC_Null_Scheduling (void)
{
}
| 17.125 | 65 | 0.773723 |
0a12180042ae162df850e0e4289edbb1cfb7fd52 | 369 | hpp | C++ | include/texugo/message/MessageParser.hpp | leozz37/Texugo | 61d1d2e65fb383b1402bb5d61871d72563060494 | [
"MIT"
] | 20 | 2020-07-17T04:07:37.000Z | 2022-01-07T19:02:07.000Z | include/texugo/message/MessageParser.hpp | leozz37/Texugo | 61d1d2e65fb383b1402bb5d61871d72563060494 | [
"MIT"
] | 15 | 2020-08-29T03:30:34.000Z | 2022-02-27T10:12:27.000Z | include/texugo/message/MessageParser.hpp | leozz37/Texugo | 61d1d2e65fb383b1402bb5d61871d72563060494 | [
"MIT"
] | 5 | 2020-07-11T10:38:37.000Z | 2020-09-26T20:56:45.000Z | #pragma once
#include <nlohmann/json.hpp>
#include <string>
#include <vector>
class MessageParser
{
public:
explicit MessageParser(const std::string&);
const std::vector<std::string>& getDestination() const;
const std::string& getMessage() const;
private:
std::vector<std::string> m_destin... | 23.0625 | 59 | 0.661247 |
0a14825b689f0c39af63ff61ae29ce1652980afa | 1,250 | cpp | C++ | src/game/piece/pawn.cpp | Aviraj55/Chess | 51dfdd4a33f18f6cbb9666b6b16ecd4d859ac3e1 | [
"MIT"
] | null | null | null | src/game/piece/pawn.cpp | Aviraj55/Chess | 51dfdd4a33f18f6cbb9666b6b16ecd4d859ac3e1 | [
"MIT"
] | null | null | null | src/game/piece/pawn.cpp | Aviraj55/Chess | 51dfdd4a33f18f6cbb9666b6b16ecd4d859ac3e1 | [
"MIT"
] | 1 | 2020-10-03T20:59:17.000Z | 2020-10-03T20:59:17.000Z | #include "pawn.h"
#include "../board.h"
std::vector<Coordinate> Pawn::get_candidate_moves() const {
std::vector<Coordinate> candidate_moves;
int dir = color_ == Color::WHITE ? 1 : -1;
// Pawns may always move one square forward
std::vector<int> forward_moves(1, 1);
if (move_history_.empty()) {
// If t... | 30.487805 | 80 | 0.656 |
0a16121a40d0ec98bee0874a48b135d8e44a5164 | 3,651 | cpp | C++ | src/robot_state_publisher-kinetic-devel/test/test_subclass.cpp | mowtian/Projektarbeit | 43d575f6cf06690e869da4f995ed271fe4088f69 | [
"MIT"
] | 37 | 2017-12-13T16:14:32.000Z | 2022-02-19T03:12:52.000Z | src/robot_state_publisher-kinetic-devel/test/test_subclass.cpp | mowtian/Projektarbeit | 43d575f6cf06690e869da4f995ed271fe4088f69 | [
"MIT"
] | 71 | 2018-01-17T20:17:03.000Z | 2022-03-23T19:48:45.000Z | src/robot_state_publisher-kinetic-devel/test/test_subclass.cpp | mowtian/Projektarbeit | 43d575f6cf06690e869da4f995ed271fe4088f69 | [
"MIT"
] | 32 | 2018-01-08T03:21:18.000Z | 2022-02-19T03:12:47.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2016, Open Source Robotics Foundation, 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... | 32.891892 | 120 | 0.743632 |
0a1afd47397ae3f5abf49c9eb0d6a9d1945edb4e | 3,666 | cpp | C++ | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/src/platformsupport/input/shared/qtouchoutputmapping.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/src/platformsupport/input/shared/qtouchoutputmapping.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/src/platformsupport/input/shared/qtouchoutputmapping.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the plugins module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commer... | 39.847826 | 99 | 0.68958 |