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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
213c84b7be04aa7ae3d301a422e826ade7b27841 | 2,606 | cpp | C++ | EZOJ/Contests/1422/B.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | EZOJ/Contests/1422/B.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | EZOJ/Contests/1422/B.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool neg=c=='-';
neg&&(c=getchar());
wh... | 19.742424 | 79 | 0.551036 | sshockwave |
213e3491559e27a11799e0c2004d030791e62960 | 1,062 | hh | C++ | src/image.hh | ja-he/palette-grabber | 1ed3259c0bb9cb7ab124fa68e54e5605a169b745 | [
"MIT"
] | null | null | null | src/image.hh | ja-he/palette-grabber | 1ed3259c0bb9cb7ab124fa68e54e5605a169b745 | [
"MIT"
] | null | null | null | src/image.hh | ja-he/palette-grabber | 1ed3259c0bb9cb7ab124fa68e54e5605a169b745 | [
"MIT"
] | null | null | null | #pragma once
#include "p3d.hh"
#include <filesystem>
#include <iostream>
#include <set>
#include <string>
#include <vector>
struct Pixel
{
uint8_t r = 0;
uint8_t g = 0;
uint8_t b = 0;
std::string to_hex(void) const;
uint32_t to_uint(void) const;
Point3D to_p3d(void) const;
operator uint32_t() ... | 18.310345 | 51 | 0.665725 | ja-he |
213ff2d3a76a648a23556c46d2dadf786db689c9 | 6,008 | cpp | C++ | essbasic/src/v20201222/model/CreateSealRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | essbasic/src/v20201222/model/CreateSealRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | essbasic/src/v20201222/model/CreateSealRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 24.422764 | 93 | 0.705393 | suluner |
21513b93e0783b813b826e7d500c0a27ca875053 | 5,530 | hpp | C++ | src/MPSegment.hpp | lostfish/cppjieba | a9a8e92a33731a2c420d760fcd04f5e2f7a4ef3b | [
"MIT"
] | 12 | 2015-07-22T06:09:32.000Z | 2020-11-06T02:23:38.000Z | src/MPSegment.hpp | lostfish/cppjieba | a9a8e92a33731a2c420d760fcd04f5e2f7a4ef3b | [
"MIT"
] | 1 | 2016-09-21T06:36:40.000Z | 2016-09-21T06:36:40.000Z | src/CppJieba/MPSegment.hpp | yanyiwu/ngx_http_cppjieba_module | 66e06c6b1ac20d4306fd55647724dc2e647d1413 | [
"MIT"
] | 10 | 2015-05-20T07:50:08.000Z | 2019-12-20T10:42:34.000Z | /************************************
* file enc : ASCII
* author : wuyanyi09@gmail.com
************************************/
#ifndef CPPJIEBA_MPSEGMENT_H
#define CPPJIEBA_MPSEGMENT_H
#include <algorithm>
#include <set>
#include <cassert>
#include "Limonp/Logger.hpp"
#include "DictTrie.hpp"
#include "DictTrie.hpp... | 31.420455 | 120 | 0.404521 | lostfish |
2154d7305dad240c901bdba9fb70a016fa24d218 | 3,254 | cpp | C++ | AircraftDynamicsTestFramework/TestFrameworkApplication.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TestFrameworkApplication.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | AircraftDynamicsTestFramework/TestFrameworkApplication.cpp | sbowman-mitre/FMACM | 510e8c23291425c56a387fadf4ba2b41a07e094d | [
"Apache-2.0"
] | null | null | null | // ****************************************************************************
// NOTICE
//
// This is the copyright work of The MITRE Corporation, and was produced
// for the U. S. Government under Contract Number DTFAWA-10-C-00080, and
// is subject to Federal Aviation Administration Acquisition Management
// System... | 35.758242 | 115 | 0.730486 | sbowman-mitre |
215ab34afe602add1a8013b195abe6c6333cec94 | 1,639 | cpp | C++ | src/confetti.cpp | JiangxueHan529/particles | e107cd8330dfdb083554daca4c2b602912122df6 | [
"MIT"
] | null | null | null | src/confetti.cpp | JiangxueHan529/particles | e107cd8330dfdb083554daca4c2b602912122df6 | [
"MIT"
] | null | null | null | src/confetti.cpp | JiangxueHan529/particles | e107cd8330dfdb083554daca4c2b602912122df6 | [
"MIT"
] | null | null | null | // Bryn Mawr College, alinen, 2020
//
#include "AGL.h"
#include "AGLM.h"
#include <cmath>
#include "confetti.h"
#include "stdlib.h"
using namespace std;
using namespace agl;
using namespace glm;
void Confetti::createParticles(int size)
{
mTexture = theRenderer.loadTexture("../textures/particle.png");
for (int... | 24.102941 | 153 | 0.576571 | JiangxueHan529 |
2171b5e59f62866de5f9d5fb5ab65c33c67de24b | 2,204 | cpp | C++ | Chapter_4_Graph/SSSP/kattis_oceancurrents.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_4_Graph/SSSP/kattis_oceancurrents.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_4_Graph/SSSP/kattis_oceancurrents.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /* Kattis - oceancurrents
A "classic" 0-1 BFS floodfill question. Just implement carefully and correctly.
Note that we can't just blindly do BFS, we need to treat this as weighted SSSP and do the check for more optimal distance.
Time: O(wh* num_q), Mem: O(wh)
*/
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,ss... | 27.898734 | 122 | 0.455989 | BrandonTang89 |
21764a316a0666fde81b53c9ebd156ff43fd7f53 | 7,178 | cc | C++ | src/network/socket.cc | malolk/glue | addb19993ce9964fdd0fd6b3054244b5796d8179 | [
"BSD-3-Clause"
] | 1 | 2016-09-20T15:43:40.000Z | 2016-09-20T15:43:40.000Z | src/network/socket.cc | malolk/glue | addb19993ce9964fdd0fd6b3054244b5796d8179 | [
"BSD-3-Clause"
] | null | null | null | src/network/socket.cc | malolk/glue | addb19993ce9964fdd0fd6b3054244b5796d8179 | [
"BSD-3-Clause"
] | null | null | null | #include "network/socket.h"
#include "libbase/loggerutil.h"
#include <sys/uio.h>
#include <errno.h>
#include <signal.h>
#include <string.h>
namespace network {
namespace {
class IgnoreSigpipe {
public:
IgnoreSigpipe() {
struct sigaction act;
memset(&act, '\0', sizeof(act));
act.sa_handler = SIG_IGN;
act.sa_fl... | 28.039063 | 103 | 0.630398 | malolk |
2177111ddaf58fc0769a72172dc3b1878b4e4c09 | 1,280 | cpp | C++ | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_birds.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_birds.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_birds.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /* Kattis - Birds
Observation 1:
Given 2 birds at u and l and no other birds in between, we can fit in (l-u)/d - 1 new birds... This comes from greedily
putting each new bird as near (d distance) to the previous bird as possible. Thus we should sort the existing birds
and then process them linearly.
Observ... | 31.219512 | 123 | 0.632813 | BrandonTang89 |
21771daa55bc361cdef9437049be3f67edd1a273 | 822 | hpp | C++ | common/consoleutil.hpp | roh0sun/webmdshow | 311dd9686dc896baa4d418c6da79938e94799e55 | [
"BSD-3-Clause"
] | null | null | null | common/consoleutil.hpp | roh0sun/webmdshow | 311dd9686dc896baa4d418c6da79938e94799e55 | [
"BSD-3-Clause"
] | null | null | null | common/consoleutil.hpp | roh0sun/webmdshow | 311dd9686dc896baa4d418c6da79938e94799e55 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2010 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS. All contributing p... | 25.6875 | 71 | 0.73601 | roh0sun |
21798f9cee620cd4d896d5efd916d67fb7b09a27 | 15,105 | cpp | C++ | src/detail/libre_api/libre_chart_func.cpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | src/detail/libre_api/libre_chart_func.cpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | src/detail/libre_api/libre_chart_func.cpp | anuragxel/generic-document-library | e7d0f53f47ab85709968c91f0f4ca423796bc4cd | [
"BSL-1.0"
] | null | null | null | //! \file
//! \brief Libre Office Cell Related Internal Functions
#ifndef _LIBRE_CHART_FUNC_CPP
#define _LIBRE_CHART_FUNC_CPP
// Copyright Anurag Ghosh 2015.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/L... | 39.335938 | 148 | 0.668322 | anuragxel |
219420dbba08efd8547725892d6a02ba145b3f1c | 5,237 | hpp | C++ | include/yaclib/algo/detail/when_any_impl.hpp | YACLib/YACLib | fa5e13cdcc1f719e6b6363ba25a4791315e66916 | [
"MIT"
] | 106 | 2021-07-04T01:10:18.000Z | 2022-03-21T00:58:27.000Z | include/yaclib/algo/detail/when_any_impl.hpp | YACLib/YACLib | fa5e13cdcc1f719e6b6363ba25a4791315e66916 | [
"MIT"
] | 119 | 2021-07-10T14:26:24.000Z | 2022-03-22T22:48:18.000Z | include/yaclib/algo/detail/when_any_impl.hpp | YACLib/YACLib | fa5e13cdcc1f719e6b6363ba25a4791315e66916 | [
"MIT"
] | 7 | 2021-07-23T11:23:04.000Z | 2021-11-13T20:22:56.000Z | #pragma once
#include <yaclib/algo/when_policy.hpp>
#include <yaclib/async/future.hpp>
#include <yaclib/async/promise.hpp>
#include <iterator>
#include <type_traits>
#include <utility>
namespace yaclib::detail {
template <typename T, WhenPolicy P /*None*/>
class AnyCombinatorBase {
protected:
std::atomic_bool _d... | 30.988166 | 115 | 0.656865 | YACLib |
219a191dd75cc64b2fe21c3134c9d5f382b78733 | 3,076 | cpp | C++ | src/cip/connectionManager/NetworkConnectionParametersBuilder.cpp | ambi-robotics/EIPScanner | e474de47aee9ef1128de7fbefa5d9dfd751c32fe | [
"MIT"
] | 94 | 2019-12-11T01:47:53.000Z | 2022-03-31T09:23:52.000Z | src/cip/connectionManager/NetworkConnectionParametersBuilder.cpp | ambi-robotics/EIPScanner | e474de47aee9ef1128de7fbefa5d9dfd751c32fe | [
"MIT"
] | 53 | 2019-12-09T17:59:35.000Z | 2022-03-18T22:43:28.000Z | src/cip/connectionManager/NetworkConnectionParametersBuilder.cpp | ambi-robotics/EIPScanner | e474de47aee9ef1128de7fbefa5d9dfd751c32fe | [
"MIT"
] | 47 | 2020-01-14T13:15:36.000Z | 2022-03-23T15:22:48.000Z | //
// Created by Vincent Prince on 05/22/20.
//
#include "NetworkConnectionParametersBuilder.h"
#include <utility>
#include <assert.h>
#include "utils/Buffer.h"
namespace eipScanner {
namespace cip {
namespace connectionManager {
using utils::Buffer;
NetworkConnectionParametersBuilder::NetworkConnectionParameter... | 26.982456 | 115 | 0.712939 | ambi-robotics |
219f86664c14fc4b38a8b96a435e45bfce917688 | 1,168 | hpp | C++ | components/modules/ai/who_ai_utils.hpp | wady101/esp-who | c44fd98878f5039f6aa1c3a421dc8f67ad3cae4e | [
"MIT-0"
] | null | null | null | components/modules/ai/who_ai_utils.hpp | wady101/esp-who | c44fd98878f5039f6aa1c3a421dc8f67ad3cae4e | [
"MIT-0"
] | null | null | null | components/modules/ai/who_ai_utils.hpp | wady101/esp-who | c44fd98878f5039f6aa1c3a421dc8f67ad3cae4e | [
"MIT-0"
] | 1 | 2022-01-25T00:12:47.000Z | 2022-01-25T00:12:47.000Z | #pragma once
#include <list>
#include "dl_detect_define.hpp"
#include "esp_camera.h"
/**
* @brief Draw detection result on RGB565 image.
*
* @param image_ptr image
* @param image_height height of image
* @param image_width width of image
* @param results detection results
*/
void draw_detection_r... | 27.162791 | 125 | 0.69863 | wady101 |
21a057cad6820393707ac141c003ea9007d3eee6 | 298 | cpp | C++ | Hacker Rank Problem Solving/Designer-PDF-Viewer.cpp | manish1822510059/cpp-program | 03ec133857daf81163c621d4d54244409a94a200 | [
"Apache-2.0"
] | 1 | 2021-04-04T15:47:36.000Z | 2021-04-04T15:47:36.000Z | Hacker Rank Problem Solving/Designer-PDF-Viewer.cpp | manish1822510059/cpp-program | 03ec133857daf81163c621d4d54244409a94a200 | [
"Apache-2.0"
] | null | null | null | Hacker Rank Problem Solving/Designer-PDF-Viewer.cpp | manish1822510059/cpp-program | 03ec133857daf81163c621d4d54244409a94a200 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include <string.h>
using namespace std;
int main()
{
int h[26],i,max=0,area,a,b;
for(i=0;i<26;i++)
cin>>h[i];
char ch[11];
cin>>ch;
a=strlen(ch);
for(i=0;i<a;i++)
{
b=ch[i]-97;
if(h[b]>max)
max=h[b];
}
area=max*a;
cin>>area;
return 0;
} | 11.461538 | 28 | 0.516779 | manish1822510059 |
426fc4f03a98c229cb6cf6234454a2f35ae447ae | 936 | cpp | C++ | android-31/android/preference/Preference_BaseSavedState.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/preference/Preference_BaseSavedState.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/preference/Preference_BaseSavedState.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../os/Parcel.hpp"
#include "./Preference_BaseSavedState.hpp"
namespace android::preference
{
// Fields
JObject Preference_BaseSavedState::CREATOR()
{
return getStaticObjectField(
"android.preference.Preference$BaseSavedState",
"CREATOR",
"Landroid/os/Parcelable$Creator;"
);
}
// QJniObjec... | 26 | 108 | 0.742521 | YJBeetle |
42713ea9e5d36e11246a1aa20f0650db334b5fb5 | 2,496 | cpp | C++ | engine/Board.cpp | benjamin-fukdawurld/Domino | 6d01879fcb0157b83649f571c70a95811452f960 | [
"Apache-2.0"
] | null | null | null | engine/Board.cpp | benjamin-fukdawurld/Domino | 6d01879fcb0157b83649f571c70a95811452f960 | [
"Apache-2.0"
] | null | null | null | engine/Board.cpp | benjamin-fukdawurld/Domino | 6d01879fcb0157b83649f571c70a95811452f960 | [
"Apache-2.0"
] | null | null | null | #include "engine/Board.h"
#include <random>
#include <sstream>
#include <cassert>
bool Board::isDone() const
{
for(const auto &h: getPlayers())
{
if(h.size() == 0)
return true;
}
for(const auto &h: getPlayers())
{
if(h.canPlay(getDominos()))
return false;
... | 24.96 | 97 | 0.610176 | benjamin-fukdawurld |
4273f0dd3a782109aa6d8f2204ab01027f0d81f8 | 34,374 | cpp | C++ | ibtk/src/boundary/physical_boundary/CartSideRobinPhysBdryOp.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | 2 | 2017-12-06T06:16:36.000Z | 2021-03-13T12:28:08.000Z | ibtk/src/boundary/physical_boundary/CartSideRobinPhysBdryOp.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | ibtk/src/boundary/physical_boundary/CartSideRobinPhysBdryOp.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | // Filename: CartSideRobinPhysBdryOp.cpp
// Created on 21 May 2008 by Boyce Griffith
//
// Copyright (c) 2002-2013, Boyce Griffith
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Re... | 41.364621 | 203 | 0.642811 | MSV-Project |
42776dd18b4121e731d25f34b0b459975cf2293d | 2,353 | cpp | C++ | unittests/exchange/test_uuid.cpp | paulhuggett/pstore2 | a0c663d10a2e2713fdf39ecdae1f9c1e96041f5c | [
"Apache-2.0"
] | 11 | 2018-02-02T21:24:49.000Z | 2020-12-11T04:06:03.000Z | unittests/exchange/test_uuid.cpp | SNSystems/pstore | 74e9dd960245d6bfc125af03ed964d8ad660a62d | [
"Apache-2.0"
] | 63 | 2018-02-05T17:24:59.000Z | 2022-03-22T17:26:28.000Z | unittests/exchange/test_uuid.cpp | paulhuggett/pstore | 067be94d87c87fce524c8d76c6f47c347d8f1853 | [
"Apache-2.0"
] | 5 | 2020-01-13T22:47:11.000Z | 2021-05-14T09:31:15.000Z | //===- unittests/exchange/test_uuid.cpp -----------------------------------===//
//* _ _ *
//* _ _ _ _(_) __| | *
//* | | | | | | | |/ _` | *
//* | |_| | |_| | | (_| | *
//* \__,_|\__,_|_|\__,_| *
//* *
//===------------------------------------------------------------------... | 31.797297 | 97 | 0.542711 | paulhuggett |
4279309c47d2701f122093e70b75e7cbf1c61b42 | 1,071 | cpp | C++ | Charpter07/3_10976_FractionsAgain.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | Charpter07/3_10976_FractionsAgain.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | Charpter07/3_10976_FractionsAgain.cpp | zhangdan0602/DailyAlgorithm | 2969ed143b16c5c655d39ff3a86ee5f0cabb704a | [
"Apache-2.0"
] | null | null | null | /*
输入正整数k,找到所有的正整数x≥y,使得1/k = 1/x + 1/y.
样例输入:
2
12
样例输出:
2
1/2 = 1/6 + 1/3
1/2 = 1/4 + 1/4
8
1/12 = 1/156 + 1/13
1/12 = 1/84 + 1/14
1/12 = 1/60 + 1/15
1/12 = 1/48 + 1/16
1/12 = 1/36 + 1/18
1/12 = 1/30 + 1/20
1/12 = 1/28 + 1/21
1/12 = 1/24 + 1/24
【分析】
既然要求找出所有的x、y,枚举对象自然就是x、y了。
可问题在于,枚举的范围如何? 从1/12=1/156+1/13可以看出... | 19.833333 | 82 | 0.403361 | zhangdan0602 |
427ee2d4fe2927e1b7c4f7b99604eb470a395245 | 5,267 | hpp | C++ | ze_geometry/include/ze/geometry/clam.hpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 30 | 2016-09-27T07:41:28.000Z | 2021-12-03T20:44:28.000Z | ze_geometry/include/ze/geometry/clam.hpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 1 | 2018-12-18T15:53:06.000Z | 2018-12-21T03:10:06.000Z | ze_geometry/include/ze/geometry/clam.hpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 12 | 2016-11-05T07:51:29.000Z | 2020-07-13T02:26:08.000Z | // Copyright (c) 2015-2016, ETH Zurich, Wyss Zurich, Zurich Eye
// 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
// ... | 34.880795 | 92 | 0.722233 | rockenbf |
427f3fb32ddbbb76d3ae222c9bf5934e326b8f44 | 3,548 | cpp | C++ | linux/code/format/formatdb.cpp | tangyiwan/tsf | 88b4acd3967597bd683c46bb5c998bfd56444587 | [
"MIT"
] | null | null | null | linux/code/format/formatdb.cpp | tangyiwan/tsf | 88b4acd3967597bd683c46bb5c998bfd56444587 | [
"MIT"
] | null | null | null | linux/code/format/formatdb.cpp | tangyiwan/tsf | 88b4acd3967597bd683c46bb5c998bfd56444587 | [
"MIT"
] | null | null | null | //#define _NOINFOM
#include "formatdb.h"
CFormatDbNode::~CFormatDbNode(void)
{
if(pFmtTree )
delete pFmtTree;
}
void CFmtDbInterface::DumpToStr(CString & TraceStr)
{
CFormatDbNode * node;
CFormatTree * pft;
CTokenNode * ptn;
node = (CFormatDbNode *)s_FmtDb.GetHeadNode();
while(node)
... | 20.870588 | 117 | 0.632751 | tangyiwan |
42878104639aa0855e5829315e689fd9d106fb34 | 933 | cpp | C++ | Physics II - Box2D - Pinball/ModulePlayer.cpp | bielrabasa/PhysicsII_Box2D_Pinball | 4fce22ded45e6a75ac6a0917015b07b984375fce | [
"MIT"
] | 1 | 2021-12-27T15:12:27.000Z | 2021-12-27T15:12:27.000Z | Physics II - Box2D - Pinball/ModulePlayer.cpp | bielrabasa/PhysicsII_Box2D_Pinball | 4fce22ded45e6a75ac6a0917015b07b984375fce | [
"MIT"
] | null | null | null | Physics II - Box2D - Pinball/ModulePlayer.cpp | bielrabasa/PhysicsII_Box2D_Pinball | 4fce22ded45e6a75ac6a0917015b07b984375fce | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "ModulePhysics.h"
#ifdef _DEBUG
#pragma comment( lib, "Box2D/libx86/Debug/Box2D.lib" )
#else
#pragma comment( lib, "Box2D/libx86/Release/Box2D.lib" )
#endif
ModulePlayer::ModulePlayer(Application* app, bool start_enabled) : Module(app, st... | 17.277778 | 93 | 0.733119 | bielrabasa |
4290095945b729a7f5aed0c639cc2b7b1f63ec1b | 8,399 | cpp | C++ | test/unittests/stack_test.cpp | herobank110/fizzy | b58d6e6f7e6c26a07600f10d267695b00cf49470 | [
"Apache-2.0"
] | 1 | 2021-04-22T10:00:25.000Z | 2021-04-22T10:00:25.000Z | test/unittests/stack_test.cpp | herobank110/fizzy | b58d6e6f7e6c26a07600f10d267695b00cf49470 | [
"Apache-2.0"
] | null | null | null | test/unittests/stack_test.cpp | herobank110/fizzy | b58d6e6f7e6c26a07600f10d267695b00cf49470 | [
"Apache-2.0"
] | null | null | null | // Fizzy: A fast WebAssembly interpreter
// Copyright 2019-2020 The Fizzy Authors.
// SPDX-License-Identifier: Apache-2.0
#include "stack.hpp"
#include <gmock/gmock.h>
using namespace fizzy;
using namespace testing;
namespace
{
intptr_t address_diff(const void* a, const void* b) noexcept
{
return std::abs(reinte... | 25.528875 | 96 | 0.606263 | herobank110 |
4294aa0c34ab7fd1c2df1e0b8a1eed2a2ad73d5a | 3,076 | cpp | C++ | src/version.cpp | m2osw/libcassvalue | 99be6013113e2ec3909e23687e3ddbb1d62c8d4b | [
"MIT"
] | null | null | null | src/version.cpp | m2osw/libcassvalue | 99be6013113e2ec3909e23687e3ddbb1d62c8d4b | [
"MIT"
] | null | null | null | src/version.cpp | m2osw/libcassvalue | 99be6013113e2ec3909e23687e3ddbb1d62c8d4b | [
"MIT"
] | null | null | null | /*
* Text:
* src/version.cpp
*
* Description:
* Return the version of the library when it was compiled.
*
* Documentation:
* See each function below.
*
* License:
* Copyright (c) 2011-2019 Made to Order Software Corp. All Rights Reserved
*
* https://snapwebsites.org/
* con... | 31.71134 | 82 | 0.71554 | m2osw |
4298c71c46d0f7bedef56d5b66eee44fddd1da64 | 1,140 | cpp | C++ | BZOJ/4195.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | BZOJ/4195.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | BZOJ/4195.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <map>
using namespace std;
typedef long long lint;
#define ni (next_num<int>())
#define nl (next_num<lint>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='... | 18.387097 | 64 | 0.599123 | sshockwave |
42a2013c21d48fbddeabe7af2c11cca1db1d2c94 | 517 | cpp | C++ | dynamic/climbingstair.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | dynamic/climbingstair.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | dynamic/climbingstair.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | // 11057
#include <iostream>
using namespace std;
const long long mod = 10007;
int easy(int n)
{
long long a[n+1][10];
for(int i = 0; i < 10; i++ )
a[1][i] = 1;
for(int i = 2; i <= n; i++)
{
for(int j = 0; j < 10; j++)
{
a[i][j] = 0;
for(int k = 0; k <= j; k++)
{
a[i][j] += a[i-1][k];
a[i][j]... | 13.972973 | 30 | 0.444874 | SiverPineValley |
42a4d9b4e8de12cd35f32583899f5a05e77a1aaa | 476 | cpp | C++ | src/graphics/InputComponent.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 1 | 2018-10-19T18:00:19.000Z | 2018-10-19T18:00:19.000Z | src/graphics/InputComponent.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 7 | 2019-06-13T00:48:55.000Z | 2020-05-05T00:18:42.000Z | src/graphics/InputComponent.cpp | ASxa86/AGE | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | null | null | null | #include <azule/graphics/InputComponent.h>
using namespace azule;
InputComponent::InputComponent()
{
}
InputComponent::~InputComponent()
{
}
void InputComponent::addKeyBinding(sf::Keyboard::Key key, const std::function<void(azule::Entity&, bool)>& x)
{
this->keyBindings.push_back(std::make_pair(key, x));
}
const ... | 21.636364 | 130 | 0.737395 | ASxa86 |
42a615e747c5fab9c9cf4fdeeff7d4642c2f0eee | 19,697 | hpp | C++ | visen/_alternate_future__quad.hpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | visen/_alternate_future__quad.hpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | visen/_alternate_future__quad.hpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | /**
*
* quad.hpp
*
**/
#if !defined(AAB_VISEN_QUAD_CLASS)
#define AAB_VISEN_QUAD_CLASS
#include"vertex.hpp"
#include<utility>
namespace aab {
namespace visen {
/*
* a quad stuctured for use in Triangle Strips
*
*/
//template <typename VertexT>
struct StripQuad//X
{
private:
typedef Ver... | 30.025915 | 129 | 0.546175 | MrTAB |
42acef250457463f59a50a8b86da22ad1a317234 | 2,315 | cpp | C++ | src/viewport.cpp | fiddleplum/vew | 37011fc8c80f6b80c2777f4b9de12b9fd2f79688 | [
"MIT"
] | null | null | null | src/viewport.cpp | fiddleplum/vew | 37011fc8c80f6b80c2777f4b9de12b9fd2f79688 | [
"MIT"
] | null | null | null | src/viewport.cpp | fiddleplum/vew | 37011fc8c80f6b80c2777f4b9de12b9fd2f79688 | [
"MIT"
] | null | null | null | #include <viewport.hpp>
#include <components/camera.hpp>
#include <emscripten/bind.h>
#include <emscripten/emscripten.h>
#include <GLES2/gl2.h>
namespace vew
{
Viewport::Viewport()
{
camera = nullptr;
bounds = Rectd({0, 0}, {1, 1});
canvasSize = {1, 1};
}
Camera * Viewport::getCamera()
{
return camera;
... | 26.306818 | 224 | 0.70324 | fiddleplum |
42add3da304ab3532f21679351e80b321e60f69a | 4,784 | hpp | C++ | nsl/generator_structs.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | nsl/generator_structs.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | 292 | 2020-03-19T22:38:52.000Z | 2022-03-05T22:49:34.000Z | nsl/generator_structs.hpp | aconstlink/natus | d2123c6e1798bd0771b8a1a05721c68392afc92f | [
"MIT"
] | null | null | null | #pragma once
#include "typedefs.h"
#include "enums.hpp"
#include "symbol.hpp"
#include "parser_structs.hpp"
namespace natus
{
namespace nsl
{
struct variable_mapping
{
natus::ntd::string_t new_name ;
natus::ntd::string_t old_name ;
natus::nsl::binding bindin... | 35.176471 | 207 | 0.441263 | aconstlink |
42afed59b497f156854abd01e6ed17ed1f0ce6a7 | 1,212 | cpp | C++ | 27.05.21 homework/variable_time_table.cpp | Sadik326-ctrl/computer_programming | cbae264ffa04fc487008fa6a0a32e0a1a316e01e | [
"MIT"
] | null | null | null | 27.05.21 homework/variable_time_table.cpp | Sadik326-ctrl/computer_programming | cbae264ffa04fc487008fa6a0a32e0a1a316e01e | [
"MIT"
] | null | null | null | 27.05.21 homework/variable_time_table.cpp | Sadik326-ctrl/computer_programming | cbae264ffa04fc487008fa6a0a32e0a1a316e01e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{ string choice;
int num,first,last,i,j;
for (j=0;j==0;)
{
cout<<"Enter the number: ";
cin>>num;
cout<<"Enter the starting multiple: ";
cin>>first;
cout<<"Enter the ending multiple: ";
cin>>last;
cout<<endl<<"----------... | 23.307692 | 119 | 0.369637 | Sadik326-ctrl |
42b3ce16ac5c3141d07e8703bea33eaa68f29beb | 1,241 | cpp | C++ | 9999/2583.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | null | null | null | 9999/2583.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | null | null | null | 9999/2583.cpp | rmagur1203/acmicpc | 83c4018548e42fc758b3858e8290990701e69e73 | [
"MIT"
] | 1 | 2022-01-11T05:03:52.000Z | 2022-01-11T05:03:52.000Z | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
bool map[101][101];
bool visited[101][101];
int dfs(int x, int y, int m, int n)
{
if (x < 0 || y < 0)
return 0;
if (x >= n || y >= m)
return 0;
if (map[x][y])
return 0;
if (visited[x][y])
re... | 22.160714 | 101 | 0.39162 | rmagur1203 |
42b5ef1593748484e5f220ee2391777e1d70c537 | 1,216 | cpp | C++ | 298/D/main.cpp | tamimcsedu19/codeforces | 8e61025b99bc0a5b32cb03f736123b39dcc23f61 | [
"Apache-2.0"
] | null | null | null | 298/D/main.cpp | tamimcsedu19/codeforces | 8e61025b99bc0a5b32cb03f736123b39dcc23f61 | [
"Apache-2.0"
] | null | null | null | 298/D/main.cpp | tamimcsedu19/codeforces | 8e61025b99bc0a5b32cb03f736123b39dcc23f61 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<int,int> ii;
priority_queue<ii> pq[3];
int categoryHighest[3];
int main()
{
categoryHighest[0] = 0;
categoryHighest[1] = 1;
categoryHighest[2] = 2;
int n; cin>>n;
for(int i=1;i<=n;++i)
{
... | 19.934426 | 88 | 0.48273 | tamimcsedu19 |
42b7f60d2e4972a00f1489facd4d00368df8913d | 3,294 | cpp | C++ | extender/darkstar/src/Registry.test.cpp | gifted-nguvu/darkstar-dts-converter | aa17a751a9f3361ca9bbb400ee4c9516908d1297 | [
"MIT"
] | 2 | 2020-03-18T18:23:27.000Z | 2020-08-02T15:59:16.000Z | extender/darkstar/src/Registry.test.cpp | gifted-nguvu/darkstar-dts-converter | aa17a751a9f3361ca9bbb400ee4c9516908d1297 | [
"MIT"
] | 5 | 2019-07-07T16:47:47.000Z | 2020-08-10T16:20:00.000Z | extender/darkstar/src/Registry.test.cpp | gifted-nguvu/darkstar-dts-converter | aa17a751a9f3361ca9bbb400ee4c9516908d1297 | [
"MIT"
] | 1 | 2020-03-18T18:23:30.000Z | 2020-03-18T18:23:30.000Z | #include <catch2/catch.hpp>
#include <sstream>
#include "Registry.hpp"
LSTATUS APIENTRY MockRegCloseKey(HKEY hKey)
{
return ERROR_INVALID_FUNCTION;
}
LSTATUS APIENTRY MockRegOpenKeyExA(
HKEY hKey,
LPCSTR lpSubKey,
DWORD,
REGSAM,
PHKEY phkResult
)
{
std::string Temp(lpSu... | 33.958763 | 107 | 0.645416 | gifted-nguvu |
42b99e0adcfcafe999ddb5584e3c7b8a9d015130 | 2,081 | hpp | C++ | phosphor-regulators/src/actions/i2c_action.hpp | smccarney/phosphor-power | 39ea02bc9458f3d5a7fdd317cb546ed046eaff78 | [
"Apache-2.0"
] | 7 | 2019-10-04T01:19:49.000Z | 2021-06-02T23:11:19.000Z | phosphor-regulators/src/actions/i2c_action.hpp | smccarney/phosphor-power | 39ea02bc9458f3d5a7fdd317cb546ed046eaff78 | [
"Apache-2.0"
] | 9 | 2019-10-23T14:22:03.000Z | 2022-03-22T20:39:05.000Z | phosphor-regulators/src/actions/i2c_action.hpp | smccarney/phosphor-power | 39ea02bc9458f3d5a7fdd317cb546ed046eaff78 | [
"Apache-2.0"
] | 11 | 2019-10-04T01:20:01.000Z | 2022-03-03T06:08:16.000Z | /**
* Copyright © 2020 IBM 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 agr... | 28.121622 | 78 | 0.680442 | smccarney |
42baf0ad3c1c639fb951b73e9e77e5996213b529 | 4,722 | hh | C++ | thirdparty/iod/iod/tuple_utils.hh | pdebus/MTVMTL | 65a7754b34d1f6a1e86d15e3c2d4346b9418414f | [
"MIT"
] | 3 | 2017-05-08T12:40:46.000Z | 2019-06-02T05:11:01.000Z | thirdparty/iod/iod/tuple_utils.hh | pdebus/MTVMTL | 65a7754b34d1f6a1e86d15e3c2d4346b9418414f | [
"MIT"
] | null | null | null | thirdparty/iod/iod/tuple_utils.hh | pdebus/MTVMTL | 65a7754b34d1f6a1e86d15e3c2d4346b9418414f | [
"MIT"
] | null | null | null | #pragma once
#include <tuple>
#include <iod/tags.hh>
namespace iod
{
template <int N, typename T, typename X>
struct tuple_find_type2;
// template <int N, typename X>
// struct tuple_find_type2<N, std::tuple<>, X> : public std::integral_constant<int, -1> {};
template <int N, typename X>
struct tuple_fin... | 38.704918 | 113 | 0.671114 | pdebus |
42c2dedd2a780e30b644eea42018e632da9a7589 | 5,523 | hpp | C++ | modules/core/linalg/include/nt2/linalg/functions/mnorm.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 34 | 2017-05-19T18:10:17.000Z | 2022-01-04T02:18:13.000Z | modules/core/linalg/include/nt2/linalg/functions/mnorm.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | null | null | null | modules/core/linalg/include/nt2/linalg/functions/mnorm.hpp | feelpp/nt2 | 4d121e2c7450f24b735d6cff03720f07b4b2146c | [
"BSL-1.0"
] | 7 | 2017-12-02T12:59:17.000Z | 2021-07-31T12:46:14.000Z | //==============================================================================
// Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II
// Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI
//
// Distributed under the Boost Software License, Version 1.0.
// ... | 36.82 | 134 | 0.482347 | feelpp |
42c7192e483c41e66409afb605fab5ba1e726892 | 5,066 | cpp | C++ | Chapter-9-Pointers/Checkpoints/9.1-9.8.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 3 | 2019-10-28T01:12:46.000Z | 2021-10-16T09:16:31.000Z | Chapter-9-Pointers/Checkpoints/9.1-9.8.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | null | null | null | Chapter-9-Pointers/Checkpoints/9.1-9.8.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | // Uncomment
#include <iostream>
using namespace std;
int main()
{
// 9.1 Write a statement that displays the address of the variable count.
// double count;
// cout << "address for count is " << &count << endl;
// 9.2 Write the definition statement for a variable fltPtr.
// The variable shou... | 28.301676 | 77 | 0.502566 | jesushilarioh |
42d0c10f447eabf09e978bfd331330544e371a1b | 1,090 | cpp | C++ | gui/ctrl/look/splitter.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/ctrl/look/splitter.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | gui/ctrl/look/splitter.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | /**
* @copyright (c) 2016-2021 Ing. Buero Rothfuss
* Riedlinger Str. 8
* 70327 Stuttgart
* Germany
* http://www.rothfuss-web.de
*
* @author <a href="mailto:armin@rothfuss-web.de">Armin Rothfuss</a>
*
* Projec... | 23.695652 | 77 | 0.499083 | r3dl3g |
42d11cc957b11ecab176d864d30c8392bcee41ff | 1,328 | cpp | C++ | Robotron/Source/DirectX9Framework/Events/EventData_NewRenderComponent.cpp | ThatBeanBag/Slimfish | 7b0f821bccf2cae7d67f8a822f078def7a2d354d | [
"Apache-2.0"
] | null | null | null | Robotron/Source/DirectX9Framework/Events/EventData_NewRenderComponent.cpp | ThatBeanBag/Slimfish | 7b0f821bccf2cae7d67f8a822f078def7a2d354d | [
"Apache-2.0"
] | null | null | null | Robotron/Source/DirectX9Framework/Events/EventData_NewRenderComponent.cpp | ThatBeanBag/Slimfish | 7b0f821bccf2cae7d67f8a822f078def7a2d354d | [
"Apache-2.0"
] | null | null | null | //
// Bachelor of Software Engineering
// Media Design School
// Auckland
// New Zealand
//
// (c) 2005 - 2015 Media Design School
//
// File Name : EventData_NewRenderComponent.cpp
// Description : CEventData_NewRenderComponent implementation file.
// Author : Hayden Asplet.
// Mail : hayden.asplet@mediadesignscho... | 22.133333 | 115 | 0.799699 | ThatBeanBag |
42d8f09e3e5596fc777d5d370f22a512bf4b2203 | 3,151 | cpp | C++ | src/dynamics/dynamics_3dof_parachute.cpp | sus304/ForRocket | 10fdcd0ce5a30fbbb4fec6315bcd64314bec6c12 | [
"MIT"
] | 21 | 2015-12-17T14:19:24.000Z | 2021-09-09T07:17:17.000Z | src/dynamics/dynamics_3dof_parachute.cpp | sus304/ForRocket | 10fdcd0ce5a30fbbb4fec6315bcd64314bec6c12 | [
"MIT"
] | 2 | 2015-12-17T19:45:50.000Z | 2021-02-07T05:28:34.000Z | src/dynamics/dynamics_3dof_parachute.cpp | sus304/ForRocket | 10fdcd0ce5a30fbbb4fec6315bcd64314bec6c12 | [
"MIT"
] | 10 | 2015-12-17T19:13:51.000Z | 2021-09-27T01:14:14.000Z | // ******************************************************
// Project Name : ForRocket
// File Name : dynamics_3dof_parachute.cpp
// Creation Date : 2020/02/01
//
// Copyright (c) 2020 Susumu Tanaka. All rights reserved.
// ******************************************************
#include "dynamics_3do... | 40.397436 | 161 | 0.639162 | sus304 |
42dd4e625dab67c63aedea6a2df373b76c308ca4 | 3,905 | hpp | C++ | common/include/utils/shapes/circle.hpp | sathyamvellal/learnopengl | 54e9fd6193c6dc970b0802bc31c5b558c46586d5 | [
"MIT"
] | null | null | null | common/include/utils/shapes/circle.hpp | sathyamvellal/learnopengl | 54e9fd6193c6dc970b0802bc31c5b558c46586d5 | [
"MIT"
] | null | null | null | common/include/utils/shapes/circle.hpp | sathyamvellal/learnopengl | 54e9fd6193c6dc970b0802bc31c5b558c46586d5 | [
"MIT"
] | null | null | null | //
// Created by Sathyam Vellal on 18/04/2018.
//
#ifndef LEARNOPENGL_SHAPES_HPP
#define LEARNOPENGL_SHAPES_HPP
#include <cmath>
#include <cstdlib>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include "common/include/utils/random.h"
#include "common/include/utils/shader.h"
#include "commo... | 27.892857 | 138 | 0.599744 | sathyamvellal |
42e05788163d40215684c7de59b18fd5eb7c7c83 | 46 | cpp | C++ | include/fast_slater/implementation/slater_determinant/nukala_kent.cpp | queertypes/matrix-n | 5b7fe52dc32bed67cd50bb1e664e92892b5d1178 | [
"BSD-3-Clause"
] | 1 | 2018-03-08T08:43:04.000Z | 2018-03-08T08:43:04.000Z | include/fast_slater/implementation/slater_determinant/nukala_kent.cpp | queertypes/matrix-n | 5b7fe52dc32bed67cd50bb1e664e92892b5d1178 | [
"BSD-3-Clause"
] | null | null | null | include/fast_slater/implementation/slater_determinant/nukala_kent.cpp | queertypes/matrix-n | 5b7fe52dc32bed67cd50bb1e664e92892b5d1178 | [
"BSD-3-Clause"
] | null | null | null | namespace compchem {
namespace impl {
}
}
| 9.2 | 20 | 0.652174 | queertypes |
42e2100fecd117e906cf5f07d7791ab8609c6d60 | 847 | hpp | C++ | include/event/get_request_event.hpp | jwqe764241/http_server | 176deea07afd430e2c026dcb3fd3a38a2c67af98 | [
"MIT"
] | 2 | 2018-01-31T15:48:21.000Z | 2019-04-10T13:58:56.000Z | include/event/get_request_event.hpp | jwqe764241/http_server | 176deea07afd430e2c026dcb3fd3a38a2c67af98 | [
"MIT"
] | 1 | 2018-04-01T08:46:03.000Z | 2018-04-01T08:46:03.000Z | include/event/get_request_event.hpp | jwqe764241/http_server | 176deea07afd430e2c026dcb3fd3a38a2c67af98 | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <fstream>
#include <exception>
#include <string>
#include "asio.hpp"
#include "server/http_server.hpp"
#include "http/http.hpp"
#include "http/http_request.hpp"
#include "http/http_response.hpp"
#include "event/event.hpp"
#include "file/content.hpp"
#include "exceptions/parse... | 24.2 | 105 | 0.760331 | jwqe764241 |
42e6b6d509e11977b5bc519980c0ea592f062568 | 3,542 | hpp | C++ | src/WoWOffsetDumper/offset_dumper.hpp | ybhuxiao/WoWOffsetDumper | 9e495560f493851560825ba34217f46a83388943 | [
"MIT"
] | null | null | null | src/WoWOffsetDumper/offset_dumper.hpp | ybhuxiao/WoWOffsetDumper | 9e495560f493851560825ba34217f46a83388943 | [
"MIT"
] | null | null | null | src/WoWOffsetDumper/offset_dumper.hpp | ybhuxiao/WoWOffsetDumper | 9e495560f493851560825ba34217f46a83388943 | [
"MIT"
] | 1 | 2022-01-28T15:22:31.000Z | 2022-01-28T15:22:31.000Z | #pragma once
#include "clepta/clepta.hpp"
#include "patterns.hpp"
#include <iostream>
#include <fstream>
#include <mutex>
#include <thread>
class offset_dumper
{
public:
offset_dumper() noexcept = delete;
offset_dumper(dump_info& inf, int max_threads = 1) : info(inf), num_threads(max_threads)
{
process.open(inf... | 28.564516 | 140 | 0.628176 | ybhuxiao |
0cd28d8f12e58fc0c3e5084784d3cc23b3b15a53 | 427 | cpp | C++ | Maze/src/framework/graphics/core/directional_light.cpp | gfceccon/maze | f63ee446f0b357385087758226e0e35212aa5f4d | [
"MIT"
] | null | null | null | Maze/src/framework/graphics/core/directional_light.cpp | gfceccon/maze | f63ee446f0b357385087758226e0e35212aa5f4d | [
"MIT"
] | null | null | null | Maze/src/framework/graphics/core/directional_light.cpp | gfceccon/maze | f63ee446f0b357385087758226e0e35212aa5f4d | [
"MIT"
] | null | null | null | #include "directional_light.h"
DirectionalLight::DirectionalLight(int index, const char * name) : Light(index, name)
{
}
DirectionalLight::~DirectionalLight()
{
}
void DirectionalLight::setDirection(float x, float y, float z)
{
direction.x = x;
direction.y = y;
direction.z = z;
}
void DirectionalLight::bind(Prog... | 17.791667 | 85 | 0.735363 | gfceccon |
0cd76468184cb310f31b468b5295b5b4b85cf69a | 1,657 | cpp | C++ | src/game/cmd/FTime.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 25 | 2016-05-27T11:53:58.000Z | 2021-10-17T00:13:41.000Z | src/game/cmd/FTime.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 1 | 2016-07-09T05:25:03.000Z | 2016-07-09T05:25:03.000Z | src/game/cmd/FTime.cpp | jumptohistory/jaymod | 92d0a0334ac27da94b12280b0b42b615b8813c23 | [
"Apache-2.0"
] | 16 | 2016-05-28T23:06:50.000Z | 2022-01-26T13:47:12.000Z | #include <bgame/impl.h>
namespace cmd {
///////////////////////////////////////////////////////////////////////////////
FTime::FTime()
: AbstractBuiltin( "ftime" )
{
__usage << xvalue( "!" + _name );
__descr << "Shows the current Central Time in a FUN way.";
}
///////////////////////////////////////////... | 30.685185 | 92 | 0.334943 | jumptohistory |
0cd886f3f644772ad182a05444166148dc79dc9d | 1,261 | cpp | C++ | Algorithms/krushkal's algo.cpp | AniketTewari/Hacktoberfest-2021 | 28bc1abb0277010d535ada332fa71c0deca32cf2 | [
"MIT"
] | 1 | 2022-02-22T17:13:54.000Z | 2022-02-22T17:13:54.000Z | Algorithms/krushkal's algo.cpp | AniketTewari/Hacktoberfest-2021 | 28bc1abb0277010d535ada332fa71c0deca32cf2 | [
"MIT"
] | 11 | 2022-01-24T20:42:11.000Z | 2022-02-27T23:58:24.000Z | Algorithms/krushkal's algo.cpp | AniketTewari/Hacktoberfest-2021 | 28bc1abb0277010d535ada332fa71c0deca32cf2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N=1e5+6;
vector<int>parent(N);
vector<int>sz(N);
void make_pair(int v)
{
parent[v]=v;
sz[v]=1;
}
int find_set(int v)
{
if(v==parent[v])
{
return v;
}
return parent[v]=find_set(parent[v]);
}
void union_set(int a,int b)
{
a=f... | 16.166667 | 59 | 0.461538 | AniketTewari |
0cdcfeecf7c6201e550d9e9836628406b99e2ad2 | 12,980 | cpp | C++ | resources/sceneResources/src/7.in_practice/1.debugging/debugging.cpp | SleepinWei/CG-project | 28f8cbb9ca1f82fbd8956eef59cd0ccf7667a65a | [
"Apache-2.0"
] | 3 | 2021-11-01T11:53:16.000Z | 2021-11-27T04:21:08.000Z | resources/sceneResources/src/7.in_practice/1.debugging/debugging.cpp | SleepinWei/CG-project | 28f8cbb9ca1f82fbd8956eef59cd0ccf7667a65a | [
"Apache-2.0"
] | null | null | null | resources/sceneResources/src/7.in_practice/1.debugging/debugging.cpp | SleepinWei/CG-project | 28f8cbb9ca1f82fbd8956eef59cd0ccf7667a65a | [
"Apache-2.0"
] | 4 | 2021-11-01T12:39:47.000Z | 2021-11-15T10:38:02.000Z | #include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <learnopengl/filesystem.h>
#include <learnopengl/shader.h>
#include <iostream>
void framebuffer_size_callback(GLFWwindow* window, int width, i... | 41.206349 | 131 | 0.575193 | SleepinWei |
0cdf92dd3f59a83b20f36ccf3978a5780a26b6bf | 3,694 | cc | C++ | tests/pretty-printer.cc | Philip-Trettner/clean-core | dc70db2432e753f1d77a722070c398464590e0a1 | [
"MIT"
] | 2 | 2019-08-06T08:13:27.000Z | 2019-09-28T07:16:46.000Z | tests/pretty-printer.cc | Philip-Trettner/clean-core | dc70db2432e753f1d77a722070c398464590e0a1 | [
"MIT"
] | null | null | null | tests/pretty-printer.cc | Philip-Trettner/clean-core | dc70db2432e753f1d77a722070c398464590e0a1 | [
"MIT"
] | null | null | null | #include <nexus/test.hh>
#include <rich-log/log.hh>
#include <clean-core/alloc_array.hh>
#include <clean-core/alloc_vector.hh>
#include <clean-core/array.hh>
#include <clean-core/capped_vector.hh>
#include <clean-core/flags.hh>
#include <clean-core/forward_list.hh>
#include <clean-core/map.hh>
#include <clean-core/op... | 34.849057 | 118 | 0.622631 | Philip-Trettner |
0ce13a3e1f30eaa396c4e2213aa4291d95cdb13a | 151 | cpp | C++ | cmmdcEuclid.cpp | atenie/info | 6b487befc452848fa688d9484968f89938cfb655 | [
"BSD-2-Clause"
] | 4 | 2017-05-02T19:37:08.000Z | 2017-10-09T19:26:44.000Z | cmmdcEuclid.cpp | atenie/info | 6b487befc452848fa688d9484968f89938cfb655 | [
"BSD-2-Clause"
] | null | null | null | cmmdcEuclid.cpp | atenie/info | 6b487befc452848fa688d9484968f89938cfb655 | [
"BSD-2-Clause"
] | 1 | 2017-07-04T14:04:24.000Z | 2017-07-04T14:04:24.000Z | #include <iostream>
using namespace std;
int main()
{
int aux,a,b;
cin>>a>>b;
while(b!=0)
{
aux=b;
b=a%b;
a=aux;
}
cout<<a;
return 0;
}
| 8.388889 | 20 | 0.543046 | atenie |
0ce44969beb249fbc4fc4736e3cdbdf65d23c746 | 1,617 | cpp | C++ | src/infinity/memory/RegionToken.cpp | razeh/infinity | f50c696be8b2af7a7439de325974aaaabde80ed3 | [
"MIT"
] | 1 | 2019-08-28T21:35:22.000Z | 2019-08-28T21:35:22.000Z | src/infinity/memory/RegionToken.cpp | razeh/infinity | f50c696be8b2af7a7439de325974aaaabde80ed3 | [
"MIT"
] | null | null | null | src/infinity/memory/RegionToken.cpp | razeh/infinity | f50c696be8b2af7a7439de325974aaaabde80ed3 | [
"MIT"
] | null | null | null | /*
* Memory - Region Token
*
* (c) 2018 Claude Barthels, ETH Zurich
* Contact: claudeb@inf.ethz.ch
*
*/
#include <infinity/memory/RegionToken.h>
namespace infinity {
namespace memory {
RegionToken::RegionToken() {}
RegionToken::RegionToken(Region *memoryRegion, RegionType memoryRegionType,
... | 28.368421 | 77 | 0.71243 | razeh |
0ce80fdcd869a0eb8f5009f1e5baa39dcb5b7316 | 1,757 | cpp | C++ | Desktop/CCore/src/video/ShapeLib.DoubleLineShape.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | null | null | null | Desktop/CCore/src/video/ShapeLib.DoubleLineShape.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | null | null | null | Desktop/CCore/src/video/ShapeLib.DoubleLineShape.cpp | SergeyStrukov/CCore-2-xx | 118aa4011ee7cc587298d6373b6587540e044a83 | [
"BSL-1.0"
] | null | null | null | /* ShapeLib.DoubleLineShape.cpp */
//----------------------------------------------------------------------------------------
//
// Project: CCore 2.00
//
// Tag: Desktop
//
// License: Boost Software License - Version 1.0 - August 17th, 2003
//
// see http://www.boost.org/LICENSE_1_0.txt or the local cop... | 19.965909 | 90 | 0.599886 | SergeyStrukov |
0ce96f63d23f7d6691320565165c4a2f393d5d57 | 238 | cpp | C++ | system/atomic/atomic.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 264 | 2015-01-03T11:50:17.000Z | 2022-03-17T02:38:34.000Z | system/atomic/atomic.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 12 | 2015-04-27T15:17:34.000Z | 2021-05-01T04:31:18.000Z | system/atomic/atomic.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 128 | 2015-02-07T18:13:10.000Z | 2022-02-21T14:24:14.000Z | // Copyright (c) 2012, The Toft Authors.
// All rights reserved.
//
// Author: CHEN Feng <chen3feng@gmail.com>
#include "toft/system/atomic/functions.h"
namespace toft {
#ifndef NDEBUG
void EnsureLinkedWithAtomicLibrary() {}
#endif
}
| 15.866667 | 42 | 0.722689 | hjinlin |
0cee83e17fce412a5bb9543174929a9be34ed4de | 104 | cpp | C++ | src/stb_image_implementation.cpp | AberrantWolf/Ceprit | 99c7c2517822be38baf5fc2d8658297e560a0601 | [
"MIT"
] | null | null | null | src/stb_image_implementation.cpp | AberrantWolf/Ceprit | 99c7c2517822be38baf5fc2d8658297e560a0601 | [
"MIT"
] | null | null | null | src/stb_image_implementation.cpp | AberrantWolf/Ceprit | 99c7c2517822be38baf5fc2d8658297e560a0601 | [
"MIT"
] | null | null | null | //
// Created by B. Scott Harper on 8/20/16.
//
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" | 17.333333 | 41 | 0.721154 | AberrantWolf |
0cf2de9de32f89d05c54ec6262c14a01c69321ee | 1,110 | cpp | C++ | CppAlgo/SimpleLinkedList/SimpleLinkedList.cpp | nsxt/algorithm | 657d3edffc870c3999d11f1586611d0d918b2f14 | [
"MIT"
] | 1 | 2017-04-03T08:27:47.000Z | 2017-04-03T08:27:47.000Z | CppAlgo/SimpleLinkedList/SimpleLinkedList.cpp | nsxt/algorithm | 657d3edffc870c3999d11f1586611d0d918b2f14 | [
"MIT"
] | null | null | null | CppAlgo/SimpleLinkedList/SimpleLinkedList.cpp | nsxt/algorithm | 657d3edffc870c3999d11f1586611d0d918b2f14 | [
"MIT"
] | null | null | null | // SimpleLinkedList.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "simple_linked_list.h"
#include <iostream>
template SimpleLinkedList<int>;
void dump_list_int(SimpleLinkedList<int>& list)
{
SimpleLinkedList<int>::iterator it = list.begin();
while (it) {
std::cout... | 20.943396 | 78 | 0.640541 | nsxt |
0cf9cbc05d1b2298ff441ebd10076a9a787a1580 | 235 | cpp | C++ | src/engine/editor/mapeditor/editortool.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/editor/mapeditor/editortool.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/editor/mapeditor/editortool.cpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | #include "editortool.hpp"
namespace eXl
{
IMPLEMENT_RTTI(ToolEditorComponentMgr)
EditorTool::EditorTool(QWidget* iParent, World& iWorld)
: QWidget(iParent)
, m_EditorMgr(*iWorld.GetSystem<ToolEditorComponentMgr>())
{}
} | 21.363636 | 62 | 0.744681 | eXl-Nic |
0cfacb393851c4aac0ba0e3c3ef0db6ed6f8968f | 889 | cc | C++ | core/MediaLoader.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 75 | 2015-04-26T11:22:07.000Z | 2022-02-12T17:18:37.000Z | core/MediaLoader.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 7 | 2016-05-31T21:56:01.000Z | 2019-09-15T06:25:28.000Z | core/MediaLoader.cc | bsdelf/mous | eb59b625d0ba8236f3597ae6015d9215cef922cf | [
"BSD-2-Clause"
] | 19 | 2015-09-23T01:50:15.000Z | 2022-02-12T17:18:41.000Z | #include <core/MediaLoader.h>
#include <util/Plugin.h>
#include "MediaLoaderImpl.h"
namespace mous {
MediaLoader::MediaLoader()
: impl(std::make_unique<Impl>()) {
}
MediaLoader::~MediaLoader() {
}
void MediaLoader::LoadSheetParserPlugin(const std::shared_ptr<Plugin>& plugin) {
return impl->LoadSheetParserPlu... | 22.225 | 94 | 0.737908 | bsdelf |
0cfcb06fe412c6872993931a449d1b4a813fddb5 | 1,588 | cpp | C++ | core/src/jni/jni/CosmosLikeRewardListCallback.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 92 | 2016-11-13T01:28:34.000Z | 2022-03-25T01:11:37.000Z | core/src/jni/jni/CosmosLikeRewardListCallback.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 242 | 2016-11-28T11:13:09.000Z | 2022-03-04T13:02:53.000Z | core/src/jni/jni/CosmosLikeRewardListCallback.cpp | RomanWlm/lib-ledger-core | 8c068fccb074c516096abb818a4e20786e02318b | [
"MIT"
] | 91 | 2017-06-20T10:35:28.000Z | 2022-03-09T14:15:40.000Z | // AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from callback.djinni
#include "CosmosLikeRewardListCallback.hpp" // my header
#include "CosmosLikeReward.hpp"
#include "Error.hpp"
#include "Marshal.hpp"
namespace djinni_generated {
CosmosLikeRewardListCallback::CosmosLikeRewardListCallback() ... | 52.933333 | 246 | 0.738665 | RomanWlm |
0cfd5e6e0ed5e675983da329b529e40f48fd6448 | 2,345 | hpp | C++ | src/opengl/glengine/Event/EventConcepts.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | src/opengl/glengine/Event/EventConcepts.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | 66 | 2021-09-27T23:58:02.000Z | 2022-01-10T20:41:36.000Z | src/opengl/glengine/Event/EventConcepts.hpp | Sebanisu/Field-Map-Editor | 2f37986459785a78766de34e38fc3e21db8b6f14 | [
"Unlicense"
] | null | null | null | //
// Created by pcvii on 12/7/2021.
//
#ifndef MYPROJECT_EVENTCONCEPTS_HPP
#define MYPROJECT_EVENTCONCEPTS_HPP
#include "EventEnums.hpp"
#include "KeyCodes.hpp"
#include "MouseButtonCodes.hpp"
namespace glengine
{
namespace Event
{
template<typename T>
concept is =
glengine::decay_same_as<typename T::value_ty... | 22.122642 | 78 | 0.573987 | Sebanisu |
490002ff25310fc565f5f83d685f8e019933555c | 7,382 | cpp | C++ | minesweeper_v1/Leaderboard.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | 6 | 2021-12-28T08:07:16.000Z | 2022-03-13T06:17:45.000Z | minesweeper_v1/Leaderboard.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | null | null | null | minesweeper_v1/Leaderboard.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | 1 | 2021-12-24T07:19:16.000Z | 2021-12-24T07:19:16.000Z | #include "Leaderboard.h"
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include "Leaderboard.h"
#include "cmanip.h"
#include "game_model.h"
#include "global.h"
#include "main_utils.h"
#include "scene_manager.h"
#include "windows.h"
const std::string LEADERBOARD_FILE... | 31.016807 | 80 | 0.560282 | sangpham2710 |
4902ca3f0881fe240b0d4a0b3877901bb847511b | 1,094 | hpp | C++ | libs/sawtooth/include/suil/sawtooth/address.hpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | 6 | 2019-06-18T03:17:50.000Z | 2022-03-05T08:23:38.000Z | libs/sawtooth/include/suil/sawtooth/address.hpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | 1 | 2021-09-10T06:15:02.000Z | 2021-09-10T06:15:02.000Z | libs/sawtooth/include/suil/sawtooth/address.hpp | dccarter/suil | f97fc45deee53fef3e47b070d00b12786ef367b4 | [
"MIT"
] | null | null | null | //
// Created by Mpho Mbotho on 2021-06-04.
//
#pragma once
#include <suil/base/exception.hpp>
#include <suil/base/string.hpp>
namespace suil::saw {
DECLARE_EXCEPTION(AddressEncodeError);
class DefaultAddressEncoder final {
public:
static constexpr size_t ADDRESS_LENGTH = 70;
static co... | 24.863636 | 81 | 0.683729 | dccarter |
490878b0206176c03c0b3fdf37132a6e409004aa | 2,110 | cpp | C++ | ctpParticle/HelloTriangleApplication/ThreadManager.cpp | lbondi7/CTP | 79c7b74764ce32b4a7918174768a486ea9cb9815 | [
"MIT"
] | 1 | 2020-05-31T11:37:24.000Z | 2020-05-31T11:37:24.000Z | ctpParticle/HelloTriangleApplication/ThreadManager.cpp | lbondi7/CTP | 79c7b74764ce32b4a7918174768a486ea9cb9815 | [
"MIT"
] | null | null | null | ctpParticle/HelloTriangleApplication/ThreadManager.cpp | lbondi7/CTP | 79c7b74764ce32b4a7918174768a486ea9cb9815 | [
"MIT"
] | null | null | null | #include "ThreadManager.h"
#include "DebugPrinter.h"
#include <iostream>
using namespace std::chrono_literals;
std::mutex ThreadManager::threads_mutex;
const int max_thread_count = std::thread::hardware_concurrency() * 2;
ThreadManager::ThreadManager(int num_of_threads, bool override_max_threads)
{
Init(num_of_thr... | 19.181818 | 84 | 0.620379 | lbondi7 |
4914f04eb078a0c3ea76731892fd73d8f051b42b | 654 | cpp | C++ | io/mdns/Browser.cpp | tristanseifert/lichtenstein-lib | fc1fcf971594ee3953b8f35103fa319afc6bf7aa | [
"BSD-2-Clause"
] | null | null | null | io/mdns/Browser.cpp | tristanseifert/lichtenstein-lib | fc1fcf971594ee3953b8f35103fa319afc6bf7aa | [
"BSD-2-Clause"
] | null | null | null | io/mdns/Browser.cpp | tristanseifert/lichtenstein-lib | fc1fcf971594ee3953b8f35103fa319afc6bf7aa | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Tristan Seifert on 2019-08-24.
//
#include "Browser.h"
#include <glog/logging.h>
#if __APPLE__
#include "AppleBrowser.h"
#endif
namespace liblichtenstein::mdns {
/**
* Creates the platform-specific service browser instance.
*
* @param name Name of the service to browse for
* @return... | 21.096774 | 68 | 0.671254 | tristanseifert |
4915547a844db34678da4c8f42cef6fe281242a7 | 3,067 | cpp | C++ | engine/src/fabric/vertex_attribute_object.cpp | batburger/fabricEngine | 438c6094d244720b452bd4638c76e80316023398 | [
"MIT"
] | null | null | null | engine/src/fabric/vertex_attribute_object.cpp | batburger/fabricEngine | 438c6094d244720b452bd4638c76e80316023398 | [
"MIT"
] | 5 | 2017-07-24T17:24:43.000Z | 2017-10-07T08:38:32.000Z | engine/src/fabric/vertex_attribute_object.cpp | batburger/fabricEngine | 438c6094d244720b452bd4638c76e80316023398 | [
"MIT"
] | null | null | null | #include <fabric/vertex_attribute_object.hpp>
fabric::VertexAttributeObject::VertexAttributeObject() {
VertexAttributeObject::handle = 0;
};
fabric::VertexAttributeObject::VertexAttributeObject(bool glContext) {
VertexAttributeObject::handle = 0;
if (glContext)
glGenVertexArrays(1, &(VertexAttributeObject::hand... | 29.776699 | 187 | 0.762308 | batburger |
4917946711e276b3f0691af4f3a987258da9dbf7 | 634 | cpp | C++ | src/Domain/ScoreComponent/tone.cpp | miyabishi/waltz_engine | 8c5fed47e3b1f5ad76c4fbadc0cbde59a7005edd | [
"BSD-3-Clause"
] | 1 | 2017-07-02T10:26:49.000Z | 2017-07-02T10:26:49.000Z | src/Domain/ScoreComponent/tone.cpp | miyabishi/waltz_engine | 8c5fed47e3b1f5ad76c4fbadc0cbde59a7005edd | [
"BSD-3-Clause"
] | null | null | null | src/Domain/ScoreComponent/tone.cpp | miyabishi/waltz_engine | 8c5fed47e3b1f5ad76c4fbadc0cbde59a7005edd | [
"BSD-3-Clause"
] | null | null | null | #include <qmath.h>
#include <QMap>
#include "tone.h"
using namespace waltz::engine::ScoreComponent;
namespace
{
const double BASE_PITCH_A = 440.0;
}
Tone::Tone(const ToneValue& aValue,
const Octave& aOctave)
: mValue_(aValue)
, mOctave_(aOctave)
{
}
Tone::Tone(const Tone &aOther)
: mValue... | 17.611111 | 94 | 0.654574 | miyabishi |
491d476c77fe4fbb049c7645d76e334a21f69c82 | 809 | cpp | C++ | 6-random-numbers/Random Numbers/Random Numbers.cpp | forsbergsskola-se/gp20-2021-0527-battleships-ozanugurozturk | b2baeb78217bc4e09e6e5053a1a7a197571e7b9e | [
"MIT"
] | null | null | null | 6-random-numbers/Random Numbers/Random Numbers.cpp | forsbergsskola-se/gp20-2021-0527-battleships-ozanugurozturk | b2baeb78217bc4e09e6e5053a1a7a197571e7b9e | [
"MIT"
] | null | null | null | 6-random-numbers/Random Numbers/Random Numbers.cpp | forsbergsskola-se/gp20-2021-0527-battleships-ozanugurozturk | b2baeb78217bc4e09e6e5053a1a7a197571e7b9e | [
"MIT"
] | null | null | null | #include <iostream>
#include <time.h>
using namespace std;
int main()
{
srand((unsigned)time(0));
int r, inValue;
float numbers[21] = {};
int storage[10000] = {};
float ratio;
cout << "Here you can exercise occurance chance of random numbers between 1 and 20 when you enter amount of time you want to iter... | 26.096774 | 140 | 0.60445 | forsbergsskola-se |
492d36c5c4f9c8cab015a48fabdd9292f5c50097 | 73 | cpp | C++ | src/world/World.cpp | Tonaion02/ncPhysic | c980d7f25538941b43246856390a4bcd4153199d | [
"MIT"
] | null | null | null | src/world/World.cpp | Tonaion02/ncPhysic | c980d7f25538941b43246856390a4bcd4153199d | [
"MIT"
] | null | null | null | src/world/World.cpp | Tonaion02/ncPhysic | c980d7f25538941b43246856390a4bcd4153199d | [
"MIT"
] | null | null | null | #include "World.h"
//Class World
World::World()
{
}
//Class World | 5.214286 | 18 | 0.589041 | Tonaion02 |
492fc82724c7b59f62790b5632154869aeddfdac | 4,300 | cpp | C++ | HOMR/Geometry.cpp | ValleyAudio/homr | 9985bb3fd5032c144c3de23122590a0e6b9c359b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | HOMR/Geometry.cpp | ValleyAudio/homr | 9985bb3fd5032c144c3de23122590a0e6b9c359b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | HOMR/Geometry.cpp | ValleyAudio/homr | 9985bb3fd5032c144c3de23122590a0e6b9c359b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null |
#include "Geometry.hpp"
Vec8f convertAbsorbToReflectCoeffs(const Vec8f& absorbCoeffs)
{
return -sqrt(1.0 - absorbCoeffs*absorbCoeffs);
}
Ray::Ray()
{
_v0 = Vec3f(0.f);
_normal = Vec3f(1.f, 0.f, 0.f);
}
Ray::Ray(const Vec3f& v0, const Vec3f& normal)
{
_v0 = v0;
_normal = normal;
}
Line::Line()
{... | 20.772947 | 80 | 0.569767 | ValleyAudio |
493101f8c2c8c84d0a7c13b797c2a8685b77d1e0 | 7,659 | cpp | C++ | src/clutter.cpp | ebassi/node-clutter | 760b8f5704a216dcd633658051c0778151b21391 | [
"MIT"
] | 1 | 2017-08-31T00:58:33.000Z | 2017-08-31T00:58:33.000Z | src/clutter.cpp | ebassi/node-clutter | 760b8f5704a216dcd633658051c0778151b21391 | [
"MIT"
] | null | null | null | src/clutter.cpp | ebassi/node-clutter | 760b8f5704a216dcd633658051c0778151b21391 | [
"MIT"
] | null | null | null | #include <v8.h>
#include <node.h>
#include <clutter/clutter.h>
#include <clutter/x11/clutter-x11.h>
#include "clutter.hpp"
#include "actor.hpp"
#include "container.hpp"
#include "group.hpp"
#include "stage.hpp"
#include "rectangle.hpp"
#include "text.hpp"
#include "texture.hpp"
#include "state.hpp"
#include "media.hpp... | 38.878173 | 99 | 0.803499 | ebassi |
4939204c1a4fd5e2f1cfb8359fff128a93f8e4b4 | 3,462 | cpp | C++ | Types/LdsVar.cpp | DreamyCecil/LilacDragonScript | ee451f430bea97a9277bf6985cd2474d12717c7e | [
"MIT"
] | null | null | null | Types/LdsVar.cpp | DreamyCecil/LilacDragonScript | ee451f430bea97a9277bf6985cd2474d12717c7e | [
"MIT"
] | 1 | 2021-03-24T21:06:42.000Z | 2021-03-26T09:27:18.000Z | Types/LdsVar.cpp | DreamyCecil/LilacDragonScript | ee451f430bea97a9277bf6985cd2474d12717c7e | [
"MIT"
] | null | null | null | /* Copyright (c) 2021 Dreamy Cecil
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, su... | 26.427481 | 83 | 0.695263 | DreamyCecil |
493a8fe9c3482674ebc1ae0aeec122f1e2c5185d | 12,502 | cpp | C++ | TowerManager.cpp | JermSmith/TDGame | 198599ef229eb6c852dabc7ea72f5537dd10ab5c | [
"MIT"
] | null | null | null | TowerManager.cpp | JermSmith/TDGame | 198599ef229eb6c852dabc7ea72f5537dd10ab5c | [
"MIT"
] | null | null | null | TowerManager.cpp | JermSmith/TDGame | 198599ef229eb6c852dabc7ea72f5537dd10ab5c | [
"MIT"
] | null | null | null | #include "TowerManager.h"
#include <iostream>
// TODO: find somewhere in the code (probably create a new class or two) to manage the store and inventory.
// store is the available towers; inventory is towers that have been purchased/accumulated; world is what has been placed along the path.
// towers go from stor... | 31.491184 | 138 | 0.648136 | JermSmith |
493dadb95d0da09722f6774d69ff9d9faa7f8256 | 692 | cpp | C++ | LeetCode/c++/985_Sum of Even Numbers After Queries.cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-02-08T23:50:19.000Z | 2018-02-08T23:50:19.000Z | LeetCode/c++/985_Sum of Even Numbers After Queries.cpp | Weak-Chicken/Algo_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 1 | 2018-04-11T19:08:22.000Z | 2018-04-12T19:24:57.000Z | LeetCode/c++/985_Sum of Even Numbers After Queries.cpp | Weak-Chicken/Cpp_every_day | 0976b5986d6c98cb8370ff4239b4a2485f865253 | [
"MIT"
] | 2 | 2019-03-15T02:50:53.000Z | 2019-03-15T03:54:54.000Z | class Solution
{
public:
vector<int> sumEvenAfterQueries(vector<int>& A, vector<vector<int>>& queries)
{
vector<int>res;
vector<int>addable = A;
if (A.size() == 0 || queries.size() == 0) return res;
for (int i = 0; i < A.size(); i++)
{
if (A[i] % 2 != 0) add... | 31.454545 | 85 | 0.465318 | Weak-Chicken |
4941dc59672127dd9e7f6532e033fd4f0706f16a | 129 | hpp | C++ | Vendor/GLM/glm/ext/quaternion_double_precision.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | 2 | 2022-01-11T21:15:31.000Z | 2022-02-22T21:14:33.000Z | Vendor/GLM/glm/ext/quaternion_double_precision.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | Vendor/GLM/glm/ext/quaternion_double_precision.hpp | wdrDarx/DEngine3 | 27e2de3b56b6d4c8705e8a0e36f5911d8651caa2 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:0e71b9f30dfbe962731b7fe48a639723d0bd0b9cd09f0ac138a75387c2ef28b2
size 1318
| 32.25 | 75 | 0.883721 | wdrDarx |
494593d206d1f7d2e08d5c8b6e2365c5bc791f6b | 6,274 | hpp | C++ | src/core/meshcop/dataset.hpp | syin2/openthread | a9f42768ec221380f42bfd311bc68e784b2163a6 | [
"BSD-3-Clause"
] | 1 | 2018-12-31T08:12:49.000Z | 2018-12-31T08:12:49.000Z | src/core/meshcop/dataset.hpp | syin2/openthread | a9f42768ec221380f42bfd311bc68e784b2163a6 | [
"BSD-3-Clause"
] | null | null | null | src/core/meshcop/dataset.hpp | syin2/openthread | a9f42768ec221380f42bfd311bc68e784b2163a6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2016, The OpenThread Authors.
* 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 ... | 30.906404 | 107 | 0.661779 | syin2 |
4945dd334288dc6cda2d1f2a075eaa8dfc5a5068 | 1,056 | cpp | C++ | kattis_done/cardtrick2.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | 5 | 2019-03-17T01:33:19.000Z | 2021-06-25T09:50:45.000Z | kattis_done/cardtrick2.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | kattis_done/cardtrick2.cpp | heiseish/Competitive-Programming | e4dd4db83c38e8837914562bc84bc8c102e68e34 | [
"MIT"
] | null | null | null | /**
*/
#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
using namespace std;
typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<bool> vb;
typedef vector<string> vs;
typedef... | 17.6 | 59 | 0.607008 | heiseish |
494c645357abbbdd74d8be493095f8cf54e2d142 | 1,247 | hpp | C++ | cpp08/ex00/easyfind.hpp | pgomez-a/42_CPP_Piscine | c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1 | [
"MIT"
] | null | null | null | cpp08/ex00/easyfind.hpp | pgomez-a/42_CPP_Piscine | c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1 | [
"MIT"
] | null | null | null | cpp08/ex00/easyfind.hpp | pgomez-a/42_CPP_Piscine | c350f5f3c2e4d332b13bfa632b36f9a4b7bc6ce1 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* easyfind.hpp :+: :+: :+: ... | 36.676471 | 80 | 0.269447 | pgomez-a |
494c86acc2329fbdb1b2f32b7dc79e4758644b1e | 16,637 | cpp | C++ | tests/cuda2.3/tests/TestSpecialFunctions/TestSpecialFunctions.cpp | florianjacob/gpuocelot | fa63920ee7c5f9a86e264cd8acd4264657cbd190 | [
"BSD-3-Clause"
] | 221 | 2015-03-29T02:05:49.000Z | 2022-03-25T01:45:36.000Z | tests/cuda2.3/tests/TestSpecialFunctions/TestSpecialFunctions.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 106 | 2015-03-29T01:28:42.000Z | 2022-02-15T19:38:23.000Z | tests/cuda2.3/tests/TestSpecialFunctions/TestSpecialFunctions.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 83 | 2015-07-10T23:09:57.000Z | 2022-03-25T03:01:00.000Z | /*! \file TestSpecialFunctions.cpp
\date Friday November 13, 2009
\author Gregory Diamos <gregory.diamos@gatech.edu>
\brief A test for special function throughput.
*/
#ifndef TEST_BARRIERS_CPP_INCLUDED
#define TEST_BARRIERS_CPP_INCLUDED
#include <tests/TestSpecialFunctions/TestSpecialFunctions.h>
#include <hydrazi... | 27.91443 | 77 | 0.569093 | florianjacob |
49505ee6e2fcaa1383adcf253d7197bbfa6a371c | 681 | hpp | C++ | src/logic-objects/credits.hpp | Blackhawk-TA/TowerDefense | db852a65cae9579074e435fb0245fd9b69fb720d | [
"MIT"
] | 1 | 2022-01-02T15:02:09.000Z | 2022-01-02T15:02:09.000Z | src/logic-objects/credits.hpp | Blackhawk-TA/TowerDefense | db852a65cae9579074e435fb0245fd9b69fb720d | [
"MIT"
] | null | null | null | src/logic-objects/credits.hpp | Blackhawk-TA/TowerDefense | db852a65cae9579074e435fb0245fd9b69fb720d | [
"MIT"
] | 1 | 2021-05-02T18:25:51.000Z | 2021-05-02T18:25:51.000Z | //
// Created by daniel on 18.04.21.
//
#pragma once
#include "32blit.hpp"
#include "../game-objects/enemies/enemy.hpp"
using namespace blit;
class Credits {
public:
static Credits *getInstance();
void add_kill_reward(Enemy::EnemyType enemy_type);
bool can_buy_turret() const;
void buy_turret();
void refund_turr... | 20.029412 | 51 | 0.745962 | Blackhawk-TA |
4955c9c3180ed8816d7098efcca545b26ecafc32 | 401 | cpp | C++ | ui/CxExtObj/ReturnInteger.cpp | johnzcdGitHub/SuperCxHMI | e897b7bdf30cfe3bfeb5b8738e10c7205ebcd665 | [
"MIT"
] | 118 | 2015-05-19T09:19:01.000Z | 2022-02-24T15:18:51.000Z | ui/CxExtObj/ReturnInteger.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 1 | 2016-10-24T02:48:03.000Z | 2020-04-20T01:53:31.000Z | ui/CxExtObj/ReturnInteger.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 98 | 2015-02-11T07:16:47.000Z | 2022-02-24T02:15:27.000Z | // ReturnInteger.cpp : Implementation of CReturnInteger
#include "stdafx.h"
#include "CxExtObj.h"
#include "ReturnInteger.h"
/////////////////////////////////////////////////////////////////////////////
// CReturnInteger
STDMETHODIMP CReturnInteger::get_Value(int *pVal)
{
*pVal = m_Value;
return S_OK;
}
STDMETHO... | 17.434783 | 77 | 0.600998 | johnzcdGitHub |
4959b4089f724d7aee6c496a292afc62a9657cce | 483 | cpp | C++ | definitions/patches/aspell/FreeBSD/patch-modules__speller__default__affix.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | 1 | 2021-12-07T12:36:18.000Z | 2021-12-07T12:36:18.000Z | definitions/patches/aspell/FreeBSD/patch-modules__speller__default__affix.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | 1 | 2019-01-10T15:36:52.000Z | 2019-01-10T15:36:53.000Z | definitions/patches/aspell/FreeBSD/patch-modules__speller__default__affix.cpp | VerKnowSys/sofin-definitions | 9ca5a00fda2acd510e59d39b50bd74c930edcc26 | [
"BSD-2-Clause"
] | null | null | null | --- modules/speller/default/affix.cpp.orig 2012-01-25 19:46:47.684690459 +0200
+++ modules/speller/default/affix.cpp 2012-01-25 19:46:56.385691084 +0200
@@ -796,7 +796,10 @@ bool AffixMgr::suffix_check (const Looku
if (se->check(linf, word, ci, gi, sfxopts, ppfx)) return true;
se = se->next;
}
-
+
+ if ... | 32.2 | 78 | 0.625259 | VerKnowSys |
495d26a9e16299aa19f730fe7842eca27f804ee9 | 16,229 | cpp | C++ | src/QtManagers/Painters/nPenLists.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Painters/nPenLists.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | src/QtManagers/Painters/nPenLists.cpp | Vladimir-Lin/QtManagers | 2f906b165f773bff054a8349c577b7d07c2345d9 | [
"MIT"
] | null | null | null | #include <qtmanagers.h>
N::PenLists:: PenLists (QWidget * parent,Plan * p)
: TreeDock ( parent, p)
{
WidgetClass ;
Configure ( ) ;
}
N::PenLists::~PenLists(void)
{
}
void N::PenLists::setIcon(Pen & pen,QTreeWidgetItem * item)
{
QRect VR = visualItemRect (item ) ;
QSize IR(V... | 45.206128 | 73 | 0.302606 | Vladimir-Lin |
495ea237fbc6e7a888705d3d1f86eb41fc29548e | 1,438 | cpp | C++ | MyMap/src/widget/statusbar.cpp | dcxcn/MyMap | 0bec189fbafe7d6af202308b30abb95e8f268f80 | [
"MIT"
] | null | null | null | MyMap/src/widget/statusbar.cpp | dcxcn/MyMap | 0bec189fbafe7d6af202308b30abb95e8f268f80 | [
"MIT"
] | null | null | null | MyMap/src/widget/statusbar.cpp | dcxcn/MyMap | 0bec189fbafe7d6af202308b30abb95e8f268f80 | [
"MIT"
] | null | null | null | #include "widget/statusbar.h"
#include "util/appevent.h"
#include <QString>
StatusBar::StatusBar(QStatusBar *statusBarIn)
: statusBar(statusBarIn) {
createWidgets();
setupLayout();
setUnit(kDegree);
onUpdateCoord(0.0, 0.0);
connect(AppEvent::getInstance(), &AppEvent::sigUpdateCoord,
... | 21.462687 | 83 | 0.632128 | dcxcn |
495ff193a9b1676ee6e61ada02729807a6996108 | 927 | cpp | C++ | lib/Dialect/ESI/ESITypes.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | lib/Dialect/ESI/ESITypes.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | lib/Dialect/ESI/ESITypes.cpp | HongshiTan/circt | 5590855b46eac4b902cf1319347ab19a6dee8f1b | [
"Apache-2.0"
] | null | null | null | //===- ESITypes.cpp - ESI types code defs -----------------------*- C++ -*-===//
//
// Definitions for esi data types. Anything which doesn't have to be public
// should go in here.
//
//===----------------------------------------------------------------------===//
#include "circt/Dialect/ESI/ESITypes.h"
#include "mli... | 28.090909 | 80 | 0.618123 | HongshiTan |
49615d1553786b468118a3989d8d5968b9649920 | 843 | hxx | C++ | libodb-2.4.0/odb/details/win32/init.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | libodb-2.4.0/odb/details/win32/init.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | libodb-2.4.0/odb/details/win32/init.hxx | edidada/odb | 78ed750a9dde65a627fc33078225410306c2e78b | [
"MIT"
] | null | null | null | // file : odb/details/win32/init.hxx
// copyright : Copyright (c) 2009-2015 Code Synthesis Tools CC
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ODB_DETAILS_WIN32_INIT_HXX
#define ODB_DETAILS_WIN32_INIT_HXX
#include <odb/pre.hxx>
namespace odb
{
namespace details
{
void
process_s... | 22.184211 | 76 | 0.685647 | edidada |
4969c6512c2513b04482c37896d024fda4c5fb28 | 1,448 | cpp | C++ | ffl/source/pipeline/FFL_PipelineNodeHandler.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | ffl/source/pipeline/FFL_PipelineNodeHandler.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | ffl/source/pipeline/FFL_PipelineNodeHandler.cpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | /*
* This file is part of FFL project.
*
* The MIT License (MIT)
* Copyright (C) 2017-2018 zhufeifei All rights reserved.
*
* FFL_PipelineNodeHandler.cpp
* Created by zhufeifei(34008081@qq.com) on 2018/02/03
* https://github.com/zhenfei2016/FFL-v2.git
*
* Pipelin系统中的Node节点的回调句柄
*
*/
#include <pipeline/FFL_Pipe... | 22.625 | 121 | 0.717541 | zhenfei2016 |
49751b38bde36b537de0a908b05bf7828933f60c | 26,677 | hpp | C++ | src/loopOptimizer.hpp | lyj-514328/T1010 | f6bd5a75b249abb63f5023f205ead28b133b3dbc | [
"Apache-2.0"
] | null | null | null | src/loopOptimizer.hpp | lyj-514328/T1010 | f6bd5a75b249abb63f5023f205ead28b133b3dbc | [
"Apache-2.0"
] | null | null | null | src/loopOptimizer.hpp | lyj-514328/T1010 | f6bd5a75b249abb63f5023f205ead28b133b3dbc | [
"Apache-2.0"
] | null | null | null | /*code is far away from bug with the animal protecting
* ┏┓ ┏┓
*┏┛┻━━━┛┻┓
*┃ ┃
*┃ ━ ┃
*┃ ┳┛ ┗┳ ┃
*┃ ┃
*┃ ┻ ┃
*┃ ┃
*┗━┓ ┏━┛
* ┃ ┃神兽保佑
* ┃ ┃代码无BUG!
* ┃ ┗━━━┓
* ┃ ┣┓
* ┃ ┏┛
* ┗┓┓┏━┳┓┏┛
* ┃┫┫ ┃┫┫
* ┗┻┛ ┗┻┛
*
*/
//created by 张锦伦 at 08/08/2021 16:02:31
#ifndef... | 33.854061 | 95 | 0.584099 | lyj-514328 |
497680510dabd6f1f68560d549be3bd2965a8563 | 16,766 | cpp | C++ | src/VM.cpp | ireina7/abyss | 643f69732b0464d223bc1aab28afb078e1e15a6e | [
"MIT"
] | null | null | null | src/VM.cpp | ireina7/abyss | 643f69732b0464d223bc1aab28afb078e1e15a6e | [
"MIT"
] | null | null | null | src/VM.cpp | ireina7/abyss | 643f69732b0464d223bc1aab28afb078e1e15a6e | [
"MIT"
] | null | null | null | #include "VM.hpp"
namespace abyss {
namespace vm {
void handle_arith(State &S, CallInfo &ci,
vector<Atom>::const_iterator &pc, const Atom &a) {
StkId base = S.stack.begin() + ci.func;
StkId ra = base + a.getArg_A();
Value v1 = Cast::to<Value... | 37.761261 | 107 | 0.351545 | ireina7 |
4979a297b40a6efa2bca3be35018d7f14d9219e8 | 6,267 | cpp | C++ | sdk/test/unit/assets/MeshAssetManager_unit_tests.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | null | null | null | sdk/test/unit/assets/MeshAssetManager_unit_tests.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | 3 | 2022-03-26T15:14:43.000Z | 2022-03-27T16:12:53.000Z | sdk/test/unit/assets/MeshAssetManager_unit_tests.cpp | NcStudios/NcEngine | ce04eca00211b50188d80e59604bfa67bb9c15b6 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "graphics/GpuAllocator.h"
#include "graphics/Graphics.h"
#include "graphics/resources/ImmutableBuffer.h"
#include "assets/MeshAssetManager.h"
using namespace nc;
const auto MeshPath_3Vertices = "mesh3Verts.nca";
const auto MeshPath_6Vertices = "mesh6Verts.nca";
const auto MeshPath_9... | 34.245902 | 129 | 0.75012 | NcStudios |
497f5c5d14b37b3077eb54648e1d07897d4e5ca0 | 2,563 | cpp | C++ | Educational Round #82 (Div 2)/D.cpp | julianferres/Codeforces | ac80292a4d53b8078fc1a85e91db353c489555d9 | [
"MIT"
] | 4 | 2020-01-31T15:49:25.000Z | 2020-07-07T11:44:03.000Z | Educational Round #82 (Div 2)/D.cpp | julianferres/CodeForces | 14e8369e82a2403094183d6f7824201f681c9f65 | [
"MIT"
] | null | null | null | Educational Round #82 (Div 2)/D.cpp | julianferres/CodeForces | 14e8369e82a2403094183d6f7824201f681c9f65 | [
"MIT"
] | null | null | null | /******************************************
* AUTHOR: julianferres *
******************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<ll> vi;
typedef pair<ll, ll> ii;
#define FIN \
ios::sync_with_stdio(0); \
cin.ti... | 22.094828 | 62 | 0.27858 | julianferres |
4980a02960eca5ca7c8b5899b7fde5e488bc5ac3 | 703 | cpp | C++ | src/QuickVtk-Core/Vtk/Wrapper/quickVtkShrinkPolyData.cpp | jayavardhanravi/QuickVtk | 4e899221daa6057c89193d079fa31435af89b296 | [
"BSD-3-Clause"
] | 1 | 2020-02-16T00:51:36.000Z | 2020-02-16T00:51:36.000Z | src/QuickVtk-Core/Vtk/Wrapper/quickVtkShrinkPolyData.cpp | jayavardhanravi/QuickVtk | 4e899221daa6057c89193d079fa31435af89b296 | [
"BSD-3-Clause"
] | null | null | null | src/QuickVtk-Core/Vtk/Wrapper/quickVtkShrinkPolyData.cpp | jayavardhanravi/QuickVtk | 4e899221daa6057c89193d079fa31435af89b296 | [
"BSD-3-Clause"
] | null | null | null | #include "quickVtkShrinkPolyData.hpp"
namespace quick {
namespace Vtk {
Qml::Register::Class<ShrinkPolyData> ShrinkPolyData::Register(true);
ShrinkPolyData::ShrinkPolyData() : PolyDataAlgorithm(vtkSmartPointer<vtkShrinkPolyData>::New()) {
this->m_vtkObject = vtkShrinkPolyData::SafeDo... | 29.291667 | 105 | 0.637269 | jayavardhanravi |
21a88a1161718594e8e1d94386686905817de5ee | 1,165 | cpp | C++ | spring.cpp | itadr/Jelly_Simulation | f93d805970e41a7b8558f4adb15624dba8ef5130 | [
"MIT"
] | null | null | null | spring.cpp | itadr/Jelly_Simulation | f93d805970e41a7b8558f4adb15624dba8ef5130 | [
"MIT"
] | null | null | null | spring.cpp | itadr/Jelly_Simulation | f93d805970e41a7b8558f4adb15624dba8ef5130 | [
"MIT"
] | null | null | null | #include "spring.hpp"
#include<iostream>
#include "particle.hpp"
#include "vector2.hpp"
spring::spring(particle& pi, particle& pj) : pi_{pi}, pj_{pj} {
const vector2 relative_pos = this->relative_position();
initial_length_ = relative_pos.abs();
}
vector2 spring::relative_position() const {
return pi_.get_posit... | 31.486486 | 71 | 0.700429 | itadr |
21a8bed5966d64028d54a3ab0e47321e35356e0f | 17,276 | cpp | C++ | src/Processors/Formats/Impl/RawStoreInputFormat.cpp | ontkey/daisy | b5c9b7b1cc496c1fd45cb5678c273b089d899c63 | [
"Apache-2.0"
] | 5 | 2021-05-14T02:46:44.000Z | 2021-11-23T04:58:20.000Z | src/Processors/Formats/Impl/RawStoreInputFormat.cpp | ontkey/daisy | b5c9b7b1cc496c1fd45cb5678c273b089d899c63 | [
"Apache-2.0"
] | 5 | 2021-05-21T06:26:01.000Z | 2021-08-04T04:57:36.000Z | src/Processors/Formats/Impl/RawStoreInputFormat.cpp | ontkey/daisy | b5c9b7b1cc496c1fd45cb5678c273b089d899c63 | [
"Apache-2.0"
] | 8 | 2021-05-12T01:38:18.000Z | 2022-02-10T06:08:41.000Z | #include <IO/ReadBufferFromString.h>
#include <IO/ReadHelpers.h>
#include <DataTypes/NestedUtils.h>
#include <DataTypes/Serializations/SerializationNullable.h>
#include <Formats/FormatFactory.h>
#include <Formats/JSONEachRowUtils.h>
#include <Processors/Formats/Impl/RawStoreInputFormat.h>
#include <Poco/Dynamic/Var.h... | 33.941061 | 140 | 0.645404 | ontkey |
21aac4b8711d2326e9507d62a88a8966b0f68d7c | 1,404 | cpp | C++ | Evil Space/GDIBitmap.cpp | Cellyceos/Evil-Space | 0c153d07855aa7ae2bd5e47e7ae95d78ba01ee9d | [
"MIT"
] | null | null | null | Evil Space/GDIBitmap.cpp | Cellyceos/Evil-Space | 0c153d07855aa7ae2bd5e47e7ae95d78ba01ee9d | [
"MIT"
] | null | null | null | Evil Space/GDIBitmap.cpp | Cellyceos/Evil-Space | 0c153d07855aa7ae2bd5e47e7ae95d78ba01ee9d | [
"MIT"
] | 2 | 2020-03-29T12:32:51.000Z | 2021-03-14T09:18:32.000Z | #include "StdAfx.h"
#include "GDIBitmap.h"
using namespace std;
using namespace Gdiplus;
GDImageList& GDIBitmap::BufferedImage = *new GDImageList();
GDIBitmap::GDIBitmap(wstring obj) : _image(NULL), Path(obj)
{
_image = Bitmap::FromFile(obj.c_str());
if (_image != NULL)
Create();
}
GDIBitmap::GDIBitmap(int wid... | 16.714286 | 73 | 0.678775 | Cellyceos |
21af9ba0f6f58255ff8b99f9cae87e2bfd30fcf1 | 1,554 | hpp | C++ | include/CPVFramework/HttpServer/HttpServer.hpp | cpv-project/cpv-framework | b0da79c8c57ceecb6b13f4d8658ec4d4c0237668 | [
"MIT"
] | 86 | 2018-04-20T04:40:20.000Z | 2022-02-09T08:36:28.000Z | include/CPVFramework/HttpServer/HttpServer.hpp | cpv-project/cpv-framework | b0da79c8c57ceecb6b13f4d8658ec4d4c0237668 | [
"MIT"
] | 16 | 2018-04-25T09:34:40.000Z | 2020-10-16T03:55:05.000Z | include/CPVFramework/HttpServer/HttpServer.hpp | cpv-project/cpv-framework | b0da79c8c57ceecb6b13f4d8658ec4d4c0237668 | [
"MIT"
] | 10 | 2019-10-07T08:06:15.000Z | 2021-07-26T18:46:11.000Z | #pragma once
#include <memory>
#include <vector>
#include <seastar/core/future.hh>
#include "../Container/Container.hpp"
#include "../Logging/Logger.hpp"
#include "./Handlers/HttpServerRequestHandlerBase.hpp"
#include "./HttpServerConfiguration.hpp"
namespace cpv {
/** Members of HttpServer */
class HttpServerData;
... | 27.75 | 82 | 0.70399 | cpv-project |
21b015a330266a038b12d284076b6d12771c2f32 | 5,906 | cpp | C++ | source/scapes/foundation/shaders/spirv/Compiler.cpp | eZii-jester-data/pbr-sandbox | 853aa023f063fd48760a8c3848687976189f3f98 | [
"MIT"
] | null | null | null | source/scapes/foundation/shaders/spirv/Compiler.cpp | eZii-jester-data/pbr-sandbox | 853aa023f063fd48760a8c3848687976189f3f98 | [
"MIT"
] | null | null | null | source/scapes/foundation/shaders/spirv/Compiler.cpp | eZii-jester-data/pbr-sandbox | 853aa023f063fd48760a8c3848687976189f3f98 | [
"MIT"
] | null | null | null | #include "shaders/spirv/Compiler.h"
#include <scapes/foundation/Log.h>
#include <scapes/foundation/io/FileSystem.h>
#include <scapes/foundation/profiler/Profiler.h>
namespace scapes::foundation::shaders::spirv
{
namespace shaderc
{
static shaderc_shader_kind getShaderKind(ShaderType type)
{
switch(type)
... | 27.469767 | 128 | 0.731629 | eZii-jester-data |
21b8c32480ff587fa8bd26bf84ba915a9126a3e2 | 7,643 | cpp | C++ | cpp/Dependencies/I2CDevLib/RaspberryPi/MS561101BA/MS561101BA.cpp | jbitoniau/SensorMonitor | f6d425bc331a0df364a15e654bbc90267cfae5aa | [
"MIT"
] | null | null | null | cpp/Dependencies/I2CDevLib/RaspberryPi/MS561101BA/MS561101BA.cpp | jbitoniau/SensorMonitor | f6d425bc331a0df364a15e654bbc90267cfae5aa | [
"MIT"
] | null | null | null | cpp/Dependencies/I2CDevLib/RaspberryPi/MS561101BA/MS561101BA.cpp | jbitoniau/SensorMonitor | f6d425bc331a0df364a15e654bbc90267cfae5aa | [
"MIT"
] | null | null | null | // I2Cdev library collection - MS5611-01BA01 I2C device class header file
// Based on MEAS MS5611-01BA01 datasheet, 07/2011 (DA5611-01BA01_006)
// 6/12/2012 by Manuel J Guisado <mjguisado@gmail.com>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2012-0... | 28.099265 | 105 | 0.707445 | jbitoniau |
21b8d1c65176a177a5803901495db560d83be3ff | 816 | cpp | C++ | Sample5_4/app/src/main/cpp/util/LightManager.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | 5 | 2020-11-20T00:06:30.000Z | 2021-12-07T11:39:17.000Z | Sample5_4/app/src/main/cpp/util/LightManager.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | null | null | null | Sample5_4/app/src/main/cpp/util/LightManager.cpp | luopan007/Vulkan_Develpment_Samples | 1be40631e3b2d44aae7140f0ef17c5643a86545e | [
"Unlicense"
] | 7 | 2021-01-01T10:54:58.000Z | 2022-01-13T02:21:54.000Z | #include "LightManager.h"
#include <math.h>
//光源位置
float LightManager::lx=0;
float LightManager::ly=0;
float LightManager::lz=0;
float LightManager::lightSpecularR=0; //初始化镜面光强度R 分量
float LightManager::lightSpecularG=0; //初始化镜面光强度G 分量
float LightManager::lightSpecularB=0; //初始化镜面光强度B 分量
float LightManager::lightSpecu... | 31.384615 | 142 | 0.781863 | luopan007 |
21b9a77869693e653fdf65b38c5acad6f0b54ff2 | 2,471 | cpp | C++ | codeforces/280/B.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | codeforces/280/B.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | codeforces/280/B.cpp | gnomegeek/cp-submissions | c046be42876794d7cc6216db4e44a23c1174742d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef priority_queue<int> maxHeap;
typedef priority_queue<int, vector<int>, greater<int>> minHeap;
#define endl "\n"
#define int long long
#define MOD 1000000007
#define ump unordered_map
#define pb push_back
#define mp make_pair
#define pie acos(-1)
bool test_cases;
v... | 22.463636 | 63 | 0.42412 | gnomegeek |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.