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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
878abcf148a3850557bb810a51b4c8dc7ddef060 | 2,372 | cpp | C++ | src/main.cpp | mystery124/MilestoneRoomController | 1101c110f25d1cc348cf7da304dd9fe5d33a5876 | [
"MIT"
] | null | null | null | src/main.cpp | mystery124/MilestoneRoomController | 1101c110f25d1cc348cf7da304dd9fe5d33a5876 | [
"MIT"
] | 7 | 2020-03-23T17:48:57.000Z | 2020-04-21T19:48:20.000Z | src/main.cpp | mystery124/MilestoneRoomController | 1101c110f25d1cc348cf7da304dd9fe5d33a5876 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <Ticker.h>
#define LOGGING_SERIAL
#include "Logger.h"
#include "WifiManager.h"
#include "BME280Sensor.h"
/*
#include <ESP8266WebServer.h>
#include <WiFiClient.h>
#include <ArduinoJson.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
//local
#include <OTAHandler.h>
#d... | 20.448276 | 82 | 0.673693 | mystery124 |
878dfa2d8a0a9c3551d0a33681169ff2e5e67e79 | 311 | cpp | C++ | solutions/1550. Three Consecutive Odds.cpp | MayThirtyOne/Practice-Problems | fe945742d6bc785fffcb29ce011251406ba7c695 | [
"MIT"
] | 1 | 2020-09-27T17:36:58.000Z | 2020-09-27T17:36:58.000Z | solutions/1550. Three Consecutive Odds.cpp | MayThirtyOne/Practice-Problems | fe945742d6bc785fffcb29ce011251406ba7c695 | [
"MIT"
] | null | null | null | solutions/1550. Three Consecutive Odds.cpp | MayThirtyOne/Practice-Problems | fe945742d6bc785fffcb29ce011251406ba7c695 | [
"MIT"
] | 1 | 2020-09-21T15:16:24.000Z | 2020-09-21T15:16:24.000Z | class Solution {
public:
bool threeConsecutiveOdds(vector<int>& arr) {
if(arr.size()<3) return false;
for(int i=0;i<arr.size()-2;i++){
if(arr[i]%2==1 && arr[i+1]%2==1 && arr[i+2]%2==1){
return true;
}
}
return false;
}
};
| 22.214286 | 62 | 0.440514 | MayThirtyOne |
878e3776a8d736c0b3088de2e71b503a645511ae | 1,652 | cpp | C++ | examples/matrices/Walsh.cpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 473 | 2015-01-11T03:22:11.000Z | 2022-03-31T05:28:39.000Z | examples/matrices/Walsh.cpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 205 | 2015-01-10T20:33:45.000Z | 2021-07-25T14:53:25.000Z | examples/matrices/Walsh.cpp | pjt1988/Elemental | 71d3e2b98829594e9f52980a8b1ef7c1e99c724b | [
"Apache-2.0"
] | 109 | 2015-02-16T14:06:42.000Z | 2022-03-23T21:34:26.000Z | /*
Copyright (c) 2009-2016, Jack Poulson
All rights reserved.
This file is part of Elemental and is under the BSD 2-Clause License,
which can be found in the LICENSE file in the root directory, or at
http://opensource.org/licenses/BSD-2-Clause
*/
#include <El.hpp>
int
main( int argc, char* argv[] )
{
... | 28 | 77 | 0.502421 | pjt1988 |
8791dc97f1c0913b534a4bd6811d48e963ade9d0 | 264 | cc | C++ | construct-the-rectangle.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | construct-the-rectangle.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | construct-the-rectangle.cc | ArCan314/leetcode | 8e22790dc2f34f5cf2892741ff4e5d492bb6d0dd | [
"MIT"
] | null | null | null | #include <vector>
#include <cmath>
class Solution
{
public:
std::vector<int> constructRectangle(int area)
{
for (int i = std::sqrt(area); i >= 1; i--)
if (area % i == 0)
return {area / i, i};
return {};
}
}; | 18.857143 | 50 | 0.484848 | ArCan314 |
87999efbe681268cd7a72ca49fd41f6ead2cd9e6 | 2,542 | cxx | C++ | Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/gdcmUUIDGenerator.cxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 3 | 2018-10-01T20:46:17.000Z | 2019-12-17T19:39:50.000Z | Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/gdcmUUIDGenerator.cxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | null | null | null | Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/gdcmUUIDGenerator.cxx | nalinimsingh/ITK_4D | 95a2eacaeaffe572889832ef0894239f89e3f303 | [
"Apache-2.0"
] | 4 | 2018-05-17T16:34:54.000Z | 2020-09-24T02:12:40.000Z | /*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed W... | 25.42 | 84 | 0.643588 | nalinimsingh |
879b1cf03bb04a7572a7dc1a8fdf103e28db55be | 16,426 | cpp | C++ | src/xmol/io/pdb/BundledPDBRecordTypesBaseInit.cpp | sizmailov/pyxmolpp2 | 9395ba1b1ddc957e0b33dc6decccdb711e720764 | [
"MIT"
] | 4 | 2020-06-24T11:07:57.000Z | 2022-01-15T23:00:30.000Z | src/xmol/io/pdb/BundledPDBRecordTypesBaseInit.cpp | sizmailov/pyxmolpp2 | 9395ba1b1ddc957e0b33dc6decccdb711e720764 | [
"MIT"
] | 84 | 2018-04-22T12:29:31.000Z | 2020-06-17T15:03:37.000Z | src/xmol/io/pdb/BundledPDBRecordTypesBaseInit.cpp | sizmailov/pyxmolpp2 | 9395ba1b1ddc957e0b33dc6decccdb711e720764 | [
"MIT"
] | 6 | 2018-06-04T09:16:26.000Z | 2022-03-12T11:05:54.000Z | #include "xmol/io/pdb/PdbRecord.h"
using namespace xmol::io::pdb;
std::map<RecordName,PdbRecordType> detail::get_bundled_records() {
auto as_field = [](const std::string& fieldName, std::vector<int> colons){
auto shortend = fieldName.substr(0,std::min(size_t(FieldName::max_length),fieldName.size()));
retur... | 35.708696 | 115 | 0.479362 | sizmailov |
879c83b5fd1a9a0bb93c7d4ff07905c6adc1dcd2 | 672 | cpp | C++ | marsyas-vamp/marsyas/src/qt5apps/common/realvec_table_widget.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/qt5apps/common/realvec_table_widget.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/qt5apps/common/realvec_table_widget.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | #include "realvec_table_widget.h"
#include <QtAlgorithms>
#include <QKeyEvent>
#include <QApplication>
#include <QClipboard>
namespace MarsyasQt {
void RealvecTableWidget::keyPressEvent(QKeyEvent *event)
{
if (event == QKeySequence::Copy)
{
QModelIndexList selection = selectedIndexes();
qSort... | 21.677419 | 72 | 0.635417 | jaouahbi |
879f573b97bc57846b43a90f84ea7574c8208275 | 561 | cpp | C++ | codeforces/1385C.cpp | mhilmyh/algo-data-struct | 6a9b1e5220e3c4e4a41200a09cb27f3f55560693 | [
"MIT"
] | null | null | null | codeforces/1385C.cpp | mhilmyh/algo-data-struct | 6a9b1e5220e3c4e4a41200a09cb27f3f55560693 | [
"MIT"
] | null | null | null | codeforces/1385C.cpp | mhilmyh/algo-data-struct | 6a9b1e5220e3c4e4a41200a09cb27f3f55560693 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int solve(int n, vector<int> &a)
{
if (n == 1)
return 0;
bool asc = true;
int i;
for (i = n - 1; i > 0; i--)
{
if (asc && a[i] > a[i - 1])
asc = false;
else if (!asc && a[i] < a[i - 1])
break;
}
r... | 15.583333 | 41 | 0.367201 | mhilmyh |
87a4484cf38bc3b272462cb5a146491658546250 | 1,971 | hpp | C++ | board.hpp | Zilleplus/Cpp8Queen | 52adc77f6e657881eb1b9360c235b677b263dcfa | [
"MIT"
] | null | null | null | board.hpp | Zilleplus/Cpp8Queen | 52adc77f6e657881eb1b9360c235b677b263dcfa | [
"MIT"
] | null | null | null | board.hpp | Zilleplus/Cpp8Queen | 52adc77f6e657881eb1b9360c235b677b263dcfa | [
"MIT"
] | null | null | null | struct Queen {
int x;
int y;
};
bool hasHorizonalClash(const Queen& q1, const Queen& q2) {
return q1.y == q2.y;
}
bool hasVerticalClash(const Queen& q1, const Queen& q2) { return q1.x == q2.x; }
bool hasDiagonalClash(const Queen& q1, const Queen& q2) {
return (q1.x - q1.y) == (q1.x - q1.y) || (q1.x +... | 23.746988 | 80 | 0.559107 | Zilleplus |
87a449e86ce31e79d5d47b50629b9ec2f6f62f4d | 4,934 | cpp | C++ | src/main.cpp | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | 1 | 2020-11-26T23:37:19.000Z | 2020-11-26T23:37:19.000Z | src/main.cpp | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | src/main.cpp | jonco3/dynamic | 76d10b012a7860595c7d9abbdf542c7d8f2a4d53 | [
"MIT"
] | null | null | null | #include "common.h"
#include "block.h"
#include "builtin.h"
#include "compiler.h"
#include "dict.h"
#include "interp.h"
#include "input.h"
#include "list.h"
#include "module.h"
#include "string.h"
#include "sysexits.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#define Function Read... | 25.045685 | 78 | 0.556749 | jonco3 |
87a4b78e9d2044e990eec03989d946dad3d6c1eb | 312 | cpp | C++ | homework6/merge_sort/readFile.cpp | mxprshn/homework | 809635858a5bf01af7f63f398fe47fba7c688ecc | [
"Apache-2.0"
] | null | null | null | homework6/merge_sort/readFile.cpp | mxprshn/homework | 809635858a5bf01af7f63f398fe47fba7c688ecc | [
"Apache-2.0"
] | null | null | null | homework6/merge_sort/readFile.cpp | mxprshn/homework | 809635858a5bf01af7f63f398fe47fba7c688ecc | [
"Apache-2.0"
] | 2 | 2018-11-06T19:31:20.000Z | 2018-12-17T19:39:07.000Z | #include "list.h"
#include <fstream>
#include <string>
bool readFile(std::ifstream &file, List *list)
{
if (!file.is_open())
{
return false;
}
while (!file.eof())
{
std::string name;
std::string number;
getline(file, name);
getline(file, number);
add(list, name, number);
}
return true;
} | 13 | 46 | 0.63141 | mxprshn |
87a5035a692af7645d12a631dbfcea1fd8c2ebbb | 1,086 | hpp | C++ | .sandbox/hybrid-daes/dae-drumboiler/src/discrete_system.hpp | vacary/siconos-tutorials | 93c0158321077a313692ed52fed69ff3c256ae32 | [
"Apache-2.0"
] | 6 | 2017-01-12T23:09:28.000Z | 2021-03-20T17:03:58.000Z | .sandbox/hybrid-daes/dae-drumboiler/src/discrete_system.hpp | vacary/siconos-tutorials | 93c0158321077a313692ed52fed69ff3c256ae32 | [
"Apache-2.0"
] | 3 | 2019-01-14T13:44:51.000Z | 2021-05-17T13:57:27.000Z | .sandbox/hybrid-daes/dae-drumboiler/src/discrete_system.hpp | vacary/siconos-tutorials | 93c0158321077a313692ed52fed69ff3c256ae32 | [
"Apache-2.0"
] | 2 | 2019-10-22T13:30:39.000Z | 2020-10-06T10:19:57.000Z | #ifndef DISCRETE_SYSTEM_HPP
#define DISCRETE_SYSTEM_HPP
#include "model_common.hpp"
#include "model.hpp"
/* Information needed for the numerical simulation*/
typedef struct
{
int nb_eqs; // square system assumed
int nb_diff_eqs;
int nb_compl_eqs;
// TODO extended to double** (NumericsMatrix**) i... | 31.028571 | 183 | 0.732965 | vacary |
87a6137215523a94877098b08bedb8addcdd866b | 1,086 | hpp | C++ | bg/curves/euriborcurve.hpp | bondgeek/pybg | 046a25074b78409c6d29302177aeac581ade90d1 | [
"Unlicense",
"MIT"
] | 1 | 2017-03-14T05:39:15.000Z | 2017-03-14T05:39:15.000Z | bg/curves/euriborcurve.hpp | bondgeek/pybg | 046a25074b78409c6d29302177aeac581ade90d1 | [
"Unlicense",
"MIT"
] | null | null | null | bg/curves/euriborcurve.hpp | bondgeek/pybg | 046a25074b78409c6d29302177aeac581ade90d1 | [
"Unlicense",
"MIT"
] | null | null | null | /*
* euriborcurve.hpp
* pybg
*
* Created by Bart Mosley on 7/2/12.
* Copyright 2012 BG Research LLC. All rights reserved.
*
*/
#ifndef EURIBORCURVE_HPP
#define EURIBORCURVE_HPP
#include <bg/curvebase.hpp>
#include <bg/date_utilities.hpp>
using namespace QuantLib;
namespace bondgeek {
class EURiborCur... | 24.133333 | 79 | 0.54512 | bondgeek |
87a79139386d672e8b4c8a45dbdb6efffa951bca | 3,398 | cpp | C++ | RUNETag/hirestimer.cpp | GeReV/RUNEtag | e8319a132e325d73cdd7759a0d8a5f45f26dd129 | [
"MIT"
] | 31 | 2017-12-29T16:39:07.000Z | 2022-03-25T03:26:29.000Z | RUNETag/hirestimer.cpp | GeReV/RUNEtag | e8319a132e325d73cdd7759a0d8a5f45f26dd129 | [
"MIT"
] | 7 | 2018-06-29T07:30:14.000Z | 2021-02-16T23:19:20.000Z | RUNETag/hirestimer.cpp | GeReV/RUNEtag | e8319a132e325d73cdd7759a0d8a5f45f26dd129 | [
"MIT"
] | 13 | 2018-09-27T13:19:12.000Z | 2022-03-02T08:48:42.000Z | /**
* RUNETag fiducial markers library
*
* -----------------------------------------------------------------------------
* The MIT License (MIT)
*
* Copyright (c) 2015 Filippo Bergamasco
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated docume... | 24.985294 | 147 | 0.685992 | GeReV |
87a95e3db8fcbb1816a328097c375065212d8b99 | 24,965 | cpp | C++ | api/src/SAM_Windpower.cpp | nickdiorio/SAM | 4288d4261f4f88f44106867b561b81c2ba480c85 | [
"BSD-3-Clause"
] | null | null | null | api/src/SAM_Windpower.cpp | nickdiorio/SAM | 4288d4261f4f88f44106867b561b81c2ba480c85 | [
"BSD-3-Clause"
] | null | null | null | api/src/SAM_Windpower.cpp | nickdiorio/SAM | 4288d4261f4f88f44106867b561b81c2ba480c85 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <utility>
#include <vector>
#include <memory>
#include <iostream>
#include <ssc/sscapi.h>
#include "SAM_api.h"
#include "ErrorHandler.h"
#include "SAM_Windpower.h"
SAM_EXPORT SAM_Windpower SAM_Windpower_construct(const char* def, SAM_error* err){
SAM_Windpower result = nullptr;
translate... | 28.995354 | 141 | 0.779852 | nickdiorio |
87ab8ec991ad3bfaf9c59a402180820e98d05ecc | 5,853 | hpp | C++ | Include/FishEngine/Serialization/CloneArchive.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-12-20T02:38:44.000Z | 2018-12-20T02:38:44.000Z | Include/FishEngine/Serialization/CloneArchive.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | null | null | null | Include/FishEngine/Serialization/CloneArchive.hpp | yushroom/FishEngine_-Experiment | 81e4c06f20f6b94dc561b358f8a11a092678aeeb | [
"MIT"
] | 1 | 2018-10-25T19:40:22.000Z | 2018-10-25T19:40:22.000Z | #pragma once
#include <FishEngine/Serialization/Archive.hpp>
#include <set>
#include <vector>
#include <FishEngine/Prefab.hpp>
namespace FishEngine
{
class CollectObjectsArchive : public OutputArchive
{
public:
void Collect(Object* obj)
{
if (obj->Is<Prefab>())
return;
this->SerializeObject(obj);
}... | 34.429412 | 129 | 0.718606 | yushroom |
87b089091f45aaf7a85fa23dfb980553b5aeff5b | 1,138 | cpp | C++ | UVA/10189.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | UVA/10189.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | UVA/10189.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<stdio.h>
int x, y;
int i, j;
char t;
char arr[100][100];
int prob[100][100];
void mine(){
if(i-1>=0 && j-1>=0) prob[i-1][j-1]++;
if(i-1>=0) prob[i-1][j]++;
if(i-1>=0 && j+1<y) prob[i-1][j+1]++;
///
if(j-1>=0) prob[i][j-1]++;
if(j+1<y) prob[i][j+1]++;
///
if(i+1<x && j-1>=0) pro... | 21.074074 | 50 | 0.339192 | DT3264 |
87b235e46241c19f5544be53b2589737713ffef8 | 1,403 | cpp | C++ | friend.cpp | OmairK/OOP_LAB | 2cf73a7764529a68e210f2f8c9b65c441577a670 | [
"MIT"
] | null | null | null | friend.cpp | OmairK/OOP_LAB | 2cf73a7764529a68e210f2f8c9b65c441577a670 | [
"MIT"
] | null | null | null | friend.cpp | OmairK/OOP_LAB | 2cf73a7764529a68e210f2f8c9b65c441577a670 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
void readName(string filename){
ifstream file;
file.open(filename, ios::in);
string line;
if (file.is_open())
{
while (getline(file, line))
{
cout << line << endl;
}
}
file.close();
}
clas... | 21.257576 | 118 | 0.568068 | OmairK |
87b455f92a2a238c2f2a245f15e6126c6553e68b | 18,473 | cpp | C++ | LibCarla/source/carla/trafficmanager/CollisionStage.cpp | pirate-lofy/carla | b46117685e2e037dd6c0e6246998e5988bdc2bfb | [
"MIT"
] | 1 | 2019-12-17T12:28:57.000Z | 2019-12-17T12:28:57.000Z | LibCarla/source/carla/trafficmanager/CollisionStage.cpp | Tarfand123/carla | b46117685e2e037dd6c0e6246998e5988bdc2bfb | [
"MIT"
] | null | null | null | LibCarla/source/carla/trafficmanager/CollisionStage.cpp | Tarfand123/carla | b46117685e2e037dd6c0e6246998e5988bdc2bfb | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma
// de Barcelona (UAB).
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#include "CollisionStage.h"
namespace carla {
namespace traffic_manager {
namespace Collision... | 41.419283 | 115 | 0.69469 | pirate-lofy |
87b4ac8c46deb92a0c290e44da493eee0e0aee0d | 2,633 | hpp | C++ | src/base/LifeCycleComponent.hpp | inexorgame/entity-system | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 19 | 2018-10-11T09:19:48.000Z | 2020-04-19T16:36:58.000Z | src/base/LifeCycleComponent.hpp | inexorgame-obsolete/entity-system-inactive | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 132 | 2018-07-28T12:30:54.000Z | 2020-04-25T23:05:33.000Z | src/base/LifeCycleComponent.hpp | inexorgame-obsolete/entity-system-inactive | 230a6f116fb02caeace79bc9b32f17fe08687c36 | [
"MIT"
] | 3 | 2019-03-02T16:19:23.000Z | 2020-02-18T05:15:29.000Z | #pragma once
#include <cstdint>
#include <memory>
#include <tuple>
#include <vector>
#include <boost/range/adaptor/reversed.hpp>
#include <spdlog/spdlog.h>
namespace inexor {
/**
* Derived classes profits from automatic initialization and destruction
* of the sub components.
*/
class LifeCycleComponent
{
pr... | 28.010638 | 117 | 0.651348 | inexorgame |
87b4fff92f1e8214a275f1a0536a306b57c090b5 | 796 | cpp | C++ | Array/Move_Even_Odd_Numbers.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Array/Move_Even_Odd_Numbers.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Array/Move_Even_Odd_Numbers.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //given an array.Arrange the elements st even nos. are at the begining and
//the odd nos. are the end
#include<iostream>
#include<vector>
using namespace std;
//moves the even and odd nums
void moveEvenOddNums(vector<int> &arr){
int i = 0; //this is for keeping track of even numbers
int j = arr.size()-1; //for kee... | 20.410256 | 74 | 0.626884 | susantabiswas |
87b695cf0ca441f75eb5d6ab731d9e0eed4e9e06 | 3,886 | cc | C++ | src/audio/synthesizer.cc | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | 2 | 2022-01-05T08:58:11.000Z | 2022-01-06T05:33:14.000Z | src/audio/synthesizer.cc | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | null | null | null | src/audio/synthesizer.cc | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | null | null | null | #include "synthesizer.hh"
#include <cmath>
#include <iostream>
constexpr unsigned int NUM_KEYS = 88;
constexpr unsigned int KEY_OFFSET = 21;
constexpr unsigned int KEY_DOWN = 144;
constexpr unsigned int KEY_UP = 128;
constexpr unsigned int SUSTAIN = 176;
using namespace std;
Synthesizer::Synthesizer( const string& ... | 33.791304 | 150 | 0.617859 | stanford-stagecast |
87b870a79ffa203ac6f3a4eeceb49a047389ebab | 56,469 | cc | C++ | src/client/client.cc | Caesar-github/rkmedia | 953f22f7a5965a04ca2688d251ccce9683ce993c | [
"BSD-3-Clause"
] | 2 | 2021-07-01T00:51:48.000Z | 2022-03-01T23:46:02.000Z | src/client/client.cc | Caesar-github/rkmedia | 953f22f7a5965a04ca2688d251ccce9683ce993c | [
"BSD-3-Clause"
] | 2 | 2021-02-03T12:47:35.000Z | 2021-12-12T13:30:00.000Z | src/client/client.cc | Caesar-github/rkmedia | 953f22f7a5965a04ca2688d251ccce9683ce993c | [
"BSD-3-Clause"
] | 2 | 2020-11-02T09:13:23.000Z | 2021-07-07T11:29:24.000Z | #include <assert.h>
#include <drm_fourcc.h>
#include <fcntl.h>
#include <malloc.h>
#include <pthread.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/poll.h>
#include <sys/shm.h>
#include <sys/socket.h>
#include <... | 25.030585 | 81 | 0.630452 | Caesar-github |
87b8a0aa6812d30e13c12400662c46eea59acae6 | 3,018 | cpp | C++ | Frameworks/Starboard/dlfcn.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | Frameworks/Starboard/dlfcn.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | Frameworks/Starboard/dlfcn.cpp | Art52123103/WinObjC | 5672d1c99851b6125514381c39f4243692514b0b | [
"MIT"
] | null | null | null | //******************************************************************************
//
// Copyright (c) 2016 Microsoft Corporation. All rights reserved.
//
// This code is licensed under the MIT License (MIT).
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LI... | 34.295455 | 83 | 0.66004 | Art52123103 |
87bddd84c173926dd88f416cdc59985934e6e6da | 906 | cpp | C++ | test/logger_test.cpp | OpenWinch/OpenWinch-C | efbce8f0c892927560f6b719d347578c85babade | [
"Apache-2.0"
] | 1 | 2020-11-23T23:52:19.000Z | 2020-11-23T23:52:19.000Z | test/logger_test.cpp | OpenWinch/OpenWinch-C | efbce8f0c892927560f6b719d347578c85babade | [
"Apache-2.0"
] | 3 | 2020-11-24T22:00:01.000Z | 2021-02-23T22:32:31.000Z | test/logger_test.cpp | OpenWinch/OpenWinch-C | efbce8f0c892927560f6b719d347578c85babade | [
"Apache-2.0"
] | null | null | null | /**
* @file logger_test.cpp
* @author Mickael GAILLARD (mick.gaillard@gmail.com)
* @brief OpenWinch Project
*
* @copyright Copyright © 2020-2021
*/
#include "logger.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
class LoggerTest : public ::testing::Test {
protected:
Logger *logger = nullptr;
Logg... | 18.489796 | 53 | 0.664459 | OpenWinch |
87c3980da828df91b88b169e33fcd02054647039 | 1,061 | cpp | C++ | Stack/parenthesis_matching.cpp | ahanavish/DSA-using-CPP | cc96ae5cabef1dfa4ac183c1ea1510f74e3f42d9 | [
"MIT"
] | null | null | null | Stack/parenthesis_matching.cpp | ahanavish/DSA-using-CPP | cc96ae5cabef1dfa4ac183c1ea1510f74e3f42d9 | [
"MIT"
] | null | null | null | Stack/parenthesis_matching.cpp | ahanavish/DSA-using-CPP | cc96ae5cabef1dfa4ac183c1ea1510f74e3f42d9 | [
"MIT"
] | 1 | 2021-11-29T06:12:05.000Z | 2021-11-29T06:12:05.000Z | #include <iostream>
#include <string.h>
using namespace std;
class stack
{
int size;
int top;
char *sta;
char *str;
public:
stack(char *s)
{
str = s;
size = strlen(s);
top = -1;
sta = new char[size];
}
~stack()
{
delete []sta;
st... | 15.157143 | 34 | 0.356268 | ahanavish |
d7acb86feb64b28b4c6bd8012f4577137f0defb3 | 1,450 | hpp | C++ | test/timer/classes.hpp | smart-cloud/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 20 | 2016-01-07T07:37:52.000Z | 2019-06-02T12:04:25.000Z | test/timer/classes.hpp | smart-cloud/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 30 | 2017-03-10T14:47:46.000Z | 2019-05-09T19:23:25.000Z | test/timer/classes.hpp | jinncrafters/actor-zeta | 9597d6c21843a5e24a7998d09ff041d2f948cc63 | [
"BSD-3-Clause"
] | 6 | 2017-03-10T14:06:01.000Z | 2018-08-13T18:19:37.000Z | #pragma once
#include <cassert>
#include <chrono>
#include <memory>
#include <vector>
#include <actor-zeta.hpp>
#include <actor-zeta/detail/memory_resource.hpp>
#include "tooltestsuites/scheduler_test.hpp"
#include "tooltestsuites/clock_test.hpp"
static std::atomic<uint64_t> alarm_counter{0};
using actor_zeta::det... | 29 | 105 | 0.696552 | smart-cloud |
d7ad55b4b9ea461df80b04f74b7d2b28f7565485 | 2,185 | cpp | C++ | bcos-gateway/bcos-gateway/protocol/GatewayNodeStatus.cpp | contropist/FISCO-BCOS | 1605c371448b410674559bb1c9e98bab722f036b | [
"Apache-2.0"
] | null | null | null | bcos-gateway/bcos-gateway/protocol/GatewayNodeStatus.cpp | contropist/FISCO-BCOS | 1605c371448b410674559bb1c9e98bab722f036b | [
"Apache-2.0"
] | null | null | null | bcos-gateway/bcos-gateway/protocol/GatewayNodeStatus.cpp | contropist/FISCO-BCOS | 1605c371448b410674559bb1c9e98bab722f036b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2021 FISCO BCOS.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 35.819672 | 85 | 0.722197 | contropist |
d7afdb497afd4db9747e33ac791f78e58c0dcd1b | 77,409 | cpp | C++ | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32469I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/CarouselMenu/st_menu_button_pressed.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32469I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/CarouselMenu/st_menu_button_pressed.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | test_apps/STM32Cube_FW_F4_V1.24.0/Projects/STM32469I_EVAL/Demonstrations/TouchGFX/Gui/generated/images/src/CarouselMenu/st_menu_button_pressed.cpp | hwiwonl/ACES | 9b9a6766a177c531384b863854459a7e016dbdcc | [
"NCSA"
] | null | null | null | // Generated by imageconverter. Please, do not edit!
#include <touchgfx/hal/Config.hpp>
LOCATION_EXTFLASH_PRAGMA
KEEP extern const unsigned char _st_menu_button_pressed[] LOCATION_EXTFLASH_ATTRIBUTE = { // 62x62 ARGB8888 pixels.
0x18,0x0c,0x00,0x00,0x18,0x0c,0x00,0x00,0x18,0x10,0x00,0x00,0x18,0x0c,0x00,0x00,0x18,0x10... | 254.634868 | 320 | 0.796949 | hwiwonl |
d7b22815eee156cd9b13741615d7f4d43ffe1b30 | 7,417 | cpp | C++ | ds/adsi/oledsvw/qstatus.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/adsi/oledsvw/qstatus.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/adsi/oledsvw/qstatus.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // QueryStatus.cpp : implementation file
//
#include "stdafx.h"
#include "viewex.h"
#include "qstatus.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CQueryStatus dialog
... | 23.178125 | 78 | 0.443171 | npocmaka |
d7b77646f63e6a8074b6bf09160e7b8297afa4d4 | 1,376 | cpp | C++ | src/semana-10/Range-Minimum-Query.cpp | RicardoLopes1/desafios-prog-2021-1 | 1e698f0696b5636fa5608d669dd58d170f8049ea | [
"MIT"
] | null | null | null | src/semana-10/Range-Minimum-Query.cpp | RicardoLopes1/desafios-prog-2021-1 | 1e698f0696b5636fa5608d669dd58d170f8049ea | [
"MIT"
] | null | null | null | src/semana-10/Range-Minimum-Query.cpp | RicardoLopes1/desafios-prog-2021-1 | 1e698f0696b5636fa5608d669dd58d170f8049ea | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// https://practice.geeksforgeeks.org/problems/range-minimum-query/1/
// Range Minimum Query
// Not completed
class SegmentTree{
private:
int n, t[4*10000];
map <string, int> rmq;
public:
SegmentTree( int * arr, int sz){
n = sz;
build(arr, 1, 0, n-1);
... | 23.724138 | 69 | 0.494913 | RicardoLopes1 |
d7b806c937b4cbda5936c0e2d330a4a136c7d835 | 1,647 | cpp | C++ | Assignments/homework_03/main.cpp | Landon-Brown1/1063-DS-Brown | 64220948fbc69f7bfbd1ab234fe22da5de97fa6e | [
"MIT"
] | 1 | 2019-12-23T16:26:20.000Z | 2019-12-23T16:26:20.000Z | Assignments/homework_03/main.cpp | Landon-Brown1/1063-DS-Brown | 64220948fbc69f7bfbd1ab234fe22da5de97fa6e | [
"MIT"
] | null | null | null | Assignments/homework_03/main.cpp | Landon-Brown1/1063-DS-Brown | 64220948fbc69f7bfbd1ab234fe22da5de97fa6e | [
"MIT"
] | null | null | null | /*AUTHOR: Landon M. Brown
*ASSIGNMENT TITLE: homework_03
*ASSIGNMENT DESCRIPTION: Edit the ListStack and main so that the
* overloaded constructor is used instead of the default one.
*DUE DATE: 10/15/2019
*DATE CREATED: 10/12/2019
*DATE LAST MODIFIED: 10/12/2019
*/
#include <iostream>
#include <fstream>
#include ... | 31.673077 | 97 | 0.549484 | Landon-Brown1 |
d7b9aadbf4f61c98406583b50fd3f0881c6aeaf5 | 37,820 | cpp | C++ | framegraph/Vulkan/CommandBuffer/VCmdBatch.cpp | zann1x/FrameGraph | ea06e28147a51f6d7cab219b4d8f30428a539faa | [
"BSD-2-Clause"
] | null | null | null | framegraph/Vulkan/CommandBuffer/VCmdBatch.cpp | zann1x/FrameGraph | ea06e28147a51f6d7cab219b4d8f30428a539faa | [
"BSD-2-Clause"
] | null | null | null | framegraph/Vulkan/CommandBuffer/VCmdBatch.cpp | zann1x/FrameGraph | ea06e28147a51f6d7cab219b4d8f30428a539faa | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2018-2019, Zhirnov Andrey. For more information see 'LICENSE'
#include "VCmdBatch.h"
#include "VFrameGraph.h"
namespace FG
{
/*
=================================================
constructor
=================================================
*/
VCmdBatch::VCmdBatch (VFrameGraph &fg, uint indexInPo... | 30.722989 | 158 | 0.6266 | zann1x |
d7b9c3af34674fcfe0367e66b87fbf1bd1209ed3 | 939 | cpp | C++ | leetcode-cn/cpp/Decode String.cpp | MU001999/codeex | 23e300f9121a8d6bf4f4c9ec103510193808e9ba | [
"MIT"
] | 2 | 2019-01-27T14:16:09.000Z | 2019-05-25T10:05:24.000Z | leetcode-cn/cpp/Decode String.cpp | MU001999/codeex | 23e300f9121a8d6bf4f4c9ec103510193808e9ba | [
"MIT"
] | null | null | null | leetcode-cn/cpp/Decode String.cpp | MU001999/codeex | 23e300f9121a8d6bf4f4c9ec103510193808e9ba | [
"MIT"
] | 1 | 2020-11-05T05:17:28.000Z | 2020-11-05T05:17:28.000Z | /*
Q-URL: https://leetcode-cn.com/problems/decode-string/
# BEATS 100%
*/
class Solution {
private:
string helper(string &s, string::iterator &it)
{
if (it == s.end()) return "";
string pre1, pre2, res, ens;
while (isalpha(*it)) pre1 += *it++;
if (it =... | 19.5625 | 54 | 0.407881 | MU001999 |
d7ba6a5cc53bc9abc7ffa4a01147e332e4679947 | 973 | cpp | C++ | Volume102/10281 - Average Speed/10281.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | 1 | 2017-01-25T18:07:49.000Z | 2017-01-25T18:07:49.000Z | Volume102/10281 - Average Speed/10281.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | Volume102/10281 - Average Speed/10281.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | // Author: Stancioiu Nicu Razvan
// Problem: http://uva.onlinejudge.org/external/102/10281.html
#include <string>
#include <iostream>
#include <sstream>
#include <cstdio>
using namespace std;
int main()
{
int speed,currentSpeed=0;
int hour,min,sec;
int currentHour=0;
int prevHour=0;
string s;
double km=0;
whil... | 16.775862 | 62 | 0.579651 | rstancioiu |
d7bad70d390416bbdc5854f14fe5275cebb5a585 | 2,089 | cpp | C++ | Raven.CppClient.Tests/PutDocumentCommandTest.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-04-24T02:34:53.000Z | 2019-08-01T08:22:26.000Z | Raven.CppClient.Tests/PutDocumentCommandTest.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 2 | 2019-03-21T09:00:02.000Z | 2021-02-28T23:49:26.000Z | Raven.CppClient.Tests/PutDocumentCommandTest.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-03-04T11:58:54.000Z | 2021-03-01T00:25:49.000Z | #include "pch.h"
#include "RavenTestDriver.h"
#include "raven_test_definitions.h"
#include "DocumentSession.h"
#include "AdvancedSessionOperations.h"
#include "RequestExecutor.h"
#include "User.h"
#include "PutDocumentCommand.h"
namespace ravendb::client::tests::client::documents::commands
{
class PutDocumentCommandT... | 27.853333 | 97 | 0.721398 | mlawsonca |
d7bd45c05e0eec748467f5543c97fbf349a019c8 | 3,375 | hpp | C++ | examples/CBuilder/Compound/Locking/Server/comserv.hpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 121 | 2020-09-22T10:46:20.000Z | 2021-11-17T12:33:35.000Z | examples/CBuilder/Compound/Locking/Server/comserv.hpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 8 | 2020-09-23T12:32:23.000Z | 2021-07-28T07:01:26.000Z | examples/CBuilder/Compound/Locking/Server/comserv.hpp | LenakeTech/BoldForDelphi | 3ef25517d5c92ebccc097c6bc2f2af62fc506c71 | [
"MIT"
] | 42 | 2020-09-22T14:37:20.000Z | 2021-10-04T10:24:12.000Z | // Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'ComServ.pas' rev: 5.00
#ifndef ComServHPP
#define ComServHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <ComObj.hpp> // Pascal unit
#... | 34.793814 | 98 | 0.740741 | LenakeTech |
d7c13f44bef3d292f68e382ce674ad2d932c8482 | 3,531 | cpp | C++ | samples/lab3/SphereRolling/sphere.cpp | wiali/opengl-labs | 8160bd495f38eacb46cd37847a8881a6dc7a8fe8 | [
"MIT"
] | 1 | 2021-05-05T15:24:49.000Z | 2021-05-05T15:24:49.000Z | samples/lab3/SphereRolling/sphere.cpp | wiali/opengl-labs | 8160bd495f38eacb46cd37847a8881a6dc7a8fe8 | [
"MIT"
] | null | null | null | samples/lab3/SphereRolling/sphere.cpp | wiali/opengl-labs | 8160bd495f38eacb46cd37847a8881a6dc7a8fe8 | [
"MIT"
] | null | null | null | /*
* Implementation of sphere
* Author: Weichen Xu
* Date: 11/10/2015
*/
#include "sphere.h"
WCX_sphere::WCX_sphere(){
this->radius = 1.0;
this->rollingSpeed = 0.02;
this->accumuRollingM = mat4();
}
void WCX_sphere::loadSphereFromFile(){
int Index = 0, triangleNum = 0;
std::string sphereFileName;
std::ifstream... | 31.247788 | 115 | 0.676012 | wiali |
d7c423c2acd7b2ced416356011573640a72a63a2 | 1,028 | cpp | C++ | Test/Header Generator/Sheet.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | Test/Header Generator/Sheet.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | Test/Header Generator/Sheet.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | //---------------------------
// Sheet.cpp
// (c) Reliable Software 2000
//---------------------------
#include "HeaderDetails.h"
#include "GeneralPage.h"
#include "AddressPage.h"
#include "AddendumPage.h"
#include "DestinationPage.h"
#include "resource.h"
#include <Ctrl/PropertySheet.h>
bool CollectData (HINSTAN... | 34.266667 | 76 | 0.715953 | BartoszMilewski |
d7c52c07b55bbcdf6c475fff9bad6c8f03d98826 | 477 | cpp | C++ | PAT_B/PAT_B1038.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | 3 | 2019-07-08T05:20:28.000Z | 2021-09-22T10:53:26.000Z | PAT_B/PAT_B1038.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | PAT_B/PAT_B1038.cpp | EnhydraGod/PATCode | ff38ea33ba319af78b3aeba8aa6c385cc5e8329f | [
"BSD-2-Clause"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n, tempScore;
int scores[110];
int main()
{
fill(scores, scores+110, 0);
scanf("%d", &n);
for (int i = 0; i < n; i++)
{
scanf("%d", &tempScore);
scores[tempScore]++;
}
int m;
scanf("%d", &m);
for (int i = 0; i < m; i++)
... | 20.73913 | 51 | 0.480084 | EnhydraGod |
d7ca74d143c157dbac612bcd2295f0ece5f07117 | 411 | cpp | C++ | c++/maratona/cultivando string/cultivando strings.cpp | felipeMachado92/programas-em-C- | 55d675110e495c7bcceb2b1bf2d32d582a445b40 | [
"MIT"
] | null | null | null | c++/maratona/cultivando string/cultivando strings.cpp | felipeMachado92/programas-em-C- | 55d675110e495c7bcceb2b1bf2d32d582a445b40 | [
"MIT"
] | null | null | null | c++/maratona/cultivando string/cultivando strings.cpp | felipeMachado92/programas-em-C- | 55d675110e495c7bcceb2b1bf2d32d582a445b40 | [
"MIT"
] | null | null | null | #include<iostream>
#include<string.h>
using namespace std;
string menorString(string vt[], int n){
string menor;
for(int i = 0; i < n; i++){
if((i == 0) || (menor.length()>vt[i].length())){
menor = vt[i];
}
}
return menor;
}
int main(){
int n=-1;
int contadorSeq=0;
while(n!=0){
cin>>n;
string vet... | 13.258065 | 50 | 0.557178 | felipeMachado92 |
d7cb9259cca5dfbb1b966b73343dc2ef145fb884 | 4,873 | cpp | C++ | Pawns.cpp | White-Hare/SuperChess | 70ee3e7129df13f002330e31e5112dc229a3aed5 | [
"MIT"
] | 1 | 2019-12-03T17:58:15.000Z | 2019-12-03T17:58:15.000Z | Pawns.cpp | White-Hare/SuperChess | 70ee3e7129df13f002330e31e5112dc229a3aed5 | [
"MIT"
] | null | null | null | Pawns.cpp | White-Hare/SuperChess | 70ee3e7129df13f002330e31e5112dc229a3aed5 | [
"MIT"
] | null | null | null | #include "Pawns.h"
#include <iostream>
#include <string>
Pawns::Pawns(const char* ID, SDL_Rect map_rect, unsigned rows, unsigned columns, Vec2D<int> offset) :Enemies(ID, map_rect)
{
selected = UNSELECTED;
this->rows = rows;
this->columns = columns;
this->offset = offset;
this->placed = false;
this->mo... | 23.315789 | 123 | 0.604145 | White-Hare |
d7cd71f8304620cc89a76c972ef28f4d1f999641 | 253,833 | cpp | C++ | Library/Il2cppBuildCache/iOS/il2cppOutput/Unity.Mathematics.cpp | Alex-Greenen/Spectral-Animation-Unity-Unity | fbd4983c2e260e21b353bf44c682e1413e480ce5 | [
"MIT"
] | null | null | null | Library/Il2cppBuildCache/iOS/il2cppOutput/Unity.Mathematics.cpp | Alex-Greenen/Spectral-Animation-Unity-Unity | fbd4983c2e260e21b353bf44c682e1413e480ce5 | [
"MIT"
] | null | null | null | Library/Il2cppBuildCache/iOS/il2cppOutput/Unity.Mathematics.cpp | Alex-Greenen/Spectral-Animation-Unity-Unity | fbd4983c2e260e21b353bf44c682e1413e480ce5 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// System.Object[]
struct ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE;
// System.IFormatProvider
struct IFormatProvider_tF2AECC4B14F41D36718920D67F930CED940412DF;
// Sys... | 50.51403 | 356 | 0.813819 | Alex-Greenen |
d7ce3d3980409beaceb63c7c627b415ef4291722 | 873 | cpp | C++ | DMOJ/VM7WC/VM7WC_16_C5P5_Gold_Jayden_Studies_Trees.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | null | null | null | DMOJ/VM7WC/VM7WC_16_C5P5_Gold_Jayden_Studies_Trees.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-10-14T18:26:56.000Z | 2021-10-14T18:26:56.000Z | DMOJ/VM7WC/VM7WC_16_C5P5_Gold_Jayden_Studies_Trees.cpp | Togohogo1/pg | ee3c36acde47769c66ee13a227762ee677591375 | [
"MIT"
] | 1 | 2021-08-06T03:39:55.000Z | 2021-08-06T03:39:55.000Z | #include <bits/stdc++.h>
using namespace std;
const int M = 1e4+2;
int N, deep, def, ans;
vector<int> adj[M];
void bfs(int u) {
ans = -1;
queue<int> q;
vector<int> vis(M, 0), dist(M, 0);
q.push(u);
vis[u] = true;
while (!q.empty()) {
int cur = q.front();
q.pop();
fo... | 16.788462 | 42 | 0.404353 | Togohogo1 |
d7d3baf1538d4aec4ab2a38d23f58c9d1a36c1fd | 2,936 | cpp | C++ | src/ast/ast_visitor.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 421 | 2019-08-15T15:40:04.000Z | 2022-03-29T06:59:06.000Z | src/ast/ast_visitor.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 55 | 2019-08-17T13:50:53.000Z | 2022-03-25T17:58:38.000Z | src/ast/ast_visitor.cpp | profelis/daScript | eea57f39dec4dd6168ee64c8ae5139cbcf2937bc | [
"BSD-3-Clause"
] | 58 | 2019-08-22T17:04:13.000Z | 2022-03-25T17:43:28.000Z | #include "daScript/misc/platform.h"
#include "daScript/ast/ast_visitor.h"
#include "daScript/ast/ast_expressions.h"
namespace das {
struct AstContextVisitor : Visitor {
AstContextVisitor ( Expression * expr )
: refExpr(expr) { }
AstContext astc, astr;
Expression * refExpr = nu... | 32.988764 | 81 | 0.530313 | profelis |
d7d7cb00808619b584c4f783452209d095657916 | 15,633 | cpp | C++ | src/test/test_parser_expr.cpp | paramah/hiphop-php-osx | 5ed8c24abe8ad9fd7bc6dd4c28b4ffff23e54362 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2015-11-05T21:45:07.000Z | 2015-11-05T21:45:07.000Z | src/test/test_parser_expr.cpp | brion/hiphop-php | df70a236e6418d533ac474be0c01f0ba87034d7f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | src/test/test_parser_expr.cpp | brion/hiphop-php | df70a236e6418d533ac474be0c01f0ba87034d7f | [
"PHP-3.01",
"Zend-2.0"
] | null | null | null | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
+---------... | 42.024194 | 80 | 0.398196 | paramah |
d7d8c3d0b913511300546c46a03953144eb644bc | 1,121 | hpp | C++ | engine/include/xe/gfx/framebuffer.hpp | trbflxr/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | engine/include/xe/gfx/framebuffer.hpp | trbflxr/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | engine/include/xe/gfx/framebuffer.hpp | trbflxr/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | //
// Created by FLXR on 8/8/2018.
//
#ifndef X808_FRAMEBUFFER_HPP
#define X808_FRAMEBUFFER_HPP
#include <unordered_map>
#include <xe/gfx/texture.hpp>
namespace xe {
namespace internal {
class PlatformFrameBuffer;
}
class XE_API FrameBuffer {
public:
explicit FrameBuffer(const string &name);
~... | 22.42 | 82 | 0.734166 | trbflxr |
d7d9a9b77bc897d28a739d934517a1a4ed23375b | 1,702 | hpp | C++ | client/Controller/Exceptions.hpp | iElden/RConsole | 77aaad891327ccc93c1b7c48f41be6e462983b17 | [
"MIT"
] | null | null | null | client/Controller/Exceptions.hpp | iElden/RConsole | 77aaad891327ccc93c1b7c48f41be6e462983b17 | [
"MIT"
] | null | null | null | client/Controller/Exceptions.hpp | iElden/RConsole | 77aaad891327ccc93c1b7c48f41be6e462983b17 | [
"MIT"
] | null | null | null | //
// Created by Gegel85 on 30/06/2020.
//
#ifndef RCONSOLE_CONTROLLER_EXCEPTIONS_HPP
#define RCONSOLE_CONTROLLER_EXCEPTIONS_HPP
#include <string>
#include "../Exceptions.hpp"
namespace RC::Client::Controller
{
class ControllerException : public ClientException {
public:
ControllerException(const std::string &&... | 29.859649 | 158 | 0.759107 | iElden |
d7da649564f7783142a2ed74288a07ebdf6b16c7 | 1,668 | hpp | C++ | EdenEngine/ComponentHeader/EditorGUI.hpp | HuajiKojima/EdenEngine | 9445df98b3735570ded80ca018c01db1819fc944 | [
"MIT"
] | null | null | null | EdenEngine/ComponentHeader/EditorGUI.hpp | HuajiKojima/EdenEngine | 9445df98b3735570ded80ca018c01db1819fc944 | [
"MIT"
] | null | null | null | EdenEngine/ComponentHeader/EditorGUI.hpp | HuajiKojima/EdenEngine | 9445df98b3735570ded80ca018c01db1819fc944 | [
"MIT"
] | null | null | null | // Eden Engine
#pragma once
#ifndef EDEN_EDITOR_GUI
#define EDEN_EDITOR_GUI
#include "DevelopmentKit/ImGui/imgui.h"
#include "DevelopmentKit/ImGui/imgui_impl_glfw.h"
#include "DevelopmentKit/ImGui/imgui_impl_opengl3.h"
#include <GLFW/glfw3.h>
#define EDEN_GUI_CLASSIC 0
#define EDEN_GUI_DARK 1
#define EDEN_GUI_LIGHT 2... | 23.166667 | 99 | 0.645084 | HuajiKojima |
d7dc304a0965470e8bc5fc1224291e205ed68e0d | 132 | cc | C++ | src/code_writen_when_learning/boost/boost_assert/1/main.cc | NobodyXu/snippet | 8f0308e48dab1d166dc9e5ff43b00db2d35b616b | [
"MIT"
] | 1 | 2019-04-02T04:38:15.000Z | 2019-04-02T04:38:15.000Z | src/code_writen_when_learning/boost/boost_assert/1/main.cc | NobodyXu/snippet | 8f0308e48dab1d166dc9e5ff43b00db2d35b616b | [
"MIT"
] | null | null | null | src/code_writen_when_learning/boost/boost_assert/1/main.cc | NobodyXu/snippet | 8f0308e48dab1d166dc9e5ff43b00db2d35b616b | [
"MIT"
] | null | null | null | #define BOOST_DISABLE_ASSERTS
#include "1.hpp"
#undef BOOST_DISABLE_ASSERTS
#include "2.hpp"
int main() {
A::F();
B::F();
}
| 14.666667 | 29 | 0.651515 | NobodyXu |
d7e8f956541e660cb9911c92aba3612797edb98c | 1,623 | hpp | C++ | attic/src/main/include/fmp/utils.hpp | yamasdais/asaki-yumemishi | d6220e489da613a634e6ce474a869f5d2932f89d | [
"BSL-1.0"
] | null | null | null | attic/src/main/include/fmp/utils.hpp | yamasdais/asaki-yumemishi | d6220e489da613a634e6ce474a869f5d2932f89d | [
"BSL-1.0"
] | 8 | 2017-09-28T14:39:37.000Z | 2021-03-09T22:55:55.000Z | attic/src/main/include/fmp/utils.hpp | yamasdais/asaki-yumemishi | d6220e489da613a634e6ce474a869f5d2932f89d | [
"BSL-1.0"
] | null | null | null | // Copyright Yamashta, Daisuke 2017
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#if !defined(FMP_34923AEE_9F31_49B2_AD8D_D975BE25512D)
#define FMP_34923AEE_9F31_49B2_AD8D_D975BE25512D
#... | 23.521739 | 70 | 0.661121 | yamasdais |
d7eb22608da22edc3c6fdcb9b0988d71deaa9c6f | 399 | cpp | C++ | Cplus/MaximumNumberofBalloons.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/MaximumNumberofBalloons.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/MaximumNumberofBalloons.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <climits>
#include <string>
#include <unordered_map>
using namespace std;
class Solution
{
public:
int maxNumberOfBalloons(string text)
{
unordered_map<char, int> m; //{char,count}
for (auto c : text)
++m[c];
int res = INT_MAX;
m['l'] /= 2;
m['o'] /= 2;
string balloon = "... | 17.347826 | 44 | 0.62406 | JumHorn |
d7ef421d8abdee626af4096012e776b6e3bd8f5c | 1,569 | cpp | C++ | 10-23/hideAndSeek.cpp | hanzhi713/data | ca1da71334b47154efc27fd0d97ace0daa5f0758 | [
"MIT"
] | null | null | null | 10-23/hideAndSeek.cpp | hanzhi713/data | ca1da71334b47154efc27fd0d97ace0daa5f0758 | [
"MIT"
] | null | null | null | 10-23/hideAndSeek.cpp | hanzhi713/data | ca1da71334b47154efc27fd0d97ace0daa5f0758 | [
"MIT"
] | null | null | null | /**
* To compile and run:
* clang++ -o h h.cpp && ./h
*/
#include <bits/stdc++.h>
#define ll long long
using namespace std;
ll x1, y_1, x2, y2;
bool cut(ll x, ll y){
if(x >= x1 && x <= x2 && y >= y_1 && y <= y2){
return true;
}
return false;
}
int main(){
ll xb, yb;
cin>>xb>>yb>>x1>>y_... | 22.73913 | 72 | 0.41109 | hanzhi713 |
d7f0d2fc58ddbc364e7fd1e3b7727940141a5c29 | 2,767 | cpp | C++ | unity-screen-capture-plugin/dllmain.cpp | BillWCJ/unity-windows-screen-capture | a8cbadb7d0607b3d3f69673e2f5ded377d4cc620 | [
"MIT"
] | null | null | null | unity-screen-capture-plugin/dllmain.cpp | BillWCJ/unity-windows-screen-capture | a8cbadb7d0607b3d3f69673e2f5ded377d4cc620 | [
"MIT"
] | null | null | null | unity-screen-capture-plugin/dllmain.cpp | BillWCJ/unity-windows-screen-capture | a8cbadb7d0607b3d3f69673e2f5ded377d4cc620 | [
"MIT"
] | null | null | null | #include "pch.h"
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
/*
// debug event
static FuncPtr s_debug;
exter... | 26.605769 | 110 | 0.73184 | BillWCJ |
d7f5defa2bf394c33ebe012669b294fe54c34af2 | 2,358 | hpp | C++ | src/hardware/memory/register.hpp | geaz/emu-gameboy | da8a3e6898a0075dcb4371eb772e31695300ae54 | [
"MIT"
] | 47 | 2019-10-12T14:23:47.000Z | 2022-03-22T03:31:43.000Z | src/hardware/memory/register.hpp | geaz/emu-gameboy | da8a3e6898a0075dcb4371eb772e31695300ae54 | [
"MIT"
] | null | null | null | src/hardware/memory/register.hpp | geaz/emu-gameboy | da8a3e6898a0075dcb4371eb772e31695300ae54 | [
"MIT"
] | 2 | 2021-09-20T20:47:21.000Z | 2021-10-12T12:10:46.000Z | #pragma once
#ifndef REGISTER_H
#define REGISTER_H
#include <string>
namespace GGB::Hardware
{
template <class T>
class Register
{
public:
Register(const T initialValue);
T read();
uint8_t readBit(const uint8_t bitNr);
void writeBit(con... | 31.44 | 163 | 0.534775 | geaz |
d7f93776653b25a3465ac8fefd089c38b6d4401e | 382 | hpp | C++ | examples/12_pubsvc/generated/src/NECommon.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | examples/12_pubsvc/generated/src/NECommon.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | examples/12_pubsvc/generated/src/NECommon.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* \file generated/src/NECommon.hpp
* \ingroup 12_pubsvc
* \brief Namespace contains common constants.
************************************************************************/
namespace NECommon
{
... | 29.384615 | 74 | 0.387435 | Ali-Nasrolahi |
d7fb35577f44d1f67139fd49e9a7e9af1d4d0987 | 3,946 | cpp | C++ | tmain_form.cpp | stasinek/Koperek | 35b241fe37d7e1b3b0215368b0e35c43c3c16660 | [
"BSD-2-Clause"
] | null | null | null | tmain_form.cpp | stasinek/Koperek | 35b241fe37d7e1b3b0215368b0e35c43c3c16660 | [
"BSD-2-Clause"
] | null | null | null | tmain_form.cpp | stasinek/Koperek | 35b241fe37d7e1b3b0215368b0e35c43c3c16660 | [
"BSD-2-Clause"
] | null | null | null | /*Koperek32(R) Copyright (c) Stanislaw Stasiak, sstoft@wp.pl <2014> All rights reserved.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR... | 34.313043 | 460 | 0.714901 | stasinek |
d7ff5d4fd97327cc62a6fd222e54de480b4a9c0c | 290 | hpp | C++ | TreeWalkInterpreter/includes/Stmt/ExprStmt.hpp | dipeshkaphle/Lox-cpp | 9c73987f08aa366234b291df938261f5592a140f | [
"MIT"
] | null | null | null | TreeWalkInterpreter/includes/Stmt/ExprStmt.hpp | dipeshkaphle/Lox-cpp | 9c73987f08aa366234b291df938261f5592a140f | [
"MIT"
] | null | null | null | TreeWalkInterpreter/includes/Stmt/ExprStmt.hpp | dipeshkaphle/Lox-cpp | 9c73987f08aa366234b291df938261f5592a140f | [
"MIT"
] | null | null | null | #pragma once
#include "Stmt.hpp"
#include "StmtVisitor.hpp"
#include "includes/Expr/Expr.hpp"
#include <memory>
class expr_stmt : public Stmt {
public:
std::unique_ptr<Expr> expr;
expr_stmt(std::unique_ptr<Expr> expr);
std::any accept(stmt_visitor<std::any> &visitor) override;
};
| 19.333333 | 60 | 0.724138 | dipeshkaphle |
cc0292e649925aa7477e0379208870b2960160e7 | 12,879 | cpp | C++ | src/xrCore/XML/XMLDocument.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 2 | 2015-02-23T10:43:02.000Z | 2015-06-11T14:45:08.000Z | src/xrCore/XML/XMLDocument.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 17 | 2022-01-25T08:58:23.000Z | 2022-03-28T17:18:28.000Z | src/xrCore/XML/XMLDocument.cpp | clayne/xray-16 | 32ebf81a252c7179e2824b2874f911a91e822ad1 | [
"OML",
"Linux-OpenIB"
] | 1 | 2015-06-05T20:04:00.000Z | 2015-06-05T20:04:00.000Z | #include "stdafx.h"
#include "XMLDocument.hpp"
pcstr UI_PATH = UI_PATH_DEFAULT;
pcstr UI_PATH_WITH_DELIMITER = UI_PATH_DEFAULT_WITH_DELIMITER;
XMLDocument::XMLDocument() : m_xml_file_name(), m_root(nullptr), m_pLocalRoot(nullptr) {}
XMLDocument::~XMLDocument() { ClearInternal(); }
void XMLDocument::ClearInternal()... | 27.997826 | 140 | 0.658126 | clayne |
cc02baac478f37d7d0a3db1d9d02eb223d2b63ca | 1,238 | cpp | C++ | android/android_9/device/google/cuttlefish_common/common/vsoc/lib/screen_region_view_test.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_9/device/google/cuttlefish_common/common/vsoc/lib/screen_region_view_test.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | android/android_9/device/google/cuttlefish_common/common/vsoc/lib/screen_region_view_test.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017 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... | 28.790698 | 78 | 0.71567 | yakuizhao |
cc047f3556dcd9d4e2ebccffebff5f9c42567681 | 2,921 | cpp | C++ | paint/solutions/modified2-ryno-full.cpp | acio-olympiad/ACIO2022Contest2 | 53c7ced66ae916b118cfab8c72e4531dd08defd2 | [
"MIT"
] | null | null | null | paint/solutions/modified2-ryno-full.cpp | acio-olympiad/ACIO2022Contest2 | 53c7ced66ae916b118cfab8c72e4531dd08defd2 | [
"MIT"
] | null | null | null | paint/solutions/modified2-ryno-full.cpp | acio-olympiad/ACIO2022Contest2 | 53c7ced66ae916b118cfab8c72e4531dd08defd2 | [
"MIT"
] | null | null | null | /* N <= 2e3, K <= 2e3
fracturing search
O(NK log NK)
*/
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
#include <assert.h>
using namespace std;
typedef long long ll;
ll N, K, D;
vector<ll> costs[2005];
vector<ll> prevUsed[2005];
struct State {
// used is represented... | 26.080357 | 89 | 0.480315 | acio-olympiad |
cc07184363eb3095efc9e4fd5dad22f7bd4ef33c | 1,783 | cpp | C++ | android-31/android/view/ActionProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/view/ActionProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/view/ActionProvider.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../content/Context.hpp"
#include "./View.hpp"
#include "./ActionProvider.hpp"
namespace android::view
{
// Fields
// QJniObject forward
ActionProvider::ActionProvider(QJniObject obj) : JObject(obj) {}
// Constructors
ActionProvider::ActionProvider(android::content::Context arg0)
: JObject(
"and... | 20.033708 | 75 | 0.691531 | YJBeetle |
cc092514a72cc121ea98bccb6c1f87a8b945138b | 8,229 | cpp | C++ | source/rrSBMLModelSimulation.cpp | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | source/rrSBMLModelSimulation.cpp | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | source/rrSBMLModelSimulation.cpp | gregmedlock/roadrunnerwork | 11f18f78ef3e381bc59c546a8d5e3ed46d8ab596 | [
"Apache-2.0"
] | null | null | null | #ifdef USE_PCH
#include "rr_pch.h"
#endif
#pragma hdrstop
#include <iomanip>
#include <map>
#include "rrLogger.h"
#include "rrSBMLModelSimulation.h"
#include "rrUtils.h"
#include "rrRoadRunner.h"
//---------------------------------------------------------------------------
#if defined(__CODEGEARC__)
#pragma packag... | 23.311615 | 117 | 0.595577 | gregmedlock |
cc0a20905abad9eac184c28663875b7fe134c9d3 | 14,635 | hpp | C++ | third_party/jsonxx.v0.9.2/include/jsonxx/json_unicode.hpp | vectordb-io/vectordb | 3175b0d7f795d4f5daa22eb58ff86a01cf66780d | [
"Apache-2.0"
] | 9 | 2021-06-16T08:02:19.000Z | 2021-11-04T11:49:27.000Z | third_party/jsonxx.v0.9.2/include/jsonxx/json_unicode.hpp | vectordb-io/vectordb | 3175b0d7f795d4f5daa22eb58ff86a01cf66780d | [
"Apache-2.0"
] | null | null | null | third_party/jsonxx.v0.9.2/include/jsonxx/json_unicode.hpp | vectordb-io/vectordb | 3175b0d7f795d4f5daa22eb58ff86a01cf66780d | [
"Apache-2.0"
] | 2 | 2021-06-17T14:21:03.000Z | 2021-08-13T16:37:35.000Z | // Copyright (c) 2018-2020 jsonxx - Nomango
//
// 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, ... | 29.685598 | 112 | 0.586334 | vectordb-io |
cc0b2d9025a30e467a2e7cb6ccabe8a48551991f | 8,228 | hpp | C++ | Libraries/C++/CommonHelpers/v1.0/CommonHelpers/Details/boost_extract/vmd/detail/recurse/equal/equal_10.hpp | davidbrownell/Common_cpp_Helpers | 9e68c95873b5a4eff3a32b991d2c18dff176d6c9 | [
"BSL-1.0"
] | null | null | null | Libraries/C++/CommonHelpers/v1.0/CommonHelpers/Details/boost_extract/vmd/detail/recurse/equal/equal_10.hpp | davidbrownell/Common_cpp_Helpers | 9e68c95873b5a4eff3a32b991d2c18dff176d6c9 | [
"BSL-1.0"
] | null | null | null | Libraries/C++/CommonHelpers/v1.0/CommonHelpers/Details/boost_extract/vmd/detail/recurse/equal/equal_10.hpp | davidbrownell/Common_cpp_Helpers | 9e68c95873b5a4eff3a32b991d2c18dff176d6c9 | [
"BSL-1.0"
] | null | null | null |
// (C) Copyright Edward Diener 2011-2015
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#if !defined(BOOST_VMD_DETAIL_EQUAL_10_HPP)
#define BOOST_VMD_DETAIL_EQUAL_10... | 29.074205 | 87 | 0.555785 | davidbrownell |
cc0d28d510e6dbac65cfd501c410ebe8d8cdccc9 | 14,246 | hpp | C++ | src/smilesection.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 27 | 2016-11-19T16:51:21.000Z | 2021-09-08T16:44:15.000Z | src/smilesection.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 1 | 2016-12-28T16:38:38.000Z | 2017-02-17T05:32:13.000Z | src/smilesection.hpp | quantlibnode/quantlibnode | b50348131af77a2b6c295f44ef3245daf05c4afc | [
"MIT"
] | 10 | 2016-12-28T02:31:38.000Z | 2021-06-15T09:02:07.000Z | /*
Copyright (C) 2016 -2017 Jerry Jin
*/
#ifndef smilesection_h
#define smilesection_h
#include <nan.h>
#include <string>
#include <queue>
#include <utility>
#include "../quantlibnode.hpp"
#include <oh/objecthandler.hpp>
using namespace node;
using namespace v8;
using namespace std;
class FlatSmileSectionWorke... | 19.435198 | 79 | 0.659273 | quantlibnode |
cc0ee718e93af0c434dd888f299c64c242d010ad | 2,013 | cc | C++ | libs/xmi/operation.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/operation.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xmi/operation.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::XMI: operation.cc
//
// UML::Operation functionality
//
// Copyright (c) 2003 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//==============================================... | 27.575342 | 76 | 0.545951 | sandtreader |
cc0ee9a73145bbbca35e45e7a96a494223a2dc46 | 1,117 | cpp | C++ | BAC/exercises/ch9/UVa103.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch9/UVa103.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch9/UVa103.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa103 Stacking Boxes
// Rujia Liu
// 题意:输入k个n维盒子(k<=30, n<=10),找一个最长嵌套序列。
// 算法:DAG上的最长路。首先把盒子的各个维排序,这样判断起来比较简单
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int maxk = 30 + 5;
const int maxn = 10 + 5;
int n, k, box[maxk][maxn], d[maxk], next[maxk];
int dp(int i) {
int& ans =... | 22.795918 | 63 | 0.498657 | Anyrainel |
cc1733618c8c9d3d16f8ff8bce6fba2e120a08b7 | 1,507 | cpp | C++ | VPKReader/VPKReader.cpp | hufuman/VPKReader | d17af846a8212caa1e739852e266fe8ee6a5c1ea | [
"MIT"
] | 14 | 2015-05-07T15:05:38.000Z | 2020-12-04T07:00:45.000Z | VPKReader/VPKReader.cpp | hufuman/VPKReader | d17af846a8212caa1e739852e266fe8ee6a5c1ea | [
"MIT"
] | null | null | null | VPKReader/VPKReader.cpp | hufuman/VPKReader | d17af846a8212caa1e739852e266fe8ee6a5c1ea | [
"MIT"
] | 6 | 2015-05-21T16:03:03.000Z | 2021-05-17T17:17:52.000Z |
// VPKReader.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "VPKReader.h"
#include "VPKReaderDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CVPKReaderApp
BEGIN_MESSAGE_MAP(CVPKReaderApp, CWinApp)
END_MESSAGE_MAP()
// CVPKReaderApp construction
CVPKReaderApp::CVPKRe... | 22.161765 | 71 | 0.746516 | hufuman |
cc182522136bfe6534e23bb5db502489f80c5c6f | 1,296 | cpp | C++ | code/RegulaFalsi.cpp | Shiv-sharma-111/Numerical-Methods | 3a85a1b643f3b4c00fb1b6d3c13af124e9d084e9 | [
"MIT"
] | null | null | null | code/RegulaFalsi.cpp | Shiv-sharma-111/Numerical-Methods | 3a85a1b643f3b4c00fb1b6d3c13af124e9d084e9 | [
"MIT"
] | null | null | null | code/RegulaFalsi.cpp | Shiv-sharma-111/Numerical-Methods | 3a85a1b643f3b4c00fb1b6d3c13af124e9d084e9 | [
"MIT"
] | null | null | null | // Program for implementation of Bisection Method for
#include<bits/stdc++.h>
using namespace std;
#define MAX_ITER 1000000
//Define the maximium iteration according to your questio
// An example function whose solution is determined using
// Bisection Method. The function is x^3 - x^2 + 2
double func(double ... | 24 | 60 | 0.53858 | Shiv-sharma-111 |
cc206c1d19bcb55dc116a958b9577bed9b183c6f | 31,377 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Packages/SystemUI/src/elastos/droid/systemui/CSearchPanelCircleView.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Packages/SystemUI/src/elastos/droid/systemui/CSearchPanelCircleView.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Packages/SystemUI/src/elastos/droid/systemui/CSearchPanelCircleView.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos 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
//
// ... | 33.666309 | 133 | 0.622972 | jingcao80 |
cc216d860d51144982fd80709e6f1d1178ebfd37 | 270 | hpp | C++ | src/pulse/extensions/Vector.hpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | 2 | 2016-10-12T01:31:55.000Z | 2017-01-06T21:07:25.000Z | src/pulse/extensions/Vector.hpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | 1 | 2016-10-28T22:36:04.000Z | 2016-11-18T07:59:50.000Z | src/pulse/extensions/Vector.hpp | Rypac/pulse | c3d6ae0cab947aa6d380a0e225913b62b8883d8b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "cocos2d.h"
namespace pulse {
template <typename T>
inline cocos2d::Vector<T> toVector(const std::vector<T>& vec) {
cocos2d::Vector<T> out;
for (auto&& element : vec) {
out.pushBack(element);
}
return out;
}
} // pulse
| 15.882353 | 63 | 0.622222 | Rypac |
cc22eb5c2ee4b4475fb0962b2590c0cd830c552d | 47,400 | cpp | C++ | drishti/networkobject.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 118 | 2016-11-01T06:01:44.000Z | 2022-03-30T05:20:19.000Z | drishti/networkobject.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 56 | 2016-09-30T09:29:36.000Z | 2022-03-31T17:15:32.000Z | drishti/networkobject.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 28 | 2016-07-31T23:48:51.000Z | 2021-05-25T05:32:47.000Z | #include "global.h"
#include "staticfunctions.h"
#include "networkobject.h"
#include "matrix.h"
#if defined(Q_OS_WIN32)
#include <netcdfcpp.h>
#endif
void NetworkObject::setScale(float s) { m_scaleV = m_scaleE = s; }
float NetworkObject::scaleV() { return m_scaleV; }
void NetworkObject::setScaleV(float s) { m_scaleV =... | 24.295233 | 80 | 0.593397 | stranddw |
cc23a8ba22778c5cf90dd9e8b25bcd5e96664c77 | 1,295 | cpp | C++ | cutrod.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | cutrod.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | cutrod.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | 1 | 2019-01-19T01:05:07.000Z | 2019-01-19T01:05:07.000Z | #include <iostream>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <string>
#include <cstring>
#include <iomanip>
using std::cerr;
using std::cin;
using std::cout;
using std::endl;
using std::string;
int n, k;
int ropes[10010] = {0};
bool check(int len)
{
int tot = 0;
for (int i = 1; i <= n... | 17.986111 | 62 | 0.403861 | W-YXN |
cc27786440b04f33de133a068781e3ae14798a24 | 5,392 | inl | C++ | private/inet/urlmon/utils/ctime.inl | King0987654/windows2000 | 01f9c2e62c4289194e33244aade34b7d19e7c9b8 | [
"MIT"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetcore/urlmon/utils/ctime.inl | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetcore/urlmon/utils/ctime.inl | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2019-01-16T01:01:23.000Z | 2022-02-20T15:54:27.000Z | // This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1995 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
/... | 47.716814 | 80 | 0.685089 | King0987654 |
cc280a5d7476322d006fa06d8955609bb5b6a495 | 3,794 | hpp | C++ | hpx/plugins/parcel/message_buffer.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/plugins/parcel/message_buffer.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/plugins/parcel/message_buffer.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2013 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(HPX_RUNTIME_PARCELSET_POLICIES_COALESCING_MESSAGE_BUFFER_MAR_07_2013_1250PM)
#define HPX_RUNTIME_PARCELSE... | 27.897059 | 89 | 0.576173 | andreasbuhr |
cc2d969996b8bac167e7ae8d39eb97bf2473fc70 | 4,582 | cpp | C++ | CHIP8-Emu/main.cpp | hugo19941994/chip8-emu | 5d2d7c92a8e7d9566e5c6564006160788201cfdb | [
"MIT"
] | 1 | 2016-11-21T00:55:52.000Z | 2016-11-21T00:55:52.000Z | CHIP8-Emu/main.cpp | hugo19941994/CHIP8-Emu | 5d2d7c92a8e7d9566e5c6564006160788201cfdb | [
"MIT"
] | null | null | null | CHIP8-Emu/main.cpp | hugo19941994/CHIP8-Emu | 5d2d7c92a8e7d9566e5c6564006160788201cfdb | [
"MIT"
] | null | null | null | #ifdef _WIN32
#include <windows.h>
#include <stdlib.h>
#include <SDL.h>
#endif
#if __linux__ || __APPLE__
#include <cstdlib>
#include <gtk/gtk.h>
#include "SDL.h"
#endif
#include <stdio.h>
//#include <string.h>
//#include <conio.h>
#include "vars.h"
//Screen dimension constants
const int SCREEN_WIDTH = 580;
const int ... | 18.933884 | 139 | 0.543867 | hugo19941994 |
cc33a61e7eb6b7d24d5b18d88053f1ecc17ee91d | 7,772 | cpp | C++ | Tree/binaryTree.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | Tree/binaryTree.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | null | null | null | Tree/binaryTree.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 5 | 2020-09-21T12:49:07.000Z | 2020-09-29T16:13:09.000Z | //
// binaryTree.cpp
// AnishC++
//
// Created by Anish Mookherjee on 01/11/19.
// Copyright © 2019 Anish Mookherjee. All rights reserved.
//
#include <iostream>
using namespace std;
struct node
{
int data;
struct node *left;
struct node *right;
}*tree;
void createTree(struct node* tree)
{
tree=NUL... | 25.233766 | 85 | 0.476969 | harshallgarg |
cc34aa7ac8c65869c77ecb684d326d21e6cca705 | 4,204 | cpp | C++ | demos/glut/multibody/src/scenes/setup_domino_spiral.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | null | null | null | demos/glut/multibody/src/scenes/setup_domino_spiral.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | null | null | null | demos/glut/multibody/src/scenes/setup_domino_spiral.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | null | null | null | //
// OpenTissue Template Library Demo
// - A specific demonstration of the flexibility of OTTL.
// Copyright (C) 2008 Department of Computer Science, University of Copenhagen.
//
// OTTL and OTTL Demos are licensed under zlib.
//
#include "setup_domino_spiral.h"
#include <OpenTissue/core/geometry/geometry_compute_box... | 33.903226 | 126 | 0.709087 | ricortiz |
cc3615ff211ed0a434cab0856157758739c55d1d | 19,385 | cpp | C++ | src/Mobs.cpp | Cavantar/RoqueLike | c2466c5950730f51a9d582d3757548299b226327 | [
"WTFPL"
] | null | null | null | src/Mobs.cpp | Cavantar/RoqueLike | c2466c5950730f51a9d582d3757548299b226327 | [
"WTFPL"
] | null | null | null | src/Mobs.cpp | Cavantar/RoqueLike | c2466c5950730f51a9d582d3757548299b226327 | [
"WTFPL"
] | null | null | null | #include "Mobs.h"
#include <sstream>
#include <iomanip>
#include <iostream>
Mob::Mob(const EntityPosition& position, int mobLevel, int health) : mobLevel(mobLevel), health(health)
{
this->position = position;
renderData.type = ER_MOB;
}
void
Mob::addHealth(float amount)
{
if(amount < 0)
{
amount += getSh... | 25.373037 | 124 | 0.682177 | Cavantar |
cc365f8b2bffd09ab59c4e654f53bcb02cc8951b | 442 | cpp | C++ | solved/0-b/ant-on-a-chessboard/uva/gen.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/ant-on-a-chessboard/uva/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/ant-on-a-chessboard/uva/gen.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstdlib>
#include <ctime>
#define MAXT 100
#define MAXN 2000000000
int T;
void gen()
{
int n = rand() % MAXN + 1;
int r = rand() % 10;
if (n >= 100 && r < 1) n = rand() % 100 + 1;
if (n >= 10000 && r < 3) n = rand() % 10000 + 1;
if (n >= 1000000 && r < 5) n = rand() % 1000000 + 1... | 11.945946 | 53 | 0.50905 | abuasifkhan |
cc38878a5553da50f5beb70eae85b22c6c2fc7d6 | 245 | cpp | C++ | src/common/Spinlock.cpp | cas1k/rewind-viewer | 6307158c6b99dd2da0be23f1816e3418eea5771f | [
"MIT"
] | 71 | 2017-10-28T14:34:34.000Z | 2020-12-30T06:55:55.000Z | src/common/Spinlock.cpp | cas1k/rewind-viewer | 6307158c6b99dd2da0be23f1816e3418eea5771f | [
"MIT"
] | 42 | 2017-11-02T12:12:25.000Z | 2020-12-10T09:53:31.000Z | src/common/Spinlock.cpp | cas1k/rewind-viewer | 6307158c6b99dd2da0be23f1816e3418eea5771f | [
"MIT"
] | 30 | 2017-11-05T18:09:48.000Z | 2020-12-06T20:03:46.000Z | //
// Created by Vladimir A. Kiselev on 08.11.2020.
//
#include "Spinlock.h"
void Spinlock::lock() {
while (lock_.test_and_set(std::memory_order_acquire))
;
}
void Spinlock::unlock() {
lock_.clear(std::memory_order_release);
}
| 17.5 | 57 | 0.665306 | cas1k |
cc395d389d520027d5325d925f9085f1ead925e4 | 285 | cpp | C++ | ExpressionEvaluation/parse/mock/compiler_for_parser_mock/compiler_for_parser_mock.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | ExpressionEvaluation/parse/mock/compiler_for_parser_mock/compiler_for_parser_mock.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | ExpressionEvaluation/parse/mock/compiler_for_parser_mock/compiler_for_parser_mock.cpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | #ifdef TEST
#include "compiler_for_parser_mock.hpp"
compiler_for_parser_mock::compiler_for_parser_mock(size_t &merge_called)
: merge_called_(merge_called) {}
void compiler_for_parser_mock::merge(std::unique_ptr<compiler_i> other) {
merge_called_++;
return;
}
#endif // TEST | 21.923077 | 73 | 0.782456 | suiyili |
cc39868dc2e2a56022643ac78bd67bf109a533c4 | 547 | cpp | C++ | engine/calculators/source/MagicalAttackSpeedCalculator.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/calculators/source/MagicalAttackSpeedCalculator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/calculators/source/MagicalAttackSpeedCalculator.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "Game.hpp"
#include "MagicalAttackSpeedCalculator.hpp"
using namespace std;
ActionCostValue MagicalAttackSpeedCalculator::calculate(CreaturePtr creature)
{
ActionCostValue action_cost_value = ActionCostConstants::DEFAULT;
if (creature)
{
string spell_id = creature->get_spell_knowledge_ref().get_mo... | 23.782609 | 92 | 0.744059 | sidav |
cc3c467c959a7d153ef63099a9c5e0aa100c596a | 8,920 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/System/Devices/Interfaces/WinQLDeviceInterfaceClassCollection.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/System/Devices/Interfaces/WinQLDeviceInterfaceClassCollection.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/System/Devices/Interfaces/WinQLDeviceInterfaceClassCollection.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLDeviceInterfaceClassCollection.cpp
// Copyright Querysoft Limited 2013, 2017
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
//... | 63.262411 | 190 | 0.726682 | mfaithfull |
cc3ec7713db5e387daeb5c2614a49d6be4c640a5 | 2,514 | cpp | C++ | RemoteMessage/Message.cpp | deping/RemoteMessage | cb6782814a51904ca45cb3c00fefc48594d40789 | [
"MIT"
] | null | null | null | RemoteMessage/Message.cpp | deping/RemoteMessage | cb6782814a51904ca45cb3c00fefc48594d40789 | [
"MIT"
] | null | null | null | RemoteMessage/Message.cpp | deping/RemoteMessage | cb6782814a51904ca45cb3c00fefc48594d40789 | [
"MIT"
] | null | null | null | /***************************************************************************
* Copyright (C) 2017, Deping Chen, cdp97531@sina.com
*
* All rights reserved.
* For permission requests, write to the publisher.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*... | 22.247788 | 76 | 0.658313 | deping |
cc40b34a90096d376091f0eb6ff64a32fd9f48dd | 15,609 | hh | C++ | dune/gdt/operators/darcy.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/darcy.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/darcy.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | 45.375 | 120 | 0.677622 | tobiasleibner |
cc4386b024c86e93e6b869b484c6fabb046a50b6 | 19,738 | cpp | C++ | test/src/test_lib/property_set.cpp | falko-strenzke/fleaTLS | 613a7cb977333f5f193f91b9e2c780d08aa8a3d5 | [
"Apache-2.0"
] | null | null | null | test/src/test_lib/property_set.cpp | falko-strenzke/fleaTLS | 613a7cb977333f5f193f91b9e2c780d08aa8a3d5 | [
"Apache-2.0"
] | null | null | null | test/src/test_lib/property_set.cpp | falko-strenzke/fleaTLS | 613a7cb977333f5f193f91b9e2c780d08aa8a3d5 | [
"Apache-2.0"
] | 1 | 2020-08-06T10:25:03.000Z | 2020-08-06T10:25:03.000Z | /* fleaTLS cryptographic library
Copyright (C) 2015-2019 cryptosource GmbH
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applica... | 24.159119 | 119 | 0.601885 | falko-strenzke |
cc4a9577fb50e1a12d7044ea8c8f5779059d7f55 | 1,620 | cpp | C++ | app_modules/01_keyboard_module/src/application.cpp | LucaRitz/learn_with_tello | f7fc45e7a9e9a2903638ec8367c9b355a4f1afc9 | [
"Apache-2.0"
] | null | null | null | app_modules/01_keyboard_module/src/application.cpp | LucaRitz/learn_with_tello | f7fc45e7a9e9a2903638ec8367c9b355a4f1afc9 | [
"Apache-2.0"
] | null | null | null | app_modules/01_keyboard_module/src/application.cpp | LucaRitz/learn_with_tello | f7fc45e7a9e9a2903638ec8367c9b355a4f1afc9 | [
"Apache-2.0"
] | null | null | null | #include "application.hpp"
#include <tello/tello.hpp>
#include "keyboard_view.hpp"
#include "keyboard_controller.hpp"
using tello::Tello;
using tello::Response;
Application::Application() :
_baseSettings(nullptr),
_keyboardView(std::make_unique<KeyboardView>()),
_keyboardController(std::make_unique<Keybo... | 24.179104 | 109 | 0.652469 | LucaRitz |
cc4a9be52935ca5f7693107b03a076fe5b10b430 | 6,487 | cpp | C++ | Uebungen/Aufgabe1/main.cpp | StefanoD/Geometric_Modeling | 0997f8d57bf2bc7bd5eb4b4e2524b0fdbc7a125c | [
"Apache-2.0"
] | null | null | null | Uebungen/Aufgabe1/main.cpp | StefanoD/Geometric_Modeling | 0997f8d57bf2bc7bd5eb4b4e2524b0fdbc7a125c | [
"Apache-2.0"
] | null | null | null | Uebungen/Aufgabe1/main.cpp | StefanoD/Geometric_Modeling | 0997f8d57bf2bc7bd5eb4b4e2524b0fdbc7a125c | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////
//
// Georg Umlauf, (c) 2012
//
////////////////////////////////////////////////////////////////////
//#include "stdafx.h"
#include "color.h"
#include "vec.h"
#include "mat.h"
#include "quader.h"
#include "viewSystem.h"
#include <iostre... | 26.586066 | 122 | 0.478341 | StefanoD |
cc4d488f19a45a637ad4a82810a5eb173f26c8e0 | 16,538 | cc | C++ | util/unittest/iostream.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | null | null | null | util/unittest/iostream.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | 10 | 2022-02-27T18:52:11.000Z | 2022-03-21T14:11:35.000Z | util/unittest/iostream.cc | stablecc/scclib | cedcb3b37a814d3a393e128db7aa9753f518cbaf | [
"BSD-3-Clause"
] | null | null | null | /*
BSD 3-Clause License
Copyright (c) 2022, Stable Cloud Computing, Inc.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions ... | 25.365031 | 126 | 0.649837 | stablecc |
cc55f374e84a9a62381d34ad987b19ff57fc8d09 | 3,135 | cpp | C++ | encode/encode.avx512.cpp | WojciechMula/base64simd | 6bde46e13d42f962620c0c496f0e5b288043ff5d | [
"BSD-2-Clause"
] | 133 | 2016-09-15T18:38:00.000Z | 2022-02-01T14:09:10.000Z | encode/encode.avx512.cpp | pkpioneer/base64simd | 6bde46e13d42f962620c0c496f0e5b288043ff5d | [
"BSD-2-Clause"
] | 8 | 2016-11-26T07:21:50.000Z | 2021-07-12T14:49:22.000Z | encode/encode.avx512.cpp | pkpioneer/base64simd | 6bde46e13d42f962620c0c496f0e5b288043ff5d | [
"BSD-2-Clause"
] | 12 | 2016-11-25T20:31:06.000Z | 2021-03-22T12:01:48.000Z | namespace base64 {
namespace avx512 {
template <typename LOOKUP_FN, typename UNPACK_FN>
void encode_load_gather(LOOKUP_FN lookup, UNPACK_FN unpack, const uint8_t* input, size_t bytes, uint8_t* output) {
uint8_t* out = output;
const __m512i input_offsets = _mm512_setr_epi3... | 38.703704 | 122 | 0.511005 | WojciechMula |
cc5684e092292d8ad5f042a20f9f0c835fd1938b | 863 | cpp | C++ | Baekjoon/2098.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/2098.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/2098.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
const int INF = 1e9;
int N;
vector<vector<int> > W;
vector<vector<int> > dp;
int TSP(int cur, int visited)
{
int ret = dp[cur][visited];
if (ret != 0)
return ret;
if (visited == (1 << N) - 1)
{
if (W[cur][0] != 0)
return W[cur][... | 17.612245 | 54 | 0.537659 | Twinparadox |
cc58c8ded1a47b95895c1fbd2e86d3a79e75e503 | 3,343 | hpp | C++ | tests/unit_tests/neutral/precompiled_headers.hpp | dbremner/cxxreflect | bbf1649b00755f8463e4a73b28dec4cd5b609493 | [
"BSL-1.0"
] | 5 | 2019-03-21T14:52:16.000Z | 2021-02-20T13:14:25.000Z | tests/unit_tests/neutral/precompiled_headers.hpp | dbremner/cxxreflect | bbf1649b00755f8463e4a73b28dec4cd5b609493 | [
"BSL-1.0"
] | null | null | null | tests/unit_tests/neutral/precompiled_headers.hpp | dbremner/cxxreflect | bbf1649b00755f8463e4a73b28dec4cd5b609493 | [
"BSL-1.0"
] | 2 | 2017-02-17T23:24:23.000Z | 2021-07-06T18:10:35.000Z |
// Copyright James P. McNellis 2011 - 2013. //
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
#ifndef CX... | 50.651515 | 124 | 0.49297 | dbremner |
7fde3da7497c8b023c3281fcd01f899d9fdfd495 | 323 | hpp | C++ | library/ATF/CPageSetupDialog.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/CPageSetupDialog.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/CPageSetupDialog.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>
#include <CCommonDialog.hpp>
#include <tagPSDA.hpp>
START_ATF_NAMESPACE
struct CPageSetupDialog : CCommonDialog
{
tagPSDA m_psd;
};
END_ATF_NAMESPA... | 21.533333 | 108 | 0.736842 | lemkova |
7fe2db7f70c1efb40eb82b01c4ee839fdb9f6500 | 3,280 | cpp | C++ | src/VerifyModel.cpp | squarefk/spheretree-fixed | 79ec91538030a271f7aba16e22dc20c9ebb63444 | [
"Unlicense"
] | 17 | 2016-08-12T13:15:41.000Z | 2021-11-11T10:03:48.000Z | src/VerifyModel.cpp | squarefk/spheretree-fixed | 79ec91538030a271f7aba16e22dc20c9ebb63444 | [
"Unlicense"
] | null | null | null | src/VerifyModel.cpp | squarefk/spheretree-fixed | 79ec91538030a271f7aba16e22dc20c9ebb63444 | [
"Unlicense"
] | 9 | 2016-04-26T16:15:45.000Z | 2020-10-29T00:12:12.000Z | /*************************************************************************\
C O P Y R I G H T
Copyright 2003 Image Synthesis Group, Trinity College Dublin, Ireland.
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
doc... | 35.652174 | 97 | 0.623476 | squarefk |
7fe32f55f8b033fbae671487495b6bf009a3d4c1 | 360 | hpp | C++ | mlprodict/onnxrt/ops_cpu/op_common_num_.hpp | sdpython/mlprodic | 9367dacc91d35ec670c8a8a76708300a75bbc993 | [
"MIT"
] | 32 | 2018-03-04T23:33:30.000Z | 2022-03-10T19:15:06.000Z | mlprodict/onnxrt/ops_cpu/op_common_num_.hpp | sdpython/mlprodic | 9367dacc91d35ec670c8a8a76708300a75bbc993 | [
"MIT"
] | 184 | 2017-11-30T14:10:35.000Z | 2022-02-21T08:29:31.000Z | mlprodict/onnxrt/ops_cpu/op_common_num_.hpp | sdpython/mlprodic | 9367dacc91d35ec670c8a8a76708300a75bbc993 | [
"MIT"
] | 9 | 2019-07-24T13:18:00.000Z | 2022-03-07T04:08:07.000Z | #pragma once
#include <cmath>
#include <vector>
#include <stdio.h>
float vector_dot_product_pointer16_sse(const float *p1, const float *p2, size_t size);
double vector_dot_product_pointer16_sse(const double *p1, const double *p2, size_t size);
template <typename NTYPE>
NTYPE vector_dot_product_pointer_sse(const NT... | 25.714286 | 89 | 0.786111 | sdpython |
7fe573db8c51212b03c5026a081fb67862125d1a | 4,701 | cpp | C++ | examples/triangleTesselation.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | 1 | 2016-11-15T09:04:12.000Z | 2016-11-15T09:04:12.000Z | examples/triangleTesselation.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | examples/triangleTesselation.cpp | maldicion069/monkeybrush- | 2bccca097402ff1f5344e356f06de19c8c70065b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 maldicion069
*
* Authors: Cristian Rodríguez Bernal <ccrisrober@gmail.com>
*
* This file is part of MonkeyBrushPlusPlus
* <https://github.com/maldicion069/monkeybrushplusplus>
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Les... | 29.753165 | 91 | 0.633057 | maldicion069 |
7fe5b6df0ea263422344d078e4029abaf769af29 | 1,557 | cpp | C++ | Data Structures/fixed_parities.cpp | abdzitter/Daily-Coding-DS-ALGO-Practice | 26ddbf7a3673608039a07d26d812fce31b69871a | [
"MIT"
] | 289 | 2021-05-15T22:56:03.000Z | 2022-03-28T23:13:25.000Z | Data Structures/fixed_parities.cpp | abdzitter/Daily-Coding-DS-ALGO-Practice | 26ddbf7a3673608039a07d26d812fce31b69871a | [
"MIT"
] | 1,812 | 2021-05-09T13:49:58.000Z | 2022-01-15T19:27:17.000Z | Data Structures/fixed_parities.cpp | abdzitter/Daily-Coding-DS-ALGO-Practice | 26ddbf7a3673608039a07d26d812fce31b69871a | [
"MIT"
] | 663 | 2021-05-09T16:57:58.000Z | 2022-03-27T14:15:07.000Z | #include<bits/stdc++.h>
using namespace std;
// Fixed Parities
// Link to the problem: https://www.hackerearth.com/practice/data-structures/arrays/1-d/practice-problems/algorithm/fixed-parity-440254c0/
// Alice and Bob are playing a board game. They have n×n boards and two arrays a and b of length n. The value of... | 21.328767 | 287 | 0.624277 | abdzitter |
7fe5c7d528dd139c01f6168246f8953b5a03993f | 1,164 | cpp | C++ | Data Structures/Graph/directed-weighted-graph-using-matrix.cpp | luchev/uni-data-structures-and-algorithms-assistant-2019 | 3dcb1efc6f65b4736d3761c0bad858cb236bc213 | [
"MIT"
] | 3 | 2019-10-24T08:38:34.000Z | 2019-12-03T10:46:10.000Z | Data Structures/Graph/directed-weighted-graph-using-matrix.cpp | luchev/uni-data-structures-and-algorithms-2019 | 3dcb1efc6f65b4736d3761c0bad858cb236bc213 | [
"MIT"
] | null | null | null | Data Structures/Graph/directed-weighted-graph-using-matrix.cpp | luchev/uni-data-structures-and-algorithms-2019 | 3dcb1efc6f65b4736d3761c0bad858cb236bc213 | [
"MIT"
] | 2 | 2019-10-22T11:51:18.000Z | 2019-11-03T21:51:33.000Z | #include <iostream>
#include <vector>
using namespace std;
class Graph {
private:
vector<vector<int>> adjacencyMatrix;
public:
Graph(int nodeCount) {
adjacencyMatrix.resize(nodeCount);
for (int row = 0; row < adjacencyMatrix.size(); row++) {
adjacencyMatrix[row].resize(nodeCount);
for (int col = 0; col < ... | 22.823529 | 74 | 0.65378 | luchev |