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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3fb1ebf9364cbd45fbb144e29d9f765692aebd35 | 8,541 | cpp | C++ | src/gsw/parsers/src/TelemetryInfoGenerator.cpp | athena255/FlightSoftware | c3fd7dcc6c265fad9843f8992b60d5a773c99f23 | [
"MIT"
] | null | null | null | src/gsw/parsers/src/TelemetryInfoGenerator.cpp | athena255/FlightSoftware | c3fd7dcc6c265fad9843f8992b60d5a773c99f23 | [
"MIT"
] | 1 | 2020-09-20T20:11:06.000Z | 2020-09-20T20:11:06.000Z | src/gsw/parsers/src/TelemetryInfoGenerator.cpp | athena255/FlightSoftware | c3fd7dcc6c265fad9843f8992b60d5a773c99f23 | [
"MIT"
] | null | null | null | #include "TelemetryInfoGenerator.hpp"
#include <type_traits>
#include <typeinfo>
#include <array>
TelemetryInfoGenerator::TelemetryInfoGenerator(
const std::vector<DownlinkProducer::FlowData>& _flow_data) :
r(), fcp(r, _flow_data), flow_data(_flow_data) {}
/************** Helper functions for telemetry in... | 46.418478 | 127 | 0.693127 | [
"object",
"vector"
] |
3fb241d39af3ce99f7a3a8d7487f20f9ac193fff | 2,271 | cpp | C++ | aoj/GRL/GRL4A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | aoj/GRL/GRL4A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | aoj/GRL/GRL4A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | // http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=GRL_4_A
#include <vector>
#include <algorithm>
class Solver {
int N;
std::vector<std::vector<int>> adj;
public:
// O(V)
Solver(int size): N(size), adj(size) {}
// O(1)
int size() {
return N;
}
// O(1)
void add_edg... | 22.939394 | 96 | 0.465874 | [
"vector"
] |
3fb29fe94c9f3065ea2f99a9b2006c5f175a4901 | 3,703 | cpp | C++ | NodeVisitor/main.cpp | pfcstyle/osg72 | 9d3ce7369637807226a2f6c59b55a1162507494b | [
"Apache-2.0"
] | null | null | null | NodeVisitor/main.cpp | pfcstyle/osg72 | 9d3ce7369637807226a2f6c59b55a1162507494b | [
"Apache-2.0"
] | null | null | null | NodeVisitor/main.cpp | pfcstyle/osg72 | 9d3ce7369637807226a2f6c59b55a1162507494b | [
"Apache-2.0"
] | null | null | null | #include "../Common/Common.h"
#include <iostream>
#include <osgViewer/Viewer>
#include <osgDB/ReadFile>
#include <osg/ShapeDrawable>
#include <osg/Geode>
#include <osg/Geometry>
#ifdef _DEBUG
#pragma comment(lib, "../x64/Debug/Commond.lib")
#else
#pragma comment(lib, "../x64/Release/Common.lib")
#endif // _DEBUG
/*cl... | 24.852349 | 121 | 0.669997 | [
"geometry"
] |
3fc7b6dd6e4c3d949e234cf7f0e75696a64cb7fb | 569 | cpp | C++ | leetcode/two_sum/leetcode_1.cpp | HuangJingGitHub/PracMakePert_C | 94e570c55d9e391913ccd9c5c72026ab926809b2 | [
"Apache-2.0"
] | 1 | 2019-10-17T03:13:29.000Z | 2019-10-17T03:13:29.000Z | leetcode/two_sum/leetcode_1.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | leetcode/two_sum/leetcode_1.cpp | HuangJingGitHub/PracMakePert_C-Cpp | 6ed39e757ad8ba7bdd75fffdaf28d17a294a11e5 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> res;
unordered_map<int, int> hashMap;
for (int i = 0; i < nums.size(); i++){
if (hashMap.find(nums[i]) != hashMap.end()){
res.push_back(hashMap.find(nums[i])->second)... | 31.611111 | 131 | 0.499121 | [
"vector"
] |
3fca87906c1c33dd43079a4509e0a47b53a49db7 | 2,020 | cpp | C++ | Uncategorized/oly19practice44.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/oly19practice44.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | Uncategorized/oly19practice44.cpp | crackersamdjam/DMOJ-Solutions | 97992566595e2c7bf41b5da9217d8ef61bdd1d71 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
struct UnionFindBipartite{
vector<int> par, sz;
vector<char> parity, odd;
void init(int MM){
par.resize(MM);
iota(all(par), 0);
sz.resize(MM, 1);
parity.resize(MM);
odd.resize(MM);
}
pair<int, int> find(i... | 18.198198 | 44 | 0.456931 | [
"vector"
] |
3fce68bb7ed1e2c058e9b1dfe31065b57d0b8cc3 | 9,240 | cpp | C++ | bytesteady/huffman_codec_test.cpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | 3 | 2021-11-08T19:18:32.000Z | 2022-03-06T06:09:58.000Z | bytesteady/huffman_codec_test.cpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | null | null | null | bytesteady/huffman_codec_test.cpp | ElementAI/bytesteady | 737cfc4a5fc0f0ad783ccc70b73200b5e3cef06f | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2021 ServiceNow
* 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, s... | 33.478261 | 75 | 0.674134 | [
"vector"
] |
3fd6088a4434aead9fc573a4470b91a3de4b4004 | 2,616 | hpp | C++ | dynamic_vino_lib/include/dynamic_vino_lib/outputs/ros_service_output.hpp | ashutoshtiwari13/ros2_openvino_toolkit | 9de934a5aee3592da00eb0135c3293f22a33cbe1 | [
"Apache-2.0"
] | null | null | null | dynamic_vino_lib/include/dynamic_vino_lib/outputs/ros_service_output.hpp | ashutoshtiwari13/ros2_openvino_toolkit | 9de934a5aee3592da00eb0135c3293f22a33cbe1 | [
"Apache-2.0"
] | 1 | 2021-02-24T10:19:46.000Z | 2021-02-24T10:19:46.000Z | dynamic_vino_lib/include/dynamic_vino_lib/outputs/ros_service_output.hpp | ashutoshtiwari13/ros2_openvino_toolkit | 9de934a5aee3592da00eb0135c3293f22a33cbe1 | [
"Apache-2.0"
] | 1 | 2019-07-23T07:19:29.000Z | 2019-07-23T07:19:29.000Z | // Copyright (c) 2018 Intel Corporation
//
// 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 agr... | 35.835616 | 94 | 0.782492 | [
"object",
"vector"
] |
684b90877a7bdc5441214086e1963f7d5d77f734 | 6,851 | cpp | C++ | p3/tests/CellID_test.cpp | rolandomar/stheno | 6b41f56f25be1e7d56c8be4973203bf943e4f041 | [
"Apache-2.0"
] | 7 | 2015-08-17T16:24:22.000Z | 2022-03-16T15:54:19.000Z | p3/tests/CellID_test.cpp | rolandomar/stheno | 6b41f56f25be1e7d56c8be4973203bf943e4f041 | [
"Apache-2.0"
] | null | null | null | p3/tests/CellID_test.cpp | rolandomar/stheno | 6b41f56f25be1e7d56c8be4973203bf943e4f041 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2012 Rolando Martins, CRACS & INESC-TEC, DCC/FCUP
*
* 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
*
* Unle... | 40.064327 | 137 | 0.64954 | [
"vector"
] |
68604ac82c8a1f93ed03ce8305fcb87e30119cb5 | 15,529 | cpp | C++ | aidigger/libdigger/src/join_pics.cpp | MatrixAINetwork/Matrix_GPU_Mining_jerry | c3c44a6cdeeb83a886236e55c89cd5a76ecc2e7d | [
"MIT"
] | 2 | 2021-06-27T16:09:35.000Z | 2021-06-29T13:09:12.000Z | aidigger/libdigger/src/join_pics.cpp | MatrixAINetwork/Matrix_GPU_Mining_jerry | c3c44a6cdeeb83a886236e55c89cd5a76ecc2e7d | [
"MIT"
] | 2 | 2021-03-09T18:47:07.000Z | 2021-05-10T15:43:01.000Z | aidigger/libdigger/src/join_pics.cpp | MatrixAINetwork/Matrix_GPU_Mining_jerry | c3c44a6cdeeb83a886236e55c89cd5a76ecc2e7d | [
"MIT"
] | 3 | 2021-06-29T13:09:13.000Z | 2022-01-22T07:02:24.000Z | #define cimg_use_jpeg
#include "join_pics.h"
#include <stdio.h>
#include <tuple>
#include <vector>
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
#include <iostream>
#include <chrono>
#include "CImg.h"
#include "sclog4c/sclog4c.h"
using namespace cimg_library;
CImg<unsigned char> imgs[16];
std::vector<in... | 57.514815 | 6,116 | 0.351278 | [
"vector"
] |
68666168d21eb443eac72a75f5c72a0222c38ee6 | 9,484 | hxx | C++ | main/forms/source/component/Button.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/forms/source/component/Button.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/forms/source/component/Button.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... | 45.816425 | 222 | 0.658477 | [
"vector",
"model"
] |
686aba1642de16fbeb62ade78cf3ee7c14936d2c | 3,620 | hpp | C++ | src/MSRControlImp.hpp | RyoTTa/geopm | 74246c8ce70ee47f53bc5629638f51c2c391027b | [
"BSD-3-Clause"
] | null | null | null | src/MSRControlImp.hpp | RyoTTa/geopm | 74246c8ce70ee47f53bc5629638f51c2c391027b | [
"BSD-3-Clause"
] | null | null | null | src/MSRControlImp.hpp | RyoTTa/geopm | 74246c8ce70ee47f53bc5629638f51c2c391027b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, Intel Corporation
*
* 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 ... | 43.614458 | 86 | 0.645856 | [
"object"
] |
686fd0a851ac61dd111e1cbabab3c71d225995df | 4,245 | cpp | C++ | wxdraw/gui/Canvas.cpp | yasuikentarow/graed | 45db4f4291bdca27c32a3b2938ccd1aa7b40d48a | [
"MIT"
] | null | null | null | wxdraw/gui/Canvas.cpp | yasuikentarow/graed | 45db4f4291bdca27c32a3b2938ccd1aa7b40d48a | [
"MIT"
] | null | null | null | wxdraw/gui/Canvas.cpp | yasuikentarow/graed | 45db4f4291bdca27c32a3b2938ccd1aa7b40d48a | [
"MIT"
] | null | null | null | #include "wxdraw/component/ContainerComponent.hpp"
#include "wxdraw/component/LayoutComponent.hpp"
#include "wxdraw/component/ViewComponent.hpp"
#include "wxdraw/gui/Canvas.hpp"
#include "wxdraw/gui/MainFrame.hpp"
#include "wxdraw/gui/Outliner.hpp"
#include "wxdraw/gui/Renderer.hpp"
#include "wxdraw/node/Node.hpp"
nam... | 28.3 | 80 | 0.623322 | [
"render",
"transform"
] |
68705837d3dea96ff6eae9f0f1cde982c887a700 | 3,868 | hh | C++ | libgringo/gringo/input/literal.hh | 0x326/clingo | 225f1b482ed68797211855db014d18e88d0ddc7b | [
"MIT"
] | 1 | 2018-11-20T10:29:50.000Z | 2018-11-20T10:29:50.000Z | libgringo/gringo/input/literal.hh | tsahyt/clingo | 5c5a61dc0ac5f54d8245e6c4ec28f6040882b151 | [
"MIT"
] | 1 | 2019-08-30T15:34:43.000Z | 2019-08-30T16:45:51.000Z | libgringo/gringo/input/literal.hh | tsahyt/clingo | 5c5a61dc0ac5f54d8245e6c4ec28f6040882b151 | [
"MIT"
] | null | null | null | // {{{ MIT License
// Copyright 2017 Roland Kaminski
// 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,... | 38.68 | 135 | 0.722337 | [
"vector"
] |
68793ab8684714da71c5db3dfb774ebaa279ee9a | 14,542 | c++ | C++ | map.c++ | elskater98/tanks-game | 5cb0a22547d5e40b54e679bf09af902b8cd35a16 | [
"MIT"
] | null | null | null | map.c++ | elskater98/tanks-game | 5cb0a22547d5e40b54e679bf09af902b8cd35a16 | [
"MIT"
] | null | null | null | map.c++ | elskater98/tanks-game | 5cb0a22547d5e40b54e679bf09af902b8cd35a16 | [
"MIT"
] | null | null | null | /*
[Additional Information]
- Symbol ‘#’ represents a “wall”
- Symbol ' ' represents a “corridor”
- link of interest: https://pragprog.com/titles/jbmaze/mazes-for-programmers/
*/
// Libraries
#include <iostream>
#include <cmath>
#include <GL/glut.h>
#include <random>
#include <algorithm> // std::random_s... | 31.890351 | 141 | 0.501719 | [
"vector"
] |
68848d5681e8e69d70f3b6504541916f1b5ea8e9 | 667 | cpp | C++ | Practice/Hackerrank_Interview_Prep_Kit/minimum_abs_diff.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 11 | 2020-03-20T17:24:28.000Z | 2022-01-08T02:43:24.000Z | Practice/Hackerrank_Interview_Prep_Kit/minimum_abs_diff.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 1 | 2021-07-25T11:24:46.000Z | 2021-07-25T12:09:25.000Z | Practice/Hackerrank_Interview_Prep_Kit/minimum_abs_diff.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 4 | 2020-03-20T17:24:36.000Z | 2021-12-07T19:22:59.000Z | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int minimumAbsoluteDifference(vector<int> arr)
{
sort(arr.begin(), arr.end());
auto diff = INT_MAX;
// from 1st element to last.
auto start_itr = next(arr.begin());
for(auto i=start_itr; i!= arr.end(); i++)
{
... | 19.057143 | 72 | 0.557721 | [
"vector"
] |
68855deedbf1824a4d9fe59e52c43efb14266543 | 23,363 | cc | C++ | Alignment/LaserDQM/plugins/LaserDQM.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Alignment/LaserDQM/plugins/LaserDQM.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Alignment/LaserDQM/plugins/LaserDQM.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | /** \file LaserDQM.cc
* DQM Monitors for Laser Alignment System
*
* $Date: 2009/12/14 22:21:46 $
* $Revision: 1.7 $
* \author Maarten Thomas
*/
#include "Alignment/LaserDQM/plugins/LaserDQM.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#inclu... | 39.868601 | 106 | 0.767025 | [
"object"
] |
6885b5f0394f9d1747b3d73bc688090eb4b20a52 | 7,646 | cpp | C++ | model/GetMessagePriceResponseCountriesItem.cpp | imissyouso/textmagic-rest-cpp | b5810fd41c08dbab320a52e93d524896e2c2200f | [
"MIT"
] | null | null | null | model/GetMessagePriceResponseCountriesItem.cpp | imissyouso/textmagic-rest-cpp | b5810fd41c08dbab320a52e93d524896e2c2200f | [
"MIT"
] | 1 | 2020-03-18T19:06:28.000Z | 2020-03-23T12:30:00.000Z | model/GetMessagePriceResponseCountriesItem.cpp | textmagic/textmagic-rest-cpp-v2 | 769c81c3ba5b9f5ac49728f47557db846a0e9a33 | [
"MIT"
] | null | null | null | /**
* TextMagic API
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 2
*
*
* NOTE: This class is auto generated by the swagger code generator 2.4.8.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class man... | 32.815451 | 139 | 0.713445 | [
"object",
"model"
] |
688b155b7d30ba5696939577eefccc5ea4b021c1 | 1,877 | cc | C++ | arch/x86-64/assemble/4_add_entry_exit_fragments.cc | Granary/granary2 | 66f60e0a9d94c9e9bf9df78587871b981c9e3bed | [
"MIT"
] | 41 | 2015-10-15T19:56:58.000Z | 2022-02-03T19:35:10.000Z | arch/x86-64/assemble/4_add_entry_exit_fragments.cc | Granary/granary2 | 66f60e0a9d94c9e9bf9df78587871b981c9e3bed | [
"MIT"
] | null | null | null | arch/x86-64/assemble/4_add_entry_exit_fragments.cc | Granary/granary2 | 66f60e0a9d94c9e9bf9df78587871b981c9e3bed | [
"MIT"
] | 7 | 2015-10-16T21:16:20.000Z | 2022-01-15T02:02:20.000Z | /* Copyright 2014 Peter Goodman, all rights reserved. */
#define GRANARY_INTERNAL
#define GRANARY_ARCH_INTERNAL
#include "arch/x86-64/instruction.h"
#include "granary/code/fragment.h"
namespace granary {
namespace arch {
// Table mapping each iclass to the set of read and written flags by *any*
// selection of tha... | 27.202899 | 77 | 0.726159 | [
"object"
] |
688fb0bc2cdb2629b3a47541571e6d0273575d4d | 272 | cpp | C++ | contest/AtCoder/abc008/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc008/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc008/C.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "vector.hpp"
int main() {
int n(in);
Vector<int> c(n, in);
double res = 0;
for (int i : c) {
int cnt = 0;
for (int j : c) {
if (i % j == 0) {
++cnt;
}
}
res += (cnt + 1) / 2 / double(cnt);
}
cout << res << endl;
}
| 15.111111 | 39 | 0.408088 | [
"vector"
] |
689a72dec23efad5aef6fdbbd539936ff6769804 | 11,842 | hpp | C++ | include/seec/Trace/ScanFormatSpecifiers.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 7 | 2018-06-25T12:06:13.000Z | 2022-01-18T09:20:13.000Z | include/seec/Trace/ScanFormatSpecifiers.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 20 | 2016-12-01T23:46:12.000Z | 2019-08-11T02:41:04.000Z | include/seec/Trace/ScanFormatSpecifiers.hpp | seec-team/seec | 4b92456011e86b70f9d88833a95c1f655a21cf1a | [
"MIT"
] | 1 | 2020-10-19T03:20:05.000Z | 2020-10-19T03:20:05.000Z | //===- lib/Trace/ScanFormatSpecifiers.hpp ---------------------------------===//
//
// SeeC
//
// This file is distributed under The MIT License (MIT). See LICENSE.TXT for
// details.
//
//===----------------------------------------------------------------------===//
///
/// \file
///... | 33.170868 | 80 | 0.61113 | [
"vector"
] |
689c23e443f096b817b33aa949f0f66e4564fb42 | 2,452 | cpp | C++ | Source/hypernet/BayesianOptimizerTrainer.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | 66 | 2015-01-05T02:31:21.000Z | 2021-04-11T18:45:42.000Z | Source/hypernet/BayesianOptimizerTrainer.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | null | null | null | Source/hypernet/BayesianOptimizerTrainer.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | 16 | 2015-01-23T19:55:24.000Z | 2021-11-07T20:41:22.000Z | /*
AI Lib
Copyright (C) 2014 Eric Laukien
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial ... | 36.058824 | 149 | 0.763458 | [
"vector"
] |
68a1a3885fb1acb46fe467a0213fa2598a194505 | 660 | cpp | C++ | leetcode/Hashmap/1.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | leetcode/Hashmap/1.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | leetcode/Hashmap/1.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | #include<iostream>
#include<unordered_map>
#include<vector>
using namespace std;
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> res;
unordered_map<int,int> record;
for(int i = 0; i < nums.size(); i++){
record[nums[i]] = i;
... | 30 | 83 | 0.519697 | [
"vector"
] |
68a7651c20b7426058a8afe319e477bfe440cf26 | 1,803 | cpp | C++ | DSFactoryDemo/components/greetdemo.GreetManagerImpl/src-gen/GreetManagerImpl_wrapper.cpp | magnet/ds4cpp | 6afd0a226c8631a8e5e0359571c02e41879cb6e4 | [
"Apache-2.0"
] | 5 | 2017-05-27T01:45:52.000Z | 2021-06-16T05:52:44.000Z | DSFactoryDemo/components/greetdemo.GreetManagerImpl/src-gen/GreetManagerImpl_wrapper.cpp | magnet/ds4cpp | 6afd0a226c8631a8e5e0359571c02e41879cb6e4 | [
"Apache-2.0"
] | null | null | null | DSFactoryDemo/components/greetdemo.GreetManagerImpl/src-gen/GreetManagerImpl_wrapper.cpp | magnet/ds4cpp | 6afd0a226c8631a8e5e0359571c02e41879cb6e4 | [
"Apache-2.0"
] | 1 | 2020-11-26T02:39:30.000Z | 2020-11-26T02:39:30.000Z | /*
* GreetManagerImplWrapper.cpp
* Wrapper for greetdemo.GreetManagerImpl
*/
#include "greetdemo.GreetManagerImpl/include/GreetManagerImpl.hpp"
#include <usBase.h>
#include <ServiceUtils.h>
/**
* @class GreetManagerImplWrapper
* The wrapper class for component greetdemo::GreetManagerImpl
* (provides inheritance... | 31.631579 | 135 | 0.815862 | [
"object"
] |
68aba1255901084422bc06b6209ee37296738a11 | 3,697 | cpp | C++ | src/sysex/retmixerinputcontrol.cpp | dehnhardt/mioconfig | 6d1ac1d85379eaf168d2c2fce81b09f020500605 | [
"MIT"
] | 16 | 2018-07-16T14:13:10.000Z | 2021-02-07T06:43:57.000Z | src/sysex/retmixerinputcontrol.cpp | dehnhardt/iconnconfig | 6d1ac1d85379eaf168d2c2fce81b09f020500605 | [
"MIT"
] | 16 | 2017-09-06T19:38:15.000Z | 2021-01-04T17:54:02.000Z | src/sysex/retmixerinputcontrol.cpp | dehnhardt/mioconfig | 6d1ac1d85379eaf168d2c2fce81b09f020500605 | [
"MIT"
] | 10 | 2018-03-03T14:50:03.000Z | 2020-09-30T18:08:55.000Z | #include "retmixerinputcontrol.h"
RetMixerInputControl::RetMixerInputControl(Device *device)
: PortSysExMessage(RET_MIXER_INPUT_CONTROL, SysExMessage::QUERY, device) {
// m_vPanCurves = std::vector<pk::PanCurve>();
}
RetMixerInputControl::~RetMixerInputControl() {}
void RetMixerInputControl::parseAnswerData() {
u... | 28.882813 | 79 | 0.784961 | [
"vector"
] |
68abc83cefbc49d06dc925986281a3cc48504ac9 | 1,281 | cpp | C++ | codes/mock/14/1.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/mock/14/1.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null | codes/mock/14/1.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | null | null | null |
//misaka and rin will carry me to cm
#include <iostream>
#include <cstdio>
#include <cstring>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <array>
#include <tuple>
#define ll long long
#define lb long double
#define sz(vec) ((int)(vec.size()))
#define all(x) x.begin(), x.end()... | 16.423077 | 72 | 0.557377 | [
"vector"
] |
68b184d418e3f45c45616f991813fbb3bb830e1d | 30,341 | cpp | C++ | src/hgeparticle/hgeparticle.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | 2 | 2017-10-10T20:44:49.000Z | 2022-02-09T09:08:04.000Z | src/hgeparticle/hgeparticle.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | null | null | null | src/hgeparticle/hgeparticle.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | 2 | 2017-11-23T13:23:30.000Z | 2019-12-12T21:41:02.000Z | /*
** Haaf's Game Engine 1.5
** Copyright (C) 2003-2004, Relish Games
** hge.relishgames.com
**
** hgeParticleSystem helper class implementation
** Hacked on by
**
** Kevin Lynx
** James Poag
** W.P. van Paassen
** Nicolas A. Barriga
*/
#include <stdio.h>
#include <string.h> // memcpy
#include ... | 31.704284 | 205 | 0.572361 | [
"render",
"vector",
"transform",
"3d"
] |
68bcde8a47c1fdb07c7ac026aa0fa55a4bed5cb3 | 86,321 | cpp | C++ | 3.7.0/lldb-3.7.0.src/source/Symbol/ClangASTContext.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 3 | 2016-02-10T14:18:40.000Z | 2018-02-05T03:15:56.000Z | 3.7.0/lldb-3.7.0.src/source/Symbol/ClangASTContext.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 1 | 2016-02-10T15:40:03.000Z | 2016-02-10T15:40:03.000Z | 3.7.0/lldb-3.7.0.src/source/Symbol/ClangASTContext.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | null | null | null | //===-- ClangASTContext.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 39.094656 | 177 | 0.562088 | [
"object",
"vector"
] |
68bd7e28ec3b228c8e2599ac9932facd1d2cbb6e | 2,635 | cpp | C++ | Core/Beamlet.cpp | mpslxz/LDH_classifier | 45f938ae670cf3c67deea6a411048e7e64c23efd | [
"MIT"
] | null | null | null | Core/Beamlet.cpp | mpslxz/LDH_classifier | 45f938ae670cf3c67deea6a411048e7e64c23efd | [
"MIT"
] | null | null | null | Core/Beamlet.cpp | mpslxz/LDH_classifier | 45f938ae670cf3c67deea6a411048e7e64c23efd | [
"MIT"
] | null | null | null | #include "Beamlet.h"
Mat Beamlet(Mat img, int s, Point& beamBase)
{
int dim = 4*s - 4;
vector<Point> border;
// initialize the matrix border so that elements in border are the ones
//lying along the edges of the dyadic square
initialize(border, s);
//parameters
double ratio... | 32.530864 | 122 | 0.488046 | [
"vector"
] |
68c6c7f6f9da4abbeee688222fb64a8f17b9d37d | 1,260 | cpp | C++ | Program/Graph/Graph_ConnectedComponents.cpp | anurag-singh2001/Algo_Engineering | 58345da47378213c3b383ac3cdfdd5e829faee63 | [
"MIT"
] | 4 | 2020-12-21T18:33:46.000Z | 2022-02-14T19:57:01.000Z | Program/Graph/Graph_ConnectedComponents.cpp | anurag-singh2001/Algo_Engineering | 58345da47378213c3b383ac3cdfdd5e829faee63 | [
"MIT"
] | 5 | 2021-08-13T08:52:43.000Z | 2021-10-08T06:28:21.000Z | Program/Graph/Graph_ConnectedComponents.cpp | anurag-singh2001/Algo_Engineering | 58345da47378213c3b383ac3cdfdd5e829faee63 | [
"MIT"
] | 7 | 2021-09-30T18:23:36.000Z | 2021-10-08T05:19:18.000Z | #include<iostream>
#include<vector>
#include<bits/stdc++.h> //IMPORTANT
using namespace std;
#define ll long long int
#define ff first
#define st(x) cout<< #x<<": ";
#define deb(x) cout << #x << " " << x << endl;
#define ss second
#define pa pair<int,int>
#define vi vector<int>
#define vii vector<vector<int>>
#define ... | 18.529412 | 51 | 0.538889 | [
"vector"
] |
68cf2b4a817f6def991feb23f6762cfd1b5ab746 | 11,042 | cpp | C++ | Slimetasia/Camera.cpp | JasonWyx/Slimetasia | 5f69deb68da740d326c8514b881583f1e608e5d5 | [
"MIT"
] | null | null | null | Slimetasia/Camera.cpp | JasonWyx/Slimetasia | 5f69deb68da740d326c8514b881583f1e608e5d5 | [
"MIT"
] | null | null | null | Slimetasia/Camera.cpp | JasonWyx/Slimetasia | 5f69deb68da740d326c8514b881583f1e608e5d5 | [
"MIT"
] | null | null | null | #include "Camera.h"
#include "EditorCamera.h"
#include "GameObject.h"
#include "Renderer.h"
#include "ResourceManager.h"
Camera::Camera(GameObject* parentObject, char const* componentName)
: IComponent(parentObject, componentName)
, m_IsMainCamera(true)
, m_IsUICamera(false)
, m_ProjectionMode(eCamera... | 26.931707 | 165 | 0.717805 | [
"vector",
"transform"
] |
68d158fcafc65c96ca19bdef7fba81b59603a4b3 | 8,059 | hpp | C++ | core/src/higanbana/core/system/heap_allocator.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 15 | 2020-01-15T13:04:36.000Z | 2022-02-18T17:08:25.000Z | core/src/higanbana/core/system/heap_allocator.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 3 | 2015-09-09T08:16:30.000Z | 2015-11-24T16:22:48.000Z | core/src/higanbana/core/system/heap_allocator.hpp | jgavert/FazE | 7cf63655869c285a7e5ca8f5a48f296d9548bd6c | [
"MIT"
] | 1 | 2021-12-06T07:19:05.000Z | 2021-12-06T07:19:05.000Z | #pragma once
#include <optional>
#include <algorithm>
#include "higanbana/core/datastructures/vector.hpp"
#include "higanbana/core/global_debug.hpp"
namespace higanbana
{
struct RangeBlock {
uint64_t offset;
uint64_t size;
operator bool() const { return size != 0; }
};
class HeapAllocator {
struct TLSFSizeCla... | 34.148305 | 153 | 0.636307 | [
"vector"
] |
68dc4f7a943362a4bce158390f4c0345c3dfdb72 | 1,303 | hpp | C++ | find_distinct_pairs/find_distinct_pairs.hpp | DoumanAsh/c--test-exe | 2b82c0d7082428e71cd0c20f11c4f13ce350fa0d | [
"Apache-2.0"
] | null | null | null | find_distinct_pairs/find_distinct_pairs.hpp | DoumanAsh/c--test-exe | 2b82c0d7082428e71cd0c20f11c4f13ce350fa0d | [
"Apache-2.0"
] | null | null | null | find_distinct_pairs/find_distinct_pairs.hpp | DoumanAsh/c--test-exe | 2b82c0d7082428e71cd0c20f11c4f13ce350fa0d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <unordered_map>
#include <set>
#include <vector>
#include <algorithm>
#include <utility>
template <typename T>
struct distinct_compare {
bool operator() (const std::pair<T, T>& left, const std::pair<T, T>& right) const {
//Re-arrange pairs to be in the same order
auto ordered... | 29.613636 | 108 | 0.643131 | [
"vector"
] |
68dfc916d3481484744f7289dfa64ba74f3d5513 | 6,598 | cpp | C++ | HeyoEngine/Heyo/h_Map.cpp | Daniel521/Heyo-Engine | bc303f46ddbacf7de2ba97051e84316be3e9f5c2 | [
"MIT"
] | null | null | null | HeyoEngine/Heyo/h_Map.cpp | Daniel521/Heyo-Engine | bc303f46ddbacf7de2ba97051e84316be3e9f5c2 | [
"MIT"
] | 1 | 2018-11-21T00:52:16.000Z | 2018-11-21T00:52:16.000Z | HeyoEngine/Heyo/h_Map.cpp | Daniel521/Heyo-Engine | bc303f46ddbacf7de2ba97051e84316be3e9f5c2 | [
"MIT"
] | null | null | null | //#include "h_Map.h"
//#include "h_heyo.h"
//#include <fstream>
//#include <iostream>
//
//namespace Heyo_Platform
//{
//
// Map::Map()
// {
// main_character = NULL;
// point_main_character = { 0,0 };
// point_prev_main_xy = { 0,0 };
// sensor_width = 0;
// sensor_rect = { 0,0,0,0 };
//
// background = NULL;
// ... | 31.569378 | 198 | 0.63201 | [
"vector"
] |
68ed55f63b3f52d0e31dd31df5fa39abf610bb3c | 5,212 | cpp | C++ | Code/include/igl/unproject_in_mesh.cpp | FabianRepository/SinusProject | 48d68902ccd83f08c4d208ba8e0739a8a1252338 | [
"BSD-3-Clause"
] | null | null | null | Code/include/igl/unproject_in_mesh.cpp | FabianRepository/SinusProject | 48d68902ccd83f08c4d208ba8e0739a8a1252338 | [
"BSD-3-Clause"
] | null | null | null | Code/include/igl/unproject_in_mesh.cpp | FabianRepository/SinusProject | 48d68902ccd83f08c4d208ba8e0739a8a1252338 | [
"BSD-3-Clause"
] | null | null | null | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at http://... | 43.07438 | 567 | 0.628166 | [
"geometry",
"vector",
"model"
] |
68f1e747c0cb23c0628b86ccdc677c57ccaee1a0 | 1,056 | cpp | C++ | src/atta/uiSystem/layers/editor/systemWindows/physicsSystemWindow.cpp | brenocq/atta | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 5 | 2021-11-18T02:44:45.000Z | 2021-12-21T17:46:10.000Z | src/atta/uiSystem/layers/editor/systemWindows/physicsSystemWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 1 | 2021-11-18T02:56:14.000Z | 2021-12-04T15:09:16.000Z | src/atta/uiSystem/layers/editor/systemWindows/physicsSystemWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 3 | 2020-09-10T07:17:00.000Z | 2020-11-05T10:24:41.000Z | //--------------------------------------------------
// Atta UI System
// physicsSystemWindow.cpp
// Date: 2021-12-01
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/uiSystem/layers/editor/systemWindows/physicsSystemWindow.h>
#include <atta/physicsSystem/physicsManager.h>
... | 27.789474 | 94 | 0.620265 | [
"vector"
] |
d0ff5ddd81bfd93f55e5f520f8873e5a74e6369f | 1,514 | cpp | C++ | C++/roombooking.cpp | dwarana/Multi-lang-repo | 099622e1ad28037aa2feae1b95b2d337a8979056 | [
"MIT"
] | null | null | null | C++/roombooking.cpp | dwarana/Multi-lang-repo | 099622e1ad28037aa2feae1b95b2d337a8979056 | [
"MIT"
] | null | null | null | C++/roombooking.cpp | dwarana/Multi-lang-repo | 099622e1ad28037aa2feae1b95b2d337a8979056 | [
"MIT"
] | null | null | null | #include "bookroomdialog.h"
#include "ui_bookroomdialog.h"
BookRoomDialog::BookRoomDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::BookRoomDialog)
{
ui->setupUi(this);
this->setFixedSize(320,240);
}
void BookRoomDialog:: readData()
{
qDebug()<<"BookRoomDialog:readData";
std::vector<int>r... | 22.597015 | 87 | 0.601057 | [
"vector"
] |
190c746d1373015f4698736e449ebc65ee5dbc04 | 1,572 | cpp | C++ | planning/rtc_auto_approver/src/node.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 58 | 2021-11-30T09:03:46.000Z | 2022-03-31T15:25:17.000Z | planning/rtc_auto_approver/src/node.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 425 | 2021-11-30T02:24:44.000Z | 2022-03-31T10:26:37.000Z | planning/rtc_auto_approver/src/node.cpp | meliketanrikulu/autoware.universe | 04f2b53ae1d7b41846478641ad6ff478c3d5a247 | [
"Apache-2.0"
] | 69 | 2021-11-30T02:09:18.000Z | 2022-03-31T15:38:29.000Z | // Copyright 2022 TIER IV, Inc.
//
// 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 i... | 37.428571 | 96 | 0.75827 | [
"vector"
] |
19147218efbc0f64727349171549955039991430 | 9,149 | cpp | C++ | Camera/Camera.cpp | bryanlawsmith/Raytracing | 519b3f3867e0c00b92091dd755a4a73121e22064 | [
"MIT"
] | 1 | 2016-02-17T17:03:37.000Z | 2016-02-17T17:03:37.000Z | Camera/Camera.cpp | bryanlawsmith/Raytracing | 519b3f3867e0c00b92091dd755a4a73121e22064 | [
"MIT"
] | null | null | null | Camera/Camera.cpp | bryanlawsmith/Raytracing | 519b3f3867e0c00b92091dd755a4a73121e22064 | [
"MIT"
] | null | null | null | #include "Camera.h"
#include "Frustum.h"
#include <iostream>
namespace CameraLib
{
void Camera::CalculateFrustumPlanes()
{
// Initialize the camera space plane array.
float halfViewingAngle = cameraYFOV * 0.5f;
float yOpposite = nearClipPlaneDistance * tanf(MATHLIB_DEG_TO_RAD(halfViewingAngle));
float xOpposite ... | 39.951965 | 137 | 0.785441 | [
"transform"
] |
191d411e4e0997dfa5ef53a2a8929cd248e4648a | 19,199 | cpp | C++ | nfc/src/DOOM/neo/renderer/Image_load.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/neo/renderer/Image_load.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/neo/renderer/Image_load.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... | 26.814246 | 366 | 0.648784 | [
"render"
] |
192804508bfb9124e3817c786e3ea8e8da4e841a | 15,237 | cpp | C++ | src/GameEngineLib/src/sdlgui/imageview.cpp | hugetto/2DGame | 833c6596df8c2f9daf14cb9ebfffa36b77f96218 | [
"Apache-2.0"
] | null | null | null | src/GameEngineLib/src/sdlgui/imageview.cpp | hugetto/2DGame | 833c6596df8c2f9daf14cb9ebfffa36b77f96218 | [
"Apache-2.0"
] | null | null | null | src/GameEngineLib/src/sdlgui/imageview.cpp | hugetto/2DGame | 833c6596df8c2f9daf14cb9ebfffa36b77f96218 | [
"Apache-2.0"
] | null | null | null | /*
sdl_gui/imageview.cpp -- Widget used to display images.
The image view widget was contributed by Stefan Ivanov.
Based on NanoGUI by Wenzel Jakob <wenzel@inf.ethz.ch>.
Adaptation for SDL by Dalerank <dalerankn8@gmail.com>
All rights reserved. Use of this source code is governed by a
BSD-sty... | 31.612033 | 106 | 0.627289 | [
"vector"
] |
192dce1600d7f146cb6ef030e55f7fead7834ec7 | 101,919 | cc | C++ | src/couch-kvstore/couch-kvstore.cc | hisundar/ep-engine | 7f7cb5b4a5528c17ae10d2d5bb644885d1cd0837 | [
"Apache-2.0"
] | null | null | null | src/couch-kvstore/couch-kvstore.cc | hisundar/ep-engine | 7f7cb5b4a5528c17ae10d2d5bb644885d1cd0837 | [
"Apache-2.0"
] | null | null | null | src/couch-kvstore/couch-kvstore.cc | hisundar/ep-engine | 7f7cb5b4a5528c17ae10d2d5bb644885d1cd0837 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2015 Couchbase, Inc
*
* 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
*
* h... | 37.902194 | 92 | 0.563604 | [
"object",
"vector"
] |
192e5dd1d4d4e29027b7811d48169f59d0b46ab6 | 3,052 | hpp | C++ | include/hyper/ParallelHelper.hpp | t1mm3/weld_tpch | 0e70518de7d510a225b934043879a635b57790d3 | [
"MIT"
] | 4 | 2020-06-23T07:39:33.000Z | 2021-11-16T02:22:11.000Z | include/hyper/ParallelHelper.hpp | t1mm3/weld_tpch | 0e70518de7d510a225b934043879a635b57790d3 | [
"MIT"
] | null | null | null | include/hyper/ParallelHelper.hpp | t1mm3/weld_tpch | 0e70518de7d510a225b934043879a635b57790d3 | [
"MIT"
] | null | null | null | #include "common/runtime/Query.hpp"
#include <deque>
#include <tbb/tbb.h>
static const size_t morselSize = 10000;
struct ProcessingResources {
std::vector<runtime::Worker> workers;
std::unique_ptr<runtime::Query> query;
};
inline ProcessingResources initQuery(size_t nrThreads) {
ProcessingResources r;
r.... | 41.243243 | 80 | 0.487877 | [
"vector"
] |
1937d6171f5d9524b9f9d8a2d09e8da183449d13 | 881 | cpp | C++ | cpp/godot-cpp/src/gen/VisualShaderNodeUniform.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/src/gen/VisualShaderNodeUniform.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/src/gen/VisualShaderNodeUniform.cpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #include "VisualShaderNodeUniform.hpp"
#include <core/GodotGlobal.hpp>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include <core/Godot.hpp>
#include "__icalls.hpp"
namespace godot {
VisualShaderNodeUniform::___method_bindings VisualShaderNodeUniform::___mb = {};
void VisualShaderNodeUniform::___ini... | 27.53125 | 117 | 0.804767 | [
"object"
] |
193cad0abd5fdd1600d520b6fd03eb9449e290c8 | 120,352 | cpp | C++ | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_SESS_BORDER_CTRLR_STATS_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2016-12-02T05:45:49.000Z | 2022-02-10T19:32:54.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_SESS_BORDER_CTRLR_STATS_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2017-03-27T15:22:38.000Z | 2019-11-05T08:30:16.000Z | cisco-ios-xe/ydk/models/cisco_ios_xe/CISCO_SESS_BORDER_CTRLR_STATS_MIB.cpp | CiscoDevNet/ydk-cpp | ef7d75970f2ef1154100e0f7b0a2ee823609b481 | [
"ECL-2.0",
"Apache-2.0"
] | 11 | 2016-12-02T05:45:52.000Z | 2019-11-07T08:28:17.000Z |
#include <sstream>
#include <iostream>
#include <ydk/entity_util.hpp>
#include "bundle_info.hpp"
#include "generated_entity_lookup.hpp"
#include "CISCO_SESS_BORDER_CTRLR_STATS_MIB.hpp"
using namespace ydk;
namespace cisco_ios_xe {
namespace CISCO_SESS_BORDER_CTRLR_STATS_MIB {
CISCOSESSBORDERCTRLRSTATSMIB::CISCOSESS... | 46.218126 | 885 | 0.777262 | [
"vector"
] |
194134137d947ca7fabeff61fbb2529cf1c4445f | 4,068 | cpp | C++ | oop2_project/BoardObject.cpp | akivagold/Robbery-in-the-Depths | e4a2a1434dbe13af70635483c9c2098afdc0d93c | [
"Apache-2.0"
] | 2 | 2020-08-19T10:19:22.000Z | 2021-08-15T15:29:47.000Z | oop2_project/BoardObject.cpp | akivagold/Robbery-in-the-Depths | e4a2a1434dbe13af70635483c9c2098afdc0d93c | [
"Apache-2.0"
] | null | null | null | oop2_project/BoardObject.cpp | akivagold/Robbery-in-the-Depths | e4a2a1434dbe13af70635483c9c2098afdc0d93c | [
"Apache-2.0"
] | 2 | 2020-10-06T08:42:04.000Z | 2020-12-24T11:03:35.000Z | #include "BoardObject.h"
#include "GameScreen.h"
#include "MovingObject.h"
#include "SoundManager.h"
BoardObject::BoardObject(GameScreen& gameScreen, int drawPriority)
: AnimationView(gameScreen.getWindow()), m_gameScreen(gameScreen), m_inGame(false)
{
setDrawPriority(drawPriority);
init();
}
void BoardObject::pla... | 28.055172 | 124 | 0.717306 | [
"object"
] |
194ee59353d2a8c9da24e50c592f4e086806d078 | 1,460 | cpp | C++ | megatron/fused_kernels/fused_weight_gradient_dense.cpp | zarzen/Megatron-LM | d898a8991d1a08d29074f87819d1bf41517e35f5 | [
"Apache-2.0"
] | null | null | null | megatron/fused_kernels/fused_weight_gradient_dense.cpp | zarzen/Megatron-LM | d898a8991d1a08d29074f87819d1bf41517e35f5 | [
"Apache-2.0"
] | null | null | null | megatron/fused_kernels/fused_weight_gradient_dense.cpp | zarzen/Megatron-LM | d898a8991d1a08d29074f87819d1bf41517e35f5 | [
"Apache-2.0"
] | null | null | null | #include <torch/torch.h>
#include <torch/extension.h>
#include <vector>
#include <stdio.h>
#include "type_shim.h"
template <typename T>
int wgrad_gemm_accum_fp32_cuda(T *input, T *d_output, float *d_weight, int in_dim, int hidden_dim, int out_dim);
void wgrad_gemm_accum_fp32(const at::Tensor input, const at::Tenso... | 30.416667 | 112 | 0.65 | [
"vector"
] |
1955067fd72481a63954e19cc2cc74d4a4edddf9 | 736 | hpp | C++ | include/utility/trait/type/features/is_move_constructible.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/trait/type/features/is_move_constructible.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/trait/type/features/is_move_constructible.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef __UTILITY_TRAIT_TYPE_FEATURES_IS_MOVE_CONSTRUCTIBLE__
#define __UTILITY_TRAIT_TYPE_FEATURES_IS_MOVE_CONSTRUCTIBLE__
#include<utility/trait/trait_helper.hpp>
#include<utility/trait/type/transform/add_reference.hpp>
#include<utility/trait/type/features/is_constructible.hpp>
namespace utility
{
namespace trai... | 23 | 67 | 0.716033 | [
"transform"
] |
195b9555deb61f71ed83aba35b356c43086a30da | 12,976 | hpp | C++ | src/Math/vec3.hpp | MaGetzUb/SoftwareRenderer | e1d6242617863a1d9fdc272c1011a3938d1dbbc9 | [
"BSD-2-Clause"
] | 1 | 2020-01-01T12:07:07.000Z | 2020-01-01T12:07:07.000Z | src/Math/vec3.hpp | MaGetzUb/SoftwareRenderer | e1d6242617863a1d9fdc272c1011a3938d1dbbc9 | [
"BSD-2-Clause"
] | null | null | null | src/Math/vec3.hpp | MaGetzUb/SoftwareRenderer | e1d6242617863a1d9fdc272c1011a3938d1dbbc9 | [
"BSD-2-Clause"
] | 1 | 2018-07-20T07:51:06.000Z | 2018-07-20T07:51:06.000Z | /*
Copyright © 2018, Marko Ranta
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following ... | 24.208955 | 141 | 0.613671 | [
"vector",
"transform"
] |
196510e6f2adeec7a98dd6eb4f7d5793932c249c | 3,834 | hpp | C++ | src/mirrage/asset/include/mirrage/asset/stream.hpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 14 | 2017-10-26T08:45:54.000Z | 2021-04-06T11:44:17.000Z | src/mirrage/asset/include/mirrage/asset/stream.hpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 17 | 2017-10-09T20:11:58.000Z | 2018-11-08T22:05:14.000Z | src/mirrage/asset/include/mirrage/asset/stream.hpp | lowkey42/mirrage | 2527537989a548062d0bbca8370d063fc6b81a18 | [
"MIT"
] | 1 | 2018-09-26T23:10:06.000Z | 2018-09-26T23:10:06.000Z | /** iostreams for assets *****************************************************
* *
* Copyright (c) 2014 Florian Oetke *
* This file is distributed under the MIT License *
* ... | 26.260274 | 100 | 0.603026 | [
"vector"
] |
19685fac20e212ad308b6e4cc3cce89a23e38fda | 26,242 | cpp | C++ | simcore/simulation/library/bead_spring.cpp | lamsoa729/simcore | daf7056cb0c17563ed0f6bdee343fa1f6cd59729 | [
"MIT"
] | null | null | null | simcore/simulation/library/bead_spring.cpp | lamsoa729/simcore | daf7056cb0c17563ed0f6bdee343fa1f6cd59729 | [
"MIT"
] | null | null | null | simcore/simulation/library/bead_spring.cpp | lamsoa729/simcore | daf7056cb0c17563ed0f6bdee343fa1f6cd59729 | [
"MIT"
] | null | null | null | #include "bead_spring.hpp"
BeadSpring::BeadSpring() : Mesh() { SetParameters(); }
void BeadSpring::SetParameters() {
color_ = params_->bead_spring.color;
draw_ = draw_type::_from_string(params_->bead_spring.draw_type.c_str());
length_ = params_->bead_spring.length;
persistence_length_ = params_->bead_spring.p... | 34.896277 | 81 | 0.634784 | [
"mesh",
"vector"
] |
196a2f251f6ee86c069b1a6c19c2a282d78eb245 | 3,320 | cpp | C++ | Trem/src/trem/renderer/camera.cpp | Tremah/TremEngine | 29e04e69da84e4c60709854010376edc1b96dc0a | [
"MIT"
] | 10 | 2021-01-17T01:48:31.000Z | 2021-12-31T19:31:22.000Z | Trem/src/trem/renderer/camera.cpp | Tremah/TremEngine | 29e04e69da84e4c60709854010376edc1b96dc0a | [
"MIT"
] | null | null | null | Trem/src/trem/renderer/camera.cpp | Tremah/TremEngine | 29e04e69da84e4c60709854010376edc1b96dc0a | [
"MIT"
] | null | null | null | #include "trpch.h"
#include "camera.h"
namespace Trem
{
Camera::Camera(float left, float right, float bottom, float top)
{
//create the cameras transform (view matrix) and the projection matrix for the entire scene
//and combine them into the view-projection matrix
viewMatrix_ = glm::tr... | 27.438017 | 133 | 0.664759 | [
"object",
"transform"
] |
196de90c92af4c2cdab9245fe21c92021a506552 | 2,298 | cpp | C++ | Old 2P/skiiingresort/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | Old 2P/skiiingresort/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | Old 2P/skiiingresort/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#define int long long
#include <bits/stdc++.h>
using namespace std;
vector<int> dijkstra(int start, vector<vector<pair<int,int> > > &graph){
int n = (int)graph.size();
priority_queue<pair<int,int> > pq;
vector<int> dist(n,-1);
... | 27.357143 | 103 | 0.560923 | [
"vector"
] |
1976411a59f544ac7fb37788c57a833040cb62ed | 20,111 | cpp | C++ | verify_new.cpp | amkarahalios/cadical | ab54674c7af98a0057cb16f7e1e372effa321e63 | [
"MIT"
] | null | null | null | verify_new.cpp | amkarahalios/cadical | ab54674c7af98a0057cb16f7e1e372effa321e63 | [
"MIT"
] | null | null | null | verify_new.cpp | amkarahalios/cadical | ab54674c7af98a0057cb16f7e1e372effa321e63 | [
"MIT"
] | 2 | 2021-11-09T03:57:59.000Z | 2021-11-09T04:24:25.000Z | #include <string>
#include <vector>
#include <set>
#include <fstream>
#include <sstream>
#include <iostream>
#include <cmath>
void parse_edge_file(int numberOfColors, std::string inputFileName, int &numVertices, std::vector<std::vector<bool> > &existingEdges)
{
// Parsing
// - Read line by line
std::vector<std::... | 26.566711 | 155 | 0.520909 | [
"vector"
] |
19792604cc6ab52c0b8e8071d2835d5026a748cd | 2,952 | cpp | C++ | source/STM32I2C.cpp | nedseb/codal-stm32 | 295f5db277b58beb850a6b61d5ec7d452760d561 | [
"BSD-3-Clause"
] | null | null | null | source/STM32I2C.cpp | nedseb/codal-stm32 | 295f5db277b58beb850a6b61d5ec7d452760d561 | [
"BSD-3-Clause"
] | 13 | 2021-01-18T13:27:27.000Z | 2021-12-20T09:31:51.000Z | source/STM32I2C.cpp | nedseb/codal-stm32 | 295f5db277b58beb850a6b61d5ec7d452760d561 | [
"BSD-3-Clause"
] | null | null | null | #include "STM32I2C.h"
#include <algorithm>
#include "PeripheralPins.h"
// #include "codal_target_hal.h"
using namespace std;
using namespace codal;
STM32I2C::STM32I2C(STM32Pin& sda, STM32Pin& scl) : I2C(sda, scl), currentAddress(0), isOnTransmission(false)
{
i2c.sda = (PinName)sda.name;
i2c.scl ... | 20.219178 | 108 | 0.660908 | [
"vector"
] |
197c0f6587805c6f77cff9ef5a2de36ee517f2f5 | 1,962 | cc | C++ | Code/1696-strange-printer-ii.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/1696-strange-printer-ii.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/1696-strange-printer-ii.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
bool isPrintable(vector<vector<int>>& targetGrid) {
unordered_map<int, vector<int>> m; // minx, miny, maxx, maxy
for (int i = 0; i < targetGrid.size(); i++) {
for (int j = 0; j < targetGrid[0].size(); j++) {
int color = targetGrid[i][j];
... | 35.672727 | 104 | 0.344546 | [
"vector"
] |
19874f5e588754d9dd2c3e7fd98c350620036c53 | 1,031 | cpp | C++ | PrimeFactorizer/main.cpp | jehannes/PrimeCalculator | 7ad1b7f5cacb9a08c092e1583e28ece952359d2e | [
"Apache-2.0"
] | null | null | null | PrimeFactorizer/main.cpp | jehannes/PrimeCalculator | 7ad1b7f5cacb9a08c092e1583e28ece952359d2e | [
"Apache-2.0"
] | null | null | null | PrimeFactorizer/main.cpp | jehannes/PrimeCalculator | 7ad1b7f5cacb9a08c092e1583e28ece952359d2e | [
"Apache-2.0"
] | null | null | null | #include "STDlibs.h"
#include "PrimeFactor.h"
#include "Fraction.h"
using namespace std;
//unique_ptr <PrimeFactor> fac;
unique_ptr <Fraction> Frac;
shared_ptr <PrimeLibrary> Lib;
int main(void) {
// vector <uint64_t> Divs;
//uint64_t num;
string num;
int mode = 0;
string more;
while (true) {
cout << ... | 16.629032 | 67 | 0.582929 | [
"vector"
] |
1989dfcf6c96dfbe439910294dc63d230611caf6 | 1,616 | cpp | C++ | src/tools/dnd/dataObjects/PlaylistTransitiveData.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | 2 | 2016-03-21T10:48:34.000Z | 2017-03-17T19:50:34.000Z | src/tools/dnd/dataObjects/PlaylistTransitiveData.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | null | null | null | src/tools/dnd/dataObjects/PlaylistTransitiveData.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | null | null | null | /***************************************************************
* Name: PlaylistTransitiveData.cpp
* Purpose: Code for Fu(X) 2.0
* Author: David Lecoconnier (david.lecoconnier@free.fr)
* Created: 2015-06-24
* Copyright: David Lecoconnier (http://www.getfux.fr)
* License:
****************************... | 24.119403 | 118 | 0.65099 | [
"vector"
] |
198ba8bf99c1c6bede37d74ad99d3ab42bd43f5e | 5,255 | hpp | C++ | libfma/include/fma/plugin/MemoryPluginAdapter.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | libfma/include/fma/plugin/MemoryPluginAdapter.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | libfma/include/fma/plugin/MemoryPluginAdapter.hpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #ifndef __FMA_PLUGIN_MEMORYPLUGINADAPTER_H__
#define __FMA_PLUGIN_MEMORYPLUGINADAPTER_H__
#include <memory>
#include <vector>
#include "../types/InternalValue.hpp"
namespace FMA {
class Log;
class Project;
namespace output {
class DynamicBuffer;
}
namespace linker {
class LinkerBlock;
}
namespace interpret {
ty... | 30.552326 | 122 | 0.753378 | [
"vector"
] |
199068e2ba480297b73bc41f35bec0a0e7454c23 | 1,507 | cpp | C++ | clients/cpp-tiny/generated/lib/Models/PipelineBranchesitempullRequestlinks.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/cpp-tiny/generated/lib/Models/PipelineBranchesitempullRequestlinks.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/cpp-tiny/generated/lib/Models/PipelineBranchesitempullRequestlinks.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null |
#include "PipelineBranchesitempullRequestlinks.h"
using namespace Tiny;
PipelineBranchesitempullRequestlinks::PipelineBranchesitempullRequestlinks()
{
self = std::string();
_class = std::string();
}
PipelineBranchesitempullRequestlinks::PipelineBranchesitempullRequestlinks(std::string jsonString)
{
this->fromJs... | 14.084112 | 98 | 0.708693 | [
"object"
] |
19916014192fd8a6255ad6d2efc245423b50618f | 2,188 | cpp | C++ | SumAllLeftLeavesOfBinaryTree.cpp | DForshner/CPPExperiments | 989d972ac6408601ce7863ec25f1bdcfeeeaff72 | [
"Apache-2.0"
] | 2 | 2015-07-01T17:47:02.000Z | 2015-07-01T17:53:11.000Z | SumAllLeftLeavesOfBinaryTree.cpp | DForshner/CPPExperiments | 989d972ac6408601ce7863ec25f1bdcfeeeaff72 | [
"Apache-2.0"
] | null | null | null | SumAllLeftLeavesOfBinaryTree.cpp | DForshner/CPPExperiments | 989d972ac6408601ce7863ec25f1bdcfeeeaff72 | [
"Apache-2.0"
] | null | null | null | // Given a binary tree sum all of the left leaves.
//
// Time Complexity: O(n)
// Space Complexity: O(1)
//
// Complier: Visual Studio 2013 (v120)
#include <memory>
#include <vector>
#include "CppUnitTest.h"
using namespace std;
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace SumAllLeftLeave... | 23.526882 | 64 | 0.571298 | [
"vector"
] |
199547f473d9e755f7c9bee30bd3bf4e0b7f3a38 | 1,751 | hpp | C++ | packages/monte_carlo/estimator/native/src/MonteCarlo_ParticleLeavingCellEventDispatcher.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_ParticleLeavingCellEventDispatcher.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/monte_carlo/estimator/native/src/MonteCarlo_ParticleLeavingCellEventDispatcher.hpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_ParticleLeavingCellEventDispatcher.hpp
//! \author Alex Robinson
//! \brief Particle leaving cell event dispatcher class declaration.
//!
//------------------------------------------------------------------------... | 31.267857 | 79 | 0.651628 | [
"geometry"
] |
199b356eeca1b54b88f52d7dfc8904f95c581e0d | 868 | hh | C++ | tests/test-util/print-objects.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | tests/test-util/print-objects.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | tests/test-util/print-objects.hh | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | // -*- coding: us-ascii-unix -*-
#ifndef FAINT_TEST_PRINT_OBJECTS_HH
#define FAINT_TEST_PRINT_OBJECTS_HH
#include <iosfwd>
#include <vector>
#define PRINTER(CLASS)class CLASS; std::ostream& operator<<(std::ostream&, const CLASS&)
namespace faint{
PRINTER(Angle);
PRINTER(CaretRange);
PRINTER(IntLineSegment);
PRINTER(I... | 21.7 | 88 | 0.723502 | [
"vector"
] |
199d862ee29ec56237d124b9dc8aa55fc0c5eb52 | 2,573 | cc | C++ | ehpc/src/model/DescribeImagePriceRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | ehpc/src/model/DescribeImagePriceRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | ehpc/src/model/DescribeImagePriceRequest.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... | 24.046729 | 79 | 0.749709 | [
"model"
] |
19a4a2dd25a6cd83e53416008a5d0e8f287a5357 | 1,395 | hpp | C++ | include/georithm/transform/Shear.hpp | DNKpp/georithm | 3eb7e3f2be8ff0aabe402ac22944807564693ece | [
"BSL-1.0"
] | 1 | 2018-06-18T12:51:26.000Z | 2018-06-18T12:51:26.000Z | include/georithm/transform/Shear.hpp | DNKpp/georithm | 3eb7e3f2be8ff0aabe402ac22944807564693ece | [
"BSL-1.0"
] | null | null | null | include/georithm/transform/Shear.hpp | DNKpp/georithm | 3eb7e3f2be8ff0aabe402ac22944807564693ece | [
"BSL-1.0"
] | 2 | 2020-08-16T16:03:21.000Z | 2020-09-05T15:06:56.000Z | // Copyright Dominic Koepke 2017 - 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#ifndef GEORITHM_TRANSFORM_SHEAR_HPP
#define GEORITHM_TRANSFORM_SHEAR_HPP
#pragma once
#include "g... | 23.25 | 84 | 0.694624 | [
"transform"
] |
19a51dcb36d11dc76c7c81908c8e03888d8a6b76 | 12,999 | cpp | C++ | VirtualBox-5.0.0/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.cpp | egraba/vbox_openbsd | 6cb82f2eed1fa697d088cecc91722b55b19713c2 | [
"MIT"
] | 1 | 2015-04-30T14:18:45.000Z | 2015-04-30T14:18:45.000Z | VirtualBox-5.0.0/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.cpp | egraba/vbox_openbsd | 6cb82f2eed1fa697d088cecc91722b55b19713c2 | [
"MIT"
] | null | null | null | VirtualBox-5.0.0/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItem.cpp | egraba/vbox_openbsd | 6cb82f2eed1fa697d088cecc91722b55b19713c2 | [
"MIT"
] | null | null | null | /* $Id: UIGChooserItem.cpp $ */
/** @file
* VBox Qt GUI - UIGChooserItem class definition.
*/
/*
* Copyright (C) 2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modi... | 29.14574 | 130 | 0.661589 | [
"geometry",
"model"
] |
30ae53fa07ea168d03bcb8f61caa1bdc925a48e7 | 743 | cpp | C++ | Scripts/456_past.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | 17 | 2018-08-23T08:53:56.000Z | 2021-04-17T00:06:13.000Z | Scripts/456_past.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | Scripts/456_past.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | class Solution {
public:
bool find132pattern(vector<int>& nums) {
int second = INT_MIN;
stack<int> sta;
// 1 -5 -2 -3
// stack: 1
// stack 1 -5 -2 -1 -3
for (int i = nums.size()-1; i >= 0; --i) { // its's a reverse order
if (nums[i] < second) return true;
... | 32.304348 | 87 | 0.40646 | [
"vector"
] |
30af7a7f87b409d80a020e59a195e3c2fc93204c | 2,763 | cpp | C++ | src/caffe/layers/swish_layer.cpp | naibaf7/caffe | 29960153c828820b1abb55a5792283742f57caa2 | [
"Intel",
"BSD-2-Clause"
] | 89 | 2015-04-20T01:25:01.000Z | 2021-12-07T17:03:28.000Z | src/caffe/layers/swish_layer.cpp | Miaomz/caffe-opencl | 505693d54298b89cf83b54778479087cff2f3bd6 | [
"Intel",
"BSD-2-Clause"
] | 62 | 2015-06-18T13:11:20.000Z | 2019-02-19T05:00:10.000Z | src/caffe/layers/swish_layer.cpp | Miaomz/caffe-opencl | 505693d54298b89cf83b54778479087cff2f3bd6 | [
"Intel",
"BSD-2-Clause"
] | 30 | 2015-07-05T17:08:09.000Z | 2022-02-10T13:16:02.000Z | #include <cmath>
#include <vector>
#include "caffe/layers/swish_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template<typename Dtype, typename MItype, typename MOtype>
inline Dtype sigmoid(Dtype x) {
return 0.5 * tanh(0.5 * x) + 0.5;
}
template<typename Dtype, typename MItype, typename MO... | 34.111111 | 78 | 0.686934 | [
"vector"
] |
30b36f4bab16884b7249689e715965e410e726fa | 24,315 | hh | C++ | Kakadu/JP2_File_Reader.hh | pirl-lpl/libjp2 | 9815b55e8a5222018fe5f978ac0819e53aea5204 | [
"Apache-2.0"
] | 1 | 2019-07-31T19:47:53.000Z | 2019-07-31T19:47:53.000Z | Kakadu/JP2_File_Reader.hh | pirl-lpl/libjp2 | 9815b55e8a5222018fe5f978ac0819e53aea5204 | [
"Apache-2.0"
] | null | null | null | Kakadu/JP2_File_Reader.hh | pirl-lpl/libjp2 | 9815b55e8a5222018fe5f978ac0819e53aea5204 | [
"Apache-2.0"
] | 1 | 2022-03-11T05:40:11.000Z | 2022-03-11T05:40:11.000Z | /* JP2_File_Reader
HiROC CVS ID: $Id: JP2_File_Reader.hh,v 1.30 2012/04/26 02:55:48 castalia Exp $
Copyright (C) 2009-2012 Arizona Board of Regents on behalf of the
Planetary Image Research Laboratory, Lunar and Planetary Laboratory at
the University of Arizona.
This library is free software; you can redistribute i... | 37.639319 | 85 | 0.758421 | [
"render",
"object"
] |
30bb7acb544a3fc17f72efc39ca075adbeb9fab5 | 6,939 | cc | C++ | code/Samples/Instancing/Instancing.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 1,707 | 2015-01-01T14:56:08.000Z | 2022-03-28T06:44:09.000Z | code/Samples/Instancing/Instancing.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 256 | 2015-01-03T14:55:53.000Z | 2020-09-09T10:43:46.000Z | code/Samples/Instancing/Instancing.cc | infancy/oryol | 06b580116cc2e929b9e1a85920a74fb32d76493c | [
"MIT"
] | 222 | 2015-01-05T00:20:54.000Z | 2022-02-06T01:41:37.000Z | //------------------------------------------------------------------------------
// Instancing.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Core/Main.h"
#include "Core/Time/Clock.h"
#include "Gfx/Gfx.h"
#include "Assets/Gfx/ShapeBuilder.h"
#incl... | 35.403061 | 125 | 0.558726 | [
"mesh",
"geometry",
"render",
"model",
"transform"
] |
30bcbc35f31af2f89fbe4a79f467188c8d97cb05 | 5,637 | cc | C++ | elements/wifi/availablerates.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/wifi/availablerates.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/wifi/availablerates.cc | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | /*
* availablerates.{cc,hh} -- Poor man's arp table
* John Bicket
*
* Copyright (c) 2003 Massachusetts Institute of Technology
*
* 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 withou... | 22.914634 | 88 | 0.641121 | [
"vector"
] |
30c587480fa54eedc0f712c7547e146868341a9d | 8,853 | cpp | C++ | sim_band_planner/src/simulate.cpp | Boeing/modular_navigation | 1489fdf94079fd6b1d3a41d0fc18924f43805a52 | [
"Apache-2.0"
] | 7 | 2020-11-24T03:53:26.000Z | 2022-02-23T08:13:59.000Z | sim_band_planner/src/simulate.cpp | Boeing/modular_navigation | 1489fdf94079fd6b1d3a41d0fc18924f43805a52 | [
"Apache-2.0"
] | null | null | null | sim_band_planner/src/simulate.cpp | Boeing/modular_navigation | 1489fdf94079fd6b1d3a41d0fc18924f43805a52 | [
"Apache-2.0"
] | 7 | 2020-11-27T12:24:45.000Z | 2022-02-23T08:14:02.000Z | #include <ros/assert.h>
#include <sim_band_planner/simulate.h>
#include <sstream>
#include <vector>
namespace sim_band_planner
{
double simulate(Band& path, const DistanceField& distance_field, const int num_iterations,
const double collision_distance, const double nominal_force_gain, const double in... | 38.659389 | 120 | 0.616175 | [
"vector"
] |
30c897b8e11ea1b2e4c47a2282190b0344f30f72 | 7,113 | cpp | C++ | datastruct/stack/main.cpp | lugt/cprogram-oj | 6d2de77846a19270da83354486629ed6cba16e9d | [
"Apache-2.0"
] | 1 | 2018-10-10T13:39:22.000Z | 2018-10-10T13:39:22.000Z | datastruct/stack/main.cpp | lugt/cprogram-oj | 6d2de77846a19270da83354486629ed6cba16e9d | [
"Apache-2.0"
] | null | null | null | datastruct/stack/main.cpp | lugt/cprogram-oj | 6d2de77846a19270da83354486629ed6cba16e9d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <sstream>
#include <stack>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#define OK 0
#define FAIL 1
#define MAX_SIZE 10000
#define NULLPTR NULL
#define TRU... | 24.612457 | 109 | 0.432026 | [
"vector"
] |
30d2f41a41391fc568d0cec5354183597d879b9e | 20,599 | cpp | C++ | VideoScriptEditor/VideoScriptEditor.PreviewRenderer/ScriptVideoService.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | null | null | null | VideoScriptEditor/VideoScriptEditor.PreviewRenderer/ScriptVideoService.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | null | null | null | VideoScriptEditor/VideoScriptEditor.PreviewRenderer/ScriptVideoService.cpp | danjoconnell/VideoScriptEditor | 1d836e0cbe6e5afc56bdeb17ff834da308d752b0 | [
"MIT"
] | 1 | 2021-02-04T16:43:57.000Z | 2021-02-04T16:43:57.000Z | #include "pch.h"
#include "ScriptVideoService.h"
using namespace System;
using namespace System::Collections::Generic;
using namespace System::ComponentModel;
using namespace VideoScriptEditor::Extensions;
using namespace VideoScriptEditor::Models;
using namespace VideoScriptEditor::Models::Primitives;
using namespace... | 46.082774 | 230 | 0.670421 | [
"object",
"vector"
] |
30d49f754cfd5db72a76badcddd6852a324d6d2a | 951 | cpp | C++ | src/plugins/render/nodes/font.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/plugins/render/nodes/font.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/plugins/render/nodes/font.cpp | LIUJUN-liujun/possumwood | 745e48eb44450b0b7f078ece81548812ab1ccc63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #include "datatypes/font.h"
#include <possumwood_sdk/datatypes/filename.h>
#include <possumwood_sdk/node_implementation.h>
#include <boost/filesystem.hpp>
namespace {
dependency_graph::InAttr<possumwood::Filename> a_filename;
dependency_graph::OutAttr<possumwood::Font> a_font;
dependency_graph::State compute(depe... | 23.775 | 76 | 0.753943 | [
"render"
] |
30e3d9d4a730e6004abe800e1320d8d6bf19ab0a | 10,870 | cpp | C++ | test/src/ExtensionTests.cpp | rhymu8354/Smtp | f5464632e04baac7bc3daa17b0507218e329e7a7 | [
"MIT"
] | 1 | 2022-02-11T18:28:52.000Z | 2022-02-11T18:28:52.000Z | test/src/ExtensionTests.cpp | rhymu8354/Smtp | f5464632e04baac7bc3daa17b0507218e329e7a7 | [
"MIT"
] | null | null | null | test/src/ExtensionTests.cpp | rhymu8354/Smtp | f5464632e04baac7bc3daa17b0507218e329e7a7 | [
"MIT"
] | 1 | 2022-02-11T18:28:57.000Z | 2022-02-11T18:28:57.000Z | /**
* @file ExtensionTests.cpp
*
* This module contains the unit tests of the Smtp::Client class.
*
* © 2019 by Richard Walters
*/
#include "Common.hpp"
#include <algorithm>
#include <future>
#include <gtest/gtest.h>
#include <memory>
#include <MessageHeaders/MessageHeaders.hpp>
#include <Smtp/Client.hpp>
#incl... | 33.757764 | 90 | 0.597516 | [
"vector"
] |
30f4a07dd14473e6030d667205e5be25780e2d4d | 1,408 | cpp | C++ | Classes/src/modeldata/Reference.cpp | MichaelMahn/c3t2c3b | 17f36d4c06e309a717224a9273743de5854d5d07 | [
"MIT"
] | 2 | 2016-10-04T06:45:06.000Z | 2021-04-06T16:43:40.000Z | Classes/src/modeldata/Reference.cpp | MichaelMahn/c3t2c3b | 17f36d4c06e309a717224a9273743de5854d5d07 | [
"MIT"
] | null | null | null | Classes/src/modeldata/Reference.cpp | MichaelMahn/c3t2c3b | 17f36d4c06e309a717224a9273743de5854d5d07 | [
"MIT"
] | null | null | null | #include "Reference.h"
#include "FileIO.h"
//#include <stdio.h>
namespace fbxconv {
Reference::Reference():
_ref(nullptr),
_xref(""),
_type(0),
_offset(0),
_fPosition(0.f)
{
}
Reference::Reference(std::string xref, ObjRef* ref):
_ref(ref),
_xref(xref),
_type(ref->tpyeid),
_offset(0),
_fPosition... | 16.564706 | 57 | 0.65554 | [
"object"
] |
30f9128898ed0bfcf22fe974db925bd1db297ec4 | 10,303 | cpp | C++ | calibration/spherecalib/spherecalib.cpp | dgrover/flyCAVE | 30cdef7ed3535a93f303387c1c78dc9224d413c8 | [
"MIT"
] | 1 | 2016-01-08T07:33:24.000Z | 2016-01-08T07:33:24.000Z | calibration/spherecalib/spherecalib.cpp | dgrover/flyCAVE | 30cdef7ed3535a93f303387c1c78dc9224d413c8 | [
"MIT"
] | null | null | null | calibration/spherecalib/spherecalib.cpp | dgrover/flyCAVE | 30cdef7ed3535a93f303387c1c78dc9224d413c8 | [
"MIT"
] | null | null | null | #include "stdafx.h"
int xOffset = 1920;
int yOffset = 0;
double viewWidth = 912/3;
double viewHeight = 1140*2;
double radius = 1.0;
double defaultDistance = (radius + 8.0);
double centerDistance = defaultDistance;
double sideDistance = defaultDistance;
double defaultCull = 0.0;
double centerCull = defaultCull;
dou... | 29.10452 | 182 | 0.722605 | [
"vector"
] |
30fda7de4dde27375e53b366ad20ab6028f25ac9 | 5,901 | cpp | C++ | Engine/Source/ThirdParty/PhysX/PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMContactSphereBox.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/ThirdParty/PhysX/PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMContactSphereBox.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/ThirdParty/PhysX/PhysX_3.4/Source/GeomUtils/src/pcm/GuPCMContactSphereBox.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... | 37.348101 | 117 | 0.754109 | [
"shape",
"transform"
] |
a5018d29a2ac19a120150af1df2cbc493e6426c7 | 5,865 | hpp | C++ | tutorials/RNN/TextDataset.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | tutorials/RNN/TextDataset.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | tutorials/RNN/TextDataset.hpp | ChanhyoLee/TextDataset | 397571f476a89ad42ef3ed77b82c76fc19ac3e33 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <fstream>
#include <algorithm>
#include <cstring>
#include <string.h>
#include "../../WICWIU_src/Tensor.hpp"
//#include "../../WICWIU_src/DataLoader.hpp" // 왜 추가한거지? Dataset때문에 추가한거 같음... 추측임
using namespace std;
enum OPTION {
ONEHOT,
//CBOW
};
void Ma... | 23.649194 | 92 | 0.518159 | [
"vector"
] |
a505d6808635d13e6b1450bd26d12f3213fbcd09 | 273 | hpp | C++ | NWNXLib/API/Mac/API/Matrix.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/Matrix.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/Matrix.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
#include "Quaternion.hpp"
#include "Vector.hpp"
namespace NWNXLib {
namespace API {
struct Matrix
{
Vector x;
Vector y;
Vector z;
Quaternion getquaternion();
};
Quaternion Matrix__getquaternion(Matrix* thisPtr);
}
}
| 10.5 | 50 | 0.688645 | [
"vector"
] |
a508317b86033c09758e9ad17f1541e47c4bfd25 | 1,971 | cpp | C++ | sdk/messages/tests/tensor.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2020-04-14T13:55:16.000Z | 2020-04-14T13:55:16.000Z | sdk/messages/tests/tensor.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 4 | 2020-09-25T22:34:29.000Z | 2022-02-09T23:45:12.000Z | sdk/messages/tests/tensor.cpp | ddr95070/RMIsaac | ee3918f685f0a88563248ddea11d089581077973 | [
"FSFAP"
] | 1 | 2020-07-02T11:51:17.000Z | 2020-07-02T11:51:17.000Z | /*
Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... | 33.40678 | 79 | 0.775748 | [
"vector"
] |
a512ff650a76f8e9cc7d5998c09987a8e63ac487 | 24,243 | cpp | C++ | test/unit/ut_all_or_none.cpp | Macfly/liquibook | d03b8eec2dbeddf2348175ddb7c18367315ca446 | [
"BSD-3-Clause"
] | 8 | 2015-04-22T11:01:59.000Z | 2021-03-30T08:34:22.000Z | test/unit/ut_all_or_none.cpp | Macfly/liquibook | d03b8eec2dbeddf2348175ddb7c18367315ca446 | [
"BSD-3-Clause"
] | null | null | null | test/unit/ut_all_or_none.cpp | Macfly/liquibook | d03b8eec2dbeddf2348175ddb7c18367315ca446 | [
"BSD-3-Clause"
] | 4 | 2017-01-20T02:59:04.000Z | 2020-07-04T08:52:24.000Z | // Copyright (c) 2012, 2013 Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE liquibook_AllOrNone
#include <boost/test/unit_test.hpp>
#include "ut_utils.h"
namespace liquibook {
using impl::SimpleOrder;
typedef F... | 32.025099 | 75 | 0.711174 | [
"object"
] |
a51671c9d0119aea2b6a3d8af0992a0a12f3dd71 | 17,085 | cc | C++ | vm_tools/cicerone/tremplin_listener_impl.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | vm_tools/cicerone/tremplin_listener_impl.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | vm_tools/cicerone/tremplin_listener_impl.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "vm_tools/cicerone/tremplin_listener_impl.h"
#include <arpa/inet.h>
#include <inttypes.h>
#include <stdio.h>
#include <map>
#include <memory... | 38.221477 | 80 | 0.683465 | [
"vector"
] |
a517675220ff3a0c73fc76d7251e02ee114c6d6c | 303 | hpp | C++ | src/Pieces.hpp | optisimon/office-space-tetris | 11bb1b196a35e05471f84b76cc9d5bf76d22d779 | [
"MIT"
] | null | null | null | src/Pieces.hpp | optisimon/office-space-tetris | 11bb1b196a35e05471f84b76cc9d5bf76d22d779 | [
"MIT"
] | null | null | null | src/Pieces.hpp | optisimon/office-space-tetris | 11bb1b196a35e05471f84b76cc9d5bf76d22d779 | [
"MIT"
] | null | null | null | #pragma once
#include "GridWithOffset.hpp"
#include <vector>
std::vector<GridWithOffset> getSquare();
std::vector<GridWithOffset> getRod();
std::vector<GridWithOffset> getT();
std::vector<GridWithOffset> getN();
std::vector<GridWithOffset> getZ();
std::vector<GridWithOffset> getRandomPiece();
| 15.947368 | 45 | 0.745875 | [
"vector"
] |
a51e73fde3f05edc31812e2932b137bc0f66fe72 | 11,225 | cpp | C++ | openfpga/src/annotation/annotate_bitstream_setting.cpp | avesus/OpenFPGA | c1dab2168655d41eb59d4923156dabd253ffbd3e | [
"MIT"
] | 246 | 2020-12-03T08:49:29.000Z | 2022-03-28T21:19:55.000Z | openfpga/src/annotation/annotate_bitstream_setting.cpp | developeralgo8888/OpenFPGA | 067f2eaaad03945896b9a7cc21cd9f361bf1546d | [
"MIT"
] | 261 | 2020-12-03T00:23:54.000Z | 2022-03-31T10:00:37.000Z | openfpga/src/annotation/annotate_bitstream_setting.cpp | developeralgo8888/OpenFPGA | 067f2eaaad03945896b9a7cc21cd9f361bf1546d | [
"MIT"
] | 66 | 2020-12-12T09:05:53.000Z | 2022-03-28T07:51:41.000Z | /********************************************************************
* This file includes functions that are used to annotate pb_type
* from VPR to OpenFPGA
*******************************************************************/
#include <cmath>
#include <iterator>
/* Headers from openfpgashell library */
#include "... | 47.970085 | 166 | 0.648285 | [
"vector"
] |
a51f97a524376ad57053eaac76aac4598db5ed5f | 3,501 | cpp | C++ | September_2020_challange/Day 6.cpp | jv640/LeetCode | af07ebf2f4cc5f28a61f78d952febe10782b0e93 | [
"MIT"
] | null | null | null | September_2020_challange/Day 6.cpp | jv640/LeetCode | af07ebf2f4cc5f28a61f78d952febe10782b0e93 | [
"MIT"
] | null | null | null | September_2020_challange/Day 6.cpp | jv640/LeetCode | af07ebf2f4cc5f28a61f78d952febe10782b0e93 | [
"MIT"
] | null | null | null | /*
Problem Name : Image Overlap
Description : Two images A and B are given, represented as binary, square matrices of the same size. (A binary matrix has only 0s and 1s as values.)
We translate one image however we choose (sliding it left, right, up, or down any number of units), and place it ... | 40.241379 | 168 | 0.512996 | [
"vector"
] |
a5230f4dc10492f7cc1bb9d50296a4e6e0e3ecf4 | 2,235 | cpp | C++ | CocoaEngine/cpp/cocoa/core/Application.cpp | PixelRifts/Cocoa | 35bd8e5d2fb4dcd64e583e9889a7d01aa915d6dc | [
"MIT"
] | 35 | 2021-01-01T15:51:44.000Z | 2022-03-30T00:57:04.000Z | CocoaEngine/cpp/cocoa/core/Application.cpp | PixelRifts/Cocoa | 35bd8e5d2fb4dcd64e583e9889a7d01aa915d6dc | [
"MIT"
] | 3 | 2021-02-17T07:42:53.000Z | 2021-08-09T20:13:49.000Z | CocoaEngine/cpp/cocoa/core/Application.cpp | PixelRifts/Cocoa | 35bd8e5d2fb4dcd64e583e9889a7d01aa915d6dc | [
"MIT"
] | 4 | 2021-02-10T12:58:38.000Z | 2021-04-29T06:01:54.000Z | #include "externalLibs.h"
#include "cocoa/core/Core.h"
#include "cocoa/core/Application.h"
#include "cocoa/renderer/DebugDraw.h"
#include "cocoa/core/Entity.h"
namespace Cocoa
{
// Stub methods
static void AppOnUpdate(SceneData& scene, float dt) { }
static void AppOnAttach(SceneData& scene) { }
static void AppOnR... | 22.575758 | 109 | 0.697987 | [
"render"
] |
a523709046dcfea1e3f827ca8d94c345b3c9abde | 1,116 | cpp | C++ | leetcode1248.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode1248.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | leetcode1248.cpp | SJTUGavinLiu/Leetcodes | 99d4010bc34e78d22e3c8b6436e4489a7d1338da | [
"MIT"
] | null | null | null | class Solution {
public:
int numberOfSubarrays(vector<int>& nums, int k) {
int res = 0;
vector<int> left(nums.size(), 1);
vector<int> right(nums.size(), 1);
int tmp = 1;
for(int k = 0; k < nums.size(); i++)
{
if(nums[k] % 2 == 0) tmp++;
els... | 21.882353 | 53 | 0.285842 | [
"vector"
] |
a52479af427c32396eefadb4b9422a6340469357 | 630 | cc | C++ | src/abc004/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc004/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc004/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
vector<string> res = {"213456", "231456", "234156", "234516", "234561",
"324561", "342561", "345261", "345621", "345612",
"435612", "453612", "456312", "456132", "456123",
"546123", "56... | 33.157895 | 72 | 0.487302 | [
"vector"
] |
a52822f20c8d7021783144e188cfa686fd89d872 | 1,477 | cpp | C++ | src/legal_moves.cpp | kz04px/libataxx | b61bfb303b424893c233c2e8f42f47b14e2fc1a1 | [
"MIT"
] | 6 | 2019-10-23T15:58:39.000Z | 2020-12-28T20:49:25.000Z | src/legal_moves.cpp | kz04px/libataxx | b61bfb303b424893c233c2e8f42f47b14e2fc1a1 | [
"MIT"
] | 1 | 2022-02-21T02:28:56.000Z | 2022-02-21T15:28:59.000Z | src/legal_moves.cpp | kz04px/libataxx | b61bfb303b424893c233c2e8f42f47b14e2fc1a1 | [
"MIT"
] | 1 | 2019-10-11T21:07:19.000Z | 2019-10-11T21:07:19.000Z | #include "libataxx/libataxx.hpp"
#include "libataxx/move.hpp"
namespace libataxx {
[[nodiscard]] int Position::legal_moves(Move *movelist) const noexcept {
assert(movelist);
if (gameover()) {
return 0;
}
int num_moves = 0;
// Single moves
const Bitboard singles = us().singles() & em... | 21.720588 | 73 | 0.559242 | [
"vector"
] |
a52b5b9ac5a359d87c1e4ee1144be712972b98b4 | 33,104 | cpp | C++ | scene/gui/label.cpp | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | scene/gui/label.cpp | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | scene/gui/label.cpp | ppiecuch/godot | ff2098b324b814a0d1bd9d5722aa871fc5214fab | [
"MIT",
"Apache-2.0",
"CC-BY-4.0",
"Unlicense"
] | null | null | null | /*************************************************************************/
/* label.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 32.582677 | 329 | 0.689917 | [
"vector"
] |
a52c7c235324d51eb2408230b08f10b03e2ed7e0 | 677 | cpp | C++ | src/state.cpp | Ikaguia/idj-pinguim | fd07be94b440057ab2ec9bf80931bc3f2b588cd3 | [
"MIT"
] | 1 | 2017-04-03T14:37:36.000Z | 2017-04-03T14:37:36.000Z | src/state.cpp | Ikaguia/idj-pinguim | fd07be94b440057ab2ec9bf80931bc3f2b588cd3 | [
"MIT"
] | null | null | null | src/state.cpp | Ikaguia/idj-pinguim | fd07be94b440057ab2ec9bf80931bc3f2b588cd3 | [
"MIT"
] | null | null | null | #include <state.hpp>
State::State():popRequested{false},quitRequested{false}{
}
void State::AddObject(GameObject* obj){
objectArray.emplace_back(obj);
}
bool State::PopRequested(){
return popRequested;
}
bool State::QuitRequested(){
return quitRequested;
}
void State::AddSound(string file,int times){
Sound *s =... | 19.911765 | 73 | 0.70901 | [
"render"
] |
a52d518c2f143353131934b886a0bb6592f48fdd | 1,336 | cpp | C++ | Codeforces/Round-450-Div2/D.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-01-30T13:21:30.000Z | 2018-01-30T13:21:30.000Z | Codeforces/Round-450-Div2/D.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | null | null | null | Codeforces/Round-450-Div2/D.cpp | TISparta/competitive-programming-solutions | 31987d4e67bb874bf15653565c6418b5605a20a8 | [
"MIT"
] | 1 | 2018-08-29T13:26:50.000Z | 2018-08-29T13:26:50.000Z | // DP, Number Theory
// 5
// 27-11-2020
#include <bits/stdc++.h>
#define all(A) begin(A), end(A)
#define rall(A) rbegin(A), rend(A)
#define sz(A) int(A.size())
#define pb push_back
#define mp make_pair
using namespace std;
typedef long long ll;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
... | 22.644068 | 64 | 0.497754 | [
"vector"
] |
a53305e65e9c67d5db4ea8eb8e2818a032096bef | 15,269 | cpp | C++ | Source/TPSOnline/Private/Characters/PlayerCharacter.cpp | DanialKama/TPSOnline | 0c683be23882a72ca8f1daf6e62728fabf1db913 | [
"MIT"
] | 2 | 2022-01-20T19:29:43.000Z | 2022-01-26T15:01:32.000Z | Source/TPSOnline/Private/Characters/PlayerCharacter.cpp | DanialKama/TPSOnline | 0c683be23882a72ca8f1daf6e62728fabf1db913 | [
"MIT"
] | 42 | 2022-01-15T09:20:06.000Z | 2022-02-01T19:28:04.000Z | Source/TPSOnline/Private/Characters/PlayerCharacter.cpp | DanialKama/TPSOnline | 0c683be23882a72ca8f1daf6e62728fabf1db913 | [
"MIT"
] | null | null | null | // Copyright 2022 Danial Kamali. All Rights Reserved.
#include "Characters/PlayerCharacter.h"
#include "GameFramework/SpringArmComponent.h"
#include "Camera/CameraComponent.h"
#include "Components/TimelineComponent.h"
#include "Components/SlateWrapperTypes.h"
#include "GameFramework/CharacterMovementComponent.h"
#incl... | 28.381041 | 173 | 0.751523 | [
"vector"
] |
a5509000bfc3dee75022f42e05d880de64ee0a7f | 1,879 | cpp | C++ | src/Path.cpp | PSSTools/psslangserver | e3b44118c5ed698f44375bff40d2c4118ca45bbe | [
"Apache-2.0"
] | null | null | null | src/Path.cpp | PSSTools/psslangserver | e3b44118c5ed698f44375bff40d2c4118ca45bbe | [
"Apache-2.0"
] | null | null | null | src/Path.cpp | PSSTools/psslangserver | e3b44118c5ed698f44375bff40d2c4118ca45bbe | [
"Apache-2.0"
] | null | null | null | /*
* Path.cpp
*
* Created on: Oct 9, 2020
* Author: ballance
*/
#include "Path.h"
#ifndef _WIN32
#include <dirent.h>
#else
#include <windows.h>
#endif
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
namespace pls {
Path::Path() {
// TODO Auto-generated constructor stub
}
Path::~Path() {
/... | 21.352273 | 85 | 0.62959 | [
"vector"
] |
a223f0a68bd2e89a002ce5e041370d4d1b52f653 | 5,101 | hpp | C++ | include/utility.hpp | Stellaris-code/SpaceInvadersEmu | e8cd69ed3c594ffb83cf4471db9f1c44e8f640e4 | [
"MIT"
] | 7 | 2016-02-16T13:24:00.000Z | 2018-09-24T09:02:38.000Z | include/utility.hpp | Stellaris-code/SpaceInvadersEmu | e8cd69ed3c594ffb83cf4471db9f1c44e8f640e4 | [
"MIT"
] | null | null | null | include/utility.hpp | Stellaris-code/SpaceInvadersEmu | e8cd69ed3c594ffb83cf4471db9f1c44e8f640e4 | [
"MIT"
] | 2 | 2016-02-16T13:06:23.000Z | 2018-10-15T04:27:42.000Z | /* utility %{Cpp:License:ClassName} - Yann BOUCHER (yann) 26/01/2016
**
**
** DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
** Version 2, December 2004
**
** Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
**
** Everyone is permitted to copy and distribute verbatim or modified
** copies of... | 20.082677 | 90 | 0.647716 | [
"transform"
] |
a2245d61139e11bca8d5f724d5a2021d7c144dfc | 1,067 | cpp | C++ | oo_file/write_files.cpp | Johk3/Cpp_Examples | 4945df0740507d82c48ad884911ab67b4697d60c | [
"Unlicense"
] | null | null | null | oo_file/write_files.cpp | Johk3/Cpp_Examples | 4945df0740507d82c48ad884911ab67b4697d60c | [
"Unlicense"
] | null | null | null | oo_file/write_files.cpp | Johk3/Cpp_Examples | 4945df0740507d82c48ad884911ab67b4697d60c | [
"Unlicense"
] | null | null | null | #include <stdio.h>
#include <cstdlib>
#include <iostream>
#include <string>
#include <numeric>
#include <sstream>
#include <vector>
#include <cmath>
#include <cfenv>
#include <algorithm>
#include <fstream>
int main(int argc, char **argv){
std::ofstream writeToFile;
std::ifstream readFromFile;
std::string ... | 25.404762 | 76 | 0.597938 | [
"vector"
] |
a228ddcae754b59a87ccdc32268d26270b93f5a3 | 1,729 | cpp | C++ | HackerRank/FavoriteSequence.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | HackerRank/FavoriteSequence.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | HackerRank/FavoriteSequence.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | 18.793478 | 67 | 0.421631 | [
"vector"
] |
a2327c863e1892472796f719f7921fdc4e8fc6aa | 441 | cpp | C++ | leetcode/cpp/162.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | null | null | null | leetcode/cpp/162.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | null | null | null | leetcode/cpp/162.cpp | xpharry/leetcode_and_lintcode_battle | a06d966ad45bdbed6dda51cf0b480592fc4000d6 | [
"MIT"
] | 2 | 2020-09-29T21:59:43.000Z | 2021-06-22T13:24:04.000Z | /*
* Binary Search
* O(lgn)
*
*/
class Solution {
public:
int findPeakElement(vector<int>& nums) {
int l = 0, r = nums.size()-1;
while(l < r) {
int mid = l + (r-l) / 2;
if(nums[mid] > nums[mid+1]) {
r = mid;
} else {
l = mid+1;
... | 17.64 | 50 | 0.405896 | [
"vector"
] |
a23a4f7fec8083ffa53489e5a68e653b3d749bb4 | 4,137 | cpp | C++ | aws-cpp-sdk-databrew/source/model/SessionStatus.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-databrew/source/model/SessionStatus.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-databrew/source/model/SessionStatus.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/databrew/model/SessionStatus.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;... | 32.574803 | 92 | 0.595842 | [
"model"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.