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
acaf28fb533f2ed3c43c2fb1af5098f5f85cd0c6
166
cpp
C++
src/Resolution.cpp
chao-mu/vidrevolt
d7be4ed7a30ef9cec794c54ca1a06e4117420604
[ "MIT" ]
null
null
null
src/Resolution.cpp
chao-mu/vidrevolt
d7be4ed7a30ef9cec794c54ca1a06e4117420604
[ "MIT" ]
null
null
null
src/Resolution.cpp
chao-mu/vidrevolt
d7be4ed7a30ef9cec794c54ca1a06e4117420604
[ "MIT" ]
null
null
null
#include "Resolution.h" namespace vidrevolt { std::string Resolution::str() const { return std::to_string(width) + "x" + std::to_string(height); } }
20.75
68
0.63253
chao-mu
acb2d4cb122f8bbecac7a2d5e67676d9ad5f5286
687
cpp
C++
tests/main.cpp
all-in-one-of/hougeo
7ef770562f0095b59a4ce876976fc5c34a8b5533
[ "MIT" ]
9
2017-04-24T08:55:48.000Z
2021-12-21T13:15:02.000Z
tests/main.cpp
all-in-one-of/hougeo
7ef770562f0095b59a4ce876976fc5c34a8b5533
[ "MIT" ]
null
null
null
tests/main.cpp
all-in-one-of/hougeo
7ef770562f0095b59a4ce876976fc5c34a8b5533
[ "MIT" ]
2
2019-02-19T20:16:16.000Z
2019-08-22T08:51:26.000Z
#include <hougeo/json.h> #include <iostream> #include <fstream> // prints the file content of given houdini file void printLog( const std::string &path, std::ostream *out ) { std::ifstream in( path.c_str(), std::ios_base::in | std::ios_base::binary ); hougeo::json::JSONLogger logger(*out); hougeo::json::Parser...
21.46875
77
0.678311
all-in-one-of
acb3de12b891c8be8153746689eb3fa6c051b985
1,514
hpp
C++
cpp/map_key_iterator.hpp
frobware/cmd-key-happy
cd64bba07dc729f2701b0fc1e603d04d2dbc64e9
[ "MIT" ]
35
2015-09-24T23:04:03.000Z
2022-03-09T16:31:16.000Z
cpp/map_key_iterator.hpp
frobware/cmd-key-happy
cd64bba07dc729f2701b0fc1e603d04d2dbc64e9
[ "MIT" ]
4
2016-05-17T20:25:14.000Z
2019-06-05T16:14:34.000Z
cpp/map_key_iterator.hpp
frobware/cmd-key-happy
cd64bba07dc729f2701b0fc1e603d04d2dbc64e9
[ "MIT" ]
8
2015-12-08T01:18:58.000Z
2020-07-24T21:53:34.000Z
#pragma once // This class/idea/idiom taken from a reply on stackoverflow (but I // cannot find the original author). XXX Add missing attribution for // this code. #include <map> #include <iterator> namespace frobware { template<typename map_type> class key_iterator : public map_type::iterator { public: typedef...
23.65625
84
0.76288
frobware
acb4c8db6da1d9f72b7e06ce2b56fffda243b6f0
2,314
cc
C++
caffe2/operators/tensor_protos_db_input.cc
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
585
2015-08-10T02:48:52.000Z
2021-12-01T08:46:59.000Z
caffe2/operators/tensor_protos_db_input.cc
PDFxy/caffe2
28523ff1ff33f18eaf8b04cc4e0f308826e1861a
[ "Apache-2.0" ]
27
2018-04-14T06:44:22.000Z
2018-08-01T18:02:39.000Z
caffe2/operators/tensor_protos_db_input.cc
PDFxy/caffe2
28523ff1ff33f18eaf8b04cc4e0f308826e1861a
[ "Apache-2.0" ]
183
2015-08-10T02:49:04.000Z
2021-12-01T08:47:13.000Z
/** * Copyright (c) 2016-present, Facebook, 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 ...
47.22449
80
0.741573
KevinKecc
acb4ebe8bad9a08dff2f049b774946e1aef8b3cd
9,960
hpp
C++
libvast/vast/plugin.hpp
ngrodzitski/vast
5d114f53d51db8558f673c7f873bd92ded630bf6
[ "BSD-3-Clause" ]
null
null
null
libvast/vast/plugin.hpp
ngrodzitski/vast
5d114f53d51db8558f673c7f873bd92ded630bf6
[ "BSD-3-Clause" ]
null
null
null
libvast/vast/plugin.hpp
ngrodzitski/vast
5d114f53d51db8558f673c7f873bd92ded630bf6
[ "BSD-3-Clause" ]
null
null
null
/****************************************************************************** * _ _____ __________ * * | | / / _ | / __/_ __/ Visibility * * | |/ / __ |_\ \ / / Across * ...
40.819672
80
0.531627
ngrodzitski
acb5f05ec38b0370a836cbace0a6fdd707038f11
2,989
cpp
C++
compiler/src/Ast/AstStringLiteral.cpp
jadedrip/SimpleLang
f39c490e5a41151d1d0d2f8c77c6ce524b7842f0
[ "BSD-3-Clause" ]
16
2015-03-30T02:46:49.000Z
2020-07-28T13:36:54.000Z
compiler/src/Ast/AstStringLiteral.cpp
jadedrip/SimpleLang
f39c490e5a41151d1d0d2f8c77c6ce524b7842f0
[ "BSD-3-Clause" ]
1
2020-09-01T09:38:30.000Z
2020-09-01T09:38:30.000Z
compiler/src/Ast/AstStringLiteral.cpp
jadedrip/SimpleLang
f39c490e5a41151d1d0d2f8c77c6ce524b7842f0
[ "BSD-3-Clause" ]
2
2020-02-07T02:09:48.000Z
2020-02-19T13:31:35.000Z
#include "stdafx.h" #include "AstStringLiteral.h" #include "AstModule.h" #include "../CodeGenerate/StringLiteGen.h" AstStringLiteral::AstStringLiteral(const char * v) { if (v[0] == '"') { name.assign(v + 1); // 去除首尾双引号 name.erase(name.end() - 1); } else { name.assign(v); } escape(); } CodeGen * AstStrin...
22.473684
116
0.512881
jadedrip
acb5f1640a390b5b862aedd997d7590dc3a5ebe3
502
cpp
C++
src/commands/info.cpp
JorelAli/Metro
61341e5d288aaa13b57de47e1c2ff68465e209da
[ "MIT" ]
null
null
null
src/commands/info.cpp
JorelAli/Metro
61341e5d288aaa13b57de47e1c2ff68465e209da
[ "MIT" ]
null
null
null
src/commands/info.cpp
JorelAli/Metro
61341e5d288aaa13b57de47e1c2ff68465e209da
[ "MIT" ]
null
null
null
#include "pch.h" Command info { "info", "Show the state of the repo", // execute [](const Arguments &args) { Repository repo = git::Repository::open("."); cout << "Current branch: " << metro::current_branch_name(repo) << endl; cout << "Merging: " << ...
26.421053
86
0.484064
JorelAli
acbf5b8b127b28a658a27d069894f4bac517577e
673
cpp
C++
code/main.cpp
stoman/HashCode2018
de3a540d7a8ac07e2bbdbe7422801fefb33a00ec
[ "MIT" ]
1
2018-03-06T13:36:45.000Z
2018-03-06T13:36:45.000Z
code/main.cpp
stoman/HashCode2018
de3a540d7a8ac07e2bbdbe7422801fefb33a00ec
[ "MIT" ]
1
2018-03-05T17:00:46.000Z
2018-03-10T12:28:51.000Z
code/main.cpp
stoman/HashCode2018
de3a540d7a8ac07e2bbdbe7422801fefb33a00ec
[ "MIT" ]
null
null
null
#include "util.cpp" #include "part1.cpp" #include "part2.cpp" //input/output code int main(int argc, char* argv[]) { ios::sync_with_stdio(false); srand(time(NULL)); //read input Input input; readInput(input, cin); //read command line args string algorithm = ""; if(argc > 1) { algorithm = argv[1]; } //...
16.825
49
0.591382
stoman
acbfc79e49fbdd1961ba931877c2bee2fe444077
1,333
cpp
C++
aws-cpp-sdk-backup/source/model/ListBackupVaultsResult.cpp
lintonv/aws-sdk-cpp
15e19c265ffce19d2046b18aa1b7307fc5377e58
[ "Apache-2.0" ]
1
2022-02-12T08:09:30.000Z
2022-02-12T08:09:30.000Z
aws-cpp-sdk-backup/source/model/ListBackupVaultsResult.cpp
lintonv/aws-sdk-cpp
15e19c265ffce19d2046b18aa1b7307fc5377e58
[ "Apache-2.0" ]
1
2022-01-03T23:59:37.000Z
2022-01-03T23:59:37.000Z
aws-cpp-sdk-backup/source/model/ListBackupVaultsResult.cpp
ravindra-wagh/aws-sdk-cpp
7d5ff01b3c3b872f31ca98fb4ce868cd01e97696
[ "Apache-2.0" ]
1
2022-03-23T15:17:18.000Z
2022-03-23T15:17:18.000Z
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/backup/model/ListBackupVaultsResult.h> #include <aws/core/utils/json/JsonSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aws/...
26.66
126
0.763691
lintonv
acbff0d2bc6fd0d2b2a9c66d92ffb8ec3b355c0a
1,226
cpp
C++
OGDF/_examples/layout/orthogonal/main.cpp
shahnidhi/MetaCarvel
f3bea5fdbbecec4c9becc6bbdc9585a939eb5481
[ "MIT" ]
13
2017-12-21T03:35:41.000Z
2022-01-31T13:45:25.000Z
OGDF/_examples/layout/orthogonal/main.cpp
shahnidhi/MetaCarvel
f3bea5fdbbecec4c9becc6bbdc9585a939eb5481
[ "MIT" ]
7
2017-09-13T01:31:24.000Z
2021-12-14T00:31:50.000Z
OGDF/_examples/layout/orthogonal/main.cpp
shahnidhi/MetaCarvel
f3bea5fdbbecec4c9becc6bbdc9585a939eb5481
[ "MIT" ]
15
2017-09-07T18:28:55.000Z
2022-01-18T14:17:43.000Z
#include <ogdf/planarity/PlanarizationLayout.h> #include <ogdf/planarity/SubgraphPlanarizer.h> #include <ogdf/planarity/VariableEmbeddingInserter.h> #include <ogdf/planarity/FastPlanarSubgraph.h> #include <ogdf/orthogonal/OrthoLayout.h> #include <ogdf/planarity/EmbedderMinDepthMaxFaceLayers.h> #include <ogdf/fileformat...
24.52
72
0.777325
shahnidhi
acc1aeab0c888abdc127e061373d13a39f347805
10,148
cpp
C++
sdk/chustd/ImageFormat.cpp
hadrien-psydk/pngoptimizer
d92946e63a57a4562af0feaa9e4cfd8628373777
[ "Zlib" ]
90
2016-08-23T00:13:04.000Z
2022-02-22T09:40:46.000Z
sdk/chustd/ImageFormat.cpp
hadrien-psydk/pngoptimizer
d92946e63a57a4562af0feaa9e4cfd8628373777
[ "Zlib" ]
25
2016-09-01T07:09:03.000Z
2022-01-31T16:18:57.000Z
sdk/chustd/ImageFormat.cpp
hadrien-psydk/pngoptimizer
d92946e63a57a4562af0feaa9e4cfd8628373777
[ "Zlib" ]
17
2017-05-03T17:49:25.000Z
2021-12-28T06:47:56.000Z
/////////////////////////////////////////////////////////////////////////////// // This file is part of the chustd library // Copyright (C) ChuTeam // For conditions of distribution and use, see copyright notice in chustd.h /////////////////////////////////////////////////////////////////////////////// #include "stdaf...
20.134921
101
0.582184
hadrien-psydk
acc251772bb370a154ff6840dedcb61bdce121e9
2,801
cpp
C++
tools/light-directions/main.cpp
bradparks/Restore__3d_model_from_pics_2d_multiple_images
58f935130693e6eba2db133ce8dec3fd6a3d3dd0
[ "MIT" ]
21
2018-07-17T02:35:43.000Z
2022-02-25T00:45:09.000Z
tools/light-directions/main.cpp
bradparks/Restore__3d_model_from_pics_2d_multiple_images
58f935130693e6eba2db133ce8dec3fd6a3d3dd0
[ "MIT" ]
null
null
null
tools/light-directions/main.cpp
bradparks/Restore__3d_model_from_pics_2d_multiple_images
58f935130693e6eba2db133ce8dec3fd6a3d3dd0
[ "MIT" ]
11
2018-09-06T17:29:36.000Z
2022-01-29T12:20:59.000Z
// Copyright (c) 2015-2016, Kai Wolf // // 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, merge, publish...
36.376623
80
0.697251
bradparks
acc3b189afe63eedffa6fa7e2d92c221cb77349a
48,337
cc
C++
supersonic/cursor/core/aggregate_groups.cc
IssamElbaytam/supersonic
062a48ddcb501844b25a8ae51bd777fcf7ac1721
[ "Apache-2.0" ]
201
2015-03-18T21:55:00.000Z
2022-03-03T01:48:26.000Z
supersonic/cursor/core/aggregate_groups.cc
edisona/supersonic
062a48ddcb501844b25a8ae51bd777fcf7ac1721
[ "Apache-2.0" ]
6
2015-03-19T16:47:19.000Z
2020-10-05T09:38:26.000Z
supersonic/cursor/core/aggregate_groups.cc
edisona/supersonic
062a48ddcb501844b25a8ae51bd777fcf7ac1721
[ "Apache-2.0" ]
54
2015-03-19T16:31:57.000Z
2021-12-31T10:14:57.000Z
// Copyright 2010 Google 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 applicable...
41.669828
80
0.701781
IssamElbaytam
acc5d6b6567be09ad8389cda0ec835b7f7bc50ab
23,914
cpp
C++
src/states/main-state.cpp
xterminal86/nrogue
1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f
[ "MIT" ]
7
2019-03-05T05:32:13.000Z
2022-01-10T10:06:47.000Z
src/states/main-state.cpp
xterminal86/nrogue
1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f
[ "MIT" ]
2
2020-01-19T16:43:51.000Z
2021-12-16T14:54:56.000Z
src/states/main-state.cpp
xterminal86/nrogue
1d4e578b3d854b8e4d41f5ba1477de9b2c9e864f
[ "MIT" ]
null
null
null
#include "main-state.h" #include "application.h" #include "map.h" #include "printer.h" #include "stairs-component.h" #include "target-state.h" #include "spells-processor.h" void MainState::Init() { _playerRef = &Application::Instance().PlayerInstance; } void MainState::HandleInput() { // // Otherwise we could ...
26.308031
146
0.59116
xterminal86
acc80e24d55eaff214a28394fc1b5439f3009647
2,417
hpp
C++
src/game/level/tiled.hpp
lowkey42/MagnumOpus
87897b16192323b40064119402c74e014a48caf3
[ "MIT" ]
5
2020-03-13T23:16:33.000Z
2022-03-20T19:16:46.000Z
src/game/level/tiled.hpp
lowkey42/MagnumOpus
87897b16192323b40064119402c74e014a48caf3
[ "MIT" ]
24
2015-04-20T20:26:23.000Z
2015-11-20T22:39:38.000Z
src/game/level/tiled.hpp
lowkey42/medienprojekt
87897b16192323b40064119402c74e014a48caf3
[ "MIT" ]
1
2022-03-08T03:11:21.000Z
2022-03-08T03:11:21.000Z
/**************************************************************************\ * load & save JSON files from Tiled editor * * ___ * * /\/\ __ _ __ _ _ __ _ _ _ __ ___ /___\_ __ _ _ ___ * * / \ / _...
26.855556
76
0.456765
lowkey42
acc80f97c25dec5002e4fe818cfc940e628f317e
10,729
cpp
C++
src/storage-client.cpp
corehacker/ch-storage-client
d5621b0d5e6f16b9c517d4d048a209dde8169b61
[ "MIT" ]
null
null
null
src/storage-client.cpp
corehacker/ch-storage-client
d5621b0d5e6f16b9c517d4d048a209dde8169b61
[ "MIT" ]
null
null
null
src/storage-client.cpp
corehacker/ch-storage-client
d5621b0d5e6f16b9c517d4d048a209dde8169b61
[ "MIT" ]
null
null
null
/******************************************************************************* * * BSD 2-Clause License * * Copyright (c) 2017, Sandeep Prakash * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
28.919137
90
0.651412
corehacker
acc8a54f4767d35c69483b333b5d6c042883d19e
5,003
cpp
C++
test/CompilationTests/LambdaTests/MakePromise/RValue.cpp
rocky01/promise
638415a117207a4cae9181e04114e1d7575a9689
[ "MIT" ]
2
2018-10-15T18:27:50.000Z
2019-04-16T18:34:59.000Z
test/CompilationTests/LambdaTests/MakePromise/RValue.cpp
rocky01/promise
638415a117207a4cae9181e04114e1d7575a9689
[ "MIT" ]
null
null
null
test/CompilationTests/LambdaTests/MakePromise/RValue.cpp
rocky01/promise
638415a117207a4cae9181e04114e1d7575a9689
[ "MIT" ]
null
null
null
#include "gtest/gtest.h" #include "gmock/gmock.h" #include "Promise.hpp" using namespace prm; /*** * * 1. make_promise function. * * We have types: * ExeT * ExeVoid * * ResolveT * ResolveVoid * ResolveUndefined * * RejectT * RejectVoid * RejectUndefined * * There are the following combinations availia...
23.82381
81
0.678193
rocky01
accadd5dba17414263f9529f7f8f55df3cdbe57a
1,445
cc
C++
src/envoy/http/grpc_metadata_scrubber/filter.cc
CorrelatedLabs/esp-v2
9fa93040d70f98087b3586a88a0764b9f5ec544c
[ "Apache-2.0" ]
163
2019-12-18T18:40:50.000Z
2022-03-17T03:34:22.000Z
src/envoy/http/grpc_metadata_scrubber/filter.cc
CorrelatedLabs/esp-v2
9fa93040d70f98087b3586a88a0764b9f5ec544c
[ "Apache-2.0" ]
669
2019-12-19T00:36:12.000Z
2022-03-30T20:27:52.000Z
src/envoy/http/grpc_metadata_scrubber/filter.cc
CorrelatedLabs/esp-v2
9fa93040d70f98087b3586a88a0764b9f5ec544c
[ "Apache-2.0" ]
177
2019-12-19T00:35:51.000Z
2022-03-24T10:22:23.000Z
// Copyright 2020 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...
31.413043
75
0.737716
CorrelatedLabs
accec0a52732000b9e66a70a4aa93cc464cdfbe8
463
cpp
C++
server/src/notifier/detail/system.cpp
chyla/slas
c0c222e55571a7f8b2cb0b68b3e4900dbff9a986
[ "MIT" ]
1
2016-03-03T13:04:57.000Z
2016-03-03T13:04:57.000Z
server/src/notifier/detail/system.cpp
chyla/slas
c0c222e55571a7f8b2cb0b68b3e4900dbff9a986
[ "MIT" ]
null
null
null
server/src/notifier/detail/system.cpp
chyla/slas
c0c222e55571a7f8b2cb0b68b3e4900dbff9a986
[ "MIT" ]
null
null
null
/* * Copyright 2016 Adam Chyła, adam@chyla.org * All rights reserved. Distributed under the terms of the MIT License. */ #include "system.h" #include <unistd.h> namespace notifier { namespace detail { SystemPtr System::Create() { return std::make_shared<System>(); } void System::Sleep(unsigned seconds) { s...
13.228571
71
0.688985
chyla
acd61f4db9e2ad2931692a24e7686ac496b734a9
969
hpp
C++
include/mcnla/isvd/integrator.hpp
emfomy/mcnla
9f9717f4d6449bbd467c186651856d6212035667
[ "MIT" ]
null
null
null
include/mcnla/isvd/integrator.hpp
emfomy/mcnla
9f9717f4d6449bbd467c186651856d6212035667
[ "MIT" ]
null
null
null
include/mcnla/isvd/integrator.hpp
emfomy/mcnla
9f9717f4d6449bbd467c186651856d6212035667
[ "MIT" ]
null
null
null
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /// @file include/mcnla/isvd/integrator.hpp /// @brief The iSVD integrator header. /// /// @author Mu Yang <<emfomy@gmail.com>> /// #ifndef MCNLA_ISVD_INTEGRATOR_HPP_ #define MCNLA_ISV...
35.888889
128
0.705882
emfomy
acd7fdd67d541eb39a0a53e46e832dbc059fe020
3,109
hpp
C++
include/landscapes/svo_tree.sanity.hpp
realazthat/landscapes
0d56d67beb5641b913100d86601fce8a5a63fb1c
[ "MIT", "WTFPL", "Unlicense", "0BSD" ]
32
2015-12-29T04:33:08.000Z
2021-04-08T01:46:44.000Z
include/landscapes/svo_tree.sanity.hpp
realazthat/landscapes
0d56d67beb5641b913100d86601fce8a5a63fb1c
[ "MIT", "WTFPL", "Unlicense", "0BSD" ]
null
null
null
include/landscapes/svo_tree.sanity.hpp
realazthat/landscapes
0d56d67beb5641b913100d86601fce8a5a63fb1c
[ "MIT", "WTFPL", "Unlicense", "0BSD" ]
2
2019-04-05T02:28:02.000Z
2019-06-11T07:59:53.000Z
#ifndef SVO_TREE_SANITY_HPP #define SVO_TREE_SANITY_HPP 1 #include "svo_tree.fwd.hpp" #include <iosfwd> #include <string> namespace svo{ // See https://github.com/google/googletest/blob/master/googletest/docs/AdvancedGuide.md#teaching-google-test-how-to-print-your-values ::std::ostream& operator<<(::std::ostre...
29.609524
141
0.693149
realazthat
acdb388131cb6a63f8247b8982f33554a75e71df
449
hpp
C++
library/ATF/CCheckSumGuildConverter.hpp
lemkova/Yorozuya
f445d800078d9aba5de28f122cedfa03f26a38e4
[ "MIT" ]
29
2017-07-01T23:08:31.000Z
2022-02-19T10:22:45.000Z
library/ATF/CCheckSumGuildConverter.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
90
2017-10-18T21:24:51.000Z
2019-06-06T02:30:33.000Z
library/ATF/CCheckSumGuildConverter.hpp
kotopes/Yorozuya
605c97d3a627a8f6545cc09f2a1b0a8afdedd33a
[ "MIT" ]
44
2017-12-19T08:02:59.000Z
2022-02-24T23:15:01.000Z
// This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually #pragma once #include <common/common.h> #include <CCheckSumBaseConverter.hpp> #include <CCheckSumGuildData.hpp> START_ATF_NAMESPACE struct CCheckSumGuildConverter : CCheckSumBaseConverter { publi...
28.0625
108
0.768374
lemkova
acdf191c7bcfb35a6ab7f1fd2e1f2abea29d6b4d
2,147
cpp
C++
src/operators/opLess.cpp
athanor/athanor
0e7a654c360be05dc6f6e50427b2ee3df92c1aaf
[ "BSD-3-Clause" ]
4
2018-08-31T09:44:52.000Z
2021-03-01T19:10:00.000Z
src/operators/opLess.cpp
athanor/athanor
0e7a654c360be05dc6f6e50427b2ee3df92c1aaf
[ "BSD-3-Clause" ]
21
2019-12-29T08:33:34.000Z
2020-11-22T16:38:37.000Z
src/operators/opLess.cpp
athanor/athanor
0e7a654c360be05dc6f6e50427b2ee3df92c1aaf
[ "BSD-3-Clause" ]
null
null
null
#include "operators/opLess.h" #include "operators/simpleOperator.hpp" using namespace std; void OpLess::reevaluateImpl(IntView& leftView, IntView& rightView, bool, bool) { Int diff = (rightView.value - 1) - leftView.value; violation = abs(min<Int>(diff, 0)); } void OpLess::updateVarViolationsImpl(const Violati...
32.044776
80
0.63251
athanor
ace3f5b4bcba607dd8c0c08bbfa5d5dbc03dd891
2,711
hpp
C++
filelib/include/ini/INI_Tokenizer.hpp
radj307/307lib
16c5052481b2414ee68beeb7746c006461e8160f
[ "MIT" ]
1
2021-12-09T20:01:21.000Z
2021-12-09T20:01:21.000Z
filelib/include/ini/INI_Tokenizer.hpp
radj307/307lib
16c5052481b2414ee68beeb7746c006461e8160f
[ "MIT" ]
null
null
null
filelib/include/ini/INI_Tokenizer.hpp
radj307/307lib
16c5052481b2414ee68beeb7746c006461e8160f
[ "MIT" ]
null
null
null
#pragma once #include <TokenReduxDefaultDefs.hpp> namespace file::ini::tokenizer { using namespace token::DefaultDefs; /** * @struct INITokenizer * @brief Tokenizes the contents of an INI config file. */ struct INITokenizer : token::base::TokenizerBase<LEXEME, LexemeDict, ::token::DefaultDefs::TokenType, Tok...
41.707692
175
0.665806
radj307
ace4859641d2c085e8fd73a2fa2df95442aa6b3c
1,496
cpp
C++
asps/modbus/pdu/message/message_service.cpp
activesys/asps
36cc90a192d13df8669f9743f80a0662fe888d16
[ "MIT" ]
null
null
null
asps/modbus/pdu/message/message_service.cpp
activesys/asps
36cc90a192d13df8669f9743f80a0662fe888d16
[ "MIT" ]
null
null
null
asps/modbus/pdu/message/message_service.cpp
activesys/asps
36cc90a192d13df8669f9743f80a0662fe888d16
[ "MIT" ]
null
null
null
// Copyright (c) 2021 The asps Authors. All rights reserved. // Use of this source code is governed by a MIT license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // Modbus PDU Message Service. #include <asps/modbus/pdu/message/message_service.hpp> #include <asps/modbus/p...
31.829787
83
0.707888
activesys
ace55a95143f50865e1aed308f8888bebc014257
1,577
hpp
C++
include/helpFunctions.hpp
ekildishev/lab-01-parser
03b9bf4480ceb2285f2650249f4edeb30ae469ef
[ "MIT" ]
2
2019-12-07T11:53:40.000Z
2020-09-28T17:47:20.000Z
include/helpFunctions.hpp
ekildishev/lab-01-parser
03b9bf4480ceb2285f2650249f4edeb30ae469ef
[ "MIT" ]
null
null
null
include/helpFunctions.hpp
ekildishev/lab-01-parser
03b9bf4480ceb2285f2650249f4edeb30ae469ef
[ "MIT" ]
null
null
null
// Copyright 2018 Your Name <your_email> #pragma once #include <iostream> #include <sstream> bool isSpace(char ch) { return ch == ' ' || ch == '\n' || ch == '\r' || ch == '\t'; } int findEnd(const std::string &s, int start, char openSym, char closeSym) { unsigned int i = 0; unsigned int openC = 1; unsigned ...
23.191176
75
0.54851
ekildishev
ace7200352adb1e3e4c032c952d31007c6ad6491
4,610
hpp
C++
tests/widgets/ExampleColorWidget.hpp
noisecode3/DPF
86a621bfd86922a49ce593fec2a618a1e0cc6ef3
[ "0BSD" ]
372
2015-02-09T15:05:16.000Z
2022-03-30T15:35:17.000Z
tests/widgets/ExampleColorWidget.hpp
noisecode3/DPF
86a621bfd86922a49ce593fec2a618a1e0cc6ef3
[ "0BSD" ]
324
2015-10-05T14:30:41.000Z
2022-03-30T07:06:04.000Z
tests/widgets/ExampleColorWidget.hpp
noisecode3/DPF
86a621bfd86922a49ce593fec2a618a1e0cc6ef3
[ "0BSD" ]
89
2015-02-20T11:26:50.000Z
2022-02-11T00:07:27.000Z
/* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2021 Filipe Coelho <falktx@falktx.com> * * 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 notice appear in all copies. ...
25.611111
90
0.556182
noisecode3
ace8a8b566adb1abdc0bdcfa117a4830d77098a6
4,096
cc
C++
src/developer/feedback/bugreport/bug_reporter.cc
OpenTrustGroup/fuchsia
647e593ea661b8bf98dcad2096e20e8950b24a97
[ "BSD-3-Clause" ]
1
2019-04-21T18:02:26.000Z
2019-04-21T18:02:26.000Z
src/developer/feedback/bugreport/bug_reporter.cc
OpenTrustGroup/fuchsia
647e593ea661b8bf98dcad2096e20e8950b24a97
[ "BSD-3-Clause" ]
16
2020-09-04T19:01:11.000Z
2021-05-28T03:23:09.000Z
src/developer/feedback/bugreport/bug_reporter.cc
OpenTrustGroup/fuchsia
647e593ea661b8bf98dcad2096e20e8950b24a97
[ "BSD-3-Clause" ]
null
null
null
// Copyright 2019 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "src/developer/feedback/bugreport/bug_reporter.h" #include <fuchsia/feedback/cpp/fidl.h> #include <lib/fsl/vmo/strings.h> #include <stdio.h> #includ...
36.900901
100
0.708984
OpenTrustGroup
aceddcdbb1d88f3707b4016d24a72046131048aa
2,754
cpp
C++
src/camino_minimo/camino_minimo.cpp
mmaximiliano/algo3-project2
bad8f7704f8d004c1e21ba684e98890578bf8ccc
[ "MIT" ]
null
null
null
src/camino_minimo/camino_minimo.cpp
mmaximiliano/algo3-project2
bad8f7704f8d004c1e21ba684e98890578bf8ccc
[ "MIT" ]
null
null
null
src/camino_minimo/camino_minimo.cpp
mmaximiliano/algo3-project2
bad8f7704f8d004c1e21ba684e98890578bf8ccc
[ "MIT" ]
null
null
null
#include "bellman_ford.h" #include "dijkstra.h" #include "dijkstra_cp.h" #include "floyd_warshall.h" #include "estructuras.h" #include "funciones_auxiliares.h" #include <chrono> int infinito = 10000000; int main(){ grafo_ad G = crear_grafo_modificado(); vector<vector<int> > distancias; string metod...
34
141
0.60167
mmaximiliano
acef454a33829800d8af20ea3d9e6a04a72644ae
94
cc
C++
cc/Neat/Bit/Sequence.cc
ma16/rpio
2e9e5f6794ebe8d60d62e0c65a14edd80f0194ec
[ "BSD-2-Clause" ]
1
2020-06-07T14:50:44.000Z
2020-06-07T14:50:44.000Z
cc/Neat/Bit/Sequence.cc
ma16/rpio
2e9e5f6794ebe8d60d62e0c65a14edd80f0194ec
[ "BSD-2-Clause" ]
null
null
null
cc/Neat/Bit/Sequence.cc
ma16/rpio
2e9e5f6794ebe8d60d62e0c65a14edd80f0194ec
[ "BSD-2-Clause" ]
null
null
null
// BSD 2-Clause License, see github.com/ma16/rpio #include "Sequence.h" // empty on purpose
15.666667
49
0.712766
ma16
acf00657c2eb69b30ad27537a0df822180e114ed
1,516
hpp
C++
Phoenix3D/PX2Simulation/SkillCompl/PX2SkillActorLink.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
36
2016-04-24T01:40:38.000Z
2022-01-18T07:32:26.000Z
Phoenix3D/PX2Simulation/SkillCompl/PX2SkillActorLink.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
null
null
null
Phoenix3D/PX2Simulation/SkillCompl/PX2SkillActorLink.hpp
PheonixFoundation/Phoenix3D
bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99
[ "BSL-1.0" ]
16
2016-06-13T08:43:51.000Z
2020-09-15T13:25:58.000Z
// PX2SkillActorLink.hpp #ifndef PX2SKILLACTORLINK_HPP #define PX2SKILLACTORLINK_HPP #include "PX2Actor.hpp" #include "PX2BeamEmitter.hpp" namespace PX2 { class SkillActorLink : public Actor { PX2_DECLARE_RTTI; PX2_DECLARE_NAMES; PX2_DECLARE_STREAM(SkillActorLink); public: SkillActorLink(); virtual ~S...
18.716049
52
0.751979
PheonixFoundation
acf2ccbda43fc2317dd3b4cb2642161227aafc8f
1,955
hpp
C++
src/lib/lossy_cast.hpp
dey4ss/hyrise
c304b9ced36044e303eb8a4d68a05fc7edc04819
[ "MIT" ]
1
2019-12-30T13:23:30.000Z
2019-12-30T13:23:30.000Z
src/lib/lossy_cast.hpp
dey4ss/hyrise
c304b9ced36044e303eb8a4d68a05fc7edc04819
[ "MIT" ]
11
2019-12-02T20:47:52.000Z
2020-02-04T23:19:31.000Z
src/lib/lossy_cast.hpp
dey4ss/hyrise
c304b9ced36044e303eb8a4d68a05fc7edc04819
[ "MIT" ]
1
2020-11-17T19:18:58.000Z
2020-11-17T19:18:58.000Z
#pragma once #include <optional> #include <string> #include <type_traits> #include <boost/lexical_cast.hpp> #include <boost/variant.hpp> #include "resolve_type.hpp" namespace opossum { /** * Contrary to the functions in lossless_cast.hpp, converts from an AllTypeVariant to any target, even if accuracy/data * is ...
34.910714
119
0.685934
dey4ss
acf4a9e896b18a13187658d478d2ea8356b620bf
22,442
cpp
C++
src/sed/libs/seiscomp3/datamodel/strongmotion/strongmotionparameters.cpp
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
94
2015-02-04T13:57:34.000Z
2021-11-01T15:10:06.000Z
src/sed/libs/seiscomp3/datamodel/strongmotion/strongmotionparameters.cpp
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
233
2015-01-28T15:16:46.000Z
2021-08-23T11:31:37.000Z
src/sed/libs/seiscomp3/datamodel/strongmotion/strongmotionparameters.cpp
damb/seiscomp3
560a8f7ae43737ae7826fb1ffca76a9f601cf9dc
[ "Naumen", "Condor-1.1", "MS-PL" ]
95
2015-02-13T15:53:30.000Z
2021-11-02T14:54:54.000Z
/*************************************************************************** * Copyright (C) by GFZ Potsdam * * * * You can redistribute and/or modify this program under the * * terms o...
33.296736
458
0.543356
damb
acf4ec5b0c59feb0947e332da9ef1ea843127c50
2,253
cpp
C++
server.cpp
no-go/ServerPush
eeb75fa7e6a0a10f1edcc6dd7dc0821e29e5503c
[ "Unlicense" ]
null
null
null
server.cpp
no-go/ServerPush
eeb75fa7e6a0a10f1edcc6dd7dc0821e29e5503c
[ "Unlicense" ]
null
null
null
server.cpp
no-go/ServerPush
eeb75fa7e6a0a10f1edcc6dd7dc0821e29e5503c
[ "Unlicense" ]
null
null
null
#include <iostream> #include <sstream> #include <chrono> #include <thread> #include <cstdlib> #include <list> #include <algorithm> // find() #include "lib/UniSocket.hpp" using namespace std; #define POLLINGMYSEC 500000 list<UniSocket> clientConnections; void threadHandle(UniSocket usock) { string msg; bool ne...
21.457143
76
0.562805
no-go
acf5634c551b27ebcde2921a53ffe5723db612bd
5,042
cpp
C++
openbr/plugins/cluster/onlinerod.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
61
2016-01-27T04:23:04.000Z
2020-06-19T20:45:16.000Z
openbr/plugins/cluster/onlinerod.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
2
2016-04-09T13:55:15.000Z
2017-11-21T03:08:08.000Z
openbr/plugins/cluster/onlinerod.cpp
kassemitani/openbr
7b453f7abc6f997839a858f4b7686bc5e21ef7b2
[ "Apache-2.0" ]
18
2016-01-27T13:07:47.000Z
2022-01-22T17:19:18.000Z
#include <openbr/plugins/openbr_internal.h> #include <openbr/core/cluster.h> #include <openbr/core/opencvutils.h> using namespace cv; namespace br { /*! * \brief Constructors clusters based on the Rank-Order distance in an online, incremental manner * \author Charles Otto \cite caotto * \author Jordan Cheney \cit...
40.015873
154
0.63923
kassemitani
acf5d0d8f5329aaae342414fd903983e792ee2c4
254
cpp
C++
LeetCode/Problems/Algorithms/#476_NumberComplement_sol5_bit_manipulation_O(1)_time_O(1)_extra_space.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
1
2022-01-26T14:50:07.000Z
2022-01-26T14:50:07.000Z
LeetCode/Problems/Algorithms/#476_NumberComplement_sol5_bit_manipulation_O(1)_time_O(1)_extra_space.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
LeetCode/Problems/Algorithms/#476_NumberComplement_sol5_bit_manipulation_O(1)_time_O(1)_extra_space.cpp
Tudor67/Competitive-Programming
ae4dc6ed8bf76451775bf4f740c16394913f3ff1
[ "MIT" ]
null
null
null
class Solution { public: int findComplement(int num) { int msb = 31 - __builtin_clz((unsigned int)num); int fullMask = ((1U << (msb + 1)) - 1); int numComplement = fullMask ^ num; return numComplement; } };
28.222222
57
0.555118
Tudor67
acf81a09adee92346a866c739f451b3cc7006bf2
5,884
cc
C++
tree/TrieTree.cc
raining888/leetcode
e9e8ac51d49e0c5f1450a6b76ba9777b89f7e25b
[ "MIT" ]
null
null
null
tree/TrieTree.cc
raining888/leetcode
e9e8ac51d49e0c5f1450a6b76ba9777b89f7e25b
[ "MIT" ]
null
null
null
tree/TrieTree.cc
raining888/leetcode
e9e8ac51d49e0c5f1450a6b76ba9777b89f7e25b
[ "MIT" ]
null
null
null
#include <iostream> #include <random> #include <string> #include <unordered_map> #include <string.h> using namespace std; class TrieTree { public: class Node { public: int pass; // 标记该节点有多少个相同前缀的节点 int end; //标记该节点加入过多少次,或者说有多少个以该节点结尾的单词 unordered_map<int, Node*> nexts; ...
21.873606
78
0.406526
raining888
acf8e33715d26fbff11bf57300d429ec1ec3965c
2,786
cpp
C++
src/components/improviser.cpp
jan-van-bergen/Synth
cc6fee6376974a3cc2e86899ab2859a5f1fb7e33
[ "MIT" ]
17
2021-03-22T14:17:16.000Z
2022-02-22T20:58:27.000Z
src/components/improviser.cpp
jan-van-bergen/Synth
cc6fee6376974a3cc2e86899ab2859a5f1fb7e33
[ "MIT" ]
null
null
null
src/components/improviser.cpp
jan-van-bergen/Synth
cc6fee6376974a3cc2e86899ab2859a5f1fb7e33
[ "MIT" ]
1
2021-11-17T18:00:55.000Z
2021-11-17T18:00:55.000Z
#include "improviser.h" #include "synth/synth.h" void ImproviserComponent::update(Synth const & synth) { constexpr auto transfer = util::generate_lookup_table<float, 7 * 7>([](int index) -> float { constexpr float matrix[7 * 7] = { 1.0f, 2.0f, 2.0f, 3.0f, 5.0f, 1.0f, 1.0f, 1.0f, 1.0f, 2.0f, 1.0f, 5.0f, 3.0f,...
27.048544
112
0.609835
jan-van-bergen
acfa788c86bc91b8b073a6d5b3d5515772723cce
2,887
cpp
C++
Source/WebCore/Modules/webgpu/WebGPUComputePassEncoder.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
6
2021-07-05T16:09:39.000Z
2022-03-06T22:44:42.000Z
Source/WebCore/Modules/webgpu/WebGPUComputePassEncoder.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
7
2022-03-15T13:25:39.000Z
2022-03-15T13:25:44.000Z
Source/WebCore/Modules/webgpu/WebGPUComputePassEncoder.cpp
jacadcaps/webkitty
9aebd2081349f9a7b5d168673c6f676a1450a66d
[ "BSD-2-Clause" ]
null
null
null
/* * Copyright (C) 2019 Apple 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
33.964706
103
0.748528
jacadcaps
acff9a03c40bfd96d0dc41ce22181ba72f6ae208
348
cpp
C++
2017-08-03/I.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
3
2018-04-02T06:00:51.000Z
2018-05-29T04:46:29.000Z
2017-08-03/I.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
2
2018-03-31T17:54:30.000Z
2018-05-02T11:31:06.000Z
2017-08-03/I.cpp
tangjz/Three-Investigators
46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52
[ "MIT" ]
2
2018-10-07T00:08:06.000Z
2021-06-28T11:02:59.000Z
#include <cstdlib> #include <cstdio> #include <cstring> using namespace std; int T; int N, cnt[2]; int main() { int t, i, x; scanf("%d", &T); for(t = 0;t < T;t += 1) { cnt[0] = cnt[1] = 0; scanf("%d", &N); for(i = 0;i < N;i += 1) { scanf("%d", &x); cnt[x & 1] += 1; } printf("2 %d\n", cnt[0] >= ...
12.888889
41
0.462644
tangjz
4a038e9aad87dbd1b13a4488a297ed810a225bf5
230
cpp
C++
lang/C++/averages-arithmetic-mean-3.cpp
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
5
2021-01-29T20:08:05.000Z
2022-03-22T06:16:05.000Z
lang/C++/averages-arithmetic-mean-3.cpp
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/C++/averages-arithmetic-mean-3.cpp
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2021-04-13T04:19:31.000Z
2021-04-13T04:19:31.000Z
#include <iterator> #include <algorithm> template <typename Iterator> double mean(Iterator begin, Iterator end) { if (begin == end) return 0; return std::accumulate(begin, end, 0.0) / std::distance(begin, end); }
20.909091
72
0.669565
ethansaxenian
4a07244eeeb593544fc963b05a5583d3de6dbb77
1,758
cpp
C++
tests/Geometry/XSRay2Test.cpp
Sibras/ShiftLib
83e1ab9605aca6535af836ad1e68bf3c3049d976
[ "Apache-2.0" ]
null
null
null
tests/Geometry/XSRay2Test.cpp
Sibras/ShiftLib
83e1ab9605aca6535af836ad1e68bf3c3049d976
[ "Apache-2.0" ]
null
null
null
tests/Geometry/XSRay2Test.cpp
Sibras/ShiftLib
83e1ab9605aca6535af836ad1e68bf3c3049d976
[ "Apache-2.0" ]
null
null
null
/** * Copyright Matthew Oliver * * 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 i...
35.16
116
0.710466
Sibras
4a0e8d4bb60b0ec8f6211aaa2ff7184f24e140bd
561
cpp
C++
src/tema cu WHILE/Aplicatii 4/ex4.cpp
andrew-miroiu/Cpp-projects
d0917a7f78aef929c25dc9b019e910951c2050ac
[ "MIT" ]
2
2021-11-27T18:29:32.000Z
2021-11-28T14:35:47.000Z
src/tema cu WHILE/Aplicatii 4/ex4.cpp
andrew-miroiu/Cpp-projects
d0917a7f78aef929c25dc9b019e910951c2050ac
[ "MIT" ]
null
null
null
src/tema cu WHILE/Aplicatii 4/ex4.cpp
andrew-miroiu/Cpp-projects
d0917a7f78aef929c25dc9b019e910951c2050ac
[ "MIT" ]
null
null
null
#include <iostream> using namespace std; int main() { /* 4. Se citeşte de la tastatură un număr natural x de cel mult 9 cifre. Se cere să se calculeze produsul cifrelor impare. Exemplu: dacă x =6543 atunci produsul cifrelor impare este 3*5=15*/ int x,p=1; cout<<"Scrie un nr. de macimum 9 cifre= "; ...
17
100
0.516934
andrew-miroiu
4a0ede123971155c879137ed989de53d24a7e985
1,803
cpp
C++
Lance2D/Tools/GraphView.cpp
lance-tech/Lance-2D
45d733df5a080cb1102f2014cd2dea9d9b928b0d
[ "MIT" ]
1
2022-02-27T15:35:57.000Z
2022-02-27T15:35:57.000Z
Lance2D/Tools/GraphView.cpp
lance-tech/Lance-2D
45d733df5a080cb1102f2014cd2dea9d9b928b0d
[ "MIT" ]
null
null
null
Lance2D/Tools/GraphView.cpp
lance-tech/Lance-2D
45d733df5a080cb1102f2014cd2dea9d9b928b0d
[ "MIT" ]
null
null
null
#include "GraphView.h" #include "NodeModel.h" GraphView::GraphView(QWidget *parent) : QTreeView(parent), engineEventModel(nullptr) { } GraphView::~GraphView() { } void GraphView::Initialize(EngineEventModel &model) { SetEngineModel(model); connect(this, SIGNAL(clicked(QModelIndex)), this, SLOT(SelectObject(QMod...
22.822785
119
0.755408
lance-tech
4a115e8ec19668860f858a4965ca76d1679f0649
615
hpp
C++
model/player.hpp
travnick/SlipperTanks
33334cf0994402e7ba0e8de54f75a86835e0bae0
[ "Apache-2.0" ]
1
2015-01-11T11:03:18.000Z
2015-01-11T11:03:18.000Z
model/player.hpp
travnick/SlipperTanks
33334cf0994402e7ba0e8de54f75a86835e0bae0
[ "Apache-2.0" ]
null
null
null
model/player.hpp
travnick/SlipperTanks
33334cf0994402e7ba0e8de54f75a86835e0bae0
[ "Apache-2.0" ]
null
null
null
#pragma once #include <string> class QVector3D; struct InputEvents; class Node; class Player { public: Player(); ~Player(); const std::string &getRequiredModelName() const; void setAttachedNode(Node *attachedModel); const Node &getAttachedNode() const; Node &getAttachedNode(); void mo...
18.636364
82
0.715447
travnick
4a1179ee7ae693a959bcea83b3a3d08e4fb0fc89
251
cpp
C++
lzham_assert.cpp
pg9182/tf2lzham
c11a1f50ebc85f9290ede436a1f8e2f34b646be0
[ "MIT" ]
null
null
null
lzham_assert.cpp
pg9182/tf2lzham
c11a1f50ebc85f9290ede436a1f8e2f34b646be0
[ "MIT" ]
null
null
null
lzham_assert.cpp
pg9182/tf2lzham
c11a1f50ebc85f9290ede436a1f8e2f34b646be0
[ "MIT" ]
null
null
null
// File: lzham_assert.cpp // See Copyright Notice and license at the end of lzham.h #include "lzham_core.h" void lzham_assert(const char* pExp, const char* pFile, unsigned line) { printf("%s(%u): Assertion failed: \"%s\"\n", pFile, line, pExp); }
27.888889
69
0.693227
pg9182
4a11b18559df526fb7ed452752e4b5ef3820c186
8,879
cpp
C++
src/client/input/InputPicker.cpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
6
2018-05-11T23:16:02.000Z
2019-06-13T01:35:07.000Z
src/client/input/InputPicker.cpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
33
2018-05-11T14:12:22.000Z
2022-03-12T00:55:25.000Z
src/client/input/InputPicker.cpp
arthurmco/familyline
849eee40cff266af9a3f848395ed139b7ce66197
[ "MIT" ]
1
2018-12-06T23:39:55.000Z
2018-12-06T23:39:55.000Z
#include <algorithm> #include <client/input/InputPicker.hpp> #include <common/logic/logic_service.hpp> #include <glm/gtc/matrix_transform.hpp> using namespace familyline::input; using namespace familyline::graphics; using namespace familyline::logic; InputPicker::InputPicker( Terrain* terrain, Window* win, SceneM...
31.485816
99
0.580696
arthurmco
4a1656a12f6b3fd4c0f8350d60bdddfc1e01306b
26,822
cpp
C++
packages/multiCam/src/obstacleDetection.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
2
2021-01-15T13:27:19.000Z
2021-08-04T08:40:52.000Z
packages/multiCam/src/obstacleDetection.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
null
null
null
packages/multiCam/src/obstacleDetection.cpp
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
5
2018-05-01T10:39:31.000Z
2022-03-25T03:02:35.000Z
// Copyright 2018-2020 Andre Pool (Falcons) // SPDX-License-Identifier: Apache-2.0 // Jan Feitsma, december 2019 #include "obstacleDetection.hpp" #include <math.h> #include "tracing.hpp" using namespace std; using namespace cv; obstacleDetection::obstacleDetection(cameraReceive *camRecv, configurator *conf, Dewarp...
44.927973
190
0.594736
Falcons-Robocup
4a17238b90fd000f50b87eb59d7902c34bb96e19
965
cpp
C++
source/data_model/python/src/identity/object_id.cpp
OliverSchmitz/lue
da097e8c1de30724bfe7667cc04344b6535b40cd
[ "MIT" ]
2
2021-02-26T22:45:56.000Z
2021-05-02T10:28:48.000Z
source/data_model/python/src/identity/object_id.cpp
OliverSchmitz/lue
da097e8c1de30724bfe7667cc04344b6535b40cd
[ "MIT" ]
262
2016-08-11T10:12:02.000Z
2020-10-13T18:09:16.000Z
source/data_model/python/src/identity/object_id.cpp
computationalgeography/lue
71993169bae67a9863d7bd7646d207405dc6f767
[ "MIT" ]
1
2020-03-11T09:49:41.000Z
2020-03-11T09:49:41.000Z
#include "../python_extension.hpp" #include "lue/info/identity/object_id.hpp" #include <pybind11/pybind11.h> namespace py = pybind11; using namespace pybind11::literals; namespace lue { namespace data_model { void init_object_id( py::module& module) { py::class_<ObjectID, same_shape::Value>( modul...
24.125
74
0.700518
OliverSchmitz
4a1b0ba12f4518aaea6263a719ea6417392d33ea
1,902
cpp
C++
code/qttoolkit/importer/code/clip.cpp
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
67
2015-03-30T19:56:16.000Z
2022-03-11T13:52:17.000Z
code/qttoolkit/importer/code/clip.cpp
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
5
2015-04-15T17:17:33.000Z
2016-02-11T00:40:17.000Z
code/qttoolkit/importer/code/clip.cpp
gscept/nebula-trifid
e7c0a0acb05eedad9ed37a72c1bdf2d658511b42
[ "BSD-2-Clause" ]
34
2015-03-30T15:08:00.000Z
2021-09-23T05:55:10.000Z
#include "clip.h" namespace Importer { //------------------------------------------------------------------------------ /** */ Clip::Clip() { // empty } //------------------------------------------------------------------------------ /** */ Clip::~Clip() { // empty } //---------------------------------------------...
17.135135
80
0.302839
gscept
4a1e2ead9d37ec79e2588268a92d9b2197f121fc
9,289
cpp
C++
Source/Plugin/MySql/Src/DatabaseStatementMySql.cpp
DragonJoker/DatabaseConnector
502b136588b46119c2a0f4ed6b6623c0cc6715c2
[ "MIT" ]
2
2018-03-01T01:14:38.000Z
2019-10-27T13:29:18.000Z
Source/Plugin/MySql/Src/DatabaseStatementMySql.cpp
DragonJoker/DatabaseConnector
502b136588b46119c2a0f4ed6b6623c0cc6715c2
[ "MIT" ]
null
null
null
Source/Plugin/MySql/Src/DatabaseStatementMySql.cpp
DragonJoker/DatabaseConnector
502b136588b46119c2a0f4ed6b6623c0cc6715c2
[ "MIT" ]
null
null
null
/************************************************************************//** * @file DatabaseStatementMySql.cpp * @author Sylvain Doremus * @version 1.0 * @date 3/20/2014 2:47:39 PM * * * @brief CDatabaseStatementMySql class definition. * * @details Describes a statement for MYSQL database. * *************************...
28.937695
203
0.704597
DragonJoker
4a221ff7b3f586bea67e1e0012279042d81bc237
2,053
cpp
C++
dev/Code/Framework/AzToolsFramework/Tests/PropertyIntSliderCtrlTests.cpp
brianherrera/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
1,738
2017-09-21T10:59:12.000Z
2022-03-31T21:05:46.000Z
dev/Code/Framework/AzToolsFramework/Tests/PropertyIntSliderCtrlTests.cpp
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
427
2017-09-29T22:54:36.000Z
2022-02-15T19:26:50.000Z
dev/Code/Framework/AzToolsFramework/Tests/PropertyIntSliderCtrlTests.cpp
ArchitectureStudios/lumberyard
f85344403c1c2e77ec8c75deb2c116e97b713217
[ "AML" ]
671
2017-09-21T08:04:01.000Z
2022-03-29T14:30:07.000Z
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
37.327273
129
0.789089
brianherrera
4a233bd65d10e1ffce66653b3d1f088b61feafc9
1,864
cpp
C++
Room.cpp
guyou/T-watch-2020
e68fb1c3171157bb943c1ebf8351f1d66411980a
[ "BSD-3-Clause" ]
74
2020-09-29T17:27:03.000Z
2022-03-31T08:04:13.000Z
Room.cpp
guyou/T-watch-2020
e68fb1c3171157bb943c1ebf8351f1d66411980a
[ "BSD-3-Clause" ]
36
2020-09-30T19:33:16.000Z
2021-04-18T03:31:32.000Z
Room.cpp
guyou/T-watch-2020
e68fb1c3171157bb943c1ebf8351f1d66411980a
[ "BSD-3-Clause" ]
23
2020-10-09T07:41:09.000Z
2021-12-06T10:13:35.000Z
/* # Maze Generator ### Date: 28 March 2018 ### Author: Pisica Alin */ #include "config.h" #include "DudleyWatch.h" #include "Room.h" using namespace std; Room::Room(int i, int j, int rw) { this->x = i; this->y = j; this->roomWidth = rw; walls[0] = true; walls[1] = true; walls[2] = true; walls[3] = tru...
18.828283
65
0.574571
guyou
4a23773eea7ab8ed96529a1582dd03f3538b76a7
11,484
hpp
C++
iRODS/server/core/include/irods_resource_plugin.hpp
iychoi/cyverse-irods
0070b8677a82e763f1d940ae6537b1c8839a628a
[ "BSD-3-Clause" ]
null
null
null
iRODS/server/core/include/irods_resource_plugin.hpp
iychoi/cyverse-irods
0070b8677a82e763f1d940ae6537b1c8839a628a
[ "BSD-3-Clause" ]
7
2019-12-02T17:55:49.000Z
2019-12-02T17:55:59.000Z
iRODS/server/core/include/irods_resource_plugin.hpp
benlazarine/cyverse-irods
2bf9cfae4c3a1062ffe2af92b1f086ddc5fce025
[ "BSD-3-Clause" ]
1
2015-02-19T18:30:33.000Z
2015-02-19T18:30:33.000Z
#ifndef ___IRODS_RESC_PLUGIN_HPP__ #define ___IRODS_RESC_PLUGIN_HPP__ // =-=-=-=-=-=-=- #include "irods_resource_constants.hpp" #include "irods_operation_wrapper.hpp" #include "irods_resource_plugin_context.hpp" #include <iostream> namespace irods { /// =-=-=-=-=-=-=- /// @brief typedef for resource maintenance oper...
38.797297
126
0.485023
iychoi
4a245dc052d196b548942a4e87f9c62f67ef5f5b
2,566
hpp
C++
app/src/main/cpp/core/CCSmartPtr.hpp
imengyu/VR720
256a5da596ed19736d3c0a44c401f2ea21c2c30b
[ "MIT" ]
4
2021-06-29T12:27:17.000Z
2022-03-29T00:59:47.000Z
app/src/main/cpp/core/CCSmartPtr.hpp
imengyu/VR720
256a5da596ed19736d3c0a44c401f2ea21c2c30b
[ "MIT" ]
null
null
null
app/src/main/cpp/core/CCSmartPtr.hpp
imengyu/VR720
256a5da596ed19736d3c0a44c401f2ea21c2c30b
[ "MIT" ]
2
2021-06-29T12:36:44.000Z
2022-03-29T00:59:49.000Z
// // Created by roger on 2020/10/30. // #ifndef VR720_CCSMARTPTR_HPP #define VR720_CCSMARTPTR_HPP #include <unordered_map> //模板类作为友元时要先有声明 template <typename T> class CCSmartPtr; //辅助类 class CCUPtr { public: //构造函数的参数为基础对象的指针 CCUPtr(void* ptr); //析构函数 ~CCUPtr(); //引用计数 int count; //...
19.891473
61
0.581839
imengyu
4a2542f273d1a78e7a1b2055cf15342bb19ca5ec
6,574
cpp
C++
Unix/tests/micxx/test_array.cpp
Beguiled/omi
1c824681ee86f32314f430db972e5d3938f10fd4
[ "MIT" ]
165
2016-08-18T22:06:39.000Z
2019-05-05T11:09:37.000Z
Unix/tests/micxx/test_array.cpp
snchennapragada/omi
4fa565207d3445d1f44bfc7b890f9ea5ea7b41d0
[ "MIT" ]
409
2016-08-18T20:52:56.000Z
2019-05-06T10:03:11.000Z
Unix/tests/micxx/test_array.cpp
snchennapragada/omi
4fa565207d3445d1f44bfc7b890f9ea5ea7b41d0
[ "MIT" ]
72
2016-08-23T02:30:08.000Z
2019-04-30T22:57:03.000Z
/* **============================================================================== ** ** Copyright (c) Microsoft Corporation. All rights reserved. See file LICENSE ** for license information. ** **============================================================================== */ #include <ut/ut.h> #include <micxx/arra...
19.278592
80
0.635686
Beguiled
4a266040bbee1fab1478724187f55db0d23f53f4
4,382
cpp
C++
cpp/cpp_typecheck_enum_type.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
cpp/cpp_typecheck_enum_type.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
cpp/cpp_typecheck_enum_type.cpp
holao09/esbmc
659c006a45e9aaf8539b12484e2ec2b093cc6f02
[ "BSD-3-Clause" ]
null
null
null
/*******************************************************************\ Module: C++ Language Type Checking Author: Daniel Kroening, kroening@kroening.com \*******************************************************************/ #include <i2string.h> #include <arith_tools.h> #include <ansi-c/c_qualifiers.h> #include "cp...
23.945355
74
0.620949
holao09
4a27d81860c96ee4d46eaac5afc22be73258a520
3,692
cpp
C++
src/gameobject/script.cpp
LePtitDev/gamengin
f0b2c966a96df5b56eb50fd0fb79eb14a68b859a
[ "BSD-3-Clause" ]
null
null
null
src/gameobject/script.cpp
LePtitDev/gamengin
f0b2c966a96df5b56eb50fd0fb79eb14a68b859a
[ "BSD-3-Clause" ]
null
null
null
src/gameobject/script.cpp
LePtitDev/gamengin
f0b2c966a96df5b56eb50fd0fb79eb14a68b859a
[ "BSD-3-Clause" ]
null
null
null
#include "script.h" #include "gameobject.h" #include "../assets/assets.h" ScriptComponent::ScriptComponent(GameObject *parent) : Component(parent), started(false) { script.loadLibScript(); } const char * ScriptComponent::getScriptName() const { return scriptName.c_str(); } bool ScriptComponent::assig...
32.964286
90
0.637866
LePtitDev
4a289bd2736decc8b8c7543b4098a3ffbf5db92e
1,389
hpp
C++
header/FemaleCharacter.hpp
digladieux/TP5_SMA
450153930410982c79dc79c5694885268fd4a04d
[ "Apache-2.0" ]
null
null
null
header/FemaleCharacter.hpp
digladieux/TP5_SMA
450153930410982c79dc79c5694885268fd4a04d
[ "Apache-2.0" ]
null
null
null
header/FemaleCharacter.hpp
digladieux/TP5_SMA
450153930410982c79dc79c5694885268fd4a04d
[ "Apache-2.0" ]
null
null
null
/** * \file FemaleCharacter.hpp * \author Gladieux Cunha Dimitri & Gonzales Florian * \brief Fichier d'en-tete du fichier source FemaleCharacter.cpp * \date 2018-12-03 */ #ifndef FEMALE_CHARACTER_HPP #define FEMALE_CHARACTER_HPP #include "Character.hpp" #include "Date.hpp" /** * \class FemaleChar...
33.071429
151
0.726422
digladieux
4a2a8af9ca1cafbeee0869be2642203fd4e19cea
11,404
cpp
C++
src/js/jit/JitOptions.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
149
2018-12-23T09:08:00.000Z
2022-02-02T09:18:38.000Z
src/js/jit/JitOptions.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
null
null
null
src/js/jit/JitOptions.cpp
fengjixuchui/blazefox
d5c732ac7305a79fe20704c2d134c130f14eca83
[ "MIT" ]
56
2018-12-23T18:11:40.000Z
2021-11-30T13:18:17.000Z
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=8 sts=4 et sw=4 tw=99: * 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/. */ ...
34.981595
98
0.720537
fengjixuchui
4a2aabe87801f4187ff368b6ef7a296ed3619fb9
2,424
cpp
C++
multimedia/danim/src/daxctl/controls/ihbase/dmpguid/dmpguids.cpp
npocmaka/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
17
2020-11-13T13:42:52.000Z
2021-09-16T09:13:13.000Z
multimedia/danim/src/daxctl/controls/ihbase/dmpguid/dmpguids.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
2
2020-10-19T08:02:06.000Z
2020-10-19T08:23:18.000Z
multimedia/danim/src/daxctl/controls/ihbase/dmpguid/dmpguids.cpp
sancho1952007/Windows-Server-2003
5c6fe3db626b63a384230a1aa6b92ac416b0765f
[ "Unlicense" ]
14
2020-11-14T09:43:20.000Z
2021-08-28T08:59:57.000Z
// Lists the Data1 member of a variety of GUIDS #include <windows.h> #include <initguid.h> // once per build #include "..\precomp.h" #include "..\..\mmctl\inc\ochelp.h" #include "objsafe.h" #include "docobj.h" #include <stdio.h> #define DUMPGUID(I,IID) \ WriteItem(pfHeader, pfCase, I, IID);\ rgdwIID[i] = ...
27.545455
88
0.683168
npocmaka
4a2bb6a43126d867175c93d1ee451c82a38743a7
17,490
cpp
C++
src/pola/scene/mesh/MD2MeshLoader.cpp
lij0511/pandora
5988618f29d2f1ba418ef54a02e227903c1e7108
[ "Apache-2.0" ]
null
null
null
src/pola/scene/mesh/MD2MeshLoader.cpp
lij0511/pandora
5988618f29d2f1ba418ef54a02e227903c1e7108
[ "Apache-2.0" ]
null
null
null
src/pola/scene/mesh/MD2MeshLoader.cpp
lij0511/pandora
5988618f29d2f1ba418ef54a02e227903c1e7108
[ "Apache-2.0" ]
null
null
null
/* * MD2MeshLoader.cpp * * Created on: 2016年5月21日 * Author: lijing */ #include <stdint.h> //#define USE_MD2_MESH #include "pola/log/Log.h" #include "pola/scene/mesh/MD2MeshLoader.h" #include "pola/scene/mesh/Mesh.h" #ifdef USE_MD2_MESH #include "pola/scene/mesh/MD2AnimatedMesh.h" #endif #include <string....
34.702381
150
0.671755
lij0511
4a2f142e7fedc3ecb35677a84f21e77c4584a8bf
6,418
cpp
C++
main.cpp
SebMenozzi/NN
d9a5bd1a13cc4112711ad0483a6b9b94de80de46
[ "MIT" ]
null
null
null
main.cpp
SebMenozzi/NN
d9a5bd1a13cc4112711ad0483a6b9b94de80de46
[ "MIT" ]
null
null
null
main.cpp
SebMenozzi/NN
d9a5bd1a13cc4112711ad0483a6b9b94de80de46
[ "MIT" ]
null
null
null
#include <iostream> #include <math.h> #include "matrix.h" #include "NN.h" // nombre de neurones en hidden layer #define nb_neurons_hidden_layer 3 // nombre d'itération #define epoch 2000 // capacité d'apprentissage #define learning_rate 0.7 // GLOBAL // donnée entrante d'input pour XOR const int training_data[4][2] =...
33.778947
184
0.636179
SebMenozzi
4a303890d6bfe4bcb7ea0879e59e2fff4af81c00
673
cpp
C++
Array6/Array6/Source.cpp
DipeshKazi/C-Repository
b58f26a1bdb2a159b3a1d025fea2f0d4b2d70823
[ "MIT" ]
null
null
null
Array6/Array6/Source.cpp
DipeshKazi/C-Repository
b58f26a1bdb2a159b3a1d025fea2f0d4b2d70823
[ "MIT" ]
null
null
null
Array6/Array6/Source.cpp
DipeshKazi/C-Repository
b58f26a1bdb2a159b3a1d025fea2f0d4b2d70823
[ "MIT" ]
null
null
null
#include <iostream> int addition[] = { 23, 6, 47, 35, 2, 14 }; int n, result = 0; int high = 0; int odd = 0; int even = 0; int main() { //Avarage int average = 0.0; for (n = 0; n < 6; ++n) { result = addition[n] + result; average = result / 6; } std::cout << "Average of Number "<< average << std::end...
12.942308
58
0.511144
DipeshKazi
4a32a6945aab8ddf08bdf5f18d1124c3015f6d01
544
cc
C++
CommonTools/CandAlgos/plugins/GenJetParticleRefSelector.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
CommonTools/CandAlgos/plugins/GenJetParticleRefSelector.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
CommonTools/CandAlgos/plugins/GenJetParticleRefSelector.cc
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
#include "CommonTools/CandAlgos/interface/GenJetParticleSelector.h" #include "CommonTools/UtilAlgos/interface/SingleObjectSelector.h" #include "DataFormats/HepMCCandidate/interface/GenParticle.h" #include "FWCore/Framework/interface/MakerMacros.h" namespace reco { namespace modules { typedef SingleObjectSelector...
30.222222
67
0.746324
nistefan
4a333d1023d1ad880c887a985d7a962128604a34
2,102
hpp
C++
DFNs/Executors/StereoReconstruction/StereoReconstructionExecutor.hpp
H2020-InFuse/cdff
e55fd48f9a909d0c274c3dfa4fe2704bc5071542
[ "BSD-2-Clause" ]
7
2019-02-26T15:09:50.000Z
2021-09-30T07:39:01.000Z
DFNs/Executors/StereoReconstruction/StereoReconstructionExecutor.hpp
H2020-InFuse/cdff
e55fd48f9a909d0c274c3dfa4fe2704bc5071542
[ "BSD-2-Clause" ]
null
null
null
DFNs/Executors/StereoReconstruction/StereoReconstructionExecutor.hpp
H2020-InFuse/cdff
e55fd48f9a909d0c274c3dfa4fe2704bc5071542
[ "BSD-2-Clause" ]
1
2020-12-06T12:09:05.000Z
2020-12-06T12:09:05.000Z
/** * @addtogroup DFNs * @{ */ #ifndef STEREORECONSTRUCTION_EXECUTOR_HPP #define STEREORECONSTRUCTION_EXECUTOR_HPP #include "DFNCommonInterface.hpp" #include <StereoReconstruction/StereoReconstructionInterface.hpp> #include <Types/CPP/PointCloud.hpp> #include <Types/CPP/Frame.hpp> namespace CDFF { namespace DFN {...
42.04
172
0.797336
H2020-InFuse
4a3420319bbb2383e61ff1c277b92243071423dc
9,890
cpp
C++
src/ukf.cpp
grygoryant/CarND-Unscented-Kalman-Filter-Project
c0519637544de1d31ff02712be632e622d66ef34
[ "MIT" ]
null
null
null
src/ukf.cpp
grygoryant/CarND-Unscented-Kalman-Filter-Project
c0519637544de1d31ff02712be632e622d66ef34
[ "MIT" ]
null
null
null
src/ukf.cpp
grygoryant/CarND-Unscented-Kalman-Filter-Project
c0519637544de1d31ff02712be632e622d66ef34
[ "MIT" ]
null
null
null
#include "ukf.h" #include "Eigen/Dense" #include <iostream> /** * Initializes Unscented Kalman filter * This is scaffolding, do not modify */ UKF::UKF() { // if this is false, laser measurements will be ignored (except during init) use_laser_ = true; // if this is false, radar measurements will be ignored (e...
28.257143
100
0.649646
grygoryant
4a3422dd5e1a7764a8d02b0d968a73607a3a7a25
417
cpp
C++
engine/mysqlparser/listener/CheckSqlStatementListener.cpp
zhukovaskychina/XSQL
f91db06bf86f7f6ad321722c3aea11f83d34dba1
[ "MIT" ]
1
2020-10-23T09:38:22.000Z
2020-10-23T09:38:22.000Z
engine/mysqlparser/listener/CheckSqlStatementListener.cpp
zhukovaskychina/XSQL
f91db06bf86f7f6ad321722c3aea11f83d34dba1
[ "MIT" ]
null
null
null
engine/mysqlparser/listener/CheckSqlStatementListener.cpp
zhukovaskychina/XSQL
f91db06bf86f7f6ad321722c3aea11f83d34dba1
[ "MIT" ]
null
null
null
// // Created by zhukovasky on 2020/10/13. // #include "CheckSqlStatementListener.h" void CheckSqlStatementListener::exitSql_statement(parser::MySQLParser::Sql_statementContext *context) { MySQLParserBaseListener::exitSql_statement(context); } void CheckSqlStatementListener::enterSql_statement(parser::MySQLPars...
27.8
104
0.810552
zhukovaskychina
6653f1069ceef9716aa05f73235434f7710e31da
19,579
hpp
C++
libraries/chain/include/evt/chain/contracts/evt_contract_utils.hpp
everitoken/evt
3fbc2d0fd43421d81e1c88fa91d41ea97477e9ea
[ "Apache-2.0" ]
1,411
2018-04-23T03:57:30.000Z
2022-02-13T10:34:22.000Z
libraries/chain/include/evt/chain/contracts/evt_contract_utils.hpp
baby636/evt
3fbc2d0fd43421d81e1c88fa91d41ea97477e9ea
[ "Apache-2.0" ]
27
2018-06-11T10:34:42.000Z
2019-07-27T08:50:02.000Z
libraries/chain/include/evt/chain/contracts/evt_contract_utils.hpp
baby636/evt
3fbc2d0fd43421d81e1c88fa91d41ea97477e9ea
[ "Apache-2.0" ]
364
2018-06-09T12:11:53.000Z
2020-12-15T03:26:48.000Z
/** * @file * @copyright defined in evt/LICENSE.txt */ #pragma once namespace evt { namespace chain { namespace contracts { /** * Implements addmeta, paycharge, paybonus, prodvote, updsched, addscript and updscript actions */ namespace internal { bool check_involved_node(const group_def& group, const group::...
38.847222
155
0.597579
everitoken
66563bb8e35abe71e4e45296d5d345ddc6abf425
2,255
cpp
C++
implementations/ugene/src/plugins/pcr/src/PrimerLibraryTableController.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
implementations/ugene/src/plugins/pcr/src/PrimerLibraryTableController.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
implementations/ugene/src/plugins/pcr/src/PrimerLibraryTableController.cpp
r-barnes/sw_comparison
1ac2c9cc10a32badd6b8fb1e96516c97f7800176
[ "BSD-Source-Code" ]
null
null
null
/** * UGENE - Integrated Bioinformatics Tools. * Copyright (C) 2008-2020 UniPro <ugene@unipro.ru> * http://ugene.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * ...
34.166667
107
0.740133
r-barnes
6657f123be8a1b44c7f57c2e4f7376537a99460b
894
hpp
C++
stapl_release/stapl/views/proxy/accessor_traits.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/stapl/views/proxy/accessor_traits.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
stapl_release/stapl/views/proxy/accessor_traits.hpp
parasol-ppl/PPL_utils
92728bb89692fda1705a0dee436592d97922a6cb
[ "BSD-3-Clause" ]
null
null
null
/* // Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a // component of the Texas A&M University System. // All rights reserved. // The information and source code contained herein is the exclusive // property of TEES and may not be disclosed, examined or reproduced // in whole or in part withou...
28.83871
74
0.658837
parasol-ppl
6658fc7765e5b55eb33e464cfc1a36f7ca747ecb
6,006
cc
C++
tests/core/test_reencode_string_table.cc
JCSDA/odc-1
8a120ebc744778248dda0267094cbf9aaa9d7246
[ "Apache-2.0" ]
2
2020-03-17T15:44:50.000Z
2020-11-18T09:28:18.000Z
tests/core/test_reencode_string_table.cc
JCSDA/odc-1
8a120ebc744778248dda0267094cbf9aaa9d7246
[ "Apache-2.0" ]
4
2020-03-25T20:50:46.000Z
2021-10-20T00:03:19.000Z
tests/core/test_reencode_string_table.cc
JCSDA/odc-1
8a120ebc744778248dda0267094cbf9aaa9d7246
[ "Apache-2.0" ]
6
2020-03-30T16:43:22.000Z
2021-11-14T09:22:07.000Z
/* * (C) Copyright 1996-2012 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 in...
35.964072
113
0.542624
JCSDA
665a45b48936de7bd1759e91dd45c4da3c5c457e
7,061
cpp
C++
src/widgets/menu_style.cpp
blackberry/Wesnoth
8b307689158db568ecc6cc3b537e8d382ccea449
[ "Unlicense" ]
12
2015-03-04T15:07:00.000Z
2019-09-13T16:31:06.000Z
src/widgets/menu_style.cpp
blackberry/Wesnoth
8b307689158db568ecc6cc3b537e8d382ccea449
[ "Unlicense" ]
null
null
null
src/widgets/menu_style.cpp
blackberry/Wesnoth
8b307689158db568ecc6cc3b537e8d382ccea449
[ "Unlicense" ]
5
2017-04-22T08:16:48.000Z
2020-07-12T03:35:16.000Z
/* $Id: menu_style.cpp 48480 2011-02-12 16:20:24Z ivanovic $ */ /* wesnoth menu styles Copyright (C) 2006 - 2011 by Patrick Parker <patrick_x99@hotmail.com> wesnoth menu Copyright (C) 2003-5 by David White <dave@whitevine.net> Part of the Battle for Wesnoth Project http://www.wesnoth.org/ This progra...
28.938525
114
0.648067
blackberry
665ad027326b931c3a3428d790cf347fcb9e40d6
12,051
cc
C++
mysql-server/sql/dd/impl/types/routine_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/sql/dd/impl/types/routine_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
mysql-server/sql/dd/impl/types/routine_impl.cc
silenc3502/MYSQL-Arch-Doc-Summary
fcc6bb65f72a385b9f56debc9b2c00cee5914bae
[ "MIT" ]
null
null
null
/* Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
37.659375
80
0.623019
silenc3502
665aeed8c479167df9775fc3b7dffe99f6daf42b
3,986
cc
C++
src/devices/pwm/bin/pwmctl/pwmctl.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
5
2022-01-10T20:22:17.000Z
2022-01-21T20:14:17.000Z
src/devices/pwm/bin/pwmctl/pwmctl.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
1
2022-03-01T01:12:04.000Z
2022-03-01T01:17:26.000Z
src/devices/pwm/bin/pwmctl/pwmctl.cc
allansrc/fuchsia
a2c235b33fc4305044d496354a08775f30cdcf37
[ "BSD-2-Clause" ]
null
null
null
// Copyright 2021 The Fuchsia Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "pwmctl.h" #include <stdlib.h> #include <string> #include <soc/aml-common/aml-pwm-regs.h> namespace pwmctl { constexpr long kBadParse = -1; l...
29.094891
98
0.673106
allansrc
665bc659bfc05a54b24049a7e0b3053034cc1c57
16,846
cxx
C++
main/sc/source/ui/view/dbfunc.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/sc/source/ui/view/dbfunc.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/sc/source/ui/view/dbfunc.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
31.905303
124
0.612846
Grosskopf
6664d56200c6f7ed14b7b4598c2b608bcad854dd
2,566
cpp
C++
graph-source-code/194-C/4785501.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/194-C/4785501.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
graph-source-code/194-C/4785501.cpp
AmrARaouf/algorithm-detection
59f3028d2298804870b32729415d71eec6116557
[ "MIT" ]
null
null
null
//Language: MS C++ #include <stdio.h> #include <vector> #include <list> #include <iostream> #include <algorithm> #include <queue> using namespace std; int T = 0; typedef vector < vector < int > > table; int x[4] = { 0 , 0 , -1 , 1 }; int y[4] = { -1 , 1 , 0 , 0 }; table time ( 52 , vector < int > ( ...
27.891304
116
0.336321
AmrARaouf
6666e8cdec563ad86fc13f874239fbb7226dcbe7
939
cpp
C++
projects/cpp_project_andriidem_plant/src/Employee.cpp
andriidem308/cpp_practice
6f46b3fb9786ec8fb8bc05a29d8ff2caf0ac53c3
[ "MIT" ]
1
2020-09-23T20:05:56.000Z
2020-09-23T20:05:56.000Z
projects/cpp_project_andriidem_plant/src/Employee.cpp
andriidem308/cpp_practice
6f46b3fb9786ec8fb8bc05a29d8ff2caf0ac53c3
[ "MIT" ]
null
null
null
projects/cpp_project_andriidem_plant/src/Employee.cpp
andriidem308/cpp_practice
6f46b3fb9786ec8fb8bc05a29d8ff2caf0ac53c3
[ "MIT" ]
null
null
null
/*** * * Project name: Plant * File: Employee.cpp * Project was created by Andrii Demchenko on 21.11.19 * Year: 2-nd * Specialization: Computer mathematics * Taras Shevchenko National University of Kyiv * e-mail: andriidem308@gmail.com * phone number: +380660209961 * ***/ #include "../headers/Employee.h" E...
28.454545
110
0.749734
andriidem308
66699804c18a6dec03b5b4b5bc371cbac184cac0
911
cpp
C++
Acmicpc/C++/BOJ3908.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-07-08T23:16:19.000Z
2020-07-08T23:16:19.000Z
Acmicpc/C++/BOJ3908.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
1
2020-05-16T03:12:24.000Z
2020-05-16T03:14:42.000Z
Acmicpc/C++/BOJ3908.cpp
sungmen/Acmicpc_Solve
0298a6aec84993a4d8767bd2c00490b7201e06a4
[ "MIT" ]
2
2020-05-16T03:25:16.000Z
2021-02-10T16:51:25.000Z
#include <bits/stdc++.h> using namespace std; int prime[1121]; int dp[15][1121]; int main() { // freopen("input.txt", "r", stdin); ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); memset(prime, 1, sizeof(prime)); map<int, int> m; for (int i = 2; i < 1121; i++) { if (pri...
26.028571
74
0.385291
sungmen
666c020696e0bb652e4219c4cb68a855d62fce57
9,723
cpp
C++
src/gpu/blas/blas1/ExSUM.Launcher.cpp
nikolovjovan/exblas
7541d384242a84a8b8314648d939b846ca632321
[ "Apache-2.0" ]
null
null
null
src/gpu/blas/blas1/ExSUM.Launcher.cpp
nikolovjovan/exblas
7541d384242a84a8b8314648d939b846ca632321
[ "Apache-2.0" ]
null
null
null
src/gpu/blas/blas1/ExSUM.Launcher.cpp
nikolovjovan/exblas
7541d384242a84a8b8314648d939b846ca632321
[ "Apache-2.0" ]
null
null
null
/* * Copyright (c) 2016 Inria and University Pierre and Marie Curie * All rights reserved. */ #include "common.hpp" #include "ExSUM.Launcher.hpp" //////////////////////////////////////////////////////////////////////////////// // OpenCL launcher for bitonic sort kernel //////////////////////////////////////////...
40.5125
199
0.616991
nikolovjovan
666c19f7b488c1482dab97d40106a1c4be5d3a15
5,846
cpp
C++
of2030/src/effect_manager.cpp
markkorput/of2030
b8e03ef341fc6e55e95fc9a770e48f84560a95a8
[ "MIT" ]
null
null
null
of2030/src/effect_manager.cpp
markkorput/of2030
b8e03ef341fc6e55e95fc9a770e48f84560a95a8
[ "MIT" ]
18
2016-05-09T14:05:18.000Z
2016-06-11T10:59:13.000Z
of2030/src/effect_manager.cpp
markkorput/of2030
b8e03ef341fc6e55e95fc9a770e48f84560a95a8
[ "MIT" ]
null
null
null
// // effect_manager.cpp // emptyExample // // Created by Mark van de Korput on 16-05-15. // // #include "effect_manager.hpp" #include <regex> using namespace of2030; EffectManager::~EffectManager(){ for(int i=effects.size()-1; i>=0; i--){ deleteEffect(effects[i]); } effects.clear(); } Effec...
28.241546
98
0.622306
markkorput
666eeb467cce11b8f562f7f89184a0bc279cd124
2,675
hpp
C++
include/svgpp/adapter/line.hpp
RichardCory/svgpp
801e0142c61c88cf2898da157fb96dc04af1b8b0
[ "BSL-1.0" ]
428
2015-01-05T17:13:54.000Z
2022-03-31T08:25:47.000Z
include/svgpp/adapter/line.hpp
andrew2015/svgpp
1d2f15ab5e1ae89e74604da08f65723f06c28b3b
[ "BSL-1.0" ]
61
2015-01-08T14:32:27.000Z
2021-12-06T16:55:11.000Z
include/svgpp/adapter/line.hpp
andrew2015/svgpp
1d2f15ab5e1ae89e74604da08f65723f06c28b3b
[ "BSL-1.0" ]
90
2015-05-19T04:56:46.000Z
2022-03-26T16:42:50.000Z
// Copyright Oleg Maximenko 2014. // 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://github.com/svgpp/svgpp for library home page. #pragma once #include <svgpp/definitions.hpp> #include <svgpp/det...
36.148649
104
0.730841
RichardCory
66702f70f6caa396a34b18d259408b9d54e39d50
269
cpp
C++
PointTEST.cpp
ismail-klc/point-cloud-processing
82d9c371a7c648ea4131e3d565f7274b806edf4d
[ "MIT" ]
null
null
null
PointTEST.cpp
ismail-klc/point-cloud-processing
82d9c371a7c648ea4131e3d565f7274b806edf4d
[ "MIT" ]
null
null
null
PointTEST.cpp
ismail-klc/point-cloud-processing
82d9c371a7c648ea4131e3d565f7274b806edf4d
[ "MIT" ]
null
null
null
#include "Point.h" #include <iostream> using namespace std; int main() { Point p1, p2; p1.setX(4); p1.setY(7); p1.setZ(8); p2.setX(2); p2.setY(6); p2.setZ(9); cout << (p1 == p2) << endl; cout << p1.distance(p2); system("pause"); }
11.695652
29
0.527881
ismail-klc
667204f549368ec413d937251deae01f07e52a66
329
cpp
C++
pico_json/example.cpp
minamaged113/training
29984f4d22967625b87281bb2247246b1b0033a7
[ "MIT" ]
46
2019-07-02T05:10:47.000Z
2022-03-19T16:29:19.000Z
pico_json/example.cpp
minamaged113/training
29984f4d22967625b87281bb2247246b1b0033a7
[ "MIT" ]
62
2019-09-24T17:57:07.000Z
2022-03-28T15:35:45.000Z
pico_json/example.cpp
minamaged113/training
29984f4d22967625b87281bb2247246b1b0033a7
[ "MIT" ]
33
2019-09-19T19:29:37.000Z
2022-03-17T05:28:06.000Z
#include "picojson/picojson.h" int main(void) { const char* json = "{\"a\":1}"; picojson::value v; std::string err; const char* json_end = picojson::parse(v, json, json + strlen(json), &err); if (! err.empty()) { std::cerr << err << std::endl; } std::cout << "Json parsed ok!" << std::endl; retu...
19.352941
77
0.571429
minamaged113
66796b366f9956ba5423660633cf6f0c22d39c4c
2,119
cxx
C++
main/shell/source/tools/regsvrex/regsvrex.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
679
2015-01-06T06:34:58.000Z
2022-03-30T01:06:03.000Z
main/shell/source/tools/regsvrex/regsvrex.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
102
2017-11-07T08:51:31.000Z
2022-03-17T12:13:49.000Z
main/shell/source/tools/regsvrex/regsvrex.cxx
Grosskopf/openoffice
93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7
[ "Apache-2.0" ]
331
2015-01-06T11:40:55.000Z
2022-03-14T04:07:51.000Z
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
24.079545
70
0.66588
Grosskopf
667abc375a3c2cc295712f1cfa31088369b2109e
953
cpp
C++
Prova III/Aula XXIV/mochilaBackTrack.cpp
EhODavi/INF112
fe1b465a55b255dac4918f357a6e537b2893531e
[ "MIT" ]
null
null
null
Prova III/Aula XXIV/mochilaBackTrack.cpp
EhODavi/INF112
fe1b465a55b255dac4918f357a6e537b2893531e
[ "MIT" ]
null
null
null
Prova III/Aula XXIV/mochilaBackTrack.cpp
EhODavi/INF112
fe1b465a55b255dac4918f357a6e537b2893531e
[ "MIT" ]
null
null
null
#include <iostream> #include <cstdlib> using namespace std; const int n = 27; bool melhorSolucao[n] ; int pesos[n] = {3,2,2,6,4,5,20,3,1,2,4,2,1,4,1,1,1,2,1,2,2,4,2,4,3,4,2}; int custos[n] = {300,190,180,300,190,180,300,190,180,300,190,180,300,190,180,300,190,180,12,36,152,65,25,125,250,300,245}; int capacidade = 10;...
25.756757
122
0.650577
EhODavi
667c0041468b36c82a086ff95801b3f7aa5ce408
8,207
cpp
C++
src/libsnw_util/slot_allocator.cpp
Sojourn/snw
e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f
[ "MIT" ]
null
null
null
src/libsnw_util/slot_allocator.cpp
Sojourn/snw
e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f
[ "MIT" ]
null
null
null
src/libsnw_util/slot_allocator.cpp
Sojourn/snw
e2c5a2bfbf5ad721c01a681c4e094aa35f8c010f
[ "MIT" ]
null
null
null
#include <algorithm> #include <cassert> #include <iostream> #include "align.h" #include "slot_allocator.h" snw::slot_allocator::slot_allocator(size_t capacity) : capacity_(capacity) , size_(0) , height_(0) { size_t branch_count = 0; size_t leaf_count = 0; // compute the tree layout { ...
30.737828
107
0.540271
Sojourn
667c6c9b39a404741e3f5d8efeb2d55bdead5198
2,103
cpp
C++
15.cpp
TwoFX/aoc2021
0c6f4f1642c2efdc55d7cec5ef214803859b07cd
[ "Apache-2.0" ]
1
2021-12-17T11:07:15.000Z
2021-12-17T11:07:15.000Z
15.cpp
TwoFX/aoc2021
0c6f4f1642c2efdc55d7cec5ef214803859b07cd
[ "Apache-2.0" ]
null
null
null
15.cpp
TwoFX/aoc2021
0c6f4f1642c2efdc55d7cec5ef214803859b07cd
[ "Apache-2.0" ]
null
null
null
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair #define eb emplace_back #define all(a) begin(a), end(a) #define has(a, b) (a.find(b) != a.end()) #define fora(i, n) for(int i = 0; i < n; i++) #define forb(i, n) for(int i = 1; i <= n; i++) #define forc(a, b) for(const auto &a : b)...
23.629213
114
0.527342
TwoFX
667c6fc9cfd3df56e34d3d3b3241784f185732eb
693
cpp
C++
Support/Extensions/APIOutputFramework/DatabaseGraphNode.cpp
graphisoft-python/TextEngine
20c2ff53877b20fdfe2cd51ce7abdab1ff676a70
[ "Apache-2.0" ]
3
2019-07-15T10:54:54.000Z
2020-01-25T08:24:51.000Z
Support/Extensions/APIOutputFramework/DatabaseGraphNode.cpp
graphisoft-python/GSRoot
008fac2c6bf601ca96e7096705e25b10ba4d3e75
[ "Apache-2.0" ]
null
null
null
Support/Extensions/APIOutputFramework/DatabaseGraphNode.cpp
graphisoft-python/GSRoot
008fac2c6bf601ca96e7096705e25b10ba4d3e75
[ "Apache-2.0" ]
1
2020-09-26T03:17:22.000Z
2020-09-26T03:17:22.000Z
#include "APIFunctionsEnvironment.hpp" // Framework includes #include "DatabaseGraphNode.hpp" GSAPI::DatabaseGraphNode::DatabaseGraphNode (API_DatabaseInfo dbInfo) { node = dbInfo; } GSAPI::DatabaseGraphNode::~DatabaseGraphNode (void) { } bool GSAPI::DatabaseGraphNode::HasChild (DatabaseGraphNode* child) { ...
20.382353
94
0.756133
graphisoft-python
667ef198f1d97292a1674d2f8d27b80e0ae99630
2,100
cpp
C++
project/examples/baselib/src/baselib.cpp
qigao/cmake-template
cd1b7f8995bba7e672f3ca35463ecc129ea7bcbc
[ "MIT" ]
null
null
null
project/examples/baselib/src/baselib.cpp
qigao/cmake-template
cd1b7f8995bba7e672f3ca35463ecc129ea7bcbc
[ "MIT" ]
23
2022-03-08T11:24:35.000Z
2022-03-23T04:14:31.000Z
project/examples/baselib/src/baselib.cpp
qigao/project-cpp-template
cd1b7f8995bba7e672f3ca35463ecc129ea7bcbc
[ "MIT" ]
null
null
null
#include "version.h" #include <baselib.h> #include <fstream> #include <iostream> #include <zmq.hpp> #include <zmq_addon.hpp> namespace baselib { void printInfo() { zmq::context_t ctx; zmq::socket_t sock1(ctx, zmq::socket_type::push); zmq::socket_t sock2(ctx, zmq::socket_type::pull); sock1.bind("tcp://127.0....
31.343284
77
0.579524
qigao
667f4c8c0389e26678257aa84c2aef335fecde5b
1,643
cpp
C++
src/behaviors/charge.cpp
Datorsmurf/liang
0fc2f142429894f349399189eb16737ae71c2460
[ "MIT" ]
1
2021-12-27T09:43:26.000Z
2021-12-27T09:43:26.000Z
src/behaviors/charge.cpp
Datorsmurf/liang
0fc2f142429894f349399189eb16737ae71c2460
[ "MIT" ]
null
null
null
src/behaviors/charge.cpp
Datorsmurf/liang
0fc2f142429894f349399189eb16737ae71c2460
[ "MIT" ]
null
null
null
#include "charge.h" #include "Controller.h" #include "Logger.h" #include "definitions.h" Charge::Charge(Controller *controller_, LOGGER *logger_, BATTERY *battery_, MowerModel* mowerModel_) { controller = controller_; logger = logger_; battery = battery_; mowerModel = mowerModel_; } void Charge::sta...
25.671875
102
0.606817
Datorsmurf
66879e66140e6f2f54fb19602ecf31a3192264d5
15,105
cc
C++
src/cc/common/Properties.cc
kristi/qfs
1360c6b987d1888ab9f509d79a7abbfedf3e6bbb
[ "Apache-2.0" ]
358
2015-01-04T14:04:51.000Z
2022-03-25T09:36:01.000Z
src/cc/common/Properties.cc
kristi/qfs
1360c6b987d1888ab9f509d79a7abbfedf3e6bbb
[ "Apache-2.0" ]
167
2015-02-09T23:09:42.000Z
2022-02-17T02:47:40.000Z
src/cc/common/Properties.cc
kristi/qfs
1360c6b987d1888ab9f509d79a7abbfedf3e6bbb
[ "Apache-2.0" ]
124
2015-01-12T13:54:36.000Z
2022-03-04T16:34:24.000Z
//---------------------------------------------------------- -*- Mode: C++ -*- // $Id$ // // \brief Properties implementation. // // Created 2004/05/05 // // Copyright 2008-2012,2016 Quantcast Corporation. All rights reserved. // Copyright 2006-2008 Kosmix Corp. // // This file is part of Kosmos File System (KFS). // /...
28.71673
80
0.553525
kristi
6687e88611b8c88160b5ec7f98d2021ec8e03f16
283
cc
C++
source/nss_api/src/LogError.cc
1nfiniteloop/nss-http
84f4412e30527b9e56e6bc59b3009987f2352671
[ "MIT" ]
null
null
null
source/nss_api/src/LogError.cc
1nfiniteloop/nss-http
84f4412e30527b9e56e6bc59b3009987f2352671
[ "MIT" ]
null
null
null
source/nss_api/src/LogError.cc
1nfiniteloop/nss-http
84f4412e30527b9e56e6bc59b3009987f2352671
[ "MIT" ]
null
null
null
#include <iostream> #include <syslog.h> #include "LogError.h" namespace nss_api { void LogError(const std::string& message) { openlog("nss-http", LOG_CONS | LOG_NDELAY, LOG_LOCAL1); syslog(LOG_ERR, "nss-http error: %s", message.c_str()); closelog(); } } // namespace nss_api
20.214286
58
0.699647
1nfiniteloop
668b22422cdc87542273663c4cb0b4a7c53dc990
1,006
cpp
C++
CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/LAB MID/main(1).cpp
diptu/Teaching
20655bb2c688ae29566b0a914df4a3e5936a2f61
[ "MIT" ]
null
null
null
CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/LAB MID/main(1).cpp
diptu/Teaching
20655bb2c688ae29566b0a914df4a3e5936a2f61
[ "MIT" ]
null
null
null
CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/LAB MID/main(1).cpp
diptu/Teaching
20655bb2c688ae29566b0a914df4a3e5936a2f61
[ "MIT" ]
null
null
null
#include <iostream> #include "stack.cpp" #include "queue.cpp" using namespace std; QueueLL Reverse (int k) { QueueLL<char> qq ; for(int i = k ; i > 0 ; i-- ) { qq.insertAtEnd(q.getValue(i)) } for (int i = k ; q.hasNext () ; i++ ) { qq.enqueue(q.getValue(i)) ; } return qq ; } i...
16.766667
43
0.445328
diptu
668b330b93d84dd01a682426fbe99ced2598a426
1,210
cpp
C++
vanilla/34-find_first_and_last_position_of_element_in_sorted_array.cpp
Junlin-Yin/myLeetCode
8a33605d3d0de9faa82b5092a8e9f56b342c463f
[ "MIT" ]
null
null
null
vanilla/34-find_first_and_last_position_of_element_in_sorted_array.cpp
Junlin-Yin/myLeetCode
8a33605d3d0de9faa82b5092a8e9f56b342c463f
[ "MIT" ]
null
null
null
vanilla/34-find_first_and_last_position_of_element_in_sorted_array.cpp
Junlin-Yin/myLeetCode
8a33605d3d0de9faa82b5092a8e9f56b342c463f
[ "MIT" ]
null
null
null
class Solution { public: //找到非降序数组中首个大于(等于)目标数的下标,以下两种均可 //注意r的初始赋值、迭代式和循环条件中的取等情况 int binarySearch(vector<int>& nums, int target, bool allow_eq){ int l = 0, r = nums.size() - 1, mid; while(l <= r){ mid = (l + r) >> 1; if((eq && nums[mid] < target) || (!eq && ...
37.8125
89
0.428926
Junlin-Yin
668e17d5bb73cb07b1b2e61a556510751b8c0e8a
1,752
cpp
C++
codejam/qualification/latin/main.cpp
jschmidtnj/competitive
cb16f285f1022d9d16e654b755d89a1b0e53deeb
[ "MIT" ]
null
null
null
codejam/qualification/latin/main.cpp
jschmidtnj/competitive
cb16f285f1022d9d16e654b755d89a1b0e53deeb
[ "MIT" ]
null
null
null
codejam/qualification/latin/main.cpp
jschmidtnj/competitive
cb16f285f1022d9d16e654b755d89a1b0e53deeb
[ "MIT" ]
null
null
null
#include <bits/stdc++.h> using namespace std; int main() { int num_tests; cin >> num_tests; for (int current_test = 0; current_test < num_tests; current_test++) { int n; cin >> n; int trace = 0; unordered_set<int> row_vals; row_vals.reserve(n); vector<unordered_set<int>> column_vals; ...
27.809524
72
0.538813
jschmidtnj
668ebba06c41a39f8be59841f6699dce1368cd37
3,412
cpp
C++
app/qshare/FastDXT/main.cpp
benyaboy/sage-graphics
090640167329ace4b6ad266d47db5bb2b0394232
[ "Unlicense" ]
null
null
null
app/qshare/FastDXT/main.cpp
benyaboy/sage-graphics
090640167329ace4b6ad266d47db5bb2b0394232
[ "Unlicense" ]
null
null
null
app/qshare/FastDXT/main.cpp
benyaboy/sage-graphics
090640167329ace4b6ad266d47db5bb2b0394232
[ "Unlicense" ]
1
2021-07-02T10:31:03.000Z
2021-07-02T10:31:03.000Z
/****************************************************************************** * Fast DXT - a realtime DXT compression tool * * Author : Luc Renambot * * Copyright (C) 2007 Electronic Visualization Laboratory, * University of Illinois at Chicago * * All rights reserved. * * Redistribution and use in source a...
32.188679
84
0.658851
benyaboy
668f0e3d40e90a9d5d1b759b8223cc378ad9c16d
2,685
hpp
C++
third_party/gfootball_engine/src/framework/scheduler.hpp
Jonas1711/football
6a20dcb832da71d4e97e094e4afa060533aa7dcc
[ "Apache-2.0" ]
2
2021-03-16T06:46:38.000Z
2021-09-14T02:01:16.000Z
third_party/gfootball_engine/src/framework/scheduler.hpp
Jonas1711/football
6a20dcb832da71d4e97e094e4afa060533aa7dcc
[ "Apache-2.0" ]
null
null
null
third_party/gfootball_engine/src/framework/scheduler.hpp
Jonas1711/football
6a20dcb832da71d4e97e094e4afa060533aa7dcc
[ "Apache-2.0" ]
4
2020-07-30T17:02:42.000Z
2022-01-03T19:32:53.000Z
// Copyright 2019 Google LLC & Bastiaan Konings // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law o...
30.168539
132
0.707263
Jonas1711
66928415080d4149cdc1347d017a213eba83667d
2,257
cpp
C++
RobWork/src/rw/sensor/CameraModel.cpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
1
2021-12-29T14:16:27.000Z
2021-12-29T14:16:27.000Z
RobWork/src/rw/sensor/CameraModel.cpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
RobWork/src/rw/sensor/CameraModel.cpp
ZLW07/RobWork
e713881f809d866b9a0749eeb15f6763e64044b3
[ "Apache-2.0" ]
null
null
null
/******************************************************************************** * Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute, * Faculty of Engineering, University of Southern Denmark * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
30.917808
96
0.668587
ZLW07
66968babd49c7d9ec889fb929f4d1d532124cfce
1,151
cpp
C++
Dynamic Programming/goldmine.cpp
Ajax-07/Java-Questions-and-Solutions
816c0b7900340ddc438cb8091fbe64f7b56232cc
[ "MIT" ]
null
null
null
Dynamic Programming/goldmine.cpp
Ajax-07/Java-Questions-and-Solutions
816c0b7900340ddc438cb8091fbe64f7b56232cc
[ "MIT" ]
null
null
null
Dynamic Programming/goldmine.cpp
Ajax-07/Java-Questions-and-Solutions
816c0b7900340ddc438cb8091fbe64f7b56232cc
[ "MIT" ]
null
null
null
#include<bits/stdc++.h> using namespace std; int maxGold(int n, int m, vector<vector<int>> arr){ int ans = 0; if(n==1){ for(int j=0; j<m; j++) ans += arr[0][j]; return ans; } int dp[n][m]; for(int i=n-1; i>=0; i--) dp[i][m-1] = arr[i][m-1]; ans=IN...
20.553571
81
0.414422
Ajax-07