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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
45e5eb3deb51f23da8334ee5d6c60f179d9ee320 | 5,775 | cpp | C++ | jpegkit/src/main/cpp/jpegkit/jpeg.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 155 | 2018-01-22T19:14:47.000Z | 2022-03-22T03:47:48.000Z | jpegkit/src/main/cpp/jpegkit/jpeg.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 8 | 2018-03-22T23:40:28.000Z | 2021-05-31T17:43:23.000Z | jpegkit/src/main/cpp/jpegkit/jpeg.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 32 | 2018-01-29T05:05:32.000Z | 2022-03-22T03:47:50.000Z | #include <jni.h>
#include <stdio.h>
#include <cstring>
#include <unistd.h>
#include <turbojpeg.h>
extern "C"
{
JNIEXPORT jobject JNICALL
Java_jpegkit_Jpeg_jniMount
(JNIEnv *env, jobject obj, jbyteArray jpegBytes);
JNIEXPORT void JNICALL
Java_jpegkit_Jpeg_jniRelease
(JNIEnv *env, jobject obj, jobject h... | 27.631579 | 114 | 0.692987 | CameraKit |
45ea1fff84ed347b40c2e773e38b3b7cbd618f5f | 661 | hpp | C++ | library/inc/argo/nargs/INArgs.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/nargs/INArgs.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/nargs/INArgs.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | #ifndef HEADER_argo_nargs_INArgs_hpp_INCLUDE_GUARD
#define HEADER_argo_nargs_INArgs_hpp_INCLUDE_GUARD
#include "argo/details/memory.hpp"
#include <string>
namespace argo { namespace nargs {
class INargs;
using Ptr = std::unique_ptr<INargs>;
class INargs
{
public:
virtual ~INargs() = defa... | 20.65625 | 53 | 0.638427 | phforest |
45ed45ffaede76b3ecdee7afd12f4dfc294ad164 | 4,402 | cc | C++ | tensorflow/core/common_runtime/dml/dml_buffer_region.cc | BenjaminWegener/tensorflow-directml | ecdbdbd2691e17dcc462fc49138fc7cc1536b7d5 | [
"Apache-2.0"
] | 351 | 2020-09-01T08:36:28.000Z | 2022-03-29T06:54:29.000Z | tensorflow/core/common_runtime/dml/dml_buffer_region.cc | BenjaminWegener/tensorflow-directml | ecdbdbd2691e17dcc462fc49138fc7cc1536b7d5 | [
"Apache-2.0"
] | 80 | 2020-09-02T01:57:33.000Z | 2022-03-28T08:51:57.000Z | tensorflow/core/common_runtime/dml/dml_buffer_region.cc | BenjaminWegener/tensorflow-directml | ecdbdbd2691e17dcc462fc49138fc7cc1536b7d5 | [
"Apache-2.0"
] | 29 | 2020-09-14T06:29:58.000Z | 2022-03-01T09:21:17.000Z | /* Copyright (c) Microsoft Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, so... | 38.278261 | 80 | 0.735802 | BenjaminWegener |
45eed617a893e4d0bd025b57007bfa548b178526 | 629 | cpp | C++ | icpc/2019-4-21/B-brute.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | icpc/2019-4-21/B-brute.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | icpc/2019-4-21/B-brute.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
typedef long long i64;
#define NMAX 2000
static int n, q, K, pt[NMAX + 10];
static i64 seq[NMAX + 10], pre[NMAX + 10];
int main() {
scanf("%d%d%d", &n, &q, &K);
for (int i = 1; i <= n; i++) {
scanf("%lld", seq + i);
... | 20.290323 | 57 | 0.446741 | Riteme |
45f173c14dc02b5558ab89d14ac3a22cb6e3904d | 2,137 | cpp | C++ | src/core/vector_types.cpp | scanberg/viamdutils | 36294a8a07fc7900d5dae921a2fa3fc9eed30226 | [
"MIT"
] | null | null | null | src/core/vector_types.cpp | scanberg/viamdutils | 36294a8a07fc7900d5dae921a2fa3fc9eed30226 | [
"MIT"
] | null | null | null | src/core/vector_types.cpp | scanberg/viamdutils | 36294a8a07fc7900d5dae921a2fa3fc9eed30226 | [
"MIT"
] | null | null | null | #define HAS_VECTOR_TEMPLATE_INSTANTIATION
#include "vector_types.h"
template struct glm::vec<2, float, glm::packed_highp>;
template struct glm::vec<3, float, glm::packed_highp>;
template struct glm::vec<4, float, glm::packed_highp>;
template struct glm::vec<2, double, glm::packed_highp>;
template struct glm::vec<3, d... | 42.74 | 58 | 0.749181 | scanberg |
45f2935fa4e6ff93dc1c8edd1531d64b1750b9e7 | 1,552 | cpp | C++ | Source/Main.cpp | BoomerDev/EndoBuild | 19d8f6b66403132ad93186ecb94b135ae2109525 | [
"MIT"
] | 4 | 2021-04-16T17:01:08.000Z | 2021-06-10T19:12:33.000Z | Source/Main.cpp | BoomerDev/EndoBuild | 19d8f6b66403132ad93186ecb94b135ae2109525 | [
"MIT"
] | null | null | null | Source/Main.cpp | BoomerDev/EndoBuild | 19d8f6b66403132ad93186ecb94b135ae2109525 | [
"MIT"
] | null | null | null | #include "FileSystem.h"
#include "Script/ScriptContext.h"
#include "Consts.h"
#include "Cache.h"
#include <iostream>
#include <vector>
#include <unordered_map>
std::string workingDirectory = "";
std::string version = "1.0.0-development:debug";
void HandleArgs(int argc, char **argv) {
std::vector<int> ignoreArg... | 23.164179 | 101 | 0.528351 | BoomerDev |
45f2d9ca74c21ae37464e525a8eecf4a77a6b52b | 439 | cpp | C++ | Tools/file/ReadLine.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 5 | 2019-09-17T09:12:15.000Z | 2021-05-29T10:54:39.000Z | Tools/file/ReadLine.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | null | null | null | Tools/file/ReadLine.cpp | liangjisheng/C-Cpp | 8b33ba1f43580a7bdded8bb4ce3d92983ccedb81 | [
"MIT"
] | 2 | 2021-07-26T06:36:12.000Z | 2022-01-23T15:20:30.000Z |
// 从标准输入流中读入整行
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
FILE * fp;
char student[50];
int i;
// 当输入 1001 tom 92.3 时 只能把1001存入文件中 因为在遇到空格时
// scanf就把它当成了结束的标记 所以要用下面的 gets(student); 来进行输入
//scanf("%s", student);
if( (fp=fopen("student.txt", "w"))==NULL )
exit(0);
for(i=0; i<3; i++... | 16.259259 | 50 | 0.574032 | liangjisheng |
45f3c7401467b3738801a4b61dcef1f618e2effa | 418 | cpp | C++ | A/734/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/734/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/734/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n, A(0), D(0);
char ch;
cin >> n;
for (int i(0); i < n; i++)
{
cin >> ch;
switch (ch)
{
case 'A': A++; break;
case 'D': D++; break;
}
}
if (A > D)
cout << "Anton";
... | 13.933333 | 33 | 0.370813 | ABGEO07 |
45f9268acaa13d0adc80944c86e0b02c13c3eab0 | 670 | hpp | C++ | pomdog/experimental/texture_packer/texture_atlas_loader.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 163 | 2015-03-16T08:42:32.000Z | 2022-01-11T21:40:22.000Z | pomdog/experimental/texture_packer/texture_atlas_loader.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 17 | 2015-04-12T20:57:50.000Z | 2020-10-10T10:51:45.000Z | pomdog/experimental/texture_packer/texture_atlas_loader.hpp | mogemimi/pomdog | 6dc6244d018f70d42e61c6118535cf94a9ee0618 | [
"MIT"
] | 21 | 2015-04-12T20:45:11.000Z | 2022-01-14T20:50:16.000Z | // Copyright mogemimi. Distributed under the MIT license.
#pragma once
#include "pomdog/basic/conditional_compilation.hpp"
#include "pomdog/basic/export.hpp"
#include "pomdog/experimental/texture_packer/texture_atlas.hpp"
#include "pomdog/utility/errors.hpp"
POMDOG_SUPPRESS_WARNINGS_GENERATED_BY_STD_HEADERS_BEGIN
#i... | 26.8 | 73 | 0.804478 | mogemimi |
45fae9f8f8042c820e6801e3b736f8d87e2a1794 | 14,478 | cpp | C++ | Ryukuo Suspender/mainwindow.cpp | Iciclez/ryukuo-suspender | cdcc6beede79a23e5da71813b78c41cde718453a | [
"MIT"
] | null | null | null | Ryukuo Suspender/mainwindow.cpp | Iciclez/ryukuo-suspender | cdcc6beede79a23e5da71813b78c41cde718453a | [
"MIT"
] | null | null | null | Ryukuo Suspender/mainwindow.cpp | Iciclez/ryukuo-suspender | cdcc6beede79a23e5da71813b78c41cde718453a | [
"MIT"
] | null | null | null | #include "mainwindow.hpp"
#include "process.hpp"
#include "messagebox.hpp"
#include "inject.hpp"
#include <sstream>
#include <iomanip>
#include <thread>
#include <string>
#include <algorithm>
#include <TlHelp32.h>
#include <Psapi.h>
#include <Shlobj.h>
#include <Shlwapi.h>
#include "resource.h"
logger l("ryukuo_sus... | 33.206422 | 303 | 0.691256 | Iciclez |
45fb8efd923598ac7eb9cfc58e99a533d5872c21 | 241 | hpp | C++ | rps-cpp/src/net/net_utils.hpp | Adrien-Luxey/cyclon-rps | 28667b064ce0ef418fad34b54f3e0765e83434dd | [
"Unlicense"
] | null | null | null | rps-cpp/src/net/net_utils.hpp | Adrien-Luxey/cyclon-rps | 28667b064ce0ef418fad34b54f3e0765e83434dd | [
"Unlicense"
] | null | null | null | rps-cpp/src/net/net_utils.hpp | Adrien-Luxey/cyclon-rps | 28667b064ce0ef418fad34b54f3e0765e83434dd | [
"Unlicense"
] | null | null | null | #ifndef NET_NET_UTILS_HPP
#define NET_NET_UTILS_HPP
#include <string>
//#include <sys/socket.h> // listen, bind, etc
//#include <sys/types.h> // listen, bind, etc
std::string sockaddrToIP(struct sockaddr *sa);
#endif // NET_NET_UTILS_HPP | 21.909091 | 46 | 0.73444 | Adrien-Luxey |
45fe469a96d6965680198fe94625dc0be11f7caf | 5,096 | hxx | C++ | main/toolkit/inc/toolkit/awt/vclxtabpagecontainer.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/toolkit/inc/toolkit/awt/vclxtabpagecontainer.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/toolkit/inc/toolkit/awt/vclxtabpagecontainer.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 58.574713 | 214 | 0.686617 | Grosskopf |
34012b4d83357b5941723af4b8d118cd5b006933 | 685 | cc | C++ | chromecast/browser/cast_content_browser_client_simple.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chromecast/browser/cast_content_browser_client_simple.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chromecast/browser/cast_content_browser_client_simple.cc | hefen1/chromium | 52f0b6830e000ca7c5e9aa19488af85be792cc88 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-04-04T13:34:56.000Z | 2020-11-04T07:17:52.000Z | // Copyright 2015 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 "chromecast/browser/cast_content_browser_client.h"
#include "content/public/browser/browser_message_filter.h"
namespace chromecast {
namespace ... | 29.782609 | 73 | 0.79708 | hefen1 |
340621dc9ea772068487856411e3c62779a4c5be | 1,583 | cpp | C++ | compiler/luci/export/src/Optimize.cpp | chunseoklee/ONE-1 | f45d579eb78e7e3cd1d878b4137ed23ab569081b | [
"Apache-2.0"
] | null | null | null | compiler/luci/export/src/Optimize.cpp | chunseoklee/ONE-1 | f45d579eb78e7e3cd1d878b4137ed23ab569081b | [
"Apache-2.0"
] | null | null | null | compiler/luci/export/src/Optimize.cpp | chunseoklee/ONE-1 | f45d579eb78e7e3cd1d878b4137ed23ab569081b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020 Samsung Electronics Co., Ltd. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 29.867925 | 75 | 0.742893 | chunseoklee |
340818745a0928e1c10dd0eca91d92844b6c251a | 1,300 | hh | C++ | src/mesh_functions/CompositeVectorFunction.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | 1 | 2021-02-23T18:34:47.000Z | 2021-02-23T18:34:47.000Z | src/mesh_functions/CompositeVectorFunction.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | null | null | null | src/mesh_functions/CompositeVectorFunction.hh | cannsudemir/amanzi | c6cd3287bdc2c6cf26c6f8b79e34799751385f9e | [
"RSA-MD"
] | null | null | null | /* -*- mode: c++; c-default-style: "google"; indent-tabs-mode: nil -*- */
/* -------------------------------------------------------------------------
ATS
License: see $AMANZI_DIR/COPYRIGHT
Author Ethan Coon
Function applied to a mesh component, along with meta-data to store the values
of this function in a Composte... | 27.083333 | 88 | 0.662308 | cannsudemir |
340b320df8268a104d5c552069ce9b15bece2906 | 5,171 | cpp | C++ | src/rectify/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | src/rectify/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | src/rectify/main.cpp | Franklin-Qi/qtcreator-example | 5d573f961c3255fbf740991996f935092cc62018 | [
"MIT"
] | null | null | null | #include "MainWindow.h"
#include <QApplication>
#include <opencv2/core/utility.hpp>
#include <opencv2/photo.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <iostream>
using namespace cv;
using namespace std;
#define ER... | 24.051163 | 101 | 0.545929 | Franklin-Qi |
340b4165665fd10a93b5f8d16d0dc36c0148b029 | 643 | cpp | C++ | examples/text.cpp | CourrierGui/plotcpp | 00b5a94e4c9804cbc441a0bcede67f70cef08a0c | [
"MIT"
] | null | null | null | examples/text.cpp | CourrierGui/plotcpp | 00b5a94e4c9804cbc441a0bcede67f70cef08a0c | [
"MIT"
] | null | null | null | examples/text.cpp | CourrierGui/plotcpp | 00b5a94e4c9804cbc441a0bcede67f70cef08a0c | [
"MIT"
] | null | null | null | #include <figure.hpp>
int main(int argc, char* argv[]) {
pcpp::Figure f{argc, argv, 1, 1};
auto text = f.text(1.5, 1.5, "Hello World!");
text.font("Source Code Pro", 15);
text.rotate(25);
text.align(pcpp::Align::bottom|pcpp::Align::center);
text.color(0, 0, 0);
auto rect = f.rect({0.0, 0.0}, {1.0, 1.0... | 22.964286 | 70 | 0.553655 | CourrierGui |
340da0ba0237030daf6163d0fc2b8587b6e2cf32 | 3,003 | cpp | C++ | src/frameworks/wilhelm/src/objects/COutputMix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | src/frameworks/wilhelm/src/objects/COutputMix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | null | null | null | src/frameworks/wilhelm/src/objects/COutputMix.cpp | dAck2cC2/m3e | 475b89b59d5022a94e00b636438b25e27e4eaab2 | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | /*
* Copyright (C) 2010 The Android Open Source Project
*
* 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 app... | 32.641304 | 100 | 0.703297 | dAck2cC2 |
340ef1d774967c22f6285ea49efed0618390ad7d | 20,234 | hpp | C++ | include/al/math/al_Mat.hpp | AlloSphere-Research-Group/al_lib | 94d23fe71b79d3464a658f16ca34c2040e6d7334 | [
"BSD-3-Clause"
] | 26 | 2018-11-05T23:29:43.000Z | 2022-03-17T18:16:49.000Z | include/al/math/al_Mat.hpp | yangevelyn/allolib | 1654be795b6515c058eb8243751b903a2aa6efdc | [
"BSD-3-Clause"
] | 41 | 2018-01-19T18:34:41.000Z | 2022-01-27T23:52:01.000Z | include/al/math/al_Mat.hpp | yangevelyn/allolib | 1654be795b6515c058eb8243751b903a2aa6efdc | [
"BSD-3-Clause"
] | 11 | 2018-01-05T16:42:19.000Z | 2022-01-27T22:08:01.000Z | #ifndef INCLUDE_AL_MAT_HPP
#define INCLUDE_AL_MAT_HPP
/* Allocore --
Multimedia / virtual environment application class library
Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology, UCSB.
Copyright (C) 2012. The Regents of the University of California.
All rights reserved.
Redistribution... | 28.660057 | 80 | 0.566126 | AlloSphere-Research-Group |
3410f6dde3d540ad8357b87db5a7d6aaedf7fb54 | 2,941 | cpp | C++ | src/test/add/add.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | 3 | 2019-02-22T18:25:12.000Z | 2019-02-27T13:32:00.000Z | src/test/add/add.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | null | null | null | src/test/add/add.cpp | BigRedEye/cacos | da80d67375054260eac7518e3b53163e399461fe | [
"MIT"
] | null | null | null | #include "cacos/test/add/add.h"
#include "cacos/config/config.h"
#include "cacos/test/suite/suite.h"
#include <cpparg/cpparg.h>
namespace cacos::test {
template<test::Type type>
int add_impl(int argc, const char* argv[]) {
std::string descr;
if constexpr (type == Type::diff) {
descr = "diff";
} ... | 23.910569 | 93 | 0.537232 | BigRedEye |
341a608b07b32e87369af0fadb78dc6c32fef860 | 1,081 | cpp | C++ | Tree Data Structure/Tree search/Least Common Ancestor.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 7 | 2019-06-29T08:57:07.000Z | 2021-02-13T06:43:40.000Z | Tree Data Structure/Tree search/Least Common Ancestor.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | null | null | null | Tree Data Structure/Tree search/Least Common Ancestor.cpp | cenation092/InterviewBit-Solutions | ac4510a10d965fb681f7b3c80990407e18bc2668 | [
"MIT"
] | 3 | 2020-06-17T04:26:26.000Z | 2021-02-12T04:51:40.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
TreeNode* find_source(TreeNode *root, int req ){
queue<TreeNode*> q;
q.push(root);
while( !q.empty() ){
TreeNo... | 27.717949 | 59 | 0.561517 | cenation092 |
3421540a781d8f420304188de42314b87e7e9bff | 412 | hpp | C++ | include/Algorithm/OfflineClustering/OfflineClustering.hpp | intellistream/Sesame | efbd40084c591059af851f71bdafd96ab021f524 | [
"MIT"
] | null | null | null | include/Algorithm/OfflineClustering/OfflineClustering.hpp | intellistream/Sesame | efbd40084c591059af851f71bdafd96ab021f524 | [
"MIT"
] | 48 | 2022-03-14T09:33:09.000Z | 2022-03-31T08:41:46.000Z | include/Algorithm/OfflineClustering/OfflineClustering.hpp | intellistream/Sesame | efbd40084c591059af851f71bdafd96ab021f524 | [
"MIT"
] | null | null | null | // Copyright (C) 2021 by the IntelliStream team (https://github.com/intellistream)
//
// Created by Shuhao Zhang on 19/07/2021.
//
#ifndef SESAME_SRC_ALGORITHM_OFFLINE_CLUSTERING_HPP_
#define SESAME_SRC_ALGORITHM_OFFLINE_CLUSTERING_HPP_
#include <cstdio>
#include <iostream>
using namespace std;
namespace SESAME {
c... | 21.684211 | 82 | 0.800971 | intellistream |
34215feb7a749aef1856bf843972fc4032c4647e | 7,367 | hpp | C++ | Sisyphe/cppbase/src/interpreter/cppVariableInterpreterAccess.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/cppVariableInterpreterAccess.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/cppVariableInterpreterAccess.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | /*
* cppVariableInterpreterAccess.hpp
*
*
* @date 14-07-2020
* @author Teddy DIDE
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _CPPVARIABLE_INTERPRETER_ACCESS_HPP_
#define _CPPVARIABLE_INTERPRETER_ACCESS_HPP_
#include "config.hpp"
#include "Macros.hpp"
#include "String.hpp"
#include "cppBas... | 50.458904 | 179 | 0.793946 | tedi21 |
3422ada7a8e90c1eaed63baba67ac0d46fd0e0e1 | 28,121 | cpp | C++ | modules/objfmts/mach/MachOutput.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | 1 | 2016-06-03T20:02:45.000Z | 2016-06-03T20:02:45.000Z | modules/objfmts/mach/MachOutput.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | modules/objfmts/mach/MachOutput.cpp | path64/assembler | 32ade96bc087d3a3e015e03d69fa48c41a7071a6 | [
"BSD-2-Clause"
] | null | null | null | //
// Mach-O object format writer
//
// Copyright (C) 2002-2012 Peter Johnson
//
// 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, th... | 31.00441 | 80 | 0.601757 | path64 |
3423ffed1e102ef4c5775c9d98f59d3681f64e59 | 3,373 | cpp | C++ | crossConnIntegrationTests/src/main/native/cpp/AnalogTest.cpp | shueja-personal/allwpilib | 4b2f6be29e21986703d9c3ddcd2fe07121b2ff6b | [
"BSD-3-Clause"
] | 707 | 2016-05-11T16:54:13.000Z | 2022-03-30T13:03:15.000Z | crossConnIntegrationTests/src/main/native/cpp/AnalogTest.cpp | shueja-personal/allwpilib | 4b2f6be29e21986703d9c3ddcd2fe07121b2ff6b | [
"BSD-3-Clause"
] | 2,308 | 2016-05-12T00:17:17.000Z | 2022-03-30T20:08:10.000Z | crossConnIntegrationTests/src/main/native/cpp/AnalogTest.cpp | shueja-personal/allwpilib | 4b2f6be29e21986703d9c3ddcd2fe07121b2ff6b | [
"BSD-3-Clause"
] | 539 | 2016-05-11T20:33:26.000Z | 2022-03-28T20:20:25.000Z | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include <hal/AnalogInput.h>
#include <hal/AnalogOutput.h>
#include <wpi/SmallVector.h>
#include "CrossConnects.h"
#inc... | 29.849558 | 80 | 0.736733 | shueja-personal |
34299f0dda0176a20c8e7aed824ee1aee6735e68 | 1,551 | hpp | C++ | LinkedList.hpp | hyzale/Process-Scheduling | ed19c8a4dde0683db058937d37be4cfb7fb17120 | [
"Unlicense"
] | null | null | null | LinkedList.hpp | hyzale/Process-Scheduling | ed19c8a4dde0683db058937d37be4cfb7fb17120 | [
"Unlicense"
] | null | null | null | LinkedList.hpp | hyzale/Process-Scheduling | ed19c8a4dde0683db058937d37be4cfb7fb17120 | [
"Unlicense"
] | null | null | null | #ifndef LINKED_LIST
#define LINKED_LIST
#include "List.hpp"
#include "LinkedListNode.hpp"
template <class item_t>
class LinkedList : public List<item_t>
{
protected:
LinkedListNode<item_t>* head;
LinkedListNode<item_t>* tail;
int size;
public:
LinkedList();
virtual ~LinkedList();
//Pushes ... | 26.288136 | 64 | 0.705351 | hyzale |
342b34af3d7e0cb921d9ad2b40e83219690621fb | 8,852 | cpp | C++ | shell/themes/themesel/sbpage.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | shell/themes/themesel/sbpage.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | shell/themes/themesel/sbpage.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "pch.h"
#include "resource.h"
#include "main.h"
INT_PTR CALLBACK SBPage_DlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
UINT SBPage_GetScrollBarID();
void SBPage_UpdateControls( HWND hwnd );
void SBPage_UpdateStyle( HWND hwnd, DWORD dw, BOOL bRemove );
BOOL SBPage_OnInitDlg( HWND hwnd, UI... | 34.046154 | 90 | 0.561342 | npocmaka |
342e68a8317559acdb3b44606afb11079ec41f63 | 3,812 | cc | C++ | content/browser/geolocation/geolocation_service_impl.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | content/browser/geolocation/geolocation_service_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | content/browser/geolocation/geolocation_service_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/geolocation/geolocation_service_impl.h"
#include "content/browser/permissions/permission_controller_impl.h"
#include "content/p... | 38.505051 | 80 | 0.773347 | zipated |
343312e6649cea0d812bf816594c147ffd4a27cb | 3,154 | cpp | C++ | source/NFDecoderMimeTypes.cpp | rohankumardubey/NFDecoder | 80ca6b7de9496f9eeda18397766720a45891fa3f | [
"Apache-2.0"
] | 21 | 2019-05-08T00:17:45.000Z | 2022-02-01T06:09:44.000Z | source/NFDecoderMimeTypes.cpp | rohankumardubey/NFDecoder | 80ca6b7de9496f9eeda18397766720a45891fa3f | [
"Apache-2.0"
] | 2 | 2019-12-13T15:26:11.000Z | 2021-02-18T22:02:01.000Z | source/NFDecoderMimeTypes.cpp | rohankumardubey/NFDecoder | 80ca6b7de9496f9eeda18397766720a45891fa3f | [
"Apache-2.0"
] | 5 | 2020-10-09T23:52:13.000Z | 2022-03-19T10:02:10.000Z | /*
* Copyright (c) 2017 Spotify AB.
*
* 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 the Apache License,... | 48.523077 | 95 | 0.71338 | rohankumardubey |
343444f1836813c532c71d9fb25220abba65b864 | 1,849 | cpp | C++ | apps/myApps/ScreenMeasure/src/ofApp.cpp | nmbakfm/ScreenMeasure | f11cfa50370034fb9e721ee0ed74b19e73972753 | [
"MIT"
] | null | null | null | apps/myApps/ScreenMeasure/src/ofApp.cpp | nmbakfm/ScreenMeasure | f11cfa50370034fb9e721ee0ed74b19e73972753 | [
"MIT"
] | null | null | null | apps/myApps/ScreenMeasure/src/ofApp.cpp | nmbakfm/ScreenMeasure | f11cfa50370034fb9e721ee0ed74b19e73972753 | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
startX = 0;
endX = 0;
ofShowCursor();
ofBackground(0);
font.loadFont("Helvetica Neue Bold", 50);
}
//--------------------------------------------------------------
void ofApp::up... | 24.328947 | 126 | 0.348837 | nmbakfm |
3436c818d71ea67bc72dfb85a470db34d025c785 | 278 | cpp | C++ | src/J/J993.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/J/J993.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/J/J993.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include<cstdio>
#include<cmath>
#define ll long long
int main(){
ll a,f=2;
ll sum=0;
scanf("%lld",&a);
while(a!=1){
while(a/f*f==a){
sum+=f;
a=a/f;
} if(f%2==1) f++;
f++;
} printf("%d\n",sum);
return 0;
}
| 16.352941 | 25 | 0.417266 | wlhcode |
343727d13f4011f663117b4edd41c32b8517c8ac | 1,242 | cpp | C++ | Code/Property.cpp | spencerparkin/Blob | fe2fce80047a57d34e87bbd596c17b289ede12e0 | [
"MIT"
] | null | null | null | Code/Property.cpp | spencerparkin/Blob | fe2fce80047a57d34e87bbd596c17b289ede12e0 | [
"MIT"
] | null | null | null | Code/Property.cpp | spencerparkin/Blob | fe2fce80047a57d34e87bbd596c17b289ede12e0 | [
"MIT"
] | null | null | null | // Property.cpp
#include "Property.h"
//--------------------------------------------------------------------------------------
// AddModifier
//--------------------------------------------------------------------------------------
AddModifier::AddModifier( double delta, doubl... | 27.6 | 120 | 0.443639 | spencerparkin |
3442eb14cdb83119792e40d05f0c677442de3def | 1,530 | cpp | C++ | src/prod/src/Reliability/LoadBalancing/IPlacementAndLoadBalancing.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 1 | 2018-03-15T02:09:21.000Z | 2018-03-15T02:09:21.000Z | src/prod/src/Reliability/LoadBalancing/IPlacementAndLoadBalancing.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | src/prod/src/Reliability/LoadBalancing/IPlacementAndLoadBalancing.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// 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"
#include "... | 34.772727 | 98 | 0.681046 | AnthonyM |
34458923f94cebb2fc50ceeffd9fe209dcd7ef8b | 2,616 | cpp | C++ | misc/knight1.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | misc/knight1.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | misc/knight1.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | #include<cstdio>
const int dx[]={1,2,2,1,-1,-2,-2,-1},dy[]={2,1,-1,-2,-2,-1,1,2};
struct node
{
int x,y,n,k,s[8];
void go();
}stack[2500];
int bn,map[50][50],dg[50][50];
void setdg()
{
int i,j,k,px,py;
for(i=0;i<bn;i++)
for(j=0;j<bn;j++){
map[i][j]=0,dg[i][j]=0;
for(k=0;k... | 23.781818 | 64 | 0.318425 | dk00 |
3446d73b242817971133dc374bb8a04858f8869d | 1,385 | cpp | C++ | src/utility/pbc.cpp | antlju/hbs-code | 8a28edea41c51a5b36380ff103c4b42ffbe29123 | [
"MIT"
] | 1 | 2019-06-23T01:25:33.000Z | 2019-06-23T01:25:33.000Z | src/utility/pbc.cpp | antlju/hbs-code | 8a28edea41c51a5b36380ff103c4b42ffbe29123 | [
"MIT"
] | null | null | null | src/utility/pbc.cpp | antlju/hbs-code | 8a28edea41c51a5b36380ff103c4b42ffbe29123 | [
"MIT"
] | null | null | null | #include "includes.h"
void apply_pbc(Mesh &u)
{
size_t Ng = u.ng_,Nvars=u.nvar_;
size_t Nx=u.nx_,Ny=u.ny_,Nz=u.nz_;
for (size_t vi=0;vi<Nvars;vi++)
{
for (size_t i=0;i<Nx;i++)
{
for (size_t j=0;j<Ny;j++)
... | 37.432432 | 85 | 0.212274 | antlju |
4517d386b5c48e7dbbc3bfa8c75a013186859300 | 11,653 | cpp | C++ | Target/BeagleBoneBlack/CCore/src/dev/DevHDMI.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | 8 | 2017-12-21T07:00:16.000Z | 2020-04-02T09:05:55.000Z | Target/BeagleBoneBlack/CCore/src/dev/DevHDMI.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | null | null | null | Target/BeagleBoneBlack/CCore/src/dev/DevHDMI.cpp | SergeyStrukov/CCore-2-99 | 1eca5b9b2de067bbab43326718b877465ae664fe | [
"BSL-1.0"
] | 1 | 2020-03-30T09:54:18.000Z | 2020-03-30T09:54:18.000Z | /* DevHDMI.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: Target/BeagleBoneBlack
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local copy
... | 21.034296 | 102 | 0.65614 | SergeyStrukov |
451c0f494193e5eabd9489d15cd023fec3fbf480 | 1,307 | cpp | C++ | client/connectdialog.cpp | manpat/netsynth | 17b46aa373ed778a1e991aab10d221c8d2828b5b | [
"MIT",
"Unlicense"
] | 2 | 2016-09-06T12:03:11.000Z | 2016-09-06T17:25:58.000Z | client/connectdialog.cpp | manpat/netsynth | 17b46aa373ed778a1e991aab10d221c8d2828b5b | [
"MIT",
"Unlicense"
] | null | null | null | client/connectdialog.cpp | manpat/netsynth | 17b46aa373ed778a1e991aab10d221c8d2828b5b | [
"MIT",
"Unlicense"
] | null | null | null | #include "moc_connectdialog.h"
#include <QtGui/QLabel>
#include <QtGui/QToolTip>
#include <QtGui/QLineEdit>
#include <QtGui/QPushButton>
#include <QtGui/QHBoxLayout>
#include <QtGui/QRegExpValidator>
#include <QtCore/QDebug>
#include <QtCore/QRegExp>
#include "moc_clientnetwork.h"
ConnectDialog::ConnectDialog(QWidg... | 25.134615 | 93 | 0.706963 | manpat |
45345a5cbe729643443ce4409f150f8026e4c0e7 | 284 | cpp | C++ | Src/Lesson3/Casting/MemoryManagement_SmartPointers/Resource.cpp | arekbee/CppWorkshop | 301e620ff00613ae52af1da51816130623711f95 | [
"MIT"
] | null | null | null | Src/Lesson3/Casting/MemoryManagement_SmartPointers/Resource.cpp | arekbee/CppWorkshop | 301e620ff00613ae52af1da51816130623711f95 | [
"MIT"
] | 1 | 2016-01-06T19:19:08.000Z | 2016-01-18T17:21:46.000Z | Src/Lesson3/Casting/MemoryManagement_SmartPointers/Resource.cpp | arekbee/CppWorkshop | 301e620ff00613ae52af1da51816130623711f95 | [
"MIT"
] | null | null | null | #include <string>
#include "Resource.h"
#include <iostream>
using namespace std;
Resource::Resource(std::string name): resourceName(name)
{
cout << "constructing Resource: " << GetName() << endl;
}
Resource::~Resource()
{
cout << "destructing Resource: " << GetName() << endl;
} | 18.933333 | 56 | 0.672535 | arekbee |
453b4d331c3220f6d3df09696534cf8467393958 | 3,068 | cpp | C++ | src/jmespath.cpp | sotex/jmespath.cpp | 836ce82ccb1c93c054708bbf1a8a61da2aabeba1 | [
"MIT"
] | 12 | 2020-01-17T06:33:20.000Z | 2021-11-23T01:00:21.000Z | src/jmespath.cpp | sotex/jmespath.cpp | 836ce82ccb1c93c054708bbf1a8a61da2aabeba1 | [
"MIT"
] | 3 | 2020-04-07T16:18:47.000Z | 2022-02-26T08:57:58.000Z | src/jmespath.cpp | sotex/jmespath.cpp | 836ce82ccb1c93c054708bbf1a8a61da2aabeba1 | [
"MIT"
] | 1 | 2020-04-15T06:25:22.000Z | 2020-04-15T06:25:22.000Z | /****************************************************************************
**
** Author: Róbert Márki <gsmiko@gmail.com>
** Copyright (c) 2016 Róbert Márki
**
** This file is part of the jmespath.cpp project which is distributed under
** the MIT License (MIT).
**
** Permission is hereby granted, free of charge, to a... | 40.368421 | 79 | 0.687093 | sotex |
453bd69d2685c4b9cb4a3a57e8432185ac7c4fc7 | 2,200 | cpp | C++ | src/1_feature_extraction.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | 18 | 2016-05-15T04:17:53.000Z | 2021-12-08T14:50:21.000Z | src/1_feature_extraction.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | null | null | null | src/1_feature_extraction.cpp | swook/SfM | a99ab9f8daaa74d668510488b3920f68a6a02810 | [
"MIT"
] | 9 | 2015-11-19T15:43:21.000Z | 2021-06-24T12:37:35.000Z | #include <algorithm>
#include "opencv2/opencv.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/xfeatures2d/nonfree.hpp"
using namespace cv;
using namespace xfeatures2d;
#include "Pipeline.hpp"
#include "util.hpp"
void Pipeline::extract_features(const Images& images,CamFrames& cam_Frames,DescriptorsVec& descr... | 30.136986 | 107 | 0.697727 | swook |
453be59e73eac706890c89b654a18c91ac845c66 | 307 | cpp | C++ | csgo/hooking/hooks/LockCursor.cpp | TsunamiNori/DEADCELL-CSGO | cfdd4ad3b23360b93466908025a630bc0ffc67e4 | [
"MIT"
] | 506 | 2019-03-16T08:34:47.000Z | 2022-03-29T14:08:59.000Z | csgo/hooking/hooks/LockCursor.cpp | TsunamiNori/DEADCELL-CSGO | cfdd4ad3b23360b93466908025a630bc0ffc67e4 | [
"MIT"
] | 124 | 2019-03-17T02:54:57.000Z | 2021-03-29T01:51:05.000Z | csgo/hooking/hooks/LockCursor.cpp | TsunamiNori/DEADCELL-CSGO | cfdd4ad3b23360b93466908025a630bc0ffc67e4 | [
"MIT"
] | 219 | 2019-03-16T21:39:01.000Z | 2022-03-30T08:59:24.000Z | #include "../../inc.h"
void __stdcall hook::LockCursor( ) {
if( g_renderer.get_instance( ) ) {
if( g_renderer.get_instance( )->IsEnabled( ) ) {
g_csgo.m_surface->unlock_cursor( );
return;
}
}
g_hooks.m_surface.get_old_method< fn::LockCursor_t >( hook::idx::LOCK_CURSOR )( g_csgo.m_surface );
} | 27.909091 | 100 | 0.67101 | TsunamiNori |
453eb1dfc81fa9c9196c6823d294604f1c4dcdd1 | 1,448 | cpp | C++ | google/traverse.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | 1 | 2016-09-14T00:54:52.000Z | 2016-09-14T00:54:52.000Z | google/traverse.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | null | null | null | google/traverse.cpp | lordstone/shua_codes | cf4e0d5488ccd8e46e0cfe0fabaaadf7894bf8f3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_set>
using namespace std;
unordered_set<string> ext;
long long countPath(string f, vector<string>& dir){
long long count = 0;
count += static_cast<int>(f.length());
for (auto item : dir){
count += static_cast<int>(item.length());
}
return count + 1;
}
... | 19.052632 | 52 | 0.554558 | lordstone |
453fe37b89577edfdf38f16175186994fb844fa6 | 12,691 | cpp | C++ | src/vi/la/cpu/cpu_context.cpp | ville-k/vinn | 288d64c5d525ca2d887d829097567f3e0104ab34 | [
"MIT"
] | 39 | 2015-05-08T15:58:07.000Z | 2021-08-20T22:49:38.000Z | src/vi/la/cpu/cpu_context.cpp | ville-k/vinn | 288d64c5d525ca2d887d829097567f3e0104ab34 | [
"MIT"
] | null | null | null | src/vi/la/cpu/cpu_context.cpp | ville-k/vinn | 288d64c5d525ca2d887d829097567f3e0104ab34 | [
"MIT"
] | 10 | 2015-09-17T23:58:04.000Z | 2020-05-09T10:09:10.000Z | #include "vi/la/cpu/cpu_context.h"
#include "vi/la/cpu/cpu_matrix.h"
#include "vi/la/matrix.h"
#include <cassert>
#include <cmath>
#include <memory>
#include <cfenv>
#include <iostream>
using std::cout;
using std::endl;
namespace vi {
namespace la {
std::shared_ptr<vi::la::matrix_implementation>
cpu_context::implem... | 41.071197 | 98 | 0.646994 | ville-k |
4543984af805b1a27beff9137da8b476f69310b5 | 1,876 | cpp | C++ | Infrastructure/Log.cpp | TommyRadan/AlphaEngine | 5d248e6e980eb0e4759dc698bdc1eece551b9145 | [
"MIT"
] | 1 | 2019-07-13T10:39:20.000Z | 2019-07-13T10:39:20.000Z | Infrastructure/Log.cpp | TommyRadan/AlphaEngine | 5d248e6e980eb0e4759dc698bdc1eece551b9145 | [
"MIT"
] | 1 | 2017-04-05T00:41:36.000Z | 2017-04-05T00:41:36.000Z | Infrastructure/Log.cpp | TommyRadan/AlphaEngine | 5d248e6e980eb0e4759dc698bdc1eece551b9145 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2015-2019 Tomislav Radanovic
*
* 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, m... | 36.076923 | 92 | 0.739872 | TommyRadan |
4543b7da6deb057c44b667e6f68595932066bfdb | 541 | cpp | C++ | dynamicProgramming/121BestTimeToBuyAndSellStock/121BestTimeToBuyAndSellStock/bestTimeToBuyAndSellStock.cpp | JJLOVEXX/myLeetcode | bff81ea4d609cf7a5fca2c0fa83ba5fd934f9877 | [
"MIT"
] | null | null | null | dynamicProgramming/121BestTimeToBuyAndSellStock/121BestTimeToBuyAndSellStock/bestTimeToBuyAndSellStock.cpp | JJLOVEXX/myLeetcode | bff81ea4d609cf7a5fca2c0fa83ba5fd934f9877 | [
"MIT"
] | null | null | null | dynamicProgramming/121BestTimeToBuyAndSellStock/121BestTimeToBuyAndSellStock/bestTimeToBuyAndSellStock.cpp | JJLOVEXX/myLeetcode | bff81ea4d609cf7a5fca2c0fa83ba5fd934f9877 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int maxProfit(vector<int>& prices);
int main() {
vector<int>prices = { 7,1,5,3,6,4 };
cout << maxProfit(prices);
system("pause");
}
int maxProfit(vector<int>& prices)
{
int max = 0;
for (int j = 0; j < prices.size(); ... | 15.911765 | 42 | 0.532348 | JJLOVEXX |
4544434cb613a2ac9219cfcfa98db0867ba16abd | 285 | cpp | C++ | Three_dividers/Three_dividers.cpp | TotalChest/Small-programs | 561dc36ecffd57378f7384ada947e55e4d38252d | [
"CNRI-Python"
] | null | null | null | Three_dividers/Three_dividers.cpp | TotalChest/Small-programs | 561dc36ecffd57378f7384ada947e55e4d38252d | [
"CNRI-Python"
] | null | null | null | Three_dividers/Three_dividers.cpp | TotalChest/Small-programs | 561dc36ecffd57378f7384ada947e55e4d38252d | [
"CNRI-Python"
] | null | null | null | #include <iostream>
#include <cmath>
#define MIN(x,y) ((x)<(y)?(x):(y))
int main(void){
int n, count = 0;
std::cin >> n;
for(int i = ceil((float)n/3); i < n-1; i++)
for(int j = ceil( ((float)(n-i)) / 2); j <= MIN(i,n-i-1); j++)
count++;
std::cout << count;
return 0;
}
| 15 | 64 | 0.505263 | TotalChest |
4544d313628c4285db667635f67c252895ed897f | 2,202 | cpp | C++ | rmw_fastrtps_shared_cpp/src/rmw_event.cpp | Ericsson/ros2-rmw_fastrtps | 23f9c4c09d499c6d1cd5cdeb127f823bbf37520c | [
"Apache-2.0"
] | 97 | 2016-12-25T11:03:09.000Z | 2022-03-11T08:58:27.000Z | rmw_fastrtps_shared_cpp/src/rmw_event.cpp | Ericsson/ros2-rmw_fastrtps | 23f9c4c09d499c6d1cd5cdeb127f823bbf37520c | [
"Apache-2.0"
] | 434 | 2016-11-18T19:26:04.000Z | 2022-03-31T22:54:53.000Z | rmw_fastrtps_shared_cpp/src/rmw_event.cpp | Ericsson/ros2-rmw_fastrtps | 23f9c4c09d499c6d1cd5cdeb127f823bbf37520c | [
"Apache-2.0"
] | 80 | 2016-12-01T13:38:48.000Z | 2022-03-17T11:02:38.000Z | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unles... | 31.014085 | 99 | 0.795186 | Ericsson |
45467c70042899d8e40a21504c4e8508cc3c48ab | 10,149 | cpp | C++ | pymaplib_cpp/sip/smartptr_proxy.cpp | Grk0/MapsEvolved | e058a324e7d3c9b4c9b7e00d65b6f9da029fc7de | [
"PSF-2.0"
] | 3 | 2015-06-09T10:41:15.000Z | 2021-05-22T07:42:19.000Z | pymaplib_cpp/sip/smartptr_proxy.cpp | Grk0/MapsEvolved | e058a324e7d3c9b4c9b7e00d65b6f9da029fc7de | [
"PSF-2.0"
] | null | null | null | pymaplib_cpp/sip/smartptr_proxy.cpp | Grk0/MapsEvolved | e058a324e7d3c9b4c9b7e00d65b6f9da029fc7de | [
"PSF-2.0"
] | null | null | null | #include <Python.h>
#include <sip.h>
#include <string>
#define sipRegisterPyType sipAPI->api_register_py_type
#define sipWrapper_Type sipAPI->api_wrapper_type
#define sipWrapperType_Type sipAPI->api_wrappertype_type
static PyObject *SmartptrProxy_new(PyTypeObject *otype, PyObject *args,... | 36.771739 | 79 | 0.592177 | Grk0 |
455295e7bd801ec0f2d0aa39f178c536346b2aed | 151 | cpp | C++ | Hurikan/src/Hurikan/Scene/Entity.cpp | RikalSiHurikan/Hurikan | c871a7b926214f7f8ef6b5afd2daf85725af3e22 | [
"Apache-2.0"
] | 1 | 2022-03-21T13:30:53.000Z | 2022-03-21T13:30:53.000Z | Hurikan/src/Hurikan/Scene/Entity.cpp | RikalSiHurikan/Hurikan | c871a7b926214f7f8ef6b5afd2daf85725af3e22 | [
"Apache-2.0"
] | 2 | 2021-09-23T21:26:26.000Z | 2022-01-04T12:06:50.000Z | Hurikan/src/Hurikan/Scene/Entity.cpp | RikalSiHurikan/Hurikan | c871a7b926214f7f8ef6b5afd2daf85725af3e22 | [
"Apache-2.0"
] | null | null | null | #include "hupch.h"
#include "Entity.h"
namespace Hurikan
{
Entity::Entity(entt::entity id, Scene* scene) : m_EntityHandle(id), m_Scene(scene)
{
}
} | 16.777778 | 83 | 0.695364 | RikalSiHurikan |
4555659303b8ab09c9675ed87876a00eb0f18cbf | 39 | hpp | C++ | include/minsoo/intbit/fixed28_36.hpp | RatkoFri/minsoo_caffe | be68b7ad0006d6145d6629eeb5b65cf3dd8b7437 | [
"BSD-2-Clause"
] | 1 | 2020-10-19T10:17:39.000Z | 2020-10-19T10:17:39.000Z | include/minsoo/intbit/fixed28_36.hpp | RatkoFri/minsoo_caffe | be68b7ad0006d6145d6629eeb5b65cf3dd8b7437 | [
"BSD-2-Clause"
] | null | null | null | include/minsoo/intbit/fixed28_36.hpp | RatkoFri/minsoo_caffe | be68b7ad0006d6145d6629eeb5b65cf3dd8b7437 | [
"BSD-2-Clause"
] | 1 | 2021-11-15T08:39:10.000Z | 2021-11-15T08:39:10.000Z | #define INTBITS 28
#define FRACBITS 36
| 13 | 19 | 0.794872 | RatkoFri |
45590c41dbb43bccdf845619f0fde5667e31fa96 | 1,296 | cc | C++ | app/g4hpc/src/DetectorConstruction.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | app/g4hpc/src/DetectorConstruction.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | app/g4hpc/src/DetectorConstruction.cc | celeritas-project/acceleritas | 50c37807fed84855fc32ee0a84f13007cd62c245 | [
"Apache-2.0",
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 27.574468 | 79 | 0.58179 | celeritas-project |
4559b44271edaf331d21e6f98503788182e2c8ab | 11,773 | cpp | C++ | src/main.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | 2 | 2021-11-09T11:30:02.000Z | 2022-01-13T17:47:49.000Z | src/main.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | src/main.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | #include <mpi.h>
#include <iostream>
#include <fstream>
#include <assert.h>
#include <vector>
#include <algorithm>
#include <chrono>
#include "snake_computation.hpp"
const int debug_level = 0;
#ifndef NDEBUG
#define DEBUG(level, x) \
if (debug_level >= level) \
{ \
s... | 26.279018 | 147 | 0.564087 | tehwalris |
455f99a7b36b492cf55725aba915983ed11ce94e | 1,002 | cpp | C++ | oop-rubook/cp11/11-8.cpp | lymven-io/OOP | dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a | [
"MIT"
] | null | null | null | oop-rubook/cp11/11-8.cpp | lymven-io/OOP | dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a | [
"MIT"
] | null | null | null | oop-rubook/cp11/11-8.cpp | lymven-io/OOP | dd4f8487c15b4b58c7d24b0f7c0f0ad90b9ee54a | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
using namespace std;
class A {
int a;
public:
void setA(int i) {
a = i;
}
int getA() {
return a;
}
};
template <class T>
class B: public A {
T b;
public:
void setB(int j, T k) {
b = k; ... | 16.42623 | 63 | 0.426148 | lymven-io |
456221e0c534822ebb7c44a9333427ddc22bb924 | 6,614 | cc | C++ | utils/json_utils.cc | kstepanmpmg/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 665 | 2015-12-09T17:00:14.000Z | 2022-03-25T07:46:46.000Z | utils/json_utils.cc | tomzhang/mldb | a09cf2d9ca454d1966b9e49ae69f2fe6bf571494 | [
"Apache-2.0"
] | 797 | 2015-12-09T19:48:19.000Z | 2022-03-07T02:19:47.000Z | utils/json_utils.cc | matebestek/mldb | f78791cd34d01796705c0f173a14359ec1b2e021 | [
"Apache-2.0"
] | 103 | 2015-12-25T04:39:29.000Z | 2022-02-03T02:55:22.000Z | /** json_utils.cc
Jeremy Barnes, 10 November 2013
Copyright (c) 2013 mldb.ai inc. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
Utilities for JSON values.
*/
#include <algorithm>
#include "json_utils.h"
#include "mldb/utils/string_functions.h"
#inclu... | 25.635659 | 93 | 0.573934 | kstepanmpmg |
4563cc286fc1c3da703fbbc8a72332255715b1b8 | 3,560 | cpp | C++ | src/editors/xrWeatherEditor/property_vec3f_base.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 2 | 2015-02-23T10:43:02.000Z | 2015-06-11T14:45:08.000Z | src/editors/xrWeatherEditor/property_vec3f_base.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 17 | 2022-01-25T08:58:23.000Z | 2022-03-28T17:18:28.000Z | src/editors/xrWeatherEditor/property_vec3f_base.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 1 | 2015-06-05T20:04:00.000Z | 2015-06-05T20:04:00.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : property_vec3f_base.cpp
// Created : 29.12.2007
// Modified : 29.12.2007
// Author : Dmitriy Iassenev
// Description : property vec3f base class
////////////////////////////////////////////////////////////////////////////
#i... | 39.120879 | 107 | 0.686798 | clayne |
45697ceab8a6465ce727a6756356d662737cbb07 | 738 | cpp | C++ | LeetCode/Solutions/LC0916.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | LeetCode/Solutions/LC0916.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | LeetCode/Solutions/LC0916.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://leetcode.com/problems/word-subsets/
Time: O(A + B)
Space: O(A)
Author: Mohammed Shoaib, github.com/Mohammed-Shoaib
*/
class Solution {
public:
vector<string> wordSubsets(vector<string>& A, vector<string>& B) {
vector<int> freq(26);
vector<string> universal;
for (string& word: B)... | 20.5 | 79 | 0.574526 | Mohammed-Shoaib |
456dc965a0bf5ed1747d4c9383c6d59d5bd5b1ec | 669 | cpp | C++ | Windows/Visual Studio/SSEfpSphereVolArea/SSEfpSphereVolArea/SSEfpSphereVolArea.cpp | leonhad/masm | f5739a8c8c6c461f9e928576ff36f7991541959b | [
"MIT"
] | 9 | 2020-05-29T14:03:07.000Z | 2021-06-17T07:56:26.000Z | Windows/Visual Studio/SSEfpSphereVolArea/SSEfpSphereVolArea/SSEfpSphereVolArea.cpp | leonhad/masm | f5739a8c8c6c461f9e928576ff36f7991541959b | [
"MIT"
] | null | null | null | Windows/Visual Studio/SSEfpSphereVolArea/SSEfpSphereVolArea/SSEfpSphereVolArea.cpp | leonhad/masm | f5739a8c8c6c461f9e928576ff36f7991541959b | [
"MIT"
] | 4 | 2021-04-17T17:41:54.000Z | 2022-03-13T16:06:39.000Z | // SSEfpSphereVolArea.cpp : Este arquivo contém a função 'main'. A execução do programa começa e termina ali.
//
#include <iostream>
extern "C" bool SseSphereCalculator(double r, double *sa, double *v);
int main()
{
const double r[] =
{
-1.0,
0.0,
1.0,
3.0,
9.0,
... | 18.081081 | 109 | 0.494768 | leonhad |
456f878c29bfca91e8dd70b92208944b64dd55af | 66,984 | cpp | C++ | packages/core/RecordObject.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 2 | 2021-05-06T19:56:26.000Z | 2021-05-27T16:41:56.000Z | packages/core/RecordObject.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 54 | 2021-03-30T18:45:12.000Z | 2022-03-17T20:13:04.000Z | packages/core/RecordObject.cpp | ICESat2-SlideRule/sliderule | 90776d7e174e151c5806077001f5f9c21ef81f48 | [
"BSD-3-Clause"
] | 1 | 2021-05-14T16:34:08.000Z | 2021-05-14T16:34:08.000Z | /*
* Copyright (c) 2021, University of Washington
* 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 li... | 37.801354 | 197 | 0.496208 | ICESat2-SlideRule |
4571782470404067036049f9b9961a3041da08d0 | 1,529 | cpp | C++ | tests/unit/appc/schema/test_labels.cpp | cdaylward/libappc | 4f7316b584d92a110198a3f1573c170e5492194c | [
"Apache-2.0"
] | 63 | 2015-01-20T18:35:27.000Z | 2021-11-16T10:53:40.000Z | tests/unit/appc/schema/test_labels.cpp | Manu343726/libappc | 8d181ef4ee80c8f1bcbf6ca04cf66e04e5e5bc8a | [
"Apache-2.0"
] | 5 | 2015-01-20T17:28:54.000Z | 2015-02-09T17:36:54.000Z | tests/unit/appc/schema/test_labels.cpp | cdaylward/libappc | 4f7316b584d92a110198a3f1573c170e5492194c | [
"Apache-2.0"
] | 12 | 2015-01-26T04:37:08.000Z | 2020-11-14T02:19:13.000Z | #include "gtest/gtest.h"
#include "appc/schema/labels.h"
using namespace appc::schema;
TEST(Label, from_json) {
const Json json = { {"name", "name.given"}, {"value", "Herbert"} };
std::shared_ptr<Label> result = Label::from_json(json);
Label& label = *result;
ASSERT_EQ(std::string{"name.given"}, label.name)... | 26.362069 | 78 | 0.593852 | cdaylward |
457a31b13b79fb6035a014f8cb08bbaf782ee2f4 | 787 | cpp | C++ | gui/qt-gui/processor/facedetection.cpp | yleniaBattistini/ObjectTracker | 9f408d2c8e55209e80592ab17e6cddfddb38f5c4 | [
"MIT"
] | null | null | null | gui/qt-gui/processor/facedetection.cpp | yleniaBattistini/ObjectTracker | 9f408d2c8e55209e80592ab17e6cddfddb38f5c4 | [
"MIT"
] | null | null | null | gui/qt-gui/processor/facedetection.cpp | yleniaBattistini/ObjectTracker | 9f408d2c8e55209e80592ab17e6cddfddb38f5c4 | [
"MIT"
] | null | null | null | #include "facedetection.h"
#include<iostream>
#include<stdlib.h>
#include<vector>
#include<QtCore/QDir>
#include <QDir>
#include <QProcessEnvironment>
using namespace cv;
using namespace std;
FaceDetection::FaceDetection()
{
QDir dir = QDir(QProcessEnvironment::systemEnvironment().value("OPENCV_DIR"));
dir.c... | 24.59375 | 83 | 0.698856 | yleniaBattistini |
457ad0b4da3e0c0a4a65bb434626f3950c1f0146 | 9,264 | cpp | C++ | velox/exec/Merge.cpp | laithsakka/velox | 41c01f63276205f6afd7e1db49c9d09430dcfbcc | [
"ECL-2.0",
"Apache-2.0"
] | 672 | 2021-09-22T16:45:58.000Z | 2022-03-31T13:42:31.000Z | velox/exec/Merge.cpp | laithsakka/velox | 41c01f63276205f6afd7e1db49c9d09430dcfbcc | [
"ECL-2.0",
"Apache-2.0"
] | 986 | 2021-09-22T17:02:52.000Z | 2022-03-31T23:57:25.000Z | velox/exec/Merge.cpp | laithsakka/velox | 41c01f63276205f6afd7e1db49c9d09430dcfbcc | [
"ECL-2.0",
"Apache-2.0"
] | 178 | 2021-09-22T17:27:47.000Z | 2022-03-31T03:18:37.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 28.681115 | 79 | 0.649503 | laithsakka |
457d0ce8c2651c9d619cf37b72724a4d64c8c7c3 | 2,000 | cpp | C++ | c++/fila/fila.cpp | Fernando3917/c-- | 0429ca27b8ba5cf3c7d18ac4629bd2f3906abe45 | [
"MIT"
] | null | null | null | c++/fila/fila.cpp | Fernando3917/c-- | 0429ca27b8ba5cf3c7d18ac4629bd2f3906abe45 | [
"MIT"
] | null | null | null | c++/fila/fila.cpp | Fernando3917/c-- | 0429ca27b8ba5cf3c7d18ac4629bd2f3906abe45 | [
"MIT"
] | null | null | null | //exercicio do tipo fila
#include <iostream>
#include <conio.h>
using namespace std;
const int MAXTAM=3;
//------------ ---- -- -- -- Classe Fila com vetor
class TipoFila{
private:
string Item[MAXTAM];
int frente, tras, Quantos;
public:
TipoFila ();
int vazia ();
int cheia ();
int tamanho();
void... | 15.748031 | 81 | 0.472 | Fernando3917 |
457ea31463d54c2ddf605c53be75ce17840074e2 | 677 | cpp | C++ | Cpp/misc/named/SnakesAndLadders.cpp | MarioJim/CompetitiveProgramming | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | 1 | 2019-01-28T15:12:20.000Z | 2019-01-28T15:12:20.000Z | Cpp/misc/named/SnakesAndLadders.cpp | MarioJim/ClubDeProgra | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | null | null | null | Cpp/misc/named/SnakesAndLadders.cpp | MarioJim/ClubDeProgra | ade07551e37e32be3f6511bfe68ed633701c3a4d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
int last = 100;
int* arr;
unordered_map<int, int> from_to = {{1, 18}, {7, 18}, {24, 2}, {22, 20}, {13, 6}};
int main() {
arr = new int[last + 1];
fill(arr, arr+last+1, INT32_MAX);
arr[0] = 0;
for (int i = 1; i <= last... | 24.178571 | 81 | 0.440177 | MarioJim |
458945bba18370ed4f362a8221e9903beae21b8d | 374 | cpp | C++ | Commands/CommandComment.cpp | yehonatansofri/SonySim | 93c98c4bebbbb6f0616c8be7230407ad3cec2c15 | [
"OML"
] | null | null | null | Commands/CommandComment.cpp | yehonatansofri/SonySim | 93c98c4bebbbb6f0616c8be7230407ad3cec2c15 | [
"OML"
] | null | null | null | Commands/CommandComment.cpp | yehonatansofri/SonySim | 93c98c4bebbbb6f0616c8be7230407ad3cec2c15 | [
"OML"
] | null | null | null | /**
* this class is a dummy command - just ignores the line.
*
* @authoer Rony
* @date 12/28/19
*/
#include "../DataManagement/GeneralData.h"
#include "../DataManagement/GlobalVars.h"
#include "CommandComment.h"
/**
* Comment Command
*/
int CommandComment ::execute(int index) {
while (tokens[index] != "\n... | 15.583333 | 57 | 0.614973 | yehonatansofri |
458973ffdcf7a721794483ac2cc3393d78c70167 | 5,096 | cpp | C++ | HMIN323/G-Map/src/gmap.cpp | Eikins/M2-Imagina | 6e37ef755bd5312fc808ec599b3bd76084d35568 | [
"MIT"
] | null | null | null | HMIN323/G-Map/src/gmap.cpp | Eikins/M2-Imagina | 6e37ef755bd5312fc808ec599b3bd76084d35568 | [
"MIT"
] | null | null | null | HMIN323/G-Map/src/gmap.cpp | Eikins/M2-Imagina | 6e37ef755bd5312fc808ec599b3bd76084d35568 | [
"MIT"
] | null | null | null | #include "gmap.hpp"
/*------------------------------------------------------------------------*/
// Return the application of the alpha_deg on dart
GMap::id_t GMap::alpha(degree_t degree, id_t dart) const
{
return alphas.at(dart)[degree];
}
// Return the application of a composition of alphas on dart
GMap::id_t G... | 25.48 | 80 | 0.572606 | Eikins |
45909071fca572a5a32623f1d9c0634d56f43913 | 5,157 | cpp | C++ | app/QVrViewer.cpp | josokw/YAAV-simulation | 4647b363a96b2564bdae725cb1b0a84188627cbc | [
"MIT"
] | null | null | null | app/QVrViewer.cpp | josokw/YAAV-simulation | 4647b363a96b2564bdae725cb1b0a84188627cbc | [
"MIT"
] | null | null | null | app/QVrViewer.cpp | josokw/YAAV-simulation | 4647b363a96b2564bdae725cb1b0a84188627cbc | [
"MIT"
] | null | null | null | #include "QVrViewer.h"
#include "Log.h"
#include "VirtualReality.h"
#include <QMouseEvent>
#include <QTimer>
#include <QWheelEvent>
QVrViewer::QVrViewer(VirtualReality &vr, QWidget *parent)
: QGLWidget(parent)
, isPerpendicular(false)
, timer(new QTimer(this))
, vr(&vr)
{
SET_FNAME("QVrView... | 24.098131 | 63 | 0.603258 | josokw |
4592f20da2e4dedf0dd178514dd729093f78e042 | 3,493 | cpp | C++ | QtnProperty/PropertyQSizeF.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | QtnProperty/PropertyQSizeF.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | QtnProperty/PropertyQSizeF.cpp | SolarCpp/QtnProperty | 6711a7436865f14d3a4398f0745de9f0de32c7b7 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
Copyright 2015-2017 Alexandra Cherdantseva <neluhus.vagus@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
... | 28.631148 | 80 | 0.727169 | SolarCpp |
45936c36ab935cc0403c46653c44e44c04efc689 | 1,159 | cpp | C++ | codeforce/547/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | codeforce/547/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | codeforce/547/B.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | /**
It takes a great deal of bravery to stand up to our enemies, but just as much to stand up to our friends.
*/
#include <bits/stdc++.h>
#define forn(i, l, r) for(int i=l;i<=r;++i)
#define all(v) v.begin(),v.end()
#define pb push_back
#define nd second
#define st first
#define sz(x) (int)x.size()
#define UNIQ... | 21.072727 | 113 | 0.611734 | heiseish |
45941b8061a63fd406b1929c72cde3734cf83878 | 1,918 | cpp | C++ | archsim/src/translate/adapt/llvm/lowering/LoweringCmp.cpp | Linestro/Gensim_Y | 031b74234a92622cf2d2d2ebc2d5ba03ca28ecf8 | [
"MIT"
] | 10 | 2020-07-14T22:09:30.000Z | 2022-01-11T09:57:52.000Z | archsim/src/translate/adapt/llvm/lowering/LoweringCmp.cpp | Linestro/Gensim_Y | 031b74234a92622cf2d2d2ebc2d5ba03ca28ecf8 | [
"MIT"
] | 6 | 2020-07-09T12:01:57.000Z | 2021-04-27T10:23:58.000Z | archsim/src/translate/adapt/llvm/lowering/LoweringCmp.cpp | Linestro/Gensim_Y | 031b74234a92622cf2d2d2ebc2d5ba03ca28ecf8 | [
"MIT"
] | 10 | 2020-07-29T17:05:26.000Z | 2021-12-04T14:57:15.000Z | /* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */
#include "translate/adapt/BlockJITAdaptorLowering.h"
#include "translate/adapt/BlockJITAdaptorLoweringContext.h"
using namespace archsim::translate::adapt;
bool BlockJITCMPLowering::Lower(const captive::shared::IRInstructio... | 30.444444 | 92 | 0.737748 | Linestro |
45958ae55c3a49dc043c919df182b1bc031191ed | 196 | cpp | C++ | project/Source/Zero/BuffSystem/Buff.cpp | ZhangShiQi/Zero | 598b9ec6b1b5ed98bbd366bb3ec9a4e0649db931 | [
"MIT"
] | null | null | null | project/Source/Zero/BuffSystem/Buff.cpp | ZhangShiQi/Zero | 598b9ec6b1b5ed98bbd366bb3ec9a4e0649db931 | [
"MIT"
] | null | null | null | project/Source/Zero/BuffSystem/Buff.cpp | ZhangShiQi/Zero | 598b9ec6b1b5ed98bbd366bb3ec9a4e0649db931 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "Buff.h"
void UBuff::OnInit()
{
}
void UBuff::OnUpdate(float delta)
{
}
void UBuff::OnExit()
{
}
| 8.909091 | 78 | 0.673469 | ZhangShiQi |
459b80a7ec56bc20cb1ee1d82a57f45915c468fa | 530,337 | hpp | C++ | IGC/Compiler/Builtins/PreCompiledFuncLibrary.hpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 440 | 2018-01-30T00:43:22.000Z | 2022-03-24T17:28:37.000Z | IGC/Compiler/Builtins/PreCompiledFuncLibrary.hpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 225 | 2018-02-02T03:10:47.000Z | 2022-03-31T10:50:37.000Z | IGC/Compiler/Builtins/PreCompiledFuncLibrary.hpp | kurapov-peter/intel-graphics-compiler | 98f7c938df0617912288385d243d6918135f0713 | [
"Intel",
"MIT"
] | 138 | 2018-01-30T08:15:11.000Z | 2022-03-22T14:16:39.000Z | /*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
namespace IGC
{
const unsigned char preCompiledFunctionLibrary [] =
{
0x42, 0x... | 75.859963 | 80 | 0.6315 | kurapov-peter |
45a4abd823b9804ef16b57d28c3e45ba07aae67b | 52 | cxx | C++ | math-lib/src/math/PeakFinder.cxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | math-lib/src/math/PeakFinder.cxx | andrey-nakin/caen-v1720e-frontend | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | 8 | 2019-03-06T08:43:29.000Z | 2019-05-07T11:28:08.000Z | math-lib/src/math/PeakFinder.cxx | andrey-nakin/gneis-daq | 00d713df62cf3abe330b08411e1f3732e56b4895 | [
"MIT"
] | null | null | null | #include "math/PeakFinder.hxx"
namespace math {
}
| 8.666667 | 30 | 0.711538 | andrey-nakin |
45a69168693612a64fefef9326003238eb785f57 | 212 | cpp | C++ | options.cpp | debbech-esprit/b_fast | 8497621ae2ff2fee7dd6d305a16cf1c123c9b074 | [
"Unlicense"
] | 1 | 2020-10-23T22:03:29.000Z | 2020-10-23T22:03:29.000Z | options.cpp | debbech-esprit/b_fast | 8497621ae2ff2fee7dd6d305a16cf1c123c9b074 | [
"Unlicense"
] | null | null | null | options.cpp | debbech-esprit/b_fast | 8497621ae2ff2fee7dd6d305a16cf1c123c9b074 | [
"Unlicense"
] | null | null | null | #include "options.h"
#include "ui_options.h"
Options::Options(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::Options)
{
ui->setupUi(this);
}
Options::~Options()
{
delete ui;
}
| 14.133333 | 36 | 0.59434 | debbech-esprit |
45a87151c16bbfb7ce224bc80d23bd6b5530d6fc | 2,286 | cpp | C++ | test/core/aio.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | null | null | null | test/core/aio.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | null | null | null | test/core/aio.cpp | nbosb/vcml | 5b946a32b024cbba8da6928971ffc2a4f9b712f1 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
* *
* Copyright 2021 Jan Henrik Weinstock *
* *
... | 40.105263 | 80 | 0.435696 | nbosb |
45ab35f76c1c9d996cfd2e5b974aada2d7894782 | 1,235 | cpp | C++ | Engine/Platforms/Soft/Android/SwAndSurface.cpp | azhirnov/GraphicsGenFramework-modular | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | 12 | 2017-12-23T14:24:57.000Z | 2020-10-02T19:52:12.000Z | Engine/Platforms/Soft/Android/SwAndSurface.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | Engine/Platforms/Soft/Android/SwAndSurface.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) Zhirnov Andrey. For more information see 'LICENSE.txt'
#include "Core/STL/Common/Platforms.h"
#include "Core/Config/Engine.Config.h"
#if defined( GRAPHICS_API_SOFT ) and defined( PLATFORM_ANDROID )
#include "Engine/Platforms/Soft/Android/SwAndSurface.h"
#include <android/native_window.h>
namespace... | 20.245902 | 77 | 0.464777 | azhirnov |
45b1e6abcd1b6ca3635bffe0c47ecb2af3fb5ece | 3,689 | cpp | C++ | testQtrCPP/testQtrCPP.cpp | alexgubanow/LocalGlobalTest | 71c2a547fe72ae43d170e0453aebbfa7a0ac075c | [
"MIT"
] | null | null | null | testQtrCPP/testQtrCPP.cpp | alexgubanow/LocalGlobalTest | 71c2a547fe72ae43d170e0453aebbfa7a0ac075c | [
"MIT"
] | null | null | null | testQtrCPP/testQtrCPP.cpp | alexgubanow/LocalGlobalTest | 71c2a547fe72ae43d170e0453aebbfa7a0ac075c | [
"MIT"
] | null | null | null | // testQtrCPP.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <d3d11_1.h>
#include <DirectXMath.h>
#include "SimpleMath.h"
#include "Stopwatch.h"
#include <chrono> // for high_resolution_clock
#include <stdio.h>
#include <conio.h>
#include "dcm_t.... | 29.512 | 100 | 0.618054 | alexgubanow |
45b50b73b8480b3488ee1be084b740e2ca7ad85b | 3,396 | cc | C++ | build/ARM/dev/arm/UFSHostDevice.py.cc | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/dev/arm/UFSHostDevice.py.cc | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | null | null | null | build/ARM/dev/arm/UFSHostDevice.py.cc | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_objects_UFSHostDevice[] = {
120,156,181,84,95,111,219,54,16,167,28,219,141,157,180,105,
187,102,43,208,62,240,165,131,55,20,209,146,34,47,197,80,
52,255,218,6,104,130,34,78,3,204,47,2,45,157,109,37,
162,232,242,168,36,238,107,246,45,246,97,183,1... | 51.454545 | 76 | 0.669611 | msharmavikram |
45b6fb30506b6026a8f422151b07ed8d9884cc68 | 303 | cpp | C++ | DynamicProgramming/LeetCode/00121.cpp | chiseungii/Algorithms | f0e7dd1c9fc29e77c97b644e602e94047b9cf887 | [
"MIT"
] | null | null | null | DynamicProgramming/LeetCode/00121.cpp | chiseungii/Algorithms | f0e7dd1c9fc29e77c97b644e602e94047b9cf887 | [
"MIT"
] | null | null | null | DynamicProgramming/LeetCode/00121.cpp | chiseungii/Algorithms | f0e7dd1c9fc29e77c97b644e602e94047b9cf887 | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProfit(vector<int>& prices) {
vector<int> DP = { 0 };
int min_price = prices[0];
for (int i = 1; i < prices.size(); i++) {
DP.push_back(max(DP[i - 1], prices[i] - min_price));
if (prices[i] < min_price) min_price = prices[i];
}
return DP.back();
}
};
| 20.2 | 55 | 0.584158 | chiseungii |
45b73655792974b5f25f97a0d9dc8602a8691bcd | 1,551 | cpp | C++ | sources/CRModules/crprofiler/src/gui_nm.cpp | chic-yukim/crsf | 57eddf5e86401eecc5560f3fc2e6297f86d801fc | [
"MIT"
] | 1 | 2019-05-10T04:31:10.000Z | 2019-05-10T04:31:10.000Z | sources/CRModules/crprofiler/src/gui_nm.cpp | chic-yukim/crsf | 57eddf5e86401eecc5560f3fc2e6297f86d801fc | [
"MIT"
] | 1 | 2019-04-14T11:49:07.000Z | 2019-05-10T00:43:38.000Z | sources/CRModules/crprofiler/src/gui_nm.cpp | chic-yukim/crsf | 57eddf5e86401eecc5560f3fc2e6297f86d801fc | [
"MIT"
] | 1 | 2019-01-17T06:12:29.000Z | 2019-01-17T06:12:29.000Z | /**
* MIT License
*
* Copyright (c) 2016-2018 Center of Human-centered Interaction for Coexistence
*
* 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 with... | 37.829268 | 106 | 0.738233 | chic-yukim |
45be1361f13caee574ec598596d2dafd336c1ac3 | 5,163 | cpp | C++ | code/parser/xml_hprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | 1 | 2019-03-28T20:40:36.000Z | 2019-03-28T20:40:36.000Z | code/parser/xml_hprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | code/parser/xml_hprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | // *****************************************************************************************
//
// File description:
//
// Author: Joao Costa
// Purpose: Implementation of a generic XML hierarchical processor
//
// *****************************************************************************************
// ***********... | 20.247059 | 128 | 0.552005 | jmpcosta |
45c1c96b20b4292b334a3989b75c250cfbd49361 | 25 | cpp | C++ | demo/contact/contactdata.cpp | Qters/QrWidgets | f408ce5841a258c742dd0609ff19c9a65f258a70 | [
"Apache-2.0"
] | 2 | 2016-08-15T12:43:14.000Z | 2021-03-10T11:36:16.000Z | demo/contact/contactdata.cpp | Qters/QrWidgets | f408ce5841a258c742dd0609ff19c9a65f258a70 | [
"Apache-2.0"
] | 2 | 2016-10-21T08:12:43.000Z | 2020-11-10T09:41:45.000Z | demo/contact/contactdata.cpp | Qters/QrWidgets | f408ce5841a258c742dd0609ff19c9a65f258a70 | [
"Apache-2.0"
] | 1 | 2017-10-11T16:20:23.000Z | 2017-10-11T16:20:23.000Z | #include "contactdata.h"
| 12.5 | 24 | 0.76 | Qters |
45c6422fef863882c222ec701e43a6ceb69a5498 | 2,689 | cpp | C++ | python/main.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | python/main.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | python/main.cpp | karasikov/cobs | 63ba36f042c59e14f721018e68e36e20a8bf4936 | [
"MIT"
] | null | null | null | /*******************************************************************************
* python/main.cpp
*
* Copyright (c) 2019 Timo Bingmann
*
* All rights reserved. Published under the MIT License in the LICENSE file.
******************************************************************************/
#include <pybind11/... | 32.39759 | 80 | 0.586463 | karasikov |
68f640dd1b1d2e3bb279fce0c0057177ff2ebde9 | 675 | hxx | C++ | source/code/iceshard/engine/public/ice/ecs/ecs_detail.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 39 | 2019-08-17T09:08:51.000Z | 2022-02-13T10:14:19.000Z | source/code/iceshard/engine/public/ice/ecs/ecs_detail.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 63 | 2020-05-22T16:09:30.000Z | 2022-01-21T14:24:05.000Z | source/code/iceshard/engine/public/ice/ecs/ecs_detail.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | null | null | null | #pragma once
#include <ice/stringid.hxx>
#include <ice/ecs/ecs_entity.hxx>
#include <algorithm>
namespace ice::ecs
{
namespace detail
{
template<typename T>
concept HasIdentifierMember = requires(T x) {
{ ice::clear_type_t<T>::Identifier } -> std::convertible_to<ice::StringID cons... | 24.107143 | 93 | 0.604444 | iceshard-engine |
68fb84eb39ca1140ecfcca7c160ce71394300682 | 574 | cpp | C++ | src/backends/windows/window/client_to_screen.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/windows/window/client_to_screen.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | src/backends/windows/window/client_to_screen.cpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #include <awl/backends/windows/optional_point.hpp>
#include <awl/backends/windows/windows.hpp>
#include <awl/backends/windows/window/client_to_screen.hpp>
#include <awl/backends/windows/window/object.hpp>
awl::backends::windows::optional_point awl::backends::windows::window::client_to_screen(
awl::backends::window... | 38.266667 | 88 | 0.726481 | freundlich |
ec0407c19e9c00e3f727e8f2531121298a4610e0 | 680 | cpp | C++ | Source/agc030/agc030_a.cpp | Scosa/Competitive-Programming | 19ecf1149e0fa4eb8bafa7e0bee0651741f5e906 | [
"MIT"
] | null | null | null | Source/agc030/agc030_a.cpp | Scosa/Competitive-Programming | 19ecf1149e0fa4eb8bafa7e0bee0651741f5e906 | [
"MIT"
] | null | null | null | Source/agc030/agc030_a.cpp | Scosa/Competitive-Programming | 19ecf1149e0fa4eb8bafa7e0bee0651741f5e906 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
int a,b,c;
cin >> a >> b >> c;
if(c >= a + b + 1) cout << a + b + 1 + b << endl;
else {
cout << c + b << endl;
}
for(int i = 0; i < n; i++) cout << "ok" << endl;
if... | 20 | 53 | 0.476471 | Scosa |
ec058dc5c8eae47fd7d7671f596a24de2014cfce | 367 | cpp | C++ | secret_number_client/BotAlex.cpp | abdalmoez/cpp-secret-number | cd8c00bf0c4f1d712fa48e67c66f22e2f3372a6f | [
"MIT"
] | null | null | null | secret_number_client/BotAlex.cpp | abdalmoez/cpp-secret-number | cd8c00bf0c4f1d712fa48e67c66f22e2f3372a6f | [
"MIT"
] | null | null | null | secret_number_client/BotAlex.cpp | abdalmoez/cpp-secret-number | cd8c00bf0c4f1d712fa48e67c66f22e2f3372a6f | [
"MIT"
] | null | null | null | #include "BotAlex.h"
void BotAlex::setup(int32_t min, int32_t max)
{
m_max = max;
m_min = min;
m_output = min - 1;
}
void BotAlex::learn()
{
if(m_output<m_max)
{
m_output++;
}
}
int32_t BotAlex::getOutput()
{
return m_output;
}
void BotAlex::onFail(int32_t v... | 13.592593 | 51 | 0.561308 | abdalmoez |
ec0a2646f9270a9458df9bf74690675a6c679b87 | 1,064 | cpp | C++ | src/WrapAroundFunction.cpp | CaptCrunch333/flight_controller_temp | df996cb6721cc00efe3c46379ecc7d992ae9c764 | [
"BSD-3-Clause"
] | null | null | null | src/WrapAroundFunction.cpp | CaptCrunch333/flight_controller_temp | df996cb6721cc00efe3c46379ecc7d992ae9c764 | [
"BSD-3-Clause"
] | null | null | null | src/WrapAroundFunction.cpp | CaptCrunch333/flight_controller_temp | df996cb6721cc00efe3c46379ecc7d992ae9c764 | [
"BSD-3-Clause"
] | 3 | 2020-10-26T12:37:07.000Z | 2020-10-27T04:44:27.000Z | #include "WrapAroundFunction.hpp"
WrapAroundFunction::WrapAroundFunction(double t_min_val,double t_max_val){
_min_val = t_min_val;
_max_val = t_max_val;
_span = _max_val-_min_val;
this->_input_port = new InputPort(ports_id::IP_0_DATA, this);
this->_output_port = new OutputPort(ports_id::OP_0_DATA,... | 25.95122 | 74 | 0.640038 | CaptCrunch333 |
ec0c3ef985529cc8b9225f585c9c790f060fdd70 | 4,324 | cpp | C++ | src/example/linear-algebra/Tines_FileInterface.cpp | sandialabs/Tines | 4485ec9293ea55641020a6a683d64da66d02fea2 | [
"BSD-2-Clause"
] | 3 | 2021-02-10T03:18:49.000Z | 2021-11-24T08:57:01.000Z | src/example/linear-algebra/Tines_FileInterface.cpp | sandialabs/Tines | 4485ec9293ea55641020a6a683d64da66d02fea2 | [
"BSD-2-Clause"
] | 1 | 2021-02-24T22:21:05.000Z | 2021-03-04T18:56:14.000Z | src/example/linear-algebra/Tines_FileInterface.cpp | sandialabs/Tines | 4485ec9293ea55641020a6a683d64da66d02fea2 | [
"BSD-2-Clause"
] | 3 | 2021-02-18T18:47:37.000Z | 2021-06-20T05:29:01.000Z | /*----------------------------------------------------------------------------------
Tines - Time Integrator, Newton and Eigen Solver - version 1.0
Copyright (2021) NTESS
https://github.com/sandialabs/Tines
Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract... | 39.309091 | 84 | 0.609852 | sandialabs |
ec0e4b85928b370230e1e5e83e4175f3eecb1220 | 444 | cpp | C++ | src/transforms/debounce.cpp | mairas/SensESP | 5e25db1bb205eeb485f922ca693713e8ffe6e3d6 | [
"Apache-2.0"
] | 4 | 2019-02-05T19:15:53.000Z | 2019-05-08T11:29:51.000Z | src/transforms/debounce.cpp | mairas/SensESP | 5e25db1bb205eeb485f922ca693713e8ffe6e3d6 | [
"Apache-2.0"
] | 2 | 2019-05-20T20:42:47.000Z | 2019-05-27T20:42:31.000Z | src/transforms/debounce.cpp | mairas/SensESP | 5e25db1bb205eeb485f922ca693713e8ffe6e3d6 | [
"Apache-2.0"
] | 3 | 2019-04-20T19:28:15.000Z | 2019-05-28T16:07:38.000Z | #include "debounce.h"
Debounce::Debounce(int msMinDelay, String sk_path, String config_path) :
SymmetricBooleanTransform(sk_path, config_path), msMinDelay{msMinDelay} {
lastTime = millis();
}
void Debounce::set_input(bool newValue, uint8_t inputChannel) {
int elapsed = millis() - lastTime;
if (newV... | 23.368421 | 77 | 0.664414 | mairas |
ec102d5b1e0ff273dc1c7d3bff4a88f841b952bf | 1,063 | hpp | C++ | source/Kai/Memory/ManagedObject.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | 4 | 2016-07-19T08:53:09.000Z | 2021-08-03T10:06:41.000Z | source/Kai/Memory/ManagedObject.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | source/Kai/Memory/ManagedObject.hpp | ioquatix/kai | 4f8d00cd05b4123b6389f8dc3187ec1421b4f2da | [
"Unlicense",
"MIT"
] | null | null | null | //
// ManagedObject.h
// This file is part of the "Kai" project, and is released under the MIT license.
//
// Created by Samuel Williams on 29/12/11.
// Copyright (c) 2011 Orion Transfer Ltd. All rights reserved.
//
#ifndef _KAI_MEMORY_MANAGEDOBJECT_H
#define _KAI_MEMORY_MANAGEDOBJECT_H
#include "ObjectAllocator.... | 21.693878 | 82 | 0.698024 | ioquatix |
ec1638d0bfa1575534c0644da9b7f2f3c4cddfa7 | 6,099 | cpp | C++ | api/core/nodejs/NJSBitcoinLikeScriptCpp.cpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | api/core/nodejs/NJSBitcoinLikeScriptCpp.cpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | api/core/nodejs/NJSBitcoinLikeScriptCpp.cpp | kodxana/lib-ledger-core | 96f04d378b7747e1b80b49da7ae637eb33b23678 | [
"MIT"
] | null | null | null | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from bitcoin_script.djinni
#include "NJSBitcoinLikeScriptCpp.hpp"
using namespace v8;
using namespace node;
using namespace std;
NAN_METHOD(NJSBitcoinLikeScript::head) {
//Check if method called with right number of arguments
if(info.Le... | 32.614973 | 145 | 0.692409 | kodxana |
ec1b93bd1efb840b8bae2792ee826b9a1bd78142 | 425 | cpp | C++ | tests/test_sa_unspec.cpp | StirlingLabs/libsa | 53ab48f1a87dd2b383bf4c7ea9c2f8bf05fc01dd | [
"MIT"
] | 2 | 2022-03-01T18:48:06.000Z | 2022-03-01T20:33:07.000Z | tests/test_sa_unspec.cpp | StirlingLabs/libsa | 53ab48f1a87dd2b383bf4c7ea9c2f8bf05fc01dd | [
"MIT"
] | null | null | null | tests/test_sa_unspec.cpp | StirlingLabs/libsa | 53ab48f1a87dd2b383bf4c7ea9c2f8bf05fc01dd | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "common.h"
#include "sa.h"
TEST(sa, unspec) {
sockaddr_in6 expected;
expected.sin6_family = AF_UNSPEC;
expected.sin6_port = htons(1000);
auto actual = reinterpret_cast<sockaddr_in6 *>( sa_unspec(1000));
EXPECT_NE(actual, nullptr);
EXPECT_EQ(actual->sin6_fami... | 22.368421 | 69 | 0.705882 | StirlingLabs |
ec1d64904eeb6f9f67b7efb1868106da49e26499 | 283 | hpp | C++ | library/ATF/_RTC_vardesc.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_RTC_vardesc.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_RTC_vardesc.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
struct _RTC_vardesc
{
int addr;
int size;
char *name;
};
END_ATF_NAMESPACE
| 18.866667 | 108 | 0.674912 | lemkova |
ec1f70e62c144323b628a40583bd1ab2ca48c871 | 938 | hpp | C++ | BrickEngine/src/BrickEngine/Renderer/Mesh.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | BrickEngine/src/BrickEngine/Renderer/Mesh.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | BrickEngine/src/BrickEngine/Renderer/Mesh.hpp | HomelikeBrick42/GameEngineTest1 | 3771c65fcd910d360e19b3820b5f4d758cb83997 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "BrickEngine/Core/Base.hpp"
#include "BrickEngine/Renderer/Vertex.hpp"
#include "BrickEngine/Renderer/VertexBuffer.hpp"
#include "BrickEngine/Renderer/IndexBuffer.hpp"
namespace BrickEngine {
class Mesh
{
public:
Mesh(const std::vector<Vertex>& vertices, const std::vector<uint32_t>& indic... | 26.8 | 84 | 0.73774 | HomelikeBrick42 |
ec20f845847b9a05f195a43d058386c71c5e5eec | 6,462 | cpp | C++ | Code/Source/Cesium/Math/BoundingVolumeConverters.cpp | CesiumGS/cesium-o3de | b4e682df0131256c08ec5680397abfbfcb89f4b0 | [
"Apache-2.0"
] | 23 | 2022-01-14T16:20:16.000Z | 2022-03-24T07:41:55.000Z | Code/Source/Cesium/Math/BoundingVolumeConverters.cpp | CesiumGS/cesium-o3de | b4e682df0131256c08ec5680397abfbfcb89f4b0 | [
"Apache-2.0"
] | 12 | 2022-01-21T18:34:26.000Z | 2022-03-28T16:03:35.000Z | Code/Source/Cesium/Math/BoundingVolumeConverters.cpp | CesiumGS/cesium-o3de | b4e682df0131256c08ec5680397abfbfcb89f4b0 | [
"Apache-2.0"
] | 4 | 2022-02-08T15:17:08.000Z | 2022-03-23T04:45:20.000Z | #include "Cesium/Math/BoundingVolumeConverters.h"
#include <Cesium/Math/BoundingRegion.h>
#include <Cesium/Math/BoundingSphere.h>
#include <Cesium/Math/OrientedBoundingBox.h>
namespace Cesium
{
TilesetBoundingVolume BoundingVolumeConverter::operator()(const CesiumGeometry::BoundingSphere& sphere)
{
ret... | 47.866667 | 132 | 0.668833 | CesiumGS |
ec23defea313bd7c082ae0755143e11d3334b9bc | 1,311 | cpp | C++ | cpp/hr.cpp | ashishpatel26/learning | b9e9472a70841061d2e755659872c8b093124f89 | [
"MIT"
] | 54 | 2017-09-10T17:28:21.000Z | 2021-12-17T14:55:04.000Z | cpp/hr.cpp | parvathirajan/learning | bb112015d4513414bf86c7392c12b13f8d0fdd21 | [
"MIT"
] | 1 | 2019-07-04T21:57:14.000Z | 2019-07-04T21:57:14.000Z | cpp/hr.cpp | parvathirajan/learning | bb112015d4513414bf86c7392c12b13f8d0fdd21 | [
"MIT"
] | 36 | 2017-11-13T16:54:58.000Z | 2022-02-07T11:20:20.000Z | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <string>
#include <ctype.h>
#include <sstream>
using namespace std;
vector<string> split(string str, char delimiter) {
vector<string> internal;
stringstream ss(str); // Turn the string into a stream.
string t... | 23.410714 | 84 | 0.607933 | ashishpatel26 |
ec2793f5a636b04907b69188fe35fbb557a9724d | 390 | hpp | C++ | includes/CRSMatrix.hpp | razerx100/Ceres | 271bf4dccae83403fa03b0905148dedfa1012052 | [
"MIT"
] | null | null | null | includes/CRSMatrix.hpp | razerx100/Ceres | 271bf4dccae83403fa03b0905148dedfa1012052 | [
"MIT"
] | null | null | null | includes/CRSMatrix.hpp | razerx100/Ceres | 271bf4dccae83403fa03b0905148dedfa1012052 | [
"MIT"
] | null | null | null | #ifndef CERES_MATRIX_HPP_
#define CERES_MATRIX_HPP_
#include "CRSVector.hpp"
namespace Ceres {
struct alignas(16) Matrix {
Vector row1;
Vector row2;
Vector row3;
Vector row4;
Matrix() = default;
constexpr Matrix(
const Vector& v1, const Vector& v2, const Vector& v3, const Vector& v4
) ... | 20.526316 | 74 | 0.658974 | razerx100 |
ec28d9aadf2f15adbb2e9ec29e3884c70746f3a7 | 99 | hh | C++ | test/helper.hh | gsauthof/libixxxutil | 6b5f82268bb9bb3c10df8cef3170e70a2f1592d8 | [
"BSD-2-Clause"
] | null | null | null | test/helper.hh | gsauthof/libixxxutil | 6b5f82268bb9bb3c10df8cef3170e70a2f1592d8 | [
"BSD-2-Clause"
] | null | null | null | test/helper.hh | gsauthof/libixxxutil | 6b5f82268bb9bb3c10df8cef3170e70a2f1592d8 | [
"BSD-2-Clause"
] | 1 | 2019-11-20T09:33:37.000Z | 2019-11-20T09:33:37.000Z | #ifndef TEST_HELPER_HH
#define TEST_HELPER_HH
char *portable_mkdtemp(char *dir_template);
#endif
| 14.142857 | 43 | 0.818182 | gsauthof |
ec34cd6e1225ce6f8cc54077b29e4e556bb1f551 | 1,767 | cpp | C++ | libraries/rosestd/test/utilities/charconv/to_chars_integral.test.cpp | griwes/reaveros | 01cc1be330e920d45445db32e44eb4b91491f36c | [
"Apache-2.0"
] | 17 | 2017-04-29T23:59:07.000Z | 2022-03-11T12:15:20.000Z | libraries/rosestd/test/utilities/charconv/to_chars_integral.test.cpp | griwes/reaveros | 01cc1be330e920d45445db32e44eb4b91491f36c | [
"Apache-2.0"
] | 9 | 2016-01-29T10:07:01.000Z | 2021-07-20T19:42:22.000Z | libraries/rosestd/test/utilities/charconv/to_chars_integral.test.cpp | griwes/reaveros | 01cc1be330e920d45445db32e44eb4b91491f36c | [
"Apache-2.0"
] | 5 | 2016-02-03T22:15:37.000Z | 2021-03-19T14:09:58.000Z | /*
* Copyright © 2021 Michał 'Griwes' Dominiak
*
* 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 la... | 25.985294 | 89 | 0.645161 | griwes |
ec355e10279245ef0348bddd5cc9a8335663225b | 645 | cpp | C++ | Week4/bagOfTokensScore.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | 1 | 2020-10-29T11:21:58.000Z | 2020-10-29T11:21:58.000Z | Week4/bagOfTokensScore.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | Week4/bagOfTokensScore.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | class Solution {
public:
int bagOfTokensScore(vector<int>& tokens, int P) {
int n = tokens.size();
if(n == 0) return 0;
sort(tokens.begin(), tokens.end());
int i = 0, j = n - 1, score = 0, maxScore = 0;
while(i <= j) {
if(tokens[i] <= P)... | 24.807692 | 54 | 0.372093 | AkashRajpurohit |