hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 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 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 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 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ce07682a7675348821658eed791d68f3fb84485 | 705 | cpp | C++ | Cplus/FindKClosestElements.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/FindKClosestElements.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/FindKClosestElements.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <vector>
using namespace std;
/*
user defined comp must meets the requirement comp(a,b)=true then must comp(b,a)=false
heap comp is quiet different from sort
*/
class Solution
{
public:
vector<int> findClosestElements(vector<int> &arr, int k, int x)
{
vector<int> res... | 19.583333 | 85 | 0.585816 | JumHorn |
c9e530ef0c6abc1ee26d229f30a47cd02010ea87 | 1,315 | cpp | C++ | core/src/Buffer.cpp | marlinprotocol/OpenWeaver | 7a8c668cccc933d652fabe8a141e702b8a0fd066 | [
"MIT"
] | 60 | 2020-07-01T17:37:34.000Z | 2022-02-16T03:56:55.000Z | core/src/Buffer.cpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 5 | 2020-10-12T05:17:49.000Z | 2021-05-25T15:47:01.000Z | core/src/Buffer.cpp | marlinpro/openweaver | 0aca30fbda3121a8e507f48a52b718b5664a5bbc | [
"MIT"
] | 18 | 2020-07-01T17:43:18.000Z | 2022-01-09T14:29:08.000Z | #include "marlin/core/Buffer.hpp"
#include "marlin/core/Endian.hpp"
#include <cstring>
#include <cassert>
#include <algorithm>
namespace marlin {
namespace core {
Buffer::Buffer(size_t size) :
BaseBuffer(new uint8_t[size], size) {}
Buffer::Buffer(std::initializer_list<uint8_t> il, size_t size) :
BaseBuffer(new uint8... | 17.77027 | 64 | 0.676806 | marlinprotocol |
c9e575ea04e3456f55c807006ae051c5563336a5 | 913 | cpp | C++ | tests/fixtures.cpp | quotekio/quotek-ig | df27a3a5c7295f8652482b54d20c2f7462cbdad8 | [
"BSD-3-Clause"
] | 1 | 2019-04-27T08:20:15.000Z | 2019-04-27T08:20:15.000Z | tests/fixtures.cpp | quotekio/quotek-ig | df27a3a5c7295f8652482b54d20c2f7462cbdad8 | [
"BSD-3-Clause"
] | null | null | null | tests/fixtures.cpp | quotekio/quotek-ig | df27a3a5c7295f8652482b54d20c2f7462cbdad8 | [
"BSD-3-Clause"
] | null | null | null | #include "fixtures.hpp"
igConnector* get_igconnector(string broker_params) {
return new igConnector(broker_params, false, false, "poll");
}
igConnector* get_igconnector_connected_pollmode(string broker_params) {
igConnector* c = new igConnector(broker_params, false, false, "poll");
c->connect();
return c;
}... | 29.451613 | 103 | 0.743702 | quotekio |
c9e6b6668fb2c26603ed8054076c27ecf4ed5a62 | 816 | cpp | C++ | sandbox/src1/TCSE3-3rd-examples/src/py/mixed/Grid2D/C++/notes/test.cpp | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 5 | 2016-05-28T14:12:28.000Z | 2021-04-22T10:23:12.000Z | sandbox/src1/TCSE3-3rd-examples/src/py/mixed/Grid2D/C++/notes/test.cpp | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | null | null | null | sandbox/src1/TCSE3-3rd-examples/src/py/mixed/Grid2D/C++/notes/test.cpp | sniemi/SamPy | e048756feca67197cf5f995afd7d75d8286e017b | [
"BSD-2-Clause"
] | 2 | 2015-07-13T10:04:10.000Z | 2021-04-22T10:23:23.000Z | // This program does not work properly
#include <NumPyArray.h>
#define PY_ARRAY_UNIQUE_SYMBOL mytest
#include <iostream>
extern "C" {
void test()
{
npy_intp dim1[1]; dim1[0] = 3;
PyArrayObject* a = (PyArrayObject*) PyArray_FromDims(1, dim1, NPY_DOUBLE);
}
}
int main()
{
std::cout << "H1" << std::endl;
impor... | 22.666667 | 76 | 0.583333 | sniemi |
c9e90f4638a387a1a8b0c70f4d25ad0e598e5754 | 2,022 | hpp | C++ | libs/muddle/internal/routing_message.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | 1 | 2019-09-11T09:46:04.000Z | 2019-09-11T09:46:04.000Z | libs/muddle/internal/routing_message.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | null | null | null | libs/muddle/internal/routing_message.hpp | devjsc/ledger | 5681480faf6e2aeee577f149c17745d6ab4d4ab3 | [
"Apache-2.0"
] | 1 | 2019-09-19T12:38:46.000Z | 2019-09-19T12:38:46.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... | 24.071429 | 92 | 0.637982 | devjsc |
c9ea29fbc34909304d6ef9fd554c3785101d4a3d | 17,753 | cpp | C++ | SampleFramework12/v1.02/Graphics/Sampling.cpp | BalazsJako/DXRPathTracer | 948693d73c7f9474d98482e99e85416750b29286 | [
"MIT"
] | 456 | 2018-10-29T03:51:23.000Z | 2022-03-21T02:26:20.000Z | SampleFramework12/v1.02/Graphics/Sampling.cpp | BalazsJako/DXRPathTracer | 948693d73c7f9474d98482e99e85416750b29286 | [
"MIT"
] | 8 | 2018-10-31T05:31:19.000Z | 2020-03-31T21:00:27.000Z | SampleFramework12/v1.02/Graphics/Sampling.cpp | BalazsJako/DXRPathTracer | 948693d73c7f9474d98482e99e85416750b29286 | [
"MIT"
] | 48 | 2018-10-29T05:36:41.000Z | 2022-02-10T23:42:25.000Z | //=================================================================================================
//
// MJP's DX12 Sample Framework
// http://mynameismjp.wordpress.com/
//
// All code licensed under the MIT license
//
//===============================================================================================... | 33.559546 | 128 | 0.581198 | BalazsJako |
c9eaf4debea92386c086cef9890988a1e15e5b2a | 1,859 | hpp | C++ | include/bptree/internal/map_traits.hpp | jason2506/bptree | 388156024d4df32cc88c188e5801b1b460be083d | [
"MIT"
] | null | null | null | include/bptree/internal/map_traits.hpp | jason2506/bptree | 388156024d4df32cc88c188e5801b1b460be083d | [
"MIT"
] | null | null | null | include/bptree/internal/map_traits.hpp | jason2506/bptree | 388156024d4df32cc88c188e5801b1b460be083d | [
"MIT"
] | null | null | null | /************************************************
* map_traits.hpp
* bptree
*
* Copyright (c) 2017, Chi-En Wu
* Distributed under MIT License
************************************************/
#ifndef BPTREE_INTERNAL_MAP_TRAITS_HPP_
#define BPTREE_INTERNAL_MAP_TRAITS_HPP_
#include <functional>
#include <util... | 26.183099 | 77 | 0.56213 | jason2506 |
c9ed8e108c6c92acbe0bdf17e9de649315336ad3 | 1,614 | cc | C++ | chrome/browser/ui/ash/notification_badge_color_cache_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/browser/ui/ash/notification_badge_color_cache_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/browser/ui/ash/notification_badge_color_cache_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2021 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 <memory>
#include "chrome/browser/ui/ash/notification_badge_color_cache.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/color... | 34.340426 | 79 | 0.760843 | zealoussnow |
c9ee362018ee1f85ad09dd40c1cdfa126a1a70b1 | 10,244 | cpp | C++ | tests/djvRender2DTest/FontSystemTest.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | tests/djvRender2DTest/FontSystemTest.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | tests/djvRender2DTest/FontSystemTest.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 Darby Johnston
// All rights reserved.
#include <djvRender2DTest/FontSystemTest.h>
#include <djvRender2D/Data.h>
#include <djvRender2D/FontSystem.h>
#include <djvSystem/Context.h>
#include <djvSystem/TimerFunc.h>
#include <djvMath/VectorFunc.h>
#i... | 37.661765 | 107 | 0.443479 | pafri |
c9f05ef3dbf4d1636a8b3ba4790e0e5ac37adc73 | 1,030 | cpp | C++ | Source/Rotary_Slider.cpp | Silver92/My-Delay | 96afc7eab81d11c7b59b6a270c40741124afa9db | [
"MIT"
] | null | null | null | Source/Rotary_Slider.cpp | Silver92/My-Delay | 96afc7eab81d11c7b59b6a270c40741124afa9db | [
"MIT"
] | null | null | null | Source/Rotary_Slider.cpp | Silver92/My-Delay | 96afc7eab81d11c7b59b6a270c40741124afa9db | [
"MIT"
] | null | null | null | /*
==============================================================================
Slider.cpp
Created: 6 Sep 2019 7:11:44am
Author: Silver
==============================================================================
*/
#include "Rotary_Slider.h"
#include "UIDemensions.h"
RotarySlider:... | 28.611111 | 83 | 0.493204 | Silver92 |
c9f1969fd6163e4256c57b21a89a18ac9443bc3f | 412 | cpp | C++ | CodeForces.com/educational_rounds/er3/A.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | CodeForces.com/educational_rounds/er3/A.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | CodeForces.com/educational_rounds/er3/A.cpp | mstrechen/cp | ffac439840a71f70580a0ef197e47479e167a0eb | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<int> flashes;
int main(){
ios::sync_with_stdio(false);
int n,m,tmp;
cin >> n >> m;
for(int i = 0; i<n; i++)
{
cin >> tmp;
flashes.push_back(tmp);
}
stable_sort(flashes.begin(), flashes.end());
int summ... | 18.727273 | 47 | 0.572816 | mstrechen |
c9f836d17615390c1da31bb2e36b20ffc1cfaf1e | 2,437 | cpp | C++ | export/release/windows/obj/src/webm/WebmEvent.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/webm/WebmEvent.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/webm/WebmEvent.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED_openfl_events_Event
#include <openfl/events/Event.h>
#endif
#ifndef INCLUDED_webm_WebmEvent
#include <webm/WebmEvent.h>
#endif
HX_DEFINE_STACK_FRAME(_hx_pos_a611475ca79daef8_14_new,"webm.WebmEvent","new",0x3feaff7e,"webm.WebmEvent.new","webm/WebmEvent.hx"... | 32.065789 | 143 | 0.74682 | bobisdabbing |
c9fb517c3105e4973b205960ccaff1c3bb645f86 | 5,439 | cpp | C++ | src/SpotLight.cpp | lemurni/Engine186-Linux | 2c1569aecee76974078ffba1df2ac38e6b3f9238 | [
"CC0-1.0"
] | 3 | 2020-03-10T16:41:41.000Z | 2021-12-13T11:36:12.000Z | src/SpotLight.cpp | lemurni/Engine186-Linux | 2c1569aecee76974078ffba1df2ac38e6b3f9238 | [
"CC0-1.0"
] | null | null | null | src/SpotLight.cpp | lemurni/Engine186-Linux | 2c1569aecee76974078ffba1df2ac38e6b3f9238 | [
"CC0-1.0"
] | 1 | 2021-10-20T02:18:38.000Z | 2021-10-20T02:18:38.000Z | #include "SpotLight.h"
namespace e186
{
const float SpotLight::k_max_outer_angle = glm::pi<float>() - 0.4f;
SpotLight::SpotLight(const glm::vec3& color, const glm::vec3& position, const glm::vec3& direction)
: m_position(position),
m_direction(glm::normalize(direction)),
m_light_color(color),
m_at... | 29.721311 | 122 | 0.720169 | lemurni |
c9fbbdd94d4ae715b47a127a24e761c723b8f60a | 11,246 | cc | C++ | third_party/blink/common/scheduler/web_scheduler_tracked_feature.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | third_party/blink/common/scheduler/web_scheduler_tracked_feature.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | third_party/blink/common/scheduler/web_scheduler_tracked_feature.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 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 "third_party/blink/public/common/scheduler/web_scheduler_tracked_feature.h"
#include <map>
namespace blink {
namespace scheduler {
namespace {... | 47.855319 | 84 | 0.746221 | DamieFC |
c9fceef901b20ec1fb7883d7985fb2b7bb9020f2 | 360 | cpp | C++ | src/triangulo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | src/triangulo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | src/triangulo.cpp | Italo1994/Laboratorio2-IMD0030 | ebe3df127ec78914d2feca77f92bf398e61c023c | [
"MIT"
] | null | null | null | #include "triangulo.h"
Triangulo::Triangulo(int b, int a, int l1, int l2, int l3): base (b), altura(a), lado1(l1), lado2(l2), lado3(l3) {
area = (base * altura) / 2;
perimetro = lado1 + lado2 + lado3;
}
Triangulo::~Triangulo(){
}
int Triangulo::getAreaTriangulo(){
return area;
}
int Triangulo::getPeri... | 20 | 115 | 0.65 | Italo1994 |
c9fcf751bcf9da261f8b409fd9bc9e802f0eabb5 | 15,449 | cpp | C++ | windows/wrapper/impl_org_webRtc_WebRtcFactory.cpp | tallestorange/webrtc-apis | e3b06e3f1d3cbe7fdcbffa026d6e0fd4f6dd5efd | [
"BSD-3-Clause"
] | null | null | null | windows/wrapper/impl_org_webRtc_WebRtcFactory.cpp | tallestorange/webrtc-apis | e3b06e3f1d3cbe7fdcbffa026d6e0fd4f6dd5efd | [
"BSD-3-Clause"
] | null | null | null | windows/wrapper/impl_org_webRtc_WebRtcFactory.cpp | tallestorange/webrtc-apis | e3b06e3f1d3cbe7fdcbffa026d6e0fd4f6dd5efd | [
"BSD-3-Clause"
] | null | null | null |
#include "impl_org_webRtc_WebRtcFactory.h"
#include "impl_org_webRtc_WebRtcFactoryConfiguration.h"
#include "impl_org_webRtc_WebRtcLib.h"
#include "impl_org_webRtc_AudioBufferEvent.h"
#include "impl_org_webRtc_AudioProcessingInitializeEvent.h"
#include "impl_org_webRtc_AudioProcessingRuntimeSettingEvent.h"
#include "i... | 36.609005 | 228 | 0.677131 | tallestorange |
c9fdfafe4c4b3e567b497ef5910d12fe02001249 | 3,901 | cc | C++ | paddle/fluid/framework/ir/memory_optimize_pass/while_op_eager_deletion_pass.cc | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 17,085 | 2016-11-18T06:40:52.000Z | 2022-03-31T22:52:32.000Z | paddle/fluid/framework/ir/memory_optimize_pass/while_op_eager_deletion_pass.cc | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 29,769 | 2016-11-18T06:35:22.000Z | 2022-03-31T16:46:15.000Z | paddle/fluid/framework/ir/memory_optimize_pass/while_op_eager_deletion_pass.cc | zmxdream/Paddle | 04f042a5d507ad98f7f2cfc3cbc44b06d7a7f45c | [
"Apache-2.0"
] | 4,641 | 2016-11-18T07:43:33.000Z | 2022-03-31T15:15:02.000Z | // Copyright (c) 2019 PaddlePaddle Authors. 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... | 40.216495 | 79 | 0.66829 | zmxdream |
a00293545a9fb8ed884163cac2906093759d1645 | 4,969 | cc | C++ | libs/jsRuntime/src/CppBridge/V8NativeObject.cc | v8App/v8App | 96c5278ae9078d508537f2e801b9ba0272ab1168 | [
"MIT"
] | null | null | null | libs/jsRuntime/src/CppBridge/V8NativeObject.cc | v8App/v8App | 96c5278ae9078d508537f2e801b9ba0272ab1168 | [
"MIT"
] | null | null | null | libs/jsRuntime/src/CppBridge/V8NativeObject.cc | v8App/v8App | 96c5278ae9078d508537f2e801b9ba0272ab1168 | [
"MIT"
] | null | null | null | // Copyright 2020 The v8App Authors. All rights reserved.
// Use of this source code is governed by a MIT license that can be
// found in the LICENSE file.
#include "CppBridge/V8NativeObject.h"
#include "CppBridge/V8ObjectTemplateBuilder.h"
namespace v8App
{
namespace JSRuntime
{
namespace CppBridge
... | 37.643939 | 139 | 0.546388 | v8App |
a0037d69dffd17fb983fcbb45ab1fdc85f09292b | 827 | cpp | C++ | serverapp/src/db/SystemPlan.cpp | mjgerdes/cg | be378b140df7d7e9bd16512a1d9a54d3439b03f7 | [
"MIT"
] | null | null | null | serverapp/src/db/SystemPlan.cpp | mjgerdes/cg | be378b140df7d7e9bd16512a1d9a54d3439b03f7 | [
"MIT"
] | null | null | null | serverapp/src/db/SystemPlan.cpp | mjgerdes/cg | be378b140df7d7e9bd16512a1d9a54d3439b03f7 | [
"MIT"
] | null | null | null |
#include "SystemPlan.hpp"
#include "SystemProvider.hpp"
#include "CardProvider.hpp"
using namespace db;
SystemPlan::SystemPlan() : m_systemId(data::SystemData::universal), m_cards() {}
SystemPlan::SystemPlan(const System& system)
: m_systemId(system.id()), m_cards() {
fillCards(system);
}
void SystemPlan::fillC... | 27.566667 | 80 | 0.697703 | mjgerdes |
a006086cc4e575c937f9df394afc6c76d7b60e8b | 3,603 | cpp | C++ | test/training_data/plag_original_codes/abc070_d_7677426_229_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | 13 | 2021-01-20T19:53:16.000Z | 2021-11-14T16:30:32.000Z | test/training_data/plag_original_codes/abc070_d_7677426_229_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | test/training_data/plag_original_codes/abc070_d_7677426_229_plag.cpp | xryuseix/SA-Plag | 167f7a2b2fa81ff00fd5263772a74c2c5c61941d | [
"MIT"
] | null | null | null | /*
引用元:https://atcoder.jp/contests/abc070/tasks/abc070_d
D - Transit Tree PathEditorial
// ソースコードの引用元 : https://atcoder.jp/contests/abc070/submissions/7677426
// 提出ID : 7677426
// 問題ID : abc070_d
// コンテストID : abc070
// ユーザID : xryuseix
// コード長 : 3404
// 実行時間 : 232
*/
#include <iostream>
#include <cstdio>
#include <a... | 21.070175 | 70 | 0.541216 | xryuseix |
a0093081a33b7c151b80af4a84cfecacdc5dd687 | 3,068 | cpp | C++ | apps/JAWS3/jaws3/THYBRID_Concurrency.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | apps/JAWS3/jaws3/THYBRID_Concurrency.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | apps/JAWS3/jaws3/THYBRID_Concurrency.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // $Id: THYBRID_Concurrency.cpp 91813 2010-09-17 07:52:52Z johnnyw $
#include "ace/OS_NS_stdlib.h"
#include "ace/Message_Block.h"
#ifndef JAWS_BUILD_DLL
#define JAWS_BUILD_DLL
#endif
#include "jaws3/Concurrency.h"
#include "jaws3/THYBRID_Concurrency.h"
#include "jaws3/Protocol_Handler.h"
#include "jaws3/Options.h"
... | 23.419847 | 78 | 0.594524 | cflowe |
a00ad16a9c56394bfeb58832cc16f4bbf7192940 | 179 | cpp | C++ | avs_dx/DxVisualsShaders/dummy.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 33 | 2019-01-28T03:32:17.000Z | 2022-02-12T18:17:26.000Z | avs_dx/DxVisualsShaders/dummy.cpp | visbot/vis_avs_dx | 03e55f8932a97ad845ff223d3602ff2300c3d1d4 | [
"MIT"
] | 2 | 2019-11-18T17:54:58.000Z | 2020-07-21T18:11:21.000Z | avs_dx/DxVisualsShaders/dummy.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 5 | 2019-02-16T23:00:11.000Z | 2022-03-27T15:22:10.000Z | // A dummy function to make linker happy. This project doesn't contain any C++ code, it's workaround for the build system to compile HLSL shaders.
void dxVisualsShadersDummy() { } | 89.5 | 146 | 0.77095 | Const-me |
a0122b244080bddb8d9dd5a1bfd0dfabc0393fdf | 18,257 | cpp | C++ | groups/bal/ball/ball_categorymanager.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2021-04-28T13:51:30.000Z | 2021-04-28T13:51:30.000Z | groups/bal/ball/ball_categorymanager.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | null | null | null | groups/bal/ball/ball_categorymanager.cpp | apaprocki/bde | ba252cb776f92fae082d5d422aa2852a9be46849 | [
"Apache-2.0"
] | 1 | 2019-06-26T13:28:48.000Z | 2019-06-26T13:28:48.000Z | // ball_categorymanager.cpp -*-C++-*-
#include <ball_categorymanager.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(ball_categorymanager_cpp,"$Id$ $CSID$")
#include <ball_severity.h>
#include <ball_thresholdaggregate.h>
#include <bdlb_bitutil.h>
#include <bslmt_lockguard.h>
#i... | 36.296223 | 79 | 0.502821 | apaprocki |
a0154cad5ee3f14c61a484da48ca2e2c15880a50 | 751 | hpp | C++ | src/common/transformations/include/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | null | null | null | src/common/transformations/include/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | null | null | null | src/common/transformations/include/transformations/common_optimizations/remove_multi_subgraph_op_dangling_params.hpp | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <memory>
#include <openvino/pass/graph_rewrite.hpp>
#include <transformations_visibility.hpp>
#include <vector>
namespace ov {
namespace pass {
class TRANSFORMATIONS_API RemoveMultiSubGraphOpDanglingParams;
... | 23.46875 | 84 | 0.782956 | ryanloney |
a0159dc3a92d4ff6155b45e980387d2581dc446c | 2,110 | cpp | C++ | solutions/find_median_from_data_stream.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/find_median_from_data_stream.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/find_median_from_data_stream.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | // Median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middle value.
// For example,
// [2,3,4], the median is 3
// [2,3], the median is (2 + 3) / 2 = 2.5
// Design a data structure that supports the following two oper... | 27.051282 | 167 | 0.574882 | kmykoh97 |
a0173ef17d8c9b06cfdb019689f2eb2661e49b6f | 807 | cc | C++ | Tests/KinematicLineFit_unit.cc | orionning676/KinKal | 689ec932155b7fe31d46c398bcb78bcac93581d7 | [
"Apache-1.1"
] | 2 | 2020-04-21T18:24:55.000Z | 2020-09-24T19:01:47.000Z | Tests/KinematicLineFit_unit.cc | orionning676/KinKal | 689ec932155b7fe31d46c398bcb78bcac93581d7 | [
"Apache-1.1"
] | 45 | 2020-03-16T18:27:59.000Z | 2022-01-13T05:18:35.000Z | Tests/KinematicLineFit_unit.cc | orionning676/KinKal | 689ec932155b7fe31d46c398bcb78bcac93581d7 | [
"Apache-1.1"
] | 15 | 2020-02-21T01:10:49.000Z | 2022-03-24T12:13:35.000Z | /*
Original Author: S Middleton 2020
*/
#include "KinKal/Trajectory/KinematicLine.hh"
#include "KinKal/Tests/FitTest.hh"
int main(int argc, char *argv[]){
KinKal::DVEC sigmas(0.5, 0.004, 0.5, 0.002, 0.4, 0.05); // expected parameter sigmas
if(argc == 1){
cout << "Adding momentum constraint" << endl;
std... | 32.28 | 86 | 0.665428 | orionning676 |
a0174acc6305ac4def91ae9040c200768e5cf6db | 630 | cpp | C++ | dotNetInstallerLib/Schema.cpp | baSSiLL/dotnetinstaller | 2a983649553cd322f674fe06685f0c1d47f638b2 | [
"MIT"
] | null | null | null | dotNetInstallerLib/Schema.cpp | baSSiLL/dotnetinstaller | 2a983649553cd322f674fe06685f0c1d47f638b2 | [
"MIT"
] | null | null | null | dotNetInstallerLib/Schema.cpp | baSSiLL/dotnetinstaller | 2a983649553cd322f674fe06685f0c1d47f638b2 | [
"MIT"
] | 1 | 2020-04-30T10:25:58.000Z | 2020-04-30T10:25:58.000Z | #include "StdAfx.h"
#include "Schema.h"
#include "InstallerLog.h"
Schema::Schema()
: generator(L"dotNetInstaller InstallerEditor")
, version(L"1")
{
}
void Schema::Load(TiXmlElement * node)
{
CHECK_BOOL(node != NULL,
L"Expected 'schema' node");
CHECK_BOOL(0 == strcmp(node->Value(), "schema"),
... | 25.2 | 85 | 0.653968 | baSSiLL |
a01903a488a67c23fda4047cd668a16ad59506b9 | 7,238 | hpp | C++ | xvm/xvm.hpp | kiven-li/xscrip | ed762811aaf502ee20b5d00083926f7647def57d | [
"MIT"
] | 15 | 2018-11-10T11:30:09.000Z | 2022-02-28T06:00:57.000Z | xvm/xvm.hpp | kiven-li/xscrip | ed762811aaf502ee20b5d00083926f7647def57d | [
"MIT"
] | null | null | null | xvm/xvm.hpp | kiven-li/xscrip | ed762811aaf502ee20b5d00083926f7647def57d | [
"MIT"
] | 10 | 2019-06-19T03:33:53.000Z | 2021-08-20T01:24:42.000Z | #ifndef __XSCRIPT_XVM_HPP__
#define __XSCRIPT_XVM_HPP__
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdarg.h>
#include <time.h>
#include <ctype.h>
#include <assert.h>
#include <vector>
#include "xvm_interface.hpp"
#include "../common/instruction.hpp"... | 28.952 | 106 | 0.668002 | kiven-li |
a01de795ae2657ed39ae4096188e7469caf791cd | 9,362 | hpp | C++ | kernel/src/dispatch_syscall_callback_op.hpp | kangdazhi/hypervisor | 95848672b1b2907f37f91343ae139d1bbd858b9d | [
"MIT"
] | null | null | null | kernel/src/dispatch_syscall_callback_op.hpp | kangdazhi/hypervisor | 95848672b1b2907f37f91343ae139d1bbd858b9d | [
"MIT"
] | null | null | null | kernel/src/dispatch_syscall_callback_op.hpp | kangdazhi/hypervisor | 95848672b1b2907f37f91343ae139d1bbd858b9d | [
"MIT"
] | null | null | null | /// @copyright
/// Copyright (C) 2020 Assured Information Security, Inc.
///
/// @copyright
/// 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 limita... | 40.528139 | 97 | 0.508118 | kangdazhi |
a022ac19edb278e205ce512be3d327b5683c5499 | 3,060 | cpp | C++ | examples/mongocxx/document_validation.cpp | CURG-old/mongo-cxx-driver | 06d29a00e4e554e7930e3f8ab40ebcecc9ab31c8 | [
"Apache-2.0"
] | null | null | null | examples/mongocxx/document_validation.cpp | CURG-old/mongo-cxx-driver | 06d29a00e4e554e7930e3f8ab40ebcecc9ab31c8 | [
"Apache-2.0"
] | null | null | null | examples/mongocxx/document_validation.cpp | CURG-old/mongo-cxx-driver | 06d29a00e4e554e7930e3f8ab40ebcecc9ab31c8 | [
"Apache-2.0"
] | 1 | 2021-06-18T05:00:10.000Z | 2021-06-18T05:00:10.000Z | // Copyright 2016 MongoDB 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 wri... | 34 | 92 | 0.643137 | CURG-old |
a0248e1851cfb8395910016eba296900989e99b4 | 1,917 | cpp | C++ | 17. Game_Routes.cpp | Anksus/CSES-Graph-solutions | 6e9ce06abb8a3f5c8a9824add8dd8f31b7cf219c | [
"MIT"
] | null | null | null | 17. Game_Routes.cpp | Anksus/CSES-Graph-solutions | 6e9ce06abb8a3f5c8a9824add8dd8f31b7cf219c | [
"MIT"
] | null | null | null | 17. Game_Routes.cpp | Anksus/CSES-Graph-solutions | 6e9ce06abb8a3f5c8a9824add8dd8f31b7cf219c | [
"MIT"
] | null | null | null | // While recurring to the destination node, we set all the nodes to 0.
// but the last one to 1 and getting this values pass to all the routes back,
// so that they can be collected back at 1st node.
// act[mxN] is for detecting cycle, just a bellman ford stuff.
// There are 2 approach to solve this problem (accord... | 23.378049 | 77 | 0.573292 | Anksus |
a02565115fb30ef33bab0959829b930788072e17 | 2,730 | hxx | C++ | com/oleutest/balls/common/cballs.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/oleutest/balls/common/cballs.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/oleutest/balls/common/cballs.hxx | 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 - 1992.
//
// File: cballs.hxx
//
// Contents: Class to encapsulate demo of distributed binding interface
//
// Classes: CBall
//
// History: 06-Aug-92 Ricks... | 25.277778 | 77 | 0.538095 | npocmaka |
a028105f6e3e6e5d7a78a3bd808b5bc8619bff86 | 1,249 | inl | C++ | ZEngine/include/zengine/Debug/Assert.inl | AarnoldGad/ZucchiniEngine | cb27d2a534a3f21ec59eaa116f052a169a811c06 | [
"Zlib"
] | 1 | 2020-12-04T17:56:22.000Z | 2020-12-04T17:56:22.000Z | ZEngine/include/zengine/Debug/Assert.inl | AarnoldGad/ZEngine | cb27d2a534a3f21ec59eaa116f052a169a811c06 | [
"Zlib"
] | 1 | 2022-02-02T23:24:34.000Z | 2022-02-02T23:24:34.000Z | ZEngine/include/zengine/Debug/Assert.inl | AarnoldGad/ZucchiniEngine | cb27d2a534a3f21ec59eaa116f052a169a811c06 | [
"Zlib"
] | null | null | null | #include <zengine/Memory/New.hpp>
// Inspired by https://www.foonathan.net/2016/09/assertions/
[[noreturn]] inline void ze::AssertHandler::handle(SourceLocation const& location, char const* expression, char const* message) noexcept
{
LOG_TRACE(location.file, "::", location.function, " (", location.line, ") : Asser... | 46.259259 | 169 | 0.698959 | AarnoldGad |
a02f68e17ca378ce63bfbdc9931fb683cd610aa4 | 1,950 | cpp | C++ | engine/source/wide/ui/property/basic/ui_property_image.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | engine/source/wide/ui/property/basic/ui_property_image.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | engine/source/wide/ui/property/basic/ui_property_image.cpp | skarab/coffee-master | 6c3ff71b7f15735e41c9859b6db981b94414c783 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------------------------//
/// @file wide/ui/property/basic/ui_property_image.cpp
//------------------------------------------------------------------------------------------------//
//-INCLUDES---------------------------------------------------... | 36.111111 | 100 | 0.372308 | skarab |
a036b667983dbdbeaca972ec404cf0132a4ea5a3 | 3,348 | cpp | C++ | game/source/Behaviour/SplashProjectile.cpp | kermado/Total-Resistance | debaf40ba3be6590a70c9922e1d1a5e075f4ede3 | [
"MIT"
] | 3 | 2015-04-25T22:57:58.000Z | 2019-11-05T18:36:31.000Z | game/source/Behaviour/SplashProjectile.cpp | kermado/Total-Resistance | debaf40ba3be6590a70c9922e1d1a5e075f4ede3 | [
"MIT"
] | 1 | 2016-06-23T15:22:41.000Z | 2016-06-23T15:22:41.000Z | game/source/Behaviour/SplashProjectile.cpp | kermado/Total-Resistance | debaf40ba3be6590a70c9922e1d1a5e075f4ede3 | [
"MIT"
] | null | null | null | #include "Behaviour/SplashProjectile.hpp"
#include <Engine/Audio.hpp>
#include <Engine/Event/CreateGameObjectEvent.hpp>
#include <Engine/Event/DestroyGameObjectEvent.hpp>
#include "ExplosionFactory.hpp"
#include "Attribute/Tags.hpp"
#include "Event/InflictDamageEvent.hpp"
namespace Behaviour
{
SplashProjectile::Sp... | 33.818182 | 110 | 0.744325 | kermado |
a03d8ed258004936ac8f44675099ff97e78181fb | 5,341 | cpp | C++ | modules/juce_audio_devices/native/juce_emscripten_Midi.cpp | genkiinstruments/juce_emscripten | 9fcda4deecf1f6d8cefc483a8858e1bbecc72809 | [
"ISC"
] | 80 | 2019-12-31T15:16:19.000Z | 2022-02-17T22:52:25.000Z | modules/juce_audio_devices/native/juce_emscripten_Midi.cpp | genkiinstruments/juce_emscripten | 9fcda4deecf1f6d8cefc483a8858e1bbecc72809 | [
"ISC"
] | 1 | 2020-07-17T04:26:19.000Z | 2020-07-17T06:56:19.000Z | modules/juce_audio_devices/native/juce_emscripten_Midi.cpp | genkiinstruments/juce_emscripten | 9fcda4deecf1f6d8cefc483a8858e1bbecc72809 | [
"ISC"
] | 9 | 2019-12-26T12:18:29.000Z | 2021-12-27T18:51:38.000Z | /*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
The code included in this file is provided under the terms of the ISC... | 31.052326 | 112 | 0.646134 | genkiinstruments |
a03f729b1293946b3523fc84442e7876160610fa | 7,024 | cxx | C++ | main/extensions/source/bibliography/bibview.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/extensions/source/bibliography/bibview.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/extensions/source/bibliography/bibview.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 30.672489 | 95 | 0.528474 | Grosskopf |
a0406ccdce644546f2185d212f0c2f34a8cf96ba | 354 | hpp | C++ | src/communication.hpp | linyinfeng/n-body | e40c859689d76a3f36cd08e072d7ee24685e8be4 | [
"MIT"
] | 1 | 2021-11-28T15:13:06.000Z | 2021-11-28T15:13:06.000Z | src/communication.hpp | linyinfeng/n-body | e40c859689d76a3f36cd08e072d7ee24685e8be4 | [
"MIT"
] | null | null | null | src/communication.hpp | linyinfeng/n-body | e40c859689d76a3f36cd08e072d7ee24685e8be4 | [
"MIT"
] | 1 | 2019-11-10T14:01:55.000Z | 2019-11-10T14:01:55.000Z | #ifndef N_BODY_COMMUNICATION_HPP
#define N_BODY_COMMUNICATION_HPP
#include <boost/mpi.hpp>
#include <cstddef>
namespace n_body::communication {
struct Division {
std::size_t count;
std::size_t begin;
std::size_t end;
explicit Division(const boost::mpi::communicator &comm, std::size_t total);
};
} // namesp... | 17.7 | 77 | 0.751412 | linyinfeng |
a04202528f03e4f290ab1977f6fae7c936e73feb | 3,449 | cc | C++ | src/camera/bin/device/stream_impl_client.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/camera/bin/device/stream_impl_client.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | src/camera/bin/device/stream_impl_client.cc | casey/fuchsia | 2b965e9a1e8f2ea346db540f3611a5be16bb4d6b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2020 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 <lib/async-loop/default.h>
#include <lib/async/cpp/task.h>
#include <lib/syslog/cpp/logger.h>
#include <sstream>
#include "src/camera/bin/device... | 33.485437 | 96 | 0.724848 | casey |
a04221971486748c6703dd6b1138f6b3e6465e7b | 4,217 | cpp | C++ | src/interpreter.cpp | nirvanasupermind/pocketlisp | 2a4b5aca245c547d88f581fefd89cca5473d8a1f | [
"MIT"
] | 1 | 2022-03-18T18:43:04.000Z | 2022-03-18T18:43:04.000Z | src/interpreter.cpp | nirvanasupermind/pocketlisp | 2a4b5aca245c547d88f581fefd89cca5473d8a1f | [
"MIT"
] | null | null | null | src/interpreter.cpp | nirvanasupermind/pocketlisp | 2a4b5aca245c547d88f581fefd89cca5473d8a1f | [
"MIT"
] | null | null | null | #include "./parser.cpp"
#include "./scopes.cpp"
#include "./utils.cpp"
namespace lispy
{
class Interpreter
{
public:
std::string file;
Interpreter(std::string file)
{
this->file = file;
}
Value visit(Node node, Scope *scope)
{
std::c... | 31.007353 | 121 | 0.417595 | nirvanasupermind |
a043887263fac9b983f96da13c7c3292e444f870 | 257 | cpp | C++ | 3.Stacks and Queues/Queue_STL.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 3.Stacks and Queues/Queue_STL.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | 3.Stacks and Queues/Queue_STL.cpp | suraj0803/DSA | 6ea21e452d7662e2351ee2a7b0415722e1bbf094 | [
"MIT"
] | null | null | null | #include<iostream>
#include<queue>
using namespace std;
int main()
{
queue<int> q;
for(int i=0; i<5; i++){
q.push(i);
}
while(!q.empty()){
cout<<q.front()<<" <-";
q.pop();
}
return 0;
} | 12.85 | 32 | 0.424125 | suraj0803 |
a049820edb55dcd6be4a699bd20a58ebd84d510e | 3,618 | cpp | C++ | src/C/Security-57031.40.6/SecurityTests/clxutils/dotMacArchive/identSearch.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 34 | 2015-02-04T18:03:14.000Z | 2020-11-10T06:45:28.000Z | src/C/Security-57031.40.6/SecurityTests/clxutils/dotMacArchive/identSearch.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 5 | 2015-06-30T21:17:00.000Z | 2016-06-14T22:31:51.000Z | src/C/Security-57031.40.6/SecurityTests/clxutils/dotMacArchive/identSearch.cpp | GaloisInc/hacrypto | 5c99d7ac73360e9b05452ac9380c1c7dc6784849 | [
"BSD-3-Clause"
] | 15 | 2015-10-29T14:21:58.000Z | 2022-01-19T07:33:14.000Z | /*
* Copyright (c) 2004-2005 Apple Computer, Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file exc... | 27.203008 | 79 | 0.712272 | GaloisInc |
a04992790c1b99c1b77e7f32a3d8c02b1009cae9 | 3,464 | cpp | C++ | package/win32/android/gameplay/src/Layout.cpp | sharkpp/openhsp | 0d412fd8f79a6ccae1d33c13addc06fb623fb1fe | [
"BSD-3-Clause"
] | 1 | 2021-06-17T02:16:22.000Z | 2021-06-17T02:16:22.000Z | package/win32/android/gameplay/src/Layout.cpp | sharkpp/openhsp | 0d412fd8f79a6ccae1d33c13addc06fb623fb1fe | [
"BSD-3-Clause"
] | null | null | null | package/win32/android/gameplay/src/Layout.cpp | sharkpp/openhsp | 0d412fd8f79a6ccae1d33c13addc06fb623fb1fe | [
"BSD-3-Clause"
] | 1 | 2021-06-17T02:16:23.000Z | 2021-06-17T02:16:23.000Z | #include "Base.h"
#include "Layout.h"
#include "Control.h"
#include "Container.h"
namespace gameplay
{
void Layout::align(Control* control, const Container* container)
{
GP_ASSERT(control);
GP_ASSERT(container);
if (control->_alignment != Control::ALIGN_TOP_LEFT ||
control->_isAlign... | 40.27907 | 180 | 0.637413 | sharkpp |
a04c7ab0203bbceaa445fee1a93471cb65575331 | 1,474 | cpp | C++ | src/prod/src/data/txnreplicator/RuntimeFolders.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/data/txnreplicator/RuntimeFolders.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/data/txnreplicator/RuntimeFolders.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 28.346154 | 124 | 0.694708 | vishnuk007 |
a05100200dbd0ae514766364c276a2c3061690f4 | 13,826 | cpp | C++ | src/snmp/session.cpp | Aseman-Land/QtSnmp | 4e04214d94324d4ed43d15ea77950b026bfd9b3b | [
"MIT"
] | null | null | null | src/snmp/session.cpp | Aseman-Land/QtSnmp | 4e04214d94324d4ed43d15ea77950b026bfd9b3b | [
"MIT"
] | null | null | null | src/snmp/session.cpp | Aseman-Land/QtSnmp | 4e04214d94324d4ed43d15ea77950b026bfd9b3b | [
"MIT"
] | null | null | null | #include "session.h"
#include "qtsnmpdata.h"
#include "requestvaluesjob.h"
#include "requestsubvaluesjob.h"
#include "setvaluejob.h"
#include "defines.h"
#include <QDateTime>
#include <QHostAddress>
#include <math.h>
namespace qtsnmpclient {
namespace {
const int default_response_timeout = 10000;
const quint1... | 36.193717 | 114 | 0.553595 | Aseman-Land |
a05224a0765c154870c5f2f17a1fe3122e5c54c9 | 585 | cpp | C++ | Cplus/CanMakePalindromefromSubstring.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/CanMakePalindromefromSubstring.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/CanMakePalindromefromSubstring.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
using namespace std;
class Solution
{
public:
vector<bool> canMakePaliQueries(string s, vector<vector<int>> &queries)
{
vector<bool> res;
int N = s.length();
vector<int> prefixsum(N + 1);
for (int i = 0; i < N; ++i)
prefixsum[i + 1] = (prefixsum[i] ^ (1 << (s[i] - 'a'))... | 18.870968 | 72 | 0.567521 | JumHorn |
a054a212010b793ac03b4ef74271f1b57987dc30 | 2,663 | cpp | C++ | Source Code V2/TssTest/RickerSource.cpp | DavidGeUSA/TSS | e364e324948c68efc6362a0db3aa51696227fa60 | [
"MIT"
] | 11 | 2020-09-27T07:35:22.000Z | 2022-03-09T11:01:31.000Z | Source Code V2/TssTest/RickerSource.cpp | DavidGeUSA/TSS | e364e324948c68efc6362a0db3aa51696227fa60 | [
"MIT"
] | 1 | 2020-10-28T13:14:58.000Z | 2020-10-28T21:04:44.000Z | Source Code V2/TssTest/RickerSource.cpp | DavidGeUSA/TSS | e364e324948c68efc6362a0db3aa51696227fa60 | [
"MIT"
] | 7 | 2020-09-27T07:35:24.000Z | 2022-01-02T13:53:21.000Z | /*******************************************************************
Author: David Ge (dge893@gmail.com, aka Wei Ge)
Last modified: 11/21/2020
Allrights reserved by David Ge
field source of Ricker function
********************************************************************/
#include "RickerSource.h"
RickerS... | 24.657407 | 122 | 0.524972 | DavidGeUSA |
a0552676f57568454f99572c6c398e69c234c3cb | 3,411 | cpp | C++ | resolvedShotestPathGridDFSBFS.cpp | jkerkela/best-algorithm-collection | 6b22536a9f8ebdf3ae134031d41becf30066a5ef | [
"MIT"
] | null | null | null | resolvedShotestPathGridDFSBFS.cpp | jkerkela/best-algorithm-collection | 6b22536a9f8ebdf3ae134031d41becf30066a5ef | [
"MIT"
] | null | null | null | resolvedShotestPathGridDFSBFS.cpp | jkerkela/best-algorithm-collection | 6b22536a9f8ebdf3ae134031d41becf30066a5ef | [
"MIT"
] | null | null | null | class Solution {
public:
int nextStepDims[4][2] = { {0,1},{0,-1},{1,0},{-1,0} };
int gridWidth;
int gridHeight;
int shortestBridge(vector<vector<int>>& A) {
return resolveShortestPathJoiningIslandsDFSBFS(A);
}
int resolveShortestPathJoiningIslandsDFSBFS(vector<vector<int>>... | 44.881579 | 159 | 0.56523 | jkerkela |
a05608ff85f4cba18a3d7f4b7eb83ecb96cb4308 | 96,243 | cpp | C++ | quantlibnode.cpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 27 | 2016-11-19T16:51:21.000Z | 2021-09-08T16:44:15.000Z | quantlibnode.cpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 1 | 2016-12-28T16:38:38.000Z | 2017-02-17T05:32:13.000Z | quantlibnode.cpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 10 | 2016-12-28T02:31:38.000Z | 2021-06-15T09:02:07.000Z | /*
Copyright (C) 2016 -2017 Jerry Jin
*/
#include <v8.h>
#include <node.h>
#include <nan.h>
#include "quantlibnode.hpp"
#include <oh/repository.hpp>
#include <oh/enumerations/typefactory.hpp>
#include <oh/enumerations/enumregistry.hpp>
#include <qlo/enumerations/register/register_all.hpp>
using namespace node;
us... | 87.414169 | 165 | 0.821203 | quantlibnode |
a058976055137f5f03ab6c450097495f3357939f | 1,894 | cc | C++ | ehpc/src/model/SetJobUserRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | ehpc/src/model/SetJobUserRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | ehpc/src/model/SetJobUserRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 1 | 2020-11-27T09:13:12.000Z | 2020-11-27T09:13:12.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 25.594595 | 83 | 0.75132 | iamzken |
a06049ac17c49765ab36004d06fec4e0014a9098 | 943 | cpp | C++ | Contests/_Archived/Old-Lab/lg1434-lower-score-after-redo.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Lab/lg1434-lower-score-after-redo.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | Contests/_Archived/Old-Lab/lg1434-lower-score-after-redo.cpp | DCTewi/My-Codes | 9904f8057ec96e21cbc8cf9c62a49658a0f6d392 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e2 + 5;
int height[MAXN][MAXN], len[MAXN][MAXN];
int directs[4][2] = {{1, 0}, {0, 1}, {-1, 0}, {0, -1}};
int r, c;
int ans = 0;
void dfs(int x, int y)
{
if (x < 0 || x >= r || y < 0 || y >= c) return;
for (int i = 0; i < 4; i++)
{
int newx = x + d... | 18.490196 | 68 | 0.484624 | DCTewi |
a060f63262b77064c704df214dca93a80cb7c929 | 410 | cpp | C++ | remove-element/solution.cpp | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | 3 | 2018-05-08T14:08:50.000Z | 2019-02-28T00:10:14.000Z | remove-element/solution.cpp | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | null | null | null | remove-element/solution.cpp | Javran/leetcode | f3899fe1424d3cda72f44102bab6dd95a7c7a320 | [
"MIT"
] | null | null | null | #include <vector>
class Solution {
public:
int removeElement(std::vector<int>& nums, int val) {
int newSz = 0;
// as we know newSz is always less or equal to i (implicit here)
// the write access should be fine
for (int n : nums) {
if (n != val) {
nums[ne... | 22.777778 | 72 | 0.47561 | Javran |
a06106b3a8a98dd65658b2db5b7d77b19197e70e | 1,100 | cpp | C++ | Scripts/497.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | 17 | 2018-08-23T08:53:56.000Z | 2021-04-17T00:06:13.000Z | Scripts/497.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | Scripts/497.cpp | zzz0906/LeetCode | cd0b4a4fd03d0dff585c9ef349984eba1922ece0 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> rects;
vector<int> acc_weights;
int area_total = 0;
Solution(vector<vector<int>>& rects) {
this->rects = rects;
for (auto rect : rects){
area_total += (rect[2]-rect[0] + 1) * (rect[3] - rect[1] + 1);
this->acc_weights.... | 26.190476 | 74 | 0.497273 | zzz0906 |
a0612f0b5015f839d8c53e2de9d78fc53418444f | 563 | hpp | C++ | include/openpose/core/cvMatToOpInput.hpp | noussquid/openpose | e60b5d385f5b26c27be9c2a3bcfddb6648480fc4 | [
"MIT-CMU"
] | 7 | 2018-05-03T01:10:56.000Z | 2021-01-12T10:39:47.000Z | include/openpose/core/cvMatToOpInput.hpp | clhne/openpose | 29b6697d4c4afa919ac0b63c1ed80c5020cbe0df | [
"MIT-CMU"
] | null | null | null | include/openpose/core/cvMatToOpInput.hpp | clhne/openpose | 29b6697d4c4afa919ac0b63c1ed80c5020cbe0df | [
"MIT-CMU"
] | 6 | 2018-03-31T06:54:59.000Z | 2021-08-18T12:10:42.000Z | #ifndef OPENPOSE_CORE_CV_MAT_TO_OP_INPUT_HPP
#define OPENPOSE_CORE_CV_MAT_TO_OP_INPUT_HPP
#include <opencv2/core/core.hpp> // cv::Mat
#include <openpose/core/common.hpp>
namespace op
{
class OP_API CvMatToOpInput
{
public:
std::vector<Array<float>> createArray(const cv::Mat& cvInputData,
... | 29.631579 | 98 | 0.634103 | noussquid |
a0613bf5354c09cdd9ab153af28f2572f48b9b28 | 37,947 | cpp | C++ | unittests/rem_rotation_test.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | null | null | null | unittests/rem_rotation_test.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | null | null | null | unittests/rem_rotation_test.cpp | kushnirenko/remprotocol | ec450227a40bb18527b473266b07b982efc1d093 | [
"MIT"
] | null | null | null | /**
* @file
* @copyright defined in eos/LICENSE.txt
*/
#include <eosio/chain/abi_serializer.hpp>
#include <eosio/testing/tester.hpp>
#include <Runtime/Runtime.h>
#include <fc/variant_object.hpp>
#include <boost/test/unit_test.hpp>
#include <contracts.hpp>
#ifdef NON_VALIDATING_TEST
#define TESTER tester
#else... | 45.282816 | 231 | 0.584236 | kushnirenko |
a066e565e42e392490b7c5fe524de9689dc97351 | 3,866 | cpp | C++ | src/services/artifact.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | null | null | null | src/services/artifact.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 10 | 2018-03-02T13:58:32.000Z | 2020-06-05T11:12:42.000Z | src/services/artifact.cpp | EmanuelHerrendorf/mapping-core | d28d85547e8ed08df37dad1da142594d3f07a366 | [
"MIT"
] | 3 | 2018-02-26T14:01:43.000Z | 2019-12-09T10:03:17.000Z |
#include "services/httpservice.h"
#include "userdb/userdb.h"
#include "util/configuration.h"
#include "util/concat.h"
#include "util/exceptions.h"
#include "util/curl.h"
#include "util/timeparser.h"
#include <cstring>
#include <sstream>
#include <json/json.h>
/*
* This class provides access to the artifacts in the ... | 27.614286 | 103 | 0.665546 | EmanuelHerrendorf |
a068978f377f85f1696facda1bc974c27b17f582 | 2,849 | cpp | C++ | src/pid.cpp | carmeloevoli/SimProp-beta | 6d3fce16b0d288abcd36b439ef181b50e96b1ee6 | [
"MIT"
] | null | null | null | src/pid.cpp | carmeloevoli/SimProp-beta | 6d3fce16b0d288abcd36b439ef181b50e96b1ee6 | [
"MIT"
] | null | null | null | src/pid.cpp | carmeloevoli/SimProp-beta | 6d3fce16b0d288abcd36b439ef181b50e96b1ee6 | [
"MIT"
] | null | null | null | #include "simprop/pid.h"
#include <map>
#include <string>
#include "simprop/units.h"
namespace simprop {
PID getPidNucleus(const int& Z, const int& A) {
if (A < 0 || Z > A) throw std::invalid_argument("invalid arguments for nucleus PID");
return PID(1000000000 + 10 * Z + 10000 * A);
}
bool pidIsNucleus(const P... | 33.916667 | 93 | 0.608284 | carmeloevoli |
a06e6421664e57b4ebfcbb72a51ff87828a4c934 | 1,419 | hpp | C++ | include/Error.hpp | scribe-lang/scribe | 28ee67cc5081aa3bdd0d4fc284c04738e3272687 | [
"MIT"
] | 13 | 2021-12-28T17:54:05.000Z | 2022-03-19T16:13:03.000Z | include/Error.hpp | scribelang/scribe | 8b82ed839e290c1204928dcd196237c6cd6000ba | [
"MIT"
] | null | null | null | include/Error.hpp | scribelang/scribe | 8b82ed839e290c1204928dcd196237c6cd6000ba | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2022 Scribe Language Repositories
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, mod... | 20.565217 | 78 | 0.735729 | scribe-lang |
a06fe4ad3468774bddbd55ae95b1f76a8c77276b | 6,524 | cpp | C++ | demos/demo_helloworld/demo_helloworld.cpp | borisblizzard/april | 924a4fd770508bc87ac67b49b022c9905f94db32 | [
"BSD-3-Clause"
] | null | null | null | demos/demo_helloworld/demo_helloworld.cpp | borisblizzard/april | 924a4fd770508bc87ac67b49b022c9905f94db32 | [
"BSD-3-Clause"
] | null | null | null | demos/demo_helloworld/demo_helloworld.cpp | borisblizzard/april | 924a4fd770508bc87ac67b49b022c9905f94db32 | [
"BSD-3-Clause"
] | null | null | null | /// @file
/// @version 4.0
///
/// @section LICENSE
///
/// This program is free software; you can redistribute it and/or modify it under
/// the terms of the BSD license: http://opensource.org/licenses/BSD-3-Clause
#ifndef __ANDROID__
#ifndef _UWP
#define RESOURCE_PATH "../../demos/media/"
#else
#define RESOU... | 29.125 | 104 | 0.700031 | borisblizzard |
a0715dae8ecd753e5811f33b3bfca3610f48b08e | 5,840 | cpp | C++ | test/cppunit-tests/TestXml.cpp | johnhalloran321/crux-toolkit | 329390c63a4ec8ab4add22d847732dfa2e7f74ca | [
"Apache-2.0"
] | 27 | 2016-10-04T19:06:41.000Z | 2022-02-24T12:59:59.000Z | test/cppunit-tests/TestXml.cpp | johnhalloran321/crux-toolkit | 329390c63a4ec8ab4add22d847732dfa2e7f74ca | [
"Apache-2.0"
] | 232 | 2016-10-25T05:54:38.000Z | 2022-03-30T20:33:35.000Z | test/cppunit-tests/TestXml.cpp | johnhalloran321/crux-toolkit | 329390c63a4ec8ab4add22d847732dfa2e7f74ca | [
"Apache-2.0"
] | 29 | 2016-10-04T22:12:32.000Z | 2022-03-26T17:12:27.000Z | #include <cppunit/config/SourcePrefix.h>
#include <stdlib.h>
#include <map>
#include "TestXml.h"
#include "Match.h"
#include "Peptide.h"
#include "modifications.h"
#include "parameter.h"
using namespace std;
bool set_double_parameter(
const char* name, ///< the name of the parameter looking for -in
double set_... | 33.563218 | 77 | 0.718664 | johnhalloran321 |
a074fd13a34c341a5fdf673edc6fb541e13384e8 | 10,981 | cc | C++ | selfdrive/ui/qt/widgets/moc_setup.cc | hikee9123/openpilot_083 | 0734b670396417e568186bf146865e1032116dad | [
"MIT"
] | null | null | null | selfdrive/ui/qt/widgets/moc_setup.cc | hikee9123/openpilot_083 | 0734b670396417e568186bf146865e1032116dad | [
"MIT"
] | null | null | null | selfdrive/ui/qt/widgets/moc_setup.cc | hikee9123/openpilot_083 | 0734b670396417e568186bf146865e1032116dad | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'setup.hpp'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.8)
**
** WARNING! All changes made in this file will be lost!
************************************************************... | 28.448187 | 96 | 0.63282 | hikee9123 |
a076344867e963a6feaee7c6e9381dd3f16e0f07 | 7,017 | cpp | C++ | Engine/Source/Runtime/RuntimeAssetCache/Private/RuntimeAssetCacheBuilders.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | Engine/Source/Runtime/RuntimeAssetCache/Private/RuntimeAssetCacheBuilders.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | 2 | 2015-06-21T17:38:11.000Z | 2015-06-22T20:54:42.000Z | Engine/Source/Runtime/RuntimeAssetCache/Private/RuntimeAssetCacheBuilders.cpp | PopCap/GameIdea | 201e1df50b2bc99afc079ce326aa0a44b178a391 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#include "RuntimeAssetCachePrivatePCH.h"
#include "RuntimeAssetCacheBuilders.h"
#include "EngineMinimal.h"
void URuntimeAssetCacheBuilder_ObjectBase::SaveNewAssetToCache(UObject* NewAsset)
{
SetAsset(NewAsset);
GetFromCacheAsync(OnAssetCacheComplete);
}
... | 30.376623 | 168 | 0.729514 | PopCap |
a0766ce898b416d7957d626dafbc34758d47915a | 12,415 | cc | C++ | src/library/blas/functor/hawaii_sgemmSplit64_32.cc | JishinMaster/clBLAS | 3711b9788b5fd71d5e2f1cae3431753cdcd2ed76 | [
"Apache-2.0"
] | 615 | 2015-01-05T13:24:44.000Z | 2022-03-31T14:58:04.000Z | src/library/blas/functor/hawaii_sgemmSplit64_32.cc | JishinMaster/clBLAS | 3711b9788b5fd71d5e2f1cae3431753cdcd2ed76 | [
"Apache-2.0"
] | 223 | 2015-01-12T21:07:18.000Z | 2021-11-24T17:00:44.000Z | src/library/blas/functor/hawaii_sgemmSplit64_32.cc | JishinMaster/clBLAS | 3711b9788b5fd71d5e2f1cae3431753cdcd2ed76 | [
"Apache-2.0"
] | 250 | 2015-01-05T06:39:43.000Z | 2022-03-23T09:13:00.000Z | #if !defined CLBLAS_HAWAII_DYNAMIC_KERNEL || !defined CLBLAS_BONAIRE_DYNAMIC_KERNEL
//this split kernel algorithm solves the main matrix with 64x64 micro tile size
//solves the row boundry with 32x64 micro tile size
//solves the column boundry with 64x32 micro tile size
//solves the rest boundry with 32x32 micro tile s... | 29.28066 | 180 | 0.649859 | JishinMaster |
a07802887ca355ae2fc2f57ed4b83041e3199f5c | 2,834 | cpp | C++ | boost/libs/signals2/test/shared_connection_block_test.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | boost/libs/signals2/test/shared_connection_block_test.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | boost/libs/signals2/test/shared_connection_block_test.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | // Boost.Signals2 library
// Copyright Douglas Gregor 2001-2003.
// Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// For more information, see http://www.boost.org
#include <bo... | 25.079646 | 77 | 0.647848 | randolphwong |
a07c721942eee27a890fa710cd23d16785c9f452 | 6,498 | cpp | C++ | roomedit/owl-6.34/source/toolbox.cpp | Meridian59Kor/Meridian59 | ab6d271c0e686250c104bd5c0886c91ec7cfa2b5 | [
"FSFAP"
] | 119 | 2015-08-19T17:57:01.000Z | 2022-03-30T01:41:51.000Z | roomedit/owl-6.34/source/toolbox.cpp | Meridian59Kor/Meridian59 | ab6d271c0e686250c104bd5c0886c91ec7cfa2b5 | [
"FSFAP"
] | 120 | 2015-01-01T13:02:04.000Z | 2015-08-14T20:06:27.000Z | roomedit/owl-6.34/source/toolbox.cpp | Meridian59Kor/Meridian59 | ab6d271c0e686250c104bd5c0886c91ec7cfa2b5 | [
"FSFAP"
] | 46 | 2015-08-16T23:21:34.000Z | 2022-02-05T01:08:22.000Z | //----------------------------------------------------------------------------
// ObjectWindows
// Copyright (c) 1992, 1996 by Borland International, All Rights Reserved
//
/// \file
/// Implementation of class TToolBox, a 2-d arrangement of TButtonGadgets.
//------------------------------------------------------------... | 24.520755 | 86 | 0.609418 | Meridian59Kor |
a07efb00ea164f009470f2d0bc847752ca3aec61 | 1,381 | cpp | C++ | Other_Judges/D. Ternary Number.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | Other_Judges/D. Ternary Number.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | Other_Judges/D. Ternary Number.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
long long cnt(long long i, long long n, vector<long long> &dp){
if(dp[i]!=0) return dp[i];
if(i>n) return 0;
long long c = 1+cnt(i*10, n, dp) + cnt(i*10+1, n, dp) + cnt(i*10+2, n, dp);
dp[i] = c;
return c;
}
int main(){
int t;
scanf("%d", &t);
while(t--){... | 18.171053 | 76 | 0.47719 | Sowmik23 |
a0816ebccf813b8477cc26c497a9d997686e8e4a | 6,931 | cpp | C++ | src/training/ligature_table.cpp | docu9/tesseract | 3501663a33f8eccaee78027613dc204a978ee8c1 | [
"Apache-2.0"
] | 2 | 2020-10-24T09:37:45.000Z | 2020-11-24T09:58:42.000Z | src/training/ligature_table.cpp | docu9/tesseract | 3501663a33f8eccaee78027613dc204a978ee8c1 | [
"Apache-2.0"
] | null | null | null | src/training/ligature_table.cpp | docu9/tesseract | 3501663a33f8eccaee78027613dc204a978ee8c1 | [
"Apache-2.0"
] | 1 | 2020-11-30T14:09:28.000Z | 2020-11-30T14:09:28.000Z | /**********************************************************************
* File: ligature_table.cpp
* Description: Class for adding and removing optional latin ligatures,
* conditional on codepoint support by a specified font
* (if specified).
* Author: Ranjith Unnikrishnan
* ... | 35.54359 | 80 | 0.620545 | docu9 |
a081ee2288f180d2259a8eb2a234073c82f914f4 | 12,528 | hpp | C++ | FDPS-5.0g/src/memory_pool.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | 2 | 2019-05-23T21:00:41.000Z | 2019-10-03T18:05:20.000Z | FDPS-5.0g/src/memory_pool.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | null | null | null | FDPS-5.0g/src/memory_pool.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | 10 | 2018-08-22T00:55:26.000Z | 2022-02-28T23:21:42.000Z | #include<iostream>
#include<cstdlib>
#include<cassert>
#include<vector>
#if defined(PARTICLE_SIMULATOR_THREAD_PARALLEL) && defined(_OPENMP)
#include<omp.h>
#endif
namespace ParticleSimulator{
class MemoryPool{
private:
enum{
ALIGN_SIZE = 8,
N_SEGMENT_LIMIT = 10000,
... | 45.064748 | 125 | 0.501117 | subarutaro |
a08335befa113d1a7b12dfe8517535383abdebbd | 6,966 | hpp | C++ | includes/ConfigParser.hpp | majermou/webserv | 65aaaf4f604ba86340e7d57eb3d2fda638708b3f | [
"MIT"
] | null | null | null | includes/ConfigParser.hpp | majermou/webserv | 65aaaf4f604ba86340e7d57eb3d2fda638708b3f | [
"MIT"
] | null | null | null | includes/ConfigParser.hpp | majermou/webserv | 65aaaf4f604ba86340e7d57eb3d2fda638708b3f | [
"MIT"
] | 1 | 2021-12-13T10:35:06.000Z | 2021-12-13T10:35:06.000Z | #ifndef CONFIG_PARSER_HPP
#define CONFIG_PARSER_HPP
#include "ServerData.hpp"
#include "Webserv.hpp"
// fields identifiers fields definitions
// server file configuration requirements openings
#define SERVER_OP "server"
#define PORT_OP "listen"
#define HOST_OP "host"
#de... | 40.5 | 80 | 0.715619 | majermou |
a0863c63ed5d317b45a1756d93d0f7d4248ca2f7 | 8,858 | cpp | C++ | admin/wmi/wbem/providers/snmpprovider/common/sclcomm/window.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/providers/snmpprovider/common/sclcomm/window.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/providers/snmpprovider/common/sclcomm/window.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
/*---------------------------------------------------------
Filename: window.cpp
Written By: B.Rajeev
----------------------------------------------------------*/
#include "precomp.h"
#include "common.h"
#include "timer.h"
#include "window.... | 22.200501 | 104 | 0.569767 | npocmaka |
a08a5e12322ec37a4c6fb8a1fac9ced049d6c33d | 2,486 | cpp | C++ | UnitTest/UnitTestCollection/FixedAccuracy/T_PowX.cpp | dbremner/framewave | 94babe445689538e6c3b44b1575cca27893b9bb4 | [
"Apache-2.0"
] | null | null | null | UnitTest/UnitTestCollection/FixedAccuracy/T_PowX.cpp | dbremner/framewave | 94babe445689538e6c3b44b1575cca27893b9bb4 | [
"Apache-2.0"
] | 1 | 2019-01-14T04:00:23.000Z | 2019-01-14T04:00:23.000Z | UnitTest/UnitTestCollection/FixedAccuracy/T_PowX.cpp | dbremner/framewave | 94babe445689538e6c3b44b1575cca27893b9bb4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2006-2009 Advanced Micro Devices, Inc. All Rights Reserved.
This software is subject to the Apache v2.0 License.
*/
#include "UnitTestFramework.h"
#include "FixedAccuracy.h"
#include "FunctionSignatures.h"
#include "fwSignal.h"
class TestPowx_32f_A11 : public SrcConstDstLen< F32,F32 ... | 24.135922 | 95 | 0.619871 | dbremner |
a08befae821f0be9f8724a9a6ca6be58539b3edb | 551 | cpp | C++ | test/CErrRedirecter.cpp | asura/logger | 3bbf95dd30adb32110855ac78d4055511bf43970 | [
"MIT"
] | null | null | null | test/CErrRedirecter.cpp | asura/logger | 3bbf95dd30adb32110855ac78d4055511bf43970 | [
"MIT"
] | 9 | 2019-09-15T21:29:20.000Z | 2019-10-16T18:15:04.000Z | test/CErrRedirecter.cpp | asura/logger | 3bbf95dd30adb32110855ac78d4055511bf43970 | [
"MIT"
] | null | null | null | #include "CErrRedirecter.h"
#include <cassert>
#include <cstring> // memset
#include <iostream>
CErrRedirecter::CErrRedirecter()
: m_locker(m_mutex)
, m_fp(open_memstream(&m_buffer, &m_size))
, m_buffer(nullptr)
, m_size(0)
, m_old(stderr)
{
if (!m_fp)
{
throw std::runtime_error("... | 16.69697 | 58 | 0.607985 | asura |
a08cc2d0ce250e2de1602d71d894615a3108c1b4 | 13,519 | cpp | C++ | src/Framework/Graphics.cpp | Belfer/SFMLTemplate | 7dcf4aa26239252597d681ca72888463cd4a54b0 | [
"MIT"
] | null | null | null | src/Framework/Graphics.cpp | Belfer/SFMLTemplate | 7dcf4aa26239252597d681ca72888463cd4a54b0 | [
"MIT"
] | null | null | null | src/Framework/Graphics.cpp | Belfer/SFMLTemplate | 7dcf4aa26239252597d681ca72888463cd4a54b0 | [
"MIT"
] | null | null | null | #include "Graphics.hpp"
#include <glad/glad.h>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
#define ASSERT(expr) assert(expr)
bool CheckGLError()
{
GLenum err;
while ((err = glGetError()) != GL_NO_ERROR)
switch (err)
{
case GL_INVALID_ENUM: std::cout << "GL_INVALID_ENUM" << st... | 26.984032 | 130 | 0.691767 | Belfer |
a08f5e9809d1100e7ef695a0a60945e07fd795bd | 2,157 | cpp | C++ | jlp_gsegraf_june2017/jlp_Gsegraf.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_gsegraf_june2017/jlp_Gsegraf.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | null | null | null | jlp_gsegraf_june2017/jlp_Gsegraf.cpp | jlprieur/jlplib | 6073d7a7eb76d916662b1f8a4eb54f345cf7c772 | [
"MIT"
] | 1 | 2020-07-09T00:20:49.000Z | 2020-07-09T00:20:49.000Z | /*****************************************************************************
* jlp_gsegraf.cpp
* JLP_Gsegraf class
*
* JLP
* Version 14/12/2016
*****************************************************************************/
#include "jlp_gsegraf.h" // JLP_Gsegraf
/****************************************************... | 39.944444 | 80 | 0.481688 | jlprieur |
a0911081b67ccc9a9b81ca5d615c2d2706505d6d | 380 | cpp | C++ | pg_answer/0c597d3b24c3432fba616e6cd7a05b3e.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | 8 | 2019-10-09T14:33:42.000Z | 2020-12-03T00:49:29.000Z | pg_answer/0c597d3b24c3432fba616e6cd7a05b3e.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | pg_answer/0c597d3b24c3432fba616e6cd7a05b3e.cpp | Guyutongxue/Introduction_to_Computation | 062f688fe3ffb8e29cfaf139223e4994edbf64d6 | [
"WTFPL"
] | null | null | null | #include <iostream>
void moveDisk(int n, char src, char dest, char trans) {
if (n == 1) {
std::cout << src << "->" << dest << std::endl;
return;
}
moveDisk(n - 1, src, trans, dest);
std::cout << src << "->" << dest << std::endl;
moveDisk(n - 1, trans, dest, src);
}
int main() {
... | 22.352941 | 55 | 0.476316 | Guyutongxue |
a091eb9f455024b9109bb0e7aa7947136856dbca | 956 | hpp | C++ | Enginelib/src/components/textcomponent.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | Enginelib/src/components/textcomponent.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | Enginelib/src/components/textcomponent.hpp | kalsipp/vsxpanse | 7887d234312283ce1ace03bed610642b0c6f96b1 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <SDL_ttf.h>
#include <cstdint>
#include "../basics/sprite.hpp"
#include "../basics/vector2d.hpp"
#include "../graphicsmanager.hpp"
#include "../gameobject.hpp"
#include "../filesystem/resourcearchive.hpp"
#include "../basics/helpers.hpp"
class TextComponent : public Component {
... | 28.117647 | 56 | 0.722803 | kalsipp |
a09441f579cc07e3807baa174c1655b8583eecf1 | 8,293 | hpp | C++ | clients/include/testing_getrs_strided_batched.hpp | rkamd/hipBLAS | db7f14bf1a86cb77dec808721a7b18edc36aa3e5 | [
"MIT"
] | null | null | null | clients/include/testing_getrs_strided_batched.hpp | rkamd/hipBLAS | db7f14bf1a86cb77dec808721a7b18edc36aa3e5 | [
"MIT"
] | null | null | null | clients/include/testing_getrs_strided_batched.hpp | rkamd/hipBLAS | db7f14bf1a86cb77dec808721a7b18edc36aa3e5 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright (C) 2016-2022 Advanced Micro Devices, Inc. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* ... | 39.679426 | 95 | 0.450983 | rkamd |
90b3e4f1b399089ad8f4f719f8709714f266e7ec | 1,454 | cpp | C++ | test/datastruct/bindtree2d/random.cpp | ttalvitie/libcontest | c4fd9743d73a5127af41fe8ed171e1e45ce8f1ee | [
"Unlicense"
] | 3 | 2015-12-17T21:19:13.000Z | 2021-02-01T22:20:19.000Z | test/datastruct/bindtree2d/random.cpp | ttalvitie/libcontest | c4fd9743d73a5127af41fe8ed171e1e45ce8f1ee | [
"Unlicense"
] | null | null | null | test/datastruct/bindtree2d/random.cpp | ttalvitie/libcontest | c4fd9743d73a5127af41fe8ed171e1e45ce8f1ee | [
"Unlicense"
] | null | null | null | #include "datastruct/bindtree2d.hpp"
#include "datastruct/querysegtree2d.hpp"
Z QuerySegmentTree2D::oper(Z a, Z b) {
return a + b;
}
struct CmpImpl {
CmpImpl(int w, int h) : tree(w, vector<Z>(h, 0)) { }
void change(int x, int y, Z v) {
tree[x][y] += v;
}
Z sum(int x, int y) {
Z ret = 0;
for(int i = 0; ... | 21.382353 | 60 | 0.555708 | ttalvitie |
90b477e81806d45ca33c2a7d1922e15c7ce161ba | 2,349 | cpp | C++ | Server Lib/Game Server/PANGYA_DB/cmd_my_room_item.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 23 | 2021-10-31T00:20:21.000Z | 2022-03-26T07:24:40.000Z | Server Lib/Game Server/PANGYA_DB/cmd_my_room_item.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 5 | 2021-10-31T18:44:51.000Z | 2022-03-25T18:04:26.000Z | Server Lib/Game Server/PANGYA_DB/cmd_my_room_item.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 18 | 2021-10-20T02:31:56.000Z | 2022-02-01T11:44:36.000Z | // Arquivo cmd_my_room_item.cpp
// Criado em 22/03/2018 as 20:44 por Acrisio
// Implementa��o da classe CmdMyRoomItem
#if defined(_WIN32)
#pragma pack(1)
#endif
#include "cmd_my_room_item.hpp"
using namespace stdA;
CmdMyRoomItem::CmdMyRoomItem(bool _waiter) : pangya_db(_waiter), m_uid(0u), m_item_id(-1), m_type(ALL... | 27.635294 | 233 | 0.713069 | CCasusensa |
90b587d331f36cf5ea2001c22923f69679ca578a | 1,724 | hpp | C++ | src/backend/cpp/reach-tube.hpp | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | 1 | 2021-10-04T19:56:25.000Z | 2021-10-04T19:56:25.000Z | src/backend/cpp/reach-tube.hpp | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | src/backend/cpp/reach-tube.hpp | C2E2-Development-Team/C2E2-Tool | 36631bfd75c0c0fb56389f13a9aba68cbed1680f | [
"MIT"
] | null | null | null | /**
* \file reach-tube.hpp
* \class ReachTube
*
* \author parasara
* \author Lucas Brown
* \date July, 2014
* \date April 2, 2019
*
* \brief LMBTODO
*/
#ifndef REACHTUBE_H_
#define REACHTUBE_H_
#include <ppl.hh>
#include <stack>
#include <string>
#include <vector>
#include "annotation.hpp"
#includ... | 24.628571 | 85 | 0.703016 | C2E2-Development-Team |
90b5ba3d3a99e64f0e3290bf7b22b5b06652c50b | 10,615 | cpp | C++ | src/l_CollisionComponent.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | 2 | 2018-05-13T05:27:29.000Z | 2018-05-29T06:35:57.000Z | src/l_CollisionComponent.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | src/l_CollisionComponent.cpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | #include "l_CollisionComponent.hpp"
CollisionComponent* lua_pushcollisionComponent(
lua_State *L,
CollisionComponent* collisioncomponent = nullptr) {
if (collisioncomponent == nullptr) {
std::cerr << "Warning: CollisionComponent - this will not work, nullptr" << std::endl;
collisioncompon... | 32.166667 | 87 | 0.735751 | benzap |
90b7c22a322dade4043e073f3e786f5ff495fb1f | 872 | cpp | C++ | app/Helper/GridHelper.cpp | LNAV/Sudoku_Solver_Cpp | 431a5d0e370d3d5f7da33674601f3a57efd7032a | [
"Apache-2.0"
] | 1 | 2020-05-17T11:46:46.000Z | 2020-05-17T11:46:46.000Z | app/Helper/GridHelper.cpp | LNAV/VeronixApp-Sudoku_Solver | 431a5d0e370d3d5f7da33674601f3a57efd7032a | [
"Apache-2.0"
] | null | null | null | app/Helper/GridHelper.cpp | LNAV/VeronixApp-Sudoku_Solver | 431a5d0e370d3d5f7da33674601f3a57efd7032a | [
"Apache-2.0"
] | null | null | null | /*
* GridHelper.cpp
*
* Created on: Jan 1, 2020
* Author: LavishK1
*/
#include "GridHelper.h"
namespace Veronix
{
namespace App
{
namespace helper
{
GridHelper::GridHelper()
{
}
GridHelper::~GridHelper()
{
}
bool GridHelper::findNewClue(sudosolver::container::GridContainer &grid)
{
//TODO
findNewCl... | 16.148148 | 81 | 0.723624 | LNAV |
90ba6086e7b70f03afbf53793d07c1e63289a1dd | 6,351 | cc | C++ | src/rdf++/writer/nquads.cc | datagraph/librdf | 6697c6a2bfeb00978118968ea88eabb1612c892c | [
"Unlicense"
] | 10 | 2015-12-23T05:17:49.000Z | 2020-06-16T14:21:34.000Z | src/rdf++/writer/nquads.cc | datagraph/librdf | 6697c6a2bfeb00978118968ea88eabb1612c892c | [
"Unlicense"
] | 3 | 2015-06-15T14:15:33.000Z | 2016-01-17T19:18:09.000Z | src/rdf++/writer/nquads.cc | datagraph/librdf | 6697c6a2bfeb00978118968ea88eabb1612c892c | [
"Unlicense"
] | 3 | 2015-02-14T23:16:01.000Z | 2018-03-03T15:07:48.000Z | /* This is free and unencumbered software released into the public domain. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "nquads.h"
#include "../format.h"
#include "../quad.h"
#include "../term.h"
#include "../triple.h"
#include <cassert> /* for assert() */
#include <cstdio> /* for FILE, std::f*() */
... | 28.737557 | 85 | 0.585105 | datagraph |
90c0087c3162b691e8ec9d1d48204870220d6bdc | 3,103 | hpp | C++ | include/NatSuite/Devices/FlashMode.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/NatSuite/Devices/FlashMode.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | include/NatSuite/Devices/FlashMode.hpp | RedBrumbler/virtuoso-codegen | e83f6f0f9b47bec4b6dd976b21edc1d46bf3cfe3 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Enum
#include "System/Enum.h... | 41.932432 | 94 | 0.70448 | RedBrumbler |
90c2cf008684b706cb500d3e55e916a574996fdd | 33,844 | cc | C++ | chrome/browser/ui/views/payments/payment_request_browsertest_base.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/payments/payment_request_browsertest_base.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/views/payments/payment_request_browsertest_base.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "chrome/browser/ui/views/payments/payment_request_browsertest_base.h"
#include <algorithm>
#include <iostream>
#include <memory>
#include <strin... | 36.627706 | 80 | 0.760992 | sarang-apps |
90c5c4d35c216fd5a4f689cbbb4f551bb9a5174f | 3,313 | cpp | C++ | Code/Engine/GameEngine/VirtualReality/Implementation/DeviceTrackingComponent.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Engine/GameEngine/VirtualReality/Implementation/DeviceTrackingComponent.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Engine/GameEngine/VirtualReality/Implementation/DeviceTrackingComponent.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | #include <GameEnginePCH.h>
#include <Core/WorldSerializer/WorldReader.h>
#include <Core/WorldSerializer/WorldWriter.h>
#include <Foundation/Configuration/Singleton.h>
#include <Foundation/Profiling/Profiling.h>
#include <GameEngine/VirtualReality/DeviceTrackingComponent.h>
#include <GameEngine/VirtualReality/StageSpac... | 29.318584 | 126 | 0.728041 | fereeh |
90c6154eb2f96f95ae35b71ae2cb9827cae4fa49 | 123 | cpp | C++ | dbmodel/persistent.cpp | arsee11/arseeulib | 528afa07d182e76ce74255a53ee01d73c2fae66f | [
"BSD-2-Clause"
] | null | null | null | dbmodel/persistent.cpp | arsee11/arseeulib | 528afa07d182e76ce74255a53ee01d73c2fae66f | [
"BSD-2-Clause"
] | 1 | 2015-08-21T06:31:32.000Z | 2015-08-21T06:32:06.000Z | dbmodel/persistent.cpp | arsee11/arseeulib | 528afa07d182e76ce74255a53ee01d73c2fae66f | [
"BSD-2-Clause"
] | 1 | 2016-07-23T04:03:15.000Z | 2016-07-23T04:03:15.000Z | //persistent.cpp
//copyright : Copyright (c) 2014 arsee.
//license : GNU GPL v2.
//author : arsee
#include "persistent.h"
| 17.571429 | 39 | 0.691057 | arsee11 |
90c6fd3a1c859d2efea4b58afc025bca63b6c205 | 2,487 | cpp | C++ | src_R/culex.cpp | slwu89/culex-model | eee653b2b633b26b735034303e21e3a67341c119 | [
"MIT"
] | null | null | null | src_R/culex.cpp | slwu89/culex-model | eee653b2b633b26b735034303e21e3a67341c119 | [
"MIT"
] | null | null | null | src_R/culex.cpp | slwu89/culex-model | eee653b2b633b26b735034303e21e3a67341c119 | [
"MIT"
] | null | null | null | #include "culex.hpp"
// [[Rcpp::depends(RcppArmadillo)]]
// [[Rcpp::plugins(cpp14)]]
// ---------- stochastic model interface ----------
using culex_stochastic = culex<int>;
// [[Rcpp::export]]
Rcpp::XPtr<culex_stochastic> create_culex_stochastic(const int p, const std::vector<int>& tau_E, const std::vector<int>& t... | 27.633333 | 213 | 0.676719 | slwu89 |
90c7946c59987651ee16b40cd64210aaabe2a9ca | 1,273 | hpp | C++ | include/virt_wrap/enums/Storage/VolResizeFlag.hpp | AeroStun/virthttp | d6ae9d752721aa5ecc74dbc2dbb54de917ba31ad | [
"Apache-2.0"
] | 7 | 2019-08-22T20:48:15.000Z | 2021-12-31T16:08:59.000Z | include/virt_wrap/enums/Storage/VolResizeFlag.hpp | AeroStun/virthttp | d6ae9d752721aa5ecc74dbc2dbb54de917ba31ad | [
"Apache-2.0"
] | 10 | 2019-08-22T21:40:43.000Z | 2020-09-03T14:21:21.000Z | include/virt_wrap/enums/Storage/VolResizeFlag.hpp | AeroStun/virthttp | d6ae9d752721aa5ecc74dbc2dbb54de917ba31ad | [
"Apache-2.0"
] | 2 | 2019-08-22T21:08:28.000Z | 2019-08-23T21:31:56.000Z | #ifndef VIRTPP_ENUM_STORAGE_VOLRESIZEFLAG_HPP
#define VIRTPP_ENUM_STORAGE_VOLRESIZEFLAG_HPP
#include "../../StorageVol.hpp"
#include "virt_wrap/enums/Base.hpp"
#include "virt_wrap/utility.hpp"
#include <libvirt/libvirt-storage.h>
namespace virt {
class StorageVol::ResizeFlag : private VirtEnumStorage<virStorageVolRes... | 38.575758 | 149 | 0.744698 | AeroStun |
90c9563d52c67684b1bee6efdd96acaca6843d38 | 13,863 | cpp | C++ | dev/Code/Tools/AssetProcessor/Builders/WwiseBuilder/Source/WwiseBuilderComponent.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | dev/Code/Tools/AssetProcessor/Builders/WwiseBuilder/Source/WwiseBuilderComponent.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | dev/Code/Tools/AssetProcessor/Builders/WwiseBuilder/Source/WwiseBuilderComponent.cpp | yuriy0/lumberyard | 18ab07fd38492d88c34df2a3e061739d96747e13 | [
"AML"
] | null | null | null | /*
* All or portions of this file Copyright(c) Amazon.com, Inc.or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution(the "License").All use of this software is governed by the License,
* or, if provided, by the license below or the l... | 48.81338 | 284 | 0.664575 | yuriy0 |
90cd7835b25fa9b3b79bec0ea988af5651b6cb3d | 80,931 | cpp | C++ | CWE-399/source_files/CVE-2013-1674/firefox_20.0b7_CVE_2013_1674_content_base_src_nsFrameLoader.cpp | CGCL-codes/VulDeePecker | 98610f3e116df97a1e819ffc81fbc7f6f138a8f2 | [
"Apache-2.0"
] | 185 | 2017-12-14T08:18:15.000Z | 2022-03-30T02:58:36.000Z | CWE-399/source_files/CVE-2013-1674/firefox_20.0b7_CVE_2013_1674_content_base_src_nsFrameLoader.cpp | CGCL-codes/VulDeePecker | 98610f3e116df97a1e819ffc81fbc7f6f138a8f2 | [
"Apache-2.0"
] | 11 | 2018-01-30T23:31:20.000Z | 2022-01-17T05:03:56.000Z | CWE-399/source_files/CVE-2013-1674/firefox_20.0b7_CVE_2013_1674_content_base_src_nsFrameLoader.cpp | CGCL-codes/VulDeePecker | 98610f3e116df97a1e819ffc81fbc7f6f138a8f2 | [
"Apache-2.0"
] | 87 | 2018-01-10T08:12:32.000Z | 2022-02-19T10:29:31.000Z | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=2 sw=2 et tw=78: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 30.972445 | 117 | 0.711087 | CGCL-codes |
90cf0d42a44b877bb39975b9c10bdba938e060e6 | 8,399 | cpp | C++ | src/plugins/gps_importer/qgsgpsdevicedialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/plugins/gps_importer/qgsgpsdevicedialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | null | null | null | src/plugins/gps_importer/qgsgpsdevicedialog.cpp | dyna-mis/Hilabeling | cb7d5d4be29624a20c8a367162dbc6fd779b2b52 | [
"MIT"
] | 1 | 2021-12-25T08:40:30.000Z | 2021-12-25T08:40:30.000Z | /***************************************************************************
* Copyright (C) 2004 by Lars Luthman
* larsl@users.sourceforge.net
* *
* This is a plugin generated from the QGIS plugin template *
* ... | 42.419192 | 175 | 0.614716 | dyna-mis |
90d0e254fc7e7a06f064b22e46d16f60071924a9 | 21,526 | cpp | C++ | LTSDK/runtime/render/d3dmeshrendobj_skel.cpp | crskycode/msLTBImporter | be8a04c5365746c46a1d7804909e04a741d86b44 | [
"MIT"
] | 3 | 2021-03-02T15:55:01.000Z | 2021-10-21T07:11:17.000Z | LTSDK/runtime/render/d3dmeshrendobj_skel.cpp | crskycode/msLTBImporter | be8a04c5365746c46a1d7804909e04a741d86b44 | [
"MIT"
] | 1 | 2021-09-27T02:38:49.000Z | 2021-11-06T16:09:21.000Z | LTSDK/runtime/render/d3dmeshrendobj_skel.cpp | crskycode/msLTBImporter | be8a04c5365746c46a1d7804909e04a741d86b44 | [
"MIT"
] | 1 | 2021-04-26T13:22:51.000Z | 2021-04-26T13:22:51.000Z | // d3dmeshrendobj_skel.cpp
//#include "precompile.h"
#include "d3dmeshrendobj_skel.h"
//#include "renderstruct.h"
#include "ltb.h"
//#include "d3d_device.h"
//#include "d3d_texture.h"
//#include "d3d_renderstatemgr.h"
//#include "d3d_draw.h"
//#include "ltvertexshadermgr.h"
//#include "ltpixelshadermgr.h"
//#include "... | 28.855228 | 140 | 0.684242 | crskycode |
90d15e73d1e0a054bc627e6d4f321c3c255f2c21 | 5,224 | hpp | C++ | master/core/third/libtorrent/include/libtorrent/socket.hpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/libtorrent/include/libtorrent/socket.hpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/libtorrent/include/libtorrent/socket.hpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:49.000Z | 2018-12-27T03:20:31.000Z | /*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | 26.927835 | 79 | 0.723966 | importlib |
90d288af6571d1f98c014630d861f60ffb33678a | 11,628 | cc | C++ | pyxel/core/src/pyxelcore.cc | nnn1590/pyxel | fa1c5748f1e76d137fe157619584eadfbe0d45e7 | [
"MIT"
] | null | null | null | pyxel/core/src/pyxelcore.cc | nnn1590/pyxel | fa1c5748f1e76d137fe157619584eadfbe0d45e7 | [
"MIT"
] | null | null | null | pyxel/core/src/pyxelcore.cc | nnn1590/pyxel | fa1c5748f1e76d137fe157619584eadfbe0d45e7 | [
"MIT"
] | null | null | null | #include "pyxelcore.h"
#include "pyxelcore/audio.h"
#include "pyxelcore/graphics.h"
#include "pyxelcore/image.h"
#include "pyxelcore/input.h"
#include "pyxelcore/music.h"
#include "pyxelcore/resource.h"
#include "pyxelcore/sound.h"
#include "pyxelcore/system.h"
#include "pyxelcore/tilemap.h"
#define IMAGE reinterpret... | 22.19084 | 80 | 0.659013 | nnn1590 |
90d37359d2d67674cff2dfbcec9d4f03602ef5e4 | 4,278 | cpp | C++ | SDKs/CryCode/3.8.1/CryEngine/CryEntitySystem/EntityAttributesProxy.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 4 | 2017-12-18T20:10:16.000Z | 2021-02-07T21:21:24.000Z | SDKs/CryCode/3.7.0/CryEngine/CryEntitySystem/EntityAttributesProxy.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | null | null | null | SDKs/CryCode/3.7.0/CryEngine/CryEntitySystem/EntityAttributesProxy.cpp | amrhead/FireNET | 34d439aa0157b0c895b20b2b664fddf4f9b84af1 | [
"BSD-2-Clause"
] | 3 | 2019-03-11T21:36:15.000Z | 2021-02-07T21:21:26.000Z | #include "stdafx.h"
#include "EntityAttributesProxy.h"
#include "Serialization/IArchive.h"
#include "Serialization/IArchiveHost.h"
namespace
{
struct SEntityAttributesSerializer
{
SEntityAttributesSerializer(TEntityAttributeArray& _attributes)
: attributes(_attributes)
{}
void Serialize(Serialization::IA... | 29.708333 | 109 | 0.544647 | amrhead |
90d49e3ae32010fb49ec8e2a8d41b7d434131e69 | 30,420 | cp | C++ | MacOS/Sources/Application/Search/CSearchCriteriaLocal.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | MacOS/Sources/Application/Search/CSearchCriteriaLocal.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | MacOS/Sources/Application/Search/CSearchCriteriaLocal.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2007 Cyrus Daboo. 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 re... | 26.429192 | 147 | 0.724918 | mulberry-mail |
90d554c1623d331c06660d1d43126e3b7abd061f | 1,655 | cpp | C++ | Interface/ViewDeath.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | 1 | 2016-05-22T21:28:29.000Z | 2016-05-22T21:28:29.000Z | Interface/ViewDeath.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | Interface/ViewDeath.cpp | SnipeDragon/darkspace | b6a1fa0a29d3559b158156e7b96935bd0a832ee3 | [
"MIT"
] | null | null | null | /*
ViewDeath.cpp
(c)2000 Palestar, Richard Lyle
*/
#include "Debug/Assert.h"
#include "Interface/GameDocument.h"
#include "DarkSpace/Constants.h"
#include "Interface/ViewDeath.h"
//----------------------------------------------------------------------------
IMPLEMENT_FACTORY( ViewDeath, WindowView::View );
REGISTE... | 21.776316 | 84 | 0.627795 | SnipeDragon |
90da5135ad9024db6593e77809d421ad0c4915d2 | 710 | cpp | C++ | acwing/base/829. 模拟队列.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | 1 | 2020-03-26T13:40:52.000Z | 2020-03-26T13:40:52.000Z | acwing/base/829. 模拟队列.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | null | null | null | acwing/base/829. 模拟队列.cpp | xmmmmmovo/MyAlgorithmSolutions | f5198d438f36f41cc4f72d53bb71d474365fa80d | [
"MIT"
] | null | null | null | /**
* author: xmmmmmovo
* generation time: 2021/01/31
* filename: 829. 模拟队列.cpp
* language & build version : C 11 & C++ 17
*/
#include <algorithm>
#include <iostream>
using namespace std;
const int N = 1e5 + 10;
int n, s[N];
int l = 0, r = -1;
int main() {
ios::sync_with_stdio(false);
cin.ti... | 18.205128 | 51 | 0.425352 | xmmmmmovo |
90ddce7fbe6b187e387f9d462b8526871d82a2b8 | 704 | hpp | C++ | llvm/projects/ton-compiler/cpp-sdk/tvm/tuple.hpp | NoamDev/TON-Compiler | f76aa2084c7f09a228afef4a6e073c37b350c8f3 | [
"Apache-2.0"
] | 59 | 2019-10-22T16:21:33.000Z | 2022-02-01T20:32:32.000Z | llvm/projects/ton-compiler/cpp-sdk/tvm/tuple.hpp | NoamDev/TON-Compiler | f76aa2084c7f09a228afef4a6e073c37b350c8f3 | [
"Apache-2.0"
] | 51 | 2019-10-23T11:55:08.000Z | 2021-12-21T06:32:11.000Z | llvm/projects/ton-compiler/cpp-sdk/tvm/tuple.hpp | NoamDev/TON-Compiler | f76aa2084c7f09a228afef4a6e073c37b350c8f3 | [
"Apache-2.0"
] | 15 | 2019-10-22T19:56:12.000Z | 2022-01-12T14:45:15.000Z | #pragma once
#include <tvm/untuple_caller.hpp>
#include <tvm/unpackfirst_caller.hpp>
namespace tvm {
template<class T>
class __attribute__((tvm_tuple)) tuple {
public:
tuple() {}
explicit tuple(__tvm_tuple tp) : tp_(tp) {}
explicit tuple(T tpVal) : tp_(__builtin_tvm_tuple(tpVal)) {}
T unpack() const { return... | 22 | 83 | 0.681818 | NoamDev |