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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cb6cba189bc797f73a004a5045c8242f5be2ae05 | 2,661 | hpp | C++ | api/mraa/common.hpp | rwaldron/mraa | df05dc58caf3985ef2c3b86a635f4579150e984f | [
"MIT"
] | null | null | null | api/mraa/common.hpp | rwaldron/mraa | df05dc58caf3985ef2c3b86a635f4579150e984f | [
"MIT"
] | null | null | null | api/mraa/common.hpp | rwaldron/mraa | df05dc58caf3985ef2c3b86a635f4579150e984f | [
"MIT"
] | 2 | 2015-03-29T23:20:44.000Z | 2021-03-29T17:22:43.000Z | /*
* Author: Thomas Ingleby <thomas.c.ingleby@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* with... | 27.43299 | 79 | 0.725667 |
cb6ef70105e91a1081e5eb9f7d6764262921806a | 5,114 | cpp | C++ | messageprovider.cpp | dhdhxji/SBP_client | 64ec057bd73c9320b7aa38b55eaaec3740a5e9ca | [
"MIT"
] | null | null | null | messageprovider.cpp | dhdhxji/SBP_client | 64ec057bd73c9320b7aa38b55eaaec3740a5e9ca | [
"MIT"
] | null | null | null | messageprovider.cpp | dhdhxji/SBP_client | 64ec057bd73c9320b7aa38b55eaaec3740a5e9ca | [
"MIT"
] | null | null | null | #include "messageprovider.h"
MessageProvider::MessageProvider(QObject *parent) : QObject(parent)
{
_socket = new QTcpSocket(this);
connect(_socket, &QIODevice::readyRead, this, &MessageProvider::processMessage);
connect(_socket, &QAbstractSocket::disconnected,
[=](){emit this->disconnected();}... | 20.873469 | 90 | 0.56316 |
cb6fc702e9b73092ec3977740d469c67965ed898 | 21,223 | cpp | C++ | Source/Modio/Private/ModioSubsystem.cpp | modio/modio-ue4 | f7c16749def7a33a0e3ca77f1dc077d57d0b972e | [
"MIT"
] | 19 | 2020-10-21T16:55:52.000Z | 2022-03-27T10:21:23.000Z | Source/Modio/Private/ModioSubsystem.cpp | modio/modio-ue4 | f7c16749def7a33a0e3ca77f1dc077d57d0b972e | [
"MIT"
] | 6 | 2020-10-16T09:38:30.000Z | 2021-11-15T23:43:59.000Z | Source/Modio/Private/ModioSubsystem.cpp | modio/modio-ue4 | f7c16749def7a33a0e3ca77f1dc077d57d0b972e | [
"MIT"
] | 1 | 2021-02-21T15:02:24.000Z | 2021-02-21T15:02:24.000Z | /*
* Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io>
*
* This file is part of the mod.io UE4 Plugin.
*
* Distributed under the MIT License. (See accompanying file LICENSE or
* view online at <https://github.com/modio/modio-ue4/blob/main/LICENSE>)
*
*/
#include "ModioSubsystem.h"
#include "Engine/Engin... | 35.195688 | 120 | 0.766433 |
cb6fdd5a0491cc8422de48d74f399a9c03b6a21c | 10,021 | hpp | C++ | fon9/Subr.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/Subr.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/Subr.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | /// \file fon9/Subr.hpp
/// \author fonwinz@gmail.com
#ifndef __fon9_Subr_hpp__
#define __fon9_Subr_hpp__
#include "fon9/DummyMutex.hpp"
#include "fon9/MustLock.hpp"
#include "fon9/SortedVector.hpp"
namespace fon9 {
/// Subject/Subscriber 註冊取得的 ID, 用來取消註冊時使用.
/// - 此ID的編碼方式為: 在新的訂閱者註冊時, 為目前最後一個ID+1, 如果現在沒有任何訂閱者則使用1.... | 34.67474 | 100 | 0.621295 |
cb701cc068ff1606fe3df41a4d1d1c11b984bb29 | 5,141 | hpp | C++ | misc/avisynth-reader/avisynth/distrib/include/SoftWire/RegisterAllocator.hpp | trondkr/tools | ffd1c812b63229e4d5048192488b72d34e5f2901 | [
"MIT"
] | null | null | null | misc/avisynth-reader/avisynth/distrib/include/SoftWire/RegisterAllocator.hpp | trondkr/tools | ffd1c812b63229e4d5048192488b72d34e5f2901 | [
"MIT"
] | null | null | null | misc/avisynth-reader/avisynth/distrib/include/SoftWire/RegisterAllocator.hpp | trondkr/tools | ffd1c812b63229e4d5048192488b72d34e5f2901 | [
"MIT"
] | 1 | 2022-03-31T01:49:42.000Z | 2022-03-31T01:49:42.000Z | #ifndef SoftWire_RegisterAllocator_hpp
#define SoftWire_RegisterAllocator_hpp
#include "Assembler.hpp"
namespace SoftWire
{
class RegisterAllocator : public Assembler
{
protected:
struct AllocationData
{
AllocationData()
{
free();
}
void free()
{
reference = 0;
p... | 28.247253 | 124 | 0.695195 |
cb709ede5c4fee21b5074dd10ff4cdcc55641c39 | 707 | cpp | C++ | src/core/EConfigure.cpp | boselor/slc | a1fd53da3f180c4062cac7083b444b438d777d26 | [
"Apache-2.0"
] | null | null | null | src/core/EConfigure.cpp | boselor/slc | a1fd53da3f180c4062cac7083b444b438d777d26 | [
"Apache-2.0"
] | null | null | null | src/core/EConfigure.cpp | boselor/slc | a1fd53da3f180c4062cac7083b444b438d777d26 | [
"Apache-2.0"
] | null | null | null | #include <core/EConfigure.hpp>
#include <fstream>
namespace slc {
EConfigure::EConfigure() {}
EConfigure::~EConfigure() {}
bool EConfigure::loadFile(EString file) {
if(file.isEmpty()) return false;
std::ifstream reader;
reader.open(file.toStdChars(),std::ios::ate);
if(!re... | 20.794118 | 69 | 0.547383 |
cb71b2f3622af2e857a15c70e7ecc586accdfb5b | 8,360 | cpp | C++ | SNCPython/SNCPythonLib/SNCPythonGlue.cpp | rt-ispace/SNC | 890acbbe336bb0429f47fa7bed499a46215aac64 | [
"MIT"
] | 1 | 2021-08-08T05:40:52.000Z | 2021-08-08T05:40:52.000Z | SNCPython/SNCPythonLib/SNCPythonGlue.cpp | rt-ispace/SNC | 890acbbe336bb0429f47fa7bed499a46215aac64 | [
"MIT"
] | null | null | null | SNCPython/SNCPythonLib/SNCPythonGlue.cpp | rt-ispace/SNC | 890acbbe336bb0429f47fa7bed499a46215aac64 | [
"MIT"
] | 1 | 2021-08-08T05:40:56.000Z | 2021-08-08T05:40:56.000Z | ////////////////////////////////////////////////////////////////////////////
//
// This file is part of SNC
//
// Copyright (c) 2014-2021, Richard Barnett
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 30.848708 | 116 | 0.719258 |
cb7387dd133ddffef34bbbea41704914c7b5e8e0 | 11,059 | hpp | C++ | ios/Pods/boost-for-react-native/boost/interprocess/detail/windows_intermodule_singleton.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 8,805 | 2015-11-03T00:52:29.000Z | 2022-03-29T22:30:03.000Z | ios/Pods/boost-for-react-native/boost/interprocess/detail/windows_intermodule_singleton.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 14,694 | 2015-02-24T15:13:42.000Z | 2022-03-31T13:16:45.000Z | ios/Pods/boost-for-react-native/boost/interprocess/detail/windows_intermodule_singleton.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 1,329 | 2015-11-03T20:25:51.000Z | 2022-03-31T18:10:38.000Z | //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2009-2012. 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)
//
// See http://www.boost.org/libs/i... | 35.107937 | 120 | 0.62483 |
cb7474f409efed8c54baa72c51160368af647b44 | 6,301 | hpp | C++ | src/hotspot/share/jvmci/jvmci.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/jvmci/jvmci.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/jvmci/jvmci.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 36.005714 | 113 | 0.751944 |
cb76d73b47b2234f5b46a03adc5215885c7b0e5a | 3,659 | hpp | C++ | src/modules/socket/dgram_channel.hpp | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/modules/socket/dgram_channel.hpp | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/modules/socket/dgram_channel.hpp | gchagnotSpt/openperf | 0ae14cb7a685b1b059f707379773fb3bcb421d40 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | #ifndef _OP_SOCKET_DGRAM_CHANNEL_HPP_
#define _OP_SOCKET_DGRAM_CHANNEL_HPP_
#include <atomic>
#include <netinet/in.h>
#include "framework/memory/offset_ptr.hpp"
#include "socket/api.hpp"
namespace openperf::socket {
struct dgram_ipv4_addr
{
uint32_t addr;
};
struct dgram_ipv6_addr
{
uint32_t addr[4];
... | 33.568807 | 80 | 0.529926 |
cb79164058ae1e901e422738d4969ef4eef5b3d9 | 3,170 | hpp | C++ | Contrib-Intel/RSD-PSME-RMM/application/include/app.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/application/include/app.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/application/include/app.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @copyright
* Copyright (c) 2015-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-... | 28.303571 | 92 | 0.708517 |
cb7bbcbf7ca44ffee5ac08be4646feeebe0ba463 | 6,725 | cpp | C++ | lib/AFE-I2C-Scanner/AFE-I2C-Scanner.cpp | tschaban/AFE-Firmware | b2c7c76e0f2efb6d8e02b81a5d08e39e30016502 | [
"MIT"
] | 36 | 2017-06-05T21:27:44.000Z | 2022-02-13T21:04:04.000Z | lib/AFE-I2C-Scanner/AFE-I2C-Scanner.cpp | tschaban/AFE-Firmware | b2c7c76e0f2efb6d8e02b81a5d08e39e30016502 | [
"MIT"
] | 661 | 2017-05-28T12:01:53.000Z | 2022-02-13T08:51:25.000Z | lib/AFE-I2C-Scanner/AFE-I2C-Scanner.cpp | tschaban/AFE-Firmware | b2c7c76e0f2efb6d8e02b81a5d08e39e30016502 | [
"MIT"
] | 46 | 2017-12-12T21:11:32.000Z | 2022-02-10T21:52:26.000Z | /* AFE Firmware for smarthome devices, More info: https://afe.smartnydom.pl/ */
#include "AFE-I2C-Scanner.h"
#ifdef AFE_CONFIG_HARDWARE_I2C
AFEI2CScanner::AFEI2CScanner() {};
void AFEI2CScanner::begin(TwoWire *_WirePort) {
AFEDataAccess Data;
WirePort = _WirePort;
}
#ifdef DEBUG
void AFEI2CScanner::scanAll(... | 29.495614 | 119 | 0.654721 |
cb7ddfe4bf29d5d26542d1d41a5db5f63229ffe2 | 6,712 | cc | C++ | src/mem/page_table.cc | yb-kim/gemV | 02e00bb8ac0cb4aacad2fc4a8cb4eeb1cf176233 | [
"BSD-3-Clause"
] | 14 | 2015-06-25T03:00:17.000Z | 2021-09-26T16:33:43.000Z | src/mem/page_table.cc | yb-kim/gemV | 02e00bb8ac0cb4aacad2fc4a8cb4eeb1cf176233 | [
"BSD-3-Clause"
] | 1 | 2019-04-28T05:23:32.000Z | 2019-04-28T05:23:32.000Z | src/mem/page_table.cc | yb-kim/gemV | 02e00bb8ac0cb4aacad2fc4a8cb4eeb1cf176233 | [
"BSD-3-Clause"
] | 5 | 2016-10-19T07:25:58.000Z | 2020-12-12T18:35:37.000Z | /*
* Copyright (c) 2003 The Regents of The University of Michigan
* 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, ... | 28.201681 | 82 | 0.643623 |
cb7e0bff626080ccb1317f2bd4e4d77bd52f6ff0 | 8,323 | cpp | C++ | tests/kernel_concatenation_test/concatenation_test.cpp | pschatzmann/pico-tflmicro | c18a5081b2d5b62b1d4d74f7c7e33d543a3b75de | [
"Apache-2.0"
] | 278 | 2021-01-21T07:25:35.000Z | 2022-03-26T18:24:10.000Z | tensorflow/lite/micro/kernels/concatenation_test.cc | sseung0703/tensorflow | be084bd7a4dd241eb781fc704f57bcacc5c9b6dd | [
"Apache-2.0"
] | 88 | 2020-11-24T08:18:10.000Z | 2022-03-25T20:28:30.000Z | tensorflow/lite/micro/kernels/concatenation_test.cc | sseung0703/tensorflow | be084bd7a4dd241eb781fc704f57bcacc5c9b6dd | [
"Apache-2.0"
] | 38 | 2021-01-21T07:25:45.000Z | 2022-03-31T08:48:15.000Z | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 39.822967 | 80 | 0.683528 |
cb7f063423874a220d372378682c40d152c175dd | 20,626 | cc | C++ | ash/assistant/assistant_alarm_timer_controller_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ash/assistant/assistant_alarm_timer_controller_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ash/assistant/assistant_alarm_timer_controller_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 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 "ash/assistant/assistant_alarm_timer_controller_impl.h"
#include <cmath>
#include <utility>
#include "ash/assistant/assistant_controller_impl.h... | 41.584677 | 88 | 0.721468 |
cb7f46d2660af5fd64bf8c35c812b4481e56a7d3 | 34,615 | cc | C++ | source/scale_mips.cc | herocodemaster/libyuv-chromium | 83f460be3324ccd546ca45e6c282e8f201853e54 | [
"BSD-3-Clause"
] | 36 | 2016-06-10T02:42:37.000Z | 2021-12-09T04:57:25.000Z | source/scale_mips.cc | herocodemaster/libyuv-chromium | 83f460be3324ccd546ca45e6c282e8f201853e54 | [
"BSD-3-Clause"
] | 2 | 2017-01-03T12:37:35.000Z | 2017-01-11T12:49:53.000Z | source/scale_mips.cc | herocodemaster/libyuv-chromium | 83f460be3324ccd546ca45e6c282e8f201853e54 | [
"BSD-3-Clause"
] | 15 | 2016-11-16T02:30:42.000Z | 2021-08-10T09:01:26.000Z | /*
* Copyright 2012 The LibYuv Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing p... | 55.472756 | 80 | 0.265261 |
cb80b49bee22db688ad98ffe6917e344d3a15ec7 | 1,600 | hpp | C++ | src/core/models/mutation/indel_mutation_model.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | 1 | 2018-08-21T23:34:28.000Z | 2018-08-21T23:34:28.000Z | src/core/models/mutation/indel_mutation_model.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | null | null | null | src/core/models/mutation/indel_mutation_model.hpp | alimanfoo/octopus | f3cc3f567f02fafe33f5a06e5be693d6ea985ee3 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2018 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#ifndef indel_mutation_model_hpp
#define indel_mutation_model_hpp
#include <vector>
#include <cstdint>
#include "core/types/haplotype.hpp"
#include "core/types/variant.hpp"
namesp... | 27.586207 | 120 | 0.70625 |
cb81d920def2080d9c5ac7baa8e1d1eacb79a56d | 10,357 | cc | C++ | media/filters/audio_file_reader.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | media/filters/audio_file_reader.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | media/filters/audio_file_reader.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 (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 "media/filters/audio_file_reader.h"
#include <stddef.h>
#include <cmath>
#include <vector>
#include "base/bind.h"
#include "base/callback.... | 34.294702 | 80 | 0.693251 |
cb83514bbfb5f1668dd3063a6e451fc9556841f9 | 261 | cpp | C++ | imageEditorApp/src/view/main.cpp | Ecquus/imageEditor | bcecd7434e806b29b935dec58122ece4fd36f727 | [
"MIT"
] | null | null | null | imageEditorApp/src/view/main.cpp | Ecquus/imageEditor | bcecd7434e806b29b935dec58122ece4fd36f727 | [
"MIT"
] | null | null | null | imageEditorApp/src/view/main.cpp | Ecquus/imageEditor | bcecd7434e806b29b935dec58122ece4fd36f727 | [
"MIT"
] | null | null | null | #include <mainwindow.h>
#include <QApplication>
#include <cstring>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
bool debug = argc > 1 && strcmp(argv[1], "-d") == 0;
MainWindow w(debug);
w.show();
return a.exec();
}
| 16.3125 | 56 | 0.586207 |
cb86a134595e66d8180a1dccf1409e9631a5f103 | 1,088 | cpp | C++ | Week04/Fraction.cpp | mdnam2410/hcmus-oop-lab | 2eb2bc781ed652b8f44396a5460a0422fda00c5b | [
"MIT"
] | null | null | null | Week04/Fraction.cpp | mdnam2410/hcmus-oop-lab | 2eb2bc781ed652b8f44396a5460a0422fda00c5b | [
"MIT"
] | null | null | null | Week04/Fraction.cpp | mdnam2410/hcmus-oop-lab | 2eb2bc781ed652b8f44396a5460a0422fda00c5b | [
"MIT"
] | null | null | null | #include "Fraction.h"
#include <sstream>
Fraction::Fraction()
{
m_nom = new int(0);
m_denom = new int(1);
}
Fraction::Fraction(int value) {
m_nom = new int(value);
m_denom = new int(1);
}
Fraction::Fraction(int nom, int denom)
{
m_nom = new int(nom);
m_denom = new int(denom);
makeDenomin... | 14.90411 | 40 | 0.601103 |
cb86c9857936f21d9d2ac6bc22c725b89cca6482 | 16,042 | cc | C++ | tensorflow/compiler/xla/service/gather_expander.cc | Zwysilence/tensorflow | b55001be83da044bb21d539d433dec6231eaec55 | [
"Apache-2.0"
] | 4 | 2021-06-15T17:26:07.000Z | 2021-11-17T10:58:08.000Z | tensorflow/compiler/xla/service/gather_expander.cc | Zwysilence/tensorflow | b55001be83da044bb21d539d433dec6231eaec55 | [
"Apache-2.0"
] | 1 | 2019-08-22T20:29:33.000Z | 2019-12-19T10:16:21.000Z | tensorflow/compiler/xla/service/gather_expander.cc | Zwysilence/tensorflow | b55001be83da044bb21d539d433dec6231eaec55 | [
"Apache-2.0"
] | 6 | 2018-12-20T01:35:20.000Z | 2020-07-10T17:29:57.000Z | /* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 41.345361 | 80 | 0.718925 |
cb885d1796cb98d33169e9a3dc604f20318424a5 | 4,696 | cpp | C++ | opencl/test/unit_test/os_interface/linux/local_memory_helper_tests_dg1.cpp | Panquesito7/compute-runtime | 3357b8b916885a336174ab0e7bbfc7652be4fb88 | [
"Intel",
"MIT"
] | 778 | 2017-09-29T20:02:43.000Z | 2022-03-31T15:35:28.000Z | opencl/test/unit_test/os_interface/linux/local_memory_helper_tests_dg1.cpp | Panquesito7/compute-runtime | 3357b8b916885a336174ab0e7bbfc7652be4fb88 | [
"Intel",
"MIT"
] | 478 | 2018-01-26T16:06:45.000Z | 2022-03-30T10:19:10.000Z | opencl/test/unit_test/os_interface/linux/local_memory_helper_tests_dg1.cpp | Panquesito7/compute-runtime | 3357b8b916885a336174ab0e7bbfc7652be4fb88 | [
"Intel",
"MIT"
] | 215 | 2018-01-30T08:39:32.000Z | 2022-03-29T11:08:51.000Z | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/execution_environment/execution_environment.h"
#include "shared/source/os_interface/linux/local_memory_helper.h"
#include "shared/source/os_interface/linux/memory_info_impl.h"
#include "shared/test/common/helpe... | 43.88785 | 196 | 0.767675 |
cb89a7a6a17b18d2dbda29ab619cb87648b427ee | 2,166 | cpp | C++ | libRocketWrapper/Src/ManagedFileInterface.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | libRocketWrapper/Src/ManagedFileInterface.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | libRocketWrapper/Src/ManagedFileInterface.cpp | AnomalousMedical/Engine | a19e21f597bd277e4ca17e0e5f3f89577f2307bb | [
"MIT"
] | null | null | null | #include "StdAfx.h"
class ManagedFileInterface : public Rocket::Core::FileInterface
{
public:
typedef size_t (*OpenCb)(String path HANDLE_ARG);
typedef void(*CloseCb)(Rocket::Core::FileHandle file HANDLE_ARG);
typedef size_t(*ReadCb)(void* buffer, size_t size, Rocket::Core::FileHandle file HANDLE_ARG);
typ... | 27.769231 | 307 | 0.738689 |
cb8a131f111a539853047ee8850a667519923063 | 24,833 | cpp | C++ | windows/src/engine/keyman32/K32_load.cpp | ermshiperete/keyman | 0eeef1b5794fd698447584e531e2a6c1ef4c05aa | [
"MIT"
] | 1 | 2021-03-08T09:31:47.000Z | 2021-03-08T09:31:47.000Z | windows/src/engine/keyman32/K32_load.cpp | ermshiperete/keyman | 0eeef1b5794fd698447584e531e2a6c1ef4c05aa | [
"MIT"
] | null | null | null | windows/src/engine/keyman32/K32_load.cpp | ermshiperete/keyman | 0eeef1b5794fd698447584e531e2a6c1ef4c05aa | [
"MIT"
] | null | null | null | /*
Name: K32_load
Copyright: Copyright (C) SIL International.
Documentation:
Description:
Create Date: 14 Sep 2006
Modified Date: 25 Oct 2016
Authors: mcdurdin
Related Files:
Dependencies:
Bugs:
Todo:
Notes: ... | 28.741898 | 154 | 0.597028 |
cb8ac503cfc3f79e44eee8044a27f068a1109725 | 2,990 | cpp | C++ | molecule/src/molecule_tautomer_utils.cpp | 00Green27/Indigo | dc09f838b8b05d4bba2f79d0af5617d637f0b70e | [
"Apache-2.0"
] | null | null | null | molecule/src/molecule_tautomer_utils.cpp | 00Green27/Indigo | dc09f838b8b05d4bba2f79d0af5617d637f0b70e | [
"Apache-2.0"
] | null | null | null | molecule/src/molecule_tautomer_utils.cpp | 00Green27/Indigo | dc09f838b8b05d4bba2f79d0af5617d637f0b70e | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
* Copyright (C) from 2009 to Present EPAM Systems.
*
* This file is part of Indigo toolkit.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... | 32.150538 | 126 | 0.580602 |
cb8b164073545b49850380576d5c5daf872f92c9 | 1,493 | cpp | C++ | src/main.cpp | NDelt/Mini-Search-Engine | c7c64a7d365e5112e0a6eb320d3ff3e399bd9e18 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | NDelt/Mini-Search-Engine | c7c64a7d365e5112e0a6eb320d3ff3e399bd9e18 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | NDelt/Mini-Search-Engine | c7c64a7d365e5112e0a6eb320d3ff3e399bd9e18 | [
"Apache-2.0"
] | 1 | 2019-04-11T03:02:05.000Z | 2019-04-11T03:02:05.000Z | /***************************************************************************
* Copyright 2019 HYUNWOO O
*
* 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/lice... | 30.469388 | 76 | 0.583389 |
cb8c968fa166b95b8a5674447afc69c8b9cd0f6f | 324 | hpp | C++ | native/sample/headers/mcpe/LevelChunk.hpp | Molybdocene-dichloride/GregTech_BE | b19171ff4e41826c0bd4cf2dbdd9916f46254d67 | [
"MIT"
] | 4 | 2021-01-15T08:33:44.000Z | 2022-03-13T19:11:08.000Z | native/sample/headers/mcpe/LevelChunk.hpp | Molybdocene-dichloride/GregTech_BE | b19171ff4e41826c0bd4cf2dbdd9916f46254d67 | [
"MIT"
] | null | null | null | native/sample/headers/mcpe/LevelChunk.hpp | Molybdocene-dichloride/GregTech_BE | b19171ff4e41826c0bd4cf2dbdd9916f46254d67 | [
"MIT"
] | null | null | null | #pragma once
#include <mcpe\BlockPos.hpp>
#include <mcpe\Block.hpp>
#include <mcpe\Dimension.hpp>
class LevelChunk {
public:
Level getLevel() const;
Dimension getDimension() const;
Block getBlock(ChunkBlockPos const&) const;
ChunkLocalHeight getHeightRange() const;
ChunkPos* getPosition() const... | 24.923077 | 47 | 0.722222 |
cb8eb92813d5ae8dc1699cdd1ab54e63d08b8617 | 2,007 | cc | C++ | tests/api/mpi/comm/probe-intercomm.cc | jpkenny/sst-macro | bcc1f43034281885104962586d8b104df84b58bd | [
"BSD-Source-Code"
] | 20 | 2017-01-26T09:28:23.000Z | 2022-01-17T11:31:55.000Z | tests/api/mpi/comm/probe-intercomm.cc | jpkenny/sst-macro | bcc1f43034281885104962586d8b104df84b58bd | [
"BSD-Source-Code"
] | 542 | 2016-03-29T22:50:58.000Z | 2022-03-22T20:14:08.000Z | tests/api/mpi/comm/probe-intercomm.cc | jpkenny/sst-macro | bcc1f43034281885104962586d8b104df84b58bd | [
"BSD-Source-Code"
] | 36 | 2016-03-10T21:33:54.000Z | 2021-12-01T07:44:12.000Z | /*
*
* (C) 2003 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include <sstmac/replacements/mpi/mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mpitest.h"
namespace probe_intercomm{
/**
static char MTEST_Descrip[] = "Test MPI_Probe() for an intercomm... | 26.76 | 124 | 0.540608 |
cb8eb99ac87328b3295e2a216dc5fdb43219b1a5 | 3,660 | cpp | C++ | cxxtest/cxxtest/LinkedList.cpp | coreyp1/graphlab | 637be90021c5f83ab7833ca15c48e76039057969 | [
"ECL-2.0",
"Apache-2.0"
] | 333 | 2016-07-29T19:22:07.000Z | 2022-03-30T02:40:34.000Z | cxxtest/cxxtest/LinkedList.cpp | HybridGraph/GraphLab-PowerGraph | ba333c1cd82325ab2bfc6dd7ebb871b3fff64a94 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-09-15T00:31:59.000Z | 2022-02-08T07:51:07.000Z | cxxtest/cxxtest/LinkedList.cpp | HybridGraph/GraphLab-PowerGraph | ba333c1cd82325ab2bfc6dd7ebb871b3fff64a94 | [
"ECL-2.0",
"Apache-2.0"
] | 163 | 2016-07-29T19:22:11.000Z | 2022-03-07T07:15:24.000Z | /*
-------------------------------------------------------------------------
CxxTest: A lightweight C++ unit testing library.
Copyright (c) 2008 Sandia Corporation.
This software is distributed under the LGPL License v2.1
For more information, see the COPYING file in the top CxxTest directory.
Under the terms of C... | 19.891304 | 73 | 0.428415 |
cb8f1953a88140b9afa9a18898b6c177720b6f8a | 9,131 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/formatting.numeric.custom/cpp/custom.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 3,294 | 2016-10-30T05:27:20.000Z | 2022-03-31T15:59:30.000Z | samples/snippets/cpp/VS_Snippets_CLR/formatting.numeric.custom/cpp/custom.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 16,739 | 2016-10-28T19:41:29.000Z | 2022-03-31T22:38:48.000Z | samples/snippets/cpp/VS_Snippets_CLR/formatting.numeric.custom/cpp/custom.cpp | BaruaSourav/docs | c288ed777de6b091f5e074d3488f7934683f3eb5 | [
"CC-BY-4.0",
"MIT"
] | 6,701 | 2016-10-29T20:56:11.000Z | 2022-03-31T12:32:26.000Z | using namespace System;
using namespace System::Globalization;
void ShowZeroPlaceholder()
{
// <Snippet1>
double value;
value = 123;
Console::WriteLine(value.ToString("00000"));
Console::WriteLine(String::Format("{0:00000}", value));
// Displays 00123
value = 1.2;
Console::Wr... | 34.587121 | 88 | 0.584273 |
cb8f5f99ee52b47d12b2b22e88ec05420a77959c | 1,226 | cpp | C++ | imap/src/protocol/StoreResponseParser.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/imap/src/protocol/StoreResponseParser.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/imap/src/protocol/StoreResponseParser.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2010-2013 LG Electronics, Inc.
//
// 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 require... | 26.085106 | 92 | 0.750408 |
cb921de5fe541c257bb94857dfbcc47a3e146bf7 | 984 | cpp | C++ | src/scripting/Sandbox.cpp | AlxAce/CyberEngineTweaks | 3b1d2dba1717a69eae1972497dbde1952fef6d47 | [
"MIT"
] | null | null | null | src/scripting/Sandbox.cpp | AlxAce/CyberEngineTweaks | 3b1d2dba1717a69eae1972497dbde1952fef6d47 | [
"MIT"
] | null | null | null | src/scripting/Sandbox.cpp | AlxAce/CyberEngineTweaks | 3b1d2dba1717a69eae1972497dbde1952fef6d47 | [
"MIT"
] | null | null | null | #include <stdafx.h>
#include "Sandbox.h"
#include "Scripting.h"
Sandbox::Sandbox(Scripting* apScripting, sol::environment aBaseEnvironment, const std::filesystem::path& acRootPath)
: m_pScripting(apScripting)
, m_env(apScripting->GetState().Get(), sol::create)
, m_path(acRootPath)
{
// copy base envir... | 28.114286 | 116 | 0.723577 |
cb923eaa13a4528dda916d9bd8bfb0930d92e117 | 3,031 | cpp | C++ | NEERC/Subregionals/2010-2011/C/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | 2 | 2018-11-08T05:57:22.000Z | 2018-11-08T05:57:27.000Z | NEERC/Subregionals/2010-2011/C/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | null | null | null | NEERC/Subregionals/2010-2011/C/sol.cpp | Zovube/Tasks-solutions | fde056189dd5f630197d0516d3837044bc339e49 | [
"MIT"
] | null | null | null | #define __USE_MINGW_ANSI_STDIO 0
#include<bits/stdc++.h>
using namespace std;
#define PI acos(-1)
#define pb push_back
#define fi first
#define se second
#define TASK "commuting"
#define sz(a) (int)(a).size()
#define all(c) (c).begin(), (c).end()
#define TIMESTAMP fprintf(stderr, "Execut... | 20.206667 | 95 | 0.509733 |
cb9360ba1b46f7dbb3d672f5808f37bfdb08724b | 266 | cpp | C++ | source/tm/constant_generation.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/constant_generation.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/constant_generation.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 1 | 2021-01-28T13:10:41.000Z | 2021-01-28T13:10:41.000Z | // Handles challenges / current battles
// Copyright David Stone 2020.
// 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 <tm/constant_generation.hpp>
| 33.25 | 61 | 0.763158 |
cb95c2999d027993521319f9c7945c1a8074c6e1 | 49,799 | cpp | C++ | src/core/SkColorSpaceXform.cpp | juanpca12/Google-Skia | 42e6798696ac3a93a2b7ba7a9d6a84b77eba0116 | [
"Apache-2.0"
] | null | null | null | src/core/SkColorSpaceXform.cpp | juanpca12/Google-Skia | 42e6798696ac3a93a2b7ba7a9d6a84b77eba0116 | [
"Apache-2.0"
] | null | null | null | src/core/SkColorSpaceXform.cpp | juanpca12/Google-Skia | 42e6798696ac3a93a2b7ba7a9d6a84b77eba0116 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkColorPriv.h"
#include "SkColorSpace_Base.h"
#include "SkColorSpaceXform.h"
#include "SkOpts.h"
static inline bool compute_gamut_xform(SkMatrix44* srcToDst, const ... | 58.312646 | 99 | 0.60935 |
cb95e773334cdb7a1987d606b331094a86caa808 | 9,838 | cc | C++ | onnxruntime/test/providers/cpu/tensor/scatter_op_test.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 5 | 2021-02-20T04:53:48.000Z | 2021-03-09T19:29:27.000Z | onnxruntime/test/providers/cpu/tensor/scatter_op_test.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 5 | 2021-03-01T21:35:50.000Z | 2022-03-09T05:38:38.000Z | onnxruntime/test/providers/cpu/tensor/scatter_op_test.cc | dennyac/onnxruntime | d5175795d2b7f2db18b0390f394a49238f814668 | [
"MIT"
] | 2 | 2021-02-20T12:10:05.000Z | 2021-03-09T19:15:20.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "gtest/gtest.h"
#include "test/providers/provider_test_utils.h"
namespace onnxruntime {
namespace test {
static void scatter_without_axis_tests(const char* op_name, int op_version) {
OpTester test(op_name, op_v... | 34.763251 | 113 | 0.590466 |
cb9863f34d686fb48bfc2af58d5286f3624a4547 | 1,098 | cpp | C++ | tools/auto-tester/src/Downloader.cpp | kevinhouyang/hifi | cfb0d0aeb6d8961ec802909d4439d58383252e59 | [
"Apache-2.0"
] | null | null | null | tools/auto-tester/src/Downloader.cpp | kevinhouyang/hifi | cfb0d0aeb6d8961ec802909d4439d58383252e59 | [
"Apache-2.0"
] | null | null | null | tools/auto-tester/src/Downloader.cpp | kevinhouyang/hifi | cfb0d0aeb6d8961ec802909d4439d58383252e59 | [
"Apache-2.0"
] | null | null | null | //
// Downloader.cpp
//
// Created by Nissim Hadar on 1 Mar 2018.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Downloader.h"
#include <QtWidgets/QMessageBox>
Down... | 27.45 | 104 | 0.693078 |
cb98c32601e70e620f0b17364d4492831bda8af3 | 871 | cpp | C++ | Chapter10/10_3.cpp | GeertArien/c-accelerated | c0ae9f66b1733de04f3133db2e9d8af6d555fe6e | [
"MIT"
] | 27 | 2019-03-12T02:24:43.000Z | 2022-02-18T22:49:00.000Z | Chapter10/10_3.cpp | GeertArien/C-Accelerated | c0ae9f66b1733de04f3133db2e9d8af6d555fe6e | [
"MIT"
] | 1 | 2020-06-24T18:34:45.000Z | 2020-06-28T12:55:05.000Z | Chapter10/10_3.cpp | GeertArien/c-accelerated | c0ae9f66b1733de04f3133db2e9d8af6d555fe6e | [
"MIT"
] | 12 | 2019-04-22T03:49:19.000Z | 2021-08-31T17:39:35.000Z | /**
Accelerated C++, Exercise 10-3, 10_3.cpp
Write a test program to verify that the median function operates correctly.
Ensure that calling median does not change the order of the elements in the container.
*/
#include "stdafx.h"
#include "10_3.h"
#include "10_2.h"
#include <vector>
using std::vector;
#include <i... | 18.145833 | 93 | 0.641791 |
cb98fc5934e877a91e897b0f52334baee41a760b | 781 | cpp | C++ | src/queue.cpp | zivkovicmilos/OS1Kernel | 8a77c6a9b62d27719c5f7f61492f8dce6866c38a | [
"MIT"
] | null | null | null | src/queue.cpp | zivkovicmilos/OS1Kernel | 8a77c6a9b62d27719c5f7f61492f8dce6866c38a | [
"MIT"
] | null | null | null | src/queue.cpp | zivkovicmilos/OS1Kernel | 8a77c6a9b62d27719c5f7f61492f8dce6866c38a | [
"MIT"
] | null | null | null | #include "queue.h"
Queue::Queue() {
first = 0;
last = 0;
size = 0;
}
void Queue::addElem(PCB* pcb) {
if (first == 0) {
first = new Elem(pcb);
last = first;
} else {
Elem* temp = new Elem(pcb);
last->next = temp;
last = temp;
}
size++;
}
PCB* Queue::getElem() {
if (first == 0) r... | 14.462963 | 32 | 0.510883 |
cb9910fa098641be0c52b70076718f3aad44d7ac | 389 | cpp | C++ | uva/10298.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | uva/10298.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | uva/10298.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | // 10298 - Power Strings
#include <cstdio>
#define N 1000001
int main()
{
int i, j;
int b[N];
char str[N];
while(scanf("%s", str), str[0] != '.')
{
// KMP algorithm
i = 0; j = -1; b[0] = -1;
while(str[i])
{
while(j >= 0 && str[i] != str[j]) j = b[j];
i++; j++;
b[i] = j;
}
if(i % (i - j)) ... | 12.548387 | 46 | 0.44473 |
ed7f1febaf51ca8c8fa78e7ef4fc25a448096ed1 | 13,787 | cc | C++ | shell/common/shell_test.cc | CaseyHillers/engine | 0d60e1a324c8f17617855f4cfe7287368e15f3dd | [
"BSD-3-Clause"
] | null | null | null | shell/common/shell_test.cc | CaseyHillers/engine | 0d60e1a324c8f17617855f4cfe7287368e15f3dd | [
"BSD-3-Clause"
] | null | null | null | shell/common/shell_test.cc | CaseyHillers/engine | 0d60e1a324c8f17617855f4cfe7287368e15f3dd | [
"BSD-3-Clause"
] | 1 | 2021-04-13T09:42:45.000Z | 2021-04-13T09:42:45.000Z | // Copyright 2013 The Flutter 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 <future>
#define FML_USED_ON_EMBEDDER
#include "flutter/shell/common/shell_test.h"
#include "flutter/flow/layers/layer_tree.h"
#include "flutter... | 34.553885 | 80 | 0.660985 |
ed80a4dddec6ede720ff4cb69f5cb4a2a23bec1e | 5,630 | hpp | C++ | include/System/__Filters.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/__Filters.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/__Filters.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/il2cpp-ut... | 52.616822 | 191 | 0.717584 |
ed81bf4e8ffc5eccc76a5f72851fb85c3827fed8 | 423 | cpp | C++ | Code Forces/71-A/71A Way-Too-Long-Words.cpp | canxkoz/Competitive-Programming | c5aba7ff3537e0ecb5cf0972e5b605498995e82a | [
"MIT"
] | 10 | 2019-06-20T09:36:19.000Z | 2021-07-19T12:45:42.000Z | Code Forces/71-A/71A Way-Too-Long-Words.cpp | canxkoz/Competitive-Programming | c5aba7ff3537e0ecb5cf0972e5b605498995e82a | [
"MIT"
] | null | null | null | Code Forces/71-A/71A Way-Too-Long-Words.cpp | canxkoz/Competitive-Programming | c5aba7ff3537e0ecb5cf0972e5b605498995e82a | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
for(int i=0;i<n;i++)
{
string s;
cin >> s;
if(s.length()>10)
{
stringstream ss;
int l;
l=s.length()-2;
ss << s[0] << l << s[s.length()-1];
... | 16.92 | 45 | 0.36643 |
ed81d0c8516309b107e0070d82087c6017d6cee0 | 371 | cpp | C++ | MDE/Object.cpp | dmitriyha/Magic-Dungeon-Epidemic | 37d19f416d36f1abb2393af1e43f76b24f57001a | [
"Unlicense"
] | null | null | null | MDE/Object.cpp | dmitriyha/Magic-Dungeon-Epidemic | 37d19f416d36f1abb2393af1e43f76b24f57001a | [
"Unlicense"
] | null | null | null | MDE/Object.cpp | dmitriyha/Magic-Dungeon-Epidemic | 37d19f416d36f1abb2393af1e43f76b24f57001a | [
"Unlicense"
] | null | null | null | #include "Object.h"
Object::Object()
{
}
void Object::render(){
SDL_RenderCopy(texture->getRenderer(), texture->getTexture(), &sprite, &location);
}
/** \brief Sets the texture to the character
*
* \param Texture* _texture: The texture which you want to set to character
*
*/
void Object::setTexture(Texture* _textu... | 15.458333 | 83 | 0.695418 |
ed82443b297dd63ffca152b82387e03252605e84 | 1,597 | cpp | C++ | src/Core/Service/ServerHandler.cpp | Loki-Astari/ThorsNisse | 75fd6891959d6e9deb7c07cb26660e65ba7f51bd | [
"MIT"
] | 6 | 2017-08-07T07:01:48.000Z | 2022-02-27T20:58:44.000Z | src/Core/Service/ServerHandler.cpp | Loki-Astari/ThorsNisse | 75fd6891959d6e9deb7c07cb26660e65ba7f51bd | [
"MIT"
] | 18 | 2017-08-10T20:34:50.000Z | 2017-09-05T19:48:52.000Z | src/Core/Service/ServerHandler.cpp | Loki-Astari/ThorsNisse | 75fd6891959d6e9deb7c07cb26660e65ba7f51bd | [
"MIT"
] | 1 | 2019-02-20T19:06:13.000Z | 2019-02-20T19:06:13.000Z | #include "Handler.h"
#include "ServerHandler.h"
using namespace ThorsAnvil::Nisse::Core::Service;
TimerHandler::TimerHandler(Server& parent, double timeOut, std::function<void()>&& action)
: HandlerNonSuspendable(parent, -1, EV_PERSIST, timeOut)
, action(std::move(action))
{}
short TimerHandler::eventActivat... | 51.516129 | 349 | 0.745147 |
ed8258ecbc57247be5638e196395e52d0e871283 | 907 | cpp | C++ | test/RESTAPICoreTest/Tests/RouteAccess/EpochTimeServiceTest.cpp | Harish765/cpp-rest-api-core | 3b047be4171d1ce35f9b176d0487d0c85f7ae841 | [
"MIT"
] | 1 | 2020-04-08T09:54:52.000Z | 2020-04-08T09:54:52.000Z | test/RESTAPICoreTest/Tests/RouteAccess/EpochTimeServiceTest.cpp | Harish765/cpp-rest-api-core | 3b047be4171d1ce35f9b176d0487d0c85f7ae841 | [
"MIT"
] | null | null | null | test/RESTAPICoreTest/Tests/RouteAccess/EpochTimeServiceTest.cpp | Harish765/cpp-rest-api-core | 3b047be4171d1ce35f9b176d0487d0c85f7ae841 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "RESTAPICore/RouteAccess/EpochTimeService.h"
#include <chrono>
#include <thread>
using namespace testing;
namespace systelab { namespace rest_api_core { namespace unit_test {
class EpochTimeServiceTest : public Test
{
protected:
rest_api_core::EpochTimeService m_service;
};
TE... | 25.914286 | 100 | 0.800441 |
ed832226bf229488cd6137fb15495fac5b35ec54 | 5,182 | cpp | C++ | src/master/RejudgeJob/RejudgeJobBase.cpp | WentsingNee/tsoj_core_cpp | 8a83d6cc81c247a1299da207ac54b62419b75bab | [
"MIT"
] | 1 | 2019-03-08T06:15:52.000Z | 2019-03-08T06:15:52.000Z | src/master/RejudgeJob/RejudgeJobBase.cpp | WentsingNee/tsoj_core_cpp | 8a83d6cc81c247a1299da207ac54b62419b75bab | [
"MIT"
] | null | null | null | src/master/RejudgeJob/RejudgeJobBase.cpp | WentsingNee/tsoj_core_cpp | 8a83d6cc81c247a1299da207ac54b62419b75bab | [
"MIT"
] | null | null | null | /*
* RejudgeJobBase.cpp
*
* Created on: 2018年11月20日
* Author: peter
*/
#include "RejudgeJobBase.hpp"
#include "logger.hpp"
#ifndef MYSQLPP_MYSQL_HEADERS_BURIED
# define MYSQLPP_MYSQL_HEADERS_BURIED
#endif
#include <mysql++/transaction.h>
#include <mysql_conn_factory.hpp>
extern std::ofstream log_fp;
Rejud... | 30.662722 | 110 | 0.710922 |
ed8570b4c3ce9ed25904a28725f3e759ad4832b4 | 4,734 | cpp | C++ | hphp/runtime/vm/jit/stack-overflow.cpp | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-17T02:24:38.000Z | 2020-01-17T02:24:38.000Z | hphp/runtime/vm/jit/stack-overflow.cpp | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/vm/jit/stack-overflow.cpp | jmurret/hhvm | f005fa3ca2793291cf59e217db3e9ce074d22f71 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 43.833333 | 82 | 0.635192 |
ed8860f8c27bfd49ec8e7677bd71d1712e76aa88 | 4,347 | cc | C++ | samples/graph/bfs.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 63 | 2018-06-21T14:11:59.000Z | 2022-03-30T11:24:36.000Z | samples/graph/bfs.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 5 | 2018-09-22T14:01:53.000Z | 2021-12-27T16:11:05.000Z | samples/graph/bfs.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 12 | 2018-08-23T15:59:44.000Z | 2022-02-20T06:47:22.000Z | #include <frovedis.hpp>
#include <frovedis/ml/graph/graph.hpp>
#include <boost/program_options.hpp>
using namespace boost;
using namespace frovedis;
using namespace std;
template <class T>
void call_bfs(const std::string& data_p,
const std::string& out_p,
bool if_prep,
size_... | 33.697674 | 114 | 0.569818 |
ed88ddd16f4960650be9f1c52ab4695e4deca3d1 | 16,845 | cpp | C++ | mozilla/gfx/2d/Path.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 5 | 2016-12-20T15:48:05.000Z | 2020-05-01T20:12:09.000Z | mozilla/gfx/2d/Path.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | null | null | null | mozilla/gfx/2d/Path.cpp | naver/webgraphics | 4f9b9aa6a13428b5872dd020eaf34ec77b33f240 | [
"MS-PL"
] | 2 | 2016-12-20T15:48:13.000Z | 2019-12-10T15:15:05.000Z | /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* 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 "2D.h"
#include "PathAnalys... | 31.194444 | 110 | 0.639656 |
ed8953dbe4132319a7738c97bc09a74f76558e7c | 4,437 | cpp | C++ | Rocket/Engine/FileSystem/OsFileSync.cpp | rocketman123456/RocketEngine | ede1670d70c4689a5dc8543ca5351e8f23fcb840 | [
"Apache-2.0"
] | null | null | null | Rocket/Engine/FileSystem/OsFileSync.cpp | rocketman123456/RocketEngine | ede1670d70c4689a5dc8543ca5351e8f23fcb840 | [
"Apache-2.0"
] | null | null | null | Rocket/Engine/FileSystem/OsFileSync.cpp | rocketman123456/RocketEngine | ede1670d70c4689a5dc8543ca5351e8f23fcb840 | [
"Apache-2.0"
] | null | null | null | #include "FileSystem/OsFileSync.h"
#include "Log/Log.h"
#include <exception>
namespace Rocket {
int32_t OsFileSync::Initialize(const std::string& path, const std::string& file_name, FileOperateMode mode) {
mode_ = mode;
file_.file_path = path;
file_.file_name = file_name;
file_.ful... | 33.360902 | 119 | 0.572459 |
ed8e6b442228e6aa14ede0f0daa3f79932d78ded | 2,756 | cpp | C++ | src/io/lnk4archive.cpp | HououinKyouma29/impacto | 8d4bf2605f54630b1b1cf7dbf3d05e5fd0249c2d | [
"ISC"
] | 2 | 2021-02-08T12:01:16.000Z | 2021-07-01T22:54:41.000Z | src/io/lnk4archive.cpp | HououinKyouma29/impacto | 8d4bf2605f54630b1b1cf7dbf3d05e5fd0249c2d | [
"ISC"
] | null | null | null | src/io/lnk4archive.cpp | HououinKyouma29/impacto | 8d4bf2605f54630b1b1cf7dbf3d05e5fd0249c2d | [
"ISC"
] | null | null | null | #include "lnk4archive.h"
#include "../log.h"
#include "uncompressedstream.h"
#include "vfs.h"
#include "../util.h"
#include <SDL_endian.h>
namespace Impacto {
namespace Io {
struct Lnk4MetaEntry : FileMeta {
int64_t Offset;
};
Lnk4Archive::~Lnk4Archive() {
if (TOC) delete[] TOC;
}
IoError Lnk4Archive::Open(Fil... | 26 | 77 | 0.651669 |
ed93051395b2052ef71d21b0ffdf4c36d8b4419b | 5,968 | cpp | C++ | libs/SysmelCompiler/Environment/Template.cpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | 2 | 2021-10-30T15:31:43.000Z | 2021-11-08T09:45:15.000Z | libs/SysmelCompiler/Environment/Template.cpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | null | null | null | libs/SysmelCompiler/Environment/Template.cpp | ronsaldo/sysmel-beta | 14237d780527c6ca1bb34f74195838f78f0c6acc | [
"MIT"
] | null | null | null | #include "Environment/Template.hpp"
#include "Environment/TemplateInstance.hpp"
#include "Environment/ArgumentVariable.hpp"
#include "Environment/ASTCallNode.hpp"
#include "Environment/ASTSemanticAnalyzer.hpp"
#include "Environment/SSATemplate.hpp"
#include "Environment/BootstrapTypeRegistration.hpp"
#include "Environm... | 33.717514 | 159 | 0.714645 |
ed937cfe046aadb3ef15f24d05f5e7fe23898d81 | 371 | inl | C++ | TAO/tao/Acceptor_Registry.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/tao/Acceptor_Registry.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/tao/Acceptor_Registry.inl | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // -*- C++ -*-
//
// $Id: Acceptor_Registry.inl 73791 2006-07-27 20:54:56Z wotte $
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE TAO_AcceptorSetIterator
TAO_Acceptor_Registry::begin (void)
{
return this->acceptors_;
}
ACE_INLINE TAO_AcceptorSetIterator
TAO_Acceptor_Registry::end (void)
{
return this->acceptors_ ... | 18.55 | 64 | 0.773585 |
ed938ba7c93d8f0b90d9bd881f8eba96f41b3c08 | 16,130 | cpp | C++ | rEFIt_UEFI/entry_scan/legacy.cpp | harperse/CloverBootloader | 8d1baad2a62c66aae776cfd45d832399632c299e | [
"BSD-2-Clause"
] | null | null | null | rEFIt_UEFI/entry_scan/legacy.cpp | harperse/CloverBootloader | 8d1baad2a62c66aae776cfd45d832399632c299e | [
"BSD-2-Clause"
] | null | null | null | rEFIt_UEFI/entry_scan/legacy.cpp | harperse/CloverBootloader | 8d1baad2a62c66aae776cfd45d832399632c299e | [
"BSD-2-Clause"
] | null | null | null | /*
* refit/scan/legacy.c
*
* Copyright (c) 2006-2010 Christoph Pfisterer
* 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... | 39.05569 | 202 | 0.614445 |
ed93d24e740d446f00bec865166bd46f1da6ac20 | 2,308 | cpp | C++ | src/protocols/kde/decoration.cpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | src/protocols/kde/decoration.cpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | src/protocols/kde/decoration.cpp | Link1J/Awning | 4e35e092725d1688ac94f8473fb6bffd99a5cfa0 | [
"MIT"
] | null | null | null | #include "decoration.hpp"
#include <spdlog/spdlog.h>
#include "protocols/wl/surface.hpp"
namespace Awning::Protocols::KDE::Decoration
{
const struct org_kde_kwin_server_decoration_interface interface = {
.release = Interface::Release,
.request_mode = Interface::Request_Mode,
};
std::unordered_map<wl_resou... | 30.368421 | 127 | 0.774263 |
ed94bbbde94044be0cca4333f3bd721277f2a4f6 | 2,642 | cc | C++ | content/renderer/dom_storage/webstoragearea_impl.cc | junmin-zhu/chromium-rivertrail | eb1a57aca71fe68d96e48af8998dcfbe45171ee1 | [
"BSD-3-Clause"
] | 5 | 2018-03-10T13:08:42.000Z | 2021-07-26T15:02:11.000Z | content/renderer/dom_storage/webstoragearea_impl.cc | sanyaade-mobiledev/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | content/renderer/dom_storage/webstoragearea_impl.cc | jianglong0156/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.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 "content/renderer/dom_storage/webstoragearea_impl.h"
#include "base/lazy_instance.h"
#include "base/metrics/histogram.h"
#include "base/time... | 30.367816 | 77 | 0.774792 |
ed95a6a1373036eb62be5e560e77bcba19dc9d94 | 1,415 | cpp | C++ | network.cpp | rohith-nagamalla/Ooad_project | ffdc9e34153afe46dbb94061737e92642b186599 | [
"Apache-2.0"
] | 1 | 2019-11-28T13:48:45.000Z | 2019-11-28T13:48:45.000Z | network.cpp | rohith-nagamalla/Ooad_project | ffdc9e34153afe46dbb94061737e92642b186599 | [
"Apache-2.0"
] | null | null | null | network.cpp | rohith-nagamalla/Ooad_project | ffdc9e34153afe46dbb94061737e92642b186599 | [
"Apache-2.0"
] | null | null | null | #ifndef network_cpp
#define network_cpp
#include<bits/stdc++.h>
#include "customer.cpp"
#include "utilities.cpp"
using namespace std;
namespace Network
{
string sms_otp(string name,string number)
{
string processed_name;
for(int i=0;i<name.size() && name[i]!=' ';i++)
processed_name.push_back(name[i]);
... | 26.203704 | 82 | 0.609894 |
ed95f18d3c589af673cf33428c51878f74a78973 | 8,236 | cpp | C++ | XivAlexanderLoader/App.cpp | ClarenceShalave/XivAlexander | c0f27cad381a48e097e5476e7cb7e2620b738ca7 | [
"Apache-2.0"
] | 1 | 2021-04-07T22:04:37.000Z | 2021-04-07T22:04:37.000Z | XivAlexanderLoader/App.cpp | ClarenceShalave/XivAlexander | c0f27cad381a48e097e5476e7cb7e2620b738ca7 | [
"Apache-2.0"
] | null | null | null | XivAlexanderLoader/App.cpp | ClarenceShalave/XivAlexander | c0f27cad381a48e097e5476e7cb7e2620b738ca7 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
static void* GetModulePointer(HANDLE hProcess, const wchar_t* sDllPath) {
Utils::Win32Handle<> th32(CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, GetProcessId(hProcess)));
MODULEENTRY32W mod{ sizeof MODULEENTRY32W };
if (!Module32FirstW(th32, &mod))
return nullptr;
do {
if (_wcsicmp(mod.szExePa... | 30.6171 | 197 | 0.711875 |
ed97526dd2144357bba8959470a4c497127b9181 | 3,029 | cpp | C++ | src/PE/CodeIntegrity.cpp | ienho/LIEF | 29eb867e5fdcd5e11ce22d0c6f16ab27505b1be8 | [
"Apache-2.0"
] | 2 | 2021-12-31T07:25:05.000Z | 2022-03-05T15:03:00.000Z | src/PE/CodeIntegrity.cpp | ienho/LIEF | 29eb867e5fdcd5e11ce22d0c6f16ab27505b1be8 | [
"Apache-2.0"
] | null | null | null | src/PE/CodeIntegrity.cpp | ienho/LIEF | 29eb867e5fdcd5e11ce22d0c6f16ab27505b1be8 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 - 2021 R. Thomas
* Copyright 2017 - 2021 Quarkslab
*
* 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 req... | 28.308411 | 139 | 0.699241 |
ed97f70765144ce53e7f800ea9feee523b65f31d | 12,218 | cc | C++ | src/video/FBPostProcessor.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/video/FBPostProcessor.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/video/FBPostProcessor.cc | D15C0DE/openMSX | 5119a9657de4b82115c745f670cdc55dc7363133 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #include "FBPostProcessor.hh"
#include "RawFrame.hh"
#include "StretchScalerOutput.hh"
#include "ScalerOutput.hh"
#include "RenderSettings.hh"
#include "Scaler.hh"
#include "ScalerFactory.hh"
#include "SDLOutputSurface.hh"
#include "aligned.hh"
#include "checked_cast.hh"
#include "random.hh"
#include "xrange.hh"
#inclu... | 34.22409 | 86 | 0.681863 |
ed99985d7d4633f995927ad9b442b3d26e063028 | 6,827 | cc | C++ | RecoParticleFlow/PFClusterProducer/plugins/Basic2DGenericPFlowPositionCalc.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | RecoParticleFlow/PFClusterProducer/plugins/Basic2DGenericPFlowPositionCalc.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | RecoParticleFlow/PFClusterProducer/plugins/Basic2DGenericPFlowPositionCalc.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "Basic2DGenericPFlowPositionCalc.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/isFinite.h"
#include <cmath>
#include "CommonTools/Utils/interface/DynArray.h"
#include<iterator>
#include <boost/function_output_iterator.hpp>
#include "vdt/vdtMath.h"
namesp... | 33.79703 | 126 | 0.661198 |
ed99ea5cbdebc35466252de3163fb7e0094d3d32 | 8,223 | cpp | C++ | OpenSees/SRC/material/nD/J2PlaneStrain.cpp | kuanshi/ductile-fracture | ccb350564df54f5c5ec3a079100effe261b46650 | [
"MIT"
] | 8 | 2019-03-05T16:25:10.000Z | 2020-04-17T14:12:03.000Z | SRC/material/nD/J2PlaneStrain.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | null | null | null | SRC/material/nD/J2PlaneStrain.cpp | steva44/OpenSees | 417c3be117992a108c6bbbcf5c9b63806b9362ab | [
"TCL"
] | 3 | 2019-09-21T03:11:11.000Z | 2020-01-19T07:29:37.000Z | /* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... | 23.973761 | 83 | 0.563055 |
ed9b56a08d18cd0d8b4728595e32efa030bbd3ac | 103 | cpp | C++ | prototypes_cinder/PinballWarping/xcode/Location.cpp | redpaperheart/pinball_dreams | f1b873dc451157d9f2987501080a907635c80350 | [
"Unlicense"
] | 1 | 2016-07-29T21:19:12.000Z | 2016-07-29T21:19:12.000Z | prototypes_cinder/PinballWarping/xcode/Location.cpp | redpaperheart/pinball_dreams | f1b873dc451157d9f2987501080a907635c80350 | [
"Unlicense"
] | null | null | null | prototypes_cinder/PinballWarping/xcode/Location.cpp | redpaperheart/pinball_dreams | f1b873dc451157d9f2987501080a907635c80350 | [
"Unlicense"
] | null | null | null | //
// Location.cpp
// PinballWarping
//
// Created by Eric on 6/10/15.
//
//
#include "Location.h"
| 10.3 | 31 | 0.592233 |
ed9ba3c47988be5ffd20aee496fdc10cbac0ae5a | 3,102 | cpp | C++ | Greedy/948. Bag of Tokens.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Greedy/948. Bag of Tokens.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Greedy/948. Bag of Tokens.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | /*
Bad Question Description:
https://leetcode.com/problems/bag-of-tokens/discuss/197856/Bad-descriptions!
Description Rewrite:
You have a bag of tokens, from which you can take whichever token you want, and after you take one,
you can't put it back to the bag, meaning you can use every token at most once.
You st... | 24.425197 | 136 | 0.503224 |
ed9e58847541e3510e6f7161d7367d43711e4229 | 6,210 | cpp | C++ | tests/test_shuffled_indices.cpp | LLNL/LBANN | 8bcc5d461e52de70e329d73081ca7eee3e5c580a | [
"Apache-2.0"
] | null | null | null | tests/test_shuffled_indices.cpp | LLNL/LBANN | 8bcc5d461e52de70e329d73081ca7eee3e5c580a | [
"Apache-2.0"
] | null | null | null | tests/test_shuffled_indices.cpp | LLNL/LBANN | 8bcc5d461e52de70e329d73081ca7eee3e5c580a | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 39.056604 | 102 | 0.628019 |
eda0ba695c8196e54fb03f20d256c759c85c81ca | 8,509 | cpp | C++ | libvvmjit/Ext.cpp | vaporyco/vvmjit | e6ade8d34d44581081bcc45a9f6652263a606656 | [
"MIT"
] | null | null | null | libvvmjit/Ext.cpp | vaporyco/vvmjit | e6ade8d34d44581081bcc45a9f6652263a606656 | [
"MIT"
] | null | null | null | libvvmjit/Ext.cpp | vaporyco/vvmjit | e6ade8d34d44581081bcc45a9f6652263a606656 | [
"MIT"
] | null | null | null | #include "Ext.h"
#include "preprocessor/llvm_includes_start.h"
#include <llvm/IR/IntrinsicInst.h>
#include "preprocessor/llvm_includes_end.h"
#include "RuntimeManager.h"
#include "Memory.h"
#include "Type.h"
#include "Endianness.h"
namespace dev
{
namespace vap
{
namespace jit
{
Ext::Ext(RuntimeManager& _runtimeMan... | 39.948357 | 277 | 0.734164 |
eda0f587865b486a279f453d1c5a33422465cb54 | 3,478 | cxx | C++ | odb-tests-2.4.0/evolution/add-index/driver.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/evolution/add-index/driver.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-tests-2.4.0/evolution/add-index/driver.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : evolution/add-index/driver.cxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
// Test adding a new index.
//
#include <memory> // std::auto_ptr
#include <cassert>
#include <iostream>
#include <odb/database.hxx>
#include <odb/tr... | 20.826347 | 73 | 0.47211 |
eda1fe88ca42e7a3983e17b1b6955b02e7a46225 | 61,772 | cpp | C++ | RobotRaconteurCore/src/Discovery.cpp | robotraconteur/robotraconteur | ff997351761a687be364234684202e3348c4083c | [
"Apache-2.0"
] | 37 | 2019-01-31T06:05:17.000Z | 2022-03-21T06:56:18.000Z | RobotRaconteurCore/src/Discovery.cpp | robotraconteur/robotraconteur | ff997351761a687be364234684202e3348c4083c | [
"Apache-2.0"
] | 14 | 2019-07-18T04:09:45.000Z | 2021-08-31T02:04:22.000Z | RobotRaconteurCore/src/Discovery.cpp | robotraconteur/robotraconteur | ff997351761a687be364234684202e3348c4083c | [
"Apache-2.0"
] | 3 | 2018-11-23T22:03:22.000Z | 2021-11-02T10:03:39.000Z | // Copyright 2011-2020 Wason Technology, LLC
//
// 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... | 33.175081 | 344 | 0.673153 |
eda638f445c131091d5de5a945bf29c8532f6e0e | 552 | cpp | C++ | stack_two_queues/stack_two_queues.cpp | ryanmcdermott/katas | d23b8c131f03e4df0a3a5268de4b63c5b35058a1 | [
"MIT"
] | 46 | 2017-06-26T15:09:10.000Z | 2022-03-19T04:21:32.000Z | stack_two_queues/stack_two_queues.cpp | ryanmcdermott/katas | d23b8c131f03e4df0a3a5268de4b63c5b35058a1 | [
"MIT"
] | null | null | null | stack_two_queues/stack_two_queues.cpp | ryanmcdermott/katas | d23b8c131f03e4df0a3a5268de4b63c5b35058a1 | [
"MIT"
] | 13 | 2017-10-18T05:30:18.000Z | 2021-10-04T22:46:35.000Z | #include "./stack_two_queues.hpp"
#include <queue>
using std::queue;
void stack_two_queues::pop() {
if (q1.empty()) {
return;
}
while (q1.size() != 1) {
q2.push(q1.front());
q1.pop();
}
q1.pop();
queue<int> temp = q1;
q1 = q2;
q2 = temp;
}
void stack_two_queues::push(int num) { q1.push... | 13.8 | 54 | 0.559783 |
eda87f79f5dcd8a91e728dc73a19ca219e1aa82e | 3,181 | cpp | C++ | sample/main.cpp | vmcraft/remoteprinter | bf0294bb01ec61782daf166a869abd2ee97fba28 | [
"Apache-2.0"
] | 11 | 2019-11-18T10:17:25.000Z | 2022-01-26T04:48:16.000Z | sample/main.cpp | vmcraft/remoteprinter | bf0294bb01ec61782daf166a869abd2ee97fba28 | [
"Apache-2.0"
] | null | null | null | sample/main.cpp | vmcraft/remoteprinter | bf0294bb01ec61782daf166a869abd2ee97fba28 | [
"Apache-2.0"
] | 5 | 2016-10-13T14:05:17.000Z | 2021-02-09T15:50:29.000Z |
#include "thriftlink_server.h"
#include "userdef_server.h"
#include <Windows.h>
#include "stdio.h"
#pragma comment(lib, "user32.lib")
bool inject_dll(HMODULE &hmodule, HHOOK &hhook, int target_threadid);
void eject_dll(HMODULE &hmodule, HHOOK &hhook);
BOOL CtrlHandler( DWORD fdwCtrlType ) ;
bool _break_loop = false... | 24.098485 | 92 | 0.594467 |
eda9a8023016c2c2f78c0248d7af05f1c29ba080 | 9,777 | cpp | C++ | tests/performance/memory/hipPerfBufferCopySpeed.cpp | parmance/HIP | 96ee9d1397f02ac4b4badd9243994728f6a89fe5 | [
"MIT"
] | 1,935 | 2017-05-28T04:52:18.000Z | 2022-03-30T23:50:43.000Z | tests/performance/memory/hipPerfBufferCopySpeed.cpp | parmance/HIP | 96ee9d1397f02ac4b4badd9243994728f6a89fe5 | [
"MIT"
] | 1,310 | 2017-05-30T22:16:09.000Z | 2022-03-31T08:25:58.000Z | tests/performance/memory/hipPerfBufferCopySpeed.cpp | parmance/HIP | 96ee9d1397f02ac4b4badd9243994728f6a89fe5 | [
"MIT"
] | 495 | 2017-06-01T01:26:27.000Z | 2022-03-28T16:36:51.000Z | /*
Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. 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 without restriction, including without limitation the rights
to use, c... | 31.846906 | 122 | 0.561215 |
eda9eb6815dc060939adf05c52e399ecddcce703 | 7,586 | hpp | C++ | command-line-arguments/command-line-arguments.hpp | markcox80/command-line-arguments-c- | c70ab69eb014dbc72241e2f8e6341bbb792a595e | [
"BSD-2-Clause"
] | 1 | 2017-01-16T18:43:38.000Z | 2017-01-16T18:43:38.000Z | command-line-arguments/command-line-arguments.hpp | markcox80/command-line-arguments-cxx | c70ab69eb014dbc72241e2f8e6341bbb792a595e | [
"BSD-2-Clause"
] | null | null | null | command-line-arguments/command-line-arguments.hpp | markcox80/command-line-arguments-cxx | c70ab69eb014dbc72241e2f8e6341bbb792a595e | [
"BSD-2-Clause"
] | null | null | null | #ifndef _COMMAND_LINE_ARGUMENTS_HPP_
#define _COMMAND_LINE_ARGUMENTS_HPP_
extern "C" {
#include <inttypes.h>
};
#include <string>
#include <stdexcept>
#include <sstream>
#include <limits>
/* Exceptions
*
*/
struct not_enough_arguments_error : public std::runtime_error
{
not_enough_arguments_error();
};
struct... | 23.780564 | 132 | 0.716715 |
edaa67352a7ea85bdfe3f9ea126b78b8d7ae713a | 3,766 | cpp | C++ | test/InverseKinematicsTest.cpp | EthanQuist/ENPM808X_Midterm | ab01777bd9da910cd750dffbeaf15ba60b619062 | [
"BSD-3-Clause"
] | null | null | null | test/InverseKinematicsTest.cpp | EthanQuist/ENPM808X_Midterm | ab01777bd9da910cd750dffbeaf15ba60b619062 | [
"BSD-3-Clause"
] | 3 | 2019-10-13T03:34:25.000Z | 2019-10-20T23:57:43.000Z | test/InverseKinematicsTest.cpp | EthanQuist/ENPM808X_Midterm | ab01777bd9da910cd750dffbeaf15ba60b619062 | [
"BSD-3-Clause"
] | 1 | 2019-10-10T03:52:53.000Z | 2019-10-10T03:52:53.000Z | /* Copyright (c) 2019, Acme Robotics, Ethan Quist, Corbyn Yhap
* 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... | 34.87037 | 81 | 0.726766 |
edab83287730821302267413d54d4745442a48cb | 8,154 | cpp | C++ | src/modules/socket/server/icmp_socket.cpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/modules/socket/server/icmp_socket.cpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/modules/socket/server/icmp_socket.cpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | #include <cassert>
#include <cstring>
#include <numeric>
#include <optional>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include "socket/server/icmp_socket.hpp"
#include "socket/server/lwip_utils.hpp"
#include "socket/server/raw_socket.hpp"
#include "lwip/icmp.h"
#include "lwip/icmp6.h"
#inclu... | 33.012146 | 80 | 0.604366 |
edabbfc3844b829d3065f0cbde6a6de2f2528681 | 6,069 | hpp | C++ | inference-engine/samples/hello_reshape_ssd/reshape_ssd_extension.hpp | anton-potapov/openvino | 84119afe9a8c965e0a0cd920fff53aee67b05108 | [
"Apache-2.0"
] | 1 | 2020-06-21T09:51:42.000Z | 2020-06-21T09:51:42.000Z | inference-engine/samples/hello_reshape_ssd/reshape_ssd_extension.hpp | anton-potapov/openvino | 84119afe9a8c965e0a0cd920fff53aee67b05108 | [
"Apache-2.0"
] | null | null | null | inference-engine/samples/hello_reshape_ssd/reshape_ssd_extension.hpp | anton-potapov/openvino | 84119afe9a8c965e0a0cd920fff53aee67b05108 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <map>
#include <memory>
#include <string>
#include <algorithm>
#include <vector>
#include <ie_layouts.h>
#include <ie_iextension.h>
#include <ie_blob.h>
#include <ngraph/op/op.hpp>
#include <ngraph/node.hpp>
#include <ngr... | 36.560241 | 137 | 0.633218 |
edaec1cce6bf3b60cd02fd6a5a2daa8bb24e0360 | 95,371 | cpp | C++ | Classes/Native/Bulk_UnityEngine.UnityWebRequestWWWModule_0.cpp | sashohadz/unityStartDelayTest | 875dba86e11fec2e4fd3f0b953007dd6c5e63ab1 | [
"MIT"
] | null | null | null | Classes/Native/Bulk_UnityEngine.UnityWebRequestWWWModule_0.cpp | sashohadz/unityStartDelayTest | 875dba86e11fec2e4fd3f0b953007dd6c5e63ab1 | [
"MIT"
] | null | null | null | Classes/Native/Bulk_UnityEngine.UnityWebRequestWWWModule_0.cpp | sashohadz/unityStartDelayTest | 875dba86e11fec2e4fd3f0b953007dd6c5e63ab1 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... | 33.346503 | 250 | 0.798754 |
edb063eebef799414986841dc05552b5a79410b8 | 1,342 | cc | C++ | src/search/pdbs/canonical_pdbs.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | src/search/pdbs/canonical_pdbs.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | src/search/pdbs/canonical_pdbs.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | #include "canonical_pdbs.h"
#include "dominance_pruning.h"
#include "pattern_database.h"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <limits>
using namespace std;
namespace pdbs {
CanonicalPDBs::CanonicalPDBs(
shared_ptr<PDBCollection> pattern_databases,
shared_ptr<MaxAdditivePDBSub... | 29.822222 | 81 | 0.665425 |
edb16913e2d8d03e7e31ed1debbf6b15e361a3c1 | 12,163 | cpp | C++ | Data/SQLite/src/Utility.cpp | byteman/poco | f0f7f0fd3ce0ae3098de075a9c36bbd2f2ed0a13 | [
"BSL-1.0"
] | 1 | 2020-04-09T18:58:35.000Z | 2020-04-09T18:58:35.000Z | Data/SQLite/src/Utility.cpp | byteman/poco | f0f7f0fd3ce0ae3098de075a9c36bbd2f2ed0a13 | [
"BSL-1.0"
] | null | null | null | Data/SQLite/src/Utility.cpp | byteman/poco | f0f7f0fd3ce0ae3098de075a9c36bbd2f2ed0a13 | [
"BSL-1.0"
] | null | null | null | //
// Utility.cpp
//
// $Id: //poco/Main/Data/SQLite/src/Utility.cpp#5 $
//
// Library: SQLite
// Package: SQLite
// Module: Utility
//
// Implementation of Utility
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Permission is hereby granted, free of charge, to any p... | 36.969605 | 144 | 0.757543 |
edb1aa145cad270457d2a8575b0c1b8292f92959 | 2,146 | cpp | C++ | src/shogun/preprocessor/SumOne.cpp | srgnuclear/shogun | 33c04f77a642416376521b0cd1eed29b3256ac13 | [
"Ruby",
"MIT"
] | 1 | 2015-11-05T18:31:14.000Z | 2015-11-05T18:31:14.000Z | src/shogun/preprocessor/SumOne.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | src/shogun/preprocessor/SumOne.cpp | waderly/shogun | 9288b6fa38e001d63c32188f7f847dadea66e2ae | [
"Ruby",
"MIT"
] | null | null | null | /*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2012 Sergey Lisitsyn
* Copyright (C) 2012 Serg... | 25.247059 | 97 | 0.753029 |
edb1ba802a364f855dfa4e5cdaa275cd1e9a6ded | 10,956 | cpp | C++ | src/ompl/control/src/SpaceInformation.cpp | ericpairet/ompl | 25c76431cef25f0100ed74d09dd88944ecca5ee1 | [
"BSD-3-Clause"
] | 837 | 2015-01-07T12:01:20.000Z | 2022-03-31T08:42:42.000Z | src/ompl/control/src/SpaceInformation.cpp | ericpairet/ompl | 25c76431cef25f0100ed74d09dd88944ecca5ee1 | [
"BSD-3-Clause"
] | 271 | 2015-01-12T22:05:06.000Z | 2022-03-30T22:16:01.000Z | src/ompl/control/src/SpaceInformation.cpp | ericpairet/ompl | 25c76431cef25f0100ed74d09dd88944ecca5ee1 | [
"BSD-3-Clause"
] | 452 | 2015-02-10T08:48:21.000Z | 2022-03-23T06:53:33.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions... | 33.814815 | 117 | 0.596568 |
edb5df4596b031736b5437b81f07fd520c1413ce | 1,797 | hpp | C++ | include/range/v3/view/unique.hpp | berolinux/range-v3 | d8ce45f1698931399fb09a322307eb95567be832 | [
"MIT"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | include/range/v3/view/unique.hpp | berolinux/range-v3 | d8ce45f1698931399fb09a322307eb95567be832 | [
"MIT"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | include/range/v3/view/unique.hpp | berolinux/range-v3 | d8ce45f1698931399fb09a322307eb95567be832 | [
"MIT"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | /// \file
// Range v3 library
//
// Copyright Eric Niebler 2013-present
//
// Use, modification and distribution is subject to 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)
//
// Project home: https://github.com/ericniebler... | 27.227273 | 83 | 0.607123 |
edb6256af3b3e34d3a889492de43c916f3b7dd80 | 2,261 | hpp | C++ | include/networkit/coarsening/ClusteringProjector.hpp | kmc-kk/networkit | 28c1208104acae8ef70911340bf88b3e3dd08db7 | [
"MIT"
] | null | null | null | include/networkit/coarsening/ClusteringProjector.hpp | kmc-kk/networkit | 28c1208104acae8ef70911340bf88b3e3dd08db7 | [
"MIT"
] | null | null | null | include/networkit/coarsening/ClusteringProjector.hpp | kmc-kk/networkit | 28c1208104acae8ef70911340bf88b3e3dd08db7 | [
"MIT"
] | 1 | 2020-02-05T17:39:47.000Z | 2020-02-05T17:39:47.000Z | /*
* ClusteringProjector.h
*
* Created on: 07.01.2013
* Author: Christian Staudt (christian.staudt@kit.edu)
*/
#ifndef NETWORKIT_COARSENING_CLUSTERING_PROJECTOR_HPP_
#define NETWORKIT_COARSENING_CLUSTERING_PROJECTOR_HPP_
#include <networkit/graph/Graph.hpp>
#include <networkit/structures/Partition.hpp>
na... | 30.972603 | 148 | 0.678903 |
edb659b91eebfa6db163ad76e4e3a47a6d9658eb | 1,809 | cpp | C++ | Eleusis_sln/Eleusis/01_os_backend/01_Win32/Timer_Win32.cpp | bognikol/Eleusis | ee518ede31893689eb6d3c5539e0bd757aeb0294 | [
"MIT"
] | 4 | 2019-05-31T19:55:23.000Z | 2020-10-27T10:00:32.000Z | Eleusis_sln/Eleusis/01_os_backend/01_Win32/Timer_Win32.cpp | bognikol/Eleusis | ee518ede31893689eb6d3c5539e0bd757aeb0294 | [
"MIT"
] | null | null | null | Eleusis_sln/Eleusis/01_os_backend/01_Win32/Timer_Win32.cpp | bognikol/Eleusis | ee518ede31893689eb6d3c5539e0bd757aeb0294 | [
"MIT"
] | 3 | 2019-04-29T14:09:38.000Z | 2020-10-27T10:00:33.000Z | #ifdef _WIN32
#include "Timer.h"
#include <Windows.h>
using namespace Eleusis;
using namespace std;
static std::map<void*, Timer*> _activeTimers;
void CALLBACK _timerProc(_In_ HWND hwnd, _In_ UINT uMsg, _In_ UINT_PTR idEvent, _In_ DWORD dwTime)
{
auto l_timerIter = _activeTimers.find(reinterpret_cast<void*>(id... | 19.663043 | 98 | 0.682698 |
edc232de82b448ad6a4c98b1fad9a09f9615b0a4 | 90,628 | cpp | C++ | PhysEngines/tokamak/tokamak_release/tokamaksrc/src/ne_interface.cpp | netpipe/IrrPAL | 39cfbe497c0d18a3b63f1a7758a2b979977d8efb | [
"BSD-3-Clause"
] | 22 | 2015-02-18T16:38:52.000Z | 2021-04-11T06:25:28.000Z | PhysEngines/tokamak/tokamak_release/tokamaksrc/src/ne_interface.cpp | netpipe/IrrPAL | 39cfbe497c0d18a3b63f1a7758a2b979977d8efb | [
"BSD-3-Clause"
] | null | null | null | PhysEngines/tokamak/tokamak_release/tokamaksrc/src/ne_interface.cpp | netpipe/IrrPAL | 39cfbe497c0d18a3b63f1a7758a2b979977d8efb | [
"BSD-3-Clause"
] | 9 | 2017-06-27T12:46:15.000Z | 2022-03-17T08:27:50.000Z | /*************************************************************************
* *
* Tokamak Physics Engine, Copyright (C) 2002-2007 David Lam. *
* All rights reserved. Email: david@tokamakphysics.com *
* ... | 23.601042 | 129 | 0.399534 |
edc4d3e8316cf5389f8c279780ec97dff650f17e | 4,851 | cpp | C++ | sensing/pointcloud_preprocessor/src/downsample_filter/voxel_grid_downsample_filter_nodelet.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 58 | 2021-11-30T09:03:46.000Z | 2022-03-31T15:25:17.000Z | sensing/pointcloud_preprocessor/src/downsample_filter/voxel_grid_downsample_filter_nodelet.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 425 | 2021-11-30T02:24:44.000Z | 2022-03-31T10:26:37.000Z | sensing/pointcloud_preprocessor/src/downsample_filter/voxel_grid_downsample_filter_nodelet.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 69 | 2021-11-30T02:09:18.000Z | 2022-03-31T15:38:29.000Z | // Copyright 2020 Tier IV, Inc.
//
// 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 to i... | 40.425 | 93 | 0.754277 |
edc7747afbbb09fe4f58400834f2ad809d5c0017 | 1,822 | cpp | C++ | Tests/Unit/TestMilestone3.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | 17 | 2018-03-29T15:24:40.000Z | 2022-01-10T05:01:09.000Z | Tests/Unit/TestMilestone3.cpp | EDFilms/GCAP | 4d68809efe3528cb0b9a0039d3082512400c84da | [
"MIT"
] | null | null | null | Tests/Unit/TestMilestone3.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 "tinydir/tinydir.h"
#include "TestCRC.h"
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef uint64_t u64;
typed... | 25.661972 | 108 | 0.75247 |
edc7ce61fd54c22657f483cd36b8869abcf969aa | 1,929 | cpp | C++ | Plugins/UE4-DialogueSystem-master/Source/DialogueSystem/Private/BTComposite_Context.cpp | crimsonstrife/velorum-defunct | 1a6e1eab9057293da2aa045eff021d069df54c5e | [
"CC0-1.0"
] | 1 | 2018-07-07T16:51:34.000Z | 2018-07-07T16:51:34.000Z | Plugins/UE4-DialogueSystem-master/Source/DialogueSystem/Private/BTComposite_Context.cpp | crimsonstrife/velorum-defunct | 1a6e1eab9057293da2aa045eff021d069df54c5e | [
"CC0-1.0"
] | null | null | null | Plugins/UE4-DialogueSystem-master/Source/DialogueSystem/Private/BTComposite_Context.cpp | crimsonstrife/velorum-defunct | 1a6e1eab9057293da2aa045eff021d069df54c5e | [
"CC0-1.0"
] | 1 | 2019-10-02T01:19:21.000Z | 2019-10-02T01:19:21.000Z | //Copyright (c) 2016 Artem A. Mavrin and other contributors
#include "DialogueSystemPrivatePCH.h"
#include "BTComposite_Context.h"
UBTComposite_Context::UBTComposite_Context(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
NodeName = "Context";
ExecutionMode = EContextExecutionMode::CE_Sequ... | 29.227273 | 146 | 0.790565 |
edc9c39634b83f0e12b48c78ea9bb66b3d5a3c86 | 10,251 | cpp | C++ | src/core/mp2v_hdr.cpp | fxslava/tiny_mp2v_enc | cd7f6fe8fc0652f060e466f7bb51397807c8e571 | [
"MIT"
] | 1 | 2022-02-19T15:29:18.000Z | 2022-02-19T15:29:18.000Z | src/core/mp2v_hdr.cpp | fxslava/tiny_mp2v_enc | cd7f6fe8fc0652f060e466f7bb51397807c8e571 | [
"MIT"
] | null | null | null | src/core/mp2v_hdr.cpp | fxslava/tiny_mp2v_enc | cd7f6fe8fc0652f060e466f7bb51397807c8e571 | [
"MIT"
] | null | null | null | #include "mp2v_hdr.h"
#include "misc.hpp"
bool write_sequence_header(bitstream_writer_c* m_bs, sequence_header_t &sh) {
m_bs->align();
m_bs->write_bits(START_CODE(sequence_header_code), 32);
m_bs->write_bits(sh.horizontal_size_value, 12);
m_bs->write_bits(sh.vertical_size_value, 12);
m_bs->write_bi... | 43.253165 | 163 | 0.727441 |
edcb4239510c0b7f3e41f6388f3a86013aa56364 | 2,969 | cpp | C++ | roomedit/owl-6.43/source/owlcore/timegadg.cpp | marcelkauf/Meridian59-101 | a83e2779e39bc529dc61dc02db091db7db29734c | [
"FSFAP"
] | 214 | 2015-01-02T23:36:42.000Z | 2022-03-30T01:41:41.000Z | roomedit/owl-6.43/source/owlcore/timegadg.cpp | marcelkauf/Meridian59-101 | a83e2779e39bc529dc61dc02db091db7db29734c | [
"FSFAP"
] | 100 | 2015-01-01T13:51:57.000Z | 2022-03-28T15:49:36.000Z | roomedit/owl-6.43/source/owlcore/timegadg.cpp | marcelkauf/Meridian59-101 | a83e2779e39bc529dc61dc02db091db7db29734c | [
"FSFAP"
] | 85 | 2015-01-08T16:09:04.000Z | 2022-02-22T05:24:56.000Z | //----------------------------------------------------------------------------
// ObjectWindows
// Copyright (c) 1995, 1996 by Borland International, All Rights Reserved
//
//----------------------------------------------------------------------------
#include <owl/pch.h>
#if !defined(OWL_TIMEGADG_H)
# include <owl/tim... | 21.671533 | 88 | 0.6258 |
edcd90b9ca77108547b2914295385a5947d5bdf0 | 19,610 | cpp | C++ | unix/disp_sdl.cpp | acekiller/povray | ae6837fb8625bb9ca00830f8871c90c87dd21b75 | [
"Zlib"
] | 1 | 2015-06-21T05:27:57.000Z | 2015-06-21T05:27:57.000Z | unix/disp_sdl.cpp | binji/povray | ae6837fb8625bb9ca00830f8871c90c87dd21b75 | [
"Zlib"
] | null | null | null | unix/disp_sdl.cpp | binji/povray | ae6837fb8625bb9ca00830f8871c90c87dd21b75 | [
"Zlib"
] | null | null | null | /*******************************************************************************
* disp_sdl.cpp
*
* Written by Christoph Hormann <chris_hormann@gmx.de>
*
* SDL (Simple direct media layer) based render display system
*
* from Persistence of Vision Ray Tracer ('POV-Ray') version 3.7.
* Copyright 2003-2009 Persist... | 28.753666 | 131 | 0.647119 |
edcdb5fc493944a65db3ff558874a10ebd9fcb87 | 2,630 | cpp | C++ | src/caffe/layers/tile_layer_hip.cpp | emerth/hipCaffe | 8996c92bed2fbe353d1f31ab3ad116ab8831cd94 | [
"BSD-2-Clause"
] | 123 | 2017-05-04T02:15:47.000Z | 2021-01-04T05:04:24.000Z | src/caffe/layers/tile_layer_hip.cpp | emerth/hipCaffe | 8996c92bed2fbe353d1f31ab3ad116ab8831cd94 | [
"BSD-2-Clause"
] | 43 | 2017-05-10T11:21:25.000Z | 2021-01-28T14:53:01.000Z | src/caffe/layers/tile_layer_hip.cpp | emerth/hipCaffe | 8996c92bed2fbe353d1f31ab3ad116ab8831cd94 | [
"BSD-2-Clause"
] | 32 | 2017-05-10T11:08:18.000Z | 2020-12-17T20:03:45.000Z | #include <vector>
#include "caffe/layers/tile_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
__global__ void Tile(const int nthreads, const Dtype* bottom_data,
const int tile_size, const int num_tiles, const int bottom_tile_axis,
Dtype* top_data) {
HIP_KERNE... | 39.253731 | 84 | 0.715209 |
edce6b057bd3cf9b970e8fa200e93cd0e03f76e1 | 3,608 | cpp | C++ | tools/clang/test/SemaCXX/nullability.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 1,192 | 2017-01-23T23:27:01.000Z | 2019-05-05T14:08:40.000Z | tools/clang/test/SemaCXX/nullability.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 2,214 | 2019-05-06T22:22:53.000Z | 2022-03-31T19:38:50.000Z | tools/clang/test/SemaCXX/nullability.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 269 | 2019-05-07T11:59:04.000Z | 2022-03-30T08:41:50.000Z | // RUN: %clang_cc1 -std=c++11 -fsyntax-only -Wno-nullability-declspec %s -verify
#if __has_feature(nullability)
#else
# error nullability feature should be defined
#endif
typedef decltype(nullptr) nullptr_t;
class X {
};
// Nullability applies to all pointer types.
typedef int (X::* _Nonnull member_function_type_1... | 51.542857 | 157 | 0.773559 |
edcfddaedb27e828416ba2d7b4f8757ab6ee43dd | 3,377 | cc | C++ | third_party/blink/renderer/modules/webgl/oes_draw_buffers_indexed.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | third_party/blink/renderer/modules/webgl/oes_draw_buffers_indexed.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | third_party/blink/renderer/modules/webgl/oes_draw_buffers_indexed.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2019 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 "third_party/blink/renderer/modules/webgl/oes_draw_buffers_indexed.h"
namespace blink {
OESDrawBuffersIndexed::OESDrawBuffersIndexed(WebGLRende... | 34.814433 | 80 | 0.631626 |
edd24c2c54966acc08d2d649d9dee402dfb77ae1 | 15,269 | cpp | C++ | src/compile.cpp | fstromback/mymake | 1ccb9adbc5a336e29ca222f11e9368cdd026ee1b | [
"MIT"
] | 3 | 2017-05-30T11:29:06.000Z | 2021-09-04T15:32:23.000Z | src/compile.cpp | fstromback/mymake | 1ccb9adbc5a336e29ca222f11e9368cdd026ee1b | [
"MIT"
] | 5 | 2016-01-22T20:06:19.000Z | 2019-02-03T18:30:58.000Z | src/compile.cpp | fstromback/mymake | 1ccb9adbc5a336e29ca222f11e9368cdd026ee1b | [
"MIT"
] | null | null | null | #include "std.h"
#include "compile.h"
#include "wildcard.h"
#include "process.h"
#include "env.h"
namespace compile {
Target::Target(const Path &wd, const Config &config) :
wd(wd),
config(config),
includes(wd, config),
compileVariants(config.getArray("compile")),
buildDir(wd + Path(config.getVars("buildDir... | 27.812386 | 113 | 0.62604 |
edd3e5f994503a0dc71487167451233a97c68262 | 1,278 | cpp | C++ | test/edyn/sys/integrate_linvel.cpp | xissburg/EntityDynamics | 115da67243da53f7b5001a83260b2f3d7a0355b4 | [
"MIT"
] | null | null | null | test/edyn/sys/integrate_linvel.cpp | xissburg/EntityDynamics | 115da67243da53f7b5001a83260b2f3d7a0355b4 | [
"MIT"
] | null | null | null | test/edyn/sys/integrate_linvel.cpp | xissburg/EntityDynamics | 115da67243da53f7b5001a83260b2f3d7a0355b4 | [
"MIT"
] | null | null | null | #include "../common/common.hpp"
#include <edyn/sys/integrate_linvel.hpp>
TEST(integrate_linvel, test) {
entt::registry registry;
auto e0 = registry.create();
auto e1 = registry.create();
auto e2 = registry.create();
auto& p0 = registry.emplace<edyn::position>(e0, 2.f, 3.f, 4.f);
const auto p0_... | 32.769231 | 71 | 0.625978 |
edd4de317474574057c3065537ea5e1e08ccfbf4 | 922 | cpp | C++ | Lab7/Q1.cpp | Uncle-Road/CS205_cpp | 95d1e73676e0db65da077d1e6dc5148a5fa9a9ab | [
"MIT"
] | null | null | null | Lab7/Q1.cpp | Uncle-Road/CS205_cpp | 95d1e73676e0db65da077d1e6dc5148a5fa9a9ab | [
"MIT"
] | null | null | null | Lab7/Q1.cpp | Uncle-Road/CS205_cpp | 95d1e73676e0db65da077d1e6dc5148a5fa9a9ab | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
struct stringy
{
char *str;
int ct;
};
void set(stringy &stry, char *str);
void show(const stringy &stry, int times = 1);
void show(const char *str, int times = 1);
int main()
{
stringy beany;
char testing[] = "Reality isn't what it uesd to... | 15.896552 | 57 | 0.553145 |
edd5a33abc925ca38060f1594ba3d6cda727aa0c | 11,056 | cpp | C++ | AVSCommon/Utils/test/Common/MockMediaPlayer.cpp | jbfitbit/avs-device-sdk | 2e9428e9dfc9fa7c3b4bfd5106323f8c2f1643c9 | [
"Apache-2.0"
] | 1 | 2019-10-22T06:08:20.000Z | 2019-10-22T06:08:20.000Z | AVSCommon/Utils/test/Common/MockMediaPlayer.cpp | yodaos-project/voice-interface-avs | d01136637f92df952be894bb1869d420889689ac | [
"Apache-2.0"
] | null | null | null | AVSCommon/Utils/test/Common/MockMediaPlayer.cpp | yodaos-project/voice-interface-avs | d01136637f92df952be894bb1869d420889689ac | [
"Apache-2.0"
] | 1 | 2020-09-30T12:34:56.000Z | 2020-09-30T12:34:56.000Z | /*
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0/
*
* or in the "... | 32.807122 | 110 | 0.714182 |
edd5f9ac0b8a4a4ba24678e2b3285bf61b68a30e | 4,085 | cpp | C++ | src/main/c/StringUtil.cpp | scallopedllama/seasocks | 4daa1e3478e3af90b5fc7ff1ba4f7fe38029585f | [
"BSD-2-Clause"
] | null | null | null | src/main/c/StringUtil.cpp | scallopedllama/seasocks | 4daa1e3478e3af90b5fc7ff1ba4f7fe38029585f | [
"BSD-2-Clause"
] | null | null | null | src/main/c/StringUtil.cpp | scallopedllama/seasocks | 4daa1e3478e3af90b5fc7ff1ba4f7fe38029585f | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2013-2017, Matt Godbolt
// 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... | 30.714286 | 80 | 0.656304 |
edd9480978f68420ed90cb40f63dbcc1603bfd59 | 4,026 | cpp | C++ | src/server/sqlrqueries.cpp | davidwed/sqlrelay | 2c830ff2517bfdb1c70a880038cd326eb7a7f0d1 | [
"PHP-3.01",
"CC-BY-3.0"
] | 16 | 2018-04-23T09:58:33.000Z | 2022-01-31T13:40:20.000Z | src/server/sqlrqueries.cpp | davidwed/sqlrelay | 2c830ff2517bfdb1c70a880038cd326eb7a7f0d1 | [
"PHP-3.01",
"CC-BY-3.0"
] | null | null | null | src/server/sqlrqueries.cpp | davidwed/sqlrelay | 2c830ff2517bfdb1c70a880038cd326eb7a7f0d1 | [
"PHP-3.01",
"CC-BY-3.0"
] | 4 | 2020-12-23T12:17:54.000Z | 2022-01-04T20:46:34.000Z | // Copyright (c) 1999-2018 David Muse
// See the file COPYING for more information
#include <sqlrelay/sqlrserver.h>
#include <rudiments/domnode.h>
#include <rudiments/stdio.h>
//#define DEBUG_MESSAGES 1
#include <rudiments/debugprint.h>
#include <config.h>
#ifndef SQLRELAY_ENABLE_SHARED
extern "C" {
#include "sq... | 22.120879 | 71 | 0.687531 |