hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8ea9435ee69f6139fa6d3430ace8728bd50421b8 | 1,795 | cpp | C++ | src/one_tree.cpp | LukasErlenbach/tsp_solver | 016a1e794de7b58f666b3635977e39aeadb46c99 | [
"MIT"
] | null | null | null | src/one_tree.cpp | LukasErlenbach/tsp_solver | 016a1e794de7b58f666b3635977e39aeadb46c99 | [
"MIT"
] | null | null | null | src/one_tree.cpp | LukasErlenbach/tsp_solver | 016a1e794de7b58f666b3635977e39aeadb46c99 | [
"MIT"
] | null | null | null | #include "branching_node.hpp"
/**
* @file one_tree.hpp
* @brief Implementation of class @c OneTree.
* **/
namespace Core {
/////////////////////////////////////////////
//! \c OneTree definitions
/////////////////////////////////////////////
OneTree::OneTree(const PredVec &preds, const Degrees °rees, const do... | 26.397059 | 84 | 0.615042 | LukasErlenbach |
8eaa13d41994856cf8f60f3702734dace09604e2 | 1,619 | hpp | C++ | src/rpcz/sync_call_handler.hpp | jinq0123/rpcz | d273dc1a8de770cb4c2ddee98c17ce60c657d6ca | [
"Apache-2.0"
] | 4 | 2015-06-14T13:38:40.000Z | 2020-11-07T02:29:59.000Z | src/rpcz/sync_call_handler.hpp | jinq0123/rpcz | d273dc1a8de770cb4c2ddee98c17ce60c657d6ca | [
"Apache-2.0"
] | 1 | 2015-06-19T07:54:53.000Z | 2015-11-12T10:38:21.000Z | src/rpcz/sync_call_handler.hpp | jinq0123/rpcz | d273dc1a8de770cb4c2ddee98c17ce60c657d6ca | [
"Apache-2.0"
] | 3 | 2015-06-15T02:28:39.000Z | 2018-10-18T11:02:59.000Z | // Licensed under the Apache License, Version 2.0 (the "License");
// Author: Jin Qing (http://blog.csdn.net/jq0123)
#ifndef RPCZ_SYNC_CALL_HANDLER_HPP
#define RPCZ_SYNC_CALL_HANDLER_HPP
#include <boost/noncopyable.hpp>
#include <boost/optional.hpp>
#include <google/protobuf/message.h>
#include <rpcz/common.hpp> //... | 22.486111 | 66 | 0.696726 | jinq0123 |
8eacff5f5ccdf66cba37be123d641ee40280087a | 1,618 | cc | C++ | src/plugin/graphics/text/src/font/bitmapfontmanager.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/plugin/graphics/text/src/font/bitmapfontmanager.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/plugin/graphics/text/src/font/bitmapfontmanager.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | /* Motor <motor.devel@gmail.com>
see LICENSE for detail */
#include <motor/plugin.graphics.text/stdafx.h>
#include <bitmapfontmanager.hh>
#include <fontlist.hh>
namespace Motor {
BitmapFontManager::BitmapFontManager(weak< Resource::ResourceManager > manager,
weak< FreetypeLibr... | 31.72549 | 92 | 0.57911 | motor-dev |
8eb1fb99e1744279d9305287c855c2e611b06c83 | 2,294 | hpp | C++ | SDK/ARKSurvivalEvolved_PrimalItem_Spawner_Exosuit_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_PrimalItem_Spawner_Exosuit_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_PrimalItem_Spawner_Exosuit_parameters.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_PrimalItem_Spawner_Exosuit_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-------------------------------------------... | 49.869565 | 173 | 0.493897 | 2bite |
8eb26e68f715d0be03e3215e8627694528f16e18 | 78 | cpp | C++ | escos/src/common/unittest.cpp | OSADP/MMITSS_THEA | 53ef55d0622f230002c75046db6af295592dbf0a | [
"Apache-2.0"
] | null | null | null | escos/src/common/unittest.cpp | OSADP/MMITSS_THEA | 53ef55d0622f230002c75046db6af295592dbf0a | [
"Apache-2.0"
] | null | null | null | escos/src/common/unittest.cpp | OSADP/MMITSS_THEA | 53ef55d0622f230002c75046db6af295592dbf0a | [
"Apache-2.0"
] | null | null | null | #ifdef C2X_UNIT_TESTS
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#endif
| 11.142857 | 25 | 0.794872 | OSADP |
8eb6f8cf6456ebf20008a16a6ab8ad1306d4ed87 | 6,935 | cpp | C++ | smaug/core/tensor.cpp | mrbeann/smaug | 01ef7892bb25cb08c13cea6125efc1528a8de260 | [
"BSD-3-Clause"
] | 50 | 2020-06-12T19:53:37.000Z | 2022-03-30T15:05:34.000Z | smaug/core/tensor.cpp | mrbeann/smaug | 01ef7892bb25cb08c13cea6125efc1528a8de260 | [
"BSD-3-Clause"
] | 37 | 2020-06-23T17:28:42.000Z | 2021-10-21T05:30:36.000Z | smaug/core/tensor.cpp | mrbeann/smaug | 01ef7892bb25cb08c13cea6125efc1528a8de260 | [
"BSD-3-Clause"
] | 18 | 2020-06-17T19:59:23.000Z | 2022-02-15T07:40:47.000Z | #include "smaug/core/tensor.h"
#include "smaug/core/tensor_utils.h"
#include "smaug/core/globals.h"
#include "smaug/utility/thread_pool.h"
namespace smaug {
TensorShapeProto* TensorShape::asTensorShapeProto() {
TensorShapeProto* shapeProto = new TensorShapeProto();
*shapeProto->mutable_dims() = { dims_.begin(... | 36.5 | 80 | 0.603317 | mrbeann |
8eb80589d93faf35ad4eb82fda45dc979a250a07 | 1,207 | cpp | C++ | test/delegate/test_bad_delegate_call.cpp | rmettler/cpp_delegates | 8557a1731eccbad9608f3111c5599f666b74750e | [
"BSL-1.0"
] | 4 | 2020-01-30T19:17:57.000Z | 2020-04-02T13:03:13.000Z | test/delegate/test_bad_delegate_call.cpp | rmettler/cpp_delegates | 8557a1731eccbad9608f3111c5599f666b74750e | [
"BSL-1.0"
] | null | null | null | test/delegate/test_bad_delegate_call.cpp | rmettler/cpp_delegates | 8557a1731eccbad9608f3111c5599f666b74750e | [
"BSL-1.0"
] | null | null | null | //
// Project: C++ delegates
//
// Copyright Roger Mettler 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)
//
#include <doctest.h>
#include <rome/detail/bad_delegate_call.hpp>
#include <type_traits>
TEST_SUITE_... | 40.233333 | 93 | 0.754764 | rmettler |
8ebd11dc81d5d857155b39acd498a54c06eaf01b | 1,487 | hpp | C++ | discregrid/include/Discregrid/acceleration/bounding_sphere_hierarchy.hpp | lasagnaphil/Discregrid | 83bec4b39445e7ed62229e6f84d94c0cfcc1136b | [
"MIT"
] | null | null | null | discregrid/include/Discregrid/acceleration/bounding_sphere_hierarchy.hpp | lasagnaphil/Discregrid | 83bec4b39445e7ed62229e6f84d94c0cfcc1136b | [
"MIT"
] | null | null | null | discregrid/include/Discregrid/acceleration/bounding_sphere_hierarchy.hpp | lasagnaphil/Discregrid | 83bec4b39445e7ed62229e6f84d94c0cfcc1136b | [
"MIT"
] | null | null | null | #pragma once
#include "types.hpp"
#include "bounding_sphere.hpp"
#include "kd_tree.hpp"
#include <span.hpp>
namespace Discregrid
{
class TriangleMeshBSH : public KDTree<BoundingSphere>
{
public:
using super = KDTree<BoundingSphere>;
TriangleMeshBSH(std::span<const Vector3r> vertices,
std::... | 19.826667 | 67 | 0.705447 | lasagnaphil |
8ebde15b22131d13eebeffbf14d860e37bc7ed26 | 4,173 | cpp | C++ | src/mirrage/net/src/server.cpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 14 | 2017-10-26T08:45:54.000Z | 2021-04-06T11:44:17.000Z | src/mirrage/net/src/server.cpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 17 | 2017-10-09T20:11:58.000Z | 2018-11-08T22:05:14.000Z | src/mirrage/net/src/server.cpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 1 | 2018-09-26T23:10:06.000Z | 2018-09-26T23:10:06.000Z | #include <mirrage/net/server.hpp>
#include <mirrage/net/error.hpp>
#include <mirrage/utils/container_utils.hpp>
#include <enet/enet.h>
namespace mirrage::net {
Server_builder::Server_builder(Host_type type,
std::string hostname,
... | 32.348837 | 108 | 0.565061 | lowkey42 |
8ebee5f2aa9ebe853f989c65ce409b121fc4bd7a | 8,870 | hpp | C++ | include/libndgpp/network_byte_order.hpp | goodfella/libndgpp | 2e3d4b993a04664905c1e257fb2af3a5faab5296 | [
"MIT"
] | null | null | null | include/libndgpp/network_byte_order.hpp | goodfella/libndgpp | 2e3d4b993a04664905c1e257fb2af3a5faab5296 | [
"MIT"
] | null | null | null | include/libndgpp/network_byte_order.hpp | goodfella/libndgpp | 2e3d4b993a04664905c1e257fb2af3a5faab5296 | [
"MIT"
] | null | null | null | #ifndef LIBNDGPP_NETWORK_BYTE_ORDER_HPP
#define LIBNDGPP_NETWORK_BYTE_ORDER_HPP
#include <algorithm>
#include <array>
#include <cstring>
#include <type_traits>
#include <utility>
#include <ostream>
#include <libndgpp/network_byte_order_ops.hpp>
namespace ndgpp
{
/** Stores a native type value in network byte ord... | 29.966216 | 134 | 0.632131 | goodfella |
8ec65e548000a175fbe13b174fa34c2fce1336aa | 116 | cpp | C++ | C++/KY/call.cpp | WhitePhosphorus4/xh-learning-code | 025e31500d9f46d97ea634d7fd311c65052fd78e | [
"Apache-2.0"
] | null | null | null | C++/KY/call.cpp | WhitePhosphorus4/xh-learning-code | 025e31500d9f46d97ea634d7fd311c65052fd78e | [
"Apache-2.0"
] | null | null | null | C++/KY/call.cpp | WhitePhosphorus4/xh-learning-code | 025e31500d9f46d97ea634d7fd311c65052fd78e | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<math.h>
using namespace std;
int main()
{
cout<<"hello world"<<endl;
return 0;
} | 14.5 | 30 | 0.655172 | WhitePhosphorus4 |
8ecca67a112fa7fab1224acf1833c07ebef08c75 | 2,361 | cpp | C++ | source/main-http.cpp | janjongboom/mbed-os-example-fota-http | 20ef030aa95052a82c31c0eaece154dbc408de75 | [
"MIT"
] | 6 | 2017-10-11T08:56:32.000Z | 2022-02-24T14:09:30.000Z | source/main-http.cpp | janjongboom/mbed-os-example-fota-http | 20ef030aa95052a82c31c0eaece154dbc408de75 | [
"MIT"
] | 2 | 2017-08-28T16:08:36.000Z | 2018-06-20T20:07:54.000Z | source/main-http.cpp | janjongboom/mbed-os-example-fota-http | 20ef030aa95052a82c31c0eaece154dbc408de75 | [
"MIT"
] | 5 | 2018-03-27T08:59:23.000Z | 2022-01-26T21:08:50.000Z | #include "mbed.h"
#include "easy-connect.h"
#include "http_request.h"
#include "SDBlockDevice.h"
#include "FATFileSystem.h"
#define SD_MOUNT_PATH "sd"
#define FULL_UPDATE_FILE_PATH "/" SD_MOUNT_PATH "/" MBED_CONF_APP_UPDATE_FILE
//Pin order: MOSI, MISO, SCK, CS
SDBlockDevice sd(MBED_CONF_APP_SD_CARD_MOSI,... | 25.117021 | 115 | 0.650148 | janjongboom |
8ecfa08d7f74ed2312be0182606f1b456a6efff4 | 17,900 | cpp | C++ | src/remotecommandhandler.cpp | hrxcodes/cbftp | bf2784007dcc4cc42775a2d40157c51b80383f81 | [
"MIT"
] | 8 | 2019-04-30T00:37:00.000Z | 2022-02-03T13:35:31.000Z | src/remotecommandhandler.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 2 | 2019-11-19T12:46:13.000Z | 2019-12-20T22:13:57.000Z | src/remotecommandhandler.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 9 | 2020-01-15T02:38:36.000Z | 2022-02-15T20:05:20.000Z | #include "remotecommandhandler.h"
#include <vector>
#include <list>
#include "core/tickpoke.h"
#include "core/iomanager.h"
#include "core/types.h"
#include "crypto.h"
#include "globalcontext.h"
#include "engine.h"
#include "eventlog.h"
#include "util.h"
#include "sitelogicmanager.h"
#include "sitelogic.h"
#include "u... | 31.458699 | 147 | 0.662011 | hrxcodes |
8ed04f1821a61c8d2ef1152f7dc235c1047a0bff | 1,076 | hpp | C++ | lib/STL+/strings/string_hash.hpp | knela96/Game-Engine | 06659d933c4447bd8d6c8536af292825ce4c2ab1 | [
"Unlicense"
] | 3 | 2018-05-07T19:09:23.000Z | 2019-05-03T14:19:38.000Z | deps/stlplus/strings/string_hash.hpp | evpo/libencryptmsg | fa1ea59c014c0a9ce339d7046642db4c80fc8701 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | deps/stlplus/strings/string_hash.hpp | evpo/libencryptmsg | fa1ea59c014c0a9ce339d7046642db4c80fc8701 | [
"BSD-2-Clause-FreeBSD",
"BSD-3-Clause"
] | null | null | null | #ifndef STLPLUS_STRING_HASH
#define STLPLUS_STRING_HASH
////////////////////////////////////////////////////////////////////////////////
// Author: Andy Rushton
// Copyright: (c) Southampton University 1999-2004
// (c) Andy Rushton 2004 onwards
// License: BSD License, see ../docs/lic... | 32.606061 | 84 | 0.47026 | knela96 |
8ed0c0c06675abb85c55c453b94dfbcf52485e1f | 10,646 | hpp | C++ | AeroKernel/parameter.hpp | brandonbraun653/AeroKernel | 23a9a8da7a735ac2d5e1b5d7b59231b8a78a2fd9 | [
"MIT"
] | null | null | null | AeroKernel/parameter.hpp | brandonbraun653/AeroKernel | 23a9a8da7a735ac2d5e1b5d7b59231b8a78a2fd9 | [
"MIT"
] | 2 | 2019-05-04T13:39:41.000Z | 2019-05-04T16:48:24.000Z | AeroKernel/parameter.hpp | brandonbraun653/AeroKernel | 23a9a8da7a735ac2d5e1b5d7b59231b8a78a2fd9 | [
"MIT"
] | null | null | null | /********************************************************************************
* File Name:
* parameter.hpp
*
* Description:
* Implements the Aerospace Kernel Parameter Manager. This module allows a
* system to pass information around in a thread safe manner without the
* producers and consumers... | 31.874251 | 124 | 0.652546 | brandonbraun653 |
8ed99072c5824ac16f4a579bfc9832b3a4202f97 | 198 | cpp | C++ | qfb-messenger/src/network_reply_handler.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | 1 | 2015-05-05T22:45:11.000Z | 2015-05-05T22:45:11.000Z | qfb-messenger/src/network_reply_handler.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | null | null | null | qfb-messenger/src/network_reply_handler.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | null | null | null | #include "network_reply_handler.h"
NetworkReplyHandler::NetworkReplyHandler(QNetworkReply* r) :
QObject(r),
reply(r)
{
connect(this->reply, SIGNAL(finished()), this, SLOT(replyFinished()));
}
| 18 | 71 | 0.737374 | NickCis |
8eda40c7ef81d7a9161be254020ec7fa33e68e6e | 801 | cpp | C++ | HW1Submit/main.cpp | manamhr/ITP365 | 616ea8f4074e05fd26eb8ece712b2df6aa70111f | [
"MIT"
] | null | null | null | HW1Submit/main.cpp | manamhr/ITP365 | 616ea8f4074e05fd26eb8ece712b2df6aa70111f | [
"MIT"
] | null | null | null | HW1Submit/main.cpp | manamhr/ITP365 | 616ea8f4074e05fd26eb8ece712b2df6aa70111f | [
"MIT"
] | null | null | null | // ITP 365 Spring 2017
// HW1 - Sieve of Eratosthenes
// Name: Mana Mehraein
// Email: mehraein@usc.edu
// Platform: Mac
#include <iostream>
#include "gwindow.h"
#include "sieve.h"
#include <string>
#include "vector.h"
#include "strlib.h"
int main(int argc, char** argv)
{
// Create a 500x50... | 18.627907 | 51 | 0.561798 | manamhr |
8edd65aebe7ac2a9a4c04604b60008f586d0ae7b | 239 | hh | C++ | mimosa/rpc/http-call.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 24 | 2015-01-19T16:38:24.000Z | 2022-01-15T01:25:30.000Z | mimosa/rpc/http-call.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 2 | 2017-01-07T10:47:06.000Z | 2018-01-16T07:19:57.000Z | mimosa/rpc/http-call.hh | abique/mimosa | 42c0041b570b55a24c606a7da79c70c9933c07d4 | [
"MIT"
] | 7 | 2015-01-19T16:38:31.000Z | 2020-12-12T19:10:30.000Z | #pragma once
#include "json.hh"
namespace mimosa
{
namespace rpc
{
bool httpCall(const std::string &url,
const google::protobuf::Message &request,
google::protobuf::Message *response);
}
}
| 17.071429 | 57 | 0.589958 | abique |
8ede1878426df41d8ee00964ca039bddd4c4dd65 | 7,365 | hpp | C++ | src/vm/objects/function.hpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 10 | 2020-01-23T20:41:19.000Z | 2021-12-28T20:24:44.000Z | src/vm/objects/function.hpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | 22 | 2021-03-25T16:22:08.000Z | 2022-03-17T12:50:38.000Z | src/vm/objects/function.hpp | mbeckem/tiro | b3d729fce46243f25119767c412c6db234c2d938 | [
"MIT"
] | null | null | null | #ifndef TIRO_VM_OBJECTS_FUNCTION_HPP
#define TIRO_VM_OBJECTS_FUNCTION_HPP
#include "common/adt/span.hpp"
#include "vm/handles/handle.hpp"
#include "vm/object_support/layout.hpp"
#include "vm/objects/value.hpp"
namespace tiro::vm {
/// Represents executable byte code, typically used to
/// represents the instructions... | 29.22619 | 100 | 0.677529 | mbeckem |
8edf2cc62dde1c74a2e30859cf5d18206771b2eb | 184 | cpp | C++ | judger/uoj_judger/tests/newer/answer14.cpp | contropist/uoj | 114ebf690dcfb22ec899cbdc3d3cb77a30b46285 | [
"MIT"
] | null | null | null | judger/uoj_judger/tests/newer/answer14.cpp | contropist/uoj | 114ebf690dcfb22ec899cbdc3d3cb77a30b46285 | [
"MIT"
] | null | null | null | judger/uoj_judger/tests/newer/answer14.cpp | contropist/uoj | 114ebf690dcfb22ec899cbdc3d3cb77a30b46285 | [
"MIT"
] | null | null | null | #pragma GCC optimize ("O0")
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
for (int i = 0; i < (1 << 5); i++)
new int[1 << 20]();
return 0;
}
| 15.333333 | 38 | 0.538043 | contropist |
8ee250a474a297cfa9773bc8ee3176d49ab97767 | 1,935 | cpp | C++ | BasiliskII/src/BeOS/xpram_beos.cpp | jvernet/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 940 | 2015-01-04T12:20:10.000Z | 2022-03-29T12:35:27.000Z | BasiliskII/src/BeOS/xpram_beos.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 163 | 2015-02-10T09:08:10.000Z | 2022-03-13T05:48:10.000Z | BasiliskII/src/BeOS/xpram_beos.cpp | Seanpm2001-virtual-machines/macemu | c616a0dae0f451fc15016765c896175fae3f46cf | [
"Intel",
"X11"
] | 188 | 2015-01-07T19:46:11.000Z | 2022-03-26T19:06:00.000Z | /*
* xpram_beos.cpp - XPRAM handling, BeOS specific stuff
*
* Basilisk II (C) 1997-2008 Christian Bauer
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lice... | 22.764706 | 77 | 0.710078 | jvernet |
8ee65978c71f54b000ca8db80dcf15b9bcd191ff | 11,443 | cpp | C++ | jmax/Window.cpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/Window.cpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/Window.cpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | #include "Window.hpp"
#include "jmax.hpp"
#include "math.h"
#include "shader/Shader.hpp"
#include <map>
#include <stdexcept>
#include <string>
#include <utility>
namespace jmax {
Window::Window(unsigned int width, unsigned int height)
: view(width, height)
, _windowIO()
, _resizeAction(
std::stri... | 24.450855 | 120 | 0.672289 | JeanGamain |
8ee690a8f8a24b61111ea21d5c0190700cbe681f | 955 | hpp | C++ | include/cores/pdump_log.hpp | dotcom/QDPDK | 9f430f9b0cef36228d14f763a023d0ff13f6a8a8 | [
"MIT"
] | 1 | 2022-02-17T03:56:57.000Z | 2022-02-17T03:56:57.000Z | include/cores/pdump_log.hpp | dotcom/QDPDK | 9f430f9b0cef36228d14f763a023d0ff13f6a8a8 | [
"MIT"
] | null | null | null | include/cores/pdump_log.hpp | dotcom/QDPDK | 9f430f9b0cef36228d14f763a023d0ff13f6a8a8 | [
"MIT"
] | null | null | null | #pragma once
#include "qdpdk.hpp"
#define BURST_SIZE 32
template<class FROM, class TO>
class CorePdumpLog{
protected:
QDPDK::DeqInterface<FROM> from;
QDPDK::EnqInterface<TO> to;
public:
CorePdumpLog(FROM deq, TO enq) : from(deq), to(enq){};
void FirstCycle(){}
void LastCycle(){}
void Cycle() {
... | 27.285714 | 107 | 0.548691 | dotcom |
8ee6c42df047eec64719e4e26ad5122ca0b407fd | 2,541 | cpp | C++ | morse/DotNet/D3DVisualizator/DisplayableCoordinateSystem.cpp | jonnyzzz/phd-project | beab8615585bd52ef9ee1c19d1557e8c933c047a | [
"Apache-2.0"
] | 1 | 2019-12-24T15:52:45.000Z | 2019-12-24T15:52:45.000Z | morse/DotNet/D3DVisualizator/DisplayableCoordinateSystem.cpp | jonnyzzz/phd-project | beab8615585bd52ef9ee1c19d1557e8c933c047a | [
"Apache-2.0"
] | null | null | null | morse/DotNet/D3DVisualizator/DisplayableCoordinateSystem.cpp | jonnyzzz/phd-project | beab8615585bd52ef9ee1c19d1557e8c933c047a | [
"Apache-2.0"
] | null | null | null | #include "StdAfx.h"
#include ".\displayablecoordinatesystem.h"
const DWORD DisplayableCoordinateSystem::POINTVERTEX::FVF = D3DFVF_XYZ | D3DFVF_DIFFUSE;
DisplayableCoordinateSystem::DisplayableCoordinateSystem(void)
{
vb = NULL;
axisColor[0] = 0xff0000;
axisColor[1] = 0x00ff00;
axisColor[2] = 0x0000ff;
}
Displa... | 21.717949 | 93 | 0.645415 | jonnyzzz |
8ee818419c7f2148571b8a8d244209147662bd80 | 749 | cc | C++ | Source/VM/Source/instruction.cc | DylanEHolland/liz | 50f030896fcca272d4e0f2186e84896d7b93ca40 | [
"BSD-3-Clause"
] | null | null | null | Source/VM/Source/instruction.cc | DylanEHolland/liz | 50f030896fcca272d4e0f2186e84896d7b93ca40 | [
"BSD-3-Clause"
] | 1 | 2022-02-21T04:58:44.000Z | 2022-02-21T05:14:14.000Z | Source/VM/Source/instruction.cc | DylanEHolland/liz | 50f030896fcca272d4e0f2186e84896d7b93ca40 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file instruction.cc
* @author Dylan E. Holland (salinson1138@gmail.com)
* @brief
* @version 0.1
* @date 2022-03-16
*
* @copyright Copyright (c) 2022
*
*/
#include <VM/Include/instruction.h>
#include <Common/Include/output.h>
namespace liz::vm {
Instruction::Instruction() {
}
Instructio... | 18.268293 | 78 | 0.624833 | DylanEHolland |
8eebfa9caf8a5e3d6fecfa5e877de0fd423374bd | 224 | cpp | C++ | core/src/task/semaphore.cpp | ExaBerries/spruce | 85845244f7d6cd5a662f0dbc9b4079a1230d9a4b | [
"MIT"
] | null | null | null | core/src/task/semaphore.cpp | ExaBerries/spruce | 85845244f7d6cd5a662f0dbc9b4079a1230d9a4b | [
"MIT"
] | null | null | null | core/src/task/semaphore.cpp | ExaBerries/spruce | 85845244f7d6cd5a662f0dbc9b4079a1230d9a4b | [
"MIT"
] | null | null | null | #include <task/semaphore.h>
namespace spruce {
void semaphore::lock() noexcept {
locked = true;
}
void semaphore::unlock() noexcept {
locked = false;
}
void semaphore::wait() noexcept {
while (locked) {};
}
}
| 14 | 36 | 0.647321 | ExaBerries |
8ef370a2a057895eb2c6f29c4b72e2fbe7035c89 | 109 | cpp | C++ | src/add.cpp | JacknJo/JacksHome | b1b2d0d7683eb1a8adcfdd02380c6b620e567fe2 | [
"MIT"
] | null | null | null | src/add.cpp | JacknJo/JacksHome | b1b2d0d7683eb1a8adcfdd02380c6b620e567fe2 | [
"MIT"
] | null | null | null | src/add.cpp | JacknJo/JacksHome | b1b2d0d7683eb1a8adcfdd02380c6b620e567fe2 | [
"MIT"
] | null | null | null | #include "add.hpp"
namespace jhm
{
add::add() = default;
add::~add() = default;
} // namespace jhm. | 15.571429 | 26 | 0.577982 | JacknJo |
8ef5895790d79b560e252c6e6e7f40634ccff4a0 | 2,574 | cpp | C++ | 01-dda-chessboard/DDA_Chessboard.cpp | ChetanaHegde/vtu-mca-sem3-cg | 92667bef2b89726d6a272cd6425217257d47846d | [
"MIT"
] | 2 | 2020-10-08T10:36:40.000Z | 2021-05-11T16:23:19.000Z | 01-dda-chessboard/DDA_Chessboard.cpp | ChetanaHegde/vtu-mca-sem3-cg | 92667bef2b89726d6a272cd6425217257d47846d | [
"MIT"
] | null | null | null | 01-dda-chessboard/DDA_Chessboard.cpp | ChetanaHegde/vtu-mca-sem3-cg | 92667bef2b89726d6a272cd6425217257d47846d | [
"MIT"
] | 2 | 2017-01-25T13:43:09.000Z | 2019-03-18T12:03:40.000Z | /* Program 1: Write a program to implement Chessboard using DDA Line drawing algorithm.
Coded by: Basavaraju R, Assistant Professor, RNSIT, Bangalore
Email: basavaraju dot revanna at gmail dot com
*/
#include<gl\glut.h>
#include<math.h>
GLint start_x=50,start_y=40,end_x=start_x+80,end_y=start_y+80;
vo... | 22.578947 | 97 | 0.661616 | ChetanaHegde |
8ef60977c3acc029e6540d17f9aef44f5f3376c5 | 13,949 | cpp | C++ | source/test/mp-integer-unsigned-arithmetic-test.cpp | CaptainCrowbar/rs-sci | 40768e7665c555f28e4b0ca2b1c2d1fa2da9775a | [
"BSL-1.0"
] | null | null | null | source/test/mp-integer-unsigned-arithmetic-test.cpp | CaptainCrowbar/rs-sci | 40768e7665c555f28e4b0ca2b1c2d1fa2da9775a | [
"BSL-1.0"
] | null | null | null | source/test/mp-integer-unsigned-arithmetic-test.cpp | CaptainCrowbar/rs-sci | 40768e7665c555f28e4b0ca2b1c2d1fa2da9775a | [
"BSL-1.0"
] | null | null | null | #include "rs-sci/mp-integer.hpp"
#include "rs-format/format.hpp"
#include "rs-unit-test.hpp"
#include <string>
#include <vector>
using namespace RS::Format;
using namespace RS::Sci;
namespace {
using ByteVector = std::vector<uint8_t>;
std::string hexdump(const ByteVector& v) {
std::string s(reinterp... | 43.590625 | 105 | 0.577246 | CaptainCrowbar |
8ef7b6a4a6cc310bccf1b00824337df2b9ff2966 | 411 | hpp | C++ | libs/parse/include/fcppt/parse/tag.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 13 | 2015-02-21T18:35:14.000Z | 2019-12-29T14:08:29.000Z | libs/parse/include/fcppt/parse/tag.hpp | cpreh/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 5 | 2016-08-27T07:35:47.000Z | 2019-04-21T10:55:34.000Z | libs/parse/include/fcppt/parse/tag.hpp | freundlich/fcppt | 17df1b1ad08bf2435f6902d5465e3bc3fe5e3022 | [
"BSL-1.0"
] | 8 | 2015-01-10T09:22:37.000Z | 2019-12-01T08:31:12.000Z | // Copyright Carl Philipp Reh 2009 - 2021.
// 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 FCPPT_PARSE_TAG_HPP_INCLUDED
#define FCPPT_PARSE_TAG_HPP_INCLUDED
namespace fcppt::parse
{... | 18.681818 | 61 | 0.717762 | freundlich |
8ef8d27920731249682d2403bb0520863b51bbcd | 2,849 | hpp | C++ | lib/libcpp/Perulangan/Perulangan/iterativesolvervisitorinterface.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | lib/libcpp/Perulangan/Perulangan/iterativesolvervisitorinterface.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | lib/libcpp/Perulangan/Perulangan/iterativesolvervisitorinterface.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #ifndef __Perulangan_IterativeSolverVisitorInterface_h
#define __Perulangan_IterativeSolverVisitorInterface_h
#include "Alat/interfacebase.hpp"
#include "Alat/armadillo.hpp"
/*--------------------------------------------------------------------------*/
namespace alat
{
class GhostLinearSolver;
class GhostMatrix... | 47.483333 | 192 | 0.724465 | beckerrh |
8efc12a8115c48f8f4862cafa92222aa80df25a8 | 896 | cpp | C++ | lib/PointerAnalysis/MemoryModel/PointerLayout.cpp | grievejia/tpa | 8a7aa4c7d41c266fcf3a5e2011ff324bcddf5816 | [
"MIT"
] | 16 | 2016-08-03T12:09:19.000Z | 2022-02-20T08:22:12.000Z | lib/PointerAnalysis/MemoryModel/PointerLayout.cpp | grievejia/tpa | 8a7aa4c7d41c266fcf3a5e2011ff324bcddf5816 | [
"MIT"
] | 1 | 2016-12-14T08:42:19.000Z | 2016-12-21T08:21:20.000Z | lib/PointerAnalysis/MemoryModel/PointerLayout.cpp | grievejia/tpa | 8a7aa4c7d41c266fcf3a5e2011ff324bcddf5816 | [
"MIT"
] | 6 | 2016-08-19T14:17:06.000Z | 2019-08-05T08:34:47.000Z | #include "PointerAnalysis/MemoryModel/Type/PointerLayout.h"
namespace tpa
{
const PointerLayout* PointerLayout::getEmptyLayout()
{
return emptyLayout;
}
const PointerLayout* PointerLayout::getSinglePointerLayout()
{
return singlePointerLayout;
}
const PointerLayout* PointerLayout::getLayout(SetType&& set)
{
auto... | 20.363636 | 93 | 0.739955 | grievejia |
8eff0a67d91b7eb211ff45a1703d34d455e17e9e | 3,951 | cpp | C++ | duds/data/Unit.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/data/Unit.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/data/Unit.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | /*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or dis... | 24.69375 | 78 | 0.632498 | jjackowski |
f102ceb88409595e3e0ee48f71065afc42677212 | 829 | hpp | C++ | PrEngineSwitch/Game_Engine/include/SpriteLayer.hpp | aprithul/Prengine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | 1 | 2019-10-08T05:20:30.000Z | 2019-10-08T05:20:30.000Z | PrEngineSwitch/Game_Engine/include/SpriteLayer.hpp | aprithul/PrEngine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | null | null | null | PrEngineSwitch/Game_Engine/include/SpriteLayer.hpp | aprithul/PrEngine | 7aff20bb73ab21e9e11dda1985e6b22992479f0d | [
"BSD-3-Clause"
] | null | null | null | #ifndef SPRITE_LAYER_HPP
#define SPRITE_LAYER_HPP
#include "GlAssert.hpp"
#include "RenderLayer.hpp"
#include "Graphics.hpp"
#include "EntityManagementSystemModule.hpp"
#include "DirectionalLight.hpp"
#include "Camera3D.hpp"
#include "Matrix4x4f.hpp"
#include <vector>
#include "Sprite.hpp"
#include "Transform3D.hpp"
... | 21.815789 | 61 | 0.670688 | aprithul |
f102e7e7ec1cf25062fb7fa4946df2b2ed4b3e87 | 232 | hh | C++ | build/ARM/debug/VIO9PData.hh | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/debug/VIO9PData.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86/debug/VIO9PData.hh | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | /*
* DO NOT EDIT THIS FILE! Automatically generated by SCons.
*/
#ifndef __DEBUG_VIO9PData_HH__
#define __DEBUG_VIO9PData_HH__
namespace Debug {
class SimpleFlag;
extern SimpleFlag VIO9PData;
}
#endif // __DEBUG_VIO9PData_HH__
| 16.571429 | 59 | 0.788793 | msharmavikram |
f10648e5e4555887d3f3edb4cf771ecf7b04e628 | 13,938 | inl | C++ | source/bsys/geometry/geometry_vertex_3.inl | bluebackblue/brownie | 917fcc71e5b0a807c0a8dab22a9ca7f3b0d60917 | [
"MIT"
] | null | null | null | source/bsys/geometry/geometry_vertex_3.inl | bluebackblue/brownie | 917fcc71e5b0a807c0a8dab22a9ca7f3b0d60917 | [
"MIT"
] | null | null | null | source/bsys/geometry/geometry_vertex_3.inl | bluebackblue/brownie | 917fcc71e5b0a807c0a8dab22a9ca7f3b0d60917 | [
"MIT"
] | null | null | null | #pragma once
/**
* Copyright (c) blueback
* Released under the MIT License
* https://github.com/bluebackblue/brownie/blob/master/LICENSE.txt
* http://bbbproject.sakura.ne.jp/wordpress/mitlicense
* @brief ジオメトリ。
*/
/** include
*/
#pragma warning(push)
#pragma warning(disable:4464)
#include "../ty... | 21.054381 | 134 | 0.617305 | bluebackblue |
f1064af791209147bd47565f3703d6aeab1c6d83 | 914 | cpp | C++ | ststring.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | ststring.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | ststring.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2008-10-22
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
void inc(char* s)
{
int cur=0;
bool ok=false;
while (!ok)
{
s[cur]++;
if (s[cur]=='K')
s[cur++]='A';
else
ok=true;
}
if (s[cur]==1)
{
s[cur]='A';
s[cur+1]=0;
}
}
int ok(char* s)
{
int i=1;
while (s[i... | 13.057143 | 59 | 0.514223 | ohmyjons |
f1071f2a2259d40223c641fdcc79d9d6fc9e2942 | 1,700 | cpp | C++ | leetcode_0721_unionfind.cpp | xiaoxiaoxiang-Wang/01-leetcode | 5a9426dd70c3dd6725444783aaa8cefc27196779 | [
"MIT"
] | 3 | 2021-01-18T06:26:10.000Z | 2021-01-29T07:52:49.000Z | leetcode_0721_unionfind.cpp | xiaoxiaoxiang-Wang/leetcode | 5a9426dd70c3dd6725444783aaa8cefc27196779 | [
"MIT"
] | null | null | null | leetcode_0721_unionfind.cpp | xiaoxiaoxiang-Wang/leetcode | 5a9426dd70c3dd6725444783aaa8cefc27196779 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<string>> accountsMerge(vector<vector<string>>& accounts) {
vector<pair<string, int>> emails;
for (int i = 0; i < accounts.size(); i++) {
for (int j = 1; j < accounts[i].size(); j++) {
emails.push_back({ accounts[i][j],i });
}
}
sort(emails.begin(), emails.end())... | 23.943662 | 76 | 0.545294 | xiaoxiaoxiang-Wang |
f1088921c111614dc731eba6e955608389cbe272 | 982 | cpp | C++ | src/Utils.cpp | bsmithcompsci/Experiment-EmbedSystems-Playground | fcf72d6e3500c8cfea9446fcbc777be3e28cd86f | [
"MIT"
] | null | null | null | src/Utils.cpp | bsmithcompsci/Experiment-EmbedSystems-Playground | fcf72d6e3500c8cfea9446fcbc777be3e28cd86f | [
"MIT"
] | null | null | null | src/Utils.cpp | bsmithcompsci/Experiment-EmbedSystems-Playground | fcf72d6e3500c8cfea9446fcbc777be3e28cd86f | [
"MIT"
] | null | null | null | #include "global/Utils.h"
std::vector<std::string> splitStrs(const std::string &_str, char _delimiter)
{
std::vector<std::string> output;
std::string::size_type prev_pos = 0, cur_pos = 0;
while ((cur_pos = _str.find(_delimiter, cur_pos)) != std::string::npos)
{
std::string substring(_str.substr(prev_pos, cur_po... | 30.6875 | 99 | 0.705703 | bsmithcompsci |
f1094fbea6cdbe832dff1f5bd659025df443c301 | 1,970 | hpp | C++ | src/registry.hpp | rcabot/codscape | 5619b40d7857066818c8409d3db4371d3c8f758c | [
"Unlicense"
] | null | null | null | src/registry.hpp | rcabot/codscape | 5619b40d7857066818c8409d3db4371d3c8f758c | [
"Unlicense"
] | null | null | null | src/registry.hpp | rcabot/codscape | 5619b40d7857066818c8409d3db4371d3c8f758c | [
"Unlicense"
] | null | null | null | #ifndef REGISTRY_H
#define REGISTRY_H
#pragma once
#include "dialogue_initiator.hpp"
#include "Map.h"
#include "Person.h"
#include "interactable.hpp"
#include "dialogue_ui.hpp"
#include "rect_transform.hpp"
#include <sstream>
#include <limits>
template<typename T>
using uvector = std::vector<std::unique_ptr<T>>;
cla... | 25.25641 | 102 | 0.744162 | rcabot |
f10c6af1132219f183e8088cef1ee69cee874021 | 22 | cpp | C++ | library/containers/flat_hash/lib/probings.cpp | ZhekehZ/catboost | 3f774da539b8e57cca25686b89c473cbd1f61a6c | [
"Apache-2.0"
] | 6,989 | 2017-07-18T06:23:18.000Z | 2022-03-31T15:58:36.000Z | library/cpp/containers/flat_hash/lib/probings.cpp | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,978 | 2017-07-18T09:17:58.000Z | 2022-03-31T14:28:43.000Z | library/cpp/containers/flat_hash/lib/probings.cpp | birichie/catboost | de75c6af12cf490700e76c22072fbdc15b35d679 | [
"Apache-2.0"
] | 1,228 | 2017-07-18T09:03:13.000Z | 2022-03-29T05:57:40.000Z | #include "probings.h"
| 11 | 21 | 0.727273 | ZhekehZ |
f10cd8557ccd76ef1c08f38c105009ce9e26196e | 650 | cpp | C++ | Spline/Source.cpp | Fahersto/Spline | cbe4645aedd9b6e53c9c3393b1c7f2fc0040666d | [
"MIT"
] | null | null | null | Spline/Source.cpp | Fahersto/Spline | cbe4645aedd9b6e53c9c3393b1c7f2fc0040666d | [
"MIT"
] | null | null | null | Spline/Source.cpp | Fahersto/Spline | cbe4645aedd9b6e53c9c3393b1c7f2fc0040666d | [
"MIT"
] | null | null | null | #include "ParametricSpline.h"
int main()
{
ParametricSpline parametricSpline = ParametricSpline();
const int VALUE_COUNT = 3;
double* x = new double[VALUE_COUNT]{ 0, 1, 2 };
double* y = new double[VALUE_COUNT]{ 0, 3, 0 };
double* z = new double[VALUE_COUNT]{ 1, 2, 3 };
parametricSpline.Compute(x, y, z, VALU... | 21.666667 | 82 | 0.629231 | Fahersto |
f10f1c8509669062f615ca8b59fe48ba8955c30e | 1,443 | cc | C++ | project/core/id/test/SequentialIdGenerator.cc | letsmake-games/engine | b40559037353e000adf2f18ca9ead16529f932c6 | [
"MIT"
] | null | null | null | project/core/id/test/SequentialIdGenerator.cc | letsmake-games/engine | b40559037353e000adf2f18ca9ead16529f932c6 | [
"MIT"
] | null | null | null | project/core/id/test/SequentialIdGenerator.cc | letsmake-games/engine | b40559037353e000adf2f18ca9ead16529f932c6 | [
"MIT"
] | null | null | null | //
// (c) LetsMakeGames 2019
// http://www.letsmake.games
//
#include "core/id/IdClass.hh"
#include "core/id/SequentialIdGenerator.hh"
#include "gtest/gtest.h"
//
// types //////////////////////////////////////////////////////////////////////
//
DECLARE_IDCLASS(BasicId, uint8_t);
//
// Generator //////////////////... | 21.220588 | 79 | 0.559252 | letsmake-games |
f10fe3c7b0a9556130f2361f133bf535c6bd8706 | 5,361 | hpp | C++ | contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp | majestrate/nntpchan | f92f68c3cdce4b7ce6d4121ca4356b36ebcd933f | [
"MIT"
] | 233 | 2015-08-06T02:51:52.000Z | 2022-02-14T11:29:13.000Z | contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp | Revivify/nntpchan | 0d555bb88a2298dae9aacf11348e34c52befa3d8 | [
"MIT"
] | 98 | 2015-09-19T22:29:00.000Z | 2021-06-12T09:43:13.000Z | contrib/backends/nntpchan-daemon/libnntpchan/kqueue.hpp | Revivify/nntpchan | 0d555bb88a2298dae9aacf11348e34c52befa3d8 | [
"MIT"
] | 49 | 2015-08-06T02:51:55.000Z | 2020-03-11T04:23:56.000Z | #include <nntpchan/event.hpp>
#include <sys/types.h>
#include <sys/event.h>
#include <iostream>
#include <cstring>
#include <errno.h>
namespace nntpchan
{
namespace ev
{
template<size_t bufsz>
struct KqueueLoop : public Loop
{
int kfd;
size_t conns;
char readbuf[bufsz];
... | 33.092593 | 110 | 0.320463 | majestrate |
f111b50b2ed434352fe1d8198b05939082989892 | 1,215 | cpp | C++ | Tree/589-n-ary-tree-preorder-traversal.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | Tree/589-n-ary-tree-preorder-traversal.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | Tree/589-n-ary-tree-preorder-traversal.cpp | wandsX/LeetCodeExperience | 8502e6e8ce911045f45f0075bcf3ee751a4558c7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
//leetcode submit region begin(Prohibit modification and deletion)
class Solution
{
public:
vector<int> preorder(Node *root)
{
stack < Node * > s;
std::vector<int> ans;
Node *cur = nullptr;
... | 19.596774 | 67 | 0.443621 | wandsX |
47dbd807a98370edc068e9a4687d752e159c0fea | 2,389 | cpp | C++ | LeetCode/200/148.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/200/148.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | LeetCode/200/148.cpp | K-ona/C-_Training | d54970f7923607bdc54fc13677220d1b3daf09e5 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct ListNode {
int val;
ListNode* next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode* next) : val(x), next(next) {}
};
class Solution {
tuple<ListNode*, ListNode*> partition(ListNode* begin, Lis... | 23.421569 | 74 | 0.518627 | K-ona |
47e158798760a23cd391c2952c00eed2e8f5ee4c | 265 | cpp | C++ | libs/core/render/src/vulkan/detail/bksge_core_render_vulkan_detail_cull_mode.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/src/vulkan/detail/bksge_core_render_vulkan_detail_cull_mode.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/src/vulkan/detail/bksge_core_render_vulkan_detail_cull_mode.cpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file bksge_core_render_vulkan_detail_cull_mode.cpp
*
* @brief CullMode クラスの定義
*
* @author myoukaku
*/
#include <bksge/fnd/config.hpp>
#if !defined(BKSGE_HEADER_ONLY)
#include <bksge/core/render/vulkan/detail/inl/cull_mode_inl.hpp>
#endif
| 20.384615 | 65 | 0.713208 | myoukaku |
47e22f8b52fb7c6425212e051080062f04e3f07e | 5,905 | cpp | C++ | src/mercury.cpp | darkedge/mercury | 5bdf857b38f68b2a8c6ae1455f7623313ad0af71 | [
"MIT"
] | null | null | null | src/mercury.cpp | darkedge/mercury | 5bdf857b38f68b2a8c6ae1455f7623313ad0af71 | [
"MIT"
] | null | null | null | src/mercury.cpp | darkedge/mercury | 5bdf857b38f68b2a8c6ae1455f7623313ad0af71 | [
"MIT"
] | null | null | null | #include <codeanalysis/warnings.h>
#pragma warning( push, 0 )
#pragma warning( disable : ALL_CODE_ANALYSIS_WARNINGS )
#include "glad/glad.h"
#include "glad.c"
#include "GLFW/glfw3.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <stdint.h>
// ImGui
#include "imgui.cpp"
... | 25.343348 | 105 | 0.695512 | darkedge |
47e9bfdb27625f3517d82ddced901e0cc185a5da | 182 | cpp | C++ | docs/mfc/codesnippet/CPP/cfontdialog-class_8.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/codesnippet/CPP/cfontdialog-class_8.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/cfontdialog-class_8.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | // Is the selected font bold?
CFontDialog dlg;
if (dlg.DoModal() == IDOK)
{
BOOL bold = dlg.IsBold();
TRACE(_T("Is the selected font bold? %d\n"), bold);
} | 26 | 57 | 0.56044 | jmittert |
47ea21529b3531fee3ea9b666be608dbeac4ac54 | 25,678 | cpp | C++ | released_plugins/v3d_plugins/bigneuron_LinGU_LCM_boost/components.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | released_plugins/v3d_plugins/bigneuron_LinGU_LCM_boost/components.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2016-12-03T05:33:13.000Z | 2016-12-03T05:33:13.000Z | released_plugins/v3d_plugins/bigneuron_LinGU_LCM_boost/components.cpp | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | /*
* components.cpp
*
* Created on: May 20, 2015
* Author: gulin
*/
# include <cstdlib>
# include <iostream>
# include <iomanip>
# include <fstream>
# include <ctime>
# include <cmath>
# include <cstring>
using namespace std;
# include "components.hpp"
//*************************************************... | 19.162687 | 83 | 0.467404 | zzhmark |
47ea935abdcb6cafecbcd071877e2c7547f5d0c5 | 17,028 | cpp | C++ | partman/loader.cpp | XplosiveLugnut/3d-pinball-space-cadet | 5bf9b86f379a3d28321a4d29df03965ff1245fad | [
"MIT"
] | 1 | 2021-04-23T12:50:21.000Z | 2021-04-23T12:50:21.000Z | partman/loader.cpp | XplosiveLugnut/3d-pinball-space-cadet | 5bf9b86f379a3d28321a4d29df03965ff1245fad | [
"MIT"
] | null | null | null | partman/loader.cpp | XplosiveLugnut/3d-pinball-space-cadet | 5bf9b86f379a3d28321a4d29df03965ff1245fad | [
"MIT"
] | null | null | null | //
// Created by neo on 2019-08-15.
//
#include "../pinball.h"
//----- (01008F7A) --------------------------------------------------------
signed int loader_error(int a1, int a2)
{
int v2; // eax
const CHAR *v3; // esi
const CHAR *v4; // edi
int v5; // edx
int v6; // ecx
v2 = loader_errors[0]... | 26.4 | 109 | 0.401926 | XplosiveLugnut |
47eadaeebabcd54b782d7438128de912c2bfdfbd | 3,217 | hh | C++ | src/BGL/BGLLine.hh | revarbat/Mandoline | 1aafd7e6702ef740bcac6ab8c8c43282a104c60a | [
"BSD-2-Clause-FreeBSD"
] | 17 | 2015-01-07T10:32:06.000Z | 2021-07-06T11:00:38.000Z | src/BGL/BGLLine.hh | revarbat/Mandoline | 1aafd7e6702ef740bcac6ab8c8c43282a104c60a | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-08-17T17:44:42.000Z | 2018-06-14T23:39:04.000Z | src/BGL/BGLLine.hh | revarbat/Mandoline | 1aafd7e6702ef740bcac6ab8c8c43282a104c60a | [
"BSD-2-Clause-FreeBSD"
] | 3 | 2015-01-07T10:32:06.000Z | 2019-03-22T16:56:51.000Z | //
// BGLLine.hh
// Part of the Belfry Geometry Library
//
// Created by GM on 10/13/10.
// Copyright 2010 Belfry Software. All rights reserved.
//
#ifndef BGL_LINE_H
#define BGL_LINE_H
#include <math.h>
#include <iostream>
#include <list>
#include "BGLCommon.hh"
#include "BGLAffine.hh"
#include "BGLIntersection... | 23.654412 | 71 | 0.660242 | revarbat |
47ed68f919d084e86deeb009c4dcdffcbf520811 | 50,330 | cpp | C++ | includes/mfbt/tests/TestTextUtils.cpp | gregtatum/spec-cpp | ebd40fa119a302f82ab10a2b8ddd52671f92e2ef | [
"MIT"
] | 5 | 2018-02-01T18:25:35.000Z | 2018-02-12T14:09:22.000Z | includes/mfbt/tests/TestTextUtils.cpp | gregtatum/spec-cpp | ebd40fa119a302f82ab10a2b8ddd52671f92e2ef | [
"MIT"
] | null | null | null | includes/mfbt/tests/TestTextUtils.cpp | gregtatum/spec-cpp | ebd40fa119a302f82ab10a2b8ddd52671f92e2ef | [
"MIT"
] | 1 | 2019-03-15T06:01:40.000Z | 2019-03-15T06:01:40.000Z | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0... | 47.258216 | 80 | 0.63638 | gregtatum |
47f21e4f6679cab3af02c95b4f10ba36b13abc46 | 1,280 | cpp | C++ | src/Example/CubeExample.cpp | slicgun/ray_tracing | 913f8a03887c20ca4fbad1fb38395b9f70fe54d4 | [
"Apache-2.0"
] | null | null | null | src/Example/CubeExample.cpp | slicgun/ray_tracing | 913f8a03887c20ca4fbad1fb38395b9f70fe54d4 | [
"Apache-2.0"
] | null | null | null | src/Example/CubeExample.cpp | slicgun/ray_tracing | 913f8a03887c20ca4fbad1fb38395b9f70fe54d4 | [
"Apache-2.0"
] | null | null | null | #include "CubeExample.h"
#include<vector>
#include<glm/geometric.hpp>
#include"Log.h"
std::vector<Material> mat;
Vertex v1 = {0, {0, 1, -3}, {0, 0, 1}, {0, 0}};
Vertex v2 = {0, {-1, 1, -3}, {0, 0, 1}, {0, 0}};
Vertex v3 = {0, {0, 0, -3}, {0, 0, 1}, {0, 0}};
CubeExample::CubeExample(Image& img)
:Exam... | 28.444444 | 133 | 0.585938 | slicgun |
47f22170c5228eac4b407b78897ae5c4e93e9d35 | 3,772 | cpp | C++ | source/common/lua/performance.cpp | xiaobodu/breeze | e74f0cd680274fd431118104d1fdb45926da6328 | [
"Apache-2.0"
] | 1 | 2020-08-13T08:10:15.000Z | 2020-08-13T08:10:15.000Z | source/common/lua/performance.cpp | xiaobodu/breeze | e74f0cd680274fd431118104d1fdb45926da6328 | [
"Apache-2.0"
] | null | null | null | source/common/lua/performance.cpp | xiaobodu/breeze | e74f0cd680274fd431118104d1fdb45926da6328 | [
"Apache-2.0"
] | 1 | 2017-04-30T14:25:25.000Z | 2017-04-30T14:25:25.000Z | /*
* zsummerX License
* -----------
*
* zsummerX is licensed under the terms of the MIT license reproduced below.
* This means that zsummerX is free software and can be used for both academic
* and commercial purposes at absolutely no cost.
*
*
* ============================================================... | 30.176 | 118 | 0.595175 | xiaobodu |
47f7e140f4798a78082e3cbee4103984473522bd | 1,021 | cpp | C++ | src/atomic.cpp | sriramch/thirdparty-libcxx | a97a7380c76346c22bb67b93695bed19592afad2 | [
"Apache-2.0"
] | 2 | 2020-09-03T03:36:36.000Z | 2020-09-03T08:09:10.000Z | src/atomic.cpp | sriramch/thirdparty-libcxx | a97a7380c76346c22bb67b93695bed19592afad2 | [
"Apache-2.0"
] | 1 | 2019-12-27T02:42:26.000Z | 2019-12-27T02:42:26.000Z | src/atomic.cpp | sriramch/thirdparty-libcxx | a97a7380c76346c22bb67b93695bed19592afad2 | [
"Apache-2.0"
] | 3 | 2019-09-25T21:43:35.000Z | 2020-03-27T19:12:47.000Z | //===------------------------- atomic.cpp ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 26.868421 | 96 | 0.676787 | sriramch |
47f9627eb40dc250db2fe29a5e7e3c98b5bc0974 | 7,058 | cpp | C++ | test_samd21/dma_spi/program.cpp | azydevelopment/test-samd21 | 8442606d6909ada67a29f1f83c9ba3e7da16fd90 | [
"MIT"
] | null | null | null | test_samd21/dma_spi/program.cpp | azydevelopment/test-samd21 | 8442606d6909ada67a29f1f83c9ba3e7da16fd90 | [
"MIT"
] | null | null | null | test_samd21/dma_spi/program.cpp | azydevelopment/test-samd21 | 8442606d6909ada67a29f1f83c9ba3e7da16fd90 | [
"MIT"
] | null | null | null | #include "program.h"
#include <azydev/embedded/bus/spi/atmel/samd21/bus.h>
#include <azydev/embedded/bus/spi/atmel/samd21/device.h>
#include <azydev/embedded/clock/atmel/samd21/clock.h>
#include <azydev/embedded/dma/atmel/samd21/engine.h>
#include <azydev/embedded/dma/common/pool.h>
/* FILE SCOPED STATICS */
static ... | 31.792793 | 100 | 0.590536 | azydevelopment |
47fbba07d41575b11562d65477c18a9b23314a7b | 173 | cpp | C++ | assec-renderer/src/renderer/shader.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | assec-renderer/src/renderer/shader.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | assec-renderer/src/renderer/shader.cpp | TeamVistic/assec-renderer | 5c6fc9a46fc3f6302471a22bfd2bdf2942b794db | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "shader.h"
namespace assec::renderer
{
shader::shader(const std::wstring& source, SHADER_TYPE type) : m_source(source), m_shader_type(type) {}
} | 21.625 | 104 | 0.728324 | TeamVistic |
47fcb01c73b270ea1521ab1a777cd3884b6cb43c | 3,137 | cpp | C++ | libraries/utilities/example/cmdline1.cpp | tneele/mCRL2 | 8f2d730d650ffec15130d6419f69c50f81e5125c | [
"BSL-1.0"
] | null | null | null | libraries/utilities/example/cmdline1.cpp | tneele/mCRL2 | 8f2d730d650ffec15130d6419f69c50f81e5125c | [
"BSL-1.0"
] | null | null | null | libraries/utilities/example/cmdline1.cpp | tneele/mCRL2 | 8f2d730d650ffec15130d6419f69c50f81e5125c | [
"BSL-1.0"
] | null | null | null | // Author(s): Wieger Wesselink
// Copyright: see the accompanying file COPYING or copy at
// https://github.com/mCRL2org/mCRL2/blob/master/COPYING
//
// 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)
//
/// \file c... | 26.584746 | 74 | 0.559133 | tneele |
47fded78073828b55b3a98e9ff8bda0d3caa6284 | 37,799 | cpp | C++ | src/bitname/bitname_channel.cpp | gcbpay/R9-VRBcoinShares | 2b77f7a77b9254e20250cdcd99c7a289fd0c3ca4 | [
"Unlicense"
] | 2 | 2016-10-21T22:54:50.000Z | 2017-11-08T07:06:46.000Z | src/bitname/bitname_channel.cpp | gcbpay/R9-VRBcoinShares | 2b77f7a77b9254e20250cdcd99c7a289fd0c3ca4 | [
"Unlicense"
] | 7 | 2016-10-23T12:26:43.000Z | 2017-09-01T09:35:28.000Z | src/bitname/bitname_channel.cpp | gcbpay/R9-VRBcoinShares | 2b77f7a77b9254e20250cdcd99c7a289fd0c3ca4 | [
"Unlicense"
] | null | null | null | #include <bts/bitname/bitname_channel.hpp>
#include <bts/bitname/bitname_messages.hpp>
#include <bts/bitname/bitname_db.hpp>
#include <bts/bitname/bitname_fork_db.hpp>
#include <bts/bitname/bitname_hash.hpp>
#include <bts/blockchain/fork_tree.hpp>
#include <bts/network/server.hpp>
#include <bts/network/channel.hpp>
#in... | 42.710734 | 135 | 0.500966 | gcbpay |
9a0b33f2d7300aa1b7233ff1b54c5f6a5b33909c | 2,812 | cc | C++ | o3d/plugin/cross/blacklist.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | o3d/plugin/cross/blacklist.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | o3d/plugin/cross/blacklist.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | /*
* Copyright 2009, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 38 | 80 | 0.713371 | rwatson |
9a0bfaff0340d3a2b1aca283326d460b206a3dcf | 5,158 | cpp | C++ | webrtc-jni/src/main/cpp/src/media/video/VideoTrackDesktopSource.cpp | preciate/webrtc-java | 9073e12b57a74e8c89ed0950d41d29ab7f5cc691 | [
"Apache-2.0"
] | null | null | null | webrtc-jni/src/main/cpp/src/media/video/VideoTrackDesktopSource.cpp | preciate/webrtc-java | 9073e12b57a74e8c89ed0950d41d29ab7f5cc691 | [
"Apache-2.0"
] | null | null | null | webrtc-jni/src/main/cpp/src/media/video/VideoTrackDesktopSource.cpp | preciate/webrtc-java | 9073e12b57a74e8c89ed0950d41d29ab7f5cc691 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Alex Andres
*
* 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 ... | 26.587629 | 131 | 0.727995 | preciate |
9a0d0b8acd952408bbe78205d4948eb94fb02aa4 | 13,907 | cxx | C++ | pandatool/src/xfile/xFileDataObject.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | pandatool/src/xfile/xFileDataObject.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | pandatool/src/xfile/xFileDataObject.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: xFileDataObject.cxx
// Created by: drose (03Oct04)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You s... | 37.485175 | 78 | 0.511829 | kestred |
9a0df3b530d67be768a82f6b0b440593cccdff56 | 11,699 | hpp | C++ | src/vanillaswap.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 27 | 2016-11-19T16:51:21.000Z | 2021-09-08T16:44:15.000Z | src/vanillaswap.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 1 | 2016-12-28T16:38:38.000Z | 2017-02-17T05:32:13.000Z | src/vanillaswap.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 10 | 2016-12-28T02:31:38.000Z | 2021-06-15T09:02:07.000Z | /*
Copyright (C) 2016 -2017 Jerry Jin
*/
#ifndef vanillaswap_h
#define vanillaswap_h
#include <nan.h>
#include <string>
#include <queue>
#include <utility>
#include "../quantlibnode.hpp"
#include <oh/objecthandler.hpp>
using namespace node;
using namespace v8;
using namespace std;
class VanillaSwapWorker : pub... | 17.409226 | 70 | 0.651081 | quantlibnode |
9a15237559ffecc8d6c93fc1ef2ed229aca7c43e | 981 | cpp | C++ | src/apps/processors/envelope/EnvelopeController.cpp | pigatron-industries/xen_filter | 10de7c617b59e02c29b448764d60f503f14dd564 | [
"Unlicense"
] | null | null | null | src/apps/processors/envelope/EnvelopeController.cpp | pigatron-industries/xen_filter | 10de7c617b59e02c29b448764d60f503f14dd564 | [
"Unlicense"
] | null | null | null | src/apps/processors/envelope/EnvelopeController.cpp | pigatron-industries/xen_filter | 10de7c617b59e02c29b448764d60f503f14dd564 | [
"Unlicense"
] | null | null | null | #include "EnvelopeController.h"
#define LEFT 0
#define RIGHT 1
void EnvelopeController::init(float sampleRate) {
envelope.init(sampleRate, 3, 1, false);
envelope.setPoint(0, deprecated::Point(0, 0));
envelope.setPoint(1, deprecated::Point(1, 1));
envelope.setPoint(2, deprecated::Point(2, 0));
dis... | 27.25 | 72 | 0.622834 | pigatron-industries |
9a17d8c1302934c72bf6ee801a894a9858b13368 | 2,505 | cpp | C++ | src/logic/torrentdetailscontentview.cpp | herokukuki/ydyd | 942a98158e139f0bb00a837b762492bdaaffb94c | [
"MIT"
] | null | null | null | src/logic/torrentdetailscontentview.cpp | herokukuki/ydyd | 942a98158e139f0bb00a837b762492bdaaffb94c | [
"MIT"
] | null | null | null | src/logic/torrentdetailscontentview.cpp | herokukuki/ydyd | 942a98158e139f0bb00a837b762492bdaaffb94c | [
"MIT"
] | null | null | null | #include "torrentdetailscontentview.h"
#include <QMenu>
#include <QFileInfo>
#include <QDir>
#include "utilities/utils.h"
#include "utilities/filesystem_utils.h"
#include "torrentcontentmodel.h"
#include "global_functions.h"
TorrentDetailsContentView::TorrentDetailsContentView(QWidget* parent /*= 0*/): QTreeView(pare... | 30.54878 | 134 | 0.712974 | herokukuki |
9a184ea67dbdf0c85121b89294df837fce391a3a | 4,618 | hh | C++ | include/LACE/LpcResiduals.hh | petrmanek/LACE | 5e189bb871a47972490fe2888a60df876cb6b120 | [
"BSL-1.0"
] | 1 | 2019-03-14T13:13:34.000Z | 2019-03-14T13:13:34.000Z | include/LACE/LpcResiduals.hh | petrmanek/LACE | 5e189bb871a47972490fe2888a60df876cb6b120 | [
"BSL-1.0"
] | null | null | null | include/LACE/LpcResiduals.hh | petrmanek/LACE | 5e189bb871a47972490fe2888a60df876cb6b120 | [
"BSL-1.0"
] | 2 | 2018-04-19T21:29:46.000Z | 2019-03-14T13:37:26.000Z | // Copyright University of Warwick 2014
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Authors:
// John Back
/*! \file LpcResiduals.hh
\brief File containing the declaration of the LpcResiduals class
*/
/... | 31.630137 | 95 | 0.699654 | petrmanek |
9a18a9a0f986855045c83f581bcf07ec3460d0a4 | 7,376 | cpp | C++ | server.cpp | AnuragDPawar/Centralized-Multi-User-Concurrent-Bank-Account-Manager | c7a8f0b7a61636855c1207f50f82ab554fe89a5f | [
"MIT"
] | null | null | null | server.cpp | AnuragDPawar/Centralized-Multi-User-Concurrent-Bank-Account-Manager | c7a8f0b7a61636855c1207f50f82ab554fe89a5f | [
"MIT"
] | null | null | null | server.cpp | AnuragDPawar/Centralized-Multi-User-Concurrent-Bank-Account-Manager | c7a8f0b7a61636855c1207f50f82ab554fe89a5f | [
"MIT"
] | null | null | null | #include <arpa/inet.h>
#include <libexplain/read.h>
#include <netdb.h>
#include <pthread.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <fstream>
#include <iomanip> //to format the float value
#include <iostream>
#include <sstream> //... | 30.229508 | 119 | 0.50583 | AnuragDPawar |
9a1957eed44c4ed8c755bd0da4386a401e71db85 | 4,444 | cc | C++ | stapl_release/tools/mtl-2.0/test/src/matrix_row_col_test.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/tools/mtl-2.0/test/src/matrix_row_col_test.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | stapl_release/tools/mtl-2.0/test/src/matrix_row_col_test.cc | parasol-ppl/PPL_utils | 92728bb89692fda1705a0dee436592d97922a6cb | [
"BSD-3-Clause"
] | null | null | null | // -*- c++ -*-
//
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
//
// All rights reserved.
//
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whol... | 30.027027 | 81 | 0.70387 | parasol-ppl |
9a1a2b02e904868e53e4ad156e1936048ba7c46c | 1,050 | cpp | C++ | libs/camera/src/camera/coordinate_system/identity.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/camera/src/camera/coordinate_system/identity.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/camera/src/camera/coordinate_system/identity.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#include <sge/camera/coordinate_system/forward.hpp>
#include <sge/camera/coordinate_system/identity... | 47.727273 | 90 | 0.730476 | cpreh |
9a1a6dd25cc40f9ff5700fd28e8824579e224b29 | 10,728 | cpp | C++ | avogadro/io/cjsonformat.cpp | AlbertDeFusco/avogadrolibs | 572aad6d16295c91da684d180b6b2705070549c1 | [
"BSD-3-Clause"
] | null | null | null | avogadro/io/cjsonformat.cpp | AlbertDeFusco/avogadrolibs | 572aad6d16295c91da684d180b6b2705070549c1 | [
"BSD-3-Clause"
] | null | null | null | avogadro/io/cjsonformat.cpp | AlbertDeFusco/avogadrolibs | 572aad6d16295c91da684d180b6b2705070549c1 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
This source file is part of the Avogadro project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distri... | 32.216216 | 80 | 0.584452 | AlbertDeFusco |
9a1a9315aa9fb37f48c00f2e5dea109306c5e6f6 | 3,691 | cc | C++ | api/video/test/i444_buffer_unittest.cc | wyshen2020/webrtc | b93e2240f1653b82e24553e092bbab84337774af | [
"BSD-3-Clause"
] | 2 | 2022-03-10T01:47:56.000Z | 2022-03-31T12:51:46.000Z | api/video/test/i444_buffer_unittest.cc | wyshen2020/webrtc | b93e2240f1653b82e24553e092bbab84337774af | [
"BSD-3-Clause"
] | null | null | null | api/video/test/i444_buffer_unittest.cc | wyshen2020/webrtc | b93e2240f1653b82e24553e092bbab84337774af | [
"BSD-3-Clause"
] | null | null | null |
/*
* Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribu... | 32.663717 | 80 | 0.674614 | wyshen2020 |
9a1dbe88c0e383142c322bd3b1d423c0cad52185 | 67,275 | cxx | C++ | Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyTreeView.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyTreeView.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | Modules/Loadable/SubjectHierarchy/Widgets/qMRMLSubjectHierarchyTreeView.cxx | forfullstack/slicersources-src | 91bcecf037a27f3fad4c0ab57e8286fc258bb0f5 | [
"Apache-2.0"
] | null | null | null | /*==============================================================================
Program: 3D Slicer
Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
Queen's University, Kingston, ON, Canada. All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
U... | 35.88 | 147 | 0.656306 | forfullstack |
9a2384ae83b1d714ddd87a6d08e4748e933a5918 | 20,891 | cc | C++ | FreeBSD/cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc | TigerBSD/FreeBSD-Custom-ThinkPad | 3d092f261b362f73170871403397fc5d6b89d1dc | [
"0BSD"
] | 4 | 2016-08-22T22:02:55.000Z | 2017-03-04T22:56:44.000Z | FreeBSD/cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc | TigerBSD/FreeBSD-Custom-ThinkPad | 3d092f261b362f73170871403397fc5d6b89d1dc | [
"0BSD"
] | 21 | 2016-08-11T09:43:43.000Z | 2017-01-29T12:52:56.000Z | FreeBSD/cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc | TigerBSD/TigerBSD | 3d092f261b362f73170871403397fc5d6b89d1dc | [
"0BSD"
] | null | null | null | /*-
* Copyright (c) 2012, 2013, 2014 Spectra Logic Corporation
* 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
* no... | 27.060881 | 87 | 0.724475 | TigerBSD |
9a2386687d9ee5240b21cf272e063af465e06284 | 1,097 | cpp | C++ | ConsoleGameEngine/KeyEvents.cpp | sirjavlux/ConsoleGameEngine | 04ece4053d7ad4566aef356fdb6e76233e8dd714 | [
"MIT"
] | 3 | 2021-01-03T12:44:08.000Z | 2021-01-08T14:02:50.000Z | ConsoleGameEngine/KeyEvents.cpp | sirjavlux/ConsoleGameEngine | 04ece4053d7ad4566aef356fdb6e76233e8dd714 | [
"MIT"
] | null | null | null | ConsoleGameEngine/KeyEvents.cpp | sirjavlux/ConsoleGameEngine | 04ece4053d7ad4566aef356fdb6e76233e8dd714 | [
"MIT"
] | null | null | null | #include <iostream>
#include "SEngine.h"
using namespace std;
void keyAUpdateEvent(KeyState state, SEngine* engine) {
if (state == KeyState::down) {
if (engine->hasCameraObjectAttatched()) {
GameObject* obj = engine->getCameraFollowObject();
Vector2D vel(-1, 0);
obj->addForce(vel);
}
}
}
void keyWUpd... | 22.387755 | 59 | 0.68186 | sirjavlux |
9a25fd85c68799a05aab142cdb513e6773fda2da | 10,852 | hpp | C++ | src/compiler/lib/Solution.hpp | gperrotta/yask | a35aa5a6f52bb5a11c182045c469a55a84fa9b36 | [
"MIT"
] | null | null | null | src/compiler/lib/Solution.hpp | gperrotta/yask | a35aa5a6f52bb5a11c182045c469a55a84fa9b36 | [
"MIT"
] | null | null | null | src/compiler/lib/Solution.hpp | gperrotta/yask | a35aa5a6f52bb5a11c182045c469a55a84fa9b36 | [
"MIT"
] | null | null | null | /*****************************************************************************
YASK: Yet Another Stencil Kit
Copyright (c) 2014-2019, Intel Corporation
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 Soft... | 38.34629 | 109 | 0.588555 | gperrotta |
9a263a6528831a76724fa8d442bd37b186de73c3 | 15,769 | cpp | C++ | CurrencyRecognition/src/ImageAnalysis/ImageDetector.cpp | vogt31337/Currency-Recognition | 05198cb002d854d650479d97d6b4e7538f670965 | [
"MIT"
] | 42 | 2015-08-20T06:57:50.000Z | 2021-04-30T17:52:27.000Z | CurrencyRecognition/src/ImageAnalysis/ImageDetector.cpp | vogt31337/Currency-Recognition | 05198cb002d854d650479d97d6b4e7538f670965 | [
"MIT"
] | 3 | 2016-11-17T14:55:43.000Z | 2019-05-20T21:01:19.000Z | CurrencyRecognition/src/ImageAnalysis/ImageDetector.cpp | vogt31337/Currency-Recognition | 05198cb002d854d650479d97d6b4e7538f670965 | [
"MIT"
] | 27 | 2016-01-29T05:41:26.000Z | 2020-11-09T12:58:42.000Z | #include "ImageDetector.h"
// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> <ImageDetector> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
ImageDetector::ImageDetector(Ptr<FeatureDetector> featureDetector, Ptr<DescriptorExtractor>... | 42.850543 | 251 | 0.722684 | vogt31337 |
9a2c88ddbed7605526dca4235c577809eba1b6b2 | 28,057 | cpp | C++ | Src/Value.cpp | draede/cx | f3ce4aec9b99095760481b1507e383975b2827e3 | [
"MIT"
] | 1 | 2016-08-28T18:29:17.000Z | 2016-08-28T18:29:17.000Z | Src/Value.cpp | draede/cx | f3ce4aec9b99095760481b1507e383975b2827e3 | [
"MIT"
] | null | null | null | Src/Value.cpp | draede/cx | f3ce4aec9b99095760481b1507e383975b2827e3 | [
"MIT"
] | null | null | null | /*
* CX - C++ framework for general purpose development
*
* https://github.com/draede/cx
*
* Copyright (C) 2014 - 2021 draede - draede [at] outlook [dot] com
*
* Released under the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associate... | 14.651175 | 112 | 0.602559 | draede |
9a2d05e47bd44d6d79b0bff50eda108f63beb5b2 | 473 | cpp | C++ | fboss/agent/hw/sai/store/SaiObjectEventPublisher.cpp | nathanawmk/fboss | 9f36dbaaae47202f9131598560c65715334a9a83 | [
"BSD-3-Clause"
] | 834 | 2015-03-10T18:12:28.000Z | 2022-03-31T20:16:17.000Z | fboss/agent/hw/sai/store/SaiObjectEventPublisher.cpp | nathanawmk/fboss | 9f36dbaaae47202f9131598560c65715334a9a83 | [
"BSD-3-Clause"
] | 82 | 2015-04-07T08:48:29.000Z | 2022-03-11T21:56:58.000Z | fboss/agent/hw/sai/store/SaiObjectEventPublisher.cpp | nathanawmk/fboss | 9f36dbaaae47202f9131598560c65715334a9a83 | [
"BSD-3-Clause"
] | 296 | 2015-03-11T03:45:37.000Z | 2022-03-14T22:54:22.000Z | // Copyright 2004-present Facebook. All Rights Reserved.
#include "fboss/agent/hw/sai/store/SaiObjectEventPublisher.h"
#include <folly/Singleton.h>
namespace {
struct singleton_tag_type {};
} // namespace
namespace facebook::fboss {
static folly::Singleton<SaiObjectEventPublisher, singleton_tag_type>
kSingleto... | 21.5 | 68 | 0.778013 | nathanawmk |
9a2fb0628aefad8b7f0559296a58049cf8c5d057 | 1,245 | hpp | C++ | include/Pomdog/Graphics/InputLayoutHelper.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Graphics/InputLayoutHelper.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | include/Pomdog/Graphics/InputLayoutHelper.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_INPUTLAYOUTHELPER_A6C6ACE6_HPP
#define POMDOG_INPUTLAYOUTHELPER_A6C6ACE6_HPP
#include "detail/ForwardDeclarations.hpp"
#include "InputElementFormat.hpp"
#include "InputElement.hpp"
#include "Inpu... | 24.9 | 72 | 0.759839 | bis83 |
9a2fb48bc643b588adf33c4b65b984ac3fbbd498 | 7,800 | cpp | C++ | include/et/rendering/vulkan/vulkan_textureset.cpp | sergeyreznik/et-engine | a95fe4b9c5db0e873361f36908de284d0ae4b6d6 | [
"BSD-3-Clause"
] | 55 | 2015-01-13T22:50:36.000Z | 2022-02-26T01:55:02.000Z | include/et/rendering/vulkan/vulkan_textureset.cpp | sergeyreznik/et-engine | a95fe4b9c5db0e873361f36908de284d0ae4b6d6 | [
"BSD-3-Clause"
] | 4 | 2015-01-17T01:57:42.000Z | 2016-07-29T07:49:27.000Z | include/et/rendering/vulkan/vulkan_textureset.cpp | sergeyreznik/et-engine | a95fe4b9c5db0e873361f36908de284d0ae4b6d6 | [
"BSD-3-Clause"
] | 10 | 2015-01-17T18:46:44.000Z | 2021-05-21T09:19:13.000Z | /*
* This file is part of `et engine`
* Copyright 2009-2016 by Sergey Reznik
* Please, modify content only if you know what are you doing.
*
*/
#pragma once
#include <et/rendering/vulkan/vulkan_textureset.h>
#include <et/rendering/vulkan/vulkan_texture.h>
#include <et/rendering/vulkan/vulkan_sampler.h>
#include ... | 38.613861 | 120 | 0.782821 | sergeyreznik |
9a317db3c774b45f8f4c3e1a3770092005b5f11b | 2,482 | cpp | C++ | lab_01/lab1_fixed.cpp | pwestrich/csc_2110 | ed56c0ccdc7aeb55e6f0711a958b8c1fff691bd5 | [
"MIT"
] | null | null | null | lab_01/lab1_fixed.cpp | pwestrich/csc_2110 | ed56c0ccdc7aeb55e6f0711a958b8c1fff691bd5 | [
"MIT"
] | null | null | null | lab_01/lab1_fixed.cpp | pwestrich/csc_2110 | ed56c0ccdc7aeb55e6f0711a958b8c1fff691bd5 | [
"MIT"
] | null | null | null | // -------------------------------------------------------
//
// lab1.cpp
//
// Program to read a 3 X 3 matrix of integers mat and an integer item, and
// search mat to see if it contains item.
//
// Add your name here and other info requested by your instructor.
//
// -------------------------------------... | 30.641975 | 76 | 0.485093 | pwestrich |
9a389690742920a2c94fc47c069346cc422bf1d7 | 4,502 | cpp | C++ | tests/manipulating_values.cpp | whiterabbit963/tomlplusplus | 6b8fa1bef546664b1031d4f0d32c77df5d8d94c1 | [
"MIT"
] | null | null | null | tests/manipulating_values.cpp | whiterabbit963/tomlplusplus | 6b8fa1bef546664b1031d4f0d32c77df5d8d94c1 | [
"MIT"
] | null | null | null | tests/manipulating_values.cpp | whiterabbit963/tomlplusplus | 6b8fa1bef546664b1031d4f0d32c77df5d8d94c1 | [
"MIT"
] | null | null | null | // This file is a part of toml++ and is subject to the the terms of the MIT license.
// Copyright (c) 2019-2020 Mark Gillard <mark.gillard@outlook.com.au>
// See https://github.com/marzer/tomlplusplus/blob/master/LICENSE for the full license text.
// SPDX-License-Identifier: MIT
#include "tests.h"
#ifdef _WIN32
TOML_... | 33.849624 | 92 | 0.683696 | whiterabbit963 |
9a3ba4e009c36026703baa2c7cd1c15a6daabbd1 | 530 | cpp | C++ | uva/11889_0.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | uva/11889_0.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | uva/11889_0.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | // 11889 - Benefit
#include <cstdio>
int gcd(const int & a, const int & b)
{
if(!b) return a;
return gcd(b, a % b);
}
// gcd and lcm solution
int main()
{
int a, b, c, n;
scanf("%d", &n);
while(n-- && scanf("%d %d", &a, &c))
{
if(c % a != 0) printf("NO SOLUTION\n");
else
{
b = c;
for(int i = 1; i ... | 13.25 | 44 | 0.40566 | larc |
9a3dc57ae50cc8948a2e03f3e3e135080d576bb3 | 1,410 | cpp | C++ | test/SliceTest.cpp | jerryzhenleicai/Streams | e699eb1767bc96a50098a148eafe4fc09a559d51 | [
"MIT"
] | 494 | 2015-01-06T14:56:51.000Z | 2022-01-31T23:09:30.000Z | test/SliceTest.cpp | jerryzhenleicai/Streams | e699eb1767bc96a50098a148eafe4fc09a559d51 | [
"MIT"
] | 9 | 2015-04-07T15:27:41.000Z | 2017-01-11T05:54:40.000Z | test/SliceTest.cpp | jerryzhenleicai/Streams | e699eb1767bc96a50098a148eafe4fc09a559d51 | [
"MIT"
] | 54 | 2018-07-06T02:09:27.000Z | 2021-11-10T08:42:50.000Z | #include <Stream.h>
#include <gmock/gmock.h>
using namespace testing;
using namespace stream;
using namespace stream::op;
TEST(SliceTest, Slice) {
EXPECT_THAT(MakeStream::range(0, 10) | slice(0, 5) | to_vector(),
ElementsAre(0, 1, 2, 3, 4));
EXPECT_THAT(MakeStream::range(0, 10) | slice(2, 8, ... | 33.571429 | 76 | 0.570922 | jerryzhenleicai |
9a3f18d4595fd1fa3a7f1e6b3ca075b5012eb67e | 1,810 | cc | C++ | ash/accelerators/accelerator_dispatcher_win.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | 1 | 2016-03-10T09:13:57.000Z | 2016-03-10T09:13:57.000Z | ash/accelerators/accelerator_dispatcher_win.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | 1 | 2022-03-13T08:39:05.000Z | 2022-03-13T08:39:05.000Z | ash/accelerators/accelerator_dispatcher_win.cc | gavinp/chromium | 681563ea0f892a051f4ef3d5e53438e0bb7d2261 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/accelerators/accelerator_dispatcher.h"
#include "ash/accelerators/accelerator_controller.h"
#include "ash/ime/event.h"
#include "ash/sh... | 34.150943 | 73 | 0.69116 | gavinp |
9a4001b994da872b3f169344c8f06a215cecc3ec | 1,058 | cpp | C++ | MovieRental/main.cpp | SonicYeager/CppPractice | 05b80ac918648ba733ec5fce969eac4b2ae79b58 | [
"MIT"
] | null | null | null | MovieRental/main.cpp | SonicYeager/CppPractice | 05b80ac918648ba733ec5fce969eac4b2ae79b58 | [
"MIT"
] | 9 | 2020-10-26T10:14:46.000Z | 2020-10-27T12:13:51.000Z | MovieRental/main.cpp | SonicYeager/CppPractice | 05b80ac918648ba733ec5fce969eac4b2ae79b58 | [
"MIT"
] | null | null | null | #include "Customer.h"
#include <iostream>
#include <sstream>
int main()
{
Customer paul("Paul"), jana("Jana");
paul.AddRental({{"Planet Erde", Movie::REGULAR}, 3});
paul.AddRental({{"Planet der Affen", Movie::NEW_RELEASE}, 5});
paul.AddRental({{"HowTo MAGIX", Movie::NEW_RELEASE}, 1});
jana.AddRental({{"... | 26.45 | 82 | 0.643667 | SonicYeager |
9a422b4a5bfcbd31df6cd0e7cb09e588cd3e83cc | 8,902 | cpp | C++ | apps/ncv_benchmark_optimizers.cpp | 0x0all/nanocv | dc58dea6b4eb7be2089b168d39c2b02aa2730741 | [
"MIT"
] | null | null | null | apps/ncv_benchmark_optimizers.cpp | 0x0all/nanocv | dc58dea6b4eb7be2089b168d39c2b02aa2730741 | [
"MIT"
] | null | null | null | apps/ncv_benchmark_optimizers.cpp | 0x0all/nanocv | dc58dea6b4eb7be2089b168d39c2b02aa2730741 | [
"MIT"
] | 1 | 2018-08-02T02:41:37.000Z | 2018-08-02T02:41:37.000Z | #include "nanocv/timer.h"
#include "nanocv/logger.h"
#include "nanocv/minimize.h"
#include "nanocv/tabulator.h"
#include "nanocv/math/abs.hpp"
#include "nanocv/math/clamp.hpp"
#include "nanocv/math/stats.hpp"
#include "nanocv/math/random.hpp"
#include "nanocv/math/numeric.hpp"
#include "nanocv/math/epsilon.hpp"
#includ... | 36.040486 | 106 | 0.526174 | 0x0all |
9a44bd53683b19536e69b70574d6793589cbb5aa | 7,010 | cc | C++ | components/drive/search_metadata_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/drive/search_metadata_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | components/drive/search_metadata_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/drive/chromeos/search_metadata.h"
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include <vector>
#include "base/i... | 36.321244 | 80 | 0.727817 | zealoussnow |
9a487b9a7ccac9f34b2618dcad4491cc3fcc14ec | 5,047 | cpp | C++ | ares/fc/cartridge/board/konami-vrc2.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/fc/cartridge/board/konami-vrc2.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/fc/cartridge/board/konami-vrc2.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | struct KonamiVRC2 : Interface {
Memory::Readable<uint8> programROM;
Memory::Writable<uint8> programRAM;
Memory::Readable<uint8> characterROM;
Memory::Writable<uint8> characterRAM;
using Interface::Interface;
auto load(Markup::Node document) -> void override {
auto board = document["game/board"];
I... | 36.05 | 93 | 0.644938 | moon-chilled |
9a487e6564783f51cf469c2a1abd163251228c67 | 8,829 | cpp | C++ | QuantLib-Ext/qlext/termstructures/yield/ratehelpers.cpp | ChinaQuants/qlengine | 6f40f8204df9b5c46eec6c6bb5cae6cde9b1455d | [
"BSD-3-Clause"
] | 17 | 2017-09-24T13:25:43.000Z | 2021-08-31T13:14:45.000Z | QuantLib-Ext/qlext/termstructures/yield/ratehelpers.cpp | Bralzer/ExoticOptionPriceEngine | 55650eee29b054b2e3d5083eb42a81419960901f | [
"BSD-3-Clause"
] | null | null | null | QuantLib-Ext/qlext/termstructures/yield/ratehelpers.cpp | Bralzer/ExoticOptionPriceEngine | 55650eee29b054b2e3d5083eb42a81419960901f | [
"BSD-3-Clause"
] | 6 | 2017-09-25T01:29:35.000Z | 2021-09-01T05:14:17.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2017 Cheng Li
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or mod... | 42.859223 | 126 | 0.680372 | ChinaQuants |
9a4d816ed7e9a880ed798674b6969d2a8b5aa9a7 | 4,079 | cpp | C++ | user/tests/wiring/no_fixture/system.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2019-02-24T07:13:51.000Z | 2019-02-24T07:13:51.000Z | user/tests/wiring/no_fixture/system.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | 1 | 2018-05-29T19:27:53.000Z | 2018-05-29T19:27:53.000Z | user/tests/wiring/no_fixture/system.cpp | zsoltmazlo/indoor-controller2 | 5fde9f40b30d087af03f6cccdb97821719941955 | [
"MIT"
] | null | null | null |
#include "application.h"
#include "unit-test/unit-test.h"
#if PLATFORM_ID >= 3
test(SYSTEM_01_freeMemory)
{
// this test didn't work on the core attempting to allocate the current value of
// freeMemory(), presumably because of fragmented heap from
// relatively large allocations during the handshake, so... | 31.137405 | 164 | 0.683256 | zsoltmazlo |
9a51c4f477a971b0aac14e517d23c8ae2cd5a1a5 | 6,234 | hpp | C++ | ModelData/InstableCPUcoreOperationDetection.hpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | ModelData/InstableCPUcoreOperationDetection.hpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | ModelData/InstableCPUcoreOperationDetection.hpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | 1 | 2021-07-16T21:01:26.000Z | 2021-07-16T21:01:26.000Z | /*
* InstableCPUcoreOperationDetection.hpp
*
* Created on: 22.04.2012
* Author: Stefan
*/
#ifndef INSTABLECPUCOREVOLTAGEDETECTION_HPP_
#define INSTABLECPUCOREVOLTAGEDETECTION_HPP_
//#include "VoltageAndFreq.hpp" //class VoltageAndFreq
#include <Controller/multithread/thread_type.hpp>
//THREAD_PROC_CALLING_... | 34.441989 | 88 | 0.796118 | st-gb |
9a5463c61acadf9034e5c0698b86f19004fbdeb8 | 949 | cpp | C++ | graphics-library/src/illumination/directional_light.cpp | thetorine/opengl3-library | 3904d857fd1085ba2c57c4289eb0e0d123f11a14 | [
"MIT"
] | null | null | null | graphics-library/src/illumination/directional_light.cpp | thetorine/opengl3-library | 3904d857fd1085ba2c57c4289eb0e0d123f11a14 | [
"MIT"
] | null | null | null | graphics-library/src/illumination/directional_light.cpp | thetorine/opengl3-library | 3904d857fd1085ba2c57c4289eb0e0d123f11a14 | [
"MIT"
] | null | null | null | #include <string>
#include "engine/shader_controller.hpp"
#include "illumination/directional_light.hpp"
namespace gl::illumination {
DirectionalLight::DirectionalLight(const glm::vec3 &dir, const glm::vec3 &color, float intensity)
: m_dir(dir), m_color(color), m_intensity(intensity) {
}
... | 36.5 | 102 | 0.667018 | thetorine |
9a5890fa0da18e461b3e74a85105ea2216cb4fff | 6,755 | cc | C++ | Code/Components/Analysis/analysis/current/sourcefitting/CurvatureMapCreator.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Analysis/analysis/current/sourcefitting/CurvatureMapCreator.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | Code/Components/Analysis/analysis/current/sourcefitting/CurvatureMapCreator.cc | rtobar/askapsoft | 6bae06071d7d24f41abe3f2b7f9ee06cb0a9445e | [
"BSL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | /// @file
///
/// XXX Notes on program XXX
///
/// @copyright (c) 2011 CSIRO
/// Australia Telescope National Facility (ATNF)
/// Commonwealth Scientific and Industrial Research Organisation (CSIRO)
/// PO Box 76, Epping NSW 1710, Australia
/// atnf-enquiries@csiro.au
///
/// This file is part of the ASKAP software dis... | 34.116162 | 98 | 0.687491 | rtobar |
9a58b8685fc78db29f02005c77e7a87db6265711 | 6,229 | cpp | C++ | windows/advcore/ctf/aimm1.2/win32/funcprv.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | windows/advcore/ctf/aimm1.2/win32/funcprv.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | windows/advcore/ctf/aimm1.2/win32/funcprv.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// funcprv.cpp
//
#include "private.h"
#include "helpers.h"
#include "immxutil.h"
#include "funcprv.h"
#include "cresstr.h"
#include "resource.h"
//////////////////////////////////////////////////////////////////////////////
//
// CFunctionProvider
//
////////////////////////////////////////////////... | 22.98524 | 103 | 0.396693 | npocmaka |
9a5bea3fff59bbd804be55fc3bae91234f087268 | 267 | cpp | C++ | Day2/zadanie2.cpp | majkel84/kurs_cpp_podstawowy | eddaffb310c6132304aa26dc87ec04ddfc09c541 | [
"MIT"
] | 1 | 2022-03-03T14:07:57.000Z | 2022-03-03T14:07:57.000Z | Day2/zadanie2.cpp | majkel84/kurs_cpp_podstawowy | eddaffb310c6132304aa26dc87ec04ddfc09c541 | [
"MIT"
] | 2 | 2020-05-22T22:01:52.000Z | 2020-05-30T09:24:42.000Z | Day2/zadanie2.cpp | majkel84/kurs_cpp_podstawowy | eddaffb310c6132304aa26dc87ec04ddfc09c541 | [
"MIT"
] | null | null | null | #include <iostream>
void foo(int* ptr) {
*ptr = 10;
}
void bar(int* ptr) {
*ptr = 20;
}
int main() {
int number = 5;
std::cout << number << '\n';
foo(&number);
std::cout << number << '\n';
bar(&number);
std::cout << number << '\n';
return 0;
}
| 12.714286 | 30 | 0.505618 | majkel84 |
9a5c8fa10db7b514eb5979e451ad60d3e6ff69a5 | 4,060 | cpp | C++ | ImdViewerV2/plugins/efbbox/efbbox.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 2 | 2022-01-02T08:12:29.000Z | 2022-02-12T22:15:11.000Z | ImdViewerV2/plugins/efbbox/efbbox.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | null | null | null | ImdViewerV2/plugins/efbbox/efbbox.cpp | olivierchatry/iri3d | cae98c61d9257546d0fc81e69709297d04a17a14 | [
"MIT"
] | 1 | 2022-01-02T08:09:51.000Z | 2022-01-02T08:09:51.000Z | #include "stdafx.h"
#include "efbbox.h"
#include "magic/MgcBox3.h"
#include "magic/MgcVector3.h"
static imdviewer_plugin_info_t plugins_info =
{
"Epifighter BoundingBox generator.",
"Generate bounding box around bones.",
"Chatry Oliver, Julien Barbier.",
true // display box for octr... | 25.061728 | 92 | 0.599015 | olivierchatry |
9a5e005d2f388ea2c62ff109bd5bc7fc4f0d0c44 | 8,320 | cpp | C++ | source/examples/states/main.cpp | citron0xa9/globjects | 53a1de45f3c177fbd805610f274d3ffb1b97843a | [
"MIT"
] | null | null | null | source/examples/states/main.cpp | citron0xa9/globjects | 53a1de45f3c177fbd805610f274d3ffb1b97843a | [
"MIT"
] | null | null | null | source/examples/states/main.cpp | citron0xa9/globjects | 53a1de45f3c177fbd805610f274d3ffb1b97843a | [
"MIT"
] | 2 | 2020-10-01T04:10:51.000Z | 2021-07-01T07:45:45.000Z |
#include <iostream>
#include <algorithm>
#include <cpplocate/cpplocate.h>
#include <cpplocate/ModuleInfo.h>
#include <glm/vec2.hpp>
#include <glbinding/gl/gl.h>
#include <glbinding/ContextInfo.h>
#include <glbinding/Version.h>
#include <GLFW/glfw3.h>
#include <globjects/globjects.h>
#include <glob... | 32.885375 | 105 | 0.683774 | citron0xa9 |
9a5f5c33216fd13f253f598c1e49cd75cc8c66df | 559 | cpp | C++ | dev/assem.cpp | jordanjohnston/manseglib | 00723792c9b16f6518e25095569d77f2ed7b6d22 | [
"MIT"
] | null | null | null | dev/assem.cpp | jordanjohnston/manseglib | 00723792c9b16f6518e25095569d77f2ed7b6d22 | [
"MIT"
] | null | null | null | dev/assem.cpp | jordanjohnston/manseglib | 00723792c9b16f6518e25095569d77f2ed7b6d22 | [
"MIT"
] | 1 | 2020-06-09T18:48:14.000Z | 2020-06-09T18:48:14.000Z | #include <iostream>
#include "../manseglib.hpp"
int main()
{
constexpr int size = 1000;
ManSeg::ManSegArray a(size);
ManSeg::ManSegArray b(size);
// double a[size];
// double b[size];
std::cout << "filling\n";
for(int i = 0; i < size; ++i)
{
b.pairs[i] = 0;
a.pairs[i] = i;
}
std::cout << "now copying\n... | 17.46875 | 57 | 0.543828 | jordanjohnston |