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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a84442cee063dad11d5a9cad2c5d748f9fcc3c46 | 4,971 | cc | C++ | src/actions/transformations/js_decode.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | src/actions/transformations/js_decode.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | src/actions/transformations/js_decode.cc | Peercraft/deb-modsecurity | 6d608c3ea5d762b370bf682ba24e2febffd4f382 | [
"Apache-2.0"
] | null | null | null | /*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 Trustwave Holdings, Inc. (http://www.trustwave.com/)
*
* 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
*
* If any of the files rela... | 29.414201 | 79 | 0.396097 | Peercraft |
a844f6aba74c1648276a9afad698796cd588e967 | 578 | cc | C++ | zircon/system/ulib/blobfs/test/zstd-fuzzer.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | 14 | 2020-10-25T05:48:36.000Z | 2021-09-20T02:46:20.000Z | src/storage/blobfs/test/zstd-fuzzer.cc | JokeZhang/fuchsia | d6e9dea8dca7a1c8fa89d03e131367e284b30d23 | [
"BSD-3-Clause"
] | 1 | 2022-01-14T23:38:40.000Z | 2022-01-14T23:38:40.000Z | src/storage/blobfs/test/zstd-fuzzer.cc | JokeZhang/fuchsia | d6e9dea8dca7a1c8fa89d03e131367e284b30d23 | [
"BSD-3-Clause"
] | 4 | 2020-12-28T17:04:45.000Z | 2022-03-12T03:20:44.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "compression/zstd-plain.h"
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
size_t compressed_size ... | 32.111111 | 94 | 0.768166 | casey |
a8456f4eb566a0323d9dd3568e9f97544a298234 | 3,114 | cpp | C++ | modfile/records/obbaserecord.cpp | uesp/tes4lib | 7b426c9209ff7996d3d763e6d4e217abfefae406 | [
"MIT"
] | 1 | 2021-02-07T07:32:14.000Z | 2021-02-07T07:32:14.000Z | modfile/records/obbaserecord.cpp | uesp/tes4lib | 7b426c9209ff7996d3d763e6d4e217abfefae406 | [
"MIT"
] | null | null | null | modfile/records/obbaserecord.cpp | uesp/tes4lib | 7b426c9209ff7996d3d763e6d4e217abfefae406 | [
"MIT"
] | null | null | null | /*===========================================================================
*
* File: Obbaserecord.CPP
* Author: Dave Humphrey (uesp@m0use.net)
* Created On: April 10, 2006
*
* Description
*
*=========================================================================*/
/* Include Files */
#include ... | 35.386364 | 78 | 0.293192 | uesp |
a8484a0e76b6ce7699001f2443443000fd133519 | 7,230 | cc | C++ | components/sync/engine/net/sync_server_connection_manager.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 | components/sync/engine/net/sync_server_connection_manager.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 | components/sync/engine/net/sync_server_connection_manager.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 (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/engine/net/sync_server_connection_manager.h"
#include <stdint.h>
#include <utility>
#include "base/bind.h"
#include "base... | 34.428571 | 80 | 0.717151 | Ron423c |
a859ffcda73443198aa4f1e6f89bd3a2501e2e90 | 2,541 | hpp | C++ | ivarp/include/ivarp/math_fn/eval/custom.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/math_fn/eval/custom.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | ivarp/include/ivarp/math_fn/eval/custom.hpp | phillip-keldenich/squares-in-disk | 501ebeb00b909b9264a9611fd63e082026cdd262 | [
"MIT"
] | null | null | null | // The code is open source under the MIT license.
// Copyright 2019-2020, Phillip Keldenich, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to de... | 43.067797 | 117 | 0.681621 | phillip-keldenich |
a85be22b7ff30f9baa398b2a425d727c6faf163b | 14,129 | cpp | C++ | test/range/test-any_range.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-any_range.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-any_range.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2013, 2015 Rogier van Dalen.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... | 36.228205 | 80 | 0.583764 | rogiervd |
a85df51766a4e04ecc4d4dff6e50cdae3d006497 | 13,423 | cc | C++ | DRsim/src/DRsimDetectorConstruction.cc | kyHwangs/DRC_generic | efb5a791c57706ac1848907af5bef36cb8480ca2 | [
"Apache-2.0"
] | null | null | null | DRsim/src/DRsimDetectorConstruction.cc | kyHwangs/DRC_generic | efb5a791c57706ac1848907af5bef36cb8480ca2 | [
"Apache-2.0"
] | null | null | null | DRsim/src/DRsimDetectorConstruction.cc | kyHwangs/DRC_generic | efb5a791c57706ac1848907af5bef36cb8480ca2 | [
"Apache-2.0"
] | 1 | 2022-03-28T04:06:32.000Z | 2022-03-28T04:06:32.000Z | #include "DRsimDetectorConstruction.hh"
#include "DRsimCellParameterisation.hh"
#include "DRsimFilterParameterisation.hh"
#include "DRsimMirrorParameterisation.hh"
#include "DRsimSiPMSD.hh"
#include "G4VPhysicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4PVParameterised.hh"
#include "G4IntersectionSolid.hh"
#i... | 46.286207 | 212 | 0.716606 | kyHwangs |
a85e22945433eba2ae0840f32b9c59fbc589962a | 10,259 | hpp | C++ | chat_room/ChatRoom_multithreads/cpp_headers/aws_s3.hpp | LiaoWC/cpp_programs | da78030d02cb916466ad5f0b0794f5c443cc05b4 | [
"MIT"
] | null | null | null | chat_room/ChatRoom_multithreads/cpp_headers/aws_s3.hpp | LiaoWC/cpp_programs | da78030d02cb916466ad5f0b0794f5c443cc05b4 | [
"MIT"
] | null | null | null | chat_room/ChatRoom_multithreads/cpp_headers/aws_s3.hpp | LiaoWC/cpp_programs | da78030d02cb916466ad5f0b0794f5c443cc05b4 | [
"MIT"
] | null | null | null | #ifndef _AWS_S3_HPP_
#define _AWS_S3_HPP_
#include <iostream>
#include <fstream>
#include <sys/stat.h>
#include <fstream>
#include <string>
#include <aws/core/Aws.h>
#include <aws/s3/S3Client.h>
#include <aws/s3/model/DeleteObjectRequest.h>
#include <aws/s3/model/PutObjectRequest.h>
#include <aws/s3/model/GetObjectReq... | 39.007605 | 136 | 0.499951 | LiaoWC |
a85ea5203a902486716faaf97cc4619262159d6c | 1,530 | cpp | C++ | src/prod/src/Management/healthmanager/RequestContextKind.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Management/healthmanager/RequestContextKind.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Management/healthmanager/RequestContextKind.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
namespace... | 40.263158 | 99 | 0.538562 | vishnuk007 |
a85f657b71cb0c42e060c9ab6f5cc1cd63fc78cb | 617 | hpp | C++ | configuration/ConfigurationArgumentProcessor_test/ConfigurationArgumentProcessor_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationArgumentProcessor_test/ConfigurationArgumentProcessor_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | configuration/ConfigurationArgumentProcessor_test/ConfigurationArgumentProcessor_test.hpp | leighgarbs/toolbox | fd9ceada534916fa8987cfcb5220cece2188b304 | [
"MIT"
] | null | null | null | #if !defined CONFIGURATION_ARGUMENT_PROCESSOR_TEST
#define CONFIGURATION_ARGUMENT_PROCESSOR_TEST
#include "Test.hpp"
#include "TestCases.hpp"
#include "TestMacros.hpp"
namespace Configuration
{
TEST_CASES_BEGIN(ArgumentProcessor_test)
TEST(RegisterPositionalArgument)
TEST(RegisterOptionalArgumen... | 19.28125 | 50 | 0.71799 | leighgarbs |
a86091b209f28ffda96c75f7c9b23c708af8aa8f | 1,179 | cpp | C++ | src/entity/BeerCard.cpp | MattSkala/bang-game | 42b174fef07a8c6b7af1895e6ddf75507bd2fa42 | [
"MIT"
] | 9 | 2015-05-29T22:51:53.000Z | 2021-03-07T15:46:28.000Z | src/entity/BeerCard.cpp | MattSkala/bang-game | 42b174fef07a8c6b7af1895e6ddf75507bd2fa42 | [
"MIT"
] | null | null | null | src/entity/BeerCard.cpp | MattSkala/bang-game | 42b174fef07a8c6b7af1895e6ddf75507bd2fa42 | [
"MIT"
] | 4 | 2017-01-07T02:25:47.000Z | 2021-11-04T08:18:07.000Z | #include "BeerCard.h"
#include "../Game.h"
#include "../net/GameServer.h"
#include <iostream>
using namespace std;
BeerCard::BeerCard(string original_name, string name, int count) : InstantCard(original_name, name, count) { }
int BeerCard::play(Game *game, Player *player, int position, int target, int target_card) {... | 24.5625 | 110 | 0.577608 | MattSkala |
a86a1e1a299294034d2c3563889e6e9a8ade19c6 | 2,771 | cpp | C++ | inference-engine/src/low_precision_transformations/src/power.cpp | shre2398/openvino | f84a6d97ace26b75ae9d852525a997cbaba32e6a | [
"Apache-2.0"
] | 2 | 2020-11-18T14:14:06.000Z | 2020-11-28T04:55:57.000Z | inference-engine/src/low_precision_transformations/src/power.cpp | shre2398/openvino | f84a6d97ace26b75ae9d852525a997cbaba32e6a | [
"Apache-2.0"
] | 1 | 2020-12-22T05:01:12.000Z | 2020-12-23T09:49:43.000Z | inference-engine/src/low_precision_transformations/src/power.cpp | shre2398/openvino | f84a6d97ace26b75ae9d852525a997cbaba32e6a | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision_transformations/power.hpp"
#include <algorithm>
#include <caseless.hpp>
#include <string>
#include <memory>
#include <vector>
#include "low_precision_transformations/common/ie_lpt_exception.hpp"
#include "low_p... | 35.075949 | 111 | 0.691447 | shre2398 |
a86b36606b70fd77b4b9118cc6e54bf4366c7dae | 1,811 | cpp | C++ | mshp/algo/graphs/Dijkstra_dist_from_given_to_all.cpp | zer0main/problems | 264dd359f74e0906b9b7505506d50c879c4fb737 | [
"MIT"
] | 5 | 2015-12-25T20:53:39.000Z | 2017-07-18T23:19:04.000Z | mshp/algo/graphs/Dijkstra_dist_from_given_to_all.cpp | zer0main/problems | 264dd359f74e0906b9b7505506d50c879c4fb737 | [
"MIT"
] | null | null | null | mshp/algo/graphs/Dijkstra_dist_from_given_to_all.cpp | zer0main/problems | 264dd359f74e0906b9b7505506d50c879c4fb737 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2015-2017 Pavel Dolgov
*
* See the LICENSE file for terms of use.
*/
#include <bits/stdc++.h>
#define MAX_LENGTH 1000000000
typedef std::vector<int> Ints;
typedef std::vector<bool> Bools;
typedef std::pair<int, int> IntPair;
typedef std::vector<IntPair> IntPairs;
typedef std::vector<IntPairs> ... | 25.152778 | 70 | 0.484263 | zer0main |
a86b85be14ff439ef1872f123b2e6ed04ecfaa94 | 4,053 | cpp | C++ | src/coreclr/ToolBox/superpmi/mcs/verbdumpmap.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 3 | 2021-06-24T15:39:52.000Z | 2021-11-04T02:13:43.000Z | src/coreclr/ToolBox/superpmi/mcs/verbdumpmap.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 18 | 2019-12-03T00:21:59.000Z | 2022-01-30T04:45:58.000Z | src/coreclr/ToolBox/superpmi/mcs/verbdumpmap.cpp | JimmyCushnie/runtime | b7eb82871f1d742efb444873e11dd6241cea73d2 | [
"MIT"
] | 2 | 2022-01-23T12:24:04.000Z | 2022-02-07T15:44:03.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#include "standardpch.h"
#include "simpletimer.h"
#include "methodcontext.h"
#include "methodcontextiterator.h"
#include "verbdumpmap.h"
#include "verbildump.h"
#include "spmiutil.h"... | 27.760274 | 83 | 0.585986 | JimmyCushnie |
a87087d87447957d1ebad46267fb85baf7063457 | 1,930 | cpp | C++ | testing/visualizer/Main.cpp | ElliottSlingsby/ChunkPool | b4dd1bc5c8e88b2519029bca8329ef7092e8352f | [
"MIT"
] | null | null | null | testing/visualizer/Main.cpp | ElliottSlingsby/ChunkPool | b4dd1bc5c8e88b2519029bca8329ef7092e8352f | [
"MIT"
] | null | null | null | testing/visualizer/Main.cpp | ElliottSlingsby/ChunkPool | b4dd1bc5c8e88b2519029bca8329ef7092e8352f | [
"MIT"
] | null | null | null | #include "ChunkPool.hpp"
#include <iostream>
#include <ctime>
#include <random>
#include <chrono>
// Testing code, shouldn't really be here
struct Test{
inline Test(int x = 0, int y = 0, int z = 0) : x(x), y(y), z(z){}
inline void print() const{
std::cout << x << ", " << y << ", " << z << "\n";
}
int x;
int... | 21.685393 | 118 | 0.614508 | ElliottSlingsby |
a871bc75a1f740ea9243e61d603db9554171f971 | 272 | cpp | C++ | PrintImageSizeUtil/PrintImageSizeUtil.cpp | myarichuk/HunterDemo | def3f9e2ef6dbef901249ff71724217a9137e744 | [
"MIT"
] | null | null | null | PrintImageSizeUtil/PrintImageSizeUtil.cpp | myarichuk/HunterDemo | def3f9e2ef6dbef901249ff71724217a9137e744 | [
"MIT"
] | null | null | null | PrintImageSizeUtil/PrintImageSizeUtil.cpp | myarichuk/HunterDemo | def3f9e2ef6dbef901249ff71724217a9137e744 | [
"MIT"
] | null | null | null | // PrintImageSizeUtil.cpp : Defines the entry point for the application.
//
#include "PrintImageSizeUtil.h"
using namespace std;
int main()
{
const auto img = cv::imread("e:\\Capture.JPG");
cout << "image size: " << img.cols << "x" << img.rows << endl;
return 0;
}
| 19.428571 | 73 | 0.654412 | myarichuk |
a8790a439b8e7fa3f7e15f220a17325b429f4990 | 34,783 | cxx | C++ | StRoot/StEventUtilities/StuProbabilityPidAlgorithm.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StEventUtilities/StuProbabilityPidAlgorithm.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StEventUtilities/StuProbabilityPidAlgorithm.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | /***************************************************************************
*
* $Id: StuProbabilityPidAlgorithm.cxx,v 1.34 2004/09/19 00:07:28 perev Exp $
*
* Author:Aihong Tang, Richard Witt(FORTRAN version). Kent State University
* Send questions to aihong@cnr.physics.kent.edu
*************************... | 29.72906 | 161 | 0.619239 | xiaohaijin |
a879d12611f6ebd30250cdb311437014b97d3515 | 247 | cpp | C++ | src/test.cpp | Liuchang0812/leetcode | d71f87b0035e661d0009f4382b39c4787c355f89 | [
"MIT"
] | 9 | 2015-09-09T20:28:31.000Z | 2019-05-15T09:13:07.000Z | src/test.cpp | liuchang0812/leetcode | d71f87b0035e661d0009f4382b39c4787c355f89 | [
"MIT"
] | 1 | 2015-02-25T13:10:09.000Z | 2015-02-25T13:10:09.000Z | src/test.cpp | liuchang0812/leetcode | d71f87b0035e661d0009f4382b39c4787c355f89 | [
"MIT"
] | 1 | 2016-08-31T19:14:52.000Z | 2016-08-31T19:14:52.000Z | #include <deque>
#include <iostream>
using namespace std;
int main()
{
deque<int> dq;
dq.push(1);
dq.push(2);
dq.push(4);
for (auto i = dq.begin(); i != dq.end(); ++i)
{
cout << *i << endl;
}
return 0;
}
| 13 | 49 | 0.48583 | Liuchang0812 |
a87e1a085c5c9fe8cf1a9fea4be0a5f7384565d6 | 111,505 | cxx | C++ | main/sw/source/filter/ww8/docxattributeoutput.cxx | jimjag/openoffice | 74746a22d8cc22b031b00fcd106f4496bf936c77 | [
"Apache-2.0"
] | 1 | 2019-12-27T19:25:34.000Z | 2019-12-27T19:25:34.000Z | main/sw/source/filter/ww8/docxattributeoutput.cxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 1 | 2019-11-25T03:08:58.000Z | 2019-11-25T03:08:58.000Z | main/sw/source/filter/ww8/docxattributeoutput.cxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 6 | 2019-11-19T00:28:25.000Z | 2019-11-22T06:48:49.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 33.464886 | 213 | 0.637819 | jimjag |
a87ede10a7fddd75d660071f5973acce06b32bd8 | 4,892 | cpp | C++ | Source/main.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | Source/main.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | Source/main.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | #include "Program.h"
#include "AssimpModel.h"
#include "Camera.h"
#include "../Source/GLIncludes.h"
using namespace glm;
using namespace std;
enum { MENU_TIMER_START, MENU_TIMER_STOP, MENU_EXIT,
MENU_SHADER_NORMAL, MENU_SHADER_LIGHTING, MENU_SHADER_TEXTURE,
MENU_SCENE_SPONZA, MENU_SCENE_EMPIRE};
const int windowW... | 20.817021 | 93 | 0.721382 | RPKQ |
a87f9995346bdbc64b7a057d0247ff93196ea47e | 3,538 | cc | C++ | src/artm_tests/rpcz_canary_test.cc | marinadudarenko/bigartm | c7072663581c59e970ef165a577dc4969810a19d | [
"Apache-2.0"
] | null | null | null | src/artm_tests/rpcz_canary_test.cc | marinadudarenko/bigartm | c7072663581c59e970ef165a577dc4969810a19d | [
"Apache-2.0"
] | null | null | null | src/artm_tests/rpcz_canary_test.cc | marinadudarenko/bigartm | c7072663581c59e970ef165a577dc4969810a19d | [
"Apache-2.0"
] | null | null | null | // Copyright 2014, Additive Regularization of Topic Models.
#include <memory>
#include "boost/thread.hpp"
#include "gtest/gtest.h"
#include "rpcz/application.hpp"
#include "rpcz/server.hpp"
#include "rpcz/rpc.hpp"
#include "artm/core/zmq_context.h"
#include "artm_tests/rpcz_canary_service.pb.h"
#include "artm_test... | 29.239669 | 103 | 0.716507 | marinadudarenko |
a882177b8642f430d5802c0b9a63584f4ae61854 | 2,089 | cpp | C++ | test/k2node_problematic_input_tests2.cpp | CristobalM/c-k2tree-dyn | 8e9d12b2ad72efaba750e7600f82025c7e4082ee | [
"MIT"
] | 2 | 2021-11-13T03:46:39.000Z | 2022-01-09T17:42:03.000Z | test/k2node_problematic_input_tests2.cpp | CristobalM/c-k2tree-dyn | 8e9d12b2ad72efaba750e7600f82025c7e4082ee | [
"MIT"
] | null | null | null | test/k2node_problematic_input_tests2.cpp | CristobalM/c-k2tree-dyn | 8e9d12b2ad72efaba750e7600f82025c7e4082ee | [
"MIT"
] | null | null | null | //
// Created by cristobal on 9/24/21.
//
#include <gtest/gtest.h>
extern "C" {
#include <k2node.h>
}
using vp_t = std::vector<std::pair<unsigned long, unsigned long>>;
TEST(k2node_problematic_input_tests2, full_scan_test) {
struct k2node *root_node = create_k2node();
struct k2qstate st;
TREE_DEPTH_T treedept... | 24.869048 | 68 | 0.721876 | CristobalM |
a883b658b1e81dc4e10753441051c4208c03e1ba | 4,332 | cpp | C++ | tests/pimpl_tests/pimpl_basic_header_only/heap_allocations.cpp | lubkoll/friendly-type-erasure | 719830233a8652ccf18164653b466b0054a617f6 | [
"MIT"
] | null | null | null | tests/pimpl_tests/pimpl_basic_header_only/heap_allocations.cpp | lubkoll/friendly-type-erasure | 719830233a8652ccf18164653b466b0054a617f6 | [
"MIT"
] | 22 | 2016-08-03T16:51:10.000Z | 2016-11-23T20:53:03.000Z | tests/pimpl_tests/pimpl_basic_header_only/heap_allocations.cpp | lubkoll/friendly-type-erasure | 719830233a8652ccf18164653b466b0054a617f6 | [
"MIT"
] | null | null | null | //#include <gtest/gtest.h>
//#include "interface.hh"
//#include "../mock_fooable.hh"
//#include "../util.hh"
//using Fooable = Basic::Fooable;
//using Mock::MockFooable;
//TEST( TestBasicFooable_HeapAllocations, Empty )
//{
// auto expected_heap_allocations = 0u;
// CHECK_HEAP_ALLOC( Fooable fooable,
// ... | 29.671233 | 84 | 0.638273 | lubkoll |
a88422596f89658265ad65448671277abd428709 | 423 | hpp | C++ | libsamp/libxrpc/xmlrpc-c-1.16.29/include/xmlrpc-c/base64.hpp | olebole/voclient | abeee7783f4e84404a8c3a9646bb57f48988b24a | [
"MIT"
] | 2 | 2019-12-01T15:19:09.000Z | 2019-12-02T16:48:42.000Z | libsamp/libxrpc/xmlrpc-c-1.16.29/include/xmlrpc-c/base64.hpp | mjfitzpatrick/voclient | 3264c0df294cecc518e5c6a7e6b2aba3f1c76373 | [
"MIT"
] | 1 | 2019-11-30T13:48:50.000Z | 2019-12-02T19:40:25.000Z | libsamp/libxrpc/xmlrpc-c-1.16.29/include/xmlrpc-c/base64.hpp | mjfitzpatrick/voclient | 3264c0df294cecc518e5c6a7e6b2aba3f1c76373 | [
"MIT"
] | null | null | null | #ifndef XMLRPC_BASE64_HPP_INCLUDED
#define XMLRPC_BASE64_HPP_INCLUDED
#include <string>
#include <vector>
namespace xmlrpc_c {
enum newlineCtl {NEWLINE_NO, NEWLINE_YES};
std::string
base64FromBytes(
std::vector<unsigned char> const& bytes,
xmlrpc_c::newlineCtl const newlineCtl = xmlrpc_c::NEWLINE_YE... | 16.269231 | 74 | 0.754137 | olebole |
a885f6f314b0365739ff6bfbe9cfb9a4a8394f54 | 962 | hpp | C++ | CodeRed/Vulkan/VulkanSwapChain.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 34 | 2019-09-11T09:12:16.000Z | 2022-02-13T12:50:25.000Z | CodeRed/Vulkan/VulkanSwapChain.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 7 | 2019-09-22T14:21:26.000Z | 2020-03-24T10:36:20.000Z | CodeRed/Vulkan/VulkanSwapChain.hpp | LinkClinton/Code-Red | 491621144aba559f068c7f91d71e3d0d7c87761e | [
"MIT"
] | 6 | 2019-10-21T18:05:55.000Z | 2021-04-22T05:07:30.000Z | #pragma once
#include "../Interface/GpuSwapChain.hpp"
#include "VulkanUtility.hpp"
#ifdef __ENABLE__VULKAN__
namespace CodeRed {
class VulkanSwapChain final : public GpuSwapChain {
public:
explicit VulkanSwapChain(
const std::shared_ptr<GpuLogicalDevice>& device,
const std::shared_ptr<GpuCommandQueue>& qu... | 21.863636 | 76 | 0.740125 | LinkClinton |
a888391d77c4bf5c0886e107f0b4b35c0415904b | 3,011 | hpp | C++ | include/jbkernel/IVoidEthernet.hpp | JohnnyB1290/jblib-platform-abstract-jbkernel | 6e9e3e26e0ea4cbfdffc5cdde30e64ae78dc82a7 | [
"Apache-2.0"
] | null | null | null | include/jbkernel/IVoidEthernet.hpp | JohnnyB1290/jblib-platform-abstract-jbkernel | 6e9e3e26e0ea4cbfdffc5cdde30e64ae78dc82a7 | [
"Apache-2.0"
] | null | null | null | include/jbkernel/IVoidEthernet.hpp | JohnnyB1290/jblib-platform-abstract-jbkernel | 6e9e3e26e0ea4cbfdffc5cdde30e64ae78dc82a7 | [
"Apache-2.0"
] | null | null | null | /**
* @file
* @brief Void Ethernet Interface
*
*
* @note
* Copyright © 2019 Evgeniy Ivanov. Contacts: <strelok1290@gmail.com>
* All rights reserved.
* @note
* 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 ... | 29.23301 | 94 | 0.756891 | JohnnyB1290 |
a888f5426dbaf33bdc3f32567acf49c1dd5e918a | 10,364 | cpp | C++ | Remove_bad_split_good/Assign05P1.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Remove_bad_split_good/Assign05P1.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | Remove_bad_split_good/Assign05P1.cpp | awagsta/Data-Structures-and-Algorithms | d32dc118ff7392421dd61c0ff8cca0eebb27747a | [
"MIT"
] | null | null | null | #include "llcpInt.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
void SeedRand();
int BoundedRandomInt(int lowerBound, int upperBound);
int ListLengthCheck(Node* head, int whatItShouldBe);
bool match(Node* head, const int procInts[], int procSize);
void PruneArray(int a[], int& size,... | 31.987654 | 123 | 0.489579 | awagsta |
a88bc31a83c5f97d81192f7d0a59b0b995720750 | 720 | cpp | C++ | 1-FMT_IO/number-comparer.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | 1-FMT_IO/number-comparer.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | 1-FMT_IO/number-comparer.cpp | lotcz/PJC_ukoly | 33d4c8b32c78b6a0df26e05c47fef840aa08cfe3 | [
"MIT"
] | null | null | null | #include "number-comparer.hpp"
#include <iostream>
#include <stdexcept>
#include <sstream>
/**
* return true if str1 is bigger than str2.
*/
bool NumberComparer::compare(std::string& str1, std::string& str2) {
if (str1.length() > str2.length()) {
return true;
} else if (str1.length() < str2.length()) {
ret... | 17.560976 | 68 | 0.551389 | lotcz |
a897a7eb67ba1ca897b7a4239b86136bb047b69d | 464 | cpp | C++ | main/simplified-chess-engine/simplified-chess-engine-note.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/simplified-chess-engine/simplified-chess-engine-note.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | main/simplified-chess-engine/simplified-chess-engine-note.cpp | EliahKagan/old-practice-snapshot | 1b53897eac6902f8d867c8f154ce2a489abb8133 | [
"0BSD"
] | null | null | null | // move southwest
for (auto ii = i, jj = j, d = std::min(i, j); d != 0u; --d) {
if (board_[--ii][--jj] == Object::empty) {
if (try_move(i, j, ii, jj)) return true;
} else {
if (!belongs_to(player_, board_[ii][jj])
&& try... | 38.666667 | 69 | 0.392241 | EliahKagan |
a89889a31d8cf760da02d84a186e39e997b683af | 17,960 | cpp | C++ | src/common/settings.cpp | linquize/cppan | 014d9604183360dfa0628f5ec71198b57f89d9fc | [
"Apache-2.0"
] | null | null | null | src/common/settings.cpp | linquize/cppan | 014d9604183360dfa0628f5ec71198b57f89d9fc | [
"Apache-2.0"
] | null | null | null | src/common/settings.cpp | linquize/cppan | 014d9604183360dfa0628f5ec71198b57f89d9fc | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2016-2017, Egor Pugin
*
* 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 agree... | 29.636964 | 127 | 0.619488 | linquize |
a899d8c1bf83a99b830acff1dad1e2b64c4eeba4 | 2,987 | hpp | C++ | modules/encode/src/video/video_stream/video_stream.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | null | null | null | modules/encode/src/video/video_stream/video_stream.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | null | null | null | modules/encode/src/video/video_stream/video_stream.hpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2020] by Cambricon, Inc. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 31.776596 | 112 | 0.694342 | HFauto |
a89a3303c865f25d9aaeefc2ff9659cc08253660 | 2,035 | cpp | C++ | Daemon/ydotoold.cpp | StoneDot/ydotool | cf38f107bb998e938cdf8cd5cd5eafb88739a414 | [
"MIT"
] | null | null | null | Daemon/ydotoold.cpp | StoneDot/ydotool | cf38f107bb998e938cdf8cd5cd5eafb88739a414 | [
"MIT"
] | null | null | null | Daemon/ydotoold.cpp | StoneDot/ydotool | cf38f107bb998e938cdf8cd5cd5eafb88739a414 | [
"MIT"
] | null | null | null | /*
This file is part of ydotool.
Copyright (C) 2018-2019 ReimuNotMoe
This program is free software: you can redistribute it and/or modify
it under the terms of the MIT License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied wa... | 23.662791 | 113 | 0.653071 | StoneDot |
a89b9d3fecc3cb13ea796b2a462af7d2ae414ca2 | 331 | cpp | C++ | Unreal4/FogOfWar/UnchartedWaters/Source/unchartedwaters/UI/UWGameHUD.cpp | fangguanya/study | 4e0ae19d97c5665208657fdb280bd2c25ce05190 | [
"MIT"
] | null | null | null | Unreal4/FogOfWar/UnchartedWaters/Source/unchartedwaters/UI/UWGameHUD.cpp | fangguanya/study | 4e0ae19d97c5665208657fdb280bd2c25ce05190 | [
"MIT"
] | null | null | null | Unreal4/FogOfWar/UnchartedWaters/Source/unchartedwaters/UI/UWGameHUD.cpp | fangguanya/study | 4e0ae19d97c5665208657fdb280bd2c25ce05190 | [
"MIT"
] | 1 | 2022-03-08T01:36:39.000Z | 2022-03-08T01:36:39.000Z | #pragma once
// !< All right is reserved by HW-Storm Game Studio, Even not mentioned clearly with signature.
// !< This is not a free ware, Please do-not copy it outside of HW-Storm Game Studio
// !< File : UWGameState
// !< Date : 2/27/2017 12:03:53 PM
// !< Author : fanggang
#include "unchartedwaters.h"
#include "UW... | 33.1 | 95 | 0.700906 | fangguanya |
a89bd2a83e044b1bcaab8b2b6b77ecf6d8ca80bd | 2,197 | cc | C++ | src/base-element.cc | banetl/bson-parser | b5c15c1f10863d7e4ea2aa6fc07188728ed2de04 | [
"MIT"
] | null | null | null | src/base-element.cc | banetl/bson-parser | b5c15c1f10863d7e4ea2aa6fc07188728ed2de04 | [
"MIT"
] | null | null | null | src/base-element.cc | banetl/bson-parser | b5c15c1f10863d7e4ea2aa6fc07188728ed2de04 | [
"MIT"
] | 1 | 2018-04-05T11:53:23.000Z | 2018-04-05T11:53:23.000Z | #include <map>
#include <string>
#include "base-element.hh"
#include "utils.hh"
namespace bson
{
BaseElement::BaseElement(BaseElement::Type type, const std::string key)
: type_(type),
key_(key)
{
}
std::string BaseElement::get_type_string(BaseElement::Type e) const
{
co... | 35.435484 | 75 | 0.543013 | banetl |
a89c4847dfe0405d41b72a1e6dd932ef1b11774a | 78 | cpp | C++ | Windows/VS2017/vtkCommonDataModel/vtkCommonDataModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkCommonDataModel/vtkCommonDataModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | Windows/VS2017/vtkCommonDataModel/vtkCommonDataModel.cpp | WinBuilds/VTK | 508ab2644432973724259184f2cb83aced602484 | [
"BSD-3-Clause"
] | null | null | null | #include "vtkCommonDataModel.h"
vtkCommonDataModel::vtkCommonDataModel()
{
}
| 13 | 40 | 0.794872 | WinBuilds |
a89eef6e13458396ada343fe487e175568f46273 | 1,068 | cpp | C++ | 1138/main.cpp | Heliovic/PAT_Solutions | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | 2 | 2019-03-18T12:55:38.000Z | 2019-09-07T10:11:26.000Z | 1138/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | 1138/main.cpp | Heliovic/My_PAT_Answer | 7c5dd554654045308f2341713c3e52cc790beb59 | [
"MIT"
] | null | null | null | #include <cstdio>
#define MAX_N 51200
using namespace std;
int preorder[MAX_N];
int inorder[MAX_N];
int N;
bool flag = false;
struct node
{
int data;
node* lc;
node* rc;
node() {lc = rc = NULL;}
};
node* root = NULL;
node* rebuild(int pl, int pr, int il, int ir)
{
if (pl > pr || il > ir)
... | 14.630137 | 52 | 0.449438 | Heliovic |
a89fcd5e438d7336e0b0c8500f12c62691943fd9 | 3,043 | cc | C++ | dali/operators/audio/mfcc/mfcc_test.cc | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 3,967 | 2018-06-19T04:39:09.000Z | 2022-03-31T10:57:53.000Z | dali/operators/audio/mfcc/mfcc_test.cc | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 3,494 | 2018-06-21T07:09:58.000Z | 2022-03-31T19:44:51.000Z | dali/operators/audio/mfcc/mfcc_test.cc | cyyever/DALI | e2b2d5a061da605e3e9e681017a7b2d53fe41a62 | [
"ECL-2.0",
"Apache-2.0"
] | 531 | 2018-06-19T23:53:10.000Z | 2022-03-30T08:35:59.000Z | // Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | 33.43956 | 83 | 0.706211 | cyyever |
a8a14c7d3df92eedec7c0ef7250beb0ab8f8eb30 | 1,840 | cc | C++ | chrome_frame/plugin_url_request.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | chrome_frame/plugin_url_request.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | chrome_frame/plugin_url_request.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.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 "chrome_frame/plugin_url_request.h"
#include "chrome/common/automation_messages.h"
PluginUrlRequest::PluginUrlRequest()
: delegate_(NUL... | 31.724138 | 77 | 0.729348 | Scopetta197 |
a8a15dd1bd099b9a6edfeeb0e0d7f1e8fe317f19 | 93 | hpp | C++ | lib/hwlib-extra/hwlib-extra.hpp | Fusion86/gesture-gloves | 17ebff2c7ea63cffd4f78e9d7ec35a004cb457e2 | [
"MIT"
] | null | null | null | lib/hwlib-extra/hwlib-extra.hpp | Fusion86/gesture-gloves | 17ebff2c7ea63cffd4f78e9d7ec35a004cb457e2 | [
"MIT"
] | null | null | null | lib/hwlib-extra/hwlib-extra.hpp | Fusion86/gesture-gloves | 17ebff2c7ea63cffd4f78e9d7ec35a004cb457e2 | [
"MIT"
] | null | null | null | #pragma once
#include <hwlib.hpp>
hwlib::ostream& operator<<(hwlib::ostream& os, float f);
| 15.5 | 56 | 0.698925 | Fusion86 |
a8a1843d2251bfd8946be5202b9fc309288531db | 2,315 | hpp | C++ | src/seal/kernel/sum_seal.hpp | EvonneH/he-transformer | 85b3b629e46a25795ffcd913c8c5ffe7e4d50afc | [
"Apache-2.0"
] | null | null | null | src/seal/kernel/sum_seal.hpp | EvonneH/he-transformer | 85b3b629e46a25795ffcd913c8c5ffe7e4d50afc | [
"Apache-2.0"
] | null | null | null | src/seal/kernel/sum_seal.hpp | EvonneH/he-transformer | 85b3b629e46a25795ffcd913c8c5ffe7e4d50afc | [
"Apache-2.0"
] | null | null | null | //*****************************************************************************
// Copyright 2018-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://w... | 39.237288 | 80 | 0.657451 | EvonneH |
a8a36661456c5bf9ba950af734daceb336b578d5 | 16,767 | cpp | C++ | ace/tao/tests/rtcorba/RTMutex/server.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/tao/tests/rtcorba/RTMutex/server.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/tao/tests/rtcorba/RTMutex/server.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // server.cpp,v 1.7 2001/06/12 18:58:41 fhunleth Exp
#include "tao/corba.h"
#include "tao/RTCORBA/RTCORBA.h"
#include "ace/Thread_Manager.h"
#include "ace/High_Res_Timer.h"
#include "ace/Get_Opt.h"
static int test_try_lock_flag =
#if defined (ACE_HAS_MUTEX_TIMEOUTS) && !defined (ACE_HAS_WTHREADS)
1;
#else
... | 29.109375 | 107 | 0.532534 | tharindusathis |
a8a521f777439850ad9f7a57b50d90c80a2093c7 | 10,656 | cc | C++ | ui/gl/delegated_ink_point_renderer_gpu_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | ui/gl/delegated_ink_point_renderer_gpu_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | ui/gl/delegated_ink_point_renderer_gpu_unittest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 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 "ui/gl/delegated_ink_point_renderer_gpu.h"
#include <memory>
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
#include... | 40.51711 | 80 | 0.730199 | DamieFC |
a8a73509cf5477194e49a6c65a2499eddbe23dd0 | 4,720 | cc | C++ | src/shared/load_data_command.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | src/shared/load_data_command.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | src/shared/load_data_command.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | /*
* Copyright 2013 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of co... | 30.849673 | 83 | 0.718856 | schinmayee |
a8a77df15ad77dd3277bb2ca4dc8a1e6e20d0ab2 | 9,893 | cc | C++ | android_webview/browser/hardware_renderer.cc | hokein/chromium | 69328672dd0c5b93e0b65fc344feb11bbdc37b6b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-04-27T20:21:55.000Z | 2019-04-27T20:21:55.000Z | android_webview/browser/hardware_renderer.cc | hokein/chromium | 69328672dd0c5b93e0b65fc344feb11bbdc37b6b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | android_webview/browser/hardware_renderer.cc | hokein/chromium | 69328672dd0c5b93e0b65fc344feb11bbdc37b6b | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "android_webview/browser/hardware_renderer.h"
#include "android_webview/browser/aw_gl_surface.h"
#include "android_webview/browser/browser_view_... | 30.253823 | 79 | 0.721722 | hokein |
a8a91abb8516aa351c075c34550896cbe193bb21 | 6,802 | cpp | C++ | src/imtjson/src/imtjson/array.cpp | martykadlcek/trading-bot | c2f34ef1e6746f02642dde3cb3d11010213f0121 | [
"MIT"
] | 7 | 2017-01-12T08:56:33.000Z | 2022-03-09T17:25:20.000Z | src/imtjson/src/imtjson/array.cpp | martykadlcek/trading-bot | c2f34ef1e6746f02642dde3cb3d11010213f0121 | [
"MIT"
] | 1 | 2017-01-19T16:25:01.000Z | 2017-01-19T16:25:01.000Z | src/imtjson/src/imtjson/array.cpp | martykadlcek/trading-bot | c2f34ef1e6746f02642dde3cb3d11010213f0121 | [
"MIT"
] | 1 | 2016-10-14T06:24:16.000Z | 2016-10-14T06:24:16.000Z | #include "array.h"
#include "arrayValue.h"
#include "object.h"
#include <time.h>
namespace json {
Array::Array(Value value): base(value),changes(value)
{
}
Array::Array() : base(AbstractArrayValue::getEmptyArray())
{
}
Array::Array(const std::initializer_list<Value> &v) {
reserve(v.size());
for (auto &&x ... | 21.593651 | 91 | 0.636136 | martykadlcek |
a8a9a9b0eab95164006e56947f358a6338c08fac | 7,014 | hpp | C++ | mesp/mesp_inner.hpp | KuceraMartin/mesp-fpt | 295a6a65ba5aedde775eb57805d7a74124e63c66 | [
"MIT"
] | null | null | null | mesp/mesp_inner.hpp | KuceraMartin/mesp-fpt | 295a6a65ba5aedde775eb57805d7a74124e63c66 | [
"MIT"
] | null | null | null | mesp/mesp_inner.hpp | KuceraMartin/mesp-fpt | 295a6a65ba5aedde775eb57805d7a74124e63c66 | [
"MIT"
] | null | null | null | #ifndef IMPL_MESP_INNER_HPP
#define IMPL_MESP_INNER_HPP
#include <boost/dynamic_bitset.hpp>
#include <queue>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "../common/common.hpp"
#include "../common/graph.hpp"
#include "constrained_set_cover.hpp"
class mesp_inner {
publ... | 22.699029 | 152 | 0.550613 | KuceraMartin |
a8aefe93bfad9ad7ea0f6ba41d5a8a505d0ab170 | 271 | hh | C++ | src/state/secondary_variable_field_evaluator_fromfunction_reg.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/state/secondary_variable_field_evaluator_fromfunction_reg.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/state/secondary_variable_field_evaluator_fromfunction_reg.hh | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | #include "secondary_variable_field_evaluator_fromfunction.hh"
namespace Amanzi {
Utils::RegisteredFactory<FieldEvaluator,SecondaryVariableFieldEvaluatorFromFunction> SecondaryVariableFieldEvaluatorFromFunction::fac_("secondary variable from function");
} // namespace
| 33.875 | 171 | 0.867159 | fmyuan |
a8afd9a3901aeb387f0d1d3bb52b34b43906382b | 18,919 | cc | C++ | QFSClient/qfs_client_implementation.cc | aristanetworks/quantumfs | 4636946c38db75f7d1034b626a3f92b0dd77fbe0 | [
"Apache-2.0"
] | 3 | 2019-02-23T02:01:54.000Z | 2019-09-24T16:29:26.000Z | QFSClient/qfs_client_implementation.cc | aristanetworks/quantumfs | 4636946c38db75f7d1034b626a3f92b0dd77fbe0 | [
"Apache-2.0"
] | null | null | null | QFSClient/qfs_client_implementation.cc | aristanetworks/quantumfs | 4636946c38db75f7d1034b626a3f92b0dd77fbe0 | [
"Apache-2.0"
] | 2 | 2019-11-22T01:18:54.000Z | 2020-04-19T01:27:16.000Z | // Copyright (c) 2016 Arista Networks, Inc.
// Use of this source code is governed by the Apache License 2.0
// that can be found in the COPYING file.
#include "QFSClient/qfs_client_implementation.h"
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <jansso... | 24.828084 | 83 | 0.69343 | aristanetworks |
a8b165b4934772d0c528880b4800c6b25ea181f7 | 352 | cpp | C++ | files/mnem_gen_abacaba.cpp | kborozdin/palindromic-length | 2fad58e82b5cc079bfceb9e782b7e2a8ee4306d2 | [
"MIT"
] | null | null | null | files/mnem_gen_abacaba.cpp | kborozdin/palindromic-length | 2fad58e82b5cc079bfceb9e782b7e2a8ee4306d2 | [
"MIT"
] | null | null | null | files/mnem_gen_abacaba.cpp | kborozdin/palindromic-length | 2fad58e82b5cc079bfceb9e782b7e2a8ee4306d2 | [
"MIT"
] | null | null | null | // abacaba
#include <stdio.h>
#include <string.h>
#define MAX 100000
char str[MAX];
int main(int argc,char *argv[]) {
int n,k,i;
sscanf(argv[1],"%d",&n);
str[0]='a';
k=1;
char c='a';
for(;n>1;--n) {
str[k]=++c;
for(i=0;i<k;++i)
str[k+1+i]=str[i];
k=k+k+1;
}
print... | 14.666667 | 34 | 0.465909 | kborozdin |
a8b269f1eddb55832cddc194dcb7ca705ca1e3d4 | 644 | hpp | C++ | Notemania/include/Screen.hpp | lunacys/Notemania | fcf314ea37fa3f5aa0ca7817708d0b5e8ec171ba | [
"MIT"
] | 1 | 2017-06-27T09:38:45.000Z | 2017-06-27T09:38:45.000Z | Notemania/include/Screen.hpp | lunacys/Notemania | fcf314ea37fa3f5aa0ca7817708d0b5e8ec171ba | [
"MIT"
] | 1 | 2017-06-29T16:31:41.000Z | 2017-06-29T16:31:41.000Z | Notemania/include/Screen.hpp | lunacys/Notemania | fcf314ea37fa3f5aa0ca7817708d0b5e8ec171ba | [
"MIT"
] | 3 | 2017-06-27T09:52:19.000Z | 2017-07-20T13:35:12.000Z | #ifndef NOMA_SCREEN_HPP_
#define NOMA_SCREEN_HPP_
#include <string>
namespace noma
{
class IScreenManager;
class Screen
{
public:
Screen* find_screen();
Screen* find_screen(const std::string& name);
void show(const std::string& name, bool hideThis);
void show();
... | 16.512821 | 58 | 0.607143 | lunacys |
a8b4b00360a361a9ab20ec12fc0a4f1669270887 | 1,413 | cpp | C++ | src/main.cpp | OpenGene/pecheck | e0ee9e4a7b43a429c520e7620b29673cbd71abcc | [
"MIT"
] | 8 | 2018-07-27T05:57:33.000Z | 2022-01-19T10:07:26.000Z | src/main.cpp | KimBioInfoStudio/pecheck | e0ee9e4a7b43a429c520e7620b29673cbd71abcc | [
"MIT"
] | 1 | 2019-08-01T12:54:33.000Z | 2019-08-02T00:09:43.000Z | src/main.cpp | KimBioInfoStudio/pecheck | e0ee9e4a7b43a429c520e7620b29673cbd71abcc | [
"MIT"
] | 2 | 2019-05-21T05:38:00.000Z | 2020-10-14T13:56:23.000Z | #include <stdio.h>
#include <time.h>
#include "cmdline.h"
#include "common.h"
#include "options.h"
#include "unittest.h"
#include <sstream>
#include "pecheck.h"
#include "util.h"
string command;
int main(int argc, char* argv[]){
// display version info if no argument is given
if(argc == 1) {
cout << "... | 24.789474 | 111 | 0.561217 | OpenGene |
a8b65727aab1d85755f8257aad436a6bbbb7b5eb | 3,712 | cpp | C++ | BasicBMPDiff/diff-PNG.cpp | kolmoblocks/imageexpander | 661cc9761465910dec2859c9195fac68765b2cb4 | [
"Zlib"
] | 2 | 2019-02-19T20:55:33.000Z | 2019-04-03T21:01:24.000Z | BasicBMPDiff/diff-PNG.cpp | kolmoblocks/imageexpander | 661cc9761465910dec2859c9195fac68765b2cb4 | [
"Zlib"
] | null | null | null | BasicBMPDiff/diff-PNG.cpp | kolmoblocks/imageexpander | 661cc9761465910dec2859c9195fac68765b2cb4 | [
"Zlib"
] | null | null | null | #include "lodepng.h"
#include <iostream>
using namespace std;
unsigned int gcd(unsigned int u, unsigned int v)
{
// simple cases (termination)
if (u == v)
return u;
if (u == 0)
return v;
if (v == 0)
return u;
// look for factors of 2
if (~u & 1) // u is even
{
... | 36.752475 | 163 | 0.625808 | kolmoblocks |
a8b88121050448fe8c94270714dd59868be40852 | 452 | cpp | C++ | Tests/Experiments/Sources/MemFunc.cpp | Anonymus-Player/HackSolutions | 7d865de8ec06bb098a3a11bd6328faaaf96dc1df | [
"MIT"
] | 33 | 2020-11-20T14:58:25.000Z | 2022-03-04T10:04:08.000Z | Tests/Experiments/Sources/MemFunc.cpp | Anonymus-Player/HackSolutions | 7d865de8ec06bb098a3a11bd6328faaaf96dc1df | [
"MIT"
] | 8 | 2021-01-05T23:18:32.000Z | 2022-02-22T18:25:37.000Z | Tests/Experiments/Sources/MemFunc.cpp | Anonymus-Player/HackSolutions | 7d865de8ec06bb098a3a11bd6328faaaf96dc1df | [
"MIT"
] | 6 | 2021-01-05T22:02:57.000Z | 2022-02-22T18:34:22.000Z | #include <TypeTraits.hpp>
template <typename T>
struct TestStruct
{
T* data = nullptr;
hsd::usize sz = 0;
TestStruct(T* ptr, hsd::usize size)
: data{ptr}, sz{size}
{}
T* begin()
{
return data;
}
T* end()
{
return data + sz;
}
};
template <typename T>
... | 13.69697 | 48 | 0.553097 | Anonymus-Player |
a8bb07fe1da63d2f5d30853b9fc90a29e67dff58 | 11,170 | cpp | C++ | libAuto/main.cpp | fbergmann/auto-sbml | effb04e17405949aa6cbb596f3fd38b22cff3b36 | [
"Unlicense"
] | 1 | 2020-02-15T01:09:18.000Z | 2020-02-15T01:09:18.000Z | libAuto/main.cpp | fbergmann/auto-sbml | effb04e17405949aa6cbb596f3fd38b22cff3b36 | [
"Unlicense"
] | null | null | null | libAuto/main.cpp | fbergmann/auto-sbml | effb04e17405949aa6cbb596f3fd38b22cff3b36 | [
"Unlicense"
] | null | null | null |
#include "auto_f2c.h"
#include "auto_c.h"
int AUTO_main(int argc,char *argv[]);
#ifdef WIN32 /* @@edc: added for windows getopt */
extern char *optarg;
int getopt(int nargc, char * const *nargv, const char *ostr);
#endif
#ifdef FLOATING_POINT_TRAP
#include <fpu_control.h>
/* This is a x86 specific function only us... | 25.444191 | 107 | 0.644852 | fbergmann |
a8bdd701da715f8ddec5009a55759eeec5710eef | 648 | cpp | C++ | lab11_9_1question/lab11_9_1/lab11_9_1.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | lab11_9_1question/lab11_9_1/lab11_9_1.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | lab11_9_1question/lab11_9_1/lab11_9_1.cpp | wjingzhe/CPP_lab | 081ba3612c2d96ffd074061ca1800b7f31486c37 | [
"MIT"
] | null | null | null | // lab11_9_1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
#include<iostream>
#include<fstream>
using namespace std;
void main() {
ofstream file;
file.open("input.txt");
file<<"aaaaaaaa\nbbbbbbbb\ncccccccc";
file.close();
... | 14.4 | 71 | 0.591049 | wjingzhe |
a8bdf0cb01d14fe0d613c5aadc67c00c0cbf7a4d | 1,491 | hpp | C++ | System/include/Switch/System/IO/WatcherChangeTypes.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 4 | 2021-10-14T01:43:00.000Z | 2022-03-13T02:16:08.000Z | System/include/Switch/System/IO/WatcherChangeTypes.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | null | null | null | System/include/Switch/System/IO/WatcherChangeTypes.hpp | kkptm/CppLikeCSharp | b2d8d9da9973c733205aa945c9ba734de0c734bc | [
"MIT"
] | 2 | 2022-03-13T02:16:06.000Z | 2022-03-14T14:32:57.000Z | /// @file
/// @brief Contains Switch::System::IO::WatcherChangeTypes enum.
#pragma once
#include <Switch/As.hpp>
#include <Switch/System/EventArgs.hpp>
#include <Switch/System/Exception.hpp>
/// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, System, and more.
namespace Switch {
... | 46.59375 | 215 | 0.695506 | kkptm |
a8bfdb823c5e96782c15b039d0f919d295062e3a | 1,493 | cpp | C++ | d04/ex04/BocalSteroid.cpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | 5 | 2018-02-10T12:33:53.000Z | 2021-03-28T09:27:05.000Z | d04/ex04/BocalSteroid.cpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | null | null | null | d04/ex04/BocalSteroid.cpp | ncoden/42_CPP_pool | 9f2d9aa030b65e3ad967086bff97e80e23705a29 | [
"Apache-2.0"
] | 6 | 2017-11-25T17:34:43.000Z | 2020-12-20T12:00:04.000Z | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* BocalSteroid.cpp :+: :+: :+: ... | 29.27451 | 80 | 0.352981 | ncoden |
a8c077c12d6da2d3d73a0234c8dd362c44040fe6 | 4,126 | hpp | C++ | xr3core/h/xr/strings/stringutils.hpp | zyndor/xrhodes | 15017c2ba6499b19e1dd327608ffb44dbaba7a4e | [
"BSD-2-Clause"
] | 7 | 2018-11-13T09:44:56.000Z | 2022-01-12T02:22:41.000Z | xr3core/h/xr/strings/stringutils.hpp | zyndor/xrhodes | 15017c2ba6499b19e1dd327608ffb44dbaba7a4e | [
"BSD-2-Clause"
] | 2 | 2018-10-30T08:19:02.000Z | 2018-12-31T18:48:13.000Z | xr3core/h/xr/strings/stringutils.hpp | zyndor/xrhodes | 15017c2ba6499b19e1dd327608ffb44dbaba7a4e | [
"BSD-2-Clause"
] | null | null | null | #ifndef XR_STRINGUTILS_HPP
#define XR_STRINGUTILS_HPP
//==============================================================================
//
// XRhodes
//
// copyright (c) Gyorgy Straub. All rights reserved.
//
// License: https://github.com/zyndor/xrhodes#License-bsd-2-clause
//
//========================================... | 40.851485 | 83 | 0.663354 | zyndor |
a8c0fe199980d190c1b9e2178703ca920d1da278 | 18,180 | cpp | C++ | src/mame/drivers/dietgo.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/dietgo.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/dietgo.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:Bryan McPhail, David Haywood
/*
Diet Go Go
Driver by Bryan McPhail and David Haywood.
Hold both START buttons on bootup to display version notice.
Diet Go Go (Japan) DATA EAST
DE-0370-2
NAME LOCATION TYPE
-----------------------
JW-02 14M 27C512
J... | 41.793103 | 167 | 0.740484 | Robbbert |
a8c1159b3471732e1290bc1af1d285b6d70f9610 | 63 | cpp | C++ | src/Graphics/stb_image/stb_image.cpp | jkbz64/Zadymka | 16c2bf66ce6c3bbff8eeeb3fad291b2939e4a5b7 | [
"MIT"
] | 2 | 2020-03-18T16:13:04.000Z | 2021-07-30T12:18:52.000Z | src/Graphics/stb_image/stb_image.cpp | jkbz64/Zadymka | 16c2bf66ce6c3bbff8eeeb3fad291b2939e4a5b7 | [
"MIT"
] | null | null | null | src/Graphics/stb_image/stb_image.cpp | jkbz64/Zadymka | 16c2bf66ce6c3bbff8eeeb3fad291b2939e4a5b7 | [
"MIT"
] | null | null | null | #define STB_IMAGE_IMPLEMENTATION
#include "../stb/stb_image.h"
| 21 | 32 | 0.793651 | jkbz64 |
a8c381722bb1c74255fd83b43e9432d36c56ee35 | 3,068 | hh | C++ | TrkBase/TrkModuleId.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkModuleId.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | TrkBase/TrkModuleId.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: TrkModuleId.hh,v 1.3 2007/02/05 22:16:38 brownd Exp $
//
// Description:
// Trivial class to identify modules used in tracking.
// Environment:
// Software developed for the BaBar Detector... | 36.52381 | 92 | 0.70339 | brownd1978 |
a8c8c88328a9de59b535c4606e69b5fdc6de8b99 | 399 | cpp | C++ | App/Source/ECS/System/Render/SpriteRendererSystem.cpp | Clymiaru/GDPARCM_InteractiveLoadingScreen | 20b6de0719ab3bd0e50efbbc792470826de8e7f1 | [
"MIT"
] | null | null | null | App/Source/ECS/System/Render/SpriteRendererSystem.cpp | Clymiaru/GDPARCM_InteractiveLoadingScreen | 20b6de0719ab3bd0e50efbbc792470826de8e7f1 | [
"MIT"
] | null | null | null | App/Source/ECS/System/Render/SpriteRendererSystem.cpp | Clymiaru/GDPARCM_InteractiveLoadingScreen | 20b6de0719ab3bd0e50efbbc792470826de8e7f1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "SpriteRendererSystem.h"
SpriteRendererSystem::SpriteRendererSystem()
{
}
SpriteRendererSystem::~SpriteRendererSystem()
{
}
void SpriteRendererSystem::Render(sf::RenderWindow& window)
{
for (auto* component : m_SpriteRendererComponentList)
{
auto transform = component->GetTransform();
... | 19 | 59 | 0.754386 | Clymiaru |
a8d1dcb69247bb3c4f6d515cf8603296d5587cfd | 1,995 | cpp | C++ | hiro/qt/action/menu-radio-item.cpp | mp-lee/higan | c38a771f2272c3ee10fcb99f031e982989c08c60 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | hiro/qt/action/menu-radio-item.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | hiro/qt/action/menu-radio-item.cpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | #if defined(Hiro_MenuRadioItem)
namespace hiro {
auto pMenuRadioItem::construct() -> void {
qtMenuRadioItem = new QtMenuRadioItem(*this);
qtActionGroup = new QActionGroup(nullptr);
qtMenuRadioItem->setCheckable(true);
qtMenuRadioItem->setActionGroup(qtActionGroup);
qtMenuRadioItem->setChecked(true);
qtMen... | 25.253165 | 85 | 0.66416 | mp-lee |
a8d3aed4aa014d868ef457e9b6be1f6f89f6772a | 1,093 | hpp | C++ | headers/MyFunctions.hpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | 3 | 2015-07-03T20:14:00.000Z | 2021-02-02T13:45:31.000Z | headers/MyFunctions.hpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | null | null | null | headers/MyFunctions.hpp | DetlevCM/chemical-kinetics-solver | 7010fd6c72c29a0d912ad0c353ff13a5b643cc04 | [
"MIT"
] | 4 | 2017-11-09T19:49:18.000Z | 2020-08-04T18:29:28.000Z |
#ifndef _MY_OTHER_FUNCTIONS_
#define _MY_OTHER_FUNCTIONS_
//*** Define some of my random hard to classify functions ***//
void Process_User_Input(
FileNames& filenames,
vector<string> User_Inputs
);
void Get_Mechanism(
string filename ,
Reaction_Mechanism& reaction_mechanism
);
vector< double > Get_Delta... | 27.325 | 129 | 0.778591 | DetlevCM |
a8d405a417d9ccd8e5ed083a3bdff37c310de5a4 | 1,427 | cpp | C++ | ace/tao/tao_idl/be/be_visitor_root/any_op.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/tao/tao_idl/be/be_visitor_root/any_op.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/tao/tao_idl/be/be_visitor_root/any_op.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | //
// any_op.cpp,v 1.2 1998/08/03 17:39:59 gonzo Exp
//
// ============================================================================
//
// = LIBRARY
// TAO IDL
//
// = FILENAME
// any_op.cpp
//
// = DESCRIPTION
// Visitor generating code for the Any operators for types defined in Root's
// ... | 25.035088 | 85 | 0.480028 | tharindusathis |
a8d942a2fb1a8ef5b8f33043378af3d4b7bc2422 | 1,125 | hpp | C++ | src/lib/interface/ChoixReseau.hpp | uvsq21603504/in608-tcp_ip_simulation | 95cedcbe7dab5991b84e182297b6ada3ae24679b | [
"MIT"
] | null | null | null | src/lib/interface/ChoixReseau.hpp | uvsq21603504/in608-tcp_ip_simulation | 95cedcbe7dab5991b84e182297b6ada3ae24679b | [
"MIT"
] | null | null | null | src/lib/interface/ChoixReseau.hpp | uvsq21603504/in608-tcp_ip_simulation | 95cedcbe7dab5991b84e182297b6ada3ae24679b | [
"MIT"
] | null | null | null | #ifndef CHOIXRESEAU_H
#define CHOIXRESEAU_H
#include <QApplication>
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QComboBox>
#include <QSpinBox>
#include <QMessageBox>
class ChoixReseau : public QVBoxLayout
{
Q_OBJECT
private :
// Attributs
QComboBox*... | 20.089286 | 40 | 0.639111 | uvsq21603504 |
a8dbec634780730c6ded9a899e8c74607aed8677 | 2,394 | cc | C++ | folding_libs/MELIBS/arpack++/examples/band/complex/bcompreg.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | 1 | 2016-05-16T02:27:46.000Z | 2016-05-16T02:27:46.000Z | arpack++/examples/band/complex/bcompreg.cc | red2901/sandbox | fae6c1624cc9957593d030f3b0306dbded29f0a2 | [
"MIT"
] | null | null | null | arpack++/examples/band/complex/bcompreg.cc | red2901/sandbox | fae6c1624cc9957593d030f3b0306dbded29f0a2 | [
"MIT"
] | null | null | null | /*
ARPACK++ v1.2 2/18/2000
c++ interface to ARPACK code.
MODULE BCompReg.cc.
Example program that illustrates how to solve a complex standard
eigenvalue problem in regular mode using the ARluCompStdEig class.
1) Problem description:
In this example we try to solve A*x = x*lambda in regular mo... | 28.164706 | 78 | 0.620301 | parasol-ppl |
a8df4e4843a9caae2341d5511806be09178b1caa | 2,702 | hh | C++ | asv_wave_sim_gazebo_plugins/include/asv_wave_sim_gazebo_plugins/Algorithm.hh | minzlee/asv_wave_sim | d9426e1b7b75d43f0c1bd3201e6ba62e54af968f | [
"Apache-2.0"
] | 25 | 2019-05-29T04:55:19.000Z | 2022-03-18T19:07:07.000Z | asv_wave_sim_gazebo_plugins/include/asv_wave_sim_gazebo_plugins/Algorithm.hh | minzlee/asv_wave_sim | d9426e1b7b75d43f0c1bd3201e6ba62e54af968f | [
"Apache-2.0"
] | 12 | 2019-02-14T16:26:57.000Z | 2022-03-30T19:44:33.000Z | asv_wave_sim_gazebo_plugins/include/asv_wave_sim_gazebo_plugins/Algorithm.hh | minzlee/asv_wave_sim | d9426e1b7b75d43f0c1bd3201e6ba62e54af968f | [
"Apache-2.0"
] | 11 | 2019-05-29T04:55:22.000Z | 2022-02-23T11:55:32.000Z | // Copyright (C) 2019 Rhys Mainwaring
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is dist... | 32.554217 | 92 | 0.650259 | minzlee |
a8df7a4757ddd44f3fc42950a12d2712010c532f | 630 | cpp | C++ | CCC/Stage1/96-Done/ccc96s5.cpp | zzh8829/CompetitiveProgramming | 36f36b10269b4648ca8be0b08c2c49e96abede25 | [
"MIT"
] | 1 | 2017-10-01T00:51:39.000Z | 2017-10-01T00:51:39.000Z | CCC/Stage1/96-Done/ccc96s5.cpp | zzh8829/CompetitiveProgramming | 36f36b10269b4648ca8be0b08c2c49e96abede25 | [
"MIT"
] | null | null | null | CCC/Stage1/96-Done/ccc96s5.cpp | zzh8829/CompetitiveProgramming | 36f36b10269b4648ca8be0b08c2c49e96abede25 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
int len,a[100001],b[100001];
int main()
{
int n;
scanf("%d",&n);
for(int cs=0;cs!=n;cs++)
{
int fo=0,ok=1;
cin >> len;
for(int i=0;i!=len;i++)
scanf("%d",&a[i]);
for(int i=0;i!=len;i++)
{
scanf("%d",&b[i]);
if( !fo && b[i]... | 16.153846 | 47 | 0.460317 | zzh8829 |
a8e05fb9e6cce6191951628ed578fd922dc23416 | 4,043 | cpp | C++ | systems/plants/shapes/Geometry.cpp | peteflorence/drake | 42bc694cd2371c73f79967a6a653be769935b33f | [
"BSD-3-Clause"
] | null | null | null | systems/plants/shapes/Geometry.cpp | peteflorence/drake | 42bc694cd2371c73f79967a6a653be769935b33f | [
"BSD-3-Clause"
] | null | null | null | systems/plants/shapes/Geometry.cpp | peteflorence/drake | 42bc694cd2371c73f79967a6a653be769935b33f | [
"BSD-3-Clause"
] | 1 | 2021-09-29T19:37:28.000Z | 2021-09-29T19:37:28.000Z | #include <fstream>
#include "Geometry.h"
#include "spruce.hh"
using namespace std;
using namespace Eigen;
namespace DrakeShapes
{
Geometry::Geometry() : shape(UNKNOWN) {}
Geometry::Geometry(const Geometry& other)
{
shape = other.getShape();
}
Geometry::Geometry(Shape shape) : shape(shape) {};
cons... | 24.355422 | 168 | 0.602276 | peteflorence |
a8e111523c6465fb68467a1daa5dafa19c120812 | 2,127 | cpp | C++ | src/OptimizedBvh.cpp | AndresTraks/BulletSharp | c277666667f91c58191f4cfa97f117053de679ef | [
"MIT"
] | 245 | 2015-01-02T14:11:26.000Z | 2022-03-18T08:56:36.000Z | src/OptimizedBvh.cpp | AndresTraks/BulletSharp | c277666667f91c58191f4cfa97f117053de679ef | [
"MIT"
] | 50 | 2015-01-04T22:32:21.000Z | 2021-06-08T20:26:24.000Z | src/OptimizedBvh.cpp | AndresTraks/BulletSharp | c277666667f91c58191f4cfa97f117053de679ef | [
"MIT"
] | 69 | 2015-04-03T15:38:44.000Z | 2022-01-20T14:27:30.000Z | #include "StdAfx.h"
#include "OptimizedBvh.h"
#include "StridingMeshInterface.h"
#define Native static_cast<btOptimizedBvh*>(_native)
OptimizedBvh::OptimizedBvh(btOptimizedBvh* native, bool preventDelete)
: QuantizedBvh(native, preventDelete)
{
}
OptimizedBvh::OptimizedBvh()
: QuantizedBvh(new btOpti... | 28.36 | 117 | 0.77527 | AndresTraks |
a8e13198cf7b051b3c5e3db005b77c2552950850 | 14,284 | ipp | C++ | implement/oglplus/enums/ext/nv_path_metric_query_class.ipp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 459 | 2016-03-16T04:11:37.000Z | 2022-03-31T08:05:21.000Z | implement/oglplus/enums/ext/nv_path_metric_query_class.ipp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 2 | 2016-08-08T18:26:27.000Z | 2017-05-08T23:42:22.000Z | implement/oglplus/enums/ext/nv_path_metric_query_class.ipp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 47 | 2016-05-31T15:55:52.000Z | 2022-03-28T14:49:40.000Z | // File implement/oglplus/enums/ext/nv_path_metric_query_class.ipp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/ext/nv_path_metric_query.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 Matus Chochlik.
// Distributed under... | 30.391489 | 91 | 0.810067 | Extrunder |
a8e1b70c01acc3aea8a195d5fd755ddd493f8e7b | 33,182 | cpp | C++ | benchmark/create_complex/fruit.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | benchmark/create_complex/fruit.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | benchmark/create_complex/fruit.cpp | dan-42/di | 3253bfd841d03d75f7b70c05ac3789b605337deb | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2012-2019 Kris Jusiak (kris at jusiak dot net)
//
// 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 <memory>
#include <fruit/fruit.h>
// clang-format off
struct X00 { INJECT(X00()) { }... | 99.945783 | 249 | 0.620095 | dan-42 |
a8e4cd59a6da425b7242290c995ccb6a98b1cd8e | 29,663 | cpp | C++ | core/src/main/java/site/ycsb/data_gen/Graph_gen/Graph_gen/test/test-TUndirNet.cpp | qiuhere/Bench | 80f15facb81120b754547586cf3a7e5f46ca1551 | [
"Apache-2.0"
] | 1,805 | 2015-01-06T20:01:35.000Z | 2022-03-29T16:12:51.000Z | test/test-TUndirNet.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 168 | 2015-01-07T22:57:29.000Z | 2022-03-15T01:20:24.000Z | test/test-TUndirNet.cpp | lizhaoqing/snap | 907c34aac6bcddc7c2f8efb64be76e87dd7e4ea5 | [
"BSD-3-Clause"
] | 768 | 2015-01-09T02:28:45.000Z | 2022-03-30T00:53:46.000Z | #include <gtest/gtest.h>
#include "Snap.h"
// Test the default constructor
TEST(TUndirNet, DefaultConstructor) {
PUndirNet Graph;
Graph = TUndirNet::New();
EXPECT_EQ(0,Graph->GetNodes());
EXPECT_EQ(0,Graph->GetEdges());
EXPECT_EQ(1,Graph->IsOk());
EXPECT_EQ(1,Graph->Empty());
EXPECT_EQ(0,Graph->HasFl... | 28.304389 | 89 | 0.648721 | qiuhere |
a8e53b1094cd5350671cc22b23ca5586157c2e8a | 3,698 | cpp | C++ | src/common/test/ProducerTest.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | null | null | null | src/common/test/ProducerTest.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | null | null | null | src/common/test/ProducerTest.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | null | null | null | /** Copyright (C) 2016, 2017 European Spallation Source ERIC */
#include "KafkaMocks.h"
#include <common/Producer.h>
#include <cstring>
#include <dlfcn.h>
#include <librdkafka/rdkafkacpp.h>
#include <test/TestBase.h>
#include <trompeloeil.hpp>
using trompeloeil::_;
namespace trompeloeil {
template <>
void reporter<... | 30.816667 | 71 | 0.705516 | geishm-ansto |
a8e93e2a4975a9d849ee4be319727caeecac4483 | 2,279 | hpp | C++ | stapl_release/stapl/skeletons/transformations/coarse/reduce.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/skeletons/transformations/coarse/reduce.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/stapl/skeletons/transformations/coarse/reduce.hpp | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | /*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... | 34.014925 | 77 | 0.702062 | parasol-ppl |
a8eac0177b14ec61d8697ba1dd9f9bb537287e7b | 28,744 | cpp | C++ | src/master/arducom-ftp.cpp | leomeyer/Arducom | b3570f14dda98da8d04a365eba1979831deb3c91 | [
"MIT"
] | null | null | null | src/master/arducom-ftp.cpp | leomeyer/Arducom | b3570f14dda98da8d04a365eba1979831deb3c91 | [
"MIT"
] | null | null | null | src/master/arducom-ftp.cpp | leomeyer/Arducom | b3570f14dda98da8d04a365eba1979831deb3c91 | [
"MIT"
] | null | null | null | // arducom-ftp
// Arducom file transfer ("FTP") master implementation
//
// Copyright (c) 2016 Leo Meyer, leo@leomeyer.de
// Arduino communications library
// Project page: https://github.com/leomeyer/Arducom
// License: MIT License. For details see the project page.
// required for non-ANSI function fileno
#... | 34.883495 | 172 | 0.590141 | leomeyer |
a8ee46ac398124846ee24f2ebb561886f50299ed | 1,652 | cpp | C++ | src/cylbot_map_creator/src/likelihood_field_server.cpp | rhololkeolke/eecs_600_robot_project1 | 8a4a567f436d2d26311b53cc2dcfde61d98e45e0 | [
"BSD-3-Clause"
] | null | null | null | src/cylbot_map_creator/src/likelihood_field_server.cpp | rhololkeolke/eecs_600_robot_project1 | 8a4a567f436d2d26311b53cc2dcfde61d98e45e0 | [
"BSD-3-Clause"
] | 1 | 2015-08-22T13:33:39.000Z | 2015-08-23T23:01:57.000Z | src/cylbot_map_creator/src/likelihood_field_server.cpp | rhololkeolke/eecs_600_robot_project1 | 8a4a567f436d2d26311b53cc2dcfde61d98e45e0 | [
"BSD-3-Clause"
] | null | null | null | #include <ros/ros.h>
#include <cylbot_map_creator/LikelihoodField.h>
#include <yaml-cpp/yaml.h>
#include <vector>
#include <string>
int main(int argc, char** argv)
{
ros::init(argc, argv, "likelihood_field_server");
ros::NodeHandle nh;
ros::NodeHandle priv_nh("~");
std::string field_file = "";
priv_nh.getParam(... | 41.3 | 108 | 0.70339 | rhololkeolke |
a8f2015b9985470a086cc872834690a361108657 | 4,570 | cpp | C++ | apps/2d/mhd/rotated_alfven/SetBndValues.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/2d/mhd/rotated_alfven/SetBndValues.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | apps/2d/mhd/rotated_alfven/SetBndValues.cpp | dcseal/finess | 766e583ae9e84480640c7c3b3c157bf40ab87fe4 | [
"BSD-3-Clause"
] | null | null | null | #include <cmath>
#include "IniParams.h"
#include "tensors.h"
#include "StateVars.h"
#include "app_util.h"
inline double A3_original_to_periodic(int i, int j, double A3_original){
using std::sin;
using std::cos;
double xlow = global_ini_params.get_xlow();
double ylow = global_ini_params.get_ylow()... | 27.365269 | 84 | 0.417943 | dcseal |
5ef22ff91aec9f8c9a014c91b8f85944407c0115 | 893 | cpp | C++ | src/storage/appstatedb.cpp | nunchuk-io/libnunchuk | 4d29efe25b5ba3b392ebebc31e58b43daa96560e | [
"MIT"
] | 44 | 2020-11-13T19:34:31.000Z | 2022-03-03T18:06:45.000Z | src/storage/appstatedb.cpp | nunchuk-io/libnunchuk | 4d29efe25b5ba3b392ebebc31e58b43daa96560e | [
"MIT"
] | 13 | 2020-12-03T17:27:23.000Z | 2022-03-01T02:16:28.000Z | src/storage/appstatedb.cpp | nunchuk-io/libnunchuk | 4d29efe25b5ba3b392ebebc31e58b43daa96560e | [
"MIT"
] | 7 | 2020-11-25T08:23:48.000Z | 2022-02-22T10:36:42.000Z | // Copyright (c) 2020 Enigmo
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "appstatedb.h"
namespace nunchuk {
void NunchukAppStateDb::Init() { CreateTable(); }
int NunchukAppStateDb::GetChainTip() const { return Ge... | 27.060606 | 80 | 0.764838 | nunchuk-io |
5ef539e73db3d1a9fe40c316b995530498fb6af3 | 194 | cpp | C++ | atcoder/abc116_a.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | atcoder/abc116_a.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | atcoder/abc116_a.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int n[4];
int main(){
for(int i= 0; i < 3; i++){
scanf("%d", &n[i]);
}
sort(n, n + 3);
cout << (n[0] * n[1]) / 2 << endl;
return 0;
}
| 16.166667 | 36 | 0.469072 | cosmicray001 |
5efa6dc76165da7ec08042ea40e80f0cef03ceb1 | 568 | cpp | C++ | leetcode/968. Binary Tree Cameras/s2.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/968. Binary Tree Cameras/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/968. Binary Tree Cameras/s2.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/binary-tree-cameras/
// Author: github.com/lzl124631x
// Time: O(N)
// Space: O(logN)
class Solution {
private:
int ans = 0;
int postorder(TreeNode *root) {
if (!root) return 1;
int left = postorder(root->left);
int right = postorder(root->right);
... | 27.047619 | 57 | 0.538732 | zhuohuwu0603 |
5efdd863cb351fa9f374bb229d969fbde03ea2cd | 2,918 | cc | C++ | src/third_party/starboard/rdk/shared/main_rdk.cc | rmaddali991/rdk-cobalt | b2f08a80c136be75295338aeb71895d06bb6d374 | [
"Apache-2.0"
] | 1 | 2022-01-25T21:22:47.000Z | 2022-01-25T21:22:47.000Z | src/third_party/starboard/rdk/shared/main_rdk.cc | rmaddali991/rdk-cobalt | b2f08a80c136be75295338aeb71895d06bb6d374 | [
"Apache-2.0"
] | null | null | null | src/third_party/starboard/rdk/shared/main_rdk.cc | rmaddali991/rdk-cobalt | b2f08a80c136be75295338aeb71895d06bb6d374 | [
"Apache-2.0"
] | 1 | 2021-09-14T22:35:29.000Z | 2021-09-14T22:35:29.000Z | //
// Copyright 2020 Comcast Cable Communications Management, LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | 31.717391 | 75 | 0.745716 | rmaddali991 |
6f01fdd29d35bd789567ccff1060a27e0f159cca | 1,735 | cpp | C++ | mycontainer1.cpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | mycontainer1.cpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | mycontainer1.cpp | bruennijs/ise.cppworkshop | c54a60ad3468f83aeb45b347657b3f246d7190cc | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <list>
class MoveableString
{
public:
MoveableString()
{
}
~MoveableString()
{
}
std::string m_data;
};
class Moveable
{
public:
Moveable()
{
std::cout << "Moveable" << std::endl;
this->m_data = new char[1024];
}
~Moveable()
{
std::cout << "~Moveable... | 14.338843 | 57 | 0.607493 | bruennijs |
6f0583fb92fc213e0c3ef6a0da283695a4f5f0ce | 813 | cpp | C++ | sample/read_async_temperature.cpp | uilianries/BeagleBoneBlackGPIO | bbd4137ca2b5b2e506321bf440ba87370764646b | [
"MIT"
] | 6 | 2016-03-11T16:48:16.000Z | 2021-06-05T11:38:48.000Z | sample/read_async_temperature.cpp | uilianries/BeagleBoneBlackGPIO | bbd4137ca2b5b2e506321bf440ba87370764646b | [
"MIT"
] | 9 | 2016-03-03T17:31:57.000Z | 2018-01-11T23:00:55.000Z | sample/read_async_temperature.cpp | uilianries/BeagleBoneBlackGPIO | bbd4137ca2b5b2e506321bf440ba87370764646b | [
"MIT"
] | null | null | null | /**
* \file
* \brief Give DS1820 thermal sensor as stream
*
* \author Uilian Ries <uilianries@gmail.com>
*/
#include <iostream>
#include <string>
#include <chrono>
#include <thread>
#include "bbbgpio/stream.hpp"
/**
* \brief Get temperature events
*/
struct observer {
/**
* \brief Callback to read th... | 19.357143 | 69 | 0.653137 | uilianries |
6f08ad7f772de4bac4598f6d7ae02cd456c0dc62 | 1,057 | cpp | C++ | TicTacToeMinMax/Field.cpp | SzymonOzog/TicTacToeCustomSizeMinMax | 095cf6037c23a421c1d97b93901f17d0c3562137 | [
"CC0-1.0"
] | null | null | null | TicTacToeMinMax/Field.cpp | SzymonOzog/TicTacToeCustomSizeMinMax | 095cf6037c23a421c1d97b93901f17d0c3562137 | [
"CC0-1.0"
] | null | null | null | TicTacToeMinMax/Field.cpp | SzymonOzog/TicTacToeCustomSizeMinMax | 095cf6037c23a421c1d97b93901f17d0c3562137 | [
"CC0-1.0"
] | null | null | null | #include "Field.h"
#include "WinChecker.h"
#include <cmath>
Field::Field(int side)
{
pointsNeededToWin = side < 4 ? side : 4;
fieldSide = side;
winCheckers.push_back(new RowChecker(this));
winCheckers.push_back(new ColumnChecker(this));
winCheckers.push_back(new ForwardDiagonalChecker(this));
winCheckers.push_bac... | 21.14 | 58 | 0.687796 | SzymonOzog |
6f0a32403df1da2bd17ecb83d1fd18c84ac0d6c1 | 13,696 | cpp | C++ | Src/MainLib/InterceptPluginInstance.cpp | vinjn/glintercept | f82166d3a774bfb02459f6b3ae2a03d4c9eaf64f | [
"MIT"
] | 468 | 2015-04-13T19:03:57.000Z | 2022-03-23T00:11:24.000Z | Src/MainLib/InterceptPluginInstance.cpp | vinjn/glintercept | f82166d3a774bfb02459f6b3ae2a03d4c9eaf64f | [
"MIT"
] | 12 | 2015-05-25T11:15:21.000Z | 2020-10-26T02:46:50.000Z | Src/MainLib/InterceptPluginInstance.cpp | vinjn/glintercept | f82166d3a774bfb02459f6b3ae2a03d4c9eaf64f | [
"MIT"
] | 67 | 2015-04-22T13:22:48.000Z | 2022-03-05T01:11:02.000Z | /*=============================================================================
GLIntercept - OpenGL intercept/debugging tool
Copyright (C) 2004 Damian Trebilco
Licensed under the MIT license - See Docs\license.txt for details.
=============================================================================*/
#inc... | 28.00818 | 146 | 0.58915 | vinjn |
6f0c795ecd8049a76dcd0c5679935daf5e69d2b6 | 36,870 | cpp | C++ | Code/Framework/AzToolsFramework/AzToolsFramework/UI/DocumentPropertyEditor/DocumentPropertyEditor.cpp | psy-repos-c/o3de | 42d917e4726b1cae8c39c10834b0e621c9e8300d | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzToolsFramework/AzToolsFramework/UI/DocumentPropertyEditor/DocumentPropertyEditor.cpp | psy-repos-c/o3de | 42d917e4726b1cae8c39c10834b0e621c9e8300d | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Framework/AzToolsFramework/AzToolsFramework/UI/DocumentPropertyEditor/DocumentPropertyEditor.cpp | psy-repos-c/o3de | 42d917e4726b1cae8c39c10834b0e621c9e8300d | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "DocumentPropertyEditor.h"
#include <AzQtComponents/Components/Widgets/ElidingLabel.h>
#i... | 40.295082 | 139 | 0.581747 | psy-repos-c |
6f0cf0a401c181ae1522a363c994f5dbe8b911a3 | 28,915 | cpp | C++ | src/mesh/meshblock.cpp | cnstahl/athena | 52a7ead1ee9000fe0fcc61824e26adae93fac227 | [
"BSD-3-Clause"
] | null | null | null | src/mesh/meshblock.cpp | cnstahl/athena | 52a7ead1ee9000fe0fcc61824e26adae93fac227 | [
"BSD-3-Clause"
] | null | null | null | src/mesh/meshblock.cpp | cnstahl/athena | 52a7ead1ee9000fe0fcc61824e26adae93fac227 | [
"BSD-3-Clause"
] | null | null | null | //========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... | 36.92848 | 114 | 0.602628 | cnstahl |
6f0e1bb310c5c9f5987dbe30127e725c4f8edb79 | 782 | cpp | C++ | Contests/_Archived/Old-Lab/lg1691.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Lab/lg1691.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Lab/lg1691.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int ans = 0;
void print_permutation(int n, char* P, char* A, int cur)
{
if (cur == n)
{
for (int i = 0; i < n; i++)
{
printf("%c", A[i]);
}
printf("\n");
ans++;
}
else
{
for (int i = 0; i < n; i++)
{
if (P[i] != P[i - 1])
{
int cp = 0, ca =... | 14.481481 | 57 | 0.434783 | DCTewi |
6f10b13e822c9a8c2e32cd055d52134216d77cbb | 4,190 | cc | C++ | content/shell/shell_download_manager_delegate.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | content/shell/shell_download_manager_delegate.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | content/shell/shell_download_manager_delegate.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.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 "content/shell/shell_download_manager_delegate.h"
#if defined(OS_WIN)
#include <windows.h>
#include <commdlg.h>
#endif
#include "base/bind.... | 29.716312 | 77 | 0.744153 | Scopetta197 |
6f115aa6fcd24a9e111e7cdca5e2adbf6d61a756 | 2,854 | hpp | C++ | Code/SMReaders/PrefabReader.hpp | QuestionableM/Tile-Converter | 28e86e0e3f6df5872721a7903c5e8bc2e8e73dde | [
"MIT"
] | 2 | 2022-01-08T19:12:12.000Z | 2022-01-24T09:31:08.000Z | Code/SMReaders/PrefabReader.hpp | QuestionableM/Tile-Converter | 28e86e0e3f6df5872721a7903c5e8bc2e8e73dde | [
"MIT"
] | null | null | null | Code/SMReaders/PrefabReader.hpp | QuestionableM/Tile-Converter | 28e86e0e3f6df5872721a7903c5e8bc2e8e73dde | [
"MIT"
] | 1 | 2022-01-08T19:12:16.000Z | 2022-01-08T19:12:16.000Z | #pragma once
#include "Tile/CellHeader.hpp"
#include "Tile/TilePart.hpp"
#include "Tile/Tile.hpp"
#include "Tile/Object/Prefab.h"
#include "Utils/Memory.hpp"
#include "SMReaders/PrefabFileReader.hpp"
#include "ObjectDatabase/KeywordReplacer.hpp"
#include <lz4/lz4.h>
class PrefabReader
{
PrefabReader() = default;
... | 27.180952 | 105 | 0.684303 | QuestionableM |
6f11b5c3d27f96940e8d7068c184eff7b7837b47 | 211 | cpp | C++ | CPPprogrammnng_code/C++_Code/string_to_number.cpp | Glenn-Po/LearningCandCPP | 4cd2d3386dbe6691a007c42036fb9ebe932e011e | [
"Apache-2.0"
] | null | null | null | CPPprogrammnng_code/C++_Code/string_to_number.cpp | Glenn-Po/LearningCandCPP | 4cd2d3386dbe6691a007c42036fb9ebe932e011e | [
"Apache-2.0"
] | null | null | null | CPPprogrammnng_code/C++_Code/string_to_number.cpp | Glenn-Po/LearningCandCPP | 4cd2d3386dbe6691a007c42036fb9ebe932e011e | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <conio.h>
// implements functions similar to atoi, stod, stol, atof,
int to_int(const char[])
int to_int(stringconst);
main(){
cout << "Enter a string to convert to number : \n"
}
| 21.1 | 58 | 0.701422 | Glenn-Po |
6f12f5908053b9a391a068d373417fe3ac08cb86 | 13,608 | cpp | C++ | sesame2spiner/generate_files.cpp | lanl/singularity-eos | c35669b93a492903ad4ce7a15211bd42b7c88d37 | [
"BSD-3-Clause"
] | 3 | 2021-04-14T15:08:37.000Z | 2021-06-28T16:32:19.000Z | sesame2spiner/generate_files.cpp | lanl/singularity-eos | c35669b93a492903ad4ce7a15211bd42b7c88d37 | [
"BSD-3-Clause"
] | 70 | 2021-04-15T23:08:34.000Z | 2022-03-31T17:43:18.000Z | sesame2spiner/generate_files.cpp | lanl/singularity-eos | c35669b93a492903ad4ce7a15211bd42b7c88d37 | [
"BSD-3-Clause"
] | 2 | 2021-05-21T16:59:30.000Z | 2021-08-17T20:52:38.000Z | //======================================================================
// sesame2spiner tool for converting eospac to spiner
// Author: Jonah Miller (jonahm@lanl.gov)
// © 2021. Triad National Security, LLC. All rights reserved. This
// program was produced under U.S. Government contract 89233218CNA000001
// for Los... | 41.870769 | 90 | 0.639697 | lanl |
6f190c690e6104dc25b2a3f14b4035a8f6fdaf30 | 5,486 | hpp | C++ | bst/inc/RBT.hpp | kraylas/shit-code | d0565116deacd91497722659e0151112361d90f7 | [
"MIT"
] | null | null | null | bst/inc/RBT.hpp | kraylas/shit-code | d0565116deacd91497722659e0151112361d90f7 | [
"MIT"
] | null | null | null | bst/inc/RBT.hpp | kraylas/shit-code | d0565116deacd91497722659e0151112361d90f7 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cassert>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <functional>
#include <type_traits>
#include <utility>
#include <iostream>
#include "utils.hpp"
namespace RBT {
enum class Color : std::uint8_t { RED,
BLACK };
template <t... | 24.274336 | 116 | 0.52479 | kraylas |
6f1d24ded8c40501fe66e1e7ad5b85884940a93f | 7,089 | cpp | C++ | src/std_sequence_containers.cpp | tyoungjr/Catch2Practice | 6c602b0b57edaf2299043b4ef3c11d9507ce167b | [
"MIT"
] | null | null | null | src/std_sequence_containers.cpp | tyoungjr/Catch2Practice | 6c602b0b57edaf2299043b4ef3c11d9507ce167b | [
"MIT"
] | null | null | null | src/std_sequence_containers.cpp | tyoungjr/Catch2Practice | 6c602b0b57edaf2299043b4ef3c11d9507ce167b | [
"MIT"
] | null | null | null | //
// Created by tyoun on 10/25/2021.
//
#include <catch2/catch.hpp>
#include <array>
#include <vector>
#include <utility>
#include <cstdint>
#include <iostream>
#include <unordered_set>
#include "../include/print_std_library_containers.h"
std::array<int, 10> static_array{}; // braced initialization will initialize a... | 24.277397 | 94 | 0.58217 | tyoungjr |
6f1dd9506205d4f86165f2477eb7d24aee7c6d15 | 4,176 | cpp | C++ | src/core/Window.cpp | AndrijaAda99/Bubo | 662bb8e602f18a81ea6d8f367cb697c60b3e6670 | [
"Apache-2.0"
] | null | null | null | src/core/Window.cpp | AndrijaAda99/Bubo | 662bb8e602f18a81ea6d8f367cb697c60b3e6670 | [
"Apache-2.0"
] | null | null | null | src/core/Window.cpp | AndrijaAda99/Bubo | 662bb8e602f18a81ea6d8f367cb697c60b3e6670 | [
"Apache-2.0"
] | null | null | null | #include "core/Window.h"
#include "events/MouseEvent.h"
#include "events/WindowEvent.h"
#include "events/KeyEvent.h"
namespace bubo {
Window::Window(const WindowProperties_t &windowProperties) {
init(windowProperties);
BUBO_TRACE("Window initialized!");
}
Window::~Window() {
shut... | 35.092437 | 106 | 0.610632 | AndrijaAda99 |
6f20786568fe2281ac81029ef30223df8dc9b23e | 1,665 | hpp | C++ | src/serialization/binary_or_text.hpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 12 | 2015-03-04T15:07:00.000Z | 2019-09-13T16:31:06.000Z | src/serialization/binary_or_text.hpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | null | null | null | src/serialization/binary_or_text.hpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 5 | 2017-04-22T08:16:48.000Z | 2020-07-12T03:35:16.000Z | /* $Id: binary_or_text.hpp 48153 2011-01-01 15:57:50Z mordante $ */
/*
Copyright (C) 2003 by David White <dave@whitevine.net>
Copyright (C) 2005 - 2011 by Guillaume Melquiond <guillaume.melquiond@gmail.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; ... | 30.833333 | 84 | 0.721321 | blackberry |
6f22c8dfd5a3231c0511fb03bebe73ec28be452f | 170,693 | cpp | C++ | src/Pegasus/IndicationService/tests/Subscription/Subscription.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/IndicationService/tests/Subscription/Subscription.cpp | ncultra/Pegasus-2.5 | 4a0b9a1b37e2eae5c8105fdea631582dc2333f9a | [
"MIT"
] | null | null | null | src/Pegasus/IndicationService/tests/Subscription/Subscription.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... | 35.006768 | 92 | 0.671176 | ncultra |
6f26716f8ce835e63dd95904ee486c940f3e90b7 | 4,378 | cpp | C++ | src/mod/debug/penetration.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 33 | 2016-02-18T04:27:53.000Z | 2022-01-15T18:59:53.000Z | src/mod/debug/penetration.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2018-01-10T18:41:38.000Z | 2020-10-01T13:34:53.000Z | src/mod/debug/penetration.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 14 | 2017-08-06T23:02:49.000Z | 2021-08-24T00:24:16.000Z | #include "mod.h"
#include "stub/tfplayer.h"
#include "stub/tfweaponbase.h"
#include "util/scope.h"
namespace Mod::Debug::Penetration
{
struct penetrated_target_list
{
CBaseEntity *ent; // +0x00
float fraction; // +0x04
};
struct CBulletPenetrateEnum
{
void **vtable; // +0x00
Ray_... | 34.746032 | 159 | 0.694838 | fugueinheels |