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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4157bb240e3d2cda3d23e1f4b368b41827d797b2 | 37,664 | cpp | C++ | Image/Gif.cpp | davemc0/DMcTools | 7fa65abc99330c4cc49cf4037cf629051aa516a6 | [
"CC0-1.0"
] | null | null | null | Image/Gif.cpp | davemc0/DMcTools | 7fa65abc99330c4cc49cf4037cf629051aa516a6 | [
"CC0-1.0"
] | null | null | null | Image/Gif.cpp | davemc0/DMcTools | 7fa65abc99330c4cc49cf4037cf629051aa516a6 | [
"CC0-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////
// Gif.cpp - Load and save GIF images
//
// Changes Copyright David K. McAllister, Aug. 1997.
// Taken from XV v. 3.10, which was taken from xgif and others 1987-1999.
// As I'm sure you know, the LZW compression contained herein is patented.
// You... | 32.751304 | 157 | 0.463812 | davemc0 |
415837581f6014c260c7549b3959af48aa0e12fa | 13,090 | cpp | C++ | Analysis/AnalysisOrg/justBeadFind/justBeadFind.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | Analysis/AnalysisOrg/justBeadFind/justBeadFind.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | Analysis/AnalysisOrg/justBeadFind/justBeadFind.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | /* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <armadillo>
#include <fenv.h> // Floating point exceptions
#include "CommandLineOpts.h"
#include "OptBase.h"
#include "Mask.h"
#include "Region.h"
#include "SeqList.h"
#include "Tr... | 29.088889 | 172 | 0.542857 | konradotto |
41590d3bfbc2eafda2fc5badcc2fd7423609d8a5 | 22,120 | cpp | C++ | video/common/Processing/jhcDist.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | 1 | 2020-03-01T13:22:34.000Z | 2020-03-01T13:22:34.000Z | video/common/Processing/jhcDist.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | null | null | null | video/common/Processing/jhcDist.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | 1 | 2020-07-30T10:24:58.000Z | 2020-07-30T10:24:58.000Z | // jhcDist.cpp : spreading activation like space claiming
//
// Written by Jonathan H. Connell, jconnell@alum.mit.edu
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 1999-2016 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may... | 23.457052 | 82 | 0.437161 | jconnell11 |
4159acedb53270b6a6a37e3abc46597436ad018c | 6,013 | cpp | C++ | libs/foe_yaml/src/pod_parsing.cpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | 4 | 2021-04-09T13:11:22.000Z | 2022-03-26T07:29:31.000Z | libs/foe_yaml/src/pod_parsing.cpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | null | null | null | libs/foe_yaml/src/pod_parsing.cpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | 1 | 2022-02-10T14:51:00.000Z | 2022-02-10T14:51:00.000Z | /*
Copyright (C) 2020 George Cave.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | 42.95 | 100 | 0.440047 | StableCoder |
415bf2b5c39322da8f662da730ba4f6f03cfff25 | 2,899 | cpp | C++ | 1/2/client2_async.cpp | Kot97/pus | 7d9de3269bc28b727111314ea920f6d30f68120a | [
"MIT"
] | null | null | null | 1/2/client2_async.cpp | Kot97/pus | 7d9de3269bc28b727111314ea920f6d30f68120a | [
"MIT"
] | 4 | 2019-04-10T18:32:55.000Z | 2019-04-10T18:44:44.000Z | 1/2/client2_async.cpp | Kot97/pus | 7d9de3269bc28b727111314ea920f6d30f68120a | [
"MIT"
] | null | null | null | /*
* Data: 2019-03-18
* Autor: Marcin Kurdziel
* Kompilacja: clang++ -std=c++14 -o client2_async client2_async.cpp -lpthread
* Zamiast clang++ można użyć g++, ale nie jest to zalecane
* Do skompilowaniu programu potrzebna jest bib... | 32.211111 | 129 | 0.577096 | Kot97 |
415c33583b0b8e72bb472b40374ba507dc76d455 | 2,298 | cpp | C++ | gui/Application.cpp | vitalissius/iweather | 13b6469b729a627335a2d629e5a62f6726058dc0 | [
"MIT"
] | 1 | 2021-04-16T08:36:00.000Z | 2021-04-16T08:36:00.000Z | gui/Application.cpp | vitalissius/iweather | 13b6469b729a627335a2d629e5a62f6726058dc0 | [
"MIT"
] | null | null | null | gui/Application.cpp | vitalissius/iweather | 13b6469b729a627335a2d629e5a62f6726058dc0 | [
"MIT"
] | null | null | null | #include "Application.h"
bool Application::IsAlreadyRunning()
{
HANDLE mtx = CreateMutex(NULL, FALSE, TEXT("{A393562E-EF7A-459F-A920-0286403D4A9B++}"));
if (GetLastError() == ERROR_ALREADY_EXISTS)
{
static const TCHAR* message = TEXT("Application is already running");
MessageBox(NULL, messa... | 26.413793 | 92 | 0.651001 | vitalissius |
415e6b07be4d2de9f9ece0a58b60f2719e71b34c | 169 | hpp | C++ | include/scene/scene.hpp | selcia-eremeev/cake | 855886acd7595d12780cb95a0bcb8a6fcee09ac6 | [
"MIT"
] | 1 | 2020-11-28T21:07:24.000Z | 2020-11-28T21:07:24.000Z | include/scene/scene.hpp | selcia-eremeev/chen | 96a2f4fbe444b26668983fb4c3f360d1a22cd2f7 | [
"MIT"
] | 9 | 2021-03-23T20:08:51.000Z | 2021-03-27T20:44:09.000Z | include/scene/scene.hpp | selcia-eremeev/cake | 855886acd7595d12780cb95a0bcb8a6fcee09ac6 | [
"MIT"
] | null | null | null | #pragma once
class Scene {
public:
virtual int Initialize(void) = 0;
virtual int Update(void) = 0;
virtual int Render(void) = 0;
virtual int Terminate(void) = 0;
}; | 18.777778 | 34 | 0.692308 | selcia-eremeev |
416185b85d800802d817b77d053182088c6fd7d9 | 1,600 | hpp | C++ | include/public/coherence/util/ListMuterator.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | include/public/coherence/util/ListMuterator.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | include/public/coherence/util/ListMuterator.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#ifndef COH_LIST_MUTERATOR_HPP
#define COH_LIST_MUTERATOR_HPP
#include "coherence/lang.ns"
#include "coherence/util/ListIterator.hpp"
#includ... | 27.118644 | 77 | 0.6425 | chpatel3 |
4164cad41386f4202620d706df15ab3a880cc49c | 1,792 | cpp | C++ | source/Structure/custom_plugins/plugins/HIL_server/protocol.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | source/Structure/custom_plugins/plugins/HIL_server/protocol.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | source/Structure/custom_plugins/plugins/HIL_server/protocol.cpp | Guiraffo/ProVANT_Simulator | ef2260204b13f39a9f83ad2ab88a9552a0699bff | [
"MIT"
] | null | null | null | #include <iostream>
#include "protocol.hpp"
Frame receive(Serial& serial)
{
Frame frame;
u8 header = frame.header();
u8 end = frame.end();
i32 status = 0;
u8 last = 'a';
bool fim = false;
while (!fim)
{
// std::cout << "entrei" << std::endl;
std::string byte = serial.read();
u8 b[1];
b[... | 19.268817 | 60 | 0.499442 | Guiraffo |
416b26fe8e61a18d9ec0f54dbc94dfba8d727cf7 | 1,623 | cpp | C++ | engine/Engine.UI.GDI/src/ui/gdi/image/SvgDocument.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | engine/Engine.UI.GDI/src/ui/gdi/image/SvgDocument.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | 10 | 2018-03-20T21:32:16.000Z | 2018-04-23T19:42:59.000Z | engine/Engine.UI.GDI/src/ui/gdi/image/SvgDocument.cpp | Kartikeyapan598/Ghurund | bcdc5e1805bf82b3f9a0543a3bbe22681c5605ea | [
"MIT"
] | null | null | null | #include "ghuigdipch.h"
#include "SvgDocument.h"
#include "core/reflection/Property.h"
#include "core/reflection/StandardTypes.h"
#include "core/reflection/TypeBuilder.h"
#include <Shlwapi.h>
#include <wrl.h>
namespace Ghurund::UI::GDI {
const Ghurund::Core::Type& SvgDocument::GET_TYPE() {
using namespac... | 30.622642 | 138 | 0.666667 | Kartikeyapan598 |
416e48cb58930d8d513fc36c3c23b57c97bbaea6 | 194 | cpp | C++ | src/tests/globals/test_exceptions.cpp | andreasdr/tdmecpp | 62b1492e878565d5559741f849138688c0c5e91d | [
"MIT"
] | 1 | 2018-03-07T22:13:41.000Z | 2018-03-07T22:13:41.000Z | src/tests/globals/test_exceptions.cpp | andreasdr/tdmecpp | 62b1492e878565d5559741f849138688c0c5e91d | [
"MIT"
] | null | null | null | src/tests/globals/test_exceptions.cpp | andreasdr/tdmecpp | 62b1492e878565d5559741f849138688c0c5e91d | [
"MIT"
] | 1 | 2020-07-15T04:02:24.000Z | 2020-07-15T04:02:24.000Z | /**
* @version $Id: afb217bec975efb91f9ba58c54f58645b741d5d4 $
*/
#include <libtdme/globals/Exception.h>
int main(int argc, char *argv[]) {
throw TDMEGlobal::Exception("Test Exception");
}
| 19.4 | 59 | 0.716495 | andreasdr |
416f1798c4b310cc7f89a63f7bca3ad22bcd50c3 | 10,734 | cpp | C++ | src/network.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 7 | 2019-05-27T03:21:53.000Z | 2021-06-21T19:41:17.000Z | src/network.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 11 | 2019-05-03T16:24:59.000Z | 2020-07-16T04:59:11.000Z | src/network.cpp | USCCANA/lergm | e4ef1a516e4916b9097918d79bc1f7928fd358e0 | [
"MIT"
] | 1 | 2021-07-05T01:48:46.000Z | 2021-07-05T01:48:46.000Z | #include <Rcpp.h>
using namespace Rcpp;
// List induced_subnetwork(
// const List & net,
// const IntegerVector & v,
// bool check = true
// ) {
//
// List newnet;
//
// // Checking out the master edgelist
// if (!net.containsElementNamed("mel"))
// stop("No `mel`.");
//
// // Explic... | 26.635236 | 129 | 0.502981 | USCCANA |
416f704d6e5da8aa0be644c45a06cb28bea0ff10 | 5,221 | cpp | C++ | V-REP/programming/bluezero/bindings/java/java.cpp | ivalab/grasp_primitiveShape | 1d5ce48084e431944fed1239622f3cba97a9edf9 | [
"MIT"
] | 11 | 2020-01-12T19:50:43.000Z | 2022-01-27T20:15:24.000Z | V-REP/programming/bluezero/bindings/java/java.cpp | ivalab/grasp_primitiveShape | 1d5ce48084e431944fed1239622f3cba97a9edf9 | [
"MIT"
] | 1 | 2021-10-31T07:10:47.000Z | 2021-10-31T19:28:07.000Z | V-REP/programming/bluezero/bindings/java/java.cpp | ivalab/grasp_primitiveShape | 1d5ce48084e431944fed1239622f3cba97a9edf9 | [
"MIT"
] | 2 | 2020-10-20T01:32:11.000Z | 2021-06-04T10:31:26.000Z | extern "C"
{
#include "java.h"
#include <b0/bindings/c.h>
JNIEXPORT jlong JNICALL Java_coppelia_b0RemoteApi_b0Init(JNIEnv *env, jobject obj)
{
int argc = 1;
char *argv[1] = {"b0java"};
return b0_init(&argc, argv);
}
JNIEXPORT jlong JNICALL Java_coppelia_b0RemoteApi_b0NodeNew(JNIEnv *env, jobject obj, jstr... | 35.277027 | 161 | 0.773415 | ivalab |
4170ed5207cf7980cc08796ea432ff007b24f67e | 1,494 | cpp | C++ | aff3ct/src/Tools/Algo/Draw_generator/Random_sigma_generator/Random_sigma_generator.cpp | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | 1 | 2022-03-07T15:52:10.000Z | 2022-03-07T15:52:10.000Z | aff3ct/src/Tools/Algo/Draw_generator/Random_sigma_generator/Random_sigma_generator.cpp | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | 6 | 2022-03-09T10:31:25.000Z | 2022-03-09T10:50:34.000Z | aff3ct/src/Tools/Algo/Draw_generator/Random_sigma_generator/Random_sigma_generator.cpp | AdrianLundell/ldpc-investigation-master-thesis | 075f5cd10dae498e4fcda2f4aabedd0e27caf122 | [
"MIT"
] | null | null | null | #include <aff3ct.hpp>
#include <aff3ct_extension.hpp>
#include <random>
#include <cmath>
using namespace aff3ct::tools;
template <typename R>
Random_sigma_generator<R>::Random_sigma_generator(const int seed)
: Draw_generator<R>()
{
this->set_seed(seed);
}
template <typename R>
void Random_sigma_generator<R>::set_... | 30.489796 | 119 | 0.661981 | AdrianLundell |
4170fa62dd0b625147fa723b36e7ba32cd86c255 | 3,069 | cpp | C++ | Engine/Source/Editor/Persona/Private/SAnimCompositePanel.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Editor/Persona/Private/SAnimCompositePanel.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Editor/Persona/Private/SAnimCompositePanel.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "SAnimCompositePanel.h"
#include "Widgets/Layout/SBorder.h"
#include "Animation/EditorAnimCompositeSegment.h"
#include "SAnimSegmentsPanel.h"
#include "SAnimCompositeEditor.h"
#include "Widgets/Layout/SExpandableArea.h"
#define LOCTEXT_NAMESPACE ... | 28.155963 | 156 | 0.737374 | windystrife |
41726c393d6126f30961d7280e8c17431716d573 | 4,158 | cpp | C++ | modules/visualneuro/src/processors/groupcontroller.cpp | scivis-exhibitions/VisualNeuro | 0770bdb72360f229ef8ff51eff9c7395adb23dfd | [
"BSD-2-Clause"
] | null | null | null | modules/visualneuro/src/processors/groupcontroller.cpp | scivis-exhibitions/VisualNeuro | 0770bdb72360f229ef8ff51eff9c7395adb23dfd | [
"BSD-2-Clause"
] | null | null | null | modules/visualneuro/src/processors/groupcontroller.cpp | scivis-exhibitions/VisualNeuro | 0770bdb72360f229ef8ff51eff9c7395adb23dfd | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | 41.168317 | 100 | 0.641414 | scivis-exhibitions |
41748d3f0d9bc0d48c923c8400fdd9de9c6280f3 | 5,041 | cpp | C++ | src/network/zeromq/Context.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/network/zeromq/Context.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/network/zeromq/Context.cpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "stdafx.hpp"
#include "Context.hpp"
#include "opent... | 25.588832 | 79 | 0.72565 | nopdotcom |
41755df929a17b803e1c1135aec91ceed71f4fda | 1,711 | cpp | C++ | 3rd_party/occa/src/occa/internal/lang/expr/staticCastNode.cpp | RonRahaman/nekRS | ffc02bca33ece6ba3330c4ee24565b1c6b5f7242 | [
"BSD-3-Clause"
] | 312 | 2015-07-02T09:02:09.000Z | 2022-03-30T16:13:23.000Z | 3rd_party/occa/src/occa/internal/lang/expr/staticCastNode.cpp | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | 520 | 2015-07-12T18:32:38.000Z | 2022-03-31T16:15:00.000Z | 3rd_party/occa/src/occa/internal/lang/expr/staticCastNode.cpp | neams-th-coe/nekRS | 5d2c8ab3d14b3fb16db35682336a1f96000698bb | [
"BSD-3-Clause"
] | 79 | 2015-07-22T22:10:56.000Z | 2022-03-17T09:07:01.000Z | #include <occa/internal/lang/expr/staticCastNode.hpp>
namespace occa {
namespace lang {
staticCastNode::staticCastNode(token_t *token_,
const vartype_t &valueType_,
const exprNode &value_) :
exprNode(token_),
valueType(valueType_),... | 26.734375 | 88 | 0.584454 | RonRahaman |
41785611ea0a9ff1e7ab93cacec35f0cd6fe280e | 2,703 | cpp | C++ | Source/source/mob_categories/bridge_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | Source/source/mob_categories/bridge_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | Source/source/mob_categories/bridge_category.cpp | ElatedEatrs/Pikifen | 1e834d5241fc631f8dfc519c17358051e867164f | [
"MIT"
] | null | null | null | /*
* Copyright (c) Andre 'Espyo' Silva 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Bridge mob category class.
*/
#include <algorithm>
#... | 26.762376 | 79 | 0.506844 | ElatedEatrs |
417a91bc20d06a4845e0d0b668dc91a11f6323ea | 593 | cpp | C++ | Codeforces/Gym101612K.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Codeforces/Gym101612K.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Codeforces/Gym101612K.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <bits/stdc++.h>
using namespace std;
int H[105],W[105];
void Init()
{
freopen("kotlin.in","r",stdin);
freopen("kotlin.out","w",stdout);
}
int h,w,n;
int main()
{
Init();
scanf("%d%d%d",&h,&w,&n);
for(int hi=1;hi<=(h+1)/2;++hi)
{
for(int wi=1;wi<=(w+1)/2;++wi)
{
if(hi*wi==n)
{
for(int i=0;... | 14.825 | 38 | 0.467116 | HeRaNO |
417dd5e62e8ce9a897baf68e1422681921360aea | 5,160 | cpp | C++ | mod/spawn/SpawnAnalyzer.cpp | Sysca11/TrapDoor | 77008c7dd47e835e453bbf099a8d91fd0036a011 | [
"MIT"
] | null | null | null | mod/spawn/SpawnAnalyzer.cpp | Sysca11/TrapDoor | 77008c7dd47e835e453bbf099a8d91fd0036a011 | [
"MIT"
] | null | null | null | mod/spawn/SpawnAnalyzer.cpp | Sysca11/TrapDoor | 77008c7dd47e835e453bbf099a8d91fd0036a011 | [
"MIT"
] | null | null | null | //
// Created by xhy on 2021/1/1.
//
#include "SpawnAnalyzer.h"
#include "entity/Actor.h"
#include "lib/SymHook.h"
#include "lib/mod.h"
#include "tools/Message.h"
#include "TrapdoorMod.h"
#include "tools/MsgBuilder.h"
#include <map>
namespace mod {
void SpawnAnalyzer::start(trapdoor::Actor *player) {
if... | 36.083916 | 163 | 0.531395 | Sysca11 |
417ee9b0b9f619f74a9fce17193c873f568d2d3c | 586 | cpp | C++ | 281/A[ Word Capitalization ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 281/A[ Word Capitalization ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | 281/A[ Word Capitalization ].cpp | mejanvijay/codeforces-jvj_iit-submissions | 2a2aac7e93ca92e75887eff92361174aa36207c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define sd(x) scanf("%d",&x)
#define su(x) scanf("%u",&x)
#define slld(x) scanf("%lld",&x)
#define sc(x) scanf("%c",&x)
#define ss(x) scanf("%s",x)
#define sf(x) scanf("%f",&x)
#define slf(x) scanf("%lf",&x)
#define ll long long int
#define mod(x,n) (x+n)%n
char S[1007];
... | 20.206897 | 68 | 0.554608 | mejanvijay |
418359219a1340b705c38263faf21121627d4974 | 1,219 | cpp | C++ | src/likelihood.cpp | PROBIC/mSWEEP | 91b2467593b6231468fdabed1455c095ec3f532a | [
"MIT"
] | 9 | 2018-06-05T16:27:09.000Z | 2020-09-18T13:15:45.000Z | src/likelihood.cpp | PROBIC/mSWEEP | 91b2467593b6231468fdabed1455c095ec3f532a | [
"MIT"
] | 10 | 2018-08-03T11:34:44.000Z | 2021-11-11T13:33:04.000Z | src/likelihood.cpp | PROBIC/mSWEEP | 91b2467593b6231468fdabed1455c095ec3f532a | [
"MIT"
] | 1 | 2020-09-15T16:40:41.000Z | 2020-09-15T16:40:41.000Z | #include "likelihood.hpp"
#include <vector>
#include <cmath>
inline double lbeta(double x, double y) {
return(std::lgamma(x) + std::lgamma(y) - std::lgamma(x + y));
}
inline double log_bin_coeff(uint16_t n, uint16_t k) {
return (std::lgamma(n + 1) - std::lgamma(k + 1) - std::lgamma(n - k + 1));
}
inline double ... | 34.828571 | 138 | 0.652174 | PROBIC |
418449e4d153084eb0985317d511c43b03a8bce5 | 1,773 | cc | C++ | UVa Online Judge/v104/10440.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | 1 | 2021-12-08T08:58:43.000Z | 2021-12-08T08:58:43.000Z | UVa Online Judge/v104/10440.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | UVa Online Judge/v104/10440.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | /*=============================================================================
# Author: Teerapat Jenrungrot - https://github.com/mjenrungrot/
# FileName: 10440.cc
# Description: UVa Online Judge - 10440
=============================================================================*/
#include <al... | 30.568966 | 79 | 0.469261 | mjenrungrot |
4184cf2806a8bca26430c4699134a75b287ef83f | 1,650 | cpp | C++ | Codeforces/Round #690 (div3)/F.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | Codeforces/Round #690 (div3)/F.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | Codeforces/Round #690 (div3)/F.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 2e18;
const long long ... | 20.625 | 56 | 0.557576 | python-programmer1512 |
4186bd60b59e47e5b527b37a9e931dc515a49965 | 5,445 | cpp | C++ | cli/cli_resources.cpp | lawlove/apitrace | d6a27295acb0a25926bf6290dd2532a7f9027864 | [
"MIT"
] | 2 | 2015-01-22T07:15:44.000Z | 2016-03-01T08:12:55.000Z | cli/cli_resources.cpp | gregory38/apitrace | 0627790166dccd8dd370fa7d9f434ed9fc027fb4 | [
"MIT"
] | null | null | null | cli/cli_resources.cpp | gregory38/apitrace | 0627790166dccd8dd370fa7d9f434ed9fc027fb4 | [
"MIT"
] | null | null | null | /*********************************************************************
*
* Copyright 2011 Intel Corporation
* All Rights Reserved.
*
* 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 wit... | 27.361809 | 98 | 0.661157 | lawlove |
4187378fd1a22a017292b15453fce89bed955fb7 | 232 | cpp | C++ | Tests/LibELF/Dynlib.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Tests/LibELF/Dynlib.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Tests/LibELF/Dynlib.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2021, Rodrigo Tobar <rtobarc@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibLine/Span.h>
extern "C" {
int FUNCTION();
int FUNCTION()
{
return (int)Line::Span(0, 0).beginning();
}
}
| 14.5 | 56 | 0.637931 | r00ster91 |
4187faee5ce7f90f29fa96c33890aa8efbc79847 | 30,178 | cpp | C++ | src/gameworld/gameworld/config/activityconfig/questionconfig.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 3 | 2021-12-16T13:57:28.000Z | 2022-03-26T07:50:08.000Z | src/gameworld/gameworld/config/activityconfig/questionconfig.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | null | null | null | src/gameworld/gameworld/config/activityconfig/questionconfig.cpp | mage-game/metagame-xm-server | 193b67389262803fe0eae742800b1e878b5b3087 | [
"MIT"
] | 1 | 2022-03-26T07:50:11.000Z | 2022-03-26T07:50:11.000Z | #include "questionconfig.hpp"
#include "servercommon/configcommon.h"
#include "checkresourcecenter.hpp"
#include"item/itempool.h"
QuestionConfig::QuestionConfig()
{
}
QuestionConfig::~QuestionConfig()
{
}
bool QuestionConfig::Init(const std::string &path, std::string *err)
{
PugiXmlDocument document;
PUGI_XML_LO... | 27.534672 | 157 | 0.685499 | mage-game |
418d65eaae40934dffc51f5205c79d2a320ebce1 | 9,676 | hxx | C++ | opencascade/NCollection_List.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/NCollection_List.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/NCollection_List.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 2002-04-17
// Created by: Alexander Kartomin (akm)
// Copyright (c) 2002-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License ver... | 29.057057 | 122 | 0.661947 | valgur |
4190e58ec84187168e965aa62b83e93614d989cd | 4,234 | hpp | C++ | cfft.hpp | pkeir/ctfft | c9ffd0cc5d83836df787f034f108822cbc586b26 | [
"BSL-1.0"
] | 15 | 2015-05-29T22:11:04.000Z | 2021-08-10T02:11:33.000Z | cfft.hpp | pkeir/ctfft | c9ffd0cc5d83836df787f034f108822cbc586b26 | [
"BSL-1.0"
] | null | null | null | cfft.hpp | pkeir/ctfft | c9ffd0cc5d83836df787f034f108822cbc586b26 | [
"BSL-1.0"
] | 3 | 2015-07-22T05:17:54.000Z | 2016-09-10T06:49:23.000Z | #ifndef _CONSTFFT_HPP_
#define _CONSTFFT_HPP_
/*
Header providing FFT implementation using C++11 tuples.
Copyright Paul Keir 2012-2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file license.txt or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef SZ
#error Please #define SZ ... | 25.353293 | 80 | 0.623051 | pkeir |
41921f2e5367fdb20d7d1d43ea1273060186b2b5 | 873 | cxx | C++ | GRB/src/GRB/GRBShell.cxx | fermi-lat/celestialSources | aaa2a2275b767088c23fde64b407afdac3493208 | [
"BSD-3-Clause"
] | null | null | null | GRB/src/GRB/GRBShell.cxx | fermi-lat/celestialSources | aaa2a2275b767088c23fde64b407afdac3493208 | [
"BSD-3-Clause"
] | null | null | null | GRB/src/GRB/GRBShell.cxx | fermi-lat/celestialSources | aaa2a2275b767088c23fde64b407afdac3493208 | [
"BSD-3-Clause"
] | 1 | 2017-08-31T21:10:27.000Z | 2017-08-31T21:10:27.000Z | //
// GRBShell: Class that describes the a Shell
// Authors: Nicola Omodei & Johann Cohen Tanugi
//
#include "GRBShell.h"
using namespace cst;
GRBShell::GRBShell(double g, double r, double dr, double e)
{
m_g = g;
m_r = r;
m_dr = dr;
m_e = e;
m_m = e/(g*c2);
// m_t = t;
m_... | 9.593407 | 75 | 0.515464 | fermi-lat |
4193a341964e17f06953f7280fd295ef959b8d0d | 2,489 | cpp | C++ | Problems/240_Search_a_2D_Matrix_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | 3 | 2019-09-21T16:25:44.000Z | 2021-08-29T20:43:57.000Z | Problems/240_Search_a_2D_Matrix_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | Problems/240_Search_a_2D_Matrix_II/main.cpp | camelboat/LeetCode_Archive | c29d263e068752a9ad355925f326b56f672bb584 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
//// Search Space Reduction
class Solution {
public:
bool searchMatrix(vector<vector<int>>& matrix, int target) {
if (matrix.size() == 0 || matrix[0].size() == 0) return false;
int pt_row = matrix.size()-1;
int pt_col = 0;
... | 30.728395 | 111 | 0.534753 | camelboat |
419a0aab494e915da7083289a2e14825469aaaf4 | 140 | cpp | C++ | Controller/CPU-related/Intel/Core/Core.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/CPU-related/Intel/Core/Core.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/CPU-related/Intel/Core/Core.cpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | 1 | 2021-07-16T21:01:26.000Z | 2021-07-16T21:01:26.000Z | /*
* Core.cpp
*
* Created on: 28.09.2010
* Author: sgebauer
*/
#include <stdint.h> //uint32_t
uint32_t g_dwValue1, g_dwValue2 ;
| 14 | 33 | 0.628571 | st-gb |
419cfbb44ec521a586e22a8dae862991ef30b0e4 | 2,685 | cpp | C++ | base/system_console.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | 3 | 2019-01-08T18:41:03.000Z | 2021-02-25T11:13:00.000Z | base/system_console.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | null | null | null | base/system_console.cpp | clarfonthey/laf | 305592194e3d89dfe6d16648bf84576a2f7b05a5 | [
"MIT"
] | null | null | null | // LAF Base Library
// Copyright (c) 2001-2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "base/system_console.h"
#ifdef _WIN32 // Windows needs some adjustments to the console if the... | 27.680412 | 92 | 0.681937 | clarfonthey |
419d97d9f391360f1af8676673c13f39926ea178 | 9,174 | cc | C++ | components/viz/service/frame_sinks/video_capture/interprocess_frame_pool.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/viz/service/frame_sinks/video_capture/interprocess_frame_pool.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/viz/service/frame_sinks/video_capture/interprocess_frame_pool.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"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 "components/viz/service/frame_sinks/video_capture/interprocess_frame_pool.h"
#include <algorithm>
#include "base/bind.h"
#include "base/bind_he... | 37.909091 | 85 | 0.722368 | mghgroup |
419fae4e9f3affd25518ec83360040d838e314aa | 632 | cpp | C++ | src/web.cpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 40 | 2021-05-25T04:21:49.000Z | 2022-02-19T05:05:45.000Z | src/web.cpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 4 | 2021-09-17T06:52:35.000Z | 2021-12-29T23:07:18.000Z | src/web.cpp | HellRok/Taylor | aa9d901b4db77395a0bde896500016353adcd73b | [
"MIT"
] | 1 | 2021-12-23T00:59:27.000Z | 2021-12-23T00:59:27.000Z | #ifdef __EMSCRIPTEN__
#include "mruby.h"
#include <emscripten/emscripten.h>
mrb_state *main_loop_mrb{};
mrb_value main_loop_self{};
char *main_loop_method{};
void real_main_loop() {
mrb_funcall(main_loop_mrb, main_loop_self, main_loop_method, 0);
}
mrb_value mrb_set_main_loop(mrb_state *mrb, mrb_value self) {
mr... | 23.407407 | 98 | 0.765823 | HellRok |
41a7485c074fb927c65eb887073c4456c636a288 | 8,939 | hpp | C++ | include/TMPro/KerningTable.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/TMPro/KerningTable.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/TMPro/KerningTable.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
#include "extern/beatsaber-hook/s... | 57.301282 | 230 | 0.731066 | marksteward |
41a9fa8ef0ce7b23231d9a4810ac4aebb7d09393 | 96,719 | cpp | C++ | scripts/dp88_misc.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | scripts/dp88_misc.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | scripts/dp88_misc.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /* Renegade Scripts.dll
Copyright 2017 Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at yo... | 33.594651 | 243 | 0.652974 | mpforums |
41abf5fe5cc98631a45e40b91d2d45a08c985d3a | 599 | cpp | C++ | reciver/main.cpp | talshadow/atto | 88e18a2968912e97d6fa20ad5e4fe8c2fa7d0a37 | [
"MIT"
] | null | null | null | reciver/main.cpp | talshadow/atto | 88e18a2968912e97d6fa20ad5e4fe8c2fa7d0a37 | [
"MIT"
] | null | null | null | reciver/main.cpp | talshadow/atto | 88e18a2968912e97d6fa20ad5e4fe8c2fa7d0a37 | [
"MIT"
] | null | null | null | #include <future>
#include <iostream>
#include <threadpool.hpp>
#include <tcpsocket.hpp>
int main() {
bclasses::TimeCalc timer;
try{
unsigned ThreadsCount = std::thread::hardware_concurrency() > 3 ? 4 : std::thread::hardware_concurrency() + 1;
auto pool = bclasses::ThreadPool::createInstance(ThreadsCount)... | 24.958333 | 115 | 0.671119 | talshadow |
41ac4570ed1c0bbb1661b83e22c7f48ceae77ad4 | 968 | cpp | C++ | benchmark/TastyLib/test/test_MD5.cpp | JaredCJR/ThesisTools | 41af365ca85da3f73f72880488477ec699b05923 | [
"Apache-2.0"
] | 1 | 2018-10-14T13:49:36.000Z | 2018-10-14T13:49:36.000Z | benchmark/TastyLib/test/test_MD5.cpp | JaredCJR/ThesisTools | 41af365ca85da3f73f72880488477ec699b05923 | [
"Apache-2.0"
] | null | null | null | benchmark/TastyLib/test/test_MD5.cpp | JaredCJR/ThesisTools | 41af365ca85da3f73f72880488477ec699b05923 | [
"Apache-2.0"
] | null | null | null | #include "gtest/gtest.h"
#include "tastylib/MD5.h"
using tastylib::MD5;
using std::string;
TEST(MD5, EmptyString) {
EXPECT_STREQ(MD5<>::getInstance()->hash("").c_str(),
"d41d8cd98f00b204e9800998ecf8427e");
}
TEST(MD5, ShortString) {
EXPECT_STREQ(MD5<>::getInstance()->hash("TastyLib").c_str()... | 33.37931 | 100 | 0.618802 | JaredCJR |
41ac8e5bc3416f9b8db6eafd49e88baa91aeaab5 | 6,194 | cpp | C++ | unit_tests/src/test_logical_paths_and_special_characters.cpp | mcv21/irods | 3c793a5acbbbe25b5f20aaeeca2609417855eee6 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/src/test_logical_paths_and_special_characters.cpp | mcv21/irods | 3c793a5acbbbe25b5f20aaeeca2609417855eee6 | [
"BSD-3-Clause"
] | null | null | null | unit_tests/src/test_logical_paths_and_special_characters.cpp | mcv21/irods | 3c793a5acbbbe25b5f20aaeeca2609417855eee6 | [
"BSD-3-Clause"
] | null | null | null | #include "catch.hpp"
#include "getRodsEnv.h"
#include "rodsPath.h"
#include "miscUtil.h"
#include "filesystem/path.hpp"
#include <cstring>
#include <string>
TEST_CASE("logical paths and special characters")
{
using namespace std::string_literals;
namespace fs = irods::experimental::filesystem;
rodsEnv... | 27.048035 | 73 | 0.576041 | mcv21 |
41ad2ca7c00b3e8d2c314ff8906b6972599b80aa | 1,600 | hpp | C++ | src/include/migraphx/par_dfor.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 72 | 2018-12-06T18:31:17.000Z | 2022-03-30T15:01:02.000Z | src/include/migraphx/par_dfor.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 1,006 | 2018-11-30T16:32:33.000Z | 2022-03-31T22:43:39.000Z | src/include/migraphx/par_dfor.hpp | aaronenyeshi/AMDMIGraphX | 87528938188f0247f3dfcc6ab9b83c22187109fd | [
"MIT"
] | 36 | 2019-05-07T10:41:46.000Z | 2022-03-28T15:59:56.000Z | #ifndef MIGRAPHX_GUARD_RTGLIB_PAR_DFOR_HPP
#define MIGRAPHX_GUARD_RTGLIB_PAR_DFOR_HPP
#include <migraphx/par_for.hpp>
#include <migraphx/functional.hpp>
#include <array>
#include <numeric>
namespace migraphx {
inline namespace MIGRAPHX_INLINE_NS {
template <class... Ts>
auto par_dfor(Ts... xs)
{
return [=](auto ... | 30.769231 | 94 | 0.5 | aaronenyeshi |
41affdb114725854740c6fd763b55990350c0165 | 4,463 | cpp | C++ | moos-ivp/ivp/src/lib_mbutil/Figlog.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_mbutil/Figlog.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_mbutil/Figlog.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | /*****************************************************************/
/* NAME: Michael Benjamin */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: Figlog.cpp */
/* DATE: Dec 16th 2010 ... | 28.608974 | 74 | 0.423482 | EasternEdgeRobotics |
41b61e874572aa7cdc522b06f6f2a9709f6a4fcb | 6,791 | hpp | C++ | src/flat_combining.hpp | schets/flat_combining | fb9a0db459062f4f34d359f5b4d521dd021686fe | [
"MIT"
] | 1 | 2016-06-28T14:02:18.000Z | 2016-06-28T14:02:18.000Z | src/flat_combining.hpp | schets/flat_combining | fb9a0db459062f4f34d359f5b4d521dd021686fe | [
"MIT"
] | null | null | null | src/flat_combining.hpp | schets/flat_combining | fb9a0db459062f4f34d359f5b4d521dd021686fe | [
"MIT"
] | null | null | null | #ifndef FLAT_COMBINING_HPP_
#define FLAT_COMBINING_HPP_
#include "utils.hpp"
#include <atomic>
#include <thread>
#include <iostream>
#include <algorithm>
using namespace std;
#include <type_traits>
#include <stdexcept>
#include <utility>
#include <stdint.h>
#include <stddef.h>
#include "message_alloc.hpp"
namesp... | 19.514368 | 70 | 0.64453 | schets |
41bab5e50385bfb9db7580c865fa9232ef7bb6ba | 781 | cpp | C++ | sorting/selectonSort.cpp | Kshitij993/algorithm | c88efae1e72d057d8dbbb8630ea26f4e5e9860d4 | [
"MIT"
] | null | null | null | sorting/selectonSort.cpp | Kshitij993/algorithm | c88efae1e72d057d8dbbb8630ea26f4e5e9860d4 | [
"MIT"
] | null | null | null | sorting/selectonSort.cpp | Kshitij993/algorithm | c88efae1e72d057d8dbbb8630ea26f4e5e9860d4 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
using namespace std;
vector<int> selectionSort(vector<int> arr)
{
int i,j,small,pos,temp;
for(i=0;i<arr.size();i++)
{
small=arr.at(i);
pos=i;
for(j=i+1;j<arr.size();j++)
{
if(small>arr.at(j))
{
smal... | 16.270833 | 42 | 0.408451 | Kshitij993 |
41bc133a5fc7a8a5fcca4bd0b55b7f402dd71fbc | 5,560 | cc | C++ | syzygy/trace/common/clock.cc | dandv/syzygy | 2444520c8e6e0b45b2f45b680d878d60b9636f45 | [
"Apache-2.0"
] | 1 | 2019-04-03T13:56:37.000Z | 2019-04-03T13:56:37.000Z | syzygy/trace/common/clock.cc | pombreda/syzygy | 7bac6936c0c28872bfabc10a1108e0157ff65d4a | [
"Apache-2.0"
] | 1 | 2015-03-19T18:20:25.000Z | 2015-03-19T18:20:25.000Z | syzygy/trace/common/clock.cc | sebmarchand/syzygy | 6c6db0e70e8161f1fec171138a825f6412e7778a | [
"Apache-2.0"
] | 1 | 2020-10-10T16:09:45.000Z | 2020-10-10T16:09:45.000Z | // Copyright 2013 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 31.590909 | 80 | 0.672842 | dandv |
41bc140502b6052a922be91a0472d904d77c2455 | 1,138 | cpp | C++ | src/UniSizeAllocator.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | 1 | 2016-07-04T16:07:57.000Z | 2016-07-04T16:07:57.000Z | src/UniSizeAllocator.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | null | null | null | src/UniSizeAllocator.cpp | mjssw/crux-net | 6dd2e2b36e9e6211b959f21cb34e3c7fb4845788 | [
"BSD-3-Clause"
] | null | null | null | #include "UniSizeAllocator.h"
namespace Crux
{
UniSizeAllocator::UniSizeAllocator( size_t size, int count )
{
//allocate all needed memory
m_pMemoryStart = malloc( size * count );
//link the free memory
LinkFreeElement( size, count );
}
UniSizeAllocator::~UniSizeAllocator()
{
free( m_pMemoryStart );
m_pMemory... | 20.321429 | 76 | 0.723199 | mjssw |
41bf4993d552b742af10d37c4aa996685258e728 | 2,255 | cpp | C++ | worldlib/src/world/Observation.cpp | GT-RAIL/spatial_temporal_learning | 7935b361909a159873e6589e994f0d0d5fb5fe49 | [
"BSD-3-Clause"
] | null | null | null | worldlib/src/world/Observation.cpp | GT-RAIL/spatial_temporal_learning | 7935b361909a159873e6589e994f0d0d5fb5fe49 | [
"BSD-3-Clause"
] | null | null | null | worldlib/src/world/Observation.cpp | GT-RAIL/spatial_temporal_learning | 7935b361909a159873e6589e994f0d0d5fb5fe49 | [
"BSD-3-Clause"
] | 1 | 2021-08-01T17:45:13.000Z | 2021-08-01T17:45:13.000Z | /*!
* \file Observation.cpp
* \brief World observation configuration information.
*
* An observation consists of seeing a given item on a given surface at a give pose.
*
* \author Russell Toris, WPI - rctoris@wpi.edu
* \date April 24, 2015
*/
// worldlib
#include "worldlib/world/Observation.h"
using namespace... | 18.94958 | 107 | 0.742794 | GT-RAIL |
41bfdf2cb1ffc9fb91ecf7acedc1ffe3a8d7216a | 901 | cpp | C++ | WinNTKline/KlineUtil/test/Testcase.cpp | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | 2 | 2015-03-08T01:06:39.000Z | 2015-03-14T15:33:59.000Z | WinNTKline/KlineUtil/test/Testcase.cpp | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | null | null | null | WinNTKline/KlineUtil/test/Testcase.cpp | TsyQi/Auto-control | d0dda0752d53d28f358346ee7ab217bf05118c96 | [
"Apache-2.0"
] | null | null | null | #include <ios>
#include <cstring>
#define EXCEPTION_MESSAGE_MAXLEN 256
template <class TestClass>
class TestCase
{
public:
TestCase<TestClass>() { testClass = new TestClass(); };
TestCase<TestClass> getInstance();
virtual ~TestCase<TestClass>();
private:
TestCase<TestClass> instance;
TestClass* te... | 18.770833 | 69 | 0.695893 | TsyQi |
41c60c54c461e3a1ddc05413b9dd6ce60c910755 | 201 | cpp | C++ | Filesystem/Filesystem/File.cpp | mscheffauer/file-system | a9abe1130ab1a8d5ab8ed1a41ba10d049d25a7c6 | [
"Unlicense"
] | null | null | null | Filesystem/Filesystem/File.cpp | mscheffauer/file-system | a9abe1130ab1a8d5ab8ed1a41ba10d049d25a7c6 | [
"Unlicense"
] | null | null | null | Filesystem/Filesystem/File.cpp | mscheffauer/file-system | a9abe1130ab1a8d5ab8ed1a41ba10d049d25a7c6 | [
"Unlicense"
] | null | null | null | #include "File.h"
File::File(FSNode* firstChild, FSNode* nextSibling) : FSNode(nullptr,nextSibling)
{
//do nothing else
}
void File::print(std::ostream& os) const
{
FSNode::print(os);
}
| 16.75 | 82 | 0.661692 | mscheffauer |
41ce0c934e61500893b53582750567cf701a6bda | 897 | cpp | C++ | RenderSystem.cpp | skylarbpayne/CESPong | 670348abb41d9c2048ecb510bf2ad06464b0efa4 | [
"Apache-2.0"
] | 1 | 2017-11-23T01:47:59.000Z | 2017-11-23T01:47:59.000Z | RenderSystem.cpp | skylarbpayne/CESPong | 670348abb41d9c2048ecb510bf2ad06464b0efa4 | [
"Apache-2.0"
] | null | null | null | RenderSystem.cpp | skylarbpayne/CESPong | 670348abb41d9c2048ecb510bf2ad06464b0efa4 | [
"Apache-2.0"
] | null | null | null | /** Render System Implementation
*
* @author Caleb Geiger
* Created: 8-2-2013
* Source File: RenderSystem.cpp
*/
#include "Entity.h"
#include "IRenderComponent.h"
#include "RenderSystem.h"
void RenderSystem::Update(unsigned int dt)
{
std::set<unsigned int>::iterator it;
for(it = _EntitiesToUpda... | 23.605263 | 76 | 0.666667 | skylarbpayne |
41cf957daad6b4215dbf9d617c54679e69c58f24 | 8,295 | hpp | C++ | erts/emulator/beam/jit/beam_jit_common.hpp | sdrees/otp | 05b589602aa41d0f4161fbdc3a810049a6ded285 | [
"Apache-2.0"
] | null | null | null | erts/emulator/beam/jit/beam_jit_common.hpp | sdrees/otp | 05b589602aa41d0f4161fbdc3a810049a6ded285 | [
"Apache-2.0"
] | null | null | null | erts/emulator/beam/jit/beam_jit_common.hpp | sdrees/otp | 05b589602aa41d0f4161fbdc3a810049a6ded285 | [
"Apache-2.0"
] | 2 | 2015-10-18T22:36:46.000Z | 2022-01-26T14:01:57.000Z | /*
* %CopyrightBegin%
*
* Copyright Ericsson AB 2021-2022. 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
*
... | 30.722222 | 79 | 0.602773 | sdrees |
41d069dec2882fbf50933bb83d79d6dbfdfaf225 | 3,678 | cpp | C++ | Code/External/GacLib/Tutorial/Console_Workflow/W04_InheritingCppClasses/Main.cpp | kasicass/gaclib-playground | 3f67caf6af09e6d2e8da7fcb1c67478789970568 | [
"MIT"
] | null | null | null | Code/External/GacLib/Tutorial/Console_Workflow/W04_InheritingCppClasses/Main.cpp | kasicass/gaclib-playground | 3f67caf6af09e6d2e8da7fcb1c67478789970568 | [
"MIT"
] | null | null | null | Code/External/GacLib/Tutorial/Console_Workflow/W04_InheritingCppClasses/Main.cpp | kasicass/gaclib-playground | 3f67caf6af09e6d2e8da7fcb1c67478789970568 | [
"MIT"
] | null | null | null | #include <VlppWorkflowCompiler.h>
using namespace vl;
using namespace vl::console;
using namespace vl::collections;
using namespace vl::parsing;
using namespace vl::reflection;
using namespace vl::reflection::description;
using namespace vl::workflow;
using namespace vl::workflow::emitter;
using namespace vl::workflow... | 19.256545 | 88 | 0.688418 | kasicass |
41d154e6e462f7121e0d04f6d3df4fd0d2b51c72 | 3,732 | cpp | C++ | src/lib/io/mpp.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | 2 | 2020-12-21T13:15:59.000Z | 2021-07-07T08:04:06.000Z | src/lib/io/mpp.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | null | null | null | src/lib/io/mpp.cpp | kinglee1982/FaceRecognitionTerminalDemo | 5e197011a87403d2433f691b8390ec340432b2be | [
"Apache-2.0"
] | 1 | 2022-03-24T01:08:42.000Z | 2022-03-24T01:08:42.000Z | #include "mpp.h"
#include <assert.h>
#include "lib/logger.h"
#include "mpi_sys.h"
#include "mpi_vb.h"
Mpp *Mpp::getInstance() {
static Mpp self;
return &self;
}
Mpp::Mpp() { HI_MPI_SYS_Exit(); }
bool Mpp::init(const VB_CONFIG_S *pVbConf) {
HI_MPI_VB_Exit();
HI_U32 s32Ret = HI_MPI_VB_SetConfig(pVbConf);
i... | 24.392157 | 76 | 0.695874 | kinglee1982 |
41d1a49c8263952116cd3f09b91e62d35d15759d | 663 | hpp | C++ | src/Utils/unreachable.hpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | 10 | 2018-06-20T05:12:59.000Z | 2021-11-23T02:56:04.000Z | src/Utils/unreachable.hpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | null | null | null | src/Utils/unreachable.hpp | Kerndog73/STELA | 11449b4bb440494f3ec4b1172b2688b5ec1bcd0a | [
"MIT"
] | null | null | null | //
// unreachable.hpp
// STELA
//
// Created by Indi Kernick on 29/11/18.
// Copyright © 2018 Indi Kernick. All rights reserved.
//
#ifndef stela_unreachable_hpp
#define stela_unreachable_hpp
#if defined(TEST_COVERAGE)
#pragma message "Doing nothing in unreachable contexts"
#define UNREACHABLE() void("LCOV_EXCL_... | 21.387097 | 71 | 0.761689 | Kerndog73 |
41d2de594e94610d310981d2d9955c2e5f04dc43 | 4,235 | cpp | C++ | lib/Alembic/AbcGeom/ILight.cpp | ryu-sw/alembic | 395450bad88f9d5ed6d20612e9201aac93a5eb54 | [
"MIT"
] | 921 | 2015-01-03T11:04:38.000Z | 2022-03-29T06:38:34.000Z | lib/Alembic/AbcGeom/ILight.cpp | ryu-sw/alembic | 395450bad88f9d5ed6d20612e9201aac93a5eb54 | [
"MIT"
] | 264 | 2015-01-05T17:15:45.000Z | 2022-03-28T20:14:51.000Z | lib/Alembic/AbcGeom/ILight.cpp | ryu-sw/alembic | 395450bad88f9d5ed6d20612e9201aac93a5eb54 | [
"MIT"
] | 276 | 2015-01-12T01:34:20.000Z | 2022-03-08T09:19:42.000Z | //-*****************************************************************************
//
// Copyright (c) 2009-2012,
// Sony Pictures Imageworks Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with ... | 31.842105 | 80 | 0.662338 | ryu-sw |
41d3db405a8176ffda7c992ff48a1602927050c5 | 2,154 | cpp | C++ | android-31/android/location/LocationProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/location/LocationProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/location/LocationProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./Criteria.hpp"
#include "../../JString.hpp"
#include "./LocationProvider.hpp"
namespace android::location
{
// Fields
jint LocationProvider::AVAILABLE()
{
return getStaticField<jint>(
"android.location.LocationProvider",
"AVAILABLE"
);
}
jint LocationProvider::OUT_OF_SERVICE()
{
return get... | 18.568966 | 81 | 0.68663 | YJBeetle |
41d3f07c16374b304cad471633177e42e2278ce9 | 562 | cpp | C++ | Core/UIScreen.cpp | anonymousthing/Sulphur | 65820d66ab8dd736e5ce64901177dbdf2ef48100 | [
"Unlicense"
] | null | null | null | Core/UIScreen.cpp | anonymousthing/Sulphur | 65820d66ab8dd736e5ce64901177dbdf2ef48100 | [
"Unlicense"
] | null | null | null | Core/UIScreen.cpp | anonymousthing/Sulphur | 65820d66ab8dd736e5ce64901177dbdf2ef48100 | [
"Unlicense"
] | null | null | null | #include "UIScreen.h"
#include "ResLoader.h"
UIScreen::UIScreen(Graphics *graphics) : Screen(graphics) {
}
UIScreen::~UIScreen() {
}
void UIScreen::addSprite(Sprite *sprite) {
sprites.push_back(sprite);
}
bool UIScreen::update(InputManager *inputManager) {
return false;
}
void UIScreen::draw(int delta) {
... | 19.37931 | 71 | 0.683274 | anonymousthing |
41d9344fbd8e01046ba4fb3141fa7a2df5576717 | 2,002 | cpp | C++ | src/analysis/event_definition.cpp | maximaximal/Distrac | 9c6b457247206a743ac0b140d0a03a419983c7bf | [
"MIT"
] | null | null | null | src/analysis/event_definition.cpp | maximaximal/Distrac | 9c6b457247206a743ac0b140d0a03a419983c7bf | [
"MIT"
] | null | null | null | src/analysis/event_definition.cpp | maximaximal/Distrac | 9c6b457247206a743ac0b140d0a03a419983c7bf | [
"MIT"
] | null | null | null | #include "distrac/headers.h"
#include "distrac/types.h"
#include <distrac/analysis/event_definition.hpp>
#include <distrac/analysis/property_definition.hpp>
namespace distrac {
event_definition::event_definition(std::string name,
uint8_t id,
std::st... | 29.441176 | 75 | 0.691309 | maximaximal |
41d9b4d96a5839202d40b1e8e3ed1e771f5291ec | 23,241 | cpp | C++ | implementations/ugene/src/plugins/api_tests/src/core/dbi/assembly/AssemblyDbiUnitTests.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/api_tests/src/core/dbi/assembly/AssemblyDbiUnitTests.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/api_tests/src/core/dbi/assembly/AssemblyDbiUnitTests.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* ... | 38.799666 | 122 | 0.735467 | r-barnes |
41d9c3662b13f387977b4b0dfa71f56f4526c0a0 | 14,646 | cc | C++ | utils/testing/compact_vector_test.cc | kstepanmpmg/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 665 | 2015-12-09T17:00:14.000Z | 2022-03-25T07:46:46.000Z | utils/testing/compact_vector_test.cc | Davletvm/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 797 | 2015-12-09T19:48:19.000Z | 2022-03-07T02:19:47.000Z | utils/testing/compact_vector_test.cc | matebestek/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 103 | 2015-12-25T04:39:29.000Z | 2022-02-03T02:55:22.000Z | /* compact_vector_test.cc
Jeremy Barnes, 3 March 2009
Copyright (c) 2009 Jeremy Barnes. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
Test for the compact_vector class.
*/
#define BOOST_TEST_MAIN
#define BOOST_TEST_DYN_LINK
#include "mldb/vfs/filter_st... | 23.699029 | 84 | 0.599549 | kstepanmpmg |
41e1ae28a545f19e0ba1b5f020f609cbac5e3ef1 | 1,850 | cpp | C++ | Basic Calculator.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | Basic Calculator.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | Basic Calculator.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | #include<iostream>
#include<cmath>
using namespace std;
int input(int &a,int &b)
{
a=0;
b=0;
cout<<"Enter Value Of First Number"<<endl;
cin>>a;
cout<<"Enter Value Of Second Number"<<endl;
cin>>b;
return a;
return b;
}
int add(int a,int b)
{
int c=a+b;
return c;
}
int subs(int a,int b)
{
... | 15.04065 | 84 | 0.511351 | Faiquekhan15 |
41e75173008d39d67c39e3840c8c3da72372e865 | 3,901 | cpp | C++ | Source/Messages/Message.cpp | CG-SS/Urho3D-Empty-Project | e8991c5ac57d2f3636169f37168c1f0606e8d58e | [
"MIT"
] | null | null | null | Source/Messages/Message.cpp | CG-SS/Urho3D-Empty-Project | e8991c5ac57d2f3636169f37168c1f0606e8d58e | [
"MIT"
] | null | null | null | Source/Messages/Message.cpp | CG-SS/Urho3D-Empty-Project | e8991c5ac57d2f3636169f37168c1f0606e8d58e | [
"MIT"
] | null | null | null | #include <Urho3D/Urho3DAll.h>
#include "Message.h"
#include "../Audio/AudioManagerDefs.h"
#include "../MyEvents.h"
#include "../UI/NuklearUI.h"
static struct nk_rect _outerRect;
static struct nk_rect _innerRect;
/// Construct.
Message::Message(Context* context) :
Object(context),
_messageTime(0)
{
Init();... | 36.12037 | 425 | 0.651115 | CG-SS |
41e9741be8f41f7fa5089578de004098bd1ab28d | 4,472 | hpp | C++ | glfw3_app/common/utils/handle_set.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/common/utils/handle_set.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/common/utils/handle_set.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | #pragma once
//=====================================================================//
/*! @file
@brief ハンドルによるリソース管理
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include <set>
#include <vector>
#include <boost/optional.hpp>
namespace utils {
//++++... | 24.98324 | 78 | 0.400939 | hirakuni45 |
41eeb5acce45e72baaa3fa58bb876f381ce364ad | 15,960 | hpp | C++ | framework/api/sys/common/ByteBuffer.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 6 | 2022-03-24T15:40:03.000Z | 2022-03-30T09:40:20.000Z | framework/api/sys/common/ByteBuffer.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 7 | 2022-03-24T18:53:52.000Z | 2022-03-30T10:15:50.000Z | framework/api/sys/common/ByteBuffer.hpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 1 | 2022-03-20T21:22:09.000Z | 2022-03-20T21:22:09.000Z | #pragma once
#include <string>
#include <vector>
#include <queue>
#include <deque>
#include <list>
#include <set>
#include <map>
#include <optional>
#include <type_traits>
namespace carpc {
#define __INTEGRAL_TYPE__( TYPE ) std::is_integral_v< TYPE >
#define __FLOATING_POINT_TYPE__( TYPE ) std::i... | 30.810811 | 136 | 0.557456 | dterletskiy |
41f57a9d25a394084196fd820c9a5469f04a0ee3 | 12,217 | cpp | C++ | src/webots/gui/WbHtmlExportDialog.cpp | awesome-archive/webots | 8e74fb8393d1e3a6540749afc492635c43f1b30f | [
"Apache-2.0"
] | 2 | 2019-07-12T13:47:44.000Z | 2019-08-17T02:53:54.000Z | src/webots/gui/WbHtmlExportDialog.cpp | golbh/webots | 8e74fb8393d1e3a6540749afc492635c43f1b30f | [
"Apache-2.0"
] | null | null | null | src/webots/gui/WbHtmlExportDialog.cpp | golbh/webots | 8e74fb8393d1e3a6540749afc492635c43f1b30f | [
"Apache-2.0"
] | 1 | 2019-07-13T17:58:04.000Z | 2019-07-13T17:58:04.000Z | // Copyright 1996-2018 Cyberbotics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 44.915441 | 128 | 0.770238 | awesome-archive |
41f7fd4f6d2601b32b16e82123d28a26eb79f900 | 1,137 | cpp | C++ | apps/dashboard/Dashboard.cpp | zSelimReborn/fairwindplusplus | aa0f754dc81414c21e5b3a8fc1f4a7b9b6bb6c20 | [
"Apache-2.0"
] | null | null | null | apps/dashboard/Dashboard.cpp | zSelimReborn/fairwindplusplus | aa0f754dc81414c21e5b3a8fc1f4a7b9b6bb6c20 | [
"Apache-2.0"
] | null | null | null | apps/dashboard/Dashboard.cpp | zSelimReborn/fairwindplusplus | aa0f754dc81414c21e5b3a8fc1f4a7b9b6bb6c20 | [
"Apache-2.0"
] | null | null | null | //
// Created by Raffaele Montella on 01/04/21.
//
#include "Dashboard.hpp"
#include <QDebug>
#include <QJsonArray>
#include <FairWindSdk/FairWind.hpp>
#include <FairWindSdk/ILayout.hpp>
#include "MainPage.hpp"
namespace fairwind::apps::dashboard {
void Dashboard::onCreate() { FairWindApp::onCreate(); }
void... | 21.055556 | 73 | 0.612137 | zSelimReborn |
41f8dad6223bc2c14bb2e44348b039e684d60288 | 2,271 | cpp | C++ | Tests/Unit/TestBadMemory.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 17 | 2018-03-29T15:24:40.000Z | 2022-01-10T05:01:09.000Z | Tests/Unit/TestBadMemory.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | null | null | null | Tests/Unit/TestBadMemory.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 3 | 2018-04-07T06:02:05.000Z | 2019-01-21T00:37:18.000Z | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "SceneTrackStatic.h"
#include "TestCommon.h"
#include "TestCRC.h"
extern "C" {
ST_PUBLIC int stInternal_SetMallocMaxSizeMb(int megaBytes);
}
bool MaybeRange(int x, int y, int n)
{
return... | 26.717647 | 162 | 0.667988 | EDFilms |
41fa6326c64e9df0b3a7916f2b56cb2dba59e394 | 3,180 | cpp | C++ | src/CGnuPlotStyleAdjacency.cpp | colinw7/CQGnuPlot | 8001b0a0d40c1fde8e5efe05ebe0c9b0541daa94 | [
"MIT"
] | null | null | null | src/CGnuPlotStyleAdjacency.cpp | colinw7/CQGnuPlot | 8001b0a0d40c1fde8e5efe05ebe0c9b0541daa94 | [
"MIT"
] | null | null | null | src/CGnuPlotStyleAdjacency.cpp | colinw7/CQGnuPlot | 8001b0a0d40c1fde8e5efe05ebe0c9b0541daa94 | [
"MIT"
] | 1 | 2019-04-01T13:08:45.000Z | 2019-04-01T13:08:45.000Z | #include <CGnuPlotStyleAdjacency.h>
#include <CGnuPlotAdjacencyStyleValue.h>
#include <CGnuPlotStyleValueMgr.h>
#include <CGnuPlotPlot.h>
#include <CGnuPlotGroup.h>
#include <CGnuPlotRenderer.h>
#include <CGnuPlotDevice.h>
#include <CGnuPlotStyleAdjacencyRenderer.h>
CGnuPlotStyleAdjacency::
CGnuPlotStyleAdjacency() :
... | 21.342282 | 92 | 0.652516 | colinw7 |
41ff4a5d750d5766f9b4f1925ba290f50a6404ee | 1,718 | cpp | C++ | books/tech/cpp/std-11/a_williams-cpp_concurrency_in_action/code/ch_04-sync_concurrent_operations/02-using_condition_variable/main.cpp | ordinary-developer/education | 1b1f40dacab873b28ee01dfa33a9bd3ec4cfed58 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | books/techno/cpp/_upper-intermediate/cpp_concurrency_in_action_a_williams/code/ch_4-SYNCHRONIZING_CONCURRENT_OPERATIONS/02-using_condition_variable/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | books/techno/cpp/_upper-intermediate/cpp_concurrency_in_action_a_williams/code/ch_4-SYNCHRONIZING_CONCURRENT_OPERATIONS/02-using_condition_variable/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | #include <mutex>
#include <condition_variable>
#include <thread>
#include <queue>
#include <iostream>
#include <chrono>
bool more_data_to_prepare() { return false; }
struct data_chunk { };
data_chunk prepare_data() { return data_chunk(); }
void process(data_chunk&) {
std::cout << "[OK] - begin processing data"... | 26.030303 | 68 | 0.587311 | ordinary-developer |
41ffcf0434ec01fa7066425ec09ebc319d2884ed | 2,393 | hpp | C++ | Engine/Code/Engine/Services/IConsoleService.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | null | null | null | Engine/Code/Engine/Services/IConsoleService.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 20 | 2021-11-29T14:09:33.000Z | 2022-03-26T20:12:44.000Z | Engine/Code/Engine/Services/IConsoleService.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Services/IService.hpp"
#include <filesystem>
#include <string>
struct ConsoleCommand { virtual ~ConsoleCommand() noexcept = default; };
struct ConsoleCommandList { virtual ~ConsoleCommandList() noexcept = default; };
class IConsoleService : public IService {
public:
virtual ~IConso... | 45.150943 | 98 | 0.7313 | cugone |
5100742544b8dbd797d993bf13aa46f420702b2c | 506 | cpp | C++ | src/Base/GHSoundProfileTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/Base/GHSoundProfileTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | src/Base/GHSoundProfileTransition.cpp | GoldenHammerSoftware/GH | 757213f479c0fc80ed1a0f59972bf3e9d92b7526 | [
"MIT"
] | null | null | null | #include "GHSoundProfileTransition.h"
#include "GHSoundVolumeMgr.h"
GHSoundProfileTransition::GHSoundProfileTransition(GHSoundVolumeMgr& volumeMgr, const GHSoundProfile& profile)
: mVolumeMgr(volumeMgr)
, mSoundProfile(profile)
{
}
void GHSoundProfileTransition::activate(void)
{
mVolumeMgr.setEnvironmentProfile(mS... | 24.095238 | 110 | 0.818182 | GoldenHammerSoftware |
eeddcaa6d6cdddeb3dcc43a0fcd2b6166bf0e8f9 | 1,631 | cc | C++ | src/abc120/decayed_bridges.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc120/decayed_bridges.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc120/decayed_bridges.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include "decayed_bridges.h"
#define MAX_N 100000
using namespace std;
long long par[MAX_N];
int size[MAX_N];
void init(long long n) {
for(int i=0;i<n;i++) {
par[i] = i;
size[i] = 1;
}
}
// rootを返す
long long find(long long x) {
if(par[x] == x) ... | 18.325843 | 91 | 0.561619 | nryotaro |
eede03fe3b9b3784d28016e3977bcf63b4408ebc | 1,448 | cpp | C++ | project/source/game/net/PlayerInfo.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | project/source/game/net/PlayerInfo.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | project/source/game/net/PlayerInfo.cpp | ntnt/carpg | f26c43c76d39f2ec2c51bd929f1b85f3c5197337 | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "GameCore.h"
#include "PlayerInfo.h"
#include "SaveState.h"
#include "NetChangePlayer.h"
#include "Net.h"
//=================================================================================================
PlayerInfo::PlayerInfo() : pc(nullptr), u(nullptr), clas(Class::INVALID), left(LEFT_NO)... | 22.276923 | 149 | 0.450967 | ntnt |
eee74198c07346542696b84e61d04976906622dd | 2,701 | ipp | C++ | boost/archive/impl/archive_pointer_oserializer.ipp | mike-code/boost_1_38_0 | 7ff8b2069344ea6b0b757aa1f0778dfb8526df3c | [
"BSL-1.0"
] | 4 | 2018-12-06T00:55:34.000Z | 2022-02-06T03:05:51.000Z | boost/archive/impl/archive_pointer_oserializer.ipp | mike-code/boost_1_38_0 | 7ff8b2069344ea6b0b757aa1f0778dfb8526df3c | [
"BSL-1.0"
] | 1 | 2016-03-31T20:56:08.000Z | 2016-04-18T08:56:40.000Z | boost/archive/impl/archive_pointer_oserializer.ipp | mike-code/boost_1_38_0 | 7ff8b2069344ea6b0b757aa1f0778dfb8526df3c | [
"BSL-1.0"
] | null | null | null | /////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// archive_pointer_oserializer.ipp:
// (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or cop... | 30.693182 | 80 | 0.688264 | mike-code |
eee8cd824197fc13d546c76d907e9d7020521990 | 4,050 | cpp | C++ | apps/coprobber/dscrsimulation/OptimalUnit.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 5 | 2020-08-03T09:43:26.000Z | 2022-01-11T08:28:30.000Z | apps/coprobber/dscrsimulation/OptimalUnit.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | null | null | null | apps/coprobber/dscrsimulation/OptimalUnit.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 7 | 2017-07-31T13:01:28.000Z | 2021-05-16T10:15:49.000Z | #include "OptimalUnit.h"
#include "GLUtil.h"
/*------------------------------------------------------------------------------
| Implementation
------------------------------------------------------------------------------*/
OptimalUnit::OptimalUnit( AbstractionGraphEnvironment *env, graphState initial_state, unsigned ... | 33.196721 | 195 | 0.708642 | AaronTrip |
eeed2d7786df5bc0e33ac5019e7fe8dc200bcb72 | 938 | cpp | C++ | mcrouter/lib/AuxiliaryCPUThreadPool.cpp | Ngo-The-Trung/mcrouter | 277e5be62529e9961c24ca70a172c153491521b8 | [
"BSD-3-Clause"
] | null | null | null | mcrouter/lib/AuxiliaryCPUThreadPool.cpp | Ngo-The-Trung/mcrouter | 277e5be62529e9961c24ca70a172c153491521b8 | [
"BSD-3-Clause"
] | null | null | null | mcrouter/lib/AuxiliaryCPUThreadPool.cpp | Ngo-The-Trung/mcrouter | 277e5be62529e9961c24ca70a172c153491521b8 | [
"BSD-3-Clause"
] | 1 | 2021-03-16T04:36:39.000Z | 2021-03-16T04:36:39.000Z | /*
* Copyright (c) 2017, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include "Au... | 26.055556 | 79 | 0.729211 | Ngo-The-Trung |
eeed8e9e036351e0cb78c590c47e4a95bdc7b64a | 2,180 | hpp | C++ | ui/include/ui/bordered.hpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | 1 | 2019-07-13T18:43:38.000Z | 2019-07-13T18:43:38.000Z | ui/include/ui/bordered.hpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | null | null | null | ui/include/ui/bordered.hpp | dobson156/irc_client | 9afc098087a64c88f599e3dae956b7be1407bb96 | [
"BSL-1.0"
] | null | null | null |
// Copyright Joseph Dobson 2014
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOARDERED_HPP
#define BOARDERED_HPP
#include "util.hpp"
#include "window.hpp"
#include <utility> //... | 27.594937 | 61 | 0.668807 | dobson156 |
eef62976daacda72254ac6c0b8dddbf301a56545 | 30,140 | cc | C++ | tools/cddl/parse.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2020-09-22T05:59:36.000Z | 2020-09-22T05:59:36.000Z | tools/cddl/parse.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | null | null | null | tools/cddl/parse.cc | gtalis/openscreen | 9b28b9695df98d310c2271eaa65d20cc6d224203 | [
"BSD-3-Clause"
] | 1 | 2022-02-03T11:05:44.000Z | 2022-02-03T11:05:44.000Z | // Copyright 2018 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 "tools/cddl/parse.h"
#include <unistd.h>
#include <algorithm>
#include <iostream>
#include <memory>
#include <sstream>
#include <vector>
#incl... | 27.055655 | 80 | 0.594758 | gtalis |
eef6b8619dfa29eef8ca4341b43f7ed480f3349f | 8,563 | hpp | C++ | src/model/FuelFactors.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 354 | 2015-01-10T17:46:11.000Z | 2022-03-29T10:00:00.000Z | src/model/FuelFactors.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 3,243 | 2015-01-02T04:54:45.000Z | 2022-03-31T17:22:22.000Z | src/model/FuelFactors.hpp | muehleisen/OpenStudio | 3bfe89f6c441d1e61e50b8e94e92e7218b4555a0 | [
"blessing"
] | 157 | 2015-01-07T15:59:55.000Z | 2022-03-30T07:46:09.000Z | /***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without m... | 32.934615 | 125 | 0.745183 | muehleisen |
eef83394a8eae91eea5d49a63d9e11772aa01260 | 348,659 | cpp | C++ | libraries/Talkie/src/Vocab_US_Large.cpp | kgranat/nookduino-arduino | ac98c43cd7cba1485e9992f6b972b6a1683c975d | [
"CC0-1.0"
] | null | null | null | libraries/Talkie/src/Vocab_US_Large.cpp | kgranat/nookduino-arduino | ac98c43cd7cba1485e9992f6b972b6a1683c975d | [
"CC0-1.0"
] | null | null | null | libraries/Talkie/src/Vocab_US_Large.cpp | kgranat/nookduino-arduino | ac98c43cd7cba1485e9992f6b972b6a1683c975d | [
"CC0-1.0"
] | 1 | 2021-09-06T06:20:07.000Z | 2021-09-06T06:20:07.000Z | // Talkie library
// Copyright 2011 Peter Knight
// This code is released under GPLv2 license.
//
// Armin Joachimsmeyer 11/2018 converted to .c and .h files and made them unique.
//
// The following phrases are derived from VM61002/3/4/5 ROMs
//
// A male voice with a US accent.
//
// These phrases have a very militar... | 549.935331 | 1,499 | 0.795141 | kgranat |
eef84bdb66fe3dcf516de4188d684250987ca952 | 3,513 | cpp | C++ | search/search_tests/house_numbers_matcher_test.cpp | benwixen/tripfinger-ios | bbca1c83269a7015100d43997569b543025a4087 | [
"Apache-2.0"
] | null | null | null | search/search_tests/house_numbers_matcher_test.cpp | benwixen/tripfinger-ios | bbca1c83269a7015100d43997569b543025a4087 | [
"Apache-2.0"
] | 13 | 2015-09-28T13:59:23.000Z | 2015-10-08T20:12:45.000Z | search/search_tests/house_numbers_matcher_test.cpp | prebenl/tripfinger | bbca1c83269a7015100d43997569b543025a4087 | [
"Apache-2.0"
] | null | null | null | #include "testing/testing.hpp"
#include "search/v2/house_numbers_matcher.hpp"
#include "std/vector.hpp"
#include "base/string_utils.hpp"
using namespace strings;
using namespace search::v2;
namespace
{
void NormalizeHouseNumber(string const & s, vector<string> & ts)
{
vector<strings::UniString> tokens;
search:... | 32.831776 | 90 | 0.658127 | benwixen |
eef8a10b3f041d31bff8c79ba1c89ce3f4ee9c0e | 12,533 | cpp | C++ | src/ui_dialog.cpp | libtcod/treeburner | ace0eab18d55db77475f509f1bcd8b647cc46c3b | [
"MIT"
] | null | null | null | src/ui_dialog.cpp | libtcod/treeburner | ace0eab18d55db77475f509f1bcd8b647cc46c3b | [
"MIT"
] | null | null | null | src/ui_dialog.cpp | libtcod/treeburner | ace0eab18d55db77475f509f1bcd8b647cc46c3b | [
"MIT"
] | null | null | null |
/*
* Copyright (c) 2010 Jice
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions... | 34.149864 | 125 | 0.659698 | libtcod |
eeff81085e8dcd68914fa29ef6614c43b9f15b25 | 970 | cpp | C++ | src/Bus.cpp | ecrandz/IoTManager | 5d0eb71cfccccf9020b28be8c9fa5837988fb6ba | [
"MIT"
] | 37 | 2020-08-17T10:39:06.000Z | 2022-02-17T16:18:47.000Z | src/Bus.cpp | ecrandz/IoTManager | 5d0eb71cfccccf9020b28be8c9fa5837988fb6ba | [
"MIT"
] | 11 | 2020-10-20T14:48:07.000Z | 2022-02-04T07:05:05.000Z | src/Bus.cpp | ecrandz/IoTManager | 5d0eb71cfccccf9020b28be8c9fa5837988fb6ba | [
"MIT"
] | 43 | 2020-06-19T22:40:14.000Z | 2022-03-05T05:29:07.000Z | #include "Bus.h"
#include "Class/NotAsync.h"
#include "Global.h"
void busInit() {
myNotAsyncActions->add(
do_BUSSCAN, [&](void*) {
String tmp = i2c_scan();
if (tmp == "error") {
tmp = i2c_scan();
Serial.println(tmp);
jsonWriteStr(confi... | 23.658537 | 66 | 0.442268 | ecrandz |
e100bd2ea767e4333201cc64650afd07cd801c88 | 1,204 | cpp | C++ | src/engine/ui/src/ui/widgets/ui_paged_pane.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | 1 | 2019-11-27T20:23:45.000Z | 2019-11-27T20:23:45.000Z | src/engine/ui/src/ui/widgets/ui_paged_pane.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | null | null | null | src/engine/ui/src/ui/widgets/ui_paged_pane.cpp | lye/halley | 16b6c9783e4b21377f902a9d02366c1f19450a21 | [
"Apache-2.0"
] | null | null | null | #include <halley/ui/widgets/ui_paged_pane.h>
using namespace Halley;
UIPagedPane::UIPagedPane(String id, int nPages, Vector2f minSize)
: UIWidget(id, minSize, UISizer())
{
pages.reserve(nPages);
for (int i = 0; i < nPages; ++i) {
addPage();
}
setPage(0);
}
void UIPagedPane::addPage()
{
pages.push_back(std::m... | 21.122807 | 107 | 0.686877 | lye |
e1022e833de59ed3edbaa717553130aea9605bf2 | 3,181 | hpp | C++ | Include/FishEngine/GameObject.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-12-20T02:38:44.000Z | 2018-12-20T02:38:44.000Z | Include/FishEngine/GameObject.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | null | null | null | Include/FishEngine/GameObject.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-10-25T19:40:22.000Z | 2018-10-25T19:40:22.000Z | #pragma once
#include "FishEngine.hpp"
#include "Object.hpp"
#include "Component.hpp"
#include "Transform.hpp"
#include <list>
#include <vector>
#include <type_traits>
#include <typeinfo>
namespace FishEngine
{
class Component;
class Transform;
class RectTransform;
class Scene;
class Prefab;
enum class GameO... | 22.401408 | 130 | 0.674002 | yushroom |
e1031ef31be38de1c9e4f031142efcef594e8310 | 1,246 | cpp | C++ | plugins/x11input/src/focus/looked_up_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/x11input/src/focus/looked_up_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/x11input/src/focus/looked_up_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/input/key/code.hpp>
#include <sge/x11input/focus/char_vector.hpp>
#include <sge/x11in... | 34.611111 | 100 | 0.752006 | cpreh |
e1055f1be42413fee23c4b05d61a057c8cc3481d | 3,171 | hpp | C++ | core/futex.hpp | luluxing/LiveGraph | eea5a40ce6ee443f901e44323c1119f59113eaf3 | [
"Apache-2.0"
] | 17 | 2021-02-25T03:21:47.000Z | 2022-03-14T10:14:51.000Z | core/futex.hpp | luluxing/LiveGraph | eea5a40ce6ee443f901e44323c1119f59113eaf3 | [
"Apache-2.0"
] | 1 | 2021-04-05T02:44:01.000Z | 2021-04-05T14:37:41.000Z | core/futex.hpp | luluxing/LiveGraph | eea5a40ce6ee443f901e44323c1119f59113eaf3 | [
"Apache-2.0"
] | 5 | 2021-03-10T22:39:54.000Z | 2021-08-16T03:22:32.000Z | /* Copyright 2020 Guanyu Feng, Tsinghua University
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | 33.378947 | 120 | 0.534216 | luluxing |
e1093f033d35e2d512c8ce6855b3ef357662c325 | 7,138 | cpp | C++ | swri_profiler/src/profiler.cpp | swri-robotics/swri_profiler | 5d8fd4ef9604c8038dadf885c70864de5f4194e8 | [
"BSD-3-Clause"
] | 55 | 2016-03-03T10:35:11.000Z | 2022-02-16T06:30:08.000Z | swri_profiler/src/profiler.cpp | swri-robotics/swri_profiler | 5d8fd4ef9604c8038dadf885c70864de5f4194e8 | [
"BSD-3-Clause"
] | 12 | 2016-03-03T18:50:20.000Z | 2022-01-10T14:23:13.000Z | swri_profiler/src/profiler.cpp | swri-robotics/swri_profiler | 5d8fd4ef9604c8038dadf885c70864de5f4194e8 | [
"BSD-3-Clause"
] | 17 | 2015-12-10T23:28:04.000Z | 2021-12-22T18:09:45.000Z | #include <ros/this_node.h>
#include <swri_profiler/profiler.h>
#include <ros/publisher.h>
#include <swri_profiler_msgs/ProfileIndex.h>
#include <swri_profiler_msgs/ProfileIndexArray.h>
#include <swri_profiler_msgs/ProfileData.h>
#include <swri_profiler_msgs/ProfileDataArray.h>
namespace spm = swri_profiler_msgs;
nam... | 31.724444 | 89 | 0.704399 | swri-robotics |
e10c26a08ce13e087fe240989db7e3acd6449885 | 2,559 | cpp | C++ | tests/poker/hand.test.cpp | chevtek/poker | 66a1c4274508e055c4b987ab8271fa3e95238fba | [
"MIT"
] | null | null | null | tests/poker/hand.test.cpp | chevtek/poker | 66a1c4274508e055c4b987ab8271fa3e95238fba | [
"MIT"
] | null | null | null | tests/poker/hand.test.cpp | chevtek/poker | 66a1c4274508e055c4b987ab8271fa3e95238fba | [
"MIT"
] | 3 | 2020-08-27T19:12:56.000Z | 2022-03-09T11:13:46.000Z | #include <doctest/doctest.h>
#include <iostream>
#include <poker/hand.hpp>
#include <poker/debug/card.hpp>
#include <poker/debug/hand.hpp>
TEST_CASE("high/low hand evaluation") {
// TODO: test .cards() and .strength()
std::array<poker::card, 7> all_cards[] = {
poker::debug::make_cards<7>("Ac Ac Ac Ac ... | 39.369231 | 60 | 0.619383 | chevtek |
e10c6016a4e6220a0aa7f1d0759cdfd2f7dfcaa5 | 436 | cpp | C++ | Source/FSD/Private/TerrainScannerSplineMesh.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/TerrainScannerSplineMesh.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/TerrainScannerSplineMesh.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "TerrainScannerSplineMesh.h"
class UHealthComponentBase;
void UTerrainScannerSplineMesh::SetVisibleOnScanner(bool InShowOnScanner) {
}
void UTerrainScannerSplineMesh::OnOwnerDeath(UHealthComponentBase* InHealthComponent) {
}
UTerrainScannerSplineMesh::UTerrainScannerSplineMesh() {
this->bVisibleAtBegin... | 24.222222 | 87 | 0.793578 | trumank |
e10e37cf375694158d00e2fbfb92448f6d45f770 | 1,356 | hpp | C++ | Sources/Models/Shapes/ModelRectangle.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Models/Shapes/ModelRectangle.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | Sources/Models/Shapes/ModelRectangle.hpp | liuping1997/Acid | 0b28d63d03ead41047d5881f08e3b693a4e6e63f | [
"MIT"
] | null | null | null | #pragma once
#include "Models/Model.hpp"
namespace acid
{
/**
* @brief Resource that represents a rectangle model.
*/
class ACID_EXPORT ModelRectangle :
public Model
{
public:
/**
* Creates a new rectangle model, or finds one with the same values.
* @param metadata The metadata to decode values from.
* @ret... | 28.25 | 119 | 0.724926 | liuping1997 |
e1112baf41ec4b8cc2b0a8e137c092d5342b50a5 | 1,266 | cpp | C++ | Level 3/Tableaux avances/Carre magique/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 31 | 2018-10-30T09:54:23.000Z | 2022-03-02T21:45:51.000Z | Level 3/Tableaux avances/Carre magique/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 2 | 2016-12-24T23:39:20.000Z | 2017-07-02T22:51:28.000Z | Level 3/Tableaux avances/Carre magique/main.cpp | Wurlosh/France-ioi | f5fb36003cbfc56a2e7cf64ad43c4452f086f198 | [
"MIT"
] | 30 | 2018-10-25T12:28:36.000Z | 2022-01-31T14:31:02.000Z | #include <bits/stdc++.h>
#define N 100
using namespace std;
int tab[N][N];
int v[100000]={0};
int main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
int n;
cin>>n;
for(int i=0;i<n;++i)
for(int j=0;j<n;++j)
cin>>tab[i][j];
int sum=0;
for(int i=0;i<n;++i)
for(int j=0;j<... | 16.441558 | 43 | 0.375197 | Wurlosh |
e113f125c283860e3d2712da7620a96eb30d985f | 5,540 | cxx | C++ | main/sdext/source/presenter/PresenterPaintManager.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sdext/source/presenter/PresenterPaintManager.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sdext/source/presenter/PresenterPaintManager.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 32.209302 | 87 | 0.66444 | Grosskopf |
e11559364997b73adc6c936e04e5cfdde8fdf4a9 | 891 | cpp | C++ | Dynamic Programming/Longest Increasing Subsequence/SolutionbyPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 261 | 2019-09-30T19:47:29.000Z | 2022-03-29T18:20:07.000Z | Dynamic Programming/Longest Increasing Subsequence/SolutionbyPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 647 | 2019-10-01T16:51:29.000Z | 2021-12-16T20:39:44.000Z | Dynamic Programming/Longest Increasing Subsequence/SolutionbyPooja.cpp | Mdanish777/Programmers-Community | b5ca9582fc1cd4337baa7077ff62130a1052583f | [
"MIT"
] | 383 | 2019-09-30T19:32:07.000Z | 2022-03-24T16:18:26.000Z | /*
A Sequence is given and you need to find the length of the longest subsequence of a given sequence such that all elements of the subsequence are
sorted in increasing order.
Input : {3, 10, 2, 1, 20}
Output : 3
*/
#include <cstring>
#include <iostream>
using namespace std;
int t[1001][1001];... | 18.5625 | 148 | 0.494949 | Mdanish777 |
e11636f0f73d467d88bd28836a94f291a44e3766 | 28,577 | hpp | C++ | boost/lib/include/boost/geometry/index/detail/rtree/rstar/insert.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 101 | 2019-02-12T12:53:18.000Z | 2022-03-14T14:14:38.000Z | boost/lib/include/boost/geometry/index/detail/rtree/rstar/insert.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 157 | 2019-02-06T05:04:20.000Z | 2022-03-31T21:50:28.000Z | boost/lib/include/boost/geometry/index/detail/rtree/rstar/insert.hpp | mamil/demo | 32240d95b80175549e6a1904699363ce672a1591 | [
"MIT"
] | 15 | 2019-05-11T04:03:35.000Z | 2022-02-12T18:53:47.000Z | // Boost.Geometry Index
//
// R-tree R*-tree insert algorithm implementation
//
// Copyright (c) 2011-2015 Adam Wulkiewicz, Lodz, Poland.
//
// This file was modified by Oracle on 2019.
// Modifications copyright (c) 2019 Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Orac... | 42.148968 | 154 | 0.608461 | mamil |
e116df43d7092dad93ba55cf5d14982f0b41c639 | 871 | hpp | C++ | src/include/guinsoodb/main/relation/subquery_relation.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/main/relation/subquery_relation.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/main/relation/subquery_relation.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/main/relation/subquery_relation.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/main/relation.hpp"
namespac... | 22.333333 | 80 | 0.595867 | GuinsooLab |
e1170471f7a5a1e79d564a37e4febb3ea3e76907 | 6,427 | cpp | C++ | hackathon/zhi/IVSCC_scaling_swc/IVSCC_scaling_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/zhi/IVSCC_scaling_swc/IVSCC_scaling_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | hackathon/zhi/IVSCC_scaling_swc/IVSCC_scaling_plugin.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | /* IVSCC_scaling_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2014-10-30 : by Zhi Zhou
*/
#include "v3d_message.h"
#include <vector>
#include "IVSCC_scaling_plugin.h"
#include <iostream>
#include "../IVSCC_sort_swc/openSWCDialog.h"
#include "ui_SWC_scaling.h"
using namespace std;
Q_EXPORT_PLUGI... | 31.660099 | 162 | 0.526373 | zzhmark |
e124a838926bcb7405d64bc38b090f66d0243763 | 355 | cpp | C++ | 867-transpose-matrix/867-transpose-matrix.cpp | phaneesh707/LeetCode_Problems | e17db0454b21993aec734bbc5dd3a862c0229acb | [
"MIT"
] | null | null | null | 867-transpose-matrix/867-transpose-matrix.cpp | phaneesh707/LeetCode_Problems | e17db0454b21993aec734bbc5dd3a862c0229acb | [
"MIT"
] | null | null | null | 867-transpose-matrix/867-transpose-matrix.cpp | phaneesh707/LeetCode_Problems | e17db0454b21993aec734bbc5dd3a862c0229acb | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> transpose(vector<vector<int>>& matrix) {
int m = matrix.size(),n=matrix[0].size();
vector<vector<int>> a(n,vector<int> (m,0));
for(int i=0;i<m;i++){
for(int j=0;j<n;j++){
a[j][i] = matrix[i][j];
}
}
... | 25.357143 | 64 | 0.44507 | phaneesh707 |
e125391549ed93e6a9314f6875e8d8600f000907 | 4,662 | hpp | C++ | include/codegen/include/System/Reflection/PropertyAttributes.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Reflection/PropertyAttributes.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Reflection/PropertyAttributes.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:09:43 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.Enum
#include "System/Enum.hpp"
#include "utils/il2cpp-utils.hpp"
// Completed in... | 62.16 | 106 | 0.775633 | Futuremappermydud |