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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b163203adc5166a3a5947d9ed649f545a90789d3 | 3,625 | cpp | C++ | mcg/src/aux/mex_cands2masks.cpp | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 392 | 2015-01-14T13:19:40.000Z | 2022-02-12T08:47:33.000Z | mcg/src/aux/mex_cands2masks.cpp | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 45 | 2015-02-03T12:16:10.000Z | 2022-03-07T00:25:09.000Z | mcg/src/aux/mex_cands2masks.cpp | mouthwater/rgb | 3fafca24ecc133910923182581a2133b8568bf77 | [
"BSD-2-Clause"
] | 168 | 2015-01-05T02:29:53.000Z | 2022-02-22T04:32:04.000Z | // ------------------------------------------------------------------------
// Copyright (C)
// Universitat Politecnica de Catalunya BarcelonaTech (UPC) - Spain
// University of California Berkeley (UCB) - USA
//
// Jordi Pont-Tuset <jordi.pont@upc.edu>
// Pablo Arbelaez <arbelaez@berkeley.edu>
// June 2014
// ... | 34.52381 | 94 | 0.516966 | mouthwater |
b163e11e45e58be069f09fea1e0a569225bb8217 | 283 | cpp | C++ | main.cpp | ipeperko/ivo_sandbox | 92054b242c55d58432291b70b7874c253fc3474a | [
"MIT"
] | null | null | null | main.cpp | ipeperko/ivo_sandbox | 92054b242c55d58432291b70b7874c253fc3474a | [
"MIT"
] | null | null | null | main.cpp | ipeperko/ivo_sandbox | 92054b242c55d58432291b70b7874c253fc3474a | [
"MIT"
] | null | null | null | #include <iostream>
#include "mysql/mysql.h"
int main()
{
MYSQL* mysql = mysql_init(nullptr);
mysql_close(mysql);
#ifdef TEST_OPTION
std::cout << "[ok] Test option enabled\n";
return 0;
#else
std::cout << "[error] Test option disabled\n";
return 1;
#endif
} | 17.6875 | 50 | 0.636042 | ipeperko |
b164242e5fad22d2f461f58329efeb54918b88f2 | 2,397 | cpp | C++ | muta_io/server.cpp | mingkaic/verum | 49a095373f5e30f798dfc73a023fd1a0d3ec2e58 | [
"MIT"
] | null | null | null | muta_io/server.cpp | mingkaic/verum | 49a095373f5e30f798dfc73a023fd1a0d3ec2e58 | [
"MIT"
] | null | null | null | muta_io/server.cpp | mingkaic/verum | 49a095373f5e30f798dfc73a023fd1a0d3ec2e58 | [
"MIT"
] | null | null | null | #include <sstream>
#include <iomanip>
#include <grpcpp/grpcpp.h>
#include <grpcpp/security/server_credentials.h>
#include <grpcpp/server.h>
#include <grpcpp/server_builder.h>
#include <grpcpp/server_context.h>
#include "muta/mutation.grpc.pb.h"
template <typename T>
static void to_string (std::ostream& out, const go... | 23.732673 | 101 | 0.647893 | mingkaic |
b1645c0f78a8e08be744c8f77c3bbcaf3f069366 | 18,857 | cpp | C++ | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8HTMLTableRowElement.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8HTMLTableRowElement.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8HTMLTableRowElement.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | // 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8HTMLTableRowElement.h"
#include "HTMLNames.... | 46.560494 | 350 | 0.766241 | jingcao80 |
b16748b573c6346e09a61f774b1ccd5309d61bfb | 1,051 | cc | C++ | HTTP/src/HttpError.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2019-07-29T04:07:29.000Z | 2019-07-29T04:07:29.000Z | HTTP/src/HttpError.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | null | null | null | HTTP/src/HttpError.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2020-03-04T17:13:04.000Z | 2020-03-04T17:13:04.000Z | /*
* Copyright (C) 2021 Frank Mertens.
*
* Distribution and use is allowed under the terms of the zlib license
* (see cc/LICENSE-zlib).
*
*/
#include <cc/HttpError>
namespace cc {
HttpBadRequest::HttpBadRequest():
HttpError{HttpStatus::BadRequest, "Bad Request"}
{}
HttpForbidden::HttpForbidden():
Http... | 22.847826 | 75 | 0.748811 | frankencode |
b168904ce51d091f29e795d8cf1c703af758af40 | 2,842 | cpp | C++ | src/graphics/RendererApiEnum.cpp | Kepler-Br/Vanadium | 6769a55b7af64af1da83792c1049f3c37df5681f | [
"MIT"
] | 1 | 2021-09-16T20:41:29.000Z | 2021-09-16T20:41:29.000Z | src/graphics/RendererApiEnum.cpp | Kepler-Br/Vanadium | 6769a55b7af64af1da83792c1049f3c37df5681f | [
"MIT"
] | null | null | null | src/graphics/RendererApiEnum.cpp | Kepler-Br/Vanadium | 6769a55b7af64af1da83792c1049f3c37df5681f | [
"MIT"
] | 1 | 2021-09-16T20:41:30.000Z | 2021-09-16T20:41:30.000Z | #include "RendererApiEnum.h"
namespace vanadium {
std::string_view rendererApiToString(RendererApi rendererApi) {
switch (rendererApi) {
case RendererApi::Direct3D11:
return "Direct3D11";
case RendererApi::Direct3D9:
return "Direct3D9";
case RendererApi::Direct3D12:
return "Direct3D12"... | 29 | 75 | 0.655876 | Kepler-Br |
b168b58ea484682d51dc8f2dce0812958beacf55 | 4,749 | cpp | C++ | src/terminal/pty/ConPty.cpp | dandycheung/contour | 1364ec488def8a0494503b9879b370b3669e81f9 | [
"Apache-2.0"
] | null | null | null | src/terminal/pty/ConPty.cpp | dandycheung/contour | 1364ec488def8a0494503b9879b370b3669e81f9 | [
"Apache-2.0"
] | null | null | null | src/terminal/pty/ConPty.cpp | dandycheung/contour | 1364ec488def8a0494503b9879b370b3669e81f9 | [
"Apache-2.0"
] | null | null | null | /**
* This file is part of the "libterminal" project
* Copyright (c) 2019-2020 Christian Parpart <christian@parpart.family>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to i... | 26.530726 | 108 | 0.635923 | dandycheung |
b16a73d1932d69161cef21a71f386e6aa9590ffa | 1,691 | cpp | C++ | tree/leetcode_tree/113_path_sum_3.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | 1 | 2020-10-12T19:18:19.000Z | 2020-10-12T19:18:19.000Z | tree/leetcode_tree/113_path_sum_3.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | tree/leetcode_tree/113_path_sum_3.cpp | Hadleyhzy/data_structure_and_algorithm | 0e610ba78dcb216323d9434a0f182756780ce5c0 | [
"MIT"
] | null | null | null | //
// 113_path_sum_3.cpp
// leetcode_tree
//
// Created by Hadley on 11.07.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <stack>
#include <cstring>
#include <queue>
#include <... | 23.816901 | 114 | 0.556475 | Hadleyhzy |
b16b38aec1e015785c877a49a58f439d06f3dbcf | 6,884 | hpp | C++ | VSDataReduction/VSLaserData.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | 1 | 2018-04-17T14:03:36.000Z | 2018-04-17T14:03:36.000Z | VSDataReduction/VSLaserData.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | VSDataReduction/VSLaserData.hpp | sfegan/ChiLA | 916bdd95348c2df2ecc736511d5f5b2bfb4a831e | [
"BSD-3-Clause"
] | null | null | null | //-*-mode:c++; mode:font-lock;-*-
/*! \file VSLaserData.hpp
Simple pedestal data
\author Stephen Fegan \n
UCLA \n
sfegan@astro.ucla.edu \n
\version 1.0
\date 05/18/2005
$Id: VSLaserData.hpp,v 3.8 2009/11/24 01:11:45 matthe... | 34.767677 | 79 | 0.601249 | sfegan |
b16dfa4c3eda784ca4228a393b0a8fcc1b88b2b3 | 1,405 | cpp | C++ | cf/Div2/B/Little Elephant and Magic Square/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/B/Little Elephant and Magic Square/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | cf/Div2/B/Little Elephant and Magic Square/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
#define double long double
using namespace std;
// Easy O(1) solution, who needs general solutions anyways
bool isPrim(int n){
return n == 2 || n == 3 || n == 5 || n == 7 || n == 11 || n == 13 || n == 17 || n == 19 || n == 23;
}
signed main() {
// Turn off synchr... | 31.222222 | 103 | 0.479715 | wdjpng |
b16f1355b29ff33f505ef7af210fb49a0cc9c35c | 842 | cpp | C++ | ZAPD/ZRoom/Commands/SetSkyboxModifier.cpp | Dragorn421/ZAPD | e02e151c91d006279c4cb75636fead5d1663c7d3 | [
"MIT"
] | 26 | 2020-12-29T23:21:05.000Z | 2022-03-23T01:26:02.000Z | ZAPD/ZRoom/Commands/SetSkyboxModifier.cpp | Dragorn421/ZAPD | e02e151c91d006279c4cb75636fead5d1663c7d3 | [
"MIT"
] | 90 | 2020-12-29T18:19:37.000Z | 2022-03-21T19:44:15.000Z | ZAPD/ZRoom/Commands/SetSkyboxModifier.cpp | Dragorn421/ZAPD | e02e151c91d006279c4cb75636fead5d1663c7d3 | [
"MIT"
] | 26 | 2020-12-29T18:18:38.000Z | 2022-03-10T09:13:46.000Z | #include "SetSkyboxModifier.h"
#include "Utils/StringHelper.h"
SetSkyboxModifier::SetSkyboxModifier(ZFile* nParent) : ZRoomCommand(nParent)
{
}
void SetSkyboxModifier::ParseRawData()
{
ZRoomCommand::ParseRawData();
disableSky = parent->GetRawData().at(rawDataIndex + 0x04);
disableSunMoon = parent->GetRawData().at... | 25.515152 | 79 | 0.744656 | Dragorn421 |
b16f4f0b985634ed899cd6a9df085fd22dc96da3 | 1,431 | hpp | C++ | inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/common/constant.hpp | Andruxin52rus/openvino | d824e371fe7dffb90e6d3d58e4e34adecfce4606 | [
"Apache-2.0"
] | null | null | null | inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/common/constant.hpp | Andruxin52rus/openvino | d824e371fe7dffb90e6d3d58e4e34adecfce4606 | [
"Apache-2.0"
] | 21 | 2021-02-03T22:41:30.000Z | 2022-02-21T13:04:48.000Z | inference-engine/tests/ngraph_helpers/lpt_ngraph_functions/include/lpt_ngraph_functions/common/constant.hpp | mmakridi/openvino | 769bb7709597c14debdaa356dd60c5a78bdfa97e | [
"Apache-2.0"
] | 1 | 2021-07-28T17:30:46.000Z | 2021-07-28T17:30:46.000Z | // Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <ostream>
#include <string>
#include <vector>
#include <ngraph/ngraph.hpp>
namespace ngraph {
namespace builder {
namespace subgraph {
class Constant {
public:
Constant();
Constant(const float value);
... | 25.553571 | 117 | 0.599581 | Andruxin52rus |
b17845c7fc4a3f7f6035de3083c222f3fa14751a | 3,017 | hxx | C++ | main/autodoc/source/inc/estack.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/autodoc/source/inc/estack.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/autodoc/source/inc/estack.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 33.522222 | 108 | 0.471661 | Grosskopf |
b17ac79da653ac0337fc3a95bed02edb21ed4715 | 1,078 | hpp | C++ | Sources/ECS/Tools/Color.hpp | n8vm/InteractiveComputerGraphics | 022d1b7b5ca81846bf5f310b30fde9beda54ff22 | [
"MIT"
] | null | null | null | Sources/ECS/Tools/Color.hpp | n8vm/InteractiveComputerGraphics | 022d1b7b5ca81846bf5f310b30fde9beda54ff22 | [
"MIT"
] | null | null | null | Sources/ECS/Tools/Color.hpp | n8vm/InteractiveComputerGraphics | 022d1b7b5ca81846bf5f310b30fde9beda54ff22 | [
"MIT"
] | 1 | 2019-01-29T10:44:58.000Z | 2019-01-29T10:44:58.000Z | #pragma once
#include <glm/glm.hpp>
namespace Colors {
inline glm::vec3 hsvToRgb(glm::vec3 hsv) {
glm::vec3 rgb;
int i = (int)floorf(hsv[0] * 6.0f);
float f = hsv[0] * 6 - i;
float p = hsv[2] * (1 - hsv[1]);
float q = hsv[2] * (1 - f * hsv[1]);
float t = hsv[2] * (1 - (1 - f) * hsv[1]);
switch (i % 6) ... | 34.774194 | 66 | 0.538961 | n8vm |
b17b6df61d569fbbc8c492038015124942f98545 | 1,368 | cpp | C++ | Codeforces 412E.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | Codeforces 412E.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | Codeforces 412E.cpp | Jvillegasd/Codeforces | ffdd2d5db1dabc7ff76f8f92270c79233a77b933 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool isLetter(char l){
return (l>='a'&&l<='z') || (l>='A'&&l<='Z');
}
int main(){
string input;
cin >> input;
long long ans = 0;
for(int i = 0; i < input.size(); i++){
if(input[i] == '@'){
long long before = 0, after = 0;
... | 29.106383 | 110 | 0.324561 | Jvillegasd |
b17fd74666d6aed009e12f75c955ea10bebe8e65 | 4,161 | cpp | C++ | float4d.cpp | shtty/cppcnn | 8dff95e8bb539b1762e3a25e3eb1f0b0cd30473e | [
"MIT"
] | 6 | 2017-08-31T23:25:06.000Z | 2019-09-30T06:39:33.000Z | float4d.cpp | shtty/cppcnn | 8dff95e8bb539b1762e3a25e3eb1f0b0cd30473e | [
"MIT"
] | null | null | null | float4d.cpp | shtty/cppcnn | 8dff95e8bb539b1762e3a25e3eb1f0b0cd30473e | [
"MIT"
] | 1 | 2018-12-05T07:09:38.000Z | 2018-12-05T07:09:38.000Z | ////////////////////////////////////////////////////////////////////////////////////
//// This code is written by Ho Yub Jung ////
////////////////////////////////////////////////////////////////////////////////////
#include "float4d.h"
std::mt19937 float4d::n_random_seed = std::... | 33.02381 | 198 | 0.495554 | shtty |
b17fd7823ea89d912ffaf350ebd8b7e5092e959e | 6,029 | cpp | C++ | src/Leddar/LdBoolProperty.cpp | deucedrone/LeddarSDK | c1deb6621e8ad845341e0185763c4a7706ecb788 | [
"BSD-3-Clause"
] | null | null | null | src/Leddar/LdBoolProperty.cpp | deucedrone/LeddarSDK | c1deb6621e8ad845341e0185763c4a7706ecb788 | [
"BSD-3-Clause"
] | null | null | null | src/Leddar/LdBoolProperty.cpp | deucedrone/LeddarSDK | c1deb6621e8ad845341e0185763c4a7706ecb788 | [
"BSD-3-Clause"
] | 1 | 2020-06-01T17:40:08.000Z | 2020-06-01T17:40:08.000Z | // *****************************************************************************
// Module..: Leddar
//
/// \file LdBoolProperty.cpp
///
/// \brief Definition of LdBoolProperty class.
///
/// \author Patrick Boulay
///
/// \since January 2016
//
// Copyright (c) 2016 LeddarTech Inc. All rights reserved.
// ****... | 30.296482 | 168 | 0.502405 | deucedrone |
b181efefb66df7109b9f875b56e654ff92a672cd | 4,659 | cpp | C++ | Units.Reflection.Test/DynamicReflectQuantityTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Units.Reflection.Test/DynamicReflectQuantityTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | Units.Reflection.Test/DynamicReflectQuantityTests.cpp | dnv-opensource/Reflection | 27effb850e9f0cc6acc2d48630ee6aa5d75fa000 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2021 DNV AS
//
// 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 "gtest/gtest.h"
#include "Units/Runtime/DynamicQuantity.h"
#include "Units/Runtime/Unit.h"
#include "Units/Length.h"
#in... | 38.188525 | 134 | 0.75059 | dnv-opensource |
b1837ebd6ad25f4a9ddd8e856c43d7c54184fd20 | 16,075 | cpp | C++ | Tudat/Astrodynamics/StateDerivativeModels/UnitTests/unitTestOrbitalStateDerivativeModel.cpp | JPelamatti/ThesisTUDAT | b94ce35fb7c8fa44ae83238e296a979dfa3adfe8 | [
"BSD-3-Clause"
] | null | null | null | Tudat/Astrodynamics/StateDerivativeModels/UnitTests/unitTestOrbitalStateDerivativeModel.cpp | JPelamatti/ThesisTUDAT | b94ce35fb7c8fa44ae83238e296a979dfa3adfe8 | [
"BSD-3-Clause"
] | null | null | null | Tudat/Astrodynamics/StateDerivativeModels/UnitTests/unitTestOrbitalStateDerivativeModel.cpp | JPelamatti/ThesisTUDAT | b94ce35fb7c8fa44ae83238e296a979dfa3adfe8 | [
"BSD-3-Clause"
] | 1 | 2019-05-30T03:42:22.000Z | 2019-05-30T03:42:22.000Z | /* Copyright (c) 2010-2015, Delft University of Technology
* 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 ... | 47.418879 | 99 | 0.71689 | JPelamatti |
b183cc19212e409463dc908e2e931782bbd787ca | 2,702 | cpp | C++ | hphp/runtime/ext/vsdebug/logging.cpp | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/vsdebug/logging.cpp | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | hphp/runtime/ext/vsdebug/logging.cpp | ActindoForks/hhvm | 670822e2b396f2d411f4e841b4ec9ae8627ba965 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2017-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 28.145833 | 76 | 0.53849 | ActindoForks |
b1847bac7c32eed075864bf7869b823c5c8bc277 | 7,392 | cc | C++ | ocr-pfst/ocrofst-impl.cc | michaelyin/ocropus-git | b2673354bbcfba38f7a807708f64cd33aaeb0f6d | [
"Apache-2.0"
] | 3 | 2016-06-24T10:48:36.000Z | 2020-07-04T16:00:41.000Z | ocr-pfst/ocrofst-impl.cc | michaelyin/ocropus-git | b2673354bbcfba38f7a807708f64cd33aaeb0f6d | [
"Apache-2.0"
] | null | null | null | ocr-pfst/ocrofst-impl.cc | michaelyin/ocropus-git | b2673354bbcfba38f7a807708f64cd33aaeb0f6d | [
"Apache-2.0"
] | 11 | 2016-06-24T09:35:57.000Z | 2020-12-01T21:26:43.000Z | // Copyright 2008-2009 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz
// or its licensors, as applicable.
//
// You may not use this file except under the terms of the accompanying license.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you
// may not use this file except in compliance ... | 29.333333 | 85 | 0.528815 | michaelyin |
b18b765b66829e8bd0911bbaaad839d8a9f02ed6 | 26,273 | hpp | C++ | library/src/blas3/Tensile/gemm.hpp | pruthvistony/rocBLAS | 9463526235e38f505caeaf29cf41bac22c1ab238 | [
"MIT"
] | null | null | null | library/src/blas3/Tensile/gemm.hpp | pruthvistony/rocBLAS | 9463526235e38f505caeaf29cf41bac22c1ab238 | [
"MIT"
] | null | null | null | library/src/blas3/Tensile/gemm.hpp | pruthvistony/rocBLAS | 9463526235e38f505caeaf29cf41bac22c1ab238 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#pragma once
#ifndef _GEMM_HOST_HPP_
#define _GEMM_HOST_HPP_
#include "handle.hpp"
#ifdef USE_TENSILE_HOST
#i... | 40.670279 | 101 | 0.421954 | pruthvistony |
b18c4360ea984ec96940403ce311c28af7a61049 | 12,185 | cpp | C++ | CC++/WTL/WTL/AppWiz/Files/Templates/1033/Frame.cpp | Peterinor/Coding | 3ac4908b3c6ae5df96390332e5452da934d12c3b | [
"MIT"
] | null | null | null | CC++/WTL/WTL/AppWiz/Files/Templates/1033/Frame.cpp | Peterinor/Coding | 3ac4908b3c6ae5df96390332e5452da934d12c3b | [
"MIT"
] | null | null | null | CC++/WTL/WTL/AppWiz/Files/Templates/1033/Frame.cpp | Peterinor/Coding | 3ac4908b3c6ae5df96390332e5452da934d12c3b | [
"MIT"
] | null | null | null | // [!output WTL_FRAME_FILE].cpp : implmentation of the [!output WTL_FRAME_CLASS] class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
[!if WTL_USE_RIBBON]
#include "Ribbon.h"
[!endif]
#include "resource.h"
#include "aboutdlg.h"
[!if WTL_USE_VIEW]
#incl... | 27.883295 | 192 | 0.704801 | Peterinor |
b18c662df9a7d74637ad3540d633f3a069954954 | 3,761 | cpp | C++ | plugins/dmetaphone/dmetaphone.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | plugins/dmetaphone/dmetaphone.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | plugins/dmetaphone/dmetaphone.cpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | #include "platform.h"
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include "dmetaphone.hpp"
#include "metaphone.h"
#define DMETAPHONE_VERSION "DMETAPHONE 1.1.05"
static const char * compatibleVersions[] = {
"DMETAPHONE 1.1.05 [0e64c86ec1d5771d4ce0abe488a98a2a]",
"DMETAPHONE 1.1.05",
NULL };
... | 31.605042 | 132 | 0.708588 | miguelvazq |
b18d55a2d3735b5c31fd9acc502cf9a8bdb3f5ee | 788 | hpp | C++ | tutorial/eos-docker/contracts/asserter/asserter.abi.hpp | alex-public/online-smart-storage | 3d066f8728b645d98cd786c2c2f637399669444b | [
"MIT"
] | null | null | null | tutorial/eos-docker/contracts/asserter/asserter.abi.hpp | alex-public/online-smart-storage | 3d066f8728b645d98cd786c2c2f637399669444b | [
"MIT"
] | null | null | null | tutorial/eos-docker/contracts/asserter/asserter.abi.hpp | alex-public/online-smart-storage | 3d066f8728b645d98cd786c2c2f637399669444b | [
"MIT"
] | 2 | 2018-11-12T21:42:44.000Z | 2019-04-25T07:28:37.000Z | const char* const asserter_abi = R"=====(
{
"version": "eosio::abi/1.0",
"types": [],
"structs": [
{
"name": "assertdef",
"base": "",
"fields": [
{
"name": "condition",
"type": "int8"
},{
"name": "message",
... | 19.7 | 41 | 0.347716 | alex-public |
b18d7cab6b3cb369c34fda45e9bfc0ab8c6eee57 | 1,078 | hpp | C++ | src/ast/ast_var_decl.hpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | 2 | 2019-04-09T01:04:36.000Z | 2019-05-12T06:17:03.000Z | src/ast/ast_var_decl.hpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | null | null | null | src/ast/ast_var_decl.hpp | Wassasin/splicpp | b88bf8ec18985bc6ee5a8ccb952f413f23d74c5a | [
"Beerware"
] | null | null | null | #ifndef AST_VAR_DECL_H
#define AST_VAR_DECL_H
#include <memory>
#include "ast.hpp"
#include "../common/typedefs.hpp"
#include "../typing/substitution.hpp"
namespace splicpp
{
class ast_type;
class ast_exp;
class ast_id;
class symboltable;
class varcontext;
class typecontext;
class ltypecontext;
class sl_typ... | 19.6 | 86 | 0.714286 | Wassasin |
b18d8212b9015540071f5512237d4d6356dc1bfe | 64,921 | cpp | C++ | test/localPRG_test.cpp | rffrancon/pandora | 5786548a1a1111a4990f0b8a6ec3335e4d1a5319 | [
"MIT"
] | null | null | null | test/localPRG_test.cpp | rffrancon/pandora | 5786548a1a1111a4990f0b8a6ec3335e4d1a5319 | [
"MIT"
] | null | null | null | test/localPRG_test.cpp | rffrancon/pandora | 5786548a1a1111a4990f0b8a6ec3335e4d1a5319 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "test_macro.cpp"
#include "localPRG.h"
#include "minimizer.h"
#include "minirecord.h"
#include "minihit.h"
#include "interval.h"
#include "prg/path.h"
#include "localgraph.h"
#include "localnode.h"
#include "index.h"
#include "inthash.h"
#include "pangenome/pannode.h"
#include "pangeno... | 42.739302 | 790 | 0.636913 | rffrancon |
b18e06d0512c64b33691bc04dbdbad6eda9196a9 | 2,238 | cpp | C++ | BZOJ/2142/std.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/2142/std.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | BZOJ/2142/std.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#define N 100010
#define mp make_pair
#define pa pair<ll,ll>
#define fi first
#define se second
using namespace std ;
typedef long long ll;
ll p,n,m,w[N];
ll prime[N],mod[N],cnt[N],a[N];
int tot;
ll quick_my(ll a,ll b,ll M)
{
ll ret=1;
... | 19.631579 | 127 | 0.488382 | sjj118 |
b18fcce746bab43b072a0679baa95fdaebf8b77d | 10,606 | cpp | C++ | ProjectEuler+/euler-0237.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0237.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | null | null | null | ProjectEuler+/euler-0237.cpp | sarvekash/HackerRank_Solutions | 8f48e5b1a6e792a85a10d8c328cd1f5341fb16a8 | [
"Apache-2.0"
] | 1 | 2021-05-28T11:14:34.000Z | 2021-05-28T11:14:34.000Z | // ////////////////////////////////////////////////////////
// # Title
// Tours on a 4 x n playing board
//
// # URL
// https://projecteuler.net/problem=237
// http://euler.stephan-brumme.com/237/
//
// # Problem
// Let `T(n)` be the number of tours over a `4 * n` playing board such that:
// - The tour starts in the to... | 40.326996 | 157 | 0.580898 | sarvekash |
b19083840d67f9ec00bca8cea9ad3c5d62a6e39c | 409 | cpp | C++ | Source/FSD/Private/LevelGenerationCarver.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/LevelGenerationCarver.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/LevelGenerationCarver.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "LevelGenerationCarver.h"
FLevelGenerationCarver::FLevelGenerationCarver() {
this->MeshCarver = NULL;
this->ConvexCarver = NULL;
this->StaticMeshCarver = NULL;
this->ConvexExpensiveNoise = 0.00f;
this->CarveCellSize = CarveOptionsCellSize::CARVE_CELL_SIZE_25;
this->TerrainMaterial = NU... | 29.214286 | 67 | 0.731051 | trumank |
b19372a16d8c3d42e0619dfaa01516cce0bde149 | 74,881 | cc | C++ | src/bin/dhcp6/tests/classify_unittests.cc | kphf1995cm/kea | 2f6940ef5ed697f3f683035ed7a16046253add4d | [
"Apache-2.0"
] | null | null | null | src/bin/dhcp6/tests/classify_unittests.cc | kphf1995cm/kea | 2f6940ef5ed697f3f683035ed7a16046253add4d | [
"Apache-2.0"
] | null | null | null | src/bin/dhcp6/tests/classify_unittests.cc | kphf1995cm/kea | 2f6940ef5ed697f3f683035ed7a16046253add4d | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <dhcp/dhcp6.h>
#... | 35.287936 | 89 | 0.557071 | kphf1995cm |
b193e7449f191cfd9d8fdc0e3324ca49a5116f0f | 4,010 | cpp | C++ | modules/tracktion_engine/plugins/tracktion_PluginWindowState.cpp | adamnemecek/tracktion_engine | 6770c21dd44b78dae4ae5da823a8e5094660c1de | [
"MIT",
"Unlicense"
] | 734 | 2018-11-16T09:39:40.000Z | 2022-03-30T16:56:14.000Z | modules/tracktion_engine/plugins/tracktion_PluginWindowState.cpp | adamnemecek/tracktion_engine | 6770c21dd44b78dae4ae5da823a8e5094660c1de | [
"MIT",
"Unlicense"
] | 100 | 2018-11-16T18:04:08.000Z | 2022-03-31T17:47:53.000Z | modules/tracktion_engine/plugins/tracktion_PluginWindowState.cpp | adamnemecek/tracktion_engine | 6770c21dd44b78dae4ae5da823a8e5094660c1de | [
"MIT",
"Unlicense"
] | 123 | 2018-11-16T15:51:50.000Z | 2022-03-29T12:21:27.000Z | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 25.379747 | 126 | 0.599501 | adamnemecek |
b19679891ba7a9d5c215a23e01d926e4afd07437 | 6,982 | cpp | C++ | admin/activec/conui/evtsink.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/activec/conui/evtsink.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/activec/conui/evtsink.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
//
// Copyright (C) Microsoft Corporation, 1999 - 1999
//
// File: evtsink.cpp
//
//--------------------------------------------------------------------------
#include "stdafx.h"
#include "winnls.... | 28.153226 | 136 | 0.65984 | npocmaka |
b196e57f1237f15db988464f02b0ea45981686b9 | 1,842 | cpp | C++ | src/BufferedInsert.cpp | slate6715/GN_Utilities | 642f8dfadef06073320e38deab614a7807e3d332 | [
"MIT"
] | null | null | null | src/BufferedInsert.cpp | slate6715/GN_Utilities | 642f8dfadef06073320e38deab614a7807e3d332 | [
"MIT"
] | null | null | null | src/BufferedInsert.cpp | slate6715/GN_Utilities | 642f8dfadef06073320e38deab614a7807e3d332 | [
"MIT"
] | null | null | null | /*
* File: BufferedInsert.cpp
* Author: root
*
* Created on October 3, 2012, 2:06 PM
*/
#ifdef _WIN32
#include "stdafx.h"
#endif
#include "BufferedInsert.h"
#include <memory>
namespace util {
BufferedInsert::BufferedInsert(DBase &conn, const char *preface, const char *postface) :
... | 22.463415 | 89 | 0.536374 | slate6715 |
b19d8b5d5db7db1a5fe9772b7b5f697865047fbd | 540 | cpp | C++ | templates/window.cpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | 5 | 2020-12-07T08:58:24.000Z | 2021-03-22T08:21:16.000Z | templates/window.cpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | null | null | null | templates/window.cpp | qaqwqaqwq-0/YGP | 928d53aff1c8ca1327b0cf7ad6e6836d44c3447f | [
"MIT"
] | 2 | 2021-01-26T07:45:52.000Z | 2021-02-14T15:54:54.000Z | #define YGP_DISABLE_BROOM
#define YGP_DISABLE_DEMENTOR
#define YGP_DISABLE_BROWSER
#define YGP_DISABLE_PLAYER
#include"../include/ygp.hpp"
YGP_INIT
YGP_WNDPROC
{
static window win;
YGP_BEGIN_MSG_MAP
case WM_CREATE:
{
win=hwnd;
break;
}
case WM_DESTROY:
{
PostQuitMessa... | 17.419355 | 47 | 0.648148 | qaqwqaqwq-0 |
b19eea6d8ecb650cbabc95346422e7358cabed79 | 138 | cpp | C++ | TextRPG/Source/Random.cpp | DanDanCool/TextRPG | f3404a6f1b4590909b37a4c61211527276462738 | [
"Apache-2.0"
] | 1 | 2021-01-07T14:33:22.000Z | 2021-01-07T14:33:22.000Z | TextRPG/Source/Random.cpp | DanDanCool/TextRPG | f3404a6f1b4590909b37a4c61211527276462738 | [
"Apache-2.0"
] | 2 | 2020-05-15T22:20:54.000Z | 2020-05-24T06:49:52.000Z | TextRPG/Source/Random.cpp | DanDanCool/TextRPG | f3404a6f1b4590909b37a4c61211527276462738 | [
"Apache-2.0"
] | null | null | null | #include "Random.h"
std::mt19937 Random::s_RandomEngine;
std::uniform_int_distribution<std::mt19937::result_type> Random::s_Distribution; | 34.5 | 80 | 0.811594 | DanDanCool |
b1a1ca02efd4919326c503aedc371115c9c08ec4 | 1,675 | cpp | C++ | src/cm/cf/func/SdeFFunction.cpp | ukjhsa/ADEF | ce9e16d6a0f40558860a222b20065297f1a1c8fb | [
"MIT"
] | null | null | null | src/cm/cf/func/SdeFFunction.cpp | ukjhsa/ADEF | ce9e16d6a0f40558860a222b20065297f1a1c8fb | [
"MIT"
] | 8 | 2015-12-03T10:21:21.000Z | 2019-02-20T11:20:57.000Z | src/cm/cf/func/SdeFFunction.cpp | ukjhsa/ADEF | ce9e16d6a0f40558860a222b20065297f1a1c8fb | [
"MIT"
] | null | null | null | #include <memory>
#include <vector>
#include <string>
#include <any>
#include "cm/cf/func/SdeFFunction.h"
#include "cm/ControlledObject.h"
#include "Configuration.h"
#include "PrototypeManager.h"
#include "Individual.h"
namespace adef {
void SdeFFunction::setup(const Configuration & config, const PrototypeManager & p... | 27.016129 | 175 | 0.677612 | ukjhsa |
b1a2d077d8855870818295a1e8d1726cabebfba3 | 13,989 | cc | C++ | chrome/browser/page_info_model.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 1 | 2019-04-23T15:57:04.000Z | 2019-04-23T15:57:04.000Z | chrome/browser/page_info_model.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/page_info_model.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | null | null | null | // 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/browser/page_info_model.h"
#include <string>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/command_line.h"
#... | 37.706199 | 79 | 0.691972 | 1065672644894730302 |
b1a62eafc01aafb7f991ddbf2d86af8a305701f3 | 1,428 | cpp | C++ | Source/GravityGun/GravityGunCameraShake.cpp | jSplunk/GravityGun | 1157d876a6a6b9843602171781c52b12e7e2dd69 | [
"Apache-2.0"
] | null | null | null | Source/GravityGun/GravityGunCameraShake.cpp | jSplunk/GravityGun | 1157d876a6a6b9843602171781c52b12e7e2dd69 | [
"Apache-2.0"
] | null | null | null | Source/GravityGun/GravityGunCameraShake.cpp | jSplunk/GravityGun | 1157d876a6a6b9843602171781c52b12e7e2dd69 | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "GravityGunCameraShake.h"
void UGravityGunCameraShake::SetRotPitch(float Amplitude, float Frequency)
{
//Setting new values for the roational pitch of the oscillation
RotPitch.Amplitude = Amplitude;
RotPitch.Frequency = Frequen... | 29.142857 | 148 | 0.794118 | jSplunk |
b1a70972281a31d591aede137638cb0761a8f267 | 1,272 | cc | C++ | cc/test-bezier-gradient.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/test-bezier-gradient.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/test-bezier-gradient.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | #include "acmacs-base/argv.hh"
#include "acmacs-base/color-gradient.hh"
// ----------------------------------------------------------------------
using namespace acmacs::argv;
struct Options : public argv
{
Options(int a_argc, const char* const a_argv[], on_error on_err = on_error::exit) : argv() { parse(a_argc, ... | 31.8 | 129 | 0.556604 | acorg |
b1a74ba2798aa83b8e00fb35def02c352a7183dd | 5,756 | cc | C++ | aslam_cv2/aslam_cv_cameras/src/distortion-fisheye.cc | eglrp/maplab-note | 4f4508d5cd36345c79dd38f6621a0a55aa5b0138 | [
"Apache-2.0"
] | 2 | 2020-12-25T07:00:18.000Z | 2022-03-15T14:35:59.000Z | aslam_cv2/aslam_cv_cameras/src/distortion-fisheye.cc | eglrp/maplab-note | 4f4508d5cd36345c79dd38f6621a0a55aa5b0138 | [
"Apache-2.0"
] | null | null | null | aslam_cv2/aslam_cv_cameras/src/distortion-fisheye.cc | eglrp/maplab-note | 4f4508d5cd36345c79dd38f6621a0a55aa5b0138 | [
"Apache-2.0"
] | 1 | 2020-06-09T04:07:33.000Z | 2020-06-09T04:07:33.000Z | #include <aslam/cameras/distortion-fisheye.h>
namespace aslam {
std::ostream& operator<<(std::ostream& out, const FisheyeDistortion& distortion) {
distortion.printParameters(out, std::string(""));
return out;
}
FisheyeDistortion::FisheyeDistortion(const Eigen::VectorXd& dist_coeffs)
: Base(dist_coeffs, Distortion... | 33.271676 | 112 | 0.567582 | eglrp |
b1a8297f4924bbbdd9f1bc4267fa25a0152f6ebc | 15,640 | cc | C++ | tests/unit/regression/lars_unittest.cc | shiyi001/shogun | 287f02d11d5914ded2d410ab9c6f38712e11ca2b | [
"BSD-3-Clause"
] | 1 | 2020-03-29T18:28:09.000Z | 2020-03-29T18:28:09.000Z | tests/unit/regression/lars_unittest.cc | shiyi001/shogun | 287f02d11d5914ded2d410ab9c6f38712e11ca2b | [
"BSD-3-Clause"
] | null | null | null | tests/unit/regression/lars_unittest.cc | shiyi001/shogun | 287f02d11d5914ded2d410ab9c6f38712e11ca2b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) The Shogun Machine Learning Toolbox
* Written (w) 2014 Parijat Mazumdar
* 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 abo... | 31.405622 | 88 | 0.77257 | shiyi001 |
b1afc8a8d08db2792989acf9ba24e88993e6c627 | 5,945 | cpp | C++ | src/imgui_glfw.cpp | pperehozhih/imgui_glfw | 726549cbec2b754dbbd0afdfecc23e60c015378f | [
"Apache-2.0"
] | null | null | null | src/imgui_glfw.cpp | pperehozhih/imgui_glfw | 726549cbec2b754dbbd0afdfecc23e60c015378f | [
"Apache-2.0"
] | null | null | null | src/imgui_glfw.cpp | pperehozhih/imgui_glfw | 726549cbec2b754dbbd0afdfecc23e60c015378f | [
"Apache-2.0"
] | null | null | null | #ifdef __EMSCRIPTEN__
#include <emscripten.h>
#define GL_GLEXT_PROTOTYPES
#define EGL_EGLEXT_PROTOTYPES
#else
extern "C" {
#include "examples/libs/gl3w/GL/gl3w.c"
}
#define IMGUI_IMPL_OPENGL_LOADER_CUSTOM "examples/libs/gl3w/GL/gl3w.h"
#endif
#include "backends/imgui_impl_opengl3.cpp"
#include "backends/imgui_impl... | 36.697531 | 129 | 0.600673 | pperehozhih |
b1b4136da617904151dcb1a541b979ff21f674c6 | 665 | cpp | C++ | Courses/Sams_Teach_Yourself_C++_in_One_Hour_a_Day/Chap_8/Lesson 8.3 Pointer Reassignment to Another Variable.cpp | mccrudd3n/practise | 26a65c0515c9bea7583bcb8f4c0022659b48dcf5 | [
"Unlicense"
] | null | null | null | Courses/Sams_Teach_Yourself_C++_in_One_Hour_a_Day/Chap_8/Lesson 8.3 Pointer Reassignment to Another Variable.cpp | mccrudd3n/practise | 26a65c0515c9bea7583bcb8f4c0022659b48dcf5 | [
"Unlicense"
] | null | null | null | Courses/Sams_Teach_Yourself_C++_in_One_Hour_a_Day/Chap_8/Lesson 8.3 Pointer Reassignment to Another Variable.cpp | mccrudd3n/practise | 26a65c0515c9bea7583bcb8f4c0022659b48dcf5 | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
int main ()
{
cout << endl; //Extra space
cout << "__________________________________________________________" << endl;
cout << "Lesson 8.3 Pointer Reassignment to Another Variable" << endl;
cout << "----------------------------------------------------------" << endl;
... | 25.576923 | 79 | 0.581955 | mccrudd3n |
b1b8d020689258d84b1b020b3d6eedf5e355817a | 3,246 | hpp | C++ | SeeingMachinesVisualization/SeeingMachinesProject/faceAPISensorCommercial/SFML/include/SFML/System/Randomizer.hpp | dgerding/Construct | ecbb0ee5591a89e71906ad676bc6684583716d84 | [
"MIT"
] | 1 | 2016-03-14T16:02:04.000Z | 2016-03-14T16:02:04.000Z | vs2010/include/SFML/System/Randomizer.hpp | mfichman/cs248-sfml-template | a8d286d48343ece7fb8292d52e45db09866024ea | [
"Zlib"
] | null | null | null | vs2010/include/SFML/System/Randomizer.hpp | mfichman/cs248-sfml-template | a8d286d48343ece7fb8292d52e45db09866024ea | [
"Zlib"
] | null | null | null | ////////////////////////////////////////////////////////////
//
// SFML - Simple and Fast Multimedia Library
// Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@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 ... | 34.168421 | 101 | 0.469193 | dgerding |
b1bd5b16e7ed13b229a7b98dfd0ea1fa98e1c305 | 3,911 | cpp | C++ | Kernel/Heap.cpp | Archlisk/fos2 | f6a6efcaf1d29ccabdef7d9f713cc0b80f1b6565 | [
"MIT"
] | null | null | null | Kernel/Heap.cpp | Archlisk/fos2 | f6a6efcaf1d29ccabdef7d9f713cc0b80f1b6565 | [
"MIT"
] | null | null | null | Kernel/Heap.cpp | Archlisk/fos2 | f6a6efcaf1d29ccabdef7d9f713cc0b80f1b6565 | [
"MIT"
] | null | null | null | #include <Heap.h>
#include <Memory.h>
using namespace Kernel;
Heap::Heap(void* start_addr, u64 size)
: m_start_addr(start_addr), m_size(size)
{
Header* first_header = (Header*)start_addr;
Header* last_header = (Header*)((u64)start_addr + size - sizeof(Header));
first_header->prev = nullptr;
first_header->free... | 23.70303 | 131 | 0.645615 | Archlisk |
b1bd5ff05ddcd6d24c3700c53a80b8ffad9a0ecf | 1,994 | cpp | C++ | B2G/external/skia/src/pdf/SkPDFStream.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/external/skia/src/pdf/SkPDFStream.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/external/skia/src/pdf/SkPDFStream.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /*
* Copyright (C) 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 32.16129 | 75 | 0.677031 | wilebeast |
04d9905b635aebf0e5aa8229500f93f27ea3c49e | 2,597 | cpp | C++ | cext/src/JUtil.cpp | u2i/jruby | a04e24e55ef3a3e4d0d8246d1789600087815f23 | [
"Ruby",
"Apache-2.0"
] | 2 | 2018-02-18T01:05:13.000Z | 2021-12-10T16:45:58.000Z | cext/src/JUtil.cpp | u2i/jruby | a04e24e55ef3a3e4d0d8246d1789600087815f23 | [
"Ruby",
"Apache-2.0"
] | null | null | null | cext/src/JUtil.cpp | u2i/jruby | a04e24e55ef3a3e4d0d8246d1789600087815f23 | [
"Ruby",
"Apache-2.0"
] | 1 | 2016-09-15T12:25:22.000Z | 2016-09-15T12:25:22.000Z | /***** BEGIN LICENSE BLOCK *****
* Version: CPL 1.0/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Common Public
* License Version 1.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.eclipse.org/legal/cpl-v... | 37.1 | 89 | 0.711975 | u2i |
04df13f38390d13206dfdb640d4b9480527dc934 | 1,623 | cpp | C++ | c++-library/suffix_array.cpp | knuu/contest_library | 94b0c9eb82e7e2543bf82ea5a07bfe80e5f2ddc3 | [
"MIT"
] | 2 | 2019-05-21T12:12:58.000Z | 2022-01-20T03:19:33.000Z | c++-library/suffix_array.cpp | knuu/contest_library | 94b0c9eb82e7e2543bf82ea5a07bfe80e5f2ddc3 | [
"MIT"
] | null | null | null | c++-library/suffix_array.cpp | knuu/contest_library | 94b0c9eb82e7e2543bf82ea5a07bfe80e5f2ddc3 | [
"MIT"
] | null | null | null | #include <functional>
#include <string>
#include <vector>
struct SuffixArray {
int N, k;
std::string S;
std::vector<int> sa, rank, tmp;
std::vector<int> lcp, rank_lcp;
SuffixArray(std::string &S)
: N(S.size()), S(S), sa(N + 1), rank(N + 1), tmp(N + 1) {
construct();
}
void construct() {
fo... | 23.867647 | 74 | 0.429452 | knuu |
04df61e9469c036c18ce1d54b9672164fc18d18b | 2,082 | cpp | C++ | addons/ofxMPMFluid/src/ofxMPMObstacle.cpp | eraly5555/Hub | e890f841f16988c642cf6390fa31c3c5ae82773d | [
"MIT"
] | 20 | 2015-01-13T08:14:46.000Z | 2022-01-09T21:01:41.000Z | addons/ofxMPMFluid/src/ofxMPMObstacle.cpp | eraly5555/Hub | e890f841f16988c642cf6390fa31c3c5ae82773d | [
"MIT"
] | null | null | null | addons/ofxMPMFluid/src/ofxMPMObstacle.cpp | eraly5555/Hub | e890f841f16988c642cf6390fa31c3c5ae82773d | [
"MIT"
] | 3 | 2016-07-13T08:58:33.000Z | 2021-01-29T07:06:34.000Z | /**
* ofxMPMFluid.cpp
* The MIT License (MIT)
* Copyright (c) 2010 respective contributors
*
* 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 l... | 39.283019 | 82 | 0.716138 | eraly5555 |
04e01ab7bc1d1eb226f49ea65bf13fa5ffd56fcb | 700 | hpp | C++ | lib/hmat/hmatrix_dense_compressor.hpp | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | lib/hmat/hmatrix_dense_compressor.hpp | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | lib/hmat/hmatrix_dense_compressor.hpp | mdavezac/bempp | bc573062405bda107d1514e40b6153a8350d5ab5 | [
"BSL-1.0"
] | null | null | null | // vi: set et ts=4 sw=2 sts=2:
#ifndef HMAT_HMATRIX_DENSE_COMPRESSOR_HPP
#define HMAT_HMATRIX_DENSE_COMPRESSOR_HPP
#include "common.hpp"
#include "hmatrix_compressor.hpp"
#include "data_accessor.hpp"
namespace hmat {
template <typename ValueType, int N>
class HMatrixDenseCompressor : public HMatrixCompressor<ValueT... | 24.137931 | 75 | 0.771429 | mdavezac |
04e1eeb3e4599cd968033d30d1cbbed235809c6d | 1,584 | cpp | C++ | sres/OptItems.cpp | CiaranWelsh/SRES | 71e31aabdda8ff40efd543ede14cf8846a334342 | [
"MIT"
] | 1 | 2021-03-25T23:10:45.000Z | 2021-03-25T23:10:45.000Z | sres/OptItems.cpp | CiaranWelsh/SRES | 71e31aabdda8ff40efd543ede14cf8846a334342 | [
"MIT"
] | 4 | 2021-02-01T14:06:00.000Z | 2021-02-07T11:17:53.000Z | sres/OptItems.cpp | sys-bio/SRES | 71e31aabdda8ff40efd543ede14cf8846a334342 | [
"MIT"
] | null | null | null | //
// Created by Ciaran on 05/02/2021.
//
#include <algorithm>
#include "OptItems.h"
#include "Error.h"
namespace opt {
OptItems::OptItems(std::vector<OptItem> optItems)
: optItems_(std::move(optItems)) {}
OptItems::OptItems(const std::vector<double> &startingValues, const std::vector<double> &l... | 28.285714 | 99 | 0.547348 | CiaranWelsh |
04e3991c5e8a88c6e632bdd0e1f0d808392422e8 | 2,222 | cpp | C++ | blast/src/objects/biblio/Cit_proc.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | blast/src/objects/biblio/Cit_proc.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | blast/src/objects/biblio/Cit_proc.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | /* $Id: Cit_proc.cpp 272611 2011-04-08 18:57:08Z ucko $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" u... | 30.438356 | 78 | 0.666967 | mycolab |
04e4ad8aba946a547875ef09ec87454d428cfc12 | 4,139 | cpp | C++ | src/templateargumentprocessor.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 3 | 2020-12-28T01:40:45.000Z | 2021-05-18T01:47:07.000Z | src/templateargumentprocessor.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 4 | 2019-06-29T12:23:11.000Z | 2020-07-25T15:38:46.000Z | src/templateargumentprocessor.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 1 | 2021-11-17T01:49:42.000Z | 2021-11-17T01:49:42.000Z | // Copyright (C) 2018-2020 Vincent Chambrin
// This file is part of the libscript library
// For conditions of distribution and use, see copyright notice in LICENSE
#include "script/templateargumentprocessor.h"
#include "script/class.h"
#include "script/classtemplate.h"
#include "script/classtemplateinstancebuilder.h... | 31.356061 | 143 | 0.712491 | strandfield |
04e63d8b01982081dba6536e567c4f7d691639ac | 6,407 | hh | C++ | maxutils/maxbase/include/maxbase/log.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | maxutils/maxbase/include/maxbase/log.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | maxutils/maxbase/include/maxbase/log.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2026-01-04
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 29.255708 | 109 | 0.68472 | sdrik |
04e7d48960ce3c3793261c217a806a4544892acb | 1,310 | cpp | C++ | src/ai/external/hauser_parabolic_smoother/HauserUtil.cpp | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 15 | 2019-09-15T05:24:19.000Z | 2021-02-26T20:31:19.000Z | src/ai/external/hauser_parabolic_smoother/HauserUtil.cpp | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 16 | 2019-10-10T23:27:00.000Z | 2020-05-14T02:30:56.000Z | src/ai/external/hauser_parabolic_smoother/HauserUtil.cpp | icaros-usc/wecook | 27bbb6b78a48e04765a87d33cc8a5d3748d2d4cc | [
"BSD-3-Clause"
] | 2 | 2020-02-01T16:31:29.000Z | 2020-04-07T21:00:04.000Z | //
// Created by hejia on 9/22/19.
//
#include "ai/external/hauser_parabolic_smoother/HauserUtil.h"
#include "ai/external/hauser_parabolic_smoother/DynamicPath.h"
namespace wecook {
namespace ai {
namespace external {
namespace hauser_parabolic_smoother {
//=============================================================... | 27.291667 | 80 | 0.554198 | icaros-usc |
04ea7e1f8f57f7fe9110fa01a5b13e9cdbda6551 | 3,777 | cpp | C++ | oneflow/xrt/tensorrt/ops/op_context.cpp | xxg1413/oneflow | f2e3c85a25b8aecfb6c0c0af1737833b1a77e135 | [
"Apache-2.0"
] | 2 | 2021-09-10T00:19:49.000Z | 2021-11-16T11:27:20.000Z | oneflow/xrt/tensorrt/ops/op_context.cpp | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | null | null | null | oneflow/xrt/tensorrt/ops/op_context.cpp | duijiudanggecl/oneflow | d2096ae14cf847509394a3b717021e2bd1d72f62 | [
"Apache-2.0"
] | 1 | 2021-11-10T07:57:01.000Z | 2021-11-10T07:57:01.000Z | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 28.832061 | 82 | 0.737622 | xxg1413 |
04eb53258babfb8b10e0b47571fad57dfe9d560f | 6,577 | hpp | C++ | src/core/util/ImageProcessing.hpp | ShamylZakariya/KesslerSyndrome | dce00108304fe2c1b528515dafc29c15011d4679 | [
"MIT"
] | null | null | null | src/core/util/ImageProcessing.hpp | ShamylZakariya/KesslerSyndrome | dce00108304fe2c1b528515dafc29c15011d4679 | [
"MIT"
] | null | null | null | src/core/util/ImageProcessing.hpp | ShamylZakariya/KesslerSyndrome | dce00108304fe2c1b528515dafc29c15011d4679 | [
"MIT"
] | null | null | null | //
// ImageProgressing.hpp
// Kessler Syndrome
//
// Created by Shamyl Zakariya on 11/30/17.
//
#ifndef ImageProcessing_hpp
#define ImageProcessing_hpp
#include <cinder/Channel.h>
#include <cinder/Perlin.h>
#include "core/Common.hpp"
#include "core/MathHelpers.hpp"
namespace core {
namespace util {
n... | 49.825758 | 145 | 0.610005 | ShamylZakariya |
04eb66a4e3bd630eb33cd10064113df68094b628 | 510 | hpp | C++ | wxRecognize/src/cDialogConfigureDetection.hpp | enzo418/Recognice-CCTV-c- | 15da07a559d6de611452df4d404a15d4551c3017 | [
"Apache-2.0"
] | 1 | 2020-09-06T21:44:56.000Z | 2020-09-06T21:44:56.000Z | wxRecognize/src/cDialogConfigureDetection.hpp | enzo418/Recognice-CCTV-c- | 15da07a559d6de611452df4d404a15d4551c3017 | [
"Apache-2.0"
] | null | null | null | wxRecognize/src/cDialogConfigureDetection.hpp | enzo418/Recognice-CCTV-c- | 15da07a559d6de611452df4d404a15d4551c3017 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "wx/dialog.h"
#include "wx/textctrl.h"
#include "wx/button.h"
class cDialogConfigureDetection : public wxDialog {
public:
cDialogConfigureDetection ( wxWindow * parent, wxWindowID id, const wxString & title,
const wxPoint & pos,
const wxSize & size,
wxString& yoloCfg, wxSt... | 23.181818 | 87 | 0.696078 | enzo418 |
04ebc87204d0b084f35987a10fe1f9168a7d3f3a | 2,847 | cpp | C++ | pkcs11-gui/src/importp12dialog.cpp | T-Bonhagen/pkcs11-gui | 95eed0e907235af826d79a58531dca07b77cca5d | [
"Apache-2.0"
] | 7 | 2018-06-06T12:53:46.000Z | 2022-02-28T16:42:09.000Z | pkcs11-gui/src/importp12dialog.cpp | n3wtron/pkcs11-gui | faccbaa79dd58d803d8466ae28af7098c3a8e92a | [
"Apache-2.0"
] | 4 | 2020-07-28T06:46:28.000Z | 2021-01-22T09:55:13.000Z | pkcs11-gui/src/importp12dialog.cpp | n3wtron/pkcs11-gui | faccbaa79dd58d803d8466ae28af7098c3a8e92a | [
"Apache-2.0"
] | 4 | 2018-04-25T16:57:55.000Z | 2021-01-21T19:59:11.000Z | /*
* Copyright 2017 Igor Maculan <n3wtron@gmail.com>
*
* 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 applica... | 35.148148 | 163 | 0.651212 | T-Bonhagen |
04ed2a8339473a505b57b7cdaa6452d583729559 | 4,822 | cpp | C++ | 5. Graph Theory/Connectivity/articulationPointsAndBridges.cpp | eashwaranRaghu/Data-Structures-and-Algorithms | 3aad0f1da3d95b572fbb1950c770198bd042a80f | [
"MIT"
] | 6 | 2020-01-29T14:05:56.000Z | 2021-04-24T04:37:27.000Z | 5. Graph Theory/Connectivity/articulationPointsAndBridges.cpp | eashwaranRaghu/Data-Structures-and-Algorithms | 3aad0f1da3d95b572fbb1950c770198bd042a80f | [
"MIT"
] | null | null | null | 5. Graph Theory/Connectivity/articulationPointsAndBridges.cpp | eashwaranRaghu/Data-Structures-and-Algorithms | 3aad0f1da3d95b572fbb1950c770198bd042a80f | [
"MIT"
] | 1 | 2020-05-22T06:37:20.000Z | 2020-05-22T06:37:20.000Z | // Created on 15-07-2019 18:51:46 by necronomicon
#include <bits/stdc++.h>
using namespace std;
#define MP make_pair
#define PB push_back
#define ARR_MAX (int)1e5 //Max array length
#define INF (int)1e9 //10^9
#define EPS 1e-9 //10^-9
#define MOD 1000000007 //10^9+7
#define PI 3.14159265358979323846264338327... | 32.362416 | 190 | 0.597677 | eashwaranRaghu |
04eefdbcf0fefbbd48ede43d5cd37c50150e6d5f | 1,772 | cpp | C++ | display/hal/default_standard/src/display_device/hdi_composer.cpp | openharmony-gitee-mirror/drivers_peripheral | 4ee6d41befdf54a97afeb5838be5fcd0b4888d56 | [
"Apache-2.0"
] | null | null | null | display/hal/default_standard/src/display_device/hdi_composer.cpp | openharmony-gitee-mirror/drivers_peripheral | 4ee6d41befdf54a97afeb5838be5fcd0b4888d56 | [
"Apache-2.0"
] | null | null | null | display/hal/default_standard/src/display_device/hdi_composer.cpp | openharmony-gitee-mirror/drivers_peripheral | 4ee6d41befdf54a97afeb5838be5fcd0b4888d56 | [
"Apache-2.0"
] | 2 | 2021-09-13T10:12:47.000Z | 2021-09-13T11:16:31.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 37.702128 | 116 | 0.718397 | openharmony-gitee-mirror |
04f4016359f6f2986f2fdf3f368e5a69cd757811 | 11,727 | cpp | C++ | main/PIKern/KextDeviceNotify.cpp | minku1024/endpointdlp | 931ab140eef053498907d1db74a5c055bea8ef93 | [
"Apache-2.0"
] | 33 | 2020-11-18T09:30:13.000Z | 2022-03-03T17:56:24.000Z | main/PIKern/KextDeviceNotify.cpp | s4ngsuk-sms/endpointdlp | 9e87e352e23bff3b5e0701dd278756aadc8a0539 | [
"Apache-2.0"
] | 25 | 2020-07-31T01:43:17.000Z | 2020-11-27T12:32:09.000Z | main/PIKern/KextDeviceNotify.cpp | s4ngsuk-sms/endpointdlp | 9e87e352e23bff3b5e0701dd278756aadc8a0539 | [
"Apache-2.0"
] | 26 | 2020-11-18T09:30:15.000Z | 2022-01-18T08:24:01.000Z | #include <stdio.h>
#include <string.h>
#ifdef LINUX
#include <stdlib.h>
#include <mntent.h>
#include <libudev.h>
#else
#import <Foundation/Foundation.h>
#import <IOKit/IOKitLib.h>
#import <IOKit/usb/IOUSBLib.h>
#import <IOKit/hid/IOHIDKeys.h>
#endif
#ifdef LINUX
#include "../../PISupervisor/apple/include/KernelPr... | 25.660832 | 202 | 0.560672 | minku1024 |
04f4f85c36d483addd2997684f76e5dd9ccf0604 | 16,923 | cpp | C++ | src/tx/dexoperatortx.cpp | xiaoyu1998/wasm.bitcoin | 0fbd7bdc4555382abca64b5df33e8aec7a65ff3b | [
"MIT"
] | 1,313 | 2018-01-09T01:49:01.000Z | 2022-02-26T11:10:40.000Z | src/tx/dexoperatortx.cpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 32 | 2018-06-07T10:21:21.000Z | 2021-12-07T06:53:42.000Z | src/tx/dexoperatortx.cpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 322 | 2018-02-26T03:41:36.000Z | 2022-02-08T08:12:16.000Z | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2017-2019 The WaykiChain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "dexoperatortx.h"
#include "config/configuration.h"
#include "main.h"... | 40.778313 | 146 | 0.629085 | xiaoyu1998 |
04f50b1dcb0423c4c6aa123021f3eb27c0d528bc | 650 | hh | C++ | Sources/AGEngine/Render/Pipelining/Pipelines/CustomRenderPass/GaussianBlur.hh | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 47 | 2015-03-29T09:44:25.000Z | 2020-11-30T10:05:56.000Z | Sources/AGEngine/Render/Pipelining/Pipelines/CustomRenderPass/GaussianBlur.hh | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 313 | 2015-01-01T18:16:30.000Z | 2015-11-30T07:54:07.000Z | Sources/AGEngine/Render/Pipelining/Pipelines/CustomRenderPass/GaussianBlur.hh | Another-Game-Engine/AGE | d5d9e98235198fe580a43007914f515437635830 | [
"MIT"
] | 9 | 2015-06-07T13:21:54.000Z | 2020-08-25T09:50:07.000Z | #pragma once
#include <Render/Pipelining/Render/FrameBufferRender.hh>
#include <glm\glm.hpp>
namespace AGE
{
class Texture2D;
class Program;
class GaussianBlur : public FrameBufferRender
{
public:
GaussianBlur(glm::uvec2 const &screenSize, std::shared_ptr<PaintingManager> painterManager,
std::shared_ptr<... | 22.413793 | 93 | 0.763077 | Another-Game-Engine |
04f512e764550c0c54c81fc8cc2c4879d458aae7 | 4,332 | cpp | C++ | benchmarks/Benchmarks/SW_StreamCluster/SW_StreamCluster.cpp | cdsc-github/parade-ara-simulator | 00c977200a8e7aa31b03d560886ec80840a3c416 | [
"BSD-3-Clause"
] | 31 | 2015-12-15T19:14:10.000Z | 2021-12-31T17:40:21.000Z | benchmarks/Benchmarks/SW_StreamCluster/SW_StreamCluster.cpp | cdsc-github/parade-ara-simulator | 00c977200a8e7aa31b03d560886ec80840a3c416 | [
"BSD-3-Clause"
] | 5 | 2015-12-04T08:06:47.000Z | 2020-08-09T21:49:46.000Z | benchmarks/Benchmarks/SW_StreamCluster/SW_StreamCluster.cpp | cdsc-github/parade-ara-simulator | 00c977200a8e7aa31b03d560886ec80840a3c416 | [
"BSD-3-Clause"
] | 21 | 2015-11-05T08:25:45.000Z | 2021-06-19T02:24:50.000Z | #include "../../BenchmarkNode.h"
#include <stdint.h>
#include <iostream>
#include <cmath>
#define ITER_COUNT 2
#define CACHE_LINE 32 // cache line in byte
/* this structure represents a point */
/* these will be passed around to avoid copying coordinates */
typedef struct {
float weight;
float *coord;
long ass... | 24.896552 | 268 | 0.627193 | cdsc-github |
04f8467cb8c5d9b8b541f9054558e777feaa9d13 | 76,844 | cpp | C++ | Libs/Optimize/Optimize.cpp | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | Libs/Optimize/Optimize.cpp | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | Libs/Optimize/Optimize.cpp | amylenz/ShapeWorks | 78c2ee067a23e31f5b83d0121e60addb1b0bf462 | [
"MIT"
] | null | null | null | /*=========================================================================
Program: ShapeWorks: Particle-based Shape Correspondence & Visualization
File: Optimize.cpp
Copyright (c) 2020 Scientific Computing and Imaging Institute.
See ShapeWorksLicense.txt for details.
This software is ... | 35.675023 | 129 | 0.555073 | amylenz |
04f907d4b9efd4565b9880c36d4e309cefed618d | 1,551 | hpp | C++ | bulletgba/generator/data/code/kotuanzenx/tsx_proto11.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/kotuanzenx/tsx_proto11.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/kotuanzenx/tsx_proto11.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | #ifndef GENERATED_419896c26be84c4028d040a9d3789448_HPP
#define GENERATED_419896c26be84c4028d040a9d3789448_HPP
#include "bullet.hpp"
void stepfunc_10c3a88a8e44bab5c0812abd588467e2_e9c5251663b26b8b849de773f3f9b7a0(BulletInfo *p);
void stepfunc_6536e4546bdcfcf651852434db03b678_e9c5251663b26b8b849de773f3f9b7a0(Bullet... | 59.653846 | 104 | 0.909736 | pqrs-org |
04f980874480007455014b3cb0fad4ba69baeea2 | 462 | cpp | C++ | tests/math_unit/math/mix/scal/fun/value_of_rec_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | tests/math_unit/math/mix/scal/fun/value_of_rec_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | tests/math_unit/math/mix/scal/fun/value_of_rec_test.cpp | alashworth/stan-monorepo | 75596bc1f860ededd7b3e9ae9002aea97ee1cd46 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/mix/scal.hpp>
#include <gtest/gtest.h>
#include <math/rev/scal/util.hpp>
TEST(AgradRev, value_of_rec_0) {
using stan::math::fvar;
using stan::math::value_of_rec;
using stan::math::var;
fvar<var> fv_a(5.0);
fvar<fvar<var> > ffv_a(5.0);
fvar<fvar<fvar<fvar<fvar<var> > > > > fffffv_a(5.0)... | 25.666667 | 54 | 0.692641 | alashworth |
04f9cf4712dfa5787abb48dfeba3280f57cae510 | 592 | cxx | C++ | src/Kinematics.cxx | luketpickering/HepMCNuEvtTools | 1ec8590cb81475ae525ed32b70211786c67acaa4 | [
"MIT"
] | 2 | 2021-02-17T15:09:27.000Z | 2021-03-15T16:57:05.000Z | src/Kinematics.cxx | luketpickering/HepMCNuEvtTools | 1ec8590cb81475ae525ed32b70211786c67acaa4 | [
"MIT"
] | null | null | null | src/Kinematics.cxx | luketpickering/HepMCNuEvtTools | 1ec8590cb81475ae525ed32b70211786c67acaa4 | [
"MIT"
] | null | null | null | #include "NuHepMC/Kinematics.hxx"
#include "NuHepMC/ParticleStackReaderHelper.hxx"
#include <iostream>
namespace NuHepMC {
HepMC3::FourVector GetFourMomentumTransfer(HepMC3::GenEvent const &evt) {
auto ISProbe = GetProbe(evt);
if (!ISProbe) {
return HepMC3::FourVector::ZERO_VECTOR();
}
auto FSProbe = Ge... | 21.925926 | 73 | 0.709459 | luketpickering |
04fc2bddc73e7738bb6eaec9b0a5614d14b68792 | 643 | cpp | C++ | solutions/0543.diameter-of-binary-tree/0543.diameter-of-binary-tree.1558320628.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 1 | 2021-01-14T06:01:02.000Z | 2021-01-14T06:01:02.000Z | solutions/0543.diameter-of-binary-tree/0543.diameter-of-binary-tree.1558320628.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 8 | 2018-03-27T11:47:19.000Z | 2018-11-12T06:02:12.000Z | solutions/0543.diameter-of-binary-tree/0543.diameter-of-binary-tree.1558320628.cpp | nettee/leetcode | 19aa8d54d64cce3679db5878ee0194fad95d8fa1 | [
"MIT"
] | 2 | 2020-04-30T09:47:01.000Z | 2020-12-03T09:34:08.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int diameterOfBinaryTree(TreeNode* root) {
int diam = 0;
maxDepth(root, diam);
... | 22.964286 | 59 | 0.527216 | nettee |
04fc48087dbea9865ea7d0c9765dcc951b4eb33e | 329 | cpp | C++ | Chapter4/Practice/1090.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | 1 | 2022-02-13T02:22:39.000Z | 2022-02-13T02:22:39.000Z | Chapter4/Practice/1090.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | Chapter4/Practice/1090.cpp | flics04/XXXASYBT_CppBase | 0086df68497197f40286889b18f2d8c28eb833bb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int m, k, n, w, t = 0;
cin >> m >> k;
n = m;
while (n) {
w = n % 10;
if (w == 3)
++t;
n /= 10;
}
if (m % 19 == 0 && t == k)
cout << "YES" << endl;
else
cout << "NO" << endl;
ret... | 13.708333 | 30 | 0.343465 | flics04 |
04fc723f94a4f0ba29db7ca4dd467f73898a457a | 6,364 | cpp | C++ | src/caffe/layers/mvn_layer.cpp | oscmansan/nvcaffe | 22738c97e9c6991e49a12a924c3c773d95795b5c | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/mvn_layer.cpp | oscmansan/nvcaffe | 22738c97e9c6991e49a12a924c3c773d95795b5c | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/mvn_layer.cpp | oscmansan/nvcaffe | 22738c97e9c6991e49a12a924c3c773d95795b5c | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <vector>
#include "caffe/common_layers.hpp"
#include "caffe/layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype, typename Mtype>
void MVNLayer<Dtype,Mtype>::Reshape(const vector<Blob<Dtype,Mtype>*>& bottom,
const vector<Blob<Dtype,Mtype>*... | 41.058065 | 90 | 0.675519 | oscmansan |
04fcae2c2f1451c9bfc342f06a81a1f5e700e157 | 6,448 | cc | C++ | chrome/utility/image_writer/image_writer_win.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/utility/image_writer/image_writer_win.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/utility/image_writer/image_writer_win.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // 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 <windows.h>
#include <setupapi.h>
#include <stddef.h>
#include <winioctl.h>
#include "base/logging.h"
#include "chrome/utility/image_writer/erro... | 31.920792 | 79 | 0.555676 | zealoussnow |
04fcc311b301e319fe9202e65eb3003d5d4f86ca | 7,742 | cpp | C++ | dev/Code/Framework/AzCore/Platform/Common/UnixLike/AzCore/IO/SystemFile_UnixLike.cpp | BadDevCode/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Framework/AzCore/Platform/Common/UnixLike/AzCore/IO/SystemFile_UnixLike.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Framework/AzCore/Platform/Common/UnixLike/AzCore/IO/SystemFile_UnixLike.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 29.215094 | 145 | 0.530871 | BadDevCode |
04fdfa60440ea7fc5cba70c2ea416036838c44ab | 10,583 | cpp | C++ | Server Lib/Projeto IOCP/PANGYA_DB/pangya_db.cpp | eantoniobr/SuperSS-Dev | f57c094f164cc90c2694df33ba394304cd0e7846 | [
"MIT"
] | null | null | null | Server Lib/Projeto IOCP/PANGYA_DB/pangya_db.cpp | eantoniobr/SuperSS-Dev | f57c094f164cc90c2694df33ba394304cd0e7846 | [
"MIT"
] | null | null | null | Server Lib/Projeto IOCP/PANGYA_DB/pangya_db.cpp | eantoniobr/SuperSS-Dev | f57c094f164cc90c2694df33ba394304cd0e7846 | [
"MIT"
] | 1 | 2021-11-03T00:21:07.000Z | 2021-11-03T00:21:07.000Z | // Arquivo pangya_db.cpp
// Criado em 25/12/2017 por Acrisio
// Implementação da classe pangya_db
#if defined(_WIN32)
#pragma pack(1)
#endif
#if defined(_WIN32)
#include <WinSock2.h>
#elif defined(__linux__)
#include "../UTIL/WinPort.h"
#include <unistd.h>
#endif
#include "pangya_db.h"
#include "../UTIL/exception.h"... | 25.749392 | 230 | 0.681187 | eantoniobr |
04ff6d158f1e6e4c092de54081d3e681d50acbcd | 3,824 | cpp | C++ | tests/SRGBTest.cpp | JimmySoftware/skia | d5a244e6c00c12f8c91c94ff4549191177dd817e | [
"BSD-3-Clause"
] | null | null | null | tests/SRGBTest.cpp | JimmySoftware/skia | d5a244e6c00c12f8c91c94ff4549191177dd817e | [
"BSD-3-Clause"
] | null | null | null | tests/SRGBTest.cpp | JimmySoftware/skia | d5a244e6c00c12f8c91c94ff4549191177dd817e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkColorSpace.h"
#include "include/core/SkTypes.h"
#include "src/core/SkColorSpaceXformSteps.h"
#include "src/core/SkRasterPipeline.h"
#include "tests/Te... | 29.643411 | 92 | 0.572699 | JimmySoftware |
ca012ee4ec0f3d0223dcb884c068974dd3eb7988 | 7,717 | cpp | C++ | examples/world_gen/game.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | 13 | 2017-04-12T16:26:46.000Z | 2022-03-01T22:04:34.000Z | examples/world_gen/game.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | null | null | null | examples/world_gen/game.cpp | jjbandit/game | c28affd868201d3151ca75a20883e7fb26e09302 | [
"WTFPL"
] | null | null | null | #include <bonsai_types.h>
#include <game_constants.h>
#include <game_types.h>
#define RANDOM_HOTKEY_MASHING 0
#if RANDOM_HOTKEY_MASHING
static u32 HotkeyFrameTimeout = 0;
static random_series HotkeyEntropy = {};
static hotkeys StashedHotkeys = {};
#endif
model *
AllocateGameModels(game_state *GameState, memory_are... | 31.116935 | 125 | 0.705067 | jjbandit |
ca01560870d938fafd39fcc70b08ba9abb9f6dca | 145 | cpp | C++ | nmnnmm.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | nmnnmm.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | nmnnmm.cpp | taareek/c-plus-plus | b9d04f710e9b2e65786618f8bbced4a56c149444 | [
"Unlicense"
] | null | null | null | #include<iostream>
using namespace std;
int hey(int a){
int c= a+3;
return c;
}
int main(){
int i= 29;
cout<<hey(i);
}
| 13.181818 | 21 | 0.524138 | taareek |
ca03daaaf43fbbb876ff8dec0968976ad62433cc | 3,137 | cpp | C++ | mbed-os/TESTS/mbed_drivers/race_test/main.cpp | ghsecuritylab/mbed-os-wave_player-example | 39af3df51503c77e149eb732dbc07c7fd4ee351e | [
"Apache-2.0"
] | 8 | 2017-01-20T13:14:49.000Z | 2020-10-22T01:12:40.000Z | mbed-os/TESTS/mbed_drivers/race_test/main.cpp | ghsecuritylab/mbed-os-wave_player-example | 39af3df51503c77e149eb732dbc07c7fd4ee351e | [
"Apache-2.0"
] | 5 | 2018-08-15T12:02:20.000Z | 2018-09-03T11:28:18.000Z | mbed-os/TESTS/mbed_drivers/race_test/main.cpp | ghsecuritylab/mbed-os-wave_player-example | 39af3df51503c77e149eb732dbc07c7fd4ee351e | [
"Apache-2.0"
] | 5 | 2018-03-09T15:48:38.000Z | 2020-10-22T01:12:44.000Z | /*
* Copyright (c) 2016-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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... | 22.731884 | 88 | 0.706407 | ghsecuritylab |
ca0cbaf2d15916a5a1ab9f854b8d6b3323f5fa2f | 1,631 | cpp | C++ | Basic Programs/CPP/LenghtofLL(recursive).cpp | PrajaktaSathe/HacktoberFest2020 | e84fc7a513afe3dd75c7c28db1866d7f5e6a8147 | [
"MIT"
] | null | null | null | Basic Programs/CPP/LenghtofLL(recursive).cpp | PrajaktaSathe/HacktoberFest2020 | e84fc7a513afe3dd75c7c28db1866d7f5e6a8147 | [
"MIT"
] | null | null | null | Basic Programs/CPP/LenghtofLL(recursive).cpp | PrajaktaSathe/HacktoberFest2020 | e84fc7a513afe3dd75c7c28db1866d7f5e6a8147 | [
"MIT"
] | null | null | null | /*
Given a linked list, find and return the length of input LL recursively.
Input format :
Linked list elements (separated by space and terminated by -1)
Output format :
Length of LL
Sample Input :
3 4 5 2 6 1 9 -1
Sample Output :
7
*/
/**********
* Following is the Node class that is already written.
cla... | 15.533333 | 72 | 0.517474 | PrajaktaSathe |
ca0d4c6b467942844ddd87d378229d2df7cddc08 | 1,187 | cpp | C++ | 1175/e_fin.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1175/e_fin.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1175/e_fin.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <vector>
using namespace std;
const int INF = 1e9;
const int MAX_N = 5e5 + 5;
const int MAX_P = 21;
int f[MAX_N][MAX_P];
int next_right[MAX_N];
int n, m;
int main() {
cin >> n >> m;
for (int i = 0; i < n; ++i) {
int l, r;... | 19.459016 | 71 | 0.428812 | vladshablinsky |
ca105b6ad8eadb8ebbfced706b616d58a3d2c50e | 87,328 | hpp | C++ | include/GlobalNamespace/MultiplayerSessionManager.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MultiplayerSessionManager.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/MultiplayerSessionManager.hpp | Fernthedev/BeatSaber-Quest-Codegen | 716e4ff3f8608f7ed5b83e2af3be805f69e26d9e | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: StandaloneMono... | 73.077824 | 2,247 | 0.774998 | Fernthedev |
ca10ce59e8add44aa2c13e8d28484a80163462eb | 1,122 | cpp | C++ | imgplane.cpp | dghilardi/Sgherender | 1940dc52034c5e00adc3bd7a2ab6fbcee73007e1 | [
"MIT"
] | null | null | null | imgplane.cpp | dghilardi/Sgherender | 1940dc52034c5e00adc3bd7a2ab6fbcee73007e1 | [
"MIT"
] | null | null | null | imgplane.cpp | dghilardi/Sgherender | 1940dc52034c5e00adc3bd7a2ab6fbcee73007e1 | [
"MIT"
] | null | null | null | #include "imgplane.h"
ImgPlane::ImgPlane(int w, int h) : width(w), height(h)
{
int size = w*h;
for(int i=0; i<size; ++i){
image.push_back(new Color(0,0,0));
raysNumber.push_back(0);
}
}
void ImgPlane::updatePixel(int x, int y, Color &pxl, int rays){
Color *actual = image[x*width+y];
... | 34 | 83 | 0.578431 | dghilardi |
ca11d073f33b173a5993690aa4c7400e6d6024cf | 3,503 | cpp | C++ | Graph/ManucianGoesToDerby_IMP_msp.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | Graph/ManucianGoesToDerby_IMP_msp.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | Graph/ManucianGoesToDerby_IMP_msp.cpp | Satyabrat35/Programming | 841ead1bf847b567d8e21963673413cbd65277f4 | [
"Apache-2.0"
] | null | null | null | /**************erik****************/
#include<bits/stdc++.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
map<int,int> mp1;
set<int> s1;
//set<int>::iterator it;
#define maxm(a,b,c) max(a,max(c,b))
#define minm(a,b,c) mi... | 26.338346 | 82 | 0.375393 | Satyabrat35 |
ca147e45cea256785a4437433d70cbc6a13c4bd0 | 143,300 | cpp | C++ | src/libbrep/PullbackCurve.cpp | quadmotor/brlcad | 05952aafa27ee9df17cd900f5d8f8217ed2194af | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 35 | 2015-03-11T11:51:48.000Z | 2021-07-25T16:04:49.000Z | src/libbrep/PullbackCurve.cpp | CloudComputer/brlcad | 05952aafa27ee9df17cd900f5d8f8217ed2194af | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/libbrep/PullbackCurve.cpp | CloudComputer/brlcad | 05952aafa27ee9df17cd900f5d8f8217ed2194af | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 19 | 2016-05-04T08:39:37.000Z | 2021-12-07T12:45:54.000Z | /* P U L L B A C K C U R V E . C P P
* BRL-CAD
*
* Copyright (c) 2009-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* versio... | 31.11835 | 204 | 0.603803 | quadmotor |
ca155a3ed1b5de97d9d89de64f6d806f518bcf37 | 1,895 | cpp | C++ | Siv3D/src/Siv3D/TCPServer/SivTCPServer.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 2 | 2021-11-22T00:52:48.000Z | 2021-12-24T09:33:55.000Z | Siv3D/src/Siv3D/TCPServer/SivTCPServer.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/TCPServer/SivTCPServer.cpp | tas9n/OpenSiv3D | c561cba1d88eb9cd9606ba983fcc1120192d5615 | [
"MIT"
] | 1 | 2021-12-31T05:08:00.000Z | 2021-12-31T05:08:00.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/TCPServer.hpp>
# include <Siv... | 19.536082 | 96 | 0.661214 | tas9n |
ca15af76b7aa10d521476e7213ca8ee5d49dec14 | 11,799 | cpp | C++ | Core-src/PeakFile.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 6 | 2015-03-04T19:41:12.000Z | 2022-03-27T09:44:25.000Z | Core-src/PeakFile.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 20 | 2015-03-03T21:02:20.000Z | 2021-08-02T13:26:59.000Z | Core-src/PeakFile.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 8 | 2015-02-23T19:10:32.000Z | 2020-10-26T08:03:00.000Z | /*
Copyright (c) 2003, Xentronix
Author: Frans van Nispen (frans@xentronix.com)
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 ... | 25.157783 | 89 | 0.56437 | HaikuArchives |
ca16e67e1877b5938779837034e9e48dd1883b06 | 8,914 | cpp | C++ | src/common/sort/radix_sort.cpp | DavidKorczynski/duckdb | 46fb0e1b13a803be49e4565f9878d6d3e5a32380 | [
"MIT"
] | 1 | 2021-10-05T11:20:43.000Z | 2021-10-05T11:20:43.000Z | src/common/sort/radix_sort.cpp | DavidKorczynski/duckdb | 46fb0e1b13a803be49e4565f9878d6d3e5a32380 | [
"MIT"
] | null | null | null | src/common/sort/radix_sort.cpp | DavidKorczynski/duckdb | 46fb0e1b13a803be49e4565f9878d6d3e5a32380 | [
"MIT"
] | null | null | null | #include "duckdb/common/sort/comparators.hpp"
#include "duckdb/common/sort/sort.hpp"
namespace duckdb {
//! Calls std::sort on strings that are tied by their prefix after the radix sort
static void SortTiedBlobs(BufferManager &buffer_manager, const data_ptr_t dataptr, const idx_t &start, const idx_t &end,
... | 39.096491 | 120 | 0.67523 | DavidKorczynski |
ca197403de71028efb91aaef9f94f71c9dba68b3 | 6,493 | hpp | C++ | src/slave/containerizer/docker.hpp | HICAS-ChameLeon/Chameleon | cd0666317eb4e92a4f9fe0b2955b46bc224cf862 | [
"Apache-2.0"
] | 4 | 2019-03-06T03:04:40.000Z | 2019-07-20T15:35:00.000Z | src/slave/containerizer/docker.hpp | HICAS-ChameLeon/Chameleon | cd0666317eb4e92a4f9fe0b2955b46bc224cf862 | [
"Apache-2.0"
] | 6 | 2018-11-30T08:04:45.000Z | 2019-05-15T03:04:28.000Z | src/slave/containerizer/docker.hpp | HICAS-ChameLeon/Chameleon | cd0666317eb4e92a4f9fe0b2955b46bc224cf862 | [
"Apache-2.0"
] | 4 | 2019-03-11T11:51:22.000Z | 2020-05-11T07:27:31.000Z | /*
* Copyright :SIAT 异构智能计算体系结构与系统研究中心
* Author : Heldon 764165887@qq.com
* Date :19-03-01
* Description:containerizer(docker) codes
*/
#ifndef CHAMELEON_DOCKER_HPP
#define CHAMELEON_DOCKER_HPP
//C++11 dependencies
#include <list>
#include <map>
#include <set>
#include <string>
//stout dependencies
... | 33.297436 | 91 | 0.551517 | HICAS-ChameLeon |
ca19ce947ee073ce2ea4f581d3a999c5189f0211 | 1,147 | cpp | C++ | src/behaviour/meleeattackbhv.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | src/behaviour/meleeattackbhv.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | src/behaviour/meleeattackbhv.cpp | alexeyden/whack | 2bff3beb0afb8c5aaba996b2838d2f0b9797039c | [
"WTFPL"
] | null | null | null | #include "meleeattackbhv.h"
#include "util/math.h"
#include "objects//enemy.h"
#include "level/level.h"
MeleeAttackBhv::MeleeAttackBhv(Enemy* owner):
Behaviour(owner),
_attackTime { 0.0f }
{
}
void MeleeAttackBhv::collision(float x, float y, float z)
{
(void) x;
(void) y;
(void) z;
}
void Mele... | 21.641509 | 83 | 0.562337 | alexeyden |
ca19e5870270f147d6b3ea9fc9cb083435fd16b8 | 76,520 | cpp | C++ | gui/qtc-gdbmacros/gdbmacros.cpp | frooms/stira | 60b419f3e478397a8ab43ce9315a259567d94a26 | [
"MIT"
] | 8 | 2016-03-23T08:12:33.000Z | 2022-01-25T14:07:03.000Z | gui/qtc-gdbmacros/gdbmacros.cpp | frooms/stira | 60b419f3e478397a8ab43ce9315a259567d94a26 | [
"MIT"
] | null | null | null | gui/qtc-gdbmacros/gdbmacros.cpp | frooms/stira | 60b419f3e478397a8ab43ce9315a259567d94a26 | [
"MIT"
] | 8 | 2015-06-29T12:00:06.000Z | 2019-09-03T12:40:47.000Z | /***************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
**
** Non-Open Source Usage
**
** Licensees may use this file in accor... | 30.595762 | 103 | 0.511683 | frooms |
ca1c14abb3bd707028de6793c56e9d0ecc84737c | 4,446 | hpp | C++ | include/aikido/statespace/SE2.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 181 | 2016-04-22T15:11:23.000Z | 2022-03-26T12:51:08.000Z | include/aikido/statespace/SE2.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 514 | 2016-04-20T04:29:51.000Z | 2022-02-10T19:46:21.000Z | include/aikido/statespace/SE2.hpp | personalrobotics/r3 | 1303e3f3ef99a0c2249abc7415d19113f0026565 | [
"BSD-3-Clause"
] | 31 | 2017-03-17T09:53:02.000Z | 2022-03-23T10:35:05.000Z | #ifndef AIKIDO_STATESPACE_SE2STATESPACE_HPP_
#define AIKIDO_STATESPACE_SE2STATESPACE_HPP_
#include <Eigen/Geometry>
#include "aikido/statespace/ScopedState.hpp"
#include "aikido/statespace/StateSpace.hpp"
namespace aikido {
namespace statespace {
/// Defined in detail/SE2-impl.hpp
template <class>
class SE2StateHand... | 30.662069 | 80 | 0.724022 | personalrobotics |
ca20d5d8ec321839eedc607acf85098ea9bba148 | 14,710 | cpp | C++ | clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | clang/test/OpenMP/taskgroup_task_reduction_codegen.cpp | ornata/llvm-project | 494913b8b4e4bce0b3525e5569d8e486e82b9a52 | [
"Apache-2.0"
] | null | null | null | // RUN: %clang_cc1 -no-opaque-pointers -verify -triple x86_64-apple-darwin10 -fopenmp -x c++ -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s
// RUN: %clang_cc1 -no-opaque-pointers -fopenmp -x c++ -triple x86_64-apple-darwin10 -inc... | 56.576923 | 193 | 0.581033 | ornata |
ca295e08afd4609bcc6a6effd632ed99c3f59b55 | 20,490 | cpp | C++ | samples/luxcoreui/uimenu.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | samples/luxcoreui/uimenu.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | samples/luxcoreui/uimenu.cpp | LuxRender/LuxRays | edb001ddeb744b534f6fe98c7b789d4635196718 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
* Copyright 1998-2017 by authors (see AUTHORS.txt) *
* *
* This file is part of LuxRender. *
* ... | 34.436975 | 116 | 0.621523 | LuxRender |
ca2a341497fe45225d9ffdab7a85dc569d2c9fb1 | 26,189 | cpp | C++ | src/Layers/xrRender/ParticleEffect.cpp | Samsuper12/ixray-1.6 | 95b8ad458d4550118c7fbf34c5de872f3d1ca75e | [
"Linux-OpenIB"
] | 2 | 2020-05-17T10:02:18.000Z | 2020-08-08T21:10:36.000Z | src/Layers/xrRender/ParticleEffect.cpp | Samsuper12/ixray-1.6 | 95b8ad458d4550118c7fbf34c5de872f3d1ca75e | [
"Linux-OpenIB"
] | null | null | null | src/Layers/xrRender/ParticleEffect.cpp | Samsuper12/ixray-1.6 | 95b8ad458d4550118c7fbf34c5de872f3d1ca75e | [
"Linux-OpenIB"
] | null | null | null | #include "stdafx.h"
#pragma hdrstop
#include "ParticleEffect.h"
#ifndef _EDITOR
#include <xmmintrin.h>
#include "../../xrCPU_Pipe/ttapi.h"
#pragma comment(lib,"xrCPU_Pipe.lib")
#endif
using namespace PAPI;
using namespace PS;
const u32 PS::uDT_STEP = 33;
const float PS::fDT_STEP = float(uDT_STEP)/1... | 33.277001 | 186 | 0.559013 | Samsuper12 |
ca2ec8ce288fab5a0da6054bf551a98fc716ea5c | 3,349 | cpp | C++ | Gems/Blast/Code/Source/Components/BlastFamilyComponentNotificationBusHandler.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-19T23:54:05.000Z | 2021-07-19T23:54:05.000Z | Gems/Blast/Code/Source/Components/BlastFamilyComponentNotificationBusHandler.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/Blast/Code/Source/Components/BlastFamilyComponentNotificationBusHandler.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"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 "StdAfx.h"
#include <Components/BlastFamilyComponentNotificationBusHandler.h>
namespace... | 39.4 | 118 | 0.724694 | Schneidex69 |
ca2edbd855f22ff164a345a4f5558a5ebf336c32 | 375 | cpp | C++ | cpp-eindopdracht/creditsview.cpp | TvanBronswijk/cpp-eindopdracht | 657febe944cd856da44c3cc6cb6d1822c1fbf740 | [
"MIT"
] | null | null | null | cpp-eindopdracht/creditsview.cpp | TvanBronswijk/cpp-eindopdracht | 657febe944cd856da44c3cc6cb6d1822c1fbf740 | [
"MIT"
] | null | null | null | cpp-eindopdracht/creditsview.cpp | TvanBronswijk/cpp-eindopdracht | 657febe944cd856da44c3cc6cb6d1822c1fbf740 | [
"MIT"
] | null | null | null | #include "creditsview.h"
#include "gamecontext.h"
CreditsView::CreditsView(GameContext* context) : View(context)
{
}
std::ostream & CreditsView::display()
{
return std::cout
<< "This game was created by Tobi van Bronswijk and Rick van Berlo."
<< std::endl
<< "Thanks for playing!"
<< std::endl;
}
bool Credit... | 17.045455 | 70 | 0.685333 | TvanBronswijk |
ca31ec481bbb8c4a5201999ae7d67f5783ec3c4f | 3,385 | cc | C++ | src/lib/dhcpsrv/testutils/config_result_check.cc | telekom/dt-kea-netconf | f347df353d58827d6deb09f281d3680ab089e7af | [
"Apache-2.0"
] | 2 | 2021-06-29T09:56:34.000Z | 2021-06-29T09:56:39.000Z | src/lib/dhcpsrv/testutils/config_result_check.cc | telekom/dt-kea-netconf | f347df353d58827d6deb09f281d3680ab089e7af | [
"Apache-2.0"
] | null | null | null | src/lib/dhcpsrv/testutils/config_result_check.cc | telekom/dt-kea-netconf | f347df353d58827d6deb09f281d3680ab089e7af | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <cc/command_int... | 37.611111 | 80 | 0.570162 | telekom |
ca33067d758bb649588693b6048e4b820f51f274 | 201 | hpp | C++ | src/ProjectForecast/Systems/EventFeedbackSystem.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/ProjectForecast/Systems/EventFeedbackSystem.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/ProjectForecast/Systems/EventFeedbackSystem.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #pragma once
#include "KEngine/Interfaces/ISystem.hpp"
namespace pf
{
/// <summary>
///
/// </summary>
class EventFeedbackSystem : public ke::ISystem
{
public:
};
} | 12.5625 | 50 | 0.567164 | yxbh |