hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200102719300a9f6475e961079b2674f4ca4c645 | 781 | cpp | C++ | c/tests/max_points_on_a_line_test.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 4 | 2018-03-05T02:27:16.000Z | 2021-03-15T14:19:44.000Z | c/tests/max_points_on_a_line_test.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | null | null | null | c/tests/max_points_on_a_line_test.cpp | qianbinbin/leetcode | 915cecab0c940cd13847683ec55b17b77eb0f39b | [
"MIT"
] | 2 | 2018-07-22T10:32:10.000Z | 2018-10-20T03:14:28.000Z | #include <gtest/gtest.h>
extern "C" {
#include "max_points_on_a_line.h"
}
#define ARR_SIZE(a) (sizeof(a) / sizeof((a)[0]))
typedef struct Point point;
static point point_create(int x, int y) {
point p;
p.x = x;
p.y = y;
return p;
}
TEST(max_points_on_a_line_test, maxPoints_149_1) {
point points... | 21.694444 | 62 | 0.568502 |
20018b19d78840a26a6af63ad75e218a8eba73cd | 5,266 | cc | C++ | third_party/blink/renderer/modules/mediastream/input_device_info.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/modules/mediastream/input_device_info.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | third_party/blink/renderer/modules/mediastream/input_device_info.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/mediastream/input_device_info.h"
#include <algorithm>
#include "third_party/blink/renderer/modules/mediastre... | 38.720588 | 84 | 0.701101 |
2002db0faa04c7cbb83a2d9acf6bcb78b4a028bd | 2,966 | cpp | C++ | 06-class-design/readerEx.06.06/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 81 | 2018-11-15T21:23:19.000Z | 2022-03-06T09:46:36.000Z | 06-class-design/readerEx.06.06/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | null | null | null | 06-class-design/readerEx.06.06/main.cpp | heavy3/programming-abstractions | e10eab5fe7d9ca7d7d4cc96551524707214e43a8 | [
"MIT"
] | 41 | 2018-11-15T21:23:24.000Z | 2022-02-24T03:02:26.000Z | // TODO: FIX ME! Does not handle delta between dates correctly.
//
// main.cpp
//
// This program exercises the Calendar interface exported in calendar.h.
//
// --------------------------------------------------------------------------
// Attribution: "Programming Abstractions in C++" by Eric Roberts
// Chapter 6, Exe... | 31.892473 | 91 | 0.50472 |
200ad447b6ce9a7cbfba11e1533a560bb8b364fc | 8,702 | cpp | C++ | Geometry/Geomlib_TriMeshPlaneIntersection.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 28 | 2017-03-01T04:09:18.000Z | 2022-02-01T13:33:50.000Z | Geometry/Geomlib_TriMeshPlaneIntersection.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 3 | 2017-03-09T05:22:49.000Z | 2017-08-02T18:38:05.000Z | Geometry/Geomlib_TriMeshPlaneIntersection.cpp | elix22/IogramSource | 3a4ce55d94920e060776b4aa4db710f57a4280bc | [
"MIT"
] | 17 | 2017-03-01T14:00:01.000Z | 2022-02-08T06:36:54.000Z | //
// Copyright (c) 2016 - 2017 Mesh Consultants 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 without limitation the rights
// to use, copy, mod... | 25.976119 | 137 | 0.688348 |
200ae272cc1adb37009bf64dc648c03075bdad2c | 8,195 | cpp | C++ | src/rotoSolver/fileUtils.cpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 47 | 2016-07-27T07:22:06.000Z | 2021-08-17T13:08:19.000Z | src/rotoSolver/fileUtils.cpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 1 | 2016-09-24T06:04:39.000Z | 2016-09-25T10:34:19.000Z | src/rotoSolver/fileUtils.cpp | vinben/Rotopp | f0c25db5bd25074c55ff0f67539a2452d92aaf72 | [
"Unlicense"
] | 13 | 2016-07-27T10:44:35.000Z | 2020-07-01T21:08:33.000Z | /**************************************************************************
** This file is a part of our work (Siggraph'16 paper, binary, code and dataset):
**
** Roto++: Accelerating Professional Rotoscoping using Shape Manifolds
** Wenbin Li, Fabio Viola, Jonathan Starck, Gabriel J. Brostow and Neill D.F. Campbell
*... | 25.29321 | 104 | 0.587065 |
200aeed19c847f9e7f6959f2f19a9af7eee99f9e | 2,251 | cpp | C++ | questions/68721681/app/main.cpp | xGreat/stackoverflow | b9a404a5c93eb764dc58a57484d7b86dc5016579 | [
"MIT"
] | 302 | 2017-03-04T00:05:23.000Z | 2022-03-28T22:51:29.000Z | questions/68721681/app/main.cpp | xGreat/stackoverflow | b9a404a5c93eb764dc58a57484d7b86dc5016579 | [
"MIT"
] | 30 | 2017-12-02T19:26:43.000Z | 2022-03-28T07:40:36.000Z | questions/68721681/app/main.cpp | xGreat/stackoverflow | b9a404a5c93eb764dc58a57484d7b86dc5016579 | [
"MIT"
] | 388 | 2017-07-04T16:53:12.000Z | 2022-03-18T22:20:19.000Z | #include "foointerface.h"
#include <QDir>
#include <QGuiApplication>
#include <QPluginLoader>
#include <QQmlApplicationEngine>
#include <QTimer>
#include <QTranslator>
int main(int argc, char *argv[])
{
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif... | 30.013333 | 97 | 0.646379 |
200d9fcf6cacbb73137ca211017c7b3b49bc9990 | 54,260 | inl | C++ | Code/Engine/Foundation/Basics/Platform/Android/AndroidJni.inl | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 703 | 2015-03-07T15:30:40.000Z | 2022-03-30T00:12:40.000Z | Code/Engine/Foundation/Basics/Platform/Android/AndroidJni.inl | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 233 | 2015-01-11T16:54:32.000Z | 2022-03-19T18:00:47.000Z | Code/Engine/Foundation/Basics/Platform/Android/AndroidJni.inl | Tekh-ops/ezEngine | d6a5887d8709f267bf8f2943ef15054e29f6d3d5 | [
"MIT"
] | 101 | 2016-10-28T14:05:10.000Z | 2022-03-30T19:00:59.000Z | struct ezJniModifiers
{
enum Enum
{
PUBLIC = 1,
PRIVATE = 2,
PROTECTED = 4,
STATIC = 8,
FINAL = 16,
SYNCHRONIZED = 32,
VOLATILE = 64,
TRANSIENT = 128,
NATIVE = 256,
INTERFACE = 512,
ABSTRACT = 1024,
STRICT = 2048,
};
};
ezJniObject::ezJniObject(jobject object, ezJn... | 29.298056 | 285 | 0.729414 |
201039418cb79f69a96c443540e3dd27e909876a | 3,458 | cpp | C++ | source/LibFgBase/src/FgSerial.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 41 | 2016-04-09T07:48:10.000Z | 2022-03-01T15:46:08.000Z | source/LibFgBase/src/FgSerial.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 9 | 2015-09-23T10:54:50.000Z | 2020-01-04T21:16:57.000Z | source/LibFgBase/src/FgSerial.cpp | SingularInversions/FaceGenBaseLibrary | e928b482fa78597cfcf3923f7252f7902ec0dfa9 | [
"MIT"
] | 29 | 2015-10-01T14:44:42.000Z | 2022-01-05T01:28:43.000Z | //
// Coypright (c) 2021 Singular Inversions Inc. (facegen.com)
// Use, modification and distribution is subject to the MIT License,
// see accompanying file LICENSE.txt or facegen.com/base_library_license.txt
//
#include "stdafx.h"
#include "FgSerial.hpp"
#include "FgCommand.hpp"
using namespace std;
... | 21.214724 | 79 | 0.484095 |
2010aeff4c31c302980dd1eb4e0e5ecc25b2f041 | 3,544 | hpp | C++ | include/strict_variant/variant_storage.hpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 62 | 2016-08-02T05:15:16.000Z | 2020-02-14T18:02:34.000Z | include/strict_variant/variant_storage.hpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 6 | 2016-12-07T03:00:46.000Z | 2018-12-03T22:03:27.000Z | include/strict_variant/variant_storage.hpp | reuk/strict-variant | 7d0f1433d5126951b1af350213a0c7e75575fab0 | [
"BSL-1.0"
] | 6 | 2016-12-10T18:59:18.000Z | 2019-11-05T08:11:11.000Z | // (C) Copyright 2016 - 2018 Christopher Beck
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <new>
#include <strict_variant/mpl/max.hpp>
#include <strict_variant/mpl/typelist.hpp>
#include <stri... | 30.033898 | 86 | 0.696106 |
2011bd7f6599a1e61221fc4920e97ecc36e522d7 | 25,689 | cc | C++ | zircon/system/fidl/fuchsia-blobfs/gen/llcpp/fidl.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/fidl/fuchsia-blobfs/gen/llcpp/fidl.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/fidl/fuchsia-blobfs/gen/llcpp/fidl.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | // WARNING: This file is machine generated by fidlgen.
#include <fuchsia/blobfs/llcpp/fidl.h>
#include <memory>
namespace llcpp {
namespace fuchsia {
namespace blobfs {
namespace {
[[maybe_unused]]
constexpr uint64_t kCorruptBlobHandler_CorruptBlob_Ordinal = 0x432ee88e00000000lu;
[[maybe_unused]]
constexpr uint64_... | 50.668639 | 258 | 0.774767 |
2015aff915e56298a3280bbb6ab5fdeccd658cd5 | 5,772 | cxx | C++ | main/sd/source/ui/view/sdruler.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sd/source/ui/view/sdruler.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sd/source/ui/view/sdruler.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 25.883408 | 145 | 0.495669 |
2016fc451b4a8820fea9720af0f7d82da85c557c | 6,850 | cpp | C++ | src/render/OGLES1_0/CShaderProgramOGLES1_0.cpp | opengamejam/OpenJam | 565dd19fa7f1a727966b4274b810424e5395600b | [
"MIT"
] | 4 | 2015-08-13T08:25:36.000Z | 2017-04-07T21:33:10.000Z | src/render/OGLES1_0/CShaderProgramOGLES1_0.cpp | opengamejam/OpenJam | 565dd19fa7f1a727966b4274b810424e5395600b | [
"MIT"
] | null | null | null | src/render/OGLES1_0/CShaderProgramOGLES1_0.cpp | opengamejam/OpenJam | 565dd19fa7f1a727966b4274b810424e5395600b | [
"MIT"
] | null | null | null | //
// CShaderProgramOGLES1_0.h
// OpenJam
//
// Created by Yevgeniy Logachev
// Copyright (c) 2014 yev. All rights reserved.
//
#if defined(RENDER_OGLES1_0)
#include "CShaderProgramOGLES1_0.h"
using namespace jam;
// *****************************************************************************
// Constants
// **... | 24.035088 | 106 | 0.643212 |
2017699eeb176419aca9a82faff09c4c27796912 | 38,496 | cpp | C++ | build/linux-build/Sources/src/zpp_nape/util/ZNPList_ZPP_CutVert.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/zpp_nape/util/ZNPList_ZPP_CutVert.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | build/linux-build/Sources/src/zpp_nape/util/ZNPList_ZPP_CutVert.cpp | HedgehogFog/TimeOfDeath | b78abacf940e1a88c8b987d99764ebb6876c5dc6 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.0.0-preview.5
#include <hxcpp.h>
#ifndef INCLUDED_zpp_nape_geom_ZPP_CutVert
#include <hxinc/zpp_nape/geom/ZPP_CutVert.h>
#endif
#ifndef INCLUDED_zpp_nape_util_ZNPList_ZPP_CutVert
#include <hxinc/zpp_nape/util/ZNPList_ZPP_CutVert.h>
#endif
#ifndef INCLUDED_zpp_nape_util_ZNPNode_ZPP_CutVert
#inclu... | 42.164294 | 234 | 0.699891 |
2017a1208d51761c56fe70dcbfeb96ec5d0085d4 | 7,961 | hpp | C++ | src/utilities/OStream/multiOStream.hpp | lhb8125/unstructure_frame_home_0218 | e543850413879f120ce68d2c786002b166a62fe5 | [
"Apache-2.0"
] | null | null | null | src/utilities/OStream/multiOStream.hpp | lhb8125/unstructure_frame_home_0218 | e543850413879f120ce68d2c786002b166a62fe5 | [
"Apache-2.0"
] | 1 | 2020-09-10T01:17:13.000Z | 2020-09-10T01:17:13.000Z | src/utilities/OStream/multiOStream.hpp | lhb8125/unstructure_frame_home_0218 | e543850413879f120ce68d2c786002b166a62fe5 | [
"Apache-2.0"
] | 2 | 2019-11-29T08:00:29.000Z | 2019-11-29T08:26:13.000Z | /* Copyright (C)
* 2019 - Hu Ren, rh890127a@163.com
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This pr... | 26.273927 | 78 | 0.570908 |
201c495ed49f29a8dad3964eeaa9fbbbb834c07f | 417 | cpp | C++ | projects/engine/src/rendering/viewport.cpp | zCubed3/Silica | c4aa6d8e204b96320ad092e324930b3ef0e26aaa | [
"BSD-3-Clause"
] | null | null | null | projects/engine/src/rendering/viewport.cpp | zCubed3/Silica | c4aa6d8e204b96320ad092e324930b3ef0e26aaa | [
"BSD-3-Clause"
] | null | null | null | projects/engine/src/rendering/viewport.cpp | zCubed3/Silica | c4aa6d8e204b96320ad092e324930b3ef0e26aaa | [
"BSD-3-Clause"
] | null | null | null | #include "viewport.hpp"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtx/quaternion.hpp>
#include "render_target.hpp"
namespace Manta::Rendering {
void Viewport::UpdateViewport() {
float aspect = (float)rect.width / (float)rect.height;
perspective = glm::... | 26.0625 | 81 | 0.685851 |
201dce607c0f5c17539aa648b73aa59c1be9f0d9 | 270 | hpp | C++ | src/android/jni/Cube.hpp | ZKing1000/cordova-plugin-coventina-native | d704e5cfe4c4427a53b245eeb397a8c694235dfe | [
"Apache-2.0"
] | 1 | 2019-06-20T16:57:43.000Z | 2019-06-20T16:57:43.000Z | src/android/jni/Cube.hpp | ZKing1000/cordova-plugin-coventina-native | d704e5cfe4c4427a53b245eeb397a8c694235dfe | [
"Apache-2.0"
] | null | null | null | src/android/jni/Cube.hpp | ZKing1000/cordova-plugin-coventina-native | d704e5cfe4c4427a53b245eeb397a8c694235dfe | [
"Apache-2.0"
] | null | null | null | // vim: sw=4 expandtab
#ifndef CUBE_HPP_
#define CUBE_HPP_
#include "MeshItem.hpp"
#include <glm/vec3.hpp>
#include <cstdint>
namespace game
{
class Cube : public MeshItem
{
public:
static void genGraphics();
void draw();
};
}
#endif
| 12.857143 | 34 | 0.62963 |
20201374d5fa2da46c052486be7feadbc53d8e82 | 240 | cpp | C++ | src/file_descriptor.cpp | kotoko/cpp-library | d47d828191b02222e29fa186db57478454616665 | [
"BSD-3-Clause"
] | null | null | null | src/file_descriptor.cpp | kotoko/cpp-library | d47d828191b02222e29fa186db57478454616665 | [
"BSD-3-Clause"
] | null | null | null | src/file_descriptor.cpp | kotoko/cpp-library | d47d828191b02222e29fa186db57478454616665 | [
"BSD-3-Clause"
] | null | null | null | #include <unistd.h>
#include "file_descriptor.hpp"
FileDescriptor::FileDescriptor(int fd) noexcept : fd_(fd)
{}
FileDescriptor::~FileDescriptor() noexcept
{
close(fd_);
}
FileDescriptor::operator int() const noexcept
{
return fd_;
}
| 13.333333 | 57 | 0.733333 |
2021c46c575e7a0155786e48ce2decf3cc4ad868 | 12,855 | hpp | C++ | SDK/ARKSurvivalEvolved_Deinonychus_AnimBP_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Deinonychus_AnimBP_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Deinonychus_AnimBP_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Deinonychus_AnimBP_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------... | 54.240506 | 161 | 0.894982 |
202204da367db1c8429deed9c79627e93bc34540 | 6,663 | cpp | C++ | Development-Delivery/Motor2D/j1Scene.cpp | MarcArizaAlborni/Development_Plataformas | 44815d8581738977d20cb1be2b0481adef53c8d1 | [
"Unlicense"
] | null | null | null | Development-Delivery/Motor2D/j1Scene.cpp | MarcArizaAlborni/Development_Plataformas | 44815d8581738977d20cb1be2b0481adef53c8d1 | [
"Unlicense"
] | null | null | null | Development-Delivery/Motor2D/j1Scene.cpp | MarcArizaAlborni/Development_Plataformas | 44815d8581738977d20cb1be2b0481adef53c8d1 | [
"Unlicense"
] | null | null | null | #include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1Textures.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Map.h"
#include "j1Scene.h"
#include "j1FadeToBlack.h"
#include "j1Pathfinding.h"
#include "j1EntityManager.h"
#include "j1Player.h"
#includ... | 22.818493 | 171 | 0.679124 |
2024c3d98a97d73df5bdaebbde964bdd00b622e3 | 612 | hpp | C++ | external/keko_ctab/ctab/shared/cTab_markerMenu_macros.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 6 | 2018-05-05T22:28:57.000Z | 2019-07-06T08:46:51.000Z | external/keko_ctab/ctab/shared/cTab_markerMenu_macros.hpp | Schwaggot/kellerkompanie-mods | 7a389e49e3675866dbde1b317a44892926976e9d | [
"MIT"
] | 107 | 2018-04-11T19:42:27.000Z | 2019-09-13T19:05:31.000Z | external/keko_ctab/ctab/shared/cTab_markerMenu_macros.hpp | kellerkompanie/kellerkompanie-mods | f15704710f77ba6c018c486d95cac4f7749d33b8 | [
"MIT"
] | 3 | 2018-10-03T11:54:46.000Z | 2019-02-28T13:30:16.000Z | /*
Required defines:
MENU_sizeEx - Menu text size (height)
*/
// place the menu outside of the visible area
#define MENU_X safeZoneXAbs + safeZoneWAbs
#define MENU_Y safeZoneY + safeZoneH
#define MENU_maxChars 12 // used to determine the necessary width of the menu
#define MENU_wPerChar MENU_sizeEx * 3/4 * 0.5 // ass... | 38.25 | 95 | 0.76634 |
202a482a2227101c86d65a83181d73fe1ccaee9f | 983 | cpp | C++ | Microsoft.Toolkit.Uwp.Input.GazeInteraction/GazeStats.cpp | paulcam206/WindowsCommunityToolkit | eb20ae30788f320127b2c809cad5c8bbfbd9e663 | [
"MIT"
] | 3 | 2021-05-27T00:29:00.000Z | 2021-05-27T13:10:00.000Z | Microsoft.Toolkit.Uwp.Input.GazeInteraction/GazeStats.cpp | DLozanoNavas/UWPCommunityToolkit | e58479b546cbc264d391de214f3a17557088e109 | [
"MIT"
] | 9 | 2018-04-11T21:05:47.000Z | 2018-05-04T03:02:07.000Z | Microsoft.Toolkit.Uwp.Input.GazeInteraction/GazeStats.cpp | DLozanoNavas/UWPCommunityToolkit | e58479b546cbc264d391de214f3a17557088e109 | [
"MIT"
] | 1 | 2020-07-31T11:15:48.000Z | 2020-07-31T11:15:48.000Z | //Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license.
//See LICENSE in the project root for license information.
#include "pch.h"
#include "GazeStats.h"
using namespace Platform::Collections;
BEGIN_NAMESPACE_GAZE_INPUT
GazeStats::GazeStats(int maxHistoryLen)
{
_maxHistoryLen = maxHisto... | 20.479167 | 79 | 0.626653 |
202bb71b0d6fadd105929e02716275e4755984d7 | 833 | cpp | C++ | ZeldaClone/src/main.cpp | dwjclark11/ZeldaClone_NES | 5d91cad0e071b45dfb10a6b86ac11a26642ad037 | [
"MIT"
] | 7 | 2021-08-23T09:56:00.000Z | 2022-03-21T15:29:15.000Z | ZeldaClone/src/main.cpp | dwjclark11/ZeldaClone_NES | 5d91cad0e071b45dfb10a6b86ac11a26642ad037 | [
"MIT"
] | null | null | null | ZeldaClone/src/main.cpp | dwjclark11/ZeldaClone_NES | 5d91cad0e071b45dfb10a6b86ac11a26642ad037 | [
"MIT"
] | null | null | null | #include "Game/Game.h"
#include "Systems/CameraMovementSystem.h"
#include "Systems/NameSystems/NameSelectKeyboardControlSystem.h"
int main()
{
if (!Registry::Instance()->HasSystem<SoundFXSystem>())
Registry::Instance()->AddSystem<SoundFXSystem>();
if (!Registry::Instance()->HasSystem<MusicPlayerSystem>())
Regi... | 33.32 | 73 | 0.734694 |
202c2c9366707524fef063fbd7870343aa657e4f | 725 | hpp | C++ | src/cmd/definition.hpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | 1 | 2021-06-28T00:31:08.000Z | 2021-06-28T00:31:08.000Z | src/cmd/definition.hpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | src/cmd/definition.hpp | moralismercatus/kmap | 6887780c2fbe795f07a81808ef31f11dad4f5043 | [
"MIT"
] | null | null | null | /******************************************************************************
* Author(s): Christopher J. Havlicek
*
* See LICENSE and CONTACTS.
******************************************************************************/
#pragma once
#ifndef KMAP_CMD_DEFINITION_HPP
#define KMAP_CMD_DEFINITION_HPP
#i... | 26.851852 | 81 | 0.525517 |
202c37dbbcb20fcc3d5d3400975e2a43475cb403 | 14,241 | hpp | C++ | ThirdParty-mod/java2cpp/android/os/Process.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/android/os/Process.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/android/os/Process.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: android.os.Process
================================================================================*/
#ifndef J2CPP_INCLUDE_IMPLEMENTATIO... | 33.273364 | 129 | 0.739906 |
45c8b72a9b627d263b27df6309d722f9c1676ff9 | 5,591 | cxx | C++ | src/MergeAlgs/DoMergeAlg.cxx | fermi-lat/Overlay | 2cf0c53ba565ceb6f768434874c148777c804c58 | [
"BSD-3-Clause"
] | null | null | null | src/MergeAlgs/DoMergeAlg.cxx | fermi-lat/Overlay | 2cf0c53ba565ceb6f768434874c148777c804c58 | [
"BSD-3-Clause"
] | null | null | null | src/MergeAlgs/DoMergeAlg.cxx | fermi-lat/Overlay | 2cf0c53ba565ceb6f768434874c148777c804c58 | [
"BSD-3-Clause"
] | null | null | null | /*
* @file DoMergeAlg.cxx
*
* @brief Decides whether or not to read an overlay event
*
* @author Tracy Usher
*
* $Header: /nfs/slac/g/glast/ground/cvs/GlastRelease-scons/Overlay/src/MergeAlgs/DoMergeAlg.cxx,v 1.4 2011/11/03 18:13:50 usher Exp $
*/
#include "GaudiKernel/Algorithm.h"
#include "GaudiKernel/MsgSt... | 30.551913 | 134 | 0.669469 |
45cc65e0fcf35ac3154d9cf252f9279adb6c6dfe | 672 | hpp | C++ | shared_model/backend/protobuf/util.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | shared_model/backend/protobuf/util.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | shared_model/backend/protobuf/util.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_SHARED_MODEL_PROTO_UTIL_HPP
#define IROHA_SHARED_MODEL_PROTO_UTIL_HPP
#include <google/protobuf/message.h>
#include <vector>
#include "cryptography/blob.hpp"
namespace shared_model {
namespace proto {... | 24 | 57 | 0.714286 |
45d1dbb8b6e694baaa42ed82da757e23199ab54b | 2,765 | cpp | C++ | ball.cpp | aczapi/PingPong | 5f0df3c5453d73181fffc7d96c813c3eb296ddfd | [
"Unlicense"
] | null | null | null | ball.cpp | aczapi/PingPong | 5f0df3c5453d73181fffc7d96c813c3eb296ddfd | [
"Unlicense"
] | null | null | null | ball.cpp | aczapi/PingPong | 5f0df3c5453d73181fffc7d96c813c3eb296ddfd | [
"Unlicense"
] | null | null | null | #include "ball.hpp"
#include <SFML/Audio.hpp>
#include <SFML/Window.hpp>
#include "gameStates.hpp"
#include "headers.hpp"
#include "mainMenu.hpp"
Ball::Ball(std::shared_ptr<Paddle> player1, std::shared_ptr<Paddle> player2, std::shared_ptr<Score> scorePlayer1, std::shared_ptr<Score> scorePlayer2) {
this->player1_ =... | 34.135802 | 152 | 0.595298 |
45d3a9ee4be841f88fdd08ec47f1e8588fd35f75 | 2,306 | hxx | C++ | main/sd/source/ui/inc/fuformatpaintbrush.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sd/source/ui/inc/fuformatpaintbrush.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sd/source/ui/inc/fuformatpaintbrush.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 31.589041 | 134 | 0.707285 |
45d6d0b9024a5843f1561bc335796def93c4635b | 3,145 | cpp | C++ | daemon/src/main.cpp | rssrujan/akka-patterns | f668f0c1d02524659fa9e6a64d9c9a1a2084fa8c | [
"Apache-2.0"
] | 1 | 2015-06-29T02:04:57.000Z | 2015-06-29T02:04:57.000Z | daemon/src/main.cpp | rssrujan/akka-patterns | f668f0c1d02524659fa9e6a64d9c9a1a2084fa8c | [
"Apache-2.0"
] | null | null | null | daemon/src/main.cpp | rssrujan/akka-patterns | f668f0c1d02524659fa9e6a64d9c9a1a2084fa8c | [
"Apache-2.0"
] | null | null | null | #include <SimpleAmqpClient/SimpleAmqpClient.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/gpu/gpu.hpp>
#include <opencv2/opencv.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generat... | 29.392523 | 97 | 0.602544 |
45dbd1267250da7c0166294b48194847bde25319 | 1,861 | cpp | C++ | View/favicondownloader.cpp | edsykes/BookmarkManager | 34839a8f068c2945907a3004f27893637eeadaf2 | [
"Apache-2.0"
] | null | null | null | View/favicondownloader.cpp | edsykes/BookmarkManager | 34839a8f068c2945907a3004f27893637eeadaf2 | [
"Apache-2.0"
] | null | null | null | View/favicondownloader.cpp | edsykes/BookmarkManager | 34839a8f068c2945907a3004f27893637eeadaf2 | [
"Apache-2.0"
] | null | null | null | #include "favicondownloader.h"
#include <QUrl>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QFileInfo>
#include <QDir>
FaviconDownloader::FaviconDownloader(QString iconPath, QString urlPath)
{
this->iconPath = iconPath;
QUrl url = QUrl(urlPath);
url.setPat... | 30.508197 | 103 | 0.695862 |
45dc62b034f9da99c95d3406fc9c14a09226c20a | 2,407 | cpp | C++ | UOJ/62.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | UOJ/62.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1425/C.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool neg=c=='-';
neg?c=getchar():0;
whi... | 18.234848 | 79 | 0.522227 |
45de1a5eb2b9ca60d7094a034aa0b05e639de2f0 | 2,630 | cpp | C++ | libs/input/impl/src/input/impl/multi_system.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/input/impl/src/input/impl/multi_system.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/input/impl/src/input/impl/multi_system.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/input/capabilities_field.hpp>
#include <sge/input/processor.hpp>
#include <sge/input/... | 39.253731 | 90 | 0.709506 |
45e0feccd1590d52dd7d0b56eff3f1f121c66890 | 12,642 | cpp | C++ | test/module/irohad/ametsuchi/block_query_test.cpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | null | null | null | test/module/irohad/ametsuchi/block_query_test.cpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | null | null | null | test/module/irohad/ametsuchi/block_query_test.cpp | truongnmt/iroha | e9b969df9a0eb6ce62eae3ab62c5c3f046a5e6e1 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. 2017 All Rights Reserved.
* http://soramitsu.co.jp
*
* 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/LICENS... | 32.836364 | 80 | 0.712308 |
45e29e1ccb8f2c0cff0d09f10b218564737845f7 | 2,481 | cpp | C++ | Tools/ExtractStrain/SnapFileHelp.cpp | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Tools/ExtractStrain/SnapFileHelp.cpp | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | Tools/ExtractStrain/SnapFileHelp.cpp | danielfrascarelli/esys-particle | e56638000fd9c4af77e21c75aa35a4f8922fd9f0 | [
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////
// //
// Copyright (c) 2003-2017 by The University of Queensland //
// Centre for Geoscience Computing //
// http://earth.uq.edu.au/centre-geoscience-computing //
// ... | 29.188235 | 97 | 0.566707 |
45e42a1025c8adc217a96c371d3bb00ac639fb17 | 1,112 | cpp | C++ | LuoguCodes/P1968.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P1968.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P1968.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | //【P1968】美元汇率 - 洛谷 - 10
#include <iostream>
#include <cstdio>
#include <iomanip>
#include <algorithm>
struct Income {
double dollar, mark;
Income() {}
} *f;
int n, *a;
void input() {
std::cin >> n;
a = new int[n + 1];
for (int i = 1; i <= n; ++i) {
std::cin >> a[i];
}
}
int main() {
input();
f = new Incom... | 21.803922 | 84 | 0.502698 |
45e610bb53c08e45b75bd5842dd978d69f9c3ce6 | 2,158 | cpp | C++ | Shared/Io/Timer.cpp | Joon-Jung/HoloLensForCV | fad1818ff1e6afd8bae3a91b710c23a653cbd722 | [
"MIT"
] | 250 | 2017-07-26T20:54:22.000Z | 2019-05-03T09:21:12.000Z | Shared/Io/Timer.cpp | Joon-Jung/HoloLensForCV | fad1818ff1e6afd8bae3a91b710c23a653cbd722 | [
"MIT"
] | 79 | 2017-08-08T20:08:02.000Z | 2019-05-06T14:32:45.000Z | Shared/Io/Timer.cpp | Joon-Jung/HoloLensForCV | fad1818ff1e6afd8bae3a91b710c23a653cbd722 | [
"MIT"
] | 88 | 2017-07-28T09:11:51.000Z | 2019-05-04T03:48:44.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 27.316456 | 84 | 0.57507 |
45e648661e82340b235cd566b3b0fa122864856d | 425 | cpp | C++ | GFX/Vulkan/API_without_Secrets/Tutorial01/main.cpp | longlongwaytogo/Learning.test | ded9a25ba789c153d69b2d216599eda962ef83e9 | [
"MIT"
] | null | null | null | GFX/Vulkan/API_without_Secrets/Tutorial01/main.cpp | longlongwaytogo/Learning.test | ded9a25ba789c153d69b2d216599eda962ef83e9 | [
"MIT"
] | null | null | null | GFX/Vulkan/API_without_Secrets/Tutorial01/main.cpp | longlongwaytogo/Learning.test | ded9a25ba789c153d69b2d216599eda962ef83e9 | [
"MIT"
] | null | null | null | #include "Tutorial01.h"
int main( int argc, char ** argv ) {
ApiWithoutSecrets::OS::Window window;
ApiWithoutSecrets::Tutorial01 tutorial01;
// window creation
if(! window.Create("01-The Beginning") ) {
return -1;
}
// Vulkan preparations and initialization
if( !tutorial01.PrepareVulkan() ) {
return ... | 14.655172 | 43 | 0.663529 |
45e94b3dfd7697ee37a539956a2ef6eade97b84f | 1,583 | hpp | C++ | core/utilities/string.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/utilities/string.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | core/utilities/string.hpp | fritzio/libstl | 0709e54e4b13576edf84e393db211fb77efd7f72 | [
"MIT"
] | null | null | null | #ifndef LIBSTL_UTLITIES_STRING_HPP
#define LIBSTL_UTLITIES_STRING_HPP
#include <array>
#include <string>
#include <vector>
namespace libstl {
namespace utilities {
namespace string {
std::string erase(const std::string& string, const std::string& substring) {
std::string s = string;
return s.erase(string.f... | 26.830508 | 111 | 0.684776 |
45e9bbade0ee125116c9f34aaa3263b5f7990dd2 | 2,148 | cpp | C++ | src/jet/live/LiveDelegate.cpp | cpei-avalara/jet-live | 27593e29606456e822aee49384aafce97d914acd | [
"MIT"
] | null | null | null | src/jet/live/LiveDelegate.cpp | cpei-avalara/jet-live | 27593e29606456e822aee49384aafce97d914acd | [
"MIT"
] | null | null | null | src/jet/live/LiveDelegate.cpp | cpei-avalara/jet-live | 27593e29606456e822aee49384aafce97d914acd | [
"MIT"
] | null | null | null |
#include "LiveDelegate.hpp"
#include "jet/live/CompileCommandsCompilationUnitsParser.hpp"
#include "jet/live/DefaultProgramInfoLoader.hpp"
#include "jet/live/DepfileDependenciesHandler.hpp"
#include "jet/live/Utility.hpp"
namespace jet
{
void LiveDelegate::onLog(LogSeverity, const std::string&) {}
void LiveD... | 37.684211 | 118 | 0.715549 |
45e9fcf091bd54c2bb4aead9abc73d7963ab7383 | 620 | cpp | C++ | contest/1119/d/d.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | contest/1119/d/d.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | contest/1119/d/d.cpp | GoatGirl98/cf | 4077ca8e0fe29dc2bbb7b60166989857cc062e17 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
using LL = long long;
int main(){
//freopen("in","r",stdin)
std::ios::sync_with_stdio(false);std::cin.tie(nullptr);
int n;
cin>>n;
LL a[n];
for(int i=0;i<n;++i) cin>>a[i];
sort(a,a+n);
LL b[n]={LL(2e18)};
for(int i=1;i<n;++i) b[i] = a[i]-a[i-1];
sort(b,b+n);
LL ... | 19.375 | 56 | 0.514516 |
45ec06000883e8f101cf780bfce66c6253b2d5d2 | 209 | cpp | C++ | Oficina/CrazyCards/CrazyCards/Hero.cpp | boveloco/Puc | cbc3308fac104098b030dadebdd036fe288bbe0c | [
"MIT"
] | null | null | null | Oficina/CrazyCards/CrazyCards/Hero.cpp | boveloco/Puc | cbc3308fac104098b030dadebdd036fe288bbe0c | [
"MIT"
] | null | null | null | Oficina/CrazyCards/CrazyCards/Hero.cpp | boveloco/Puc | cbc3308fac104098b030dadebdd036fe288bbe0c | [
"MIT"
] | null | null | null | #include "Hero.h"
Hero::Hero(int attack, int defense, int life)
{
this->attack = attack;
this->defense = defense;
this->life = life;
this->debuffAttack = 0;
this->debuffDefense = 0;
}
Hero::~Hero()
{
}
| 13.933333 | 45 | 0.645933 |
45ec4eec8930c64c8fcb1910df45d16cbfbef69c | 938 | cpp | C++ | backup/2/interviewbit/c++/majority-element.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/interviewbit/c++/majority-element.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/interviewbit/c++/majority-element.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 44.666667 | 345 | 0.630064 |
45eee7518b94d3bd5cfe5e48481db702e775c7da | 494 | cpp | C++ | BaseDataStructure/array/JavaObject.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 39 | 2020-05-31T06:14:39.000Z | 2021-01-09T11:06:39.000Z | BaseDataStructure/array/JavaObject.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 7 | 2020-06-02T11:04:14.000Z | 2020-06-11T14:11:58.000Z | BaseDataStructure/array/JavaObject.cpp | JessonYue/LeetCodeLearning | 3c22a4fcdfe8b47f9f64b939c8b27742c4e30b79 | [
"MIT"
] | 20 | 2020-05-31T06:21:57.000Z | 2020-10-01T04:48:38.000Z | //
// Created by Jesson on 2020/7/18.
//
#include <cstdio>
//#include <malloc.h>
#include <cstdlib>
#include "JavaObject.h"
void objectRetain(JavaObject *obj) {
obj->retainCount ++;
printf("retain计数+1 = %d\n",obj->retainCount);
}
void objectRelease(JavaObject *obj) {
obj->retainCount --;
if (obj->r... | 17.642857 | 49 | 0.631579 |
45f884f94ce01ba6ede76e1851e83ac115c28edf | 281 | hpp | C++ | include/generic/geometry/range_space.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | 4 | 2022-01-06T14:06:03.000Z | 2022-01-07T01:13:58.000Z | include/generic/geometry/range_space.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | include/generic/geometry/range_space.hpp | shikanle/gfx | 772db3ddd66c294beaf17319f6b3803abe3ce0df | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace gfx {
namespace generic {
template <typename float_system>
class range_space : public object {
public:
typedef float_system float_system_t;
typedef typename float_system_t::float_t float_t;
public:
dynamic_reflectible(range_space, {});
};
}
} | 16.529412 | 53 | 0.754448 |
45fb42791a141643fefe6b95a9c1ad9b6e74d4c3 | 6,622 | cpp | C++ | ci/myTestTask.cpp | jonasbjurel/coreNoStopRTOS | b16b1fbf2c1ee0687dbe7b2a589cf4ee87015375 | [
"Apache-2.0"
] | null | null | null | ci/myTestTask.cpp | jonasbjurel/coreNoStopRTOS | b16b1fbf2c1ee0687dbe7b2a589cf4ee87015375 | [
"Apache-2.0"
] | null | null | null | ci/myTestTask.cpp | jonasbjurel/coreNoStopRTOS | b16b1fbf2c1ee0687dbe7b2a589cf4ee87015375 | [
"Apache-2.0"
] | null | null | null | /* ************************************************************************************************* *
* (c) Copyright 2019 Jonas Bjurel (jonasbjurel@hotmail.com) *
* *
* Licensed... | 45.986111 | 224 | 0.556478 |
45fb63f68cf38af8aec14b27a9d9dfa1e0a12c53 | 32,363 | cc | C++ | tensorstore/driver/zarr/spec_test.cc | google/tensorstore | 8df16a67553debaec098698ceaa5404eaf79634a | [
"BSD-2-Clause"
] | 106 | 2020-04-02T20:00:18.000Z | 2022-03-23T20:27:31.000Z | tensorstore/driver/zarr/spec_test.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 28 | 2020-04-12T02:04:47.000Z | 2022-03-23T20:27:03.000Z | tensorstore/driver/zarr/spec_test.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 18 | 2020-04-08T06:41:30.000Z | 2022-02-18T03:05:49.000Z | // Copyright 2020 The TensorStore 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 ... | 39.180387 | 80 | 0.541513 |
45fc2c960ca416349005f51c9a48b3b7ebc6b602 | 864 | cpp | C++ | zoo_test.cpp | keychera/VirtualZOOP | 893bbca25da0770504dc67c98adb526aee980237 | [
"MIT"
] | null | null | null | zoo_test.cpp | keychera/VirtualZOOP | 893bbca25da0770504dc67c98adb526aee980237 | [
"MIT"
] | null | null | null | zoo_test.cpp | keychera/VirtualZOOP | 893bbca25da0770504dc67c98adb526aee980237 | [
"MIT"
] | null | null | null | #include "zoo.h"
#include <gtest/gtest.h>
#include <iostream>
using namespace std;
class ZooTest : public ::testing::Test {
protected:
ZooTest(){}
};
TEST(ZooTest, Test1) {
string filename="map.txt";
Zoo Z;
Z.ReadZoo(filename.c_str());
ASSERT_EQ(21,Z.GetWidth());
ASSERT_EQ(21,Z.GetLength());
cout<<"wi... | 26.181818 | 97 | 0.552083 |
3400b7fe0e4d35c15ef8c18b5b35a8a4fb0a140f | 1,819 | cc | C++ | onnxruntime/core/providers/cuda/generator/constant_of_shape.cc | csteegz/onnxruntime | a36810471b346ec862ac6e4de7f877653f49525e | [
"MIT"
] | 1 | 2020-07-12T15:23:49.000Z | 2020-07-12T15:23:49.000Z | onnxruntime/core/providers/cuda/generator/constant_of_shape.cc | ajinkya933/onnxruntime | 0e799a03f2a99da6a1b87a2cd37facb420c482aa | [
"MIT"
] | null | null | null | onnxruntime/core/providers/cuda/generator/constant_of_shape.cc | ajinkya933/onnxruntime | 0e799a03f2a99da6a1b87a2cd37facb420c482aa | [
"MIT"
] | 1 | 2020-09-09T06:55:51.000Z | 2020-09-09T06:55:51.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "constant_of_shape.h"
#include "core/providers/common.h"
#include "gsl/gsl"
using namespace ::onnxruntime::common;
using namespace ONNX_NAMESPACE;
namespace onnxruntime {
namespace cuda {
ONNX_OPERATOR_KERNEL_EX(... | 33.685185 | 112 | 0.715778 |
340bb6123443172507c1477d203f1661a213c5d8 | 20,770 | cpp | C++ | admin/wmi/wbem/common/containers/cache.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/common/containers/cache.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/common/containers/cache.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #ifndef __CACHE_CPP
#define __CACHE_CPP
/*++
Copyright (C) 1996-2001 Microsoft Corporation
Module Name:
Thread.cpp
Abstract:
Enhancements to current functionality:
Timeout mechanism should track across waits.
AddRef/Release on task when scheduling.
Enhancement Ticker logic.
History:
... | 21.568017 | 166 | 0.463361 |
340d6c50a67b4c8909b1b938d3bfcfba35570a14 | 2,545 | cpp | C++ | benchmarks/PushmiBenchmarks.cpp | LeeHowes/pushmi | 56b4edd1f891173c281cde8cd637e84a2b19db24 | [
"MIT"
] | null | null | null | benchmarks/PushmiBenchmarks.cpp | LeeHowes/pushmi | 56b4edd1f891173c281cde8cd637e84a2b19db24 | [
"MIT"
] | null | null | null | benchmarks/PushmiBenchmarks.cpp | LeeHowes/pushmi | 56b4edd1f891173c281cde8cd637e84a2b19db24 | [
"MIT"
] | null | null | null |
#include "pushmi/o/just.h"
#include "pushmi/o/on.h"
#include "pushmi/o/transform.h"
#include "pushmi/o/tap.h"
#include "pushmi/o/via.h"
#include "pushmi/o/submit.h"
#include "pushmi/trampoline.h"
#include "pushmi/new_thread.h"
#include "pool.h"
using namespace pushmi::aliases;
struct countdownsingle {
countdowns... | 24.95098 | 88 | 0.618468 |
340d8d8c9c06398aa863a0fa2d11b0c4615c77c5 | 35,044 | cpp | C++ | test/systemtest/common/fms/fms_acquire_form_test_max/fms_acquire_form_test_max.cpp | openharmony-gitee-mirror/appexecfwk_standard | 0edd750ed64940531881e0bb113a84155ac056d0 | [
"Apache-2.0"
] | 1 | 2021-11-23T08:13:14.000Z | 2021-11-23T08:13:14.000Z | test/systemtest/common/fms/fms_acquire_form_test_max/fms_acquire_form_test_max.cpp | openharmony-gitee-mirror/appexecfwk_standard | 0edd750ed64940531881e0bb113a84155ac056d0 | [
"Apache-2.0"
] | null | null | null | test/systemtest/common/fms/fms_acquire_form_test_max/fms_acquire_form_test_max.cpp | openharmony-gitee-mirror/appexecfwk_standard | 0edd750ed64940531881e0bb113a84155ac056d0 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:17:54.000Z | 2021-09-13T11:17:54.000Z | /*
* Copyright (c) 2021 Huawei Device 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 ... | 45.929227 | 118 | 0.712561 |
340e6371cfab072dd0358adeb73a5d20197bc9ca | 701 | cc | C++ | algorithms/image/threshold/boost_python/unimodal.cc | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 58 | 2015-10-15T09:28:20.000Z | 2022-03-28T20:09:38.000Z | algorithms/image/threshold/boost_python/unimodal.cc | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 1,741 | 2015-11-24T08:17:02.000Z | 2022-03-31T15:46:42.000Z | algorithms/image/threshold/boost_python/unimodal.cc | TiankunZhou/dials | bd5c95b73c442cceb1c61b1690fd4562acf4e337 | [
"BSD-3-Clause"
] | 45 | 2015-10-14T13:44:16.000Z | 2022-03-22T14:45:56.000Z | /*
* unimodal.cc
*
* Copyright (C) 2013 Diamond Light Source
*
* Author: James Parkhurst
*
* This code is distributed under the BSD license, a copy of which is
* included in the root directory of this package.
*/
#include <boost/python.hpp>
#include <boost/python/def.hpp>
#include <dials/algorithms/image/t... | 25.962963 | 70 | 0.699001 |
3413fcae1164f05e6869430c9c549bdc3b7a6e7c | 6,668 | hpp | C++ | cpp/include/rapids_triton/model/model.hpp | divyegala/rapids-triton | 8ff2a8dbad029e9379d9e7808d868924c4b60590 | [
"Apache-2.0"
] | 1 | 2022-02-23T23:38:40.000Z | 2022-02-23T23:38:40.000Z | cpp/include/rapids_triton/model/model.hpp | divyegala/rapids-triton | 8ff2a8dbad029e9379d9e7808d868924c4b60590 | [
"Apache-2.0"
] | 12 | 2021-09-20T21:23:27.000Z | 2022-03-31T22:53:30.000Z | cpp/include/rapids_triton/model/model.hpp | divyegala/rapids-triton | 8ff2a8dbad029e9379d9e7808d868924c4b60590 | [
"Apache-2.0"
] | 2 | 2022-01-27T20:58:07.000Z | 2022-02-09T23:07:41.000Z | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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 ... | 33.676768 | 94 | 0.707858 |
3415954e216bb53928018e5951bfdded31f93395 | 9,872 | cpp | C++ | Engine/src/Core/IO/icFileWin.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null | Engine/src/Core/IO/icFileWin.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null | Engine/src/Core/IO/icFileWin.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null |
#ifdef WIN32
#include "Core/IO/icFile.h"
/*! Function converts ICE file modes to Microsoft flags
*
* @param u8Mode 8-bit mask of ICFILEMODE flags
* @param[out] pAccess Pointer for access rights
* @param[out] pCreateD Pointer for creation disposition
* @param[out] pFandA Pointer for fl... | 26.972678 | 84 | 0.588533 |
341750081f42a0714498e4ee2a0c996609a8b1b4 | 634 | cpp | C++ | codes/raulcr-p2624-Accepted-s747689.cpp | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | 1 | 2020-03-17T01:44:21.000Z | 2020-03-17T01:44:21.000Z | codes/raulcr-p2624-Accepted-s747689.cpp | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | null | null | null | codes/raulcr-p2624-Accepted-s747689.cpp | raulcr98/coj-solutions | b8c4d6009869b76a67d7bc1d5328b9bd6bfc33ca | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int N, M, T;
int main()
{
cin >> T;
while(T--){
cin >> N >> M;
vector<int> V;
int sum = 0;
for(int i = 1 ; i <= M ; i++){
int a;
cin >> a;
sum += a;
V.push_back(a);
... | 17.135135 | 39 | 0.29653 |
3419a5f363a8fffd9b1b22cdb8c06ef6890742f8 | 31,404 | cc | C++ | physicalrobots/player/server/drivers/mixed/botrics/obot.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | physicalrobots/player/server/drivers/mixed/botrics/obot.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | physicalrobots/player/server/drivers/mixed/botrics/obot.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
* Player - One Hell of a Robot Server
* Copyright (C) 2000-2003
* Brian Gerkey
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at... | 25.42834 | 91 | 0.629156 |
341f5f51dd2e5f71923d964fb9924d9f9a11bc08 | 18,473 | cpp | C++ | src/BCRext/BwtIndex.cpp | ndaniel/BEETL | 4f35e2f6a18be624c1159f3ffe042eb8490f94bf | [
"BSD-2-Clause"
] | 53 | 2015-02-05T02:26:15.000Z | 2022-01-13T05:37:06.000Z | src/BCRext/BwtIndex.cpp | ndaniel/BEETL | 4f35e2f6a18be624c1159f3ffe042eb8490f94bf | [
"BSD-2-Clause"
] | 9 | 2015-09-03T23:42:14.000Z | 2021-10-15T15:25:49.000Z | src/BCRext/BwtIndex.cpp | ndaniel/BEETL | 4f35e2f6a18be624c1159f3ffe042eb8490f94bf | [
"BSD-2-Clause"
] | 23 | 2015-01-08T13:43:07.000Z | 2021-05-19T17:35:42.000Z | /**
** Copyright (c) 2011-2014 Illumina, Inc.
**
** This file is part of the BEETL software package,
** covered by the "BSD 2-Clause License" (see accompanying LICENSE file)
**
** Citation: Markus J. Bauer, Anthony J. Cox and Giovanna Rosone
** Lightweight BWT Construction for Very Large String Collections.
** ... | 40.158696 | 459 | 0.560494 |
3422fef3339e415cb49949b7f4aaa1d4da2b9efd | 253 | cpp | C++ | Chapter7/Image/QtImageViewer/qtimageViewer.cpp | valeriyvan/LinuxProgrammingWithRaspberryPi | 7c57afcf2cbfc8e0486c78aa75b361fd712a136f | [
"MIT"
] | 4 | 2020-03-11T13:38:25.000Z | 2021-12-25T00:48:53.000Z | Chapter7/Image/QtImageViewer/qtimageViewer.cpp | valeriyvan/LinuxProgrammingWithRaspberryPi | 7c57afcf2cbfc8e0486c78aa75b361fd712a136f | [
"MIT"
] | null | null | null | Chapter7/Image/QtImageViewer/qtimageViewer.cpp | valeriyvan/LinuxProgrammingWithRaspberryPi | 7c57afcf2cbfc8e0486c78aa75b361fd712a136f | [
"MIT"
] | 8 | 2020-07-10T22:02:05.000Z | 2021-12-15T02:11:44.000Z | #include <QApplication>
#include <QLabel>
#include <QPixmap>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QLabel* lb = new QLabel("", 0);
lb->setPixmap(QPixmap("mandrill.jpg"));
lb->show();
return app.exec();
}
| 16.866667 | 43 | 0.620553 |
34279a67e3c5d16a5ea26423c28bc022e6bc97f0 | 2,575 | cpp | C++ | src/Timer.cpp | JuanDiegoMontoya/g | 57a4f44ddea0299e6c6f056592e0b126a67ed8ec | [
"MIT"
] | 2 | 2022-02-04T10:14:49.000Z | 2022-03-01T23:45:22.000Z | src/Timer.cpp | JuanDiegoMontoya/g | 57a4f44ddea0299e6c6f056592e0b126a67ed8ec | [
"MIT"
] | null | null | null | src/Timer.cpp | JuanDiegoMontoya/g | 57a4f44ddea0299e6c6f056592e0b126a67ed8ec | [
"MIT"
] | null | null | null | #include <fwog/Common.h>
#include <fwog/Timer.h>
#include <numeric>
namespace Fwog
{
TimerQuery::TimerQuery()
{
glGenQueries(2, queries);
glQueryCounter(queries[0], GL_TIMESTAMP);
}
TimerQuery::~TimerQuery()
{
glDeleteQueries(2, queries);
}
uint64_t TimerQuery::GetTimestamp()
{
int co... | 27.105263 | 99 | 0.683495 |
342bcc038a2ca98c01e7e47922a5267283c40560 | 1,295 | hpp | C++ | Includes/Rosetta/PlayMode/Logs/PlayHistory.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Includes/Rosetta/PlayMode/Logs/PlayHistory.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Includes/Rosetta/PlayMode/Logs/PlayHistory.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#ifndef ROSETTASTONE_PLAYMODE_PLAY_HISTORY_HPP
#define ROSETTA... | 26.979167 | 79 | 0.671815 |
342bf1d0c337848387f546dbefaadabf6a466b8f | 293 | cpp | C++ | BotPantela/Ball.cpp | djcvijic/BotPantela | 174287e2b10cdd30d3217dd9c2ff766fcc93530d | [
"MIT"
] | null | null | null | BotPantela/Ball.cpp | djcvijic/BotPantela | 174287e2b10cdd30d3217dd9c2ff766fcc93530d | [
"MIT"
] | null | null | null | BotPantela/Ball.cpp | djcvijic/BotPantela | 174287e2b10cdd30d3217dd9c2ff766fcc93530d | [
"MIT"
] | null | null | null | #include "Ball.h"
using namespace std;
void Ball::inputPos ()
{
double xPos;
double yPos;
cin >> xPos;
cin >> yPos;
setXPos(xPos);
setYPos(yPos);
}
void Ball::inputVel ()
{
double xVel;
double yVel;
cin >> xVel;
cin >> yVel;
setXVel(xVel);
setYVel(yVel);
} | 12.73913 | 23 | 0.590444 |
342d610f2ded549890584ed91eed2c00fbd3e0dc | 13,076 | cpp | C++ | hamonize-admin/plugins/remoteaccess/RemoteAccessWidget.cpp | bsairline/hamonize | 6632d93b0149ed300d12c4eeb06cfc4fb01fce92 | [
"Apache-2.0"
] | null | null | null | hamonize-admin/plugins/remoteaccess/RemoteAccessWidget.cpp | bsairline/hamonize | 6632d93b0149ed300d12c4eeb06cfc4fb01fce92 | [
"Apache-2.0"
] | 1 | 2022-03-25T19:24:44.000Z | 2022-03-25T19:24:44.000Z | hamonize-admin/plugins/remoteaccess/RemoteAccessWidget.cpp | gon1942/hamonize | 0456d934569ad664e9f71c6355424426654caabf | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* RemoteAccessWidget.cpp - widget containing a VNC-view and controls for it
*
* Copyright (c) 2006-2021 Tobias Junghans <tobydox@veyon.io>
*
* This file is part of Veyon - https://veyon.io
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public Lic... | 30.985782 | 172 | 0.712986 |
3430893905c8ae152e3b4e1ca262be70577a7af7 | 838 | cpp | C++ | native/ndarray/test/ndatest.cpp | bluemathsoft/bm-linalg | f4b96ec3f39480339898a587bf60b8aba0ad52bf | [
"Apache-2.0"
] | 5 | 2017-10-18T14:19:17.000Z | 2019-12-16T17:31:17.000Z | native/ndarray/test/ndatest.cpp | bluemathsoft/bm-linalg | f4b96ec3f39480339898a587bf60b8aba0ad52bf | [
"Apache-2.0"
] | 1 | 2019-03-12T12:41:29.000Z | 2019-03-12T12:41:29.000Z | native/ndarray/test/ndatest.cpp | bluemathsoft/bm-linalg | f4b96ec3f39480339898a587bf60b8aba0ad52bf | [
"Apache-2.0"
] | null | null | null |
#include "ndarray.h"
#include "ndatest.h"
CPPUNIT_TEST_SUITE_REGISTRATION(NDATest);
void
NDATest::setUp()
{
}
void
NDATest::tearDown()
{
}
void
NDATest::testConstructor()
{
NDArray<uint32_t>::ShapeType shape = {2,2};
NDArray<uint32_t> ndarr(shape);
CPPUNIT_ASSERT(ndarr.size() == 4);
}
void
NDATest::testGett... | 17.829787 | 47 | 0.678998 |
3437e389a3bb554caa194c623883806e623cea07 | 6,641 | cpp | C++ | src/llvmsym/stanalysis/inputvariables.cpp | yaqwsx/SymDivine | 5400fb2d2deaf00c745ab9f8e4f572c79d7e9caa | [
"MIT"
] | 6 | 2015-10-13T20:01:01.000Z | 2017-04-05T04:00:17.000Z | src/llvmsym/stanalysis/inputvariables.cpp | yaqwsx/SymDivine | 5400fb2d2deaf00c745ab9f8e4f572c79d7e9caa | [
"MIT"
] | 6 | 2015-10-12T09:30:34.000Z | 2016-05-24T16:44:12.000Z | src/llvmsym/stanalysis/inputvariables.cpp | yaqwsx/SymDivine | 5400fb2d2deaf00c745ab9f8e4f572c79d7e9caa | [
"MIT"
] | 3 | 2015-10-12T12:20:25.000Z | 2017-04-05T04:06:06.000Z | #include <llvmsym/llvmwrap/Instructions.h>
#include <llvmsym/llvmwrap/Constants.h>
#include <llvmsym/stanalysis/inputvariables.h>
#include <llvmsym/cxa_abi/demangler.h>
namespace {
bool _is_nonconstant_pointer( const llvm::Value *val )
{
return ( val->getType()->isPointerTy() && !llvm::isa< llvm::Con... | 35.513369 | 99 | 0.514983 |
3438f017a59ebe1f52a4e23ee50c1de8ea272471 | 3,224 | hpp | C++ | src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessHelicopter.hpp | uavosky/uavosky-px4 | 5793a7264a1400914521a077a7009dd227f9c766 | [
"BSD-3-Clause"
] | 4,224 | 2015-01-02T11:51:02.000Z | 2020-10-27T23:42:28.000Z | src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessHelicopter.hpp | uavosky/uavosky-px4 | 5793a7264a1400914521a077a7009dd227f9c766 | [
"BSD-3-Clause"
] | 11,736 | 2015-01-01T11:59:16.000Z | 2020-10-28T17:13:38.000Z | src/modules/control_allocator/ActuatorEffectiveness/ActuatorEffectivenessHelicopter.hpp | uavosky/uavosky-px4 | 5793a7264a1400914521a077a7009dd227f9c766 | [
"BSD-3-Clause"
] | 11,850 | 2015-01-02T14:54:47.000Z | 2020-10-28T16:42:47.000Z | /****************************************************************************
*
* Copyright (c) 2022 PX4 Development Team. 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. Redistri... | 35.822222 | 111 | 0.743797 |
343973ee233f02e5296e9d3f81ba60df5cdf46c0 | 2,604 | cpp | C++ | src/RawlogHelper.cpp | dzunigan/extrinsic_calib | aec3747aeb6baecc7bc6202fc0832a113a1bc528 | [
"BSD-3-Clause"
] | 5 | 2018-10-24T02:14:54.000Z | 2019-05-11T12:36:01.000Z | src/RawlogHelper.cpp | dzunigan/extrinsic_calib | aec3747aeb6baecc7bc6202fc0832a113a1bc528 | [
"BSD-3-Clause"
] | null | null | null | src/RawlogHelper.cpp | dzunigan/extrinsic_calib | aec3747aeb6baecc7bc6202fc0832a113a1bc528 | [
"BSD-3-Clause"
] | 1 | 2021-06-30T01:12:49.000Z | 2021-06-30T01:12:49.000Z | #include "RawlogHelper.hpp"
//MRPT redefinition so they work without using mrpt namepase (more general)
#ifndef CLASS_ID_
#define CLASS_ID_(class_name, space_name) static_cast<const mrpt::utils::TRuntimeClassId*>(&space_name::class_name::class##class_name)
#endif
#ifndef IS_CLASS_
#define IS_CLASS_( ptrObj, c... | 28 | 138 | 0.630184 |
343c15b6a0ac86e95b2432f6043483abcc50d90a | 48 | cc | C++ | test/define/d3.cc | aytchell/cppclean | 29ba7547a085f742585a74798cc5ad083bd0836f | [
"Apache-2.0"
] | 607 | 2015-01-02T12:37:18.000Z | 2022-03-20T13:37:01.000Z | test/define/d3.cc | aytchell/cppclean | 29ba7547a085f742585a74798cc5ad083bd0836f | [
"Apache-2.0"
] | 1,372 | 2019-11-14T09:22:21.000Z | 2022-03-29T13:01:20.000Z | test/define/d3.cc | aytchell/cppclean | 29ba7547a085f742585a74798cc5ad083bd0836f | [
"Apache-2.0"
] | 86 | 2019-11-14T04:47:23.000Z | 2022-03-03T02:44:15.000Z |
#include "d3.h"
void Namespace::Function() {}
| 9.6 | 29 | 0.645833 |
343dd66fe901d165781aa02d49bb2f845c2d716d | 475 | cpp | C++ | examples/rocketwar/src/shared/network/incommingPacket.cpp | AlexAUT/rocketWar | edea1c703755e198b1ad8909c82e5d8d56c443ef | [
"MIT"
] | null | null | null | examples/rocketwar/src/shared/network/incommingPacket.cpp | AlexAUT/rocketWar | edea1c703755e198b1ad8909c82e5d8d56c443ef | [
"MIT"
] | null | null | null | examples/rocketwar/src/shared/network/incommingPacket.cpp | AlexAUT/rocketWar | edea1c703755e198b1ad8909c82e5d8d56c443ef | [
"MIT"
] | null | null | null | #include "incommingPacket.hpp"
#include <cassert>
namespace network
{
void IncommingPacket::reset()
{
assert(mHandled && "You are resetting a not handled packet!");
mPacket.clear();
mReadPos = 0;
mHandled = false;
}
aw::uint8* IncommingPacket::reserve(size_t bytes)
{
mPacket.clear();
mPacket.writeToPayl... | 16.37931 | 64 | 0.711579 |
343f31dec15ad1b495e5e8c680c73fab57df1546 | 613 | cpp | C++ | Spoj/LASTDIG2_TheLastDigitRevisit.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | Spoj/LASTDIG2_TheLastDigitRevisit.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | Spoj/LASTDIG2_TheLastDigitRevisit.cpp | shiva92/Contests | 720bb3699f774a6ea1f99e888e0cd784e63130c8 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
// #ifndef ONLINE_JUDGE
// freopen("/home/shiva/Learning/1.txt", "r", stdin);
// freopen("/home/shiva/Learning/2.txt", "w", stdout);
// #endif
int arr[10] = {0}; int t; cin >> t;
long long b;
string a;
for (int x = 0; x < t; x++) {
memset(arr, 0, sizeof... | 21.892857 | 55 | 0.51876 |
343f9c7d95740fbbad670c65ce53c46bc304e826 | 1,084 | cc | C++ | components/ucloud_ai/src/model/aliyun-openapi/core/src/AlibabaCloud.cc | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 4,538 | 2017-10-20T05:19:03.000Z | 2022-03-30T02:29:30.000Z | components/ucloud_ai/src/model/aliyun-openapi/core/src/AlibabaCloud.cc | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 1,088 | 2017-10-21T07:57:22.000Z | 2022-03-31T08:15:49.000Z | components/ucloud_ai/src/model/aliyun-openapi/core/src/AlibabaCloud.cc | willianchanlovegithub/AliOS-Things | 637c0802cab667b872d3b97a121e18c66f256eab | [
"Apache-2.0"
] | 1,860 | 2017-10-20T05:22:35.000Z | 2022-03-27T10:54:14.000Z | /*
* Copyright 1999-2019 Alibaba Cloud 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... | 27.1 | 75 | 0.72786 |
343ff49b559c0f21635c590d49fe79a1fc4fa51a | 984 | hpp | C++ | MazeSolver/Source/graph.hpp | Darhal/Maze-Solver | f8d46a6b3732a391efff63ed663ab47000b61388 | [
"MIT"
] | null | null | null | MazeSolver/Source/graph.hpp | Darhal/Maze-Solver | f8d46a6b3732a391efff63ed663ab47000b61388 | [
"MIT"
] | null | null | null | MazeSolver/Source/graph.hpp | Darhal/Maze-Solver | f8d46a6b3732a391efff63ed663ab47000b61388 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <utility>
#include <stdint.h>
#include <limits.h>
class Graph
{
public:
Graph(uint32_t vertecies = 0) : graph(vertecies)
{
}
void SetVertex(uint32_t vertex, std::vector<std::pair<uint32_t, uint32_t>> next)
{
graph[vertex] = std::move(next);
}
void AddEdgeToVertex(uin... | 18.566038 | 81 | 0.668699 |
34407b0deadf3a5daf2ecf83f8962faca98e3f7c | 828 | hpp | C++ | 01_src/compontents/components.hpp | gledr/SMT_MacroPlacer | b5b25f0ce9094553167ffd4985721f86414ceddc | [
"MIT"
] | 3 | 2020-06-05T15:33:30.000Z | 2021-05-03T07:34:15.000Z | 01_src/compontents/components.hpp | gledr/SMT_MacroPlacer | b5b25f0ce9094553167ffd4985721f86414ceddc | [
"MIT"
] | null | null | null | 01_src/compontents/components.hpp | gledr/SMT_MacroPlacer | b5b25f0ce9094553167ffd4985721f86414ceddc | [
"MIT"
] | 1 | 2021-05-03T07:34:17.000Z | 2021-05-03T07:34:17.000Z | //==================================================================
// Author : Pointner Sebastian
// Company : Johannes Kepler University
// Name : SMT Macro Placer
// Workfile : components.hpp
//
// Date : 19. May 2020
// Compiler : gcc version 9.3.0 (GCC)
// Copyright : Johanne... | 29.571429 | 68 | 0.588164 |
34419f6dafb6189ebd9e5f5222f6a7701c2275ed | 4,746 | cc | C++ | chromecast/device/bluetooth/le/le_scan_manager_impl.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chromecast/device/bluetooth/le/le_scan_manager_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chromecast/device/bluetooth/le/le_scan_manager_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromecast/device/bluetooth/le/le_scan_manager_impl.h"
#include <algorithm>
#include <utility>
#include "base/stl_util.h"
#include "chromecast... | 32.067568 | 80 | 0.665402 |
3441a9435a11658516d1b142812b86ad399095eb | 1,045 | cpp | C++ | vespalib/src/vespa/vespalib/datastore/unique_store_buffer_type.cpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | vespalib/src/vespa/vespalib/datastore/unique_store_buffer_type.cpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | vespalib/src/vespa/vespalib/datastore/unique_store_buffer_type.cpp | alexeyche/vespa | 7585981b32937d2b13da1a8f94b42c8a0833a4c2 | [
"Apache-2.0"
] | null | null | null | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "unique_store_buffer_type.hpp"
#include "unique_store_entry.h"
namespace vespalib::datastore {
template class BufferType<UniqueStoreEntry<int8_t>>;
template class BufferType<UniqueStoreEntry<int16_t>>;
t... | 40.192308 | 104 | 0.844019 |
45175a27e0afcdfbd6bdfa5d764209c195f5bc5c | 2,411 | hpp | C++ | drtm-dst/src/rtx/batch_op_impl.hpp | SJTU-IPADS/dst | 897b929a692642cbf295c105d9d6e64090abb673 | [
"Apache-2.0"
] | 9 | 2020-12-17T01:59:13.000Z | 2022-03-30T16:25:08.000Z | drtm-dst/src/rtx/batch_op_impl.hpp | SJTU-IPADS/dst | 897b929a692642cbf295c105d9d6e64090abb673 | [
"Apache-2.0"
] | 1 | 2021-07-30T12:06:33.000Z | 2021-07-31T10:16:09.000Z | drtm-dst/src/rtx/batch_op_impl.hpp | SJTU-IPADS/dst | 897b929a692642cbf295c105d9d6e64090abb673 | [
"Apache-2.0"
] | 1 | 2021-08-01T13:47:07.000Z | 2021-08-01T13:47:07.000Z | #include "msg_format.hpp"
namespace nocc {
using namespace nocc::util;
namespace rtx {
struct BatchOpCtrlBlock {
char *req_buf_;
char *req_buf_end_;
char *reply_buf_;
std::set<int> mac_set_;
int batch_size_;
inline BatchOpCtrlBlock(char *req_buf,char *res_buf) :
batch_size_(0),
req_buf_(re... | 24.11 | 89 | 0.676898 |
451a0e3f3980397b7f77b9c1b79f06c786ecbfe0 | 1,115 | cpp | C++ | tests/actor_behavior.cpp | zzxx-husky/ZAF | b9c37c758a2f8242aec0d70c467d718468d08fa5 | [
"Apache-2.0"
] | 4 | 2021-07-29T12:49:09.000Z | 2022-01-13T03:40:46.000Z | tests/actor_behavior.cpp | zzxx-husky/ZAF | b9c37c758a2f8242aec0d70c467d718468d08fa5 | [
"Apache-2.0"
] | null | null | null | tests/actor_behavior.cpp | zzxx-husky/ZAF | b9c37c758a2f8242aec0d70c467d718468d08fa5 | [
"Apache-2.0"
] | null | null | null | #include "zaf/actor_behavior.hpp"
#include "zaf/actor_system.hpp"
#include "gtest/gtest.h"
namespace zaf {
GTEST_TEST(ActorBehavior, Basic) {
ActorSystem actor_system;
ActorBehavior actor1;
actor1.initialize_actor(actor_system, actor_system);
ActorBehavior actor2;
actor2.initialize_actor(actor_system, act... | 23.723404 | 62 | 0.634978 |
451ec556f9b2d36764908afcb2fcad82f82ed0d8 | 4,619 | cpp | C++ | windows/cpp/samples/hw_enc_avc_intel_file/hw_enc_avc_intel_file.cpp | avblocks/avblocks-samples | 7388111a27c8110a9f7222e86e912fe38f444543 | [
"MIT"
] | 1 | 2022-02-28T04:12:09.000Z | 2022-02-28T04:12:09.000Z | windows/cpp/samples/hw_enc_avc_intel_file/hw_enc_avc_intel_file.cpp | avblocks/avblocks-samples | 7388111a27c8110a9f7222e86e912fe38f444543 | [
"MIT"
] | null | null | null | windows/cpp/samples/hw_enc_avc_intel_file/hw_enc_avc_intel_file.cpp | avblocks/avblocks-samples | 7388111a27c8110a9f7222e86e912fe38f444543 | [
"MIT"
] | 1 | 2022-02-28T02:43:24.000Z | 2022-02-28T02:43:24.000Z | /*
* Copyright (c) 2016 Primo Software. 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.
*/
#include "stdafx.h"
#include "util.h"
#include "options.h"
using namespace primo::codecs;
usi... | 26.394286 | 127 | 0.606841 |
452178ec8ad3cabe4e642fbe06772ac6f04cd837 | 6,590 | cpp | C++ | sg/importer/Importer.cpp | ospray/ospray_studio | 1549ac72c7c561b4aafdea976189bbe95bd32ff2 | [
"Apache-2.0"
] | 52 | 2018-10-09T23:56:32.000Z | 2022-03-25T09:27:40.000Z | sg/importer/Importer.cpp | ospray/ospray_studio | 1549ac72c7c561b4aafdea976189bbe95bd32ff2 | [
"Apache-2.0"
] | 11 | 2018-11-19T18:51:47.000Z | 2022-03-28T14:03:57.000Z | sg/importer/Importer.cpp | ospray/ospray_studio | 1549ac72c7c561b4aafdea976189bbe95bd32ff2 | [
"Apache-2.0"
] | 8 | 2019-02-10T00:16:24.000Z | 2022-02-17T19:50:15.000Z | // Copyright 2009-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "Importer.h"
#include "sg/visitors/PrintNodes.h"
#include "../JSONDefs.h"
namespace ospray {
namespace sg {
OSPSG_INTERFACE std::map<std::string, std::string> importerMap = {
{"obj", "importer_obj"},
{"gltf", "importer_... | 31.5311 | 80 | 0.619272 |
4522b88d3e7187d55aa1849d096e3394be564b19 | 639 | cpp | C++ | checker.cpp | Engin-Boot/vitals-simplification-cpp-Tanvi-Kale | 67b5cdce6696caed510efcd1e82f619dadfd08e3 | [
"MIT"
] | null | null | null | checker.cpp | Engin-Boot/vitals-simplification-cpp-Tanvi-Kale | 67b5cdce6696caed510efcd1e82f619dadfd08e3 | [
"MIT"
] | null | null | null | checker.cpp | Engin-Boot/vitals-simplification-cpp-Tanvi-Kale | 67b5cdce6696caed510efcd1e82f619dadfd08e3 | [
"MIT"
] | null | null | null | #include <assert.h>
bool vitalsRangeIsOk(float value,int lowerLimit,int upperLimit)
{
return (value >= lowerLimit && value <= upperLimit);
}
bool vitalsAreOk(float bpm, float spo2, float respRate) {
return (vitalsRangeIsOk(bpm,70,150) && vitalsRangeIsOk(spo2,90,100) && vitalsRangeIsOk(respRate,30,95));
}... | 26.625 | 108 | 0.672926 |
452c2bc19dabb166d7962055bbbd3adb041b7e93 | 514 | cpp | C++ | uppdev/RichHtml/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/RichHtml/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/RichHtml/main.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include <CtrlLib/CtrlLib.h>
#include <RichText/RichText.h>
#include <Web/Web.h>
using namespace Upp;
#define TOPICFILE <RichHtml/tst.tpp/all.i>
#include <Core/topic_group.h>
GUI_APP_MAIN
{
Index<String> css;
VectorMap<String, String> links;
String qtf = GetTopic("topic://RichHtml/tst/Topic$en-us");
String html ... | 23.363636 | 64 | 0.702335 |
452da6fe4e6d905249e89e7673f85c4a1a11cda2 | 774 | cpp | C++ | Miscellaneous/InterviewBit/Array/RotateImage.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | 24 | 2021-02-09T17:59:54.000Z | 2022-03-11T07:30:38.000Z | Miscellaneous/InterviewBit/Array/RotateImage.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | null | null | null | Miscellaneous/InterviewBit/Array/RotateImage.cpp | chirag-singhal/-Data-Structures-and-Algorithms | 9f01b5cc0f382ed59bcd74444a0be1c3aa6cd1a3 | [
"MIT"
] | 3 | 2021-06-22T03:09:49.000Z | 2022-03-09T18:25:14.000Z | #include <bits/stdc++.h>
void rotate(std::vector<std::vector<int> > &A) {
// Do not write main() function.
// Do not read input, instead use the arguments to the function.
// Do not print the output, instead return values as specified
// Still have a doubt. Checkout www.interviewbit.com/pages/sample_co... | 35.181818 | 93 | 0.459948 |
452ee43e21aafb068418cfb57dfdab51a06eee65 | 2,784 | cpp | C++ | benchmark/demo_benchmark.cpp | Algorithms-and-Data-Structures-2021/semester-work-median | a3592c0af93f562ea8f60e2301e5f21d1edbda0e | [
"MIT"
] | null | null | null | benchmark/demo_benchmark.cpp | Algorithms-and-Data-Structures-2021/semester-work-median | a3592c0af93f562ea8f60e2301e5f21d1edbda0e | [
"MIT"
] | null | null | null | benchmark/demo_benchmark.cpp | Algorithms-and-Data-Structures-2021/semester-work-median | a3592c0af93f562ea8f60e2301e5f21d1edbda0e | [
"MIT"
] | null | null | null | #include <fstream> // ifstream
#include <iostream> // cout
#include <string> // string, stoi
#include <string_view> // string_view
#include <chrono> // high_resolution_clock, duration_cast, nanoseconds
#include <sstream> // stringstream
#include <vector>
// подключаем алгоритм
#include "algo... | 32 | 97 | 0.600575 |
45310c3ba8f1aa569b5c663e734e95570828b415 | 2,128 | cpp | C++ | Shared Classes/Stats.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | Shared Classes/Stats.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | Shared Classes/Stats.cpp | Mertank/ToneArm | 40c62b0de89ac506bea6674e43578bf4e2631f93 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | /*
------------------------------------------------------------------------------------------
Copyright (c) 2014 Vinyl Games Studio
Author: Mikhail Kutuzov
Date: 10/7/2014 5:45:48 PM
------------------------------------------------------------------------------------------
*/
#include "Stats.h... | 25.035294 | 115 | 0.670583 |
4531123f6dcce4fd01d694f2d37959abaadcdd44 | 9,191 | cpp | C++ | cpp/cppfind/src/FindSettings.cpp | clarkcb/xfind | fbe5d970d0a604e0d357a5c6d78eb26dbcd3294a | [
"MIT"
] | null | null | null | cpp/cppfind/src/FindSettings.cpp | clarkcb/xfind | fbe5d970d0a604e0d357a5c6d78eb26dbcd3294a | [
"MIT"
] | null | null | null | cpp/cppfind/src/FindSettings.cpp | clarkcb/xfind | fbe5d970d0a604e0d357a5c6d78eb26dbcd3294a | [
"MIT"
] | null | null | null | #include "FileUtil.h"
#include "StringUtil.h"
#include "FindSettings.h"
namespace cppfind {
FindSettings::FindSettings() {
m_in_archiveextensions = {};
m_in_archivefilepatterns = {};
m_in_dirpatterns = {};
m_in_extensions = {};
m_in_filepatterns = {};
m_in_filetypes ... | 30.433775 | 102 | 0.598955 |
4536e307f42d425866f3d9ad9020706f0477068b | 3,190 | cpp | C++ | vec3f.cpp | ei14/qecvec | e097d0a205889ec65362992c4171ae535bc113a5 | [
"MIT"
] | null | null | null | vec3f.cpp | ei14/qecvec | e097d0a205889ec65362992c4171ae535bc113a5 | [
"MIT"
] | null | null | null | vec3f.cpp | ei14/qecvec | e097d0a205889ec65362992c4171ae535bc113a5 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Thomas Kaldahl
#include "qecvec.hpp"
// Constructors
Vec3f::Vec3f(
float x,
float y,
float z
) {
this->x = x;
this->y = y;
this->z = z;
}
Vec3f::Vec3f(float val) : Vec3f(val, val, val) {}
Vec3f::Vec3f() : Vec3f(0) {}
Vec3f::Vec3f(Vec2f v, float z) : Vec3f(v.x, v.y, z) {}
Vec3f::Vec3f(flo... | 25.52 | 77 | 0.630408 |
45382cb1d1d0ba807d163bc1cb1d314da6852610 | 3,806 | cpp | C++ | Source/10.0.18362.0/ucrt/mbstring/mbsdec.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/mbstring/mbsdec.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/mbstring/mbsdec.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | /***
*mbsdec.c - Move MBCS string pointer backward one charcter.
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Move MBCS string pointer backward one character.
*
*******************************************************************************/
#ifndef _MBCS
#error This file... | 34.6 | 88 | 0.64083 |
4539f7f1d006ae249eb8f841b2f0a897d401f16e | 1,678 | cpp | C++ | Heap.cpp | Aman-Chopra/DataStructure-Algorithms | fc5ed6ebe97032200b93c1ade783d4a5ed2fdd25 | [
"MIT"
] | null | null | null | Heap.cpp | Aman-Chopra/DataStructure-Algorithms | fc5ed6ebe97032200b93c1ade783d4a5ed2fdd25 | [
"MIT"
] | 3 | 2016-06-09T07:46:15.000Z | 2017-05-06T07:56:18.000Z | Heap.cpp | Aman-Chopra/DataStructure-Algorithms | fc5ed6ebe97032200b93c1ade783d4a5ed2fdd25 | [
"MIT"
] | 4 | 2016-06-09T07:14:37.000Z | 2021-05-21T22:07:20.000Z | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int smallest = 0;
int largest = 0;
void max_heapify(vector<int> &v, int i, int *n)
{
int left = 2*i;
int right = 2*i+1;
if(left <= *n && v[left] > v[i])
largest = left;
else
largest = i;
if(right <= *n && v[right] > v[largest])
... | 15.537037 | 65 | 0.573897 |
453a1e6a515d4a67d7d37444149865b65fb7a952 | 4,785 | cpp | C++ | idlib-math/tests/idlib/tests/math/constants.cpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 1 | 2021-07-30T14:02:43.000Z | 2021-07-30T14:02:43.000Z | idlib-math/tests/idlib/tests/math/constants.cpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | null | null | null | idlib-math/tests/idlib/tests/math/constants.cpp | egoboo/idlib | b27b9d3fe7357ecfe5f9dc71afe283a3d16b1ba8 | [
"MIT"
] | 2 | 2017-01-27T16:53:08.000Z | 2017-08-27T07:28:43.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////////
//
// Idlib: A C++ utility library
// Copyright (C) 2017-2018 Michael Heilmann
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any dama... | 29 | 121 | 0.63908 |
453a2e4418602f71031fee4718f9682dd556d6c0 | 446 | hpp | C++ | include/lua_object.hpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 3 | 2017-10-02T03:18:59.000Z | 2020-11-01T09:21:28.000Z | include/lua_object.hpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 2 | 2019-04-06T21:48:08.000Z | 2020-05-22T23:38:54.000Z | include/lua_object.hpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 1 | 2017-07-17T20:58:26.000Z | 2017-07-17T20:58:26.000Z | #ifndef HPP_LUA_OBJECT
#define HPP_LUA_OBJECT
#include <string>
#include <memory>
#include "xd/vendor/sol/forward.hpp"
class Lua_Object {
public:
Lua_Object();
virtual ~Lua_Object();
void set_lua_property(const std::string& name, sol::stack_object value);
sol::main_object get_lua_property(... | 22.3 | 77 | 0.690583 |
453a31f903a11270acdc2a5ad22af96280f0cdc3 | 838 | cpp | C++ | UVA/UVA11340.cpp | avillega/CompetitiveProgramming | f12c1a07417f8fc154ac5297889ca756b49f0f35 | [
"Apache-2.0"
] | null | null | null | UVA/UVA11340.cpp | avillega/CompetitiveProgramming | f12c1a07417f8fc154ac5297889ca756b49f0f35 | [
"Apache-2.0"
] | null | null | null | UVA/UVA11340.cpp | avillega/CompetitiveProgramming | f12c1a07417f8fc154ac5297889ca756b49f0f35 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <string>
#include <map>
using namespace std;
typedef long long ll;
int main(){
map<char, int> charPrice;
char artLine[10100];
int T; scanf("%d\n", &T);
int N;
ll totalCents;
while(T--){
totalCents=0;
charPrice.clear();
... | 23.942857 | 52 | 0.387828 |
453cb5d3bf24c54030f48b5001b55ae381b4d385 | 507 | cc | C++ | libcef/sqlite_diagnostics_stub.cc | svn2github/cef1 | 61d1537c697bec6265e02c9e9bb4c416b7b22db5 | [
"BSD-3-Clause"
] | 18 | 2015-07-11T03:16:54.000Z | 2019-01-19T12:10:38.000Z | libcef/sqlite_diagnostics_stub.cc | svn2github/cef | 61d1537c697bec6265e02c9e9bb4c416b7b22db5 | [
"BSD-3-Clause"
] | 2 | 2019-01-14T00:10:11.000Z | 2019-02-03T08:19:11.000Z | libcef/sqlite_diagnostics_stub.cc | svn2github/cef1 | 61d1537c697bec6265e02c9e9bb4c416b7b22db5 | [
"BSD-3-Clause"
] | 9 | 2015-01-08T01:07:25.000Z | 2018-03-05T03:52:04.000Z | // Copyright (c) 2012 The Chromium Embedded Framework 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/public/common/url_constants.h"
namespace chrome {
// Used by ClearOnExitPolicy
const char kHttpScheme[] = "http... | 24.142857 | 80 | 0.737673 |
453d0e2d0c29f82be0ecfb636cb3150dbe88e579 | 1,000 | cpp | C++ | tools/EncoderTemplate/Encoder.cpp | EmilianC/Jewel3D | ce11aa686ab35d4989f018c948b26abed6637d77 | [
"MIT"
] | 30 | 2017-02-02T01:57:13.000Z | 2020-07-04T04:38:20.000Z | tools/EncoderTemplate/Encoder.cpp | EmilianC/Jewel3D | ce11aa686ab35d4989f018c948b26abed6637d77 | [
"MIT"
] | null | null | null | tools/EncoderTemplate/Encoder.cpp | EmilianC/Jewel3D | ce11aa686ab35d4989f018c948b26abed6637d77 | [
"MIT"
] | 10 | 2017-07-10T01:31:54.000Z | 2020-01-13T20:38:57.000Z | #include "Encoder.h"
#define CURRENT_VERSION 1
Encoder::Encoder()
: gem::Encoder(CURRENT_VERSION)
{
}
gem::ConfigTable Encoder::GetDefault() const
{
gem::ConfigTable defaultConfig;
defaultConfig.SetValue("version", CURRENT_VERSION);
// Any default values for a new asset can be added to metadata here.
return d... | 21.276596 | 116 | 0.725 |
45423747d3b937f5418714dac6ac022f087f6b9e | 3,742 | cpp | C++ | src/FEM/FEM1DApp.cpp | Jerry-Shen0527/Numerical | 0bd6b630ac450caa0642029792ab348867d2390d | [
"MIT"
] | null | null | null | src/FEM/FEM1DApp.cpp | Jerry-Shen0527/Numerical | 0bd6b630ac450caa0642029792ab348867d2390d | [
"MIT"
] | null | null | null | src/FEM/FEM1DApp.cpp | Jerry-Shen0527/Numerical | 0bd6b630ac450caa0642029792ab348867d2390d | [
"MIT"
] | null | null | null | #include <FEM/FEM1DApp.hpp>
Float StaticFEM1DApp::GradientSelfInnerProduct(int i, int j)
{
std::vector<int> i_id, j_id;
auto i_mesh = IdxToMesh(i, i_id);
auto j_mesh = IdxToMesh(j, j_id);
Float ret = 0;
for (int a = 0; a < i_mesh.size(); ++a)
{
for (int b = 0; b < j_mesh.size(); ++b)
{
if (i_mesh[a] == ... | 21.022472 | 96 | 0.617584 |
45462edbf1008c8ccc83843d664762d8e82e0909 | 2,396 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_PrintNsFuncDefn.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_PrintNsFuncDefn.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_PrintNsFuncDefn.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_PrintNsFuncDefn.cpp
//
#include "smtc_PrintNsFuncDefn.h"
// semantic
#include "smtc_FuncDefn.h"
#include "smtc_IsNameQual.h"
#include "smtc_IsNsEnclUnmd.h"
#include "smtc_Output.h"
#include "smtc_PrintFuncDefn.h"
// config
#include "conf_Config.h"
#define LZZ_INLINE inline
namespace
{
using namespace smtc;
... | 22.185185 | 86 | 0.613523 |
454c4fa14854858d2b69b4484640aceeebf81c39 | 33,476 | hpp | C++ | rosidl_typesupport_introspection_tests/test/introspection_libraries_under_test.hpp | Greek64/rosidl | 1612b07501ebb712ff7893e0cebc2138813d139c | [
"Apache-2.0"
] | null | null | null | rosidl_typesupport_introspection_tests/test/introspection_libraries_under_test.hpp | Greek64/rosidl | 1612b07501ebb712ff7893e0cebc2138813d139c | [
"Apache-2.0"
] | null | null | null | rosidl_typesupport_introspection_tests/test/introspection_libraries_under_test.hpp | Greek64/rosidl | 1612b07501ebb712ff7893e0cebc2138813d139c | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 Open Source Robotics Foundation, 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 appli... | 39.663507 | 100 | 0.802814 |
454d3b48038a9b52fc0dc94df440bdb4ea5d76e7 | 8,056 | cpp | C++ | src/Nodes/Default_Nodes/Generators/chaoticOscillator.cpp | PlaymodesStudio/ofxOceanode | 400df6d49c4b29bc6916e4a045145e935beff4e0 | [
"MIT"
] | 31 | 2018-04-20T13:47:38.000Z | 2021-12-26T04:32:24.000Z | src/Nodes/Default_Nodes/Generators/chaoticOscillator.cpp | PlaymodesStudio/ofxOceanode | 400df6d49c4b29bc6916e4a045145e935beff4e0 | [
"MIT"
] | 25 | 2018-02-19T17:15:32.000Z | 2020-01-05T01:51:00.000Z | src/Nodes/Default_Nodes/Generators/chaoticOscillator.cpp | PlaymodesStudio/ofxOceanode | 400df6d49c4b29bc6916e4a045145e935beff4e0 | [
"MIT"
] | 5 | 2018-09-25T18:37:23.000Z | 2021-01-21T16:26:16.000Z | //
// chaoticOscillator.cpp
// example-basic
//
// Created by Eduard Frigola Bagué on 02/03/2020.
//
#include "chaoticOscillator.h"
void chaoticOscillator::setup(){
color = ofColor(0, 200, 255);
oldPhasor = vector<float>(1, 0);
seedChanged = vector<bool>(true);
baseChOsc.resize(1);
result.resiz... | 39.881188 | 124 | 0.585775 |
4550737c359bb091ea8ee21f4d83027f6d7f4768 | 709 | cpp | C++ | main.cpp | rivergillis/sdl2-starter | cbfcb7249390a131b0cf2d0f49fe09e5e2f63eb2 | [
"MIT"
] | null | null | null | main.cpp | rivergillis/sdl2-starter | cbfcb7249390a131b0cf2d0f49fe09e5e2f63eb2 | [
"MIT"
] | null | null | null | main.cpp | rivergillis/sdl2-starter | cbfcb7249390a131b0cf2d0f49fe09e5e2f63eb2 | [
"MIT"
] | null | null | null | #include "common.h"
#include "sdl_viewer.h"
#include "image.h"
constexpr int w = 640;
constexpr int h = 480;
int main(void) {
SDLViewer viewer("Hello World", w, h);
Image img(w, h);
img.SetAll({248, 240, 227}); // Honda championship white background
bool quit = false;
int i = 0;
while (!quit) {
/... | 20.852941 | 70 | 0.57969 |
45523fb4a50faa6e4e59570ed6c5b2e26dfd7279 | 3,757 | hpp | C++ | src/riscv_devices.hpp | msyksphinz/swimmer_riscv | 065cf3e0dcdcd00cd9bd976285a307d371253ba9 | [
"BSD-3-Clause"
] | 33 | 2015-08-23T02:45:07.000Z | 2019-11-06T23:34:51.000Z | src/riscv_devices.hpp | msyksphinz-self/swimmer_riscv | 065cf3e0dcdcd00cd9bd976285a307d371253ba9 | [
"BSD-3-Clause"
] | 11 | 2015-10-11T15:52:42.000Z | 2019-09-20T14:30:35.000Z | src/riscv_devices.hpp | msyksphinz/swimmer_riscv | 065cf3e0dcdcd00cd9bd976285a307d371253ba9 | [
"BSD-3-Clause"
] | 5 | 2015-02-14T10:07:44.000Z | 2019-09-20T06:37:38.000Z | /*
* Copyright (c) 2015, msyksphinz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditi... | 31.571429 | 152 | 0.711206 |
4553d6ae9ba2a19514b48790bd32758952cea8fc | 9,001 | cpp | C++ | platform_linux.cpp | Vector35/platform-linux | fd71fca50ba193517df0f7c828d824f57fbc158f | [
"Apache-2.0"
] | null | null | null | platform_linux.cpp | Vector35/platform-linux | fd71fca50ba193517df0f7c828d824f57fbc158f | [
"Apache-2.0"
] | 1 | 2021-06-25T18:49:42.000Z | 2021-06-25T18:49:42.000Z | platform_linux.cpp | Vector35/platform-linux | fd71fca50ba193517df0f7c828d824f57fbc158f | [
"Apache-2.0"
] | null | null | null | #include "binaryninjaapi.h"
using namespace BinaryNinja;
using namespace std;
class LinuxX86Platform: public Platform
{
public:
LinuxX86Platform(Architecture* arch): Platform(arch, "linux-x86")
{
Ref<CallingConvention> cc;
cc = arch->GetCallingConventionByName("cdecl");
if (cc)
{
RegisterDefaultCalling... | 29.511475 | 94 | 0.736363 |
4555a728416e55f68c46303cbf1c1a6c81eb918c | 593 | cpp | C++ | SET & MAP/basic problem/Count-of-pairs-between-two-arrays-such-that-the-sums-are-distinct.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | SET & MAP/basic problem/Count-of-pairs-between-two-arrays-such-that-the-sums-are-distinct.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"MIT"
] | null | null | null | SET & MAP/basic problem/Count-of-pairs-between-two-arrays-such-that-the-sums-are-distinct.cpp | Shiv-sharma-111/jubilant-sniffle | 4cd1ce6fe08f8749f16e569b3a78f3b5576ebe17 | [
"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--)
{
int n1,n2;
cin>>n1>>n2;
int arr1[n1],arr2[n2];
for(int i=0;i<n1;i++)
{
cin>>arr1[i];
}
for(int i=0;i<n2;i++)
{
ci... | 16.027027 | 35 | 0.468803 |