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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07ae0ed1ffac81fe5b17227dc340277dc1242f24 | 669 | hpp | C++ | Screen.hpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | Screen.hpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | Screen.hpp | TheSovietStorm/PathTracer | 1c8a5d077f7fea37371ea1425966b77b751202c8 | [
"MIT"
] | null | null | null | //
// Created by Peter Zdankin on 26.03.18.
//
#ifndef PATHTRACER_SCREEN_HPP
#define PATHTRACER_SCREEN_HPP
#include <vector>
#include "Point.hpp"
class Screen{
private:
uint64_t width;
uint64_t height;
std::vector<unsigned char> data;
public:
Screen():width(1000), height(1000){
data.resize(4... | 21.580645 | 79 | 0.674141 | [
"vector"
] |
07aee85e2d0c0729be024c53724ffce89f90ef76 | 32,173 | cpp | C++ | DTest/main.cpp | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 27 | 2020-11-12T19:24:54.000Z | 2022-03-27T23:10:45.000Z | DTest/main.cpp | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 2 | 2020-11-02T06:30:39.000Z | 2022-02-23T18:39:55.000Z | DTest/main.cpp | bo3b/iZ3D | ced8b3a4b0a152d0177f2e94008918efc76935d5 | [
"MIT"
] | 3 | 2021-08-16T00:21:08.000Z | 2022-02-23T19:19:36.000Z | #include <DXUT.h>
#include <DXUTmisc.h>
#include <SDKmisc.h>
#include <SDKmesh.h>
#include <D3DX9Mesh.h>
#include <shlwapi.h>
#include "../../../Shared/ProductNames.h"
#include "../../S3DAPI/StereoAPI.h"
//--------------------------------------------------------------------------------------
// D3D9 data
//-----------... | 36.149438 | 158 | 0.635688 | [
"mesh",
"render"
] |
07b26352964cf834146ce8eb675307bd2b01972c | 6,963 | hpp | C++ | engine/WeaponType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | 1 | 2021-04-24T06:01:57.000Z | 2021-04-24T06:01:57.000Z | engine/WeaponType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | engine/WeaponType.hpp | rigertd/LegacyMUD | cf351cca466158f0682f6c877b88d5c2eb59e240 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************//**
* \author Rachel Weissman-Hohler
* \created 02/01/2017
* \modified 03/08/2017
* \course CS467, Winter 2017
* \file WeaponType.hpp
*
* \details Header file for WeaponType class. Defines the members and
* ... | 35.707692 | 202 | 0.57188 | [
"object",
"vector"
] |
07bd167b891894ba77b4458625238bf9cbf56f8e | 1,044 | cpp | C++ | Kattis/zipline.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | 3 | 2021-02-19T17:01:11.000Z | 2021-03-11T16:50:19.000Z | Kattis/zipline.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | Kattis/zipline.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | // geometry
// https://open.kattis.com/problems/zipline
#include <vector>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <stack>
#include <cmath>
#include <map>
#include <utility>
#include <queue>
#include <iomanip>
#include <deque>
#define Forcase int __t;cin>>__t;getchar();for... | 20.88 | 81 | 0.52682 | [
"geometry",
"vector"
] |
07c2d14505389efb31708886fdcb6d6acfc51bbd | 6,110 | cpp | C++ | main.cpp | LC-John/SIMD_YUV_Convertion | c26c34cbbf684ac00970bc829454e1360099e66e | [
"MIT"
] | 2 | 2020-04-07T12:50:02.000Z | 2020-06-01T15:51:52.000Z | main.cpp | LC-John/SIMD_YUV_Convertion | c26c34cbbf684ac00970bc829454e1360099e66e | [
"MIT"
] | null | null | null | main.cpp | LC-John/SIMD_YUV_Convertion | c26c34cbbf684ac00970bc829454e1360099e66e | [
"MIT"
] | null | null | null | #include "convert.h"
#include <cstdio>
#include <time.h>
#include <cstring>
using namespace std;
void reset_progressbar(char* buf, int* ptr)
{
*ptr = 1;
buf[0] = '[';
buf[20 + 2] = ']';
memset(buf+1, '-', 21);
buf[20 + 3] = '\0';
}
int main(int argc, char *argv[])
{
double m_time_yuv2rgb = 0, ... | 33.387978 | 90 | 0.544354 | [
"transform"
] |
07c4912a032bf0bc6cbc1e05957da352fa06c9c6 | 22,827 | cpp | C++ | Library/QHull/rbox.cpp | GuoxinFang/ReinforcedFDM | bde4d1890de805ce3e626a010866303a2b132b63 | [
"BSD-3-Clause"
] | 43 | 2020-08-31T08:56:48.000Z | 2022-03-29T08:20:28.000Z | ThirdPartyDependence/QHullLib/rbox.cpp | zhangjiangzhao123/MultiAxis_3DP_MotionPlanning-1 | 7338bd7a1cdf9173d8715032fed29b6a0b2b21a1 | [
"BSD-3-Clause"
] | null | null | null | ThirdPartyDependence/QHullLib/rbox.cpp | zhangjiangzhao123/MultiAxis_3DP_MotionPlanning-1 | 7338bd7a1cdf9173d8715032fed29b6a0b2b21a1 | [
"BSD-3-Clause"
] | 10 | 2020-08-31T09:52:57.000Z | 2021-11-20T15:47:12.000Z | /*<html><pre> -<a href="index.htm#TOC"
>-------------------------------</a><a name="TOP">-</a>
rbox.c
Generate input points for qhull.
notes:
50 points generated for 'rbox D4'
This code needs a full rewrite. It needs separate procedures for each
distribut... | 28.713208 | 129 | 0.47216 | [
"mesh",
"3d"
] |
07c4a90fe1e5821a85f2211cf585c0db31c41cab | 957 | cpp | C++ | amazon_question5.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | amazon_question5.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | amazon_question5.cpp | 19yetnoob/-6Companies30days | 93f8dc6370cae7a8907d02b3ac8de610b73b8d9f | [
"MIT"
] | null | null | null | class Solution{
public:
vector<vector<string>> displayContacts(int n, string contact[], string s)
{
vector<vector<string>>ans;
string check="";
//int size = sizeof(contact)/sizeof(contact[0]);
for(int i=0;i<s.size();i++){
check+=s[i];
set<string>v... | 25.184211 | 77 | 0.361546 | [
"vector"
] |
07ca5a6b8197a8f19161bef4b256e62f8d2f4dcd | 13,690 | cpp | C++ | src/Kernel/Math/DoubleList.cpp | cea-trust-platform/trust-code | c4f42d8f8602a8cc5e0ead0e29dbf0be8ac52f72 | [
"BSD-3-Clause"
] | 12 | 2021-06-30T18:50:38.000Z | 2022-03-23T09:03:16.000Z | src/Kernel/Math/DoubleList.cpp | pledac/trust-code | 46ab5c5da3f674185f53423090f526a38ecdbad1 | [
"BSD-3-Clause"
] | null | null | null | src/Kernel/Math/DoubleList.cpp | pledac/trust-code | 46ab5c5da3f674185f53423090f526a38ecdbad1 | [
"BSD-3-Clause"
] | 2 | 2021-10-04T09:19:39.000Z | 2021-12-15T14:21:04.000Z | /****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code mus... | 24.359431 | 260 | 0.622863 | [
"object"
] |
07d19d17a6f2a8df5a1fdf008a14ed46d3d6c224 | 6,516 | hpp | C++ | legacy/OrderConditionHelpersMPFR.hpp | dzhang314/RKTK | 0aa0dfe5980732186573a13d9bcc6d5ba7542549 | [
"MIT"
] | 2 | 2020-06-07T13:05:30.000Z | 2020-12-30T13:26:19.000Z | legacy/OrderConditionHelpersMPFR.hpp | dzhang314/RKTK | 0aa0dfe5980732186573a13d9bcc6d5ba7542549 | [
"MIT"
] | null | null | null | legacy/OrderConditionHelpersMPFR.hpp | dzhang314/RKTK | 0aa0dfe5980732186573a13d9bcc6d5ba7542549 | [
"MIT"
] | 1 | 2020-06-07T13:05:36.000Z | 2020-06-07T13:05:36.000Z | #ifndef RKTK_ORDER_CONDITION_HELPERS_MPFR_HPP_INCLUDED
#define RKTK_ORDER_CONDITION_HELPERS_MPFR_HPP_INCLUDED
// C++ standard library headers
#include <cstddef> // for std::size_t
// GNU MPFR multiprecision library headers
#include <mpfr.h>
namespace rktk::detail {
/*
* The following functions are helper su... | 38.785714 | 77 | 0.506599 | [
"vector"
] |
07dd98175680ecbbae4ee158af371148ec590c18 | 658 | cpp | C++ | chapter_4_computation/exercise/sequence_of_numbers.cpp | jamie-prog/programming_principles_and_practice | abd4fec2cd02fc0bab69c9b11e13d9fce04039f9 | [
"Apache-2.0"
] | null | null | null | chapter_4_computation/exercise/sequence_of_numbers.cpp | jamie-prog/programming_principles_and_practice | abd4fec2cd02fc0bab69c9b11e13d9fce04039f9 | [
"Apache-2.0"
] | null | null | null | chapter_4_computation/exercise/sequence_of_numbers.cpp | jamie-prog/programming_principles_and_practice | abd4fec2cd02fc0bab69c9b11e13d9fce04039f9 | [
"Apache-2.0"
] | null | null | null | #include "../../std_lib_facilities.h"
int main(void)
{
vector<double> distances;
cout << "Enter a number (abort with NaN): ";
for (double temp; cin >> temp; )
{
cout << "Enter a number (abort with NaN): ";
distances.push_back(temp);
}
sort(distances);
double sum{0};
f... | 26.32 | 81 | 0.522796 | [
"vector"
] |
07debbb192682b934398825ffe9b7dffdf1f2474 | 20,865 | cpp | C++ | gmsh/Geo/boundaryLayersData.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | 4 | 2019-05-06T09:35:08.000Z | 2021-05-14T16:26:45.000Z | gmsh/Geo/boundaryLayersData.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | null | null | null | gmsh/Geo/boundaryLayersData.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | 1 | 2019-06-28T09:23:43.000Z | 2019-06-28T09:23:43.000Z | // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
#include "boundaryLayersData.h"
#include "GmshConfig.h"
#include "GModel.h"
#include "MLine.h"
#include "MTriangle.h"
#include... | 33.816856 | 91 | 0.543686 | [
"mesh",
"vector",
"model"
] |
07e0f447452a2184993885391de811666a362ac7 | 1,939 | cpp | C++ | strings-3.8.cpp | dazmodel/cpp-study | 169569b8e29eab209f15bec042c6aac014737356 | [
"MIT"
] | null | null | null | strings-3.8.cpp | dazmodel/cpp-study | 169569b8e29eab209f15bec042c6aac014737356 | [
"MIT"
] | null | null | null | strings-3.8.cpp | dazmodel/cpp-study | 169569b8e29eab209f15bec042c6aac014737356 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <iterator>
#include <vector>
#include <sstream>
using namespace std;
// Разделяем строку на части по заданному разделителю
vector<string> split(const string& s, char delimiter) {
vector<string> tokens;
string token;
istringstream tokenStream(s);
while (getline(t... | 26.202703 | 160 | 0.654977 | [
"vector"
] |
2e3ca7e67039154dff9ab35c919386fc7bf4325a | 3,862 | cpp | C++ | source/specializer.cpp | jhs67/autoshader | 170450d96d962cddff6d12e929a89a376a1716bd | [
"0BSD"
] | null | null | null | source/specializer.cpp | jhs67/autoshader | 170450d96d962cddff6d12e929a89a376a1716bd | [
"0BSD"
] | null | null | null | source/specializer.cpp | jhs67/autoshader | 170450d96d962cddff6d12e929a89a376a1716bd | [
"0BSD"
] | null | null | null | //
// File: specializer.cpp
//
// Created by Jon Spencer on 2019-05-14 11:36:50
// Copyright (c) Jon Spencer. See LICENSE file.
//
#include "specializer.h"
#include "shadersource.h"
#include "descriptorset.h"
namespace autoshader {
namespace {
auto writerSrc =
R"({0}struct {1}Specializer {{
{0} int32_t value... | 29.257576 | 114 | 0.630243 | [
"vector"
] |
2e42fa530c5a73efff70116dae0e3bcaa24ad4e9 | 3,952 | cpp | C++ | src/Pocket.cpp | Felipeasg/heekscad | 0b70cbeb998e864b1ea0af0685863f5a90da1504 | [
"BSD-3-Clause"
] | 2 | 2019-09-15T15:22:32.000Z | 2021-01-22T10:20:42.000Z | src/Pocket.cpp | Felipeasg/HeeksCAD | 0b70cbeb998e864b1ea0af0685863f5a90da1504 | [
"BSD-3-Clause"
] | null | null | null | src/Pocket.cpp | Felipeasg/HeeksCAD | 0b70cbeb998e864b1ea0af0685863f5a90da1504 | [
"BSD-3-Clause"
] | 1 | 2022-03-05T05:08:06.000Z | 2022-03-05T05:08:06.000Z | // Pocket.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "Pocket.h"
#include "Shape.h"
#include "RuledSurface.h"
#include "../interface/PropertyDouble.h"
#include "Part.h"
HPocket::HPocket(double length)... | 22.202247 | 123 | 0.674089 | [
"object",
"shape",
"vector",
"solid"
] |
2e473622e50718adf99bc8c398a3321dc460864f | 47,098 | hpp | C++ | need to install for velocity smothor/ecl_utilities/include/ecl/utilities/function_objects.hpp | michaelczhou/control | c5ee58bf65c7d8e7517659a52169cea3e4e81d46 | [
"MIT"
] | 1 | 2022-03-11T03:31:15.000Z | 2022-03-11T03:31:15.000Z | RasPi_Dev/ros_ws/src/third_packages/ecl/ecl_utilities/include/ecl/utilities/function_objects.hpp | bravetree/xtark_driver_dev | 1708888161cf20c0d1f45c99d0da4467d69c26c8 | [
"BSD-3-Clause"
] | null | null | null | RasPi_Dev/ros_ws/src/third_packages/ecl/ecl_utilities/include/ecl/utilities/function_objects.hpp | bravetree/xtark_driver_dev | 1708888161cf20c0d1f45c99d0da4467d69c26c8 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file /include/ecl/utilities/function_objects.hpp
*
* @brief Functional objects and generators.
*
* @date June 2009
**/
/*****************************************************************************
** Ifdefs
*****************************************************************************/
#ifndef ECL_UTILITI... | 34.253091 | 163 | 0.684148 | [
"object"
] |
2e47ed6c133f5abb5ae584fc24207e305374f16a | 3,530 | cpp | C++ | Algorithms/FancierAlgorithms/PatchBasedInpaintingScaleConsistent.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 39 | 2015-01-01T07:59:51.000Z | 2021-10-01T18:11:46.000Z | Algorithms/FancierAlgorithms/PatchBasedInpaintingScaleConsistent.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 1 | 2019-04-24T09:56:15.000Z | 2019-04-24T14:45:46.000Z | Algorithms/FancierAlgorithms/PatchBasedInpaintingScaleConsistent.cpp | jingtangliao/ff | d308fe62045e241a4822bb855df97ee087420d9b | [
"Apache-2.0"
] | 18 | 2015-01-11T15:10:23.000Z | 2022-02-24T20:02:10.000Z | /*=========================================================================
*
* Copyright David Doria 2011 daviddoria@gmail.com
*
* 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
*
*... | 50.428571 | 195 | 0.720113 | [
"vector"
] |
2e4893a4bfc74f3949468d94ab0c93be6ba3b1f2 | 434 | cc | C++ | src/canvas_gradient.cc | knocknote/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 7 | 2019-08-29T05:22:05.000Z | 2020-07-07T15:35:50.000Z | src/canvas_gradient.cc | blastrain/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 3 | 2019-07-12T09:43:31.000Z | 2019-09-10T03:36:45.000Z | src/canvas_gradient.cc | blastrain/libhtml5 | 46e18a9122097b4d681c91f0747aa78a20611cab | [
"MIT"
] | 3 | 2019-10-25T05:35:30.000Z | 2020-07-21T21:40:52.000Z | #include "canvas_gradient.h"
USING_NAMESPACE_HTML5;
CanvasGradient::CanvasGradient(emscripten::val v) :
Object(v)
{
}
CanvasGradient::~CanvasGradient()
{
}
CanvasGradient *CanvasGradient::create(emscripten::val v)
{
auto grad = new CanvasGradient(v);
grad->autorelease();
return grad;
}
void CanvasG... | 17.36 | 67 | 0.723502 | [
"object"
] |
2e4f050f2ac84ea3b5448d15882ea7000a6e082b | 4,821 | ipp | C++ | sb/gl/detail/shader_support.ipp | ScottBailey/libsb | 078517f0dc8f168034044a969badafc177b8a398 | [
"BSD-3-Clause"
] | null | null | null | sb/gl/detail/shader_support.ipp | ScottBailey/libsb | 078517f0dc8f168034044a969badafc177b8a398 | [
"BSD-3-Clause"
] | null | null | null | sb/gl/detail/shader_support.ipp | ScottBailey/libsb | 078517f0dc8f168034044a969badafc177b8a398 | [
"BSD-3-Clause"
] | null | null | null | #ifndef sb_gl_detail_shader_support_h
#define sb_gl_detail_shader_support_h
/*
Copyright (c) 2014, Scott Bailey
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of so... | 31.509804 | 127 | 0.671645 | [
"vector"
] |
2e5726f51e6229eac10cf863186d54b7b8757846 | 1,230 | cc | C++ | chromecast/base/process_utils.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chromecast/base/process_utils.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chromecast/base/process_utils.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2015 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 "chromecast/base/process_utils.h"
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include "base/logging.h"
#include "base/posix/safe... | 26.170213 | 80 | 0.662602 | [
"vector"
] |
2e668dc40b9940c0bbd48cf865d80e18bb9fabbc | 4,207 | cc | C++ | mtpd/device_manager_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | null | null | null | mtpd/device_manager_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | null | null | null | mtpd/device_manager_test.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright (c) 2012 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 "mtpd/device_manager.h"
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <base/compiler_specific.h>
#include <base... | 31.871212 | 80 | 0.730212 | [
"vector"
] |
2e72bd39099e58dded48590645833cc927d024ea | 3,553 | cpp | C++ | lib/ErriezBH1750/platformio/src/main.cpp | Erriez/ESP8266UbidotsSensors | 498d932aca5c0a4d9f3f2a701e60f22ee068669d | [
"MIT"
] | null | null | null | lib/ErriezBH1750/platformio/src/main.cpp | Erriez/ESP8266UbidotsSensors | 498d932aca5c0a4d9f3f2a701e60f22ee068669d | [
"MIT"
] | null | null | null | lib/ErriezBH1750/platformio/src/main.cpp | Erriez/ESP8266UbidotsSensors | 498d932aca5c0a4d9f3f2a701e60f22ee068669d | [
"MIT"
] | 2 | 2020-01-30T18:35:58.000Z | 2021-12-02T14:22:53.000Z | /*
* MIT License
*
* Copyright (c) 2018 Erriez
*
* 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, m... | 29.857143 | 81 | 0.695469 | [
"object"
] |
2e72f9e38944878cf4a51a74561cec4017f67445 | 912 | cpp | C++ | Gems/FastNoise/Code/Source/FastNoiseEditorModule.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | 1 | 2021-07-19T23:54:05.000Z | 2021-07-19T23:54:05.000Z | Gems/FastNoise/Code/Source/FastNoiseEditorModule.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/FastNoise/Code/Source/FastNoiseEditorModule.cpp | Schneidex69/o3de | d9ec159f0e07ff86957e15212232413c4ff4d1dc | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* 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 "FastNoise_precompiled.h"
#include <FastNoiseEditorModule.h>
#include <FastNoiseSystemCom... | 28.5 | 100 | 0.753289 | [
"3d"
] |
2e7a316a3ff8e68c8cdcbf8c33a689124926074a | 1,859 | cpp | C++ | tester.cpp | williamwu88/Flying-Stickman | d11c05e87bde481200ed1f3aaf5a0f4e4982d9ae | [
"MIT"
] | null | null | null | tester.cpp | williamwu88/Flying-Stickman | d11c05e87bde481200ed1f3aaf5a0f4e4982d9ae | [
"MIT"
] | null | null | null | tester.cpp | williamwu88/Flying-Stickman | d11c05e87bde481200ed1f3aaf5a0f4e4982d9ae | [
"MIT"
] | null | null | null | #include "tester.h"
#include "gamestate.h"
#include "player.h"
#include <iostream>
Tester::Tester(std::unique_ptr<GameStateFactory>& factory)
: state(factory->createGameState()),
paused(false) {}
Tester::~Tester()
{
delete state;
}
void Tester::run(int num_frames) {
std::srand(std::time(nullptr))... | 25.121622 | 87 | 0.557289 | [
"vector"
] |
2e91ed81d42c0edf882b15464c5cc7343864349b | 408 | hpp | C++ | src/yarr/algo/at_each_aligned.hpp | tgockel/yarrpp | bddc2e16b2dbb585fe23beb7cddf81a5bcba81a3 | [
"Apache-2.0"
] | null | null | null | src/yarr/algo/at_each_aligned.hpp | tgockel/yarrpp | bddc2e16b2dbb585fe23beb7cddf81a5bcba81a3 | [
"Apache-2.0"
] | null | null | null | src/yarr/algo/at_each_aligned.hpp | tgockel/yarrpp | bddc2e16b2dbb585fe23beb7cddf81a5bcba81a3 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <yarr/config.hpp>
#include <yarr/optimization_macros.hpp>
#include <cstdint>
namespace yarr
{
template <typename... TFArgs, typename... FApply>
void at_each_aligned(char* first, char* last, FApply&&... transform);
template <typename... TFArgs, typename... FApply>
void at_each_aligned(const ch... | 20.4 | 81 | 0.732843 | [
"transform"
] |
2e9a8cfe42c00e930c5796981ec00a6fc80fc542 | 1,588 | cpp | C++ | solutions/852-E-Peak-Index-in-a-Mountain-Array/main.cpp | ARW2705/leet-code-solutions | fa551e5b15f5340e5be3b832db39638bcbf0dc78 | [
"MIT"
] | null | null | null | solutions/852-E-Peak-Index-in-a-Mountain-Array/main.cpp | ARW2705/leet-code-solutions | fa551e5b15f5340e5be3b832db39638bcbf0dc78 | [
"MIT"
] | null | null | null | solutions/852-E-Peak-Index-in-a-Mountain-Array/main.cpp | ARW2705/leet-code-solutions | fa551e5b15f5340e5be3b832db39638bcbf0dc78 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
/*
Let's call an array A a mountain if the following properties hold:
A.length >= 3
There exists some 0 < i < A.length - 1
such that A[0] < A[1] < ... A[i-1] < A[i] > A[i+1] > ... >
A[A.length - 1]
Given an array that is definitely a mountain, r... | 20.358974 | 66 | 0.555416 | [
"vector"
] |
2e9ee7db1753e7e899587ea298bc1a02c77c5ba3 | 14,868 | cpp | C++ | code/plugins/Shared/motion.cpp | porames25/xray-oxygen | 1f3f46a7a1ffc2be1de04a1ec665862127894ef7 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/plugins/Shared/motion.cpp | porames25/xray-oxygen | 1f3f46a7a1ffc2be1de04a1ec665862127894ef7 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/plugins/Shared/motion.cpp | Graff46/xray-oxygen | 543e79929c0e8debe57f5c567eaf11e5fe08216f | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | #include "stdafx.h"
#pragma hdrstop
#include "motion.h"
#include "envelope.h"
#define EOBJ_OMOTION 0x1100
#define EOBJ_SMOTION 0x1200
#define EOBJ_OMOTION_VERSION 0x0005
#define EOBJ_SMOTION_VERSION 0x0007
#ifdef _LW_EXPORT
extern void ReplaceSpaceAndLowerCase(shared_str& s);
#endif
//------... | 25.993007 | 97 | 0.570689 | [
"object"
] |
2ea66a5f0c55f017adce1b08cc8b3b25c0ed1ccf | 15,076 | cpp | C++ | zztlib/gameBoard.cpp | inmatarian/freezzt | 5dc4ce83ffee27a398ed77416e1d4164d191d993 | [
"MIT"
] | 5 | 2015-07-06T19:45:12.000Z | 2021-03-30T02:13:07.000Z | zztlib/gameBoard.cpp | inmatarian/freezzt | 5dc4ce83ffee27a398ed77416e1d4164d191d993 | [
"MIT"
] | null | null | null | zztlib/gameBoard.cpp | inmatarian/freezzt | 5dc4ce83ffee27a398ed77416e1d4164d191d993 | [
"MIT"
] | null | null | null | /**
* @file
* @author Inmatarian <inmatarian@gmail.com>
* @section LICENSE
* Insert copyright and license information here.
*/
#include <list>
#include <vector>
#include <string>
#include <cassert>
#include "debug.h"
#include "zstring.h"
#include "defines.h"
#include "gameBoard.h"
#include "gameWorld.h"
#includ... | 23.229584 | 94 | 0.599297 | [
"object",
"vector"
] |
2eb7addbde753701e91a0f2b5787eb655401737a | 13,631 | cc | C++ | src/fcst/source/reactions/bv_kinetics.cc | jeremyjiezhou/Learn-PyTorch | 7e4404609bacd2ec796f6ca3ea118e8e34ab4a22 | [
"MIT"
] | 24 | 2016-10-04T20:49:55.000Z | 2022-03-12T19:07:10.000Z | src/fcst/source/reactions/bv_kinetics.cc | jeremyjiezhou/Learn-PyTorch | 7e4404609bacd2ec796f6ca3ea118e8e34ab4a22 | [
"MIT"
] | null | null | null | src/fcst/source/reactions/bv_kinetics.cc | jeremyjiezhou/Learn-PyTorch | 7e4404609bacd2ec796f6ca3ea118e8e34ab4a22 | [
"MIT"
] | 9 | 2016-12-11T22:15:03.000Z | 2020-11-21T13:51:05.000Z | //---------------------------------------------------------------------------
//
// FCST: Fuel Cell Simulation Toolbox
//
// Copyright (C) 2006-13 by Energy Systems Design Laboratory, University of Alberta
//
// This software is distributed under the MIT License.
// For more information, see the README file... | 53.246094 | 210 | 0.468418 | [
"vector",
"model"
] |
2eb8b81862f3c4a8a5dceaf327bbf67d117e0b88 | 7,734 | cpp | C++ | llvm-5.0.1.src/lib/DebugInfo/CodeView/TypeName.cpp | ShawnLess/TBD | fc98e93b3462509022fdf403978cd82aa05c2331 | [
"Apache-2.0"
] | 60 | 2017-12-21T06:49:58.000Z | 2022-02-24T09:43:52.000Z | llvm-5.0.1.src/lib/DebugInfo/CodeView/TypeName.cpp | ShawnLess/TBD | fc98e93b3462509022fdf403978cd82aa05c2331 | [
"Apache-2.0"
] | null | null | null | llvm-5.0.1.src/lib/DebugInfo/CodeView/TypeName.cpp | ShawnLess/TBD | fc98e93b3462509022fdf403978cd82aa05c2331 | [
"Apache-2.0"
] | 17 | 2017-12-20T09:54:56.000Z | 2021-06-24T05:39:36.000Z | //===- TypeName.cpp ------------------------------------------- *- C++ --*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 31.696721 | 80 | 0.667184 | [
"shape"
] |
e48546fceedfdc75c828b9c97312564f108d54f9 | 1,287 | cpp | C++ | LeetCode/Tag/Dynamic Programming/cpp/213.house-robber-II.cpp | pakosel/competitive-coding-problems | 187a2f13725e06ab3301ae2be37f16fbec0c0588 | [
"MIT"
] | 17 | 2017-08-12T14:42:46.000Z | 2022-02-26T16:35:44.000Z | LeetCode/Tag/Dynamic Programming/cpp/213.house-robber-II.cpp | pakosel/competitive-coding-problems | 187a2f13725e06ab3301ae2be37f16fbec0c0588 | [
"MIT"
] | 21 | 2019-09-20T07:06:27.000Z | 2021-11-02T10:30:50.000Z | LeetCode/Tag/Dynamic Programming/cpp/213.house-robber-II.cpp | pakosel/competitive-coding-problems | 187a2f13725e06ab3301ae2be37f16fbec0c0588 | [
"MIT"
] | 21 | 2017-05-28T10:15:07.000Z | 2021-07-20T07:19:58.000Z | class Solution {
/* Since this question is a follow-up to House Robber,
* we can assume we already have a way to solve the simpler question,
* i.e. given a 1 row of house, we know how to rob them.
* We modify it a bit to rob a given range of houses [lo, hi].
*/
int rob(vector<int>& nums, int... | 41.516129 | 106 | 0.59596 | [
"vector"
] |
e48a828e73545eb1c5b60d108e0880b41c437172 | 3,795 | cpp | C++ | PSME/application/src/rest/endpoints/chassis/chassis_reset.cpp | opencomputeproject/HWMgmt-DeviceMgr-PSME | 2a00188aab6f4bef3776987f0842ef8a8ea972ac | [
"Apache-2.0"
] | 5 | 2021-10-07T15:36:37.000Z | 2022-03-01T07:21:49.000Z | PSME/application/src/rest/endpoints/chassis/chassis_reset.cpp | opencomputeproject/DM-Redfish-PSME | 912f7b6abf5b5c2aae33c75497de4753281c6a51 | [
"Apache-2.0"
] | null | null | null | PSME/application/src/rest/endpoints/chassis/chassis_reset.cpp | opencomputeproject/DM-Redfish-PSME | 912f7b6abf5b5c2aae33c75497de4753281c6a51 | [
"Apache-2.0"
] | 1 | 2021-03-24T19:37:58.000Z | 2021-03-24T19:37:58.000Z | /*
* Edgecore DeviceManager
* Copyright 2020-2021 Edgecore Networks, Inc.
*
* 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
* ... | 39.947368 | 96 | 0.747299 | [
"model"
] |
e48b80cee6dd0b88c3024b2401573f553c118013 | 10,195 | hpp | C++ | include/exec_fused.hpp | geraldc-unm/Comb | 790d054f9722e6752a27a1c2e08c135f9d5b8e75 | [
"MIT"
] | 21 | 2018-10-03T18:15:04.000Z | 2022-02-16T08:07:50.000Z | include/exec_fused.hpp | geraldc-unm/Comb | 790d054f9722e6752a27a1c2e08c135f9d5b8e75 | [
"MIT"
] | 5 | 2019-10-07T23:06:57.000Z | 2021-08-16T16:10:58.000Z | include/exec_fused.hpp | geraldc-unm/Comb | 790d054f9722e6752a27a1c2e08c135f9d5b8e75 | [
"MIT"
] | 6 | 2019-09-13T16:47:33.000Z | 2022-03-03T16:17:32.000Z | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018-2021, Lawrence Livermore National Security, LLC.
//
// Produced at the Lawrence Livermore National Laboratory
//
// LLNL-CODE-758885
//
// All rights reserved.
//
// This file is part of Comb.
//
// For details, see htt... | 28.240997 | 110 | 0.642962 | [
"vector"
] |
e48cf7015a065d01554c851b2de0731627d67e38 | 7,194 | hxx | C++ | main/connectivity/source/inc/ado/ACollection.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/connectivity/source/inc/ado/ACollection.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/connectivity/source/inc/ado/ACollection.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... | 31.552632 | 180 | 0.66903 | [
"vector"
] |
e49aa58143e15dec0eb187ee18b992d5a3459a6b | 2,271 | cpp | C++ | OpenGL_S/OpenGL_S/BeamBillboard.cpp | CreoDen-dev/COSMO | 1603c734fc592dad58b553625e5ce90046d99758 | [
"Apache-2.0"
] | null | null | null | OpenGL_S/OpenGL_S/BeamBillboard.cpp | CreoDen-dev/COSMO | 1603c734fc592dad58b553625e5ce90046d99758 | [
"Apache-2.0"
] | null | null | null | OpenGL_S/OpenGL_S/BeamBillboard.cpp | CreoDen-dev/COSMO | 1603c734fc592dad58b553625e5ce90046d99758 | [
"Apache-2.0"
] | null | null | null | #include "BeamBillboard.h"
BeamBillboard::BeamBillboard() {
}
BeamBillboard::BeamBillboard(vec3 p, vec3 e, GLfloat w, GLfloat lt, GLuint tex) {
this->start = p;
this->end = e;
this->width = w;
this->texture = tex;
this->timer = lt;
this->useOuterNorm = false;
GLfloat len = glm::length(e - p);
GLfloat vertic... | 28.746835 | 114 | 0.677235 | [
"render",
"model"
] |
e49af9ab142c8b0b59e36e33ee64c3d7f9046a7f | 4,552 | cpp | C++ | Silver/Silver/silver_core.cpp | c272/silver | 2721731c7803882e5b70118253237d565a3b6709 | [
"Apache-2.0"
] | null | null | null | Silver/Silver/silver_core.cpp | c272/silver | 2721731c7803882e5b70118253237d565a3b6709 | [
"Apache-2.0"
] | 1 | 2018-09-16T14:09:18.000Z | 2018-09-16T14:09:18.000Z | Silver/Silver/silver_core.cpp | c272/silver | 2721731c7803882e5b70118253237d565a3b6709 | [
"Apache-2.0"
] | null | null | null | //Including SILVER_CORE header and includes.
#include "silver_inc.h"
#include "silver_core.h"
#include "silver_primitive.h"
#include "silver_renderbus.h"
// SECTION 0
// GLOBAL DECLARATION
SDL_GLContext slvr::glGhostContext = NULL;
bool slvr::isGlInitialized = false;
// SECTION I
// FUNCTION DECLARATION
//Start... | 23.106599 | 152 | 0.685413 | [
"render"
] |
e49fed5e883b85e5d898b9e0b894cd7be3fbdeb6 | 11,448 | cc | C++ | builtin/python/python_converters.cc | mldbai/mldb | 0554aa390a563a6294ecc841f8026a88139c3041 | [
"Apache-2.0"
] | 665 | 2015-12-09T17:00:14.000Z | 2022-03-25T07:46:46.000Z | builtin/python/python_converters.cc | mldbai/mldb | 0554aa390a563a6294ecc841f8026a88139c3041 | [
"Apache-2.0"
] | 797 | 2015-12-09T19:48:19.000Z | 2022-03-07T02:19:47.000Z | builtin/python/python_converters.cc | mldbai/mldb | 0554aa390a563a6294ecc841f8026a88139c3041 | [
"Apache-2.0"
] | 103 | 2015-12-25T04:39:29.000Z | 2022-02-03T02:55:22.000Z | /** python_converters.cc
Jeremy Barnes, 7 December 2015
Copyright (c) 2015 mldb.ai inc. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
*/
#include "python_converters.h"
#include "python_interpreter.h"
#include "from_python_converter.h"
#include "mldb_pyth... | 30.366048 | 114 | 0.533805 | [
"object"
] |
e4a792b2338668a97293519dc77a18553fe6aa0e | 7,982 | cxx | C++ | src/tutorials/c++/basics/doSumProdInference.cxx | jasjuang/opengm | 3c098e91244c98dbd3aafdc5e3a54dad67b7dfd9 | [
"MIT"
] | 318 | 2015-01-07T15:22:02.000Z | 2022-01-22T10:10:29.000Z | src/tutorials/c++/basics/doSumProdInference.cxx | jasjuang/opengm | 3c098e91244c98dbd3aafdc5e3a54dad67b7dfd9 | [
"MIT"
] | 89 | 2015-03-24T14:33:01.000Z | 2020-07-10T13:59:13.000Z | src/tutorials/c++/basics/doSumProdInference.cxx | jasjuang/opengm | 3c098e91244c98dbd3aafdc5e3a54dad67b7dfd9 | [
"MIT"
] | 119 | 2015-01-13T08:35:03.000Z | 2022-03-01T01:49:08.000Z | /***********************************************************************
* Tutorial: Inference on the Sum-Prod-Semiring (marginalization)
* Author: Joerg Hendrik Kappes
* Date: 09.07.2014
* Dependencies: None
*
* Description:
* ------------
* This Example construct a model and find the labelin... | 40.72449 | 192 | 0.600351 | [
"shape",
"vector",
"model"
] |
e4a9da554bb3bcebf47431b3e8de5b735e95d610 | 380 | hpp | C++ | LeetCode/1005_MaximizeSumOfArrayAfterKNegations.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | LeetCode/1005_MaximizeSumOfArrayAfterKNegations.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | LeetCode/1005_MaximizeSumOfArrayAfterKNegations.hpp | defUserName-404/Online-Judge | 197ac5bf3e2149474b191eeff106b12cd723ec8c | [
"MIT"
] | null | null | null | #include <algorithm>
#include <vector>
// W/A
class Solution
{
public:
int largestSumAfterKNegations(std::vector<int> &nums, int k);
};
int Solution::largestSumAfterKNegations(std::vector<int> &nums, int k)
{
std::sort(nums.begin(), nums.end());
int sum = 0, negatives = 0;
for (int &x : nums)
... | 14.615385 | 70 | 0.573684 | [
"vector"
] |
e4aebf6e027cab4096817c5b7c8a4ee6d4a72b1e | 1,031 | cxx | C++ | StRoot/RTS/EventTracker/FtfBaseHit.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/RTS/EventTracker/FtfBaseHit.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/RTS/EventTracker/FtfBaseHit.cxx | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | //:>------------------------------------------------------------------
//: FILE: FtfBaseHit.cxx
//: HISTORY:
//: 1sep1999 ppy first version
//:<------------------------------------------------------------------
//:>------------------------------------------------------------------
//: CLASS: Ft... | 34.366667 | 75 | 0.327837 | [
"3d"
] |
e4b03dfe10cb6bb68e9c9d4c786ed2944055bde0 | 13,308 | cpp | C++ | main.cpp | etienneSG/Tools | 45f4aa34e7266c307edcd92be3e903b27d90a041 | [
"BSD-3-Clause"
] | null | null | null | main.cpp | etienneSG/Tools | 45f4aa34e7266c307edcd92be3e903b27d90a041 | [
"BSD-3-Clause"
] | null | null | null | main.cpp | etienneSG/Tools | 45f4aa34e7266c307edcd92be3e903b27d90a041 | [
"BSD-3-Clause"
] | null | null | null | #include "array2d.h"
#include "hcube_iterator.h"
#include "knapsack.h"
#include "n_choose_k_iterator.h"
#include "quick_sort.h"
#include "random_iterator.h"
#include "time_tools.h"
#include "tolerance.h"
#include <algorithm>
#include <iostream>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <vector>
... | 23.388401 | 89 | 0.52893 | [
"vector"
] |
e4b1443f4ab8699f7ccec21f2974430492ad1a53 | 2,436 | cpp | C++ | LeetCode/Problems/Algorithms/#282_ExpressionAddOperators_sol2_backtracking_O(N4^N)_time_O(N)_extra_space_292ms_14.4MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#282_ExpressionAddOperators_sol2_backtracking_O(N4^N)_time_O(N)_extra_space_292ms_14.4MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#282_ExpressionAddOperators_sol2_backtracking_O(N4^N)_time_O(N)_extra_space_292ms_14.4MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class Solution {
private:
using ll = long long;
void back(const string& NUM_STR, const int& TARGET_SUM, int startIdx, ll prevTerm, ll currentSum,
string& currentExpression, vector<string>& expressions){
if(startIdx == (int)NUM_STR.length()){
if(currentSum == TARGET... | 43.5 | 113 | 0.454844 | [
"vector"
] |
e4b3a49b40e4ff082f63081a95f63b491486b42a | 36,150 | cc | C++ | Volume_11/Number_3/Sanderson2006/cpu_demo/rd_base.cc | kyeonghopark/jgt-code | 08bbcc298e12582e32cb56a52e70344c57689d73 | [
"MIT"
] | 415 | 2015-10-24T17:37:12.000Z | 2022-02-18T04:09:07.000Z | Volume_11/Number_3/Sanderson2006/cpu_demo/rd_base.cc | kyeonghopark/jgt-code | 08bbcc298e12582e32cb56a52e70344c57689d73 | [
"MIT"
] | 8 | 2016-01-15T13:23:16.000Z | 2021-05-27T01:49:50.000Z | Volume_11/Number_3/Sanderson2006/cpu_demo/rd_base.cc | kyeonghopark/jgt-code | 08bbcc298e12582e32cb56a52e70344c57689d73 | [
"MIT"
] | 77 | 2015-10-24T22:36:29.000Z | 2022-03-24T01:03:54.000Z | /*****************************************************************************/
/* */
/* Copyright (c) 2005 Allen R. Sanderson */
/* */
/* Scientific Computing and Imaging Institute */
/* University of Utah */
/* Salt Lake City, Utah ... | 29.036145 | 107 | 0.481549 | [
"vector",
"3d"
] |
e4b97748560633275d5d37c511281e256726582e | 3,219 | cc | C++ | tests/tools/nnpackage_run/src/rawformatter.cc | glistening/ONE-1 | cadf3a4da4f4340081862abbd3900af7c4b0e22d | [
"Apache-2.0"
] | null | null | null | tests/tools/nnpackage_run/src/rawformatter.cc | glistening/ONE-1 | cadf3a4da4f4340081862abbd3900af7c4b0e22d | [
"Apache-2.0"
] | null | null | null | tests/tools/nnpackage_run/src/rawformatter.cc | glistening/ONE-1 | cadf3a4da4f4340081862abbd3900af7c4b0e22d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 32.846939 | 98 | 0.641814 | [
"vector"
] |
e4bd6391cab1a687ebdd0ac42db9d3c82372b7fc | 33,580 | hpp | C++ | tmp/xlua/support.hpp | xuantao/xlua | 0c2d3e9dd55a8b238472b6ae5955feb64d00058c | [
"MIT"
] | 1 | 2019-10-24T13:49:23.000Z | 2019-10-24T13:49:23.000Z | tmp/xlua/support.hpp | xuantao/xlua | 0c2d3e9dd55a8b238472b6ae5955feb64d00058c | [
"MIT"
] | null | null | null | tmp/xlua/support.hpp | xuantao/xlua | 0c2d3e9dd55a8b238472b6ae5955feb64d00058c | [
"MIT"
] | null | null | null | #pragma once
XLUA_NAMESPACE_BEGIN
template <typename Cat, typename Ty, bool AllowNil>
struct SupportCategory {
typedef Cat category; // value, object or not support
typedef Ty value_type; // load value type
static constexpr bool allow_nil = AllowNil; // load as function parameter is allow nil
};
templa... | 35.236097 | 132 | 0.588475 | [
"object",
"vector"
] |
e4c1246435ae7f57a0dd4f635ecf0f5abe6fe824 | 1,532 | hpp | C++ | mark.hpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | mark.hpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | mark.hpp | ibaned/omega_h_v1 | 9ab9efca33d66e4411f87206a7bd1534cec116e4 | [
"MIT"
] | null | null | null | #ifndef MARK_HPP
#define MARK_HPP
namespace omega_h {
unsigned* mark_down(
unsigned nlows,
unsigned const* highs_of_lows_offsets,
unsigned const* highs_of_lows,
unsigned const* marked_highs);
unsigned* mark_up(
unsigned high_dim,
unsigned low_dim,
unsigned nhighs,
unsigned const* lows... | 24.709677 | 83 | 0.755875 | [
"mesh"
] |
e4c256db3e02a502a0dc54c1b8d99530cb7ea64e | 7,999 | hpp | C++ | cpp-projects/opengl-utility/opengl/buffer/atomic_buffer_object.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/opengl-utility/opengl/buffer/atomic_buffer_object.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/opengl-utility/opengl/buffer/atomic_buffer_object.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | 1 | 2021-07-06T14:47:41.000Z | 2021-07-06T14:47:41.000Z |
#pragma once
// local
#include "opengl/utility/gl_utility.hpp"
// static void bind_ranges(std::vector<GLuint> &buffers, GLuint first, std::vector<GLintptr> offsets = {}){
// glBindBuffersRange(
// GL_ATOMIC_COUNTER_BUFFER, // GLenum target,
// first, ... | 57.546763 | 704 | 0.682335 | [
"render",
"object",
"vector"
] |
e4c4a6b9ce3a597f353a2a1d4f01c32de5e5e018 | 4,172 | cpp | C++ | ElfUtils/LinuxMap.cpp | AdrianaDJ/orb | 6aba588b9cd74c28045c950880febc3f5102032f | [
"BSD-2-Clause"
] | 1 | 2021-10-18T03:20:42.000Z | 2021-10-18T03:20:42.000Z | ElfUtils/LinuxMap.cpp | AdrianaDJ/orb | 6aba588b9cd74c28045c950880febc3f5102032f | [
"BSD-2-Clause"
] | 3 | 2022-02-13T22:28:55.000Z | 2022-02-27T11:05:02.000Z | ElfUtils/LinuxMap.cpp | AdrianaDJ/orb | 6aba588b9cd74c28045c950880febc3f5102032f | [
"BSD-2-Clause"
] | 1 | 2021-01-15T22:58:10.000Z | 2021-01-15T22:58:10.000Z | // Copyright (c) 2020 The Orbit 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 "ElfUtils/LinuxMap.h"
#include <absl/strings/str_format.h>
#include <absl/strings/str_split.h>
#include <sys/stat.h>
#include <unistd.h>
#incl... | 35.65812 | 94 | 0.696788 | [
"vector"
] |
e4c7338501061f6b6910a9a81aef86e08c6cab19 | 522 | cpp | C++ | LeetCode/Solutions/LC0784.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | LeetCode/Solutions/LC0784.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | LeetCode/Solutions/LC0784.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://leetcode.com/problems/letter-case-permutation/
Time: O(2ⁿ • n)
Space: O(2ⁿ)
Author: Mohammed Shoaib, github.com/Mohammed-Shoaib
*/
class Solution {
public:
vector<string> letterCasePermutation(string S) {
vector<string> perms = { "" };
for (char& c: S) {
vector<string> state;
... | 20.88 | 73 | 0.641762 | [
"vector"
] |
e4c9d150b5b291ef7a5c86f979f45a8a90237c84 | 3,401 | cpp | C++ | src/internal/FirstOrderProvider.cpp | gergondet/tvm | e40c11ada9ba8d3e875072d77843e49845b267b9 | [
"BSD-3-Clause"
] | 2 | 2021-03-15T00:54:58.000Z | 2022-02-01T20:15:47.000Z | src/internal/FirstOrderProvider.cpp | ANYbotics/tvm | fb3c7334fc496a5226ec9ee7568dc6ce51c22046 | [
"BSD-3-Clause"
] | null | null | null | src/internal/FirstOrderProvider.cpp | ANYbotics/tvm | fb3c7334fc496a5226ec9ee7568dc6ce51c22046 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright 2017-2018 CNRS-AIST JRL and CNRS-UM LIRMM
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the foll... | 27.877049 | 125 | 0.709203 | [
"vector"
] |
e4d37e520dedbeb5032ef26e74382ff006c9ede2 | 15,035 | cc | C++ | DQM/SiStripCommissioningSummary/src/SummaryGenerator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DQM/SiStripCommissioningSummary/src/SummaryGenerator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DQM/SiStripCommissioningSummary/src/SummaryGenerator.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "DQM/SiStripCommissioningSummary/interface/SummaryGenerator.h"
#include "DQM/SiStripCommissioningSummary/interface/SummaryGeneratorControlView.h"
#include "DQM/SiStripCommissioningSummary/interface/SummaryGeneratorReadoutView.h"
#include "DataFormats/SiStripCommon/interface/SiStripEnumsAndStrings.h"
#include "... | 35.797619 | 137 | 0.539009 | [
"object",
"vector",
"solid"
] |
e4fa389efd6c39c933793e0318b0f55c9cc84e35 | 2,637 | cpp | C++ | lib/atlas/source/atlas/core/Log.cpp | yaoyao0821/bsoid_test | 6222653652cf29cc09c1bb2435874573f31a6369 | [
"MIT"
] | null | null | null | lib/atlas/source/atlas/core/Log.cpp | yaoyao0821/bsoid_test | 6222653652cf29cc09c1bb2435874573f31a6369 | [
"MIT"
] | null | null | null | lib/atlas/source/atlas/core/Log.cpp | yaoyao0821/bsoid_test | 6222653652cf29cc09c1bb2435874573f31a6369 | [
"MIT"
] | null | null | null | #include "atlas/core/Platform.hpp"
#include "atlas/core/Log.hpp"
#ifdef ATLAS_PLATFORM_WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include <chrono>
#include <ctime>
#include <cstring>
#include <sstream>
#include <iomanip>
#include <vector>
#include <cstdarg>
static const int kMaxLogLength = 16 *... | 26.908163 | 81 | 0.50967 | [
"vector"
] |
e4fcc93146f0e407ce723a0acce37f27fd313b42 | 13,570 | cpp | C++ | software/protoDUNE/util/rssi_sink.cpp | slaclab/proto-dune | e487ee6d40359b40776098410d7fd302b9631448 | [
"BSD-3-Clause-LBNL"
] | null | null | null | software/protoDUNE/util/rssi_sink.cpp | slaclab/proto-dune | e487ee6d40359b40776098410d7fd302b9631448 | [
"BSD-3-Clause-LBNL"
] | 2 | 2017-05-11T04:22:27.000Z | 2018-09-18T16:10:29.000Z | software/protoDUNE/util/rssi_sink.cpp | slaclab/proto-dune | e487ee6d40359b40776098410d7fd302b9631448 | [
"BSD-3-Clause-LBNL"
] | 2 | 2017-04-03T21:59:53.000Z | 2020-12-13T00:14:20.000Z | // -*-Mode: C;-*-
/* ---------------------------------------------------------------------- *//*!
*
* @file rssi_sink.cpp
* @brief Primitive RSSI receiver for data from the RCEs. This is
* a very small modification of Ryan's original implementation.
* @verbatim
* ... | 29.182796 | 100 | 0.452763 | [
"vector"
] |
900070f78c15a8b727b8527f292c5dade4d33b67 | 786 | cpp | C++ | Section 1/Section 1 Code Files/regex.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | 17 | 2019-10-10T21:09:51.000Z | 2022-01-13T15:54:24.000Z | Section 1/Section 1 Code Files/regex.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | null | null | null | Section 1/Section 1 Code Files/regex.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | 16 | 2019-10-10T21:09:55.000Z | 2022-02-13T11:42:52.000Z | #include <string>
#include <iostream>
#include <regex>
using namespace std;
int main() {
string s("This is a large string containing some numbers like 408 and (382), it also contains some phone numbers like (921) 523-1101, 117-332-1019, and +13314560987. These should all match, but ignore our lone numbers like 433... | 27.103448 | 285 | 0.614504 | [
"object"
] |
07eeae2e5fdabacfa4b9de1f79872ece241e3517 | 2,002 | cpp | C++ | libraries/lib-network-manager/curl/CurlResponseFactory.cpp | Schweini07/audacium | f785b4e040043fd2ff15972578099e01843ec8e9 | [
"CC-BY-3.0"
] | null | null | null | libraries/lib-network-manager/curl/CurlResponseFactory.cpp | Schweini07/audacium | f785b4e040043fd2ff15972578099e01843ec8e9 | [
"CC-BY-3.0"
] | null | null | null | libraries/lib-network-manager/curl/CurlResponseFactory.cpp | Schweini07/audacium | f785b4e040043fd2ff15972578099e01843ec8e9 | [
"CC-BY-3.0"
] | null | null | null | /*!********************************************************************
Audacity: A Digital Audio Editor
@file CurlResponseFactory.cpp
@brief Define an implementation of IResponseFactory using libcurl.
Dmitry Vedenko
**********************************************************************/
#include "Cu... | 24.716049 | 122 | 0.595904 | [
"vector"
] |
07f44cfa2f822b7d9c4e55766488d1b6c83cc437 | 82,379 | cpp | C++ | src/mainwindow.cpp | ryan-cranfill/monster-mash | c1b906d996885f8a4011bdf7558e62e968e1e914 | [
"Apache-2.0"
] | 3 | 2021-07-25T17:38:19.000Z | 2022-01-17T03:11:16.000Z | src/mainwindow.cpp | ryan-cranfill/monster-mash | c1b906d996885f8a4011bdf7558e62e968e1e914 | [
"Apache-2.0"
] | null | null | null | src/mainwindow.cpp | ryan-cranfill/monster-mash | c1b906d996885f8a4011bdf7558e62e968e1e914 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020-2021 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 t... | 31.929845 | 80 | 0.630658 | [
"mesh",
"geometry",
"shape",
"vector",
"model",
"3d"
] |
07f579f301e69f2ff38c40ffa50d3e956587e2fd | 2,244 | cpp | C++ | 21.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 21.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 21.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ull = uint64_t;
using ll = int64_t;
using ld = long double;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
struct ListNode
{
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
class Solution
{
public:
ListNode* merg... | 33 | 192 | 0.642157 | [
"vector"
] |
07f631683e4130cc760cbc9c9e7271b8a4468c55 | 14,591 | cpp | C++ | api_bridge_example_backend/src/ex_benchmark.cpp | jlakness-intel/api-bridge | 5287cac775976906abd99e09a113ef70ce9b07df | [
"Apache-2.0"
] | 4 | 2021-10-09T12:41:16.000Z | 2022-03-09T22:08:37.000Z | api_bridge_example_backend/src/ex_benchmark.cpp | jlakness-intel/api-bridge | 5287cac775976906abd99e09a113ef70ce9b07df | [
"Apache-2.0"
] | null | null | null | api_bridge_example_backend/src/ex_benchmark.cpp | jlakness-intel/api-bridge | 5287cac775976906abd99e09a113ef70ce9b07df | [
"Apache-2.0"
] | 1 | 2021-12-14T20:16:58.000Z | 2021-12-14T20:16:58.000Z |
// Copyright (C) 2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include <algorithm>
#include <cstring>
#include <memory>
#include <vector>
#include "../include/ex_benchmark.h"
#include "../include/ex_engine.h"
//-----------------------------------
// class ExampleBenchmarkDescription
//-------------... | 48.799331 | 198 | 0.647111 | [
"object",
"vector"
] |
07f95964f089f0f2086822adb16f7e5f6f630473 | 723 | hpp | C++ | game.hpp | OneMoreCookiePlease/asteroids | b0aaeab8efe87b8269108848e5efc44f1bdaceb0 | [
"MIT"
] | null | null | null | game.hpp | OneMoreCookiePlease/asteroids | b0aaeab8efe87b8269108848e5efc44f1bdaceb0 | [
"MIT"
] | null | null | null | game.hpp | OneMoreCookiePlease/asteroids | b0aaeab8efe87b8269108848e5efc44f1bdaceb0 | [
"MIT"
] | null | null | null | #pragma once
#include "SFML/Graphics.hpp"
#include "SFML/Window.hpp"
#include "utils.hpp"
#include "object.hpp"
class Game final
{
private:
bool m_is_running = true;
int m_exit_code;
float m_minimum_d_time = 0;
std::vector<Object>objects;
sf::RenderWindow m_window;
public:
Game();
~Game(... | 18.075 | 54 | 0.589212 | [
"object",
"vector"
] |
07fec19344b1d1025ddd15955ef711a4b4f61cd1 | 799 | cpp | C++ | STL/Sequence Containers/10 emplace in stl.cpp | arvindr19/cppnuts | 3814a00348e0eb8588711bab751d3db1b6af6a25 | [
"MIT"
] | null | null | null | STL/Sequence Containers/10 emplace in stl.cpp | arvindr19/cppnuts | 3814a00348e0eb8588711bab751d3db1b6af6a25 | [
"MIT"
] | null | null | null | STL/Sequence Containers/10 emplace in stl.cpp | arvindr19/cppnuts | 3814a00348e0eb8588711bab751d3db1b6af6a25 | [
"MIT"
] | null | null | null | // TOPIC: Emplace In STL
// 1. All the containers supports insert and emplace operation to store data.
// 2. Emplace is used to construct object in-place and avoids unnecessary copy of objects.
// 3. Insert and Emplace is equal for premetive data types but when we deal with heavy objects
// we should use emplace i... | 26.633333 | 94 | 0.612015 | [
"object"
] |
580874936588a0f53e31daf6ec0a98ba02d50128 | 7,735 | cc | C++ | plugins/GravityCompensationPlugin.cc | apiyap/gazebo | adb08340fe71488045dd79a6465db7d58e3ae06f | [
"ECL-2.0",
"Apache-2.0"
] | 887 | 2020-04-18T08:43:06.000Z | 2022-03-31T11:58:50.000Z | plugins/GravityCompensationPlugin.cc | apiyap/gazebo | adb08340fe71488045dd79a6465db7d58e3ae06f | [
"ECL-2.0",
"Apache-2.0"
] | 462 | 2020-04-21T21:59:19.000Z | 2022-03-31T23:23:21.000Z | plugins/GravityCompensationPlugin.cc | apiyap/gazebo | adb08340fe71488045dd79a6465db7d58e3ae06f | [
"ECL-2.0",
"Apache-2.0"
] | 421 | 2020-04-21T09:13:03.000Z | 2022-03-30T02:22:01.000Z | /*
* Copyright (C) 2017 Open Source Robotics Foundation
*
* 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 appl... | 29.98062 | 80 | 0.634777 | [
"model"
] |
580d2b29842328ca158d8f72dbbc94546e8f83fd | 3,554 | cpp | C++ | example_objectDetection/src/ofApp.cpp | natxopedreira/ofxTensorFlow2 | a8ef10fa3380e2d55bbd3c7cccaa363d9c7ba9ad | [
"BSD-2-Clause"
] | null | null | null | example_objectDetection/src/ofApp.cpp | natxopedreira/ofxTensorFlow2 | a8ef10fa3380e2d55bbd3c7cccaa363d9c7ba9ad | [
"BSD-2-Clause"
] | null | null | null | example_objectDetection/src/ofApp.cpp | natxopedreira/ofxTensorFlow2 | a8ef10fa3380e2d55bbd3c7cccaa363d9c7ba9ad | [
"BSD-2-Clause"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
model.load("model");
img_dog.load(ofToDataPath("dog.jpg"));
vector<string> inputs{"serving_default_input_tensor:0"};
vector<string> outputs{"StatefulPartitionedCall:0",
... | 27.338462 | 83 | 0.47749 | [
"vector",
"model"
] |
5812b5bb3275bc9001ab6cf7d1af9380c70aa8e6 | 151 | cpp | C++ | shape_wrapper.cpp | DreamingNight/ModernCppPractice | 97a1496537ff2ba7df060f5351f87a815e203161 | [
"MIT"
] | null | null | null | shape_wrapper.cpp | DreamingNight/ModernCppPractice | 97a1496537ff2ba7df060f5351f87a815e203161 | [
"MIT"
] | null | null | null | shape_wrapper.cpp | DreamingNight/ModernCppPractice | 97a1496537ff2ba7df060f5351f87a815e203161 | [
"MIT"
] | null | null | null | class shape {};
class circle : public shape {};
class triangle : public shape {};
class shape_wrapper {
public:
explicit shape_wrapper(shape *ptr)
} | 18.875 | 36 | 0.721854 | [
"shape"
] |
58140dd89651c76fd9a74f92a5830187bc1fe40c | 3,888 | cpp | C++ | Engine/source/EtRendering/MaterialSystem/MaterialData.cpp | NeroBurner/ETEngine | 3fe039ff65cd1355957bcfce3f851fa411a86d94 | [
"MIT"
] | null | null | null | Engine/source/EtRendering/MaterialSystem/MaterialData.cpp | NeroBurner/ETEngine | 3fe039ff65cd1355957bcfce3f851fa411a86d94 | [
"MIT"
] | null | null | null | Engine/source/EtRendering/MaterialSystem/MaterialData.cpp | NeroBurner/ETEngine | 3fe039ff65cd1355957bcfce3f851fa411a86d94 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "MaterialData.h"
#include "MaterialDescriptor.h"
#include <EtCore/Reflection/Serialization.h>
#include <EtCore/FileSystem/FileUtil.h>
namespace et {
namespace render {
//==========
// Material
//==========
// reflection
//////////////
RTTR_REGISTRATION
{
rttr::registration::enumer... | 26.44898 | 139 | 0.708848 | [
"render",
"vector"
] |
5814d0904fa27ad851d6b909e1e1a18e7019c280 | 18,889 | cpp | C++ | contracts/eosio.system/voting.cpp | payb-foundation/PayB | 00fa1d6f498c19bb2307ea97ab277de514051b4c | [
"MIT"
] | null | null | null | contracts/eosio.system/voting.cpp | payb-foundation/PayB | 00fa1d6f498c19bb2307ea97ab277de514051b4c | [
"MIT"
] | null | null | null | contracts/eosio.system/voting.cpp | payb-foundation/PayB | 00fa1d6f498c19bb2307ea97ab277de514051b4c | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include "eosio.system.hpp"
#include <eosiolib/eosio.hpp>
#include <eosiolib/crypto.h>
#include <eosiolib/print.hpp>
#include <eosiolib/datastream.hpp>
#include <eosiolib/serialize.hpp>
#include <eosiolib/multi_index.hpp>
#include <eosiolib/privileged.hpp>
#i... | 41.423246 | 166 | 0.622214 | [
"object",
"vector"
] |
58184cd7cd718915428b9bbad784121b5711c4c9 | 34,041 | cpp | C++ | clicache/src/DataInput.cpp | mcmellawatt/geode-native | 53315985c4386e6781473c5713d638c8139e3e8e | [
"Apache-2.0"
] | null | null | null | clicache/src/DataInput.cpp | mcmellawatt/geode-native | 53315985c4386e6781473c5713d638c8139e3e8e | [
"Apache-2.0"
] | null | null | null | clicache/src/DataInput.cpp | mcmellawatt/geode-native | 53315985c4386e6781473c5713d638c8139e3e8e | [
"Apache-2.0"
] | null | null | null | /*
* 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 may ... | 28.799492 | 168 | 0.538263 | [
"object"
] |
581e6ae08a33f22d4fd391978dbff902e925fcb4 | 1,322 | cpp | C++ | main_pearce.cpp | phisco/advance_algorithms_project | 2961959cf6036ed4c85d479dd14389315df55ee1 | [
"MIT"
] | 3 | 2018-07-04T13:46:31.000Z | 2018-11-28T16:42:31.000Z | main_pearce.cpp | phisco/advance_algorithms_project | 2961959cf6036ed4c85d479dd14389315df55ee1 | [
"MIT"
] | null | null | null | main_pearce.cpp | phisco/advance_algorithms_project | 2961959cf6036ed4c85d479dd14389315df55ee1 | [
"MIT"
] | null | null | null | #include "my_pearce.cpp"
#include <boost/graph/erdos_renyi_generator.hpp>
#include <boost/random/linear_congruential.hpp>
#include <boost/graph/graphml.hpp>
#include <boost/property_map/dynamic_property_map.hpp>
#include <boost/graph/transitive_closure.hpp>
using namespace boost;
#ifndef TYPEDEF
#define TYPEDEF
type... | 29.377778 | 87 | 0.707262 | [
"object",
"vector"
] |
581ffe5839c345e645811108327a587701b94a66 | 2,603 | cc | C++ | smartag/src/model/DescribeQosesResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | smartag/src/model/DescribeQosesResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | smartag/src/model/DescribeQosesResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 29.247191 | 77 | 0.742605 | [
"vector",
"model"
] |
582328a312489eb60c7e5203c0e337a08f856b4d | 881 | cpp | C++ | game/world/objects/itemtorchburning.cpp | houkama/OpenGothic | 0a5e429bc1fd370259abe8664f19dc9e365ecac5 | [
"MIT"
] | 576 | 2019-07-22T19:14:33.000Z | 2022-03-31T22:27:28.000Z | game/world/objects/itemtorchburning.cpp | houkama/OpenGothic | 0a5e429bc1fd370259abe8664f19dc9e365ecac5 | [
"MIT"
] | 208 | 2019-07-22T17:25:30.000Z | 2022-03-14T18:53:06.000Z | game/world/objects/itemtorchburning.cpp | houkama/OpenGothic | 0a5e429bc1fd370259abe8664f19dc9e365ecac5 | [
"MIT"
] | 67 | 2019-10-14T19:39:38.000Z | 2022-01-27T13:58:03.000Z | #include "itemtorchburning.h"
#include "world/world.h"
ItemTorchBurning::ItemTorchBurning(World& owner, size_t inst, Item::Type type)
:Item(owner,inst,type) {
auto& sc = owner.script();
Daedalus::GEngineClasses::C_Item hitem={};
sc.initializeInstance(hitem,inst);
sc.clearReferences(hitem);
view.setVisual... | 23.810811 | 78 | 0.700341 | [
"transform"
] |
5832905b9f64842a7f05800c899b539546f914b7 | 22,630 | cc | C++ | src/compiler/pipeline.cc | ttyangf/v8 | cb1b554a837bb47ec718c1542d462cb2ac2aa0fd | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | null | null | null | src/compiler/pipeline.cc | ttyangf/v8 | cb1b554a837bb47ec718c1542d462cb2ac2aa0fd | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 1 | 2019-01-16T13:06:04.000Z | 2019-01-16T13:06:04.000Z | src/compiler/pipeline.cc | ttyangf/v8 | cb1b554a837bb47ec718c1542d462cb2ac2aa0fd | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 2 | 2020-05-05T12:11:43.000Z | 2022-03-22T20:36:04.000Z | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/pipeline.h"
#include <fstream> // NOLINT(readability/streams)
#include <sstream>
#include "src/base/platform/elapsed-timer.h"
... | 34.815385 | 80 | 0.662262 | [
"vector"
] |
5837c4e235d7cc67235a4425d935ae550166b534 | 6,563 | cpp | C++ | Geolocalizacion/sourcewidget.cpp | ZoraDomain/-Garbanzo | 1a3004ed3a269d418a407ca637b76b8891e9e5fb | [
"Apache-2.0"
] | null | null | null | Geolocalizacion/sourcewidget.cpp | ZoraDomain/-Garbanzo | 1a3004ed3a269d418a407ca637b76b8891e9e5fb | [
"Apache-2.0"
] | null | null | null | Geolocalizacion/sourcewidget.cpp | ZoraDomain/-Garbanzo | 1a3004ed3a269d418a407ca637b76b8891e9e5fb | [
"Apache-2.0"
] | null | null | null | #include "sourcewidget.h"
#include "marker.h"
#include "logfilepositionsource.h"
#include "bus.h"
#include <QPushButton>
#include <QPlainTextEdit>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QFileDialog>
#include <QDebug>
SourceWidget::SourceWidget(QWidget *parent) : QWidget(parent) {
setupNmeaLog();
... | 34.005181 | 133 | 0.599116 | [
"object"
] |
583c2d5c220655f0aac6633cf6590e40709bf401 | 1,805 | cpp | C++ | potw/deck-of-cards/src/main.cpp | tehwalris/algolab | 489e0f6dd137336fa32b8002fc6eed8a7d35d87a | [
"MIT"
] | 1 | 2021-01-17T08:21:32.000Z | 2021-01-17T08:21:32.000Z | potw/deck-of-cards/src/main.cpp | tehwalris/algolab | 489e0f6dd137336fa32b8002fc6eed8a7d35d87a | [
"MIT"
] | null | null | null | potw/deck-of-cards/src/main.cpp | tehwalris/algolab | 489e0f6dd137336fa32b8002fc6eed8a7d35d87a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <limits>
#include <assert.h>
#include <algorithm>
void testcase()
{
int n, k;
std::cin >> n >> k;
assert(n > 0);
std::vector<int> cardValuesCum;
int cumSum = 0;
for (int i = 0; i < n; i++)
{
int v;
std::cin >> v;
cumSum += v;
... | 19.202128 | 96 | 0.537396 | [
"vector"
] |
58468b23267e9abb47a831e307e99b8232a25792 | 13,349 | cc | C++ | modules/video_coding/main/test/test_callbacks.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/video_coding/main/test/test_callbacks.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/video_coding/main/test/test_callbacks.cc | yuxw75/temp | ab2fd478821e6c98ff10f2976ce43f617250cff6 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 27.810417 | 80 | 0.628511 | [
"model"
] |
584aac545cfc6ee8881c80b85c3d92481eff5895 | 1,240 | cpp | C++ | Leetcode/1000-2000/1804. Implement Trie II (Prefix Tree)/1804.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1804. Implement Trie II (Prefix Tree)/1804.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/1000-2000/1804. Implement Trie II (Prefix Tree)/1804.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | struct TrieNode {
vector<TrieNode*> children;
int prefixCount = 0;
int wordCount = 0;
TrieNode() : children(26) {}
~TrieNode() {
for (TrieNode* child : children)
delete child;
}
};
class Trie {
public:
void insert(string word) {
TrieNode* node = &root;
for (const char c : word) {
... | 20.666667 | 45 | 0.565323 | [
"vector"
] |
584ab34a99ffd0cabb8454831432dad0601bc864 | 1,020 | hpp | C++ | applications/robin/cpp/pdepart.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | applications/robin/cpp/pdepart.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | 1 | 2019-01-31T10:59:11.000Z | 2019-01-31T10:59:11.000Z | applications/robin/cpp/pdepart.hpp | beckerrh/simfemsrc | d857eb6f6f8627412d4f9d89a871834c756537db | [
"MIT"
] | null | null | null | #ifndef ___PdePart_hpp
#define ___PdePart_hpp
#include "Solvers/pdepartwithintegration.hpp"
#include "Solvers/rt0.hpp"
#include "model.hpp"
/*--------------------------------------------------------------------------*/
class PdePart : public solvers::PdePartWithIntegration
{
protected:
mutable alat::armavec _bet... | 29.142857 | 100 | 0.644118 | [
"model"
] |
584acec313b99cb0335fb9c0e94db48ecd13be33 | 4,180 | hpp | C++ | libraries/chain/include/evt/chain/name.hpp | everitoken/evt | 3fbc2d0fd43421d81e1c88fa91d41ea97477e9ea | [
"Apache-2.0"
] | 1,411 | 2018-04-23T03:57:30.000Z | 2022-02-13T10:34:22.000Z | libraries/chain/include/evt/chain/name.hpp | baby636/evt | 3fbc2d0fd43421d81e1c88fa91d41ea97477e9ea | [
"Apache-2.0"
] | 27 | 2018-06-11T10:34:42.000Z | 2019-07-27T08:50:02.000Z | libraries/chain/include/evt/chain/name.hpp | baby636/evt | 3fbc2d0fd43421d81e1c88fa91d41ea97477e9ea | [
"Apache-2.0"
] | 364 | 2018-06-09T12:11:53.000Z | 2020-12-15T03:26:48.000Z | /**
* @file
* @copyright defined in evt/LICENSE.txt
*/
#pragma once
#include <string.h>
#include <iosfwd>
#include <string>
#include <vector>
#include <fmt/format.h>
#include <fc/reflect/reflect.hpp>
namespace evt { namespace chain {
using std::string;
static constexpr uint64_t
char_to_symbol(char c) {
if(c... | 21.770833 | 92 | 0.582536 | [
"vector"
] |
585b6562375eed2762d12039c1d89cfdf507fadb | 3,733 | cpp | C++ | NetworkFlow24/codes/P3356.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2021-02-22T03:39:24.000Z | 2021-02-22T03:39:24.000Z | NetworkFlow24/codes/P3356.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | NetworkFlow24/codes/P3356.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | /*************************************************************
* > File Name : P3356.cpp
* > Author : Tony
* > Created Time : 2020/04/20 14:55:29
* > Algorithm : 费用流
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
inline... | 26.856115 | 95 | 0.424859 | [
"vector"
] |
585c51582b1fb4794f3a18d208e66afe90ef5bd6 | 2,152 | cpp | C++ | source/json/h2_select.cpp | lingjf/jp | e7fa2c97c3e1906bfb77afc1b07f0d51b53693d8 | [
"Apache-2.0"
] | null | null | null | source/json/h2_select.cpp | lingjf/jp | e7fa2c97c3e1906bfb77afc1b07f0d51b53693d8 | [
"Apache-2.0"
] | null | null | null | source/json/h2_select.cpp | lingjf/jp | e7fa2c97c3e1906bfb77afc1b07f0d51b53693d8 | [
"Apache-2.0"
] | null | null | null | struct h2_json_select {
struct value {
int index;
h2_string key;
};
std::vector<value> values;
h2_json_select(const char* selector)
{
const int st_idle = 0;
const int st_in_dot = 1;
const int st_in_bracket = 2;
int state = 0;
const char *s = nullptr, *p = selec... | 30.742857 | 94 | 0.369424 | [
"vector"
] |
5860eb20660ff4af7a201b25e616cc75fc9d42db | 4,032 | cpp | C++ | src/imu-frontend/ImuFrontendParams.cpp | AllMySlam1/Kimera-VIO | 53621cd3d39b0facf81eb056e92ebd9037560c5b | [
"BSD-2-Clause"
] | null | null | null | src/imu-frontend/ImuFrontendParams.cpp | AllMySlam1/Kimera-VIO | 53621cd3d39b0facf81eb056e92ebd9037560c5b | [
"BSD-2-Clause"
] | null | null | null | src/imu-frontend/ImuFrontendParams.cpp | AllMySlam1/Kimera-VIO | 53621cd3d39b0facf81eb056e92ebd9037560c5b | [
"BSD-2-Clause"
] | null | null | null | /* ----------------------------------------------------------------------------
* Copyright 2017, Massachusetts Institute of Technology,
* Cambridge, MA 02139
* All Rights Reserved
* Authors: Luca Carlone, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------... | 37.333333 | 80 | 0.655258 | [
"geometry",
"vector"
] |
5864d0f7c8b51ec8f9163e6d386cd28856a9b6a6 | 6,384 | cpp | C++ | Engine/2d/vectorimage.cpp | Sebbestune/MoltenTempest | f77258355dde5648085847da2f4517ffb97b31ff | [
"MIT"
] | null | null | null | Engine/2d/vectorimage.cpp | Sebbestune/MoltenTempest | f77258355dde5648085847da2f4517ffb97b31ff | [
"MIT"
] | null | null | null | Engine/2d/vectorimage.cpp | Sebbestune/MoltenTempest | f77258355dde5648085847da2f4517ffb97b31ff | [
"MIT"
] | null | null | null | #include "vectorimage.h"
#include <Tempest/Device>
#include <Tempest/Builtin>
#include <Tempest/Painter>
#include <Tempest/Event>
#include <Tempest/Encoder>
#define NANOSVG_IMPLEMENTATION
#include "thirdparty/nanosvg.h"
using namespace Tempest;
void VectorImage::beginPaint(bool clr, uint32_t w, uint32_t h) {
if(... | 24.45977 | 89 | 0.586936 | [
"shape"
] |
5868813473d80282bad138eb7ff0b20a44442cbd | 1,271 | hpp | C++ | Source/Stdinclude.hpp | MilkywayPwns/ExtendedConsole | 388cb1077d1c9f7a47817807c4ac525fc178fe54 | [
"MIT"
] | 2 | 2019-09-20T21:58:00.000Z | 2021-07-31T01:17:14.000Z | Source/Stdinclude.hpp | RektInator/ExtendedConsole | 388cb1077d1c9f7a47817807c4ac525fc178fe54 | [
"MIT"
] | null | null | null | Source/Stdinclude.hpp | RektInator/ExtendedConsole | 388cb1077d1c9f7a47817807c4ac525fc178fe54 | [
"MIT"
] | 3 | 2019-01-23T19:35:39.000Z | 2020-03-21T16:16:50.000Z | /*
Initial author: Convery (tcn@hedgehogscience.com)
Started: 08-01-2018
License: MIT
Notes:
Provides a single include-file for all modules.
*/
#pragma once
// The configuration settings.
#include "Configuration/Defines.hpp"
#include "Configuration/Macros.hpp"
// Standard libraries.
#include ... | 21.542373 | 55 | 0.711251 | [
"vector"
] |
586b71b719589c46f431d9d2fad5edc8befd77d8 | 19,720 | cc | C++ | 4_performance_evaluation/src/eval_merci.cc | SNU-ARC/MERCI | cce40ac946e26a328aa1b8d10559c4812f42d0f8 | [
"MIT"
] | 7 | 2021-04-29T13:07:54.000Z | 2022-02-21T04:20:18.000Z | 4_performance_evaluation/src/eval_merci.cc | SNU-ARC/MERCI | cce40ac946e26a328aa1b8d10559c4812f42d0f8 | [
"MIT"
] | 1 | 2021-12-07T01:22:04.000Z | 2021-12-07T01:22:04.000Z | 4_performance_evaluation/src/eval_merci.cc | SNU-ARC/MERCI | cce40ac946e26a328aa1b8d10559c4812f42d0f8 | [
"MIT"
] | 1 | 2021-05-18T02:11:01.000Z | 2021-05-18T02:11:01.000Z | #include "utils.h"
#include "evaluator.h"
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define INTERVAL 1
// Too Large Buffer size -> Perf Degradation
// Too Small Buffer size -> Perf Degradation
// BUF_SIZE should be set to 1024 in case of dblp dataset
#def... | 42.683983 | 209 | 0.509229 | [
"vector"
] |
586fa32837d6b238adebc95ad7f7a2bffd7b1c06 | 18,586 | cpp | C++ | modules/gdscript_transpiler/languages/gdscript_transpiler_cxx.cpp | orgrinrt/goost | 9dd3cd7f723115939a4590a637c35b05314e6b07 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 323 | 2020-07-14T09:57:03.000Z | 2022-03-26T07:04:03.000Z | modules/gdscript_transpiler/languages/gdscript_transpiler_cxx.cpp | TREVO786/goost | babbeb7583b603a59577cac3bf34c6e136ea7396 | [
"CC-BY-3.0",
"MIT"
] | 57 | 2020-08-21T08:20:47.000Z | 2022-03-31T23:46:17.000Z | modules/gdscript_transpiler/languages/gdscript_transpiler_cxx.cpp | TREVO786/goost | babbeb7583b603a59577cac3bf34c6e136ea7396 | [
"CC-BY-3.0",
"MIT"
] | 18 | 2020-09-07T14:53:24.000Z | 2022-02-19T10:41:22.000Z | #include "core/string_builder.h"
#include "gdscript_transpiler_cxx.h"
#include "gdscript_transpiler_utils.h"
String GDScriptTranspilerCpp::get_name() const {
return "C++";
}
Variant GDScriptTranspilerCpp::transpile(const Ref<GDScript> &p_script) {
ERR_FAIL_COND_V_MSG(p_script.is_null(), Dictionary(), "Invalid scri... | 30.074434 | 128 | 0.671258 | [
"vector"
] |
58762b8a26339b4623f50c6fb0f2abcfceece4d3 | 3,883 | cpp | C++ | src/ornrepomodel.cpp | Acidburn0zzz/harbour-storeman | beda8d3aa7b580b35200816a5494532102eff7ba | [
"MIT"
] | 1 | 2019-08-26T04:02:24.000Z | 2019-08-26T04:02:24.000Z | src/ornrepomodel.cpp | Acidburn0zzz/harbour-storeman | beda8d3aa7b580b35200816a5494532102eff7ba | [
"MIT"
] | null | null | null | src/ornrepomodel.cpp | Acidburn0zzz/harbour-storeman | beda8d3aa7b580b35200816a5494532102eff7ba | [
"MIT"
] | null | null | null | #include "ornrepomodel.h"
#include "ornpm.h"
#include <QTimer>
#include <QDebug>
OrnRepoModel::OrnRepoModel(QObject *parent)
: QAbstractListModel(parent)
, mEnabledRepos(0)
{
auto ornPm = OrnPm::instance();
connect(ornPm, &OrnPm::initialisedChanged, this, &OrnRepoModel::reset);
connect(ornPm, &Or... | 26.060403 | 87 | 0.566315 | [
"model"
] |
587d7d06e00dbddff93082f53c1f5812b30ff19f | 2,461 | cpp | C++ | Ball/Ball Instantiation.cpp | pixelsquare/ball-instantiation | 6929f18e2051b5efe63c9030c20f1b041590cbdf | [
"MIT"
] | null | null | null | Ball/Ball Instantiation.cpp | pixelsquare/ball-instantiation | 6929f18e2051b5efe63c9030c20f1b041590cbdf | [
"MIT"
] | null | null | null | Ball/Ball Instantiation.cpp | pixelsquare/ball-instantiation | 6929f18e2051b5efe63c9030c20f1b041590cbdf | [
"MIT"
] | null | null | null | #include "glutSetup.h"
#include <iostream>
#include <vector>
using namespace std;
class Ball { // Create a class "Implementation[class <any name> { }; ]"
public: // Specify its referencing make it public so it can be accessed outside the class
float posX, posY, posZ;
vector<Ba... | 23 | 131 | 0.625762 | [
"render",
"object",
"vector"
] |
58834bd6121ea2da97269b62d665b66c383e5b6b | 422,593 | cc | C++ | MELA/src/TUtil.cc | mostafa1993/JHUGenMELA | a28f39043d98319f1f27493cf899a13646221eda | [
"Apache-2.0"
] | null | null | null | MELA/src/TUtil.cc | mostafa1993/JHUGenMELA | a28f39043d98319f1f27493cf899a13646221eda | [
"Apache-2.0"
] | 8 | 2020-10-02T20:02:44.000Z | 2022-01-19T15:41:05.000Z | MELA/src/TUtil.cc | mostafa1993/JHUGenMELA | a28f39043d98319f1f27493cf899a13646221eda | [
"Apache-2.0"
] | 11 | 2020-10-07T17:15:30.000Z | 2022-03-19T10:41:52.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <iterator>
#include <utility>
#include <algorithm>
#include <cassert>
#include "MELAStreamHelpers.hh"
#include "TJHUGenUtils.hh"
#include "TUtilHelpers.hh"
#include "TUtil.hh"
#include "TMath.h"
#include "TLorentzRotation.h"
using namespace std;
using TV... | 49.081649 | 320 | 0.629324 | [
"object",
"vector",
"transform"
] |
5885332a6fe8d11365fbaff856a63690891caa98 | 6,062 | cpp | C++ | compiler/exo/src/Pass/MergeConcatNodesPass.cpp | chogba6/ONE | 3d35259f89ee3109cfd35ab6f38c231904487f3b | [
"Apache-2.0"
] | 255 | 2020-05-22T07:45:29.000Z | 2022-03-29T23:58:22.000Z | compiler/exo/src/Pass/MergeConcatNodesPass.cpp | chogba6/ONE | 3d35259f89ee3109cfd35ab6f38c231904487f3b | [
"Apache-2.0"
] | 5,102 | 2020-05-22T07:48:33.000Z | 2022-03-31T23:43:39.000Z | compiler/exo/src/Pass/MergeConcatNodesPass.cpp | chogba6/ONE | 3d35259f89ee3109cfd35ab6f38c231904487f3b | [
"Apache-2.0"
] | 120 | 2020-05-22T07:51:08.000Z | 2022-02-16T19:08:05.000Z | /*
* Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 31.572917 | 96 | 0.571264 | [
"vector"
] |
588736af698333d3a57380469e9faf6ccd890576 | 2,790 | hpp | C++ | KFContrib/KFNetwork/KFNetEvent.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFContrib/KFNetwork/KFNetEvent.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFContrib/KFNetwork/KFNetEvent.hpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #ifndef __NET_EVENT_H__
#define __NET_EVENT_H__
#include "KFNetDefine.hpp"
#include "KFQueue.h"
namespace KFrame
{
// 网络时间函数
typedef std::function<void( const KFNetEventData* eventdata )> KFEventFunction;
typedef std::function<void( const KFNetEventData* eventdata )> KFNetServerFunction;
////////////... | 35.769231 | 124 | 0.453405 | [
"object"
] |
5887933c93d09fbd3f5c503f8e709d91833d6c69 | 91,095 | cxx | C++ | TRD/TRDbase/AliTRDCalibraFillHisto.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TRD/TRDbase/AliTRDCalibraFillHisto.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TRD/TRDbase/AliTRDCalibraFillHisto.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | //**************************************************************************
// * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
// * *
// * Author: The ALICE Off-line Project. *
// * Cont... | 31.29337 | 175 | 0.598661 | [
"object",
"shape",
"vector",
"transform"
] |
58882c551fd569ae0c34947a9f2b108d7b884963 | 5,396 | cpp | C++ | master/geometrize-master/geometrize-master/geometrize/script/bindings/bindingswrapper.cpp | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 4 | 2018-09-07T15:35:24.000Z | 2019-03-27T09:48:12.000Z | master/geometrize-master/geometrize-master/geometrize/script/bindings/bindingswrapper.cpp | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | master/geometrize-master/geometrize-master/geometrize/script/bindings/bindingswrapper.cpp | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 3 | 2019-06-18T19:57:17.000Z | 2020-11-06T03:55:08.000Z | #include "bindingswrapper.h"
#include <cassert>
#include <QString>
#include "common/formatsupport.h"
#include "common/searchpaths.h"
#include "common/util.h"
#include "exporter/gifexporter.h"
#include "localization/localization.h"
#include "task/taskutil.h"
namespace geometrize
{
namespace script
{
namespace bind... | 24.981481 | 138 | 0.735545 | [
"vector"
] |
58912d7fe36ec685282923345baaeb5f29d2ce03 | 3,497 | cpp | C++ | SerialPrograms/Source/PokemonLA/Inference/PokemonLA_SelectedRegionDetector.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonLA/Inference/PokemonLA_SelectedRegionDetector.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/PokemonLA/Inference/PokemonLA_SelectedRegionDetector.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | /* Selected Region Detector
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include <QImage>
#include "CommonFramework/ImageMatch/ImageDiff.h"
#include "CommonFramework/InferenceInfra/InferenceRoutines.h"
#include "CommonFramework/Tools/VideoOverlaySet.h"
#include "PokemonLA_SelectedRegionDet... | 29.635593 | 107 | 0.637975 | [
"vector"
] |
58921ee8856074d640897c409204dce9447f790a | 1,460 | cpp | C++ | src/0297.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 38 | 2020-03-05T06:38:32.000Z | 2022-03-11T02:32:14.000Z | src/0297.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | null | null | null | src/0297.cpp | downdemo/LeetCode-Solutions-in-Cpp17 | e6ad1bd56ecea08fc418a9b50e78bdac23860e9f | [
"MIT"
] | 16 | 2020-04-02T15:13:20.000Z | 2022-02-25T07:34:35.000Z | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Codec {
public:
// Encodes a tree to a single string.
string serialize(TreeNode* root) {
if (!root) {
r... | 20.857143 | 61 | 0.493836 | [
"object"
] |
589333fe07160848277864de749f1b25c6654331 | 3,857 | cpp | C++ | www/snapper/engine/providers/StorageController.cpp | lenovo/Snapper | 4300739bbdf0b101c7ddd8be09c89f582bf47202 | [
"BSD-3-Clause"
] | 4 | 2019-09-04T23:49:58.000Z | 2020-08-05T05:46:49.000Z | www/snapper/engine/providers/StorageController.cpp | lenovo/Snapper | 4300739bbdf0b101c7ddd8be09c89f582bf47202 | [
"BSD-3-Clause"
] | 1 | 2019-09-24T20:42:29.000Z | 2019-09-25T00:28:19.000Z | www/snapper/engine/providers/StorageController.cpp | lenovo/Snapper | 4300739bbdf0b101c7ddd8be09c89f582bf47202 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------
// <copyright file="PowerControl.cpp" company="Lenovo">
// Copyright (c) 2018-present, Lenovo. All rights reserved. Licensed under BSD, see COPYING.BSD file for details.
// </copyright>
//-------------------------------------------------... | 35.712963 | 137 | 0.649987 | [
"vector",
"model"
] |
5895b313b463c50f65c07e6cb6288440af7f4bda | 7,186 | cpp | C++ | trajeclike.cpp | ihh/trajectory-likelihood | 3064f9acd6cb5d7a85129053415530f339c2a255 | [
"MIT"
] | 11 | 2020-03-28T09:03:53.000Z | 2021-04-30T23:59:59.000Z | trajeclike.cpp | ihh/trajectory-likelihood | 3064f9acd6cb5d7a85129053415530f339c2a255 | [
"MIT"
] | 1 | 2020-06-15T10:51:40.000Z | 2020-06-20T15:20:12.000Z | trajeclike.cpp | ihh/trajectory-likelihood | 3064f9acd6cb5d7a85129053415530f339c2a255 | [
"MIT"
] | null | null | null | #include <chrono>
#include <iostream>
#include <boost/program_options.hpp>
#include "trajec.h"
#include "simulate.h"
#include "moments.h"
#include "cim.h"
#include "tkf.h"
using namespace TrajectoryLikelihood;
using namespace std;
namespace po = boost::program_options;
int main (int argc, char** argv) {
po::options... | 42.270588 | 182 | 0.616476 | [
"vector",
"model"
] |
58a8dbdb03195cb4c331555f4c459fc6e0ebc313 | 689 | cpp | C++ | geometry/test/convex_hull.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 20 | 2021-06-21T00:18:54.000Z | 2022-03-17T17:45:44.000Z | geometry/test/convex_hull.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 56 | 2021-06-03T14:42:13.000Z | 2022-03-26T14:15:30.000Z | geometry/test/convex_hull.test.cpp | ankit6776/cplib-cpp | b9f8927a6c7301374c470856828aa1f5667d967b | [
"MIT"
] | 3 | 2019-12-11T06:45:45.000Z | 2020-09-07T13:45:32.000Z | #include "../geometry.hpp"
#define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_4_A"
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
int main() {
int N;
cin >> N;
vector<Point2d<double>> P(N);
P[0].set_eps(1e-9);
for (auto &p : P) cin >> p;
... | 28.708333 | 96 | 0.580552 | [
"geometry",
"vector"
] |
58b0bd56bc5acea077a2bdb6016688cb081546c2 | 7,663 | cc | C++ | third_party/blink/renderer/core/html/parser/text_resource_decoder_builder.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/core/html/parser/text_resource_decoder_builder.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | third_party/blink/renderer/core/html/parser/text_resource_decoder_builder.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | /*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... | 43.788571 | 86 | 0.692157 | [
"vector"
] |
58b978858c2f45518539d8270b4b4c4ccacf4fa7 | 8,379 | cpp | C++ | src/lib/operators/join_verification.cpp | hyrise-mp/hyrise | cefb5fb70dfc0a6e43f35d7dd098d7ac703d4602 | [
"MIT"
] | 2 | 2019-05-28T12:09:04.000Z | 2019-05-29T08:18:43.000Z | src/lib/operators/join_verification.cpp | hyrise-mp/hyrise | cefb5fb70dfc0a6e43f35d7dd098d7ac703d4602 | [
"MIT"
] | 69 | 2019-05-24T10:01:32.000Z | 2019-12-13T19:09:05.000Z | src/lib/operators/join_verification.cpp | hyrise-mp/hyrise | cefb5fb70dfc0a6e43f35d7dd098d7ac703d4602 | [
"MIT"
] | null | null | null | #include "join_verification.hpp"
#include "resolve_type.hpp"
#include "type_comparison.hpp"
namespace {
template <typename T>
std::vector<T> concatenate(const std::vector<T>& l, const std::vector<T>& r) {
auto result = l;
result.insert(result.end(), r.begin(), r.end());
return result;
}
} // namespace
names... | 37.743243 | 120 | 0.671441 | [
"vector"
] |
58bd0cb10a5b6a970e4bf506a0601d383d02b807 | 3,891 | cpp | C++ | src/player_simple.cpp | indjev99/Sixty-Six-Bot | 7a09e4fade6671ebf51f8721b860b7f48653d7a9 | [
"MIT"
] | null | null | null | src/player_simple.cpp | indjev99/Sixty-Six-Bot | 7a09e4fade6671ebf51f8721b860b7f48653d7a9 | [
"MIT"
] | null | null | null | src/player_simple.cpp | indjev99/Sixty-Six-Bot | 7a09e4fade6671ebf51f8721b860b7f48653d7a9 | [
"MIT"
] | null | null | null | #include "player_simple.h"
#include "config.h"
#include "util.h"
#include "rng.h"
#include <algorithm>
#include <numeric>
static const int CLOSE_TAKE_VALUE = (std::accumulate(CARD_VALUES, CARD_VALUES + NUM_RANKS, 0) + NUM_RANKS / 2) / NUM_RANKS;
static const int KEEP_TRUMP_VALUE = CARD_VALUES[NUM_RANKS - 1];
void Pla... | 31.634146 | 161 | 0.631714 | [
"vector"
] |
58c89b2a3d1d8ec10a6ecdd2407c01c7fe1be994 | 737 | cpp | C++ | moci/moci_graphics_base/base/image.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | null | null | null | moci/moci_graphics_base/base/image.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | 16 | 2020-03-19T22:08:47.000Z | 2020-06-18T18:55:00.000Z | moci/moci_graphics_base/base/image.cpp | tobanteAudio/moci | a0a764e8a5270f9344ff57366fea36f72e7e3aa4 | [
"BSD-2-Clause"
] | null | null | null | #include "image.hpp"
#include "moci_core/core/logging.hpp"
#include "stb_image.h"
#include "stb_image_resize.h"
namespace moci
{
Image::Image(std::string const& path) { LoadFromFile(path); }
bool Image::LoadFromFile(std::string const& path)
{
auto* data = stbi_load(path.c_str(), &width_, &height_, &numChannels_... | 24.566667 | 90 | 0.651289 | [
"vector"
] |
58ca079dd0faebdf5f977e958f26e569d3e46050 | 9,076 | cc | C++ | content/renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | content/renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/renderer/screen_orientation/screen_orientation_dispatcher_unittest.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 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 "content/renderer/screen_orientation/screen_orientation_dispatcher.h"
#include <list>
#include <memory>
#include <tuple>
#include "base/logging... | 37.349794 | 101 | 0.768621 | [
"object"
] |
58caead27cf5c9f82ddf5bbbf25c65e7b4b3d284 | 3,928 | cpp | C++ | src/detection_to_spencer_detected_person.cpp | tuw-robotics/tuw_object_converter | 6ec93e821eb1ad3b9a1b4bf9ba3c1fd1ba763069 | [
"BSD-3-Clause"
] | null | null | null | src/detection_to_spencer_detected_person.cpp | tuw-robotics/tuw_object_converter | 6ec93e821eb1ad3b9a1b4bf9ba3c1fd1ba763069 | [
"BSD-3-Clause"
] | null | null | null | src/detection_to_spencer_detected_person.cpp | tuw-robotics/tuw_object_converter | 6ec93e821eb1ad3b9a1b4bf9ba3c1fd1ba763069 | [
"BSD-3-Clause"
] | null | null | null | /***************************************************************************
* Software License Agreement (BSD License) *
* Copyright (C) 2017 by Florian Beck <florian.beck@tuwien.ac.at> *
* *
* Redistr... | 51.684211 | 126 | 0.617872 | [
"object"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.