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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
71107a23c81e97a4f1d2b57b1deff0b8a566a446 | 732 | cc | C++ | 贪心/POJ-1017.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | 贪心/POJ-1017.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | 贪心/POJ-1017.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | /*
* Created by OFShare on 2019-12-05
*
*/
#include <cstdio>
const int A[] = {0, 5, 3, 1};
int main() {
int a, b, c, d, e, f;
while (scanf("%d %d %d %d %d %d", &a, &b, &c, &d, &e, &f) && (a + b + c + d + e + f)) {
int ans = 0;
// 6 * 6, 5 * 5, 4 * 4都要单独占用一个箱子
ans += f + e + d;
// 3 * 3单独占用的箱子
... | 20.333333 | 89 | 0.40847 | OFShare |
7110e243747c4c3448533f172c023466d55bf398 | 194,292 | cpp | C++ | src/pipeline-logo.cpp | MiftahurRidho/tugas | cb343939d3f5731d8c1509beb90c051c63a83903 | [
"Unlicense",
"MS-PL"
] | 87 | 2015-01-04T13:57:18.000Z | 2022-03-21T16:07:05.000Z | src/pipeline-logo.cpp | MiftahurRidho/tugas | cb343939d3f5731d8c1509beb90c051c63a83903 | [
"Unlicense",
"MS-PL"
] | null | null | null | src/pipeline-logo.cpp | MiftahurRidho/tugas | cb343939d3f5731d8c1509beb90c051c63a83903 | [
"Unlicense",
"MS-PL"
] | 60 | 2015-01-15T06:16:39.000Z | 2022-03-31T22:23:12.000Z |
/*
* pipeline-logo.cpp
*
* Contact:
* Moonlight List (moonlight-list@lists.ximian.com)
*
* Copyright 2007 Novell, Inc. (http://www.novell.com)
*
* See the LICENSE file included with the distribution for details.
*
*/
extern const char moonlight_logo [] = {
'\x42', '\x4D', '\xF6', '\x5D', '\x00', '\x00',... | 127.655716 | 128 | 0.372712 | MiftahurRidho |
71179d92f5470913976071825810fb9ab678ca7a | 9,896 | cpp | C++ | aws-cpp-sdk-rds/source/model/CreateCustomDBEngineVersionResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-rds/source/model/CreateCustomDBEngineVersionResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-rds/source/model/CreateCustomDBEngineVersionResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-02-28T21:36:42.000Z | 2022-02-28T21:36:42.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rds/model/CreateCustomDBEngineVersionResult.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include... | 42.839827 | 196 | 0.753032 | perfectrecall |
711b891c9ad93ca38e1ac316a3a72f018e1ba307 | 5,683 | cpp | C++ | frameworks/runtime-src/3rdLibs/TalkingData/platform/android/TDGAJniHelper.cpp | edwardzhou/ddz-client | ed5db2b625cc55192027ffd69e0ec5f342a40222 | [
"MIT"
] | 5 | 2018-01-22T13:00:11.000Z | 2021-02-20T04:24:30.000Z | frameworks/runtime-src/3rdLibs/TalkingData/platform/android/TDGAJniHelper.cpp | edwardzhou/ddz-client | ed5db2b625cc55192027ffd69e0ec5f342a40222 | [
"MIT"
] | null | null | null | frameworks/runtime-src/3rdLibs/TalkingData/platform/android/TDGAJniHelper.cpp | edwardzhou/ddz-client | ed5db2b625cc55192027ffd69e0ec5f342a40222 | [
"MIT"
] | 5 | 2018-01-10T00:40:29.000Z | 2021-08-22T14:12:44.000Z | #include "TDGAJniHelper.h"
#include "TDGALog.h"
#include <string.h>
#define JAVAVM TDGAJniHelper::getJavaVM()
using namespace std;
#define JAVA_CLASS_VIRTUAL "com/tendcloud/tenddata/TDGAVirtualCurrency"
#define JAVA_CLASS_TDGA "com/tendcloud/tenddata/TalkingDataGA"
#define JAVA_CLASS_MISSION "co... | 25.949772 | 133 | 0.646665 | edwardzhou |
711c7fa3aada7a03fe718d0a22b774abe2cc96d1 | 5,242 | c++ | C++ | test/2/src/test.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | test/2/src/test.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | test/2/src/test.c++ | maciek-27/Rgp | d28b5522e640e4c7b951f6861d97cbe52b0a35c9 | [
"MIT"
] | null | null | null | #include<rexio/tk/toolkit.h++>
#include<iostream>
#include <fstream>
using namespace std;
using namespace Scr;
using namespace Scr::Tk;
class AplikacjaDemo:public RootWindow
{
public:
// VerticalGroup group;
FramedWindowBase<FramedWindowBase<VerticalGroup> > group;
VerticalGroup group2;
Label tytulAplikacji;
H... | 25.323671 | 85 | 0.685235 | maciek-27 |
711e98143bbbd9e022698c82bacc757133b3114a | 600 | cpp | C++ | ExodusImport/Source/ExodusImport/Private/JsonObjects/JsonExternResourceList.cpp | AldeRoberge/ProjectExodus | 74ecd6c8719e6365b51458c65954bff2910bc36e | [
"BSD-3-Clause"
] | 288 | 2019-04-02T08:02:59.000Z | 2022-03-28T23:53:28.000Z | ExodusImport/Source/ExodusImport/Private/JsonObjects/JsonExternResourceList.cpp | adamgoodrich/ProjectExodus | 29a9fa87f981ad41e3b323702dc2b0d4523889d8 | [
"BSD-3-Clause"
] | 54 | 2019-04-19T08:24:05.000Z | 2022-03-28T19:44:42.000Z | ExodusImport/Source/ExodusImport/Private/JsonObjects/JsonExternResourceList.cpp | adamgoodrich/ProjectExodus | 29a9fa87f981ad41e3b323702dc2b0d4523889d8 | [
"BSD-3-Clause"
] | 56 | 2019-04-07T03:55:39.000Z | 2022-03-20T04:54:57.000Z | #include "JsonImportPrivatePCH.h"
#include "JsonExternResourceList.h"
#include "macros.h"
#define JSON_ENABLE_VALUE_LOGGING
using namespace JsonObjects;
void JsonExternResourceList::load(JsonObjPtr data){
JSON_GET_VAR(data, scenes);
JSON_GET_VAR(data, materials);
JSON_GET_VAR(data, skeletons);
JSON_GET_VAR(data,... | 25 | 51 | 0.795 | AldeRoberge |
712affe121d7020efe03b542b9417e883fffc3f6 | 2,461 | cpp | C++ | cyfre/shaping/padding.cpp | mrdcvlsc/cyfre | ef008ebf2c2de45de4477dee7c0d1d3acf3ce0e8 | [
"MIT"
] | 3 | 2021-07-02T14:38:55.000Z | 2021-08-17T10:08:27.000Z | cyfre/shaping/padding.cpp | mrdcvlsc/cyfre | ef008ebf2c2de45de4477dee7c0d1d3acf3ce0e8 | [
"MIT"
] | null | null | null | cyfre/shaping/padding.cpp | mrdcvlsc/cyfre | ef008ebf2c2de45de4477dee7c0d1d3acf3ce0e8 | [
"MIT"
] | null | null | null | #ifndef CYFRE_PADDING_CPP
#define CYFRE_PADDING_CPP
#include <iostream>
#include "../classes/matrix_class.hpp"
namespace cyfre
{
/// padding self
template<class T>
void mat<T>::padding(size_t pad_height, size_t pad_width)
{
#ifdef DISPLAY_FUNC_CALLS
auto start = std::chrono::high_resol... | 28.287356 | 106 | 0.596099 | mrdcvlsc |
712ce17a21b99ce1e4e2ea90bb232249ffc7ef16 | 1,946 | hpp | C++ | vren/vren/material.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | 1 | 2022-02-07T14:22:02.000Z | 2022-02-07T14:22:02.000Z | vren/vren/material.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | null | null | null | vren/vren/material.hpp | loryruta/vren | 0d5a7ee61b7e42f17451293b32d26f4958d8ffa5 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <glm/glm.hpp>
#include "base/resource_container.hpp"
#include "vk_helpers/buffer.hpp"
#include "gpu_repr.hpp"
#include "pipeline/render_graph.hpp"
namespace vren
{
// Forward decl
class context;
// ----------------------------------------------------------------------... | 27.408451 | 112 | 0.707605 | loryruta |
7131cbf2e97f7c43c0fd03d7bbe63f45d1ce0396 | 927 | cpp | C++ | Tefnout/src/Tefnout/Rendering/OpenGL/OpenGlIndexBuffer.cpp | JeremyBois/Tefnout | 3e0d79c96857a395d2f00a61bb25a49ce39c8c89 | [
"Apache-2.0",
"MIT"
] | null | null | null | Tefnout/src/Tefnout/Rendering/OpenGL/OpenGlIndexBuffer.cpp | JeremyBois/Tefnout | 3e0d79c96857a395d2f00a61bb25a49ce39c8c89 | [
"Apache-2.0",
"MIT"
] | null | null | null | Tefnout/src/Tefnout/Rendering/OpenGL/OpenGlIndexBuffer.cpp | JeremyBois/Tefnout | 3e0d79c96857a395d2f00a61bb25a49ce39c8c89 | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "OpenGlIndexBuffer.hpp"
#include "glad/glad.h"
namespace Tefnout
{
namespace Rendering
{
OpenGlIndexBuffer::OpenGlIndexBuffer(uint32_t *indexes, uint32_t count) : m_id(0), m_count(count)
{
glCreateBuffers(1, &m_id);
// Bind to update data
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, m_id);
glBufferD... | 22.609756 | 97 | 0.743258 | JeremyBois |
713b753f545b879982f8a98291cde7277859da2f | 3,755 | cpp | C++ | src/shell.cpp | jmaxxz/OpenRemoteStart | d913a0a07a500f2d8d8fa23ac1d9cbd0842c0363 | [
"BSD-3-Clause"
] | 22 | 2019-08-10T20:24:04.000Z | 2021-12-17T12:42:50.000Z | src/shell.cpp | jmaxxz/OpenRemoteStart | d913a0a07a500f2d8d8fa23ac1d9cbd0842c0363 | [
"BSD-3-Clause"
] | null | null | null | src/shell.cpp | jmaxxz/OpenRemoteStart | d913a0a07a500f2d8d8fa23ac1d9cbd0842c0363 | [
"BSD-3-Clause"
] | 8 | 2019-08-10T20:25:16.000Z | 2022-03-14T20:27:32.000Z | // Copyright 2019 Jmaxxz
// BSD 3-Clause License
#include "shell.h"
#include "Particle.h"
//-------------------------------------------
// https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html
#define COMPILED_TIME __TIME__
#define COMPILED_DATE __DATE__
//-------------------------------------------
Shel... | 23.765823 | 119 | 0.608256 | jmaxxz |
713fc8134b1e83647acacbd2d4279bb400c12dfc | 1,392 | cpp | C++ | codejam/2012_QR/googlers/googlers.cpp | lurodrigo/solved-problems | 09ce097431ceb28a9704de8ca301d569cfc16584 | [
"MIT"
] | 3 | 2018-04-19T00:57:59.000Z | 2021-08-01T23:33:30.000Z | codejam/2012_QR/googlers/googlers.cpp | lurodrigo/solved-problems | 09ce097431ceb28a9704de8ca301d569cfc16584 | [
"MIT"
] | null | null | null | codejam/2012_QR/googlers/googlers.cpp | lurodrigo/solved-problems | 09ce097431ceb28a9704de8ca301d569cfc16584 | [
"MIT"
] | 1 | 2020-04-10T17:59:01.000Z | 2020-04-10T17:59:01.000Z |
/*
Google Code Jam
2012 Qualification Round
Problem: Dancing with the Googlers
Submission date: 21/04/2012
Solved by: Luiz Rodrigo <@lurodrigo> <luizrodri.go@hotmail.com>
Tags: arithmetic
Complexity: O(n)
*/
#include <iostream>
#include <cstdio>
using namespace std;
int pGreater(int ... | 20.776119 | 67 | 0.426006 | lurodrigo |
713ff660a05ce0e9cf3e1996121f5b897ab616de | 226 | hpp | C++ | src/components/tint-colour.hpp | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 44 | 2019-06-06T21:33:30.000Z | 2022-03-26T06:18:23.000Z | src/components/tint-colour.hpp | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 1 | 2019-09-27T12:04:52.000Z | 2019-09-29T13:30:42.000Z | src/components/tint-colour.hpp | guillaume-haerinck/imac-tower-defense | 365a32642ea0d3ad8b2b7d63347d585c44d9f670 | [
"MIT"
] | 8 | 2019-07-26T16:44:26.000Z | 2020-11-24T17:56:18.000Z | #pragma once
#include <glm/glm.hpp>
namespace cmpt {
struct TintColour {
TintColour(glm::vec4 col, bool bOneTimeOnly = false) : col(col), bOneTimeOnly(bOneTimeOnly) {}
glm::vec4 col;
bool bOneTimeOnly;
};
}
| 17.384615 | 97 | 0.672566 | guillaume-haerinck |
7142ca54a0a2f0be10c44dff0642e285b5c6c72b | 1,308 | cpp | C++ | systemtimer.cpp | jhbe/flight-level | 6e243d69d5cc3d0db3cfbd4562755f68ba334182 | [
"MIT"
] | null | null | null | systemtimer.cpp | jhbe/flight-level | 6e243d69d5cc3d0db3cfbd4562755f68ba334182 | [
"MIT"
] | null | null | null | systemtimer.cpp | jhbe/flight-level | 6e243d69d5cc3d0db3cfbd4562755f68ba334182 | [
"MIT"
] | null | null | null | #include "systemtimer.h"
#define SYSTEMTIMER_BASE 0x20003000UL
typedef struct {
volatile uint32_t cs;
volatile uint32_t clo;
volatile uint32_t clh;
volatile uint32_t c0;
volatile uint32_t c1;
volatile uint32_t c2;
volatile uint32_t c3;
} SYSTEMTIMER;
SYSTEMTIMER *st = (SYSTEMTIMER *)SYSTEMTIMER_BASE;
uint6... | 20.761905 | 73 | 0.65367 | jhbe |
71443be47c37bb187a876b4f5292151e70f418ff | 1,317 | cxx | C++ | Pythia6_2_22/Pythia6.cxx | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | Pythia6_2_22/Pythia6.cxx | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | Pythia6_2_22/Pythia6.cxx | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | #include "Pythia6.h"
//
// Declare several f77 functions/subroutines
//
#define pytune F77_NAME(pytune,PYTUNE) /* selects pythia tune */
#define pyinit F77_NAME(pyinit,PYINIT) /* pythia initialization */
#define pylist F77_NAME(pylist,PYLIST) /* pythia event recrd listing */
#define pyevnt F77_NAME(pyevnt,PYEVNT) /* g... | 48.777778 | 179 | 0.694002 | klendathu2k |
71464eb4b8707259e6c002a0752fa24ee2a2ec78 | 4,977 | cpp | C++ | src/knapsack/branchbound.cpp | ThermalSpan/cpp-knapsack | dcc577a3ef9f9da1f2a85400465f488d91fdd8cf | [
"MIT"
] | null | null | null | src/knapsack/branchbound.cpp | ThermalSpan/cpp-knapsack | dcc577a3ef9f9da1f2a85400465f488d91fdd8cf | [
"MIT"
] | null | null | null | src/knapsack/branchbound.cpp | ThermalSpan/cpp-knapsack | dcc577a3ef9f9da1f2a85400465f488d91fdd8cf | [
"MIT"
] | null | null | null | //
// branchbound.cpp
// knapsack
//
// Created by Russell Wilhelm Bentley on 1/22/16
// Copyright (c) 2015 Russell Wilhelm Bentley.
// Distributed under the MIT License
//
#include <math.h>
#include <iostream>
#include <queue>
#include "branchbound.h"
struct Node {
int s_depth; // Which Item are we choosi... | 29.981928 | 101 | 0.568013 | ThermalSpan |
7146a98f69692a3fb808beecf1ff56575857de63 | 425 | cpp | C++ | C++/convert-1d-array-into-2d-array.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/convert-1d-array-into-2d-array.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/convert-1d-array-into-2d-array.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(m * n)
// Space: O(1)
class Solution {
public:
vector<vector<int>> construct2DArray(vector<int>& original, int m, int n) {
if (size(original) != m * n) {
return {};
}
vector<vector<int>> result;
for (int i = 0; i < size(original); i += n) {
result... | 25 | 80 | 0.508235 | Priyansh2 |
714ba3daa88a772d25baa17c052f4b74ec7e18c4 | 725 | hpp | C++ | extlib/u5e/encoding_assertion.hpp | kmc7468/talkheui | 08dc0f4de9fccad44cea6bda87044f44907f2ba4 | [
"MIT"
] | 15 | 2019-06-09T05:13:55.000Z | 2021-10-06T08:35:56.000Z | extlib/u5e/encoding_assertion.hpp | kmc7468/talkheui | 08dc0f4de9fccad44cea6bda87044f44907f2ba4 | [
"MIT"
] | 1 | 2022-02-15T05:58:31.000Z | 2022-02-15T05:58:31.000Z | extlib/u5e/encoding_assertion.hpp | kmc7468/talkheui | 08dc0f4de9fccad44cea6bda87044f44907f2ba4 | [
"MIT"
] | 1 | 2020-09-02T01:08:42.000Z | 2020-09-02T01:08:42.000Z | #ifndef INCLUDED_U5E_ENCODING_ASSERTION
#define INCLUDED_U5E_ENCODING_ASSERTION
#include <iterator>
#include <u5e/iterator_assertion.hpp>
namespace u5e {
/**
* \brief Assert the encoding matches the native type
*
* Tests that the encoding can be used with the specific
* native string type.
*/
templ... | 26.851852 | 70 | 0.757241 | kmc7468 |
714de2fcfc4a71a08b7234ec15516965fb142c26 | 767 | cpp | C++ | visen/driver.cpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | visen/driver.cpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null | visen/driver.cpp | MrTAB/aabGameEngine | dc51c6e443bf087ca10e14e6884e4dfa6caef4a8 | [
"MIT"
] | null | null | null |
#include"screen.hpp"
#include"texture.hpp"
#include<exception>
int main ()
{
try
{
using namespace aab::visen;
//puppet (_mask) iron_giant darknut
Screen screen (640, 480);
screen.setClearColor (255, 0, 0);
Texture ironGiant ("media/iron_giant.PNG");
Texture darknut ("me... | 15.979167 | 71 | 0.607562 | MrTAB |
7152d903b4fd5fea21e860e0c7571674bc5c382f | 13,312 | cpp | C++ | src/CNLIOGroup.cpp | RyoTTa/geopm | 74246c8ce70ee47f53bc5629638f51c2c391027b | [
"BSD-3-Clause"
] | null | null | null | src/CNLIOGroup.cpp | RyoTTa/geopm | 74246c8ce70ee47f53bc5629638f51c2c391027b | [
"BSD-3-Clause"
] | null | null | null | src/CNLIOGroup.cpp | RyoTTa/geopm | 74246c8ce70ee47f53bc5629638f51c2c391027b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015, 2016, 2017, 2018, 2019, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this ... | 41.861635 | 104 | 0.600811 | RyoTTa |
71530494a7fd70dcbec9ea7aa654f54820ebe45f | 346 | cc | C++ | L3/ex.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | L3/ex.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | L3/ex.cc | angelgomezsa/Cplusplus | 9fd1ed5b1beffcf253019e8376b2bd41dac6e449 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
char c;
while (cin >> c) {
// si c es minuscula, la pasa a mayuscula
if (c >= 'a' and c <= 'z') c ='A'+( c-'a');
// alt: c = c-' ';
// si c es mayuscula, la pasa a minuscula
else if (c >= 'A' and c <= 'Z') c = 'a'+(c-'A');
// alt: c = c+' ';
... | 18.210526 | 50 | 0.468208 | angelgomezsa |
7154d1cbd07d2f8de3374aa818ff70898efe2aeb | 515 | hpp | C++ | src/Gui/Interface/FsUtilsQt.hpp | heroesiiifan/FreeHeroes | d9b396b527918cdf863fd2310bcf261e213bf553 | [
"MIT"
] | 17 | 2020-08-13T03:23:27.000Z | 2022-02-04T00:17:53.000Z | src/Gui/Interface/FsUtilsQt.hpp | heroesiiifan/FreeHeroes | d9b396b527918cdf863fd2310bcf261e213bf553 | [
"MIT"
] | 2 | 2021-09-05T21:00:31.000Z | 2021-09-12T07:46:53.000Z | src/Gui/Interface/FsUtilsQt.hpp | heroesiiifan/FreeHeroes | d9b396b527918cdf863fd2310bcf261e213bf553 | [
"MIT"
] | 2 | 2021-09-08T10:37:34.000Z | 2021-09-09T00:35:44.000Z | /*
* Copyright (C) 2020 Smirnov Vladimir / mapron1@gmail.com
* SPDX-License-Identifier: MIT
* See LICENSE file for details.
*/
#pragma once
#include "FsUtils.hpp"
#include <QString>
namespace FreeHeroes::Gui {
namespace std_fs = Core::std_fs;
using std_path = Core::std_path;
inline QString stdPath2QString(co... | 18.392857 | 59 | 0.730097 | heroesiiifan |
71578377d16afc3ddc62d68997ba5ddef3271aa5 | 433 | cpp | C++ | BOJ/14697.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | 2 | 2018-04-08T14:48:45.000Z | 2018-04-11T16:38:48.000Z | BOJ/14697.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | null | null | null | BOJ/14697.cpp | ryanpark91/algorithm | 22ee4ede53d47c4b255556be0b3e22395566980e | [
"MIT"
] | null | null | null | #include <stdio.h>
#define MAX_N 300
FILE *fin = stdin;
FILE *fout = stdout;
int Dy[MAX_N+1];
int Room[4];
int N;
int main()
{
int i,j ;
for(i=1;i<=3;i++) fscanf(fin,"%d", &Room[i]);
fscanf(fin,"%d",&N);
Dy[0] = 1;
for(j=1;j<=N;j++) {
for(i=1;i<=3;i++) {
if(Room[i] > j) conti... | 16.037037 | 49 | 0.448037 | ryanpark91 |
715cc68784abd3d95f5a4abec905d981997b1de4 | 5,077 | hpp | C++ | src/constant_numbers.hpp | tkbtkysms/solca | 3f3ec656d6a22255b84ef79b778e096eddff4607 | [
"MIT"
] | 11 | 2017-06-30T01:58:09.000Z | 2018-05-28T06:57:46.000Z | src/constant_numbers.hpp | itomomoti/build_naive_enc_solca | 144e2d2821431c78cc2fe63ee4bc1cbdcafd18d9 | [
"MIT"
] | null | null | null | src/constant_numbers.hpp | itomomoti/build_naive_enc_solca | 144e2d2821431c78cc2fe63ee4bc1cbdcafd18d9 | [
"MIT"
] | 2 | 2018-04-18T14:34:44.000Z | 2020-12-21T07:53:16.000Z | /* constant_numbers.hpp
MIT License
Copyright (c) 2017 Yoshimasa Takabatake
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, co... | 30.220238 | 78 | 0.477447 | tkbtkysms |
715e96fd5bcc0fb3f0603c122e1d9c79329df5b3 | 368 | cpp | C++ | regression/esbmc-cpp/queue/queue_front_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/queue/queue_front_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/queue/queue_front_bug/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | // queue::front
#include <iostream>
#include <queue>
#include <cassert>
using namespace std;
int main ()
{
queue<int> myqueue;
myqueue.push(77);
myqueue.push(16);
assert(myqueue.front() == 77);
myqueue.front() -= myqueue.back(); // 77-16=61
assert(myqueue.front() != 61);
cout << "myqueue.front() is n... | 18.4 | 63 | 0.622283 | shmarovfedor |
7163e23d949954d98cc7468ef7f7bb3c6e608b7f | 114,217 | cpp | C++ | WRK-V1.2/clr/src/vm/fieldmarshaler.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/clr/src/vm/fieldmarshaler.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/clr/src/vm/fieldmarshaler.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | // ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to ... | 35.003678 | 209 | 0.548368 | intj-t |
716d886f226c4d92f9c082fc02445a791d343c60 | 321 | cpp | C++ | lib/node/string_literal_node.cpp | NKMR6194/holang | 26ba2ccb2d2c8b28f372e45949ac2eb9dbd98f26 | [
"MIT"
] | 3 | 2018-02-13T01:33:38.000Z | 2018-02-16T05:19:24.000Z | lib/node/string_literal_node.cpp | ysakasin/holang | 26ba2ccb2d2c8b28f372e45949ac2eb9dbd98f26 | [
"MIT"
] | null | null | null | lib/node/string_literal_node.cpp | ysakasin/holang | 26ba2ccb2d2c8b28f372e45949ac2eb9dbd98f26 | [
"MIT"
] | null | null | null | #include "holang/node.hpp"
using namespace std;
using namespace holang;
void StringLiteralNode::print(int offset) {
print_offset(offset);
cout << "StringLiteral \"" << str << "\"" << endl;
}
void StringLiteralNode::code_gen(CodeSequence *codes) {
codes->append(Instruction::PUT_STRING);
codes->append(&str);
}... | 21.4 | 55 | 0.70405 | NKMR6194 |
716d991e2548d99cb623c062970d2b31e53aea79 | 17,228 | hpp | C++ | libraries/rodeos/include/b1/rodeos/callbacks/unimplemented.hpp | forfreeday/eos | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 13,162 | 2017-05-29T22:08:27.000Z | 2022-03-29T19:25:05.000Z | libraries/rodeos/include/b1/rodeos/callbacks/unimplemented.hpp | forfreeday/eos | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 6,450 | 2017-05-30T14:41:50.000Z | 2022-03-30T11:30:04.000Z | libraries/rodeos/include/b1/rodeos/callbacks/unimplemented.hpp | forfreeday/eos | 11d35f0f934402321853119d36caeb7022813743 | [
"Apache-2.0",
"MIT"
] | 4,491 | 2017-05-29T22:08:32.000Z | 2022-03-29T07:09:52.000Z | #pragma once
#include <b1/rodeos/callbacks/vm_types.hpp>
namespace b1::rodeos {
template <typename Derived>
struct unimplemented_callbacks {
template <typename T>
T unimplemented(const char* name) {
throw std::runtime_error("wasm called " + std::string(name) + ", which is unimplemented");
}
// pri... | 70.03252 | 152 | 0.574936 | forfreeday |
716e39fe05f2af31f9b82a981954fd6fb86021a4 | 1,455 | hpp | C++ | src/lighting-modes/Fire.hpp | JSydll/enlighting-letters | 24a5b45002466d05291476977fd4ee8bef03d61b | [
"MIT"
] | null | null | null | src/lighting-modes/Fire.hpp | JSydll/enlighting-letters | 24a5b45002466d05291476977fd4ee8bef03d61b | [
"MIT"
] | null | null | null | src/lighting-modes/Fire.hpp | JSydll/enlighting-letters | 24a5b45002466d05291476977fd4ee8bef03d61b | [
"MIT"
] | null | null | null | /**
* @file Fire.hpp
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2019-05-13
*
* @copyright Copyright (c) 2019
*
*/
#ifndef FIRE_HPP
#define FIRE_HPP
#include <memory>
#include "../GlobalController.hpp"
#include "../ILightingProcessor.hpp"
#include "../LedController.hpp"
namespace En... | 25.086207 | 98 | 0.657045 | JSydll |
71704fd403a4cc285188b099f7a8325a3ce4027b | 9,466 | cpp | C++ | worldinfo.cpp | Kolcha/minutor | b6f2a26ba80a81ce261c01b11ce9bde403c86a26 | [
"BSD-2-Clause"
] | 1 | 2020-01-04T17:00:47.000Z | 2020-01-04T17:00:47.000Z | worldinfo.cpp | Kolcha/minutor | b6f2a26ba80a81ce261c01b11ce9bde403c86a26 | [
"BSD-2-Clause"
] | null | null | null | worldinfo.cpp | Kolcha/minutor | b6f2a26ba80a81ce261c01b11ce9bde403c86a26 | [
"BSD-2-Clause"
] | null | null | null | /** Copyright (c) 2022, EtlamGit */
#include "worldinfo.h"
#include <QtWidgets/QMenu>
#include <QDirIterator>
#include "nbt/nbt.h"
#include "zipreader.h"
#include "json/json.h"
WorldInfo::WorldInfo()
: menuActionGroup(NULL)
{
clear();
}
WorldInfo::~WorldInfo() {}
WorldInfo& WorldInfo::Instance() {
static W... | 28.859756 | 104 | 0.604268 | Kolcha |
7171e19acbce881343accc494321947dbed37ba0 | 3,864 | cpp | C++ | src/Explorer.cpp | bhargav-umd/AGV_Navigation | 96cf832e43d0ab5f600d86509faefc7ded9a7305 | [
"MIT"
] | null | null | null | src/Explorer.cpp | bhargav-umd/AGV_Navigation | 96cf832e43d0ab5f600d86509faefc7ded9a7305 | [
"MIT"
] | null | null | null | src/Explorer.cpp | bhargav-umd/AGV_Navigation | 96cf832e43d0ab5f600d86509faefc7ded9a7305 | [
"MIT"
] | null | null | null | /*
* @copyright (c) MIT License 2018 Bhargav Dandamudi, Mayank Pathak
*
* MIT License
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the 'Software'), to deal in the Software without
* restriction, including without limita... | 35.127273 | 77 | 0.674172 | bhargav-umd |
7176eb7daf9812eae6a96d6d120cc641e689a147 | 2,204 | cpp | C++ | src/main.cpp | Eldregon/Random5eCharacterGen | 00d7fa11ff4356d0a83f661220850ae87c440915 | [
"MIT"
] | 1 | 2018-11-18T04:51:23.000Z | 2018-11-18T04:51:23.000Z | src/main.cpp | Eldregon/Random5eCharacterGen | 00d7fa11ff4356d0a83f661220850ae87c440915 | [
"MIT"
] | 3 | 2018-11-17T09:15:53.000Z | 2018-11-18T04:50:52.000Z | src/main.cpp | Eldregon/Random5eCharacterGen | 00d7fa11ff4356d0a83f661220850ae87c440915 | [
"MIT"
] | null | null | null | /*
* Nicholas Wallace
*
* User interface for the character creation
*/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "character.hpp"
#include "character_classes.hpp"
int get_input(std::string prompt, std::vector<std::string> selections) {
std::cout << prompt << std::end... | 24.21978 | 86 | 0.500907 | Eldregon |
717b2e80e22120e925eec7a46a215d9897df7394 | 7,973 | cpp | C++ | master/core/third/cxxtools/test/jsonserializer-test.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-04T08:22:48.000Z | 2019-10-26T21:44:59.000Z | master/core/third/cxxtools/test/jsonserializer-test.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | null | null | null | master/core/third/cxxtools/test/jsonserializer-test.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-12-19T11:13:56.000Z | 2018-02-23T08:44:03.000Z | /*
* Copyright (C) 2011 Tommi Maekitalo
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* As a sp... | 33.220833 | 99 | 0.581839 | importlib |
717ba27874395e152c7b6b8e04578629b3bf1c88 | 3,583 | hh | C++ | src/EnfPre.hh | MehrdadZareian/GMARA | 85428ae55a0cb8ae541d6db668307cacc3899cee | [
"MIT"
] | 1 | 2021-09-14T08:14:31.000Z | 2021-09-14T08:14:31.000Z | src/EnfPre.hh | MehrdadZareian/GMARA | 85428ae55a0cb8ae541d6db668307cacc3899cee | [
"MIT"
] | null | null | null | src/EnfPre.hh | MehrdadZareian/GMARA | 85428ae55a0cb8ae541d6db668307cacc3899cee | [
"MIT"
] | null | null | null | /*
* EnfPre.hh
*
* created: Jan 2017
* author: Matthias Rungger
*/
/** @file **/
#ifndef ENFPRE_HH_
#define ENFPRE_HH_
#include <iostream>
#include <memory>
#include "SymbolicSet.hh"
#include "SymbolicModel.hh"
namespace scots {
/**
* @class EnfPre
*
* @brief computes of the enforcable predecessor
... | 29.368852 | 107 | 0.624616 | MehrdadZareian |
717f9586ed468e2f535db5dfae8b9fb2ef237380 | 1,407 | hpp | C++ | Source/odlib/logger/logger.hpp | WopsS/ODLib | 3ec4fbd956409f32f2badb8a7fdbf18011f6e71f | [
"MIT"
] | 2 | 2017-06-15T17:55:24.000Z | 2018-01-01T17:44:07.000Z | Source/odlib/logger/logger.hpp | WopsS/ODLib | 3ec4fbd956409f32f2badb8a7fdbf18011f6e71f | [
"MIT"
] | null | null | null | Source/odlib/logger/logger.hpp | WopsS/ODLib | 3ec4fbd956409f32f2badb8a7fdbf18011f6e71f | [
"MIT"
] | null | null | null | #pragma once
#include <odlib/logger/record/record.hpp>
#include <odlib/logger/settings.hpp>
namespace odlib
{
namespace logger
{
class logger
{
public:
/// <summary>
/// Appends a record to the file.
/// </summary>
virtual void operator... | 26.54717 | 105 | 0.638237 | WopsS |
718018ea6c960f2813c7b7100cbcdd324ac6da8a | 3,548 | hpp | C++ | include/sol/compatibility/version.hpp | Brandantl/sol2 | c3f12f1d1db8c3a8372342cd149fe5f2f7cf0216 | [
"MIT"
] | 1 | 2021-03-20T05:24:20.000Z | 2021-03-20T05:24:20.000Z | include/sol/compatibility/version.hpp | Brandantl/sol2 | c3f12f1d1db8c3a8372342cd149fe5f2f7cf0216 | [
"MIT"
] | null | null | null | include/sol/compatibility/version.hpp | Brandantl/sol2 | c3f12f1d1db8c3a8372342cd149fe5f2f7cf0216 | [
"MIT"
] | null | null | null | // sol3
// The MIT License (MIT)
// Copyright (c) 2013-2019 Rapptz, ThePhD and contributors
// 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 limit... | 35.838384 | 165 | 0.739008 | Brandantl |
7184bb8b6d0655680cb180312b30ad9e976e497e | 648 | cpp | C++ | framework/PlaneFit.cpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | framework/PlaneFit.cpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | framework/PlaneFit.cpp | aosterthun/rgbdri | 8e513172f512c902f7d6d8631c7580b5b62277c4 | [
"MIT"
] | null | null | null | #include "PlaneFit.hpp"
#include <CGAL/Simple_cartesian.h>
#include <CGAL/linear_least_squares_fitting_3.h>
#include <vector>
#include <cstdlib>
#include <fstream>
#include <sstream>
typedef double FT;
typedef CGAL::Simple_cartesian<FT> K;
typedef K::Plane_3 Plane;
typedef K:... | 19.058824 | 100 | 0.665123 | aosterthun |
719a2e3805c8d577eaec056d6f0fc6d30acb4bf3 | 785 | cpp | C++ | MotorwayScene/MotorwayScene/Src/Core/CameraObject.cpp | BKhalil85/MotorwayScene | 112e7c5dc5726b90179c34423d3f6f32c75a722f | [
"Apache-2.0"
] | 1 | 2021-08-23T19:35:32.000Z | 2021-08-23T19:35:32.000Z | MotorwayScene/MotorwayScene/Src/Core/CameraObject.cpp | BAKA7K/MotorwayScene | 112e7c5dc5726b90179c34423d3f6f32c75a722f | [
"Apache-2.0"
] | null | null | null | MotorwayScene/MotorwayScene/Src/Core/CameraObject.cpp | BAKA7K/MotorwayScene | 112e7c5dc5726b90179c34423d3f6f32c75a722f | [
"Apache-2.0"
] | null | null | null | #include "CameraObject.h"
CameraObject::CameraObject() :
m_FOV(45.0f), m_window(nullptr)
{}
CameraObject::CameraObject(std::shared_ptr<WindowFrame> window, const glm::vec3& pos, float fov) :
m_window(window), m_position(pos), m_FOV(fov)
{}
CameraObject::~CameraObject() {}
void CameraObject::SetPosition(const glm:... | 17.065217 | 98 | 0.727389 | BKhalil85 |
719ad4ea706167663de62ff12a96d5c3f05b20c3 | 2,124 | cpp | C++ | arrays/6union.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | null | null | null | arrays/6union.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | null | null | null | arrays/6union.cpp | sumana2001/problems450 | 90b804b7063bb3f11f90b7506576ed14d27e1776 | [
"MIT"
] | 1 | 2021-08-19T12:20:06.000Z | 2021-08-19T12:20:06.000Z | #include <bits/stdc++.h>
using namespace std;
int binarySearch(int arr[],int l,int r,int key){
if(r>=l){
int mid=(l+r)/2;
if(key==arr[mid])
return mid;
if(key<arr[mid])
return binarySearch(arr,l,mid-1,key);
return binarySearch(arr,mid+1,r,key);
}
retu... | 21.454545 | 61 | 0.45904 | sumana2001 |
719cc4ad0e8fd26ddb6a9ebfa4745fac92ed1f52 | 2,919 | cpp | C++ | 999.available_captures_for_rook.cpp | liangwt/leetcode | 8f279343e975666a63ee531228c6836f20f199ca | [
"Apache-2.0"
] | 5 | 2019-09-12T05:23:44.000Z | 2021-11-15T11:19:39.000Z | 999.available_captures_for_rook.cpp | liangwt/leetcode | 8f279343e975666a63ee531228c6836f20f199ca | [
"Apache-2.0"
] | 18 | 2019-09-23T13:11:06.000Z | 2019-11-09T11:20:17.000Z | 999.available_captures_for_rook.cpp | liangwt/leetcode | 8f279343e975666a63ee531228c6836f20f199ca | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <assert.h>
#include <iostream>
using namespace std;
class Solution
{
public:
int numRookCaptures(vector<vector<char>> &board)
{
int N = 8, i = 0, j = 0;
// location the R
for (int ii = 0; ii < N; ++ii)
{
for (int jj = 0; jj < N; ++jj)
... | 28.067308 | 367 | 0.206235 | liangwt |
71a9efa17f44a1e8307408d2b8047370776fd601 | 8,110 | cpp | C++ | src/Frameworks/Esprit/Esprit_VariableSet.cpp | Connway/Shibboleth | 23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35 | [
"MIT"
] | 1 | 2020-04-06T17:35:47.000Z | 2020-04-06T17:35:47.000Z | src/Frameworks/Esprit/Esprit_VariableSet.cpp | Connway/Shibboleth | 23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35 | [
"MIT"
] | null | null | null | src/Frameworks/Esprit/Esprit_VariableSet.cpp | Connway/Shibboleth | 23dda9a066db8dfaf8c8d56cb1e3d9929b6ced35 | [
"MIT"
] | null | null | null | /************************************************************************************
Copyright (C) 2021 by Nicholas LaCroix
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 restrictio... | 29.172662 | 116 | 0.695314 | Connway |
71aefa611fbc7cf87b0c3765fb91a74b611ed2ff | 1,408 | cc | C++ | src/xg/parser/parser_acquire_next_image.cc | kctan0805/xg | 2935d0c7dac442b007cbf50b81ecd10a470dd087 | [
"MIT"
] | 6 | 2019-12-05T08:01:54.000Z | 2019-12-14T09:37:11.000Z | src/xg/parser/parser_acquire_next_image.cc | kctan0805/xg | 2935d0c7dac442b007cbf50b81ecd10a470dd087 | [
"MIT"
] | null | null | null | src/xg/parser/parser_acquire_next_image.cc | kctan0805/xg | 2935d0c7dac442b007cbf50b81ecd10a470dd087 | [
"MIT"
] | 1 | 2019-12-05T22:55:22.000Z | 2019-12-05T22:55:22.000Z | // xg - XML Graphics Device
// Copyright (c) Jim Tan
//
// Free use of the XML Graphics Engine is
// permitted under the guidelines and in accordance with the most
// current version of the MIT License.
// http://www.opensource.org/licenses/MIT
#include <memory>
#include "tinyxml2.h"
#include "xg/layout.h"
#include "... | 28.16 | 78 | 0.724432 | kctan0805 |
71b1fb942b6b8e856bdf0d68a7d746b12bce7df6 | 924 | cpp | C++ | test/src/list/insert.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 9 | 2020-07-04T16:46:13.000Z | 2022-01-09T21:59:31.000Z | test/src/list/insert.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | null | null | null | test/src/list/insert.cpp | jonathanpoelen/jln.mp | e5f05fc4467f14ac0047e3bdc75a04076e689985 | [
"MIT"
] | 1 | 2021-05-23T13:37:40.000Z | 2021-05-23T13:37:40.000Z | #include "test.hpp"
#include "test/numbers.hpp"
#include "jln/mp/smp/list/insert.hpp"
TEST_SUITE_BEGIN()
TEST()
{
using namespace jln::mp;
using namespace ut::ints;
test_pack2<insert, _1, void>();
test_pack2<insert, void, void>();
ut::same<emp::numbers<0, 3, 1, 2>,
emp::insert_c<seq_0_1_2, 1, _3>>();... | 24.315789 | 75 | 0.613636 | jonathanpoelen |
71b3dc00899e0f0b2c3689b13545c29d80d35fad | 2,064 | hpp | C++ | NeuKaDiS/KaDiS/external/RBC/src/RBC/RangeGroup.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | null | null | null | NeuKaDiS/KaDiS/external/RBC/src/RBC/RangeGroup.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | null | null | null | NeuKaDiS/KaDiS/external/RBC/src/RBC/RangeGroup.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 1 | 2019-10-16T06:13:28.000Z | 2019-10-16T06:13:28.000Z | /*****************************************************************************
* This file is part of the Project RBC
*
* Copyright (c) 2016-2019, Michael Axtmann <michael.axtmann@kit.edu>
* Copyright (c) 2016-2017, Armin Wiebigke <armin.wiebigke@gmail.com>
*
* This program is free software: you can redistribute ... | 28.273973 | 81 | 0.647287 | bingmann |
71b538b68613f1ba48b835d689ac123a3ba6afdb | 1,380 | cpp | C++ | test/scope_guard/scope_guard.cpp | fizyr/estd | 6562e7d3d21972f9eee7f4b36dfd381b4ae9d2bf | [
"BSD-3-Clause"
] | 9 | 2018-07-28T21:37:28.000Z | 2021-12-20T22:24:14.000Z | test/scope_guard/scope_guard.cpp | fizyr/estd | 6562e7d3d21972f9eee7f4b36dfd381b4ae9d2bf | [
"BSD-3-Clause"
] | 8 | 2019-05-17T18:40:19.000Z | 2021-10-11T09:35:08.000Z | test/scope_guard/scope_guard.cpp | fizyr/estd | 6562e7d3d21972f9eee7f4b36dfd381b4ae9d2bf | [
"BSD-3-Clause"
] | 4 | 2019-02-23T13:39:26.000Z | 2021-12-20T22:24:19.000Z | #include "scope_guard.hpp"
#include <catch2/catch.hpp>
#include <type_traits>
namespace estd {
TEST_CASE("scope_guards can be moved but not copied", "[scope_guard]") {
REQUIRE(std::is_copy_constructible_v <scope_guard<void(*)()>> == false);
REQUIRE(std::is_copy_assignable_v <scope_guard<void(*)()>> == false);... | 21.5625 | 78 | 0.661594 | fizyr |
71b9dfa58e85595a682e4033d7c048f98c713f48 | 3,956 | cpp | C++ | AlgorithmLearning/bpnet.cpp | lxw0902/CppLearning | f69d2be5c3668d69dfa0a72586f7da11c2836a23 | [
"MIT"
] | null | null | null | AlgorithmLearning/bpnet.cpp | lxw0902/CppLearning | f69d2be5c3668d69dfa0a72586f7da11c2836a23 | [
"MIT"
] | null | null | null | AlgorithmLearning/bpnet.cpp | lxw0902/CppLearning | f69d2be5c3668d69dfa0a72586f7da11c2836a23 | [
"MIT"
] | null | null | null | #include <string.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include "bpnet.h"
//获取训练所有样本数据
void BP::GetData(const Vector<Data> _data)
{
data = _data;
}
//开始进行训练
void BP::Train()
{
printf("Begin to train BP NetWork!\n");
GetNums();
InitNetWork();
int num = data.size();
for(i... | 22.224719 | 84 | 0.45273 | lxw0902 |
71c0e2aadfca4b6cfbca11018cdb0414b58c56a3 | 3,021 | hpp | C++ | currency.hpp | castedo/isomon | 2db5f7b701161bfd65b064d540c0ec0c96a80892 | [
"MIT"
] | 7 | 2015-10-05T04:24:34.000Z | 2021-03-27T09:44:50.000Z | currency.hpp | castedo/isomon | 2db5f7b701161bfd65b064d540c0ec0c96a80892 | [
"MIT"
] | null | null | null | currency.hpp | castedo/isomon | 2db5f7b701161bfd65b064d540c0ec0c96a80892 | [
"MIT"
] | 1 | 2019-08-08T09:16:23.000Z | 2019-08-08T09:16:23.000Z | #ifndef ISOMON_CURRENCY_HPP
#define ISOMON_CURRENCY_HPP
/** @file currency.hpp
@brief C++ header for currency class
*/
#include "currency_data.h"
#include <string>
#include <ostream>
#include <istream>
namespace isomon {
/// ISO 4217 currency
class currency
{
public:
/// Contruct ISO "no currency" code "XXX... | 28.771429 | 74 | 0.670639 | castedo |
71cae9da424fb9e7fe00c1555584689993b1f96f | 1,485 | hpp | C++ | mdk/include/mdk/files/seq/Sequence.hpp | if-pan-zpp/mdk | a66575ae2160b3d8408fe4dceb971706f650bd05 | [
"MIT"
] | null | null | null | mdk/include/mdk/files/seq/Sequence.hpp | if-pan-zpp/mdk | a66575ae2160b3d8408fe4dceb971706f650bd05 | [
"MIT"
] | null | null | null | mdk/include/mdk/files/seq/Sequence.hpp | if-pan-zpp/mdk | a66575ae2160b3d8408fe4dceb971706f650bd05 | [
"MIT"
] | 1 | 2021-06-19T09:24:34.000Z | 2021-06-19T09:24:34.000Z | #pragma once
#include "../../utils/AminoAcid.hpp"
#include "../cmap/ContactMap.hpp"
#include "../../model/Model.hpp"
namespace mdk::seq {
/**
* A sequence file, i.e. a set of chains with optional interposed contact
* maps.
*/
class Sequence {
public:
/// A single chain in the sequenc... | 33 | 80 | 0.592593 | if-pan-zpp |
71cc5bdaa14d8c0de42dcb723e4b8250751405e4 | 11,457 | hh | C++ | hackt_docker/hackt/src/Object/common/scopespace.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/common/scopespace.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/common/scopespace.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/common/scopespace.hh"
Classes for scoped objects including namespaces.
This file came from "Object/common/scopespace.h"
in its previous short-lived history.
$Id: scopespace.hh,v 1.24 2009/10/27 18:21:47 fang Exp $
*/
#ifndef __HAC_OBJECT_COMMON_SCOPESPACE_H__
#define __HAC_OBJECT_COMMON_SC... | 28.858942 | 79 | 0.740508 | broken-wheel |
71d67924518dcd92ba4abe7aea56736b66922466 | 6,406 | cc | C++ | src/lsm/table_builder_test.cc | YukinoDB/YukinoDB | 74be184d7e2adae4d070f11bcbabdac5697705b7 | [
"BSD-2-Clause"
] | 1 | 2017-01-06T02:02:33.000Z | 2017-01-06T02:02:33.000Z | src/lsm/table_builder_test.cc | YukinoDB/YukinoDB | 74be184d7e2adae4d070f11bcbabdac5697705b7 | [
"BSD-2-Clause"
] | null | null | null | src/lsm/table_builder_test.cc | YukinoDB/YukinoDB | 74be184d7e2adae4d070f11bcbabdac5697705b7 | [
"BSD-2-Clause"
] | null | null | null | // The YukinoDB Unit Test Suite
//
// table_builder_test.cc
//
// Created by Niko Bellic.
//
//
#include "lsm/table_builder.h"
#include "lsm/table.h"
#include "lsm/chunk.h"
#include "yukino/comparator.h"
#include "base/mem_io.h"
#include "base/io-inl.h"
#include "base/io.h"
#include "gtest/gtest.h"
#include <stdio.h>... | 24.173585 | 71 | 0.576335 | YukinoDB |
71d7c7faa6326f24cc33199408fe5bdec413fa48 | 807 | cpp | C++ | opencv2.cpp | axnjaxn/libbyteimage | ceba2ec2c5b619535c1d773df6d7e29561ceec8e | [
"BSD-3-Clause"
] | null | null | null | opencv2.cpp | axnjaxn/libbyteimage | ceba2ec2c5b619535c1d773df6d7e29561ceec8e | [
"BSD-3-Clause"
] | null | null | null | opencv2.cpp | axnjaxn/libbyteimage | ceba2ec2c5b619535c1d773df6d7e29561ceec8e | [
"BSD-3-Clause"
] | null | null | null | #include "opencv2.h"
using namespace byteimage;
cv::Mat byteimage::toMat(const ByteImage& img) {
if (img.nchannels != 3) return toMat(img.toColor());
std::vector<cv::Mat> mat(3);
for (int ch = 0; ch < 3; ch++) {
mat[2 - ch] = cv::Mat(img.nr, img.nc, CV_8UC1);
for (int r = 0; r < img.nr; r++)
f... | 22.416667 | 61 | 0.560099 | axnjaxn |
71d8fe80a4f1cd4e3e267fd98f0bdaa1a8a14ab2 | 17,099 | cpp | C++ | src/color.cpp | chinz07/carrot | a56c0fc89190a1b2e026e413052b370584694983 | [
"BSL-1.0"
] | null | null | null | src/color.cpp | chinz07/carrot | a56c0fc89190a1b2e026e413052b370584694983 | [
"BSL-1.0"
] | 3 | 2018-10-28T13:56:21.000Z | 2019-07-28T16:00:37.000Z | src/color.cpp | chinz07/carrot | a56c0fc89190a1b2e026e413052b370584694983 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017 Christopher Hinz
//
// 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)
#include <carrot/color.hpp>
#include <carrot/integers.hpp>
#include <algorithm>
#include <array>
#include <cmath>
name... | 38.424719 | 96 | 0.588631 | chinz07 |
71dceeb3fb0ba7febc3e302ea5fa170b7af7493a | 6,400 | hpp | C++ | tsprintf.hpp | miRoox/type-safe-printf | 82a148e99ba2f8b5e7076ae3db3ca5d822c8acd3 | [
"MIT"
] | null | null | null | tsprintf.hpp | miRoox/type-safe-printf | 82a148e99ba2f8b5e7076ae3db3ca5d822c8acd3 | [
"MIT"
] | null | null | null | tsprintf.hpp | miRoox/type-safe-printf | 82a148e99ba2f8b5e7076ae3db3ca5d822c8acd3 | [
"MIT"
] | null | null | null | /**
** Copyright (c) 2017-2021 miRoox.
**
** 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,... | 30.188679 | 124 | 0.531563 | miRoox |
71de49d90e2eb2aced55f55c889fc60c3020d251 | 2,637 | cpp | C++ | workspace/sol07_Containers/src/TopSuite.cpp | PeterSommerlad/CPPCourseIntroduction | 9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4 | [
"MIT"
] | null | null | null | workspace/sol07_Containers/src/TopSuite.cpp | PeterSommerlad/CPPCourseIntroduction | 9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4 | [
"MIT"
] | null | null | null | workspace/sol07_Containers/src/TopSuite.cpp | PeterSommerlad/CPPCourseIntroduction | 9bc9cda460d504a3cf31bb059e858f9e8d5d3bf4 | [
"MIT"
] | null | null | null | #include "TopSuite.h"
#include "cute.h"
#include "statistics.h"
#include <map>
#include <set>
#include <string>
using namespace statistics;
using text::Word;
using Histogram = std::map<Word, int>;
Word operator"" _w(char const * literal, size_t length) {
return Word{std::string{literal}};
}
void ... | 23.336283 | 84 | 0.602579 | PeterSommerlad |
71e2af4192be496a749ebf0745e5b296aa51f102 | 1,680 | cpp | C++ | src/mainwindow.cpp | MichaelStraube/sudoku | 4b8457b976c6e01bca3c172ea6d24e02d039c3d5 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | MichaelStraube/sudoku | 4b8457b976c6e01bca3c172ea6d24e02d039c3d5 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | MichaelStraube/sudoku | 4b8457b976c6e01bca3c172ea6d24e02d039c3d5 | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "./ui_mainwindow.h"
#include <QRegularExpressionValidator>
#include <QMessageBox>
#include <memory>
#include "sudoku.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
int row = 0;
int col = 1;
for (int i = 0; i < 81; ... | 21.818182 | 89 | 0.630952 | MichaelStraube |
71e66e233cc2b0a352bfcc1bbb624e69885e9535 | 1,908 | hpp | C++ | SDK/ARKSurvivalEvolved_DinoAttackStateRamming_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DinoAttackStateRamming_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DinoAttackStateRamming_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DinoAttackStateRamming_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------------------------------... | 39.75 | 173 | 0.530922 | 2bite |
71ea1a07d84d82b5eb9fa5424f34b19852525ff8 | 3,056 | cpp | C++ | mp/src/game/server/Mod/CustomHandSpawn.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 7 | 2019-02-04T01:17:26.000Z | 2022-02-26T21:36:34.000Z | mp/src/game/server/Mod/CustomHandSpawn.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 11 | 2016-05-06T22:44:46.000Z | 2016-05-06T22:45:03.000Z | mp/src/game/server/Mod/CustomHandSpawn.cpp | hekar/luminousforts-2013 | 09f07df4def93fa0d774721375a6c7c9da26d71f | [
"Unlicense"
] | 2 | 2016-06-28T11:34:53.000Z | 2017-04-01T18:08:46.000Z | /* ***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/LGPL 2.1/GPL 2.0
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
...
for the specific language governing rights and limitations under the
License.
The Original Code... | 24.253968 | 119 | 0.694699 | hekar |
71eba65fde5acba6bd770c8ef0ec3ead8d53ec84 | 2,004 | cc | C++ | src/array/cpu/coo_sort.cc | arangoml/dgl | d135058f9986fadcbdf6aa1011a00c3ad45a8ce3 | [
"Apache-2.0"
] | 3 | 2020-02-28T07:28:52.000Z | 2020-06-03T08:41:55.000Z | src/array/cpu/coo_sort.cc | arangoml/dgl | d135058f9986fadcbdf6aa1011a00c3ad45a8ce3 | [
"Apache-2.0"
] | null | null | null | src/array/cpu/coo_sort.cc | arangoml/dgl | d135058f9986fadcbdf6aa1011a00c3ad45a8ce3 | [
"Apache-2.0"
] | null | null | null | /*!
* Copyright (c) 2020 by Contributors
* \file array/cpu/coo_sort.cc
* \brief COO sorting
*/
#include <dgl/array.h>
#include <numeric>
#include <algorithm>
#include <vector>
namespace dgl {
namespace aten {
namespace impl {
template <DLDeviceType XPU, typename IdType>
COOMatrix COOSort(COOMatrix coo, bool sort... | 31.3125 | 73 | 0.659681 | arangoml |
71eff886e865da7e2b2fa799ec838e711b951460 | 769 | cpp | C++ | Cplusplus/week_nine/extra/FunctionTemplates.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | 1 | 2016-12-20T19:53:03.000Z | 2016-12-20T19:53:03.000Z | Cplusplus/week_nine/extra/FunctionTemplates.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | Cplusplus/week_nine/extra/FunctionTemplates.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | #include <iostream>
template <typename AnyType>
void Swap( AnyType &a, AnyType& b )
{
AnyType temp;
temp = a;
a = b;
b = temp;
}
int main()
{
int a = 1;
int b = 3;
double ad = 2.0;
double bd = 5.3;
std::string as = "hello";
std::string bs = "world";
std::cout << "a: " << a;
std::cout << " b... | 15.38 | 42 | 0.453836 | nexusstar |
71f1cb076e1fc94e1dc7ee65e76104106124ba09 | 5,600 | cpp | C++ | platform/android/src/style/light.cpp | tz576/Mapbox | 681e0141de63d0d5a545e87c40216163b2d63fc6 | [
"BSL-1.0",
"Apache-2.0"
] | 6 | 2019-06-17T05:41:03.000Z | 2022-01-20T13:16:14.000Z | platform/android/src/style/light.cpp | leejing397/GeoMap | d94d3f275234ad4434858e08a6b42e72c44dc6db | [
"BSL-1.0",
"Apache-2.0"
] | 76 | 2018-08-30T20:47:55.000Z | 2022-03-19T19:40:41.000Z | platform/android/src/style/light.cpp | leejing397/GeoMap | d94d3f275234ad4434858e08a6b42e72c44dc6db | [
"BSL-1.0",
"Apache-2.0"
] | 4 | 2019-08-30T07:40:17.000Z | 2022-01-13T09:36:55.000Z | // This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make android-style-code`.
#include <mbgl/map/map.hpp>
#include "light.hpp"
#include "conversion/transition_options.hpp"
#include "conversion/position.hpp"
namespace mbgl {
namespace android {
Light::Light(mbgl::Map& coreMap, m... | 38.095238 | 116 | 0.72375 | tz576 |
71f57945244839e5ab2c0bda44f9172fe630afdb | 23,643 | cpp | C++ | Hash/cuckoo/cuckoo_tests.cpp | theWhyteRabbit/DataStructures | 7060682f5e0f7306a62ed61645f868a039748a91 | [
"Apache-2.0"
] | 1 | 2017-03-17T21:05:48.000Z | 2017-03-17T21:05:48.000Z | Hash/cuckoo/cuckoo_tests.cpp | theWhyteRabbit/DataStructures | 7060682f5e0f7306a62ed61645f868a039748a91 | [
"Apache-2.0"
] | null | null | null | Hash/cuckoo/cuckoo_tests.cpp | theWhyteRabbit/DataStructures | 7060682f5e0f7306a62ed61645f868a039748a91 | [
"Apache-2.0"
] | 3 | 2017-02-15T12:21:14.000Z | 2018-11-01T02:56:53.000Z | #include "cuckoo.h"
#include <exception>
#include <algorithm>
#include <iostream>
#include <limits>
#include <chrono>
#include <map>
#include <string>
#include <unordered_set>
#include <sstream>
#include <vector>
using milliseconds = std::chrono::milliseconds;
using Time = std::chrono::system_clock;
using std::to_s... | 31.191293 | 112 | 0.634776 | theWhyteRabbit |
71faee10c9859fd621b8cf2030046a01d93caf31 | 1,479 | cpp | C++ | Practice/07/C++/area_of_a_triangle.cpp | tVad1m0n/programming_practice | de8e5da75c55ab9073f4e2603ec6000befb5d707 | [
"MIT"
] | 1 | 2020-10-01T20:39:53.000Z | 2020-10-01T20:39:53.000Z | Practice/07/C++/area_of_a_triangle.cpp | tVad1m0n/programming_practice | de8e5da75c55ab9073f4e2603ec6000befb5d707 | [
"MIT"
] | null | null | null | Practice/07/C++/area_of_a_triangle.cpp | tVad1m0n/programming_practice | de8e5da75c55ab9073f4e2603ec6000befb5d707 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
/* Задание 7 - Площадь триугольника */
using namespace std;
struct point
{
float x;
float y;
float length(point pt)
{
return sqrt(pow(pt.x - x, 2.0f) + pow(pt.y - y, 2.0f));
}
};
float sides_area()
{
cout << "--> Через длины сторон: " << endl;
... | 23.109375 | 82 | 0.496281 | tVad1m0n |
9fa117c6b5d6c79bc6c6f5f25fd33dcf31f6db23 | 4,288 | hpp | C++ | utils/Plugins/imu_plugin.hpp | TomLKoller/BaVI-pose-tracking | 2475604aa499663643e342629734433ab2758171 | [
"MIT"
] | null | null | null | utils/Plugins/imu_plugin.hpp | TomLKoller/BaVI-pose-tracking | 2475604aa499663643e342629734433ab2758171 | [
"MIT"
] | null | null | null | utils/Plugins/imu_plugin.hpp | TomLKoller/BaVI-pose-tracking | 2475604aa499663643e342629734433ab2758171 | [
"MIT"
] | null | null | null | /*
* Contains the base class for IMU Plugins
* imu_plugin.hpp
*
* Created on: 24.07.2018
* Author: tomlucas
*/
#ifndef PLUGINS_IMU_PLUGIN_HPP_
#define PLUGINS_IMU_PLUGIN_HPP_
#define GRAVITY_CONSTANT 9.81282
#include <vector>
#include <chrono>
#include <thread>
#include <Eigen/Core>
#include <Eigen/Geomet... | 25.372781 | 110 | 0.709888 | TomLKoller |
9fa26d4f09ae58880b89d380b8756ef3823c4ffc | 554 | cc | C++ | problems/0XXX/07XX/072X/0724_find_pivot_index.cc | mohankarthik/leetcode | 9a15200460425962b26867ed14416576f54e8ce5 | [
"MIT"
] | null | null | null | problems/0XXX/07XX/072X/0724_find_pivot_index.cc | mohankarthik/leetcode | 9a15200460425962b26867ed14416576f54e8ce5 | [
"MIT"
] | null | null | null | problems/0XXX/07XX/072X/0724_find_pivot_index.cc | mohankarthik/leetcode | 9a15200460425962b26867ed14416576f54e8ce5 | [
"MIT"
] | null | null | null | #include "../../../../common/Includes.h"
class Solution {
public:
int pivotIndex(vector<int>& nums) {
int n = nums.size();
int left_sum = 0, right_sum = 0;
int ans = -1;
/* Calculate the right sum */
for (int num: nums)
right_sum += num;
... | 23.083333 | 50 | 0.413357 | mohankarthik |
9fa4ddc0348717b09d5e0c9f452f85b368ec8f4d | 3,488 | cpp | C++ | Src/VC/bcgcbpro/BCGPRibbonItemDlg.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | null | null | null | Src/VC/bcgcbpro/BCGPRibbonItemDlg.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | null | null | null | Src/VC/bcgcbpro/BCGPRibbonItemDlg.cpp | iclosure/smartsoft | 62eaed49efd8306642b928ef4f2d96e36aca6527 | [
"MIT"
] | 1 | 2020-05-11T05:36:49.000Z | 2020-05-11T05:36:49.000Z | //*******************************************************************************
// COPYRIGHT NOTES
// ---------------
// This is a part of the BCGControlBar Library
// Copyright (C) 1998-2012 BCGSoft Ltd.
// All rights reserved.
//
// This source code can be used, distributed or modified
// only under terms and condi... | 31.142857 | 148 | 0.665998 | iclosure |
9fa76d9a92e55098ef7eb4bffb9d1732f9536138 | 17,363 | cpp | C++ | attacker/cipher/CryptoUtils.cpp | satadriver/attacker | 24e4434d8a836e040e48df195f2ca8919ab52609 | [
"Apache-2.0"
] | null | null | null | attacker/cipher/CryptoUtils.cpp | satadriver/attacker | 24e4434d8a836e040e48df195f2ca8919ab52609 | [
"Apache-2.0"
] | null | null | null | attacker/cipher/CryptoUtils.cpp | satadriver/attacker | 24e4434d8a836e040e48df195f2ca8919ab52609 | [
"Apache-2.0"
] | 1 | 2022-03-20T03:21:00.000Z | 2022-03-20T03:21:00.000Z |
#include "../Public.h"
#include "CryptoUtils.h"
#include <windows.h>
#include "../FileOper.h"
#include <iostream>
#include "../support/aos_crc64.h"
using namespace std;
int CryptoUtils::getDataMd5(char * lpdata, int size, char * szmd5, int lowercase) {
int casevalue = 55;
if (lowercase)
{
casevalue = 87;
... | 33.978474 | 103 | 0.752001 | satadriver |
9facdd2063509ec170af23ac3ae81bd8e613ec9a | 3,309 | hpp | C++ | viennacl/device_specific/builtin_database/devices/gpu/amd/northern_islands/barts.hpp | ddemidov/viennacl-dev | 0f7de9cd28e54a5ca8f7c2ab03263bc56bf004ef | [
"MIT"
] | 2 | 2016-08-23T17:05:21.000Z | 2016-08-23T17:06:24.000Z | viennacl/device_specific/builtin_database/devices/gpu/amd/northern_islands/barts.hpp | ddemidov/viennacl-dev | 0f7de9cd28e54a5ca8f7c2ab03263bc56bf004ef | [
"MIT"
] | null | null | null | viennacl/device_specific/builtin_database/devices/gpu/amd/northern_islands/barts.hpp | ddemidov/viennacl-dev | 0f7de9cd28e54a5ca8f7c2ab03263bc56bf004ef | [
"MIT"
] | null | null | null | #ifndef VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_DEVICES_GPU_AMD_NORTHERN_ISLANDS_BARTS_HPP_
#define VIENNACL_DEVICE_SPECIFIC_BUILTIN_DATABASE_DEVICES_GPU_AMD_NORTHERN_ISLANDS_BARTS_HPP_
#include "viennacl/device_specific/templates/matrix_product_template.hpp"
#include "viennacl/device_specific/templates/row_wise_re... | 41.3625 | 193 | 0.819583 | ddemidov |
9fb6270e02b69f4479a8f0b3ad804bfe705c365d | 1,021 | cpp | C++ | 图论/单源&多源最短路/acwing_1128.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | 3 | 2020-11-16T08:58:30.000Z | 2020-11-16T08:58:33.000Z | 图论/单源&多源最短路/acwing_1128.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | 图论/单源&多源最短路/acwing_1128.cpp | tempure/algorithm-advance | 38c4504f64cd3fd15fc32cf20a541ad5ba2ad82b | [
"MIT"
] | null | null | null | /*
* @Description:
* @Author: Xiaobin Ren
* @Date: 2020-10-22 21:10:13
* @Last Modified time: 2020-10-22 21:10:39
*/
#include <iostream>
#include <algorithm>
#include <cstring>
#include <queue>
using namespace std;
//单源最短路 然后求出距离起点最远的点的路径长度 也就是最晚接受到的点的时间
//如果某个dist是正无穷,那就是非连通 输出-1
//数据范围太小了,直接floyd 代码短
const int... | 20.019608 | 58 | 0.44858 | tempure |
9fb64e5260796eb348a247fda9cbc56b14618697 | 504 | cpp | C++ | bin-int/Release-windows-x86_64/NextEngine/unity_0QTE5R3ODVXFLB7R.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | bin-int/Debug-windows-x86_64/NextEngine/unity_0QTE5R3ODVXFLB7R.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | bin-int/Debug-windows-x86_64/NextEngine/unity_0QTE5R3ODVXFLB7R.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | #include "stdafx.h"
#include "C:\Users\User\source\repos\NextEngine\NextEngine\src\graphics\renderer\renderer.cpp"
#include "C:\Users\User\source\repos\NextEngine\NextEngine\src\graphics\renderer\terrain.cpp"
#include "C:\Users\User\source\repos\NextEngine\NextEngine\src\graphics\renderer\transforms.cpp"
#includ... | 29.647059 | 96 | 0.795635 | CompilerLuke |
9fb7145c9f36c0faff9f5154d2a2acda9a975cb9 | 710 | cpp | C++ | TrappingRainWater/TrappingRainWater_DP.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | TrappingRainWater/TrappingRainWater_DP.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | TrappingRainWater/TrappingRainWater_DP.cpp | yergen/leetcode | 7b6dac49ac44e0bf43a4ecb4795ea8cfe6afa4ab | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
using namespace::std;
class Solution {
public:
int trap(vector<int>& height) {
int n = height.size(), ans = 0;
if (n <= 2) return 0;
vector<int> left_max(n), right_max(n);
left_max[0] = height[0];
for (int i = 1; i < n; ++i)
left_max[i] = max(lef... | 18.684211 | 61 | 0.567606 | yergen |
9fb929002b26202e835a4ed663db66d689ba6e9f | 1,821 | cpp | C++ | Greedy/738. Monotone Increasing Digits.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | Greedy/738. Monotone Increasing Digits.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | Greedy/738. Monotone Increasing Digits.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z |
/*
找到最左面不符合的index 为leftInvertInd, 把leftInvertInd后面全变为9, 把前一位的数减去1
比如 1231, 不符合是1, 先变成1221, 然后把不符合的变成9 => 1229
*/
class Solution {
public:
int monotoneIncreasingDigits(int N) {
string s = to_string(N);
int leftInvertInd = s.size();
for(int i = s.size()-1; i>0; i--){
if(s[i-1] >... | 25.291667 | 102 | 0.470621 | beckswu |
9fc0d740d5c6687c86aa5e319ad6cde26e5fa8db | 9,247 | cpp | C++ | src/Old/GameLogic.cpp | warzes/MicroDungeons | 0df770288b3a16031434361e94c1d88413f84486 | [
"MIT"
] | 1 | 2022-03-15T22:29:07.000Z | 2022-03-15T22:29:07.000Z | src/Old/GameLogic.cpp | warzes/MicroDungeons | 0df770288b3a16031434361e94c1d88413f84486 | [
"MIT"
] | null | null | null | src/Old/GameLogic.cpp | warzes/MicroDungeons | 0df770288b3a16031434361e94c1d88413f84486 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "GameLogic.h"
#include "oPlayer.h"
#include "Enemy.h"
#include "TestCollision.h"
//-----------------------------------------------------------------------------
//rlFPCamera cam;
static Model boxModel1;
static Model boxModel2;
Texture2D texture;
BoundingBox bounds;
CollisionModel3D colModel... | 29.829032 | 118 | 0.612199 | warzes |
9fc43babca5536c7d89c547c06df5b0c86987192 | 11,669 | cpp | C++ | source/Game.Universal/SnakeManager.cpp | sanjay-nambiar/Hissteria | bfa280aa49350c81a3ca9a534492925b174ad185 | [
"Apache-2.0"
] | 1 | 2017-07-05T04:27:18.000Z | 2017-07-05T04:27:18.000Z | source/Game.Universal/SnakeManager.cpp | sanjay-nambiar/Hissteria | bfa280aa49350c81a3ca9a534492925b174ad185 | [
"Apache-2.0"
] | null | null | null | source/Game.Universal/SnakeManager.cpp | sanjay-nambiar/Hissteria | bfa280aa49350c81a3ca9a534492925b174ad185 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "SnakeManager.h"
#include "Snake.h"
using namespace std;
using namespace DX;
using namespace DirectX;
namespace DirectXGame
{
const std::unordered_map<SnakeManager::SoundType, std::wstring> SnakeManager::SoundEffectFiles = {
{ SoundType::Music, L"Content\\Audio\\Arcade-Fantasy.... | 28.60049 | 163 | 0.666124 | sanjay-nambiar |
9fc4fd9861faa0bc47d7637de9eec2709e01fdbe | 3,159 | cc | C++ | CodeChef/Random/AOPN/A.cc | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | CodeChef/Random/AOPN/A.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | CodeChef/Random/AOPN/A.cc | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <bits/stdc++.h>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define foreach(it, v) for(auto it=(v).begin(); it != (v).end(); ++it)
#define _ ios_base::sync_with_stdi... | 22.246479 | 118 | 0.469769 | VastoLorde95 |
9fc5e1affb46bff04c3aa2c1b565731459037a08 | 1,034 | cpp | C++ | luogu/T2602.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | 1 | 2020-07-24T03:07:08.000Z | 2020-07-24T03:07:08.000Z | luogu/T2602.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | luogu/T2602.cpp | delphi122/knowledge_planet | e86cb8f9aa47ef8918cde0e814984a6535023c21 | [
"Apache-2.0"
] | null | null | null | //
// Created by yangtao on 20-11-25.
//
#include <bits/stdc++.h>
#define int unsigned long long
#define rep(i,a,b) for(int i=(a);i<=(b);++i)
#define per(i,a,b) for(int i=(a);i>=(b);--i)
using namespace std;
int a,b;
int f[15][15][2][2];
int tot=0,num[15];
int dp(int x,int sum,int d,bool lim,bool zer) {
/*
x表示当... | 25.85 | 58 | 0.564797 | delphi122 |
9fc611bf7c44275aa5cabfd707ab4ef5a28af806 | 359 | cpp | C++ | 2042-check-if-numbers-are-ascending-in-a-sentence/2042-check-if-numbers-are-ascending-in-a-sentence.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 2042-check-if-numbers-are-ascending-in-a-sentence/2042-check-if-numbers-are-ascending-in-a-sentence.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | 2042-check-if-numbers-are-ascending-in-a-sentence/2042-check-if-numbers-are-ascending-in-a-sentence.cpp | SouvikChan/-Leetcode_Souvik | cc4b72cb4a14a1c6b8be8bd8390de047443fe008 | [
"MIT"
] | null | null | null | class Solution {
public:
bool areNumbersAscending(string s) {
stringstream st(s);
string word;
int last=-1;
while(st>>word){
if(isdigit(word[0])){
int num=stoi(word);
if(last>=num) return false;
else last=num;
}
... | 22.4375 | 43 | 0.451253 | SouvikChan |
9fc691776f4214282b13055cb1bf484c33c430e4 | 70 | cc | C++ | src/GameState.cc | CS126SP20/Bughouse | 7d5b84759fff9584756000d2de2c34adbd268574 | [
"MIT"
] | null | null | null | src/GameState.cc | CS126SP20/Bughouse | 7d5b84759fff9584756000d2de2c34adbd268574 | [
"MIT"
] | null | null | null | src/GameState.cc | CS126SP20/Bughouse | 7d5b84759fff9584756000d2de2c34adbd268574 | [
"MIT"
] | 1 | 2020-06-09T10:16:40.000Z | 2020-06-09T10:16:40.000Z | //
// Created by tomok on 4/28/2020.
//
#include "chess/GameState.h"
| 11.666667 | 33 | 0.642857 | CS126SP20 |
9fca6dae2be4ce473b40a5253fdd3cb029be360a | 738 | hpp | C++ | Boss2D/core/boss_profile.hpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/core/boss_profile.hpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/core/boss_profile.hpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | #pragma once
#define BOSS_NOT_INCLUDE_FOR_INTELLIGENCE
#include <boss.hpp>
namespace BOSS
{
/// @brief 프로파일링지원
class Profile
{
public:
/// @brief 프로파일구간을 시작(즉시 랩지정 가능)
/// @param groupname : 프로파일의 그룹명
/// @param lapname : 랩지정시(lapname != nullptr) 랩명
/// @pa... | 23.806452 | 89 | 0.53794 | Yash-Wasalwar-07 |
9fcd3638026a702141d86ff1d3f4658811cc3412 | 6,572 | cpp | C++ | Blizzlike/ArcEmu/C++/QuestScripts/Quest_SholazarBasin.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/QuestScripts/Quest_SholazarBasin.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/QuestScripts/Quest_SholazarBasin.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcScripts for ArcEmu MMORPG Server
* Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
* Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2007-2008 Moon++ Team <http://www.moonplusplus.info/>
*
* This p... | 29.470852 | 100 | 0.646835 | 499453466 |
9fcd9fec84ae6f6fed22cb39260087958a4133eb | 12,591 | hxx | C++ | mysql.hxx | DX-MON/tmplORM | 493dfb1c6dd6799b428c049891becd41e6791466 | [
"BSD-3-Clause"
] | 7 | 2016-09-22T21:07:28.000Z | 2022-02-03T19:18:08.000Z | mysql.hxx | DX-MON/tmplORM | 493dfb1c6dd6799b428c049891becd41e6791466 | [
"BSD-3-Clause"
] | 1 | 2021-10-22T02:57:48.000Z | 2021-10-22T02:57:48.000Z | mysql.hxx | DX-MON/tmplORM | 493dfb1c6dd6799b428c049891becd41e6791466 | [
"BSD-3-Clause"
] | 1 | 2020-05-29T12:19:11.000Z | 2020-05-29T12:19:11.000Z | #ifndef MYSQL_HXX
#define MYSQL_HXX
#include <cstdint>
#include <mysql.h>
#include <utility>
#include <substrate/managed_ptr>
#include "tmplORM.hxx"
/*!
* @file
* @author Rachel Mant
* @date 2016-2020
* @brief Defines the interface to the MySQL abstraction layer
*/
namespace tmplORM
{
namespace mysql
{
name... | 36.285303 | 124 | 0.753713 | DX-MON |
9fcefb9b4d2748b4a44a7a3fa47ed64da89964d7 | 57,787 | cp | C++ | Ctl/Mod/VBIDE.cp | romiras/Blackbox-fw-playground | 6de94dc65513e657a9b86c1772e2c07742b608a8 | [
"BSD-2-Clause"
] | 1 | 2018-03-15T00:25:25.000Z | 2018-03-15T00:25:25.000Z | Ctl/Mod/VBIDE.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | null | null | null | Ctl/Mod/VBIDE.cps | Spirit-of-Oberon/LightBox | 8a45ed11dcc02ae97e86f264dcee3e07c910ff9d | [
"BSD-2-Clause"
] | 1 | 2021-04-14T21:17:51.000Z | 2021-04-14T21:17:51.000Z | MODULE CtlVBIDE;
(**
project = "BlackBox"
organization = "www.oberon.ch"
contributors = "Oberon microsystems"
version = "System/Rsrc/About"
copyright = "System/Rsrc/About"
license = "Docu/BB-License"
changes = ""
issues = ""
**)
(* Microsoft Visual Basic fo... | 31.716246 | 238 | 0.62938 | romiras |
9fd3aeafa51bb249825b3f24358379487eb47805 | 4,701 | cpp | C++ | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Wi-Fi hotspot authentication sample (Windows 8)/C++/HotspotAuthenticationApp/AuthByForegroundApp.xaml.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Wi-Fi hotspot authentication sample (Windows 8)/C++/HotspotAuthenticationApp/AuthByForegroundApp.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2012Samples/Windows 8 samples/C++/Windows 8 app samples/Wi-Fi hotspot authentication sample (Windows 8)/C++/HotspotAuthenticationApp/AuthByForegroundApp.xaml.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
... | 33.820144 | 129 | 0.711763 | alonmm |
9fd61d442aab6677b767af3580414ec6a61dc1c1 | 31,168 | cpp | C++ | eonstring/tests/Regression.cpp | janoveaase/eoncpp | bd62aab42f43932da991d603cfb6a66fa0b4355a | [
"BSL-1.0"
] | null | null | null | eonstring/tests/Regression.cpp | janoveaase/eoncpp | bd62aab42f43932da991d603cfb6a66fa0b4355a | [
"BSL-1.0"
] | null | null | null | eonstring/tests/Regression.cpp | janoveaase/eoncpp | bd62aab42f43932da991d603cfb6a66fa0b4355a | [
"BSL-1.0"
] | null | null | null | #include "Regression.h"
#include <set>
#include <cfloat>
#include <fstream>
namespace eon
{
TEST( Substring, order )
{
eon::string str{ "12345" };
auto sub = str.substr();
REQUIRE_EQ( "12345", sub.stdstr() );
auto rsub = sub.highToLow();
REQUIRE_EQ( "54321", rsub.stdstr() ) << "Failed!";
auto rrsub = r... | 32.877637 | 104 | 0.602541 | janoveaase |
9fe26c29e774510bebaf8628d5062c826fae99be | 40 | hpp | C++ | Tests/UnitTests/doctest_proxy.hpp | naddu77/CubbyMenu | 8889873d377e62589e10e89ebe01ec739cf86752 | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Tests/UnitTests/doctest_proxy.hpp | naddu77/CubbyMenu | 8889873d377e62589e10e89ebe01ec739cf86752 | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Tests/UnitTests/doctest_proxy.hpp | naddu77/CubbyMenu | 8889873d377e62589e10e89ebe01ec739cf86752 | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | #include <iostream>
#include <doctest.h> | 20 | 20 | 0.75 | naddu77 |
9fe5a750f47b321d6e12044b7404401ca4d09748 | 383 | cpp | C++ | General Programs/ABCDPyramid.cpp | anjali9811/Programming-in-Cpp | 02e80e045a7fb20f8970fcdae68c08bdf27f95b8 | [
"Apache-2.0"
] | null | null | null | General Programs/ABCDPyramid.cpp | anjali9811/Programming-in-Cpp | 02e80e045a7fb20f8970fcdae68c08bdf27f95b8 | [
"Apache-2.0"
] | null | null | null | General Programs/ABCDPyramid.cpp | anjali9811/Programming-in-Cpp | 02e80e045a7fb20f8970fcdae68c08bdf27f95b8 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int n;
cout<<"Enter the limit"<<endl;
cin>>n;
char ch[] = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
for(int i = 0 ; i < n ; i++ )
{
for(int j = 0 ; j < i ; j++)
{
cout<<c... | 11.606061 | 120 | 0.383812 | anjali9811 |
9fe6b83319a55a8e0eb0fd87ceed65d7295ea8ca | 2,872 | hpp | C++ | imp_bridge_opencv/include/imp/bridge/opencv/cu_cv_bridge.hpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 30 | 2016-09-27T07:41:28.000Z | 2021-12-03T20:44:28.000Z | imp_bridge_opencv/include/imp/bridge/opencv/cu_cv_bridge.hpp | rockenbf/ze_oss | ee04158e2d51acb07a267196f618e9afbc3ffd83 | [
"BSD-3-Clause"
] | 1 | 2018-12-18T15:53:06.000Z | 2018-12-21T03:10:06.000Z | imp_bridge_opencv/include/imp/bridge/opencv/cu_cv_bridge.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
// ... | 42.865672 | 86 | 0.666435 | rockenbf |
9fe9ede5cc72f394bb5a9bb793ab94e776302300 | 630 | cpp | C++ | snippets/algorithm/__gcd.cpp | EmmaINSA/30-seconds-of-cpp | 5aea7b3110540a0a8029b30b8e4c9f491154e7a3 | [
"MIT"
] | 1,210 | 2019-03-22T18:53:59.000Z | 2022-03-31T07:47:34.000Z | snippets/algorithm/__gcd.cpp | EmmaINSA/30-seconds-of-cpp | 5aea7b3110540a0a8029b30b8e4c9f491154e7a3 | [
"MIT"
] | 217 | 2019-04-05T09:07:26.000Z | 2022-01-29T22:42:37.000Z | snippets/algorithm/__gcd.cpp | EmmaINSA/30-seconds-of-cpp | 5aea7b3110540a0a8029b30b8e4c9f491154e7a3 | [
"MIT"
] | 657 | 2019-03-17T15:04:47.000Z | 2022-03-31T05:05:40.000Z | /*
Author : Nishanth Sanjeev
Date : 07/10/2019
Time : 21:45
Description : Finding gcd of two numbers, with only a function call
*/
#include<bits/stdc++.h>
using namespace std;
int main(){
int num1 = 18;
int num2 = 4;
// An example of finding gcd() of these two numbers.
// The answ... | 23.333333 | 97 | 0.606349 | EmmaINSA |
9fed713d416f0fa264377e07c64952402751f313 | 369 | cpp | C++ | recursion/subset-sum.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | recursion/subset-sum.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | recursion/subset-sum.cpp | Strider-7/code | e096c0d0633b53a07bf3f295cb3bd685b694d4ce | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int subsets(int arr[], int n, int sum)
{
if (n == 0)
return (sum == 0) ? 1 : 0;
return subsets(arr, n - 1, sum) + subsets(arr, n - 1, sum - arr[n-1]);
}
int main()
{
int arr[5] = {10, 5, 2, 3, 6};
cout << "subsets with sum = 15: " <<... | 20.5 | 75 | 0.487805 | Strider-7 |
9fee237b0cde440b30c6647e1d6ca535b5c19e45 | 4,857 | cpp | C++ | pulsar/datastore/export.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/datastore/export.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/datastore/export.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | /*! \file
*
* \brief Python exports for data storage
* \author Benjamin Pritchard (ben@bennyp.org)
*/
#include "pulsar/util/Serialization.hpp"
#include "pulsar/datastore/CacheData.hpp"
#include "pulsar/datastore/Wavefunction.hpp"
#include "pulsar/datastore/OptionMap.hpp"
using pulsar::System;
using pulsar::Wav... | 34.942446 | 124 | 0.605724 | pulsar-chem |
b002b0144a5a3d62c029398656341af1a81185ad | 256,446 | cpp | C++ | iosbuild/Classes/Native/Il2CppCompilerCalculateTypeValues_19Table.cpp | Computer-Science-Innovators/South-Mapping-App | a85d01ee2eea9ba6857d9bfec0d2a3b909d6ffbc | [
"Apache-2.0"
] | 4 | 2018-05-13T14:56:22.000Z | 2018-09-17T14:13:32.000Z | iosbuild/Classes/Native/Il2CppCompilerCalculateTypeValues_19Table.cpp | Computer-Science-Innovators/South-Mapping-App | a85d01ee2eea9ba6857d9bfec0d2a3b909d6ffbc | [
"Apache-2.0"
] | null | null | null | iosbuild/Classes/Native/Il2CppCompilerCalculateTypeValues_19Table.cpp | Computer-Science-Innovators/South-Mapping-App | a85d01ee2eea9ba6857d9bfec0d2a3b909d6ffbc | [
"Apache-2.0"
] | 5 | 2018-05-13T16:04:42.000Z | 2018-10-26T00:30:56.000Z | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... | 40.609026 | 254 | 0.823518 | Computer-Science-Innovators |
b005524cf9c34eb0d4761879f7d31a2366d0fe2d | 1,441 | cpp | C++ | Populating Next Right Pointers in Each Node.cpp | Xe0n0/LeetCode | a7a383d88d222edaadd52b317e848f06632a569a | [
"MIT"
] | 1 | 2017-08-22T00:43:27.000Z | 2017-08-22T00:43:27.000Z | Populating Next Right Pointers in Each Node.cpp | Xe0n0/LeetCode | a7a383d88d222edaadd52b317e848f06632a569a | [
"MIT"
] | null | null | null | Populating Next Right Pointers in Each Node.cpp | Xe0n0/LeetCode | a7a383d88d222edaadd52b317e848f06632a569a | [
"MIT"
] | null | null | null | //we have recursive solution
class Solution {
public:
void connect(TreeLinkNode *root) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
if (root == NULL) return;
TreeLinkNode *node = root;
while (node->left) {
node-... | 24.423729 | 57 | 0.390007 | Xe0n0 |
b0097fd15c13d741975db8ea92d9ed39e1eb9a78 | 1,115 | cpp | C++ | src/value/value_factory.cpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 3 | 2021-06-24T01:05:42.000Z | 2021-07-23T07:24:16.000Z | src/value/value_factory.cpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | 5 | 2021-06-25T00:13:51.000Z | 2021-07-23T14:26:01.000Z | src/value/value_factory.cpp | farleyknight/PotatoDB | cf8e39a76caf8a66a0182310509756737c624cfa | [
"MIT"
] | null | null | null |
#include "value/value_factory.hpp"
Value ValueFactory::from_column(BaseColumn column) {
switch (column.type_id()) {
case TypeId::BOOLEAN:
return random_boolean();
case TypeId::SMALLINT:
return random_smallint();
case TypeId::BIGINT:
return random_bigint();
case TypeId::VARCHAR:
return ran... | 26.547619 | 77 | 0.704036 | farleyknight |
b00affa4260182123d1a13fb2425e8aef7b30c97 | 8,200 | cpp | C++ | Palmtree.Math.Test.CppMultiThread/main.cpp | rougemeilland/Palmtree.Math | bab6e83d70225ca242cd6730efaa9e588c11105e | [
"MIT"
] | null | null | null | Palmtree.Math.Test.CppMultiThread/main.cpp | rougemeilland/Palmtree.Math | bab6e83d70225ca242cd6730efaa9e588c11105e | [
"MIT"
] | null | null | null | Palmtree.Math.Test.CppMultiThread/main.cpp | rougemeilland/Palmtree.Math | bab6e83d70225ca242cd6730efaa9e588c11105e | [
"MIT"
] | null | null | null | // ModPow の多重実行時にアクセス違反例外でこける障害の調査プログラム
// 残念ながら再現しない
// 発生条件にc#も絡む可能性がある。
#include <atomic>
#include <iostream>
#include <clocale>
#include <mutex>
#include <thread>
#include <condition_variable>
#include "pmc.h"
#include "pmc_uint_cppinterface.h"
#include "pmc_sint_cppinterface.h"
#include "pmc_rtnl_cppinterface.h... | 42.051282 | 452 | 0.584756 | rougemeilland |
b012bccbb353fc2b9e75acbd5bb6c4767bdb7b55 | 6,393 | cpp | C++ | 11_learning_materials/stanford_self_driving_car/perception/descriptors_2d/src/example.cpp | EatAllBugs/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | 14 | 2021-09-01T14:25:45.000Z | 2022-02-21T08:49:57.000Z | 11_learning_materials/stanford_self_driving_car/perception/descriptors_2d/src/example.cpp | yinflight/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | null | null | null | 11_learning_materials/stanford_self_driving_car/perception/descriptors_2d/src/example.cpp | yinflight/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | 3 | 2021-10-10T00:58:29.000Z | 2022-01-23T13:16:09.000Z | /*********************************************************************
*
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... | 37.828402 | 128 | 0.667762 | EatAllBugs |
b024f7e24d79c6076c9e1610776c6e1f449e941c | 2,590 | cpp | C++ | rpigpiopp/api/src/WrapPCF8574.cpp | seanshpark/rpigpiopp | 33ccb5c64bb01610a6873ce9a5055edb21317cd3 | [
"Apache-2.0"
] | 3 | 2022-02-19T11:27:13.000Z | 2022-03-30T22:30:19.000Z | rpigpiopp/api/src/WrapPCF8574.cpp | seanshpark/rpigpiopp | 33ccb5c64bb01610a6873ce9a5055edb21317cd3 | [
"Apache-2.0"
] | null | null | null | rpigpiopp/api/src/WrapPCF8574.cpp | seanshpark/rpigpiopp | 33ccb5c64bb01610a6873ce9a5055edb21317cd3 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2022 saehie.park@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | 27.553191 | 87 | 0.689575 | seanshpark |
b02b89db01a348a28a4b6d53a754c79a55d8e13d | 461 | cpp | C++ | ACM-ICPC/10815.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/10815.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | ACM-ICPC/10815.cpp | KimBoWoon/ACM-ICPC | 146c36999488af9234d73f7b4b0c10d78486604f | [
"MIT"
] | null | null | null | #include <cstdio>
#include <algorithm>
using namespace std;
#pragma warning(disable:4996)
#define SIZE 500001
int a[SIZE];
int main() {
int n, m;
scanf("%d", &n);
for (int i = 0; i < n; i++)
scanf("%d", &a[i]);
sort(a, a + n);
scanf("%d", &m);
for (int i = 0; i < m; i++) {
int ... | 13.171429 | 41 | 0.477223 | KimBoWoon |
b02c5316c5189e1f487aaab4cb9a90725d161287 | 45,872 | cpp | C++ | src/QtComponents/VcfBase/VcfNode.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/VcfBase/VcfNode.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/VcfBase/VcfNode.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | #include <qtcomponents.h>
N::VcfNode:: VcfNode (QObject * parent,QGraphicsItem * item,Plan * p)
: VcfItem ( parent, item, p)
, Node ( )
, Object (0 , Types::None ... | 41.663942 | 93 | 0.339227 | Vladimir-Lin |
b0375380cc6ded6c4d3e0d0ec1a58b775c63098f | 4,505 | cc | C++ | icing/transform/icu/icu-normalizer_benchmark.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | icing/transform/icu/icu-normalizer_benchmark.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | icing/transform/icu/icu-normalizer_benchmark.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 26.815476 | 77 | 0.673252 | PixelPlusUI-SnowCone |
b03ae0e07a5b04b95e5a7585d5981ee36da629d9 | 3,649 | cc | C++ | util/usbprobe.cc | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | util/usbprobe.cc | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | null | null | null | util/usbprobe.cc | farlies/rsked | cd2004bed454578f4d2ac25996dc1ced98d4fa58 | [
"Apache-2.0"
] | 1 | 2020-10-04T22:14:55.000Z | 2020-10-04T22:14:55.000Z | /* Implements the Usb_probe object we use to probe for certain devices.
*/
/* Part of the rsked package.
*
* Copyright 2020 Steven A. Harp
*
* 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 t... | 30.408333 | 79 | 0.580707 | farlies |
b03b9b9b426f146983fbcf08e2161fecabd77737 | 106,994 | hpp | C++ | core/src/cogs/sync/versioned_ptr.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/src/cogs/sync/versioned_ptr.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/src/cogs/sync/versioned_ptr.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: Good
#ifndef COGS_HEADER_SYNC_VERSIONED_PTR
#define COGS_HEADER_SYNC_VERSIONED_PTR
#include "cogs/sync/versioned_ref.hpp"
namespace cogs {
/// @ingroup ReferenceContainerTypes
/// @ingroup Synchronizati... | 63.611177 | 237 | 0.719237 | cogmine |
b03e7053405af0c825ec34a25968179fbc74d6d2 | 1,430 | cpp | C++ | Server/server/Entities/MovementHandlerCreature.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 14 | 2019-03-05T10:03:59.000Z | 2021-12-21T03:00:18.000Z | Server/server/Entities/MovementHandlerCreature.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2019-10-24T21:37:59.000Z | 2019-10-24T21:37:59.000Z | Server/server/Entities/MovementHandlerCreature.cpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2020-12-06T21:07:52.000Z | 2020-12-06T21:07:52.000Z | #include "MovementHandlerCreature.hpp"
#include "../World/PacketDefine.hpp"
#include "../Map/Map.hpp"
MovementHandlerCreature::MovementHandlerCreature(Unit* p_Creature, uint8 p_SizeX, uint8 p_SizeY) :
m_Owner(p_Creature),
MovementHandler::MovementHandler(p_SizeX, p_SizeY, TypeUnit::CREATURE)
{
}
MovementHandl... | 31.777778 | 114 | 0.759441 | pinkmouse |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.