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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7346a15238faf3ee9fe014b2790e6792d040a18b | 5,662 | cpp | C++ | src/video/VideoManager.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 31 | 2015-02-02T04:51:10.000Z | 2021-02-20T10:04:41.000Z | src/video/VideoManager.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 2 | 2016-08-30T09:26:31.000Z | 2016-09-14T20:01:20.000Z | src/video/VideoManager.cpp | jaspervdj/JVGS | 59be35ed61b355b445b82bf32796c0f229e21b60 | [
"WTFPL"
] | 7 | 2015-02-02T05:02:09.000Z | 2021-12-24T06:53:01.000Z | #include "VideoManager.h"
#include "Renderer.h"
#include <SDL.h>
#include <SDL_opengl.h>
using namespace jvgs::math;
using namespace std;
namespace jvgs
{
namespace video
{
VideoManager::VideoManager()
{
SDL_InitSubSystem(SDL_INIT_VIDEO);
flags = SDL_DOUBLEBUF | SDL_H... | 26.834123 | 78 | 0.481632 | jaspervdj |
73473a583759c7f36c5d220103ac14b0bc68fa93 | 2,409 | cc | C++ | ma/maShapeHandler.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 138 | 2015-01-05T15:50:20.000Z | 2022-02-25T01:09:58.000Z | ma/maShapeHandler.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 337 | 2015-08-07T18:24:58.000Z | 2022-03-31T14:39:03.000Z | ma/maShapeHandler.cc | cwsmith/core | 840fbf6ec49a63aeaa3945f11ddb224f6055ac9f | [
"BSD-3-Clause"
] | 70 | 2015-01-17T00:58:41.000Z | 2022-02-13T04:58:20.000Z | /******************************************************************************
Copyright 2013 Scientific Computation Research Center,
Rensselaer Polytechnic Institute. All rights reserved.
The LICENSE file included with this distribution describes the terms
of the SCOREC Non-Commercial License this p... | 22.942857 | 80 | 0.589041 | cwsmith |
7348b47467dcff0080dd4845e078e1e87f18d370 | 1,425 | cpp | C++ | libs/multiprecision/example/mixed_integer_arithmetic.cpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 11 | 2016-04-12T16:29:29.000Z | 2021-06-28T11:01:57.000Z | libs/multiprecision/example/mixed_integer_arithmetic.cpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 3 | 2018-10-31T19:35:14.000Z | 2019-06-04T17:11:27.000Z | libs/multiprecision/example/mixed_integer_arithmetic.cpp | ballisticwhisper/boost | f72119ab640b564c4b983bd457457046b52af9ee | [
"BSL-1.0"
] | 9 | 2015-09-09T02:38:32.000Z | 2021-01-30T00:24:24.000Z | ///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. 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_
//
// Compare arithmetic results using fixed_int to GMP results.
//
#ifd... | 24.152542 | 88 | 0.653333 | ballisticwhisper |
7348bac9bbc8474ab650d4e0ac07c5408457fb95 | 1,959 | hpp | C++ | breeze/conversion/roman.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/conversion/roman.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/conversion/roman.hpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2016 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 31.095238 | 78 | 0.453292 | gennaroprota |
734c36b7bf61ac12c065cfe5ad35b0fb84069054 | 453 | cpp | C++ | errlist.cpp | commandus/kv | 49331945c4f6a6608b9545c212d29acf5867ecd3 | [
"MIT"
] | null | null | null | errlist.cpp | commandus/kv | 49331945c4f6a6608b9545c212d29acf5867ecd3 | [
"MIT"
] | null | null | null | errlist.cpp | commandus/kv | 49331945c4f6a6608b9545c212d29acf5867ecd3 | [
"MIT"
] | null | null | null | #include <string.h>
#include "errlist.h"
#define ERR_COUNT 9
static const char* errlist[ERR_COUNT] = {
ERR_COMMAND,
ERR_PARSE_COMMAND,
ERR_LMDB_TXN_BEGIN,
ERR_LMDB_TXN_COMMIT,
ERR_LMDB_OPEN,
ERR_LMDB_CLOSE,
ERR_LMDB_PUT,
ERR_LMDB_GET,
ERR_NO_MEMORY
};
const char *strerror_loracli(
int errcode
)
{... | 16.777778 | 59 | 0.695364 | commandus |
734d060157db57b523949477841aca66c0c19fbe | 6,663 | cpp | C++ | FEBioXML/FEBioMaterialSection.cpp | Scriptkiddi/FEBioStudio | b4cafde6b2761c9184e7e66451a9555b81a8a3dc | [
"MIT"
] | null | null | null | FEBioXML/FEBioMaterialSection.cpp | Scriptkiddi/FEBioStudio | b4cafde6b2761c9184e7e66451a9555b81a8a3dc | [
"MIT"
] | null | null | null | FEBioXML/FEBioMaterialSection.cpp | Scriptkiddi/FEBioStudio | b4cafde6b2761c9184e7e66451a9555b81a8a3dc | [
"MIT"
] | null | null | null | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining a... | 29.878924 | 101 | 0.661114 | Scriptkiddi |
7351f5c38092fa0ff8dc1c69abd7da4881961698 | 3,715 | cpp | C++ | USBMissle/servoControl/servoControl.cpp | dennis-tut/thunder-usb-rocketlauncher | d05313382f17ab7a6d4491d3b4439cece13067a9 | [
"MIT"
] | 1 | 2019-12-09T05:50:07.000Z | 2019-12-09T05:50:07.000Z | USBMissle/servoControl/servoControl.cpp | dennis-tut/thunder-usb-rocketlauncher | d05313382f17ab7a6d4491d3b4439cece13067a9 | [
"MIT"
] | null | null | null | USBMissle/servoControl/servoControl.cpp | dennis-tut/thunder-usb-rocketlauncher | d05313382f17ab7a6d4491d3b4439cece13067a9 | [
"MIT"
] | null | null | null | // Uses POSIX functions to send and receive data from a Maestro.
// NOTE: The Maestro's serial mode must be set to "USB Dual Port".
// NOTE: You must change the 'const char * device' line below.
// For further information you can look up the user manual for the Micro Maestro 6-channel at servocity.com
#include "servoC... | 27.518519 | 135 | 0.695828 | dennis-tut |
7356da6131f50831373ca0acf00437d30637b078 | 2,892 | cpp | C++ | main.cpp | kevinyxlu/cs32lab03 | 582c42181d8e7891a6f34a3ef5f524c915e963a1 | [
"MIT"
] | null | null | null | main.cpp | kevinyxlu/cs32lab03 | 582c42181d8e7891a6f34a3ef5f524c915e963a1 | [
"MIT"
] | null | null | null | main.cpp | kevinyxlu/cs32lab03 | 582c42181d8e7891a6f34a3ef5f524c915e963a1 | [
"MIT"
] | null | null | null | // Spring 2021 CS32 lab03
// Created by: Kevin Lu and Kevin Lai
// Created on: 04/25/2021
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include "demogData.h"
#include "parse.h"
#include "dataAQ.h"
using namespace std;
int main() {
dataAQ theAnswers;
//read in a csv file and cr... | 31.78022 | 100 | 0.606501 | kevinyxlu |
735adf01eb599dd2d80ebd835b4f0ed3fd7cdd88 | 530 | hpp | C++ | gv_base/src/android/gv_stream_android_asset.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | 2 | 2018-12-03T13:17:31.000Z | 2020-04-08T07:00:02.000Z | gv_base/src/android/gv_stream_android_asset.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | gv_base/src/android/gv_stream_android_asset.hpp | dragonsn/gv_game_engine | dca6c1fb1f8d96e9a244f157a63f8a69da084b0f | [
"MIT"
] | null | null | null | namespace gv
{
class gv_stream_android_asset : public gvi_stream
{
public:
gv_stream_android_asset();
~gv_stream_android_asset();
virtual bool open(const char* name);
virtual bool close();
virtual gv_int tell();
virtual void flush();
virtual gv_int read(void* pdata, gv_int isize);
virtual gv_int write(const voi... | 23.043478 | 60 | 0.750943 | dragonsn |
73643306c97d85a7bbcc252b934e5c3b914cf526 | 8,220 | cc | C++ | node_modules/gl/angle/src/tests/perf_tests/third_party/perf/perf_test.cc | aaverty/editly | 71bccaf91f8d68609c80ba59425b79e3f94579ad | [
"MIT"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | node_modules/gl/angle/src/tests/perf_tests/third_party/perf/perf_test.cc | aaverty/editly | 71bccaf91f8d68609c80ba59425b79e3f94579ad | [
"MIT"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | node_modules/gl/angle/src/tests/perf_tests/third_party/perf/perf_test.cc | aaverty/editly | 71bccaf91f8d68609c80ba59425b79e3f94579ad | [
"MIT"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2013 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 "perf_test.h"
#include <stdio.h>
#include <stdarg.h>
#include <vector>
namespace {
namespace base {
std::string FormatString(const char *fmt,... | 34.25 | 85 | 0.499878 | aaverty |
736818443673654fe8ba564d31d358fbcfd460c2 | 1,360 | cpp | C++ | src/bindings/python/src/compatibility/pyngraph/util.cpp | evgeniya-egupova/openvino | 4b8d6c59e3444ecdc549bfdf357d19d625479b89 | [
"Apache-2.0"
] | null | null | null | src/bindings/python/src/compatibility/pyngraph/util.cpp | evgeniya-egupova/openvino | 4b8d6c59e3444ecdc549bfdf357d19d625479b89 | [
"Apache-2.0"
] | 44 | 2020-12-09T12:38:22.000Z | 2022-03-28T13:18:29.000Z | src/bindings/python/src/compatibility/pyngraph/util.cpp | rkazants/openvino | a9a583eb42d43322b39b95b164b5b22c4f341111 | [
"Apache-2.0"
] | 2 | 2021-11-18T06:09:04.000Z | 2021-11-30T07:39:47.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "pyngraph/util.hpp"
#include <pybind11/numpy.h>
#include "ngraph/validation_util.hpp"
#include "ngraph/version.hpp"
namespace py = pybind11;
void* numpy_to_c(py::array a) {
py::buffer_info info = a.request();
re... | 30.222222 | 68 | 0.5625 | evgeniya-egupova |
73683f437180e5020aa66c1c106252a467b326b3 | 1,437 | hpp | C++ | waveform_system/super_wave_oscillator.hpp | kumataro4160/Sense | ac44d306cc81fb37e017c0dcf12d9f3dd5e9af4b | [
"MIT"
] | null | null | null | waveform_system/super_wave_oscillator.hpp | kumataro4160/Sense | ac44d306cc81fb37e017c0dcf12d9f3dd5e9af4b | [
"MIT"
] | null | null | null | waveform_system/super_wave_oscillator.hpp | kumataro4160/Sense | ac44d306cc81fb37e017c0dcf12d9f3dd5e9af4b | [
"MIT"
] | null | null | null | #pragma once
#include "effector.hpp"
#include "../../random.hpp"
#include "../wave_table_1d.hpp"
namespace sense
{
class SuperWaveOscillator : public Effector
{
const WaveTable1D waveTable;
const std::vector<float64> initialTheta;
const std::vector<float64> omegaRate;
std::vector<float64> theta;
std::v... | 23.557377 | 149 | 0.66945 | kumataro4160 |
7369778be8ac2e75b45ca12f02b761db0752f7fb | 10,492 | cpp | C++ | test/system/window_focus/main.cpp | alexiynew/nih_framework | a65335586331daa0ece892f98265bd1d2f8f579f | [
"MIT"
] | 1 | 2017-07-14T04:51:54.000Z | 2017-07-14T04:51:54.000Z | test/system/window_focus/main.cpp | alexiynew/nih_framework | a65335586331daa0ece892f98265bd1d2f8f579f | [
"MIT"
] | 32 | 2017-02-02T14:49:41.000Z | 2019-06-25T19:38:27.000Z | test/system/window_focus/main.cpp | alexiynew/nih_framework | a65335586331daa0ece892f98265bd1d2f8f579f | [
"MIT"
] | null | null | null | #include <chrono>
#include <iostream>
#include <thread>
#include <system/window.hpp>
#include <unit_test/suite.hpp>
using namespace framework::system;
class WindowFocusTest : public framework::unit_test::Suite
{
public:
WindowFocusTest()
: Suite("WindowFocusTest")
{
add_test([this]() { focus_... | 40.353846 | 111 | 0.648494 | alexiynew |
7369a7603124fc22fb32661e09864c4842d1468a | 267 | cpp | C++ | chapter-04/exercise_4_36.cpp | aufziehvogel/cpp-primer | 1ae8fdcda8580ea5d646a725fbb76110f138dbc8 | [
"MIT"
] | null | null | null | chapter-04/exercise_4_36.cpp | aufziehvogel/cpp-primer | 1ae8fdcda8580ea5d646a725fbb76110f138dbc8 | [
"MIT"
] | null | null | null | chapter-04/exercise_4_36.cpp | aufziehvogel/cpp-primer | 1ae8fdcda8580ea5d646a725fbb76110f138dbc8 | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
int i = -10;
double d = 3.14;
i *= d;
std::cout << "Without cast to int: " << i << std::endl;
i = -10;
i *= static_cast<int>(d);
std::cout << "With cast to int: " << i << std::endl;
return 0;
}
| 15.705882 | 59 | 0.468165 | aufziehvogel |
736a8131ea3337906e02dfabbc432db6ca002eda | 4,177 | hpp | C++ | interfaces/pixel_buffer.hpp | PiotrBanuba/OEP-module | d60204b8f6c3738e6fb8b5c2ea657460397be774 | [
"MIT"
] | null | null | null | interfaces/pixel_buffer.hpp | PiotrBanuba/OEP-module | d60204b8f6c3738e6fb8b5c2ea657460397be774 | [
"MIT"
] | 2 | 2022-03-16T13:01:29.000Z | 2022-03-16T14:06:16.000Z | interfaces/pixel_buffer.hpp | PiotrBanuba/OEP-module | d60204b8f6c3738e6fb8b5c2ea657460397be774 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <functional>
#include <interfaces/image_format.hpp>
namespace bnb::oep::interfaces
{
class pixel_buffer;
}
using pixel_buffer_sptr = std::shared_ptr<bnb::oep::interfaces::pixel_buffer>;
namespace bnb::oep::interfaces
{
class pixel_buffer
{
public:
usi... | 29.624113 | 210 | 0.570745 | PiotrBanuba |
736ae9a9e9c29141a7e76f871f82c06e8f75c4ae | 7,415 | hpp | C++ | boost/time_series/characteristic_series.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 11 | 2015-02-21T11:23:44.000Z | 2021-08-15T03:39:29.000Z | boost/time_series/characteristic_series.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | null | null | null | boost/time_series/characteristic_series.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 3 | 2015-05-09T02:25:42.000Z | 2019-11-02T13:39:29.000Z | ///////////////////////////////////////////////////////////////////////////////
/// \file characteristic_series.hpp
/// A time series that uses characteristic storage
//
// Copyright 2006 Eric Niebler. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or co... | 36.527094 | 112 | 0.647876 | ericniebler |
736f9ea929f4c7a34fc14ce44795b6f68d63a91b | 2,526 | cc | C++ | quic/test_tools/simulator/alarm_factory.cc | swimfish09/quiche | 2bfc754a599cdbdb2a6875a515713648b92ddb97 | [
"BSD-3-Clause"
] | null | null | null | quic/test_tools/simulator/alarm_factory.cc | swimfish09/quiche | 2bfc754a599cdbdb2a6875a515713648b92ddb97 | [
"BSD-3-Clause"
] | null | null | null | quic/test_tools/simulator/alarm_factory.cc | swimfish09/quiche | 2bfc754a599cdbdb2a6875a515713648b92ddb97 | [
"BSD-3-Clause"
] | null | null | null | // 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 "net/third_party/quiche/src/quic/test_tools/simulator/alarm_factory.h"
#include "net/third_party/quiche/src/quic/core/quic_alarm.h"
#include... | 30.804878 | 79 | 0.696754 | swimfish09 |
737adecb189749033e3e3b42bb9a0ae95d706edf | 6,145 | cc | C++ | src/rtcrtpreceiver.cc | D1plo1d/node-webrtc | eb66ddfdcb6dd9c47d94844022a628ebcf3f79c3 | [
"Apache-2.0"
] | null | null | null | src/rtcrtpreceiver.cc | D1plo1d/node-webrtc | eb66ddfdcb6dd9c47d94844022a628ebcf3f79c3 | [
"Apache-2.0"
] | null | null | null | src/rtcrtpreceiver.cc | D1plo1d/node-webrtc | eb66ddfdcb6dd9c47d94844022a628ebcf3f79c3 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2018 The node-webrtc project authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license that can be found
* in the LICENSE.md file in the root of the source tree. All contributing
* project authors may be found in the AUTHORS file in the root of the source
* tree.... | 37.699387 | 136 | 0.74288 | D1plo1d |
737dbd7206a5d23be062bdc8aa58ddef44c6b67d | 1,465 | cpp | C++ | convexHull.cpp | singhkeshav510/DSA-Practice | 3d0eb2137d061c8b4fcba988c46cd7817dfb7fc7 | [
"MIT"
] | null | null | null | convexHull.cpp | singhkeshav510/DSA-Practice | 3d0eb2137d061c8b4fcba988c46cd7817dfb7fc7 | [
"MIT"
] | null | null | null | convexHull.cpp | singhkeshav510/DSA-Practice | 3d0eb2137d061c8b4fcba988c46cd7817dfb7fc7 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
class Point{
public:
int x;
int y;
Point(int x,int y){
this->x=x;
this->y=y;
}
};
Point po;
void swap(Point &p1, Point &p2){
Point temp = p1;
p1 = p2;
p2 = temp;
}
int distSq(Point p1, Point p2){
return (p1.x - p2.x)*(p1.x - p2.x) +
(p1.y -... | 19.797297 | 58 | 0.533106 | singhkeshav510 |
737ef3d0d9f0d15a03eb5340d9ff722f30878f93 | 2,481 | hpp | C++ | LED_anima.hpp | sethome2/LED_anima | 3250659ebdbf3be411d6cf63ea2f6c903a500d2d | [
"MIT"
] | 2 | 2021-09-24T17:34:40.000Z | 2021-12-29T23:58:00.000Z | LED_anima.hpp | sethome2/LED_anima | 3250659ebdbf3be411d6cf63ea2f6c903a500d2d | [
"MIT"
] | null | null | null | LED_anima.hpp | sethome2/LED_anima | 3250659ebdbf3be411d6cf63ea2f6c903a500d2d | [
"MIT"
] | null | null | null | /*
* @Author: sethome
* @Description: In User Settings Edit
* @FilePath: \LED_anima\LED_anima.hpp
*/
/*
MIT License
Copyright (c) 2021 sethome
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 ... | 25.316327 | 80 | 0.720274 | sethome2 |
73845f1f677dbe869f72cfe74ff10f1d70fa9792 | 651 | cpp | C++ | LeetCode_C++/605_canPlaceFlowers/test.cpp | Yiluhuakai22/algorigthm-study | 084ca94342020e4333045c136886eef0292e4eae | [
"MIT"
] | null | null | null | LeetCode_C++/605_canPlaceFlowers/test.cpp | Yiluhuakai22/algorigthm-study | 084ca94342020e4333045c136886eef0292e4eae | [
"MIT"
] | null | null | null | LeetCode_C++/605_canPlaceFlowers/test.cpp | Yiluhuakai22/algorigthm-study | 084ca94342020e4333045c136886eef0292e4eae | [
"MIT"
] | null | null | null | #include <limits.h>
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <cstdlib>
#include <iostream>
#include <string>
#include "solution.h"
using ::testing::_;
using ::testing::AtLeast;
using ::testing::Exactly;
using ::testing::Return;
using namespace testing;
using namespace std;
TEST(TEST, TEST)
{
S... | 21.7 | 69 | 0.689708 | Yiluhuakai22 |
73849bebaafdbb09f8e340364ca00152cb717840 | 8,009 | hpp | C++ | HotSpot1.7-JVM-Linux-x86/src/share/vm/gc_implementation/parallelScavenge/psCompactionManager.hpp | codefollower/Open-Source-Research | b9f2aed9d0f060b80be45f713c3d48fe91f247b2 | [
"Apache-2.0"
] | 184 | 2015-01-04T03:38:20.000Z | 2022-03-30T05:47:21.000Z | HotSpot1.7/src/share/vm/gc_implementation/parallelScavenge/psCompactionManager.hpp | doczyw/Open-Source-Research | b9f2aed9d0f060b80be45f713c3d48fe91f247b2 | [
"Apache-2.0"
] | 1 | 2016-01-17T09:18:17.000Z | 2016-01-17T09:18:17.000Z | HotSpot1.7/src/share/vm/gc_implementation/parallelScavenge/psCompactionManager.hpp | doczyw/Open-Source-Research | b9f2aed9d0f060b80be45f713c3d48fe91f247b2 | [
"Apache-2.0"
] | 101 | 2015-01-16T23:46:31.000Z | 2022-03-30T05:47:06.000Z | /*
* Copyright (c) 2005, 2011, 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.076577 | 82 | 0.734049 | codefollower |
73863b3f01793831b768e0314b32def426edf6a0 | 161,331 | cpp | C++ | GameServer/Source/ChaosBox.cpp | sp3cialk/MU-S8EP2-Repack | 202856a74c905c203b9b2795fd161f564ca8b257 | [
"MIT"
] | 10 | 2019-04-09T23:36:43.000Z | 2022-02-10T19:20:52.000Z | GameServer/Source/ChaosBox.cpp | microvn/mu-s8ep2-repack | 202856a74c905c203b9b2795fd161f564ca8b257 | [
"MIT"
] | 1 | 2019-09-25T17:12:36.000Z | 2019-09-25T17:12:36.000Z | GameServer/Source/ChaosBox.cpp | microvn/mu-s8ep2-repack | 202856a74c905c203b9b2795fd161f564ca8b257 | [
"MIT"
] | 9 | 2019-09-25T17:12:57.000Z | 2021-08-18T01:21:25.000Z | #include "stdafx.h"
#include "ChaosBox.h"
#include "logproc.h"
#include "GameMain.h"
#include "GameServer.h"
#include "..\common\winutil.h"
#include "DSProtocol.h"
#include "CastleSiegeSync.h"
#include "BloodCastle.h"
#include "..\common\SetItemOption.h"
#include "JewelOfHarmonySystem.h"
#include "giocp.h"
#include "Cr... | 23.179741 | 288 | 0.655026 | sp3cialk |
738f2206ce3e2d2398e3a13b609fd024904466ff | 4,969 | cpp | C++ | SDK/Extras/Quesa Model Viewer/AdvMoof Source/AdvWindow.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 24 | 2019-10-28T07:01:48.000Z | 2022-03-04T16:10:39.000Z | SDK/Extras/Quesa Model Viewer/AdvMoof Source/AdvWindow.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 8 | 2020-04-22T19:42:45.000Z | 2021-04-30T16:28:32.000Z | SDK/Extras/Quesa Model Viewer/AdvMoof Source/AdvWindow.cpp | h-haris/Quesa | a438ab824291ce6936a88dfae4fd0482dcba1247 | [
"BSD-3-Clause"
] | 6 | 2019-09-22T14:44:15.000Z | 2021-04-01T20:04:29.000Z | #include "AdvWindow.h"
#include "ResourceIDs.h"
AdvWindow::AdvWindow(const Rect &r, const Str255 title,
const short defProc, const Boolean hasCloseBox)
: inherited( r, title, defProc, hasCloseBox ), mDirty(false)
{
mFSSpec.name[0] = 0;
mSaveFileType = kDocFileType;
mSaveFileCreator = kAppCreatorCode;
}
void A... | 26.152632 | 83 | 0.688267 | h-haris |
739362fc3002d68707c63ffe437b7ea598f24533 | 671 | hpp | C++ | StartScreen.hpp | MineOzelot/Tseitr | f1629f53c08bacba30106026fa53883dcc335006 | [
"MIT"
] | null | null | null | StartScreen.hpp | MineOzelot/Tseitr | f1629f53c08bacba30106026fa53883dcc335006 | [
"MIT"
] | null | null | null | StartScreen.hpp | MineOzelot/Tseitr | f1629f53c08bacba30106026fa53883dcc335006 | [
"MIT"
] | null | null | null | //
// Created by mineozelot on 8/11/18.
//
#ifndef TSEITR_STARTSCREEN_HPP
#define TSEITR_STARTSCREEN_HPP
#include "Screen.hpp"
#include "Game.hpp"
#include "Label.hpp"
class StartScreen: public Screen {
Label *label_startgame = nullptr;
Label *label_leaderboard = nullptr;
Label *label_exit = nullptr;
SDL_Rect s... | 18.135135 | 58 | 0.731744 | MineOzelot |
739435c4353a68cdc3bb4d3c252e8f802d7ec302 | 1,543 | cpp | C++ | done/reduce.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/reduce.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | done/reduce.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
typedef pair <int, int> ii;
int N;
ii cows[50001];
bool comp1(ii a, ii b) { return a.first < b.first; }
bool comp2(ii a, ii b) { return a.second < b.second; }
bool valid(int sx, int bx, int sy, int by)
{
if (sx > bx || sy > by) return false;
int o... | 26.603448 | 69 | 0.436811 | birdhumming |
73949bd7cbc148e499238c30524e692fd54a164a | 600 | cpp | C++ | master/core/third/RCF/src/RCF/Tools.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/RCF/src/RCF/Tools.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/RCF/src/RCF/Tools.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z |
//*****************************************************************************
// RCF - Remote Call Framework
// Copyright (c) 2005. All rights reserved.
// Developed by Jarl Lindrud.
// Contact: jlindrud@hotmail.com .
//*****************************************************************************
#include <... | 23.076923 | 80 | 0.47 | importlib |
7394d738947489a33f1795a8f97fb3a8aa8efc70 | 416 | cpp | C++ | LimeEngine/Engine/IO/EngineIO.cpp | RubyCircle/LimeEngine | 06e3628f2aeb3ce023c1251a6379a26b2df2de4b | [
"MIT"
] | 1 | 2022-01-04T19:25:46.000Z | 2022-01-04T19:25:46.000Z | LimeEngine/Engine/IO/EngineIO.cpp | RubyCircle/LimeEngine | 06e3628f2aeb3ce023c1251a6379a26b2df2de4b | [
"MIT"
] | null | null | null | LimeEngine/Engine/IO/EngineIO.cpp | RubyCircle/LimeEngine | 06e3628f2aeb3ce023c1251a6379a26b2df2de4b | [
"MIT"
] | null | null | null | #include "EngineIO.hpp"
namespace LimeEngine
{
EngineIO::EngineIO(RenderIO&& renderIO, SceneIO&& sceneIO) : renderIO(std::move(renderIO)), sceneIO(std::move(sceneIO)) {}
std::optional<int> EngineIO::Process()
{
return renderIO.Process();
}
void EngineIO::Render()
{
renderIO.Render(sceneIO.camera);
}
Inp... | 19.809524 | 123 | 0.711538 | RubyCircle |
73957798587045c386d9d683a9584bfa06ba8f3a | 34,704 | cpp | C++ | test/ut/gpio/GpioSettingsControllerTests.cpp | bkozdras/picosdkal | 1830a2b0296510a5d40a69d22d9a21618d664528 | [
"MIT"
] | null | null | null | test/ut/gpio/GpioSettingsControllerTests.cpp | bkozdras/picosdkal | 1830a2b0296510a5d40a69d22d9a21618d664528 | [
"MIT"
] | null | null | null | test/ut/gpio/GpioSettingsControllerTests.cpp | bkozdras/picosdkal | 1830a2b0296510a5d40a69d22d9a21618d664528 | [
"MIT"
] | null | null | null | /**********************************************************************************/
/* Copyright by @bkozdras <b.kozdras@gmail.com> */
/* Version: 1.0 */
/* Licence: MIT ... | 44.895213 | 119 | 0.718419 | bkozdras |
739a9cf262fb05a2623562bb4680153985333bcd | 23,720 | cpp | C++ | test/test_block_literal.cpp | fargies/rapidyaml | 6fd373c860b1eef3b190a521acabebc2fd2dcb04 | [
"MIT"
] | null | null | null | test/test_block_literal.cpp | fargies/rapidyaml | 6fd373c860b1eef3b190a521acabebc2fd2dcb04 | [
"MIT"
] | null | null | null | test/test_block_literal.cpp | fargies/rapidyaml | 6fd373c860b1eef3b190a521acabebc2fd2dcb04 | [
"MIT"
] | null | null | null | #include "./test_group.hpp"
namespace c4 {
namespace yml {
TEST(block_literal, empty_block)
{
{
Tree t = parse_in_arena(R"(- |
)");
EXPECT_EQ(t[0].val(), csubstr(""));
}
{
Tree t = parse_in_arena(R"(- |-
)");
EXPECT_EQ(t[0].val(), csubstr(""));
}
{
Tree t = ... | 20.483592 | 207 | 0.595573 | fargies |
739f0ebc3ca99219743f4ba3df4d91f5b04bc2d4 | 6,734 | cpp | C++ | be/src/vec/exec/olap_scanner.cpp | acelyc111/doris-vectorized | cb9d1e0128e9f6306dde66265a1f35d15b77e51d | [
"Apache-2.0"
] | null | null | null | be/src/vec/exec/olap_scanner.cpp | acelyc111/doris-vectorized | cb9d1e0128e9f6306dde66265a1f35d15b77e51d | [
"Apache-2.0"
] | null | null | null | be/src/vec/exec/olap_scanner.cpp | acelyc111/doris-vectorized | cb9d1e0128e9f6306dde66265a1f35d15b77e51d | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 40.812121 | 96 | 0.574102 | acelyc111 |
739f4d738dfe9542ea3d7331f5b53807081f709e | 436 | inl | C++ | include/glw/Mesh.inl | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 11 | 2015-08-19T23:15:41.000Z | 2018-05-15T21:53:28.000Z | include/glw/Mesh.inl | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 2 | 2015-05-21T06:37:24.000Z | 2015-05-23T05:37:16.000Z | include/glw/Mesh.inl | jarrettchisholm/glr | 79a57b12e26fe84595e833cace3528cb9c82bc20 | [
"WTFPL"
] | 5 | 2016-10-31T08:02:15.000Z | 2018-08-24T07:40:23.000Z | namespace glr
{
namespace glw
{
template<class Archive> void Mesh::serialize(Archive& ar, const unsigned int version)
{
boost::serialization::void_cast_register<Mesh, IMesh>(
static_cast<Mesh*>(nullptr),
static_cast<IMesh*>(nullptr)
);
//ar & boost::serialization::base_object<IMesh>(*this);
ar & name_;
ar & ... | 18.166667 | 85 | 0.708716 | jarrettchisholm |
73ab0e23a721296a31385a51f0373b46201ae313 | 1,456 | cpp | C++ | RestfulServer.cpp | Enseed/Restful | 263df222e7bae3678fe32355aab67dc4265b14ca | [
"Apache-2.0"
] | null | null | null | RestfulServer.cpp | Enseed/Restful | 263df222e7bae3678fe32355aab67dc4265b14ca | [
"Apache-2.0"
] | null | null | null | RestfulServer.cpp | Enseed/Restful | 263df222e7bae3678fe32355aab67dc4265b14ca | [
"Apache-2.0"
] | null | null | null | #include "Precompiled.h"
#include "RestfulServer.h"
#include "Domain/DTO/Errors/ErrorDTO.h"
#include "Domain/DTO/Errors/ErrorDTO.reflect.h"
#include "HTTP/HttpDTOResult.h"
#include <boost/uuid/random_generator.hpp>
#include <boost/date_time/microsec_time_clock.hpp>
#include <Restless/HTTP/HttpStatus.h>
#include <Restle... | 28.54902 | 111 | 0.763736 | Enseed |
73af655af51ef49d3c251a5c1e13d63a2e067184 | 1,047 | cpp | C++ | Game/src/main.cpp | DebugScientist78/Encryption-Game | 8044425a11494962d62d162d788e3adac369600f | [
"MIT"
] | null | null | null | Game/src/main.cpp | DebugScientist78/Encryption-Game | 8044425a11494962d62d162d788e3adac369600f | [
"MIT"
] | null | null | null | Game/src/main.cpp | DebugScientist78/Encryption-Game | 8044425a11494962d62d162d788e3adac369600f | [
"MIT"
] | null | null | null | //main.h ties in the project files in a simple include file and can be called easily
#include "../include/main.h"
/*
* Program name: main.cpp
* Date: 10/23/2019
* Purpose: This source file is where the main method is located,
* It runs procedurally with the initilizing and then loads into a loop of screens that are ru... | 22.76087 | 98 | 0.640879 | DebugScientist78 |
73b091bcc2c08ead26f47f76edf5ba13a66d272c | 240 | cc | C++ | Part-I/Ch04/4.2/4.5.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | 1 | 2021-09-23T13:13:12.000Z | 2021-09-23T13:13:12.000Z | Part-I/Ch04/4.2/4.5.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | Part-I/Ch04/4.2/4.5.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
std::cout << -30 * 3 + 21 / 5 << std::endl;
std::cout << -30 + 3 * 21 / 5 << std::endl;
std::cout << 30 / 3 * 21 % 5 << std::endl;
std::cout << -30 / 3 * 21 % 4 << std::endl;
return 0;
} | 24 | 47 | 0.454167 | RingZEROtlf |
73b0c3d35f89e2aa26ee925591c7453cea2f5106 | 1,829 | cpp | C++ | Source/SMat3.cpp | JordanEllis6809/UrsineMath | 36f2d82c072af5b209d693b73cd4416a208c0781 | [
"MIT"
] | 1 | 2015-11-02T00:50:04.000Z | 2015-11-02T00:50:04.000Z | Source/SMat3.cpp | JordanEllis6809/UrsineMath | 36f2d82c072af5b209d693b73cd4416a208c0781 | [
"MIT"
] | null | null | null | Source/SMat3.cpp | JordanEllis6809/UrsineMath | 36f2d82c072af5b209d693b73cd4416a208c0781 | [
"MIT"
] | null | null | null | /* ---------------------------------------------------------------------------
** Team Bear King
** DigiPen Institute of Technology 2015
**
** Mat3.cpp
**
** Author:
** - Jordan Ellis - J.Ellis@digipen.edu
**
** Contributors:
** - <list in same format as author if applicable>
** ----------------------------------------... | 21.517647 | 78 | 0.38491 | JordanEllis6809 |
73b212471bf4609818cf069ca28cfb416e477f2a | 1,164 | cpp | C++ | source/RobotController/Viewer/ViewerPlugin.cpp | xxzl0130/ProgrammingExperience | 4f18ad6eb6bc1e7f0d69b458e0c4efbbf4326cfd | [
"MIT"
] | 1 | 2020-09-08T02:54:11.000Z | 2020-09-08T02:54:11.000Z | source/RobotController/Viewer/ViewerPlugin.cpp | xxzl0130/ProgrammingExperience | 4f18ad6eb6bc1e7f0d69b458e0c4efbbf4326cfd | [
"MIT"
] | 1 | 2020-09-08T02:53:54.000Z | 2020-09-23T00:55:35.000Z | source/RobotController/Viewer/ViewerPlugin.cpp | xxzl0130/ProgrammingExperience | 4f18ad6eb6bc1e7f0d69b458e0c4efbbf4326cfd | [
"MIT"
] | null | null | null | #include "Viewer.h"
#include "ViewerPlugin.h"
#include <QtCore/QtPlugin>
ViewerPlugin::ViewerPlugin(QObject *parent)
: QObject(parent)
{
initialized = false;
}
void ViewerPlugin::initialize(QDesignerFormEditorInterface * /*core*/)
{
if (initialized)
return;
initialized = true;
}
bool ViewerPlugin::isInitiali... | 14.923077 | 70 | 0.670103 | xxzl0130 |
73b4c3c7ed8df473eca3055c5a94459dd9dc521a | 1,304 | hpp | C++ | include/touca/extra/catch2.hpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 8 | 2021-01-02T11:41:31.000Z | 2021-04-15T07:05:54.000Z | include/touca/extra/catch2.hpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 17 | 2021-01-08T06:52:51.000Z | 2021-04-18T20:00:28.000Z | include/touca/extra/catch2.hpp | getweasel/weasel-cpp | 871e7790edb791b76a62ef3554b3330f1eb3d1f9 | [
"Apache-2.0"
] | 1 | 2021-04-16T10:30:23.000Z | 2021-04-16T10:30:23.000Z | // Copyright 2021 Touca, Inc. Subject to Apache-2.0 License.
#pragma once
#ifndef TOUCA_CATCH
#define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
#else
#define CATCH_CONFIG_RUNNER
#include "catch2/catch.hpp"
#include "touca/touca.hpp"
int main(int argc, char* argv[]) {
Catch::Session session;
std::array<std:... | 24.603774 | 70 | 0.609663 | getweasel |
73b585fcc67f627ef54a644005bf885e9745b2af | 7,345 | cpp | C++ | test/playback.cpp | hradec/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 51 | 2015-01-07T18:36:39.000Z | 2021-11-30T15:24:44.000Z | test/playback.cpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 1 | 2015-01-08T10:48:43.000Z | 2015-02-11T19:32:14.000Z | test/playback.cpp | virneo/duke | efacf7139cd1d7c2cd2f5127079721bd263dda50 | [
"MIT"
] | 18 | 2015-05-11T12:43:37.000Z | 2019-11-29T11:15:41.000Z | #include <gtest/gtest.h>
#include "duke/cmdline/CmdLineParameters.hpp"
#include "duke/engine/Player.hpp"
static const size_t startFrame = 90000;
using namespace duke;
const CmdLineParameters gDefault(0, nullptr);
Timeline getTimeline() {
Track track;
track.add(startFrame, Clip{1});
track.add(startFrame + 1, ... | 37.860825 | 89 | 0.730565 | hradec |
73b6f8bb711ea1c657973659ab7a0506ab535f7b | 260 | cpp | C++ | 122A.cpp | shaonsani/Codefoce_solving | 80b821267f35bc62cd8016a378e7facc890d6ad0 | [
"MIT"
] | null | null | null | 122A.cpp | shaonsani/Codefoce_solving | 80b821267f35bc62cd8016a378e7facc890d6ad0 | [
"MIT"
] | null | null | null | 122A.cpp | shaonsani/Codefoce_solving | 80b821267f35bc62cd8016a378e7facc890d6ad0 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int s;
cin>>s;
if(s==4||s==47||s==744||s%4==0||s%7==0||s%47==0||s%744==0||s==477)
{
cout<<"YES"<<endl;
}
else
cout<<"NO"<<endl;
return 0;
}
| 15.294118 | 71 | 0.423077 | shaonsani |
73b7dbdadddb23d907f6c381317a32ac4f8bd01d | 1,916 | hh | C++ | common/dstage/dstage.hh | PeterVondras/DAS | 72dd5223280ec121f998b4932cc6bf7e83187d46 | [
"MIT"
] | null | null | null | common/dstage/dstage.hh | PeterVondras/DAS | 72dd5223280ec121f998b4932cc6bf7e83187d46 | [
"MIT"
] | null | null | null | common/dstage/dstage.hh | PeterVondras/DAS | 72dd5223280ec121f998b4932cc6bf7e83187d46 | [
"MIT"
] | null | null | null | // This is an implementation file which is being included as a header so that
// we can have dynamic template specialization at compile time.
#ifndef DANS02_DSTAGE_CC_IMPL__
#define DANS02_DSTAGE_CC_IMPL__
#include "common/dstage/dstage.h"
#include "common/dstage/dstage.h"
#include "common/dstage/job.h"
#include "glo... | 37.568627 | 79 | 0.700939 | PeterVondras |
73b8a583b028e60e2e3777dc80654d9a7d06cc73 | 4,916 | cpp | C++ | src/images/SkWebpEncoder.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/images/SkWebpEncoder.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | src/images/SkWebpEncoder.cpp | NearTox/Skia | 8b7e0616161fff86ecbd8938b90600d72b8d5c1d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2010 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/images/SkImageEncoderPriv.h"
#ifdef SK_ENCODE_WEBP
# include "include/core/SkBitmap.h"
# include "include/core/SkStream.h"
# include "in... | 31.312102 | 99 | 0.693043 | NearTox |
73b8e1ff9e9f2d3e3810ccd15e96702288b7047a | 3,341 | inl | C++ | OgreMain/include/Math/Array/SSE2/Single/OgreBooleanMask.inl | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | 701 | 2019-09-08T15:56:41.000Z | 2022-03-31T05:51:26.000Z | OgreMain/include/Math/Array/SSE2/Single/OgreBooleanMask.inl | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | 204 | 2019-09-01T23:02:32.000Z | 2022-03-28T14:58:39.000Z | OgreMain/include/Math/Array/SSE2/Single/OgreBooleanMask.inl | FreeNightKnight/ogre-next | f2d1a31887a87c492b4225e063325c48693fec19 | [
"MIT"
] | 188 | 2019-09-05T05:14:46.000Z | 2022-03-22T21:51:39.000Z | /*
-----------------------------------------------------------------------------
This source file is part of OGRE-Next
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2014 Torus Knot Software Ltd
Permission is hereby granted, free of charge, to any pe... | 45.148649 | 106 | 0.55642 | FreeNightKnight |
73b95aae10827f69ac7ebe18a488b36566b0a014 | 4,980 | hpp | C++ | src/projects/dbg/graph_printing.hpp | AntonBankevich/LJA | 979d7929bf0b39fd142ec6465dc0c17814465ef9 | [
"BSD-3-Clause"
] | 53 | 2021-10-10T22:16:27.000Z | 2022-03-23T06:21:06.000Z | src/projects/dbg/graph_printing.hpp | AntonBankevich/LJA | 979d7929bf0b39fd142ec6465dc0c17814465ef9 | [
"BSD-3-Clause"
] | 20 | 2021-05-10T07:44:24.000Z | 2022-03-24T13:23:58.000Z | src/projects/dbg/graph_printing.hpp | AntonBankevich/DR | 73450ad3b25f90a3c7747aaf17fe60d13d9692d3 | [
"BSD-3-Clause"
] | 6 | 2022-01-27T01:45:56.000Z | 2022-03-18T04:23:33.000Z | #pragma once
#include "component.hpp"
#include "sparse_dbg.hpp"
namespace dbg {
inline void printFasta(std::ostream &out, const Component &component, bool mask = false) {
size_t cnt = 0;
size_t masked_cnt = 1;
for (Edge &edge : component.edges()) {
Sequence edge_seq = edge.start... | 41.5 | 128 | 0.48494 | AntonBankevich |
73b9be014515a643a6e293b7d7f083e336f1f05d | 1,564 | cpp | C++ | source/fixed_pool.cpp | bhlzlx/EASTL | 80eb36c5a6986f814d0983ec26269cbb4ea71ffc | [
"BSD-3-Clause"
] | 6,852 | 2016-02-10T00:42:20.000Z | 2022-03-30T07:33:48.000Z | source/fixed_pool.cpp | bhlzlx/EASTL | 80eb36c5a6986f814d0983ec26269cbb4ea71ffc | [
"BSD-3-Clause"
] | 457 | 2015-05-01T22:07:45.000Z | 2022-03-31T02:19:10.000Z | source/fixed_pool.cpp | bhlzlx/EASTL | 80eb36c5a6986f814d0983ec26269cbb4ea71ffc | [
"BSD-3-Clause"
] | 1,041 | 2016-02-10T02:21:49.000Z | 2022-03-31T14:10:02.000Z | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#include <EASTL/internal/fixed_pool.h>
#include <EASTL/fixed_allocator.h>
namespace eastl
{
E... | 22.028169 | 88 | 0.582481 | bhlzlx |
73bdcd8657fe494fd4c9ce0a8f63bdac667c3553 | 4,882 | cpp | C++ | gporca/libnaucrates/src/parser/CParseHandlerMetadataColumns.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gporca/libnaucrates/src/parser/CParseHandlerMetadataColumns.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | gporca/libnaucrates/src/parser/CParseHandlerMetadataColumns.cpp | Tanmoy248/gpdb | 67fa1568b3ef2dc1c7757e3e94705de2f92e124b | [
"PostgreSQL",
"Apache-2.0"
] | 1 | 2022-03-22T18:45:41.000Z | 2022-03-22T18:45:41.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 Greenplum, Inc.
//
// @filename:
// CParseHandlerMetadataColumns.cpp
//
// @doc:
// Implementation of the SAX parse handler class for parsing a list of
// columns in a relation's metadata.
//----... | 30.135802 | 162 | 0.618189 | Tanmoy248 |
73c0f71c280326d953f8257b2bfb28be5e49382d | 86,689 | cpp | C++ | gen/make_mat_h.cpp | HolyBlackCat/LD45 | 0a4211826bae66d0076fe5ffaeefc021e759247c | [
"Zlib"
] | 1 | 2019-10-08T02:49:24.000Z | 2019-10-08T02:49:24.000Z | gen/make_mat_h.cpp | HolyBlackCat/LD45 | 0a4211826bae66d0076fe5ffaeefc021e759247c | [
"Zlib"
] | null | null | null | gen/make_mat_h.cpp | HolyBlackCat/LD45 | 0a4211826bae66d0076fe5ffaeefc021e759247c | [
"Zlib"
] | null | null | null | #include <cstdlib>
#include <cstring>
#include <fstream>
#include <functional>
#include <iostream>
#include <string>
#include <sstream>
#include <type_traits>
#define VERSION "3.1.7"
#pragma GCC diagnostic ignored "-Wpragmas" // Silence GCC warning about the next line disabling a warning that GCC doesn't have.
#pragm... | 47.920951 | 251 | 0.35377 | HolyBlackCat |
73c161b58274a57a59cce924c645d7a966054c10 | 10,620 | cc | C++ | pagespeed/system/controller_manager.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 2 | 2019-11-02T07:54:17.000Z | 2020-04-16T09:26:51.000Z | pagespeed/system/controller_manager.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 12 | 2017-03-14T18:26:11.000Z | 2021-10-01T15:33:50.000Z | pagespeed/system/controller_manager.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 1 | 2020-04-16T09:28:30.000Z | 2020-04-16T09:28:30.000Z | // Copyright 2016 Google 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 in... | 35.518395 | 80 | 0.651789 | dimitrilongo |
73c1797ace43d650ae89e6b1ea877ba8fa310af3 | 28,751 | cpp | C++ | src/LuminoEngine/src/Scene/MeshVoxelmap/MeshVoxelset.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null | src/LuminoEngine/src/Scene/MeshVoxelmap/MeshVoxelset.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null | src/LuminoEngine/src/Scene/MeshVoxelmap/MeshVoxelset.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null |
#include "Internal.hpp"
#include <LuminoEngine/Graphics/Texture.hpp>
#include <LuminoEngine/Rendering/Material.hpp>
#include <LuminoEngine/Rendering/RenderingContext.hpp>
#include <LuminoEngine/Scene/MeshVoxelmap/MeshVoxelset.hpp>
#include <LuminoEngine/Graphics/Texture.hpp>
#include <LuminoEngine/Mesh/MeshModel.hpp... | 36.25599 | 183 | 0.597127 | infinnie |
73c3942edc74b19f04454276b6220f023326ba9e | 27,417 | cpp | C++ | src/share.cpp | voidluffy/ipmsg342r2src | 2134d79fca21f0d434a8561fed873c9a3753339e | [
"X11",
"Unlicense"
] | 20 | 2017-08-24T01:44:13.000Z | 2022-02-18T16:05:40.000Z | src/share.cpp | voidluffy/ipmsg342r2src | 2134d79fca21f0d434a8561fed873c9a3753339e | [
"X11",
"Unlicense"
] | null | null | null | src/share.cpp | voidluffy/ipmsg342r2src | 2134d79fca21f0d434a8561fed873c9a3753339e | [
"X11",
"Unlicense"
] | 29 | 2017-08-24T01:44:14.000Z | 2022-02-06T11:57:37.000Z | static char *share_id =
"@(#)Copyright (C) H.Shirouzu 2002-2012 share.cpp Ver3.40";
/* ========================================================================
Project Name : IP Messenger for Win32
Module Name : File Share
Create : 2002-04-14(Sun)
Update : 2012-04-02(Mon)
Copyright : H.Shirou... | 25.889518 | 175 | 0.664186 | voidluffy |
73c84c2fe0155d21d7059938330e44fa3668c6df | 8,887 | cc | C++ | paddle/fluid/operators/detection_map_op.cc | yucheng20170406/Paddle | e91fa1741be58899a58e55f3f1625a51fd95aba0 | [
"Apache-2.0"
] | null | null | null | paddle/fluid/operators/detection_map_op.cc | yucheng20170406/Paddle | e91fa1741be58899a58e55f3f1625a51fd95aba0 | [
"Apache-2.0"
] | 3 | 2018-04-11T10:25:51.000Z | 2018-04-12T01:17:22.000Z | paddle/fluid/operators/detection_map_op.cc | zhaofenqiang/PaddleOnACL | e543af14589e2311ae2f3f6c9887b537d2048666 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2018 PaddlePaddle 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... | 45.341837 | 80 | 0.62507 | yucheng20170406 |
73c86456ccc0491f3519f68c2cb39c89001f7ad1 | 3,021 | cpp | C++ | src/ImathTest/testToFloat.cpp | methodstudios/Imath | 64810ce8ca9d980f1b397d895d20ad8d284f68ad | [
"BSD-3-Clause"
] | 1 | 2021-01-10T16:32:43.000Z | 2021-01-10T16:32:43.000Z | src/ImathTest/testToFloat.cpp | oxt3479/Imath | 39c31ca077ab76a854c70f0d6810fb36eed37d73 | [
"BSD-3-Clause"
] | null | null | null | src/ImathTest/testToFloat.cpp | oxt3479/Imath | 39c31ca077ab76a854c70f0d6810fb36eed37d73 | [
"BSD-3-Clause"
] | null | null | null | //
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenEXR Project.
//
#ifdef NDEBUG
# undef NDEBUG
#endif
#include <assert.h>
#include <cmath>
#include <half.h>
#include <iomanip>
#include <iostream>
using namespace std;
//
// This test uses the code that generates the toFLoat.h header... | 18.309091 | 77 | 0.42337 | methodstudios |
73c86ddec0d10caf6ddf2f679312fa5aca183b13 | 1,160 | cpp | C++ | Lab10&11/a1.cpp | dipsonu10/OOPsLabClass | 231e608e7301c4802e24de9d5541e435e2f620d3 | [
"MIT"
] | null | null | null | Lab10&11/a1.cpp | dipsonu10/OOPsLabClass | 231e608e7301c4802e24de9d5541e435e2f620d3 | [
"MIT"
] | null | null | null | Lab10&11/a1.cpp | dipsonu10/OOPsLabClass | 231e608e7301c4802e24de9d5541e435e2f620d3 | [
"MIT"
] | null | null | null | /*WAP in C++ which will overload the Binary Operator (+) where the program will add two
Array, store in the resultant array and display the same using member function.*/
#include <iostream>
using namespace std;
class Addition {
public:
int *arr;
int size;
Addition(int S) : size(S) {
arr = new int[... | 19.333333 | 87 | 0.516379 | dipsonu10 |
73c9da8cae3e8e3e636dcdb0440aaa4b9f0e541b | 11,561 | cpp | C++ | code/Core/MDMA_core/src/UI/zoneeditor.cpp | Amxx/MDMA | 3be4269e252712081c70522f2af56463da5ac868 | [
"CECILL-B"
] | 1 | 2022-01-17T06:39:22.000Z | 2022-01-17T06:39:22.000Z | code/Core/MDMA_core/src/UI/zoneeditor.cpp | Amxx/MDMA | 3be4269e252712081c70522f2af56463da5ac868 | [
"CECILL-B"
] | null | null | null | code/Core/MDMA_core/src/UI/zoneeditor.cpp | Amxx/MDMA | 3be4269e252712081c70522f2af56463da5ac868 | [
"CECILL-B"
] | null | null | null | #include "zoneeditor.h"
#include "ui_zoneeditor.h"
#include <QDebug>
ZoneEditor::ZoneEditor(Zone& zn, QWidget *parent) :
QDialog(parent),
ui(new Ui::ZoneEditor),
_zn(zn)
{
ui->setupUi(this);
ui->lineEdit_name->setText(_zn._name);
ui->comboBox_tab->setCurrentIndex(_zn._tab);
ui->tabWidget_type->setCurrentIndex... | 38.795302 | 117 | 0.636969 | Amxx |
73ca5dfab71e0b17d2d290fcc37b81b02ad760ab | 2,786 | cpp | C++ | ontheline.cpp | hiratake26to/tg_ontheline | e471378eff39ea1fd134d0f155a6f159a30462b3 | [
"CECILL-B"
] | null | null | null | ontheline.cpp | hiratake26to/tg_ontheline | e471378eff39ea1fd134d0f155a6f159a30462b3 | [
"CECILL-B"
] | null | null | null | ontheline.cpp | hiratake26to/tg_ontheline | e471378eff39ea1fd134d0f155a6f159a30462b3 | [
"CECILL-B"
] | null | null | null | /**
* license is free
* \file ontheline.cpp
* \author hiratake26to@gmail.com
* \date 2017-10-11 JST
*/
#include <iostream>
#include <boost/numeric/ublas/vector.hpp>
/**
* \brief mouse pointer is on the line
* \param xa x of equipment A
* \param ya y of equipment A
* \param xb x of equipment B
* \pa... | 28.721649 | 72 | 0.548457 | hiratake26to |
73d13975c3f512ef80c422d1ee19e29ff4324e48 | 1,094 | cpp | C++ | solutions/1285/competition.cpp | buptlxb/hihoCoder | 1995bdfda29d4dab98c002870ef0bc138bc37ce7 | [
"Apache-2.0"
] | 44 | 2016-05-11T06:41:14.000Z | 2021-12-20T13:45:41.000Z | solutions/1285/competition.cpp | buptlxb/hihoCoder | 1995bdfda29d4dab98c002870ef0bc138bc37ce7 | [
"Apache-2.0"
] | null | null | null | solutions/1285/competition.cpp | buptlxb/hihoCoder | 1995bdfda29d4dab98c002870ef0bc138bc37ce7 | [
"Apache-2.0"
] | 10 | 2016-06-25T08:55:20.000Z | 2018-07-06T05:52:53.000Z | #include <iostream>
#include <vector>
#include <limits>
#include <algorithm>
using namespace std;
int solve(const vector<int> &levels, int m, int s, int t)
{
vector<vector<int>> dp(levels.size()+1, vector<int>(m+1, m+1));
dp[0].assign(m+1, 0);
for (int i = 1; i < dp.size(); ++i) {
int right = (lev... | 25.44186 | 71 | 0.442413 | buptlxb |
73d7da7130321a077a8613b99b8ac3f0bfa48458 | 23,357 | cpp | C++ | components/view/qtcomponentstableview_internal.cpp | jhupo/qt-components | e5797879f63d4fb544695d3abefb2a26767e86c5 | [
"MIT"
] | null | null | null | components/view/qtcomponentstableview_internal.cpp | jhupo/qt-components | e5797879f63d4fb544695d3abefb2a26767e86c5 | [
"MIT"
] | null | null | null | components/view/qtcomponentstableview_internal.cpp | jhupo/qt-components | e5797879f63d4fb544695d3abefb2a26767e86c5 | [
"MIT"
] | null | null | null | #include "qtcomponentstableview.h"
#include "qtcomponentstableview_internal.h"
#include "components/lib/qtcomponentstools.h"
#include "components/button/qtcomponentsbutton.h"
#include <QMouseEvent>
#include <QPainter>
#include <QCheckBox>
#include <QScrollBar>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <Q... | 30.936424 | 188 | 0.653765 | jhupo |
73d8338aff8e61fb924454a249948f1a31453eaf | 2,126 | cpp | C++ | Evil Space/Random.cpp | Cellyceos/Evil-Space | 0c153d07855aa7ae2bd5e47e7ae95d78ba01ee9d | [
"MIT"
] | null | null | null | Evil Space/Random.cpp | Cellyceos/Evil-Space | 0c153d07855aa7ae2bd5e47e7ae95d78ba01ee9d | [
"MIT"
] | null | null | null | Evil Space/Random.cpp | Cellyceos/Evil-Space | 0c153d07855aa7ae2bd5e47e7ae95d78ba01ee9d | [
"MIT"
] | 2 | 2020-03-29T12:32:51.000Z | 2021-03-14T09:18:32.000Z | #include "stdafx.h"
#include "Random.h"
using namespace std;
Random::Random()
{
SeedGeneration(GetTickCount());
}
Random::Random(int seed)
{
SeedGeneration(seed);
}
Random::~Random()
{
delete SeedArray;
}
void Random::SeedGeneration(int seed)
{
SeedArray = new int[56];
int num2 = 161803398 - abs(seed);
Seed... | 14.561644 | 75 | 0.596896 | Cellyceos |
73d90fb54691a16837998b12599c69282956f24f | 2,114 | cpp | C++ | src/xray/maya_animation/sources/sisl/s1350.cpp | ixray-team/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 3 | 2021-10-30T09:36:14.000Z | 2022-03-26T17:00:06.000Z | src/xray/maya_animation/sources/sisl/s1350.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | null | null | null | src/xray/maya_animation/sources/sisl/s1350.cpp | acidicMercury8/ixray-2.0 | 85c3a544175842323fc82f42efd96c66f0fc5abb | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:08.000Z | 2022-03-26T17:00:08.000Z | #include "pch.h"
#define S1350
#include "sislP.h"
#if defined(SISLNEEDPROTOTYPES)
void s1350(sisl_double ep[],sisl_double epar[],
int im,int idim,int ik,
SISLCurve **rc, int *jstat)
#else
void s1350(ep,epar,im,idim,ik,rc,jstat)
sisl_double ep[];
sisl_double epar[];
int im;
int idim;
... | 17.186992 | 89 | 0.486282 | ixray-team |
73da0859e3f717bfd9a9b7d5b02790781db4b14d | 5,013 | cpp | C++ | src/Domain/Creators/Cylinder.cpp | tomwlodarczyk/spectre | 086aaee002f2f07eb812cf17b8e1ba54052feb71 | [
"MIT"
] | null | null | null | src/Domain/Creators/Cylinder.cpp | tomwlodarczyk/spectre | 086aaee002f2f07eb812cf17b8e1ba54052feb71 | [
"MIT"
] | null | null | null | src/Domain/Creators/Cylinder.cpp | tomwlodarczyk/spectre | 086aaee002f2f07eb812cf17b8e1ba54052feb71 | [
"MIT"
] | 1 | 2019-01-03T21:47:04.000Z | 2019-01-03T21:47:04.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Domain/Creators/Cylinder.hpp"
#include <array>
#include <cmath>
#include <memory>
#include <unordered_map>
#include <vector>
#include "Domain/Creators/DomainCreator.hpp" // IWYU pragma: keep
#include "Domain/Domain.hpp"
#include "Domain... | 45.572727 | 79 | 0.620786 | tomwlodarczyk |
73dacf82bad5f57ee466d07246f547adced7b4e2 | 19 | cpp | C++ | Mantle/Source/mtlpch.cpp | AiManti1/Graphics | 050816bf16202b09440412314338373a4d0d6c04 | [
"Apache-2.0"
] | null | null | null | Mantle/Source/mtlpch.cpp | AiManti1/Graphics | 050816bf16202b09440412314338373a4d0d6c04 | [
"Apache-2.0"
] | null | null | null | Mantle/Source/mtlpch.cpp | AiManti1/Graphics | 050816bf16202b09440412314338373a4d0d6c04 | [
"Apache-2.0"
] | null | null | null | #include "mtlpch.h" | 19 | 19 | 0.736842 | AiManti1 |
73de25216439e8b17bb864db8dcabf0326775582 | 6,610 | hpp | C++ | posu/units/system/si/length.hpp | zhu48/posu | 4872bd7572485c1c352aaf5db7a99d578a682113 | [
"MIT"
] | null | null | null | posu/units/system/si/length.hpp | zhu48/posu | 4872bd7572485c1c352aaf5db7a99d578a682113 | [
"MIT"
] | 33 | 2020-12-14T02:50:22.000Z | 2022-03-08T03:20:15.000Z | posu/units/system/si/length.hpp | zhu48/posu | 4872bd7572485c1c352aaf5db7a99d578a682113 | [
"MIT"
] | null | null | null | #ifndef POSU_UNITS_SI_LENGTH_HPP
#define POSU_UNITS_SI_LENGTH_HPP
#include "posu/units/base_unit.hpp"
#include "posu/units/system/length.hpp"
namespace posu::units::si {
struct length : public posu::units::length {
using type = length;
using kind_type = posu::units::length;
using pe... | 45.586207 | 96 | 0.626929 | zhu48 |
73e0230b560b6ddb53e4e17bac6c277a9bb535d4 | 5,264 | cpp | C++ | rpgtools/common/util.cpp | lfairy/rpgtools | ccfa607e93c85db062185d8ca85d0f637f00c2fa | [
"MIT"
] | null | null | null | rpgtools/common/util.cpp | lfairy/rpgtools | ccfa607e93c85db062185d8ca85d0f637f00c2fa | [
"MIT"
] | null | null | null | rpgtools/common/util.cpp | lfairy/rpgtools | ccfa607e93c85db062185d8ca85d0f637f00c2fa | [
"MIT"
] | null | null | null | #include "util.h"
#if defined OS_W32
#include <shellapi.h>
#elif defined OS_UNIX
#include <sys/types.h>
#include <sys/stat.h>
#include <ftw.h>
#include <dirent.h>
#include <unistd.h>
#endif
#include <stdexcept>
#include <algorithm>
#include <cassert>
namespace Util
{
/* PRIVATE FUNCS */
static inline bool isDotOrDot... | 23.605381 | 111 | 0.615502 | lfairy |
73e053b5d6f73d41552c65e5a4176f8332d9a4a2 | 6,381 | cc | C++ | Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/audio_processing/transient/file_utils.cc | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/audio_processing/transient/file_utils.cc | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/addon/_old/webrtc-qt5.11.2_for_boss/modules/audio_processing/transient/file_utils.cc | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2013 The WebRTC 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 contribut... | 24.637066 | 120 | 0.605861 | Yash-Wasalwar-07 |
73e1017d4be186a4865b9335a395010020a78fad | 685 | cpp | C++ | thinking-in-cpp/code/2-6-algorithm2.cpp | liphx/cplusplus | 65df073dc92fa58947e5ff728fc63db839e12760 | [
"MIT"
] | null | null | null | thinking-in-cpp/code/2-6-algorithm2.cpp | liphx/cplusplus | 65df073dc92fa58947e5ff728fc63db839e12760 | [
"MIT"
] | null | null | null | thinking-in-cpp/code/2-6-algorithm2.cpp | liphx/cplusplus | 65df073dc92fa58947e5ff728fc63db839e12760 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
template<typename T>
void print(vector<T>& data){
for(auto x: data){
cout << x << " ";
}
cout << endl;
}
int main()
{
vector<int>data(10);
//填充
fill(data.begin(), data.end(), 7);
print(data);
//=>7 ... | 19.027778 | 69 | 0.50219 | liphx |
73e2f14b884ec309789055c7348f945d1c8a5466 | 9,390 | cpp | C++ | robot-server/videocontrol.cpp | LejuRobotics/Aelos-Vision-Demo | 0b4ad1338bd018e8107533a7164d00442ff1d394 | [
"Apache-2.0"
] | 6 | 2018-10-23T07:28:35.000Z | 2020-02-06T02:19:40.000Z | robot-server/videocontrol.cpp | LejuRobotics/Aelos-Vision-Demo | 0b4ad1338bd018e8107533a7164d00442ff1d394 | [
"Apache-2.0"
] | null | null | null | robot-server/videocontrol.cpp | LejuRobotics/Aelos-Vision-Demo | 0b4ad1338bd018e8107533a7164d00442ff1d394 | [
"Apache-2.0"
] | 3 | 2018-12-25T08:34:15.000Z | 2020-04-16T07:03:00.000Z | /**
* @file VideoControl.cpp
* @version 1.0
* @date 2017年07月08日
* @author C_Are
* @copyright Leju
*
* @brief 接收摄像头图像,VideoControl类的cpp文件
*/
#include "VideoControl.h"
/**
* @brief VideoControl类的构造函数
* @param parent 父对象
*/
VideoControl::VideoControl(QObject *parent) : QThrea... | 25.106952 | 117 | 0.54164 | LejuRobotics |
73e3e3c88e0da6f8ec8718532acb7b52c587f1ca | 45,577 | hpp | C++ | pgfe/connection.hpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 19 | 2019-07-21T15:38:12.000Z | 2022-01-06T05:24:48.000Z | pgfe/connection.hpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 6 | 2019-12-07T22:12:37.000Z | 2022-01-10T22:31:48.000Z | pgfe/connection.hpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 1 | 2019-08-15T14:49:00.000Z | 2019-08-15T14:49:00.000Z | // -*- C++ -*-
// Copyright (C) 2021 Dmitry Igrishin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// i... | 31.345942 | 128 | 0.647542 | dmitigr |
73e4e515deb920262768a606cf5fb5ae3e23cfd2 | 4,518 | hpp | C++ | crogine/include/crogine/graphics/DepthTexture.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | crogine/include/crogine/graphics/DepthTexture.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | crogine/include/crogine/graphics/DepthTexture.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017 - 2020
http://trederia.blogspot.com
crogine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of this ... | 34.48855 | 96 | 0.644754 | fallahn |
73e6085209d8051c08f3c08df5a994e9e1d7d8af | 2,901 | cpp | C++ | parse_stdin.cpp | Payshare/cpptoml | 5361e1c2eb2e00ac6566cfc973a1f9508f447b85 | [
"MIT"
] | 1 | 2015-07-01T19:19:51.000Z | 2015-07-01T19:19:51.000Z | parse_stdin.cpp | Payshare/cpptoml | 5361e1c2eb2e00ac6566cfc973a1f9508f447b85 | [
"MIT"
] | null | null | null | parse_stdin.cpp | Payshare/cpptoml | 5361e1c2eb2e00ac6566cfc973a1f9508f447b85 | [
"MIT"
] | null | null | null | #include "cpptoml.h"
#include <iostream>
#include <limits>
std::string escape_string(const std::string& str)
{
std::string res;
for (auto it = str.begin(); it != str.end(); ++it)
{
if (*it == '\\')
res += "\\\\";
else if (*it == '"')
res += "\\\"";
else if (... | 23.778689 | 77 | 0.403999 | Payshare |
73eabcb4063b9c47087a31a241b3dcca5309cafb | 2,331 | cpp | C++ | tinydui/base/kpopuptipwnd.cpp | haomiao/tinydui | e425d930a1045f99d9e407844a448c4a5c8c104d | [
"MIT"
] | null | null | null | tinydui/base/kpopuptipwnd.cpp | haomiao/tinydui | e425d930a1045f99d9e407844a448c4a5c8c104d | [
"MIT"
] | null | null | null | tinydui/base/kpopuptipwnd.cpp | haomiao/tinydui | e425d930a1045f99d9e407844a448c4a5c8c104d | [
"MIT"
] | null | null | null | #include "kpch.h"
#include "kpopuptipwnd.h"
namespace TinyDui
{
KPopupTipWnd::KPopupTipWnd()
{
}
KPopupTipWnd::~KPopupTipWnd()
{
ReleaseResources();
}
LRESULT KPopupTipWnd::OnPaint(WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
if (!(m_hWnd && ::IsWindow(m_hWnd)))
{
return 0;
}
RECT... | 17.139706 | 81 | 0.673531 | haomiao |
73ee26f17719fc968feaee5afd906e1b63fe2489 | 46,486 | cc | C++ | facerecognitionlibrary/jni-build/jni/genfiles/tensorflow/core/framework/device_attributes.pb.cc | ikaee/bfr-attendant | 15e5a00d0dcb39b2903988658e3424b19bbc5a9f | [
"Apache-2.0"
] | 5 | 2018-03-22T06:56:15.000Z | 2018-09-04T02:41:35.000Z | facerecognitionlibrary/jni-build/jni/genfiles/tensorflow/core/framework/device_attributes.pb.cc | ikaee/bfr-attendant | 15e5a00d0dcb39b2903988658e3424b19bbc5a9f | [
"Apache-2.0"
] | null | null | null | facerecognitionlibrary/jni-build/jni/genfiles/tensorflow/core/framework/device_attributes.pb.cc | ikaee/bfr-attendant | 15e5a00d0dcb39b2903988658e3424b19bbc5a9f | [
"Apache-2.0"
] | 2 | 2018-05-16T10:40:26.000Z | 2020-08-25T09:05:23.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensorflow/core/framework/device_attributes.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "tensorflow/core/framework/device_attributes.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/pro... | 37.855049 | 122 | 0.730456 | ikaee |
73f03a35bda1f124aacf91743b48f77502f19440 | 1,147 | cpp | C++ | leetcode/30days-challenge/202004/day4.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/30days-challenge/202004/day4.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/30days-challenge/202004/day4.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Example:
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
Note:
You must do this in-place without making a copy of the array.
Minimize the total number of operations.
*/
class... | 29.410256 | 133 | 0.530078 | wingkwong |
73f978f5dfe772de0c40a955b1b0e7a17bfee469 | 26,817 | hpp | C++ | hpx/runtime/threads/threadmanager_impl.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/runtime/threads/threadmanager_impl.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/runtime/threads/threadmanager_impl.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2013 Hartmut Kaiser
// Copyright (c) 2007-2009 Chirag Dekate, Anshul Tandon
// Copyright (c) 2011 Bryce Lelbach, Katelyn Kufahl
//
// 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)
#if... | 48.318919 | 95 | 0.594175 | andreasbuhr |
73fac5c56124e8d75dc9e1a5febabce4a7852710 | 334 | cpp | C++ | region/region.cpp | lhb8125/unstructured_frame | 3f28879cd7eb69e5fd9d5e812b6b36b6186125fe | [
"Apache-2.0"
] | null | null | null | region/region.cpp | lhb8125/unstructured_frame | 3f28879cd7eb69e5fd9d5e812b6b36b6186125fe | [
"Apache-2.0"
] | null | null | null | region/region.cpp | lhb8125/unstructured_frame | 3f28879cd7eb69e5fd9d5e812b6b36b6186125fe | [
"Apache-2.0"
] | null | null | null | /**
* @file:
* @author: Liu Hongbin
* @brief:
* @date: 2019-10-14 09:17:17
* @last Modified by: lenovo
* @last Modified time: 2019-10-14 09:18:49
*/
// #include "mesh.hpp"
// class Region
// {
// private:
// Mesh mesh;
// public:
// Region();
// ~Region();
// Mesh& getMesh(){return this->mes... | 16.7 | 43 | 0.526946 | lhb8125 |
73fcf2f85d42915ba9de15163c6b23342d346fad | 4,576 | hxx | C++ | include/graphics/nxglyphs.hxx | normanr/incubator-nuttx-apps | b5128c401f5c65f44298f46c3887d6bb57bfb90b | [
"Apache-2.0"
] | 132 | 2019-12-17T23:45:42.000Z | 2022-03-30T11:58:30.000Z | include/graphics/nxglyphs.hxx | normanr/incubator-nuttx-apps | b5128c401f5c65f44298f46c3887d6bb57bfb90b | [
"Apache-2.0"
] | 443 | 2020-01-01T03:06:24.000Z | 2022-03-31T08:57:35.000Z | include/graphics/nxglyphs.hxx | normanr/incubator-nuttx-apps | b5128c401f5c65f44298f46c3887d6bb57bfb90b | [
"Apache-2.0"
] | 232 | 2019-12-21T10:18:12.000Z | 2022-03-30T07:42:13.000Z | /****************************************************************************
* apps/include/graphics/nxwidgets/nxglyphs.hxx
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regardin... | 38.133333 | 78 | 0.697771 | normanr |
bab69cdfaa6c8515085cc9906a64d42e9ea76d0b | 3,131 | hpp | C++ | or-tools_Ubuntu-18.04-64bit_v7.4.7247/include/coin/CbcPartialNodeInfo.hpp | rajiff/docker-google-or-tools | b7a6c730639c5b47857925de9cf673b456cb4390 | [
"Apache-2.0"
] | 7 | 2020-07-04T01:50:12.000Z | 2021-06-03T21:54:52.000Z | PO_class/assignment_2/or-tools/include/coin/CbcPartialNodeInfo.hpp | ItamarRocha/Operations-Research | 55c4d54959555c3b9d54641e76eb6cfb2c011a2c | [
"MIT"
] | null | null | null | PO_class/assignment_2/or-tools/include/coin/CbcPartialNodeInfo.hpp | ItamarRocha/Operations-Research | 55c4d54959555c3b9d54641e76eb6cfb2c011a2c | [
"MIT"
] | null | null | null | // $Id$
// Copyright (C) 2002, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
// Edwin 11/24/09 carved from CbcNode
#ifndef CbcPartialNodeInfo_H
#define CbcPartialNodeInfo_H
#include <string>
#include <vec... | 26.760684 | 94 | 0.743213 | rajiff |
babbdc2315384ab392cf45f677c3cb02996c91c1 | 1,747 | cpp | C++ | 8. Backtracking/SubsetSUM.cpp | Vipulhere/DAA_CodingNinjas | 526ff9e5fa87cbc24666c1fb39d4861306d51ab6 | [
"MIT"
] | 2 | 2022-02-06T16:48:37.000Z | 2022-02-17T12:20:09.000Z | 8. Backtracking/SubsetSUM.cpp | Vipulhere/DAA_CodingNinjas | 526ff9e5fa87cbc24666c1fb39d4861306d51ab6 | [
"MIT"
] | null | null | null | 8. Backtracking/SubsetSUM.cpp | Vipulhere/DAA_CodingNinjas | 526ff9e5fa87cbc24666c1fb39d4861306d51ab6 | [
"MIT"
] | null | null | null | // #include <bits/stdc++.h>
// using namespace std;
// int subsetSum(int a[], int n, int sum)
// {
// // Initializing the matrix
// int tab[n + 1][sum + 1];
// // Initializing the first value of matrix
// tab[0][0] = 1;
// for (int i = 1; i <= sum; i++)
// tab[0][i] = 0;
// fo... | 20.797619 | 73 | 0.39668 | Vipulhere |
bac2b0e7804bb879c61a4aac7ced3a9f390c5c29 | 1,793 | cpp | C++ | lib/chainInsert.cpp | deltaclock/Trip_chooser | d663cfaf04fc126e6b24c2fa9cbf9cfed4d2c19a | [
"MIT"
] | null | null | null | lib/chainInsert.cpp | deltaclock/Trip_chooser | d663cfaf04fc126e6b24c2fa9cbf9cfed4d2c19a | [
"MIT"
] | null | null | null | lib/chainInsert.cpp | deltaclock/Trip_chooser | d663cfaf04fc126e6b24c2fa9cbf9cfed4d2c19a | [
"MIT"
] | null | null | null | #include "chain.hpp"
template <class T> Chain<T> &Chain<T>::Insert(int k, const T &x) {
// Insert x after the k'th element.
// Throw OutOfBounds exception if no k'th element.
// Pass NoMem exception if inadequate space.
if (k < 0)
throw std::out_of_range("Negative value..!!");
// p will eventually point ... | 26.367647 | 66 | 0.525934 | deltaclock |
bac5b7ab0c99d8806c7684fbe8b7b930fa3904eb | 13,580 | cpp | C++ | src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp | Jerry-2005/Fast-DDS | 60aa927778fc028c60970a08309dc3510455a166 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp | Jerry-2005/Fast-DDS | 60aa927778fc028c60970a08309dc3510455a166 | [
"Apache-2.0"
] | null | null | null | src/cpp/rtps/builtin/discovery/endpoint/EDPStatic.cpp | Jerry-2005/Fast-DDS | 60aa927778fc028c60970a08309dc3510455a166 | [
"Apache-2.0"
] | 1 | 2021-06-02T11:16:56.000Z | 2021-06-02T11:16:56.000Z | // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 35.549738 | 118 | 0.593888 | Jerry-2005 |
bac68912a6bea7516b356b3c7833ca646a3046a1 | 2,605 | cpp | C++ | src/Applications/Application_Enable_Light_Mode/Application_Enable_Light_Mode.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | 21 | 2020-03-04T17:38:14.000Z | 2022-03-07T02:46:39.000Z | src/Applications/Application_Enable_Light_Mode/Application_Enable_Light_Mode.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | null | null | null | src/Applications/Application_Enable_Light_Mode/Application_Enable_Light_Mode.cpp | gammasoft71/Examples_FLTK | 7d8f11d5da25f7279834d3730732d07e91591f7c | [
"MIT"
] | 6 | 2021-03-12T20:57:00.000Z | 2022-03-31T23:19:03.000Z | #include <initializer_list>
#include <map>
#include <string>
#include <FL/Fl.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Browser.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Choice.H>
#include <FL/Fl_Check_Button.H>
#include <FL/fl_draw.H>
#include <FL/fl_message.H>
#include <FL/Fl_Radio_Round_Button.H>
#include <FL/Fl_W... | 32.5625 | 135 | 0.647985 | gammasoft71 |
bac6fdf60707dbf2946f98bf073414e3912b685a | 8,709 | cc | C++ | tonic-suite/asr/src/gmmbin/gmm-latgen-map.cc | csb1024/djinn_csb | de50d6b6bc9c137e9f4b881de9048eba9e83142d | [
"BSD-3-Clause"
] | 59 | 2015-07-01T21:41:47.000Z | 2021-07-28T07:07:42.000Z | tonic-suite/asr/src/gmmbin/gmm-latgen-map.cc | csb1024/djinn_csb | de50d6b6bc9c137e9f4b881de9048eba9e83142d | [
"BSD-3-Clause"
] | 4 | 2016-01-24T13:25:03.000Z | 2021-07-06T09:10:23.000Z | tonic-suite/asr/src/gmmbin/gmm-latgen-map.cc | csb1024/djinn_csb | de50d6b6bc9c137e9f4b881de9048eba9e83142d | [
"BSD-3-Clause"
] | 54 | 2015-06-13T15:31:20.000Z | 2021-07-28T07:07:43.000Z | // gmmbin/gmm-latgen-map.cc
// Copyright 2012 Neha Agrawal, Cisco Systems;
// Johns Hopkins University (author: Daniel Povey)
// 2014 Guoguo Chen
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you m... | 37.217949 | 80 | 0.616489 | csb1024 |
bac88505a3020f47c8babc96ea0ca71095a3b909 | 3,073 | cc | C++ | src/Dataflow/Network/PortInterface.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 92 | 2015-02-09T22:42:11.000Z | 2022-03-25T09:14:50.000Z | src/Dataflow/Network/PortInterface.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 1,618 | 2015-01-05T19:39:13.000Z | 2022-03-27T20:28:45.000Z | src/Dataflow/Network/PortInterface.cc | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | 64 | 2015-02-20T17:51:23.000Z | 2021-11-19T07:08:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | 28.990566 | 129 | 0.739017 | Haydelj |
bac98996ba05d5e8c6736ff31706070d537a5b95 | 548 | cc | C++ | ch03/sigmoid/main/main.cc | research-note/deep-learning-from-scratch-using-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | 2 | 2021-08-15T12:38:41.000Z | 2021-08-15T12:38:51.000Z | ch03/sigmoid/main/main.cc | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | ch03/sigmoid/main/main.cc | research-note/deep-learning-from-scratch-using-modern-cpp | 5e11be85fa9c4c7672ce9c3ea2c5ffa8f27defd1 | [
"MIT"
] | null | null | null | /c *
* Build executable object file liking with cc_library lib file example.
*
* Copyright Bazel organization
*
*/
#include "lib/hello-time.h"
#include "main/sigmoid.hpp"
#include <iostream>
#include <string>
int main(int argc, char** argv) {
double x = -5.5, y = 4.3;
if (argc > 2) {
x = *argv[1... | 21.076923 | 72 | 0.556569 | research-note |
bacd541c66319b366a947154f517e59a28aaa11e | 1,667 | cpp | C++ | source/engine/input/service/input_service.cpp | Coeurou/kairos_engine | b02eb302d7470d5f29b6ae342b2236dddaae91ea | [
"CC0-1.0"
] | null | null | null | source/engine/input/service/input_service.cpp | Coeurou/kairos_engine | b02eb302d7470d5f29b6ae342b2236dddaae91ea | [
"CC0-1.0"
] | null | null | null | source/engine/input/service/input_service.cpp | Coeurou/kairos_engine | b02eb302d7470d5f29b6ae342b2236dddaae91ea | [
"CC0-1.0"
] | null | null | null | #include <input/service/input_service.h>
#include <input/service/detail/input_service_helpers.h>
namespace kairos {
/** Member functions */
result<uint32> input_service::enable(input_device device) {
if (detail::enable(device)) {
return result<uint32>(EXIT_SUCCESS);
}
else {
r... | 32.686275 | 82 | 0.590282 | Coeurou |
bacde35bc59c9f200dcb533630ded58054f0548e | 1,373 | hpp | C++ | syswatcher/util/traverse.hpp | Jim-CodeHub/syswatcher | 57aa62c54fc1e5ab7b158e205ad0026631dc845a | [
"Apache-2.0"
] | null | null | null | syswatcher/util/traverse.hpp | Jim-CodeHub/syswatcher | 57aa62c54fc1e5ab7b158e205ad0026631dc845a | [
"Apache-2.0"
] | null | null | null | syswatcher/util/traverse.hpp | Jim-CodeHub/syswatcher | 57aa62c54fc1e5ab7b158e205ad0026631dc845a | [
"Apache-2.0"
] | null | null | null |
/**-----------------------------------------------------------------------------------------------------------------
* @file traverse.hpp
*
* Copyright (c) 2020-2020 Jim Zhang 303683086@qq.com
*------------------------------------------------------------------------------------------------------------------
*/
#... | 25.425926 | 116 | 0.187181 | Jim-CodeHub |
bad735d6bf40a4c3a5a6d13a499703070d4316ff | 23 | cpp | C++ | clWrapper/clWrapper/clContext.cpp | JJPPeters/clWrapper | c8528d0c264bb4faf17b678f299dd3aa0e194141 | [
"MIT"
] | 1 | 2017-08-24T21:55:31.000Z | 2017-08-24T21:55:31.000Z | clWrapper/clWrapper/clContext.cpp | JJPPeters/clWrapper | c8528d0c264bb4faf17b678f299dd3aa0e194141 | [
"MIT"
] | null | null | null | clWrapper/clWrapper/clContext.cpp | JJPPeters/clWrapper | c8528d0c264bb4faf17b678f299dd3aa0e194141 | [
"MIT"
] | 1 | 2019-03-03T10:12:55.000Z | 2019-03-03T10:12:55.000Z | #include "clContext.h"
| 11.5 | 22 | 0.73913 | JJPPeters |
bad94f77d7514bc071b05cce93095a29327f2b82 | 6,677 | hpp | C++ | cpp/include/communication/ControlSettings.hpp | skydiveuas/skydive | 6a3ddb20210c7feec93c2124c99a764e91f13701 | [
"MIT"
] | 2 | 2017-12-09T22:44:35.000Z | 2018-04-08T11:51:53.000Z | cpp/include/communication/ControlSettings.hpp | skydiveuas/skydive | 6a3ddb20210c7feec93c2124c99a764e91f13701 | [
"MIT"
] | 1 | 2018-04-08T12:15:23.000Z | 2018-04-08T12:15:23.000Z | cpp/include/communication/ControlSettings.hpp | skydiveuas/skydive | 6a3ddb20210c7feec93c2124c99a764e91f13701 | [
"MIT"
] | 1 | 2018-04-08T11:50:43.000Z | 2018-04-08T11:50:43.000Z | // =========== roboLib ============
// === *** BARTOSZ NAWROT *** ===
// ================================
#ifndef __CONTROL_SETTINGS__
#define __CONTROL_SETTINGS__
#ifdef __SKYDIVE_USE_STL__
#include <string>
#include <vector>
#endif // __SKYDIVE_USE_STL__
#include "common/MathCore.hpp"
#include "ISignalPayloadM... | 28.054622 | 112 | 0.687584 | skydiveuas |
badb85fe1210ee5f1d614cd0b64b68f433c0a827 | 1,618 | cpp | C++ | Electronics/Firmware/src/Program/Lib_Chicago/Debug/cmd.cpp | magicmellon/ProjectNorthStar | a7ab09aac9810055639f099f5a53bb1cb5496fb8 | [
"Apache-2.0"
] | 2 | 2018-08-18T20:27:29.000Z | 2018-11-19T20:21:26.000Z | Electronics/Firmware/src/Program/Lib_Chicago/Debug/cmd.cpp | magicmellon/ProjectNorthStar | a7ab09aac9810055639f099f5a53bb1cb5496fb8 | [
"Apache-2.0"
] | null | null | null | Electronics/Firmware/src/Program/Lib_Chicago/Debug/cmd.cpp | magicmellon/ProjectNorthStar | a7ab09aac9810055639f099f5a53bb1cb5496fb8 | [
"Apache-2.0"
] | null | null | null | /**
* @file cmd.cpp
*
* @brief Chicago UART command line interpreter
*
* @copyright
* This library 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.0 of the License, or (at your option) any l... | 29.418182 | 79 | 0.513597 | magicmellon |
badc323034d5416a16415f766707873a1302ff53 | 2,604 | cc | C++ | bench/SpMMFP32Benchmark.cc | menchunlei/FBGEMM | 588ecfcca3d83186461554cd28dedc41532d75b4 | [
"BSD-3-Clause"
] | null | null | null | bench/SpMMFP32Benchmark.cc | menchunlei/FBGEMM | 588ecfcca3d83186461554cd28dedc41532d75b4 | [
"BSD-3-Clause"
] | null | null | null | bench/SpMMFP32Benchmark.cc | menchunlei/FBGEMM | 588ecfcca3d83186461554cd28dedc41532d75b4 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 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 "bench/BenchUtils.h"
#include "fbgemm/FbgemmSpMM.h"
#include <iostream>
using namespace std;
u... | 29.258427 | 80 | 0.541859 | menchunlei |
bae057a39f0c8f59cb74cc9176e0361d754d51a0 | 251 | cpp | C++ | apps/bjt/main.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 1 | 2021-09-14T06:12:58.000Z | 2021-09-14T06:12:58.000Z | apps/bjt/main.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | null | null | null | apps/bjt/main.cpp | Brillist/libutl | e55c2af091ba1101a1d0608db2830e279ec95d16 | [
"MIT"
] | 2 | 2019-05-13T23:04:31.000Z | 2021-09-14T06:12:59.000Z | #include "common.h"
#include <libutl/BufferedFDstream.h>
#include "BlackjackTrainer.h"
#include <libutl/Exception.h>
////////////////////////////////////////////////////////////////////////////////////////////////////
UTL_MAIN_RL(BlackjackTrainer);
| 27.888889 | 100 | 0.47012 | Brillist |
bae1d9d124b9b6db2cf54232dc5c732fc63e2a39 | 4,880 | hpp | C++ | include/nix/Feature.hpp | cgars/nix | 0bc4c32f173d2d34e19d1a02ee1e0183551bf160 | [
"BSD-3-Clause"
] | null | null | null | include/nix/Feature.hpp | cgars/nix | 0bc4c32f173d2d34e19d1a02ee1e0183551bf160 | [
"BSD-3-Clause"
] | null | null | null | include/nix/Feature.hpp | cgars/nix | 0bc4c32f173d2d34e19d1a02ee1e0183551bf160 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE file in the root of the Project.
#ifndef NIX_FEATURE_H
#define NIX_FEATURE_H... | 25.549738 | 106 | 0.609631 | cgars |
bae701112f00025e9cb3484bdc0a4517e95331d3 | 6,621 | cc | C++ | xapian/xapian-core-1.2.13/expand/ortermlist.cc | NeoYY/tailbench-v0.9 | cf9849c3e8c407199f25b4710c06fb8c4e2ff025 | [
"MIT"
] | 2 | 2021-01-13T21:17:42.000Z | 2021-01-13T21:17:42.000Z | xapian/xapian-core-1.2.13/expand/ortermlist.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | xapian/xapian-core-1.2.13/expand/ortermlist.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | /** @file ortermlist.cc
* @brief Merge two TermList objects using an OR operation.
*/
/* Copyright (C) 2007,2010 Olly Betts
*
* 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... | 27.5875 | 104 | 0.685697 | NeoYY |
bae81855c27b08a3e568512e0c2600a9c5c5e0bb | 1,130 | cpp | C++ | license-server/serverapp/appconfig_reader.cpp | stallion5632/license-services | e46be0a89fdee4037aa8804411b6ec135ce25887 | [
"MIT"
] | 1 | 2022-01-02T13:14:05.000Z | 2022-01-02T13:14:05.000Z | license-server/serverapp/appconfig_reader.cpp | stallion5632/license-services | e46be0a89fdee4037aa8804411b6ec135ce25887 | [
"MIT"
] | null | null | null | license-server/serverapp/appconfig_reader.cpp | stallion5632/license-services | e46be0a89fdee4037aa8804411b6ec135ce25887 | [
"MIT"
] | 1 | 2021-06-16T10:09:09.000Z | 2021-06-16T10:09:09.000Z | #include "appconfig_reader.h"
#include "common.h"
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#include <boost/algorithm/string.hpp>
#include <iostream>
using namespace boost;
static const char *kAppConfigRoot = "server";
static const char *kDogCheckInterval = "DogCheckInterv... | 26.27907 | 64 | 0.760177 | stallion5632 |
baf5502ce60aae2b30afe33b1ecdf1a75ae7ea7f | 1,403 | hpp | C++ | src/integrator/direct.hpp | jkrueger/phosphorus | e36d3c4b81b4327a983469116f066fdeefc9104e | [
"MIT"
] | null | null | null | src/integrator/direct.hpp | jkrueger/phosphorus | e36d3c4b81b4327a983469116f066fdeefc9104e | [
"MIT"
] | null | null | null | src/integrator/direct.hpp | jkrueger/phosphorus | e36d3c4b81b4327a983469116f066fdeefc9104e | [
"MIT"
] | null | null | null | #pragma once
#include "math/ray.hpp"
#include "math/sampling.hpp"
#include "shading.hpp"
#include "thing.hpp"
#include "things/scene.hpp"
#include "util/color.hpp"
struct direct_t {
const uint32_t spd;
const uint32_t samples;
sample_t uv[9];
direct_t(uint32_t spd)
: spd(spd)
, samples(spd*spd) {
... | 23 | 62 | 0.634355 | jkrueger |
bafa42994ecccd1cd33714577c2ff9cf04bd19b3 | 5,558 | cpp | C++ | CENTRAL 3D/Source/Quadtree.cpp | AitorSimona/3DEngines | 01700230b4733e6976fb14971dcc835374f8db12 | [
"MIT"
] | 2 | 2020-01-20T12:28:42.000Z | 2020-05-10T23:06:58.000Z | CENTRAL 3D/Source/Quadtree.cpp | AitorSimona/3DEngines | 01700230b4733e6976fb14971dcc835374f8db12 | [
"MIT"
] | 3 | 2020-01-20T13:15:28.000Z | 2020-04-07T10:53:53.000Z | CENTRAL 3D/Source/Quadtree.cpp | AitorSimona/3DEngines | 01700230b4733e6976fb14971dcc835374f8db12 | [
"MIT"
] | 4 | 2019-10-22T20:56:48.000Z | 2021-01-10T14:24:43.000Z | #include "Globals.h"
#include "GameObject.h"
#include "ComponentTransform.h"
#include "QuadTree.h"
#include "mmgr/mmgr.h"
// --- All child indexes ---
#define NET 0
#define SET 1
#define SWT 2
#define NWT 3
#define NEB 4
#define SEB 5
#define SWB 6
#define NWB 7
// --- Max items before subdividing ---
#define QUADTR... | 21.796078 | 130 | 0.639259 | AitorSimona |
bafd0582987553bc920b0542043507875d9298a5 | 8,623 | cpp | C++ | testbed/tests/maxwell.cpp | Hexlord/box2d | 57722e8c0aee124545b6fe67f82f8d64e2117d2b | [
"MIT"
] | 1 | 2020-09-19T08:19:28.000Z | 2020-09-19T08:19:28.000Z | testbed/tests/maxwell.cpp | Hexlord/box2d | 57722e8c0aee124545b6fe67f82f8d64e2117d2b | [
"MIT"
] | null | null | null | testbed/tests/maxwell.cpp | Hexlord/box2d | 57722e8c0aee124545b6fe67f82f8d64e2117d2b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014 Google, Inc.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
* Permission is granted to anyone to use this software for any purpose,
* including commercial appl... | 26.946875 | 145 | 0.714137 | Hexlord |
bafd6e1299e4cb0aa407b83651decc6163ec81e2 | 7,341 | hpp | C++ | types/IntervalParser.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | types/IntervalParser.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | types/IntervalParser.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 44.762195 | 85 | 0.690505 | Hacker0912 |
24001aec762f9bde541ba37c76e5da251fa3df71 | 2,196 | cpp | C++ | Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Renderable/VWRenderable.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 3 | 2018-04-09T13:01:07.000Z | 2021-03-18T12:28:48.000Z | Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Renderable/VWRenderable.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | null | null | null | Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Renderable/VWRenderable.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 1 | 2021-03-18T12:28:50.000Z | 2021-03-18T12:28:50.000Z | ////////////////////////////////////////////////////////////////////////////////
// Filename: FluxMyWrapper.cpp
////////////////////////////////////////////////////////////////////////////////
#include "VWRenderable.h"
#include "..\Context\VWContext.h"
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc... | 24.131868 | 183 | 0.679872 | RodrigoHolztrattner |
2409a5957203e4bb6d2e3f1aaa021a5812b3b38f | 17,038 | cxx | C++ | Modules/Filtering/LabelMap/test/itkShapeLabelMapFilterGTest.cxx | Kronephon/itktest | a34e46226638c08bba315a257e33550a68203d97 | [
"Apache-2.0"
] | null | null | null | Modules/Filtering/LabelMap/test/itkShapeLabelMapFilterGTest.cxx | Kronephon/itktest | a34e46226638c08bba315a257e33550a68203d97 | [
"Apache-2.0"
] | null | null | null | Modules/Filtering/LabelMap/test/itkShapeLabelMapFilterGTest.cxx | Kronephon/itktest | a34e46226638c08bba315a257e33550a68203d97 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... | 37.528634 | 131 | 0.71276 | Kronephon |
240b8e6fcc249e9d7c79b9ebc01e0dcef1f26730 | 2,135 | cpp | C++ | source/aufgabe2bis4.cpp | philbranding/programmiersprachen-aufgabenblatt-3 | d8b8426fa290ab5ae048749ca11982454e031a2b | [
"MIT"
] | null | null | null | source/aufgabe2bis4.cpp | philbranding/programmiersprachen-aufgabenblatt-3 | d8b8426fa290ab5ae048749ca11982454e031a2b | [
"MIT"
] | null | null | null | source/aufgabe2bis4.cpp | philbranding/programmiersprachen-aufgabenblatt-3 | d8b8426fa290ab5ae048749ca11982454e031a2b | [
"MIT"
] | null | null | null | # include <cstdlib> //std::rand()
# include <vector> //std::vector<>
# include <list> //std::list<>
# include <iostream> //std::cout
# include <iterator> //std::ostream_iterator<>
# include <algorithm> //std::reverse, std::generate
# include <set>
# include <map>
int main(){
std::list<unsigned int> mylist(100); //... | 28.851351 | 122 | 0.573302 | philbranding |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.