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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58afa5107ee38f491750a776226f9ccdf8dfb61d | 200 | cpp | C++ | Luogu/P1425.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | 1 | 2021-04-05T16:26:00.000Z | 2021-04-05T16:26:00.000Z | Luogu/P1425.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | Luogu/P1425.cpp | Rose2073/RoseCppSource | bdaf5de04049b07bbe0e1ef976d1fbe72520fa03 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
int main(){
int h1,m1,h2,m2;
scanf("%d %d %d %d",&h1,&m1,&h2,&m2);
int h3,m3;
m3 = m2 - m1;
if(m3 < 0){
h2--;
m3 += 60;
}
h3 = h2- h1;
printf("%d %d",h3,m3);
return 0;
}
| 13.333333 | 38 | 0.485 | Rose2073 |
58afa75cfb284311ac751d82a05cf59537ddbac7 | 26 | cpp | C++ | lang/Array2D.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | lang/Array2D.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | lang/Array2D.cpp | gizmomogwai/cpplib | a09bf4d3f2a312774d3d85a5c65468099a1797b0 | [
"MIT"
] | null | null | null | #include <lang/Array2D.h>
| 13 | 25 | 0.730769 | gizmomogwai |
58b065df3705499534e6437de4e626a7bab2cd13 | 5,231 | cpp | C++ | c++/extract_phone.cpp | isopleth/kinetics | b2954fecbe6b571fed53034cc88dc68e6455703a | [
"BSD-2-Clause"
] | null | null | null | c++/extract_phone.cpp | isopleth/kinetics | b2954fecbe6b571fed53034cc88dc68e6455703a | [
"BSD-2-Clause"
] | null | null | null | c++/extract_phone.cpp | isopleth/kinetics | b2954fecbe6b571fed53034cc88dc68e6455703a | [
"BSD-2-Clause"
] | null | null | null | // BSD 2-Clause License
//
// Copyright (c) 2019, Jason Leake
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, th... | 28.900552 | 95 | 0.652074 | isopleth |
58b1747958284c0ece6133fb6f452e5db3a30652 | 750 | cpp | C++ | sydney-2017-03-29/motivation1c.cpp | cjdb/cpp-conferences | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 3 | 2017-09-15T00:10:25.000Z | 2018-09-22T12:50:18.000Z | sydney-2017-03-29/motivation1c.cpp | cjdb/cppcon | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 1 | 2017-12-04T22:12:16.000Z | 2017-12-04T22:12:16.000Z | sydney-2017-03-29/motivation1c.cpp | cjdb/cppcon | bafe69cf11ca38451367553460e956cb52df3dd2 | [
"Apache-2.0"
] | 1 | 2017-12-04T10:50:54.000Z | 2017-12-04T10:50:54.000Z | #include <algorithm>
#include <iterator>
#include <iostream>
#include <type_traits>
#include <vector>
template <typename InputIterator, std::enable_if_t<
std::is_same<typename InputIterator::iterator_tag_t,
typename InputIterator::iterator_tag_t>::value,
int> = 0>
std::vector<double> make_vector(I... | 25 | 92 | 0.676 | cjdb |
58b1c412f971463564e3254bbb42efd0dd5684a5 | 1,491 | hh | C++ | Config.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | Config.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | Config.hh | cndolo/smart_pointers | 3586e06e609ddbea6faf3208e09ad40d7f554183 | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include <cstdint>
struct ImageConfig{
static uint64_t PHYS_BASE;
static size_t SIZE;
static uint64_t VIRT_BASE;
static uint64_t KERN_END;
static uint64_t physBase() { return ImageConfig::PHYS_BASE; }
static size_t size() { return ImageConfig::SIZE; }
static uint64_t virtBase() ... | 31.723404 | 74 | 0.744467 | cndolo |
58b5a1499ead2cc7ce06ce342361ef373820b9dc | 494 | cpp | C++ | nowcoder/80C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | nowcoder/80C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | nowcoder/80C.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 100020
#define mod 998244353
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
int main(int argc, char co... | 24.7 | 61 | 0.546559 | swwind |
58b5da290227a4419b775b445b190b4e906c0a5e | 2,267 | cpp | C++ | main.cpp | MattLigocki/DNNAssist | 97801013ac948c6fdd84fa622888c519eed3bc85 | [
"MIT"
] | null | null | null | main.cpp | MattLigocki/DNNAssist | 97801013ac948c6fdd84fa622888c519eed3bc85 | [
"MIT"
] | null | null | null | main.cpp | MattLigocki/DNNAssist | 97801013ac948c6fdd84fa622888c519eed3bc85 | [
"MIT"
] | null | null | null | #include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QQmlContext>
#include <QQuickWindow>
#include <memory>
#include <QTimer>
#include "models/modelObjects/Classifier.h"
#include "computerVision/QCvDetectFilter.h"
#include "controllers/DataSetsScreenController.h"
#include "cont... | 34.876923 | 144 | 0.731804 | MattLigocki |
58b973b832611e5b257ea3d7531bc83bff23fe63 | 7,071 | cpp | C++ | src_pybind/core/py_ls.cpp | stnoh/pydelfem2 | 40224736dda9576a39d2b5a753a1ca1e4f906299 | [
"MIT"
] | 8 | 2020-11-23T01:51:20.000Z | 2022-01-28T04:28:18.000Z | src_pybind/core/py_ls.cpp | stnoh/pydelfem2 | 40224736dda9576a39d2b5a753a1ca1e4f906299 | [
"MIT"
] | null | null | null | src_pybind/core/py_ls.cpp | stnoh/pydelfem2 | 40224736dda9576a39d2b5a753a1ca1e4f906299 | [
"MIT"
] | 2 | 2021-07-13T06:30:37.000Z | 2021-10-19T00:44:49.000Z | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <pybind11/pybind11.h>
#include <pybind11/numpy.h>
#include "../py_funcs.h"
#include "delfem2/lsmats.h"
#include "delfem2/lsitrsol.h"
... | 32.43578 | 82 | 0.662848 | stnoh |
58badef2512e161d9056729ea2914b56fb6f230f | 6,757 | cc | C++ | content/browser/media/media_devices_util.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | content/browser/media/media_devices_util.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | content/browser/media/media_devices_util.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/media/media_devices_util.h"
#include <utility>
#include <vector>
#include "base/bind.h"
#include "base/command_line.h"
#includ... | 37.331492 | 80 | 0.692023 | zipated |
58c2136e2f59f31a6cb737bc67deee08ed2d3bad | 12,074 | cpp | C++ | Gems/Atom/RHI/Code/Source/RHI/CommandListValidator.cpp | xw901103/o3de | 76e09a36d900e871d170ce1ff6530c85e047093c | [
"Apache-2.0",
"MIT"
] | 1 | 2021-11-13T11:56:22.000Z | 2021-11-13T11:56:22.000Z | Gems/Atom/RHI/Code/Source/RHI/CommandListValidator.cpp | xw901103/o3de | 76e09a36d900e871d170ce1ff6530c85e047093c | [
"Apache-2.0",
"MIT"
] | 2 | 2021-09-08T03:30:28.000Z | 2022-03-12T00:59:27.000Z | Gems/Atom/RHI/Code/Source/RHI/CommandListValidator.cpp | xw901103/o3de | 76e09a36d900e871d170ce1ff6530c85e047093c | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-09T06:02:14.000Z | 2021-07-09T06:02:14.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Atom/RHI/CommandListValidator.h>
#include <Atom/RHI/Scope.h>
#include <Atom/RHI/ShaderRes... | 43.431655 | 243 | 0.576942 | xw901103 |
58c4667a5921634e5f6e03fab9411c06efbe2d71 | 5,927 | cpp | C++ | Plugins/DlgSystem/Source/DlgSystem/Private/Nodes/DlgNode.cpp | denfrost/DlgSystem | e8e65b8e77ebaad9071dafed3c6dccc55c9aaa23 | [
"MIT"
] | null | null | null | Plugins/DlgSystem/Source/DlgSystem/Private/Nodes/DlgNode.cpp | denfrost/DlgSystem | e8e65b8e77ebaad9071dafed3c6dccc55c9aaa23 | [
"MIT"
] | null | null | null | Plugins/DlgSystem/Source/DlgSystem/Private/Nodes/DlgNode.cpp | denfrost/DlgSystem | e8e65b8e77ebaad9071dafed3c6dccc55c9aaa23 | [
"MIT"
] | null | null | null | // Copyright 2017-2018 Csaba Molnar, Daniel Butum
#include "DlgNode.h"
#include "DlgSystemPrivatePCH.h"
#include "DlgContextInternal.h"
#include "EngineUtils.h"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Begin UObject interface
void UDlgNode::Se... | 26.698198 | 132 | 0.702042 | denfrost |
58c4e5ac7ba38b36e29a6975398fa189684f2f13 | 479 | cpp | C++ | Source/Editor/Private/Customizations/SEComponentClassFilterCustomization.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 110 | 2018-10-20T21:47:54.000Z | 2022-03-14T03:47:58.000Z | Source/Editor/Private/Customizations/SEComponentClassFilterCustomization.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 68 | 2018-12-19T09:08:56.000Z | 2022-03-09T06:43:38.000Z | Source/Editor/Private/Customizations/SEComponentClassFilterCustomization.cpp | foobit/SaveExtension | 390033bc757f2b694c497e22c324dcac539bcd15 | [
"Apache-2.0"
] | 45 | 2018-12-03T14:35:47.000Z | 2022-03-05T01:35:24.000Z | // Copyright 2015-2020 Piperift. All Rights Reserved.
#include "Customizations/SEComponentClassFilterCustomization.h"
#include "PropertyHandle.h"
#define LOCTEXT_NAMESPACE "FSEComponentClassFilterCustomization"
TSharedPtr<IPropertyHandle> FSEComponentClassFilterCustomization::GetFilterHandle(TSharedRef<IPropertyHan... | 31.933333 | 131 | 0.860125 | foobit |
58c6e8c64c29739e6951e1ff66d67fa5ea003393 | 2,338 | cpp | C++ | src/imaging/ossimJpegMemDest.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | null | null | null | src/imaging/ossimJpegMemDest.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | null | null | null | src/imaging/ossimJpegMemDest.cpp | martidi/ossim | 44268fa9d7fc5a3038642e702e85ccd339a4ff9f | [
"MIT"
] | 1 | 2018-10-11T11:36:16.000Z | 2018-10-11T11:36:16.000Z | //----------------------------------------------------------------------------
//
// License: See top level LICENSE.txt file
//
// Most of code and comments below are from jpeg-6b "example.c" file. See
// http://www4.cs.fau.de/Services/Doc/graphics/doc/jpeg/libjpeg.html
//
// Author: Oscar Kramer (From example by Th... | 30.363636 | 103 | 0.652695 | martidi |
58ca4902c0172be2c805c0ddf926e800f67b4417 | 789 | hpp | C++ | mycenter/center/BaseCenter.hpp | nightli110/mycenter | 3d96bf6fa6e3442646f9a416c6fd80c9807590c8 | [
"MIT"
] | null | null | null | mycenter/center/BaseCenter.hpp | nightli110/mycenter | 3d96bf6fa6e3442646f9a416c6fd80c9807590c8 | [
"MIT"
] | null | null | null | mycenter/center/BaseCenter.hpp | nightli110/mycenter | 3d96bf6fa6e3442646f9a416c6fd80c9807590c8 | [
"MIT"
] | null | null | null | /***
* @Author: nightli
* @Date: 2020-10-13 17:15:52
* @LastEditors: nightli
* @LastEditTime: 2020-10-14 10:22:11
* @FilePath: /mycenter/MyCenter.hpp
* @Emile: 1658484908@qq.com
*/
#include <iostream>
#include "../App/InferenceAPP.hpp"
#include "../datatype/MyData.hpp"
using namespace std;
class BaseCenter
{
... | 19.243902 | 51 | 0.698352 | nightli110 |
58cacab165c4632ea27caa957d773f0741d5828d | 18,087 | cc | C++ | test/helpers/vector_element.cc | GeorgeWeb/SYCL-DNN | 50fe1357f5302d188d85512c58de1ae7ed8a0912 | [
"Apache-2.0"
] | null | null | null | test/helpers/vector_element.cc | GeorgeWeb/SYCL-DNN | 50fe1357f5302d188d85512c58de1ae7ed8a0912 | [
"Apache-2.0"
] | null | null | null | test/helpers/vector_element.cc | GeorgeWeb/SYCL-DNN | 50fe1357f5302d188d85512c58de1ae7ed8a0912 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Codeplay Software Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 28.085404 | 80 | 0.642008 | GeorgeWeb |
58cf2bd16dc965f1c4210914a4957cf70c23b1bd | 4,432 | cpp | C++ | libraries/CRC/test/unit_test_crc32.cpp | jantje/Arduino | cd40e51b4eb9f8947aa58f278f61c9121d711fb0 | [
"MIT"
] | 1,253 | 2015-01-03T17:07:53.000Z | 2022-03-22T11:46:42.000Z | libraries/CRC/test/unit_test_crc32.cpp | henriquerochamattos/Arduino | 3ace3a4e7b2b51d52d4c2ea363d23ebaacd9cc68 | [
"MIT"
] | 134 | 2015-01-21T20:33:13.000Z | 2022-01-05T08:59:33.000Z | libraries/CRC/test/unit_test_crc32.cpp | henriquerochamattos/Arduino | 3ace3a4e7b2b51d52d4c2ea363d23ebaacd9cc68 | [
"MIT"
] | 3,705 | 2015-01-02T17:03:16.000Z | 2022-03-31T13:20:30.000Z | //
// FILE: unit_test_crc32.cpp
// AUTHOR: Rob Tillaart
// DATE: 2021-03-31
// PURPOSE: unit tests for the CRC library
// https://github.com/RobTillaart/CRC
// https://github.com/Arduino-CI/arduino_ci/blob/master/REFERENCE.md
//
// supported assertions
// ----------------------------
// assert... | 28.779221 | 97 | 0.664486 | jantje |
58d33bf3fdb8ba76a35b1ccdd46e058876393bec | 248 | hpp | C++ | test/test_mpi.hpp | mirandaconrado/object-archive | e3f43ac8aac86293f642b1a85a6892904ea3714b | [
"MIT"
] | 1 | 2019-12-10T11:38:49.000Z | 2019-12-10T11:38:49.000Z | test/test_mpi.hpp | mirandaconrado/object-archive | e3f43ac8aac86293f642b1a85a6892904ea3714b | [
"MIT"
] | null | null | null | test/test_mpi.hpp | mirandaconrado/object-archive | e3f43ac8aac86293f642b1a85a6892904ea3714b | [
"MIT"
] | null | null | null | #ifndef __TASK_DISTRIBUTION__TEST_MPI_HPP__
#define __TASK_DISTRIBUTION__TEST_MPI_HPP__
#include <boost/mpi/environment.hpp>
#include <boost/mpi/communicator.hpp>
extern boost::mpi::environment env;
extern boost::mpi::communicator world;
#endif
| 22.545455 | 43 | 0.826613 | mirandaconrado |
58d4885be4e47bbfc155f2e61d97b3c1a306fce9 | 573 | cpp | C++ | 156.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | 156.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | 156.cpp | R-penguins/UVa-Online-Judge-Solutions | 4bb24ab26c207903ff5b6fea6cfe122ae6578d62 | [
"MIT"
] | null | null | null | /**
* AOAPC II Example 5-4 Ananagrams
*/
#include <bits/stdc++.h>
using namespace std;
int main() {
map<string, string> trans;
string s;
while ((cin >> s) && s[0] != '#') {
string t = s;
for (char &c : t)
c = tolower(c);
sort(t.begin(), t.end());
if (trans.find(... | 22.038462 | 41 | 0.4363 | R-penguins |
58d6497acc5d7e39331f6a73703c5a2565e01b8e | 66,002 | cxx | C++ | Modules/CLI/ModelMaker/ModelMaker.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Modules/CLI/ModelMaker/ModelMaker.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Modules/CLI/ModelMaker/ModelMaker.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | /*=auto=========================================================================
Portions (c) Copyright 2006 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile$
Date: $Date$
Version: $... | 32.820487 | 185 | 0.540484 | forfullstack |
58db275567c4749ea7dfab63efc0ac8e488b385e | 1,362 | cpp | C++ | code/exploration_50-TEMPLATE_SPECIALIZATION/01-example_of_specializing/main.cpp | ordinary-developer/exploring_cpp_11_2_ed_r_lischner | 468de9c64ae54db45c4de748436947d5849c4582 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | code/exploration_50-TEMPLATE_SPECIALIZATION/01-example_of_specializing/main.cpp | ordinary-developer/exploring_cpp_11_2_ed_r_lischner | 468de9c64ae54db45c4de748436947d5849c4582 | [
"MIT"
] | null | null | null | code/exploration_50-TEMPLATE_SPECIALIZATION/01-example_of_specializing/main.cpp | ordinary-developer/exploring_cpp_11_2_ed_r_lischner | 468de9c64ae54db45c4de748436947d5849c4582 | [
"MIT"
] | null | null | null | #include <iostream>
#include <typeinfo>
template<class T>
class point {
public:
typedef T value_type;
point(T const& x, T const& y) : x_{ x }, y_{ y } { }
point() : point{ T{}, T{}} {
std::cout << "point<" << typeid(T).name() << ">()\n";
}
T const& x() const {... | 20.029412 | 65 | 0.448605 | ordinary-developer |
58df2ccf59b7cecfc0b1a6b87f7af664137aab83 | 910 | cpp | C++ | 2-1-Cpp Programming I/EX1/1-2.cpp | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | 3 | 2018-12-02T13:52:55.000Z | 2019-02-26T13:19:50.000Z | 2-1-Cpp Programming I/EX1/1-2.cpp | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | null | null | null | 2-1-Cpp Programming I/EX1/1-2.cpp | Awdrtgg/Coursework-Projects | d48124b71e477f71b6370f5c3317c6800f8fdb06 | [
"MIT"
] | null | null | null | /* --------------------------------------------------------------------------------------
Exercsie 1: Simple C++ Programming
Test 2: Prime Number
Programmer: Xiao Yunming
********************************************************************************
----------------------------------------------------------... | 20.222222 | 90 | 0.374725 | Awdrtgg |
58dfe46daef79e53952eb24f548cd30fcd185cb5 | 5,266 | cc | C++ | mindspore/ccsrc/runtime/graph_scheduler/actor/rpc/recv_actor.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/runtime/graph_scheduler/actor/rpc/recv_actor.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/runtime/graph_scheduler/actor/rpc/recv_actor.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2022 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 39.298507 | 120 | 0.735663 | zhz44 |
58e17d61020b6ce97efbaef0711fc44a699dedf2 | 2,606 | cpp | C++ | main.cpp | 0xADE1A1DE/CacheFX | 2b0127af579919e9196d35b9fdd325fa8229b51d | [
"Apache-2.0"
] | 3 | 2022-01-30T14:54:58.000Z | 2022-03-17T00:58:18.000Z | main.cpp | 0xADE1A1DE/CacheFX | 2b0127af579919e9196d35b9fdd325fa8229b51d | [
"Apache-2.0"
] | null | null | null | main.cpp | 0xADE1A1DE/CacheFX | 2b0127af579919e9196d35b9fdd325fa8229b51d | [
"Apache-2.0"
] | 4 | 2022-01-30T09:22:57.000Z | 2022-03-17T00:58:26.000Z | /*
* Copyright 2022 The University of Adelaide
*
* This file is part of CacheFX.
*
* 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
*
*... | 23.690909 | 79 | 0.657713 | 0xADE1A1DE |
58e8b0f612d52ad89d385c9c65acd7fe2995970b | 400 | cc | C++ | extras/readnewmagres.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/readnewmagres.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | extras/readnewmagres.cc | dch0ph/pNMRsim | 2420e618c7bff9b38b43e7c2ac684c5c28b61787 | [
"MIT"
] | null | null | null | #include "magres.h"
using namespace MagRes;
int main(int argc, const char **argv) {
try {
MagresFile magres;
magres.parse_from_file(argv[1]);
std::cout << magres;
}
catch (exception_t& exc) {
std::cerr << "Parsing failed: " << exc << '\n';
return 1;
}
catch (notmagres_exception_t&) {
... | 19.047619 | 51 | 0.6 | dch0ph |
58e999a3c5fd31dcf3b51b5996d50a3880d74664 | 530 | cpp | C++ | CodeChef June Contest 2020/Chef-and-String-Problem.cpp | Shiv-sharma-111/CodeChef-Contest | 93594692ba0818cb30ac3dd15addd67246e987ff | [
"MIT"
] | null | null | null | CodeChef June Contest 2020/Chef-and-String-Problem.cpp | Shiv-sharma-111/CodeChef-Contest | 93594692ba0818cb30ac3dd15addd67246e987ff | [
"MIT"
] | null | null | null | CodeChef June Contest 2020/Chef-and-String-Problem.cpp | Shiv-sharma-111/CodeChef-Contest | 93594692ba0818cb30ac3dd15addd67246e987ff | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
int T;
cin>>T;
while(T--)
{
string S;
//getline(cin,S);
cin>>S;
int n = S.length();
int count=0;
if(n==1)
{
cout<<"0"<<"\n";
}
else
{
... | 15.142857 | 68 | 0.39434 | Shiv-sharma-111 |
58eb71bbe291896006a7ff8e7e255045e4e2abf4 | 8,781 | cpp | C++ | ntUPSd/CommandProcessor.cpp | 6XGate/ntUPSd | 7a3d7301a78db632c93c8eb9665c9d039137d835 | [
"MIT"
] | 20 | 2016-04-11T12:22:59.000Z | 2021-12-07T19:38:26.000Z | ntUPSd/CommandProcessor.cpp | 6XGate/ntUPSd | 7a3d7301a78db632c93c8eb9665c9d039137d835 | [
"MIT"
] | 1 | 2016-04-11T12:45:54.000Z | 2016-04-13T11:44:45.000Z | ntUPSd/CommandProcessor.cpp | 6XGate/ntUPSd | 7a3d7301a78db632c93c8eb9665c9d039137d835 | [
"MIT"
] | 8 | 2017-11-03T00:57:13.000Z | 2021-11-10T14:20:23.000Z | /*
Copyright 2016 Matthew Holder
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, distribute,
subl... | 20.468531 | 106 | 0.705045 | 6XGate |
58ec0ca4937becbc75d48e9ea9339b82a75200f2 | 130 | cpp | C++ | Shader.cpp | jtilander/unittestcg | d56910eb75c6c3d4673a3bf465ab8e21169aaec5 | [
"MIT"
] | null | null | null | Shader.cpp | jtilander/unittestcg | d56910eb75c6c3d4673a3bf465ab8e21169aaec5 | [
"MIT"
] | null | null | null | Shader.cpp | jtilander/unittestcg | d56910eb75c6c3d4673a3bf465ab8e21169aaec5 | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include "Shader.h"
namespace aurora {
Shader::Shader()
{
}
Shader::~Shader()
{
}
}
| 8.125 | 25 | 0.553846 | jtilander |
58ed29b8d1b6e1d1e9ac7db84772577222747702 | 39,407 | cpp | C++ | component_library/src/physics.cpp | diederickh/corgi | e7c48adc51113d7b1b5d9571cde8c949025b85b6 | [
"Apache-2.0"
] | 272 | 2015-11-19T04:18:38.000Z | 2022-03-30T02:37:22.000Z | component_library/src/physics.cpp | diederickh/corgi | e7c48adc51113d7b1b5d9571cde8c949025b85b6 | [
"Apache-2.0"
] | 1 | 2015-11-19T19:21:50.000Z | 2017-02-16T17:43:01.000Z | component_library/src/physics.cpp | diederickh/corgi | e7c48adc51113d7b1b5d9571cde8c949025b85b6 | [
"Apache-2.0"
] | 44 | 2015-11-19T04:41:54.000Z | 2021-09-05T08:52:23.000Z | // Copyright 2015 Google Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 41.350472 | 80 | 0.672216 | diederickh |
58ee6601c0d4e952ea5a78e4afd65c19923ad53d | 27,194 | cpp | C++ | Plugins/Renderer/gl_hud.cpp | fengjixuchui/MetaHookSv | a07d0629338100342dc4f8f1bb2b830455d214b0 | [
"MIT"
] | 1 | 2021-03-10T06:22:11.000Z | 2021-03-10T06:22:11.000Z | Plugins/Renderer/gl_hud.cpp | fengjixuchui/MetaHookSv | a07d0629338100342dc4f8f1bb2b830455d214b0 | [
"MIT"
] | null | null | null | Plugins/Renderer/gl_hud.cpp | fengjixuchui/MetaHookSv | a07d0629338100342dc4f8f1bb2b830455d214b0 | [
"MIT"
] | 1 | 2021-02-28T16:05:22.000Z | 2021-02-28T16:05:22.000Z | #include "gl_local.h"
#include <sstream>
//HDR
int last_luminance = 0;
#define MAX_GAUSSIAN_SAMPLES 16
#define LUMPASS_DOWN 0
#define LUMPASS_LOG 1
#define LUMPASS_EXP 2
//HBAO
#define AO_RANDOMTEX_SIZE 4
static const int NUM_MRT = 8;
static const int HBAO_RANDOM_SIZE = AO_RANDOMTEX_SIZE;
static const int HBAO_R... | 31.62093 | 200 | 0.770979 | fengjixuchui |
58efd1a49fb6e315db96db351495422257c34870 | 6,801 | cc | C++ | components/nacl/renderer/plugin/srpc_client.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/nacl/renderer/plugin/srpc_client.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/nacl/renderer/plugin/srpc_client.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-04T13:34:56.000Z | 2020-11-04T07:17:52.000Z | /*
* Copyright (c) 2012 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "components/nacl/renderer/plugin/srpc_client.h"
#include <string.h>
#include "components/nacl/renderer/plugin/plugin.h"
#include "co... | 34.005 | 79 | 0.651228 | hefen1 |
58f07777fde724228ad81e8451d775f50a07359f | 484 | cc | C++ | src/test/ndpc/test_fact.cc | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 28 | 2018-10-12T17:44:54.000Z | 2022-01-27T19:30:56.000Z | src/test/ndpc/test_fact.cc | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 31 | 2018-12-08T19:39:32.000Z | 2021-01-19T18:37:57.000Z | src/test/ndpc/test_fact.cc | abu-bakar-nu/nautilus | 9c5046d714e2ff2a00f757ba42dc887024365be6 | [
"MIT"
] | 26 | 2018-08-04T03:58:13.000Z | 2022-03-02T18:53:09.000Z | #define NDPC_NAUTILUS_KERNEL
#include "ndpc_glue.h"
#include "fact.hh"
//
//using namespace std;
NDPC_TEST(fact)
{
int input=5;
int output;
NDPC_PRINTF("Testing factorial example\n");
ndpc_init_preempt_threads();
if (fact(output,input)) {
NDPC_PRINTF("function call failed\n");
} els... | 15.125 | 52 | 0.654959 | abu-bakar-nu |
58f18b905a1a9b445fc9c6c15fa0a95e33282e91 | 3,016 | cpp | C++ | Control/MV/buttoncolumndelegate.cpp | martinkro/tutorial-qt | 8685434520c6ab61691722aa06ca075f8ddbeacf | [
"MIT"
] | 2 | 2018-06-24T10:19:30.000Z | 2018-12-13T14:31:49.000Z | Control/MV/buttoncolumndelegate.cpp | martinkro/tutorial-qt | 8685434520c6ab61691722aa06ca075f8ddbeacf | [
"MIT"
] | null | null | null | Control/MV/buttoncolumndelegate.cpp | martinkro/tutorial-qt | 8685434520c6ab61691722aa06ca075f8ddbeacf | [
"MIT"
] | null | null | null | #include "buttoncolumndelegate.h"
#include <QPainter>
ButtonColumnDelegate::ButtonColumnDelegate(QObject *parent) :
QStyledItemDelegate(parent)
{
if (QTableView *tableView = qobject_cast<QTableView *>(parent))
{
myWidget = tableView;
btn = new QPushButton("...", myWidget);
btn->hide();
myWidget->setMouseTr... | 28.186916 | 132 | 0.734416 | martinkro |
58f24871922634cdd3c0013179c13807f95ee6ee | 648 | hpp | C++ | src/agl/opengl/function/texture/parameter.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/opengl/function/texture/parameter.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/opengl/function/texture/parameter.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | #pragma once
#include "agl/opengl/enum/texture_parameter.hpp"
#include "agl/opengl/name/all.hpp"
namespace agl {
inline
void parameter(Texture t, TextureParameter tp, GLfloat param) {
glTextureParameterf(
t,
static_cast<GLenum>(tp),
param);
}
inline
void parameter(Texture t, TextureParam... | 18.514286 | 63 | 0.688272 | the-last-willy |
58f2dc1f040c2104e1140c2053409ed1dadc78d4 | 4,741 | cc | C++ | CommonTools/Utils/src/ExpressionEvaluator.cc | eric-moreno/cmssw | 3dc2c26f276632ac8357ac7b52675f04649e3903 | [
"Apache-2.0"
] | null | null | null | CommonTools/Utils/src/ExpressionEvaluator.cc | eric-moreno/cmssw | 3dc2c26f276632ac8357ac7b52675f04649e3903 | [
"Apache-2.0"
] | 7 | 2016-07-17T02:34:54.000Z | 2019-08-13T07:58:37.000Z | CommonTools/Utils/src/ExpressionEvaluator.cc | eric-moreno/cmssw | 3dc2c26f276632ac8357ac7b52675f04649e3903 | [
"Apache-2.0"
] | 2 | 2019-09-27T08:33:22.000Z | 2019-11-14T10:52:30.000Z | #include "CommonTools/Utils/interface/ExpressionEvaluator.h"
#include "FWCore/Version/interface/GetReleaseVersion.h"
#include "FWCore/Utilities/interface/GetEnvironmentVariable.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "popenCPP.h"
#include... | 29.63125 | 112 | 0.554313 | eric-moreno |
58f34c122d02d04fb94eb84d5d64a621e9add997 | 974 | cpp | C++ | Week16/1235.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 101 | 2021-02-26T14:32:37.000Z | 2022-03-16T18:46:37.000Z | Week16/1235.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | null | null | null | Week16/1235.cpp | bobsingh149/LeetCode | 293ed4931960bf5b9a3d5c4331ba4dfddccfcd55 | [
"MIT"
] | 30 | 2021-03-09T05:16:48.000Z | 2022-03-16T21:16:33.000Z | bool sortFunc(const vector<int>& p1, const vector<int>& p2) {
return p1[0] < p2[0];
}
class Solution {
public:
int jobScheduling(vector<int>& startTime, vector<int>& endTime, vector<int>& profit) {
vector<vector<int>> contain;
int max_end=0;
for(int i=0; i<startTime.size(); i++){
... | 32.466667 | 90 | 0.501027 | bobsingh149 |
58f507e211a425fdce51de03e2388d46b27b8c6a | 26,140 | cpp | C++ | Modules/Core/src/DataManagement/mitkPropertyRelationRuleBase.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/Core/src/DataManagement/mitkPropertyRelationRuleBase.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/Core/src/DataManagement/mitkPropertyRelationRuleBase.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 29.977064 | 174 | 0.714575 | zhaomengxiao |
58f61a8cce9d5594b07bcc61457d49ed308d10a8 | 1,182 | hpp | C++ | cpp/src/datacentric/dc/types/record/root_key.hpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | 1 | 2019-08-08T01:27:47.000Z | 2019-08-08T01:27:47.000Z | cpp/src/datacentric/dc/types/record/root_key.hpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | null | null | null | cpp/src/datacentric/dc/types/record/root_key.hpp | datacentricorg/datacentric | b9e2dedfac35759ea09bb5653095daba5861512e | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2013-present The DataCentric Authors.
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 ... | 33.771429 | 103 | 0.753807 | datacentricorg |
58f8610cdf0420bd3597b10a1403e8b2ad46cf17 | 7,256 | cpp | C++ | src/stores/GOG/gog_library.cpp | ColonelGerdauf/SKIF | ae0b300c0ededbc5437bd26c37be4f0b8fb8cfaa | [
"MIT"
] | null | null | null | src/stores/GOG/gog_library.cpp | ColonelGerdauf/SKIF | ae0b300c0ededbc5437bd26c37be4f0b8fb8cfaa | [
"MIT"
] | null | null | null | src/stores/GOG/gog_library.cpp | ColonelGerdauf/SKIF | ae0b300c0ededbc5437bd26c37be4f0b8fb8cfaa | [
"MIT"
] | null | null | null |
#include <stores/gog/gog_library.h>
#include <wtypes.h>
#include <filesystem>
/*
GOG Galaxy / Offline Installers shared registry struture
Root Key: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\
Each game is stored in a separate key beneath, named after the Game ID/Product ID of the game.
Each key have a ... | 38.595745 | 158 | 0.598953 | ColonelGerdauf |
58f8e45d5382e7466711e24f039dabb5293fbd25 | 374 | hpp | C++ | .experimentals/include/amtrs/io/functions.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | .experimentals/include/amtrs/io/functions.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | .experimentals/include/amtrs/io/functions.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __libamtrs__io__functions__hpp
#define __libamtrs__io__functions__hpp
#include "def.hpp"
#in... | 34 | 72 | 0.700535 | isaponsoft |
58f8e7b49afbd778b849e3052f126235103b460c | 816 | cpp | C++ | luogu/CF977F.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:07:08.000Z | 2020-07-24T03:07:08.000Z | luogu/CF977F.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | luogu/CF977F.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | //
// Created by yangtao on 20-11-8.
//
//
// Created by yangtao on 2020/11/1.
//
#include<iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
#include <map>
using namespace std;
const int N = 2e5 + 5;
int n, ans , v;
int a[N];
map<int, int> mm;
int main() {
cin >> n;
for(int i = 1; i <= n; i++... | 20.4 | 56 | 0.436275 | delphi122 |
58fd0ccae0bff05ff70dbb867da0b748f9610784 | 647 | cpp | C++ | contest/1523/a/a.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | contest/1523/a/a.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | contest/1523/a/a.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define clog(x) std::clog << (#x) << " is " << (x) << '\n';
using LL = long long;
int main() {
//freopen("in", "r", stdin);
std::cin.tie(nullptr)->sync_with_stdio(false);
int cas = 1;
std::cin >> cas;
while (cas--) {
int n, m;
std::string a;
std::cin >> n >> m >> a;
a = std::strin... | 22.310345 | 59 | 0.434312 | GoatGirl98 |
58fef46ff52b59a4abbdafc630afa4314be7880a | 1,111 | cpp | C++ | lib/save_obj.cpp | CraGL/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 19 | 2017-03-29T00:14:00.000Z | 2021-11-27T15:44:44.000Z | lib/save_obj.cpp | Myzhencai/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 1 | 2019-05-08T21:48:11.000Z | 2019-05-08T21:48:11.000Z | lib/save_obj.cpp | Myzhencai/SubdivisionSkinning | c593a7a4e38a49716e9d3981824871a7b6c29324 | [
"Apache-2.0"
] | 5 | 2017-04-23T17:52:44.000Z | 2020-06-28T18:00:26.000Z | #include "save_obj.h"
#include <iostream>
#include <fstream>
namespace save_obj
{
void save_mesh( const std::string& out_path, const std::vector< std::vector< int > >& faces, const std::vector< std::vector< real_t > >& vertices, const std::string& header_message )
{
std::ofstream out( out_path );
save_mesh( out,... | 25.25 | 182 | 0.531953 | CraGL |
4500146138fdc658e2e90b3d655f9689fe73331b | 11,131 | cpp | C++ | src/tpcc/DBtxnNewOrder.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | 4 | 2016-07-14T18:11:39.000Z | 2021-04-14T01:27:38.000Z | src/tpcc/DBtxnNewOrder.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | null | null | null | src/tpcc/DBtxnNewOrder.cpp | bailuding/centiman | 213eab0bd391822cbc9a01644979f8409440c376 | [
"Apache-2.0"
] | 1 | 2015-11-23T17:23:43.000Z | 2015-11-23T17:23:43.000Z | //
// DBtxnNewOrder.cpp
// centiman TPCC
//
// Created by Alan Demers on 11/1/12.
// Copyright (c) 2012 ademers. All rights reserved.
//
//#include <unordered_set>
#include <set>
#include <tpcc/Tables.h>
#include <tpcc/DB.h>
#include <util/const.h>
namespace TPCC {
/*
* New Order Transaction ...
... | 45.247967 | 138 | 0.55844 | bailuding |
4500cd1403bcaa17d8b422096cc0f59b9b4c1f93 | 964 | cpp | C++ | mycobot/src/detect.cpp | tylerjw/mycobot | fa37de7b38e02973f61b92529b3ba2cebad2e71b | [
"BSD-3-Clause"
] | 4 | 2022-03-03T22:20:45.000Z | 2022-03-09T23:06:19.000Z | mycobot/src/detect.cpp | tylerjw/mycobot | fa37de7b38e02973f61b92529b3ba2cebad2e71b | [
"BSD-3-Clause"
] | null | null | null | mycobot/src/detect.cpp | tylerjw/mycobot | fa37de7b38e02973f61b92529b3ba2cebad2e71b | [
"BSD-3-Clause"
] | 2 | 2022-03-01T22:26:31.000Z | 2022-03-09T16:41:18.000Z | #include "mycobot/detect.hpp"
#include <serial/serial.h>
#include <fp/all.hpp>
#include <optional>
#include <string>
#include <vector>
namespace mycobot {
std::vector<std::string> get_ports() {
return []() {
std::vector<std::string> ret;
for (auto const& port_info : serial::list_ports())
ret.push_ba... | 22.952381 | 76 | 0.613071 | tylerjw |
450274617d74b42f9fcb3455ee3c4477f8799f15 | 4,291 | cpp | C++ | src/tests/libs/alm/FriendLayout.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 1,338 | 2015-01-03T20:06:56.000Z | 2022-03-26T13:49:54.000Z | src/tests/libs/alm/FriendLayout.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 15 | 2015-01-17T22:19:32.000Z | 2021-12-20T12:35:00.000Z | src/tests/libs/alm/FriendLayout.cpp | Kirishikesan/haiku | 835565c55830f2dab01e6e332cc7e2d9c015b51e | [
"MIT"
] | 350 | 2015-01-08T14:15:27.000Z | 2022-03-21T18:14:35.000Z | /*
* Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
* Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
* Copyright 2010, Clemens Zeidler <haiku@clemens-zeidler.de>
* Copyright 2012, Haiku, Inc.
* Distributed under the terms of the MIT License.
*/
#include <Application.h>
#include ... | 24.66092 | 75 | 0.680028 | Kirishikesan |
4504f9adfd0c992fe47af0cbffea8e9a38dc2442 | 573 | cpp | C++ | week1/fileIO.cpp | shaili-regmi/cpp-examples | 66c8813b6ef301604c5003b103c1f11d5ee7519b | [
"MIT"
] | null | null | null | week1/fileIO.cpp | shaili-regmi/cpp-examples | 66c8813b6ef301604c5003b103c1f11d5ee7519b | [
"MIT"
] | null | null | null | week1/fileIO.cpp | shaili-regmi/cpp-examples | 66c8813b6ef301604c5003b103c1f11d5ee7519b | [
"MIT"
] | 4 | 2021-02-18T18:34:47.000Z | 2021-03-03T18:05:26.000Z | // Bryn Mawr College, 2021
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
using namespace std;
int main(int argc, char** argv)
{
string filename = "../files/grades.txt";
ifstream file(filename);
if (!file) // true if the file is valid
{
cout << "Cannot load file: " << f... | 16.371429 | 55 | 0.558464 | shaili-regmi |
4505c2df666176b029ee7d913f366e9ea6e34bdd | 303 | hpp | C++ | States.hpp | nvg-ict/StateMachineTemplate | abae3222535d20bea2aa82ba4aca83ebab1081dc | [
"Apache-2.0"
] | null | null | null | States.hpp | nvg-ict/StateMachineTemplate | abae3222535d20bea2aa82ba4aca83ebab1081dc | [
"Apache-2.0"
] | null | null | null | States.hpp | nvg-ict/StateMachineTemplate | abae3222535d20bea2aa82ba4aca83ebab1081dc | [
"Apache-2.0"
] | null | null | null | /*
* States.hpp
*
* Created on: Mar 4, 2017
* Author: nico
*/
#ifndef STATES_HPP_
#define STATES_HPP_
/**
* @brief States for the statemachine
*/
namespace States
{
enum Events
{
evInitReady,
evTask,
evTaskDone,
evSTOP,
evSTOPdisable
};
}
#endif /* STATES_HPP_ */
| 10.448276 | 37 | 0.613861 | nvg-ict |
45085131ecd6b21788f40dda8cae150352d2802d | 982 | hpp | C++ | Haar.hpp | jdstmporter/Reason-Wavelet | 691e6e3a31911082751c58f5f91cfd4e7495cee6 | [
"BSD-3-Clause"
] | null | null | null | Haar.hpp | jdstmporter/Reason-Wavelet | 691e6e3a31911082751c58f5f91cfd4e7495cee6 | [
"BSD-3-Clause"
] | null | null | null | Haar.hpp | jdstmporter/Reason-Wavelet | 691e6e3a31911082751c58f5f91cfd4e7495cee6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Haar.hpp
*
* Created on: 6 Jul 2020
* Author: julianporter
*/
#ifndef SRC_HAAR_HPP_
#define SRC_HAAR_HPP_
#include <algorithm>
#include <vector>
#include <cmath>
#include <map>
#include <memory>
#include "base.hpp"
namespace meromorph { namespace haar {
class Haar {
private:
uint32 N;
std... | 15.587302 | 62 | 0.630346 | jdstmporter |
450bfb405f75a9351e7c5860d6e97269891d2bc6 | 235 | cpp | C++ | src/0189.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0189.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0189.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | class Solution {
public:
void rotate(vector<int>& nums, int k) {
k %= size(nums);
reverse(begin(nums), end(nums));
reverse(begin(nums), begin(nums) + k);
reverse(begin(nums) + k, end(nums));
}
}; | 26.111111 | 46 | 0.544681 | shuihan0555 |
450dd6b373337e29c554aa464975f95e7324aa6f | 4,501 | cpp | C++ | of_v0.8.0_vs_release/apps/myApps/GRT_Predict/src/fullBodyTracker.cpp | MatthiasHinz/Gesture_Recognizer_for_Web_GIS | 0ced6d72684d0f2d84b89c6afda2f7dcee0dc6b9 | [
"MIT"
] | null | null | null | of_v0.8.0_vs_release/apps/myApps/GRT_Predict/src/fullBodyTracker.cpp | MatthiasHinz/Gesture_Recognizer_for_Web_GIS | 0ced6d72684d0f2d84b89c6afda2f7dcee0dc6b9 | [
"MIT"
] | null | null | null | of_v0.8.0_vs_release/apps/myApps/GRT_Predict/src/fullBodyTracker.cpp | MatthiasHinz/Gesture_Recognizer_for_Web_GIS | 0ced6d72684d0f2d84b89c6afda2f7dcee0dc6b9 | [
"MIT"
] | 1 | 2018-07-05T12:41:34.000Z | 2018-07-05T12:41:34.000Z | #include "fullBodyTracker.h"
int outOfSync = 0;
const int maxOutOFSync = 500;
FullBodyTracker::FullBodyTracker(void)
{
}
FullBodyTracker::~FullBodyTracker(void)
{
}
void FullBodyTracker::initTracker(void)
{
niteRc = userTracker.create();
userTracker.setSkeletonSmoothingFactor(0.8);
isTracking = false;
}
void... | 28.308176 | 96 | 0.714286 | MatthiasHinz |
450e2111cdbc102af7b01657673639af2fa38c9c | 505 | hh | C++ | CppPool/cpp_d09/ex04/Priest.hh | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 40 | 2018-01-28T14:23:27.000Z | 2022-03-05T15:57:47.000Z | CppPool/cpp_d09/ex04/Priest.hh | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 1 | 2021-10-05T09:03:51.000Z | 2021-10-05T09:03:51.000Z | CppPool/cpp_d09/ex04/Priest.hh | 667MARTIN/Epitech | 81095d8e7d54e9abd95541ee3dfcc3bc85d5cf0e | [
"MIT"
] | 73 | 2019-01-07T18:47:00.000Z | 2022-03-31T08:48:38.000Z | //
// Priest.hh for Priest in /home/gwendoline/Epitech/Tek2/Piscine_cpp/piscine_cpp_d09/ex02
//
// Made by Gwendoline Rodriguez
// Login <gwendoline@epitech.net>
//
// Started on Thu Jan 14 16:50:20 2016 Gwendoline Rodriguez
// Last update Thu Jan 14 18:54:34 2016 Gwendoline Rodriguez
//
#ifndef _PRIEST_HH
#define ... | 18.035714 | 89 | 0.69901 | 667MARTIN |
451157df0d6dc6e5135e7f9ce2b8f510befffa7c | 2,765 | cpp | C++ | Code/Modules/mutalisk/dx9/dx9Helpers.cpp | mrneo240/suicide-barbie | c8b01f9c04755e7f6d1d261fc4a1600cd6705b96 | [
"MIT"
] | 57 | 2021-01-02T00:18:22.000Z | 2022-03-27T14:40:25.000Z | Code/Modules/mutalisk/dx9/dx9Helpers.cpp | mrneo240/suicide-barbie | c8b01f9c04755e7f6d1d261fc4a1600cd6705b96 | [
"MIT"
] | 1 | 2021-01-05T20:43:02.000Z | 2021-01-11T23:04:41.000Z | Code/Modules/mutalisk/dx9/dx9Helpers.cpp | mrneo240/suicide-barbie | c8b01f9c04755e7f6d1d261fc4a1600cd6705b96 | [
"MIT"
] | 8 | 2021-01-01T22:34:43.000Z | 2022-03-22T01:21:26.000Z | #include "dx9Helpers.h"
#include <string>
#include <stdlib.h>
#include "../errors.h"
using namespace dx;
unsigned calcTextureSize(IDirect3DTexture9 const& texture)
{
IDirect3DTexture9& tex = const_cast<IDirect3DTexture9&>(texture);
const int mipMapLevels = tex.GetLevelCount();
//
// Size calculated by this eq... | 21.10687 | 110 | 0.692586 | mrneo240 |
4511e68cd54adac8baea46b169c0a8a6b659ed9d | 904 | cpp | C++ | Algorithmic-Toolbox/Extra_Poly_Mul.cpp | saddhu1005/Coursera-DataStructuresAlgorithms | 847508c1e93246900700a63b981033ec84d85031 | [
"MIT"
] | 1 | 2019-04-01T20:05:25.000Z | 2019-04-01T20:05:25.000Z | Algorithmic-Toolbox/Extra_Poly_Mul.cpp | saddhu1005/Coursera-DataStructuresAlgorithms | 847508c1e93246900700a63b981033ec84d85031 | [
"MIT"
] | null | null | null | Algorithmic-Toolbox/Extra_Poly_Mul.cpp | saddhu1005/Coursera-DataStructuresAlgorithms | 847508c1e93246900700a63b981033ec84d85031 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll * multp(ll a[],ll b[],ll n,ll l, ll r)
{
ll *rs=new ll[n*2-1];
for(ll i=0;i<n*2-1;++i)
rs[i]=0;
if(n==1)
{
rs[0]=a[l]*b[l];
return rs;
}
rs=multp(a,b,n/2,l,r);
rs=multp(a,b,n/2,l+n/2,r+n/2);
ll *d0e... | 17.72549 | 41 | 0.409292 | saddhu1005 |
4512708dfee92a546339acc57fc16ac517ba07c0 | 554 | hpp | C++ | libs/zswagcl/include/zswagcl/openapi-parser.hpp | Klebert-Engineering/zswag | 39c63bd4d2c4be5e95ddcc6f4573022dac9924e5 | [
"BSD-3-Clause"
] | 8 | 2021-03-17T01:41:58.000Z | 2022-02-22T13:26:13.000Z | libs/zswagcl/include/zswagcl/openapi-parser.hpp | Klebert-Engineering/zswag | 39c63bd4d2c4be5e95ddcc6f4573022dac9924e5 | [
"BSD-3-Clause"
] | 38 | 2020-05-04T08:57:40.000Z | 2022-02-21T11:22:57.000Z | libs/zswagcl/include/zswagcl/openapi-parser.hpp | Klebert-Engineering/zswag | 39c63bd4d2c4be5e95ddcc6f4573022dac9924e5 | [
"BSD-3-Clause"
] | 4 | 2020-06-03T15:07:44.000Z | 2021-10-04T07:55:39.000Z | #pragma once
#include <istream>
#include "zswagcl/openapi-config.hpp"
#include "httpcl/http-client.hpp"
#include "httpcl/http-settings.hpp"
namespace zswagcl
{
/**
* Download and parse OpenAPI config from URL.
*
* Throws on error.
*/
OpenAPIConfig fetchOpenAPIConfig(const std::string& url,
... | 19.103448 | 65 | 0.637184 | Klebert-Engineering |
45159869f3605b62595dd52d902b9c1c8b35a7ef | 2,804 | hpp | C++ | include/pmath/Matrix2.hpp | M4T1A5/ProbablyMath | fbf907ebfcb5a4d59c89fa240c20a1bb876b74be | [
"MIT"
] | null | null | null | include/pmath/Matrix2.hpp | M4T1A5/ProbablyMath | fbf907ebfcb5a4d59c89fa240c20a1bb876b74be | [
"MIT"
] | null | null | null | include/pmath/Matrix2.hpp | M4T1A5/ProbablyMath | fbf907ebfcb5a4d59c89fa240c20a1bb876b74be | [
"MIT"
] | null | null | null | #pragma once
#ifndef MATRIX2_PMATH_H
#define MATRIX2_PMATH_H
#include "Vector2.hpp"
#include <iostream>
#include <string>
namespace pmath
{
template<typename T>
class Matrix2
{
public:
Matrix2();
Matrix2(const T& a11, const T& a12,
const T& a21, const T& a22);
... | 28.323232 | 73 | 0.614836 | M4T1A5 |
4516b87899f4583240c9c086372d0fa0537d24c4 | 241 | cc | C++ | build/ARM/python/m5/internal/param_ThermalResistor.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ThermalResistor.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_ThermalResistor.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_ThermalResistor();
}
EmbeddedSwig embed_swig_param_ThermalResistor(init_param_ThermalResistor, "m5.internal._param_ThermalResistor");
| 26.777778 | 120 | 0.643154 | Jakgn |
931f7a28603651a2203a309bde1bea50b5fcfdca | 2,002 | cpp | C++ | source/log/Layout.cpp | intive/StudyBox_CV | 5ea9b643177667ebdc9809f28db6705b308409f4 | [
"Apache-2.0"
] | 3 | 2016-03-07T09:40:49.000Z | 2018-05-29T16:13:10.000Z | source/log/Layout.cpp | intive/StudyBox_CV | 5ea9b643177667ebdc9809f28db6705b308409f4 | [
"Apache-2.0"
] | 38 | 2016-03-06T20:44:46.000Z | 2016-05-18T19:16:40.000Z | source/log/Layout.cpp | blstream/StudyBox_CV | 5ea9b643177667ebdc9809f28db6705b308409f4 | [
"Apache-2.0"
] | 10 | 2016-03-10T21:30:18.000Z | 2016-04-20T07:01:12.000Z | #define _CRT_SECURE_NO_WARNINGS
#include "Layout.h"
#include <iomanip>
#include <sstream>
LoggerInfo::LoggerInfo(std::size_t id, std::string name) : loggerId(id), loggerName(name)
{
}
std::size_t LoggerInfo::id() const
{
return loggerId;
}
const std::string& LoggerInfo::name() const
{
return loggerName;
}
T... | 16.683333 | 99 | 0.681818 | intive |
9326fea7cfefb0a2788b7d56c1eb06e083e1505c | 499 | cpp | C++ | src/TEMA VACANTA 2/#11/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/TEMA VACANTA 2/#11/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/TEMA VACANTA 2/#11/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
/*11) Se dă un şir cu n numere naturale. Să se afişeze suma primilor n termeni din şir, apoi suma
primilor n-1 termeni din şir, şi aşa mai departe.*/
using namespace std;
int main()
{
int i, n, v[100], s=0;
cout<<"Scrie nr de elem: ";
cin>>n;
cout<<"Scrie elem vect.: ";
for(i=0... | 19.192308 | 97 | 0.513026 | andrew-miroiu |
9333c21b1adced91325809aac79ac9d81c887635 | 123 | cpp | C++ | examples/op_new_arr_reinterpret_cast.cpp | typegrind/clang-typegrind | 6aa58997883d7973e14644563dc59ff9c34e8ffb | [
"MIT"
] | 2 | 2016-04-12T20:41:15.000Z | 2019-08-26T12:51:51.000Z | examples/op_new_arr_reinterpret_cast.cpp | typegrind/clang-typegrind | 6aa58997883d7973e14644563dc59ff9c34e8ffb | [
"MIT"
] | null | null | null | examples/op_new_arr_reinterpret_cast.cpp | typegrind/clang-typegrind | 6aa58997883d7973e14644563dc59ff9c34e8ffb | [
"MIT"
] | null | null | null | int main(void) {
int* pT = reinterpret_cast<int*>(::operator new[](100));
::operator delete[](pT);
return 0;
}
| 20.5 | 60 | 0.585366 | typegrind |
9335e297ab7455c1f85517ef1b2d632f562ed884 | 3,367 | cpp | C++ | src/wcl/geometry/LineSegment.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/wcl/geometry/LineSegment.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/wcl/geometry/LineSegment.cpp | WearableComputerLab/LibWCL | e1687a8fd2f96bfec3a84221044cfb8b7126a79c | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*-
* Copyright (c) 2008 Michael Marner <michael@20papercups.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... | 32.68932 | 94 | 0.665281 | WearableComputerLab |
933e19a7867d100239d2d38a8ee1850f1c9e0db5 | 8,128 | cpp | C++ | src/ui-yml/StyleParser.cpp | raptoravis/two | 4366fcf8b3072d0233eb8e1e91ac1105194f60f5 | [
"Zlib"
] | null | null | null | src/ui-yml/StyleParser.cpp | raptoravis/two | 4366fcf8b3072d0233eb8e1e91ac1105194f60f5 | [
"Zlib"
] | null | null | null | src/ui-yml/StyleParser.cpp | raptoravis/two | 4366fcf8b3072d0233eb8e1e91ac1105194f60f5 | [
"Zlib"
] | null | null | null | // Copyright (c) 2019 Hugo Amiard hugo.amiard@laposte.net
// This software is provided 'as-is' under the zlib License, see the LICENSE.txt file.
// This notice and the license may not be removed or altered from any source distribution.
#include <infra/Cpp20.h>
#ifdef TWO_MODULES
module two.ui;
#else
#include <tree... | 28.519298 | 134 | 0.687008 | raptoravis |
93420c8cdc83e0718039a9b1fe1d15a10bced00f | 1,484 | hpp | C++ | include/math/constants.hpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | 1 | 2020-09-19T14:48:32.000Z | 2020-09-19T14:48:32.000Z | include/math/constants.hpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | null | null | null | include/math/constants.hpp | tomreddell/Hamilton | eec6e423f829a559237583803d11fbe06489a9b9 | [
"MIT"
] | 1 | 2021-01-01T02:23:55.000Z | 2021-01-01T02:23:55.000Z | #pragma once
#include "math/core_math.hpp"
/**
* @file constants.hpp
*/
/// Speed of light in vacuum (m/s)
constexpr double SPEED_LIGHT = 299792458.0;
namespace Earth
{
/// Earth mass (kg)
constexpr double MASS = 5.9722E24;
/// Earth gravitational consta... | 30.916667 | 76 | 0.582884 | tomreddell |
9343a5d6ea3bdc05162932d0111c8febf06d086d | 4,414 | cc | C++ | src/kudu/tserver/tablet_server_options.cc | luqun/kuduraft | a0746471a6a85e9d8ccb947a866eaf1a60159f8f | [
"Apache-2.0"
] | null | null | null | src/kudu/tserver/tablet_server_options.cc | luqun/kuduraft | a0746471a6a85e9d8ccb947a866eaf1a60159f8f | [
"Apache-2.0"
] | null | null | null | src/kudu/tserver/tablet_server_options.cc | luqun/kuduraft | a0746471a6a85e9d8ccb947a866eaf1a60159f8f | [
"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... | 37.40678 | 102 | 0.678749 | luqun |
9348d26c132c0f094f2739746278bbe6311ecb15 | 523 | cpp | C++ | C++/camera.cpp | Galaco/BTLRN_XTRM | c55405d5a36a44a8b1e3def555de9ec10027625b | [
"Unlicense"
] | null | null | null | C++/camera.cpp | Galaco/BTLRN_XTRM | c55405d5a36a44a8b1e3def555de9ec10027625b | [
"Unlicense"
] | null | null | null | C++/camera.cpp | Galaco/BTLRN_XTRM | c55405d5a36a44a8b1e3def555de9ec10027625b | [
"Unlicense"
] | null | null | null | #include "camera.h"
float zCamPos = -250.0;
Camera::Camera(){
posX = 0;
posY = 0;
}
void Camera::zoom( int d ){
zCamPos += d;
if ( ( zCamPos > CAMERAMINZOOM ) || ( zCamPos < CAMERAMAXZOOM ) ) // Check bounds for min and max camera distance
{
zCamPos -= d;
}
}
void Camera::update( flo... | 19.37037 | 117 | 0.58891 | Galaco |
934924abe6cb1e79d292b4d63694dadc739b48f3 | 1,106 | cpp | C++ | src/engine/graphics/vulkan/validationlayers.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/vulkan/validationlayers.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | src/engine/graphics/vulkan/validationlayers.cpp | dmfedorin/ubiquitility | f3a1062d2489ffd48889bff5fc8062c05706a946 | [
"MIT"
] | null | null | null | #include "validationlayers.hpp"
ValidationLayers::ValidationLayers(bool enabled)
:
enabled(enabled)
{
}
auto ValidationLayers::is_enabled(void) const noexcept -> bool
{
return enabled;
}
auto ValidationLayers::check_layer_support(void) const -> void
{
uint32_t avl_layer_cnt;
vkEnumerateInstan... | 28.358974 | 78 | 0.637432 | dmfedorin |
934edb92dbeebeb47901d3440274a97adc4fb6c8 | 462 | cpp | C++ | solutions/beecrowd/1253/1253.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 18 | 2015-01-22T04:08:51.000Z | 2022-01-08T22:36:47.000Z | solutions/beecrowd/1253/1253.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 4 | 2016-04-25T12:32:46.000Z | 2021-06-15T18:01:30.000Z | solutions/beecrowd/1253/1253.cpp | deniscostadsc/playground | 11fa8e2b708571940451f005e1f55af0b6e5764a | [
"MIT"
] | 25 | 2015-03-02T06:21:51.000Z | 2021-09-12T20:49:21.000Z | #include <cstdint>
#include <iostream>
#include <string>
int main() {
uint16_t i;
int16_t n, c;
std::string a = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ";
std::string s;
std::cin >> n;
while (n--) {
std::cin >> s;
std::cin >> c;
for (i = 0; i <= s.length(... | 17.769231 | 75 | 0.493506 | deniscostadsc |
9352b47a643cade9cfedd9552c153be445a4b29f | 11,258 | hpp | C++ | examples/segway_dynamics.hpp | yamaha-bps/cbr_control | c2faf79673d46c950dd7590f1072fc7decafad06 | [
"MIT"
] | null | null | null | examples/segway_dynamics.hpp | yamaha-bps/cbr_control | c2faf79673d46c950dd7590f1072fc7decafad06 | [
"MIT"
] | null | null | null | examples/segway_dynamics.hpp | yamaha-bps/cbr_control | c2faf79673d46c950dd7590f1072fc7decafad06 | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_control/blob/master/LICENSE
#ifndef SEGWAY_DYNAMICS_HPP_
#define SEGWAY_DYNAMICS_HPP_
#include <Eigen/Dense>
// template here over some type
template<typename T1, typename T2>
auto segway_dynamics(const Eigen::MatrixBase<T1> & x, const Eige... | 20.211849 | 100 | 0.373601 | yamaha-bps |
9354b445599df8416c9c0a56d46a23ac4e56edfc | 600 | cpp | C++ | tutoriat-04-virtual-rtti/Subiecte examen/rezolvate/2.cpp | Tutoring-OOP-RM/Tutoring-OOP | f8709acbbe4a0fc0f869d95e3666c15f0332ddb8 | [
"MIT"
] | 4 | 2021-03-11T09:34:07.000Z | 2021-03-11T16:11:34.000Z | tutoriat-04-virtual-rtti/Subiecte examen/rezolvate/2.cpp | Tutoring-OOP-RM/Tutoring-OOP | f8709acbbe4a0fc0f869d95e3666c15f0332ddb8 | [
"MIT"
] | null | null | null | tutoriat-04-virtual-rtti/Subiecte examen/rezolvate/2.cpp | Tutoring-OOP-RM/Tutoring-OOP | f8709acbbe4a0fc0f869d95e3666c15f0332ddb8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class B {
public:
int x;
B(int i = 16) { x = i; }
B f(B ob) { return x + ob.x; }
};
class D : public B {
public:
D(int i = 25) { x = i; }
D f(D ob) { return x + ob.x + 1; }
void afisare() { cout << x; }
};
int main()
{
D *p1 = new D;
// LA p2 SE INCEARCA UN DOWNCAST ... | 20.689655 | 102 | 0.525 | Tutoring-OOP-RM |
935ae248a1bcee611fae546b2d549b2905f20536 | 9,797 | cc | C++ | aku/vtln.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | aku/vtln.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | aku/vtln.cc | phsmit/AaltoASR | 33cb58b288cc01bcdff0d6709a296d0dfcc7f74a | [
"BSD-3-Clause"
] | null | null | null | #include <math.h>
#include <string>
#include "io.hh"
#include "str.hh"
#include "conf.hh"
#include "HmmSet.hh"
#include "FeatureGenerator.hh"
#include "PhnReader.hh"
#include "Recipe.hh"
#include "SpeakerConfig.hh"
using namespace aku;
#define TINY 1e-10
std::string save_summary_file;
int info;
float grid_start;
... | 32.656667 | 101 | 0.597224 | phsmit |
935c5f36446a5daa029cb16ae2915b9374a805ea | 4,983 | cpp | C++ | zircon/system/utest/fuzz-utils/string-list.cpp | yanyushr/fuchsia | 98e70672a81a206d235503e398f37b7b65581f79 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/utest/fuzz-utils/string-list.cpp | yanyushr/fuchsia | 98e70672a81a206d235503e398f37b7b65581f79 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/utest/fuzz-utils/string-list.cpp | yanyushr/fuchsia | 98e70672a81a206d235503e398f37b7b65581f79 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Fuchsia 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 <fuzz-utils/string-list.h>
#include <unittest/unittest.h>
namespace fuzzing {
namespace testing {
namespace {
#define arraysize(x) sizeof(x) / s... | 26.365079 | 77 | 0.627333 | yanyushr |
935c99d810297c48a0b863ea0ae967f368f9a7a7 | 330 | cpp | C++ | HDU/20/hdu2030.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2017-08-19T16:02:15.000Z | 2017-08-19T16:02:15.000Z | HDU/20/hdu2030.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | null | null | null | HDU/20/hdu2030.cpp | bilibiliShen/CodeBank | 49a69b2b2c3603bf105140a9d924946ed3193457 | [
"MIT"
] | 1 | 2018-01-05T23:37:23.000Z | 2018-01-05T23:37:23.000Z | #include <stdio.h>
#include <string.h>
int main(void)
{
int n;
int count;
char c;
scanf("%d%*c", &n);
while (n--)
{
count = 0;
while ((c = getchar()) != '\n')
{
if (c < 0)
count++;
}
printf("%d\n", count / 2);
}
re... | 12.222222 | 39 | 0.360606 | bilibiliShen |
93625ea160c92b5193dbc25e890a27fb6f2d3c33 | 1,658 | cpp | C++ | src/ui/components/frontiers_renderer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/ui/components/frontiers_renderer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/ui/components/frontiers_renderer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 26.741935 | 117 | 0.728589 | anuranbaka |
9364ef2b32068883c5690a74afafab760d044879 | 636 | cpp | C++ | 7/char*replace.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | 1 | 2020-10-12T12:00:08.000Z | 2020-10-12T12:00:08.000Z | 7/char*replace.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | null | null | null | 7/char*replace.cpp | tangxiangru/NOIP | 6c756df37e5cb6105f5d5eb0fd9b03a4ef8407e4 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <string.h>
char *Replace(char *str, char *substr, char *newstr);
void main()
{
char a[80], b[80], c[80], *d;
gets(a);
gets(b);
gets(c);
d = Replace(a, b, c);
printf("%s", a);
}
char *Replace(char *str, char *substr, char *newstr)
{
int a, b, i, j, k, flag = 1;
... | 17.666667 | 54 | 0.45283 | tangxiangru |
9367af30344007cbbc912c8e26fd2890948e8f27 | 1,900 | cpp | C++ | W2D5/f2.cpp | MartrixG/2019-summer-OI | 4765533f4a373f6f277c1309c534050e52d631d8 | [
"MIT"
] | null | null | null | W2D5/f2.cpp | MartrixG/2019-summer-OI | 4765533f4a373f6f277c1309c534050e52d631d8 | [
"MIT"
] | null | null | null | W2D5/f2.cpp | MartrixG/2019-summer-OI | 4765533f4a373f6f277c1309c534050e52d631d8 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
using namespace std;
struct node
{
int max;
int l, r;
node *lc;
node *rc;
};
int max(int a, int b) { return a > b ? a : b; }
void build(node *root, int l, int r)
{
root->l = l;
root->r = r;
if (l == r)
{
... | 19.791667 | 69 | 0.423684 | MartrixG |
9369374d15e2f717b63c5f7961f1fa454a2199d8 | 5,412 | hpp | C++ | src/utils/utils.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2020-04-10T14:39:00.000Z | 2021-02-11T15:52:16.000Z | src/utils/utils.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 2 | 2019-12-17T08:50:20.000Z | 2020-02-03T09:37:56.000Z | src/utils/utils.hpp | TiWinDeTea/NinjaClown | fdd48e62466f11036fa0360fad2bcb182d6d3352 | [
"MIT"
] | 1 | 2020-08-19T03:06:52.000Z | 2020-08-19T03:06:52.000Z | #ifndef NINJACLOWN_UTILS_UTILS_HPP
#define NINJACLOWN_UTILS_UTILS_HPP
#include <algorithm>
#include <charconv>
#include <functional>
#include <optional>
#include <string_view>
#include <type_traits>
#include <cstddef>
namespace utils {
using ssize_t = std::make_signed_t<std::size_t>;
inline bool starts_with(std::str... | 30.234637 | 130 | 0.68422 | TiWinDeTea |
936bc1c905f2db19d372803b59d6f7029abea133 | 4,186 | cc | C++ | third_party/blink/renderer/core/paint/compositing/paint_layer_compositor_test.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | third_party/blink/renderer/core/paint/compositing/paint_layer_compositor_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/core/paint/compositing/paint_layer_compositor_test.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/paint/compositing/paint_layer_compositor.h"
#include "third_party/blink/renderer/core/animation/animation.h"
#i... | 36.719298 | 87 | 0.723125 | zipated |
936dc75b3cfc04cdf53f38c65ad4f277d5e998a9 | 1,513 | cc | C++ | skiko/src/commonMain/cpp/generated/PathSegmentIterator.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 842 | 2020-07-27T11:38:31.000Z | 2022-03-30T17:37:21.000Z | skiko/src/commonMain/cpp/generated/PathSegmentIterator.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 127 | 2020-09-17T08:12:40.000Z | 2022-03-31T08:56:56.000Z | skiko/src/commonMain/cpp/generated/PathSegmentIterator.cc | sellmair/skiko | 9ccc6234799558386ccfa00630600e02c8eb62f9 | [
"Apache-2.0"
] | 49 | 2020-07-27T16:48:56.000Z | 2022-03-24T14:15:33.000Z | #include "SkPath.h"
#include "common.h"
SKIKO_EXPORT KNativePointer org_jetbrains_skia_PathSegmentIterator__1nMake
(KNativePointer pathPtr, KBoolean forceClose) {
SkPath* path = reinterpret_cast<SkPath*>(pathPtr);
SkPath::Iter* iter = new SkPath::Iter(*path, forceClose);
return reinterpret_cast<KNativePo... | 30.26 | 98 | 0.66226 | sellmair |
936f32f4905b9a290905efd784be3b3828368b0d | 178,176 | cc | C++ | libcpp/Include/Proto/Qot_StockFilter.pb.cc | stephenlyu/gofutuapi | 1a60310dd142ac7049c9ef9cf22c7d78d0f880ef | [
"MIT"
] | 2 | 2020-11-27T04:53:13.000Z | 2021-11-15T02:15:27.000Z | libcpp/Include/Proto/Qot_StockFilter.pb.cc | stephenlyu/gofutuapi | 1a60310dd142ac7049c9ef9cf22c7d78d0f880ef | [
"MIT"
] | null | null | null | libcpp/Include/Proto/Qot_StockFilter.pb.cc | stephenlyu/gofutuapi | 1a60310dd142ac7049c9ef9cf22c7d78d0f880ef | [
"MIT"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: Qot_StockFilter.proto
#include "Qot_StockFilter.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#inc... | 35.191784 | 131 | 0.700336 | stephenlyu |
93725088b78cf054fd20e520c993f4e21abdadfb | 636 | cpp | C++ | TC/TCHS-53-250.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | TC/TCHS-53-250.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | TC/TCHS-53-250.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#define REP(i, j) for(i = 0; i < j; i++)
using namespace std;
class DNAConstruction {
public:
int maxLength(string n) {
int ans = 0, i, numA = 0, numT = 0, numC = 0, numG = 0;
REP(i, n.size()) {
if(n[i] == 'A') {
numA++;
}if(n[i... | 14.454545 | 57 | 0.512579 | aajjbb |
937976edbd5c1b989c74bf779298157b387a6984 | 9,346 | cpp | C++ | src/codegen.cpp | steakhal/wcomp | b52c1b77edc8f5242fd08338a9c72e5a9a709a46 | [
"MIT"
] | null | null | null | src/codegen.cpp | steakhal/wcomp | b52c1b77edc8f5242fd08338a9c72e5a9a709a46 | [
"MIT"
] | null | null | null | src/codegen.cpp | steakhal/wcomp | b52c1b77edc8f5242fd08338a9c72e5a9a709a46 | [
"MIT"
] | null | null | null | #include "cfg.h"
#include "expressions.h"
#include "statements.h"
#include "typecheck.h"
#include "utility.h"
#include <algorithm>
#include <cassert>
#include <iostream>
#include <optional>
#include <random>
#include <set>
#include <sstream>
#include <string_view>
namespace {
class symbols_to_asm {
std::ostream &ss... | 30.344156 | 80 | 0.543976 | steakhal |
937cd31d317ac36ff42be4b7c6dcb90929f9f525 | 3,836 | cpp | C++ | leetcode/last-stone-weight.cpp | jcpince/algorithms | c43dd8e98a0f0df691ead5f25c2c17a9241db908 | [
"MIT"
] | null | null | null | leetcode/last-stone-weight.cpp | jcpince/algorithms | c43dd8e98a0f0df691ead5f25c2c17a9241db908 | [
"MIT"
] | null | null | null | leetcode/last-stone-weight.cpp | jcpince/algorithms | c43dd8e98a0f0df691ead5f25c2c17a9241db908 | [
"MIT"
] | null | null | null | /*
Last Stone Weight
We have a collection of stones, each stone has a positive integer weight.
Each turn, we choose the two heaviest stones and smash them together. Suppose the stones have weights x and y with x <= y. The result of this smash is:
If x == y, both stones are totally destroyed;
If x != y, the... | 29.507692 | 153 | 0.576903 | jcpince |
937d9e50dcd2cb71731073d945c9f0d633dd3a4c | 42,009 | cpp | C++ | libraries/VAL/src/TimSupport.cpp | tmigimatsu/VAL | 473c90067fceb136abd8bb11660d50fa1d38a040 | [
"BSD-3-Clause"
] | null | null | null | libraries/VAL/src/TimSupport.cpp | tmigimatsu/VAL | 473c90067fceb136abd8bb11660d50fa1d38a040 | [
"BSD-3-Clause"
] | null | null | null | libraries/VAL/src/TimSupport.cpp | tmigimatsu/VAL | 473c90067fceb136abd8bb11660d50fa1d38a040 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 - University of Strathclyde, King's College London and Schlumberger Ltd
// This source code is licensed under the BSD license found in the LICENSE file in the root directory of this source tree.
#include "TimSupport.h"
#include "FastEnvironment.h"
#include "Partitions.h"
#include "ptree.h"
#include <... | 30.798387 | 122 | 0.558214 | tmigimatsu |
937ef1f4b01111547029f076d6f0900bb2256e10 | 6,244 | hpp | C++ | utils/convsym/input/AS_Listing.hpp | vladikcomper/md-modules | 24f652a036dc63f295173369dddfffb3be89bdd7 | [
"MIT"
] | 9 | 2018-01-22T06:44:43.000Z | 2022-03-26T18:57:40.000Z | utils/convsym/input/AS_Listing.hpp | vladikcomper/md-modules | 24f652a036dc63f295173369dddfffb3be89bdd7 | [
"MIT"
] | null | null | null | utils/convsym/input/AS_Listing.hpp | vladikcomper/md-modules | 24f652a036dc63f295173369dddfffb3be89bdd7 | [
"MIT"
] | null | null | null |
/* ------------------------------------------------------------ *
* ConvSym utility version 2.7 *
* Input wrapper for the AS listing format *
* ------------------------------------------------------------ */
struct Input__AS_Listing : public InputWrapper {
Input__AS_Listing() : InputWrapper() { /... | 39.27044 | 142 | 0.603459 | vladikcomper |
937f520ec2e8b59618931f94b3c31d1372db1b4e | 97 | cpp | C++ | cpp-old/lib/html/uri_map.cpp | boryas/hcppd | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | 1 | 2018-08-25T08:10:07.000Z | 2018-08-25T08:10:07.000Z | cpp-old/lib/html/uri_map.cpp | boryas/hcppd | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | 22 | 2016-09-21T05:46:18.000Z | 2016-12-18T04:05:18.000Z | cpp-old/lib/html/uri_map.cpp | boryas/ssfs | 86e7418bb5b6852e448d1f1a60029d2798c0b838 | [
"MIT"
] | null | null | null | #include "uri_map.h"
namespace ssfs {
namespace html {
} // namespace html
} // namespace ssfs
| 12.125 | 20 | 0.690722 | boryas |
93836cdfcd44be54ec3a233732f609adb087e450 | 2,317 | cpp | C++ | Source/Scene/LightProbeNode.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | 6 | 2021-10-31T14:43:04.000Z | 2022-03-12T12:56:27.000Z | Source/Scene/LightProbeNode.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | null | null | null | Source/Scene/LightProbeNode.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Ammar Herzallah
//
// 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, publis... | 23.40404 | 81 | 0.761761 | PolyAH |
9387d45fa3768e77f825af46d81ffcb76b10d07e | 16,669 | cc | C++ | content/renderer/media/media_stream_video_source_unittest.cc | anirudhSK/chromium | a8f23c87e656ab9ba49de9ccccbc53f614cdcb41 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/renderer/media/media_stream_video_source_unittest.cc | anirudhSK/chromium | a8f23c87e656ab9ba49de9ccccbc53f614cdcb41 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/renderer/media/media_stream_video_source_unittest.cc | anirudhSK/chromium | a8f23c87e656ab9ba49de9ccccbc53f614cdcb41 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-04-17T13:19:09.000Z | 2021-10-21T12:55:15.000Z | // Copyright 2014 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 <string>
#include <vector>
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "conten... | 42.741026 | 80 | 0.758534 | anirudhSK |
938b6958a01ceaf9e93de67c5cf8d79b78e5fdfb | 7,668 | cpp | C++ | test/oauth1_unittests.cpp | ColdOrange/http-cpp | dda4f41032485d23bc33200834e3cb2957212da3 | [
"MIT"
] | 3 | 2016-05-17T11:40:55.000Z | 2018-06-05T11:06:44.000Z | test/oauth1_unittests.cpp | ColdOrange/http-cpp | dda4f41032485d23bc33200834e3cb2957212da3 | [
"MIT"
] | 3 | 2015-01-06T09:36:27.000Z | 2018-09-03T20:10:37.000Z | test/oauth1_unittests.cpp | ColdOrange/http-cpp | dda4f41032485d23bc33200834e3cb2957212da3 | [
"MIT"
] | 9 | 2015-01-06T02:00:21.000Z | 2022-02-21T14:47:08.000Z | //
// The MIT License (MIT)
//
// Copyright (c) 2013 by Konstantin (Kosta) Baumann & Autodesk Inc.
//
// 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... | 44.323699 | 125 | 0.700052 | ColdOrange |
939325fe795f85146d7d143f1a4f39c67c941ad5 | 30,206 | cc | C++ | inet/src/inet/routing/ospfv3/neighbor/Ospfv3Neighbor.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/routing/ospfv3/neighbor/Ospfv3Neighbor.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | null | null | null | inet/src/inet/routing/ospfv3/neighbor/Ospfv3Neighbor.cc | ntanetani/quisp | 003f85746266d2eb62c66883e5b965b654672c70 | [
"BSD-3-Clause"
] | 1 | 2021-07-02T13:32:40.000Z | 2021-07-02T13:32:40.000Z |
#include "inet/routing/ospfv3/neighbor/Ospfv3Neighbor.h"
#include "inet/routing/ospfv3/neighbor/Ospfv3NeighborStateDown.h"
namespace inet {
namespace ospfv3 {
// FIXME!!! Should come from a global unique number generator module.
unsigned long Ospfv3Neighbor::ddSequenceNumberInitSeed = 0;
Ospfv3Neighbor::Ospfv3Neigh... | 41.378082 | 185 | 0.63782 | ntanetani |
939440a5a5e256ffb670a6e4fcd62514dfc8ae2a | 449 | cc | C++ | exercises/ALLOC_DINAMICA/prova.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | 3 | 2021-11-05T16:25:50.000Z | 2022-02-10T14:06:00.000Z | exercises/ALLOC_DINAMICA/prova.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | null | null | null | exercises/ALLOC_DINAMICA/prova.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | 2 | 2018-10-31T14:53:40.000Z | 2020-01-09T22:34:37.000Z | using namespace std;
#include <iostream>
int main ()
{
int * a;
int n,i;
cout << (long) &n << endl;
do {
cout << "quanti elementi? (0 per terminare): " ;
cin >> n;
a = new int[n];
for (i=0;i<n;i++){
cout << i+1 << ": ";
cin >> a[i];
}
for (i=0;i<n;i++){
cout << a[i] ... | 17.96 | 55 | 0.418708 | mfranzil |
93993bb30f15993cbdc60848b885d9a9ed9d6433 | 29,949 | cpp | C++ | Sample/TexturedPlate/TexturedPlate.cpp | po2xel/vkpp | 04cf67cefa4e967fc234378da06366d66447c335 | [
"MIT"
] | 5 | 2017-04-05T13:29:40.000Z | 2018-04-10T21:04:51.000Z | Sample/TexturedPlate/TexturedPlate.cpp | po2xel/vkpp | 04cf67cefa4e967fc234378da06366d66447c335 | [
"MIT"
] | null | null | null | Sample/TexturedPlate/TexturedPlate.cpp | po2xel/vkpp | 04cf67cefa4e967fc234378da06366d66447c335 | [
"MIT"
] | null | null | null | #include "TexturedPlate.h"
namespace vkpp::sample
{
TexturedPlate::TexturedPlate(CWindow& aWindow, const char* apApplicationName, uint32_t aApplicationVersion, const char* apEngineName, uint32_t aEngineVersion)
: ExampleBase(aWindow, apApplicationName, aApplicationVersion, apEngineName, aEngineVersion),
... | 34.424138 | 169 | 0.666934 | po2xel |
9399c81a999864698b991e622d333e5335e5ca59 | 906 | cpp | C++ | Duno/Duno-Core/Graphics/renderEngine/GLEntityReflectiveRenderer.cpp | DunoGameEngine/Duno | f6c0fd5371a73ccb5ea1ba78540854b831b75b7f | [
"Apache-2.0"
] | null | null | null | Duno/Duno-Core/Graphics/renderEngine/GLEntityReflectiveRenderer.cpp | DunoGameEngine/Duno | f6c0fd5371a73ccb5ea1ba78540854b831b75b7f | [
"Apache-2.0"
] | null | null | null | Duno/Duno-Core/Graphics/renderEngine/GLEntityReflectiveRenderer.cpp | DunoGameEngine/Duno | f6c0fd5371a73ccb5ea1ba78540854b831b75b7f | [
"Apache-2.0"
] | null | null | null | #include "GLEntityReflectiveRenderer.h"
#include "GLTextureLoader.h"
#include <iostream>
using namespace std;
/* Define all uniform location handles */
#define CUBE_MAP 6
#define CAMERA_POSITION 7
GLEntityReflectiveRenderer::GLEntityReflectiveRenderer(GLTexture* cubeMap):
GLEntityRenderer("entity/reflectiv... | 30.2 | 88 | 0.735099 | DunoGameEngine |
939a77b5b4183acd140baecb92329ef7294c17f6 | 31,105 | cpp | C++ | emulator/src/mame/drivers/lindbergh.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | 1 | 2022-01-15T21:38:38.000Z | 2022-01-15T21:38:38.000Z | emulator/src/mame/drivers/lindbergh.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | emulator/src/mame/drivers/lindbergh.cpp | rjw57/tiw-computer | 5ef1c79893165b8622d1114d81cd0cded58910f0 | [
"MIT"
] | null | null | null | // license:BSD-3-Clause
// copyright-holders:Olivier Galibert
/***************************************************************************
Sega Lindbergh skeleton driver
TODO:
- tests area 0xd0000 - 0xd000f, wants an undumped ROM in there?
- Apparently there's no way to avoid a dead lock at 0xfd085, p... | 49.216772 | 191 | 0.553191 | rjw57 |
939c55a2b6c312de1bdc90ecd3bb4d66bd403efe | 98 | cpp | C++ | Arrays/test.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/test.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | Arrays/test.cpp | sans712/SDE-Interview-Questions | 44f5bda60b9ed301b93a944e1c333d833c9b054b | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstring>
#include<algorithm>
using namespace std;
int main() {
} | 8.166667 | 20 | 0.704082 | sans712 |
4d36b3887a70c499e0c5783f4c75ed2fe0b3bd5b | 226 | cpp | C++ | sumofdigits.cpp | deepanshu1422/450Questions | 614a6bcb66f3202a62c375c0c0a63365e1021110 | [
"Apache-2.0"
] | null | null | null | sumofdigits.cpp | deepanshu1422/450Questions | 614a6bcb66f3202a62c375c0c0a63365e1021110 | [
"Apache-2.0"
] | null | null | null | sumofdigits.cpp | deepanshu1422/450Questions | 614a6bcb66f3202a62c375c0c0a63365e1021110 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int sumofdigits(int a)
{
if(a/10==0)
{
return a;
}
int sum=a%10+sumofdigits(a/10);
return sum;
}
int main()
{
int b =sumofdigits(123);
cout<<b;
} | 10.761905 | 35 | 0.553097 | deepanshu1422 |
4d36bae1fed44345c75187bc870290e0a6a85b3e | 1,486 | cpp | C++ | Sid's Levels/Level - 2/Matrix/MedianInRowSortedMatrix.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Levels/Level - 2/Matrix/MedianInRowSortedMatrix.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Levels/Level - 2/Matrix/MedianInRowSortedMatrix.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | // { Driver Code Starts
//Initial template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, ... | 21.536232 | 83 | 0.446164 | Tiger-Team-01 |
4d37043ea5d0e06ef78be33c6c267f27286a6ca8 | 6,383 | cpp | C++ | src/obproxy/prometheus/ob_prometheus_convert.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 74 | 2021-05-31T15:23:49.000Z | 2022-03-12T04:46:39.000Z | src/obproxy/prometheus/ob_prometheus_convert.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 16 | 2021-05-31T15:26:38.000Z | 2022-03-30T06:02:43.000Z | src/obproxy/prometheus/ob_prometheus_convert.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 64 | 2021-05-31T15:25:36.000Z | 2022-02-23T08:43:58.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... | 35.265193 | 125 | 0.674448 | stutiredboy |
4d385212911a25588c981d9a91d6b2406b043228 | 2,757 | hpp | C++ | gloom/src/scene_graph/util.hpp | Stektpotet/gloom | fcb6e031d573be029dd829d8e4fc0a97feb22687 | [
"MIT"
] | null | null | null | gloom/src/scene_graph/util.hpp | Stektpotet/gloom | fcb6e031d573be029dd829d8e4fc0a97feb22687 | [
"MIT"
] | null | null | null | gloom/src/scene_graph/util.hpp | Stektpotet/gloom | fcb6e031d573be029dd829d8e4fc0a97feb22687 | [
"MIT"
] | null | null | null | #pragma once
#include "../mesh.hpp"
#include "SceneNode.hpp"
// Creates an empty SceneNode instance.
template<typename TNode, typename... Args>
TNode* createSceneNode(Args... ctorArgs) {
return new TNode(std::forward<Args>(ctorArgs)...);
}
// Transfer the mesh to the GPU
template<typename TNode>
void ... | 39.385714 | 109 | 0.657236 | Stektpotet |
4d3a2e90b6bae0a4adfb57f1a0910c6bfaf45ac2 | 3,229 | cpp | C++ | code/engine.vc2008/xrGame/MosquitoBald.cpp | ipl-adm/xray-oxygen | 3ae4d4911f5b000e93bdf108eb68db25315b2fc6 | [
"Apache-2.0"
] | 1 | 2021-06-15T13:04:36.000Z | 2021-06-15T13:04:36.000Z | code/engine.vc2008/xrGame/MosquitoBald.cpp | ipl-adm/xray-oxygen | 3ae4d4911f5b000e93bdf108eb68db25315b2fc6 | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrGame/MosquitoBald.cpp | ipl-adm/xray-oxygen | 3ae4d4911f5b000e93bdf108eb68db25315b2fc6 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "mosquitobald.h"
#include "../xrParticles/psystem.h"
#include "../xrParticles/ParticlesObject.h"
#include "level.h"
#include "physicsshellholder.h"
#include "../xrengine/xr_collide_form.h"
CMosquitoBald::CMosquitoBald(void)
{
m_fHitImpulseScale = 1.f;
m_bLastBlowoutUpdate = false;
}
C... | 24.097015 | 102 | 0.709508 | ipl-adm |
4d4076d8d6f4bf2200eaeb83026467c1a9a295ed | 2,518 | cpp | C++ | MSP2007/MSP2007Ppg.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | MSP2007/MSP2007Ppg.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | MSP2007/MSP2007Ppg.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------------------
// COPYRIGHT NOTICE
// ----------------------------------------------------------------------------------------
//
// The Source Code Store LLC
// ACTIVEGANTT SCHEDULER COMPONENT FOR C++ - ActiveGan... | 31.08642 | 92 | 0.542097 | jluzardo1971 |
4d4145b043ef5da2e8c43bed3e9b748aefd458ec | 3,324 | cc | C++ | hackt_docker/hackt/src/Object/ref/reference_set.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/ref/reference_set.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/ref/reference_set.cc | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/ref/reference_set.cc"
$Id: reference_set.cc,v 1.4 2010/04/02 22:18:46 fang Exp $
*/
#include "Object/ref/reference_set.hh"
#include <iostream>
#include <functional>
#include <algorithm>
#include "Object/entry_collection.hh"
#include "Object/traits/instance_traits.hh"
#include "util/iterator_more.h... | 26.592 | 79 | 0.586342 | broken-wheel |