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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b9ecc1ccd0e410d12d7d6537dcb7c6a57ffad4a3 | 1,495 | cpp | C++ | Homeworks/Homework-1/Task 2/DNSRecord.cpp | kgolov/uni-object-oriented-programming | 9fac38a7bf9a0b673db8e5688714fe320793fed7 | [
"MIT"
] | null | null | null | Homeworks/Homework-1/Task 2/DNSRecord.cpp | kgolov/uni-object-oriented-programming | 9fac38a7bf9a0b673db8e5688714fe320793fed7 | [
"MIT"
] | null | null | null | Homeworks/Homework-1/Task 2/DNSRecord.cpp | kgolov/uni-object-oriented-programming | 9fac38a7bf9a0b673db8e5688714fe320793fed7 | [
"MIT"
] | null | null | null | #include <iostream>
#include "DNSRecord.h"
DNSRecord::DNSRecord() {
setDomain("");
setIpAddress("");
}
DNSRecord::~DNSRecord() {
delete[] domainName;
delete[] ipAddress;
}
DNSRecord::DNSRecord(const char* domain, const char* ipaddr) {
setDomain(domain);
setIpAddress(ipaddr);
}
// Copy constr... | 19.671053 | 63 | 0.666221 | kgolov |
b9ee342b5146afeae96e11cc3d993221cd900ec1 | 10,852 | cpp | C++ | src/DewDropPlayer/Engine/AC3Engine.cpp | kineticpsychology/Dew-Drop-Project | 1704ac491395800c0b1e54d1d0fd761fc5a71296 | [
"0BSD"
] | null | null | null | src/DewDropPlayer/Engine/AC3Engine.cpp | kineticpsychology/Dew-Drop-Project | 1704ac491395800c0b1e54d1d0fd761fc5a71296 | [
"0BSD"
] | null | null | null | src/DewDropPlayer/Engine/AC3Engine.cpp | kineticpsychology/Dew-Drop-Project | 1704ac491395800c0b1e54d1d0fd761fc5a71296 | [
"0BSD"
] | null | null | null | /*******************************************************************************
* *
* COPYRIGHT (C) Aug, 2020 | Polash Majumdar *
* ... | 38.211268 | 133 | 0.636933 | kineticpsychology |
b9ee489367bbd4daeec6d214a7b3848e168265d6 | 42,357 | cc | C++ | commonLibrary/netString.cc | yahoo/Pluton | 82bbab17c0013d87063b398ec777d5977f353d0a | [
"MIT"
] | 8 | 2015-05-22T21:27:17.000Z | 2017-03-19T06:07:41.000Z | commonLibrary/netString.cc | YahooArchive/Pluton | 82bbab17c0013d87063b398ec777d5977f353d0a | [
"MIT"
] | null | null | null | commonLibrary/netString.cc | YahooArchive/Pluton | 82bbab17c0013d87063b398ec777d5977f353d0a | [
"MIT"
] | 6 | 2015-10-16T08:40:00.000Z | 2016-11-14T06:48:09.000Z | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Redistribution and use of this software 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 and ... | 30.428879 | 99 | 0.620441 | yahoo |
b9ee5f9f6e3865f9d5a7bd5521d0f5f507d04c3c | 2,591 | cpp | C++ | db/BucketHeaderPage.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | db/BucketHeaderPage.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | db/BucketHeaderPage.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | /* Copyright (c) 2015 Kerio Technologies s.r.o.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... | 47.981481 | 204 | 0.76071 | LPetrlik |
b9ef234b26b4a0f2b330342c404f7ec9c4886ebb | 1,074 | hpp | C++ | src/editor/configuration.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 36 | 2021-05-03T10:47:49.000Z | 2022-03-19T12:54:03.000Z | src/editor/configuration.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 29 | 2020-05-17T08:26:31.000Z | 2022-03-27T08:52:47.000Z | src/editor/configuration.hpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 2 | 2022-01-24T09:24:37.000Z | 2022-01-31T20:45:36.000Z | #pragma once
#include "erhe/components/component.hpp"
#include "erhe/components/components.hpp"
#include "erhe/gl/wrapper_enums.hpp"
namespace editor {
class Configuration
: public erhe::components::Component
{
public:
static constexpr std::string_view c_name{"Configuration"};
static constexpr uint32_t h... | 28.263158 | 118 | 0.626629 | tksuoran |
b9ef7c43a34b866ea9d2a9d81a9fcf0d91112e69 | 606 | cc | C++ | atom/app/atom_main_args.cc | fireball-x/atom-shell | d229338e40058a9b4323b2544f62818a3c55748c | [
"MIT"
] | 4 | 2016-04-02T14:53:54.000Z | 2017-07-26T05:47:43.000Z | atom/app/atom_main_args.cc | cocos-creator/atom-shell | d229338e40058a9b4323b2544f62818a3c55748c | [
"MIT"
] | null | null | null | atom/app/atom_main_args.cc | cocos-creator/atom-shell | d229338e40058a9b4323b2544f62818a3c55748c | [
"MIT"
] | 2 | 2015-07-18T09:31:03.000Z | 2019-12-24T09:55:03.000Z | // Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/app/atom_main_args.h"
#include "vendor/node/deps/uv/include/uv.h"
namespace atom {
// static
std::vector<std::string> AtomCommandLine::argv_;
// static
void AtomComma... | 26.347826 | 71 | 0.689769 | fireball-x |
b9f1058c92aa4d2a7354a34e5ef3bbb52463ec30 | 10,674 | cc | C++ | components/autofill_assistant/browser/element_precondition_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/autofill_assistant/browser/element_precondition_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/autofill_assistant/browser/element_precondition_unittest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/autofill_assistant/browser/script_precondition.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/callback.h"
#... | 35.461794 | 80 | 0.726719 | mghgroup |
b9f194f84c9089d498f66ef090c85dd916d22c2e | 221 | cpp | C++ | test/tests_main.cpp | martinusbach/SmartMeterMonitor | 6cb91dd67a81e1ee202e55ad2e59a7a1d0baf96a | [
"MIT"
] | null | null | null | test/tests_main.cpp | martinusbach/SmartMeterMonitor | 6cb91dd67a81e1ee202e55ad2e59a7a1d0baf96a | [
"MIT"
] | null | null | null | test/tests_main.cpp | martinusbach/SmartMeterMonitor | 6cb91dd67a81e1ee202e55ad2e59a7a1d0baf96a | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Martien Oppeneer.
// This software is MIT licensed; see LICENSE.MIT.
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <catch2/catch.hpp>
| 31.571429 | 97 | 0.728507 | martinusbach |
b9f3fc7226e145fef9616f12a86fa57f586deee1 | 1,176 | cc | C++ | cinn/ir/ir_verify.cc | SunNy820828449/CINN | 6384f730867132508c2c60f5ff2aae12959143d7 | [
"Apache-2.0"
] | 57 | 2020-10-09T12:18:48.000Z | 2022-03-12T07:58:55.000Z | cinn/ir/ir_verify.cc | SunNy820828449/CINN | 6384f730867132508c2c60f5ff2aae12959143d7 | [
"Apache-2.0"
] | 380 | 2020-10-09T08:28:08.000Z | 2022-03-31T09:17:36.000Z | cinn/ir/ir_verify.cc | SunNy820828449/CINN | 6384f730867132508c2c60f5ff2aae12959143d7 | [
"Apache-2.0"
] | 34 | 2020-10-09T08:46:45.000Z | 2022-03-05T09:29:54.000Z | // Copyright (c) 2021 CINN 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 appl... | 29.4 | 75 | 0.653912 | SunNy820828449 |
b9f5aca89a2e2352de30b0a3760759230aa0921e | 4,009 | cpp | C++ | frameworks/cocos2d-x/cocos/editor-support/spine/CurveTimeline.cpp | a77654135/test | 8baad719292e1d04f5ad6a17ee56845437ea90d0 | [
"MIT"
] | null | null | null | frameworks/cocos2d-x/cocos/editor-support/spine/CurveTimeline.cpp | a77654135/test | 8baad719292e1d04f5ad6a17ee56845437ea90d0 | [
"MIT"
] | null | null | null | frameworks/cocos2d-x/cocos/editor-support/spine/CurveTimeline.cpp | a77654135/test | 8baad719292e1d04f5ad6a17ee56845437ea90d0 | [
"MIT"
] | null | null | null | /******************************************************************************
* Spine Runtimes License Agreement
* Last updated May 1, 2019. Replaces all prior versions.
*
* Copyright (c) 2013-2019, Esoteric Software LLC
*
* Integration of the Spine Runtimes into software or otherwise creating
* derivative wor... | 31.320313 | 100 | 0.661761 | a77654135 |
b9f60aebd437ce849a1571fe1365929552bd8368 | 461 | cpp | C++ | Online-Judges/CodeForces/900/460A.Vasya_and_Socks.cpp | shihab4t/Competitive-Programming | e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be | [
"Unlicense"
] | 3 | 2021-06-15T01:19:23.000Z | 2022-03-16T18:23:53.000Z | Online-Judges/CodeForces/900/460A.Vasya_and_Socks.cpp | shihab4t/Competitive-Programming | e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be | [
"Unlicense"
] | null | null | null | Online-Judges/CodeForces/900/460A.Vasya_and_Socks.cpp | shihab4t/Competitive-Programming | e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int lli;
#define endn "\n"
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(NULL); cout.tie(NULL);
int n, m;
cin >>n >>m;
int i, j;
for (i = 1, j = 1; n; i++) {
if (i == m*j) {
n++;
j... | 16.464286 | 44 | 0.468547 | shihab4t |
b9f63dc4aac6467d758353bd84e10962711c115b | 1,621 | cpp | C++ | PAT/PAT Advanced/c++/1145.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:27.000Z | 2019-09-18T23:45:27.000Z | PAT/PAT Advanced/c++/1145.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | null | null | null | PAT/PAT Advanced/c++/1145.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:28.000Z | 2019-09-18T23:45:28.000Z | #include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
//PAT Advanced Level 1145 Hashing - Average Search Time
bool isPrime(int num){
if(num <= 1)
return false;
else if(num == 2 || num == 3)
return true;
int range = sqrt((double)num);
for (int ... | 23.838235 | 62 | 0.47008 | Accelerator404 |
b9fb51b4865b070a1fdcb1d2469719dcb80bd430 | 896 | cpp | C++ | test/multiset/allocator_mismatch.fail.cpp | garstka/contiguous-associative | b6b24117e34e6707bfa63cbf01ae5f36c68e1f99 | [
"MIT"
] | null | null | null | test/multiset/allocator_mismatch.fail.cpp | garstka/contiguous-associative | b6b24117e34e6707bfa63cbf01ae5f36c68e1f99 | [
"MIT"
] | null | null | null | test/multiset/allocator_mismatch.fail.cpp | garstka/contiguous-associative | b6b24117e34e6707bfa63cbf01ae5f36c68e1f99 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 28.903226 | 80 | 0.585938 | garstka |
b9fdf342c18a99e990dd1b6f7e397c7b31ddead0 | 6,938 | cpp | C++ | apps/src/batchstitcher/batchertask.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | apps/src/batchstitcher/batchertask.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | apps/src/batchstitcher/batchertask.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "batchertask.hpp"
#include <QApplication>
#include <QDir>
#include <QProgressBar>
#include <QStyle>
#include <sstream>
#include "autoelidelabel.hpp"
#include "libvideostitch-gui/mainwindow/vscommandprocess.hpp"
#include "libvideostitc... | 31.680365 | 120 | 0.686365 | tlalexander |
b9ff07ef94320355588944362a0c1111cee81164 | 277 | cpp | C++ | check/get_vulkan_version.cpp | Fadis/vulkan2json | e766e77c7efb14f214721cf75b1767792b059b02 | [
"MIT"
] | 1 | 2021-11-30T16:21:40.000Z | 2021-11-30T16:21:40.000Z | check/get_vulkan_version.cpp | Fadis/vulkan2json | e766e77c7efb14f214721cf75b1767792b059b02 | [
"MIT"
] | null | null | null | check/get_vulkan_version.cpp | Fadis/vulkan2json | e766e77c7efb14f214721cf75b1767792b059b02 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vulkan/vulkan_core.h>
int main() {
std::cout <<
VK_API_VERSION_MAJOR(VK_HEADER_VERSION_COMPLETE) << "." <<
VK_API_VERSION_MINOR(VK_HEADER_VERSION_COMPLETE) << "." <<
VK_API_VERSION_PATCH(VK_HEADER_VERSION_COMPLETE) << std::flush;
}
| 27.7 | 67 | 0.722022 | Fadis |
b9ffac43ab24cf333d0a9230fe7d34747cb09a4e | 21,082 | cpp | C++ | src/gui/widgets/layout.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/gui/widgets/layout.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/gui/widgets/layout.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file layout.cpp
* @brief
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2001-12-25
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/gui/precompiled.h"
#include "o3d/gui/widgets/layout.h"
#include "o3d/engine/scene/scene.h"
#... | 26.787802 | 99 | 0.491984 | dream-overflow |
6a048a01d6b2a4960b5d8065dcd11c66f8dc16c5 | 22,234 | cpp | C++ | src/bindings/Scriptdev2/scripts/eastern_kingdoms/zulaman/boss_zuljin.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 1 | 2017-11-16T19:04:07.000Z | 2017-11-16T19:04:07.000Z | src/bindings/Scriptdev2/scripts/eastern_kingdoms/zulaman/boss_zuljin.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/eastern_kingdoms/zulaman/boss_zuljin.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 34.471318 | 230 | 0.55586 | mfooo |
6a0679647ecb2dda55ea017e4703f3d687c96f6e | 2,651 | cpp | C++ | frameworks/ability_lite/src/ability_slice_manager.cpp | openharmony-gitee-mirror/aafwk_aafwk_lite | 11db476a14809f4519a597f43036471408a8da12 | [
"Apache-2.0"
] | 1 | 2022-02-15T08:51:55.000Z | 2022-02-15T08:51:55.000Z | frameworks/ability_lite/src/ability_slice_manager.cpp | openharmony-gitee-mirror/aafwk_aafwk_lite | 11db476a14809f4519a597f43036471408a8da12 | [
"Apache-2.0"
] | null | null | null | frameworks/ability_lite/src/ability_slice_manager.cpp | openharmony-gitee-mirror/aafwk_aafwk_lite | 11db476a14809f4519a597f43036471408a8da12 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:12:40.000Z | 2021-09-13T11:12:40.000Z | /*
* Copyright (c) 2020 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 applicable law ... | 25.490385 | 101 | 0.775556 | openharmony-gitee-mirror |
6a08aa1bf8593f8e45607b9b0dcaf439b9360a28 | 24,630 | cpp | C++ | cpp/depends/igl/headers/igl/dual_contouring.cpp | GitZHCODE/zspace_modules | 2264cb837d2f05184a51b7b453c7e24288e88ee1 | [
"MIT"
] | 2 | 2022-03-28T14:10:50.000Z | 2022-03-28T14:10:51.000Z | cpp/depends/igl/headers/igl/dual_contouring.cpp | GitZHCODE/zspace_modules | 2264cb837d2f05184a51b7b453c7e24288e88ee1 | [
"MIT"
] | null | null | null | cpp/depends/igl/headers/igl/dual_contouring.cpp | GitZHCODE/zspace_modules | 2264cb837d2f05184a51b7b453c7e24288e88ee1 | [
"MIT"
] | 2 | 2022-03-23T10:33:10.000Z | 2022-03-28T14:09:55.000Z | #include "dual_contouring.h"
#include "quadprog.h"
#include "parallel_for.h"
#include <thread>
#include <mutex>
#include <vector>
#include <unordered_map>
#include <iostream>
namespace igl
{
// These classes not intended to be used directly
class Hash
{
public:
// https://stackoverflow.com/a/26348708/1... | 43.439153 | 1,028 | 0.550873 | GitZHCODE |
6a0b0379f33ca738f6130f7a59a585c1e5736c0a | 1,212 | cpp | C++ | src/codegen/proxy/zone_map_proxy.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | 2 | 2021-03-29T01:29:18.000Z | 2022-02-27T11:22:15.000Z | src/codegen/proxy/zone_map_proxy.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | null | null | null | src/codegen/proxy/zone_map_proxy.cpp | star013/peloton | 0e1c5f32fde00529f19f7ff5f5e7d5b4979f06ef | [
"Apache-2.0"
] | 3 | 2018-02-25T23:30:33.000Z | 2018-04-08T10:11:42.000Z | //===----------------------------------------------------------------------===//
//
// Peloton
//
// zone_map_proxy.cpp
//
// Identification: src/codegen/proxy/zone_map_proxy.cpp
//
// Copyright (c) 2015-2017, Carnegie Mellon University Database Group
//
//===------------------------------------... | 31.076923 | 80 | 0.523102 | star013 |
6a0b29ffbbfa37c426f0fc67bc3646621ccf3af2 | 223 | cpp | C++ | EventAnalyzer/src/SignatureTH1F_TEST.cpp | peterthomassen/RutgersIAF | 50fd20b79b8bce30478d49e1ce7c763424e094f1 | [
"MIT"
] | null | null | null | EventAnalyzer/src/SignatureTH1F_TEST.cpp | peterthomassen/RutgersIAF | 50fd20b79b8bce30478d49e1ce7c763424e094f1 | [
"MIT"
] | null | null | null | EventAnalyzer/src/SignatureTH1F_TEST.cpp | peterthomassen/RutgersIAF | 50fd20b79b8bce30478d49e1ce7c763424e094f1 | [
"MIT"
] | null | null | null | #include "RutgersIAF/EventAnalyzer/interface/SignatureTH1F_TEST.h"
ClassImp(SignatureTH1F_TEST<int>)
ClassImp(SignatureTH1F_TEST<double>)
template class SignatureTH1F_TEST<int>;
template class SignatureTH1F_TEST<double>;
| 27.875 | 66 | 0.852018 | peterthomassen |
6a0c09700c92d4000eefc18e0a2c6d5f13007833 | 10,869 | cpp | C++ | websocket.cpp | looyao/mevent | fa268e93b33264c71d086ba9387b5ab2fabd0257 | [
"MIT"
] | 42 | 2017-03-07T02:45:22.000Z | 2019-02-26T15:26:25.000Z | websocket.cpp | looyao/mevent | fa268e93b33264c71d086ba9387b5ab2fabd0257 | [
"MIT"
] | null | null | null | websocket.cpp | looyao/mevent | fa268e93b33264c71d086ba9387b5ab2fabd0257 | [
"MIT"
] | 11 | 2017-03-07T06:42:30.000Z | 2019-03-06T03:15:46.000Z | #include "websocket.h"
#include "mevent.h"
#include "base64.h"
#include "util.h"
#include "connection.h"
#include "lock_guard.h"
#include <string>
#include <openssl/sha.h>
namespace mevent {
// http://tools.ietf.org/html/rfc6455#section-5.2 Base Framing Protocol
//
// 0 1 2 ... | 30.70339 | 120 | 0.532616 | looyao |
6a0c8e7f098e46030e17b107c0409e74b185ccc9 | 4,136 | cpp | C++ | CommonLibF4/src/F4SE/Interfaces.cpp | blipvert/CommonLibF4 | d8681e20ed560fe14c45b02d6717f3444ed5ec9d | [
"MIT"
] | 24 | 2019-07-01T06:48:42.000Z | 2022-03-06T02:20:30.000Z | CommonLibF4/src/F4SE/Interfaces.cpp | blipvert/CommonLibF4 | d8681e20ed560fe14c45b02d6717f3444ed5ec9d | [
"MIT"
] | 4 | 2021-04-25T03:58:17.000Z | 2022-01-28T06:52:35.000Z | CommonLibF4/src/F4SE/Interfaces.cpp | blipvert/CommonLibF4 | d8681e20ed560fe14c45b02d6717f3444ed5ec9d | [
"MIT"
] | 11 | 2019-07-01T19:56:11.000Z | 2022-02-27T19:46:07.000Z | #include "F4SE/Interfaces.h"
#include "F4SE/API.h"
#include "F4SE/Logger.h"
namespace F4SE
{
bool MessagingInterface::RegisterListener(EventCallback* a_handler, stl::zstring a_sender) const
{
const auto success =
GetProxy().RegisterListener(
GetPluginHandle(),
a_sender.data(),
a_handler);
if (!su... | 23.106145 | 137 | 0.699952 | blipvert |
6a0ca3de6d18224a17a66cd8b884973869b02cd6 | 278,761 | cpp | C++ | Unity/build/iOS-Simulator/Classes/Native/Il2CppCompilerCalculateTypeValues_11Table.cpp | AnnaOpareva/Unity-iOS | dba005999d63e387167a36fe1feafd0b900626a8 | [
"MIT"
] | 31 | 2019-01-15T16:32:02.000Z | 2021-12-21T21:59:57.000Z | Unity/build/iOS-Simulator/Classes/Native/Il2CppCompilerCalculateTypeValues_11Table.cpp | AnnaOpareva/Unity-iOS | dba005999d63e387167a36fe1feafd0b900626a8 | [
"MIT"
] | 5 | 2019-05-16T05:36:44.000Z | 2022-03-18T10:12:53.000Z | Unity/build/iOS-Simulator/Classes/Native/Il2CppCompilerCalculateTypeValues_11Table.cpp | AnnaOpareva/Unity-iOS | dba005999d63e387167a36fe1feafd0b900626a8 | [
"MIT"
] | 3 | 2019-05-25T02:30:43.000Z | 2021-10-12T10:56:57.000Z | #import <TargetConditionals.h> // Modified by PostBuild.cs
#if TARGET_OS_SIMULATOR // Modified by PostBuild.cs
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <asse... | 49.734344 | 262 | 0.855697 | AnnaOpareva |
6a0ccf2edd1ae672e526d76fb5d4b6e8e8ac232c | 6,533 | cc | C++ | src/Core/GeometryPiece/SphereShellPiece.cc | abagusetty/Uintah | fa1bf819664fa6f09c5a7cd076870a40816d35c9 | [
"MIT"
] | null | null | null | src/Core/GeometryPiece/SphereShellPiece.cc | abagusetty/Uintah | fa1bf819664fa6f09c5a7cd076870a40816d35c9 | [
"MIT"
] | null | null | null | src/Core/GeometryPiece/SphereShellPiece.cc | abagusetty/Uintah | fa1bf819664fa6f09c5a7cd076870a40816d35c9 | [
"MIT"
] | null | null | null | /*
* The MIT License
*
* Copyright (c) 1997-2021 The University of Utah
*
* 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
* right... | 32.829146 | 99 | 0.650696 | abagusetty |
6a0da749bcf150c47ccc0726df8b0e515c9d8b2d | 12,306 | cc | C++ | art/test/Framework/Core/GroupSelector_t.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | null | null | null | art/test/Framework/Core/GroupSelector_t.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | null | null | null | art/test/Framework/Core/GroupSelector_t.cc | drbenmorgan/fnal-art | 31b8a5c76af364bbbfd8960bc2039b4f3cd47ae3 | [
"BSD-3-Clause"
] | null | null | null | #define BOOST_TEST_MODULE (GroupSelector_t)
#include "cetlib/quiet_unit_test.hpp"
#include "art/test/Framework/Core/GroupSelector_t.h"
#include "art/Framework/Core/GroupSelector.h"
#include "art/Framework/Core/GroupSelectorRules.h"
#include "art/Persistency/Provenance/ModuleDescription.h"
#include "art/Version/GetRel... | 31.634961 | 77 | 0.681537 | drbenmorgan |
6a143361a5dcdf8eb155d11449cc904bce3f4153 | 139 | cc | C++ | primer-answer/chapter4/4.4.cc | Becavalier/playground-cpp | 0fce453f769111698f813852238f933e326ed441 | [
"MIT"
] | 1 | 2018-02-23T11:12:17.000Z | 2018-02-23T11:12:17.000Z | primer-answer/chapter4/4.4.cc | Becavalier/playground-cpp | 0fce453f769111698f813852238f933e326ed441 | [
"MIT"
] | null | null | null | primer-answer/chapter4/4.4.cc | Becavalier/playground-cpp | 0fce453f769111698f813852238f933e326ed441 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main (int argc, char **argv) {
cout << 12 / 3 * 4 + 5 * 15 % 4 / 2 << endl;
return 0;
}
| 15.444444 | 46 | 0.561151 | Becavalier |
6a14537588806e8493ff5ffe7b49a9bc0d6bf50b | 4,343 | hh | C++ | ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.hh | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 216 | 2018-09-09T11:53:56.000Z | 2022-03-19T13:41:35.000Z | ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.hh | gaolinorange/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 13 | 2018-10-23T08:29:09.000Z | 2021-09-08T06:45:34.000Z | ACAP_linux/3rd/CoMISo/NSolver/NewtonSolver.hh | shubhMaheshwari/Automatic-Unpaired-Shape-Deformation-Transfer | 8c9afe017769f9554706bcd267b6861c4c144999 | [
"MIT"
] | 41 | 2018-09-13T08:50:41.000Z | 2022-02-23T00:33:54.000Z | //=============================================================================
//
// CLASS NewtonSolver
//
//=============================================================================
#ifndef COMISO_NEWTONSOLVER_HH
#define COMISO_NEWTONSOLVER_HH
//== COMPILE-TIME PACKAGE REQUIREMENTS ===========================... | 26.975155 | 171 | 0.61225 | shubhMaheshwari |
6a15419fccea3b82d34ba4bc71ba7283e8512d91 | 1,684 | hpp | C++ | include/eve/algo/mismatch.hpp | microblink/eve | 26d50d59190d3e2817c3ca95614e3e74f6c6f30a | [
"MIT"
] | null | null | null | include/eve/algo/mismatch.hpp | microblink/eve | 26d50d59190d3e2817c3ca95614e3e74f6c6f30a | [
"MIT"
] | null | null | null | include/eve/algo/mismatch.hpp | microblink/eve | 26d50d59190d3e2817c3ca95614e3e74f6c6f30a | [
"MIT"
] | null | null | null | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 30.071429 | 100 | 0.587292 | microblink |
6a1557cad78705cec374843883466c4a27208ad9 | 130 | cpp | C++ | Blob_Lib/assimp-5.2.3/assimp/code/AssetLib/glTF/glTFImporter.cpp | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/assimp-5.2.3/assimp/code/AssetLib/glTF/glTFImporter.cpp | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/assimp-5.2.3/assimp/code/AssetLib/glTF/glTFImporter.cpp | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:42d58f2dde4454184d57c53abed6de1ba590ee748646a74d9f17dcf57f402067
size 26666
| 32.5 | 75 | 0.884615 | antholuo |
6a1654d60c511cbe1e7d15958989baf442d5df12 | 28,195 | cpp | C++ | src/solvers/strings/string_constraint_generator_valueof.cpp | shijunjing/cbmc | f74ea2e639e813439be6aa0c0c0d4a35e608f412 | [
"BSD-4-Clause"
] | null | null | null | src/solvers/strings/string_constraint_generator_valueof.cpp | shijunjing/cbmc | f74ea2e639e813439be6aa0c0c0d4a35e608f412 | [
"BSD-4-Clause"
] | null | null | null | src/solvers/strings/string_constraint_generator_valueof.cpp | shijunjing/cbmc | f74ea2e639e813439be6aa0c0c0d4a35e608f412 | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Generates string constraints for functions generating strings
from other types, in particular int, long, float, double, char, bool
Author: Romain Brenguier, romain.brenguier@diffblue.com
\*******************************************... | 38.308424 | 82 | 0.694166 | shijunjing |
6a1a604beaf1e891a910aff2ab722c03b8906345 | 281 | cpp | C++ | src/test/ns.cpp | ifritJP/lctags | dd877c6f6f10b9299c59cfbc05755b7680c7dd80 | [
"MIT"
] | 17 | 2017-10-24T15:19:49.000Z | 2021-12-19T00:49:48.000Z | src/test/ns.cpp | ifritJP/lctags | dd877c6f6f10b9299c59cfbc05755b7680c7dd80 | [
"MIT"
] | 1 | 2021-02-24T15:49:11.000Z | 2021-02-26T07:45:05.000Z | src/test/ns.cpp | ifritJP/lctags | dd877c6f6f10b9299c59cfbc05755b7680c7dd80 | [
"MIT"
] | 1 | 2017-11-08T17:39:51.000Z | 2017-11-08T17:39:51.000Z | #include <stdio.h>
namespace ns1 {
int val1 = 1;
int val2 = 2;
namespace ns2 {
int val2 = -2;
namespace ns3 {
int val3 = 3;
}
void sub() {
printf( "%d, %d, %d, %d\n", val1, val2, ns1::val2, ns3::val3 );
}
}
}
main()
{
ns1::ns2::sub();
}
| 13.380952 | 69 | 0.476868 | ifritJP |
6a1af899742eab788845a47d23d39da86ad6d9f8 | 3,726 | cc | C++ | whisperlib/net/rpc/tests/Client-Server-sample/client/client_http.cc | cpopescu/whispercast | dd4ee1d4fa2e3436fc2387240eb3f5622749d944 | [
"BSD-3-Clause"
] | null | null | null | whisperlib/net/rpc/tests/Client-Server-sample/client/client_http.cc | cpopescu/whispercast | dd4ee1d4fa2e3436fc2387240eb3f5622749d944 | [
"BSD-3-Clause"
] | null | null | null | whisperlib/net/rpc/tests/Client-Server-sample/client/client_http.cc | cpopescu/whispercast | dd4ee1d4fa2e3436fc2387240eb3f5622749d944 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2009, Whispersoft s.r.l.
// 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 cond... | 36.529412 | 74 | 0.718465 | cpopescu |
6a1bb2310ac37e47635649a2ad509a1ddd0bae43 | 1,097 | cpp | C++ | Charpter07/subset.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | Charpter07/subset.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | Charpter07/subset.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
using namespace std;
int A[10], B[10];
//1.增量法
void print_subset1(int n, int *A, int cur)
{
for (int i = 0; i < cur; i++)
{
printf("%d ", A[i]);
}
printf("\n");
int s = cur ? A[cur - 1] + 1 : 0;
for (int i = s; i < n; i++)
{
A[cur] = i;
print_subs... | 15.898551 | 42 | 0.386509 | zhangdan0602 |
6a1d39786199fe9905036b9811680e268ea65733 | 12,374 | cpp | C++ | mlir/lib/Analysis/SliceAnalysis.cpp | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | null | null | null | mlir/lib/Analysis/SliceAnalysis.cpp | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | null | null | null | mlir/lib/Analysis/SliceAnalysis.cpp | LaudateCorpus1/llvm-project | ff2e0f0c1112558b3f30d8afec7c9882c33c79e3 | [
"Apache-2.0"
] | null | null | null | //===- UseDefAnalysis.cpp - Analysis for Transitive UseDef chains ---------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 38.91195 | 80 | 0.668983 | LaudateCorpus1 |
6a1e6c24a3a37ef0e779bd40ce4b36c4700cc87c | 4,276 | cpp | C++ | Codeforces/AC/gym100482B.cpp | AHJenin/acm-type-problems | e2a6d58fe8872ceaed822f5ee8911bfc173c6192 | [
"MIT"
] | 4 | 2018-05-17T08:37:53.000Z | 2018-06-08T18:47:21.000Z | Codeforces/AC/gym100482B.cpp | arafat-hasan/acm-type-problems | e2a6d58fe8872ceaed822f5ee8911bfc173c6192 | [
"MIT"
] | null | null | null | Codeforces/AC/gym100482B.cpp | arafat-hasan/acm-type-problems | e2a6d58fe8872ceaed822f5ee8911bfc173c6192 | [
"MIT"
] | null | null | null | /*
* FILE: gym100482B.cpp
*
* @author: Arafat Hasan Jenin <arafathasanjenin[at]gmail[dot]com>
*
* LINK: http://codeforces.com/gym/100482/problem/B
*
* DATE CREATED: 01-08-17 00:45:24 (BST)
* LAST MODIFIED: 01-08-17 00:45:51 (BST)
*
* DESCRIPTION:
*
* DEVELOPMENT HISTORY:
* Date Version Descript... | 30.985507 | 109 | 0.382367 | AHJenin |
6a1fade24b89750740fa84b852da1337c28b7c33 | 11,830 | cpp | C++ | lib/MaskFaults.cpp | utahfmr/vulfi.github.io | 6cd1a4caf3e2c556913fee55695327592b0589d6 | [
"NCSA"
] | null | null | null | lib/MaskFaults.cpp | utahfmr/vulfi.github.io | 6cd1a4caf3e2c556913fee55695327592b0589d6 | [
"NCSA"
] | null | null | null | lib/MaskFaults.cpp | utahfmr/vulfi.github.io | 6cd1a4caf3e2c556913fee55695327592b0589d6 | [
"NCSA"
] | null | null | null |
#include <time.h>
#include <math.h>
#include "Common.h"
#include "MaskFaults.h"
using namespace llvm;
using namespace std;
Instruction* MaskFaults::performInstrumentation(Module *M, CLData* Cl, FunctionList* Fl, Instruction* instr, Common::VectorFSType vftype, int idxLimit){
// Clone the target instruction. Thi... | 37.436709 | 152 | 0.688588 | utahfmr |
6a2193c966cc392225fa89aa9696ae19840c73d3 | 1,559 | hpp | C++ | src/net/Channel.hpp | Hanwn/Shoot | 6d5277f42575c146be11d24675837d992b5c0e89 | [
"MIT"
] | null | null | null | src/net/Channel.hpp | Hanwn/Shoot | 6d5277f42575c146be11d24675837d992b5c0e89 | [
"MIT"
] | null | null | null | src/net/Channel.hpp | Hanwn/Shoot | 6d5277f42575c146be11d24675837d992b5c0e89 | [
"MIT"
] | null | null | null | #ifndef CHANNEL_H_
#define CHANNEL_H_
#include <functional>
#include <sys/epoll.h>
#include "EventLoop.hpp"
#include "logger.h"
enum class channelStatus{
NEW = 1,
ADD = 3,
DEL = 2
};
// Channel 的生命周期由TCPConnection控制
// Channel 不拥有任何资源,无需在析构函数中释放
class EventLoop;
class Channel {
public:
using callbac... | 18.127907 | 43 | 0.652341 | Hanwn |
6a250fa078de72b6300c08158ecf5e5259375f4a | 16,011 | cpp | C++ | Wml/Source/Containment/WmlConvexHull3.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 26 | 2018-07-04T15:31:11.000Z | 2021-09-23T02:43:46.000Z | Wml/Source/Containment/WmlConvexHull3.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | null | null | null | Wml/Source/Containment/WmlConvexHull3.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 1 | 2019-06-11T03:20:28.000Z | 2019-06-11T03:20:28.000Z | // Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or ... | 32.876797 | 79 | 0.495347 | 1iyiwei |
6a289006b3616f47bdeb9f95e803c3042c654884 | 1,407 | cpp | C++ | Vijos/1308.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Vijos/1308.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Vijos/1308.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <cstdio>
#include <cstring>
using namespace std;
long long ans[21], now[21];
int dep, num = 0, out_num = 0, ipos;
long long gcd(long long x, long long y)
{
return y ? gcd(y, x % y) : x;
}
long long mymax(long long x, long long y)
{
return x > y ? x : y;
}
void print()
{
for (long long i = 1; ans[i]; i++... | 17.158537 | 63 | 0.511016 | HeRaNO |
6a2a7844a72f05e8afe715612b9a6e2227941315 | 4,220 | cpp | C++ | Source/Qurses/clear.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/Qurses/clear.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/Qurses/clear.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | /* Public Domain Curses */
#include "Qurses/curspriv.h"
RCSID("$Id: clear.c,v 1.35 2008/07/13 16:08:18 wmcbrine Exp $")
/*man-start**************************************************************
Name: clear
Synopsis:
int clear(void);
int wc... | 23.977273 | 80 | 0.395972 | mfaithfull |
6a2e3fe1cb325410fc11897508a74112d51b4f02 | 2,195 | cpp | C++ | src/upcore/src/cuchar/u8stou32slen.cpp | upcaste/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | 1 | 2018-09-17T20:50:14.000Z | 2018-09-17T20:50:14.000Z | src/upcore/src/cuchar/u8stou32slen.cpp | jwtowner/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | null | null | null | src/upcore/src/cuchar/u8stou32slen.cpp | jwtowner/upcaste | 8174a2f40e7fde022806f8d1565bb4a415ecb210 | [
"MIT"
] | null | null | null | //
// Upcaste Performance Libraries
// Copyright (C) 2012-2013 Jesse W. Towner
//
// 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... | 32.761194 | 77 | 0.607745 | upcaste |
6a317138f65aed04fb6550ceeedaffd5b64aa362 | 1,447 | cpp | C++ | plugins/sdlinput/src/mouse/translate_motion_event.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/sdlinput/src/mouse/translate_motion_event.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/sdlinput/src/mouse/translate_motion_event.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/input/mouse/axis_code.hpp>
#include <sge/input/mouse/shared_ptr.hpp>
#include <sge/in... | 34.452381 | 93 | 0.695232 | cpreh |
6a337e640e6c77c075e6715a1fdba5986ce3a14a | 274 | cpp | C++ | Road-of-Gold/Road-of-Gold/drawPlanet.cpp | SKN-JP/Road_of_gold | f9646656662f38aa292d8b3cdb5be234eb946212 | [
"MIT"
] | 14 | 2017-07-11T13:59:50.000Z | 2017-09-07T01:06:24.000Z | Road-of-Gold/Road-of-Gold/drawPlanet.cpp | SKN-JP/Road_of_gold | f9646656662f38aa292d8b3cdb5be234eb946212 | [
"MIT"
] | 10 | 2017-09-25T12:56:05.000Z | 2017-10-20T07:59:06.000Z | Road-of-Gold/Road-of-Gold/drawPlanet.cpp | sknjpn/Road-of-Gold | f9646656662f38aa292d8b3cdb5be234eb946212 | [
"MIT"
] | 3 | 2017-08-11T15:54:21.000Z | 2017-08-30T10:20:42.000Z | #include"Planet.h"
#include"Display.h"
void drawPlanet()
{
for (int i = 0; i < 2; ++i) {
const auto transformer = tinyCamera.createTransformer(i);
planet.mapTexture.resized(360_deg, 180_deg).drawAt(0, 0);
Graphics2D::SetSamplerState(SamplerState::ClampLinear);
}
} | 22.833333 | 59 | 0.711679 | SKN-JP |
6a34893b28f06ba1a890d5544f84556142a612d8 | 20,905 | cpp | C++ | app/src/main/cpp/ChapterEleven.cpp | xiecj1020/ApueDemo | 4f68b935720261cd8a1beb868f3c56f540d6ba1b | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/ChapterEleven.cpp | xiecj1020/ApueDemo | 4f68b935720261cd8a1beb868f3c56f540d6ba1b | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/ChapterEleven.cpp | xiecj1020/ApueDemo | 4f68b935720261cd8a1beb868f3c56f540d6ba1b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 XieChaoJun
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 31.867378 | 105 | 0.653958 | xiecj1020 |
6a3a0b29d80f7ac633c725bf1b85c046b31adc60 | 15,966 | hpp | C++ | lib/winss/supervise/supervise.hpp | taylorb-microsoft/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 52 | 2017-01-05T23:39:38.000Z | 2020-06-04T03:00:11.000Z | lib/winss/supervise/supervise.hpp | morganstanley/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 24 | 2017-01-05T05:07:34.000Z | 2018-03-09T00:50:58.000Z | lib/winss/supervise/supervise.hpp | morganstanley/winss | ede93f84a5d9585502db5190f2ec6365858f695a | [
"Apache-2.0"
] | 7 | 2016-12-27T20:55:20.000Z | 2018-03-09T00:32:19.000Z | /*
* Copyright 2016-2017 Morgan Stanley
*
* 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 ag... | 27.766957 | 80 | 0.557748 | taylorb-microsoft |
6a3d291603d7b54addce65bfcfe98989d397fc48 | 876 | hpp | C++ | ares/ares/node/debug/tracer.hpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/ares/node/debug/tracer.hpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/ares/node/debug/tracer.hpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | struct Tracer : Object {
DeclareClass(Tracer, "Tracer")
Tracer(string name = {}, string component = {}) : Object(name) {
_component = component;
}
auto component() const -> string { return _component; }
auto enabled() const -> bool { return _enabled; }
auto setComponent(string component) -> void { _c... | 29.2 | 73 | 0.658676 | moon-chilled |
6a3de8ee0b8da113e28041f2ab5d60e5d927afe8 | 1,699 | cpp | C++ | Class 16 - solve class 7/A.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | 4 | 2020-07-10T06:37:52.000Z | 2022-01-03T17:14:21.000Z | Class 16 - solve class 7/A.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | null | null | null | Class 16 - solve class 7/A.cpp | pioneerAlpha/CP_Beginner_B1 | fd743b956188e927ac999e108df2f081d4f5fcb2 | [
"Apache-2.0"
] | 4 | 2020-11-23T16:58:45.000Z | 2021-01-06T20:20:57.000Z | #include<bits/stdc++.h>
#define ll long long
#define N ((int)1e3 + 5)
#define MOD ((int)1e9 + 7)
#define thr 1e-8
#define pi acos(-1) /// pi = acos ( -1 )
#define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
using namespace std;
int arr[105][105];
int dxx[] = {0,0,1,-1};
int dyy[] = {1,-1,0,0};
bool vis[... | 25.742424 | 78 | 0.366686 | pioneerAlpha |
6a3eb8520880851a1b30f656e707f48b4e306872 | 11,843 | cpp | C++ | Src/Plugins/org.owm.scite/OwmScite/ScitillaComponent/FunctionCallTip.cpp | blueantst/Script.NET | 6214e00371b3c983ec68e0660b0c708a6d8b81e8 | [
"MIT"
] | 68 | 2015-02-01T10:42:09.000Z | 2021-08-05T06:30:35.000Z | Src/Plugins/org.owm.scite/OwmScite/ScitillaComponent/FunctionCallTip.cpp | H1N2/Script.NET | 6214e00371b3c983ec68e0660b0c708a6d8b81e8 | [
"MIT"
] | 1 | 2016-10-11T15:47:35.000Z | 2016-10-28T12:32:00.000Z | Src/Plugins/org.owm.scite/OwmScite/ScitillaComponent/FunctionCallTip.cpp | H1N2/Script.NET | 6214e00371b3c983ec68e0660b0c708a6d8b81e8 | [
"MIT"
] | 39 | 2015-03-03T15:11:24.000Z | 2022-03-20T05:31:57.000Z | //this file is part of Notepad++
//Copyright (C)2008 Harry Bruin <harrybharry@users.sourceforge.net>
//
//This program is free software; you can redistribute it and/or
//modify it under the terms of the GNU General Public License
//as published by the Free Software Foundation; either
//version 2 of the License, or (at ... | 28.332536 | 151 | 0.672971 | blueantst |
6a403fd417f35d154bb25d110a19b6506d78175d | 125 | hpp | C++ | encode.hpp | Learko/Hamming | 2241feae7c25f8d4c3475c8b3d6080621ac6106f | [
"MIT"
] | null | null | null | encode.hpp | Learko/Hamming | 2241feae7c25f8d4c3475c8b3d6080621ac6106f | [
"MIT"
] | null | null | null | encode.hpp | Learko/Hamming | 2241feae7c25f8d4c3475c8b3d6080621ac6106f | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include <vector>
std::vector<std::uint8_t> encode(const std::vector<std::uint8_t> &bytes); | 20.833333 | 73 | 0.728 | Learko |
6a411c116f7bebb186f5a0a9d693ce59e9ea3e29 | 7,658 | cpp | C++ | src/karri-vivek/karri-vivek.cpp | VivekReddy98/LidarFilter | 9233d3a9eb08ae773b8e7f35f6cb7a7d7ae306c1 | [
"MIT"
] | null | null | null | src/karri-vivek/karri-vivek.cpp | VivekReddy98/LidarFilter | 9233d3a9eb08ae773b8e7f35f6cb7a7d7ae306c1 | [
"MIT"
] | null | null | null | src/karri-vivek/karri-vivek.cpp | VivekReddy98/LidarFilter | 9233d3a9eb08ae773b8e7f35f6cb7a7d7ae306c1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <cmath>
#include <algorithm>
#include "karri-vivek.h"
/** RangeFilter Constructor:
Purpose: Input checking and variable initialization
Args: Max and Min Thresholds as floats
*/
LSF::RangeFilter::RangeFilter(float max, float min){
if (max < min) ... | 39.678756 | 245 | 0.635545 | VivekReddy98 |
6a422b8a1a79c2cc343f5b041e668bbf472e415b | 9,583 | cpp | C++ | src/qt/src/3rdparty/webkit/Source/WebCore/html/parser/HTMLEntityParser.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 46 | 2015-01-08T14:32:34.000Z | 2022-02-05T16:48:26.000Z | src/qt/src/3rdparty/webkit/Source/WebCore/html/parser/HTMLEntityParser.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 7 | 2015-01-20T14:28:12.000Z | 2017-01-18T17:21:44.000Z | src/qt/src/3rdparty/webkit/Source/WebCore/html/parser/HTMLEntityParser.cpp | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 14 | 2015-10-27T06:17:48.000Z | 2020-03-03T06:15:50.000Z | /*
* Copyright (C) 2008 Apple Inc. All Rights Reserved.
* Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/
* Copyright (C) 2010 Google, Inc. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condit... | 35.102564 | 152 | 0.560159 | ant0ine |
6a44a009f700ce2dcf85c36c19b1b05e97c53250 | 510 | cpp | C++ | windowInitializeTest/src/main.cpp | demensdeum/FSGLTests | aac247130ba422484498f1ff3de6c8d100411bd5 | [
"MIT"
] | null | null | null | windowInitializeTest/src/main.cpp | demensdeum/FSGLTests | aac247130ba422484498f1ff3de6c8d100411bd5 | [
"MIT"
] | null | null | null | windowInitializeTest/src/main.cpp | demensdeum/FSGLTests | aac247130ba422484498f1ff3de6c8d100411bd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <FSGL/Controller/FSGLController.h>
using namespace std;
int main()
{
cout << "FSGL: Window Initialize Test" << endl;
auto controller = make_shared<FSGLController>();
auto window = controller->initialize();
if (!window) {
throw runtime_error("Null wi... | 24.285714 | 123 | 0.678431 | demensdeum |
6a4519b34fd1383d26ef46df2e3cf32cde56494b | 34,479 | cpp | C++ | samples/5_helloTessellation/main.cpp | shineyruan/Vulkan-Samples-Tutorial | 4599104bcb6b8f71c6a77ee7321ea07e3ef2b5c7 | [
"MIT"
] | null | null | null | samples/5_helloTessellation/main.cpp | shineyruan/Vulkan-Samples-Tutorial | 4599104bcb6b8f71c6a77ee7321ea07e3ef2b5c7 | [
"MIT"
] | null | null | null | samples/5_helloTessellation/main.cpp | shineyruan/Vulkan-Samples-Tutorial | 4599104bcb6b8f71c6a77ee7321ea07e3ef2b5c7 | [
"MIT"
] | null | null | null | #include <vulkan/vulkan.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
#include <stdexcept>
#include "camera.h"
#include "vulkan_buffer.h"
#include "vulkan_instance.h"
#include "vulkan_shader_module.h"
#include "window.h"
VulkanInstance* instance;
VulkanDevice* device;
VulkanSw... | 41.490975 | 80 | 0.722846 | shineyruan |
6a46a53e9ae0a95a72473b1e86f7df98b7ff901d | 1,626 | cpp | C++ | src/tracker/tracking/object_factory.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/tracker/tracking/object_factory.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/tracker/tracking/object_factory.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-03T07:54:16.000Z | 2021-03-03T07:54:16.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 28.526316 | 117 | 0.758303 | anuranbaka |
6a47008f5a3c7d367991bb4ecbb73337f73afa12 | 446 | cpp | C++ | 153. Find Minimum in Rotated Sorted Array.cpp | dipta007/leetcode-solutions-dipta007 | 0454ad24ce686a37fab8025c75efb7d857985f29 | [
"MIT"
] | null | null | null | 153. Find Minimum in Rotated Sorted Array.cpp | dipta007/leetcode-solutions-dipta007 | 0454ad24ce686a37fab8025c75efb7d857985f29 | [
"MIT"
] | null | null | null | 153. Find Minimum in Rotated Sorted Array.cpp | dipta007/leetcode-solutions-dipta007 | 0454ad24ce686a37fab8025c75efb7d857985f29 | [
"MIT"
] | null | null | null | class Solution {
public:
int findMin(vector<int>& nums) {
int low = 0, high = nums.size() - 1;
int res = nums[0];
while(low <= high) {
int mid = (low + high) >> 1;
if(nums[mid] >= nums[0]) {
low = mid + 1;
}
else {
... | 22.3 | 44 | 0.338565 | dipta007 |
c69a2985dd157976ade85bc503681ea8997536be | 9,543 | cpp | C++ | src/painter/extended_char.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | src/painter/extended_char.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | src/painter/extended_char.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | #include <cppurses/painter/detail/extended_char.hpp>
#include <map>
#include <limits>
#include <ncurses.h>
namespace {
const std::map<wchar_t, chtype> extended_chars {
{L'┌', ACS_ULCORNER}, {L'┍', ACS_ULCORNER}, {L'┎', ACS_ULCORNER},
{L'┏', ACS_ULCORNER}, {L'╒', ACS_ULCORNER}, {L'╓', ACS_ULCORNER},
... | 51.306452 | 78 | 0.432149 | RyanDraves |
c69ae19b3e2c7b617bd2e0cf9cb9aaa22a676e70 | 1,358 | cpp | C++ | test/tuple/get.rv.cpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | 2 | 2015-12-06T05:10:14.000Z | 2021-09-05T21:48:27.000Z | test/tuple/get.rv.cpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | null | null | null | test/tuple/get.rv.cpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | 1 | 2017-06-06T10:50:17.000Z | 2017-06-06T10:50:17.000Z | /*
@copyright Louis Dionne 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <boost/hana/assert.hpp>
#include <boost/hana/tuple.hpp>
#include <laws/base.hpp>
#include <utility>
#include <memory>
namespace hana =... | 30.863636 | 79 | 0.603093 | qicosmos |
c69b11a63dce30d572479f5cdc3311b237cb3d15 | 605 | cpp | C++ | projects/shiva_tester/source/InitializationTest.cpp | tuncb/shiva | c2cd26ddfd58a09a9d1a28cb271d3dffa92e4dbc | [
"Apache-2.0"
] | null | null | null | projects/shiva_tester/source/InitializationTest.cpp | tuncb/shiva | c2cd26ddfd58a09a9d1a28cb271d3dffa92e4dbc | [
"Apache-2.0"
] | 1 | 2018-04-07T17:16:27.000Z | 2018-04-07T17:16:27.000Z | projects/shiva_tester/source/InitializationTest.cpp | tuncb/shiva | c2cd26ddfd58a09a9d1a28cb271d3dffa92e4dbc | [
"Apache-2.0"
] | null | null | null |
// Copyright Tunc Bahcecioglu 2012 - 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <boost/test/unit_test.hpp>
#include "StaticEnvironment.h"
#include <iostream>
BOOST_AUTO... | 28.809524 | 73 | 0.733884 | tuncb |
c6a1353a06c24b8ae10521da918d476e8681bc53 | 1,187 | cpp | C++ | 0033.SearchinRotatedSortedArray/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | 1 | 2020-01-13T11:10:35.000Z | 2020-01-13T11:10:35.000Z | 0033.SearchinRotatedSortedArray/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | 4 | 2020-01-01T09:47:39.000Z | 2020-04-08T08:34:29.000Z | 0033.SearchinRotatedSortedArray/main.cpp | SumanSudhir/LeetCode | cab5205747b8c1a9d5c27f0e821cf6e6d9ac10d6 | [
"MIT"
] | null | null | null | class Solution {
public:
int binarySearch(vector<int>& nums, int start, int stop, int target){
if(stop < start) return -1;
int mid = (start+stop)/2;
if(target == nums[mid]) return mid;
else if(target < nums[mid]) return binarySearch(nums, start, mid-1, target);
return binary... | 35.969697 | 84 | 0.586352 | SumanSudhir |
c6a257f37229d8c91b97b3a63b8b85c638d4f429 | 1,243 | cpp | C++ | src/snake.cpp | hassanelshazly/snake | d4980d841d0346dd31c3359686922e11b89c79d3 | [
"MIT"
] | null | null | null | src/snake.cpp | hassanelshazly/snake | d4980d841d0346dd31c3359686922e11b89c79d3 | [
"MIT"
] | null | null | null | src/snake.cpp | hassanelshazly/snake | d4980d841d0346dd31c3359686922e11b89c79d3 | [
"MIT"
] | null | null | null | #include "include/snake.h"
Snake::Snake(int sx, int sy)
{
snakeBlocks = new int*[650];
for(int i = 0; i < 650; i++)snakeBlocks[i] = new int[2];
for(int i = 0; i < 650; i++)snakeBlocks[i][0] = -1;
for(int i = 0; i < 650; i++)snakeBlocks[i][1] = -1;
snakeBlocks[0][0] = sx;
snakeBlocks[0][1] = sy;... | 30.317073 | 108 | 0.536605 | hassanelshazly |
c6a26a57cb270e6b9e7c4a207034972d605b15f2 | 12,477 | cc | C++ | src/devices/tpm/drivers/tpm/tpm.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | src/devices/tpm/drivers/tpm/tpm.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | 2 | 2021-09-19T21:55:09.000Z | 2021-12-19T03:34:53.000Z | src/devices/tpm/drivers/tpm/tpm.cc | PlugFox/fuchsia | 39afe5230d41628b3c736a6e384393df954968c8 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/devices/tpm/drivers/tpm/tpm.h"
#include <fidl/fuchsia.hardware.tpmimpl/cpp/wire.h>
#include <fuchsia/hardware/tpmimpl/cpp/banjo.h>
#include ... | 29.63658 | 100 | 0.651759 | allansrc |
c6a7330c1fbfd2f40eaf0a5cfdf9232c02fd56f9 | 681 | cpp | C++ | 100883/D.cpp | anthony-huang/wan-panchi | d6f3cef10c14e28dcef089c7f60113521647891a | [
"MIT"
] | 1 | 2019-03-18T08:27:05.000Z | 2019-03-18T08:27:05.000Z | 100883/D.cpp | anthony-huang/wan-panchi | d6f3cef10c14e28dcef089c7f60113521647891a | [
"MIT"
] | null | null | null | 100883/D.cpp | anthony-huang/wan-panchi | d6f3cef10c14e28dcef089c7f60113521647891a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n, k;
int p[1000000];
bool can(long long m) {
int x = k;
int cnt = 0, mx = 0;
for (int i = 0; i < n; ++i) {
++cnt;
mx = max(mx, p[i]);
if ((long long) mx * cnt > m) {
--x;
cnt = 1;
mx = p[i];
}
}
return x > 0;
}
int main() {
int t;
scanf("%d"... | 15.477273 | 48 | 0.434655 | anthony-huang |
c6aa19372f1f739dee1eea002c0f3104311ae63b | 894 | cpp | C++ | www/snapper/engine/datainf/DataInterfaceConfigMgr.cpp | lenovo/Snapper | 4300739bbdf0b101c7ddd8be09c89f582bf47202 | [
"BSD-3-Clause"
] | 4 | 2019-09-04T23:49:58.000Z | 2020-08-05T05:46:49.000Z | www/snapper/engine/datainf/DataInterfaceConfigMgr.cpp | lenovo/Snapper | 4300739bbdf0b101c7ddd8be09c89f582bf47202 | [
"BSD-3-Clause"
] | 1 | 2019-09-24T20:42:29.000Z | 2019-09-25T00:28:19.000Z | www/snapper/engine/datainf/DataInterfaceConfigMgr.cpp | lenovo/Snapper | 4300739bbdf0b101c7ddd8be09c89f582bf47202 | [
"BSD-3-Clause"
] | null | null | null | #include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <errno.h>
#include <memory>
#include <fstream>
#include <iostream>
#include "DataInterfaceConfigMgr.h"
using namespace std;
namespace snapper { namespace datamgr
{
/**
* @brief constructor
*/
... | 14.419355 | 55 | 0.699105 | lenovo |
c6ad149dd30602133d29c3b07cb79fba74165f44 | 1,579 | hpp | C++ | shadow/operators/kernels/normalize.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 20 | 2017-07-04T11:22:47.000Z | 2022-01-16T03:58:32.000Z | shadow/operators/kernels/normalize.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 2 | 2017-12-03T13:07:39.000Z | 2021-01-13T11:11:52.000Z | shadow/operators/kernels/normalize.hpp | junluan/shadow | 067d1c51d7c38bc1c985008a2e2e1599bbf11a8c | [
"Apache-2.0"
] | 10 | 2017-09-30T05:06:30.000Z | 2020-11-13T05:43:44.000Z | #ifndef SHADOW_OPERATORS_KERNELS_NORMALIZE_HPP_
#define SHADOW_OPERATORS_KERNELS_NORMALIZE_HPP_
#include "core/kernel.hpp"
namespace Shadow {
namespace Vision {
template <DeviceType D, typename T>
void Normalize(const T* in_data, int outer_num, int dim, int inner_num,
T* val_data, float p, float eps,... | 30.365385 | 80 | 0.664345 | junluan |
c6ad6587bbaf08e1ee4cd79aa770015f6a16c54c | 3,389 | hh | C++ | sdk/sdk/share/live555/liveMedia/WFD/WifiDisplaySource.hh | doyaGu/C0501Q_HWJL01 | 07a71328bd9038453cbb1cf9c276a3dd1e416d63 | [
"MIT"
] | 1 | 2021-10-09T08:05:50.000Z | 2021-10-09T08:05:50.000Z | sdk/sdk/share/live555/liveMedia/WFD/WifiDisplaySource.hh | doyaGu/C0501Q_HWJL01 | 07a71328bd9038453cbb1cf9c276a3dd1e416d63 | [
"MIT"
] | null | null | null | sdk/sdk/share/live555/liveMedia/WFD/WifiDisplaySource.hh | doyaGu/C0501Q_HWJL01 | 07a71328bd9038453cbb1cf9c276a3dd1e416d63 | [
"MIT"
] | null | null | null | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | 36.44086 | 121 | 0.753615 | doyaGu |
c6af6b2dc0946b6cb76c14570da7c1f5a046fd95 | 8,727 | cpp | C++ | source/util.cpp | gouarin/binder | 90cf5b31b6f4ecad3fe87518ca2b949dc9e8ed1a | [
"MIT"
] | 211 | 2017-01-28T21:55:20.000Z | 2022-03-28T12:02:47.000Z | source/util.cpp | gouarin/binder | 90cf5b31b6f4ecad3fe87518ca2b949dc9e8ed1a | [
"MIT"
] | 155 | 2017-01-06T11:36:29.000Z | 2022-03-30T22:03:22.000Z | source/util.cpp | gouarin/binder | 90cf5b31b6f4ecad3fe87518ca2b949dc9e8ed1a | [
"MIT"
] | 40 | 2017-01-30T13:36:02.000Z | 2022-03-10T09:09:26.000Z | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
//
// Copyright (c) 2016 Sergey Lyskov <sergey.lyskov@jhu.edu>
//
// All rights reserved. Use of this source code is governed by a
// MIT license that can be found in the LICENSE file.
/// @file b... | 26.606707 | 177 | 0.669417 | gouarin |
c6b22c54be0c1a8dc9e181ad9de81bf6417d686a | 2,322 | cpp | C++ | tools/clang/test/SemaCXX/trailing-return-0x.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 3,102 | 2015-01-04T02:28:35.000Z | 2022-03-30T12:53:41.000Z | tools/clang/test/SemaCXX/trailing-return-0x.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 2,214 | 2019-05-06T22:22:53.000Z | 2022-03-31T19:38:50.000Z | tools/clang/test/SemaCXX/trailing-return-0x.cpp | clayne/DirectXShaderCompiler | 0ef9b702890b1d45f0bec5fa75481290323e14dc | [
"NCSA"
] | 1,868 | 2015-01-03T04:27:11.000Z | 2022-03-25T13:37:35.000Z | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
template <class T>
struct only
{
only(T) {}
template <class U>
only(U)
{
static_assert(sizeof(U) == 0, "expected type failure");
}
};
auto f() -> int
{
return 0;
}
auto g(); // expected-error{{return without trailing return type;... | 21.700935 | 133 | 0.586994 | clayne |
c6b413bf7542aeb054f4e918a6a4e6012e03a188 | 1,679 | cpp | C++ | Redshift/Source/Components/Renderable.cpp | allogic/Redshift | 4606267b53e3d094ba588acb9ceaa97e3289632b | [
"MIT"
] | null | null | null | Redshift/Source/Components/Renderable.cpp | allogic/Redshift | 4606267b53e3d094ba588acb9ceaa97e3289632b | [
"MIT"
] | null | null | null | Redshift/Source/Components/Renderable.cpp | allogic/Redshift | 4606267b53e3d094ba588acb9ceaa97e3289632b | [
"MIT"
] | null | null | null | #include <Components/Renderable.h>
#include <Components/Transform.h>
#include <Globals/World.h>
Renderable::Renderable(
World& world,
std::string const& meshName,
std::string const& programName,
std::string const& textureAlbedoName,
std::string const& textureNormalName,
std::string const& textureSpecularN... | 35.723404 | 106 | 0.733175 | allogic |
c6b4b1d50da7c4510fbccbe69768f08a4a3209e4 | 28,691 | cpp | C++ | Spike/SimulinkModel/Spike_grt_rtw/Spike_data.cpp | NixonCTChan/Simulink-Sim | d63678af48bc1e39fa30a885c1a989e31e2310c6 | [
"BSD-3-Clause"
] | null | null | null | Spike/SimulinkModel/Spike_grt_rtw/Spike_data.cpp | NixonCTChan/Simulink-Sim | d63678af48bc1e39fa30a885c1a989e31e2310c6 | [
"BSD-3-Clause"
] | 2 | 2021-05-05T11:58:53.000Z | 2021-06-01T16:34:04.000Z | Spike/SimulinkModel/Spike_grt_rtw/Spike_data.cpp | NixonCTChan/Simulink-Sim | d63678af48bc1e39fa30a885c1a989e31e2310c6 | [
"BSD-3-Clause"
] | 6 | 2021-02-13T00:14:52.000Z | 2021-11-09T22:57:56.000Z | /*
* Spike_data.cpp
*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* Code generation for model "Spike".
*
* Model version : 1.172
* Simulink Co... | 56.589744 | 81 | 0.578126 | NixonCTChan |
c6b89f98ff6b81681242a113a6a2528005b167a9 | 2,537 | cpp | C++ | src/apps/mplayerc/StaticLink.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/apps/mplayerc/StaticLink.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/apps/mplayerc/StaticLink.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: StaticLink.cpp 2229 2013-03-08 13:27:11Z exodus8 $
*
* (C) 2003-2006 Gabest
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 F... | 22.651786 | 72 | 0.713047 | chinajeffery |
c6ba348b641ed6208ff5d864c978642bea5cb2ab | 2,182 | cpp | C++ | rs/test/min_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 19 | 2017-05-15T08:20:00.000Z | 2021-12-03T05:58:32.000Z | rs/test/min_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | null | null | null | rs/test/min_test.cpp | dymk/rs | b75ab0df5f235ac12ec4da825e6bd6e1fa9e7493 | [
"Apache-2.0"
] | 3 | 2018-01-16T18:07:30.000Z | 2021-06-30T07:33:44.000Z | // Copyright 2017 Per Grön. 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 l... | 27.275 | 79 | 0.642071 | dymk |
c6bb56fbcd8c10aa0e163051da964557ebbc5c40 | 2,883 | cpp | C++ | src/client/lib32/version.cpp | LowerCode/bnspatch | 321608bb86714ee5137823ade21a81f4e0058c09 | [
"MIT"
] | 1 | 2021-03-11T17:41:11.000Z | 2021-03-11T17:41:11.000Z | src/client/lib64/version.cpp | LowerCode/bnspatch | 321608bb86714ee5137823ade21a81f4e0058c09 | [
"MIT"
] | null | null | null | src/client/lib64/version.cpp | LowerCode/bnspatch | 321608bb86714ee5137823ade21a81f4e0058c09 | [
"MIT"
] | 1 | 2021-12-22T00:15:04.000Z | 2021-12-22T00:15:04.000Z | #define DLLEXPORT DLLEXPORT
#include <Windows.h>
EXTERN_C_START
DLLEXPORT DWORD APIENTRY VerFindFileA(
DWORD uFlags,
LPCSTR szFileName,
LPCSTR szWinDir,
LPCSTR szAppDir,
LPSTR szCurDir,
PUINT puCurDirLen,
LPSTR szDestDir,
PUINT puDestDirLen)
{
return 0;
}
DLLEXPORT DWORD APIENTRY ... | 16.958824 | 51 | 0.704475 | LowerCode |
c6be07216c1118718b197d5836302613abdbe7e4 | 5,953 | cpp | C++ | src/Common/Device.cpp | alexjeo/ZLMediaKit | 67606050dc85a9ee736a3343f75f1e889406765c | [
"MIT"
] | 137 | 2019-07-10T02:22:42.000Z | 2019-10-09T12:45:25.000Z | src/Common/Device.cpp | alexjeo/ZLMediaKit | 67606050dc85a9ee736a3343f75f1e889406765c | [
"MIT"
] | 55 | 2019-07-10T19:16:18.000Z | 2019-10-10T10:16:10.000Z | src/Common/Device.cpp | alexjeo/ZLMediaKit | 67606050dc85a9ee736a3343f75f1e889406765c | [
"MIT"
] | 66 | 2019-07-10T02:30:54.000Z | 2019-10-10T07:07:33.000Z | /*
* Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
*
* This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
*
* Use of this source code is governed by MIT license that can be found in the
* LICENSE file in the root of the source tree. All contributing project authors
... | 31.664894 | 169 | 0.658324 | alexjeo |
c6beac17a34874125ead6b38c0548f4387005d57 | 614 | hpp | C++ | src/Options.hpp | TurkeyMcMac/anosmellya | bc38bfd00851d3edc4eccc1dee6e3a93f05d0321 | [
"MIT"
] | 3 | 2020-04-12T11:14:58.000Z | 2021-02-28T22:59:48.000Z | src/Options.hpp | TurkeyMcMac/anosmellya | bc38bfd00851d3edc4eccc1dee6e3a93f05d0321 | [
"MIT"
] | null | null | null | src/Options.hpp | TurkeyMcMac/anosmellya | bc38bfd00851d3edc4eccc1dee6e3a93f05d0321 | [
"MIT"
] | null | null | null | #ifndef ANOSMELLYA_OPTIONS_H_
#define ANOSMELLYA_OPTIONS_H_
#include "Config.hpp"
#include <stdint.h>
namespace anosmellya {
struct Options {
Config conf;
int world_width;
int world_height;
uint32_t seed;
bool draw;
bool print_stats;
unsigned stat_interval;
unsigned flush_interval; //... | 20.466667 | 59 | 0.703583 | TurkeyMcMac |
c6c37266e27455f0cce5e8137503ecb23c9d59f3 | 21,155 | cpp | C++ | data/ROSMAV/brown-ros-pkg-read-only/experimental/meshnet/ar_map_navigate_bumpers_dijkstra/src/ar_map_navigate_bumpers_dijkstra.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/ROSMAV/brown-ros-pkg-read-only/experimental/meshnet/ar_map_navigate_bumpers_dijkstra/src/ar_map_navigate_bumpers_dijkstra.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | data/ROSMAV/brown-ros-pkg-read-only/experimental/meshnet/ar_map_navigate_bumpers_dijkstra/src/ar_map_navigate_bumpers_dijkstra.cpp | khairulislam/phys | fc702520fcd3b23022b9253e7d94f878978b4500 | [
"MIT"
] | null | null | null | #include "ar_map_navigate_bumpers_dijkstra.h"
class Node
{
public:
Node(char id, double x, double y)
: id(id), previous(NULL), distanceFromStart(INT_MAX)
{
p = new position_tracker::Position();
p->x = x;
p->y = y;
nodes.push_back(this);
}
public:
char id;
Node* previous;
... | 27.653595 | 234 | 0.530466 | khairulislam |
c6c3929f98f2221139837b9c70e1e83e82983124 | 1,144 | cpp | C++ | src/stack_trace.cpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | src/stack_trace.cpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | src/stack_trace.cpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "stack_trace.hpp"
#include "console.hpp"
#include "filesystem.hpp"
#include <ostream>
#include <iomanip>
namespace be {
///////////////////////////////////////////////////////////////////////////////
std::ostream& operator<<(std::ostream& os, const StackTrace& trace) {
auto osc = get_os... | 28.6 | 122 | 0.516608 | magicmoremagic |
c6c3dd1ec4c1085bfdf0a5e8f82288ca0dc48f77 | 19,551 | cpp | C++ | src/LuminoEngine/src/UI/ImGuiIntegration.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null | src/LuminoEngine/src/UI/ImGuiIntegration.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null | src/LuminoEngine/src/UI/ImGuiIntegration.cpp | infinnie/Lumino | 921caabdbcb91528a2aac290e31d650628bc3bed | [
"MIT"
] | null | null | null | #include "Internal.hpp"
#include <LuminoEngine/Platform/PlatformEvent.hpp>
#include <LuminoEngine/Platform/PlatformWindow.hpp>
#include <LuminoEngine/Graphics/VertexLayout.hpp>
#include <LuminoEngine/Graphics/VertexBuffer.hpp>
#include <LuminoEngine/Graphics/IndexBuffer.hpp>
#include <LuminoEngine/Graphics/Texture.hpp... | 35.100539 | 441 | 0.698941 | infinnie |
c6c5a4b4bed8d98dcfa518e71e9a5397cbc5425f | 361 | cpp | C++ | All Codes/URI_1079.cpp | Habibu-R-ahman/URI-Online-Judge-Solutions | 62aa23f4bfcf9ea2a1054451c6380ed827816b3c | [
"MIT"
] | 12 | 2020-03-05T15:18:25.000Z | 2022-01-29T18:38:25.000Z | All Codes/URI_1079.cpp | junaid359/URI-Online-Judge-Solutions | f4f10c7e0649d233ce7757cbe7cb225b7845c5af | [
"MIT"
] | null | null | null | All Codes/URI_1079.cpp | junaid359/URI-Online-Judge-Solutions | f4f10c7e0649d233ce7757cbe7cb225b7845c5af | [
"MIT"
] | 19 | 2020-01-08T18:04:28.000Z | 2021-08-18T12:27:41.000Z | #include <iostream>
#include <iomanip>
using namespace std;
int main() {
int N,i,j;
cin >> N;
float a[N*3], b[N*3];
for(i=0; i<N*3 ;i++) {
cin >> a[i];
}
for(j=0; j<N*3; j=j+3) {
b[j] = (a[j]*.2) + (a[j+1]*.3) + (a[j+2]*.5);
cout << fixed << setprecision(1) << b[... | 14.44 | 57 | 0.407202 | Habibu-R-ahman |
c6c73a200d5ae7c14a31d604a5103e85c05db1e7 | 1,789 | hpp | C++ | avoidthebug-android/app/src/main/cpp/include/GameLogic.hpp | dimi309/small3d-samples | 8cccf40eb75782806fa7b9006a1cb43233ce54af | [
"BSD-3-Clause"
] | 2 | 2020-02-05T03:36:22.000Z | 2020-02-05T05:04:35.000Z | avoidthebug-android/app/src/main/cpp/include/GameLogic.hpp | dimi309/gloom | 8c1d8600c316384d005c226f0b27af4072bce5ac | [
"BSD-3-Clause"
] | null | null | null | avoidthebug-android/app/src/main/cpp/include/GameLogic.hpp | dimi309/gloom | 8c1d8600c316384d005c226f0b27af4072bce5ac | [
"BSD-3-Clause"
] | 1 | 2021-12-03T05:34:22.000Z | 2021-12-03T05:34:22.000Z | /*
* GameLogic.hpp
*
* Created on: 2014/11/09
* Author: Dimitri Kourkoulis
* License: BSD 3-Clause License (see LICENSE file)
*/
#pragma once
#include <memory>
#include <small3d/SceneObject.hpp>
#include <small3d/Renderer.hpp>
#include <small3d/Sound.hpp>
#include "KeyInput.hpp"
using namespace sma... | 16.564815 | 83 | 0.63052 | dimi309 |
c6ca7762e635e30b1eb36cce801f63bedaeb0c42 | 5,823 | cpp | C++ | src/TrigBuf.cpp | miRackModular/ML_modules | c9c26bdca5c9a5a86ddb34653d856132be5d1e17 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 100 | 2017-10-04T23:06:33.000Z | 2022-01-19T05:21:04.000Z | src/TrigBuf.cpp | miRackModular/ML_modules | c9c26bdca5c9a5a86ddb34653d856132be5d1e17 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 68 | 2017-10-04T15:38:16.000Z | 2021-12-05T12:33:54.000Z | src/TrigBuf.cpp | miRackModular/ML_modules | c9c26bdca5c9a5a86ddb34653d856132be5d1e17 | [
"MIT",
"BSD-2-Clause",
"BSD-3-Clause"
] | 19 | 2017-10-05T17:19:44.000Z | 2021-05-31T11:24:58.000Z | #include "ML_modules.hpp"
struct TrigBuf : Module {
enum ParamIds {
ARM1_PARAM,
ARM2_PARAM,
NUM_PARAMS
};
enum InputIds {
ARM1_INPUT,
ARM2_INPUT,
GATE1_INPUT,
GATE2_INPUT,
NUM_INPUTS
};
enum OutputIds {
OUT1_OUTPUT,
OUT2_OUTPUT,
NUM_OUTPUTS
};
enum LightIds {
ARM1_LIGHT,
ARM2_LIGHT,
... | 27.597156 | 160 | 0.7096 | miRackModular |
c6cb3fb5a77cd054144ad3baccb3bd782b3f4223 | 715 | cpp | C++ | runtime_exception.cpp | difosschan/difoss_cppbase | 7b3a5d9365441ef2b7741d2e0c200427fb49a530 | [
"MIT"
] | 1 | 2021-05-11T07:31:19.000Z | 2021-05-11T07:31:19.000Z | runtime_exception.cpp | difosschan/difoss_cppbase | 7b3a5d9365441ef2b7741d2e0c200427fb49a530 | [
"MIT"
] | null | null | null | runtime_exception.cpp | difosschan/difoss_cppbase | 7b3a5d9365441ef2b7741d2e0c200427fb49a530 | [
"MIT"
] | null | null | null | #include "runtime_exception.h"
#include "str_util.h"
RuntimeException::RuntimeException(const std::string& reason, int errCode,
const char * prettyFunc, const char* fileName, size_t line)
: std::runtime_error(reason)
, _error_code(errCode)
, _pretty_func(prettyFunc)
, _filename(fileName)
, _line(line)
{}
// \note... | 25.535714 | 74 | 0.648951 | difosschan |
c6cbd10eced32a1fc97ebd90bd29cf5e2a88d80c | 6,656 | cc | C++ | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_bindingtable.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_bindingtable.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | pcraster/pcraster-4.2.0/pcraster-4.2.0/source/pcraster_model_engine/calc_bindingtable.cc | quanpands/wflow | b454a55e4a63556eaac3fbabd97f8a0b80901e5a | [
"MIT"
] | null | null | null | #ifndef INCLUDED_STDDEFX
#include "stddefx.h"
#define INCLUDED_STDDEFX
#endif
#ifndef INCLUDED_CALC_BINDINGTABLE
#include "calc_bindingtable.h"
#define INCLUDED_CALC_BINDINGTABLE
#endif
// Library headers.
#ifndef INCLUDED_MAP
#include <map>
#define INCLUDED_MAP
#endif
#ifndef INCLUDED_SET
#include <set>
#define INCL... | 27.849372 | 81 | 0.564754 | quanpands |
c6ccd8720f2a8de05349959fe3caaffe097e3ffd | 5,704 | hpp | C++ | inc/Services/RequestVerificationService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Services/RequestVerificationService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | inc/Services/RequestVerificationService.hpp | ACubeSAT/ecss-services | 92d81c1ff455d9baef9417e656388c98ec552751 | [
"MIT"
] | null | null | null | #ifndef ECSS_SERVICES_REQUESTVERIFICATIONSERVICE_HPP
#define ECSS_SERVICES_REQUESTVERIFICATIONSERVICE_HPP
#include "Service.hpp"
#include "Message.hpp"
#include "ErrorHandler.hpp"
#include "ECSS_Definitions.hpp"
/**
* Implementation of the ST[01] request verification service
*
* Note:For the time being, the cause(... | 40.742857 | 115 | 0.757188 | ACubeSAT |
c6cdb05f7f05b3b811b26bc2f1604c2c5c61fb05 | 257 | cpp | C++ | YorozuyaGSLib/source/_enter_world_request_wrac.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_enter_world_request_wrac.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_enter_world_request_wrac.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_enter_world_request_wrac.hpp>
START_ATF_NAMESPACE
int _enter_world_request_wrac::size()
{
using org_ptr = int (WINAPIV*)(struct _enter_world_request_wrac*);
return (org_ptr(0x14011f240L))(this);
};
END_ATF_NAMESPACE
| 23.363636 | 74 | 0.719844 | lemkova |
c6ceaa6dffd92a6e6e6872fa7f65eff67f214a42 | 2,387 | cpp | C++ | examples/ofxEasingAnimation/src/ofApp.cpp | davidbeermann/timely-matter | fca86fb5b48766c5371677a90ac5149c1b071149 | [
"MIT"
] | 2 | 2016-09-03T17:49:30.000Z | 2016-12-20T18:12:58.000Z | examples/ofxEasingAnimation/src/ofApp.cpp | davidbeermann/timely-matter | fca86fb5b48766c5371677a90ac5149c1b071149 | [
"MIT"
] | null | null | null | examples/ofxEasingAnimation/src/ofApp.cpp | davidbeermann/timely-matter | fca86fb5b48766c5371677a90ac5149c1b071149 | [
"MIT"
] | null | null | null | #include "ofApp.h"
#define PADDING 30
void ofApp::reset() {
m_rect.set(PADDING, PADDING, 0, 0);
m_color.set(0, ofRandom(255.f), ofRandom(255.f));
m_start = 0.f;
m_end = 0.f;
m_progress = 0.f;
m_animating = false;
m_running = false;
}
void ofApp::setup() {
ofBack... | 21.899083 | 79 | 0.513615 | davidbeermann |
c6d01cab0dc1f3d4b29f9eee79ae02505f45e945 | 54,590 | cpp | C++ | PrecompiledExp.cpp | BalazsJako/LSystem | 571aeec8e00c50cffead24caaafe9c6d2f798547 | [
"MIT"
] | null | null | null | PrecompiledExp.cpp | BalazsJako/LSystem | 571aeec8e00c50cffead24caaafe9c6d2f798547 | [
"MIT"
] | null | null | null | PrecompiledExp.cpp | BalazsJako/LSystem | 571aeec8e00c50cffead24caaafe9c6d2f798547 | [
"MIT"
] | 1 | 2020-12-11T05:13:17.000Z | 2020-12-11T05:13:17.000Z |
#include <assert.h>
#include <iostream>
#include <sstream>
#include <algorithm>
#define GLM_ENABLE_EXPERIMENTAL 1
#include "GLM/gtx/norm.hpp"
#include "PrecompiledExp.h"
#include "LSystem.h"
using namespace std;
namespace LSystem
{
PrecompiledExp::PrecompiledExp(LSystem &aLSystem)
: mLSystem(aLSystem)
, mRes... | 48.012313 | 177 | 0.643341 | BalazsJako |
c6d04b45afd20af914dad0723307751ff8f1ffd2 | 15,356 | cpp | C++ | src/backend/GPStreamADF.cpp | jxt1234/Genetic-Program-Frame | c0a801e337a31de05f49047fd11920a3c2e32ed6 | [
"Apache-2.0"
] | 3 | 2016-01-04T09:23:31.000Z | 2019-08-06T11:52:07.000Z | src/backend/GPStreamADF.cpp | jxt1234/Renascence | c0a801e337a31de05f49047fd11920a3c2e32ed6 | [
"Apache-2.0"
] | null | null | null | src/backend/GPStreamADF.cpp | jxt1234/Renascence | c0a801e337a31de05f49047fd11920a3c2e32ed6 | [
"Apache-2.0"
] | 6 | 2016-05-10T16:05:12.000Z | 2019-12-30T09:14:21.000Z | /******************************************************************
Copyright 2015, Jiang Xiao-tang
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... | 31.596708 | 100 | 0.522923 | jxt1234 |
c6d0ee41acd735f39f88bce469b9b7ba6379e18d | 1,107 | cpp | C++ | aat/cpp/src/core/models/trade.cpp | ryuuni/aat | 1a46d21463f8e080c389d1011b35d6a3fd036545 | [
"Apache-2.0"
] | null | null | null | aat/cpp/src/core/models/trade.cpp | ryuuni/aat | 1a46d21463f8e080c389d1011b35d6a3fd036545 | [
"Apache-2.0"
] | null | null | null | aat/cpp/src/core/models/trade.cpp | ryuuni/aat | 1a46d21463f8e080c389d1011b35d6a3fd036545 | [
"Apache-2.0"
] | null | null | null | #include <sstream>
#include <aat/common.hpp>
#include <aat/config/enums.hpp>
#include <aat/core/models/trade.hpp>
using namespace aat::common;
namespace aat {
namespace core {
str_t
Trade::toString() const {
sstream_t ss;
ss << "Trade+( id=" << id << ", timestamp=" << format_timestamp(timestamp) << volum... | 21.705882 | 105 | 0.585366 | ryuuni |
c6d0f559171397e1543ba799dcca7fb25ce0b662 | 7,601 | hpp | C++ | src/pnp2/include/pnp2/receiver.hpp | rosmod/lib-pnp2 | e4087177952a4ddb5413b95efbd65821e725e083 | [
"MIT"
] | null | null | null | src/pnp2/include/pnp2/receiver.hpp | rosmod/lib-pnp2 | e4087177952a4ddb5413b95efbd65821e725e083 | [
"MIT"
] | null | null | null | src/pnp2/include/pnp2/receiver.hpp | rosmod/lib-pnp2 | e4087177952a4ddb5413b95efbd65821e725e083 | [
"MIT"
] | null | null | null | /** \file receiver.hpp
*
* This file declares the Network::receiver class
*/
#ifndef NETWORK_RECEIVER_HPP
#define NETWORK_RECEIVER_HPP
#include "ros/ros.h"
#include <boost/thread/thread.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include "network/NetworkProfile.hpp"
#include "network/buffer.hpp"
... | 29.122605 | 116 | 0.641363 | rosmod |
c6d0fd6c55045844b6e757d3a9bb3720660312f6 | 1,832 | cpp | C++ | Plugins/ShowtimeUnreal/Source/ShowtimeRuntime/Private/Tests/ShowtimeClientTest.cpp | straycatss/NectoXR | c7d00fe5070cfd1d94aa9401bb7ef66238d4cae7 | [
"MIT"
] | null | null | null | Plugins/ShowtimeUnreal/Source/ShowtimeRuntime/Private/Tests/ShowtimeClientTest.cpp | straycatss/NectoXR | c7d00fe5070cfd1d94aa9401bb7ef66238d4cae7 | [
"MIT"
] | null | null | null | Plugins/ShowtimeUnreal/Source/ShowtimeRuntime/Private/Tests/ShowtimeClientTest.cpp | straycatss/NectoXR | c7d00fe5070cfd1d94aa9401bb7ef66238d4cae7 | [
"MIT"
] | null | null | null | #include "Misc/AutomationTest.h"
#include "ShowtimeClient.h"
#include "ShowtimeServer.h"
using namespace showtime;
BEGIN_DEFINE_SPEC(ShowtimeClientSpec, "ShowtimeRuntimeModule.UShowtimeClient", EAutomationTestFlags::ProductFilter | EAutomationTestFlags::ApplicationContextMask)
UShowtimeClient* client;
UShowtimeServer... | 32.140351 | 162 | 0.615175 | straycatss |
c6d632f520f712ecea4ff6bc54e8ed18bc6f2906 | 7,444 | cpp | C++ | installer/dev/install.cpp | mrlacey/ProjectReunion | 1714557cad5e740c0153e451fbf0311c8e5bdfc1 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | installer/dev/install.cpp | mrlacey/ProjectReunion | 1714557cad5e740c0153e451fbf0311c8e5bdfc1 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | installer/dev/install.cpp | mrlacey/ProjectReunion | 1714557cad5e740c0153e451fbf0311c8e5bdfc1 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-03-10T22:19:06.000Z | 2021-03-10T22:19:06.000Z | #include "pch.h"
#include "packages.h"
#include "install.h"
using namespace winrt;
using namespace Windows::ApplicationModel;
using namespace Windows::Foundation;
using namespace Windows::Management::Deployment;
using namespace Windows::System;
namespace ProjectReunionInstaller {
winrt::hresult AddP... | 39.595745 | 182 | 0.650591 | mrlacey |
c6d67777260dd4575bcbe420163e2ab249931c60 | 15,948 | cpp | C++ | source/location/City.cpp | Tomash667/carpg | 7e89d83f51cb55a89baf509915a9a9f8c642825f | [
"MIT"
] | 19 | 2015-05-30T12:14:07.000Z | 2021-05-26T19:17:21.000Z | source/location/City.cpp | Tomash667/carpg | 7e89d83f51cb55a89baf509915a9a9f8c642825f | [
"MIT"
] | 402 | 2016-02-26T08:39:21.000Z | 2021-07-06T16:47:16.000Z | source/location/City.cpp | Tomash667/carpg | 7e89d83f51cb55a89baf509915a9a9f8c642825f | [
"MIT"
] | 21 | 2015-07-28T14:11:39.000Z | 2020-12-11T07:54:09.000Z | #include "Pch.h"
#include "City.h"
#include "BitStreamFunc.h"
#include "BuildingScript.h"
#include "Content.h"
#include "GameCommon.h"
#include "GroundItem.h"
#include "Level.h"
#include "Object.h"
#include "Unit.h"
#include "World.h"
#include <ResourceManager.h>
#include <Terrain.h>
//==============================... | 23.591716 | 117 | 0.57468 | Tomash667 |
c6d7392e21965efda5c3c8f814ec2e5932d5726f | 2,793 | cpp | C++ | WebKit2-7534.57.7/WebKit2-7534.57.7/UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | 1 | 2021-05-27T07:29:31.000Z | 2021-05-27T07:29:31.000Z | WebKit2-7534.57.7/WebKit2-7534.57.7/UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | WebKit2-7534.57.7/WebKit2-7534.57.7/UIProcess/qt/ChunkedUpdateDrawingAreaProxyQt.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2010 Apple Inc. All rights reserved.
* Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
*
* 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 mus... | 33.650602 | 93 | 0.758324 | mlcldh |
c6d8fe023ee8b7cc93adbf56dc053594520b514f | 34 | hpp | C++ | Blik2D/addon/blik_addon_zip.hpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | 13 | 2017-02-22T02:20:06.000Z | 2018-06-06T04:18:03.000Z | Blik2D/addon/blik_addon_zip.hpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | null | null | null | Blik2D/addon/blik_addon_zip.hpp | BonexGu/Blik2D | 8e0592787e5c8e8a28682d0e1826b8223eae5983 | [
"MIT"
] | null | null | null | #pragma once
#include <blik.hpp>
| 11.333333 | 19 | 0.705882 | BonexGu |
c6d926c83c98c23c7e224343eb3578e79193f343 | 15,018 | hpp | C++ | include/flusspferd/object.hpp | Flusspferd/flusspferd | f2a070c4805e0bdbae4b5f528e94a9a36ceb80c5 | [
"MIT"
] | 7 | 2015-06-08T09:59:36.000Z | 2021-02-27T18:45:17.000Z | include/flusspferd/object.hpp | Flusspferd/flusspferd | f2a070c4805e0bdbae4b5f528e94a9a36ceb80c5 | [
"MIT"
] | null | null | null | include/flusspferd/object.hpp | Flusspferd/flusspferd | f2a070c4805e0bdbae4b5f528e94a9a36ceb80c5 | [
"MIT"
] | 3 | 2016-07-06T20:47:01.000Z | 2021-06-30T19:09:47.000Z | // vim:ts=2:sw=2:expandtab:autoindent:filetype=cpp:
/*
The MIT License
Copyright (c) 2008, 2009 Flusspferd contributors (see "CONTRIBUTORS" or
http://flusspferd.org/contributors.txt)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software an... | 23.914013 | 101 | 0.657811 | Flusspferd |
c6ddd2303c1b24b78509257184d2a99eb8fba251 | 377 | cpp | C++ | ccoct2.cpp | hoonkai/Hacktober-CP-contributions | dc8a7ca13c4360d925c0a76569320bd39384014b | [
"MIT"
] | 7 | 2020-10-04T05:14:59.000Z | 2020-10-12T19:30:30.000Z | ccoct2.cpp | hoonkai/Hacktober-CP-contributions | dc8a7ca13c4360d925c0a76569320bd39384014b | [
"MIT"
] | 7 | 2020-10-06T11:56:57.000Z | 2020-10-28T21:19:05.000Z | ccoct2.cpp | hoonkai/Hacktober-CP-contributions | dc8a7ca13c4360d925c0a76569320bd39384014b | [
"MIT"
] | 44 | 2020-10-04T02:53:09.000Z | 2021-10-17T09:43:25.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n,k,x,y;
cin>>n>>k>>x>>y;
if(k==0){
if(x==y)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
else{
int flag=0;
for(int i=0;i<1000;i++){
if(x==y){
cout<<"YES"<<endl;
flag=1;
break;
}
x=(x+k)%n;... | 11.78125 | 25 | 0.477454 | hoonkai |
c6de1a1d53d1bc5743f253b22849aa0c1993565b | 2,649 | cpp | C++ | sp/src/game/server/hl2/grenade_frag.cpp | 95Navigator/insolence-2013 | d6f75214602a4e14b51a5abf8af0355f679ae94d | [
"Unlicense"
] | 11 | 2018-11-04T16:19:35.000Z | 2020-11-21T22:03:16.000Z | sp/src/game/server/hl2/grenade_frag.cpp | 95Navigator/insolence-2013 | d6f75214602a4e14b51a5abf8af0355f679ae94d | [
"Unlicense"
] | null | null | null | sp/src/game/server/hl2/grenade_frag.cpp | 95Navigator/insolence-2013 | d6f75214602a4e14b51a5abf8af0355f679ae94d | [
"Unlicense"
] | null | null | null | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "basegrenade_shared.h"
#include "grenade_frag.h"
ConVar sk_plr_dmg_fraggrenade ( "sk_plr_dmg_f... | 26.49 | 173 | 0.718384 | 95Navigator |
c6e4f1501857048d90390eae5d87fe8bea767e6b | 1,543 | cc | C++ | cc/paint/raw_memory_transfer_cache_entry.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 | cc/paint/raw_memory_transfer_cache_entry.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 | cc/paint/raw_memory_transfer_cache_entry.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 (c) 2017 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/paint/raw_memory_transfer_cache_entry.h"
#include <string.h>
#include <utility>
namespace cc {
ClientRawMemoryTransferCacheEntry::Clie... | 26.603448 | 75 | 0.760207 | zealoussnow |
c6e6afe9f878920511da2aa0c613f196fb9b4732 | 7,565 | hpp | C++ | mcppalloc_sparse/mcppalloc_sparse/include/mcppalloc/mcppalloc_sparse/allocator_block.hpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | mcppalloc_sparse/mcppalloc_sparse/include/mcppalloc/mcppalloc_sparse/allocator_block.hpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | mcppalloc_sparse/mcppalloc_sparse/include/mcppalloc/mcppalloc_sparse/allocator_block.hpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | #pragma once
#include "sparse_allocator_block_base.hpp"
#include <algorithm>
#include <mcppalloc/block.hpp>
#include <mcppalloc/default_allocator_policy.hpp>
#include <mcpputil/mcpputil/boost/property_tree/ptree_fwd.hpp>
#include <mcpputil/mcpputil/container.hpp>
#include <mcpputil/mcpputil/make_unique.hpp>
#include <s... | 38.207071 | 121 | 0.665169 | garyfurnish |