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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c195d4dba24c4d8abcb9285a8b1a4947c136b491 | 7,887 | cpp | C++ | Test/Collisions/Source/main.cpp | bugsbycarlin/Honey | 56902979eb746c8dff5c8bcfc531fbf855c0bae5 | [
"MIT"
] | null | null | null | Test/Collisions/Source/main.cpp | bugsbycarlin/Honey | 56902979eb746c8dff5c8bcfc531fbf855c0bae5 | [
"MIT"
] | null | null | null | Test/Collisions/Source/main.cpp | bugsbycarlin/Honey | 56902979eb746c8dff5c8bcfc531fbf855c0bae5 | [
"MIT"
] | null | null | null | /*
Collisions Test Program
Matthew Carlin
Copyright 2018
*/
#include <string>
#include <array>
#include "honey.h"
using namespace Honey;
using namespace std;
void initialize();
void render();
void logic();
bool test_collision(int i, int j);
bool quit;
float x_velocity;
float y_velocity;
float acceleratio... | 24.646875 | 84 | 0.565741 | bugsbycarlin |
c197258d125848928500d5e8c499aa1b588eca38 | 117 | cpp | C++ | example/task_thread_safe.cpp | tearshark/libst | 1c8251856957590be5ad063be7f05f0f5c5430a1 | [
"Apache-2.0"
] | 18 | 2018-05-21T12:57:44.000Z | 2021-11-24T01:44:32.000Z | example/task_thread_safe.cpp | tearshark/libst | 1c8251856957590be5ad063be7f05f0f5c5430a1 | [
"Apache-2.0"
] | null | null | null | example/task_thread_safe.cpp | tearshark/libst | 1c8251856957590be5ad063be7f05f0f5c5430a1 | [
"Apache-2.0"
] | 6 | 2019-06-08T15:37:44.000Z | 2020-12-12T12:38:12.000Z | //测试任务链节点之间的数据传递和执行是线程安全的
#include "task.h"
#include "log_print.h"
void test_task_thread_safe()
{
//TODO
}
| 13 | 29 | 0.692308 | tearshark |
c197cba8eb070f2390301c052ef101ae075a21dd | 640 | cpp | C++ | 55.跳跃游戏/canJump_暴力回溯法.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 55.跳跃游戏/canJump_暴力回溯法.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 55.跳跃游戏/canJump_暴力回溯法.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
bool canJump(vector<int>& nums)
{
return canJumpFromPosition(0, nums);
}
bool canJumpFromPosition(int position, vector<int>& nums) {
if (position == nums.size() - 1)
{
return true;
}
int nums_size=nums.size()-1;
in... | 23.703704 | 91 | 0.528125 | YichengZhong |
c19f7aefab0663d230fecb5aa59b165fa9b27930 | 5,264 | hpp | C++ | hpx/runtime/parcelset/parcel.hpp | folshost/hpx | 6b3dc70c4fcade16052cc964790a98522bbfc3ec | [
"BSL-1.0"
] | null | null | null | hpx/runtime/parcelset/parcel.hpp | folshost/hpx | 6b3dc70c4fcade16052cc964790a98522bbfc3ec | [
"BSL-1.0"
] | null | null | null | hpx/runtime/parcelset/parcel.hpp | folshost/hpx | 6b3dc70c4fcade16052cc964790a98522bbfc3ec | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2014 Hartmut Kaiser
// Copyright (c) 2015-2016 Thomas Heller
// Copyright (c) 2007 Richard D Guidry Jr
// Copyright (c) 2007 Alexandre (aka Alex) TABBAL
// Copyright (c) 2011 Bryce Lelbach
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (... | 26.857143 | 80 | 0.656725 | folshost |
c1a0195613c0a9aebcfe57ea7d5568bec91da144 | 935 | cpp | C++ | src/main.cpp | Mostafa-RT/gem-castle | cf0647f08a0dca1fdce8aece6e44d9f137857132 | [
"BSD-2-Clause"
] | 1 | 2020-12-16T08:41:04.000Z | 2020-12-16T08:41:04.000Z | src/main.cpp | Mostafa-RT/gem-castle | cf0647f08a0dca1fdce8aece6e44d9f137857132 | [
"BSD-2-Clause"
] | null | null | null | src/main.cpp | Mostafa-RT/gem-castle | cf0647f08a0dca1fdce8aece6e44d9f137857132 | [
"BSD-2-Clause"
] | null | null | null | #include <string>
#include <climits>
#include <unistd.h>
#include <iostream>
#include <stdexcept>
#include "game.hpp"
int main()
{
try
{
char hostname[HOST_NAME_MAX];
char username[LOGIN_NAME_MAX];
gethostname(hostname, HOST_NAME_MAX);
getlogin_r(username, LOGIN_NAME_MAX);
std::stri... | 28.333333 | 91 | 0.588235 | Mostafa-RT |
c1a47ec4cac5ad675ecc99d1277b953db3ab64ed | 1,791 | cpp | C++ | codeforces/E - Omkar and Last Floor/Wrong answer on pretest 8.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/E - Omkar and Last Floor/Wrong answer on pretest 8.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/E - Omkar and Last Floor/Wrong answer on pretest 8.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: * kzvd4729 created: Jul/11/2020 22:27
* solution_verdict: Wrong answer on pretest 8 language: GNU C++14
* run... | 26.731343 | 111 | 0.454495 | kzvd4729 |
c1aa4b16977060aaee80e20f480ae31b41e69ffd | 351 | hpp | C++ | blaise-lang/include/gasp/blaise/impl/blaise_ast_expression_type.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | blaise-lang/include/gasp/blaise/impl/blaise_ast_expression_type.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | blaise-lang/include/gasp/blaise/impl/blaise_ast_expression_type.hpp | sanelli/gasp | 108700e8739534e9c152d7c8e2f1308917cf8611 | [
"MIT"
] | null | null | null | #pragma once
namespace gasp::blaise::ast {
enum class blaise_ast_expression_type {
UNDEFINED,
BINARY,
UNARY,
IDENTIFIER,
FUNCTION_CALL,
LITERAL_BYTE,
LITERAL_SHORT,
LITERAL_INTEGER,
LITERAL_LONG,
LITERAL_FLOAT,
LITERAL_DOUBLE,
LITERAL_CHAR,
LITERAL_STRING,
LITERAL_BOOLEAN,
... | 14.04 | 39 | 0.695157 | sanelli |
c1aa8d6c3f6108a31f23fac8985e0004c22efa8e | 6,156 | cpp | C++ | src/game/client/tf/vgui/panels/tf_itemtooltippanel.cpp | TF2V/Tf2Vintage | 983d652c338dc017dca51f5bc4eee1a3d4b7ac2e | [
"Unlicense"
] | 18 | 2017-07-14T09:43:26.000Z | 2021-09-12T08:56:05.000Z | src/game/client/tf/vgui/panels/tf_itemtooltippanel.cpp | TF2V/Tf2Vintage | 983d652c338dc017dca51f5bc4eee1a3d4b7ac2e | [
"Unlicense"
] | 13 | 2017-08-08T02:07:18.000Z | 2022-03-22T23:49:58.000Z | src/game/client/tf/vgui/panels/tf_itemtooltippanel.cpp | TF2V/Tf2Vintage | 983d652c338dc017dca51f5bc4eee1a3d4b7ac2e | [
"Unlicense"
] | 15 | 2017-07-14T11:01:35.000Z | 2021-09-04T06:55:27.000Z | #include "cbase.h"
#include "tf_itemtooltippanel.h"
#include "tf_mainmenupanel.h"
#include "tf_mainmenu.h"
#include "controls/tf_advbuttonbase.h"
#include "controls/tf_advmodelpanel.h"
#include <vgui/ILocalize.h>
#include <vgui_controls/TextImage.h>
// memdbgon must be the last include file in a .cpp file!!!
#include ... | 25.757322 | 119 | 0.645712 | TF2V |
c1af9ac803a94d1cc3ac6ada9147e6a50b90c521 | 9,293 | cpp | C++ | Plugins/SHTNPlanner/Source/SHTNPlannerEditor/Private/DetailCustomizations/WorldStateDebugDetails.cpp | Strik3One/SHTNPlanner | deafb243e80913c71c0eaac4936804ad3625ff4c | [
"MIT"
] | 14 | 2020-12-09T14:16:27.000Z | 2022-02-01T19:45:20.000Z | Plugins/SHTNPlanner/Source/SHTNPlannerEditor/Private/DetailCustomizations/WorldStateDebugDetails.cpp | Strik3One/SHTNPlanner | deafb243e80913c71c0eaac4936804ad3625ff4c | [
"MIT"
] | null | null | null | Plugins/SHTNPlanner/Source/SHTNPlannerEditor/Private/DetailCustomizations/WorldStateDebugDetails.cpp | Strik3One/SHTNPlanner | deafb243e80913c71c0eaac4936804ad3625ff4c | [
"MIT"
] | 4 | 2020-12-16T15:42:30.000Z | 2021-08-15T17:52:19.000Z | #include "WorldStateDebugDetails.h"
#include "PropertyEditing.h"
#include "Widgets/Input/SNumericEntryBox.h"
#include "InputCoreTypes.h"
#include "SGraphActionMenu.h"
#include "Kismet/GameplayStatics.h"
#include "Widgets/SWidget.h"
#include "Widgets/Layout/SExpandableArea.h"
#include "Engine/Selection.h"
#include "AI... | 30.172078 | 157 | 0.772194 | Strik3One |
c1b08f4b11782422550ca80c730b14db2058ae48 | 1,848 | cpp | C++ | stl/SequenceContainers/Source.cpp | xtianhb/modern_cpp | 0b39fe1663a69795a5cfa13c73ed849a74c4121f | [
"MIT"
] | null | null | null | stl/SequenceContainers/Source.cpp | xtianhb/modern_cpp | 0b39fe1663a69795a5cfa13c73ed849a74c4121f | [
"MIT"
] | null | null | null | stl/SequenceContainers/Source.cpp | xtianhb/modern_cpp | 0b39fe1663a69795a5cfa13c73ed849a74c4121f | [
"MIT"
] | null | null | null | #include <iostream>
#include <array>
#include <vector>
#include <deque>
#include <list>
#include <forward_list>
void Array() {
std::array<int, 5> arr{ 3,1,8,5,9 };
for (int i = 0; i < arr.size(); ++i) {
arr[i] = i;
}
auto itr = arr.begin();
for (auto x : arr) {
std::cout << x << " ";
}
std::co... | 20.764045 | 42 | 0.502706 | xtianhb |
c1b5479a18e526e0d453c4a7f60d8a591498c53c | 435 | hpp | C++ | include/elements/solids/movable/MovableSolid.hpp | PalasanRares/WaterSim | ccdffc9d7442ca5bbbb9a2f807db127a9bda2740 | [
"MIT"
] | null | null | null | include/elements/solids/movable/MovableSolid.hpp | PalasanRares/WaterSim | ccdffc9d7442ca5bbbb9a2f807db127a9bda2740 | [
"MIT"
] | null | null | null | include/elements/solids/movable/MovableSolid.hpp | PalasanRares/WaterSim | ccdffc9d7442ca5bbbb9a2f807db127a9bda2740 | [
"MIT"
] | null | null | null | #ifndef _MOVABLE_SOLID_HPP
#define _MOVABLE_SOLID_HPP
#include "elements/Element.hpp"
#include "types.hpp"
class MovableSolid : public Element {
private:
bool goDown(Matrix* matrix, const int& i, const int& j);
bool goDownSide(Matrix* matrix, const int& i, const int& j);
public:
MovableSolid(byte id, int type,... | 21.75 | 75 | 0.714943 | PalasanRares |
c1b629640928e6177233185c73578c2bf54e09de | 22 | cpp | C++ | matrix.cpp | csiro-robotics/Morphogenesis | 4d390609f941a58f09529371d185a344573de35f | [
"BSD-3-Clause"
] | null | null | null | matrix.cpp | csiro-robotics/Morphogenesis | 4d390609f941a58f09529371d185a344573de35f | [
"BSD-3-Clause"
] | null | null | null | matrix.cpp | csiro-robotics/Morphogenesis | 4d390609f941a58f09529371d185a344573de35f | [
"BSD-3-Clause"
] | null | null | null |
#include "matrix.h"
| 5.5 | 19 | 0.636364 | csiro-robotics |
c1be271b451c2c8a1bf9d2b8a23d9d910319131c | 64,358 | hpp | C++ | include/xpm_icons.hpp | aiordache/landsat-image-merger | c959c7641740ed31cb6dc344c043310cc213e33e | [
"Unlicense"
] | 1 | 2021-01-24T13:57:47.000Z | 2021-01-24T13:57:47.000Z | include/xpm_icons.hpp | aiordache/landsat-image-merger | c959c7641740ed31cb6dc344c043310cc213e33e | [
"Unlicense"
] | null | null | null | include/xpm_icons.hpp | aiordache/landsat-image-merger | c959c7641740ed31cb6dc344c043310cc213e33e | [
"Unlicense"
] | null | null | null | static const char *add_image_icon[] = {
/* columns rows colors chars-per-pixel */
"48 48 144 2 ",
" c #434B53",
". c #444B53",
"X c #434A54",
"o c #434B54",
"O c #444A54",
"+ c #444B54",
"@ c #454C54",
"# c #454C55",
"$ c #464C56",
"% c #464D56",
"& c #474E57",
"* c #484E57",
"= c #484F57",
"- c #494F58"... | 37.65828 | 131 | 0.464231 | aiordache |
c1c838ce5dc9a9cc9eed601adf83ea8b204b8fb8 | 567 | hpp | C++ | include/gridtools/meta/list.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/meta/list.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/meta/list.hpp | jdahm/gridtools | 5961932cd2ccf336d3d73b4bc967243828e55cc5 | [
"BSD-3-Clause"
] | 1 | 2019-06-14T10:35:50.000Z | 2019-06-14T10:35:50.000Z | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
namespace gridtools {
namespace meta {
/**
* The default list constructor.
*
... | 22.68 | 100 | 0.589065 | jdahm |
c1c9fb2737ce6d2a853508d4b67ae0004153a4ee | 256 | cpp | C++ | Helping Chef.cpp | kamesh666/codechef-beginnner-problem | 2a85d779cdb1d67a9e663092a6e52a0a5b798edd | [
"MIT"
] | null | null | null | Helping Chef.cpp | kamesh666/codechef-beginnner-problem | 2a85d779cdb1d67a9e663092a6e52a0a5b798edd | [
"MIT"
] | null | null | null | Helping Chef.cpp | kamesh666/codechef-beginnner-problem | 2a85d779cdb1d67a9e663092a6e52a0a5b798edd | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int t;
cin >> t;
while(t--) {
int n;
cin >> n;
if (n<10) {
cout <<"Thanks for helping Chef!"<< endl;
}
else {
cout << "-1" << endl;
}
}
return 0;
}
| 13.473684 | 50 | 0.445313 | kamesh666 |
c1d4995d11a51308c14e71406a71e8ded6e907a6 | 451 | cpp | C++ | Sources/ResourceSystem/ResourceSerializer/SyrinxMeshFileHeader.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 3 | 2020-04-24T07:58:52.000Z | 2021-11-17T11:08:46.000Z | Sources/ResourceSystem/ResourceSerializer/SyrinxMeshFileHeader.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | null | null | null | Sources/ResourceSystem/ResourceSerializer/SyrinxMeshFileHeader.cpp | LeptusHe/SyrinxEngine | 5ecdfdd53eb421bdfba61ed183a1ac688d117b97 | [
"MIT"
] | 2 | 2019-10-02T01:49:46.000Z | 2021-11-16T15:25:59.000Z | #include "ResourceSerializer/SyrinxMeshFileHeader.h"
namespace Syrinx {
constexpr uint8_t version = 0x1;
const MeshFileHeader MESH_FILE_HEADER = MeshFileHeader("[SYRINXMESH]", version, "[SyrinxMesh_Version1.0]");
MeshFileHeader::MeshFileHeader(const std::string& signature, uint8_t version, const std::string... | 26.529412 | 110 | 0.736142 | LeptusHe |
c1d800410da9bc4cf3c9bd0233dd6875c13303e1 | 12,102 | inl | C++ | LibFoundation/Mathematics/Wm4Math.inl | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | LibFoundation/Mathematics/Wm4Math.inl | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | LibFoundation/Mathematics/Wm4Math.inl | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Foundation Library source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4FoundationLicense.pdf
// and may not be copied ... | 27.756881 | 78 | 0.465047 | wjezxujian |
c1db9ecc3a45b7a93de51e30bddadb93ed5e584b | 1,012 | cc | C++ | src/main.cc | AkihiroTakai/yuri-image | d6565cf9045f717c5420daf1dc204797ea8c3a11 | [
"MIT"
] | null | null | null | src/main.cc | AkihiroTakai/yuri-image | d6565cf9045f717c5420daf1dc204797ea8c3a11 | [
"MIT"
] | null | null | null | src/main.cc | AkihiroTakai/yuri-image | d6565cf9045f717c5420daf1dc204797ea8c3a11 | [
"MIT"
] | null | null | null | #include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <string>
#include <iostream>
#include <fstream>
/*
*ゆりOSのソースコード(include/kernel.h)より引用
*/
#define __RGB256COL__(r, g, b) (16+(r/51)+(6*(g/51))+(36*(b/51)))
int main(int argc, char **argv){
std::ofstream yim;
cv::Mat src_img = cv::im... | 18.4 | 71 | 0.583004 | AkihiroTakai |
c1dcd3adc0100d065b4203ebab1dda844e1b7b4b | 1,646 | cpp | C++ | D07/ex02/main.cpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D07/ex02/main.cpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D07/ex02/main.cpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: ... | 31.056604 | 80 | 0.295869 | amoinier |
c1deb41070a3a0c63d8425884071cd28e71a4cf8 | 3,884 | cpp | C++ | WOAP Host/Source/woap_access_control_core.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | WOAP Host/Source/woap_access_control_core.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | WOAP Host/Source/woap_access_control_core.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | #include "woap_access_control_core.h"
#include "woap_user.h"
#include "woap_user_group.h"
#include "woap_user_permission.h"
#include "woap_user_login.h"
#include "woap_password_helper.h"
#include "woap_bootstrapper.h"
#include "woap_configuration_manager.h"
using namespace WOAP;
SINGLETON_IMPLEMENTATION(AccessControl... | 24.582278 | 152 | 0.730947 | ZonRobin |
c1e08a881be2ab569c33012c9a18d3bb8a2db2ec | 494 | cpp | C++ | src/main/main.cpp | ammrat13/atmega328p-cross | a19d6d51a934ff28bb2aff25b28db2876b6bab4e | [
"MIT"
] | null | null | null | src/main/main.cpp | ammrat13/atmega328p-cross | a19d6d51a934ff28bb2aff25b28db2876b6bab4e | [
"MIT"
] | null | null | null | src/main/main.cpp | ammrat13/atmega328p-cross | a19d6d51a934ff28bb2aff25b28db2876b6bab4e | [
"MIT"
] | null | null | null | #include <serial.hpp>
USART::Configuration USART0_CONFIGURATION {
.baudrate_register = 16,
.use_2X = true,
.rx_en = true,
.tx_en = true,
.stop_bits = USART::Configuration::StopBits::ONE,
.parity = USART::Configuration::Parity::NONE,
};
int main(void) {
size_t num_read;
char buf[256];... | 19.76 | 58 | 0.619433 | ammrat13 |
c1e1a5fc5ac3316d305b97287cf5570f3226feee | 1,696 | hpp | C++ | example/testServer.hpp | vkardon/grpc_async_server | cd2d87114a5b539e212cb391998e892e6174f772 | [
"MIT"
] | 8 | 2018-09-20T09:29:30.000Z | 2021-08-12T22:46:30.000Z | example/testServer.hpp | vkardon/grpc_async_server | cd2d87114a5b539e212cb391998e892e6174f772 | [
"MIT"
] | null | null | null | example/testServer.hpp | vkardon/grpc_async_server | cd2d87114a5b539e212cb391998e892e6174f772 | [
"MIT"
] | null | null | null | #ifndef __TEST_SERVER_HPP__
#define __TEST_SERVER_HPP__
#include "logger.hpp"
#include "grpcServer.hpp"
#include "testService.hpp"
#include "healthService.hpp"
#include <atomic>
class TestServer : public gen::GrpcServer
{
public:
TestServer() : testService(this) {}
virtual ~TestServer() = default;
// gen... | 25.69697 | 72 | 0.661557 | vkardon |
c1e1b8db8841110395a3c3ee411aae0cd514b18f | 12,809 | cpp | C++ | Connection.cpp | matt-attack/netlibrary | 98970ebb249cd960b826fe0e987909ef790e4b60 | [
"MIT"
] | 6 | 2018-01-06T17:38:42.000Z | 2019-11-14T01:37:31.000Z | Connection.cpp | matt-attack/netlibrary | 98970ebb249cd960b826fe0e987909ef790e4b60 | [
"MIT"
] | null | null | null | Connection.cpp | matt-attack/netlibrary | 98970ebb249cd960b826fe0e987909ef790e4b60 | [
"MIT"
] | null | null | null |
#ifdef _WIN32
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#endif
#include "Connection.h"
#ifdef _DEBUG
#ifndef DBG_NEW
#define DBG_NEW new ( _NORMAL_BLOCK , __FILE__ , __LINE__ )
#define new DBG_NEW
#endif
#endif
#define _CRTDBG_MAP_ALLOC
void NetConnection::net_thread(void* data)
{
netlog("Net... | 26.194274 | 156 | 0.630182 | matt-attack |
c1e4e235c20b1d0a5ffb7cac803ef2e1d17e9172 | 8,095 | cpp | C++ | getic/bigterrain.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | getic/bigterrain.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | getic/bigterrain.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | // BigTerrain.cpp: implementation of the CBigTerrain class.
//
//---------------------------------------------------------------------------------------
#include "stdafx.h"
#include "geticapp.h"
#include "bigterrain.h"
#include "view3d.h"
#include "view2d.h"
#include "document.h"
#include "texadapter.h"
#include "texs... | 27.255892 | 107 | 0.45176 | circinusX1 |
c1e5448fd836290aa290b7afaa5c0cb1a374bebe | 1,954 | cc | C++ | src/cdi/CDI_integrateRosselandSpectrum.cc | keadyk/Draco | 129fbff1d74a3f5498670e952b7d4142f37b2aac | [
"BSD-3-Clause-Open-MPI"
] | 1 | 2020-03-19T07:05:08.000Z | 2020-03-19T07:05:08.000Z | src/cdi/CDI_integrateRosselandSpectrum.cc | 5l1v3r1/Draco | 0480d4c7c1ff7f40e0aece3be785dc0e4e23ece1 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/cdi/CDI_integrateRosselandSpectrum.cc | 5l1v3r1/Draco | 0480d4c7c1ff7f40e0aece3be785dc0e4e23ece1 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //----------------------------------*-C++-*-----------------------------------//
/*!
* \file cdi/CDI_integrateRosselandSpectrum.cc
* \author Kelly Thompson
* \date Thu Jun 22 16:22:07 2000
* \brief CDI class implementation file.
* \note Copyright (C) 2016-2020 Triad National Security, LLC.
* All ri... | 37.576923 | 80 | 0.502559 | keadyk |
c1ec43f8e55f0858efbbb3353149b251d67b8c50 | 869 | cpp | C++ | FW/UI/PR/ui_string_property.cpp | JAntn/wblocks | e8aa383882b4726f6f7cca7213fa49e9e80d990f | [
"MIT"
] | null | null | null | FW/UI/PR/ui_string_property.cpp | JAntn/wblocks | e8aa383882b4726f6f7cca7213fa49e9e80d990f | [
"MIT"
] | null | null | null | FW/UI/PR/ui_string_property.cpp | JAntn/wblocks | e8aa383882b4726f6f7cca7213fa49e9e80d990f | [
"MIT"
] | null | null | null | #include "FW/UI/PR/ui_string_property.h"
#include "ui_stringproperty.h"
TypeUiStringProperty::TypeUiStringProperty( QString tag_name, QString value, TypeSaveCallback on_changed, QWidget* parent ):
TypeUiProperty( on_changed, parent ),
ui( new Ui::TypeUiStringProperty )
{
ui->setupUi( this );
ui->Label-... | 19.75 | 124 | 0.705409 | JAntn |
c1ec648730be9d1265f3fd5916ddb6bc595229f3 | 1,360 | cpp | C++ | Codeforces/277.5 Division 2/Problem C/C.cpp | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Codeforces/277.5 Division 2/Problem C/C.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Codeforces/277.5 Division 2/Problem C/C.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include<stdio.h>
#include<iostream>
#include<cmath>
#include<algorithm>
#include<cstring>
#include<map>
#include<set>
#include<vector>
#include<utility>
#include<math.h>
#define sd(x) scanf("%d",&x);
#define sd2(x,y) scanf("%d%d",&x,&y);
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z);
using namespace std;
int main(){
... | 17.21519 | 97 | 0.438971 | VastoLorde95 |
c1ecac12f0dfc5f819fadd49fc92fe65cf0611cd | 4,556 | cpp | C++ | glhelper/texture.cpp | Wumpf/glhelper | de4658f4918533dfac25acf99fc3e5802743210b | [
"MIT"
] | 14 | 2015-01-18T21:13:21.000Z | 2021-12-21T01:03:16.000Z | glhelper/texture.cpp | Jojendersie/glhelper | 7e59fcb09bb7332cf48c1831db1ff5f59de0af81 | [
"MIT"
] | 7 | 2015-06-15T19:09:13.000Z | 2015-11-26T09:22:10.000Z | glhelper/texture.cpp | Wumpf/glhelper | de4658f4918533dfac25acf99fc3e5802743210b | [
"MIT"
] | 5 | 2015-06-15T13:22:18.000Z | 2021-10-31T00:26:01.000Z | #include "texture.hpp"
namespace gl
{
TextureId Texture::s_boundTextures[Texture::s_numTextureBindings];
Texture::Texture(GLsizei width, GLsizei height, GLsizei depth, TextureFormat format, GLsizei numMipLevels, GLsizei numMSAASamples) :
m_width(width),
m_height(height),
m_depth(depth),
m_format(format),
... | 35.874016 | 227 | 0.742098 | Wumpf |
c1f06b8d8c933801da8bae52bd33ec7af9778718 | 1,199 | cpp | C++ | examples/xtd.forms.examples/others/form_and_thread/src/form_and_thread.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | examples/xtd.forms.examples/others/form_and_thread/src/form_and_thread.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | examples/xtd.forms.examples/others/form_and_thread/src/form_and_thread.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #include <xtd/xtd>
using namespace std::literals;
using namespace xtd::forms;
class form_thread : public form {
public:
form_thread() {
text("Form and thread example");
form_closed += [&] {
closed = true;
for (auto index = 0U; index < threads.size(); index++)
threads[index].join();
}... | 26.644444 | 113 | 0.57965 | BaderEddineOuaich |
c1f33ab648b50250a8e39f4377af2f655684cdcc | 56,641 | cpp | C++ | samples/pick/pick_main.cpp | shocker-0x15/OptiX_Utility | f3719a7151d79c7777fa5dbece7cfef186b7e30b | [
"Apache-2.0"
] | 32 | 2020-10-21T07:21:21.000Z | 2022-03-13T12:13:13.000Z | samples/pick/pick_main.cpp | shocker-0x15/OptiX_Utility | f3719a7151d79c7777fa5dbece7cfef186b7e30b | [
"Apache-2.0"
] | 6 | 2020-11-09T11:03:48.000Z | 2021-01-29T16:31:22.000Z | samples/pick/pick_main.cpp | shocker-0x15/OptiX_Utility | f3719a7151d79c7777fa5dbece7cfef186b7e30b | [
"Apache-2.0"
] | null | null | null | /*
JP: このサンプルはインタラクティブなアプリケーション上におけるオブジェクトピック実装の一例を示します。
APIの使い方として新しいものを示すサンプルではありません。
例として透視投影と正距円筒図法による投影を使ったカメラを示します。
EN: This sample demonstrates an example of implementing object picking in an interactive application.
This sample has nothing new for API usage.
As examples, cameras using perspec... | 41.073967 | 142 | 0.633093 | shocker-0x15 |
c1f373a26afd23a6c57cd671712c304a57fec586 | 3,495 | cc | C++ | test/lgf_test.cc | ucr-ufluidics/lemon | a8eb83f0cec960d1abb2696f5c635ce4a18c5cdc | [
"BSL-1.0"
] | null | null | null | test/lgf_test.cc | ucr-ufluidics/lemon | a8eb83f0cec960d1abb2696f5c635ce4a18c5cdc | [
"BSL-1.0"
] | null | null | null | test/lgf_test.cc | ucr-ufluidics/lemon | a8eb83f0cec960d1abb2696f5c635ce4a18c5cdc | [
"BSL-1.0"
] | null | null | null | /* -*- mode: C++; indent-tabs-mode: nil; -*-
*
* This file is a part of LEMON, a generic C++ optimization library.
*
* Copyright (C) 2003-2011
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
*
* Permission to use, modify and distribut... | 20.558824 | 70 | 0.583119 | ucr-ufluidics |
c1f4a92b026d6d6e8ada2733bca991f82310f2ec | 1,524 | cpp | C++ | source/Visitors/YFieldUpdater.cpp | badbrainz/pme | 1c8e6f3d154cc59613f5ef3f2f8293f488c64b28 | [
"WTFPL"
] | null | null | null | source/Visitors/YFieldUpdater.cpp | badbrainz/pme | 1c8e6f3d154cc59613f5ef3f2f8293f488c64b28 | [
"WTFPL"
] | null | null | null | source/Visitors/YFieldUpdater.cpp | badbrainz/pme | 1c8e6f3d154cc59613f5ef3f2f8293f488c64b28 | [
"WTFPL"
] | null | null | null | #include "YFieldUpdater.h"
#include "../Databases/TerrainDatabase.h"
#include "../Factories/TerrainVisuals.h"
#include "../Nodes/SpatialIndexNode.h"
#include "../Nodes/SpatialIndexCell.h"
#include "../Nodes/TransformGroupNode.h"
//#include "../Nodes/StaticModelNode.h"
#include "../Tools/NodeIterator.h"
#include... | 28.754717 | 133 | 0.685039 | badbrainz |
c1f7e05288ca5bd0b0a37a970ca9c17305a5a66f | 277 | cpp | C++ | BaekJoon/19939.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | BaekJoon/19939.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | BaekJoon/19939.cpp | falconlee236/Algorithm_Practice | 4e6e380a0e6c840525ca831a05c35253eeaaa25c | [
"MIT"
] | null | null | null | /*19939*/
/*Cheating*/
#include <iostream>
using namespace std;
int main() {
int n, k; cin >> n >> k;
int res = 0;
for(int i = 1; i <= k; i++) res += i;
if(res > n){
cout << -1;
return 0;
}
if((n - res) % k == 0) cout << k - 1;
else cout << k;
return 0;
}
| 14.578947 | 38 | 0.476534 | falconlee236 |
c1f80d607186525bfac275bad1afe8ee1987adb4 | 418 | hpp | C++ | include/ph_concepts/typetraits.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/typetraits.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | include/ph_concepts/typetraits.hpp | phiwen96/ph_image | 282bdd835d721a561c4f3afcbb76af5f9bda87ba | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "common.hpp"
#include "concepts.hpp"
/**
A C++ type trait is an interface (functions, types, values), parametrized on a type:
Traits class: A class used in place of template parameters. As a class, it aggregates
useful types and constants; as a template, it provides an avenue for that “extra ... | 24.588235 | 90 | 0.73445 | phiwen96 |
c1f946d022a27dabfee7d3b9bef7e59a89938a78 | 879 | cpp | C++ | ps6/test.cpp | Siroibma/Comp4 | d873928924d641e4730b6355264f02b9cfd08bb7 | [
"MIT"
] | null | null | null | ps6/test.cpp | Siroibma/Comp4 | d873928924d641e4730b6355264f02b9cfd08bb7 | [
"MIT"
] | null | null | null | ps6/test.cpp | Siroibma/Comp4 | d873928924d641e4730b6355264f02b9cfd08bb7 | [
"MIT"
] | null | null | null | /* Copyright 2020 Ambioris Lora */
#define BOOST_TEST_MODULE BigT
#define BOOST_TEST_DYN_LINK
#include <boost/test/included/unit_test.hpp>
#include "/home/osboxes/ps6/MModel.h"
#include <iostream>
#include <string>
BOOST_AUTO_TEST_CASE(TEST_UNO) {
BOOST_CHECK_NO_THROW(MModel a("abc", 1));
MModel a("abc",2);
BOOS... | 21.975 | 44 | 0.697383 | Siroibma |
c1f9cb7df21f191c33b2b05c900e1f329f85d2b8 | 2,059 | cpp | C++ | 2.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 2.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | 2.cpp | Sherryhaha/LeetCode | 128e344575f8e745b28ff88e6c443b18281ffdc9 | [
"MIT"
] | null | null | null | //
// Created by sunguoyan on 2017/2/21.
//
#include "LeetCode.h"
//******************************************
// 每个链表以倒序的方式存放一个n位整数,求两个链表的和,以链表形式展现
//******************************************
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
Li... | 21.010204 | 53 | 0.42205 | Sherryhaha |
de03726714c00ca56f3ae49a22264128218867a4 | 2,967 | cpp | C++ | algorithms/tree/visit_tree.cpp | weidonglian/cpp-playground | a7bf348093e4f87ed7aaf970c1d8787671a1ae5f | [
"MIT"
] | 2 | 2019-08-18T19:13:10.000Z | 2020-05-08T11:51:49.000Z | algorithms/tree/visit_tree.cpp | weidonglian/cpp-playground | a7bf348093e4f87ed7aaf970c1d8787671a1ae5f | [
"MIT"
] | null | null | null | algorithms/tree/visit_tree.cpp | weidonglian/cpp-playground | a7bf348093e4f87ed7aaf970c1d8787671a1ae5f | [
"MIT"
] | null | null | null | #include <iostream>
#include "base.hpp"
namespace {
class vt_node {
public:
vt_node(std::string name) : name_(std::move(name)), left_(nullptr), right_(nullptr) {}
~vt_node() {
delete left_;
delete right_;
}
void set_left(vt_node* left) {
delete left_;
left_ = left;
}
vt_node* left() co... | 21.5 | 88 | 0.555106 | weidonglian |
de066d1409095c59caabdf0be4a5084f9166af32 | 1,602 | c++ | C++ | 27.12_shortest_distance_between2_nodes.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 27.12_shortest_distance_between2_nodes.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | 27.12_shortest_distance_between2_nodes.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
struct Node{
int data;
Node * left, *right;
Node(int val){
data = val;
left = NULL;
right = NULL;
}
};
Node * LCA(Node *root , int n1, int n2){
if(root == NULL){
return NULL;
}
if(root->data == n1 || r... | 18.204545 | 48 | 0.445693 | Sambitcr-7 |
de06c1169936f8c2a438f34b1b6f624a03155f51 | 1,197 | cpp | C++ | src/espbot/espbot_cfgfile.cpp | quackmore/espbot | 05c42617988bbcccdd3430e04e631755fb4f1ae3 | [
"Beerware"
] | null | null | null | src/espbot/espbot_cfgfile.cpp | quackmore/espbot | 05c42617988bbcccdd3430e04e631755fb4f1ae3 | [
"Beerware"
] | null | null | null | src/espbot/espbot_cfgfile.cpp | quackmore/espbot | 05c42617988bbcccdd3430e04e631755fb4f1ae3 | [
"Beerware"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <quackmore-ff@yahoo.com> wrote this file. As long as you retain this notice
* you can do whatever you want with this stuff. If we meet some day, and you
* think this stuff is worth it, you... | 27.204545 | 79 | 0.579783 | quackmore |
de06d20d48adc438f867ddf7ba1d4a20036049b0 | 928 | cpp | C++ | VGP332/FinalProject/Hive.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | 1 | 2021-04-23T19:18:12.000Z | 2021-04-23T19:18:12.000Z | VGP332/FinalProject/Hive.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | null | null | null | VGP332/FinalProject/Hive.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | 1 | 2021-06-15T10:42:08.000Z | 2021-06-15T10:42:08.000Z | #include <XEngine.h>
#include "Hive.h"
using namespace FinalProject;
void Hive::Initialize(AI::AIWorld& world)
{
position = { static_cast<float>(X::GetScreenWidth()), static_cast<float>(X::GetScreenHeight()) };
for (size_t i = 0; i < maxInterceptor; ++i)
{
auto interceptor = mInterceptorList.emplace_... | 24.421053 | 158 | 0.649784 | CyroPCJr |
9009f4e1c5f5f98d5a09cc8655eea25e2fa6a6e0 | 332 | hpp | C++ | include/Jam/TrippingState.hpp | DrJonki/Kajak-Games-Back-to-School-Jam-2017 | 470a6f3c203c4b7fbd4dc46caf5a01bc9cf305dd | [
"MIT"
] | null | null | null | include/Jam/TrippingState.hpp | DrJonki/Kajak-Games-Back-to-School-Jam-2017 | 470a6f3c203c4b7fbd4dc46caf5a01bc9cf305dd | [
"MIT"
] | null | null | null | include/Jam/TrippingState.hpp | DrJonki/Kajak-Games-Back-to-School-Jam-2017 | 470a6f3c203c4b7fbd4dc46caf5a01bc9cf305dd | [
"MIT"
] | null | null | null | #pragma once
namespace jam
{
class TrippingState
{
public:
TrippingState();
void reset();
void update(const float dt);
void incrementIntensity(const float incr);
float getIntensity() const;
float getIntensityTarget() const;
private:
float m_intensity;
float m_targetInten... | 12.769231 | 46 | 0.665663 | DrJonki |
9011219d550c9f72fc98c833779d48b045bf63cc | 415 | cpp | C++ | HALLibTest/OutputTests/OutputTest.cpp | GerdHirsch/HALLib | dd14ef56cb8dfe98c296ddf2f49412fdd7a3fb4c | [
"MIT"
] | 1 | 2021-01-22T19:16:41.000Z | 2021-01-22T19:16:41.000Z | HALLibTest/OutputTests/OutputTest.cpp | GerdHirsch/HALLib | dd14ef56cb8dfe98c296ddf2f49412fdd7a3fb4c | [
"MIT"
] | null | null | null | HALLibTest/OutputTests/OutputTest.cpp | GerdHirsch/HALLib | dd14ef56cb8dfe98c296ddf2f49412fdd7a3fb4c | [
"MIT"
] | null | null | null | #include "OutputTest.h"
#include <LPC214x/Doc/CreateDoc.h>
#include <LPC213x/Doc/CreateDoc.h>
//CPPUNIT_TEST_SUITE_REGISTRATION (OutputTest);
using namespace Generator;
void OutputTest::CreateLPC21xxContextDoc(){
LPC214x::createContextDoc();
//LPC213x::createContextDoc();
}
void OutputTest::CreateLPC21... | 24.411765 | 48 | 0.749398 | GerdHirsch |
901193318fb486186ad8be9d8b2cac9e0d6459f9 | 1,969 | cpp | C++ | Alhythm/src/Game_Util_Functions.cpp | Nao-Shirotsu/Siv3D_Alhythm | d602832e535831a07d0e7c3fb589caa5d356aaf2 | [
"MIT"
] | 4 | 2018-12-19T12:36:42.000Z | 2021-05-24T06:13:33.000Z | Alhythm/src/Game_Util_Functions.cpp | Nao-Shirotsu/Siv3D_Alhythm | d602832e535831a07d0e7c3fb589caa5d356aaf2 | [
"MIT"
] | 1 | 2019-01-07T03:04:11.000Z | 2019-01-07T03:04:11.000Z | Alhythm/src/Game_Util_Functions.cpp | Nao-Shirotsu/Siv3D_Alhythm | d602832e535831a07d0e7c3fb589caa5d356aaf2 | [
"MIT"
] | 2 | 2020-04-15T06:15:51.000Z | 2021-12-16T02:22:12.000Z | #include "Game_Util_Functions.h"
bool Game::Util::LaneKeyClicked( wchar_t keycode ){
if( s3d::IsAlnum( keycode ) ){
return s3d::Key( keycode ).clicked;
}
else if( keycode == L';' ){
return s3d::Input::KeySemicolon.clicked;
}
return false;
}
bool Game::Util::LaneKeyPressed( wchar_t keycode ){
i... | 22.895349 | 81 | 0.631285 | Nao-Shirotsu |
901fd7ac50da624125e30061b3ebedd53f50b862 | 3,501 | cpp | C++ | soccer/src/soccer/planning/primitives/rrt_util.cpp | xiaoqingyu0113/robocup-software | 6127d25fc455051ef47610d0e421b2ca7330b4fa | [
"Apache-2.0"
] | 200 | 2015-01-26T01:45:34.000Z | 2022-03-19T13:05:31.000Z | soccer/src/soccer/planning/primitives/rrt_util.cpp | xiaoqingyu0113/robocup-software | 6127d25fc455051ef47610d0e421b2ca7330b4fa | [
"Apache-2.0"
] | 1,254 | 2015-01-03T01:57:35.000Z | 2022-03-16T06:32:21.000Z | soccer/src/soccer/planning/primitives/rrt_util.cpp | xiaoqingyu0113/robocup-software | 6127d25fc455051ef47610d0e421b2ca7330b4fa | [
"Apache-2.0"
] | 206 | 2015-01-21T02:03:18.000Z | 2022-02-01T17:57:46.000Z | #include "rrt_util.hpp"
#include <array>
#include <rrt/planning/Path.hpp>
#include "debug_drawer.hpp"
#include "path_smoothing.hpp"
#include "planning/instant.hpp"
#include "planning/motion_constraints.hpp"
#include "planning/planning_params.hpp"
#include "planning/trajectory.hpp"
#include "planning/trajectory_utils... | 36.852632 | 97 | 0.647244 | xiaoqingyu0113 |
90204ee925122d632a0afd6a8f1ac0cb3ee0194f | 3,656 | cpp | C++ | Tests/Source/Benchmarks/DataExpression.cpp | Fortahr/RmlUi | 7123e8680a90cff5cc6c089ab91533f35201f888 | [
"MIT"
] | null | null | null | Tests/Source/Benchmarks/DataExpression.cpp | Fortahr/RmlUi | 7123e8680a90cff5cc6c089ab91533f35201f888 | [
"MIT"
] | null | null | null | Tests/Source/Benchmarks/DataExpression.cpp | Fortahr/RmlUi | 7123e8680a90cff5cc6c089ab91533f35201f888 | [
"MIT"
] | null | null | null | /*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... | 28.787402 | 106 | 0.72046 | Fortahr |
9025682ee676b0dddb05fa0bab14e7bc958dfc60 | 5,116 | cpp | C++ | tpcc_silo/log.cpp | masa16/ccbench | c4b67dfd025775bba87785b44fa7fd43fbb90055 | [
"Apache-2.0"
] | 30 | 2019-03-20T07:23:53.000Z | 2022-02-01T01:00:02.000Z | tpcc_silo/log.cpp | masa16/ccbench | c4b67dfd025775bba87785b44fa7fd43fbb90055 | [
"Apache-2.0"
] | 8 | 2019-06-06T04:24:16.000Z | 2021-12-10T05:55:35.000Z | tpcc_silo/log.cpp | masa16/ccbench | c4b67dfd025775bba87785b44fa7fd43fbb90055 | [
"Apache-2.0"
] | 10 | 2019-07-21T15:24:19.000Z | 2022-03-15T02:07:23.000Z | /**
* @file log.cpp
* @brief implement about log
*/
#include "log.h"
namespace ccbench {
void Log::LogHeader::init() {
checksum_ = 0;
log_rec_num_ = 0;
}
void Log::LogHeader::compute_two_complement_of_checksum() {
checksum_ ^= mask_full_bits_uint;
++checksum_;
}
unsigned int Log::LogHeader::get_checksum... | 28.10989 | 110 | 0.581509 | masa16 |
90273de13690f908de9d4531de691c9ccfb03e4b | 7,829 | cpp | C++ | src/script/format/pcodereader.cpp | seedhartha/revan | b9a98007ca2f510b42894ecd09fb623571b433dc | [
"MIT"
] | 37 | 2020-06-27T18:50:48.000Z | 2020-08-02T14:13:51.000Z | src/script/format/pcodereader.cpp | seedhartha/revan | b9a98007ca2f510b42894ecd09fb623571b433dc | [
"MIT"
] | null | null | null | src/script/format/pcodereader.cpp | seedhartha/revan | b9a98007ca2f510b42894ecd09fb623571b433dc | [
"MIT"
] | 1 | 2020-07-14T13:32:15.000Z | 2020-07-14T13:32:15.000Z | /*
* Copyright (c) 2020-2022 The reone project contributors
*
* 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 3 of the License, or
* (at your option) any later version.
*
... | 32.218107 | 144 | 0.596117 | seedhartha |
902a33402d253b260a899b57f5b65b6744ea077d | 6,699 | hpp | C++ | include/inet/Wifi.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | include/inet/Wifi.hpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | include/inet/Wifi.hpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | #ifndef SAPI_INET_WIFI_HPP
#define SAPI_INET_WIFI_HPP
#if !defined __link
#include <sos/api/wifi_api.h>
#include "../api/InetObject.hpp"
#include "../chrono/MicroTime.hpp"
#include "../chrono/Timer.hpp"
#include "../var/String.hpp"
#include "IpAddress.hpp"
namespace inet {
typedef api::Api<wifi_api_t, WIFI_API_REQ... | 20.804348 | 100 | 0.730706 | bander9289 |
9033a69c5ed0824d6b4c3858dd6c86671fa04978 | 7,002 | cpp | C++ | Sources/Extras/CoreAudio/PublicUtility/CACFPreferences.cpp | nnanhthu/QuickomVC | 6d4641336dd5d515238c94feb8f6a025fc8d181b | [
"MIT"
] | 170 | 2018-11-28T10:20:54.000Z | 2022-03-29T01:54:43.000Z | Sources/Extras/CoreAudio/PublicUtility/CACFPreferences.cpp | nnanhthu/QuickcomVirtualCamera | 4eba93196549a9ad8ee63fb5a741586098e9ca5b | [
"MIT"
] | 19 | 2018-12-03T15:06:54.000Z | 2022-02-11T00:02:59.000Z | Sources/Extras/CoreAudio/PublicUtility/CACFPreferences.cpp | nnanhthu/QuickcomVirtualCamera | 4eba93196549a9ad8ee63fb5a741586098e9ca5b | [
"MIT"
] | 25 | 2018-11-29T02:15:09.000Z | 2021-12-28T20:56:35.000Z | /*
File: CACFPreferences.cpp
Abstract: CACFPreferences.h
Version: 1.1
*/
//==================================================================================================
// Includes
//==================================================================================================
// Self Include
#includ... | 28.233871 | 136 | 0.730077 | nnanhthu |
90360eb0e4659093a61b4cb444e2d5c798badec6 | 1,972 | cpp | C++ | Problem-Solving/03_compare_the_triplets.cpp | vkramer/HackerRank-Solutions | 5f7b61402e438f6a9bcfa680a668c28ece4772d2 | [
"MIT"
] | null | null | null | Problem-Solving/03_compare_the_triplets.cpp | vkramer/HackerRank-Solutions | 5f7b61402e438f6a9bcfa680a668c28ece4772d2 | [
"MIT"
] | null | null | null | Problem-Solving/03_compare_the_triplets.cpp | vkramer/HackerRank-Solutions | 5f7b61402e438f6a9bcfa680a668c28ece4772d2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
/*
Alice and Bob each created one problem for HackerRank. A reviewer rates the two challenges, awarding points on a scale from to for three categories: problem clarity, originality, and difficulty.
We define the rating for Alice's challenge to be the triplet A = (a[0],a[1],a[2]), and the r... | 27.013699 | 196 | 0.632353 | vkramer |
90368d9c76bdadfb78283fb8f597a0f5b5f7ac26 | 2,329 | cpp | C++ | libcaf_core/src/detail/pretty_type_name.cpp | niclasr/actor-framework | 5cde8506dfd0c85aeee5fb43e54cb8ddc26a94ac | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/src/detail/pretty_type_name.cpp | niclasr/actor-framework | 5cde8506dfd0c85aeee5fb43e54cb8ddc26a94ac | [
"BSD-3-Clause"
] | null | null | null | libcaf_core/src/detail/pretty_type_name.cpp | niclasr/actor-framework | 5cde8506dfd0c85aeee5fb43e54cb8ddc26a94ac | [
"BSD-3-Clause"
] | null | null | null | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#include "caf/detail/pretty_type_name.hpp"
#include "caf/config.hpp"
#if defined(CAF_LIN... | 33.753623 | 78 | 0.694289 | niclasr |
9038138cd807fe1335ec21b808c528c8814df0e1 | 5,075 | hh | C++ | CommLocalizationObjects/smartsoft/src-gen/CommLocalizationObjects/CommBeaconLocalizationRawDataCore.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | null | null | null | CommLocalizationObjects/smartsoft/src-gen/CommLocalizationObjects/CommBeaconLocalizationRawDataCore.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 2 | 2020-08-20T14:49:47.000Z | 2020-10-07T16:10:07.000Z | CommLocalizationObjects/smartsoft/src-gen/CommLocalizationObjects/CommBeaconLocalizationRawDataCore.hh | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 8 | 2018-06-25T08:41:28.000Z | 2020-08-13T10:39:30.000Z | //--------------------------------------------------------------------------
// Code generated by the SmartSoft MDSD Toolchain
// The SmartSoft Toolchain has been developed by:
//
// Service Robotics Research Center
// University of Applied Sciences Ulm
// Prittwitzstr. 10
// 89075 Ulm (Germany)
//
// Information abo... | 44.517544 | 186 | 0.785419 | canonical-robots |
90387080e506a9b5fdb417868bf67d8f5cb4fc84 | 3,566 | cpp | C++ | bindings/python/src/OpenSpaceToolkitMathematicsPy/Geometry/3D/Objects/Cone.cpp | open-space-collective/library-mathematics | fdb4769a56a8fe35ffefb01a79c03cfca1f91958 | [
"Apache-2.0"
] | 5 | 2018-08-20T06:47:24.000Z | 2019-07-15T03:36:52.000Z | bindings/python/src/OpenSpaceToolkitMathematicsPy/Geometry/3D/Objects/Cone.cpp | open-space-collective/open-space-toolkit-mathematics | 4b97f97f4aaa87bff848381a3519c6f764461378 | [
"Apache-2.0"
] | 6 | 2020-01-05T20:18:18.000Z | 2021-10-14T09:36:44.000Z | bindings/python/src/OpenSpaceToolkitMathematicsPy/Geometry/3D/Objects/Cone.cpp | open-space-collective/open-space-toolkit-mathematics | 4b97f97f4aaa87bff848381a3519c6f764461378 | [
"Apache-2.0"
] | 2 | 2020-03-05T18:18:13.000Z | 2020-04-07T17:42:24.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ Mathematics
/// @file bindings/python/src/OpenSpaceToolkitMathematicsPy/Geometry/3D/Objects/Cone.cpp
/// @a... | 53.223881 | 255 | 0.544307 | open-space-collective |
903ba76e06cb434598d82a29a3f759db4b53dbf5 | 725 | cc | C++ | sdk/src/metrics/meter_provider.cc | sfc-gh-jallie/opentelemetry-cpp | c3f3236daf8d941da721f51e26c2d19e22f26635 | [
"Apache-2.0"
] | 284 | 2019-06-23T20:29:08.000Z | 2022-03-31T09:47:41.000Z | sdk/src/metrics/meter_provider.cc | sfc-gh-jallie/opentelemetry-cpp | c3f3236daf8d941da721f51e26c2d19e22f26635 | [
"Apache-2.0"
] | 1,183 | 2019-08-15T18:31:50.000Z | 2022-03-31T23:31:51.000Z | sdk/src/metrics/meter_provider.cc | sfc-gh-jallie/opentelemetry-cpp | c3f3236daf8d941da721f51e26c2d19e22f26635 | [
"Apache-2.0"
] | 185 | 2019-09-20T04:10:38.000Z | 2022-03-26T00:04:41.000Z | // Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
#ifdef ENABLE_METRICS_PREVIEW
# include "opentelemetry/sdk/metrics/meter_provider.h"
OPENTELEMETRY_BEGIN_NAMESPACE
namespace sdk
{
namespace metrics
{
MeterProvider::MeterProvider(std::string library_name, std::string library_version) noex... | 26.851852 | 92 | 0.794483 | sfc-gh-jallie |
903d55a5baaae68e5b165e763b3df96c15919a16 | 323 | cpp | C++ | src/main.cpp | Hello56721/random-opengl-project | 20cb1ae49132cf5787437ce1fd83e3144939c9ad | [
"MIT"
] | null | null | null | src/main.cpp | Hello56721/random-opengl-project | 20cb1ae49132cf5787437ce1fd83e3144939c9ad | [
"MIT"
] | null | null | null | src/main.cpp | Hello56721/random-opengl-project | 20cb1ae49132cf5787437ce1fd83e3144939c9ad | [
"MIT"
] | null | null | null | #include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <opengl-debug.hpp>
#include <window.hpp>
#include <program.hpp>
// And of course, the main function
int main() {
Program program;
while (!glfwWindowShouldClose(Window::window)) {
program.update();
}
return 0... | 17 | 52 | 0.640867 | Hello56721 |
90445022c5d6975e4c7ca650e72257f4c8fad7b2 | 913 | cpp | C++ | 00006_zigzag-conversion/191004-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 6 | 2019-10-23T01:07:29.000Z | 2021-12-05T01:51:16.000Z | 00006_zigzag-conversion/191004-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | null | null | null | 00006_zigzag-conversion/191004-1.cpp | yanlinlin82/leetcode | ddcc0b9606d951cff9c08d1f7dfbc202067c8d65 | [
"MIT"
] | 1 | 2021-12-03T06:54:57.000Z | 2021-12-03T06:54:57.000Z | // https://leetcode-cn.com/problems/zigzag-conversion/
#include <string>
using namespace std;
class Solution {
public:
string convert(string s, int numRows) {
if (numRows <= 1) return s;
const char* p = s.c_str();
int n = s.size();
int step = (numRows - 1) * 2;
string r;
r.resize(n);
int t = 0;
for (i... | 24.675676 | 88 | 0.553122 | yanlinlin82 |
90486964ebe3219d3dbd2e33cecd3bdce332af76 | 355 | cc | C++ | cores/pico/picorv32/demo/src/decode_riscv_XORI.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | 1 | 2020-05-30T17:34:03.000Z | 2020-05-30T17:34:03.000Z | cores/pico/picorv32/demo/src/decode_riscv_XORI.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | null | null | null | cores/pico/picorv32/demo/src/decode_riscv_XORI.cc | yuex1994/iw_imdb | 946ce12d1b28075bfc513b2baf0f30601d36558c | [
"MIT"
] | 1 | 2020-02-26T03:35:51.000Z | 2020-02-26T03:35:51.000Z | #include "riscv.h"
bool riscv::decode_riscv_XORI() {
if (!1) {
return false;
}
uint7_t tmp_15 = 0 - 1;
c_15 = static_cast<uint7_t> ((riscv_inst >> 0) & tmp_15);
c_5613 = c_15 == 19;
uint3_t tmp_23 = 0 - 1;
c_23 = static_cast<uint3_t> ((riscv_inst >> 12) & tmp_23);
c_5609 = c_23 == 4;
c_5615 = (c_5... | 23.666667 | 60 | 0.605634 | yuex1994 |
904e501349f30392f5e29aa8ea7ad3d65bfc9114 | 8,173 | cpp | C++ | src/ripple/protocol/impl/TxFormats.cpp | tlongwell-ripple/rippled | 4e3dc0e820aa5bcf187ebe1b5d4471932845cc89 | [
"BSL-1.0"
] | 3 | 2020-04-22T10:43:31.000Z | 2020-04-22T10:43:35.000Z | src/ripple/protocol/impl/TxFormats.cpp | tlongwell-ripple/rippled | 4e3dc0e820aa5bcf187ebe1b5d4471932845cc89 | [
"BSL-1.0"
] | 10 | 2020-02-03T14:00:08.000Z | 2020-04-23T17:29:21.000Z | src/ripple/protocol/impl/TxFormats.cpp | tlongwell-ripple/rippled | 4e3dc0e820aa5bcf187ebe1b5d4471932845cc89 | [
"BSL-1.0"
] | 3 | 2020-04-08T15:35:27.000Z | 2021-06-17T15:39:01.000Z | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | 33.633745 | 80 | 0.497002 | tlongwell-ripple |
904f2f402ba0e71c87448b98e6f074bcde1e5edb | 12,076 | cpp | C++ | 02.TestsFirst/11.ThreadingIsOrthogonal/Test/CallbackTimerQueueTest.cpp | XoDeR/CppTdd | dd06f234b121965a6144be6d82d8aedd067d9caa | [
"MIT"
] | null | null | null | 02.TestsFirst/11.ThreadingIsOrthogonal/Test/CallbackTimerQueueTest.cpp | XoDeR/CppTdd | dd06f234b121965a6144be6d82d8aedd067d9caa | [
"MIT"
] | null | null | null | 02.TestsFirst/11.ThreadingIsOrthogonal/Test/CallbackTimerQueueTest.cpp | XoDeR/CppTdd | dd06f234b121965a6144be6d82d8aedd067d9caa | [
"MIT"
] | null | null | null | #include "CallbackTimerQueueTest.h"
#include "../../Tools/CallbackTimerQueue.h"
#include "../Mock/MockTickCountProvider.h"
#include "../Mock/LoggingCallbackTimer.h"
#include "../../Tools/Utils.h"
#include "../../TestTools/TestException.h"
using AmstelTech::Test::CTestException;
using AmstelTech::Win32::Output;
us... | 26.082073 | 133 | 0.704538 | XoDeR |
90507d81e9fb35af0688e947975a9a278a1e7624 | 582 | cpp | C++ | Cpp/Maths/Fibonacci number.cpp | akshat-6397/hacktoberfest2021-easy | 4e71ab3cfc5e5514d81ca3eaacd8c6e2483cb703 | [
"MIT"
] | 15 | 2021-10-05T08:12:12.000Z | 2021-10-20T07:54:23.000Z | Cpp/Maths/Fibonacci number.cpp | akshat-6397/hacktoberfest2021-easy | 4e71ab3cfc5e5514d81ca3eaacd8c6e2483cb703 | [
"MIT"
] | 18 | 2021-10-05T08:09:12.000Z | 2021-10-20T07:47:43.000Z | Cpp/Maths/Fibonacci number.cpp | akshat-6397/hacktoberfest2021-easy | 4e71ab3cfc5e5514d81ca3eaacd8c6e2483cb703 | [
"MIT"
] | 54 | 2021-10-05T07:49:59.000Z | 2021-12-07T17:18:07.000Z | #include <iostream>
using namespace std;
int fibonacci(int n)
{
if (n <= 0)
{
return 0;
}
else if (n == 1)
{
return 1;
}
else
{
return fibonacci(n - 1) + fibonacci(n - 2);
}
}
int main()
{
int n;
do
{
cout << "Enter the number that you wa... | 16.166667 | 90 | 0.453608 | akshat-6397 |
9051b6d4f6e93a540fcac6d8da28175be7d59935 | 8,165 | cpp | C++ | src/cursor.cpp | klei1984/max | dc0f9108bbcfd4cb73ea101883d551c612097469 | [
"MIT"
] | 19 | 2020-02-06T17:41:39.000Z | 2022-03-31T07:38:15.000Z | src/cursor.cpp | klei1984/max | dc0f9108bbcfd4cb73ea101883d551c612097469 | [
"MIT"
] | 9 | 2020-02-14T15:46:46.000Z | 2021-12-22T16:35:53.000Z | src/cursor.cpp | klei1984/max | dc0f9108bbcfd4cb73ea101883d551c612097469 | [
"MIT"
] | null | null | null | /* Copyright (c) 2021 M.A.X. Port Team
*
* 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, ... | 45.870787 | 121 | 0.655848 | klei1984 |
9057f732b231e8ec49e72f4b6de96df300dcf1fd | 1,851 | cpp | C++ | enzyme/test/Integration/ReverseMode/wcout.cpp | aneax/Enzyme | e9084808993c94661f33ec29955499b51a8ada03 | [
"Apache-2.0"
] | 31 | 2022-02-06T21:35:47.000Z | 2022-03-28T16:27:50.000Z | enzyme/test/Integration/ReverseMode/wcout.cpp | aneax/Enzyme | e9084808993c94661f33ec29955499b51a8ada03 | [
"Apache-2.0"
] | 47 | 2022-02-06T19:30:30.000Z | 2022-03-25T15:56:25.000Z | enzyme/test/Integration/ReverseMode/wcout.cpp | aneax/Enzyme | e9084808993c94661f33ec29955499b51a8ada03 | [
"Apache-2.0"
] | 3 | 2022-03-13T13:23:25.000Z | 2022-03-16T09:46:55.000Z | // RUN: %clang++ -std=c++11 -fno-exceptions -ffast-math -O0 %s -S -emit-llvm -o - | %opt - %loadEnzyme -enzyme -S
// RUN: %clang++ -std=c++11 -fno-exceptions -ffast-math -O1 %s -S -emit-llvm -o - | %opt - %loadEnzyme -enzyme -S
// RUN: %clang++ -std=c++11 -fno-exceptions -ffast-math -O2 %s -S -emit-llvm -o - | %opt - %... | 39.382979 | 130 | 0.615883 | aneax |
905c64a3ded3becd903d39999c1c5b3e609a332b | 293 | cpp | C++ | 3D_Demo/source/main.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 2 | 2016-04-01T21:10:33.000Z | 2018-02-26T19:36:56.000Z | 3D_Demo/source/main.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | 1 | 2017-04-05T01:33:08.000Z | 2017-04-05T01:33:08.000Z | 3D_Demo/source/main.cpp | subr3v/s-engine | d77b9ccd0fff3982a303f14ce809691a570f61a3 | [
"MIT"
] | null | null | null | #include "SEngine.hpp"
#include "SponzaScene.h"
// Entry point. The program start here
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int nCmdShow)
{
SEngine::Init(hInstance, nCmdShow);
SEngine::Run(new FSponzaScene());
SEngine::Shutdown();
return 0;
}
| 24.416667 | 95 | 0.750853 | subr3v |
905d24abc8ead88a8786bc479e86b02b966a48d6 | 4,345 | cpp | C++ | data-manager/tests/server/performanceServer/performanceServer.integ.cpp | Saafke/4dm | 68e235164afb1f127def35e9c15ca883ec1426d4 | [
"MIT"
] | 8 | 2021-03-16T06:48:57.000Z | 2021-11-30T09:34:09.000Z | data-manager/tests/server/performanceServer/performanceServer.integ.cpp | Saafke/4dm | 68e235164afb1f127def35e9c15ca883ec1426d4 | [
"MIT"
] | null | null | null | data-manager/tests/server/performanceServer/performanceServer.integ.cpp | Saafke/4dm | 68e235164afb1f127def35e9c15ca883ec1426d4 | [
"MIT"
] | 3 | 2021-05-02T15:38:17.000Z | 2021-07-07T09:19:48.000Z | #include "gtest/gtest.h"
#include <stdio.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include "boost/chrono.hpp"
#include "boost/thread/thread.hpp"
#include "src/server/performanceServer/PerformanceMeasureTCPServer.hpp"
#defi... | 30.598592 | 115 | 0.673188 | Saafke |
905e24bce343fff3f57214c777308b5ddbada387 | 2,767 | cpp | C++ | tests/src/texture/hipBindTex2DPitch.cpp | jiabaxie/HIP | 8de49ec202472b95612661aa7db940388b2bc3a9 | [
"MIT"
] | null | null | null | tests/src/texture/hipBindTex2DPitch.cpp | jiabaxie/HIP | 8de49ec202472b95612661aa7db940388b2bc3a9 | [
"MIT"
] | null | null | null | tests/src/texture/hipBindTex2DPitch.cpp | jiabaxie/HIP | 8de49ec202472b95612661aa7db940388b2bc3a9 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
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... | 35.935065 | 91 | 0.70618 | jiabaxie |
90632fcb695a0f6bf8e1c6d00f52654f9cd84a11 | 17,413 | cpp | C++ | MIC/CoMCAISO/MCAXYCtrl.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | MIC/CoMCAISO/MCAXYCtrl.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | 1 | 2017-09-14T15:23:39.000Z | 2017-09-14T15:23:39.000Z | MIC/CoMCAISO/MCAXYCtrl.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | /*
This work was supported by the United States Member State Support Program to IAEA Safeguards;
the U.S. Department of Energy, Office of Nonproliferation and National Security, International
Safeguards Division; and the U.S. Department of Energy, Office of Safeguards and Security.
LA-CC-14-089. This software was... | 28.085484 | 109 | 0.685407 | hnordquist |
90662a28a0b2e089477e8005ce526dc0a3963cb4 | 10,087 | cpp | C++ | modules/base/rendering/modelgeometry.cpp | nbartzokas/OpenSpace | 9df1e9b4821fade185b6e0a31b7cce1e67752a44 | [
"MIT"
] | null | null | null | modules/base/rendering/modelgeometry.cpp | nbartzokas/OpenSpace | 9df1e9b4821fade185b6e0a31b7cce1e67752a44 | [
"MIT"
] | null | null | null | modules/base/rendering/modelgeometry.cpp | nbartzokas/OpenSpace | 9df1e9b4821fade185b6e0a31b7cce1e67752a44 | [
"MIT"
] | null | null | null | /*****************************************************************************************
* *
* OpenSpace *
* ... | 33.400662 | 90 | 0.574304 | nbartzokas |
9066b0b5e75931943dad87cbfc560eb94aba8908 | 2,792 | inl | C++ | Engine/Src/SFCore/Util/SFUtility.inl | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFCore/Util/SFUtility.inl | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFCore/Util/SFUtility.inl | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) 2013 Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : Utility library
//
//
////////////////////////////////////////////////////////////////////////////////
///////////////////////////////... | 21.476923 | 101 | 0.581304 | blue3k |
9066c0f9aef07ac7e08a5c0cd884a95563f99a62 | 842 | cpp | C++ | chapter6/exercises/Exist_Path.cpp | verfallen/wang-dao | ac25e16010f675fa3cee9fe07de394d111ff61f5 | [
"MIT"
] | null | null | null | chapter6/exercises/Exist_Path.cpp | verfallen/wang-dao | ac25e16010f675fa3cee9fe07de394d111ff61f5 | [
"MIT"
] | null | null | null | chapter6/exercises/Exist_Path.cpp | verfallen/wang-dao | ac25e16010f675fa3cee9fe07de394d111ff61f5 | [
"MIT"
] | null | null | null | #include "../Graph.h"
#include "../../chapter3/Queue/LinkQueueWithHead.h"
//查找以邻接表方式存储的有向图中是否存在i到j的路径
//深度优先写法
bool visited[MaxVertexNum] = {false};
bool Exist_Path_DFS(ALGraph G, int i, int j)
{
int p;
if (i == j)
return true;
visited[i] = true;
for (p = FirstNeighbor(G, i); p >= 0; p = NextNeighbor(G,... | 17.914894 | 72 | 0.571259 | verfallen |
9069acd02cd9d8a9010729e5f96d14d8231b61b1 | 326 | cpp | C++ | middleofthree.cpp | nsriramya/OWL-Coder | 8f5ebb05c41d66a726fc8b26fa2374671882d723 | [
"Apache-2.0"
] | null | null | null | middleofthree.cpp | nsriramya/OWL-Coder | 8f5ebb05c41d66a726fc8b26fa2374671882d723 | [
"Apache-2.0"
] | null | null | null | middleofthree.cpp | nsriramya/OWL-Coder | 8f5ebb05c41d66a726fc8b26fa2374671882d723 | [
"Apache-2.0"
] | null | null | null |
class Solution{
public:
int middle(int a, int b, int c){
if(a>b and a>c)
{
return max(b,c);
}
else if(b>a and b>c)
{
return max(a,c);
}
else return max(a,b);
//code here//Position this line where user code will be pasted.
... | 19.176471 | 71 | 0.453988 | nsriramya |
906a634aeb8ff092991264ace9f360958188a652 | 7,903 | cpp | C++ | util/tests/test_util_ip.cpp | b1v1r/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 148 | 2015-01-10T01:53:39.000Z | 2022-03-20T20:48:12.000Z | util/tests/test_util_ip.cpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 8 | 2015-03-09T15:50:36.000Z | 2020-10-10T19:23:06.000Z | util/tests/test_util_ip.cpp | ErikHendriks/ironbee | 97b453afd9c3dc70342c6183a875bde22c9c4a76 | [
"Apache-2.0"
] | 46 | 2015-03-08T22:45:42.000Z | 2022-01-15T13:47:59.000Z | //////////////////////////////////////////////////////////////////////////////
// Licensed to Qualys, Inc. (QUALYS) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// QUALYS licenses this file to You under ... | 26.880952 | 82 | 0.574592 | b1v1r |
906bc298df877de4c9206c767496bb86564555d5 | 3,348 | hpp | C++ | modules/core/container/table/include/nt2/core/functions/scalar/construct.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/container/table/include/nt2/core/functions/scalar/construct.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/container/table/include/nt2/core/functions/scalar/construct.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2011 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2011 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 38.930233 | 80 | 0.434289 | psiha |
907c5b3ab110901e254cadff49be699f36040038 | 1,624 | cc | C++ | src/ast/sint_literal_test.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | src/ast/sint_literal_test.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | src/ast/sint_literal_test.cc | dorba/tint | f81c1081ea7d27ea55f373c0bfaf651e491da7e6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The Tint Authors.
//
// 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 ... | 24.606061 | 75 | 0.702586 | dorba |
9080011a26fc33ecaedb1da8d0b1e304aa97550d | 19,151 | cpp | C++ | src/node.cpp | nassimeblinlaas/gepetto-viewer | f47dc13f73c5667c66f1c5273aa0740d62fe9240 | [
"BSD-3-Clause"
] | null | null | null | src/node.cpp | nassimeblinlaas/gepetto-viewer | f47dc13f73c5667c66f1c5273aa0740d62fe9240 | [
"BSD-3-Clause"
] | null | null | null | src/node.cpp | nassimeblinlaas/gepetto-viewer | f47dc13f73c5667c66f1c5273aa0740d62fe9240 | [
"BSD-3-Clause"
] | null | null | null | //
// node.cpp
// gepetto-viewer
//
// Created by Justin Carpentier, Mathieu Geisert in November 2014.
// Copyright (c) 2014 LAAS-CNRS. All rights reserved.
//
#include <gepetto/viewer/node.h>
#include <osg/Material>
#include <osg/LineWidth>
#include <climits>
namespace graphics {
bool Node::firstTime_ = true;... | 42.09011 | 204 | 0.686962 | nassimeblinlaas |
90800d35f85e2c6cbf9a770e5ea0f43661ebe8e4 | 2,996 | cpp | C++ | MyVCR/MySetup/MySetup.cpp | kastaineibum/myvcr | 571613f17cb37ce89b8743d2efc7f80efd140910 | [
"MIT"
] | 1 | 2021-08-11T15:35:35.000Z | 2021-08-11T15:35:35.000Z | MyVCR/MySetup/MySetup.cpp | kevx/myvcr | f5c01442475bb08fac7b92832372ec23ca4eec2d | [
"MIT"
] | null | null | null | MyVCR/MySetup/MySetup.cpp | kevx/myvcr | f5c01442475bb08fac7b92832372ec23ca4eec2d | [
"MIT"
] | 1 | 2021-08-05T08:15:16.000Z | 2021-08-05T08:15:16.000Z | // Setup.cpp : Defines the entry point for the application.
//
#include "stdafx.h"
#include "Setup.h"
#define X264_DESC L"x264 H.264 Video Codec"
#define X264_FILE L"x264vfw.dll"
typedef HRESULT (*IDllRegisterServer)(void);
static wchar_t _szPath[MAX_PATH];
static wchar_t _szRascalDll[MAX_PATH];
static... | 25.389831 | 99 | 0.700935 | kastaineibum |
9080fdbee7fc3b4d06dfb3df1690dbe6987b566d | 827 | hpp | C++ | src/main/include/cyng/parser/spirit_support.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | src/main/include/cyng/parser/spirit_support.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | src/main/include/cyng/parser/spirit_support.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Sylko Olzscher
*
*/
#ifndef CYNG_PARSER_SPIRIT_SUPPORT_HPP
#define CYNG_PARSER_SPIRIT_SUPPORT_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include <cyng/io/serializer.h>
#i... | 17.978261 | 56 | 0.623942 | solosTec |
9089f10bbda27d1b884e34b1816157757bb25339 | 4,166 | cpp | C++ | src/random-walking/random_walk.cpp | msanchez-beeckman/tfg-video-segmentation | b0a85df6d7a428abe21c5b6ed131cb047fecd1f6 | [
"BSD-3-Clause"
] | 1 | 2021-06-22T10:29:22.000Z | 2021-06-22T10:29:22.000Z | src/random-walking/random_walk.cpp | msanchez-beeckman/tfg-video-segmentation | b0a85df6d7a428abe21c5b6ed131cb047fecd1f6 | [
"BSD-3-Clause"
] | null | null | null | src/random-walking/random_walk.cpp | msanchez-beeckman/tfg-video-segmentation | b0a85df6d7a428abe21c5b6ed131cb047fecd1f6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020-2021, Marco Sánchez Beeckman
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <chrono>
#include <fstream>
#include <iostream>
#include <unordered_map>
#include <opencv2/c... | 39.67619 | 121 | 0.656745 | msanchez-beeckman |
908c9f3f74b7dbd38f84d2e7b999a6f20ef70b25 | 1,127 | cpp | C++ | src/sequencer.cpp | nounoursheureux/drums | 4de87172d5f2f64c08faabb566b8e4db96761411 | [
"MIT"
] | null | null | null | src/sequencer.cpp | nounoursheureux/drums | 4de87172d5f2f64c08faabb566b8e4db96761411 | [
"MIT"
] | null | null | null | src/sequencer.cpp | nounoursheureux/drums | 4de87172d5f2f64c08faabb566b8e4db96761411 | [
"MIT"
] | null | null | null | #include "sequencer.hpp"
Sequencer::Sequencer(unsigned int tracksNum, double bpm)
{
setBpm(bpm);
latest_time = 0.0;
elapsed_time = 0.0;
current_quarter_beat = 0;
for (unsigned int i = 0; i < 16; i++) {
tracks.at(i).assign(tracksNum, false);
}
}
void Sequencer::set(unsigned int quarterB... | 22.54 | 80 | 0.668146 | nounoursheureux |
909d49450a7a5b486b088f3285a03848a92d06a2 | 9,530 | cpp | C++ | src/game/client/clientsideeffects_test.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/client/clientsideeffects_test.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/client/clientsideeffects_test.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Workfile: $
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "engine/IEngineSound.h"
#include "view.h"
#include "fx_line.h"
#include "f... | 31.245902 | 120 | 0.554774 | cstom4994 |
90a19929f46f94872812d7383340ac30ad7bb27c | 856 | cc | C++ | src/typed-ast/main.cc | brphelps/verona | aa205b94aafcc4b4064cb1d3c5584ad880eafa53 | [
"MIT"
] | null | null | null | src/typed-ast/main.cc | brphelps/verona | aa205b94aafcc4b4064cb1d3c5584ad880eafa53 | [
"MIT"
] | null | null | null | src/typed-ast/main.cc | brphelps/verona | aa205b94aafcc4b4064cb1d3c5584ad880eafa53 | [
"MIT"
] | null | null | null | // Copyright Microsoft and Project Verona Contributors.
// SPDX-License-Identifier: MIT
#include "ast/cli.h"
#include "ast/module.h"
#include "ast/pass.h"
#include "ast/prec.h"
#include "ast/ref.h"
#include "ast/sugar.h"
#include "ast/sym.h"
#include "typed-ast/conversion.h"
#include "typed-ast/print.h"
int main(int a... | 26.75 | 80 | 0.599299 | brphelps |
90a41626cd6a2870684afebfddb507f24fcc45a8 | 15,798 | hpp | C++ | perf/posit_performance.hpp | hypercubestart/universal | a183ae390b5178299a5cbda7b830b7a6cbf332e2 | [
"MIT"
] | 1 | 2021-12-08T06:32:18.000Z | 2021-12-08T06:32:18.000Z | perf/posit_performance.hpp | hypercubestart/universal | a183ae390b5178299a5cbda7b830b7a6cbf332e2 | [
"MIT"
] | null | null | null | perf/posit_performance.hpp | hypercubestart/universal | a183ae390b5178299a5cbda7b830b7a6cbf332e2 | [
"MIT"
] | 1 | 2021-07-02T12:40:39.000Z | 2021-07-02T12:40:39.000Z | #pragma once
// posit_performance.hpp : functions to aid in measuring arithmetic performance of posit types.
// Needs to be included after posit type is declared.
//
// Copyright (C) 2017-2020 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open ... | 30.091429 | 196 | 0.658374 | hypercubestart |
90b2dd72d001c22353d1490049f12cc096e1f42a | 2,378 | cpp | C++ | src/mod/debug/sticky_detonation_order.cpp | sigsegv-mvm/sigsegv-mvm | d98dbafed212b203793ffd5eef34e0cad66cede8 | [
"BSD-2-Clause"
] | 33 | 2016-02-18T04:27:53.000Z | 2022-01-15T18:59:53.000Z | src/mod/debug/sticky_detonation_order.cpp | sigsegv-mvm/sigsegv-mvm | d98dbafed212b203793ffd5eef34e0cad66cede8 | [
"BSD-2-Clause"
] | 5 | 2018-01-10T18:41:38.000Z | 2020-10-01T13:34:53.000Z | src/mod/debug/sticky_detonation_order.cpp | sigsegv-mvm/sigsegv-mvm | d98dbafed212b203793ffd5eef34e0cad66cede8 | [
"BSD-2-Clause"
] | 14 | 2017-08-06T23:02:49.000Z | 2021-08-24T00:24:16.000Z | #include "mod.h"
#include "stub/baseplayer.h"
#include "util/clientmsg.h"
namespace Mod::Debug::Sticky_Detonation_Order
{
int indent = 0;
template<typename... ARGS>
void ClientMsgAllIndent(const char *fmt, ARGS&&... args)
{
size_t fmt2_len = strlen(fmt) + (2 * indent) + 1;
char *fmt2 = new char... | 28.309524 | 119 | 0.698066 | sigsegv-mvm |
ff9876082606c61d696022557835c51206cc6b38 | 3,891 | cpp | C++ | xfa/src/fgas/src/layout/fx_unicode.cpp | f100cleveland/external_pdfium | 12eec9c70519554387f199aa1eef42ed15478d02 | [
"BSD-3-Clause"
] | 1 | 2018-01-12T03:24:59.000Z | 2018-01-12T03:24:59.000Z | xfa/src/fgas/src/layout/fx_unicode.cpp | f100cleveland/external_pdfium | 12eec9c70519554387f199aa1eef42ed15478d02 | [
"BSD-3-Clause"
] | null | null | null | xfa/src/fgas/src/layout/fx_unicode.cpp | f100cleveland/external_pdfium | 12eec9c70519554387f199aa1eef42ed15478d02 | [
"BSD-3-Clause"
] | 1 | 2020-07-30T12:07:00.000Z | 2020-07-30T12:07:00.000Z | // Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/src/fgas/src/fgas_base.h"
#include "fx_unicode.h"
void F... | 32.974576 | 81 | 0.562066 | f100cleveland |
ff98fec67a7d27d3a21360c9bc03d606739c291a | 53,303 | cpp | C++ | gvirtus.cublas/frontend/Cublas_level3.cpp | RapidProjectH2020/GVirtuS | 8c29fac81baba927c516e8af1c0b6a858b80934c | [
"Apache-2.0"
] | 14 | 2016-12-14T11:09:55.000Z | 2019-12-16T08:37:21.000Z | gvirtus.cublas/frontend/Cublas_level3.cpp | RapidProjectH2020/GVirtuS | 8c29fac81baba927c516e8af1c0b6a858b80934c | [
"Apache-2.0"
] | null | null | null | gvirtus.cublas/frontend/Cublas_level3.cpp | RapidProjectH2020/GVirtuS | 8c29fac81baba927c516e8af1c0b6a858b80934c | [
"Apache-2.0"
] | 13 | 2016-05-30T14:44:17.000Z | 2021-03-02T01:51:08.000Z | /*
* gVirtuS -- A GPGPU transparent virtualization component.
*
* Copyright (C) 2009-2010 The University of Napoli Parthenope at Naples.
*
* This file is part of gVirtuS.
*
* gVirtuS is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 51.007656 | 324 | 0.702306 | RapidProjectH2020 |
ff9959a935ccdcd8336a47c1d3f64970a0669df2 | 745 | cpp | C++ | 1633-EducationalCodeforcesRound122/B.cpp | ReiRev/Codeforces | ad2d3e943f9e2c29850aade24d8d486fea57812a | [
"MIT"
] | null | null | null | 1633-EducationalCodeforcesRound122/B.cpp | ReiRev/Codeforces | ad2d3e943f9e2c29850aade24d8d486fea57812a | [
"MIT"
] | null | null | null | 1633-EducationalCodeforcesRound122/B.cpp | ReiRev/Codeforces | ad2d3e943f9e2c29850aade24d8d486fea57812a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
int t;
cin >> t;
for (int i = 0; i < t; i++)
{
string s;
cin >> s;
int c0 = 0;
int c1 = 0;
int ans = 0;
for (char c : s)
{
if (c == '0')
... | 16.555556 | 40 | 0.261745 | ReiRev |
ff9f2b8591ed2e9cd9b26966609dbc07cfa95f9b | 2,844 | hpp | C++ | worker/include/RTC/RTCP/XrReceiverReferenceTime.hpp | liwf616/mediasoup | 99d1c696bd4b985ea8bf5348b7f520998e165c32 | [
"ISC"
] | null | null | null | worker/include/RTC/RTCP/XrReceiverReferenceTime.hpp | liwf616/mediasoup | 99d1c696bd4b985ea8bf5348b7f520998e165c32 | [
"ISC"
] | null | null | null | worker/include/RTC/RTCP/XrReceiverReferenceTime.hpp | liwf616/mediasoup | 99d1c696bd4b985ea8bf5348b7f520998e165c32 | [
"ISC"
] | 1 | 2021-06-11T10:53:24.000Z | 2021-06-11T10:53:24.000Z | #ifndef MS_RTC_RTCP_XR_RECEIVER_REFERENCE_TIME_HPP
#define MS_RTC_RTCP_XR_RECEIVER_REFERENCE_TIME_HPP
#include "common.hpp"
#include "RTC/RTCP/XR.hpp"
/* https://tools.ietf.org/html/rfc3611
* Receiver Reference Time Report Block
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-... | 26.579439 | 75 | 0.617792 | liwf616 |
ffa4292694703d2644ef0315afa460a9f16ddd20 | 4,452 | cpp | C++ | src/ast/ast_util.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 26 | 2019-07-18T04:45:08.000Z | 2022-03-13T09:52:04.000Z | src/ast/ast_util.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 6 | 2021-09-10T00:48:00.000Z | 2021-11-27T22:00:48.000Z | src/ast/ast_util.cpp | Grossley/opengml | bc3494aae64092f1c32a16361fd781249e2ea630 | [
"MIT"
] | 9 | 2019-07-26T06:32:53.000Z | 2022-01-12T14:38:59.000Z | #include "ogm/ast/parse.h"
#include <iostream>
#include <cstring>
payload_type_t ogm_ast_tree_get_payload_type(
const ogm_ast_t* tree
)
{
switch (tree->m_subtype)
{
case ogm_ast_st_imp_assignment:
case ogm_ast_st_exp_arithmetic:
case ogm_ast_st_exp_accessor:
case ogm_ast_st_imp_body:
c... | 22.948454 | 140 | 0.636792 | Grossley |
ffa48141431e91da1911dbdd016b5013b789a8bd | 2,211 | cxx | C++ | Source/VTKExtensions/Testing/delosMeshReader.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/VTKExtensions/Testing/delosMeshReader.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | Source/VTKExtensions/Testing/delosMeshReader.cxx | developkits/cmb | caaf9cd7ffe0b7c1ac3be9edbce0f9430068d2cb | [
"BSD-3-Clause"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 29.48 | 75 | 0.691542 | developkits |
ffad10098b09c0b34b903e2e33d8888fa016ff83 | 1,560 | cpp | C++ | tests/src/daw_parallel_observable_ptr_test.cpp | beached/parallel | e0db2d7eac7a173f44a4bce9fcfec7aa063d9c1e | [
"BSL-1.0"
] | null | null | null | tests/src/daw_parallel_observable_ptr_test.cpp | beached/parallel | e0db2d7eac7a173f44a4bce9fcfec7aa063d9c1e | [
"BSL-1.0"
] | null | null | null | tests/src/daw_parallel_observable_ptr_test.cpp | beached/parallel | e0db2d7eac7a173f44a4bce9fcfec7aa063d9c1e | [
"BSL-1.0"
] | null | null | null | // Copyright (c) Darrell Wright
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/beached/parallel
//
#include "daw/daw_benchmark.h"
#include "daw/parallel/daw_observable_ptr.... | 19.02439 | 79 | 0.625 | beached |
ffb7a388fd9b44294da70fff22e78b3497907216 | 696 | hpp | C++ | include/pdb/detail/symdata.hpp | MattiRegenhardt/pdb | 90a7cbedd5ae4dd4451dcf30159753882b559aa0 | [
"BSL-1.0"
] | null | null | null | include/pdb/detail/symdata.hpp | MattiRegenhardt/pdb | 90a7cbedd5ae4dd4451dcf30159753882b559aa0 | [
"BSL-1.0"
] | null | null | null | include/pdb/detail/symdata.hpp | MattiRegenhardt/pdb | 90a7cbedd5ae4dd4451dcf30159753882b559aa0 | [
"BSL-1.0"
] | null | null | null | //
// Created by Matti on 28.02.2021.
//
#ifndef PDB_INCLUDE_PDB_DETAIL_SYMDATA_HPP
#define PDB_INCLUDE_PDB_DETAIL_SYMDATA_HPP
#include <cstdint>
#include <cstring>
namespace pdb::detail
{
#pragma pack(push, 1)
struct pubsym32_t
{
std::uint16_t reclen{};
std::uint16_t rectyp{};
std::uint32_t pubsymflags{};
... | 18.315789 | 55 | 0.691092 | MattiRegenhardt |
ffb8e2763da68a8fa4a8c8a9204e7a4010fc537c | 52,753 | cpp | C++ | src/subcommand/gbwt_main.cpp | CominLab/VG-SNP-Aware | 6e28125879ad7b5b9b0d160d19406e69278a0e58 | [
"MIT"
] | 1 | 2021-11-16T21:23:49.000Z | 2021-11-16T21:23:49.000Z | src/subcommand/gbwt_main.cpp | CominLab/VG-SNP-Aware | 6e28125879ad7b5b9b0d160d19406e69278a0e58 | [
"MIT"
] | null | null | null | src/subcommand/gbwt_main.cpp | CominLab/VG-SNP-Aware | 6e28125879ad7b5b9b0d160d19406e69278a0e58 | [
"MIT"
] | null | null | null | /** \file gbwt_main.cpp
*
* Defines the "vg gbwt" subcommand for building, merging, and manipulating GBWT indexes
* and GBWTGraphs.
*/
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <set>
#include "subcommand.hpp"
#include "../gbwt_helper.hpp"
#include "../haplotype_indexer.hpp"
#include "../p... | 43.134096 | 216 | 0.546187 | CominLab |
ffbd6720475d5d7449408ca454d34b6d49155402 | 7,340 | cpp | C++ | evoscript/Object.cpp | PumpkinCellOS/evogen | eed748959c446046b47168172ffc508c067a32c2 | [
"MIT"
] | null | null | null | evoscript/Object.cpp | PumpkinCellOS/evogen | eed748959c446046b47168172ffc508c067a32c2 | [
"MIT"
] | null | null | null | evoscript/Object.cpp | PumpkinCellOS/evogen | eed748959c446046b47168172ffc508c067a32c2 | [
"MIT"
] | null | null | null | #include <evoscript/Object.h>
#include <evoscript/AbstractOperations.h>
#include <evoscript/EscapeSequences.h>
#include <evoscript/Runtime.h>
#include <evoscript/objects/Exception.h>
#include <evoscript/objects/NativeFunction.h>
namespace evo::script
{
ClassWrapper::ClassWrapper()
: Class("ClassWrapper")
{
defin... | 27.286245 | 113 | 0.613488 | PumpkinCellOS |
ffbf24f98a05858a99c8fcd50bd226ff7e29017b | 2,757 | hpp | C++ | include/protocol.hpp | tj314/mdpc-gf-p | 613f32cd498f864a9036759e958f5e606328b562 | [
"BSD-3-Clause"
] | null | null | null | include/protocol.hpp | tj314/mdpc-gf-p | 613f32cd498f864a9036759e958f5e606328b562 | [
"BSD-3-Clause"
] | null | null | null | include/protocol.hpp | tj314/mdpc-gf-p | 613f32cd498f864a9036759e958f5e606328b562 | [
"BSD-3-Clause"
] | 1 | 2022-03-29T09:14:52.000Z | 2022-03-29T09:14:52.000Z | #ifndef MCELIECE_QCMDPC_GF_P_PROTOCOL_HPP
#define MCELIECE_QCMDPC_GF_P_PROTOCOL_HPP
#include <fmpzxx.h>
#include <vector>
#include <optional>
#include <iostream>
#include "code.hpp"
using flint::fmpzxx;
using std::vector;
using std::optional;
using std::cerr;
using std::endl;
/**
* @brief Protocol class holds an in... | 33.216867 | 131 | 0.664853 | tj314 |
ffc1f8f06e5987c83371cd119afd277a6b87f73e | 11,038 | cpp | C++ | tracker_patterns/src/tracker_patterns_node.cpp | FelipMarti/managing_interaction_patterns | e86ed6ce5c5c0136e3dd760e7ec2322be24a2718 | [
"MIT"
] | null | null | null | tracker_patterns/src/tracker_patterns_node.cpp | FelipMarti/managing_interaction_patterns | e86ed6ce5c5c0136e3dd760e7ec2322be24a2718 | [
"MIT"
] | null | null | null | tracker_patterns/src/tracker_patterns_node.cpp | FelipMarti/managing_interaction_patterns | e86ed6ce5c5c0136e3dd760e7ec2322be24a2718 | [
"MIT"
] | null | null | null | /**
*
* Lunds tekniska högskola | LTH 2015
* Felip Marti Carrillo
*
* MIT License (MIT)
* Copyright (c) 2015 Felip Marti Carrillo
*/
#include "tracker_patterns_node.h"
TrackerPatterns::TrackerPatterns (void)
{
/// Init publishers
heading_adj_pub = n.advertise<interaction... | 35.152866 | 97 | 0.560246 | FelipMarti |
ffc80d5660db9282a9928e5162dca5044f078de9 | 328 | cpp | C++ | leetcode/cpp/119.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | null | null | null | leetcode/cpp/119.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | null | null | null | leetcode/cpp/119.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | 2 | 2020-09-29T21:59:43.000Z | 2021-06-22T13:24:04.000Z | class Solution {
public:
vector<int> getRow(int rowIndex) {
vector<int> curRow(rowIndex+1,0);
for(int i = 0; i <= rowIndex; i++) {
curRow[0] = 1;
for(int j = i; j >= 1; j--) {
curRow[j] = curRow[j-1] + curRow[j];
}
}
return curRow;
... | 25.230769 | 52 | 0.429878 | xpharry |
ffca38a80e6d8da211abb5fedbcf5d4fdee812df | 17,462 | cc | C++ | ortools/sat/cp_constraints.cc | gnanakeethan/or-tools | 554cbccaa95b4c11eced13f145de1bf468e1f919 | [
"Apache-2.0"
] | null | null | null | ortools/sat/cp_constraints.cc | gnanakeethan/or-tools | 554cbccaa95b4c11eced13f145de1bf468e1f919 | [
"Apache-2.0"
] | null | null | null | ortools/sat/cp_constraints.cc | gnanakeethan/or-tools | 554cbccaa95b4c11eced13f145de1bf468e1f919 | [
"Apache-2.0"
] | null | null | null | // Copyright 2010-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... | 35.709611 | 80 | 0.656168 | gnanakeethan |
ffcbe941cda17bbdf3dba6b4419ab258561ab0f9 | 2,831 | cpp | C++ | Userland/Libraries/LibGUI/RegularEditingEngine.cpp | nickwanninger/serenity | d9290558423bac8ae9fa4cc5fd26171ed120b3dd | [
"BSD-2-Clause"
] | 2 | 2021-02-04T13:13:22.000Z | 2021-03-12T21:37:35.000Z | Userland/Libraries/LibGUI/RegularEditingEngine.cpp | nickwanninger/serenity | d9290558423bac8ae9fa4cc5fd26171ed120b3dd | [
"BSD-2-Clause"
] | 78 | 2020-08-25T08:13:30.000Z | 2021-03-02T10:20:05.000Z | Userland/Libraries/LibGUI/RegularEditingEngine.cpp | nickwanninger/serenity | d9290558423bac8ae9fa4cc5fd26171ed120b3dd | [
"BSD-2-Clause"
] | 1 | 2021-06-10T00:18:29.000Z | 2021-06-10T00:18:29.000Z | /*
* Copyright (c) 2020, the SerenityOS developers.
* 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
* ... | 30.771739 | 95 | 0.689156 | nickwanninger |
ffd0687b521036b9551e3fcb2b5749401248f5e5 | 471 | cpp | C++ | src/switchStatements/switch-statements.cpp | learning-lab-cpp/cpp-notes-introduction | 17f34f0e74b967e39226ac038e2c90bb2964c9de | [
"CC0-1.0"
] | null | null | null | src/switchStatements/switch-statements.cpp | learning-lab-cpp/cpp-notes-introduction | 17f34f0e74b967e39226ac038e2c90bb2964c9de | [
"CC0-1.0"
] | null | null | null | src/switchStatements/switch-statements.cpp | learning-lab-cpp/cpp-notes-introduction | 17f34f0e74b967e39226ac038e2c90bb2964c9de | [
"CC0-1.0"
] | null | null | null | #include <iostream>
int main()
{
char response = 'y';
switch (response)
{
case 'y':
// Block of code executes if the value of response is y.
break;
case 'Y':
// Block of code executes if the value of response is Y.
break;
case 'n':
// Block of code execut... | 22.428571 | 66 | 0.556263 | learning-lab-cpp |
ffdb6df75ee06a245401adda5eaa9a6f3a197348 | 1,973 | cpp | C++ | Tests/ExhaustiveSearchTests.cpp | erwinbonsma/BusyBeaverFinder | e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f | [
"MIT"
] | null | null | null | Tests/ExhaustiveSearchTests.cpp | erwinbonsma/BusyBeaverFinder | e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f | [
"MIT"
] | null | null | null | Tests/ExhaustiveSearchTests.cpp | erwinbonsma/BusyBeaverFinder | e83caa11d93ebbc46f4d92e5de96ad5dcfdc977f | [
"MIT"
] | null | null | null | //
// ExhaustiveSearchTests.cpp
// BusyBeaverFinder
//
// Created by Erwin on 03/02/19.
// Copyright © 2019 Erwin Bonsma.
//
#include <stdio.h>
#include "catch.hpp"
#include "ExhaustiveSearcher.h"
TEST_CASE( "3x3 Search", "[search][3x3][exhaustive]" ) {
ExhaustiveSearcher searcher(3, 3, 16);
ProgressTrac... | 27.027397 | 72 | 0.682717 | erwinbonsma |
ffdcdf8b045222cca68714d9cdd1e19cf0e57f8a | 2,270 | cc | C++ | src/player/player_provider.cc | kevinscroggins-youi/NativePlayer | 8de394aeb964add1568ddcfc12216930bd895647 | [
"MIT"
] | 26 | 2017-02-24T15:17:19.000Z | 2021-02-11T04:38:16.000Z | src/player/player_provider.cc | kevinscroggins-youi/NativePlayer | 8de394aeb964add1568ddcfc12216930bd895647 | [
"MIT"
] | 8 | 2019-04-17T13:19:17.000Z | 2021-09-21T13:49:53.000Z | src/player/player_provider.cc | kevinscroggins-youi/NativePlayer | 8de394aeb964add1568ddcfc12216930bd895647 | [
"MIT"
] | 14 | 2016-08-31T08:40:36.000Z | 2021-11-12T18:45:14.000Z | /*!
* player_provider.cc (https://github.com/SamsungDForum/NativePlayer)
* Copyright 2016, Samsung Electronics Co., Ltd
* Licensed under the MIT license
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IM... | 39.824561 | 80 | 0.730837 | kevinscroggins-youi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.