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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
862c2a5df38117d6c1d365b5fc73f98c9689caa2 | 3,059 | cc | C++ | src/bindings/text-writer.cc | sergei-dyshel/superstring | 115ade9cc39aeef93e85a43bd8fb6b8affe28c2d | [
"MIT"
] | 156 | 2017-01-20T16:57:42.000Z | 2022-03-20T15:45:39.000Z | src/bindings/text-writer.cc | Og-ChRoNiC/superstring | cca27783026fee1d607a2b97d07289e000e1bf53 | [
"MIT"
] | 50 | 2016-12-20T02:12:07.000Z | 2021-06-16T14:07:56.000Z | src/bindings/text-writer.cc | Og-ChRoNiC/superstring | cca27783026fee1d607a2b97d07289e000e1bf53 | [
"MIT"
] | 44 | 2017-01-13T18:23:21.000Z | 2022-03-20T15:45:46.000Z | #include "text-writer.h"
using std::string;
using std::move;
using std::u16string;
using namespace v8;
void TextWriter::init(Local<Object> exports) {
Local<FunctionTemplate> constructor_template = Nan::New<FunctionTemplate>(construct);
constructor_template->SetClassName(Nan::New<String>("TextWriter").ToLocalCheck... | 32.892473 | 118 | 0.689768 | sergei-dyshel |
862c334e725df615f51db8ed8870724ea5982cb3 | 551 | hpp | C++ | Axis/Renderer/Include/Axis/RendererExport.hpp | SimmyPeet/Axis | a58c073d13f74d0224fbfca34a4dcd4b9d0c6726 | [
"Apache-2.0"
] | 1 | 2022-01-23T14:51:51.000Z | 2022-01-23T14:51:51.000Z | Axis/Renderer/Include/Axis/RendererExport.hpp | SimmyPeet/Axis | a58c073d13f74d0224fbfca34a4dcd4b9d0c6726 | [
"Apache-2.0"
] | null | null | null | Axis/Renderer/Include/Axis/RendererExport.hpp | SimmyPeet/Axis | a58c073d13f74d0224fbfca34a4dcd4b9d0c6726 | [
"Apache-2.0"
] | 1 | 2022-01-10T21:01:54.000Z | 2022-01-10T21:01:54.000Z | /// \copyright Simmypeet - Copyright (C)
/// This file is subject to the terms and conditions defined in
/// file `LICENSE`, which is part of this source code package.
#ifndef AXIS_RENDERER_RENDEREREXPORT_HPP
#define AXIS_RENDERER_RENDEREREXPORT_HPP
#pragma once
#include "../../../System/Include... | 25.045455 | 74 | 0.740472 | SimmyPeet |
862c896fcc9f082a8175468d51ee681e60687869 | 8,521 | cc | C++ | src/compiler/table_gen.cc | chzchzchz/fsl | 2df9e4422995f58e719e730c8974ea77c5196bc6 | [
"MIT"
] | 1 | 2019-01-02T18:38:28.000Z | 2019-01-02T18:38:28.000Z | src/compiler/table_gen.cc | chzchzchz/fsl | 2df9e4422995f58e719e730c8974ea77c5196bc6 | [
"MIT"
] | 1 | 2015-04-21T21:38:57.000Z | 2015-10-27T01:26:29.000Z | src/compiler/table_gen.cc | chzchzchz/fsl | 2df9e4422995f58e719e730c8974ea77c5196bc6 | [
"MIT"
] | null | null | null | /* generates tables that tools will use to work with data. */
#include <iostream>
#include <string>
#include <map>
#include <typeinfo>
#include "util.h"
#include "struct_writer.h"
#include "AST.h"
#include "type.h"
#include "func.h"
#include "symtab.h"
#include "eval.h"
#include "points.h"
#include "asserts.h"
#inclu... | 23.868347 | 70 | 0.69405 | chzchzchz |
862dbd381c687467d22b0b25f68e05d5030ee81b | 828 | cc | C++ | src/engine/assets/audio_manager.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 11 | 2017-12-19T14:33:02.000Z | 2022-03-26T00:34:48.000Z | src/engine/assets/audio_manager.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 1 | 2018-05-28T10:32:32.000Z | 2018-05-28T10:32:35.000Z | src/engine/assets/audio_manager.cc | ProjectSulphur/ProjectSulphur | cb9ee8298f5020fda4a9130802e72034408f050f | [
"Apache-2.0"
] | 1 | 2021-01-25T11:31:57.000Z | 2021-01-25T11:31:57.000Z | #include "engine/assets/audio_manager.h"
#include "engine/audio/audio_bank.h"
#include <foundation/io/binary_reader.h>
#include <foundation/memory/memory.h>
#include <foundation/pipeline-assets/audio.h>
#include <foundation/io/filesystem.h>
namespace sulphur
{
namespace engine
{
//----------------------------... | 26.709677 | 86 | 0.621981 | ProjectSulphur |
86343790fe7741172d56e0a9292368b43dfe6533 | 709 | cpp | C++ | linux/service/source/ErrCode.cpp | elastos/Elastos.Service.CarrierGroup | 235904845c2548274e0d87eb29a424716a60cbf8 | [
"MIT"
] | null | null | null | linux/service/source/ErrCode.cpp | elastos/Elastos.Service.CarrierGroup | 235904845c2548274e0d87eb29a424716a60cbf8 | [
"MIT"
] | null | null | null | linux/service/source/ErrCode.cpp | elastos/Elastos.Service.CarrierGroup | 235904845c2548274e0d87eb29a424716a60cbf8 | [
"MIT"
] | 1 | 2019-08-07T07:55:00.000Z | 2019-08-07T07:55:00.000Z | //
// Created by luocf on 2019/6/14.
//
#include <system_error>
#include "ErrCode.h"
namespace chatrobot {
std::string ErrCode::ToString(int errCode)
{
std::string errMsg;
switch (errCode) {
case InvalidArgument:
errMsg = "InvalidArgument";
break;
... | 23.633333 | 82 | 0.551481 | elastos |
863449e05350490113ac883727fff2a77329627f | 742 | cpp | C++ | plugins/x11input/src/device/valuator/make_absolute.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/x11input/src/device/valuator/make_absolute.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/x11input/src/device/valuator/make_absolute.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/x11input/device/valuator/absolute.hpp>
#include <sge/x11input/device/valuator/make_ab... | 39.052632 | 80 | 0.747978 | cpreh |
86345b61bf4d232435a01bb2225acf34e422e66f | 1,067 | hpp | C++ | include/md/forcefield.hpp | snsinfu/micromd | a886d68d5452800bf342f0db8b477979f9f10a04 | [
"BSL-1.0"
] | 3 | 2018-12-06T11:45:56.000Z | 2020-10-09T08:23:03.000Z | include/md/forcefield.hpp | snsinfu/micromd | a886d68d5452800bf342f0db8b477979f9f10a04 | [
"BSL-1.0"
] | 14 | 2018-12-02T08:16:16.000Z | 2020-09-29T18:19:35.000Z | include/md/forcefield.hpp | snsinfu/micromd | a886d68d5452800bf342f0db8b477979f9f10a04 | [
"BSL-1.0"
] | null | null | null | // Copyright snsinfu 2018.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef MD_FORCEFIELD_HPP
#define MD_FORCEFIELD_HPP
// This module defines the interface of forcefield implementations.
#include "basic_types... | 28.837838 | 100 | 0.700094 | snsinfu |
863524fffb7b903b4b172c469a7f4f11c4fa1c22 | 4,199 | cpp | C++ | NbrhdNash/Scenes/scene_Settings.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | NbrhdNash/Scenes/scene_Settings.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | NbrhdNash/Scenes/scene_Settings.cpp | OlavJDigranes/groupD | 1d1fdd4ec0117162d777d0c020cbf4ae1718cf5f | [
"MIT"
] | null | null | null | #include <iostream>
#include <thread>
#include "LevelSystem.h"
#include "scene_Settings.h"
#include "scene_MainMenu.h"
#include "../lib_ecm/components/cmp_text.h"
#include "../game.h"
#include "SFML/Window.hpp"
#include "SFML/Window/Joystick.hpp"
#include <iostream>
#include <fstream>
#include <stdio.h>
using namespac... | 24.412791 | 163 | 0.652536 | OlavJDigranes |
8636367d660d21365ef92c917705ef5c797ce508 | 25,150 | cpp | C++ | src/runtime/Spprintf.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | 1 | 2019-01-28T01:33:49.000Z | 2019-01-28T01:33:49.000Z | src/runtime/Spprintf.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | src/runtime/Spprintf.cpp | normal-coder/polarphp | a06e1f8781b4b75a2ca8cf2c22e0aa62631866fe | [
"PHP-3.01"
] | null | null | null | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarphp software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <zzu_softboy@163.com>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license info... | 30.04779 | 151 | 0.484453 | normal-coder |
8636c6931c7698a57238c12fd7388e91097d6d4c | 5,189 | cpp | C++ | munin/src/tabbed_panel.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 9 | 2015-12-16T07:00:39.000Z | 2021-05-05T13:29:28.000Z | munin/src/tabbed_panel.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 43 | 2015-07-18T11:13:15.000Z | 2017-07-15T13:18:43.000Z | munin/src/tabbed_panel.cpp | KazDragon/paradice9 | bb89ce8bff2f99d2526f45b064bfdd3412feb992 | [
"MIT"
] | 3 | 2015-10-09T13:33:35.000Z | 2016-07-11T02:23:08.000Z | // ==========================================================================
// Munin Tabbed Panel.
//
// Copyright (C) 2013 Matthew Chaplain, All Rights Reserved.
//
// Permission to reproduce, distribute, perform, display, and to prepare
// derivitive works from this file under the following conditions:
//
/... | 35.541096 | 78 | 0.45847 | KazDragon |
8639048aa53cb722105ffc8a6d34f028d4855f29 | 2,062 | hpp | C++ | sxe/include/sxe/pc/PcInputManager.hpp | Spidey01/sxe | 60a91e594f1460115f565b097f8133c324af6f1c | [
"Zlib"
] | null | null | null | sxe/include/sxe/pc/PcInputManager.hpp | Spidey01/sxe | 60a91e594f1460115f565b097f8133c324af6f1c | [
"Zlib"
] | null | null | null | sxe/include/sxe/pc/PcInputManager.hpp | Spidey01/sxe | 60a91e594f1460115f565b097f8133c324af6f1c | [
"Zlib"
] | null | null | null | #ifndef SXE_PC_PCINPUTMANAGER__HPP
#define SXE_PC_PCINPUTMANAGER__HPP
/*-
* Copyright (c) 2012-current, Terry Mathew Poulin <BigBoss1964@gmail.com>
*
* 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... | 31.723077 | 98 | 0.692532 | Spidey01 |
863917c98697564a59eea3d227901fc2de184cfc | 10,843 | hpp | C++ | source/AsioExpress/EventHandling/ResourceCache.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/EventHandling/ResourceCache.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | source/AsioExpress/EventHandling/ResourceCache.hpp | suhao/asioexpress | 2f3453465934afdcdf4a575a2d933d86929b23c7 | [
"BSL-1.0"
] | null | null | null | // Copyright Ross MacGregor 2013
// 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)
#pragma once
#include <vector>
#include <map>
#include <set>
#include <boost/shared_ptr.hpp>
... | 32.464072 | 107 | 0.654063 | suhao |
863c7297bce9c86eb92462b56ef98b53d436b741 | 3,985 | cpp | C++ | activemq-cpp/src/test/activemq/util/IdGeneratorTest.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 87 | 2015-03-02T17:58:20.000Z | 2022-02-11T02:52:52.000Z | activemq-cpp/src/test/activemq/util/IdGeneratorTest.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 3 | 2017-05-10T13:16:08.000Z | 2019-01-23T20:21:53.000Z | activemq-cpp/src/test/activemq/util/IdGeneratorTest.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 71 | 2015-04-28T06:04:04.000Z | 2022-03-15T13:34:06.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.482759 | 80 | 0.517942 | novomatic-tech |
86401129457fcbf250bf9a7419dd6cdc1a1ec5ce | 5,602 | cpp | C++ | base/src/easywsclient/AndroidImplSockets.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 7 | 2019-07-11T02:05:32.000Z | 2020-11-01T18:57:51.000Z | base/src/easywsclient/AndroidImplSockets.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 3 | 2019-02-26T15:59:03.000Z | 2019-06-04T10:46:07.000Z | base/src/easywsclient/AndroidImplSockets.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 6 | 2020-05-18T08:44:47.000Z | 2022-02-26T12:18:17.000Z | #include "GameSparks/GSPlatformDeduction.h"
#include "easywsclient/easywsclient.hpp"
#if (GS_TARGET_PLATFORM == GS_PLATFORM_ANDROID)
#include <mbedtls/entropy.h>
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/net.h>
#include <mbedtls/error.h>
#include <mbedtls/platform.h>
#include <mbedtls/debug.h>
#include <cassert>... | 21.546154 | 108 | 0.704927 | djdron |
8640f84460b28358c1aacc3e474e11cf4d870c7e | 165 | cpp | C++ | misc/misc/misc/test5.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | misc/misc/misc/test5.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | misc/misc/misc/test5.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<cstdio>
main()
{
FILE *fp;
char x[999];
freopen("CON","w",stdout);
while(1)
{
scanf("%s",&x);
printf("%s\n",x);
}
}
| 12.692308 | 30 | 0.424242 | dk00 |
864c3ae95b169486e26bf405daace1d0f4e7a93c | 1,407 | hpp | C++ | modules/core/restructuring/include/nt2/core/functions/ctranspose.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | 2 | 2016-09-14T00:23:53.000Z | 2018-01-14T12:51:18.000Z | modules/core/restructuring/include/nt2/core/functions/ctranspose.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | modules/core/restructuring/include/nt2/core/functions/ctranspose.hpp | pbrunet/nt2 | 2aeca0f6a315725b335efd5d9dc95d72e10a7fb7 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// 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.
// ... | 31.977273 | 80 | 0.527363 | pbrunet |
864e9604f4ed17b0987e1fe2e820882fe20f0e11 | 17,996 | cpp | C++ | scripts/da_cratemanager.cpp | mpforums/RenSharp | 5b3fb8bff2a1772a82a4148bcf3e1265a11aa097 | [
"Apache-2.0"
] | 1 | 2021-10-04T02:34:33.000Z | 2021-10-04T02:34:33.000Z | scripts/da_cratemanager.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 9 | 2019-07-03T19:19:59.000Z | 2020-03-02T22:00:21.000Z | scripts/da_cratemanager.cpp | TheUnstoppable/RenSharp | 2a123c6018c18f3fc73501737d600e291ac3afa7 | [
"Apache-2.0"
] | 2 | 2019-08-14T08:37:36.000Z | 2020-09-29T06:44:26.000Z | /* Renegade Scripts.dll
Dragonade Crate Manager
Copyright 2017 Whitedragon, Tiberian Technologies
This file is part of the Renegade scripts.dll
The Renegade scripts.dll 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
Softwar... | 33.890772 | 404 | 0.692487 | mpforums |
8653002418fe6aad40b27089ade30361e7127879 | 3,343 | cpp | C++ | MathTutorRevised.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | MathTutorRevised.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | MathTutorRevised.cpp | krisf01/Computer-Systems-and-C-Programming | e6c3f464bcd12e06c86b57ce7bc12aacc03e423a | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
const int MIN_VALUE = 100;
const int MAX_VALUE = 1000;
const int addition = 1, subtraction = 2, multiplication = 3, division = 4, quit = 5;
int randomnumber1, randomnumber2, useranswer, randnumanswer;
int choi... | 30.117117 | 88 | 0.417589 | krisf01 |
86558e89ec9ecfb438bf15e28d0e4bcec4d00b07 | 488 | cpp | C++ | searchlib/src/vespa/searchlib/features/utils.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | null | null | null | searchlib/src/vespa/searchlib/features/utils.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | null | null | null | searchlib/src/vespa/searchlib/features/utils.cpp | kennyeric/vespa | f69f960d5ae48d246f56a60e6e46c90a58f836ba | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "utils.hpp"
namespace search::features::util {
template double strToNum<double>(vespalib::stringref str);
template uint32_t strToNum<uint32_t>(vespalib::stringref str);
template uint64_t st... | 34.857143 | 118 | 0.793033 | kennyeric |
86586fa7d8409801b39c5a8d81f0ebfefcc6cd93 | 6,539 | hpp | C++ | fltl/include/tdop/Unbound.hpp | iambrosie/Grail-Plus | e102de735e86df241e4311394190ad39181f073b | [
"MIT"
] | null | null | null | fltl/include/tdop/Unbound.hpp | iambrosie/Grail-Plus | e102de735e86df241e4311394190ad39181f073b | [
"MIT"
] | null | null | null | fltl/include/tdop/Unbound.hpp | iambrosie/Grail-Plus | e102de735e86df241e4311394190ad39181f073b | [
"MIT"
] | 1 | 2020-07-14T03:58:19.000Z | 2020-07-14T03:58:19.000Z | /*
* Unbound.hpp
*
* Created on: May 11, 2012
* Author: petergoodman
* Version: $Id$
*/
#ifndef Grail_Plus_TDOP_UNBOUND_HPP_
#define Grail_Plus_TDOP_UNBOUND_HPP_
namespace fltl { namespace tdop {
template <typename, typename> class Unbound;
template <typename, typename> class Bound;
/// ... | 24.958015 | 74 | 0.605138 | iambrosie |
865a71163dedde3fcde4c7e3e55f582b7d27cef3 | 4,481 | cpp | C++ | PA3/lex.cpp | Elmojica/CS280 | 6feeb34ea4e577c09df77ded4e0e0d00638994d7 | [
"CC0-1.0"
] | null | null | null | PA3/lex.cpp | Elmojica/CS280 | 6feeb34ea4e577c09df77ded4e0e0d00638994d7 | [
"CC0-1.0"
] | null | null | null | PA3/lex.cpp | Elmojica/CS280 | 6feeb34ea4e577c09df77ded4e0e0d00638994d7 | [
"CC0-1.0"
] | null | null | null | /*
* lex.cpp
*
* CS280 - Fall 2021
*/
#include <cctype>
#include <map>
using std::map;
using namespace std;
#include "lex.h"
static map<Token,string> tokenPrint = {
{PROGRAM, "PROGRAM"},
{WRITE, "WRITE"},
{INT, "INT"},
{ END, "END" },
{ IF, "IF" },
{FLOAT, "FLOAT"},
{STRING, "STRING"},
{ REPEAT, ... | 16.782772 | 85 | 0.481143 | Elmojica |
865ae8c64863361690329855a977334660c8a6e0 | 11,160 | cc | C++ | chrome/browser/ui/meegotouch/find_bar_qt.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | 1 | 2015-10-12T09:14:22.000Z | 2015-10-12T09:14:22.000Z | chrome/browser/ui/meegotouch/find_bar_qt.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/meegotouch/find_bar_qt.cc | meego-tablet-ux/meego-app-browser | 0f4ef17bd4b399c9c990a2f6ca939099495c2b9c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T07:22:28.000Z | 2020-11-04T07:22:28.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/ui/meegotouch/find_bar_qt.h"
#include "base/i18n/rtl.h"
#include "base/string_number_conversions.h"
#include "base/string_ut... | 30.914127 | 121 | 0.693011 | meego-tablet-ux |
865e81b0270c0350c28729fe96a0564681538cae | 10,114 | cc | C++ | src_extra/jitterbug.cc | antiprism/antiprism | c1bc8cc44a92773dd42540de26d578b1e2c831c7 | [
"MIT"
] | 45 | 2016-04-11T19:21:10.000Z | 2022-03-30T08:47:43.000Z | src_extra/jitterbug.cc | CyberSpock/antiprism | 0a3278d8285d308e21d0aa660b860fe2b803a562 | [
"MIT"
] | null | null | null | src_extra/jitterbug.cc | CyberSpock/antiprism | 0a3278d8285d308e21d0aa660b860fe2b803a562 | [
"MIT"
] | 7 | 2016-04-12T11:35:53.000Z | 2022-03-30T08:47:46.000Z | /*
Copyright (c) 2006-2016, Adrian Rossiter
Antiprism - http://www.antiprism.com
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
... | 25.348371 | 80 | 0.584635 | antiprism |
86669d7d3fd632dcabacd5da344bf82a5807a691 | 444 | cpp | C++ | src/detail/flow.cpp | szdanowi/bflow | 71cb2e6d8e55b0cd07337815d690ced8a0cb583a | [
"MIT"
] | null | null | null | src/detail/flow.cpp | szdanowi/bflow | 71cb2e6d8e55b0cd07337815d690ced8a0cb583a | [
"MIT"
] | null | null | null | src/detail/flow.cpp | szdanowi/bflow | 71cb2e6d8e55b0cd07337815d690ced8a0cb583a | [
"MIT"
] | null | null | null | #include "flow.hpp"
#include <ostream>
namespace bflow
{
namespace
{
const char* to_str(result value) {
switch (value) {
case result::rejected: return "rejected";
case result::accepted: return "accepted";
case result::completed: return "completed";
default: return "[INVALID RESULT]";
}
}
} // names... | 19.304348 | 58 | 0.668919 | szdanowi |
86691d79f1e662bab84bb05369b9a3df857aad85 | 70 | cpp | C++ | cpp/uninit_val.cpp | lindsayad/misc_programming | 60d4056a99d52e247bc1ae08b9eaaf0b13cc1b2e | [
"MIT"
] | null | null | null | cpp/uninit_val.cpp | lindsayad/misc_programming | 60d4056a99d52e247bc1ae08b9eaaf0b13cc1b2e | [
"MIT"
] | null | null | null | cpp/uninit_val.cpp | lindsayad/misc_programming | 60d4056a99d52e247bc1ae08b9eaaf0b13cc1b2e | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
int x;
printf ("x = %d\n", x);
}
| 8.75 | 25 | 0.485714 | lindsayad |
866f2edae264cbdb37de5e4701e0fb4d6d3f0a44 | 2,517 | hpp | C++ | libvast/vast/system/start_command.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/system/start_command.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/system/start_command.hpp | a4z/vast | 2ce9ddbac61cc7f195434b06fe3605f0bdeec520 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 51.367347 | 80 | 0.57052 | a4z |
86725899a1ff01ae0ac03e5b7f105187ae1a3f86 | 1,260 | cc | C++ | tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc | alecgunny/tensorrt-inference-server | 6a9ae2936489c681d5ab7b6589d8aff7dd48829a | [
"BSD-3-Clause"
] | 1 | 2019-02-25T22:50:58.000Z | 2019-02-25T22:50:58.000Z | tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc | alecgunny/tensorrt-inference-server | 6a9ae2936489c681d5ab7b6589d8aff7dd48829a | [
"BSD-3-Clause"
] | null | null | null | tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc | alecgunny/tensorrt-inference-server | 6a9ae2936489c681d5ab7b6589d8aff7dd48829a | [
"BSD-3-Clause"
] | null | null | null | --- tensorflow_serving/util/net_http/server/internal/evhttp_request.cc 2018-11-01 12:04:22.185086318 -0700
+++ /home/david/dev/gitlab/dgx/tensorrtserver/tools/patch/tfs/util/net_http/server/internal/evhttp_request.cc 2018-11-02 11:47:57.254526547 -0700
@@ -44,6 +44,8 @@
evhttp_uri_free(decoded_uri);
}
+ evht... | 26.25 | 145 | 0.688889 | alecgunny |
86728652ddbe81b5541d33ef0a8aed6bb389c686 | 3,871 | cc | C++ | chrome/browser/install_verification/win/imported_module_verification.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | chrome/browser/install_verification/win/imported_module_verification.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | chrome/browser/install_verification/win/imported_module_verification.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/install_verification/win/imported_module_verification.h"
#include <Windows.h>
#include <algorithm>
#include <iterator>
#include... | 38.326733 | 81 | 0.709636 | kjthegod |
86728d91158e94e2ffce76bb5a3a85a0179a34a5 | 2,495 | cpp | C++ | tui/component/searchedit.cpp | mkinsz/QModule | ec7c0f8af8c33b9765d7a4e0350059284206d8a0 | [
"MIT"
] | null | null | null | tui/component/searchedit.cpp | mkinsz/QModule | ec7c0f8af8c33b9765d7a4e0350059284206d8a0 | [
"MIT"
] | null | null | null | tui/component/searchedit.cpp | mkinsz/QModule | ec7c0f8af8c33b9765d7a4e0350059284206d8a0 | [
"MIT"
] | null | null | null | #include "searchedit.h"
#include <QLineEdit>
#include <QToolButton>
#include <QHBoxLayout>
#include <QDebug>
#include <QFocusEvent>
#include <QApplication>
#include <QClipboard>
SearchEdit::SearchEdit(QWidget *parent)
: QLineEdit(parent)
{
this->initForm();
this->initConnect();
this->translator();
}
... | 26.827957 | 91 | 0.671743 | mkinsz |
8672e2fd6634d5727b1d5434a132567378bfe01b | 2,495 | cpp | C++ | src/solo/stb/SoloSTBTrueTypeFont.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 31 | 2015-02-20T04:03:43.000Z | 2022-03-07T19:04:02.000Z | src/solo/stb/SoloSTBTrueTypeFont.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 14 | 2015-07-13T09:24:22.000Z | 2016-10-24T10:09:58.000Z | src/solo/stb/SoloSTBTrueTypeFont.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 1 | 2020-02-22T15:09:36.000Z | 2020-02-22T15:09:36.000Z | /*
* Copyright (c) Aleksey Fedotov
* MIT license
*/
#include "SoloSTBTrueTypeFont.h"
#include "SoloTexture.h"
#include "SoloDevice.h"
#include "SoloFileSystem.h"
#include "SoloStringUtils.h"
#include "SoloTextureData.h"
#define STB_TRUETYPE_IMPLEMENTATION
#include <stb_truetype.h>
using namespace solo;
auto ST... | 30.426829 | 123 | 0.67976 | 0xc0dec |
867536b48253f6ae10e7ffc8e0c299e3229da0ba | 1,522 | cpp | C++ | mindsystem/mindsee/mindbase/baseDemo.cpp | Jack2Hub/mindproject | 7d0e3651711fa3e8234e91ada7c2767f87d687d5 | [
"BSD-2-Clause"
] | 2 | 2021-04-06T11:43:37.000Z | 2021-08-31T10:50:02.000Z | mindsystem/mindsee/mindbase/baseDemo.cpp | Jack2Hub/mindproject | 7d0e3651711fa3e8234e91ada7c2767f87d687d5 | [
"BSD-2-Clause"
] | null | null | null | mindsystem/mindsee/mindbase/baseDemo.cpp | Jack2Hub/mindproject | 7d0e3651711fa3e8234e91ada7c2767f87d687d5 | [
"BSD-2-Clause"
] | 2 | 2021-02-26T11:46:48.000Z | 2021-09-15T09:54:03.000Z | #include <iostream>
#include <unistd.h>
#include "stream.hpp"
using namespace std;
int main()
{
Stream testStream1;
testStream1.SetCtrlCb([](std::string _cmd, void* userdata){return;}); // the cmd callback function must be set, you can just return without doing anything
testStream1.SetFrameCb([](Stream::sF... | 32.382979 | 158 | 0.575558 | Jack2Hub |
8678fb918341e9392898e82578cf6a07f302f288 | 70 | cpp | C++ | multimedia/directx/dinput/dicfgddk/cfrmwrk_stub.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | multimedia/directx/dinput/dicfgddk/cfrmwrk_stub.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | multimedia/directx/dinput/dicfgddk/cfrmwrk_stub.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "common_stub.hpp"
#include "..\\..\\diconfig\\cfrmwrk.cpp"
| 23.333333 | 41 | 0.657143 | npocmaka |
867c8a204338df55f6778dd49c730737fdd07e19 | 3,882 | cpp | C++ | core/common/cstream.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 28 | 2017-04-30T13:56:13.000Z | 2022-03-20T06:54:37.000Z | core/common/cstream.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 72 | 2017-04-25T03:42:58.000Z | 2021-12-04T06:35:28.000Z | core/common/cstream.cpp | plonk/peercast-0.1218 | 30fc2401dc798336429a979fe7aaca8883e63ed9 | [
"PSF-2.0",
"Apache-2.0",
"OpenSSL",
"MIT"
] | 12 | 2017-04-16T06:25:24.000Z | 2021-07-07T13:28:27.000Z | // ------------------------------------------------
// File : cstream.cpp
// Date: 4-apr-2002
// Author: giles
// Desc:
// Channel streaming classes. These do the actual
// streaming of media between clients.
//
// (c) 2002 peercast.org
//
// ------------------------------------------------
// This program is... | 33.179487 | 186 | 0.600206 | plonk |
868352890ebe1060b61787575a86d86b99309706 | 1,343 | cpp | C++ | avalon/utils/platform.cpp | michaelcontento/avalon | 9207fbe2b3be61050794eca123303f56a08930db | [
"MIT"
] | 46 | 2015-02-20T07:20:39.000Z | 2021-07-25T02:57:47.000Z | avalon/utils/platform.cpp | michaelcontento/avalon | 9207fbe2b3be61050794eca123303f56a08930db | [
"MIT"
] | 31 | 2015-09-20T09:07:29.000Z | 2015-09-22T13:52:56.000Z | avalon/utils/platform.cpp | michaelcontento/avalon | 9207fbe2b3be61050794eca123303f56a08930db | [
"MIT"
] | 18 | 2015-01-15T12:30:03.000Z | 2020-03-25T18:46:45.000Z | #include <avalon/utils/platform.h>
namespace avalon {
namespace utils {
namespace platform {
std::string getName()
{
#if AVALON_PLATFORM_IS_IOS
return std::string("ios");
#elif AVALON_PLATFORM_IS_ANDROID
return std::string("android");
#elif AVALON_PLATFORM_IS_WIN32
return std::string("win32");
#elif AVA... | 24.87037 | 64 | 0.744602 | michaelcontento |
86849cf9a2c0ac1a5f11afdd2c94bb8083994bda | 19,319 | cc | C++ | notification/src/macro_generator.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/src/macro_generator.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | notification/src/macro_generator.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2015 Centreon
**
** 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 t... | 29.138763 | 91 | 0.661266 | sdelafond |
868504c3b01afe7814aed8af1def27d945d7d3c4 | 2,989 | cpp | C++ | 2020/day24/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day24/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day24/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include <climits>
#include "common/types.h"
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
enum Color {
WHITE,
BLACK
};
struct Floor {
Floor() {
this->minX = INT_MAX;
this->maxX = INT_MIN;
this->minY = INT_MAX;
this->maxY = INT_MIN;
}
Color getColor... | 18.337423 | 75 | 0.526932 | bielskij |
868b1bde7f085fe3b5311e181e6ff8dfbda49128 | 11,557 | cpp | C++ | test/conformance/conformance_multifunction_node.cpp | andrewseidl/oneTBB | 2d9df245c7084ea187ceeafdd31ea9767e3a4bea | [
"Apache-2.0"
] | 1 | 2021-01-22T06:36:30.000Z | 2021-01-22T06:36:30.000Z | test/conformance/conformance_multifunction_node.cpp | andrewseidl/oneTBB | 2d9df245c7084ea187ceeafdd31ea9767e3a4bea | [
"Apache-2.0"
] | null | null | null | test/conformance/conformance_multifunction_node.cpp | andrewseidl/oneTBB | 2d9df245c7084ea187ceeafdd31ea9767e3a4bea | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... | 35.45092 | 178 | 0.666263 | andrewseidl |
868da85e54ad3dcd519f495da100e320daece72b | 10,602 | cpp | C++ | ChaosDataService/ChaosDataService.cpp | fast01/chaosframework | 28194bcca5f976fd5cf61448ca84ce545e94d822 | [
"Apache-2.0"
] | 2 | 2020-04-16T13:20:57.000Z | 2021-06-24T02:05:25.000Z | ChaosDataService/ChaosDataService.cpp | fast01/chaosframework | 28194bcca5f976fd5cf61448ca84ce545e94d822 | [
"Apache-2.0"
] | null | null | null | ChaosDataService/ChaosDataService.cpp | fast01/chaosframework | 28194bcca5f976fd5cf61448ca84ce545e94d822 | [
"Apache-2.0"
] | null | null | null | /*
* ChaosDataService.cpp
* !CHOAS
* Created by Bisegni Claudio.
*
* Copyright 2014 INFN, National Institute of Nuclear Physics
*
* 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 L... | 34.760656 | 157 | 0.709489 | fast01 |
8692cf354b00f73644524d8b25e9052a004d8043 | 12,880 | cpp | C++ | temoto_action_assistant/src/ta_package_generator.cpp | temoto-framework/temoto_utils | 208956e46a3d362a8db18c14ef0bcfc82bfb0b9a | [
"Apache-2.0"
] | null | null | null | temoto_action_assistant/src/ta_package_generator.cpp | temoto-framework/temoto_utils | 208956e46a3d362a8db18c14ef0bcfc82bfb0b9a | [
"Apache-2.0"
] | 1 | 2021-06-30T22:13:27.000Z | 2021-06-30T22:13:27.000Z | temoto_action_assistant/src/ta_package_generator.cpp | temoto-telerobotics/temoto_utils | 9492de31dbadeb7029e9746d55f934943acc3b99 | [
"Apache-2.0"
] | null | null | null | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright 2019 TeMoto Telerobotics
*
* 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://w... | 41.548387 | 129 | 0.700233 | temoto-framework |
86950f91a7985ee46b02d1481306e0d3e26c72c8 | 921 | cpp | C++ | ex_12/principal.cpp | mihaioltean/poo | 9c03eef52a0a03867af3e65f66f979b1ad702ccc | [
"MIT"
] | null | null | null | ex_12/principal.cpp | mihaioltean/poo | 9c03eef52a0a03867af3e65f66f979b1ad702ccc | [
"MIT"
] | null | null | null | ex_12/principal.cpp | mihaioltean/poo | 9c03eef52a0a03867af3e65f66f979b1ad702ccc | [
"MIT"
] | null | null | null | // ConsoleApplication15.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "complex.h"
#include <stdio.h>
int main()
{
t_complex c1;
printf("real = %f, imaginar = %f\n", c1.get_real(), c1.get_imaginar());
t_complex c2(1, 2);
printf("real = %f, imaginar = %f\n", ... | 22.463415 | 111 | 0.631922 | mihaioltean |
8695b55ae79442abf1e50bc76548f0d30957e7c1 | 5,288 | cpp | C++ | src/core/Log.cpp | ElmerDellson/deferred-shading-full | 4ed351028fe13432327164a551f71fd368b933b7 | [
"MIT"
] | null | null | null | src/core/Log.cpp | ElmerDellson/deferred-shading-full | 4ed351028fe13432327164a551f71fd368b933b7 | [
"MIT"
] | null | null | null | src/core/Log.cpp | ElmerDellson/deferred-shading-full | 4ed351028fe13432327164a551f71fd368b933b7 | [
"MIT"
] | null | null | null | #include "config.hpp"
#include "Log.h"
#include <cstring>
#include <cstdio>
#include <sstream>
#include <string>
#include <iostream>
#include <thread>
#include <unordered_map>
#ifdef _WIN32
# include <Windows.h>
#endif
#include <mutex>
namespace Log {
#define RESULT_MAX_STRING_LENGTH 16384
FILE *logfile = nullptr;
v... | 25.669903 | 101 | 0.559191 | ElmerDellson |
8695dbf74fe9a4aa6113a3ddb2ffb2d1c86f0238 | 2,025 | cpp | C++ | bin/libs/systemc-2.3.1/src/sysc/kernel/sc_main.cpp | buaawj/Research | 23bf0d0df67f80b7a860f9d2dc3f30b60554c26d | [
"OML"
] | 9 | 2019-07-15T10:05:29.000Z | 2022-03-14T12:55:19.000Z | bin/libs/systemc-2.3.1/src/sysc/kernel/sc_main.cpp | buaawj/Research | 23bf0d0df67f80b7a860f9d2dc3f30b60554c26d | [
"OML"
] | 2 | 2019-11-30T23:27:47.000Z | 2021-11-02T12:01:05.000Z | systemc-2.3.1/src/sysc/kernel/sc_main.cpp | tianzhuqiao/bsmedit | 3e443ed6db7b44b3b0da0e4bc024b65dcfe8e7a4 | [
"MIT"
] | null | null | null | /*****************************************************************************
The following code is derived, directly or indirectly, from the SystemC
source code Copyright (c) 1996-2014 by all Contributors.
All Rights reserved.
The contents of this file are subject to the restrictions and limitations
set f... | 35.526316 | 79 | 0.614321 | buaawj |
8697a4bc2ddf75656c2d4f98a5b5280861daa1b2 | 1,796 | cpp | C++ | vulkan/source/QueryPool.cpp | mtezych/cpp | 05c1b85eb89117a9b406f3f32470367937331614 | [
"BSD-3-Clause"
] | null | null | null | vulkan/source/QueryPool.cpp | mtezych/cpp | 05c1b85eb89117a9b406f3f32470367937331614 | [
"BSD-3-Clause"
] | null | null | null | vulkan/source/QueryPool.cpp | mtezych/cpp | 05c1b85eb89117a9b406f3f32470367937331614 | [
"BSD-3-Clause"
] | 2 | 2019-12-21T00:31:17.000Z | 2021-07-14T23:16:23.000Z |
#include <vulkan/QueryPool.h>
#include <vulkan/Symbols.h>
#include <vulkan/Device.h>
namespace vk
{
QueryPool::CreateInfo::CreateInfo
(
const VkQueryType queryType, const uint32_t queryCount
):
createInfo
{
VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO,
nullptr,
0,
queryType, queryCount,
VkQueryPi... | 20.179775 | 70 | 0.711581 | mtezych |
869d12cee80b66df20a9d0c75be4533dab9e912e | 18,679 | hpp | C++ | orb/include/morbid/handle_request_body.hpp | felipealmeida/mORBid | 3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b | [
"BSL-1.0"
] | 2 | 2018-01-31T07:06:23.000Z | 2021-02-18T00:49:05.000Z | orb/include/morbid/handle_request_body.hpp | felipealmeida/mORBid | 3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b | [
"BSL-1.0"
] | null | null | null | orb/include/morbid/handle_request_body.hpp | felipealmeida/mORBid | 3ebc133f9dbe8af1c5cfb39349a0fbf5c125229b | [
"BSL-1.0"
] | null | null | null | /* (c) Copyright 2012 Felipe Magno de Almeida
*
* 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 MORBID_HANDLE_REQUEST_BODY_HPP
#define MORBID_HANDLE_REQUEST_BODY_HPP
#include <morbid/any.hpp>
#incl... | 38.198364 | 128 | 0.693506 | felipealmeida |
869f10223b79d175e5bdc5e96de65f67f7c57dfe | 2,050 | cpp | C++ | week 1/Arrays/10First_Repeating_Element.cpp | arpit456jain/gfg-11-Weeks-Workshop-on-DSA-in-CPP | ed7fd8bc0a581f54ba3a3588dd01013776c4ece6 | [
"MIT"
] | 6 | 2021-08-06T14:36:41.000Z | 2022-03-22T11:22:07.000Z | week 1/Arrays/10First_Repeating_Element.cpp | arpit456jain/11-Weeks-Workshop-on-DSA-in-CPP | ed7fd8bc0a581f54ba3a3588dd01013776c4ece6 | [
"MIT"
] | 1 | 2021-08-09T05:09:48.000Z | 2021-08-09T05:09:48.000Z | week 1/Arrays/10First_Repeating_Element.cpp | arpit456jain/11-Weeks-Workshop-on-DSA-in-CPP | ed7fd8bc0a581f54ba3a3588dd01013776c4ece6 | [
"MIT"
] | 1 | 2021-08-09T14:25:17.000Z | 2021-08-09T14:25:17.000Z | // Given an array arr[] of size n, find the first repeating element. The element should occurs more than once and the index of its first occurrence should be the smallest.
// Input:
// n = 7
// arr[] = {1, 5, 3, 4, 3, 5, 6}
// Output: 2
// Explanation:
// 5 is appearing twice and
// its first appearence is at index ... | 24.698795 | 171 | 0.46 | arpit456jain |
869fbf4e6e0ec99cada0c4b1137a78c2d16fe019 | 3,070 | cpp | C++ | trainings/2015-07-25-Multi-University-2015-1 /F.cpp | HcPlu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 9 | 2017-10-07T13:35:45.000Z | 2021-06-07T17:36:55.000Z | trainings/2015-07-25-Multi-University-2015-1 /F.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | null | null | null | trainings/2015-07-25-Multi-University-2015-1 /F.cpp | zhijian-liu/acm-icpc | ab1f1d58bf2b4bf6677a2e4282fd3dadb3effbf8 | [
"MIT"
] | 3 | 2018-04-24T05:27:21.000Z | 2019-04-25T06:06:00.000Z | #include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
const int N = 222222;
int n, m;
vector<int> adj[N];
int height[N], parent[N], dist[N], dp[N];
int father[N][20];
vector<pair<pair<int, int>, int> > chain[N];
int jump(int x, int k) {
for (int i = 0; i < 20; ++i) {
if (k >> i &... | 21.928571 | 77 | 0.400977 | HcPlu |
86a1de77dee7fd33df55aee618ae8d1601b75d41 | 191 | cpp | C++ | regression/esbmc-cpp/cbmc/Templates14/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/cbmc/Templates14/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/cbmc/Templates14/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | #include<cassert>
namespace n1
{
template <class S>
struct A{
S a;
};
}
template <class T>
struct B{
n1::A<T> b;
};
int main()
{
B<bool> o;
o.b.a = true;
assert(o.b.a==true);
};
| 8.681818 | 22 | 0.560209 | shmarovfedor |
86a241a4e23586a1c13ad92a9e9114eb42fdcac3 | 6,313 | cpp | C++ | 3rdparty/webkit/Source/WebCore/PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp | mchiasson/PhaserNative | f867454602c395484bf730a7c43b9c586c102ac2 | [
"MIT"
] | 1 | 2020-05-25T16:06:49.000Z | 2020-05-25T16:06:49.000Z | WebLayoutCore/Source/WebCore/PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 1 | 2018-07-10T10:53:18.000Z | 2018-07-10T10:53:18.000Z | /*
* Copyright (C) 2013 Apple Inc. 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, this list of conditions a... | 35.072222 | 85 | 0.708063 | mchiasson |
86a62e1bbf39a71c8842b26242f5954e67788ccd | 505 | cpp | C++ | test/TestCell.cpp | samsparks/climaze | a49dc0a926f86311212a61e837ebb46e2a387fe2 | [
"MIT"
] | null | null | null | test/TestCell.cpp | samsparks/climaze | a49dc0a926f86311212a61e837ebb46e2a387fe2 | [
"MIT"
] | null | null | null | test/TestCell.cpp | samsparks/climaze | a49dc0a926f86311212a61e837ebb46e2a387fe2 | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include "Cell.hpp"
BOOST_AUTO_TEST_SUITE(TestCell)
BOOST_AUTO_TEST_CASE( Initialization )
{
Cell c;
BOOST_CHECK_EQUAL( c.Visited(), false );
BOOST_CHECK_EQUAL( c.Opened(), false );
}
BOOST_AUTO_TEST_CASE( Accessors )
{
Cell c;
BOOST_CHECK_EQUAL( c.Visited(), f... | 21.956522 | 51 | 0.69901 | samsparks |
86a696f79263c4449c62684bb7931f717285dd35 | 3,711 | cpp | C++ | src/game/cmd/LsPlayers.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 25 | 2016-05-27T11:53:58.000Z | 2021-10-17T00:13:41.000Z | src/game/cmd/LsPlayers.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 1 | 2016-07-09T05:25:03.000Z | 2016-07-09T05:25:03.000Z | src/game/cmd/LsPlayers.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 16 | 2016-05-28T23:06:50.000Z | 2022-01-26T13:47:12.000Z | #include <bgame/impl.h>
namespace cmd {
///////////////////////////////////////////////////////////////////////////////
LsPlayers::LsPlayers()
: AbstractBuiltin( "lsplayers" )
{
__usage << xvalue( "!" + _name );
__descr << "Display all players connected, their client numbers and admin levels.";
}
//////... | 25.244898 | 87 | 0.466451 | jumptohistory |
86ab04821b716af2f4d5e29a2f3d8159b6f8e943 | 1,255 | cc | C++ | src/constants.cc | IoanaIleana/SigmodContest | 589bc86deecea953b40c2ce07759d35e397bd9c8 | [
"MIT"
] | null | null | null | src/constants.cc | IoanaIleana/SigmodContest | 589bc86deecea953b40c2ce07759d35e397bd9c8 | [
"MIT"
] | null | null | null | src/constants.cc | IoanaIleana/SigmodContest | 589bc86deecea953b40c2ce07759d35e397bd9c8 | [
"MIT"
] | null | null | null | #include <sys/types.h>
#include <stdint.h>
#include "constants.h"
uint64_t one64 = (uint64_t)1;
uint64_t zero64 = (uint64_t)0;
uint64_t max64 = ~zero64;
uint64_t mod64mask=(uint64_t)63;
uint64_t masks64[(int)64] = {
one64<<(int)0, one64<<(int)1, one64<<(int)2, one64<<(int)3, one64<<(int)4, one64<<(int)5, one64<<... | 54.565217 | 129 | 0.627888 | IoanaIleana |
86ad2f272ece6f715f3e4a3865c7db6c9eefbb4c | 1,158 | cpp | C++ | 084-Largest-Rectangle-in-Histogram-recursion/solution.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 3 | 2019-05-27T06:47:32.000Z | 2020-12-22T05:57:10.000Z | 084-Largest-Rectangle-in-Histogram-recursion/solution.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | null | null | null | 084-Largest-Rectangle-in-Histogram-recursion/solution.cpp | johnhany/leetcode | 453a86ac16360e44893262e04f77fd350d1e80f2 | [
"Apache-2.0"
] | 5 | 2020-04-01T10:26:04.000Z | 2022-02-05T18:21:01.000Z | #include "solution.hpp"
static auto x = []() {
// turn off sync
std::ios::sync_with_stdio(false);
// untie in/out streams
cin.tie(NULL);
return 0;
}();
int Solution::largestRectangleArea(vector<int>& heights) {
if (heights.empty()) return 0;
list<pair<int, int>> lowest;
for (int i = 0; i < height... | 26.930233 | 97 | 0.604491 | johnhany |
86aebf64d96bab3224c7033e0f19fc7e07caa00c | 549 | hpp | C++ | src/toolkits/style_transfer/class_registrations.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 11,356 | 2017-12-08T19:42:32.000Z | 2022-03-31T16:55:25.000Z | src/toolkits/style_transfer/class_registrations.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 2,402 | 2017-12-08T22:31:01.000Z | 2022-03-28T19:25:52.000Z | src/toolkits/style_transfer/class_registrations.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | /* Copyright © 2019 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at
* https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_STYLE_TRANSFER_REGISTRATION_H_
#define TURI_STYLE_TRANSFER_REGISTRATION_H_
#include... | 27.45 | 74 | 0.788707 | Bpowers4 |
86afcbe00d257676a7de93191471ab9a62e960cd | 411 | cpp | C++ | src/view/progress.cpp | lucekdudek/ceppem_i_mieczem | cf94d0aa64811ea056cba342fc7f93e9ae27ffa5 | [
"Apache-2.0"
] | null | null | null | src/view/progress.cpp | lucekdudek/ceppem_i_mieczem | cf94d0aa64811ea056cba342fc7f93e9ae27ffa5 | [
"Apache-2.0"
] | null | null | null | src/view/progress.cpp | lucekdudek/ceppem_i_mieczem | cf94d0aa64811ea056cba342fc7f93e9ae27ffa5 | [
"Apache-2.0"
] | null | null | null | #include "progress.h"
Progress::Progress(int x, int y, int width, int height, char* name, char* path) : Texture(x, y, width, height, path)
{
this->name = _strdup(name);
this->max_width = width;
fill = 100;
}
Progress::~Progress()
{
delete name;
}
void Progress::setFill(unsigned char fill)
{
this->fill = fill... | 15.222222 | 116 | 0.6618 | lucekdudek |
86b891def1227fbabd7f4c6cc149f0376a3c67c2 | 2,440 | cpp | C++ | cpp/libs/src/opendnp3/master/ClearRestartTask.cpp | spazzarama/opendnp3 | 44c06cb148d40ed150e539895b3fa951376e5f74 | [
"Apache-2.0"
] | 1 | 2020-05-07T16:31:30.000Z | 2020-05-07T16:31:30.000Z | cpp/libs/src/opendnp3/master/ClearRestartTask.cpp | spazzarama/opendnp3 | 44c06cb148d40ed150e539895b3fa951376e5f74 | [
"Apache-2.0"
] | null | null | null | cpp/libs/src/opendnp3/master/ClearRestartTask.cpp | spazzarama/opendnp3 | 44c06cb148d40ed150e539895b3fa951376e5f74 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013-2019 Automatak, LLC
*
* Licensed to Green Energy Corp (www.greenenergycorp.com) and Automatak
* LLC (www.automatak.com) under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership. Green Energy Co... | 35.362319 | 107 | 0.690164 | spazzarama |
86bd7fc0594dfde72fb9d711ca70b6741b599ffe | 3,199 | cpp | C++ | src/basegui/TextViewControllerImplementor.cpp | 0of/WebOS-Magna | a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511 | [
"Apache-2.0"
] | 1 | 2016-03-26T13:25:08.000Z | 2016-03-26T13:25:08.000Z | src/basegui/TextViewControllerImplementor.cpp | 0of/WebOS-Magna | a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511 | [
"Apache-2.0"
] | null | null | null | src/basegui/TextViewControllerImplementor.cpp | 0of/WebOS-Magna | a0fe2c9708fd4dd07928c11fcb03fb29fdd2d511 | [
"Apache-2.0"
] | null | null | null | #include "TextViewControllerImplementor.h"
#include "TextViewController.h"
#include "qt_glue/FontMetrics.h"
using namespace Magna::Glue;
namespace Magna{
namespace GUI{
TextViewControllerImplementor::TextViewControllerImplementor( TextViewController & binding )
:m_textBoundingRect()
,m... | 33.673684 | 147 | 0.626758 | 0of |
86c19bcc21103493fbaf704185b71f7c110bad87 | 269 | cpp | C++ | Beginner/P1150.cpp | Muntaha-Islam0019/URI-Online-Judge-Solutions | 9db9cdfffe81378512e406eb14cd8525f0e013c3 | [
"MIT"
] | 1 | 2019-08-28T21:19:21.000Z | 2019-08-28T21:19:21.000Z | Beginner/P1150.cpp | Muntaha-Islam0019/URI-Online-Judge-Solutions | 9db9cdfffe81378512e406eb14cd8525f0e013c3 | [
"MIT"
] | null | null | null | Beginner/P1150.cpp | Muntaha-Islam0019/URI-Online-Judge-Solutions | 9db9cdfffe81378512e406eb14cd8525f0e013c3 | [
"MIT"
] | null | null | null | #include<stdio.h>
int main()
{
int x,z,a=1,c=0,i;
scanf("%d %d",&x,&z);
while(x>=z)
{
scanf("%d",&z);
}
for(i=x; i<z; i++)
{
c += i;
if(c>z)
break;
a++;
}
printf("%d\n",a);
return 0;
}
| 13.45 | 25 | 0.330855 | Muntaha-Islam0019 |
f864a7c0098829c3fb06d77aee813880b0866700 | 4,521 | cpp | C++ | sources/test/Main.cpp | Naoki-Nakagawa/GameLibrary | 0b20938a19a293f76c177726a8e70ddce0dbeeb5 | [
"MIT"
] | 2 | 2017-05-23T17:19:17.000Z | 2017-05-30T10:28:38.000Z | sources/test/Main.cpp | Naoki-Nakagawa/GameDevelopmentKit | 0b20938a19a293f76c177726a8e70ddce0dbeeb5 | [
"MIT"
] | 61 | 2018-02-11T08:27:32.000Z | 2018-06-01T11:01:57.000Z | sources/test/Main.cpp | itukikikuti/GameLibrary | 0b20938a19a293f76c177726a8e70ddce0dbeeb5 | [
"MIT"
] | null | null | null | #define XLIBRARY_NAMESPACE_BEGIN
#define XLIBRARY_NAMESPACE_END
#include "../Library.hpp"
#include "../LibraryGenerator.cpp"
#include <sstream>
#include "Sub.hpp"
using namespace std;
int Main()
{
LibraryGenerator::Generate(L"sources/Library.hpp", L"XLibrary11.hpp");
Debug::OpenConsole();
printf("aaaaaa");
Spri... | 23.670157 | 94 | 0.65605 | Naoki-Nakagawa |
f8657d1c9ea4495e752b30883a01aadab8614356 | 6,878 | cc | C++ | src/ufo/filters/ProcessAMVQI.cc | NOAA-EMC/ufo | 3bf1407731b79eab16ceff64129552577d9cfcd0 | [
"Apache-2.0"
] | null | null | null | src/ufo/filters/ProcessAMVQI.cc | NOAA-EMC/ufo | 3bf1407731b79eab16ceff64129552577d9cfcd0 | [
"Apache-2.0"
] | 10 | 2020-12-10T22:57:51.000Z | 2020-12-17T15:57:04.000Z | src/ufo/filters/ProcessAMVQI.cc | NOAA-EMC/ufo | 3bf1407731b79eab16ceff64129552577d9cfcd0 | [
"Apache-2.0"
] | 3 | 2020-12-10T18:38:22.000Z | 2020-12-11T01:36:37.000Z | /*
* (C) Copyright 2021 Met Office
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#include "ufo/filters/ProcessAMVQI.h"
#include <algorithm>
#include <string>
#include <vector>
#include "ioda/distribution/... | 37.791209 | 93 | 0.597267 | NOAA-EMC |
f8716a35f8febaa7bcaacc60edae0820d3de250b | 1,297 | hpp | C++ | src/llvm-passes/Location.hpp | ucd-plse/eesi | aacbcecbb8c1f1d2e152ee4a0aa417ac92ae74bb | [
"BSD-3-Clause"
] | 5 | 2019-07-01T09:05:32.000Z | 2019-09-03T17:36:26.000Z | src/llvm-passes/Location.hpp | defreez-ucd/eesi-doi | 49b51f9a01b8c1dbbe110898c27ec714034132aa | [
"CC-BY-4.0"
] | 3 | 2019-08-01T03:14:48.000Z | 2019-09-03T20:40:52.000Z | src/llvm-passes/Location.hpp | defreez-ucd/eesi-doi | 49b51f9a01b8c1dbbe110898c27ec714034132aa | [
"CC-BY-4.0"
] | 2 | 2019-06-10T23:08:27.000Z | 2020-09-29T01:20:49.000Z | // The pair of file / line number is the best unique identifier for an
// instruction that we have that remains constant between llvm instantiations.
#ifndef LOCATION_HPP
#define LOCATION_HPP
#include "llvm/Support/raw_ostream.h"
#include <string>
class Location {
public:
std::string file;
unsigned line = 0;
... | 23.160714 | 87 | 0.643793 | ucd-plse |
f874668564f613d9c24db90e684e040d5d3ee28e | 678 | hh | C++ | include/helper.hh | kretash/old_school_fps | c9c1951939fdf810fff58ebc04818972e92ffc77 | [
"MIT"
] | null | null | null | include/helper.hh | kretash/old_school_fps | c9c1951939fdf810fff58ebc04818972e92ffc77 | [
"MIT"
] | null | null | null | include/helper.hh | kretash/old_school_fps | c9c1951939fdf810fff58ebc04818972e92ffc77 | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
#include "math.hh"
static inline uint32_t create_color( float r, float g, float b, float a ) {
uint32_t color =
( uint8_t ) ( def_clamp( a * 255.0f, 0.0f, 255.0f ) ) << 24 |
( uint8_t ) ( def_clamp( b * 255.0f, 0.0f, 255.0f ) ) << 16 |
( uint8_t ) ( def_cl... | 27.12 | 75 | 0.591445 | kretash |
f87521729fac8e1404a245d2045aa299107a68f2 | 1,374 | cpp | C++ | Samples/ObjectInOffice/IDataObject.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | 12 | 2018-03-15T00:20:55.000Z | 2021-08-11T10:02:15.000Z | Samples/ObjectInOffice/IDataObject.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | null | null | null | Samples/ObjectInOffice/IDataObject.cpp | ntclark/Graphic | 86acc119d172bb53c1666432538836b461d8a3f2 | [
"BSD-3-Clause"
] | 2 | 2019-04-09T17:15:31.000Z | 2020-12-05T19:52:59.000Z | // Copyright 2018 InnoVisioNate Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ObjectInOffice.h"
STDMETHODIMP ObjectInOffice::GetData(FORMATETC *,STGMEDIUM *) {
return S_OK;
}
STDMETHODIMP ObjectInOffice::GetDat... | 28.040816 | 114 | 0.720524 | ntclark |
f8767f849911f1eca9300a2ea16e8808007407f3 | 476 | cc | C++ | 2021_1011_1017/887.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | 2021_1011_1017/887.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | 2021_1011_1017/887.cc | guohaoqiang/leetcode | 802447c029c36892e8dd7391c825bcfc7ac0fd0b | [
"MIT"
] | null | null | null | class Solution {
public:
int superEggDrop(int k, int n) {
vector<vector<int>> dp(10001,vector<int>(k+1,0));
int m = 0;
// m: #move
// dp[m][k]: the #floors can be tested using m moves and k eggs
while (dp[m][k]<n){
m++;
for (int j=1; j<=k; ++j){
... | 26.444444 | 71 | 0.413866 | guohaoqiang |
f879833a3b649dfc90b7f50ad0a2c0bbb8b3b7bf | 1,677 | cpp | C++ | solutions/c++/problems/[0017_Medium] Letter Combinations of a Phone Number.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | 6 | 2021-02-20T14:00:22.000Z | 2022-03-31T15:26:44.000Z | solutions/c++/problems/[0017_Medium] Letter Combinations of a Phone Number.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | null | null | null | solutions/c++/problems/[0017_Medium] Letter Combinations of a Phone Number.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<vector<char>> cart_product(const vector<vector<char>> &v) {
vector<vector<char>> s = {{}};
for (auto &u: v) {
vector<vector<char>> r;
for (auto &x: s) {
for (auto y: u) {
... | 27.95 | 78 | 0.408468 | RageBill |
f881f992d4faa5d20f4649883ba1b1a4687a8a1e | 1,037 | cpp | C++ | algorithm-challenges/baekjoon-online-judge/challenges/9000/9251.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | algorithm-challenges/baekjoon-online-judge/challenges/9000/9251.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | algorithm-challenges/baekjoon-online-judge/challenges/9000/9251.cpp | nbsp1221/algorithm | a227bbc7cf43dbf2cadc8d47052b9a92875dfa77 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
string small, big, temponary;
cin >> small >> big;
if (small.size() > big.size()) {
temponary = small;
small = big;
big = temponary;
}... | 22.543478 | 68 | 0.427194 | nbsp1221 |
f8837cbfab9cd082989c2ec26848513a735149e4 | 1,490 | hpp | C++ | include/boost/mysql/detail/auth/auth_calculator.hpp | AlexAndDad/mysql-asio | a56d390a2ef4426744483dcbaeb54a65af524356 | [
"BSL-1.0"
] | null | null | null | include/boost/mysql/detail/auth/auth_calculator.hpp | AlexAndDad/mysql-asio | a56d390a2ef4426744483dcbaeb54a65af524356 | [
"BSL-1.0"
] | null | null | null | include/boost/mysql/detail/auth/auth_calculator.hpp | AlexAndDad/mysql-asio | a56d390a2ef4426744483dcbaeb54a65af524356 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019-2020 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
//
// 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 BOOST_MYSQL_DETAIL_AUTH_AUTH_CALCULATOR_HPP
#define BOOST_MYSQL_DETAI... | 24.42623 | 82 | 0.715436 | AlexAndDad |
f8855eb1341381ea5f4fc52289a2b47947a7be9f | 3,204 | cxx | C++ | Dax/LHMC/ArgumentsParser.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 9 | 2015-01-10T04:31:50.000Z | 2019-03-04T13:55:08.000Z | Dax/LHMC/ArgumentsParser.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 2 | 2016-10-19T12:56:47.000Z | 2017-06-02T13:55:35.000Z | Dax/LHMC/ArgumentsParser.cxx | robertmaynard/Sandbox | 724c67fd924c29630a49f8501fd9df7a2bbb1ed8 | [
"BSD-2-Clause"
] | 5 | 2015-01-05T15:52:50.000Z | 2018-02-14T18:08:19.000Z | //=============================================================================
//
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// ... | 30.514286 | 144 | 0.56211 | robertmaynard |
f8861774b76b6ca3c19ece69a76a608e4d86a12e | 1,852 | cpp | C++ | chromium/third_party/WebKit/Source/modules/vr/VREyeParameters.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/modules/vr/VREyeParameters.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/modules/vr/VREyeParameters.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 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 "modules/vr/VREyeParameters.h"
namespace blink {
namespace {
void setDomPoint(DOMPoint* point, const WebVRVector3& vec)
{
point->setX(vec.... | 32.491228 | 124 | 0.757559 | wedataintelligence |
f886b196bebdc5e2f992f0cf120344c37ba5a990 | 7,678 | cpp | C++ | case-studies/PoDoFo/podofo/cib/podofo/base/PdfDataType.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 30 | 2018-03-05T17:35:29.000Z | 2022-03-17T18:59:34.000Z | case-studies/PoDoFo/podofo/cib/podofo/base/PdfDataType.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 2 | 2016-05-26T04:47:13.000Z | 2019-02-15T05:17:43.000Z | case-studies/PoDoFo/podofo/cib/podofo/base/PdfDataType.h.cpp | satya-das/cib | 369333ea58b0530b8789a340e21096ba7d159d0e | [
"MIT"
] | 5 | 2019-02-15T05:09:22.000Z | 2021-04-14T12:10:16.000Z | #include "podofo/base/PdfDataType.h"
#include "podofo/base/PdfDefines.h"
#include "podofo/base/PdfEncrypt.h"
#include "podofo/base/PdfOutputDevice.h"
#include "__zz_cib_CibPoDoFo-class-down-cast.h"
#include "__zz_cib_CibPoDoFo-delegate-helper.h"
#include "__zz_cib_CibPoDoFo-generic.h"
#include "__zz_cib_CibPoDoFo-ids.... | 49.535484 | 267 | 0.784189 | satya-das |
f887ca22daabb759148bfa85756f2ceb98904ee7 | 14,837 | cpp | C++ | Libs/GL.CallBacks.cpp | thiagofigcosta/The.COM-Game | 653b7174767b6dc2351807a44c2c4ac67c7dc1d6 | [
"MIT"
] | null | null | null | Libs/GL.CallBacks.cpp | thiagofigcosta/The.COM-Game | 653b7174767b6dc2351807a44c2c4ac67c7dc1d6 | [
"MIT"
] | null | null | null | Libs/GL.CallBacks.cpp | thiagofigcosta/The.COM-Game | 653b7174767b6dc2351807a44c2c4ac67c7dc1d6 | [
"MIT"
] | null | null | null | #include "GL.Callbacks.h"
bool glCallbacksReleaseMouseOffSet=false;//evita de definir o mouse solto no meio ou final da funcao update e o programa nao fazer a leitura
bool glCallbacksReleaseMouseROffSet=false;//evita de definir o mouse solto no meio ou final da funcao update e o programa nao fazer a leitura
bool glCal... | 32.537281 | 162 | 0.539193 | thiagofigcosta |
f8890a3a056ff61efd82778c8997d1b70f77e01f | 2,267 | cpp | C++ | PolyEngine/UnitTests/Src/AllocatorTests.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 1 | 2017-04-30T13:55:54.000Z | 2017-04-30T13:55:54.000Z | PolyEngine/UnitTests/Src/AllocatorTests.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | null | null | null | PolyEngine/UnitTests/Src/AllocatorTests.cpp | MuniuDev/PolyEngine | 9389537e4f551fa5dd621ebd3704e55b04c98792 | [
"MIT"
] | 3 | 2017-11-22T16:37:26.000Z | 2019-04-24T17:47:58.000Z | #include <catch.hpp>
#include <PoolAllocator.hpp>
#include <IterablePoolAllocator.hpp>
using namespace Poly;
TEST_CASE("Pool allocator", "[Allocator]") {
PoolAllocator<size_t> allocator(10);
REQUIRE(allocator.GetSize() == 0);
size_t* a = allocator.Alloc();
REQUIRE(a != nullptr);
REQUIRE(allocator.GetSize() ==... | 22.445545 | 70 | 0.659462 | MuniuDev |
f889a8743f81ad633163e794d37ae91c293f278d | 1,134 | cpp | C++ | c++/remove_duplicates_from_sorted_list.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/remove_duplicates_from_sorted_list.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | c++/remove_duplicates_from_sorted_list.cpp | SongZhao/leetcode | 4a2b4f554e91f6a2167b336f8a69b80fa9f3f920 | [
"Apache-2.0"
] | null | null | null | /*
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
*/
/*
* note how to free memory
*/
#include "helper.h"
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* Li... | 21 | 90 | 0.534392 | SongZhao |
f88af9fc4d172ba3f31ffd822945287a72660d72 | 4,943 | hpp | C++ | src/serial/serializer_basic.hpp | yxtj/FAB | f483672e13ea96a3f1da450c9655b1fc239233b1 | [
"MIT"
] | null | null | null | src/serial/serializer_basic.hpp | yxtj/FAB | f483672e13ea96a3f1da450c9655b1fc239233b1 | [
"MIT"
] | 1 | 2019-01-28T21:39:07.000Z | 2019-01-28T21:39:07.000Z | src/serial/serializer_basic.hpp | haku117/FAB | 80957e7627f48c1934cb051ae79f267611482112 | [
"MIT"
] | null | null | null | #pragma once
#include <utility>
#include <type_traits>
#include <cstdint>
#include <cstring>
#include "../type_traits/is_container.h"
#include "../type_traits/is_pair.h"
#include "../type_traits/type_traits_dummy.h"
template <class T, class Enable = void>
struct _Serializer {
int estimateSize(const T& item) {
stati... | 31.28481 | 93 | 0.682784 | yxtj |
f88e19a2599b4d3b6e63bb590eb7da1478dcf03b | 480 | cpp | C++ | DP/746. Min Cost Climbing Stairs.cpp | sumiya-NJU/LeetCode- | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | 2 | 2019-10-28T06:40:09.000Z | 2022-03-09T10:50:06.000Z | DP/746. Min Cost Climbing Stairs.cpp | sumiya-NJU/LeetCode | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | null | null | null | DP/746. Min Cost Climbing Stairs.cpp | sumiya-NJU/LeetCode | 8e6065e160da3db423a51aaf3ae53b2023068d05 | [
"MIT"
] | 1 | 2018-12-09T13:46:06.000Z | 2018-12-09T13:46:06.000Z | // author: ypz
// 数组dp表示落地到第i位的最低代价,注意返回值取落地到第n位和第n-1位中代价的较小者。
class Solution {
public:
int minCostClimbingStairs(vector<int>& cost) {
if(cost.size() == 0) return 0;
if(cost.size() == 1) return cost[0];
vector<int> dp(cost.size(), 0);
dp[0] = cost[0];
dp[1] = cost[1];
... | 28.235294 | 57 | 0.520833 | sumiya-NJU |
f8901f6e1876b927d707f7faa558179dfdfb3f08 | 9,194 | cpp | C++ | examples/ex28.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 969 | 2015-07-10T02:28:17.000Z | 2022-03-31T17:28:02.000Z | examples/ex28.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 2,604 | 2015-07-14T08:22:22.000Z | 2022-03-31T23:51:41.000Z | examples/ex28.cpp | ajithvallabai/mfem | 5920fbf645f328c29a9d6489f2474d989f808451 | [
"BSD-3-Clause"
] | 407 | 2015-08-26T14:14:22.000Z | 2022-03-31T03:32:16.000Z | // MFEM Example 28
//
// Compile with: make ex28
//
// Sample runs: ex28
// ex28 --visit-datafiles
// ex28 --order 2
//
// Description: Demonstrates a sliding boundary condition in an elasticity
// problem. A trapezoid, roughly as pictured below... | 34.30597 | 80 | 0.618447 | ajithvallabai |
f890eff19a63ff3179c2ee29e8ce78a049fd3372 | 359 | cpp | C++ | src/main.cpp | baconpaul/faust-toy-surge-osc | 97d0dfb79d27b97f3b062883ed2dee3222fa5da2 | [
"MIT"
] | null | null | null | src/main.cpp | baconpaul/faust-toy-surge-osc | 97d0dfb79d27b97f3b062883ed2dee3222fa5da2 | [
"MIT"
] | null | null | null | src/main.cpp | baconpaul/faust-toy-surge-osc | 97d0dfb79d27b97f3b062883ed2dee3222fa5da2 | [
"MIT"
] | null | null | null | #include <iostream>
namespace Surge
{
namespace FaustOscs
{
int spawn_justASin();
int spawn_basicOsc();
}
}
int main( int argc, char **argv )
{
std::cout << "Hello World" << std::endl;
std::cout << "Spawing basic" << std::endl;
Surge::FaustOscs::spawn_basicOsc();
std::cout << "Spawing just" << std::endl;
... | 17.095238 | 45 | 0.651811 | baconpaul |
f892c30f6be5835882420eefb535e93b57ad5d09 | 1,577 | cpp | C++ | src/Motors.cpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | src/Motors.cpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | src/Motors.cpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | #include "Motors.hpp"
#include <iostream>
namespace ento
{
Motor::Motor( void )
: m_dead(false), m_enabled(true)
{}
Motor::~Motor( void ) {}
Linear_motor::Linear_motor( b2Body* body )
: m_body(body)
{}
void Linear_motor::
apply( float dt )
{
std::cout << "Linear_motor::apply\n";
b2Vec2 vel = m_body->GetLinearV... | 21.026667 | 64 | 0.610653 | fu7mu4 |
f8969197258efbec51f45e4510bdfccefbf47f61 | 1,350 | cpp | C++ | test/test_typed_test.cpp | ncihnegn/jctest | 92139e9b6362c2cb1d252caba4a268a852652554 | [
"MIT"
] | 38 | 2019-02-28T07:23:15.000Z | 2021-11-22T14:08:00.000Z | test/test_typed_test.cpp | ncihnegn/jctest | 92139e9b6362c2cb1d252caba4a268a852652554 | [
"MIT"
] | 5 | 2019-04-13T21:37:03.000Z | 2020-04-11T13:06:31.000Z | test/test_typed_test.cpp | ncihnegn/jctest | 92139e9b6362c2cb1d252caba4a268a852652554 | [
"MIT"
] | 4 | 2019-04-13T21:22:22.000Z | 2020-07-13T20:09:13.000Z |
#include <string.h>
#include <stdio.h>
#include "testutil.h"
// To test the testing framework /////////////
void GlobalTestSetup(); // to silence a warning
void GlobalTestSetup() {
printf("Setting up the test\n");
}
int GlobalTestTeardown(); // to silence a warning
int GlobalTestTeardown() {
printf("Verifying... | 18.493151 | 63 | 0.586667 | ncihnegn |
f897961b41157b5c190c4a8a80a8199a2030e1c3 | 2,734 | cpp | C++ | src/StoneCold.3D.Game/GameCore.cpp | krck/StoneCold_3D | 5661a96e5167922b0ba555714a6d337acdea48c5 | [
"BSD-3-Clause"
] | null | null | null | src/StoneCold.3D.Game/GameCore.cpp | krck/StoneCold_3D | 5661a96e5167922b0ba555714a6d337acdea48c5 | [
"BSD-3-Clause"
] | null | null | null | src/StoneCold.3D.Game/GameCore.cpp | krck/StoneCold_3D | 5661a96e5167922b0ba555714a6d337acdea48c5 | [
"BSD-3-Clause"
] | null | null | null | #include "GameCore.hpp"
using namespace StoneCold::Game;
//using namespace StoneCold::Resources;
GameCore::GameCore()
: _inputManager(InputManager())
, _windowManager(WindowManager())
{ };
bool GameCore::Initialize(const std::string& windowName) {
try {
if (_windowManager.Initialize(&_inputManager)) {
// G... | 26.288462 | 82 | 0.666057 | krck |
f897d643631ae458df51b555ea1faf510535b1e9 | 1,508 | cc | C++ | src/logic/propositional-kb.cc | obs145628/ai-cpp | 32ff9365e0d3a36d219352ee6e3a01e62c633cc9 | [
"MIT"
] | null | null | null | src/logic/propositional-kb.cc | obs145628/ai-cpp | 32ff9365e0d3a36d219352ee6e3a01e62c633cc9 | [
"MIT"
] | null | null | null | src/logic/propositional-kb.cc | obs145628/ai-cpp | 32ff9365e0d3a36d219352ee6e3a01e62c633cc9 | [
"MIT"
] | null | null | null | #include "logic/propositional-kb.hh"
#include <sstream>
#include "logic/ast-and.hh"
#include "logic/eval-visitor.hh"
#include "logic/parser.hh"
#include "logic/symbols-visitor.hh"
namespace logic
{
PropositionalKB::PropositionalKB()
: kb_(nullptr)
{}
PropositionalKB::~PropositionalKB()
{
delete kb_... | 21.542857 | 78 | 0.618037 | obs145628 |
f8a085d06c69abbcb0c5afbf0d66bf04f7f7e40b | 833 | cpp | C++ | rt/rt/solids/sky.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/sky.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/sky.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include <rt/bbox.h>
#include <rt/intersection.h>
#include <rt/solids/sky.h>
namespace rt
{
Sky::Sky(CoordMapper* texMapper, Material* material)
: Solid(texMapper, material)
{
}
BBox Sky::getBounds() const
{
return BBox::full();
}
Intersection Sky::intersect(const Ray& ray, float previousBestDistance) const
{
i... | 23.8 | 79 | 0.70108 | DasNaCl |
f8a12320e7923737dd065eb25132e17ffc5a46dd | 1,353 | hpp | C++ | ntree/hashentry.hpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | 1 | 2015-06-14T15:54:27.000Z | 2015-06-14T15:54:27.000Z | ntree/hashentry.hpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | ntree/hashentry.hpp | degarashi/boomstick | 55dc5bfcfad6119d8401f578f91df7bbd44c192b | [
"MIT"
] | null | null | null | #pragma once
#include "ntree.hpp"
namespace boom {
namespace ntree {
//! ハッシュマップによるエントリ実装
/*! \tparam Ent エントリクラス
\tparam NDiv 分割度
\tparam NL 次元数(2 or 3) */
template <class Ent, int NDiv, int Dim>
class CTEnt_Hash : public CTEnt_Base<NDiv,Dim> {
public:
using Entry = Ent;
private:
using ... | 23.736842 | 68 | 0.593496 | degarashi |
f8a12e414e47ceed52e955a4c643f48ec8dd1500 | 504 | hpp | C++ | distributed_systems/locks/Locksmith.hpp | joaovicentesouto/INE5418 | 69edd7be883bde01068d58df85ba9dc49f9d23c1 | [
"MIT"
] | null | null | null | distributed_systems/locks/Locksmith.hpp | joaovicentesouto/INE5418 | 69edd7be883bde01068d58df85ba9dc49f9d23c1 | [
"MIT"
] | null | null | null | distributed_systems/locks/Locksmith.hpp | joaovicentesouto/INE5418 | 69edd7be883bde01068d58df85ba9dc49f9d23c1 | [
"MIT"
] | null | null | null | #ifndef LOCKS_LOCKSMITH_HPP
#define LOCKS_LOCKSMITH_HPP
#include <iostream>
#include <cstdlib>
#include <utility>
#include <functional>
#include <distributed_systems/types/BasicTypes.hpp>
#include <boost/date_time/posix_time/posix_time_types.hpp>
namespace locks
{
class Locksmith
{
public:
// Clas... | 20.16 | 58 | 0.69246 | joaovicentesouto |
f8a3e3ed5ee3a438a912821caae79e53dd206495 | 1,501 | cpp | C++ | Leetcode/Q44.cpp | kingium/Leetcode | f23029637f3a16545f15abcd8eafa8eadd56f146 | [
"Unlicense"
] | 1 | 2019-01-21T09:05:32.000Z | 2019-01-21T09:05:32.000Z | Leetcode/Q44.cpp | kingium/Leetcode | f23029637f3a16545f15abcd8eafa8eadd56f146 | [
"Unlicense"
] | 1 | 2019-08-08T09:58:02.000Z | 2019-08-08T09:58:02.000Z | Leetcode/Q44.cpp | goldsail/Leetcode | f23029637f3a16545f15abcd8eafa8eadd56f146 | [
"Unlicense"
] | null | null | null | class Solution {
public:
bool isMatch(string s, string p) {
bool result = false;
// create the 2D table for dynamic programming
bool **table = new bool*[p.size() + 1];
for (int i = 0; i < p.size() + 1; i++) {
table[i] = new bool[s.size() + 1];
}
... | 30.632653 | 96 | 0.345103 | kingium |
f8a6e2740e2576bef26f842ac1bb9aaa0692e661 | 435 | hpp | C++ | src/world/timer.hpp | ComLarsic/FinishTheGame_Rayjam | a5ddb7af9c0c4fd285cad26b13f9b58440fe3a89 | [
"MIT"
] | null | null | null | src/world/timer.hpp | ComLarsic/FinishTheGame_Rayjam | a5ddb7af9c0c4fd285cad26b13f9b58440fe3a89 | [
"MIT"
] | null | null | null | src/world/timer.hpp | ComLarsic/FinishTheGame_Rayjam | a5ddb7af9c0c4fd285cad26b13f9b58440fe3a89 | [
"MIT"
] | null | null | null | #pragma once
/** Represents the game tumer */
class Timer {
public:
Timer();
~Timer();
/** Tick the timer */
void Tick();
/** Set the timer */
void Set(int minutes, int seconds);
/** Add time to the timer */
void Add(int minutes, int seconds);
/** Display the game timer */
void... | 19.772727 | 39 | 0.572414 | ComLarsic |
f8a8f59476c5abb81b72122783847f8e1da98b0a | 7,008 | cxx | C++ | TivaWare/third_party/windows/fltk-1.1.10/src/Fl_Menu_.cxx | bumblebee96/pacman | 1b82f1747765e807bef3040e4dac72c744fc3bc1 | [
"MIT"
] | 25 | 2015-04-20T13:03:05.000Z | 2022-01-06T07:25:02.000Z | TivaWare/third_party/windows/fltk-1.1.10/src/Fl_Menu_.cxx | bumblebee96/pacman | 1b82f1747765e807bef3040e4dac72c744fc3bc1 | [
"MIT"
] | 1 | 2021-03-21T03:00:58.000Z | 2021-03-22T10:05:45.000Z | TivaWare/third_party/windows/fltk-1.1.10/src/Fl_Menu_.cxx | bumblebee96/pacman | 1b82f1747765e807bef3040e4dac72c744fc3bc1 | [
"MIT"
] | 24 | 2015-09-22T12:08:11.000Z | 2021-12-30T10:17:30.000Z | //
// "$Id: Fl_Menu_.cxx 5190 2006-06-09 16:16:34Z mike $"
//
// Common menu code for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2005 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
// Licen... | 30.077253 | 99 | 0.60117 | bumblebee96 |
f8b191b1a4f2b63ce624657becd10b459e2c25a0 | 5,497 | cpp | C++ | Firmware/Flavors/ErisBici/btnpwm.cpp | JonathanCamargo/Eris | 34c389f0808c8b47933605ed19d98e62280e56dd | [
"MIT"
] | null | null | null | Firmware/Flavors/ErisBici/btnpwm.cpp | JonathanCamargo/Eris | 34c389f0808c8b47933605ed19d98e62280e56dd | [
"MIT"
] | null | null | null | Firmware/Flavors/ErisBici/btnpwm.cpp | JonathanCamargo/Eris | 34c389f0808c8b47933605ed19d98e62280e56dd | [
"MIT"
] | null | null | null | #include "Eris.h"
#include "btnpwm.h"
namespace ButtonPWM{
thread_t *generatePWM = NULL;
thread_t *transitions = NULL;
static const int PERIOD_LOW_MS=(int) 1000/FREQ_LOW_HZ;
static const int PERIOD_HIGH_MS=(int) 1000/FREQ_HIGH_HZ;
typedef enum btnstates_t{
BTN_OFF, // Button is released
BTN_PRE... | 30.370166 | 111 | 0.565035 | JonathanCamargo |
f8b37a7e1df401b2e3dd4e733422f340108a895d | 310 | cpp | C++ | Phoebe-core/src/ph/renderer/objects/BufferLayout.cpp | JRBonilla/Slate | 9bcb3befced30d8f9ffb2dcce0a0209ba76093e4 | [
"MIT"
] | 1 | 2017-02-26T23:37:37.000Z | 2017-02-26T23:37:37.000Z | Phoebe-core/src/ph/renderer/objects/BufferLayout.cpp | JRBonilla/Slate | 9bcb3befced30d8f9ffb2dcce0a0209ba76093e4 | [
"MIT"
] | null | null | null | Phoebe-core/src/ph/renderer/objects/BufferLayout.cpp | JRBonilla/Slate | 9bcb3befced30d8f9ffb2dcce0a0209ba76093e4 | [
"MIT"
] | null | null | null | #include "BufferLayout.h"
namespace ph { namespace renderer {
BufferLayout::BufferLayout() { }
void BufferLayout::Push(const std::string& name, uint type, uint size, uint count, bool normalized) {
m_Layout.push_back({ name, type, size, count, m_Stride, normalized });
m_Stride += size * count;
}
}} | 25.833333 | 102 | 0.703226 | JRBonilla |
f8b59b44718cd2acb8e291ab8d87881e209617c8 | 1,518 | cpp | C++ | LeetCode/ThousandOne/0682-baseball_game.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0682-baseball_game.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandOne/0682-baseball_game.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 682. 棒球比赛
你现在是棒球比赛记录员。
给定一个字符串列表,每个字符串可以是以下四种类型之一:
1.整数(一轮的得分):直接表示您在本轮中获得的积分数。
2. "+"(一轮的得分):表示本轮获得的得分是前两轮有效 回合得分的总和。
3. "D"(一轮的得分):表示本轮获得的得分是前一轮有效 回合得分的两倍。
4. "C"(一个操作,这不是一个回合的分数):表示您获得的最后一个有效 回合的分数是无效的,应该被移除。
每一轮的操作都是永久性的,可能会对前一轮和后一轮产生影响。
你需要返回你在所有回合中得分的总和。
示例 1:
输入: ["5","2","C","D",... | 17.25 | 67 | 0.589592 | Ginkgo-Biloba |
f8b5f363224aafce2447cb956d9a6a3f4838c93e | 2,192 | cpp | C++ | Extensions/ZilchShaders/CodeRangeMapping.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | Extensions/ZilchShaders/CodeRangeMapping.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | Extensions/ZilchShaders/CodeRangeMapping.cpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// Authors: Joshua Davis
/// Copyright 2015, DigiPen Institute of Technology
///
///////////////////////////////////////////////////////////////////////////////
#include "Precompiled.hpp"
namespace Zero
{
//---------------... | 29.621622 | 205 | 0.635036 | RachelWilSingh |
f8bdce16c6c82fbda03543d2bce8ee439bee6e46 | 1,053 | hpp | C++ | modules/cvv/src/qtutil/matchview/keypointsettings.hpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 7,158 | 2016-07-04T22:19:27.000Z | 2022-03-31T07:54:32.000Z | modules/cvv/src/qtutil/matchview/keypointsettings.hpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 2,184 | 2016-07-05T12:04:14.000Z | 2022-03-30T19:10:12.000Z | modules/cvv/src/qtutil/matchview/keypointsettings.hpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 5,535 | 2016-07-06T12:01:10.000Z | 2022-03-31T03:13:24.000Z | #ifndef CVVISUAL_KEYPOINT_SETTINGS
#define CVVISUAL_KEYPOINT_SETTINGS
#include <QFrame>
#include <QPen>
#include "cvvkeypoint.hpp"
namespace cvv
{
namespace qtutil
{
class CVVKeyPoint;
/**
* @brief this abstract class returns an individual Setting for a CVVKeyPoint.
*/
class KeyPointSettings : public QFrame
{
Q... | 18.155172 | 78 | 0.71415 | Nondzu |
f8be55bece8a975d5d896358b1dff13a14fb954c | 715 | cpp | C++ | src/Shared/Utils/Observer.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 13 | 2016-04-02T14:21:49.000Z | 2021-01-10T17:32:43.000Z | src/Shared/Utils/Observer.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 24 | 2016-04-02T12:08:39.000Z | 2021-01-27T01:21:58.000Z | src/Shared/Utils/Observer.cpp | Marukyu/NecroEdit | 4b2380cc3417c6578476a213e05f4cbc846e5a77 | [
"MIT",
"Unlicense"
] | 6 | 2016-04-02T12:05:28.000Z | 2017-05-10T14:13:39.000Z | #include "Shared/Utils/Observer.hpp"
Observer::~Observer()
{
while (!mySubjects.empty())
{
(*mySubjects.begin())->removeObserver(this);
}
}
Observable::~Observable()
{
while (!myObservers.empty())
{
removeObserver(*myObservers.begin());
}
}
void Observable::addObserver(Observer* observer)
{
myObservers.in... | 16.25 | 54 | 0.723077 | Marukyu |
f8c05003e5ea6b242a520651c161b3c4edf0b049 | 98,404 | cpp | C++ | STrenD/TrendHeatmapWindow.cpp | RoysamLab/STrend | 1e8d84adfb28c0a2ea78d311daeac6afd04bc275 | [
"BSD-4-Clause-UC"
] | null | null | null | STrenD/TrendHeatmapWindow.cpp | RoysamLab/STrend | 1e8d84adfb28c0a2ea78d311daeac6afd04bc275 | [
"BSD-4-Clause-UC"
] | null | null | null | STrenD/TrendHeatmapWindow.cpp | RoysamLab/STrend | 1e8d84adfb28c0a2ea78d311daeac6afd04bc275 | [
"BSD-4-Clause-UC"
] | null | null | null | #include "TrendHeatmapWindow.h"
#define pi 3.1415926
#define POWER_PARAM 0.2
TrendHeatmapWindow::TrendHeatmapWindow(const QString title, QWidget *parent)
: QMainWindow(parent)
{
this->mainQTRenderWidget;
this->view = NULL;
this->theme = NULL;
this->graph_Layout = NULL;
this->aPlane = NULL;
this->cellData = NULL... | 30.399753 | 246 | 0.689606 | RoysamLab |
f8c183669d511351d46bb0da7553277ff7b2d98b | 2,009 | cpp | C++ | src/base/throw_lock_exception.cpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/base/throw_lock_exception.cpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | src/base/throw_lock_exception.cpp | CoSoSys/cppdevtk | 99d6c3d328c05a55dae54e82fcbedad93d0cfaa0 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// \file
///
/// \copyright Copyright (C) 2015 - 2020 CoSoSys Ltd <info@cososys.com>\n
/// Licensed under the Apache License, Version 2.0 (the "License");\n
/// you may not use this file e... | 37.203704 | 126 | 0.628173 | CoSoSys |
f8c4591f863666fa47e610293ffd0fd7e3e0eae0 | 696 | hpp | C++ | nmpp/exception.hpp | ltekieli/nanomsgpp | 179fcb46f8849a02c1940a728828dbfbb4737575 | [
"MIT"
] | 1 | 2017-07-19T12:34:35.000Z | 2017-07-19T12:34:35.000Z | nmpp/exception.hpp | ltekieli/nanomsgpp | 179fcb46f8849a02c1940a728828dbfbb4737575 | [
"MIT"
] | null | null | null | nmpp/exception.hpp | ltekieli/nanomsgpp | 179fcb46f8849a02c1940a728828dbfbb4737575 | [
"MIT"
] | null | null | null | #ifndef NMPP_EXCEPTION_HPP_
#define NMPP_EXCEPTION_HPP_
#include <exception>
#include <nanomsg/nn.h>
namespace nmpp
{
class exception final : std::exception
{
public:
exception() : m_err(nn_errno())
{
}
int num() const noexcept
{
return m_err;
}
virtual const char* what() const throw()
{
re... | 14.808511 | 54 | 0.686782 | ltekieli |
f8c629278f4b2e121781e1e7350441168f9c06a1 | 1,025 | hpp | C++ | a21/eeprom.hpp | biappi/a21 | 6d008bebdbd6c51816ed61aa45664fa3b2715d9b | [
"MIT"
] | 6 | 2017-07-28T13:36:24.000Z | 2022-01-30T14:00:32.000Z | a21/eeprom.hpp | carkang/a21 | 8f472e75de5734514f152828033a93b88401069a | [
"MIT"
] | 3 | 2018-10-26T20:10:49.000Z | 2021-05-15T20:31:45.000Z | a21/eeprom.hpp | carkang/a21 | 8f472e75de5734514f152828033a93b88401069a | [
"MIT"
] | 2 | 2021-02-14T14:12:58.000Z | 2022-01-13T23:08:26.000Z | //
// a21 — Arduino Toolkit.
// Copyright (C) 2016-2018, Aleh Dzenisiuk. http://github.com/aleh/a21
//
#pragma once
#include "Arduino.h"
namespace a21 {
/**
* Digispark boards have no EEPROM library, so here is a simple one.
* TODO: something is wrong here, investigate
*/
class EEPROM {
public:
static ui... | 21.354167 | 98 | 0.620488 | biappi |
f8c6dc2c4a65dcfd565e941fc5cb749c49236333 | 1,135 | cc | C++ | color_01.cc | bellcorreia/learn-gl | c9be56b1a9b7da984b0d499df8b92fbe11e8a75c | [
"MIT"
] | 3 | 2022-01-04T01:23:25.000Z | 2022-01-04T01:28:45.000Z | color_01.cc | bellcorreia/learn-gl | c9be56b1a9b7da984b0d499df8b92fbe11e8a75c | [
"MIT"
] | null | null | null | color_01.cc | bellcorreia/learn-gl | c9be56b1a9b7da984b0d499df8b92fbe11e8a75c | [
"MIT"
] | null | null | null | /*
* Source code written by Gabriel Correia
*/
#include <iostream>
#include <GLFW/glfw3.h>
constexpr GLint WINDOW_WIDTH = 640, WINDOW_HEIGHT = 480;
static GLfloat current_colors[3];
int main (int argc, char **argv)
{
GLFWwindow *main_window;
glfwInit ();
/* Creating a window to render into it */
... | 22.254902 | 69 | 0.626432 | bellcorreia |
f8c7df245a2677f66e71e3f19d199835a45839c7 | 661 | cpp | C++ | codeforces/cf584 div2/B.cpp | songhn233/ACM_Steps | 6f2edeca9bf4fc999a8148bc90b2d8d0e59d48fe | [
"CC0-1.0"
] | 1 | 2020-08-10T21:40:21.000Z | 2020-08-10T21:40:21.000Z | codeforces/cf584 div2/B.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | codeforces/cf584 div2/B.cpp | songhn233/Algorithm-Packages | 56d6f3c2467c175ab8a19b82bdfb25fc881e2206 | [
"CC0-1.0"
] | null | null | null | #include<cstdio>
#include<algorithm>
#include<cstring>
#include<iostream>
#define ll long long
using namespace std;
const int inf=0x3f3f3f3f;
int n;
string s;
int a[110],b[110],c[110];
int p[10500];
int main()
{
int ans=0;
cin>>n;
cin>>s;
for(int i=1;i<=n;i++) cin>>a[i]>>b[i];
for(int i=0;i<s.size();i++) c[i+1]=s[... | 16.525 | 45 | 0.526475 | songhn233 |
f8c980368e2aee02760aeed67828c6e39659f62c | 1,478 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/DateTime.ToLocalTime ToUniversalTime/CPP/class1.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR/DateTime.ToLocalTime ToUniversalTime/CPP/class1.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR/DateTime.ToLocalTime ToUniversalTime/CPP/class1.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z | // <Snippet1>
using namespace System;
void main()
{
Console::WriteLine("Enter a date and time.");
String^ strDateTime = Console::ReadLine();
DateTime localDateTime, univDateTime;
try
{
localDateTime = DateTime::Parse(strDateTime);
univDateTime = localDateTime.ToUniversalTime();
... | 30.163265 | 82 | 0.610961 | hamarb123 |
f8cf9d154f13f7d416811dbfddf21e699c69a6cb | 515 | cpp | C++ | lang/C++/last-friday-of-each-month.cpp | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | lang/C++/last-friday-of-each-month.cpp | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | null | null | null | lang/C++/last-friday-of-each-month.cpp | ethansaxenian/RosettaDecode | 8ea1a42a5f792280b50193ad47545d14ee371fb7 | [
"MIT"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | #include <boost/date_time/gregorian/gregorian.hpp>
#include <iostream>
#include <cstdlib>
int main( int argc , char* argv[ ] ) {
using namespace boost::gregorian ;
greg_month months[ ] = { Jan , Feb , Mar , Apr , May , Jun , Jul ,
Aug , Sep , Oct , Nov , Dec } ;
greg_year gy = atoi( argv[ 1 ] ) ;
fo... | 28.611111 | 69 | 0.56699 | ethansaxenian |