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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19e22782cdd424244c1357181e8f38dc5523a69a | 3,972 | cpp | C++ | src/Etterna/Actor/Gameplay/ReceptorArrow.cpp | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | 1 | 2020-11-09T21:58:28.000Z | 2020-11-09T21:58:28.000Z | src/Etterna/Actor/Gameplay/ReceptorArrow.cpp | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | null | null | null | src/Etterna/Actor/Gameplay/ReceptorArrow.cpp | kangalioo/etterna | 11630aa1c23bad46b2da993602b06f8b659a4961 | [
"MIT"
] | null | null | null | #include "Etterna/Globals/global.h"
#include "Etterna/Singletons/GameState.h"
#include "Etterna/Singletons/NoteSkinManager.h"
#include "Etterna/Models/Misc/PlayerState.h"
#include "RageUtil/Utils/RageUtil.h"
#include "ReceptorArrow.h"
#include "Etterna/Models/StepsAndStyles/Style.h"
ReceptorArrow::ReceptorArrow()
{
m... | 33.661017 | 82 | 0.762336 | [
"vector"
] |
19e441f51d2461d07320d1696bda2be2cd8504f8 | 11,443 | cpp | C++ | src/orocos_kinematics_dynamics/orocos_kdl/tests/kinfamtest.cpp | matchRos/simulation_multirobots | 286c5add84d521ad371b2c8961dea872c34e7da2 | [
"BSD-2-Clause"
] | null | null | null | src/orocos_kinematics_dynamics/orocos_kdl/tests/kinfamtest.cpp | matchRos/simulation_multirobots | 286c5add84d521ad371b2c8961dea872c34e7da2 | [
"BSD-2-Clause"
] | null | null | null | src/orocos_kinematics_dynamics/orocos_kdl/tests/kinfamtest.cpp | matchRos/simulation_multirobots | 286c5add84d521ad371b2c8961dea872c34e7da2 | [
"BSD-2-Clause"
] | 1 | 2022-01-04T09:16:28.000Z | 2022-01-04T09:16:28.000Z | #include "kinfamtest.hpp"
#include <frames_io.hpp>
#include <kinfam_io.hpp>
#include <chainfksolverpos_recursive.hpp>
CPPUNIT_TEST_SUITE_REGISTRATION( KinFamTest );
#ifdef __APPLE__
typedef unsigned int uint;
#endif
using namespace KDL;
using namespace std;
void KinFamTest::setUp()
{
}
void KinFamTest::tearDown(... | 41.762774 | 119 | 0.655073 | [
"vector"
] |
19eba95f7e92b57f67c78f35e6534a501ba42fe3 | 899 | cpp | C++ | libtbag/io/InputUtils.cpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | 21 | 2016-04-05T06:08:41.000Z | 2022-03-28T10:20:22.000Z | libtbag/io/InputUtils.cpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | null | null | null | libtbag/io/InputUtils.cpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | 2 | 2019-07-16T00:37:21.000Z | 2021-11-10T06:14:09.000Z | /**
* @file InputUtils.cpp
* @brief InputUtils class implementation.
* @author zer0
* @date 2020-03-22
*/
#include <libtbag/io/InputUtils.hpp>
#include <cassert>
#include <cstring>
#include <cstdio>
#include <vector>
// -------------------
NAMESPACE_LIBTBAG_OPEN
// -------------------
namespace io {
std... | 20.906977 | 84 | 0.607341 | [
"vector"
] |
19f16c3ad0bde7b769dee6ae1f4b7e8281753566 | 3,535 | cpp | C++ | array/169/169.cpp | stormYuanYang/LeetCode-Report | c42bc3b1bf272c31ea0e0582343e4de5451970b4 | [
"MIT"
] | 1 | 2019-01-30T03:06:48.000Z | 2019-01-30T03:06:48.000Z | array/169/169.cpp | stormYuanYang/leetcode-report | c42bc3b1bf272c31ea0e0582343e4de5451970b4 | [
"MIT"
] | null | null | null | array/169/169.cpp | stormYuanYang/leetcode-report | c42bc3b1bf272c31ea0e0582343e4de5451970b4 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <vector>
#include <cassert>
#include <cstdlib>
#include <algorithm>
#include <unordered_map>
#include "../../include/tools.h"
using namespace std;
class Solution {
public:
// 最直接的办法就是用hash表,找到统计数量大于一半的元素
// 此方法空间复杂度O(n),时间复杂度O(n)
int majorityElement(vector<int>& nums) {
... | 26.780303 | 77 | 0.474682 | [
"vector"
] |
19f3f01f80be3db7137a6827c5ef26bc79b3b024 | 2,707 | hh | C++ | transformations/base/Histogram2d.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | transformations/base/Histogram2d.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | transformations/base/Histogram2d.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "GNAObject.hh"
/**
* @brief Transformation object holding a static 2-dimensional histogram.
*
* Outputs:
* - `hist.hist` - 2-dimensional histogram with fixed data.
*
* @author Dmitry Taychenachev
* @date 2015
*/
class Histogram2d: public GNASingleObject,
... | 37.597222 | 159 | 0.595863 | [
"object",
"shape",
"vector"
] |
19f9f1f9036a260038bd8e2274dbf670545b530d | 8,647 | cpp | C++ | src/cpp/robustMatcher.cpp | sisques/TFG | e2a971da6b8ef3651fbbad48573bf56aab632770 | [
"MIT"
] | null | null | null | src/cpp/robustMatcher.cpp | sisques/TFG | e2a971da6b8ef3651fbbad48573bf56aab632770 | [
"MIT"
] | null | null | null | src/cpp/robustMatcher.cpp | sisques/TFG | e2a971da6b8ef3651fbbad48573bf56aab632770 | [
"MIT"
] | null | null | null |
#include "robustMatcher.hpp"
// Métodos privados
namespace TFG{
cv::Mat robustMatcher::ransacTest( const std::vector<cv::DMatch>& matches, std::vector<cv::KeyPoint>& kp1,
std::vector<cv::KeyPoint>& kp2, std::vector<cv::DMatch>& outMatches,
std::vector<cv::Point2f>& p... | 35.008097 | 134 | 0.520412 | [
"vector"
] |
c201636dd6324aa38e536b5592aa6708639cd3e4 | 2,227 | cpp | C++ | draw.cpp | iamareebjamal/opengl_pendulum | 33d358ec47189ecc4fa01e66c45ad1220ae057cf | [
"Apache-2.0"
] | null | null | null | draw.cpp | iamareebjamal/opengl_pendulum | 33d358ec47189ecc4fa01e66c45ad1220ae057cf | [
"Apache-2.0"
] | null | null | null | draw.cpp | iamareebjamal/opengl_pendulum | 33d358ec47189ecc4fa01e66c45ad1220ae057cf | [
"Apache-2.0"
] | null | null | null | #include "draw.h"
#include <GL/glut.h>
#include <iostream>
#include <sstream>
#include <vector>
#include <cmath>
void reshape(GLsizei width, GLsizei height) {
if (height == 0) height = 1;
GLfloat aspect = (GLfloat)width / (GLfloat)height;
glViewport(0, 0, width, height);
glMatrixMode(GL_PROJECTION);... | 22.494949 | 67 | 0.607544 | [
"vector"
] |
c202665398e1ccf2c763d0a96bf2f57fcf712c5a | 871 | cpp | C++ | prefix_scan/prefix_scan.cpp | ReaLNeroM/CUDA-experiment | 096cdee76cd72b345f17df0092f77109b72d926c | [
"MIT"
] | null | null | null | prefix_scan/prefix_scan.cpp | ReaLNeroM/CUDA-experiment | 096cdee76cd72b345f17df0092f77109b72d926c | [
"MIT"
] | null | null | null | prefix_scan/prefix_scan.cpp | ReaLNeroM/CUDA-experiment | 096cdee76cd72b345f17df0092f77109b72d926c | [
"MIT"
] | null | null | null | #include <iostream>
#include <chrono>
#include <cassert>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <algorithm>
// MUST BE ASSOCIATIVE
int f(int a, int b){
return a + b;
}
int main(){
int n = (1 << 28);
int *x = (int *) malloc(n * sizeof(int));
assert(x != NULL);
for(int i = ... | 24.885714 | 131 | 0.572905 | [
"vector"
] |
c204e9d955625e5d2e5367b6e34665af1d46367e | 3,605 | cpp | C++ | ClientProject/src/SocketDataStream.cpp | pqviet07/SocketAppplication | 736beab7bf711e97bd53591c0359634447feffe9 | [
"MIT"
] | null | null | null | ClientProject/src/SocketDataStream.cpp | pqviet07/SocketAppplication | 736beab7bf711e97bd53591c0359634447feffe9 | [
"MIT"
] | null | null | null | ClientProject/src/SocketDataStream.cpp | pqviet07/SocketAppplication | 736beab7bf711e97bd53591c0359634447feffe9 | [
"MIT"
] | null | null | null | #include <SocketDataStream.h>
#include <QDebug>
SocketDataStream::SocketDataStream(int sz)
{
buffers.assign(sz, std::vector<char>());
headerSize = sizeof(WAV_Header)+sizeof(Y4M_Header);
}
void SocketDataStream::push_back(const char& value)
{
std::unique_lock<std::mutex> ul(m_mutex[i]);
cv[i].wait(ul, ... | 23.717105 | 109 | 0.555617 | [
"vector"
] |
c205c011e3e403dd5053b26872001d7ce259f7fd | 4,719 | cpp | C++ | generators/graph/range_utility.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | generators/graph/range_utility.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | generators/graph/range_utility.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | #include "range_utility.h"
#include <core/io/image.h>
#include <scene/resources/curve.h>
namespace zylann {
using namespace math;
// Curve ///////////////////////////////////////////////////////////////////////////////////////////////////////////////
void get_curve_monotonic_sections(Curve &curve, std::vector<Curv... | 31.885135 | 120 | 0.670693 | [
"vector"
] |
c20d48c500befd79c6ac70e0d11d2865ad496802 | 820 | hpp | C++ | libs/core/render/include/bksge/core/render/inl/front_face_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/include/bksge/core/render/inl/front_face_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/include/bksge/core/render/inl/front_face_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file front_face_inl.hpp
*
* @brief FrontFace の実装
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_RENDER_INL_FRONT_FACE_INL_HPP
#define BKSGE_CORE_RENDER_INL_FRONT_FACE_INL_HPP
#include <bksge/core/render/front_face.hpp>
#include <bksge/fnd/string/string.hpp>
#include <bksge/fnd/config.hpp>
na... | 19.069767 | 66 | 0.745122 | [
"render"
] |
c2179298e9e53683880e2166efd5753960383569 | 112,710 | cpp | C++ | KernelSDK/src/kernel/KernelExec/cActivityLog.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 38 | 2018-09-24T09:37:41.000Z | 2022-02-21T04:16:43.000Z | KernelSDK/src/kernel/KernelExec/cActivityLog.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 1 | 2018-10-02T17:57:44.000Z | 2018-10-07T06:55:44.000Z | KernelSDK/src/kernel/KernelExec/cActivityLog.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 6 | 2018-10-02T17:12:38.000Z | 2021-01-27T10:01:30.000Z | // Copyright 2018 Grass Valley, A Belden Brand
// 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 ag... | 24.417244 | 197 | 0.620726 | [
"vector"
] |
c21c726d8a2602d74419e163058e21e78a2c0e8a | 15,240 | cpp | C++ | ext/include/osgEarthUtil/GeodeticGraticule.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 6 | 2015-09-26T15:33:41.000Z | 2021-06-13T13:21:50.000Z | ext/include/osgEarthUtil/GeodeticGraticule.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | null | null | null | ext/include/osgEarthUtil/GeodeticGraticule.cpp | energonQuest/dtEarth | 47b04bb272ec8781702dea46f5ee9a03d4a22196 | [
"MIT"
] | 5 | 2015-05-04T09:02:23.000Z | 2019-06-17T11:34:12.000Z | /* -*-c++-*- */
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2013 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundat... | 31.42268 | 163 | 0.611614 | [
"geometry",
"transform"
] |
c21f0f8854e6c06fdbbd3ff8c19e9b26cc01559a | 1,012 | hpp | C++ | libs/cegui/impl/include/sge/cegui/impl/cegui_logger.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/cegui/impl/include/sge/cegui/impl/cegui_logger.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/cegui/impl/include/sge/cegui/impl/cegui_logger.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_CEGUI_IMPL_CEGUI_LOGGER_HPP_INCLUDED
#define SGE_CEGUI_IMPL_CEGUI_LOGGER_HPP_INCLUDED
... | 23 | 82 | 0.749012 | [
"object"
] |
c22457146a59413262ac1f8091317633a5cce833 | 9,056 | cpp | C++ | plugins/zimg/src/Unresize/unresize_impl_sse2.cpp | darcyg/vapoursynth-plugins | 5aaf090d3523cb8c53841949f2da286688ba33bb | [
"BSD-2-Clause"
] | null | null | null | plugins/zimg/src/Unresize/unresize_impl_sse2.cpp | darcyg/vapoursynth-plugins | 5aaf090d3523cb8c53841949f2da286688ba33bb | [
"BSD-2-Clause"
] | null | null | null | plugins/zimg/src/Unresize/unresize_impl_sse2.cpp | darcyg/vapoursynth-plugins | 5aaf090d3523cb8c53841949f2da286688ba33bb | [
"BSD-2-Clause"
] | 1 | 2020-04-06T16:52:59.000Z | 2020-04-06T16:52:59.000Z | #ifdef ZIMG_X86
#include <cstddef>
#include <emmintrin.h>
#include "Common/osdep.h"
#include "unresize_impl.h"
#include "unresize_impl_x86.h"
namespace zimg {;
namespace unresize {;
namespace {;
void transpose4_ps(__m128 &x0, __m128 &x1, __m128 &x2, __m128 &x3)
{
__m128d t0 = _mm_castps_pd(_mm_unpacklo_ps(x0, x1));... | 27.779141 | 130 | 0.621577 | [
"vector"
] |
ea51d1269c7ba0c94c1244a41d5b7ea3ef1af7fc | 3,949 | cpp | C++ | src/map.cpp | maciejczechowski/CarND-Path-Planning-Project | 8c400817264fd9eedf1d2cc20ffa6594edbb1879 | [
"MIT"
] | null | null | null | src/map.cpp | maciejczechowski/CarND-Path-Planning-Project | 8c400817264fd9eedf1d2cc20ffa6594edbb1879 | [
"MIT"
] | null | null | null | src/map.cpp | maciejczechowski/CarND-Path-Planning-Project | 8c400817264fd9eedf1d2cc20ffa6594edbb1879 | [
"MIT"
] | null | null | null | //
// Created by Maciej Czechowski on 18/04/2020.
//
#include "map.h"
#include <fstream>
#include <iostream>
#include <vector>
#include "json.hpp"
#include "helpers.h"
void Map::load_map(string filename) {
std::ifstream in_map_(filename.c_str(), std::ifstream::in);
string line;
while (getline(in_map_, ... | 27.615385 | 118 | 0.632059 | [
"vector"
] |
ea58b9ddf59be4d2116efd397488b444aa890a6c | 1,323 | hpp | C++ | include/comm/SyncClient.hpp | etri-city-traffic-brain/traffic-simulator | 6d5061febeaef484388b2b5aee14d9894099d98a | [
"Apache-2.0"
] | 8 | 2020-08-27T05:44:05.000Z | 2021-12-27T05:11:17.000Z | include/comm/SyncClient.hpp | etri-city-traffic-brain/traffic-simulator | 6d5061febeaef484388b2b5aee14d9894099d98a | [
"Apache-2.0"
] | null | null | null | include/comm/SyncClient.hpp | etri-city-traffic-brain/traffic-simulator | 6d5061febeaef484388b2b5aee14d9894099d98a | [
"Apache-2.0"
] | 1 | 2020-11-27T05:17:29.000Z | 2020-11-27T05:17:29.000Z | #ifndef SYNCCLIENT_H
#define SYNCCLIENT_H
#include <boost/asio.hpp>
#include "Connection.hpp"
#include <boost/serialization/vector.hpp>
#include "SerializeTuple.hpp"
#include "SyncMessage.hpp"
#include "ILocalSimController.hpp"
namespace salt_comm{
class SyncClient {
private:
//the connection to the server
Con... | 23.210526 | 124 | 0.78458 | [
"vector"
] |
ea5eabb091915192b182b78516c733936f28464a | 2,057 | hpp | C++ | src/ultra.hpp | TravisWheelerLab/ULTRA | a8f05424903b68cea630d7ef5102fb1b3cc9395c | [
"BSD-3-Clause"
] | 8 | 2019-10-06T14:46:29.000Z | 2022-03-27T14:09:50.000Z | src/ultra.hpp | TravisWheelerLab/ULTRA | a8f05424903b68cea630d7ef5102fb1b3cc9395c | [
"BSD-3-Clause"
] | 6 | 2019-08-08T22:24:04.000Z | 2021-11-12T18:24:22.000Z | src/ultra.hpp | TravisWheelerLab/ULTRA | a8f05424903b68cea630d7ef5102fb1b3cc9395c | [
"BSD-3-Clause"
] | 1 | 2019-11-28T00:47:59.000Z | 2019-11-28T00:47:59.000Z | //
// ultra.hpp
// ultraP
//
#ifndef ultra_hpp
#define ultra_hpp
#include <stdio.h>
#include <vector>
#include "FASTAReader.hpp"
#include "FileReader.hpp"
#include "JSONReader.hpp"
#include "umatrix.hpp"
#include "umodel.hpp"
#include "repeat.hpp"
#include <algorithm>
#include <stdio.h>
//#include <omp.h>
#includ... | 20.366337 | 70 | 0.71755 | [
"vector",
"model"
] |
ea6d5cdc819074b73f591f7e147fc8b47751be61 | 2,414 | hpp | C++ | COpenGLHandler.hpp | andreihareza/openGL_polygon | a06d2c900c67aa34c1a53eed562a3603038e0118 | [
"Unlicense"
] | null | null | null | COpenGLHandler.hpp | andreihareza/openGL_polygon | a06d2c900c67aa34c1a53eed562a3603038e0118 | [
"Unlicense"
] | null | null | null | COpenGLHandler.hpp | andreihareza/openGL_polygon | a06d2c900c67aa34c1a53eed562a3603038e0118 | [
"Unlicense"
] | null | null | null | #pragma once
#include <stdio.h>
#include <fstream>
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <vector>
#include "IOpenGLListener.hpp"
class COpenGLHandler : public IOpenGLListener
{
public:
COpenGLHandler(int argc, char ** argv);
virtual ~COpenGLHandler();
void init(int argc, char ** argv);... | 25.145833 | 67 | 0.719138 | [
"vector"
] |
ea6d932987d5d8dadc2f1a5f0987c6dc2918399a | 20,605 | cpp | C++ | com/netfx/src/clr/jit/il/ee_il_dll.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/netfx/src/clr/jit/il/ee_il_dll.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/netfx/src/clr/jit/il/ee_il_dll.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XX ... | 33.834154 | 108 | 0.525601 | [
"object"
] |
ea6feb9ff7d3b77ddd053c31cc0c9a7a86a65163 | 5,890 | cc | C++ | chrome/browser/vr/vr_controller_model.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/vr/vr_controller_model.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/vr/vr_controller_model.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/vr/vr_controller_model.h"
#include "base/memory/ptr_util.h"
#include "base/trace_event/trace_event.h"
#include "chrome/browser/v... | 33.850575 | 80 | 0.729372 | [
"mesh",
"vector"
] |
ea7239c5ad779026bae027d3f94c6f82a0539d3e | 2,810 | cpp | C++ | src/grib_coder/src/sections/grib_section_5.cpp | perillaroc/nwpc-codes-cpp | a051d027ca7fb251b4bd992a790f1e04bdb5d315 | [
"MIT"
] | 1 | 2021-08-03T10:17:50.000Z | 2021-08-03T10:17:50.000Z | src/grib_coder/src/sections/grib_section_5.cpp | perillaroc/nwpc-codes-cpp | a051d027ca7fb251b4bd992a790f1e04bdb5d315 | [
"MIT"
] | 8 | 2019-08-08T13:19:26.000Z | 2019-09-29T13:57:29.000Z | src/grib_coder/src/sections/grib_section_5.cpp | perillaroc/nwpc-codes-cpp | a051d027ca7fb251b4bd992a790f1e04bdb5d315 | [
"MIT"
] | 2 | 2020-10-19T16:54:58.000Z | 2021-08-03T10:17:52.000Z | #include <grib_coder/sections/grib_section_5.h>
#include <grib_property/property_component.h>
#include <gsl/span>
#include <cassert>
namespace grib_coder {
GribSection5::GribSection5():
GribSection{5} {
init();
}
GribSection5::GribSection5(int section_length):
GribSection{5, section_length} {
assert... | 31.222222 | 87 | 0.662989 | [
"vector"
] |
ea744316016d27642c6c6a323aadbc5345ea9888 | 2,322 | cpp | C++ | C++/Gaddis/Ch7_ClassesAndObjects/Ch7_Program9/main.cpp | rlong2/Code | feb6c097159bf822122a73e0131ad928780bcfcd | [
"BSD-3-Clause"
] | null | null | null | C++/Gaddis/Ch7_ClassesAndObjects/Ch7_Program9/main.cpp | rlong2/Code | feb6c097159bf822122a73e0131ad928780bcfcd | [
"BSD-3-Clause"
] | null | null | null | C++/Gaddis/Ch7_ClassesAndObjects/Ch7_Program9/main.cpp | rlong2/Code | feb6c097159bf822122a73e0131ad928780bcfcd | [
"BSD-3-Clause"
] | null | null | null | // This program passes an object to a function.
// One object is passed by reference, the other is passed by value.
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
class InventoryItem
{
private:
int partNum;
string description;
int onHand;
double price;
public:
void ... | 22.543689 | 74 | 0.612834 | [
"object"
] |
ea826ddf637dd5bb13c0c00a23d6f4275f3bb321 | 20,728 | cpp | C++ | source/interp/expr.cpp | zhiayang/ikurabot | 051042ec85bcbee3f4b8888138a46c37396a2daa | [
"Apache-2.0"
] | 5 | 2020-07-21T20:29:10.000Z | 2021-12-06T15:17:46.000Z | source/interp/expr.cpp | NrdyBhu1/ikurabot | 051042ec85bcbee3f4b8888138a46c37396a2daa | [
"Apache-2.0"
] | null | null | null | source/interp/expr.cpp | NrdyBhu1/ikurabot | 051042ec85bcbee3f4b8888138a46c37396a2daa | [
"Apache-2.0"
] | 1 | 2021-02-07T08:41:45.000Z | 2021-02-07T08:41:45.000Z | // expr.cpp
// Copyright (c) 2020, zhiayang
// Licensed under the Apache License Version 2.0.
#include "zfu.h"
#include "ast.h"
#include "cmd.h"
namespace ikura::interp::ast
{
using TT = lexer::TokenType;
using interp::Value;
Value make_num(double re) { return Value::of_number(re); }
Value make_num... | 28.550964 | 123 | 0.575695 | [
"vector",
"transform"
] |
ea89447e15513aef5749580f59cd181cc37e3860 | 4,166 | hh | C++ | src/file/prob/shuffleovl.hh | aaszodi/multovl | 00c5b74e65c7aa37cddea8b2ae277fe67fbc59a8 | [
"MIT"
] | 2 | 2018-03-06T02:36:25.000Z | 2020-01-13T10:55:35.000Z | src/file/prob/shuffleovl.hh | aaszodi/multovl | 00c5b74e65c7aa37cddea8b2ae277fe67fbc59a8 | [
"MIT"
] | null | null | null | src/file/prob/shuffleovl.hh | aaszodi/multovl | 00c5b74e65c7aa37cddea8b2ae277fe67fbc59a8 | [
"MIT"
] | null | null | null | /* <LICENSE>
License for the MULTOVL multiple genomic overlap tools
Copyright (c) 2007-2012, Dr Andras Aszodi,
Campus Science Support Facilities GmbH (CSF),
Dr-Bohr-Gasse 3, A-1030 Vienna, Austria, Europe.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permi... | 36.867257 | 111 | 0.728997 | [
"vector"
] |
ea9652536400fd3d794d00d7b39c58f6426a2ada | 26,199 | hpp | C++ | sdl/Hypergraph/IMutableHypergraph.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Hypergraph/IMutableHypergraph.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Hypergraph/IMutableHypergraph.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// 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,... | 36.744741 | 111 | 0.666781 | [
"object",
"model"
] |
ea9b91b8fcf1f2bb32e22458573de56aac59e91d | 13,204 | cpp | C++ | test/entt/entity/snapshot.cpp | DavidHamburg/entt | d417984ff3f0fe3160c5472d1bfc7285b574777f | [
"MIT"
] | null | null | null | test/entt/entity/snapshot.cpp | DavidHamburg/entt | d417984ff3f0fe3160c5472d1bfc7285b574777f | [
"MIT"
] | null | null | null | test/entt/entity/snapshot.cpp | DavidHamburg/entt | d417984ff3f0fe3160c5472d1bfc7285b574777f | [
"MIT"
] | null | null | null | #include <tuple>
#include <queue>
#include <vector>
#include <gtest/gtest.h>
#include <entt/entity/registry.hpp>
template<typename Storage>
struct OutputArchive {
OutputArchive(Storage &storage)
: storage{storage}
{}
template<typename Value>
void operator()(const Value &value) {
std::g... | 26.946939 | 91 | 0.606256 | [
"vector"
] |
ea9dea1b2dd18bea32fe856d80e5ac3d830b3d10 | 4,945 | cpp | C++ | visualizer/src/heightmaprenderer.cpp | aoraoraor/wedding_rover | 5a18a30259ed954b7233228f4677a52cd88edbc5 | [
"MIT"
] | null | null | null | visualizer/src/heightmaprenderer.cpp | aoraoraor/wedding_rover | 5a18a30259ed954b7233228f4677a52cd88edbc5 | [
"MIT"
] | null | null | null | visualizer/src/heightmaprenderer.cpp | aoraoraor/wedding_rover | 5a18a30259ed954b7233228f4677a52cd88edbc5 | [
"MIT"
] | null | null | null | #include "heightmaprenderer.h""
HeightMapRenderer::HeightMapRenderer(Qt3DCore::QEntity* sceneRoot, const vector<uint8_t>& elevation, const vector<uint8_t>& overrides, const vector<uint8_t>& colorMap)
: Renderer(sceneRoot, elevation), m_overrides(overrides), m_colorMap(colorMap)
{
m_geometry = new Qt3DRender::QGeomet... | 35.833333 | 167 | 0.759555 | [
"render",
"vector"
] |
eaa102dda837db4619844417028655864d5807d2 | 744 | cpp | C++ | LeetCode/0090. Subsets II/solution.cpp | InnoFang/oh-my-algorithms | f559dba371ce725a926725ad28d5e1c2facd0ab2 | [
"Apache-2.0"
] | 19 | 2018-08-26T03:10:58.000Z | 2022-03-07T18:12:52.000Z | LeetCode/0090. Subsets II/solution.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | null | null | null | LeetCode/0090. Subsets II/solution.cpp | InnoFang/Algorithm-Library | 1896b9d8b1fa4cd73879aaecf97bc32d13ae0169 | [
"Apache-2.0"
] | 6 | 2020-03-16T23:00:06.000Z | 2022-01-13T07:02:08.000Z | /**
* 19 / 19 test cases passed.
* Runtime: 0 ms
* Memory Usage: 7.3 MB
*/
class Solution {
public:
vector<vector<int>> subsetsWithDup(vector<int>& nums) {
vector<vector<int>> ans;
vector<int> path;
sort(nums.begin(), nums.end());
dfs(0, nums, ans, path);
return ans;
... | 26.571429 | 89 | 0.497312 | [
"vector"
] |
eaaa2bf7957f506473ab027556b7f57d3b4d905f | 2,947 | cpp | C++ | src/rendering/shader_module.cpp | XxAdi101xX/VulkRender | 032be7c4e408b7557a7c2f915e9bc27956005488 | [
"MIT"
] | 5 | 2021-06-26T03:28:22.000Z | 2022-02-28T18:53:59.000Z | src/rendering/shader_module.cpp | XxAdi101xX/VulkRender | 032be7c4e408b7557a7c2f915e9bc27956005488 | [
"MIT"
] | null | null | null | src/rendering/shader_module.cpp | XxAdi101xX/VulkRender | 032be7c4e408b7557a7c2f915e9bc27956005488 | [
"MIT"
] | null | null | null | /* Copyright (c) 2020 Adithya Venkatarao
*
* 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... | 27.801887 | 184 | 0.723448 | [
"vector"
] |
eab2fdebc600ed8aa113d1a9f9f5f77c36fe0c3a | 7,425 | cpp | C++ | vm/rtda/thread/Thread.cpp | aidaka/KayoVM | e86ddb705ebf798f7e9f04a41ab64ca63a7f13f6 | [
"MIT"
] | 1 | 2019-12-09T02:54:51.000Z | 2019-12-09T02:54:51.000Z | vm/rtda/thread/Thread.cpp | aidaka/KayoVM | e86ddb705ebf798f7e9f04a41ab64ca63a7f13f6 | [
"MIT"
] | null | null | null | vm/rtda/thread/Thread.cpp | aidaka/KayoVM | e86ddb705ebf798f7e9f04a41ab64ca63a7f13f6 | [
"MIT"
] | null | null | null | /*
* Author: kayo
*/
#include <pthread.h>
#include "../../debug.h"
#include "Thread.h"
#include "../heap/Object.h"
#include "../../interpreter/interpreter.h"
#include "../heap/StringObject.h"
#include "../../loader/bootstrap_class_loader.h"
#include "../../symbol.h"
#include "../../kayo.h"
#include "../ma/Class.h"
#... | 26.423488 | 109 | 0.679461 | [
"object"
] |
eab5fcfb397b8482c34f4cb91d936553a1fb74a0 | 6,548 | hpp | C++ | OpenCLExample/inc/JC/util.hpp | zwakrim/mastethesis | c687e2389dbb81f50066aef881076161aa3079b9 | [
"MIT"
] | null | null | null | OpenCLExample/inc/JC/util.hpp | zwakrim/mastethesis | c687e2389dbb81f50066aef881076161aa3079b9 | [
"MIT"
] | null | null | null | OpenCLExample/inc/JC/util.hpp | zwakrim/mastethesis | c687e2389dbb81f50066aef881076161aa3079b9 | [
"MIT"
] | null | null | null | #ifndef __JC_UTIL_H__
#define __JC_UTIL_H__
#include <exception>
#include <iostream>
#include <fstream>
#include <sstream>
#define __CL_ENABLE_EXCEPTIONS
#include <CL/cl.hpp>
namespace jc {
std::string fileToString(const std::string& file_name) {
std::string file_text;
std::ifstream file_st... | 35.586957 | 149 | 0.644166 | [
"vector"
] |
ead86176a76dc9e2f2622e391a2328c7c9f3cd04 | 5,532 | hxx | C++ | main/cosv/inc/cosv/tpl/dyn.hxx | jimjag/openoffice | 74746a22d8cc22b031b00fcd106f4496bf936c77 | [
"Apache-2.0"
] | 1 | 2019-12-27T19:25:34.000Z | 2019-12-27T19:25:34.000Z | main/cosv/inc/cosv/tpl/dyn.hxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 1 | 2019-11-25T04:29:25.000Z | 2019-11-25T04:29:25.000Z | main/cosv/inc/cosv/tpl/dyn.hxx | ackza/openoffice | d49dfe9c625750e261c7ed8d6ccac8d361bf3418 | [
"Apache-2.0"
] | 6 | 2019-11-19T00:28:25.000Z | 2019-11-22T06:48:49.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... | 23.540426 | 82 | 0.637202 | [
"object"
] |
eadbf344e5c7a56679ad357d2e330e8ec3118b5d | 771 | cpp | C++ | src/ExitButton.cpp | eXpl0it3r/Synth-Guitar | ecc387683c45a234d0e4fe90af3786125686662e | [
"MIT"
] | 4 | 2016-04-20T01:27:02.000Z | 2018-07-14T21:51:52.000Z | src/ExitButton.cpp | eXpl0it3r/LD48-32 | ecc387683c45a234d0e4fe90af3786125686662e | [
"MIT"
] | null | null | null | src/ExitButton.cpp | eXpl0it3r/LD48-32 | ecc387683c45a234d0e4fe90af3786125686662e | [
"MIT"
] | 1 | 2018-12-06T18:35:14.000Z | 2018-12-06T18:35:14.000Z | #include "ExitButton.hpp"
ExitButton::ExitButton()
: Animation{"res/exit.json"}
{
m_animator.playAnimation("steady", true);
}
void ExitButton::texture(const sf::Texture& texture)
{
m_sprite.setTexture(texture, true);
}
void ExitButton::update(sf::Time dt)
{
m_animator.update(dt);
m_animator.animate(m... | 19.275 | 83 | 0.71725 | [
"transform"
] |
eadd1594ee5ba7cc85cc07c997df44a198dfa69c | 3,173 | cpp | C++ | test/optional/casts.cpp | vinzenz/fcppt | 3f8cc5babdee178a9bbd06ca3ce7ad405d19aa6a | [
"BSL-1.0"
] | null | null | null | test/optional/casts.cpp | vinzenz/fcppt | 3f8cc5babdee178a9bbd06ca3ce7ad405d19aa6a | [
"BSL-1.0"
] | null | null | null | test/optional/casts.cpp | vinzenz/fcppt | 3f8cc5babdee178a9bbd06ca3ce7ad405d19aa6a | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2016.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <fcppt/make_cref.hpp>
#include <fcppt/make_ref.hpp>
#include <fcppt/noncopyable.hpp>
#inc... | 14.488584 | 61 | 0.730539 | [
"object"
] |
eae8b6a62f9b385c770134a295174c228a4eae21 | 5,916 | cc | C++ | src/google_translate.cc | yydcnjjw/MyTranslation | 38d2509875c9e8245f6df569bb47290f07872183 | [
"Apache-2.0"
] | null | null | null | src/google_translate.cc | yydcnjjw/MyTranslation | 38d2509875c9e8245f6df569bb47290f07872183 | [
"Apache-2.0"
] | null | null | null | src/google_translate.cc | yydcnjjw/MyTranslation | 38d2509875c9e8245f6df569bb47290f07872183 | [
"Apache-2.0"
] | null | null | null | #include "google_translate.h"
#include <string>
#include <vector>
#include <regex>
#include <locale>
#include <codecvt>
#include <qdebug.h>
#include <qjsonarray.h>
#include <qjsondocument.h>
#include <qjsonobject.h>
#include <http_util.h>
namespace MyTranslation {
namespace {
typedef std::pair<ulong, ulong> TKK_t;... | 30.65285 | 79 | 0.488168 | [
"vector"
] |
eaf7ef7f79eb0f9eba718b21f0e44f76cb874975 | 1,850 | cpp | C++ | codes/HDU/hdu5521.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5521.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/HDU/hdu5521.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <queue>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long ll;
const int maxn = 2 * 1e5 + 5;
const int maxm = 1e6 + 5;
const ll inf = 0x3f3f3f3f3f3f3f3f;
int N, M, T[maxm];
ll dp[2][maxn];
vector<int> G[maxn], E[maxm];
bool flag[maxm], used[maxn... | 18.686869 | 58 | 0.49027 | [
"vector"
] |
46adbe74a5afbad107543109ab95e8de9c42ae1c | 835 | hpp | C++ | allocgc/include/liballocgc/details/collectors/gc_new_stack_entry.hpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | allocgc/include/liballocgc/details/collectors/gc_new_stack_entry.hpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | 2 | 2017-01-17T16:24:59.000Z | 2017-06-08T17:39:26.000Z | allocgc/include/liballocgc/details/collectors/gc_new_stack_entry.hpp | eucpp/allocgc | 8d134d58515e0e2a7348fdd1fdbe8c2e8423cfef | [
"Apache-2.0"
] | null | null | null | #ifndef ALLOCGC_GC_NEW_STACK_ENTRY_HPP
#define ALLOCGC_GC_NEW_STACK_ENTRY_HPP
#include <cstddef>
#include <vector>
#include <memory>
#include <liballocgc/gc_common.hpp>
#include <liballocgc/details/allocators/gc_memory_descriptor.hpp>
namespace allocgc { namespace details { namespace collectors {
struct gc_new_stac... | 26.09375 | 95 | 0.725749 | [
"vector"
] |
46afdc9a5c188f56761fcdd1e920960545c93c2f | 340 | cc | C++ | algo/lc.26.cc | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | algo/lc.26.cc | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | algo/lc.26.cc | cdluminate/MyNotes | cf28f2a3fa72723153147e21fed5e7b598baf44f | [
"CC0-1.0"
] | null | null | null | class Solution {
public:
int removeDuplicates(vector<int>& nums) {
if (nums.empty()) return 0;
int idx = 0;
for (int i = 0; i < nums.size(); i++) {
if (nums[i] != nums[idx]) {
++idx;
nums[idx] = nums[i];
}
}
ret... | 21.25 | 47 | 0.391176 | [
"vector"
] |
46b481b4aa4961e56378098e8a9f35ae71f4efd5 | 1,288 | hpp | C++ | include/Parser/CondStmt.hpp | Electrux/alacrity-lang | 2931533c0f393cf2d2500ac0848da452fbc19295 | [
"BSD-3-Clause"
] | 15 | 2019-03-21T14:37:17.000Z | 2021-11-14T20:35:46.000Z | include/Parser/CondStmt.hpp | Electrux/alacrity-lang | 2931533c0f393cf2d2500ac0848da452fbc19295 | [
"BSD-3-Clause"
] | null | null | null | include/Parser/CondStmt.hpp | Electrux/alacrity-lang | 2931533c0f393cf2d2500ac0848da452fbc19295 | [
"BSD-3-Clause"
] | 5 | 2019-02-02T10:18:04.000Z | 2021-05-06T16:34:04.000Z | /*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#ifndef PARSER_COND_STMT_HPP
#define PARSER_COND_STMT_HPP
#... | 18.140845 | 129 | 0.703416 | [
"vector"
] |
46bba02b20805d2ce29ab44bd6ed2794bf2dfde9 | 4,591 | cpp | C++ | Source/Lightrail/TerminalListing.cpp | xylamic/lightrail-pubsub-integration-framework | a7abc543982dca46119c0135af1d31c6f182797c | [
"MIT"
] | 1 | 2019-08-25T13:47:18.000Z | 2019-08-25T13:47:18.000Z | Source/Lightrail/TerminalListing.cpp | xylamic/lightrail-pubsub-integration-framework | a7abc543982dca46119c0135af1d31c6f182797c | [
"MIT"
] | null | null | null | Source/Lightrail/TerminalListing.cpp | xylamic/lightrail-pubsub-integration-framework | a7abc543982dca46119c0135af1d31c6f182797c | [
"MIT"
] | null | null | null | /*!
@file TerminalListing.cpp
@author Adam Jordan
This file is part of the Xylasoft Lightrail product.
Copyright (c) 2011 Adam Jordan, Xylasoft, All Rights Reserved
http://www.xylasoft.com
Licensed for use under the MIT License
See accompanying LICENSE file for more information
*/
#include "TerminalListing.h"
#def... | 22.955 | 139 | 0.724679 | [
"vector"
] |
46bccdccc48b5410fbac07c37f5f670aa0dd5190 | 39,082 | cpp | C++ | ImageProcessingFilters/util/DetermineStitching.cpp | dzenanz/ImageProcessing | ff0cff23b022276f4b6743c4f22d4e648c65cfd9 | [
"BSD-2-Clause"
] | null | null | null | ImageProcessingFilters/util/DetermineStitching.cpp | dzenanz/ImageProcessing | ff0cff23b022276f4b6743c4f22d4e648c65cfd9 | [
"BSD-2-Clause"
] | null | null | null | ImageProcessingFilters/util/DetermineStitching.cpp | dzenanz/ImageProcessing | ff0cff23b022276f4b6743c4f22d4e648c65cfd9 | [
"BSD-2-Clause"
] | null | null | null | /* ============================================================================
* Copyright (c) 2014 Michael A. Jackson (BlueQuartz Software)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
... | 44.563284 | 244 | 0.687222 | [
"vector"
] |
46c5e6ef93e71280bb3b0ffca2a51845739f7bf1 | 870 | hpp | C++ | src/headers/vector_life.hpp | HrvojeFER/cpp_bench | f3657e58255b14ff256a4a892c790bd813fab850 | [
"MIT"
] | null | null | null | src/headers/vector_life.hpp | HrvojeFER/cpp_bench | f3657e58255b14ff256a4a892c790bd813fab850 | [
"MIT"
] | null | null | null | src/headers/vector_life.hpp | HrvojeFER/cpp_bench | f3657e58255b14ff256a4a892c790bd813fab850 | [
"MIT"
] | null | null | null | TEST_CASE("vector life")
{
std::vector<int> nil{};
SUBCASE("nil")
{
REQUIRE_EQ(nil.size(), 0);
REQUIRE_EQ(nil.begin().base(), nullptr);
}
SUBCASE("copy nil")
{
std::vector<int> nil_copy{nil};
REQUIRE_EQ(nil_copy.size(), 0);
}
SUBCASE("move nil")
{
... | 22.307692 | 53 | 0.508046 | [
"vector"
] |
46c82db2067003d60c8a55a62a5b47da56e81367 | 18,752 | hpp | C++ | legacy/include/distconv/util/util_cuda.hpp | bvanessen/DiHydrogen | 62e52e22184556a028750bb73d8aed92cedb8884 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-01-06T17:26:58.000Z | 2021-12-11T01:17:43.000Z | legacy/include/distconv/util/util_cuda.hpp | bvanessen/DiHydrogen | 62e52e22184556a028750bb73d8aed92cedb8884 | [
"ECL-2.0",
"Apache-2.0"
] | 7 | 2020-02-26T06:07:42.000Z | 2022-02-15T22:51:36.000Z | legacy/include/distconv/util/util_cuda.hpp | bvanessen/DiHydrogen | 62e52e22184556a028750bb73d8aed92cedb8884 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2020-01-06T18:08:42.000Z | 2021-07-26T14:53:07.000Z | #pragma once
#include "distconv_config.hpp"
#include "distconv/util/util_mpi.hpp"
#include "distconv/runtime.hpp"
#include "distconv/runtime_cuda.hpp"
#include <cstdlib>
#include <cassert>
#include <cuda_runtime.h>
#include <vector>
#include <iostream>
#include <cfloat>
#include "nvToolsExt.h"
#define DISTCONV_CHEC... | 40.154176 | 111 | 0.443473 | [
"vector"
] |
46c9c2fc87c5d7a4d2c6bf6183de145d9b7030ef | 1,048 | cpp | C++ | sample/api.cpp | SpM-lab/irbasis | 5beb5cbe3c0ba0fb42c32e262f04d1f3359d6045 | [
"MIT"
] | 17 | 2018-07-16T15:07:09.000Z | 2022-03-26T06:46:55.000Z | sample/api.cpp | SpM-lab/irbasis | 5beb5cbe3c0ba0fb42c32e262f04d1f3359d6045 | [
"MIT"
] | 3 | 2019-09-19T07:12:01.000Z | 2020-02-14T11:54:03.000Z | sample/api.cpp | SpM-lab/irbasis | 5beb5cbe3c0ba0fb42c32e262f04d1f3359d6045 | [
"MIT"
] | 6 | 2019-01-28T19:51:50.000Z | 2021-08-02T12:57:14.000Z | #include <iostream>
#include <vector>
#include "irbasis.hpp"
int main() {
double Lambda = 1000.0;
double x = 1.0;
double y = 1.0;
int l = 0;
irbasis::basis b = irbasis::load("F", Lambda, "./irbasis.h5");
//Dimensions of basis
std::cout << b.dim() << std::endl;
//u_l(x = 1) and... | 27.578947 | 89 | 0.523855 | [
"vector"
] |
46ce884472f5860d6b8a12f01a3d8a0f87bac44c | 2,278 | cc | C++ | Noob_Examples/TempCode/deep-learning/cifar/10/lkmtue/main.cc | robgrzel/OpenMPI_Examples | c9643a958bfbfcfcaeb413bf42e5080c6f0c1df5 | [
"BSD-2-Clause"
] | null | null | null | Noob_Examples/TempCode/deep-learning/cifar/10/lkmtue/main.cc | robgrzel/OpenMPI_Examples | c9643a958bfbfcfcaeb413bf42e5080c6f0c1df5 | [
"BSD-2-Clause"
] | null | null | null | Noob_Examples/TempCode/deep-learning/cifar/10/lkmtue/main.cc | robgrzel/OpenMPI_Examples | c9643a958bfbfcfcaeb413bf42e5080c6f0c1df5 | [
"BSD-2-Clause"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include "conv_layer.h"
#include "data.h"
#include "fully_connected_layer.h"
#include "input_layer.h"
#include "layer.h"
#include "max_pooling_layer.h"
#include "net.h"
#include "util.h"
#include "softmax_loss_layer.h"
#include "relu_layer.h"
#include "average_p... | 33.014493 | 134 | 0.700615 | [
"vector"
] |
46d15033148f3953c297a9c8eaefcf8a7539ada1 | 2,558 | cc | C++ | examples/open_lennard_jones_droplet.cc | snsinfu/openmm-experiments | 6f8c5137d615bf3df84db8eb30b9fc0dffefa72f | [
"MIT"
] | null | null | null | examples/open_lennard_jones_droplet.cc | snsinfu/openmm-experiments | 6f8c5137d615bf3df84db8eb30b9fc0dffefa72f | [
"MIT"
] | null | null | null | examples/open_lennard_jones_droplet.cc | snsinfu/openmm-experiments | 6f8c5137d615bf3df84db8eb30b9fc0dffefa72f | [
"MIT"
] | null | null | null | #include <cassert>
#include <cstddef>
#include <iostream>
#include <random>
#include <string>
#include <utility>
#include <vector>
#include <OpenMM.h>
int main()
{
double const temperature = 300.0; // kelvin
double const thermal_energy = 0.00831445986 * temperature; // kJ/mol
double const lennard_jones_ep... | 35.527778 | 91 | 0.650508 | [
"vector"
] |
46d66ef0caa578c593f3ba6b111bcd9b3df860e9 | 1,726 | cpp | C++ | src/perceptron.cpp | GuillermoUrcera/ml | e406fb2f57369b1ddfc66cbe34d78159df448faa | [
"MIT"
] | 1 | 2017-04-11T16:13:57.000Z | 2017-04-11T16:13:57.000Z | src/perceptron.cpp | GuillermoUrcera/ml | e406fb2f57369b1ddfc66cbe34d78159df448faa | [
"MIT"
] | null | null | null | src/perceptron.cpp | GuillermoUrcera/ml | e406fb2f57369b1ddfc66cbe34d78159df448faa | [
"MIT"
] | null | null | null | #include "perceptron.h"
#include <math.h> // tanh
#include <iostream>
Eigen::Vector3d Perceptron::get_weights() const{return this->weights;}
Eigen::Vector2d Perceptron::get_line() const{
Eigen::Vector2d A(-this->weights(0)/this->weights(2),-this->weights(1)/this->weights(2)); //y = -w1/w3 -(w2/w3)*x
ret... | 25.014493 | 117 | 0.618192 | [
"vector"
] |
46e1fca3044f39dbf6dc8a06bc0ad005b19fd285 | 7,507 | cpp | C++ | userarea.cpp | Poom1997/LIMA | c90657d83caa57457f521ca5b6d997dba251363c | [
"MIT"
] | null | null | null | userarea.cpp | Poom1997/LIMA | c90657d83caa57457f521ca5b6d997dba251363c | [
"MIT"
] | null | null | null | userarea.cpp | Poom1997/LIMA | c90657d83caa57457f521ca5b6d997dba251363c | [
"MIT"
] | null | null | null | //--------------------------------------------------//
// Bhurinuth Wongsrisakul ID:58090030 (SY2015/2) //
// 7th SE KMITL (Object Oriented Programing Project)//
// LIMA - LIbrary Management and Administration //
// Filename: userarea.cpp Type: Source File //
//-------------------------------------------... | 31.279167 | 224 | 0.597442 | [
"object"
] |
46e449cb22939c534e8e601d27c0fa216a7dbe37 | 1,285 | cpp | C++ | CMinus/CMinus/node/node_object.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/node/node_object.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/node/node_object.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | #include "../type/class_type.h"
#include "../storage/global_storage.h"
#include "node_object.h"
cminus::node::object::~object() = default;
std::size_t cminus::node::object::get_list_count() const{
return 1u;
}
void cminus::node::object::traverse_list(const std::function<void(const object &)> &callback) const{
cal... | 29.204545 | 140 | 0.7393 | [
"object",
"vector"
] |
46f9f092d96e6fda93b5d3578e9251022f869536 | 26,947 | cpp | C++ | ParticleSystem.cpp | havokentity/Reaction-Engine-Renderer | cb0452d81da6a6baf8a681141fcc8e1ba0e04b14 | [
"MIT"
] | 2 | 2020-03-09T18:48:54.000Z | 2020-05-14T03:58:45.000Z | ParticleSystem.cpp | havokentity/Reaction-Engine-Renderer | cb0452d81da6a6baf8a681141fcc8e1ba0e04b14 | [
"MIT"
] | null | null | null | ParticleSystem.cpp | havokentity/Reaction-Engine-Renderer | cb0452d81da6a6baf8a681141fcc8e1ba0e04b14 | [
"MIT"
] | null | null | null | /*
Description: Particle system source file
classes contained are:
class ParticleSystem
*/
#include "ParticleSystem.h"
#include "CoreEngine.h"
namespace DifferentialArts
{
/*
==============================================
ParticleSystem Class
==============================================
*/
ParticleSys... | 26.893214 | 134 | 0.637325 | [
"render",
"vector"
] |
20006c480480a75406518402695ba1a727420ff2 | 1,842 | cc | C++ | cc/fmt.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/fmt.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/fmt.cc | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | #include "acmacs-base/fmt.hh"
#include "acmacs-base/log.hh"
// ----------------------------------------------------------------------
std::vector<std::pair<std::string_view, std::string_view>> fmt::split_for_formatting(std::string_view source)
{
std::vector<std::pair<std::string_view, std::string_view>> result;
... | 40.043478 | 110 | 0.472856 | [
"vector"
] |
2001b2b38cae3342034ee4b888b173b873e62a5a | 779 | cpp | C++ | Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/three_sum_closest.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/three_sum_closest.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | Basic Algorithms/Two Pointers/Running from both ends of array/Two Sum Format/three_sum_closest.cpp | khushisinha20/Data-Structures-and-Algorithms | 114d365d03f7ba7175eefeace281972820a7fc76 | [
"Apache-2.0"
] | null | null | null | //leetcode.com/problems/3sum-closest/
#include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int threeSumClosest(vector<int>& nums, int target) {
sort(nums.begin(), nums.end());
int result = nums[0] + nums[1] + nums[nums.size() - 1];
for (int i = 0; i < nums.size() - 2; ++i... | 29.961538 | 69 | 0.460847 | [
"vector"
] |
2007124deae747de74324e1cb688e9820562d3e5 | 4,705 | cpp | C++ | src/archive_write.cpp | jeroen/archive | 3430639c30e621d4c76df6246a851f73349a80a9 | [
"MIT"
] | 98 | 2017-03-08T10:34:44.000Z | 2021-01-07T14:23:34.000Z | src/archive_write.cpp | jeroen/archive | 3430639c30e621d4c76df6246a851f73349a80a9 | [
"MIT"
] | 38 | 2017-03-10T22:40:19.000Z | 2021-06-16T15:38:23.000Z | src/archive_write.cpp | jeroen/archive | 3430639c30e621d4c76df6246a851f73349a80a9 | [
"MIT"
] | 14 | 2018-04-11T14:43:04.000Z | 2021-01-06T20:53:45.000Z | #include "r_archive.h"
#include <fcntl.h>
#include <string.h>
#include <vector>
std::string my_basename(std::string const& str) {
std::size_t found = str.find_last_of("/\\");
return str.substr(found + 1);
}
/* callback function to store received data */
static size_t
rchive_write_data(const void* contents, size_t... | 25.570652 | 80 | 0.676727 | [
"vector"
] |
200d8ab7ff9c0b8cf0be3ddeb4d01f54bdb54a2e | 3,302 | cpp | C++ | src/3rdparty/qt-components/tests/auto/qdatetimemodel/tst_qdatetimemodel.cpp | qtmediahub/qtmediahub-ruins | 844c71dbd7bcbd94a6ba76b952b7d1850e3ddc67 | [
"BSD-3-Clause"
] | null | null | null | src/3rdparty/qt-components/tests/auto/qdatetimemodel/tst_qdatetimemodel.cpp | qtmediahub/qtmediahub-ruins | 844c71dbd7bcbd94a6ba76b952b7d1850e3ddc67 | [
"BSD-3-Clause"
] | null | null | null | src/3rdparty/qt-components/tests/auto/qdatetimemodel/tst_qdatetimemodel.cpp | qtmediahub/qtmediahub-ruins | 844c71dbd7bcbd94a6ba76b952b7d1850e3ddc67 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Components project on Qt Labs.
**
** No Commercial Usage
** Th... | 28.222222 | 88 | 0.668383 | [
"model"
] |
2018df65555a73dcb51725f4ca583e465bf5333a | 1,378 | cpp | C++ | src/day05.cpp | AdamOttvar/AoC_2020 | 9f993e72e871f6cbd4f4d10c097cc0d4aff79d33 | [
"MIT"
] | null | null | null | src/day05.cpp | AdamOttvar/AoC_2020 | 9f993e72e871f6cbd4f4d10c097cc0d4aff79d33 | [
"MIT"
] | null | null | null | src/day05.cpp | AdamOttvar/AoC_2020 | 9f993e72e871f6cbd4f4d10c097cc0d4aff79d33 | [
"MIT"
] | null | null | null | //
// Created by AdamOttvar on 2020-12-05
//
#include "day05.h"
#include <algorithm>
#include <iterator>
#include <math.h>
#include <set>
#include <vector>
int day05(bool part_two) {
#ifndef AoC_RUN_TEST
cout << "AoC day05: part " << (part_two ? "two" : "one") << endl;
#endif
auto boardingPasses = AoC::read_f... | 27.56 | 111 | 0.576197 | [
"vector"
] |
45d34ec0510ed75e6fbd5796676f61125954e4f9 | 1,205 | cpp | C++ | 017#letter-combinations-of-a-phone-number/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 017#letter-combinations-of-a-phone-number/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | 017#letter-combinations-of-a-phone-number/solution.cpp | llwwns/leetcode_solutions | e352c9bf6399ab3ee0f23889e70361c9f2a3bd33 | [
"MIT"
] | null | null | null | class Solution {
const static char * const letter_map[10];
public:
vector<string> letterCombinations(string digits) {
vector<string> ans;
if (digits.length() == 0) return ans;
for (char& c:digits) {
c -= '0';
}
string cur;
vector<const char*>... | 24.591837 | 63 | 0.370954 | [
"vector"
] |
45e3fd4c4cd09a14e47b915e4e7cbb592d2d1afb | 8,493 | cpp | C++ | sc_tool/lib/sc_tool/cthread/ScThreadVerilogGen.cpp | chmodJack/systemc-compiler | ef59ab45b90485ce38084e084834d5fd205934f6 | [
"Apache-2.0"
] | 1 | 2021-05-19T02:24:58.000Z | 2021-05-19T02:24:58.000Z | sc_tool/lib/sc_tool/cthread/ScThreadVerilogGen.cpp | chmodJack/systemc-compiler | ef59ab45b90485ce38084e084834d5fd205934f6 | [
"Apache-2.0"
] | null | null | null | sc_tool/lib/sc_tool/cthread/ScThreadVerilogGen.cpp | chmodJack/systemc-compiler | ef59ab45b90485ce38084e084834d5fd205934f6 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* Copyright (c) 2020, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception.
*
*****************************************************************************/
/**
* Author: Roman Popov
... | 30.883636 | 84 | 0.53809 | [
"vector"
] |
45e5ad6ef916cbc161440d49ba5ea93f0841ab50 | 1,096 | hpp | C++ | src/tgo.hpp | pan3rock/tgo1d-cxx | 9553b48279c918e0f19ca3a22538caf1a2eff296 | [
"MIT"
] | null | null | null | src/tgo.hpp | pan3rock/tgo1d-cxx | 9553b48279c918e0f19ca3a22538caf1a2eff296 | [
"MIT"
] | null | null | null | src/tgo.hpp | pan3rock/tgo1d-cxx | 9553b48279c918e0f19ca3a22538caf1a2eff296 | [
"MIT"
] | null | null | null | //
// Created by lei on 4/21/19.
//
#ifndef TGO1D_CXX_TGO_HPP
#define TGO1D_CXX_TGO_HPP
#include <vector>
#include <functional>
#include <armadillo>
struct OptimizeResult {
OptimizeResult(const arma::vec &xl,
const arma::vec &fl,
double x, double f);
// copy and move
... | 22.367347 | 71 | 0.619526 | [
"vector"
] |
45f8110a2918db4ef5f8bd4dc39e36a5fd059aba | 30,233 | cc | C++ | apps/rosetta/riflib/HBondedPairGenerator.cc | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 25 | 2019-07-23T01:03:48.000Z | 2022-03-31T04:16:08.000Z | apps/rosetta/riflib/HBondedPairGenerator.cc | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 13 | 2018-01-30T17:45:57.000Z | 2022-03-28T11:02:44.000Z | apps/rosetta/riflib/HBondedPairGenerator.cc | YaoYinYing/rifdock | cbde6bbeefd29a066273bdf2937cf36b0d2e6335 | [
"Apache-2.0"
] | 14 | 2018-02-08T01:42:28.000Z | 2022-03-31T12:56:17.000Z | // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
// vi: set ts=2 noet:
#include <riflib/HBondedPairGenerator.hh>
#include <core/pack/rotamers/SingleResidueRotamerLibrary.hh>
#include <core/pack/rotamers/SingleResidueRotamerLibraryFactory.hh>
#include <Eigen/Geometry>
... | 43.066952 | 168 | 0.629709 | [
"geometry",
"vector"
] |
3406879ac36daf897bc144b5e44806255c39fc74 | 2,383 | cpp | C++ | 2017/Round1-A/B.cpp | e-soroush/code-jam | 239df120fbdf7f2f73c940076072c8eebf14dbb0 | [
"MIT"
] | null | null | null | 2017/Round1-A/B.cpp | e-soroush/code-jam | 239df120fbdf7f2f73c940076072c8eebf14dbb0 | [
"MIT"
] | null | null | null | 2017/Round1-A/B.cpp | e-soroush/code-jam | 239df120fbdf7f2f73c940076072c8eebf14dbb0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <math.h>
#include <tuple>
#include <algorithm>
int solve() {
int n,p;
std::cin >> n >> p;
std::vector<int> recipe(n);
std::vector<std::vector<int>> packages(n);
std::vector<std::vector<std::vector<int>>> servingCount(n);
for (int i=0; i<n; ++i){
... | 29.060976 | 102 | 0.435166 | [
"vector"
] |
34087dac9f048233ed2c68d43bf70d7a29f7ac9e | 1,116 | cpp | C++ | Codejam/2015/1C/A.cpp | zzh8829/CompetitiveProgramming | 36f36b10269b4648ca8be0b08c2c49e96abede25 | [
"MIT"
] | 1 | 2017-10-01T00:51:39.000Z | 2017-10-01T00:51:39.000Z | Codejam/2015/1C/A.cpp | zzh8829/CompetitiveProgramming | 36f36b10269b4648ca8be0b08c2c49e96abede25 | [
"MIT"
] | null | null | null | Codejam/2015/1C/A.cpp | zzh8829/CompetitiveProgramming | 36f36b10269b4648ca8be0b08c2c49e96abede25 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#inc... | 18.915254 | 70 | 0.613799 | [
"vector"
] |
3413f0e21e438ade217863f0640cc2c511b2c487 | 64,163 | hpp | C++ | src/poutreImageProcessingPixelOperation/include/poutreImageProcessingCompare.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreImageProcessingPixelOperation/include/poutreImageProcessingCompare.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | src/poutreImageProcessingPixelOperation/include/poutreImageProcessingCompare.hpp | ThomasRetornaz/poutre | 21717ce1da24515dd208f711d6e7c38095ba8ecf | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright (c) 2015 - Thomas Retornaz //
// thomas.retornaz@mines-paris.org //
// Distributed under the Boost Software License, Version 1.0. ... | 38.863113 | 273 | 0.553699 | [
"transform"
] |
3427ae9c815e2441b1a77cdc602f47424d7cd16b | 1,320 | cpp | C++ | ch04/u508.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u508.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u508.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <string>
#include <map>
#include <sstream>
#include <vector>
#include <unordered_map>
using namespace std;
unordered_map<char, string> morse; // morse code for each character
unordered_map<string, vector<string> > context; // corresponding context
// check if a is prefix... | 20.952381 | 72 | 0.584091 | [
"vector"
] |
3428c9be4279a0a352de9856e1b44c81baa40408 | 5,368 | cpp | C++ | private/windows/shell/accessib/magnify/magnify/magnify.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 11 | 2017-09-02T11:27:08.000Z | 2022-01-02T15:25:24.000Z | private/windows/shell/accessib/magnify/magnify/magnify.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | null | null | null | private/windows/shell/accessib/magnify/magnify/magnify.cpp | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | // Magnify.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "Magnify.h"
#include "MagDlg.h"
#include <ole2.h>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
static BOOL AssignDesktop(LPDWORD desktopID, LPTSTR pname)... | 26.44335 | 89 | 0.634501 | [
"object"
] |
342b9cfa8fd6e945e01cb0a6174ff7e4255483fe | 1,383 | cpp | C++ | uva1331Minimax Triangulation/2016.11.28.3.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | uva1331Minimax Triangulation/2016.11.28.3.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | uva1331Minimax Triangulation/2016.11.28.3.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<stack>
#include<set>
#include<map>
#include<queue>
#include<algorithm>
using namespace std;
double dp[55][55];
struct stu{
int x,y;
}node[55];
int m;
double area(struct stu a,struct stu b,struct stu c){... | 24.263158 | 137 | 0.457701 | [
"vector"
] |
342fa5c011079c8c2e61ef4e924bda51667ba892 | 5,335 | cpp | C++ | CPP_files/header/Cipher.cpp | Shubham18145/Iotlowcost | 127b414854b8b1bcc44a4e7ed3a9cec5a753dab3 | [
"MIT"
] | null | null | null | CPP_files/header/Cipher.cpp | Shubham18145/Iotlowcost | 127b414854b8b1bcc44a4e7ed3a9cec5a753dab3 | [
"MIT"
] | null | null | null | CPP_files/header/Cipher.cpp | Shubham18145/Iotlowcost | 127b414854b8b1bcc44a4e7ed3a9cec5a753dab3 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2015 Southern Storm Software, Pty Ltd.
*
* 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.980892 | 78 | 0.723524 | [
"object",
"vector"
] |
3432a05b96c1c87aa510e58fb6c4db77baff231f | 1,221 | cpp | C++ | vm/emu.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | vm/emu.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | vm/emu.cpp | lemoniac/arca | f21953a95711a1b194cc0da81f9d6d108b25868b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <vector>
#include <SDL2/SDL.h>
#include "opcodes.h"
#include "vm.h"
#include "gpu.h"
int main(int argc, char **argv)
{
unsigned delay = 0;
bool gpuEnabled = true;
bool screenshot = false;
for(; argc > 1 && argv[1][0] == '-'; argc--, argv++)
{
... | 20.016393 | 60 | 0.530713 | [
"vector"
] |
3439656abb556a3d975d9f6563e67921ebd8eb82 | 237 | cpp | C++ | LeetCode/268.Missing_Number.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | LeetCode/268.Missing_Number.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | LeetCode/268.Missing_Number.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | class Solution {
public:
int missingNumber(vector<int>& nums) {
int ans = (nums.size() + 1) * nums.size() / 2;
for(int i = 0; i < nums.size(); ++i) ans -= nums[i];
return ans;
}
};
| 26.333333 | 64 | 0.451477 | [
"vector"
] |
3439b05387a312351485c497394316ae3511c95b | 2,187 | hpp | C++ | AVHeaders.hpp | dcmcilrath/AtomView | 0f0e005a02f0776746e80d914c2890c079e1ffef | [
"MIT"
] | null | null | null | AVHeaders.hpp | dcmcilrath/AtomView | 0f0e005a02f0776746e80d914c2890c079e1ffef | [
"MIT"
] | null | null | null | AVHeaders.hpp | dcmcilrath/AtomView | 0f0e005a02f0776746e80d914c2890c079e1ffef | [
"MIT"
] | null | null | null | /*
File: Headers.hpp
Project: AtomView
Author: Douglas C. McIlrath
Date: November 2013
Contents:
C/C++ Libraries used by program
OpenGL Libraries used by program
Class Listing
Internal program header files
Global functions
Global variables
*/
#ifndef AVHEADERS_HPP
#define AVHEADERS_HPP
// C/C++ Li... | 19.353982 | 89 | 0.719707 | [
"vector"
] |
34459ca4007000b8e6d3397fd0509a69d8bd16c3 | 1,273 | hpp | C++ | src/pktsource/PktSource.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | 4 | 2020-07-21T12:34:26.000Z | 2020-12-09T16:51:33.000Z | src/pktsource/PktSource.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | null | null | null | src/pktsource/PktSource.hpp | bonnefoa/flowstats | 64f3e2d4466596788174b508bc62838379162224 | [
"MIT"
] | 1 | 2020-07-21T12:34:31.000Z | 2020-07-21T12:34:31.000Z | #pragma once
#include "Collector.hpp"
#include "Configuration.hpp"
#include "Screen.hpp"
#include "Stats.hpp"
#include <tins/ip_address.h>
#include <tins/sniffer.h>
namespace flowstats {
auto listInterfaces() -> void;
class PktSource {
public:
PktSource(Screen* screen,
FlowstatsConfiguration const& conf... | 24.960784 | 72 | 0.665357 | [
"vector"
] |
45210fe3d7874ceac778f8ad82ed66c300fa2838 | 37,160 | hxx | C++ | include/opengm/inference/trws/smoothing_strategy.hxx | burcin/opengm | a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41 | [
"MIT"
] | null | null | null | include/opengm/inference/trws/smoothing_strategy.hxx | burcin/opengm | a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41 | [
"MIT"
] | null | null | null | include/opengm/inference/trws/smoothing_strategy.hxx | burcin/opengm | a1b21eecb93c6c5a7b11ab312d26b1c98c55ff41 | [
"MIT"
] | null | null | null | /*
* smoothing_strategy.hxx
*
* Created on: Jan 7, 2014
* Author: bsavchyn
*/
#ifndef SMOOTHING_STRATEGY_HXX_
#define SMOOTHING_STRATEGY_HXX_
#include <opengm/inference/inference.hxx>
#include <opengm/inference/trws/trws_reparametrization.hxx>
namespace opengm{
namespace trws_base{
template<class VALUETYP... | 40.523446 | 202 | 0.789989 | [
"vector"
] |
452638d5470194c91850a8889252152bc00a92e7 | 1,955 | cpp | C++ | src/order.cpp | Druggist/genetic-algorithm | 50f59019fe8c60ef6f9acab900441fb6565adef7 | [
"MIT"
] | 1 | 2016-12-31T11:03:31.000Z | 2016-12-31T11:03:31.000Z | src/order.cpp | Druggist/random_project | 50f59019fe8c60ef6f9acab900441fb6565adef7 | [
"MIT"
] | null | null | null | src/order.cpp | Druggist/random_project | 50f59019fe8c60ef6f9acab900441fb6565adef7 | [
"MIT"
] | 1 | 2017-01-31T17:02:15.000Z | 2017-01-31T17:02:15.000Z | #include "order.h"
void Order::init(vector<Task> tasks, vector<Maitenance> maitenance_v){
int machine1_ready_time = 10000, first_job_rt_pos = 0;
unsigned int iter;
if (tasks[0].get_ready_t() == 0) machine1_ready_time = 0;
else{
//finding smallest ready_time
for (unsigned int i = 0; i < tasks.size(); i++){
... | 26.780822 | 97 | 0.643478 | [
"vector"
] |
452b462e7300dcffaa12179e15a2d59379fde8e7 | 17,887 | hpp | C++ | include/jau/jni/helper_jni.hpp | sgothel/jaulib | 4257942ad783c31ff1d6a390caee4b8c264eba8e | [
"MIT"
] | null | null | null | include/jau/jni/helper_jni.hpp | sgothel/jaulib | 4257942ad783c31ff1d6a390caee4b8c264eba8e | [
"MIT"
] | null | null | null | include/jau/jni/helper_jni.hpp | sgothel/jaulib | 4257942ad783c31ff1d6a390caee4b8c264eba8e | [
"MIT"
] | null | null | null | /*
* Author: Sven Gothel <sgothel@jausoft.com>
* Copyright (c) 2020 Gothel Software e.K.
* Copyright (c) 2020 ZAFENA AB
*
* Author: Andrei Vasiliu <andrei.vasiliu@intel.com>
* Copyright (c) 2016 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this softwa... | 39.140044 | 145 | 0.637614 | [
"object",
"vector"
] |
452efe13b5bc524c42af26edfacbf451baa4eaff | 1,176 | cpp | C++ | 329-longest-increasing-path-in-a-matrix/329-longest-increasing-path-in-a-matrix.cpp | shreydevep/DSA | 688af414c1fada1b82a4b4e9506747352007c894 | [
"MIT"
] | null | null | null | 329-longest-increasing-path-in-a-matrix/329-longest-increasing-path-in-a-matrix.cpp | shreydevep/DSA | 688af414c1fada1b82a4b4e9506747352007c894 | [
"MIT"
] | null | null | null | 329-longest-increasing-path-in-a-matrix/329-longest-increasing-path-in-a-matrix.cpp | shreydevep/DSA | 688af414c1fada1b82a4b4e9506747352007c894 | [
"MIT"
] | null | null | null | class Solution {
public:
int dx[4] = {-1,1,0,0};
int dy[4] = {0,0,-1,1};
int ans[201][201];
int dfs(vector<vector<int>>& matrix,int i,int j){
if(ans[i][j] != -1){
return ans[i][j];
}
int temp = 0;
for(int k=0;k<4;++k){
if(ans[i][j] != -1){
... | 26.133333 | 76 | 0.358844 | [
"vector"
] |
4534677f753e33761ec56b8a4a4c68d7ac7a89bc | 2,536 | hpp | C++ | alignment/algorithms/alignment/SDPAlign.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 4 | 2015-07-03T11:59:54.000Z | 2018-05-17T00:03:22.000Z | alignment/algorithms/alignment/SDPAlign.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 79 | 2015-06-29T18:07:21.000Z | 2018-09-19T13:38:39.000Z | alignment/algorithms/alignment/SDPAlign.hpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 19 | 2015-06-23T08:43:29.000Z | 2021-04-28T18:37:47.000Z | #ifndef _BLASR_SDP_ALIGN_HPP_
#define _BLASR_SDP_ALIGN_HPP_
#include <alignment/algorithms/alignment/DistanceMatrixScoreFunction.hpp>
#include <alignment/algorithms/alignment/sdp/SDPFragment.hpp>
#include <alignment/tuples/TupleMatching.hpp>
#include <pbdata/DNASequence.hpp>
#include <pbdata/FASTASequence.hpp>
#includ... | 53.957447 | 96 | 0.743297 | [
"vector"
] |
45373d974351b902ce63f3cf1c8599270410e0f4 | 12,694 | cpp | C++ | tests/tests.cpp | rfree2/opentxs-cli | 14b7661e7014e9f1f001bd2c795dee667aa40f57 | [
"CC0-1.0"
] | null | null | null | tests/tests.cpp | rfree2/opentxs-cli | 14b7661e7014e9f1f001bd2c795dee667aa40f57 | [
"CC0-1.0"
] | null | null | null | tests/tests.cpp | rfree2/opentxs-cli | 14b7661e7014e9f1f001bd2c795dee667aa40f57 | [
"CC0-1.0"
] | 1 | 2021-09-14T14:09:15.000Z | 2021-09-14T14:09:15.000Z | /* See other files here for the LICENCE that applies here. */
/* See header file .hpp for info */
#include "tests.hpp"
#include <base/lib_common2.hpp>
#include <base/othint.hpp>
#include <base/otcli.hpp>
namespace nOT {
namespace nTests {
INJECT_OT_COMMON_USING_NAMESPACE_COMMON_2; // <=== namespaces
using namespa... | 34.494565 | 157 | 0.662675 | [
"vector"
] |
453a9b00f0864ed7474f3263cadfb8d75b0ed8d9 | 648 | hpp | C++ | demos/file-manager/FileManager.hpp | iboB/cef-demo | 29386b72312231634f86c03e36763f2a2dfdf064 | [
"MIT"
] | 20 | 2019-03-30T20:16:39.000Z | 2022-02-19T00:19:19.000Z | demos/file-manager/FileManager.hpp | iboB/cef-demo | 29386b72312231634f86c03e36763f2a2dfdf064 | [
"MIT"
] | 1 | 2021-03-03T20:01:49.000Z | 2021-03-04T19:51:13.000Z | demos/file-manager/FileManager.hpp | iboB/cef-demo | 29386b72312231634f86c03e36763f2a2dfdf064 | [
"MIT"
] | 3 | 2019-07-17T10:51:15.000Z | 2021-04-29T17:04:17.000Z | // CEF-Demos
// Copyright (c) 2019 Borislav Stanimirov
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// http://opensource.org/licenses/MIT
//
// GUI-agnostic file manager code
#pragma once
#include <vector>
#include <string>
namespace fileman
{
class FileManager
{
p... | 18 | 61 | 0.688272 | [
"vector"
] |
453fb6ad786ce28d14595cb67db6a15d1b456cea | 7,005 | cpp | C++ | src/Person.cpp | yusufsefasezer/cpp-shop-management | a39d8db5e51cabe045ee0a3c1054770424eb7ab2 | [
"MIT"
] | 2 | 2021-05-24T15:37:53.000Z | 2021-05-24T15:43:22.000Z | src/Person.cpp | yusufsefasezer/cpp-shop-management | a39d8db5e51cabe045ee0a3c1054770424eb7ab2 | [
"MIT"
] | null | null | null | src/Person.cpp | yusufsefasezer/cpp-shop-management | a39d8db5e51cabe045ee0a3c1054770424eb7ab2 | [
"MIT"
] | null | null | null | #include "Person.h"
#include "Shop.h"
namespace SHOPManagement
{
Person::Person(const string &t_user_name,
const string &t_user_pass,
const string &t_first_name,
const string &t_last_name,
const string &t_phone_number)
: User(t_user_name, t_user_pass),
... | 23.428094 | 75 | 0.571734 | [
"vector"
] |
4540bb40ecedf2e3742460ada76840bc0f488728 | 185,566 | cxx | C++ | odb-2.4.0/odb/relational/source.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-2.4.0/odb/relational/source.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | odb-2.4.0/odb/relational/source.cxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : odb/relational/source.cxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v3; see accompanying LICENSE file
#include <map>
#include <odb/gcc.hxx>
#include <odb/lookup.hxx>
#include <odb/cxx-lexer.hxx>
#include <odb/relational/source.hxx>
#include <odb/relational/... | 28.430519 | 82 | 0.471838 | [
"object",
"vector"
] |
4546beccd5056df220d0d4723f35112c1fba911d | 501 | cpp | C++ | database-mssql/simpleodbc.cpp | yan9a/odroid | 44178b08127ae9a2e4b8f71b82ad69612bf5beac | [
"MIT"
] | 10 | 2018-07-20T07:29:49.000Z | 2021-09-27T06:38:23.000Z | database-mssql/simpleodbc.cpp | yan9a/odroid | 44178b08127ae9a2e4b8f71b82ad69612bf5beac | [
"MIT"
] | 1 | 2021-02-19T03:59:48.000Z | 2021-03-23T08:32:51.000Z | database-mssql/simpleodbc.cpp | yan9a/odroid | 44178b08127ae9a2e4b8f71b82ad69612bf5beac | [
"MIT"
] | 8 | 2018-06-22T12:59:47.000Z | 2021-03-13T09:01:34.000Z | #include "ceODBC.h"
main()
{
string rs;
vector< vector<string> > td;
ceODBC db; // initialize
db.Connect("mssqlserver","sa","password"); // connect
if(db.IsConnected()==1) printf("Connected \n");
else printf("Disconnected \n");
td = db.SQL("SELECT * FROM myTable"); // exe sql
// display
f... | 19.269231 | 55 | 0.540918 | [
"vector"
] |
454d3a6ef46a4ee77ef214353b6d9bcf5a7730c3 | 2,282 | cpp | C++ | tf2_src/replay/cl_renderqueue.cpp | d3fc0n6/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | tf2_src/replay/cl_renderqueue.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | null | null | null | tf2_src/replay/cl_renderqueue.cpp | Counter2828/TeamFortress2 | 1b81dded673d49adebf4d0958e52236ecc28a956 | [
"MIT"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
//=======================================================================================//
#include "cl_renderqueue.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"
//---------------------------... | 24.276596 | 102 | 0.629273 | [
"render"
] |
455082194a96cffe76cde3387d9b3997c53350eb | 3,400 | cpp | C++ | enhanced/tools/minijre/native/ClassLoadTraceAgent.cpp | qinFamily/freeVM | 9caa0256b4089d74186f84b8fb2afc95a0afc7bc | [
"Apache-2.0"
] | 5 | 2017-03-08T20:32:39.000Z | 2021-07-10T10:12:38.000Z | enhanced/tools/minijre/native/ClassLoadTraceAgent.cpp | qinFamily/freeVM | 9caa0256b4089d74186f84b8fb2afc95a0afc7bc | [
"Apache-2.0"
] | null | null | null | enhanced/tools/minijre/native/ClassLoadTraceAgent.cpp | qinFamily/freeVM | 9caa0256b4089d74186f84b8fb2afc95a0afc7bc | [
"Apache-2.0"
] | 4 | 2015-07-07T07:06:59.000Z | 2018-06-19T22:38:04.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you... | 30.357143 | 117 | 0.706765 | [
"transform"
] |
4550b418dc71c4ed5be83622558e400a315a24cb | 7,851 | cpp | C++ | gtsam/slam/dataset.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 11 | 2015-02-04T16:41:47.000Z | 2021-12-10T07:02:44.000Z | gtsam/slam/dataset.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | null | null | null | gtsam/slam/dataset.cpp | sdmiller/gtsam_pcl | 1e607bd75090d35e325a8fb37a6c5afe630f1207 | [
"BSD-3-Clause"
] | 6 | 2015-09-10T12:06:08.000Z | 2021-12-10T07:02:48.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ---... | 29.965649 | 102 | 0.571392 | [
"geometry",
"vector",
"model"
] |
455f9f76fb869b70406255eff645072bd5a2f490 | 5,808 | cpp | C++ | src/forwarder.cpp | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 388 | 2017-03-01T07:39:21.000Z | 2022-03-30T19:38:41.000Z | src/forwarder.cpp | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 81 | 2017-03-08T20:28:00.000Z | 2022-01-23T08:19:31.000Z | src/forwarder.cpp | gatehouse/cppcms | 61da055ffeb349b4eda14bc9ac393af9ce842364 | [
"MIT"
] | 127 | 2017-03-05T21:53:40.000Z | 2022-02-25T02:31:01.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008-2012 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com>
//
... | 29.04 | 121 | 0.650138 | [
"vector"
] |
456d14f318cfa14bf0dc648692d65b55aaf04289 | 23,433 | cpp | C++ | MJpegPlayer/App.cpp | clclon/ImageLite-container | 03a6dcca5645448f5519efbdec37ffdb980e3446 | [
"MIT"
] | null | null | null | MJpegPlayer/App.cpp | clclon/ImageLite-container | 03a6dcca5645448f5519efbdec37ffdb980e3446 | [
"MIT"
] | null | null | null | MJpegPlayer/App.cpp | clclon/ImageLite-container | 03a6dcca5645448f5519efbdec37ffdb980e3446 | [
"MIT"
] | null | null | null | /*
MIT License
Android Aremote Viewer, GUI ADB tools
Android Viewer developed to view and control your android device from a PC.
ADB exchange Android Viewer, support scale view, input tap from mouse,
input swipe from keyboard, save/copy screenshot, etc..
Copyright (c) 2016-2020 PS
GitHub:... | 35.504545 | 121 | 0.338028 | [
"vector"
] |
458ec77aec4b1c8451261c173cc3874c2b277b35 | 15,441 | hh | C++ | C++Server/Common/include/CxxUtilities/FitsUtility.hh | IncompleteWorlds/01_gs4cubesat | 4386a3a8b984e96cab364bab83fc2fb49aa5cc3d | [
"RSA-MD"
] | null | null | null | C++Server/Common/include/CxxUtilities/FitsUtility.hh | IncompleteWorlds/01_gs4cubesat | 4386a3a8b984e96cab364bab83fc2fb49aa5cc3d | [
"RSA-MD"
] | null | null | null | C++Server/Common/include/CxxUtilities/FitsUtility.hh | IncompleteWorlds/01_gs4cubesat | 4386a3a8b984e96cab364bab83fc2fb49aa5cc3d | [
"RSA-MD"
] | null | null | null | /*
* FitsFile.hh
*
* Created on: Jun 18, 2014
* Author: yuasa
*/
#ifndef CXXUTILITIES_FITSFILE_HH_
#define CXXUTILITIES_FITSFILE_HH_
#include "CxxUtilities/String.hh"
namespace CxxUtilities {
class FitsUtility {
#ifndef TBIT
public:
// DATATYPE TFORM CODE
static const int TBIT = 1; // ... | 29.924419 | 130 | 0.67541 | [
"vector"
] |
45930676c780e04e051449e8c617920b3ee34b08 | 4,209 | cc | C++ | chainerx_cc/chainerx/native/native_device_test.cc | zaltoprofen/chainer | 3b03f9afc80fd67f65d5e0395ef199e9506b6ee1 | [
"MIT"
] | 3,705 | 2017-06-01T07:36:12.000Z | 2022-03-30T10:46:15.000Z | chainerx_cc/chainerx/native/native_device_test.cc | nolfwin/chainer | 8d776fcc1e848cb9d3800a6aab356eb91ae9d088 | [
"MIT"
] | 5,998 | 2017-06-01T06:40:17.000Z | 2022-03-08T01:42:44.000Z | chainerx_cc/chainerx/native/native_device_test.cc | nolfwin/chainer | 8d776fcc1e848cb9d3800a6aab356eb91ae9d088 | [
"MIT"
] | 1,150 | 2017-06-02T03:39:46.000Z | 2022-03-29T02:29:32.000Z | #include "chainerx/native/native_device.h"
#include <cstddef>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include <gtest/gtest.h>
#include "chainerx/context.h"
#include "chainerx/native/native_backend.h"
#include "chainerx/testing/threading.h"
namespace chainerx {
namespace native {
nam... | 27.509804 | 111 | 0.664766 | [
"vector"
] |
4594aeac3217c91573a91f7df17b82aa2cbab984 | 18,030 | cpp | C++ | Src/Plugins/GLShaderEdit/ShaderEditManager.cpp | vinjn/glintercept | f82166d3a774bfb02459f6b3ae2a03d4c9eaf64f | [
"MIT"
] | 468 | 2015-04-13T19:03:57.000Z | 2022-03-23T00:11:24.000Z | Src/Plugins/GLShaderEdit/ShaderEditManager.cpp | vinjn/glintercept | f82166d3a774bfb02459f6b3ae2a03d4c9eaf64f | [
"MIT"
] | 12 | 2015-05-25T11:15:21.000Z | 2020-10-26T02:46:50.000Z | Src/Plugins/GLShaderEdit/ShaderEditManager.cpp | vinjn/glintercept | f82166d3a774bfb02459f6b3ae2a03d4c9eaf64f | [
"MIT"
] | 67 | 2015-04-22T13:22:48.000Z | 2022-03-05T01:11:02.000Z | #include "ShaderEditManager.h"
#include <ConfigParser.h>
#include <CommonErrorLog.h>
#include <InputUtils.h>
#include "SEContext.h"
#include "SEInterface.h"
USING_ERRORLOG
//The call back ids
enum CallBackIDs
{
CBI_None =0,
CBI_glEnd = GENERAL_CALLBACK_INDEX
};
//Path to the dll
extern string dllPath;
//////... | 27.484756 | 135 | 0.630948 | [
"render"
] |
45a04eba4dae1433c673ab1a3a3cf91942f5fdf0 | 3,051 | hpp | C++ | src/db/db.hpp | daiwei89/hotbox | 11922d0fd23d0b532c0a3842c4c7723e29a166e2 | [
"BSD-3-Clause"
] | null | null | null | src/db/db.hpp | daiwei89/hotbox | 11922d0fd23d0b532c0a3842c4c7723e29a166e2 | [
"BSD-3-Clause"
] | null | null | null | src/db/db.hpp | daiwei89/hotbox | 11922d0fd23d0b532c0a3842c4c7723e29a166e2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <ctime>
#include <chrono>
#include <memory>
#include <boost/noncopyable.hpp>
#include "db/proto/db.pb.h"
#include "parse/parser_if.hpp"
#include "util/proto/warp_msg.pb.h"
#include "schema/all.hpp"
#include "util/rocks_db.hpp"
#include <future>
#include <atomic>
#include <mutex>
namespace hotbox... | 26.530435 | 77 | 0.73058 | [
"object",
"vector",
"transform"
] |
45a174c0bcfa6719dfcdcdfeb06d913c3c4a2127 | 4,001 | cpp | C++ | lutil.cpp | SunilRao01/SpaceSim | f7dcd44b5f80ab8d34955c2c7e1d21dc2c144f74 | [
"MIT"
] | null | null | null | lutil.cpp | SunilRao01/SpaceSim | f7dcd44b5f80ab8d34955c2c7e1d21dc2c144f74 | [
"MIT"
] | null | null | null | lutil.cpp | SunilRao01/SpaceSim | f7dcd44b5f80ab8d34955c2c7e1d21dc2c144f74 | [
"MIT"
] | null | null | null | #include "lutil.h"
#include <GL/freeglut.h>
// Camera transform position
int camX, camY, camZ;
const int camMovement = 5;
// Solar System
solarsystem ss(1, 3, 0.0f, 0.0f);
solarsystem ss_2(1, 3, 500.0f, 0.0f);
// Fot font rendering
unsigned char image[SCREEN_WIDTH][SCREEN_HEIGHT];
bool initGL()
{
/* NOTES
*
* ... | 21.395722 | 77 | 0.687578 | [
"geometry",
"render",
"vector",
"model",
"transform"
] |
45b486c231df17cb8feb0968d1a354a8b332ea08 | 9,540 | cpp | C++ | src/linux_parser.cpp | joestilin/Linux_System_Monitor | be64adaa1bda353608e1df1e14849961fa99a2d5 | [
"MIT"
] | null | null | null | src/linux_parser.cpp | joestilin/Linux_System_Monitor | be64adaa1bda353608e1df1e14849961fa99a2d5 | [
"MIT"
] | null | null | null | src/linux_parser.cpp | joestilin/Linux_System_Monitor | be64adaa1bda353608e1df1e14849961fa99a2d5 | [
"MIT"
] | null | null | null | #include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <iostream>
#include "linux_parser.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// Helper function that reads value from file system given key
template <typename T>
T findValueByKey(std::string cons... | 27.413793 | 79 | 0.647484 | [
"vector"
] |
45b714b54ec4f4b4afc895537cf1ead17d8bd499 | 1,746 | cpp | C++ | bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandJumpBind.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | 3 | 2019-04-08T17:34:19.000Z | 2020-01-03T04:47:06.000Z | bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandJumpBind.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | 4 | 2020-04-19T22:09:06.000Z | 2020-11-06T15:47:08.000Z | bytecode/interpreter/src/BytecodeInterpreter/Units/InterpreterCommandJumpBind.cpp | Scorbutics/skalang | c8d1869a2f0c7857ee05ef45bd3aa4e537d39558 | [
"MIT"
] | null | null | null | #include "Config/LoggerConfigLang.h"
#include "InterpreterCommandJumpBind.h"
using InterpreterCommand = ska::bytecode::InterpreterCommand<ska::bytecode::Command::BIND>;
SKA_LOGC_CONFIG(ska::LogLevel::Disabled, InterpreterCommand);
#define LOG_DEBUG SLOG_STATIC(ska::LogLevel::Debug, InterpreterCommand)
static void Se... | 42.585366 | 171 | 0.768041 | [
"vector"
] |
45ba1be7a910885fcda50022938b5d061ac38873 | 6,280 | cpp | C++ | src/plugins/azoth/plugins/acetamide/serverinfowidget.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | 1 | 2017-01-12T07:05:45.000Z | 2017-01-12T07:05:45.000Z | src/plugins/azoth/plugins/acetamide/serverinfowidget.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | src/plugins/azoth/plugins/acetamide/serverinfowidget.cpp | MellonQ/leechcraft | 71cbb238d2dade56b3865278a6a8e6a58c217fc5 | [
"BSL-1.0"
] | null | null | null | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2011 Oleg Linkin
*
* Boost Software License - Version 1.0 - August 17th, 2003
*
* Permission is hereby granted, free of charge, to any person or organiz... | 35.083799 | 82 | 0.691561 | [
"object"
] |
45bf1178e4e7a757d5ab31d9328d98f94f490bee | 3,341 | hpp | C++ | Transformed Images Generator/brisk/MatchVerifier.hpp | msl-kist/Good-Feature-Experiments | 3deabb38ccdf9413bba72f0ffaaf4eb03d458028 | [
"MIT"
] | null | null | null | Transformed Images Generator/brisk/MatchVerifier.hpp | msl-kist/Good-Feature-Experiments | 3deabb38ccdf9413bba72f0ffaaf4eb03d458028 | [
"MIT"
] | 1 | 2017-08-30T08:28:25.000Z | 2017-08-30T08:28:25.000Z | Transformed Images Generator/brisk/MatchVerifier.hpp | msl-kist/Good-Feature-Experiments | 3deabb38ccdf9413bba72f0ffaaf4eb03d458028 | [
"MIT"
] | null | null | null | /*
Copyright 2010 Computer Vision Lab,
Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland.
All rights reserved.
Author: Michael Calonder (http://cvlab.epfl.ch/~calonder)
Version: 1.0
This file is part of the BRIEF DEMO software.
BRIEF DEMO is free software; you can redistribute it and/or modify it under th... | 25.899225 | 108 | 0.689614 | [
"vector",
"transform"
] |
45c45d6ad9fba0b826453ecc3cbb7973c888ca00 | 13,054 | cpp | C++ | src/GnuPlot.cpp | hjabird/Quad1D | 4f0291bc729ac689df64d0366e8947b12af28684 | [
"MIT"
] | null | null | null | src/GnuPlot.cpp | hjabird/Quad1D | 4f0291bc729ac689df64d0366e8947b12af28684 | [
"MIT"
] | null | null | null | src/GnuPlot.cpp | hjabird/Quad1D | 4f0291bc729ac689df64d0366e8947b12af28684 | [
"MIT"
] | null | null | null | #include "GnuPlot.h"
/*////////////////////////////////////////////////////////////////////////////
GnuPlot.cpp
A MATLAB-like interface to GNUPlot.
Copyright 2017 HJA Bird
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software")... | 21.191558 | 106 | 0.629156 | [
"vector",
"transform",
"solid"
] |
ec0c2f0808a4613b589b864dd9c6c691b8bfbe3b | 29,951 | hpp | C++ | snark-logic/libs-source/marshalling/include/nil/marshalling/container/string_view.hpp | podlodkin/podlodkin-freeton-year-control | e394c11f2414804d2fbde93a092ae589d4359739 | [
"MIT"
] | 1 | 2021-09-14T18:09:38.000Z | 2021-09-14T18:09:38.000Z | include/nil/marshalling/container/string_view.hpp | tonlabs/marshalling | b50ad116f652cc1d9132bc45a27ab4136dee6109 | [
"MIT"
] | 16 | 2020-12-16T15:46:53.000Z | 2021-12-13T14:49:49.000Z | include/nil/marshalling/container/string_view.hpp | tonlabs/marshalling | b50ad116f652cc1d9132bc45a27ab4136dee6109 | [
"MIT"
] | 1 | 2022-01-12T10:53:21.000Z | 2022-01-12T10:53:21.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2017-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nbering@nil.foundation>
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of th... | 48.78013 | 142 | 0.519215 | [
"object"
] |
ec18b6dca23e03b19e7eafa1757a9c7b4c554479 | 1,717 | cpp | C++ | src/apps/Tests/Polynomial.cpp | FranzPoize/Math | 6e655fcdf9b5daf9602c252180405ed21bb812ec | [
"MIT"
] | null | null | null | src/apps/Tests/Polynomial.cpp | FranzPoize/Math | 6e655fcdf9b5daf9602c252180405ed21bb812ec | [
"MIT"
] | 11 | 2021-08-02T18:59:37.000Z | 2021-08-12T16:18:07.000Z | src/apps/Tests/Polynomial.cpp | FranzPoize/Math | 6e655fcdf9b5daf9602c252180405ed21bb812ec | [
"MIT"
] | 1 | 2021-03-18T10:56:44.000Z | 2021-03-18T10:56:44.000Z | #include "catch.hpp"
#include <math/Polynomial.h>
using namespace ad::math;
SCENARIO("Polynomials usage")
{
GIVEN("A polynomial of degree 2 with one real root")
{
auto polynomial = Polynomial<2>(1., 2., 1.);
THEN("It can be evaluated")
{
REQUIRE(polynomial.evaluate(1.) ==... | 28.616667 | 74 | 0.508445 | [
"vector"
] |
ec1c881febcf6723404616d7eec86776c7235e78 | 5,353 | cc | C++ | C++Project/OptionPricer/OptionPricer.cc | xw931018/QuantTools | e26f25b639e51dfaa509855e8dbe1a30e56dad24 | [
"MIT"
] | null | null | null | C++Project/OptionPricer/OptionPricer.cc | xw931018/QuantTools | e26f25b639e51dfaa509855e8dbe1a30e56dad24 | [
"MIT"
] | null | null | null | C++Project/OptionPricer/OptionPricer.cc | xw931018/QuantTools | e26f25b639e51dfaa509855e8dbe1a30e56dad24 | [
"MIT"
] | 1 | 2021-05-19T16:03:46.000Z | 2021-05-19T16:03:46.000Z | #include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include "OptionPricer.h"
#include "../Utils.h"
#include "../NonlinearSolver/NonlinearSolver.h"
using namespace std;
Option::Option(PayOff* _payoff) : payoff(_payoff) { strike_ = payoff->Strike(); }
void Option::SetParameters(double t, doubl... | 37.433566 | 136 | 0.613114 | [
"vector"
] |
ec2154cfa2dc1ad1c65c566c4ac62f9afb6c2d75 | 960 | hpp | C++ | septem/include/account.hpp | CalielOfSeptem/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | 1 | 2017-03-30T14:31:33.000Z | 2017-03-30T14:31:33.000Z | septem/include/account.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | septem/include/account.hpp | HoraceWeebler/septem | fe7a615eb6c279d3746ee78de8864b5e07bf7e3e | [
"MIT"
] | null | null | null | #ifndef ACCOUNT_HPP
#define ACCOUNT_HPP
#include <cereal/archives/xml.hpp>
#include <cereal/types/string.hpp>
#include <string.h>
#include <cereal/types/vector.hpp>
class account
{
public:
account();
account( const account& other ) :
username(other.username), email(other.email), secure_password(other.... | 25.945946 | 155 | 0.654167 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.