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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1d3a7864125a9f8653c1e33370a551b3b100b823 | 1,401 | hpp | C++ | external/boost_1_60_0/qsboost/type_traits/decay.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/type_traits/decay.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/type_traits/decay.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | // (C) Copyright John Maddock & Thorsten Ottosen 2005.
// Use, modification and distribution are subject to 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).
//
// See http://www.boost.org/libs/type_traits for most recent version... | 31.840909 | 129 | 0.729479 | wouterboomsma |
1d3caba3140464c20119ea3004da1c4e46ecf5eb | 2,808 | cpp | C++ | oneflow/core/kernel/wait_and_send_ids_kernel.cpp | xmyqsh/oneflow | 18baa096d72bf2b99f03330f7b2c19f2b41f5bc9 | [
"Apache-2.0"
] | null | null | null | oneflow/core/kernel/wait_and_send_ids_kernel.cpp | xmyqsh/oneflow | 18baa096d72bf2b99f03330f7b2c19f2b41f5bc9 | [
"Apache-2.0"
] | null | null | null | oneflow/core/kernel/wait_and_send_ids_kernel.cpp | xmyqsh/oneflow | 18baa096d72bf2b99f03330f7b2c19f2b41f5bc9 | [
"Apache-2.0"
] | null | null | null | /*
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... | 37.945946 | 99 | 0.715456 | xmyqsh |
1d3e96adeca92c0ed35baf7e1012a7cfa898e84c | 90,071 | cpp | C++ | ds/security/services/ca/ocmsetup/csocm.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/services/ca/ocmsetup/csocm.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/services/ca/ocmsetup/csocm.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, 1997 - 1999
//
// File: csocm.cpp
//
// Contents: OCM component DLL for running the Certificate
// Server setup.
//
// Functions:
//
// ... | 30.962874 | 97 | 0.544837 | npocmaka |
1d3f3d901d7ad035721f3e56757df46247341e57 | 11,190 | cpp | C++ | components/common/sources/licensing/core/licensing_manager.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/common/sources/licensing/core/licensing_manager.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/common/sources/licensing/core/licensing_manager.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "license_manager_shared.h"
#ifdef _MSC_VER
#include <time.h>
#endif
using namespace common;
namespace
{
/*
Константы
*/
const size_t COMPONENTS_ARRAY_RESERVE_SIZE = 64; //резервируемое количество компонентов
const char* ALLOWED_COMPONENTS [] = { "common.*" };
const char* IGNORED_... | 30 | 159 | 0.632529 | untgames |
1d40ffb1da64bc022b52654c32bb2fc3c866483b | 281 | cpp | C++ | Scripts/233.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | 17 | 2018-08-23T08:53:56.000Z | 2021-04-17T00:06:13.000Z | Scripts/233.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | Scripts/233.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | class Solution {
public:
int countDigitOne(int n) {
int res = 0, a = 1, b = 1;
while (n > 0) {
res += (n + 8) / 10 * a + (n % 10 == 1) * b;
b += n % 10 * a;
a *= 10;
n /= 10;
}
return res;
}
}; | 21.615385 | 56 | 0.320285 | zzz0906 |
1d41e19dc0a730e7803fdfcda45aa1c481b8ca90 | 1,559 | cpp | C++ | aslam_cv/aslam_cameras/src/FovDistortion.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | aslam_cv/aslam_cameras/src/FovDistortion.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | aslam_cv/aslam_cameras/src/FovDistortion.cpp | chengfzy/kalibr | fe9705b380b160dc939607135f7d30efa64ea2e9 | [
"BSD-4-Clause"
] | null | null | null | #include <aslam/cameras/FovDistortion.hpp>
#include <sm/serialization_macros.hpp>
namespace aslam {
namespace cameras {
FovDistortion::FovDistortion() : _w(1.0) {
SM_ASSERT_TRUE(std::runtime_error, areParametersValid(_w), "Invalid distortion parameter");
}
FovDistortion::FovDistortion(double w) : _w(w) {
SM_A... | 31.816327 | 106 | 0.738935 | chengfzy |
1d44ce57aab3ebc7f7358fbcea1cfec04270b000 | 350 | hpp | C++ | cpp/inc/header.hpp | KCNyu/UnixTaskbook | f653ca435b8b4a6739aed184f81e7661934070f8 | [
"MIT"
] | null | null | null | cpp/inc/header.hpp | KCNyu/UnixTaskbook | f653ca435b8b4a6739aed184f81e7661934070f8 | [
"MIT"
] | null | null | null | cpp/inc/header.hpp | KCNyu/UnixTaskbook | f653ca435b8b4a6739aed184f81e7661934070f8 | [
"MIT"
] | null | null | null | #ifndef HEADER_HPP
#define HEADER_HPP
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <fstream>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <cassert>
#include <cstring>
#include <ctime>
#include "error.hpp"
... | 15.217391 | 22 | 0.722857 | KCNyu |
1d44e69ebf330562f5585661a267f67a4e94c7b1 | 10,210 | cpp | C++ | CrazyCanvas/Source/ECS/Systems/Player/WeaponSystemClient.cpp | IbexOmega/CrazyCanvas | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 18 | 2020-09-04T08:00:54.000Z | 2021-08-29T23:04:45.000Z | CrazyCanvas/Source/ECS/Systems/Player/WeaponSystemClient.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 32 | 2020-09-12T19:24:50.000Z | 2020-12-11T14:29:44.000Z | CrazyCanvas/Source/ECS/Systems/Player/WeaponSystemClient.cpp | IbexOmega/LambdaEngine | f60f01aaf9c988e4da8990dc1ef3caac20cecf7e | [
"MIT"
] | 2 | 2020-12-15T15:36:13.000Z | 2021-03-27T14:27:02.000Z | #include "ECS/Systems/Player/WeaponSystemClient.h"
#include "ECS/Components/Player/Player.h"
#include "ECS/ECSCore.h"
#include "Application/API/Events/EventQueue.h"
#include "Resources/Material.h"
#include "Resources/ResourceManager.h"
#include "Input/API/InputActionSystem.h"
#include "Math/Random.h"
#include "Lob... | 33.47541 | 204 | 0.760333 | IbexOmega |
1d490289541c1f9a95e8a96554b9e424bf3d146d | 5,187 | cpp | C++ | test/Math/Test_Statistics.cpp | petiaccja/DSPBB | 405d43c4458adfc16ffad68dac4bcd7e1735407f | [
"MIT"
] | 2 | 2021-03-11T13:34:33.000Z | 2022-02-08T20:25:20.000Z | test/Math/Test_Statistics.cpp | MoeSzyslak98/DSPBB | 405d43c4458adfc16ffad68dac4bcd7e1735407f | [
"MIT"
] | 56 | 2021-08-14T11:02:23.000Z | 2022-02-25T15:41:31.000Z | test/Math/Test_Statistics.cpp | MoeSzyslak98/DSPBB | 405d43c4458adfc16ffad68dac4bcd7e1735407f | [
"MIT"
] | 2 | 2021-03-29T14:32:16.000Z | 2022-02-08T20:25:15.000Z | #include <dspbb/Math/Statistics.hpp>
#include <dspbb/Primitives/Signal.hpp>
#include <catch2/catch.hpp>
#include <complex>
using namespace dspbb;
using namespace std::complex_literals;
TEST_CASE("CentralMoment #0 and #1", "[Statistics]") {
Signal<float> s = { 2, 4, 4, 4, 5, 5, 7, 9 };
REQUIRE(0 == CentralMoment(s,... | 27.887097 | 68 | 0.585117 | petiaccja |
1d4b0293cf006e7061b39800d8f7c57d62a36701 | 17,122 | cpp | C++ | libs/leaf/test/error_code_test.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 1 | 2020-04-28T15:15:28.000Z | 2020-04-28T15:15:28.000Z | libs/leaf/test/error_code_test.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 2 | 2017-05-23T08:01:11.000Z | 2019-09-06T20:49:05.000Z | libs/leaf/test/error_code_test.cpp | armdevvel/boost | 30d0930951181ef5bc5aad2231ebac8575db0720 | [
"BSL-1.0"
] | 8 | 2015-11-03T14:12:19.000Z | 2020-09-22T19:20:54.000Z | // Copyright (c) 2018-2020 Emil Dotchevski and Reverge Studios, Inc.
// 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 <boost/leaf/handle_errors.hpp>
#include <boost/leaf/pred.hpp>
#include <boost/leaf/resu... | 28.632107 | 111 | 0.414846 | armdevvel |
1d4b82cf08c158b401a1dba6a9ec2070a7e9ad03 | 2,945 | cpp | C++ | Library/BigFix/ArchiveWriter.cpp | bigfix/bfarchive | 6cff4e3a5688d665704c353f31072b72059e1865 | [
"Apache-2.0"
] | 5 | 2015-11-07T01:21:58.000Z | 2022-03-10T11:15:50.000Z | Library/BigFix/ArchiveWriter.cpp | bigfix/bfarchive | 6cff4e3a5688d665704c353f31072b72059e1865 | [
"Apache-2.0"
] | 5 | 2015-02-26T23:21:09.000Z | 2015-11-30T19:16:33.000Z | Library/BigFix/ArchiveWriter.cpp | bigfix/bfarchive | 6cff4e3a5688d665704c353f31072b72059e1865 | [
"Apache-2.0"
] | 2 | 2017-05-09T10:10:54.000Z | 2020-01-21T18:26:56.000Z | /*
Copyright 2014 International Business Machines, 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 o... | 26.531532 | 79 | 0.653311 | bigfix |
1d4d16333ee38b5bdc4bffda28be477c9c6631fc | 755 | cpp | C++ | problems/sliding_window_maximum/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | problems/sliding_window_maximum/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | problems/sliding_window_maximum/solution.cpp | sauravchandra1/Leetcode | be89c7d8d93083326a94906a28bfad2342aa1dfe | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> maxSlidingWindow(vector<int>& nums, int k) {
deque<pair<int, int>> dq;
int len = nums.size();
auto get = [&](int i) {
while (!dq.empty() &&
dq.front().second < (i - k + 1)) dq.pop_front();
if (dq.empty()) dq.pus... | 31.458333 | 67 | 0.405298 | sauravchandra1 |
1d4d7f8023f673b3f184d1aed3d450aa2550d4ca | 1,797 | cpp | C++ | DNS with Benefits/main.cpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | DNS with Benefits/main.cpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | DNS with Benefits/main.cpp | SFaghihi/DNSWithBenefits | 2553866c0a634313eab00f1a6eb485fa3eb7ab14 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// DNS with Benefits
//
// Created by Soroush Faghihi on 5/26/18.
// Copyright © 2018 sorco. All rights reserved.
//
#include <iostream>
#include <arpa/inet.h>
#include <sys/time.h>
#include "cxxopts.hpp"
#include "DBRoutingSystem.hpp"
#include "DBDNSHypervisor.hpp"
// Cammand line options struc... | 26.043478 | 108 | 0.64552 | SFaghihi |
1d4e88fb7edf1f44f945bbe7d41d4cdab68cec8d | 1,662 | cpp | C++ | BlockChain.cpp | tryingsomestuff/blockchain | c3fb445d4e3512282dc05f59159d17e531c16eaa | [
"MIT"
] | null | null | null | BlockChain.cpp | tryingsomestuff/blockchain | c3fb445d4e3512282dc05f59159d17e531c16eaa | [
"MIT"
] | null | null | null | BlockChain.cpp | tryingsomestuff/blockchain | c3fb445d4e3512282dc05f59159d17e531c16eaa | [
"MIT"
] | null | null | null | #include "BlockChain.h"
#include <cassert>
#include <iostream>
BlockChain::BlockChain(const uint32_t difficulty): difficulty(difficulty > 0 ? difficulty : defaultDifficulty_) {
Block b0(0, "Zero!");
b0.prevHash = std::string(64,'0');
b0.mine(BlockChain::difficulty);
chain_.push_back(b0);
}
void BlockChai... | 25.96875 | 113 | 0.628761 | tryingsomestuff |
1d506e52c962aa1f6af0305e003bf4af4f9ea683 | 6,046 | cc | C++ | third_party/blink/renderer/core/frame/dom_visual_viewport.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/core/frame/dom_visual_viewport.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/core/frame/dom_visual_viewport.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2016 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions ... | 33.588889 | 80 | 0.70559 | sarang-apps |
1d514992f8433121040c9cdc0a3b8932a2bef787 | 3,104 | cc | C++ | pagespeed/kernel/thread/scheduler_sequence.cc | PeterDaveHello/incubator-pagespeed-mod | 885f4653e204e1152cb3928f0755d93ec5fdceae | [
"Apache-2.0"
] | null | null | null | pagespeed/kernel/thread/scheduler_sequence.cc | PeterDaveHello/incubator-pagespeed-mod | 885f4653e204e1152cb3928f0755d93ec5fdceae | [
"Apache-2.0"
] | null | null | null | pagespeed/kernel/thread/scheduler_sequence.cc | PeterDaveHello/incubator-pagespeed-mod | 885f4653e204e1152cb3928f0755d93ec5fdceae | [
"Apache-2.0"
] | 1 | 2020-03-14T15:50:55.000Z | 2020-03-14T15:50:55.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 31.04 | 75 | 0.708763 | PeterDaveHello |
1d52b958b776ab13ef1d7080c954fccbbf50fc08 | 740 | cpp | C++ | 3_OOP/ThucHanh-T3/Bai01/Bai01.cpp | SummerSad/HCMUS-Lectures | b376e144e2601a73684e2ff437ab5c94a943909c | [
"MIT"
] | 8 | 2020-05-11T09:48:40.000Z | 2022-03-28T13:43:27.000Z | 3_OOP/ThucHanh-T3/Bai01/Bai01.cpp | SummerSad/HCMUS-Lectures | b376e144e2601a73684e2ff437ab5c94a943909c | [
"MIT"
] | null | null | null | 3_OOP/ThucHanh-T3/Bai01/Bai01.cpp | SummerSad/HCMUS-Lectures | b376e144e2601a73684e2ff437ab5c94a943909c | [
"MIT"
] | 4 | 2021-04-13T04:01:50.000Z | 2021-12-10T01:12:15.000Z | // 1612180
// Nguyen Tran Hau
// Bai 1 ngay
#include "Date.h"
void main()
{
Date d1; // Current date: 2/11/2012
Date d2(2012); // 1/1/2012
Date d3(2012, 8); // 01/08/2012
Date d4(2012, 10, 17); // 17/10/2012
Date d5(d2);
Date d6;
d6 = d3;
d6 = d3.Tomorrow();
d5 = d2.Yesterday();
... | 19.473684 | 65 | 0.474324 | SummerSad |
1d563649559e46343699dff0a1ae835fef984928 | 141,826 | cpp | C++ | src/gmatutil/util/FileManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/gmatutil/util/FileManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/gmatutil/util/FileManager.cpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | 1 | 2021-12-05T05:40:15.000Z | 2021-12-05T05:40:15.000Z | //$Id$
//------------------------------------------------------------------------------
// FileManager
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2018 United States Government as repr... | 36.217058 | 113 | 0.510774 | saichikine |
1d59edc709c378b84a287bcf43f2028ea41d680f | 1,326 | cpp | C++ | sevenfw/anti_arp_tab.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | 10 | 2018-11-09T01:08:15.000Z | 2020-06-21T05:39:54.000Z | sevenfw/anti_arp_tab.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | null | null | null | sevenfw/anti_arp_tab.cpp | codereba/bittrace | 6826559565aaafc9412d20427d21b73e23febcfe | [
"Unlicense"
] | 4 | 2018-11-09T03:29:52.000Z | 2021-07-23T03:30:03.000Z | /*
* Copyright 2010 JiJie Shi
*
* This file is part of NetMonitor.
*
* NetMonitor 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 late... | 25.5 | 72 | 0.674208 | codereba |
1d5a74b971140fa7f04ed54d1d66f635bf3bfb49 | 439 | cpp | C++ | GlacierFormats/src/Export/PNGExporter.cpp | pawREP/GlacierFormats | 9eece4541d863e288fc950087c4f6ec111258fe9 | [
"MIT"
] | 3 | 2020-04-03T00:01:35.000Z | 2021-02-04T04:20:58.000Z | GlacierFormats/src/Export/PNGExporter.cpp | pawREP/GlacierFormats | 9eece4541d863e288fc950087c4f6ec111258fe9 | [
"MIT"
] | 1 | 2021-03-02T05:31:10.000Z | 2021-03-02T05:31:10.000Z | GlacierFormats/src/Export/PNGExporter.cpp | pawREP/GlacierFormats | 9eece4541d863e288fc950087c4f6ec111258fe9 | [
"MIT"
] | null | null | null | #include "PNGExporter.h"
using namespace GlacierFormats;
using namespace GlacierFormats::Export;
void PNGExporter::operator()(const IRenderAsset& asset, const std::filesystem::path& export_dir) const {
for (const auto& material : asset.materials()) {
for (int i = 0; i < material->getTextureCount(); ++i) {
auto ... | 29.266667 | 104 | 0.712984 | pawREP |
1d5ca670aaa3d5ded10453cc0fa0951db647dca4 | 9,287 | hpp | C++ | src/include/miopen/conv/asm_implicit_gemm.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 745 | 2017-07-01T22:03:25.000Z | 2022-03-26T23:46:27.000Z | src/include/miopen/conv/asm_implicit_gemm.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 1,348 | 2017-07-02T12:37:48.000Z | 2022-03-31T23:45:51.000Z | src/include/miopen/conv/asm_implicit_gemm.hpp | j4yan/MIOpen | dc38f79bee97e047d866d9c1e25289cba86fab56 | [
"MIT"
] | 158 | 2017-07-01T19:37:04.000Z | 2022-03-30T11:57:04.000Z | /*******************************************************************************
*
* MIT License
*
* Copyright (c) 2020 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 37.447581 | 100 | 0.555077 | j4yan |
1d5d88e523272fa832c7c041a317b8b86657295f | 3,916 | cpp | C++ | test/test_list.cpp | Junology/tsukimade | f76ca34f54796c3254655d5fba9015a60604d890 | [
"MIT"
] | null | null | null | test/test_list.cpp | Junology/tsukimade | f76ca34f54796c3254655d5fba9015a60604d890 | [
"MIT"
] | null | null | null | test/test_list.cpp | Junology/tsukimade | f76ca34f54796c3254655d5fba9015a60604d890 | [
"MIT"
] | null | null | null | /*!
* \file test_list.cpp
* \brief A test with elementary operations on simple lists.
* \details
* The aim of the test is to verify the following functionality of the library:
* - to pass pointers to data structures to Lua;
* - to manipulate passed data structures in Lua;
* - to receive functions as arguments;
... | 27.77305 | 79 | 0.586568 | Junology |
1d62174fbed0986cfa385a1edbbd3852aac7e5e8 | 851 | cpp | C++ | public/plagiarism_plugin/input/24/24/24 24 5113100152--Bounce.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/plagiarism_plugin/input/24/24/24 24 5113100152--Bounce.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | public/plagiarism_plugin/input/24/24/24 24 5113100152--Bounce.cpp | laurensiusadi/elearning-pweb | c72ae1fc414895919ef71ae370686353d9086bce | [
"MIT"
] | null | null | null | #include "wx/wx.h"
#include "Bounce.h"
Bounce::Bounce(void)
{
// TODO Auto-generated constructor stub
}
Bounce::~Bounce(void)
{
// TODO Auto-generated destructor stub
}
void Bounce::Render(wxDc *dc){
dc->SetPen(*wxWHITE_PEN);
dc->Setbrush(*this->brush);
x = x + speedX;
y = y + speedY;
dc = DrawCircle(x, y, ... | 16.056604 | 56 | 0.608696 | laurensiusadi |
1d63d521b59af187f8a678ed49b23f4b07a26784 | 2,559 | cpp | C++ | cvt/gfx/ifilter/BrightnessContrast.cpp | tuxmike/cvt | c6a5df38af4653345e795883b8babd67433746e9 | [
"MIT"
] | 11 | 2017-04-04T16:38:31.000Z | 2021-08-04T11:31:26.000Z | cvt/gfx/ifilter/BrightnessContrast.cpp | tuxmike/cvt | c6a5df38af4653345e795883b8babd67433746e9 | [
"MIT"
] | null | null | null | cvt/gfx/ifilter/BrightnessContrast.cpp | tuxmike/cvt | c6a5df38af4653345e795883b8babd67433746e9 | [
"MIT"
] | 8 | 2016-04-11T00:58:27.000Z | 2022-02-22T07:35:40.000Z | /*
The MIT License (MIT)
Copyright (c) 2011 - 2013, Philipp Heise and Sebastian Klose
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 limitat... | 34.581081 | 134 | 0.692849 | tuxmike |
1d6d076af710df8b40ce11d5a994c9143cebbf99 | 4,875 | cpp | C++ | modules/core/statistics/unit/scalar/expinv.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/statistics/unit/scalar/expinv.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/statistics/unit/scalar/expinv.cpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 50.78125 | 137 | 0.592615 | psiha |
1d6f09547fe34fe925ed2ddfaaaadc319a635016 | 1,538 | cpp | C++ | app/src/plasp-app/main.cpp | rkaminsk/plasp | 02b00cba67e4fe1f1edc0e31d8be70388fcef866 | [
"MIT"
] | 29 | 2016-07-07T16:23:24.000Z | 2021-12-24T03:14:37.000Z | app/src/plasp-app/main.cpp | rkaminsk/plasp | 02b00cba67e4fe1f1edc0e31d8be70388fcef866 | [
"MIT"
] | 5 | 2017-11-15T14:30:16.000Z | 2020-12-17T00:34:59.000Z | app/src/plasp-app/main.cpp | rkaminsk/plasp | 02b00cba67e4fe1f1edc0e31d8be70388fcef866 | [
"MIT"
] | 12 | 2016-10-28T08:58:09.000Z | 2022-03-30T11:37:22.000Z | #include <algorithm>
#include <iostream>
#include <string>
#include <cxxopts.hpp>
#include <colorlog/Logger.h>
#include <colorlog/Priority.h>
#include <plasp-app/Command.h>
#include <plasp-app/CommandType.h>
#include <plasp-app/Version.h>
/////////////////////////////////////////////////////////////////////////////... | 21.971429 | 104 | 0.572822 | rkaminsk |
1d71f2fc2d32771424c328540fda08a7d035076f | 1,388 | hpp | C++ | Examples/Telemetry/recorder.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | 1 | 2020-01-17T14:10:22.000Z | 2020-01-17T14:10:22.000Z | Examples/Telemetry/recorder.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | Examples/Telemetry/recorder.hpp | raving-bots/expansim-sdk | 22f5c794523abbe9c27688963b607b13671ff118 | [
"BSL-1.0"
] | null | null | null | // Copyright Raving Bots 2018-2020
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file SDK-LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <fstream>
#include <filesystem>
namespace xsim
{
struct BodyTelemetryDataV1;
struct RigidTra... | 25.703704 | 88 | 0.731988 | raving-bots |
1d72f491b71728130b623288a39f21da371c1c83 | 18,794 | cc | C++ | mozy/src/help/help_cache.cc | wrcad/xictools | f46ba6d42801426739cc8b2940a809b74f1641e2 | [
"Apache-2.0"
] | 73 | 2017-10-26T12:40:24.000Z | 2022-03-02T16:59:43.000Z | mozy/src/help/help_cache.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 12 | 2017-11-01T10:18:22.000Z | 2022-03-20T19:35:36.000Z | mozy/src/help/help_cache.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 34 | 2017-10-06T17:04:21.000Z | 2022-02-18T16:22:03.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 31.375626 | 76 | 0.481803 | wrcad |
1d76067a750b361e65b85753922d415b7dac0769 | 987 | hpp | C++ | include/boost/sql/detail/service_base.hpp | purpleKarrot/async-db | 172124e5657e3085e8ac7729c4e578c0d766bf7b | [
"BSL-1.0"
] | 5 | 2016-09-19T01:02:33.000Z | 2019-10-23T07:15:00.000Z | include/boost/sql/detail/service_base.hpp | purpleKarrot/async-db | 172124e5657e3085e8ac7729c4e578c0d766bf7b | [
"BSL-1.0"
] | null | null | null | include/boost/sql/detail/service_base.hpp | purpleKarrot/async-db | 172124e5657e3085e8ac7729c4e578c0d766bf7b | [
"BSL-1.0"
] | null | null | null | /**************************************************************
* Copyright (c) 2008-2009 Daniel Pfeifer *
* *
* Distributed under the Boost Software License, Version 1.0. *
**************************************************************/... | 21.933333 | 64 | 0.599797 | purpleKarrot |
1d7b2fe6b0f1d1621736cc7491c56aaf6abb0c71 | 164 | cpp | C++ | Society2.0/Society2.0/ProposeMeetingToPersonUI.cpp | simsim314/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-07-11T13:10:43.000Z | 2019-07-11T13:10:43.000Z | Society2.0/Society2.0/ProposeMeetingToPersonUI.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-02-19T12:32:52.000Z | 2019-03-07T20:49:50.000Z | Society2.0/Society2.0/ProposeMeetingToPersonUI.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2020-01-10T12:37:30.000Z | 2020-01-10T12:37:30.000Z | #include "ProposeMeetingToPersonUI.h"
ProposeMeetingToPersonUI::ProposeMeetingToPersonUI()
{
}
ProposeMeetingToPersonUI::~ProposeMeetingToPersonUI()
{
}
| 16.4 | 54 | 0.780488 | simsim314 |
1d7bb55de785b8146ac241ca0fe4c04b117bbddf | 820 | cpp | C++ | naive_simulation_works/systemc_for_dummies/full_adder/main.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/main.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | naive_simulation_works/systemc_for_dummies/full_adder/main.cpp | VSPhaneendraPaluri/pvsdrudgeworks | 5827f45567eecbcf0bb606de6adb1fb94fe2d8c6 | [
"MIT"
] | null | null | null | #include <systemc.h>
#include "Full_Adder.h"
#include "MyTestBenchDriver.h"
#include "MyTestBenchMonitor.h"
int sc_main(int sc_argc, char* sc_argv[])
{
sc_signal<bool> pb_a, pb_b, pb_c_in, pb_sum, pb_c_out;
Full_Adder MyFullAdder("MyFullAdder");
MyFullAdder.a(pb_a);
MyFullAdder.b(pb_b);
MyFullAdder.c_in(pb_c_in)... | 24.117647 | 55 | 0.780488 | VSPhaneendraPaluri |
1d7e864e133c0e01805f410caad1669adec00b6b | 2,131 | cpp | C++ | src/utils.cpp | SohilZidan/point-cloud-registration | 5e7f52fbf04f3a58238a2c92393143d5e110c8e4 | [
"MIT"
] | null | null | null | src/utils.cpp | SohilZidan/point-cloud-registration | 5e7f52fbf04f3a58238a2c92393143d5e110c8e4 | [
"MIT"
] | 1 | 2021-11-27T17:52:07.000Z | 2021-11-28T07:04:05.000Z | src/utils.cpp | SohilZidan/point-cloud-registration | 5e7f52fbf04f3a58238a2c92393143d5e110c8e4 | [
"MIT"
] | null | null | null | #include <vector>
#include <tuple>
#include <cmath>
#include <numeric>
#include <Eigen/Dense>
#include "../happly.h"
#include "../nanoflann.hpp"
#include "utils.hpp"
float icp::mse_cost(std::vector<std::tuple<float, int, int>>& distances, float xi)
{
size_t Np = distances.size();
size_t Npo = xi*Np;
... | 27.320513 | 117 | 0.610042 | SohilZidan |
1d7f338e73721230a354e4e7bf9154ddc45c5558 | 7,955 | cpp | C++ | framework/src/media/MediaPlayerImpl.cpp | Acidburn0zzz/TizenRT | 45f955fe8e19e2bdffc9c31fa5dbc3a032bacc39 | [
"Apache-2.0"
] | 1 | 2018-04-23T12:39:01.000Z | 2018-04-23T12:39:01.000Z | framework/src/media/MediaPlayerImpl.cpp | Acidburn0zzz/TizenRT | 45f955fe8e19e2bdffc9c31fa5dbc3a032bacc39 | [
"Apache-2.0"
] | null | null | null | framework/src/media/MediaPlayerImpl.cpp | Acidburn0zzz/TizenRT | 45f955fe8e19e2bdffc9c31fa5dbc3a032bacc39 | [
"Apache-2.0"
] | null | null | null | /* ****************************************************************
*
* Copyright 2018 Samsung Electronics 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
*
* ... | 26.784512 | 101 | 0.730735 | Acidburn0zzz |
1d86650d1d6904f114f7114b4d8211bde89cc8de | 5,315 | hpp | C++ | include/ssGUI/GUIObjectClasses/GUIObject.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 15 | 2022-01-21T10:48:04.000Z | 2022-03-27T17:55:11.000Z | include/ssGUI/GUIObjectClasses/GUIObject.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | null | null | null | include/ssGUI/GUIObjectClasses/GUIObject.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 4 | 2022-01-21T10:48:05.000Z | 2022-01-22T15:42:34.000Z | #ifndef SSGUI_GUI_OBJECT
#define SSGUI_GUI_OBJECT
#include "ssGUI/Enums/GUIObjectType.hpp"
#include "ssGUI/DataClasses/Transform.hpp"
#include "ssGUI/DataClasses/Renderer.hpp"
#include "ssGUI/DataClasses/Hierarchy.hpp"
#include "ssGUI/DataClasses/ExtensionManager.hpp"
#include "ssGUI/DataClasses/EventCallbackM... | 45.42735 | 211 | 0.621825 | Neko-Box-Coder |
1d87cdc304e12262f8bd72bc10ce67210914e054 | 427 | hpp | C++ | library/ATF/CCheckSumBaseConverter.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CCheckSumBaseConverter.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CCheckSumBaseConverter.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct CCheckSumBaseConverter
{
public:
long double ProcCode(char byIndex, unsigned int dwSerial, long double dValue);
... | 28.466667 | 108 | 0.740047 | lemkova |
1d88d66879b023868d6d0b1812b4e63e4203bf9c | 343 | cpp | C++ | tools/tests/dataMemberAccumulation.cpp | ouankou/rose | 76f2a004bd6d8036bc24be2c566a14e33ba4f825 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tools/tests/dataMemberAccumulation.cpp | WildeGeist/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tools/tests/dataMemberAccumulation.cpp | WildeGeist/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | // accumulation of data members
//
//
//
typedef struct BLK {
double * ccl;
double *cbr;
double *cbc;
double *cbl;
} Block_t;
void foo (int nnalls, Block_t* mblk, double dtn)
{
for ( int i = 0 ; i < nnalls ; i++ ) {
mblk->ccl[i] *= dtn ;
mblk->cbr[i] *= dtn ;
mblk->cbc[i] *= dtn ;
mblk-... | 14.913043 | 48 | 0.524781 | ouankou |
1d8a38af7e296e995cbd7a78019d63a48fed2a82 | 1,954 | cpp | C++ | prismdll/menu_nodes/BGCheckbox.cpp | MagneticPrism/prismdll | d00d45fa7017d48cae8ce9e30542ac43ed3936cd | [
"CC0-1.0"
] | null | null | null | prismdll/menu_nodes/BGCheckbox.cpp | MagneticPrism/prismdll | d00d45fa7017d48cae8ce9e30542ac43ed3936cd | [
"CC0-1.0"
] | null | null | null | prismdll/menu_nodes/BGCheckbox.cpp | MagneticPrism/prismdll | d00d45fa7017d48cae8ce9e30542ac43ed3936cd | [
"CC0-1.0"
] | null | null | null | #include "BGCheckbox.hpp"
bool BGCheckbox::init(const char* _text) {
if (!cocos2d::CCNode::init())
return false;
this->m_pBGLayer = cocos2d::extension::CCScale9Sprite::create(
"square02b_001.png", { 0.0f, 0.0f, 80.0f, 80.0f }
);
this->m_pBGLayer->setScale(.5f);
this->m_pBGLayer->s... | 25.710526 | 93 | 0.642784 | MagneticPrism |
1d8e16a65d2c190eb51fdfcf0198278739ee2b9f | 9,172 | cc | C++ | src/demo/hud.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 3 | 2020-06-22T19:37:49.000Z | 2020-11-14T10:45:27.000Z | src/demo/hud.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | 1 | 2020-06-03T13:05:24.000Z | 2020-06-03T13:05:24.000Z | src/demo/hud.cc | auygun/kaliber | c6501323cf5c447334a2bfb6b7a5899dea0776e6 | [
"MIT"
] | null | null | null | #include "hud.h"
#include "../base/interpolation.h"
#include "../base/log.h"
#include "../base/vecmath.h"
#include "../engine/engine.h"
#include "../engine/font.h"
#include "../engine/image.h"
#include "demo.h"
using namespace std::string_literals;
using namespace base;
using namespace eng;
namespace {
constexpr f... | 30.986486 | 80 | 0.646097 | auygun |
1d924e4a4b07e61bcfe8b3c5a376d846f332bdd7 | 72,472 | inl | C++ | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Base/Math/Vector/Fpu/hkFpuVector4d.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Base/Math/Vector/Fpu/hkFpuVector4d.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | GameJam_v3.2/GameEngineBase/externals/Havok/includes/Source/Common/Base/Math/Vector/Fpu/hkFpuVector4d.inl | aditgoyal19/Tropical-Go-Kart-Bananas | ed3c0489402f8a559c77b56545bd8ebc79c4c563 | [
"MIT"
] | null | null | null | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... | 41.014148 | 251 | 0.711682 | aditgoyal19 |
1d93653231cf943e781ad1604b86d76d83d0a698 | 1,150 | cpp | C++ | src/btr/native_io.win.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | 2 | 2021-08-02T15:04:33.000Z | 2021-08-10T05:07:46.000Z | src/btr/native_io.win.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | src/btr/native_io.win.cpp | vector-of-bool/batteries | 8be07c729e0461e8e0b50c89c5ac9b90e48452a8 | [
"BSL-1.0"
] | null | null | null | #include "./native_io.hpp"
#include "./syserror.hpp"
using namespace btr;
#if _WIN32
#include <windows.h>
void win32_handle_traits::close(HANDLE h) noexcept { ::CloseHandle(h); }
std::size_t win32_handle_traits::write(HANDLE h, const_buffer buf) {
neo_assert(expects,
h != null_handle,
... | 28.04878 | 100 | 0.607826 | vector-of-bool |
1d9a3bf76307b2b683cd7bfa51518af752ce649d | 3,354 | cpp | C++ | components/button/xitembutton.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | null | null | null | components/button/xitembutton.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | null | null | null | components/button/xitembutton.cpp | pavelvasev/Xclu | 6cdbb7040c057b3c1107f7a039acf0a72046ed83 | [
"MIT"
] | null | null | null | #include "xitembutton.h"
#include "xguibutton.h"
#include "incl_cpp.h"
#include "moduleinterface.h"
#include "registrarxitem.h"
#include "module.h"
REGISTER_XITEM(XItemButton, button)
//---------------------------------------------------------------------
//in button Execute execute
XItemButton::XItemButton(ModuleInt... | 33.207921 | 128 | 0.514311 | pavelvasev |
1d9b166eeec7f68c1980cd5ca87ef948fb1af0b4 | 13,570 | cpp | C++ | Co-Simulation/Sumo/sumo-1.7.0/src/router/ROVehicle.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/sumo-1.7.0/src/router/ROVehicle.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | Co-Simulation/Sumo/sumo-1.7.0/src/router/ROVehicle.cpp | uruzahe/carla | 940c2ab23cce1eda1ef66de35f66b42d40865fb1 | [
"MIT"
] | null | null | null | /****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2002-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... | 42.672956 | 170 | 0.551805 | uruzahe |
1d9b2651d10954b39298ed68ee204fdbfeef52cd | 283 | hpp | C++ | include/GraFX/api/basic_observers/basic/AutosubscribableObserver.hpp | VladimirSuvorov1996/GraFX | 60f543c5283976a624f8dd460dbf515f2d06df5e | [
"MIT"
] | null | null | null | include/GraFX/api/basic_observers/basic/AutosubscribableObserver.hpp | VladimirSuvorov1996/GraFX | 60f543c5283976a624f8dd460dbf515f2d06df5e | [
"MIT"
] | null | null | null | include/GraFX/api/basic_observers/basic/AutosubscribableObserver.hpp | VladimirSuvorov1996/GraFX | 60f543c5283976a624f8dd460dbf515f2d06df5e | [
"MIT"
] | null | null | null | #pragma once
#include "EventObserver.hpp"
namespace graFX::input {
template<typename R, typename...As>
class AutosubscribableObserver :
public EventObserver<R, As...>{
public:
AutosubscribableObserver() {
EventObserver<R, As...>::base_t::enabled(true);
}
};
} | 23.583333 | 51 | 0.681979 | VladimirSuvorov1996 |
1d9ce0d0d99350c923c6778271c5a0622021d9bb | 316 | cpp | C++ | Camp_1-2562/Proble 60/35_MaxSub.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_1-2562/Proble 60/35_MaxSub.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_1-2562/Proble 60/35_MaxSub.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main () {
int n,i,st=1,ansst=1,ansen,Max = -1e9,num,sum=0;
scanf("%d",&n);
for(i=1;i<=n;i++){
scanf("%d",&num);
sum+=num;
if(sum> Max)
Max = sum,ansst = st,ansen=i;
if(sum<0)
sum = 0,st = i+1;
}
printf("%d %d\n%d\n",ansst,ansen,Max);
return 0;
}
| 17.555556 | 49 | 0.550633 | MasterIceZ |
1d9ffce04a5c8cd36a1db332d58abdbc415a35c2 | 3,340 | hpp | C++ | src/base/parameter/RealVar.hpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/base/parameter/RealVar.hpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | null | null | null | src/base/parameter/RealVar.hpp | saichikine/GMAT | 80bde040e12946a61dae90d9fc3538f16df34190 | [
"Apache-2.0"
] | 1 | 2021-12-05T05:40:15.000Z | 2021-12-05T05:40:15.000Z | //$Id$
//------------------------------------------------------------------------------
// RealVar
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//
// Copyright (c) 2002 - 2018 United States Government as represen... | 34.43299 | 80 | 0.637126 | saichikine |
1da04d8e1d02ce608af36d7b8aedeb726c1f3a28 | 6,103 | cpp | C++ | src/CVPRTestSpeed.cpp | warp1337/nmpt | 0a6ea8140f9053c5cff19375ce179427f8d24fe3 | [
"BSD-3-Clause"
] | 5 | 2017-03-01T15:57:50.000Z | 2022-01-18T08:47:46.000Z | src/CVPRTestSpeed.cpp | warp1337/nmpt | 0a6ea8140f9053c5cff19375ce179427f8d24fe3 | [
"BSD-3-Clause"
] | null | null | null | src/CVPRTestSpeed.cpp | warp1337/nmpt | 0a6ea8140f9053c5cff19375ce179427f8d24fe3 | [
"BSD-3-Clause"
] | 1 | 2020-05-08T04:58:59.000Z | 2020-05-08T04:58:59.000Z | /**
* \ingroup ExamplesGroup
* \page cvprspeed_page CVPRTestSpeed
* \brief Reproduce the speed results from Butko and Movellan, CVPR 09 on your
* own machine.
*
* CVPRTestSpeed
*
* To Run: <br>
* (1) Uncompress and Expand the included GENKI R2009a dataset. Make sure the
* GENKI-R2009a folder is in the dat... | 36.54491 | 85 | 0.676389 | warp1337 |
1da274dff69789834dc0d773bd2b2bf74920fbd2 | 5,868 | cc | C++ | src/grin/CommonGrin.cc | jheleniak/btcpool | 28ad61f60d529c203db2b58379d851ba20697eae | [
"MIT"
] | null | null | null | src/grin/CommonGrin.cc | jheleniak/btcpool | 28ad61f60d529c203db2b58379d851ba20697eae | [
"MIT"
] | null | null | null | src/grin/CommonGrin.cc | jheleniak/btcpool | 28ad61f60d529c203db2b58379d851ba20697eae | [
"MIT"
] | 1 | 2020-03-25T13:53:33.000Z | 2020-03-25T13:53:33.000Z | /*
The MIT License (MIT)
Copyright (c) [2016] [BTC.COM]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... | 33.724138 | 80 | 0.712849 | jheleniak |
1da505713dbef44cd67d486a606fb3c7f5efc994 | 1,651 | cpp | C++ | tcp_client.cpp | devmentality/bachelors_thesis | 11fcd78b2be9b6d50474950cac497a5b2c7ee3dd | [
"MIT"
] | null | null | null | tcp_client.cpp | devmentality/bachelors_thesis | 11fcd78b2be9b6d50474950cac497a5b2c7ee3dd | [
"MIT"
] | null | null | null | tcp_client.cpp | devmentality/bachelors_thesis | 11fcd78b2be9b6d50474950cac497a5b2c7ee3dd | [
"MIT"
] | null | null | null | #include "tcp_client.h"
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <cstring>
#include <netdb.h>
#include "version_vector.h"
#include "ron/op.hpp"
#include "ron/ron-streams.hpp"
#include "sock... | 23.253521 | 93 | 0.684434 | devmentality |
1da5484cabf0e878b96f6ab521247f08f4227fbe | 567,866 | cpp | C++ | src/main_10300.cpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | src/main_10300.cpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | src/main_10300.cpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppSourceCreator
// Created by Sc2ad
// =========================================================================
// Begin includes
// Including type: UnityEngine.ProBuilder.Poly2Tri.TriangulationUtil
#include "UnityEngine/ProBuilder/Poly2Tri/TriangulationUtil.hpp"
// Including type: UnityEngine.P... | 96.428256 | 578 | 0.805653 | RedBrumbler |
1da54baee266483de8763dbbe42ff1a4d2ec766a | 1,538 | hpp | C++ | src/connection_types/socket_connection.hpp | Felix-Rm/iac | 59bfc7e859d4cc0b923c75dd34316ae2fafd9097 | [
"BSD-2-Clause"
] | null | null | null | src/connection_types/socket_connection.hpp | Felix-Rm/iac | 59bfc7e859d4cc0b923c75dd34316ae2fafd9097 | [
"BSD-2-Clause"
] | null | null | null | src/connection_types/socket_connection.hpp | Felix-Rm/iac | 59bfc7e859d4cc0b923c75dd34316ae2fafd9097 | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#ifndef ARDUINO
# include <arpa/inet.h>
# include <netinet/in.h>
# include <sys/fcntl.h>
# include <sys/ioctl.h>
# include <sys/socket.h>
# include <unistd.h>
# include <csignal>
# include <cstdio>
# include <cstdlib>
# include "../std_provider/string.hpp"
# include "co... | 19.468354 | 59 | 0.662549 | Felix-Rm |
1da8c18fa83b6061ebfdfe6059e2f5e0590af07a | 7,456 | cpp | C++ | compiler/luci/service/src/GraphBlock.test.cpp | wateret/ONE_private | 9789c52633e665d2e10273d88d6f7970faa8aee9 | [
"Apache-2.0"
] | null | null | null | compiler/luci/service/src/GraphBlock.test.cpp | wateret/ONE_private | 9789c52633e665d2e10273d88d6f7970faa8aee9 | [
"Apache-2.0"
] | null | null | null | compiler/luci/service/src/GraphBlock.test.cpp | wateret/ONE_private | 9789c52633e665d2e10273d88d6f7970faa8aee9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. 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... | 30.186235 | 98 | 0.725992 | wateret |
1db186488106b897f8da6df052c0a78a226a6b32 | 282 | cpp | C++ | bootloader/Disk/IDE/ATADevice.cpp | supercomputer7/nahmanboot2 | 6b4ed2db89394ef2e8d878df98a988e205a63ee6 | [
"MIT"
] | 3 | 2019-10-15T22:22:51.000Z | 2019-11-29T10:39:28.000Z | bootloader/Disk/IDE/ATADevice.cpp | supercomputer7/nahmanboot2 | 6b4ed2db89394ef2e8d878df98a988e205a63ee6 | [
"MIT"
] | null | null | null | bootloader/Disk/IDE/ATADevice.cpp | supercomputer7/nahmanboot2 | 6b4ed2db89394ef2e8d878df98a988e205a63ee6 | [
"MIT"
] | null | null | null | #include <Disk/IDE/ATADevice.h>
ATADevice::ATADevice(IDEController* controller,uint8_t port) : StorageDevice(controller,port)
{
this->transfer_mode = DefaultTransferMode;
this->command_set = ATACommandSet;
}
uint16_t ATADevice::get_hardware_protocol()
{
return IDEATA;
} | 28.2 | 93 | 0.769504 | supercomputer7 |
1db462dae1fb0729c9ed227bdd52f3bd84a163ba | 793 | hh | C++ | pnmc/mc/classic/classic.hh | ahamez/pnmc | cee5f2e01edc2130278ebfc13f0f859230d65680 | [
"BSD-2-Clause"
] | 5 | 2015-02-05T20:56:20.000Z | 2022-01-29T01:20:24.000Z | pnmc/mc/classic/classic.hh | ahamez/pnmc | cee5f2e01edc2130278ebfc13f0f859230d65680 | [
"BSD-2-Clause"
] | null | null | null | pnmc/mc/classic/classic.hh | ahamez/pnmc | cee5f2e01edc2130278ebfc13f0f859230d65680 | [
"BSD-2-Clause"
] | null | null | null | /// @file
/// @copyright The code is licensed under the BSD License
/// <http://opensource.org/licenses/BSD-2-Clause>,
/// Copyright (c) 2013-2015 Alexandre Hamez.
/// @author Alexandre Hamez
#pragma once
#include "conf/configuration.hh"
#include "mc/mc_impl.hh"
namespace pnmc { namespace mc { ... | 24.78125 | 100 | 0.493064 | ahamez |
1db64e09e3c30a39480db9c8bbe73721e490e358 | 35 | hpp | C++ | src/boost_range_pointer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_range_pointer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_range_pointer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/range/pointer.hpp>
| 17.5 | 34 | 0.771429 | miathedev |
1db98fdb3d8fba7fe7ffd6ce5db5f83ae1f7fe20 | 8,151 | cpp | C++ | src/lexical/lexical.cpp | MisakaCenter/SimpleCompiler | aafb13c6c6b2f20c19757ec8b04231746a298f55 | [
"MIT"
] | 24 | 2020-09-26T13:20:23.000Z | 2022-03-09T18:56:58.000Z | src/lexical/lexical.cpp | MRNIU/Compiler | 746106625ea6fba34f36bd04ac7f6394d82166a8 | [
"MIT"
] | 2 | 2020-07-19T23:35:02.000Z | 2021-09-27T16:43:40.000Z | src/lexical/lexical.cpp | MRNIU/Compiler | 746106625ea6fba34f36bd04ac7f6394d82166a8 | [
"MIT"
] | 11 | 2020-06-07T04:57:57.000Z | 2021-08-03T08:00:48.000Z |
// This file is a part of Simple-XX/SimpleCompiler
// (https://github.com/Simple-XX/SimpleCompiler).
//
// lexical.cpp for Simple-XX/SimpleCompiler.
#include "iostream"
#include "string"
#include "lexical.h"
using namespace std;
Keywords Lexer::keywords;
Lexer::Lexer(Scanner &sc) : scanner(sc) {
... | 23.090652 | 63 | 0.330266 | MisakaCenter |
1dbaf0f021069a31137ec35db0a3d12bf546b1fe | 7,538 | cpp | C++ | far/tracer.cpp | andrastantos/FarManager | 1df1cd0f964c1e2fcde5ff108c2756b5ad5f71b7 | [
"BSD-3-Clause"
] | null | null | null | far/tracer.cpp | andrastantos/FarManager | 1df1cd0f964c1e2fcde5ff108c2756b5ad5f71b7 | [
"BSD-3-Clause"
] | null | null | null | far/tracer.cpp | andrastantos/FarManager | 1df1cd0f964c1e2fcde5ff108c2756b5ad5f71b7 | [
"BSD-3-Clause"
] | null | null | null | /*
tracer.cpp
*/
/*
Copyright © 2016 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and th... | 29.794466 | 166 | 0.756699 | andrastantos |
1dbb5b8f8b57ce06e2ba2cc701913588f7d58790 | 2,510 | cpp | C++ | src/Main.cpp | Joco223/LogicGateSimulator | 78bdb72886a5b2908a073a168a141471aed636d8 | [
"MIT"
] | null | null | null | src/Main.cpp | Joco223/LogicGateSimulator | 78bdb72886a5b2908a073a168a141471aed636d8 | [
"MIT"
] | null | null | null | src/Main.cpp | Joco223/LogicGateSimulator | 78bdb72886a5b2908a073a168a141471aed636d8 | [
"MIT"
] | null | null | null | #define SDL_MAIN_HANDLED
#include "Simple2D.h"
#include "Simple2D_Sprite.h"
#include "Simple2D_Text.h"
#include "Sandbox.h"
#include "Camera.h"
#include "GUI_Controller.h"
#include "Chip.h"
#include "Asset_loader.h"
#include <iostream>
#include <string>
#include <optional>
#include <functional>
constexpr int width ... | 26.702128 | 112 | 0.741036 | Joco223 |
1dbcf0e090976b6dd2c43c7613c9529903d8e7d2 | 4,827 | cpp | C++ | external/globjects-0.5.0/source/globjects/source/Buffer.cpp | steppobeck/rgbd-recon | 171a8336c8e3ba52a1b187b73544338fdd3c9285 | [
"MIT"
] | 18 | 2016-09-03T05:12:25.000Z | 2022-02-23T15:52:33.000Z | external/globjects-0.5.0/source/globjects/source/Buffer.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 1 | 2016-05-04T09:06:29.000Z | 2016-05-04T09:06:29.000Z | external/globjects-0.5.0/source/globjects/source/Buffer.cpp | 3d-scan/rgbd-recon | c4a5614eaa55dd93c74da70d6fb3d813d74f2903 | [
"MIT"
] | 7 | 2016-04-20T13:58:50.000Z | 2018-07-09T15:47:26.000Z | #include <globjects/Buffer.h>
#include <cassert>
#include <glbinding/gl/functions.h>
#include <glbinding/gl/enum.h>
#include <globjects/globjects.h>
#include <globjects/ObjectVisitor.h>
#include "registry/ImplementationRegistry.h"
#include "Resource.h"
#include "implementations/BufferImplementation_Legacy.h"
us... | 22.556075 | 159 | 0.743526 | steppobeck |
1dbe33122c6f57ab4b5641d23e26673155b0e28f | 2,090 | hpp | C++ | Branch/Sensors/LaneDetectionMT/armadillo/include/armadillo_bits/spop_var_bones.hpp | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | 12 | 2019-12-17T08:17:51.000Z | 2021-12-14T03:13:10.000Z | Branch/Sensors/LaneDetectionMT/armadillo/include/armadillo_bits/spop_var_bones.hpp | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | null | null | null | Branch/Sensors/LaneDetectionMT/armadillo/include/armadillo_bits/spop_var_bones.hpp | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | 7 | 2019-12-17T08:17:54.000Z | 2022-02-21T15:53:57.000Z | // Copyright (C) 2012 Ryan Curtin
// Copyright (C) 2012 Conrad Sanderson
//
// 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/.
//! \addtogroup spop_var
//! @{... | 38.703704 | 198 | 0.711962 | Tsinghua-OpenICV |
1dc0243aad3e3515f84aed1f4ddcfd73663abba7 | 848 | cpp | C++ | libraries/RelaisSwitch/RelaisSwitch.cpp | naice/arduino | c63763bc532df3ab446e9b6ce48aa127962c8b42 | [
"MIT"
] | null | null | null | libraries/RelaisSwitch/RelaisSwitch.cpp | naice/arduino | c63763bc532df3ab446e9b6ce48aa127962c8b42 | [
"MIT"
] | null | null | null | libraries/RelaisSwitch/RelaisSwitch.cpp | naice/arduino | c63763bc532df3ab446e9b6ce48aa127962c8b42 | [
"MIT"
] | null | null | null | /*
Name: RelaisSwitch.cpp
Created: 10/6/2019 12:16:27 PM
Author: Jens Marchewka
*/
#include "RelaisSwitch.h"
RelaisSwitch::RelaisSwitch(unsigned int pin, bool defaultState, bool isDigital)
{
_currentState = defaultState;
_isDigital = isDigital;
_pin = pin;
pinMode(_pin, OUTPUT);
if (_currentS... | 14.62069 | 80 | 0.643868 | naice |
1dc1d5421cc00d6d799d8539294efd21790ee77b | 1,126 | cpp | C++ | Dataset/Leetcode/train/4/331.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/4/331.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/4/331.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
double XXX(vector<int>& nums1, vector<int>& nums2) {
int n = nums1.size(), m = nums2.size();
if(!n && !m) return 0.0;
int pos = (n + m - 1) >> 1;
int l = max(0, pos - m), r = min(pos, n);
while(l < r){
int mid = (l + r) >> 1;
... | 36.322581 | 74 | 0.396092 | kkcookies99 |
1dc28b05071c82fef4f3556987d03c1edd93db89 | 2,586 | cpp | C++ | cpp_CS225/daily-exercise/day29-deleteNode/potd-q29/main.cpp | Rothdyt/codes-for-courses | a2dfea516ebc7cabef31a5169533b6da352e7ccb | [
"MIT"
] | 4 | 2018-09-23T00:00:13.000Z | 2018-11-02T22:56:35.000Z | cpp_CS225/daily-exercise/day29-deleteNode/potd-q29/main.cpp | Rothdyt/codes-for-courses | a2dfea516ebc7cabef31a5169533b6da352e7ccb | [
"MIT"
] | null | null | null | cpp_CS225/daily-exercise/day29-deleteNode/potd-q29/main.cpp | Rothdyt/codes-for-courses | a2dfea516ebc7cabef31a5169533b6da352e7ccb | [
"MIT"
] | null | null | null | #include "TreeNode.h"
#include <iostream>
using namespace std;
int main()
{
/*
* Example 1: Deleting a leaf node
* key = 14
* 9
* / \
* 5 12
* /\ / \
* 2 7 10 14
*
* After deleteNode(14):
* 9
* / \
* 5 12
* /\ /
* 2 7 10
*
* Example 2: Deleting a node which has onl... | 22.884956 | 61 | 0.530549 | Rothdyt |
1dc576bf48afa274ca9f7b7f6b4c0f01740a7fb7 | 514 | hpp | C++ | src/AHardware/Registers/STM32F411/portslist.hpp | alexeysp11/Stm32Project | 34e07644848e886a26d051d9d107f276ec1c7426 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | src/AHardware/Registers/STM32F411/portslist.hpp | alexeysp11/Stm32Project | 34e07644848e886a26d051d9d107f276ec1c7426 | [
"MIT"
] | null | null | null | src/AHardware/Registers/STM32F411/portslist.hpp | alexeysp11/Stm32Project | 34e07644848e886a26d051d9d107f276ec1c7426 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | //
// Created by Sergey on 28.10.2019.
//
#ifndef REGISTERS_PORTSLIST_HPP
#define REGISTERS_PORTSLIST_HPP
#include "susudefs.hpp" //for TypeList
#include "gpioaregisters.hpp" // for GPIOA
#include "gpiobregisters.hpp" // for GPIOB
#include "gpiocregisters.hpp" // for GPIOC
#include "gpiodregisters.hpp" // for GPIOD
... | 25.7 | 71 | 0.749027 | alexeysp11 |
1dc8046ca08e2ceb0b900c43badd205434e45c55 | 23,310 | cpp | C++ | oneflow/core/graph/boxing/collective_boxing_sub_task_graph_builder.cpp | basicv8vc/oneflow | 2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3 | [
"Apache-2.0"
] | 1 | 2020-10-13T03:03:40.000Z | 2020-10-13T03:03:40.000Z | oneflow/core/graph/boxing/collective_boxing_sub_task_graph_builder.cpp | basicv8vc/oneflow | 2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3 | [
"Apache-2.0"
] | null | null | null | oneflow/core/graph/boxing/collective_boxing_sub_task_graph_builder.cpp | basicv8vc/oneflow | 2a0480b3f4ff42a59fcae945a3b3bb2d208e37a3 | [
"Apache-2.0"
] | null | null | null | /*
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... | 57.132353 | 100 | 0.691334 | basicv8vc |
1dcdce8e8177bd2864ce93cc65604a6fd5f39ca3 | 9,315 | cc | C++ | ash/app_list/app_list_color_provider_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-11-16T13:10:29.000Z | 2021-11-16T13:10:29.000Z | ash/app_list/app_list_color_provider_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/app_list/app_list_color_provider_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 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 "ash/app_list/app_list_color_provider_impl.h"
#include "ash/constants/ash_features.h"
#include "ash/public/cpp/style/color_provider.h"
#include ... | 35.418251 | 80 | 0.76672 | zealoussnow |
1dcf5d1e86209f5c463b9c4bf8f376a41a430ad4 | 2,386 | cc | C++ | art/Framework/Principal/ProcessTag.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | null | null | null | art/Framework/Principal/ProcessTag.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | null | null | null | art/Framework/Principal/ProcessTag.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | 2 | 2020-09-26T01:37:11.000Z | 2021-05-03T13:02:24.000Z | #include "art/Framework/Principal/ProcessTag.h"
#include "art/Persistency/Provenance/ModuleDescription.h"
using namespace std::string_literals;
namespace {
std::string const current_process_lit{"current_process"};
std::string const input_source_lit{"input_source"};
auto
allowed_search_policy(std::string cons... | 31.813333 | 72 | 0.719195 | drbenmorgan |
1b8efa7675d18b6880c0accafd7002abd79f228a | 1,304 | cxx | C++ | test/epoch_allocator.cxx | cychan-lbnl/devastator | a23bb21f9da5841fa2036edc68f3a89a2241831b | [
"BSD-3-Clause-LBNL"
] | 1 | 2022-03-16T08:11:02.000Z | 2022-03-16T08:11:02.000Z | test/epoch_allocator.cxx | cychan-lbnl/devastator | a23bb21f9da5841fa2036edc68f3a89a2241831b | [
"BSD-3-Clause-LBNL"
] | null | null | null | test/epoch_allocator.cxx | cychan-lbnl/devastator | a23bb21f9da5841fa2036edc68f3a89a2241831b | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <devastator/diagnostic.hxx>
#include <devastator/threads/epoch_allocator.hxx>
#include <random>
#include <map>
#include <deque>
#include <vector>
using namespace std;
template<int epochs>
void test() {
deva::threads::epoch_allocator<epochs> ma;
ma.init(nullptr, 1<<20);
map<uintptr_t, uintptr_t> liv... | 22.877193 | 128 | 0.585123 | cychan-lbnl |
1b8ff835b8d5dd033dc69a3c0fffc3c20fd65f39 | 1,631 | cpp | C++ | getMathML/Modules/XML/XMLNodeList.cpp | TanWei/getMathML | b6fbef24aaa5e80229cce42823f7595f1fe78ddf | [
"MIT"
] | null | null | null | getMathML/Modules/XML/XMLNodeList.cpp | TanWei/getMathML | b6fbef24aaa5e80229cce42823f7595f1fe78ddf | [
"MIT"
] | null | null | null | getMathML/Modules/XML/XMLNodeList.cpp | TanWei/getMathML | b6fbef24aaa5e80229cce42823f7595f1fe78ddf | [
"MIT"
] | null | null | null | // XMLNodeList.cpp: implementation of the CXMLNodeList class.
//CXMLNodeList: Node List read-only collection
//////////////////////////////////////////////////////////////////////
#include "XML.h"
#include "TFuncCalls.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction... | 21.181818 | 74 | 0.659718 | TanWei |
1b90e91ef9a796654807084a0577c3ab2330c503 | 351 | cpp | C++ | CodeChef/SQUIDRULE/solution.cpp | afifabroory/CompetitiveProgramming | 231883eeab5abbd84005e80c5065dd02fd8430ef | [
"Unlicense"
] | null | null | null | CodeChef/SQUIDRULE/solution.cpp | afifabroory/CompetitiveProgramming | 231883eeab5abbd84005e80c5065dd02fd8430ef | [
"Unlicense"
] | null | null | null | CodeChef/SQUIDRULE/solution.cpp | afifabroory/CompetitiveProgramming | 231883eeab5abbd84005e80c5065dd02fd8430ef | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define FOR(a, b) for (int i = a; i < b; i++)
using namespace std;
int main() {
unsigned short t;
cin >> t;
unsigned int n, a, ans, small;
while (t--) {
cin >> n;
ans = 0; small = INT_MAX;
FOR(0, n) {
cin >> a;
ans += a;
if (a < small) small = a;
}
cout << ans-s... | 12.535714 | 45 | 0.495726 | afifabroory |
1b9187d6f7c6d1eb160239d56cbe3e86f444586d | 5,235 | cc | C++ | src/win32/tip/tip_private_context.cc | google-admin/mozc | d0efe11cc6232c4e99371c19d2e02303ba889233 | [
"BSD-3-Clause"
] | 1,144 | 2015-04-23T16:18:45.000Z | 2022-03-29T19:37:33.000Z | src/win32/tip/tip_private_context.cc | google-admin/mozc | d0efe11cc6232c4e99371c19d2e02303ba889233 | [
"BSD-3-Clause"
] | 291 | 2015-05-04T07:53:37.000Z | 2022-03-22T00:09:05.000Z | src/win32/tip/tip_private_context.cc | google-admin/mozc | d0efe11cc6232c4e99371c19d2e02303ba889233 | [
"BSD-3-Clause"
] | 301 | 2015-05-03T00:07:18.000Z | 2022-03-21T10:48:29.000Z | // Copyright 2010-2021, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | 33.343949 | 78 | 0.771156 | google-admin |
1b94c0655e8ad85184622e31dc69fea7482847f5 | 41,848 | cpp | C++ | src/editor/EditorWindow.cpp | FuRuYa7/Koder | 73171109f5ed93ea45351019ff3c03c99dd9de5c | [
"MIT"
] | 31 | 2015-03-12T23:23:48.000Z | 2021-12-05T17:23:14.000Z | src/editor/EditorWindow.cpp | FuRuYa7/Koder | 73171109f5ed93ea45351019ff3c03c99dd9de5c | [
"MIT"
] | 137 | 2017-01-03T02:40:00.000Z | 2022-01-19T12:36:57.000Z | src/editor/EditorWindow.cpp | FuRuYa7/Koder | 73171109f5ed93ea45351019ff3c03c99dd9de5c | [
"MIT"
] | 21 | 2017-01-03T02:20:00.000Z | 2022-03-11T06:19:59.000Z | /*
* Copyright 2014-2019 Kacper Kasper <kacperkasper@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#include "EditorWindow.h"
#include <string>
#include <Alert.h>
#include <Application.h>
#include <Bitmap.h>
#include <Button.h>
#include <Catalog.h>
#include <Entry.h>
#include... | 30.590643 | 102 | 0.723619 | FuRuYa7 |
1b99e0fa5b0be12ef6ba12727c6cc2652f9b9e06 | 28,188 | cpp | C++ | src/postgres/backend/executor/execUtils.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 6 | 2017-04-28T00:38:52.000Z | 2018-11-06T07:06:49.000Z | src/postgres/backend/executor/execUtils.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 57 | 2016-03-19T22:27:55.000Z | 2017-07-08T00:41:51.000Z | src/postgres/backend/executor/execUtils.cpp | eric-haibin-lin/pelotondb | 904d6bbd041a0498ee0e034d4f9f9f27086c3cab | [
"Apache-2.0"
] | 4 | 2016-07-17T20:44:56.000Z | 2018-06-27T01:01:36.000Z | /*-------------------------------------------------------------------------
*
* execUtils.c
* miscellaneous executor utility routines
*
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* src/... | 28.822086 | 101 | 0.68632 | jessesleeping |
1b9d2da7448406d4eea814bc5dd1483dbcfe8464 | 1,228 | cpp | C++ | src/projections/collg.cpp | paulyc/PROJ | a087780e69c8a9e80b2cac1afff7ca62160f8bd0 | [
"MIT"
] | 57 | 2020-02-08T17:52:17.000Z | 2021-10-14T03:45:09.000Z | src/projections/collg.cpp | paulyc/PROJ | a087780e69c8a9e80b2cac1afff7ca62160f8bd0 | [
"MIT"
] | 47 | 2020-02-12T16:41:40.000Z | 2021-09-28T22:27:56.000Z | src/projections/collg.cpp | paulyc/PROJ | a087780e69c8a9e80b2cac1afff7ca62160f8bd0 | [
"MIT"
] | 8 | 2020-03-17T11:18:07.000Z | 2021-10-14T03:45:15.000Z | #define PJ_LIB__
#include <math.h>
#include "proj.h"
#include "proj_internal.h"
PROJ_HEAD(collg, "Collignon") "\n\tPCyl, Sph";
#define FXC 1.12837916709551257390
#define FYC 1.77245385090551602729
#define ONEEPS 1.0000001
static PJ_XY collg_s_forward (PJ_LP lp, PJ *P) { /* Spheroidal, forward */
PJ_... | 21.54386 | 84 | 0.533388 | paulyc |
1b9e4e4bac7a166866d730a520a8f98dc3b84767 | 2,439 | cpp | C++ | timus/1008.cpp | y-wan/OJ | 5dea140dbaaec98e440ad4b1c10fa5072f1ceea7 | [
"MIT"
] | null | null | null | timus/1008.cpp | y-wan/OJ | 5dea140dbaaec98e440ad4b1c10fa5072f1ceea7 | [
"MIT"
] | null | null | null | timus/1008.cpp | y-wan/OJ | 5dea140dbaaec98e440ad4b1c10fa5072f1ceea7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <queue>
using namespace std;
bool a[11][11], v[11][11];
queue<pair<int, int> > q;
int cnt, n;
void print_rtlb(int x, int y) {
if (x < 10 && a[x + 1][y] && !v[x + 1][y]) {
cout << 'R';
v[x + 1][y] = true;
q.push(make_pair(x +... | 26.802198 | 86 | 0.369824 | y-wan |
1ba01883fca0c3ebc67ab5bc80b8e2da31aa2209 | 5,466 | cpp | C++ | CA-source/serial_linux.cpp | dimtass/stm32mp1-rpmsg-test | 8e6e92b30cf5a5851fecb9df322d125675685734 | [
"MIT"
] | null | null | null | CA-source/serial_linux.cpp | dimtass/stm32mp1-rpmsg-test | 8e6e92b30cf5a5851fecb9df322d125675685734 | [
"MIT"
] | null | null | null | CA-source/serial_linux.cpp | dimtass/stm32mp1-rpmsg-test | 8e6e92b30cf5a5851fecb9df322d125675685734 | [
"MIT"
] | null | null | null | #include <sys/ioctl.h>
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <unistd.h>
#include <cstring>
#include <errno.h>
#include <fcntl.h>
#include <time.h>
#include <signal.h>
#include <string>
#include "log.h"
#include "serial_linux.h"
Serial::Serial(std::string port, int baudrate) :... | 26.15311 | 101 | 0.590011 | dimtass |
1ba2d80232f33fd9ab0f5f4c3bee4e401a3fa164 | 8,540 | cpp | C++ | src/Tools/ImagePolygonize/ImagePolygonize.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Tools/ImagePolygonize/ImagePolygonize.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Tools/ImagePolygonize/ImagePolygonize.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "ToolUtils/ToolUtils.h"
#include "Config/Config.h"
#include "pugixml.hpp"
#include <vector>
#include <string>
#include <sstream>
//////////////////////////////////////////////////////////////////////////
int APIENTRY wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR lpCmdLine, int nShowCmd )
{
... | 26.276923 | 100 | 0.600468 | irov |
1ba5b0848e1117fc5a6059de0d1752ace8e2f181 | 8,204 | cpp | C++ | Plugins/PLVolumeRenderer/src/ClipPosition/ShaderFunctionClipPositionVolumeTexture.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 83 | 2015-01-08T15:06:14.000Z | 2021-07-20T17:07:00.000Z | Plugins/PLVolumeRenderer/src/ClipPosition/ShaderFunctionClipPositionVolumeTexture.cpp | PixelLightFoundation/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 19 | 2018-08-24T08:10:13.000Z | 2018-11-29T06:39:08.000Z | Plugins/PLVolumeRenderer/src/ClipPosition/ShaderFunctionClipPositionVolumeTexture.cpp | ktotheoz/pixellight | 43a661e762034054b47766d7e38d94baf22d2038 | [
"MIT"
] | 40 | 2015-02-25T18:24:34.000Z | 2021-03-06T09:01:48.000Z | /*********************************************************\
* File: ShaderFunctionClipPositionVolumeTexture.cpp *
*
* Copyright (C) 2002-2013 The PixelLight Team (http://www.pixellight.org/)
*
* This file is part of PixelLight.
*
* Permission is hereby granted, free of charge, to any person obtaining a co... | 41.02 | 194 | 0.661141 | ktotheoz |
1ba5d57d5b0151da2290bb7370698ca12d15ec09 | 14,827 | hpp | C++ | src/cpu/jit_avx512_common_conv_kernel.hpp | scale-snu/mkldnn-bn-restructuring | 97fdb4f17119008baf452f1cbee5b91b6a366d79 | [
"Apache-2.0"
] | 1 | 2021-09-14T08:09:29.000Z | 2021-09-14T08:09:29.000Z | src/cpu/jit_avx512_common_conv_kernel.hpp | scale-snu/mkldnn-bn-restructuring | 97fdb4f17119008baf452f1cbee5b91b6a366d79 | [
"Apache-2.0"
] | null | null | null | src/cpu/jit_avx512_common_conv_kernel.hpp | scale-snu/mkldnn-bn-restructuring | 97fdb4f17119008baf452f1cbee5b91b6a366d79 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2016-2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... | 30.697723 | 80 | 0.636811 | scale-snu |
1ba78291d259f1cc831ed6a2cabdb63975f30d21 | 1,329 | cpp | C++ | Source/XsollaWebBrowser/Private/XsollaWebBrowserModule.cpp | xsolla/store-ue4-sdk | e25440e9d0b82663929ee7f49807e9b6bb09606b | [
"Apache-2.0"
] | 14 | 2019-08-28T19:49:07.000Z | 2021-12-04T14:34:18.000Z | Source/XsollaWebBrowser/Private/XsollaWebBrowserModule.cpp | xsolla/inventory-ue4-sdk | bbe8fbc7384c0c34992145329a4dbd61aa3ae362 | [
"Apache-2.0"
] | 34 | 2019-08-17T08:23:18.000Z | 2021-12-08T08:25:14.000Z | Source/XsollaWebBrowser/Private/XsollaWebBrowserModule.cpp | xsolla/store-ue4-sdk | e25440e9d0b82663929ee7f49807e9b6bb09606b | [
"Apache-2.0"
] | 12 | 2019-09-25T15:14:58.000Z | 2022-03-21T09:27:58.000Z | // Copyright 2021 Xsolla Inc. All Rights Reserved.
#include "XsollaWebBrowserModule.h"
#include "XsollaWebBrowserAssetManager.h"
#include "IWebBrowserSingleton.h"
#include "Materials/Material.h"
#include "Modules/ModuleManager.h"
#include "WebBrowserModule.h"
const FName FXsollaWebBrowserModule::ModuleName = "Xsoll... | 34.076923 | 169 | 0.808126 | xsolla |
1ba82d595eb3f402ab79c250719d172cc84101b0 | 3,696 | cpp | C++ | csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests.Capi/InferenceTestCapi.cpp | wintersteiger/onnxruntime | 071a0c2522dd2af2b1936d608ef7182be6cfa883 | [
"MIT"
] | 2 | 2019-11-18T14:04:42.000Z | 2019-12-04T12:49:01.000Z | csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests.Capi/InferenceTestCapi.cpp | wintersteiger/onnxruntime | 071a0c2522dd2af2b1936d608ef7182be6cfa883 | [
"MIT"
] | null | null | null | csharp/test/Microsoft.ML.OnnxRuntime.EndToEndTests.Capi/InferenceTestCapi.cpp | wintersteiger/onnxruntime | 071a0c2522dd2af2b1936d608ef7182be6cfa883 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
#include "CppUnitTest.h"
#include <assert.h>
#include <onnxruntime_c_api.h>
wchar_t* GetWideString(const char* c) {
const size_t cSize = strlen(c) + 1;
wchar_t* wc = new wchar_t[cSize];
mbstowcs(wc, c, cSize);
r... | 38.905263 | 194 | 0.578193 | wintersteiger |
1bb0420d83c9a197f73a2c82680ab0a844eeac6c | 437 | cpp | C++ | TRB_BME280.cpp | trombik/TRB_BME280 | 0b55deb8196aea46801551f97c3f6b9162dfa434 | [
"ISC"
] | null | null | null | TRB_BME280.cpp | trombik/TRB_BME280 | 0b55deb8196aea46801551f97c3f6b9162dfa434 | [
"ISC"
] | 5 | 2018-07-14T16:16:25.000Z | 2018-07-15T04:56:32.000Z | TRB_BME280.cpp | trombik/TRB_BME280 | 0b55deb8196aea46801551f97c3f6b9162dfa434 | [
"ISC"
] | null | null | null | #if !defined(_TRB_BME280_cpp)
#define _TRB_BME280_cpp
#if defined(TRB_BME280_I2C_WIRE)
#include "TRB_BME280_I2C_Wire.cpp"
#elif defined(TRB_BME280_I2C_BRZO)
#include "TRB_BME280_I2C_brzo.c"
#elif defined(TRB_BME280_I2C_LIB_I2C)
#include "TRB_BME280_I2C_LIB_I2C.cpp"
#elif defined(TRB_BME280_I2C_TYNYWIREM)
#include "... | 19 | 39 | 0.819222 | trombik |
1bb074f0f7d7bfd0afe1681a757ae4faac316760 | 3,941 | cxx | C++ | private/windows/opengl/scrsave/common/util.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/windows/opengl/scrsave/common/util.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/windows/opengl/scrsave/common/util.cxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | /******************************Module*Header*******************************\
* Module Name: util.cxx
*
* Misc. utility functions
*
* Copyright (c) 1996 Microsoft Corporation
*
\**************************************************************************/
#include <stdio.h>
#include <string.h>
#include <stdlib... | 19.606965 | 86 | 0.415377 | King0987654 |
1bb316e4bfdca896d8d9918defda16f893cd2b55 | 3,023 | cpp | C++ | REDSI_1160929_1161573/boost_1_67_0/libs/math/example/policy_eg_4.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | libs/boost/libs/math/example/policy_eg_4.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/boost/libs/math/example/policy_eg_4.cpp | flingone/frameworks_base_cmds_remoted | 4509d9f0468137ed7fd8d100179160d167e7d943 | [
"Apache-2.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | // Copyright John Maddock 2007.
// Copyright Paul A. Bristow 2010
// Use, modification and distribution are subject to 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)
// Note that this file contains quickbook mark-up as... | 27.990741 | 89 | 0.683427 | Wultyc |
1bb70a7e6bccea9f5e2e401a1ecc9c9d92f17777 | 831 | cp | C++ | examples/trivial.cp | wxzh/CP | 6ae36c7929cecc40a9ae15eed991ea1ddf7e8fe1 | [
"BSD-3-Clause"
] | 11 | 2021-07-02T10:58:45.000Z | 2022-02-10T02:36:17.000Z | examples/trivial.cp | wxzh/CP | 6ae36c7929cecc40a9ae15eed991ea1ddf7e8fe1 | [
"BSD-3-Clause"
] | null | null | null | examples/trivial.cp | wxzh/CP | 6ae36c7929cecc40a9ae15eed991ea1ddf7e8fe1 | [
"BSD-3-Clause"
] | null | null | null | --> "((4 + 3) - 3) = 4"
-- Examples in "The Expression Problem, Trivially!"
type IEval = {eval : Int};
lit (x : Int) = trait [self : IEval] => {
eval = x
};
add (e1 : IEval) (e2 : IEval) = trait => {
eval = e1.eval + e2.eval
};
sub (e1 : IEval) (e2 : IEval) = trait => {
eval = e1.eval - e2.eval
};
type IP... | 20.775 | 80 | 0.527076 | wxzh |
1bb7a55d6313e0c9489914f8a35527f5a8a2c13d | 1,126 | cpp | C++ | Backends/src/frontends/CaptnGeneral_1_0.cpp | sebhoof/gambit_1.5 | f9a3f788e3331067c555ae1a030420e903c6fdcd | [
"Unlicense"
] | 2 | 2020-09-08T20:05:27.000Z | 2021-04-26T07:57:56.000Z | Backends/src/frontends/CaptnGeneral_1_0.cpp | sebhoof/gambit_1.5 | f9a3f788e3331067c555ae1a030420e903c6fdcd | [
"Unlicense"
] | 9 | 2020-10-19T09:56:17.000Z | 2021-05-28T06:12:03.000Z | Backends/src/frontends/CaptnGeneral_1_0.cpp | patscott/gambit_1.4 | a50537419918089effc207e8b206489a5cfd2258 | [
"Unlicense"
] | 5 | 2020-09-08T02:23:34.000Z | 2021-03-23T08:48:04.000Z | // GAMBIT: Global and Modular BSM Inference Tool
// *********************************************
/// \file
///
/// Frontend for Capt'n General 1.0 backend
///
/// *********************************************
///
/// Authors (add name and date if you modify):
///
/// Aaron Vincent
/// 25/09/2017
/// *******... | 30.432432 | 128 | 0.556838 | sebhoof |
1bb94a4cbd40142becfef75ba634c24b9daa8d6f | 11,244 | hpp | C++ | include/termox/widget/size_policy.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 284 | 2017-11-07T10:06:48.000Z | 2021-01-12T15:32:51.000Z | include/termox/widget/size_policy.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 38 | 2018-01-14T12:34:54.000Z | 2020-09-26T15:32:43.000Z | include/termox/widget/size_policy.hpp | a-n-t-h-o-n-y/MCurses | c9184a0fefbdc4eb9a044f815ee2270e6b8f202c | [
"MIT"
] | 31 | 2017-11-30T11:22:21.000Z | 2020-11-03T05:27:47.000Z | #ifndef TERMOX_WIDGET_SIZE_POLICY_HPP
#define TERMOX_WIDGET_SIZE_POLICY_HPP
#include <limits>
#include <utility>
#include <signals_light/signal.hpp>
namespace ox {
/// Defines how a Layout should resize a Widget in one length Dimension.
class Size_policy {
private:
struct Data {
int hint = ... | 32.217765 | 80 | 0.661864 | a-n-t-h-o-n-y |
1bb99b1e04b0d005b50d84b310cc0de09776e3ba | 744 | hpp | C++ | meta/include/mgs/meta/concepts/semiregular.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | 24 | 2020-07-01T13:45:50.000Z | 2021-11-04T19:54:47.000Z | meta/include/mgs/meta/concepts/semiregular.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | meta/include/mgs/meta/concepts/semiregular.hpp | theodelrieu/mgs | 965a95e3d539447cc482e915f9c44b3439168a4e | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <tuple>
#include <type_traits>
#include <mgs/meta/concepts/copyable.hpp>
#include <mgs/meta/concepts/default_constructible.hpp>
namespace mgs
{
namespace meta
{
template <typename T>
struct is_semiregular
{
using requirements = std::tuple<is_copyable<T>, is_default_constructible<T>>;
stati... | 21.257143 | 79 | 0.744624 | theodelrieu |
1bba70f94cfbb166a50928784bf4bc3496e367a0 | 2,333 | cpp | C++ | Phoenix3D/PX2Core/PX2Timestamp.cpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/PX2Core/PX2Timestamp.cpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/PX2Core/PX2Timestamp.cpp | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // PX2Timestamp.cpp
#include "PX2Timestamp.hpp"
using namespace PX2;
#if defined(_WIN32) || defined(WIN32)
#include <Windows.h>
#endif
#ifdef __APPLE__
#include <sys/time.h>
#else
#include <sys/timeb.h>
#endif
//----------------------------------------------------------------------------
Timestamp::Timestamp()
:
m... | 26.511364 | 91 | 0.453065 | PheonixFoundation |
1bbd1d5d95c5bbba22e7d93da6ee521f7a4fe11c | 27,909 | cpp | C++ | src/blend2d/opentype/otkern.cpp | JouriM66/blend2d | 3f3134c8e3ce78594a9f1c7b3c116cc10f773e4b | [
"Zlib"
] | null | null | null | src/blend2d/opentype/otkern.cpp | JouriM66/blend2d | 3f3134c8e3ce78594a9f1c7b3c116cc10f773e4b | [
"Zlib"
] | null | null | null | src/blend2d/opentype/otkern.cpp | JouriM66/blend2d | 3f3134c8e3ce78594a9f1c7b3c116cc10f773e4b | [
"Zlib"
] | null | null | null | // This file is part of Blend2D project <https://blend2d.com>
//
// See blend2d.h or LICENSE.md for license and copyright information
// SPDX-License-Identifier: Zlib
#include "../api-build_p.h"
#include "../font_p.h"
#include "../trace_p.h"
#include "../opentype/otface_p.h"
#include "../opentype/otkern_p.h"
#include ... | 39.143058 | 206 | 0.68924 | JouriM66 |
1bbd809ee611e01edbe1295f0f4754ea82585d00 | 22,392 | cpp | C++ | util/noise/fast_noise_2.cpp | Gamerfiend/godot_voxel | 89762f43764f45d7a1e703ef9e4e750ecc0b0e88 | [
"MIT"
] | null | null | null | util/noise/fast_noise_2.cpp | Gamerfiend/godot_voxel | 89762f43764f45d7a1e703ef9e4e750ecc0b0e88 | [
"MIT"
] | null | null | null | util/noise/fast_noise_2.cpp | Gamerfiend/godot_voxel | 89762f43764f45d7a1e703ef9e4e750ecc0b0e88 | [
"MIT"
] | 1 | 2021-11-09T14:18:03.000Z | 2021-11-09T14:18:03.000Z | #include "fast_noise_2.h"
#include "../math/funcs.h"
#include <core/io/image.h>
using namespace zylann;
FastNoise2::FastNoise2() {
// Setup default
update_generator();
}
void FastNoise2::set_encoded_node_tree(String data) {
if (data != _last_set_encoded_node_tree) {
_last_set_encoded_node_tree = data;
emit_ch... | 33.222552 | 117 | 0.764871 | Gamerfiend |
1bbf8a4e3ddc740e942e10a781dd5e6371a7330e | 2,276 | cc | C++ | cc/quads/io_surface_draw_quad.cc | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 9 | 2018-09-21T05:36:12.000Z | 2021-11-15T15:14:36.000Z | cc/quads/io_surface_draw_quad.cc | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | cc/quads/io_surface_draw_quad.cc | pozdnyakov/chromium-crosswalk | 0fb25c7278bf1d93e53a3b0bcb75aa8b99d4b26e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2018-11-28T14:54:13.000Z | 2020-07-02T07:36:07.000Z | // Copyright 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 "cc/quads/io_surface_draw_quad.h"
#include "base/logging.h"
namespace cc {
IOSurfaceDrawQuad::IOSurfaceDrawQuad()
: io_surface_resource_id... | 36.709677 | 73 | 0.650264 | pozdnyakov |
1bc097ef83d76d4b76626737468d423ebd91873d | 4,823 | cpp | C++ | modules/tachyon/TachyonRenderer.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | 1 | 2016-05-24T19:27:01.000Z | 2016-05-24T19:27:01.000Z | modules/tachyon/TachyonRenderer.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | modules/tachyon/TachyonRenderer.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 35.725926 | 91 | 0.556085 | mathstuf |
1bc10caf75014212e9aad3c5f8126174a952eda0 | 11,365 | cpp | C++ | CppProject5_3D/CppProject5/src/input/InputController.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | 1 | 2019-08-25T03:04:35.000Z | 2019-08-25T03:04:35.000Z | CppProject5_3D/CppProject5/src/input/InputController.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | null | null | null | CppProject5_3D/CppProject5/src/input/InputController.cpp | Damoy/Tower3D | a6f1ec9fd5e7c26ade5528828cc576f5ed45394a | [
"MIT"
] | null | null | null | #include <iostream>
#include "InputController.h"
#include "renderEngine\WindowManager.h"
#include "utils\checkers\Checker.h"
#include "models\ModelBank.h"
#include "input\MouseTransformer.h"
#include "entities\towers\SampleTower.h"
#include "entities\towers\IntelligentTower.h"
#include "GLM\gtc\matrix_transform.hpp"
... | 27.855392 | 113 | 0.727673 | Damoy |
1bc2169b0fae36fcbf038021ccf31bd8e0caad24 | 1,338 | cpp | C++ | k-concatenation.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | k-concatenation.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | k-concatenation.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <limits.h>
using namespace std;
long long int maxSubArraySum(vector<long long int> a, int size)
{
long long int max_so = INT_MIN, max_here = 0;
for (int i = 0; i < size; i++)
{
max_here = max_here + a[i];
if (max_so < max_here)
ma... | 16.936709 | 63 | 0.508221 | sagar-sam |
1bc44872ad4dbb28db93baf55b78b9654d0d8727 | 1,502 | cpp | C++ | core/src/special/StubModule.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 2 | 2020-10-16T10:15:37.000Z | 2021-01-21T13:06:00.000Z | core/src/special/StubModule.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | null | null | null | core/src/special/StubModule.cpp | azuki-monster/megamol | f5d75ae5630f9a71a7fbf81624bfd4f6b253c655 | [
"BSD-3-Clause"
] | 1 | 2021-01-28T01:19:54.000Z | 2021-01-28T01:19:54.000Z | /*
* StubModule.cpp
* Copyright (C) 2017 by MegaMol Team
* All rights reserved. Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "mmcore/special/StubModule.h"
#include "mmcore/CoreInstance.h"
#include "mmcore/factories/CallAutoDescription.h"
using namespace megamol;
using namespace megamol::core;
speci... | 23.107692 | 97 | 0.607856 | azuki-monster |
1bc51b36950c7918cfff9697eee495fb74b61a24 | 3,672 | cxx | C++ | src/Cxx/Visualization/BillboardTextActor3D.cxx | cvandijck/VTKExamples | b6bb89414522afc1467be8a1f0089a37d0c16883 | [
"Apache-2.0"
] | 309 | 2017-05-21T09:07:19.000Z | 2022-03-15T09:18:55.000Z | src/Cxx/Visualization/BillboardTextActor3D.cxx | yijianmingliu/VTKExamples | dc8aac47c4384f9a2de9facbdd1ab3249f62ec99 | [
"Apache-2.0"
] | 379 | 2017-05-21T09:06:43.000Z | 2021-03-29T20:30:50.000Z | src/Cxx/Visualization/BillboardTextActor3D.cxx | yijianmingliu/VTKExamples | dc8aac47c4384f9a2de9facbdd1ab3249f62ec99 | [
"Apache-2.0"
] | 170 | 2017-05-17T14:47:41.000Z | 2022-03-31T13:16:26.000Z | #include <vtkSmartPointer.h>
#include <vtkPolyDataMapper.h>
#include <vtkProperty.h>
#include <vtkActor.h>
#include <vtkRenderWindow.h>
#include <vtkRenderer.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkPolyData.h>
#include <vtkSphereSource.h>
#include <vtkBillboardTextActor3D.h>
#include <vtkTextProperty.h>
... | 33.381818 | 70 | 0.688453 | cvandijck |
1bc56930af11b6dbcfa066e65d385182c33ea84a | 8,253 | cpp | C++ | examples/main.cpp | mgienger/ESLib | aee404104c99b95e2070b632ff2d8210f5cc6941 | [
"BSD-3-Clause"
] | 6 | 2018-12-18T19:30:58.000Z | 2021-03-11T15:52:14.000Z | examples/main.cpp | mgienger/ESLib | aee404104c99b95e2070b632ff2d8210f5cc6941 | [
"BSD-3-Clause"
] | 3 | 2019-03-29T21:11:28.000Z | 2019-08-15T19:45:27.000Z | examples/main.cpp | mgienger/ESLib | aee404104c99b95e2070b632ff2d8210f5cc6941 | [
"BSD-3-Clause"
] | 2 | 2019-01-24T16:07:12.000Z | 2020-07-15T18:39:33.000Z | /*******************************************************************************
Copyright (c) 2017, Honda Research Institute Europe GmbH.
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. R... | 28.167235 | 95 | 0.662305 | mgienger |
1bc7f1a5e3bf3a4caff23f962427d01b0817adf6 | 458 | hh | C++ | src/common/geometry/hyperbolic/plane.hh | danieldeankon/hypertrace | d58a6ea28af45b875c477df4065667e9b4b88a49 | [
"MIT"
] | null | null | null | src/common/geometry/hyperbolic/plane.hh | danieldeankon/hypertrace | d58a6ea28af45b875c477df4065667e9b4b88a49 | [
"MIT"
] | null | null | null | src/common/geometry/hyperbolic/plane.hh | danieldeankon/hypertrace | d58a6ea28af45b875c477df4065667e9b4b88a49 | [
"MIT"
] | null | null | null | #pragma once
#include <algebra/quaternion.hh>
#include <object.hh>
#include <material.hh>
#include "ray.hh"
#define HYPLANE_TILING_NONE 0
#define HYPLANE_TILING_PENTAGONAL 1
#define HYPLANE_TILING_PENTASTAR 2
bool hyplane_hit(
const Object *plane, ObjectHit *cache,
PathInfo *path, HyRay ray
);
voi... | 18.32 | 48 | 0.733624 | danieldeankon |
1bd25c3852049acdcb97cdcb38b4017d0ce139e3 | 1,863 | cpp | C++ | doc/examples/PropertyExtractor/BlockDiagonalizer.cpp | undisputed-seraphim/TBTK | 45a0875a11da951f900b6fd5e0773ccdf8462915 | [
"Apache-2.0"
] | 96 | 2016-04-21T16:46:56.000Z | 2022-01-15T21:40:25.000Z | doc/examples/PropertyExtractor/BlockDiagonalizer.cpp | undisputed-seraphim/TBTK | 45a0875a11da951f900b6fd5e0773ccdf8462915 | [
"Apache-2.0"
] | 4 | 2016-10-19T16:56:20.000Z | 2020-04-14T01:31:40.000Z | doc/examples/PropertyExtractor/BlockDiagonalizer.cpp | undisputed-seraphim/TBTK | 45a0875a11da951f900b6fd5e0773ccdf8462915 | [
"Apache-2.0"
] | 19 | 2016-10-19T14:21:58.000Z | 2021-04-15T13:52:09.000Z | #include "HeaderAndFooter.h"
TBTK::DocumentationExamples::HeaderAndFooter headerAndFooter("BlockDiagonalizer");
//! [BlockDiagonalizer]
#include "TBTK/Model.h"
#include "TBTK/PropertyExtractor/BlockDiagonalizer.h"
#include "TBTK/Range.h"
#include "TBTK/Smooth.h"
#include "TBTK/Solver/BlockDiagonalizer.h"
#include "TBT... | 25.875 | 82 | 0.7343 | undisputed-seraphim |
1bd265e68b13112210d9ff7960e5d4dd56674dd0 | 1,623 | cpp | C++ | codeforces/175b.plane-of-tanks-pro/175b.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | 3 | 2018-01-19T14:09:23.000Z | 2018-02-01T00:40:55.000Z | codeforces/175b.plane-of-tanks-pro/175b.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | codeforces/175b.plane-of-tanks-pro/175b.cpp | KayvanMazaheri/acm | aeb05074bc9b9c92f35b6a741183da09a08af85d | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#define X first
#define Y second
#define EPS ((double)1e-8)
using namespace std;
struct player
{
string name;
int point;
int better, not_worse;
};
vector <player> vec;
vector <pair <string, string> > result;
int is_in_vec(string name)
{
for(int i=0; i... | 20.544304 | 78 | 0.566852 | KayvanMazaheri |