hexsha stringlengths 40 40 | size int64 19 11.4M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 3 270 | max_stars_repo_name stringlengths 5 110 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 3 270 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 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 3 270 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 19 11.4M | avg_line_length float64 1.93 229k | max_line_length int64 12 688k | alphanum_fraction float64 0.07 0.99 | matches listlengths 1 10 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
addeda634cac9ac0482948c3cf8a791516bab8a1 | 22,545 | cpp | C++ | src/qt/qtbase/src/plugins/platforms/mirclient/qmirclientinput.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/src/plugins/platforms/mirclient/qmirclientinput.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/plugins/platforms/mirclient/qmirclientinput.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2014-2015 Canonical, Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL3$
** Commercial License Usage
** Licensees holding valid commercial Q... | 38.87069 | 155 | 0.664937 | [
"geometry"
] |
ade0be264fcad933025807fa30f6b772dc6a3b80 | 4,937 | hpp | C++ | third-party/casadi/casadi/interfaces/hsl/ma27_interface.hpp | dbdxnuliba/mit-biomimetics_Cheetah | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | 8 | 2020-02-18T09:07:48.000Z | 2021-12-25T05:40:02.000Z | third-party/casadi/casadi/interfaces/hsl/ma27_interface.hpp | geekfeiw/Cheetah-Software | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | null | null | null | third-party/casadi/casadi/interfaces/hsl/ma27_interface.hpp | geekfeiw/Cheetah-Software | f3b0c0f6a3835d33b7f2f345f00640b3fc256388 | [
"MIT"
] | 13 | 2019-08-25T12:32:06.000Z | 2022-03-31T02:38:12.000Z | /*
* This file is part of CasADi.
*
* CasADi -- A symbolic framework for dynamic optimization.
* Copyright (C) 2010-2014 Joel Andersson, Joris Gillis, Moritz Diehl,
* K.U. Leuven. All rights reserved.
* Copyright (C) 2011-2014 Greg Horn
*
* CasADi is free software; you ... | 29.562874 | 94 | 0.644724 | [
"vector"
] |
adfdc494c17181c5c9eb3f2adce2c82bb2481cfd | 68,902 | cpp | C++ | src/WorkloadThread.cpp | Hitachi-Data-Systems/ivy | 07a77c271cad7f682d7fbff497bf74a76ecd5378 | [
"Apache-2.0"
] | 6 | 2016-09-12T16:23:53.000Z | 2021-12-16T23:08:34.000Z | src/WorkloadThread.cpp | Hitachi-Data-Systems/ivy | 07a77c271cad7f682d7fbff497bf74a76ecd5378 | [
"Apache-2.0"
] | null | null | null | src/WorkloadThread.cpp | Hitachi-Data-Systems/ivy | 07a77c271cad7f682d7fbff497bf74a76ecd5378 | [
"Apache-2.0"
] | null | null | null | //Copyright (c) 2016, 2017, 2018 Hitachi Vantara Corporation
//All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may
// not use this file except in compliance with the License. You may obtain
// a copy of the License at
//
// http://www.apache.org/licenses/LICE... | 37.304819 | 295 | 0.567342 | [
"vector"
] |
bc031549eb882ef06075407de64a85a53cbb10d2 | 4,503 | hpp | C++ | libs/GeomLib/AbstractNeuralDynamics.hpp | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 13 | 2015-09-15T17:28:25.000Z | 2022-03-22T20:26:47.000Z | libs/GeomLib/AbstractNeuralDynamics.hpp | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 41 | 2015-08-25T07:50:55.000Z | 2022-03-21T16:20:37.000Z | libs/GeomLib/AbstractNeuralDynamics.hpp | dekamps/miind | 4b321c62c2bd27eb0d5d8336a16a9e840ba63856 | [
"MIT"
] | 9 | 2015-09-14T20:52:07.000Z | 2022-03-08T12:18:18.000Z | // Copyright (c) 2005 - 2014 Marc de Kamps
// 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 condition... | 48.945652 | 199 | 0.766378 | [
"object",
"vector",
"model"
] |
bc0fd6fce9cfd5a26195db0207b84e1fbb0dde95 | 3,789 | hpp | C++ | inference-engine/src/inference_engine/cpp_interfaces/base/ie_inference_plugin_api.hpp | giulio1979/dldt | e7061922066ccefc54c8dae6e3215308ce9559e1 | [
"Apache-2.0"
] | 1 | 2021-07-30T17:03:50.000Z | 2021-07-30T17:03:50.000Z | inference-engine/src/inference_engine/cpp_interfaces/base/ie_inference_plugin_api.hpp | Dipet/dldt | b2140c083a068a63591e8c2e9b5f6b240790519d | [
"Apache-2.0"
] | null | null | null | inference-engine/src/inference_engine/cpp_interfaces/base/ie_inference_plugin_api.hpp | Dipet/dldt | b2140c083a068a63591e8c2e9b5f6b240790519d | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
/**
* \brief Inference Engine extended plugin API
* \file ie_inference_plugin_api.hpp
*/
#pragma once
#include <ie_api.h>
#include <cpp/ie_executable_network.hpp>
#include <ie_parameter.hpp>
#include <ie_remote_context.hpp>
#i... | 31.840336 | 117 | 0.686989 | [
"object",
"vector",
"model"
] |
bc23c394d266833cb7157f04e276b4ba1afe9c3b | 3,323 | cpp | C++ | BioNetGen-2.3.0/source_NFsim/validate/BioNetGen-2.2.6-stable/Network3/src/pla/eRungeKutta/extra/eRungeKutta_FG_sbPL.cpp | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | 53 | 2015-03-15T20:33:36.000Z | 2022-02-25T12:07:26.000Z | BioNetGen-2.3.0/source_NFsim/validate/BioNetGen-2.2.6-stable/Network3/src/pla/eRungeKutta/extra/eRungeKutta_FG_sbPL.cpp | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | 85 | 2015-03-19T19:58:19.000Z | 2022-02-28T20:38:17.000Z | BioNetGen-2.3.0/source_NFsim/validate/BioNetGen-2.2.6-stable/Network3/src/pla/eRungeKutta/extra/eRungeKutta_FG_sbPL.cpp | joseph-hellerstein/RuleBasedProgramming | fb88118ab764035979dc7c2bf8c89a7b484e4472 | [
"MIT"
] | 34 | 2015-05-02T23:46:57.000Z | 2021-12-22T19:35:58.000Z | /*
* eRungeKutta_FG_sbPL.cpp
*
* Created on: Apr 26, 2011
* Author: Leonard Harris
*/
#include "eRungeKutta_EXTRA.hh"
#include "../../../util/util.hh"
/*
eRungeKuttaSB_FG_PL::eRungeKuttaSB_FG_PL() : sp(){
if (MoMMA::debug)
cout << "eRungeKuttaSB_FG_PL constructor called." << endl;
}
*/
eRungeKutta_FG_sbP... | 33.23 | 121 | 0.665062 | [
"vector"
] |
bc24d18f4094c20b37891791b8b75f8fece38112 | 16,397 | cpp | C++ | C++/Programming Assignments/Program5/Program5.cpp | RamziJabali/CSC240-AB-intro-to-different-languages | f9e0a031924f2c3c657b620f75be872f8f5fe5cc | [
"MIT"
] | null | null | null | C++/Programming Assignments/Program5/Program5.cpp | RamziJabali/CSC240-AB-intro-to-different-languages | f9e0a031924f2c3c657b620f75be872f8f5fe5cc | [
"MIT"
] | null | null | null | C++/Programming Assignments/Program5/Program5.cpp | RamziJabali/CSC240-AB-intro-to-different-languages | f9e0a031924f2c3c657b620f75be872f8f5fe5cc | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include <stdlib.h>
using namespace std;
//Parts of Phase 1
void optionTwoRepresentative();
void optionThreeRepresentative();
//UserInput/output
void optionOnePhaseTwoMenu();
void optionOneInputOutput();
void optionTwoInputAndOutput();
void optionThreeInputOutput();
//Engi... | 30.141544 | 92 | 0.58529 | [
"object"
] |
bc2d584be8473f3017e1cf436f194aa0617cfad4 | 2,414 | cpp | C++ | UVa 10039 - Railroads/sample/10039 - Railroads.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 10039 - Railroads/sample/10039 - Railroads.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 10039 - Railroads/sample/10039 - Railroads.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <iostream>
#include <string.h>
#include <map>
#include <queue>
using namespace std;
struct edge {
int to;
short startTime, endTime;
edge(int a, short b, short c):
to(a),startTime(b),endTime(c) {}
};
vector<edge> g[105];
short dist[2400][105];
void solve(char *name1, char ... | 28.4 | 77 | 0.407208 | [
"vector"
] |
bc2fd17bc12112b5474041e1ecfdff8019e75b28 | 9,017 | cpp | C++ | Engine/Source/ThirdParty/Oculus/LibOVRMobile/LibOVRMobile_050/VRLib/jni/LibOVR/Src/Capture/src/OVR_Capture_Socket.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2019-05-28T06:58:19.000Z | 2019-05-28T07:55:01.000Z | vRLib/src/main/jni/LibOVR/Src/Capture/src/OVR_Capture_Socket.cpp | wilbown/freedomvr-gear | 5c49002c355f27264901fa2408a02c36e71b7299 | [
"MIT"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/ThirdParty/Oculus/LibOVRMobile/LibOVRMobile_050/VRLib/jni/LibOVR/Src/Capture/src/OVR_Capture_Socket.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | /************************************************************************************
PublicHeader: OVR.h
Filename : OVR_Capture_Socket.cpp
Content : Misc network communication functionality.
Created : January, 2015
Notes :
Copyright : Copyright 2015 Oculus VR, LLC. All Rights reserved.
... | 28.266458 | 116 | 0.550183 | [
"object"
] |
bc3680b26c437cc7167d0cc99f1ede04295608b9 | 3,345 | cpp | C++ | 2020/13day/cpp/task2.cpp | zagura/aoc-2017 | bfd38fb6fbe4211017a306d218b32ecff741e006 | [
"MIT"
] | 2 | 2018-12-09T16:00:09.000Z | 2018-12-09T17:56:15.000Z | 2020/13day/cpp/task2.cpp | zagura/aoc-2017 | bfd38fb6fbe4211017a306d218b32ecff741e006 | [
"MIT"
] | null | null | null | 2020/13day/cpp/task2.cpp | zagura/aoc-2017 | bfd38fb6fbe4211017a306d218b32ecff741e006 | [
"MIT"
] | null | null | null | /*
* =====================================================================================
*
* Filename: task2.cpp
*
* Description: Advent of Code 2020 - Day 13
*
* Version: 0.1.0
* Created: 13.12.2020
*
* Author: Michał Zagórski (zagura), <zagura6@gmail.com>
*
* ========... | 28.836207 | 88 | 0.521674 | [
"vector"
] |
bc386735d98c85da1f9a27f688ce079a9e87cfaa | 4,893 | cpp | C++ | src/ampa_receptor.cpp | anupgp/astron | 5ef1b113b5025f5e0477a1fb2b5202fadbc5335c | [
"MIT"
] | null | null | null | src/ampa_receptor.cpp | anupgp/astron | 5ef1b113b5025f5e0477a1fb2b5202fadbc5335c | [
"MIT"
] | null | null | null | src/ampa_receptor.cpp | anupgp/astron | 5ef1b113b5025f5e0477a1fb2b5202fadbc5335c | [
"MIT"
] | null | null | null | // Time-stamp: <2019-01-05 16:43:42 macbookair>
// Units: all SI units - seconds, Volts, Ampere, Meters, Simenes, Farads
// Description: Generates AMPA receptor currents for a given glutamate concentration
// Note: The binding and unbinding of glutamate at the receptor will change local glutamate concentration. Current... | 45.728972 | 150 | 0.692213 | [
"vector"
] |
bc43906c7bb4ac353457dd2d183de2b8133adda6 | 6,627 | cpp | C++ | unittest/CppUnitLite/Actor.cpp | szk/reprize | a827aa0247f7954f9f36ae573f97db1397645bf5 | [
"BSD-2-Clause"
] | null | null | null | unittest/CppUnitLite/Actor.cpp | szk/reprize | a827aa0247f7954f9f36ae573f97db1397645bf5 | [
"BSD-2-Clause"
] | null | null | null | unittest/CppUnitLite/Actor.cpp | szk/reprize | a827aa0247f7954f9f36ae573f97db1397645bf5 | [
"BSD-2-Clause"
] | 1 | 2019-03-11T20:58:41.000Z | 2019-03-11T20:58:41.000Z | #include "Common.hpp"
#include "VFS.hpp"
#include "Body.hpp"
#include "scene/Cell.hpp"
#include "Script.hpp"
#include "Actor.hpp"
using namespace reprize;
using namespace std;
using namespace phy;
using namespace res;
Actor::Actor(Str name_, Model* mdl_, Body* body_, Script* script_)
: Entity(name_, new Matter(m... | 23.752688 | 80 | 0.631206 | [
"model"
] |
a4bf4fe6032133e614838af6ee635fa5dc166c5e | 4,297 | hxx | C++ | com/ole32/com/objact/smstg.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/ole32/com/objact/smstg.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/ole32/com/objact/smstg.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1993.
//
// File: smstg.hxx
//
// Contents: Declaration for class to handle marshaled data as stg.
//
// Classes: CSafeMarshaledStg
// CSafeStgMarshaled
//... | 24.414773 | 77 | 0.470095 | [
"object"
] |
a4bfe665da08f8b6d5d711e47e9d74af65e28857 | 9,985 | cpp | C++ | weex_core/Source/android/jsengine/bridge/script/script_side_in_queue.cpp | jwxbond/incubator-weex | eb3f28b1da57c9fbbd8efd0661c3affbad64178e | [
"Apache-2.0"
] | 2 | 2017-10-18T01:36:31.000Z | 2018-05-07T23:00:21.000Z | weex_core/Source/android/jsengine/bridge/script/script_side_in_queue.cpp | jwxbond/incubator-weex | eb3f28b1da57c9fbbd8efd0661c3affbad64178e | [
"Apache-2.0"
] | null | null | null | weex_core/Source/android/jsengine/bridge/script/script_side_in_queue.cpp | jwxbond/incubator-weex | eb3f28b1da57c9fbbd8efd0661c3affbad64178e | [
"Apache-2.0"
] | 5 | 2019-05-28T11:48:42.000Z | 2020-05-15T07:31:55.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 45.386364 | 120 | 0.568052 | [
"vector"
] |
a4c03c73622b8e86514f207f27f9388912cc53c1 | 2,241 | cpp | C++ | LeetCode/C++/General/Easy/HouseRobber/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Easy/HouseRobber/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | LeetCode/C++/General/Easy/HouseRobber/main.cpp | busebd12/InterviewPreparation | e68c41f16f7790e44b10a229548186e13edb5998 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
using namespace std;
/*
* Approaches, from top-to-bottom:
*
* 1) Brute-force recursion, top-down: we either rob each house or we don't.
* This is based off of the inclusion-exclusion principle.
*
* Time complexity: O(2^n) [where n is the length of the input ... | 20.008929 | 106 | 0.569835 | [
"vector"
] |
a4c108569b02cee48dd5a1036c009a22f6565c38 | 27,239 | cpp | C++ | teleop_and_haptics/hviz/src/main.cpp | atp42/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | 3 | 2017-02-02T13:27:45.000Z | 2018-06-17T11:52:13.000Z | teleop_and_haptics/hviz/src/main.cpp | salisbury-robotics/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | null | null | null | teleop_and_haptics/hviz/src/main.cpp | salisbury-robotics/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | null | null | null | /*
* grasp_adjust_server
* Copyright (c) 2010, Willow Garage, Inc.
* All rights reserved.
*
* Software License Agreement (BSD License)
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributio... | 35.560052 | 155 | 0.647417 | [
"mesh",
"object",
"vector",
"transform",
"3d"
] |
a4cc7e3b7fb504b4893b2ad858b2eb578d1dc598 | 6,769 | cpp | C++ | _src_/Core/LazyStruct.cpp | VadimashRS/MuClientTools_Season_13 | 0e37e8cd9b364df5b5474687e6994137141eaecc | [
"MIT"
] | null | null | null | _src_/Core/LazyStruct.cpp | VadimashRS/MuClientTools_Season_13 | 0e37e8cd9b364df5b5474687e6994137141eaecc | [
"MIT"
] | null | null | null | _src_/Core/LazyStruct.cpp | VadimashRS/MuClientTools_Season_13 | 0e37e8cd9b364df5b5474687e6994137141eaecc | [
"MIT"
] | 3 | 2021-07-27T22:56:41.000Z | 2022-03-06T04:50:51.000Z | #include "LazyStruct.h"
//------------------------------------------------------------------------
//--LazyStruct
//------------------------------------------------------------------------
namespace LazyStruct
{
size_t ParseType(std::string& type)
{
static const std::unordered_map<std::string, int> TYPES =
{
... | 23.422145 | 95 | 0.552814 | [
"vector"
] |
a4cf1933f6c9cb6a09e191a4df2ae176219184e9 | 1,318 | cpp | C++ | old/v1/src/sim/Tile.cpp | qiuwenhui/micromouse_-simulator | 6625b2814b8281a0db5d4e9d57ae8881ff31fed0 | [
"MIT"
] | 175 | 2016-02-11T11:19:53.000Z | 2022-03-29T17:24:30.000Z | old/v1/src/sim/Tile.cpp | qiuwenhui/micromouse_-simulator | 6625b2814b8281a0db5d4e9d57ae8881ff31fed0 | [
"MIT"
] | 16 | 2016-03-06T22:06:13.000Z | 2022-02-16T06:23:00.000Z | old/v1/src/sim/Tile.cpp | qiuwenhui/micromouse_-simulator | 6625b2814b8281a0db5d4e9d57ae8881ff31fed0 | [
"MIT"
] | 57 | 2015-03-31T22:30:46.000Z | 2022-02-10T06:12:27.000Z | #include "Tile.h"
#include "Constants.h"
#include "Parameters.h"
namespace sim{
Tile::Tile() : m_x(0), m_y(0), m_distance(MAX_DISTANCE), m_explored(false),
m_passes(0), m_posp(false), m_neighbors() {
m_walls[0] = false;
m_walls[1] = false;
m_walls[2] = false;
m_walls[3] = false;
}
Til... | 14.808989 | 75 | 0.637329 | [
"vector"
] |
a4dcbac203f5d9ff258e1701e92c5bc80389960b | 726 | hpp | C++ | src/GameEngineClasses/CompoundPrimitive.hpp | dmariaa/game-engine | b26a58b7cdfcabbb6952f5df62248a8e9ce3476c | [
"MIT"
] | null | null | null | src/GameEngineClasses/CompoundPrimitive.hpp | dmariaa/game-engine | b26a58b7cdfcabbb6952f5df62248a8e9ce3476c | [
"MIT"
] | null | null | null | src/GameEngineClasses/CompoundPrimitive.hpp | dmariaa/game-engine | b26a58b7cdfcabbb6952f5df62248a8e9ce3476c | [
"MIT"
] | null | null | null | //
// CompoundPrimitive.hpp
// src
//
// Created by David María Arribas on 14/11/17.
// Copyright © 2017 David María Arribas. All rights reserved.
//
#ifndef CompoundPrimitive_hpp
#define CompoundPrimitive_hpp
#include <stdio.h>
#include <vector>
#include "BasePrimitive.hpp"
class CompoundPrimitive : public Base... | 22.6875 | 62 | 0.731405 | [
"render",
"vector"
] |
a4f3c6398e52f3d24597aa6fda3da6f952e1ed25 | 1,047 | cpp | C++ | CodeForces/CF1108B.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | 1 | 2018-02-11T09:41:54.000Z | 2018-02-11T09:41:54.000Z | CodeForces/CF1108B.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | CodeForces/CF1108B.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | #pragma GCC optimize ("O2")
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
#define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#def... | 17.745763 | 57 | 0.545368 | [
"vector"
] |
a4f739167da5ee2f1b9fee35b804aa34c5e40c43 | 8,465 | hpp | C++ | Zephyrus/zephyrus.hpp | Iciclez/Zephyrus | e0ea12e6d21bec5f19708ce95a4f685b848f265a | [
"MIT"
] | 5 | 2018-02-04T17:11:20.000Z | 2020-04-27T07:16:13.000Z | Zephyrus/zephyrus.hpp | Iciclez/zephyrus | e0ea12e6d21bec5f19708ce95a4f685b848f265a | [
"MIT"
] | null | null | null | Zephyrus/zephyrus.hpp | Iciclez/zephyrus | e0ea12e6d21bec5f19708ce95a4f685b848f265a | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
#include <vector>
#include <unordered_map>
#include <functional>
#include <queue>
#include <windows.h>
#ifdef _WIN64
#define X64 1
#elif _WIN32
#define X86 1
#endif
#ifdef X86
typedef uint32_t address_t;
#elif X64
typedef uint64_t address_t;
#else
typedef uint32_t add... | 28.694915 | 158 | 0.734554 | [
"vector"
] |
a4f99ab7d0e229e6ffc4d1683dd237ea469385f2 | 1,054 | hh | C++ | PacDetector/PacElemFactory.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacDetector/PacElemFactory.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | PacDetector/PacElemFactory.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | /* Class: PacElemFactory
*
* A factory utility class to produce transient sub-detector elements
* from the corresponding EDML elements.
*/
#ifndef PacElemFactory_HH
#define PacElemFactory_HH
#include <vector>
#include <iostream>
class EdmlDetElement;
class DetElem;
class DetType;
class PacElemFactory {
public:
... | 21.08 | 89 | 0.717268 | [
"object",
"vector"
] |
a4fccdbee942c94abf70d687b455e8477a2c75c4 | 532 | cpp | C++ | week_4/ANARC08G.cpp | juliolugo96/test | d2b95941eda16643adaab28a5b8bacb4fdc8959f | [
"MIT"
] | 3 | 2018-09-27T22:51:14.000Z | 2018-10-19T18:31:03.000Z | week_4/ANARC08G.cpp | juliolugo96/test | d2b95941eda16643adaab28a5b8bacb4fdc8959f | [
"MIT"
] | null | null | null | week_4/ANARC08G.cpp | juliolugo96/test | d2b95941eda16643adaab28a5b8bacb4fdc8959f | [
"MIT"
] | 2 | 2018-10-01T11:33:43.000Z | 2021-12-05T18:11:24.000Z | # include <bits/stdc++.h>
using namespace std;
int f(int a, int b)
{
a = a < 0 ? a : 0;
b = b < 0 ? b : 0;
return (a + b);
}
int main()
{
int n;
int k = 0;
scanf("%d", &n);
while(n != 0)
{
vector<int> v(n);
k++;
int acc = 0;
for(short i{0}; i < n; i++)
for(short j{0}; j < n; j++)
{
int ... | 13.3 | 52 | 0.432331 | [
"vector"
] |
3505118a51e275e9f138af29dccf06d66aacfba8 | 40,460 | cpp | C++ | gos/windows/glop.cpp | runningwild/glop | abed7bd11be4f9655d967ab1850328cf571c8787 | [
"BSD-3-Clause"
] | 38 | 2015-02-14T23:10:57.000Z | 2022-03-31T15:29:54.000Z | gos/windows/glop.cpp | runningwild/glop | abed7bd11be4f9655d967ab1850328cf571c8787 | [
"BSD-3-Clause"
] | 2 | 2015-09-11T04:17:17.000Z | 2020-06-01T02:56:12.000Z | gos/windows/glop.cpp | runningwild/glop | abed7bd11be4f9655d967ab1850328cf571c8787 | [
"BSD-3-Clause"
] | 6 | 2015-09-22T22:22:15.000Z | 2019-03-12T08:58:52.000Z | #define DIRECTINPUT_VERSION 0x0700
#include "dinput.h"
#include <process.h>
#include <windows.h>
#include <map>
#include <set>
#include <vector>
#include <windows.h>
using namespace std;
// Do not show the console window for a console application running in release mode
#ifdef NDEBUG
#pragma comment(linker, "/subsyste... | 36.384892 | 521 | 0.641176 | [
"object",
"vector"
] |
3529bf1970af9e165b5b0a1b902b61639cb45624 | 1,229 | cc | C++ | cdcc/lex.cc | lopezfjose/CDCC | d087fbd48e58d1ca57cd6269a1896043f57e6d6f | [
"MIT"
] | null | null | null | cdcc/lex.cc | lopezfjose/CDCC | d087fbd48e58d1ca57cd6269a1896043f57e6d6f | [
"MIT"
] | null | null | null | cdcc/lex.cc | lopezfjose/CDCC | d087fbd48e58d1ca57cd6269a1896043f57e6d6f | [
"MIT"
] | null | null | null |
#include <CDCC/Lex.hxx>
namespace CDCC
{
Lexer::Lexer()
: yytext(nullptr), yyleng(0), yylineno(0), current(nullptr), inputBuffer { 0 }
{
// Default constructor
}
Lexer::Lexer(char *ptr, int len, int num)
: yytext(ptr), yyleng(len), yylineno(num), current(nullptr), inputBuffer { 0 }
{
// Custom constr... | 19.822581 | 83 | 0.615948 | [
"vector"
] |
352b47d53a6b2f7b2bc8a916a93709eca5690cb4 | 4,533 | cpp | C++ | cogs/Camera.cpp | VasilStamatov/cogs | 6f198bc88f9b9506c0991907e336ac645e79286c | [
"MIT"
] | null | null | null | cogs/Camera.cpp | VasilStamatov/cogs | 6f198bc88f9b9506c0991907e336ac645e79286c | [
"MIT"
] | 1 | 2017-04-05T02:01:56.000Z | 2017-04-05T02:01:56.000Z | cogs/Camera.cpp | VasilStamatov/cogs | 6f198bc88f9b9506c0991907e336ac645e79286c | [
"MIT"
] | null | null | null | #include "Camera.h"
#include "Entity.h"
#include "Skybox.h"
#include "Framebuffer.h"
#include "BulletDebugRenderer.h"
#include <glm\gtc\matrix_transform.hpp>
namespace cogs
{
std::weak_ptr<Camera> Camera::s_mainCamera;
std::weak_ptr<Camera> Camera::s_currentCamera;
std::vector<std::weak_ptr<Camera>> Camera::s_a... | 22.004854 | 103 | 0.643062 | [
"render",
"vector",
"transform"
] |
35338c7aeec6903f086b3cfd55d784a90ab9f447 | 2,849 | cpp | C++ | src/graph/osg/BoundingRectangle.cpp | SindenDev/3dimviewer | e23a3147edc35034ef4b75eae9ccdcbc7192b1a1 | [
"Apache-2.0"
] | 6 | 2020-04-14T16:10:55.000Z | 2021-05-21T07:13:55.000Z | src/graph/osg/BoundingRectangle.cpp | SindenDev/3dimviewer | e23a3147edc35034ef4b75eae9ccdcbc7192b1a1 | [
"Apache-2.0"
] | null | null | null | src/graph/osg/BoundingRectangle.cpp | SindenDev/3dimviewer | e23a3147edc35034ef4b75eae9ccdcbc7192b1a1 | [
"Apache-2.0"
] | 2 | 2020-07-24T16:25:38.000Z | 2021-01-19T09:23:18.000Z | ///////////////////////////////////////////////////////////////////////////////
// $Id$
//
// 3DimViewer
// Lightweight 3D DICOM viewer.
//
// Copyright 2008-2016 3Dim Laboratory s.r.o.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Licen... | 25.666667 | 145 | 0.620218 | [
"3d"
] |
353773739e524ce08ac8a09f7352e31f4109f4d2 | 3,064 | cc | C++ | ccc/src/model/GetRecordOssUploadParamResult.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | ccc/src/model/GetRecordOssUploadParamResult.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | ccc/src/model/GetRecordOssUploadParamResult.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 1 | 2020-11-27T09:13:12.000Z | 2020-11-27T09:13:12.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 25.114754 | 90 | 0.74641 | [
"model"
] |
3537e1209275d2862664c3dcffd89ba419d668b5 | 887 | cpp | C++ | NumDistinguish/NeuralMatrix.cpp | tj41694/TNeuralNetwork | 733561b436f93ba1efde94bd5bd2d83f09e8ca9b | [
"MIT"
] | null | null | null | NumDistinguish/NeuralMatrix.cpp | tj41694/TNeuralNetwork | 733561b436f93ba1efde94bd5bd2d83f09e8ca9b | [
"MIT"
] | null | null | null | NumDistinguish/NeuralMatrix.cpp | tj41694/TNeuralNetwork | 733561b436f93ba1efde94bd5bd2d83f09e8ca9b | [
"MIT"
] | null | null | null | #include "NeuralMatrix.h"
#include <cstdlib> // Header file needed to use srand and rand
#include <ctime> // Header file needed to use time
#include "NumDistinguish.h"
#include "Sample.h"
using namespace std;
NeuralMatrix::NeuralMatrix(int row_, int colum_, float bias_) :row(row_), column(colum_), bias(bias_) {
stati... | 24.638889 | 119 | 0.661781 | [
"vector"
] |
35381c1c377f218a32bfa5e5381ea43975521080 | 2,333 | cpp | C++ | test/common/object_pool_test.cpp | aaron-tian/terrier | c98d93ca5b88d085f9efdd6ec2a8641e57bd54ff | [
"MIT"
] | null | null | null | test/common/object_pool_test.cpp | aaron-tian/terrier | c98d93ca5b88d085f9efdd6ec2a8641e57bd54ff | [
"MIT"
] | null | null | null | test/common/object_pool_test.cpp | aaron-tian/terrier | c98d93ca5b88d085f9efdd6ec2a8641e57bd54ff | [
"MIT"
] | null | null | null | #include <atomic>
#include <thread> // NOLINT
#include <unordered_set>
#include <vector>
#include "common/object_pool.h"
#include "gtest/gtest.h"
#include "util/random_test_util.h"
#include "util/test_thread_pool.h"
namespace terrier {
// Rather minimalistic checks for whether we reuse memory
// NOLINTNEXTLINE
TEST(... | 29.910256 | 98 | 0.707244 | [
"vector"
] |
3540016fd18f4ef94a4dfd1eba945eb0a354c5f4 | 1,313 | cpp | C++ | Plugins/GraphicsTools/Source/GraphicsTools/Private/GTClippingConeComponent.cpp | Myfreedom614/HLSpatialMapping | c68dfd08bfe502064f51b38b2c15021127f71161 | [
"MIT"
] | 53 | 2021-01-15T08:19:50.000Z | 2022-03-16T13:45:34.000Z | Plugins/GraphicsTools/Source/GraphicsTools/Private/GTClippingConeComponent.cpp | Myfreedom614/HLSpatialMapping | c68dfd08bfe502064f51b38b2c15021127f71161 | [
"MIT"
] | 9 | 2021-01-19T23:38:20.000Z | 2021-08-24T16:37:59.000Z | Plugins/GraphicsTools/Source/GraphicsTools/Private/GTClippingConeComponent.cpp | Myfreedom614/HLSpatialMapping | c68dfd08bfe502064f51b38b2c15021127f71161 | [
"MIT"
] | 12 | 2021-01-14T21:52:33.000Z | 2021-12-25T07:58:00.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "GTClippingConeComponent.h"
#include "GTWorldSubsystem.h"
#include "Engine/World.h"
UGTClippingConeComponent::UGTClippingConeComponent()
{
{
static const FName ParameterName("ClippingConeSettings");
SetSettingsParameterName(Par... | 32.02439 | 126 | 0.78751 | [
"transform"
] |
3544ac257b6aff535f6a9fee02b66812167bf594 | 104,371 | cpp | C++ | src/generator-TD.cpp | CDR-lib/TD-InstancesGenerator | 79b2fe850f2725b321e1e2893cd8769994c6b410 | [
"MIT"
] | null | null | null | src/generator-TD.cpp | CDR-lib/TD-InstancesGenerator | 79b2fe850f2725b321e1e2893cd8769994c6b410 | [
"MIT"
] | null | null | null | src/generator-TD.cpp | CDR-lib/TD-InstancesGenerator | 79b2fe850f2725b321e1e2893cd8769994c6b410 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <fstream>
#include <iostream>
#include <cstdlib>
#include <math.h>
#include <cstring>
#include <algorithm> // for function min
#include <random>
#include <cmath>
#include <chrono>
#include <string>
using namespace std;
// ------- Problem data:
int n=10; // number of aircraft
int mode=6; //... | 41.269672 | 254 | 0.598528 | [
"vector",
"3d"
] |
3546290885871a003deef0742464999add8b5456 | 215 | hh | C++ | include/screen_none.hh | frequem/gbemu | 3675595d742bf9bcad9abdabf940c169072c556c | [
"MIT"
] | null | null | null | include/screen_none.hh | frequem/gbemu | 3675595d742bf9bcad9abdabf940c169072c556c | [
"MIT"
] | null | null | null | include/screen_none.hh | frequem/gbemu | 3675595d742bf9bcad9abdabf940c169072c556c | [
"MIT"
] | null | null | null | #ifndef SCREEN_NONE_H
#define SCREEN_NONE_H
#include "screen.hh"
class NoneScreen : public Screen{
public:
NoneScreen();
void render(uint8_t screenbuffer[160][144][3]);
void draw();
bool enabled();
};
#endif
| 14.333333 | 48 | 0.725581 | [
"render"
] |
35584293cb03988be853a11421d5a072d65eff23 | 160,092 | cpp | C++ | src/main.cpp | withthelemons/novacoin | 543862f5601e3a65eee6cde5212f4127eb900a80 | [
"MIT"
] | 1 | 2018-03-06T16:36:02.000Z | 2018-03-06T16:36:02.000Z | src/main.cpp | MarceloGra/novacoin | 543862f5601e3a65eee6cde5212f4127eb900a80 | [
"MIT"
] | null | null | null | src/main.cpp | MarceloGra/novacoin | 543862f5601e3a65eee6cde5212f4127eb900a80 | [
"MIT"
] | 1 | 2018-01-18T14:12:47.000Z | 2018-01-18T14:12:47.000Z | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "alert.h"
#include "checkpoints.h"
#include "db.h"
#include "txdb.h"
#inc... | 36.170809 | 1,060 | 0.604896 | [
"object",
"vector"
] |
355b06803fa5ec7094bdfb46f192c21e4a006dcd | 832 | cpp | C++ | C++/1025.cpp | AndroAvi/DSA | 5937ab1e98c86a1f6e6745f3ea62d45b7bdeb582 | [
"MIT"
] | 4 | 2021-08-28T19:16:50.000Z | 2022-03-04T19:46:31.000Z | C++/1025.cpp | AndroAvi/DSA | 5937ab1e98c86a1f6e6745f3ea62d45b7bdeb582 | [
"MIT"
] | 8 | 2021-10-29T19:10:51.000Z | 2021-11-03T12:38:00.000Z | C++/1025.cpp | AndroAvi/DSA | 5937ab1e98c86a1f6e6745f3ea62d45b7bdeb582 | [
"MIT"
] | 4 | 2021-09-06T05:53:07.000Z | 2021-12-24T10:31:40.000Z | // trick solution
// Time : O(1)
class Solution {
public:
bool divisorGame(int n) {
return n % 2 == 0;
}
};
// solution using dynamic programming
// Time : O(n^2)
class Solution {
public:
vector<int>dp = vector<int>(1001, -1);
int solve(int n){
if(n == 1)
return 0;
... | 19.809524 | 57 | 0.34976 | [
"vector"
] |
355f178830a6735a798805e32f339686059a9786 | 294 | hpp | C++ | src/lproto.hpp | liubai01/Lua-Lab1-luacFormatter | 92887d0952993514a97a58a0e9072c417871bdf8 | [
"Apache-2.0"
] | 1 | 2021-12-17T05:10:59.000Z | 2021-12-17T05:10:59.000Z | src/lproto.hpp | liubai01/Lua-Lab1-luacFormatter | 92887d0952993514a97a58a0e9072c417871bdf8 | [
"Apache-2.0"
] | null | null | null | src/lproto.hpp | liubai01/Lua-Lab1-luacFormatter | 92887d0952993514a97a58a0e9072c417871bdf8 | [
"Apache-2.0"
] | null | null | null | #ifndef LPROTO_H // include guard
#define LPROTO_H
#include <vector>
#include "utils.hpp"
#include "lobject.hpp"
using namespace std;
class Proto {
public:
ProtoData ptdb;
// sub functions
vector<Proto> subprotos;
void print(string name="main", string prompt="");
};
#endif | 15.473684 | 53 | 0.690476 | [
"vector"
] |
3561271d1037bf933999e18d05012b61f26a5f55 | 3,848 | cpp | C++ | src/RunVisitor.cpp | kstemp/jsc | a0a992a0d443560449f332c16bf14b17cf83009f | [
"MIT"
] | null | null | null | src/RunVisitor.cpp | kstemp/jsc | a0a992a0d443560449f332c16bf14b17cf83009f | [
"MIT"
] | null | null | null | src/RunVisitor.cpp | kstemp/jsc | a0a992a0d443560449f332c16bf14b17cf83009f | [
"MIT"
] | null | null | null | /*
jScript
copyright (C) 2019 K. Stempinski
@filename: Visitor.cpp
@description: Visitor pattern implementation.
*/
#include "RunVisitor.h"
void RunVisitor::visit(ValueNode& valueNode){
result = valueNode._value;
}
void RunVisitor::visit(UnaryNode& unaryNode){
unaryNode.arg->accept(this);
result = unaryNo... | 22.769231 | 215 | 0.683992 | [
"vector"
] |
3563642990571a6b4184b3e4dae3945fded489b4 | 1,001 | cc | C++ | chapter4/4-5.cc | HelloCodeMing/TMP | 49573215d1c88eadda8273499b31c3b184a64d0f | [
"MIT"
] | 1 | 2017-09-02T03:03:43.000Z | 2017-09-02T03:03:43.000Z | chapter4/4-5.cc | HelloCodeMing/TMP | 49573215d1c88eadda8273499b31c3b184a64d0f | [
"MIT"
] | null | null | null | chapter4/4-5.cc | HelloCodeMing/TMP | 49573215d1c88eadda8273499b31c3b184a64d0f | [
"MIT"
] | null | null | null | #include <vector>
#include <algorithm>
#include <iostream>
#include "common-header.hpp"
template <class Container>
struct iterator_type
: mpl::if_<
std::is_const<Container>,
typename Container::const_iterator,
typename Container::iterator> {
};
static_assert(std::is_same<
... | 25.025 | 61 | 0.612388 | [
"vector"
] |
8313900f6bd59e09a733ce0603e03f5670c6f4f5 | 4,777 | cpp | C++ | src/kfusion/imgproc.cpp | LuyaooChen/sobfu | 688e06a2e81fdf30bd2d019516dc025a951bcbc2 | [
"BSD-3-Clause"
] | 142 | 2019-01-10T14:38:03.000Z | 2022-03-18T08:45:30.000Z | src/kfusion/imgproc.cpp | GucciPrada/sobfu | c83646582a146a3f4b8d8ad62de31ec60f8004d6 | [
"BSD-3-Clause"
] | 17 | 2019-01-18T05:15:33.000Z | 2021-12-22T15:00:44.000Z | src/kfusion/imgproc.cpp | GucciPrada/sobfu | c83646582a146a3f4b8d8ad62de31ec60f8004d6 | [
"BSD-3-Clause"
] | 27 | 2019-02-16T10:11:49.000Z | 2021-11-02T19:51:28.000Z | #include <kfusion/precomp.hpp>
void kfusion::cuda::depthBilateralFilter(const Depth &in, Depth &out, int kernel_size, float sigma_spatial,
float sigma_depth) {
out.create(in.rows(), in.cols());
device::bilateralFilter(in, out, kernel_size, sigma_spatial, sigma_depth);
}... | 42.274336 | 119 | 0.667783 | [
"vector"
] |
831fc2691424d1b4bc6ede9e4ca309f76703e3f1 | 97 | cpp | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/QtAutogen/MocDepends/testATDTarget.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/QtAutogen/MocDepends/testATDTarget.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/QtAutogen/MocDepends/testATDTarget.cpp | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z |
#include "ATDTarget.hpp"
#include "moc_ATDTarget.cpp"
int main()
{
Object obj;
return 0;
}
| 9.7 | 28 | 0.670103 | [
"object"
] |
831fd4383ba9f689b875d2f25a62e7b4d37738d7 | 1,447 | hh | C++ | libsrc/spatialdata/geocoords/CSPicklerAscii.hh | rwalkerlewis/spatialdata | 515c8d9dec21d261d0d654b5c30e6759565268d2 | [
"MIT"
] | 6 | 2017-09-19T11:05:33.000Z | 2019-09-26T08:18:30.000Z | libsrc/spatialdata/geocoords/CSPicklerAscii.hh | rwalkerlewis/spatialdata | 515c8d9dec21d261d0d654b5c30e6759565268d2 | [
"MIT"
] | 38 | 2017-06-28T15:44:50.000Z | 2022-02-17T04:04:02.000Z | libsrc/spatialdata/geocoords/CSPicklerAscii.hh | rwalkerlewis/spatialdata | 515c8d9dec21d261d0d654b5c30e6759565268d2 | [
"MIT"
] | 11 | 2015-11-09T06:29:35.000Z | 2021-06-02T14:13:59.000Z | // -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// Brad T. Aagaard, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2017 University of California, Davis
/... | 24.525424 | 75 | 0.575674 | [
"object"
] |
8328cd929d80a7333b57962949c5dab3973ad3a7 | 4,609 | cpp | C++ | CP/Assign1/LCS/src/LCS.cpp | abilng/MTech-Assignments | edb7a468eef6d8364551e8b6c04acf7c79831138 | [
"MIT"
] | 1 | 2016-03-01T10:42:57.000Z | 2016-03-01T10:42:57.000Z | CP/Assign1/LCS/src/LCS.cpp | abilng/MTech-Assignments | edb7a468eef6d8364551e8b6c04acf7c79831138 | [
"MIT"
] | null | null | null | CP/Assign1/LCS/src/LCS.cpp | abilng/MTech-Assignments | edb7a468eef6d8364551e8b6c04acf7c79831138 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include <cilk/cilk.h>
#define TOP 1
#define LEFT 2
#define DIAG 3
#define BLOCKSIZE 16
using namespace std;
void printMatrix(int *,int,int );
void LCS(int *,int *,const char *,const char * ,int,int);
string getLCS(int *,string,int,int,int,... | 20.393805 | 82 | 0.55934 | [
"vector"
] |
832912e20be637e883c8f96ec9e4834773d0d473 | 2,042 | hpp | C++ | include/Proxy.hpp | fixstars/cRTOS-loader | d3da5738d2511b497a56d320eafe1f3dc628347b | [
"Apache-2.0"
] | null | null | null | include/Proxy.hpp | fixstars/cRTOS-loader | d3da5738d2511b497a56d320eafe1f3dc628347b | [
"Apache-2.0"
] | null | null | null | include/Proxy.hpp | fixstars/cRTOS-loader | d3da5738d2511b497a56d320eafe1f3dc628347b | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2020 Yang, Chung-Fan @ Fixstars corporation
* <chungfan.yang@fixstars.com>
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... | 22.688889 | 75 | 0.631734 | [
"vector"
] |
833beb2bd6ef6ed2b3dd3ec835d9b1d914054ecc | 162 | cpp | C++ | src/DotNet/QuickFASTDotNetPch.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 198 | 2015-04-26T08:06:18.000Z | 2022-03-13T01:31:50.000Z | src/DotNet/QuickFASTDotNetPch.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 15 | 2015-07-07T19:47:08.000Z | 2022-02-04T05:56:51.000Z | src/DotNet/QuickFASTDotNetPch.cpp | divyang4481/quickfast | 339c78e96a1f63b74c139afa1a3c9a07afff7b5f | [
"BSD-3-Clause"
] | 96 | 2015-04-24T15:19:43.000Z | 2022-03-28T13:15:11.000Z | // Copyright (c) 2009, 2010 Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#include "QuickFASTDotNetPch.h"
| 32.4 | 54 | 0.753086 | [
"object"
] |
834275c41e0cb858f6689d328aff6ff3f909a8c4 | 3,480 | cpp | C++ | Cramers_rule/Cpp/Cramer/Cramer/cramer.cpp | ncoe/rosetta | 15c2302a247dfbcea694ff095238a525c60226d4 | [
"MIT"
] | 3 | 2018-02-26T18:12:31.000Z | 2019-08-26T06:47:30.000Z | Cramers_rule/Cpp/Cramer/Cramer/cramer.cpp | ncoe/rosetta | 15c2302a247dfbcea694ff095238a525c60226d4 | [
"MIT"
] | null | null | null | Cramers_rule/Cpp/Cramer/Cramer/cramer.cpp | ncoe/rosetta | 15c2302a247dfbcea694ff095238a525c60226d4 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
class SubMatrix {
const std::vector<std::vector<double>> *source;
std::vector<double> replaceColumn;
const SubMatrix *prev;
size_t sz;
int colIndex = -1;
public:
SubMatrix(const std::vector<std::vector<double>> &src, const std::vector<... | 25.217391 | 154 | 0.496552 | [
"vector"
] |
834932a4293159349fc71c853a9b1560762c9613 | 30,160 | cpp | C++ | src/Main/NRG_main_bkup.cpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | 3 | 2015-09-21T20:58:45.000Z | 2019-03-20T01:21:41.000Z | src/Main/NRG_main_bkup.cpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | null | null | null | src/Main/NRG_main_bkup.cpp | lgds/NRG_USP | ff66846e92498aa429cce6fc5793bec23ad03eb4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <fstream>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <vector>
#include <cmath>
#include <cstring>
#include <unistd.h>
#include "NRGclasses.hpp"
#include "NRGfunctions.hpp"
#include... | 30.806946 | 118 | 0.635245 | [
"vector",
"model"
] |
8351c0b74499099d9b09e26cfdce96adc0fa0454 | 3,116 | hpp | C++ | src/material.hpp | White-Link/PathTracer | 4419c5c23ee897d7859c78e34bc88e4ef2beca59 | [
"MIT"
] | null | null | null | src/material.hpp | White-Link/PathTracer | 4419c5c23ee897d7859c78e34bc88e4ef2beca59 | [
"MIT"
] | null | null | null | src/material.hpp | White-Link/PathTracer | 4419c5c23ee897d7859c78e34bc88e4ef2beca59 | [
"MIT"
] | null | null | null | /**
* \file material.hpp
* \brief Defines class Material.
*/
#include "utils.hpp"
/**
* \class Material
* \brief Represents the material of an object (e.g. its color, refractive
* index...).
*/
class Material {
private:
/// Diffuse (R,G,B) of the Material, each component being between 0 and 1.
Vector... | 26.632479 | 77 | 0.731386 | [
"object",
"vector"
] |
835443bd3ec020b651c8be1cbdb99f3bf8dec032 | 7,330 | inl | C++ | modules/SofaBoundaryCondition/FixedTranslationConstraint.inl | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | modules/SofaBoundaryCondition/FixedTranslationConstraint.inl | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | modules/SofaBoundaryCondition/FixedTranslationConstraint.inl | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 32.149123 | 179 | 0.639427 | [
"object",
"vector"
] |
83566b2f4fe25b80c836da3d27a867bfdea6bc59 | 2,589 | cpp | C++ | cpp/language_reference_initialization_5.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/language_reference_initialization_5.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | cpp/language_reference_initialization_5.cpp | rpuntaie/c-examples | 385b3c792e5b39f81a187870100ed6401520a404 | [
"MIT"
] | null | null | null | /*
g++ --std=c++20 -pthread -o ../_build/cpp/language_reference_initialization_5.exe ./cpp/language_reference_initialization_5.cpp && (cd ../_build/cpp/;./language_reference_initialization_5.exe)
https://en.cppreference.com/w/cpp/language/reference_initialization
*/
#include <utility>
#include <sstream>
struct S {
... | 44.637931 | 192 | 0.564311 | [
"object"
] |
835ddf6afbb8c741be9052fc9eae98695adcdac9 | 1,864 | cpp | C++ | db/Relations/pathsegment.cpp | rduan036/YoMap | 60fc5ac86740765d168d1e54c11faa4fcb190a07 | [
"MIT"
] | 1 | 2021-05-22T10:31:49.000Z | 2021-05-22T10:31:49.000Z | db/Relations/pathsegment.cpp | rduan036/YoMap | 60fc5ac86740765d168d1e54c11faa4fcb190a07 | [
"MIT"
] | null | null | null | db/Relations/pathsegment.cpp | rduan036/YoMap | 60fc5ac86740765d168d1e54c11faa4fcb190a07 | [
"MIT"
] | null | null | null | #include "pathsegment.h"
PathSegment::PathSegment(unsigned long int i):Relation(i,ns_relation::path_segment)
{
cost = 0.0f;
}
PathSegment::~PathSegment(){
for(vector<WaySegment*>::iterator it = segments.begin();it!=segments.end();it++){
delete (*it)->getPointA();
delete (*it)->getPointB();
... | 25.888889 | 90 | 0.630365 | [
"vector"
] |
8364df7a13c9fe7c1400ee67d1698738d8bbbf3e | 1,275 | cpp | C++ | Codeforces/Contest 1634/1634C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | 1 | 2021-09-14T11:25:21.000Z | 2021-09-14T11:25:21.000Z | Codeforces/Contest 1634/1634C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | null | null | null | Codeforces/Contest 1634/1634C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
#define lowbit(x) (x&-x)
#define rep(i, l, r) for(int i = l; i < r; i ++)
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
using namespace std;
typedef long long LL;
typedef pair<int,int> PII;
typedef vector<int> VI;
typedef vector<vector<int>> VII;
... | 21.610169 | 49 | 0.432941 | [
"vector"
] |
837582805ff36c3a34f34fa1c01473a2a540cb0c | 1,100 | cpp | C++ | pat1028.cpp | Lollipopcc/PAT-Advanced-Level- | 1896890df32ed162601b96bbbb3c56ce904a6122 | [
"Apache-2.0"
] | null | null | null | pat1028.cpp | Lollipopcc/PAT-Advanced-Level- | 1896890df32ed162601b96bbbb3c56ce904a6122 | [
"Apache-2.0"
] | null | null | null | pat1028.cpp | Lollipopcc/PAT-Advanced-Level- | 1896890df32ed162601b96bbbb3c56ce904a6122 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
#include<vector>
#include<string.h>
#include<algorithm>
using namespace std;
typedef struct{
char sid[8];
char sname[10];
int grade;
}node;
vector<node> student;
bool cmp1(node a,node b){
if(strcmp(a.sid,b.sid)<0) return true;
return false;
}
bool cmp2(node a,node b){
if(strcmp(a.sname,b.sna... | 18.032787 | 73 | 0.623636 | [
"vector"
] |
8375ecd2c228d7bfc68436caabef571f69f48abc | 7,504 | cpp | C++ | FSGDEngine-Student/FSGDGame/ExampleGame.cpp | Cabrra/Engine-Development | cce5930e2264048b0be58b691729407ca507d1af | [
"MIT"
] | 2 | 2019-03-30T11:14:01.000Z | 2020-10-27T00:55:01.000Z | FSGDEngine-Student/FSGDGame/ExampleGame.cpp | Cabrra/Engine-Development | cce5930e2264048b0be58b691729407ca507d1af | [
"MIT"
] | null | null | null | FSGDEngine-Student/FSGDGame/ExampleGame.cpp | Cabrra/Engine-Development | cce5930e2264048b0be58b691729407ca507d1af | [
"MIT"
] | 1 | 2019-01-29T20:12:24.000Z | 2019-01-29T20:12:24.000Z | #include <windows.h>
#include "ExampleGame.h"
#include "../EDGameCore/Camera.h"
#include "../EDGameCore/Transform.h"
#include "../EDGameCore/RigidBody.h"
#include "../EDRendererD3D/ViewPortManager.h"
#include "RenderController.h"
#include "../EDRendererD3D/DebugRenderer.h"
#include "../EDRendererD3D/GraphicsProfiler.h"... | 31.529412 | 137 | 0.765458 | [
"geometry",
"render",
"transform"
] |
83886af88c6a5c4cdefbaeff6bcc1379a88d6770 | 3,819 | cpp | C++ | rust/protocols-sys/c++/src/bin/benchmark.cpp | yexincheng/delphi | 7230fc9977008eab20bc1918c479c8294c93667c | [
"Apache-2.0",
"MIT"
] | 81 | 2020-01-15T18:48:51.000Z | 2022-03-30T11:51:44.000Z | rust/protocols-sys/c++/src/bin/benchmark.cpp | yexincheng/delphi | 7230fc9977008eab20bc1918c479c8294c93667c | [
"Apache-2.0",
"MIT"
] | 23 | 2020-07-07T09:28:32.000Z | 2022-03-17T20:30:02.000Z | rust/protocols-sys/c++/src/bin/benchmark.cpp | yexincheng/delphi | 7230fc9977008eab20bc1918c479c8294c93667c | [
"Apache-2.0",
"MIT"
] | 25 | 2020-01-16T02:51:53.000Z | 2022-03-31T04:50:08.000Z | /*
* Benchmark homomorphic convolution
*
* Created on: August 10, 2019
* Author: ryanleh
*/
#include <cstddef>
#include <iostream>
#include <iomanip>
#include <string>
#include <chrono>
#include <random>
#include <thread>
#include <mutex>
#include <memory>
#include <limits>
#include <math.h>
#include "conv... | 33.5 | 135 | 0.547264 | [
"shape"
] |
838ba61be278313a474dd7d5fb8973df2e6ed6db | 409 | cpp | C++ | ZhenTiBan/1-12.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | ZhenTiBan/1-12.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | ZhenTiBan/1-12.cpp | drt4243566/leetcode_learn | ef51f215079556895eec2252d84965cd1c3a7bf4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(){
int n=0,k=0;
cin >> n >> k;
int x=0;
vector<int> e0(32,0);
for(int i=0;i<n;i++){
cin >> x;
int index=0;
while(x){
e0[index++] += x%k;
x /= k;
}
}
int res=0;
for(... | 17.782609 | 31 | 0.410758 | [
"vector"
] |
83902011fb330702c9aaa28c326f295af5f3f22c | 10,291 | cpp | C++ | solid/system/src/crashhandler_unix.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 26 | 2015-08-25T16:07:58.000Z | 2019-07-05T15:21:22.000Z | solid/system/src/crashhandler_unix.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-10-15T22:55:15.000Z | 2017-09-19T12:41:10.000Z | solid/system/src/crashhandler_unix.cpp | vipalade/solidframe | cff130652127ca9607019b4db508bc67f8bbecff | [
"BSL-1.0"
] | 5 | 2016-09-15T10:34:52.000Z | 2018-10-30T11:46:46.000Z | /** ==========================================================================
* Addapted for SolidFrame from https://github.com/KjellKod/g3log
* 2011 by KjellKod.cc. This is PUBLIC DOMAIN to use at your own risk and comes
* with no warranties. This code is yours to share, use and modify with no
* strings attached ... | 35.364261 | 156 | 0.629579 | [
"solid"
] |
83915aed0b4624f7592b0886f30824313d8ffb22 | 7,787 | hxx | C++ | src/devices/cpu/mips/o2dprintf.hxx | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/devices/cpu/mips/o2dprintf.hxx | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/devices/cpu/mips/o2dprintf.hxx | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Ryan Holtz
static char digit[] = "0123456789abcdef";
static void dprintdec(int64_t val, bool zeropad, int size)
{
if (val == 0 && !zeropad)
{
printf("0");
return;
}
char dc[22];
for (int rem = 0; rem < 22; rem++) dc[rem] = '0';
int ptr = 0;
int64_t v = val;
c... | 19.132678 | 149 | 0.550019 | [
"object"
] |
8b5417d02ccfe422095420a62cda3eb89a596a43 | 1,588 | hpp | C++ | src/include/zap/zap/graph.hpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | src/include/zap/zap/graph.hpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | src/include/zap/zap/graph.hpp | chybz/zap | ccc67d85def09faa962e44b9e36ca414207d4ec3 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <string>
#include <unordered_map>
#include <stack>
#include <zap/types.hpp>
namespace zap {
class graph
{
public:
graph();
graph(const strings& names);
graph(const graph& other) = default;
graph(graph&& other) = default;
graph& operator=(const graph&... | 19.85 | 74 | 0.595088 | [
"vector"
] |
8b6a08ed500c7d5ab61a5a3da9458ce83908ed01 | 9,222 | cpp | C++ | Assignment 3/assignment3/src/base/skeleton.cpp | Yanko96/CS-C3100-Computer-Graphics | 83b369a6fd5723f53b6ba1c84e8e8babd750f562 | [
"MIT"
] | null | null | null | Assignment 3/assignment3/src/base/skeleton.cpp | Yanko96/CS-C3100-Computer-Graphics | 83b369a6fd5723f53b6ba1c84e8e8babd750f562 | [
"MIT"
] | null | null | null | Assignment 3/assignment3/src/base/skeleton.cpp | Yanko96/CS-C3100-Computer-Graphics | 83b369a6fd5723f53b6ba1c84e8e8babd750f562 | [
"MIT"
] | null | null | null | #include "skeleton.hpp"
#include "utility.hpp"
#include <cassert>
#include <fstream>
#include <stack>
#include <sstream>
using namespace std;
using namespace FW;
void Skeleton::setJointRotation(unsigned index, Vec3f euler_angles) {
Joint& joint = joints_[index];
// For convenient reading, we store the rotation a... | 26.198864 | 113 | 0.687486 | [
"vector",
"model"
] |
8b6b39b046636b6482a40909b9fb30fc563776ee | 1,553 | hpp | C++ | Spades Game/Game/Handler/LightMeterHandler.hpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 6 | 2017-01-04T22:40:50.000Z | 2019-11-24T15:37:46.000Z | Spades Game/Game/Handler/LightMeterHandler.hpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 1 | 2016-09-18T19:10:01.000Z | 2017-08-04T23:53:38.000Z | Spades Game/Game/Handler/LightMeterHandler.hpp | jmasterx/StemwaterSpades | 05e5d7c6d380d2f5986bd91269887f16c3e71962 | [
"Unlicense"
] | 2 | 2015-11-21T16:42:18.000Z | 2019-04-21T20:41:39.000Z | #ifndef CGE_LIGHT_METER_HANDLER_HPP
#define CGE_LIGHT_METER_HANDLER_HPP
#include "Game/Element/LightMeter.hpp"
#include "Game/Handler/ClientEventListener.hpp"
#include "Game/Resource/SpriteManager.hpp"
#include "Game/UI/GuiFontManager.hpp"
#include "Game/Handler/GameEventProvider.hpp"
#include "Game/Handler/SceneEventP... | 41.972973 | 210 | 0.797811 | [
"render",
"vector"
] |
8b7017432103452665ecc3f4ce70650459daf539 | 1,175 | cpp | C++ | day6.cpp | TobbeOlsson/AoC21 | 3824f2e65137270d54c99c60d1f106da556c81f2 | [
"MIT"
] | null | null | null | day6.cpp | TobbeOlsson/AoC21 | 3824f2e65137270d54c99c60d1f106da556c81f2 | [
"MIT"
] | null | null | null | day6.cpp | TobbeOlsson/AoC21 | 3824f2e65137270d54c99c60d1f106da556c81f2 | [
"MIT"
] | null | null | null | #include "readInput.h"
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <numeric>
int main(){
std::ifstream in("inputs/input_day6");
std::string line;
long long fish[10] = {};
while (std::getline(in, line)){
std::istringstream ss(line);
... | 27.325581 | 117 | 0.473191 | [
"vector"
] |
8b74e91ffbcd40ad7cb48f6be619affd57f760cd | 1,022 | cpp | C++ | Codeforces/Solutions/1333D.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | Codeforces/Solutions/1333D.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | Codeforces/Solutions/1333D.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | // Problem Code: 1333D
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
void head_turns(int n, int k, string& s) {
int i, j, mx = 0;
bool done = false;
vector<vector<int>> moves;
while (!done) {
done = true;
vector<int> move;
for (int i = 0; i < n - 1; i++)... | 17.322034 | 62 | 0.486301 | [
"vector"
] |
8b78c31c5fe3ff19e322a7b78e3ea8bcd0dc999c | 2,421 | hpp | C++ | ige/include/ige/plugin/TransformPlugin.hpp | NoOverflow/ige | 4859a97e5d3f75f45d8db578e476ef55bc1df95c | [
"MIT"
] | null | null | null | ige/include/ige/plugin/TransformPlugin.hpp | NoOverflow/ige | 4859a97e5d3f75f45d8db578e476ef55bc1df95c | [
"MIT"
] | null | null | null | ige/include/ige/plugin/TransformPlugin.hpp | NoOverflow/ige | 4859a97e5d3f75f45d8db578e476ef55bc1df95c | [
"MIT"
] | null | null | null | #ifndef F4DF8A5F_1CCD_443F_8D71_8A439340E94F
#define F4DF8A5F_1CCD_443F_8D71_8A439340E94F
#include "ige/ecs/VecStorage.hpp"
#include "ige/ecs/World.hpp"
#include <optional>
#include <unordered_set>
#include <vector>
#include <glm/ext/quaternion_float.hpp>
#include <glm/mat4x4.hpp>
#include <glm/vec3.hpp>
; // TODO: h... | 25.484211 | 77 | 0.684015 | [
"vector",
"transform"
] |
8b7a57d77948ae6fbc0b9cd1c29554f34a5410bf | 1,822 | cpp | C++ | Geeks4Geeks/G4G-Solutions/topological_sort.cpp | vijay-jaisankar/Competetive_programming | 860c165ce42337a7380112938b14772e6a553647 | [
"MIT"
] | null | null | null | Geeks4Geeks/G4G-Solutions/topological_sort.cpp | vijay-jaisankar/Competetive_programming | 860c165ce42337a7380112938b14772e6a553647 | [
"MIT"
] | null | null | null | Geeks4Geeks/G4G-Solutions/topological_sort.cpp | vijay-jaisankar/Competetive_programming | 860c165ce42337a7380112938b14772e6a553647 | [
"MIT"
] | null | null | null | // https://practice.geeksforgeeks.org/problems/topological-sort/1
using namespace std;
vector <int> topoSort(int N, vector<int> adj[]);
/* Function to check if elements returned by user
* contains the elements in topological sorted form
* V: number of vertices
* *res: array containing elements in topologica... | 19.382979 | 65 | 0.498902 | [
"vector"
] |
8b8318a01bbfa27c49c0989e5d98ec917038cd63 | 12,678 | cpp | C++ | correspondences/graph/src/graph.cpp | jwdinius/nmsac | b765be4340cf8367e1af345dc156597ce425c818 | [
"Apache-2.0"
] | null | null | null | correspondences/graph/src/graph.cpp | jwdinius/nmsac | b765be4340cf8367e1af345dc156597ce425c818 | [
"Apache-2.0"
] | 8 | 2020-07-19T23:38:48.000Z | 2020-09-14T22:36:30.000Z | correspondences/graph/src/graph.cpp | jwdinius/nmsac | b765be4340cf8367e1af345dc156597ce425c818 | [
"Apache-2.0"
] | 1 | 2020-08-06T06:59:04.000Z | 2020-08-06T06:59:04.000Z | //! c/c++ headers
#include <cstdlib>
#include <limits>
#include <vector>
//! dependency headers
//! project headers
#include "correspondences/common/utilities.hpp"
#include "correspondences/graph/graph.hpp"
//! namespaces
namespace cg = correspondences::graph;
/** UndirectedGraph::UndirectedGraph()
* @brief default ... | 33.015625 | 91 | 0.660909 | [
"vector"
] |
8b8c46b63616c4769e8eba91891b263a91d87ece | 1,196 | cpp | C++ | Days 051 - 060/Day 60/SplitSetIntoEqualSubsets.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 051 - 060/Day 60/SplitSetIntoEqualSubsets.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 051 - 060/Day 60/SplitSetIntoEqualSubsets.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <numeric>
#include <vector>
bool CanSplitEquallyHelper(const std::vector<int>& numbers, unsigned int startIndex, unsigned int endIndex, int firstSum, int secondSum) noexcept
{
if (startIndex >= endIndex)
{
return false;
}
else if (firstSum == secondSum)
{
retu... | 24.916667 | 145 | 0.680602 | [
"vector"
] |
8b9b0d42867636d8e09c03726c778a196e9b0517 | 2,729 | hpp | C++ | RKF/RKF_class.hpp | dkaramit/NaBBODES | abbd276623a01c2ea95c089190def6d66478bac5 | [
"MIT"
] | null | null | null | RKF/RKF_class.hpp | dkaramit/NaBBODES | abbd276623a01c2ea95c089190def6d66478bac5 | [
"MIT"
] | 1 | 2021-07-19T17:08:25.000Z | 2021-07-19T17:08:25.000Z | RKF/RKF_class.hpp | dkaramit/NaBBODES | abbd276623a01c2ea95c089190def6d66478bac5 | [
"MIT"
] | null | null | null | #ifndef RKF_class
#define RKF_class
#include<array>
#include<vector>
#include<functional>
//This is a general implementation of explicit embedded RK solver of
// a system of differential equations in the interval [0,tmax].
/*
diffeq is a class of the system of equations to be solved
N_eqs is ten number of equation... | 35.907895 | 122 | 0.632833 | [
"vector"
] |
8ba462a67c0a51e59c044829c63c29e180318e6b | 3,513 | cc | C++ | kernel/ocl/algebra/quaternion.cc | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 5 | 2020-05-20T21:04:49.000Z | 2021-07-08T05:29:41.000Z | kernel/ocl/algebra/quaternion.cc | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-01-27T09:07:22.000Z | 2021-02-22T11:17:11.000Z | kernel/ocl/algebra/quaternion.cc | nthend/hypertrace | 5072849f8a10465ba1260626fbef6b013d756f90 | [
"Apache-2.0",
"MIT"
] | 2 | 2020-04-30T04:46:07.000Z | 2021-02-02T21:11:39.000Z | #include "quaternion.hh"
quat q_conj(quat a) {
return q_new(a.x, -a.yzw);
}
real q_abs2(quat a) {
return dot(a, a);
}
real q_abs(quat a) {
return length(a);
}
quat q_mul(quat a, quat b) {
return q_new(
a.x*b.x - a.y*b.y - a.z*b.z - a.w*b.w,
a.x*b.y + a.y*b.x + a.z*b.w - a.w*b.z,
... | 24.227586 | 78 | 0.509821 | [
"vector"
] |
8baa1573732e7cc176cf774599f3e5c904780eea | 2,919 | cpp | C++ | src/main.cpp | junjieqian/BP-Neural-Network | b8bb899c6eb98e26d5bbd1d43d1fac83885f67ef | [
"MIT"
] | 3 | 2016-06-18T04:23:46.000Z | 2021-09-11T06:03:44.000Z | src/main.cpp | junjieqian/BP-Neural-Network | b8bb899c6eb98e26d5bbd1d43d1fac83885f67ef | [
"MIT"
] | null | null | null | src/main.cpp | junjieqian/BP-Neural-Network | b8bb899c6eb98e26d5bbd1d43d1fac83885f67ef | [
"MIT"
] | null | null | null | /* main.cpp
* This is taken as demo main function
* Junjie Qian, jqian.unl@gmail.com
*/
#include <fstream> // std::fstream
//#include <stdio.h>
#include <stdlib.h> // atoi
#include <iostream> // std::cout
#include <string> // std::string
#include <sstream>
#include "trainner.h"
#include "tester.h"
using namespace... | 36.037037 | 90 | 0.539911 | [
"model"
] |
8bba375f02db6d7157f7371d283b81a5e3fd0682 | 6,943 | cpp | C++ | dotnect_platform/src/data_container.cpp | vwas2/Dotnet_stack | 77edf5eb3dbea98c1a7c43868b435d862e8058d9 | [
"BSD-3-Clause"
] | null | null | null | dotnect_platform/src/data_container.cpp | vwas2/Dotnet_stack | 77edf5eb3dbea98c1a7c43868b435d862e8058d9 | [
"BSD-3-Clause"
] | null | null | null | dotnect_platform/src/data_container.cpp | vwas2/Dotnet_stack | 77edf5eb3dbea98c1a7c43868b435d862e8058d9 | [
"BSD-3-Clause"
] | null | null | null | // file: data_container.cpp, style: README.md
//
// License http://opensource.org/licenses/BSD-3-Clause
// Copyright (c) 2016 14U2g4ocMy5aB2cY4cmCtbXD6qyNQzujuA (serves donations as well)
// All rights reserved.
//
// The class object stores data for thread [i] safe access.
// Each thread has its own list of flags [j].... | 29.926724 | 124 | 0.567334 | [
"object",
"vector",
"3d"
] |
8bbc77c0de6926d9d12f044c4f5d07980c5b522c | 882 | cpp | C++ | lib/chiavdf/fast_vdf/python_bindings/chiavdf.cpp | davision/chia-blockchain | d5a66579c00cb926e0d266e5b8077ac16b220932 | [
"Apache-2.0"
] | null | null | null | lib/chiavdf/fast_vdf/python_bindings/chiavdf.cpp | davision/chia-blockchain | d5a66579c00cb926e0d266e5b8077ac16b220932 | [
"Apache-2.0"
] | null | null | null | lib/chiavdf/fast_vdf/python_bindings/chiavdf.cpp | davision/chia-blockchain | d5a66579c00cb926e0d266e5b8077ac16b220932 | [
"Apache-2.0"
] | null | null | null | #include <pybind11/pybind11.h>
#include "../verifier.h"
namespace py = pybind11;
PYBIND11_MODULE(chiavdf, m) {
m.doc() = "Chia proof of time";
m.def("verify", [] (int discriminant_size_bits, const py::bytes& challenge_hash, const string& a,
const string& b, uint64_t num_iterations, c... | 33.923077 | 102 | 0.602041 | [
"vector"
] |
8bd9098e6ef505c6ddd5fee06a02990bc4b03dcb | 5,339 | cpp | C++ | backends/analysis/dj_set_expl.cpp | dragosdmtrsc/bf4 | 2e15e50acc4314737d99093b3d900fa44d795958 | [
"Apache-2.0"
] | 10 | 2020-08-05T12:52:37.000Z | 2021-05-20T02:15:04.000Z | backends/analysis/dj_set_expl.cpp | shellqiqi/bf4 | 6c99c8f5b0dc61cf2cb7602c9f13ada7b651703f | [
"Apache-2.0"
] | 4 | 2020-09-28T12:17:50.000Z | 2021-11-23T12:23:38.000Z | backends/analysis/dj_set_expl.cpp | shellqiqi/bf4 | 6c99c8f5b0dc61cf2cb7602c9f13ada7b651703f | [
"Apache-2.0"
] | 2 | 2020-10-13T07:59:42.000Z | 2021-12-08T21:35:05.000Z |
#include "dj_set_expl.h"
namespace analysis {
std::vector<id_t> dj_set_expl::ancestors(const std::vector<id_t> &vs, id_t e) {
std::vector<id_t> ancs;
while (e > 0) {
ancs.push_back(e);
e = vs[e];
}
return ancs;
}
void dj_set_expl::explain(id_t xid, id_t yid,
std::vector<std:... | 28.398936 | 79 | 0.593931 | [
"vector"
] |
8bd98a7faa9a231d084ebb23ea30f08daae479d3 | 40,748 | hpp | C++ | src/core/grabber/include/device_grabber.hpp | cyrusccy/Karabiner-Elements | 90f83e487a0b6c671bc76f48c01e91fb28ae67c2 | [
"Unlicense"
] | null | null | null | src/core/grabber/include/device_grabber.hpp | cyrusccy/Karabiner-Elements | 90f83e487a0b6c671bc76f48c01e91fb28ae67c2 | [
"Unlicense"
] | null | null | null | src/core/grabber/include/device_grabber.hpp | cyrusccy/Karabiner-Elements | 90f83e487a0b6c671bc76f48c01e91fb28ae67c2 | [
"Unlicense"
] | null | null | null | #pragma once
#include "boost_defs.hpp"
#include "apple_hid_usage_tables.hpp"
#include "constants.hpp"
#include "device_detail.hpp"
#include "event_tap_utility.hpp"
#include "grabbable_state_queues_manager.hpp"
#include "hid_grabber.hpp"
#include "hid_manager.hpp"
#include "human_interface_device.hpp"
#include "iokit_... | 38.405278 | 168 | 0.646756 | [
"object",
"vector"
] |
8bdc5c0eeae312c47f981bfd10fd9dc145e1a5a8 | 4,312 | cpp | C++ | modules/task_3/bessolitsyn_s_gauss/bessolitsyn_s_gauss.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/bessolitsyn_s_gauss/bessolitsyn_s_gauss.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2021-02-13T03:00:05.000Z | 2021-02-13T03:00:05.000Z | modules/task_3/bessolitsyn_s_gauss/bessolitsyn_s_gauss.cpp | LioBuitrago/pp_2020_autumn_informatics | 1ecc1b5dae978295778176ff11ffe42bedbc602e | [
"BSD-3-Clause"
] | 1 | 2020-10-11T09:11:57.000Z | 2020-10-11T09:11:57.000Z | // Copyright 2020 Bessolitsyn Sergey
#include <mpi.h>
#include <string>
#include <random>
#include <ctime>
#include <algorithm>
#include <iostream>
#include <utility>
#include <vector>
#include <cstring>
#include "../../../modules/task_3/bessolitsyn_s_gauss/bessolitsyn_s_gauss.h"
const std::vector<std::vector<double>>... | 35.056911 | 102 | 0.489564 | [
"vector"
] |
8be4a76ba754e60238f057503dced887d76229d0 | 6,431 | cpp | C++ | Source/WebCore/Modules/applepay/PaymentRequestValidator.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | Source/WebCore/Modules/applepay/PaymentRequestValidator.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebCore/Modules/applepay/PaymentRequestValidator.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2015, 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | 38.975758 | 158 | 0.746229 | [
"vector"
] |
8bf40642e5b6505cdc315827963f4fd19a547d5c | 5,463 | cpp | C++ | glscene/Test/parseTest.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 2 | 2020-09-13T20:38:14.000Z | 2020-09-13T20:38:23.000Z | glscene/Test/parseTest.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 1 | 2021-01-10T13:39:51.000Z | 2021-01-12T10:50:56.000Z | glscene/Test/parseTest.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | null | null | null | #include <string>
#include <exception>
#include <stdexcept>
#include <memory>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <iterator>
#include <glload/gl_3_3.h>
#include <glload/gl_load.hpp>
#include <GL/glfw.h>
#include <glscene/glscene.h>
#include <glutil/gluti... | 25.890995 | 119 | 0.710232 | [
"render",
"object"
] |
8bfcc8754f2d4a0f09a7c2fc8114cc0b27b340bf | 3,506 | cpp | C++ | 2D_Engine_Exercise/ModuleRender.cpp | baransrc/UPC_Cpp_Exercises | 2e680c653a2754239d11ca7f8f694d53f536d43d | [
"MIT"
] | 1 | 2021-11-11T21:53:56.000Z | 2021-11-11T21:53:56.000Z | 2D_Engine_Exercise/ModuleRender.cpp | baransrc/UPC_Cpp_Exercises | 2e680c653a2754239d11ca7f8f694d53f536d43d | [
"MIT"
] | null | null | null | 2D_Engine_Exercise/ModuleRender.cpp | baransrc/UPC_Cpp_Exercises | 2e680c653a2754239d11ca7f8f694d53f536d43d | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "SDL/include/SDL.h"
#include "Utilfuncs.h"
ModuleRender::ModuleRender()
{
camera.x = 0;
camera.y = 0;
camera.w = SCREEN_WIDTH * SCREEN_SIZE;
camera.h = SCREEN_HEIGHT* SCREEN_SIZE;
c... | 21.120482 | 95 | 0.714489 | [
"render"
] |
8bfcf81c39e6d3077982ab357be3e79a3a49111c | 1,595 | cpp | C++ | src/internal/functions/FunctionsProvider.cpp | st235/xcalc-core | e02acde80537c168c287ef9a5f7d1ccd86a85bb0 | [
"MIT"
] | 1 | 2020-08-20T17:48:34.000Z | 2020-08-20T17:48:34.000Z | src/internal/functions/FunctionsProvider.cpp | st235/xcalc-core | e02acde80537c168c287ef9a5f7d1ccd86a85bb0 | [
"MIT"
] | null | null | null | src/internal/functions/FunctionsProvider.cpp | st235/xcalc-core | e02acde80537c168c287ef9a5f7d1ccd86a85bb0 | [
"MIT"
] | null | null | null | #include "FunctionsProvider.h"
#include <string>
#include <algorithm>
#include <cctype>
#include <cmath>
#include <stdexcept>
#include "../utils/Formatter.h"
#include "../utils/EvaluationError.h"
#include "../terms/Terms.h"
#include "../utils/AngleUnitsProvider.h"
namespace xcalc_internal {
double FunctionsProvider... | 27.033898 | 136 | 0.671473 | [
"transform"
] |
8bfd8cdf62d1e53c198cc9fa7e488dfd49f8d638 | 1,710 | cc | C++ | ns-3-dev/src/internet/model/ipv6-l4-protocol.cc | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | 11 | 2015-11-24T11:07:28.000Z | 2021-12-23T04:10:29.000Z | ns-3-dev/src/internet/model/ipv6-l4-protocol.cc | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | null | null | null | ns-3-dev/src/internet/model/ipv6-l4-protocol.cc | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | 6 | 2016-03-01T06:32:21.000Z | 2022-03-24T19:31:41.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2007-2009 Strasbourg University
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This p... | 31.666667 | 92 | 0.673684 | [
"object"
] |
bdf4d2514ebed5fb3160b12c47848c8eb2be875e | 5,097 | hpp | C++ | scenn/experimental/model/sequential_network.hpp | Catminusminus/scenn | 69f09449768deec811acea453f9e081c7c170a56 | [
"MIT"
] | 4 | 2019-08-18T10:54:22.000Z | 2021-05-08T17:44:52.000Z | scenn/experimental/model/sequential_network.hpp | Catminusminus/scenn | 69f09449768deec811acea453f9e081c7c170a56 | [
"MIT"
] | null | null | null | scenn/experimental/model/sequential_network.hpp | Catminusminus/scenn | 69f09449768deec811acea453f9e081c7c170a56 | [
"MIT"
] | null | null | null | #ifndef SCENN_EXPERIMENTAL_MODEL_SEQUENTIAL_NETWORK_HPP
#define SCENN_EXPERIMENTAL_MODEL_SEQUENTIAL_NETWORK_HPP
#include <scenn/util.hpp>
#include <sprout/tuple.hpp>
namespace scenn::experimental {
template <class LossFunction, class... Layers>
class SequentialNetwork {
LossFunction loss;
using T = sprout::tuple<... | 33.754967 | 78 | 0.653325 | [
"shape"
] |
bdfd5a7233ddc700a260bf50adfeb61d64372bcc | 633 | cpp | C++ | source/S3/AIZ/Dummy.cpp | theclashingfritz/sonic-3-remastered | 36210fa69d468b4d90cf26a67c6be0410b53c595 | [
"Apache-2.0",
"MIT"
] | 3 | 2018-07-26T02:12:08.000Z | 2022-02-27T20:57:05.000Z | source/S3/AIZ/Dummy.cpp | theclashingfritz/sonic-3-remastered | 36210fa69d468b4d90cf26a67c6be0410b53c595 | [
"Apache-2.0",
"MIT"
] | null | null | null | source/S3/AIZ/Dummy.cpp | theclashingfritz/sonic-3-remastered | 36210fa69d468b4d90cf26a67c6be0410b53c595 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "Dummy.h"
#include <LevelScene.h>
void IDummy::Create() {
Active = true;
Priority = false;
W = 32;
H = 32;
Sprite = App->Sprites["Ring"];
}
void IDummy::Update() {
}
void IDummy::Render(int CamX, int CamY) {
G->PaletteShift(0);
G->DrawSprite(Sprite, (int)X - CamX, (int)Y - CamY,... | 21.1 | 108 | 0.582938 | [
"render"
] |
bdfd9e692cf583c6377af3102c082583e08167f3 | 20,548 | hpp | C++ | src/abstraction.hpp | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | src/abstraction.hpp | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | src/abstraction.hpp | yinanl/rocs | bf2483903e39f4c0ea254a9ef56720a1259955ad | [
"BSD-3-Clause"
] | null | null | null | /**
* The definition of an abstraction class.
*
* Created by Yinan Li on Aug. 30, 2017.
*
* Hybrid Systems Group, University of Waterloo.
*/
#ifndef _abstraction_h_
#define _abstraction_h_
#include <armadillo>
#include <boost/dynamic_bitset.hpp>
#include <functional>
#include <set>
#include "transition.hpp"... | 32.982343 | 112 | 0.524236 | [
"object",
"vector"
] |
da140a2d0c513f1a940299bdf003e3632c40c36d | 2,262 | cpp | C++ | src/MathClass/FanucModel/RoboModelGeneral/RoboModelGeneral.cpp | ptrdiff/ComputeUnit | 72d1ef2939667636f4a6390b8f3706be7c841602 | [
"Apache-2.0"
] | 1 | 2021-02-18T18:14:12.000Z | 2021-02-18T18:14:12.000Z | src/MathClass/FanucModel/RoboModelGeneral/RoboModelGeneral.cpp | robot-lab/rcs-control-un | 72d1ef2939667636f4a6390b8f3706be7c841602 | [
"Apache-2.0"
] | 33 | 2018-09-05T18:38:19.000Z | 2018-10-01T13:41:46.000Z | src/MathClass/FanucModel/RoboModelGeneral/RoboModelGeneral.cpp | robot-lab/rcs-control-unit | 72d1ef2939667636f4a6390b8f3706be7c841602 | [
"Apache-2.0"
] | null | null | null | #include "RoboModelGeneral.h"
#include <opencv2/core.hpp>
struct nikita::RoboModel::DhParameters
{
double _dParam;
double _qParam;
double _aParam;
double _alphaParam;
DhParameters(const double d, const double q, const double a, const double alpha)
: _dParam(d),
_qParam(q),
... | 32.782609 | 100 | 0.641468 | [
"vector"
] |
da22b6652240291c3a78d8ee0539dabfb4be1816 | 14,007 | hpp | C++ | legacy/db/serializable.hpp | veluca93/cpp-db-lib | 6b8599a7cfca299fed5c72b21c5afbb1b75d1f0c | [
"MIT"
] | null | null | null | legacy/db/serializable.hpp | veluca93/cpp-db-lib | 6b8599a7cfca299fed5c72b21c5afbb1b75d1f0c | [
"MIT"
] | null | null | null | legacy/db/serializable.hpp | veluca93/cpp-db-lib | 6b8599a7cfca299fed5c72b21c5afbb1b75d1f0c | [
"MIT"
] | null | null | null | #pragma once
#include <kj/filesystem.h>
#include <tuple>
#include <utility>
#include "db/json.hpp"
#include "db/util.hpp"
#include "db/value.hpp"
// NOTE: do not declare containers of Values as members. Instead, use
// Collection.
#define DECLARE_MEMBER_N(tp, name_, json_name) \
templ... | 35.732143 | 80 | 0.492397 | [
"vector"
] |
da23897a397a5ddfd40e10269e6a3321d5f1fe09 | 4,815 | cpp | C++ | src/builtin/btrc/builtin/material/glass.cpp | AirGuanZ/Btrc | 8865eb1506f96fb0230fb394b9fadb1e38f2b9d8 | [
"MIT"
] | 17 | 2022-02-03T09:35:14.000Z | 2022-03-28T04:27:05.000Z | src/builtin/btrc/builtin/material/glass.cpp | AirGuanZ/Btrc | 8865eb1506f96fb0230fb394b9fadb1e38f2b9d8 | [
"MIT"
] | 1 | 2022-02-09T15:11:55.000Z | 2022-02-09T15:11:55.000Z | src/builtin/btrc/builtin/material/glass.cpp | AirGuanZ/Btrc | 8865eb1506f96fb0230fb394b9fadb1e38f2b9d8 | [
"MIT"
] | null | null | null | #include <btrc/builtin/material/glass.h>
#include <btrc/builtin/material/utils/fresnel.h>
#include <btrc/builtin/material/utils/shader_closure.h>
#include <btrc/builtin/material/utils/shader_frame.h>
BTRC_BUILTIN_BEGIN
namespace
{
boolean refr(ref<CVec3f> nwo, ref<CVec3f> nor, f32 eta, ref<CVec3f> output)
{
... | 29.722222 | 90 | 0.569678 | [
"geometry"
] |
da258149a54c6bfab8b6a27b49f40dad65ed0ccd | 13,624 | cpp | C++ | Core/src/Algorithms/cgls.cpp | vais-ral/CCPi-Reconstruction | 6c9f5eb9af308981b6d1c910dc1a38e8f6e83acd | [
"Apache-2.0"
] | 1 | 2018-11-09T11:58:32.000Z | 2018-11-09T11:58:32.000Z | Core/src/Algorithms/cgls.cpp | vais-ral/CCPi-Reconstruction | 6c9f5eb9af308981b6d1c910dc1a38e8f6e83acd | [
"Apache-2.0"
] | 8 | 2018-05-22T12:58:27.000Z | 2020-10-15T14:54:04.000Z | Core/src/Algorithms/cgls.cpp | vais-ral/CCPi-Reconstruction | 6c9f5eb9af308981b6d1c910dc1a38e8f6e83acd | [
"Apache-2.0"
] | 1 | 2019-01-11T12:04:53.000Z | 2019-01-11T12:04:53.000Z |
#include <iostream>
#include "base_types.hpp"
#include "instruments.hpp"
#include "algorithms.hpp"
#include "timer.hpp"
#include "ui_calls.hpp"
#include "blas.hpp"
#include "cgls.hpp"
#include "regularize.hpp"
#ifndef USE_TIMER
# define USE_TIMER false
#endif // USE_TIMER
void CCPi::reconstruction_alg::convergence_... | 32.132075 | 79 | 0.628083 | [
"shape",
"vector"
] |
da2cbf27cf5797329c18595bd212d59d434d6f91 | 1,109 | cpp | C++ | src/Game/Game.cpp | vilfa/gold-rush | a6d936c3a3df841d567a65500aa9bcb4c7407318 | [
"MIT"
] | null | null | null | src/Game/Game.cpp | vilfa/gold-rush | a6d936c3a3df841d567a65500aa9bcb4c7407318 | [
"MIT"
] | null | null | null | src/Game/Game.cpp | vilfa/gold-rush | a6d936c3a3df841d567a65500aa9bcb4c7407318 | [
"MIT"
] | null | null | null | #include "Game.h"
const glm::vec3 Game::_DEFAULT_CAMERA_POSITION_ = glm::vec3(0.0f, 0.0f, 0.0f);
const glm::vec3 Game::_DEFAULT_PLAYER_POSITION_ = glm::vec3(0.0f, 0.0f, 0.0f);
const glm::vec3 Game::_WORLD_CENTER_ = glm::vec3(0.0f, 0.0f, 0.0f);
Game::Game(Window &window)
: renderer_(window), camera_(Camera(... | 35.774194 | 95 | 0.722272 | [
"render"
] |
da2da30dde9c4e14924d769a24e22cf941242029 | 5,342 | cpp | C++ | src/ui/ColumnView.cpp | mmahmoudian/Gittyup | 96702f3b96160fff540886722f7f195163c4e41b | [
"MIT"
] | 127 | 2021-10-29T19:01:32.000Z | 2022-03-31T18:23:56.000Z | src/ui/ColumnView.cpp | mmahmoudian/Gittyup | 96702f3b96160fff540886722f7f195163c4e41b | [
"MIT"
] | 90 | 2021-11-05T13:03:58.000Z | 2022-03-30T16:42:49.000Z | src/ui/ColumnView.cpp | mmahmoudian/Gittyup | 96702f3b96160fff540886722f7f195163c4e41b | [
"MIT"
] | 20 | 2021-10-30T12:25:33.000Z | 2022-02-18T03:08:21.000Z | //
// Copyright (c) 2016, Scientific Toolworks, Inc.
//
// This software is licensed under the MIT License. The LICENSE.md file
// describes the conditions under which this software may be distributed.
//
// Author: Jason Haslam
//
#include "ColumnView.h"
#include "TreeModel.h"
#include "ViewDelegate.h"
#inc... | 29.843575 | 80 | 0.698802 | [
"geometry",
"model"
] |
da316655f5c62fc1b1d45d55da3556100cc36cbc | 4,889 | cpp | C++ | Scripts/AudioPlayer.cpp | RaskiTech/AI-Composer | c6afdf89cef039a3fa303b395a5e8470286e68f3 | [
"Apache-2.0"
] | null | null | null | Scripts/AudioPlayer.cpp | RaskiTech/AI-Composer | c6afdf89cef039a3fa303b395a5e8470286e68f3 | [
"Apache-2.0"
] | null | null | null | Scripts/AudioPlayer.cpp | RaskiTech/AI-Composer | c6afdf89cef039a3fa303b395a5e8470286e68f3 | [
"Apache-2.0"
] | null | null | null | #include <Eagle.h>
#include <glm/gtx/common.hpp>
#include "AudioPlayer.h"
constexpr double tau = 2.0 * glm::pi<double>();
constexpr double twoOverPI = 2.0 / glm::pi<double>();
constexpr double halfPI = glm::pi<double>() / 2;
NoiseMaker<short>* NotePlayer::emitter;
uint8_t NotePlayer::soundTypeIndex;
struct Note {
N... | 28.928994 | 145 | 0.718347 | [
"vector"
] |
da319f0ad04c8507997a8662641ab87cbbc2c795 | 5,208 | cpp | C++ | Source/model/session/session.cpp | TheEvilRoot/2CourseWork | 6fee1a5955b55f09f512d9988efdf5ae16917e3e | [
"MIT"
] | null | null | null | Source/model/session/session.cpp | TheEvilRoot/2CourseWork | 6fee1a5955b55f09f512d9988efdf5ae16917e3e | [
"MIT"
] | 1 | 2019-12-07T23:36:32.000Z | 2019-12-07T23:36:32.000Z | Source/model/session/session.cpp | TheEvilRoot/2CourseWork | 6fee1a5955b55f09f512d9988efdf5ae16917e3e | [
"MIT"
] | null | null | null | #include "session.hpp"
#include "model/data/choicetest.hpp"
#include <cmath>
#include <QDateTime>
#include <QDebug>
Session::Session(TestList tests, int maxAttempts):
mTests(tests),
mPosition(0),
mMaxAttempts(maxAttempts),
mMagicConstant(1377),
mState(new SessionState) {
applyResult();
}
Sess... | 28.151351 | 128 | 0.640361 | [
"model"
] |
da327a7e7132d0a1d0ed424f36e4f32df9fa4ed2 | 2,926 | cpp | C++ | OpenGL/Engine/Source/Private/Core/Mesh.cpp | Milswanca/OpenGL_FINAL | a16e0f6ce62e34b4b27866afba63463c6fce5ed0 | [
"MIT"
] | null | null | null | OpenGL/Engine/Source/Private/Core/Mesh.cpp | Milswanca/OpenGL_FINAL | a16e0f6ce62e34b4b27866afba63463c6fce5ed0 | [
"MIT"
] | null | null | null | OpenGL/Engine/Source/Private/Core/Mesh.cpp | Milswanca/OpenGL_FINAL | a16e0f6ce62e34b4b27866afba63463c6fce5ed0 | [
"MIT"
] | null | null | null | #include "PCH.h"
#include "Mesh.h"
#include "Engine.h"
Mesh::Mesh(const ObjectInitData& _data) : Object(_data)
{
verts = nullptr;
p = nullptr;
n = nullptr;
c = nullptr;
numVerts = 0;
shapes = std::vector<MeshShape>();
}
Mesh* Mesh::Create(Object* _outer, Vector3* _verts, Vector3* _normals, Vector4* _colours, i... | 22.859375 | 138 | 0.709159 | [
"mesh",
"object",
"shape",
"vector"
] |
da5533b9f871d990e593f80e2ceca545a25988bc | 9,075 | hpp | C++ | include/BeatmapSaveDataVersion2_6_0AndEarlier/BeatmapSaveData_ObstacleData.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/BeatmapSaveDataVersion2_6_0AndEarlier/BeatmapSaveData_ObstacleData.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/BeatmapSaveDataVersion2_6_0AndEarlier/BeatmapSaveData_ObstacleData.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: BeatmapSaveDataVersion2_6_0AndEarli... | 58.928571 | 300 | 0.784904 | [
"vector"
] |
da5bd2c51381326a852a6b2f9ffc2489c84aa1af | 3,454 | cpp | C++ | Week.7/Task.2.LeftRotate.cpp | v1nnyb0y/Coursera.AaDS | 9f536cd231b7676c2a6462c0d88f4be353a5a37f | [
"MIT"
] | null | null | null | Week.7/Task.2.LeftRotate.cpp | v1nnyb0y/Coursera.AaDS | 9f536cd231b7676c2a6462c0d88f4be353a5a37f | [
"MIT"
] | null | null | null | Week.7/Task.2.LeftRotate.cpp | v1nnyb0y/Coursera.AaDS | 9f536cd231b7676c2a6462c0d88f4be353a5a37f | [
"MIT"
] | null | null | null | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <queue>
#include <string>
#include <map>
#include <set>
#include <stdio.h>
#include <iomanip>
#include <deque>
#include <stack>
#include <cassert>
using namespace std;
vector<vector<long>> vLines;
#def... | 21.453416 | 99 | 0.6326 | [
"vector"
] |
da5cd75b465ae160829c665c3ca0187fcd0056bc | 1,847 | cpp | C++ | External_aob/StringManipulate.cpp | ShaddyAQN/External_aob_scanner_lib | c8a59be86e87668afa96128e9a96d46723fe5c8f | [
"MIT"
] | 3 | 2019-02-24T18:18:05.000Z | 2020-07-30T09:29:17.000Z | External_aob/StringManipulate.cpp | ShaddyDC/External_aob_scanner_lib | c8a59be86e87668afa96128e9a96d46723fe5c8f | [
"MIT"
] | null | null | null | External_aob/StringManipulate.cpp | ShaddyDC/External_aob_scanner_lib | c8a59be86e87668afa96128e9a96d46723fe5c8f | [
"MIT"
] | null | null | null | #include "StringManipulate.hpp"
#include <locale>
#include <codecvt>
bool StringManipulate::EndsWith(std::wstring const &str, std::wstring const &end)
{
auto len = static_cast<signed>(end.length());
auto pos = static_cast<signed>(str.length()) - len;
if(pos < 0)
return false;
auto pos_a = &str[pos];
auto pos_b ... | 25.30137 | 108 | 0.701137 | [
"vector"
] |
da670f302eabeb6a8ea89852a7b19028e1994487 | 20,872 | cc | C++ | Core/DianYing/Source/Element/FActor.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | 4 | 2019-03-17T19:46:54.000Z | 2019-12-09T20:11:01.000Z | Core/DianYing/Source/Element/FActor.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | Core/DianYing/Source/Element/FActor.cc | liliilli/DianYing | 6e19f67e5d932e346a0ce63a648bed1a04ef618e | [
"MIT"
] | null | null | null | #include <precompiled.h>
///
/// MIT License
/// Copyright (c) 2018-2019 Jongmin Yun
///
/// 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... | 34.328947 | 106 | 0.730931 | [
"object",
"vector",
"transform"
] |
da6732a25b89f6f3d663cf3ced1fb29dff433686 | 6,695 | cpp | C++ | main.cpp | Sandalmoth/mandelbrot | c6913108b2df2e671099c67d4389b6604c421a46 | [
"Zlib"
] | null | null | null | main.cpp | Sandalmoth/mandelbrot | c6913108b2df2e671099c67d4389b6604c421a46 | [
"Zlib"
] | null | null | null | main.cpp | Sandalmoth/mandelbrot | c6913108b2df2e671099c67d4389b6604c421a46 | [
"Zlib"
] | null | null | null | #include <iostream>
#include <map>
#include <memory>
#include <SDL2/SDL.h>
#include <string>
#include <tclap/CmdLine.h>
#include <tuple>
#include "man.h"
#include "man-thrd.h"
#include "man-sycl.h"
#include "man-opencl.h"
using namespace std;
const string VERSION = "0.2";
struct Parameters {
int window_width;
... | 31.580189 | 141 | 0.622704 | [
"vector"
] |
da6c44577ab0bd8dd4e93f9b07a351a2d8698f00 | 423 | hpp | C++ | source/tm/files_in_path.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/files_in_path.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/files_in_path.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 1 | 2021-01-28T13:10:41.000Z | 2021-01-28T13:10:41.000Z | // Copyright David Stone 2020.
// 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)
#pragma once
#include <containers/vector.hpp>
#include <filesystem>
namespace technicalmachine {
auto files_in_path(std::filesys... | 24.882353 | 100 | 0.756501 | [
"vector"
] |
da7a29728510e7db869ab7c39164a61a8ff6ef2d | 566 | cpp | C++ | client/transportableobject.cpp | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | 1 | 2015-08-23T11:03:58.000Z | 2015-08-23T11:03:58.000Z | client/transportableobject.cpp | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | null | null | null | client/transportableobject.cpp | vorushin/moodbox_aka_risovaska | 5943452e4c7fc9e3c828f62f565cd2da9a040e92 | [
"MIT"
] | 3 | 2016-12-05T02:43:52.000Z | 2021-06-30T21:35:46.000Z | #include "transportableobject.h"
namespace MoodBox
{
TransportableObject::~TransportableObject()
{
}
PropertyInfo TransportableObject::getPropertyInfo(Model *model, QString name)
{
return model->getPropertyInfo(getTypeId(), name);
}
void TransportableObject::writeProperties(PropertyWriter *writer)
{
... | 20.962963 | 111 | 0.761484 | [
"model"
] |
da903f3c5753538ae711fba9fd666e5a81feaa9e | 2,327 | hpp | C++ | Nana.Cpp03/include/nana/gui/widgets/checkbox.hpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | 1 | 2018-02-09T21:25:13.000Z | 2018-02-09T21:25:13.000Z | Nana.Cpp03/include/nana/gui/widgets/checkbox.hpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | null | null | null | Nana.Cpp03/include/nana/gui/widgets/checkbox.hpp | gfannes/nana | 3b8d33f9a98579684ea0440b6952deabe61bd978 | [
"BSL-1.0"
] | null | null | null | /*
* A CheckBox Implementation
* Copyright(C) 2003-2013 Jinhao(cnjinhao@hotmail.com)
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* @file: nana/gui/widgets/checkbox.hpp
*/
#ifndef NANA_GUI_WIDGET_... | 24.494737 | 76 | 0.727976 | [
"vector"
] |
da9d3898f4d322b78396486132b8622cbeaa968f | 5,894 | hh | C++ | inc/Dron.hh | filepix13/dron | 5f98c764cf876c8ba57dfce0862d2e8494498442 | [
"MIT"
] | null | null | null | inc/Dron.hh | filepix13/dron | 5f98c764cf876c8ba57dfce0862d2e8494498442 | [
"MIT"
] | null | null | null | inc/Dron.hh | filepix13/dron | 5f98c764cf876c8ba57dfce0862d2e8494498442 | [
"MIT"
] | null | null | null | #ifndef DRON_HH
#define DRON_HH
#include "InterfejsDrona.hh"
#include "InterfejsPrzeszkody.hh"
#include "Prostopadloscian.hh"
#include <unistd.h>
/*!
* \brief Klasa modeluje menu do sterowania dronem
*/
class Dron : public InterfejsDrona, public InterfejsPrzeszkody, public Prostopadloscian, public std::enable_shar... | 27.413953 | 158 | 0.483034 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.