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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c023d1c000aca1b6282da629ee8a033e81f5cf63 | 11,481 | cpp | C++ | src/sparkparticles/SparkQuadRenderer.cpp | elix22/GPlayEngine | 5b73da393ddfc30905dcaca678a62d642b7d8912 | [
"Apache-2.0"
] | 175 | 2018-06-26T04:40:00.000Z | 2022-03-31T11:15:57.000Z | src/sparkparticles/SparkQuadRenderer.cpp | elix22/GPlayEngine | 5b73da393ddfc30905dcaca678a62d642b7d8912 | [
"Apache-2.0"
] | 11 | 2018-07-07T14:58:21.000Z | 2020-09-09T11:44:25.000Z | src/sparkparticles/SparkQuadRenderer.cpp | elix22/GPlayEngine | 5b73da393ddfc30905dcaca678a62d642b7d8912 | [
"Apache-2.0"
] | 42 | 2018-07-23T10:05:27.000Z | 2021-12-05T22:26:25.000Z | #ifndef GP_NO_SPARK
#include <spark/SPARK_Core.h>
#include "../sparkparticles/SparkQuadRenderer.h"
#include "../graphics/MeshPart.h"
#include "../graphics/Material.h"
namespace SPK {
namespace GP3D {
SparkQuadRenderBuffer::SparkQuadRenderBuffer(size_t nbParticles, size_t nbVerticesPerParticle, size_t nbIndicesPerPa... | 31.454795 | 136 | 0.625381 | elix22 |
c025f017f6432ba443f846b10d1d6ff8fd90058d | 4,808 | cpp | C++ | REDSI_1160929_1161573/boost_1_67_0/libs/multi_index/test/test_rank_ops.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/multi_index/test/test_rank_ops.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/multi_index/test/test_rank_ops.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | /* Boost.MultiIndex test for rank operations.
*
* Copyright 2003-2017 Joaquin M Lopez Munoz.
* 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)
*
* See http://www.boost.org/libs/multi_index for library ho... | 31.019355 | 79 | 0.678037 | Wultyc |
c026e664cab0985bf31353f1535f996277729da0 | 560 | hpp | C++ | src/ir/ir_member_access.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 4 | 2017-10-31T14:01:58.000Z | 2019-07-16T04:53:32.000Z | src/ir/ir_member_access.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | null | null | null | src/ir/ir_member_access.hpp | traplol/malang | 3c02f4f483b7580a557841c31a65bf190fd1228f | [
"MIT"
] | 2 | 2018-01-23T12:59:07.000Z | 2019-07-16T04:53:39.000Z | #ifndef MALANG_IR_IR_MEMBER_ACCESS_HPP
#define MALANG_IR_IR_MEMBER_ACCESS_HPP
#include "ir_values.hpp"
struct IR_Member_Access : IR_LValue
{
virtual ~IR_Member_Access() = default;
IR_Member_Access(const Source_Location &src_loc, IR_Value *thing, const std::string &member_name)
: IR_LValue(src_loc)
... | 23.333333 | 101 | 0.719643 | traplol |
c02a791c953e32812404db59beb852f27b72648c | 5,962 | cpp | C++ | jni/src/JAM/Text.cpp | JSlowgrove/MGP-Assignment-2-AStar-Demo | 83e66b8f784b49e524d2145bb052c66cdc83c1a0 | [
"MIT"
] | null | null | null | jni/src/JAM/Text.cpp | JSlowgrove/MGP-Assignment-2-AStar-Demo | 83e66b8f784b49e524d2145bb052c66cdc83c1a0 | [
"MIT"
] | null | null | null | jni/src/JAM/Text.cpp | JSlowgrove/MGP-Assignment-2-AStar-Demo | 83e66b8f784b49e524d2145bb052c66cdc83c1a0 | [
"MIT"
] | null | null | null | #include "Text.h"
/**************************************************************************************************************/
/*Constructs the texture with default font size and colour (10 and black)*/
JAM_Text::JAM_Text(std::string text, std::string fontLocation, SDL_Renderer* renderer)
{
/*initialise text*/
... | 28.255924 | 121 | 0.552667 | JSlowgrove |
c02a9d0b06b03f0a55ffa2f292f21fe6ac497f9e | 1,134 | cpp | C++ | Binary-String-MEX.cpp | Sayan3990/Codechef | e693927efb4ce12c3e12875aa7082c2001d09b7c | [
"MIT"
] | 1 | 2021-07-11T10:34:25.000Z | 2021-07-11T10:34:25.000Z | Binary-String-MEX.cpp | Sayan3990/Codechef | e693927efb4ce12c3e12875aa7082c2001d09b7c | [
"MIT"
] | null | null | null | Binary-String-MEX.cpp | Sayan3990/Codechef | e693927efb4ce12c3e12875aa7082c2001d09b7c | [
"MIT"
] | null | null | null | // https://www.codechef.com/APRIL21B/problems/MEXSTR
#include <iostream>
#include <cstring>
#include <cmath>
#include <bitset>
#define lli long long int
#define SIZE 1000000
using namespace std;
int match(bitset<SIZE> &S, bitset<SIZE> &sub, lli num, lli num2) {
lli i = num, j = num2;
while(1) ... | 18.9 | 67 | 0.444444 | Sayan3990 |
c02db33cd76a23bd303fba601861377ad2564e87 | 23,789 | cpp | C++ | imap/src/ImapClient.cpp | webOS-ports/mojomail | 49358ac2878e010f5c6e3bd962f047c476c11fc3 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:20:27.000Z | 2021-01-02T08:14:23.000Z | mojomail/imap/src/ImapClient.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 3 | 2019-05-11T19:17:56.000Z | 2021-11-24T16:04:36.000Z | mojomail/imap/src/ImapClient.cpp | openwebos/app-services | 021d509d609fce0cb41a0e562650bdd1f3bf4e32 | [
"Apache-2.0"
] | 6 | 2015-01-09T02:21:13.000Z | 2021-01-02T02:37:10.000Z | // @@@LICENSE
//
// Copyright (c) 2010-2013 LG Electronics, 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 require... | 27.469977 | 163 | 0.754508 | webOS-ports |
c02dbf5c08b8aa35ac4946a04161a70dbbe69b18 | 3,687 | cc | C++ | mace/ops/slice_benchmark.cc | huuuuusy/MACE-Learn | 92aa30137bdcd238f7db3ad1612a4a6a44553d23 | [
"Apache-2.0"
] | 7 | 2018-08-06T01:56:39.000Z | 2021-08-24T19:45:55.000Z | mace/ops/slice_benchmark.cc | huuuuusy/MACE-Learn | 92aa30137bdcd238f7db3ad1612a4a6a44553d23 | [
"Apache-2.0"
] | null | null | null | mace/ops/slice_benchmark.cc | huuuuusy/MACE-Learn | 92aa30137bdcd238f7db3ad1612a4a6a44553d23 | [
"Apache-2.0"
] | 1 | 2019-06-11T02:12:09.000Z | 2019-06-11T02:12:09.000Z | // Copyright 2018 Xiaomi, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | 36.147059 | 78 | 0.553567 | huuuuusy |
c03160e21ef08c9d499bda6616c6af83a39fef26 | 2,250 | cpp | C++ | Projects/Skylicht/Components/Source/ParticleSystem/Particles/CInterpolator.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 310 | 2019-11-25T04:14:11.000Z | 2022-03-31T23:39:19.000Z | Projects/Skylicht/Components/Source/ParticleSystem/Particles/CInterpolator.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 79 | 2019-11-17T07:51:02.000Z | 2022-03-22T08:49:41.000Z | Projects/Skylicht/Components/Source/ParticleSystem/Particles/CInterpolator.cpp | tsukoyumi/skylicht-engine | 3b88d9718e87e552152633ef60e3f889869b71de | [
"MIT"
] | 24 | 2020-05-10T09:37:55.000Z | 2022-03-05T13:19:31.000Z | /*
!@
MIT License
Copyright (c) 2020 Skylicht Technology CO., LTD
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... | 29.220779 | 141 | 0.718222 | tsukoyumi |
c032a1ebadc88ead5a083fd23802c4ecdcc0c334 | 1,947 | cpp | C++ | tests/SqlEngineTestExpression.cpp | cybergarage/usql | b3d9f4356a141cd52cff2b78a0f65bfbfb8f8730 | [
"BSD-3-Clause"
] | 49 | 2015-02-26T07:48:41.000Z | 2022-03-31T19:18:04.000Z | tests/SqlEngineTestExpression.cpp | cybergarage/uSQL4CC | b3d9f4356a141cd52cff2b78a0f65bfbfb8f8730 | [
"BSD-3-Clause"
] | 4 | 2015-01-26T11:58:57.000Z | 2015-01-26T12:10:25.000Z | tests/SqlEngineTestExpression.cpp | cybergarage/uSQL4CC | b3d9f4356a141cd52cff2b78a0f65bfbfb8f8730 | [
"BSD-3-Clause"
] | 14 | 2015-04-08T08:30:31.000Z | 2022-03-08T03:20:54.000Z | /******************************************************************
*
* uSQL for C++
*
* SQLEngineTestGQLParser.cpp
*
* Copyright (C) Satoshi Konno 2011
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <string>
#include <vect... | 35.4 | 106 | 0.656908 | cybergarage |
c03301d9184673383e859046f98c628428f78c93 | 4,210 | cpp | C++ | common/my_capture.cpp | ThreeD-Tracker-FAB/3DTrackerFAB-main | e91660f9391feac02f5657a792771230450cf4f8 | [
"MIT"
] | 2 | 2019-01-23T09:15:34.000Z | 2019-04-18T08:45:33.000Z | common/my_capture.cpp | ThreeD-Tracker-FAB/3DTrackerFAB-main | e91660f9391feac02f5657a792771230450cf4f8 | [
"MIT"
] | 1 | 2018-11-05T13:10:55.000Z | 2019-11-18T13:34:50.000Z | common/my_capture.cpp | ThreeD-Tracker-FAB/3DTrackerFAB-main | e91660f9391feac02f5657a792771230450cf4f8 | [
"MIT"
] | 2 | 2018-03-11T22:16:02.000Z | 2019-09-05T15:36:14.000Z | #include "my_capture.h"
#include "my_capture_d400.h"
#include "my_capture_r200.h"
#include "my_capture_kinect1.h"
#include <iostream>
#include <pcl/filters/radius_outlier_removal.h>
#include <pcl/filters/statistical_outlier_removal.h>
#include <pcl/features/normal_3d_omp.h>
#include <pcl/filters/crop_box.h>
#include ... | 28.835616 | 201 | 0.723515 | ThreeD-Tracker-FAB |
c0370c9a8d192cdd9dbb9879b02d319da70d4525 | 3,673 | cpp | C++ | inference-engine/tests/functional/inference_engine/extension_lib/src/extension.cpp | fujunwei/dldt | 09497b7724de4be92629f7799b8538b483d809a2 | [
"Apache-2.0"
] | null | null | null | inference-engine/tests/functional/inference_engine/extension_lib/src/extension.cpp | fujunwei/dldt | 09497b7724de4be92629f7799b8538b483d809a2 | [
"Apache-2.0"
] | null | null | null | inference-engine/tests/functional/inference_engine/extension_lib/src/extension.cpp | fujunwei/dldt | 09497b7724de4be92629f7799b8538b483d809a2 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <extension.hpp>
#include <ngraph/opsets/opset.hpp>
#include <ngraph/factory.hpp>
#include <unordered_map>
#include <string>
#include <memory>
#include <vector>
#include <map>
IE_SUPPRESS_DEPRECATED_START
constexpr ngraph... | 34.650943 | 143 | 0.646066 | fujunwei |
c03d0241e201ed10088367487461c3ee237c9b49 | 16,857 | cpp | C++ | test/clang-tidy/modernize-use-emplace.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 171 | 2018-09-17T13:15:12.000Z | 2022-03-18T03:47:04.000Z | test/clang-tidy/modernize-use-emplace.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 7 | 2018-10-05T04:54:18.000Z | 2020-10-02T07:58:13.000Z | test/clang-tidy/modernize-use-emplace.cpp | Szelethus/clang-tools-extra | 4bff9e7bc96ac495d7b6b2e8cc6c6f629e824022 | [
"Apache-2.0"
] | 35 | 2018-09-18T07:46:53.000Z | 2022-03-27T07:59:48.000Z | // RUN: %check_clang_tidy %s modernize-use-emplace %t -- \
// RUN: -config="{CheckOptions: \
// RUN: [{key: modernize-use-emplace.ContainersWithPushBack, \
// RUN: value: '::std::vector; ::std::list; ::std::deque; llvm::LikeASmallVector'}, \
// RUN: {key: modernize-use-emplace.T... | 27.725329 | 107 | 0.644599 | Szelethus |
c03f765978b0e3bde7d4ec612271646aa28e3f9f | 11,065 | hpp | C++ | RetroSnake/RetroSnake/GameMap.hpp | VoidYTMain/RetroSnake | f3080ad424dddbda5440d5205597081cf5b9e93b | [
"MIT"
] | 2 | 2019-01-18T07:37:54.000Z | 2019-01-19T10:57:16.000Z | RetroSnake/RetroSnake/GameMap.hpp | Vyterm/RetroSnake | f3080ad424dddbda5440d5205597081cf5b9e93b | [
"MIT"
] | null | null | null | RetroSnake/RetroSnake/GameMap.hpp | Vyterm/RetroSnake | f3080ad424dddbda5440d5205597081cf5b9e93b | [
"MIT"
] | null | null | null | #ifndef GAME_MAP_HPP
#define GAME_MAP_HPP
#include "GameModel.hpp"
#include "GameMapItem.hpp"
#include "winapi.hpp"
#include <iostream>
#include <string>
#include <memory>
#include <vector>
#include <ctime>
using std::cout;
using std::cin;
using std::endl;
using std::string;
template <int Width, int Height>
class ... | 30.65097 | 179 | 0.690285 | VoidYTMain |
c040500252c8c0cd8d451114789a96cfe33e099a | 4,119 | cc | C++ | cc/subtle/ecdsa_verify_boringssl.cc | hazaelsan/tink | 9be3f690611bfab85284624de46ad6f36119d8bb | [
"Apache-2.0"
] | 1 | 2021-07-06T04:11:08.000Z | 2021-07-06T04:11:08.000Z | cc/subtle/ecdsa_verify_boringssl.cc | bhaskatripathi/tink | 841802758ae6fadb6bcb60e9053fb4c169549f29 | [
"Apache-2.0"
] | 1 | 2020-08-18T16:42:11.000Z | 2020-08-25T16:13:11.000Z | cc/subtle/ecdsa_verify_boringssl.cc | bhaskatripathi/tink | 841802758ae6fadb6bcb60e9053fb4c169549f29 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 35.817391 | 80 | 0.687303 | hazaelsan |
c042afa1e542871f24e95bd6060142b41f27d10b | 11,828 | cpp | C++ | third_party/WebKit/Source/core/page/PageWidgetDelegate.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/page/PageWidgetDelegate.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/page/PageWidgetDelegate.cpp | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2012 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... | 41.943262 | 80 | 0.70908 | metux |
c0447f278c0b8b461185af8112fcf3fd75efd85f | 50,342 | cpp | C++ | MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 70 | 2019-01-15T03:03:55.000Z | 2022-03-28T02:16:13.000Z | MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 519 | 2020-09-15T07:40:51.000Z | 2022-03-31T20:51:15.000Z | MultiSource/Benchmarks/DOE-ProxyApps-C++/CLAMR/MallocPlus.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 117 | 2020-06-24T13:11:04.000Z | 2022-03-23T15:44:23.000Z | /*
* Copyright (c) 2011-2014, Los Alamos National Security, LLC.
* All rights Reserved.
*
* Copyright 2011-2012. Los Alamos National Security, LLC. This software was produced
* under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
* Laboratory (LANL), which is operated by Los Alamos Nati... | 40.995114 | 248 | 0.696913 | Nuullll |
c046604b231ec9f1f65477896577f7f6108d7f37 | 2,680 | cpp | C++ | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm_STL.cpp | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm_STL.cpp | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | Algo_Ds_Notes-master/Algo_Ds_Notes-master/Dijkstra_Algorithm/Dijkstra_Algorithm_STL.cpp | rajatenzyme/Coding-Journey- | 65a0570153b7e3393d78352e78fb2111223049f3 | [
"MIT"
] | null | null | null | /* Amit Bansal - amitbansal7 */
#include <bits/stdc++.h>
using namespace std;
//Dijkstra's Algorithm for single source shortest paths using STL
//adjacency list implementation.
void printpath(int parent[],int v)
{
//recursive function to print path.
if(parent[v] == v)
return;
printpath(parent,parent[v]);
print... | 20.775194 | 86 | 0.516791 | rajatenzyme |
c047457e5014c0962a53d506e38c46529f6f7530 | 14,372 | cpp | C++ | arangod/Aql/WindowExecutor.cpp | lo-ca/arangodb | 92a2cdda102279fc18ba238efafde118355cb000 | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | arangod/Aql/WindowExecutor.cpp | solisoft/arangodb | ebb11f901fdcac72ca298f7f329427c7ec51b157 | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | arangod/Aql/WindowExecutor.cpp | solisoft/arangodb | ebb11f901fdcac72ca298f7f329427c7ec51b157 | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 32.812785 | 112 | 0.671236 | lo-ca |
c047a2b1488bc328fccce013da5856484156ac48 | 20,350 | cpp | C++ | src/Sniffles.cpp | Nextomics/Sniffles | 92e5f2e994b3e10cc3d1f8c96d12d439613c08b5 | [
"MIT"
] | 1 | 2021-05-16T03:31:49.000Z | 2021-05-16T03:31:49.000Z | src/Sniffles.cpp | Nextomics/Sniffles | 92e5f2e994b3e10cc3d1f8c96d12d439613c08b5 | [
"MIT"
] | null | null | null | src/Sniffles.cpp | Nextomics/Sniffles | 92e5f2e994b3e10cc3d1f8c96d12d439613c08b5 | [
"MIT"
] | null | null | null | //============================================================================
// Name : Sniffles.cpp
// Author : Fritz Sedlazeck
// Version :
// Copyright : MIT License
// Description : Detection of SVs for long read data.
//============================================================================... | 39.746094 | 274 | 0.672432 | Nextomics |
c0486d2b611cb75e22dde52f08e3e96bcac2726e | 4,395 | cpp | C++ | coap/client/CoapRequest.cpp | HaknCo/sming-coap | 8a20f5708b53df3405805aecaea82c8a683859c2 | [
"MIT"
] | 10 | 2015-12-15T18:32:04.000Z | 2020-10-27T15:09:05.000Z | coap/client/CoapRequest.cpp | HaknCo/sming-coap | 8a20f5708b53df3405805aecaea82c8a683859c2 | [
"MIT"
] | 2 | 2016-07-04T20:46:51.000Z | 2021-05-14T19:12:35.000Z | coap/client/CoapRequest.cpp | HaknCo/sming-coap | 8a20f5708b53df3405805aecaea82c8a683859c2 | [
"MIT"
] | 1 | 2015-12-17T23:50:47.000Z | 2015-12-17T23:50:47.000Z | /*
Copyright (c) 2015 Hakan Coskun, http://www.blueonshop.de
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of c... | 31.847826 | 116 | 0.736064 | HaknCo |
c04998e618c286adb95512c2d3dd6ad2ba3b744b | 349 | cpp | C++ | Debugger/Client/src/string_utils.cpp | y11en/BranchMonitoringProject | 5d3ca533338da919a1757562f3810d49296ebf48 | [
"MIT"
] | 122 | 2017-03-08T00:45:03.000Z | 2022-03-01T03:05:21.000Z | Debugger/Client/src/string_utils.cpp | y11en/BranchMonitoringProject | 5d3ca533338da919a1757562f3810d49296ebf48 | [
"MIT"
] | 3 | 2017-03-08T01:16:54.000Z | 2017-03-22T22:59:26.000Z | Debugger/Client/src/string_utils.cpp | y11en/BranchMonitoringProject | 5d3ca533338da919a1757562f3810d49296ebf48 | [
"MIT"
] | 42 | 2017-03-08T21:28:48.000Z | 2022-02-20T15:24:46.000Z | /* Branch Monitoring Project
* Debugger Client
* Marcus Botacin
* UNICAMP - 2017
*/
/* string utils */
#include "string_utils.h"
/* return string size including \0 */
int string_size(char *str)
{
return strlen(str)+1;
}
/* build string from option char */
void str_from_char(char c,char *str)
{
... | 16.619048 | 38 | 0.627507 | y11en |
c04e323004a71ae3fccbfcf34d601152ff2c0a9e | 26,337 | cpp | C++ | arduino/portable/sketchbook/libraries/IRremoteESP8266/src/ir_Whirlpool.cpp | devshop2019/mixlyTest | bb92771aca2d5d801510658a70a13f4b548a43aa | [
"Apache-2.0"
] | null | null | null | arduino/portable/sketchbook/libraries/IRremoteESP8266/src/ir_Whirlpool.cpp | devshop2019/mixlyTest | bb92771aca2d5d801510658a70a13f4b548a43aa | [
"Apache-2.0"
] | null | null | null | arduino/portable/sketchbook/libraries/IRremoteESP8266/src/ir_Whirlpool.cpp | devshop2019/mixlyTest | bb92771aca2d5d801510658a70a13f4b548a43aa | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 David Conran
/// @file
/// @brief Support for Whirlpool protocols.
/// Decoding help from: \@redmusicxd, \@josh929800, \@raducostea
/// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/509
/// @note Smart, iFeel, AroundU, PowerSave, & Silent modes are unsupported.
/// Advanced 6thSense, ... | 38.004329 | 80 | 0.704256 | devshop2019 |
c05063a28ed731ea3ab1d031249896ed5df577ce | 1,768 | cpp | C++ | src/nh99/mod_mc1.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 79 | 2015-01-16T14:14:22.000Z | 2022-01-24T06:28:15.000Z | src/nh99/mod_mc1.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 172 | 2015-01-21T01:53:57.000Z | 2022-03-29T19:57:31.000Z | src/nh99/mod_mc1.cpp | johnrsibert/admb | 063ec863a9f23f6c6afbc7d481af0476b8d63645 | [
"BSD-3-Clause"
] | 22 | 2015-01-15T18:11:54.000Z | 2022-01-11T21:47:51.000Z | /**
* Author: David Fournier
* Copyright (c) 2008-2012 Regents of the University of California
*/
#include <admodel.h>
void initial_params::add_random_vector(const dvector& x)
{
int ii=1;
for (int i=0;i<num_initial_params;i++)
{
if (withinbound(0,(varsptr[i])->phase_start,current_phase))
{
(vars... | 19.644444 | 78 | 0.593891 | johnrsibert |
c052b627264dd19c509d96bb50f5176e6f6bd125 | 80,349 | cpp | C++ | point_light/app.cpp | colintan95/vk_projects | 0b048455f240c8105848f210be1610980c3c40ac | [
"MIT"
] | null | null | null | point_light/app.cpp | colintan95/vk_projects | 0b048455f240c8105848f210be1610980c3c40ac | [
"MIT"
] | null | null | null | point_light/app.cpp | colintan95/vk_projects | 0b048455f240c8105848f210be1610980c3c40ac | [
"MIT"
] | null | null | null | #include "point_light/app.h"
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <algorithm>
#include <iostream>
#include <optional>
#include <set>
#include <string>
#include <string_view>
#include <vector>
#include "utils/camera.h"
#include "utils/model.h"
#in... | 37.66948 | 80 | 0.752467 | colintan95 |
c0580e649a3c91c671cd88361cce150e6045518c | 253 | cpp | C++ | Cplus/MinimumFlipstoMakeaORbEqualtoc.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/MinimumFlipstoMakeaORbEqualtoc.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/MinimumFlipstoMakeaORbEqualtoc.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null |
class Solution
{
public:
int minFlips(int a, int b, int c)
{
return bitCount(a & ~c) + bitCount(b & ~c) + bitCount((c ^ (a & c)) & (c ^ (b & c)));
}
int bitCount(int n)
{
int res = 0;
for (; n != 0; n &= n - 1)
++res;
return res;
}
}; | 14.882353 | 87 | 0.490119 | JumHorn |
c0589b5655f97617e98ab9f6e5b61ccdf146bfc5 | 24,788 | cpp | C++ | production_apps/ESPRESO/src/solver/generic/FETISolver.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T13:10:11.000Z | 2021-03-15T20:26:35.000Z | production_apps/ESPRESO/src/solver/generic/FETISolver.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | null | null | null | production_apps/ESPRESO/src/solver/generic/FETISolver.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 1 | 2018-09-30T19:04:38.000Z | 2018-09-30T19:04:38.000Z | /*
* LinearSolver.cpp
*
* Created on: Sep 24, 2015
* Author: lriha
*/
//#include <Driver/DissectionSolver.hpp>
#include "../../basis/utilities/utils.h"
#include "FETISolver.h"
//#include <Eigen/Dense>
//using Eigen::MatrixXd;
#ifdef READEX_LEVEL_1
#include "readex.h"
#include "readex_regions.h"
#endif
usi... | 30.303178 | 164 | 0.67803 | readex-eu |
c058a1bd0854d48a90a2080ba554bdbce6f536e8 | 7,605 | cpp | C++ | IrrlichtOpenCVGlue/ConcurrentBlobDetection.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | null | null | null | IrrlichtOpenCVGlue/ConcurrentBlobDetection.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | 1 | 2020-07-31T13:20:54.000Z | 2020-08-06T15:45:39.000Z | IrrlichtOpenCVGlue/ConcurrentBlobDetection.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | null | null | null | #include "ConcurrentBlobDetection.h"
#include "IrrCVImageConversion.h"
#include <timing.h>
#include <Threading.h>
#include <mathUtils.h>
#include <Matrix.h>
#include <opencv2/features2d.hpp>
using namespace cv;
using namespace irr;
using namespace core;
using namespace video;
class ConcurrentBlobDetectionPrivate{
... | 31.296296 | 302 | 0.767258 | wolfgang1991 |
c05c39e464ebdda3296cd9a293fcad4675004d27 | 3,977 | hpp | C++ | water/threads/posix/bits.hpp | watercpp/water | 7a9a292a2513529cf5dabac1bc7a755055dac9b5 | [
"MIT"
] | 5 | 2017-04-18T18:18:50.000Z | 2018-08-03T09:13:26.000Z | water/threads/posix/bits.hpp | watercpp/water | 7a9a292a2513529cf5dabac1bc7a755055dac9b5 | [
"MIT"
] | null | null | null | water/threads/posix/bits.hpp | watercpp/water | 7a9a292a2513529cf5dabac1bc7a755055dac9b5 | [
"MIT"
] | null | null | null | // Copyright 2017 Johan Paulsson
// This file is part of the Water C++ Library. It is licensed under the MIT License.
// See the license.txt file in this distribution or https://watercpp.com/license.txt
//\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_/\_
#ifndef WATER_THREADS_POSIX_BIT... | 30.829457 | 139 | 0.742268 | watercpp |
c05de1ec4158415f333c96db4e70cff1ce3abcf5 | 2,327 | cpp | C++ | src/lexer.cpp | ollelogdahl/Inel | e731f57062340f3ab8648df27259ff50c41e8d97 | [
"MIT"
] | null | null | null | src/lexer.cpp | ollelogdahl/Inel | e731f57062340f3ab8648df27259ff50c41e8d97 | [
"MIT"
] | null | null | null | src/lexer.cpp | ollelogdahl/Inel | e731f57062340f3ab8648df27259ff50c41e8d97 | [
"MIT"
] | null | null | null | #include "lexer.h"
#include <iostream>
#include <fstream>
#include <map>
#include <regex>
const std::vector<std::pair<std::string, TokenType>> tokenRules {
// Keywords
{R"(if)", t_if},
{R"(while)", t_while},
{R"(return)", t_re... | 28.036145 | 80 | 0.429738 | ollelogdahl |
c05ed29c262947d2d5ccf577e8cde98179d5d58b | 2,057 | cpp | C++ | pronto/graphics/pc/d3d12_command_list.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/d3d12_command_list.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/graphics/pc/d3d12_command_list.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | #include "d3d12_command_list.h"
#include "d3d12_dynamic_descriptor_heap.h"
#include "d3d12_upload_buffer.h"
#include "d3d12_constant_buffer_heap.h"
#include <assert.h>
namespace pronto
{
namespace graphics
{
//---------------------------------------------------------------------------------------------
Co... | 24.488095 | 108 | 0.64317 | MgBag |
c060b1a34937bb61f76cb4b15862cdd7a0ba32d4 | 3,494 | cpp | C++ | src/tests/kits/support/bstring/StringCompareTest.cpp | deep-1/haiku | b273e9733d25babe5e6702dc1e24f3dff1ffd6dc | [
"MIT"
] | 4 | 2017-06-17T22:03:56.000Z | 2019-01-25T10:51:55.000Z | src/tests/kits/support/bstring/StringCompareTest.cpp | jessicah/haiku | c337460525c39e870d31221d205a299d9cd79c6a | [
"MIT"
] | null | null | null | src/tests/kits/support/bstring/StringCompareTest.cpp | jessicah/haiku | c337460525c39e870d31221d205a299d9cd79c6a | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | #include "StringCompareTest.h"
#include "cppunit/TestCaller.h"
#include <String.h>
StringCompareTest::StringCompareTest(std::string name) :
BTestCase(name)
{
}
StringCompareTest::~StringCompareTest()
{
}
void
StringCompareTest::PerformTest(void)
{
BString *string1, *string2;
//operator<(const BString &) c... | 22.541935 | 95 | 0.693761 | deep-1 |
c063b49721c72ffc7ed066ca868a5ffa9537fc98 | 3,722 | cpp | C++ | src/database/sqlite3/tt_sqlite3_db_machine.cpp | warwick-hpsc/treetimer | 3923d165c5061db509af777a6c1884f3845316b5 | [
"MIT"
] | null | null | null | src/database/sqlite3/tt_sqlite3_db_machine.cpp | warwick-hpsc/treetimer | 3923d165c5061db509af777a6c1884f3845316b5 | [
"MIT"
] | null | null | null | src/database/sqlite3/tt_sqlite3_db_machine.cpp | warwick-hpsc/treetimer | 3923d165c5061db509af777a6c1884f3845316b5 | [
"MIT"
] | null | null | null | /*
* @file
* @author James Davis
* @version 0.1
*
* @section LICENSE
* Based on PMTM/Ichniea - ToDo: Check License for these
*
* @section DESCRIPTION
*
*/
#include "tt_sqlite3_db_machine.h"
#include <iostream>
namespace treetimer
{
namespace database
{
namespace tt_sqlite3
{
namespace drivers
{
... | 30.760331 | 113 | 0.622515 | warwick-hpsc |
c063e89d5aaa02126820d42a1b320a76ff0b9729 | 1,101 | cpp | C++ | src_smartcontract_db/schema_table/record/table_record_local/LocalCdbOid.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract_db/schema_table/record/table_record_local/LocalCdbOid.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract_db/schema_table/record/table_record_local/LocalCdbOid.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* LocalCdbOid.cpp
*
* Created on: 2020/09/25
* Author: iizuka
*/
#include "schema_table/record/table_record_local/LocalCdbOid.h"
#include "schema_table/record/table_record_value/VmInstanceValueConverter.h"
namespace codablecash {
LocalCdbOid::LocalCdbOid(const LocalCdbOid& inst) : CdbOid(inst) {
}
Lo... | 19.315789 | 76 | 0.73842 | alinous-core |
c0653089c46f02d59bb5f645cd9d0818fe0cae63 | 562 | cpp | C++ | src/model/rayTracer/rayTracer.cpp | dalewzm/IceRayTracer | ba26e44a88fb6ff37106707ccfd3e73e123d0d60 | [
"Apache-1.1"
] | null | null | null | src/model/rayTracer/rayTracer.cpp | dalewzm/IceRayTracer | ba26e44a88fb6ff37106707ccfd3e73e123d0d60 | [
"Apache-1.1"
] | null | null | null | src/model/rayTracer/rayTracer.cpp | dalewzm/IceRayTracer | ba26e44a88fb6ff37106707ccfd3e73e123d0d60 | [
"Apache-1.1"
] | null | null | null | #include "rayTracer.h"
#include <cstdio>
RayTracer::RayTracer()
{
scenePtr = new Scene();
parserPtr = NULL;
}
RayTracer::~RayTracer()
{
if(scenePtr)
delete scenePtr;
if(parserPtr)
delete parserPtr;
}
void RayTracer::run()
{
buildScene();
}
bool RayTracer::buildScene()
{
fprintf(stderr,"thre... | 14.789474 | 63 | 0.569395 | dalewzm |
c06a927c48b7949e9401d48a430b76e34ab65573 | 66 | cpp | C++ | Chapter12/chapter12_01_1/main.cpp | PacktPublishing/Modern-C-Cookbook-Second-Edition | 2b6aceba0f6dbd0607286315cb8c282500e68046 | [
"MIT"
] | 77 | 2020-09-05T09:21:28.000Z | 2022-03-20T04:18:31.000Z | Chapter12/chapter12_01_1/main.cpp | Fenix0817/Modern-CPP-Programming-Cookbook-Second-Edition | 5d1abb19bfcab71396fd2eccbc6d3cfb65c775e2 | [
"MIT"
] | 2 | 2020-09-21T13:42:35.000Z | 2020-12-07T08:06:39.000Z | Chapter12/chapter12_01_1/main.cpp | Fenix0817/Modern-CPP-Programming-Cookbook-Second-Edition | 5d1abb19bfcab71396fd2eccbc6d3cfb65c775e2 | [
"MIT"
] | 32 | 2020-10-24T11:02:16.000Z | 2022-03-28T21:39:19.000Z | import std.core;
int main()
{
std::cout << "Hello, World!\n";
} | 11 | 33 | 0.575758 | PacktPublishing |
c06b609ecc365f76e31d514dd073c826d0c454e3 | 3,742 | cpp | C++ | src/libmotifmm/IconButton.cpp | Arquivotheca/OpenCDE | 4bb0f65dab345790bcf8d8422a05dda495990cd1 | [
"BSD-2-Clause-FreeBSD"
] | 11 | 2015-05-30T14:58:42.000Z | 2021-10-12T04:50:00.000Z | src/libmotifmm/IconButton.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2021-11-30T08:11:39.000Z | 2021-11-30T08:11:39.000Z | src/libmotifmm/IconButton.cpp | idunham/opencde | 376f7ba54f8b384a5a0b2104ff2b26f9c8ab3582 | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-05-30T14:58:44.000Z | 2017-09-28T21:58:50.000Z | #include <motifmm.h>
namespace Motif
{
void IconButton::armCallback(Widget widget, XtPointer client_data, XtPointer call_data)
{
IconButton* button = (IconButton*)client_data;
if(button->armFunction.get() != NULL)
{
button->armFunction->execute(button);
}
}
void IconButton::activateCallback(Widget widge... | 27.718519 | 131 | 0.733832 | Arquivotheca |
c071384f0be756381592e46792d4ec0c9953dc30 | 15,404 | cpp | C++ | src/hssh/global_topological/mapping/lev_mar_optimizer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 3 | 2020-03-05T23:56:14.000Z | 2021-02-17T19:06:50.000Z | src/hssh/global_topological/mapping/lev_mar_optimizer.cpp | anuranbaka/Vulcan | 56339f77f6cf64b5fda876445a33e72cd15ce028 | [
"MIT"
] | 1 | 2021-03-07T01:23:47.000Z | 2021-03-07T01:23:47.000Z | src/hssh/global_topological/mapping/lev_mar_optimizer.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... | 31.826446 | 120 | 0.566801 | anuranbaka |
c0719985811e50f80299395fac2dcb5e6a782f03 | 2,770 | cxx | C++ | osprey/be/cg/orc_ict/val_prof.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/orc_ict/val_prof.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/orc_ict/val_prof.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2001, Institute of Computing Technology, Chinese Academy of Sciences
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 c... | 34.197531 | 99 | 0.788087 | sharugupta |
c07495bd4f0285140856dd6467c7a56d0d282433 | 924 | cc | C++ | platforms/msvc2017/pytest/simple_test.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 4 | 2021-03-15T10:02:13.000Z | 2022-01-16T11:06:28.000Z | platforms/msvc2008e/pytest/simple_test.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | 1 | 2022-01-27T15:35:03.000Z | 2022-01-27T15:35:03.000Z | platforms/msvc2017/pytest/simple_test.cc | pygamma-mrs/gamma | c83a7c242c481d2ecdfd49ba394fea3d5816bccb | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
// **** READ THIS ***
// You need to manually INSTALL pygamma in a suitable location
// (e.g. C:\Python25\Lib\site-packages) on your machine
// before running this project.
// NOTE: simple_test.cc is just a place holder, and a file to "touch"
// to get the project to rebuild.
// The real work f... | 31.862069 | 74 | 0.700216 | pygamma-mrs |
c0770c50d9019f0f7f3c610b762f0dc405580fb9 | 17,652 | cpp | C++ | Test/DatabaseManagerTest.cpp | fakecoinbase/elastosslashElastos.ELA.SPV.Cpp | b18eaeaa96e6c9049e3527c6e8b22a571aba35f6 | [
"MIT"
] | 11 | 2018-08-01T02:01:34.000Z | 2019-09-15T23:31:40.000Z | Test/DatabaseManagerTest.cpp | chenyukaola/Elastos.ELA.SPV.Cpp | 57b5264d4eb259439dd85aefc0455389551ee3cf | [
"MIT"
] | 51 | 2018-07-16T09:41:14.000Z | 2020-01-08T03:40:34.000Z | Test/DatabaseManagerTest.cpp | yiyaowen/ela-spvwallet-desktop | 475095ee3c1f49bc7e23c5c341e959568d4f72b9 | [
"MIT"
] | 26 | 2018-07-12T02:34:46.000Z | 2022-02-07T07:08:54.000Z | // Copyright (c) 2012-2018 The Elastos Open Source Project
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include "TestHelper.h"
#include <Database/TransactionNormal.h>
#include... | 30.592721 | 88 | 0.683435 | fakecoinbase |
c07a7827b15b0a4d801a046eadad5a7c65d28883 | 13,523 | cc | C++ | components/system_media_controls/linux/system_media_controls_linux.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/system_media_controls/linux/system_media_controls_linux.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/system_media_controls/linux/system_media_controls_linux.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2019 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/system_media_controls/linux/system_media_controls_linux.h"
#include <memory>
#include <utility>
#include <vector>
#include "base/bi... | 37.356354 | 80 | 0.721511 | sarang-apps |
c07a909bb7a80af4b7f9b04136aaaff16c2132a1 | 3,404 | hpp | C++ | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 90 | 2019-05-19T03:48:23.000Z | 2022-02-02T15:20:49.000Z | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 11 | 2019-05-22T07:45:46.000Z | 2021-05-20T01:48:26.000Z | pose_refinement/SA-LMPE/ba/openMVG/sfm/pipelines/global/GlobalSfM_translation_averaging.hpp | Aurelio93/satellite-pose-estimation | 46957a9bc9f204d468f8fe3150593b3db0f0726a | [
"MIT"
] | 18 | 2019-05-19T03:48:32.000Z | 2021-05-29T18:19:16.000Z | // This file is part of OpenMVG, an Open Multiple View Geometry C++ library.
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#... | 35.458333 | 89 | 0.772033 | Aurelio93 |
c07b1afeec5d624a520cb38891804774fc3523ac | 467 | hpp | C++ | Xcode Build/that game engine/that_game_engine/C_InteractableTalking.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | 55 | 2018-06-19T08:22:47.000Z | 2022-03-30T01:02:59.000Z | Xcode Build/that game engine/that_game_engine/C_InteractableTalking.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | null | null | null | Xcode Build/that game engine/that_game_engine/C_InteractableTalking.hpp | ThatGamesGuy/that_platform_game | 90c80ebb4e890b9e4684ec87841b4bf4e446a3d1 | [
"MIT"
] | 21 | 2019-04-19T15:39:08.000Z | 2022-02-20T11:21:13.000Z | #ifndef C_InteractableTalking_hpp
#define C_InteractableTalking_hpp
#include "Component.hpp"
#include "C_Interactable.hpp"
#include "Debug.hpp"
#include "C_UIWorldLabel.hpp"
#include "ObjectCollection.hpp"
class C_InteractableTalking : public Component, public C_Interactable
{
public:
C_InteractableTalking(Object... | 21.227273 | 69 | 0.770878 | ThatGamesGuy |
c07b8ccd01937d56fc0ab3f41e6d4a4ded2abefe | 8,937 | cpp | C++ | sparse/src/dpcg_merge.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 4 | 2020-12-04T13:31:18.000Z | 2021-12-10T11:41:23.000Z | sparse/src/dpcg_merge.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 1 | 2021-03-27T20:00:25.000Z | 2021-03-28T06:19:59.000Z | sparse/src/dpcg_merge.cpp | klast/magma | cfb849621be6f697288e995831ec3c9e84530d9d | [
"BSD-3-Clause"
] | 2 | 2020-12-04T13:23:36.000Z | 2021-03-27T00:50:27.000Z | /*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author Hartwig Anzt
@generated from sparse/src/zpcg_merge.cpp, normal z -> d, Thu Oct 8 23:05:52 2020
*/
#include "magmasparse_intern... | 33.47191 | 137 | 0.567081 | klast |
c07bc51fa742c4eaca035a502fecbaceec5e37fe | 2,621 | cc | C++ | attractor.cc | chzchzchz/chaos | 2b6f8e7a39fe5384146936e49ec2fca2b168cb35 | [
"BSD-3-Clause"
] | 1 | 2019-01-02T18:38:25.000Z | 2019-01-02T18:38:25.000Z | attractor.cc | chzchzchz/chaos | 2b6f8e7a39fe5384146936e49ec2fca2b168cb35 | [
"BSD-3-Clause"
] | null | null | null | attractor.cc | chzchzchz/chaos | 2b6f8e7a39fe5384146936e49ec2fca2b168cb35 | [
"BSD-3-Clause"
] | null | null | null | #include <stdlib.h>
#include <math.h>
#include "attractor.h"
static double eval(double x, double y, const std::vector<double>& v)
{
double ret = 0.0;
for (unsigned x_deg = 0; x_deg <= MAP_DEGREE; x_deg++) {
for (unsigned y_deg = 0; y_deg <= x_deg; y_deg++) {
ret += v[x_deg * MAP_DEGREE + y_deg]
* pow(x, x_d... | 20.476563 | 68 | 0.606257 | chzchzchz |
c07cdce5556f323583b262a25f7f65527d316337 | 3,198 | cpp | C++ | Source/Storm-Graphics/include/GraphicConstraintSystem.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | 3 | 2021-11-27T04:56:12.000Z | 2022-02-14T04:02:10.000Z | Source/Storm-Graphics/include/GraphicConstraintSystem.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | Source/Storm-Graphics/include/GraphicConstraintSystem.cpp | SunlayGGX/Storm | 83a34c14cc7d936347b6b8193a64cd13ccbf00a8 | [
"MIT"
] | null | null | null | #include "GraphicConstraintSystem.h"
#include "ConstraintShader.h"
#include "ThrowIfFailed.h"
Storm::GraphicConstraintSystem::GraphicConstraintSystem(const ComPtr<ID3D11Device> &device) :
_shader{ std::make_unique<Storm::ConstraintShader>(device) },
_constraintVertexCount{ 0 }
{
}
Storm::GraphicConstraintSystem... | 33.663158 | 165 | 0.792683 | SunlayGGX |
c07dad1a74b81a723ddb921074b5400f48c3f465 | 3,219 | cc | C++ | src/Output/UserInterface/VerySimpleMessageManager.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | src/Output/UserInterface/VerySimpleMessageManager.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | src/Output/UserInterface/VerySimpleMessageManager.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | #include "Output/UserInterface/VerySimpleMessageManager.hh"
#include "Output/UserInterface/MessageSelector.hh"
namespace Chess{
namespace Output{
namespace UserInterface{
VerySimpleLanguagePackage::VerySimpleLanguagePackage(){
}
VerySimpleLanguagePackage::VerySimpleLanguagePackage(const LanguagePackFormat& languageP... | 41.805195 | 146 | 0.769804 | rodrigowerberich |
c07f7b8e6d84a8b8638c8d9624baafc9f70f826c | 2,257 | cc | C++ | tensorflow/core/runtime_fallback/opdefs/tfrt_fallback.cc | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | 8 | 2021-08-03T03:57:10.000Z | 2021-12-13T01:19:02.000Z | tensorflow/core/runtime_fallback/opdefs/tfrt_fallback.cc | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | 17 | 2021-08-12T19:38:42.000Z | 2022-01-27T14:39:35.000Z | tensorflow/core/runtime_fallback/opdefs/tfrt_fallback.cc | ashutom/tensorflow-upstream | c16069c19de9e286dd664abb78d0ea421e9f32d4 | [
"Apache-2.0"
] | 4 | 2022-01-13T11:23:44.000Z | 2022-03-02T11:11:42.000Z | /* Copyright 2021 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... | 34.19697 | 80 | 0.666371 | ashutom |
c07fad4fc3ec50f681cd76c85f6a69d1ac5ad8f5 | 226 | cpp | C++ | main/HStringDatabase.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 215 | 2017-06-22T16:23:52.000Z | 2022-01-27T23:33:37.000Z | main/HStringDatabase.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 4 | 2017-06-29T16:49:28.000Z | 2019-02-07T19:58:57.000Z | main/HStringDatabase.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 21 | 2017-10-14T02:10:41.000Z | 2021-07-13T06:08:38.000Z |
#include "HStringDatabase.h"
const char* holodec::holokey::system = "sys";
const char* holodec::holokey::architecture = "arch";
const char* holodec::holokey::bit = "bits";
const char* holodec::holokey::endianess = "endian"; | 28.25 | 52 | 0.716814 | Cararasu |
c081221cbe60c2b8bca919ccf5579080a79b2b54 | 1,439 | cc | C++ | zircon/kernel/tests/loop_limiter_tests.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | zircon/kernel/tests/loop_limiter_tests.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 2 | 2021-09-19T21:55:09.000Z | 2021-12-19T03:34:53.000Z | zircon/kernel/tests/loop_limiter_tests.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 The Fuchsia Authors
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT
#include <lib/unittest/unittest.h>
#include <kernel/loop_limiter.h>
namespace {
bool loop_limiter_test() {
BEGIN_TEST;
// ... | 24.389831 | 79 | 0.685198 | allansrc |
c083a04257c4ed0eaf1c268c6d15e9f9cac0aac4 | 675 | cc | C++ | project1/kernels/kernel_case10.cc | guoyuqi020/CompilerProject | 1cd5375120bcdd2a2165d4741e9e987ce44237d5 | [
"MIT"
] | null | null | null | project1/kernels/kernel_case10.cc | guoyuqi020/CompilerProject | 1cd5375120bcdd2a2165d4741e9e987ce44237d5 | [
"MIT"
] | null | null | null | project1/kernels/kernel_case10.cc | guoyuqi020/CompilerProject | 1cd5375120bcdd2a2165d4741e9e987ce44237d5 | [
"MIT"
] | null | null | null | #include "../run.h"
void kernel_case10(float (&B)[10][10], float (&A)[8][8]) {
float temp1[8][8];
for (int i = 0;i < 8;++i){
for (int j = 0;j < 8;++j){
temp1[i][j] = 0;
if (0 <= i && i < 10) {
if (0 <= j && j < 10) {
if (0 <= i + 1 && i + 1 < 10) {
if (0 <= j && j < 10... | 23.275862 | 75 | 0.274074 | guoyuqi020 |
c085f71aefcb47e1433a5c2368104a7467ca7291 | 1,933 | hpp | C++ | AddOns/Parse/Source/wali/UserFactoryHandler.hpp | jusito/WALi-OpenNWA | 2bb4aca02c5a5d444fd038e8aa3eecd7d1ccbb99 | [
"MIT"
] | 15 | 2015-03-07T17:25:57.000Z | 2022-02-04T20:17:00.000Z | src/wpds/AddOns/Parse/Source/wali/UserFactoryHandler.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 1 | 2018-03-03T05:58:55.000Z | 2018-03-03T12:26:10.000Z | src/wpds/AddOns/Parse/Source/wali/UserFactoryHandler.hpp | ucd-plse/mpi-error-prop | 4367df88bcdc4d82c9a65b181d0e639d04962503 | [
"BSD-3-Clause"
] | 15 | 2015-09-25T17:44:35.000Z | 2021-07-18T18:25:38.000Z | #ifndef wali_WEIGHT_FACTORY_HANDLER_GUARD
#define wali_WEIGHT_FACTORY_HANDLER_GUARD 1
/**
* @author Nicholas Kidd
*/
#include "wali/IUserHandler.hpp"
namespace wali
{
class WeightFactory;
class MergeFnFactory;
/**
* Class for backwards compatability with WeightFactories.
*/
class UserFactoryHandler ... | 25.434211 | 88 | 0.629074 | jusito |
c089462ad2acb1d7f772934e9d74059ce7cf1ddf | 2,858 | cc | C++ | src/sim/mem_system.cc | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | src/sim/mem_system.cc | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | src/sim/mem_system.cc | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2015-2018 Nils Asmussen <nils@os.inf.tu-dresden.de>
* Copyright (C) 2019-2022 Nils Asmussen, Barkhausen Institut
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
* 1. Redistributions of source code must retain the above copyright notice,
* thi... | 34.433735 | 95 | 0.662701 | Barkhausen-Institut |
c0895f25639a8c93c27ebcf583a2fa77cc5488fd | 718 | cpp | C++ | src/Algorithm/nopathexception.cpp | grea09/dirige | cffd6f1b2d993d7e49b54c6da59ae03b1346c01b | [
"MIT"
] | 1 | 2015-12-26T08:20:50.000Z | 2015-12-26T08:20:50.000Z | src/Algorithm/nopathexception.cpp | grea09/dirige | cffd6f1b2d993d7e49b54c6da59ae03b1346c01b | [
"MIT"
] | null | null | null | src/Algorithm/nopathexception.cpp | grea09/dirige | cffd6f1b2d993d7e49b54c6da59ae03b1346c01b | [
"MIT"
] | null | null | null | #include "nopathexception.h"
using namespace Algorithm;
//Builder
//{
NoPathException::NoPathException() throw() : std::exception()
{
message = "Impossible d'atteindre la destination";
}
NoPathException::NoPathException( const NoPathException& noPathException ) throw() : std::exception()
{
message = noPathExc... | 16.318182 | 101 | 0.683844 | grea09 |
c08b4efe3256fdc777de959083f9619be199abf4 | 19,274 | cpp | C++ | src/gtest/tree_internal_node_test.cpp | Nanolat/nldb | fa6c986c184cbdfa47b68220d30e4358325a274f | [
"Apache-2.0"
] | 9 | 2015-01-03T10:38:43.000Z | 2021-01-04T01:02:36.000Z | src/gtest/tree_internal_node_test.cpp | Nanolat/nldb | fa6c986c184cbdfa47b68220d30e4358325a274f | [
"Apache-2.0"
] | null | null | null | src/gtest/tree_internal_node_test.cpp | Nanolat/nldb | fa6c986c184cbdfa47b68220d30e4358325a274f | [
"Apache-2.0"
] | 2 | 2015-12-07T08:52:00.000Z | 2021-12-21T17:56:08.000Z | /*
* (C) Copyright 2012, 2013 ThankyouSoft (http://ThankyouSoft.com/) and Nanolat(http://Nanolat.com).
* Writen by Kangmo Kim ( kangmo@nanolat.com )
*
* =================
* Apache v2 License
* =================
* http://www.apache.org/licenses/LICENSE-2.0.html... | 36.573055 | 102 | 0.737315 | Nanolat |
c08e54a902cfa94f1cc74dbeeeb14ac2004baea0 | 903 | cpp | C++ | queue_fps.cpp | HefnySco/yolov5-opencv-dnn-cpp | 3d653d49562d6e09c759906372278bd52f8f20e2 | [
"Apache-2.0"
] | null | null | null | queue_fps.cpp | HefnySco/yolov5-opencv-dnn-cpp | 3d653d49562d6e09c759906372278bd52f8f20e2 | [
"Apache-2.0"
] | null | null | null | queue_fps.cpp | HefnySco/yolov5-opencv-dnn-cpp | 3d653d49562d6e09c759906372278bd52f8f20e2 | [
"Apache-2.0"
] | null | null | null | #include "queue_fps.hpp"
// template <typename T>
// void CQueueFPS<T>::push(const T& entry)
// {
// //std::lock_guard<std::mutex> lock(mutex);
// std::queue<T>::push(entry);
// counter += 1;
// if (counter == 1)
// {
// //Start counting from a second frame (warmup).
// tm.reset();
... | 21 | 57 | 0.51495 | HefnySco |
c08f1f57ccf010e93eee81e6806f696ec66148ef | 2,690 | hpp | C++ | libraries/chain/include/graphene/chain/hardfork.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/hardfork.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | libraries/chain/include/graphene/chain/hardfork.hpp | siwelo/bitshares-2 | 03561bfcf97801b44863bd51c400aae3ba51e3b0 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
* 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. Any modified source or binaries are used only with the BitShares network.
*... | 57.234043 | 208 | 0.787732 | siwelo |
c08fc8783da592a19b84761b63d415b615e81e3a | 1,672 | hpp | C++ | inc/motoro/http_request_parser.hpp | ztgreat/cpp | 0cd0643c47ec6c252968d7bb71d62f3e14c1996a | [
"Apache-2.0"
] | null | null | null | inc/motoro/http_request_parser.hpp | ztgreat/cpp | 0cd0643c47ec6c252968d7bb71d62f3e14c1996a | [
"Apache-2.0"
] | null | null | null | inc/motoro/http_request_parser.hpp | ztgreat/cpp | 0cd0643c47ec6c252968d7bb71d62f3e14c1996a | [
"Apache-2.0"
] | null | null | null | #ifndef AB62B027_AAFD_4611_8EF3_19FF408D5F97
#define AB62B027_AAFD_4611_8EF3_19FF408D5F97
#include <string>
#include "lib/http_parser.h"
#include "request.hpp"
namespace motoro {
class http_request_parser {
public:
http_request_parser() = delete;
http_request_parser(motoro::request &req);
... | 23.885714 | 80 | 0.648923 | ztgreat |
c0902aee5c38de2f8bee77ff27681024f51f75bc | 2,070 | cpp | C++ | tests/greedy/mates.cpp | gcp/verbose-parakeet | 6f5e2bba614f2704d225da75704e8af3b0e124e7 | [
"MIT"
] | 1 | 2021-04-16T00:00:28.000Z | 2021-04-16T00:00:28.000Z | tests/greedy/mates.cpp | gcp/verbose-parakeet | 6f5e2bba614f2704d225da75704e8af3b0e124e7 | [
"MIT"
] | null | null | null | tests/greedy/mates.cpp | gcp/verbose-parakeet | 6f5e2bba614f2704d225da75704e8af3b0e124e7 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <libchess/position.hpp>
#include <string>
#include "../../src/search/controller.hpp"
#include "../../src/search/greedy/search.hpp"
auto info_handler = [](int depth, int score, std::uint64_t nodes, int time, const PV &pv) {};
TEST_CASE("Greedy - Checkmate") {
const std::pair<st... | 34.5 | 93 | 0.556522 | gcp |
6a4d91eefb13ded29994905fbea56a64c7a71a2a | 2,913 | cpp | C++ | examples/BulletRobotics/JointLimit.cpp | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 9,136 | 2015-01-02T00:41:45.000Z | 2022-03-31T15:30:02.000Z | examples/BulletRobotics/JointLimit.cpp | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,424 | 2015-01-05T08:55:58.000Z | 2022-03-30T19:34:55.000Z | examples/BulletRobotics/JointLimit.cpp | felipeek/bullet3 | 6a59241074720e9df119f2f86bc01765917feb1e | [
"Zlib"
] | 2,921 | 2015-01-02T10:19:30.000Z | 2022-03-31T02:48:42.000Z |
#include "JointLimit.h"
#include "../CommonInterfaces/CommonGraphicsAppInterface.h"
#include "Bullet3Common/b3AlignedObjectArray.h"
#include "../CommonInterfaces/CommonRenderInterface.h"
#include "../CommonInterfaces/CommonExampleInterface.h"
#include "../CommonInterfaces/CommonGUIHelperInterface.h"
#include "../Shar... | 26.481818 | 88 | 0.777549 | felipeek |
6a4f04b8eaa6afbbeda811c7eb2d946773242633 | 1,884 | cpp | C++ | weex_core/Source/android/base/jni/scoped_java_ref.cpp | wyon/incubator-weex | fcd225f42b6647b27bd96e25cef344b7f1fd4bcf | [
"Apache-2.0"
] | 7 | 2018-06-22T03:17:04.000Z | 2020-01-26T08:42:13.000Z | weex_core/Source/android/base/jni/scoped_java_ref.cpp | wyon/incubator-weex | fcd225f42b6647b27bd96e25cef344b7f1fd4bcf | [
"Apache-2.0"
] | 1 | 2018-08-30T13:14:02.000Z | 2018-08-30T13:14:02.000Z | weex_core/Source/android/base/jni/scoped_java_ref.cpp | wyon/incubator-weex | fcd225f42b6647b27bd96e25cef344b7f1fd4bcf | [
"Apache-2.0"
] | null | null | null | /**
* 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... | 24.789474 | 63 | 0.693206 | wyon |
6a51e7458c2e4967d4ef78ca09c586627fe3402b | 661 | cpp | C++ | uva/729 - The Hamming Distance Problem backtracking .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | 1 | 2021-11-22T02:26:43.000Z | 2021-11-22T02:26:43.000Z | uva/729 - The Hamming Distance Problem backtracking .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | uva/729 - The Hamming Distance Problem backtracking .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
bool verdict;
int ara[6];
int temp[6];
char sign[10];
int main()
{
//freopen("myOutput.txt","w",stdout);
//freopen("myInput.txt",")
int t, n,h;
char str[20];
scanf("%d",&t);
for(int i=0; i<t; i++)
{
scanf("%d %d",&n, &h);... | 18.885714 | 44 | 0.388805 | priojeetpriyom |
6a53950fb598c747ad551fabf2f2682f5bec99a4 | 4,730 | cc | C++ | src/atlas/field/FieldSet.cc | egparedes/atlas | fff4b692334b1dcb5abd14a36a09df9c9204b08b | [
"Apache-2.0"
] | 1 | 2019-12-02T20:41:33.000Z | 2019-12-02T20:41:33.000Z | src/atlas/field/FieldSet.cc | egparedes/atlas | fff4b692334b1dcb5abd14a36a09df9c9204b08b | [
"Apache-2.0"
] | null | null | null | src/atlas/field/FieldSet.cc | egparedes/atlas | fff4b692334b1dcb5abd14a36a09df9c9204b08b | [
"Apache-2.0"
] | null | null | null | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 31.533333 | 119 | 0.588161 | egparedes |
6a53bbf62d3887d57d03a7b14c77e8887376b668 | 2,842 | cpp | C++ | 00004_median-of-two-sorted-arrays/191003-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00004_median-of-two-sorted-arrays/191003-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00004_median-of-two-sorted-arrays/191003-2.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/median-of-two-sorted-arrays/
#include <cstdio>
#include <vector>
using namespace std;
class Solution {
public:
double findMedianSortedArrays(vector<int>& nums1, vector<int>& nums2) {
int n1 = nums1.size();
int n2 = nums2.size();
int p1 = 0, q1 = n1, k1 = n1 / 2;
int p2 =... | 22.919355 | 77 | 0.507741 | yanlinlin82 |
6a573296bb9d824cd29ab79b4ee957e6cf5fcf31 | 947 | cpp | C++ | src/widgets/treewidgetitem.cpp | tamlok/vnote | 1318427bb742b77eb2f2e3da3c5796f159f2c2ed | [
"MIT"
] | 8,054 | 2016-10-19T14:59:52.000Z | 2020-10-11T06:21:15.000Z | src/widgets/treewidgetitem.cpp | tamlok/vnote | 1318427bb742b77eb2f2e3da3c5796f159f2c2ed | [
"MIT"
] | 1,491 | 2017-03-06T02:31:32.000Z | 2020-10-11T02:14:32.000Z | src/widgets/treewidgetitem.cpp | tamlok/vnote | 1318427bb742b77eb2f2e3da3c5796f159f2c2ed | [
"MIT"
] | 986 | 2017-02-14T05:45:13.000Z | 2020-10-10T07:42:31.000Z | #include "treewidgetitem.h"
#include <QTreeWidget>
#include <QVariant>
#include <core/global.h>
using namespace vnotex;
TreeWidgetItem::TreeWidgetItem(QTreeWidget *p_parent, const QStringList &p_strings, int p_type)
: QTreeWidgetItem(p_parent, p_strings, p_type)
{
}
bool TreeWidgetItem::operator<(const QTreeWi... | 27.057143 | 95 | 0.669483 | tamlok |
6a584bc0ece1e2582dff3e74cd4358468d55c914 | 2,358 | cpp | C++ | iceoryx_posh/source/roudi_environment/roudi_environment.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | 2 | 2019-11-04T05:02:53.000Z | 2019-11-04T05:19:20.000Z | iceoryx_posh/source/roudi_environment/roudi_environment.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/source/roudi_environment/roudi_environment.cpp | Karsten1987/iceoryx | e5c23eaf5c351ef0095e43673282867b8d060026 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 by Robert Bosch GmbH. 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... | 30.623377 | 109 | 0.7676 | Karsten1987 |
6a5b74f4d106edf9a39a1b7f487d20212b307c68 | 2,986 | cpp | C++ | source/third_party/pevents/sample.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 86 | 2020-05-14T17:20:22.000Z | 2022-01-21T22:53:24.000Z | source/third_party/pevents/sample.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 6 | 2020-05-16T18:50:00.000Z | 2022-01-21T15:30:16.000Z | source/third_party/pevents/sample.cpp | GPUOpen-Tools/radeon_memory_visualizer | 309ac5b04b870aef408603eaac4bd727d5d3e698 | [
"MIT"
] | 11 | 2020-10-15T15:55:56.000Z | 2022-03-16T20:38:29.000Z | /*
* WIN32 Events for POSIX
* Author: Mahmoud Al-Qudsi <mqudsi@neosmart.net>
* Copyright (C) 2011 - 2015 by NeoSmart Technologies
* This code is released under the terms of the MIT License
*/
#include <iostream>
#include <assert.h>
#include <thread>
#include <chrono>
#include <atomic>
#include <signal.h>
#include ... | 22.621212 | 81 | 0.666443 | GPUOpen-Tools |
6a5bc37a5a78ee392bcf47fafb2eae1bc2dad1d4 | 537 | cpp | C++ | Mya/Sound/Music.cpp | Wolchy/Uno | 3ebb485b7e71b801cdd08d2cf97bbbb9579f44b5 | [
"MIT"
] | null | null | null | Mya/Sound/Music.cpp | Wolchy/Uno | 3ebb485b7e71b801cdd08d2cf97bbbb9579f44b5 | [
"MIT"
] | null | null | null | Mya/Sound/Music.cpp | Wolchy/Uno | 3ebb485b7e71b801cdd08d2cf97bbbb9579f44b5 | [
"MIT"
] | null | null | null | #include "Music.h"
Music::Music(std::string path){
music = Mix_LoadMUS(path.c_str());
if(music)
std::cout << "Loaded music: " << path.c_str() << "!" << std::endl;
else
std::cout << "Error Loading music: " << path.c_str() << ", with error: " << Mix_GetError() << "!" << std::endl;
}
void Music::destroy() {
Mix_... | 17.322581 | 113 | 0.607076 | Wolchy |
6a5c4e51623e90a87b84ce49472916868e08d30d | 7,651 | cpp | C++ | src/raft/raft_server.cpp | CheranMahalingam/Distributed-Video-Processor | 2940b1d92f6f6d940304de24d79680f01c888c47 | [
"MIT"
] | null | null | null | src/raft/raft_server.cpp | CheranMahalingam/Distributed-Video-Processor | 2940b1d92f6f6d940304de24d79680f01c888c47 | [
"MIT"
] | null | null | null | src/raft/raft_server.cpp | CheranMahalingam/Distributed-Video-Processor | 2940b1d92f6f6d940304de24d79680f01c888c47 | [
"MIT"
] | 1 | 2022-01-09T22:43:46.000Z | 2022-01-09T22:43:46.000Z | #include "raft_server.h"
namespace raft {
RaftServer::RaftServer() {
}
RaftServer::~RaftServer() {
}
RaftServer::RequestVoteData::RequestVoteData(
server::VideoProcessorService::AsyncService* service,
ServerCompletionQueue* scq,
ConcensusModule* cm)
: CallData{service, scq, cm}, responder_(&ctx_) {... | 43.471591 | 160 | 0.547772 | CheranMahalingam |
6a5cc849d8b781408339aefae2fbcdfaec77f6eb | 3,176 | hpp | C++ | src/main/cpp/Balau/Network/Http/Server/HttpWebApps/CannedHttpWebApp.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 6 | 2018-12-30T15:09:26.000Z | 2020-04-20T09:27:59.000Z | src/main/cpp/Balau/Network/Http/Server/HttpWebApps/CannedHttpWebApp.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/Balau/Network/Http/Server/HttpWebApps/CannedHttpWebApp.hpp | borasoftware/balau | 8bb82e9cbf7aa8193880eda1de5cbca4db1e1c14 | [
"Apache-2.0"
] | 2 | 2019-11-12T08:07:16.000Z | 2019-11-29T11:19:47.000Z | // @formatter:off
//
// Balau core C++ library
//
// Copyright (C) 2017 Bora Software (contact@borasoftware.com)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apach... | 36.505747 | 110 | 0.70529 | borasoftware |
6a5f3c18c2d141042edf09d8c9032f08a0a63434 | 2,294 | cpp | C++ | src/budget/UpdateContributorCommand.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | 2 | 2016-07-17T02:12:44.000Z | 2016-11-22T14:04:55.000Z | src/budget/UpdateContributorCommand.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | src/budget/UpdateContributorCommand.cpp | vimofthevine/UnderBudget | 5711be8e5da3cb7a78da007fe43cf1ce1b796493 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Kyle Treubig
*
* 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... | 30.586667 | 88 | 0.598082 | vimofthevine |
6a60c57a19b759d99fb651024d551b2265a281d1 | 8,010 | cpp | C++ | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrProcess.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrProcess.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/modules/processes/contrib/gviehoever/GradientDomain/GradientsHdrProcess.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// Standard GradientDomain Process Module Version 0.6.4
// ---------------------... | 34.377682 | 195 | 0.534707 | fmeschia |
6a64ba75a0ee791d46a0e01144bfd41ae7f8ea21 | 2,861 | hpp | C++ | src/tilemap.hpp | Turtwiggy/Dwarf-and-Blade | 2e3bd3eb169bf3b62665d74437f806d52c415fb5 | [
"MIT"
] | null | null | null | src/tilemap.hpp | Turtwiggy/Dwarf-and-Blade | 2e3bd3eb169bf3b62665d74437f806d52c415fb5 | [
"MIT"
] | null | null | null | src/tilemap.hpp | Turtwiggy/Dwarf-and-Blade | 2e3bd3eb169bf3b62665d74437f806d52c415fb5 | [
"MIT"
] | null | null | null | #ifndef TILEMAP_HPP_INCLUDED
#define TILEMAP_HPP_INCLUDED
#include <vector>
#include <vec/vec.hpp>
#include <map>
#include <optional>
#include "sprite_renderer.hpp"
#include "random.hpp"
#include <networking/serialisable_fwd.hpp>
namespace ai_info
{
enum type
{
ACTIVE,
NONE,
};
}
namespac... | 20.435714 | 109 | 0.565537 | Turtwiggy |
6a6575b6e07405c581c9d1b327ca1c94c408cb28 | 11,550 | cpp | C++ | moveit_plugins/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp | predystopic-dev/moveit2 | 42afeea561949b1af197655c1cbb63b851e7dd8d | [
"BSD-3-Clause"
] | 1 | 2020-10-11T17:40:28.000Z | 2020-10-11T17:40:28.000Z | moveit_plugins/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp | predystopic-dev/moveit2 | 42afeea561949b1af197655c1cbb63b851e7dd8d | [
"BSD-3-Clause"
] | 1 | 2021-11-08T04:05:16.000Z | 2021-11-08T04:05:16.000Z | moveit_plugins/moveit_simple_controller_manager/src/moveit_simple_controller_manager.cpp | predystopic-dev/moveit2 | 42afeea561949b1af197655c1cbb63b851e7dd8d | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2013, Unbounded Robotics Inc.
* Copyright (c) 2012, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modific... | 40.669014 | 121 | 0.686061 | predystopic-dev |
6a670252f09cfb9d43601565ce7fc5a81b0ad268 | 32,482 | cpp | C++ | lib/AST/RequirementMachine/RewriteLoop.cpp | tshortli/swift | 3e739f62fcb14f9f72d5da81168953cfd54e3ee0 | [
"Apache-2.0"
] | 2 | 2022-01-23T20:41:02.000Z | 2022-01-23T20:41:12.000Z | lib/AST/RequirementMachine/RewriteLoop.cpp | blanche37/swift | c3c9b1bf56ce76715ff7e547f68cc354be4cdad8 | [
"Apache-2.0"
] | 1 | 2018-08-23T19:35:25.000Z | 2018-08-23T19:35:25.000Z | lib/AST/RequirementMachine/RewriteLoop.cpp | blanche37/swift | c3c9b1bf56ce76715ff7e547f68cc354be4cdad8 | [
"Apache-2.0"
] | null | null | null | //===--- RewriteLoop.cpp - Identities between rewrite rules ---------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.... | 31.628043 | 84 | 0.632227 | tshortli |
6a67e6851474a0db95c6602b46c6f35411fddf69 | 11,633 | cpp | C++ | source/common/2d/v_drawtext.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | source/common/2d/v_drawtext.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | source/common/2d/v_drawtext.cpp | madame-rachelle/Raze | 67c8187d620e6cf9e99543cab5c5746dd31007af | [
"RSA-MD"
] | null | null | null | /*
** v_text.cpp
** Draws text to a canvas. Also has a text line-breaker thingy.
**
**---------------------------------------------------------------------------
** Copyright 1998-2006 Randy Heit
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permit... | 27.501182 | 157 | 0.644116 | madame-rachelle |
6a6c2bd3082c445842795cea2f01d6e4b8678308 | 311 | cc | C++ | packages/operator/Null_Operator.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/operator/Null_Operator.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/operator/Null_Operator.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "Null_Operator.hh"
using std::vector;
Null_Operator::
Null_Operator(int size):
Square_Vector_Operator(),
size_(size)
{
check_class_invariants();
}
void Null_Operator::
apply(vector<double> &x) const
{
x.assign(x.size(), 0);
}
void Null_Operator::
check_class_invariants() const
{
}
| 13.521739 | 30 | 0.70418 | brbass |
6a6dcb89a1bfe4b43b2415b2428011ef89f0ac79 | 3,537 | hpp | C++ | modules/core/src/MetaObject/logging/logging_macros.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 2 | 2017-10-26T04:41:49.000Z | 2018-02-09T05:12:19.000Z | modules/core/src/MetaObject/logging/logging_macros.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | null | null | null | modules/core/src/MetaObject/logging/logging_macros.hpp | dtmoodie/MetaObject | 8238d143d578ff9c0c6506e7e627eca15e42369e | [
"MIT"
] | 3 | 2017-01-08T21:09:48.000Z | 2018-02-10T04:27:32.000Z | #ifndef MO_LOGGING_LOGGING_MACROS_HPP
#define MO_LOGGING_LOGGING_MACROS_HPP
#include "callstack.hpp"
#include <spdlog/fmt/fmt.h>
#include <spdlog/fmt/ostr.h>
#if defined(__GNUC__) && __GNUC__ == 4 && defined(__NVCC__)
// These empy definitions are for GCC 4.8 with cuda 6.5 since it can't handle fmt
#define LOG_EVERY_... | 46.539474 | 120 | 0.412214 | dtmoodie |
6a6f18c655199562b2e4dec1b14e964eaaa1cad0 | 4,194 | cpp | C++ | src/Engine/App/Entity.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 118 | 2015-05-12T15:12:14.000Z | 2021-11-14T15:41:11.000Z | src/Engine/App/Entity.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 76 | 2015-06-06T18:04:24.000Z | 2022-01-14T20:17:37.000Z | src/Engine/App/Entity.cpp | kimkulling/osre | b738c87e37d0b1d2d0779a412b88ce68517c4328 | [
"MIT"
] | 7 | 2016-06-28T09:14:38.000Z | 2021-03-12T02:07:52.000Z | /*-----------------------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2015-2021 OSRE ( Open Source Render Engine ) by Kim Kulling
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation f... | 27.592105 | 97 | 0.651168 | kimkulling |
6a6f5aa1b606eeb85ad97f15508e3423638e7e4f | 1,132 | hpp | C++ | src/stan/mcmc/hmc/nuts_classic/unit_e_nuts_classic.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2019-07-05T01:40:40.000Z | 2019-07-05T01:40:40.000Z | src/stan/mcmc/hmc/nuts_classic/unit_e_nuts_classic.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/stan/mcmc/hmc/nuts_classic/unit_e_nuts_classic.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2018-08-28T12:09:08.000Z | 2018-08-28T12:09:08.000Z | #ifndef STAN_MCMC_HMC_NUTS_CLASSIC_UNIT_E_NUTS_CLASSIC_HPP
#define STAN_MCMC_HMC_NUTS_CLASSIC_UNIT_E_NUTS_CLASSIC_HPP
#include <stan/mcmc/hmc/nuts_classic/base_nuts_classic.hpp>
#include <stan/mcmc/hmc/hamiltonians/unit_e_point.hpp>
#include <stan/mcmc/hmc/hamiltonians/unit_e_metric.hpp>
#include <stan/mcmc/hmc/integr... | 34.30303 | 65 | 0.64841 | drezap |
6a7362521428f7932e34a54c54f4b4a61bbee003 | 6,507 | cpp | C++ | moos-ivp/ivp/src/lib_helmivp/BehaviorSpec.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_helmivp/BehaviorSpec.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_helmivp/BehaviorSpec.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | /*****************************************************************/
/* NAME: Michael Benjamin */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: BehaviorSpec.cpp */
/* DATE: Feb 11th, 2010 ... | 32.863636 | 74 | 0.542493 | EasternEdgeRobotics |
6a7397f705f31514263e4b747fa69e87fe80c9ec | 1,130 | cpp | C++ | cpp/Sorting/Randomized-Quick-sort.cpp | fossabot/a-grim-loth | a6c8d549289a39ec981c1e0d0c754bb2708dfff9 | [
"MIT"
] | 4 | 2021-06-26T17:18:47.000Z | 2022-02-02T15:02:27.000Z | cpp/Sorting/Randomized-Quick-sort.cpp | fossabot/a-grim-loth | a6c8d549289a39ec981c1e0d0c754bb2708dfff9 | [
"MIT"
] | 8 | 2021-06-29T07:00:32.000Z | 2021-12-01T11:26:22.000Z | cpp/Sorting/Randomized-Quick-sort.cpp | fossabot/a-grim-loth | a6c8d549289a39ec981c1e0d0c754bb2708dfff9 | [
"MIT"
] | 3 | 2021-07-14T14:42:08.000Z | 2021-12-07T19:36:53.000Z | #include <cstdlib>
#include <iostream>
#include <time.h>
using namespace std;
int partition(int arr[], int l, int h) {
int pivot = arr[l];
int i = l - 1, j = h + 1;
while (true) {
do {
i++;
} while (arr[i] < pivot);
do {
j--;
} while (arr[j] > pivot);
if (i >= j)
return j;... | 19.824561 | 62 | 0.530973 | fossabot |
6a7681e2a6bea7ce3a2c76007a063924bcaaa1a9 | 845 | cpp | C++ | 60A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 60A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 60A.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 18.369565 | 47 | 0.60355 | felikjunvianto |
6a76ade92f5ffde7e01f53caac461481206da438 | 10,835 | cxx | C++ | VTK/IO/vtkBYUWriter.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | VTK/IO/vtkBYUWriter.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | VTK/IO/vtkBYUWriter.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... | 25.25641 | 89 | 0.594555 | matthb2 |
6a80550f15ec3d9e57b099a855d013b8cf470567 | 3,770 | cc | C++ | aos/realtime.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | aos/realtime.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | aos/realtime.cc | Ewpratten/frc_971_mirror | 3a8a0c4359f284d29547962c2b4c43d290d8065c | [
"BSD-2-Clause"
] | null | null | null | #include "aos/realtime.h"
#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
#include <errno.h>
#include <sched.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/prctl.h>
#include <malloc.h>
#include "glog/logging.h"
namespace FLAG... | 29.453125 | 77 | 0.695756 | Ewpratten |
6a8198ec5eb2ff402f417791fbf8361c14da4a57 | 3,398 | cpp | C++ | test/TestSere.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | test/TestSere.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | test/TestSere.cpp | craft095/sere | b7ce9aafe5390a0bf48ade7ebe0a1a09bf0396b9 | [
"MIT"
] | null | null | null | #include "catch2/catch.hpp"
#include "test/GenLetter.hpp"
#include "test/GenBoolExpr.hpp"
#include "test/EvalBoolExpr.hpp"
#include "test/EvalSere.hpp"
#include "test/EvalNfasl.hpp"
#include "test/Tools.hpp"
#include "test/ToolsZ3.hpp"
#include "ast/BoolExpr.hpp"
#include "ast/SereExpr.hpp"
#include "sat/Sat.hpp"
T... | 32.361905 | 90 | 0.572984 | craft095 |
6a81f01bccd3dee5bdbb5d908ff918de54164779 | 8,824 | cpp | C++ | tests/test_secretstream.cpp | friedrich12/sodium-wrapper | b638d130dbd75f3bd121d05ea8ede2706cff2319 | [
"ISC"
] | 18 | 2017-03-15T17:13:41.000Z | 2021-12-25T22:48:48.000Z | tests/test_secretstream.cpp | friedrich12/sodium-wrapper | b638d130dbd75f3bd121d05ea8ede2706cff2319 | [
"ISC"
] | 4 | 2017-07-01T09:42:03.000Z | 2022-03-21T15:05:23.000Z | tests/test_secretstream.cpp | friedrich12/sodium-wrapper | b638d130dbd75f3bd121d05ea8ede2706cff2319 | [
"ISC"
] | 4 | 2019-05-08T05:19:00.000Z | 2022-01-02T17:31:40.000Z | // test_secretstream.cpp -- Test sodium::secretstream
//
// ISC License
//
// Copyright (C) 2018 Farid Hajji <farid@hajji.name>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission... | 30.323024 | 80 | 0.667724 | friedrich12 |
6a822558bef69cc924668c795089a17ccc2b9c9f | 1,865 | hpp | C++ | third_party/boost/simd/function/frexp.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 1 | 2018-01-14T12:49:14.000Z | 2018-01-14T12:49:14.000Z | third_party/boost/simd/function/frexp.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/frexp.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 2 | 2017-12-12T12:29:52.000Z | 2019-04-08T15:55:25.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... | 25.547945 | 100 | 0.617158 | xmar |
6a8304cc13534c6dc46292d18cf73f551d2f610e | 5,865 | cc | C++ | cc/subtle/ecdsa_sign_boringssl_test.cc | codegrande/tink | 37311266c77ab4480f6b1ce3833354b6505d9886 | [
"Apache-2.0"
] | 1 | 2018-09-20T20:05:45.000Z | 2018-09-20T20:05:45.000Z | cc/subtle/ecdsa_sign_boringssl_test.cc | bollwarm/tink | e699fe174212ba5a1d43d4681a251245decdaeff | [
"Apache-2.0"
] | null | null | null | cc/subtle/ecdsa_sign_boringssl_test.cc | bollwarm/tink | e699fe174212ba5a1d43d4681a251245decdaeff | [
"Apache-2.0"
] | 1 | 2021-05-19T09:15:50.000Z | 2021-05-19T09:15:50.000Z | // Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 38.84106 | 80 | 0.689003 | codegrande |
6a8689133b64f4ea599d6c612f480d916ebb8c17 | 2,634 | cpp | C++ | graph-source-code/266-D/12228977.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/266-D/12228977.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/266-D/12228977.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++11
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <map>
#include <set>
#include <string>
#include <algorithm>
#include <iostream>
#include <complex>
using namespace std;
#defin... | 24.616822 | 67 | 0.368261 | AmrARaouf |
6a86e7a4783f289dcfeea887c1971865e5a29469 | 12,677 | cpp | C++ | worldeditor/src/graph/sceneview.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 162 | 2020-09-18T19:42:43.000Z | 2022-03-30T20:27:42.000Z | worldeditor/src/graph/sceneview.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 162 | 2020-10-10T11:16:52.000Z | 2022-03-30T17:09:11.000Z | worldeditor/src/graph/sceneview.cpp | thunder-engine/thunder | 14a70d46532b8b78635835fc05c0ac2f33a12d8b | [
"Apache-2.0"
] | 12 | 2020-10-18T09:16:35.000Z | 2022-01-08T11:23:17.000Z | #include "sceneview.h"
#include <QWindow>
#include <QStandardPaths>
#include <QMouseEvent>
#include <QVBoxLayout>
#include <QDebug>
#include <engine.h>
#include <timer.h>
#include <components/actor.h>
#include <components/scene.h>
#include <components/camera.h>
#include <resources/pipeline.h>
#include <systems/rend... | 37.505917 | 127 | 0.646052 | thunder-engine |
6a872ea13d8c17dd490397ba34300338814d7b91 | 3,674 | cpp | C++ | chapter-3/p-3.3/src/main.cpp | ahmedfawzyelaraby/cracking-the-coding-interview | 82395e711dd3136c0b762ac846f345cad39a4d66 | [
"MIT"
] | 1 | 2020-06-08T09:40:06.000Z | 2020-06-08T09:40:06.000Z | chapter-3/p-3.3/src/main.cpp | ahmedfawzyelaraby/cracking-the-coding-interview | 82395e711dd3136c0b762ac846f345cad39a4d66 | [
"MIT"
] | null | null | null | chapter-3/p-3.3/src/main.cpp | ahmedfawzyelaraby/cracking-the-coding-interview | 82395e711dd3136c0b762ac846f345cad39a4d66 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <memory>
#include <vector>
class StackNode {
public:
StackNode(int input_node_value) {
this->node_value = input_node_value;
this->next_node = NULL;
}
~StackNode() {}
void setNext(std::unique_ptr<StackNode> input_... | 28.703125 | 101 | 0.510887 | ahmedfawzyelaraby |
6a87a1f9a4ee44287405e1a64062fb18aebb53d0 | 7,239 | cpp | C++ | TESTs/CAdcDrv_Tpkg/src/test.cpp | neubertm/TDD_framework | 31e6df2422221035c86fdc743ca4da09cdfc3b50 | [
"BSD-3-Clause"
] | 1 | 2021-09-23T13:02:10.000Z | 2021-09-23T13:02:10.000Z | TESTs/CAdcDrv_Tpkg/src/test.cpp | neubertm/TDD_framework | 31e6df2422221035c86fdc743ca4da09cdfc3b50 | [
"BSD-3-Clause"
] | null | null | null | TESTs/CAdcDrv_Tpkg/src/test.cpp | neubertm/TDD_framework | 31e6df2422221035c86fdc743ca4da09cdfc3b50 | [
"BSD-3-Clause"
] | null | null | null | #include "CAdcDrv.hpp"
// Mocks
#include "CHalAdcIt.hpp"
//CppUTest includes should be after your and system includes
#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include "CppUTest/MemoryLeakDetectorNewMacros.h"
TEST_GROUP(CAdcDrv)
{
void teardown()
{
mock().checkExpectations();
... | 30.415966 | 318 | 0.755353 | neubertm |
6a8a1dacc121383a9547d2f3e25baf43a6b2e37b | 4,264 | hpp | C++ | pythran/pythonic/include/types/numpy_operators.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | pythran/pythonic/include/types/numpy_operators.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | pythran/pythonic/include/types/numpy_operators.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | #ifndef PYTHONIC_INCLUDE_TYPES_NUMPY_OPERATORS_HPP
#define PYTHONIC_INCLUDE_TYPES_NUMPY_OPERATORS_HPP
#include "pythonic/include/types/numpy_broadcast.hpp"
#include "pythonic/include/operator_/add.hpp"
#include "pythonic/include/operator_/and_.hpp"
#include "pythonic/include/operator_/or_.hpp"
#include "pythonic/inclu... | 37.403509 | 70 | 0.836069 | davidbrochart |
6a8a295d833ea20ce7c45c1216170ae77c3534df | 1,257 | hpp | C++ | include/ShaderAST/Expr/ExprIntrinsicCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | include/ShaderAST/Expr/ExprIntrinsicCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | include/ShaderAST/Expr/ExprIntrinsicCall.hpp | Praetonus/ShaderWriter | 1c5b3961e3e1b91cb7158406998519853a4add07 | [
"MIT"
] | null | null | null | /*
See LICENSE file in root folder
*/
#ifndef ___AST_ExprIntrinsicCall_H___
#define ___AST_ExprIntrinsicCall_H___
#pragma once
#include "ExprList.hpp"
#include "EnumIntrinsic.hpp"
#include "IntrinsicCallHelpers.hpp"
namespace ast::expr
{
class IntrinsicCall
: public Expr
{
public:
IntrinsicCall( type::TypePtr... | 19.640625 | 73 | 0.709626 | Praetonus |
6a8b39ad0f1515de8a726431430e5022bac90547 | 3,520 | cc | C++ | src/lib/MeshFEM/FieldSampler.cc | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 19 | 2020-10-21T10:05:17.000Z | 2022-03-20T13:41:50.000Z | src/lib/MeshFEM/FieldSampler.cc | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 4 | 2021-01-01T15:58:15.000Z | 2021-09-19T03:31:09.000Z | src/lib/MeshFEM/FieldSampler.cc | MeshFEM/MeshFEM | 9b3619fa450d83722879bfd0f5a3fe69d927bd63 | [
"MIT"
] | 4 | 2020-10-05T09:01:50.000Z | 2022-01-11T03:02:39.000Z | #include "FieldSampler.hh"
#include "libigl_aabb/point_simplex_squared_distance.h"
#include "libigl_aabb/AABB.h"
template<size_t N>
struct SamplerAABB : public iglaabb::AABB<Eigen::MatrixXd, int(N)> {
using Base = iglaabb::AABB<Eigen::MatrixXd, int(N)>;
using Base::Base;
};
//////////////////////////////////... | 49.577465 | 144 | 0.513352 | MeshFEM |
6a8ee7992e21ad980fad58c38fb9a397b933d423 | 4,789 | cpp | C++ | example/cxx/dense/helmert_9x9value_mpi.cpp | t-sakashita/rokko | ebd49e1198c4ec9e7612ad4a9806d16a4ff0bdc9 | [
"BSL-1.0"
] | 16 | 2015-01-31T18:57:48.000Z | 2022-03-18T19:04:49.000Z | example/cxx/dense/helmert_9x9value_mpi.cpp | t-sakashita/rokko | ebd49e1198c4ec9e7612ad4a9806d16a4ff0bdc9 | [
"BSL-1.0"
] | 514 | 2015-02-05T14:56:54.000Z | 2021-06-25T09:29:52.000Z | example/cxx/dense/helmert_9x9value_mpi.cpp | t-sakashita/rokko | ebd49e1198c4ec9e7612ad4a9806d16a4ff0bdc9 | [
"BSL-1.0"
] | 2 | 2015-06-16T04:22:23.000Z | 2019-06-01T07:10:01.000Z | /*****************************************************************************
*
* Rokko: Integrated Interface for libraries of eigenvalue decomposition
*
* Copyright (C) 2012-2015 Rokko Developers https://github.com/t-sakashita/rokko
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* fi... | 55.045977 | 238 | 0.701399 | t-sakashita |
6a910a6a1ef848094f5380a9b7e404c74f02dc89 | 78 | cpp | C++ | TrabalhoPOO/HardSkin.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | TrabalhoPOO/HardSkin.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | TrabalhoPOO/HardSkin.cpp | mbcrocci/TrabalhoPOO | 30378382b412e3ed875dbb2bfb897061dafc73ef | [
"MIT"
] | null | null | null | #include "HardSkin.h"
HardSkin::HardSkin ()
{}
HardSkin::~HardSkin ()
{}
| 7.090909 | 22 | 0.615385 | mbcrocci |
6a94376443437cc584b6709d7c8f6bf7e501d7ae | 1,075 | cpp | C++ | 2016 Long Contest for NSU and KUET - 2 ( BIT episode 1 )/O - Cvjetici.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | 2016 Long Contest for NSU and KUET - 2 ( BIT episode 1 )/O - Cvjetici.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | 2016 Long Contest for NSU and KUET - 2 ( BIT episode 1 )/O - Cvjetici.cpp | anirudha-ani/NSU-Problem-Solver | 2f6312fe5823c0352358f5db654dd0e1a619ce75 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int data[100005];
int flag[100005] = {0};
void update (int index , int value)
{
while(index < 100005)
{
data[index] += value;
index += ((index)& (-index));
}
}
int query(int... | 17.916667 | 56 | 0.469767 | anirudha-ani |
6a9539f493894e957c83b4e712f1946f30e9436f | 1,062 | cpp | C++ | common/ITypes.cpp | clayne/Lootman | 248befd3e1775a0eb9ca6dcbe261937d9641ef1c | [
"MIT"
] | 39 | 2015-01-16T09:17:05.000Z | 2021-12-15T23:02:00.000Z | common/ITypes.cpp | clayne/Lootman | 248befd3e1775a0eb9ca6dcbe261937d9641ef1c | [
"MIT"
] | 26 | 2015-01-03T20:26:27.000Z | 2019-12-30T22:46:15.000Z | common/ITypes.cpp | clayne/Lootman | 248befd3e1775a0eb9ca6dcbe261937d9641ef1c | [
"MIT"
] | 14 | 2015-10-23T08:46:01.000Z | 2022-03-24T18:08:24.000Z | #include "ITypes.h"
Bitstring::Bitstring()
:data(NULL)
{
}
Bitstring::Bitstring(UInt32 inLength)
:data(NULL)
{
Alloc(inLength);
}
Bitstring::~Bitstring()
{
Dispose();
}
void Bitstring::Alloc(UInt32 inLength)
{
Dispose();
inLength = (inLength + 7) & ~7;
length = inLength >> 3;
data = new UInt8[length];
}
... | 15.850746 | 69 | 0.612053 | clayne |