hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3d932aa33720f1c7a77a75b9994337d062f2494a | 2,000 | cpp | C++ | libs/icl/test/fix_tickets_/fix_tickets.cpp | olegshnitko/libboost | 548eb6365af3724d8f4b47ebbabf7eb3ad8e66a8 | [
"BSL-1.0"
] | 1 | 2019-10-31T00:40:22.000Z | 2019-10-31T00:40:22.000Z | libs/icl/test/fix_tickets_/fix_tickets.cpp | olegshnitko/libboost | 548eb6365af3724d8f4b47ebbabf7eb3ad8e66a8 | [
"BSL-1.0"
] | 1 | 2018-01-17T10:11:43.000Z | 2018-01-17T10:11:43.000Z | libs/icl/test/fix_tickets_/fix_tickets.cpp | olegshnitko/libboost | 548eb6365af3724d8f4b47ebbabf7eb3ad8e66a8 | [
"BSL-1.0"
] | null | null | null | /*-----------------------------------------------------------------------------+
Copyright (c) 2011-2011: Joachim Faulhaber
+------------------------------------------------------------------------------+
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENCE.txt or copy ... | 35.087719 | 84 | 0.646 | olegshnitko |
3d93346dff30ce2e5a4205407046d262a11ac7f0 | 1,347 | cpp | C++ | 3D/Model.cpp | Floppy/alienation | d2fca9344f88f70f1547573bea2244f77bd23379 | [
"BSD-3-Clause"
] | null | null | null | 3D/Model.cpp | Floppy/alienation | d2fca9344f88f70f1547573bea2244f77bd23379 | [
"BSD-3-Clause"
] | null | null | null | 3D/Model.cpp | Floppy/alienation | d2fca9344f88f70f1547573bea2244f77bd23379 | [
"BSD-3-Clause"
] | null | null | null | #include "3D/Model.h"
#include <SDL_opengl.h>
#include <iostream>
using namespace std;
CModel::CModel()
{
}
CModel::~CModel()
{
// Delete meshes
for (vector<C3DObject*>::iterator it(m_oObjects.begin()); it!=m_oObjects.end(); ++it) {
delete *it;
}
}
void CModel::init() {
vector<C3DObject*>::itera... | 21.725806 | 96 | 0.623608 | Floppy |
3d938a72a0fbca54f2579dfd96f53f6b7fe1aa32 | 139 | cc | C++ | u-math.cc | lvv/lvvlib | b610a089103853e7cf970efde2ce4bed9f505090 | [
"MIT"
] | 13 | 2015-02-05T12:26:16.000Z | 2020-09-14T23:13:14.000Z | u-math.cc | lvv/lvvlib | b610a089103853e7cf970efde2ce4bed9f505090 | [
"MIT"
] | null | null | null | u-math.cc | lvv/lvvlib | b610a089103853e7cf970efde2ce4bed9f505090 | [
"MIT"
] | null | null | null |
#include <lvv/check.h>
#include <lvv/math.h>
//using namespace std;
using namespace lvv;
int
main() {
CHECK_EXIT;
}
| 10.692308 | 23 | 0.589928 | lvv |
3d93f1cb10ea3bee5d995ee83b7a16e26d503a20 | 1,385 | hpp | C++ | src/NumericalAlgorithms/LinearOperators/Tags.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 2 | 2021-04-11T04:07:42.000Z | 2021-04-11T05:07:54.000Z | src/NumericalAlgorithms/LinearOperators/Tags.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 4 | 2018-06-04T20:26:40.000Z | 2018-07-27T14:54:55.000Z | src/NumericalAlgorithms/LinearOperators/Tags.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 1 | 2019-01-03T21:47:04.000Z | 2019-01-03T21:47:04.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <string>
#include "DataStructures/DataBox/Tag.hpp"
#include "Options/Options.hpp"
namespace OptionTags {
/*!
* \ingroup OptionGroupsGroup
* \brief Groups the filtering configurations in the input file.
*/
struct Filtering... | 25.181818 | 76 | 0.725632 | macedo22 |
3d9769206990b5a564033e499fd191ca703103ee | 1,377 | cpp | C++ | backends/magma/kernels/hip/magma_devptr.hip.cpp | AdelekeBankole/libCEED | aae8ce39fa1e28b745979a9cbffc67a790eb3f5e | [
"BSD-2-Clause"
] | 123 | 2018-01-29T02:04:05.000Z | 2022-03-21T18:13:48.000Z | backends/magma/kernels/hip/magma_devptr.hip.cpp | AdelekeBankole/libCEED | aae8ce39fa1e28b745979a9cbffc67a790eb3f5e | [
"BSD-2-Clause"
] | 781 | 2017-12-22T17:20:35.000Z | 2022-03-29T21:34:34.000Z | backends/magma/kernels/hip/magma_devptr.hip.cpp | AdelekeBankole/libCEED | aae8ce39fa1e28b745979a9cbffc67a790eb3f5e | [
"BSD-2-Clause"
] | 41 | 2017-12-27T22:35:13.000Z | 2022-03-01T13:02:07.000Z | #include <ceed/ceed.h>
#include <magma_v2.h>
#include <hip/hip_runtime.h>
/***************************************************************************//**
Determines whether a pointer points to CPU or GPU memory.
This is very similar to magma_is_devptr, except that it does not check for
unified addressin... | 32.023256 | 89 | 0.538853 | AdelekeBankole |
3d987da0967cf411958390863a9b9253926c4607 | 4,115 | cpp | C++ | libredex/WorkQueue.cpp | sjndhkl/redex | f6da510e67da284b0093bf01e2e9357d8b963cfd | [
"BSD-3-Clause"
] | null | null | null | libredex/WorkQueue.cpp | sjndhkl/redex | f6da510e67da284b0093bf01e2e9357d8b963cfd | [
"BSD-3-Clause"
] | null | null | null | libredex/WorkQueue.cpp | sjndhkl/redex | f6da510e67da284b0093bf01e2e9357d8b963cfd | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2016-present, 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 "... | 30.036496 | 78 | 0.665857 | sjndhkl |
3d9cb981888e33978b323b09898b09907ce75425 | 14,311 | cpp | C++ | src/mame/audio/cinemat.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/audio/cinemat.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/audio/cinemat.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Aaron Giles
/***************************************************************************
Cinematronics vector hardware
Special thanks to Neil Bradley, Zonn Moore, and Jeff Mitchell of the
Retrocade Alliance
Update:
6/27/99 Jim Hernandez -- 1st Attempt ... | 29.6294 | 224 | 0.665013 | Robbbert |
3da038efc520f05d7de39e486984c907e32def8d | 27,204 | cpp | C++ | device/pal/palcounters.cpp | devurandom/ROCclr | 96724e055997473b36c74a0516d1e5ad9e1ca959 | [
"MIT"
] | null | null | null | device/pal/palcounters.cpp | devurandom/ROCclr | 96724e055997473b36c74a0516d1e5ad9e1ca959 | [
"MIT"
] | null | null | null | device/pal/palcounters.cpp | devurandom/ROCclr | 96724e055997473b36c74a0516d1e5ad9e1ca959 | [
"MIT"
] | null | null | null | /* Copyright (c) 2015 - 2021 Advanced Micro Devices, 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, modify, mer... | 33.6267 | 152 | 0.474489 | devurandom |
3da14a42571d935284d2b3c5246050a0b6bfe644 | 16,167 | cc | C++ | lib/fromfile.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/fromfile.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | lib/fromfile.cc | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | // -*- related-file-name: "../include/click/fromfile.hh"; c-basic-offset: 4 -*-
/*
* fromfile.{cc,hh} -- provides convenient, fast access to files
* Eddie Kohler
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
* Copyright (c) 2001-2003 International Computer Science Institute
* Copyright (c) 200... | 24.022288 | 135 | 0.623616 | BorisPis |
3da5cdd56c3e5b293637dbd764dbed8d1a4f6ebc | 1,737 | cpp | C++ | PlatformIO/Peak-ESP32-fw/src/App/Pages/SystemInfos/SystemInfosModel.cpp | Xinyuan-LilyGO/T-Watch-2019-reissue-peak | 9bc2b065e652ce78ef1bcff50a250d6bbea866e1 | [
"MIT"
] | null | null | null | PlatformIO/Peak-ESP32-fw/src/App/Pages/SystemInfos/SystemInfosModel.cpp | Xinyuan-LilyGO/T-Watch-2019-reissue-peak | 9bc2b065e652ce78ef1bcff50a250d6bbea866e1 | [
"MIT"
] | null | null | null | PlatformIO/Peak-ESP32-fw/src/App/Pages/SystemInfos/SystemInfosModel.cpp | Xinyuan-LilyGO/T-Watch-2019-reissue-peak | 9bc2b065e652ce78ef1bcff50a250d6bbea866e1 | [
"MIT"
] | 1 | 2021-12-22T08:32:14.000Z | 2021-12-22T08:32:14.000Z | #include "SystemInfosModel.h"
#include <stdio.h>
using namespace Page;
void SystemInfosModel::Init()
{
account = new Account("SystemInfosModel", AccountSystem::Broker(), 0, this);
account->Subscribe("IMU");
account->Subscribe("Power");
account->Subscribe("Storage");
}
void SystemInfosModel::Deinit()... | 19.087912 | 80 | 0.583765 | Xinyuan-LilyGO |
3da5df954d2062ca7f6b835e0ba3ad92ea638dff | 3,898 | cc | C++ | src/native_client_sdk/src/examples/pong/pong_instance.cc | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 9 | 2018-09-21T05:36:12.000Z | 2021-11-15T15:14:36.000Z | src/native_client_sdk/src/examples/pong/pong_instance.cc | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 1 | 2015-07-21T08:02:01.000Z | 2015-07-21T08:02:01.000Z | native_client_sdk/src/examples/pong/pong_instance.cc | jianglong0156/chromium.src | d496dfeebb0f282468827654c2b3769b3378c087 | [
"BSD-3-Clause"
] | 6 | 2016-11-14T10:13:35.000Z | 2021-01-23T15:29:53.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdio.h>
#include <string.h>
#include <cmath>
#include <string>
#include "ppapi/cpp/completion_callback.h"
#include "ppapi/cpp/input_event.h... | 27.258741 | 80 | 0.718061 | jxjnjjn |
3da62616228d30be6861f14794bbb41450fd7aec | 5,152 | hpp | C++ | enduser/netmeeting/ui/wb/bmpobj.hpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/netmeeting/ui/wb/bmpobj.hpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/netmeeting/ui/wb/bmpobj.hpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// BITMAPOBJ.HPP
// Bitmap objects:
//
// Copyright Microsoft 1998-
//
#ifndef __BITMAPOBJ_HPP_
#define __BITMAPOBJ_HPP_
typedef struct COLOREDICON
{
HICON hIcon;
COLORREF color;
} COLORED_ICON;
#define MAX_BITMAP_DATA 8192
UINT GetBitmapDestinationAddress(BitmapDestinationAddress *destin... | 31.802469 | 123 | 0.742236 | npocmaka |
3da63cb408e8386af37d557baa797fe3a21753c3 | 1,452 | cpp | C++ | Source/Core/TornadoEngine/Features/Graphic/TitleUpdaterSystem.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 27 | 2015-01-08T08:26:29.000Z | 2019-02-10T03:18:05.000Z | Source/Core/TornadoEngine/Features/Graphic/TitleUpdaterSystem.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 1 | 2017-04-05T02:02:14.000Z | 2017-04-05T02:02:14.000Z | Source/Core/TornadoEngine/Features/Graphic/TitleUpdaterSystem.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 17 | 2015-01-18T02:50:01.000Z | 2019-02-08T21:00:53.000Z | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information LICENSE.md.
*/
#include "TitleUpdaterSystem.h"
#include "ButtonComponent.h"
#include "DialogComponent.h"
#include "InputTextComponent.h"
#include "MenuNodeC... | 40.333333 | 125 | 0.614325 | RamilGauss |
3da766cd537615bd574d3c16da1c8070c15eb107 | 3,368 | hpp | C++ | src/renderer/Overlay.hpp | Youka/SSBRenderer_rework | a42aa7f90819f8dddd2073d5c971f74b36c97380 | [
"Zlib"
] | 7 | 2015-06-21T14:35:16.000Z | 2021-08-30T12:00:52.000Z | src/renderer/Overlay.hpp | Youka/SSBRenderer_rework | a42aa7f90819f8dddd2073d5c971f74b36c97380 | [
"Zlib"
] | 1 | 2017-02-28T14:09:43.000Z | 2017-03-02T06:55:19.000Z | src/renderer/Overlay.hpp | Youka/SSBRenderer_rework | a42aa7f90819f8dddd2073d5c971f74b36c97380 | [
"Zlib"
] | 1 | 2015-12-09T18:22:09.000Z | 2015-12-09T18:22:09.000Z | /*
Project: SSBRenderer
File: Overlay.hpp
Copyright (c) 2015, Christoph "Youka" Spanknebel
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this softwar... | 42.632911 | 247 | 0.720903 | Youka |
3da8afccbc59291be92554ce4f12bffabb27b63d | 17,308 | cc | C++ | modules/util/load/load_dump_options.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | null | null | null | modules/util/load/load_dump_options.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 1 | 2021-09-12T22:07:06.000Z | 2021-09-12T22:07:06.000Z | modules/util/load/load_dump_options.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020, 2021, Oracle and/or its affiliates.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with certain software (in... | 37.382289 | 80 | 0.651144 | mueller |
3dac8bc324e9532eb6200a2d9208019c5702462d | 524 | cpp | C++ | src/crypto/test/src/UUIDTest.cpp | karz0n/algorithms | b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8 | [
"MIT"
] | 1 | 2020-04-18T14:34:16.000Z | 2020-04-18T14:34:16.000Z | src/crypto/test/src/UUIDTest.cpp | karz0n/algorithms | b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8 | [
"MIT"
] | null | null | null | src/crypto/test/src/UUIDTest.cpp | karz0n/algorithms | b2a08ba990c7e4f078eb7bf3c90d050eb38de9d8 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "UUID.hpp"
using namespace testing;
using namespace algorithms;
TEST(UUIDTest, ByTime)
{
const auto uuid = UUID::createByTime().toString();
EXPECT_THAT(uuid, Not(IsEmpty()));
}
TEST(UUIDTest, ByRandom)
{
const auto uuid = UUID::createByRandom().... | 20.96 | 84 | 0.685115 | karz0n |
3dacbd05c705863a5af6703ad7ea29bc2383bec8 | 7,740 | cpp | C++ | lib/fuzzer/FuzzerUtilFuchsia.cpp | MaskRay/compiler-rt | 3756e8110e6f7d8e1e8a47a048afe02fb3a09999 | [
"MIT"
] | null | null | null | lib/fuzzer/FuzzerUtilFuchsia.cpp | MaskRay/compiler-rt | 3756e8110e6f7d8e1e8a47a048afe02fb3a09999 | [
"MIT"
] | null | null | null | lib/fuzzer/FuzzerUtilFuchsia.cpp | MaskRay/compiler-rt | 3756e8110e6f7d8e1e8a47a048afe02fb3a09999 | [
"MIT"
] | null | null | null | //===- FuzzerUtilFuchsia.cpp - Misc utils for Fuchsia. --------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 29.318182 | 80 | 0.624935 | MaskRay |
3db20bdee63c01240ac7f0ccf9a04ab3184e8b28 | 3,547 | cpp | C++ | src/Pegasus/Repository/tests/AssocTable/AssocTable.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/Repository/tests/AssocTable/AssocTable.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/Repository/tests/AssocTable/AssocTable.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | 1 | 2022-03-07T22:54:02.000Z | 2022-03-07T22:54:02.000Z | //%2005////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
// IBM Corp.; EMC Cor... | 34.105769 | 80 | 0.614886 | ncultra |
3db3ab5e00833a62af26549b7e990fa5e7f08309 | 885 | cpp | C++ | cpp/emcpp/impls/trim.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | 2 | 2021-04-26T16:37:38.000Z | 2022-03-15T01:26:19.000Z | cpp/emcpp/impls/trim.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | null | null | null | cpp/emcpp/impls/trim.cpp | lonelyhentai/workspace | 2a996af58d6b9be5d608ed040267398bcf72403b | [
"MIT"
] | 1 | 2022-03-15T01:26:23.000Z | 2022-03-15T01:26:23.000Z | #include <vector>
#include <string>
#include <iostream>
int main() {
/**
* 针对可复制的形参,在移动成本低且一定会被复制的情况下,考虑将其按值传递
*/
{
// 1 仅对于可复制的形参,才考虑按值传递;
// 2 按值传递仅仅在形参成本低廉的情况下;
// 3 在不需要重新分配内存的情况下,按值传递会导致多得多的成本;
// 4 在调用链上传递累加会导致难以忍受的成本;
// 5 按值传递可能遇到切片问题;
}
/**
... | 25.285714 | 72 | 0.540113 | lonelyhentai |
3db3f42f1fc67fbe8b23f279b65efa163b3c7a3b | 1,142 | cpp | C++ | shortest_path_in_DAG.cpp | WizArdZ3658/Data-Structures-and-Algorithms | 4098c0680c13127473d7ce6a41ead519559ff962 | [
"MIT"
] | 3 | 2020-09-14T04:50:13.000Z | 2021-04-17T06:42:43.000Z | shortest_path_in_DAG.cpp | WizArdZ3658/Data-Structures-and-Algorithms | 4098c0680c13127473d7ce6a41ead519559ff962 | [
"MIT"
] | null | null | null | shortest_path_in_DAG.cpp | WizArdZ3658/Data-Structures-and-Algorithms | 4098c0680c13127473d7ce6a41ead519559ff962 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int shortest_path(vector<vector<int>> &adj)
{
int n = adj.size();
int indegree[n] = {0};
int s_path[n] = {0};
for (int i = 0; i < n; ++i)
{
for (int j = 0; j < adj[i].size(); ++j)
{
indegree[adj[i][j]]++;
}
}
queue<int> q;
for (int i = 0; i < n; ++i)
{
i... | 17.569231 | 61 | 0.517513 | WizArdZ3658 |
3db4280fa80299604b5bdf55c8bfaf45565e880f | 2,767 | cpp | C++ | lib/loaders/BoxLoader.cpp | nghiattran/KittiViz | fa3ac5edb1f5efbfef7a9ef2926042f32045b7c0 | [
"MIT"
] | 19 | 2017-12-29T14:34:58.000Z | 2021-12-22T07:46:32.000Z | lib/loaders/BoxLoader.cpp | dj-boy/KittiViz | fa3ac5edb1f5efbfef7a9ef2926042f32045b7c0 | [
"MIT"
] | 1 | 2017-12-29T14:34:53.000Z | 2018-08-05T20:09:56.000Z | lib/loaders/BoxLoader.cpp | dj-boy/KittiViz | fa3ac5edb1f5efbfef7a9ef2926042f32045b7c0 | [
"MIT"
] | 3 | 2018-01-25T00:17:24.000Z | 2021-07-03T15:36:58.000Z | #include "BoxLoader.h"
BoxLoader* BoxLoader::mInstance = NULL;
BoxLoader::BoxLoader()
{
// This creates our identifier and puts it in vbo
glGenVertexArrays(1, &vboptr);
glGenBuffers(1, &eboptr);
glGenBuffers(1, &bufptr);
for (uint i = 0; i < NUM_PTS; i++)
{
if (points[i*4] < -0.45)
... | 25.859813 | 91 | 0.643296 | nghiattran |
3db4e7a54e1559f8dc1fbc088e21f83d2a7d7be7 | 2,461 | cc | C++ | chrome/browser/ui/views/crostini/crostini_force_close_view_browsertest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/ui/views/crostini/crostini_force_close_view_browsertest.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/ui/views/crostini/crostini_force_close_view_browsertest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2019 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 "chrome/browser/ui/views/crostini/crostini_force_close_view.h"
#include "base/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/run_loop.... | 31.551282 | 81 | 0.762292 | Ron423c |
3db6382bf802d86f342da1d68b881dfdcadfa86a | 2,308 | cpp | C++ | Untitled-1.cpp | amitRan109/Cpp-Ex2 | e52ee35d5a1857a423c2a78f96e44830bbf275a7 | [
"MIT"
] | null | null | null | Untitled-1.cpp | amitRan109/Cpp-Ex2 | e52ee35d5a1857a423c2a78f96e44830bbf275a7 | [
"MIT"
] | null | null | null | Untitled-1.cpp | amitRan109/Cpp-Ex2 | e52ee35d5a1857a423c2a78f96e44830bbf275a7 | [
"MIT"
] | 1 | 2021-02-05T11:09:02.000Z | 2021-02-05T11:09:02.000Z |
// string Tree:: relation(string relate) {
// Node root = getRoot();
// if (root == NULL) return "unrelated";
// if (relate == "me") {
// return root.getData();
// }
// if (relate == "father"){
// if (root.getFather() == NULL) return "unrelated";
// return root.getFather().g... | 37.225806 | 94 | 0.519064 | amitRan109 |
3db7feb4d96c5071323b56e854906ac011e8682f | 5,192 | cpp | C++ | src/test/WorldPacketHandlerTestCase.cpp | Lidocian/ZeroBots | 297072e07f85fc661e1b0e9a34c09580e3bfef14 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | 1 | 2018-05-06T12:13:04.000Z | 2018-05-06T12:13:04.000Z | src/test/WorldPacketHandlerTestCase.cpp | Lidocian/ZeroBots | 297072e07f85fc661e1b0e9a34c09580e3bfef14 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/test/WorldPacketHandlerTestCase.cpp | Lidocian/ZeroBots | 297072e07f85fc661e1b0e9a34c09580e3bfef14 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | #include "pch.h"
#include "aitest.h"
#include "MockAiObjectContext.h"
#include "MockedAiObjectContextTestCase.h"
#include "../../modules/Bots/playerbot/strategy/generic/ChatCommandHandlerStrategy.h"
using namespace ai;
class WorldPacketHandlerTestCase : public MockedAiObjectContextTestCase
{
CPPUNIT_TEST_SUITE( W... | 19.969231 | 108 | 0.561633 | Lidocian |
3dbfb7ec317b20d1d50b712a6ecc29a3c718378d | 18,526 | hpp | C++ | libs/fnd/span/include/bksge/fnd/span/span.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/span/include/bksge/fnd/span/span.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/span/include/bksge/fnd/span/span.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file span.hpp
*
* @brief span の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_SPAN_SPAN_HPP
#define BKSGE_FND_SPAN_SPAN_HPP
#include <bksge/fnd/span/config.hpp>
#if defined(BKSGE_USE_STD_SPAN)
namespace bksge
{
using std::span;
} // namespace bksge
#else
#include <bksge/fnd/s... | 25.171196 | 111 | 0.685577 | myoukaku |
3dc351a18819d609d3b05c4c58ae34908eff6c00 | 1,832 | cpp | C++ | glass/src/libnt/native/cpp/NTSpeedController.cpp | shueja-personal/allwpilib | 4b2f6be29e21986703d9c3ddcd2fe07121b2ff6b | [
"BSD-3-Clause"
] | 707 | 2016-05-11T16:54:13.000Z | 2022-03-30T13:03:15.000Z | glass/src/libnt/native/cpp/NTSpeedController.cpp | shueja-personal/allwpilib | 4b2f6be29e21986703d9c3ddcd2fe07121b2ff6b | [
"BSD-3-Clause"
] | 2,308 | 2016-05-12T00:17:17.000Z | 2022-03-30T20:08:10.000Z | glass/src/libnt/native/cpp/NTSpeedController.cpp | shueja-personal/allwpilib | 4b2f6be29e21986703d9c3ddcd2fe07121b2ff6b | [
"BSD-3-Clause"
] | 539 | 2016-05-11T20:33:26.000Z | 2022-03-28T20:20:25.000Z | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "glass/networktables/NTSpeedController.h"
#include <fmt/format.h>
#include <wpi/StringExtras.h>
using namespa... | 34.566038 | 75 | 0.670852 | shueja-personal |
3dc8042fc8abf17f09b30eb2226376c847630ff6 | 4,748 | cpp | C++ | src/engine/render/renderer/pass_lighting.cpp | LunarGameTeam/Lunar-GameEngine | b387d7008525681fe06db8811f4f7ee95aa7aaf1 | [
"MIT"
] | 4 | 2020-08-07T02:18:13.000Z | 2021-07-08T09:46:11.000Z | src/engine/render/renderer/pass_lighting.cpp | LunarGameTeam/Lunar-GameEngine | b387d7008525681fe06db8811f4f7ee95aa7aaf1 | [
"MIT"
] | null | null | null | src/engine/render/renderer/pass_lighting.cpp | LunarGameTeam/Lunar-GameEngine | b387d7008525681fe06db8811f4f7ee95aa7aaf1 | [
"MIT"
] | null | null | null | #include "render/renderer/pass_lighting.h"
#include "core/asset/asset_subsystem.h"
#include "render/render_subsystem.h"
#include "render/interface/i_light.h"
#include "render/rhi/rhi_device.h"
#include "render/rhi/rhi_command_list.h"
namespace luna
{
namespace render
{
LightingRenderPass::LightingRenderPass():
m_def... | 26.52514 | 102 | 0.721567 | LunarGameTeam |
3dca8542a1fec0d1582cd2640b4d1ddf77fd09d4 | 583 | cpp | C++ | libkiml/src/stringpool.cpp | alexanderdna/KimL | 58915197ac5a85686a9d6126c4c2fe0374419fde | [
"MIT"
] | null | null | null | libkiml/src/stringpool.cpp | alexanderdna/KimL | 58915197ac5a85686a9d6126c4c2fe0374419fde | [
"MIT"
] | 1 | 2020-07-13T03:44:19.000Z | 2020-07-14T08:32:03.000Z | libkiml/src/stringpool.cpp | alexanderdna/KimL | 58915197ac5a85686a9d6126c4c2fe0374419fde | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "stringpool.h"
void StringPool::Init(void)
{
this->buffer.reserve(5120); //5KB
}
void StringPool::AddString(KIMLCSTRING str)
{
std::string s(str);
std::map<std::string, KIMLUINT>::iterator it = this->table.find(s);
if (it == this->table.end())
{
KIMLUINT ptr = this->buffer.size();... | 18.21875 | 69 | 0.665523 | alexanderdna |
3dcaf9903b786f895d5385684bfd728f7534822c | 2,455 | cc | C++ | cpp/src/arrow/util/compression_brotli.cc | thaining/arrow | b796b579b8aba472c6690a49f95e8e174d01a4bb | [
"Apache-2.0"
] | null | null | null | cpp/src/arrow/util/compression_brotli.cc | thaining/arrow | b796b579b8aba472c6690a49f95e8e174d01a4bb | [
"Apache-2.0"
] | null | null | null | cpp/src/arrow/util/compression_brotli.cc | thaining/arrow | b796b579b8aba472c6690a49f95e8e174d01a4bb | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 36.641791 | 85 | 0.686354 | thaining |
3dcdd7e74d5134fba2e875283e9efd952dcb025b | 36,638 | cc | C++ | src/brepr.cc | trucnguyenlam/mucke | bf856f0bb5e758e6c6c32766e50d7957167679d8 | [
"BSD-4-Clause-UC"
] | null | null | null | src/brepr.cc | trucnguyenlam/mucke | bf856f0bb5e758e6c6c32766e50d7957167679d8 | [
"BSD-4-Clause-UC"
] | null | null | null | src/brepr.cc | trucnguyenlam/mucke | bf856f0bb5e758e6c6c32766e50d7957167679d8 | [
"BSD-4-Clause-UC"
] | null | null | null | /* (C) 1996-1999 Armin Biere, University of Karlsruhe
* (C) 2000 Armin Biere, ETH Zuerich
* $Id: brepr.cc,v 1.6 2008-03-03 11:40:40 biere Exp $
*/
/*TOC------------------------------------------------------------------------.
| BoolePredicate |
| BoolePre... | 23.395913 | 109 | 0.481167 | trucnguyenlam |
3dce70b1ce463fd95c96a45c8ad93c5d9a561d55 | 7,054 | cpp | C++ | 3dparty/taglib/taglib/riff/wav/wavfile.cpp | olanser/uteg | c8c79a8e8e5d185253b415e67f7b6d9e37114da3 | [
"MIT"
] | 3,066 | 2016-06-10T09:23:40.000Z | 2022-03-31T11:01:01.000Z | 3dparty/taglib/taglib/riff/wav/wavfile.cpp | olanser/uteg | c8c79a8e8e5d185253b415e67f7b6d9e37114da3 | [
"MIT"
] | 414 | 2016-09-20T20:26:05.000Z | 2022-03-29T00:43:13.000Z | 3dparty/taglib/taglib/riff/wav/wavfile.cpp | olanser/uteg | c8c79a8e8e5d185253b415e67f7b6d9e37114da3 | [
"MIT"
] | 310 | 2016-06-13T21:53:04.000Z | 2022-03-18T14:36:38.000Z | /***************************************************************************
copyright : (C) 2008 by Scott Wheeler
email : wheeler@kde.org
***************************************************************************/
/*******************************************************************... | 26.618868 | 85 | 0.523391 | olanser |
3dcfa251c840550bb543c175dab852b9b79314ad | 316,966 | hpp | C++ | inc/pegtl.hpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | inc/pegtl.hpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | inc/pegtl.hpp | glaba/glc | f262ee29594da9cee3ddfb476baa4a300d0eace4 | [
"MIT"
] | null | null | null | /*
Welcome to the Parsing Expression Grammar Template Library (PEGTL).
-e See https://github.com/taocpp/PEGTL/ for more information, documentation, etc.
-e The library is licensed as follows:
The MIT License (MIT)
Copyright (c) 2007-2020 Dr. Colin Hirsch and Daniel Frey
Permission is hereby granted, free of charge... | 29.335123 | 834 | 0.592966 | glaba |
3dd5ffa4c785a170dafbe766a344550b60ac0d02 | 3,670 | cc | C++ | chrome/browser/first_run/first_run_gtk.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/browser/first_run/first_run_gtk.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/first_run/first_run_gtk.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 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 "chrome/browser/first_run/first_run.h"
#include "app/app_switches.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "ba... | 35.631068 | 78 | 0.741144 | Gitman1989 |
3dd7f0638bcbd930148f051967274cf6b03883b4 | 13,612 | cpp | C++ | src/x86_energy_sync_plugin.cpp | readex-eu/scorep_plugin_x86_energy | 0a46340795b0a2f2f4b6848477f3507e9c0c5803 | [
"BSD-3-Clause"
] | 6 | 2015-10-30T12:20:59.000Z | 2020-05-01T09:45:25.000Z | src/x86_energy_sync_plugin.cpp | readex-eu/scorep_plugin_x86_energy | 0a46340795b0a2f2f4b6848477f3507e9c0c5803 | [
"BSD-3-Clause"
] | 7 | 2017-06-01T20:53:29.000Z | 2020-04-30T11:19:58.000Z | src/x86_energy_sync_plugin.cpp | readex-eu/scorep_plugin_x86_energy | 0a46340795b0a2f2f4b6848477f3507e9c0c5803 | [
"BSD-3-Clause"
] | 2 | 2017-04-13T08:32:40.000Z | 2018-08-22T08:34:31.000Z | /*
* Copyright (c) 2016, Technische Universität Dresden, Germany
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice... | 35.727034 | 100 | 0.606964 | readex-eu |
3dd826c3ebf05ae78877f8923818494ada1ff2b2 | 5,033 | hpp | C++ | src/StateSystem.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | src/StateSystem.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | 29 | 2016-08-01T14:50:12.000Z | 2017-12-17T20:28:27.000Z | src/StateSystem.hpp | epicbrownie/Epic | c54159616b899bb24c6d59325d582e73f2803ab6 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2017 Ronnie Brohn (EpicBrownie)
//
// Distributed under The MIT License (MIT).
// (See accompanying file License.txt or copy at
// https://opensource.org/licens... | 21.326271 | 84 | 0.641963 | epicbrownie |
3dd8cf6ffba045e1fc8596f8bcdf4dc6c02188f1 | 352 | hpp | C++ | components/python/detail/forward.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 9 | 2020-07-20T15:32:07.000Z | 2021-06-04T13:02:58.000Z | components/python/detail/forward.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 26 | 2019-10-27T12:58:42.000Z | 2020-05-30T16:43:48.000Z | components/python/detail/forward.hpp | jinntechio/RocketJoe | 9b08a21fda1609c57b40ef8b9750897797ac815b | [
"BSD-3-Clause"
] | 3 | 2020-08-29T07:07:49.000Z | 2021-06-04T13:02:59.000Z | #pragma once
namespace components { namespace python { namespace detail {
class data_set;
class file_manager;
class file_view;
class context;
class context_manager;
class file_manager;
class pipelien_data_set;
}}} // namespace components::python::detail
namespace boost {
template<cla... | 19.555556 | 60 | 0.713068 | jinntechio |
3ddaeb065a774d18e6ccad30062a3ed8311cb702 | 3,200 | hpp | C++ | src/common.hpp | Hardcode84/DirectDrawWrapper | 71ca1caa4a77c19af71be88582c009eb79132280 | [
"MIT"
] | 2 | 2017-12-20T07:11:10.000Z | 2020-05-13T08:08:47.000Z | src/common.hpp | Hardcode84/DirectDrawWrapper | 71ca1caa4a77c19af71be88582c009eb79132280 | [
"MIT"
] | null | null | null | src/common.hpp | Hardcode84/DirectDrawWrapper | 71ca1caa4a77c19af71be88582c009eb79132280 | [
"MIT"
] | 2 | 2017-12-20T07:09:58.000Z | 2021-01-21T08:29:59.000Z | #ifndef COMMON_HPP
#define COMMON_HPP
#include "ddraw.h"
#include <atomic>
#include <algorithm>
#include "simple_logger/logger.hpp"
#include "tools/com_ptr.hpp"
#define DD_API __stdcall
struct winerr_wrapper
{
DWORD err;
winerr_wrapper(DWORD e):err(e) {}
};
winerr_wrapper getWinError();
winerr_wrapper getW... | 28.070175 | 135 | 0.629063 | Hardcode84 |
3ddba1dee7955e894c7f5f6062caa28e9763c5d6 | 2,348 | cpp | C++ | src/extern-libs/DXInterceptorLibs/xgraph/XGraphDataNotation.cpp | heyyod/AttilaSimulator | cf9bcaa8c86dee378abbfb5967896dd9a1ab5ce1 | [
"BSD-3-Clause"
] | null | null | null | src/extern-libs/DXInterceptorLibs/xgraph/XGraphDataNotation.cpp | heyyod/AttilaSimulator | cf9bcaa8c86dee378abbfb5967896dd9a1ab5ce1 | [
"BSD-3-Clause"
] | 1 | 2022-03-18T05:02:32.000Z | 2022-03-21T07:27:48.000Z | src/extern-libs/DXInterceptorLibs/xgraph/XGraphDataNotation.cpp | heyyod/AttilaSimulator | cf9bcaa8c86dee378abbfb5967896dd9a1ab5ce1 | [
"BSD-3-Clause"
] | null | null | null | // XGraphDataNotation.cpp: Implementierung der Klasse XGraphDataNotation.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "XGraphDataNotation.h"
#include "XGraphDataSerie.h"
#include "XGraph.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#def... | 23.959184 | 104 | 0.644804 | heyyod |
3de367680d4198058bcc8b91c87a2267491b006a | 4,221 | cpp | C++ | api/python/DEX/objects/pyHeader.cpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | api/python/DEX/objects/pyHeader.cpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | api/python/DEX/objects/pyHeader.cpp | ahawad/LIEF | 88931ea405d9824faa5749731427533e0c27173e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2017 - 2022 R. Thomas
* Copyright 2017 - 2022 Quarkslab
*
* 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 req... | 34.598361 | 79 | 0.631604 | ahawad |
3de43e659fc789111f0b749ee864dddfec0d486c | 4,217 | cxx | C++ | source/code/core/collections/tests/test_queue.cxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 39 | 2019-08-17T09:08:51.000Z | 2022-02-13T10:14:19.000Z | source/code/core/collections/tests/test_queue.cxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 63 | 2020-05-22T16:09:30.000Z | 2022-01-21T14:24:05.000Z | source/code/core/collections/tests/test_queue.cxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | null | null | null | #include <catch2/catch.hpp>
#include <ice/memory/memory_globals.hxx>
#include <ice/memory/proxy_allocator.hxx>
#include <ice/pod/queue.hxx>
SCENARIO("ice :: pod :: Queue")
{
namespace queue = ice::pod::queue;
ice::memory::ProxyAllocator alloc{ ice::memory::default_allocator(), "queue_test" };
ice::pod::Qu... | 30.338129 | 107 | 0.487076 | iceshard-engine |
3de4b080b151db5aded6bf2c3540ec6c597795ff | 746 | hpp | C++ | app/app/render/material.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | 6 | 2022-02-05T23:28:12.000Z | 2022-02-24T11:08:04.000Z | app/app/render/material.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | app/app/render/material.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | #pragma once
#include "app/render/mesh.hpp"
#include "slope/math/matrix44.hpp"
namespace slope::app {
class Material {
public:
Material(std::shared_ptr<MeshShader> shader) {
m_shader = std::move(shader);
}
~Material() = default;
const MeshShader& shader() const { return *m_shader; }
void... | 22.606061 | 74 | 0.654155 | muleax |
3de57d997a183870d93e5a80befe88d77716c95a | 6,563 | cpp | C++ | Project Resources/GUI/Input.cpp | Abd-ELrahmanHamza/Logic-circuit-simulator | ffb69ec135c45193ecc446ec5a27c6a0e15a09ad | [
"MIT"
] | null | null | null | Project Resources/GUI/Input.cpp | Abd-ELrahmanHamza/Logic-circuit-simulator | ffb69ec135c45193ecc446ec5a27c6a0e15a09ad | [
"MIT"
] | null | null | null | Project Resources/GUI/Input.cpp | Abd-ELrahmanHamza/Logic-circuit-simulator | ffb69ec135c45193ecc446ec5a27c6a0e15a09ad | [
"MIT"
] | null | null | null | //#include "Input.h"
#include "Output.h"
Input::Input(window* pW)
{
pWind = pW; //point to the passed window
}
void Input::GetPointClicked(int &x, int &y)
{
pWind->WaitMouseClick(x, y); //Wait for mouse click
}
string Input::GetSrting(Output *pOut)
{
///TODO: Implement this Function
//Read a complete string from... | 30.525581 | 101 | 0.705775 | Abd-ELrahmanHamza |
3de8f2e2d0cdf4b65cea513af95d002aa92ee99c | 398 | cpp | C++ | Recursion/Recursion - 1 - Basics/05. CheckIfArrayIsSortedOrNot.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | 2 | 2021-05-21T17:10:02.000Z | 2021-05-29T05:13:06.000Z | Recursion/Recursion - 1 - Basics/05. CheckIfArrayIsSortedOrNot.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | Recursion/Recursion - 1 - Basics/05. CheckIfArrayIsSortedOrNot.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool is_sorted(int a[], int n)
{
if (n == 1 || n == 0)
return true;
// if (a[0] > a[1])
// return false;
if (a[n - 1] < a[n - 2])
return false;
return is_sorted(a, n - 1);
}
int main()
{
int arr[] = {0, 1, 2, 2, 3, 4, 5, 6};
int... | 18.090909 | 41 | 0.459799 | sohamnandi77 |
3deb1cfb8b19e633f322a913e8ae03d6642deeac | 27,834 | cpp | C++ | ace/tao/orbsvcs/orbsvcs/av/rtcp.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/tao/orbsvcs/orbsvcs/av/rtcp.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/tao/orbsvcs/orbsvcs/av/rtcp.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | /*
* Copyright (c) 1994-1995 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copy... | 29.298947 | 98 | 0.553783 | tharindusathis |
3dec393e5efd50be03aacbbe26b5c971f80bae78 | 4,382 | hpp | C++ | include/list/doublelist.hpp | Dacilndak/ds | edae4a057912946329066338bada4deea8d723ab | [
"MIT"
] | null | null | null | include/list/doublelist.hpp | Dacilndak/ds | edae4a057912946329066338bada4deea8d723ab | [
"MIT"
] | null | null | null | include/list/doublelist.hpp | Dacilndak/ds | edae4a057912946329066338bada4deea8d723ab | [
"MIT"
] | null | null | null | #ifndef _MPH_DOUBLE_LIST_H_
#define _MPH_DOUBLE_LIST_H_
#include <iostream>
#include "node.hpp"
template <typename T>
class DoubleList {
public:
Node<T> * fwalk(Node<T> * start, int dist) const;
Node<T> * rwalk(Node<T> * start, int dist) const;
Node<T> * head;
Node<T> * tail;
public:
DoubleList();
Double... | 20.966507 | 72 | 0.580785 | Dacilndak |
3dec8082c3a6bd13f612a2a986484d874d20c4c6 | 228 | cpp | C++ | Eva/Config.cpp | wangxh1007/ddmk | a6ff276d96b663e71b3ccadabc2d92c50c18ebac | [
"Zlib"
] | null | null | null | Eva/Config.cpp | wangxh1007/ddmk | a6ff276d96b663e71b3ccadabc2d92c50c18ebac | [
"Zlib"
] | null | null | null | Eva/Config.cpp | wangxh1007/ddmk | a6ff276d96b663e71b3ccadabc2d92c50c18ebac | [
"Zlib"
] | null | null | null | #include "Config.h"
CONFIG Config;
CONFIG DefaultConfig;
const char * Config_directory = "configs";
const char * Config_file = "Eva.bin";
byte * Config_addr = (byte*)&Config;
uint32 Config_size = (uint32)sizeof(CONFIG);
| 20.727273 | 44 | 0.714912 | wangxh1007 |
3decb2760968d32cea50957064b14af42ff246fd | 6,232 | cxx | C++ | main/accessibility/source/standard/vclxaccessiblemenubar.cxx | Alan-love/openoffice | 09be380f1ebba053dbf269468ff884f5d26ce1e4 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/accessibility/source/standard/vclxaccessiblemenubar.cxx | Alan-love/openoffice | 09be380f1ebba053dbf269468ff884f5d26ce1e4 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/accessibility/source/standard/vclxaccessiblemenubar.cxx | Alan-love/openoffice | 09be380f1ebba053dbf269468ff884f5d26ce1e4 | [
"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 yo... | 29.961538 | 131 | 0.55568 | Alan-love |
3dee87132f8f4332eeb1b1e72026fdc656db0ce2 | 4,311 | cpp | C++ | tests/src_test/config_test/config_test.cpp | dleliuhin/CV_Labs | cb8282f0e48cd022c07dafdd106f979ff679bee7 | [
"DOC"
] | null | null | null | tests/src_test/config_test/config_test.cpp | dleliuhin/CV_Labs | cb8282f0e48cd022c07dafdd106f979ff679bee7 | [
"DOC"
] | null | null | null | tests/src_test/config_test/config_test.cpp | dleliuhin/CV_Labs | cb8282f0e48cd022c07dafdd106f979ff679bee7 | [
"DOC"
] | null | null | null | /*! \file config_test.cpp
* \brief ConfigTest class implementation.
* \authors Dmitrii Leliuhin
* \date July 2020
*/
//=======================================================================================
#include "config_test.h"
#include "config.h"
#include <filesystem>
//=====================... | 37.486957 | 90 | 0.4971 | dleliuhin |
3df0e55ffae6050d4fe6cdc37969f57a6834a1cd | 960 | hpp | C++ | adobe/config/select_compiler.hpp | ilelann/adobe_source_libraries | 82224d13335398dfebfc77addabab28c4296ecba | [
"BSL-1.0"
] | null | null | null | adobe/config/select_compiler.hpp | ilelann/adobe_source_libraries | 82224d13335398dfebfc77addabab28c4296ecba | [
"BSL-1.0"
] | null | null | null | adobe/config/select_compiler.hpp | ilelann/adobe_source_libraries | 82224d13335398dfebfc77addabab28c4296ecba | [
"BSL-1.0"
] | 1 | 2020-06-18T12:25:12.000Z | 2020-06-18T12:25:12.000Z | /*
Copyright 2013 Adobe
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)
*/
/*************************************************************************************************/
#ifndef ADOBE_CONFIG_SELECT_COMPI... | 33.103448 | 99 | 0.442708 | ilelann |
3df35c816015d8031bd2df0f2fcc3725e7346b53 | 3,532 | cpp | C++ | tests/dcm_tests_common.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 4 | 2016-07-05T07:42:07.000Z | 2020-07-15T15:27:22.000Z | tests/dcm_tests_common.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 1 | 2020-05-07T20:58:21.000Z | 2020-05-07T20:58:21.000Z | tests/dcm_tests_common.cpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Matthew Harvey
*
* 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... | 26.961832 | 75 | 0.7047 | skybaboon |
3df528e20f8991878d477ef35b8241d9a7f12e2a | 505 | cpp | C++ | pg_answer/602b44e70a2a44769de13a38a02e96d0.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | 8 | 2019-10-09T14:33:42.000Z | 2020-12-03T00:49:29.000Z | pg_answer/602b44e70a2a44769de13a38a02e96d0.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | pg_answer/602b44e70a2a44769de13a38a02e96d0.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <vector>
int ans;
std::vector<int> v;
void dfs(int i, int m) {
if (m == 0) {
ans++;
return;
}
if (i == v.size()) return;
dfs(i + 1, m - v[i]);
dfs(i + 1, m);
}
int main() {
while (true) {
int n;
std::cin >> n;
v.push_ba... | 16.290323 | 42 | 0.4 | Guyutongxue |
3df66003e156fde40e2b63dd95f57d4bfd92e27a | 5,923 | cc | C++ | cplusplus/LearnGC/NurserySweep/nursery_sweep.cc | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 22 | 2015-05-18T07:04:36.000Z | 2021-08-02T03:01:43.000Z | cplusplus/LearnGC/NurserySweep/nursery_sweep.cc | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 1 | 2017-08-31T22:13:57.000Z | 2017-09-05T15:00:25.000Z | cplusplus/LearnGC/NurserySweep/nursery_sweep.cc | ASMlover/study | 5878f862573061f94c5776a351e30270dfd9966a | [
"BSD-2-Clause"
] | 6 | 2015-06-06T07:16:12.000Z | 2021-07-06T13:45:56.000Z | // Copyright (c) 2017 ASMlover. 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 ofconditions and... | 27.548837 | 78 | 0.652879 | ASMlover |
3df7776b3e580641c14fb31839fa5ebcbb135928 | 4,687 | cpp | C++ | security/wxMD5.cpp | mikewolfli/wfouttoexcel | 6818774639b464f16c3e402af9c9f06634402957 | [
"Unlicense"
] | 3 | 2016-05-30T05:39:52.000Z | 2017-11-10T07:26:53.000Z | security/wxMD5.cpp | mikewolfli/wfouttoexcel | 6818774639b464f16c3e402af9c9f06634402957 | [
"Unlicense"
] | null | null | null | security/wxMD5.cpp | mikewolfli/wfouttoexcel | 6818774639b464f16c3e402af9c9f06634402957 | [
"Unlicense"
] | 1 | 2020-01-02T01:05:01.000Z | 2020-01-02T01:05:01.000Z | //////////////////////////////////////////////////////////////////////
// Name: wxMD5.cpp
// Purpose: wxMD5 Class
// Author: Casey O'Donnell
// Creator: See Internet RFC 1321
// Copyright (C) 1991 - 1992
// RSA... | 25.895028 | 73 | 0.459996 | mikewolfli |
3df77a6245cd9674970ecbdfdc58cc8e5bb6f24f | 832 | hpp | C++ | src/Project6/SymbolsTable.hpp | HSU-F20-CS243/p06-starter | 108791397c0454575f72d6787e0214417e0f5ec2 | [
"Apache-2.0"
] | null | null | null | src/Project6/SymbolsTable.hpp | HSU-F20-CS243/p06-starter | 108791397c0454575f72d6787e0214417e0f5ec2 | [
"Apache-2.0"
] | null | null | null | src/Project6/SymbolsTable.hpp | HSU-F20-CS243/p06-starter | 108791397c0454575f72d6787e0214417e0f5ec2 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <unordered_map>
#include <string>
using std::unordered_map;
using std::string;
using std::to_string;
class SymbolsTable
{
private:
unordered_map<string, int> _lookup_table;
int _address_counter = 16;
public:
SymbolsTable()
{
//predefined symbols (p. 110 in book)
_lookup_table["SP"] = 0;
... | 20.292683 | 53 | 0.661058 | HSU-F20-CS243 |
3dfb9a4cb4df21161cc102fcdcbaa3027a9b4430 | 1,141 | cpp | C++ | mainAP.cpp | julioofilho/AP1 | 0d33c2d08763e752935f11bb111a2a03223ce78c | [
"MIT"
] | null | null | null | mainAP.cpp | julioofilho/AP1 | 0d33c2d08763e752935f11bb111a2a03223ce78c | [
"MIT"
] | null | null | null | mainAP.cpp | julioofilho/AP1 | 0d33c2d08763e752935f11bb111a2a03223ce78c | [
"MIT"
] | null | null | null | #define _GLIBCXX_USE_CXX11_ABI 0
#include <iostream>
#include <vector>
#include <string>
#include <iterator>
#include <algorithm>
#include "gerenciar.h"
#include "automovel.h"
#include "concessionaria.h"
using namespace std;
gerenciar listaConc;
int automovel::numeroCarros = 0;
int concessionaria::numeroConc = 0;
i... | 21.12963 | 63 | 0.584575 | julioofilho |
3dfd6982a5b5c71c66eb3aefe965b3a48fc7cc84 | 3,040 | cpp | C++ | collection/cp/bcw_codebook-master/Contest/PWTC2006NizhnyNovgorodSU/pC.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/Contest/PWTC2006NizhnyNovgorodSU/pC.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/Contest/PWTC2006NizhnyNovgorodSU/pC.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ... | 19.487179 | 83 | 0.475329 | daemonslayer |
3dfea706fba69eb8e27a31804902bd0a67d8e7b2 | 718 | cpp | C++ | src/base/LayerHandler.cpp | pitchShifter/liteForge | df3337842005e6b113663fcf85e9331a18e678b9 | [
"MIT"
] | null | null | null | src/base/LayerHandler.cpp | pitchShifter/liteForge | df3337842005e6b113663fcf85e9331a18e678b9 | [
"MIT"
] | null | null | null | src/base/LayerHandler.cpp | pitchShifter/liteForge | df3337842005e6b113663fcf85e9331a18e678b9 | [
"MIT"
] | null | null | null | #include "LayerHandler.h"
namespace liteForge
{
void LayerHandler::add( std::string name, Layer *layer )
{
if( !find( name ) )
layers.insert( std::make_pair( name, layerPtr( layer ) ) );
}
bool LayerHandler::find( std::string name )
{
auto it = layers.find( name );
// Found
if( it != layers.end() )
... | 16.697674 | 68 | 0.622563 | pitchShifter |
3dff24f7a0a1e43bd6a340800d0bd6f86026f8af | 540 | cc | C++ | clfsm/CLReflect.v1/API_Setup.cc | mipalgu/gufsm | d822d36fa04946ffa6c3680725dfdba03fa9a0c5 | [
"BSD-4-Clause"
] | null | null | null | clfsm/CLReflect.v1/API_Setup.cc | mipalgu/gufsm | d822d36fa04946ffa6c3680725dfdba03fa9a0c5 | [
"BSD-4-Clause"
] | null | null | null | clfsm/CLReflect.v1/API_Setup.cc | mipalgu/gufsm | d822d36fa04946ffa6c3680725dfdba03fa9a0c5 | [
"BSD-4-Clause"
] | 1 | 2021-09-14T18:37:16.000Z | 2021-09-14T18:37:16.000Z | #include "CLReflect_API.h"
#include "CLReflectionSystem.h"
using namespace CLReflect;
using namespace std;
void API::initialise(shared_ptr<IMachineStorage> machineStore)
{
CLReflectionSystem *system = CLReflectionSystem::getInstance();
system->setMachineStorage(machineStore);
}
void API::registerMachine(s... | 24.545455 | 69 | 0.781481 | mipalgu |
ad0227d39811a2b2a3496cf245dc27c03e17322f | 3,344 | hpp | C++ | include/Nazara/Math/Angle.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Math/Angle.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | include/Nazara/Math/Angle.hpp | jayrulez/NazaraEngine | e0310cd141f3cc11dbe8abfd5bfedf6b61de1a99 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (C) 2022 Jérôme "Lynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Math module"
// For conditions of distribution and use, see copyright notice in Config.hpp
#pragma once
#ifndef NAZARA_MATH_ANGLE_HPP
#define NAZARA_MATH_ANGLE_HPP
#include <Nazara/Core/TypeTag.hpp>
#inclu... | 30.678899 | 138 | 0.727572 | jayrulez |
ad06bcad77750d86702173cdadf4e33def8bbdb7 | 366 | cpp | C++ | src/Animation/AnimationManager.cpp | Henningson/Connect2 | 2ccf3431016a11b7fd6aeac65e259f197c01f121 | [
"MIT"
] | 1 | 2020-01-06T21:06:29.000Z | 2020-01-06T21:06:29.000Z | src/Animation/AnimationManager.cpp | Henningson/Connect2 | 2ccf3431016a11b7fd6aeac65e259f197c01f121 | [
"MIT"
] | 3 | 2020-01-31T11:53:50.000Z | 2020-01-31T11:54:24.000Z | src/Animation/AnimationManager.cpp | Henningson/Connect2 | 2ccf3431016a11b7fd6aeac65e259f197c01f121 | [
"MIT"
] | 1 | 2021-06-22T19:42:00.000Z | 2021-06-22T19:42:00.000Z | #pragma once
#include "AnimationManager.h"
AnimationManager::AnimationManager() {}
void AnimationManager::drawAnimations(sf::RenderTarget& target, sf::RenderStates states) {
for (AnimatedSprite* sprite : this->sprites) {
//sprite->draw(target, states);
}
}
void AnimationManager::addAnimatedSprite(AnimatedSprite*... | 26.142857 | 90 | 0.762295 | Henningson |
ad12fa59690383ce7e4478050528dea924fd56ef | 9,293 | cpp | C++ | depspawn-blitz-0.10/benchmarks/acoustic.cpp | fraguela/depspawn | b5760f4c0d38a1b245ee5274e2ccc5c5fe2d3d45 | [
"MIT"
] | 8 | 2017-04-12T11:05:40.000Z | 2022-03-29T11:10:27.000Z | ibtk/third_party/blitz-0.10/benchmarks/acoustic.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | ibtk/third_party/blitz-0.10/benchmarks/acoustic.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | //#define BZ_DISABLE_RESTRICT
#define BZ_ARRAY_2D_NEW_STENCIL_TILING
#include <blitz/array.h>
#include <blitz/timer.h>
#include <blitz/benchext.h>
#include <blitz/vector2.h>
#ifdef BZ_HAVE_STD
#include <fstream>
#else
#include <fstream.h>
#endif
BZ_USING_NAMESPACE(blitz)
#if defined(BZ_FORTRAN_SYMBOLS_WITH_TRAI... | 25.116216 | 71 | 0.617454 | fraguela |
ad14c6ccaf757e56b781bd4cd4a7f090298f563d | 7,448 | cpp | C++ | apps/rtigo3/src/DeviceMultiGPUZeroCopy.cpp | idcrook/tweeker_raytracer | 10910b4b90277fb782798f915d499dc61643efa1 | [
"CC0-1.0"
] | 4 | 2020-02-17T11:36:47.000Z | 2020-04-03T19:38:09.000Z | apps/rtigo3/src/DeviceMultiGPUZeroCopy.cpp | idcrook/tweeker_raytracer | 10910b4b90277fb782798f915d499dc61643efa1 | [
"CC0-1.0"
] | null | null | null | apps/rtigo3/src/DeviceMultiGPUZeroCopy.cpp | idcrook/tweeker_raytracer | 10910b4b90277fb782798f915d499dc61643efa1 | [
"CC0-1.0"
] | null | null | null | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list ... | 44.071006 | 213 | 0.718179 | idcrook |
ad173a61a75d8a4dd633c6011e92503459e4c5f0 | 852 | hpp | C++ | src/common/interfaces/presenters/tools/inavigatetoolpresenteraux.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 3 | 2020-03-05T06:36:51.000Z | 2020-06-20T03:25:02.000Z | src/common/interfaces/presenters/tools/inavigatetoolpresenteraux.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 13 | 2020-03-11T17:43:42.000Z | 2020-12-11T03:36:05.000Z | src/common/interfaces/presenters/tools/inavigatetoolpresenteraux.hpp | squeevee/Addle | 20ec4335669fbd88d36742f586899d8416920959 | [
"MIT"
] | 1 | 2020-09-28T06:53:46.000Z | 2020-09-28T06:53:46.000Z | /**
* Addle source code
* @file
* @copyright Copyright 2020 Eleanor Hawk
* @copyright Modification and distribution permitted under the terms of the
* MIT License. See "LICENSE" for full details.
*/
#ifndef INAVIGATEPRESENTERAUX_HPP
#define INAVIGATEPRESENTERAUX_HPP
#include "compat.hpp"
#include "idtypes/tooli... | 23.666667 | 79 | 0.764085 | squeevee |
ad19a322ff3caa634a45e2f8fa0b235f8a42bb3a | 7,754 | cxx | C++ | 3rd/fltk/src/Choice.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 11 | 2017-09-30T12:21:55.000Z | 2021-04-29T21:31:57.000Z | 3rd/fltk/src/Choice.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 2 | 2017-07-11T11:20:08.000Z | 2018-03-27T12:09:02.000Z | 3rd/fltk/src/Choice.cxx | MarioHenze/cgv | bacb2d270b1eecbea1e933b8caad8d7e11d807c2 | [
"BSD-3-Clause"
] | 24 | 2018-03-27T11:46:16.000Z | 2021-05-01T20:28:34.000Z | // "$Id: Choice.cxx 7513 2010-04-15 17:19:27Z spitzak $"
//
// Copyright 1998-2006 by Bill Spitzak and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundation; either
// version 2 o... | 30.407843 | 80 | 0.66959 | MarioHenze |
ad1d04ce83b9c96dfdccff1799d52dfdd347bfef | 12,453 | hpp | C++ | src/centurion/system.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 14 | 2020-05-17T21:38:03.000Z | 2020-11-21T00:16:25.000Z | src/centurion/system.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | 70 | 2020-04-26T17:08:52.000Z | 2020-11-21T17:34:03.000Z | src/centurion/system.hpp | Creeperface01/centurion | e3b674c11849367a18c2d976ce94071108e1590d | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2019-2022 Albin Johansson
*
* 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, c... | 23.810707 | 95 | 0.688589 | Creeperface01 |
ad1fb0131c5a29a41edd18d9fb0e649b5d7f10ad | 720 | cpp | C++ | LeetCode/Stone Game VII/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | LeetCode/Stone Game VII/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | LeetCode/Stone Game VII/main.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | null | null | null | class Solution {
private:
vector<vector<int>> dp;
int solve(const vector<int>& stones, int i, int j, int score) {
if (i == j) return 0;
if (dp[i][j] != -1) return dp[i][j];
int a = score - stones[i] - solve(stones, i + 1, j, score - stones[i]);
int b = score - stones[... | 31.304348 | 80 | 0.483333 | Code-With-Aagam |
ad23c4a6535670596a0919f02e0ffc8317792fa6 | 2,038 | cpp | C++ | test/unit/std/ranges_test.cpp | BuildJet/seqan3 | fc8cb3f1db119be30ec76f3d3cec3fecd7865c1c | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/unit/std/ranges_test.cpp | BuildJet/seqan3 | fc8cb3f1db119be30ec76f3d3cec3fecd7865c1c | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/unit/std/ranges_test.cpp | BuildJet/seqan3 | fc8cb3f1db119be30ec76f3d3cec3fecd7865c1c | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 36.392857 | 104 | 0.619725 | BuildJet |
ad241f5143dd0c66c6f68cc95c4b4d7f8d842ad8 | 6,264 | cc | C++ | blades/mediatomb/src/io_handler_buffer_helper.cc | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | blades/mediatomb/src/io_handler_buffer_helper.cc | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | blades/mediatomb/src/io_handler_buffer_helper.cc | krattai/AEBL | a7b12c97479e1236d5370166b15ca9f29d7d4265 | [
"BSD-2-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*MT*
MediaTomb - http://www.mediatomb.cc/
io_handler_buffer_helper.cc - this file is part of MediaTomb.
Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
Copyright (C) 2006-2010 Gena Batyan <bgeradz@mediatomb.c... | 27.116883 | 127 | 0.626277 | krattai |
ad24c72b700631e2bc7c3305809dc33de94046ea | 3,291 | cpp | C++ | examples/Reactor/WFMO_Reactor/Abandoned.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | examples/Reactor/WFMO_Reactor/Abandoned.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | examples/Reactor/WFMO_Reactor/Abandoned.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z |
//=============================================================================
/**
* @file Abandoned.cpp
*
* Tests the WFMO_Reactor's ability to handle abandoned mutexes.
*
* @author Irfan Pyarali <irfan@cs.wustl.edu>
*/
//==========================================================================... | 24.744361 | 84 | 0.508052 | azerothcore |
ad24f559138c35dfb5a8732db1b7a72982c7a9c3 | 6,445 | cpp | C++ | 201922/dec201922_2.cpp | jibsen/aocpp2019 | 99cda72f6477bde0731c5fc958eebbc2219d6fb3 | [
"MIT"
] | 2 | 2020-04-26T17:31:31.000Z | 2020-10-03T00:54:16.000Z | 201922/dec201922_2.cpp | jibsen/aocpp2019 | 99cda72f6477bde0731c5fc958eebbc2219d6fb3 | [
"MIT"
] | null | null | null | 201922/dec201922_2.cpp | jibsen/aocpp2019 | 99cda72f6477bde0731c5fc958eebbc2219d6fb3 | [
"MIT"
] | null | null | null | //
// Advent of Code 2019, day 22, part two
//
// First we note that we do not need to perform the operations on an entire
// deck to be able to track the position of one card through the shuffle.
//
// In the modular arithmetic of the deck, the stack shuffle is equivalent to
// negating the position, the cut shuffle ... | 24.788462 | 102 | 0.627463 | jibsen |
ad2587790e4642af3664d49bf1e33864189186c3 | 4,384 | cpp | C++ | lesson23/example13/share/MyString.cpp | Youngfellows/LinuxCPP | 6148346ba2c5c0a6d29a4f3a564baf9f06d619fe | [
"Apache-2.0"
] | null | null | null | lesson23/example13/share/MyString.cpp | Youngfellows/LinuxCPP | 6148346ba2c5c0a6d29a4f3a564baf9f06d619fe | [
"Apache-2.0"
] | null | null | null | lesson23/example13/share/MyString.cpp | Youngfellows/LinuxCPP | 6148346ba2c5c0a6d29a4f3a564baf9f06d619fe | [
"Apache-2.0"
] | null | null | null | #include "../include/MyString.h"
//在类外实现函数 - 构造函数
MyString::MyString()
{
cout << "MyString()构造函数" << endl;
}
//在类外实现函数 - 析构函数
MyString::~MyString()
{
cout << "~MyString()析构函数" << endl;
cout << endl;
}
//在类外实现函数 - compare()函数
int MyString::compare(char *s1,char *s2)
{
cout << "compar... | 22.95288 | 90 | 0.430885 | Youngfellows |
ad2a1afdd614128fb7569d950746c6408c1812d9 | 2,076 | cpp | C++ | v2/src/Neuron.cpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v2/src/Neuron.cpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | v2/src/Neuron.cpp | cherosene/learning_algorithms | 8ec9d8b7f744a375170ac2396cfb8bc216f84f53 | [
"MIT"
] | null | null | null | #include "Neuron.h"
#include <iostream>
#include <cmath>
unsigned int Neuron::idGenerator = 0;
const std::function<float(float)> Neuron::SIGMOID = [](float r){
float res = 1 + exp(-r);
return 1/res;
};
const std::function<float(float)> Neuron::SIGMOID_DER = [](float r){
float res = 2 * ( cosh(r) +... | 21.402062 | 122 | 0.630058 | cherosene |
ad2e5639aecfa16fcd70bc9b17e518eacc9fb232 | 655 | cpp | C++ | Chapter 3. Strings, Vectors, and Arrays/Codes/3.45.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 3. Strings, Vectors, and Arrays/Codes/3.45.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | null | null | null | Chapter 3. Strings, Vectors, and Arrays/Codes/3.45.cpp | Yunxiang-Li/Cpp_Primer | b5c857e3f6be993b2ff8fc03f634141ae24925fc | [
"MIT"
] | 1 | 2021-09-30T14:08:03.000Z | 2021-09-30T14:08:03.000Z | #include <iostream>
using std::cout;
using std::endl;
int main()
{
int ia[3][4] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
// Use a range for to manage the iteration
// Use auto
for (auto& p : ia)
for (auto& q : p)
cout << q << " ";
cout << endl;
// Use ordinary for loop u... | 20.46875 | 62 | 0.432061 | Yunxiang-Li |
ad330f3b84f5f441445ee356b83ff25d021f5abb | 56,000 | cpp | C++ | tests/rtest_ac_chol_d.cpp | dgburnette/ac_math | 518629af779ae26167462055ea4a3c30738ba5f9 | [
"Apache-2.0"
] | 2 | 2018-03-22T08:46:54.000Z | 2018-04-03T06:09:00.000Z | tests/rtest_ac_chol_d.cpp | dgburnette/ac_math | 518629af779ae26167462055ea4a3c30738ba5f9 | [
"Apache-2.0"
] | null | null | null | tests/rtest_ac_chol_d.cpp | dgburnette/ac_math | 518629af779ae26167462055ea4a3c30738ba5f9 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************
* *
* Algorithmic C (tm) Math Library *
* *
* Software Ver... | 38.251366 | 194 | 0.645357 | dgburnette |
ad356c7c8976183d272c49e659ce12c10a3104b4 | 1,019 | cpp | C++ | LeetCode/cpp/987.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/987.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/987.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
unordered_map<int, unordered_map<int, set<int>>> nums;
vector<vector<int>> verticalTraversal(TreeNode *root) {
if (!root)
return {};
nums.clear();
Traverse(root, 0, 0);
vector<vector<int>> ret;
for (int i = -1000; i <= 1000; ++i) {
... | 31.84375 | 95 | 0.44946 | ZintrulCre |
ad37155c15863c09f98819ffa51767eeb2cdb9b1 | 1,959 | cpp | C++ | topic_wise/graphs/courseSchedule.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | topic_wise/graphs/courseSchedule.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | topic_wise/graphs/courseSchedule.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @Email : architsingh456@gmail.com
* @file : courseSchedule.cpp
* @created : Sunday Aug 01, 2021 17:31:53 IST
*/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<vector<int>> buildGraph(int numCourse... | 29.681818 | 104 | 0.562532 | archit-1997 |
ad383085aa0804fdebf8068daa3f340fe479f9d0 | 2,794 | cc | C++ | mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.cc | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 1 | 2021-12-27T13:42:29.000Z | 2021-12-27T13:42:29.000Z | mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | null | null | null | mindspore/lite/src/runtime/kernel/ascend/src/acl_options_parser.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 34.925 | 103 | 0.708304 | PowerOlive |
ad3d2261d56ac74aa29612af22b45007cfa4c7ad | 1,462 | cpp | C++ | MAze/Aliados.cpp | IzaguirreYamile/MAze | d6e0f0a0ef1231dd53c32514c5b7f940ff801890 | [
"MIT"
] | 1 | 2021-09-02T21:19:19.000Z | 2021-09-02T21:19:19.000Z | MAze/Aliados.cpp | IzaguirreYamile/MAze | d6e0f0a0ef1231dd53c32514c5b7f940ff801890 | [
"MIT"
] | null | null | null | MAze/Aliados.cpp | IzaguirreYamile/MAze | d6e0f0a0ef1231dd53c32514c5b7f940ff801890 | [
"MIT"
] | null | null | null | #include "Aliados.h"
Aliados::Aliados() {}
Aliados::Aliados(int px, int py, Bitmap^ aliados)
{
x = px;
y = py;
this->ancho = aliados->Width / 13;
this->alto = aliados->Height / 21;
dx = 4;
dy = 4;
direccion = Caminar2Derecha;
}
void Aliados::Mover(Graphics^ g)
{
switch(direccion)
{
case Caminar2Abajo: fila... | 21.5 | 89 | 0.634063 | IzaguirreYamile |
ad3e5c1a1dd20a87640b1d2f075b7d587efc77ac | 788 | cpp | C++ | src/main.cpp | a1exwang/arduino_oscilloscope | 190659fec1fd18c63f606cab52ead40dd638e0e6 | [
"MIT"
] | null | null | null | src/main.cpp | a1exwang/arduino_oscilloscope | 190659fec1fd18c63f606cab52ead40dd638e0e6 | [
"MIT"
] | null | null | null | src/main.cpp | a1exwang/arduino_oscilloscope | 190659fec1fd18c63f606cab52ead40dd638e0e6 | [
"MIT"
] | null | null | null | #include <Arduino.h>
void setup() {
Serial.begin(230400*2);
// Set Timer 1 to normal mode at F_CPU.
TCCR1A = 0;
TCCR1B = 1;
// set 32 times division
// http://microelex.blogspot.com/p/2.html
// 0b100 -> 1MHz, 1us
// 0b101 -> 500kHz, 2us
// 0b110 -> 250kHz, 4us
// 0b111 -> 125kHz, 8us
ADCSRA = (0... | 21.297297 | 48 | 0.577411 | a1exwang |
ad458fd54d93474818b8eb7e5123e6b266c0d46e | 3,905 | cpp | C++ | codeforces_problems/matexpo.cpp | ChanderJindal/Data_Structure_and_Algorithms | 8268a5b8be6bc967af41d1985db1224d6c6afc5e | [
"MIT"
] | 14 | 2019-10-26T11:43:56.000Z | 2021-01-23T00:37:17.000Z | codeforces_problems/matexpo.cpp | ChanderJindal/Data_Structure_and_Algorithms | 8268a5b8be6bc967af41d1985db1224d6c6afc5e | [
"MIT"
] | 28 | 2019-10-13T17:49:42.000Z | 2020-11-15T07:08:10.000Z | codeforces_problems/matexpo.cpp | ChanderJindal/Data_Structure_and_Algorithms | 8268a5b8be6bc967af41d1985db1224d6c6afc5e | [
"MIT"
] | 73 | 2019-10-11T06:38:10.000Z | 2022-01-26T20:04:24.000Z | /*Made by Shivam Solanki*/
#include<bits/stdc++.h>
#pragma GCC optimize ("Ofast")
using namespace std;
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define ll long long int
#define endl '\n'
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vll> vvl;
typedef pair<int,int> pii;
typedef pair<ll,ll... | 27.5 | 85 | 0.463252 | ChanderJindal |
ad459393c1c02e07c2383cbf3d6be37ea27cb740 | 4,150 | cpp | C++ | src/AutonomousSystem/AutonomousManager.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | null | null | null | src/AutonomousSystem/AutonomousManager.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | 5 | 2018-01-18T03:25:07.000Z | 2018-03-16T13:27:53.000Z | src/AutonomousSystem/AutonomousManager.cpp | frc2081/2018-RobotCode | 6eec5af9b42df4bbd9f43ae6bd0cedc8fa7e0019 | [
"MIT"
] | null | null | null | /*
* AutonomousManager.cpp
*
* Created on: Jan 17, 2018
* Author: Matthew
*/
#include "AutonomousManager.h"
namespace Autonomous
{
AutonomousManager::AutonomousManager(IO *io, RobotCommands *commands, CubeManager *cube) {
_io = io;
_commands = commands;
_actionselector = 0;
_stationsele... | 35.470085 | 164 | 0.673976 | frc2081 |
ad483c2371eaf40f796b4b60b6b3ff386d0a28c6 | 12,445 | cpp | C++ | TopTestWidgets/privateSource/qcategoryaxis.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | 1 | 2020-02-12T03:20:37.000Z | 2020-02-12T03:20:37.000Z | TopTestWidgets/privateSource/qcategoryaxis.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | null | null | null | TopTestWidgets/privateSource/qcategoryaxis.cpp | cy15196/xxxxRsmTest | 36577173ef2cdfc3c3d4cadd3933849d29d5b3d9 | [
"MIT"
] | 1 | 2019-04-14T09:58:50.000Z | 2019-04-14T09:58:50.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the Qt Charts module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL$
** Commercial License Usage
** Licensees holding valid comme... | 32.074742 | 130 | 0.662113 | cy15196 |
ad493ad1a9322a3fd93a8e4a7bbc106271cdba67 | 381 | hpp | C++ | Source/Game/Match3Cell.fwd.hpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Game/Match3Cell.fwd.hpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Game/Match3Cell.fwd.hpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | //
// Match3Cell.fwd.hpp
//
// @author Roberto Cano
//
#pragma once
#include <memory>
#include <glm/glm.hpp>
namespace Match3
{
namespace Game
{
class Cell;
}
namespace Types
{
namespace Cell
{
using PtrType = std::shared_ptr<Match3::Game::Cell>;
using Position = glm::ivec2;
enum class State : i... | 11.205882 | 55 | 0.611549 | gabr1e11 |
ad49669b2083f2df29e59344d6dbd6bc414b0947 | 4,025 | cpp | C++ | src/clock.cpp | Cyberax/lstructural | 3496e46fe7e671575ea9eaf9ce6063acad8d9006 | [
"Apache-2.0"
] | null | null | null | src/clock.cpp | Cyberax/lstructural | 3496e46fe7e671575ea9eaf9ce6063acad8d9006 | [
"Apache-2.0"
] | null | null | null | src/clock.cpp | Cyberax/lstructural | 3496e46fe7e671575ea9eaf9ce6063acad8d9006 | [
"Apache-2.0"
] | null | null | null | /*
MIT License
Copyright (c) 2013-2017 Evgeny Safronov <division494@gmail.com>
Copyright (c) 2013-2017 Other contributors as noted in the AUTHORS file.
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 th... | 30.492424 | 95 | 0.680745 | Cyberax |
ad49f226c6b809aea3776b2e566054b365fa75cb | 2,591 | hh | C++ | src/serialize/command.hh | chuyqa/pydoop | 575f56cc66381fef08981a2452acde02bddf0363 | [
"Apache-2.0"
] | null | null | null | src/serialize/command.hh | chuyqa/pydoop | 575f56cc66381fef08981a2452acde02bddf0363 | [
"Apache-2.0"
] | null | null | null | src/serialize/command.hh | chuyqa/pydoop | 575f56cc66381fef08981a2452acde02bddf0363 | [
"Apache-2.0"
] | null | null | null | // BEGIN_COPYRIGHT
//
// Copyright 2009-2018 CRS4.
//
// 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 l... | 25.401961 | 80 | 0.759552 | chuyqa |
ad4b484f12f66e02542b58aa48c332f707c4ef57 | 3,258 | cpp | C++ | src/math/optimizer_math/sgd_momentum.cpp | Boxun-coder/magmadnn | 76d23ff8ea9c63839da6965b9c5ab4aad07f9250 | [
"MIT"
] | 2 | 2020-07-20T08:39:47.000Z | 2020-07-20T08:40:06.000Z | src/math/optimizer_math/sgd_momentum.cpp | Boxun-coder/magmadnn | 76d23ff8ea9c63839da6965b9c5ab4aad07f9250 | [
"MIT"
] | null | null | null | src/math/optimizer_math/sgd_momentum.cpp | Boxun-coder/magmadnn | 76d23ff8ea9c63839da6965b9c5ab4aad07f9250 | [
"MIT"
] | null | null | null | /**
* @file sgd_momentum.cpp
* @author Sedrick Keh
* @version 1.0
* @date 2019-07-25
*
* @copyright Copyright (c) 2019
*/
#include "math/optimizer_math/sgd_momentum.h"
#include <cassert>
#include <vector>
#include "magmadnn/config.h"
namespace magmadnn {
namespace math {
template <typename T>
void sgd_moment... | 34.659574 | 116 | 0.655617 | Boxun-coder |
ad4b5084a5651fac8d7da4f62a637f9a26abb93f | 93 | cpp | C++ | IA/StupidAgent.cpp | GP-S/HOTS | 85903015033184694e3b2b70af401a0ea5de11b7 | [
"Unlicense",
"MIT"
] | 1 | 2021-05-30T02:13:37.000Z | 2021-05-30T02:13:37.000Z | IA/StupidAgent.cpp | GP-S/HOTS | 85903015033184694e3b2b70af401a0ea5de11b7 | [
"Unlicense",
"MIT"
] | null | null | null | IA/StupidAgent.cpp | GP-S/HOTS | 85903015033184694e3b2b70af401a0ea5de11b7 | [
"Unlicense",
"MIT"
] | null | null | null | #include "StupidAgent.h"
StupidAgent::StupidAgent()
{
}
StupidAgent::~StupidAgent()
{
}
| 7.153846 | 27 | 0.677419 | GP-S |
ad4bff05071bbbce5bf15953b5213fc6cd5c2265 | 1,128 | cpp | C++ | src/tools/strong_cc_main.cpp | FantaApps/zgraph | 9e25c6d52f8f730b9f65bbd92c3dea7aa20b7688 | [
"MIT"
] | 1 | 2020-11-30T04:26:41.000Z | 2020-11-30T04:26:41.000Z | src/tools/strong_cc_main.cpp | FantaApps/zgraph | 9e25c6d52f8f730b9f65bbd92c3dea7aa20b7688 | [
"MIT"
] | 9 | 2019-11-04T06:31:02.000Z | 2019-11-28T16:19:23.000Z | src/tools/strong_cc_main.cpp | FantaApps/zgraph | 9e25c6d52f8f730b9f65bbd92c3dea7aa20b7688 | [
"MIT"
] | null | null | null | #include "../lib/graph.h"
#include "../lib/graph_algo.h"
#include <omp.h>
#include <sys/resource.h>
#include <map>
#include <vector>
using namespace std;
using namespace apsara::odps::graph::query;
int main(int argc, char* argv[])
{
const rlim_t kStackSize = 2 * 1024 * 1024 * 1024; // min stack size = 16 MB
... | 25.066667 | 86 | 0.590426 | FantaApps |
ad4de507bf1b2599fc4636a4d364f560474ca8d2 | 14,333 | cpp | C++ | external/soci/postgresql/statement.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | external/soci/postgresql/statement.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | external/soci/postgresql/statement.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | //
// Copyright (C) 2004-2006 Maciej Sobczak, Stephen Hutton
// 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)
//
#define SOCI_POSTGRESQL_SOURCE
#include "soci-postgresql.h"
#include <soci.h>
#include <libpq/libpq... | 27.777132 | 78 | 0.534431 | saga-project |
ad4e124c911f97684146a7fc6387892dbbcc24f0 | 8,465 | cpp | C++ | ScreenKeyboard/KeyboardHandler.cpp | jscipione/HaikuUtils | 82cb2c1c1484244ab1041b71ca7632b4322bd643 | [
"MIT"
] | 1 | 2021-05-23T18:03:58.000Z | 2021-05-23T18:03:58.000Z | ScreenKeyboard/KeyboardHandler.cpp | jscipione/HaikuUtils | 82cb2c1c1484244ab1041b71ca7632b4322bd643 | [
"MIT"
] | null | null | null | ScreenKeyboard/KeyboardHandler.cpp | jscipione/HaikuUtils | 82cb2c1c1484244ab1041b71ca7632b4322bd643 | [
"MIT"
] | null | null | null | #include "KeyboardHandler.h"
#include <Message.h>
#include <malloc.h>
#include <string.h>
void PressKey(uint8 *state, uint32 code)
{
state[code/8] |= 1 << (code%8);
}
void ReleaseKey(uint8 *state, uint32 code)
{
state[code/8] &= ~(uint8)(1 << (code%8));
}
bool IsKeyPressed(uint8 *state, uint32 code)
{
return sta... | 27.57329 | 131 | 0.6443 | jscipione |
ad5073b098a914fab2c0838b03e8ebe936ff1f03 | 348 | cpp | C++ | leetcode/Two Sum II - Input array is sorted.cpp | ANONYMOUS609/Competitive-Programming | d3753eeee24a660963f1d8911bf887c8f41f5677 | [
"MIT"
] | 2 | 2019-01-30T12:45:18.000Z | 2021-05-06T19:02:51.000Z | leetcode/Two Sum II - Input array is sorted.cpp | ANONYMOUS609/Competitive-Programming | d3753eeee24a660963f1d8911bf887c8f41f5677 | [
"MIT"
] | null | null | null | leetcode/Two Sum II - Input array is sorted.cpp | ANONYMOUS609/Competitive-Programming | d3753eeee24a660963f1d8911bf887c8f41f5677 | [
"MIT"
] | 3 | 2020-10-02T15:42:04.000Z | 2022-03-27T15:14:16.000Z | class Solution {
public:
vector<int> twoSum(vector<int>& numbers, int target) {
int l = 0, r = numbers.size()-1;
while(l<r) {
int sum = numbers[l] + numbers[r];
if(sum == target) return {l+1, r+1};
else if(sum < target) l++;
else r--;
}
... | 26.769231 | 58 | 0.454023 | ANONYMOUS609 |
ad577e3639b783744ad2c4220e9095984ba8d610 | 3,573 | cc | C++ | src/messages/text_document_rename.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | 1,652 | 2018-01-24T03:19:58.000Z | 2020-07-28T19:04:00.000Z | src/messages/text_document_rename.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | 490 | 2018-01-24T00:55:38.000Z | 2020-07-03T19:44:16.000Z | src/messages/text_document_rename.cc | Gei0r/cquery | 6ff8273e8b8624016f9363f444acfee30c4bbf64 | [
"MIT"
] | 154 | 2018-01-31T05:57:33.000Z | 2020-07-05T00:02:46.000Z | #include "message_handler.h"
#include "query_utils.h"
#include "queue_manager.h"
namespace {
MethodType kMethodType = "textDocument/rename";
lsWorkspaceEdit BuildWorkspaceEdit(QueryDatabase* db,
WorkingFiles* working_files,
QueryId::SymbolRef sym,
... | 32.481818 | 79 | 0.678701 | Gei0r |
ad5c5bc67ba224c112effaee5146319c6b05093c | 45 | cpp | C++ | ml/src/Serv_Converters.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | ml/src/Serv_Converters.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null | ml/src/Serv_Converters.cpp | georgephilipp/cppgstd_legacy | e130860da7700aae42b915bc36a7efa4cae06d56 | [
"MIT"
] | null | null | null |
#include "stdafx.h"
#include "Converters.h" | 11.25 | 23 | 0.711111 | georgephilipp |
ad5d2e7f67596381adaae88265de8f7f5103396c | 1,536 | cpp | C++ | src/common/RNG.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | src/common/RNG.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | src/common/RNG.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | #include <aikido/common/RNG.hpp>
namespace aikido {
namespace common {
//==============================================================================
// This namespace-scoped definition is required to enable odr-use.
constexpr std::size_t RNG::NUM_BITS;
//===========================================================... | 34.133333 | 80 | 0.621094 | usc-csci-545 |
ad5f309ec3a01966982ea48381ad8ad082354f9e | 7,262 | hpp | C++ | src/shelly_hap_chars.hpp | lucaspinelli85/shelly-homekit | f22f5186284f5840fde5a595587a6957be2a15b0 | [
"Apache-2.0"
] | 1 | 2020-11-17T13:46:48.000Z | 2020-11-17T13:46:48.000Z | src/shelly_hap_chars.hpp | schemhad/shelly-homekit | 82d8d64524af20ba30941a64c7ba060301512785 | [
"Apache-2.0"
] | null | null | null | src/shelly_hap_chars.hpp | schemhad/shelly-homekit | 82d8d64524af20ba30941a64c7ba060301512785 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Deomid "rojer" Ryabkov
* 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 re... | 35.252427 | 80 | 0.667585 | lucaspinelli85 |
ad629e0ec203dc6095b34ef8fd1077d9fcde2054 | 3,492 | cpp | C++ | ork.core/src/math/math_imp.cpp | tweakoz/micro_ork | 66f69d5866ca30dc6066c2dacdb7bbc5b8aa73e7 | [
"MIT"
] | 4 | 2015-06-04T01:14:43.000Z | 2018-06-16T05:45:57.000Z | ork.core/src/math/math_imp.cpp | tweakoz/micro_ork | 66f69d5866ca30dc6066c2dacdb7bbc5b8aa73e7 | [
"MIT"
] | null | null | null | ork.core/src/math/math_imp.cpp | tweakoz/micro_ork | 66f69d5866ca30dc6066c2dacdb7bbc5b8aa73e7 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// MicroOrk (Orkid)
// Copyright 1996-2013, Michael T. Mayers
// Provided under the MIT License (see LICENSE.txt)
///////////////////////////////////////////////////////////////////////////////
#include <ork/cmatrix3.h>
#include <or... | 22.101266 | 80 | 0.516323 | tweakoz |
ad66691feaf14dd8e16d16d863eda7eb8fed06fe | 12,585 | hxx | C++ | printscan/ui/printui/svrprop.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | printscan/ui/printui/svrprop.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | printscan/ui/printui/svrprop.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) Microsoft Corporation, 1995 - 1999
All rights reserved.
Module Name:
srvprop.hxx
Abstract:
Server properties header.
Author:
Steve Kiraly (steveKi) 11-Nov-1995
Revision History:
--*/
#ifndef _SVRPROP_HXX
#define _SVRPROP_HXX
/*****************************... | 17.503477 | 70 | 0.433135 | npocmaka |
ad67028febc405a69bfae0a4d58fd3d60ff5fa07 | 2,973 | cpp | C++ | 02/src/assignment/menu.cpp | KHN190/IGME-740 | 0e0321ceb7a2f2ade9a99caf15be16f916b12393 | [
"Unlicense"
] | null | null | null | 02/src/assignment/menu.cpp | KHN190/IGME-740 | 0e0321ceb7a2f2ade9a99caf15be16f916b12393 | [
"Unlicense"
] | null | null | null | 02/src/assignment/menu.cpp | KHN190/IGME-740 | 0e0321ceb7a2f2ade9a99caf15be16f916b12393 | [
"Unlicense"
] | null | null | null |
void menu(int value) {
switch (value) {
// clear
case 0:
poly.clear();
poly_color.clear();
curr_poly.clear();
n_vertices = 0;
glutPostRedisplay();
break;
// exit
case 1:
exit(0);
// color... | 28.586538 | 97 | 0.510932 | KHN190 |
ad67eaf99e802df0517537360e2027db6f1a45f6 | 2,296 | cpp | C++ | 11_dynamic_1/6_coin_change.cpp | ShyamNandanKumar/coding-ninja2 | a43a21575342261e573f71f7d8eff0572f075a17 | [
"MIT"
] | 11 | 2021-01-02T10:07:17.000Z | 2022-03-16T00:18:06.000Z | 11_dynamic_1/6_coin_change.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | null | null | null | 11_dynamic_1/6_coin_change.cpp | meyash/cp_master | 316bf47db2a5b40891edd73cff834517993c3d2a | [
"MIT"
] | 5 | 2021-05-19T11:17:18.000Z | 2021-09-16T06:23:31.000Z | /*
You are given an infinite supply of coins of each of denominations D = {D0, D1, D2, D3, ...... Dn-1}. You need to figure out the total number of ways W, in which you can make change for Value V using coins of denominations D.
Note : Return 0, if change isn't possible.
Input Format
Line 1 : Integer n i.e. total numbe... | 26.697674 | 225 | 0.692944 | ShyamNandanKumar |
ad6bd0b4906714fa0faaf06944d97d1736b73e1c | 15,455 | cpp | C++ | openstudiocore/src/model/test/AirTerminalSingleDuctVAVNoReheat_GTest.cpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | 1 | 2016-12-29T08:45:03.000Z | 2016-12-29T08:45:03.000Z | openstudiocore/src/model/test/AirTerminalSingleDuctVAVNoReheat_GTest.cpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | openstudiocore/src/model/test/AirTerminalSingleDuctVAVNoReheat_GTest.cpp | jasondegraw/OpenStudio | 2ab13f6e5e48940929041444e40ad9d36f80f552 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2016, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by t... | 36.536643 | 120 | 0.794371 | jasondegraw |