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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0b0ca33b1ce54f672d7abc85ad9ab99aac8c1956 | 3,223 | cpp | C++ | App/src/Prefabs/Edge.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | 1 | 2021-07-08T22:51:59.000Z | 2021-07-08T22:51:59.000Z | App/src/Prefabs/Edge.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | App/src/Prefabs/Edge.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | #include "Prefabs/Edge.h"
#include <raymath.h>
#include "Components/Components.h"
#include "Core/Cache.h"
namespace Project::Prefab {
std::vector<Vector2> generateArrow(entt::handle edge) {
Vector2 start = edge.get<Component::Edge>().start.get<Component::Transformation>();
Vector2 end = edge.get<Component::E... | 33.226804 | 115 | 0.665219 | Shorakie |
0b0d7172a52f2bb96463a99bd2de74c584f436d0 | 1,983 | cc | C++ | util/amsiLocality.cc | SCOREC/amsi | a9d33804e951b397b3a0ca5f07efe854536c8e0a | [
"BSD-3-Clause"
] | null | null | null | util/amsiLocality.cc | SCOREC/amsi | a9d33804e951b397b3a0ca5f07efe854536c8e0a | [
"BSD-3-Clause"
] | null | null | null | util/amsiLocality.cc | SCOREC/amsi | a9d33804e951b397b3a0ca5f07efe854536c8e0a | [
"BSD-3-Clause"
] | null | null | null | #include "amsiLocality.h"
#include "amsiRankSet.h"
#include "amsiMPI.h"
#include <algorithm>
namespace amsi
{
/*
//hwloc_topology_t machine_topology;
uuid getNodeID()
{
uuid lid = 0;
char node_nm[MPI_MAX_PROCESSOR_NAME] = {};
int nm_len = 0;
MPI_Get_processor_name(node_nm, &nm_len);
//std::s... | 26.44 | 94 | 0.591528 | SCOREC |
0b0e66f1899a08889d551a9413f4bf3c2a30c77c | 1,567 | cpp | C++ | src/texture.cpp | JulesG10/MyCity | b49b80cbdfba4b40f962c697dce37431612eb03e | [
"MIT"
] | 1 | 2021-02-13T14:08:41.000Z | 2021-02-13T14:08:41.000Z | src/texture.cpp | JulesG10/MyCity | b49b80cbdfba4b40f962c697dce37431612eb03e | [
"MIT"
] | null | null | null | src/texture.cpp | JulesG10/MyCity | b49b80cbdfba4b40f962c697dce37431612eb03e | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include "texture.h"
#include "util.h"
Texture::Texture(std::string path)
{
this->LoadTexture(path);
}
Texture::Texture() {}
void Texture::getTexture(int (*box)[100][4])
{
for (int i = 0; i < 100; i++)
{
for (int j = 0; j ... | 20.618421 | 75 | 0.382259 | JulesG10 |
0b12734366219e8bf3b795ca7599c7836f7c0947 | 3,091 | cpp | C++ | src/RDFException.cpp | breakfastquay/dataquay | 286c3722038007771b2933df7e98075d5da2555d | [
"X11"
] | 4 | 2016-03-10T16:20:35.000Z | 2017-12-27T13:33:47.000Z | src/RDFException.cpp | breakfastquay/dataquay | 286c3722038007771b2933df7e98075d5da2555d | [
"X11"
] | null | null | null | src/RDFException.cpp | breakfastquay/dataquay | 286c3722038007771b2933df7e98075d5da2555d | [
"X11"
] | null | null | null | /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
Dataquay
A C++/Qt library for simple RDF datastore management.
Copyright 2009-2012 Chris Cannam.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documen... | 27.598214 | 79 | 0.698479 | breakfastquay |
0b13b5fef515f4b0e4ae76b29702ddca08d1034a | 7,360 | cpp | C++ | src/amxprof/statistics_writer_html.cpp | myudev/samp-plugin-profiler | 3778b2ed4b4e38034ab39c0d7771e8c9ace26ae3 | [
"BSD-2-Clause"
] | null | null | null | src/amxprof/statistics_writer_html.cpp | myudev/samp-plugin-profiler | 3778b2ed4b4e38034ab39c0d7771e8c9ace26ae3 | [
"BSD-2-Clause"
] | null | null | null | src/amxprof/statistics_writer_html.cpp | myudev/samp-plugin-profiler | 3778b2ed4b4e38034ab39c0d7771e8c9ace26ae3 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) 2011-2015 Zeex
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions an... | 33.004484 | 80 | 0.541712 | myudev |
0b15c63ea54f9c4e60939b2f11306c9090fd83ce | 4,666 | cc | C++ | google/cloud/gameservices/realms_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/gameservices/realms_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/gameservices/realms_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 39.880342 | 80 | 0.751822 | sydney-munro |
0b194a9d28e44809917ad47b5c6aec100f655a84 | 2,960 | cpp | C++ | leetcode-problems/medium/39-combination-sum.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/medium/39-combination-sum.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | leetcode-problems/medium/39-combination-sum.cpp | formatkaka/dsalgo | a7c7386c5c161e23bc94456f93cadd0f91f102fa | [
"Unlicense"
] | null | null | null | //
// Created by Siddhant on 2019-11-16.
//
#include "iostream"
#include "vector"
#include "string"
#include "unordered_map"
#include "unordered_set"
using namespace std;
string getHash(vector<int> &vec) {
string s = "";
for (int i = 0; i < vec.size(); i++) {
s = s + to_string(vec[i]) + "#";
}
... | 22.089552 | 116 | 0.472635 | formatkaka |
0b1fb79485e08e64f4e008c9adfd7edc4315272b | 1,121 | cpp | C++ | p1126.cpp | ThinkiNOriginal/PTA-Advanced | 55cae28f76102964d0f6fd728dd62d6eba980c49 | [
"MIT"
] | null | null | null | p1126.cpp | ThinkiNOriginal/PTA-Advanced | 55cae28f76102964d0f6fd728dd62d6eba980c49 | [
"MIT"
] | null | null | null | p1126.cpp | ThinkiNOriginal/PTA-Advanced | 55cae28f76102964d0f6fd728dd62d6eba980c49 | [
"MIT"
] | null | null | null | #include <vector>
#include <cstdio>
#include <queue>
using namespace std;
bool BFS(vector<vector<bool>>& graph) {
int len = graph.size();
vector<bool> vis(len, false);
vis[0] = true;
queue<int> q;
q.push(1);
vis[1] = true;
while (!q.empty()) {
auto x = q.front();
q.pop();
for (int i = 1; i < len; i++) {
... | 16.984848 | 63 | 0.52364 | ThinkiNOriginal |
0b2037240c00b32398cd52d0fb96b46aa21fe78c | 3,583 | cc | C++ | tests/cpp_example.cc | membase/libmemcached | ea579a523ca3af872c292b1e33d800e3649a8892 | [
"BSD-3-Clause"
] | 24 | 2015-03-08T09:57:11.000Z | 2022-01-25T06:53:52.000Z | tests/cpp_example.cc | czfdlut/libmemcached | ea579a523ca3af872c292b1e33d800e3649a8892 | [
"BSD-3-Clause"
] | null | null | null | tests/cpp_example.cc | czfdlut/libmemcached | ea579a523ca3af872c292b1e33d800e3649a8892 | [
"BSD-3-Clause"
] | 18 | 2015-06-18T05:41:45.000Z | 2021-08-05T02:31:06.000Z | /*
* An example file showing the usage of the C++ libmemcached interface.
*/
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include <map>
#include <string.h>
#include <libmemcached/memcached.hpp>
using namespace std;
using namespace memcache;
class DeletePtrs
{
public:
template<t... | 18.374359 | 76 | 0.629361 | membase |
0b25db923202d1b72f3ecb986bdc29ce4885517c | 1,754 | hh | C++ | src/event.hh | Cediwelli/keyshare | 14a36eb615137c04c9d4fbbe5d9e4f295679e100 | [
"MIT"
] | 1 | 2021-07-03T09:48:07.000Z | 2021-07-03T09:48:07.000Z | src/event.hh | Cediwelli/keyshare | 14a36eb615137c04c9d4fbbe5d9e4f295679e100 | [
"MIT"
] | null | null | null | src/event.hh | Cediwelli/keyshare | 14a36eb615137c04c9d4fbbe5d9e4f295679e100 | [
"MIT"
] | null | null | null | #ifndef EVENT_HH_
#define EVENT_HH_
#include <cstdint>
#include "bytebuffer.hh"
typedef int SOCKFD;
enum EventType {
KEY, CLIENTINFO
};
class Event {
protected:
char * mBuffer;
uint32_t mBufferLen;
public:
Event();
Event(const Event&) = delete;
virtual ~ Event();
virtual EventType GetType() ... | 20.395349 | 65 | 0.660205 | Cediwelli |
0b2923486a406ab999e117a58b72fb05b7c7600a | 6,145 | cpp | C++ | test/test_bfsRunner.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | test/test_bfsRunner.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | test/test_bfsRunner.cpp | tuan1225/parconnect_sc16 | bcd6f99101685d746cf30e22fa3c3f63ddd950c9 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2016 Georgia Institute of Technology
*
* 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 applicab... | 30.572139 | 122 | 0.692107 | tuan1225 |
0b2bac75f03da4ddd7dcbd7d7bda1d88e4335250 | 744 | hpp | C++ | includes/utils/opengl/UI/SliderUI.hpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 6 | 2020-03-13T16:45:13.000Z | 2022-03-30T18:20:48.000Z | includes/utils/opengl/UI/SliderUI.hpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 191 | 2020-03-02T14:47:19.000Z | 2020-06-03T08:13:00.000Z | includes/utils/opengl/UI/SliderUI.hpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | null | null | null | #pragma once
#include "includesOpengl.hpp"
#include "ABaseUI.hpp"
/**
* @brief this is the UI for slider
*/
class SliderUI : public ABaseUI {
public:
SliderUI(glm::vec2 pos, glm::vec2 size);
SliderUI(SliderUI const & src);
virtual ~SliderUI();
SliderUI & operator=(SliderUI const & rhs);
void setValue... | 22.545455 | 68 | 0.655914 | tnicolas42 |
0b2d36c66bc572cff97018d71418a5ffd3f9ffa2 | 12,750 | hh | C++ | radioactive_decay/include/G4RadioactiveDecay.hh | cbray0/Geant4GammaGammaAngularCorrelations10.02.p03 | bb2df41ad3a2cabdbceda008bdcb760e41d1bb4d | [
"MIT"
] | 2 | 2016-07-25T12:41:08.000Z | 2018-04-01T13:19:24.000Z | radioactive_decay/include/G4RadioactiveDecay.hh | cbray0/Geant4GammaGammaAngularCorrelations10.02.p03 | bb2df41ad3a2cabdbceda008bdcb760e41d1bb4d | [
"MIT"
] | 4 | 2015-11-16T17:01:58.000Z | 2019-08-01T06:18:28.000Z | radioactive_decay/include/G4RadioactiveDecay.hh | cbray0/Geant4GammaGammaAngularCorrelations10.02.p03 | bb2df41ad3a2cabdbceda008bdcb760e41d1bb4d | [
"MIT"
] | 8 | 2015-06-04T15:58:34.000Z | 2020-11-02T22:22:46.000Z | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 36.324786 | 93 | 0.669647 | cbray0 |
0b31259955f833070fa5151d55b8fb04d3244949 | 546 | cpp | C++ | libs/libc/source/sys/mmap.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 16 | 2019-03-14T19:45:02.000Z | 2022-02-06T19:18:08.000Z | libs/libc/source/sys/mmap.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 1 | 2020-05-08T08:40:02.000Z | 2020-05-08T13:27:59.000Z | libs/libc/source/sys/mmap.cpp | zhiayang/nx | 0d9da881f67ec351244abd72e1f3884816b48f5b | [
"Apache-2.0"
] | 2 | 2021-01-16T20:42:05.000Z | 2021-12-01T23:37:18.000Z | // mmap.cpp
// Copyright (c) 2014 - 2016, zhiayang
// Licensed under the Apache License Version 2.0.
#include <stdlib.h>
#include <sys/mman.h>
#include <nx/syscall.h>
extern "C" void* mmap(void* addr, size_t length, int prot, int flags, int fd, off_t offset)
{
if(flags & MAP_ANONYMOUS)
{
return syscall::mmap_an... | 14 | 91 | 0.635531 | zhiayang |
0b317ff0816cfc0cecb8743563cb6322fc985339 | 3,517 | cc | C++ | proxy/http3/Http09App.cc | yongjianchn/trafficserver | 9808a98a85a624cd13644f87f79f8ec649a2e200 | [
"Apache-2.0"
] | null | null | null | proxy/http3/Http09App.cc | yongjianchn/trafficserver | 9808a98a85a624cd13644f87f79f8ec649a2e200 | [
"Apache-2.0"
] | 3 | 2017-09-22T19:18:56.000Z | 2021-06-21T18:07:14.000Z | proxy/http3/Http09App.cc | yongjianchn/trafficserver | 9808a98a85a624cd13644f87f79f8ec649a2e200 | [
"Apache-2.0"
] | null | null | null | /** @file
*
* A brief file description
*
* @section license License
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this... | 30.318966 | 125 | 0.704293 | yongjianchn |
0b3edc8ce401dd6ae5c17b5c967ee92984dda02d | 1,596 | cpp | C++ | GLSLRayMarching/GLSLRayMarching/FrameWork/ResourceImport.cpp | Elli-Ossan/GLSLRayMarching | 5e879cc8e5498a083b5b68c570f05c21e5e23189 | [
"MIT"
] | null | null | null | GLSLRayMarching/GLSLRayMarching/FrameWork/ResourceImport.cpp | Elli-Ossan/GLSLRayMarching | 5e879cc8e5498a083b5b68c570f05c21e5e23189 | [
"MIT"
] | null | null | null | GLSLRayMarching/GLSLRayMarching/FrameWork/ResourceImport.cpp | Elli-Ossan/GLSLRayMarching | 5e879cc8e5498a083b5b68c570f05c21e5e23189 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////
// Copyright(c) 2020, Lin Koon Wing Macgyver, macgyvercct@yahoo.com.hk //
// //
// Author : Mac Lin //
// Module : Magnum Engine v0.7.0 //
// Date : 05/Nov/2020 //
// ... | 21.28 | 82 | 0.540727 | Elli-Ossan |
0b42a118768cb32680782b39fbf997c8faec5845 | 7,613 | cpp | C++ | runtime-lib/src/application/RuntimeApp.cpp | edwino-stein/elrond-runtime-linux | 77b64e9c960c53fa8a2a2e5b9d96e060b5c95533 | [
"Apache-2.0"
] | null | null | null | runtime-lib/src/application/RuntimeApp.cpp | edwino-stein/elrond-runtime-linux | 77b64e9c960c53fa8a2a2e5b9d96e060b5c95533 | [
"Apache-2.0"
] | 13 | 2019-11-29T21:58:39.000Z | 2020-04-02T03:30:43.000Z | runtime-lib/src/application/RuntimeApp.cpp | edwino-stein/elrond-runtime | 77b64e9c960c53fa8a2a2e5b9d96e060b5c95533 | [
"Apache-2.0"
] | null | null | null | #include "application/RuntimeApp.hpp"
#include "exceptions/Exception.hpp"
#include "modules/ModuleHandle.hpp"
#include "channel/ChannelManager.hpp"
#include "modules/InternalModuleFactory.ipp"
using elrond::runtime::RuntimeApp;
using elrond::runtime::ChannelManager;
using elrond::runtime::ChannelManagerP;
using elron... | 27.092527 | 98 | 0.600289 | edwino-stein |
0b458f3560dfcbda0491db9713de09144e50dc58 | 1,039 | cpp | C++ | SQL/ODBC/src/ConnectionHandle.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 2 | 2021-04-11T20:16:11.000Z | 2021-11-17T11:28:59.000Z | SQL/ODBC/src/ConnectionHandle.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 1 | 2016-03-31T10:04:18.000Z | 2016-03-31T10:04:43.000Z | SQL/ODBC/src/ConnectionHandle.cpp | astlin/poco | b878152e9034b89c923bc3c97e16ae1b92c09bf4 | [
"BSL-1.0"
] | 1 | 2022-03-09T08:11:03.000Z | 2022-03-09T08:11:03.000Z | //
// ConnectionHandle.cpp
//
// Library: SQL/ODBC
// Package: ODBC
// Module: ConnectionHandle
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/SQL/ODBC/ConnectionHandle.h"
#include "Poco/SQL/ODBC/Utility.h"
#includ... | 17.610169 | 68 | 0.705486 | astlin |
0b470e21e8694c172d20efdb1d98a25c660b193b | 151 | cc | C++ | build/x86/python/m5/internal/param_SrcClockDomain.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | null | null | null | build/x86/python/m5/internal/param_SrcClockDomain.i_init.cc | billionshang/gem5 | 18cc4294f32315595f865d07d1f33434e92b06b2 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_SrcClockDomain.i_init.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_SrcClockDomain();
}
EmbeddedSwig embed_swig_param_SrcClockDomain(init_param_SrcClockDomain);
| 18.875 | 72 | 0.794702 | billionshang |
0b4b57cf7a610f98db62b97ddb968b39e5729999 | 3,609 | cpp | C++ | cplusplus/src/Game/Behaviours/CharacterVisualizer.cpp | TeodorVecerdi/saxion_cplusplus | 5ffb57deb9d43b21cc72329d04f90185ecb858ad | [
"MIT"
] | 1 | 2021-04-12T19:31:40.000Z | 2021-04-12T19:31:40.000Z | cplusplus/src/Game/Behaviours/CharacterVisualizer.cpp | TeodorVecerdi/saxion_cplusplus | 5ffb57deb9d43b21cc72329d04f90185ecb858ad | [
"MIT"
] | null | null | null | cplusplus/src/Game/Behaviours/CharacterVisualizer.cpp | TeodorVecerdi/saxion_cplusplus | 5ffb57deb9d43b21cc72329d04f90185ecb858ad | [
"MIT"
] | null | null | null | #include "CharacterVisualizer.hpp"
#include "Core/Behaviours/FilledSpriteRenderer.hpp"
#include "Core/Behaviours/SpriteRenderer.hpp"
#include "Core/Behaviours/TextRenderer.hpp"
#include "Game/State/Character.hpp"
CharacterVisualizer::CharacterVisualizer(std::shared_ptr<Character> character, SpriteRenderer* mainSprite... | 43.481928 | 170 | 0.707121 | TeodorVecerdi |
0b4ca9b788820caea179fa613e3cd894ddc9be92 | 3,951 | cpp | C++ | src/editor/loader/loader.cpp | yeshvvvanth/raccoon-engine | fc9b6544429578b223115c0f8d91c4053e189914 | [
"MIT"
] | null | null | null | src/editor/loader/loader.cpp | yeshvvvanth/raccoon-engine | fc9b6544429578b223115c0f8d91c4053e189914 | [
"MIT"
] | null | null | null | src/editor/loader/loader.cpp | yeshvvvanth/raccoon-engine | fc9b6544429578b223115c0f8d91c4053e189914 | [
"MIT"
] | 1 | 2019-12-21T09:53:41.000Z | 2019-12-21T09:53:41.000Z | #include"loader.h"
DIR* dir; // directory pointer aka folder pointer
dirent* drnt; // directory entry aka file structure pointer
void savePrefs(std::ofstream& ofs,std::string folder);
void saveAssets(Ushort &ass_num,std::ofstream& ofs,std::string dir);
void loadAss(std::string Gdir,std::string RPATH){
U... | 30.392308 | 88 | 0.601367 | yeshvvvanth |
0b50f99710e8617ff197e906c8c8b6fe9f4b70e5 | 833 | cpp | C++ | Cherno2D/Renderer.cpp | Vivekyadavgithub/ChernoLights | c455e2ae26a4885daf906895b710c92ba420ed84 | [
"MIT"
] | 2 | 2021-10-04T06:36:12.000Z | 2021-11-15T10:27:01.000Z | Cherno2D/Renderer.cpp | Vivekyadavgithub/ChernoLights | c455e2ae26a4885daf906895b710c92ba420ed84 | [
"MIT"
] | null | null | null | Cherno2D/Renderer.cpp | Vivekyadavgithub/ChernoLights | c455e2ae26a4885daf906895b710c92ba420ed84 | [
"MIT"
] | null | null | null | #include "Renderer.h"
void GLClearError()
{
while (glGetError() != GL_NO_ERROR);
}
bool GLLogCall(const char* function, const char* file, int line)
{
while (GLenum error = glGetError())
{
std::cout << "[Opengl Error] (" << error << "): "
<< function << " " << file << ":" << line << "\n";
return false;
}
r... | 21.921053 | 93 | 0.663866 | Vivekyadavgithub |
0b56418b1dde73ce1c33785ddbdfb4c171ed636d | 1,465 | cc | C++ | 0125_Valid_Palindrome/0125.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0125_Valid_Palindrome/0125.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0125_Valid_Palindrome/0125.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include<string>
#include<cctype>
using std::string;
class Solution {
public:
bool isPalindrome(const string s) {
size_t left = 0;
size_t right = s.size() == 0 ? 0 : s.size() - 1;
while (left < right) {
const char ch_left = std::tolower(s[left]);
const char ch_right = std::tolower(s[right]);
if (!(('... | 23.253968 | 112 | 0.563823 | LuciusKyle |
0b5b46c4b0a0a3ad03b7213ad17461684af8f1fd | 563 | c++ | C++ | coding_deletion_operation_array.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | coding_deletion_operation_array.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | coding_deletion_operation_array.c++ | Sambitcr-7/DSA-C- | f3c80f54fa6160a99f39a934f330cdf40711de50 | [
"Apache-2.0"
] | null | null | null | #include<stdio.h>
void display(int arr[], int n)
{
// Code for Traversal
for(int i = 0; i < n; i++)
{
printf("%d", arr[i]);
}
printf("\n");
}
void indDeletion(int arr[], int size, int index)
{
// code for Delection
for(int i = index; i < size-1; i++)
{
... | 18.16129 | 49 | 0.474245 | Sambitcr-7 |
0b5be8d421ec2ca9b56fba687d93551f9a156b81 | 2,092 | hpp | C++ | include/mapbox/geojsonvt/convert.hpp | nextgis-borsch/lib_geojsonvt | d24412747fe3054ce4d645767bc0f2eae97a72f5 | [
"ISC"
] | null | null | null | include/mapbox/geojsonvt/convert.hpp | nextgis-borsch/lib_geojsonvt | d24412747fe3054ce4d645767bc0f2eae97a72f5 | [
"ISC"
] | null | null | null | include/mapbox/geojsonvt/convert.hpp | nextgis-borsch/lib_geojsonvt | d24412747fe3054ce4d645767bc0f2eae97a72f5 | [
"ISC"
] | 1 | 2018-08-01T11:28:18.000Z | 2018-08-01T11:28:18.000Z | #ifndef MAPBOX_GEOJSONVT_CONVERT
#define MAPBOX_GEOJSONVT_CONVERT
#include "types.hpp"
#include <rapidjson/document.h>
#include <vector>
namespace mapbox {
namespace geojsonvt {
// Use the CrtAllocator, because the MemoryPoolAllocator is broken on ARM
// https://github.com/miloyip/rapidjson/issues/200
// https://g... | 33.206349 | 100 | 0.710325 | nextgis-borsch |
0b68cf6d878cd7084b0c08f2afa5f4cdc56a571e | 3,192 | hpp | C++ | ShadowMapping/CascadedShadowMappingRenderer.hpp | LYP951018/EasyDX | 10b5a04c13af1fc6c3b405e309dc754a42530011 | [
"Apache-2.0"
] | 3 | 2017-03-12T07:26:56.000Z | 2017-11-20T13:01:46.000Z | ShadowMapping/CascadedShadowMappingRenderer.hpp | LYP951018/EasyDX | 10b5a04c13af1fc6c3b405e309dc754a42530011 | [
"Apache-2.0"
] | 9 | 2019-04-27T08:36:01.000Z | 2021-11-25T16:36:02.000Z | ShadowMapping/CascadedShadowMappingRenderer.hpp | LYP951018/EasyDX | 10b5a04c13af1fc6c3b405e309dc754a42530011 | [
"Apache-2.0"
] | 2 | 2018-04-16T09:41:56.000Z | 2021-11-01T06:17:58.000Z | #pragma once
inline static constexpr std::uint32_t kCascadedCount = 4;
template<typename T>
using CascadedArray = std::array<T, kCascadedCount>;
struct CascadedShadowMapConfig
{
dx::Size ShadowMapSize;
dx::Size ScreenSpaceTexSize;
std::array<float, kCascadedCount + 1> Intervals;
};
class CascadedShadowM... | 40.923077 | 80 | 0.710213 | LYP951018 |
0b69edb395a4277af70ac710f3dc10abb17679c1 | 233 | cpp | C++ | qtsearch/src/main.cpp | tomgey/hidden-content | 9a7a1d8af37bcc039c1f0674a98f4d3e613cb322 | [
"MIT"
] | null | null | null | qtsearch/src/main.cpp | tomgey/hidden-content | 9a7a1d8af37bcc039c1f0674a98f4d3e613cb322 | [
"MIT"
] | null | null | null | qtsearch/src/main.cpp | tomgey/hidden-content | 9a7a1d8af37bcc039c1f0674a98f4d3e613cb322 | [
"MIT"
] | null | null | null | #include "text_widget.hpp"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
TextWidget w;
//w.setWindowFlags(Qt::ToolTip | Qt::CustomizeWindowHint);
w.show();
return app.exec();
}
| 16.642857 | 60 | 0.682403 | tomgey |
0b6b92c97bcbaa459c9a472c5dbae352f6edc493 | 2,792 | cpp | C++ | Samples/Win32WebSocket/main.cpp | shanfl/libHttpClient | e3f83ce740261697b1e95f403dc3605993fba593 | [
"MIT"
] | 1 | 2019-02-17T03:52:14.000Z | 2019-02-17T03:52:14.000Z | Samples/Win32WebSocket/main.cpp | shanfl/libHttpClient | e3f83ce740261697b1e95f403dc3605993fba593 | [
"MIT"
] | null | null | null | Samples/Win32WebSocket/main.cpp | shanfl/libHttpClient | e3f83ce740261697b1e95f403dc3605993fba593 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
HANDLE g_eventHandle;
void message_received(
_In_ HCWebsocketHandle websocket,
_In_z_ const char* incomingBodyString
)
{
printf_s("Received web... | 31.022222 | 112 | 0.7149 | shanfl |
0b6c6a03aadd72ff9b96256c608ab17e1af69859 | 86,931 | cpp | C++ | sp.cpp | hello31337/BI-SGX | bce261dc243355e855da5fcac857a1ff43627c60 | [
"Intel"
] | 18 | 2019-07-20T08:29:04.000Z | 2021-04-29T07:54:18.000Z | sp.cpp | hello31337/BI-SGX | bce261dc243355e855da5fcac857a1ff43627c60 | [
"Intel"
] | null | null | null | sp.cpp | hello31337/BI-SGX | bce261dc243355e855da5fcac857a1ff43627c60 | [
"Intel"
] | 4 | 2020-06-19T15:38:35.000Z | 2021-06-17T16:31:18.000Z | /*
Copyright 2019 Intel Corporation
This software and the related documents are Intel copyrighted materials,
and your use of them is governed by the express license under which they
were provided to you (License). Unless the License provides otherwise,
you may not use, modify, copy, publish, distribute, disclose or t... | 27.764612 | 113 | 0.615201 | hello31337 |
0b6f18e8ab22263731342584aa2c6e7799b4d14e | 6,009 | hpp | C++ | include/queues.hpp | gerzin/parallel-cellular-automata | dcaf220fa89e8348486aa17d46a864d6ee64e46d | [
"MIT"
] | null | null | null | include/queues.hpp | gerzin/parallel-cellular-automata | dcaf220fa89e8348486aa17d46a864d6ee64e46d | [
"MIT"
] | null | null | null | include/queues.hpp | gerzin/parallel-cellular-automata | dcaf220fa89e8348486aa17d46a864d6ee64e46d | [
"MIT"
] | null | null | null | /**
* @file queues.hpp
* @author Gerardo Zinno (gerardozinno1@gmail.com)
* @brief This file contains the definition and implementation of some useful thread-safe queues.
* @version 0.2
* @date 2021-12-22
*
* @copyright Copyright (c) 2021
*
*/
#ifndef PARALLEL_CELLULAR_AUTOMATA_WORKSTEALINGQUEUE_HPP
#define PAR... | 24.426829 | 115 | 0.565984 | gerzin |
0b719957d94ad5d39539417133ae3a8210ade4bd | 79,600 | cpp | C++ | src/realm/sync/noinst/client_history_impl.cpp | simonboots/realm-core | 8cda8038ea6aac58883826a22a1e07901a009d9f | [
"Apache-2.0"
] | null | null | null | src/realm/sync/noinst/client_history_impl.cpp | simonboots/realm-core | 8cda8038ea6aac58883826a22a1e07901a009d9f | [
"Apache-2.0"
] | null | null | null | src/realm/sync/noinst/client_history_impl.cpp | simonboots/realm-core | 8cda8038ea6aac58883826a22a1e07901a009d9f | [
"Apache-2.0"
] | null | null | null | #include <ctime>
#include <cstring>
#include <algorithm>
#include <utility>
#include <realm/util/features.h>
#include <realm/util/scope_exit.hpp>
#include <realm/sync/noinst/client_history_impl.hpp>
#include <realm/sync/version.hpp>
#include <realm/sync/object.hpp>
#include <realm/sync/changeset.hpp>
#include <realm/s... | 43.19045 | 118 | 0.685188 | simonboots |
0b77d2e4b427e25c6f3c4d207dabbb1924cfbd9d | 715 | hh | C++ | libqpdf/qpdf/SF_ASCII85Decode.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | libqpdf/qpdf/SF_ASCII85Decode.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | 3 | 2021-11-19T15:59:21.000Z | 2021-12-10T20:44:33.000Z | libqpdf/qpdf/SF_ASCII85Decode.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | #include <qpdf/Pl_ASCII85Decoder.hh>
#include <qpdf/QPDFStreamFilter.hh>
#include <memory>
#ifndef SF_ASCII85DECODE_HH
# define SF_ASCII85DECODE_HH
class SF_ASCII85Decode: public QPDFStreamFilter
{
public:
SF_ASCII85Decode() = default;
virtual ~SF_ASCII85Decode() = default;
virtual Pipeline*
getDec... | 21.666667 | 72 | 0.692308 | m-holger |
0b7953f0b750236f4410a29b3107500afe71edc1 | 13,357 | cpp | C++ | samples/chezray/polyplot/qmain.cpp | nickmain/Amzi-Prolog | 6ce17a494fc93f3f27e02896a6a5ff7ac4b33c3e | [
"MIT"
] | 86 | 2016-04-16T06:35:44.000Z | 2021-04-14T05:46:32.000Z | samples/chezray/polyplot/qmain.cpp | nickmain/Amzi-Prolog | 6ce17a494fc93f3f27e02896a6a5ff7ac4b33c3e | [
"MIT"
] | 20 | 2021-05-14T16:55:09.000Z | 2022-01-29T13:09:52.000Z | samples/chezray/polyplot/qmain.cpp | nickmain/Amzi-Prolog | 6ce17a494fc93f3f27e02896a6a5ff7ac4b33c3e | [
"MIT"
] | 15 | 2016-04-16T19:10:45.000Z | 2020-11-04T04:07:21.000Z | #include <windows.h> // includes basic windows functionality
#include <stdio.h> // includes standard file i/o functionality
#include <stdlib.h>
#include <string.h> // includes string functions
#include <cderr.h> // includes the common dialog error codes
#include <commctrl.h> // includes common c... | 33.061881 | 80 | 0.544359 | nickmain |
0b79ec79d3833e029650a0b7209eca067978b02b | 15,467 | hpp | C++ | bcl/containers/sequential/CSRMatrix.hpp | berkeley-container-library/bcl | a1df887318f0ecda25dfdca5f609b65873475e37 | [
"BSD-3-Clause"
] | 92 | 2019-05-21T23:01:21.000Z | 2022-02-16T16:06:11.000Z | bcl/containers/sequential/CSRMatrix.hpp | berkeley-container-library/bcl | a1df887318f0ecda25dfdca5f609b65873475e37 | [
"BSD-3-Clause"
] | 10 | 2019-06-03T20:52:50.000Z | 2021-11-21T04:59:57.000Z | bcl/containers/sequential/CSRMatrix.hpp | berkeley-container-library/bcl | a1df887318f0ecda25dfdca5f609b65873475e37 | [
"BSD-3-Clause"
] | 16 | 2019-06-05T21:04:52.000Z | 2022-01-18T19:42:50.000Z | // SPDX-FileCopyrightText: 2021 Benjamin Brock
//
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <stdexcept>
#include <regex.h>
#include <cassert>
#include <array>
#include <memory>
#include <limits>
#include <algorithm>
#inc... | 28.07078 | 105 | 0.587638 | berkeley-container-library |
0b7aca54a85187b9ef6492623a0678ac41c77eea | 1,757 | cpp | C++ | code/4/4_pre1_5_light.cpp | kdh9949/snups-scpc2020 | 7a3266ea6ba618e5ae066f156f404689d5e270b6 | [
"MIT"
] | 6 | 2020-07-14T01:46:39.000Z | 2021-06-15T06:08:28.000Z | code/4/4_pre1_5_light.cpp | kdh9949/snups-scpc2020 | 7a3266ea6ba618e5ae066f156f404689d5e270b6 | [
"MIT"
] | null | null | null | code/4/4_pre1_5_light.cpp | kdh9949/snups-scpc2020 | 7a3266ea6ba618e5ae066f156f404689d5e270b6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pil = pair<int, ll>;
using pli = pair<ll, int>;
using pll = pair<ll, ll>;
using vint = vector<int>;
using vll = vector<ll>;
using vld = vector<ld>;
using vpii = vector<pii>;
using vpil = vecto... | 18.892473 | 58 | 0.446784 | kdh9949 |
0b7add9c6f0c0f1ed167294fae6be8a8caa6ce99 | 25,066 | cpp | C++ | src/ConePlacer.cpp | MarkGillespie/OptimalCones | 7572259e9ae664f7653e96206a0d68f9e3b303d3 | [
"MIT"
] | null | null | null | src/ConePlacer.cpp | MarkGillespie/OptimalCones | 7572259e9ae664f7653e96206a0d68f9e3b303d3 | [
"MIT"
] | null | null | null | src/ConePlacer.cpp | MarkGillespie/OptimalCones | 7572259e9ae664f7653e96206a0d68f9e3b303d3 | [
"MIT"
] | null | null | null | #include "ConePlacer.h"
ConePlacer::ConePlacer(ManifoldSurfaceMesh& mesh_, VertexPositionGeometry& geo_)
: mesh(mesh_), geo(geo_) {
vIdx = mesh.getVertexIndices();
isInterior = Vector<bool>(mesh.nVertices());
for (Vertex v : mesh.vertices()) {
isInterior(vIdx[v]) = !v.isBoundary();
}
n... | 32.938239 | 94 | 0.587329 | MarkGillespie |
0b7caf3f71016a042995631a17bbab5d45309985 | 3,269 | hh | C++ | include/ten/jsonpack.hh | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 23 | 2015-02-28T12:51:54.000Z | 2021-07-21T10:34:20.000Z | include/ten/jsonpack.hh | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 1 | 2015-04-26T05:44:18.000Z | 2015-04-26T05:44:18.000Z | include/ten/jsonpack.hh | toffaletti/libten | 00c6dcc91c8d769c74ed9063277b1120c9084427 | [
"Apache-2.0"
] | 8 | 2015-05-04T08:04:11.000Z | 2020-09-07T11:30:56.000Z | #ifndef LIBTEN_JSONPACK_HH
#define LIBTEN_JSONPACK_HH
#include "msgpack/msgpack.hpp"
#include "ten/json.hh"
//! \file
//! convert between msgpack and json
namespace msgpack {
using ten::json;
inline json& operator>> (object o, json& v)
{
switch (o.type) {
case type::NIL:
v = json::null();
... | 24.954198 | 77 | 0.401958 | toffaletti |
0b80b13d6d96b15717ec59aa70e700050515bfd9 | 1,493 | hpp | C++ | src/lib/ast/variableSetter/VariableSetter.hpp | psrebniak/css-preprocessor | 7b54fe3d47c22039239e0690eab39f5ebf027b83 | [
"MIT"
] | null | null | null | src/lib/ast/variableSetter/VariableSetter.hpp | psrebniak/css-preprocessor | 7b54fe3d47c22039239e0690eab39f5ebf027b83 | [
"MIT"
] | null | null | null | src/lib/ast/variableSetter/VariableSetter.hpp | psrebniak/css-preprocessor | 7b54fe3d47c22039239e0690eab39f5ebf027b83 | [
"MIT"
] | null | null | null | //
// Created by piotrek on 18.10.16.
//
#ifndef CSSPREPROCESSOR_VARIABLESETTER_HPP
#define CSSPREPROCESSOR_VARIABLESETTER_HPP
#include "lib/ast/node/Node.hpp"
#include "lib/ast/value/value/Value.hpp"
namespace CSSP {
namespace AST {
class VariableSetter : public Node {
public:
/**
... | 22.283582 | 84 | 0.449431 | psrebniak |
0b82daa4a399ef7589e6fb0697403c0a3b9724b7 | 7,016 | cpp | C++ | Nacro/SDK/FN_GAB_PlayerDBNOResurrect_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_GAB_PlayerDBNOResurrect_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_GAB_PlayerDBNOResurrect_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function GAB_PlayerDBNOResurrect.GAB_... | 37.518717 | 177 | 0.784778 | Milxnor |
0b8622f9d88e52d68d3d07490420ac76d1882fc8 | 11,967 | cpp | C++ | src/gpgomea_python.cpp | dzhliu/evoNSGA-II | 060ee4f3191f561829ad5bbe3f813c292caad5b4 | [
"Apache-2.0"
] | 1 | 2022-02-24T17:02:50.000Z | 2022-02-24T17:02:50.000Z | src/gpgomea_python.cpp | dzhliu/evoNSGA-II | 060ee4f3191f561829ad5bbe3f813c292caad5b4 | [
"Apache-2.0"
] | null | null | null | src/gpgomea_python.cpp | dzhliu/evoNSGA-II | 060ee4f3191f561829ad5bbe3f813c292caad5b4 | [
"Apache-2.0"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <sstream>
#include <armadillo>
#include <boost/python.hpp>
#include <boost/python/numpy.hpp>
#include <boost/mem_fn.hpp>
#include <boost/shared_ptr.hpp>
#include "GPGOMEA/Evolution/EvolutionState.h"
#include "GPGOMEA/Evolution/EvolutionRun.h"
#include "GPGOMEA/RunHandli... | 35.616071 | 150 | 0.592295 | dzhliu |
0b87c4ec6b81d8330d0ef67904274a56100b089d | 2,521 | hpp | C++ | include/make_currencies.hpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 4 | 2016-07-05T07:42:07.000Z | 2020-07-15T15:27:22.000Z | include/make_currencies.hpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | 1 | 2020-05-07T20:58:21.000Z | 2020-05-07T20:58:21.000Z | include/make_currencies.hpp | skybaboon/dailycashmanager | 0b022cc230a8738d5d27a799728da187e22f17f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Matthew Harvey
*
* 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... | 33.171053 | 76 | 0.759223 | skybaboon |
0b8bb043434d7ce6566b0f19465b8d28507db968 | 476 | cpp | C++ | solutions/Easy/832. Flipping an Image/solution1.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Easy/832. Flipping an Image/solution1.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | solutions/Easy/832. Flipping an Image/solution1.cpp | BASARANOMO/leetcode-cpp | f779ec46e672f01cec69077e854d6ba15e451d27 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) {
int m = A.size();
int temp;
for (int i = 0; i < m; i++) {
for (int j = 0; j < m / 2; j++) {
temp = 1 - A[i][j];
A[i][j] = 1 - A[i][m - 1 - j];
... | 25.052632 | 68 | 0.321429 | BASARANOMO |
0b8e2f9a478472db7d2001cde7df53f0c3f0bd22 | 2,259 | cpp | C++ | CLRS/BinaryTree/LowestCommonAncestorofaBinaryTreeIII.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/BinaryTree/LowestCommonAncestorofaBinaryTreeIII.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | CLRS/BinaryTree/LowestCommonAncestorofaBinaryTreeIII.cpp | ComputerProgrammerStorager/DataStructureAlgorithm | 508f7e37898c907ea7ea6ec40749621a2349e93f | [
"MIT"
] | null | null | null | /*
*/
#include "../Common/common_api.h"
#include "tree.h"
// walk up one path to find all parents and then walk up the other node and find the first existing parent
class Solution {
public:
NodeWithParent* lowestCommonAncestor(NodeWithParent* p, NodeWithParent * q) {
set<Node*> p_path;
Node * lca... | 20.724771 | 107 | 0.362107 | ComputerProgrammerStorager |
0b8ed7ecd7f0a15525885a875c9ebcc709ae6961 | 1,104 | cpp | C++ | ext/UiaDll/UiaDll/SelectionMethods.cpp | leoniv/uia | eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309 | [
"MIT"
] | 11 | 2015-04-16T18:20:35.000Z | 2021-10-07T00:48:41.000Z | ext/UiaDll/UiaDll/SelectionMethods.cpp | leoniv/uia | eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309 | [
"MIT"
] | 7 | 2016-01-14T10:04:02.000Z | 2020-02-24T12:55:09.000Z | ext/UiaDll/UiaDll/SelectionMethods.cpp | leoniv/uia | eafe3dd5f27cbc5b3c73a9c9342af234f6e5f309 | [
"MIT"
] | 4 | 2015-10-26T16:18:46.000Z | 2018-08-11T00:45:17.000Z | #include "Stdafx.h"
extern "C" {
__declspec(dllexport) void Selection_Release(SelectionInformationPtr selectionInfo) {
delete selectionInfo;
}
__declspec(dllexport) SelectionInformationPtr Selection_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) {
try {
retu... | 40.888889 | 158 | 0.748188 | leoniv |
0b916553a026b38cd6c38eec57c15f836cb464bc | 12,884 | cpp | C++ | source/ff.dx12/source/resource_tracker.cpp | spadapet/ff_game_library_proto | 9c17aca23e965895e3e26e9680b5db893285717c | [
"MIT"
] | null | null | null | source/ff.dx12/source/resource_tracker.cpp | spadapet/ff_game_library_proto | 9c17aca23e965895e3e26e9680b5db893285717c | [
"MIT"
] | null | null | null | source/ff.dx12/source/resource_tracker.cpp | spadapet/ff_game_library_proto | 9c17aca23e965895e3e26e9680b5db893285717c | [
"MIT"
] | null | null | null | #include "pch.h"
#include "access.h"
#include "resource.h"
#include "resource_tracker.h"
// https://docs.microsoft.com/en-us/windows/win32/direct3d12/using-resource-barriers-to-synchronize-resource-states-in-direct3d-12#common-state-promotion
static bool allow_promotion(ff::dx12::resource& resource, ff::dx12::resource... | 40.772152 | 174 | 0.629152 | spadapet |
0b9267631074af22d1fd766826da2ef07116e96a | 74 | cc | C++ | src/Iterator.cc | dosco/devildb | 05969c766ab17b44a141e04804c2638bd4ac2d05 | [
"MIT"
] | 3 | 2015-01-30T08:15:08.000Z | 2021-12-01T13:25:56.000Z | src/Iterator.cc | dosco/devildb | 05969c766ab17b44a141e04804c2638bd4ac2d05 | [
"MIT"
] | null | null | null | src/Iterator.cc | dosco/devildb | 05969c766ab17b44a141e04804c2638bd4ac2d05 | [
"MIT"
] | 2 | 2020-09-12T22:28:48.000Z | 2021-09-16T07:37:34.000Z | #include "iterator.h"
Iterator::Iterator() {
}
Iterator::~Iterator() {
} | 10.571429 | 23 | 0.648649 | dosco |
0b9592129637162c74ca8bb0fa06211f46c04543 | 5,561 | cpp | C++ | src/Prey/game_damagetester.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | 2 | 2018-08-30T23:48:22.000Z | 2021-04-07T19:16:18.000Z | src/Prey/game_damagetester.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | src/Prey/game_damagetester.cpp | AMS21/PreyRun | 3efc9d70228bcfb8bc18f6ff23a05c8be1e45101 | [
"MIT"
] | null | null | null | //**************************************************************************
//**
//** GAME_DAMAGETESTER.CPP
//**
//**
//** This object is used to calculate the damage done to it over time
//** When initially damaged, it calculates the amount of damage done for a
//** given amount of time
//***************************... | 30.894444 | 163 | 0.507463 | AMS21 |
0b9bec00a6470e174ef41781b8a5aa6fa86539e0 | 3,709 | hpp | C++ | driver/master.hpp | freshsandy/Grasper | 8025a5fcfbabde6bc824330f6d70b5a6a0377916 | [
"Apache-2.0"
] | null | null | null | driver/master.hpp | freshsandy/Grasper | 8025a5fcfbabde6bc824330f6d70b5a6a0377916 | [
"Apache-2.0"
] | null | null | null | driver/master.hpp | freshsandy/Grasper | 8025a5fcfbabde6bc824330f6d70b5a6a0377916 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2019 Husky Data Lab, CUHK
Authors: Hongzhi Chen (hzchen@cse.cuhk.edu.hk)
*/
#ifndef MASTER_HPP_
#define MASTER_HPP_
#include <map>
#include <vector>
#include <thread>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <limits.h>
#include "base/node.hpp"
#include "base/communication.hp... | 26.119718 | 121 | 0.549474 | freshsandy |
0b9db1680c7a3e776aa4ad8b8c52b4b863e9fe06 | 239 | cpp | C++ | Valtrook/Valtrook/FileReader.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | Valtrook/Valtrook/FileReader.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | Valtrook/Valtrook/FileReader.cpp | animeenginedev/Valtrook | 10cf7332643765534f8a4263cc4e422c4356487b | [
"MIT"
] | null | null | null | #include "FileReader.h"
namespace Val {
FileReader::FileReader(std::string path, std::string name) {
File.open((path + name).c_str(), std::fstream::in);
}
FileReader::~FileReader() {
if (File.is_open()) {
File.close();
}
}
} | 18.384615 | 61 | 0.631799 | animeenginedev |
0b9f512d38fcc9fcd6fb1699b7893722eb97bdac | 10,949 | hpp | C++ | emulation/hel/include/bounds_checked_array.hpp | HiceS/synthesis | 9dbc6812cd296a04c35d45854e821f76c5890b56 | [
"Apache-2.0"
] | 1 | 2020-09-11T19:34:39.000Z | 2020-09-11T19:34:39.000Z | emulation/hel/include/bounds_checked_array.hpp | HiceS/synthesis | 9dbc6812cd296a04c35d45854e821f76c5890b56 | [
"Apache-2.0"
] | null | null | null | emulation/hel/include/bounds_checked_array.hpp | HiceS/synthesis | 9dbc6812cd296a04c35d45854e821f76c5890b56 | [
"Apache-2.0"
] | 1 | 2020-09-11T19:49:36.000Z | 2020-09-11T19:49:36.000Z | #ifndef _BOUNDS_CHECKED_ARRAY_HPP_
#define _BOUNDS_CHECKED_ARRAY_HPP_
#include "error.hpp"
#include <array>
#include <functional>
namespace hel{
/**
* \brief Array wrapper with bounds checking and helpful operators
* \tparam T The type the BoundsCheckedArray stores
* \tparam LEN The length of the... | 32.781437 | 205 | 0.574299 | HiceS |
24395cf658fd5bd37fc3b249ccb81e4529f50310 | 608 | hpp | C++ | include/rtmfp/Performer.hpp | zenomt/rtmfp-cpp | e85d8928d5192c5e16f963ca281a4c5a701dae7b | [
"MIT"
] | 21 | 2021-01-25T07:33:12.000Z | 2022-02-09T08:08:51.000Z | include/rtmfp/Performer.hpp | zenomt/rtmfp-cpp | e85d8928d5192c5e16f963ca281a4c5a701dae7b | [
"MIT"
] | 2 | 2021-04-25T15:30:27.000Z | 2021-06-26T22:56:31.000Z | include/rtmfp/Performer.hpp | zenomt/rtmfp-cpp | e85d8928d5192c5e16f963ca281a4c5a701dae7b | [
"MIT"
] | null | null | null | #pragma once
// Copyright © 2021 Michael Thornburgh
// SPDX-License-Identifier: MIT
#include "RunLoop.hpp"
#include <mutex>
namespace com { namespace zenomt {
class Performer : public Object {
public:
Performer(RunLoop *runLoop);
~Performer();
void perform(const Task &task, bool wait = false);
void close();
... | 16.888889 | 51 | 0.679276 | zenomt |
243f922927bc1e94db9d23681e7eeff142ea5140 | 1,025 | cpp | C++ | Shoemaker's_problem.cpp | jrcforever/Programming-Challenges | a8bd5cefe8e1687449ba309bb49e874c02f96c54 | [
"MIT"
] | null | null | null | Shoemaker's_problem.cpp | jrcforever/Programming-Challenges | a8bd5cefe8e1687449ba309bb49e874c02f96c54 | [
"MIT"
] | null | null | null | Shoemaker's_problem.cpp | jrcforever/Programming-Challenges | a8bd5cefe8e1687449ba309bb49e874c02f96c54 | [
"MIT"
] | null | null | null |
// Shoemaker's problem
// Created by Kim Jong-uk at 2017.01.17
// Protected by MIT license
#include <stdio.h>
#define TOTAL_LOCAL_TEST_CASE 1000
int main()
{
int totalTestCase;
int i,j, k;
int localTestCase;
scanf("%d", &totalTestCase);
for (i = 0; i < totalTestCase; i++) {
int costDay[TOTAL_LOCAL_TEST_C... | 21.354167 | 96 | 0.599024 | jrcforever |
2444c697116c2f19037eb420e1aaf82aaf30ea8e | 18,519 | cc | C++ | test/src/derived_unit_tests/electric_conductance_tests.cc | bladan/SI | 7ca5b67e072bb3d4b3041dad6d66f9d12ecf461e | [
"MIT"
] | null | null | null | test/src/derived_unit_tests/electric_conductance_tests.cc | bladan/SI | 7ca5b67e072bb3d4b3041dad6d66f9d12ecf461e | [
"MIT"
] | null | null | null | test/src/derived_unit_tests/electric_conductance_tests.cc | bladan/SI | 7ca5b67e072bb3d4b3041dad6d66f9d12ecf461e | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <SI/electric_conductance.h>
#include <SI/electric_resistance.h>
#include <SI/stream.h>
#include <sstream>
using namespace SI::literals;
TEST_CASE("GIVEN a value WHEN constructed with literal _aS THEN result is a "
"electric_conductance type AND ratio 1 to 10^15") {
con... | 35.007561 | 80 | 0.634268 | bladan |
244d901b660e411a6fea100532519b02fb11ca61 | 1,419 | cpp | C++ | UVa/556 - Amazing.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | 1 | 2018-11-21T07:36:16.000Z | 2018-11-21T07:36:16.000Z | UVa/556 - Amazing.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | UVa/556 - Amazing.cpp | geniustanley/problem-solving | 2b83c5c8197fa8fe2277367027b392a2911d4a28 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#define max 105
int direction[4][2] = {
{0, 1},
{1, 0},
{0, -1},
{-1, 0},
};
int main(void)
{
int b, w, d;
int curB, curW;
int maze[max][max];
char c;
while (EOF != scanf("%d %d\n", &b, &w) && (b || w)) {
for (int i = 0; i < max; i++)
for (int j = 0; j < max; j++)
... | 18.671053 | 83 | 0.359408 | geniustanley |
245144b94d76bd4ca074325bbafbcdc020441750 | 1,357 | hpp | C++ | src/stzparam.hpp | egdaub/fdfault | ec066f032ba109843164429aa7d9e7352485d735 | [
"MIT"
] | 12 | 2017-10-05T22:04:40.000Z | 2020-08-31T08:32:17.000Z | src/stzparam.hpp | jhsa26/fdfault | ec066f032ba109843164429aa7d9e7352485d735 | [
"MIT"
] | 3 | 2020-05-06T16:48:32.000Z | 2020-09-18T11:41:41.000Z | src/stzparam.hpp | jhsa26/fdfault | ec066f032ba109843164429aa7d9e7352485d735 | [
"MIT"
] | 12 | 2017-03-24T19:15:27.000Z | 2020-08-31T08:32:18.000Z | #ifndef STZPARAMCLASSHEADERDEF
#define STZPARAMCLASSHEADERDEF
#include <string>
#include "pert.hpp"
class stzparam: public pert
{
public:
stzparam(const std::string type_in, const double t0_in, const double x0_in, const double dx_in,
const double y0_in, const double dy_in, const int n[2], const int xm[2]... | 37.694444 | 102 | 0.696389 | egdaub |
24587c6238c8ed046ad94342317fd3a83d844fea | 1,238 | hpp | C++ | sprout/type/rebind_types.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/type/rebind_types.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/type/rebind_types.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_TYPE_REBIND_TYPES_HPP
#define SPROUT_TYPE_REBIND_TYPES_HPP
#include <sprout/config.hpp>
namespace sprout {
namespace types {
//
// rebind_types
//
template<typename Tuple>
struct rebind_types;
template<typename Tuple>
struct rebind_types<Tuple const> {
public:
templ... | 20.295082 | 50 | 0.637318 | osyo-manga |
245b3d0fe5a91831d9d7ba873f1a83858f52a57d | 11,551 | cpp | C++ | net.ssa/Editors/LevelEditor/Edit/TextureIO.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | Editor/Edit/TextureIO.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | null | null | null | Editor/Edit/TextureIO.cpp | ixray-team/xray-vss-archive | b245c8601dcefb505b4b51f58142da6769d4dc92 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | //----------------------------------------------------
// file: Texture.cpp
//----------------------------------------------------
#include "stdafx.h"
#pragma hdrstop
#include "Texture.h"
#include "Log.h"
#include "FileSystem.h"
#include "nvdxt_options.h"
#include "dxtlib.h"
bool MakeTGA( DWORDVec& pixe... | 29.022613 | 146 | 0.544455 | ixray-team |
245b870397154b14dab8fdca182620365891cb1c | 2,005 | cpp | C++ | SerialPrograms/Source/Kernels/ImageStats/Kernels_ImagePixelSumSqr_Default.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/Kernels/ImageStats/Kernels_ImagePixelSumSqr_Default.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | SerialPrograms/Source/Kernels/ImageStats/Kernels_ImagePixelSumSqr_Default.cpp | BlizzardHero/Arduino-Source | bc4ce6433651b0feef488735098900f8bf4144f8 | [
"MIT"
] | null | null | null | /* Pixel Sum + Sum of Squares (Default)
*
* From: https://github.com/PokemonAutomation/Arduino-Source
*
*/
#include "Common/Cpp/Exceptions.h"
#include "Kernels_ImagePixelSumSqr_Default.h"
namespace PokemonAutomation{
namespace Kernels{
PA_FORCE_INLINE void pixel_sum_sqr_Default(
PixelSums& s... | 23.588235 | 116 | 0.546135 | BlizzardHero |
245de8aaa0481b87e53b7160226a00051d8639d7 | 7,207 | cc | C++ | src/operators/PDE_MagneticDiffusion.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/operators/PDE_MagneticDiffusion.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/operators/PDE_MagneticDiffusion.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
Operators
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Konstantin Lipnikov (lipnikov@lanl.gov)
*/
#include <vector... | 27.507634 | 81 | 0.564312 | fmyuan |
24624751c1aec891b8427c47f3058b997e2f1d9d | 167 | hpp | C++ | code/src/utility/inaccessible.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 3 | 2020-04-29T14:55:58.000Z | 2020-08-20T08:43:24.000Z | code/src/utility/inaccessible.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | 1 | 2022-03-12T11:37:46.000Z | 2022-03-12T20:17:38.000Z | code/src/utility/inaccessible.hpp | shossjer/fimbulwinter | d894e4bddb5d2e6dc31a8112d245c6a1828604e3 | [
"0BSD"
] | null | null | null |
#ifndef UTILITY_INACCESSIBLE_HPP
#define UTILITY_INACCESSIBLE_HPP
#include <exception>
#define INACCESSIBLE std::terminate()
#endif /* UTILITY_INACCESSIBLE_HPP */
| 16.7 | 37 | 0.808383 | shossjer |
2463fac3f9d80cd4982f613ec909f6fc8dd53cfa | 13,510 | cpp | C++ | packages/monte_carlo/active_region/core/src/MonteCarlo_PhaseSpaceDimensionDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/active_region/core/src/MonteCarlo_PhaseSpaceDimensionDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/active_region/core/src/MonteCarlo_PhaseSpaceDimensionDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_PhaseSpaceDimensionDistribution.cpp
//! \author Alex Robinson
//! \brief Phase space dimension distribution class definition
//!
//---------------------------------------------------------------------------//
//... | 40.939394 | 105 | 0.641451 | bam241 |
2463fb5dc1b29dead3438a84843f6868fe0ea90a | 2,798 | cpp | C++ | SplineInterp.cpp | songtianyi/motionLib | e40260109e84cbd5a779ba222b938c685414831e | [
"MIT"
] | 25 | 2015-04-24T07:05:47.000Z | 2021-09-09T13:16:42.000Z | SplineInterp.cpp | songtianyi/motionLib | e40260109e84cbd5a779ba222b938c685414831e | [
"MIT"
] | 1 | 2019-08-19T14:03:11.000Z | 2020-07-03T07:30:59.000Z | SplineInterp.cpp | songtianyi/motionLib | e40260109e84cbd5a779ba222b938c685414831e | [
"MIT"
] | 12 | 2015-11-04T11:11:57.000Z | 2022-01-05T05:01:44.000Z | #include "SplineInterp.h"
SplineInterp::SplineInterp()
{
}
SplineInterp::~SplineInterp()
{
}
void SplineInterp::thomas(FLOAT *a,FLOAT *b,FLOAT *c,CVector3f *x,CVector3f *d,const int n)//[0,n-1]
{
//a[1,n-1]
//b[0,n-1]
//c[0,n-2]
for (int i = 1; i < n; i++)
{
FLOAT m = a[i]/b[i-1];
b[i] = b[i] - m * c[i - 1];... | 24.54386 | 164 | 0.453181 | songtianyi |
246c57294d48fc41d4117feb0b62813e5b7ee557 | 18,120 | cpp | C++ | InfinityTester/InfinityTester.cpp | richard-hgs/C-Infinity-Utilities | cf9de16d995ca17a138e0d420252cb732ce25118 | [
"BSL-1.0"
] | null | null | null | InfinityTester/InfinityTester.cpp | richard-hgs/C-Infinity-Utilities | cf9de16d995ca17a138e0d420252cb732ce25118 | [
"BSL-1.0"
] | null | null | null | InfinityTester/InfinityTester.cpp | richard-hgs/C-Infinity-Utilities | cf9de16d995ca17a138e0d420252cb732ce25118 | [
"BSL-1.0"
] | null | null | null | // InfinityTester.cpp : Este arquivo contém a função 'main'. A execução do programa começa e termina ali.
//
#include <windows.h>
#include <iostream>
#include <conio.h>
#include <string>
#define TYPE_CHARPTR 0 // n bytes
#define TYPE_UINT8 1 // 1 bytes
#define TYPE_UINT16 2 // 2 bytes
... | 32.766727 | 175 | 0.508664 | richard-hgs |
246f1ac05100f6c71640837bdc30fa98da3106ee | 26,376 | cc | C++ | oommf/pkg/oc/imports.cc | sujit555/oommf1 | 121a0e979dca590c0d4783417885a2b7ce66ae27 | [
"TCL",
"BSD-3-Clause"
] | 1 | 2020-01-22T20:32:31.000Z | 2020-01-22T20:32:31.000Z | oommf/pkg/oc/imports.cc | sujit555/oommf1 | 121a0e979dca590c0d4783417885a2b7ce66ae27 | [
"TCL",
"BSD-3-Clause"
] | null | null | null | oommf/pkg/oc/imports.cc | sujit555/oommf1 | 121a0e979dca590c0d4783417885a2b7ce66ae27 | [
"TCL",
"BSD-3-Clause"
] | null | null | null | /* FILE: imports.cc -*-Mode: c++-*-
*
* Replacement implementations for missing Tcl/Tk APIs
* in old Tcl/Tk releases.
*
* Last modified on: $Date: 2015/07/17 22:45:44 $
* Last modified by: $Author: donahue $
*/
/* Standard libraries */
#include <string.h>
#include <errno.h>
#include <float.h>
/* O... | 31.932203 | 79 | 0.65643 | sujit555 |
247304fca5caf61a8da7357ddeb8237844a11cc6 | 321 | cpp | C++ | Leetcode/Practice/Minimum Add to Make Parentheses Valid.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | 4 | 2019-06-04T11:03:38.000Z | 2020-06-19T23:37:32.000Z | Leetcode/Practice/Minimum Add to Make Parentheses Valid.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | null | null | null | Leetcode/Practice/Minimum Add to Make Parentheses Valid.cpp | coderanant/Competitive-Programming | 45076af7894251080ac616c9581fbf2dc49604af | [
"MIT"
] | null | null | null | class Solution {
public:
int minAddToMakeValid(string S) {
stack<char> st;
for(int i = 0; i < S.size(); i++)
{
if(S[i] == ')' and !st.empty() and st.top() == '(')
st.pop();
else
st.push(S[i]);
}
return st.size();
}
}... | 22.928571 | 63 | 0.383178 | coderanant |
24766c9cf8e14d5857e4114863279e8108142f0c | 367 | cpp | C++ | bag.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | bag.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | bag.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | 1 | 2019-01-19T01:05:07.000Z | 2019-01-19T01:05:07.000Z | #include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int n=4;
int w[5]={2,1,3,2};
int v[5]={3,2,4,2};
int rec(int i,int j){
int res;
if(i==n){
res=0;
}
else if(j<w[i]){
res=rec(i+1,j);
}else{
res=max(rec(i+1,j),rec(i+1,j-w[i])+v[i]);
}
return r... | 14.68 | 49 | 0.501362 | W-YXN |
2476fb0ace16ad6597e133ef7e59e5c0e3eef0ec | 2,235 | cc | C++ | assise/bench/micro/zipf.cc | hayley-leblanc/SplitFS | 68fa3de3e80243be9fe65a4640eb6c7ae62229e3 | [
"Apache-2.0"
] | null | null | null | assise/bench/micro/zipf.cc | hayley-leblanc/SplitFS | 68fa3de3e80243be9fe65a4640eb6c7ae62229e3 | [
"Apache-2.0"
] | null | null | null | assise/bench/micro/zipf.cc | hayley-leblanc/SplitFS | 68fa3de3e80243be9fe65a4640eb6c7ae62229e3 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <iostream>
#include <stdio.h>
#include <sys/ioctl.h>
#include <limits.h>
#include <assert.h>
#include <boost/random/uniform_real_distribution.hpp>
#include <boost/random/mersenne_twister.hpp>
#include <boost/random/variate_generator.hpp>
#include <boost/math/distributions/pareto.hpp>
#include... | 27.9375 | 89 | 0.617002 | hayley-leblanc |
2477aff11b083949e56bddb834d23bbccd36540e | 1,820 | cpp | C++ | consumer_producer/conprod-2cv.cpp | nmatt0/cpp-learning | 9288b794bc82d9c7973407d253fbc445408907b1 | [
"MIT"
] | null | null | null | consumer_producer/conprod-2cv.cpp | nmatt0/cpp-learning | 9288b794bc82d9c7973407d253fbc445408907b1 | [
"MIT"
] | null | null | null | consumer_producer/conprod-2cv.cpp | nmatt0/cpp-learning | 9288b794bc82d9c7973407d253fbc445408907b1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <chrono>
#include <vector>
#include <atomic>
#include <sstream>
static std::queue<int> q;
static std::mutex mutex;
static std::condition_variable cv1;
static std::condition_variable cv2;
volatile bool done = ... | 16.851852 | 61 | 0.64011 | nmatt0 |
247cb6ffd9c94812b71ace887c29cd4a7e68ef89 | 1,388 | cpp | C++ | test/common/container_tuple_test.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | 1 | 2017-08-08T12:10:07.000Z | 2017-08-08T12:10:07.000Z | test/common/container_tuple_test.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | null | null | null | test/common/container_tuple_test.cpp | xhad1234/peloton | 60dea12ed528bc8873b1c43d1eca841a5d76ee44 | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// container_tuple_test.cpp
//
// Identification: test/common/container_tuple_test.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//===--------------------------------... | 28.326531 | 80 | 0.626801 | xhad1234 |
248340e96bbcfe24cecc577c9fd2b0242f6610a1 | 369 | cpp | C++ | lib/DollAxlib.cpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | 1 | 2021-07-19T14:40:15.000Z | 2021-07-19T14:40:15.000Z | lib/DollAxlib.cpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | null | null | null | lib/DollAxlib.cpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | null | null | null | #define AXASSERT_IMPLEMENTATION
#define AXCONF_IMPLEMENTATION
/*
#define AXFIBER_IMPLEMENTATION
*/
#define AXLOG_IMPLEMENTATION
#define AXMM_IMPLEMENTATION
#define AXPRINTF_IMPLEMENTATION
#define AXSTR_IMPLEMENTATION
#define AXTHREAD_IMPLEMENTATION
#define AXTIME_IMPLEMENTATION
#include "dol... | 24.6 | 32 | 0.788618 | axia-sw |
248818c7ffc6339f27ba7309f8ac1d6251a1d3dc | 1,843 | hpp | C++ | contrib/autoboost/autoboost/preprocessor/array/push_front.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/preprocessor/array/push_front.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/preprocessor/array/push_front.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | # /* **************************************************************************
# * *
# * (C) Copyright Paul Mensonides 2002.
# * (C) Copyright Edward Diener 2014.
# * Distributed under the Boost Software License, Version 1.0. (See... | 51.194444 | 165 | 0.65274 | CaseyCarter |
248994c28e7aaa11ad80ecbabc5e969f0a565af6 | 484 | hpp | C++ | pDemoAgregation/include/PersonneAER.hpp | GiorgioCaculli/B3_Developpement_de_Jeux_Video | 68d67100ab60d80cf577d37eaa4556e9f1ef028e | [
"BSD-3-Clause"
] | null | null | null | pDemoAgregation/include/PersonneAER.hpp | GiorgioCaculli/B3_Developpement_de_Jeux_Video | 68d67100ab60d80cf577d37eaa4556e9f1ef028e | [
"BSD-3-Clause"
] | null | null | null | pDemoAgregation/include/PersonneAER.hpp | GiorgioCaculli/B3_Developpement_de_Jeux_Video | 68d67100ab60d80cf577d37eaa4556e9f1ef028e | [
"BSD-3-Clause"
] | null | null | null | #ifndef PERSONNEAER_HPP
#define PERSONNEAER_HPP
#include "Residence.hpp"
#include <string>
class PersonneAER
{
private:
std::string nom;
Residence &residence;
int *id;
static int compteur;
public:
PersonneAER( std::string nom="NomDefault", Residence &residence=( * ( n... | 21.043478 | 100 | 0.628099 | GiorgioCaculli |
248a4d808bb24b6084079f43935bf8a2eba47143 | 2,030 | cpp | C++ | libs/network/examples/authentication_protocol/client.cpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | 1 | 2019-05-15T17:23:08.000Z | 2019-05-15T17:23:08.000Z | libs/network/examples/authentication_protocol/client.cpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | null | null | null | libs/network/examples/authentication_protocol/client.cpp | AronVanAmmers/ledger | 5cf8b85e5ee42957d9d38fd76b2b3ead0f061954 | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
//
// Copyright 2018 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 32.741935 | 83 | 0.648768 | AronVanAmmers |
248f54731978cd991f64cdb4fdc203bc2dd2c09a | 1,841 | cpp | C++ | src/day_6.cpp | r-ash/aoc2021 | ef9b2de8d2a9c5bb8a886adf206ed8a3e0386d04 | [
"MIT"
] | null | null | null | src/day_6.cpp | r-ash/aoc2021 | ef9b2de8d2a9c5bb8a886adf206ed8a3e0386d04 | [
"MIT"
] | null | null | null | src/day_6.cpp | r-ash/aoc2021 | ef9b2de8d2a9c5bb8a886adf206ed8a3e0386d04 | [
"MIT"
] | null | null | null | #include <Rcpp.h>
#include <math.h>
#include "day_6.h"
#include "day_6_shoal.h"
//' Model fish internal timers for a number of days for some initial fish state.
//'
//' @param fish Vector of fish internal timers
//' @param days The number of days to run
//' @return The final state of fish internal timers
//' @export
/... | 27.477612 | 80 | 0.653449 | r-ash |
2493be805933fef6ecc1afeee8f8cf2dcc863bc8 | 333 | hpp | C++ | math/sqrt.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | math/sqrt.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | math/sqrt.hpp | 5cript/mpl14 | 4c6da6b8bce1f57b0df8c4ef456fe03a61982cad | [
"MIT"
] | null | null | null | #ifndef SQRT_HPP_INCLUDED
#define SQRT_HPP_INCLUDED
#define CAST(X) static_cast <T> (X)
namespace mplex {
template <typename T>
constexpr T sqrt (T of, T x = CAST(1), int rbi = 15) {
return (rbi == 1) ? x : sqrt(of, x - (x * x - of) / (2 * x), rbi - 1);
}
}
#undef CAST
#endif // SQRT_H... | 23.785714 | 79 | 0.576577 | 5cript |
2494b938c049e57ee90d4d963d97564c9fb13b94 | 711 | cpp | C++ | google/2016/qualification_round/d/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 13 | 2015-06-07T09:26:26.000Z | 2019-05-01T13:23:38.000Z | google/2016/qualification_round/d/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | null | null | null | google/2016/qualification_round/d/main.cpp | seirion/code | 3b8bf79764107255185061cec33decbc2235d03a | [
"Apache-2.0"
] | 4 | 2016-03-05T06:21:05.000Z | 2017-02-17T15:34:18.000Z | // https://code.google.com/codejam/contest/6254486/dashboard#s=p3
// Problem D. Fractiles
#include <cstdio>
#include <iostream>
using namespace std;
int k, c, s;
void solve() {
cin >> k >> c >> s;
if (s * c < k) {
cout << "IMPOSSIBLE\n";
return;
}
int current = 0;
int base = k;
... | 17.775 | 65 | 0.436006 | seirion |
249b4f00fa95b024091b2931d63a90c943580770 | 2,072 | cpp | C++ | common/SimGeometry/BoundingBox.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | 1 | 2021-10-03T16:47:04.000Z | 2021-10-03T16:47:04.000Z | common/SimGeometry/BoundingBox.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null | common/SimGeometry/BoundingBox.cpp | Mason-Wmx/ViewFramework | d8117adc646c369ad29d64477788514c7a75a797 | [
"Apache-2.0"
] | null | null | null |
#include "stdafx.h"
#include "BoundingBox.h"
using namespace SIM;
BoundingBox::BoundingBox(void)
{
Reset();
}
BoundingBox::BoundingBox( const BoundingBox& boundingBox )
{
_min = boundingBox.GetMin();
_max = boundingBox.GetMax();
}
BoundingBox::~BoundingBox(void)
{
}
void BoundingBox::AddPoint( const P... | 21.810526 | 101 | 0.611969 | Mason-Wmx |
24a1b727fb29976d6b9d24726d4122829e60697c | 423 | cpp | C++ | Data Structures/STRINGS/02_input_line.cpp | omkarugale7/Data-Structure-and-Algorithms | 057619946d0f333b9c4cb1eb5faf6d7c10afaa5b | [
"MIT"
] | 6 | 2021-10-14T15:03:08.000Z | 2022-01-04T05:11:03.000Z | STRINGS/02_input_line.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | null | null | null | STRINGS/02_input_line.cpp | omkarugale7/cpp | 21717ce36a4f0d88e850e8b7205470f812ca1d58 | [
"MIT"
] | 7 | 2021-10-16T03:47:20.000Z | 2021-11-12T10:37:33.000Z | #include <iostream>
using namespace std;
int main()
{
string str = "devil should've been my name";
cout << str << endl; // here you can print a string with spaces.
string str3;
getline(cin, str3);
cout << str3 << endl; //here you can take input of a string with spaces.
string str2;
cin >> ... | 28.2 | 81 | 0.626478 | omkarugale7 |
24a1c7668aea2e22ef6bed4a1eccd8b827148cc5 | 195 | hpp | C++ | include/BESS/src/Entry.hpp | shivang51/BESS | 8c53c5cb13863fd05574ebf20bf57624d83b0d25 | [
"MIT"
] | null | null | null | include/BESS/src/Entry.hpp | shivang51/BESS | 8c53c5cb13863fd05574ebf20bf57624d83b0d25 | [
"MIT"
] | null | null | null | include/BESS/src/Entry.hpp | shivang51/BESS | 8c53c5cb13863fd05574ebf20bf57624d83b0d25 | [
"MIT"
] | null | null | null | #pragma once
#include "Application.hpp"
int main()
{
Application* app = new Application();
app->Run();
delete app;
BESS_CLIENT_LOG_INFO("Exited Successfully");
return 0;
} | 13.928571 | 48 | 0.646154 | shivang51 |
24a39ad4e79cf81c1deb695abd4a4f1727b3b4fd | 2,065 | cpp | C++ | src/NasNas/core/data/Logger.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 148 | 2020-04-08T13:45:34.000Z | 2022-01-29T13:52:10.000Z | src/NasNas/core/data/Logger.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 5 | 2020-09-15T12:34:31.000Z | 2022-02-14T20:59:12.000Z | src/NasNas/core/data/Logger.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 3 | 2020-10-03T22:35:20.000Z | 2020-10-05T04:55:45.000Z | /**
* Created by Modar Nasser on 21/04/2020.
**/
#include <iomanip>
#include "NasNas/core/data/Logger.hpp"
using namespace ns;
auto sf::operator<<(std::ostream& os, const sf::Vector2f& vect) -> std::ostream& {
os << "Vec2d(" << std::setprecision(6) << vect.x << ", " << vect.y << ")";
return os;
}
auto sf::op... | 33.852459 | 131 | 0.548184 | Madour |
24a87e472008cb003b1538c923ebd47a21a161f8 | 7,276 | cpp | C++ | libraries/chain/son_wallet_deposit_evaluator.cpp | nathanhourt/peerplays | a5a78dacf143e6b685ff2aab4834f33fa5d0e1df | [
"MIT"
] | 45 | 2018-12-13T21:11:23.000Z | 2022-03-28T09:21:44.000Z | libraries/chain/son_wallet_deposit_evaluator.cpp | nathanhourt/peerplays | a5a78dacf143e6b685ff2aab4834f33fa5d0e1df | [
"MIT"
] | 279 | 2018-12-18T08:52:43.000Z | 2022-03-24T19:03:29.000Z | libraries/chain/son_wallet_deposit_evaluator.cpp | nathanhourt/peerplays | a5a78dacf143e6b685ff2aab4834f33fa5d0e1df | [
"MIT"
] | 25 | 2018-12-13T20:38:51.000Z | 2022-03-25T09:45:58.000Z | #include <graphene/chain/son_wallet_deposit_evaluator.hpp>
#include <graphene/chain/database.hpp>
#include <graphene/chain/chain_property_object.hpp>
#include <graphene/chain/is_authorized_asset.hpp>
#include <graphene/chain/son_object.hpp>
#include <graphene/chain/son_wallet_deposit_object.hpp>
namespace graphene { ... | 46.050633 | 167 | 0.677708 | nathanhourt |
24b0828944392ad7c86d5b63ae48856033b249c4 | 1,630 | cpp | C++ | flap/glassybird/Classes/AppDelegate.cpp | nothinglabs/glassybird | 98dcae1b1d2d17380e962ef3b50ab8fbd50ff7cb | [
"BSD-3-Clause"
] | null | null | null | flap/glassybird/Classes/AppDelegate.cpp | nothinglabs/glassybird | 98dcae1b1d2d17380e962ef3b50ab8fbd50ff7cb | [
"BSD-3-Clause"
] | null | null | null | flap/glassybird/Classes/AppDelegate.cpp | nothinglabs/glassybird | 98dcae1b1d2d17380e962ef3b50ab8fbd50ff7cb | [
"BSD-3-Clause"
] | null | null | null | #include "AppDelegate.h"
#include "HelloWorldScene.h"
#include "LoadingScene.h"
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate() {
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
auto director = Director::getInstance();
auto eglView = EGLView::getInstance();
... | 25.873016 | 101 | 0.751534 | nothinglabs |
24b0c0d40622c7e5eee40ff86293cacd7ebcb36a | 3,939 | cpp | C++ | LibGraphics/ShaderFloats/Wm5LightSpotConstant.cpp | bazhenovc/WildMagic | b1a7cc2140dde23d8d9a4ece52a07bd5ff938239 | [
"BSL-1.0"
] | 48 | 2015-10-07T07:26:14.000Z | 2022-03-18T14:30:07.000Z | LibGraphics/ShaderFloats/Wm5LightSpotConstant.cpp | zouxiaohang/WildMagic | b1a7cc2140dde23d8d9a4ece52a07bd5ff938239 | [
"BSL-1.0"
] | null | null | null | LibGraphics/ShaderFloats/Wm5LightSpotConstant.cpp | zouxiaohang/WildMagic | b1a7cc2140dde23d8d9a4ece52a07bd5ff938239 | [
"BSL-1.0"
] | 21 | 2015-09-01T03:14:47.000Z | 2022-01-04T04:07:46.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2012
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 5.0.0 (2010/01/01)
#include "Wm5GraphicsPCH.h"
#include "Wm5LightSpotConst... | 30.3 | 79 | 0.458238 | bazhenovc |
24b74f976b5878bc3cefc1b04121b7ea2c0c9d2f | 1,982 | cpp | C++ | engine/src/Engine/Point2D.cpp | Alexthehuman3/ASGE | a9cf473a3117f4b67a2dbe8fac00b1a2a4fd6e44 | [
"MIT"
] | 8 | 2020-04-26T11:48:29.000Z | 2022-02-23T15:13:50.000Z | engine/src/Engine/Point2D.cpp | Alexthehuman3/ASGE | a9cf473a3117f4b67a2dbe8fac00b1a2a4fd6e44 | [
"MIT"
] | null | null | null | engine/src/Engine/Point2D.cpp | Alexthehuman3/ASGE | a9cf473a3117f4b67a2dbe8fac00b1a2a4fd6e44 | [
"MIT"
] | 1 | 2021-05-13T16:37:24.000Z | 2021-05-13T16:37:24.000Z | // Copyright (c) 2021 James Huxtable. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
//
// 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... | 24.775 | 81 | 0.654894 | Alexthehuman3 |
24c6113b9f4d4b5cb80a7375235d6235443d3b9a | 1,966 | cpp | C++ | soj/3802.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/3802.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | soj/3802.cpp | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <ctime>
#include <climits>
#include <cmath>
#include <cassert>
#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <list>
#include <queue>
#include <stack>
#include <deque>
#include <algorithm>
using namespace st... | 23.404762 | 60 | 0.316887 | huangshenno1 |
24d1824a9db4e2d1631a5dec1f499d81505f288a | 345 | cxx | C++ | test/unreachable.cxx | jbatez/gdt | 22f4fdff967bde4ed56352f3b6160eb4f18522a4 | [
"BSL-1.0"
] | null | null | null | test/unreachable.cxx | jbatez/gdt | 22f4fdff967bde4ed56352f3b6160eb4f18522a4 | [
"BSL-1.0"
] | null | null | null | test/unreachable.cxx | jbatez/gdt | 22f4fdff967bde4ed56352f3b6160eb4f18522a4 | [
"BSL-1.0"
] | null | null | null | // Copyright Jo Bates 2021.
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at:
// https://www.boost.org/LICENSE_1_0.txt
#include <gdt/unreachable.hxx>
int test_unreachable(int, char** const)
{
if constexpr (2 + 2 == 3)
{
gdt_unreachable()... | 20.294118 | 61 | 0.666667 | jbatez |
24d2a07e3c79893613124bc217580c350d0b79b1 | 7,322 | cpp | C++ | src/schriter.cpp | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | src/schriter.cpp | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | src/schriter.cpp | miute/icupy | 253dd666936c23577abd1fdd94bc9cea012017b8 | [
"MIT"
] | null | null | null | #include "main.hpp"
#include <pybind11/operators.h>
#include <pybind11/stl.h>
#include <unicode/schriter.h>
using namespace icu;
void init_schriter(py::module &m) {
// icu::ForwardCharacterIterator
py::class_<ForwardCharacterIterator, UObject> fci(m, "ForwardCharacterIterator");
py::enum_<decltype(ForwardChara... | 53.057971 | 119 | 0.655422 | miute |
24d53dcca7cd3777898934aaa5df699fadb23776 | 5,126 | inl | C++ | include/visionaray/detail/bvh/build.inl | stoeckley/visionaray | 226d6cdf870f658d0fd0d1e1e292a8324d65ff4d | [
"MIT"
] | 1 | 2018-10-23T19:58:11.000Z | 2018-10-23T19:58:11.000Z | include/visionaray/detail/bvh/build.inl | stoeckley/visionaray | 226d6cdf870f658d0fd0d1e1e292a8324d65ff4d | [
"MIT"
] | null | null | null | include/visionaray/detail/bvh/build.inl | stoeckley/visionaray | 226d6cdf870f658d0fd0d1e1e292a8324d65ff4d | [
"MIT"
] | null | null | null | // This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cassert>
#include <cstddef>
#include <algorithm>
#include <limits>
#include <visionaray/math/aabb.h>
#include "lbvh.h"
#include "sah.h"
#include "../algorithm.h"
namespace visionaray
{
namespace detail
{
//-------... | 24.293839 | 134 | 0.571596 | stoeckley |
24d6352bc4e9359d32e354ad0bc24748652f8117 | 844 | cpp | C++ | codeforces/1352/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/1352/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | codeforces/1352/B.cpp | Mohammad-Elsharkawy/CompetitiveProgramming | 8d052465ff08cb36e66b7e6c6813090ac410bf1d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;cin>>t;
while(t--)
{
int n,k;cin>>n>>k;
if(n==k)
{ cout<<"YES"<<endl;
for(int i=0;i<k;i++)
cout<<1<<" ";
cout<<endl;
continue;
}
if(n%2 && !(k%2))
... | 18.755556 | 44 | 0.337678 | Mohammad-Elsharkawy |
24dbef590318c3eb86587eec0404a28e15fb6f64 | 3,067 | cc | C++ | test/scalability_test.cc | hanbing204/aom | 90d64a93f4651ab0d4676c7f17a7fa0d665c0644 | [
"BSD-2-Clause"
] | 51 | 2020-04-12T04:27:10.000Z | 2022-03-18T19:24:02.000Z | test/scalability_test.cc | hanbing204/aom | 90d64a93f4651ab0d4676c7f17a7fa0d665c0644 | [
"BSD-2-Clause"
] | 11 | 2020-04-10T16:46:12.000Z | 2022-02-10T02:06:25.000Z | test/scalability_test.cc | hanbing204/aom | 90d64a93f4651ab0d4676c7f17a7fa0d665c0644 | [
"BSD-2-Clause"
] | 4 | 2020-04-21T14:28:19.000Z | 2022-01-10T04:12:17.000Z | /*
* Copyright (c) 2018, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... | 37.864198 | 78 | 0.691229 | hanbing204 |
24de771a404422f90807cac50137a13af718879d | 2,184 | cpp | C++ | src/BrickBotDriver.cpp | syoung-smallwisdom/BrickBot_Arduino | 085b44c9e2f81a4ea3a1ca029d32d274affce024 | [
"MIT"
] | null | null | null | src/BrickBotDriver.cpp | syoung-smallwisdom/BrickBot_Arduino | 085b44c9e2f81a4ea3a1ca029d32d274affce024 | [
"MIT"
] | null | null | null | src/BrickBotDriver.cpp | syoung-smallwisdom/BrickBot_Arduino | 085b44c9e2f81a4ea3a1ca029d32d274affce024 | [
"MIT"
] | null | null | null | //
// BrickBotDriver.cpp
// BrickBot_ArduinoLib
//
// Created by Shannon Young on 11/2/15.
// Copyright © 2015 Smallwisdom. All rights reserved.
//
#include "BrickBotDriver.h"
void BrickBotDriver::runMotors(int dir, int steer) {
if (dir == 0) {
if (steer == 0) {
setMotorValue(BB_MOTOR_RIGH... | 32.597015 | 106 | 0.654304 | syoung-smallwisdom |
24df9d468021a28951fa2ab3132f0850bd3ad8ad | 3,037 | cpp | C++ | C++/equal-rational-numbers.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/equal-rational-numbers.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/equal-rational-numbers.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(1)
// Space: O(1)
class Fraction {
public:
Fraction() = default;
Fraction(int64_t n)
: Fraction(n, 1)
{
}
Fraction(int64_t n, int64_t d)
: numerator_(n)
, denominator_(d)
, integer_(0)
{
reduce();
}
~Fraction() = default;
void set... | 27.36036 | 92 | 0.550214 | jaiskid |
008924747e18f04570da3ad9f20b31c9622fac6a | 368 | cpp | C++ | arr3.cpp | Rajeev7752/C-hackerank-solved- | d70b1a596ae9522a7a9cfa36c99e5fb7f0c6d8ac | [
"MIT"
] | 1 | 2021-08-14T12:22:25.000Z | 2021-08-14T12:22:25.000Z | arr3.cpp | Rajeev7752/C-hackerank-solved- | d70b1a596ae9522a7a9cfa36c99e5fb7f0c6d8ac | [
"MIT"
] | null | null | null | arr3.cpp | Rajeev7752/C-hackerank-solved- | d70b1a596ae9522a7a9cfa36c99e5fb7f0c6d8ac | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
int base=0;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
for(int i=0;i<n;i++)
{
for(int j=i+1;j<n;j++)
{
if(a[i]==a[j])
base=
break;
... | 15.333333 | 31 | 0.350543 | Rajeev7752 |
008cc2868e67f611c6c47dcd8bd1edc8aa6058fe | 181 | cpp | C++ | Easy/Detect Voter Fraud.cpp | Safwaan21/Binarysearch.io-Solutions | 024389dc4193f4e2b98369e0bacb714d757f2991 | [
"MIT"
] | null | null | null | Easy/Detect Voter Fraud.cpp | Safwaan21/Binarysearch.io-Solutions | 024389dc4193f4e2b98369e0bacb714d757f2991 | [
"MIT"
] | null | null | null | Easy/Detect Voter Fraud.cpp | Safwaan21/Binarysearch.io-Solutions | 024389dc4193f4e2b98369e0bacb714d757f2991 | [
"MIT"
] | null | null | null | bool solve(vector<vector<int>>& votes) {
unordered_set<int> s;
for(auto& u:votes){
if(s.count(u[1])) return true;
s.insert(u[1]);
}
return false;
}
| 18.1 | 40 | 0.546961 | Safwaan21 |
0091891946d8742fcda01fa9d8cb131db7d0632e | 2,606 | cpp | C++ | tests/ngv_v6/src_pers/PersGv6_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 13 | 2015-02-26T22:46:18.000Z | 2020-03-24T11:53:06.000Z | tests/ngv_v6/src_pers/PersGv6_src.cpp | PacificBiosciences/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 5 | 2016-02-25T17:08:19.000Z | 2018-01-20T15:24:36.000Z | tests/ngv_v6/src_pers/PersGv6_src.cpp | TonyBrewer/OpenHT | 63898397de4d303ba514d88b621cc91367ffe2a6 | [
"BSD-3-Clause"
] | 12 | 2015-04-13T21:39:54.000Z | 2021-01-15T01:00:13.000Z | #include "Ht.h"
#include "PersGv6.h"
void CPersGv6::PersGv6()
{
if (PR_htValid) {
switch (PR_htInst) {
case GV6_ENTRY:
{
P_x = PR_htId;
// D_2x2x2x
GW_gv_R_2x2x2x_1F_m0[PR_htId][0].m_x = P_x;
GW_gv_R_2x2x2x_1F_m1[PR_htId][0].m_x = P_x;
GW_gv_R_2x2x2x_2F_m0[PR_htId].m_x[0] = P_x;
GW_gv_R_2x... | 25.300971 | 71 | 0.68419 | TonyBrewer |
0092530b2cb79acae48f03e7006353dd0fd9539c | 9,990 | cpp | C++ | src/CfDnaQC/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | src/CfDnaQC/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | src/CfDnaQC/main.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | null | null | null | #include "BedFile.h"
#include "ToolBase.h"
#include "Helper.h"
#include "Statistics.h"
#include "Exceptions.h"
#include <QFileInfo>
#include <QDir>
#include <SampleSimilarity.h>
#include "Settings.h"
class ConcreteTool
: public ToolBase
{
Q_OBJECT
public:
ConcreteTool(int& argc, char *argv[])
: ToolBase(argc, a... | 37.41573 | 156 | 0.707207 | BeneKenobi |
009ac2a08f048c7bc9fb558d4573cbb880865cd7 | 3,352 | cpp | C++ | OOP/assignment 5.cpp | pratt3000/PICT_SE-Labs | e720414549fe07351055f2075d45755ba181876a | [
"MIT"
] | 3 | 2019-10-15T08:18:52.000Z | 2020-02-16T09:34:45.000Z | OOP/assignment 5.cpp | pratt3000/PICT_SE-Labs | e720414549fe07351055f2075d45755ba181876a | [
"MIT"
] | null | null | null | OOP/assignment 5.cpp | pratt3000/PICT_SE-Labs | e720414549fe07351055f2075d45755ba181876a | [
"MIT"
] | 2 | 2019-10-18T15:06:46.000Z | 2020-01-16T06:29:26.000Z | //=================================================================================================
// Name : assignment.cpp
// Author : Prathamesh
// Version :
// Copyright : Your copyright notice
// Description : Develop an object oriented program in C++ to create a database of student
// inform... | 26.816 | 140 | 0.61605 | pratt3000 |
009ceb3057ee22dc425f2ab8886ba9ab96fb8687 | 2,219 | cpp | C++ | 15PuzzleGame/src/appsettings.cpp | Childcity/15PuzzleGame | 13a45fd6736364836b2cf8002b58e77695255a3a | [
"MIT"
] | 2 | 2020-09-09T01:29:28.000Z | 2021-01-11T00:15:51.000Z | 15PuzzleGame/src/appsettings.cpp | Childcity/15PuzzleGame | 13a45fd6736364836b2cf8002b58e77695255a3a | [
"MIT"
] | null | null | null | 15PuzzleGame/src/appsettings.cpp | Childcity/15PuzzleGame | 13a45fd6736364836b2cf8002b58e77695255a3a | [
"MIT"
] | null | null | null | #include "appsettings.h"
#include "main.h"
#include <QGuiApplication>
#include <QMetaEnum>
#include <mutex>
using ImageProviderTypeClass = Dal::Image::ImageProviderTypeClass;
namespace Cnst {
using LL = QLatin1Literal;
const auto dimension = LL("dimension");
const auto imageProvider = LL("imageProvider");
}
AppSe... | 23.606383 | 87 | 0.6895 | Childcity |
009d26b70dc5f5568262c1d00749b38d89dfc175 | 1,308 | cpp | C++ | libs2eplugins/src/s2e/Plugins/Example.cpp | trusslab/mousse | eb6ac492b15e2ca416a3b23bd4c4d115ae83b606 | [
"MIT"
] | 7 | 2020-04-27T03:53:16.000Z | 2021-12-31T02:04:48.000Z | libs2eplugins/src/s2e/Plugins/Example.cpp | trusslab/mousse | eb6ac492b15e2ca416a3b23bd4c4d115ae83b606 | [
"MIT"
] | null | null | null | libs2eplugins/src/s2e/Plugins/Example.cpp | trusslab/mousse | eb6ac492b15e2ca416a3b23bd4c4d115ae83b606 | [
"MIT"
] | 1 | 2020-07-15T05:19:28.000Z | 2020-07-15T05:19:28.000Z | ///
/// Copyright (C) 2010-2015, Dependable Systems Laboratory, EPFL
/// All rights reserved.
///
/// Licensed under the Cyberhaven Research License Agreement.
///
#include <s2e/ConfigFile.h>
#include <s2e/S2E.h>
#include <s2e/Utils.h>
#include "Example.h"
namespace s2e {
namespace plugins {
S2E_DEFINE_PLUGIN(Examp... | 29.727273 | 115 | 0.68578 | trusslab |
00afef40e9397236a0e7806d5afa6434bb5ff783 | 371 | hpp | C++ | pythran/pythonic/operator_/ilshift.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/operator_/ilshift.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/operator_/ilshift.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_OPERATOR_ILSHIFT_HPP
#define PYTHONIC_OPERATOR_ILSHIFT_HPP
#include "pythonic/include/operator_/ilshift.hpp"
#include "pythonic/utils/proxy.hpp"
namespace pythonic
{
namespace operator_
{
template <class A, class B>
A ilshift(A a, B const &b)
{
return a <<= b;
}
PROXY... | 15.458333 | 49 | 0.695418 | artas360 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.