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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eafdc0cd3b09175715bccfd215d2b98bf55d4ad1 | 233,040 | cpp | C++ | game/SceneObjectFactory.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 24 | 2019-02-24T14:48:16.000Z | 2022-03-21T21:37:26.000Z | game/SceneObjectFactory.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 3 | 2019-02-25T20:45:09.000Z | 2019-02-28T18:05:45.000Z | game/SceneObjectFactory.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 7 | 2019-02-28T11:33:15.000Z | 2022-01-26T20:11:45.000Z | /*
* Copyright (c) 2014, Stanislav Vorobiov
* 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 ... | 36.595477 | 213 | 0.62539 | [
"object",
"shape",
"vector"
] |
eaff5d44a2f2c25a2c4af663659eaa8e2165e740 | 20,091 | cpp | C++ | src/CADAssembler/CADCreoParametricCommonFunctions/CommonFunctions.cpp | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | src/CADAssembler/CADCreoParametricCommonFunctions/CommonFunctions.cpp | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | src/CADAssembler/CADCreoParametricCommonFunctions/CommonFunctions.cpp | lefevre-fraser/openmeta-mms | 08f3115e76498df1f8d70641d71f5c52cab4ce5f | [
"MIT"
] | null | null | null | #include <CommonFunctions.h>
#include <ToolKitPassThroughFunctions.h>
#include <cc_CommonFunctions.h>
#include <string>
namespace isis
{
/**
std::ostream& operator <<(std::ostream & out, const bool & value) {
out << Bool_string(value);
return out;
}
std::string Bool_string( bool in_Bool )
{
if ( in_Bo... | 40.424547 | 171 | 0.692499 | [
"cad",
"model"
] |
d805c312500d8b2877ac9d09e26c8b5500666de3 | 46,969 | cpp | C++ | Engine/Code/engine.cpp | ChronoByte/AGP-Engine | 9889eabf27ca0346de45b9e91047440ee71a9eb2 | [
"MIT"
] | null | null | null | Engine/Code/engine.cpp | ChronoByte/AGP-Engine | 9889eabf27ca0346de45b9e91047440ee71a9eb2 | [
"MIT"
] | null | null | null | Engine/Code/engine.cpp | ChronoByte/AGP-Engine | 9889eabf27ca0346de45b9e91047440ee71a9eb2 | [
"MIT"
] | null | null | null | //
// engine.cpp : Put all your graphics stuff in this file. This is kind of the graphics module.
// In here, you should type all your OpenGL commands, and you can also type code to handle
// input platform events (e.g to move the camera or react to certain shortcuts), writing some
// graphics related GUI options, and ... | 33.693687 | 160 | 0.696246 | [
"mesh",
"render",
"vector",
"model",
"transform"
] |
d807b597e075e77cad6c8ab00312474e7aec9995 | 3,656 | cpp | C++ | src/state.cpp | ebassi/node-clutter | 760b8f5704a216dcd633658051c0778151b21391 | [
"MIT"
] | 1 | 2017-08-31T00:58:33.000Z | 2017-08-31T00:58:33.000Z | src/state.cpp | ebassi/node-clutter | 760b8f5704a216dcd633658051c0778151b21391 | [
"MIT"
] | null | null | null | src/state.cpp | ebassi/node-clutter | 760b8f5704a216dcd633658051c0778151b21391 | [
"MIT"
] | null | null | null | #include <v8.h>
#include <node.h>
#include <clutter/clutter.h>
#include "clutter.hpp"
#include "actor.hpp"
#include "state.hpp"
namespace clutter {
using namespace node;
using namespace v8;
State::State() : node::ObjectWrap() {
_state = clutter_state_new();
}
void State::Initialize(Handle<Object> target)
{
Hand... | 24.211921 | 103 | 0.678337 | [
"object"
] |
d80d24e0de9136d61ca47f019f250d00cb16d671 | 773 | hpp | C++ | include/natalie_parser/node/fixnum_node.hpp | natalie-lang/natalie_parser | 683bec34f8708f5b9160359ca0107edda242fdb9 | [
"MIT"
] | 10 | 2022-03-14T14:57:17.000Z | 2022-03-31T06:51:28.000Z | include/natalie_parser/node/fixnum_node.hpp | natalie-lang/natalie_parser | 683bec34f8708f5b9160359ca0107edda242fdb9 | [
"MIT"
] | 1 | 2022-03-15T21:40:34.000Z | 2022-03-16T02:05:41.000Z | include/natalie_parser/node/fixnum_node.hpp | natalie-lang/natalie_parser | 683bec34f8708f5b9160359ca0107edda242fdb9 | [
"MIT"
] | 1 | 2022-03-15T20:24:53.000Z | 2022-03-15T20:24:53.000Z | #pragma once
#include "natalie_parser/node/node.hpp"
#include "natalie_parser/node/node_with_args.hpp"
#include "tm/hashmap.hpp"
#include "tm/string.hpp"
namespace NatalieParser {
using namespace TM;
class FixnumNode : public Node {
public:
FixnumNode(const Token &token, long long number)
: Node { token... | 20.891892 | 63 | 0.659767 | [
"transform"
] |
d8126a614fc8c41271d1332ae12d4d20d53877e6 | 2,492 | cpp | C++ | pytorch/aten/src/ATen/native/quantized/cpu/qconv_unpack.cpp | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | null | null | null | pytorch/aten/src/ATen/native/quantized/cpu/qconv_unpack.cpp | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | 1 | 2019-07-22T09:48:46.000Z | 2019-07-22T09:48:46.000Z | pytorch/aten/src/ATen/native/quantized/cpu/qconv_unpack.cpp | raghavnauhria/whatmt | c20483a437c82936cb0fb8080925e37b9c4bba87 | [
"MIT"
] | null | null | null | #include <ATen/ATen.h>
#include <ATen/core/op_registration/op_registration.h>
#include <ATen/cpp_custom_type_hack.h>
#include <ATen/native/quantized/cpu/fbgemm_utils.h>
namespace at {
namespace native {
namespace {
/*
* QConvPackWeightInt8 expects its input tensor to be in shape
* [output_channels, kernel_height, k... | 33.675676 | 80 | 0.715088 | [
"shape"
] |
d8197a6e7b331d831fbde7a84d3d6158b0c17684 | 640 | cpp | C++ | test/unit_tests/tests/05_sort_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/05_sort_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/05_sort_test.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | #include "setting.h"
#include "math/sort.h"
using namespace bacchus;
TEST(SortAlgs, QuickSort) {
std::vector<float> a = {3,8,5,7,1,6,2,9,4};
std::cout << "a: " << a << std::endl;
quick_sort(a,0,9);
std::cout << "b: " << a << std::endl;
}
TEST(SortAlgs, CombSort) {
std::vector<float> a = {-45,86,-... | 22.857143 | 72 | 0.539063 | [
"vector"
] |
d82619a08273766724b24010ff29b45dfcad5798 | 4,188 | cpp | C++ | code/steps/source/model/pvu_models/pv_irradiance_model/fileirrd.cpp | cuihantao/steps | 60327bf42299cb7117ed5907a931583d7cdf590d | [
"MIT"
] | 1 | 2021-01-21T13:10:40.000Z | 2021-01-21T13:10:40.000Z | code/steps/source/model/pvu_models/pv_irradiance_model/fileirrd.cpp | cuihantao/steps | 60327bf42299cb7117ed5907a931583d7cdf590d | [
"MIT"
] | null | null | null | code/steps/source/model/pvu_models/pv_irradiance_model/fileirrd.cpp | cuihantao/steps | 60327bf42299cb7117ed5907a931583d7cdf590d | [
"MIT"
] | 1 | 2020-10-01T03:48:38.000Z | 2020-10-01T03:48:38.000Z | #include "header/model/pvu_models/pv_irradiance_model/fileirrd.h"
#include "header/basic/utility.h"
#include "header/steps_namespace.h"
#include <istream>
#include <iostream>
using namespace std;
FILEIRRAD::FILEIRRAD(STEPS& toolkit) : PV_IRRADIANCE_MODEL(toolkit)
{
clear();
}
FILEIRRAD::~FILEIRRAD()
{
}
void FIL... | 21.151515 | 122 | 0.732569 | [
"vector",
"model"
] |
d8296aed613bbacac2dcc7ad785df163022f0d51 | 15,766 | hpp | C++ | packages/utility/core/src/Utility_HDF5File.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/utility/core/src/Utility_HDF5File.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/utility/core/src/Utility_HDF5File.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file Utility_HDF5File.hpp
//! \author Alex Robinson
//! \brief The hdf5 file class declaration
//!
//---------------------------------------------------------------------------//
#ifndef UTILITY_HDF5_FILE_HPP
#define UTILITY_HD... | 37.627685 | 114 | 0.569834 | [
"object"
] |
d82c82f7dad3e9e26c16320668f1d5bee8f1815c | 7,034 | cpp | C++ | packages/geometry/dagmc/src/Geometry_DagMCProperties.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/geometry/dagmc/src/Geometry_DagMCProperties.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | packages/geometry/dagmc/src/Geometry_DagMCProperties.cpp | lkersting/SCR-2123 | 06ae3d92998664a520dc6a271809a5aeffe18f72 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------//
//!
//! \file Geometry_DagMCProperties.cpp
//! \author Alex Robinson
//! \brief DagMC property keywords class definition.
//!
//---------------------------------------------------------------------------//
// Std Lib Includes
#include <... | 30.450216 | 79 | 0.716378 | [
"geometry",
"vector"
] |
d82dd82eaace40bfa47020642dc5de5c9ae1a6cf | 3,028 | hpp | C++ | packages/monte_carlo/collision/photon/src/MonteCarlo_LineEnergyAdjointPhotonScatteringDistributionNativeFactory.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/photon/src/MonteCarlo_LineEnergyAdjointPhotonScatteringDistributionNativeFactory.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/photon/src/MonteCarlo_LineEnergyAdjointPhotonScatteringDistributionNativeFactory.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_LineEnergyAdjointPhotonScatteringDistributionNativeFactory.hpp
//! \author Alex Robinson
//! \brief The line energy adjoint photon scattering distribution native
//! factory class declaration
//!
//------... | 38.820513 | 95 | 0.665125 | [
"vector"
] |
d8328dbc0d49b3c6b642f152cc3e4d503224c9bc | 1,728 | cpp | C++ | TP_EndlessRunner/Source/TP_EndlessRunner/TP_EndlessRunnerBlocker.cpp | lpinkhard/ue4-endless-runner | fbb625ba5f4a088766c81a24960844d41b363008 | [
"MIT"
] | null | null | null | TP_EndlessRunner/Source/TP_EndlessRunner/TP_EndlessRunnerBlocker.cpp | lpinkhard/ue4-endless-runner | fbb625ba5f4a088766c81a24960844d41b363008 | [
"MIT"
] | null | null | null | TP_EndlessRunner/Source/TP_EndlessRunner/TP_EndlessRunnerBlocker.cpp | lpinkhard/ue4-endless-runner | fbb625ba5f4a088766c81a24960844d41b363008 | [
"MIT"
] | 1 | 2021-02-20T12:22:32.000Z | 2021-02-20T12:22:32.000Z | // Copyright Likotech Software. All Rights Reserved.
#include "TP_EndlessRunnerBlocker.h"
#include "TP_EndlessRunnerCharacter.h"
#include "Components/StaticMeshComponent.h"
// Sets default values
ATP_EndlessRunnerBlocker::ATP_EndlessRunnerBlocker()
{
// Blockers don't need to call Tick() every frame.
Prim... | 30.315789 | 179 | 0.755787 | [
"mesh",
"object"
] |
d8424f04398ada5c1cb30d3ba67ff0855f97e377 | 973 | cpp | C++ | tests/RussianDollEnvelopesTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | tests/RussianDollEnvelopesTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | tests/RussianDollEnvelopesTest.cpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #include "catch.hpp"
#include "RussianDollEnvelopes.hpp"
TEST_CASE("Russian Doll Envelopes") {
RussianDollEnvelopes s;
SECTION("Sample tests") {
vector<pair<int, int>> envelopes1{{5, 4},
{6, 4},
{6, 7},
... | 36.037037 | 52 | 0.323741 | [
"vector"
] |
d843394a524605d644291424132edeeec7bad06c | 633 | cc | C++ | cc/array/ShuffleTheArray.cc | zihengCat/leetcode-collections | e94d6ee7d17cc72c8f34162d60e8d869164cbd53 | [
"MIT"
] | 4 | 2021-12-08T15:36:36.000Z | 2022-03-23T12:21:06.000Z | cc/array/ShuffleTheArray.cc | zihengCat/leetcode-collections | e94d6ee7d17cc72c8f34162d60e8d869164cbd53 | [
"MIT"
] | null | null | null | cc/array/ShuffleTheArray.cc | zihengCat/leetcode-collections | e94d6ee7d17cc72c8f34162d60e8d869164cbd53 | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
/**
* LeetCode 1470. Shuffle the Array
* https://leetcode.com/problems/shuffle-the-array/
*/
class ShuffleTheArray {
public:
vector<int> shuffle(vector<int>& nums, int n) {
int vLen = nums.size();
vector<int> v(vLen, 0);
int idx = 0;
for (i... | 18.617647 | 51 | 0.459716 | [
"vector"
] |
d85c2005ff95f875245bb8d4ccc99be2f372fdf8 | 953 | cpp | C++ | NOIP/oj.noi.cn/1041VolunteerSelection.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | 14 | 2018-06-21T14:41:26.000Z | 2021-12-19T14:43:51.000Z | NOIP/oj.noi.cn/1041VolunteerSelection.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | null | null | null | NOIP/oj.noi.cn/1041VolunteerSelection.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | 2 | 2018-06-19T12:18:30.000Z | 2019-03-18T03:23:45.000Z | #include <bits/stdc++.h>
using namespace std;
struct Volunteer {
int number;
int score;
bool operator<(const Volunteer &other) const {
if (this->score != other.score)
return this->score > other.score;
return this->number < other.number;
}
};
int main(int argc, char const ... | 29.78125 | 70 | 0.543547 | [
"vector"
] |
d85d6ac108947ca7f9e1d91d0832293d32f5f19c | 177,785 | cpp | C++ | src/sha1attackgenerator/collfind.cpp | killua4564/hashclash | f780f17ef579e4bb246f5c47f31765f665dab74f | [
"MIT"
] | 398 | 2017-10-16T19:46:02.000Z | 2022-03-30T23:45:05.000Z | src/sha1attackgenerator/collfind.cpp | killua4564/hashclash | f780f17ef579e4bb246f5c47f31765f665dab74f | [
"MIT"
] | 10 | 2019-10-23T08:14:38.000Z | 2021-07-10T09:33:44.000Z | src/sha1attackgenerator/collfind.cpp | killua4564/hashclash | f780f17ef579e4bb246f5c47f31765f665dab74f | [
"MIT"
] | 72 | 2017-10-18T14:44:36.000Z | 2022-03-27T18:07:19.000Z | /**************************************************************************\
|
| Copyright (C) 2009 Marc Stevens
|
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of... | 55.995276 | 13,642 | 0.58753 | [
"vector"
] |
d8613f325c08427972829de0f7dcec6ebf842651 | 12,160 | cpp | C++ | project/XPPlayer.cpp | adamjoniec/theimp | 96f60fd665099348959b1cfc0045cb62d3a2be70 | [
"Apache-2.0"
] | null | null | null | project/XPPlayer.cpp | adamjoniec/theimp | 96f60fd665099348959b1cfc0045cb62d3a2be70 | [
"Apache-2.0"
] | null | null | null | project/XPPlayer.cpp | adamjoniec/theimp | 96f60fd665099348959b1cfc0045cb62d3a2be70 | [
"Apache-2.0"
] | null | null | null | // XPPlayer.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "XPPlayer.h"
#include "MainWnd.h"
#include "config.h"
#include "language.h"
#include "accelerators.h"
#include "splashscreen.h"
#include "timeout.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_... | 20.505902 | 83 | 0.612253 | [
"object"
] |
d8666e7175defb07a049c88f6d65f26308ef18d9 | 757 | cc | C++ | solutions/codeforces/contest/677/b.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 4 | 2020-11-07T14:38:02.000Z | 2022-01-03T19:02:36.000Z | solutions/codeforces/contest/677/b.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | 1 | 2019-04-17T06:55:14.000Z | 2019-04-17T06:55:14.000Z | solutions/codeforces/contest/677/b.cc | zwliew/ctci | 871f4fc957be96c6d0749d205549b7b35dc53d9e | [
"MIT"
] | null | null | null | /*
ID: zhaowei10
TASK:
LANG: C++14
*/
#include "bits/stdc++.h"
using namespace std;
#ifdef LOCAL
#include "../../_library/cc/debug.h"
#define FILE "test"
#else
#define debug(...) 0
#define FILE ""
#endif
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
if (fopen(FILE ".in", "r")) {
freopen(FILE ".in", ... | 15.14 | 43 | 0.470277 | [
"vector"
] |
d86d0630371da856cb18513223462246bb210855 | 1,150 | cpp | C++ | graph/bridge_articulation.cpp | fredbr/algorithm-implementations | 19da93dc4632cbba91f6014e821f9b08b4e00248 | [
"CC0-1.0"
] | 13 | 2018-08-23T22:11:23.000Z | 2021-06-10T04:15:09.000Z | graph/bridge_articulation.cpp | fredbr/algorithm-implementations | 19da93dc4632cbba91f6014e821f9b08b4e00248 | [
"CC0-1.0"
] | null | null | null | graph/bridge_articulation.cpp | fredbr/algorithm-implementations | 19da93dc4632cbba91f6014e821f9b08b4e00248 | [
"CC0-1.0"
] | 3 | 2019-09-06T17:44:38.000Z | 2019-09-10T12:41:35.000Z | struct UndirectedDfs {
vector<int> low, num, parent;
vector<bool> articulation;
int counter, root, children;
vector< pair<int,int> > bridges;
vector<int> cuts;
UndirectedDfs() : low(V, 0), num(V, -1), parent(V, 0), articulation(V, false),
counter(0), children(0) {
for(int i... | 31.944444 | 82 | 0.424348 | [
"vector"
] |
f22469fcb17a3f27ff82efe4129843378d2fd16a | 1,083 | hxx | C++ | include/distant/wow/geometry/impl/vector.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | 1 | 2022-02-19T21:37:43.000Z | 2022-02-19T21:37:43.000Z | include/distant/wow/geometry/impl/vector.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | null | null | null | include/distant/wow/geometry/impl/vector.hxx | Ostoic/distant_wow | d9ae4e6226c8d0981abc4dc3c941ea60d8e22e6b | [
"MIT"
] | 1 | 2022-02-19T21:37:46.000Z | 2022-02-19T21:37:46.000Z | #pragma once
#include "../vector.hpp"
#include <numeric>
namespace distant::wow::geometry
{
//class vector
constexpr vector::vector(const float x, const float y, const float z, const float rotation) noexcept
: std::array<float, 5>({ x, y, z, 0, rotation })
{}
//access
constexpr float vector::x() const noexcept... | 23.543478 | 101 | 0.641736 | [
"geometry",
"vector"
] |
f225220db2efe8a6dab7765e293fc8a3cc11b8dd | 4,234 | cpp | C++ | src/options.cpp | claby2/claditor | 3dfbef9001a7b46712c2dfc960ce06e727f17ae9 | [
"MIT"
] | null | null | null | src/options.cpp | claby2/claditor | 3dfbef9001a7b46712c2dfc960ce06e727f17ae9 | [
"MIT"
] | null | null | null | src/options.cpp | claby2/claditor | 3dfbef9001a7b46712c2dfc960ce06e727f17ae9 | [
"MIT"
] | null | null | null | #include "options.hpp"
#include <cctype>
#include <exception>
#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
#include "command.hpp"
#include "runtime.hpp"
struct OptionError : public std::runtime_error {
using std::runtime_error::runtime_error;
};
Options::Options()
: int_optio... | 32.821705 | 77 | 0.610534 | [
"vector"
] |
f22719e31cb15954aeea6541b80fc9c2203b90d7 | 20,207 | cpp | C++ | src/gpu_loc_assem/driver.cpp | mgawan/mhm2_staging | 0b59be2c2b4d7745d2f89b9b1b342cfe5ef6bd32 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/gpu_loc_assem/driver.cpp | mgawan/mhm2_staging | 0b59be2c2b4d7745d2f89b9b1b342cfe5ef6bd32 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/gpu_loc_assem/driver.cpp | mgawan/mhm2_staging | 0b59be2c2b4d7745d2f89b9b1b342cfe5ef6bd32 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "driver.hpp"
#include "kernel.hpp"
#include <numeric>
#include <cassert>
#include <memory>
#define CUDA_CHECK(ans) \
{ \
gpuAssert((ans), __FILE__, __L... | 63.146875 | 297 | 0.679913 | [
"vector"
] |
f2325f098dbaca8786372e0aacfc4125b0181c6e | 340 | cpp | C++ | src/math/geometry/geometry_util.cpp | orwhatever/GameGeometry | 62f3aad15bb548b31f6326420860ed37530ca8a8 | [
"MIT"
] | null | null | null | src/math/geometry/geometry_util.cpp | orwhatever/GameGeometry | 62f3aad15bb548b31f6326420860ed37530ca8a8 | [
"MIT"
] | null | null | null | src/math/geometry/geometry_util.cpp | orwhatever/GameGeometry | 62f3aad15bb548b31f6326420860ed37530ca8a8 | [
"MIT"
] | null | null | null | //
// Created by Jonas on 01-01-2018.
//
#include "math/geometry/geometry_util.h"
#include "math_include.h"
#include "math/geometry/lines2d.h"
namespace GG {
Vector2f project(const Vector2f &point, const Line2D &line) {
Vector2f tPoint = point - line.p;
return (dot(tPoint, line.dir) * line.dir... | 17.894737 | 65 | 0.65 | [
"geometry"
] |
f2339e1cbb08ed86e5595cd7699e0b317dd654bc | 4,900 | cpp | C++ | Simple_Game_Engine/Source/LineListShader.cpp | HoloDev42/SimpleGameEngine | f8101781ab6705452d5edf0dacf85335d8b9f0c6 | [
"MIT"
] | null | null | null | Simple_Game_Engine/Source/LineListShader.cpp | HoloDev42/SimpleGameEngine | f8101781ab6705452d5edf0dacf85335d8b9f0c6 | [
"MIT"
] | null | null | null | Simple_Game_Engine/Source/LineListShader.cpp | HoloDev42/SimpleGameEngine | f8101781ab6705452d5edf0dacf85335d8b9f0c6 | [
"MIT"
] | 1 | 2018-09-15T00:41:19.000Z | 2018-09-15T00:41:19.000Z | #include "LineListShader.h"
LineListShader::LineListShader()
{
m_vertexShader = 0;
m_pixelShader = 0;
m_layout = 0;
m_vertexBuffer = 0;
}
LineListShader::LineListShader(const LineListShader& other)
{
}
LineListShader::~LineListShader()
{
}
bool LineListShader::Initialize(ID3D11Device* device, HWND hwnd)
{
... | 24.257426 | 141 | 0.749388 | [
"render"
] |
f233f76845c60c91f1aa0349cadf54aaeebb3393 | 36,887 | cxx | C++ | released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/zstack.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/zstack.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2016-12-03T05:33:13.000Z | 2016-12-03T05:33:13.000Z | released_plugins/v3d_plugins/neurontracing_neutube/src_neutube/neurolabi/gui/zstack.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | #include "zqtheader.h"
#ifdef _QT_GUI_USED_
#include <QDebug>
#include <QFileInfo>
#include <QDir>
#endif
#include <string.h>
#include <iostream>
#include <cmath>
#include "tz_utilities.h"
#include "tz_stack_lib.h"
#include "zstack.hxx"
#include "tz_fimage_lib.h"
#include "tz_xml_utils.h"
#include "tz_stack_relation.h... | 24.856469 | 139 | 0.616911 | [
"object",
"vector"
] |
f23404a25bbd2125d57f2c083fb9d01e51858939 | 1,769 | hpp | C++ | src/ecs/thinker.hpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | 1 | 2022-01-16T07:06:13.000Z | 2022-01-16T07:06:13.000Z | src/ecs/thinker.hpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | null | null | null | src/ecs/thinker.hpp | synaodev/apostellein | f664a88d13f533df54ad6fb58c2ad8134f8f942c | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vector>
#include <unordered_map>
#include <entt/entity/fwd.hpp>
#include <apostellein/struct.hpp>
struct kernel;
struct camera;
struct player;
struct environment;
namespace ecs {
struct thinker {
using procedure = void(*)(entt::entity, kernel&, camera&, player&, environment&);
thinker() n... | 29.983051 | 106 | 0.747315 | [
"vector"
] |
f23da97a6b02dd6d1e1afbd2125b35710a9d44b4 | 4,240 | cpp | C++ | Engine/Source/Runtime/MoviePlayer/Private/MoviePlayerThreading.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Runtime/MoviePlayer/Private/MoviePlayerThreading.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Runtime/MoviePlayer/Private/MoviePlayerThreading.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "MoviePlayer.h"
#include "Engine.h"
#include "SlateBasics.h"
#include "SpinLock.h"
#include "MoviePlayerThreading.h"
#include "DefaultGameMoviePlayer.h"
/**
* The Slate thread is simply run on a worker thread.
* Slate is run on another thread ... | 24.508671 | 97 | 0.773585 | [
"render"
] |
f23fc1771a732eaaa8b963f947856c50dfe122b3 | 1,833 | cpp | C++ | C++/1088-Confusing-Number-II/soln.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/1088-Confusing-Number-II/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/1088-Confusing-Number-II/soln.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
int confusingNumberII(int N) {
string bads = "23457";
int goods [] = {0, 1, 6, 8, 9};
++N;
string string_N = to_string(N);
int n = string_N.length();
int ans = 0;
for(int i = 1; i < n; ++i) ans += 4 * pow(5, i - 1);
for(int i =... | 30.04918 | 80 | 0.398254 | [
"vector"
] |
f24632201c60a5f3db3a2d0c72a2fcbbbd01c989 | 14,615 | cc | C++ | src/platform/modules/SerialComm.cc | openDSME/CometOS | 1907325847f2efa746bd76854b65578201c383d8 | [
"BSD-3-Clause"
] | 3 | 2019-01-14T19:08:07.000Z | 2021-01-19T11:57:16.000Z | src/platform/modules/SerialComm.cc | openDSME/CometOS | 1907325847f2efa746bd76854b65578201c383d8 | [
"BSD-3-Clause"
] | 1 | 2016-11-11T14:35:03.000Z | 2016-11-11T14:35:03.000Z | src/platform/modules/SerialComm.cc | openDSME/CometOS | 1907325847f2efa746bd76854b65578201c383d8 | [
"BSD-3-Clause"
] | 2 | 2020-09-14T08:27:09.000Z | 2020-10-19T14:41:48.000Z | /*
* CometOS --- a component-based, extensible, tiny operating system
* for wireless networks
*
* Copyright (c) 2015, Institute of Telematics, Hamburg University of Technology
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pr... | 28.214286 | 117 | 0.649812 | [
"object"
] |
f24a163d1171f66bd4433d21e9bf096552944863 | 21,782 | hpp | C++ | extern/magnetic-force/fmmtl_minimum/kernel/YukawaCartesian.hpp | hg2120223/SPlisHSPlasH | b1596c6dfde914533367f7d3124b46997a833af2 | [
"MIT"
] | 52 | 2019-10-06T17:25:39.000Z | 2022-01-20T23:01:13.000Z | extern/magnetic-force/fmmtl_minimum/kernel/YukawaCartesian.hpp | hg2120223/SPlisHSPlasH | b1596c6dfde914533367f7d3124b46997a833af2 | [
"MIT"
] | 1 | 2019-10-08T18:44:41.000Z | 2019-10-09T07:48:31.000Z | extern/magnetic-force/fmmtl_minimum/kernel/YukawaCartesian.hpp | hg2120223/SPlisHSPlasH | b1596c6dfde914533367f7d3124b46997a833af2 | [
"MIT"
] | 10 | 2019-10-07T16:33:24.000Z | 2020-10-21T01:09:47.000Z | #pragma once
/** @file YukawaCartesian.hpp
* @brief Implements the Yukawa kernel with cartesian expansions
*
* K(t,s) = exp(-Kappa*|t-s|) / |t-s| // Potential
* K(t,s) = -(Kappa*|t-s|+1) exp(-Kappa*|t-s|) (t-s) / |t-s|^3 // Force
*/
#include <complex>
#include <vector>
#include <cassert... | 34.302362 | 164 | 0.490451 | [
"vector"
] |
f2509b2e84acaf33dfb0ea764621b6dc63cc6e79 | 5,105 | cpp | C++ | external/kspwlo_ref/algorithms/multipass.cpp | ashishkashinath/arlib | 891aa8603a6e07a16aec5700e7129a0d14a40b84 | [
"MIT"
] | 12 | 2018-10-29T17:17:28.000Z | 2021-11-01T02:09:37.000Z | external/kspwlo_ref/algorithms/multipass.cpp | ashishkashinath/arlib | 891aa8603a6e07a16aec5700e7129a0d14a40b84 | [
"MIT"
] | 1 | 2019-04-05T07:27:35.000Z | 2019-04-05T07:27:35.000Z | external/kspwlo_ref/algorithms/multipass.cpp | ashishkashinath/arlib | 891aa8603a6e07a16aec5700e7129a0d14a40b84 | [
"MIT"
] | 4 | 2019-07-20T09:31:41.000Z | 2022-03-11T12:06:49.000Z | /*
Copyright (c) 2017 Theodoros Chondrogiannis
*/
#include "kspwlo.hpp"
Path next_spwlo_bounds(
RoadNetwork *rN, NodeID source, NodeID target, double theta,
unordered_map<Edge, vector<int>, boost::hash<Edge>> &resEdges,
vector<Path> &resPaths, vector<int> &bounds);
/*
*
* multipass(RoadNetwork*, NodeID... | 30.386905 | 80 | 0.627816 | [
"vector"
] |
f253a9a815e876b006bc171ff3dc1f4f18d63042 | 2,771 | cpp | C++ | src/LpmEuclideanCoords.cpp | pbosler/lpmCxx | d8222d5a6a152f467b6a82751a404ea1e3716497 | [
"MIT"
] | null | null | null | src/LpmEuclideanCoords.cpp | pbosler/lpmCxx | d8222d5a6a152f467b6a82751a404ea1e3716497 | [
"MIT"
] | 1 | 2018-11-27T21:02:33.000Z | 2018-11-27T21:02:33.000Z | src/LpmEuclideanCoords.cpp | pbosler/lpmCxx | d8222d5a6a152f467b6a82751a404ea1e3716497 | [
"MIT"
] | null | null | null | #include "LpmEuclideanCoords.h"
#include "LpmXyzVector.h"
#include <vector>
#include <random>
#include <chrono>
namespace Lpm {
scalar_type EuclideanCoords::distance(const index_type indA, const index_type indB) const {
const XyzVector vecA(x[indA], y[indA], (_geometry != PLANAR_GEOMETRY ? z[indA] : 0.0));
co... | 41.358209 | 113 | 0.68459 | [
"vector"
] |
f26062f89ce4a7a8b782342237afa24472960143 | 4,356 | cc | C++ | runtime/onert/core/src/backend/controlflow/kernel/IfLayer.cc | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | null | null | null | runtime/onert/core/src/backend/controlflow/kernel/IfLayer.cc | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | null | null | null | runtime/onert/core/src/backend/controlflow/kernel/IfLayer.cc | bogus-sudo/ONE-1 | 7052a817eff661ec2854ed2e7ee0de5e8ba82b55 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 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
*
* Unle... | 34.299213 | 100 | 0.693756 | [
"vector"
] |
f267a300088baa36a8ab57622b3e7e5450526fc8 | 1,450 | hpp | C++ | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/common/FrontendApplication.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/common/FrontendApplication.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | Tools/STM32FW/STM32Cube_FW_F7_V1.16.2/Projects/STM32F7508-DISCO/Demonstrations/TouchGFX/Gui/gui/include/gui/common/FrontendApplication.hpp | ramkumarkoppu/NUCLEO-F767ZI-ESW | 85e129d71ee8eccbd0b94b5e07e75b6b91679ee8 | [
"MIT"
] | null | null | null | /**
******************************************************************************
* This file is part of the TouchGFX 4.10.0 distribution.
*
* @attention
*
* Copyright (c) 2018 STMicroelectronics.
* All rights reserved.
*
* This software is licensed under terms that can be found in the LICENSE file
... | 30.208333 | 104 | 0.653793 | [
"model"
] |
f26801455801cc4e0f8534a6efd7510eaec89680 | 23,462 | cpp | C++ | parallel_io/bat_write.cpp | amelvill-umich/libbat | 2a0594fa6b6e8d0f4fb776e95ba018396df11de4 | [
"MIT"
] | 5 | 2020-04-21T13:00:47.000Z | 2022-03-10T06:07:04.000Z | parallel_io/bat_write.cpp | amelvill-umich/libbat | 2a0594fa6b6e8d0f4fb776e95ba018396df11de4 | [
"MIT"
] | null | null | null | parallel_io/bat_write.cpp | amelvill-umich/libbat | 2a0594fa6b6e8d0f4fb776e95ba018396df11de4 | [
"MIT"
] | null | null | null | #include "bat_write.h"
#include <algorithm>
#include <iostream>
#include <memory>
#include <numeric>
#include <string>
#include <thread>
#include <vector>
#include <glm/ext.hpp>
#include <glm/glm.hpp>
#include <json.hpp>
#include <mpi.h>
#include <sched.h>
#include <stdlib.h>
#include <sys/types.h>
#include <tbb/global... | 40.945899 | 95 | 0.595303 | [
"vector",
"transform"
] |
f26acd143be841558508c5f61a76e2d6bbf585c5 | 712 | cpp | C++ | 60_getPermutation.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 60_getPermutation.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | 60_getPermutation.cpp | imxiaobo/leetcode-solutions | a59c4c9fa424787771c8faca7ba444cae4ed6a4e | [
"MIT"
] | null | null | null | class Solution {
public:
// n = 3, k = 5
string getPermutation(int n, int k) {
string result;
vector<int> factorial;
vector<int> digits;
factorial.push_back(1);
for (int x = 1; x <= n; ++x) {
factorial.push_back(x * factorial.back());
digits.push_back(x);
}
// for (k; n >... | 20.941176 | 78 | 0.508427 | [
"vector"
] |
f283cab5a64454df28d28ff3ed0c40c319a9611a | 66,690 | cpp | C++ | src/CQChartsViewSettings.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | src/CQChartsViewSettings.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | src/CQChartsViewSettings.cpp | Qt-Widgets/CQCharts | 0ee923c5a2794b9e3845d0d88fa519fcdea7694a | [
"MIT"
] | null | null | null | #include <CQChartsViewSettings.h>
#include <CQChartsModelDetailsWidget.h>
#include <CQChartsWindow.h>
#include <CQChartsView.h>
#include <CQChartsPlot.h>
#include <CQChartsFilterEdit.h>
#include <CQChartsPropertyViewTree.h>
#include <CQChartsLoadModelDlg.h>
#include <CQChartsCreatePlotDlg.h>
#include <CQChartsCreateAnn... | 24.366094 | 100 | 0.703539 | [
"vector",
"model"
] |
f297c6789f23db5fbf1c742891f5e42559ba8b24 | 7,015 | cpp | C++ | source/core/Native.cpp | JohnnyCrazy/scripthookvdotnet | ff56a2ffbde0cc6e72ddd718fee615e74f6d1c4a | [
"Zlib"
] | null | null | null | source/core/Native.cpp | JohnnyCrazy/scripthookvdotnet | ff56a2ffbde0cc6e72ddd718fee615e74f6d1c4a | [
"Zlib"
] | 1 | 2015-06-18T18:46:33.000Z | 2015-06-18T18:47:06.000Z | source/core/Native.cpp | JohnnyCrazy/scripthookvdotnet | ff56a2ffbde0cc6e72ddd718fee615e74f6d1c4a | [
"Zlib"
] | 2 | 2015-05-06T18:19:04.000Z | 2019-08-11T22:03:23.000Z | /**
* Copyright (C) 2015 crosire
*
* 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 commerc... | 25.143369 | 125 | 0.629366 | [
"object",
"model"
] |
f299e5d556c946426257c7b55a8babc49df4d065 | 3,506 | hh | C++ | RAVL2/GUI/DPDisplay3d/DPWindow3d.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/GUI/DPDisplay3d/DPWindow3d.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/GUI/DPDisplay3d/DPWindow3d.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2008, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 25.591241 | 113 | 0.635767 | [
"object",
"3d"
] |
f29d41b41c61da1d4a931a2b2a5ccde3658c1e73 | 13,822 | hpp | C++ | Code/L3_Utils/vector.hpp | rishabh00/Catch_Me_If_You_Can | d4e43258a895e9d9984fa3c963d0f081a582a762 | [
"Unlicense"
] | null | null | null | Code/L3_Utils/vector.hpp | rishabh00/Catch_Me_If_You_Can | d4e43258a895e9d9984fa3c963d0f081a582a762 | [
"Unlicense"
] | null | null | null | Code/L3_Utils/vector.hpp | rishabh00/Catch_Me_If_You_Can | d4e43258a895e9d9984fa3c963d0f081a582a762 | [
"Unlicense"
] | null | null | null | /*
* SocialLedge.com - Copyright (C) 2013
*
* This file is part of free software framework for embedded processors.
* You can use it and/or distribute it as long as this copyright header
* remains unmodified. The code is free for personal use and requires
* permission to use in a commercial p... | 28.557851 | 143 | 0.636015 | [
"vector"
] |
f2bb32016cb6e3c90acc6c608f0538629df6009a | 88,829 | cpp | C++ | source/Company.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | source/Company.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | source/Company.cpp | Osumi-Akari/energytycoon | 25d18a0ee4a9f8833e678af297734602918a92e9 | [
"Unlicense"
] | null | null | null | #include "StdAfx.h"
#include "Company.h"
#include "GUI.h"
#include "Map.h"
#include "City.h"
#include "Powerplant.h"
#include "PowerNet.h"
#include "GameObject.h"
#include "ResourceBuilding.h"
#include "CompanyBuilding.h"
#include "Chart.h"
/*----------------------------------------------------------------------------... | 36.88912 | 136 | 0.675207 | [
"vector"
] |
f2c51b8cda4603935541d655281e33184aaa04e9 | 604 | cpp | C++ | PatternProblems/PyramidPatternProblem/C++/PyramidPatternProblem1.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 29 | 2020-10-03T17:41:46.000Z | 2021-10-04T17:59:22.000Z | PatternProblems/PyramidPatternProblem/C++/PyramidPatternProblem1.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 117 | 2020-10-03T15:39:39.000Z | 2021-10-06T08:21:37.000Z | PatternProblems/PyramidPatternProblem/C++/PyramidPatternProblem1.cpp | riship99/codeWith-hacktoberfest | f16fa9dc9a2af0009dea3dea3220e3eaa43d3d2b | [
"MIT"
] | 160 | 2020-10-03T15:39:23.000Z | 2021-10-13T09:07:05.000Z | //Solid rectangular star pattern:
//Number of rows: 3
//Number of columns: 5
//* * * * *
//* * * * *
//* * * * *
//Program to print solid rectangular star pattern
#include <iostream>
using namespace std;
/* Function to print solid rectangle*/
void solid_rectangle(int n, int m)
{
int i, j;
for (i = 1; i <= n; i++... | 10.237288 | 49 | 0.57947 | [
"solid"
] |
f2c7cab561788cc7a5606f5012b56f050c215d50 | 16,093 | cpp | C++ | src/rhombicToricLattice.cpp | MikeVasmer/Sweep-Decoder-Boundaries | 5acd1d94303333fda0d2a1e206ee884f9b372fe9 | [
"MIT"
] | null | null | null | src/rhombicToricLattice.cpp | MikeVasmer/Sweep-Decoder-Boundaries | 5acd1d94303333fda0d2a1e206ee884f9b372fe9 | [
"MIT"
] | 2 | 2020-04-03T00:33:11.000Z | 2021-12-02T20:22:57.000Z | src/rhombicToricLattice.cpp | MikeVasmer/Sweep-Decoder-Boundaries | 5acd1d94303333fda0d2a1e206ee884f9b372fe9 | [
"MIT"
] | 1 | 2021-02-22T19:48:24.000Z | 2021-02-22T19:48:24.000Z | #include "rhombicToricLattice.h"
#include "lattice.h"
#include <string>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <map>
RhombicToricLattice::RhombicToricLattice(const int length) : Lattice(length)
{
if (length % 2 != 0)
{
throw std::invalid_argument("Lattice length ... | 48.327327 | 110 | 0.47791 | [
"vector"
] |
f2d97affb56b228cf24ea4c7d2cfecf919ffae95 | 5,479 | cpp | C++ | gcommon/source/gscenenodecomponentcollision.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | gcommon/source/gscenenodecomponentcollision.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | gcommon/source/gscenenodecomponentcollision.cpp | DavidCoenFish/ancient-code-0 | 243fb47b9302a77f9b9392b6e3f90bba2ef3c228 | [
"Unlicense"
] | null | null | null | //
// GSceneNodeComponentCollision.cpp
//
// Created by David Coen on 2011 02 18
// Copyright 2010 Pleasure seeking morons. All rights reserved.
//
#include "GSceneNodeComponentCollision.h"
#include "GSceneNode.h"
#include "GSceneNodeComponentCollisionLoad.h"
#include "GSceneNodeComponentCollisionDataLoad.h"
#incl... | 32.808383 | 167 | 0.81493 | [
"mesh"
] |
f2e277eb368dd1c454010e91dac470c49e176713 | 3,107 | cxx | C++ | vital/algo/integrate_depth_maps.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | 1 | 2020-10-14T18:22:42.000Z | 2020-10-14T18:22:42.000Z | vital/algo/integrate_depth_maps.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | vital/algo/integrate_depth_maps.cxx | neal-siekierski/kwiver | 1c97ad72c8b6237cb4b9618665d042be16825005 | [
"BSD-3-Clause"
] | null | null | null | /*ckwg +29
* Copyright 2017-2019 by Kitware, 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 li... | 38.8375 | 81 | 0.731574 | [
"vector"
] |
f2e97c61ed8c15756fa092050eefcbdd01be9984 | 4,769 | cpp | C++ | AString/AString/main.cpp | Milo-Shen/Data-Structure-Course | 20366fb9583694e33f3f57273362b1e677541729 | [
"MIT"
] | 1 | 2021-09-21T07:53:59.000Z | 2021-09-21T07:53:59.000Z | AString/AString/main.cpp | Milo-Shen/Data-Structure-Course | 20366fb9583694e33f3f57273362b1e677541729 | [
"MIT"
] | null | null | null | AString/AString/main.cpp | Milo-Shen/Data-Structure-Course | 20366fb9583694e33f3f57273362b1e677541729 | [
"MIT"
] | null | null | null | //
// main.cpp
// AString
//
// Created by Sllimen on 2021/10/6.
//
#include <string.h>
#include <iostream>
using namespace std;
const int defaultSize = 128;
class AString {
private:
char* ch;
int curLength;
int maxSize;
public:
AString(int size = defaultSize) {
maxSize = size;
... | 27.408046 | 80 | 0.487524 | [
"object"
] |
f2edee29ef0cd5c2d129d1387b3850f95558284a | 2,435 | cpp | C++ | ch04/CallbackSample/javacaller.cpp | argama147/qt-android | ca9e5a7d5b35bd9d81e6d12455b8c9d296e2e880 | [
"MIT"
] | null | null | null | ch04/CallbackSample/javacaller.cpp | argama147/qt-android | ca9e5a7d5b35bd9d81e6d12455b8c9d296e2e880 | [
"MIT"
] | null | null | null | ch04/CallbackSample/javacaller.cpp | argama147/qt-android | ca9e5a7d5b35bd9d81e6d12455b8c9d296e2e880 | [
"MIT"
] | null | null | null | #include "javacaller.h"
#include <QQuickItem>
#include <QMetaObject>
std::function<void(int data)> gCallbackInt;
std::function<void(const QString& message)> gCallbackString;
JavaCaller::JavaCaller(QObject *root, QObject *parent) : QObject(parent)
{
QQuickItem *button = root->findChild<QQuickItem *>("callJavaButt... | 29.695122 | 100 | 0.619302 | [
"object"
] |
f2ee42aaec4d469f6a06ada5b39904fb75812acc | 6,861 | cpp | C++ | GunBird - CodedDreams/ModuleEnemies.cpp | Adria-F/Gunbird-Coded-Dreams | 9a65ae346507a0db20e9d682081b08a0b8d31c43 | [
"Info-ZIP",
"CECILL-B"
] | null | null | null | GunBird - CodedDreams/ModuleEnemies.cpp | Adria-F/Gunbird-Coded-Dreams | 9a65ae346507a0db20e9d682081b08a0b8d31c43 | [
"Info-ZIP",
"CECILL-B"
] | 9 | 2017-05-02T09:58:30.000Z | 2017-05-15T20:33:19.000Z | GunBird - CodedDreams/ModuleEnemies.cpp | Adria-F/Gunbird-Coded-Dreams | 9a65ae346507a0db20e9d682081b08a0b8d31c43 | [
"Info-ZIP",
"CECILL-B"
] | null | null | null | #include "Application.h"
#include "ModuleInput.h"
#include "ModuleRender.h"
#include "ModuleEnemies.h"
#include "ModuleParticles.h"
#include "ModuleTextures.h"
#include "ModuleSceneMine.h"
#include "Enemy.h"
//Include all enemies
#include "Enemy_Balloon.h"
#include "Enemy_Torpedo.h"
#include "Enemy_Tank.h"
#include "E... | 27.22619 | 279 | 0.65661 | [
"render"
] |
f2f148ed6ac31bddf9d888a9a2bb3f1b21c35244 | 19,523 | cc | C++ | grad3/unit_test/outcar_test.cc | Ionizing/usefultools-for-vasp | b13e821fb5f4024a45b3d16176033b9577e1cf31 | [
"MIT"
] | 8 | 2019-03-18T08:21:24.000Z | 2021-07-20T07:56:39.000Z | grad3/unit_test/outcar_test.cc | Ionizing/usefultools-for-vasp | b13e821fb5f4024a45b3d16176033b9577e1cf31 | [
"MIT"
] | 9 | 2019-01-22T16:30:55.000Z | 2021-02-08T13:16:45.000Z | grad3/unit_test/outcar_test.cc | IonizingRadiation/usefultools-for-vasp | b13e821fb5f4024a45b3d16176033b9577e1cf31 | [
"MIT"
] | 4 | 2019-03-06T03:29:54.000Z | 2020-03-14T04:24:03.000Z | #define CATCH_CONFIG_MAIN
#define UNIT_TEST
// #define OUTCAR_DEBUG
#include <outcar.hpp>
#include <catch.hpp>
using namespace ionizing;
OUTCAR outcar("./test4/OUTCAR");
TEST_CASE("parse_elems debug") {
VecStr str_vec {
" POTCAR: PAW_PBE O 08Apr2002 ",
" POTCAR: PAW_PBE Ti_pv 07Sep... | 37.11597 | 161 | 0.622753 | [
"vector"
] |
f2f7b00475822e1b8abd19d53f2ba754946ef2fb | 3,557 | cpp | C++ | problemsets/Codejam/2020/Qual/e_01.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codejam/2020/Qual/e_01.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Codejam/2020/Qual/e_01.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <bits/stdc++.h>
using namespace std;
template<typename T = int> vector<T> create(size_t n){ return vector<T>(n); }
template<typename T, typename... Args> auto create(size_t n, Args... args){ return vector<decltype(create<T>... | 25.22695 | 145 | 0.414394 | [
"vector"
] |
8406c3905c76633ac190103a3c55ec67ddefcca1 | 809 | cpp | C++ | External/libigl-2.1.0/tests/include/igl/per_face_normals.cpp | RokKos/eol-cloth | b9c6f55f25ba17f33532ea5eefa41fedd29c5206 | [
"MIT"
] | null | null | null | External/libigl-2.1.0/tests/include/igl/per_face_normals.cpp | RokKos/eol-cloth | b9c6f55f25ba17f33532ea5eefa41fedd29c5206 | [
"MIT"
] | null | null | null | External/libigl-2.1.0/tests/include/igl/per_face_normals.cpp | RokKos/eol-cloth | b9c6f55f25ba17f33532ea5eefa41fedd29c5206 | [
"MIT"
] | null | null | null |
#include <test_common.h>
#include <igl/per_face_normals.h>
#include <Eigen/Geometry>
TEST_CASE("per_face_normals: dot", "[igl]")
{
const auto test_case = [](const std::string ¶m)
{
Eigen::MatrixXd V,N;
Eigen::MatrixXi F;
// Load example mesh: GetParam() will be name of mesh file
test_common::load_... | 25.28125 | 84 | 0.587145 | [
"mesh",
"geometry"
] |
840e2c7b4caf832b9f8c3ff3b8854c39711117f3 | 5,638 | cpp | C++ | graphic/showtile.cpp | MihailJP/MiHaJong | b81168ab2696dd29af5c400b84c870a9b8a2f01e | [
"MIT"
] | 13 | 2016-01-20T02:10:52.000Z | 2022-03-08T15:51:36.000Z | graphic/showtile.cpp | MihailJP/MiHaJong | b81168ab2696dd29af5c400b84c870a9b8a2f01e | [
"MIT"
] | 13 | 2020-09-28T12:57:52.000Z | 2022-02-20T19:20:57.000Z | graphic/showtile.cpp | MihailJP/MiHaJong | b81168ab2696dd29af5c400b84c870a9b8a2f01e | [
"MIT"
] | 4 | 2016-09-19T13:44:10.000Z | 2022-02-18T08:13:37.000Z | #include "showtile.h"
#include "resource.h"
#include "loadtex.h"
#include "geometry.h"
#include "sprite.h"
#include "rule.h"
namespace mihajong_graphic {
ShowTile::ShowTile(DevicePtr device) {
myDevice = device;
LoadTexture(myDevice, &TileTexture,
preferences::blackTile ? MAKEINTRESOURCE(IDB_PNG_TILE_BLACK) : MA... | 40.271429 | 153 | 0.677368 | [
"geometry",
"render"
] |
84111458735e4a241c625728df30a476dfd426c2 | 2,044 | cpp | C++ | Kattis/cetvrta.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | 3 | 2021-02-19T17:01:11.000Z | 2021-03-11T16:50:19.000Z | Kattis/cetvrta.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | Kattis/cetvrta.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | //
// https://open.kattis.com/problems/cetvrta
#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <iomanip>
#include <sstream>
#include <vector>
#include <iomanip>
#include <map>
using namespace std;
struct Point {
int x, y;
Point(int a, int b) : x(a), y(b) {}
Point() : ... | 21.744681 | 73 | 0.46184 | [
"vector"
] |
841810b7b28cfde57e82f6069db1af6fb6954281 | 2,895 | hpp | C++ | sdo/Parsers.hpp | rgottwald/libsdo | 6937784258672e3a2d4252107242796b95f026aa | [
"MIT"
] | null | null | null | sdo/Parsers.hpp | rgottwald/libsdo | 6937784258672e3a2d4252107242796b95f026aa | [
"MIT"
] | null | null | null | sdo/Parsers.hpp | rgottwald/libsdo | 6937784258672e3a2d4252107242796b95f026aa | [
"MIT"
] | null | null | null |
#ifndef _MDL_PARSERS_HPP_
#define _MDL_PARSERS_HPP_
#include <string>
#include "VopFile.hpp"
#include "ExpressionGraph.hpp"
#include "Objective.hpp"
namespace sdo {
/**
* \brief Parses a vop file.
*
* The path's used to specify model, objective and control files
* inside the file are made absolute.
*
* \pa... | 36.64557 | 103 | 0.752677 | [
"object",
"model"
] |
8430ba31a52976a5a6c594d38a501cad21374da8 | 6,500 | cpp | C++ | src/asiAlgo/points/asiAlgo_PlaneOnPoints.cpp | sasobadovinac/AnalysisSitus | 304d39c64258d4fcca888eb8e68144eca50e785a | [
"BSD-3-Clause"
] | 3 | 2021-11-04T01:36:56.000Z | 2022-03-10T07:11:01.000Z | src/asiAlgo/points/asiAlgo_PlaneOnPoints.cpp | sasobadovinac/AnalysisSitus | 304d39c64258d4fcca888eb8e68144eca50e785a | [
"BSD-3-Clause"
] | null | null | null | src/asiAlgo/points/asiAlgo_PlaneOnPoints.cpp | sasobadovinac/AnalysisSitus | 304d39c64258d4fcca888eb8e68144eca50e785a | [
"BSD-3-Clause"
] | 1 | 2021-09-25T18:14:30.000Z | 2021-09-25T18:14:30.000Z | //-----------------------------------------------------------------------------
// Created on: 03 December 2016
//-----------------------------------------------------------------------------
// Copyright (c) 2017, Sergey Slyadnev
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or ... | 34.759358 | 123 | 0.548462 | [
"vector"
] |
8430c8589986139c8bc3bcd744b6f9d2f2511c97 | 4,113 | cpp | C++ | src/DEX/parser/dex_strings.cpp | Fare9/KUNAI-static-analyzer | 3b711de554d8e712cf17672d0adb2e303fdae750 | [
"MIT"
] | 48 | 2021-12-25T11:19:32.000Z | 2022-01-25T14:43:47.000Z | src/DEX/parser/dex_strings.cpp | Fare9/KUNAI-static-analyzer | 3b711de554d8e712cf17672d0adb2e303fdae750 | [
"MIT"
] | 5 | 2021-12-25T13:36:25.000Z | 2022-01-21T20:02:54.000Z | src/DEX/parser/dex_strings.cpp | Fare9/KUNAI-static-analyzer | 3b711de554d8e712cf17672d0adb2e303fdae750 | [
"MIT"
] | 5 | 2021-12-25T14:14:09.000Z | 2022-01-16T06:52:18.000Z | #include "dex_strings.hpp"
namespace KUNAI {
namespace DEX {
DexStrings::DexStrings(std::ifstream& input_file,
std::uint64_t file_size,
std::uint32_t number_of_strings,
std::uint32_t strings_offsets) :
... | 33.991736 | 165 | 0.474836 | [
"vector"
] |
843b541e773db1c38cb77c1704436975991806aa | 1,427 | cpp | C++ | Common01/Source/Common/DrawSystem/Geometry/GeometryGeneric.cpp | DavidCoenFish/game02 | 3011cf2fe069b579759aa95333cb406a8ff52d53 | [
"Unlicense"
] | null | null | null | Common01/Source/Common/DrawSystem/Geometry/GeometryGeneric.cpp | DavidCoenFish/game02 | 3011cf2fe069b579759aa95333cb406a8ff52d53 | [
"Unlicense"
] | null | null | null | Common01/Source/Common/DrawSystem/Geometry/GeometryGeneric.cpp | DavidCoenFish/game02 | 3011cf2fe069b579759aa95333cb406a8ff52d53 | [
"Unlicense"
] | null | null | null | #include "CommonPCH.h"
#include "Common/DrawSystem/Geometry/GeometryGeneric.h"
#include "Common/DrawSystem/Geometry/IGeometry.h"
GeometryGeneric::GeometryGeneric(
DrawSystem* const pDrawSystem,
const D3D_PRIMITIVE_TOPOLOGY primitiveTopology,
const std::vector< D3D12_INPUT_ELEMENT_DESC >& inputElementDescArra... | 26.425926 | 73 | 0.742116 | [
"geometry",
"vector"
] |
e0fc80601d579672347799624d313e44648fdff8 | 5,707 | cpp | C++ | smatrix/src/myModel.cpp | talismanbrandi/SMatrix | 1307fe786a18d2684806c3ec6bf8bcee306a4891 | [
"MIT"
] | null | null | null | smatrix/src/myModel.cpp | talismanbrandi/SMatrix | 1307fe786a18d2684806c3ec6bf8bcee306a4891 | [
"MIT"
] | null | null | null | smatrix/src/myModel.cpp | talismanbrandi/SMatrix | 1307fe786a18d2684806c3ec6bf8bcee306a4891 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2015 HEPfit Collaboration
* All rights reserved.
*
* For the licensing terms see doc/COPYING.
*/
#include "myModel.h"
/* Define mandatory model parameters here. */
const std::string myModel::myModelvars[NmyModelvars] = {"Api0", "Api2", "AK0", "A4pi0", "Aetet_r", "Aetetp_r",
... | 32.426136 | 125 | 0.602243 | [
"model"
] |
e0fce2381b43b832250a1604c36843d3ec8c88d9 | 3,213 | cpp | C++ | src/action.cpp | shivaang12/Smart-AGV | 480dadd570ec09d19adf8380c5bcfcc7704d01ae | [
"MIT"
] | null | null | null | src/action.cpp | shivaang12/Smart-AGV | 480dadd570ec09d19adf8380c5bcfcc7704d01ae | [
"MIT"
] | null | null | null | src/action.cpp | shivaang12/Smart-AGV | 480dadd570ec09d19adf8380c5bcfcc7704d01ae | [
"MIT"
] | null | null | null | /********************************************************************
* MIT License
*
* Copyright (c) 2018 Shivang Patel
*
* 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 wi... | 36.101124 | 82 | 0.639278 | [
"vector"
] |
e0ff123891bdcb51d41f856d2e7ede7b45e48b56 | 29,599 | hpp | C++ | mars/boost/mpl/vector/aux_/preprocessed/plain/vector20.hpp | habbyge/mars | f30884ab41599780c51eb57a19dc1e0662cbc98a | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2020-09-17T06:29:28.000Z | 2020-09-17T06:29:28.000Z | mars/boost/mpl/vector/aux_/preprocessed/plain/vector20.hpp | habbyge/mars | f30884ab41599780c51eb57a19dc1e0662cbc98a | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | mars/boost/mpl/vector/aux_/preprocessed/plain/vector20.hpp | habbyge/mars | f30884ab41599780c51eb57a19dc1e0662cbc98a | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null |
// Copyright Aleksey Gurtovoy 2000-2004
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Preprocessed version of "boost/mpl/vector/vector20.hpp" header
// -- DO NOT modify by hand!
namespa... | 36.052375 | 471 | 0.722254 | [
"vector"
] |
46040532d78ad3b818fcf5cdd6463ed7751f6a5c | 35,764 | cpp | C++ | src/storage.cpp | wjakob/layerlab | 3e5257e3076a7287d1da9bbd4ee3f05fe37d3ee3 | [
"BSD-2-Clause"
] | 89 | 2015-07-31T05:20:17.000Z | 2022-02-05T13:21:33.000Z | src/storage.cpp | wjakob/layerlab | 3e5257e3076a7287d1da9bbd4ee3f05fe37d3ee3 | [
"BSD-2-Clause"
] | 2 | 2015-08-17T20:50:32.000Z | 2019-10-07T11:27:04.000Z | src/storage.cpp | wjakob/layerlab | 3e5257e3076a7287d1da9bbd4ee3f05fe37d3ee3 | [
"BSD-2-Clause"
] | 23 | 2015-08-03T01:09:55.000Z | 2021-12-25T15:45:42.000Z | /*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2012 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
... | 38.958606 | 113 | 0.557069 | [
"transform"
] |
4604edb76f1e2cac71ae6e1a85c20dae6bb921cc | 2,520 | cc | C++ | influxdb/src/connector.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | influxdb/src/connector.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | influxdb/src/connector.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
** Copyright 2011-2017, 2021 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or ag... | 31.898734 | 79 | 0.594048 | [
"object",
"vector"
] |
460546bd1c2ae31891ea4e55b7f4c7e21091289b | 3,852 | cpp | C++ | src/gpd/src/tests/test_occlusion.cpp | iiisrobotics/bulldog_ws | 5bf3c48fd9c51fdee7c36705ce99e59e4abd96ed | [
"MIT"
] | null | null | null | src/gpd/src/tests/test_occlusion.cpp | iiisrobotics/bulldog_ws | 5bf3c48fd9c51fdee7c36705ce99e59e4abd96ed | [
"MIT"
] | null | null | null | src/gpd/src/tests/test_occlusion.cpp | iiisrobotics/bulldog_ws | 5bf3c48fd9c51fdee7c36705ce99e59e4abd96ed | [
"MIT"
] | null | null | null | #include <gpg/candidates_generator.h>
#include <gpg/cloud_camera.h>
#include <gpg/grasp.h>
#include <gpg/plot.h>
#include <gpd/learning.h>
int main(int argc, char* argv[])
{
// View point from which the camera sees the point cloud.
Eigen::Matrix3Xd view_points(3,1);
view_points.setZero();
// Load point clou... | 33.206897 | 185 | 0.731828 | [
"geometry",
"vector"
] |
4608ddde74b7d2631c1ce2939ee31598e2fe2321 | 676 | cpp | C++ | daily/4.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | daily/4.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | daily/4.cpp | tuket/challenges | 456979020c78dfcae2f8681245000bb64a6aaf38 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
template <typename T>
void debugPrint(const vector<T>& v)
{
for(const T& x : v)
cerr << x << " ";
cerr << endl;
}
int minMissingPositive(vector<int>& a)
{
const int n = a.size();
for(int i=0; i<n; )
{
int ai = a[i];
... | 17.333333 | 42 | 0.454142 | [
"vector"
] |
460973c771a97f01854e17fe3b4e581770fe96cf | 2,478 | cpp | C++ | Analysis/utest/OptArgs_Test.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 125 | 2015-01-22T05:43:23.000Z | 2022-03-22T17:15:59.000Z | Analysis/utest/OptArgs_Test.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 59 | 2015-02-10T09:13:06.000Z | 2021-11-11T02:32:38.000Z | Analysis/utest/OptArgs_Test.cpp | konradotto/TS | bf088bd8432b1e3f4b8c8c083650a30d9ef2ae2e | [
"Apache-2.0"
] | 98 | 2015-01-17T01:25:10.000Z | 2022-03-18T17:29:42.000Z | /* Copyright (C) 2010 Ion Torrent Systems, Inc. All Rights Reserved */
#include <gtest/gtest.h>
#include "OptArgs.h"
#include "Utils.h"
using namespace std;
TEST(OptArgs_Test, BasicTest) {
const char *argv[] = {"test-prog", "--mult-double", "0.0,1.0", "--mult-int", "1,-10,0", "--hello", "world", "-b", "true", "-d",... | 34.416667 | 194 | 0.62954 | [
"vector"
] |
46209c5bab6143f423098003e4d38f3d8d0aeaf6 | 49,195 | cpp | C++ | CesiumGltfReader/generated/GeneratedJsonHandlers.cpp | zrkcode/cesium-native | 5265a65053542fe02928c272762c6b89fa2b29bb | [
"Apache-2.0"
] | null | null | null | CesiumGltfReader/generated/GeneratedJsonHandlers.cpp | zrkcode/cesium-native | 5265a65053542fe02928c272762c6b89fa2b29bb | [
"Apache-2.0"
] | null | null | null | CesiumGltfReader/generated/GeneratedJsonHandlers.cpp | zrkcode/cesium-native | 5265a65053542fe02928c272762c6b89fa2b29bb | [
"Apache-2.0"
] | null | null | null | // This file was generated by generate-gltf-classes.
// DO NOT EDIT THIS FILE!
#include "CesiumGltf/KHR_draco_mesh_compression.h"
#include "KHR_draco_mesh_compressionJsonHandler.h"
#include <cassert>
#include <string>
using namespace CesiumGltf;
KHR_draco_mesh_compressionJsonHandler::KHR_draco_mesh_compressionJsonHa... | 30.49907 | 80 | 0.731863 | [
"mesh",
"model"
] |
4624dc27a401c915208c74ee7ac0c0846a989c19 | 7,968 | cpp | C++ | sound_system.cpp | ud1/ud1_arkanoid | af6d7d44ca7db3d90316fafc6e7b7b5905ae1020 | [
"BSD-3-Clause"
] | null | null | null | sound_system.cpp | ud1/ud1_arkanoid | af6d7d44ca7db3d90316fafc6e7b7b5905ae1020 | [
"BSD-3-Clause"
] | null | null | null | sound_system.cpp | ud1/ud1_arkanoid | af6d7d44ca7db3d90316fafc6e7b7b5905ae1020 | [
"BSD-3-Clause"
] | null | null | null | // http://www.gamedev.ru/code/articles/OpenAL
#include "sound_system.h"
#include <fstream>
#include <istream>
#include <vector>
#include <cassert>
#include <ogg/ogg.h>
#include <vorbis/codec.h>
#include <vorbis/vorbisfile.h>
#include <AL/al.h>
#include <AL/alc.h>
const size_t DYN_BUF_NUMBER = 3; // ... | 21.135279 | 78 | 0.641441 | [
"vector"
] |
46315e14a0fc60fc5b358bd22508d642280e5854 | 2,565 | hpp | C++ | include/tokenaizer.hpp | Newlifer/address-parser | b04364132822168815752b4eecf71c469c7279b8 | [
"MIT"
] | 2 | 2016-09-15T14:03:02.000Z | 2016-09-16T05:36:47.000Z | include/tokenaizer.hpp | Newlifer/address-parser | b04364132822168815752b4eecf71c469c7279b8 | [
"MIT"
] | 1 | 2016-09-16T05:38:14.000Z | 2016-09-16T05:38:14.000Z | include/tokenaizer.hpp | Newlifer/address-parser | b04364132822168815752b4eecf71c469c7279b8 | [
"MIT"
] | null | null | null | #pragma once
#include "string_utils.hpp"
namespace fappy {
enum class TOKEN_TYPE : unsigned int
{
none = 0
};
template <typename StringType>
class token
{
using string_type_t = StringType;
public:
token(... | 26.173469 | 84 | 0.361404 | [
"vector"
] |
463edd82407a8b6b6f20387597cb6bc415d9d513 | 10,660 | cpp | C++ | sources/libcore/scheduler.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | sources/libcore/scheduler.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | sources/libcore/scheduler.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | #include <cage-core/scheduler.h>
#include <cage-core/timer.h>
#include <cage-core/math.h> // max
#include <cage-core/concurrent.h> // threadSleep
#include <cage-core/variableSmoothingBuffer.h>
#include <vector>
#include <algorithm>
#include <atomic>
#include <optick.h>
namespace cage
{
namespace
{
struct SchedSt... | 24.906542 | 154 | 0.649812 | [
"vector"
] |
463ede54ba6632c3a3ab3f56a169d05883c969c4 | 2,399 | hpp | C++ | extension/json/include/json_functions.hpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | 1 | 2021-12-13T06:00:18.000Z | 2021-12-13T06:00:18.000Z | extension/json/include/json_functions.hpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | 32 | 2021-09-24T23:50:09.000Z | 2022-03-29T09:37:26.000Z | extension/json/include/json_functions.hpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// DuckDB
//
// json_functions.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb/parser/parsed_data/create_scalar_function_info.hpp"
namespac... | 33.319444 | 110 | 0.726553 | [
"vector",
"transform"
] |
464187cf662c04c80585593869491b1d25a42635 | 418 | cpp | C++ | test/kth_to_last_unittest.cpp | Rokugatsu/leetcode | f868c494a9d23ac6519c94374281781f209fb19c | [
"MIT"
] | null | null | null | test/kth_to_last_unittest.cpp | Rokugatsu/leetcode | f868c494a9d23ac6519c94374281781f209fb19c | [
"MIT"
] | null | null | null | test/kth_to_last_unittest.cpp | Rokugatsu/leetcode | f868c494a9d23ac6519c94374281781f209fb19c | [
"MIT"
] | null | null | null | /**
* @file kth_to_last_unittest.cpp
* @author lipingan (lipingan.dev@outlook.com)
* @brief
* @version 0.1
* @date 2022-01-11
*
* @copyright Copyright (c) 2022
*
*/
#include "kth_to_last.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace leetcode {
TEST(kth_to_last, case_0) {
ListNode *head = sp... | 19.904762 | 57 | 0.662679 | [
"vector"
] |
465f5ecd33ad0ced0fa66dbecb166c505025a44b | 485 | hh | C++ | inc/obiekt.hh | KPO-2020-2021/zad5_3-AdamDomachowski | 1d3e1af48e948989937a9cdb206198b7de32f428 | [
"Unlicense"
] | null | null | null | inc/obiekt.hh | KPO-2020-2021/zad5_3-AdamDomachowski | 1d3e1af48e948989937a9cdb206198b7de32f428 | [
"Unlicense"
] | null | null | null | inc/obiekt.hh | KPO-2020-2021/zad5_3-AdamDomachowski | 1d3e1af48e948989937a9cdb206198b7de32f428 | [
"Unlicense"
] | null | null | null | #pragma once
#include <string>
#include <memory>
class obiekt
{
public:
/*! \brief zwraca promien obiektu*/
virtual bool kolizja_info(shared_ptr <obiekt> object)=0;
/*! \brief zczytuje nazwe obiektu*/
virtual std::string zczytaj_nazwe_obiektu() const=0;
/*! \brief zapisuje obiekt*/
virtual void zapisz()=0;
/*! ... | 17.321429 | 56 | 0.731959 | [
"object"
] |
4661ce3b51035b66b94e1b63bc885527298781e0 | 2,341 | cpp | C++ | Examples/CPP/WorkingWithProjects/WorkingWithProjectProperties/SetAttributesForNewTasks.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2022-03-16T14:31:36.000Z | 2022-03-16T14:31:36.000Z | Examples/CPP/WorkingWithProjects/WorkingWithProjectProperties/SetAttributesForNewTasks.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | null | null | null | Examples/CPP/WorkingWithProjects/WorkingWithProjectProperties/SetAttributesForNewTasks.cpp | aspose-tasks/Aspose.Tasks-for-C | acb3e2b75685f65cbe34dd739c7eae0dfc285aa1 | [
"MIT"
] | 1 | 2020-07-01T01:26:17.000Z | 2020-07-01T01:26:17.000Z | /*
This project uses Automatic Package Restore feature of NuGet to resolve Aspose.Tasks for .NET API reference
when the project is build. Please check https:// Docs.nuget.org/consume/nuget-faq for more information.
If you do not wish to use NuGet, you can manually download Aspose.Tasks for .NET API from https://www.n... | 37.15873 | 165 | 0.77531 | [
"object"
] |
46674b5d6bfc3ed925ec220090ce7a9c45242d44 | 6,544 | hpp | C++ | geometry.hpp | rsenn/qjs-opencv | 8035073ad8360636b816700325d92f4934e47e63 | [
"MIT"
] | null | null | null | geometry.hpp | rsenn/qjs-opencv | 8035073ad8360636b816700325d92f4934e47e63 | [
"MIT"
] | null | null | null | geometry.hpp | rsenn/qjs-opencv | 8035073ad8360636b816700325d92f4934e47e63 | [
"MIT"
] | null | null | null | #ifndef GEOMETRY_HPP
#define GEOMETRY_HPP
#include <opencv2/core/matx.hpp>
#include <opencv2/core/types.hpp>
#include "psimpl.hpp"
#include <cmath>
#include <stddef.h>
#include <iomanip>
#include <iterator>
#include <sstream>
#include <string>
#include <vector>
template<class T> struct point {
typedef T value_type;... | 31.613527 | 148 | 0.684444 | [
"vector",
"transform"
] |
4668020bbd551ce400ea89888fc979a901da6f18 | 1,413 | cpp | C++ | Code/Enemy_Pixel.cpp | ofaura/AndroDunos | 98a8d54443df0bb3f9bd2b3ceb2017b3dafda489 | [
"MIT"
] | 2 | 2018-05-17T21:41:48.000Z | 2018-12-27T21:46:00.000Z | Code/Enemy_Pixel.cpp | ofaura/AndroDunos | 98a8d54443df0bb3f9bd2b3ceb2017b3dafda489 | [
"MIT"
] | 2 | 2018-05-15T19:03:18.000Z | 2018-06-25T11:28:04.000Z | Code/Enemy_Pixel.cpp | ofaura/AndroDunos | 98a8d54443df0bb3f9bd2b3ceb2017b3dafda489 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "Enemy_GreenBall.h"
#include "ModuleCollision.h"
#include "ModulePlayer.h"
#include "ModuleParticles.h"
#include "ModuleUserInterface.h"
#include "ModuleEnemies.h"
#include "ModuleRender.h"
#include "ModulePlayer.h"
#include "ModuleTextures.h"
#include "Enemy_Pixel.h"
#include "ModuleA... | 27.705882 | 130 | 0.707006 | [
"render"
] |
467050bf39f54efacd5c36b857c666be6ca70775 | 2,393 | cxx | C++ | smtk/bridge/discrete/operation/vtkSelectionSplitOperatorBase.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | smtk/bridge/discrete/operation/vtkSelectionSplitOperatorBase.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | 4 | 2016-11-10T15:49:51.000Z | 2017-02-06T23:24:16.000Z | smtk/bridge/discrete/operation/vtkSelectionSplitOperatorBase.cxx | yumin/SMTK | d280f10c5b70953b2a0196f71832955c7fc75e7f | [
"BSD-3-Clause-Clear"
] | null | null | null | //=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... | 28.488095 | 83 | 0.696197 | [
"model"
] |
4676708e5e8abc75b9bb5729248a780ed413247d | 6,381 | cpp | C++ | src/bind/refl/c.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | 1 | 2019-03-28T20:45:32.000Z | 2019-03-28T20:45:32.000Z | src/bind/refl/c.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | null | null | null | src/bind/refl/c.cpp | alecnunn/mud | 9e204e2dc65f4a8ab52da3d11e6a261ff279d353 | [
"Zlib"
] | null | null | null | #include <infra/Api.h>
#include <type/Api.h>
#include <pool/Api.h>
#include <refl/Api.h>
#ifdef MUD_PLATFORM_EMSCRIPTEN
#include <emscripten.h>
#define DECL EMSCRIPTEN_KEEPALIVE
#else
#define DECL
#endif
extern "C" {
// Call
mud::Type* DECL mud_Call__type() {
return &mud::type<mud::Call>();
}
mud::Call* DECL... | 25.023529 | 99 | 0.696599 | [
"object",
"vector"
] |
46791ee7b00f3ec994be6ae76f9dd8c22c7b45f1 | 3,905 | cpp | C++ | lib/net/src/nrun/net_04.cpp | lcityd/paragon | 47a43872a5656a8c431c774d353ed214f9d0ed1d | [
"MIT"
] | 1 | 2019-03-11T14:46:04.000Z | 2019-03-11T14:46:04.000Z | lib/net/src/nrun/net_04.cpp | lcityd/paragon | 47a43872a5656a8c431c774d353ed214f9d0ed1d | [
"MIT"
] | null | null | null | lib/net/src/nrun/net_04.cpp | lcityd/paragon | 47a43872a5656a8c431c774d353ed214f9d0ed1d | [
"MIT"
] | null | null | null | // ==================================================
// Example code: how to model cosmological parameters
// Data from Addison et al. 2013
// ==================================================
#include "Data1D.h"
#include "Modelling_Cosmology.h"
#include "net_03.cpp"
// these two variables contain the name of the Cos... | 52.77027 | 172 | 0.503713 | [
"vector",
"model"
] |
4686855fc12e43d25ce11b6adbcfdbf9725ea54e | 10,886 | cc | C++ | tfx_bsl/cc/arrow/table_util.cc | opeoluwabanwo/tfx-bsl | ad8abaec6ebb9195bc91d26df9d76e7de4e2bcca | [
"Apache-2.0"
] | null | null | null | tfx_bsl/cc/arrow/table_util.cc | opeoluwabanwo/tfx-bsl | ad8abaec6ebb9195bc91d26df9d76e7de4e2bcca | [
"Apache-2.0"
] | null | null | null | tfx_bsl/cc/arrow/table_util.cc | opeoluwabanwo/tfx-bsl | ad8abaec6ebb9195bc91d26df9d76e7de4e2bcca | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 38.062937 | 80 | 0.666452 | [
"vector"
] |
4694e28e04d8c3c33bd3d48d13652b7dca467c9b | 19,469 | hpp | C++ | src/end2end_legs_collision_check.hpp | thibnoel/solo-collisions | 87bf492266578b7bfd04a6657675b1477d27b314 | [
"BSD-2-Clause"
] | null | null | null | src/end2end_legs_collision_check.hpp | thibnoel/solo-collisions | 87bf492266578b7bfd04a6657675b1477d27b314 | [
"BSD-2-Clause"
] | null | null | null | src/end2end_legs_collision_check.hpp | thibnoel/solo-collisions | 87bf492266578b7bfd04a6657675b1477d27b314 | [
"BSD-2-Clause"
] | 1 | 2022-03-04T07:49:28.000Z | 2022-03-04T07:49:28.000Z | #include <iostream>
//#include <hpp/fcl/collision_object.h>
//#include <hpp/fcl/shape/geometric_shapes.h>
#include "relative-placement-codegen.hpp"
#include "segment-segment-distance-codegen.hpp"
#include "pinocchio/algorithm/joint-configuration.hpp"
#include "pinocchio/algorithm/geometry.hpp"
//#include "pinocchio/f... | 41.868817 | 239 | 0.588525 | [
"geometry",
"object",
"shape",
"vector",
"model"
] |
469d18748714707e17d6ff06492f15e84ab570cc | 1,797 | cpp | C++ | Engine/src/math/Vector4f.cpp | DaanSander/Polygon-Engine | cdbf42b070c75f37d1e52caa788546f83156d80d | [
"MIT"
] | null | null | null | Engine/src/math/Vector4f.cpp | DaanSander/Polygon-Engine | cdbf42b070c75f37d1e52caa788546f83156d80d | [
"MIT"
] | null | null | null | Engine/src/math/Vector4f.cpp | DaanSander/Polygon-Engine | cdbf42b070c75f37d1e52caa788546f83156d80d | [
"MIT"
] | null | null | null | #include "Vector4f.h"
namespace engine { namespace math {
Vector4f::Vector4f(float x, float y, float z, float w) {
this->x = x;
this->y = y;
this->z = z;
this->w = w;
}
float Vector4f::dot(Vector4f other) const {
float xm = (this->x * other.x) + (this->x * other.y) + (this->x * other.z) + (this->x * oth... | 24.283784 | 99 | 0.605454 | [
"vector"
] |
469d2e9405cb60b0bcaea0f3214bcf0d6f65a0c7 | 4,897 | cpp | C++ | Engine/Source/Developer/RealtimeProfiler/Private/SRealtimeProfilerTimeline.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Developer/RealtimeProfiler/Private/SRealtimeProfilerTimeline.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Developer/RealtimeProfiler/Private/SRealtimeProfilerTimeline.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "SlateBasics.h"
#include "TaskGraphInterfaces.h"
#include "VisualizerEvents.h"
#include "SRealtimeProfilerTimeline.h"
#include "STimeline.h"
#include "SRealtimeProfilerVisualizer.h"
#include "SRealtimeProfilerLineGraph.h"
#include "RealtimeProfiler... | 29.5 | 136 | 0.745967 | [
"geometry"
] |
469f041e4d2bf2bf4733f3487a16da6d5ff49e2e | 4,750 | cpp | C++ | source/radeon_gpu_analyzer_gui/rg_csv_file_parser.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 97 | 2020-03-12T01:47:49.000Z | 2022-03-16T02:29:04.000Z | source/radeon_gpu_analyzer_gui/rg_csv_file_parser.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 34 | 2020-03-10T16:38:48.000Z | 2022-03-19T04:05:04.000Z | source/radeon_gpu_analyzer_gui/rg_csv_file_parser.cpp | clayne/RGA | 7ed370e00b635c5b558d4af4eb050e2a38f77e53 | [
"MIT"
] | 14 | 2020-03-13T00:50:23.000Z | 2022-01-31T09:06:54.000Z | // C++.
#include <cassert>
#include <memory>
#include <sstream>
// Qt.
#include <QFile>
#include <QTextStream>
// Local.
#include "radeon_gpu_analyzer_gui/rg_csv_file_parser.h"
#include "radeon_gpu_analyzer_gui/rg_string_constants.h"
bool RgCsvFileParser::Parse(std::string& error_string)
{
bool is_parsing_failed... | 34.671533 | 122 | 0.559368 | [
"vector"
] |
46a21c263ce2e78b9f296b9a06eff033f625384a | 2,761 | cpp | C++ | 2nd_100/problem147.cpp | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | null | null | null | 2nd_100/problem147.cpp | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | null | null | null | 2nd_100/problem147.cpp | takekoputa/project-euler | 6f434be429bd26f5d0f84f5ab0f5fa2bd677c790 | [
"MIT"
] | 1 | 2021-11-02T12:08:46.000Z | 2021-11-02T12:08:46.000Z | // Question: https://projecteuler.net/problem=147
#include<iostream>
#include<vector>
using namespace std;
typedef int64_t i64;
#define endl "\n"
const i64 N = 47;
const i64 M = 43;
void draw_diagonal(i64 i_row, i64 i_col, i64 length, vector<vector<bool>>& grid)
{
for (i64 i = 0; i < length; i++)
grid... | 23.598291 | 93 | 0.456719 | [
"vector"
] |
46a46ae09b6c428728a54f98c793416154e794fe | 11,258 | cpp | C++ | CSGOSimple/features/skins/kit_parser.cpp | YMY1666527646/CustomHooks-csgo | c79cb831dbcab044969abf556b5bfe6fab5b187c | [
"MIT"
] | 7 | 2022-02-08T18:19:07.000Z | 2022-03-25T22:17:55.000Z | CSGOSimple/features/skins/kit_parser.cpp | Kajus14/CustomHooks-csgo | aebc092ff4c5930ec7672501ba5b450dc0cbe5ba | [
"MIT"
] | null | null | null | CSGOSimple/features/skins/kit_parser.cpp | Kajus14/CustomHooks-csgo | aebc092ff4c5930ec7672501ba5b450dc0cbe5ba | [
"MIT"
] | 5 | 2022-02-04T09:29:11.000Z | 2022-03-21T15:09:13.000Z | #include <algorithm>
#include "kit_parser.h"
#include "../../helpers/utils.hpp"
#include <iostream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <string>
#include "parser.h"
#include <set>
#include <map>
#include "../../options.hpp"
#include <array>
struct skin_info
{
int seed = -1;
int paintki... | 27.797531 | 169 | 0.68005 | [
"vector",
"transform"
] |
46a78d338f19837e9ebb42b4a696ba0aa6c6748c | 11,507 | cpp | C++ | samples/crush/src/PlayerSystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/crush/src/PlayerSystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/crush/src/PlayerSystem.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2021
http://trederia.blogspot.com
crogine application - Zlib license.
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 ... | 34.452096 | 129 | 0.646215 | [
"vector",
"transform"
] |
9e4e10a2d6942db0f9aa27661900102f11660396 | 2,042 | cpp | C++ | out/production/leetcode/io/github/zhengyhn/leetcode/combination_sum_ii/combination-sum-ii.cpp | zhengyhn/leetcode | 2e5e618dd7c964c8e983b187c6b1762cbe1764de | [
"MIT"
] | null | null | null | out/production/leetcode/io/github/zhengyhn/leetcode/combination_sum_ii/combination-sum-ii.cpp | zhengyhn/leetcode | 2e5e618dd7c964c8e983b187c6b1762cbe1764de | [
"MIT"
] | null | null | null | out/production/leetcode/io/github/zhengyhn/leetcode/combination_sum_ii/combination-sum-ii.cpp | zhengyhn/leetcode | 2e5e618dd7c964c8e983b187c6b1762cbe1764de | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <set>
using namespace std;
class Solution {
public:
vector<vector<int>> combinationSum2(vector<int>& candidates, int target) {
vector<int> stack;
vector<vector<int>> ret;
if (candidates.size() == 0) {
return ret;
... | 25.525 | 79 | 0.459354 | [
"vector"
] |
9e4e21c07551298a25999a9b61c8b22a284e331f | 7,208 | cpp | C++ | scene-window-system/WmiAccess.cpp | dpw901e17/Direct3D12-Application | c4d3cb992c7fea3f577e645f7879cd1a0fd21776 | [
"MIT"
] | null | null | null | scene-window-system/WmiAccess.cpp | dpw901e17/Direct3D12-Application | c4d3cb992c7fea3f577e645f7879cd1a0fd21776 | [
"MIT"
] | null | null | null | scene-window-system/WmiAccess.cpp | dpw901e17/Direct3D12-Application | c4d3cb992c7fea3f577e645f7879cd1a0fd21776 | [
"MIT"
] | null | null | null | #include "WmiAccess.h"
void WMIAccessor::Connect(const bstr_t & wmiNamespace)
{
HRESULT hres;
// Step 1: --------------------------------------------------
// Initialize COM. ------------------------------------------
hres = CoInitializeEx(0, COINIT_MULTITHREADED);
if (FAILED(hres))
{
std::string msg = "Fail... | 23.632787 | 124 | 0.602802 | [
"object",
"vector"
] |
9e61613e251216fae942ebba32659540dbaa0fcf | 892 | hpp | C++ | src/general.hpp | RobertZ2011/qatux | 150ec5df6f719a71e603a1aea79a3b3bfbf0667e | [
"BSD-3-Clause"
] | null | null | null | src/general.hpp | RobertZ2011/qatux | 150ec5df6f719a71e603a1aea79a3b3bfbf0667e | [
"BSD-3-Clause"
] | null | null | null | src/general.hpp | RobertZ2011/qatux | 150ec5df6f719a71e603a1aea79a3b3bfbf0667e | [
"BSD-3-Clause"
] | null | null | null | #ifndef QATUX_GENERAL
#define QATUX_GENERAL
#include <Eigen/Sparse>
#include <Eigen/Dense>
#include <Eigen/KroneckerProduct>
#include <bitset>
#include <cmath>
#include <random>
#include <assert.h>
namespace Qatux {
template<typename T = float>
using Complex = std::complex<T>;
template<typename T = float... | 21.238095 | 64 | 0.663677 | [
"vector"
] |
9e62dce4140bdd49663ea698e695c261cabc6208 | 1,067 | cpp | C++ | leetcode/problems/medium/75-sort-colors.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/medium/75-sort-colors.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/medium/75-sort-colors.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Sort Colors
https://leetcode.com/problems/sort-colors/
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.
We will use the integers 0, 1, and 2 to represent the color red, white, and bl... | 21.77551 | 181 | 0.618557 | [
"vector"
] |
9e6552ad79fedb53d8d15a0091f43cca3d6e20ee | 16,823 | cpp | C++ | src/ModularServer/Response.cpp | peterpolidoro/arduino_remote_device | cb6ec7b9c059aba4bec4ea747b36986ca7aa20f8 | [
"BSD-3-Clause"
] | 1 | 2017-05-02T10:38:03.000Z | 2017-05-02T10:38:03.000Z | src/ModularServer/Response.cpp | peterpolidoro/arduino_remote_device | cb6ec7b9c059aba4bec4ea747b36986ca7aa20f8 | [
"BSD-3-Clause"
] | null | null | null | src/ModularServer/Response.cpp | peterpolidoro/arduino_remote_device | cb6ec7b9c059aba4bec4ea747b36986ca7aa20f8 | [
"BSD-3-Clause"
] | 1 | 2015-07-13T18:11:03.000Z | 2015-07-13T18:11:03.000Z | // ----------------------------------------------------------------------------
// Response.cpp
//
//
// Authors:
// Peter Polidoro peter@polidoro.io
// ----------------------------------------------------------------------------
#include "Response.h"
namespace modular_server
{
// public
void Response::writeResultKey... | 29.105536 | 103 | 0.723652 | [
"vector"
] |
9e7698842f9801ffbf0bbaf844b4a3cf06f92cb2 | 15,813 | cpp | C++ | demo.cpp | ahhz/resumable_dijkstra | 1fa57b7de5dd9ce9a23f146b709f7cb76cdf01d1 | [
"BSL-1.0"
] | 1 | 2015-11-18T15:55:43.000Z | 2015-11-18T15:55:43.000Z | demo.cpp | ahhz/resumable_dijkstra | 1fa57b7de5dd9ce9a23f146b709f7cb76cdf01d1 | [
"BSL-1.0"
] | null | null | null | demo.cpp | ahhz/resumable_dijkstra | 1fa57b7de5dd9ce9a23f146b709f7cb76cdf01d1 | [
"BSL-1.0"
] | null | null | null | //
//=======================================================================
// Copyright 2012-2104
// Author: Alex Hagen-Zanker
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//==============================... | 33.933476 | 120 | 0.725669 | [
"object",
"vector"
] |
9e807ed1aa9a4eabc4f3b2230ae60aaa3bdcbb71 | 1,155 | cc | C++ | src/Foundational/data_source/tiwds_stdin.cc | michaelweiss092/LillyMol | a2b7d1d8a07ef338c754a0a2e3b2624aac694cc9 | [
"Apache-2.0"
] | 53 | 2018-06-01T13:16:15.000Z | 2022-02-23T21:04:28.000Z | src/Foundational/data_source/tiwds_stdin.cc | IanAWatson/LillyMol-4.0-Bazel | f38f23a919c622c31280222f8a90e6ab7d871b93 | [
"Apache-2.0"
] | 19 | 2018-08-14T13:43:18.000Z | 2021-09-24T12:53:11.000Z | src/Foundational/data_source/tiwds_stdin.cc | IanAWatson/LillyMol-4.0-Bazel | f38f23a919c622c31280222f8a90e6ab7d871b93 | [
"Apache-2.0"
] | 19 | 2018-10-23T19:41:01.000Z | 2022-02-17T08:14:00.000Z | /*
Tests the iwstring_data_source object reading from stdin
*/
#include <stdlib.h>
#include "cmdline.h"
#include "iwstring_data_source.h"
using std::cerr;
using std::cout;
using std::endl;
const char * prog_name = NULL;
static int verbose = 0;
static void
usage (int rc)
{
cerr << __FILE__ << " compiled " << _... | 16.985294 | 74 | 0.623377 | [
"object"
] |
9e8966743963ce267020799a70208b9841e1d612 | 24,211 | hpp | C++ | libNCUI/transfer/Transfer.hpp | realmark1r8h/tomoyadeng | aceab8fe403070bc12f9d49fdb7add0feb20424d | [
"BSD-2-Clause"
] | 24 | 2018-11-20T14:45:57.000Z | 2021-12-30T13:38:42.000Z | libNCUI/transfer/Transfer.hpp | realmark1r8h/tomoyadeng | aceab8fe403070bc12f9d49fdb7add0feb20424d | [
"BSD-2-Clause"
] | null | null | null | libNCUI/transfer/Transfer.hpp | realmark1r8h/tomoyadeng | aceab8fe403070bc12f9d49fdb7add0feb20424d | [
"BSD-2-Clause"
] | 11 | 2018-11-29T00:09:14.000Z | 2021-11-23T08:13:17.000Z | // Created by amoylel on 06/12/2017.
// Copyright (c) 2017 amoylel All rights reserved.
#ifndef AMO_TRANSFER_HPP__
#define AMO_TRANSFER_HPP__
#include <string>
#include <map>
#include <amo/json.hpp>
#include <amo/stdint.hpp>
#include <amo/logger.hpp>
#include "ipc/Any.hpp"
#include "ipc/IPCMessage.hpp"
#include "tr... | 29.743243 | 114 | 0.50126 | [
"object"
] |
9e97eb7ebc1a361b8a74ff78c9435bc2457eb1a7 | 16,089 | cc | C++ | TopQuarkAnalysis/TopHitFit/src/Top_Fit.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | TopQuarkAnalysis/TopHitFit/src/Top_Fit.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | TopQuarkAnalysis/TopHitFit/src/Top_Fit.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | //
//
// File: src/Top_Fit.cc
// Purpose: Handle jet permutations.
// Created: Jul, 2000, sss, based on run 1 mass analysis code.
//
// XXX handle merging jets.
// XXX btagging for ttH.
//
// CMSSW File : src/Top_Fit.cc
// Original Author : Scott Stuart Snyder <snyder@bnl.gov> for D0
// Imported to CMSSW by Haryo ... | 26.203583 | 79 | 0.615638 | [
"object",
"vector"
] |
9ea351dd32f859e0ac5297201d5603d0bef4f22c | 5,630 | cc | C++ | curv/export_mesh.cc | lf94/curv | f7c54d0ba92cb719255db84309848f6cb6e72935 | [
"Apache-2.0"
] | 921 | 2019-01-13T18:47:47.000Z | 2022-03-28T03:36:18.000Z | curv/export_mesh.cc | lf94/curv | f7c54d0ba92cb719255db84309848f6cb6e72935 | [
"Apache-2.0"
] | 93 | 2019-01-11T15:35:01.000Z | 2022-01-14T17:42:05.000Z | curv/export_mesh.cc | lf94/curv | f7c54d0ba92cb719255db84309848f6cb6e72935 | [
"Apache-2.0"
] | 59 | 2019-01-20T09:37:59.000Z | 2022-02-17T15:12:10.000Z | // Copyright 2016-2021 Doug Moen
// Licensed under the Apache License, version 2.0
// See accompanying file LICENSE or https://www.apache.org/licenses/LICENSE-2.0
#include <iostream>
#include <climits>
#include <cmath>
#include <cstdlib>
#include <chrono>
#include <thread>
#include <glm/geometric.hpp>
#include "expor... | 31.629213 | 81 | 0.591119 | [
"mesh",
"shape",
"3d"
] |
9ea4f6106912066b7b437240da4783e2990f4383 | 186 | hh | C++ | include/readWav.hh | skrollilehti/spektrogrammi | f08168c5973af23d3635f40265c03930c61eaed2 | [
"Unlicense"
] | 2 | 2020-10-15T18:02:17.000Z | 2020-11-30T19:52:49.000Z | include/readWav.hh | skrollilehti/spektrogrammi | f08168c5973af23d3635f40265c03930c61eaed2 | [
"Unlicense"
] | null | null | null | include/readWav.hh | skrollilehti/spektrogrammi | f08168c5973af23d3635f40265c03930c61eaed2 | [
"Unlicense"
] | null | null | null | #ifndef READWAV_HH
#define READWAV_HH
#include <vector>
#include <string>
#include <utility>
std::pair<std::vector<short>, int> readUncompressedWavFile(std::string file_name);
#endif
| 16.909091 | 82 | 0.763441 | [
"vector"
] |
9eb454d9688396acc6ae2340b59d2cdaa900d236 | 11,852 | cc | C++ | source/main.cc | kdavison/fortress | 6c04bcd0eded658fadd40818057a37696b28f793 | [
"MIT"
] | null | null | null | source/main.cc | kdavison/fortress | 6c04bcd0eded658fadd40818057a37696b28f793 | [
"MIT"
] | null | null | null | source/main.cc | kdavison/fortress | 6c04bcd0eded658fadd40818057a37696b28f793 | [
"MIT"
] | null | null | null | #define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include <vector>
#include <string>
#include <memory>
#include <stdexcept>
#include <algorithm>
#include <cstring>
#include <set>
#include <iostream>
cl... | 31.437666 | 133 | 0.71625 | [
"vector"
] |
9eb6004d93bee8a6062e1065d815fb552e54fdfa | 272 | cpp | C++ | Leetcode/0790. Domino and Tromino Tiling/0790.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0790. Domino and Tromino Tiling/0790.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0790. Domino and Tromino Tiling/0790.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
int numTilings(int N) {
constexpr int kMod = 1e9 + 7;
vector<long> dp(1001, 0);
dp[1] = 1;
dp[2] = 2;
dp[3] = 5;
for (int i = 4; i <= N; ++i)
dp[i] = (2 * dp[i - 1] + dp[i - 3]) % kMod;
return dp[N];
}
};
| 16 | 49 | 0.444853 | [
"vector"
] |
9eb7e5df65312b1d055272d604f28e5f3b0568b9 | 2,373 | cpp | C++ | frameworks/runtime-src/Classes/LSTG/LWBuiltInFunction.cpp | Xiliusha/LuaSTG-x | 27db15a1557baedd908f19be1ea9b2c80499129a | [
"MIT"
] | null | null | null | frameworks/runtime-src/Classes/LSTG/LWBuiltInFunction.cpp | Xiliusha/LuaSTG-x | 27db15a1557baedd908f19be1ea9b2c80499129a | [
"MIT"
] | null | null | null | frameworks/runtime-src/Classes/LSTG/LWBuiltInFunction.cpp | Xiliusha/LuaSTG-x | 27db15a1557baedd908f19be1ea9b2c80499129a | [
"MIT"
] | null | null | null | #include "LWBuiltInFunction.h"
#include "AppFrame.h"
#include "LWColor.h"
#include "LWRandomizer.h"
#include "LW_Audio.h"
#include "LW_Frame.h"
#include "LW_Graph.h"
#include "LW_Input.h"
#include "LW_Math.h"
#include "LW_Object.h"
#include "LW_Render.h"
#include "LW_Text.h"
using namespace std;
using namespace lstg... | 19.137097 | 61 | 0.639275 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.