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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7aa12e259b0d9d4631b6095a6b4f9710001c8f20 | 1,028 | cpp | C++ | project2D/Spring.cpp | Master-Mas/2D-Physics-Exmaple | a4ee3401daeb9150b8d2c8953bf6b0e70cacf93a | [
"MIT"
] | null | null | null | project2D/Spring.cpp | Master-Mas/2D-Physics-Exmaple | a4ee3401daeb9150b8d2c8953bf6b0e70cacf93a | [
"MIT"
] | null | null | null | project2D/Spring.cpp | Master-Mas/2D-Physics-Exmaple | a4ee3401daeb9150b8d2c8953bf6b0e70cacf93a | [
"MIT"
] | null | null | null | #include "Spring.h"
Spring::Spring(RigidBody2D * join1, RigidBody2D * join2, float springConstant, float damping)
{
this->join1 = join1;
this->join2 = join2;
this->springConstant = springConstant;
this->damping = damping;
this->restDistance = glm::length(join1->getTransform().getPosition() - join2->getTransform(... | 33.16129 | 207 | 0.719844 |
7aa381be8780833746f2bb730b4590fb0337ca7b | 975 | cpp | C++ | app/src/main/cpp/recording/streams/RecordingStreamConstants.cpp | atikur-rabbi/fast-mixer | 7b471e102aacb9cdf75af5c7775d18d10e584ff1 | [
"CC0-1.0"
] | 47 | 2020-07-16T21:21:37.000Z | 2022-03-02T00:18:00.000Z | app/src/main/cpp/recording/streams/RecordingStreamConstants.cpp | iftenet/fast-mixer | 9e834d6ebed0b1dd63fe8688f8bf614e19a8467f | [
"CC0-1.0"
] | 1 | 2020-09-29T06:48:22.000Z | 2020-10-10T17:40:50.000Z | app/src/main/cpp/recording/streams/RecordingStreamConstants.cpp | iftenet/fast-mixer | 9e834d6ebed0b1dd63fe8688f8bf614e19a8467f | [
"CC0-1.0"
] | 10 | 2020-07-19T10:07:21.000Z | 2022-02-11T07:03:20.000Z | //
// Created by asalehin on 7/30/20.
//
#include "RecordingStreamConstants.h"
int32_t RecordingStreamConstants::mSampleRate = oboe::DefaultStreamValues::SampleRate;
int32_t RecordingStreamConstants::mPlaybackSampleRate = RecordingStreamConstants::mSampleRate;
int32_t RecordingStreamConstants::mInputChannelCount = ob... | 54.166667 | 99 | 0.842051 |
7aa3cc7bb45ecd4e61eaa3cb5d14aa8f925b7675 | 60 | cpp | C++ | src/main/places/Mill.cpp | baatochan/VillageSimulation | 633e68a29a7f7eb960ab0ec8fc59e7ce5735a6af | [
"MIT"
] | null | null | null | src/main/places/Mill.cpp | baatochan/VillageSimulation | 633e68a29a7f7eb960ab0ec8fc59e7ce5735a6af | [
"MIT"
] | null | null | null | src/main/places/Mill.cpp | baatochan/VillageSimulation | 633e68a29a7f7eb960ab0ec8fc59e7ce5735a6af | [
"MIT"
] | null | null | null | //
// Created by black on 05.06.18.
//
#include "Mill.hpp"
| 10 | 32 | 0.6 |
7aa8b4970179dde3e1691202772a982ccd205706 | 396 | cpp | C++ | Editor/gui/EngineViewWidget/widget/impl/EngineViewWidgetImpl.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/EngineViewWidget/widget/impl/EngineViewWidgetImpl.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | Editor/gui/EngineViewWidget/widget/impl/EngineViewWidgetImpl.cpp | obivan43/pawnengine | ec092fa855d41705f3fb55fcf1aa5e515d093405 | [
"MIT"
] | null | null | null | #include "EngineViewWidgetImpl.h"
#include <QHBoxLayout>
#include <QVBoxLayout>
namespace editor::impl {
EngineViewWidgetImpl::EngineViewWidgetImpl(QWidget* parent)
: EngineViewWidget(parent)
, m_EngineFrame(nullptr) {
QVBoxLayout* layout = new QVBoxLayout(this);
m_EngineFrame = new QFrame(... | 18 | 61 | 0.70202 |
7aa96d20a59f120a661efb34271486e2914fd876 | 8,273 | cpp | C++ | transactdatadialog.cpp | igrekus/depot | c9101c6072b3c0ce3fe26f5926f0371055eaa270 | [
"MIT"
] | null | null | null | transactdatadialog.cpp | igrekus/depot | c9101c6072b3c0ce3fe26f5926f0371055eaa270 | [
"MIT"
] | null | null | null | transactdatadialog.cpp | igrekus/depot | c9101c6072b3c0ce3fe26f5926f0371055eaa270 | [
"MIT"
] | null | null | null | #include "transactdatadialog.h"
#include "ui_transactdatadialog.h"
TransactDataDialog::TransactDataDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::TransactDataDialog)
{
ui->setupUi(this);
}
TransactDataDialog::~TransactDataDialog()
{
delete ui;
}
void TransactDataDialog::resetWid... | 34.615063 | 116 | 0.649462 |
7aae9e76f79854e77c9493597c3f1005c85189a6 | 2,918 | cpp | C++ | RectangleProgressBar.cpp | arvindrajayadav/Good-Robot | c9a0a5f50793acbe7af312fccac48ee035498d1e | [
"MIT"
] | 53 | 2020-08-04T08:38:14.000Z | 2021-12-08T18:06:40.000Z | RectangleProgressBar.cpp | arvindrajayadav/Good-Robot | c9a0a5f50793acbe7af312fccac48ee035498d1e | [
"MIT"
] | 2 | 2020-08-15T13:03:26.000Z | 2020-08-15T19:54:22.000Z | RectangleProgressBar.cpp | arvindrajayadav/Good-Robot | c9a0a5f50793acbe7af312fccac48ee035498d1e | [
"MIT"
] | 5 | 2020-08-04T09:33:40.000Z | 2021-09-13T04:22:49.000Z | #include "master.h"
#include "RectangleProgressBar.h"
using namespace pyrodactyl;
void RectangleProgressBar::Load(rapidxml::xml_node<char> *node)
{
Element::Load(node);
timer.Load(node, "delta_time");
if (NodeValid("bg", node))
bg.Load(node->first_node("bg"), this);
if (NodeValid("caption", node))
caption.L... | 23.918033 | 108 | 0.67512 |
7aafbc38e6b0cfa5feefb5d5f7caec980b83af6d | 875 | cpp | C++ | Source/Insanity/MessageBox.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | 2 | 2022-02-11T11:59:44.000Z | 2022-02-16T20:33:25.000Z | Source/Insanity/MessageBox.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | Source/Insanity/MessageBox.cpp | mice777/Insanity3D | 49dc70130f786439fb0e4f91b75b6b686a134760 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
//----------------------------
#pragma comment (lib,"user32.lib")
//----------------------------
MSGBOX_RETURN OsMessageBox(void *hwnd, const char *txt, const char *title, MSGBOX_STYLE wmb){
int wtype;
switch(wmb){
case MBOX_OK: wtype = MB_OK; break;
case MBOX_YESNO: wtype = MB_YESNO; ... | 26.515152 | 93 | 0.635429 |
7ab070e798d995ec86e79df525877847fa03cea5 | 802 | cpp | C++ | modules/core/base/unit/utility/size.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/base/unit/utility/size.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/base/unit/utility/size.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 36.454545 | 80 | 0.506234 |
7ab1951862a75a5a3df0fff27114f4cde919a359 | 15,012 | cpp | C++ | data/474.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/474.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/474.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int ds//mX
,t3 ,
MGA ,s ,
Kai
/*R4k*/,al,C8L ,
Zt,kW5a
,zNAk , M1l, a5Q7 ,
K
//
,Zj/*ZbNw*///
, xz
,U8
, CQ,pb,
msWtM
,PRZEy ,
wrI
, XIc1o , uh,K2s ,
HR6 ,rvUy3 ,
Sw/*1*/, t ,
S8,ha
, RH, Na0, q
/*9ku*///P1G
,m,
v3Wcf , XZ4 ,WxYJ ,OQou ,
py2, gpl ,h0RF, GyQZ
, lVwY4b,sN2 ,c3uy ,dmv,a0,fQ , //... | 11.078967 | 72 | 0.454103 |
7ab5378aa0cbb3f329fe8ff9e2905f51df42fdfe | 3,143 | hpp | C++ | src/applicationui.hpp | kaszarek/drivenowandthen | 9632ae308544f2833a2de9b7d1a5bdb7649c2930 | [
"MIT"
] | null | null | null | src/applicationui.hpp | kaszarek/drivenowandthen | 9632ae308544f2833a2de9b7d1a5bdb7649c2930 | [
"MIT"
] | null | null | null | src/applicationui.hpp | kaszarek/drivenowandthen | 9632ae308544f2833a2de9b7d1a5bdb7649c2930 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2011-2015 BlackBerry Limited.
*
* 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 ... | 30.221154 | 112 | 0.746739 |
7ab702d4e219294b173b4935f27d73517121c335 | 371 | cpp | C++ | leetcode/reverse_integer.cpp | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | null | null | null | leetcode/reverse_integer.cpp | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | 6 | 2021-10-12T09:14:30.000Z | 2021-10-16T19:29:08.000Z | leetcode/reverse_integer.cpp | alexandru-dinu/competitive-programming | 4515d221a649b3ab8bc012d01f38b9e4659e2e76 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/reverse-integer
class Solution
{
public:
int reverse(int x)
{
int sign = (x < 0) ? -1 : 1;
std:
int64_t bx = x;
auto s = std::to_string(std::abs(bx));
std::reverse(s.begin(), s.end());
auto r = std::stoll(s);
return (r < IN... | 21.823529 | 64 | 0.498652 |
7ab7377058527e9395c6a12f716e05728fd685ee | 9,707 | cpp | C++ | LUD/lud-para.cpp | axie0320/15-418-Project | 40b51445ff949c671da7e0a0c86207b6f57779db | [
"MIT"
] | null | null | null | LUD/lud-para.cpp | axie0320/15-418-Project | 40b51445ff949c671da7e0a0c86207b6f57779db | [
"MIT"
] | null | null | null | LUD/lud-para.cpp | axie0320/15-418-Project | 40b51445ff949c671da7e0a0c86207b6f57779db | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <chrono>
#include <time.h>
#include <utility>
#include <string>
#include <omp.h>
using namespace std;
static int _argc;
static const char **_argv;
const char *get_option_string(const char *option_name, const char *default_value) {
for (int i = ... | 26.024129 | 102 | 0.559081 |
7abd8d8902d6549c9a9cbd099797a65257771aff | 2,124 | cpp | C++ | src/shape.cpp | SergeyG22/TetrisRepository | 527f671f7732cc07109ff30ea9cb1fca673e889e | [
"MIT"
] | null | null | null | src/shape.cpp | SergeyG22/TetrisRepository | 527f671f7732cc07109ff30ea9cb1fca673e889e | [
"MIT"
] | null | null | null | src/shape.cpp | SergeyG22/TetrisRepository | 527f671f7732cc07109ff30ea9cb1fca673e889e | [
"MIT"
] | null | null | null | #include "shape.h"
Shape::~Shape(){
}
bool Shape::moveShape(){
for(int i = 0; i < figure.size(); ++i){
//если конец остановить
if(figure.value(i).y() == window->height() - shape_configuration.size.width()){
return true;
}
}
if(shape_configuration.activity){
for(QR... | 27.584416 | 137 | 0.51177 |
7abe681a701691dc9eb3bb3e36784c972d871c53 | 2,606 | cpp | C++ | mcrouter/routes/test/ShadowRouteTest.cpp | hrjaco/mcrouter | 5a7b852a1ea2f3c645e0b8366c0549bc992870af | [
"BSD-3-Clause"
] | null | null | null | mcrouter/routes/test/ShadowRouteTest.cpp | hrjaco/mcrouter | 5a7b852a1ea2f3c645e0b8366c0549bc992870af | [
"BSD-3-Clause"
] | null | null | null | mcrouter/routes/test/ShadowRouteTest.cpp | hrjaco/mcrouter | 5a7b852a1ea2f3c645e0b8366c0549bc992870af | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <memo... | 29.613636 | 79 | 0.683039 |
7abfa3fe7c72801b08250e37ece2346a6888d62d | 3,176 | hpp | C++ | von_mises.hpp | slmcbane/Le-TO | d8fb0378fb687bb6dd56ed302072b59e5cdfb92f | [
"MIT"
] | null | null | null | von_mises.hpp | slmcbane/Le-TO | d8fb0378fb687bb6dd56ed302072b59e5cdfb92f | [
"MIT"
] | null | null | null | von_mises.hpp | slmcbane/Le-TO | d8fb0378fb687bb6dd56ed302072b59e5cdfb92f | [
"MIT"
] | null | null | null | #ifndef VON_MISES_HPP
#define VON_MISES_HPP
#include <cassert>
#include <iostream>
#include <utility>
#include "2d.hpp"
namespace Elasticity
{
namespace TwoD
{
template <class Element>
struct VonMisesComputer
{
template <class Vector>
VonMisesComputer(const Element &el, const Vector &v, double lambda, doub... | 31.76 | 101 | 0.548174 |
7ac146b3ba0b13ea9afdd1e0860b352a7ac8e7b2 | 49,475 | cpp | C++ | Sandbox/HazelDash/HazelDashLayer.cpp | rocketman123456/RocketGE | dd8b6de286ce5d2abebc55454fbdf67968558535 | [
"Apache-2.0"
] | 2 | 2020-12-06T23:16:46.000Z | 2020-12-27T13:33:26.000Z | Sandbox/HazelDash/HazelDashLayer.cpp | rocketman123456/RocketGE | dd8b6de286ce5d2abebc55454fbdf67968558535 | [
"Apache-2.0"
] | null | null | null | Sandbox/HazelDash/HazelDashLayer.cpp | rocketman123456/RocketGE | dd8b6de286ce5d2abebc55454fbdf67968558535 | [
"Apache-2.0"
] | null | null | null | #include "HazelDashLayer.h"
#include "Components/Amoeba.h"
#include "Components/Animation.h"
#include "Components/Camera.h"
#include "Components/EnemyMovement.h"
#include "Components/Explosion.h"
#include "Components/Mass.h"
#include "Components/PlayerState.h"
#include "Components/Roll.h"
#include "Random.h"
#includ... | 39.018139 | 283 | 0.475331 |
7ac42a0cc2d9f6663081876e32d27ff07885aa65 | 10,437 | cpp | C++ | main.cpp | shantigilbert/TvTextViewer | 87ca192a81bce423af6723c7514b367db6bf6580 | [
"MIT"
] | null | null | null | main.cpp | shantigilbert/TvTextViewer | 87ca192a81bce423af6723c7514b367db6bf6580 | [
"MIT"
] | null | null | null | main.cpp | shantigilbert/TvTextViewer | 87ca192a81bce423af6723c7514b367db6bf6580 | [
"MIT"
] | null | null | null | /** Copyright (c) 2021 Nikolai Wuttke
*
* 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, p... | 27.393701 | 111 | 0.641947 |
7ac515e2ac5aa9af9f6bc14e4777dcb36b32ae92 | 1,575 | cpp | C++ | krender/gles3/gles3_static_index_buffer.cpp | lulimin/KongFrame-0.1.0 | 2721a433fe089539621f53c71e26b21a8a293b63 | [
"MIT"
] | null | null | null | krender/gles3/gles3_static_index_buffer.cpp | lulimin/KongFrame-0.1.0 | 2721a433fe089539621f53c71e26b21a8a293b63 | [
"MIT"
] | null | null | null | krender/gles3/gles3_static_index_buffer.cpp | lulimin/KongFrame-0.1.0 | 2721a433fe089539621f53c71e26b21a8a293b63 | [
"MIT"
] | null | null | null | // gles3_static_index_buffer.cpp
// Created by lulimin on 2020/10/20.
#include "gles3_static_index_buffer.h"
#include "../render_service.h"
#include "../../inc/frame_mem.h"
// GLES3StaticIndexBuffer
GLES3StaticIndexBuffer* GLES3StaticIndexBuffer::CreateInstance(
RenderService* pRS)
{
GLES3StaticIndexBu... | 19.936709 | 79 | 0.709841 |
7ac709aa596aaae6aee4dc5fda5343c712678580 | 20,408 | cc | C++ | src/sge_vk_compute_target.cc | sungiant/sge | 89692d4376cb4374e0936b5373878e59dc9a68bb | [
"MIT"
] | 6 | 2020-09-04T10:19:29.000Z | 2021-05-07T05:21:37.000Z | src/sge_vk_compute_target.cc | sungiant/sge | 89692d4376cb4374e0936b5373878e59dc9a68bb | [
"MIT"
] | null | null | null | src/sge_vk_compute_target.cc | sungiant/sge | 89692d4376cb4374e0936b5373878e59dc9a68bb | [
"MIT"
] | null | null | null | #include "sge_vk_compute_target.hh"
#include "sge_vk_presentation.hh"
#include "sge_utils.hh"
namespace sge::vk {
compute_target::compute_target (const struct vk::context& z_context, const struct vk::queue_identifier& z_qid, const struct sge::app::content& z_content, const size_fn& z_size_fn)
: context (z_conte... | 40.015686 | 183 | 0.726039 |
7ac8d6535acf4f8ad0ae4a6ab71ef41f8e4e28e8 | 5,019 | cpp | C++ | Source/TurretSystem/Turret.cpp | kacmazemin/TurretSystem | dcb90e8eac84d6cbe8108cee3880e4c77e0ac4d4 | [
"MIT"
] | 1 | 2021-05-07T09:01:55.000Z | 2021-05-07T09:01:55.000Z | Source/TurretSystem/Turret.cpp | kacmazemin/TurretSystem | dcb90e8eac84d6cbe8108cee3880e4c77e0ac4d4 | [
"MIT"
] | null | null | null | Source/TurretSystem/Turret.cpp | kacmazemin/TurretSystem | dcb90e8eac84d6cbe8108cee3880e4c77e0ac4d4 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Turret.h"
#include "DrawDebugHelpers.h"
#include "TurretProjectile.h"
#include "TurretSystemFunctionLibrary.h"
#include "Components/ArrowComponent.h"
#include "Components/AudioComponent.h"
#include "Components/SphereComponent.h"... | 24.970149 | 141 | 0.737796 |
7ac9c0f5206c6a11a1415df465c201f7b288850d | 2,644 | cpp | C++ | Source/Engine/Engine/Transform.cpp | Syoukei66/Animal-Space-Battle | edb17e2f75fd5b43697889597e1eaac2e9e9cd76 | [
"MIT"
] | null | null | null | Source/Engine/Engine/Transform.cpp | Syoukei66/Animal-Space-Battle | edb17e2f75fd5b43697889597e1eaac2e9e9cd76 | [
"MIT"
] | null | null | null | Source/Engine/Engine/Transform.cpp | Syoukei66/Animal-Space-Battle | edb17e2f75fd5b43697889597e1eaac2e9e9cd76 | [
"MIT"
] | null | null | null | #include "Transform.h"
#include "GameObject.h"
// =================================================================
// Constructor / Destructor
// =================================================================
Transform::Transform(GameObject* entity)
: entity_(entity)
, translate_matrix_(INativeMatrix::Create()... | 24.481481 | 74 | 0.639183 |
7aca79722a06efa9c4f2ce78404ee6cc1ada06e4 | 3,710 | cpp | C++ | Source/10.0.18362.0/ucrt/lowio/dup2.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/lowio/dup2.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/lowio/dup2.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// dup2.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines _dup2() and _dup2_nolock, which duplicate lowio file handles
//
#include <corecrt_internal_lowio.h>
static int __cdecl dup2_nolock(int const source_fh, int const target_fh) throw()
{
if ((_osfile(source_fh) & FOPEN)... | 32.54386 | 107 | 0.674663 |
7acae6357a9ec2c4c4d66c30e9f3c8b3cc415a58 | 973 | cpp | C++ | vulnerability_examples/vulnerable_contracts/swc-101/case_study/SSA_Encoding_during.cpp | kunjsong01/data_set | dffdc54da103adca217b8c3c20a5097b0fe2fc1e | [
"Apache-2.0"
] | null | null | null | vulnerability_examples/vulnerable_contracts/swc-101/case_study/SSA_Encoding_during.cpp | kunjsong01/data_set | dffdc54da103adca217b8c3c20a5097b0fe2fc1e | [
"Apache-2.0"
] | null | null | null | vulnerability_examples/vulnerable_contracts/swc-101/case_study/SSA_Encoding_during.cpp | kunjsong01/data_set | dffdc54da103adca217b8c3c20a5097b0fe2fc1e | [
"Apache-2.0"
] | null | null | null | Generated 1 VCC(s), 1 remaining after simplification (5 assignments)
Encoding remaining VCC(s) using bit-vector/floating-point arithmetic
Thread 0
ASSIGNMENT (HIDDEN)
func_case_study::$tmp::return_value$_nondet$1?1!0&0#1 == i?1!0&0#0
Thread 0 file MyContract_case_study.sol line 1 function func_case_study
ASSIGNMENT ()... | 33.551724 | 71 | 0.775951 |
7ad02eb4d96400072f661c3868362f36475687ac | 87,697 | cpp | C++ | sources/src/antlr4parser/ELDOLexer.cpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/src/antlr4parser/ELDOLexer.cpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/src/antlr4parser/ELDOLexer.cpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null |
// Generated from g4files/ELDOLexer.g4 by ANTLR 4.7.1
#include "ELDOLexer.h"
using namespace antlr4;
using namespace edacurry;
ELDOLexer::ELDOLexer(CharStream *input) : Lexer(input) {
_interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache);
}
ELDOLexer::~ELDOLexer() {
dele... | 69.711447 | 120 | 0.604912 |
7ad31e8238a9500f720ce8a3ebd6460af9220e7c | 4,069 | cpp | C++ | Matrix.cpp | jimmyberg/CICIND-Ka | cfe83d8369810292f847b41c03204afd575bad43 | [
"MIT"
] | null | null | null | Matrix.cpp | jimmyberg/CICIND-Ka | cfe83d8369810292f847b41c03204afd575bad43 | [
"MIT"
] | null | null | null | Matrix.cpp | jimmyberg/CICIND-Ka | cfe83d8369810292f847b41c03204afd575bad43 | [
"MIT"
] | null | null | null |
#include "Matrix.h"
// #define _DEBUG_MATRIX_AUTOSOLVE_
Matrix::Matrix(size_t size):size(size){
A.resize(size);
B.resize(size);
for (unsigned int rowIndex = 0; rowIndex < size; ++rowIndex)
{
A[rowIndex] = new double[size];
}
}
Matrix::~Matrix(){
for (unsigned int rowIndex = 0; rowIndex < size; ++rowIndex)
{... | 29.70073 | 101 | 0.663554 |
7ad4120cf35887c1299d20c4bd55bfff365a9bf5 | 989 | cpp | C++ | Source/EngineStd/GameAssetManager/Factory/Components/Refrigeration/GameAssetRefrigerationUnit.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | 2 | 2015-12-30T00:32:09.000Z | 2016-02-27T14:50:06.000Z | Source/EngineStd/GameAssetManager/Factory/Components/Refrigeration/GameAssetRefrigerationUnit.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | null | null | null | Source/EngineStd/GameAssetManager/Factory/Components/Refrigeration/GameAssetRefrigerationUnit.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | null | null | null | // include engine headers
#include "EngineStd.h"
// header for specific component
#include "GameAssetRefrigerationUnit.h"
const GameAssetType GameAssetRefrigerationUnit::g_Type = GAType_RefrigerationUnit;
GameAssetRefrigerationUnit::GameAssetRefrigerationUnit(Context* context) : BaseComponent(context)
{
}
// Game ... | 23.547619 | 97 | 0.790698 |
7ad46012f30985b3883346136ac0fde6f90bd87a | 1,930 | cpp | C++ | src/frameworks/wilhelm/src/itf/I3DCommit.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | src/frameworks/wilhelm/src/itf/I3DCommit.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/wilhelm/src/itf/I3DCommit.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 27.183099 | 77 | 0.712953 |
7ad48e2d8cdf0736321f0782af88979d3b513bb0 | 1,596 | cpp | C++ | libs/systems/impl/src/systems/impl/log_context.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/systems/impl/src/systems/impl/log_context.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/systems/impl/src/systems/impl/log_context.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/log/default_level.hpp>
#include <sge/log/default_level_streams.hpp>
#include <sge/sys... | 37.116279 | 97 | 0.687343 |
7ad684895c182e13c88f71645d1010a43c383515 | 6,260 | cc | C++ | sdl1/tennix/archive.cc | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/tennix/archive.cc | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null | sdl1/tennix/archive.cc | pdpdds/sdldualsystem | d74ea84cbea705fef62868ba8c693bf7d2555636 | [
"BSD-2-Clause"
] | null | null | null |
/**
*
* Tennix Archive File Format
* Copyright (C) 2009-2010 Thomas Perl <thp@thpinfo.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 y... | 28.715596 | 98 | 0.625879 |
7ad74b65a2b09feee3a5ac1a965420ac2c9bd381 | 3,286 | cpp | C++ | osgDB/Registry.cpp | gideonmay/PyOSG | fe44853d52a92596aeb3983f1f6d73191872affe | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2019-05-09T14:09:05.000Z | 2022-03-21T01:31:41.000Z | osgDB/Registry.cpp | gideonmay/PyOSG | fe44853d52a92596aeb3983f1f6d73191872affe | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | osgDB/Registry.cpp | gideonmay/PyOSG | fe44853d52a92596aeb3983f1f6d73191872affe | [
"BSD-2-Clause-FreeBSD"
] | 4 | 2018-05-10T07:54:23.000Z | 2020-01-08T07:37:05.000Z | // Copyright (C) 2016 Gideon May (gideon@borges.xyz)
//
// Permission to copy, use, sell and distribute this software is granted
// provided this copyright notice appears in all copies.
// Permission to modify the code and to distribute modified code is granted
// provided this copyright notice appears in all copies, a... | 45.013699 | 197 | 0.664638 |
7ad85bca62cdc124c66b287180f153907aa2cb0e | 310 | cpp | C++ | lib/EMP/emp-tool/gc/backend.cpp | zpleefly/libscapi | 27d7d964d645ed111c2cc9870087971cf13e24f4 | [
"MIT"
] | null | null | null | lib/EMP/emp-tool/gc/backend.cpp | zpleefly/libscapi | 27d7d964d645ed111c2cc9870087971cf13e24f4 | [
"MIT"
] | 2 | 2021-03-20T05:38:48.000Z | 2021-03-31T20:14:11.000Z | lib/EMP/emp-tool/gc/backend.cpp | zpleefly/libscapi | 27d7d964d645ed111c2cc9870087971cf13e24f4 | [
"MIT"
] | null | null | null | #include "backend.h"
#ifdef THREADING
__thread Backend* local_backend = nullptr;
__thread GarbleCircuit* local_gc = nullptr;
#else
Backend* local_backend = nullptr;
GarbleCircuit* local_gc = nullptr;
#endif
int greatestPowerOfTwoLessThan(int n) {
int k = 1;
while (k < n)
k = k << 1;
return k >> 1;
}
| 16.315789 | 43 | 0.709677 |
7ad8cb9cbb1e8954aa8f4ab4ff01f9b3107b6137 | 2,398 | hpp | C++ | src/Error.hpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | 1 | 2017-04-20T06:27:36.000Z | 2017-04-20T06:27:36.000Z | src/Error.hpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | src/Error.hpp | JesseMaurais/SGe | f73bd03d30074a54642847b05f82151128481371 | [
"MIT"
] | null | null | null | #ifndef Error_hpp
#define Error_hpp
#include "io.hpp"
#include "SDL.hpp"
#include "Strings.hpp"
#include <system_error>
#include <exception>
namespace SDL
{
/// Overload of SDL::LogError that takes std::string
inline bool LogError(std::string const &prefix)
{
return LogError(prefix.c_str());
}
/// Overload of... | 25.784946 | 85 | 0.706422 |
7addb7a8683610c2d49fefd995a33ca5c51645cf | 1,302 | hpp | C++ | traffic.hpp | iszczesniak/ddpp | bc27ad2b7f699d8ef2e11dcb3b56d538d92e4b4e | [
"BSL-1.0"
] | null | null | null | traffic.hpp | iszczesniak/ddpp | bc27ad2b7f699d8ef2e11dcb3b56d538d92e4b4e | [
"BSL-1.0"
] | null | null | null | traffic.hpp | iszczesniak/ddpp | bc27ad2b7f699d8ef2e11dcb3b56d538d92e4b4e | [
"BSL-1.0"
] | null | null | null | #ifndef TRAFFIC_HPP
#define TRAFFIC_HPP
#include "client.hpp"
#include "graph.hpp"
#include "module.hpp"
#include "sim.hpp"
#include <queue>
#include <random>
#include <set>
class traffic: public module<sim>
{
// The set of active clients.
std::set<client *> cs;
// The queue of clients to delete later.
std:... | 19.432836 | 68 | 0.686636 |
7adff761af2c06c28166a3736f93b726e6228626 | 1,418 | cpp | C++ | src/Command.cpp | eXpl0it3r/SecondaryMap | 0c5dbe98f0f08a33771045bf80fa4197e7bc09f8 | [
"Zlib"
] | null | null | null | src/Command.cpp | eXpl0it3r/SecondaryMap | 0c5dbe98f0f08a33771045bf80fa4197e7bc09f8 | [
"Zlib"
] | null | null | null | src/Command.cpp | eXpl0it3r/SecondaryMap | 0c5dbe98f0f08a33771045bf80fa4197e7bc09f8 | [
"Zlib"
] | null | null | null | #include "Command.hpp"
#include "utility.hpp"
#include "Application.hpp"
#include <SFML/System/Err.hpp>
#include <iostream>
Command::Command(const std::string& tokens, const std::string& data) :
m_failed{false}
{
init_tokens(tokens);
init_data(data);
if(m_failed)
{
m_tokens.clear();
m_da... | 18.657895 | 107 | 0.615656 |
7ae2fbb27db7b8339595ffa710a10b5e8e63bf1f | 1,349 | cpp | C++ | ntuj/4858.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | ntuj/4858.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | ntuj/4858.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<cstdio>
const int N = 102;
int s[N][N], t[N][N];
main() {
int i, j, k, l, n, m, x, T, C = 1;
scanf("%d", &T);
while (T--) {
scanf("%d %d", &n, &m);
for (i = 0; i < n; ++i)
for (j = 0; j < n; ++j)
scanf("%d", &s[i][j]);
for (i = 0; i < n; ++i)
for (j = 0; j < n; ++j)
... | 22.864407 | 97 | 0.284655 |
7ae4171572f625c0c9043de8026a771be2601565 | 1,259 | hpp | C++ | include/Pothos/serialization/impl/preprocessor/control/expr_iif.hpp | pothosware/pothos-serialization | c59130f916a3e5b833a32ba415063f9cb306a8dd | [
"BSL-1.0"
] | 1 | 2015-05-26T11:27:22.000Z | 2015-05-26T11:27:22.000Z | include/Pothos/serialization/impl/preprocessor/control/expr_iif.hpp | pothosware/pothos-serialization | c59130f916a3e5b833a32ba415063f9cb306a8dd | [
"BSL-1.0"
] | null | null | null | include/Pothos/serialization/impl/preprocessor/control/expr_iif.hpp | pothosware/pothos-serialization | c59130f916a3e5b833a32ba415063f9cb306a8dd | [
"BSL-1.0"
] | null | null | null | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * Distributed under the Boost Software License, Version 1.0. (See
# * accompanying file LICENSE_1_0.txt... | 39.34375 | 80 | 0.55838 |
7ae453cdb9e0c1a2dbc0bd04a56a15f6d6e3eae3 | 405 | cpp | C++ | AzeronXimAlt-trackballmod/RefreshChecker.cpp | melaphor/trackzeron | 2f7943669f4fd2abb08c726ee13140b424c7fe6e | [
"MIT"
] | 11 | 2020-11-28T18:20:28.000Z | 2022-01-03T06:19:32.000Z | AzeronXimAlt-trackballmod/RefreshChecker.cpp | melaphor/trackzeron | 2f7943669f4fd2abb08c726ee13140b424c7fe6e | [
"MIT"
] | null | null | null | AzeronXimAlt-trackballmod/RefreshChecker.cpp | melaphor/trackzeron | 2f7943669f4fd2abb08c726ee13140b424c7fe6e | [
"MIT"
] | 1 | 2021-11-18T15:44:38.000Z | 2021-11-18T15:44:38.000Z | //
//
//
#include "RefreshChecker.h"
RefreshChecker::RefreshChecker(int size)
{
previousValues = new int[size];
}
int RefreshChecker::PassNew(int id, int value)
{
if (previousValues[id] != value)
{
_hasNewData = true;
}
previousValues[id] = value;
return value;
}
bool RefreshChecker::... | 13.5 | 47 | 0.639506 |
7ae5bf12ce5bfce9821c206a5a97798a21725b19 | 132 | cpp | C++ | Engine/src/Engine/Renderer/RendererAPI.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | Engine/src/Engine/Renderer/RendererAPI.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | Engine/src/Engine/Renderer/RendererAPI.cpp | PalliativeX/GameEngine | 704cf5f3ebc81fdf5e3e514908c3ac47305ccd33 | [
"Apache-2.0"
] | null | null | null | #include "enginepch.h"
#include "RendererAPI.h"
namespace Engine
{
RendererAPI::API RendererAPI::api = RendererAPI::API::OpenGL;
} | 18.857143 | 62 | 0.75 |
7ae639511551668ded269856b7d603838e0f1496 | 597 | cpp | C++ | cpp/671-680/Valid Parenthesis String.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/671-680/Valid Parenthesis String.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/671-680/Valid Parenthesis String.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
bool checkValidString(string s) {
int minLeft = 0, maxLeft = 0;
for (char ch : s) {
if (ch == '(') {
minLeft++;
maxLeft++;
} else if (ch == ')') {
minLeft--;
maxLeft--;
... | 21.321429 | 38 | 0.311558 |
7aec267d7676eef22504002a9fd510e54d5e390d | 8,017 | cpp | C++ | scripts/alternative_splicing/AltSplicingToolkit/src/gff/BioMartGffHandler.cpp | dbolser-ebi/ensembl-production | 70af4644b051b1b6b288871ad1b16efc8d65da90 | [
"Apache-2.0"
] | null | null | null | scripts/alternative_splicing/AltSplicingToolkit/src/gff/BioMartGffHandler.cpp | dbolser-ebi/ensembl-production | 70af4644b051b1b6b288871ad1b16efc8d65da90 | [
"Apache-2.0"
] | null | null | null | scripts/alternative_splicing/AltSplicingToolkit/src/gff/BioMartGffHandler.cpp | dbolser-ebi/ensembl-production | 70af4644b051b1b6b288871ad1b16efc8d65da90 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright [1999-2013] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
*
* 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.o... | 26.902685 | 111 | 0.569041 |
7aed715ef9ebe3d0c540d0b86c92e8f17661c4c3 | 105 | hh | C++ | build/x86/mem/protocol/Message.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/mem/protocol/Message.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/mem/protocol/Message.hh | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | #include "/mnt/hgfs/ShareShen/gem5-origin-stable-2015-9-3/build/x86/mem/ruby/slicc_interface/Message.hh"
| 52.5 | 104 | 0.8 |
7aee2b1245a3c594ce397943a8c0548854afb060 | 159 | cpp | C++ | Chapter1/Excercise15.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2019-08-13T17:51:24.000Z | 2019-08-13T17:51:24.000Z | Chapter1/Excercise15.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | null | null | null | Chapter1/Excercise15.cpp | yapbenzet/absolute-c-plusplus | 67adef6c177e7ef3c71406cd26cef2a944fd0d19 | [
"MIT"
] | 1 | 2020-06-05T13:37:56.000Z | 2020-06-05T13:37:56.000Z | #include <iostream>
#include <string>
using namespace std;
int main() {
string s1 = "5";
string s2 = "3";
string s3 = s1 + s2;
cout << s3 << endl;
}
| 13.25 | 22 | 0.578616 |
7aeee5aad78a4ab307997ac05137ee63e7b9b340 | 30,880 | cpp | C++ | test/qupzilla-master/src/plugins/TabManager/tabmanagerwidget.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 16 | 2019-05-23T08:10:39.000Z | 2021-12-21T11:20:37.000Z | test/qupzilla-master/src/plugins/TabManager/tabmanagerwidget.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | null | null | null | test/qupzilla-master/src/plugins/TabManager/tabmanagerwidget.cpp | JamesMBallard/qmake-unity | cf5006a83e7fb1bbd173a9506771693a673d387f | [
"MIT"
] | 2 | 2019-05-23T18:37:43.000Z | 2021-08-24T21:29:40.000Z | /* ============================================================
* TabManager plugin for QupZilla
* Copyright (C) 2013-2017 S. Razi Alavizadeh <s.r.alavizadeh@gmail.com>
* Copyright (C) 2018 David Rosca <nowrep@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms ... | 31.671795 | 165 | 0.60761 |
7af253211c133ff1d64a36449099be624c5d6939 | 314 | cpp | C++ | Sandbox/src/main.cpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | 4 | 2018-11-12T18:43:02.000Z | 2020-02-02T10:18:56.000Z | Sandbox/src/main.cpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | 2 | 2018-12-22T13:18:05.000Z | 2019-07-24T20:15:45.000Z | Sandbox/src/main.cpp | WhoseTheNerd/Fusion | 35ab536388392b3ba2e14f288eecbc292abd7dea | [
"Apache-2.0"
] | null | null | null | #define F_MAIN_APP
#include <Fusion.h>
#include "SandboxLayer.h"
class SandboxApp : public Fusion::Application
{
public:
SandboxApp()
{
PushLayer(Fusion::CreateRef<Sandbox::SandboxLayer>());
}
};
Fusion::Scope<Fusion::Application> Fusion::CreateApplication()
{
return Fusion::CreateScope<SandboxApp>();
}
| 16.526316 | 62 | 0.735669 |
7af62dc3a32990df3f3b89549c6273f24df6473e | 2,614 | cpp | C++ | examples/fxflow/MainWindow.cpp | moiggi/nodeeditor | 8b2ffcfaa934bc69ff9f52e27b4a24859431541d | [
"BSD-3-Clause"
] | null | null | null | examples/fxflow/MainWindow.cpp | moiggi/nodeeditor | 8b2ffcfaa934bc69ff9f52e27b4a24859431541d | [
"BSD-3-Clause"
] | null | null | null | examples/fxflow/MainWindow.cpp | moiggi/nodeeditor | 8b2ffcfaa934bc69ff9f52e27b4a24859431541d | [
"BSD-3-Clause"
] | null | null | null | #include "MainWindow.h"
#include "ui_mainwindow.h"
#include <nodes/Node>
#include <nodes/NodeData>
#include <nodes/FlowScene>
#include <nodes/FlowView>
#include <nodes/FlowViewStyle>
#include <nodes/NodeStyle>
#include <nodes/ConnectionStyle>
#include <nodes/DataModelRegistry>
#include <QApplication>
#include <QScree... | 27.515789 | 89 | 0.700459 |
7afb671172a3c5b0000b57aa60bb884eed9d3444 | 3,206 | cc | C++ | procedures/wavefrontobj_procedure/ObjBuffer.cc | tsubo164/Fujiyama-Renderer | a451548ba2f0f6379b523e0abf1df57c664f444c | [
"MIT"
] | 36 | 2015-05-28T05:41:10.000Z | 2021-06-07T15:43:54.000Z | procedures/wavefrontobj_procedure/ObjBuffer.cc | tsubo164/Fujiyama-Renderer | a451548ba2f0f6379b523e0abf1df57c664f444c | [
"MIT"
] | 1 | 2015-03-06T16:44:10.000Z | 2015-06-25T05:45:49.000Z | procedures/wavefrontobj_procedure/ObjBuffer.cc | tsubo164/Fujiyama-Renderer | a451548ba2f0f6379b523e0abf1df57c664f444c | [
"MIT"
] | 6 | 2015-01-16T00:15:31.000Z | 2018-07-08T22:00:08.000Z | // Copyright (c) 2011-2020 Hiroshi Tsubokawa
// See LICENSE and README
#include "ObjBuffer.h"
int ObjBufferToMesh(const ObjBuffer &buffer, Mesh &mesh)
{
const int vertex_count = buffer.vertex_count;
const int face_count = buffer.face_count;
const std::vector<Vector> &P = buffer.vertex_position;
const std::vec... | 27.169492 | 86 | 0.641609 |
7afbd7524a0c7582071908e14d160417cc85a9be | 2,466 | hpp | C++ | presence/psensor.hpp | wak-google/phosphor-fan-presence | 4978e06c45cfe70f5ccfc6cdce92a35ae5546198 | [
"Apache-2.0"
] | null | null | null | presence/psensor.hpp | wak-google/phosphor-fan-presence | 4978e06c45cfe70f5ccfc6cdce92a35ae5546198 | [
"Apache-2.0"
] | null | null | null | presence/psensor.hpp | wak-google/phosphor-fan-presence | 4978e06c45cfe70f5ccfc6cdce92a35ae5546198 | [
"Apache-2.0"
] | 1 | 2017-02-14T01:46:05.000Z | 2017-02-14T01:46:05.000Z | #pragma once
#include <cstdint>
namespace phosphor
{
namespace fan
{
namespace presence
{
/**
* @class PresenceSensor
* @brief PresenceSensor interface.
*
* Provide concrete implementations of PresenceSensor to realize
* new presence detection methods.
*
* Note that implementations drive the inventory update p... | 25.6875 | 81 | 0.593268 |
7afd0beb6eb7291d3d2590691599def05b06cecb | 474 | hpp | C++ | src/window_create_info.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/window_create_info.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | src/window_create_info.hpp | zfccxt/calcium | 9cc3a00904c05e675bdb5d35eef0f5356796e564 | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include <string>
#include "colour.hpp"
#include "winding_order.hpp"
namespace cl {
struct WindowCreateInfo {
size_t width = 1280;
size_t height = 720;
std::string title;
bool center = true;
bool enable_backface_cull = true;
WindingOrder front_face = WindingOrder::kClockw... | 18.96 | 62 | 0.727848 |
7afd440cbed11d69ed87e7ad86886da78ec66e81 | 578 | cc | C++ | src/lib/utils.cc | ppwwyyxx/Ray-Tracing-Engine | af3ec164d6b5e5b592a54a75282432d610423ffb | [
"MIT"
] | 101 | 2015-01-01T09:24:45.000Z | 2022-01-22T12:00:24.000Z | src/lib/utils.cc | ppwwyyxx/Ray-Tracing-Engine | af3ec164d6b5e5b592a54a75282432d610423ffb | [
"MIT"
] | 1 | 2018-11-23T03:53:47.000Z | 2018-11-23T05:31:52.000Z | src/lib/utils.cc | ppwwyyxx/Ray-Tracing-Engine | af3ec164d6b5e5b592a54a75282432d610423ffb | [
"MIT"
] | 32 | 2015-01-05T15:35:33.000Z | 2021-12-08T08:17:17.000Z | // File: utils.cc
// Author: Yuxin Wu <ppwwyyxxc@gmail.com>
#include "lib/utils.hh"
using namespace std;
string TERM_COLOR(int k) {
// k = 0 ~ 4
ostringstream ss;
ss << "\x1b[3" << k + 2 << "m";
return ss.str();
}
void c_printf(const char* col, const char* fmt, ...) {
va_list ap;
va_start(ap, fmt);
printf("%... | 17.515152 | 65 | 0.621107 |
7afd4adfc1a4233ca2a6af50ef78455d5ffb3eda | 1,191 | cpp | C++ | C++/competitive/LeetCode/merge_sorted_array.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 33 | 2019-10-20T15:28:26.000Z | 2021-12-17T22:34:22.000Z | C++/competitive/LeetCode/merge_sorted_array.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 111 | 2019-05-10T18:52:55.000Z | 2022-02-04T08:53:42.000Z | C++/competitive/LeetCode/merge_sorted_array.cpp | dipakpawar152000/programming | f343857d413c7dcce876c7720c0ffc4e44b63a48 | [
"Apache-2.0"
] | 141 | 2019-10-20T15:00:02.000Z | 2021-03-23T05:51:12.000Z | // Copyright 2018 Aman Mehara
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 33.083333 | 76 | 0.620487 |
7aff3d7f328320eeee555f5743b2451da23beff5 | 193 | cpp | C++ | src/World/MapTile.cpp | tylerreisinger/pony-td | ed6c3a82de38a2f1981957c081d16f3959d0c2cb | [
"MIT"
] | null | null | null | src/World/MapTile.cpp | tylerreisinger/pony-td | ed6c3a82de38a2f1981957c081d16f3959d0c2cb | [
"MIT"
] | null | null | null | src/World/MapTile.cpp | tylerreisinger/pony-td | ed6c3a82de38a2f1981957c081d16f3959d0c2cb | [
"MIT"
] | null | null | null | #include "MapTile.h"
#include <utility>
MapTile::MapTile(FloorTile floor_tile) : m_floor_tile(std::move(floor_tile)) {}
const FloorTile& MapTile::floor_tile() const { return m_floor_tile; }
| 24.125 | 79 | 0.751295 |
bb007543e3c345b2761b098ed95d55b408795f5b | 5,143 | cpp | C++ | test/unit/test_util_check.cpp | eth-cscs/DLA-interface | 78e24b875601e8830df7bfac18d2f47de39acb9b | [
"BSD-3-Clause"
] | 9 | 2018-05-14T12:31:07.000Z | 2022-01-14T10:09:27.000Z | test/unit/test_util_check.cpp | eth-cscs/DLA-interface | 78e24b875601e8830df7bfac18d2f47de39acb9b | [
"BSD-3-Clause"
] | 42 | 2018-01-23T13:17:04.000Z | 2022-02-25T13:47:02.000Z | test/unit/test_util_check.cpp | eth-cscs/DLA-interface | 78e24b875601e8830df7bfac18d2f47de39acb9b | [
"BSD-3-Clause"
] | 2 | 2018-04-27T07:33:47.000Z | 2019-04-11T14:06:56.000Z | #include "util_check.h"
#include <utility>
#include <stdexcept>
#include "gtest/gtest.h"
#include "matrix_index.h"
using namespace dla_interface;
using namespace testing;
class MockMatrix {
public:
MockMatrix(std::pair<SizeType, SizeType> size) : size_(size) {}
std::pair<SizeType, SizeType> size() const {
... | 34.059603 | 101 | 0.626288 |
bb01ef490444042e217f29370106795b930b3207 | 868 | cpp | C++ | 02_Estructuras y Archivos/Ejercicios/E13_Archivos05.cpp | vazeri/Programacion-Orientada-a-Objetos | 57d1dc413956e50d31f34c0bb339b32a176f9616 | [
"MIT"
] | null | null | null | 02_Estructuras y Archivos/Ejercicios/E13_Archivos05.cpp | vazeri/Programacion-Orientada-a-Objetos | 57d1dc413956e50d31f34c0bb339b32a176f9616 | [
"MIT"
] | null | null | null | 02_Estructuras y Archivos/Ejercicios/E13_Archivos05.cpp | vazeri/Programacion-Orientada-a-Objetos | 57d1dc413956e50d31f34c0bb339b32a176f9616 | [
"MIT"
] | null | null | null | //Hacer un programa que cuente el numero de palabras que contiene un archivo de texto
#include <fstream>
#include <ctype.h>
#include <string>
#include <iostream>
#include<exception>
using namespace std;
int main()
{
ifstream X1;
ifstream X2;
char b,c,ban;
X1.open("A.txt");
X2.open("B.txt");
if... | 20.186047 | 86 | 0.496544 |
bb022f2a12dfa936473249ae2f6855d5e0b6816d | 10,582 | cpp | C++ | tests/unittests/MemberTests.cpp | toddstrader/slang | 77a31619e27dc25f6b29a53a5003e1781c6b3034 | [
"MIT"
] | null | null | null | tests/unittests/MemberTests.cpp | toddstrader/slang | 77a31619e27dc25f6b29a53a5003e1781c6b3034 | [
"MIT"
] | null | null | null | tests/unittests/MemberTests.cpp | toddstrader/slang | 77a31619e27dc25f6b29a53a5003e1781c6b3034 | [
"MIT"
] | null | null | null | #include "Test.h"
#include <nlohmann/json.hpp>
TEST_CASE("Nets") {
auto tree = SyntaxTree::fromText(R"(
module Top;
wire logic f = 1;
endmodule
)");
Compilation compilation;
compilation.addSyntaxTree(tree);
NO_COMPILATION_ERRORS;
}
TEST_CASE("Bad signed specifier") {
auto tree = SyntaxTree::f... | 23.359823 | 90 | 0.639104 |
bb0505d68e9fac69826312d8cb3365825004ca7e | 655 | cpp | C++ | leetcode.com/0672 Bulb Switcher II/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0672 Bulb Switcher II/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0672 Bulb Switcher II/better.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <iostream>
#include <vector>
#include "leetcode.hpp"
using namespace std;
// ref: Java O(1)
// https://leetcode.com/problems/bulb-switcher-ii/discuss/107269/Java-O(1)
class Solution {
public:
// n and m both fit in range [0, 1000].
int flipLights(int n, int m) {
if (m == 0 || n == 0) return 1;
... | 19.848485 | 74 | 0.549618 |
bb063426c666552e49b490499ad965083ddb803a | 923 | cpp | C++ | Codeforces/Gym101466E.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Codeforces/Gym101466E.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Codeforces/Gym101466E.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <bits/stdc++.h>
#define MAXN 100010
using namespace std;
char a[MAXN],b[MAXN],s[MAXN];
int n,k,ans,l,r,nxt[MAXN];
inline void GetNext(char S[], int len)
{
int i = 0, j = -1;
nxt[0] = -1;
while (i != len)
{
if (!~j || S[i] == S[j]) nxt[++i] = ++j;
else j = nxt[j];
}
return ;
}
inline int KMP(char S... | 14.887097 | 53 | 0.489707 |
bb0b2d728991476a275de3820c3d490f35ab9d26 | 1,015 | hpp | C++ | src/InvokerConfig.hpp | TsarN/invoke | 26b6d17bee32b7bf0f4edfa2f297473cebe185ba | [
"MIT"
] | null | null | null | src/InvokerConfig.hpp | TsarN/invoke | 26b6d17bee32b7bf0f4edfa2f297473cebe185ba | [
"MIT"
] | null | null | null | src/InvokerConfig.hpp | TsarN/invoke | 26b6d17bee32b7bf0f4edfa2f297473cebe185ba | [
"MIT"
] | null | null | null | #ifndef INVOKE_INVOKERCONFIG_HPP
#define INVOKE_INVOKERCONFIG_HPP
#include <string>
#include <vector>
#include "InvokerProfile.hpp"
class InvokerConfig {
public:
explicit InvokerConfig(const InvokerProfile &profile);
double timeLimit = -1;
double wallLimit = -1;
long memoryLimit = -1;
int stdin_... | 19.901961 | 58 | 0.684729 |
bb0d637f18c3a336bf1cf54c0fef06642aa8c44f | 883 | hpp | C++ | include/async/logger_wostream.hpp | MadNiko/async | 5f384380e8f4ec40ea78c277455ca5180559bd07 | [
"BSD-3-Clause"
] | null | null | null | include/async/logger_wostream.hpp | MadNiko/async | 5f384380e8f4ec40ea78c277455ca5180559bd07 | [
"BSD-3-Clause"
] | null | null | null | include/async/logger_wostream.hpp | MadNiko/async | 5f384380e8f4ec40ea78c277455ca5180559bd07 | [
"BSD-3-Clause"
] | null | null | null |
#pragma once
#include <iostream>
#include <async\logger.hpp>
namespace async
{
class ASYNC_LIB_API logger_wostream : public logger
{
public:
logger_wostream(std::wostream& stream) noexcept;
public:
virtual void message(std::wstring_view text) noexcept override;
virtual... | 19.195652 | 109 | 0.704417 |
bb0ec29179010ef2a7823eff6879e657180a9c07 | 2,453 | cc | C++ | src/kudu/ranger/mini_ranger-test.cc | bbhavsar/kudu | d23ee5d38ddc4317f431dd65df0c825c00cc968a | [
"Apache-2.0"
] | 6 | 2020-05-12T02:18:48.000Z | 2021-04-15T20:39:21.000Z | src/kudu/ranger/mini_ranger-test.cc | bbhavsar/kudu | d23ee5d38ddc4317f431dd65df0c825c00cc968a | [
"Apache-2.0"
] | 16 | 2020-01-19T07:17:00.000Z | 2020-06-10T09:43:55.000Z | src/kudu/ranger/mini_ranger-test.cc | bbhavsar/kudu | d23ee5d38ddc4317f431dd65df0c825c00cc968a | [
"Apache-2.0"
] | 1 | 2020-03-13T09:59:08.000Z | 2020-03-13T09:59:08.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 27.875 | 98 | 0.732165 |
bb10eee616e26c4d587aec452175646046b69035 | 2,540 | cxx | C++ | sample/exafmm-dev-13274dd4ac68/wrappers/test_petiga.cxx | naoyam/tapas-reduce | 90ebf7eb6a2db232fc5ae0b4bff6b7ac3cf9b7d3 | [
"MIT"
] | null | null | null | sample/exafmm-dev-13274dd4ac68/wrappers/test_petiga.cxx | naoyam/tapas-reduce | 90ebf7eb6a2db232fc5ae0b4bff6b7ac3cf9b7d3 | [
"MIT"
] | null | null | null | sample/exafmm-dev-13274dd4ac68/wrappers/test_petiga.cxx | naoyam/tapas-reduce | 90ebf7eb6a2db232fc5ae0b4bff6b7ac3cf9b7d3 | [
"MIT"
] | null | null | null | #include <mpi.h>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
extern "C" void FMM_Init();
extern "C" void FMM_Finalize();
extern "C" void FMM_Partition(int & ni, double * xi, double * yi, double * zi, double * vi,
int & nj, double * xj, doubl... | 29.882353 | 92 | 0.574803 |
bb1125c59766e0bb14088b0523e9a1eb251e83ea | 4,993 | cc | C++ | cpp/demo/smtp_main_stub.cc | propaganda-gold/deeprev | 0c6ccf83131a879ed858acdb0675e75ebf2f2d3d | [
"BSD-3-Clause"
] | null | null | null | cpp/demo/smtp_main_stub.cc | propaganda-gold/deeprev | 0c6ccf83131a879ed858acdb0675e75ebf2f2d3d | [
"BSD-3-Clause"
] | 2 | 2021-05-11T16:29:38.000Z | 2022-01-22T12:28:49.000Z | cpp/demo/smtp_main_stub.cc | propaganda-gold/deeprev | 0c6ccf83131a879ed858acdb0675e75ebf2f2d3d | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | 33.736486 | 78 | 0.631484 |
bb14e332faaecd5704fc153ba478726ab8fe1a1d | 1,197 | cpp | C++ | Lab/Salazar_Uriel_Lab6/Employee.cpp | salazaru/Cpp_Programming_Objects | 8cc1e7d4b96b31a1ff57f2296d025d14b032d1c7 | [
"MIT"
] | 1 | 2016-03-10T02:47:46.000Z | 2016-03-10T02:47:46.000Z | Lab/Salazar_Uriel_Lab6/Employee.cpp | salazaru/Salazar_Uriel_CSC17A_32232 | 8cc1e7d4b96b31a1ff57f2296d025d14b032d1c7 | [
"MIT"
] | null | null | null | Lab/Salazar_Uriel_Lab6/Employee.cpp | salazaru/Salazar_Uriel_CSC17A_32232 | 8cc1e7d4b96b31a1ff57f2296d025d14b032d1c7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Employee.h"
#include "Date.h"
using namespace std;
Employee::Employee(
const string &first, const string &last, const string &ssn,
int month, int day, int year)
: firstName(first), lastName(last), socialSecurityNumber(ssn),
birthDate(month, day, year)
{
}
... | 19.95 | 70 | 0.651629 |
bb16ed8d601629bfb5a6bcf98abb5ea786475c86 | 1,991 | cpp | C++ | src/Main.cpp | LBYPatrick/World-Of-Waifus | 50d6158c9d67349268015bfe782c7288208a3e4c | [
"MIT"
] | null | null | null | src/Main.cpp | LBYPatrick/World-Of-Waifus | 50d6158c9d67349268015bfe782c7288208a3e4c | [
"MIT"
] | null | null | null | src/Main.cpp | LBYPatrick/World-Of-Waifus | 50d6158c9d67349268015bfe782c7288208a3e4c | [
"MIT"
] | null | null | null | #include "Includes.hpp"
#include "Utils.hpp"
#include "Thread.hpp"
using namespace std;
string getModPath() {
if (fs::exists("bin64/paths.xml")) {
ifstream i("bin64/paths.xml");
string buffer;
while (getline(i, buffer)) {
if (buffer.find("res_mods") != string::np... | 26.197368 | 110 | 0.487695 |
bb189286b4a2582c860b5816aa9afaabd55ae43d | 12,806 | cpp | C++ | src/age_emulator_gb/age_gb_memory.cpp | c-sp/AGE | 054bc4c7c0fe703439b73575d56a23eb3700d695 | [
"Apache-2.0"
] | 2 | 2022-02-12T12:51:14.000Z | 2022-02-13T19:14:36.000Z | src/age_emulator_gb/age_gb_memory.cpp | c-sp/AGE | 054bc4c7c0fe703439b73575d56a23eb3700d695 | [
"Apache-2.0"
] | 4 | 2021-05-19T18:11:22.000Z | 2021-09-27T18:17:26.000Z | src/age_emulator_gb/age_gb_memory.cpp | c-sp/AGE | 054bc4c7c0fe703439b73575d56a23eb3700d695 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2020 Christoph Sprenger
//
// 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 agr... | 24.914397 | 116 | 0.586366 |
bb1b23b8f30083780e16d50e4733816ad1054831 | 2,375 | cpp | C++ | avrdude/libftd2xx0.4.16_x86_64/libusb-0.1.12/tests/descriptor_test.cpp | makagucci/cARM | fc4311125cd60f875c9e56735f0df6ff4407c7c9 | [
"Beerware"
] | 10 | 2017-01-20T05:16:03.000Z | 2017-01-20T05:16:18.000Z | avrdude/libftd2xx0.4.16_x86_64/libusb-0.1.12/tests/descriptor_test.cpp | makagucci/cARM | fc4311125cd60f875c9e56735f0df6ff4407c7c9 | [
"Beerware"
] | null | null | null | avrdude/libftd2xx0.4.16_x86_64/libusb-0.1.12/tests/descriptor_test.cpp | makagucci/cARM | fc4311125cd60f875c9e56735f0df6ff4407c7c9 | [
"Beerware"
] | null | null | null | // -*- C++;indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
/*
* descriptor_test.cpp
*
* Test suite program for C++ bindings
*/
#include <iostream>
#include <iomanip>
#include "usbpp.h"
using namespace std;
int main(void)
{
USB::Busses buslist;
cout << "bus/device idVendor/idProduct" << endl;
/... | 28.614458 | 68 | 0.604211 |
bb1bf75fc1e890a060cf95d53355670fa7acb917 | 5,633 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osgParticle/ModularEmitter.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osgParticle/ModularEmitter.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgWrappers/osgParticle/ModularEmitter.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | // ***************************************************************************
//
// Generated automatically by genwrapper.
// Please DO NOT EDIT this file!
//
// ***************************************************************************
#include <osgIntrospection/ReflectionMacros>
#include <osgIntrospection/Type... | 39.118056 | 136 | 0.611575 |
bb1c1c7b2f5a9987397bfbf8bf87c2f1b99d4c2f | 3,120 | cpp | C++ | dep/include/yse/JuceLibraryCode/examples/Demo/Source/Demos/CodeEditorDemo.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | 2 | 2015-10-27T21:36:59.000Z | 2017-03-17T21:52:19.000Z | dep/include/yse/JuceLibraryCode/examples/Demo/Source/Demos/CodeEditorDemo.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | dep/include/yse/JuceLibraryCode/examples/Demo/Source/Demos/CodeEditorDemo.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2015 - ROLI Ltd.
Permission is granted to use this software under the terms of either:
a) the GPL v2 (or any later version)
b) the Affero GPL v3
Details of these ... | 31.836735 | 91 | 0.552885 |
bb1e983ca949afa38e38b5e676b6c020cc774aec | 6,504 | cpp | C++ | Sail/src/Sail/graphics/shader/basic/SimpleTextureShader.cpp | h3nx/Sail | 96c13ee50bf9666c01bb8bb263e0c2dc3ba0eff9 | [
"MIT"
] | null | null | null | Sail/src/Sail/graphics/shader/basic/SimpleTextureShader.cpp | h3nx/Sail | 96c13ee50bf9666c01bb8bb263e0c2dc3ba0eff9 | [
"MIT"
] | null | null | null | Sail/src/Sail/graphics/shader/basic/SimpleTextureShader.cpp | h3nx/Sail | 96c13ee50bf9666c01bb8bb263e0c2dc3ba0eff9 | [
"MIT"
] | null | null | null | #include "SimpleTextureShader.h"
using namespace DirectX::SimpleMath;
D3D11_INPUT_ELEMENT_DESC SimpleTextureShader::IED[2] = {
{ "POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0 },
{ "TEXCOORD", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 12, D3D11_INPUT_PER_VERTEX_DATA, 0 },
};
SimpleTextureSh... | 36.539326 | 166 | 0.747386 |
bb1f0f656cfcbb9839e610c3c0eb24ab2b902c2f | 1,332 | cpp | C++ | CppProject/product.cpp | maximlo91/Store-Management-System | 1da6136baf964834834925f0d4ac1adac2cb306f | [
"MIT"
] | null | null | null | CppProject/product.cpp | maximlo91/Store-Management-System | 1da6136baf964834834925f0d4ac1adac2cb306f | [
"MIT"
] | null | null | null | CppProject/product.cpp | maximlo91/Store-Management-System | 1da6136baf964834834925f0d4ac1adac2cb306f | [
"MIT"
] | null | null | null | #pragma warning(disable: 4996)
#include <iostream>
#include <string>
#include "product.h"
#include "general.h"
using namespace std;
const char* Product::categories[] = {"Children","Office","Electricity","Clothes"};
int Product::s_counter = 0;
//constructor .
Product::Product(Item e_category, const string& itemName... | 21.483871 | 121 | 0.704955 |
bb20eec70d0ec662b112dff514231a259291fbca | 1,600 | cpp | C++ | lecture-examples/20211008-Templates/min_template.cpp | mklasby/ENSF-480-F2021 | da5fc168f9c6d2d175a52ba9002ca538fd5a8e80 | [
"MIT"
] | null | null | null | lecture-examples/20211008-Templates/min_template.cpp | mklasby/ENSF-480-F2021 | da5fc168f9c6d2d175a52ba9002ca538fd5a8e80 | [
"MIT"
] | null | null | null | lecture-examples/20211008-Templates/min_template.cpp | mklasby/ENSF-480-F2021 | da5fc168f9c6d2d175a52ba9002ca538fd5a8e80 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
using namespace std;
struct Person{
const char *firstName;
const char *lastName;
int age;
};
template <class T> //typename and class are interchangeable here
T min(T &a, T&b){
cout << "Type of T in min is: " << typeid(a).name() << endl;
// Invoke program wit... | 31.372549 | 113 | 0.608125 |
bb244c4e99cee843542cc93c74b2a689745c651f | 2,707 | hpp | C++ | breath/counting/signed_count.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/counting/signed_count.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | breath/counting/signed_count.hpp | erez-o/breath | adf197b4e959beffce11e090c5e806d2ff4df38a | [
"BSD-3-Clause"
] | null | null | null | // ===========================================================================
// Copyright 2007 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 33.012195 | 78 | 0.559291 |
bb24f5903b0733ec5b5f9a9bf18deb5493a48743 | 7,524 | cpp | C++ | Axis.CommonLibrary/domain/elements/ElementGeometry.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | 2 | 2021-07-23T08:49:54.000Z | 2021-07-29T22:07:30.000Z | Axis.CommonLibrary/domain/elements/ElementGeometry.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | Axis.CommonLibrary/domain/elements/ElementGeometry.cpp | renato-yuzup/axis-fem | 2e8d325eb9c8e99285f513b4c1218ef53eb0ab22 | [
"MIT"
] | null | null | null | #include "ElementGeometry.hpp"
#include "foundation/ArgumentException.hpp"
#include "foundation/OutOfBoundsException.hpp"
#include "System.hpp"
#include "foundation/memory/pointer.hpp"
namespace ade = axis::domain::elements;
namespace adi = axis::domain::integration;
namespace afb = axis::foundation::blas;
namespace a... | 26.216028 | 94 | 0.708931 |
bb27df86b6a8cf4ebe84294be726370deb451ed0 | 2,923 | cpp | C++ | src/transforms/vision/unit_test/random_affine_test.cpp | jychoi-hpc/lbann | 4232883aee90448e8beb89967ce30fee9c4a68bf | [
"Apache-2.0"
] | null | null | null | src/transforms/vision/unit_test/random_affine_test.cpp | jychoi-hpc/lbann | 4232883aee90448e8beb89967ce30fee9c4a68bf | [
"Apache-2.0"
] | 66 | 2018-04-04T22:24:42.000Z | 2020-10-23T01:50:34.000Z | src/transforms/vision/unit_test/random_affine_test.cpp | jychoi-hpc/lbann | 4232883aee90448e8beb89967ce30fee9c4a68bf | [
"Apache-2.0"
] | null | null | null | // MUST include this
#include <catch2/catch.hpp>
// File being tested
#include <lbann/transforms/vision/random_affine.hpp>
#include "helper.hpp"
// Note: This is *random* so we only do basic checks.
TEST_CASE("Testing random affine preprocessing", "[preproc]") {
lbann::utils::type_erased_matrix mat = lbann::utils::... | 28.940594 | 97 | 0.59391 |
bb2819488732cdb10144f8467b2b9371ae358f8f | 239 | cpp | C++ | docs/mfc/reference/codesnippet/CPP/cricheditctrl-class_33.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/mfc/reference/codesnippet/CPP/cricheditctrl-class_33.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/mfc/reference/codesnippet/CPP/cricheditctrl-class_33.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | CHARFORMAT cf;
// Modify the word format so that the selected word is
// displayed in bold and not striked out.
cf.cbSize = sizeof(cf);
cf.dwMask = CFM_STRIKEOUT | CFM_BOLD;
cf.dwEffects = CFE_BOLD;
m_myRichEditCtrl.SetWordCharFormat(cf); | 29.875 | 54 | 0.769874 |
bb2e1045791455bec7e6731c7e4f2db10f6ff609 | 1,270 | cpp | C++ | src/gct/is_bgra.cpp | Fadis/gct | bde211f9336e945e4db21f5abb4ce01dcad78049 | [
"MIT"
] | 1 | 2022-03-03T09:27:09.000Z | 2022-03-03T09:27:09.000Z | src/gct/is_bgra.cpp | Fadis/gct | bde211f9336e945e4db21f5abb4ce01dcad78049 | [
"MIT"
] | 1 | 2021-12-02T03:45:45.000Z | 2021-12-03T23:44:37.000Z | src/gct/is_bgra.cpp | Fadis/gct | bde211f9336e945e4db21f5abb4ce01dcad78049 | [
"MIT"
] | null | null | null | #include <gct/format.hpp>
namespace gct {
bool is_bgra( vk::Format format ) {
if( format == vk::Format::eB4G4R4A4UnormPack16) return true;
else if( format == vk::Format::eB5G6R5UnormPack16) return true;
else if( format == vk::Format::eB5G5R5A1UnormPack16) return true;
else if( format == vk::Format::e... | 47.037037 | 71 | 0.685827 |
bb2ea0b7844a55c68b9f7edf1048828b7691db8c | 3,309 | cpp | C++ | test/functional/gfalt_test_copy_file_mkdir.cpp | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | null | null | null | test/functional/gfalt_test_copy_file_mkdir.cpp | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | null | null | null | test/functional/gfalt_test_copy_file_mkdir.cpp | adevress/gfal2 | ce8945d1c153e26c5d10ad43d1940b8dcace0579 | [
"Apache-2.0"
] | 1 | 2020-04-28T09:36:46.000Z | 2020-04-28T09:36:46.000Z | /**
* Compile command : gcc -o gfalt_copyfile gfalt_copyfile.c `pkg-config --libs --cflags gfal_transfer`
*/
#include <gtest/gtest.h>
#include <gfal_api.h>
#include <stdio.h>
#include <stdlib.h>
#include <utils/exceptions/gerror_to_cpp.h>
#include <transfer/gfal_transfer.h>
#include <common/gfal_lib_test.h>
#includ... | 27.347107 | 102 | 0.68903 |
bb329733361f1d7ce48a9156918d00aed2690e55 | 4,402 | cpp | C++ | Source/FPSProject/FPSHud.cpp | ellji/FPSProject | d1ae8b45acd52426aa4391caaae01ccd13c09a80 | [
"MIT"
] | null | null | null | Source/FPSProject/FPSHud.cpp | ellji/FPSProject | d1ae8b45acd52426aa4391caaae01ccd13c09a80 | [
"MIT"
] | null | null | null | Source/FPSProject/FPSHud.cpp | ellji/FPSProject | d1ae8b45acd52426aa4391caaae01ccd13c09a80 | [
"MIT"
] | null | null | null | // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
#include "FPSProject.h"
//#include "CardInvUIWidget.h"
#include "FPSHud.h"
AFPSHud::AFPSHud(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
// set the crosshair texture
static ConstructorHelpers::FObjectFinder<UTexture2D> Crosshair... | 30.569444 | 137 | 0.74239 |
bb338cd9ab1314e902f43b4f53526e7e9ec22fa7 | 4,352 | cpp | C++ | Engine/Source/Graphics/Vulkan/VulkanCmdList.cpp | IcanCUthere/Gravity-Engine | 3d61e7b78543572850efd9de3870a684ab476c7a | [
"MIT"
] | null | null | null | Engine/Source/Graphics/Vulkan/VulkanCmdList.cpp | IcanCUthere/Gravity-Engine | 3d61e7b78543572850efd9de3870a684ab476c7a | [
"MIT"
] | null | null | null | Engine/Source/Graphics/Vulkan/VulkanCmdList.cpp | IcanCUthere/Gravity-Engine | 3d61e7b78543572850efd9de3870a684ab476c7a | [
"MIT"
] | null | null | null | module;
#include <vulkan/vulkan.h>
#include "Core/DebugUtils.h"
module Graphics:Vulkan.CmdList;
import :Vulkan.Context;
import :Vulkan.Viewport;
import :Vulkan.Queue;
namespace GFX
{
AVulkanCmdList::AVulkanCmdList(const VkCommandBuffer handle, const VkCommandBufferLevel level, const VkPipelineStageFlags waitStages)
... | 32.969697 | 134 | 0.777803 |
7d6a6526026b9c3749bfc1bb1150338f05a1ff78 | 4,073 | cpp | C++ | command.cpp | SAE-Geneve/classylabyrinth-PaulOwO | 9229d3a5295dbed86892cefc03496c35a1997789 | [
"MIT"
] | null | null | null | command.cpp | SAE-Geneve/classylabyrinth-PaulOwO | 9229d3a5295dbed86892cefc03496c35a1997789 | [
"MIT"
] | null | null | null | command.cpp | SAE-Geneve/classylabyrinth-PaulOwO | 9229d3a5295dbed86892cefc03496c35a1997789 | [
"MIT"
] | null | null | null | #include <vector>
#include "command.h"
#include "character.h"
#include "player.h"
#include <iostream>
#include "world.h"
void Command::North()
{
Player player = world_.GetPlayer();
if (world_.get_tile_at_position(player.GetX(),player.GetY() - 1) != '.')
return;
else
player.SetY(player.GetY() - 1);
world_.S... | 22.016216 | 91 | 0.599067 |
7d6ac821dfb47fe447c915208b6ad81622943da1 | 8,312 | cpp | C++ | Remove_bad_split_good/llcpImp.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Remove_bad_split_good/llcpImp.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Remove_bad_split_good/llcpImp.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include "llcpInt.h"
using namespace std;
int FindListLength(Node* headPtr)
{
int length = 0;
while (headPtr != 0)
{
++length;
headPtr = headPtr->link;
}
return length;
}
bool IsSortedUp(Node* headPtr)
{
if (headPtr == 0 || headPtr->link == 0) // ... | 22.106383 | 83 | 0.490014 |
7d6ddda4678124e1766b0dab33a75a5f5e63f2a6 | 1,019 | cpp | C++ | ESPWatch/src/BLEHandler.cpp | jofrfu/ESPWatch | 94df11262096300e303d1446da3b45ad45eb0ed0 | [
"MIT"
] | null | null | null | ESPWatch/src/BLEHandler.cpp | jofrfu/ESPWatch | 94df11262096300e303d1446da3b45ad45eb0ed0 | [
"MIT"
] | null | null | null | ESPWatch/src/BLEHandler.cpp | jofrfu/ESPWatch | 94df11262096300e303d1446da3b45ad45eb0ed0 | [
"MIT"
] | null | null | null | //
// Created by Jonas Fuhrmann on 10.07.18.
//
#include <BLEDevice.h>
#include <Esp.h>
#include "BLEHandler.h"
#define SERVICE_UUID "476d099e-1ff4-43c0-9e36-23f4280ec5f7"
#define CHARACTERISTIC_UUID "19f220b8-2adf-4c46-867c-c75b208ba652"
BLEHandler::BLEHandler(BLECharacteristicCallbacks *callbacks) {
uin... | 27.540541 | 66 | 0.699706 |
7d6e1e01c3570d095c4fbfbedccf7574a4d14520 | 2,190 | cpp | C++ | libmcell/generated/gen_geometry_utils.cpp | mcellteam/mcell | 3920aec22c55013b78f7d6483b81f70a0d564d22 | [
"MIT"
] | 25 | 2015-03-25T16:36:01.000Z | 2022-01-17T14:28:43.000Z | libmcell/generated/gen_geometry_utils.cpp | mcellteam/mcell | 3920aec22c55013b78f7d6483b81f70a0d564d22 | [
"MIT"
] | 31 | 2015-02-12T22:15:18.000Z | 2022-03-30T22:43:24.000Z | libmcell/generated/gen_geometry_utils.cpp | mcellteam/mcell | 3920aec22c55013b78f7d6483b81f70a0d564d22 | [
"MIT"
] | 12 | 2016-01-15T23:20:19.000Z | 2021-02-10T06:18:00.000Z | /******************************************************************************
*
* Copyright (C) 2021 by
* The Salk Institute for Biological Studies
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*
***********... | 66.363636 | 504 | 0.688128 |
7d6e6edf8734373c350df18da046d23f69b68988 | 1,050 | hpp | C++ | src/cpp/Robot.hpp | Ewpratten/FRC-2018-OpenCV | 8509cd61823181bd7bdc43bceb3cd5046d8e83f2 | [
"BSD-3-Clause"
] | null | null | null | src/cpp/Robot.hpp | Ewpratten/FRC-2018-OpenCV | 8509cd61823181bd7bdc43bceb3cd5046d8e83f2 | [
"BSD-3-Clause"
] | null | null | null | src/cpp/Robot.hpp | Ewpratten/FRC-2018-OpenCV | 8509cd61823181bd7bdc43bceb3cd5046d8e83f2 | [
"BSD-3-Clause"
] | null | null | null | #ifndef _ROBOT_HG_
#define _ROBOT_HG_
#include <WPILib.h>
#include <Commands/Command.h>
#include <Commands/DriveWithJoystick.hpp>
#include <Commands/DriveWithTriggers.hpp>
#include <Commands/GenericControl.hpp>
#include <Commands/CVControl.hpp>
#include <Commands/Scheduler.h>
#include <SmartDashboard/SendableChooser.h... | 23.863636 | 43 | 0.785714 |
7d70ab9e221924593360e8260babd08711c521de | 1,376 | cpp | C++ | orca/gporca/libnaucrates/src/md/IMDProvider.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 3 | 2017-12-10T16:41:21.000Z | 2020-07-08T12:59:12.000Z | orca/gporca/libnaucrates/src/md/IMDProvider.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | orca/gporca/libnaucrates/src/md/IMDProvider.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 4 | 2017-12-10T16:41:35.000Z | 2020-11-28T12:20:30.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// IMDProvider.cpp
//
// @doc:
// Abstract class for retrieving metadata from an external location
//
// @owner:
//
//
// @test:
//
//
//------------------------------... | 19.657143 | 77 | 0.534884 |
7d721de4f52be0839911e50daf631d081fe92375 | 14,349 | hpp | C++ | core/os/MacOS/src/cogs/os/gui/scroll_bar.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/os/MacOS/src/cogs/os/gui/scroll_bar.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/os/MacOS/src/cogs/os/gui/scroll_bar.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: Good
#ifndef COGS_HEADER_OS_GUI_SCROLL_BAR
#define COGS_HEADER_OS_GUI_SCROLL_BAR
#include "cogs/sync/transactable.hpp"
#include "cogs/sync/resettable_timer.hpp"
#include "cogs/gui/scroll_bar.hpp"
#include "... | 24.075503 | 180 | 0.716008 |
7d7405fde349eeea40da5273dfd334848c18f502 | 619 | cpp | C++ | 0801-0900/0892-Surface Area of 3D Shapes/0892-Surface Area of 3D Shapes.cpp | jiadaizhao/LeetCode | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | [
"MIT"
] | 49 | 2018-05-05T02:53:10.000Z | 2022-03-30T12:08:09.000Z | 0801-0900/0892-Surface Area of 3D Shapes/0892-Surface Area of 3D Shapes.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 11 | 2017-12-15T22:31:44.000Z | 2020-10-02T12:42:49.000Z | 0801-0900/0892-Surface Area of 3D Shapes/0892-Surface Area of 3D Shapes.cpp | jolly-fellow/LeetCode | ab20b3ec137ed05fad1edda1c30db04ab355486f | [
"MIT"
] | 28 | 2017-12-05T10:56:51.000Z | 2022-01-26T18:18:27.000Z | class Solution {
public:
int surfaceArea(vector<vector<int>>& grid) {
int total = 0;
for (int i = 0; i < grid.size(); ++i) {
for (int j = 0; j < grid[i].size(); ++j) {
if (grid[i][j] > 0) {
total += grid[i][j] * 4 + 2;
if (i > 0) {
... | 28.136364 | 69 | 0.295638 |
7d7596ce9bafa625f38c75830bfe88ae69abba1a | 9,524 | cpp | C++ | libs2eplugins/src/s2e/Plugins/Lua/LuaFunctionInstrumentation.cpp | sebastianpoeplau/s2e | 995cac6126e7d80337e8c4a72bfa9a87eea7eb68 | [
"MIT"
] | 55 | 2019-12-20T03:25:14.000Z | 2022-01-16T07:19:47.000Z | libs2eplugins/src/s2e/Plugins/Lua/LuaFunctionInstrumentation.cpp | Moirai7/s2e | 5a321f76d1a862c3898b9d24de621109b0c12b7d | [
"MIT"
] | 2 | 2020-11-02T08:01:00.000Z | 2022-03-27T02:59:18.000Z | libs2eplugins/src/s2e/Plugins/Lua/LuaFunctionInstrumentation.cpp | Moirai7/s2e | 5a321f76d1a862c3898b9d24de621109b0c12b7d | [
"MIT"
] | 11 | 2020-08-06T03:59:45.000Z | 2022-02-25T02:31:59.000Z | ///
/// Copyright (C) 2015, Dependable Systems Laboratory, EPFL
/// Copyright (C) 2014-2019, Cyberhaven
///
/// 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, includin... | 35.014706 | 116 | 0.650147 |
7d7ab9cfb819f737c78671bbff11e3c8497cb62b | 2,152 | cpp | C++ | src/Native/libethash/exports.cpp | cyberpoolorg/cybercore | 4d8abc98f6a5dc975e006647d7d134b917d03701 | [
"MIT"
] | 1 | 2021-11-28T17:06:53.000Z | 2021-11-28T17:06:53.000Z | src/Native/libethash/exports.cpp | cyberpoolorg/cybercore | 4d8abc98f6a5dc975e006647d7d134b917d03701 | [
"MIT"
] | null | null | null | src/Native/libethash/exports.cpp | cyberpoolorg/cybercore | 4d8abc98f6a5dc975e006647d7d134b917d03701 | [
"MIT"
] | 6 | 2021-10-11T03:04:38.000Z | 2022-01-08T21:41:15.000Z | #include "sha3.h"
#include "internal.h"
#include "ethash.h"
extern "C" bool ethash_get_default_dirname(char* strbuf, size_t buffsize);
#ifdef _WIN32
#define MODULE_API __declspec(dllexport)
#else
#define MODULE_API
#endif
extern "C" MODULE_API uint64_t ethash_get_datasize_export(uint64_t const block_number)
{
retur... | 26.567901 | 129 | 0.81552 |
7d7ea7062e666fb13f7449a3bf72c0b43d3da71a | 2,433 | cpp | C++ | test/operation/exec.cpp | egranata/krakatau | 866a26580e9890d5fb0961280b9827f347b3776e | [
"Apache-2.0"
] | 13 | 2019-05-02T23:28:36.000Z | 2021-04-04T02:38:01.000Z | test/operation/exec.cpp | egranata/krakatau | 866a26580e9890d5fb0961280b9827f347b3776e | [
"Apache-2.0"
] | 28 | 2019-05-04T16:09:37.000Z | 2019-06-18T02:03:50.000Z | test/operation/exec.cpp | egranata/krakatau | 866a26580e9890d5fb0961280b9827f347b3776e | [
"Apache-2.0"
] | 1 | 2020-07-23T20:06:40.000Z | 2020-07-23T20:06:40.000Z | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 34.267606 | 116 | 0.685984 |
7d7f75355ff8f074d94ef4a92ad36d3fe50d55c9 | 48 | hpp | C++ | src/boost_preprocessor_list_to_tuple.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_preprocessor_list_to_tuple.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_preprocessor_list_to_tuple.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/preprocessor/list/to_tuple.hpp>
| 24 | 47 | 0.8125 |
7d7fb8c2d059d53e033a0ebb83481f72df87ebd5 | 57,296 | cpp | C++ | src/drivers/cosmica.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-01-25T20:16:33.000Z | 2021-01-25T20:16:33.000Z | src/drivers/cosmica.cpp | pierrelouys/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | 1 | 2021-05-24T20:28:35.000Z | 2021-05-25T14:44:54.000Z | src/drivers/cosmica.cpp | PSP-Archive/PSP-MAME4ALL | 54374b0579b7e2377f015ac155d8f519addfaa1a | [
"Unlicense"
] | null | null | null | /*Se anula todo lo referente a Space Panic y Cosmic Guerrilla*/
/***************************************************************************
Space Panic memory map
0000-3FFF ROM
4000-5BFF Video RAM (Bitmap)
5C00-5FFF RAM
6000-601F Sprite Controller
4 bytes per sprite
byte 1 - 80 = ?
... | 29.352459 | 172 | 0.638823 |
7d80836b17d9e97d4b9005008b5b88c3e3a74a6a | 572 | hpp | C++ | include/basic_csv_file_def.hpp | MarkusJx/csv | 35a945c789215ad6e817bd52de7d08c9842920b9 | [
"MIT"
] | null | null | null | include/basic_csv_file_def.hpp | MarkusJx/csv | 35a945c789215ad6e817bd52de7d08c9842920b9 | [
"MIT"
] | null | null | null | include/basic_csv_file_def.hpp | MarkusJx/csv | 35a945c789215ad6e817bd52de7d08c9842920b9 | [
"MIT"
] | null | null | null | #ifndef MARKUSJX_CSV_BASIC_CSV_FILE_DEF_HPP
#define MARKUSJX_CSV_BASIC_CSV_FILE_DEF_HPP
#include "escape_sequence_generator.hpp"
namespace markusjx {
/**
* A csv file
*
* @tparam T the char type of the file
* @tparam Sep the separator to use
* @tparam _escape_generator_ the escape sequenc... | 30.105263 | 129 | 0.73951 |
7d809872f30787c25f2ac2006a245718cad63d7a | 768 | hpp | C++ | include/dudp/server.hpp | swrh/dudp | b0159edd90f8cda10c150a7c2b9cf71d5443c7b6 | [
"BSD-3-Clause"
] | null | null | null | include/dudp/server.hpp | swrh/dudp | b0159edd90f8cda10c150a7c2b9cf71d5443c7b6 | [
"BSD-3-Clause"
] | null | null | null | include/dudp/server.hpp | swrh/dudp | b0159edd90f8cda10c150a7c2b9cf71d5443c7b6 | [
"BSD-3-Clause"
] | null | null | null | #if !defined(_DUDP_SERVER_HPP_)
#define _DUDP_SERVER_HPP_
#include <array>
#include <memory>
#include <string>
#include <boost/asio/io_service.hpp>
#include <boost/asio/ip/udp.hpp>
namespace dudp {
class
server
{
private:
boost::asio::ip::udp::socket socket_;
boost::asio::ip::udp::endpoint remote_endpoint_;... | 21.942857 | 130 | 0.727865 |
7d80cb5e3304cc76c8bc88c252e07bea5429a27f | 6,175 | cpp | C++ | kernel/runtime/dmzRuntimeResourcesObserver.cpp | shillcock/dmz | 02174b45089e12cd7f0840d5259a00403cd1ccff | [
"MIT"
] | 2 | 2015-11-05T03:03:40.000Z | 2016-02-03T21:50:40.000Z | kernel/runtime/dmzRuntimeResourcesObserver.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | kernel/runtime/dmzRuntimeResourcesObserver.cpp | dmzgroup/dmz | fc2d9ddcb04ed71f4106b8d33539529807b3dea6 | [
"MIT"
] | null | null | null | #include "dmzRuntimeContext.h"
#include "dmzRuntimeContextResources.h"
#include <dmzRuntimeHandle.h>
#include <dmzRuntimeLog.h>
#include <dmzRuntimePluginInfo.h>
#include <dmzRuntimeResourcesObserver.h>
/*!
\file dmzRuntimeResourcesObserver.h
\ingroup Runtime
\brief Contains ResourcesObserver class.
\enum dmz::Resou... | 24.311024 | 106 | 0.645506 |
7d82aaa7a32c67507092871e5b5d6de80bfcbe8b | 87 | cpp | C++ | src/cpp_code/unity_build.cpp | michalsta/mocos_helper | e33f29246c70ce1dbd477eeed2374ba902e46cfe | [
"MIT"
] | null | null | null | src/cpp_code/unity_build.cpp | michalsta/mocos_helper | e33f29246c70ce1dbd477eeed2374ba902e46cfe | [
"MIT"
] | null | null | null | src/cpp_code/unity_build.cpp | michalsta/mocos_helper | e33f29246c70ce1dbd477eeed2374ba902e46cfe | [
"MIT"
] | null | null | null | #include "mocosMath.cpp"
#include "weighted_sampling.cpp"
#include "age_dep_sampler.h"
| 21.75 | 32 | 0.793103 |
7d8495bf05507e3aa970d8f074866587ad2ed7d6 | 3,929 | cpp | C++ | simple_demo/plain_executables/DataSource.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | 1 | 2020-05-22T08:47:00.000Z | 2020-05-22T08:47:00.000Z | simple_demo/plain_executables/DataSource.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | simple_demo/plain_executables/DataSource.cpp | cd606/tm_examples | 5ea8e9774f5070fbcc073c71c39bcb7febef88a7 | [
"Apache-2.0"
] | null | null | null | #include <tm_kit/infra/Environments.hpp>
#include <tm_kit/infra/TerminationController.hpp>
#include <tm_kit/infra/RealTimeApp.hpp>
#include <tm_kit/basic/ByteData.hpp>
#include <tm_kit/basic/VoidStruct.hpp>
#include <tm_kit/basic/TrivialBoostLoggingComponent.hpp>
#include <tm_kit/basic/real_time_clock/ClockComponent.h... | 36.719626 | 138 | 0.73072 |
7d8ab812e8f22cb480326a57aeafb12e5ecd35e2 | 105 | cpp | C++ | Source/FSD/Private/RetirementReward.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/RetirementReward.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/RetirementReward.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "RetirementReward.h"
URetirementReward::URetirementReward() {
this->characterID = NULL;
}
| 15 | 40 | 0.733333 |
7d8ae4ee372c289ebda3efd3bb80874368db22a6 | 1,427 | cpp | C++ | src/XSRenderer/XSScreenshot.cpp | Razish/AIE-pathfinding | 366e19c7d20c626969e95e4ba9614127ed69e865 | [
"MIT"
] | 1 | 2015-09-11T06:38:19.000Z | 2015-09-11T06:38:19.000Z | src/XSRenderer/XSScreenshot.cpp | Razish/AIE-pathfinding | 366e19c7d20c626969e95e4ba9614127ed69e865 | [
"MIT"
] | null | null | null | src/XSRenderer/XSScreenshot.cpp | Razish/AIE-pathfinding | 366e19c7d20c626969e95e4ba9614127ed69e865 | [
"MIT"
] | null | null | null | #include "XSCommon/XSCommon.h"
#include "XSCommon/XSCvar.h"
#include "XSCommon/XSCommand.h"
#include "XSRenderer/XSRenderer.h"
#include "XSRenderer/XSBackend.h"
#include "XSRenderer/XSImagePNG.h"
#include "XSRenderer/XSRenderCommand.h"
namespace XS {
namespace Renderer {
namespace Backend {
static const size_... | 27.980392 | 92 | 0.695865 |
7d8d4e079ea50b00869f110d8dab885e825acd21 | 2,787 | cpp | C++ | engine/gfx/gles2/src/gfx_gles2_shader.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 12 | 2017-02-25T17:14:15.000Z | 2021-08-02T13:39:18.000Z | engine/gfx/gles2/src/gfx_gles2_shader.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 31 | 2017-02-23T06:59:44.000Z | 2017-05-21T11:49:10.000Z | engine/gfx/gles2/src/gfx_gles2_shader.cpp | aeon-engine/aeon-engine | 9efcf83985110c36ebf0964bd4f76b261f2f6717 | [
"MIT"
] | 5 | 2017-05-02T05:34:53.000Z | 2020-05-19T06:57:50.000Z | /*
* Copyright (c) 2012-2018 Robin Degen
*
* 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,... | 29.648936 | 95 | 0.743093 |
7d8db40b57296ab0611ed65766375ef9d6539625 | 6,205 | cc | C++ | mindspore/ccsrc/plugin/device/cpu/kernel/eigen/eig_cpu_kernel.cc | httpsgithu/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | 1 | 2022-02-23T09:13:43.000Z | 2022-02-23T09:13:43.000Z | mindspore/ccsrc/plugin/device/cpu/kernel/eigen/eig_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/plugin/device/cpu/kernel/eigen/eig_cpu_kernel.cc | 949144093/mindspore | c29d6bb764e233b427319cb89ba79e420f1e2c64 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021-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 applicabl... | 42.793103 | 116 | 0.720709 |