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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3bb1f1a5b5b56545f05e7831643f4b80548cc8f5 | 841 | cpp | C++ | Source/Runtime/Engine/Private/GameFramework/PlayerController.cpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 23 | 2020-05-21T06:25:29.000Z | 2021-04-06T03:37:28.000Z | Source/Runtime/Engine/Private/GameFramework/PlayerController.cpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 72 | 2020-06-09T04:46:27.000Z | 2020-12-07T03:20:51.000Z | Source/Runtime/Engine/Private/GameFramework/PlayerController.cpp | Othereum/NoEngineGame | e3c9c9a330ba8e724cd96f98355b556d24e73d9d | [
"MIT"
] | 4 | 2020-06-10T02:23:54.000Z | 2022-03-28T07:22:08.000Z | #include "GameFramework/PlayerController.hpp"
#include "Camera/PlayerCameraManager.hpp"
#include "Engine/World.hpp"
#include "GameFramework/Pawn.hpp"
namespace oeng
{
inline namespace engine
{
ViewInfo APlayerController::CalcCamera() const
{
if (const auto pcm = pcm_.lock())
return pcm->CalcCamera();
... | 21.025 | 72 | 0.699168 | Othereum |
3bb784e659ab32f3983174859ac21fc5e6474b88 | 2,529 | cpp | C++ | Kernel/Bus/USB/USBManagement.cpp | clarking/serenity | 5b86698bb85dda4021b7fb9ecae081b8a656ce02 | [
"BSD-2-Clause"
] | null | null | null | Kernel/Bus/USB/USBManagement.cpp | clarking/serenity | 5b86698bb85dda4021b7fb9ecae081b8a656ce02 | [
"BSD-2-Clause"
] | null | null | null | Kernel/Bus/USB/USBManagement.cpp | clarking/serenity | 5b86698bb85dda4021b7fb9ecae081b8a656ce02 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Singleton.h>
#include <Kernel/Bus/PCI/API.h>
#include <Kernel/Bus/USB/UHCI/UHCIController.h>
#include <Kernel/Bus/USB/USBManagement.h>
#include <Kernel/CommandLine.h>
#include <Kernel/FileSystem/Sys... | 30.46988 | 173 | 0.680902 | clarking |
3bbd74203c29a15a3efe8bb551498b1c43cef2fa | 3,338 | cpp | C++ | tests/TestIo/TestSerialPort.cpp | cvilas/grape-old | d8e9b184fff396982be8d230214a1f66a7a8fcc9 | [
"BSD-3-Clause"
] | null | null | null | tests/TestIo/TestSerialPort.cpp | cvilas/grape-old | d8e9b184fff396982be8d230214a1f66a7a8fcc9 | [
"BSD-3-Clause"
] | 4 | 2018-06-04T08:18:21.000Z | 2018-07-13T14:36:03.000Z | tests/TestIo/TestSerialPort.cpp | cvilas/grape-old | d8e9b184fff396982be8d230214a1f66a7a8fcc9 | [
"BSD-3-Clause"
] | null | null | null | #include "TestSerialPort.h"
//=============================================================================
TestSerialPort::TestSerialPort()
//=============================================================================
{
}
//-----------------------------------------------------------------------------
void TestSeri... | 26.078125 | 79 | 0.346016 | cvilas |
3bbea0e6239fc07e184f93e97f59ef930d701016 | 12,594 | cpp | C++ | schunk_modular_robotics/schunk_libm5api/src/Util/Message.cpp | briefgw/brief_schunklwa4p_simulation | 7b148225bfca2f2d3289a9b924d6afde7507b9e8 | [
"BSD-3-Clause"
] | 1 | 2020-11-25T13:02:50.000Z | 2020-11-25T13:02:50.000Z | schunk_modular_robotics/schunk_libm5api/src/Util/Message.cpp | briefgw/brief_schunklwa4p_simulation | 7b148225bfca2f2d3289a9b924d6afde7507b9e8 | [
"BSD-3-Clause"
] | null | null | null | schunk_modular_robotics/schunk_libm5api/src/Util/Message.cpp | briefgw/brief_schunklwa4p_simulation | 7b148225bfca2f2d3289a9b924d6afde7507b9e8 | [
"BSD-3-Clause"
] | null | null | null |
/******************************************************************************
*
* Copyright (c) 2012
*
* SCHUNK GmbH & Co. KG
*
* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Project name: Drivers for "Amtec M5 Protocol" Electronics V4
* ... | 29.70283 | 164 | 0.529379 | briefgw |
3bbf38d95987b28ea4f93d45ebe6288a0372fe54 | 87,627 | cpp | C++ | opencl/test/unit_test/command_queue/enqueue_svm_tests.cpp | maleadt/compute-runtime | 5d90e2ab1defd413dc9633fe237a44c2a1298185 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/command_queue/enqueue_svm_tests.cpp | maleadt/compute-runtime | 5d90e2ab1defd413dc9633fe237a44c2a1298185 | [
"Intel",
"MIT"
] | null | null | null | opencl/test/unit_test/command_queue/enqueue_svm_tests.cpp | maleadt/compute-runtime | 5d90e2ab1defd413dc9633fe237a44c2a1298185 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2018-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/command_stream/command_stream_receiver.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/aligned_memory.h"
#include "shared/source/memory_manager/allocatio... | 42.49612 | 183 | 0.689822 | maleadt |
3bc16a6c0b4cffec924641317bf2c3959611c851 | 30,725 | cpp | C++ | physx/source/physx/src/NpShapeManager.cpp | yangfengzzz/PhysX | aed9c3035955d4ad90e5741f7d1dcfb5c178d44f | [
"BSD-3-Clause"
] | null | null | null | physx/source/physx/src/NpShapeManager.cpp | yangfengzzz/PhysX | aed9c3035955d4ad90e5741f7d1dcfb5c178d44f | [
"BSD-3-Clause"
] | null | null | null | physx/source/physx/src/NpShapeManager.cpp | yangfengzzz/PhysX | aed9c3035955d4ad90e5741f7d1dcfb5c178d44f | [
"BSD-3-Clause"
] | null | null | null | //
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... | 40.00651 | 120 | 0.710073 | yangfengzzz |
3bc1b262680b05ee3564c5355d4bc61291d1b6e0 | 5,742 | cpp | C++ | c3dToolKit/core/c3dMath.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | 11 | 2015-02-12T04:34:43.000Z | 2021-10-10T06:24:55.000Z | c3dToolKit/core/c3dMath.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | null | null | null | c3dToolKit/core/c3dMath.cpp | wantnon2/3DToolKit-2-for-cocos2dx | 518aa856f06788929e50897b43969e5cfa50c3cf | [
"MIT"
] | 8 | 2015-06-30T11:51:30.000Z | 2021-10-10T06:24:56.000Z | //
// c3dMath.cpp
// HelloCpp
//
// Created by yang chao (wantnon) on 14-1-4.
//
//
#include "c3dMath.h"
Cc3dMatrix4 unitMat(){
Cc3dMatrix4 mat(1,0,0,0,//col 1
0,1,0,0,
0,0,1,0,
0,0,0,1);
return mat;
}
Cc3dMatrix4 zeroMat(){
Cc3dMatrix4 mat(0,0... | 25.40708 | 98 | 0.40613 | wantnon2 |
3bc75cd7054bae66c21293a99fba3e02c13ebe72 | 7,819 | cpp | C++ | src/pke/unittest/UnitTestEvalSum.cpp | mattdano/palisade | 6e49bc3a850672a142eea209e6d71505e689cb81 | [
"BSD-2-Clause"
] | null | null | null | src/pke/unittest/UnitTestEvalSum.cpp | mattdano/palisade | 6e49bc3a850672a142eea209e6d71505e689cb81 | [
"BSD-2-Clause"
] | null | null | null | src/pke/unittest/UnitTestEvalSum.cpp | mattdano/palisade | 6e49bc3a850672a142eea209e6d71505e689cb81 | [
"BSD-2-Clause"
] | null | null | null | /*
* @author TPOC: contact@palisade-crypto.org
*
* @copyright Copyright (c) 2019, New Jersey Institute of Technology (NJIT)
* 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. Redistributio... | 29.175373 | 127 | 0.775163 | mattdano |
3bc7d4336e9349b11efdfcd1659df26daf4d5236 | 1,250 | cpp | C++ | codeforce/528/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/528/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/528/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | /**
Is a reason necessary? I don't know why you would kill someone but as for saving someone…a logical mind isn\'t needed, right?
*/
#include <bits/stdc++.h>
#define forn(i, l, r) for(int i=l;i<=r;i++)
#define all(v) v.begin(),v.end()
#define pb push_back
#define nd second
#define st first
#define debug(x) cou... | 24.038462 | 133 | 0.6072 | heiseish |
3bcb38cb3c0d92f67dda0ea62a76f9effffdd81a | 629 | cpp | C++ | solved-uva/195-2.cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2019-03-31T05:47:30.000Z | 2019-03-31T05:47:30.000Z | solved-uva/195-2.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | solved-uva/195-2.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <math.h>
#include <string.h>
#include <vector>
#include <algorithm>
#include <ctype.h>
using namespace std;
#define mem(x,y) memset(x,y,sizeof(x));
char a[100];
bool comp(char b,char c)
{
if(tolower(b)==tolower(c))
return b<c; //porer ta Capital hole swap kore age jaba
els... | 17.971429 | 65 | 0.538951 | Maruf-Tuhin |
3bd64421c2c9bd266fb0282fb8d7eb672a8fec24 | 6,436 | cpp | C++ | DonerComponents/source/common/component/CComponentFactoryManager.cpp | Donerkebap13/DonerComponents | 2441ffcb52510783d3f4bef714461429687e7d4d | [
"MIT"
] | 28 | 2018-09-16T15:48:47.000Z | 2022-01-11T01:11:16.000Z | DonerComponents/source/common/component/CComponentFactoryManager.cpp | Donerkebap13/DonerECS | 2441ffcb52510783d3f4bef714461429687e7d4d | [
"MIT"
] | 6 | 2017-12-12T21:41:40.000Z | 2018-09-16T14:15:43.000Z | DonerComponents/source/common/component/CComponentFactoryManager.cpp | Donerkebap13/DonerECS | 2441ffcb52510783d3f4bef714461429687e7d4d | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////
//
// MIT License
//
// DonerComponents
// Copyright(c) 2017 Donerkebap13
//
// 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 wi... | 30.215962 | 132 | 0.716128 | Donerkebap13 |
3bd80db1f5d99bd78eeb5be9f2eb033cfe962a62 | 1,775 | hpp | C++ | doc/quickbook/oglplus/quickref/enums/texture_target_class.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | null | null | null | doc/quickbook/oglplus/quickref/enums/texture_target_class.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | null | null | null | doc/quickbook/oglplus/quickref/enums/texture_target_class.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | null | null | null | // File doc/quickbook/oglplus/quickref/enums/texture_target_class.hpp
//
// Automatically generated file, DO NOT modify manually.
// Edit the source 'source/enums/oglplus/texture_target.txt'
// or the 'source/enums/make_enum.py' script instead.
//
// Copyright 2010-2015 Matus Chochlik.
// Distributed under the Bo... | 26.893939 | 70 | 0.790986 | Extrunder |
3bdb85d2c9bce9786ab8aed301a4efb591cefe85 | 16,086 | cc | C++ | src/connectivity/network/mdns/service/mdns_service_impl.cc | myself659/fuchsia | 18eb5ad3d995fba458b32d8600b2af97f89a5726 | [
"BSD-3-Clause"
] | null | null | null | src/connectivity/network/mdns/service/mdns_service_impl.cc | myself659/fuchsia | 18eb5ad3d995fba458b32d8600b2af97f89a5726 | [
"BSD-3-Clause"
] | 4 | 2020-09-06T07:59:32.000Z | 2022-02-12T16:06:47.000Z | src/connectivity/network/mdns/service/mdns_service_impl.cc | myself659/fuchsia | 18eb5ad3d995fba458b32d8600b2af97f89a5726 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 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/connectivity/network/mdns/service/mdns_service_impl.h"
#include <fuchsia/netstack/cpp/fidl.h>
#include <lib/async/cpp/task.h>
#include <lib/... | 35.431718 | 80 | 0.654793 | myself659 |
3bdbcd10fd1ed8b0a58f9d20b4757d028ed8572f | 7,136 | hh | C++ | include/tchecker/utils/cache.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 7 | 2019-08-12T12:22:07.000Z | 2021-11-18T01:48:27.000Z | include/tchecker/utils/cache.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 40 | 2019-07-03T04:31:19.000Z | 2022-03-31T03:40:43.000Z | include/tchecker/utils/cache.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 8 | 2019-07-04T06:40:49.000Z | 2021-12-03T15:51:50.000Z | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_CACHE_HH
#define TCHECKER_CACHE_HH
/*!
\file cache.hh
\brief Cache of shared objects
*/
#include <vector>
#include "tchecker/utils/shared_objects.hh"
#include "tchecker/utils/spin... | 26.626866 | 126 | 0.64546 | arnabSur |
3be158e5924d5b71f8ccd504d0b5a56b48a66e3f | 1,348 | cpp | C++ | vnext/Microsoft.ReactNative/ReactHost/JSExceptionCallbackFactory.cpp | enm10k/react-native-windows | feb180024d814472295f049351ef72aaa1e1682b | [
"MIT"
] | 1 | 2020-02-17T11:33:03.000Z | 2020-02-17T11:33:03.000Z | vnext/Microsoft.ReactNative/ReactHost/JSExceptionCallbackFactory.cpp | enm10k/react-native-windows | feb180024d814472295f049351ef72aaa1e1682b | [
"MIT"
] | null | null | null | vnext/Microsoft.ReactNative/ReactHost/JSExceptionCallbackFactory.cpp | enm10k/react-native-windows | feb180024d814472295f049351ef72aaa1e1682b | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "JSExceptionCallbackFactory.h"
namespace Mso::React {
std::function<void(facebook::react::JSExceptionInfo &&)> CreateExceptionCallback(
OnJSExceptionCallback &&jsExceptionCallback) n... | 40.848485 | 107 | 0.718843 | enm10k |
3be17e4c88a5f7e3e96d83ff1304fd7722e85c3a | 1,746 | cpp | C++ | systems/plants/collision/test/BodyTest.cpp | andybarry/drake | 61428cff8cb523314cd87105821148519460a0b9 | [
"BSD-3-Clause"
] | 1 | 2020-01-12T14:32:29.000Z | 2020-01-12T14:32:29.000Z | systems/plants/collision/test/BodyTest.cpp | cmmccann/drake | 0a124c044357d5a29ec7e536acb747cfa5682eba | [
"BSD-3-Clause"
] | null | null | null | systems/plants/collision/test/BodyTest.cpp | cmmccann/drake | 0a124c044357d5a29ec7e536acb747cfa5682eba | [
"BSD-3-Clause"
] | 1 | 2021-07-07T18:52:51.000Z | 2021-07-07T18:52:51.000Z | #define BOOST_TEST_MODULE Body test
#include <boost/test/unit_test.hpp>
#include <iostream>
#include "DrakeCollision.h"
#include "BulletModel.h"
using namespace DrakeCollision;
using namespace std;
BOOST_AUTO_TEST_CASE(constructor_test)
{
Body body1;
BOOST_CHECK_EQUAL(body1.getBodyIdx(), -1);
BOOST_CHECK_EQUA... | 24.942857 | 81 | 0.726231 | andybarry |
3be468a93dab86da2b32f995984ed9554910cfa2 | 675 | hpp | C++ | forward_iterator/bst_node.hpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 6 | 2015-05-19T06:30:06.000Z | 2018-07-24T08:15:45.000Z | forward_iterator/bst_node.hpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 1 | 2015-05-19T06:42:38.000Z | 2015-05-19T14:45:49.000Z | forward_iterator/bst_node.hpp | SimplyCpp/exemplos | 139cd3c7af6885d0f4be45b0049e0f714bce3468 | [
"MIT"
] | 3 | 2015-10-09T05:54:58.000Z | 2018-07-25T13:52:32.000Z | //Sample provided by Fabio Galuppo
//February 2017
//http://www.simplycpp.com
#ifndef BST_NODE_HPP
#define BST_NODE_HPP
template<typename T>
struct bst_node
{
explicit bst_node(const T& value) :
value(value),
left(nullptr),
right(nullptr) {}
T value;
bst_node<T>* left;
bst_node<T>* right;
bool operator==(... | 16.875 | 72 | 0.659259 | SimplyCpp |
3be7cf21fab8457c4391e171518be65dbf5e926f | 479 | cpp | C++ | codeforces/431A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/431A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/431A.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // A. Black Square
#include <iostream>
#include <string>
using namespace std;
int main(){
int a1, a2, a3, a4;
scanf("%d %d %d %d\n", &a1, &a2, &a3, &a4);
int arr[4] = {a1, a2, a3, a4};
string s;
getline (cin, s);
int cal = 0;
for (unsigned i=0; i < s.size(); ++i){
// In ASCII numbers start from ... | 14.96875 | 53 | 0.549061 | sgrade |
3be899fd83f975eebeac2a6fcb9457266f2efed9 | 44,393 | cpp | C++ | automated-tests/src/dali-toolkit-internal/utc-Dali-Text-MultiLanguage.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | automated-tests/src/dali-toolkit-internal/utc-Dali-Text-MultiLanguage.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | automated-tests/src/dali-toolkit-internal/utc-Dali-Text-MultiLanguage.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* 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... | 25.367429 | 207 | 0.613115 | pwisbey |
3be965725110bbc1c942e6967f7edf2d42026459 | 38,792 | cpp | C++ | test/liz_lookaside_double_stack_test.cpp | bjoernknafla/liz | b9400b0cb51379aa133953894580006892c2dc2a | [
"BSD-3-Clause"
] | 35 | 2015-05-13T03:06:37.000Z | 2022-02-18T20:33:03.000Z | test/liz_lookaside_double_stack_test.cpp | bjoernknafla/liz | b9400b0cb51379aa133953894580006892c2dc2a | [
"BSD-3-Clause"
] | null | null | null | test/liz_lookaside_double_stack_test.cpp | bjoernknafla/liz | b9400b0cb51379aa133953894580006892c2dc2a | [
"BSD-3-Clause"
] | 3 | 2016-12-20T19:03:26.000Z | 2018-03-27T08:52:43.000Z | /*
* Copyright (c) 2011, Bjoern Knafla
* http://www.bjoernknafla.com/
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyr... | 33.155556 | 103 | 0.673824 | bjoernknafla |
3becd4412c57677be86fe437b7785d18eb77bf1a | 1,200 | hpp | C++ | gpcl/detail/futex_condition_variable.hpp | Chingyat/gpcl | de4157a2bab07640539d9051fc7bb66c9c82eaf4 | [
"BSL-1.0"
] | 2 | 2021-02-10T11:51:25.000Z | 2021-12-20T12:35:36.000Z | gpcl/detail/futex_condition_variable.hpp | Chingyat/gpcl | de4157a2bab07640539d9051fc7bb66c9c82eaf4 | [
"BSL-1.0"
] | 2 | 2021-11-28T03:09:15.000Z | 2021-11-29T15:08:43.000Z | gpcl/detail/futex_condition_variable.hpp | Chingyat/gpcl | c2702b8b13fa948f6753285ba62455ddf9413578 | [
"BSL-1.0"
] | null | null | null | //
// futex_condition_variable.hpp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2021 Zhengyi Fu (tsingyat at outlook dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef GPCL_DETAIL_FUTEX_C... | 23.076923 | 79 | 0.763333 | Chingyat |
3bf07c6ae1742d3ed0e08ab858c5d2e22f2d775c | 2,164 | hpp | C++ | include/argot/concepts/exceptional_switch_body_case.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/concepts/exceptional_switch_body_case.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/concepts/exceptional_switch_body_case.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2017, 2018, 2019 Matt Calabrese
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)
=======================================... | 31.823529 | 80 | 0.743993 | mattcalabrese |
3bf0be8c6d410f54c33368f6b85a14294709ca0b | 4,576 | cpp | C++ | vp/src/platform/basic/display.cpp | agra-uni-bremen/fdl21-stackuse-vp | 9c8be7a3534cdd8ed8b8fbce7be740fc16807876 | [
"MIT"
] | 26 | 2019-11-01T09:02:35.000Z | 2022-03-10T02:21:12.000Z | vp/src/platform/basic/display.cpp | agra-uni-bremen/fdl21-stackuse-vp | 9c8be7a3534cdd8ed8b8fbce7be740fc16807876 | [
"MIT"
] | 2 | 2019-05-01T10:22:07.000Z | 2020-07-27T10:08:51.000Z | vp/src/platform/basic/display.cpp | agra-uni-bremen/fdl21-stackuse-vp | 9c8be7a3534cdd8ed8b8fbce7be740fc16807876 | [
"MIT"
] | 12 | 2018-06-19T14:09:49.000Z | 2022-02-08T03:34:14.000Z | /*
* display.cpp
*
* Created on: Sep 11, 2018
* Author: dwd
*/
#include "display.hpp"
#include <math.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/types.h>
using namespace frame;
Display::Display(sc_module_name) {
tsock.register_b_transport(this, &Display::transport);
createSM();
memset(fr... | 28.962025 | 108 | 0.618663 | agra-uni-bremen |
3bf188edca33b4a13261f05859f614759d9e2f39 | 674 | cpp | C++ | Problem Solving/Implementation/bill_division.cpp | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | Problem Solving/Implementation/bill_division.cpp | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | Problem Solving/Implementation/bill_division.cpp | abivilion/Hackerank-Solutions- | e195fb1fce1588171cf12d99d38da32ca5c8276a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main ()
{
//siz = no of item
// ski = index reserved
// inp = items
// sum : all appdups
//
int siz,ski,inp,sum=0,charged =0;
int store_index_ele=0;
cin>>siz>>ski;
for(int i=0;i<siz;i++)
{
if... | 16.85 | 40 | 0.394659 | abivilion |
3bf1ff94a8040c30c9d8998c313ba5928989fcd4 | 44,650 | cpp | C++ | keynote-protos/mapping/ProtoMapping.cpp | eth-siplab/SVG2Keynote-lib | b7e6dfe5084911dac1fa6261a14254bfbbd8065b | [
"MIT"
] | 4 | 2021-11-24T14:27:32.000Z | 2022-03-14T07:52:44.000Z | keynote-protos/mapping/ProtoMapping.cpp | eth-siplab/SVG2Keynote-lib | b7e6dfe5084911dac1fa6261a14254bfbbd8065b | [
"MIT"
] | null | null | null | keynote-protos/mapping/ProtoMapping.cpp | eth-siplab/SVG2Keynote-lib | b7e6dfe5084911dac1fa6261a14254bfbbd8065b | [
"MIT"
] | null | null | null | #include "ProtoMapping.h"
ProtoMapping::ProtoMapping(std::string type) {
registerCommonMessageTypes();
if (type == "keynote") {
registerKeynoteMessageTypes();
}
}
void ProtoMapping::registerKeynoteMessageTypes() {
_messageTypeToPrototypeMap[1]= new KN::DocumentArchive();
_messageTypeTo... | 74.292845 | 114 | 0.838343 | eth-siplab |
3bf431893357d5412ea6d49dc7c6445247413980 | 255 | cpp | C++ | 11_variadic_templates/11_02_pack_expansion/11_02_03_inheritance.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 13 | 2020-09-01T14:57:21.000Z | 2021-11-24T06:00:26.000Z | 11_variadic_templates/11_02_pack_expansion/11_02_03_inheritance.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 5 | 2020-06-11T14:13:00.000Z | 2021-07-14T05:27:53.000Z | 11_variadic_templates/11_02_pack_expansion/11_02_03_inheritance.cpp | pAbogn/cpp_courses | 6ffa7da5cc440af3327139a38cfdefcfaae1ebed | [
"MIT"
] | 10 | 2021-03-22T07:54:36.000Z | 2021-09-15T04:03:32.000Z | #include <vector>
template <typename... Bases>
struct Derived : Bases... {};
struct Object {};
struct Widget {};
int main() {
Derived<std::vector<int>, Object, Widget> obj;
// Equivalent to
// Derived : std::vector<int>, Object, Widget
}
| 15.9375 | 50 | 0.627451 | pAbogn |
3bf6ee0a38861a1b51a9a2d21cb7ca2d7bf724f4 | 1,155 | cpp | C++ | test/generated/SequenceOf.cpp | Roboauto/fast_ber | 089d3a2dfb3c8b14da066791f578fbec86dcf6c6 | [
"BSL-1.0"
] | null | null | null | test/generated/SequenceOf.cpp | Roboauto/fast_ber | 089d3a2dfb3c8b14da066791f578fbec86dcf6c6 | [
"BSL-1.0"
] | null | null | null | test/generated/SequenceOf.cpp | Roboauto/fast_ber | 089d3a2dfb3c8b14da066791f578fbec86dcf6c6 | [
"BSL-1.0"
] | null | null | null | #include "autogen/sequence_of.hpp"
#include "catch2/catch.hpp"
#include <array>
TEST_CASE("Sequence Of: Encode and decode sequence of")
{
std::array<uint8_t, 100> buffer = {};
fast_ber::Sequence_::SequenceFive sequence = {fast_ber::Sequence_::UnnamedSet0{{""}}};
fast_ber::EncodeResult encode... | 36.09375 | 112 | 0.688312 | Roboauto |
3bf745c95b119c5f2068372f1906a1a429a20952 | 45,153 | cpp | C++ | modules/core/opencl_kernels.cpp | stalinizer/opencv | baefce5e9edf2fdbc35a2d08a8457fa29cfb6ba2 | [
"BSD-3-Clause"
] | null | null | null | modules/core/opencl_kernels.cpp | stalinizer/opencv | baefce5e9edf2fdbc35a2d08a8457fa29cfb6ba2 | [
"BSD-3-Clause"
] | null | null | null | modules/core/opencl_kernels.cpp | stalinizer/opencv | baefce5e9edf2fdbc35a2d08a8457fa29cfb6ba2 | [
"BSD-3-Clause"
] | null | null | null | // This file is auto-generated. Do not edit!
#include "precomp.hpp"
#include "opencl_kernels.hpp"
namespace cv
{
namespace ocl
{
namespace core
{
const struct ProgramEntry arithm={"arithm",
"#ifdef DOUBLE_SUPPORT\n"
"#ifdef cl_amd_fp64\n"
"#pragma OPENCL EXTENSION cl_amd_fp64:enable\n"
"#elif defined cl_khr_fp64\n"
... | 36.035914 | 150 | 0.669789 | stalinizer |
0ec3c6b8458ce2fa78b3b112d456ac56d0ff8bfa | 120 | hxx | C++ | src/Providers/UNIXProviders/SAPStatistics/UNIX_SAPStatistics_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/SAPStatistics/UNIX_SAPStatistics_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/SAPStatistics/UNIX_SAPStatistics_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_AIX
#ifndef __UNIX_SAPSTATISTICS_PRIVATE_H
#define __UNIX_SAPSTATISTICS_PRIVATE_H
#endif
#endif
| 10 | 38 | 0.841667 | brunolauze |
0ec8fb9aa846f1b3e7001810f2ffa2fd7e6cb0e2 | 6,522 | cpp | C++ | FastSparse/src/Grid2D.cpp | jiachangliu/fastSparse | 1b54d5c6d49778a7510c3183f7d59d0b78112b56 | [
"MIT"
] | 7 | 2022-02-25T02:37:40.000Z | 2022-03-29T16:16:28.000Z | FastSparse/src/Grid2D.cpp | jiachangliu/fastSparse | 1b54d5c6d49778a7510c3183f7d59d0b78112b56 | [
"MIT"
] | null | null | null | FastSparse/src/Grid2D.cpp | jiachangliu/fastSparse | 1b54d5c6d49778a7510c3183f7d59d0b78112b56 | [
"MIT"
] | 1 | 2022-03-04T18:59:31.000Z | 2022-03-04T18:59:31.000Z | #include "Grid2D.h"
template <class T>
Grid2D<T>::Grid2D(const T& Xi, const arma::vec& yi, const GridParams<T>& PGi)
{
// automatically selects lambda_0 (but assumes other lambdas are given in PG.P.ModelParams)
X = Ξ
y = &yi;
p = Xi.n_cols;
PG = PGi;
G_nrows = PG.G_nrows;
G_ncols = PG.G_... | 36.033149 | 144 | 0.521926 | jiachangliu |
0ec941e2dcda2ff27db9be303022c927137d9d2d | 1,110 | cpp | C++ | Sources/Sapphire/Tests/GraphTest/GraphFunctionalityTest.cpp | jwkim98/Motutapu | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 1 | 2021-01-11T18:14:04.000Z | 2021-01-11T18:14:04.000Z | Sources/Sapphire/Tests/GraphTest/GraphFunctionalityTest.cpp | jlee335/Sapphire | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 3 | 2020-12-31T13:21:00.000Z | 2021-04-28T09:51:33.000Z | Sources/Sapphire/Tests/GraphTest/GraphFunctionalityTest.cpp | jlee335/Sapphire | f494d23953a18be1aba3261c8e79392f96a140ef | [
"MIT"
] | 2 | 2020-12-31T06:29:54.000Z | 2021-01-11T18:14:23.000Z | // Copyright (c) 2021, Justin Kim
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Sapphire/Tests/GraphTest/GraphFunctionalityTest.hpp>
#include <Sapphire/operations/Forward... | 25.813953 | 75 | 0.695495 | jwkim98 |
0eca4be0596ba77330809af08909fef96b3c6eff | 2,038 | cpp | C++ | src/common/autoware_auto_common/test/test_bool_comparisons.cpp | fanyu2021/fyAutowareAuto | 073661c0634de671ff01bda8a316a5ce10c96ca9 | [
"Apache-2.0"
] | 4 | 2020-12-04T00:38:42.000Z | 2022-02-24T05:48:58.000Z | src/common/autoware_auto_common/test/test_bool_comparisons.cpp | fanyu2021/fyAutowareAuto | 073661c0634de671ff01bda8a316a5ce10c96ca9 | [
"Apache-2.0"
] | null | null | null | src/common/autoware_auto_common/test/test_bool_comparisons.cpp | fanyu2021/fyAutowareAuto | 073661c0634de671ff01bda8a316a5ce10c96ca9 | [
"Apache-2.0"
] | 2 | 2021-09-27T06:19:07.000Z | 2021-09-28T08:18:09.000Z | // Copyright 2020 Mapless AI, Inc.
//
// 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, ... | 45.288889 | 80 | 0.704122 | fanyu2021 |
0ece22317a4a499675e02478c50ab8b1ce3b8291 | 5,817 | hh | C++ | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Headers/Splitter.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Headers/Splitter.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Library/Framework/Headers/Splitter.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
#ifndef __Splitter__
#define __Splitter__
/*
* $Header: /fuji/lewis/RCS/Splitter.hh,v 1.8 1992/09/08 15:34:00 lewis Exp $
*
* Description:
* Support for grouping a bunch of views together, with splitters seperating them, and
* allowing the... | 26.085202 | 106 | 0.731649 | SophistSolutions |
0eded69aeb2f85e106b23f7072dfff725c55fa57 | 627 | cpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/prim/mat/fun/trace_inv_quad_form_ldlt_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/mat/fun/trace_inv_quad_form_ldlt_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/mat/fun/trace_inv_quad_form_ldlt_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim/mat.hpp>
#include <gtest/gtest.h>
TEST(MathMatrix, trace_inv_quad_form_ldlt) {
stan::math::matrix_d A(4,4), B(4,2);
stan::math::LDLT_factor<double,-1,-1> ldlt_A;
A <<
9.0, 3.0, 3.0, 3.0,
3.0, 10.0, 2.0, 2.0,
3.0, 2.0, 7.0, 1.0,
3.0, 2.0, 1.0, 112.0;
B <<
... | 25.08 | 60 | 0.561404 | yizhang-cae |
0eded740698742409f3bd0f125357e6375f4f459 | 1,130 | cpp | C++ | server/Common/Packets/GCOtherSkill.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 3 | 2018-06-19T21:37:38.000Z | 2021-07-31T21:51:40.000Z | server/Common/Packets/GCOtherSkill.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | null | null | null | server/Common/Packets/GCOtherSkill.cpp | viticm/web-pap | 7c9b1f49d9ba8d8e40f8fddae829c2e414ccfeca | [
"BSD-3-Clause"
] | 13 | 2015-01-30T17:45:06.000Z | 2022-01-06T02:29:34.000Z | #include "stdafx.h"
#include "GCOtherSkill.h"
BOOL GCOtherSkill::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_ObjID), sizeof(ObjID_t) ) ;
iStream.Read( (CHAR*)(&m_byListNum), sizeof(BYTE) ) ;
if(m_byListNum > MAX_DAM_LIST_NUM) m_byListNum = MAX_DAM_LIST_NUM;
... | 20.545455 | 128 | 0.695575 | viticm |
0ee391c540791f2c4fcd15b9ccaeddd097c87abd | 663 | cpp | C++ | src/otus_course_project_lib/src/handlers/stop_packet_handler.cpp | winmord/otus_course_project | 8fc2c71b0aa33173c92e31469630fdfe676b77d6 | [
"MIT"
] | null | null | null | src/otus_course_project_lib/src/handlers/stop_packet_handler.cpp | winmord/otus_course_project | 8fc2c71b0aa33173c92e31469630fdfe676b77d6 | [
"MIT"
] | null | null | null | src/otus_course_project_lib/src/handlers/stop_packet_handler.cpp | winmord/otus_course_project | 8fc2c71b0aa33173c92e31469630fdfe676b77d6 | [
"MIT"
] | null | null | null | #include "otus_course_project_lib/handlers/stop_packet_handler.hpp"
#include "otus_course_project_lib/packets/control_packet_ids.hpp"
namespace packet_analyzer
{
stop_packet_handler::stop_packet_handler(std::shared_ptr<std::shared_ptr<i_state>> state)
: state_(std::move(state))
{
}
void stop_packet_handler::ha... | 22.862069 | 90 | 0.755656 | winmord |
0ee4b2f4aefe25f567325fa6de90a9072f9debd1 | 1,956 | cc | C++ | src_tests/test_zstream.cc | MatteoRagni/Utils | 3a25aa381d6d5d9a58d33a401cb99d8988590cac | [
"BSD-2-Clause"
] | null | null | null | src_tests/test_zstream.cc | MatteoRagni/Utils | 3a25aa381d6d5d9a58d33a401cb99d8988590cac | [
"BSD-2-Clause"
] | null | null | null | src_tests/test_zstream.cc | MatteoRagni/Utils | 3a25aa381d6d5d9a58d33a401cb99d8988590cac | [
"BSD-2-Clause"
] | 1 | 2021-10-14T16:13:19.000Z | 2021-10-14T16:13:19.000Z | /*--------------------------------------------------------------------------*\
| |
| Copyright (C) 2017 |
| |
| ... | 43.466667 | 78 | 0.227505 | MatteoRagni |
0ee8e39f7906ff50ef23cdac459a61a013d2a328 | 5,708 | cpp | C++ | timeintegrationrk3.cpp | piccolo255/mhd2d-solver | be635bb6f5f8d3d06a9fa02a15801eedd1f50306 | [
"Unlicense"
] | null | null | null | timeintegrationrk3.cpp | piccolo255/mhd2d-solver | be635bb6f5f8d3d06a9fa02a15801eedd1f50306 | [
"Unlicense"
] | null | null | null | timeintegrationrk3.cpp | piccolo255/mhd2d-solver | be635bb6f5f8d3d06a9fa02a15801eedd1f50306 | [
"Unlicense"
] | null | null | null | #include "timeintegrationrk3.hpp"
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
TimeIntegrationRK3::TimeIntegrationRK3
( size_t nx
, size_t ny
, size_t bufferWidth
, double dtMin
, double dtMax
, double cflNumber
, std::uni... | 36.356688 | 142 | 0.553083 | piccolo255 |
0ee93f28a62d01a83eaf76024cfffac421c87270 | 5,783 | cpp | C++ | executer/compiler/DefaultCompilerAlgorithm.cpp | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | 4 | 2017-01-24T09:32:23.000Z | 2021-08-20T03:29:54.000Z | executer/compiler/DefaultCompilerAlgorithm.cpp | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | null | null | null | executer/compiler/DefaultCompilerAlgorithm.cpp | eladraz/morph | e80b93af449471fb2ca9e256188f9a92f631fbc2 | [
"BSD-3-Clause"
] | 1 | 2021-08-20T03:29:55.000Z | 2021-08-20T03:29:55.000Z | /*
* Copyright (c) 2008-2016, Integrity Project Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list ... | 38.046053 | 116 | 0.667647 | eladraz |
0eee62c4b667affe946ec5560421af053ed8059e | 13,724 | cc | C++ | src/mem/ruby/network/garnet2.0/Router.cc | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet2.0/Router.cc | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/network/garnet2.0/Router.cc | farabimahmud/smart | d968ed5123363e9c05512b355c5d67360902d90f | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2008 Princeton University
* Copyright (c) 2016 Georgia Institute of Technology
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met: redistributions of source code must retai... | 30.7713 | 110 | 0.671379 | farabimahmud |
0eef7273e5337dd1e9b81049609ae6474dcb4963 | 2,512 | cpp | C++ | inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/add_transformation.cpp | slyubimt/openvino | f068a498940d6fa8ac4e831d9dcf2b35a00ed220 | [
"Apache-2.0"
] | null | null | null | inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/add_transformation.cpp | slyubimt/openvino | f068a498940d6fa8ac4e831d9dcf2b35a00ed220 | [
"Apache-2.0"
] | 34 | 2020-11-19T12:27:40.000Z | 2022-02-21T13:14:04.000Z | inference-engine/tests/functional/plugin/shared/src/low_precision_transformations/add_transformation.cpp | mznamens/openvino | ec126c6252aa39a6c63ddf124350a92687396771 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "low_precision_transformations/add_transformation.hpp"
#include <memory>
#include <tuple>
#include <vector>
#include <string>
#include <ie_core.hpp>
#include <transformations/init_node_info.hpp>
#include "lpt_ngraph_funct... | 33.945946 | 109 | 0.68551 | slyubimt |
0ef5ce71a16493ecee1603ef966ab0963c00e384 | 764 | cpp | C++ | sources/Mouse.cpp | NiwakaDev/NIWAKA_X86 | ae07dcd5e006c6b48459c18efd4a65e4492ce7b4 | [
"MIT"
] | 2 | 2022-02-19T04:57:16.000Z | 2022-02-19T05:45:39.000Z | sources/Mouse.cpp | NiwakaDev/NIWAKA_X86 | ae07dcd5e006c6b48459c18efd4a65e4492ce7b4 | [
"MIT"
] | 1 | 2022-02-19T04:59:05.000Z | 2022-02-19T11:02:17.000Z | sources/Mouse.cpp | NiwakaDev/NIWAKA_X86 | ae07dcd5e006c6b48459c18efd4a65e4492ce7b4 | [
"MIT"
] | null | null | null | #include "Pic.h"
#include "Mouse.h"
Mouse::Mouse(Pic* pic){
this->pic = pic;
assert(this->pic!=NULL);
this->enable_flg = false;
}
void Mouse::Out8(unsigned int addr, unsigned char data){
this->Error("Stopped at Mouse::Out8");
}
unsigned char Mouse::In8(unsigned int addr){
switch(addr){
ca... | 20.105263 | 87 | 0.626963 | NiwakaDev |
0ef6031a84b2fe235faee44ebfc5dabe2ac328d2 | 4,066 | cc | C++ | src/lib/shader.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | 15 | 2015-03-18T18:07:30.000Z | 2020-10-15T16:59:19.000Z | src/lib/shader.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | null | null | null | src/lib/shader.cc | jube/mapmaker | e2eb6b1fbc3d803d56817aea86b350bd26ad5fa4 | [
"ISC"
] | 1 | 2020-01-16T17:37:11.000Z | 2020-01-16T17:37:11.000Z | /*
* Copyright (c) 2014, Julien Bernard
*
* 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.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... | 26.575163 | 80 | 0.490408 | jube |
0efa0eb26e19988f843998738a12ccfa700dacb6 | 885 | cpp | C++ | TinyEngine/src/math/SphericalCoordinate.cpp | Kimau/KhronosSandbox | e06caed3ab85e620ac2c5860fd31cef6ed6418c3 | [
"Apache-2.0"
] | 68 | 2020-04-14T11:03:26.000Z | 2020-06-11T16:17:29.000Z | TinyEngine/src/math/SphericalCoordinate.cpp | Kimau/KhronosSandbox | e06caed3ab85e620ac2c5860fd31cef6ed6418c3 | [
"Apache-2.0"
] | 5 | 2020-05-16T05:32:16.000Z | 2020-05-21T11:09:52.000Z | TinyEngine/src/math/SphericalCoordinate.cpp | Kimau/KhronosSandbox | e06caed3ab85e620ac2c5860fd31cef6ed6418c3 | [
"Apache-2.0"
] | 1 | 2021-03-19T22:47:00.000Z | 2021-03-19T22:47:00.000Z | #include "SphericalCoordinate.h"
#include <cmath>
// https://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates
SphericalCoordinate::SphericalCoordinate(float theta, float phi, float rho) :
theta(theta), phi(phi), rho(rho)
{
}
SphericalCoordinate::SphericalCoordinate(const glm::vec3& cartesian... | 20.113636 | 82 | 0.736723 | Kimau |
0efa41989f4a97fb86a1afda9994f8fd1199bbd5 | 511 | cpp | C++ | set1/fixed_xor_test.cpp | guzhoucan/cryptopals | a45280158867a86b5d8c61bf7194277d05abdf14 | [
"MIT"
] | 1 | 2020-08-07T22:38:27.000Z | 2020-08-07T22:38:27.000Z | set1/fixed_xor_test.cpp | guzhoucan/cryptopals | a45280158867a86b5d8c61bf7194277d05abdf14 | [
"MIT"
] | null | null | null | set1/fixed_xor_test.cpp | guzhoucan/cryptopals | a45280158867a86b5d8c61bf7194277d05abdf14 | [
"MIT"
] | null | null | null | #include "fixed_xor.h"
#include "absl/strings/escaping.h"
#include "gtest/gtest.h"
namespace cryptopals {
namespace {
TEST(FixedXorTest, Test) {
std::string str1 =
absl::HexStringToBytes("1c0111001f010100061a024b53535009181c");
std::string str2 =
absl::HexStringToBytes("686974207468652062756c6c277320... | 25.55 | 69 | 0.739726 | guzhoucan |
0efec0e1d0a0d75f12b4de3dad7dcd9e2eba9bf3 | 9,358 | hpp | C++ | source/NanairoCore/Material/SurfaceModel/Surface/microcylinder.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 30 | 2015-09-06T03:14:29.000Z | 2021-06-18T11:00:19.000Z | source/NanairoCore/Material/SurfaceModel/Surface/microcylinder.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 31 | 2016-01-14T14:50:34.000Z | 2018-06-25T13:21:48.000Z | source/NanairoCore/Material/SurfaceModel/Surface/microcylinder.hpp | byzin/Nanairo | 23fb6deeec73509c538a9c21009e12be63e8d0e4 | [
"MIT"
] | 6 | 2017-04-09T13:07:47.000Z | 2021-05-29T21:17:34.000Z | ///*!
// \file microcylinder.hpp
// \author Sho Ikeda
//
// Copyright (c) 2015-2018 Sho Ikeda
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
// */
//
//#ifndef NANAIRO_MICROCYLINDER_HPP
//#define NANAIRO_MICROCYLINDER_HPP
//
//// Standard C++ library
//#inclu... | 34.404412 | 88 | 0.543172 | byzin |
0efff81ac4c3b0f07d92761306b2ff776a092c86 | 13,590 | cpp | C++ | Tasks/Task-396-Azure_IoT_Hub/main.cpp | KTP20/Embedded-Systems | 0b2d78c813c056bfc1779370986bde4970716638 | [
"Apache-2.0"
] | null | null | null | Tasks/Task-396-Azure_IoT_Hub/main.cpp | KTP20/Embedded-Systems | 0b2d78c813c056bfc1779370986bde4970716638 | [
"Apache-2.0"
] | null | null | null | Tasks/Task-396-Azure_IoT_Hub/main.cpp | KTP20/Embedded-Systems | 0b2d78c813c056bfc1779370986bde4970716638 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Arm Limited
* SPDX-License-Identifier: Apache-2.0
*/
#include "mbed.h"
#include "rtos/ThisThread.h"
#include "NTPClient.h"
#include "certs.h"
#include "iothub.h"
#include "iothub_client_options.h"
#include "iothub_device_client.h"
#include "iothub_message.h"
#include "azure_c_shared_utility... | 30.886364 | 173 | 0.598602 | KTP20 |
160b52fdee3ec7528c05fcc28699e68bdcb9b449 | 1,569 | cpp | C++ | src/examples/echoer.cpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/examples/echoer.cpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/examples/echoer.cpp | Bormachine-Learning/embedded | 165daf847fe9c2a7bcc17c7aee4c5e28b3cf4055 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /**
Copyright 2019 Bosch Engineering Center Cluj and BFMC organizers
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 l... | 32.020408 | 88 | 0.615041 | Bormachine-Learning |
160c1fe370c324b569fb164b83aa96cf6381c560 | 1,743 | hpp | C++ | src/models/BorderEntity.hpp | sergiofenoll/Gradius | 5d904f87e6791c5c8ac8f4738f525c7ef3e04b7c | [
"CC-BY-4.0"
] | null | null | null | src/models/BorderEntity.hpp | sergiofenoll/Gradius | 5d904f87e6791c5c8ac8f4738f525c7ef3e04b7c | [
"CC-BY-4.0"
] | null | null | null | src/models/BorderEntity.hpp | sergiofenoll/Gradius | 5d904f87e6791c5c8ac8f4738f525c7ef3e04b7c | [
"CC-BY-4.0"
] | null | null | null | #ifndef BORDER_ENTITY_HPP
#define BORDER_ENTITY_HPP
#include "Entity.hpp"
#include "../utils/Stopwatch.hpp"
namespace sff {
namespace game {
/**
* @brief Entity that represents the deadly borders of the game window
*/
class BorderEntity : public Entity {
public:
using shared = std::shared_ptr<BorderE... | 27.666667 | 88 | 0.689616 | sergiofenoll |
160c7b5063344dae7e25c1d0e36f2d1e38b06655 | 3,041 | cpp | C++ | core/tests/core.container.graph.test.cpp | toeb/cpp.core | 84c782b1e0919dd598c3c19c8e5c71f27453ebf2 | [
"MIT"
] | 2 | 2016-10-25T19:42:49.000Z | 2017-03-25T22:26:03.000Z | core/tests/core.container.graph.test.cpp | toeb/cpp.core | 84c782b1e0919dd598c3c19c8e5c71f27453ebf2 | [
"MIT"
] | null | null | null | core/tests/core.container.graph.test.cpp | toeb/cpp.core | 84c782b1e0919dd598c3c19c8e5c71f27453ebf2 | [
"MIT"
] | null | null | null | #include <core.testing.h>
#include <core.graph.h>
NS_BEGIN(CORE_NAMESPACE)
namespace graph{
namespace test{
TEST(CreateNode, DataNode){
DataNode<int> uut(2);
CHECK(uut.data() == 2);
}
TEST(CreateNode2, DataNode){
DataNode<int> uut(2);
uut = 9;
CHECK(uut... | 22.864662 | 80 | 0.494574 | toeb |
161032992d8d0127b400a01fc25f69e4152b3b5c | 2,204 | cpp | C++ | reto1.cpp | Ignacio-Moral-22/TC1031_Reto | 5a7fe2400e8235d0868bd33c80359f43dfc4b23f | [
"MIT"
] | null | null | null | reto1.cpp | Ignacio-Moral-22/TC1031_Reto | 5a7fe2400e8235d0868bd33c80359f43dfc4b23f | [
"MIT"
] | null | null | null | reto1.cpp | Ignacio-Moral-22/TC1031_Reto | 5a7fe2400e8235d0868bd33c80359f43dfc4b23f | [
"MIT"
] | null | null | null | #include "read_csv.hpp"
#include "clase_archivo.hpp"
#include "sorter.hpp"
#include <vector>
#include <iostream>
#include <string>
/*
Para esta actividad, se nos encargó de generar un programa que leyera una carga de archivos,
y que pudiera responder ciertas preguntas, además de que implementamos métodos de búsqueda ... | 34.4375 | 102 | 0.75 | Ignacio-Moral-22 |
161486f8214ca94b8dff8441dbc585fbf2dfc8b4 | 232 | hpp | C++ | include/tolua/LuaUtils.hpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 29 | 2020-04-22T01:31:30.000Z | 2022-02-03T12:21:29.000Z | include/tolua/LuaUtils.hpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 6 | 2020-04-17T10:31:56.000Z | 2021-09-10T12:07:22.000Z | include/tolua/LuaUtils.hpp | TerensTare/tnt | 916067a9bf697101afb1d0785112aa34014e8126 | [
"MIT"
] | 7 | 2020-03-13T01:50:41.000Z | 2022-03-06T23:44:29.000Z | #ifndef TNT_EXPORT_UTILS_TO_LUA
#define TNT_EXPORT_UTILS_TO_LUA
#include <sol/forward.hpp>
#include "core/Config.hpp"
namespace tnt::lua
{
TNT_API void loadSparseSet(sol::state_view lua_);
}
#endif // !TNT_EXPORT_UTILS_TO_LUA | 19.333333 | 53 | 0.784483 | TerensTare |
1617900d52330f5f0a7a807eac7b535b6890d280 | 1,921 | cpp | C++ | AfxHookGoldSrc/hooks/hw/Mod_LeafPvs.cpp | hobokenn/advancedfx | 4c695f94b9b1bbf1e326ebaf5434467ba087a97a | [
"MIT"
] | 339 | 2018-01-09T13:12:38.000Z | 2022-03-22T21:25:59.000Z | AfxHookGoldSrc/hooks/hw/Mod_LeafPvs.cpp | hobokenn/advancedfx | 4c695f94b9b1bbf1e326ebaf5434467ba087a97a | [
"MIT"
] | 474 | 2018-01-01T18:58:41.000Z | 2022-03-27T11:09:44.000Z | AfxHookGoldSrc/hooks/hw/Mod_LeafPvs.cpp | hobokenn/advancedfx | 4c695f94b9b1bbf1e326ebaf5434467ba087a97a | [
"MIT"
] | 77 | 2018-01-24T11:47:04.000Z | 2022-03-30T12:25:59.000Z | #include "stdafx.h"
#include "Mod_LeafPvs.h"
#include <hl_addresses.h>
#include <hlsdk.h>
#include <Windows.h>
#include <deps/release/Detours/src/detours.h>
//
// Mod_LeafPVS WH related stuff:
//
// Hints:
// 01d51d90 R_RenderView (found by searching for "%3ifps %3i ms %4i wpoly %4i epoly\n")
... | 24.0125 | 98 | 0.698594 | hobokenn |
161e91679977fa95a362ec56458bd2eaa142df02 | 5,063 | hpp | C++ | include/gapi/framebuffer.hpp | RamblingMadMan/gapi | 29c2e70990c9097ee470159bfaad64f24bc90021 | [
"BSD-3-Clause"
] | 1 | 2017-03-02T14:21:51.000Z | 2017-03-02T14:21:51.000Z | include/gapi/framebuffer.hpp | RamblingMadMan/gapi | 29c2e70990c9097ee470159bfaad64f24bc90021 | [
"BSD-3-Clause"
] | null | null | null | include/gapi/framebuffer.hpp | RamblingMadMan/gapi | 29c2e70990c9097ee470159bfaad64f24bc90021 | [
"BSD-3-Clause"
] | null | null | null | #ifndef GAPI_FRAMEBUFFER_HPP
#define GAPI_FRAMEBUFFER_HPP 1
#include <cstddef>
#include <system_error>
#include "types.hpp"
#include "constants.hpp"
#include "functions.hpp"
#include "texture.hpp"
#include "utility.hpp"
namespace gapi{
//! framebuffer draw buffers category for std::system_error
class framebuffer_d... | 29.95858 | 102 | 0.694252 | RamblingMadMan |
161f39de0ffee44baf35d4c835140290c983fd27 | 2,677 | cpp | C++ | dbms/src/IO/tests/hashing_write_buffer.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/IO/tests/hashing_write_buffer.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/IO/tests/hashing_write_buffer.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// 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... | 27.316327 | 103 | 0.571909 | solotzg |
162292d41d7a05aeb487eba34e9f4d411a956fce | 133 | cpp | C++ | Society2.0/Society2.0/HiveTest.cpp | simsim314/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-07-11T13:10:43.000Z | 2019-07-11T13:10:43.000Z | Society2.0/Society2.0/HiveTest.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2019-02-19T12:32:52.000Z | 2019-03-07T20:49:50.000Z | Society2.0/Society2.0/HiveTest.cpp | mdheller/Society2.0 | a95e42122e2541b7544dd641247681996f1e625a | [
"Unlicense"
] | 1 | 2020-01-10T12:37:30.000Z | 2020-01-10T12:37:30.000Z | #include "HiveTest.h"
void HiveTest::EstimatesResults()
{
}
HiveTest::HiveTest()
{
}
HiveTest::~HiveTest()
{
}
| 7.823529 | 34 | 0.571429 | simsim314 |
1623b195d9c82ef7d4c393502282699ef25d8da0 | 78 | cpp | C++ | test/testSerialization.cpp | martinmozi/jsonVariant | 9c8fdf2f15b0c9b424bce4e87ffb6508979ac567 | [
"MIT"
] | 3 | 2018-11-23T22:42:44.000Z | 2021-02-11T11:00:22.000Z | test/testSerialization.cpp | martinmozi/jsonVariant | 9c8fdf2f15b0c9b424bce4e87ffb6508979ac567 | [
"MIT"
] | null | null | null | test/testSerialization.cpp | martinmozi/jsonVariant | 9c8fdf2f15b0c9b424bce4e87ffb6508979ac567 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
TEST(exampleTest, test1) {
EXPECT_EQ (0, 0);
}
| 13 | 26 | 0.628205 | martinmozi |
1625ae21ce33d359a7e33eab2367575d5b220dd8 | 1,864 | cpp | C++ | vkconfig/widget_setting_int_range.cpp | Puschel2020/VulkanTools | 6698657af2291c8cba809069a77e8fc90ff70406 | [
"Apache-2.0"
] | null | null | null | vkconfig/widget_setting_int_range.cpp | Puschel2020/VulkanTools | 6698657af2291c8cba809069a77e8fc90ff70406 | [
"Apache-2.0"
] | null | null | null | vkconfig/widget_setting_int_range.cpp | Puschel2020/VulkanTools | 6698657af2291c8cba809069a77e8fc90ff70406 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Valve Corporation
* Copyright (c) 2020 LunarG, 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
*
* Unl... | 38.040816 | 120 | 0.707082 | Puschel2020 |
1626c2ff47974452a048dfe4ebf9b44b70351298 | 6,631 | cpp | C++ | src/http/routing.cpp | windoze/fibio-http | 3c220a9467eda84b37aafa97364d47b28f1fc407 | [
"BSD-2-Clause"
] | 1 | 2021-05-12T14:46:58.000Z | 2021-05-12T14:46:58.000Z | src/http/routing.cpp | windoze/fibio-http | 3c220a9467eda84b37aafa97364d47b28f1fc407 | [
"BSD-2-Clause"
] | null | null | null | src/http/routing.cpp | windoze/fibio-http | 3c220a9467eda84b37aafa97364d47b28f1fc407 | [
"BSD-2-Clause"
] | 2 | 2017-12-16T11:22:24.000Z | 2021-05-13T01:06:01.000Z | //
// routing.cpp
// fibio-http
//
// Created by Chen Xu on 14/10/12.
// Copyright (c) 2014 0d0a.com. All rights reserved.
//
#include <fibio/http/server/routing.hpp>
#include "url_parser.hpp"
namespace fibio { namespace http {
match_type operator&&(const match_type &lhs, const match_type &rhs) {
stru... | 33.659898 | 95 | 0.457397 | windoze |
162b1a7546e3f005825d9fa8678ceb0a1b8aca3e | 826 | cpp | C++ | Console-Spinner/Spinners/SpinnerFactory.cpp | bargoldi/console-spinner | 9809f55683d3fe9c517c77e2825f75ce4956014c | [
"MIT"
] | 5 | 2017-08-17T06:46:06.000Z | 2020-05-29T13:27:40.000Z | Console-Spinner/Spinners/SpinnerFactory.cpp | bargoldi/console-spinner | 9809f55683d3fe9c517c77e2825f75ce4956014c | [
"MIT"
] | null | null | null | Console-Spinner/Spinners/SpinnerFactory.cpp | bargoldi/console-spinner | 9809f55683d3fe9c517c77e2825f75ce4956014c | [
"MIT"
] | 3 | 2019-04-30T13:57:13.000Z | 2020-02-25T19:45:08.000Z | #include <iostream>
#include <map>
#include <vector>
#include "SpinnerFactory.h"
#include "OneLineSpinner.h"
#include "TwoLinesSpinner.h"
#include "ThreeLinesSpinner.h"
SpinnerFactory::SpinnerFactory() {
this->spinnersMap["1 Lines Spinner"] = new OneLineSpinner();
this->spinnersMap["2 Lines Spinner"] = new TwoLine... | 22.944444 | 64 | 0.730024 | bargoldi |
162bf2fe14fe00258bbbac66d2e6cdbb38551fd8 | 968 | hpp | C++ | src/core/actions/change_categories_name_action.hpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 3 | 2019-04-26T17:48:24.000Z | 2021-11-08T20:21:51.000Z | src/core/actions/change_categories_name_action.hpp | svendcsvendsen/judoassistant | 453211bff86d940c2b2de6f9eea2aabcdab830fa | [
"MIT"
] | 90 | 2019-04-25T17:23:10.000Z | 2022-02-12T19:49:55.000Z | src/core/actions/change_categories_name_action.hpp | judoassistant/judoassistant | 3b200d3e35d9aff16ba224e6071ee9d888a5a03c | [
"MIT"
] | null | null | null | #pragma once
#include "core/actions/action.hpp"
class TournamentStore;
class CategoryId;
class ChangeCategoriesNameAction : public Action {
public:
ChangeCategoriesNameAction() = default;
ChangeCategoriesNameAction(std::vector<CategoryId> categoryIds, const std::string &value);
void redoImpl(TournamentSt... | 26.888889 | 94 | 0.751033 | svendcsvendsen |
162def1847af69ce1a0d08ff242028b7b8901802 | 1,864 | cpp | C++ | Motor2D/j1Item.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 11 | 2017-02-16T18:30:43.000Z | 2021-08-07T11:40:49.000Z | Motor2D/j1Item.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 81 | 2017-02-16T18:27:02.000Z | 2017-06-07T20:23:40.000Z | Motor2D/j1Item.cpp | NontendoSL/Zelda-a-Link-to-the-Past-TRIBUTE | 8676c7fc70b6dea54cd173b42c5006f34ab82404 | [
"Apache-2.0"
] | 5 | 2017-03-01T14:49:24.000Z | 2021-08-07T11:40:51.000Z | #include "j1Item.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "j1App.h"
#include "j1Collision.h"
Item::Item() : SceneElement()
{
name = "items";
type = ITEM;
}
Item::~Item()
{
App->tex->UnLoad(texture);
}
bool Item::Awake(pugi::xml_node &conf, uint item_id, iPoint pos)
{
bool stop_search = false;
... | 15.533333 | 105 | 0.590129 | NontendoSL |
162e2a78bc0c912f4935e00e0c4fd148927bc860 | 3,147 | cpp | C++ | core/src/events/profileEvents.cpp | Zefiros-Software/CoreLib | 646d544ac0877ab48aa375bd06141dfda83c37d5 | [
"MIT"
] | 1 | 2016-09-27T08:18:10.000Z | 2016-09-27T08:18:10.000Z | core/src/events/profileEvents.cpp | Zefiros-Software/CoreLib | 646d544ac0877ab48aa375bd06141dfda83c37d5 | [
"MIT"
] | null | null | null | core/src/events/profileEvents.cpp | Zefiros-Software/CoreLib | 646d544ac0877ab48aa375bd06141dfda83c37d5 | [
"MIT"
] | null | null | null | /**
* @cond ___LICENSE___
*
* Copyright (c) 2016-2018 Zefiros Software.
*
* 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
... | 31.787879 | 113 | 0.68891 | Zefiros-Software |
163552b8e0247a3717f95c4239fbfdb86536fe09 | 8,011 | cpp | C++ | Actor/Characters/Enemy/GBoxEnemy_Long/GBoxEnemy_Long.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/GBoxEnemy_Long/GBoxEnemy_Long.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/GBoxEnemy_Long/GBoxEnemy_Long.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "GBoxEnemy_Long.h"
#include "GBoxEnemyLong_Bullet.h"
#include "AIC_GBoxEnemy_Long.h"
#include "AnimInst_GBoxEnemy_Long.h"
#include "State/StateMng_GBELong.h"
#include "Libraries/Components/AnimationMng/Cpt_AnimationMng.h"
#include... | 31.415686 | 208 | 0.785545 | Bornsoul |
163570725dd08077632aced90d3df16555532115 | 285 | cpp | C++ | audio_editor_core/audio_editor_core/ui/ae_ui_button_utils.cpp | objective-audio/audio_editor | 649f74cdca3d7db3d618922a345ea158a0c03a1d | [
"MIT"
] | null | null | null | audio_editor_core/audio_editor_core/ui/ae_ui_button_utils.cpp | objective-audio/audio_editor | 649f74cdca3d7db3d618922a345ea158a0c03a1d | [
"MIT"
] | null | null | null | audio_editor_core/audio_editor_core/ui/ae_ui_button_utils.cpp | objective-audio/audio_editor | 649f74cdca3d7db3d618922a345ea158a0c03a1d | [
"MIT"
] | null | null | null | //
// ae_ui_button_utils.cpp
//
#include "ae_ui_button_utils.h"
#include <type_traits>
using namespace yas;
using namespace yas::ae;
std::size_t ui_button_utils::to_state_idx(ui_button_state const state) {
return static_cast<std::underlying_type_t<ui_button_state>>(state);
}
| 19 | 72 | 0.768421 | objective-audio |
1638d5b01abe01de31f418703d6918cb50600cb3 | 6,812 | cpp | C++ | src/conversion_helpers/lexer.cpp | thecodedproject/json | 989cbcd1a56fa043280e632a6ad14414de0ad429 | [
"BSD-3-Clause"
] | null | null | null | src/conversion_helpers/lexer.cpp | thecodedproject/json | 989cbcd1a56fa043280e632a6ad14414de0ad429 | [
"BSD-3-Clause"
] | null | null | null | src/conversion_helpers/lexer.cpp | thecodedproject/json | 989cbcd1a56fa043280e632a6ad14414de0ad429 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright (c) 2018, Coded Project
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions an... | 27.467742 | 81 | 0.670288 | thecodedproject |
163901f6e9214d86e265e0702c311b477fa6f8f5 | 1,421 | hpp | C++ | src/io.hpp | StanislavKlenin/httptth | 370faea7b8c7614293402b9dfe8e6d3910068067 | [
"BSD-2-Clause"
] | null | null | null | src/io.hpp | StanislavKlenin/httptth | 370faea7b8c7614293402b9dfe8e6d3910068067 | [
"BSD-2-Clause"
] | null | null | null | src/io.hpp | StanislavKlenin/httptth | 370faea7b8c7614293402b9dfe8e6d3910068067 | [
"BSD-2-Clause"
] | null | null | null | #ifndef __IO_H__
#define __IO_H__
#include <stddef.h>
#include <functional>
#include <string>
namespace httptth
{
// some core concepts
class readable // abstract / interface
{
public:
enum class status
{
again = -1,
eof = 0,
ok = 1
};
public:
virtual ~readable()... | 22.555556 | 79 | 0.638987 | StanislavKlenin |
163976d3c3d6240cecac379882913a3f82efefc9 | 3,704 | cpp | C++ | texmap/tmapflat_d2.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 22 | 2019-08-19T21:09:29.000Z | 2022-03-25T23:19:15.000Z | texmap/tmapflat_d2.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 6 | 2019-11-08T22:17:03.000Z | 2022-03-10T05:02:59.000Z | texmap/tmapflat_d2.cpp | Kreeblah/ChocolateDescent | ce575a8193c4fa560731203d9aea66355c41cc0d | [
"MIT"
] | 6 | 2019-08-24T08:03:14.000Z | 2022-02-04T15:04:52.000Z | /*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... | 26.269504 | 97 | 0.705454 | Kreeblah |
163aa1d1115c309029f8634f8ec96a72b8526b38 | 1,537 | cpp | C++ | nnforge/plain/dropout_layer_tester_plain.cpp | anshumang/nnForgeINST | 1e9ea1b539cadbb03daa39f5d81025c1b17c21d8 | [
"Apache-2.0"
] | 2 | 2015-08-19T08:02:59.000Z | 2017-06-18T21:10:36.000Z | nnforge/plain/dropout_layer_tester_plain.cpp | anshumang/nnForgeINST | 1e9ea1b539cadbb03daa39f5d81025c1b17c21d8 | [
"Apache-2.0"
] | null | null | null | nnforge/plain/dropout_layer_tester_plain.cpp | anshumang/nnForgeINST | 1e9ea1b539cadbb03daa39f5d81025c1b17c21d8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2011-2014 Maxim Milakov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 29.557692 | 77 | 0.744958 | anshumang |
163bb8559126d8e488eee77faef1fe3b6e13880a | 4,955 | hpp | C++ | SDK/ARKSurvivalEvolved_Buff_TekBowHelper_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Buff_TekBowHelper_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Buff_TekBowHelper_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Buff_TekBowHelper_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------------------... | 78.650794 | 208 | 0.583451 | 2bite |
f37ddeb5014c71beff8b86c15f12ca608717be1f | 1,454 | hpp | C++ | utility/implicit-value.hpp | ExploreWilder/libutility | b3600d5bc77211c567674032ad1a7c65ff56cc1b | [
"BSD-2-Clause"
] | 2 | 2018-08-26T07:34:38.000Z | 2019-02-25T07:27:57.000Z | utility/implicit-value.hpp | ExploreWilder/libutility | b3600d5bc77211c567674032ad1a7c65ff56cc1b | [
"BSD-2-Clause"
] | 1 | 2021-02-22T17:23:02.000Z | 2021-04-08T15:18:57.000Z | utility/implicit-value.hpp | ExploreWilder/libutility | b3600d5bc77211c567674032ad1a7c65ff56cc1b | [
"BSD-2-Clause"
] | 3 | 2019-09-25T05:22:06.000Z | 2022-03-29T09:18:42.000Z | #ifndef utility_implicit_value_hpp_included_
#define utility_implicit_value_hpp_included_
#include <boost/program_options.hpp>
/** Misbehaving implicit value workaround for Boost 1.59-1.64
*/
namespace utility {
#if (BOOST_VERSION >= 105900) && (BOOST_VERSION < 106500)
/** Special typed-value to overcome problem ... | 26.925926 | 78 | 0.737964 | ExploreWilder |
f3801d9259efd31e5fabda51edce6b892e8e9293 | 2,999 | cpp | C++ | src/appleseed/renderer/utility/oiiomaketexture.cpp | Chargnn/appleseed | 81ee2da5cec47f8fb85bd3c2470256de9c9ad146 | [
"MIT"
] | null | null | null | src/appleseed/renderer/utility/oiiomaketexture.cpp | Chargnn/appleseed | 81ee2da5cec47f8fb85bd3c2470256de9c9ad146 | [
"MIT"
] | null | null | null | src/appleseed/renderer/utility/oiiomaketexture.cpp | Chargnn/appleseed | 81ee2da5cec47f8fb85bd3c2470256de9c9ad146 | [
"MIT"
] | null | null | null |
//
// This source file is part of appleseed.
// Visit https://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2019 Jonathan Dent, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any person obtainin... | 33.322222 | 95 | 0.731911 | Chargnn |
f3828154aa8b7ac018e15623becc0e163a63fe74 | 508 | cpp | C++ | HackerRank/Challenges/time-conversion.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/time-conversion.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/time-conversion.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
string str;
int v;
cin >> str;
v = (str[0]-48) * 10 + str[1] - 48;
if(str[8] == 'P') {
if(v != 12) {
v+=12;
}
}else{
if... | 15.875 | 39 | 0.403543 | Diggzinc |
f386aff4291f7fdbf49864bea1f5b0fd39f6a836 | 513 | cpp | C++ | 14 display full name in c++.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | 14 display full name in c++.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | 14 display full name in c++.cpp | pujanmahat/c-oop-programme | 8f48bf409e27dbf9c03c8b3cb0a7a7dcdbc0ee46 | [
"Apache-2.0"
] | null | null | null | // wap to input your name and roll no. display your name if entered roll no is even using c++.
#include <iostream>
using namespace std;
int main()
{
string fullname;
cout<<"what is your full name "<<endl;
getline(cin,fullname);
cout<<"name :"<<fullname<<endl;
/* int roll;
string name;
cout<<"enter ro... | 19.730769 | 95 | 0.608187 | pujanmahat |
f387ad09bad986d2b95bb1299ec63340fb647aee | 5,309 | hpp | C++ | src/cpu/x64/jit_uni_binary_kernel.hpp | aletru01/oneDNN | ca6ca816faa92025a231f3ff1d110b73c5a460c1 | [
"Apache-2.0"
] | null | null | null | src/cpu/x64/jit_uni_binary_kernel.hpp | aletru01/oneDNN | ca6ca816faa92025a231f3ff1d110b73c5a460c1 | [
"Apache-2.0"
] | null | null | null | src/cpu/x64/jit_uni_binary_kernel.hpp | aletru01/oneDNN | ca6ca816faa92025a231f3ff1d110b73c5a460c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2021 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... | 34.699346 | 80 | 0.690526 | aletru01 |
f38ace99e026d5413a56efb61d5a7e61c6535322 | 13,169 | cc | C++ | src/OpenMesh/Core/IO/reader/STLReader.cc | rzoller/OpenMesh | f84bca0b26c61eab5f9335b2191962ca8545c5f6 | [
"BSD-3-Clause"
] | null | null | null | src/OpenMesh/Core/IO/reader/STLReader.cc | rzoller/OpenMesh | f84bca0b26c61eab5f9335b2191962ca8545c5f6 | [
"BSD-3-Clause"
] | null | null | null | src/OpenMesh/Core/IO/reader/STLReader.cc | rzoller/OpenMesh | f84bca0b26c61eab5f9335b2191962ca8545c5f6 | [
"BSD-3-Clause"
] | null | null | null | /* ========================================================================= *
* *
* OpenMesh *
* Copyright (c) 2001-2015, RWTH-Aachen University *
* ... | 26.60404 | 101 | 0.482573 | rzoller |
f38c410ade3295a654d01a54804e470cdbe2fccc | 924 | hpp | C++ | src/libs/crypto/include/keto/crypto/HashGenerator.hpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | 1 | 2020-03-04T10:38:00.000Z | 2020-03-04T10:38:00.000Z | src/libs/crypto/include/keto/crypto/HashGenerator.hpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | null | null | null | src/libs/crypto/include/keto/crypto/HashGenerator.hpp | burntjam/keto | dbe32916a3bbc92fa0bbcb97d9de493d7ed63fd8 | [
"MIT"
] | 1 | 2020-03-04T10:38:01.000Z | 2020-03-04T10:38:01.000Z | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: HashGenerator.hpp
* Author: ubuntu
*
* Created on February 6, 2018, 2:32 PM
*/
#ifndef HASHGENERATOR_HPP
#define H... | 22 | 85 | 0.721861 | burntjam |
f395411512597720cceef7d6d546f47287667025 | 9,765 | cc | C++ | src/kudu/util/process_memory.cc | xiaokai-wang/kudu | 83629487dac71104e1d4854c49507450f9fa8008 | [
"Apache-2.0"
] | 1 | 2020-01-18T03:52:46.000Z | 2020-01-18T03:52:46.000Z | src/kudu/util/process_memory.cc | xiaokai-wang/kudu | 83629487dac71104e1d4854c49507450f9fa8008 | [
"Apache-2.0"
] | null | null | null | src/kudu/util/process_memory.cc | xiaokai-wang/kudu | 83629487dac71104e1d4854c49507450f9fa8008 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 33.90625 | 99 | 0.717665 | xiaokai-wang |
f39935251ac443b83e277bd7f182d12a8dd88b9f | 870 | cpp | C++ | cpp/metaproggramming/task_dsl_v2/main.cpp | haohua-li/code-snippet | c36f979333a6b7214ac7ef05d4f319bf5323bfc2 | [
"MIT"
] | 66 | 2020-08-24T06:02:25.000Z | 2022-03-09T21:17:09.000Z | cpp/metaproggramming/task_dsl_v2/main.cpp | haohua-li/code-snippet | c36f979333a6b7214ac7ef05d4f319bf5323bfc2 | [
"MIT"
] | 1 | 2020-11-21T01:43:53.000Z | 2020-11-21T01:43:53.000Z | cpp/metaproggramming/task_dsl_v2/main.cpp | haohua-li/code-snippet | c36f979333a6b7214ac7ef05d4f319bf5323bfc2 | [
"MIT"
] | 13 | 2020-10-16T03:23:30.000Z | 2022-03-21T02:27:50.000Z | /*************************************************************************
> File Name: TaskDSLv2.cpp
> Author: Netcan
> Descripton: TaskDSLv2
> Blog: https://netcan.github.io/
> Mail: 1469709759@qq.com
> Created Time: 2020-08-27 22:38
************************************************************... | 30 | 74 | 0.468966 | haohua-li |
f39dddc66980b9cfc70cabfb3422b0c5ae1e937b | 9,021 | cpp | C++ | Source/IO/Checkpoint.cpp | asalmgren/ERF | b3112b709dbc1febde0b224ea26d2ce10ff73d25 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/IO/Checkpoint.cpp | asalmgren/ERF | b3112b709dbc1febde0b224ea26d2ce10ff73d25 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/IO/Checkpoint.cpp | asalmgren/ERF | b3112b709dbc1febde0b224ea26d2ce10ff73d25 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <ERF.H>
// utility to skip to next line in Header
void
ERF::GotoNextLine (std::istream& is)
{
constexpr std::streamsize bl_ignore_max { 100000 };
is.ignore(bl_ignore_max, '\n');
}
void
ERF::WriteCheckpointFile () const
{
// chk00010 write a checkpoint file with this root directory
... | 34.30038 | 112 | 0.602816 | asalmgren |
f3a10c2af5ec838042c1d09918cfde9464690074 | 1,707 | cpp | C++ | test/Datadog.Trace.ClrProfiler.Native.Tests/version_struct_test.cpp | anuragvajpayee/opentelemetry-dotnet-instrumentation | a7f8482df233e2b3c6fc43566de174ed30864cf6 | [
"Apache-2.0"
] | null | null | null | test/Datadog.Trace.ClrProfiler.Native.Tests/version_struct_test.cpp | anuragvajpayee/opentelemetry-dotnet-instrumentation | a7f8482df233e2b3c6fc43566de174ed30864cf6 | [
"Apache-2.0"
] | null | null | null | test/Datadog.Trace.ClrProfiler.Native.Tests/version_struct_test.cpp | anuragvajpayee/opentelemetry-dotnet-instrumentation | a7f8482df233e2b3c6fc43566de174ed30864cf6 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "../../src/OpenTelemetry.AutoInstrumentation.ClrProfiler.Native/integration.h"
using namespace trace;
TEST(VersionStructTest, Major2GreaterThanMajor1) {
const auto v1 = Version(1, 0, 0, 0);
const auto v2 = Version(2, 0, 0, 0);
ASSERT_TRUE(v2 > v1) << "Expected v2 to be greater than v1... | 33.470588 | 87 | 0.691271 | anuragvajpayee |
f3a8ba829efb610504d4580408ac795b5ec2220b | 1,754 | cpp | C++ | src/Prevalence.cpp | gstonge/schon | 3c02a9780ef3e1136dd61921c0cdb8124b80b01a | [
"MIT"
] | null | null | null | src/Prevalence.cpp | gstonge/schon | 3c02a9780ef3e1136dd61921c0cdb8124b80b01a | [
"MIT"
] | null | null | null | src/Prevalence.cpp | gstonge/schon | 3c02a9780ef3e1136dd61921c0cdb8124b80b01a | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Guillaume St-Onge
*
* 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... | 32.481481 | 81 | 0.754846 | gstonge |
f3aabb5f4185831e199f7cce1f1d1e8efec8bc21 | 9,002 | cpp | C++ | math/ntt_1e9.cpp | prince776/CodeBook | 874fc7f94011ad1d25a55bcd91fecd2a11eb5a9b | [
"CC0-1.0"
] | 17 | 2021-01-25T12:07:17.000Z | 2022-02-26T17:20:31.000Z | math/ntt_1e9.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | null | null | null | math/ntt_1e9.cpp | NavneelSinghal/CodeBook | ff60ace9107dd19ef8ba81e175003f567d2a9070 | [
"CC0-1.0"
] | 4 | 2021-02-28T11:13:44.000Z | 2021-11-20T12:56:20.000Z | struct modinfo {
uint32_t mod, root;
};
template <modinfo const& ref>
struct modular {
static constexpr uint32_t const& mod = ref.mod;
static modular root() { return modular(ref.root); }
uint32_t v;
modular(int64_t vv = 0) { s(vv % mod + mod); }
modular& s(uint32_t vv) {
v = vv < mod ? ... | 36.15261 | 80 | 0.429349 | prince776 |
f3ad9a23dbf188dff12722736f6addf46beaa072 | 1,255 | cpp | C++ | sources/DOF.cpp | LauraLuvisotto/FemCourseEigenClass2021 | 2237003a1f8e99369e9602259adfd0f446a6a3e4 | [
"MIT"
] | null | null | null | sources/DOF.cpp | LauraLuvisotto/FemCourseEigenClass2021 | 2237003a1f8e99369e9602259adfd0f446a6a3e4 | [
"MIT"
] | null | null | null | sources/DOF.cpp | LauraLuvisotto/FemCourseEigenClass2021 | 2237003a1f8e99369e9602259adfd0f446a6a3e4 | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include "DOF.h"
DOF::DOF() {
}
DOF::DOF(const DOF& copy) {
firstequation = copy.firstequation;
nshape = copy.nshape;
ns... | 19.920635 | 95 | 0.640637 | LauraLuvisotto |
f3b6b92f0b9704e1f35ae18a961dcb733ab2f86d | 618 | hh | C++ | vm/vm/main/cached/GRedToUnstable-implem-decl-after.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 379 | 2015-01-02T20:27:33.000Z | 2022-03-26T23:18:17.000Z | vm/vm/main/cached/GRedToUnstable-implem-decl-after.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 81 | 2015-01-08T13:18:52.000Z | 2021-12-21T14:02:21.000Z | vm/vm/main/cached/GRedToUnstable-implem-decl-after.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 75 | 2015-01-06T09:08:20.000Z | 2021-12-17T09:40:18.000Z | template <>
class TypeInfoOf<GRedToUnstable>: public GRedToUnstableBase {
static constexpr UUID uuid() {
return UUID();
}
public:
TypeInfoOf() : GRedToUnstableBase("GRedToUnstable", uuid(), false, false, false, sbTokenEq, 0) {}
static const TypeInfoOf<GRedToUnstable>* const instance() {
return &RawTyp... | 22.888889 | 99 | 0.713592 | Ahzed11 |
f3b72903a2ab96d28d631299ff0d683bd1b21e8a | 7,038 | cpp | C++ | test/storage/b_plus_tree_insert_test.cpp | tigert1998/bustub | 4b98b06457b85b109eb6267d208d913ab1ae28e0 | [
"MIT"
] | null | null | null | test/storage/b_plus_tree_insert_test.cpp | tigert1998/bustub | 4b98b06457b85b109eb6267d208d913ab1ae28e0 | [
"MIT"
] | null | null | null | test/storage/b_plus_tree_insert_test.cpp | tigert1998/bustub | 4b98b06457b85b109eb6267d208d913ab1ae28e0 | [
"MIT"
] | null | null | null | /**
* b_plus_tree_insert_test.cpp
*/
#include <algorithm>
#include <cstdio>
#include <memory>
#include <random>
#include "b_plus_tree_test_util.h" // NOLINT
#include "buffer/buffer_pool_manager.h"
#include "gtest/gtest.h"
#include "storage/index/b_plus_tree.h"
namespace bustub {
TEST(BPlusTreeTests, InsertTest1)... | 29.082645 | 102 | 0.654447 | tigert1998 |
f3b736eecf664d018ba1c9c0b7930ee23618b9f2 | 760 | cpp | C++ | Paladin/Templates/Sample FileDialog/Main.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 45 | 2018-10-05T21:50:17.000Z | 2022-01-31T11:52:59.000Z | Paladin/Templates/Sample FileDialog/Main.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 163 | 2018-10-01T23:52:12.000Z | 2022-02-15T18:05:58.000Z | Paladin/Templates/Sample FileDialog/Main.cpp | humdingerb/Paladin | ef42b060656833f2887241c809690b263ddf2852 | [
"MIT"
] | 9 | 2018-10-01T23:48:02.000Z | 2022-01-23T21:28:52.000Z | #include <Application.h>
#include <FilePanel.h>
#include <stdio.h>
class App : public BApplication
{
public:
App(void)
: BApplication("application/x-vnd.OpenFileDemo")
{
/* Empty */
}
void MessageReceived(BMessage *msg)
{
switch (msg->what)
{
case B_REFS_RECEIVED:
/* User selected "Open" */
... | 14.339623 | 67 | 0.606579 | humdingerb |
f3bd5b20ec0446fb8015597cde1648b4658eb18d | 1,428 | hh | C++ | unix/iumlapi/include/iumlapi/Session.hh | skind30/iuml-dumper | 258bf82f3d00f502e52fdee325f06a8637bc9842 | [
"Apache-2.0"
] | null | null | null | unix/iumlapi/include/iumlapi/Session.hh | skind30/iuml-dumper | 258bf82f3d00f502e52fdee325f06a8637bc9842 | [
"Apache-2.0"
] | null | null | null | unix/iumlapi/include/iumlapi/Session.hh | skind30/iuml-dumper | 258bf82f3d00f502e52fdee325f06a8637bc9842 | [
"Apache-2.0"
] | 4 | 2019-03-20T15:13:23.000Z | 2020-09-03T20:46:04.000Z | //
// Filename : Session.hh
//
// UK Crown Copyright (c) 2005. All Rights Reserved
//
#ifndef iUMLAPI_Session_HH
#define iUMLAPI_Session_HH
#include "iumlapi/ORG_Database.hh"
#include <map>
namespace iUMLAPI
{
class Session
{
public:
Session ( const std::string& name, bool writeable = false );
... | 23.032258 | 85 | 0.630952 | skind30 |
f3bd691beabd9f220d18f3e23ef7a42eaebcdfd6 | 3,551 | cpp | C++ | src/network/ssl_cert.cpp | skunkforce/kitchensink | 7e453ac65182691af32aa3e8b19f72ceac0e2329 | [
"BSD-2-Clause"
] | null | null | null | src/network/ssl_cert.cpp | skunkforce/kitchensink | 7e453ac65182691af32aa3e8b19f72ceac0e2329 | [
"BSD-2-Clause"
] | null | null | null | src/network/ssl_cert.cpp | skunkforce/kitchensink | 7e453ac65182691af32aa3e8b19f72ceac0e2329 | [
"BSD-2-Clause"
] | null | null | null | /***********************************************************************
*
* Copyright (c) 2012-2022 Barbara Geller
* Copyright (c) 2012-2022 Ansel Sermersheim
* Copyright (c) 2015 The Qt Company Ltd.
*
* This file is part of KitchenSink.
*
* KitchenSink is free software, released under the BSD 2-Clause license.
* For ... | 38.182796 | 123 | 0.630245 | skunkforce |
f3bf6bc7129942759c07e6d1ac18277ca7e95c9c | 2,851 | hpp | C++ | include/musicpp/generators/mix.hpp | lebel-louisjacob/musicpp | 4cfd40afa529025e303fe20bff0ed44fec57acc7 | [
"MIT"
] | 2 | 2022-02-14T13:02:47.000Z | 2022-02-14T13:02:49.000Z | include/musicpp/generators/mix.hpp | lebel-louisjacob/musicpp | 4cfd40afa529025e303fe20bff0ed44fec57acc7 | [
"MIT"
] | 1 | 2022-02-02T22:24:16.000Z | 2022-02-02T22:24:16.000Z | include/musicpp/generators/mix.hpp | lebel-louisjacob/musicpp | 4cfd40afa529025e303fe20bff0ed44fec57acc7 | [
"MIT"
] | null | null | null | #ifndef MPP_GENERATORS_MIX_HPP
#define MPP_GENERATORS_MIX_HPP
#include <musicpp/generator.hpp>
#include <musicpp/mixer.hpp>
#include <musicpp/utils/tuple_foreach.hpp>
#include <vector>
#include <tuple>
namespace mpp
{
template <typename... Inputs>
struct Mix : public std::tuple<Inputs...>
{
const... | 31.32967 | 116 | 0.52087 | lebel-louisjacob |
f3bfa71ad4157d98f53bb0def2a46de9ee3abe48 | 1,276 | cc | C++ | lib/tcp_helpers/tcp_segment.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 8 | 2021-02-22T01:10:06.000Z | 2022-02-28T13:30:26.000Z | lib/tcp_helpers/tcp_segment.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | null | null | null | lib/tcp_helpers/tcp_segment.cc | MUCZ/Starfish | 4960b7f6001264731c1aea0b8171d187f5ec8ed8 | [
"Apache-2.0"
] | 7 | 2021-02-22T01:10:16.000Z | 2022-02-18T11:49:15.000Z | #include "tcp_segment.hh"
#include "parser.hh"
#include "util.hh"
#include <variant>
using namespace std;
//! \param[in] buffer string/Buffer to be parsed
//! \param[in] datagram_layer_checksum pseudo-checksum from the lower-layer protocol
ParseResult TCPSegment::parse(const Buffer buffer, const uint32_t datagram_l... | 27.73913 | 92 | 0.710031 | MUCZ |
f3c1c85363d60cf28635e203f7dcde4bd2e30cd7 | 628 | hpp | C++ | src/include/guinsoodb/common/enums/index_type.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-04-22T05:41:54.000Z | 2021-04-22T05:41:54.000Z | src/include/guinsoodb/common/enums/index_type.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | null | null | null | src/include/guinsoodb/common/enums/index_type.hpp | GuinsooLab/guinsoodb | f200538868738ae460f62fb89211deec946cefff | [
"MIT"
] | 1 | 2021-12-12T10:24:57.000Z | 2021-12-12T10:24:57.000Z | //===----------------------------------------------------------------------===//
// GuinsooDB
//
// guinsoodb/common/enums/index_type.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "guinsoodb/common/constants.hpp"
namespace gui... | 26.166667 | 80 | 0.31051 | GuinsooLab |
f3c3e632fda892b50534f30c82e10c0f5ac7dc46 | 4,185 | hpp | C++ | Doxa/Algorithm.hpp | paulbauriegel/Doxa | 58abb90173c4ab12b0b4c1ad7a675e116cda615d | [
"CC0-1.0"
] | 109 | 2017-02-24T18:26:35.000Z | 2022-03-23T02:42:45.000Z | Doxa/Algorithm.hpp | paulbauriegel/Doxa | 58abb90173c4ab12b0b4c1ad7a675e116cda615d | [
"CC0-1.0"
] | 14 | 2018-10-02T08:35:09.000Z | 2021-10-10T05:13:11.000Z | Doxa/Algorithm.hpp | paulbauriegel/Doxa | 58abb90173c4ab12b0b4c1ad7a675e116cda615d | [
"CC0-1.0"
] | 28 | 2018-05-08T09:08:57.000Z | 2022-01-21T07:04:29.000Z | // Δoxa Binarization Framework
// License: CC0 2018, "Freely you have received; freely give." - Matt 10:8
#ifndef ALGORITHMS_HPP
#define ALGORITHMS_HPP
#include "Image.hpp"
#include "Parameters.hpp"
#include "Palette.hpp"
namespace Doxa
{
/// <summary>
/// Algorithm Interface - Useful if you want to dynamically ins... | 34.586777 | 111 | 0.726165 | paulbauriegel |
f3cb8db287fb044b73e5979f6c2347b042d81ceb | 1,679 | hpp | C++ | impl/jamtemplate/common/game_base.hpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/game_base.hpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | impl/jamtemplate/common/game_base.hpp | runvs/Gemga | 91cd5d6d60ae8369a5a5674efebc6eb84c510a10 | [
"CC0-1.0"
] | null | null | null | #ifndef GUARD_JAMTEMPLATE_GAMEBASE_HPP_GUARD
#define GUARD_JAMTEMPLATE_GAMEBASE_HPP_GUARD
#include "color.hpp"
#include "game_interface.hpp"
#include "game_loop_interface.hpp"
#include "game_object.hpp"
#include "music_player_interface.hpp"
#include "render_target.hpp"
#include "vector.hpp"
#include <chrono>
#include... | 29.982143 | 93 | 0.732579 | runvs |
f3cdd23ddff19cf38783a893f9c60a6bc311af9f | 1,378 | cc | C++ | elements/ip6/getip6address.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/ip6/getip6address.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/ip6/getip6address.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | /*
* getip6address.{cc,hh} -- element sets IP6 destination annotation from
* packet header
* Peilei Fan
*
* Copyright (c) 1999-2000 Massachusetts Institute of Technology
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "S... | 26.5 | 77 | 0.751089 | MacWR |
f3d185e8dfd0eb73ce6bf1575b8799d28004fc9d | 1,654 | cpp | C++ | Practice/2018/2018.8.6/BZOJ1078.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.8.6/BZOJ1078.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.8.6/BZOJ1078.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=100;
const int inf=2147483647;
int n,id;
int Size[maxN],Depth[maxN];
int Ls[maxN],Rs[maxN],Fa[maxN];
int Seq[maxN];
void d... | 20.170732 | 68 | 0.555623 | SYCstudio |
f3d3471508bd076a26e68a38f816e3978ae489e2 | 408 | cpp | C++ | 35.Search_Insert_Position/solution_linearSearch.cpp | bngit/leetcode-practices | 5324aceac708d9b214a7d98d489b8d5dc55c89e9 | [
"MIT"
] | null | null | null | 35.Search_Insert_Position/solution_linearSearch.cpp | bngit/leetcode-practices | 5324aceac708d9b214a7d98d489b8d5dc55c89e9 | [
"MIT"
] | null | null | null | 35.Search_Insert_Position/solution_linearSearch.cpp | bngit/leetcode-practices | 5324aceac708d9b214a7d98d489b8d5dc55c89e9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <vector>
#include <string>
#include <cassert>
#include <algorithm>
#include <sstream>
using namespace std;
class Solution {
public:
int searchInsert(vector<int> &nums, int target) {
for (auto i = 0; i < nums.size(); ++i) {
if (nums[i] >= target) ... | 19.428571 | 53 | 0.551471 | bngit |
f3d842f65819ab985106ec3b5d281537b2d34590 | 246 | hpp | C++ | tlab/include/tlab/tlab.hpp | gwonhyeong/tlab | f84963f2636fdb830ab300b92ec1d8395ce2da58 | [
"MIT"
] | null | null | null | tlab/include/tlab/tlab.hpp | gwonhyeong/tlab | f84963f2636fdb830ab300b92ec1d8395ce2da58 | [
"MIT"
] | null | null | null | tlab/include/tlab/tlab.hpp | gwonhyeong/tlab | f84963f2636fdb830ab300b92ec1d8395ce2da58 | [
"MIT"
] | null | null | null | /**
* @file tlab.hpp
* @author ghtak (gwonhyeong.tak@gmail.com)
* @brief
* @version 0.1
* @date 2019-07-23
*
* @copyright Copyright (c) 2019
*
*/
#ifndef __tlab_h__
#define __tlab_h__
namespace tlab{
int interest(void);
}
#endif | 13.666667 | 43 | 0.638211 | gwonhyeong |
f3db294d7ebf19a0c0ee6d430ae44ca910983695 | 6,709 | cpp | C++ | ecm/src/v20190719/model/TaskOutput.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | ecm/src/v20190719/model/TaskOutput.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | ecm/src/v20190719/model/TaskOutput.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 26.623016 | 132 | 0.669697 | sinjoywong |
f3dcab407e224e528b67592f3703bc07b2d5e31c | 673 | cpp | C++ | csf_workspace/css/src/core/system/attribute/csf_attribute_exception_critical.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | 2 | 2019-12-17T13:16:48.000Z | 2019-12-17T13:16:51.000Z | csf_workspace/css/src/core/system/attribute/csf_attribute_exception_critical.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | csf_workspace/css/src/core/system/attribute/csf_attribute_exception_critical.cpp | Kitty-Kitty/csf_library | 011e56fb8b687818d20b9998a0cdb72332375534 | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
*
*Copyright: armuxinxian@aliyun.com
*
*File name: csf_attribute_exception_critical.hpp
*
*Author: Administrator
*
*Version: 1.0
*
*Date: 05-7月-2018 20:09:27
*
*Description: Class(csf_attribute_exception_critical)
*
*Others:
*
*History:
*... | 20.393939 | 81 | 0.606241 | Kitty-Kitty |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.