hexsha
stringlengths
40
40
size
int64
7
1.05M
ext
stringclasses
13 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
269
max_stars_repo_name
stringlengths
5
108
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
listlengths
1
9
max_stars_count
float64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
269
max_issues_repo_name
stringlengths
5
116
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
listlengths
1
9
max_issues_count
float64
1
77k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
269
max_forks_repo_name
stringlengths
5
116
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
listlengths
1
9
max_forks_count
float64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
7
1.05M
avg_line_length
float64
1.21
653k
max_line_length
int64
6
990k
alphanum_fraction
float64
0.01
1
f68aa1f30642677206154c59cdfc7088a3b4d3d0
38,240
cpp
C++
tools/converter/source/optimizer/PostTreatUtils.cpp
loveltyoic/MNN
ff405a307819a7228e0d1fc02c00c68021745b0a
[ "Apache-2.0" ]
null
null
null
tools/converter/source/optimizer/PostTreatUtils.cpp
loveltyoic/MNN
ff405a307819a7228e0d1fc02c00c68021745b0a
[ "Apache-2.0" ]
null
null
null
tools/converter/source/optimizer/PostTreatUtils.cpp
loveltyoic/MNN
ff405a307819a7228e0d1fc02c00c68021745b0a
[ "Apache-2.0" ]
1
2021-01-15T06:28:11.000Z
2021-01-15T06:28:11.000Z
// // PostTreatUtils.cpp // MNNConverter // // Created by MNN on 2019/01/31. // Copyright © 2018, Alibaba Group Holding Limited // #include "PostTreatUtils.hpp" #include <iostream> using namespace MNN; static bool _OpNeedContent(OpType type, int index) { switch (type) { case OpType_Shape: case ...
38.665319
119
0.536506
f68cb10af5feaf7cbf5a57310df3669493eb8f3a
6,076
cc
C++
src/base/scheduler_stub_test.cc
soleilpqd/mozc
4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e
[ "BSD-3-Clause" ]
1
2017-09-01T20:55:40.000Z
2017-09-01T20:55:40.000Z
src/base/scheduler_stub_test.cc
soleilpqd/mozc
4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e
[ "BSD-3-Clause" ]
null
null
null
src/base/scheduler_stub_test.cc
soleilpqd/mozc
4767ce2f2b6a63f1f139daea6e98bc7a564d5e4e
[ "BSD-3-Clause" ]
2
2020-02-12T15:24:27.000Z
2020-02-22T13:36:21.000Z
// Copyright 2010-2016, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
32.148148
74
0.748025
f68da2c5bef81e883fb75b1afb68335212062986
787
cpp
C++
Source/DotCloudReader.cpp
vedigovind/DelaunayTriangulation
c66bac5294f74f505a4576304753a0c6d0eaf0e8
[ "MIT" ]
32
2019-05-19T22:16:47.000Z
2022-02-24T15:46:50.000Z
Source/DotCloudReader.cpp
vedigovind/DelaunayTriangulation
c66bac5294f74f505a4576304753a0c6d0eaf0e8
[ "MIT" ]
3
2017-03-17T16:41:04.000Z
2021-07-26T03:19:30.000Z
Source/DotCloudReader.cpp
vedigovind/DelaunayTriangulation
c66bac5294f74f505a4576304753a0c6d0eaf0e8
[ "MIT" ]
12
2019-01-22T08:15:54.000Z
2022-02-07T10:22:50.000Z
#include <fstream> #include <iostream> #include <string> #include <vector> #include "../Header/DotCloud.h" using namespace std; using namespace dt; vector<Vector3D*> DotCloudReader::GetDotCloud() { vector<Vector3D*> dots = vector<Vector3D*>(); string filename; cout << "Enter name of file in resource dire...
21.861111
91
0.592122
f68e798ccf24936eb3f840fe249eaba7fe6f85b0
143,462
cc
C++
src/net/http/transport_security_state_unittest.cc
godfo/naiveproxy
369269a12832bf34bf01c7b0e7ca121555abd3eb
[ "BSD-3-Clause" ]
1
2021-03-21T10:43:16.000Z
2021-03-21T10:43:16.000Z
src/net/http/transport_security_state_unittest.cc
wclmgcd/naiveproxy
e32a3afb76fd21207c322f2d5e794c4f5505fb59
[ "BSD-3-Clause" ]
null
null
null
src/net/http/transport_security_state_unittest.cc
wclmgcd/naiveproxy
e32a3afb76fd21207c322f2d5e794c4f5505fb59
[ "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/http/transport_security_state.h" #include <algorithm> #include <memory> #include <string> #include <vector> #include "base/base64.h" #...
43.765101
80
0.745751
f68f29acbd82cc84b30bd16c7efba55a367f1f96
16,901
cpp
C++
validation/val_proj_mgi.cpp
TUW-GEO/OGRSpatialRef3D
eb54378eabb885dd1e13616b2eb6b2bde99d90e2
[ "MIT" ]
6
2017-05-12T08:18:27.000Z
2022-01-17T17:16:11.000Z
validation/val_proj_mgi.cpp
TUW-GEO/OGRSpatialRef3D
eb54378eabb885dd1e13616b2eb6b2bde99d90e2
[ "MIT" ]
1
2019-03-07T15:25:14.000Z
2019-03-07T15:25:14.000Z
validation/val_proj_mgi.cpp
TUW-GEO/OGRSpatialRef3D
eb54378eabb885dd1e13616b2eb6b2bde99d90e2
[ "MIT" ]
1
2019-03-05T05:18:51.000Z
2019-03-05T05:18:51.000Z
#include <iostream> #include "validate.h" #include "ogr_spatialref3D.h" using namespace std; void proj_mgi_to_geoc_etrs() { double *r0 = (double*)CPLMalloc(sizeof(double)*num_data); double *r1 = (double*)CPLMalloc(sizeof(double)*num_data); double *r2 = (double*)CPLMalloc(sizeof(double)*num_data); double *r3 = (...
33.401186
84
0.666292
f68f49abca91303347d26557e0e259a5c6a7da5b
635
cpp
C++
example_add.cpp
kongaskristjan/Graph-Executor
9e06bf1fbb6f19817a587a276d8c2103ed3a5b0c
[ "MIT" ]
2
2020-02-09T14:49:41.000Z
2021-03-25T13:31:41.000Z
example_add.cpp
kongaskristjan/Graph-Executor
9e06bf1fbb6f19817a587a276d8c2103ed3a5b0c
[ "MIT" ]
null
null
null
example_add.cpp
kongaskristjan/Graph-Executor
9e06bf1fbb6f19817a587a276d8c2103ed3a5b0c
[ "MIT" ]
1
2020-08-08T23:45:08.000Z
2020-08-08T23:45:08.000Z
#include <example_add.hpp> Integer::Integer(unsigned _x): x(_x) {} std::unique_ptr<Example_result> Integer::clone() const { return std::make_unique<Integer>(x); } unsigned Integer::hash() const { return x; } std::unique_ptr<Example_job> Add::clone() const { return std::make_unique<Add>(); } std::u...
17.162162
62
0.631496
f68f92b1fda57e49b024b497d31673a960eaddac
1,915
cpp
C++
HDUOJ/5749 .cpp
LzyRapx/Competitive-Programming
6b0eea727f9a6444700a6966209397ac7011226f
[ "Apache-2.0" ]
81
2018-06-03T04:27:45.000Z
2020-09-13T09:04:12.000Z
HDUOJ/5749 .cpp
Walkerlzy/Competitive-algorithm
6b0eea727f9a6444700a6966209397ac7011226f
[ "Apache-2.0" ]
null
null
null
HDUOJ/5749 .cpp
Walkerlzy/Competitive-algorithm
6b0eea727f9a6444700a6966209397ac7011226f
[ "Apache-2.0" ]
21
2018-07-11T04:02:38.000Z
2020-07-18T20:31:14.000Z
//#include<bits/stdc++.h> #include<iostream> #include<stdio.h> #include<cstring> #include<string.h> #include<algorithm> #define N 1010 using namespace std; int n,m; int a[N][N]; int stk[N],top; int L[N][N],R[N][N],U[N][N],D[N][N]; int readint() { char c; while((c=getchar())&&!(c>='0' && c<='9')); int...
18.592233
82
0.423499
f68fef444c5cfdd733f080da6c77f65262d5e99b
7,592
cpp
C++
Patches/2TBHardDriveFix.cpp
TheMachineAmbassador/Silent-Hill-2-Enhancements
41650db4a97ca6085db69446e7a20042b344e77f
[ "Zlib" ]
null
null
null
Patches/2TBHardDriveFix.cpp
TheMachineAmbassador/Silent-Hill-2-Enhancements
41650db4a97ca6085db69446e7a20042b344e77f
[ "Zlib" ]
null
null
null
Patches/2TBHardDriveFix.cpp
TheMachineAmbassador/Silent-Hill-2-Enhancements
41650db4a97ca6085db69446e7a20042b344e77f
[ "Zlib" ]
null
null
null
/** * Copyright (C) 2022 Elisha Riedlinger * * This software is provided 'as-is', without any express or implied warranty. In no event will the * authors be held liable for any damages arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, including co...
28.01476
156
0.730374
f690e034b507c7a04207e639898896093439bf1f
2,043
cpp
C++
libgalois/src/SharedMemSys.cpp
swreinehr/katana
9b4eef12dfeb79e35aa07a3a335ce35b3e97c08d
[ "BSD-3-Clause" ]
1
2021-01-29T23:08:11.000Z
2021-01-29T23:08:11.000Z
libgalois/src/SharedMemSys.cpp
swreinehr/katana
9b4eef12dfeb79e35aa07a3a335ce35b3e97c08d
[ "BSD-3-Clause" ]
null
null
null
libgalois/src/SharedMemSys.cpp
swreinehr/katana
9b4eef12dfeb79e35aa07a3a335ce35b3e97c08d
[ "BSD-3-Clause" ]
1
2021-05-06T02:58:13.000Z
2021-05-06T02:58:13.000Z
/* * This file belongs to the Galois project, a C++ library for exploiting * parallelism. The code is being released under the terms of the 3-Clause BSD * License (a copy is located in LICENSE.txt at the top-level directory). * * Copyright (C) 2018, The University of Texas at Austin. All rights reserved. * UNIVER...
36.482143
79
0.752325
f6920f9b8640514e34843d69f9008521f777a6d8
2,637
cc
C++
teslamaxcompute/src/model/ListUserQuotasResult.cc
iamzken/aliyun-openapi-cpp-sdk
3c991c9ca949b6003c8f498ce7a672ea88162bf1
[ "Apache-2.0" ]
89
2018-02-02T03:54:39.000Z
2021-12-13T01:32:55.000Z
teslamaxcompute/src/model/ListUserQuotasResult.cc
sdk-team/aliyun-openapi-cpp-sdk
d0e92f6f33126dcdc7e40f60582304faf2c229b7
[ "Apache-2.0" ]
89
2018-03-14T07:44:54.000Z
2021-11-26T07:43:25.000Z
teslamaxcompute/src/model/ListUserQuotasResult.cc
sdk-team/aliyun-openapi-cpp-sdk
d0e92f6f33126dcdc7e40f60582304faf2c229b7
[ "Apache-2.0" ]
69
2018-01-22T09:45:52.000Z
2022-03-28T07:58:38.000Z
/* * Copyright 2009-2017 Alibaba Cloud 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...
28.978022
75
0.720516
f693faed2fa13f8a30f02c5195be0d41f3fed194
2,727
cpp
C++
InputSystem.cpp
GuMiner/Octocad
2858d777e5db177e1fbddf7653ba052a4fa31855
[ "MIT" ]
null
null
null
InputSystem.cpp
GuMiner/Octocad
2858d777e5db177e1fbddf7653ba052a4fa31855
[ "MIT" ]
null
null
null
InputSystem.cpp
GuMiner/Octocad
2858d777e5db177e1fbddf7653ba052a4fa31855
[ "MIT" ]
null
null
null
#include "stdafx.h" #include "InputSystem.h" InputSystem::ResizeEventData InputSystem::resizeEvent; InputSystem::KeyTypedData InputSystem::keyTypedEvent; bool InputSystem::addCubeButton; bool InputSystem::removeCubeButton; void InputSystem::Initialize(void) { // Setup all the event handlers to indicate that nothi...
25.971429
153
0.658599
f695bf08a6e1fe8b8e0122ed3a68fbd5fef0022d
2,255
cc
C++
ui/events/keycodes/dom/dom_keyboard_layout_map_base.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ui/events/keycodes/dom/dom_keyboard_layout_map_base.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
ui/events/keycodes/dom/dom_keyboard_layout_map_base.cc
sarang-apps/darshan_browser
173649bb8a7c656dc60784d19e7bb73e07c20daa
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/keycodes/dom/dom_keyboard_layout_map_base.h" #include <cstdint> #include <memory> #include <string> #include "base/logging.h" #inclu...
32.681159
80
0.729047
f69670e9bba94a0940efdd396cccc78b1f376b25
568
hpp
C++
bolt/server/include/azure_handler.hpp
gamunu/bolt
c1a2956f02656f3ec2c244486a816337126905ae
[ "Apache-2.0" ]
1
2022-03-06T09:23:56.000Z
2022-03-06T09:23:56.000Z
bolt/server/include/azure_handler.hpp
gamunu/bolt
c1a2956f02656f3ec2c244486a816337126905ae
[ "Apache-2.0" ]
3
2021-04-23T18:12:20.000Z
2021-04-23T18:12:47.000Z
bolt/server/include/azure_handler.hpp
gamunu/bolt
c1a2956f02656f3ec2c244486a816337126905ae
[ "Apache-2.0" ]
null
null
null
#pragma once #include <azure_entity.h> #include <cpprest/http_msg.h> #include <cpprest/json.h> #include <permissions.hpp> using namespace web; using namespace bolt::storage; class AzureHandler { public: AzureHandler(const http::http_request &request, http::method method); void InitializeHandlers(); void HandleGe...
23.666667
101
0.767606
f696d08d2e5a8791da077fb4ef0c748897dbd2c5
17,889
cpp
C++
gdal/port/cpl_vsil_cache.cpp
nyalldawson/gdal
312cfe2d6fc564af4558279cc8f321d6e2a687ad
[ "MIT" ]
1
2017-08-23T13:32:41.000Z
2017-08-23T13:32:41.000Z
gdal/port/cpl_vsil_cache.cpp
norBIT/gdal
64855dbee2cd0dff47da11d916c8d2703b4e99b8
[ "MIT" ]
null
null
null
gdal/port/cpl_vsil_cache.cpp
norBIT/gdal
64855dbee2cd0dff47da11d916c8d2703b4e99b8
[ "MIT" ]
null
null
null
/****************************************************************************** * * Project: VSI Virtual File System * Purpose: Implementation of caching IO layer. * Author: Frank Warmerdam, warmerdam@pobox.com * ****************************************************************************** * Copyright (c) 2...
32.644161
82
0.4396
f6976aedf6b9bbddd3be610d5c54f27f48ee6566
9,535
cc
C++
test/extensions/filters/network/common/fuzz/uber_per_readfilter.cc
xiaobinxbw/envoy
4e1146ba4c55ad0ef89e5cf51a0046b998812aa1
[ "Apache-2.0" ]
5
2020-11-30T15:36:04.000Z
2022-02-28T00:30:28.000Z
test/extensions/filters/network/common/fuzz/uber_per_readfilter.cc
xiaobinxbw/envoy
4e1146ba4c55ad0ef89e5cf51a0046b998812aa1
[ "Apache-2.0" ]
86
2020-06-23T13:00:46.000Z
2022-03-28T19:08:58.000Z
test/extensions/filters/network/common/fuzz/uber_per_readfilter.cc
xiaobinxbw/envoy
4e1146ba4c55ad0ef89e5cf51a0046b998812aa1
[ "Apache-2.0" ]
12
2020-07-14T23:59:57.000Z
2022-03-22T09:59:18.000Z
#include "envoy/extensions/filters/network/direct_response/v3/config.pb.h" #include "envoy/extensions/filters/network/local_ratelimit/v3/local_rate_limit.pb.h" #include "envoy/extensions/filters/network/thrift_proxy/v3/thrift_proxy.pb.h" #include "extensions/filters/common/ratelimit/ratelimit_impl.h" #include "extensi...
54.485714
100
0.708862
f697c83502c405c20b185e2da948e2300e0fef15
3,984
cc
C++
server/be/src/testutil/desc-tbl-builder.cc
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
null
null
null
server/be/src/testutil/desc-tbl-builder.cc
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
null
null
null
server/be/src/testutil/desc-tbl-builder.cc
drankye/recordservice
ced33a1565b7ab3a25f6cb7cdcf623a26e7b3ec0
[ "Apache-2.0" ]
2
2019-09-22T07:59:28.000Z
2021-02-25T21:56:07.000Z
// Copyright 2012 Cloudera 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 wr...
34.947368
88
0.746988
f69ac45c71395e427977c247d919709b180a7add
8,054
cc
C++
processors/IA32/bochs/cpu/ret_far.cc
pavel-krivanek/opensmalltalk-vm
694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16
[ "MIT" ]
445
2016-06-30T08:19:11.000Z
2022-03-28T06:09:49.000Z
processors/IA32/bochs/cpu/ret_far.cc
pavel-krivanek/opensmalltalk-vm
694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16
[ "MIT" ]
439
2016-06-29T20:14:36.000Z
2022-03-17T19:59:58.000Z
processors/IA32/bochs/cpu/ret_far.cc
pavel-krivanek/opensmalltalk-vm
694dfe3ed015e16f5b8e9cf17d37e4bdd32bea16
[ "MIT" ]
137
2016-07-02T17:32:07.000Z
2022-03-20T11:17:25.000Z
//////////////////////////////////////////////////////////////////////// // $Id: ret_far.cc,v 1.20 2008/06/13 08:02:22 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (c) 2005 Stanislav Shwartsman // Written by Stanislav Shwartsman [sshwarts at sourcef...
35.480176
88
0.610256
f69ae147fa25a0a559ab792038bd0fc3a9a601c3
4,326
cc
C++
chrome/common/extensions/api/extension_action/browser_action_manifest_unittest.cc
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/api/extension_action/browser_action_manifest_unittest.cc
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/common/extensions/api/extension_action/browser_action_manifest_unittest.cc
tmpsantos/chromium
802d4aeeb33af25c01ee5994037bbf14086d4ac0
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/extensions/api/extension_action/action_info.h" #include "chrome/common/extensions/manifest_tests/extension_manifest_test.h" #i...
37.947368
78
0.664355
f69bc182c6507f6f4de1e51fed57dd4ec398298c
1,350
cpp
C++
3rdParty/boost/1.71.0/libs/signals2/example/ordering_slots.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
12,278
2015-01-29T17:11:33.000Z
2022-03-31T21:12:00.000Z
3rdParty/boost/1.71.0/libs/signals2/example/ordering_slots.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
9,469
2015-01-30T05:33:07.000Z
2022-03-31T16:17:21.000Z
3rdParty/boost/1.71.0/libs/signals2/example/ordering_slots.cpp
rajeev02101987/arangodb
817e6c04cb82777d266f3b444494140676da98e2
[ "Apache-2.0" ]
892
2015-01-29T16:26:19.000Z
2022-03-20T07:44:30.000Z
// Ordered slots hello world example for Boost.Signals2 // Copyright Douglas Gregor 2001-2004. // Copyright Frank Mori Hess 2009. // // Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.tx...
21.428571
65
0.678519
f69d1ab78a1e2fe9ffa7ad4f17bfdbae4d80e7f4
20,958
cpp
C++
Source/main.cpp
sparks-c16/zasm
c03a31c6d7ec2c2aecb1d6dc6b4ced73b7cf00c4
[ "BSD-2-Clause" ]
43
2019-12-06T23:46:40.000Z
2022-03-31T15:34:44.000Z
Source/main.cpp
sparks-c16/zasm
c03a31c6d7ec2c2aecb1d6dc6b4ced73b7cf00c4
[ "BSD-2-Clause" ]
21
2019-12-27T01:49:08.000Z
2022-03-31T15:38:42.000Z
Source/main.cpp
sparks-c16/zasm
c03a31c6d7ec2c2aecb1d6dc6b4ced73b7cf00c4
[ "BSD-2-Clause" ]
13
2019-12-27T00:38:46.000Z
2022-03-15T08:34:51.000Z
/* Copyright (c) Günter Woigk 1994 - 2021 mailto:kio@little-bat.de This file is free software This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Permission to use, copy, modify,...
30.865979
124
0.615946
f69e781bf8eb0f31d0eea18483a411b14900b2ef
293
cpp
C++
27-remove-element/27-remove-element.cpp
Edith-panda/leetcode
175b4cbcd25b95b4863d793c876719eabb94dafc
[ "Apache-2.0" ]
null
null
null
27-remove-element/27-remove-element.cpp
Edith-panda/leetcode
175b4cbcd25b95b4863d793c876719eabb94dafc
[ "Apache-2.0" ]
null
null
null
27-remove-element/27-remove-element.cpp
Edith-panda/leetcode
175b4cbcd25b95b4863d793c876719eabb94dafc
[ "Apache-2.0" ]
null
null
null
class Solution { public: int removeElement(vector<int>& nums, int val) { int n = nums.size(); int k{0}; for(int i=0;i<n;i++){ if(nums[i] != val){ nums[k] = nums[i]; k++; } } return k; } };
20.928571
51
0.375427
f69eb41d92b39972d172e2b3a5de6be6635dcd0d
2,956
cpp
C++
HugeCTR/src/model_oversubscriber/parameter_server.cpp
xmh645214784/HugeCTR-1
de4e850ef9993998c3a69ff1f2af64bed528989f
[ "Apache-2.0" ]
null
null
null
HugeCTR/src/model_oversubscriber/parameter_server.cpp
xmh645214784/HugeCTR-1
de4e850ef9993998c3a69ff1f2af64bed528989f
[ "Apache-2.0" ]
null
null
null
HugeCTR/src/model_oversubscriber/parameter_server.cpp
xmh645214784/HugeCTR-1
de4e850ef9993998c3a69ff1f2af64bed528989f
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
32.130435
77
0.734777
f6a011cd5857a6a1ecd43ba20c536bc22ff0ff91
19,031
cxx
C++
osprey/be/lno/lego_skew.cxx
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/be/lno/lego_skew.cxx
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
osprey/be/lno/lego_skew.cxx
sharugupta/OpenUH
daddd76858a53035f5d713f648d13373c22506e8
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved. */ /* Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the F...
36.249524
79
0.600967
f6a3411d6f39dea8e79f61e4068d9d648d91a4a2
3,104
cpp
C++
ntuj/pd.cpp
dk00/old-stuff
e1184684c85fe9bbd1ceba58b94d4da84c67784e
[ "Unlicense" ]
null
null
null
ntuj/pd.cpp
dk00/old-stuff
e1184684c85fe9bbd1ceba58b94d4da84c67784e
[ "Unlicense" ]
null
null
null
ntuj/pd.cpp
dk00/old-stuff
e1184684c85fe9bbd1ceba58b94d4da84c67784e
[ "Unlicense" ]
null
null
null
#include <stdio.h> #include <algorithm> #include <map> #include <set> using namespace std; int a[1005][4]; int siz[1005]; int n; int r[4]; class Event { public: int t, L, R, v; Event(int tt=0, int ll=0, int rr=0, int vv=0) { t = tt; L = ll; R = rr; v=vv; } bool operator<(const Event &e) const ...
20.693333
64
0.451675
f6a4cf1d4635dc4473d051a919d0a1b73d62511f
21,317
cpp
C++
drake/systems/plants/constraint/updatePtrRigidBodyConstraintmex.cpp
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
4
2018-04-16T09:54:52.000Z
2021-03-29T21:59:27.000Z
drake/systems/plants/constraint/updatePtrRigidBodyConstraintmex.cpp
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
null
null
null
drake/systems/plants/constraint/updatePtrRigidBodyConstraintmex.cpp
ericmanzi/double_pendulum_lqr
76bba3091295abb7d412c4a3156258918f280c96
[ "BSD-3-Clause" ]
1
2017-08-24T20:32:03.000Z
2017-08-24T20:32:03.000Z
#include "mex.h" #include <iostream> #include "drakeMexUtil.h" #include <Eigen/Dense> #include "RigidBodyConstraint.h" #include "RigidBodyManipulator.h" #include "constructPtrRigidBodyConstraint.h" #include <cstdio> using namespace Eigen; using namespace std; void mexFunction(int nlhs, mxArray *plhs[],int nrhs, const...
44.410417
217
0.663836
f6a5c9741de6bc6238efa71d1d0ea5f395a11da3
382
hpp
C++
endscreen.hpp
hckr/space-logic-adventure
7465c7ffb70b0488ce4ff88620e3d35742f4fb06
[ "MIT" ]
6
2017-09-15T16:15:03.000Z
2020-01-09T04:31:26.000Z
endscreen.hpp
hckr/space-logic-adventure
7465c7ffb70b0488ce4ff88620e3d35742f4fb06
[ "MIT" ]
null
null
null
endscreen.hpp
hckr/space-logic-adventure
7465c7ffb70b0488ce4ff88620e3d35742f4fb06
[ "MIT" ]
1
2017-12-05T05:22:02.000Z
2017-12-05T05:22:02.000Z
#pragma once #include "screen.hpp" class EndScreen : public Screen { sf::Sprite &background_sp; public: EndScreen(const sf::Font &font, sf::Sprite &background_sp, const sf::Color &fillColor, const sf::Color &outlineColor); virtual void processEvent(const sf::Event &event); private: virtual void draw...
23.875
122
0.722513
f6a792c580f12c591efe40f0c0b6d102af530cee
6,230
cpp
C++
Ch17_Any/any.cpp
jamcodes/Cpp17CompleteGuide
a21ca5c3f5069b501cd650aa62e5e623bd2c953b
[ "Unlicense" ]
3
2020-10-03T05:51:00.000Z
2021-08-24T07:45:28.000Z
Ch17_Any/any.cpp
jamcodes/Cpp17CompleteGuide
a21ca5c3f5069b501cd650aa62e5e623bd2c953b
[ "Unlicense" ]
null
null
null
Ch17_Any/any.cpp
jamcodes/Cpp17CompleteGuide
a21ca5c3f5069b501cd650aa62e5e623bd2c953b
[ "Unlicense" ]
null
null
null
#include <any> #include <complex> #include <iostream> #include <string> #include <type_traits> #include <utility> /** * C++17 adds `std::any` - a value type that's able to change its type, but while still having * type safety. std::any accepts an arbitrary type - it holds the contained value and the * `typeid` of i...
47.557252
100
0.539165
f6a7a9f29c01577d793fcdde80895ee9b923d939
2,294
hpp
C++
src/proteus/buffers/vart_tensor_buffer.hpp
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
4
2021-11-03T21:32:55.000Z
2022-02-17T17:13:16.000Z
src/proteus/buffers/vart_tensor_buffer.hpp
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
null
null
null
src/proteus/buffers/vart_tensor_buffer.hpp
Xilinx/inference-server
7477b7dc420ce4cd0d7e1d9914b71898e97d6814
[ "Apache-2.0" ]
2
2022-03-05T20:01:33.000Z
2022-03-25T06:00:35.000Z
// Copyright 2021 Xilinx 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...
29.792208
79
0.674804
f6a84b44170f6780b060af9af546b2d1281bc8f0
39,046
cpp
C++
lldb/source/API/SBFrame.cpp
ornata/llvm-project
494913b8b4e4bce0b3525e5569d8e486e82b9a52
[ "Apache-2.0" ]
null
null
null
lldb/source/API/SBFrame.cpp
ornata/llvm-project
494913b8b4e4bce0b3525e5569d8e486e82b9a52
[ "Apache-2.0" ]
null
null
null
lldb/source/API/SBFrame.cpp
ornata/llvm-project
494913b8b4e4bce0b3525e5569d8e486e82b9a52
[ "Apache-2.0" ]
null
null
null
//===-- SBFrame.cpp -------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
30.174652
80
0.663423
f6a8f77ef303928846e002771b03a2ea9d99d7ba
3,964
cpp
C++
samples/snippets/cpp/VS_Snippets_CLR_System/system.Threading.WaitHandle.SignalAndWait/CPP/source.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
421
2018-04-01T01:57:50.000Z
2022-03-28T15:24:42.000Z
samples/snippets/cpp/VS_Snippets_CLR_System/system.Threading.WaitHandle.SignalAndWait/CPP/source.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
5,797
2018-04-02T21:12:23.000Z
2022-03-31T23:54:38.000Z
samples/snippets/cpp/VS_Snippets_CLR_System/system.Threading.WaitHandle.SignalAndWait/CPP/source.cpp
hamarb123/dotnet-api-docs
6aeb55784944a2f1f5e773b657791cbd73a92dd4
[ "CC-BY-4.0", "MIT" ]
1,482
2018-03-31T11:26:20.000Z
2022-03-30T22:36:45.000Z
//<Snippet1> using namespace System; using namespace System::Threading; public ref class Example { private: // The EventWaitHandle used to demonstrate the difference // between AutoReset and ManualReset synchronization events. // static EventWaitHandle^ ewh; // A counter to make sure all th...
31.460317
76
0.590565
f6a91aac49d8a5f1f2484a3b929887c3fbab30fb
9,874
cpp
C++
src/postprocess/buildex/trees/src/comp_abs_tree.cpp
Baltoli/He-2
c3b20da61d8e0d4878e530fe26affa2ec4a4e717
[ "MIT" ]
null
null
null
src/postprocess/buildex/trees/src/comp_abs_tree.cpp
Baltoli/He-2
c3b20da61d8e0d4878e530fe26affa2ec4a4e717
[ "MIT" ]
null
null
null
src/postprocess/buildex/trees/src/comp_abs_tree.cpp
Baltoli/He-2
c3b20da61d8e0d4878e530fe26affa2ec4a4e717
[ "MIT" ]
null
null
null
#include <trees/nodes.h> #include <trees/trees.h> #include <analysis/x86_analysis.h> #include <utility/defines.h> #include <utility/print_helper.h> #include <common/utilities.h> #include <cassert> #include <fstream> #include <iostream> using namespace std; Comp_Abs_Tree::Comp_Abs_Tree() : Tree() { } Comp_Abs...
27.351801
80
0.62224
f6a952885326d1669197397be784d58e1b05c496
2,463
cpp
C++
rmw_coredx_cpp/src/rmw_send_response.cpp
rupertholman/rmw_coredx
1c97655212bfa90b1353f019ae08e8b2c487db8d
[ "Apache-2.0" ]
null
null
null
rmw_coredx_cpp/src/rmw_send_response.cpp
rupertholman/rmw_coredx
1c97655212bfa90b1353f019ae08e8b2c487db8d
[ "Apache-2.0" ]
null
null
null
rmw_coredx_cpp/src/rmw_send_response.cpp
rupertholman/rmw_coredx
1c97655212bfa90b1353f019ae08e8b2c487db8d
[ "Apache-2.0" ]
null
null
null
// Copyright 2015 Twin Oaks Computing, Inc. // Modifications copyright (C) 2017-2018 Twin Oaks Computing, 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....
27.366667
80
0.710922
f6a9ee0167f5639b7b97c28fce5f0bd35fa9ca19
999
hpp
C++
src/transmission/reliable/containers/connection_list_vector.hpp
rnascunha/coap-te
eaff16162b1a524ad06e18dbdc79ca4c8658b3a8
[ "MIT" ]
null
null
null
src/transmission/reliable/containers/connection_list_vector.hpp
rnascunha/coap-te
eaff16162b1a524ad06e18dbdc79ca4c8658b3a8
[ "MIT" ]
null
null
null
src/transmission/reliable/containers/connection_list_vector.hpp
rnascunha/coap-te
eaff16162b1a524ad06e18dbdc79ca4c8658b3a8
[ "MIT" ]
null
null
null
#ifndef COAP_TE_TRANSMISSION_RELIABLE_CONNECTION_LIST_VECTOR_HPP__ #define COAP_TE_TRANSMISSION_RELIABLE_CONNECTION_LIST_VECTOR_HPP__ #include "defines/defaults.hpp" #include <vector> namespace CoAP{ namespace Transmission{ namespace Reliable{ #if COAP_TE_RELIABLE_CONNECTION == 1 template<typename Connection> class...
22.704545
71
0.795796
f6adb26915396c08b1ef61a8f04e435af4cf441b
2,503
cpp
C++
src/libv/update/resource_server/resource_server_state.cpp
cpplibv/libv
293e382f459f0acbc540de8ef6283782b38d2e63
[ "Zlib" ]
2
2018-04-11T03:07:03.000Z
2019-03-29T15:24:12.000Z
src/libv/update/resource_server/resource_server_state.cpp
cpplibv/libv
293e382f459f0acbc540de8ef6283782b38d2e63
[ "Zlib" ]
null
null
null
src/libv/update/resource_server/resource_server_state.cpp
cpplibv/libv
293e382f459f0acbc540de8ef6283782b38d2e63
[ "Zlib" ]
1
2021-06-13T06:39:06.000Z
2021-06-13T06:39:06.000Z
// Project: libv.update, File: src/libv/update/resource_server/resource_server_state.cpp, Author: Császár Mátyás [Vader] // hpp #include <libv/update/resource_server/resource_server_state.lpp> // libv //#include <libv/mt/worker_thread_pool.hpp> #include <libv/algo/linear_find.hpp> // pro //#include <libv/update/log.hp...
30.901235
141
0.669996
f6ae03f6f2e1b2b068102cc6808f63ba1bd70cf3
26,474
cpp
C++
folly/experimental/io/test/IoUringBackendTest.cpp
asklar/folly
a24e4441f972cc9ab8a8cb350d701e9d87826a48
[ "MIT" ]
null
null
null
folly/experimental/io/test/IoUringBackendTest.cpp
asklar/folly
a24e4441f972cc9ab8a8cb350d701e9d87826a48
[ "MIT" ]
null
null
null
folly/experimental/io/test/IoUringBackendTest.cpp
asklar/folly
a24e4441f972cc9ab8a8cb350d701e9d87826a48
[ "MIT" ]
null
null
null
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
27.808824
80
0.666881
f6b1a98679a68b621131ef5a6c6e3c143a4eff56
10,792
cc
C++
hippy/core/napi/jsc/js-native-api-jsc.cc
XiaoWuTongZhi/TencentOldHippy
935da8d4ef978b64d7c0dc0b7d2f067b0f118f21
[ "MIT" ]
null
null
null
hippy/core/napi/jsc/js-native-api-jsc.cc
XiaoWuTongZhi/TencentOldHippy
935da8d4ef978b64d7c0dc0b7d2f067b0f118f21
[ "MIT" ]
null
null
null
hippy/core/napi/jsc/js-native-api-jsc.cc
XiaoWuTongZhi/TencentOldHippy
935da8d4ef978b64d7c0dc0b7d2f067b0f118f21
[ "MIT" ]
null
null
null
/* * * Tencent is pleased to support the open source community by making * Hippy available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. * 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. *...
33.206154
80
0.693291
f6b4e82a88ed97388d7b516986ff163a97040535
11,683
cpp
C++
lldb/source/Target/UnixSignals.cpp
lforg37/sycl
0804265491788808e1218dbda086c22ecc971ac2
[ "Apache-2.0" ]
null
null
null
lldb/source/Target/UnixSignals.cpp
lforg37/sycl
0804265491788808e1218dbda086c22ecc971ac2
[ "Apache-2.0" ]
null
null
null
lldb/source/Target/UnixSignals.cpp
lforg37/sycl
0804265491788808e1218dbda086c22ecc971ac2
[ "Apache-2.0" ]
null
null
null
//===-- UnixSignals.cpp ---------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
36.85489
114
0.651887
f6b502462e3b6fca862663fd62725d11a8921bff
512
hpp
C++
kizunano/node/openclconfig.hpp
kizunanocoin/node
c6013e7e992ab75432db58da05054b381f821566
[ "BSD-3-Clause" ]
1
2021-08-16T06:41:05.000Z
2021-08-16T06:41:05.000Z
kizunano/node/openclconfig.hpp
kizunanocoin/node
c6013e7e992ab75432db58da05054b381f821566
[ "BSD-3-Clause" ]
null
null
null
kizunano/node/openclconfig.hpp
kizunanocoin/node
c6013e7e992ab75432db58da05054b381f821566
[ "BSD-3-Clause" ]
null
null
null
#pragma once #include <kizunano/lib/errors.hpp> namespace nano { class jsonconfig; class tomlconfig; class opencl_config { public: opencl_config () = default; opencl_config (unsigned, unsigned, unsigned); nano::error serialize_json (nano::jsonconfig &) const; nano::error deserialize_json (nano::jsonconfig &); na...
22.26087
55
0.738281
f6b7587ba9fbbcadc46a0c2b9475007dd2f6e86a
1,029
hpp
C++
src/common/ObjectCounter.hpp
halfmvsq/histolozee
c624c0d7c3a70bcc0d6aac87b4f24677e064b6a5
[ "Apache-2.0" ]
null
null
null
src/common/ObjectCounter.hpp
halfmvsq/histolozee
c624c0d7c3a70bcc0d6aac87b4f24677e064b6a5
[ "Apache-2.0" ]
null
null
null
src/common/ObjectCounter.hpp
halfmvsq/histolozee
c624c0d7c3a70bcc0d6aac87b4f24677e064b6a5
[ "Apache-2.0" ]
null
null
null
#ifndef OBJECT_COUNTER_H #define OBJECT_COUNTER_H #include <cstddef> /** * @brief Template class for couynting the number of objects of type T created and * currently allocated (a.k.a. the number of objects that are "alive"). */ template< class T > class ObjectCounter { public: ObjectCounter() { ...
17.440678
82
0.643343
f6b7d08455d438f2eadf35aec37123afe6dddc76
7,066
cpp
C++
src/third_party/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/bugpoint.cpp
rhencke/engine
1016db292c4e73374a0a11536b18303c9522a224
[ "BSD-3-Clause" ]
171
2018-09-17T13:15:12.000Z
2022-03-18T03:47:04.000Z
src/third_party/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/bugpoint.cpp
rhencke/engine
1016db292c4e73374a0a11536b18303c9522a224
[ "BSD-3-Clause" ]
51
2019-10-23T11:55:08.000Z
2021-12-21T06:32:11.000Z
src/third_party/swiftshader/third_party/llvm-7.0/llvm/tools/bugpoint/bugpoint.cpp
rhencke/engine
1016db292c4e73374a0a11536b18303c9522a224
[ "BSD-3-Clause" ]
35
2018-09-18T07:46:53.000Z
2022-03-27T07:59:48.000Z
//===- bugpoint.cpp - The LLVM Bugpoint utility ---------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
31.972851
80
0.67563
f6b7db89f95706cacaf98bde69476ecada5c9f8c
3,271
cpp
C++
external/skia/src/gpu/SkGLContext.cpp
gordonjohnpatrick/XobotOS
888ed3b8cc8d8e0a54b1858bfa5a3572545f4d2f
[ "Apache-2.0" ]
263
2015-01-04T16:39:18.000Z
2022-01-05T17:52:38.000Z
external/skia/src/gpu/SkGLContext.cpp
DooMLoRD/XobotOS
f20db6295e878a2f298c5e3896528e240785805b
[ "Apache-2.0" ]
3
2015-09-06T09:06:39.000Z
2019-10-15T00:52:49.000Z
external/skia/src/gpu/SkGLContext.cpp
DooMLoRD/XobotOS
f20db6295e878a2f298c5e3896528e240785805b
[ "Apache-2.0" ]
105
2015-01-11T11:45:12.000Z
2022-02-22T07:26:36.000Z
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkGLContext.h" SkGLContext::SkGLContext() : fFBO(0) , fGL(NULL) { } SkGLContext::~SkGLContext() { SkSafeUnref(fGL); } bool SkGLContext::init(int width...
35.945055
73
0.46897
f6b898fa886a2a244ec1a0929b6e5630d3ea60e9
3,924
cpp
C++
vstgui/tests/unittest/uidescription/uiviewcreator/uiviewswitchcontainercreator_test.cpp
GizzZmo/vstgui
477a3de78ecbcf25f52cce9ad49c5feb0b15ea9e
[ "BSD-3-Clause" ]
205
2019-06-09T18:40:27.000Z
2022-03-24T01:53:49.000Z
vstgui/tests/unittest/uidescription/uiviewcreator/uiviewswitchcontainercreator_test.cpp
GizzZmo/vstgui
477a3de78ecbcf25f52cce9ad49c5feb0b15ea9e
[ "BSD-3-Clause" ]
9
2019-12-23T17:46:30.000Z
2022-02-09T14:40:53.000Z
vstgui/tests/unittest/uidescription/uiviewcreator/uiviewswitchcontainercreator_test.cpp
GizzZmo/vstgui
477a3de78ecbcf25f52cce9ad49c5feb0b15ea9e
[ "BSD-3-Clause" ]
30
2019-06-11T04:05:46.000Z
2022-03-29T15:52:14.000Z
// This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #include "../../unittests.h" #include "../../../../uidescription/uiviewfactory.h" #include "../../../../uidescriptio...
43.120879
148
0.756371
f6b9723d3c1fe3bb0fc528b8d869ef2a91e31de2
1,695
hpp
C++
headers/nnb/graphics/Text.hpp
bobismijnnaam/nutsnbolts
40191668b0831c64ce23474b9886f8be888916b3
[ "BSL-1.0", "Zlib", "MIT" ]
null
null
null
headers/nnb/graphics/Text.hpp
bobismijnnaam/nutsnbolts
40191668b0831c64ce23474b9886f8be888916b3
[ "BSL-1.0", "Zlib", "MIT" ]
null
null
null
headers/nnb/graphics/Text.hpp
bobismijnnaam/nutsnbolts
40191668b0831c64ce23474b9886f8be888916b3
[ "BSL-1.0", "Zlib", "MIT" ]
null
null
null
// File: Text.hpp // Author: Bob Rubbens - Knights of the Compiler // Creation date: 2014-07-21 // Contact: http://plusminos.nl - @broervanlisa - gmail (bobrubbens) #ifndef NNB_TEXT_HPP #define NNB_TEXT_HPP // Public #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <string> #include <memory> //...
20.178571
69
0.651327
f6ba628ba26a5c181735eb62e94c57d964617200
1,196
hh
C++
src/include/simeng/SpecialFileDirGen.hh
ABagdia/SimEng
63b52fbb6e07c75100e03a153191b9c548f537c5
[ "Apache-2.0" ]
null
null
null
src/include/simeng/SpecialFileDirGen.hh
ABagdia/SimEng
63b52fbb6e07c75100e03a153191b9c548f537c5
[ "Apache-2.0" ]
null
null
null
src/include/simeng/SpecialFileDirGen.hh
ABagdia/SimEng
63b52fbb6e07c75100e03a153191b9c548f537c5
[ "Apache-2.0" ]
null
null
null
#pragma once #include <fstream> #include <string> #include "simeng/version.hh" #include "yaml-cpp/yaml.h" namespace simeng { class SpecialFileDirGen { public: /** Construct a SpecialFileDirGen class by reading in the YAML file and * running it through checks and formatting. */ SpecialFileDirGen(YAML::Node co...
27.181818
79
0.736622
f6bab752300a52ef41e8bebb4ef29bbca54b7f4b
14,493
cpp
C++
deps/opende/src/matrix.cpp
harderthan/gazebo
f00a0e4239ddb08b299dc21ab1ef106ecedb0fac
[ "ECL-2.0", "Apache-2.0" ]
45
2015-07-17T10:14:22.000Z
2022-03-30T19:25:36.000Z
deps/opende/src/matrix.cpp
harderthan/gazebo
f00a0e4239ddb08b299dc21ab1ef106ecedb0fac
[ "ECL-2.0", "Apache-2.0" ]
20
2017-07-20T21:04:49.000Z
2017-10-19T19:32:38.000Z
deps/opende/src/matrix.cpp
harderthan/gazebo
f00a0e4239ddb08b299dc21ab1ef106ecedb0fac
[ "ECL-2.0", "Apache-2.0" ]
64
2015-04-18T07:10:14.000Z
2022-02-21T13:15:41.000Z
/************************************************************************* * * * Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. * * All rights reserved. Email: russ@q12.org Web: www.q12.org * * ...
27.19137
115
0.524598
f6bb49020fee547463ff70db0cf490442dd38aeb
12,838
cpp
C++
SkullCode/cocos2d/cocos/editor-support/cocostudio/CCTween.cpp
RYPTAR/SkullCode
191cef3f7fbc541ed3257d9c36da805ff9a8675e
[ "MIT" ]
120
2018-12-25T03:13:01.000Z
2022-03-11T10:31:16.000Z
SkullCode/cocos2d/cocos/editor-support/cocostudio/CCTween.cpp
RYPTAR/SkullCode
191cef3f7fbc541ed3257d9c36da805ff9a8675e
[ "MIT" ]
1
2019-09-09T12:26:45.000Z
2019-09-09T12:26:45.000Z
Alchemy/cocos2d/cocos/editor-support/cocostudio/CCTween.cpp
kkh029/Alchemy
ed3d96452508b6cf5680392028bef409dd8d78f1
[ "Apache-2.0" ]
98
2019-02-20T01:14:46.000Z
2022-03-22T16:20:51.000Z
/**************************************************************************** Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org 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 Sof...
26.307377
115
0.575635
f6bfc219287580854a81114b9818fe52b11ae79d
1,466
cpp
C++
test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.pass.cpp
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
15
2019-08-05T01:24:20.000Z
2022-01-12T08:19:55.000Z
test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.pass.cpp
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
21
2020-02-05T11:09:56.000Z
2020-03-26T18:09:09.000Z
test/std/utilities/time/time.cal/time.cal.weekday/time.cal.weekday.members/ctor.pass.cpp
AOSiP/platform_external_libcxx
eb2115113f10274c0d25523ba44c3c7373ea3209
[ "MIT" ]
14
2017-01-21T00:56:32.000Z
2022-02-24T11:27:38.000Z
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
28.192308
80
0.579809
f6c10d358f79386e866cc417c1aa8ebf68cc00ec
997
cpp
C++
liero/menu/menuItem.cpp
lauri-kaariainen/emscripten_openliero
ab3268237c7084e00f3bccb4442f0ad7762d8419
[ "BSD-2-Clause" ]
null
null
null
liero/menu/menuItem.cpp
lauri-kaariainen/emscripten_openliero
ab3268237c7084e00f3bccb4442f0ad7762d8419
[ "BSD-2-Clause" ]
2
2015-02-11T09:43:33.000Z
2015-02-11T17:57:58.000Z
liero/menu/menuItem.cpp
lauri-kaariainen/emscripten_openliero
ab3268237c7084e00f3bccb4442f0ad7762d8419
[ "BSD-2-Clause" ]
null
null
null
#include "menuItem.hpp" #include "../common.hpp" #include "../gfx.hpp" void MenuItem::draw(Common& common, int x, int y, bool selected, bool disabled, bool centered, int valueOffsetX) { int wid = common.font.getDims(string); int valueWid = common.font.getDims(value); if(centered) x -= (wid >> 1); ...
24.925
113
0.616851
f6c29374b28262912e0144e2a97440dd55987a66
844
hpp
C++
include/retirement.hpp
FORGIS98/budgetwarrior
ca4c79a7b9694a0db5c7fe11b1b4e9cba96a9971
[ "MIT" ]
null
null
null
include/retirement.hpp
FORGIS98/budgetwarrior
ca4c79a7b9694a0db5c7fe11b1b4e9cba96a9971
[ "MIT" ]
null
null
null
include/retirement.hpp
FORGIS98/budgetwarrior
ca4c79a7b9694a0db5c7fe11b1b4e9cba96a9971
[ "MIT" ]
null
null
null
//======================================================================= // Copyright (c) 2013-2020 Baptiste Wicht. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //=================================================================...
24.823529
73
0.598341
f6c2b9c2ec912ae60fbe2575ab6df525a15b65bd
1,544
cc
C++
chrome/browser/android/webapk/webapk_metrics.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/android/webapk/webapk_metrics.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/android/webapk/webapk_metrics.cc
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/android/webapk/webapk_metrics.h" #include "base/metrics/histogram_macros.h" #include "base/time/time.h" #include "chrome/browser...
34.311111
80
0.799223
f6c66c2b003609a8a897b37c776863a23407bbee
18,259
cc
C++
paddle/fluid/inference/api/analysis_predictor_tester.cc
JingChunzhen/Paddle
1bce7caabc1c5e55b1fa13edb19719c397803c43
[ "Apache-2.0" ]
2
2021-02-04T15:04:21.000Z
2021-02-07T14:20:00.000Z
paddle/fluid/inference/api/analysis_predictor_tester.cc
hexieshenghuo/Paddle
2497f4392fe60f4c72e9b7ff5de9b8b6117aacac
[ "Apache-2.0" ]
null
null
null
paddle/fluid/inference/api/analysis_predictor_tester.cc
hexieshenghuo/Paddle
2497f4392fe60f4c72e9b7ff5de9b8b6117aacac
[ "Apache-2.0" ]
1
2021-03-16T13:40:08.000Z
2021-03-16T13:40:08.000Z
// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
32.839928
80
0.708418
f6c6e83606df8fbe4bde2fb8f25789dc95d301c1
20,338
cpp
C++
velox/expression/tests/CastExprTest.cpp
littleeleventhwolf/velox
856d1f91f7da09a9313c893e12adb0070ddd3fb9
[ "Apache-2.0" ]
null
null
null
velox/expression/tests/CastExprTest.cpp
littleeleventhwolf/velox
856d1f91f7da09a9313c893e12adb0070ddd3fb9
[ "Apache-2.0" ]
23
2021-11-11T12:38:17.000Z
2022-01-28T10:59:38.000Z
velox/expression/tests/CastExprTest.cpp
littleeleventhwolf/velox
856d1f91f7da09a9313c893e12adb0070ddd3fb9
[ "Apache-2.0" ]
8
2021-11-11T12:26:21.000Z
2022-01-12T08:58:32.000Z
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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 applic...
32.488818
80
0.618645
f6c84838dd6c1c8551bdd7d15ebbda731bd5bec9
417
hpp
C++
B-CPP-300-LYN-3-1-CPPD13/ex02/Woody.hpp
Neotoxic-off/Epitech2024
8b3dd04fa9ac2b7019c0b5b1651975a7252d929b
[ "Apache-2.0" ]
2
2022-02-07T12:44:51.000Z
2022-02-08T12:04:08.000Z
B-CPP-300-LYN-3-1-CPPD13/ex02/Woody.hpp
Neotoxic-off/Epitech2024
8b3dd04fa9ac2b7019c0b5b1651975a7252d929b
[ "Apache-2.0" ]
null
null
null
B-CPP-300-LYN-3-1-CPPD13/ex02/Woody.hpp
Neotoxic-off/Epitech2024
8b3dd04fa9ac2b7019c0b5b1651975a7252d929b
[ "Apache-2.0" ]
1
2022-01-23T21:26:06.000Z
2022-01-23T21:26:06.000Z
/* ** EPITECH PROJECT, 2020 ** B-CPP-300-LYN-3-1-CPPD13- ** File description: ** Woody.hpp */ #ifndef WOODY_HPP_ #define WOODY_HPP_ #include "Toy.hpp" class Woody : public Toy { public: Woody(std::string const &, std::string const &); Woody(Woody const &); virtual...
18.954545
60
0.565947
f6c86617a67b08d9445e4eebf5b12820ed587df7
1,407
cc
C++
src/net/third_party/quiche/src/quic/core/frames/quic_new_connection_id_frame.cc
godfo/naiveproxy
369269a12832bf34bf01c7b0e7ca121555abd3eb
[ "BSD-3-Clause" ]
8
2019-11-08T04:16:04.000Z
2021-07-11T11:56:52.000Z
quic/core/frames/quic_new_connection_id_frame.cc
DaanDeMeyer/google-quiche-iquic
da6e9842787e2cf88cacaebf56b15b14fa2e8444
[ "BSD-3-Clause" ]
null
null
null
quic/core/frames/quic_new_connection_id_frame.cc
DaanDeMeyer/google-quiche-iquic
da6e9842787e2cf88cacaebf56b15b14fa2e8444
[ "BSD-3-Clause" ]
6
2019-09-08T05:40:06.000Z
2021-03-31T01:19:10.000Z
// Copyright (c) 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/third_party/quiche/src/quic/core/frames/quic_new_connection_id_frame.h" #include "net/third_party/quiche/src/quic/core/quic_constants.h"...
36.076923
85
0.738451
f6c8d1d8e031901f9a627e56357066d059d42c8c
14,900
cpp
C++
ring_puzzle_game/Assets.cpp
SSNikolaevich/ring_puzzle_game
5db7f50ecc477899727ba7250e387002420db007
[ "MIT" ]
null
null
null
ring_puzzle_game/Assets.cpp
SSNikolaevich/ring_puzzle_game
5db7f50ecc477899727ba7250e387002420db007
[ "MIT" ]
1
2017-11-27T14:17:53.000Z
2017-11-29T09:14:22.000Z
ring_puzzle_game/Assets.cpp
SSNikolaevich/ring_puzzle_game
5db7f50ecc477899727ba7250e387002420db007
[ "MIT" ]
1
2018-02-20T14:33:44.000Z
2018-02-20T14:33:44.000Z
//=========================================================================== #include "Assets.h" //=========================================================================== const unsigned char PROGMEM titleSprite_plus_mask[] = { // width, height, 88, 49, // FRAME 00 0x00, 0x00, 0x00, 0x00, 0x0...
107.194245
532
0.644631
f6c8f8d6156f2ef23cb4aaa0413d9bd276361f9e
7,859
cpp
C++
src/graphics/SimpleBrush3D.cpp
LU15W1R7H/lwirth-lib
f51cfb56b801790c200cea64d226730449d68f53
[ "MIT" ]
2
2018-04-04T17:26:32.000Z
2020-06-26T09:22:49.000Z
src/graphics/SimpleBrush3D.cpp
LU15W1R7H/lwirth-lib
f51cfb56b801790c200cea64d226730449d68f53
[ "MIT" ]
1
2018-08-27T14:35:45.000Z
2018-08-27T19:00:12.000Z
src/graphics/SimpleBrush3D.cpp
LU15W1R7H/lwirth-lib
f51cfb56b801790c200cea64d226730449d68f53
[ "MIT" ]
null
null
null
#include "SimpleBrush3D.hpp" #include "Color.hpp" #include <cstring> #include "Vulkan.hpp" namespace lw { void SimpleBrush3D::setColor(const Color& color) { m_mainColor = color; } void SimpleBrush3D::setColor(f32 r, f32 g, f32 b, f32 a /*= 1.f*/) { m_mainColor = { r, g, b, a }; } void SimpleBrush3D:...
27.006873
200
0.717267
f6ce05b0de1e3e4011bda28df5b723267ddb3ca6
2,021
cc
C++
google/cloud/storage/oauth2/google_application_default_credentials_file.cc
orinem/google-cloud-cpp
c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1
[ "Apache-2.0" ]
3
2020-05-27T23:21:23.000Z
2020-05-31T22:31:53.000Z
google/cloud/storage/oauth2/google_application_default_credentials_file.cc
orinem/google-cloud-cpp
c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1
[ "Apache-2.0" ]
2
2020-10-06T15:50:06.000Z
2020-11-24T16:21:28.000Z
google/cloud/storage/oauth2/google_application_default_credentials_file.cc
orinem/google-cloud-cpp
c43f73e9abeb2b9d8a6e99f7d9750cba37f2f6b1
[ "Apache-2.0" ]
1
2021-12-09T16:26:23.000Z
2021-12-09T16:26:23.000Z
// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in w...
29.289855
84
0.743196
f6ce261a555733b5d7b4dd120172f82a1e0ab898
2,324
cpp
C++
ObserverPattern.cpp
gdevanga/Design-problems
d3659c5ba6c0cf3262e3982f4d81f0421c277b92
[ "MIT" ]
null
null
null
ObserverPattern.cpp
gdevanga/Design-problems
d3659c5ba6c0cf3262e3982f4d81f0421c277b92
[ "MIT" ]
null
null
null
ObserverPattern.cpp
gdevanga/Design-problems
d3659c5ba6c0cf3262e3982f4d81f0421c277b92
[ "MIT" ]
null
null
null
// ObserverPattern.cpp : Defines the entry point for the console application. // //#include "stdafx.h" #include <iostream> #include <vector> using namespace std; class IDisplayObserver { public: virtual void update(int t, int p, int h) {} }; class CWeatherData { int nTemp{ 0 }; int nPressure{ 0 }; int nHumidity...
15.390728
106
0.614458
f6cec56e456f741d39f5b26d53b5a00a129ddcba
45,523
cpp
C++
src/types/viewport.cpp
lifeng1983/Terminal
1d35e180fdaacef731886bdb2cabca2ea4fe2b49
[ "MIT" ]
12
2020-07-23T16:31:06.000Z
2021-09-08T01:49:10.000Z
src/types/viewport.cpp
lifeng1983/Terminal
1d35e180fdaacef731886bdb2cabca2ea4fe2b49
[ "MIT" ]
6
2020-07-23T19:16:18.000Z
2020-07-30T22:59:06.000Z
src/types/viewport.cpp
lifeng1983/Terminal
1d35e180fdaacef731886bdb2cabca2ea4fe2b49
[ "MIT" ]
2
2020-05-22T12:54:28.000Z
2020-08-02T15:21:14.000Z
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. #include "precomp.h" #include "inc/Viewport.hpp" using namespace Microsoft::Console::Types; Viewport::Viewport(const SMALL_RECT sr) noexcept : _sr(sr) { } Viewport::Viewport(const Viewport& other) noexcept : _sr(other._...
42.073013
151
0.536564
f6cf62a17836f0beb539f732f1206b5ffd3735b7
7,570
ipp
C++
Source/ThirdParty/ASIO/include/asio/detail/impl/reactive_socket_service_base.ipp
elix22/AtomicGameEngine
83bc2c12f1451aea0b5de691b512810f00d5ee06
[ "Apache-2.0", "MIT" ]
3,170
2015-02-13T12:35:00.000Z
2022-03-31T15:32:42.000Z
Source/ThirdParty/ASIO/include/asio/detail/impl/reactive_socket_service_base.ipp
elix22/AtomicGameEngine
83bc2c12f1451aea0b5de691b512810f00d5ee06
[ "Apache-2.0", "MIT" ]
1,314
2015-02-13T12:30:08.000Z
2021-11-22T14:10:02.000Z
Source/ThirdParty/ASIO/include/asio/detail/impl/reactive_socket_service_base.ipp
elix22/AtomicGameEngine
83bc2c12f1451aea0b5de691b512810f00d5ee06
[ "Apache-2.0", "MIT" ]
683
2015-02-13T12:35:06.000Z
2022-03-31T16:13:54.000Z
// // detail/reactive_socket_service_base.ipp // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // 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_...
28.246269
79
0.721929
f6cf89f7e535ebbb50079b8f58a06dda2052430b
3,133
cpp
C++
src/Device/VertexProcessor.cpp
wenxiaoming/swiftshader
13ec11db84e85fd5d53b5d8d59c55853eb854fe6
[ "Apache-2.0" ]
null
null
null
src/Device/VertexProcessor.cpp
wenxiaoming/swiftshader
13ec11db84e85fd5d53b5d8d59c55853eb854fe6
[ "Apache-2.0" ]
null
null
null
src/Device/VertexProcessor.cpp
wenxiaoming/swiftshader
13ec11db84e85fd5d53b5d8d59c55853eb854fe6
[ "Apache-2.0" ]
5
2021-06-11T15:09:19.000Z
2022-03-13T11:14:33.000Z
// Copyright 2016 The SwiftShader 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 b...
26.777778
107
0.688158
f6d0a9e1fd5be0c9b253607424b1ede77b1b02b7
15,304
cc
C++
chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2019-02-03T05:32:07.000Z
2019-02-03T05:32:07.000Z
chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
chrome/browser/password_manager/chrome_password_manager_client_unittest.cc
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2020-11-04T07:19:17.000Z
2020-11-04T07:19:17.000Z
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/password_manager/chrome_password_manager_client.h" #include "base/command_line.h" #include "base/strings/string16.h" #include "b...
38.941476
99
0.77666
f6d379bb15bbd3daf3f4d2de2b2f22b05808b4bc
1,641
cpp
C++
src/bindings.cpp
SparkyPants/node-fastlz
f4e05836d6653154f1b22bbfc95cec53fea5c2ab
[ "MIT" ]
null
null
null
src/bindings.cpp
SparkyPants/node-fastlz
f4e05836d6653154f1b22bbfc95cec53fea5c2ab
[ "MIT" ]
4
2016-06-30T15:29:39.000Z
2016-06-30T15:31:42.000Z
src/bindings.cpp
SparkyPants/node-fastlz
f4e05836d6653154f1b22bbfc95cec53fea5c2ab
[ "MIT" ]
null
null
null
#include <nan.h> // pulls in Nan and v8 namespaces #include <cmath> // std::ceil #include <algorithm> // std::max #include <cstdlib> // std::malloc std::realloc #include "fastlz.h" // fastlz_* NAN_METHOD(CompressSync) { if (info.Length() == 2 && node::Buffer::HasInstance(info[0]) && info[1]->IsUint32()) { v8::Lo...
40.02439
109
0.70262
f6d3ada7ede9f15480ade2b6c14f5420b9b4dc57
24,185
cpp
C++
src/main/Config.cpp
DigitalBitsOrg/digitalbits-core
262de085f49b2bf457c0ff2ef51ec93f8d1b9f04
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
src/main/Config.cpp
DigitalBitsOrg/digitalbits-core
262de085f49b2bf457c0ff2ef51ec93f8d1b9f04
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSL-1.0", "BSD-3-Clause" ]
null
null
null
src/main/Config.cpp
DigitalBitsOrg/digitalbits-core
262de085f49b2bf457c0ff2ef51ec93f8d1b9f04
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSL-1.0", "BSD-3-Clause" ]
1
2021-11-12T22:01:13.000Z
2021-11-12T22:01:13.000Z
// Copyright 2014 Stellar Development Foundation and contributors. Licensed // under the Apache License, Version 2.0. See the COPYING file at the root // of this distribution or at http://www.apache.org/licenses/LICENSE-2.0 #include "main/Config.h" #include "StellarCoreVersion.h" #include "crypto/Hex.h" #include "cry...
31.166237
81
0.493818
f6d3dc11620d400ff83228bcf024300c31efa7d6
3,115
cpp
C++
cmdstan/stan/lib/stan_math/test/unit/math/torsten/mixSolver/pred1_mix2_test.cpp
csetraynor/Torsten
55b59b8068e2a539346f566ec698c755a9e3536c
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/test/unit/math/torsten/mixSolver/pred1_mix2_test.cpp
csetraynor/Torsten
55b59b8068e2a539346f566ec698c755a9e3536c
[ "BSD-3-Clause" ]
null
null
null
cmdstan/stan/lib/stan_math/test/unit/math/torsten/mixSolver/pred1_mix2_test.cpp
csetraynor/Torsten
55b59b8068e2a539346f566ec698c755a9e3536c
[ "BSD-3-Clause" ]
null
null
null
#include <stan/math/rev/mat.hpp> // FIX ME - more specific #include <stan/math/torsten/PKModel/Pred/Pred1_mix2.hpp> #include <stan/math/torsten/PKModel/functors/mix2_functor.hpp> #include <gtest/gtest.h> struct ODE_functor { template <typename T0, typename T1, typename T2, typename T3> inline std::vector<typena...
31.464646
86
0.61862
f6d5c5ff74f627a1e3cd3b5cb31ab505d27a6028
9,997
cpp
C++
cogdl/operators/sample/sample.cpp
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
2
2021-06-25T08:18:36.000Z
2021-06-25T08:51:00.000Z
cogdl/operators/sample/sample.cpp
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
null
null
null
cogdl/operators/sample/sample.cpp
cenyk1230/cogdl
fa1f74d5c3a15b5a52abfc7cd3f04dce4b7dbcce
[ "MIT" ]
null
null
null
#include <torch/extension.h> #include <pybind11/pybind11.h> #include <iostream> #include <vector> std::tuple<torch::Tensor, torch::Tensor, torch::Tensor, torch::Tensor> sample_adj(torch::Tensor indptr, torch::Tensor indices, torch::Tensor node_idx, int64_t num_neighbors, bool replace) { auto indptr_data = indptr.d...
35.831541
118
0.577973
f6d9564be528650f25ef90fdebaa2ecc7f82fd33
12,354
cpp
C++
src/tests/functional/inference_engine/transformations/transpose_to_reshape_test.cpp
pazamelin/openvino
b7e8ef910d7ed8e52326d14dc6fd53b71d16ed48
[ "Apache-2.0" ]
1
2019-09-22T01:05:07.000Z
2019-09-22T01:05:07.000Z
inference-engine/tests/functional/inference_engine/transformations/transpose_to_reshape_test.cpp
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
58
2020-11-06T12:13:45.000Z
2022-03-28T13:20:11.000Z
inference-engine/tests/functional/inference_engine/transformations/transpose_to_reshape_test.cpp
thomas-yanxin/openvino
031e998a15ec738c64cc2379d7f30fb73087c272
[ "Apache-2.0" ]
4
2021-09-29T20:44:49.000Z
2021-10-20T13:02:12.000Z
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include "common_test_utils/test_common.hpp" #include <string> #include <sstream> #include <fstream> #include <memory> #include <queue> #include <map> #include <ngraph/function.hpp> #include <ngraph/opsets...
50.839506
148
0.604582
f6d9d896e4f0834d9c5c3285e409dc3be35914be
343
cpp
C++
14/1448. Count Good Nodes in Binary Tree.cpp
eagleoflqj/LeetCode
ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9
[ "MIT" ]
null
null
null
14/1448. Count Good Nodes in Binary Tree.cpp
eagleoflqj/LeetCode
ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9
[ "MIT" ]
1
2021-12-25T10:33:23.000Z
2022-02-16T00:34:05.000Z
14/1448. Count Good Nodes in Binary Tree.cpp
eagleoflqj/LeetCode
ca5dd06cad4c7fe5bf679cca7ee60f4348b316e9
[ "MIT" ]
null
null
null
class Solution { int helper(TreeNode *root, int M) { if(!root) return 0; int good = root->val >= M; if(good) M = root->val; return good + helper(root->left, M) + helper(root->right, M); } public: int goodNodes(TreeNode* root) { return helper(ro...
22.866667
69
0.507289
f6dc0ededa96ca4ebf070ed8249ab09c2e49f76e
318
cpp
C++
Entrega4/ComparacionAviones.cpp
driden/EntregaGrafos4
90d5d3d82580725b1bc7161e2191ba5bbfd98041
[ "MIT" ]
null
null
null
Entrega4/ComparacionAviones.cpp
driden/EntregaGrafos4
90d5d3d82580725b1bc7161e2191ba5bbfd98041
[ "MIT" ]
null
null
null
Entrega4/ComparacionAviones.cpp
driden/EntregaGrafos4
90d5d3d82580725b1bc7161e2191ba5bbfd98041
[ "MIT" ]
null
null
null
#include "ComparacionAviones.h" CompRetorno ComparacionAviones::Comparar(const CostoArco& t1, const CostoArco& t2) const { if (t1.aviones > t2.aviones) return MAYOR; if (t1.aviones < t2.aviones) return MENOR; if (t1.tiempo > t2.tiempo) return MAYOR; if (t1.tiempo < t2.tiempo) return MENOR; return IGUALES; }
24.461538
88
0.732704
f6e1f9e4f3dbdeb17f822d615eb6b5a26144c45c
275
cpp
C++
C++/0050-Powx-N/soln-2.cpp
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
C++/0050-Powx-N/soln-2.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
C++/0050-Powx-N/soln-2.cpp
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution { public: double myPow(double x, int n) { if (n == 0) return 1; if (n < 0) return (1.0 / x) / (myPow(x, -(n + 1))); double half = myPow(x, n / 2); if (n % 2) return half * half * x; else return half * half; } };
25
59
0.465455
f6e20bd24fe446d6ee2b78b8fc1984a92e4e832f
4,755
cpp
C++
Shape_detection/benchmark/Shape_detection/benchmark_region_growing_on_point_set_2.cpp
gaschler/cgal
d1fe2afa18da5524db6d4946f42ca4b8d00e0bda
[ "CC0-1.0" ]
2
2020-12-12T09:30:07.000Z
2021-01-04T05:00:23.000Z
Shape_detection/benchmark/Shape_detection/benchmark_region_growing_on_point_set_2.cpp
guorongtao/cgal
a848e52552a9205124b7ae13c7bcd2b860eb4530
[ "CC0-1.0" ]
1
2021-03-12T14:38:20.000Z
2021-03-12T14:38:20.000Z
Shape_detection/benchmark/Shape_detection/benchmark_region_growing_on_point_set_2.cpp
szobov/cgal
e7b91b92b8c6949e3b62023bdd1e9f3ad8472626
[ "CC0-1.0" ]
1
2022-03-05T04:18:59.000Z
2022-03-05T04:18:59.000Z
// STL includes. #include <string> #include <vector> #include <utility> #include <cstdlib> #include <fstream> #include <iostream> #include <iterator> // CGAL includes. #include <CGAL/Timer.h> #include <CGAL/property_map.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Shape_detection/...
36.29771
112
0.686225
f6e20eb992d838d7c87345fbe6ff8d9cc174d166
16,671
cpp
C++
shared/test/unit_test/main.cpp
ConnectionMaster/compute-runtime
ea373d2664251b10e55aa237555e4ba9221ace0f
[ "Intel", "MIT" ]
1
2019-04-25T23:21:01.000Z
2019-04-25T23:21:01.000Z
shared/test/unit_test/main.cpp
ConnectionMaster/compute-runtime
ea373d2664251b10e55aa237555e4ba9221ace0f
[ "Intel", "MIT" ]
null
null
null
shared/test/unit_test/main.cpp
ConnectionMaster/compute-runtime
ea373d2664251b10e55aa237555e4ba9221ace0f
[ "Intel", "MIT" ]
null
null
null
/* * Copyright (C) 2018-2021 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "shared/source/debug_settings/debug_settings_manager.h" #include "shared/source/gmm_helper/gmm_helper.h" #include "shared/source/gmm_helper/gmm_interface.h" #include "shared/source/gmm_helper/resource_info.h" #include "s...
35.928879
133
0.631036
f6e31b47bf971e8872a7819ad50a0b4387374e04
4,835
cpp
C++
nano/nano_rpc/entry.cpp
MacroChip/nano-node
d555eae77a564550c76cc541a47d297a1dcd59d1
[ "BSD-2-Clause" ]
1
2021-05-23T11:23:01.000Z
2021-05-23T11:23:01.000Z
nano/nano_rpc/entry.cpp
Nikolya7373/nano-node
c673e4e340f46351786b1b5267b7e1635aba9ff5
[ "BSD-3-Clause" ]
5
2020-11-23T23:18:27.000Z
2020-11-24T23:40:23.000Z
nano/nano_rpc/entry.cpp
Nikolya7373/nano-node
c673e4e340f46351786b1b5267b7e1635aba9ff5
[ "BSD-3-Clause" ]
null
null
null
#include <nano/lib/errors.hpp> #include <nano/lib/threading.hpp> #include <nano/lib/utility.hpp> #include <nano/node/cli.hpp> #include <nano/node/ipc/ipc_server.hpp> #include <nano/rpc/rpc.hpp> #include <nano/rpc/rpc_request_processor.hpp> #include <nano/secure/utility.hpp> #include <boost/filesystem.hpp> #include <bo...
30.601266
428
0.687694
f6e328b99cac6eb723dcf13452b7086e05f9bd0a
14,146
cc
C++
lib/ts/ink_hash_table.cc
garfieldonly/ats_git
940ff5c56bebabb96130a55c2a17212c5c518138
[ "Apache-2.0" ]
1
2022-01-19T14:34:34.000Z
2022-01-19T14:34:34.000Z
lib/ts/ink_hash_table.cc
mingzym/trafficserver
a01c3a357b4ff9193f2e2a8aee48e3751ef2177a
[ "Apache-2.0" ]
2
2017-12-05T23:48:37.000Z
2017-12-20T01:22:07.000Z
lib/ts/ink_hash_table.cc
maskit/trafficserver
3ffa19873f7cd7ced2fbdfed5a0ac8ddbbe70a68
[ "Apache-2.0" ]
null
null
null
/** @file A brief file description @section license License 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 und...
32.51954
120
0.592394
f6e6059a6415d714619b00822d2853005c87977d
6,154
cpp
C++
LevelHEngine/Physics/Collision.cpp
JSlowgrove/LevelHEngine-GEP-Assignment-1
ab5f59414e712c1c10177e3063f9e1554cda8331
[ "MIT" ]
null
null
null
LevelHEngine/Physics/Collision.cpp
JSlowgrove/LevelHEngine-GEP-Assignment-1
ab5f59414e712c1c10177e3063f9e1554cda8331
[ "MIT" ]
null
null
null
LevelHEngine/Physics/Collision.cpp
JSlowgrove/LevelHEngine-GEP-Assignment-1
ab5f59414e712c1c10177e3063f9e1554cda8331
[ "MIT" ]
null
null
null
#include "Collision.h" namespace Collision { bool rectRectIntersect(Vec2 posBoxA, Vec2 dimBoxA, Vec2 posBoxB, Vec2 dimBoxB) { if (posBoxA.x <= (posBoxB.x + dimBoxB.x) && posBoxA.y <= (posBoxB.y + dimBoxB.y) && posBoxB.x <= (posBoxA.x + dimBoxA.x) && posBoxB.y <= (posBoxA.y + dimBoxA.y)) { return tru...
25.01626
121
0.654859
f6e774b1b24314bcbefe403af6de2a662da3240d
2,423
hpp
C++
lib/include/drivers/uart/detail/init.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
lib/include/drivers/uart/detail/init.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
lib/include/drivers/uart/detail/init.hpp
niclasberg/asfw
f836de1c0d6350541e3253863dedab6a3eb81df7
[ "MIT" ]
null
null
null
#pragma once #include "types.hpp" #include "reg/peripheral_operations.hpp" #include "board/regmap/uart.hpp" #include "reg/set.hpp" #include "reg/write.hpp" #include "reg/apply.hpp" namespace drivers::uart { namespace detail { using board::uart::CR1::PsVal; using board::uart::CR1::MVal; ...
37.859375
96
0.588114
f6e7dd267fd0640b20c53bd06fdcf1448a4d5f76
2,574
cpp
C++
Code/EditorPlugins/Assets/EnginePluginAssets/TextureCubeAsset/TextureCubeView.cpp
alinoctavian/ezEngine
0312c8d777c05ac58911f3fa879e4fd7efcfcb66
[ "MIT" ]
null
null
null
Code/EditorPlugins/Assets/EnginePluginAssets/TextureCubeAsset/TextureCubeView.cpp
alinoctavian/ezEngine
0312c8d777c05ac58911f3fa879e4fd7efcfcb66
[ "MIT" ]
null
null
null
Code/EditorPlugins/Assets/EnginePluginAssets/TextureCubeAsset/TextureCubeView.cpp
alinoctavian/ezEngine
0312c8d777c05ac58911f3fa879e4fd7efcfcb66
[ "MIT" ]
1
2022-03-28T15:57:46.000Z
2022-03-28T15:57:46.000Z
#include <EnginePluginAssetsPCH.h> #include <EnginePluginAssets/TextureCubeAsset/TextureCubeContext.h> #include <EnginePluginAssets/TextureCubeAsset/TextureCubeView.h> #include <EditorEngineProcessFramework/EngineProcess/EngineProcessMessages.h> #include <GameEngine/GameApplication/GameApplication.h> #include <Render...
36.771429
143
0.773893
f6eb4597042b877cb4330803e2efc66c4df320e5
6,955
cpp
C++
C++/alien-dictionary.cpp
ddyuewang/leetcode
285185512c78ed3a657288887e0ac9c96feae2c9
[ "MIT" ]
4
2019-01-14T19:33:55.000Z
2021-05-16T06:06:43.000Z
C++/alien-dictionary.cpp
ambershen/LeetCode
0c53580697b05fadb3981d97bd25f1d9da65fd2f
[ "MIT" ]
2
2021-12-10T01:43:37.000Z
2021-12-14T21:48:53.000Z
C++/alien-dictionary.cpp
ambershen/LeetCode
0c53580697b05fadb3981d97bd25f1d9da65fd2f
[ "MIT" ]
8
2016-11-30T19:26:53.000Z
2019-03-09T14:02:34.000Z
// Time: O(n) // Space: O(|V|+|E|) = O(26 + 26^2) = O(1) // BFS solution. class Solution { public: string alienOrder(vector<string>& words) { unordered_set<char> nodes; unordered_map<char, unordered_set<char>> in_degree, out_degree; queue<char> zero_in_degree_queue; for (const auto...
31.757991
91
0.460963
f6eb9cafa30dd77c6a78e04eccc285efa3aa5f43
450
cpp
C++
Test Midterm/1.cpp
zyzkevin/C-Programming-and-Algorithms
be9642b62a3285341990c25bdc3c124c4dd8c38b
[ "MIT" ]
null
null
null
Test Midterm/1.cpp
zyzkevin/C-Programming-and-Algorithms
be9642b62a3285341990c25bdc3c124c4dd8c38b
[ "MIT" ]
null
null
null
Test Midterm/1.cpp
zyzkevin/C-Programming-and-Algorithms
be9642b62a3285341990c25bdc3c124c4dd8c38b
[ "MIT" ]
null
null
null
#include <iostream> #include <vector> using namespace std; class A { static int count; public: // 在此处补充你的代码 A () { count++; } static int theNumberOfA() { return count; } }; int A::count = 0; int main() { vector<A> v; for(int i = 0; i < 3; i++) { { ...
13.235294
42
0.457778
f6ece479737e76d5f7f1da109c6e15b356dc41e8
334
hpp
C++
src/mdp/core/oo/state/exceptions/unknown_object_exception.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
4
2019-04-19T00:11:36.000Z
2020-04-08T09:50:37.000Z
src/mdp/core/oo/state/exceptions/unknown_object_exception.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
null
null
null
src/mdp/core/oo/state/exceptions/unknown_object_exception.hpp
MarkieMark/fastrl
e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e
[ "Apache-2.0" ]
null
null
null
/* * Mark Benjamin 6th March 2019 * Copyright (c) 2019 Mark Benjamin */ #ifndef FASTRL_MDP_CORE_OO_STATE_EXCEPTIONS_UNKNOWN_OBJECT_EXCEPTION_HPP #define FASTRL_MDP_CORE_OO_STATE_EXCEPTIONS_UNKNOWN_OBJECT_EXCEPTION_HPP class UnknownObjectException { }; #endif //FASTRL_MDP_CORE_OO_STATE_EXCEPTIONS_UNKNOWN_OBJECT_...
22.266667
73
0.856287
f6efa29dd00089f411c0363a22a8738f871589c3
9,536
cpp
C++
tls.cpp
JiajunWan/cs170_project4_thread_local_storage
06cdf16d6dfbbca2f2bb4107804062e7edfdee00
[ "MIT" ]
null
null
null
tls.cpp
JiajunWan/cs170_project4_thread_local_storage
06cdf16d6dfbbca2f2bb4107804062e7edfdee00
[ "MIT" ]
null
null
null
tls.cpp
JiajunWan/cs170_project4_thread_local_storage
06cdf16d6dfbbca2f2bb4107804062e7edfdee00
[ "MIT" ]
null
null
null
#include "tls.h" using namespace std; void tls_init() { sem_init(&mutex_sem, 0, 1); sem_wait(&mutex_sem); PAGESIZE = getpagesize(); sem_post(&mutex_sem); struct sigaction sigact; sigemptyset(&sigact.sa_mask); /* SA_SIGINFO will help to distinguish between page fault and normal SegFault *...
27.560694
114
0.587458
f6eff6422c429229bab5efda11a1062173665f21
14,900
cpp
C++
examples/210-Evt-EventListeners.cpp
shanep/Catch2
2db1cf34047f76cb2679a3804b476881536ad27b
[ "BSL-1.0" ]
682
2015-07-10T00:39:26.000Z
2022-03-30T05:24:53.000Z
examples/210-Evt-EventListeners.cpp
shanep/Catch2
2db1cf34047f76cb2679a3804b476881536ad27b
[ "BSL-1.0" ]
1,399
2015-07-24T22:09:09.000Z
2022-03-29T06:22:48.000Z
examples/210-Evt-EventListeners.cpp
shanep/Catch2
2db1cf34047f76cb2679a3804b476881536ad27b
[ "BSL-1.0" ]
311
2015-07-09T13:59:48.000Z
2022-03-28T00:15:20.000Z
// 210-Evt-EventListeners.cpp // Contents: // 1. Printing of listener data // 2. My listener and registration // 3. Test cases #include <catch2/catch_test_macros.hpp> #include <catch2/reporters/catch_reporter_event_listener.hpp> #include <catch2/reporters/catch_reporter_registrars.hpp> #include <catch2/catch_test_cas...
34.651163
156
0.555101
f6f05b8113afb39076127fdd578d088474758c81
46,661
cpp
C++
arangod/Aql/ClusterBlocks.cpp
dolfly/arangodb
b3ee17672e19e48db97c5dafce5978ba0a272fb5
[ "Apache-2.0" ]
null
null
null
arangod/Aql/ClusterBlocks.cpp
dolfly/arangodb
b3ee17672e19e48db97c5dafce5978ba0a272fb5
[ "Apache-2.0" ]
null
null
null
arangod/Aql/ClusterBlocks.cpp
dolfly/arangodb
b3ee17672e19e48db97c5dafce5978ba0a272fb5
[ "Apache-2.0" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2014-2016 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...
29.217909
106
0.64855
f6f0b0e80b50c86bfc23ec26f479d41967b4a7a4
958
hpp
C++
client/data_parser.hpp
derpicated/dynamic_network_of_speakers
e2407d330a2f83d8a2de33cc9905d783906c7dfc
[ "MIT" ]
8
2016-05-23T22:56:57.000Z
2016-05-28T08:22:18.000Z
client/data_parser.hpp
derpicated/dynamic_network_of_speakers
e2407d330a2f83d8a2de33cc9905d783906c7dfc
[ "MIT" ]
10
2016-05-24T20:15:45.000Z
2016-05-27T22:13:50.000Z
client/data_parser.hpp
derpicated/dynamic_network_of_speakers
e2407d330a2f83d8a2de33cc9905d783906c7dfc
[ "MIT" ]
1
2019-03-09T18:03:56.000Z
2019-03-09T18:03:56.000Z
#ifndef DNS_data_parser_HPP #define DNS_data_parser_HPP #include "./libs/logger/easylogging++.h" #include <iostream> #include <map> #include <sstream> #include <string> #include <vector> #include "libs/jzon/Jzon.h" class audioObject { public: audioObject (); float distance; float angle; }; class s...
19.958333
89
0.693111
f6f0c548bdf9dba71e22a2df8a67da4205e9b0df
313
cpp
C++
SimulationTest/cpuTests/DistributionTest.cpp
KevinMcGin/Simulation
f1dbed05d6024274f6a69e0679f529feaae1e26e
[ "MIT" ]
4
2021-12-11T17:59:07.000Z
2021-12-24T11:08:55.000Z
SimulationTest/cpuTests/DistributionTest.cpp
KevinMcGin/Simulation
f1dbed05d6024274f6a69e0679f529feaae1e26e
[ "MIT" ]
121
2021-12-11T09:20:47.000Z
2022-03-13T18:36:48.000Z
SimulationTest/cpuTests/DistributionTest.cpp
KevinMcGin/Simulation
f1dbed05d6024274f6a69e0679f529feaae1e26e
[ "MIT" ]
null
null
null
#include <gtest/gtest.h> #include "distribution/Distribution.h" TEST(DistributionTest, RandomTest) { auto value = Distribution::random(0.0, 1.0); EXPECT_TRUE(value <= 1 && value >= -1); } TEST(DistributionTest, RandomTest2) { auto value = Distribution::random(1.0); EXPECT_TRUE(value <= 1 && value >= 0); }
26.083333
45
0.693291
f6f3a3ffa1f0b79281a576126d9d3d97ca6cd1b9
2,225
cpp
C++
tests/test_argparse.cpp
CraftSpider/AlphaUtils
70ff9cd4ec4184f67d7e8b779538ef88f1e88682
[ "MIT" ]
1
2019-06-23T14:03:16.000Z
2019-06-23T14:03:16.000Z
tests/test_argparse.cpp
CraftSpider/AlphaUtils
70ff9cd4ec4184f67d7e8b779538ef88f1e88682
[ "MIT" ]
null
null
null
tests/test_argparse.cpp
CraftSpider/AlphaUtils
70ff9cd4ec4184f67d7e8b779538ef88f1e88682
[ "MIT" ]
2
2019-06-23T14:03:17.000Z
2020-11-19T02:16:51.000Z
#include <at_tests> #include "argparser.h" void test_args() { const char* args[] = {"", "arg1", "-notarg", "--notarg", "arg2", "-not=arg", "--not=arg"}; ArgParser a = ArgParser(7, args); ASSERT(a.num_arguments() == 2); ASSERT(a.get_argument(0) == "arg1"); ASSERT(a.get_argument(1) == "arg2"); ...
28.164557
101
0.551461
f6f4ee542d7c34b77844a56f0a799e86223d1e78
2,423
cpp
C++
src/tools/kdb/merge.cpp
mirunix/libelektra
a808874567b2c0c823f7619fa72078d89802bca1
[ "BSD-3-Clause" ]
188
2015-01-07T20:34:26.000Z
2022-03-16T09:55:09.000Z
src/tools/kdb/merge.cpp
mirunix/libelektra
a808874567b2c0c823f7619fa72078d89802bca1
[ "BSD-3-Clause" ]
3,813
2015-01-02T14:00:08.000Z
2022-03-31T14:19:11.000Z
src/tools/kdb/merge.cpp
mirunix/libelektra
a808874567b2c0c823f7619fa72078d89802bca1
[ "BSD-3-Clause" ]
149
2015-01-10T02:07:50.000Z
2022-03-16T09:50:24.000Z
/** * @file * * @brief * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include <merge.hpp> #include <cmdline.hpp> #include <kdb.hpp> #include <keysetio.hpp> #include <modules.hpp> #include <iostream> #include <string> #include <mergehelper.hpp> #include <merging/metamergestrategy...
20.709402
126
0.654148
f6f4fac03aec15be60d2d238c16818d25bd77b20
2,157
cpp
C++
src/library/library_task_builder.cpp
solson/lean
b13ac127fd83f3724d2f096b1fb85dc6b15e3746
[ "Apache-2.0" ]
2,232
2015-01-01T18:20:29.000Z
2022-03-30T02:35:50.000Z
src/library/library_task_builder.cpp
SNU-2D/lean
72a965986fa5aeae54062e98efb3140b2c4e79fd
[ "Apache-2.0" ]
1,187
2015-01-06T05:18:44.000Z
2019-10-31T18:45:42.000Z
src/library/library_task_builder.cpp
SNU-2D/lean
72a965986fa5aeae54062e98efb3140b2c4e79fd
[ "Apache-2.0" ]
306
2015-01-16T22:30:27.000Z
2022-03-28T02:55:51.000Z
/* Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Gabriel Ebner */ #include "library/library_task_builder.h" #include "library/message_builder.h" namespace lean { struct library_scopes_imp : public delegating_task_imp { i...
33.184615
95
0.636069
f6f509119bb84c8279e686234b80bcecd546506e
2,200
hpp
C++
native-osx/libs/boost/boost/function.hpp
CodeDistillery/myodaemon
0db901ec9ca39fcf84eb88836c6f4477c8767f25
[ "Unlicense" ]
null
null
null
native-osx/libs/boost/boost/function.hpp
CodeDistillery/myodaemon
0db901ec9ca39fcf84eb88836c6f4477c8767f25
[ "Unlicense" ]
null
null
null
native-osx/libs/boost/boost/function.hpp
CodeDistillery/myodaemon
0db901ec9ca39fcf84eb88836c6f4477c8767f25
[ "Unlicense" ]
null
null
null
// Boost.Function library // Copyright Douglas Gregor 2001-2003. Use, modification and // distribution is subject to the Boost Software License, Version // 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // For more information, see http://www.boost.org/libs/functio...
32.835821
114
0.749545
f6f68b5edc534714a8e0a89529eba2e546ab6570
11,329
hxx
C++
OCC/opencascade-7.2.0/x64/debug/inc/BOPTools_AlgoTools2D.hxx
jiaguobing/FastCAE
2348ab87e83fe5c704e4c998cf391229c25ac5d5
[ "BSD-3-Clause" ]
2
2020-02-21T01:04:35.000Z
2020-02-21T03:35:37.000Z
OCC/opencascade-7.2.0/x64/debug/inc/BOPTools_AlgoTools2D.hxx
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2020-03-06T04:49:42.000Z
2020-03-06T04:49:42.000Z
OCC/opencascade-7.2.0/x64/debug/inc/BOPTools_AlgoTools2D.hxx
Sunqia/FastCAE
cbc023fe07b6e306ceefae8b8bd7c12bc1562acb
[ "BSD-3-Clause" ]
1
2021-11-21T13:03:26.000Z
2021-11-21T13:03:26.000Z
// Created by: Peter KURNEV // Copyright (c) 1999-2014 OPEN CASCADE SAS // // This file is part of Open CASCADE Technology software library. // // This library is free software; you can redistribute it and/or modify it under // the terms of the GNU Lesser General Public License version 2.1 as published // by the Free S...
48.004237
201
0.603937
f6f8cdfdb709907b08d63c0dd45c4b827b2db9ef
421
cpp
C++
test/yc_306.test.cpp
kmyk/rsk0315-library
344f8f8c6c8c8951637154d6cb87cfb3dbc50376
[ "MIT" ]
7
2020-03-30T11:05:43.000Z
2022-03-24T06:18:38.000Z
test/yc_306.test.cpp
kmyk/rsk0315-library
344f8f8c6c8c8951637154d6cb87cfb3dbc50376
[ "MIT" ]
null
null
null
test/yc_306.test.cpp
kmyk/rsk0315-library
344f8f8c6c8c8951637154d6cb87cfb3dbc50376
[ "MIT" ]
2
2021-07-27T05:48:29.000Z
2022-03-24T06:18:40.000Z
#define PROBLEM "https://yukicoder.me/problems/no/306" #define ERROR 1e-6 #include <cstdio> #include <cmath> #include "algorithm/ternary_search.cpp" int main() { long double xa, ya, xb, yb; scanf("%Lf %Lf %Lf %Lf", &xa, &ya, &xb, &yb); auto f = [&](auto y) { return std::hypot(xa, y-ya) + std::hypot(xb, yb-y);...
24.764706
79
0.622328
f6f9fd6e8b6cb50837f5a6cab7929d4d8dd12d9f
1,430
cpp
C++
src/Dijkstra.cpp
dbahrdt/path_finder
1105966e5b50590acd9aca30ceb6922b0e40c259
[ "Apache-2.0" ]
1
2021-03-12T23:18:30.000Z
2021-03-12T23:18:30.000Z
src/Dijkstra.cpp
dbahrdt/path_finder
1105966e5b50590acd9aca30ceb6922b0e40c259
[ "Apache-2.0" ]
8
2020-05-27T17:25:58.000Z
2020-05-29T10:39:54.000Z
src/Dijkstra.cpp
dbahrdt/path_finder
1105966e5b50590acd9aca30ceb6922b0e40c259
[ "Apache-2.0" ]
1
2020-10-19T09:01:09.000Z
2020-10-19T09:01:09.000Z
// // Created by sokol on 02.10.19. // #include "path_finder/routing/Dijkstra.h" #include <queue> pathFinder::Dijkstra::Dijkstra(const pathFinder::Graph &graph) : graph(graph) { costs.reserve(graph.numberOfNodes); previousNode.reserve(graph.numberOfNodes); while (costs.size() < graph.numberOfNodes) { costs.e...
31.086957
106
0.63986
f6fa458e033f6655db3f29ef40d5a8a23a622d74
1,077
cpp
C++
BuildRoads.cpp
kshivam654/Hacktoberfest-1
0d95feb3e9f09a6feeedbd30e0cc831129fb5251
[ "MIT" ]
32
2020-05-23T07:40:31.000Z
2021-02-02T18:14:30.000Z
BuildRoads.cpp
kshivam654/Hacktoberfest-1
0d95feb3e9f09a6feeedbd30e0cc831129fb5251
[ "MIT" ]
45
2020-05-22T10:30:51.000Z
2020-12-28T08:17:13.000Z
BuildRoads.cpp
kshivam654/Hacktoberfest-1
0d95feb3e9f09a6feeedbd30e0cc831129fb5251
[ "MIT" ]
31
2020-05-22T10:18:16.000Z
2020-10-23T07:52:35.000Z
#include <iostream> #include <vector> #include<list> using namespace std; #define ll long long int #define OJ \ freopen("input.txt", "r", stdin); \ freopen("output.txt", "w", stdout); #define FIO \ ios_base::sync_with_stdio(false); \ cin.tie(NULL); ...
19.581818
50
0.454039
f6fa6180edb6616b9802607a1608881feefb080f
4,871
hpp
C++
hpc/L2/include/sw/cgSolver/cgSolverGemv.hpp
vmayoral/Vitis_Libraries
2323dc5036041e18242718287aee4ce66ba071ef
[ "Apache-2.0" ]
1
2021-09-11T01:05:01.000Z
2021-09-11T01:05:01.000Z
hpc/L2/include/sw/cgSolver/cgSolverGemv.hpp
vmayoral/Vitis_Libraries
2323dc5036041e18242718287aee4ce66ba071ef
[ "Apache-2.0" ]
null
null
null
hpc/L2/include/sw/cgSolver/cgSolverGemv.hpp
vmayoral/Vitis_Libraries
2323dc5036041e18242718287aee4ce66ba071ef
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2019 Xilinx, 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...
33.136054
80
0.634572
f6fb385275941f0cec0ab2f473210344b6ac8ec2
2,590
hpp
C++
thirdparty/ngraph/src/nnfusion/core/graph/output.hpp
xiezhq-hermann/nnfusion
1b2c23b0732bee295e37b990811719e0c4c6e993
[ "MIT" ]
1
2021-05-14T08:10:30.000Z
2021-05-14T08:10:30.000Z
thirdparty/ngraph/src/nnfusion/core/graph/output.hpp
xiezhq-hermann/nnfusion
1b2c23b0732bee295e37b990811719e0c4c6e993
[ "MIT" ]
null
null
null
thirdparty/ngraph/src/nnfusion/core/graph/output.hpp
xiezhq-hermann/nnfusion
1b2c23b0732bee295e37b990811719e0c4c6e993
[ "MIT" ]
1
2021-02-13T08:10:55.000Z
2021-02-13T08:10:55.000Z
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
33.636364
92
0.555985
f6fbb5a694c7825f019c6284531e19564cda1f97
7,031
cc
C++
common/point_of_sail.cc
denidoank/avalonsailing
8bc6d511e243ebd4fd90e7fb678ac7560226b5ca
[ "Apache-2.0" ]
null
null
null
common/point_of_sail.cc
denidoank/avalonsailing
8bc6d511e243ebd4fd90e7fb678ac7560226b5ca
[ "Apache-2.0" ]
null
null
null
common/point_of_sail.cc
denidoank/avalonsailing
8bc6d511e243ebd4fd90e7fb678ac7560226b5ca
[ "Apache-2.0" ]
null
null
null
// Copyright 2012 The Avalon Project Authors. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // that can be found in the LICENSE file. // Author: grundmann@google.com (Steffen Grundmann) #include "common/point_of_sail.h" #include <algorithm> #include <math.h> #include <stdio.h> ...
36.619792
114
0.65197
f6fd4a2306a313f4b215afa463ff783f890b2fdc
1,537
hpp
C++
external/mapnik/include/mapnik/make_unique.hpp
baiyicanggou/mapnik_mvt
9bde52fa9958d81361c015c816858534ec0931bb
[ "Apache-2.0" ]
null
null
null
external/mapnik/include/mapnik/make_unique.hpp
baiyicanggou/mapnik_mvt
9bde52fa9958d81361c015c816858534ec0931bb
[ "Apache-2.0" ]
null
null
null
external/mapnik/include/mapnik/make_unique.hpp
baiyicanggou/mapnik_mvt
9bde52fa9958d81361c015c816858534ec0931bb
[ "Apache-2.0" ]
null
null
null
/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2015 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as p...
35.744186
88
0.660377
f6ff12043e111230dcc023849f5f4b7363df3263
14,646
cpp
C++
rEFIt_UEFI/entry_scan/common.cpp
acidburn0zzz/CloverBootloader
0e91bcc0cd396f0f049d539a5d3ef516e574f1dd
[ "BSD-2-Clause" ]
1
2022-03-18T16:46:31.000Z
2022-03-18T16:46:31.000Z
rEFIt_UEFI/entry_scan/common.cpp
OlarilaHackintosh/CloverBootloader
103e3baaa353c32e05a0ac5f5acc1745667ef348
[ "BSD-2-Clause" ]
null
null
null
rEFIt_UEFI/entry_scan/common.cpp
OlarilaHackintosh/CloverBootloader
103e3baaa353c32e05a0ac5f5acc1745667ef348
[ "BSD-2-Clause" ]
null
null
null
/* * refit/scan/common.c * * Copyright (c) 2006-2010 Christoph Pfisterer * 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 cop...
34.13986
220
0.64154
f6ff23274aef470ac021638e3211bf220c9b6931
94,900
cpp
C++
native/sim_unicorn.cpp
CuteCutePanda/angr
cf54b8df34ce2da822e50e6347b892eff1f4b712
[ "BSD-2-Clause" ]
1
2021-12-20T14:48:33.000Z
2021-12-20T14:48:33.000Z
native/sim_unicorn.cpp
CuteCutePanda/angr
cf54b8df34ce2da822e50e6347b892eff1f4b712
[ "BSD-2-Clause" ]
null
null
null
native/sim_unicorn.cpp
CuteCutePanda/angr
cf54b8df34ce2da822e50e6347b892eff1f4b712
[ "BSD-2-Clause" ]
null
null
null
#define __STDC_FORMAT_MACROS 1 #include <algorithm> #include <cassert> #include <cinttypes> #include <cstdint> #include <cstring> #include <queue> #include <memory> #include <map> #include <set> #include <stdexcept> #include <unordered_set> #include <unordered_map> #include <vector> extern "C" { #include <libvex.h> #...
36.868687
143
0.731591
f6ff7fde0a308e5535d379ce468b03c1a5fa9a35
1,625
hpp
C++
include/private/coherence/component/net/extend/protocol/AcceptChannelResponse.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-01T21:38:30.000Z
2021-11-03T01:35:11.000Z
include/private/coherence/component/net/extend/protocol/AcceptChannelResponse.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
1
2020-07-24T17:29:22.000Z
2020-07-24T18:29:04.000Z
include/private/coherence/component/net/extend/protocol/AcceptChannelResponse.hpp
chpatel3/coherence-cpp-extend-client
4ea5267eae32064dff1e73339aa3fbc9347ef0f6
[ "UPL-1.0", "Apache-2.0" ]
6
2020-07-10T18:40:58.000Z
2022-02-18T01:23:40.000Z
/* * Copyright (c) 2000, 2020, Oracle and/or its affiliates. * * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ #ifndef COH_ACCEPT_CHANNEL_RESPONSE_HPP #define COH_ACCEPT_CHANNEL_RESPONSE_HPP #include "private/coherence/component/net/extend/AbstractPofRe...
23.550725
77
0.582154