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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d7f93776653b25a3465ac8fefd089c38b6d4401e | 382 | hpp | C++ | examples/12_pubsvc/generated/src/NECommon.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | examples/12_pubsvc/generated/src/NECommon.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | examples/12_pubsvc/generated/src/NECommon.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* \file generated/src/NECommon.hpp
* \ingroup 12_pubsvc
* \brief Namespace contains common constants.
************************************************************************/
namespace NECommon
{
... | 29.384615 | 74 | 0.387435 | Ali-Nasrolahi |
d7fb35577f44d1f67139fd49e9a7e9af1d4d0987 | 3,946 | cpp | C++ | tmain_form.cpp | stasinek/Koperek | 35b241fe37d7e1b3b0215368b0e35c43c3c16660 | [
"BSD-2-Clause"
] | null | null | null | tmain_form.cpp | stasinek/Koperek | 35b241fe37d7e1b3b0215368b0e35c43c3c16660 | [
"BSD-2-Clause"
] | null | null | null | tmain_form.cpp | stasinek/Koperek | 35b241fe37d7e1b3b0215368b0e35c43c3c16660 | [
"BSD-2-Clause"
] | null | null | null | /*Koperek32(R) Copyright (c) Stanislaw Stasiak, sstoft@wp.pl <2014> All rights reserved.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR... | 34.313043 | 460 | 0.714901 | stasinek |
d7ff5d4fd97327cc62a6fd222e54de480b4a9c0c | 290 | hpp | C++ | TreeWalkInterpreter/includes/Stmt/ExprStmt.hpp | dipeshkaphle/Lox-cpp | 9c73987f08aa366234b291df938261f5592a140f | [
"MIT"
] | null | null | null | TreeWalkInterpreter/includes/Stmt/ExprStmt.hpp | dipeshkaphle/Lox-cpp | 9c73987f08aa366234b291df938261f5592a140f | [
"MIT"
] | null | null | null | TreeWalkInterpreter/includes/Stmt/ExprStmt.hpp | dipeshkaphle/Lox-cpp | 9c73987f08aa366234b291df938261f5592a140f | [
"MIT"
] | null | null | null | #pragma once
#include "Stmt.hpp"
#include "StmtVisitor.hpp"
#include "includes/Expr/Expr.hpp"
#include <memory>
class expr_stmt : public Stmt {
public:
std::unique_ptr<Expr> expr;
expr_stmt(std::unique_ptr<Expr> expr);
std::any accept(stmt_visitor<std::any> &visitor) override;
};
| 19.333333 | 60 | 0.724138 | dipeshkaphle |
cc047f3556dcd9d4e2ebccffebff5f9c42567681 | 2,921 | cpp | C++ | paint/solutions/modified2-ryno-full.cpp | acio-olympiad/ACIO2022Contest2 | 53c7ced66ae916b118cfab8c72e4531dd08defd2 | [
"MIT"
] | null | null | null | paint/solutions/modified2-ryno-full.cpp | acio-olympiad/ACIO2022Contest2 | 53c7ced66ae916b118cfab8c72e4531dd08defd2 | [
"MIT"
] | null | null | null | paint/solutions/modified2-ryno-full.cpp | acio-olympiad/ACIO2022Contest2 | 53c7ced66ae916b118cfab8c72e4531dd08defd2 | [
"MIT"
] | null | null | null | /* N <= 2e3, K <= 2e3
fracturing search
O(NK log NK)
*/
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
#include <assert.h>
using namespace std;
typedef long long ll;
ll N, K, D;
vector<ll> costs[2005];
vector<ll> prevUsed[2005];
struct State {
// used is represented... | 26.080357 | 89 | 0.480315 | acio-olympiad |
cc07184363eb3095efc9e4fd5dad22f7bd4ef33c | 1,783 | cpp | C++ | android-31/android/view/ActionProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/view/ActionProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/view/ActionProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../content/Context.hpp"
#include "./View.hpp"
#include "./ActionProvider.hpp"
namespace android::view
{
// Fields
// QJniObject forward
ActionProvider::ActionProvider(QJniObject obj) : JObject(obj) {}
// Constructors
ActionProvider::ActionProvider(android::content::Context arg0)
: JObject(
"and... | 20.033708 | 75 | 0.691531 | YJBeetle |
cc0a20905abad9eac184c28663875b7fe134c9d3 | 14,635 | hpp | C++ | third_party/jsonxx.v0.9.2/include/jsonxx/json_unicode.hpp | vectordb-io/vectordb | 3175b0d7f795d4f5daa22eb58ff86a01cf66780d | [
"Apache-2.0"
] | 9 | 2021-06-16T08:02:19.000Z | 2021-11-04T11:49:27.000Z | third_party/jsonxx.v0.9.2/include/jsonxx/json_unicode.hpp | vectordb-io/vectordb | 3175b0d7f795d4f5daa22eb58ff86a01cf66780d | [
"Apache-2.0"
] | null | null | null | third_party/jsonxx.v0.9.2/include/jsonxx/json_unicode.hpp | vectordb-io/vectordb | 3175b0d7f795d4f5daa22eb58ff86a01cf66780d | [
"Apache-2.0"
] | 2 | 2021-06-17T14:21:03.000Z | 2021-08-13T16:37:35.000Z | // Copyright (c) 2018-2020 jsonxx - Nomango
//
// 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, ... | 29.685598 | 112 | 0.586334 | vectordb-io |
cc0d28d510e6dbac65cfd501c410ebe8d8cdccc9 | 14,246 | hpp | C++ | src/smilesection.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 27 | 2016-11-19T16:51:21.000Z | 2021-09-08T16:44:15.000Z | src/smilesection.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 1 | 2016-12-28T16:38:38.000Z | 2017-02-17T05:32:13.000Z | src/smilesection.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 smilesection_h
#define smilesection_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 FlatSmileSectionWorke... | 19.435198 | 79 | 0.659273 | quantlibnode |
cc0ee718e93af0c434dd888f299c64c242d010ad | 2,013 | cc | C++ | libs/xmi/operation.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/operation.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/operation.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::XMI: operation.cc
//
// UML::Operation functionality
//
// Copyright (c) 2003 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//==============================================... | 27.575342 | 76 | 0.545951 | sandtreader |
cc0ee9a73145bbbca35e45e7a96a494223a2dc46 | 1,117 | cpp | C++ | BAC/exercises/ch9/UVa103.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch9/UVa103.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch9/UVa103.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa103 Stacking Boxes
// Rujia Liu
// 题意:输入k个n维盒子(k<=30, n<=10),找一个最长嵌套序列。
// 算法:DAG上的最长路。首先把盒子的各个维排序,这样判断起来比较简单
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxk = 30 + 5;
const int maxn = 10 + 5;
int n, k, box[maxk][maxn], d[maxk], next[maxk];
int dp(int i) {
int& ans =... | 22.795918 | 63 | 0.498657 | Anyrainel |
cc1733618c8c9d3d16f8ff8bce6fba2e120a08b7 | 1,507 | cpp | C++ | VPKReader/VPKReader.cpp | hufuman/VPKReader | d17af846a8212caa1e739852e266fe8ee6a5c1ea | [
"MIT"
] | 14 | 2015-05-07T15:05:38.000Z | 2020-12-04T07:00:45.000Z | VPKReader/VPKReader.cpp | hufuman/VPKReader | d17af846a8212caa1e739852e266fe8ee6a5c1ea | [
"MIT"
] | null | null | null | VPKReader/VPKReader.cpp | hufuman/VPKReader | d17af846a8212caa1e739852e266fe8ee6a5c1ea | [
"MIT"
] | 6 | 2015-05-21T16:03:03.000Z | 2021-05-17T17:17:52.000Z |
// VPKReader.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "VPKReader.h"
#include "VPKReaderDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CVPKReaderApp
BEGIN_MESSAGE_MAP(CVPKReaderApp, CWinApp)
END_MESSAGE_MAP()
// CVPKReaderApp construction
CVPKReaderApp::CVPKRe... | 22.161765 | 71 | 0.746516 | hufuman |
cc182522136bfe6534e23bb5db502489f80c5c6f | 1,296 | cpp | C++ | code/RegulaFalsi.cpp | Shiv-sharma-111/Numerical-Methods | 3a85a1b643f3b4c00fb1b6d3c13af124e9d084e9 | [
"MIT"
] | null | null | null | code/RegulaFalsi.cpp | Shiv-sharma-111/Numerical-Methods | 3a85a1b643f3b4c00fb1b6d3c13af124e9d084e9 | [
"MIT"
] | null | null | null | code/RegulaFalsi.cpp | Shiv-sharma-111/Numerical-Methods | 3a85a1b643f3b4c00fb1b6d3c13af124e9d084e9 | [
"MIT"
] | null | null | null | // Program for implementation of Bisection Method for
#include<bits/stdc++.h>
using namespace std;
#define MAX_ITER 1000000
//Define the maximium iteration according to your questio
// An example function whose solution is determined using
// Bisection Method. The function is x^3 - x^2 + 2
double func(double ... | 24 | 60 | 0.53858 | Shiv-sharma-111 |
cc216d860d51144982fd80709e6f1d1178ebfd37 | 270 | hpp | C++ | src/pulse/extensions/Vector.hpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | 2 | 2016-10-12T01:31:55.000Z | 2017-01-06T21:07:25.000Z | src/pulse/extensions/Vector.hpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | 1 | 2016-10-28T22:36:04.000Z | 2016-11-18T07:59:50.000Z | src/pulse/extensions/Vector.hpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "cocos2d.h"
namespace pulse {
template <typename T>
inline cocos2d::Vector<T> toVector(const std::vector<T>& vec) {
cocos2d::Vector<T> out;
for (auto&& element : vec) {
out.pushBack(element);
}
return out;
}
} // pulse
| 15.882353 | 63 | 0.622222 | Rypac |
cc22eb5c2ee4b4475fb0962b2590c0cd830c552d | 47,400 | cpp | C++ | drishti/networkobject.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 118 | 2016-11-01T06:01:44.000Z | 2022-03-30T05:20:19.000Z | drishti/networkobject.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 56 | 2016-09-30T09:29:36.000Z | 2022-03-31T17:15:32.000Z | drishti/networkobject.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 28 | 2016-07-31T23:48:51.000Z | 2021-05-25T05:32:47.000Z | #include "global.h"
#include "staticfunctions.h"
#include "networkobject.h"
#include "matrix.h"
#if defined(Q_OS_WIN32)
#include <netcdfcpp.h>
#endif
void NetworkObject::setScale(float s) { m_scaleV = m_scaleE = s; }
float NetworkObject::scaleV() { return m_scaleV; }
void NetworkObject::setScaleV(float s) { m_scaleV =... | 24.295233 | 80 | 0.593397 | stranddw |
cc23a8ba22778c5cf90dd9e8b25bcd5e96664c77 | 1,295 | cpp | C++ | cutrod.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | cutrod.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | cutrod.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | 1 | 2019-01-19T01:05:07.000Z | 2019-01-19T01:05:07.000Z | #include <iostream>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <string>
#include <cstring>
#include <iomanip>
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
using std::string;
int n, k;
int ropes[10010] = {0};
bool check(int len)
{
int tot = 0;
for (int i = 1; i <= n... | 17.986111 | 62 | 0.403861 | W-YXN |
cc280a5d7476322d006fa06d8955609bb5b6a495 | 3,794 | hpp | C++ | hpx/plugins/parcel/message_buffer.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/plugins/parcel/message_buffer.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/plugins/parcel/message_buffer.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2013 Hartmut Kaiser
//
// 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)
#if !defined(HPX_RUNTIME_PARCELSET_POLICIES_COALESCING_MESSAGE_BUFFER_MAR_07_2013_1250PM)
#define HPX_RUNTIME_PARCELSE... | 27.897059 | 89 | 0.576173 | andreasbuhr |
cc33a61e7eb6b7d24d5b18d88053f1ecc17ee91d | 7,772 | cpp | C++ | Tree/binaryTree.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | Tree/binaryTree.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | null | null | null | Tree/binaryTree.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 5 | 2020-09-21T12:49:07.000Z | 2020-09-29T16:13:09.000Z | //
// binaryTree.cpp
// AnishC++
//
// Created by Anish Mookherjee on 01/11/19.
// Copyright © 2019 Anish Mookherjee. All rights reserved.
//
#include <iostream>
using namespace std;
struct node
{
int data;
struct node *left;
struct node *right;
}*tree;
void createTree(struct node* tree)
{
tree=NUL... | 25.233766 | 85 | 0.476969 | harshallgarg |
cc34aa7ac8c65869c77ecb684d326d21e6cca705 | 4,204 | cpp | C++ | demos/glut/multibody/src/scenes/setup_domino_spiral.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | null | null | null | demos/glut/multibody/src/scenes/setup_domino_spiral.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | null | null | null | demos/glut/multibody/src/scenes/setup_domino_spiral.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | null | null | null | //
// OpenTissue Template Library Demo
// - A specific demonstration of the flexibility of OTTL.
// Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
//
// OTTL and OTTL Demos are licensed under zlib.
//
#include "setup_domino_spiral.h"
#include <OpenTissue/core/geometry/geometry_compute_box... | 33.903226 | 126 | 0.709087 | ricortiz |
cc3615ff211ed0a434cab0856157758739c55d1d | 19,385 | cpp | C++ | src/Mobs.cpp | Cavantar/RoqueLike | c2466c5950730f51a9d582d3757548299b226327 | [
"WTFPL"
] | null | null | null | src/Mobs.cpp | Cavantar/RoqueLike | c2466c5950730f51a9d582d3757548299b226327 | [
"WTFPL"
] | null | null | null | src/Mobs.cpp | Cavantar/RoqueLike | c2466c5950730f51a9d582d3757548299b226327 | [
"WTFPL"
] | null | null | null | #include "Mobs.h"
#include <sstream>
#include <iomanip>
#include <iostream>
Mob::Mob(const EntityPosition& position, int mobLevel, int health) : mobLevel(mobLevel), health(health)
{
this->position = position;
renderData.type = ER_MOB;
}
void
Mob::addHealth(float amount)
{
if(amount < 0)
{
amount += getSh... | 25.373037 | 124 | 0.682177 | Cavantar |
cc365f8b2bffd09ab59c4e654f53bcb02cc8951b | 442 | cpp | C++ | solved/0-b/ant-on-a-chessboard/uva/gen.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/ant-on-a-chessboard/uva/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/ant-on-a-chessboard/uva/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstdlib>
#include <ctime>
#define MAXT 100
#define MAXN 2000000000
int T;
void gen()
{
int n = rand() % MAXN + 1;
int r = rand() % 10;
if (n >= 100 && r < 1) n = rand() % 100 + 1;
if (n >= 10000 && r < 3) n = rand() % 10000 + 1;
if (n >= 1000000 && r < 5) n = rand() % 1000000 + 1... | 11.945946 | 53 | 0.50905 | abuasifkhan |
cc38878a5553da50f5beb70eae85b22c6c2fc7d6 | 245 | cpp | C++ | src/common/Spinlock.cpp | cas1k/rewind-viewer | 6307158c6b99dd2da0be23f1816e3418eea5771f | [
"MIT"
] | 71 | 2017-10-28T14:34:34.000Z | 2020-12-30T06:55:55.000Z | src/common/Spinlock.cpp | cas1k/rewind-viewer | 6307158c6b99dd2da0be23f1816e3418eea5771f | [
"MIT"
] | 42 | 2017-11-02T12:12:25.000Z | 2020-12-10T09:53:31.000Z | src/common/Spinlock.cpp | cas1k/rewind-viewer | 6307158c6b99dd2da0be23f1816e3418eea5771f | [
"MIT"
] | 30 | 2017-11-05T18:09:48.000Z | 2020-12-06T20:03:46.000Z | //
// Created by Vladimir A. Kiselev on 08.11.2020.
//
#include "Spinlock.h"
void Spinlock::lock() {
while (lock_.test_and_set(std::memory_order_acquire))
;
}
void Spinlock::unlock() {
lock_.clear(std::memory_order_release);
}
| 17.5 | 57 | 0.665306 | cas1k |
cc395d389d520027d5325d925f9085f1ead925e4 | 285 | cpp | C++ | ExpressionEvaluation/parse/mock/compiler_for_parser_mock/compiler_for_parser_mock.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | ExpressionEvaluation/parse/mock/compiler_for_parser_mock/compiler_for_parser_mock.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | ExpressionEvaluation/parse/mock/compiler_for_parser_mock/compiler_for_parser_mock.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | #ifdef TEST
#include "compiler_for_parser_mock.hpp"
compiler_for_parser_mock::compiler_for_parser_mock(size_t &merge_called)
: merge_called_(merge_called) {}
void compiler_for_parser_mock::merge(std::unique_ptr<compiler_i> other) {
merge_called_++;
return;
}
#endif // TEST | 21.923077 | 73 | 0.782456 | suiyili |
cc39868dc2e2a56022643ac78bd67bf109a533c4 | 547 | cpp | C++ | engine/calculators/source/MagicalAttackSpeedCalculator.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/calculators/source/MagicalAttackSpeedCalculator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/calculators/source/MagicalAttackSpeedCalculator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "Game.hpp"
#include "MagicalAttackSpeedCalculator.hpp"
using namespace std;
ActionCostValue MagicalAttackSpeedCalculator::calculate(CreaturePtr creature)
{
ActionCostValue action_cost_value = ActionCostConstants::DEFAULT;
if (creature)
{
string spell_id = creature->get_spell_knowledge_ref().get_mo... | 23.782609 | 92 | 0.744059 | sidav |
cc3c467c959a7d153ef63099a9c5e0aa100c596a | 8,920 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/System/Devices/Interfaces/WinQLDeviceInterfaceClassCollection.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/System/Devices/Interfaces/WinQLDeviceInterfaceClassCollection.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/System/Devices/Interfaces/WinQLDeviceInterfaceClassCollection.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLDeviceInterfaceClassCollection.cpp
// Copyright Querysoft Limited 2013, 2017
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
//... | 63.262411 | 190 | 0.726682 | mfaithfull |
cc3ec7713db5e387daeb5c2614a49d6be4c640a5 | 2,514 | cpp | C++ | RemoteMessage/Message.cpp | deping/RemoteMessage | cb6782814a51904ca45cb3c00fefc48594d40789 | [
"MIT"
] | null | null | null | RemoteMessage/Message.cpp | deping/RemoteMessage | cb6782814a51904ca45cb3c00fefc48594d40789 | [
"MIT"
] | null | null | null | RemoteMessage/Message.cpp | deping/RemoteMessage | cb6782814a51904ca45cb3c00fefc48594d40789 | [
"MIT"
] | null | null | null | /***************************************************************************
* Copyright (C) 2017, Deping Chen, cdp97531@sina.com
*
* All rights reserved.
* For permission requests, write to the publisher.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*... | 22.247788 | 76 | 0.658313 | deping |
cc40b34a90096d376091f0eb6ff64a32fd9f48dd | 15,609 | hh | C++ | dune/gdt/operators/darcy.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/darcy.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/darcy.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | 45.375 | 120 | 0.677622 | tobiasleibner |
cc4a9577fb50e1a12d7044ea8c8f5779059d7f55 | 1,620 | cpp | C++ | app_modules/01_keyboard_module/src/application.cpp | LucaRitz/learn_with_tello | f7fc45e7a9e9a2903638ec8367c9b355a4f1afc9 | [
"Apache-2.0"
] | null | null | null | app_modules/01_keyboard_module/src/application.cpp | LucaRitz/learn_with_tello | f7fc45e7a9e9a2903638ec8367c9b355a4f1afc9 | [
"Apache-2.0"
] | null | null | null | app_modules/01_keyboard_module/src/application.cpp | LucaRitz/learn_with_tello | f7fc45e7a9e9a2903638ec8367c9b355a4f1afc9 | [
"Apache-2.0"
] | null | null | null | #include "application.hpp"
#include <tello/tello.hpp>
#include "keyboard_view.hpp"
#include "keyboard_controller.hpp"
using tello::Tello;
using tello::Response;
Application::Application() :
_baseSettings(nullptr),
_keyboardView(std::make_unique<KeyboardView>()),
_keyboardController(std::make_unique<Keybo... | 24.179104 | 109 | 0.652469 | LucaRitz |
cc4d488f19a45a637ad4a82810a5eb173f26c8e0 | 16,538 | cc | C++ | util/unittest/iostream.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | null | null | null | util/unittest/iostream.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | 10 | 2022-02-27T18:52:11.000Z | 2022-03-21T14:11:35.000Z | util/unittest/iostream.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | null | null | null | /*
BSD 3-Clause License
Copyright (c) 2022, Stable Cloud Computing, Inc.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions ... | 25.365031 | 126 | 0.649837 | stablecc |
cc5684e092292d8ad5f042a20f9f0c835fd1938b | 863 | cpp | C++ | Baekjoon/2098.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/2098.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/2098.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
const int INF = 1e9;
int N;
vector<vector<int> > W;
vector<vector<int> > dp;
int TSP(int cur, int visited)
{
int ret = dp[cur][visited];
if (ret != 0)
return ret;
if (visited == (1 << N) - 1)
{
if (W[cur][0] != 0)
return W[cur][... | 17.612245 | 54 | 0.537659 | Twinparadox |
7fde3da7497c8b023c3281fcd01f899d9fdfd495 | 323 | hpp | C++ | library/ATF/CPageSetupDialog.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CPageSetupDialog.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CPageSetupDialog.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <CCommonDialog.hpp>
#include <tagPSDA.hpp>
START_ATF_NAMESPACE
struct CPageSetupDialog : CCommonDialog
{
tagPSDA m_psd;
};
END_ATF_NAMESPA... | 21.533333 | 108 | 0.736842 | lemkova |
7fe573db8c51212b03c5026a081fb67862125d1a | 4,701 | cpp | C++ | examples/triangleTesselation.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | 1 | 2016-11-15T09:04:12.000Z | 2016-11-15T09:04:12.000Z | examples/triangleTesselation.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | examples/triangleTesselation.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 maldicion069
*
* Authors: Cristian Rodríguez Bernal <ccrisrober@gmail.com>
*
* This file is part of MonkeyBrushPlusPlus
* <https://github.com/maldicion069/monkeybrushplusplus>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Les... | 29.753165 | 91 | 0.633057 | maldicion069 |
7fe64908148936a470b6d209a967c22820589f1d | 295 | cpp | C++ | Week 1 May 1st to May 7th/numberComplement.cpp | huynhtruc0309/May-LeetCoding-Challenge | 958de292527ff15502af495c695d17f10eedd697 | [
"MIT"
] | 16 | 2020-05-06T14:56:33.000Z | 2020-05-10T17:32:16.000Z | Week 1 May 1st to May 7th/numberComplement.cpp | huynhtruc0309/May-LeetCoding-Challenge | 958de292527ff15502af495c695d17f10eedd697 | [
"MIT"
] | null | null | null | Week 1 May 1st to May 7th/numberComplement.cpp | huynhtruc0309/May-LeetCoding-Challenge | 958de292527ff15502af495c695d17f10eedd697 | [
"MIT"
] | 1 | 2020-05-17T09:31:30.000Z | 2020-05-17T09:31:30.000Z | class Solution {
public:
int findComplement(int num) {
int result = 0;
int i = 0;
while(num) {
if ((num & 1) == 0)
result += 1 << i;
i += 1;
num >>= 1;
}
return result;
}
}; | 18.4375 | 33 | 0.332203 | huynhtruc0309 |
7fea0a7772e523c1b08eb7d4330533cfc1d042f6 | 3,563 | cpp | C++ | PJDL/SimpleToken.cpp | szopeno/skeleton-parser-civetweb | 440d684675e4446d8e4fea5e333452b36f33614c | [
"MIT"
] | null | null | null | PJDL/SimpleToken.cpp | szopeno/skeleton-parser-civetweb | 440d684675e4446d8e4fea5e333452b36f33614c | [
"MIT"
] | null | null | null | PJDL/SimpleToken.cpp | szopeno/skeleton-parser-civetweb | 440d684675e4446d8e4fea5e333452b36f33614c | [
"MIT"
] | null | null | null | #include "SimpleToken.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
SimpleToken::SimpleToken() : indent(-1), _level(0), isInt(false)
{
value[0] = 0;
numValue = 0;
}
//const char *const str ?
SimpleToken::SimpleToken(const char str[])
{
int i;
//long *dst = (long *)value,*src = (long *)... | 25.633094 | 80 | 0.588549 | szopeno |
7ff3641a9471cf5c90711469cde3e63d53daed85 | 11,978 | hpp | C++ | src/protocol.hpp | Fingercomp/oc-vremote | db93fd9c246e52b9a7fbcac41ef703135f3d4b10 | [
"Apache-2.0"
] | null | null | null | src/protocol.hpp | Fingercomp/oc-vremote | db93fd9c246e52b9a7fbcac41ef703135f3d4b10 | [
"Apache-2.0"
] | null | null | null | src/protocol.hpp | Fingercomp/oc-vremote | db93fd9c246e52b9a7fbcac41ef703135f3d4b10 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <sstream>
#include <string>
#include <vector>
#include "util.hpp"
// We're using uint32_t as uint24_t:
// 32-bit integers has the long type
using uint24_t = uint32_t;
enum NetMessageCode {
MSG_ERROR, // = 0
MSG_AUTH_CLIENT, // = 1
MSG_AUTH_SERVER, // = 2
MSG_INITIAL_DATA, // =... | 32.726776 | 95 | 0.67098 | Fingercomp |
7ff9bb86d836248aba8bbdfc0129cbcba4e251a2 | 518 | hpp | C++ | protean/detail/sequence.hpp | proteanic/protean | dcbb0d0d2da708dd7f524124e64a8085ccb8b9e5 | [
"BSL-1.0"
] | 2 | 2017-11-08T19:40:50.000Z | 2017-11-24T18:43:09.000Z | protean/detail/sequence.hpp | roederja/protean | 502cccd10b5721bd74385959362890ec6b5e5d29 | [
"BSL-1.0"
] | 3 | 2017-12-20T13:37:00.000Z | 2018-12-04T11:31:14.000Z | protean/detail/sequence.hpp | roederja/protean | 502cccd10b5721bd74385959362890ec6b5e5d29 | [
"BSL-1.0"
] | 7 | 2015-02-11T14:43:16.000Z | 2020-06-20T21:06:38.000Z | #ifndef PROTEAN_DETAIL_SEQUENCE_HPP
#define PROTEAN_DETAIL_SEQUENCE_HPP
#include <protean/config.hpp>
#include <protean/detail/collection.hpp>
namespace protean {
class variant;
namespace detail {
class PROTEAN_DECL sequence : public collection
{
public:
virtual const ... | 19.185185 | 62 | 0.671815 | proteanic |
7ffc2ff07c26e8a54e280caa0d73deff81c874f7 | 804 | cpp | C++ | src/1000/1012.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1012.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1012.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <cstdio>
using namespace std;
const int move_x[4]={1, -1, 0, 0};
const int move_y[4]={ 0, 0, 1, -1};
bool map[51][52]={}, visit[52][52]={};
int count;
int dfs(int x, int y)
{
for(int i=0; i<4; i++)
{
int nx=x+move_x[i], ny=y+move_y[i];
if(map[nx][ny] && !visit[nx][ny])
visit[nx][ny]=true, dfs(nx, ny)... | 17.106383 | 42 | 0.483831 | upple |
7fff156a502f4205f09f91f15687ebf7d3debff8 | 7,055 | cpp | C++ | calculation/BigInt/SignedBigInt.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | calculation/BigInt/SignedBigInt.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | calculation/BigInt/SignedBigInt.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | struct SignedBigInt {
bool is_minus;
UnsignedBigInt absVal;
SignedBigInt() : is_minus(false) {}
explicit SignedBigInt(int num) : absVal(std::abs(num)), is_minus(num < 0) {}
explicit SignedBigInt(LL num) : absVal(std::abs(num)), is_minus(num < 0) {}
explicit SignedBigInt(const string& num) {
... | 26.03321 | 149 | 0.514245 | searchstar2017 |
3d013b42ee6c78efc856be9afffc62665f89f08d | 15,394 | cpp | C++ | src/Core/DS_Config.cpp | WinT-3794/libDS | 87ae5b3018e968bfb932d6cb8929e9ffefb273ab | [
"MIT"
] | 12 | 2015-09-21T03:05:57.000Z | 2016-04-27T17:46:41.000Z | src/Core/DS_Config.cpp | WinT-3794/LibDS | 87ae5b3018e968bfb932d6cb8929e9ffefb273ab | [
"MIT"
] | null | null | null | src/Core/DS_Config.cpp | WinT-3794/LibDS | 87ae5b3018e968bfb932d6cb8929e9ffefb273ab | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 Alex Spataru <alex_spataru@outlook.com>
*
* This file is part of the LibDS, which is released under the MIT license.
* For more information, please read the LICENSE file in the root directory
* of this project.
*/
#include "DS_Config.h"
#include "DriverStation.h"
#include <QTh... | 26.450172 | 80 | 0.654476 | WinT-3794 |
3d03852efc50f17976123526503114185e2edf71 | 19,901 | cpp | C++ | scanmatcher/src/image_projection.cpp | rsasaki0109/li_slam_ros2 | 09e8cd3df514c10cbc1058896828dd1eb8e900be | [
"BSD-2-Clause"
] | 113 | 2020-07-09T01:08:53.000Z | 2022-03-25T07:52:05.000Z | scanmatcher/src/image_projection.cpp | rsasaki0109/li_slam_ros2 | 09e8cd3df514c10cbc1058896828dd1eb8e900be | [
"BSD-2-Clause"
] | 5 | 2020-10-07T14:31:34.000Z | 2021-08-01T13:01:03.000Z | scanmatcher/src/image_projection.cpp | rsasaki0109/li_slam_ros2 | 09e8cd3df514c10cbc1058896828dd1eb8e900be | [
"BSD-2-Clause"
] | 15 | 2020-07-11T13:50:01.000Z | 2022-03-17T03:11:36.000Z | // BSD 3-Clause License
//
// Copyright (c) 2020, Tixiao Shan
// 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, thi... | 29.309278 | 142 | 0.64042 | rsasaki0109 |
3d1351b6ef7af2fd5e3f7c34d1e7488e77921c28 | 1,536 | cpp | C++ | c++/solution2055.cpp | imafish/leetcodetests | abee2c2d6c0b25a21ef4294bceb7e069b6547b85 | [
"MIT"
] | null | null | null | c++/solution2055.cpp | imafish/leetcodetests | abee2c2d6c0b25a21ef4294bceb7e069b6547b85 | [
"MIT"
] | null | null | null | c++/solution2055.cpp | imafish/leetcodetests | abee2c2d6c0b25a21ef4294bceb7e069b6547b85 | [
"MIT"
] | null | null | null | #include "afx.h"
using namespace std;
class Solution
{
public:
vector<int> platesBetweenCandles(string s, vector<vector<int>> &queries)
{
std::vector<int> result(queries.size());
prepare(s);
for (int i = 0; i < queries.size(); i++)
{
result[i] = findOne(queries[i]);
... | 21.633803 | 76 | 0.392578 | imafish |
3d1664daf4eea73225e3392fbd51715403cca37d | 85 | hpp | C++ | shared/logging.hpp | cvrebeatsaber/QuestQualifications | 4be76c3e8da9ead1727e2320fd12c083aabdacad | [
"MIT"
] | 1 | 2020-10-07T06:39:16.000Z | 2020-10-07T06:39:16.000Z | shared/logging.hpp | cvrebeatsaber/QuestQualifications | 4be76c3e8da9ead1727e2320fd12c083aabdacad | [
"MIT"
] | null | null | null | shared/logging.hpp | cvrebeatsaber/QuestQualifications | 4be76c3e8da9ead1727e2320fd12c083aabdacad | [
"MIT"
] | 1 | 2021-06-02T23:13:46.000Z | 2021-06-02T23:13:46.000Z | #pragma once
#include "beatsaber-hook/shared/utils/logging.hpp"
Logger& getLogger(); | 21.25 | 50 | 0.776471 | cvrebeatsaber |
3d168d4f61ba906957acecbee97cc126344c1c1e | 936 | cpp | C++ | 1000/90/1091b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1000/90/1091b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1000/90/1091b.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
using distance_t = std::pair<int, int>;
template <typename T, typename U>
std::istream& operator >>(std::istream& input, std::pair<T, U>& v)
{
return input >> v.first >> v.second;
}
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
... | 17.018182 | 78 | 0.536325 | actium |
3d1917251618d0eaf76c8f81b742f05eeb14d345 | 1,502 | hpp | C++ | src/storage/tree/Units.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/storage/tree/Units.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | src/storage/tree/Units.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// 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/.
#pragma once
#include "Internal.hpp"
#include "opentxs/api/s... | 25.896552 | 80 | 0.669774 | nopdotcom |
3d1ab9f4ddd01a8fbb879a714ab87f1c44a5daaa | 37,750 | cpp | C++ | Fuji/Source/MFString.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 35 | 2015-01-19T22:07:48.000Z | 2022-02-21T22:17:53.000Z | Fuji/Source/MFString.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 1 | 2022-02-23T09:34:15.000Z | 2022-02-23T09:34:15.000Z | Fuji/Source/MFString.cpp | TurkeyMan/fuji | afd6a26c710ce23965b088ad158fe916d6a1a091 | [
"BSD-2-Clause"
] | 4 | 2015-05-11T03:31:35.000Z | 2018-09-27T04:55:57.000Z | #include "Fuji_Internal.h"
#include "MFString.h"
#include "MFHeap_Internal.h"
#include "MFObjectPool.h"
#include <stdio.h>
#include <stdarg.h>
#define stricmp strcasecmp
#include <string.h>
MFObjectPool stringPool;
MFObjectPoolGroup stringHeap;
int gModuleInitCount = 0;
// this is okay as global; ... | 20.372369 | 344 | 0.611762 | TurkeyMan |
3d1e3180cadbf87e7b353f14b832e1d99e1c2308 | 3,005 | cpp | C++ | MT Game Engine/Source/Interaction/Input.cpp | MatthewATaylor/MT-Game-Engine | bad800163a2ae5476fbe7d08a8c245e6a563c4fb | [
"MIT"
] | 3 | 2019-10-08T20:58:43.000Z | 2020-10-17T15:59:01.000Z | MT Game Engine/Source/Interaction/Input.cpp | MatthewATaylor/MT-Game-Engine | bad800163a2ae5476fbe7d08a8c245e6a563c4fb | [
"MIT"
] | null | null | null | MT Game Engine/Source/Interaction/Input.cpp | MatthewATaylor/MT-Game-Engine | bad800163a2ae5476fbe7d08a8c245e6a563c4fb | [
"MIT"
] | null | null | null | #include "Interaction/Input.h"
namespace mtge {
const int Input::GLFW_KEY_LIST[Input::NUM_KEYS] = {
GLFW_KEY_UNKNOWN,
GLFW_KEY_CAPS_LOCK, GLFW_KEY_NUM_LOCK, GLFW_KEY_SCROLL_LOCK,
GLFW_KEY_PAGE_UP, GLFW_KEY_PAGE_DOWN, GLFW_KEY_HOME, GLFW_KEY_END, GLFW_KEY_PRINT_SCREEN, GLFW_KEY_PAUSE,
GLFW_KEY_LEFT_CONTROL, GL... | 46.230769 | 213 | 0.797338 | MatthewATaylor |
3d1f3dd38753110136a4eb68769d5107bb53d903 | 8,847 | hpp | C++ | src/AnimationData.hpp | AnimatedLEDStrip/client-cpp | b16ec6b638659d4af0c31c3767590dcfee0290b4 | [
"MIT"
] | null | null | null | src/AnimationData.hpp | AnimatedLEDStrip/client-cpp | b16ec6b638659d4af0c31c3767590dcfee0290b4 | [
"MIT"
] | null | null | null | src/AnimationData.hpp | AnimatedLEDStrip/client-cpp | b16ec6b638659d4af0c31c3767590dcfee0290b4 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019-2020 AnimatedLEDStrip
*
* 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,... | 30.091837 | 98 | 0.565163 | AnimatedLEDStrip |
3d27dda5a7ee08d9aaaca11d0164c87d9e2c07a7 | 451 | cpp | C++ | sdk/poeng/stdafx.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 90 | 2016-08-23T00:13:04.000Z | 2022-02-22T09:40:46.000Z | sdk/poeng/stdafx.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 25 | 2016-09-01T07:09:03.000Z | 2022-01-31T16:18:57.000Z | sdk/poeng/stdafx.cpp | hadrien-psydk/pngoptimizer | d92946e63a57a4562af0feaa9e4cfd8628373777 | [
"Zlib"
] | 17 | 2017-05-03T17:49:25.000Z | 2021-12-28T06:47:56.000Z | /////////////////////////////////////////////////////////////////////////////////////
// This file is part of the POEngine library, part of the PngOptimizer application
// Copyright (C) Hadrien Nilsson - psydk.org
// This library is distributed under the terms of the GNU LESSER GENERAL PUBLIC LICENSE
// See License.txt... | 45.1 | 87 | 0.472284 | hadrien-psydk |
3d2cdd91f776ec8572b6092cb48e06b0890bf686 | 23 | cpp | C++ | src/Core_ally.cpp | Riateche/ridual | d91ca5326438e15fccd38a4e4263aeb291d64539 | [
"MIT"
] | 3 | 2015-07-08T07:41:36.000Z | 2017-11-08T15:01:26.000Z | src/Core_ally.cpp | Riateche/ridual | d91ca5326438e15fccd38a4e4263aeb291d64539 | [
"MIT"
] | null | null | null | src/Core_ally.cpp | Riateche/ridual | d91ca5326438e15fccd38a4e4263aeb291d64539 | [
"MIT"
] | null | null | null | #include "Core_ally.h"
| 11.5 | 22 | 0.73913 | Riateche |
3d2de11dd2467a80e4300f297a62b03f5d8620cb | 49 | hpp | C++ | addons/main/script_version.hpp | YonVclaw/6sfdgdemo | f09b4ed8569cd0fcbca4c634aa79289f1ca84014 | [
"MIT"
] | null | null | null | addons/main/script_version.hpp | YonVclaw/6sfdgdemo | f09b4ed8569cd0fcbca4c634aa79289f1ca84014 | [
"MIT"
] | null | null | null | addons/main/script_version.hpp | YonVclaw/6sfdgdemo | f09b4ed8569cd0fcbca4c634aa79289f1ca84014 | [
"MIT"
] | null | null | null | #define MAJOR 1
#define MINOR 14
#define PATCH 2
| 12.25 | 16 | 0.755102 | YonVclaw |
3d35c3c9a7b42ea5e888bed29e718ccd70f36423 | 7,306 | hpp | C++ | include/argot/prov/switch_/detail/generate_switch_provision.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/prov/switch_/detail/generate_switch_provision.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/prov/switch_/detail/generate_switch_provision.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2017, 2018 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)
=============================================... | 40.142857 | 85 | 0.656584 | mattcalabrese |
3d3bb9d6ec3066e7ae8aa645808da6c09ff82951 | 678 | cpp | C++ | simple_model_loader/src/main.cpp | JacobNeal/gl-projects | 4ea40797fde28602b9f787f0ec8005dcd164e054 | [
"MIT"
] | null | null | null | simple_model_loader/src/main.cpp | JacobNeal/gl-projects | 4ea40797fde28602b9f787f0ec8005dcd164e054 | [
"MIT"
] | null | null | null | simple_model_loader/src/main.cpp | JacobNeal/gl-projects | 4ea40797fde28602b9f787f0ec8005dcd164e054 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include "ModelLoader.hpp"
#include "Model.hpp"
#include "Window.hpp"
#include "Logger.hpp"
LOGGER_DECL
int main()
{
Window window("Simple Model Loader", 800, 640);
ModelLoader modelLoader;
Model * model = modelLoader.load("cube.MODEL");
while (!window.isDone... | 14.73913 | 51 | 0.589971 | JacobNeal |
3d3ee1870119b322c1714c4886457ca06e699be7 | 1,010 | cpp | C++ | src/random/NormalDistribution.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | null | null | null | src/random/NormalDistribution.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | 29 | 2017-04-26T09:15:28.000Z | 2017-05-21T15:50:37.000Z | src/random/NormalDistribution.cpp | cuhkshenzhen/CUHKSZLib | 4ad122d7e736cda3e768c8ae8dcad1f9fb195a1f | [
"MIT"
] | 7 | 2017-04-26T09:32:39.000Z | 2021-11-03T02:00:07.000Z | #include "random/NormalDistribution.h"
#include <cmath>
#include "utils/error.h"
namespace cuhksz {
void NormalDistribution::init(double mean, double stddev) {
if (stddev <= 0) {
error("Invalid parameter `stddev` for NormalDistribution");
}
mean_ = mean;
stddev_ = stddev;
}
double NormalDistribution::nex... | 24.634146 | 63 | 0.664356 | cuhkshenzhen |
3d406ccf27012fa7f5b609ec3291bada72ac6268 | 140 | hpp | C++ | template-bot/src/utils.hpp | bmstu-iu8-cpp-sem-1/homework-telegram-bot | 138f6611e4ca08b9a5c4dde76c54af1cefe6504c | [
"MIT"
] | 2 | 2021-03-09T08:12:28.000Z | 2022-02-21T18:10:36.000Z | template-bot/src/utils.hpp | sjuda/telegram-bot | 11f7bb7f24044bdd4e0d30b7a65757e5a4d1be8d | [
"MIT"
] | null | null | null | template-bot/src/utils.hpp | sjuda/telegram-bot | 11f7bb7f24044bdd4e0d30b7a65757e5a4d1be8d | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <boost/locale.hpp>
namespace Utils
{
std::string fromLocale(const std::string& localeStr);
}
| 12.727273 | 57 | 0.714286 | bmstu-iu8-cpp-sem-1 |
3d420cd5393eba0250fc200d6e0304cc05ed703d | 3,343 | cpp | C++ | Code/System/Resource/ResourceLoader.cpp | JuanluMorales/KRG | f3a11de469586a4ef0db835af4bc4589e6b70779 | [
"MIT"
] | 419 | 2022-01-27T19:37:43.000Z | 2022-03-31T06:14:22.000Z | Code/System/Resource/ResourceLoader.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 2 | 2022-01-28T20:35:33.000Z | 2022-03-13T17:42:52.000Z | Code/System/Resource/ResourceLoader.cpp | jagt/KRG | ba20cd8798997b0450491b0cc04dc817c4a4bc76 | [
"MIT"
] | 20 | 2022-01-27T20:41:02.000Z | 2022-03-26T16:16:57.000Z | #include "ResourceLoader.h"
#include "ResourceHeader.h"
#include "System/Core/Serialization/BinaryArchive.h"
#include "System/Core/Logging/Log.h"
//-------------------------------------------------------------------------
namespace KRG::Resource
{
bool ResourceLoader::Load( ResourceID const& resourceID, ... | 44.573333 | 177 | 0.638648 | JuanluMorales |
3d4c6a768bef0b77475e30aa4f9b42aff74bbba1 | 444 | cpp | C++ | codeforces/1108B.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | codeforces/1108B.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | codeforces/1108B.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
#define le 130
using namespace std;
int n[le];
map<int, int> mp;
int main(){
//freopen("input.txt", "r", stdin);
int len, mx = -INT_MAX, mx1 = -INT_MAX;
scanf("%d", &len);
for(int i = 0; i < len; i++){
scanf("%d", &n[i]);
mx = max(mx, n[i]);
}
for(int i = 0; i < len; i++){
... | 21.142857 | 60 | 0.481982 | cosmicray001 |
3d4cbc776bb8b6c4f70872c069f5e89785342846 | 620 | cpp | C++ | c++11/understanding-cpp11/chapter7/7-3-13.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter7/7-3-13.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | c++11/understanding-cpp11/chapter7/7-3-13.cpp | cuiwm/choe_lib | 6992c7bf551e7d6d633399b21b028e6873d5e6e8 | [
"MIT"
] | null | null | null | #include <vector>
#include <algorithm>
using namespace std;
vector<int> nums;
vector<int> largeNums;
const int ubound = 10;
inline void LargeNumsFunc(int i){
if (i > ubound)
largeNums.push_back(i);
}
void Above() {
// 传统的for循环
for (auto itr = nums.begin(); itr != nums.end(); ++itr) {
if ... | 19.375 | 61 | 0.562903 | cuiwm |
3d4cc3e641a6d66de21abeea0c2035956e900a7d | 5,612 | cpp | C++ | FBConsole.cpp | StereoRocker/fbconsole | a0ad55525f1c6a0a048147f8d5317a081fe372f0 | [
"BSD-3-Clause"
] | null | null | null | FBConsole.cpp | StereoRocker/fbconsole | a0ad55525f1c6a0a048147f8d5317a081fe372f0 | [
"BSD-3-Clause"
] | null | null | null | FBConsole.cpp | StereoRocker/fbconsole | a0ad55525f1c6a0a048147f8d5317a081fe372f0 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Dominic Houghton. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Framebuffer console driver, using the I_Framebuffer interface
#include "FBConsole.hpp"
template <class T>
FBConsole<T>::FBConsole(I_Framebuffer<T>* frame... | 30.335135 | 115 | 0.50392 | StereoRocker |
3d4d428b5518f3ebfb7a75e47af0c31a1f7b8b90 | 271 | cpp | C++ | tester-webserv/CppTester/src/Utility/close_pipe.cpp | aprilmayjune135/42_web_server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2022-01-04T13:07:46.000Z | 2022-01-04T13:08:50.000Z | tester-webserv/CppTester/src/Utility/close_pipe.cpp | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 3 | 2021-09-27T08:35:34.000Z | 2021-11-25T09:49:52.000Z | tester-webserv/CppTester/src/Utility/close_pipe.cpp | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2021-11-17T20:26:55.000Z | 2021-12-22T21:54:24.000Z | #include "utility.hpp"
#include "macros.hpp"
#include <unistd.h>
#include <stdio.h>
namespace util
{
void closeFd(int fd)
{
if (close(fd) == -1)
{
syscallError(_FUNC_ERR("close"));
}
}
void closePipe(int* fds)
{
closeFd(fds[0]);
closeFd(fds[1]);
}
}
| 12.318182 | 36 | 0.612546 | aprilmayjune135 |
3d5811c0d2006ec2c33ae0fdf33af47b00862d3d | 752 | cpp | C++ | halfacookie.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | halfacookie.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | halfacookie.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
int main() {
cout << fixed << setprecision(4);
... | 30.08 | 94 | 0.482713 | nemo201 |
3d59a072f742b1c1ae7225767f5ef46ae0edec0c | 1,088 | cpp | C++ | Tree Algorithms/Distance Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T12:30:13.000Z | 2022-02-12T13:59:20.000Z | Tree Algorithms/Distance Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | 2 | 2022-02-12T11:09:41.000Z | 2022-02-12T11:55:49.000Z | Tree Algorithms/Distance Queries.cpp | DecSP/cses-downloader | 12a8f37665a33f6f790bd2c355f84dea8a0e332c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector<vector<int>> adjList;
int up[(int)(2e5+1.5)][20] {};
vector<int>tin,tout,d;
int n,q,timer;
void dfs(int curr,int pre){
tin[curr]=timer++;
up[curr][0]=pre;
for (int i=1;i<20;++i){
up[curr][i]=up[up[curr][i-1]][i-1];
}
for (int &v:adjList[curr]){
if (v==pre)... | 19.087719 | 53 | 0.579963 | DecSP |
3d5e27cb374a8905ccf9b4d80607ae7935995314 | 2,235 | cpp | C++ | sdlpaint/rcolor.cpp | cbries/utilities | 86ce97d2c3e0d13b9beb0fc6ec79d31945c14461 | [
"MIT"
] | 1 | 2015-02-22T17:40:23.000Z | 2015-02-22T17:40:23.000Z | sdlpaint/rcolor.cpp | cbries/utilities | 86ce97d2c3e0d13b9beb0fc6ec79d31945c14461 | [
"MIT"
] | null | null | null | sdlpaint/rcolor.cpp | cbries/utilities | 86ce97d2c3e0d13b9beb0fc6ec79d31945c14461 | [
"MIT"
] | null | null | null | /**
* Copyright (C) 2007 Christian B. Ries
* License: MIT
* Website: https://github.com/cbries/utilities
*/
#include "rcolor.h"
RColor::RColor()
{
setType( COLOR );
}
RColor::RColor( const SDL_Surface * surface,
int xpos, int ypos,
int width, int height )
: RButton( surface, xpos, ypos, width, height ... | 33.358209 | 102 | 0.536913 | cbries |
3d5fbc8152f3d044e3385f2629cd0cc7640b2fc8 | 110 | hpp | C++ | include/lib_B/lib_B.hpp | dep-heaven/lib_B | c7b119372bfe85b8bff8a6dc42c5955a5e2b03fd | [
"MIT"
] | null | null | null | include/lib_B/lib_B.hpp | dep-heaven/lib_B | c7b119372bfe85b8bff8a6dc42c5955a5e2b03fd | [
"MIT"
] | null | null | null | include/lib_B/lib_B.hpp | dep-heaven/lib_B | c7b119372bfe85b8bff8a6dc42c5955a5e2b03fd | [
"MIT"
] | null | null | null | #ifndef LIB_B_HPP
#define LIB_B_HPP
namespace lib_B {
int fn_b();
} // namespace lib_B
#endif // LIB_B_HPP | 11 | 20 | 0.718182 | dep-heaven |
87d1f145000427ebc429b437c62dd6992a6a9d1e | 2,299 | cpp | C++ | src/_cxx11/_semaphore.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 11 | 2015-10-06T21:00:30.000Z | 2021-07-27T05:54:44.000Z | src/_cxx11/_semaphore.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | null | null | null | src/_cxx11/_semaphore.cpp | ombre5733/weos | 2c3edef042fa80baa7c8fb968ba3104b7119cf2d | [
"BSD-2-Clause"
] | 1 | 2015-10-03T03:51:28.000Z | 2015-10-03T03:51:28.000Z | /*******************************************************************************
WEOS - Wrapper for embedded operating systems
Copyright (c) 2013-2016, Manuel Freiberger
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the foll... | 30.653333 | 80 | 0.680731 | ombre5733 |
87d364317e653c45917da8b33c7adfcf1e21c6ab | 10,868 | cpp | C++ | cobs/construction/compact_index.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/construction/compact_index.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | cobs/construction/compact_index.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | /*******************************************************************************
* cobs/construction/compact_index.cpp
*
* Copyright (c) 2018 Florian Gauger
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/... | 36.592593 | 80 | 0.544442 | karasikov |
87dd82ed0539a26de1a25c25eeb2fc8dda035205 | 892 | hh | C++ | dune/xt/common/python.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 2 | 2020-02-08T04:08:52.000Z | 2020-08-01T18:54:14.000Z | dune/xt/common/python.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 35 | 2019-08-19T12:06:35.000Z | 2020-03-27T08:20:39.000Z | dune/xt/common/python.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:34.000Z | 2020-02-08T04:09:34.000Z | // This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (h... | 29.733333 | 95 | 0.719731 | dune-community |
87dda1ed26f9e38adf47580171f95e67e0d5d7d0 | 24,417 | cpp | C++ | src/dialman.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 9 | 2020-04-01T04:15:22.000Z | 2021-09-26T21:03:47.000Z | src/dialman.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 17 | 2020-04-02T19:38:40.000Z | 2020-04-12T05:47:08.000Z | src/dialman.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... | 27.009956 | 91 | 0.60507 | taviso |
87ddf5a2e5a3747713708066b0d4f8f8c710746c | 3,835 | cpp | C++ | VGP242/06_HelloTexturing/GameState.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | VGP242/06_HelloTexturing/GameState.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | VGP242/06_HelloTexturing/GameState.cpp | TheJimmyGod/JimmyGod_Engine | b9752c6fbd9db17dc23f03330b5e4537bdcadf8e | [
"MIT"
] | null | null | null | #include "GameState.h"
using namespace JimmyGod::Input;
using namespace JimmyGod::Graphics;
using namespace JimmyGod::Math;
void GameState::Initialize()
{
GraphicsSystem::Get()->SetClearColor(Colors::Black);
mCamera.SetPosition({ 0.0f,0.0f,-5.0f });
mCamera.SetDirection({ 0.0f,0.0f,1.0f });
/* Home... | 30.19685 | 145 | 0.690743 | TheJimmyGod |
87e0ec19e6f60dc42bcc6fa3a417c0796aee134d | 1,187 | hpp | C++ | include/codegen/include/GlobalNamespace/BeatmapEventData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/BeatmapEventData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/BeatmapEventData.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: BeatmapEventType
#include "GlobalNamespace/BeatmapEvent... | 35.969697 | 101 | 0.699242 | Futuremappermydud |
87e24f9b179db7cf817f62262a028bed3a77134d | 3,987 | hpp | C++ | src/main/cpp/USSL/BasicArithmatic.hpp | Crtl-F5/F5RC-Kernel | 145cf9f7a34463226e68112033f56e0d121425e3 | [
"MIT"
] | 1 | 2018-08-12T03:50:19.000Z | 2018-08-12T03:50:19.000Z | src/main/cpp/USSL/BasicArithmatic.hpp | Crtl-F5/F5RC-Kernel | 145cf9f7a34463226e68112033f56e0d121425e3 | [
"MIT"
] | null | null | null | src/main/cpp/USSL/BasicArithmatic.hpp | Crtl-F5/F5RC-Kernel | 145cf9f7a34463226e68112033f56e0d121425e3 | [
"MIT"
] | null | null | null | #pragma once
#include <ProgramType.hpp>
namespace USSL
{
inline void ADD(ProgramType* args, unsigned char* programMemory)
{
switch (args[0].type)
{
case b: *((signed char*)programMemory + args[0].data.i) = args[1].data.b + args[2].data.b; break;
case s: *((signed short*)... | 56.957143 | 114 | 0.563582 | Crtl-F5 |
87e9cd99ee6892015e96a6141a5649aad854bde2 | 1,580 | cpp | C++ | libnativeipc/src/ConnectionFactory.cpp | stream-labs/twitch-native-ipc | 81154497fcf55288c51cb5c93e95014ec4f0644d | [
"MIT"
] | 8 | 2020-10-12T21:44:47.000Z | 2021-07-29T16:58:41.000Z | libnativeipc/src/ConnectionFactory.cpp | ConnectionMaster/twitch-native-ipc | 81154497fcf55288c51cb5c93e95014ec4f0644d | [
"MIT"
] | 1 | 2021-08-28T03:11:34.000Z | 2021-08-28T03:11:34.000Z | libnativeipc/src/ConnectionFactory.cpp | ConnectionMaster/twitch-native-ipc | 81154497fcf55288c51cb5c93e95014ec4f0644d | [
"MIT"
] | 3 | 2020-10-02T17:34:57.000Z | 2021-08-28T03:11:23.000Z | // Copyright Twitch Interactive, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT
#include "ClientConnection.h"
#include "ConnectionFactoryPrivate.h"
#include "Pipe-ClientTransport.h"
#include "Pipe-ServerTransport.h"
#include "TCP-ClientTransport.h"
#include "TCP-ServerTransport.h"
#includ... | 32.244898 | 140 | 0.772152 | stream-labs |
87efcf503e4fdf4c4251b35612961e906b8b0b90 | 1,361 | cpp | C++ | TP/starters 12/maxpoint.cpp | ShyrenMore/DSA_Docs | 7d489326799886afd8d5f7ec7f4b88311e86e582 | [
"Unlicense"
] | null | null | null | TP/starters 12/maxpoint.cpp | ShyrenMore/DSA_Docs | 7d489326799886afd8d5f7ec7f4b88311e86e582 | [
"Unlicense"
] | null | null | null | TP/starters 12/maxpoint.cpp | ShyrenMore/DSA_Docs | 7d489326799886afd8d5f7ec7f4b88311e86e582 | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#define deb(x) cout << #x << ": " << x << endl;
#define deb2(x, y) cout << #x << ": " << x << " ~ " << #y << ": " << y << endl;
#define in(n, arr) \
for (int i = 0; i < n; i++) \
cin >> arr[i]
#define out(n, arr) \
for (int i = 0; i < n; i++) \
cout << a... | 24.745455 | 79 | 0.404849 | ShyrenMore |
87f3b27586d6ffea1b2d3b216f9bea13a9ef1fad | 12,602 | cpp | C++ | game_server/test/misc_test.cpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | 5 | 2017-07-20T10:36:23.000Z | 2018-01-30T16:18:31.000Z | game_server/test/misc_test.cpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | game_server/test/misc_test.cpp | CellWarsOfficial/CellWars | 40b1e956c871ee686062eba1251a9f9a43d86c2c | [
"Apache-2.0"
] | null | null | null | #include "misc_test.hpp"
#include <cstring>
#include <cstdio>
#include <cinttypes>
#include <constants.hpp>
using namespace std;
int fails = 0;
int tests = 0;
int math_tests()
{
fails = 0;
tests = 0;
// TODO tests go here
//test binary_to_num
string test1 = "1101";
string test2 = "00001101";
string tes... | 38.656442 | 187 | 0.610062 | CellWarsOfficial |
87f60818cf08ceae83d9cce078c75e5de85c125d | 33,887 | cpp | C++ | Blizzlike/ArcEmu/C++/World/ScriptMgr.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/World/ScriptMgr.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/World/ScriptMgr.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2011 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software... | 30.25625 | 174 | 0.741051 | 499453466 |
87ff0fe2e6931d5ab67336efe927a2c045ad694d | 1,584 | cpp | C++ | Cpp-Projects/Part_02_Foundation/L4_writing_multiple_programs/13_Classes_and_OOP/1_Code_without_Objects/main.cpp | selfbeing/selfdriving | 8a40db76e5aa4ac3b0f83a855e4ca29b99b90dd9 | [
"MIT"
] | null | null | null | Cpp-Projects/Part_02_Foundation/L4_writing_multiple_programs/13_Classes_and_OOP/1_Code_without_Objects/main.cpp | selfbeing/selfdriving | 8a40db76e5aa4ac3b0f83a855e4ca29b99b90dd9 | [
"MIT"
] | null | null | null | Cpp-Projects/Part_02_Foundation/L4_writing_multiple_programs/13_Classes_and_OOP/1_Code_without_Objects/main.cpp | selfbeing/selfdriving | 8a40db76e5aa4ac3b0f83a855e4ca29b99b90dd9 | [
"MIT"
] | null | null | null | /*
Code without Objects
Suppose you were writing a program to model several cars.
In your program, you want to keep track of each car's color and the distance the car has traveled,
and you want to be able to increment this distance and print out the car's properties.
You could write something like the code below to ac... | 36 | 108 | 0.705177 | selfbeing |
e2008f873e49dc817c7bbea2579cd98fb7e09b25 | 4,792 | cpp | C++ | sdh/crc.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | 2 | 2021-11-12T09:28:45.000Z | 2021-12-22T09:09:31.000Z | sdh/crc.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | null | null | null | sdh/crc.cpp | ipab-slmc/SDHLibrary-CPP | 0217d4edf82f34292750240bd7a3d9c63feb7e33 | [
"Apache-2.0"
] | 2 | 2019-05-02T20:03:29.000Z | 2019-06-24T14:50:42.000Z | //======================================================================
/*!
\file
\section sdhlibrary_cpp_crc_cpp_general General file information
\author Dirk Osswald
\date 2007-02-19
\brief
Implementation of class #SDH::cCRC_DSACON32m (actually only the static members all other is derived).... | 42.785714 | 105 | 0.515442 | ipab-slmc |
e207034aa51177b9803721c97bffdf7abe9ae688 | 279 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/rend/WindShapeAnchorPointVert.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/rend/WindShapeAnchorPointVert.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/rend/WindShapeAnchorPointVert.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace rend {
enum class WindShapeAnchorPointVert : uint32_t
{
AP_CENTER = 0,
AP_TOP = 1,
AP_BOTTOM = 2,
};
} // namespace rend
} // namespace RED4ext
| 16.411765 | 57 | 0.698925 | jackhumbert |
e20737d3135a49e21df6882d87d3d9136988046b | 786 | hpp | C++ | source/gui/LogEntry.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:18.000Z | 2021-12-26T12:48:18.000Z | source/gui/LogEntry.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | null | null | null | source/gui/LogEntry.hpp | RobertDamerius/GroundControlStation | 7f0d896bd56e5ea0ee02d5738c2b497dc2956c2f | [
"MIT"
] | 1 | 2021-12-26T12:48:25.000Z | 2021-12-26T12:48:25.000Z | #pragma once
#include <VehicleID.hpp>
class LogEntry {
public:
std::string timestamp;
std::string source;
std::string text;
uint8_t color[3];
/**
* @brief Create a log entry.
* @param [in] timestamp The UTC second of the day.
* @param [in] sour... | 25.354839 | 112 | 0.554707 | RobertDamerius |
e208cd81c87125355ee128e641604a7199345678 | 1,545 | cpp | C++ | libpigpiodpp/test/pihardwaremanagerfactorytests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | libpigpiodpp/test/pihardwaremanagerfactorytests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | 14 | 2019-11-17T14:46:25.000Z | 2021-03-10T02:48:40.000Z | libpigpiodpp/test/pihardwaremanagerfactorytests.cpp | freesurfer-rge/linesidecabinet | 8944c67fa7d340aa792e3a6e681113a4676bfbad | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include "tendril/devices/i2cdevicedata.hpp"
#include "tendril/devices/pca9685.hpp"
#include "pigpiodpp/pihardwaremanagerfactory.hpp"
BOOST_AUTO_TEST_SUITE( PiHardwareManagerFactory )
BOOST_AUTO_TEST_CASE( Smoke )
{
Tendril::HardwareManagerData config;
auto hwm = PiGPIOdpp::G... | 32.1875 | 66 | 0.756634 | freesurfer-rge |
e20a1779c288f36bf771964a87d0f79255b286bb | 10,634 | cpp | C++ | Quickhaptics/examples/ShapeDepthFeedback/ShapeDepthFeedbackGLUT/src/main.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | Quickhaptics/examples/ShapeDepthFeedback/ShapeDepthFeedbackGLUT/src/main.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | Quickhaptics/examples/ShapeDepthFeedback/ShapeDepthFeedbackGLUT/src/main.cpp | Stalpaard/SensoHapt | 74c90f1f4b1a17bd94109bc6543a864006849c75 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
//OpenHaptics QuickHaptics - Depth and Feedback Buffer Example
//SensAble Technologies, Woburn, MA
//September 03, 2008
//Programmer: Hari Vasudevan
//////////////////////////////////////////////////////////////////////////////
#include <Q... | 43.227642 | 152 | 0.639552 | Stalpaard |
e2149b5c91c3ba0cb374d5e5506b3b243b969ff1 | 1,709 | hpp | C++ | src/core/Math.hpp | bferan/lucent | b19163df12739ffc513110d927e92f98c0b54321 | [
"MIT"
] | 1 | 2021-11-12T08:42:43.000Z | 2021-11-12T08:42:43.000Z | src/core/Math.hpp | bferan/lucent | b19163df12739ffc513110d927e92f98c0b54321 | [
"MIT"
] | null | null | null | src/core/Math.hpp | bferan/lucent | b19163df12739ffc513110d927e92f98c0b54321 | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include "math.h"
namespace lucent
{
constexpr float kPi = 3.14159265358979323846;
constexpr float k2Pi = kPi * 2.0f;
constexpr float kHalfPi = kPi / 2.0f;
// Math wrapper functions:
inline float Sqrt(float x)
{
return std::sqrt(x);
}
inline float Sin(float radians)
{
return ... | 14.008197 | 72 | 0.647162 | bferan |
e216b026375f1dfdaeeb490f3eeb344d5e13abb4 | 1,052 | cpp | C++ | control/examples/pegel/main.cpp | devfix/b15f | 5a49a37e69cca99359a98e1ef29a83043afed5e5 | [
"MIT"
] | 1 | 2019-10-26T18:37:49.000Z | 2019-10-26T18:37:49.000Z | control/examples/pegel/main.cpp | devfix/b15f | 5a49a37e69cca99359a98e1ef29a83043afed5e5 | [
"MIT"
] | null | null | null | control/examples/pegel/main.cpp | devfix/b15f | 5a49a37e69cca99359a98e1ef29a83043afed5e5 | [
"MIT"
] | 1 | 2022-03-26T16:06:23.000Z | 2022-03-26T16:06:23.000Z | #include <iostream>
#include <cmath>
#include <b15f/b15f.h>
#include <b15f/plottyfile.h>
/*
* Inkrementiert DAC 0 von 0 bis 1023 und speichert zu jeder Ausgabe den Wert von ADC 0 in einem Puffer.
* Die Funktion ADC 0 abhängig von DAC 0 wird als Graph geplottet.
*/
const char PLOT_FILE[] = "plot.bin";
int main()
{... | 21.04 | 104 | 0.635932 | devfix |
e21babaa579368d6960e67e4357583b0514be73d | 17,289 | cpp | C++ | engine/hltvclient.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/engine/hltvclient.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/engine/hltvclient.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //===== Copyright (c) Valve Corporation, All rights reserved. ======//
//
// hltvclient.cpp: implementation of the CHLTVClient class.
//
// $NoKeywords: $
//
//==================================================================//
#include <tier0/vprof.h>
#include "hltvclient.h"
#include "netmessages.h"
#include "hltvse... | 28.066558 | 208 | 0.692116 | DannyParker0001 |
e21c6fa48127900170983abd4d0f273513c10bf7 | 44,201 | cpp | C++ | deprecated-code/Ajisai/Integrators/BidirectionalPath.cpp | siyuanpan/ajisai_render | 203d79235bf698c1a4a747be291c0f3050b213da | [
"MIT"
] | null | null | null | deprecated-code/Ajisai/Integrators/BidirectionalPath.cpp | siyuanpan/ajisai_render | 203d79235bf698c1a4a747be291c0f3050b213da | [
"MIT"
] | null | null | null | deprecated-code/Ajisai/Integrators/BidirectionalPath.cpp | siyuanpan/ajisai_render | 203d79235bf698c1a4a747be291c0f3050b213da | [
"MIT"
] | null | null | null | /*
Copyright 2021 Siyuan Pan <pansiyuan.cs@gmail.com>
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, publ... | 36.111928 | 80 | 0.573878 | siyuanpan |
e2228f6754b8bbf31357a6f7086c29b17ac48b84 | 6,380 | hpp | C++ | libctrpf/include/CTRPluginFrameworkImpl/Menu/KeyboardImpl.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFrameworkImpl/Menu/KeyboardImpl.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | libctrpf/include/CTRPluginFrameworkImpl/Menu/KeyboardImpl.hpp | MirayXS/Vapecord-ACNL-Plugin | 247eb270dfe849eda325cc0c6adc5498d51de3ef | [
"MIT"
] | null | null | null | #ifndef CTRPLUGINFRAMEWORKIMPL_KEYBOARD_HPP
#define CTRPLUGINFRAMEWORKIMPL_KEYBOARD_HPP
#include "CTRPluginFrameworkImpl/Graphics.hpp"
#include "CTRPluginFramework/Graphics/CustomIcon.hpp"
#include "CTRPluginFrameworkImpl/Graphics/TouchKey.hpp"
#include "CTRPluginFrameworkImpl/Graphics/TouchKeyString.hpp"
#include "CT... | 38.902439 | 96 | 0.54185 | MirayXS |
e224e709d74a393c04acd3371847fe9ca1d0b0e3 | 704 | cpp | C++ | 152-maxProductSubarray.cpp | riasood02/leetcoding-problems | 568bb4e323acb57e274b87c07969a772f011259e | [
"Unlicense"
] | 5 | 2020-10-06T13:10:04.000Z | 2021-06-07T02:07:59.000Z | 152-maxProductSubarray.cpp | riasood02/leetcoding-problems | 568bb4e323acb57e274b87c07969a772f011259e | [
"Unlicense"
] | 5 | 2020-10-05T17:23:57.000Z | 2020-10-10T12:56:15.000Z | 152-maxProductSubarray.cpp | riasood02/leetcoding-problems | 568bb4e323acb57e274b87c07969a772f011259e | [
"Unlicense"
] | 43 | 2020-10-05T17:31:56.000Z | 2020-10-29T23:47:53.000Z | // https://leetcode.com/problems/maximum-product-subarray/
class Solution {
public:
int maxProduct(vector<int>& nums) {
int cur = INT_MIN;
vector<int> a(nums.size(),0);
vector<int> b(nums.size(),0);
a[0] = nums[0];
b[0] = nums[0];
int ma = a[0];
for(int i = 1... | 27.076923 | 58 | 0.400568 | riasood02 |
e2338d870195e71b2e20868ca3757af7d5680636 | 5,493 | cpp | C++ | src/uavpc/Pose/PoseService.cpp | filipdutescu/uavpc | 050bd19b103f2cf7cdac9fd167d8965d0032c5ec | [
"Apache-2.0"
] | 2 | 2021-10-11T02:54:08.000Z | 2021-10-11T09:29:59.000Z | src/uavpc/Pose/PoseService.cpp | filipdutescu/uavpc | 050bd19b103f2cf7cdac9fd167d8965d0032c5ec | [
"Apache-2.0"
] | null | null | null | src/uavpc/Pose/PoseService.cpp | filipdutescu/uavpc | 050bd19b103f2cf7cdac9fd167d8965d0032c5ec | [
"Apache-2.0"
] | null | null | null | #include "uavpc/Pose/PoseService.hpp"
#include <ctime>
#include <iostream>
#include <stdexcept>
#include <string>
#include <opencv2/core/types.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#include <openpose/core/matrix.hpp>
#include <openpose/core/point.hpp>
#incl... | 25.910377 | 101 | 0.57728 | filipdutescu |
e23ab9f821e9f74c8baa4061e876516778c0842a | 422 | cpp | C++ | CanadianExperience/CanadianExperience/Testing/CAnimChannelAngleTest.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | CanadianExperience/CanadianExperience/Testing/CAnimChannelAngleTest.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | CanadianExperience/CanadianExperience/Testing/CAnimChannelAngleTest.cpp | NicholsTyler/cse_335 | b8a46522c15a9881cb681ae94b4a5f737817b05e | [
"MIT"
] | null | null | null | #include "pch.h"
#include "CppUnitTest.h"
#include "AnimChannelAngle.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Testing
{
TEST_CLASS(CAnimChannelAngleTest)
{
public:
TEST_METHOD(TestCAnimChannelAngleName)
{
CAnimChannelAngle channel;
channel.SetNam... | 16.230769 | 74 | 0.687204 | NicholsTyler |
e249cc60aa888d14c8688687992cf22d8f83ba50 | 1,069 | hpp | C++ | include/gclib/gc_delete.hpp | axilmar/gclib | 1d2707238b549d889a7c9b097d599a36e3841da4 | [
"Apache-2.0"
] | 2 | 2021-11-24T18:49:09.000Z | 2022-01-11T04:30:43.000Z | include/gclib/gc_delete.hpp | axilmar/gclib | 1d2707238b549d889a7c9b097d599a36e3841da4 | [
"Apache-2.0"
] | null | null | null | include/gclib/gc_delete.hpp | axilmar/gclib | 1d2707238b549d889a7c9b097d599a36e3841da4 | [
"Apache-2.0"
] | 1 | 2020-10-27T09:51:06.000Z | 2020-10-27T09:51:06.000Z | #ifndef GCLIB_GC_DELETE_HPP
#define GCLIB_GC_DELETE_HPP
#include "gc_new_array.hpp"
namespace gclib {
/**
* Deletes an object pointed to by the given pointer.
* @param p pointer to object to delete; can be null; if not null, then it should have a value returned by gc_new,
* otherwise the opera... | 22.270833 | 118 | 0.558466 | axilmar |
f46d513866d62800e662f5381531cf2cd4b82e88 | 2,430 | cpp | C++ | control/groupsform.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | null | null | null | control/groupsform.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | 101 | 2017-03-11T19:09:46.000Z | 2017-09-04T17:37:55.000Z | control/groupsform.cpp | TheMrButcher/offline-mentor | 15c362710fc993b21ed2d23adfc98e797e2380db | [
"MIT"
] | 1 | 2018-03-13T03:47:15.000Z | 2018-03-13T03:47:15.000Z | #include "groupsform.h"
#include "ui_groupsform.h"
#include "group_utils.h"
#include "groupdialog.h"
GroupsForm::GroupsForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::GroupsForm)
{
ui->setupUi(this);
}
GroupsForm::~GroupsForm()
{
delete ui;
}
void GroupsForm::load()
{
ui->listWidget->clear();... | 25.578947 | 86 | 0.671605 | TheMrButcher |
f46e2fffcd01d3db771283a05a6a14e9cb327b97 | 432 | cpp | C++ | ArkEngineTest/ArkEngineTest.cpp | gamedevboy/ArkEngine | 1fb1fb153ac73fcbfa75f8e02eb5a26e8993ff01 | [
"MIT"
] | null | null | null | ArkEngineTest/ArkEngineTest.cpp | gamedevboy/ArkEngine | 1fb1fb153ac73fcbfa75f8e02eb5a26e8993ff01 | [
"MIT"
] | null | null | null | ArkEngineTest/ArkEngineTest.cpp | gamedevboy/ArkEngine | 1fb1fb153ac73fcbfa75f8e02eb5a26e8993ff01 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../ArkEngine/include/ArkEngine/AEModuleManager.h"
#include "../ArkEngine/include/ArkEngine/gfx/AEGFXDevice.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace ArkEngineTest
{
TEST_CLASS(ArkEngineTest)
{
public:
TEST_METHOD(Module... | 19.636364 | 62 | 0.743056 | gamedevboy |
f472b7a520d86afbd6c1e38b9fa9230bfe2880da | 3,156 | cpp | C++ | day11/day11.cpp | throx/advent2020 | 071dee09e6bb2596c3f78c19f9c97d076798c8b3 | [
"Unlicense"
] | null | null | null | day11/day11.cpp | throx/advent2020 | 071dee09e6bb2596c3f78c19f9c97d076798c8b3 | [
"Unlicense"
] | null | null | null | day11/day11.cpp | throx/advent2020 | 071dee09e6bb2596c3f78c19f9c97d076798c8b3 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <numeric>
using namespace std;
int NumOcc(const vector<string>& seats, int x, int y)
{
int maxx = seats[0].length();
int maxy = seats.size();
int numocc = 0;
for (int x1 = max(0, x - 1); x1 < min(maxx, x + 2); ++x1) {
for (int y... | 21.616438 | 104 | 0.398289 | throx |
f47e2107c702f649175447aec68f6acf7eaff645 | 254 | hpp | C++ | pythran/pythonic/include/operator_/__itruediv__.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/operator_/__itruediv__.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/operator_/__itruediv__.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_OPERATOR_ITRUEDIV__HPP
#define PYTHONIC_INCLUDE_OPERATOR_ITRUEDIV__HPP
#include "pythonic/include/operator_/itruediv.hpp"
namespace pythonic
{
namespace operator_
{
USING_FUNCTOR(__itruediv__, itruediv);
}
}
#endif
| 15.875 | 50 | 0.807087 | xmar |
f4858b21356f076b7544d53c05055b358c718911 | 3,229 | hpp | C++ | src/Zv8/V8Engine.hpp | indie-zen/zen-server | deb4485fe462d6c88eeeadb09c62e6024e06ff67 | [
"MIT"
] | null | null | null | src/Zv8/V8Engine.hpp | indie-zen/zen-server | deb4485fe462d6c88eeeadb09c62e6024e06ff67 | [
"MIT"
] | 8 | 2016-12-06T15:55:28.000Z | 2016-12-18T17:31:36.000Z | src/Zv8/V8Engine.hpp | indie-zen/zen-server | deb4485fe462d6c88eeeadb09c62e6024e06ff67 | [
"MIT"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// V8 plugin for Zen Scripting
//
// Copyright (C) 2001 - 2016 Raymond A. Richards
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
#pragma once
#include <Zen/Scripting/I_ScriptEngine.hpp>
#include <memory... | 35.483516 | 113 | 0.549396 | indie-zen |
f498dc62d5bebae3e8bd7c1efbc82658400f67d4 | 2,051 | cpp | C++ | Semester1/Homeworks/HW7.Lists/7.3/7.3/list.cpp | PavelSaltykov/Course1 | 68920c4a4679b6dd0e0b83cb8109d3c52d2cf076 | [
"Apache-2.0"
] | null | null | null | Semester1/Homeworks/HW7.Lists/7.3/7.3/list.cpp | PavelSaltykov/Course1 | 68920c4a4679b6dd0e0b83cb8109d3c52d2cf076 | [
"Apache-2.0"
] | 2 | 2019-12-17T11:58:46.000Z | 2019-12-21T20:08:01.000Z | Semester1/Homeworks/HW7.Lists/7.3/7.3/list.cpp | PavelSaltykov/Course1 | 68920c4a4679b6dd0e0b83cb8109d3c52d2cf076 | [
"Apache-2.0"
] | 1 | 2020-02-24T18:28:00.000Z | 2020-02-24T18:28:00.000Z | #include <stdio.h>
#include <string.h>
#include "list.h"
struct Entry
{
char *name = nullptr;
char *phone = nullptr;
Entry *next = nullptr;
};
struct List
{
int length = 0;
Entry *head = nullptr;
Entry *tail = nullptr;
};
List *createList()
{
return new List;
}
bool isEmpty(List *list)
{
return list->head =... | 15.537879 | 58 | 0.641151 | PavelSaltykov |
f4ab84cd87a1853294e48fc98a7110a2fd1a11f9 | 6,507 | hpp | C++ | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_StdClass.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_StdClass.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_StdClass.hpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDMacroEng_StdClass.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 01/24/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://open... | 35.950276 | 78 | 0.442908 | MarkStega |
f4ac64b514f7a6a1259d2da3562e3034220407b8 | 16,221 | cc | C++ | swap-ssdb-1.9.2/tests/qa/integration/hash_test.cc | TimothyZhang023/swapdb | e40c1ddf46892e698acf54f26b02927f0505ea84 | [
"BSD-2-Clause"
] | 242 | 2017-12-14T00:31:28.000Z | 2022-02-16T02:00:15.000Z | swap-ssdb-1.9.2/tests/qa/integration/hash_test.cc | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 7 | 2017-12-14T08:34:43.000Z | 2020-12-19T02:53:03.000Z | swap-ssdb-1.9.2/tests/qa/integration/hash_test.cc | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 47 | 2017-12-26T03:11:26.000Z | 2022-01-26T07:46:45.000Z | #include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <sstream>
#include "SSDB_client.h"
#include "gtest/gtest.h"
#include "ssdb_test.h"
using namespace std;
class HashTest : public SSDBTest
{
public:
ssdb::Status s;
std::vector<std::string> list, keys, kvs2;
s... | 28.308901 | 87 | 0.573208 | TimothyZhang023 |
f4acf5c25709d692fda58cf417492ad69f05621d | 3,227 | cpp | C++ | src/HandGunC.cpp | pablojor/mood | 779af33ae3fc596c1749901917f67c0d8a14d63f | [
"MIT"
] | null | null | null | src/HandGunC.cpp | pablojor/mood | 779af33ae3fc596c1749901917f67c0d8a14d63f | [
"MIT"
] | 2 | 2020-04-12T14:01:00.000Z | 2020-05-20T12:53:11.000Z | src/HandGunC.cpp | NoVariableGlobal/mood | e3446857a1d309dfac71beaf6407bb905f02a912 | [
"MIT"
] | 1 | 2020-10-07T15:09:45.000Z | 2020-10-07T15:09:45.000Z | #include "HandGunC.h"
#include "BulletC.h"
#include "ComponentsManager.h"
#include "Entity.h"
#include "FactoriesFactory.h"
#include "Ogre.h"
#include "OgreQuaternion.h"
#include "RigidbodyPC.h"
#include "Scene.h"
#include "TransformComponent.h"
#include <json.h>
void HandGunC::onShoot(TransformComponent* transform, R... | 35.076087 | 80 | 0.662845 | pablojor |
f4ad65e4c0e2b702c324528a34702eec26bceafb | 6,137 | cpp | C++ | opt_kappa.cpp | dokyum/tiLDA | 7dc3a2c8023bfc92b777fa9a2f50ace65209fccc | [
"Apache-2.0"
] | 2 | 2016-01-21T02:40:42.000Z | 2018-12-22T18:07:02.000Z | opt_kappa.cpp | vineelpratap/tiLDA | 7dc3a2c8023bfc92b777fa9a2f50ace65209fccc | [
"Apache-2.0"
] | null | null | null | opt_kappa.cpp | vineelpratap/tiLDA | 7dc3a2c8023bfc92b777fa9a2f50ace65209fccc | [
"Apache-2.0"
] | 2 | 2015-02-13T20:53:34.000Z | 2021-01-30T17:11:51.000Z | #include "opt_kappa.h"
#define KAPPA_NEWTON_THRESH 1e-6
#define KAPPA_MAX_ITER 5000
#define LIKELIHOOD_DECREASE_ALLOWANCE 1e-5
extern double oneoverk;
double opt_kappa(double* kappa, int ntopics, int nchildren,
double* dirichlet_prior,
double alpha, double tau,
double* digamma_sum_over_children,
... | 31.311224 | 112 | 0.653577 | dokyum |
f4aef88cf32cde12ced412931608263def713ce6 | 1,686 | cpp | C++ | Utility/lib/src/utility/math_utils.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | 1 | 2019-07-10T04:25:45.000Z | 2019-07-10T04:25:45.000Z | Utility/lib/src/utility/math_utils.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | Utility/lib/src/utility/math_utils.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | #include "math_utils.hpp"
#include <cmath>
glm::vec3 MeanPoint(const std::vector<glm::vec3> & points){
glm::vec3 result(0.0, 0.0, 0.0);
auto size=points.size();
for(auto it=points.begin(); it<points.end(); ++it){
result += *it;
}
if(size>0){
result /= size;
}
return result;
}
float DegToRad(float angle_... | 21.896104 | 78 | 0.578885 | tdenis8 |
f4b9f8ed45470d551028eb05368f1f2c8ae8d057 | 2,856 | cpp | C++ | naklibsrc/src/core/MessageHash/Base58EncDec.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2021-07-01T02:01:27.000Z | 2021-07-01T02:01:27.000Z | naklibsrc/src/core/MessageHash/Base58EncDec.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | 1 | 2020-09-23T12:34:34.000Z | 2020-09-23T12:34:34.000Z | naklibsrc/src/core/MessageHash/Base58EncDec.cpp | murphyj8/testNakStructure | fbd9fc0784b6b7ee3b176cb28d2b6e26abd2b48a | [
"Unlicense"
] | null | null | null | #include "MessageHash/Base58EncDec.h"
#include "MessageHash/Base58EncDecImpl.h"
Base58EncDec::Base58EncDec() : m_pImpl(new Base58EncDecImpl){
return ;
}
Base58EncDec::~Base58EncDec(){
return ;
}
std::string Base58EncDec::encode (const std::vector<uint8_t>& vch){
return (m_pImpl->encode(vch));
}
std::st... | 30.382979 | 105 | 0.644258 | murphyj8 |
f4bafce0eb4329174202ea4c22b8e6b84b9afafe | 94,230 | cpp | C++ | src/raven_src/src/StandardOutput.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/StandardOutput.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | src/raven_src/src/StandardOutput.cpp | Okanagan-Basin-Water-Board/obwb-hydro-modelling | 91ee6b914e344de65a495093c3b9427986182ef2 | [
"Artistic-2.0"
] | null | null | null | /*----------------------------------------------------------------
Raven Library Source Code
Copyright (c) 2008-2020 the Raven Development Team
Includes CModel routines for writing output headers and contents:
CModel::CloseOutputStreams()
CModel::WriteOutputFileHeaders()
CModel::WriteMinorOutput()
... | 43.10613 | 171 | 0.582575 | Okanagan-Basin-Water-Board |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.