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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
874995fe98ffeae177797375b13cf239a4796968 | 3,339 | cpp | C++ | src/agent/Shared/Fundamentals/Utils.cpp | m5o/passenger | 9640816af708867d0994bd2eddb80ac24399f855 | [
"MIT"
] | 2,728 | 2015-01-01T10:06:45.000Z | 2022-03-30T18:12:58.000Z | src/agent/Shared/Fundamentals/Utils.cpp | philson-philip/passenger | 144a6f39722987921c7fce0be9d64befb125a88b | [
"MIT"
] | 1,192 | 2015-01-01T06:03:19.000Z | 2022-03-31T09:14:36.000Z | src/agent/Shared/Fundamentals/Utils.cpp | philson-philip/passenger | 144a6f39722987921c7fce0be9d64befb125a88b | [
"MIT"
] | 334 | 2015-01-08T20:47:03.000Z | 2022-02-18T07:07:01.000Z | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2010-2017 Phusion Holding B.V.
*
* "Passenger", "Phusion Passenger" and "Union Station" are registered
* trademarks of Phusion Holding B.V.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this ... | 26.085938 | 81 | 0.685235 | m5o |
874af4cb08261e47f30739b862bc3d57b47678b2 | 533 | cpp | C++ | 0039-Recover Rotated Sorted Array/0039-Recover Rotated Sorted Array.cpp | nmdis1999/LintCode-1 | 316fa395c9a6de9bfac1d9c9cf58acb5ffb384a6 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0001-0100/0039-Recover Rotated Sorted Array/0039-Recover Rotated Sorted Array.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0001-0100/0039-Recover Rotated Sorted Array/0039-Recover Rotated Sorted Array.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
void recoverRotatedSortedArray(vector<int> &nums) {
// write your code here
if (nums.size() == 0)
{
return;
}
for (int i = 0; i < nums.size() - 1; ++i)
{
if (nums[i] > nums[i + 1])
{
... | 24.227273 | 60 | 0.390244 | nmdis1999 |
874eecfc044abe477b2fe62ff1a046715e61152f | 3,949 | cpp | C++ | src/mame/drivers/aid80f.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/aid80f.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/aid80f.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:AJR
/****************************************************************************
AID-80F was Mostek's development system for the Z80 and 3870 families.
It was later advertised as the development system for the MATRIX-80
(MDX) STD bus microcomputer.
Boards ... | 27.615385 | 127 | 0.708787 | Robbbert |
87509160f6dcfb7d192723537785b4342edce344 | 781 | cpp | C++ | src/Core/Grammar/LoopBreaker.cpp | johnzeng/SimpleCompletor | e54b57242b7e624fea2d240bc50733ab6be72f6d | [
"MIT"
] | 1 | 2016-06-10T05:30:32.000Z | 2016-06-10T05:30:32.000Z | src/Core/Grammar/LoopBreaker.cpp | johnzeng/SimpleCompletor | e54b57242b7e624fea2d240bc50733ab6be72f6d | [
"MIT"
] | 1 | 2016-07-19T02:36:39.000Z | 2016-08-12T02:11:51.000Z | src/Core/Grammar/LoopBreaker.cpp | johnzeng/CppParser | e54b57242b7e624fea2d240bc50733ab6be72f6d | [
"MIT"
] | null | null | null | #include "LoopBreaker.h"
#include "StringUtil.h"
LoopBreaker::LoopBreaker(){}
LoopBreaker::~LoopBreaker(){}
bool LoopBreaker::insert(const string& file, int line, int index)
{
if (false == check(file, line, index))
{
return false;
}
mLoopMark[getKey(file, line, index)] = 1;
return true;
}
bool LoopBre... | 21.108108 | 79 | 0.664533 | johnzeng |
87533d1b52000d8b1b0c24f6dee2047a209b9453 | 61,404 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/Fragment.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/Fragment.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/Fragment.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 25.352601 | 126 | 0.637076 | jingcao80 |
875388a1f311e67c9a5dff0dedd1de9be7984990 | 876 | cpp | C++ | spec/cpp_stl_98/test_params_pass_array_int.cpp | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 11 | 2018-04-01T03:58:15.000Z | 2021-08-14T09:04:55.000Z | spec/cpp_stl_98/test_params_pass_array_int.cpp | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 73 | 2016-07-20T10:27:15.000Z | 2020-12-17T18:56:46.000Z | spec/cpp_stl_98/test_params_pass_array_int.cpp | DarkShadow44/kaitai_struct_tests | 4bb13cef82965cca66dda2eb2b77cd64e9f70a12 | [
"MIT"
] | 37 | 2016-08-15T08:25:56.000Z | 2021-08-28T14:48:46.000Z | // Autogenerated from KST: please remove this line if doing any edits by hand!
#include <boost/test/unit_test.hpp>
#include "params_pass_array_int.h"
#include <iostream>
#include <fstream>
#include <vector>
BOOST_AUTO_TEST_CASE(test_params_pass_array_int) {
std::ifstream ifs("src/position_to_end.bin", std::ifstre... | 36.5 | 78 | 0.695205 | DarkShadow44 |
87546f6abfb80b325f8a6b2457886b86016c83a8 | 918 | cpp | C++ | aws-cpp-sdk-wellarchitected/source/model/UpgradeLensReviewRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-wellarchitected/source/model/UpgradeLensReviewRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-wellarchitected/source/model/UpgradeLensReviewRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/wellarchitected/model/UpgradeLensReviewRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::WellArchitected::Model;
using namespace Aws::U... | 20.4 | 69 | 0.761438 | perfectrecall |
8759450edf0914156ea45d95387556e618c96a60 | 5,320 | hpp | C++ | src/musicpp/Enums.hpp | Cannedfood/musicpp | e2ba4337f7a434533ad15a2b4ce3c2d2a767c4ee | [
"Zlib"
] | null | null | null | src/musicpp/Enums.hpp | Cannedfood/musicpp | e2ba4337f7a434533ad15a2b4ce3c2d2a767c4ee | [
"Zlib"
] | null | null | null | src/musicpp/Enums.hpp | Cannedfood/musicpp | e2ba4337f7a434533ad15a2b4ce3c2d2a767c4ee | [
"Zlib"
] | null | null | null | // Copyright 2018 Benno Straub, Licensed under the MIT License, a copy can be found at the bottom of this file.
#pragma once
#include <string_view>
#include <array>
#include <stdexcept>
namespace music {
enum Accidental : int8_t {
FLAT = -1,
NATURAL = 0,
SHARP = 1,
};
enum Chroma : int8_t {
C = 0,
Cs = 1... | 29.72067 | 134 | 0.641729 | Cannedfood |
87598f7bc09dea23ca6541153d611f55b7056819 | 1,209 | hpp | C++ | Questless/Questless/src/entities/beings/world_view.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | 2 | 2020-07-14T12:50:06.000Z | 2020-11-04T02:25:09.000Z | Questless/Questless/src/entities/beings/world_view.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | Questless/Questless/src/entities/beings/world_view.hpp | jonathansharman/questless | bb9ffb2d21cbfde2a71edfecfcbf466479bbbe7d | [
"MIT"
] | null | null | null | //! @file
//! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>.
#pragma once
#include "entities/perception.hpp"
#include "world/coordinates.hpp"
#include "world/section.hpp"
#include <array>
#include <optional>
#include <variant>
#include <vector>
namespace ql {
struct being;
//! Represents everything an age... | 23.705882 | 101 | 0.71464 | jonathansharman |
875ab16c3dd7f896c3070d86b35a4716c0a14c78 | 25,678 | cpp | C++ | qtimageformats/src/plugins/imageformats/tiff/qtiffhandler.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | qtimageformats/src/plugins/imageformats/tiff/qtiffhandler.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | qtimageformats/src/plugins/imageformats/tiff/qtiffhandler.cpp | wgnet/wds_qt | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Q... | 34.283044 | 153 | 0.571384 | wgnet |
87643dc47b33eb0417bee94f127e4e45c81716ff | 417 | hpp | C++ | library/ATF/_force_result_other_zocl.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_force_result_other_zocl.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_force_result_other_zocl.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_CHRID.hpp>
START_ATF_NAMESPACE
struct _force_result_other_zocl
{
char byRetCode;
char byForceIndex;
char byForceLv;
_... | 21.947368 | 108 | 0.688249 | lemkova |
8766ad7e467125ea0d05c0ec58631a7ebe879e6c | 10,339 | hpp | C++ | timer/timer.hpp | Spilleren/mega2560-hal | 6531602e77cc94bb225e9df829e2f6d356ad00cf | [
"MIT"
] | null | null | null | timer/timer.hpp | Spilleren/mega2560-hal | 6531602e77cc94bb225e9df829e2f6d356ad00cf | [
"MIT"
] | null | null | null | timer/timer.hpp | Spilleren/mega2560-hal | 6531602e77cc94bb225e9df829e2f6d356ad00cf | [
"MIT"
] | null | null | null | #pragma once
#include "interface_timer.hpp"
#include "timer_configs.hpp"
#include <stdint.h>
namespace MEGA2560
{
namespace Timer
{
template <typename config>
class Device : public InterfaceTimer
{
public:
static Device &instance()
{
static Device instance;
... | 29.042135 | 85 | 0.448303 | Spilleren |
8768db73f78cc62e57bb67a64c3c724de1ef50dd | 3,131 | cpp | C++ | VideoPlayer/qtavvideowidget.cpp | wangpengcheng/OfflineMapTest | b1a28214fa4882589b3cf399669240b0ec3fc225 | [
"Apache-2.0"
] | 29 | 2019-03-30T23:30:36.000Z | 2022-02-28T13:35:19.000Z | VideoPlayer/qtavvideowidget.cpp | wangpengcheng/OfflineMapTest | b1a28214fa4882589b3cf399669240b0ec3fc225 | [
"Apache-2.0"
] | 1 | 2019-06-30T12:59:06.000Z | 2019-12-15T13:30:19.000Z | VideoPlayer/qtavvideowidget.cpp | wangpengcheng/OfflineMapTest | b1a28214fa4882589b3cf399669240b0ec3fc225 | [
"Apache-2.0"
] | 9 | 2019-03-24T12:41:09.000Z | 2021-12-02T12:43:28.000Z | #include "qtavvideowidget.h"
#include "QtAVWidgets/QtAVWidgets.h"
#include "QtAV/AudioOutput.h"
#include "MapItems/tool.h"
QtAVVideoWidget::QtAVVideoWidget(QWidget *parent) : QWidget(parent)
{
//初始化相关数据
Init();
}
QtAVVideoWidget::QtAVVideoWidget(QSharedPointer<QtAV::AVPlayer> new_player, QString new_vid)
{
... | 27.464912 | 92 | 0.633663 | wangpengcheng |
876a03d24d6cbaca07ec59f4252627356f92f8fb | 2,857 | cpp | C++ | suffix_array_long.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | 2 | 2018-10-30T08:13:30.000Z | 2019-03-05T22:49:40.000Z | suffix_array_long.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | null | null | null | suffix_array_long.cpp | agaitanis/strings | 13688cc3e9007d0dadaf92feca198272e135fe60 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <utility>
#include <cassert>
using namespace std;
#define ALPHABET_SIZE 5
static void print_vec(const char *s, const vector<int> &vec)
{
cout << s << ": ";
for (size_t i = 0; i < vec.size(); i++) {
cout << vec[i] << " ";
}
co... | 17.745342 | 109 | 0.583479 | agaitanis |
87722f657ad29345370fa872900120f6f91564da | 312 | hpp | C++ | include/internal/utils.hpp | hrlou/nhentai | 83440bd2b61c00d893941349bd7d571cc10cbec1 | [
"BSD-3-Clause"
] | 2 | 2020-10-11T15:27:12.000Z | 2020-10-14T19:28:09.000Z | include/internal/utils.hpp | hrlou/nhentai_c | 83440bd2b61c00d893941349bd7d571cc10cbec1 | [
"BSD-3-Clause"
] | null | null | null | include/internal/utils.hpp | hrlou/nhentai_c | 83440bd2b61c00d893941349bd7d571cc10cbec1 | [
"BSD-3-Clause"
] | 1 | 2021-05-29T07:51:02.000Z | 2021-05-29T07:51:02.000Z | #pragma once
#include <string>
namespace utils {
bool is_dir(const std::string& path);
bool exist_test(const std::string& name);
std::string dirname(const std::string& path);
std::string read_file(const std::string& name);
bool do_mkdir(const std::string& path);
bool mkpath(std::string path);
} | 22.285714 | 48 | 0.705128 | hrlou |
877583617168c2cda0f2f512daa22c2ed8b9bcc6 | 129 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:b7a689390058519b2e382a8fd260640bad650f9d9b17ef70106d4d3dd50bf16f
size 1082
| 32.25 | 75 | 0.883721 | initialz |
8776b36d526364173d5fe5484e7c7acbdd4ee015 | 2,224 | cpp | C++ | Irrlichtv1/DynamicObject.cpp | UnProgramator/Drone-AI-Training-Framework | bb6fb2b83331d6e0e307c6579184330c448efece | [
"Zlib",
"BSD-3-Clause"
] | 1 | 2021-03-16T16:28:11.000Z | 2021-03-16T16:28:11.000Z | Irrlichtv1/DynamicObject.cpp | UnProgramator/Licenta_alex | bb6fb2b83331d6e0e307c6579184330c448efece | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | Irrlichtv1/DynamicObject.cpp | UnProgramator/Licenta_alex | bb6fb2b83331d6e0e307c6579184330c448efece | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | #include "DynamicObject.h"
#include <iostream>
DynamicObject::DynamicObject(irr::scene::ISceneNode* meshNode, const irr::core::vector3df & position, const irr::core::vector3df& rotation, const irr::core::vector3df& forwardVector, bool bHasCollision, const std::string& name):
StaticObject(meshNode, position, rotation,... | 33.69697 | 318 | 0.774281 | UnProgramator |
877923bbe74e410e909c125a899c18d641a3e150 | 8,094 | cpp | C++ | usr/ringbuffer.cpp | Itamare4/ROS_stm32f1_rosserial_USB_VCP | 5fac421fa991db1ffe6fa469b93c0fb9d4ae2b87 | [
"BSD-3-Clause"
] | 14 | 2018-12-06T04:04:16.000Z | 2022-03-01T17:45:04.000Z | usr/ringbuffer.cpp | Itamare4/ROS_stm32f1_rosserial_USB_VCP | 5fac421fa991db1ffe6fa469b93c0fb9d4ae2b87 | [
"BSD-3-Clause"
] | null | null | null | usr/ringbuffer.cpp | Itamare4/ROS_stm32f1_rosserial_USB_VCP | 5fac421fa991db1ffe6fa469b93c0fb9d4ae2b87 | [
"BSD-3-Clause"
] | 7 | 2018-10-09T12:17:01.000Z | 2021-09-14T02:43:13.000Z | /*
* File : ringbuffer.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2012, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 ... | 25.695238 | 89 | 0.618112 | Itamare4 |
877969918d674c75ff14ee8e0bd12f2473d65237 | 1,643 | cpp | C++ | src/MemeGraphics/IndexBuffer.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemeGraphics/IndexBuffer.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | src/MemeGraphics/IndexBuffer.cpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #include <MemeGraphics/IndexBuffer.hpp>
#include <MemeGraphics/OpenGL.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * */
IndexBuffer::IndexBuffer()
: IHandle (NULL)
, m_data (NULL)
, m_count (NULL)
, m_usage (GL::StaticDraw)
, m_type (GL::UnsignedInt)
{
}
IndexBuffer::IndexBuffer(const In... | 18.670455 | 89 | 0.567864 | Gurman8r |
877db499e700e6495e5846c988e73903eaced9cd | 305 | cpp | C++ | lab4/src/countnegatives.cpp | Sinduja-S/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | 2 | 2020-04-17T05:26:11.000Z | 2020-05-09T12:27:07.000Z | lab4/src/countnegatives.cpp | sindu-sss/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | null | null | null | lab4/src/countnegatives.cpp | sindu-sss/Algorithm-Design-Lab | 9bd64ae42c574b91ca733bb108cd845c15fe3baf | [
"MIT"
] | 3 | 2020-04-02T12:50:10.000Z | 2021-03-27T05:01:22.000Z | #include <iostream>
using namespace std;
int countneg(int *a,int s,int e){
if(e==s){
if(a[e]<0)
return(1);
return(0);
}
else{
int z1,z2;
cout<<e;
cout<<s<<endl;
z1=countneg(a,s,(e+s)/2);
z2=countneg(a,(s+e)/2+1,e);
return(z1+z2);
}
} | 14.52381 | 33 | 0.472131 | Sinduja-S |
877fec58ed7c13622c1759d9146899aa20460ea9 | 427 | cpp | C++ | CodeBlocks1908/share/CodeBlocks/templates/wizard/fltk/files/main.cpp | BenjaminRenz/FirmwareTY71M | 55cff63f23c8d844341f4dbf58ce145f073567f6 | [
"MIT"
] | 9 | 2019-02-04T02:13:38.000Z | 2021-06-24T20:31:49.000Z | CodeBlocks1908/share/CodeBlocks/templates/wizard/fltk/files/main.cpp | userx14/FirmwareTY71M | 55cff63f23c8d844341f4dbf58ce145f073567f6 | [
"MIT"
] | null | null | null | CodeBlocks1908/share/CodeBlocks/templates/wizard/fltk/files/main.cpp | userx14/FirmwareTY71M | 55cff63f23c8d844341f4dbf58ce145f073567f6 | [
"MIT"
] | 1 | 2021-06-24T20:31:53.000Z | 2021-06-24T20:31:53.000Z | #include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
int main (int argc, char ** argv)
{
Fl_Window *window;
Fl_Box *box;
window = new Fl_Window (300, 180);
box = new Fl_Box (20, 40, 260, 100, "Hello World!");
box->box (FL_UP_BOX);
box->labelsize (36);
box->labelfont (FL_BOLD+FL_ITALIC);
... | 19.409091 | 54 | 0.63466 | BenjaminRenz |
87836940c2798edb41ccb43175c5019e177b54b6 | 349 | cpp | C++ | src/KEngine/src/Common/Color.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/KEngine/src/Common/Color.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/KEngine/src/Common/Color.cpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #include "KEngine/Common/Color.hpp"
namespace ke
{
const Color Color::WHITE { 255, 255, 255, 255};
const Color Color::BLACK { 0, 0, 0, 255 };
const Color Color::RED { 255, 0, 0, 255 };
const Color Color::GREEN { 0, 255, 0, 255 };
const Color Color::BLUE { 0, 0, 255, 255 };
const Color Color::T... | 26.846154 | 51 | 0.595989 | yxbh |
8785b725fffd3c073dd3d559965bc2a746d773f5 | 6,583 | cpp | C++ | apps/cloud_inference/server_app/region.cpp | asalmanp/MIVisionX | a964774944331827c8d6e9bb1ffbb2578f335056 | [
"MIT"
] | 153 | 2018-12-20T19:33:15.000Z | 2022-03-30T03:51:14.000Z | apps/cloud_inference/server_app/region.cpp | asalmanp/MIVisionX | a964774944331827c8d6e9bb1ffbb2578f335056 | [
"MIT"
] | 484 | 2019-01-02T23:51:58.000Z | 2022-03-31T15:52:43.000Z | apps/cloud_inference/server_app/region.cpp | asalmanp/MIVisionX | a964774944331827c8d6e9bb1ffbb2578f335056 | [
"MIT"
] | 105 | 2018-12-21T00:02:38.000Z | 2022-03-25T15:44:02.000Z | #include "region.h"
#include "common.h"
// biases for Nb=5
const std::string classNames20[] = { "aeroplane","bicycle","bird","boat","bottle","bus","car","cat","chair","cow","diningtable","dog","horse","motorbike","person","pottedplant","sheep","sofa","train","tvmonitor"};
// helper functions
// sort indexes based ... | 28.012766 | 216 | 0.510102 | asalmanp |
8788714b6fe83a50d1222bfa89a660c64e0ddc07 | 1,989 | cpp | C++ | datastructure/08/8-6.cpp | Simon-Chenzw/homework | 6e0e7f8c498f047b4fea5b050690dec4de5bd5a7 | [
"MIT"
] | 4 | 2021-04-05T16:32:06.000Z | 2022-03-10T01:28:04.000Z | datastructure/08/8-6.cpp | Simon-Chenzw/homework | 6e0e7f8c498f047b4fea5b050690dec4de5bd5a7 | [
"MIT"
] | null | null | null | datastructure/08/8-6.cpp | Simon-Chenzw/homework | 6e0e7f8c498f047b4fea5b050690dec4de5bd5a7 | [
"MIT"
] | null | null | null | #include <cctype>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <stack>
using namespace std;
class Node {
public:
char name;
list<Node*> sub;
Node(): name(0) {}
Node(char _name): name(_name) {}
set<int> findDep(char ch) const {
set<int> ret;
bfsFind(... | 26.52 | 92 | 0.43992 | Simon-Chenzw |
878db0266024ff8c6088177de583c77696c6ef60 | 2,482 | cpp | C++ | CtCI/Chapter1/1.3.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | 2 | 2021-12-29T14:42:51.000Z | 2021-12-29T14:46:45.000Z | CtCI/Chapter1/1.3.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | CtCI/Chapter1/1.3.cpp | wqw547243068/DS_Algorithm | 6d4a9baeb3650a8f93308c7405c9483bac59e98b | [
"RSA-MD"
] | null | null | null | #include <iostream>
#include <cstring>
using namespace std;
string removeDuplicate1(string s)
{
int check = 0;
int len = s.length();
if(len < 2) return s;
string str = "";
for(int i=0; i<len; ++i)
{
int v = (int)(s[i]-'a');
if((check & (1<<v)) == 0)
{
str += ... | 21.033898 | 64 | 0.43755 | wqw547243068 |
878ff952ba31c6ca43afaed0936051ecd81610c8 | 2,388 | hpp | C++ | src/models/Mesh.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | 1 | 2016-05-05T10:20:45.000Z | 2016-05-05T10:20:45.000Z | src/models/Mesh.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | null | null | null | src/models/Mesh.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | null | null | null | #ifndef MESH
#define MESH
#include "Model.hpp"
#include "Triangle.hpp"
#include "../common.hpp"
class Mesh : public Model {
private:
vector<Triangle> __tris;
vector<vec3> __vertices;
vector<vec3> __model_verticles;
vector<vec2> __uvs;
public:
Mesh(const char *file_name, const Material &material):
Model(materi... | 28.428571 | 224 | 0.643216 | sophia-x |
87926192a988cd4db786867eb9a8df26601c7619 | 16,021 | cc | C++ | src/model/mem_sampler.cc | delorean-sim/gem5 | 0c02c1d7efb781680eb5817730440832af3d5587 | [
"BSD-3-Clause"
] | null | null | null | src/model/mem_sampler.cc | delorean-sim/gem5 | 0c02c1d7efb781680eb5817730440832af3d5587 | [
"BSD-3-Clause"
] | null | null | null | src/model/mem_sampler.cc | delorean-sim/gem5 | 0c02c1d7efb781680eb5817730440832af3d5587 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012-2019 Nikos Nikoleris
* All rights reserved.
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of... | 32.629328 | 78 | 0.628051 | delorean-sim |
87947efc4974a50c8e689fb07952009ffe8ef12f | 1,925 | cpp | C++ | foo_cover_resizer/ContextMenuUtils.cpp | marc2k3/fb2k-component | 1dcdfd489eefc3a392d2ff4d0fb5133aa6636e73 | [
"MIT"
] | 7 | 2021-10-05T02:13:08.000Z | 2022-03-29T15:17:37.000Z | foo_cover_resizer/ContextMenuUtils.cpp | marc2k3/fb2k-component | 1dcdfd489eefc3a392d2ff4d0fb5133aa6636e73 | [
"MIT"
] | 2 | 2022-03-11T04:49:10.000Z | 2022-03-17T00:13:04.000Z | foo_cover_resizer/ContextMenuUtils.cpp | marc2k3/fb2k-component | 1dcdfd489eefc3a392d2ff4d0fb5133aa6636e73 | [
"MIT"
] | null | null | null | #include "stdafx.h"
using namespace resizer;
static const std::vector<ContextItem> context_items =
{
{ &guid_context_command_convert, "Convert front covers to JPG without resizng" },
{ &guid_context_command_remove_all_except_front, "Remove all except front" },
};
class ContextMenuUtils : public contextmenu_item_si... | 28.308824 | 192 | 0.753766 | marc2k3 |
8797e5ee50a22e5af0a19ef86a3311b1661a95b3 | 3,173 | cpp | C++ | modules/trivia/cmd_achievements.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 23 | 2020-06-28T18:07:03.000Z | 2022-03-02T20:12:47.000Z | modules/trivia/cmd_achievements.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 4 | 2020-10-08T13:37:39.000Z | 2022-03-26T22:41:19.000Z | modules/trivia/cmd_achievements.cpp | brainboxdotcc/triviabot | d074256f38a002bfb9d352c4f80bc45f19a71384 | [
"Apache-2.0"
] | 13 | 2020-10-08T13:32:02.000Z | 2021-12-02T00:00:28.000Z | /************************************************************************************
*
* TriviaBot, The trivia bot for discord based on Fruitloopy Trivia for ChatSpike IRC
*
* Copyright 2004 Craig Edwards <support@brainbox.cc>
*
* Core based on Sporks, the Learning Discord Bot, Craig Edwards (c) 2019.
*
* Lic... | 40.679487 | 250 | 0.670974 | brainboxdotcc |
879a470fc5bf0aebafbd40975363b09fa0725bd3 | 479 | cpp | C++ | src/A/A6B84.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/A/A6B84.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/A/A6B84.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long
#define ld long double
using namespace std;
bool prime(int n){
int m=sqrt(n);
for(int i=2;i<=m;i++){
if(n%i==0) return false;
}
return true;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
ll n,q=1;
while(cin>>n){
if(n==0) return 0;
else{
if(n<=3) ;
... | 15.451613 | 35 | 0.542797 | wlhcode |
879a8472c0a0fcbd4bdd4f1755fd7604ccb68f4c | 427 | cpp | C++ | src/Generic/common/SymbolConstants.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/Generic/common/SymbolConstants.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/Generic/common/SymbolConstants.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h" // This must be the first #include
#include "Generic/common/SymbolConstants.h"
Symbol SymbolConstants::leftParen = Symbol(L"(");
Symbol SymbolConstants::rightParen = Symbol(L")");
Symbol SymbolCons... | 35.583333 | 78 | 0.747073 | BBN-E |
879bb074afd41eb3c778443b83ee7f18ddd99b5b | 770 | cc | C++ | apose.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | apose.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | apose.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #include "imgutils.hh"
#include "strutils.hh"
#include "partrait.hh"
#include "parson.hh"
#include "catalog.hh"
#include "autoposer.hh"
using namespace makemore;
using namespace std;
int main(int argc, char **argv) {
assert(argc > 0);
Catalog cat(argv[1]);
Autoposer ap("fineposer.proj");
for (auto fn : cat.f... | 19.25 | 41 | 0.619481 | jdb19937 |
879cf099e1424416d9da9c5c94647ab57d86a769 | 5,575 | cpp | C++ | runtime/tests/test_message_priority.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | 1 | 2021-09-03T10:22:04.000Z | 2021-09-03T10:22:04.000Z | runtime/tests/test_message_priority.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | runtime/tests/test_message_priority.cpp | thejkane/AGM | 4d5cfe9522461d207ceaef7d90c1cd10ce9b469c | [
"BSL-1.0"
] | null | null | null | #include <config.h>
#include <boost/config.hpp>
#include "am++/am++.hpp"
#include <iostream>
#include <pthread.h>
#include <boost/thread.hpp>
#include <boost/thread/barrier.hpp>
#include <boost/bind.hpp>
#define TRANSPORT_HEADER <am++/BOOST_JOIN(TRANSPORT, _transport).hpp>
#include TRANSPORT_HEADER
#include <time.h>
#... | 28.589744 | 142 | 0.686816 | thejkane |
87a489338e02421b98e439ca06c363be05326079 | 22 | cpp | C++ | test/SIM_isystem/models/third_party/Warning.cpp | iamthad/trick | 88ac5b5990228e42a653347c9d7a103acea4d137 | [
"NASA-1.3"
] | 647 | 2015-05-07T16:08:16.000Z | 2022-03-30T02:33:21.000Z | test/SIM_isystem/models/third_party/Warning.cpp | tanglemontree/trick | f182c723495185708434e67789457eb29d52ad58 | [
"NASA-1.3"
] | 995 | 2015-04-30T19:44:31.000Z | 2022-03-31T20:14:44.000Z | test/SIM_isystem/models/third_party/Warning.cpp | tanglemontree/trick | f182c723495185708434e67789457eb29d52ad58 | [
"NASA-1.3"
] | 251 | 2015-05-15T09:24:34.000Z | 2022-03-22T20:39:05.000Z | #include <Warning.hh>
| 11 | 21 | 0.727273 | iamthad |
87a65939b208840ff4e2d1558aa4447830597e51 | 1,528 | cpp | C++ | codeforces/4d.mysterious-present/4d.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | codeforces/4d.mysterious-present/4d.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | codeforces/4d.mysterious-present/4d.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#define X first
#define Y second
using namespace std;
const int MAX_N = 5e3 + 123;
typedef pair <int, int> point;
typedef pair <point, int> tp;
vector <tp> vec;
point dp[MAX_N];
vector <int> result;
bool CMP(tp a, tp b)
{
if ((long long) a.X.X * (long lon... | 22.144928 | 150 | 0.521597 | KayvanMazaheri |
87ab3ef53b136b43f93bdec284d6f777eb097868 | 1,546 | cpp | C++ | cpp/codeforces/educational/educational_108/C.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | 2 | 2021-06-02T16:11:46.000Z | 2021-12-23T20:37:02.000Z | cpp/codeforces/educational/educational_108/C.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | null | null | null | cpp/codeforces/educational/educational_108/C.cpp | nirvanarsc/CompetitiveProgramming | 218ae447bbf7455e4953e05220418b7c32ee6b0e | [
"MIT"
] | 1 | 2021-05-14T14:19:14.000Z | 2021-05-14T14:19:14.000Z | #include <bits/stdc++.h>
#define fast_io \
ios::sync_with_stdio(false); \
cin.tie(nullptr);
using ll = long long;
using namespace std;
signed main() {
fast_io;
int t;
cin >> t;
for (int test = 0; test < t; test++) {
int n;
cin >> n;
int u[n];
int s[n];
vector<vector<int>>... | 25.766667 | 70 | 0.42238 | nirvanarsc |
87ac94d23f080e504353b154c99c380a4f2dd414 | 20,108 | cpp | C++ | bin/.log/data_preprocessor.cpp | GMAP/GMaVis | 1950ea3a57e1f359f2de9f07d81023e3d26417b8 | [
"MIT"
] | null | null | null | bin/.log/data_preprocessor.cpp | GMAP/GMaVis | 1950ea3a57e1f359f2de9f07d81023e3d26417b8 | [
"MIT"
] | null | null | null | bin/.log/data_preprocessor.cpp | GMAP/GMaVis | 1950ea3a57e1f359f2de9f07d81023e3d26417b8 | [
"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 version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope tha... | 26.597884 | 237 | 0.656654 | GMAP |
87ad6e3a9f7518f9cd01c20e872cc5afc9cbf15a | 55,227 | cpp | C++ | build_1/third_party/omr/jitbuilderclient/cpp/IlBuilder.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | build_1/third_party/omr/jitbuilderclient/cpp/IlBuilder.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | build_1/third_party/omr/jitbuilderclient/cpp/IlBuilder.cpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2019, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 54.952239 | 334 | 0.721948 | xiacijie |
87b00527361099dbefaf8c7d6af3ef6c27afb5ca | 289 | cpp | C++ | src/PontoPartida.cpp | leohmcs/AVANTStation | f1f635b2f4ec9ffcb010660f4b5c91eb9d5fa190 | [
"Apache-2.0"
] | null | null | null | src/PontoPartida.cpp | leohmcs/AVANTStation | f1f635b2f4ec9ffcb010660f4b5c91eb9d5fa190 | [
"Apache-2.0"
] | null | null | null | src/PontoPartida.cpp | leohmcs/AVANTStation | f1f635b2f4ec9ffcb010660f4b5c91eb9d5fa190 | [
"Apache-2.0"
] | 1 | 2020-12-10T03:39:05.000Z | 2020-12-10T03:39:05.000Z | #include "PontoPartida.h"
PontoPartida::PontoPartida()
{
}
PontoPartida::PontoPartida(double lat, double lon)
{
setInitialPoint(Point(lat, lon, 0));
}
void PontoPartida::setApproxPoint(double lat, double lon, double h)
{
setApproxPoint(Point(lat, lon, h));
}
| 13.761905 | 68 | 0.67128 | leohmcs |
87b6528dc49a975e0d3609eeb77d6f8e237f9f64 | 2,836 | cpp | C++ | logdevice/common/test/ConfigSourceLocationParserTest.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | 1,831 | 2018-09-12T15:41:52.000Z | 2022-01-05T02:38:03.000Z | logdevice/common/test/ConfigSourceLocationParserTest.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | 183 | 2018-09-12T16:14:59.000Z | 2021-12-07T15:49:43.000Z | logdevice/common/test/ConfigSourceLocationParserTest.cpp | majra20/LogDevice | dea0df7991120d567354d7a29d832b0e10be7477 | [
"BSD-3-Clause"
] | 228 | 2018-09-12T15:41:51.000Z | 2022-01-05T08:12:09.000Z | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* 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.
*/
#include "logdevice/common/ConfigSourceLocationParser.h"
#include <gtest/gtest.h>
#in... | 27.803922 | 79 | 0.642807 | majra20 |
87bd38ac62a9ade0f356e5a2bd38846420462e42 | 3,524 | cpp | C++ | getnum/widget.cpp | upcMvc/-BankQueuingSystem | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | 2 | 2016-07-20T02:23:51.000Z | 2017-09-02T09:44:52.000Z | getnum/widget.cpp | upcMvc/bank-queue-system | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | null | null | null | getnum/widget.cpp | upcMvc/bank-queue-system | 6eaec760f61430cb3a49692453b444982299e45f | [
"MIT"
] | null | null | null | #include "widget.h"
#include "ui_widget.h"
#include "close.h"
#include <QLabel>
#include <QString>
#include <QByteArray>
#include <QtNetwork>
#include <QDebug>
#include <QCloseEvent>
#include <QEvent>
#include <QPalette>
#include <QBrush>
Widget::Widget(QWidget *parent) :
QWidget(parent),
ui(new Ui::Widget)
{... | 26.103704 | 95 | 0.612372 | upcMvc |
87bd9cb27f59fcdb80ed9a36dd8400999f82c854 | 1,421 | cpp | C++ | LeetCode/Weekly_Contest/WC_59/LC732.cpp | AuthurExcalbern/ACM | 08429e53fbc9a6919ac7a134693cefa28998b302 | [
"MIT"
] | null | null | null | LeetCode/Weekly_Contest/WC_59/LC732.cpp | AuthurExcalbern/ACM | 08429e53fbc9a6919ac7a134693cefa28998b302 | [
"MIT"
] | null | null | null | LeetCode/Weekly_Contest/WC_59/LC732.cpp | AuthurExcalbern/ACM | 08429e53fbc9a6919ac7a134693cefa28998b302 | [
"MIT"
] | null | null | null | /* Probelm 732 My Calendar III
* 每次都给定一个范围:start <= x < end
* 然后设定一个函数,返回重复预订的次数
Example 1:
MyCalendarThree();
MyCalendarThree.book(10, 20); // returns 1
MyCalendarThree.book(50, 60); // returns 1
MyCalendarThree.book(10, 40); // returns 2
MyCalendarThree.book(5, 15); // returns 3
MyCalendarThree.book(5, 10); // r... | 27.326923 | 96 | 0.636875 | AuthurExcalbern |
87c0621d5a6a4dee4187e1f88ea212826847bdf8 | 4,094 | cpp | C++ | glfw3_app/common/mdf/surface.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/common/mdf/surface.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/common/mdf/surface.cpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | //=====================================================================//
/*! @file
@brief サーフェース・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/glfw3_app/blob/master/LICENSE
*/
//====================... | 23.94152 | 82 | 0.462384 | hirakuni45 |
87c213c8b8aa15ca394141ee41b4e05600b12de6 | 294 | cc | C++ | src/effect/mask_filter.cc | RuiwenTang/Skity | 2f98d8bda9946a9055d955fae878fef43c4eee57 | [
"MIT"
] | 65 | 2021-08-05T09:52:49.000Z | 2022-03-29T14:45:20.000Z | src/effect/mask_filter.cc | RuiwenTang/Skity | 2f98d8bda9946a9055d955fae878fef43c4eee57 | [
"MIT"
] | 1 | 2022-03-24T09:35:06.000Z | 2022-03-25T06:38:20.000Z | src/effect/mask_filter.cc | RuiwenTang/Skity | 2f98d8bda9946a9055d955fae878fef43c4eee57 | [
"MIT"
] | 9 | 2021-08-08T07:30:13.000Z | 2022-03-29T14:45:25.000Z | #include <skity/effect/mask_filter.hpp>
namespace skity {
std::shared_ptr<MaskFilter> MaskFilter::MakeBlur(BlurStyle style, float sigma) {
return std::make_shared<MaskFilter>();
}
Rect MaskFilter::approximateFilteredBounds(const Rect &src) const {
return Rect();
}
} // namespace skity | 22.615385 | 80 | 0.751701 | RuiwenTang |
87c60c367286d35a99d44dc732aecb69676271e3 | 216,697 | cpp | C++ | MMOCoreORB/src/server/zone/managers/sui/SuiManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/managers/sui/SuiManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/managers/sui/SuiManager.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
Copyright <SWGEmu>
See file COPYING for copying conditions. */
#include "SuiManager.h"
#include "server/zone/ZoneProcessServer.h"
#include "server/zone/objects/creature/CreatureObject.h"
#include "server/zone/objects/player/sui/SuiWindowType.h"
#include "server/zone/objects/player/sui/banktransferbox/SuiBankT... | 53.505432 | 323 | 0.636271 | V-Fib |
87c7c386c1dab80254c8d90765c3dbb0dfa73342 | 1,654 | cpp | C++ | cplusplus/RCF/src/RCF/CurrentSerializationProtocol.cpp | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 22 | 2015-05-18T07:04:36.000Z | 2021-08-02T03:01:43.000Z | cplusplus/RCF/src/RCF/CurrentSerializationProtocol.cpp | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 1 | 2017-08-31T22:13:57.000Z | 2017-09-05T15:00:25.000Z | cplusplus/RCF/src/RCF/CurrentSerializationProtocol.cpp | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 6 | 2015-06-06T07:16:12.000Z | 2021-07-06T13:45:56.000Z |
//******************************************************************************
// RCF - Remote Call Framework
//
// Copyright (c) 2005 - 2013, Delta V Software. All rights reserved.
// http://www.deltavsoft.com
//
// RCF is distributed under dual licenses - closed source or GPL.
// Consult your particular license fo... | 25.84375 | 80 | 0.545345 | ASMlover |
87c9666cbb690c2e1adede8d9ece41a4fd3f59de | 15,614 | cpp | C++ | src/Library/DetectorSpheres/DetectorSphere.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/DetectorSpheres/DetectorSphere.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/DetectorSpheres/DetectorSphere.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// DetectorSphere.cpp - Implements a detector sphere
//
// Author: Aravind Krishnaswamy
// Date of Birth: April 11, 2002
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
//////////////////////... | 33.363248 | 385 | 0.671128 | aravindkrishnaswamy |
d7b54eb5eefebc6c56e7906c584d96697fcebb3a | 736 | cpp | C++ | input/pointer2.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/pointer2.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/pointer2.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
main()
{
string str = {};
int i = 0;
string wordfinal;
for (string word; i < 3; i++)
{
cout << "Please enter any word " << i + 1 << ": ";
//cin.ignore(); // I have to use it to clear apce of previous cout.
getline(cin, word);
... | 28.307692 | 80 | 0.516304 | xdevkartik |
d7b6b229f4cb939fec3e0ed86681ef0ec637faf9 | 7,563 | cpp | C++ | B2G/external/skia/samplecode/SamplePicture.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/external/skia/samplecode/SamplePicture.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/external/skia/samplecode/SamplePicture.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | #include "SampleCode.h"
#include "SkDumpCanvas.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "Sk64.h"
#include "SkGradientShader.h"
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#include "SkPath.h"
#include "SkPicture.h"
#include "SkRandom.h"
#include "SkRegion.h"
#include "SkShader.h"
#include "SkUtils.h... | 29.658824 | 83 | 0.615232 | wilebeast |
d7b789f0fddc21ac674103af32f37b76dc5f8c83 | 198 | hpp | C++ | src/waygate.hpp | ohowland/waygate | 926100c101b30827b52ba9262f3b7dfdbb6f50ad | [
"MIT"
] | null | null | null | src/waygate.hpp | ohowland/waygate | 926100c101b30827b52ba9262f3b7dfdbb6f50ad | [
"MIT"
] | null | null | null | src/waygate.hpp | ohowland/waygate | 926100c101b30827b52ba9262f3b7dfdbb6f50ad | [
"MIT"
] | null | null | null | #define WAYGATE_VERSION_MAJOR @WAYGATE_VERSION_MAJOR@
#define WAYGATE_VERSION_MINOR @WAYGATE_VERSION_MINOR@
#define PROJECT_CONFIG_DIR @PROJECT_CONFIG_DIR@
#include "bus.hpp"
#include "signals.hpp" | 33 | 53 | 0.848485 | ohowland |
d7b9a861bee0cc94b025451683fc0115352bf679 | 1,103 | cpp | C++ | ver1/answers/lp-14-37.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | ver1/answers/lp-14-37.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | ver1/answers/lp-14-37.cpp | aafulei/cppp5e | f8d254073866e3025c3a08b919d9bbe3965b6918 | [
"MIT"
] | null | null | null | // 18/03/14 = Wed
// Exercise 14.37: Write a class that tests whether two values are equal. Use that object and the library algorithms to write a program to replace all instances of a given value in a sequence.
#include <algorithm>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include... | 20.054545 | 192 | 0.671804 | aafulei |
d7c03bfdeaed888635cc39cd09c2bce3aef4f95e | 299 | cc | C++ | src/abc195/a.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc195/a.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc195/a.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #ifdef _debug
#define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
typedef long long ll;
using namespace std;
string solve(int m, int h) {
return h % m == 0 ? "Yes" : "No";
}
#ifndef _debug
int main() {
int m, h;
cin >> m >> h;
cout << solve(m, h) << endl;
return 0;
}
#endif | 15.736842 | 37 | 0.585284 | nryotaro |
d7c41c9f13f27f9cec743aeb265bb560a063488d | 18,285 | cpp | C++ | src/csapex_core/src/model/graph_facade_impl.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | 21 | 2016-09-02T15:33:25.000Z | 2021-06-10T06:34:39.000Z | src/csapex_core/src/model/graph_facade_impl.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | null | null | null | src/csapex_core/src/model/graph_facade_impl.cpp | ICRA-2018/csapex | 8ee83b9166d0281a4923184cce67b4a55f273ea2 | [
"BSD-3-Clause"
] | 10 | 2016-10-12T00:55:17.000Z | 2020-04-24T19:59:02.000Z | /// HEADER
#include <csapex/model/graph_facade_impl.h>
/// PROJECT
#include <csapex/model/node_facade_impl.h>
#include <csapex/model/graph_facade_impl.h>
#include <csapex/model/graph/graph_impl.h>
#include <csapex/model/graph/vertex.h>
#include <csapex/model/subgraph_node.h>
#include <csapex/model/node_state.h>
#inclu... | 31.525862 | 199 | 0.728138 | ICRA-2018 |
d7c5469fb3b0a151a1a37df3fd5ecfbd460ac47f | 9,264 | cpp | C++ | Arduino/libraries/PMIC_SGM41512/src/SGM41512.cpp | rdpoor/tinyml_low_power | 65fe34cc1f156e5bc9687cc8cc690ea71baa56de | [
"MIT"
] | null | null | null | Arduino/libraries/PMIC_SGM41512/src/SGM41512.cpp | rdpoor/tinyml_low_power | 65fe34cc1f156e5bc9687cc8cc690ea71baa56de | [
"MIT"
] | null | null | null | Arduino/libraries/PMIC_SGM41512/src/SGM41512.cpp | rdpoor/tinyml_low_power | 65fe34cc1f156e5bc9687cc8cc690ea71baa56de | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2021 Syntiant Corp. All rights reserved.
* Contact at http://www.syntiant.com
*
* This software is available to you under a choice of one of two licenses.
* You may choose to be licensed under the terms of the GNU General Public
* License (GPL) Version 2, available from the file LICENSE in the... | 30.574257 | 85 | 0.554512 | rdpoor |
d7cac9e4a9cc3fd29c53b9ab50d1c8a9ef0aa9c5 | 658 | hpp | C++ | source/Senses/View/ResizeUITab.hpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 8 | 2015-01-23T05:41:46.000Z | 2019-11-20T05:10:27.000Z | source/Senses/View/ResizeUITab.hpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | null | null | null | source/Senses/View/ResizeUITab.hpp | fstudio/Phoenix | 28a7c6a3932fd7d6fea12770d0aa1e20bc70db7d | [
"MIT"
] | 4 | 2015-05-05T05:15:43.000Z | 2020-03-07T11:10:56.000Z | /*********************************************************************************************************
* UIWindow.cpp
* Note: ResizeUITab.cpp
* Date: @2015.04
* E-mail:<forcemz@outlook.com>
* Copyright (C) 2015 The ForceStudio All Rights Reserved.
********************************************************************... | 25.307692 | 107 | 0.465046 | fstudio |
d7d09a740cfbd23b9debf34ea601735536edaf16 | 805 | cpp | C++ | potato/spud/tests/test_delegate_ref.cpp | seanmiddleditch/grimm | 9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5 | [
"MIT"
] | 38 | 2019-05-25T17:32:26.000Z | 2022-02-27T22:25:05.000Z | potato/spud/tests/test_delegate_ref.cpp | seanmiddleditch/grimm | 9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5 | [
"MIT"
] | 35 | 2019-05-26T17:52:39.000Z | 2022-02-12T19:54:14.000Z | potato/spud/tests/test_delegate_ref.cpp | seanmiddleditch/grimm | 9f47fc5d7aa0af19a3a7c82a38b7f7c59b83fbf5 | [
"MIT"
] | 2 | 2019-06-09T16:06:27.000Z | 2019-08-16T14:17:20.000Z | #include "potato/spud/delegate_ref.h"
#include <catch2/catch.hpp>
TEST_CASE("potato.spud.delegate_ref", "[potato][spud]") {
using namespace up;
SECTION("lambda delegate_ref") {
int (*f)(int) = [](int i) {
return i * 2;
};
delegate_ref d = f;
CHECK(d(0) == 0);
... | 20.125 | 57 | 0.448447 | seanmiddleditch |
d7d1e3215854e380e81622caaeee52b61611a464 | 3,807 | cpp | C++ | project/OFEC_sc2/instance/problem/continuous/multi_modal/metrics_mmop.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/problem/continuous/multi_modal/metrics_mmop.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | project/OFEC_sc2/instance/problem/continuous/multi_modal/metrics_mmop.cpp | BaiChunhui-9803/bch_sc2_OFEC | d50211b27df5a51a953a2475b6c292d00cbfeff6 | [
"MIT"
] | null | null | null | #include "../../../../core/algorithm/solution.h"
#include "../../../../core/problem/continuous/continuous.h"
#include "metrics_mmop.h"
#include <algorithm>
namespace OFEC {
void MetricsMMOP::updateCandidates(const SolBase &sol, std::list<std::unique_ptr<SolBase>> &candidates) const {
updateOnlyByObj(sol, candidates... | 34.926606 | 139 | 0.679275 | BaiChunhui-9803 |
d7d64647ebace47c95299ab67c845921d10ded46 | 681 | cpp | C++ | Cpp_primer_5th/code_part7/prog7_1.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_1.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | Cpp_primer_5th/code_part7/prog7_1.cpp | Links789/Cpp_primer_5th | 18a60b75c358a79fdf006f8cb978c9be6e6aedd5 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct Sales_data{
string bookNo;
double revenue = 0.0;
int usold= 0;
};
int main(){
Sales_data total;
if(cin >> total.bookNo >> total.usold >> total.revenue){
Sales_data trans;
while(cin >> trans.bookNo >> trans.usold >> trans.revenue){
if(total.bookNo == trans.... | 20.636364 | 79 | 0.582966 | Links789 |
d7d8aa0ddd64e09f166a357010d294268b355fad | 3,872 | cpp | C++ | src/Profiling.cpp | jrayzero/TylerDistHalide | bbe117161a7c5539a9b89b7f38aac91b99ae4be6 | [
"MIT"
] | 2 | 2020-09-24T17:03:37.000Z | 2022-02-03T10:48:14.000Z | src/Profiling.cpp | jrayzero/TylerDistHalide | bbe117161a7c5539a9b89b7f38aac91b99ae4be6 | [
"MIT"
] | 8 | 2015-07-21T10:06:12.000Z | 2015-08-03T19:09:52.000Z | src/Profiling.cpp | jrayzero/TylerDistHalide | bbe117161a7c5539a9b89b7f38aac91b99ae4be6 | [
"MIT"
] | 1 | 2020-10-01T17:27:17.000Z | 2020-10-01T17:27:17.000Z | #include <algorithm>
#include <map>
#include <string>
#include <limits>
#include "Profiling.h"
#include "IRMutator.h"
#include "IROperator.h"
namespace Halide {
namespace Internal {
using std::map;
using std::string;
using std::vector;
class InjectProfiling : public IRMutator {
public:
map<string, int> indices;... | 33.37931 | 104 | 0.621126 | jrayzero |
d7d8e6203585b78e5a2e850c83112151697b7868 | 495 | cpp | C++ | WaveformGenerator/waveformgenerator.cpp | VioletGiraffe/AudioGenerator | bea5118a55ffd3f246f87aea7e22880741d4e669 | [
"Apache-2.0"
] | null | null | null | WaveformGenerator/waveformgenerator.cpp | VioletGiraffe/AudioGenerator | bea5118a55ffd3f246f87aea7e22880741d4e669 | [
"Apache-2.0"
] | null | null | null | WaveformGenerator/waveformgenerator.cpp | VioletGiraffe/AudioGenerator | bea5118a55ffd3f246f87aea7e22880741d4e669 | [
"Apache-2.0"
] | null | null | null | #include "waveformgenerator.h"
WaveformGenerator::~WaveformGenerator()
{
}
float WaveformGenerator::extraParameter() const
{
return _extraParameter;
}
bool WaveformGenerator::hasExtraParameter() const
{
return false;
}
const WaveformGenerator::ExtraParameterProperties WaveformGenerator::extraParam... | 19.038462 | 96 | 0.747475 | VioletGiraffe |
d7df21b6414e312c796e0fedab119443608b9032 | 3,084 | cpp | C++ | Nesis/Instruments/src/XMLGaugeRoundAltitude.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | 3 | 2015-11-08T07:17:46.000Z | 2019-04-05T17:08:05.000Z | Nesis/Instruments/src/XMLGaugeRoundAltitude.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | Nesis/Instruments/src/XMLGaugeRoundAltitude.cpp | jpoirier/x-gauges | 8261b19a9678ad27db44eb8c354f5e66bd061693 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* Ales... | 31.793814 | 77 | 0.467899 | jpoirier |
d7e4286d7ff4c1c5b13e9232815f4f983858b873 | 23,423 | cpp | C++ | LithiumGD/Cheats/Creator.cpp | ALEHACKsp/LithiumGD | 7f1e2c7da98e879830fbf9657c2618625c6daa5b | [
"MIT"
] | null | null | null | LithiumGD/Cheats/Creator.cpp | ALEHACKsp/LithiumGD | 7f1e2c7da98e879830fbf9657c2618625c6daa5b | [
"MIT"
] | null | null | null | LithiumGD/Cheats/Creator.cpp | ALEHACKsp/LithiumGD | 7f1e2c7da98e879830fbf9657c2618625c6daa5b | [
"MIT"
] | 1 | 2021-09-19T17:35:28.000Z | 2021-09-19T17:35:28.000Z | #include <Windows.h>
#include "Cheats.h"
#include "../Game/Game.h"
#include "../Game/Offsets.h"
void cCheats::CopyHack() {
static const char Patch1[] = { 0x90, 0x90 };
static const char Patch2[] = { 0x8B, 0xCA, 0x90 };
static const char Patch3[] = { 0xB0, 0x01, 0x90 };
static const char OriginalAddre... | 68.090116 | 180 | 0.745165 | ALEHACKsp |
d7e6e7c3da957da091e1315a75b44d07aab9edb2 | 190 | cpp | C++ | myblog/Cplusplus/004_pointer/demo3.cpp | WangBaobaoLOVE/WangBaobaoLOVE.github.io | e8e53475874193a929bbda247dd6a77da8950856 | [
"CC-BY-3.0"
] | null | null | null | myblog/Cplusplus/004_pointer/demo3.cpp | WangBaobaoLOVE/WangBaobaoLOVE.github.io | e8e53475874193a929bbda247dd6a77da8950856 | [
"CC-BY-3.0"
] | null | null | null | myblog/Cplusplus/004_pointer/demo3.cpp | WangBaobaoLOVE/WangBaobaoLOVE.github.io | e8e53475874193a929bbda247dd6a77da8950856 | [
"CC-BY-3.0"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
int *ptr = NULL;
cout << "ptr 的值是 " << ptr ;
if(ptr)
cout << false;
if(!ptr)
cout << true;
return 0;
} | 11.176471 | 30 | 0.505263 | WangBaobaoLOVE |
d7e97b217df8db666c383e0f903c2082b90a17bc | 1,063 | cpp | C++ | src/test/currenttime/main.cpp | xsjqqq123/treefrog-framework | da7cc2c4b277e4858ee7a6e5e7be7ce707642e00 | [
"BSD-3-Clause"
] | 1 | 2019-01-08T12:37:11.000Z | 2019-01-08T12:37:11.000Z | src/test/currenttime/main.cpp | dragondjf/treefrog-framework | b85df01fffab5a9bab94679376ec057ebc2293f5 | [
"BSD-3-Clause"
] | null | null | null | src/test/currenttime/main.cpp | dragondjf/treefrog-framework | b85df01fffab5a9bab94679376ec057ebc2293f5 | [
"BSD-3-Clause"
] | 2 | 2018-09-14T12:35:36.000Z | 2020-05-09T16:52:20.000Z | #include <QTest>
#include <QtCore>
#include <tglobal.h>
class TestDateTime : public QObject
{
Q_OBJECT
private slots:
void compare();
void benchQtCurrentDateTime();
void benchTfCurrentDateTime();
};
void TestDateTime::compare()
{
for (int i = 0; i < 3; ++i) {
QDateTime qt = QDateTime::cu... | 21.26 | 57 | 0.608655 | xsjqqq123 |
d7ebe3bb2f48c3bcca53fa9a86d38d65abbf85c6 | 2,011 | hpp | C++ | modules/memory/include/shard/memory/allocators/heap_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/memory/include/shard/memory/allocators/heap_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | modules/memory/include/shard/memory/allocators/heap_allocator.hpp | ikimol/shard | 72a72dbebfd247d2b7b300136c489672960b37d8 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Miklos Molnar. All rights reserved.
#ifndef SHARD_MEMORY_HEAP_ALLOCATOR_HPP
#define SHARD_MEMORY_HEAP_ALLOCATOR_HPP
#include "shard/memory/allocator.hpp"
#include "shard/memory/utils.hpp"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <limits>
namespace shard {
namespace memo... | 24.228916 | 82 | 0.660368 | ikimol |
d7ef285c805d115f3739bf9c295f6c1f37a00f1e | 954 | cpp | C++ | src/binary/socket-server/test/MainTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | null | null | null | src/binary/socket-server/test/MainTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | 1 | 2021-12-19T13:36:19.000Z | 2021-12-19T14:07:14.000Z | src/binary/socket-server/test/MainTest.cpp | heaven-chp/base-server-cpp | 87213259c61c93a791d087f4b284f79f0f05574c | [
"Apache-2.0"
] | null | null | null | #include "test.h"
#include "../Main.h"
#include "gtest/gtest.h"
#include "Singleton.h"
#include "EnvironmentVariable.h"
static void test(int iArgc, char *pcArgv[])
{
const int iPid = fork();
ASSERT_NE(iPid, -1);
extern int optind;
optind = 1;
if(iPid == 0) {
EXPECT_TRUE(Main().Run(iArgc, pcArgv));
exit(... | 18.346154 | 101 | 0.644654 | heaven-chp |
d7f002903117701f16c8e4bd4c26b09523c853a8 | 1,882 | cpp | C++ | src/views/oscilloscope/LCurve.cpp | lotusczp/Lobster | ceb5ec720fdbbd5eddba5eeccc2f875a62d4332e | [
"Apache-2.0",
"MIT"
] | 6 | 2021-01-30T00:06:22.000Z | 2022-02-16T08:20:09.000Z | src/views/oscilloscope/LCurve.cpp | lotusczp/Lobster | ceb5ec720fdbbd5eddba5eeccc2f875a62d4332e | [
"Apache-2.0",
"MIT"
] | null | null | null | src/views/oscilloscope/LCurve.cpp | lotusczp/Lobster | ceb5ec720fdbbd5eddba5eeccc2f875a62d4332e | [
"Apache-2.0",
"MIT"
] | 1 | 2021-08-11T05:19:11.000Z | 2021-08-11T05:19:11.000Z | #include "LCurve.h"
LCurve::LCurve(QCPAxis *keyAxis, QCPAxis *valueAxis)
{
m_pLine = new QCPGraph(keyAxis, valueAxis);
connect(m_pLine, SIGNAL(selectionChanged(bool)), this, SLOT(receiveCurveSelected(bool)));
}
LCurve::~LCurve()
{
//! \note No need to delete m_pLine, its ownership belongs to QCustomPlot... | 23.234568 | 93 | 0.648778 | lotusczp |
d7f1175d285cbcdd2f16afacb3d11608ff254ee0 | 784 | cpp | C++ | Codeforces/711A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/711A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | Codeforces/711A.cpp | Alipashaimani/Competitive-programming | 5d55567b71ea61e69a6450cda7323c41956d3cb9 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
string s[1010][2];
int n;
bool flag = false;
int main(){
cin >> n;
for ( int i = 0 ; i < n ; i++){
string x ;
cin >> x;
string s1 ="";
s1 += x[0]; s1 += x[1];
s[i][0] = s1;
s1 = "";
s1 += x[3];s1+=x[4];
... | 21.189189 | 50 | 0.317602 | Alipashaimani |
d7f1dee1657f8b89b7415600ec6bdde58e6b9d3e | 1,285 | cpp | C++ | backup/2/codewars/c++/spanish-conjugator.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/codewars/c++/spanish-conjugator.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/codewars/c++/spanish-conjugator.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 42.833333 | 345 | 0.607004 | yangyanzhan |
d7f2c24c55d79b5d81a31bfcf47e661548680f1b | 986 | hpp | C++ | osx-main/src/key_window.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | osx-main/src/key_window.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | osx-main/src/key_window.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #pragma once
#include "m4c0/objc/geometry.hpp"
#include "m4c0/objc/ns_window.hpp"
#include "metal_view.hpp"
namespace m4c0::osx::details {
class window : public objc::ns_window {
view m_view {};
public:
explicit window(const char * title) : ns_window() {
using namespace m4c0::objc;
constexpr... | 27.388889 | 110 | 0.685598 | m4c0 |
d7f2ede87d36e0c112ec2812f082072eb07dde89 | 12,511 | cpp | C++ | test/catch/scheduler-test.cpp | malachi-iot/embr-netbuf | 501c0ceb251f880d85e112d6eb4e20738791085a | [
"MIT"
] | 1 | 2019-11-17T11:13:05.000Z | 2019-11-17T11:13:05.000Z | test/catch/scheduler-test.cpp | malachi-iot/embr | 9790f4745dd9ac4a3e927a5167cc49f8947acd92 | [
"MIT"
] | null | null | null | test/catch/scheduler-test.cpp | malachi-iot/embr | 9790f4745dd9ac4a3e927a5167cc49f8947acd92 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <bitset>
#include <embr/scheduler.h>
// Not available because we test against C++11
//using namespace std::literals::chrono_literals;
struct Item
{
int event_due;
int* counter;
};
struct ItemTraits
{
typedef Item value_type;
typedef int time_point;
static time_poi... | 28.369615 | 118 | 0.572456 | malachi-iot |
d7f6efbcc3d448023580562a5e6dcf136e6894b4 | 9,265 | cpp | C++ | src/Structure/BranchingPoint.cpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null | src/Structure/BranchingPoint.cpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null | src/Structure/BranchingPoint.cpp | allen-cell-animated/medyan | 0b5ef64fb338c3961673361e5632980617937ee6 | [
"BSD-4-Clause-UC"
] | null | null | null |
//------------------------------------------------------------------
// **MEDYAN** - Simulation Package for the Mechanochemical
// Dynamics of Active Networks, v4.0
//
// Copyright (2015-2018) Papoian Lab, University of Maryland
//
// ALL RIGHTS RESERVED
//
// See the MEDYAN web page ... | 34.314815 | 104 | 0.615542 | allen-cell-animated |
d7f75dc0369d6bbc3a178f4a337f49cc3b02b2c0 | 621 | cpp | C++ | Harte_Kugeln/src/bsp_collision_update.cpp | oerpli/ComputationalPhysics | 5081c46c01d078fe7b86601919a3447294304d8d | [
"Apache-2.0"
] | null | null | null | Harte_Kugeln/src/bsp_collision_update.cpp | oerpli/ComputationalPhysics | 5081c46c01d078fe7b86601919a3447294304d8d | [
"Apache-2.0"
] | null | null | null | Harte_Kugeln/src/bsp_collision_update.cpp | oerpli/ComputationalPhysics | 5081c46c01d078fe7b86601919a3447294304d8d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <typeinfo>
#include "MatVec.h"
#include "Box.h"
using namespace std;
int main () {
const unsigned dim{3};
MatVec<lengthT,dim> pos{8, 0, 0};
MatVec<velocityT,dim> vel {1, 0, 0};
Box<3> box{MatVec<lengthT,dim>{10}, 2, Kugel<dim>{4, 1}};
timeT coll... | 18.818182 | 58 | 0.626409 | oerpli |
d7f7da4d6bf36bdecda0dd769511a7464f8e58db | 968 | cpp | C++ | marsyas-vamp/marsyas/src/tests/unit_tests/ChromaFilter_runner.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/tests/unit_tests/ChromaFilter_runner.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/tests/unit_tests/ChromaFilter_runner.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | /* Generated file, do not edit */
#ifndef CXXTEST_RUNNING
#define CXXTEST_RUNNING
#endif
#define _CXXTEST_HAVE_STD
#include <cxxtest/TestListener.h>
#include <cxxtest/TestTracker.h>
#include <cxxtest/TestRunner.h>
#include <cxxtest/RealDescriptions.h>
#include <cxxtest/ErrorPrinter.h>
int main() {
return CxxTest::E... | 31.225806 | 143 | 0.80062 | jaouahbi |
d7f9365a88328554992d812629a1e659be898815 | 559 | hpp | C++ | include/ttl/nn/bits/ops/impl/col2im1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 3 | 2018-10-23T18:46:39.000Z | 2019-06-24T00:46:10.000Z | include/ttl/nn/bits/ops/impl/col2im1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 27 | 2018-11-10T14:19:16.000Z | 2020-03-08T23:33:01.000Z | include/ttl/nn/bits/ops/impl/col2im1d.hpp | stdml/stdnn-ops | 0e6132bd65319e318f918094e482482698482e9e | [
"MIT"
] | 1 | 2018-11-05T06:17:12.000Z | 2018-11-05T06:17:12.000Z | #pragma once
#include <ttl/algorithm>
#include <ttl/nn/bits/ops/col2im1d.hpp>
namespace ttl::nn::ops
{
template <typename R>
void col2im1d::operator()(const ttl::tensor_ref<R, 1> &y,
const ttl::tensor_view<R, 2> &x) const
{
const auto [n] = y.shape().dims();
ttl::fill(y, static_cast<R... | 26.619048 | 64 | 0.525939 | stdml |
d7fa3e643ddf645883fe5592ebbb6f292da88668 | 2,882 | cpp | C++ | src/general/BitmapListItem.cpp | louisdem/LibWalter | a6c88387697e5e7e9012cd5396591487afea8130 | [
"MIT"
] | 2 | 2021-01-12T21:19:19.000Z | 2022-03-27T10:10:30.000Z | src/general/BitmapListItem.cpp | louisdem/LibWalter | a6c88387697e5e7e9012cd5396591487afea8130 | [
"MIT"
] | 6 | 2018-11-04T14:52:16.000Z | 2020-01-01T18:40:40.000Z | src/general/BitmapListItem.cpp | louisdem/LibWalter | a6c88387697e5e7e9012cd5396591487afea8130 | [
"MIT"
] | 4 | 2016-10-08T11:01:56.000Z | 2020-10-26T06:11:15.000Z | /*
BitmapListItem.cpp: A BListView item with an optional picture
Written by DarkWyrm <darkwyrm@earthlink.net>, Copyright 2007
Released under the MIT license.
Certain code portions courtesy of the Haiku project
*/
#include "BitmapListItem.h"
#include <View.h>
#include <String.h>
#include <Font.h>
#include <Message... | 21.669173 | 79 | 0.707148 | louisdem |
d7fedf29e51f5ba677481dfd2f24543cea21b721 | 1,614 | cpp | C++ | C++/introduction/variable_sized_arrays.cpp | beebus/hacker_rank_practice | a532655dab0b933f0a27721bca8919a0922f7394 | [
"MIT"
] | null | null | null | C++/introduction/variable_sized_arrays.cpp | beebus/hacker_rank_practice | a532655dab0b933f0a27721bca8919a0922f7394 | [
"MIT"
] | null | null | null | C++/introduction/variable_sized_arrays.cpp | beebus/hacker_rank_practice | a532655dab0b933f0a27721bca8919a0922f7394 | [
"MIT"
] | null | null | null | /*
https://www.hackerrank.com/challenges/variable-sized-arrays/
Input Format
------------
The first line contains two space-separated integers denoting the respective values of n (the number of variable-length arrays) and q (the number of queries).
Each line i of the n subsequent lines contains a space-separated sequ... | 31.038462 | 197 | 0.625155 | beebus |
d7ff438f53ef27cab355e5da3acf6517a8f99b6a | 1,141 | cpp | C++ | crack-data-structures-and-algorithms/leetcode/search_in_rotated_sorted_array_II_q81.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 20 | 2016-05-16T11:09:04.000Z | 2021-12-08T09:30:33.000Z | crack-data-structures-and-algorithms/leetcode/search_in_rotated_sorted_array_II_q81.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 1 | 2018-12-30T09:55:31.000Z | 2018-12-30T14:08:30.000Z | crack-data-structures-and-algorithms/leetcode/search_in_rotated_sorted_array_II_q81.cpp | Watch-Later/Eureka | 3065e76d5bf8b37d5de4f9ee75b2714a42dd4c35 | [
"MIT"
] | 11 | 2016-05-02T09:17:12.000Z | 2021-12-08T09:30:35.000Z | #include <vector>
using namespace std;
// 核心思路
// 这题数组可能包含重复元素,因此虽然大体框架一致,处理细节上有区别
// 1) 之前用 nums[l] 和 nuns[m] 的大小来判断旋转图像,确定单调连续的一端出现在哪个位置
// 这里因为元素重复可能会导致 nums[l] == nums[m],无法决断
// 这种情况放弃一次减半的目的,改为 ++l 只缩减一个元素,并且这样缩减不改变数组的性质
class Solution {
public:
bool search(vector<int>& nums, int target) {
int... | 27.166667 | 77 | 0.404908 | Watch-Later |
cc0096c9c2da939173d886e91a4447129ce0a14f | 11,599 | cpp | C++ | libtr101290/src/Demux.cpp | codetalks-new/libeasyice | 56781ff4a1c5a070526c87790fc34594c25a5846 | [
"MIT"
] | null | null | null | libtr101290/src/Demux.cpp | codetalks-new/libeasyice | 56781ff4a1c5a070526c87790fc34594c25a5846 | [
"MIT"
] | null | null | null | libtr101290/src/Demux.cpp | codetalks-new/libeasyice | 56781ff4a1c5a070526c87790fc34594c25a5846 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2009-2019 easyice
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ... | 21.802632 | 460 | 0.654625 | codetalks-new |
cc03e057746f6f15aa203928d8b54e0dab9b3046 | 1,841 | cpp | C++ | Section15/CopyConstructorAssignmentOperator/main.cpp | Himanshu40/Learn-Cpp | f0854f7c88bf31857c0c6216af80245666ca9b54 | [
"CC-BY-4.0"
] | 2 | 2021-07-18T18:12:10.000Z | 2021-07-19T15:40:25.000Z | Section15/CopyConstructorAssignmentOperator/main.cpp | Himanshu40/Learn-Cpp | f0854f7c88bf31857c0c6216af80245666ca9b54 | [
"CC-BY-4.0"
] | null | null | null | Section15/CopyConstructorAssignmentOperator/main.cpp | Himanshu40/Learn-Cpp | f0854f7c88bf31857c0c6216af80245666ca9b54 | [
"CC-BY-4.0"
] | null | null | null | #include <iostream>
using namespace std;
class Base {
private:
int value;
public:
Base() : Base {0} {
cout << "Base No-args constructor" << endl;
}
Base(int x) : value {x} {
cout << "Base int constructor" << endl;
}
Base(const Base &oth... | 23.0125 | 86 | 0.477458 | Himanshu40 |
cc0450c7063ad045812f9d9183e3788b462ab683 | 9,673 | cpp | C++ | Source/Core/LibJob/Job.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | 3 | 2020-12-28T06:18:47.000Z | 2021-08-01T06:18:12.000Z | Source/Core/LibJob/Job.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | null | null | null | Source/Core/LibJob/Job.cpp | dzik143/tegenaria | a6c138633ab14232a2229d7498875d9d869d25a9 | [
"MIT"
] | null | null | null | /******************************************************************************/
/* */
/* Copyright (c) 2010, 2014 Sylwester Wysocki <sw143@wp.pl> */
/* ... | 23.708333 | 96 | 0.572005 | dzik143 |
cc05eb814f2b793eec7079778810c61bacb14f7b | 6,502 | cpp | C++ | DeviceCode/Drivers/BatteryModel/IML200425_2/IML200425_2_config.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | DeviceCode/Drivers/BatteryModel/IML200425_2/IML200425_2_config.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | DeviceCode/Drivers/BatteryModel/IML200425_2/IML200425_2_config.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 37.802326 | 201 | 0.375884 | PervasiveDigital |
cc088855eecd363b32f02609132bab024347bf22 | 1,029 | cpp | C++ | src/main.cpp | arccos0/Strip-Packing-Algorithm | d7093db2ef1dee6a06c5299b3512bca47a83e1ec | [
"MIT"
] | 7 | 2021-09-25T07:35:11.000Z | 2021-12-24T12:50:55.000Z | src/main.cpp | arccos0/Strip-Packing-Algorithm | d7093db2ef1dee6a06c5299b3512bca47a83e1ec | [
"MIT"
] | 1 | 2021-11-04T11:45:50.000Z | 2021-12-21T06:42:56.000Z | src/main.cpp | arccos0/Strip-Packing-Algorithm | d7093db2ef1dee6a06c5299b3512bca47a83e1ec | [
"MIT"
] | 9 | 2021-09-25T04:56:43.000Z | 2021-11-26T03:09:18.000Z | #include <experimental/filesystem>
#include <iostream>
#include <map>
#include <string>
#include "BLEU.h"
#include "datareader.h"
#include "heuristic.h"
#include "spp.h"
int main() {
const std::string instancesFolder = "./2sp/";
for (int i = 0; i < 1; ++i) {
for (const auto& entry :
std::experimental:... | 33.193548 | 80 | 0.594752 | arccos0 |
cc098edc2353ea7587be178498d1d10575db91af | 85,164 | cpp | C++ | InterfaceManager.cpp | cjcoimbra/ChessterOSX | 89c6cbdfb295b3d929faa0bf036440b96a0007c6 | [
"AML"
] | null | null | null | InterfaceManager.cpp | cjcoimbra/ChessterOSX | 89c6cbdfb295b3d929faa0bf036440b96a0007c6 | [
"AML"
] | null | null | null | InterfaceManager.cpp | cjcoimbra/ChessterOSX | 89c6cbdfb295b3d929faa0bf036440b96a0007c6 | [
"AML"
] | null | null | null | #include "StdAfx.h"
#include "InterfaceManager.h"
InterfaceManager::InterfaceManager(sf::RenderWindow * rw, ResourceManager * rm, float factor, float max_tile_size)
{
//ctor
wptr = rw;
resource_manager = rm;
isIncreasingScore = false;
isDecreasingScore = false;
currentScore = 0;
//title_sc... | 49.861827 | 181 | 0.699439 | cjcoimbra |
cc13b6f40f01be7581c398fa6c6a3e5ee89f7824 | 20,483 | cpp | C++ | pin/contech_fe.cpp | Ridhii/SyncdSim | 4cd120e9f7d4db348d405db4608ef9c6f9499d01 | [
"BSD-3-Clause"
] | 50 | 2015-10-21T23:16:35.000Z | 2021-09-27T12:52:04.000Z | pin/contech_fe.cpp | Ridhii/SyncdSim | 4cd120e9f7d4db348d405db4608ef9c6f9499d01 | [
"BSD-3-Clause"
] | 187 | 2015-01-08T22:24:54.000Z | 2020-04-17T17:23:50.000Z | pin/contech_fe.cpp | Ridhii/SyncdSim | 4cd120e9f7d4db348d405db4608ef9c6f9499d01 | [
"BSD-3-Clause"
] | 25 | 2015-11-02T17:54:49.000Z | 2020-06-16T07:28:11.000Z | /*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2013 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyright noti... | 32.307571 | 112 | 0.542694 | Ridhii |
cc152ed8c9aee502fdebf84cfb612afa33c1e52a | 945 | hh | C++ | gazebo/physics/roki/RokiFixedJoint.hh | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiFixedJoint.hh | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | gazebo/physics/roki/RokiFixedJoint.hh | nyxrobotics/gazebo | 4a9b733a8af9a13cd7f3b23d5414d322a3666a55 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | #ifndef _ROKIFIXEDJOINT_HH_
#define _ROKIFIXEDJOINT_HH_
#include "ignition/math/Angle.hh"
#include "ignition/math/Vector3.hh"
#include "gazebo/util/system.hh"
#include "gazebo/physics/FixedJoint.hh"
#include "gazebo/physics/roki/RokiJoint.hh"
namespace gazebo
{
namespace physics
{
class GZ_PHYSICS_VISIBLE R... | 30.483871 | 80 | 0.740741 | nyxrobotics |
cc166ece701763a5e7c27fc9148c3d08a7771ced | 618 | cpp | C++ | src/util/timestamp.cpp | CGCL-codes/FJoin | cd3ace4bfbb66686535963415bfaa3792f7de822 | [
"MIT"
] | 3 | 2021-10-31T12:38:22.000Z | 2021-12-20T08:56:25.000Z | src/util/timestamp.cpp | chenhanhua/FJoin | cd3ace4bfbb66686535963415bfaa3792f7de822 | [
"MIT"
] | null | null | null | src/util/timestamp.cpp | chenhanhua/FJoin | cd3ace4bfbb66686535963415bfaa3792f7de822 | [
"MIT"
] | 1 | 2021-11-25T10:02:15.000Z | 2021-11-25T10:02:15.000Z | #ifndef __TIMER__
#define __TIMER__
#include"../head.hpp"
std::string get_date_ts()
{
struct tm *timeinfo;
time_t rawtime;
char *time_buf;
time(&rawtime);
timeinfo = localtime(&rawtime);
time_buf = asctime(timeinfo);
std::string ret(time_buf);
if (!ret.empty() &... | 19.935484 | 79 | 0.563107 | CGCL-codes |
cc1d8404cce1393b8064f3f064102a54d8cdc892 | 844 | hpp | C++ | ltl2fsm/base/exception/Invalid_Vertex_Name.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | 2 | 2016-11-23T14:31:55.000Z | 2018-05-10T01:11:54.000Z | ltl2fsm/base/exception/Invalid_Vertex_Name.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | ltl2fsm/base/exception/Invalid_Vertex_Name.hpp | arafato/ltl2fsm | 58d96c40fe0890c2bcc90593469668e6369c0f1b | [
"MIT"
] | null | null | null | /**
* @file ltl2fsm/base/exception/Invalid_Vertex_Name.hpp
*
* $Id$
*
* @author Oliver Arafat
*
* @brief @ref
*
* @note DOCUMENTED
*
* @test
*
* @todo
*/
#ifndef LTL2FSM__BASE__EXCEPTION__INVALID_VERTEX_NAME__HPP
#define LTL2FSM__BASE__EXCEPTION__INVALID_VERTEX_NAME__HPP
#include<ltl2fsm/base/exceptio... | 16.88 | 84 | 0.627962 | arafato |
cc1fbd9849223de739927cfa2f2d8b36cebd54ff | 5,367 | cpp | C++ | src/dispatcher.cpp | ornl-epics/epicsipmi | 788bf6a815e2c0c3a17df219a5becf7f9a376d65 | [
"BSD-3-Clause"
] | 1 | 2019-11-15T08:21:52.000Z | 2019-11-15T08:21:52.000Z | src/dispatcher.cpp | ornl-epics/epicsipmi | 788bf6a815e2c0c3a17df219a5becf7f9a376d65 | [
"BSD-3-Clause"
] | 1 | 2020-11-09T17:48:19.000Z | 2020-11-11T17:41:09.000Z | src/dispatcher.cpp | klemenv/epicsipmi | 05daec62f5bb003361836708a348e13cea0b9474 | [
"BSD-3-Clause"
] | null | null | null | /* dispatcher.cpp
*
* Copyright (c) 2018 Oak Ridge National Laboratory.
* All rights reserved.
* See file LICENSE that is included with this distribution.
*
* @author Klemen Vodopivec
* @date Oct 2018
*/
#include "common.h"
#include "freeipmiprovider.h"
#include "print.h"
#include "dispatcher.h"
#include <cst... | 29.327869 | 111 | 0.584312 | ornl-epics |
cc21bd341dfcc4eef1dedead8ca7829864d99e46 | 665 | cpp | C++ | xiosim/ZCOMPS-bpred/bpred-perfect.cpp | s-kanev/XIOSim | 9673bbd15ba72c9cce15243a462bffb5d9ded9ae | [
"BSD-3-Clause"
] | 55 | 2015-05-29T19:59:33.000Z | 2022-02-08T03:08:15.000Z | xiosim/ZCOMPS-bpred/bpred-perfect.cpp | s-kanev/XIOSim | 9673bbd15ba72c9cce15243a462bffb5d9ded9ae | [
"BSD-3-Clause"
] | 1 | 2015-04-03T04:40:26.000Z | 2015-04-03T04:40:26.000Z | xiosim/ZCOMPS-bpred/bpred-perfect.cpp | s-kanev/XIOSim | 9673bbd15ba72c9cce15243a462bffb5d9ded9ae | [
"BSD-3-Clause"
] | 7 | 2015-04-03T00:28:32.000Z | 2018-09-01T20:53:58.000Z | /* bpred-perfect.cpp: Oracle/perfect predictor
NOTE: for branch direction only (not target) */
/*
* __COPYRIGHT__ GT
*/
#define COMPONENT_NAME "perfect"
#ifdef BPRED_PARSE_ARGS
if(!strcasecmp(COMPONENT_NAME,type))
{
return std::make_unique<bpred_perfect_t>(core);
}
#else
class bpred_perfect_t:public bpred_di... | 15.833333 | 58 | 0.678195 | s-kanev |
cc28c047389fce15b68825d7a3ffbdcc87521611 | 2,903 | cpp | C++ | simulation&control/pid_tuning_and_fuzzy_adaptive/6/GYJPID_ws/src/pid_identification/src/slros_busmsg_conversion.cpp | L-Net-1992/guyueclass | a6dd06529dfbe500a52ae89aa5156eca7d305c28 | [
"Apache-2.0"
] | null | null | null | simulation&control/pid_tuning_and_fuzzy_adaptive/6/GYJPID_ws/src/pid_identification/src/slros_busmsg_conversion.cpp | L-Net-1992/guyueclass | a6dd06529dfbe500a52ae89aa5156eca7d305c28 | [
"Apache-2.0"
] | null | null | null | simulation&control/pid_tuning_and_fuzzy_adaptive/6/GYJPID_ws/src/pid_identification/src/slros_busmsg_conversion.cpp | L-Net-1992/guyueclass | a6dd06529dfbe500a52ae89aa5156eca7d305c28 | [
"Apache-2.0"
] | null | null | null | #include "slros_busmsg_conversion.h"
// Conversions between SL_Bus_PID_identification_ros_time_Time and ros::Time
void convertFromBus(ros::Time* msgPtr, SL_Bus_PID_identification_ros_time_Time const* busPtr)
{
const std::string rosMessageType("ros_time/Time");
msgPtr->nsec = busPtr->Nsec;
msgPtr->s... | 35.839506 | 149 | 0.769549 | L-Net-1992 |
cc2c6ae1741f548f9af84a1a90051803f8d8c629 | 1,534 | hpp | C++ | extras/sixense/sixense_utils/mouse_pointer.hpp | adminicg/opentracker | fa8c542c3b2f3495d74d0e2b1670449da94d9a0c | [
"BSD-3-Clause"
] | 1 | 2021-06-24T09:55:20.000Z | 2021-06-24T09:55:20.000Z | extras/sixense/sixense_utils/mouse_pointer.hpp | adminicg/opentracker | fa8c542c3b2f3495d74d0e2b1670449da94d9a0c | [
"BSD-3-Clause"
] | null | null | null | extras/sixense/sixense_utils/mouse_pointer.hpp | adminicg/opentracker | fa8c542c3b2f3495d74d0e2b1670449da94d9a0c | [
"BSD-3-Clause"
] | null | null | null | /*
*
* SIXENSE CONFIDENTIAL
*
* Copyright (C) 2011 Sixense Entertainment Inc.
* All Rights Reserved
*
*/
#ifndef SIXENSE_UTILS_MOUSE_POINTER_HPP
#define SIXENSE_UTILS_MOUSE_POINTER_HPP
#pragma warning(push)
#pragma warning( disable:4251 )
#include "sixense_utils/export.hpp"
#include <sixense... | 21.605634 | 97 | 0.72425 | adminicg |
cc2d80af346a576a7ad097c9f3e4ed58e0e24533 | 19,936 | cpp | C++ | OpenDriveMap.cpp | chacha95/libOpendrive | 69400a60bd7e4de331396f92c7d20d1a795f4ca9 | [
"Apache-2.0"
] | 1 | 2021-12-06T02:03:09.000Z | 2021-12-06T02:03:09.000Z | OpenDriveMap.cpp | chacha95/libOpendrive | 69400a60bd7e4de331396f92c7d20d1a795f4ca9 | [
"Apache-2.0"
] | null | null | null | OpenDriveMap.cpp | chacha95/libOpendrive | 69400a60bd7e4de331396f92c7d20d1a795f4ca9 | [
"Apache-2.0"
] | 1 | 2021-12-06T02:03:46.000Z | 2021-12-06T02:03:46.000Z | #include "OpenDriveMap.h"
#include "Geometries/Arc.h"
#include "Geometries/CubicSpline.h"
#include "Geometries/Line.h"
#include "Geometries/ParamPoly3.h"
#include "Geometries/Spiral.h"
#include "LaneSection.h"
#include "Lanes.h"
#include "RefLine.h"
#include "Road.h"
#include "pugixml/pugixml.hpp"
#include <iostream>... | 48.743276 | 150 | 0.575492 | chacha95 |
cc3009926544a974144c920dcdc5e96803c64a14 | 4,590 | cc | C++ | graphics/sphere.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | graphics/sphere.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | graphics/sphere.cc | Tibonium/genecis | 4de1d987f5a7928b1fc3e31d2820f5d2452eb5fc | [
"BSD-2-Clause"
] | null | null | null | #include <genecis/graphics/sphere.h>
#include <ctime>
#include <cstring>
using namespace genecis::graphics ;
/**
* Constructor
*/
Sphere::Sphere(integral_type radius, size_type rings, size_type sectors)
: _vertices(rings * sectors * 3, 0),
_normals(rings * sectors * 3, 0),
_texcoords(rings * sectors... | 32.323944 | 110 | 0.586928 | Tibonium |
cc311d45d444f0d9532b9acba940f32b958936d2 | 94 | cpp | C++ | src/Graphics/UI/Font.cpp | noche-x/Stardust-Engine | 1b6f295650c7b6b7faced0577b04557d5dc23d9b | [
"MIT"
] | null | null | null | src/Graphics/UI/Font.cpp | noche-x/Stardust-Engine | 1b6f295650c7b6b7faced0577b04557d5dc23d9b | [
"MIT"
] | null | null | null | src/Graphics/UI/Font.cpp | noche-x/Stardust-Engine | 1b6f295650c7b6b7faced0577b04557d5dc23d9b | [
"MIT"
] | null | null | null | #include <Graphics/UI/Font.h>
namespace Stardust::Graphics::UI {
intraFont* g_DefaultFont;
} | 18.8 | 34 | 0.755319 | noche-x |
cc3cdda7f2949416f9ab8a752fd735675b92beab | 1,763 | cpp | C++ | SPOJ/SPOJ - BITMAP/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | SPOJ/SPOJ - BITMAP/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | SPOJ/SPOJ - BITMAP/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: 2018-03-15 23:37:16
* solution_verdict: Accepted language: C++
* run... | 23.197368 | 111 | 0.384005 | kzvd4729 |
cc40322bb13f5677d154982adda25a83dfbf220a | 3,442 | hxx | C++ | ds/adsi/winnt/cprinter.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/adsi/winnt/cprinter.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/adsi/winnt/cprinter.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
cprinter.hxx
Abstract:
Contains definitions for
CWinNTFSPrintQueueGeneralInfo,
CWinNTFSPrintQueueOperation and
CWinNTPrintQueue
Author:
Ram Viswanathan (ramv) 11-18-95
Revision History:
--*/
class CWin... | 23.575342 | 80 | 0.578443 | npocmaka |
cc4094ca11987a4f409b60e790653e1b7e6d0d36 | 3,212 | cpp | C++ | triangle.cpp | artem-bondar/triangles-intersection-finder | 26376af03f16527be9337fd0b3893fb8f3f6ebab | [
"Unlicense"
] | null | null | null | triangle.cpp | artem-bondar/triangles-intersection-finder | 26376af03f16527be9337fd0b3893fb8f3f6ebab | [
"Unlicense"
] | null | null | null | triangle.cpp | artem-bondar/triangles-intersection-finder | 26376af03f16527be9337fd0b3893fb8f3f6ebab | [
"Unlicense"
] | null | null | null | #include "triangle.h"
#include "text.h"
#include <iostream>
Triangle::Triangle() {
isExist = false;
}
Triangle::Triangle(Dot a, Dot b, Dot c) {
if (checkTriangleInequality(getSquareNormBetweenTwoDots(a,b), getSquareNormBetweenTwoDots(b,c), getSquareNormBetweenTwoDots(a,c)))
{
isExist = true;
AB = Segment(a, b)... | 34.537634 | 136 | 0.705791 | artem-bondar |
cc4321d1811a4f615623f91d4739193c6797c760 | 118 | hpp | C++ | test/TestHeaders.hpp | coderkd10/EternalTerminal | d15bb726d987bd147480125d694de44a2ea6ce83 | [
"Apache-2.0"
] | 1,783 | 2018-02-28T16:28:42.000Z | 2022-03-31T18:45:01.000Z | test/TestHeaders.hpp | coderkd10/EternalTerminal | d15bb726d987bd147480125d694de44a2ea6ce83 | [
"Apache-2.0"
] | 337 | 2018-02-27T06:38:39.000Z | 2022-03-22T02:50:58.000Z | test/TestHeaders.hpp | coderkd10/EternalTerminal | d15bb726d987bd147480125d694de44a2ea6ce83 | [
"Apache-2.0"
] | 135 | 2018-04-30T14:48:36.000Z | 2022-03-21T16:51:09.000Z | #ifndef __TEST_HEADERS_HPP__
#define __TEST_HEADERS_HPP__
#include "Headers.hpp"
#include "catch2/catch.hpp"
#endif
| 14.75 | 28 | 0.805085 | coderkd10 |
cc469bfeceb6669e7dd9f6168709d5d4c7ed85fe | 3,038 | cpp | C++ | CursEn/ConsoleApplicationCourse12/ConsoleApplicationCourse12/Source.cpp | catalinboja/cpp_examples_2016 | 784741ea12fd3dd2ebc659b431f7daaf17898956 | [
"Apache-2.0"
] | null | null | null | CursEn/ConsoleApplicationCourse12/ConsoleApplicationCourse12/Source.cpp | catalinboja/cpp_examples_2016 | 784741ea12fd3dd2ebc659b431f7daaf17898956 | [
"Apache-2.0"
] | null | null | null | CursEn/ConsoleApplicationCourse12/ConsoleApplicationCourse12/Source.cpp | catalinboja/cpp_examples_2016 | 784741ea12fd3dd2ebc659b431f7daaf17898956 | [
"Apache-2.0"
] | 4 | 2016-12-21T15:31:37.000Z | 2018-08-04T10:36:34.000Z | #include <iostream>
using namespace std;
class Product {
protected:
int code;
char name[50];
float price;
//const int id;
public:
Product() {
cout << endl << "Default product";
code = 0;
price = 0.0;
strcpy(name, "");
}
Product(int Code, float Price, char* Name, int Id) {
cout << endl << "Known prod... | 19.986842 | 55 | 0.579658 | catalinboja |