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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8717decc4b9d6928da383486391806380c4903a0 | 38,985 | cpp | C++ | cocos2d/cocos/editor-support/cocostudio/FlatBuffersSerialize.cpp | triompha/EarthWarrior3D | d68a347902fa1ca1282df198860f5fb95f326797 | [
"MIT"
] | null | null | null | cocos2d/cocos/editor-support/cocostudio/FlatBuffersSerialize.cpp | triompha/EarthWarrior3D | d68a347902fa1ca1282df198860f5fb95f326797 | [
"MIT"
] | null | null | null | cocos2d/cocos/editor-support/cocostudio/FlatBuffersSerialize.cpp | triompha/EarthWarrior3D | d68a347902fa1ca1282df198860f5fb95f326797 | [
"MIT"
] | null | null | null | /****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
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 Softwa... | 32.272351 | 128 | 0.511787 | [
"vector"
] |
26bd30c529898af4eae1e07bcf1b9a8b24f090df | 517 | cpp | C++ | leetcode/837. New 21 Game/s3.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/837. New 21 Game/s3.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/837. New 21 Game/s3.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/new-21-game/
// Author: github.com/lzl124631x
// Time: O(K + W)
// Space: O(K + W)
class Solution {
public:
double new21Game(int N, int K, int W) {
if (!K || N >= K + W - 1) return 1;
vector<double> dp(K + W);
for (int i = K; i < K + W && i <= N; ++i) dp[... | 28.722222 | 60 | 0.431335 | [
"vector"
] |
26bf6e6505b69c9dfe14bb2690d8e58345fbd236 | 34,914 | cpp | C++ | libstorage/CachedStorage.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | libstorage/CachedStorage.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | libstorage/CachedStorage.cpp | imtypist/FISCO-BCOS | 30a281d31e83ca666ef203193963a6d32e39e36a | [
"Apache-2.0"
] | null | null | null | /*
* @CopyRight:
* FISCO-BCOS is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FISCO-BCOS is distributed in the hope that it ... | 35.338057 | 100 | 0.458928 | [
"object",
"vector"
] |
26c45d1ae5f25c6b01eb15475994498e87eb1dc5 | 1,017 | hpp | C++ | sln/Tools/MixedFEM.hpp | frfly/CATSPDEs | 41bcc7cf4fe5636572603199e807fa6c7c25dd93 | [
"MIT"
] | 3 | 2019-09-09T13:30:40.000Z | 2021-04-24T19:37:44.000Z | sln/Tools/MixedFEM.hpp | frfly/CATSPDEs | 41bcc7cf4fe5636572603199e807fa6c7c25dd93 | [
"MIT"
] | 1 | 2016-04-10T09:07:58.000Z | 2016-04-10T09:07:58.000Z | sln/Tools/MixedFEM.hpp | frfly/Solving-elliptic-equation-using-FEM | 41bcc7cf4fe5636572603199e807fa6c7c25dd93 | [
"MIT"
] | 6 | 2016-12-08T15:45:37.000Z | 2022-03-26T21:44:50.000Z | #pragma once
// tools
#include <boost/tuple/tuple.hpp>
#pragma once
// mesh
#include "Triangulation.hpp"
// PDE
#include "OseenProblem.hpp"
#include "BoundaryCondition.hpp"
// FEs
#include "AbstractFiniteElement.hpp"
// for global system matrix
#include "CSlCMatrix.hpp"
#include "CSCMatrix.hpp"
namespace FEM {
names... | 27.486486 | 94 | 0.718781 | [
"mesh",
"vector"
] |
26c8c6742bba67bcb6ec4dc26e6c91faeeaf4648 | 2,405 | cpp | C++ | base/resource/ResourceGroup.cpp | dispyfree/xhstt | 12059c96dbdecddf9495d16bdd81b905f9986960 | [
"MIT"
] | null | null | null | base/resource/ResourceGroup.cpp | dispyfree/xhstt | 12059c96dbdecddf9495d16bdd81b905f9986960 | [
"MIT"
] | null | null | null | base/resource/ResourceGroup.cpp | dispyfree/xhstt | 12059c96dbdecddf9495d16bdd81b905f9986960 | [
"MIT"
] | null | null | null | /*
* File: ResourceGroup.cpp
*
*/
#include "ResourceGroup.h"
#include "ResourceType.h"
#include "ObjectCreation.h"
#include "Instance.h"
#include "Resource.h"
using namespace khe;
ResourceGroup::ResourceGroup(ResourceType t, const std::string &id, const std::string &name, bool isPartition){
if(!KheResource... | 22.688679 | 111 | 0.728898 | [
"object"
] |
26d4ccebe818fd25654b04f20f1a6c4f3b30efc2 | 3,995 | cc | C++ | mindspore/ccsrc/plugin/device/cpu/kernel/dynamic_stitch_cpu_kernel.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | 1 | 2022-03-05T02:59:21.000Z | 2022-03-05T02:59:21.000Z | mindspore/ccsrc/plugin/device/cpu/kernel/dynamic_stitch_cpu_kernel.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/plugin/device/cpu/kernel/dynamic_stitch_cpu_kernel.cc | zhz44/mindspore | 6044d34074c8505dd4b02c0a05419cbc32a43f86 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2021-2022 Huawei Technologies 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 applicabl... | 40.765306 | 108 | 0.691865 | [
"shape",
"vector"
] |
26d60334c4236cf45f34215fc6cc7dd0141196b2 | 49,843 | cc | C++ | chrome/browser/ui/webui/signin/profile_picker_handler.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/webui/signin/profile_picker_handler.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/webui/signin/profile_picker_handler.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/signin/profile_picker_handler.h"
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/check.h"
#inc... | 39.620827 | 82 | 0.725317 | [
"vector"
] |
26dfb74ca5ccfb23092857de41b85263a8cecd68 | 46,197 | cpp | C++ | libsplit/src/Scheduler/Scheduler.cpp | phuchant/libsplitcl | 4688bd9ab8c3b60c7848eab73519e44cb083cbbc | [
"MIT"
] | null | null | null | libsplit/src/Scheduler/Scheduler.cpp | phuchant/libsplitcl | 4688bd9ab8c3b60c7848eab73519e44cb083cbbc | [
"MIT"
] | null | null | null | libsplit/src/Scheduler/Scheduler.cpp | phuchant/libsplitcl | 4688bd9ab8c3b60c7848eab73519e44cb083cbbc | [
"MIT"
] | null | null | null | #include <Globals.h>
#include <Handle/KernelHandle.h>
#include <Options.h>
#include <Scheduler/Scheduler.h>
#include <Utils/Debug.h>
#include <Utils/Timeline.h>
#include <cassert>
#include <cmath>
#include <cstring>
namespace libsplit {
void
Scheduler::SubKernelSchedInfo::updateTimers() {
for (unsigned d=0;... | 33.307138 | 92 | 0.663008 | [
"vector"
] |
26eab5c88eb5e2624ff01a1f08a4dc522f885214 | 790 | cpp | C++ | convert-sorted-array-to-binary-search-tree/convert-sorted-array-to-binary-search-tree.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | 2 | 2021-08-29T12:51:09.000Z | 2021-10-18T23:24:41.000Z | convert-sorted-array-to-binary-search-tree/convert-sorted-array-to-binary-search-tree.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | null | null | null | convert-sorted-array-to-binary-search-tree/convert-sorted-array-to-binary-search-tree.cpp | itzpankajpanwar/Leetcode | bf933bc8a16f4b9d7a0e8b82f01684e60b544bed | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *left, TreeNode *right) : val(x), l... | 27.241379 | 93 | 0.551899 | [
"vector"
] |
26eb2b297e1920a1be16c88060d04c860364ec61 | 1,149 | cpp | C++ | libs/source/Clock.cpp | chriskarlsson/1dv534 | 0980613941079b22dedc64326ea455575d42147b | [
"MIT"
] | null | null | null | libs/source/Clock.cpp | chriskarlsson/1dv534 | 0980613941079b22dedc64326ea455575d42147b | [
"MIT"
] | null | null | null | libs/source/Clock.cpp | chriskarlsson/1dv534 | 0980613941079b22dedc64326ea455575d42147b | [
"MIT"
] | 1 | 2022-01-07T21:33:14.000Z | 2022-01-07T21:33:14.000Z | /**********************************************************************/
// File: Clock.cpp
// Summary: This class represents a clock, that can be used to
// read the correct time. The clock gets its time from
// your computer's system clock, and returns it in the
// form of a MyTime-object.
// Version: Ve... | 31.054054 | 79 | 0.543081 | [
"object"
] |
26fd4a5ab7d7fcd6c11377367f0e353c9d0d2837 | 15,244 | cpp | C++ | src/core/pybing.cpp | yangfly/mtcnn | bff22f5f417424aa45339510eb1b27f31c3eefe0 | [
"MIT"
] | 5 | 2018-06-07T02:46:18.000Z | 2020-02-18T19:48:40.000Z | src/core/pybing.cpp | qaz734913414/mtcnn-3 | bff22f5f417424aa45339510eb1b27f31c3eefe0 | [
"MIT"
] | null | null | null | src/core/pybing.cpp | qaz734913414/mtcnn-3 | bff22f5f417424aa45339510eb1b27f31c3eefe0 | [
"MIT"
] | 1 | 2019-05-26T13:10:04.000Z | 2019-05-26T13:10:04.000Z | #include <Python.h>
#include <sstream>
// Produce deprecation warnings (needs to come before arrayobject.h inclusion).
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <boost/python.hpp>
#include <numpy/ndarrayobject.h>
#include "mtcnn.h"
#if CV_VERSION_MAJOR == 3
namespace py = boost::python;
//========... | 30.067061 | 106 | 0.584033 | [
"shape",
"vector"
] |
26fee802536af9079d505d5a8b770f6c01db246b | 972 | cpp | C++ | uva.onlinejudge.org/AllinAll.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 6 | 2016-09-10T03:16:34.000Z | 2020-04-07T14:45:32.000Z | uva.onlinejudge.org/AllinAll.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | null | null | null | uva.onlinejudge.org/AllinAll.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 2 | 2018-08-11T20:55:35.000Z | 2020-01-15T23:23:11.000Z | /*
By: facug91
From: http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1281
Name: All in All
Date: 06/04/2015
*/
#include <bits/stdc++.h>
#define EPS 1e-9
#define DEBUG(x) cerr << "#" << (#x) << ": " << (x) << endl
const double PI =... | 23.142857 | 114 | 0.5607 | [
"vector"
] |
f800c2bf9e66b9c87f8f530bc808496f18e4a93b | 8,186 | cpp | C++ | steerlib/src/CommandLineParser.cpp | x-y-z/SteerSuite-CUDA | 7b76c4e2cd2ddf216f4befa80ea9c91c71678719 | [
"BSD-3-Clause"
] | 1 | 2019-08-29T09:30:27.000Z | 2019-08-29T09:30:27.000Z | steerlib/src/CommandLineParser.cpp | x-y-z/SteerSuite-CUDA | 7b76c4e2cd2ddf216f4befa80ea9c91c71678719 | [
"BSD-3-Clause"
] | null | null | null | steerlib/src/CommandLineParser.cpp | x-y-z/SteerSuite-CUDA | 7b76c4e2cd2ddf216f4befa80ea9c91c71678719 | [
"BSD-3-Clause"
] | null | null | null | //
// Copyright (c) 2009-2010 Shawn Singh, Mubbasir Kapadia, Petros Faloutsos, Glenn Reinman
// See license.txt for complete license.
//
/// @file CommandLineParser.cpp
/// @brief Implements the Util::CommandLineParser class
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "util/CommandLineParser.... | 40.127451 | 136 | 0.667115 | [
"vector"
] |
f80799329a9da38e33c7e7ae450607dbbacb86e9 | 798 | cpp | C++ | source/tvision/scheckbo.cpp | gpaulsen/tvision | 638f963fe4f6c84854f60f1e9c5772bf6603e4b2 | [
"MIT"
] | 1,202 | 2020-05-10T18:43:45.000Z | 2022-03-31T18:23:27.000Z | source/tvision/scheckbo.cpp | skywind3000/tvision | 7ab5f195c572de0d496e92f4e3f7b3b0771ac699 | [
"MIT"
] | 54 | 2020-05-10T17:36:55.000Z | 2022-03-15T12:22:07.000Z | source/tvision/scheckbo.cpp | skywind3000/tvision | 7ab5f195c572de0d496e92f4e3f7b3b0771ac699 | [
"MIT"
] | 90 | 2020-06-28T13:51:47.000Z | 2022-03-26T21:00:17.000Z | /*------------------------------------------------------------*/
/* filename - scheckbo.cpp */
/* */
/* Registeration object for the class TCheckBoxes */
/*------------------------------------------------------... | 29.555556 | 65 | 0.39599 | [
"object"
] |
f80a9fdd05ed468c018e2b0950a12d0926f5a415 | 4,333 | cpp | C++ | caffe/src/caffe/test/test_st_layer_hard.cpp | shaoxiaohu/Face-Alignment-with-Two-Stage-Re-initialization- | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 92 | 2017-07-19T05:12:05.000Z | 2021-11-09T07:59:07.000Z | caffe/src/caffe/test/test_st_layer_hard.cpp | mornydew/Face_Alignment_Two_Stage_Re-initialization | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 11 | 2017-10-18T05:11:20.000Z | 2020-04-03T21:28:20.000Z | caffe/src/caffe/test/test_st_layer_hard.cpp | mornydew/Face_Alignment_Two_Stage_Re-initialization | ccd26fee4dd0b6cd0d11de4d5b4d2d746e8cc66b | [
"MIT"
] | 31 | 2017-07-20T11:37:39.000Z | 2021-03-08T09:01:26.000Z | // #include <cstring>
// #include <vector>
// #include "gtest/gtest.h"
// #include "caffe/blob.hpp"
// #include "caffe/common.hpp"
// #include "caffe/layers/st_layer.hpp"
// #include "caffe/filler.hpp"
// // #include "caffe/vision_layers.hpp"
// #include "caffe/layers/concat_layer.hpp"
// #include "caffe/layers/fla... | 31.398551 | 103 | 0.684283 | [
"vector"
] |
f80d08201c903b9e454960ee46dbd7d6144b56c5 | 4,537 | hpp | C++ | iceoryx_posh/include/iceoryx_posh/version/version_info.hpp | bishibashiB/iceoryx | a626ed05504b098da9bbc063f652f2ab463e9250 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/include/iceoryx_posh/version/version_info.hpp | bishibashiB/iceoryx | a626ed05504b098da9bbc063f652f2ab463e9250 | [
"Apache-2.0"
] | null | null | null | iceoryx_posh/include/iceoryx_posh/version/version_info.hpp | bishibashiB/iceoryx | a626ed05504b098da9bbc063f652f2ab463e9250 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 44.480392 | 114 | 0.743002 | [
"object"
] |
f80e800165f13e27691de1ba6f5dcc41f50caf94 | 796 | cpp | C++ | .LHP/.Lop11/.HSG/.T.Van/QG01/GEMS/GEMS/GEMS.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/.T.Van/QG01/GEMS/GEMS/GEMS.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | .LHP/.Lop11/.HSG/.T.Van/QG01/GEMS/GEMS/GEMS.cpp | sxweetlollipop2912/MaCode | 661d77a2096e4d772fda2b6a7f80c84113b2cde9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#define maxN 100001
#define maxAlp 27
#define num(x) ((x) - 'a')
typedef long maxn;
typedef int maxk, maxa;
typedef long long maxr;
typedef std::string str;
maxn n;
str s;
maxr cnt[maxAlp], res;
std::vector <maxa> ad[maxAlp];
void Prepare... | 15.307692 | 50 | 0.572864 | [
"vector"
] |
f80f103904873cc38b314e121c51d239955fcede | 3,909 | cpp | C++ | tc 160+/StringInterspersal.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/StringInterspersal.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/StringInterspersal.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
bool sw(const string &a, const string &b) {
if (a.size() < b.size()) {
return false;
}
for (int i=0; i<(int)b.... | 47.670732 | 365 | 0.568176 | [
"vector"
] |
f8128b354e334e8a03219f982020f3a04304821e | 1,853 | cpp | C++ | src/test/ossim-tiff-info-test.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/test/ossim-tiff-info-test.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | null | null | null | src/test/ossim-tiff-info-test.cpp | rkanavath/ossim18 | d2e8204d11559a6a868755a490f2ec155407fa96 | [
"MIT"
] | 1 | 2019-09-25T00:43:35.000Z | 2019-09-25T00:43:35.000Z | //----------------------------------------------------------------------------
//
// License: MIT
//
// See LICENSE.txt file in the top level directory for more details.
//
// Author: David Burken
//
// Description: Test app for ossimTiffInfo class.
//
//--------------------------------------------------------------... | 22.059524 | 78 | 0.528872 | [
"geometry"
] |
f824527c0e9cfd649925be3733e591188f3d8e3a | 16,133 | cpp | C++ | mnemonic.cpp | avislash/cpp-algorand-sdk | e7219a2cdfe25fb2e7f25649a17c677057ac3fbe | [
"MIT"
] | 6 | 2021-07-06T08:34:48.000Z | 2022-01-10T06:44:19.000Z | mnemonic.cpp | avislash/cpp-algorand-sdk | e7219a2cdfe25fb2e7f25649a17c677057ac3fbe | [
"MIT"
] | 7 | 2021-04-17T19:32:05.000Z | 2021-12-03T18:20:28.000Z | mnemonic.cpp | avislash/cpp-algorand-sdk | e7219a2cdfe25fb2e7f25649a17c677057ac3fbe | [
"MIT"
] | 5 | 2021-01-29T08:23:27.000Z | 2021-04-27T08:26:09.000Z | #include "mnemonic.h"
#include <iostream>
#include <string>
#include <map>
#include <sstream>
#include <stdexcept>
#include <cassert>
#include <openssl/evp.h>
#include "base.h"
extern std::map<std::string, int> word_map;
extern std::vector<std::string> word_vec;
std::map<std::string, int> make_word_map(std::string... | 7.43799 | 89 | 0.808343 | [
"mesh",
"render",
"object",
"vector",
"model",
"solid"
] |
f82812a860fd3df60a439b17056a4bf155399bca | 16,313 | cc | C++ | cc/minigui_player.cc | efortuna/minigo | 3104c098f1217796fe1469ac5dc9ed59c3d980c0 | [
"Apache-2.0"
] | 1 | 2020-02-28T13:08:16.000Z | 2020-02-28T13:08:16.000Z | cc/minigui_player.cc | efortuna/minigo | 3104c098f1217796fe1469ac5dc9ed59c3d980c0 | [
"Apache-2.0"
] | null | null | null | cc/minigui_player.cc | efortuna/minigo | 3104c098f1217796fe1469ac5dc9ed59c3d980c0 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 29.66 | 80 | 0.643291 | [
"vector"
] |
f8286408d90e98dec13d194cbc27ed6b7a1ea120 | 32,410 | cpp | C++ | map/world.cpp | Andrettin/Metternich | 513a7d3cddacad5d5efd2fa5faeed03bc55a190c | [
"MIT"
] | 12 | 2019-08-03T05:58:12.000Z | 2022-01-20T20:46:41.000Z | map/world.cpp | Andrettin/Metternich | 513a7d3cddacad5d5efd2fa5faeed03bc55a190c | [
"MIT"
] | 6 | 2019-08-03T11:46:49.000Z | 2022-01-22T10:20:32.000Z | map/world.cpp | Andrettin/Metternich | 513a7d3cddacad5d5efd2fa5faeed03bc55a190c | [
"MIT"
] | null | null | null | #include "map/world.h"
#include "database/gsml_data.h"
#include "economy/trade_node.h"
#include "economy/trade_route.h"
#include "game/engine_interface.h"
#include "holding/holding.h"
#include "holding/holding_slot.h"
#include "landed_title/landed_title.h"
#include "map/map.h"
#include "map/pathfinder.h"
#include "map... | 32.870183 | 354 | 0.728294 | [
"vector"
] |
f82da91d6265a37275baad2846ecd46b2b77610f | 11,886 | cc | C++ | src/base/b3FFT.cc | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/base/b3FFT.cc | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | null | null | null | src/base/b3FFT.cc | stmork/blz3 | 275e24681cb1493319cd0a50e691feb86182f6f0 | [
"BSD-3-Clause"
] | 1 | 2022-01-07T15:58:38.000Z | 2022-01-07T15:58:38.000Z | /*
**
** $Filename: b3FFT.cc $
** $Release: Dortmund 2006, 2016 $
** $Revision$
** $Date$
** $Author$
** $Developer: Steffen A. Mork $
**
** Blizzard III - Fourier transform
**
** (C) Copyright 2006 Steffen A. Mork
** All Rights Reserved
**
**
*/
/******************************************************************... | 22.134078 | 88 | 0.534158 | [
"transform"
] |
f835a39a07e83e5a0de92a657792b2327d2e4a44 | 81,889 | cpp | C++ | trafficGen.cpp | konstantinmiller/tcp_traffic_gen | 88b4612352e27351cbec5a35c8aed9a5edeb658c | [
"MIT"
] | 2 | 2017-07-18T08:19:11.000Z | 2019-08-21T18:15:19.000Z | trafficGen.cpp | konstantinmiller/tcp_traffic_gen | 88b4612352e27351cbec5a35c8aed9a5edeb658c | [
"MIT"
] | null | null | null | trafficGen.cpp | konstantinmiller/tcp_traffic_gen | 88b4612352e27351cbec5a35c8aed9a5edeb658c | [
"MIT"
] | 1 | 2019-08-21T18:15:25.000Z | 2019-08-21T18:15:25.000Z | /****************************************************************************
* trafficGen.cpp *
****************************************************************************
* Copyright (C) 2013 Technische Universitaet Berlin *
* ... | 39.031935 | 286 | 0.615077 | [
"vector"
] |
f836f2c80c92452a31bccac3cb861306222b6609 | 2,348 | cpp | C++ | src/utils/io.cpp | momo5502/t7x | 2864e73de494827ec32df1cb709d9bfd99b6314d | [
"MIT"
] | 13 | 2020-03-29T13:07:25.000Z | 2022-01-29T03:09:25.000Z | src/utils/io.cpp | momo5502/w3x | a684c0378e1b64b29e1e9709c9be4b947d511775 | [
"MIT"
] | 10 | 2021-12-10T05:20:53.000Z | 2022-03-28T05:22:52.000Z | src/utils/io.cpp | momo5502/w3x | a684c0378e1b64b29e1e9709c9be4b947d511775 | [
"MIT"
] | 1 | 2020-05-10T17:11:06.000Z | 2020-05-10T17:11:06.000Z | #include <std_include.hpp>
#include "io.hpp"
namespace utils::io
{
bool file_exists(const std::string& file)
{
return std::ifstream(file).good();
}
bool write_file(const std::string& file, const std::string& data, const bool append)
{
const auto pos = file.find_last_of("/\\");
if (pos != std::string::npos)... | 20.778761 | 131 | 0.659284 | [
"vector"
] |
f8381e9254f1b7bb94cc155cfdd371451a6932a5 | 493 | cpp | C++ | abc178/c.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | abc178/c.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | abc178/c.cpp | magurotuna/atcoder-submissions-cpp | afbf5df2f22bcd17d8ad580d3c143602d9af7398 | [
"CC0-1.0"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
using ll = long long int;
ll modpow(ll a, ll n, ll mod) {
ll res = 1;
while (n > 0) {
if (n % 2 != 0)
res = res * a % mod;
a = a * a % mod;
n /= 2;
}
return res;
}
const ll mod = 1e9 + 7;
int ... | 16.433333 | 76 | 0.515213 | [
"vector"
] |
f839ad2e35d11fce68027ebda8297a99e1e60bab | 7,119 | cc | C++ | LiquidCore/src/main/cpp/jni_process.cc | vivocha/LiquidCore | 8fdc3abc4a7a4601ae9049f163b6b9debd2eb9a4 | [
"MIT"
] | null | null | null | LiquidCore/src/main/cpp/jni_process.cc | vivocha/LiquidCore | 8fdc3abc4a7a4601ae9049f163b6b9debd2eb9a4 | [
"MIT"
] | null | null | null | LiquidCore/src/main/cpp/jni_process.cc | vivocha/LiquidCore | 8fdc3abc4a7a4601ae9049f163b6b9debd2eb9a4 | [
"MIT"
] | 1 | 2020-05-04T22:27:52.000Z | 2020-05-04T22:27:52.000Z | /*
* Copyright (c) 2018 Eric Lange
*
* Distributed under the MIT License. See LICENSE.md at
* https://github.com/LiquidPlayer/LiquidCore for terms and conditions.
*/
#include "node.h"
#include <jni.h>
#include <string.h>
#include "JNI/JNI.h"
#include "JSC/JSC.h"
#include "node_instance.h"
#undef NATIVE
#define N... | 29.786611 | 107 | 0.640118 | [
"object"
] |
f83a36b078cb2fe3c45b5e2ecad17e4b21814eb0 | 6,331 | cpp | C++ | tests/test_gstate_translator.cpp | MathewRGB/BlaEngine | fd64b7e8b54efad09f6466c6cb47ee920dc445f7 | [
"MIT"
] | 1 | 2019-12-06T00:42:54.000Z | 2019-12-06T00:42:54.000Z | tests/test_gstate_translator.cpp | MathewRGB/BlaEngine | fd64b7e8b54efad09f6466c6cb47ee920dc445f7 | [
"MIT"
] | null | null | null | tests/test_gstate_translator.cpp | MathewRGB/BlaEngine | fd64b7e8b54efad09f6466c6cb47ee920dc445f7 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "helper_for_tests.h"
#include "source/calculation/gstate_translator.h"
using namespace blaengine::calculation;
TEST(Calculator, test_set_fen_string) {
auto translator = GSateTranslator();
auto gstate_controller = GameStateController();
GameState& current_game_state = gstate_co... | 40.845161 | 78 | 0.731796 | [
"vector"
] |
f83bcceee4fe53652fbd4237c3ee00d97e205c12 | 9,744 | cpp | C++ | handlersocket/HandlerSocketClient.cpp | addb-swstarlab/YCSB-leveldb | e80c9742996da2c27fd1815932474117f659a18c | [
"Apache-2.0"
] | 16 | 2019-11-22T04:48:17.000Z | 2021-05-14T11:11:56.000Z | handlersocket/HandlerSocketClient.cpp | levyx/mapkeeper | adb2061031a2a8759771afb401c10c108e975ce0 | [
"Apache-2.0"
] | null | null | null | handlersocket/HandlerSocketClient.cpp | levyx/mapkeeper | adb2061031a2a8759771afb401c10c108e975ce0 | [
"Apache-2.0"
] | 2 | 2015-09-18T06:18:13.000Z | 2019-03-01T04:26:32.000Z | /*
* Copyright 2012 Yahoo! 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 ... | 35.05036 | 114 | 0.654454 | [
"vector"
] |
f83e39334f641aacaa26c731d71c6f54091cb329 | 55,809 | cxx | C++ | inetcore/mshtml/src/site/text/cglyph.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/mshtml/src/site/text/cglyph.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/mshtml/src/site/text/cglyph.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------
//
// File: cglyph.cxx
//
// Contents: CGlyph Class which manages the information for glyphs and makes it available at rendering time.
//
// Classes: CGlyph
// CGlyphTreeType
//
//-------------------------------... | 31.022235 | 144 | 0.514523 | [
"render"
] |
f83e3cf60b66e46e8dab8c03c5731b8c7225cab0 | 3,933 | cpp | C++ | Year-1/To others/Course Work Cars/source/MyForm.cpp | Ellanity/university | 239b050deb4b35cdd855ab55d793988224190a57 | [
"Apache-2.0"
] | null | null | null | Year-1/To others/Course Work Cars/source/MyForm.cpp | Ellanity/university | 239b050deb4b35cdd855ab55d793988224190a57 | [
"Apache-2.0"
] | null | null | null | Year-1/To others/Course Work Cars/source/MyForm.cpp | Ellanity/university | 239b050deb4b35cdd855ab55d793988224190a57 | [
"Apache-2.0"
] | null | null | null | #include <set>
#include <msclr/marshal_cppstd.h>
#include "MyForm.h"
#include "CourseWork.h"
/* using namespace System; */
/* using namespace System::Windows::Forms; */
/* All cars that were added */
std::set <Car> cars;
/* main function, creates window with forms */
[System::STAThreadAttribute]
void main(array<Syst... | 26.755102 | 93 | 0.635647 | [
"object"
] |
f83ef754be900097e85a9ac91de22945e7e1fcbe | 5,627 | hpp | C++ | src/Types/Container/List.hpp | aff3ct/cli | 67a1ba5474ce195e313086396ae4bca61fb6b9ce | [
"MIT"
] | 2 | 2019-12-23T11:14:12.000Z | 2021-05-31T23:30:45.000Z | src/Types/Container/List.hpp | aff3ct/cli | 67a1ba5474ce195e313086396ae4bca61fb6b9ce | [
"MIT"
] | 1 | 2020-10-23T00:33:29.000Z | 2020-10-29T13:39:12.000Z | src/Types/Container/List.hpp | aff3ct/cli | 67a1ba5474ce195e313086396ae4bca61fb6b9ce | [
"MIT"
] | 5 | 2020-10-17T15:08:35.000Z | 2022-02-23T22:39:57.000Z | #ifndef ARGUMENT_TYPE_LIST_HPP_
#define ARGUMENT_TYPE_LIST_HPP_
#include <stdexcept>
#include <sstream>
#include <vector>
#include <string>
#include <tuple>
#include "Types/Argument_type_limited.hpp"
#include "Tools/utilities.hpp"
#include "Splitter/Splitter.hpp"
namespace cli
{
template <typename T = std::string, ... | 30.416216 | 131 | 0.631598 | [
"vector"
] |
f841226891d1781d6136ee8730026be1c0e6f813 | 3,164 | cc | C++ | path-tracer/core/materials/phong.cc | sdao/path-tracer-nacl | abb3eb0a51059e5109b87bafd7de60a8d4055453 | [
"BSD-2-Clause"
] | null | null | null | path-tracer/core/materials/phong.cc | sdao/path-tracer-nacl | abb3eb0a51059e5109b87bafd7de60a8d4055453 | [
"BSD-2-Clause"
] | null | null | null | path-tracer/core/materials/phong.cc | sdao/path-tracer-nacl | abb3eb0a51059e5109b87bafd7de60a8d4055453 | [
"BSD-2-Clause"
] | null | null | null | #include "phong.h"
using std::min;
using std::max;
materials::Phong::Phong(float e, const Vec& c)
: scaleBRDF(c * (e + 2.0f) / math::TWO_PI),
scaleProb((e + 1.0f) / math::TWO_PI),
invExponent(1.0f / (e + 1.0f)),
color(c), exponent(e) {}
materials::Phong::Phong(const Node& n)
: Phong(n.getFloat("expon... | 28 | 80 | 0.679836 | [
"vector"
] |
f8439615bbfd9c26320ecf03652fc4462817431a | 5,267 | hpp | C++ | asmd/eita/ScorePerfmMatch_v170503.hpp | 00sapo/ASMD | 48e021f98d5fbecd09bed1cdd58024d9b471fad4 | [
"MIT"
] | 6 | 2021-09-18T08:36:26.000Z | 2022-03-25T16:37:04.000Z | asmd/eita/ScorePerfmMatch_v170503.hpp | 00sapo/ASMD | 48e021f98d5fbecd09bed1cdd58024d9b471fad4 | [
"MIT"
] | 4 | 2021-04-22T15:01:26.000Z | 2021-04-22T15:01:28.000Z | asmd/eita/ScorePerfmMatch_v170503.hpp | 00sapo/ASMD | 48e021f98d5fbecd09bed1cdd58024d9b471fad4 | [
"MIT"
] | 3 | 2021-07-13T15:11:38.000Z | 2021-11-26T07:38:00.000Z | /*
Copyright 2019 Eita Nakamura
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, publish, distribute, subli... | 31.538922 | 460 | 0.700778 | [
"vector"
] |
f84c20b0fecaa2e3ce1962d29db58d19e18a345e | 7,976 | cc | C++ | src/cx/cursor.cc | dgoffredo/clang-uml | 3b0a454e4e85aee06168439660f0fd71dc4b7a75 | [
"Apache-2.0"
] | 10 | 2021-11-16T01:08:05.000Z | 2022-03-15T23:51:11.000Z | src/cx/cursor.cc | dgoffredo/clang-uml | 3b0a454e4e85aee06168439660f0fd71dc4b7a75 | [
"Apache-2.0"
] | 8 | 2021-11-16T21:29:41.000Z | 2022-03-21T21:22:00.000Z | src/cx/cursor.cc | dgoffredo/clang-uml | 3b0a454e4e85aee06168439660f0fd71dc4b7a75 | [
"Apache-2.0"
] | 2 | 2021-12-04T20:20:06.000Z | 2022-02-08T06:33:27.000Z | /**
* src/cx/cursor.cc
*
* Copyright (c) 2021 Bartek Kryza <bkryza@gmail.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... | 24.243161 | 80 | 0.689694 | [
"vector"
] |
f859104980569114f2ebed0e24d93b65c8f4ce7a | 11,996 | cpp | C++ | src/qt/giftcardtablemodel.cpp | BraginaT/TriveCoin | 08735a1e83ad2ff222d6afe4aa81d07beeccf290 | [
"MIT"
] | null | null | null | src/qt/giftcardtablemodel.cpp | BraginaT/TriveCoin | 08735a1e83ad2ff222d6afe4aa81d07beeccf290 | [
"MIT"
] | null | null | null | src/qt/giftcardtablemodel.cpp | BraginaT/TriveCoin | 08735a1e83ad2ff222d6afe4aa81d07beeccf290 | [
"MIT"
] | null | null | null | // Copyright 2016 Strength in Numbers Foundation
#include "giftcarddatamanager.h"
#include "giftcardtablemodel.h"
#include "guiutil.h"
#include "walletmodel.h"
#include "ui_interface.h"
#include "base58.h"
#include <QFont>
#include <QColor>
extern int VanityGen(int addrtype, char *prefix, char *pubKey, char *privKe... | 28.630072 | 147 | 0.618123 | [
"model"
] |
f85c24e77b0996165bb55fd02d08c1e217eada4a | 795 | hpp | C++ | include/Materials/Dielectic.hpp | Ursanon/RayTracing | 8cc51b9b7845ccd2ef99704d7cfebc301f36b315 | [
"MIT"
] | 2 | 2020-01-06T14:31:16.000Z | 2020-01-07T08:15:51.000Z | include/Materials/Dielectic.hpp | Ursanon/RayTracing | 8cc51b9b7845ccd2ef99704d7cfebc301f36b315 | [
"MIT"
] | null | null | null | include/Materials/Dielectic.hpp | Ursanon/RayTracing | 8cc51b9b7845ccd2ef99704d7cfebc301f36b315 | [
"MIT"
] | null | null | null | #ifndef DIELECTIC_HPP_
#define DIELECTIC_HPP_
#include "Materials/Material.hpp"
namespace rt
{
namespace materials
{
class Dielectric : public Material
{
private:
struct refract_data
{
const Vector3f normal;
const float index;
const float cosine;
};
public:
explicit Dielectri... | 22.083333 | 122 | 0.727044 | [
"vector"
] |
f85e502ec5ae2785540604309d4ac50ec1845c71 | 703 | hpp | C++ | src/core.hpp | KeNaCo/sm-pssm-demo | bb6355b7225d9e6d2cb82271029956b96462272b | [
"MIT"
] | null | null | null | src/core.hpp | KeNaCo/sm-pssm-demo | bb6355b7225d9e6d2cb82271029956b96462272b | [
"MIT"
] | null | null | null | src/core.hpp | KeNaCo/sm-pssm-demo | bb6355b7225d9e6d2cb82271029956b96462272b | [
"MIT"
] | null | null | null | /*
* core.h
*
* Created on: Oct 13, 2014
* Author: kenaco
*/
#ifndef CORE_H_
#define CORE_H_
#include <SDL.h>
#include <SDL_video.h>
#include <glbinding/gl/gl.h>
#include <assimp/Importer.hpp>
#include "renderer.hpp"
//#include "handler.hpp"
/*
* Controller class
*/
class Core {
private:
bool quit;
... | 12.781818 | 39 | 0.665718 | [
"model"
] |
f85e686d18e165a47ce32c97cffebde10a1743ad | 1,503 | hpp | C++ | include/sunspec/utils.hpp | EVerest/libsunspec | 64b35a1083f442b8fedb4740c8b74605e704b0bc | [
"Apache-2.0"
] | 7 | 2022-01-31T16:12:59.000Z | 2022-03-15T11:54:31.000Z | include/sunspec/utils.hpp | EVerest/libsunspec | 64b35a1083f442b8fedb4740c8b74605e704b0bc | [
"Apache-2.0"
] | 1 | 2022-01-11T14:05:49.000Z | 2022-01-11T14:05:49.000Z | include/sunspec/utils.hpp | EVerest/libsunspec | 64b35a1083f442b8fedb4740c8b74605e704b0bc | [
"Apache-2.0"
] | 1 | 2022-03-13T07:17:00.000Z | 2022-03-13T07:17:00.000Z | // SPDX-License-Identifier: Apache-2.0
// Copyright 2020 - 2021 Pionix GmbH and Contributors to EVerest
#ifndef SUNSPEC_UTILS_HPP
#define SUNSPEC_UTILS_HPP
#include <string>
#include <vector>
#include <cstdint>
#include <cmath>
#include <nlohmann/json.hpp>
#include <modbus/modbus_client.hpp>
#include <sunspec/common... | 34.159091 | 132 | 0.762475 | [
"vector"
] |
f85ec985f15ea769d60aa04a05efaee74fcb55d7 | 7,270 | cc | C++ | Engine/addons/resource/DXTextureDecompress.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 26 | 2015-01-15T12:57:40.000Z | 2022-02-16T10:07:12.000Z | Engine/addons/resource/DXTextureDecompress.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | null | null | null | Engine/addons/resource/DXTextureDecompress.cc | BikkyS/DreamEngine | 47da4e22c65188c72f44591f6a96505d8ba5f5f3 | [
"MIT"
] | 17 | 2015-02-18T07:51:31.000Z | 2020-06-01T01:10:12.000Z | /****************************************************************************
Copyright (c) 2006 Simon Brown si@sjbrown.co.uk
Copyright (c) 2011-2013,WebJet Business Division,CYOU
http://www.genesis-3d.com.cn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this... | 26.925926 | 85 | 0.53879 | [
"3d"
] |
f86451488a6945086cb1479e572e4d6646c6fea0 | 1,452 | cpp | C++ | CTN_05_Hardware_3D_DirectX/src/HorizontalBlurPass.cpp | TheUnicum/CTN_05_Hardware_3D_DirectX | 39940fb0466ff5b419d7f7c4cf55ee1f90784baa | [
"Apache-2.0"
] | null | null | null | CTN_05_Hardware_3D_DirectX/src/HorizontalBlurPass.cpp | TheUnicum/CTN_05_Hardware_3D_DirectX | 39940fb0466ff5b419d7f7c4cf55ee1f90784baa | [
"Apache-2.0"
] | null | null | null | CTN_05_Hardware_3D_DirectX/src/HorizontalBlurPass.cpp | TheUnicum/CTN_05_Hardware_3D_DirectX | 39940fb0466ff5b419d7f7c4cf55ee1f90784baa | [
"Apache-2.0"
] | null | null | null | #include "HorizontalBlurPass.h"
#include "PixelShader.h"
#include "RenderTarget.h"
#include "Sink.h"
#include "Source.h"
#include "Blender.h"
#include "Sampler.h"
#include "ConstantBuffersEx.h"
using namespace Bind;
namespace Rgph
{
HorizontalBlurPass::HorizontalBlurPass(std::string name, Graphics& gfx, unsigned int... | 33.767442 | 121 | 0.758264 | [
"vector"
] |
d38265cf95636c75daa2e2da2ad4819b4b2ba02e | 15,562 | cpp | C++ | src/tiled/tmx_reader.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/tiled/tmx_reader.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/tiled/tmx_reader.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2013-2014 by Kristina Simpson <sweet.kristas@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any pur... | 30.69428 | 154 | 0.663539 | [
"vector"
] |
d3896c8bf2375857702687270446cfd9bd9a4e12 | 2,861 | cpp | C++ | src/prodml2_0/FiberOpticalPath.cpp | ringmesh/fesapi | 0b518e71f805f35679a65c78332b5cb64ed97830 | [
"Apache-2.0"
] | null | null | null | src/prodml2_0/FiberOpticalPath.cpp | ringmesh/fesapi | 0b518e71f805f35679a65c78332b5cb64ed97830 | [
"Apache-2.0"
] | null | null | null | src/prodml2_0/FiberOpticalPath.cpp | ringmesh/fesapi | 0b518e71f805f35679a65c78332b5cb64ed97830 | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under ... | 39.191781 | 134 | 0.752884 | [
"vector"
] |
d38b42d775f0a69a1b375f9a1d9f88bd4fd7133c | 1,330 | hpp | C++ | include/pipeline/fork_into.hpp | p-ranav/pipeline | 31fffe6af101da57513eebca7518b1e434f5de87 | [
"MIT"
] | 28 | 2020-10-04T23:26:14.000Z | 2022-01-20T02:22:10.000Z | include/pipeline/fork_into.hpp | p-ranav/pipeline | 31fffe6af101da57513eebca7518b1e434f5de87 | [
"MIT"
] | null | null | null | include/pipeline/fork_into.hpp | p-ranav/pipeline | 31fffe6af101da57513eebca7518b1e434f5de87 | [
"MIT"
] | 4 | 2020-10-10T14:03:47.000Z | 2021-10-13T08:20:46.000Z | #pragma once
#include <functional>
#include <future>
#include <pipeline/details.hpp>
#include <pipeline/fn.hpp>
#include <thread>
namespace pipeline {
template <typename Fn, typename... Fns> class fork_into {
std::tuple<Fn, Fns...> fns_;
public:
fork_into(Fn first, Fns... fns) : fns_(first, fns...) {}
templat... | 27.708333 | 94 | 0.610526 | [
"vector"
] |
d38b513f39a52fe3119040252bf20de8322401ae | 3,407 | cpp | C++ | third-party/mcrouter/src/mcrouter/test/cpp_unit_tests/LeaseTokenMapTest.cpp | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/mcrouter/src/mcrouter/test/cpp_unit_tests/LeaseTokenMapTest.cpp | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | third-party/mcrouter/src/mcrouter/test/cpp_unit_tests/LeaseTokenMapTest.cpp | hkirsman/hhvm_centos7_builds | 2a1fd6de0d2d289c1575f43f10018f3bec23bb13 | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <ch... | 28.157025 | 79 | 0.696214 | [
"vector"
] |
d395bcc1985a4f98a48095c9a90449761ca51196 | 778 | cpp | C++ | 0874_walking_robot_simulation.cpp | fxshan/LeetCode | a54bbe22bc335dcb3c7efffcc34357cab7641492 | [
"Apache-2.0"
] | 2 | 2020-06-04T13:20:20.000Z | 2020-06-04T14:49:10.000Z | 0874_walking_robot_simulation.cpp | fxshan/LeetCode | a54bbe22bc335dcb3c7efffcc34357cab7641492 | [
"Apache-2.0"
] | null | null | null | 0874_walking_robot_simulation.cpp | fxshan/LeetCode | a54bbe22bc335dcb3c7efffcc34357cab7641492 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int robotSim(vector<int>& cmd, vector<vector<int>>& obstacles) {
int res, d = 0, x = 0, y = 0;
unordered_set<string> obs;
for (auto& x : obstacles)
obs.insert(to_string(x[0]) + " " + to_string(x[1]));
vector<vector<int>> ds = {{0, 1}, {1, 0}, {0, -1}, {-1, 0}};
for ... | 26.827586 | 77 | 0.401028 | [
"vector"
] |
d39713f9f3364c3b1876f36857cb17a1f0ce72a3 | 2,423 | hpp | C++ | include/lograffe/logger.hpp | KiNgMaR/lograffe | 64f607408ea308e32d8cbbd4644b9d77f84d9ca7 | [
"BSL-1.0"
] | 4 | 2018-04-03T01:44:42.000Z | 2020-05-26T01:54:55.000Z | include/lograffe/logger.hpp | KiNgMaR/lograffe | 64f607408ea308e32d8cbbd4644b9d77f84d9ca7 | [
"BSL-1.0"
] | null | null | null | include/lograffe/logger.hpp | KiNgMaR/lograffe | 64f607408ea308e32d8cbbd4644b9d77f84d9ca7 | [
"BSL-1.0"
] | 1 | 2020-05-19T08:27:39.000Z | 2020-05-19T08:27:39.000Z | //
// lograffe logging library.
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#pragma once
#include <lograffe/log_level.hpp>
#include <lograffe/log_entry.hpp>
#include <lograffe/sink.hpp>
#include <lograffe/fo... | 28.505882 | 106 | 0.678498 | [
"vector"
] |
d39fb6bc8d3a474693714a7de21e7b31b41f8889 | 2,698 | cpp | C++ | src/core/base_pobserver.cpp | pratyuksh/NumHypSys | 29e03f9cc0572178701525210561b152d89999d4 | [
"MIT"
] | null | null | null | src/core/base_pobserver.cpp | pratyuksh/NumHypSys | 29e03f9cc0572178701525210561b152d89999d4 | [
"MIT"
] | null | null | null | src/core/base_pobserver.cpp | pratyuksh/NumHypSys | 29e03f9cc0572178701525210561b152d89999d4 | [
"MIT"
] | null | null | null | #include "../../include/core/base_pobserver.hpp"
#include <fstream>
#include <iostream>
#include <filesystem>
namespace fs = std::filesystem;
using namespace std;
//! Constructor
BaseParObserver
:: BaseParObserver (MPI_Comm comm,
const nlohmann::json& config, int lx)
: m_comm(comm)
{
MPI... | 25.942308 | 61 | 0.516679 | [
"mesh"
] |
d3a0c9429e5b393eea6ed12b18ebbcdce079d76b | 6,405 | cpp | C++ | src/linux_parser.cpp | MattRickS/CppND-System-Monitor | c8d4062d58d52df0c4eaf3de08be031114ce4880 | [
"MIT"
] | null | null | null | src/linux_parser.cpp | MattRickS/CppND-System-Monitor | c8d4062d58d52df0c4eaf3de08be031114ce4880 | [
"MIT"
] | null | null | null | src/linux_parser.cpp | MattRickS/CppND-System-Monitor | c8d4062d58d52df0c4eaf3de08be031114ce4880 | [
"MIT"
] | null | null | null | #include "linux_parser.h"
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
using std::stof;
using std::string;
using std::to_string;
using std::vector;
string LinuxParser::OperatingSystem() {
string line;
string key;
string value;
std::ifstream filestream(kOSPath);
if (filestrea... | 26.466942 | 80 | 0.630601 | [
"vector"
] |
d3a6e75005b64685aad14dfc2ede34675f11e47a | 9,738 | cpp | C++ | src/multi_physics/QED_tests/test_picsar_quantum_sync_tables.cpp | LDAmorim/picsar | 024db7c01daf820ae321c3473f2dd5ec73476946 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/multi_physics/QED_tests/test_picsar_quantum_sync_tables.cpp | LDAmorim/picsar | 024db7c01daf820ae321c3473f2dd5ec73476946 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/multi_physics/QED_tests/test_picsar_quantum_sync_tables.cpp | LDAmorim/picsar | 024db7c01daf820ae321c3473f2dd5ec73476946 | [
"BSD-3-Clause-LBNL"
] | null | null | null | //####### Test module for Quantum Synchrotron tables ###########################
//Define Module name
#define BOOST_TEST_MODULE "phys/quantum_sync/tables"
//Include Boost unit tests library & library for floating point comparison
#include <boost/test/unit_test.hpp>
#include <boost/test/tools/floating_point_compariso... | 31.211538 | 87 | 0.664921 | [
"vector",
"transform"
] |
d3aa5f057430080a901d84ebc7892d3f53613b73 | 12,906 | cpp | C++ | src/lib/cli_cpp/cmd/CommandParseStatus.cpp | marvins/cli-cpp | 4f98a09d5cfeffe0d5c330cda3272ae207c511d1 | [
"MIT"
] | 4 | 2020-10-08T03:09:10.000Z | 2022-03-13T09:22:51.000Z | src/lib/cli_cpp/cmd/CommandParseStatus.cpp | marvins/cli-cpp | 4f98a09d5cfeffe0d5c330cda3272ae207c511d1 | [
"MIT"
] | 4 | 2015-05-30T17:40:46.000Z | 2015-07-01T01:10:16.000Z | src/lib/cli_cpp/cmd/CommandParseStatus.cpp | marvins/cli-cpp | 4f98a09d5cfeffe0d5c330cda3272ae207c511d1 | [
"MIT"
] | 2 | 2015-06-02T20:07:39.000Z | 2020-12-16T09:25:38.000Z | /**
* @file CommandParseStatus.cpp
* @author Marvin Smith
* @date 5/19/2015
*/
#include "CommandParseStatus.hpp"
namespace CLI{
namespace CMD{
/********************************************************/
/* Convert CLI Command Parse Status to String */
/**********************************************... | 28.179039 | 160 | 0.598326 | [
"vector"
] |
d3adbbeda2b2ce08cb26cd3861d0a4edf6108acd | 5,800 | hpp | C++ | cuarma/meta/tag_of.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | cuarma/meta/tag_of.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | cuarma/meta/tag_of.hpp | yangxianpku/cuarma | 404f20b5b3fa74e5e27338e89343450f8853024c | [
"X11",
"MIT"
] | null | null | null | #pragma once
/* =========================================================================
Copyright (c) 2015-2017, COE of Peking University, Shaoqiang Tang.
-----------------
cuarma - COE of Peking University, Shaoqiang Tang.
-----------------
... | 23.2 | 114 | 0.598448 | [
"vector"
] |
d3b1acfa6e209e73d190ddecb60d29804cb56303 | 12,231 | cpp | C++ | Mango/app/chunk.cpp | jonomango/Mango | 05c78be87eec4f103346da222b16865311ab7c27 | [
"MIT"
] | 1 | 2019-10-19T20:38:57.000Z | 2019-10-19T20:38:57.000Z | Mango/app/chunk.cpp | jonomango/Mango | 05c78be87eec4f103346da222b16865311ab7c27 | [
"MIT"
] | null | null | null | Mango/app/chunk.cpp | jonomango/Mango | 05c78be87eec4f103346da222b16865311ab7c27 | [
"MIT"
] | null | null | null | #include "chunk.h"
uint64_t PackChunk(int x, int z)
{
uint64_t packed_chunk;
*reinterpret_cast<int32_t*>(uintptr_t(&packed_chunk)) = int32_t(x);
*reinterpret_cast<int32_t*>(uintptr_t(&packed_chunk) + 4) = int32_t(z);
return packed_chunk;
}
void UnpackChunk(uint64_t chunk, int& x, int& z)
{
x = *reinterpret_cas... | 26.134615 | 140 | 0.672063 | [
"vector"
] |
d3b5695734e1b22d397c168329107ed159e232da | 4,577 | cpp | C++ | src/game/shared/tf2/weapon_combat_basegrenade.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/shared/tf2/weapon_combat_basegrenade.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/shared/tf2/weapon_combat_basegrenade.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: Base class for hand-thrown grenades that work with the handheld shield
//
// $NoKeywords: $
//=============================================================================//
#include "cbase.h"
#include "basetfplayer_shared.h"
#... | 29.915033 | 143 | 0.587503 | [
"vector"
] |
d3be26ce9daafbfb1fe8b2b06429f0a65e3ed7c3 | 1,234 | cpp | C++ | simu_planning/heuristic_grids/src/heuristic_grids_server.cpp | mathsg/ROS_initiation | 09a8e9e5f9836ea8ed8261d694e2ef14768a9c5b | [
"BSD-3-Clause"
] | null | null | null | simu_planning/heuristic_grids/src/heuristic_grids_server.cpp | mathsg/ROS_initiation | 09a8e9e5f9836ea8ed8261d694e2ef14768a9c5b | [
"BSD-3-Clause"
] | null | null | null | simu_planning/heuristic_grids/src/heuristic_grids_server.cpp | mathsg/ROS_initiation | 09a8e9e5f9836ea8ed8261d694e2ef14768a9c5b | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <math.h>
#include <vector>
#include "ros/ros.h"
//The messages
#include <visualization_msgs/MarkerArray.h>
float control_frequency = 10.0;
class RobotVisualization
{
public:
ros::NodeHandle n;
ros::Subscriber pose_sub;
ros::Publisher robot_visu_pub.
RobotVisualization()
{
// ... | 18.984615 | 116 | 0.725284 | [
"vector"
] |
d3d315b139b077b38ba6a6b0bec7976630c43c7e | 860 | cpp | C++ | allosphere.node/src/phasespace.cpp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | 3 | 2016-05-04T23:23:48.000Z | 2021-08-03T21:48:07.000Z | allosphere.node/src/phasespace.cpp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | null | null | null | allosphere.node/src/phasespace.cpp | donghaoren/AllofwModule | 4367327cda0605aad53469294ed8751f8befbdc3 | [
"Unlicense"
] | 2 | 2016-01-31T04:06:51.000Z | 2016-09-30T16:38:36.000Z | #include "phasespace/phasespace/Phasespace.hpp"
#include "phasespace.h"
namespace allofw {
class PhasespaceImpl : public Phasespace {
public:
PhasespaceImpl() {
tracker = ::Phasespace::master();
}
// Get marker positions.
virtual void getMarkers(Vector3* positions, int* last_seens, int start... | 20.97561 | 88 | 0.577907 | [
"vector"
] |
d3d5d688282e49e341dc298d6adc240d5012c96e | 34,906 | cpp | C++ | source/cscript/lib/CCLib_UI.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/cscript/lib/CCLib_UI.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | source/cscript/lib/CCLib_UI.cpp | chromaScript/chroma.io | c484354df6f3c84a049ffadfe37c677c0ccb6390 | [
"MIT"
] | null | null | null | #include "../../include/cscript/CCallable.h"
#include "../../include/cscript/CCallable_Lib.h"
#include "../../include/cscript/lib/CCLib_UI.h"
#include "../../include/cscript/ChromaScript.h"
#include "../../include/cscript/CForward.h"
#include "../../include/cscript/CLiteral.h"
#include "../../include/cscript/CExpr.h"
... | 42.106152 | 164 | 0.717728 | [
"object",
"vector"
] |
d3d771ba1eaa42ed760b0a7b38f72290b02c3d06 | 1,440 | hpp | C++ | include/jcp/x509_encoded_key_spec_impl.hpp | jc-lab/jcp | 852755534121bcaac12c49da9cd290c30e149f94 | [
"Apache-2.0"
] | null | null | null | include/jcp/x509_encoded_key_spec_impl.hpp | jc-lab/jcp | 852755534121bcaac12c49da9cd290c30e149f94 | [
"Apache-2.0"
] | null | null | null | include/jcp/x509_encoded_key_spec_impl.hpp | jc-lab/jcp | 852755534121bcaac12c49da9cd290c30e149f94 | [
"Apache-2.0"
] | null | null | null | //
// Created by jichan on 2019-08-21.
//
#ifndef __JCP_X509_ENCODED_KEY_SPEC_IMPL_HPP__
#define __JCP_X509_ENCODED_KEY_SPEC_IMPL_HPP__
#include "result.hpp"
#include "asym_key.hpp"
#include <vector>
#include <jcp/asn1/asn1_object_identifier.hpp>
#include <jcp/internal/asn1_types/Version.h>
#include <jcp/internal/... | 26.181818 | 78 | 0.6875 | [
"vector"
] |
d3ea03301fc8874154d4139f6aae0d34c28505a6 | 8,370 | cc | C++ | Examples/computational_geometry/polygon.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | Examples/computational_geometry/polygon.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | Examples/computational_geometry/polygon.cc | mjenrungrot/algorithm | e0e8174eb133ba20931c2c7f5c67732e4cb2b703 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
namespace polygon {
typedef double ftype;
double DEG_to_RAD(double d) { return d * M_PI / 180.0; }
double RAD_to_DEG(double r) { return r * 180.0 / M_PI; }
struct point2d {
ftype x, y;
point2d() {}
point2d(ftype x, ftype y) : x(x), y(y) {}
point2d& opera... | 32.44186 | 80 | 0.4681 | [
"vector"
] |
d3ecdfb4581185e54ccc147fe774b64cbbfdffe5 | 28,540 | cpp | C++ | src/libutil/argparse.cpp | gbansal2/oiio | 6612857298968971eb41171148e76cf9f1aaf18e | [
"BSD-3-Clause"
] | null | null | null | src/libutil/argparse.cpp | gbansal2/oiio | 6612857298968971eb41171148e76cf9f1aaf18e | [
"BSD-3-Clause"
] | null | null | null | src/libutil/argparse.cpp | gbansal2/oiio | 6612857298968971eb41171148e76cf9f1aaf18e | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#include <cassert>
#include <cctype>
#include <cstdarg>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <iterator>
#include <sstr... | 27.129278 | 80 | 0.540084 | [
"vector"
] |
d3ee2da1ea927dcdfa4866a3c797917c1bdfda2e | 1,446 | cpp | C++ | epikjjh/baekjoon/2213.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 3 | 2019-05-19T13:44:39.000Z | 2019-07-03T11:15:20.000Z | epikjjh/baekjoon/2213.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 7 | 2019-05-06T02:37:26.000Z | 2019-06-29T07:28:02.000Z | epikjjh/baekjoon/2213.cpp | 15ers/Solve_Naively | 23ee4a3aedbedb65b9040594b8c9c6d9cff77090 | [
"MIT"
] | 1 | 2019-07-28T06:24:54.000Z | 2019-07-28T06:24:54.000Z | #include <bits/stdc++.h>
using namespace std;
vector<vector<int>> adj;
vector<vector<int>> tree;
vector<int> score;
vector<int> cands;
vector<bool> visited;
int dp[10001][2];
void make_tree(int cur){
visited[cur] = true;
for(int nxt: adj[cur]){
if(visited[nxt]) continue;
tree[cur].push_bac... | 20.657143 | 54 | 0.517289 | [
"vector"
] |
d3f042a6f7b3ab5f1a8de882b876afa12efec693 | 2,863 | hh | C++ | src/c++/include/alignment/templateBuilder/FragmentSequencingAdapterClipper.hh | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 13 | 2018-02-09T22:59:39.000Z | 2021-11-29T06:33:22.000Z | src/c++/include/alignment/templateBuilder/FragmentSequencingAdapterClipper.hh | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 17 | 2018-01-26T11:36:07.000Z | 2022-02-03T18:48:43.000Z | src/c++/include/alignment/templateBuilder/FragmentSequencingAdapterClipper.hh | Illumina/Isaac4 | 0924fba8b467868da92e1c48323b15d7cbca17dd | [
"BSD-3-Clause"
] | 4 | 2018-10-19T20:00:00.000Z | 2020-10-29T14:44:06.000Z | /**
** Isaac Genome Alignment Software
** Copyright (c) 2010-2017 Illumina, Inc.
** All rights reserved.
**
** This software is provided under the terms and conditions of the
** GNU GENERAL PUBLIC LICENSE Version 3
**
** You should have received a copy of the GNU GENERAL PUBLIC LICENSE Version 3
** along with ... | 30.784946 | 98 | 0.729305 | [
"vector"
] |
1094f74bc956b861870d4a6f7255a92380d55ae3 | 28,900 | cpp | C++ | src/kmrandgen.cpp | MarcAntoine-Arnaud/asdcplib | 067c114b37e5bbc4ba8ff456de3b981beef2dcf9 | [
"OpenSSL"
] | 6 | 2015-12-06T10:21:11.000Z | 2019-10-27T01:13:01.000Z | src/kmrandgen.cpp | MarcAntoine-Arnaud/asdcplib | 067c114b37e5bbc4ba8ff456de3b981beef2dcf9 | [
"OpenSSL"
] | 6 | 2018-05-31T05:29:28.000Z | 2021-01-13T07:32:52.000Z | src/kmrandgen.cpp | MarcAntoine-Arnaud/asdcplib | 067c114b37e5bbc4ba8ff456de3b981beef2dcf9 | [
"OpenSSL"
] | 5 | 2015-10-08T14:25:19.000Z | 2022-01-27T06:09:52.000Z | /*
Copyright (c) 2005-2009, John Hurst
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the followi... | 42.942051 | 116 | 0.514291 | [
"cad",
"mesh"
] |
109512eeb87e54d994a04c510c862e83a9f91345 | 2,507 | hpp | C++ | include/uitsl/nonce/spector.hpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | null | null | null | include/uitsl/nonce/spector.hpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | 1 | 2020-10-22T20:41:05.000Z | 2020-10-22T20:41:05.000Z | include/uitsl/nonce/spector.hpp | perryk12/conduit | 3ea055312598353afd465536c8e04cdec1111c8c | [
"MIT"
] | null | null | null | #pragma once
#ifndef UITSL_NONCE_SPECTOR_HPP_INCLUDE
#define UITSL_NONCE_SPECTOR_HPP_INCLUDE
#include <variant>
#include "../../../third-party/Empirical/source/base/vector.h"
#include "../../../third-party/Empirical/source/polyfill/span.h"
namespace uitsl {
template<typename T>
class spector {
using vector_t = e... | 16.493421 | 71 | 0.554846 | [
"vector"
] |
10a241dcd329d8308207add0eed8804d8b73b85b | 4,779 | hpp | C++ | src/adapt/FixSideSetsSelector.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 3 | 2017-08-08T21:06:02.000Z | 2020-01-08T13:23:36.000Z | src/adapt/FixSideSetsSelector.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2016-12-17T00:18:56.000Z | 2019-08-09T15:29:25.000Z | src/adapt/FixSideSetsSelector.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2017-11-30T07:02:41.000Z | 2019-08-05T17:07:04.000Z | // Copyright 2002 - 2008, 2010, 2011 National Technology Engineering
// Solutions of Sandia, LLC (NTESS). Under the terms of Contract
// DE-NA0003525 with NTESS, the U.S. Government retains certain rights
// in this software.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the L... | 30.832258 | 219 | 0.578782 | [
"mesh",
"vector"
] |
10a4b997311a521b03485d2ab09cc1e7d775288f | 1,708 | hpp | C++ | stan/math/rev/mat/fun/LDLT_alloc.hpp | riddell-stan/math | d84ee0d991400d6cf4b08a07a4e8d86e0651baea | [
"BSD-3-Clause"
] | null | null | null | stan/math/rev/mat/fun/LDLT_alloc.hpp | riddell-stan/math | d84ee0d991400d6cf4b08a07a4e8d86e0651baea | [
"BSD-3-Clause"
] | 1 | 2019-09-23T19:58:36.000Z | 2019-09-24T12:03:41.000Z | stan/math/rev/mat/fun/LDLT_alloc.hpp | riddell-stan/math | d84ee0d991400d6cf4b08a07a4e8d86e0651baea | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_MAT_FUN_LDLT_ALLOC_HPP
#define STAN_MATH_REV_MAT_FUN_LDLT_ALLOC_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/rev/core.hpp>
namespace stan {
namespace math {
/**
* This object stores the actual (double typed) LDLT factorization of
* an Ei... | 28.949153 | 80 | 0.65281 | [
"object"
] |
10a718e630cfc2b0ee7adef0696d2a433091704d | 3,017 | cpp | C++ | test/testFSK.cpp | MaxZZG/RadProps | bd95421430fc266ee88d0480069f7d20be1414f6 | [
"MIT"
] | null | null | null | test/testFSK.cpp | MaxZZG/RadProps | bd95421430fc266ee88d0480069f7d20be1414f6 | [
"MIT"
] | null | null | null | test/testFSK.cpp | MaxZZG/RadProps | bd95421430fc266ee88d0480069f7d20be1414f6 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2014-2017 The University of Utah
*
* 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... | 31.757895 | 136 | 0.648658 | [
"vector"
] |
10ac5f9a2921859cbc876e5c384ef4d92e4e0cd1 | 9,857 | cc | C++ | src/o1.flag_set.test.cc | garana/o1.cpp.lib | fbd795545222129dae90f5eb593b7cc169761d49 | [
"BSD-3-Clause"
] | null | null | null | src/o1.flag_set.test.cc | garana/o1.cpp.lib | fbd795545222129dae90f5eb593b7cc169761d49 | [
"BSD-3-Clause"
] | null | null | null | src/o1.flag_set.test.cc | garana/o1.cpp.lib | fbd795545222129dae90f5eb593b7cc169761d49 | [
"BSD-3-Clause"
] | null | null | null | /**
* BSD 3-Clause License
*
* Copyright (c) 2021, Gonzalo Arana
* 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 noti... | 41.070833 | 81 | 0.77133 | [
"vector"
] |
10b23605ddeeed08fe0e8849cc97e3007bd4ec52 | 1,611 | cpp | C++ | 169.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 169.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | 169.cpp | LeeYiyuan/projecteuler | 81a0b65f73b47fbb9bfe99cb5ff72da7e0ba0d74 | [
"MIT"
] | null | null | null | /*
We start from a sum of 0 and try to add powers of 2 until the sum reaches
10^25.
We start from 2^0 and consider powers of 2 incrementally. Note that at
each power 2^e, we either add 0, 2^e, 2^{e + 1} to the current sum depending
on whether 2^e is counted 0, 1, 2 times respectively.
The tri... | 34.276596 | 80 | 0.629423 | [
"vector"
] |
10b9a9cc59079de3d47ec6766bc0aa58aa6d2a37 | 2,191 | cpp | C++ | Exercise3_User/User.cpp | CalaW/Hitokoto- | 33f456a7f1105ce7dfbfad8cd0bbf4c86c0c25c6 | [
"WTFPL"
] | 4 | 2021-08-18T06:51:14.000Z | 2022-03-06T01:30:01.000Z | Exercise3_User/User.cpp | CalaW/Hitokoto | 33f456a7f1105ce7dfbfad8cd0bbf4c86c0c25c6 | [
"WTFPL"
] | null | null | null | Exercise3_User/User.cpp | CalaW/Hitokoto | 33f456a7f1105ce7dfbfad8cd0bbf4c86c0c25c6 | [
"WTFPL"
] | null | null | null | /**
* @file User.cpp
* @author CalaW (maker_cc@foxmail.com)
* @brief
* @version 0.1
* @date 2021-07-28
*
*
*/
#include "User.h"
//static member initialization
string User::admin_name = "Admin";
string User::admin_pwd = "Admin";
vector<User*> User::user_index{};
//bool User::_admin_exist = false;
/**
* @b... | 23.815217 | 82 | 0.61707 | [
"object",
"vector"
] |
10b9f4b3a20eec0e0d8b1cf093a9f08308436ed2 | 864 | cpp | C++ | 158.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 158.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | 158.cpp | Alex-Amber/LeetCode | c8d09e86cee52648f84ca2afed8dd0f13e51ab58 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ull = uint64_t;
using ll = int64_t;
using ld = long double;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
// Forward declaration of the read4 API.
int read4(char *buf);
class Solution
{
private:
stack<char> s;
public:
/**
* @param ... | 14.4 | 51 | 0.553241 | [
"vector"
] |
10c36182b83781bb3997b75682ceff0a404ba31c | 6,389 | cpp | C++ | Clase6 08-11-21/GRAPHS_DFS/DFS_implementacion.cpp | FabiTaparaQuispe/LabADAGrupoB | cb12f6408329ac94b47425615545e094e65b3875 | [
"BSD-3-Clause"
] | null | null | null | Clase6 08-11-21/GRAPHS_DFS/DFS_implementacion.cpp | FabiTaparaQuispe/LabADAGrupoB | cb12f6408329ac94b47425615545e094e65b3875 | [
"BSD-3-Clause"
] | null | null | null | Clase6 08-11-21/GRAPHS_DFS/DFS_implementacion.cpp | FabiTaparaQuispe/LabADAGrupoB | cb12f6408329ac94b47425615545e094e65b3875 | [
"BSD-3-Clause"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include<fstream>
#include<bits/stdc++.h>
/*
* Ejercicio 4 DFS Implementacion
* Autor: Fabiola Tapara Quispe
* Description: Implementacion del algoritmo DFS fstream y ostream
* Date: 08/11/21
*/
using namespace std;
//Primero generamos una matriz que contenga ceros para asi... | 26.292181 | 119 | 0.5198 | [
"vector"
] |
10c4506a82a17e637825b97dadcc01fe602c6eb0 | 8,594 | cpp | C++ | lib/qextserial/qextserialport.cpp | nddvn2008/bullet-physics-playground | 2895af190054b6a38525b679cf3f241c7147ee6f | [
"Zlib"
] | 1 | 2015-10-05T01:25:18.000Z | 2015-10-05T01:25:18.000Z | lib/qextserial/qextserialport.cpp | nddvn2008/bullet-physics-playground | 2895af190054b6a38525b679cf3f241c7147ee6f | [
"Zlib"
] | null | null | null | lib/qextserial/qextserialport.cpp | nddvn2008/bullet-physics-playground | 2895af190054b6a38525b679cf3f241c7147ee6f | [
"Zlib"
] | 2 | 2015-01-02T20:02:13.000Z | 2018-02-26T03:08:43.000Z |
#include <stdio.h>
#include "qextserialport.h"
/*!
Default constructor. Note that the name of the device used by a QextSerialPort constructed with
this constructor will be determined by #defined constants, or lack thereof - the default behavior
is the same as _TTY_LINUX_. Possible naming conventions and their asso... | 29.331058 | 131 | 0.711659 | [
"object"
] |
10ce18eb1455dd3c697b6608a8397c853829a411 | 2,455 | cpp | C++ | leetcode/zigzagLevelOrder.cpp | jcpince/algorithms | c43dd8e98a0f0df691ead5f25c2c17a9241db908 | [
"MIT"
] | null | null | null | leetcode/zigzagLevelOrder.cpp | jcpince/algorithms | c43dd8e98a0f0df691ead5f25c2c17a9241db908 | [
"MIT"
] | null | null | null | leetcode/zigzagLevelOrder.cpp | jcpince/algorithms | c43dd8e98a0f0df691ead5f25c2c17a9241db908 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<vector<int>> zigzagLevelOrder(TreeNode* root) {
if (!root) return {};
... | 31.883117 | 93 | 0.505499 | [
"vector"
] |
10cece643ff42489e8a0413ea46ec84b05f1c53a | 23,711 | cc | C++ | test/paxos_impl_test.cc | dengoswei/cpaxos | bccad547e7ea80d953fa495199f15680b1c555a6 | [
"Apache-2.0"
] | 6 | 2015-09-09T15:30:17.000Z | 2021-03-29T20:11:54.000Z | test/paxos_impl_test.cc | dengoswei/cpaxos | bccad547e7ea80d953fa495199f15680b1c555a6 | [
"Apache-2.0"
] | null | null | null | test/paxos_impl_test.cc | dengoswei/cpaxos | bccad547e7ea80d953fa495199f15680b1c555a6 | [
"Apache-2.0"
] | null | null | null | #include <deque>
#include "gtest/gtest.h"
#include "paxos.pb.h"
#include "test_helper.h"
#include "paxos_instance.h"
#include "paxos_impl.h"
#include "mem_utils.h"
#include "hassert.h"
#include "log_utils.h"
#include "random_utils.h"
#include "id_utils.h"
using namespace std;
using namespace paxos;
using namespace te... | 36.422427 | 90 | 0.548311 | [
"vector"
] |
10d1b45a625d9eae32d73249b39366e7f1efd25c | 10,804 | hpp | C++ | include/Manifold.hpp | sdmg15/CDT-plusplus | 13071b61677e0c1db077f252dcab25ea672bbe9d | [
"BSD-3-Clause"
] | 1 | 2019-10-05T10:58:34.000Z | 2019-10-05T10:58:34.000Z | include/Manifold.hpp | sdmg15/CDT-plusplus | 13071b61677e0c1db077f252dcab25ea672bbe9d | [
"BSD-3-Clause"
] | null | null | null | include/Manifold.hpp | sdmg15/CDT-plusplus | 13071b61677e0c1db077f252dcab25ea672bbe9d | [
"BSD-3-Clause"
] | 1 | 2020-07-13T03:39:34.000Z | 2020-07-13T03:39:34.000Z | /// Causal Dynamical Triangulations in C++ using CGAL
///
/// Copyright © 2018-2019 Adam Getchell
///
/// Simplicial Manifold data structures
///
/// @file Manifold.hpp
/// @brief Data structures for manifolds
/// @author Adam Getchell
#ifndef CDT_PLUSPLUS_MANIFOLD_HPP
#define CDT_PLUSPLUS_MANIFOLD_HPP
#include "Fol... | 32.739394 | 78 | 0.692892 | [
"geometry",
"vector",
"3d"
] |
10d46f8a003a57ff9bd504c5d952ff00bc532ba9 | 5,256 | hpp | C++ | Source/AllProjects/CQCWebSrv/Client/WebRIVACmp/WebRIVACmp_Data.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCWebSrv/Client/WebRIVACmp/WebRIVACmp_Data.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCWebSrv/Client/WebRIVACmp/WebRIVACmp_Data.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | // ----------------------------------------------------------------------------
// FILE: WebRIVACmp_Data.hpp
// DATE: Fri, Feb 12 21:14:15 2021 -0500
//
// This file was generated by the Charmed Quark CIDIDL compiler. Do not make
// changes by hand, because they will be lost if the file is regenerated.
// ---------... | 39.518797 | 136 | 0.512747 | [
"object"
] |
10d7961abc065c908cbd93e5f0576da49e7d9913 | 3,634 | cpp | C++ | VulkanAbstractionLayer/ComputeShader.cpp | asc-community/VulkanAbstractionLayer | d020585654ec2168dbe5bdec6ec5ddc773f02700 | [
"BSD-3-Clause"
] | 16 | 2021-09-24T11:20:00.000Z | 2022-03-10T16:28:27.000Z | VulkanAbstractionLayer/ComputeShader.cpp | MomoDeve/VulkanAbstractionLayer | d020585654ec2168dbe5bdec6ec5ddc773f02700 | [
"BSD-3-Clause"
] | 16 | 2021-06-25T22:18:06.000Z | 2021-08-17T23:36:50.000Z | VulkanAbstractionLayer/ComputeShader.cpp | vkdev-team/VulkanAbstractionLayer | d020585654ec2168dbe5bdec6ec5ddc773f02700 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T01:12:32.000Z | 2022-01-03T01:12:32.000Z | // Copyright(c) 2021, #Momo
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met :
//
// 1. Redistributions of source code must retain the above copyright notice, this
// list of conditions and th... | 35.281553 | 87 | 0.707485 | [
"vector"
] |
10d85fba011025ac56b01eb6414e03b99b567195 | 2,840 | cpp | C++ | UVA/FrequentValues.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | UVA/FrequentValues.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | UVA/FrequentValues.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
#include <stack>
#include <queue>
#include <math.h>
#include <string.h>
#define ll long long
#define MAXN 100002
using namespace std;
int n, q, a, b, v[MAXN], freq[MAXN], tree[MAXN*4];
void build(int idx, int l, int r){
if(l > r){
... | 25.357143 | 64 | 0.335915 | [
"vector"
] |
10dad8dcf7bb15a736af42ea0b1d8aed5fb56dd1 | 2,776 | cpp | C++ | TAO/tests/Bug_2935_Regression/source.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/tests/Bug_2935_Regression/source.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/tests/Bug_2935_Regression/source.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | //$Id: source.cpp 82911 2008-10-02 19:02:17Z johnnyw $
# include "source_i.h"
// A ThreeTier client that calls tick and/or tock
const ACE_TCHAR * ior_input_file = 0;
char input_ior[5000];
void eat_args (int & argc, ACE_TCHAR *argv[], int argp, int how_many)
{
for (int marg = argp; marg + how_many < argc; ++marg)... | 24.785714 | 83 | 0.514409 | [
"object"
] |
10dd7438227b9f872505a477b9d0ce8d9269c8b2 | 851 | cpp | C++ | codeforces/1003C - Intense Heat.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | 1 | 2018-12-25T23:55:19.000Z | 2018-12-25T23:55:19.000Z | codeforces/1003C - Intense Heat.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | null | null | null | codeforces/1003C - Intense Heat.cpp | Dijkstraido-2/online-judge | 31844cd8fbd5038cc5ebc6337d68229cef133a30 | [
"MIT"
] | null | null | null | //============================================================================
// Problem : 1003C - Intense Heat
// Category : Brute force
//============================================================================
#include <bits/stdc++.h>
using namespace std;
typedef vector<int> vi;
int main()
{
ios_base::s... | 25.029412 | 78 | 0.319624 | [
"vector"
] |
10deeff46ba8d3b20e91620fe82de1627c97d1b5 | 612 | cpp | C++ | USACO/Bronze/Misc/LemonadeLine.cpp | polarr/competitive-programming | 06e41fd72c785eb5621e20669d76ed99fafab901 | [
"CC0-1.0"
] | 1 | 2020-12-16T19:08:51.000Z | 2020-12-16T19:08:51.000Z | USACO/Bronze/Misc/LemonadeLine.cpp | polarr/competitive-programming | 06e41fd72c785eb5621e20669d76ed99fafab901 | [
"CC0-1.0"
] | null | null | null | USACO/Bronze/Misc/LemonadeLine.cpp | polarr/competitive-programming | 06e41fd72c785eb5621e20669d76ed99fafab901 | [
"CC0-1.0"
] | null | null | null | /** Code by 1egend **/
// Problem:
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define ull unsigned long long
const int MAX_N = 1e5 + 1;
const int MOD = 1e9 + 7;
ifstream fin("lemonade.in");
ofstream fout("lemonade.out");
void solve(){
int x;
fin >> x;
vector <int> line;
for (int i = 0; i... | 16.105263 | 33 | 0.560458 | [
"vector"
] |
10e8e58ff5bfc4a5d6eed5aa2c0f33ea296a1953 | 44,615 | cpp | C++ | src/svgren/renderer.cpp | igagis/svgren | 9eaa993992aa28aab6453d920adab281299f3dcc | [
"MIT"
] | 133 | 2015-10-30T08:38:38.000Z | 2020-11-12T09:08:29.000Z | src/svgren/renderer.cpp | igagis/svgren | 9eaa993992aa28aab6453d920adab281299f3dcc | [
"MIT"
] | 78 | 2016-02-15T12:12:44.000Z | 2020-11-27T09:22:29.000Z | src/svgren/renderer.cpp | igagis/svgren | 9eaa993992aa28aab6453d920adab281299f3dcc | [
"MIT"
] | 34 | 2016-07-14T04:06:17.000Z | 2020-11-28T01:33:35.000Z | /*
The MIT License (MIT)
Copyright (c) 2015-2021 Ivan Gagis <igagis@gmail.com>
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,... | 28.201643 | 146 | 0.66964 | [
"object",
"vector",
"transform",
"solid"
] |
10f5b86ec50f423a23509792a467d7f9d3894a98 | 3,647 | cpp | C++ | game/code/common/engine/render/ogles1.1/fixedogldepthstencilstate.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/code/common/engine/render/ogles1.1/fixedogldepthstencilstate.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | null | null | null | game/code/common/engine/render/ogles1.1/fixedogldepthstencilstate.cpp | justinctlam/MarbleStrike | 64fe36a5a4db2b299983b0e2556ab1cd8126259b | [
"MIT"
] | 2 | 2019-03-08T03:02:45.000Z | 2019-05-14T08:41:26.000Z | #if defined( RENDER_PLAT_OGLES1_1)
//////////////////////////////////////////////////////
// INCLUDES
//////////////////////////////////////////////////////
#include "iphone/render/ogles1.1/fixedogldepthstencilstate.hpp"
#include "iphone/render/ogles1.1/fixedoglwrapper.hpp"
#include "common/engine/game/gameapp.hpp"
#... | 27.014815 | 94 | 0.654236 | [
"render"
] |
10fb7af9b1d6062537dda8c3763eb88bcd821508 | 15,387 | cpp | C++ | earth_enterprise/src/common/packetfile/packetindexwriter.cpp | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | 3 | 2017-12-21T05:40:09.000Z | 2018-05-16T11:18:25.000Z | earth_enterprise/src/common/packetfile/packetindexwriter.cpp | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | null | null | null | earth_enterprise/src/common/packetfile/packetindexwriter.cpp | seamusdunlop123/earthenterprise | a2651b1c00dd6230fd5d3d47502d228dbfca0f63 | [
"Apache-2.0"
] | 1 | 2020-06-21T09:36:13.000Z | 2020-06-21T09:36:13.000Z | // Copyright 2017 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 in... | 36.290094 | 84 | 0.669006 | [
"vector"
] |
10fbce2a5ca108ee3efc61cfaa1dd99251c27073 | 888 | cpp | C++ | algorithm/algorithm/1/209_minimum-size-subarray-sum/main.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 1 | 2020-10-01T14:52:45.000Z | 2020-10-01T14:52:45.000Z | algorithm/algorithm/1/209_minimum-size-subarray-sum/main.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | 3 | 2020-08-13T07:51:54.000Z | 2021-01-29T11:17:25.000Z | algorithm/algorithm/1/209_minimum-size-subarray-sum/main.cpp | 6923403/C | d365021759e6d9078254b4b7b6455e0408e4b691 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int minSubArrayLen(int target, vector<int>& nums) {
int n = nums.size();
int count = 0;
int ret = n + 1;
int len = 0;
for(int i = 0; i < n; i++)
{
count = 0;
l... | 21.658537 | 55 | 0.385135 | [
"vector"
] |
80054b6edabd50db90607b093db6b3e32d5002e9 | 8,344 | cpp | C++ | Source/Material.cpp | findux/ToolKit | 3caa97441318d19fe0a6e3d13d88dfbdb60afb44 | [
"MIT"
] | 32 | 2020-10-16T00:17:14.000Z | 2022-03-02T18:25:58.000Z | Source/Material.cpp | findux/ToolKit | 3caa97441318d19fe0a6e3d13d88dfbdb60afb44 | [
"MIT"
] | 1 | 2021-09-19T12:18:17.000Z | 2022-02-23T06:53:30.000Z | Source/Material.cpp | findux/ToolKit | 3caa97441318d19fe0a6e3d13d88dfbdb60afb44 | [
"MIT"
] | 5 | 2020-09-18T09:04:40.000Z | 2022-02-11T12:44:55.000Z | #include "stdafx.h"
#include "Material.h"
#include "ToolKit.h"
#include "Util.h"
#include "rapidxml.hpp"
#include "rapidxml_utils.hpp"
#include "DebugNew.h"
namespace ToolKit
{
Material::Material()
{
m_color = Vec3(1.0f);
m_type = ResourceType::Material;
}
Material::Material(String file)
: Materi... | 24.759644 | 111 | 0.635427 | [
"solid"
] |
80096b18fbcf34f31fe498af7665c71ec9b88b00 | 17,576 | cc | C++ | GeneratorInterface/HydjetInterface/src/HydjetHadronizer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | GeneratorInterface/HydjetInterface/src/HydjetHadronizer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | GeneratorInterface/HydjetInterface/src/HydjetHadronizer.cc | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | /*
########################
# Hydjet1 #
# version: 1.9 patch1 #
########################
* Interface to the HYDJET generator, produces HepMC events
*
* Original Author: Camelia Mironov
*/
#include <iostream>
#include <cmath>
#include "boost/lexical_cast.hpp"
#include "FWCore/Concurrency/interface/Share... | 34.261209 | 113 | 0.663291 | [
"object",
"vector",
"transform"
] |
8017b4bf35cce8d49f58115839060e027df22943 | 3,974 | cpp | C++ | baselines/1_CCGrid15/src/model/spliter.cpp | JinYang88/LogZip | 796bd632623d010989fb7dfa61f51c72ea6b68b4 | [
"MIT"
] | 1 | 2019-10-06T07:31:14.000Z | 2019-10-06T07:31:14.000Z | baselines/1_CCGrid15/src/model/spliter.cpp | JinYang88/LogZip | 796bd632623d010989fb7dfa61f51c72ea6b68b4 | [
"MIT"
] | null | null | null | baselines/1_CCGrid15/src/model/spliter.cpp | JinYang88/LogZip | 796bd632623d010989fb7dfa61f51c72ea6b68b4 | [
"MIT"
] | null | null | null | /* Cowic is a C++ library to compress formatted log like Apache access log.
*
* Cowic is released under the New BSD license (see LICENSE.txt). Go to the
* project home page for more info:
*
* https://github.com/linhao1990/cowic.git
*/
//spliter.cpp
#include "spliter.h"
const string openChars = "([{'\"";
const s... | 29.656716 | 121 | 0.632612 | [
"vector"
] |
801c2004fccd431d3142355c1c3aa9af9288272d | 36,867 | cpp | C++ | src/mame/drivers/gp_2.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/drivers/gp_2.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/drivers/gp_2.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Robbbert
/*****************************************************************************************
PINBALL
Game Plan MPU-2
When first turned on, you need to press num-0 to enter the setup program, then keep
pressing num-0 until 06 shows in the credits display. Press the c... | 42.868605 | 152 | 0.684542 | [
"model"
] |
801c4fbe28237727e20141d483eb34cd120ddfd3 | 91,148 | cpp | C++ | cheats/menu.cpp | xsoma/Legendware-V3 | de63ad96fe233f81c5952c327469239de223f08c | [
"Unlicense"
] | 13 | 2021-03-12T14:30:32.000Z | 2022-02-22T12:25:08.000Z | cheats/menu.cpp | xsoma/Legendware-V3 | de63ad96fe233f81c5952c327469239de223f08c | [
"Unlicense"
] | 2 | 2021-07-19T20:51:14.000Z | 2021-11-21T06:15:25.000Z | cheats/menu.cpp | CSGOLeaks/Legendware-V3 | de63ad96fe233f81c5952c327469239de223f08c | [
"Unlicense"
] | 17 | 2021-02-10T08:33:02.000Z | 2022-03-03T17:14:24.000Z | #include <ShlObj_core.h>
#include "menu.h"
#include "../ImGui/code_editor.h"
#include "../constchars.h"
#include "../cheats/misc/logs.h"
#define ALPHA (ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaBar| ImGuiCol... | 32.634443 | 353 | 0.669592 | [
"render",
"vector",
"model"
] |
80338642587696c85e8070a42c97590c0a344609 | 7,473 | cpp | C++ | src/mongo/db/s/resharding/resharding_oplog_session_application.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/s/resharding/resharding_oplog_session_application.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/s/resharding/resharding_oplog_session_application.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2021-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 45.290909 | 100 | 0.653553 | [
"vector"
] |
d9a6b889edefa46298574076f280718c07966102 | 1,260 | hpp | C++ | src/Core/CommandInterpreter.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | 1 | 2017-02-17T13:01:13.000Z | 2017-02-17T13:01:13.000Z | src/Core/CommandInterpreter.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | null | null | null | src/Core/CommandInterpreter.hpp | mlaszko/DisCODe | 0042280ae6c1ace8c6e0fa25ae4d440512c113f6 | [
"MIT"
] | 1 | 2018-07-23T00:05:58.000Z | 2018-07-23T00:05:58.000Z | /*!
* \file CommandInterpreter.hpp
* \brief Command interpreter.
* \author mstefanc
* \date Oct 3, 2010
*/
#ifndef COMMANDINTERPRETER_HPP_
#define COMMANDINTERPRETER_HPP_
#include <vector>
#include <string>
#include <map>
#include <boost/function.hpp>
#include "Informer.hpp"
namespace Core {
struct Command {... | 17.260274 | 72 | 0.699206 | [
"vector"
] |
d9a96af5e02eba37cadd5f56cbfe8982b0dbea4f | 9,151 | cpp | C++ | PearlSDL/src/Pearl/Core/Application.cpp | tissinn/PearlSDL | afae586a47a33118036f56ae1f9ea33efccacb1d | [
"Apache-2.0"
] | 1 | 2020-06-29T06:55:10.000Z | 2020-06-29T06:55:10.000Z | PearlSDL/src/Pearl/Core/Application.cpp | tissinn/PearlSDL | afae586a47a33118036f56ae1f9ea33efccacb1d | [
"Apache-2.0"
] | null | null | null | PearlSDL/src/Pearl/Core/Application.cpp | tissinn/PearlSDL | afae586a47a33118036f56ae1f9ea33efccacb1d | [
"Apache-2.0"
] | null | null | null | #include "pearlpch.h"
#include "Application.h"
namespace Pearl
{
Application* Application::s_Instance = nullptr;
/**
* Default Constructor
* Clients: Do not initialize values in constructor:
* See "OnAttach()".
*/
Application::Application()
: m_Title(DEFAULT_TITLE),
m_Width(DEFAULT_WIDTH),
m... | 22.103865 | 123 | 0.67173 | [
"render",
"object"
] |
d9ae7e96835701c80a1a605e0bc96040de719e51 | 8,210 | cpp | C++ | dev/dev_in_native_CPP/dev/src/StubCreater/CCHeaderCreator.cpp | CountrySideEngineer/CStubMk | fda187747eee04d54e242904567c650de88e70a5 | [
"MIT"
] | null | null | null | dev/dev_in_native_CPP/dev/src/StubCreater/CCHeaderCreator.cpp | CountrySideEngineer/CStubMk | fda187747eee04d54e242904567c650de88e70a5 | [
"MIT"
] | null | null | null | dev/dev_in_native_CPP/dev/src/StubCreater/CCHeaderCreator.cpp | CountrySideEngineer/CStubMk | fda187747eee04d54e242904567c650de88e70a5 | [
"MIT"
] | null | null | null | /*
* CCHeaderCreater.cpp
*
* Created on: 2016/04/01
* Author: Kensuke
*/
#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <cctype>
#include <cstdio>
#include "CCHeaderCreator.h"
using namespace std;
String CCHeaderCreator::CreateHeaderMacro(String FileName)
{
String... | 29.963504 | 78 | 0.622168 | [
"transform"
] |
d9b34a15440cb797d4aaca6ef8f30831fd3e8f72 | 28,227 | cpp | C++ | OpenGL_GLFW_Project/GLFW_Init.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | OpenGL_GLFW_Project/GLFW_Init.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | OpenGL_GLFW_Project/GLFW_Init.cpp | millerf1234/OpenGL_Windows_Projects | 26161ba3c820df366a83baaf6e2a275d874c6acd | [
"MIT"
] | null | null | null | // Performs the necessary steps to get GLFW up and running on program startup.
// Performs the necessary steps to get GLFW up and running on program startup.
// Also does the steps to close the window once program has completed running.
//
// GLFW_Init.cpp
//
// First Created by Forrest Miller on 2/12/18 on a Ma... | 44.522082 | 160 | 0.629256 | [
"object"
] |
d9bdc59165fa05b411ed98283cecb437b0129eac | 1,062 | cpp | C++ | c/class_compos_priv.cpp | bheckel/code | 98309e8aa145901e49460546643c911eaaff54e6 | [
"Apache-2.0"
] | 1 | 2019-08-11T00:39:34.000Z | 2019-08-11T00:39:34.000Z | c/class_compos_priv.cpp | bheckel/code | 98309e8aa145901e49460546643c911eaaff54e6 | [
"Apache-2.0"
] | null | null | null | c/class_compos_priv.cpp | bheckel/code | 98309e8aa145901e49460546643c911eaaff54e6 | [
"Apache-2.0"
] | 1 | 2020-07-28T05:58:47.000Z | 2020-07-28T05:58:47.000Z | //////////////////////////////////////////////////////////////////////////////
// Name: class_composition_priv.cpp (see class_simple.h)
//
// Summary: Demo of using public composition within a basic, almost useless,
// class. Does NOT use inheritance.
//
// Adapted: Wed 31 Oct 2001 14:06:05 (Bob Hecke... | 29.5 | 78 | 0.438795 | [
"object"
] |
d9c140087ee9edfadc52fc17e2c94bcb946d8f84 | 4,151 | cpp | C++ | COREdcs/clientGUI/src/DCSProfileWidget.cpp | m-fila/ELITPCdcs | 5c6fdc09fb4c3c63139f8adc3e303ba74a3ad94e | [
"MIT"
] | null | null | null | COREdcs/clientGUI/src/DCSProfileWidget.cpp | m-fila/ELITPCdcs | 5c6fdc09fb4c3c63139f8adc3e303ba74a3ad94e | [
"MIT"
] | null | null | null | COREdcs/clientGUI/src/DCSProfileWidget.cpp | m-fila/ELITPCdcs | 5c6fdc09fb4c3c63139f8adc3e303ba74a3ad94e | [
"MIT"
] | null | null | null | #include "DCSProfileWidget.h"
DCSProfileWidget::DCSProfileWidget(QWidget *parent) : QWidget(parent) {
auto *mainLayout = new QHBoxLayout(this);
auto *box = new QGroupBox("Profile", this);
mainLayout->addWidget(box);
setLayout(mainLayout);
auto *innerLayout = new QHBoxLayout(this);
box->setLayou... | 35.784483 | 90 | 0.6649 | [
"object"
] |
d9ce60ac0f705166d48ceecfdc28db8ed64585a1 | 4,283 | cpp | C++ | Core/Tests/ListTests.cpp | DeltaEngine/DeltaEngineCpp | 7be036473927750a89b8ccaefd425c07d7dd3319 | [
"Apache-2.0"
] | 7 | 2015-02-01T21:03:22.000Z | 2021-06-29T03:27:28.000Z | Core/Tests/ListTests.cpp | DeltaEngine/DeltaEngineCpp | 7be036473927750a89b8ccaefd425c07d7dd3319 | [
"Apache-2.0"
] | null | null | null | Core/Tests/ListTests.cpp | DeltaEngine/DeltaEngineCpp | 7be036473927750a89b8ccaefd425c07d7dd3319 | [
"Apache-2.0"
] | 7 | 2015-02-19T11:46:56.000Z | 2019-08-17T12:37:04.000Z | #include "CppUnitTest.h"
#include "CppUnitTestCoreSupport.h"
#include "Core\List.h"
#include "Core\ArrayHelper.h"
#include <memory>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace DeltaEngine { namespace Core { namespace Tests
{
TEST_CLASS(ListTests)
{
public:
TEST_METHOD(List_Empty)
{... | 23.026882 | 87 | 0.623395 | [
"vector"
] |
d9d402d7c51556a3b7a083c35a5d7176d13f8408 | 5,890 | cpp | C++ | QuantExt/qle/termstructures/blackvariancesurfacemoneyness.cpp | paul-giltinan/Engine | 49b6e142905ca2cce93c2ae46e9ac69380d9f7a1 | [
"BSD-3-Clause"
] | null | null | null | QuantExt/qle/termstructures/blackvariancesurfacemoneyness.cpp | paul-giltinan/Engine | 49b6e142905ca2cce93c2ae46e9ac69380d9f7a1 | [
"BSD-3-Clause"
] | null | null | null | QuantExt/qle/termstructures/blackvariancesurfacemoneyness.cpp | paul-giltinan/Engine | 49b6e142905ca2cce93c2ae46e9ac69380d9f7a1 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2017 Quaternion Risk Management Ltd
All rights reserved.
This file is part of ORE, a free-software/open-source library
for transparent pricing and risk analysis - http://opensourcerisk.org
ORE is free software: you can redistribute it and/or modify it
under the terms of the Modified BSD License... | 39.530201 | 119 | 0.677589 | [
"vector",
"model"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.