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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ae27aed1d255428764770c876eaab21a5de61b1b | 4,227 | hpp | C++ | source/calculator.hpp | Chingyat/Calculator | ea37ec52fda839ba9f6dfcc4513e317a3bb2b2c9 | [
"BSD-3-Clause"
] | null | null | null | source/calculator.hpp | Chingyat/Calculator | ea37ec52fda839ba9f6dfcc4513e317a3bb2b2c9 | [
"BSD-3-Clause"
] | null | null | null | source/calculator.hpp | Chingyat/Calculator | ea37ec52fda839ba9f6dfcc4513e317a3bb2b2c9 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <cassert>
#include <cmath>
#include <functional>
#include <map>
#include <memory>
#include <sstream>
#include <vector>
namespace calc {
class CalculationError : public std::exception {
std::string Msg;
public:
CalculationError(std::string Msg) : Msg(std::move(Msg)) {}
const char *what() ... | 23.881356 | 80 | 0.653419 | [
"vector"
] |
ae2fcea01b38766cbb4124e768f741fab5a1af10 | 6,528 | hpp | C++ | engine/src/utility/time_event.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 20 | 2020-07-07T18:28:35.000Z | 2022-03-21T04:35:28.000Z | engine/src/utility/time_event.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 46 | 2021-01-20T10:13:09.000Z | 2022-03-29T12:27:19.000Z | engine/src/utility/time_event.hpp | Sidharth-S-S/cloe | 974ef649e7dc6ec4e6869e4cf690c5b021e5091e | [
"Apache-2.0"
] | 12 | 2021-01-25T08:01:24.000Z | 2021-07-27T10:09:53.000Z | /*
* Copyright 2020 Robert Bosch GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 31.68932 | 100 | 0.639246 | [
"vector"
] |
ae39ca78ed605243d23fcb15799ba82bc682c656 | 20,581 | cpp | C++ | inference_helper/inference_helper_armnn.cpp | Rexiome/InferenceHelper | 7c975cf9d32016aa6bfceabf6922fe6d808dc5eb | [
"Apache-2.0"
] | 119 | 2020-12-27T14:25:19.000Z | 2022-03-30T09:52:34.000Z | inference_helper/inference_helper_armnn.cpp | yang0000qi/InferenceHelper | c5763bba9bc71ab1d0d70df6240ed66635dc2159 | [
"Apache-2.0"
] | 21 | 2020-12-27T10:22:01.000Z | 2022-03-20T10:47:10.000Z | inference_helper/inference_helper_armnn.cpp | yang0000qi/InferenceHelper | c5763bba9bc71ab1d0d70df6240ed66635dc2159 | [
"Apache-2.0"
] | 19 | 2020-12-27T20:54:02.000Z | 2022-03-22T09:00:57.000Z | /* Copyright 2021 iwatake2222
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
dis... | 41.661943 | 185 | 0.643749 | [
"vector",
"model"
] |
ae3d9642148e0d2837c0bbdddfc1def52dffdd5e | 1,445 | hpp | C++ | src/core/fission_source.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 11 | 2016-03-31T17:46:15.000Z | 2022-02-14T01:07:56.000Z | src/core/fission_source.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2016-04-04T16:40:47.000Z | 2019-10-16T22:22:54.000Z | src/core/fission_source.hpp | tp-ntouran/mocc | 77d386cdf341b1a860599ff7c6e4017d46e0b102 | [
"Apache-2.0"
] | 3 | 2019-10-16T22:20:15.000Z | 2019-11-28T11:59:03.000Z | /*
Copyright 2016 Mitchell Young
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 23.688525 | 80 | 0.706574 | [
"vector"
] |
ae4468a61e7af6560f9983c9078d88b4c3f9458b | 20,800 | cpp | C++ | top_model/main.cpp | ksuryakrishna/Blind_and_Lighting_Controller | 008f1fb734a3c6a1e5598b42de687ca1c4583bc9 | [
"MIT"
] | null | null | null | top_model/main.cpp | ksuryakrishna/Blind_and_Lighting_Controller | 008f1fb734a3c6a1e5598b42de687ca1c4583bc9 | [
"MIT"
] | null | null | null | top_model/main.cpp | ksuryakrishna/Blind_and_Lighting_Controller | 008f1fb734a3c6a1e5598b42de687ca1c4583bc9 | [
"MIT"
] | 1 | 2020-05-31T10:51:41.000Z | 2020-05-31T10:51:41.000Z | /*
* By: Harish & Surya Krishna
* ARSLab - Carleton University
*/
#include <iostream>
#include <chrono>
#include <algorithm>
#include <string>
#include <cadmium.h>
#include <cadmium/io/iestream.hpp>
#include <NDTime.hpp>
#include <cadmium/real_time/arm_mbed//io/analogInput.hpp>
#include <cadmium/rea... | 47.597254 | 264 | 0.686779 | [
"model"
] |
ae4ca89b7a9257acb3f83c0cbce9caeb3e000738 | 969 | hpp | C++ | packages/teamplay/include/int/stores/obstacleStore.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/teamplay/include/int/stores/obstacleStore.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/teamplay/include/int/stores/obstacleStore.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | // Copyright 2018 Coen Tempelaars (Falcons)
// SPDX-License-Identifier: Apache-2.0
/*
* obstacleStore.hpp
*
* Created on: Jan 5, 2018
* Author: Coen Tempelaars
*/
#ifndef OBSTACLESTORE_HPP_
#define OBSTACLESTORE_HPP_
#include <vector>
#include "int/types/obstacle.hpp"
namespace teamplay
{
class obstacle... | 20.617021 | 90 | 0.703818 | [
"vector"
] |
ae4cd5a89b3882aafa14798e3b922fe107828688 | 15,381 | hpp | C++ | src/common/common-util.hpp | niketanpansare/geeps | bd53e0234735aa85c6f2fd98e82bd57650ab1ad3 | [
"BSD-3-Clause"
] | 105 | 2016-05-08T05:18:19.000Z | 2021-10-05T02:51:27.000Z | src/common/common-util.hpp | niketanpansare/geeps | bd53e0234735aa85c6f2fd98e82bd57650ab1ad3 | [
"BSD-3-Clause"
] | 6 | 2016-12-01T15:59:25.000Z | 2020-08-10T08:32:55.000Z | src/common/common-util.hpp | niketanpansare/geeps | bd53e0234735aa85c6f2fd98e82bd57650ab1ad3 | [
"BSD-3-Clause"
] | 44 | 2016-05-20T15:46:41.000Z | 2021-05-19T06:54:37.000Z | #ifndef __common_util_hpp__
#define __common_util_hpp__
/*
* Copyright (c) 2016, Carnegie Mellon University.
* 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 sourc... | 27.417112 | 79 | 0.61745 | [
"vector"
] |
ae529a0510d3842d2af001959032a11b54231520 | 5,735 | cpp | C++ | RobWork/src/rw/geometry/LineMesh.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/geometry/LineMesh.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/geometry/LineMesh.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 33.150289 | 99 | 0.510724 | [
"mesh",
"geometry"
] |
ae553c62b0e1da7c1dd800f9df5f7a8db0e1f484 | 3,413 | cpp | C++ | src/game/game-elements/digital-display.cpp | strdavis/tetris-clone | 299b2cc954b87edff5c2d54bfc222d488925f4bd | [
"MIT"
] | 1 | 2020-12-26T11:46:32.000Z | 2020-12-26T11:46:32.000Z | src/game/game-elements/digital-display.cpp | strdavis/tetris-clone | 299b2cc954b87edff5c2d54bfc222d488925f4bd | [
"MIT"
] | null | null | null | src/game/game-elements/digital-display.cpp | strdavis/tetris-clone | 299b2cc954b87edff5c2d54bfc222d488925f4bd | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Spencer Davis
*
* 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, me... | 24.912409 | 99 | 0.627307 | [
"vector"
] |
ae59d45c8d5f60adc1586cebee2f0636d047a963 | 10,406 | hxx | C++ | private/inet/mshtml/src/site/ole/scrptlet.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/inet/mshtml/src/site/ole/scrptlet.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/inet/mshtml/src/site/ole/scrptlet.hxx | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Trident
// Copyright (C) Microsoft Corporation, 1997 - 1998.
//
// File: scriptlet.hxx
//
// History: 19-Jan-1998 sramani Created
//
// Contents: CScriptlet definition
//
//-----------------... | 41.458167 | 154 | 0.660869 | [
"object"
] |
ae5a7e76358490b1cab60eaf9b34059611b8c31a | 2,510 | cpp | C++ | src/si_base/gpu/gfx_descriptor_heap_pool.cpp | acuvue1102/si_graphics | f285a5358fdb8f5b831fba0d7cae423ee79b36c5 | [
"MIT"
] | null | null | null | src/si_base/gpu/gfx_descriptor_heap_pool.cpp | acuvue1102/si_graphics | f285a5358fdb8f5b831fba0d7cae423ee79b36c5 | [
"MIT"
] | null | null | null | src/si_base/gpu/gfx_descriptor_heap_pool.cpp | acuvue1102/si_graphics | f285a5358fdb8f5b831fba0d7cae423ee79b36c5 | [
"MIT"
] | null | null | null |
#include "si_base/gpu/gfx_descriptor_heap_pool.h"
#include "si_base/gpu/gfx_device.h"
#include "si_base/core/core.h"
namespace SI
{
GfxDescriptorHeapPool::GfxDescriptorHeapPool()
: m_heapType(GfxDescriptorHeapType::Max)
, m_usingHeapIndex(0)
{
}
GfxDescriptorHeapPool::~GfxDescriptorHeapPool()
{
Termina... | 22.818182 | 94 | 0.731474 | [
"vector"
] |
ae6903b03fc86247cff3c649a9b30faa70c8037f | 337 | cpp | C++ | Dataset/Leetcode/train/11/206.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/11/206.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/11/206.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(vector<int>& height) {
int maxCon = INT_MIN;
int i = 0, j = height.size() - 1;
while (i <= j) {
maxCon = max(maxCon, (j - i) * min(height[i], height[j]));
if (height[i] < height[j]) i++;
else j--;
}
return m... | 22.466667 | 70 | 0.439169 | [
"vector"
] |
ae6b98520e42cd46e4ece501330d7a145404274a | 18,952 | cpp | C++ | Cpf/Plugins/Adapters/Graphics/D3D12/Source/D3D12/CommandBuffer.cpp | All8Up/cpf | 81c68fbb69619261a5aa058cda73e35812ed3543 | [
"MIT"
] | 6 | 2017-02-15T01:50:32.000Z | 2019-07-05T13:50:57.000Z | Cpf/Plugins/Adapters/Graphics/D3D12/Source/D3D12/CommandBuffer.cpp | All8Up/cpf | 81c68fbb69619261a5aa058cda73e35812ed3543 | [
"MIT"
] | 40 | 2017-04-06T13:29:02.000Z | 2018-04-20T23:39:21.000Z | Cpf/Plugins/Adapters/Graphics/D3D12/Source/D3D12/CommandBuffer.cpp | All8Up/cpf | 81c68fbb69619261a5aa058cda73e35812ed3543 | [
"MIT"
] | 3 | 2017-08-03T15:17:01.000Z | 2019-03-08T07:58:59.000Z | //////////////////////////////////////////////////////////////////////////
#include "Adapter/D3D12/CommandBuffer.hpp"
#include "Adapter/D3D12/CommandPool.hpp"
#include "Adapter/D3D12/Device.hpp"
#include "Adapter/D3D12/SwapChain.hpp"
#include "Adapter/D3D12/Image.hpp"
#include "Adapter/D3D12/ImageView.hpp"
#include "Ad... | 33.662522 | 196 | 0.734698 | [
"render",
"vector"
] |
ae8008c065171bbedeac513579ea8b54e6b745e2 | 1,101 | cpp | C++ | examples/PCA.cpp | aniketsharma00411/alpha | 4a1010150388022a6c799e9204621c281b1f92cb | [
"MIT"
] | 1 | 2021-04-04T12:12:54.000Z | 2021-04-04T12:12:54.000Z | examples/PCA.cpp | mlcpp/alpha | 4a1010150388022a6c799e9204621c281b1f92cb | [
"MIT"
] | 3 | 2020-09-17T05:14:58.000Z | 2020-09-20T11:12:29.000Z | examples/PCA.cpp | mlcpp/alpha | 4a1010150388022a6c799e9204621c281b1f92cb | [
"MIT"
] | 1 | 2020-09-16T10:30:11.000Z | 2020-09-16T10:30:11.000Z | // Include necessary header files
#include <Matrix.hpp>
#include <PCA.hpp>
#include <preprocessing.hpp>
// Example program
// Read csv files to get a Matrix object.
// Slice the Matrix object to remove the header.
// Fitting and transforming the dataset using the PCA model.
int main() {
// Load the dataset
Ma... | 25.022727 | 80 | 0.659401 | [
"object",
"model"
] |
ae81af67a979702c831766d19fc48ce14ef04c14 | 1,019 | hpp | C++ | include/ssGUI/Backend/SFML/SFMLInputConverter.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 15 | 2022-01-21T10:48:04.000Z | 2022-03-27T17:55:11.000Z | include/ssGUI/Backend/SFML/SFMLInputConverter.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | null | null | null | include/ssGUI/Backend/SFML/SFMLInputConverter.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 4 | 2022-01-21T10:48:05.000Z | 2022-01-22T15:42:34.000Z | #ifndef SSGUI_SFML_INPUT_CONVERTER
#define SSGUI_SFML_INPUT_CONVERTER
#include "SFML/Window.hpp"
#include "SFML/Window/Keyboard.hpp"
#include "ssGUI/HeaderGroups/KeyGroup.hpp"
#include "ssGUI/Enums/MouseButton.hpp"
#include <vector>
#include "ssGUI/DataClasses/KeyPresses.hpp"
//namespace: ssGUI::Backend
... | 30.878788 | 117 | 0.684004 | [
"vector"
] |
ae84513a2b30b5c2c9824bbfa0985bfbcdae1aaa | 9,320 | cpp | C++ | Source/Application/wx/part_canvas.cpp | neonkingfr/wildogcad | 6d9798daa672d3ab293579439f38bb279fa376c7 | [
"BSD-3-Clause"
] | null | null | null | Source/Application/wx/part_canvas.cpp | neonkingfr/wildogcad | 6d9798daa672d3ab293579439f38bb279fa376c7 | [
"BSD-3-Clause"
] | null | null | null | Source/Application/wx/part_canvas.cpp | neonkingfr/wildogcad | 6d9798daa672d3ab293579439f38bb279fa376c7 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2007, 2008, CerroKai Development
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redi... | 38.512397 | 111 | 0.664378 | [
"render"
] |
ae8d1d9dcd7d70c53d5dd527a031355d04946869 | 628 | cpp | C++ | jp.atcoder/abc089/abc089_c/11923986.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc089/abc089_c/11923986.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc089/abc089_c/11923986.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n; cin >> n;
vector<char> cand = {'M', 'A', 'R', 'C', 'H'};
unordered_map<char, int> c;
for (auto ch : cand) c[ch] = 0;
for (int i = 0; i < n; i++) {
string s; cin >> s;
(c.find(s[0... | 24.153846 | 64 | 0.423567 | [
"vector"
] |
ae96571a3dd7c2a65554b5aa6bbb2253dbcdd247 | 22,841 | cpp | C++ | llvm/unittests/Support/TargetParserTest.cpp | jovanbulck/SGX-Shield | 93be629a58062d922284ce497e6d74f92e585f25 | [
"MIT"
] | 44 | 2016-10-26T20:52:18.000Z | 2022-03-04T14:16:12.000Z | llvm/unittests/Support/TargetParserTest.cpp | sslab-gatech/SGX-Shield | 04b09dd6e5dc538fbc9533a2264ed4b8612b0f48 | [
"MIT"
] | 5 | 2017-01-18T11:06:09.000Z | 2021-11-23T15:14:08.000Z | llvm/unittests/Support/TargetParserTest.cpp | jaebaek/SGX-Shield | a2a00a81c266785904a4690318f1912c345d9139 | [
"MIT"
] | 23 | 2016-11-27T09:48:12.000Z | 2021-09-22T17:32:07.000Z | //===----------- TargetParser.cpp - Target Parser -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 41.604736 | 80 | 0.568758 | [
"vector"
] |
ae9ba1668aa5606fa8d1ed055fbaac87aee9e371 | 567 | cpp | C++ | CPSC 2 Extra/OOP/operatorWeirdness.cpp | pwoodru/Academics | d2d10d26a4802e2ba8eb5a03057ff91e1644e93c | [
"MIT"
] | null | null | null | CPSC 2 Extra/OOP/operatorWeirdness.cpp | pwoodru/Academics | d2d10d26a4802e2ba8eb5a03057ff91e1644e93c | [
"MIT"
] | null | null | null | CPSC 2 Extra/OOP/operatorWeirdness.cpp | pwoodru/Academics | d2d10d26a4802e2ba8eb5a03057ff91e1644e93c | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class Weird
{
private:
int value;
public:
Weird(int v)
{
value = v;
}
void operator=(const Weird& right)
{
cout << "This is the way I want my = to work." << endl;
cout << "When I use th... | 17.181818 | 79 | 0.479718 | [
"object"
] |
ae9dc909b72596d28307d7dc96d855e47e64f284 | 6,982 | cpp | C++ | CSGOSimple/helpers/math.cpp | StrafeTool/csgocheat | 94b3d8dd3b3041167c0b0872f9a605ccdfb6f207 | [
"MIT"
] | 1 | 2020-12-22T04:57:48.000Z | 2020-12-22T04:57:48.000Z | CSGOSimple/helpers/math.cpp | StrafeTool/csgocheat | 94b3d8dd3b3041167c0b0872f9a605ccdfb6f207 | [
"MIT"
] | null | null | null | CSGOSimple/helpers/math.cpp | StrafeTool/csgocheat | 94b3d8dd3b3041167c0b0872f9a605ccdfb6f207 | [
"MIT"
] | null | null | null | #include "Math.hpp"
namespace Math
{
//--------------------------------------------------------------------------------
float VectorDistance(const Vector& v1, const Vector& v2)
{
return FASTSQRT(pow(v1.x - v2.x, 2) + pow(v1.y - v2.y, 2) + pow(v1.z - v2.z, 2));
}
float DistancePointToLine(Vector Point, Vector... | 32.474419 | 137 | 0.44672 | [
"vector"
] |
aea4f75406870b57084e0222ed44e226996f5764 | 1,332 | cpp | C++ | UVA 10004 Bicoloring/main.cpp | toby0622/CPE-Practice-Code | f4c40195b22de0ad6e70ae2a47374ddd3850bc56 | [
"MIT"
] | null | null | null | UVA 10004 Bicoloring/main.cpp | toby0622/CPE-Practice-Code | f4c40195b22de0ad6e70ae2a47374ddd3850bc56 | [
"MIT"
] | null | null | null | UVA 10004 Bicoloring/main.cpp | toby0622/CPE-Practice-Code | f4c40195b22de0ad6e70ae2a47374ddd3850bc56 | [
"MIT"
] | null | null | null | // using DFS (depth-first search)
#include <iostream>
#include <vector>
#include <stack>
#define nbs(x, y) nbs[x * n + y]
using namespace std;
int main() {
int n;
while (cin >> n && n != 0) {
int *nbs = new int [n * n];
for (int i = 0; i < n * n; i++) {
nbs[i] = 0;
}
... | 17.76 | 47 | 0.314565 | [
"vector"
] |
000d16697951607f1b9b09bc9186f6a969281d22 | 10,008 | hpp | C++ | Singly Linked List/sequence.hpp | gch144/Data-Structures | 462cb009eebc7259409d44b9b5c62c9fd9051d48 | [
"MIT"
] | null | null | null | Singly Linked List/sequence.hpp | gch144/Data-Structures | 462cb009eebc7259409d44b9b5c62c9fd9051d48 | [
"MIT"
] | null | null | null | Singly Linked List/sequence.hpp | gch144/Data-Structures | 462cb009eebc7259409d44b9b5c62c9fd9051d48 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdexcept>
template <typename Key, typename Info>
struct Node
{
Key key;
Info info;
Node<Key, Info> *next;
Node(Key key, Info info, Node<Key, Info> *next = nullptr) //Node constructor
{
this->key = key;
this->info = info;
this->next = next;
... | 26.336842 | 206 | 0.4998 | [
"object"
] |
0026e1a33da51b9449a7a4f347c031b4ca3b6397 | 1,235 | cpp | C++ | collection/cp/bcw_codebook-master/Contest/XVIOpenCupBashkortostan/pC.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/Contest/XVIOpenCupBashkortostan/pC.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/Contest/XVIOpenCupBashkortostan/pC.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#ifdef O... | 16.466667 | 54 | 0.557085 | [
"vector"
] |
0029561f9e6060bf07aeb96a9ee30e255773e2aa | 1,400 | cpp | C++ | src/DisconnectMessage.cpp | jason-markham/pinchot-c-api | 6b28f2b021a249e02b0a9ac87abad4e289cfbd9e | [
"BSD-3-Clause"
] | null | null | null | src/DisconnectMessage.cpp | jason-markham/pinchot-c-api | 6b28f2b021a249e02b0a9ac87abad4e289cfbd9e | [
"BSD-3-Clause"
] | null | null | null | src/DisconnectMessage.cpp | jason-markham/pinchot-c-api | 6b28f2b021a249e02b0a9ac87abad4e289cfbd9e | [
"BSD-3-Clause"
] | 2 | 2020-11-24T00:56:02.000Z | 2021-12-07T04:12:53.000Z | /**
* Copyright (c) JoeScan Inc. All Rights Reserved.
*
* Licensed under the BSD 3 Clause License. See LICENSE.txt in the project
* root for license information.
*/
#include "DisconnectMessage.hpp"
#include "Enums.hpp"
#include "TcpSerializationHelpers.hpp"
using namespace joescan;
DisconnectMessage::Disconnect... | 26.923077 | 78 | 0.744286 | [
"vector"
] |
0030538481205b9ed2937a91f68a096cd2b9e767 | 2,793 | cpp | C++ | flare/src/actor_skin.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 14 | 2019-04-29T15:17:24.000Z | 2020-12-30T12:51:05.000Z | flare/src/actor_skin.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare/src/actor_skin.cpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 6 | 2019-04-29T15:17:25.000Z | 2021-11-16T03:20:59.000Z | #include "flare/actor_skin.hpp"
#include "flare/actor_artboard.hpp"
#include "flare/actor_skinnable.hpp"
#include "flare_math/mat2d.hpp"
using namespace flare;
ActorSkin::ActorSkin() :
ActorComponent(ComponentType::ActorSkin),
m_BoneMatrices(nullptr),
m_BoneMatricesLength(0),
m_SkinnableParent(nullptr... | 24.9375 | 85 | 0.71357 | [
"vector",
"transform"
] |
0031b6eb32d18a0f3209d521533b3809b86be647 | 14,279 | hpp | C++ | phylanx/execution_tree/primitives/primitive_argument_type.hpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | phylanx/execution_tree/primitives/primitive_argument_type.hpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | phylanx/execution_tree/primitives/primitive_argument_type.hpp | diehlpk/phylanx | 7eba54f0f22dc66d18addac0b24f006380d0f798 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017-2018 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(PHYLANX_PRIMITIVES_ARGUMENT_TYPE_JUL_23_2018_0149PM)
#define PHYLANX_PRIMITIVES_ARGUMENT_TYPE_JUL_23_2018_01... | 34.742092 | 87 | 0.601373 | [
"vector"
] |
0037b9a801f04a0492b896e1c8edbdb612cda09b | 4,788 | hpp | C++ | production_apps/ESPRESO/tools/dissection/src/Algebra/ColumnMatrix.hpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T13:10:11.000Z | 2021-03-15T20:26:35.000Z | production_apps/ESPRESO/tools/dissection/src/Algebra/ColumnMatrix.hpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | null | null | null | production_apps/ESPRESO/tools/dissection/src/Algebra/ColumnMatrix.hpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 1 | 2018-09-30T19:04:38.000Z | 2018-09-30T19:04:38.000Z | /*! \file ColumnMatrix.hpp
\brief Rectangular matrix view as a set of column vectors
\author Xavier Juvigny, ONERA
\date Jan. 19th 2005
\modification allocation of array by STL vector class
\author Atsushi Suzuki, Laboratoire Jacques-Louis Lions
\date Jun. 11th 2013
\date Jul. 12th ... | 30.303797 | 79 | 0.699039 | [
"vector"
] |
003aaa0a168fe082c2db38b35516014aabd0a785 | 4,198 | cc | C++ | common/byte_coding_test.cc | dchromejko/cuckoo-index | fb1f75275f9633c5169c2fc32ab3041acc9147e4 | [
"Apache-2.0"
] | 108 | 2020-04-14T08:37:15.000Z | 2022-03-13T13:17:11.000Z | common/byte_coding_test.cc | dchromejko/cuckoo-index | fb1f75275f9633c5169c2fc32ab3041acc9147e4 | [
"Apache-2.0"
] | 4 | 2020-04-15T03:03:30.000Z | 2021-11-04T16:52:59.000Z | common/byte_coding_test.cc | dchromejko/cuckoo-index | fb1f75275f9633c5169c2fc32ab3041acc9147e4 | [
"Apache-2.0"
] | 17 | 2020-04-15T02:57:14.000Z | 2021-10-22T00:38:10.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 30.201439 | 80 | 0.600048 | [
"vector"
] |
003d5a56a692c73c862d7bc571ba5bbbdae880ec | 2,737 | cpp | C++ | src/finalBoss.cpp | rafagan/The-Blind-s-Quest | 4d8f4f0d48f2f5585d3161ace825d54b89bf21fb | [
"Apache-2.0"
] | null | null | null | src/finalBoss.cpp | rafagan/The-Blind-s-Quest | 4d8f4f0d48f2f5585d3161ace825d54b89bf21fb | [
"Apache-2.0"
] | null | null | null | src/finalBoss.cpp | rafagan/The-Blind-s-Quest | 4d8f4f0d48f2f5585d3161ace825d54b89bf21fb | [
"Apache-2.0"
] | null | null | null | #include "finalBoss.h"
#include <conio.h>
using namespace std;
finalBoss::finalBoss()
{
char *tmp = "Nilats - Dragon Mode";
strcpy_s(nome,tmp);
force = 100;
resistance = 100;
speed = 100;
lifeTotal = 10000;
life = lifeTotal;
}
finalBoss::~finalBoss()
{
system("cls");
cout << "\n\n\n O castelo comec... | 21.217054 | 123 | 0.558275 | [
"render"
] |
003edd3658e30999fff38e5e79cf82c52af92f2d | 674 | cc | C++ | decode-dev.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | decode-dev.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | decode-dev.cc | lemrobotry/thesis | 14ad489e8f04cb957707b89c454ee7d81ec672ad | [
"MIT"
] | null | null | null | #include "Application.hh"
#include "ChartFactory.hh"
#include "PV.hh"
APPLICATION
// Reads a PV and calls Application::decodeDev to decode the dev set using that
// PV and output the results of the DEV_COMMAND.
class DecodeDev : public Permute::Application {
public:
DecodeDev () :
Permute::Application ("decode-... | 22.466667 | 79 | 0.627596 | [
"vector"
] |
0045e8eee7d51a82baf11379213e59d75ecbf823 | 7,543 | hpp | C++ | ThirdParty-mod/java2cpp/android/graphics/BlurMaskFilter.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/android/graphics/BlurMaskFilter.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/android/graphics/BlurMaskFilter.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: android.graphics.BlurMaskFilter
================================================================================*/
#ifndef J2CPP_INCLUDE_... | 36.616505 | 153 | 0.742145 | [
"object",
"solid"
] |
00483c9938e0854b353601145082eef62815b027 | 31,656 | hpp | C++ | include/microscopes/irm/model.hpp | gitter-badger/irm | 68050680aeadec66fb4ce8269678064c6cbb2bdd | [
"BSD-3-Clause"
] | 15 | 2015-04-21T07:07:51.000Z | 2021-01-31T01:12:12.000Z | include/microscopes/irm/model.hpp | gitter-badger/irm | 68050680aeadec66fb4ce8269678064c6cbb2bdd | [
"BSD-3-Clause"
] | 6 | 2015-04-11T21:03:18.000Z | 2019-08-12T16:58:11.000Z | include/microscopes/irm/model.hpp | datamicroscopes/irm | 68050680aeadec66fb4ce8269678064c6cbb2bdd | [
"BSD-3-Clause"
] | 6 | 2015-04-10T18:54:12.000Z | 2020-01-01T16:24:03.000Z | #pragma once
#include <microscopes/common/relation/dataview.hpp>
#include <microscopes/common/entity_state.hpp>
#include <microscopes/common/group_manager.hpp>
#include <microscopes/common/typedefs.hpp>
#include <microscopes/common/macros.hpp>
#include <microscopes/common/assert.hpp>
#include <microscopes/common/util.... | 31.783133 | 177 | 0.675133 | [
"shape",
"vector",
"model"
] |
005563c3b8f0c59cd5dfb5452988339ce5b352c1 | 1,756 | hpp | C++ | test/unit/module/real/special/signgam/regular/signgam.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | test/unit/module/real/special/signgam/regular/signgam.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | test/unit/module/real/special/signgam/regular/signgam.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 37.361702 | 100 | 0.583144 | [
"vector"
] |
005bf8638d6e3f63828e07fce5c5b319c7ae1b90 | 989 | cpp | C++ | Code/Editor/LevelIndependentFileMan.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-09-13T00:01:12.000Z | 2021-09-13T00:01:12.000Z | Code/Editor/LevelIndependentFileMan.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | null | null | null | Code/Editor/LevelIndependentFileMan.cpp | aaarsene/o3de | 37e3b0226958974defd14dd6d808e8557dcd7345 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-20T11:07:25.000Z | 2021-07-20T11:07:25.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include "EditorDefs.h"
#include "LevelIndependentFileMan.h"
CLevelIndependentFileMan::CLevelInde... | 23.547619 | 158 | 0.718908 | [
"vector",
"3d"
] |
005e1484ff7c8ce85bcd47ca302397a1c2d119ce | 4,742 | hh | C++ | src/orange/universes/detail/SurfaceFunctors.hh | whokion/celeritas | 9e1cf3ec6b7b5a15c5bc197959f105d6a02e6612 | [
"Apache-2.0",
"MIT"
] | 22 | 2020-03-31T14:18:22.000Z | 2022-01-10T09:43:06.000Z | src/orange/universes/detail/SurfaceFunctors.hh | whokion/celeritas | 9e1cf3ec6b7b5a15c5bc197959f105d6a02e6612 | [
"Apache-2.0",
"MIT"
] | 261 | 2020-04-29T15:14:29.000Z | 2022-03-31T19:07:14.000Z | src/orange/universes/detail/SurfaceFunctors.hh | whokion/celeritas | 9e1cf3ec6b7b5a15c5bc197959f105d6a02e6612 | [
"Apache-2.0",
"MIT"
] | 15 | 2020-05-01T19:47:19.000Z | 2021-12-25T06:12:09.000Z | //----------------------------------*-C++-*----------------------------------//
// Copyright 2021 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 28.914634 | 79 | 0.509068 | [
"vector"
] |
005f3252256e27cb4c212c11dec8b76d01bce731 | 10,442 | cpp | C++ | src/stress_tester.cpp | ericmuyser/nextgen-proxy-checker | 0f7e34fc0b098f6c8515b15d3325e74530f96e7c | [
"MIT"
] | 1 | 2019-11-24T03:39:47.000Z | 2019-11-24T03:39:47.000Z | src/stress_tester.cpp | ericmuyser/nextgen-proxy-checker | 0f7e34fc0b098f6c8515b15d3325e74530f96e7c | [
"MIT"
] | null | null | null | src/stress_tester.cpp | ericmuyser/nextgen-proxy-checker | 0f7e34fc0b098f6c8515b15d3325e74530f96e7c | [
"MIT"
] | null | null | null | #define FD_SETSIZE 32768
#include "proxy_checker.h"
class application : public nextgen::singleton<application>
{
public: void run(int, char**);
public: void refill()
{
auto self = *this;
std::string q1("SELECT * FROM agents WHERE agent_type_id = 1");
auto agent_list = *self->proxy_database.get_... | 36.897527 | 273 | 0.457767 | [
"object",
"vector"
] |
0061ee84361d690401ea91c5e2ba9e3e308ca2af | 24,234 | cpp | C++ | Coursework/Terrain.cpp | gamereat/DX11_Procedural_Terrain | bf5d80d45d4baa1244310c3a7b5cd46db075e9fa | [
"MIT"
] | 5 | 2019-05-06T19:27:20.000Z | 2021-02-13T12:30:51.000Z | Coursework/Terrain.cpp | gamereat/procedural-methods | bf5d80d45d4baa1244310c3a7b5cd46db075e9fa | [
"MIT"
] | null | null | null | Coursework/Terrain.cpp | gamereat/procedural-methods | bf5d80d45d4baa1244310c3a7b5cd46db075e9fa | [
"MIT"
] | 1 | 2021-04-12T05:28:42.000Z | 2021-04-12T05:28:42.000Z | #include "Terrain.h"
#include <random>
#include "../imgui/imgui.h"
#include "Sound.h"
#include "SimplexNoise.h"
#include "FractionalBrownianMotion.h"
#include "DiamondSquare.h"
/* See the file "LICENSE" for the full license governing this code. */
Terrain::Terrain(std::string name, ID3D11Device* device, ID3D11DeviceCo... | 23.923001 | 221 | 0.65437 | [
"mesh",
"geometry",
"vector"
] |
00628a91788a947d7f7e6bc26eeb57f3ddda3e95 | 74 | cpp | C++ | raco/backends/radish/grappa_templates/symmetric_array_temprelation_recycle.cpp | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 61 | 2015-02-09T17:27:40.000Z | 2022-03-28T14:37:53.000Z | raco/backends/radish/grappa_templates/symmetric_array_temprelation_recycle.cpp | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 201 | 2015-01-03T02:46:19.000Z | 2017-09-19T02:16:36.000Z | raco/backends/radish/grappa_templates/symmetric_array_temprelation_recycle.cpp | uwescience/raco | 1f2bedbef71bacf715340289f4973d85a3c1dc97 | [
"BSD-3-Clause"
] | 17 | 2015-06-03T12:01:30.000Z | 2021-11-27T15:49:21.000Z | // recycle result vector
{{sym}}.register_producers({{num_producers}});
| 14.8 | 46 | 0.716216 | [
"vector"
] |
0065225ebc2e78639c9fe462d26809723613a202 | 1,774 | cpp | C++ | Laburi/Lab10/cpp/task-2/main.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | 7 | 2019-02-12T15:14:12.000Z | 2020-05-05T13:48:52.000Z | Laburi/Lab10/cpp/task-2/main.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | null | null | null | Laburi/Lab10/cpp/task-2/main.cpp | teodutu/PA | 9abaf9f0ebbce8beac274edd672473a17575fe03 | [
"MIT"
] | 7 | 2020-03-22T09:46:19.000Z | 2021-03-11T20:53:19.000Z | #include <fstream>
#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>
#include <set>
#include <tuple>
#include <queue>
using namespace std;
// in caz de lab copiat, verificati sursa:
// https://github.com/teodutu/PA/tree/master/Laburi/Lab10/cpp/task-2/main.cpp
const int kNmax = 2e5 + 10;
... | 20.390805 | 87 | 0.527057 | [
"vector"
] |
006bf60f5b817532eab71b1d190c5510f819cb80 | 34,791 | cpp | C++ | src/sageDisplayManager.cpp | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | src/sageDisplayManager.cpp | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | src/sageDisplayManager.cpp | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | 1 | 2021-07-02T10:31:03.000Z | 2021-07-02T10:31:03.000Z | /******************************************************************************
* SAGE - Scalable Adaptive Graphics Environment
*
* Module: sageDisplayManager.cpp
* Author : Byungil Jeong, Rajvikram Singh
*
* Copyright (C) 2004 Electronic Visualization Laboratory,
* University of Illinois at Chicago
*
* All ri... | 27.989541 | 156 | 0.634906 | [
"object",
"vector"
] |
0078d8e355df3c90fe0e899937b38ccde2a76275 | 5,264 | cxx | C++ | examples/sparse_permuted_slice.cxx | LinjianMa/ctf | 06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e | [
"BSD-2-Clause"
] | 108 | 2018-01-01T21:29:15.000Z | 2022-02-24T17:51:15.000Z | examples/sparse_permuted_slice.cxx | LinjianMa/ctf | 06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e | [
"BSD-2-Clause"
] | 91 | 2017-12-27T04:28:09.000Z | 2022-03-10T09:14:43.000Z | examples/sparse_permuted_slice.cxx | LinjianMa/ctf | 06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e | [
"BSD-2-Clause"
] | 45 | 2017-12-26T21:15:21.000Z | 2022-02-10T11:16:40.000Z | /*Copyright (c) 2011, Edgar Solomonik, all rights reserved.*/
/** \addtogroup examples
* @{
* \defgroup sparse_permuted_slice sparse_permuted_slice
* @{
* \brief Randomly permuted block write of symmetric matrices from matrix on COMM_SELF to symmetric matrix on COMM_WORLD
*/
#include <ctf.hpp>
using names... | 24.947867 | 121 | 0.603343 | [
"3d"
] |
007a65882348f7f3bc9f3b29659c2e4c6be6c254 | 13,100 | cpp | C++ | tests/src/equilibrium_resistor.cpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 3 | 2020-05-07T14:38:52.000Z | 2021-05-30T09:43:18.000Z | tests/src/equilibrium_resistor.cpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 1 | 2021-05-02T13:50:52.000Z | 2021-05-03T03:49:51.000Z | tests/src/equilibrium_resistor.cpp | FelipeSenra/viennashe-dev | 1b42f01b0826322c0b49a6fcf08fc0db5946e21f | [
"MIT"
] | 3 | 2020-05-07T14:39:07.000Z | 2021-05-08T12:15:26.000Z | /* ============================================================================
Copyright (c) 2011-2014, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
ViennaSHE - Th... | 40.061162 | 191 | 0.650076 | [
"mesh",
"vector"
] |
0081de789cc07e99f8c8edbb5d15c0e6f1b18116 | 4,277 | cpp | C++ | tests/common/LoggingTest.cpp | talonvoice/flashlight | 4dd3d039056c7fdd72fbd0028d904c80d0e245ee | [
"BSD-3-Clause"
] | null | null | null | tests/common/LoggingTest.cpp | talonvoice/flashlight | 4dd3d039056c7fdd72fbd0028d904c80d0e245ee | [
"BSD-3-Clause"
] | null | null | null | tests/common/LoggingTest.cpp | talonvoice/flashlight | 4dd3d039056c7fdd72fbd0028d904c80d0e245ee | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <sstream>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "flashlight/common/L... | 28.138158 | 79 | 0.661445 | [
"vector"
] |
0083cc0186425067eac65f9d0b4043310760511b | 2,166 | cpp | C++ | ch09-02-boxes/src/main.cpp | pulpobot/C-SFML-html5-animation | 14154008b853d1235e8ca35a5b23b6a70366f914 | [
"MIT"
] | 73 | 2017-12-14T00:33:23.000Z | 2022-02-09T12:04:52.000Z | ch09-02-boxes/src/main.cpp | threaderic/C-SFML-html5-animation | 22f302cdf7c7c00247609da30e1bcf472d134583 | [
"MIT"
] | null | null | null | ch09-02-boxes/src/main.cpp | threaderic/C-SFML-html5-animation | 22f302cdf7c7c00247609da30e1bcf472d134583 | [
"MIT"
] | 5 | 2017-12-26T03:30:07.000Z | 2020-07-05T04:58:24.000Z | #include <iostream>
#include <random>
#include "SFML\Graphics.hpp"
#include "Utils.h"
#include "Box.h"
const float GRAVITY = 0.3f;
std::vector<Box> boxes;
Box *CreateBox(sf::RenderWindow &window) {
//it gets unstable after 256 boxes
if (boxes.size() >= 256) return nullptr;
std::mt19937 mt(time(NULL));
... | 30.083333 | 103 | 0.556787 | [
"shape",
"vector"
] |
0a5a27a122838b6b9e60fdf2f36e4ab7a7c010f5 | 3,642 | hpp | C++ | ThirdParty-mod/java2cpp/java/security/interfaces/ECPublicKey.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/security/interfaces/ECPublicKey.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/security/interfaces/ECPublicKey.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.security.interfaces.ECPublicKey
================================================================================*/
#ifndef J2CPP_INC... | 31.396552 | 114 | 0.71966 | [
"object"
] |
0a619251bdcba550108c6058bb06340a3827ef22 | 9,019 | cpp | C++ | bazaar/Scatter/Pie.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | bazaar/Scatter/Pie.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | bazaar/Scatter/Pie.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "Pie.h"
static void DrawPie(Draw& w, Point centre, int r, int start, int alpha, int width, class::Color fill, class::Color outline,uint64 pattern,class::Color background )
{
const int dalpha=1;
int n= alpha/dalpha;
Vector <Point> vP;
vP<<centre;
int ix;
int iy;
for (int i=0; i<=n; i++)
{
... | 24.642077 | 203 | 0.646635 | [
"vector"
] |
0a6c4adf3b4aa0da897e8fbbeecafa98e202fb03 | 3,479 | hxx | C++ | main/cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/cppcanvas/source/mtfrenderer/cachedprimitivebase.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 37.815217 | 114 | 0.590112 | [
"render"
] |
0a6d807072f244751408a1c822781e558d68053c | 6,440 | cpp | C++ | gphoto/gphotocameracontroller.cpp | rlamarche/photomaton-mobile | 0d22ce7895cbc366eec81fe43b3c9aea5665a096 | [
"MIT"
] | 1 | 2017-04-18T18:43:41.000Z | 2017-04-18T18:43:41.000Z | gphoto/gphotocameracontroller.cpp | rlamarche/photomaton-mobile | 0d22ce7895cbc366eec81fe43b3c9aea5665a096 | [
"MIT"
] | null | null | null | gphoto/gphotocameracontroller.cpp | rlamarche/photomaton-mobile | 0d22ce7895cbc366eec81fe43b3c9aea5665a096 | [
"MIT"
] | null | null | null | /*
* This file is part of the Photomaton-mobile package.
*
* (c) Romain Lamarche
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#include "gphotocameracontroller.h"
#include "gphoto/commands/gphotolistcamerascommand.h"
#include "... | 26.945607 | 107 | 0.697516 | [
"object",
"model"
] |
0a749c57a3e7f621c939c9d00bb594ad145c904a | 1,574 | cpp | C++ | cpp/Dynamic Programming/132. Palindrome Partitioning II.cpp | baicaihenxiao/LeetCode-Myself | f88fa5b5e76a913d6d9395d75571c8d7c46d37f5 | [
"MIT"
] | null | null | null | cpp/Dynamic Programming/132. Palindrome Partitioning II.cpp | baicaihenxiao/LeetCode-Myself | f88fa5b5e76a913d6d9395d75571c8d7c46d37f5 | [
"MIT"
] | 6 | 2021-03-31T02:43:24.000Z | 2022-01-04T16:40:26.000Z | cpp/Dynamic Programming/132. Palindrome Partitioning II.cpp | baicaihenxiao/LeetCode-Myself | f88fa5b5e76a913d6d9395d75571c8d7c46d37f5 | [
"MIT"
] | null | null | null | /*
2017-5-26 00:01:40
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "aab",
Return 1 since the palindrome partitioning ["aa","b"] could be produced using 1 cut.
dp算法先算出来dp[i][j]表示s[i ... | 20.986667 | 107 | 0.416137 | [
"vector"
] |
0a7a380ef063af4fa4a6fce656af3d6c118e22e2 | 920 | hpp | C++ | src/test28.hpp | hdhyy/thrust_offer | 84effbd0f033a796375ebf727bafc7b3964ed2a9 | [
"MIT"
] | null | null | null | src/test28.hpp | hdhyy/thrust_offer | 84effbd0f033a796375ebf727bafc7b3964ed2a9 | [
"MIT"
] | null | null | null | src/test28.hpp | hdhyy/thrust_offer | 84effbd0f033a796375ebf727bafc7b3964ed2a9 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
/**
* 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。
* 例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字2在数组中出现了5次,超过数组长度的一半,因此输出2。如果不存在则输出0。
**/
class Solution {
public:
int MoreThanHalfNum_Solution(vector<int> numbers) {
auto n_size = numbers.size();
if (n_size == 0)
... | 21.904762 | 77 | 0.395652 | [
"vector"
] |
0a7b2e53d612aebfa7dec07251379664ca57b204 | 1,844 | cpp | C++ | dynamic_programming/leet_Code_Dynamic_Programming/338_counting_bits.cpp | hadleyhzy34/data_structure_and_algorithm | aaf5a36bf03bde02b19fe00251398c8fb77d948e | [
"MIT"
] | 1 | 2020-10-12T19:18:01.000Z | 2020-10-12T19:18:01.000Z | dynamic_programming/leet_Code_Dynamic_Programming/338_counting_bits.cpp | hadleyhzy34/data_structure_and_algorithm | aaf5a36bf03bde02b19fe00251398c8fb77d948e | [
"MIT"
] | null | null | null | dynamic_programming/leet_Code_Dynamic_Programming/338_counting_bits.cpp | hadleyhzy34/data_structure_and_algorithm | aaf5a36bf03bde02b19fe00251398c8fb77d948e | [
"MIT"
] | 1 | 2020-10-12T19:18:04.000Z | 2020-10-12T19:18:04.000Z | //
// 338_counting_bits.cpp
// leet_Code_Dynamic_Programming
//
// Created by Hadley on 20.07.20.
// Copyright © 2020 Hadley. All rights reserved.
//
#include <stdio.h>
#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <unordered_map>
#include <stack>
#include <cstring>
#include... | 21.195402 | 65 | 0.496204 | [
"vector"
] |
0a7b822aeda9a6156955d257f71048b667679f5e | 7,044 | cpp | C++ | data/test/cpp/0a7b822aeda9a6156955d257f71048b667679f5eLoadScene.cpp | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/test/cpp/0a7b822aeda9a6156955d257f71048b667679f5eLoadScene.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/test/cpp/0a7b822aeda9a6156955d257f71048b667679f5eLoadScene.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | //
// LoadScene.cpp
// LengendOfFightDemons
//
// Created by RockLee on 14-4-15.
//
//
#include "LoadScene.h"
#include "LOFDConfigManager.h"
NS_LOFD_BEGIN
LoadContext * LoadContext::create(std::string typeValue, std::string pathValue)
{
LoadContext * loadContext = new LoadContext(typeValue, pathValue);
if... | 29.107438 | 146 | 0.692504 | [
"vector",
"transform"
] |
0a7be0adb436a8b40367440eca9d4013a2294b1d | 23,052 | cpp | C++ | source/vgraphics/directx/vix_dxrenderer.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null | source/vgraphics/directx/vix_dxrenderer.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | 3 | 2015-10-28T01:29:03.000Z | 2015-11-10T15:20:02.000Z | source/vgraphics/directx/vix_dxrenderer.cpp | ritgraphics/VixenEngine | 294a6c69b015ec8bce7920f604176e4f92ffba23 | [
"MIT"
] | null | null | null | /*
The MIT License(MIT)
Copyright(c) 2015 Vixen Team, Matt Guerrette
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... | 33.073171 | 134 | 0.743189 | [
"render",
"vector",
"model",
"transform"
] |
0a7c0150d95fd3295c8ee885e105f4d491792044 | 3,006 | hpp | C++ | include/GameEngine/ECS/ComponentData.hpp | DragonJoker/CastorTD | b055df76aff9f42945a0a5e7ed4ddbf03be84381 | [
"MIT"
] | null | null | null | include/GameEngine/ECS/ComponentData.hpp | DragonJoker/CastorTD | b055df76aff9f42945a0a5e7ed4ddbf03be84381 | [
"MIT"
] | null | null | null | include/GameEngine/ECS/ComponentData.hpp | DragonJoker/CastorTD | b055df76aff9f42945a0a5e7ed4ddbf03be84381 | [
"MIT"
] | null | null | null | /**
See licence file in root folder, MIT.txt
*/
#pragma once
#ifndef ___EFO_ComponentData_HPP___
#define ___EFO_ComponentData_HPP___
#include "Component.hpp"
#include <memory>
namespace orastus
{
/**
*\brief
* Base class for component data.
*/
class BaseComponentData
{
public:
virtual ~BaseComponentData() =... | 19.025316 | 82 | 0.645376 | [
"vector"
] |
0a7caa161d5c0988c47d3ffe5b8913fc25796391 | 54,479 | cpp | C++ | src/Pegasus/Repository/CIMRepositoryMRR.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 1 | 2021-11-12T21:28:50.000Z | 2021-11-12T21:28:50.000Z | src/Pegasus/Repository/CIMRepositoryMRR.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 39 | 2021-01-18T19:28:41.000Z | 2022-03-27T20:55:36.000Z | src/Pegasus/Repository/CIMRepositoryMRR.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 4 | 2021-07-09T12:52:33.000Z | 2021-12-21T15:05:59.000Z | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 25.433707 | 80 | 0.617577 | [
"object"
] |
0a8c97fdcc5652a2052862262a6f2acf2169513b | 4,348 | cpp | C++ | test/flow/driver/batch.cpp | fetchrobotics/flow | 322ee9190603fbff4df3432df8ad3c38c37b30d2 | [
"MIT"
] | 27 | 2020-07-27T20:43:14.000Z | 2022-03-31T23:33:51.000Z | test/flow/driver/batch.cpp | fetchrobotics/flow | 322ee9190603fbff4df3432df8ad3c38c37b30d2 | [
"MIT"
] | 2 | 2021-03-28T19:48:32.000Z | 2021-03-28T20:02:29.000Z | test/flow/driver/batch.cpp | fetchrobotics/flow | 322ee9190603fbff4df3432df8ad3c38c37b30d2 | [
"MIT"
] | 3 | 2020-08-05T19:38:38.000Z | 2021-05-04T11:59:42.000Z | /**
* @copyright 2020 Fetch Robotics Inc.
* @author Brian Cairl
*/
#ifndef DOXYGEN_SKIP
// C++ Standard Library
#include <cstdint>
#include <iterator>
#include <vector>
// GTest
#include <gtest/gtest.h>
// Flow
#include <flow/captor/nolock.hpp>
#include <flow/driver/batch.hpp>
using namespace flow;
using namespa... | 20.704762 | 77 | 0.667663 | [
"vector"
] |
0a8d222eb97c9d9e3d4bc08e6c4fcca7eaa8a22c | 4,715 | cpp | C++ | oneEngine/oneGame/source/m04-editor/renderer/object/UILightHandleRenderer.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 8 | 2017-12-08T02:59:31.000Z | 2022-02-02T04:30:03.000Z | oneEngine/oneGame/source/m04-editor/renderer/object/UILightHandleRenderer.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 2 | 2021-04-16T03:44:42.000Z | 2021-08-30T06:48:44.000Z | oneEngine/oneGame/source/m04-editor/renderer/object/UILightHandleRenderer.cpp | jonting/1Engine | f22ba31f08fa96fe6405ebecec4f374138283803 | [
"BSD-3-Clause"
] | 1 | 2021-04-16T02:09:54.000Z | 2021-04-16T02:09:54.000Z | #include "core/math/Math.h"
#include "core-ext/utils/MeshBuilder.h"
#include "renderer/material/RrShaderProgram.h"
#include "renderer/texture/RrTexture.h"
#include "m04-editor/entities/UILightHandle.h"
#include "UILightHandleRenderer.h"
using namespace M04;
UILightHandleRenderer::UILightHandleRenderer ( UILightHandle... | 44.481132 | 172 | 0.725981 | [
"mesh"
] |
0a949da72050a37cab530c093d24147914b89a60 | 617 | cpp | C++ | source/ComponentManager.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | 1 | 2017-12-15T01:14:06.000Z | 2017-12-15T01:14:06.000Z | source/ComponentManager.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | null | null | null | source/ComponentManager.cpp | GoldenBunny/Millibox | 34fcd59bd1e5c1a97c1058032aefba0b11d8e48a | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ComponentManager.h"
ComponentManager* ComponentManager::componentManager_ = nullptr;
ComponentManager::ComponentManager()
{
}
ComponentManager::~ComponentManager()
{
}
ComponentManager& ComponentManager::get() {
if (!componentManager_)
componentManager_ = new ComponentManager();
re... | 19.28125 | 76 | 0.745543 | [
"render"
] |
0a9b7d7f6feaae98af0386f15457ff8f0accba6a | 49,729 | cc | C++ | storage.cc | google-research/structured-additive-IR | 3cef26c3c860c8e62e723a4539b7c490748c291d | [
"Apache-2.0"
] | 31 | 2020-08-28T05:50:17.000Z | 2022-03-13T10:15:43.000Z | storage.cc | google-research/structured-additive-IR | 3cef26c3c860c8e62e723a4539b7c490748c291d | [
"Apache-2.0"
] | 1 | 2020-09-03T23:31:51.000Z | 2020-09-10T18:03:15.000Z | storage.cc | google-research/structured-additive-IR | 3cef26c3c860c8e62e723a4539b7c490748c291d | [
"Apache-2.0"
] | 4 | 2020-10-29T13:08:02.000Z | 2022-01-29T11:15:04.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 42.036348 | 80 | 0.682479 | [
"shape"
] |
0a9e5941415e0e0cdf990fa478377179cff18bf1 | 1,743 | cpp | C++ | source/src/motion/ikwalk/Polynom.cpp | Dr-MunirShah/black-sheep | e908203d9516e01f90f4ed4c796cf4143d0df0c0 | [
"MIT"
] | 24 | 2016-02-08T07:51:56.000Z | 2021-12-25T17:15:18.000Z | Polynom.cpp | kingsjl/IKWalk | f366bd960e79f98a2d06428876894ea9e61ee070 | [
"MIT"
] | null | null | null | Polynom.cpp | kingsjl/IKWalk | f366bd960e79f98a2d06428876894ea9e61ee070 | [
"MIT"
] | 11 | 2018-06-23T06:56:32.000Z | 2021-11-30T02:45:17.000Z | #include "Polynom.hpp"
namespace Leph {
Polynom::Polynom() :
_coefs()
{
}
Polynom::Polynom(unsigned int degree) :
_coefs()
{
for (size_t i=0;i<degree+1;i++) {
_coefs.push_back(0.0);
}
}
const std::vector<double>& Polynom::getCoefs() const
{
return _coefs;
}
std::vector<double>& Po... | 17.43 | 60 | 0.534137 | [
"vector"
] |
0aa0aa22dbaa0e86b940cb112a40ed285e828eb2 | 32,679 | hpp | C++ | typeClassDefs/MOTION_Interface.hpp | mipalgu/gusimplewhiteboard | 8f5f0c96dcf7836e87db824fdd673b988fa541fc | [
"BSD-4-Clause"
] | null | null | null | typeClassDefs/MOTION_Interface.hpp | mipalgu/gusimplewhiteboard | 8f5f0c96dcf7836e87db824fdd673b988fa541fc | [
"BSD-4-Clause"
] | null | null | null | typeClassDefs/MOTION_Interface.hpp | mipalgu/gusimplewhiteboard | 8f5f0c96dcf7836e87db824fdd673b988fa541fc | [
"BSD-4-Clause"
] | null | null | null | /**
* /file MOTION_Interface.h
*
* Created by Carl Lusty in 2013.
* Copyright (c) 2013 Carl Lusty ... | 49.215361 | 838 | 0.540561 | [
"object",
"vector"
] |
0aa48cbb9d6aa27489eb3fb089c37882e692649c | 5,761 | cpp | C++ | utils/cuda_to_sycl/converter/add.cpp | KOSASIH/computecpp-sdk | e3280999e162da62cfbd9c78864d64d81840c8b5 | [
"ECL-2.0",
"Apache-2.0"
] | 285 | 2016-09-14T11:42:29.000Z | 2022-03-19T22:23:45.000Z | utils/cuda_to_sycl/converter/add.cpp | KOSASIH/computecpp-sdk | e3280999e162da62cfbd9c78864d64d81840c8b5 | [
"ECL-2.0",
"Apache-2.0"
] | 173 | 2016-09-15T12:24:12.000Z | 2021-11-19T14:40:23.000Z | utils/cuda_to_sycl/converter/add.cpp | KOSASIH/computecpp-sdk | e3280999e162da62cfbd9c78864d64d81840c8b5 | [
"ECL-2.0",
"Apache-2.0"
] | 101 | 2016-09-14T12:50:34.000Z | 2022-02-25T09:36:31.000Z | /***************************************************************************
*
* Copyright (C) 2018 Codeplay Software Limited
* 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
*
* ... | 32.548023 | 78 | 0.641555 | [
"vector"
] |
0aa567d49796aa1d7e7a55e1594f969e1d4c4493 | 38,413 | cpp | C++ | util/drakeGeometryUtil.cpp | andybarry/drake | 61428cff8cb523314cd87105821148519460a0b9 | [
"BSD-3-Clause"
] | null | null | null | util/drakeGeometryUtil.cpp | andybarry/drake | 61428cff8cb523314cd87105821148519460a0b9 | [
"BSD-3-Clause"
] | null | null | null | util/drakeGeometryUtil.cpp | andybarry/drake | 61428cff8cb523314cd87105821148519460a0b9 | [
"BSD-3-Clause"
] | null | null | null | #include "drakeGeometryUtil.h"
#include <iostream>
#include <cmath>
#include <limits>
using namespace Eigen;
double angleDiff(double phi1, double phi2)
{
double d = phi2-phi1;
if(d>0.0)
{
d = fmod(d+M_PI,2*M_PI)-M_PI;
}
else
{
d = fmod(d-M_PI,2*M_PI)+M_PI;
}
return d;
}
Vector4d quatConjuga... | 39.317298 | 298 | 0.656549 | [
"transform"
] |
0aae072964ec472d5bc8a8a646e20a65514937b8 | 6,085 | cc | C++ | arc/vm/mojo_proxy/server_proxy.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | arc/vm/mojo_proxy/server_proxy.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | arc/vm/mojo_proxy/server_proxy.cc | dgreid/platform2 | 9b8b30df70623c94f1c8aa634dba94195343f37b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "arc/vm/mojo_proxy/server_proxy.h"
#include <poll.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/un.h>... | 32.540107 | 80 | 0.674774 | [
"vector"
] |
0aae826803bfa2b0db6545bef09aa1f7b985b1fc | 5,490 | cpp | C++ | BATS/code/BATSModule/src/UnitCompositionFactory.cpp | Senth/bats | 51d4ec39f3a118ed0eb90ec27a1864c0ceef3898 | [
"Apache-2.0"
] | null | null | null | BATS/code/BATSModule/src/UnitCompositionFactory.cpp | Senth/bats | 51d4ec39f3a118ed0eb90ec27a1864c0ceef3898 | [
"Apache-2.0"
] | null | null | null | BATS/code/BATSModule/src/UnitCompositionFactory.cpp | Senth/bats | 51d4ec39f3a118ed0eb90ec27a1864c0ceef3898 | [
"Apache-2.0"
] | null | null | null | #include "Utilities/Logger.h"
#include "Utilities/MassIniReader.h"
#include "UnitCompositionFactory.h"
#include "Config.h"
#include <BWAPI/Race.h>
#include <BWAPI/UnitType.h>
#include <algorithm>
using namespace bats;
UnitComposition UnitCompositionFactory::INVALID = UnitComposition();
UnitCompositionFacto... | 31.918605 | 102 | 0.714208 | [
"vector"
] |
0ab69b744229757a05257878fd21cf1129cad95c | 7,858 | cpp | C++ | src/behavior/policy/policy_utils.cpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | 4 | 2019-04-19T00:11:36.000Z | 2020-04-08T09:50:37.000Z | src/behavior/policy/policy_utils.cpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null | src/behavior/policy/policy_utils.cpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null | /**
* Mark Benjamin 1st June 2017
*/
#include "policy_utils.h"
#include "../../mdp/singleagent/environment/simulated_environment.h"
#include "../singleagent/options/option.h"
bool PolicyUtils::rolloutsDecomposeOptions = true;
PolicyUtils::PolicyUtils() = default;
/**
* Returns the probability of the policy takin... | 43.655556 | 148 | 0.715322 | [
"object",
"vector",
"model"
] |
0ab76619d744a0b14e6eac1ecbecb931d6c2931b | 14,176 | cpp | C++ | src/tables.cpp | egorpugin/flex_cmake_old | 83b4a1c06c3995f230ef1464d69535aec94e8611 | [
"BSD-4-Clause-UC"
] | null | null | null | src/tables.cpp | egorpugin/flex_cmake_old | 83b4a1c06c3995f230ef1464d69535aec94e8611 | [
"BSD-4-Clause-UC"
] | null | null | null | src/tables.cpp | egorpugin/flex_cmake_old | 83b4a1c06c3995f230ef1464d69535aec94e8611 | [
"BSD-4-Clause-UC"
] | null | null | null | /* tables.c - tables serialization code
*
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Vern Paxson.
*
* The United States Government has rights in this work pursuant
* to contract no. DE-AC03-... | 27.850688 | 152 | 0.628033 | [
"transform"
] |
0abec3e8300925813bd4858deb052b7d7b47a5cb | 19,482 | hpp | C++ | include/llfio/v2.0/utils.hpp | awson/llfio | 1b391c8c84c8601a80f13465af46b2b6eebebd09 | [
"BSL-1.0"
] | 356 | 2018-07-09T23:00:22.000Z | 2022-03-27T11:41:35.000Z | include/llfio/v2.0/utils.hpp | windirstat/llfio | 721503d32fe35dbaa93bde0214ae8cd3799d14b8 | [
"BSL-1.0"
] | 80 | 2018-07-22T13:05:36.000Z | 2022-01-12T11:34:57.000Z | include/llfio/v2.0/utils.hpp | windirstat/llfio | 721503d32fe35dbaa93bde0214ae8cd3799d14b8 | [
"BSL-1.0"
] | 35 | 2018-11-08T20:44:11.000Z | 2022-02-27T16:03:01.000Z | /* Misc utilities
(C) 2015-2021 Niall Douglas <http://www.nedproductions.biz/> (8 commits)
File Created: Dec 2015
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 in the accompanying file
Licence.txt o... | 41.806867 | 159 | 0.722718 | [
"vector"
] |
0aca8bd45ee62e371381fbb240c242cfaef37b38 | 12,888 | hpp | C++ | src/libcpp/containers/block_iter.hpp | xylar/jigsaw | 08bebe4eab2d0291f4f2b6b269fadee313bd9c4c | [
"Unlicense"
] | 1 | 2021-07-05T12:42:16.000Z | 2021-07-05T12:42:16.000Z | src/libcpp/containers/block_iter.hpp | xylar/jigsaw | 08bebe4eab2d0291f4f2b6b269fadee313bd9c4c | [
"Unlicense"
] | null | null | null | src/libcpp/containers/block_iter.hpp | xylar/jigsaw | 08bebe4eab2d0291f4f2b6b269fadee313bd9c4c | [
"Unlicense"
] | 3 | 2020-07-12T09:15:23.000Z | 2022-02-15T17:38:38.000Z |
/*
------------------------------------------------------------
* "block" iterator -- for non-contiguous sequences.
------------------------------------------------------------
*
* BLOCK-ARRAY is a block-wise array implementation,
* where the linear array storage is broken across
* non-contiguous "bloc... | 29.424658 | 61 | 0.492629 | [
"object"
] |
bd5702d9f395fc2e892203fed089666dbbe7f2f3 | 1,429 | hpp | C++ | include/hydro/engine/document/expression/GreaterThanOrEqualExpression.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/document/expression/GreaterThanOrEqualExpression.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/engine/document/expression/GreaterThanOrEqualExpression.hpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 29.770833 | 108 | 0.604619 | [
"object"
] |
bd58bd80ea9af293d95a61c75c901170e5e4400f | 972 | cpp | C++ | 1249-minimum-remove-to-make-valid-parentheses/1249-minimum-remove-to-make-valid-parentheses.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 1249-minimum-remove-to-make-valid-parentheses/1249-minimum-remove-to-make-valid-parentheses.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 1249-minimum-remove-to-make-valid-parentheses/1249-minimum-remove-to-make-valid-parentheses.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
string minRemoveToMakeValid(string s) {
stack<pair<char,int>>st;
vector<int>temp;
int i=0;
string res=s;
int l=0;
while(i<s.length()){
if(s[i]=='(')
{st.push(make_pair('(',i));}
if(s[i]==')')
... | 24.923077 | 58 | 0.309671 | [
"vector"
] |
bd5c2570403e7c7b90da4bb952f47f60a772a8be | 2,902 | cpp | C++ | src/Tokenization/Tokenizer.cpp | OutOfTheVoid/OakC | 773934cc52bd4433f95c8c2de1ee231b8de4d0ad | [
"MIT"
] | 1 | 2017-04-11T16:33:37.000Z | 2017-04-11T16:33:37.000Z | src/Tokenization/Tokenizer.cpp | OutOfTheVoid/OakC | 773934cc52bd4433f95c8c2de1ee231b8de4d0ad | [
"MIT"
] | null | null | null | src/Tokenization/Tokenizer.cpp | OutOfTheVoid/OakC | 773934cc52bd4433f95c8c2de1ee231b8de4d0ad | [
"MIT"
] | null | null | null | #include <Tokenization/Tokenizer.h>
#include <Logging/Logging.h>
Tokenizer :: Tokenizer ():
Rules ()
{
}
Tokenizer :: ~Tokenizer ()
{
for ( uint32_t Precedence = 0; Precedence < Rules.size (); Precedence ++ )
{
for ( uint32_t I = 0; I < Rules [ Precedence ].size (); I ++ )
{
delete Rules [ Precede... | 19.218543 | 184 | 0.557891 | [
"vector"
] |
bd5c8c91dcaab15304e6a06f49cc0bd0addcfcd5 | 7,179 | hpp | C++ | include/DLB.hpp | KaravolisL/ARM-ISA-Simulator | cc5b927ff40054d912e208a469545089125e6911 | [
"MIT"
] | null | null | null | include/DLB.hpp | KaravolisL/ARM-ISA-Simulator | cc5b927ff40054d912e208a469545089125e6911 | [
"MIT"
] | 81 | 2020-04-17T21:10:19.000Z | 2020-09-11T13:07:06.000Z | include/DLB.hpp | KaravolisL/ARM-ISA-Simulator | cc5b927ff40054d912e208a469545089125e6911 | [
"MIT"
] | null | null | null | /////////////////////////////////
/// @file DLB.hpp
///
/// @brief Declaration and Implementation
/// for DLB data structure
///
/// @details Trie data structure backed
/// by linked lists
///
/// @author Luke Karavolis
/////////////////////////////////
#ifndef DLB_HPP
#define DLB_HPP
// SYSTEM INCLUDES
#include <stri... | 26.988722 | 73 | 0.463156 | [
"object"
] |
bd602c7f11c4458d0718183a056c69fa30de8dbb | 44,450 | cpp | C++ | src/zoneserver/controller/PlayerController.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | src/zoneserver/controller/PlayerController.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | src/zoneserver/controller/PlayerController.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | #include "ZoneServerPCH.h"
#include "PlayerController.h"
#include "player/PlayerItemController.h"
#include "player/PlayerMailController.h"
#include "player/PlayerTradeController.h"
#include "player/PlayerBuildingController.h"
#include "player/PlayerInventoryController.h"
#include "player/PlayerQuestController.h"
#inclu... | 26.858006 | 118 | 0.724049 | [
"model",
"3d"
] |
bd6370a53a9d39d892c1c06eebadb7ff180971ef | 3,107 | cpp | C++ | dorothy/model/oActionDuration.cpp | pigpigyyy/Dorothy | 81dbf800d0e3b15c96d67e1fb72b88d3deae780f | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | 3 | 2020-01-29T02:22:14.000Z | 2022-03-03T08:13:45.000Z | dorothy/model/oActionDuration.cpp | pigpigyyy/Dorothy | 81dbf800d0e3b15c96d67e1fb72b88d3deae780f | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | dorothy/model/oActionDuration.cpp | pigpigyyy/Dorothy | 81dbf800d0e3b15c96d67e1fb72b88d3deae780f | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | 1 | 2021-05-20T09:04:32.000Z | 2021-05-20T09:04:32.000Z | /* Copyright (c) 2013 Jin Li, http://www.luvfight.me
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, publi... | 24.65873 | 463 | 0.752816 | [
"model"
] |
bd69cf5f15ee649a8ed246d342e37c7dd246a6d1 | 6,973 | hpp | C++ | redemption/src/mod/rdp/channels/rail_window_id_manager.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/mod/rdp/channels/rail_window_id_manager.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/mod/rdp/channels/rail_window_id_manager.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | /*
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This program is distributed in the hope that it will ... | 38.738889 | 151 | 0.700703 | [
"vector"
] |
bd721e9101c053eac06885656d82e2d813f16d63 | 10,855 | inl | C++ | tests/core_tests/double_spend.inl | Virie/Virie | fc5ad5816678b06b88d08a6842e43d4205915b39 | [
"MIT"
] | 1 | 2021-03-07T13:26:43.000Z | 2021-03-07T13:26:43.000Z | tests/core_tests/double_spend.inl | Virie/Virie | fc5ad5816678b06b88d08a6842e43d4205915b39 | [
"MIT"
] | null | null | null | tests/core_tests/double_spend.inl | Virie/Virie | fc5ad5816678b06b88d08a6842e43d4205915b39 | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2020 The Virie Project
// Copyright (c) 2012-2016 The Boolberry developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
//=============================================================... | 43.42 | 199 | 0.679687 | [
"render",
"vector"
] |
bd737db03580821f05ef6b116c1a4080c6f5e297 | 28,536 | cpp | C++ | Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2009, 2010 Sebastian Dröge <sebastian.droege@collabora.co.uk>
* Copyright (C) 2013 Collabora Ltd.
* Copyright (C) 2013 Orange
* Copyright (C) 2014, 2015 Sebastian Dröge <sebastian@centricular.com>
* Copyright (C) 2015, 2016 Metrological Group B.V.
* Copyright (C) 2015, 2016 Igalia, S.L
*... | 35.448447 | 238 | 0.707317 | [
"object",
"vector"
] |
bd76d09111bc3e6c00b5e90e67cbfa2365bf1b98 | 10,763 | cpp | C++ | example/calculate.cpp | maxscheurer/fmmgen | 4f330cb7f4c00ddaa07bcbf25606c137ef12e088 | [
"BSD-3-Clause"
] | 53 | 2016-02-27T09:40:21.000Z | 2022-01-19T21:37:44.000Z | example/calculate.cpp | maxscheurer/fmmgen | 4f330cb7f4c00ddaa07bcbf25606c137ef12e088 | [
"BSD-3-Clause"
] | 132 | 2016-02-26T13:18:58.000Z | 2021-12-01T21:52:42.000Z | example/calculate.cpp | maxscheurer/fmmgen | 4f330cb7f4c00ddaa07bcbf25606c137ef12e088 | [
"BSD-3-Clause"
] | 32 | 2016-02-26T13:21:40.000Z | 2022-03-08T08:54:51.000Z | #include "calculate.hpp"
#include "operators.h"
#include "tree.hpp"
#include "utils.hpp"
#include <iostream>
#include <stack>
#include <cmath>
void M_sanity_check(const std::vector<Cell> &cells) {
double M0 = 0;
for(size_t c = 1; c < cells.size(); c++) {
if (cells[c].nchild == 0) {
M0 += cells[c].M[0];
... | 34.168254 | 107 | 0.551055 | [
"vector"
] |
bd7a02913766686e0a95d96d339f47bf6c6d38f6 | 2,407 | cc | C++ | code/addons/faudio/audiolistener.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/addons/faudio/audiolistener.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/addons/faudio/audiolistener.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// FAudiolistener.cc
// (C) 2014-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "faudio/audiolistener.h"
#include "faudio/audio... | 27.666667 | 80 | 0.605733 | [
"object",
"vector",
"transform"
] |
bd8023d39c8291eff4f20f15536e90d38d5516a4 | 4,012 | cpp | C++ | src/smtrat-solver/ThreadPool.cpp | ths-rwth/smtrat | efd83021d5b5fb0e2903b38cd3148a953a1972c0 | [
"MIT"
] | 2 | 2021-03-21T23:02:42.000Z | 2021-03-22T15:15:13.000Z | src/smtrat-solver/ThreadPool.cpp | ths-rwth/smtrat | efd83021d5b5fb0e2903b38cd3148a953a1972c0 | [
"MIT"
] | 15 | 2021-03-16T11:00:37.000Z | 2022-02-22T14:51:57.000Z | src/smtrat-solver/ThreadPool.cpp | ths-rwth/smtrat | efd83021d5b5fb0e2903b38cd3148a953a1972c0 | [
"MIT"
] | null | null | null | /**
* @file ThreadPool.cpp
*
* @author Gereon Kremer
* @since 2016-03-18
*/
#include "ThreadPool.h"
#include <smtrat-solver/Module.h>
namespace smtrat
{
bool Task::operator<(const Task& rhs) const {
return mModule->threadPriority() < rhs.mModule->threadPriority();
}
void ThreadPool::runTask(Ta... | 30.393939 | 123 | 0.552841 | [
"vector"
] |
bd862ce93c44c0e40ef7f5a836797fbb78857b13 | 6,969 | cpp | C++ | Assignments/homework_2/functions.cpp | Landon-Brown1/1063-DS-Brown | 64220948fbc69f7bfbd1ab234fe22da5de97fa6e | [
"MIT"
] | 1 | 2019-12-23T16:26:20.000Z | 2019-12-23T16:26:20.000Z | Assignments/homework_2/functions.cpp | Landon-Brown1/1063-DS-Brown | 64220948fbc69f7bfbd1ab234fe22da5de97fa6e | [
"MIT"
] | null | null | null | Assignments/homework_2/functions.cpp | Landon-Brown1/1063-DS-Brown | 64220948fbc69f7bfbd1ab234fe22da5de97fa6e | [
"MIT"
] | null | null | null | /*AUTHOR: Landon M. Brown
*FILE NAME: functions.cpp
*ASSIGNMENT DESCRIPTION: This project will add functions to resize an
* array if the number of elements gets too large or too small.
*DUE DATE: 10/8/2019
*DATE CREATED: 10/1/2019
*DATE LAST MODIFIED: 10/8/2019
*/
#include <iostream>
#include <fstream>
#include "fu... | 35.556122 | 69 | 0.32128 | [
"object"
] |
bd87a22a0c5a228dea013515f234f9bbb666cda3 | 1,218 | hpp | C++ | third_party/boost/simd/function/complement.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 5 | 2018-02-20T11:21:12.000Z | 2019-11-12T13:45:09.000Z | third_party/boost/simd/function/complement.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/function/complement.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | 2 | 2017-11-17T15:30:36.000Z | 2018-03-01T02:06:25.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... | 22.145455 | 100 | 0.600985 | [
"object"
] |
bd898860d9dbe23493d8bcd42339b0ccddec1bd6 | 4,237 | hpp | C++ | tinypy/miniode/ode_contact.hpp | HighCWu/tpythonpp | f1c15e1101993e4c9c7529739823b47759ea13f7 | [
"PSF-2.0"
] | null | null | null | tinypy/miniode/ode_contact.hpp | HighCWu/tpythonpp | f1c15e1101993e4c9c7529739823b47759ea13f7 | [
"PSF-2.0"
] | null | null | null | tinypy/miniode/ode_contact.hpp | HighCWu/tpythonpp | f1c15e1101993e4c9c7529739823b47759ea13f7 | [
"PSF-2.0"
] | null | null | null | /*************************************************************************
* *
* Open Dynamics Engine, Copyright (C) 2001,2002 Russell L. Smith. *
* All rights reserved. Email: russ@q12.org Web: www.q12.org *
* ... | 38.171171 | 92 | 0.569507 | [
"vector"
] |
bd8afca8aac55b816a49af1b5647cbbd02726f4b | 418 | cpp | C++ | LeetCode/Medium/Longest Increasing Subsequence/Solution_1.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 8 | 2021-02-14T13:13:27.000Z | 2022-01-08T23:58:32.000Z | LeetCode/Medium/Longest Increasing Subsequence/Solution_1.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 17 | 2021-02-28T17:03:50.000Z | 2021-10-19T13:02:03.000Z | LeetCode/Medium/Longest Increasing Subsequence/Solution_1.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 15 | 2021-03-01T03:54:29.000Z | 2021-10-19T18:29:00.000Z | class Solution {
public:
int lengthOfLIS(vector<int>& nums){
int n = nums.size();
vector<int>dp(n,1);
int len = 1;
for(int i = 1; i<n; i++){
for(int j = 0; j<i; j++){
if(nums[i]>nums[j]){
dp[i] = max(dp[i], 1+dp[j]);
... | 22 | 48 | 0.349282 | [
"vector"
] |
bd8ea4feecc6d9286ca46aa33bb111cd1572e7ee | 1,389 | hpp | C++ | src/test/unit/lang/parser/test_statement_grammar_def.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/test/unit/lang/parser/test_statement_grammar_def.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | null | null | null | src/test/unit/lang/parser/test_statement_grammar_def.hpp | drezap/stan | 9b319ed125e2a7d14d0c9c246d2f462dad668537 | [
"BSD-3-Clause"
] | 1 | 2020-07-14T11:36:09.000Z | 2020-07-14T11:36:09.000Z | #ifndef STAN_LANG_GRAMMARS_TEST_STATEMENT_GRAMMAR_DEF_HPP
#define STAN_LANG_GRAMMARS_TEST_STATEMENT_GRAMMAR_DEF_HPP
#include <test/unit/lang/parser/test_statement_grammar.hpp>
#include <stan/io/program_reader.hpp>
#include <stan/lang/ast.hpp>
#include <stan/lang/grammars/semantic_actions.hpp>
#include <boost/spirit/h... | 31.568182 | 77 | 0.670266 | [
"vector"
] |
bd9439ae983042c684f883925b30d6757e799544 | 15,133 | cc | C++ | pascal/pascal.cc | paule32/penku | 1382cc3dc7888ac58b2220f33e05fb0c62065a6c | [
"MIT"
] | null | null | null | pascal/pascal.cc | paule32/penku | 1382cc3dc7888ac58b2220f33e05fb0c62065a6c | [
"MIT"
] | null | null | null | pascal/pascal.cc | paule32/penku | 1382cc3dc7888ac58b2220f33e05fb0c62065a6c | [
"MIT"
] | null | null | null | // --------------------------------------------------------------------------------
// MIT License
//
// Copyright (c) 2021 Jens Kallup
//
// 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 w... | 21.404526 | 95 | 0.49957 | [
"vector"
] |
bdabafcec12f67f96edd0d713fb982d4d5595c39 | 4,720 | cpp | C++ | 2017/05-a_maze_of_twisty_trampolines_all_alike/solve.cpp | frankschmitt/advent_of_code | 812c8f744c7eb99c9819b0f4bb3727122d0ff515 | [
"MIT"
] | null | null | null | 2017/05-a_maze_of_twisty_trampolines_all_alike/solve.cpp | frankschmitt/advent_of_code | 812c8f744c7eb99c9819b0f4bb3727122d0ff515 | [
"MIT"
] | null | null | null | 2017/05-a_maze_of_twisty_trampolines_all_alike/solve.cpp | frankschmitt/advent_of_code | 812c8f744c7eb99c9819b0f4bb3727122d0ff515 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <sstream>
using std::vector;
using std::string;
// print vector to string (with optional highlighting of a single element)
std::string to_s(const vector<int>& input, int highlight_index = -1) {
std::ostringstream oss;
for (int i =... | 29.873418 | 127 | 0.64322 | [
"vector"
] |
bdb385aeca105d7a7d2ecd74532f14c49c50a663 | 3,013 | hpp | C++ | include/uav_ros_control/control/PID.hpp | larics/uav_ros_control | ec71445054ad148a8feb57ab59d9cbeca04c9f0d | [
"BSD-3-Clause"
] | 1 | 2020-03-19T09:10:07.000Z | 2020-03-19T09:10:07.000Z | include/uav_ros_control/control/PID.hpp | lmark1/uav_ros_control | 5a00210e6c5418ad34da6fabea6e3bbcf6fbcf7c | [
"BSD-3-Clause"
] | 4 | 2021-01-12T15:30:54.000Z | 2021-05-27T23:28:09.000Z | include/uav_ros_control/control/PID.hpp | lmark1/uav_ros_control | 5a00210e6c5418ad34da6fabea6e3bbcf6fbcf7c | [
"BSD-3-Clause"
] | 1 | 2020-03-20T17:23:15.000Z | 2020-03-20T17:23:15.000Z | #ifndef PID_H
#define PID_H
#include <uav_ros_msgs/PIDController.h>
#include <ros/ros.h>
#include <string>
struct PIDParamPrefix
{
static const std::string KP;
static const std::string KD;
static const std::string KI;
static const std::string LIM_LOW;
static const std::string LIM_HIGH;
};
class PID
{
priva... | 19.953642 | 89 | 0.623299 | [
"object"
] |
bdb727676c55664c4f7253bd39c5aa9630139a73 | 8,746 | cpp | C++ | Field.cpp | lastoryx/Messier94 | 4d564efbe45a59a8c80bc7665d3eca7a46db4da1 | [
"MIT"
] | null | null | null | Field.cpp | lastoryx/Messier94 | 4d564efbe45a59a8c80bc7665d3eca7a46db4da1 | [
"MIT"
] | null | null | null | Field.cpp | lastoryx/Messier94 | 4d564efbe45a59a8c80bc7665d3eca7a46db4da1 | [
"MIT"
] | null | null | null | /*********************************************************************
** Program name: Messier94
** Author: Aaron Thompson
** Date: 12/10/2019
** Description: The Field derived class inherits from the Space class. It
** represents a space on the game board, specifically a corn field. The
** class has two unique ... | 41.061033 | 113 | 0.526183 | [
"object"
] |
bdba89ba92a41a7621d3a495a0ee6822d2f6b334 | 4,979 | hpp | C++ | source/common/LargeFileAccess.hpp | maemo-foss/maemo-package-exempi | 684c589c987a1b9f01a1d60114363ce8326c2be5 | [
"BSD-3-Clause"
] | null | null | null | source/common/LargeFileAccess.hpp | maemo-foss/maemo-package-exempi | 684c589c987a1b9f01a1d60114363ce8326c2be5 | [
"BSD-3-Clause"
] | null | null | null | source/common/LargeFileAccess.hpp | maemo-foss/maemo-package-exempi | 684c589c987a1b9f01a1d60114363ce8326c2be5 | [
"BSD-3-Clause"
] | null | null | null | #ifndef __LargeFileAccess_hpp__
#define __LargeFileAccess_hpp__ 1
// =================================================================================================
// Copyright 2006 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accord... | 34.576389 | 112 | 0.689697 | [
"model"
] |
bdbbe530d3acfa4f2677190b9bd31b1870d6183b | 2,466 | cpp | C++ | aws-cpp-sdk-lex/source/model/ResponseCard.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-lex/source/model/ResponseCard.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-lex/source/model/ResponseCard.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lex/model/ResponseCard.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Le... | 24.909091 | 138 | 0.759124 | [
"model"
] |
bdbe6a112908c331d6bb3f19b0c2eb425fe367d4 | 1,144 | cpp | C++ | Backtrack/recur/Decoding.cpp | Twinkle0799/Competitive_Programming_Rocks | fb71021e02019004bef59ee1df86687234e36f5a | [
"MIT"
] | 2 | 2021-05-06T17:59:44.000Z | 2021-08-04T12:50:38.000Z | Backtrack/recur/Decoding.cpp | Twinkle0799/Competitive_Programming_Rocks | fb71021e02019004bef59ee1df86687234e36f5a | [
"MIT"
] | 1 | 2022-01-14T19:58:34.000Z | 2022-01-14T19:58:34.000Z | Backtrack/recur/Decoding.cpp | Twinkle0799/Competitive_Programming_Rocks | fb71021e02019004bef59ee1df86687234e36f5a | [
"MIT"
] | 1 | 2021-02-17T09:48:06.000Z | 2021-02-17T09:48:06.000Z | #include <bits/stdc++.h>
using namespace std;
vector<string> mymap = {"", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
void decodeStringHelper(vector<string>& result, string& digits, int index, string strSoFar) {
if (index >= dig... | 29.333333 | 158 | 0.536713 | [
"vector"
] |
bdc24791d7433a540cbdd6c14d0df2e9066644fe | 1,292 | cpp | C++ | Contests/Codeforces/Codeforces Round #560 (Div. 3)/d-divisors.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | 7 | 2018-11-15T07:51:21.000Z | 2020-03-20T04:31:33.000Z | Contests/Codeforces/Codeforces Round #560 (Div. 3)/d-divisors.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | null | null | null | Contests/Codeforces/Codeforces Round #560 (Div. 3)/d-divisors.cpp | Pradyuman7/AwesomeDataStructuresAndAlgorithms | 6d995c7a3ce2a227733b12b1749de647c5172e8e | [
"MIT"
] | 3 | 2018-11-15T06:39:53.000Z | 2021-07-20T02:09:18.000Z | #include<iostream>
using namespace std;
#include<vector>
#include<bits/stdc++.h>
#include<climits>
int main()
{
int t;
cin>>t;
while(t--)
{
unsigned long long int n;
cin>>n;
unsigned long long int a[n];
unsigned long long int max=0;
unsigned long long int min=INT_MAX;
for(unsigned... | 12.543689 | 72 | 0.523994 | [
"vector"
] |
bdc6902e92bdf33b59eb3aec6801b14aec3c20d6 | 6,299 | cpp | C++ | project3D/Application3D.cpp | EmmanuelRoberson/Tank-Project | 8dcabba24d464aab35dad5bf6ac6388b6c48331f | [
"MIT"
] | null | null | null | project3D/Application3D.cpp | EmmanuelRoberson/Tank-Project | 8dcabba24d464aab35dad5bf6ac6388b6c48331f | [
"MIT"
] | null | null | null | project3D/Application3D.cpp | EmmanuelRoberson/Tank-Project | 8dcabba24d464aab35dad5bf6ac6388b6c48331f | [
"MIT"
] | null | null | null | #define GLM_ENABLE_EXPERIMENTAL
#define GLM_FORCE_SWIZZLE
#include "Application3D.h"
#include "Gizmos.h"
#include "Input.h"
#include <glm/glm.hpp>
#include <glm/ext.hpp>
using glm::vec3;
using glm::vec4;
using glm::mat4;
using aie::Gizmos;
Application3D::Application3D() {
}
Application3D::~Application3D() {
}
bo... | 31.974619 | 129 | 0.710589 | [
"object",
"transform",
"3d"
] |
bdcb6404a089e647372ba56ad8a59367184d9c7b | 12,051 | hpp | C++ | include/memoria/core/linked/document/ld_document.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | include/memoria/core/linked/document/ld_document.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | include/memoria/core/linked/document/ld_document.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2019 Victor Smirnov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 28.288732 | 123 | 0.677537 | [
"vector"
] |
bdcb8a0250c74ce3f53eb412f70b02337942bad6 | 624 | cpp | C++ | Dataset/Leetcode/train/75/21.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/75/21.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/75/21.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
void exc(int &a,int& b){
int t=a;
a=b,b=t;
}
void XXX(vector<int>& nums) {
int n=nums.size(),pre=0,back=n-1,i=0;
while(i<=back)
if(nums[i]==0){
exc(nums[i],nums[pre++]);
if(nums[i]==0)
i+... | 24 | 139 | 0.429487 | [
"vector"
] |
bdd1bd7437509e5090725e2f09cb7532cf91a22b | 2,366 | cpp | C++ | modules/bullet_physics/debug_utilities.cpp | reeseschultz/godex | 38a7e7c4a48f6255a8e3beb7c86242bf07b907b6 | [
"MIT"
] | 576 | 2021-01-13T08:12:57.000Z | 2022-03-29T14:21:50.000Z | modules/bullet_physics/debug_utilities.cpp | reeseschultz/godex | 38a7e7c4a48f6255a8e3beb7c86242bf07b907b6 | [
"MIT"
] | 101 | 2021-01-14T14:19:25.000Z | 2022-03-07T06:56:33.000Z | modules/bullet_physics/debug_utilities.cpp | reeseschultz/godex | 38a7e7c4a48f6255a8e3beb7c86242bf07b907b6 | [
"MIT"
] | 41 | 2021-01-13T07:37:48.000Z | 2022-03-24T07:14:47.000Z | #include "debug_utilities.h"
#include "core/math/quick_hull.h"
#include "scene/main/scene_tree.h"
struct DrawEdge {
Vector3 a;
Vector3 b;
bool operator<(const DrawEdge &p_edge) const {
if (a == p_edge.a) {
return b < p_edge.b;
} else {
return a < p_edge.a;
}
}
DrawEdge(const Vector3 &p_a = Vector3()... | 22.75 | 83 | 0.626374 | [
"mesh",
"object",
"vector"
] |
752494a5e93373eb9a27b2eb6f5ded8f1a2879ab | 1,318 | hpp | C++ | scenario-generation/utils/EventLogistics.hpp | andrewgchio/SmartSPEC | 49033fa6c40df7e8b92d767029b77afc42a23cf7 | [
"MIT"
] | null | null | null | scenario-generation/utils/EventLogistics.hpp | andrewgchio/SmartSPEC | 49033fa6c40df7e8b92d767029b77afc42a23cf7 | [
"MIT"
] | null | null | null | scenario-generation/utils/EventLogistics.hpp | andrewgchio/SmartSPEC | 49033fa6c40df7e8b92d767029b77afc42a23cf7 | [
"MIT"
] | null | null | null | #ifndef UTILS_EVENT_LOGISTICS_HPP
#define UTILS_EVENT_LOGISTICS_HPP
#include <iostream>
#include "../model/Trajectory.hpp"
#include "Typedefs.hpp"
#include "DateUtils.hpp"
class EventLogistics {
public:
EventLogistics();
EventLogistics(EventID eid, SpaceID sid, Trajectory traj, TimePeriod tp);
exp... | 22.724138 | 77 | 0.623672 | [
"model"
] |
75415ffc4d05f9377134c48f9def87fb50d2c088 | 1,995 | cpp | C++ | ExploringScaleSymmetry/Chapter2/ch2_figure6.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | ExploringScaleSymmetry/Chapter2/ch2_figure6.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | ExploringScaleSymmetry/Chapter2/ch2_figure6.cpp | TGlad/ExploringScaleSymmetry | 25b2dae0279a0ac26f6bae2277d3b76a1cda8b04 | [
"MIT"
] | null | null | null | // Thomas Lowe, 2020.
// Generates the pyramidal surface fractal as a .ply triangle-mesh file.
#include "stdafx.h"
#include "PolyMesh.h"
// The interior angle of the triangle, in radians. pi/2 gives a square, and 1.18 is close to the smallest angle before the surface self-intersects
static double theta = 1.18;
// i... | 32.704918 | 147 | 0.613534 | [
"mesh"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.