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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7308109a4d30d81b15a570e8c15109778ff6bf5e | 767 | cpp | C++ | init/src/hpx_main_argc_argv.cpp | jokteur/hpx | 689ce9b586322c90f966ef84aa6eba190f037dd7 | [
"BSL-1.0"
] | 1,822 | 2015-01-03T11:22:37.000Z | 2022-03-31T14:49:59.000Z | init/src/hpx_main_argc_argv.cpp | Deepak-suresh14/hpx | 5ecf3cad298678021c77c825a9f54d7c119d9dd1 | [
"BSL-1.0"
] | 3,288 | 2015-01-05T17:00:23.000Z | 2022-03-31T18:49:41.000Z | init/src/hpx_main_argc_argv.cpp | Deepak-suresh14/hpx | 5ecf3cad298678021c77c825a9f54d7c119d9dd1 | [
"BSL-1.0"
] | 431 | 2015-01-07T06:22:14.000Z | 2022-03-31T14:50:04.000Z | // Copyright (c) 2007-2013 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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 <hpx/hpx_init.hpp>
#include <hpx/hpx_finalize.hpp>
////////////////////... | 36.52381 | 80 | 0.654498 |
7308e85e1bf6a7cae25f7e841e1503edfa31a09c | 16,180 | cpp | C++ | configuration/configurator/ConfiguratorAPI.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | null | null | null | configuration/configurator/ConfiguratorAPI.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | 1 | 2018-03-01T18:15:12.000Z | 2018-03-01T18:15:12.000Z | configuration/configurator/ConfiguratorAPI.cpp | miguelvazq/HPCC-Platform | 22ad8e5fcb59626abfd8febecbdfccb1e9fb0aa5 | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2015 HPCC Systems®.
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... | 28.738899 | 145 | 0.686836 |
730936d3234a022b9673db4e23201cfbe3c65bc1 | 825 | cpp | C++ | boboleetcode/Play-Leetcode-master/0049-Group-Anagrams/cpp-0049/main.cpp | yaominzh/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 2 | 2021-03-25T05:26:55.000Z | 2021-04-20T03:33:24.000Z | boboleetcode/Play-Leetcode-master/0049-Group-Anagrams/cpp-0049/main.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | boboleetcode/Play-Leetcode-master/0049-Group-Anagrams/cpp-0049/main.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | null | null | null | /// Source : https://leetcode.com/problems/group-anagrams/description/
/// Author : liuyubobobo
/// Time : 2018-09-12
#include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
/// Using HashMap
/// Using sorted string as key
///
/// Time Complexity: O(n*klogk) where k is the max length o... | 21.153846 | 75 | 0.602424 |
7309ce25360b55138689d7ff062ad57fabf0a112 | 12,697 | cc | C++ | chrome/browser/supervised_user/supervised_user_allowlist_service.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/supervised_user/supervised_user_allowlist_service.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/supervised_user/supervised_user_allowlist_service.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 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/supervised_user/supervised_user_allowlist_service.h"
#include <stddef.h>
#include <string>
#include <utility>
#include "base/b... | 35.46648 | 81 | 0.731905 |
730b8769492185a73f22cde33327c597fc04b050 | 9,850 | cc | C++ | mysql-server/router/src/harness/src/dynamic_state.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/harness/src/dynamic_state.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/harness/src/dynamic_state.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain ... | 34.083045 | 80 | 0.705584 |
730d1de7aafbb60918da55773730ef103c3a237f | 6,509 | cc | C++ | chrome/browser/extensions/api/system_private/system_private_api.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/api/system_private/system_private_api.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/api/system_private/system_private_api.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/api/system_private/system_private_api.h"
#include <memory>
#include <utility>
#include "base/macros.h"
#include ... | 35.961326 | 80 | 0.746966 |
730d607de955483bb14616630794aef81674435d | 2,583 | cpp | C++ | client/winapplication.cpp | flaming0/software-renderer | dfeb24eb4ac6f90552e65cc7e0cf97d7d693ad7b | [
"MIT"
] | 14 | 2015-03-22T16:18:32.000Z | 2017-08-08T14:07:44.000Z | client/winapplication.cpp | nslobodin/software-renderer | dfeb24eb4ac6f90552e65cc7e0cf97d7d693ad7b | [
"MIT"
] | null | null | null | client/winapplication.cpp | nslobodin/software-renderer | dfeb24eb4ac6f90552e65cc7e0cf97d7d693ad7b | [
"MIT"
] | 2 | 2015-08-31T03:01:57.000Z | 2016-12-20T06:09:32.000Z | /*
* winapplication.cpp
*
* Author: flamingo
* E-mail: epiforce57@gmail.com
*/
#include "winapplication.h"
void WinApplication::update(float dt)
{
}
WinApplication::WinApplication(int argc, const char *argv[])
: platform::BaseAppWin(argc, argv)
{
m_playerCamera = m_clientController->getCamera... | 23.481818 | 112 | 0.636856 |
730daedec1ae75a1acd8b2fbe243881225858d2f | 1,333 | cpp | C++ | Common_3/ThirdParty/OpenSource/meshoptimizer/src/allocator.cpp | Mercesa/The-Forge | 13d7604bde91f90188c9dcb480ea6e97f60f1645 | [
"Apache-2.0"
] | 1 | 2021-11-16T08:35:01.000Z | 2021-11-16T08:35:01.000Z | Common_3/ThirdParty/OpenSource/meshoptimizer/src/allocator.cpp | Mercesa/The-Forge | 13d7604bde91f90188c9dcb480ea6e97f60f1645 | [
"Apache-2.0"
] | null | null | null | Common_3/ThirdParty/OpenSource/meshoptimizer/src/allocator.cpp | Mercesa/The-Forge | 13d7604bde91f90188c9dcb480ea6e97f60f1645 | [
"Apache-2.0"
] | null | null | null | // This file is part of meshoptimizer library; see meshoptimizer.h for version/license details
#include "meshoptimizer.h"
#include "../../../../OS/Interfaces/ILog.h"
#include "../../../../ThirdParty/OpenSource/ModifiedSonyMath/vectormath_settings.hpp"
#define MEM_MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN_ALLOC_ALI... | 26.137255 | 94 | 0.740435 |
730e961086ae68d929f9d93fd746fb8faee658fb | 18,430 | cpp | C++ | Classes/GameSceneEx.cpp | lfeng1420/BrickGame | e4961a7454ae1adece6845c64a6ba8ac59856d68 | [
"MIT"
] | 39 | 2016-05-07T06:39:54.000Z | 2021-04-13T15:00:52.000Z | Classes/GameSceneEx.cpp | lfeng1420/BrickGame | e4961a7454ae1adece6845c64a6ba8ac59856d68 | [
"MIT"
] | 8 | 2016-07-17T06:39:54.000Z | 2021-07-06T15:14:19.000Z | Classes/GameSceneEx.cpp | lfeng1420/BrickGame | e4961a7454ae1adece6845c64a6ba8ac59856d68 | [
"MIT"
] | 13 | 2016-03-11T11:46:19.000Z | 2018-08-10T16:34:33.000Z | #include "stdafx.h"
#include "GameSceneEx.h"
cocos2d::Scene* CGameSceneEx::CreateScene(const TGameSceneContext* pContext /*= nullptr*/)
{
auto scene = Scene::create();
auto layer = CGameSceneEx::create(pContext);
scene->addChild(layer);
scene->setTag(GAME_SCENE_TAG);
return scene;
}
cocos2d::LayerColor* CGameS... | 33.941068 | 144 | 0.741671 |
731064edb012109930ec2ce75282ad6c5463f5fb | 7,515 | cc | C++ | src/pass/narrow_channel_access.cc | baowenlei/tvm | 6b2e18ed96fad26b4a5e5f8a6dcbedf9206c9a65 | [
"Apache-2.0"
] | 16 | 2019-11-20T03:43:19.000Z | 2021-11-25T02:32:17.000Z | src/pass/narrow_channel_access.cc | baowenlei/tvm | 6b2e18ed96fad26b4a5e5f8a6dcbedf9206c9a65 | [
"Apache-2.0"
] | 4 | 2019-06-27T08:05:18.000Z | 2021-09-09T18:59:11.000Z | src/pass/narrow_channel_access.cc | baowenlei/tvm | 6b2e18ed96fad26b4a5e5f8a6dcbedf9206c9a65 | [
"Apache-2.0"
] | 5 | 2020-03-18T10:14:30.000Z | 2021-04-01T12:09:20.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 ... | 30.673469 | 78 | 0.628743 |
731157651556f53e1b0fd10738e263f79fd480aa | 4,159 | cc | C++ | tests/registrationbuilder_tests.cc | aghoward/cdif | 838bab6eb5c52f6cad47018860d37bb1d18c723f | [
"MIT"
] | 10 | 2017-06-24T12:54:48.000Z | 2020-02-17T07:58:33.000Z | tests/registrationbuilder_tests.cc | aghoward/cdif | 838bab6eb5c52f6cad47018860d37bb1d18c723f | [
"MIT"
] | 2 | 2018-01-26T19:01:03.000Z | 2018-03-15T23:34:20.000Z | tests/registrationbuilder_tests.cc | aghoward/cdif | 838bab6eb5c52f6cad47018860d37bb1d18c723f | [
"MIT"
] | null | null | null | #include "cdif.h"
#include "test_types.h"
#include <gtest/gtest.h>
#include <functional>
#include <string>
#include <thread>
class RegistrationBuilderTests : public ::testing::Test
{
protected:
cdif::Container _subject;
template <typename T>
void givenRegistrationReturningValue(T value, ... | 29.707143 | 111 | 0.716999 |
73121d342e29deaab3ef11167a551b144578f7db | 3,475 | cpp | C++ | src/TableFunctions/TableFunctionS3.cpp | monadbobo/ClickHouse | 73b0f8db8c327a1d63cc7ebcc56087a3f9866dae | [
"Apache-2.0"
] | null | null | null | src/TableFunctions/TableFunctionS3.cpp | monadbobo/ClickHouse | 73b0f8db8c327a1d63cc7ebcc56087a3f9866dae | [
"Apache-2.0"
] | 1 | 2020-04-04T04:25:47.000Z | 2020-04-04T04:25:47.000Z | src/TableFunctions/TableFunctionS3.cpp | monadbobo/ClickHouse | 73b0f8db8c327a1d63cc7ebcc56087a3f9866dae | [
"Apache-2.0"
] | null | null | null | #include <Common/config.h>
#if USE_AWS_S3
#include <IO/S3Common.h>
#include <Storages/StorageS3.h>
#include <Access/AccessFlags.h>
#include <Interpreters/evaluateConstantExpression.h>
#include <Interpreters/Context.h>
#include <TableFunctions/TableFunctionFactory.h>
#include <TableFunctions/TableFunctionS3.h>
#includ... | 30.482456 | 173 | 0.688345 |
73138a31f2c23d1c86b51a13b80a5b64c60e5ce8 | 16,016 | cpp | C++ | smallpssmlt.cpp | shiinamiyuki/smallpssmlt | f201bdff2a3968450e8fb970cd61be46fc0aab3d | [
"MIT"
] | 5 | 2019-06-27T05:55:52.000Z | 2022-01-09T14:13:13.000Z | smallpssmlt.cpp | xt271828/smallpssmlt | f201bdff2a3968450e8fb970cd61be46fc0aab3d | [
"MIT"
] | null | null | null | smallpssmlt.cpp | xt271828/smallpssmlt | f201bdff2a3968450e8fb970cd61be46fc0aab3d | [
"MIT"
] | null | null | null | #include <random>
#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <math.h> // smallpt, a Path Tracer by Kevin Beason, 2008
#include <stdlib.h> // Make : g++ -O3 -fopenmp smallpt.cpp -o smallpt
#include <stdio.h> // Remove "-fopenmp" for g++ version < 4.2
#include <atomic>
#include <mutex>
... | 32.032 | 118 | 0.512113 |
7313c68973add89f0ddad04b9a5810fa63df0790 | 3,495 | cpp | C++ | lib/RiGto/RiGtoSet.cpp | cmartinaf/open-gto | c673552a16c9ebe79a42c2a27ddc4cbd8e6b724d | [
"BSD-3-Clause"
] | 8 | 2015-03-20T07:57:09.000Z | 2021-02-13T22:20:04.000Z | lib/RiGto/RiGtoSet.cpp | cmartinaf/open-gto | c673552a16c9ebe79a42c2a27ddc4cbd8e6b724d | [
"BSD-3-Clause"
] | null | null | null | lib/RiGto/RiGtoSet.cpp | cmartinaf/open-gto | c673552a16c9ebe79a42c2a27ddc4cbd8e6b724d | [
"BSD-3-Clause"
] | 3 | 2015-02-11T17:44:16.000Z | 2019-11-29T12:26:07.000Z | //
// Copyright (c) 2009, Tweak Software
// 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, th... | 32.663551 | 80 | 0.546209 |
7314ebc2c980d79fa0bbb381775a016c107d5f95 | 1,004,280 | cpp | C++ | test/bidi_test_147.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/bidi_test_147.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/bidi_test_147.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | // Warning! This file is autogenerated.
#include <boost/text/bidirectional.hpp>
#include "bidi_tests.hpp"
#include <gtest/gtest.h>
#include <algorithm>
std::vector<int> expected_levels;
std::vector<int> expected_reordered_indices;
TEST(bidi, bidi_147_000)
{
expected_levels = { 1, 1, -1, -1 };
expected_re... | 32.966124 | 77 | 0.403859 |
73159be7e2d0d0940067990682acd252c4792721 | 2,737 | cpp | C++ | libcxx/test/std/containers/views/span.obs/empty.pass.cpp | elizabethandrews/llvm | 308498236c1c4778fdcba0bfbb556adf8aa333ea | [
"Apache-2.0"
] | 305 | 2019-09-14T17:16:05.000Z | 2022-03-31T15:05:20.000Z | libcxx/test/std/containers/views/span.obs/empty.pass.cpp | elizabethandrews/llvm | 308498236c1c4778fdcba0bfbb556adf8aa333ea | [
"Apache-2.0"
] | 410 | 2019-06-06T20:52:32.000Z | 2022-01-18T14:21:48.000Z | libcxx/test/std/containers/views/span.obs/empty.pass.cpp | elizabethandrews/llvm | 308498236c1c4778fdcba0bfbb556adf8aa333ea | [
"Apache-2.0"
] | 50 | 2019-05-10T21:12:24.000Z | 2022-01-21T06:39:47.000Z | // -*- C++ -*-
//===------------------------------ span ---------------------------------===//
//
// 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
//
//===-------------... | 36.493333 | 80 | 0.502009 |
7317ba74f6f2bad7cc0fb55df7288340d6c4720b | 7,205 | cpp | C++ | src/reduce.cpp | q3k/cadical | b490c98b9b4a4bb66c04cbc3e535c3205f4ccc17 | [
"MIT"
] | null | null | null | src/reduce.cpp | q3k/cadical | b490c98b9b4a4bb66c04cbc3e535c3205f4ccc17 | [
"MIT"
] | null | null | null | src/reduce.cpp | q3k/cadical | b490c98b9b4a4bb66c04cbc3e535c3205f4ccc17 | [
"MIT"
] | null | null | null | #include "internal.hpp"
namespace CaDiCaL {
/*------------------------------------------------------------------------*/
// Once in a while we reduce, e.g., we remove learned clauses which are
// supposed to be less useful in the future. This is done in increasing
// intervals, which has the effect of allowing more... | 32.022222 | 77 | 0.599722 |
731924b015015b67c832555ad1db1862aeea142d | 2,194 | cpp | C++ | B2G/gecko/content/html/content/src/nsTimeRanges.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/content/html/content/src/nsTimeRanges.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/content/html/content/src/nsTimeRanges.cpp | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim:set ts=2 sw=2 sts=2 et cindent: */
/* 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.... | 23.094737 | 79 | 0.69371 |
731a636f01532dd8c90e3c135801e84941f53c85 | 1,833 | cpp | C++ | EZOJ/Contests/1046/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1046/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1046/A.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <vector>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag... | 18.148515 | 61 | 0.575559 |
731b64739268775e4a0cce56af12df7e76201772 | 4,979 | cc | C++ | src/AutoPilotPlugins/Common/SyslinkComponentController.cc | uav-operation-system/qgroundcontrol | c24029938e88d7a45a04f4e4e64bf588f595afed | [
"Apache-2.0"
] | 2,133 | 2015-01-04T03:10:22.000Z | 2022-03-31T01:51:07.000Z | src/AutoPilotPlugins/Common/SyslinkComponentController.cc | uav-operation-system/qgroundcontrol | c24029938e88d7a45a04f4e4e64bf588f595afed | [
"Apache-2.0"
] | 6,166 | 2015-01-02T18:47:42.000Z | 2022-03-31T03:44:10.000Z | src/AutoPilotPlugins/Common/SyslinkComponentController.cc | uav-operation-system/qgroundcontrol | c24029938e88d7a45a04f4e4e64bf588f595afed | [
"Apache-2.0"
] | 2,980 | 2015-01-01T03:09:18.000Z | 2022-03-31T04:13:55.000Z | /****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | 36.07971 | 112 | 0.573408 |
731c9e1161e40e1b19985ed666223cbe809a32d5 | 14,888 | cc | C++ | chrome/browser/net/stub_resolver_config_reader_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/net/stub_resolver_config_reader_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/net/stub_resolver_config_reader_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"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 "chrome/browser/net/stub_resolver_config_reader.h"
#include <memory>
#include <vector>
#include "base/test/task_environment.h"
#include "base/v... | 41.703081 | 80 | 0.752485 |
731d865dfa99b5897ff8777ef1c573abe68940d4 | 480 | hpp | C++ | qflow/system.hpp | johanere/qflow | 5453cd5c3230ad7f082adf9ec1aea63ab0a4312a | [
"MIT"
] | 5 | 2019-07-24T21:46:24.000Z | 2021-06-11T18:18:24.000Z | qflow/system.hpp | johanere/qflow | 5453cd5c3230ad7f082adf9ec1aea63ab0a4312a | [
"MIT"
] | 22 | 2019-02-19T10:49:26.000Z | 2019-07-18T09:42:13.000Z | qflow/system.hpp | bsamseth/FYS4411 | 72b879e7978364498c48fc855b5df676c205f211 | [
"MIT"
] | 2 | 2020-11-04T15:17:24.000Z | 2021-11-03T16:37:38.000Z | #pragma once
#include "definitions.hpp"
#include "vector.hpp"
#include <Eigen/Dense>
using System = Matrix;
namespace Distance
{
void init(const System&);
Real probe(const System&, int i, int j);
void invalidate_cache(int i);
// The plain, non-memoized euclidian norm.
// Fall back to this if not initialized, or wh... | 20 | 70 | 0.71875 |
731e6b4c332561f4aa726e60b58e4a956da8625a | 12,594 | cpp | C++ | game/src/ScriptObjects/ScriptObjectGame.cpp | fromasmtodisasm/BlackBox | 36b4fa56e62a81d9483e76f1272b1203981b97fe | [
"MIT"
] | 1 | 2019-12-10T00:37:05.000Z | 2019-12-10T00:37:05.000Z | game/src/ScriptObjects/ScriptObjectGame.cpp | fromasmtodisasm/BlackBox | 36b4fa56e62a81d9483e76f1272b1203981b97fe | [
"MIT"
] | 3 | 2020-02-17T21:12:09.000Z | 2022-01-19T10:28:02.000Z | game/src/ScriptObjects/ScriptObjectGame.cpp | fromasmtodisasm/BlackBox | 36b4fa56e62a81d9483e76f1272b1203981b97fe | [
"MIT"
] | 3 | 2019-03-14T16:28:47.000Z | 2020-05-17T20:42:55.000Z | #include <Game.hpp>
#include <Server/XServer.hpp>
#include <ScriptObjects/ScriptObjectGame.hpp>
#include <BlackBox/Core/IMarkers.hpp>
#include <BlackBox/System/IConsole.hpp>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
////////////////////////////////////////////... | 25.137725 | 150 | 0.68612 |
732198936b16b5117cc7dcfd2dd2ace65dae8bc4 | 1,235 | cpp | C++ | src/expectation.cpp | xchrishawk/spookshow | 139910e97330a387213a504ae77c2f3dbcb06134 | [
"MIT"
] | null | null | null | src/expectation.cpp | xchrishawk/spookshow | 139910e97330a387213a504ae77c2f3dbcb06134 | [
"MIT"
] | null | null | null | src/expectation.cpp | xchrishawk/spookshow | 139910e97330a387213a504ae77c2f3dbcb06134 | [
"MIT"
] | null | null | null | /**
* @file expectation.cpp
* @author Chris Vig (chris@invictus.so)
* @date 2016/12/30
*/
/* -- Includes -- */
#include <sstream>
#include <string>
#include <spookshow/spookshow.hpp>
/* -- Namespaces -- */
using namespace spookshow;
/* -- Procedures -- */
expectation::expectation(const std::string& name, int... | 21.666667 | 95 | 0.610526 |
7322d739c7995fac1a0a4f8867ad8953c1ae43c2 | 2,749 | cpp | C++ | Codeforces/1083C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | Codeforces/1083C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | Codeforces/1083C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <cstdio>
#include <vector>
#include <algorithm>
#define MAXN 200005
using namespace std;
pair <int,int> x[1<<19],now;
int n,T,R,ans,o,lg[MAXN<<1],pt[MAXN],p[MAXN],pos[MAXN],dep[MAXN<<1];
int fa[19][MAXN<<1],euler[MAXN<<1];
vector <int> g[MAXN];
inline void dfs(int x,int deep)
{
pt[x]=++R;euler[R]=x;dep[R]=d... | 20.514925 | 68 | 0.535831 |
73237bc7569f20482fbf5194613ab171105ba3d2 | 2,515 | cc | C++ | media/capture/video/chromeos/pixel_format_utils.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 | media/capture/video/chromeos/pixel_format_utils.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | media/capture/video/chromeos/pixel_format_utils.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 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 "media/capture/video/chromeos/pixel_format_utils.h"
#include <drm_fourcc.h>
namespace media {
namespace {
struct SupportedFormat {
cros::mo... | 32.24359 | 79 | 0.719284 |
7323ab57a708ec79f17cb1ab13254ca47091ce6c | 49,659 | cpp | C++ | opencv-2.4.11/modules/ml/src/ann_mlp.cpp | durai-chellamuthu/node-opencv | a9c18c77b2fe0f62f2f8376854bdf33de71f5dc3 | [
"MIT"
] | 13 | 2015-03-01T07:03:17.000Z | 2021-11-03T06:33:31.000Z | modules/ml/src/ann_mlp.cpp | ehren/opencv | abe37659ccfc2b399e7543eee1a43900c9a7099e | [
"BSD-3-Clause"
] | null | null | null | modules/ml/src/ann_mlp.cpp | ehren/opencv | abe37659ccfc2b399e7543eee1a43900c9a7099e | [
"BSD-3-Clause"
] | 32 | 2015-06-08T08:59:51.000Z | 2021-08-05T09:54:16.000Z | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 30.672637 | 114 | 0.525282 |
732b7c3ed5c7a2371f52b85be91110823a9b204f | 961 | cpp | C++ | Data_Structures/LinkedList/Merge_two_sorted_lists/mergeLists.cpp | edinapap/DSA-Library | 586adf2e0bf4eb9a4ece295bb27d87f8ce7f6bce | [
"MIT"
] | 30 | 2020-10-08T17:44:47.000Z | 2022-03-23T18:05:06.000Z | Data_Structures/LinkedList/Merge_two_sorted_lists/mergeLists.cpp | edinapap/DSA-Library | 586adf2e0bf4eb9a4ece295bb27d87f8ce7f6bce | [
"MIT"
] | 118 | 2020-10-08T04:29:44.000Z | 2021-12-10T06:22:26.000Z | Data_Structures/LinkedList/Merge_two_sorted_lists/mergeLists.cpp | edinapap/DSA-Library | 586adf2e0bf4eb9a4ece295bb27d87f8ce7f6bce | [
"MIT"
] | 125 | 2020-10-08T04:34:19.000Z | 2022-03-30T19:16:27.000Z | //Problem Link: https://practice.geeksforgeeks.org/problems/merge-two-sorted-linked-lists/1
/* Link list Node
struct Node {
int data;
struct Node *next;
Node(int x) {
data = x;
next = NULL;
}
};
*/
Node* sortedMerge(Node* h1, Node* h2)
{
Node* h3 = NULL;
Node* last = NULL;
if(h1->da... | 17.160714 | 91 | 0.416233 |
732d7fb51c8b50ec5af805bb6831d3ce0aaf348a | 8,977 | hpp | C++ | Libraries/Zilch/Project/Zilch/Any.hpp | jodavis42/ZilchShaders | a161323165c54d2824fe184f5d540e0a008b4d59 | [
"MIT"
] | 1 | 2019-08-31T00:45:45.000Z | 2019-08-31T00:45:45.000Z | Libraries/Zilch/Project/Zilch/Any.hpp | jodavis42/ZilchShaders | a161323165c54d2824fe184f5d540e0a008b4d59 | [
"MIT"
] | 5 | 2020-04-13T00:17:11.000Z | 2021-04-20T23:11:42.000Z | Libraries/Zilch/Project/Zilch/Any.hpp | jodavis42/ZilchShaders | a161323165c54d2824fe184f5d540e0a008b4d59 | [
"MIT"
] | null | null | null | /**************************************************************\
* Author: Trevor Sundberg
* Copyright 2016, DigiPen Institute of Technology
\**************************************************************/
#pragma once
#ifndef ZILCH_ANY_HPP
#define ZILCH_ANY_HPP
namespace Zilch
{
// Returns an invalid type that is ... | 35.908 | 192 | 0.670046 |
7330dd63e2b69917be0dd1c24436232566860819 | 4,509 | cpp | C++ | src/geometric/bounding_box.cpp | mapbox/nepomuk | 8771482edb9b16bb0f5a152c15681c57eb3bb6b6 | [
"MIT"
] | 22 | 2017-05-12T11:52:26.000Z | 2021-12-06T06:05:08.000Z | src/geometric/bounding_box.cpp | mapbox/nepomuk | 8771482edb9b16bb0f5a152c15681c57eb3bb6b6 | [
"MIT"
] | 49 | 2017-05-11T16:13:58.000Z | 2017-12-13T11:19:17.000Z | src/geometric/bounding_box.cpp | mapbox/nepomuk | 8771482edb9b16bb0f5a152c15681c57eb3bb6b6 | [
"MIT"
] | 7 | 2017-11-19T12:04:26.000Z | 2021-12-06T06:14:25.000Z | #include "geometric/bounding_box.hpp"
#include <algorithm>
#include <cmath> // for atan, exp
#include <type_traits> // for move, swap
#include <boost/math/constants/constants.hpp>
namespace nepomuk
{
namespace geometric
{
WGS84BoundingBox::WGS84BoundingBox(WGS84Coordinate lower_left, WGS84Coordinate upper_rig... | 37.575 | 100 | 0.667554 |
73310779d3c6123b480f17b97154b7eca5a24326 | 1,977 | cpp | C++ | spoj/classical/is_it_a_tree.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | spoj/classical/is_it_a_tree.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | spoj/classical/is_it_a_tree.cpp | Rkhoiwal/Competitive-prog-Archive | 18a95a8b2b9ca1a28d6fe939c1db5450d541ddc9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
inline
void use_io_optimizations()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
}
class UnionFind
{
public:
UnionFind(unsigned int items):
components(items),
parents(items),
ranks(items)
{
for (unsigne... | 16.754237 | 59 | 0.486596 |
7331bc71b35fc7565e2f49b2c05132709eab4e38 | 237 | hpp | C++ | sdk/procmonsdk/logger.hpp | Syr0/openprocmon | 2a4b7b9f5da97215fcb59354a2951a62a3aa41a7 | [
"MIT"
] | 90 | 2020-07-28T06:44:56.000Z | 2022-03-10T03:59:33.000Z | sdk/procmonsdk/logger.hpp | L4ys/openprocmon | 44fb542922f31f9548739dc81d7a7269a564ea41 | [
"MIT"
] | 4 | 2021-02-24T09:13:27.000Z | 2022-01-18T08:44:52.000Z | sdk/procmonsdk/logger.hpp | L4ys/openprocmon | 44fb542922f31f9548739dc81d7a7269a564ea41 | [
"MIT"
] | 27 | 2020-07-28T06:49:22.000Z | 2022-02-14T05:09:56.000Z | #pragma once
#include <windows.h>
typedef enum { L_DEBUG, L_INFO, L_WARN, L_ERROR } LEVEL, *PLEVEL;
//
// A quick logging routine for debug messages.
//
#define MAX_LOG_MESSAGE 1024
BOOL LogMessage(LEVEL Level, LPCTSTR Format, ...); | 18.230769 | 65 | 0.721519 |
7332011fd8ef0f0410b36e59d441bb91b8c0ed3b | 4,415 | cc | C++ | src/sst/core/cfgoutput/dotConfigOutput.cc | gvoskuilen/sst-core | 6fe68d7b2a0b306d78ca39e7a4a822f1582ca86e | [
"BSD-3-Clause"
] | null | null | null | src/sst/core/cfgoutput/dotConfigOutput.cc | gvoskuilen/sst-core | 6fe68d7b2a0b306d78ca39e7a4a822f1582ca86e | [
"BSD-3-Clause"
] | 10 | 2020-04-24T15:24:14.000Z | 2020-11-07T20:41:07.000Z | src/sst/core/cfgoutput/dotConfigOutput.cc | gvoskuilen/sst-core | 6fe68d7b2a0b306d78ca39e7a4a822f1582ca86e | [
"BSD-3-Clause"
] | 2 | 2021-08-17T19:36:15.000Z | 2021-08-19T13:38:14.000Z | // Copyright 2009-2020 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2020, NTESS
// All rights reserved.
//
// This file is part of the SST software package. For license
// information, see the LICENSE file in the ... | 36.487603 | 120 | 0.577576 |
733724fd7e455677881e0464ad578dbc421f3ef6 | 1,523 | hpp | C++ | Classes/entity.hpp | mackness33/NoGravitar | ae0c4f1fc5567aa32584c8b48a2506cdea329ad1 | [
"MIT"
] | null | null | null | Classes/entity.hpp | mackness33/NoGravitar | ae0c4f1fc5567aa32584c8b48a2506cdea329ad1 | [
"MIT"
] | null | null | null | Classes/entity.hpp | mackness33/NoGravitar | ae0c4f1fc5567aa32584c8b48a2506cdea329ad1 | [
"MIT"
] | null | null | null | #ifndef ENTITY_H
#define ENTITY_H
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
#include "essence.hpp"
//this class handle static objects
template <class T> class entity : public essence<T>{
protected:
void setBoundery();
public:
//----------CONST... | 28.735849 | 134 | 0.530532 |
73394a30c9d65051b6f05a321260f387a2f93fcb | 316 | cc | C++ | python/src/main.cc | jareddk/triton | ea03d6207728315312d9cb6fa014f6a394b79c71 | [
"MIT"
] | null | null | null | python/src/main.cc | jareddk/triton | ea03d6207728315312d9cb6fa014f6a394b79c71 | [
"MIT"
] | null | null | null | python/src/main.cc | jareddk/triton | ea03d6207728315312d9cb6fa014f6a394b79c71 | [
"MIT"
] | null | null | null | #include <pybind11/pybind11.h>
void init_superblocking(pybind11::module &m);
void init_torch_utils(pybind11::module &m);
void init_triton(pybind11::module &m);
PYBIND11_MODULE(libtriton, m) {
m.doc() = "Python bindings to the C++ Triton API";
init_triton(m);
init_torch_utils(m);
init_superblocking(m);
}
| 24.307692 | 52 | 0.734177 |
733a9d52bd96985bf4be21d4aaa0a2d18e70ffa9 | 4,835 | hpp | C++ | Testbed/Tests/Tiles.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Testbed/Tests/Tiles.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Testbed/Tests/Tiles.hpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2006-2009 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising ... | 31.601307 | 91 | 0.543123 |
733bc8cee3fc21b6dd27ea32daf1a64358b6eb66 | 23,145 | cpp | C++ | Pod/Classes/algorithms/extractor/lowlevelspectralextractor.cpp | jbloit/iosEssentia | 785ba29e8178942b396575dd3872bdf3d5d63cd5 | [
"MIT"
] | null | null | null | Pod/Classes/algorithms/extractor/lowlevelspectralextractor.cpp | jbloit/iosEssentia | 785ba29e8178942b396575dd3872bdf3d5d63cd5 | [
"MIT"
] | null | null | null | Pod/Classes/algorithms/extractor/lowlevelspectralextractor.cpp | jbloit/iosEssentia | 785ba29e8178942b396575dd3872bdf3d5d63cd5 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... | 57.574627 | 207 | 0.710002 |
733d49cacfda17ad19b7bd7918be73c1fd14a64f | 5,647 | cpp | C++ | paddle/capi/Matrix.cpp | limeng357/Paddle | dbd25805c88c48998eb9dc0f4b2ca1fd46326482 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2017-12-04T02:58:01.000Z | 2020-12-03T14:46:30.000Z | paddle/capi/Matrix.cpp | limeng357/Paddle | dbd25805c88c48998eb9dc0f4b2ca1fd46326482 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2017-12-05T20:29:08.000Z | 2018-10-15T08:57:40.000Z | paddle/capi/Matrix.cpp | limeng357/Paddle | dbd25805c88c48998eb9dc0f4b2ca1fd46326482 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2018-03-19T22:38:46.000Z | 2019-11-01T22:28:27.000Z | /* Copyright (c) 2016 PaddlePaddle 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... | 32.831395 | 80 | 0.625642 |
733f1b2453e4e54ddde2f729f47a0bb30a32a3d2 | 982 | cc | C++ | src/calc/token.cc | madeso/bbcalc | 1f5e316ce007b1d1d9b4fc49f9afb03715e5674c | [
"MIT"
] | null | null | null | src/calc/token.cc | madeso/bbcalc | 1f5e316ce007b1d1d9b4fc49f9afb03715e5674c | [
"MIT"
] | null | null | null | src/calc/token.cc | madeso/bbcalc | 1f5e316ce007b1d1d9b4fc49f9afb03715e5674c | [
"MIT"
] | null | null | null | #include "calc/token.h"
#include <array>
#include <string_view>
#include <sstream>
#include <cassert>
[[nodiscard]] std::string
Token::ToString() const
{
constexpr std::array NAMES{
std::string_view{"NUMBER"},
std::string_view{"AND"},
std::string_view{"OR"},
std::s... | 13.452055 | 49 | 0.562118 |
734069140143a9873c0f3f6ae8b77658fbe7345c | 1,414 | cpp | C++ | lintcode/strstr.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | lintcode/strstr.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | lintcode/strstr.cpp | Broadroad/learnLeetcode | c4af121b3451caa4d53819c5f8c62b38e8e5fb87 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int BASE = 1000000;
/**
* @param source:
* @param target:
* @return: return the index
*/
int strStr(string &source, string &target) {
// Write your code here
int tLength = target.size();
if (tLength == 0) {
return 0;
... | 26.185185 | 75 | 0.37553 |
734116e60ec9267de8fd987959286ca00f5a5059 | 10,118 | cpp | C++ | lib/RefBackend/RefBackend.cpp | dan-garvey/mlir-npcomp | 977b1b03ea7dfb68f0971f1f7313ec6856236380 | [
"Apache-2.0"
] | null | null | null | lib/RefBackend/RefBackend.cpp | dan-garvey/mlir-npcomp | 977b1b03ea7dfb68f0971f1f7313ec6856236380 | [
"Apache-2.0"
] | null | null | null | lib/RefBackend/RefBackend.cpp | dan-garvey/mlir-npcomp | 977b1b03ea7dfb68f0971f1f7313ec6856236380 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// 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
// Also available under a BSD-style... | 38.618321 | 80 | 0.646472 |
734227447a877a493502ce2ecbf459fa9089ebed | 971 | cpp | C++ | algorithms/cpp/87.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | 3 | 2016-10-01T10:15:09.000Z | 2017-07-09T02:53:36.000Z | algorithms/cpp/87.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | algorithms/cpp/87.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
bool isScramble(string s1, string s2) {
if (s1 == s2) return true;
int length = s1.size();
vector<int> count(26, 0);
for (int i = 0; i < length; i++) {
count[s1[i]-'a'] += 1;
... | 29.424242 | 117 | 0.519053 |
73426bc70010195b7165a0466a2d9fe8a2ac35d9 | 2,031 | hpp | C++ | src/limonp/CastFloat.hpp | ultimate010/cppjieba | ada3f5cf76d1f99570d92bc38d5e42a573839a88 | [
"MIT"
] | 2 | 2015-10-25T17:41:22.000Z | 2015-10-28T08:46:12.000Z | Jieba/src/limonp/CastFloat.hpp | sakamoto-poteko/neko | 642cbc59e1c1241a835f8d9c2590c1935a9e321b | [
"MIT",
"Unlicense"
] | null | null | null | Jieba/src/limonp/CastFloat.hpp | sakamoto-poteko/neko | 642cbc59e1c1241a835f8d9c2590c1935a9e321b | [
"MIT",
"Unlicense"
] | null | null | null | #ifndef LIMONP_CAST_FUNCTS_H
#define LIMONP_CAST_FUNCTS_H
namespace limonp {
namespace CastFloat {
//logical and or
static const int sign_32 = 0xC0000000;
static const int exponent_32 = 0x07800000;
static const int mantissa_32 = 0x007FE000;
static const int sign_exponent_32 = 0x40000000;
static const int loss_32 = 0x3... | 24.46988 | 71 | 0.66519 |
734492a91e88681108a94ec80c3213c341e6f064 | 4,887 | cpp | C++ | cocos2d/cocos/editor-support/spine/spine-cocos2dx.cpp | davidyuan/WagonWar | a52211c0e5490dffaacfa1c722d321d969ae612c | [
"MIT"
] | 174 | 2015-01-01T15:12:53.000Z | 2022-03-23T03:06:07.000Z | cocos2d/cocos/editor-support/spine/spine-cocos2dx.cpp | davidyuan/WagonWar | a52211c0e5490dffaacfa1c722d321d969ae612c | [
"MIT"
] | 2 | 2015-05-20T14:34:48.000Z | 2019-08-14T00:54:40.000Z | cocos2d/cocos/editor-support/spine/spine-cocos2dx.cpp | davidyuan/WagonWar | a52211c0e5490dffaacfa1c722d321d969ae612c | [
"MIT"
] | 103 | 2015-01-10T13:34:24.000Z | 2022-01-10T00:55:33.000Z | /******************************************************************************
* Spine Runtime Software License - Version 1.1
*
* Copyright (c) 2013, Esoteric Software
* All rights reserved.
*
* Redistribution and use in source and binary forms in whole or in part, with
* or without modification, are permitte... | 39.096 | 126 | 0.683855 |
73459419f8ec4baded376d7e3527680e11ea33c0 | 1,469 | cc | C++ | tensorflow/lite/tensorflow_profiler_logger_shim.cc | Stevanus-Christian/tensorflow | d44afcf5ca16c5d704c66f891b99eac804e7cd14 | [
"Apache-2.0"
] | 2 | 2016-09-27T05:37:33.000Z | 2019-11-22T06:41:12.000Z | tensorflow/lite/tensorflow_profiler_logger_shim.cc | Stevanus-Christian/tensorflow | d44afcf5ca16c5d704c66f891b99eac804e7cd14 | [
"Apache-2.0"
] | null | null | null | tensorflow/lite/tensorflow_profiler_logger_shim.cc | Stevanus-Christian/tensorflow | d44afcf5ca16c5d704c66f891b99eac804e7cd14 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2022 The TensorFlow 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 a... | 45.90625 | 80 | 0.73179 |
7346fb41b297d5a0520770ad4d0fcc0e746e143e | 5,897 | cpp | C++ | corelib/src/OdometryICP.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | 1 | 2017-05-25T20:41:33.000Z | 2017-05-25T20:41:33.000Z | corelib/src/OdometryICP.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | null | null | null | corelib/src/OdometryICP.cpp | redater/PAM-BATR | 3fc8f95972ec13963a53c5448921b59df80a8c8b | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2010-2014, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
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
... | 30.713542 | 155 | 0.716636 |
734850c46ab274fe820c5910550cbfbf2dd11176 | 4,082 | hpp | C++ | source/pattern/Map.hpp | Superone77/PMPP-Compositional-GPU | e1f5a24563572604880a73db55757363cd3c5b3c | [
"CECILL-B"
] | 1 | 2022-02-13T13:14:08.000Z | 2022-02-13T13:14:08.000Z | source/pattern/Map.hpp | Superone77/PMPP-Compositional-GPU | e1f5a24563572604880a73db55757363cd3c5b3c | [
"CECILL-B"
] | null | null | null | source/pattern/Map.hpp | Superone77/PMPP-Compositional-GPU | e1f5a24563572604880a73db55757363cd3c5b3c | [
"CECILL-B"
] | null | null | null | #pragma once
#include "../Commons.hpp"
#include "../interfaces/PatternInterface.hpp"
#include "../interfaces/ThreadSafeQueue.hpp"
#include "../interfaces/Executor.hpp"
#include "../interfaces/LoadBalancer.hpp"
#include <cassert>
#include <future>
#include <thread>
#include <vector>
template<typename T_input, typena... | 23.45977 | 172 | 0.66291 |
734a4641678a890b978562fb5146e6b52dbbfe72 | 1,505 | cpp | C++ | apps/scheduler/client/assfire/scheduler/RemoteWaybillSchedulingAlgorithm.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/scheduler/client/assfire/scheduler/RemoteWaybillSchedulingAlgorithm.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | apps/scheduler/client/assfire/scheduler/RemoteWaybillSchedulingAlgorithm.cpp | Eaglegor/assfire-suite | 6c8140e848932b6ce22b6addd07a93abba652c01 | [
"MIT"
] | null | null | null | #include "RemoteWaybillSchedulingAlgorithm.hpp"
#include "assfire/api/v1/scheduler/translators/Translators.hpp"
#include "assfire/api/v1/router/translators/Translators.hpp"
using namespace assfire::scheduler;
using namespace assfire::api::v1::scheduler;
RemoteWaybillSchedulingAlgorithm::RemoteWaybillSchedulingAlgorit... | 51.896552 | 196 | 0.780066 |
734a5413924f3b88dfeea748e2162f43cbbf7a73 | 503 | cpp | C++ | 3-Behavioral/14.Command/src/Command/Factory/DivideFactory.cpp | gfa99/gof_design_patterns | a33ee7f344f8e382bb9fc676b77b22a5a123bca0 | [
"Apache-2.0"
] | 21 | 2017-11-08T11:32:48.000Z | 2021-03-29T08:58:04.000Z | 3-Behavioral/14.Command/src/Command/Factory/DivideFactory.cpp | gfa99/gof_design_patterns | a33ee7f344f8e382bb9fc676b77b22a5a123bca0 | [
"Apache-2.0"
] | null | null | null | 3-Behavioral/14.Command/src/Command/Factory/DivideFactory.cpp | gfa99/gof_design_patterns | a33ee7f344f8e382bb9fc676b77b22a5a123bca0 | [
"Apache-2.0"
] | 8 | 2017-11-26T13:57:50.000Z | 2021-08-23T06:52:57.000Z | #include "Command/Factory/DivideFactory.h"
namespace GoF {
namespace Command {
namespace Factory {
Command * DivideFactory::createCommand(double _operand, double _operator)
{
return new Divide(this->createReceiver(_operand, _operator));
}
... | 20.958333 | 87 | 0.574553 |
734a93a40466a1340ad176d58341a668e9376d2c | 3,365 | hpp | C++ | libs/foe_graphics_resource/include/foe/graphics/resource/material_loader.hpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | 4 | 2021-04-09T13:11:22.000Z | 2022-03-26T07:29:31.000Z | libs/foe_graphics_resource/include/foe/graphics/resource/material_loader.hpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | null | null | null | libs/foe_graphics_resource/include/foe/graphics/resource/material_loader.hpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | 1 | 2022-02-10T14:51:00.000Z | 2022-02-10T14:51:00.000Z | /*
Copyright (C) 2021 George Cave.
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... | 32.990196 | 84 | 0.719465 |
734bf82529614ce4230de06837fae7e75d94dad3 | 5,460 | cpp | C++ | src/extralibs/sdl_draw/src/draw_line.cpp | SamuraiCrow/protrekkr | 4bf6f52635ac722e7a9370dacfbc8807a4043c4a | [
"BSD-3-Clause"
] | 22 | 2018-02-13T12:29:23.000Z | 2022-02-21T16:18:15.000Z | src/extralibs/sdl_draw/src/draw_line.cpp | PaulBatchelor/protrekkr | 0f93032913bf111b0721901691dd351a165c3d61 | [
"BSD-2-Clause"
] | 5 | 2018-02-13T13:43:55.000Z | 2021-12-14T07:55:07.000Z | src/extralibs/sdl_draw/src/draw_line.cpp | hitchhikr/protrekkr | d14b83f1a2570ea31deced97972839b621710c9e | [
"BSD-3-Clause"
] | 5 | 2019-05-02T13:07:28.000Z | 2022-01-07T17:51:37.000Z | /*!
\file Draw_Line.c
\author Mario Palomo <mpalomo@ihman.com>
\author Jose M. de la Huerga Fern�ndez
\author Pepe Gonz�lez Mora
\date 05-2002
Based in Kenny Hoff sourcer.
*/
/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
... | 35.225806 | 119 | 0.621062 |
734ce4bd9eaaac6d65d346567b122ea6fce575f4 | 4,897 | cpp | C++ | src/goto-diff/goto_diff_base.cpp | DamonLiuTHU/cbmc | 67f8c916672347ab05418db45eebbd93885efdec | [
"BSD-4-Clause"
] | null | null | null | src/goto-diff/goto_diff_base.cpp | DamonLiuTHU/cbmc | 67f8c916672347ab05418db45eebbd93885efdec | [
"BSD-4-Clause"
] | null | null | null | src/goto-diff/goto_diff_base.cpp | DamonLiuTHU/cbmc | 67f8c916672347ab05418db45eebbd93885efdec | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: GOTO-DIFF Base Class
Author: Peter Schrammel
\*******************************************************************/
/// \file
/// GOTO-DIFF Base Class
#include "goto_diff.h"
#include <util/json_expr.h>
#include <util/options.h>
#include... | 30.798742 | 78 | 0.687768 |
734eb180fcc67783c5a416b81f6120750a9dc422 | 12,088 | cpp | C++ | win32/VandaEngine1/GraphicsEngine/ActionsAPI.cpp | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | 12 | 2021-06-22T11:28:12.000Z | 2022-03-21T00:56:33.000Z | win32/VandaEngine1/GraphicsEngine/ActionsAPI.cpp | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | null | null | null | win32/VandaEngine1/GraphicsEngine/ActionsAPI.cpp | ehsankamrani/vandaengine | 854430e41db6df1f4fcad9c19718fd8dfcc2c3cb | [
"MIT"
] | 1 | 2018-10-05T08:17:29.000Z | 2018-10-05T08:17:29.000Z | /// ActionsAPI.cpp
///
/// Copyright 1997-2007 by David K. McAllister
/// http://www.ParticleSystems.org
///
/// This file implements the action API calls by creating action class instances,
/// which are either executed or added to an action list.
#include "stdafx.h"
#include "pAPI.h"
#include "PInternalState.h"
name... | 24.51927 | 162 | 0.669838 |
7356ec7988fe8e9febc6102713b570ffe9912f4f | 5,975 | cpp | C++ | 3rdparty/GPSTk/ext/lib/Procframe/GravitationalDelay.cpp | mfkiwl/ICE | e660d031bb1bcea664db1de4946fd8781be5b627 | [
"MIT"
] | 50 | 2019-10-12T01:22:20.000Z | 2022-02-15T23:28:26.000Z | 3rdparty/GPSTk/ext/lib/Procframe/GravitationalDelay.cpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | null | null | null | 3rdparty/GPSTk/ext/lib/Procframe/GravitationalDelay.cpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | 14 | 2019-11-05T01:50:29.000Z | 2021-08-06T06:23:44.000Z | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... | 31.951872 | 79 | 0.553138 |
7357263d07252d38c3915db364f5e0fd1297d4d1 | 8,364 | cpp | C++ | CGameFree.cpp | SAFETY1956/- | a49fd06061e45d3a95c9c6f2af0f6febeac619ec | [
"Apache-2.0"
] | null | null | null | CGameFree.cpp | SAFETY1956/- | a49fd06061e45d3a95c9c6f2af0f6febeac619ec | [
"Apache-2.0"
] | null | null | null | CGameFree.cpp | SAFETY1956/- | a49fd06061e45d3a95c9c6f2af0f6febeac619ec | [
"Apache-2.0"
] | null | null | null | // CGameFree.cpp: 实现文件
//
#include "stdafx.h"
#include "LLK.h"
#include "CGameFree.h"
#include "afxdialogex.h"
#include <Windows.h>
#include <MMSystem.h>
#pragma comment( lib,"winmm.lib" )
// CGameFree 对话框
IMPLEMENT_DYNAMIC(CGameFree, CDialogEx)
CGameFree::CGameFree(CWnd* pParent /*=nullptr*/)
: ... | 24.45614 | 157 | 0.684481 |
73572cf8f43a6a762ad86c09396af4ce7b8ed709 | 29,831 | cpp | C++ | src/signalrclient/connection_impl.cpp | tonerdo/SignalR-Client-Cpp | ea4ad5b0a50a7483aec4b4dcfd316c635ccdfdfd | [
"MIT"
] | null | null | null | src/signalrclient/connection_impl.cpp | tonerdo/SignalR-Client-Cpp | ea4ad5b0a50a7483aec4b4dcfd316c635ccdfdfd | [
"MIT"
] | null | null | null | src/signalrclient/connection_impl.cpp | tonerdo/SignalR-Client-Cpp | ea4ad5b0a50a7483aec4b4dcfd316c635ccdfdfd | [
"MIT"
] | null | null | null | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "stdafx.h"
#include <thread>
#include <algorithm>
#include "constants.h"
#include "connection_impl.h"
#incl... | 39.511258 | 185 | 0.554457 |
735739922baebe75d65a9e4911c708981faf4497 | 1,569 | hpp | C++ | SDK/ARKSurvivalEvolved_Buff_BrainSlugShoulderVisualCient_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_BrainSlugShoulderVisualCient_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_BrainSlugShoulderVisualCient_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_BrainSlugShoulderVisualCient_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------... | 34.866667 | 208 | 0.656469 |
73587308ae31a021d44997a9a43e4ed92ec3cc01 | 16,573 | cc | C++ | chrome/browser/android/vr_shell/vr_shell_renderer.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | chrome/browser/android/vr_shell/vr_shell_renderer.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/android/vr_shell/vr_shell_renderer.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/android/vr_shell/vr_shell_renderer.h"
#include "chrome/browser/android/vr_shell/vr_gl_util.h"
namespace {
#define RECTANGULAR_... | 40.719902 | 80 | 0.722923 |
7359b69116be43f028344c95fbb9b7d94ecd86d1 | 1,099 | cpp | C++ | Source/Framework/Core/Manager/TeAudioManager.cpp | fabsgc/TweedeFramework | dfd48f53a6c64b1c8b11ae2ed204dbfcb3ae6fda | [
"MIT"
] | 2 | 2019-04-18T18:13:51.000Z | 2020-06-02T10:58:21.000Z | Source/Framework/Core/Manager/TeAudioManager.cpp | fabsgc/TweedeFramework | dfd48f53a6c64b1c8b11ae2ed204dbfcb3ae6fda | [
"MIT"
] | null | null | null | Source/Framework/Core/Manager/TeAudioManager.cpp | fabsgc/TweedeFramework | dfd48f53a6c64b1c8b11ae2ed204dbfcb3ae6fda | [
"MIT"
] | 1 | 2020-02-11T15:38:27.000Z | 2020-02-11T15:38:27.000Z | #include "Manager/TeAudioManager.h"
#include "Utility/TeDynLibManager.h"
#include "Utility/TeDynLib.h"
namespace te
{
AudioManager::AudioManager(const String& pluginName)
: _plugin(nullptr)
, _factory(nullptr)
{
_plugin = DynLibManager::Instance().Load(pluginName);
if (_plugin ... | 26.166667 | 105 | 0.569609 |
735a91fc08d33d73a2499cfb32fdf0824c242084 | 6,059 | cpp | C++ | tests/test_buffer.cpp | ximenpo/simple-cpp | 0779674dbea5cd8f4081140cad90edeaa31da7c8 | [
"MIT"
] | 2 | 2015-04-10T04:07:24.000Z | 2015-10-21T07:13:11.000Z | tests/test_buffer.cpp | ximenpo/simple_cpp | 0779674dbea5cd8f4081140cad90edeaa31da7c8 | [
"MIT"
] | 1 | 2015-04-18T02:31:22.000Z | 2015-04-21T20:21:02.000Z | tests/test_buffer.cpp | ximenpo/simple_cpp | 0779674dbea5cd8f4081140cad90edeaa31da7c8 | [
"MIT"
] | null | null | null | #include "simple/igloo.h"
using namespace igloo;
#include <map>
#include <set>
#include <list>
#include <deque>
#include <vector>
#include "simple/buffer.h"
struct testBufferMsg1 {
enum {ID = 1};
int n;
std::string s;
};
buffer& operator>>(buffer& buf, testBufferMsg1& obj) {
uintmax_t size;
... | 23.484496 | 88 | 0.474006 |
735b8df02e43154b2ba8d201d130aaeca3d79db3 | 2,036 | cpp | C++ | src/llvmir2hll/ir/unary_op_expr.cpp | Andrik-555/retdec | 1ac63a520da02912daf836b924f41d95b1b5fa10 | [
"MIT",
"BSD-3-Clause"
] | 521 | 2019-03-29T15:44:08.000Z | 2022-03-22T09:46:19.000Z | src/llvmir2hll/ir/unary_op_expr.cpp | Andrik-555/retdec | 1ac63a520da02912daf836b924f41d95b1b5fa10 | [
"MIT",
"BSD-3-Clause"
] | 30 | 2019-06-04T17:00:49.000Z | 2021-09-08T20:44:19.000Z | src/llvmir2hll/ir/unary_op_expr.cpp | Andrik-555/retdec | 1ac63a520da02912daf836b924f41d95b1b5fa10 | [
"MIT",
"BSD-3-Clause"
] | 99 | 2019-03-29T16:04:13.000Z | 2022-03-28T16:59:34.000Z | /**
* @file src/llvmir2hll/ir/unary_op_expr.cpp
* @brief Implementation of UnaryOpExpr.
* @copyright (c) 2017 Avast Software, licensed under the MIT license
*/
#include "retdec/llvmir2hll/ir/unary_op_expr.h"
#include "retdec/llvmir2hll/support/debug.h"
namespace retdec {
namespace llvmir2hll {
/**
* @brief Construct... | 21.208333 | 81 | 0.711198 |
735cc339feadfdb26e310462205e801aa6cf08f4 | 943 | hpp | C++ | include/mizuiro/color/format/homogenous_dynamic_ns/tag_of.hpp | cpreh/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | 1 | 2015-08-22T04:19:39.000Z | 2015-08-22T04:19:39.000Z | include/mizuiro/color/format/homogenous_dynamic_ns/tag_of.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | include/mizuiro/color/format/homogenous_dynamic_ns/tag_of.hpp | freundlich/mizuiro | 5ab15bde4e72e3a4978c034b8ff5700352932485 | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef MIZUIRO_COLOR_FORMAT_HOMOGENOUS_DYNAMIC_NS_TAG_OF_HPP_INCLUDED
#define MIZUIRO_COLOR_FORMAT... | 34.925926 | 91 | 0.78685 |
735d2a1d595e33ce6a12e792ba751952e6ec9ab9 | 120,271 | hpp | C++ | zeccup/zeccup/military/desert/construction.hpp | LISTINGS09/ZECCUP | e0ad1fae580dde6e5d90903b1295fecc41684f63 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 3 | 2016-08-29T09:23:49.000Z | 2019-06-13T20:29:28.000Z | zeccup/zeccup/military/desert/construction.hpp | LISTINGS09/ZECCUP | e0ad1fae580dde6e5d90903b1295fecc41684f63 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | zeccup/zeccup/military/desert/construction.hpp | LISTINGS09/ZECCUP | e0ad1fae580dde6e5d90903b1295fecc41684f63 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | class ConstructionLarge
{
name = $STR_ZECCUP_ConstructionLarge;
// EAST
class LightFactory_CUP_O_TK {
name = $STR_ZECCUP_MilitaryDesert_ConstructionLarge_LightFactory_CUP_O_TK; // Credit: 2600K
icon = "\ca\data\flag_rus_co.paa";
side = 8;
class Object0 {side = 8; vehicle = "Land_tent_eas... | 111.88 | 139 | 0.617597 |
735fbff85eef398dbc2ddfe02ff8675ac9937cc4 | 6,254 | cpp | C++ | src/commands/CmdSummary.cpp | chrko/timewarrior | 532d1b4e910d8431ffeabd5bb7a8e405a57e586e | [
"MIT"
] | null | null | null | src/commands/CmdSummary.cpp | chrko/timewarrior | 532d1b4e910d8431ffeabd5bb7a8e405a57e586e | [
"MIT"
] | null | null | null | src/commands/CmdSummary.cpp | chrko/timewarrior | 532d1b4e910d8431ffeabd5bb7a8e405a57e586e | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 - 2020, Thomas Lauf, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to d... | 29.224299 | 103 | 0.569555 |
7360de20d55505eeb7792ff907993656516448fd | 810 | hpp | C++ | src/mesh/meshSetup.hpp | roystgnr/nekRS | 280acd21c3088d7658a8a113e544fce05853d7b4 | [
"BSD-3-Clause"
] | null | null | null | src/mesh/meshSetup.hpp | roystgnr/nekRS | 280acd21c3088d7658a8a113e544fce05853d7b4 | [
"BSD-3-Clause"
] | null | null | null | src/mesh/meshSetup.hpp | roystgnr/nekRS | 280acd21c3088d7658a8a113e544fce05853d7b4 | [
"BSD-3-Clause"
] | null | null | null | #if !defined(nekrs_meshsetup_hpp_)
#define nekrs_meshsetup_hpp_
#include "nrs.hpp"
mesh_t* createMeshDummy(MPI_Comm comm,
int N,
int cubN,
setupAide &options,
occa::device device,
occa::properties &k... | 28.928571 | 54 | 0.455556 |
73618c5ca41ce308cb5d7dfecd62df237fbd6307 | 631 | cpp | C++ | atcoder/abc096/D.cpp | SashiRin/protrode | c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c | [
"MIT"
] | 1 | 2019-08-03T13:42:16.000Z | 2019-08-03T13:42:16.000Z | atcoder/abc096/D.cpp | SashiRin/protrode | c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c | [
"MIT"
] | null | null | null | atcoder/abc096/D.cpp | SashiRin/protrode | c03d0a6e9a5ac87d0f3d3af5d39b05a10f58527c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int maxn = 55555;
int main() {
int n;
cin >> n;
vector<bool> primes(maxn, true);
for (int i = 2; i < maxn; ++i) {
if (primes[i]) {
for (int j = i + i; j < maxn; j += i) {
primes[j] = false;
}
}
... | 20.354839 | 51 | 0.37401 |
736288df4279cc9a5bb7d7918ae3bb03915977d9 | 4,306 | cpp | C++ | SimulationTest/gpuTests/CollisionTestGpu.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | 4 | 2021-12-11T17:59:07.000Z | 2021-12-24T11:08:55.000Z | SimulationTest/gpuTests/CollisionTestGpu.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | 121 | 2021-12-11T09:20:47.000Z | 2022-03-13T18:36:48.000Z | SimulationTest/gpuTests/CollisionTestGpu.cpp | KevinMcGin/Simulation | f1dbed05d6024274f6a69e0679f529feaae1e26e | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "law/collision/Collision.h"
#include "law/collision/detector/CollisionDetectorSimple.cuh"
#include "law/collision/resolver/CollisionResolverCoalesce.cuh"
#include "LawHelper.h"
#include "CollisionTestHelper.h"
TEST(CollisionTest, ParticlesCollideGpu) {
auto law = std::make_shared<Co... | 44.391753 | 138 | 0.774268 |
736877c8b40a7cdb42de867111f7b7484a4c1df6 | 357 | cpp | C++ | 2.1 Pointer/array.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | 2.1 Pointer/array.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | 2.1 Pointer/array.cpp | arryaaas/Programming-Algorithms | f469431830cbe528feb297abd47d2d6c08e0781a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
//Pointer declaration
int *p;
//Array declaration
int arr[]={1, 2, 3, 4, 5, 6};
//Assignment
p = arr;
for(int i=0; i<6;i++){
cout<<*p<<endl;
// cout<<sizeof(p)<<endl;
//++ moves the pointer to next int position... | 14.875 | 51 | 0.498599 |
736a350791245f317f077731db992826be4c9aa1 | 6,502 | cpp | C++ | FMU/Source/Model_ExternalShading.cpp | kwabenantim/No-MASS | 843ccaa461923e227a8e854daaa6952d14cb8bed | [
"MIT"
] | null | null | null | FMU/Source/Model_ExternalShading.cpp | kwabenantim/No-MASS | 843ccaa461923e227a8e854daaa6952d14cb8bed | [
"MIT"
] | 1 | 2020-08-28T18:11:26.000Z | 2020-08-28T18:11:26.000Z | FMU/Source/Model_ExternalShading.cpp | kwabenantim/No-MASS | 843ccaa461923e227a8e854daaa6952d14cb8bed | [
"MIT"
] | 2 | 2020-02-05T10:49:42.000Z | 2020-08-28T08:23:28.000Z | // Copyright 2015 Jacob Chapman
#include <cmath>
#include <algorithm>
#include "Utility.hpp"
#include "Model_ExternalShading.hpp"
Model_ExternalShading::Model_ExternalShading() {
a01arr = -7.41;
b01inarr = 0.001035;
b01sarr = 2.17;
// Probability of raising on arrival
a10arr = -1.520;
b10inarr = -0.000654... | 30.961905 | 80 | 0.665488 |
736d4f8ad7401c2184db476974f1f418f1285784 | 908 | hpp | C++ | ExternalLibraries/NvGameworksFramework/externals/include/Cg/determinant.hpp | centauroWaRRIor/VulkanSamples | 5a7c58de820207cc0931a9db8c90f00453e31631 | [
"MIT"
] | null | null | null | ExternalLibraries/NvGameworksFramework/externals/include/Cg/determinant.hpp | centauroWaRRIor/VulkanSamples | 5a7c58de820207cc0931a9db8c90f00453e31631 | [
"MIT"
] | null | null | null | ExternalLibraries/NvGameworksFramework/externals/include/Cg/determinant.hpp | centauroWaRRIor/VulkanSamples | 5a7c58de820207cc0931a9db8c90f00453e31631 | [
"MIT"
] | null | null | null | /*
* Copyright 2005 by NVIDIA Corporation. All rights reserved. All
* information contained herein is proprietary and confidential to NVIDIA
* Corporation. Any use, reproduction, or disclosure without the written
* permission of NVIDIA Corporation is prohibited.
*/
#ifndef __Cg_determinant_hpp__
#define __Cg_... | 27.515152 | 88 | 0.790749 |
736dc38180ef41f17243d9ce252f186d6be1eafc | 656 | h++ | C++ | clauses/select_clause.h++ | snawaz/tagsql | 1b6d6c9eb9aa2d01ff3276414d714f3b6e6a9ee3 | [
"MIT"
] | 4 | 2018-03-03T13:45:35.000Z | 2021-05-22T12:11:08.000Z | clauses/select_clause.h++ | snawaz/tagsql | 1b6d6c9eb9aa2d01ff3276414d714f3b6e6a9ee3 | [
"MIT"
] | 1 | 2018-03-03T13:49:40.000Z | 2019-01-22T07:58:47.000Z | clauses/select_clause.h++ | snawaz/tagsql | 1b6d6c9eb9aa2d01ff3276414d714f3b6e6a9ee3 | [
"MIT"
] | 1 | 2018-03-03T13:45:36.000Z | 2018-03-03T13:45:36.000Z |
#pragma once
#include <memory>
#include <pqxx/pqxx>
#include <tagsql/anatomy/table.h++>
namespace tagsql
{
template<typename SelectQuery>
class composite_table;
template<typename SelectQuery>
class select_clause
{
public:
select_clause(std::shared_ptr<pqxx::connection> & connection) : _connect... | 21.16129 | 105 | 0.705793 |
7371c310a8c120485d865d36fbc6a0f87475027e | 9,589 | cc | C++ | common/unit_test/CryptoCNGMultithreadTest.cc | liuxiang88/core-alljoyn | 549c966482d9b89da84aa528117584e7049916cb | [
"Apache-2.0"
] | 33 | 2018-01-12T00:37:43.000Z | 2022-03-24T02:31:36.000Z | common/unit_test/CryptoCNGMultithreadTest.cc | liuxiang88/core-alljoyn | 549c966482d9b89da84aa528117584e7049916cb | [
"Apache-2.0"
] | 1 | 2020-01-05T05:51:27.000Z | 2020-01-05T05:51:27.000Z | common/unit_test/CryptoCNGMultithreadTest.cc | liuxiang88/core-alljoyn | 549c966482d9b89da84aa528117584e7049916cb | [
"Apache-2.0"
] | 30 | 2017-12-13T23:24:00.000Z | 2022-01-25T02:11:19.000Z | /******************************************************************************
* Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source
* Project (AJOSP) Contributors and others.
*
* SPDX-License-Identifier: Apache-2.0
*
* All rights reserved. This program and the accompanying material... | 34.369176 | 104 | 0.623318 |
73724843459fec643b31b7e6fa8ef0158b6dc3b5 | 39,549 | hpp | C++ | src/simulators/matrix_product_state/matrix_product_state.hpp | RafeyIqbalRahman/qiskit-aer | 4484040a0a210542c63c94d02394dd28711827b8 | [
"Apache-2.0"
] | 3 | 2021-11-08T11:46:42.000Z | 2021-12-27T10:13:38.000Z | src/simulators/matrix_product_state/matrix_product_state.hpp | RafeyIqbalRahman/qiskit-aer | 4484040a0a210542c63c94d02394dd28711827b8 | [
"Apache-2.0"
] | 2 | 2021-11-09T14:57:09.000Z | 2022-01-12T12:35:58.000Z | artifacts/old_dataset_versions/original_commits_v02/qiskit-aer/qiskit-aer#1132/after/matrix_product_state.hpp | MattePalte/Bugs-Quantum-Computing-Platforms | 0c1c805fd5dfce465a8955ee3faf81037023a23e | [
"MIT"
] | null | null | null | /**
* This code is part of Qiskit.
*
* (C) Copyright IBM 2018, 2019.
*
* This code is licensed under the Apache License, Version 2.0. You may
* obtain a copy of this license in the LICENSE.txt file in the root directory
* of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
*
* Any modificatio... | 36.551756 | 121 | 0.614175 |
73727144668884127305509b827327cd8d9a14b5 | 8,636 | cpp | C++ | third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2013 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 conditio... | 37.71179 | 80 | 0.704724 |
737448c247448c9b272305bbc67b3dde1ebbe09c | 7,037 | cpp | C++ | src/modeler/UpdateRulesHandler/update_rules_editor.cpp | rff255/Genesis | d87ff57e2c36f39bf62b4953f5f99190e82588f8 | [
"MIT"
] | 7 | 2017-08-08T17:10:58.000Z | 2020-10-02T04:33:03.000Z | src/modeler/UpdateRulesHandler/update_rules_editor.cpp | rff255/Genesis | d87ff57e2c36f39bf62b4953f5f99190e82588f8 | [
"MIT"
] | 1 | 2017-05-02T01:50:22.000Z | 2017-05-02T01:50:22.000Z | src/modeler/UpdateRulesHandler/update_rules_editor.cpp | rff255/Genesis | d87ff57e2c36f39bf62b4953f5f99190e82588f8 | [
"MIT"
] | 3 | 2017-09-01T08:04:44.000Z | 2020-08-21T01:38:24.000Z | #include "update_rules_editor.h"
#include "nodes_editor/imguinodegrapheditor.h"
#include "UpdateRulesHandler/node_graph_instance.h"
#include "JSON_nlohmann/json.hpp"
#include <vector>
#include <string>
using json = nlohmann::json;
UpdateRulesEditor::UpdateRulesEditor(){
mEditor = ImGui::NodeGraphEditor();
mEdit... | 38.453552 | 155 | 0.68623 |
73748955ce3f0f2a433ed54e4ef630ed4017c670 | 10,852 | hh | C++ | EnergyPlus/PoweredInductionUnits.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | EnergyPlus/PoweredInductionUnits.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T13:32:09.000Z | 2020-07-08T13:32:09.000Z | EnergyPlus/PoweredInductionUnits.hh | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | // EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... | 50.948357 | 149 | 0.670015 |
73751a821a3b85f14535d9c5723cb31f2a0d422a | 9,260 | cpp | C++ | src/foundation/third_party/agg/examples/gouraud.cpp | airgiser/gona | 4b81cbf8daacfca46a6bdec56935318a06f7e804 | [
"MIT"
] | 31 | 2017-06-28T09:50:03.000Z | 2021-08-11T14:09:35.000Z | src/foundation/third_party/agg/examples/gouraud.cpp | airgiser/gona | 4b81cbf8daacfca46a6bdec56935318a06f7e804 | [
"MIT"
] | null | null | null | src/foundation/third_party/agg/examples/gouraud.cpp | airgiser/gona | 4b81cbf8daacfca46a6bdec56935318a06f7e804 | [
"MIT"
] | 5 | 2017-06-29T13:43:23.000Z | 2020-09-01T02:47:11.000Z | #include <stdio.h>
#include "agg_basics.h"
#include "agg_rendering_buffer.h"
#include "agg_rasterizer_scanline_aa.h"
#include "agg_scanline_u.h"
#include "agg_scanline_p.h"
#include "agg_renderer_scanline.h"
#include "agg_span_allocator.h"
#include "agg_span_gouraud_rgba.h"
#include "agg_span_gouraud_gray.h"
... | 29.396825 | 85 | 0.47203 |
737916aa21b542adcc8c48d41953b70d67589cfb | 499 | cpp | C++ | test/doc/all_of.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 14 | 2021-11-20T15:21:08.000Z | 2022-03-14T21:47:22.000Z | test/doc/all_of.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 6 | 2021-11-27T17:50:48.000Z | 2022-02-01T18:17:38.000Z | test/doc/all_of.cpp | jfalcou/kumi | 09116696274bd38254d89636ea3d0d4b5eb43103 | [
"MIT"
] | 1 | 2022-02-21T23:06:03.000Z | 2022-02-21T23:06:03.000Z | //==================================================================================================
/*
KUMI - Compact Tuple Tools
Copyright : KUMI Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#inclu... | 31.1875 | 100 | 0.368737 |
737bc5fdb150874db26ef66845c907de6bca77f2 | 14,426 | cpp | C++ | inference-engine/src/mkldnn_plugin/nodes/priorbox.cpp | fujunwei/dldt | 09497b7724de4be92629f7799b8538b483d809a2 | [
"Apache-2.0"
] | 1 | 2021-07-30T17:03:50.000Z | 2021-07-30T17:03:50.000Z | inference-engine/src/mkldnn_plugin/nodes/priorbox.cpp | fujunwei/dldt | 09497b7724de4be92629f7799b8538b483d809a2 | [
"Apache-2.0"
] | null | null | null | inference-engine/src/mkldnn_plugin/nodes/priorbox.cpp | fujunwei/dldt | 09497b7724de4be92629f7799b8538b483d809a2 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "list.hpp"
#include "base.hpp"
#include <vector>
#include <string>
#include <cmath>
#include <limits>
#include "ie_parallel.hpp"
namespace InferenceEngine {
namespace Extensions {
namespace Cpu {
class PriorBoxImpl: publ... | 41.693642 | 122 | 0.449674 |
737be9cd1d1475cf0bcf3826189369c0bf03ac8f | 2,091 | cpp | C++ | Sample/Sample/CustomFilter.cpp | timtianyang/PCL_region_growing | b138d257ca836bdd4d960014944d4991bfa12e79 | [
"MIT"
] | null | null | null | Sample/Sample/CustomFilter.cpp | timtianyang/PCL_region_growing | b138d257ca836bdd4d960014944d4991bfa12e79 | [
"MIT"
] | null | null | null | Sample/Sample/CustomFilter.cpp | timtianyang/PCL_region_growing | b138d257ca836bdd4d960014944d4991bfa12e79 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CustomFilter.h"
/*
CustomFilter::CustomFilter(pcl::PointCloud<pcl::PointXYZRGB>::Ptr *input, double xmin, double xmax, double ymin, double ymax){
input_cloud_XYZRGB = input;
std::cout << xmin << xmax << ymin << ymax <<std::endl;
std::cout << "before filtering " << (*input)->points.si... | 37.339286 | 126 | 0.735533 |
737cfdd1ddccd000dd2e64b2fcc69ac86b35ba54 | 3,417 | cpp | C++ | tests/test.cpp | agoose77/cpp11-range | ad62070845f24a9f509f0625e204654612bb5924 | [
"Apache-2.0"
] | null | null | null | tests/test.cpp | agoose77/cpp11-range | ad62070845f24a9f509f0625e204654612bb5924 | [
"Apache-2.0"
] | null | null | null | tests/test.cpp | agoose77/cpp11-range | ad62070845f24a9f509f0625e204654612bb5924 | [
"Apache-2.0"
] | null | null | null | #include <cpp11-range/range.hpp>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
template <typename R>
void print_range(R const& range);
template <typename R>
void test_range_size(R const& range);
int main() {
using std::cout;
using util::lang::range;
using util::lang::ind... | 28.239669 | 111 | 0.559848 |
737dfe0c0182de10ed7688dffdc44ba3035911cf | 595 | cc | C++ | src/broker/broker_main.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | 1 | 2018-02-09T21:20:31.000Z | 2018-02-09T21:20:31.000Z | src/broker/broker_main.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | 7 | 2017-11-20T22:22:12.000Z | 2018-03-21T13:00:06.000Z | src/broker/broker_main.cc | iot-dsa-v2/sdk-dslink-cpp | d7734fba02237bd11bc887058f4d9573aac598d8 | [
"Apache-2.0"
] | null | null | null | #include "dsa_common.h"
#include "broker.h"
#include "module/default/simple_security.h"
#include "module/default/simple_session_manager.h"
#include "config/broker_config.h"
#include "module/default/console_logger.h"
#include "module/client/broker_client_manager.h"
#include "module/authorizer/broker_authorizer.h"
... | 22.884615 | 73 | 0.764706 |
737f32c7f1f444d613d4345d25985acd5d111aff | 1,277 | cpp | C++ | Driver/src/AlephManager.cpp | gganis/AlphappLite | e52a184c2d39a3acdd6ff09d1d61bcfca7807460 | [
"Apache-2.0"
] | null | null | null | Driver/src/AlephManager.cpp | gganis/AlphappLite | e52a184c2d39a3acdd6ff09d1d61bcfca7807460 | [
"Apache-2.0"
] | null | null | null | Driver/src/AlephManager.cpp | gganis/AlphappLite | e52a184c2d39a3acdd6ff09d1d61bcfca7807460 | [
"Apache-2.0"
] | null | null | null | //////////////////////////////////////////////////////
//
// Implementation of class AlephManager
//
// The Base Class for an AlephManager (IO, DB, EXE,...)
//
// Author : G. Dissertori , 02.11.98
//
//////////////////////////////////////////////////////
#include <string>
#include <iostream>
#include <fstream>
... | 14.678161 | 64 | 0.638215 |
73827b17a72e04d33f721ea7b3992759cbb79cfe | 1,850 | cpp | C++ | ios/versioned-react-native/ABI44_0_0/ReactNative/ReactCommon/react/renderer/components/text/tests/ABI44_0_0ParagraphLocalDataTest.cpp | zakharchenkoAndrii/expo | f6b009d204b9124d43df59b75eb6affc2f0ba5bd | [
"Apache-2.0",
"MIT"
] | 1 | 2022-01-18T23:59:15.000Z | 2022-01-18T23:59:15.000Z | ios/versioned-react-native/ABI44_0_0/ReactNative/ReactCommon/react/renderer/components/text/tests/ABI44_0_0ParagraphLocalDataTest.cpp | zakharchenkoAndrii/expo | f6b009d204b9124d43df59b75eb6affc2f0ba5bd | [
"Apache-2.0",
"MIT"
] | 6 | 2020-08-06T12:31:23.000Z | 2021-02-05T12:47:10.000Z | ios/versioned-react-native/ABI44_0_0/ReactNative/ReactCommon/react/renderer/components/text/tests/ABI44_0_0ParagraphLocalDataTest.cpp | zakharchenkoAndrii/expo | f6b009d204b9124d43df59b75eb6affc2f0ba5bd | [
"Apache-2.0",
"MIT"
] | 1 | 2020-05-27T08:06:46.000Z | 2020-05-27T08:06:46.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <memory>
#include <assert.h>
#include <gtest/gtest.h>
#include <ABI44_0_0React/ABI44_0_0renderer/attributedstring/Attribu... | 33.636364 | 79 | 0.764865 |
7383b64784e5cd275669abc164dd5559126314d3 | 90 | cpp | C++ | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-boscojohn-ship | 7b050c896252bd7c32972728e4a0792bdf1f0fa0 | [
"MIT"
] | null | null | null | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-boscojohn-ship | 7b050c896252bd7c32972728e4a0792bdf1f0fa0 | [
"MIT"
] | null | null | null | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-boscojohn-ship | 7b050c896252bd7c32972728e4a0792bdf1f0fa0 | [
"MIT"
] | null | null | null | //circle.cpp
#include "circle.h"
void Circle::draw()
{
std::cout<<"draw circle\n";
}; | 12.857143 | 31 | 0.611111 |
738444c763d99b815c36c54f5de9a0a9c327c89c | 12,802 | cc | C++ | src/yb/master/sys_catalog_initialization.cc | eliahburns/yugabyte-db | 570d28dde28d6a0e6a689274b5e319de9a81b707 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/yb/master/sys_catalog_initialization.cc | eliahburns/yugabyte-db | 570d28dde28d6a0e6a689274b5e319de9a81b707 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | src/yb/master/sys_catalog_initialization.cc | eliahburns/yugabyte-db | 570d28dde28d6a0e6a689274b5e319de9a81b707 | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | // Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | 39.030488 | 100 | 0.718403 |
738662c27810c1ae8fd41b3675a52e067e5bb8b6 | 1,575 | cpp | C++ | src/sched/entry/ze/ze_event_wait_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | null | null | null | src/sched/entry/ze/ze_event_wait_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | null | null | null | src/sched/entry/ze/ze_event_wait_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | 1 | 2021-07-15T08:30:06.000Z | 2021-07-15T08:30:06.000Z | /*
Copyright 2016-2020 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 30.882353 | 101 | 0.72254 |
7387f9f8992e8b6c6a6aa4cc11eb4add18c8e617 | 3,159 | cpp | C++ | tests/test_depth_maps_pm.cpp | kpilyugin/PhotogrammetryTasks2021 | 7da69f04909075340a220a7021efeeb42283d9dc | [
"MIT"
] | null | null | null | tests/test_depth_maps_pm.cpp | kpilyugin/PhotogrammetryTasks2021 | 7da69f04909075340a220a7021efeeb42283d9dc | [
"MIT"
] | null | null | null | tests/test_depth_maps_pm.cpp | kpilyugin/PhotogrammetryTasks2021 | 7da69f04909075340a220a7021efeeb42283d9dc | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <opencv2/core.hpp>
#include <opencv2/opencv.hpp>
#include <fstream>
#include <libutils/timer.h>
#include <libutils/rasserts.h>
#include <libutils/string_utils.h>
#include <phg/utils/point_cloud_export.h>
#include <phg/utils/cameras_bundler_import.h>
#include <phg/mvs/depth_maps/pm_... | 41.565789 | 171 | 0.716682 |
7387fb075c05ba940f346b6681a8dda890bd1dc1 | 3,362 | cpp | C++ | external/win32cpp/WCE samples/Scribble/MainFrm.cpp | probonopd/Update-Installer | 0e46db8acb7bb85174d9e63aca0fce9fbb9a57c2 | [
"BSD-2-Clause"
] | 236 | 2015-01-06T15:47:08.000Z | 2022-03-31T05:45:50.000Z | external/win32cpp/WCE samples/Scribble/MainFrm.cpp | probonopd/Update-Installer | 0e46db8acb7bb85174d9e63aca0fce9fbb9a57c2 | [
"BSD-2-Clause"
] | 8 | 2015-09-30T19:00:44.000Z | 2021-09-14T12:42:15.000Z | external/win32cpp/WCE samples/Scribble/MainFrm.cpp | probonopd/Update-Installer | 0e46db8acb7bb85174d9e63aca0fce9fbb9a57c2 | [
"BSD-2-Clause"
] | 60 | 2015-01-02T17:27:27.000Z | 2022-02-16T07:36:38.000Z | #include "MainFrm.h"
#include "resource.h"
CMainFrame::CMainFrame() : m_PenColor(RGB(0,0,0))
{
// Set the Resource IDs for the toolbar buttons
AddToolBarButton( 0 ); // Separator
AddToolBarButton( IDM_RED );
AddToolBarButton( IDM_BLUE );
AddToolBarButton( IDM_GREEN );
AddToolBarButton( IDM_BLACK );
}
void ... | 20.753086 | 83 | 0.682927 |
7388c69d220200c084c0ca5685f72bcf630a3204 | 1,421 | cpp | C++ | src/rpcserver/iothreadpool.cpp | SymbioticLab/Salus | b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f | [
"Apache-2.0"
] | 104 | 2019-02-12T20:41:07.000Z | 2022-03-07T16:58:47.000Z | src/rpcserver/iothreadpool.cpp | SymbioticLab/Salus | b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f | [
"Apache-2.0"
] | 9 | 2019-08-24T03:23:21.000Z | 2021-06-06T17:59:07.000Z | src/rpcserver/iothreadpool.cpp | SymbioticLab/Salus | b2a194e7e4654b51dbd8d8fc1577fb1e9915ca6f | [
"Apache-2.0"
] | 18 | 2019-03-04T07:45:41.000Z | 2021-09-15T22:13:07.000Z | /*
* Copyright 2019 Peifeng Yu <peifeng@umich.edu>
*
* This file is part of Salus
* (see https://github.com/SymbioticLab/Salus).
*
* 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
*
... | 27.862745 | 80 | 0.717804 |
738a89dff4b2053c53125ee0b2421384ab36fd0b | 15,812 | cpp | C++ | tests/src/gui/testqgssqlcomposerdialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/gui/testqgssqlcomposerdialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | tests/src/gui/testqgssqlcomposerdialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
testqgssqlcomposerdialog.cpp
--------------------------------------
Date : April 2016
Copyright : (C) 2016 Even Rouault
Email : even.rouault at spatialys.com
*********************... | 33.714286 | 201 | 0.667405 |
738c7f95937e3f405448f7d9b026ded9d81c9c0f | 25 | cc | C++ | physicalBox.cc | dfyzy/simpleGL | 55790726559b46be596d16c294940ba629bd838c | [
"MIT"
] | 1 | 2016-10-16T21:19:21.000Z | 2016-10-16T21:19:21.000Z | physicalBox.cc | dfyzy/simpleGL | 55790726559b46be596d16c294940ba629bd838c | [
"MIT"
] | null | null | null | physicalBox.cc | dfyzy/simpleGL | 55790726559b46be596d16c294940ba629bd838c | [
"MIT"
] | null | null | null | #include "physicalBox.h"
| 12.5 | 24 | 0.76 |
738cc6d0ea241df86f35c3aa97456b5fdbe148dc | 991 | cpp | C++ | workspace/projects/lab13/sources/unpack.cpp | GolubkovArtem/lab13 | 785d2beab547fc6d6e0d8760293fe65d754f641e | [
"MIT"
] | null | null | null | workspace/projects/lab13/sources/unpack.cpp | GolubkovArtem/lab13 | 785d2beab547fc6d6e0d8760293fe65d754f641e | [
"MIT"
] | null | null | null | workspace/projects/lab13/sources/unpack.cpp | GolubkovArtem/lab13 | 785d2beab547fc6d6e0d8760293fe65d754f641e | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using json = nlohmann::json;
struct Email {
std::string nickname;
std::string server;
};
struct Person {
std::string first_name;
std::string last_name;
Email email;
size_t age;
std::string phone;
};
std::ostream & print (std::ostream... | 22.522727 | 74 | 0.52775 |
738e715543f861d974c6fb8e827a5889e462391c | 7,577 | cpp | C++ | src/modules/events/temperature_calibration/gyro.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | src/modules/events/temperature_calibration/gyro.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | src/modules/events/temperature_calibration/gyro.cpp | mgkim3070/Drone_Firmware | 6843061ce5eb573424424598cf3bac33e037d4d0 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Copyright (c) 2017 PX4 Development Team. 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. ... | 35.078704 | 123 | 0.686287 |
738fbe615d90e30181d897804a5538d5ab970e6d | 2,034 | cpp | C++ | lit/SymbolFile/NativePDB/typedefs.cpp | nathawes/swift-lldb | 3cbf7470e0f9191ec1fc1c69ce8048c1dc64ec77 | [
"Apache-2.0"
] | 2 | 2019-05-24T14:10:24.000Z | 2019-05-24T14:27:38.000Z | lit/SymbolFile/NativePDB/typedefs.cpp | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | null | null | null | lit/SymbolFile/NativePDB/typedefs.cpp | DalavanCloud/lldb | e913eaf2468290fb94c767d474d611b41a84dd69 | [
"Apache-2.0"
] | null | null | null | // clang-format off
// REQUIRES: system-windows
// RUN: %build --compiler=clang-cl --nodefaultlib -o %t.exe -- %s
// RUN: env LLDB_USE_NATIVE_PDB_READER=1 lldb-test symbols -dump-ast %t.exe | FileCheck %s
namespace A {
namespace B {
using NamespaceTypedef = double;
}
template<typename T>
class C {
publi... | 28.25 | 114 | 0.692232 |
7393c79c57121f10e1fa8e964b56e5a068e2892d | 2,926 | cpp | C++ | Src/Common/SceneControl/PointLightSceneNode.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Common/SceneControl/PointLightSceneNode.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | Src/Common/SceneControl/PointLightSceneNode.cpp | StavrosBizelis/NetworkDistributedDeferredShading | 07c03ce9b13bb5adb164cd4321b2bba284e49b4d | [
"MIT"
] | null | null | null | #include "Common/SceneControl/PointLightSceneNode.h"
#include <algorithm>
#include <iostream>
namespace SceneControl
{
PointLightSceneNode::PointLightSceneNode(SceneNode* a_parent, std::shared_ptr<ASphere> a_sphere )
: LightSceneNode(a_parent)
{
m_sphere = a_sphere;
}
PointLightSceneNode::~PointLightScen... | 26.36036 | 150 | 0.678742 |
739491676802e865170067d53256855ed137f7fe | 44,364 | cpp | C++ | cocos2d/cocos/scripting/javascript/bindings/ScriptingCore.cpp | hiepns/OpenBird | 9e0198a1a2295f03fa1e8676e216e22c9c7d380b | [
"MIT"
] | 174 | 2015-01-01T15:12:53.000Z | 2022-03-23T03:06:07.000Z | cocos2d/cocos/scripting/javascript/bindings/ScriptingCore.cpp | shuaibin-lam/OpenBird | 762ab527a4a6bc7ede02ae6eb4f0702d21943f1b | [
"MIT"
] | 2 | 2015-05-20T14:34:48.000Z | 2019-08-14T00:54:40.000Z | cocos2d/cocos/scripting/javascript/bindings/ScriptingCore.cpp | shuaibin-lam/OpenBird | 762ab527a4a6bc7ede02ae6eb4f0702d21943f1b | [
"MIT"
] | 103 | 2015-01-10T13:34:24.000Z | 2022-01-10T00:55:33.000Z | //
// ScriptingCore.cpp
// testmonkey
//
// Created by Rolando Abarca on 3/14/12.
// Copyright (c) 2012 Zynga Inc. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <vector>
#include <map>
#include "ScriptingCore.h"
#include "jsdbga... | 29.225296 | 154 | 0.630128 |
7397f201bc888d8a436aeb6e83868b36eec85a4f | 305 | hpp | C++ | library/ATF/$7A7EAA273238A7AEE4EBCB8D42B7FAA9.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/$7A7EAA273238A7AEE4EBCB8D42B7FAA9.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/$7A7EAA273238A7AEE4EBCB8D42B7FAA9.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
enum $7A7EAA273238A7AEE4EBCB8D42B7FAA9
{
combineslot_base = 0x0,
combineslot_max = 0x5,
};
END_ATF_NAMESPACE
| 21.785714 | 108 | 0.734426 |
73997f23aa41c72edfe6e899e16f9d36e9bd1c4d | 17,757 | cpp | C++ | AnalyzerExamples/CanAnalyzer/CanSimulationDataGenerator.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 15 | 2015-06-23T23:28:24.000Z | 2022-03-12T03:23:31.000Z | AnalyzerExamples/CanAnalyzer/CanSimulationDataGenerator.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 3 | 2015-06-23T23:41:48.000Z | 2022-03-16T22:20:50.000Z | AnalyzerExamples/CanAnalyzer/CanSimulationDataGenerator.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 3 | 2015-06-23T23:28:30.000Z | 2020-07-30T15:46:04.000Z | #include "CanSimulationDataGenerator.h"
#include "CanAnalyzerSettings.h"
CanSimulationDataGenerator::CanSimulationDataGenerator()
{
}
CanSimulationDataGenerator::~CanSimulationDataGenerator()
{
}
void CanSimulationDataGenerator::Initialize( U32 simulation_sample_rate, CanAnalyzerSettings* settings )
{
... | 35.72837 | 175 | 0.707327 |
739ab177355eb1cb10a4e1ed9547d2da179af27c | 2,853 | cpp | C++ | src/Editor/WorldEditor/WCreateTab.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | null | null | null | src/Editor/WorldEditor/WCreateTab.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | null | null | null | src/Editor/WorldEditor/WCreateTab.cpp | henriquegemignani/PrimeWorldEditor | 741185e8d695c5bc86b7efbfadaf4e5dcd67d4d9 | [
"MIT"
] | 1 | 2020-02-21T15:22:56.000Z | 2020-02-21T15:22:56.000Z | #include "WCreateTab.h"
#include "ui_WCreateTab.h"
#include "CTemplateMimeData.h"
#include "CWorldEditor.h"
#include "Editor/Undo/UndoCommands.h"
#include <Core/Resource/Script/NGameList.h>
WCreateTab::WCreateTab(CWorldEditor *pEditor, QWidget *pParent /*= 0*/)
: QWidget(pParent)
, ui(new Ui::WCreateTab)
,... | 30.677419 | 133 | 0.637925 |