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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61f39db9a571f15c51777902873951279371c582 | 785 | cpp | C++ | Tutorials/30 Days of Code/Day 25/prime-numbers.cpp | xuedong/hacker-rank | ce8a60f80c2c6935b427f9409d7e826ee0d26a89 | [
"MIT"
] | 1 | 2021-02-22T17:37:45.000Z | 2021-02-22T17:37:45.000Z | Tutorials/30 Days of Code/Day 25/prime-numbers.cpp | xuedong/hacker-rank | ce8a60f80c2c6935b427f9409d7e826ee0d26a89 | [
"MIT"
] | null | null | null | Tutorials/30 Days of Code/Day 25/prime-numbers.cpp | xuedong/hacker-rank | ce8a60f80c2c6935b427f9409d7e826ee0d26a89 | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int T;
cin >> T;
for (int i = 0; i < T; i++) {
int n;
cin >> n;
... | 19.146341 | 77 | 0.406369 | [
"vector"
] |
61f4d01afba7d5e95f34b788c5be961a7fde3d2f | 5,646 | cpp | C++ | isis/src/hayabusa/apps/amica2isis/amica2isis.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | null | null | null | isis/src/hayabusa/apps/amica2isis/amica2isis.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | null | null | null | isis/src/hayabusa/apps/amica2isis/amica2isis.cpp | ihumphrey-usgs/ISIS3_old | 284cc442b773f8369d44379ee29a9b46961d8108 | [
"Unlicense"
] | 1 | 2021-07-12T06:05:03.000Z | 2021-07-12T06:05:03.000Z | #include "Isis.h"
#include <cstdio>
#include <QString>
#include <algorithm>
#include "AlphaCube.h"
#include "Brick.h"
#include "FileName.h"
#include "ImportFits.h"
#include "iTime.h"
#include "OriginalLabel.h"
#include "PixelType.h"
#include "ProcessImportPds.h"
#include "UserInterface.h"
using namespace std;
using ... | 32.825581 | 88 | 0.669678 | [
"model"
] |
61f5bc923686e123c5c4665532156b11d176f49e | 22,538 | cpp | C++ | services/bluetooth_standard/service/src/map_mse/map_mse_params.cpp | openharmony-sig-ci/communication_bluetooth | c9d9614e881224abfb423505e25e72163dd25df3 | [
"Apache-2.0"
] | null | null | null | services/bluetooth_standard/service/src/map_mse/map_mse_params.cpp | openharmony-sig-ci/communication_bluetooth | c9d9614e881224abfb423505e25e72163dd25df3 | [
"Apache-2.0"
] | null | null | null | services/bluetooth_standard/service/src/map_mse/map_mse_params.cpp | openharmony-sig-ci/communication_bluetooth | c9d9614e881224abfb423505e25e72163dd25df3 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:16:33.000Z | 2021-09-13T11:16:33.000Z | /*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* 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 ... | 37.688963 | 116 | 0.682847 | [
"vector"
] |
61f6f70ccf1315cd7b824ac88b8e28084ea42338 | 4,139 | cxx | C++ | src/Util/sumHists.cxx | fermi-lat/calibGenCAL | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | [
"BSD-3-Clause"
] | null | null | null | src/Util/sumHists.cxx | fermi-lat/calibGenCAL | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | [
"BSD-3-Clause"
] | null | null | null | src/Util/sumHists.cxx | fermi-lat/calibGenCAL | 9b207d7ba56031f5ecd7aab544e68a6dedc7d776 | [
"BSD-3-Clause"
] | null | null | null | // $Header: /nfs/slac/g/glast/ground/cvs/calibGenCAL/src/Util/sumHists.cxx,v 1.2 2008/05/13 16:54:00 fewtrell Exp $
/** @file
@author Zachary Fewtrell
Sum all histograms with same name across multiple files into a new file.
All histograms that only appear in at least one file will be copied to new file
... | 29.35461 | 115 | 0.621648 | [
"vector"
] |
61f8f08fb6a3475cde2b1da01d71cc851a061ea7 | 1,583 | cpp | C++ | KickStart/2019/Round-A/Training/solution.cpp | icgw/LeetCode | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | 4 | 2018-09-12T09:32:17.000Z | 2018-12-06T03:17:38.000Z | KickStart/2019/Round-A/Training/solution.cpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | KickStart/2019/Round-A/Training/solution.cpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | /*
* solution.cpp
* Copyright (C) 2019 Guowei Chen <icgw@outlook.com>
*
* Distributed under terms of the MIT license.
*/
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
/*{{{ First try: Time Limit Exceeded. (Brute Force) */
// int main()
// {
// int T; cin >> T;
// for (int i... | 20.828947 | 61 | 0.404296 | [
"vector"
] |
110074c583f517e7dbfe82d9ccdcd212ed0b4b9e | 6,106 | cpp | C++ | src/dawn/native/d3d12/D3D12Info.cpp | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 9 | 2021-11-05T11:08:14.000Z | 2022-03-18T05:14:34.000Z | src/dawn/native/d3d12/D3D12Info.cpp | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 2 | 2021-12-01T05:08:59.000Z | 2022-02-18T08:14:30.000Z | src/dawn/native/d3d12/D3D12Info.cpp | hexops/dawn | 36cc72ad1c7b0c0a92be4754b95b1441850533b0 | [
"Apache-2.0"
] | 1 | 2022-02-11T17:39:44.000Z | 2022-02-11T17:39:44.000Z | // Copyright 2019 The Dawn Authors
//
// 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 t... | 48.848 | 99 | 0.645922 | [
"render",
"model"
] |
1101264bc15f4cc1bd52a44953da555f28345633 | 28,291 | hxx | C++ | inetcore/wininet/inc/hinet.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/wininet/inc/hinet.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/wininet/inc/hinet.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1994 Microsoft Corporation
Module Name:
handle.hxx
Abstract:
Contains client-side internet handle class
Author:
Madan Appiah (madana) 16-Nov-1994
Environment:
User Mode - Win32
Revision History:
Sophia Chung (sophiac) 12-Feb-1995 (added FTP han... | 23.151391 | 115 | 0.571878 | [
"object"
] |
1101651a81e27e907175e792002bb06b36cd699e | 6,530 | cpp | C++ | examples/algorithms/writing_new/collect_indexes__writing_custom_loop.cpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | examples/algorithms/writing_new/collect_indexes__writing_custom_loop.cpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | examples/algorithms/writing_new/collect_indexes__writing_custom_loop.cpp | the-moisrex/eve | 80b52663eefee11460abb0aedf4158a5067cf7dc | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
//... | 34.188482 | 118 | 0.599694 | [
"vector"
] |
1108740980f2f73669641df435e2baadf0177462 | 6,783 | cc | C++ | src/kml/engine/location_util.cc | HellFighter/libkml | 916a801ed3143ab82c07ec108bad271aa441da16 | [
"BSD-3-Clause"
] | 39 | 2015-04-02T06:29:58.000Z | 2022-02-14T14:14:09.000Z | src/kml/engine/location_util.cc | HellFighter/libkml | 916a801ed3143ab82c07ec108bad271aa441da16 | [
"BSD-3-Clause"
] | 116 | 2015-04-04T20:39:20.000Z | 2022-02-15T12:05:00.000Z | src/kml/engine/location_util.cc | HellFighter/libkml | 916a801ed3143ab82c07ec108bad271aa441da16 | [
"BSD-3-Clause"
] | 39 | 2015-04-04T21:49:00.000Z | 2022-03-19T23:37:36.000Z | // Copyright 2008, Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions an... | 32.927184 | 80 | 0.682294 | [
"geometry",
"model"
] |
110bdfea330d7c1ceac8b4310eb79a5b19af59ef | 59,256 | cpp | C++ | src/alphabet.cpp | anyks/alm | e168ae3c2be39ff2349e266253dd43f4b237eddd | [
"MIT"
] | 40 | 2020-02-17T19:36:19.000Z | 2022-03-04T09:41:54.000Z | src/alphabet.cpp | anyks/alm | e168ae3c2be39ff2349e266253dd43f4b237eddd | [
"MIT"
] | 1 | 2020-08-03T21:25:37.000Z | 2020-08-04T22:04:26.000Z | src/alphabet.cpp | anyks/alm | e168ae3c2be39ff2349e266253dd43f4b237eddd | [
"MIT"
] | 3 | 2020-05-22T14:10:59.000Z | 2021-04-10T17:24:12.000Z | /**
* author: Yuriy Lobarev
* telegram: @forman
* phone: +7(910)983-95-90
* email: forman@anyks.com
* site: https://anyks.com
*/
#include <alphabet.hpp>
// Устанавливаем шаблон функции
template <typename T>
/**
* split Метод разделения строк на составляющие
* @param str строка для поиска
*... | 31.943935 | 205 | 0.664709 | [
"vector",
"transform"
] |
110d404a03a40b69e58b7d5eb805f8f3ba414925 | 9,485 | cpp | C++ | Samples/Win7Samples/multimedia/mediafoundation/DXVA_HD/video.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/multimedia/mediafoundation/DXVA_HD/video.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/multimedia/mediafoundation/DXVA_HD/video.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | //////////////////////////////////////////////////////////////////////
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// Cop... | 29.548287 | 86 | 0.506906 | [
"solid"
] |
110e41ee8527c64a9729b70e0ff3a06bba70b8d2 | 16,091 | hh | C++ | include/aleph/math/PiecewiseLinearFunction.hh | eudoxos/Aleph | 874882c33a0e8429c74e567eb01525613fee0616 | [
"MIT"
] | 56 | 2019-04-24T22:11:15.000Z | 2022-03-22T11:37:47.000Z | include/aleph/math/PiecewiseLinearFunction.hh | eudoxos/Aleph | 874882c33a0e8429c74e567eb01525613fee0616 | [
"MIT"
] | 48 | 2016-11-30T09:37:13.000Z | 2019-01-30T21:43:39.000Z | include/aleph/math/PiecewiseLinearFunction.hh | eudoxos/Aleph | 874882c33a0e8429c74e567eb01525613fee0616 | [
"MIT"
] | 11 | 2019-05-02T11:54:31.000Z | 2020-12-10T14:05:40.000Z | #ifndef ALEPH_MATH_PIECEWISE_LINEAR_FUNCTION_HH__
#define ALEPH_MATH_PIECEWISE_LINEAR_FUNCTION_HH__
#include <aleph/math/KahanSummation.hh>
#include <functional>
#include <iterator>
#include <limits>
#include <map>
#include <set>
#include <stdexcept>
#include <vector>
#include <cassert>
#include <cmath>
namespace a... | 28.131119 | 154 | 0.616369 | [
"vector"
] |
111103b80a46b472dce5c44d828f91ad46663958 | 46,726 | cxx | C++ | inetcore/urlmon/mon/mpxbsc.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/urlmon/mon/mpxbsc.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/urlmon/mon/mpxbsc.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1996.
//
// File: MPXBSC.CXX
//
// Contents: Code to handle multiplexing multiple concurrent
// IBindStatusCallback interfaces.
//
// ... | 28.526252 | 162 | 0.464731 | [
"object"
] |
11143fda5eeb9d376fc93d8b850d9df80c42cefa | 2,342 | cpp | C++ | leetcode/30_days_challenge/2020_9_September/day4.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | 1 | 2020-05-05T13:06:51.000Z | 2020-05-05T13:06:51.000Z | leetcode/30_days_challenge/2020_9_September/day4.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | leetcode/30_days_challenge/2020_9_September/day4.cpp | bvbasavaraju/competitive_programming | a82ffc1b639588a84f4273b44285d57cdc2f4b11 | [
"Apache-2.0"
] | null | null | null | /****************************************************
Date: Sept 4th
link: https://leetcode.com/explore/challenge/card/september-leetcoding-challenge/554/week-1-september-1st-september-7th/3448/
****************************************************/
#include <iostream>
#include <vector>
#include <list>
#include <algor... | 24.395833 | 125 | 0.474808 | [
"vector"
] |
11226e1f05b7bb66f1d91051ab8a156b7c543ed9 | 52,444 | cpp | C++ | admin/pchealth/client/common/fhclicfg/fhclicfg.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/pchealth/client/common/fhclicfg/fhclicfg.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/pchealth/client/common/fhclicfg/fhclicfg.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /******************************************************************************
Copyright (c) 2000 Microsoft Corporation
Module Name:
fhclicfg.cpp
Abstract:
Client configuration class
Revision History:
created derekm 03/31/00
*******************************************************... | 29.03876 | 111 | 0.51022 | [
"object"
] |
11246028f9fa088850f7a39f293780dce77c2c8a | 7,094 | cpp | C++ | ugene/src/corelibs/U2View/src/ov_sequence/AnnotatedDNAViewFactory.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/corelibs/U2View/src/ov_sequence/AnnotatedDNAViewFactory.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | ugene/src/corelibs/U2View/src/ov_sequence/AnnotatedDNAViewFactory.cpp | iganna/lspec | c75cba3e4fa9a46abeecbf31b5d467827cf4fec0 | [
"MIT"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <ugene@unipro.ru>
* http://ugene.unipro.ru
*
* 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... | 39.853933 | 137 | 0.691993 | [
"object"
] |
112957b0064bae2b883d5808e405c364008a8c59 | 16,711 | hpp | C++ | modules/swupdater/src/libifm3d_swupdater/swupdater_impl.hpp | Arag24/ifm3d | de345c12c54b02aae9a89120454902a29edccaf3 | [
"Apache-2.0",
"MIT"
] | null | null | null | modules/swupdater/src/libifm3d_swupdater/swupdater_impl.hpp | Arag24/ifm3d | de345c12c54b02aae9a89120454902a29edccaf3 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-05-15T19:50:56.000Z | 2020-05-15T19:50:56.000Z | modules/swupdater/src/libifm3d_swupdater/swupdater_impl.hpp | Arag24/ifm3d | de345c12c54b02aae9a89120454902a29edccaf3 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-02-08T04:14:41.000Z | 2022-02-08T04:14:41.000Z | /*
* Copyright (C) 2019 ifm electronic, gmbh
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 29.629433 | 79 | 0.614685 | [
"vector"
] |
112e32f3806d51fab764bc840986a4753bc9efd4 | 18,663 | cc | C++ | ash/fast_ink/fast_ink_host.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | ash/fast_ink/fast_ink_host.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | ash/fast_ink/fast_ink_host.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/fast_ink/fast_ink_host.h"
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <GLES2/gl2extchromium.h>
#include <memory>
#include "... | 39.540254 | 80 | 0.70396 | [
"geometry",
"vector",
"transform"
] |
1136e8834c2888bf2a01890411d46594503f53d2 | 10,622 | hpp | C++ | process/bstats.hpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | process/bstats.hpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | process/bstats.hpp | CESNET/NEMEA-probe | c2c3cc3ba96e51bc241908b9b228ec3f2d73ef97 | [
"BSD-3-Clause"
] | null | null | null | /**
* \file bstats.hpp
* \brief Plugin for parsing bstats traffic.
* \author Karel Hynek <hynekkar@fit.cvut.cz>
* \date 2020
*/
/*
* Copyright (C) 2020 CESNET
*
* LICENSE TERMS
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | 38.208633 | 120 | 0.677085 | [
"vector"
] |
1137b667fd7cea6cd404140ba6355107cd6da4e5 | 4,567 | cc | C++ | daily/day6.cc | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | daily/day6.cc | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | daily/day6.cc | snow-tyan/learn-cpp | ecab0fae7999005ed7fdb60ff4954b4014b2c2e6 | [
"MulanPSL-1.0"
] | null | null | null | #include <math.h>
#include <iostream>
#include <string>
#include <set>
#include <map>
#include <unordered_set>
#include <vector>
#include <queue>
using namespace std;
template <class T>
void printMp(T &t)
{
typename T::const_iterator cit = t.begin();
for (; cit != t.end(); ++cit)
{
cout << cit->fir... | 20.388393 | 99 | 0.506678 | [
"vector"
] |
113fdaba633b9e9ce3b5f6267e080f2ded926c7e | 28,879 | cpp | C++ | src/openms_gui/source/VISUAL/TOPPViewIdentificationViewBehavior.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms_gui/source/VISUAL/TOPPViewIdentificationViewBehavior.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms_gui/source/VISUAL/TOPPViewIdentificationViewBehavior.cpp | mrurik/OpenMS | 3bf48247423dc28a7df7b12b72fbc7751965c321 | [
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 42.720414 | 185 | 0.642647 | [
"vector"
] |
11405e97b8dde23b95d6f6103f7bb82c5cc8d145 | 7,422 | cpp | C++ | shared/XrSceneLib/ControllerObject.cpp | CodeReclaimers/OpenXR-MixedReality | 47a9ab92e1435b2566708452924d4d96689178c0 | [
"MIT"
] | 174 | 2020-03-10T18:30:02.000Z | 2022-03-14T07:11:08.000Z | shared/XrSceneLib/ControllerObject.cpp | CodeReclaimers/OpenXR-MixedReality | 47a9ab92e1435b2566708452924d4d96689178c0 | [
"MIT"
] | 28 | 2020-04-06T15:14:40.000Z | 2022-03-26T00:27:45.000Z | shared/XrSceneLib/ControllerObject.cpp | CodeReclaimers/OpenXR-MixedReality | 47a9ab92e1435b2566708452924d4d96689178c0 | [
"MIT"
] | 60 | 2020-03-25T04:01:52.000Z | 2022-03-28T14:40:10.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include <Pbr/GltfLoader.h>
#include <SampleShared/Trace.h>
#include "PbrModelObject.h"
#include "ControllerObject.h"
#include "Context.h"
using namespace DirectX;
using namespace std::literals::chrono_literals;
namespace {
... | 48.194805 | 140 | 0.691727 | [
"vector",
"model"
] |
114363edfaf7b216499ce0e82b11c58b1be29e43 | 547 | cpp | C++ | Array/Container With Most Water.cpp | kunal-j10/My-DSA | 290e56599f10d80756aa714066ee498feff58bb7 | [
"MIT"
] | 2 | 2022-01-02T07:14:16.000Z | 2022-01-02T15:43:30.000Z | Array/Container With Most Water.cpp | kunal-j10/My-DSA | 290e56599f10d80756aa714066ee498feff58bb7 | [
"MIT"
] | null | null | null | Array/Container With Most Water.cpp | kunal-j10/My-DSA | 290e56599f10d80756aa714066ee498feff58bb7 | [
"MIT"
] | 1 | 2021-08-17T15:31:59.000Z | 2021-08-17T15:31:59.000Z | class Solution {
public:
int maxArea(vector<int>& height) {
int n=height.size();
int maxArea=0;
int area;
for(int i=0,j=n-1;i<j;)
{
if(height[i]>=height[j])
{
area = (j-i)*height[j];
j--;
}
else
... | 20.259259 | 39 | 0.318099 | [
"vector"
] |
114600868cf9f351055160e002d45a7851078693 | 563 | cpp | C++ | course/CPPLearning/exp/exp6/task63.cpp | JimouChen/algorithm-competition-training | d08bfd33e94239201c720ac83f93f07eff723b5b | [
"MIT"
] | 1 | 2020-09-02T16:12:53.000Z | 2020-09-02T16:12:53.000Z | course/CPPLearning/exp/exp6/task63.cpp | JimouChen/algorithm-competition-training | d08bfd33e94239201c720ac83f93f07eff723b5b | [
"MIT"
] | null | null | null | course/CPPLearning/exp/exp6/task63.cpp | JimouChen/algorithm-competition-training | d08bfd33e94239201c720ac83f93f07eff723b5b | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class Shape {
public:
virtual void display() = 0;
};
class Rectangle : public Shape {
public:
virtual void display();
};
void Rectangle::display() {
cout << "shape is rectangle" << endl;
}
class Circle : public Shape {
public:
virtual void display();
};
void ... | 14.815789 | 41 | 0.616341 | [
"shape"
] |
1149f91aec720227dfff6f6e0980725d6c7d26d2 | 1,102 | cpp | C++ | labelButton.cpp | Coderec/QuickPanel | 777eaee128dff37ef511072e0483fe9f1501fbc0 | [
"Apache-2.0"
] | null | null | null | labelButton.cpp | Coderec/QuickPanel | 777eaee128dff37ef511072e0483fe9f1501fbc0 | [
"Apache-2.0"
] | null | null | null | labelButton.cpp | Coderec/QuickPanel | 777eaee128dff37ef511072e0483fe9f1501fbc0 | [
"Apache-2.0"
] | null | null | null | #include "labelButton.h"
#include <QApplication>
int labelButton::NUM=0;
labelButton::labelButton(QWidget *parent) :
QToolButton(parent)
{
NUM++;
buttonList = new QList<myButton*>();
setStyleSheet("background-color: rgba(255, 255, 255, 150)");
setSizePolicy(QSizePolicy::Preferred,QSizePolicy::Fixed)... | 23.446809 | 88 | 0.686933 | [
"geometry"
] |
114b7edd7fe586cb8b1f97b42adc22e4a0b6224f | 1,181 | hpp | C++ | src/sdk/REGlobals.hpp | muhopensores/RE2-Mod-Framework | 0def991b598a83a488c0be1bcf78df81e265b8b6 | [
"MIT"
] | 1 | 2020-07-17T23:16:56.000Z | 2020-07-17T23:16:56.000Z | src/sdk/REGlobals.hpp | muhopensores/RE2-Mod-Framework | 0def991b598a83a488c0be1bcf78df81e265b8b6 | [
"MIT"
] | null | null | null | src/sdk/REGlobals.hpp | muhopensores/RE2-Mod-Framework | 0def991b598a83a488c0be1bcf78df81e265b8b6 | [
"MIT"
] | null | null | null | #pragma once
#include <mutex>
#include <unordered_map>
#include <unordered_set>
#include "ReClass.hpp"
// A list of globals in the RE engine (singletons?)
class REGlobals {
public:
REGlobals();
virtual ~REGlobals() {};
const auto& getObjectsSet() const {
return m_objects;
}
const auto& ... | 24.102041 | 102 | 0.670618 | [
"object",
"vector"
] |
114e7a204d19b9b3075adeb26e57aeda911d257d | 1,328 | hpp | C++ | Include/Polar-Math/Transform.hpp | PolarToCartesian/Polar-Lib | ec564a93c0577e017d2c99426112df35788318e8 | [
"MIT"
] | null | null | null | Include/Polar-Math/Transform.hpp | PolarToCartesian/Polar-Lib | ec564a93c0577e017d2c99426112df35788318e8 | [
"MIT"
] | null | null | null | Include/Polar-Math/Transform.hpp | PolarToCartesian/Polar-Lib | ec564a93c0577e017d2c99426112df35788318e8 | [
"MIT"
] | null | null | null | #ifndef __POLAR__FILE_TRANSFORM_HPP
#define __POLAR__FILE_TRANSFORM_HPP
#include <Polar-Math/Matrix.hpp>
namespace PL {
struct Transform {
private:
Vec4f32 m_rotation;
Vec4f32 m_translation;
Mat4x4f32 m_transform = Mat4x4f32::MakeIdentity();
public:
Transform() = default;
[[nodiscard]] inline Vec4... | 35.891892 | 129 | 0.726657 | [
"transform"
] |
114eb6d880d2be431036e855688a48a17142f8dc | 16,169 | cc | C++ | pagespeed/system/apr_mem_cache_test.cc | crowell/modpagespeed_tmp | d2c063875d819c46c2d88a5ddb70578cae2a5909 | [
"Apache-2.0"
] | null | null | null | pagespeed/system/apr_mem_cache_test.cc | crowell/modpagespeed_tmp | d2c063875d819c46c2d88a5ddb70578cae2a5909 | [
"Apache-2.0"
] | null | null | null | pagespeed/system/apr_mem_cache_test.cc | crowell/modpagespeed_tmp | d2c063875d819c46c2d88a5ddb70578cae2a5909 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2012 Google 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... | 32.79716 | 79 | 0.685942 | [
"object"
] |
114f92fa73ac7bfd04d5b28ef3b05d2c4852d99f | 1,542 | cpp | C++ | ims/src/v2/model/GlanceAddImageMemberRequestBody.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 5 | 2021-03-03T08:23:43.000Z | 2022-02-16T02:16:39.000Z | ims/src/v2/model/GlanceAddImageMemberRequestBody.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | null | null | null | ims/src/v2/model/GlanceAddImageMemberRequestBody.cpp | yangzhaofeng/huaweicloud-sdk-cpp-v3 | 4f3caac5ba9a9b75b4e5fd61683d1c4d57ec1c23 | [
"Apache-2.0"
] | 7 | 2021-02-26T13:53:35.000Z | 2022-03-18T02:36:43.000Z |
#include "huaweicloud/ims/v2/model/GlanceAddImageMemberRequestBody.h"
namespace HuaweiCloud {
namespace Sdk {
namespace Ims {
namespace V2 {
namespace Model {
GlanceAddImageMemberRequestBody::GlanceAddImageMemberRequestBody()
{
member_ = "";
memberIsSet_ = false;
}
GlanceAddImageMemberRequestBody::~Glan... | 18.804878 | 97 | 0.692607 | [
"object",
"model"
] |
1150f06439ed55542274aae1407e7c87953b819b | 1,671 | cpp | C++ | compute_samples/tests/test_cl_unified_shared_memory/src/test_set_kernel_arg_mem.cpp | maximd33/compute-samples | b16a666b76b43c2a7bd1671edc563b45e978f1a7 | [
"MIT"
] | 75 | 2018-03-19T16:06:11.000Z | 2022-02-10T11:10:17.000Z | compute_samples/tests/test_cl_unified_shared_memory/src/test_set_kernel_arg_mem.cpp | maximd33/compute-samples | b16a666b76b43c2a7bd1671edc563b45e978f1a7 | [
"MIT"
] | 10 | 2019-04-17T04:52:55.000Z | 2021-04-19T22:20:07.000Z | compute_samples/tests/test_cl_unified_shared_memory/src/test_set_kernel_arg_mem.cpp | maximd33/compute-samples | b16a666b76b43c2a7bd1671edc563b45e978f1a7 | [
"MIT"
] | 17 | 2018-03-15T01:48:55.000Z | 2022-02-10T11:10:17.000Z | /*
* Copyright (C) 2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "test_cl_unified_shared_memory/common.hpp"
#include "test_harness/test_harness.hpp"
namespace compute = boost::compute;
namespace {
const std::vector<compute::usm_type> set_kernel_arg_memory_types = {
compute::usm_type... | 32.764706 | 85 | 0.752244 | [
"vector"
] |
115ffac34e8958d56c7ce96473b054754a0d2cbd | 5,848 | cxx | C++ | applications/rtkforwardprojections/rtkforwardprojections.cxx | GabrieleBelotti/RTK | 15dd2573887181a78dd9d3e5337578dd6645bb59 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | applications/rtkforwardprojections/rtkforwardprojections.cxx | GabrieleBelotti/RTK | 15dd2573887181a78dd9d3e5337578dd6645bb59 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | applications/rtkforwardprojections/rtkforwardprojections.cxx | GabrieleBelotti/RTK | 15dd2573887181a78dd9d3e5337578dd6645bb59 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
*
* Copyright RTK Consortium
*
* 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.apa... | 39.513514 | 117 | 0.719562 | [
"geometry"
] |
11604d5e7d7ec7a6d687afd26a45326b8a64d8df | 6,074 | cc | C++ | src/libtools/crosscorrelate.cc | vaidyanathanms/votca.tools | 62f9070f6b65c5bfd1227d61cddd2c5c29bcb8d4 | [
"Apache-2.0"
] | null | null | null | src/libtools/crosscorrelate.cc | vaidyanathanms/votca.tools | 62f9070f6b65c5bfd1227d61cddd2c5c29bcb8d4 | [
"Apache-2.0"
] | null | null | null | src/libtools/crosscorrelate.cc | vaidyanathanms/votca.tools | 62f9070f6b65c5bfd1227d61cddd2c5c29bcb8d4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org)
*
* 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
*
* Unl... | 27.484163 | 149 | 0.612117 | [
"vector"
] |
11646d0b76ba08c92b3f837ac1debd996f49b3c9 | 6,499 | cpp | C++ | src/util/piped_process.cpp | jezhiggins/cbmc | be17ef4790b821375e485fc485b50bd9be690609 | [
"BSD-4-Clause"
] | null | null | null | src/util/piped_process.cpp | jezhiggins/cbmc | be17ef4790b821375e485fc485b50bd9be690609 | [
"BSD-4-Clause"
] | null | null | null | src/util/piped_process.cpp | jezhiggins/cbmc | be17ef4790b821375e485fc485b50bd9be690609 | [
"BSD-4-Clause"
] | null | null | null | /// \file piped_process.cpp
/// Subprocess communication with pipes.
/// \author Diffblue Ltd.
#ifdef _WIN32
// Windows includes go here
#else
# include <fcntl.h> // library for fcntl function
# include <poll.h> // library for poll function
# include <signal.h> // library for kill function
# include <unistd.h> ... | 24.711027 | 79 | 0.670565 | [
"vector"
] |
1165dba8d4dc18484ffe3e50b81400a359dfe947 | 11,154 | cpp | C++ | DiligentCore/Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp | Romanovich1311/DEngine-pcsx4 | 65d28b15e9428d77963de95412aaceeb5930d29d | [
"Apache-2.0"
] | 15 | 2021-07-03T17:20:50.000Z | 2022-03-20T23:39:09.000Z | DiligentCore/Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp | Romanovich1311/DEngine-pcsx4 | 65d28b15e9428d77963de95412aaceeb5930d29d | [
"Apache-2.0"
] | 1 | 2021-08-09T15:10:17.000Z | 2021-09-30T06:47:04.000Z | DiligentCore/Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp | Romanovich1311/DEngine-pcsx4 | 65d28b15e9428d77963de95412aaceeb5930d29d | [
"Apache-2.0"
] | 9 | 2021-07-21T10:53:59.000Z | 2022-03-03T10:27:33.000Z | /*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 Egor Yusov
*
* 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/LICENS... | 39.136842 | 136 | 0.607764 | [
"render",
"object"
] |
116788d7cdbcb9c9b09997e283997a2dc52fd0c6 | 3,464 | hpp | C++ | src/include/libc_common.hpp | hobama/maat | 3f0a7d3ef90fff3f1c465d0ae155488b245981b4 | [
"MIT"
] | 2 | 2020-03-23T06:47:19.000Z | 2021-03-07T21:14:24.000Z | src/include/libc_common.hpp | hobama/maat | 3f0a7d3ef90fff3f1c465d0ae155488b245981b4 | [
"MIT"
] | null | null | null | src/include/libc_common.hpp | hobama/maat | 3f0a7d3ef90fff3f1c465d0ae155488b245981b4 | [
"MIT"
] | null | null | null | #ifndef ENV_LIBC_COMMON_H
#define ENV_LIBC_COMMON_H
#include "environment.hpp"
#include "exception.hpp"
#include "linux_x86.hpp"
#include <vector>
#include <cstdlib>
#include <sstream>
#include <ctime>
/* ==============================================
* Util functions
* ============================... | 47.452055 | 132 | 0.757794 | [
"vector"
] |
11679cebdbb2b337fc27cd7b0986f6a9c3662271 | 520 | cpp | C++ | AtCoder/iroha2019-day1/d/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/iroha2019-day1/d/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/iroha2019-day1/d/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n, x, y; cin >> n >> x >> y;
vector<int> c(n, 0);
for (int i = 0; i < n; i++) cin >> c[i];
sort(c.begin(), c.end()); reverse(c.begin(), c.end());
int a = x, b = y;
for (int i = 0; i ... | 26 | 58 | 0.463462 | [
"vector"
] |
1173d005550eaeea69eb8efd7ef8d49c92b63e37 | 43,476 | cc | C++ | mysql-server/router/src/mysql_protocol/tests/test_classic_protocol_message.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/mysql_protocol/tests/test_classic_protocol_message.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/router/src/mysql_protocol/tests/test_classic_protocol_message.cc | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /*
Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain ... | 38.611012 | 90 | 0.541839 | [
"vector"
] |
1177888657e199377bffbe0ad412f96ef45b0dc2 | 2,498 | cpp | C++ | src/tool/main.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/tool/main.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/tool/main.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | #include "cli/cli.h"
#include "cli/settingsProcessing.h"
#include "preprocessing/preprocessing.h"
#include "reachability/analysis.h"
#include "typedefs.h"
#include <hypro/datastructures/reachability/PreprocessingInformation.h>
#include <hypro/datastructures/reachability/Settings.h>
#include <hypro/parser/antlr4-flowst... | 37.848485 | 207 | 0.714972 | [
"model"
] |
11812570b4fd417ada922b44999cd7c4ce1fb577 | 8,857 | cpp | C++ | module_overlap/main.cpp | Frangou-Lab/module-overlap | c31f15e267c6ed00f1dd783d89518dc6ea60dc12 | [
"Apache-2.0"
] | null | null | null | module_overlap/main.cpp | Frangou-Lab/module-overlap | c31f15e267c6ed00f1dd783d89518dc6ea60dc12 | [
"Apache-2.0"
] | null | null | null | module_overlap/main.cpp | Frangou-Lab/module-overlap | c31f15e267c6ed00f1dd783d89518dc6ea60dc12 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Frangou Lab
*
* 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.689362 | 130 | 0.600316 | [
"vector"
] |
1182b3d7d9e5b48fe3827ac8f99c28130123b55d | 15,198 | cpp | C++ | src/window.cpp | diegomacario/Animation-Experiments | 42b4c1205607226fac306136d941d2387463519a | [
"MIT"
] | 4 | 2020-12-13T16:55:50.000Z | 2021-04-17T03:12:55.000Z | src/window.cpp | diegomacario/Animation-Experiments | 42b4c1205607226fac306136d941d2387463519a | [
"MIT"
] | null | null | null | src/window.cpp | diegomacario/Animation-Experiments | 42b4c1205607226fac306136d941d2387463519a | [
"MIT"
] | null | null | null | #include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
#include <iostream>
#include "window.h"
#ifdef __EMSCRIPTEN__
#include <emscripten/emscripten.h>
EM_JS(int, getCanvasWidth, (), {
return window.innerWidth;
});
EM_JS(int, getCanvasHeight, (), {
return window.inn... | 27.383784 | 207 | 0.74194 | [
"object"
] |
11843492000198998baf5b342c06dfff8a9f8efc | 16,163 | cpp | C++ | informedkd/src/Sampler/MonteCarloSampler.cpp | dqyi11/InformedSampling-ompl | 94dc30e0f9d3df304c0ba6e36acfa8c71e2fc823 | [
"BSD-3-Clause"
] | null | null | null | informedkd/src/Sampler/MonteCarloSampler.cpp | dqyi11/InformedSampling-ompl | 94dc30e0f9d3df304c0ba6e36acfa8c71e2fc823 | [
"BSD-3-Clause"
] | null | null | null | informedkd/src/Sampler/MonteCarloSampler.cpp | dqyi11/InformedSampling-ompl | 94dc30e0f9d3df304c0ba6e36acfa8c71e2fc823 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, University of Toronto
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... | 34.389362 | 115 | 0.511044 | [
"shape",
"vector"
] |
118a8a8e0670ba478464e98c9118015a9a23e186 | 17,175 | cpp | C++ | openstudiocore/src/model/SiteWaterMainsTemperature.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/SiteWaterMainsTemperature.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | openstudiocore/src/model/SiteWaterMainsTemperature.cpp | bobzabcik/OpenStudio | 858321dc0ad8d572de15858d2ae487b029a8d847 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2013, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publishe... | 44.494819 | 193 | 0.746841 | [
"vector",
"model"
] |
1196c84abf3c8c7101a35a53b08f5de58c6cea6d | 1,040 | cpp | C++ | back tracking/132 Palindrome Partitioning II.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | back tracking/132 Palindrome Partitioning II.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | back tracking/132 Palindrome Partitioning II.cpp | CoderQuinnYoung/leetcode | 6ea15c68124b16824bab9ed2e0e5a40c72eb3db1 | [
"BSD-3-Clause"
] | null | null | null | //
// 132 Palindrome Partitioning II.cpp
// Leetcode
//
// Created by Quinn on 2020/11/1.
// Copyright © 2020 Quinn. All rights reserved.
//
#include <string>
#include <vector>
using namespace std;
class Solution {
public:
int minCut(string s) {
int n = s.length();
s = ' ' + s;
vector<... | 23.111111 | 59 | 0.330769 | [
"vector"
] |
119a8a9e63b32c07a2a2dfffbddb0ec12407a5b0 | 7,023 | cpp | C++ | src/morphology.cpp | barbarabenato/libFL_finalproject | d671a69781722efd46477b0a9ea4b9d611a7bfad | [
"MIT"
] | null | null | null | src/morphology.cpp | barbarabenato/libFL_finalproject | d671a69781722efd46477b0a9ea4b9d611a7bfad | [
"MIT"
] | null | null | null | src/morphology.cpp | barbarabenato/libFL_finalproject | d671a69781722efd46477b0a9ea4b9d611a7bfad | [
"MIT"
] | 5 | 2017-03-18T00:32:00.000Z | 2019-03-24T05:58:43.000Z | //
// Created by deangeli on 3/15/17.
//
#include "morphology.h"
Image *dilate(Image *image, AdjacencyRelation *AdjRel){
Image* dilatedImage = createImage(image->nx,image->ny,1);
dilatedImage->scalingFactor = image->scalingFactor;
#pragma omp parallel for
for (int p=0; p < image->numberPixels; p++) {
... | 32.971831 | 144 | 0.643884 | [
"vector"
] |
119f39d671c00d36fc34f4081142bbfb24b19858 | 1,442 | cpp | C++ | src/nexus/common/sleep_profile.cpp | dengwxn/nexuslb | 4b19116f09fad414bd40538de0105eb728fc4b51 | [
"BSD-3-Clause"
] | 6 | 2021-07-01T23:03:28.000Z | 2022-02-07T03:24:42.000Z | src/nexus/common/sleep_profile.cpp | dengwxn/nexuslb | 4b19116f09fad414bd40538de0105eb728fc4b51 | [
"BSD-3-Clause"
] | null | null | null | src/nexus/common/sleep_profile.cpp | dengwxn/nexuslb | 4b19116f09fad414bd40538de0105eb728fc4b51 | [
"BSD-3-Clause"
] | 2 | 2021-04-06T11:09:35.000Z | 2021-04-13T06:59:34.000Z | #include "nexus/common/sleep_profile.h"
#include <glog/logging.h>
#include <cstring>
#include <optional>
#include <vector>
#include "nexus/common/util.h"
namespace nexus {
SleepProfile::SleepProfile(int slope_us, int intercept_us, int preprocess_us,
int postprocess_us)
: slope_us_(sl... | 28.27451 | 80 | 0.615811 | [
"vector"
] |
11a0050c948eb24ecc0194d2429317ffe56063c4 | 1,237 | cpp | C++ | 1679B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 1679B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 1679B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#include <set>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define p... | 16.493333 | 45 | 0.594988 | [
"vector"
] |
11a732d572449d6bb04bfb7d0cab223c1235f403 | 4,791 | hpp | C++ | src/System.hpp | georgbrown/wrapd-2d | 1f7d0659582297f97212c83c67dca81948ed70f7 | [
"MIT"
] | 4 | 2021-07-27T23:11:25.000Z | 2022-02-17T06:18:26.000Z | src/System.hpp | georgbrown/wrapd-2d | 1f7d0659582297f97212c83c67dca81948ed70f7 | [
"MIT"
] | null | null | null | src/System.hpp | georgbrown/wrapd-2d | 1f7d0659582297f97212c83c67dca81948ed70f7 | [
"MIT"
] | 3 | 2021-07-28T02:36:37.000Z | 2022-02-08T06:27:26.000Z | // Copyright (c) 2021 George E. Brown and Rahul Narain
//
// WRAPD uses the MIT License (https://opensource.org/licenses/MIT)
// 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 restri... | 29.94375 | 86 | 0.670424 | [
"vector"
] |
11aab8d6155bf27aaf24bc0b1ac9f9775a19f1ff | 8,380 | cc | C++ | third_party/webrtc/src/chromium/src/ipc/mojo/ipc_message_pipe_reader.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/ipc/mojo/ipc_message_pipe_reader.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/ipc/mojo/ipc_message_pipe_reader.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ipc/mojo/ipc_message_pipe_reader.h"
#include <stdint.h>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/location.h"
#incl... | 34.065041 | 80 | 0.656563 | [
"vector"
] |
11ac28a2d64a48a4615079b78426526cf6c30d66 | 956 | cpp | C++ | C++/demnsPoly/main.cpp | iamsuryakant/100-days-of-code | eaf4863d98dc273f03a989fe87d010d201d91516 | [
"MIT"
] | 1 | 2020-07-04T12:45:50.000Z | 2020-07-04T12:45:50.000Z | C++/demnsPoly/main.cpp | iamsuryakant/100-days-of-code | eaf4863d98dc273f03a989fe87d010d201d91516 | [
"MIT"
] | 1 | 2020-08-08T02:23:46.000Z | 2020-08-08T02:47:56.000Z | C++/demnsPoly/main.cpp | iamsuryakant/100-days-of-code | eaf4863d98dc273f03a989fe87d010d201d91516 | [
"MIT"
] | null | null | null | //program to demonstrate polymorphism base class shape and derived classes rectangle and circle
#include<iostream>
using namespace std;
class Shape
{
public:
virtual float area()=0;
virtual float perimeter()=0;
};
class Rectangle:public Shape
{
private:
float length;
float breadth;
public:
Rectangle(int l=1,int b=... | 16.77193 | 95 | 0.648536 | [
"shape"
] |
11aca101b3849b979bced2be5d0008be7e9b22eb | 19,149 | cpp | C++ | Gems/Multiplayer/Code/Source/Editor/MultiplayerEditorSystemComponent.cpp | CStudios15/o3de | 9dc85000a3ec1a6c6633d718f5c455ab11a46818 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/Multiplayer/Code/Source/Editor/MultiplayerEditorSystemComponent.cpp | CStudios15/o3de | 9dc85000a3ec1a6c6633d718f5c455ab11a46818 | [
"Apache-2.0",
"MIT"
] | null | null | null | Gems/Multiplayer/Code/Source/Editor/MultiplayerEditorSystemComponent.cpp | CStudios15/o3de | 9dc85000a3ec1a6c6633d718f5c455ab11a46818 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Multiplayer/IMultiplayer.h>
#include <Multiplayer/IMultiplayerTools.h>
#include <Multipl... | 48.725191 | 274 | 0.671053 | [
"vector",
"3d"
] |
11ae209b699904d95976577d330b6401b519d8d7 | 6,277 | cc | C++ | Analyses/src/ReadTrackerSteps_module.cc | michaelmackenzie/Offline | 57bcd11d499af77ed0619deeddace51ed2b0b097 | [
"Apache-2.0"
] | null | null | null | Analyses/src/ReadTrackerSteps_module.cc | michaelmackenzie/Offline | 57bcd11d499af77ed0619deeddace51ed2b0b097 | [
"Apache-2.0"
] | 26 | 2019-11-08T09:56:55.000Z | 2020-09-09T17:25:33.000Z | Analyses/src/ReadTrackerSteps_module.cc | ryuwd/Offline | 92957f111425910274df61dbcbd2bad76885f993 | [
"Apache-2.0"
] | null | null | null | //
// example Plugin to read Tracker Step data and create ntuples
//
// Original author KLG
//
//#include <cmath>
#include <iostream>
#include <string>
#include <iomanip>
// CLHEP includes
#include "CLHEP/Units/SystemOfUnits.h"
// Mu2e includes
#include "Offline/ConditionsService/inc/ConditionsHandle.hh"
#include "... | 25.938017 | 77 | 0.58324 | [
"geometry"
] |
11ae492d544ba979af5a8ea6e6a741ec4c4bb2cf | 3,623 | hpp | C++ | dev/restinio/impl/ioctx_on_thread_pool.hpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | dev/restinio/impl/ioctx_on_thread_pool.hpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | dev/restinio/impl/ioctx_on_thread_pool.hpp | Lord-Kamina/restinio | 00133ac4154626ec094697370d2dbe4ce01727f8 | [
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <thread>
#include <restinio/asio_include.hpp>
#include <restinio/exception.hpp>
namespace restinio
{
namespace impl
{
/*!
* \brief A class for holding actual instance of Asio's io_context.
*
* \note
* This class is intended to be used as template argument for
* ioctx_on_thread_pool_t te... | 20.016575 | 74 | 0.661054 | [
"object",
"vector"
] |
11b01681202eca2312340dedea268b2b43563a55 | 79,647 | cc | C++ | components/sync_bookmarks/bookmark_remote_updates_handler_unittest.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | components/sync_bookmarks/bookmark_remote_updates_handler_unittest.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | components/sync_bookmarks/bookmark_remote_updates_handler_unittest.cc | iridium-browser/iridium-browser | 907e31cf5ce5ad14d832796e3a7c11e496828959 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync_bookmarks/bookmark_remote_updates_handler.h"
#include <memory>
#include <string>
#include <utility>
#include "base/guid.h"
#in... | 39.803598 | 80 | 0.675581 | [
"vector",
"model"
] |
11bea5f040d3b3beef81e63e664c32a8a9cd7cb2 | 7,817 | hpp | C++ | libs/storage/test/core/merkle/generate_tree.hpp | NilFoundation/crypto3-fil-proofs | 1fd78ad608278a1ed62fb29b0a077347b74a55f1 | [
"MIT"
] | null | null | null | libs/storage/test/core/merkle/generate_tree.hpp | NilFoundation/crypto3-fil-proofs | 1fd78ad608278a1ed62fb29b0a077347b74a55f1 | [
"MIT"
] | 4 | 2021-09-06T13:07:46.000Z | 2021-11-16T12:38:09.000Z | libs/storage/test/core/merkle/generate_tree.hpp | NilFoundation/crypto3-fil-proofs | 1fd78ad608278a1ed62fb29b0a077347b74a55f1 | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------//
// MIT License
//
// Copyright (c) 2020-2021 Mikhail Komarov <nemo@nil.foundation>
// Copyright (c) 2020-2021 Nikita Kaskov <nemo@nil.foundation>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of... | 52.113333 | 132 | 0.551234 | [
"vector"
] |
11c84ced08d51033a329385c84e4f20f5fdd62d8 | 21,185 | cpp | C++ | src/core/ObjectFactory.cpp | khangthk/ShellAnything | 864d6940e024f30e4276782349e45b81e3feae2a | [
"MIT"
] | null | null | null | src/core/ObjectFactory.cpp | khangthk/ShellAnything | 864d6940e024f30e4276782349e45b81e3feae2a | [
"MIT"
] | null | null | null | src/core/ObjectFactory.cpp | khangthk/ShellAnything | 864d6940e024f30e4276782349e45b81e3feae2a | [
"MIT"
] | null | null | null | /**********************************************************************************
* MIT License
*
* Copyright (c) 2018 Antoine Beauchamp
*
* 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 So... | 26.18665 | 182 | 0.597309 | [
"vector"
] |
11cdad95174dd2855b543605d42349d8f48298fd | 14,182 | cpp | C++ | fmi.cpp | jltsiren/bwt-merge | 273a716f8e3070c65922bf62eca932a85d5be5eb | [
"MIT"
] | 23 | 2015-07-16T12:26:52.000Z | 2020-05-31T23:23:13.000Z | fmi.cpp | jltsiren/bwt-merge | 273a716f8e3070c65922bf62eca932a85d5be5eb | [
"MIT"
] | 3 | 2015-11-09T16:05:07.000Z | 2019-06-24T15:00:05.000Z | fmi.cpp | jltsiren/bwt-merge | 273a716f8e3070c65922bf62eca932a85d5be5eb | [
"MIT"
] | 4 | 2015-12-06T20:49:51.000Z | 2019-06-20T17:40:07.000Z | /*
Copyright (c) 2015 Genome Research Ltd.
Author: Jouni Siren <jouni.siren@iki.fi>
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... | 28.364 | 111 | 0.626146 | [
"vector"
] |
11ce4b0987e186f767c55481abc26a57186eeb02 | 4,700 | cc | C++ | struct2tensor/ops/decode_proto_map_op.cc | jay90099/struct2tensor | 47d651757efa27586bf75f991b2174d8173a750b | [
"Apache-2.0"
] | 30 | 2019-10-07T21:31:44.000Z | 2022-03-30T17:11:44.000Z | struct2tensor/ops/decode_proto_map_op.cc | jay90099/struct2tensor | 47d651757efa27586bf75f991b2174d8173a750b | [
"Apache-2.0"
] | 2 | 2020-03-23T20:48:14.000Z | 2021-04-16T15:05:33.000Z | struct2tensor/ops/decode_proto_map_op.cc | jay90099/struct2tensor | 47d651757efa27586bf75f991b2174d8173a750b | [
"Apache-2.0"
] | 30 | 2019-07-16T13:01:53.000Z | 2022-03-01T22:04:36.000Z | /* 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 writing, software
dis... | 41.59292 | 80 | 0.725319 | [
"shape",
"vector"
] |
11d3e4f499bd4b483407d5eddd7f32fc4468f59f | 140,810 | cxx | C++ | panda/src/egg2pg/eggLoader.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/egg2pg/eggLoader.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/egg2pg/eggLoader.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: eggLoader.cxx
// Created by: drose (26Feb02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should ... | 34.343902 | 159 | 0.613564 | [
"mesh",
"geometry",
"render",
"object",
"vector",
"model",
"transform",
"3d",
"solid"
] |
11da520b45694ec0644ad684d9c6c07384634f89 | 12,841 | cc | C++ | power_manager/powerd/system/ambient_light_sensor_manager_mojo.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | power_manager/powerd/system/ambient_light_sensor_manager_mojo.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | power_manager/powerd/system/ambient_light_sensor_manager_mojo.cc | Toromino/chromiumos-platform2 | 97e6ba18f0e5ab6723f3448a66f82c1a07538d87 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 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 "power_manager/powerd/system/ambient_light_sensor_manager_mojo.h"
#include <algorithm>
#include <utility>
#include <base/bind.h>
#include <b... | 32.345088 | 80 | 0.685461 | [
"vector"
] |
11dd795f61ec43046745cb6ae6dfb78c4a9a6653 | 4,244 | cc | C++ | cpp/core/core.cc | jjacap/nearby-connections | fa64c35e241bfa17b6e38d70ba86efcec5db75a2 | [
"Apache-2.0"
] | null | null | null | cpp/core/core.cc | jjacap/nearby-connections | fa64c35e241bfa17b6e38d70ba86efcec5db75a2 | [
"Apache-2.0"
] | null | null | null | cpp/core/core.cc | jjacap/nearby-connections | fa64c35e241bfa17b6e38d70ba86efcec5db75a2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 32.396947 | 80 | 0.685674 | [
"vector"
] |
11dfef094e3f9a53a3002badfb5aa6bb41d0d52f | 1,809 | cpp | C++ | GRUT Engine/src/Scene/Scene.cpp | lggmonclar/GRUT | b7d06fd314141395b54a86122374f4f955f653cf | [
"MIT"
] | 2 | 2019-02-14T03:20:59.000Z | 2019-03-12T01:34:59.000Z | GRUT Engine/src/Scene/Scene.cpp | lggmonclar/GRUT | b7d06fd314141395b54a86122374f4f955f653cf | [
"MIT"
] | null | null | null | GRUT Engine/src/Scene/Scene.cpp | lggmonclar/GRUT | b7d06fd314141395b54a86122374f4f955f653cf | [
"MIT"
] | null | null | null | #include "grutpch.h"
#include "Scene.h"
#include "Core/Jobs/JobManager.h"
#include "Scene/SceneManager.h"
#include "Core/Parallelism/FrameParams.h"
#include "Components/Rendering/Light.h"
namespace GRUT {
ObjectHandle<Scene> Scene::GetCurrent() {
return SceneManager::Instance().m_currentScene;
}
O... | 34.788462 | 103 | 0.638474 | [
"vector"
] |
11e048ff348a442fe73d513ccab98fafb78a9aa8 | 6,763 | cpp | C++ | concurrency_control/row_tcm.cpp | c5h11oh/Sundial | 972af0a93797dd05203ddefd9d546b8401da65c6 | [
"0BSD"
] | 24 | 2018-09-15T10:35:21.000Z | 2021-07-12T06:17:54.000Z | concurrency_control/row_tcm.cpp | c5h11oh/Sundial | 972af0a93797dd05203ddefd9d546b8401da65c6 | [
"0BSD"
] | 3 | 2019-10-14T02:57:21.000Z | 2022-02-17T19:53:46.000Z | concurrency_control/row_tcm.cpp | c5h11oh/Sundial | 972af0a93797dd05203ddefd9d546b8401da65c6 | [
"0BSD"
] | 10 | 2018-12-20T18:34:47.000Z | 2020-10-06T13:49:30.000Z | #include "row.h"
#include "txn.h"
#include "row_tcm.h"
#include "manager.h"
#include "tcm_manager.h"
#if CC_ALG == TCM
Row_TCM::Row_TCM()
{
_row = NULL;
pthread_mutex_init(&_latch, NULL);
_lock_type = LOCK_NONE;
_max_num_waits = g_max_num_waits;
_upgrading_txn = NULL;
}
Row_TCM::Row_TCM(row_t *... | 29.404348 | 98 | 0.548277 | [
"model"
] |
11e166ce5a15bc967225a88a4a2ac45c5059c746 | 22,983 | cpp | C++ | src/classic/SxVDW.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | 1 | 2020-02-29T03:26:32.000Z | 2020-02-29T03:26:32.000Z | src/classic/SxVDW.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | src/classic/SxVDW.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | // ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... | 25.035948 | 103 | 0.561807 | [
"geometry"
] |
11e587e603dec989aa49bc63590ff68134daa662 | 2,065 | cpp | C++ | two-pointers/3-A.cpp | forestLoop/Learning-ITMO-Academy-Pilot-Course | b70ea387cb6a7c26871d99ecf7109fd8f0237c3e | [
"MIT"
] | 6 | 2021-07-04T08:47:48.000Z | 2022-01-12T09:34:20.000Z | two-pointers/3-A.cpp | forestLoop/Learning-ITMO-Academy-Pilot-Course | b70ea387cb6a7c26871d99ecf7109fd8f0237c3e | [
"MIT"
] | null | null | null | two-pointers/3-A.cpp | forestLoop/Learning-ITMO-Academy-Pilot-Course | b70ea387cb6a7c26871d99ecf7109fd8f0237c3e | [
"MIT"
] | 2 | 2021-11-24T12:18:58.000Z | 2022-02-06T00:18:51.000Z | // A. Looped Playlist
// https://codeforces.com/edu/course/2/lesson/9/3/practice/contest/307094/problem/A
#include <iostream>
#include <numeric>
#include <vector>
// Time: O(N)
// Space: O(1)
std::pair<int, unsigned long long> find_songs_to_listen(const std::vector<int> &songs, unsigned long long threshold) {
// ... | 33.852459 | 118 | 0.602906 | [
"vector"
] |
eb2622d2b7319683efd036e9ff43809c6d59a1ec | 1,413 | cpp | C++ | cpp/571-580/Out of Boundary Paths.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/571-580/Out of Boundary Paths.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/571-580/Out of Boundary Paths.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
bool inBox(int i, int j, int m, int n) {
if (i < 0 || j < 0 || i >= m || j >= n) return false;
return true;
}
long get(int i, int j, int k, vector<vector<vector<long>>>& dp, int m, int n) {
if (!inBox(j, k, m, n)) return 0;
return dp[i][j][k];
}... | 32.113636 | 92 | 0.370134 | [
"vector"
] |
eb2720f7fe38a7dc5a249c88e3bc991f55189aa2 | 83,096 | cpp | C++ | src/gui/renderer.cpp | SCIInstitute/SCI-Solver_Peridynamic | b0b6b82151bbfdea5365bca156b449ca671cddc1 | [
"MIT"
] | 14 | 2018-02-01T08:26:26.000Z | 2021-12-18T11:37:26.000Z | src/gui/renderer.cpp | SCIInstitute/SCI-Solver_Peridynamic | b0b6b82151bbfdea5365bca156b449ca671cddc1 | [
"MIT"
] | null | null | null | src/gui/renderer.cpp | SCIInstitute/SCI-Solver_Peridynamic | b0b6b82151bbfdea5365bca156b449ca671cddc1 | [
"MIT"
] | 4 | 2018-05-30T05:11:34.000Z | 2021-05-08T09:06:29.000Z | //------------------------------------------------------------------------------------------
//
//
// Created on: 2/20/2015
// Author: Nghia Truong
//
//------------------------------------------------------------------------------------------
#include "renderer.h"
Renderer::Renderer(QWidget* parent, int viewportI... | 33.560582 | 134 | 0.57146 | [
"render",
"object",
"model"
] |
eb29c5f17d320d65d0799d3f5a6e5913eb411640 | 5,552 | hpp | C++ | cadical/src/heap.hpp | CInet/CInet-Alien-CaDiCaL | 809aca7088ac8b3af61e5b954c5365230ec1010b | [
"Artistic-2.0"
] | 1 | 2020-08-25T11:54:29.000Z | 2020-08-25T11:54:29.000Z | cadical/src/heap.hpp | CInet/CInet-Alien-CaDiCaL | 809aca7088ac8b3af61e5b954c5365230ec1010b | [
"Artistic-2.0"
] | null | null | null | cadical/src/heap.hpp | CInet/CInet-Alien-CaDiCaL | 809aca7088ac8b3af61e5b954c5365230ec1010b | [
"Artistic-2.0"
] | 2 | 2020-08-25T11:54:37.000Z | 2020-12-16T10:01:49.000Z | #ifndef _heap_hpp_INCLUDED
#define _heap_hpp_INCLUDED
#include "util.hpp" // Alphabetically after 'heap.hpp'.
namespace CaDiCaL {
using namespace std;
// This is a priority queue with updates for unsigned integers implemented
// as binary heap. We need to map integer elements added (through
// 'push_back') to ... | 27.621891 | 77 | 0.606448 | [
"vector"
] |
eb32b7780eee06232e3bb2ca2a171a0ea4821539 | 60,255 | cpp | C++ | MInteraction/SimulXYGraph.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | null | null | null | MInteraction/SimulXYGraph.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | null | null | null | MInteraction/SimulXYGraph.cpp | vanch3d/DEMIST | f49e3409cf5eca8df6b03f1a1bbc0f9f4ca44521 | [
"MIT"
] | 1 | 2021-01-11T09:52:21.000Z | 2021-01-11T09:52:21.000Z | // SimulXYGraph.cpp : implementation file
//
#include "stdafx.h"
#include "simul.h"
#include "LearnerTrace.h"
#include "SimulDoc.h"
#include "SimulXYGraph.h"
#include <MInstruction\LearningUnit.h>
#include <MSimulation\Model.h>
#include "SelectParamDlg.h"
#include <MInteraction\Format.h>
#ifdef _DEBUG
#define n... | 24.919355 | 106 | 0.645606 | [
"object",
"model"
] |
eb350c8552e2adc93d2335ac11865671eb99fd58 | 16,107 | cpp | C++ | src/sources/generator.cpp | ebachard/ImStudio | 35d196993e29ceee7475f1cc74645227c642e06d | [
"MIT"
] | 1 | 2022-02-08T06:46:12.000Z | 2022-02-08T06:46:12.000Z | src/sources/generator.cpp | ebachard/ImStudio | 35d196993e29ceee7475f1cc74645227c642e06d | [
"MIT"
] | null | null | null | src/sources/generator.cpp | ebachard/ImStudio | 35d196993e29ceee7475f1cc74645227c642e06d | [
"MIT"
] | null | null | null | #include "../includes.h"
#include "object.h"
#include "buffer.h"
#include "generator.h"
void ImStudio::Recreate(BaseObject obj, std::string* output, bool staticlayout)
{
std::string bfs;
if (obj.type == "button")
{
if (!staticlayout) {
bfs += fmt::format("\tImGui::SetCursorPos(ImVec2({},{}... | 41.620155 | 248 | 0.517787 | [
"object"
] |
eb35d1942d0e9fffce97dff440e5dd6998c34809 | 8,556 | cpp | C++ | engine/parser.cpp | CarlaCruz146/Solar-System | 8ecacbaaaf8f964f10ea66bb20777cab17362f65 | [
"MIT"
] | null | null | null | engine/parser.cpp | CarlaCruz146/Solar-System | 8ecacbaaaf8f964f10ea66bb20777cab17362f65 | [
"MIT"
] | null | null | null | engine/parser.cpp | CarlaCruz146/Solar-System | 8ecacbaaaf8f964f10ea66bb20777cab17362f65 | [
"MIT"
] | null | null | null | #include "headers/parser.h"
#include "headers/Point.h"
int readPointsFile(string filename, vector<Point*> *points, vector<Point*> *normalList, vector<float> *textureList){
string l, t; int index,j;
ifstream file(filename);
string token;
vector<float>tokens;
int i;
if (!file.is_open()) {
... | 27.248408 | 116 | 0.543245 | [
"shape",
"vector",
"model"
] |
eb36413844cbb3af3da465c6e830edc19f7162fc | 716 | cpp | C++ | Leetcode/0360. Sort Transformed Array/0360.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0360. Sort Transformed Array/0360.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | Leetcode/0360. Sort Transformed Array/0360.cpp | Next-Gen-UI/Code-Dynamics | a9b9d5e3f27e870b3e030c75a1060d88292de01c | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> sortTransformedArray(vector<int>& nums, int a, int b, int c) {
const int n = nums.size();
const bool upward = a > 0;
vector<int> ans(n);
vector<int> quad;
for (const int num : nums)
quad.push_back(f(num, a, b, c));
int i = upward ? n - 1 : 0;
f... | 25.571429 | 76 | 0.519553 | [
"vector"
] |
eb3b7411b7297d521b4e040308241fdc3d25830e | 7,591 | cpp | C++ | Source/ImGui/Private/ImGuiContextProxy.cpp | melchior-haven/UnrealImGui | 237d61b93a405852357bb8b4bbdeddbaa2ae4686 | [
"MIT"
] | 1 | 2022-01-14T00:45:39.000Z | 2022-01-14T00:45:39.000Z | Source/ImGui/Private/ImGuiContextProxy.cpp | melchior-haven/UnrealImGui | 237d61b93a405852357bb8b4bbdeddbaa2ae4686 | [
"MIT"
] | null | null | null | Source/ImGui/Private/ImGuiContextProxy.cpp | melchior-haven/UnrealImGui | 237d61b93a405852357bb8b4bbdeddbaa2ae4686 | [
"MIT"
] | null | null | null | // Distributed under the MIT License (MIT) (see accompanying LICENSE file)
#include "ImGuiContextProxy.h"
#include "ImGuiDelegatesContainer.h"
#include "ImGuiImplementation.h"
#include "ImGuiInteroperability.h"
#include "Utilities/Arrays.h"
#include "VersionCompatibility.h"
#include <GenericPlatform/GenericPlatformF... | 24.726384 | 127 | 0.747859 | [
"render"
] |
eb406ef931e223ea6c4301eb604d174bfc6af214 | 5,218 | hpp | C++ | include/JsonLexer.hpp | alevarn/json-parser | ffef66c6ade70b15ccea023db58d060ff62fae97 | [
"MIT"
] | 1 | 2020-07-06T20:36:48.000Z | 2020-07-06T20:36:48.000Z | include/JsonLexer.hpp | alevarn/json-parser | ffef66c6ade70b15ccea023db58d060ff62fae97 | [
"MIT"
] | 1 | 2020-09-03T14:03:35.000Z | 2020-09-04T14:33:08.000Z | include/JsonLexer.hpp | alevarn/json-parser | ffef66c6ade70b15ccea023db58d060ff62fae97 | [
"MIT"
] | null | null | null | /*
The MIT License (MIT)
Copyright (c) 2020 Marcus Alevärn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | 33.883117 | 128 | 0.555385 | [
"object"
] |
eb426d593611a896df893351f44b7f7e06eb781d | 8,708 | cpp | C++ | src/common/core/FramebufferCreator.cpp | congard/algine | 81b532b503877e283bd28d441d7e87dcb62aa99c | [
"MIT"
] | 12 | 2019-04-26T14:32:41.000Z | 2021-12-30T19:08:05.000Z | src/common/core/FramebufferCreator.cpp | congard/algine | 81b532b503877e283bd28d441d7e87dcb62aa99c | [
"MIT"
] | null | null | null | src/common/core/FramebufferCreator.cpp | congard/algine | 81b532b503877e283bd28d441d7e87dcb62aa99c | [
"MIT"
] | 4 | 2019-11-01T10:24:40.000Z | 2021-03-05T18:01:22.000Z | #include <algine/core/FramebufferCreator.h>
#include <algine/core/JsonHelper.h>
#include <algine/core/PtrMaker.h>
#include "FramebufferConfigTools.h"
#include "internal/PublicObjectTools.h"
using namespace std;
using namespace nlohmann;
using namespace algine::internal;
namespace algine {
namespace Config {
constan... | 31.781022 | 106 | 0.618282 | [
"object",
"vector"
] |
eb4ce3c21dfcfe4c52ca248e35e0b1aceb29850f | 9,187 | cpp | C++ | PyDK/DCCamera.cpp | hhg128/DKGL | c61bc6546ac5655da97462cc532a9034ba08516d | [
"PSF-2.0",
"BSD-3-Clause"
] | 14 | 2015-09-12T01:32:05.000Z | 2021-10-13T02:52:53.000Z | PyDK/DCCamera.cpp | hhg128/DKGL | c61bc6546ac5655da97462cc532a9034ba08516d | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | PyDK/DCCamera.cpp | hhg128/DKGL | c61bc6546ac5655da97462cc532a9034ba08516d | [
"PSF-2.0",
"BSD-3-Clause"
] | 3 | 2015-11-10T03:12:49.000Z | 2018-10-15T15:38:31.000Z | #include <Python.h>
#include <structmember.h>
#include <datetime.h>
#include <DK/DK.h>
#include "DCObject.h"
struct DCCamera
{
PyObject_HEAD
DKObject<DKCamera> camera;
};
static PyObject* DCCameraNew(PyTypeObject* type, PyObject* args, PyObject* kwds)
{
DCCamera* self = (DCCamera*)type->tp_alloc(type, 0);
if (sel... | 26.475504 | 92 | 0.686514 | [
"object"
] |
eb522ac6a8ea87e7f53a3fb2607c36c1da96acf0 | 1,551 | cc | C++ | project1/solutions/test_main/test_cpp_printer.cc | magic3007/AutoGrad | a04b2be5c778f6d12ca833b9bed82b5d6c80b888 | [
"MIT"
] | 3 | 2020-07-05T17:43:55.000Z | 2021-10-01T14:38:57.000Z | project1/solutions/test_main/test_cpp_printer.cc | magic3007/AutoGrad | a04b2be5c778f6d12ca833b9bed82b5d6c80b888 | [
"MIT"
] | null | null | null | project1/solutions/test_main/test_cpp_printer.cc | magic3007/AutoGrad | a04b2be5c778f6d12ca833b9bed82b5d6c80b888 | [
"MIT"
] | null | null | null | #include "../CPPPrinter.h"
#include "../parser.h"
using namespace Boost::Internal;
using std::pair;
using std::string;
using std::vector;
int main(int argc, char *argv[]) {
vector<pair<string, string> > texts = {
{"example", "A<32, 16>[i, j] = C<32, 16>[i, j] * B<32, 16>[i, j];"},
{"case1", "A<32,... | 36.928571 | 80 | 0.399097 | [
"vector"
] |
eb5b2d6c21eafd75c62d3160305a40b2f0b191ef | 2,935 | cpp | C++ | all/native/vectorelements/NMLModel.cpp | ShaneCoufreur/mobile-sdk | 0d99aa530d7b8a2b15064ed25d4b97c921fe6043 | [
"BSD-3-Clause"
] | 155 | 2016-10-20T08:39:13.000Z | 2022-02-27T14:08:32.000Z | all/native/vectorelements/NMLModel.cpp | ShaneCoufreur/mobile-sdk | 0d99aa530d7b8a2b15064ed25d4b97c921fe6043 | [
"BSD-3-Clause"
] | 448 | 2016-10-20T12:33:06.000Z | 2022-03-22T14:42:58.000Z | all/native/vectorelements/NMLModel.cpp | ShaneCoufreur/mobile-sdk | 0d99aa530d7b8a2b15064ed25d4b97c921fe6043 | [
"BSD-3-Clause"
] | 64 | 2016-12-05T16:04:31.000Z | 2022-02-07T09:36:22.000Z | #include "NMLModel.h"
#include "core/BinaryData.h"
#include "components/Exceptions.h"
#include "geometry/PointGeometry.h"
#include "renderers/drawdatas/NMLModelDrawData.h"
#include "styles/NMLModelStyle.h"
#include "styles/NMLModelStyleBuilder.h"
#include "utils/Const.h"
#include <nml/Package.h>
namespace carto {
... | 26.441441 | 118 | 0.586371 | [
"geometry"
] |
eb5b68c1072a89fc37edcec3be85d86bf2d82d50 | 40,102 | cpp | C++ | src/impl/readGffFileWithEverything.cpp | illarionovaanastasia/GEAN | b81bbf45dd869ffde2833fd1eb78463d09de45cb | [
"MIT"
] | 34 | 2019-01-17T22:47:17.000Z | 2021-12-20T08:36:44.000Z | src/impl/readGffFileWithEverything.cpp | illarionovaanastasia/GEAN | b81bbf45dd869ffde2833fd1eb78463d09de45cb | [
"MIT"
] | 7 | 2019-04-23T02:50:13.000Z | 2021-05-05T07:32:46.000Z | src/impl/readGffFileWithEverything.cpp | illarionovaanastasia/GEAN | b81bbf45dd869ffde2833fd1eb78463d09de45cb | [
"MIT"
] | 5 | 2019-03-14T23:05:46.000Z | 2020-08-17T09:14:17.000Z | //
// Created by Baoxing song on 08.08.18.
//
#include "readGffFileWithEverything.h"
void readGffFileWithEveryThing (const std::string& filePath, std::map<std::string, std::vector<std::string> > & geneNameMap,
std::map<std::string, Gene > & geneHashMap,
s... | 51.611326 | 240 | 0.518253 | [
"vector"
] |
eb63df147c9c6d915867b7b6d5c38ea280d90e41 | 22,130 | cpp | C++ | examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z |
//=============================================================================
/**
* @file Thread_Bounded_Packet_Relay.cpp
*
* $Id: Thread_Bounded_Packet_Relay.cpp 93639 2011-03-24 13:32:13Z johnnyw $
*
* Method definitions for the threaded-bounded packet relay class.
*
*
* @author Chris Gill ... | 29.118421 | 291 | 0.541211 | [
"object"
] |
eb677a0d2c14a7cf39237ec6793d8a3ab1bb6782 | 1,041 | cc | C++ | Code/1255-reverse-subarray-to-maximize-array-value.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/1255-reverse-subarray-to-maximize-array-value.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/1255-reverse-subarray-to-maximize-array-value.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class Solution {
public:
int maxValueAfterReverse(vector<int>& nums) {
int size = nums.size();
if (size == 1) {
return nums[0];
}
int smallestBigger = max(nums[0], nums[1]);
int biggestSmaller = min(nums[0], nums[1]);
int origin = smallestBigger - biggestS... | 41.64 | 99 | 0.516811 | [
"vector"
] |
eb68017bfc008ba64e5284225f6c8d63f9ae0b37 | 14,346 | cpp | C++ | test/saber/test_saber_conv_pooling_int8.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 533 | 2018-05-18T06:14:04.000Z | 2022-03-23T11:46:30.000Z | test/saber/test_saber_conv_pooling_int8.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 100 | 2018-05-26T08:32:48.000Z | 2022-03-17T03:26:25.000Z | test/saber/test_saber_conv_pooling_int8.cpp | baajur/Anakin | 5fd68a6cc4c4620cd1a30794c1bf06eebd3f4730 | [
"Apache-2.0"
] | 167 | 2018-05-18T06:14:35.000Z | 2022-02-14T01:44:20.000Z | #include "saber/core/context.h"
#include "saber/funcs/conv_pooling.h"
#include "saber/core/tensor_op.h"
#include "saber/saber_types.h"
#include "test_saber_func.h"
#include "conv_func_helper.h"
#include <vector>
using namespace anakin::saber;
template <typename dtype>
int count_diff(const dtype* src1, const dtype* sr... | 36.879177 | 116 | 0.576258 | [
"shape",
"vector"
] |
eb6c7453ef5e6fc6f403c8dcbf073145672a1ce3 | 13,356 | hpp | C++ | RobWork/src/rw/geometry/TriangleUtil.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/geometry/TriangleUtil.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/geometry/TriangleUtil.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 40.228916 | 124 | 0.454328 | [
"mesh",
"geometry",
"vector"
] |
eb6ef8212c12f7fdf8c5a868215a8e9136ef7bfb | 904 | cpp | C++ | auto_mutex.cpp | alecmus/leccore | 42d81fbf513e069396c372367161e341d66ba5f3 | [
"MIT"
] | null | null | null | auto_mutex.cpp | alecmus/leccore | 42d81fbf513e069396c372367161e341d66ba5f3 | [
"MIT"
] | 1 | 2021-07-08T20:43:24.000Z | 2021-07-08T20:49:48.000Z | auto_mutex.cpp | alecmus/leccore | 42d81fbf513e069396c372367161e341d66ba5f3 | [
"MIT"
] | 1 | 2021-05-13T20:02:10.000Z | 2021-05-13T20:02:10.000Z | //
// auto_mutex.cpp - auto mutex implementation
//
// leccore library, part of the liblec library
// Copyright (c) 2019 Alec Musasa (alecmus at live dot com)
//
// Released under the MIT license. For full details see the
// file LICENSE.txt
//
#include "leccore_common.h"
#include <mutex>
class mutex;
// Wrapper for... | 17.384615 | 75 | 0.646018 | [
"object"
] |
eb7568043c5d21699a3f5ee4a0782d943c6a1a3c | 1,967 | cc | C++ | garnet/lib/ui/gfx/util/tests/collection_utils_unittest.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | 1 | 2019-04-21T18:02:26.000Z | 2019-04-21T18:02:26.000Z | garnet/lib/ui/gfx/util/tests/collection_utils_unittest.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | 16 | 2020-09-04T19:01:11.000Z | 2021-05-28T03:23:09.000Z | garnet/lib/ui/gfx/util/tests/collection_utils_unittest.cc | ZVNexus/fuchsia | c5610ad15208208c98693618a79c705af935270c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia 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 "garnet/lib/ui/gfx/util/collection_utils.h"
#include <gtest/gtest.h>
namespace {
using namespace scenic_impl::gfx;
class WeakValue {
public:
... | 28.507246 | 79 | 0.696492 | [
"vector"
] |
eb78ddfd357813b18b5281c59bde45ffc18910f7 | 2,137 | hpp | C++ | rmf_traffic/src/rmf_traffic/agv/internal_Planner.hpp | MakinoharaShouko/rmf_core | 727048469f9ce14d6e76628dec96a84ca1ce99f9 | [
"Apache-2.0"
] | null | null | null | rmf_traffic/src/rmf_traffic/agv/internal_Planner.hpp | MakinoharaShouko/rmf_core | 727048469f9ce14d6e76628dec96a84ca1ce99f9 | [
"Apache-2.0"
] | null | null | null | rmf_traffic/src/rmf_traffic/agv/internal_Planner.hpp | MakinoharaShouko/rmf_core | 727048469f9ce14d6e76628dec96a84ca1ce99f9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2019 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... | 26.060976 | 80 | 0.680861 | [
"vector"
] |
eb853f78762b25bdf9827e7ff7fcabafcc1da144 | 5,847 | cpp | C++ | lib/util.cpp | soyfestivo/socialite | fe33627bb21dcedd49a42cd03958b284bdf9f413 | [
"MIT"
] | 1 | 2018-04-02T12:54:58.000Z | 2018-04-02T12:54:58.000Z | lib/util.cpp | soyfestivo/socialite | fe33627bb21dcedd49a42cd03958b284bdf9f413 | [
"MIT"
] | 2 | 2018-03-09T05:34:03.000Z | 2018-03-22T18:58:33.000Z | lib/util.cpp | soyfestivo/socialite | fe33627bb21dcedd49a42cd03958b284bdf9f413 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <ctime>
#include <fcntl.h>
#include <unistd.h>
#include <sys/wait.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <math.h>
#include <cmath>
#include <float.h>
#include <openssl/ss... | 26.577273 | 130 | 0.590217 | [
"shape",
"vector"
] |
eb85a44434877e6efdb34448c22db57ae31f4ee6 | 51,007 | cxx | C++ | Interaction/Widgets/Testing/Cxx/TestCellCentersPointPlacer.cxx | inviCRO/VTK | a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48 | [
"BSD-3-Clause"
] | 2 | 2017-12-08T07:50:51.000Z | 2018-07-22T19:12:56.000Z | Interaction/Widgets/Testing/Cxx/TestCellCentersPointPlacer.cxx | inviCRO/VTK | a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48 | [
"BSD-3-Clause"
] | 14 | 2015-04-25T17:54:13.000Z | 2017-01-13T15:30:39.000Z | Interaction/Widgets/Testing/Cxx/TestCellCentersPointPlacer.cxx | inviCRO/VTK | a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48 | [
"BSD-3-Clause"
] | 1 | 2015-03-13T17:21:31.000Z | 2015-03-13T17:21:31.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: TestGenericCell.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... | 34.936301 | 88 | 0.689768 | [
"render",
"vector",
"transform",
"3d"
] |
eb88eb09074599fcc5790b11fa2fde7c25a35e09 | 3,312 | hpp | C++ | modules/core/linalg/include/nt2/linalg/functions/lu.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/include/nt2/linalg/functions/lu.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/include/nt2/linalg/functions/lu.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2014 - Jean-Thierry Lapresté
// Copyright 2003 - 2013 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2013 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boos... | 35.612903 | 163 | 0.644324 | [
"vector"
] |
eb8d60d2eac6b87b110b8b2e71e677d4db34fca9 | 7,111 | cpp | C++ | src/graph/Node.cpp | ragedb/ragedb | 0470f4cb154ce551ddb920453f2ea8467dbc4857 | [
"Apache-2.0"
] | 58 | 2021-07-08T14:20:54.000Z | 2022-03-31T08:20:39.000Z | src/graph/Node.cpp | ragedb/ragedb | 0470f4cb154ce551ddb920453f2ea8467dbc4857 | [
"Apache-2.0"
] | 15 | 2021-07-29T14:37:57.000Z | 2022-03-31T04:22:36.000Z | src/graph/Node.cpp | ragedb/ragedb | 0470f4cb154ce551ddb920453f2ea8467dbc4857 | [
"Apache-2.0"
] | 2 | 2021-07-29T14:24:57.000Z | 2021-09-08T10:14:52.000Z | /*
* Copyright Amazon.com, Inc. or its affiliates. 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 ... | 34.023923 | 198 | 0.46421 | [
"vector"
] |
eb8e732409957c328d579cebe5fe5e30177e02c9 | 15,326 | hpp | C++ | deps/cinder/include/boost/geometry/algorithms/covered_by.hpp | multi-os-engine/cinder-natj-binding | 969b66fdd49e4ca63442baf61ce90ae385ab8178 | [
"Apache-2.0"
] | 1,210 | 2020-08-18T07:57:36.000Z | 2022-03-31T15:06:05.000Z | deps/cinder/include/boost/geometry/algorithms/covered_by.hpp | multi-os-engine/cinder-natj-binding | 969b66fdd49e4ca63442baf61ce90ae385ab8178 | [
"Apache-2.0"
] | 39 | 2019-07-06T02:51:39.000Z | 2022-02-18T11:48:33.000Z | deps/cinder/include/boost/geometry/algorithms/covered_by.hpp | multi-os-engine/cinder-natj-binding | 969b66fdd49e4ca63442baf61ce90ae385ab8178 | [
"Apache-2.0"
] | 275 | 2020-08-18T08:35:16.000Z | 2022-03-31T15:06:07.000Z | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// This file was modified by Oracle on 2013, 2014.
// Modifications copyright (c)... | 32.333333 | 114 | 0.713232 | [
"geometry"
] |
eb90592440fe8875cb2b1063d7e76ae84cf1d3ed | 879 | cxx | C++ | src/sdp_solve/SDP/SDP/read_blocks/read_block_stream/Block_Parser/StartArray.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 45 | 2015-02-10T15:45:22.000Z | 2022-02-24T07:45:01.000Z | src/sdp_solve/SDP/SDP/read_blocks/read_block_stream/Block_Parser/StartArray.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 58 | 2015-02-27T10:03:18.000Z | 2021-08-10T04:21:42.000Z | src/sdp_solve/SDP/SDP/read_blocks/read_block_stream/Block_Parser/StartArray.cxx | ChrisPattison/sdpb | 4668f72c935e7feba705dd8247d9aacb23185f1c | [
"MIT"
] | 38 | 2015-02-10T11:11:27.000Z | 2022-02-11T20:59:42.000Z | #include "../Block_Parser.hxx"
bool Block_Parser::StartArray()
{
if(inside)
{
if(parsing_c)
{
c_state.json_start_array();
}
else if(parsing_B)
{
B_state.json_start_array();
}
else if(parsing_bilinear_bases_even)
{
bilinear_ba... | 23.756757 | 77 | 0.550626 | [
"object"
] |
eb90f95b70b22402b2003187e2afcfd91c40c4b0 | 7,664 | cpp | C++ | Formats/simplehtml.cpp | viva64/plog-converter | 90f22163420b7e8f1c374465e3890ce8344e6ff9 | [
"Apache-2.0"
] | 11 | 2019-08-06T10:13:56.000Z | 2022-02-21T17:19:18.000Z | Formats/simplehtml.cpp | viva64/plog-converter | 90f22163420b7e8f1c374465e3890ce8344e6ff9 | [
"Apache-2.0"
] | 2 | 2021-09-11T14:28:39.000Z | 2021-12-10T12:49:59.000Z | Formats/simplehtml.cpp | viva64/plog-converter | 90f22163420b7e8f1c374465e3890ce8344e6ff9 | [
"Apache-2.0"
] | 3 | 2020-04-20T07:18:54.000Z | 2022-02-16T06:37:35.000Z | // 2006-2008 (c) Viva64.com Team
// 2008-2020 (c) OOO "Program Verification Systems"
// 2020-2021 (c) PVS-Studio LLC
#include <algorithm>
#include "simplehtml.h"
namespace PlogConverter
{
using namespace std;
SimpleHTMLOutput::SimpleHTMLOutput(const ProgramOptions &opt) : IOutput(opt, "html")
{
}
SimpleHTMLOut... | 29.251908 | 144 | 0.585073 | [
"vector"
] |
eb94010a93a6e73870c4bcbd7153c95271f3cdae | 2,842 | cpp | C++ | Utils/tetovm2vtk/tetovm2vtk.cpp | msraig/CE-PolyCube | e46aff6e0594b711735118bfa902a91bc3d392ca | [
"MIT"
] | 19 | 2020-08-13T05:15:09.000Z | 2022-03-31T14:51:29.000Z | Utils/tetovm2vtk/tetovm2vtk.cpp | xh-liu-tech/CE-PolyCube | 86d4ed0023215307116b6b3245e2dbd82907cbb8 | [
"MIT"
] | 2 | 2020-09-08T07:03:04.000Z | 2021-08-04T05:43:27.000Z | Utils/tetovm2vtk/tetovm2vtk.cpp | xh-liu-tech/CE-PolyCube | 86d4ed0023215307116b6b3245e2dbd82907cbb8 | [
"MIT"
] | 10 | 2020-08-06T02:37:46.000Z | 2021-07-01T09:12:06.000Z | #include <iostream>
#include <fstream>
#include <string>
// Include the file manager header
#include <OpenVolumeMesh/FileManager/FileManager.hh>
// Include the polyhedral mesh header
#include <OpenVolumeMesh/Mesh/PolyhedralMesh.hh>
//do not consider cell order, might need to be changed
int main(int argc, char** argv)... | 26.811321 | 103 | 0.638635 | [
"mesh",
"geometry",
"object",
"vector"
] |
eb946ed5ea5cd194781c2f50d23dfddefcfe63b5 | 3,908 | cc | C++ | shill/technology.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | 5 | 2019-01-19T15:38:48.000Z | 2021-10-06T03:59:46.000Z | shill/technology.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | null | null | null | shill/technology.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | 1 | 2019-02-15T23:05:30.000Z | 2019-02-15T23:05:30.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 "shill/technology.h"
#include <set>
#include <string>
#include <vector>
#include <base/stl_util.h>
#include <base/strings/string_split.h>
#i... | 26.228188 | 79 | 0.667605 | [
"vector"
] |
eb98dd12bbe0f170fb683288a7fc8fd2772f81ac | 10,184 | cpp | C++ | isis/src/base/objs/ProcessByBrick/unitTest.cpp | gknorman/ISIS3 | 4800a8047626a864e163cc74055ba60008c105f7 | [
"CC0-1.0"
] | 1 | 2022-02-17T01:07:03.000Z | 2022-02-17T01:07:03.000Z | isis/src/base/objs/ProcessByBrick/unitTest.cpp | gknorman/ISIS3 | 4800a8047626a864e163cc74055ba60008c105f7 | [
"CC0-1.0"
] | null | null | null | isis/src/base/objs/ProcessByBrick/unitTest.cpp | gknorman/ISIS3 | 4800a8047626a864e163cc74055ba60008c105f7 | [
"CC0-1.0"
] | null | null | null | /** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... | 24.778589 | 91 | 0.576296 | [
"vector"
] |
eb9a6e7c63ad40aa6786d51438be94eec4498509 | 16,056 | hpp | C++ | src/external/xgboost/src/tree/updater_basemaker-inl.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 11,356 | 2017-12-08T19:42:32.000Z | 2022-03-31T16:55:25.000Z | src/external/xgboost/src/tree/updater_basemaker-inl.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 2,402 | 2017-12-08T22:31:01.000Z | 2022-03-28T19:25:52.000Z | src/external/xgboost/src/tree/updater_basemaker-inl.hpp | Bpowers4/turicreate | 73dad213cc1c4f74337b905baea2b3a1e5a0266c | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | /*!
* Copyright 2014 by Contributors
* \file updater_basemaker-inl.hpp
* \brief implement a common tree constructor
* \author Tianqi Chen
*/
#ifndef XGBOOST_TREE_UPDATER_BASEMAKER_INL_HPP_
#define XGBOOST_TREE_UPDATER_BASEMAKER_INL_HPP_
#include <vector>
#include <algorithm>
#include <string>
#include <limits>
#in... | 36.574032 | 97 | 0.584392 | [
"vector"
] |
ebb1f08218f9713a405eef8c1bae88fef736866d | 5,278 | cpp | C++ | examples/C++/Keys/keys.cpp | ruffsl/Fast-RTPS | ae7cf4e961801956e59cba37a5c17cdc2258ec6c | [
"Apache-2.0"
] | 1 | 2018-03-20T21:31:38.000Z | 2018-03-20T21:31:38.000Z | examples/C++/Keys/keys.cpp | ruffsl/Fast-RTPS | ae7cf4e961801956e59cba37a5c17cdc2258ec6c | [
"Apache-2.0"
] | null | null | null | examples/C++/Keys/keys.cpp | ruffsl/Fast-RTPS | ae7cf4e961801956e59cba37a5c17cdc2258ec6c | [
"Apache-2.0"
] | 1 | 2018-09-19T10:12:29.000Z | 2018-09-19T10:12:29.000Z | #include <iostream>
#include <string>
#include <fastrtps/participant/Participant.h>
#include <fastrtps/attributes/ParticipantAttributes.h>
#include <fastrtps/subscriber/Subscriber.h>
#include <fastrtps/attributes/SubscriberAttributes.h>
#include <fastrtps/publisher/Publisher.h>
#include <fastrtps/attributes/PublisherA... | 33.405063 | 103 | 0.692687 | [
"vector"
] |
ebb2f2a6f826dc0934b874f0ee4cfca8ae26d800 | 4,120 | cpp | C++ | tools/Vitis-AI-Library/overview/samples/facelandmark/test_accuracy_facelandmark_mt.cpp | Carles-Figuerola/Vitis-AI | fc043ea4aca1f9fe4e18962e6a6ae397812bb34b | [
"Apache-2.0"
] | 1 | 2020-12-18T14:49:19.000Z | 2020-12-18T14:49:19.000Z | tools/Vitis-AI-Library/overview/samples/facelandmark/test_accuracy_facelandmark_mt.cpp | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | null | null | null | tools/Vitis-AI-Library/overview/samples/facelandmark/test_accuracy_facelandmark_mt.cpp | guochunhe/Vitis-AI | e86b6efae11f8703ee647e4a99004dc980b84989 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Xilinx 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 ... | 30.518519 | 105 | 0.651214 | [
"vector",
"model"
] |
ebb97b0418808df675e5485562a54b0f44feaa25 | 3,976 | cpp | C++ | aws-cpp-sdk-gamelift/source/model/CreateGameServerGroupRequest.cpp | orinem/aws-sdk-cpp | f38413cc1f278689ef14e9ebdd74a489a48776be | [
"Apache-2.0"
] | 1 | 2020-07-16T19:02:58.000Z | 2020-07-16T19:02:58.000Z | aws-cpp-sdk-gamelift/source/model/CreateGameServerGroupRequest.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-gamelift/source/model/CreateGameServerGroupRequest.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 28.198582 | 154 | 0.76836 | [
"model"
] |
ebba78ff9b6617b9e34baa59bf5956f112473590 | 3,215 | cpp | C++ | Projects/Lesson19/Classes3/Source.cpp | aaviants/armath-edu2021 | c0df17d59bbddda7448028838e02db67b065ad4d | [
"MIT"
] | null | null | null | Projects/Lesson19/Classes3/Source.cpp | aaviants/armath-edu2021 | c0df17d59bbddda7448028838e02db67b065ad4d | [
"MIT"
] | null | null | null | Projects/Lesson19/Classes3/Source.cpp | aaviants/armath-edu2021 | c0df17d59bbddda7448028838e02db67b065ad4d | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
struct vector
{
int x;
int y;
vector()
{
x = 0;
y = 0;
}
vector(int value1, int value2)
{
x = value1;
y = value2;
}
vector operator + (vector second)
{
vector v;
v.x = x + second.x;
v.y = y + second.y;
return v;
}
vector operator - (vector second)... | 13.978261 | 76 | 0.599689 | [
"vector"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.