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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a4681f2ed9330f8764e9119be68fef59dc06dba5 | 1,938 | cpp | C++ | Stacks/Stack with L.L.cpp | pritbab/Data-Structures | 644d6fe16b7c63eda2449e9e0da32a3d9e411487 | [
"MIT"
] | null | null | null | Stacks/Stack with L.L.cpp | pritbab/Data-Structures | 644d6fe16b7c63eda2449e9e0da32a3d9e411487 | [
"MIT"
] | null | null | null | Stacks/Stack with L.L.cpp | pritbab/Data-Structures | 644d6fe16b7c63eda2449e9e0da32a3d9e411487 | [
"MIT"
] | null | null | null | // Task :
//
// Stack using Singly Linked List
#include <iostream>
using namespace std;
struct node
{
int data;
struct node* next;
};
class list
{
node *head, *tail;
public:
list()
{
head = NULL;
tail = NULL;
}
node *create_node(int value);
... | 16.285714 | 60 | 0.438596 | pritbab |
a46b5564e9a7bbf65a57cd60ee0c91911babb72c | 989 | cpp | C++ | codechef/Chef and Dice.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | codechef/Chef and Dice.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | codechef/Chef and Dice.cpp | itsjaysuthar/CPpractice | 820cf84ea7079ef3b34a604fd56672811f64f4dc | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------------------
//-------------------Author : itsjaysuthar ----------------------------------------------
//---------------------------------------------------------------------------------------
#include<bits/stdc++.h>
using namespace std;
#de... | 21.5 | 89 | 0.256825 | itsjaysuthar |
a475e578e9b49c87e671bad219114c154bb3df1d | 7,542 | hpp | C++ | commonobjects/shm_common/SharedPCClient.hpp | Khoronus/CommonObjects | 98a2c37923529333fecc2cf0b6103d2db9fdaa97 | [
"MIT"
] | null | null | null | commonobjects/shm_common/SharedPCClient.hpp | Khoronus/CommonObjects | 98a2c37923529333fecc2cf0b6103d2db9fdaa97 | [
"MIT"
] | null | null | null | commonobjects/shm_common/SharedPCClient.hpp | Khoronus/CommonObjects | 98a2c37923529333fecc2cf0b6103d2db9fdaa97 | [
"MIT"
] | null | null | null | /**
* @file SharedPCClient.hpp
* @brief Class to allocate the memory and structure for the shared memory.
*
* @section LICENSE
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILI... | 28.141791 | 154 | 0.697163 | Khoronus |
a476e7298668ea3e9d185613a28f89ee837af341 | 3,637 | cpp | C++ | test/unit/algo/convert_zip.cpp | microblink/eve | 26d50d59190d3e2817c3ca95614e3e74f6c6f30a | [
"MIT"
] | null | null | null | test/unit/algo/convert_zip.cpp | microblink/eve | 26d50d59190d3e2817c3ca95614e3e74f6c6f30a | [
"MIT"
] | null | null | null | test/unit/algo/convert_zip.cpp | microblink/eve | 26d50d59190d3e2817c3ca95614e3e74f6c6f30a | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
... | 33.366972 | 100 | 0.601595 | microblink |
a47fc6f87622e76b7dce5895031bf62b0bcb8059 | 498 | cpp | C++ | Pemrograman Dasar/AgakPrima.cpp | bayusamudra5502/PustakaCpp | ac67e47374740b4923dd135d67f4bf987d4010b4 | [
"MIT"
] | null | null | null | Pemrograman Dasar/AgakPrima.cpp | bayusamudra5502/PustakaCpp | ac67e47374740b4923dd135d67f4bf987d4010b4 | [
"MIT"
] | null | null | null | Pemrograman Dasar/AgakPrima.cpp | bayusamudra5502/PustakaCpp | ac67e47374740b4923dd135d67f4bf987d4010b4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
scanf("%d", &n);
for(int i = 1; i <= n; i++){
int x, f = 0;
scanf("%d", &x);
for(int j = 1; j <= x; j++){
if(x % j == 0){
f++;
}
if(f > 4)
... | 17.785714 | 40 | 0.295181 | bayusamudra5502 |
a48424fb376bf62e0a2e1c795d7822efa3a52145 | 630 | cpp | C++ | Engine/source/console/stringStack.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | null | null | null | Engine/source/console/stringStack.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | null | null | null | Engine/source/console/stringStack.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | 1 | 2018-10-26T03:18:22.000Z | 2018-10-26T03:18:22.000Z | // Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "console/stringStack.h"
void StringStack::getArgcArgv(StringTableEntry name, U32 *argc, const char ***in_argv, bool popStackFrame /* = false */)
{
U32 startStack = mFrameOffsets[mNumFrame... | 28.636364 | 120 | 0.671429 | fr1tz |
a489cf42db67be9f00c94e5fc37c7450de4dc674 | 21,007 | cpp | C++ | src/core/Board.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | 3 | 2018-05-14T12:32:19.000Z | 2021-04-20T23:11:56.000Z | src/core/Board.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | 1 | 2018-03-30T18:44:49.000Z | 2018-03-31T15:57:49.000Z | src/core/Board.cpp | AlexKent3141/OnePunchGo | a86caaf421c8122222f72316171702617c519d28 | [
"MIT"
] | null | null | null | #include "Board.h"
#include "patterns/PatternMatcher.h"
#include <iostream>
Board::Board(int boardSize)
{
InitialiseEmpty(boardSize);
}
Board::Board(Colour colourToMove, const std::vector<std::string>& s)
{
InitialiseEmpty(s.size());
// Ensure that it's square.
assert(s.size() == s[0].size());
i... | 28.619891 | 147 | 0.557719 | AlexKent3141 |
a48d673230c4eb33530740975cbadb994ef3f381 | 1,512 | hpp | C++ | CookieEngine/include/Core/Math/Vec2.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Core/Math/Vec2.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | CookieEngine/include/Core/Math/Vec2.hpp | qbleuse/Cookie-Engine | 705d19d9e4c79e935e32244759ab63523dfbe6c4 | [
"CC-BY-4.0"
] | null | null | null | #ifndef __VEC2_HPP__
#define __VEC2_HPP__
#include <iostream>
namespace Cookie
{
namespace Core
{
namespace Math
{
union Vec2
{
struct { float x; float y; };
struct { float u; float v; };
float e[2];
inl... | 27.490909 | 63 | 0.513228 | qbleuse |
a48f5e17c50192e4bd7bcf233aeee67173f62de8 | 1,707 | cpp | C++ | src/QMCWaveFunctions/SPOInfo.cpp | kryczko/qmcpack | 92f4885eac810b5aa7bece4b30a03395d74f5598 | [
"NCSA"
] | null | null | null | src/QMCWaveFunctions/SPOInfo.cpp | kryczko/qmcpack | 92f4885eac810b5aa7bece4b30a03395d74f5598 | [
"NCSA"
] | null | null | null | src/QMCWaveFunctions/SPOInfo.cpp | kryczko/qmcpack | 92f4885eac810b5aa7bece4b30a03395d74f5598 | [
"NCSA"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////
// This file is distributed under the University of Illinois/NCSA Open Source License.
// See LICENSE file in top directory for details.
//
// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
//
// File developed by: Jaron T. ... | 29.947368 | 88 | 0.581136 | kryczko |
a49453d42152f3235deabe818cb2f6951d150e35 | 706 | cpp | C++ | 1203/spj.cpp | openoj/data | f217c30f0cb0ac0a93fd7229c40bfb011ce21bc0 | [
"Apache-2.0"
] | null | null | null | 1203/spj.cpp | openoj/data | f217c30f0cb0ac0a93fd7229c40bfb011ce21bc0 | [
"Apache-2.0"
] | null | null | null | 1203/spj.cpp | openoj/data | f217c30f0cb0ac0a93fd7229c40bfb011ce21bc0 | [
"Apache-2.0"
] | null | null | null | #include "testlib.h"
#define MAXN 100010
using namespace std;
int n,k,stdk,usr[MAXN];
bool not_prime[MAXN],f;
int main(int argc, char *argv[])
{
registerTestlibCmd(argc, argv);
n = inf.readInt();
k = ouf.readInt();
stdk = ans.readInt();
if (k!=stdk)
{
quitf(_wa, "Your solution is worse than the... | 20.764706 | 66 | 0.563739 | openoj |
a4970c0b0e62030e9bfac389c08e5c743c393ec6 | 5,748 | cpp | C++ | libraries/connectivity/connectivity.cpp | jobehrens/mne-cpp | 5156f578736bbb67cc9ae1fc41a7cefba3b10f7a | [
"BSD-3-Clause"
] | 130 | 2015-02-01T23:47:07.000Z | 2022-03-21T01:46:11.000Z | libraries/connectivity/connectivity.cpp | jobehrens/mne-cpp | 5156f578736bbb67cc9ae1fc41a7cefba3b10f7a | [
"BSD-3-Clause"
] | 519 | 2015-01-05T12:44:04.000Z | 2022-03-07T18:12:52.000Z | libraries/connectivity/connectivity.cpp | jobehrens/mne-cpp | 5156f578736bbb67cc9ae1fc41a7cefba3b10f7a | [
"BSD-3-Clause"
] | 138 | 2015-04-02T12:42:12.000Z | 2022-01-27T13:21:25.000Z | //=============================================================================================================
/**
* @file connectivity.cpp
* @author Daniel Strohmeier <Daniel.Strohmeier@tu-ilmenau.de>;
* Lorenz Esch <lesch@mgh.harvard.edu>;
* Faris Yahya <mfarisyahya@gmail.com>
* @since... | 42.577778 | 162 | 0.531141 | jobehrens |
a4981d43fd57b6fd4948c1c1d797c202025a6ef3 | 4,006 | cpp | C++ | s32v234_sdk/kernels/apu/sample_geometry_kernels/src/remap_nearest_acf.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/kernels/apu/sample_geometry_kernels/src/remap_nearest_acf.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/kernels/apu/sample_geometry_kernels/src/remap_nearest_acf.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | 2 | 2021-01-21T02:06:16.000Z | 2021-01-28T10:47:37.000Z | /*****************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2013 Freescale Semiconductor;
* Copyright (c) 2017-2018 NXP
*
* All Rights Reserved
*
*****************************************************************************
*
* THIS SOFTWARE IS PROV... | 32.836066 | 103 | 0.645781 | intesight |
a498957bd4f43d9d0891dbe843a6f86d9025f8e6 | 534 | cxx | C++ | test/t1125.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | test/t1125.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | test/t1125.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#include <stdio.h>
enum BIT {ZERO,ON... | 18.413793 | 74 | 0.400749 | paulwratt |
a49a1667e90cda44c415f698ca7417385aa21d43 | 19,072 | cpp | C++ | test/mugenassignmentevaluatortest.cpp | CaptainDreamcast/DolmexicaInfinite | 3891114b7307bcd99591d3e00d2a4b23aa68c9bc | [
"MIT"
] | 14 | 2019-05-13T03:17:23.000Z | 2021-10-04T15:43:27.000Z | test/mugenassignmentevaluatortest.cpp | CaptainDreamcast/DolmexicaInfinite | 3891114b7307bcd99591d3e00d2a4b23aa68c9bc | [
"MIT"
] | 3 | 2019-12-25T08:02:16.000Z | 2020-05-16T11:53:20.000Z | test/mugenassignmentevaluatortest.cpp | CaptainDreamcast/DolmexicaInfinite | 3891114b7307bcd99591d3e00d2a4b23aa68c9bc | [
"MIT"
] | 3 | 2019-08-30T14:53:35.000Z | 2020-04-24T04:03:11.000Z | #include <gtest/gtest.h>
#include <prism/wrapper.h>
#include "mugenassignmentevaluator.h"
class MugenAssignmentEvaluatorTest : public ::testing::Test {
protected:
MemoryStack mMemoryStack;
void SetUp() override {
initMemoryHandler();
mMemoryStack = createMemoryStack(1024 * 1024 * 3);
setupDreamAssignmentRead... | 51.967302 | 99 | 0.799916 | CaptainDreamcast |
a49ad9ae8e7db4b2298917fc7fc5bc72e83c4235 | 1,354 | cpp | C++ | Algorithms/arrays/leftShift/LeftShift.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 1 | 2021-10-05T15:45:42.000Z | 2021-10-05T15:45:42.000Z | Algorithms/arrays/leftShift/LeftShift.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 17 | 2021-10-05T13:47:01.000Z | 2021-11-06T13:15:42.000Z | Algorithms/arrays/leftShift/LeftShift.cpp | sejalsingh417/Open-DSA | dd2228abd3022f0899ded08ff3f710e51b74649f | [
"MIT"
] | 9 | 2021-10-05T07:21:09.000Z | 2021-10-20T08:31:03.000Z | #include<bits/stdc++.h>
using namespace std;
//METHOD 1
void leftRotate(int arr[], int n, int d){ //NAIVE O(n*d)
while(d--){
int temp = arr[0];
for(int i=1; i<n;i++)
arr[i-1] = arr[i];
arr[n-1] = temp;
}
}
//METHOD 2
void leftRotate2(int arr[], int n, int d){ // TI... | 20.830769 | 72 | 0.465288 | sejalsingh417 |
a49c014310a6de2a210887e748357733612ed58e | 1,934 | cpp | C++ | cnes/src/otb/GeographicEphemeris.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 12 | 2016-09-09T01:24:12.000Z | 2022-01-09T21:45:58.000Z | cnes/src/otb/GeographicEphemeris.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 5 | 2016-02-04T16:10:40.000Z | 2021-06-29T05:00:29.000Z | cnes/src/otb/GeographicEphemeris.cpp | dardok/ossim-plugins | 3406ffed9fcab88fe4175b845381611ac4122c81 | [
"MIT"
] | 20 | 2015-11-17T11:46:22.000Z | 2021-11-12T19:23:54.000Z | //----------------------------------------------------------------------------
//
// "Copyright Centre National d'Etudes Spatiales"
//
// License: LGPL
//
// See LICENSE.txt file in the top level directory for more details.
//
//----------------------------------------------------------------------------
// $Id$
#inc... | 22.488372 | 120 | 0.62668 | dardok |
a49cae03eb194069cc8c15103e9f066b8fb1a80c | 1,200 | cpp | C++ | Lesson02/CyclicRotation/CyclicRotation/main.cpp | rlan/CodilityLessons | 6ce4b1a19e7ce90fce39f9ec7fc207e620662676 | [
"MIT"
] | null | null | null | Lesson02/CyclicRotation/CyclicRotation/main.cpp | rlan/CodilityLessons | 6ce4b1a19e7ce90fce39f9ec7fc207e620662676 | [
"MIT"
] | null | null | null | Lesson02/CyclicRotation/CyclicRotation/main.cpp | rlan/CodilityLessons | 6ce4b1a19e7ce90fce39f9ec7fc207e620662676 | [
"MIT"
] | null | null | null | //
// Codility
// Lesson 2
// CyclicRotation
// https://codility.com/programmers/lessons/2-arrays/cyclic_rotation/
//
// 100% score
// https://codility.com/demo/results/trainingW3ATGD-489/
//
// Created by Rick Lan on 3/28/17.
// See LICENSE.
//
#include <iostream>
#include <vector>
using namespace std;
vecto... | 19.047619 | 70 | 0.463333 | rlan |
a49cc63ab392374c52a455065fffed8164e9247e | 6,774 | cpp | C++ | render/src/pipeline/DescriptorSet.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 17 | 2019-02-12T14:40:06.000Z | 2021-12-21T12:54:17.000Z | render/src/pipeline/DescriptorSet.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | null | null | null | render/src/pipeline/DescriptorSet.cpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 2 | 2019-02-21T10:07:42.000Z | 2020-05-08T19:49:10.000Z | // Copyright (C) 2021 Arthur LAURENT <arthur.laurent4@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level of this distribution
#include <storm/render/core/Device.hpp>
#include <storm/render/core/Enums.hpp>
#include <storm/render/pipeline/DescriptorPool.hpp>
#inc... | 40.08284 | 99 | 0.548716 | Arthapz |
a49eab3a182f5f01fbbf0687365a4a22905e8e7d | 2,777 | cpp | C++ | contracts/system/_dispatcher.cpp | EOSPowerNetwork/system-epn | dfa836101f6b148916b08b3c2988b591ed92ce9e | [
"MIT"
] | null | null | null | contracts/system/_dispatcher.cpp | EOSPowerNetwork/system-epn | dfa836101f6b148916b08b3c2988b591ed92ce9e | [
"MIT"
] | null | null | null | contracts/system/_dispatcher.cpp | EOSPowerNetwork/system-epn | dfa836101f6b148916b08b3c2988b591ed92ce9e | [
"MIT"
] | null | null | null | #include <tuple>
#include "core/fixedprops.hpp"
#include "interface/include/donationsIntf.hpp"
#include "donations.hpp"
#include "paycontracts.hpp"
#include "ricardians.hpp"
#define EXEC_ACTION(CLASS_NAME, ACTION_NAME) \
case eosio::hash_name(#ACTI... | 39.671429 | 180 | 0.601728 | EOSPowerNetwork |
a49fd0bd1d0ea99be7ff7ace123dacdc579e2a49 | 1,633 | cc | C++ | apps/run.cc | CS126SP20/final-project-jlwang3 | 82e1d02133e02f2b020248d1054d3cedbc94224a | [
"MIT"
] | null | null | null | apps/run.cc | CS126SP20/final-project-jlwang3 | 82e1d02133e02f2b020248d1054d3cedbc94224a | [
"MIT"
] | null | null | null | apps/run.cc | CS126SP20/final-project-jlwang3 | 82e1d02133e02f2b020248d1054d3cedbc94224a | [
"MIT"
] | null | null | null | // Copyright (c) 2020 [Your Name]. All rights reserved.
#include <cinder/app/App.h>
#include <cinder/app/RendererGl.h>
#include "my_app.h"
#include <gflags/gflags.h>>
using cinder::app::App;
using cinder::app::RendererGl;
namespace myapp {
DEFINE_uint32(difficulty, 40, "difficulty level");
DEFINE_uint32(w... | 29.160714 | 71 | 0.655848 | CS126SP20 |
a4a0c042b51cb3b0b2cf0b6feb02fa20412104c1 | 218 | cpp | C++ | src/RE/hkpWorldObject.cpp | powerof3/CommonLibVR | c84cd2c63ccba0cc88a212fe9cf86b5470b10a4f | [
"MIT"
] | 6 | 2020-04-05T04:37:42.000Z | 2022-03-19T17:42:24.000Z | src/RE/hkpWorldObject.cpp | kassent/CommonLibSSE | 394231b44ba01925fef9d01ea2b0b29c2fff601c | [
"MIT"
] | 3 | 2021-11-08T09:31:20.000Z | 2022-03-02T19:22:42.000Z | src/RE/hkpWorldObject.cpp | kassent/CommonLibSSE | 394231b44ba01925fef9d01ea2b0b29c2fff601c | [
"MIT"
] | 6 | 2020-04-10T18:11:46.000Z | 2022-01-18T22:31:25.000Z | #include "RE/hkpWorldObject.h"
namespace RE
{
const hkpCollidable* hkpWorldObject::GetCollidable() const
{
return &collidable;
}
hkpCollidable* hkpWorldObject::GetCollidableRW()
{
return &collidable;
}
}
| 12.823529 | 59 | 0.729358 | powerof3 |
a4a3be19fed6d463a4aea6cd32c10279c3da9e0b | 2,418 | cpp | C++ | solved/l-n/liar-or-not-liar-that-is-the/liar.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/l-n/liar-or-not-liar-that-is-the/liar.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/l-n/liar-or-not-liar-that-is-the/liar.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cmath>
#include <cstdio>
#define MAXPSOL 50
#define IsComp(n) (_c[n>>6]&(1<<((n>>1)&31)))
#define SetComp(n) _c[n>>6]|=(1<<((n>>1)&31))
const int MAXP = 10000000; // 10^7
const int SQRP = 3163; // sqrt(MAX)
const int MAX_NP = 781731; // 1.26 * MAXP/log(MAXP)
int _c[(MAXP>>6)+1];
int primes[... | 21.026087 | 74 | 0.449132 | abuasifkhan |
a4a53df93a4c51d49f7f96f0c4c195cb02951c3e | 4,483 | cpp | C++ | fpsgame/gui/tex/tex_tga.cpp | mrlitong/CPP-Game-engine-usage | 95697c4bfb507cfb38dbe0f632740e2a7eac71fb | [
"MIT"
] | 186 | 2017-07-26T12:53:29.000Z | 2021-09-10T04:00:39.000Z | fpsgame/gui/tex/tex_tga.cpp | mrlitong/CPP-Game-engine-usage | 95697c4bfb507cfb38dbe0f632740e2a7eac71fb | [
"MIT"
] | 1 | 2017-08-15T13:12:27.000Z | 2017-08-16T06:14:57.000Z | fpsgame/gui/tex/tex_tga.cpp | mrlitong/CPP-Game-engine-usage | 95697c4bfb507cfb38dbe0f632740e2a7eac71fb | [
"MIT"
] | 6 | 2017-02-15T10:19:26.000Z | 2017-03-15T03:17:15.000Z | /* Copyright (c) 2010 Wildfire Games
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish... | 25.471591 | 81 | 0.696186 | mrlitong |
a4ac126a30577ea28ebc66080d23d784bd9b6bd8 | 374 | cpp | C++ | DataFromImage/GUI/GUIElement.cpp | AlekseyShashkov/DataFromImage | a074098d9f9b44c049c39f5f4299e818401cba31 | [
"MIT"
] | null | null | null | DataFromImage/GUI/GUIElement.cpp | AlekseyShashkov/DataFromImage | a074098d9f9b44c049c39f5f4299e818401cba31 | [
"MIT"
] | null | null | null | DataFromImage/GUI/GUIElement.cpp | AlekseyShashkov/DataFromImage | a074098d9f9b44c049c39f5f4299e818401cba31 | [
"MIT"
] | null | null | null | #include "GUIElement.h"
GUIElement::~GUIElement()
{
::SelectObject(m_PanelDC, m_PanelBitmapDefault);
::SelectObject(m_PanelBasicDC, m_PanelBasicBitmapDefault);
::DeleteObject(m_PanelBitmap);
::DeleteObject(m_PanelBasicBitmap);
::DeleteDC(m_PanelDC);
::DeleteDC(m_PanelBasicDC);
}
HDC GUIEle... | 23.375 | 64 | 0.724599 | AlekseyShashkov |
a4af802acb5d5e86977a374ac170072fd8cebf8a | 8,766 | cpp | C++ | Code/CmLib/Saliency/CmSaliencyGC.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | 1 | 2018-10-07T00:56:57.000Z | 2018-10-07T00:56:57.000Z | Code/CmLib/Saliency/CmSaliencyGC.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | Code/CmLib/Saliency/CmSaliencyGC.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CmSaliencyGC.h"
CmSaliencyGC::CmSaliencyGC(CMat &img3f, CStr &outName, bool GET_CSD)
:_gmm(DEFAULT_GMM_NUM), _img3f(img3f), _nameNE(outName), _GET_CSD(GET_CSD)
{
}
const int CmSaliencyGC::DEFAULT_GMM_NUM = 15;
void CmSaliencyGC::HistgramGMMs()
{
// Color quantization
Mat _colorNums1... | 29.614865 | 113 | 0.630504 | JessicaGiven |
a4b12270171987184379a3e1d5c0c6e882b341e9 | 318 | c++ | C++ | Codeforces/RatingLessThan1300/drinks.c++ | padmaja-22/CP | 0fc2648ead9a993398e3aa2f6e0b028e67c4c148 | [
"MIT"
] | null | null | null | Codeforces/RatingLessThan1300/drinks.c++ | padmaja-22/CP | 0fc2648ead9a993398e3aa2f6e0b028e67c4c148 | [
"MIT"
] | null | null | null | Codeforces/RatingLessThan1300/drinks.c++ | padmaja-22/CP | 0fc2648ead9a993398e3aa2f6e0b028e67c4c148 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;
int main(){
int n;
double sum=0;
int arr[100];
cin>>n;
for(int i=0;i<n;i++){
cin>>arr[i];
sum+=arr[i];
}
double res = (double)sum / n;
cout<<fixed<<setprecision(12)<<res<<endl;
return 0;
} | 18.705882 | 42 | 0.556604 | padmaja-22 |
a4b149f052f60683cef92b494491d6bef192a52e | 29,029 | cc | C++ | projects/Skeleton/code/exampleapp.cc | Destinum/S0008E | 25344cc26c92ee022d7d7eac7428a113aa0be3a2 | [
"MIT"
] | null | null | null | projects/Skeleton/code/exampleapp.cc | Destinum/S0008E | 25344cc26c92ee022d7d7eac7428a113aa0be3a2 | [
"MIT"
] | null | null | null | projects/Skeleton/code/exampleapp.cc | Destinum/S0008E | 25344cc26c92ee022d7d7eac7428a113aa0be3a2 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// exampleapp.cc
// (C) 2015-2018 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "config.h"
#include "exampleapp.h"
#include "NAX3parser.h"
#include "nvx2... | 31.247578 | 270 | 0.703434 | Destinum |
8a53496390cef3ad8175cb63e031a0dfd9f59a5f | 3,667 | ipp | C++ | include/boost/url/impl/query_params_view.ipp | madmongo1/url | e7c9b0c860abd5fba3b7a20c3b29552a326de7b5 | [
"BSL-1.0"
] | null | null | null | include/boost/url/impl/query_params_view.ipp | madmongo1/url | e7c9b0c860abd5fba3b7a20c3b29552a326de7b5 | [
"BSL-1.0"
] | null | null | null | include/boost/url/impl/query_params_view.ipp | madmongo1/url | e7c9b0c860abd5fba3b7a20c3b29552a326de7b5 | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/CPPAlliance/url
//
#ifndef BOOST_URL_IMPL_QUERY_PARAMS... | 18.243781 | 79 | 0.571312 | madmongo1 |
8a566f4d950308abfecf489f13ed83efccfcf6da | 1,824 | cxx | C++ | osprey/wgen/wgen_tracing.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/wgen/wgen_tracing.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/wgen/wgen_tracing.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2007 Google, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation, either version 2, or
* (at your option) any later version.
*
* This... | 26.823529 | 74 | 0.626096 | sharugupta |
8a5a0becb2b007360fbae6a5815ccee72605a31f | 323 | cpp | C++ | tools/castdb.cpp | WatorVapor/wai.native.wator | e048df159e2952c143f8832264b20da20dcd88fa | [
"MIT"
] | null | null | null | tools/castdb.cpp | WatorVapor/wai.native.wator | e048df159e2952c143f8832264b20da20dcd88fa | [
"MIT"
] | null | null | null | tools/castdb.cpp | WatorVapor/wai.native.wator | e048df159e2952c143f8832264b20da20dcd88fa | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <list>
#include <map>
#include <string>
#include <thread>
#include <vector>
using namespace std;
#include "log.hpp"
#include "parrotword.hpp"
int main(int ac, char *av[]) {
if(ac < 2) {
return 0;
}
ParrotWord parrot(av[1]);
parrot.loadMaster();
return 0;... | 15.380952 | 30 | 0.659443 | WatorVapor |
8a5b032e14092f20dc627d58891152130540c7a0 | 3,998 | cpp | C++ | src/add-ons/media/plugins/asf_reader/ASFIndex.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 4 | 2016-03-29T21:45:21.000Z | 2016-12-20T00:50:38.000Z | src/add-ons/media/plugins/asf_reader/ASFIndex.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | null | null | null | src/add-ons/media/plugins/asf_reader/ASFIndex.cpp | axeld/haiku | e3becd53eef5c093ee8c8f32bab51d40b0f2b8d4 | [
"MIT"
] | 3 | 2018-12-17T13:07:38.000Z | 2021-09-08T13:07:31.000Z | /*
* Copyright (c) 2009, David McPaul
* 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 notice,
* this list of condit... | 24.9875 | 135 | 0.6991 | axeld |
8a684dc8cf1b19a1411cea71cb87b24d86407f53 | 1,262 | cpp | C++ | render/Mesh.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | 1 | 2021-07-25T15:10:39.000Z | 2021-07-25T15:10:39.000Z | render/Mesh.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | render/Mesh.cpp | kcat/XLEngine | 0e735ad67fa40632add3872e0cbe5a244689cbe5 | [
"MIT"
] | null | null | null | #include "Mesh.h"
#include "IDriver3D.h"
#include "RenderQue.h"
#include "VertexBuffer.h"
#include "IndexBuffer.h"
#include "../world/Object.h"
#include <assert.h>
#include <stdlib.h>
#include <memory.h>
Mesh::Mesh()
{
m_pVB = NULL;
m_pIB = NULL;
m_pMaterials = NULL;
m_nMtlCnt = 0;
m_bLoaded = fals... | 22.535714 | 93 | 0.561807 | kcat |
8a6fd25118124aa9670922882a4e21dbd6785a30 | 8,770 | cc | C++ | src/cpu/ee/jit/jit.cc | GPUCode/ps2_emu | 295e6def1ea0d58f1bf520332f986df5c8c92e02 | [
"MIT"
] | 10 | 2022-01-05T15:04:56.000Z | 2022-02-23T05:59:44.000Z | src/cpu/ee/jit/jit.cc | GPUCode/ps2_emu | 295e6def1ea0d58f1bf520332f986df5c8c92e02 | [
"MIT"
] | null | null | null | src/cpu/ee/jit/jit.cc | GPUCode/ps2_emu | 295e6def1ea0d58f1bf520332f986df5c8c92e02 | [
"MIT"
] | null | null | null | #include <cpu/ee/jit/jit.h>
#include <cpu/ee/ee.h>
#include <fmt/core.h>
namespace ee
{
namespace jit
{
JITCompiler::JITCompiler(EmotionEngine* parent) :
ee(parent), irbuilder(parent)
{
}
JITCompiler::~JITCompiler()
{
delete code;
delete builder;
}
void JITCompil... | 36.239669 | 120 | 0.513683 | GPUCode |
8a7cb17b4de37c1fb1adbddaf6410a71b4414e53 | 582 | cpp | C++ | solutions/1123/20110410T130623Z-3528299.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | 11 | 2019-10-29T15:34:53.000Z | 2022-03-14T14:45:09.000Z | solutions/1123/20110410T130623Z-3528299.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | null | null | null | solutions/1123/20110410T130623Z-3528299.cpp | Mistereo/timus-solutions | 062540304c33312b75e0e8713c4b36c80fb220ab | [
"MIT"
] | 6 | 2018-06-30T12:06:55.000Z | 2021-03-20T08:46:33.000Z | #include <stdio.h>
#include <iostream>
#include <string>
using namespace std;
int n;
string s;
void foo(int k){
if(s[k]=='9') {
for(int i=k; i<s.length(); i++)
s[i]='0';
foo(k-1);
} else {
s[k]++;
for(int i=k+1; i<s.length(); i++)
s[i]='0';
}
}
int main() {
cin >> s;
n=(s.length()+... | 17.117647 | 59 | 0.457045 | Mistereo |
8a8228898202665dc9ab210d25a6227d9230b5bd | 10,787 | cpp | C++ | src/main.cpp | gruppe-adler/grad_replay_intercept | 000dcf97b113a8e139d0d7d099d4477401b5c480 | [
"MIT"
] | null | null | null | src/main.cpp | gruppe-adler/grad_replay_intercept | 000dcf97b113a8e139d0d7d099d4477401b5c480 | [
"MIT"
] | null | null | null | src/main.cpp | gruppe-adler/grad_replay_intercept | 000dcf97b113a8e139d0d7d099d4477401b5c480 | [
"MIT"
] | null | null | null | #include <intercept.hpp>
#include "ReplayPart.h"
#include <nlohmann/json.hpp>
#include <cpr/cpr.h>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
// Gzip
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/copy.hpp>
#include <boost/iostreams/filter/gzip... | 37.454861 | 166 | 0.606285 | gruppe-adler |
8a8912a87d36fe6699a71a488bacd80101d180b5 | 529 | hpp | C++ | include/clement/clement.hpp | knejadfard/server | cdc555145589bc54dac40b0db1e90538a3b83d9d | [
"BSL-1.0"
] | 2 | 2020-11-04T18:05:51.000Z | 2021-12-12T01:05:03.000Z | include/clement/clement.hpp | knejadfard/clement | cdc555145589bc54dac40b0db1e90538a3b83d9d | [
"BSL-1.0"
] | 10 | 2020-09-06T18:41:47.000Z | 2021-01-31T16:00:50.000Z | include/clement/clement.hpp | knejadfard/server | cdc555145589bc54dac40b0db1e90538a3b83d9d | [
"BSL-1.0"
] | null | null | null | #ifndef CLEMENT_CLEMENT_HPP
#define CLEMENT_CLEMENT_HPP
#include "clement/core/constants.hpp"
#include "clement/core/http_server.hpp"
#include "clement/core/logger.hpp"
#include "clement/core/path.hpp"
#include "clement/core/request.hpp"
#include "clement/core/response_builder.hpp"
#include "clement/core/route.hpp"
#i... | 24.045455 | 44 | 0.773157 | knejadfard |
8a8c5963e4797d3d8bf7b94f8b6b58310cac5d3f | 382 | cpp | C++ | problems/944.delete-columns-to-make-sorted.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/944.delete-columns-to-make-sorted.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | problems/944.delete-columns-to-make-sorted.cpp | bigfishi/leetcode | 3e512f2822a742349384a0bdd7954696f5867683 | [
"MIT"
] | null | null | null | // 需要注意行和列的区别,第一次错在比对的是行不是列,第二次错在行列的循环终点颠倒了,第三次才改对
class Solution {
public:
int minDeletionSize(vector<string>& A) {
if (!A.size() || !A[0].size()) return 0;
int n = A.size();
int m = A[0].size();
int res = 0;
for (size_t i = 0; i < m; i++)
{
for (size_t j = 1; j < n; j++)
{
if (A[j-1][i]>A[j][i]... | 18.190476 | 50 | 0.507853 | bigfishi |
8a8f5eb4be8ab082efff070579d2ffd40bb46bbc | 4,704 | cpp | C++ | source/omni/ui/syntax_input.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 33 | 2015-03-21T04:12:45.000Z | 2021-04-18T21:44:33.000Z | source/omni/ui/syntax_input.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | null | null | null | source/omni/ui/syntax_input.cpp | daniel-kun/omni | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | [
"MIT"
] | 2 | 2016-03-05T12:57:05.000Z | 2017-09-12T10:11:52.000Z | #include <omni/ui/syntax_input.hpp>
#include <omni/ui/suggestion_text_edit.hpp>
#include <omni/core/input/syntax_element.hpp>
#include <omni/core/input/syntax_template_element.hpp>
#include <omni/core/input/regex_template_element.hpp>
#include <omni/core/input/variable_template_element.hpp>
#include <omni/core/input/f... | 35.636364 | 136 | 0.642432 | daniel-kun |
8a91c300b8554e8e3e48df6b34e62e22089fea99 | 4,379 | cpp | C++ | src/datatypes/descriptor.cpp | SoerenHoffstedt/raster-time-series | b6b763c741fa8655e42ec38ae6c3fe1524bb5d28 | [
"MIT"
] | null | null | null | src/datatypes/descriptor.cpp | SoerenHoffstedt/raster-time-series | b6b763c741fa8655e42ec38ae6c3fe1524bb5d28 | [
"MIT"
] | null | null | null | src/datatypes/descriptor.cpp | SoerenHoffstedt/raster-time-series | b6b763c741fa8655e42ec38ae6c3fe1524bb5d28 | [
"MIT"
] | null | null | null |
#include <iostream>
#include "datatypes/descriptor.h"
#include "descriptor.h"
#include <cmath>
#include "util/raster_calculations.h"
#include "datatypes/raster_operations.h"
using namespace rts;
// DescriptorInfo:
DescriptorInfo::DescriptorInfo(const SpatialTemporalReference &totalInfo,
... | 38.412281 | 173 | 0.59968 | SoerenHoffstedt |
8a94a09f7992b413ae1ba4fbd57b266d1c5ef1bc | 1,559 | hpp | C++ | engine/graphics/geometry/mesh/builder/RMVertexBufferHeaderBuilder.hpp | vitali-kurlovich/RMPropeller | 6b914957000dc5bd35319828b7e2608ceb2c92ca | [
"MIT"
] | null | null | null | engine/graphics/geometry/mesh/builder/RMVertexBufferHeaderBuilder.hpp | vitali-kurlovich/RMPropeller | 6b914957000dc5bd35319828b7e2608ceb2c92ca | [
"MIT"
] | null | null | null | engine/graphics/geometry/mesh/builder/RMVertexBufferHeaderBuilder.hpp | vitali-kurlovich/RMPropeller | 6b914957000dc5bd35319828b7e2608ceb2c92ca | [
"MIT"
] | null | null | null | //
// Created by Vitali Kurlovich on 10/29/16.
//
#ifndef RMPROPELLER_RMVERTEXBUFFERHEADERBUILDER_HPP
#define RMPROPELLER_RMVERTEXBUFFERHEADERBUILDER_HPP
#include "graphics/geometry/geometry_common.hpp"
#include <algorithm>
#include "graphics/geometry/mesh/buffer/RMVertexAttribute.hpp"
#include "graphics/geometry/me... | 26.87931 | 115 | 0.597178 | vitali-kurlovich |
8a975c5f6590053d63bbe9faca4b9e2f2331f7ad | 626 | cpp | C++ | src/tests/textbank/main.cpp | TheMrButcher/opengl_lessons | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 1 | 2016-10-25T21:15:16.000Z | 2016-10-25T21:15:16.000Z | src/tests/textbank/main.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 375 | 2016-06-04T11:27:40.000Z | 2019-04-14T17:11:09.000Z | src/tests/textbank/main.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | null | null | null | #include <gamebase/Gamebase.h>
using namespace gamebase;
using namespace std;
class MyApp : public App
{
public:
void load()
{
loadTextBank("textbank/Texts.json");
connect(button, setText);
text << tr("text2");
}
void setText()
{
text << tr(textBox.text());
}
... | 17.388889 | 44 | 0.587859 | TheMrButcher |
8a9ba4c471ded164e560a6c1b2046cf2fdae94a7 | 6,347 | cpp | C++ | AtlStlStringSortPerf/AtlStlStringSortPerf.cpp | GiovanniDicanio/AtlStlStringSortPerf | ccec3b0b6acf5cea11a5ea9de3c5b7a648eb2422 | [
"MIT"
] | 4 | 2018-03-29T15:38:00.000Z | 2020-12-24T18:55:32.000Z | AtlStlStringSortPerf/AtlStlStringSortPerf.cpp | GiovanniDicanio/AtlStlStringSortPerf | ccec3b0b6acf5cea11a5ea9de3c5b7a648eb2422 | [
"MIT"
] | null | null | null | AtlStlStringSortPerf/AtlStlStringSortPerf.cpp | GiovanniDicanio/AtlStlStringSortPerf | ccec3b0b6acf5cea11a5ea9de3c5b7a648eb2422 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
//
// *** ATL vs. STL String Sorting Performance Tests ***
//
// by Giovanni Dicanio
//
// Compares sorting times of vector<CStringW> vs. vector<wstring>
//
////////////////////////////////////... | 28.85 | 92 | 0.49031 | GiovanniDicanio |
8a9f65a8419e580caf67c7d3dac35d62d66611ea | 983 | cxx | C++ | ppdc/ppdc-font.cxx | nilakhan/cups | 3859d70160010c61fd7a05ecbf23f3b4738e2b9d | [
"Apache-2.0"
] | 463 | 2020-10-14T19:36:24.000Z | 2022-03-30T18:35:47.000Z | ppdc/ppdc-font.cxx | nilakhan/cups | 3859d70160010c61fd7a05ecbf23f3b4738e2b9d | [
"Apache-2.0"
] | 373 | 2017-10-24T08:25:34.000Z | 2022-03-30T20:34:06.000Z | ppdc/ppdc-font.cxx | nilakhan/cups | 3859d70160010c61fd7a05ecbf23f3b4738e2b9d | [
"Apache-2.0"
] | 124 | 2017-10-20T10:28:31.000Z | 2022-03-22T21:07:18.000Z | //
// Shared font class for the CUPS PPD Compiler.
//
// Copyright 2007-2009 by Apple Inc.
// Copyright 2002-2005 by Easy Software Products.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more information.
//
//
// Include necessary headers...
//
#include "ppdc-private.h"
//
// 'ppdcFont::ppd... | 19.27451 | 84 | 0.603255 | nilakhan |
8aa9e8aa0f61af883ee7e76c8484a8cc54c05b66 | 2,197 | cpp | C++ | Ackermann-function/Ackermann-function.cpp | esote/mathematical-functions | 0bdf761583a49b6479a82d7e0668744d9bb75dad | [
"MIT"
] | null | null | null | Ackermann-function/Ackermann-function.cpp | esote/mathematical-functions | 0bdf761583a49b6479a82d7e0668744d9bb75dad | [
"MIT"
] | null | null | null | Ackermann-function/Ackermann-function.cpp | esote/mathematical-functions | 0bdf761583a49b6479a82d7e0668744d9bb75dad | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <limits>
unsigned int ackermann(unsigned int m, unsigned int n){
if(m == 0)
return n+1;
if(n == 0)
return ackermann(m-1,1);
return ackermann(m-1,ackermann(m,n-1));
}
enum var {M, N};
bool SOProtection;
bool isInvalidCheck(double i, var name){
... | 22.649485 | 109 | 0.497497 | esote |
8aac458883cfc4c12495f199526fe55e2247f48e | 32,002 | inl | C++ | imgui/binding/src/lua_imgui_ImGui_DragX.inl | Legacy-LuaSTG-Engine/LuaSTG-Sub | c7d21da53fc86efe4e3907738f8fed324581dee0 | [
"MIT"
] | 6 | 2022-02-26T09:21:40.000Z | 2022-02-28T11:03:23.000Z | imgui/binding/src/lua_imgui_ImGui_DragX.inl | Legacy-LuaSTG-Engine/LuaSTG-Sub | c7d21da53fc86efe4e3907738f8fed324581dee0 | [
"MIT"
] | null | null | null | imgui/binding/src/lua_imgui_ImGui_DragX.inl | Legacy-LuaSTG-Engine/LuaSTG-Sub | c7d21da53fc86efe4e3907738f8fed324581dee0 | [
"MIT"
] | null | null | null | // ImGui::DragX
static int lib_DragFloat(lua_State* L)
{
const int argc = lua_gettop(L);
const char* label = luaL_checkstring(L, 1);
float v = (float)luaL_checknumber(L, 2);
bool ret = false;
if (argc <= 2)
{
ret = ImGui::DragFloat(label, &v);
}
else if (argc == 3)
... | 34.747014 | 97 | 0.556496 | Legacy-LuaSTG-Engine |
8aae16360798c8769bb5f79f6b35e30bf97901fb | 392 | cpp | C++ | System/PixelShader.cpp | CrossProd/Aardbei_SouthsideExploration | cead610de95fb87b5aab60b4ec834a8c814a3c12 | [
"MIT"
] | 1 | 2018-11-20T03:50:35.000Z | 2018-11-20T03:50:35.000Z | System/PixelShader.cpp | rbruinier/Aardbei_SouthsideExploration | cead610de95fb87b5aab60b4ec834a8c814a3c12 | [
"MIT"
] | null | null | null | System/PixelShader.cpp | rbruinier/Aardbei_SouthsideExploration | cead610de95fb87b5aab60b4ec834a8c814a3c12 | [
"MIT"
] | null | null | null | /*
Pyramid System - Pixel Shader Class
2006, Robert Jan Bruinier (rob / aardbei)
*/
#include "PixelShader.h"
PixelShader::PixelShader()
{
d3dPixelShader = NULL;
}
PixelShader::~PixelShader()
{
}
int PixelShader::Destroy()
{
if (d3dPixelShader != NULL)
{
if (FAILED(d3dPixelShad... | 11.529412 | 43 | 0.59949 | CrossProd |
8ab62bcc0ffa561dac2529f1cb902da77967b8bf | 14,130 | cpp | C++ | of_dis/refine_variational.cpp | beaupreda/IMOT_OpticalFlow_Edges | 633b8fec2c2a4525d1e62d385e553789d56f61f9 | [
"MIT"
] | 12 | 2018-01-31T13:32:49.000Z | 2021-12-03T16:35:29.000Z | of_dis/refine_variational.cpp | beaupreda/IMOT_OpticalFlow_Edges | 633b8fec2c2a4525d1e62d385e553789d56f61f9 | [
"MIT"
] | 2 | 2020-09-14T11:02:37.000Z | 2021-04-29T23:28:48.000Z | of_dis/refine_variational.cpp | beaupreda/IMOT_OpticalFlow_Edges | 633b8fec2c2a4525d1e62d385e553789d56f61f9 | [
"MIT"
] | 2 | 2019-04-01T12:20:48.000Z | 2021-09-06T03:42:54.000Z |
#include <iostream>
#include <string>
#include <vector>
#include <valarray>
#include <thread>
#include <Eigen/Core>
#include <Eigen/LU>
#include <Eigen/Dense>
#include <stdio.h>
#include "refine_variational.h"
using std::cout;
using std::endl;
using std::vector;
namespace OFC
{
VarRefClass::VarRefClass(c... | 41.075581 | 248 | 0.635598 | beaupreda |
8ab64d5486081801d453ef1f87e7fca04e93fc32 | 8,510 | tpp | C++ | sequitur/baselist.tpp | lytnus/cpp-sequitur | a27a5d1ad85b78d6366f74d2be18d3727d5bce94 | [
"MIT"
] | null | null | null | sequitur/baselist.tpp | lytnus/cpp-sequitur | a27a5d1ad85b78d6366f74d2be18d3727d5bce94 | [
"MIT"
] | null | null | null | sequitur/baselist.tpp | lytnus/cpp-sequitur | a27a5d1ad85b78d6366f74d2be18d3727d5bce94 | [
"MIT"
] | null | null | null | template<typename Child>
template<typename Function> Child * BaseList<Child>::forUntil(const Function & f)
{
BaseList * item = this;
BaseList * next;
while(item)
{
next = item->next_ptr;
if(!f(static_cast<Child*>(item))) break;
item = next;
}
return static_cas... | 28.945578 | 100 | 0.656287 | lytnus |
8ab88ddf7e6939fb526c63898c03de4a0c93e63c | 4,381 | hpp | C++ | src/core/logic/RBAConstraintInfo.hpp | NaohiroNISHIGUCHI/RBA | ac86e4ffa643b8050b25161c951bb43f4e36235a | [
"Apache-2.0"
] | 2 | 2020-07-17T11:13:48.000Z | 2020-07-30T09:37:08.000Z | src/core/logic/RBAConstraintInfo.hpp | NaohiroNISHIGUCHI/RBA | ac86e4ffa643b8050b25161c951bb43f4e36235a | [
"Apache-2.0"
] | null | null | null | src/core/logic/RBAConstraintInfo.hpp | NaohiroNISHIGUCHI/RBA | ac86e4ffa643b8050b25161c951bb43f4e36235a | [
"Apache-2.0"
] | 3 | 2020-06-25T07:19:19.000Z | 2020-06-26T13:06:13.000Z | /**
* Copyright (c) 2019 DENSO CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 36.508333 | 85 | 0.749372 | NaohiroNISHIGUCHI |
8ab8c4924a9f9cbbc1f408e8081c8f98694d7fcf | 216 | cpp | C++ | test/startstop.cpp | davidmoreno/opp | 16cfd074e132cdd0623eb013a16a891d80185dad | [
"Apache-2.0"
] | 4 | 2018-11-09T19:50:56.000Z | 2021-03-24T16:34:19.000Z | test/startstop.cpp | davidmoreno/opp | 16cfd074e132cdd0623eb013a16a891d80185dad | [
"Apache-2.0"
] | null | null | null | test/startstop.cpp | davidmoreno/opp | 16cfd074e132cdd0623eb013a16a891d80185dad | [
"Apache-2.0"
] | null | null | null | #include "opp.hpp"
#include "vm.hpp"
int main(){
fprintf(stderr, "Main Start\n");
opp::start();
opp::vm->print_stats();
opp::stop();
fprintf(stderr, "Main Stop, %ld uses of vm.\n", opp::vm.use_count());
}
| 19.636364 | 71 | 0.611111 | davidmoreno |
8abc6a8ce6b9b0fedda56fa8e936657f88c8a0d6 | 13,258 | hh | C++ | src/zone.hh | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/zone.hh | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/zone.hh | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | 1 | 2019-01-24T16:14:56.000Z | 2019-01-24T16:14:56.000Z | // zone.hh
#ifndef ZONE_HEADER
#define ZONE_HEADER
#include <clipper/clipper.h>
#include "hkl_datatypes.hh"
#include "range.hh"
#include "globalcontrols.hh"
#include "hkl_symmetry.hh"
#include "score_datatypes.hh"
namespace scala
{
//--------------------------------------------------------------
double IscoreVal... | 37.88 | 106 | 0.634787 | maciejwlodek |
8abda83e0b68f1fff8e78a04114364a6df537726 | 442 | cpp | C++ | src/Command.cpp | Tosi/wadutil | 2806999d8a3e9739236df858ec0268a9764c8a9f | [
"MIT"
] | null | null | null | src/Command.cpp | Tosi/wadutil | 2806999d8a3e9739236df858ec0268a9764c8a9f | [
"MIT"
] | null | null | null | src/Command.cpp | Tosi/wadutil | 2806999d8a3e9739236df858ec0268a9764c8a9f | [
"MIT"
] | null | null | null | #include "Command.h"
#include <fstream>
using std::string;
using std::ifstream;
using std::ofstream;
using std::ios;
Command::Command(const string& input_filename, const string& output_filename)
: in_file(input_filename), out_file(output_filename)
{
has_input = false;
has_output = false;
if(in_file != ... | 19.217391 | 77 | 0.642534 | Tosi |
8abe584c375958dc0d0480e530d3d42119dc147f | 16,021 | hpp | C++ | external/boost_1_60_0/qsboost/proto/detail/deprecated.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/proto/detail/deprecated.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/proto/detail/deprecated.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
/// \file deprecated.hpp
/// Definition of the deprecated BOOST_PROTO_DEFINE_FUCTION_TEMPLATE and
/// BOOST_PROTO_DEFINE_VARARG_FUCTION_TEMPLATE macros
//
// Copyright 2008 Eric Niebler. Distributed under the Boost
// Software License, Ve... | 64.600806 | 105 | 0.32345 | wouterboomsma |
8abf9be37cb62461136fc2079cbf6a20c0c3323f | 4,046 | hpp | C++ | src/util/math/Matrix.hpp | MeowyAsh/opengl-game | 6704de98b396b96672c801f029d951267c3f5e24 | [
"Unlicense"
] | 6 | 2021-05-09T03:27:14.000Z | 2021-06-21T05:59:17.000Z | src/util/math/Matrix.hpp | Meowy1227/opengl-game | 6704de98b396b96672c801f029d951267c3f5e24 | [
"Unlicense"
] | null | null | null | src/util/math/Matrix.hpp | Meowy1227/opengl-game | 6704de98b396b96672c801f029d951267c3f5e24 | [
"Unlicense"
] | 1 | 2021-05-12T04:09:14.000Z | 2021-05-12T04:09:14.000Z | #pragma once
template <typename T>
struct Matrix4 {
T elems[16];
/**
* 0 1 2 3
* 4 5 6 7
* 8 9 10 11
* 12 13 14 15
*/
Matrix4<T> operator *(Matrix4<T> &that) const {
return Matrix4<T>{
elems[0]*that[0] + elems[1]*that[4] + elems[2]*that[8] + ele... | 45.977273 | 106 | 0.470588 | MeowyAsh |
8ac08ad0d93c294a9df7ae151c0f382057e2163b | 5,461 | cpp | C++ | SuSto-Engine-QT/Renderers/lightrenderer.cpp | SimonStoyanov/SuSto-Engine-QT | ab93bbad84902d0edce1a38cfba680bec5ae1f7f | [
"MIT"
] | null | null | null | SuSto-Engine-QT/Renderers/lightrenderer.cpp | SimonStoyanov/SuSto-Engine-QT | ab93bbad84902d0edce1a38cfba680bec5ae1f7f | [
"MIT"
] | null | null | null | SuSto-Engine-QT/Renderers/lightrenderer.cpp | SimonStoyanov/SuSto-Engine-QT | ab93bbad84902d0edce1a38cfba680bec5ae1f7f | [
"MIT"
] | null | null | null | #include "lightrenderer.h"
#include "Managers/shadermanager.h"
#include "Managers/rendermanager.h"
#include "Renderers/rendertarget.h"
#include "Managers/meshmanager.h"
#include "Renderers/mesh.h"
#include "Managers/scenerenderermanager.h"
#include "Managers/entitymanager.h"
#include "Entity/entity.h"
#include "Entity/... | 43 | 145 | 0.668193 | SimonStoyanov |
8ac300809cb6f88f5c98898cfd57af5b7069f4b2 | 1,183 | cpp | C++ | src/tests/TestSingleFileStreams.cpp | sashamakarenko/slog | 9764b8acc2d831aec11121e080a3331dc9e0dd62 | [
"MIT"
] | null | null | null | src/tests/TestSingleFileStreams.cpp | sashamakarenko/slog | 9764b8acc2d831aec11121e080a3331dc9e0dd62 | [
"MIT"
] | null | null | null | src/tests/TestSingleFileStreams.cpp | sashamakarenko/slog | 9764b8acc2d831aec11121e080a3331dc9e0dd62 | [
"MIT"
] | null | null | null |
#include <tests/Formats.h>
#include <slog/impl/FileStreamChannelFactory.h>
#include <iostream>
#include <thread>
#include <chrono>
int main( int args, const char ** argv )
{
slog::ChannelFactory::setInstance( new slog::impl::FileStreamChannelFactory( "out.log", { { slog::OPT_MULTIFILE, false } } ) );
slog::Ch... | 56.333333 | 207 | 0.633136 | sashamakarenko |
8ac68c95b5565017de66b9add1ba38a4d5458c50 | 454 | cpp | C++ | CsPlugin/Source/CsCore/Public/Managers/Time/CsTypes_Update.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsPlugin/Source/CsCore/Public/Managers/Time/CsTypes_Update.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsPlugin/Source/CsCore/Public/Managers/Time/CsTypes_Update.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2021 Closed Sum Games, LLC. All Rights Reserved.
#include "Managers/Time/CsTypes_Update.h"
// UpdateGroup
#pragma region
namespace NCsUpdateGroup
{
CSCORE_API CS_CREATE_ENUM_STRUCT_CUSTOM(EditorEngine, "Editor Engine");
CSCORE_API CS_CREATE_ENUM_STRUCT_CUSTOM(GameInstance, "Game Instance");
CSCOR... | 30.266667 | 72 | 0.819383 | closedsum |
8acd83b30e9e73c0f9261c7f09e896a3154eaa9d | 8,262 | cpp | C++ | src/ServiceListItem.cpp | Perelandra0x309/serviceswatcher | ec7a377b54dff4620758d38fef491ce2be0754c3 | [
"BSD-3-Clause"
] | null | null | null | src/ServiceListItem.cpp | Perelandra0x309/serviceswatcher | ec7a377b54dff4620758d38fef491ce2be0754c3 | [
"BSD-3-Clause"
] | 1 | 2016-09-21T14:58:37.000Z | 2016-10-23T01:46:32.000Z | src/ServiceListItem.cpp | Perelandra0x309/serviceswatcher | ec7a377b54dff4620758d38fef491ce2be0754c3 | [
"BSD-3-Clause"
] | null | null | null | /* ServiceListItem.cpp
* Copyright 2010 Brian Hill
* All rights reserved. Distributed under the terms of the BSD License.
*/
#include "ServiceListItem.h"
ServiceListItem::ServiceListItem(BEntry entry, const char * sig, AppOptions *options)
:
BListItem(),
fCurrentState(STATE_NONE),
fInitStatus(B_ERROR)
{
// Dr... | 21.404145 | 91 | 0.701525 | Perelandra0x309 |
8ace48b9222db88651f7cb019a8547c9c9782b2c | 3,235 | hpp | C++ | include/cryptcpp/impl/openssl/openssl_digital_signature.hpp | santanusen/cryptcpp | 33d95904c44ba97de65517930fedc7d877d55c84 | [
"Apache-2.0"
] | null | null | null | include/cryptcpp/impl/openssl/openssl_digital_signature.hpp | santanusen/cryptcpp | 33d95904c44ba97de65517930fedc7d877d55c84 | [
"Apache-2.0"
] | null | null | null | include/cryptcpp/impl/openssl/openssl_digital_signature.hpp | santanusen/cryptcpp | 33d95904c44ba97de65517930fedc7d877d55c84 | [
"Apache-2.0"
] | null | null | null | //
// Copyright 2021 Santanu Sen. All Rights Reserved.
//
// Licensed under the Apache License 2.0 (the "License"). You may not use
// this file except in compliance with the License. You can obtain a copy
// in the file LICENSE in the source distribution.
//
#ifndef __CRYPTCPP_OPENSSL_DSA_HPP__
#define __CRYPTCPP_O... | 27.887931 | 80 | 0.686244 | santanusen |
8acf5ba06fc08543f2263fa983678e0bb5de6653 | 1,384 | hpp | C++ | src/Sites/LoginHtml.hpp | JSydll/enlighting-letters | 24a5b45002466d05291476977fd4ee8bef03d61b | [
"MIT"
] | null | null | null | src/Sites/LoginHtml.hpp | JSydll/enlighting-letters | 24a5b45002466d05291476977fd4ee8bef03d61b | [
"MIT"
] | null | null | null | src/Sites/LoginHtml.hpp | JSydll/enlighting-letters | 24a5b45002466d05291476977fd4ee8bef03d61b | [
"MIT"
] | null | null | null | /**
* @file LoginHtml.hpp
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2019-05-13
*
* @copyright Copyright (c) 2019
*
*/
#ifndef UPDATE__LOGIN_HPP
#define UPDATE__LOGIN_HPP
#include <string>
namespace EnlightingLetters
{
const std::string kUser = "updater";
const std::string kPasswor... | 23.862069 | 83 | 0.510116 | JSydll |
8acfcbda208e8048354e596eff7c17d16b3785f0 | 407 | cpp | C++ | src/asset/prefab/prefab_inc.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/asset/prefab/prefab_inc.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/asset/prefab/prefab_inc.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #include "prefab_inc.hpp"
CE_BEGIN_NAMESPACE
namespace PrefabState {
_Prefab::_Sig2Prb sig2PrbFn = nullptr;
_Prefab::_Sig2Ass sig2AssFn = nullptr;
std::vector<pPrefab> prefabStack = {};
std::stack<SceneObject> activeBaseObjs = {};
std::stack<std::unordered_set<ChokoEngine::objectid>> ids_indirect = {};
... | 22.611111 | 73 | 0.724816 | chokomancarr |
8ad320945a1542a9205876a469c59bbf2a5bd1b8 | 19,375 | cpp | C++ | minsubsystem/minimgio/src/pack.cpp | dketterer/colorsegmentation | 58440fc4eb9aeb7e025a91b521e56c87c154b176 | [
"MIT"
] | 6 | 2020-05-27T07:04:11.000Z | 2022-02-21T16:27:01.000Z | minsubsystem/minimgio/src/pack.cpp | Visillect/segmentation | 07cb7ec960a7f8461aedcf8f8d08a1abc79f297f | [
"MIT"
] | null | null | null | minsubsystem/minimgio/src/pack.cpp | Visillect/segmentation | 07cb7ec960a7f8461aedcf8f8d08a1abc79f297f | [
"MIT"
] | null | null | null | /*
Copyright (c) 2011, Smart Engines Limited. All rights reserved.
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,
th... | 72.565543 | 121 | 0.814348 | dketterer |
8ad34b379e1a3fbcc8ebe5ab86479da6d0c2f4a3 | 3,724 | cpp | C++ | srcs/Shader.cpp | paribro/hydrodynamic-simulator | 63f16099a4b60bd6240d2c7a6950009637197382 | [
"MIT"
] | 2 | 2020-08-12T11:41:04.000Z | 2021-02-20T20:02:44.000Z | srcs/Shader.cpp | prdbrg/hydrodynamic-simulator | 63f16099a4b60bd6240d2c7a6950009637197382 | [
"MIT"
] | null | null | null | srcs/Shader.cpp | prdbrg/hydrodynamic-simulator | 63f16099a4b60bd6240d2c7a6950009637197382 | [
"MIT"
] | null | null | null | #include <iostream>
#include <Exceptions.hpp>
#include <Shader.hpp>
/*******************************************
Constructors
*******************************************/
Shader::Shader(void) : _vertex(glCreateShader(GL_VERTEX_SHADER)), _fragment(glCreateShader(GL_FRAGMENT_SHADER))
{
this->compile();
this->link()... | 23.871795 | 111 | 0.647959 | paribro |
e9d1cad8bd94ee9fa25718b7263fd099681deead | 257 | cpp | C++ | Src/Base/WindowBase.cpp | cdoty/SuperPlayExtended | 0a9717c44b8e3820afeaf0673f86b152daf88cd7 | [
"MIT"
] | null | null | null | Src/Base/WindowBase.cpp | cdoty/SuperPlayExtended | 0a9717c44b8e3820afeaf0673f86b152daf88cd7 | [
"MIT"
] | null | null | null | Src/Base/WindowBase.cpp | cdoty/SuperPlayExtended | 0a9717c44b8e3820afeaf0673f86b152daf88cd7 | [
"MIT"
] | null | null | null | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "WindowBase.h"
WindowBase::WindowBase() :
m_iWidth(0),
m_iHeight(0)
{
}
| 23.363636 | 95 | 0.715953 | cdoty |
e9d346c1ff7b7726f317facbdeae1b0ea36f0785 | 824 | cc | C++ | structural_patterns/flyweight/source/clothes_factory.cc | HelenXR/design_patterns_HelenXR-Dev- | 083ebc3d724329bbdf71c16c4b25566d4bf860cf | [
"MIT"
] | 1 | 2018-10-10T17:17:27.000Z | 2018-10-10T17:17:27.000Z | structural_patterns/flyweight/source/clothes_factory.cc | HelenXR/design_patterns_HelenXR-Dev- | 083ebc3d724329bbdf71c16c4b25566d4bf860cf | [
"MIT"
] | null | null | null | structural_patterns/flyweight/source/clothes_factory.cc | HelenXR/design_patterns_HelenXR-Dev- | 083ebc3d724329bbdf71c16c4b25566d4bf860cf | [
"MIT"
] | 1 | 2019-07-01T04:06:38.000Z | 2019-07-01T04:06:38.000Z | #include "clothes_factory.h"
#include "runner_clothes.h"
#include <iostream>
using namespace std;
ClothesFactory::ClothesFactory(){
}
ClothesFactory::~ClothesFactory(){
map<int,Clothes*>::iterator iterator;
iterator = map_clothes_.begin();
while(iterator != map_clothes_.end()){
delete iterator->second;
printf... | 24.969697 | 70 | 0.674757 | HelenXR |
e9d92c581be451c9aedc86ff54c167f8914152ce | 403 | cpp | C++ | SpaghettiDungeonGen/Coord.cpp | RedBreadcat/SpaghettiDungeonGenerator | 1153dd8f26dfd835ca70c520e735f199f50ef858 | [
"MIT"
] | 39 | 2019-11-23T14:52:46.000Z | 2022-01-04T08:57:04.000Z | SpaghettiDungeonGen/Coord.cpp | RedBreadcat/SpaghettiDungeonGenerator | 1153dd8f26dfd835ca70c520e735f199f50ef858 | [
"MIT"
] | null | null | null | SpaghettiDungeonGen/Coord.cpp | RedBreadcat/SpaghettiDungeonGenerator | 1153dd8f26dfd835ca70c520e735f199f50ef858 | [
"MIT"
] | 5 | 2019-11-24T00:35:04.000Z | 2019-12-09T11:08:16.000Z | #include "Coord.h"
bool operator==(Coord const& lhs, Coord const& rhs)
{
return (lhs.x == rhs.x) && (lhs.y == rhs.y);
}
Coord operator+(Coord const& lhs, Coord const& rhs)
{
return {lhs.x + rhs.x, lhs.y + rhs.y};
}
Coord operator-(Coord const& lhs, Coord const& rhs)
{
return { lhs.x - rhs.x, lhs.y - rhs.y };
}
C... | 19.190476 | 51 | 0.612903 | RedBreadcat |
e9d96706e3de26cd7efd7bd8823ca90f2379ed67 | 1,913 | cpp | C++ | merge_sort/merge_sort.cpp | cutlas62/Sorting-Algorithms | 3ae816b4d286899ffa9fc0918e17dbba47017671 | [
"MIT"
] | 7 | 2020-05-28T04:10:47.000Z | 2021-02-25T13:34:56.000Z | merge_sort/merge_sort.cpp | cutlas62/Sorting-Algorithms | 3ae816b4d286899ffa9fc0918e17dbba47017671 | [
"MIT"
] | null | null | null | merge_sort/merge_sort.cpp | cutlas62/Sorting-Algorithms | 3ae816b4d286899ffa9fc0918e17dbba47017671 | [
"MIT"
] | 1 | 2020-06-02T15:06:24.000Z | 2020-06-02T15:06:24.000Z | #include "../utils.h"
void _merge_sort(int *arr, int l, int r, statistics_t * ret);
void _merge(int *arr, int l, int m, int r, statistics_t * ret);
statistics_t merge_sort(int *arr, int n)
{
printf("Sorting array with merge sort...\n\n");
statistics_t ret = {0};
uint64_t start_t = microsSinceEpoch();
_m... | 21.988506 | 82 | 0.468374 | cutlas62 |
e9dc1498ffee6fc4a21c1e7ac92b802ce46cd579 | 1,987 | cpp | C++ | sort/mergesort_4_linkedlist.cpp | yyuze/study-algorithm | 1169638a4386b7c3d04261cce698f2b14bd0ba5b | [
"Apache-2.0"
] | null | null | null | sort/mergesort_4_linkedlist.cpp | yyuze/study-algorithm | 1169638a4386b7c3d04261cce698f2b14bd0ba5b | [
"Apache-2.0"
] | null | null | null | sort/mergesort_4_linkedlist.cpp | yyuze/study-algorithm | 1169638a4386b7c3d04261cce698f2b14bd0ba5b | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include<list>
using namespace std;
class node {
public:
int value;
node * next;
node() { next = nullptr; }
node(int i) {
value = i; next = nullptr;
}
};
class linked_list {
public:
int num_nodes;
node * head;
linked_list() { num_nodes = 0; head = nullptr; }
void make_list(int m, int n)... | 18.398148 | 77 | 0.582285 | yyuze |
e9dd9a46848f0f3f47fc70bc85efc6d2d997722e | 1,340 | cpp | C++ | Creational/FactoryMethod/factory_method.cpp | AhmedShaban94/design_patterns_cpp | 1b630afd5130bc2b0a34b03c0e10870e727c5028 | [
"MIT"
] | null | null | null | Creational/FactoryMethod/factory_method.cpp | AhmedShaban94/design_patterns_cpp | 1b630afd5130bc2b0a34b03c0e10870e727c5028 | [
"MIT"
] | null | null | null | Creational/FactoryMethod/factory_method.cpp | AhmedShaban94/design_patterns_cpp | 1b630afd5130bc2b0a34b03c0e10870e727c5028 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
struct Product
{
Product() = default;
virtual ~Product() = default;
virtual void operation() = 0;
};
struct ConcreteProduct1 : public Product
{
ConcreteProduct1() = default;
~ConcreteProduct1() = default;
void operation() override
{
... | 19.142857 | 57 | 0.647015 | AhmedShaban94 |
e9dfd9721911c42e5cdd1e0920017bcd76d8743c | 31,774 | cpp | C++ | co-op/Sidetrack.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 67 | 2018-03-02T10:50:02.000Z | 2022-03-23T18:20:29.000Z | co-op/Sidetrack.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | null | null | null | co-op/Sidetrack.cpp | BartoszMilewski/CodeCoop | 7d29f53ccf65b0d29ea7d6781a74507b52c08d0d | [
"MIT"
] | 9 | 2018-03-01T16:38:28.000Z | 2021-03-02T16:17:09.000Z | //-----------------------------------
// (c) Reliable Software, 2004 - 2008
//-----------------------------------
#include "precompiled.h"
#undef DBG_LOGGING
#define DBG_LOGGING false
#include "Sidetrack.h"
#include "ProjectDb.h"
#include "PathFind.h"
#include "ScriptCommands.h"
#include "ScriptList.h"
#include "Scr... | 31.64741 | 151 | 0.689117 | BartoszMilewski |
e9e1202b0943872d66e821932e6d72e5f341754c | 413 | hpp | C++ | src/cameras/PinHoleCamera.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | 1 | 2016-05-05T10:20:45.000Z | 2016-05-05T10:20:45.000Z | src/cameras/PinHoleCamera.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | null | null | null | src/cameras/PinHoleCamera.hpp | sophia-x/RayTracing | 1092971b08ff17e8642e408e2cb0c518d6591e2b | [
"MIT"
] | null | null | null | #ifndef PIN_HOLE_CAMERA
#define PIN_HOLE_CAMERA
#include "basic_camera.hpp"
#include "../common.hpp"
class PinHoleCamera: public BasicCamera {
public:
PinHoleCamera(const vec3 &position, const vec3 &direction, const vec3 &up,
float fov, float radio): BasicCamera(position, direction, up, fov, radio) {}... | 27.533333 | 92 | 0.731235 | sophia-x |
e9eb7a6f38cb01349538022420abb825929240c3 | 4,277 | cpp | C++ | tests/ysfx_test_serialization.cpp | nlaroche/ysfx | abf4d54aa70031d6d57af949aa6f1919997b5ab9 | [
"Apache-2.0"
] | 41 | 2021-11-10T18:03:58.000Z | 2022-03-24T08:33:40.000Z | tests/ysfx_test_serialization.cpp | nlaroche/ysfx | abf4d54aa70031d6d57af949aa6f1919997b5ab9 | [
"Apache-2.0"
] | 38 | 2021-11-12T01:58:06.000Z | 2022-03-21T15:24:34.000Z | tests/ysfx_test_serialization.cpp | nlaroche/ysfx | abf4d54aa70031d6d57af949aa6f1919997b5ab9 | [
"Apache-2.0"
] | 5 | 2021-11-16T20:29:20.000Z | 2021-12-31T16:39:21.000Z | // Copyright 2021 Jean Pierre Cimalando
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 38.1875 | 76 | 0.580547 | nlaroche |
e9f4979a606d95d5b83907bd3a8cf11139661426 | 1,227 | hpp | C++ | MLPP/Regularization/Reg.hpp | KangLin/MLPP | abd2dba6076c98aa2e1c29fb3198b74a3f28f8fe | [
"MIT"
] | 927 | 2021-12-03T07:02:25.000Z | 2022-03-30T07:37:23.000Z | MLPP/Regularization/Reg.hpp | DJofOUC/MLPP | 6940fc1fbcb1bc16fe910c90a32d9e4db52e264f | [
"MIT"
] | 7 | 2022-02-13T22:38:08.000Z | 2022-03-07T01:00:32.000Z | MLPP/Regularization/Reg.hpp | DJofOUC/MLPP | 6940fc1fbcb1bc16fe910c90a32d9e4db52e264f | [
"MIT"
] | 132 | 2022-01-13T02:19:04.000Z | 2022-03-23T19:23:56.000Z | //
// Reg.hpp
//
// Created by Marc Melikyan on 1/16/21.
//
#ifndef Reg_hpp
#define Reg_hpp
#include <vector>
namespace MLPP{
class Reg{
public:
double regTerm(std::vector<double> weights, double lambda, double alpha, std::string reg);
double regTerm(std::vector<std::ve... | 38.34375 | 144 | 0.651997 | KangLin |
e9f5c083456cabba514de474e3fcfdbd1dcd8dbc | 7,197 | cpp | C++ | libs/geometry/example_extensions/gis/latlong/distance_example.cpp | juslee/boost-svn | 6d5a03c1f5ed3e2b23bd0f3ad98d13ff33d4dcbb | [
"BSL-1.0"
] | 1 | 2016-07-03T22:12:18.000Z | 2016-07-03T22:12:18.000Z | libs/geometry/extensions/example/gis/latlong/distance_example.cpp | graehl/boost | 37cc4ca77896a86ad10e90dc03e1e825dc0d5492 | [
"BSL-1.0"
] | null | null | null | libs/geometry/extensions/example/gis/latlong/distance_example.cpp | graehl/boost | 37cc4ca77896a86ad10e90dc03e1e825dc0d5492 | [
"BSL-1.0"
] | null | null | null | // Boost.Geometry (aka GGL, Generic Geometry Library)
//
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Use, modification and distribution is subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt ... | 48.302013 | 168 | 0.572461 | juslee |
e9fb5634c93b4da28a887ebed0579a4950745d6e | 82,500 | hpp | C++ | src/tree_for_force_utils2.hpp | Guo-astro/Simulations | 55c04dd1811993ef4099ea009af89fbd265c4241 | [
"MIT"
] | null | null | null | src/tree_for_force_utils2.hpp | Guo-astro/Simulations | 55c04dd1811993ef4099ea009af89fbd265c4241 | [
"MIT"
] | null | null | null | src/tree_for_force_utils2.hpp | Guo-astro/Simulations | 55c04dd1811993ef4099ea009af89fbd265c4241 | [
"MIT"
] | null | null | null | namespace ParticleSimulator{
///////////////////////////////
// small functions for dispatch
template<class Ttc>
inline F64ort GetOuterBoundaryOfMyTree(TagSearchLong,
const ReallocatableArray<Ttc> & tc_first){
return F64ort(-1234.5, -9876.5);
}
templa... | 47.632794 | 169 | 0.487164 | Guo-astro |
e9fd7bfd82928bd139c42b4c05ae96b8ec947960 | 6,591 | hh | C++ | kenlm/util/sized_iterator.hh | cmedlock/deepspeech.pytorch | 7f0dbcdb3bcc41992136ebedfcd3e7d6fdb256d1 | [
"MIT"
] | 111 | 2020-08-31T04:58:54.000Z | 2022-03-29T15:44:18.000Z | Part 02/001_LM/ngram_lm_lab/kenlm/util/sized_iterator.hh | Kabongosalomon/AMMI-NLP | 00a0e47399926ad1951b84a11cd936598a9c7c3b | [
"MIT"
] | 14 | 2020-12-16T07:27:22.000Z | 2022-03-15T17:39:01.000Z | Part 02/001_LM/ngram_lm_lab/kenlm/util/sized_iterator.hh | Kabongosalomon/AMMI-NLP | 00a0e47399926ad1951b84a11cd936598a9c7c3b | [
"MIT"
] | 29 | 2021-02-09T08:57:15.000Z | 2022-03-12T14:09:19.000Z | #ifndef UTIL_SIZED_ITERATOR_H
#define UTIL_SIZED_ITERATOR_H
#include "util/pool.hh"
#include "util/proxy_iterator.hh"
#include <algorithm>
#include <functional>
#include <string>
#include <stdint.h>
#include <cstring>
#include <stdlib.h>
namespace util {
class SizedInnerIterator {
public:
SizedInnerIterator... | 30.513889 | 139 | 0.676984 | cmedlock |
18006c47b751a8c47ef3b39add71b44b8cf6c960 | 1,012 | cpp | C++ | src/dev/java_helper/java_helper_tools.cpp | rDSN-Projects/rDSN.Java | c6eacde9aa0ecaecba428f207bcfff8ae7d9ae40 | [
"MIT"
] | null | null | null | src/dev/java_helper/java_helper_tools.cpp | rDSN-Projects/rDSN.Java | c6eacde9aa0ecaecba428f207bcfff8ae7d9ae40 | [
"MIT"
] | null | null | null | src/dev/java_helper/java_helper_tools.cpp | rDSN-Projects/rDSN.Java | c6eacde9aa0ecaecba428f207bcfff8ae7d9ae40 | [
"MIT"
] | null | null | null | # include "java_helper_header.h"
JavaVM *g_vm;
jstring chartojstring(JNIEnv* env, const char* str)
{
jclass clazz = env->FindClass("Ljava/lang/String;");
jmethodID method = env->GetMethodID(clazz, "<init>", "([BLjava/lang/String;)V");
jbyteArray bytes = env->NewByteArray(strlen(str));
env->SetByteArra... | 28.914286 | 84 | 0.666008 | rDSN-Projects |
18046dc82f6eee1f946f1f072883d35beecb53eb | 16,987 | cc | C++ | wrappers/8.1.1/vtkRIBExporterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 6 | 2016-02-03T12:48:36.000Z | 2020-09-16T15:07:51.000Z | wrappers/8.1.1/vtkRIBExporterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | 4 | 2016-02-13T01:30:43.000Z | 2020-03-30T16:59:32.000Z | wrappers/8.1.1/vtkRIBExporterWrap.cc | axkibe/node-vtk | 900ad7b5500f672519da5aa24c99aa5a96466ef3 | [
"BSD-3-Clause"
] | null | null | null | /* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */
#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>
#include "vtkExporterWrap.h"
#include "vtkRIBExporterWrap.h"
#include "vtkObjectBaseWrap.h"
#include "../../plus/plus.h"
using namespace v8;
extern Nan... | 29.087329 | 106 | 0.705657 | axkibe |
180d6898b409dbd7c4d2c69a68f523dc8df16e68 | 1,391 | cpp | C++ | src/buffer/lru_replacer.cpp | Laotan0926/cmu14445 | 48216418bbf0d38836a619530c5eca29cde31f32 | [
"MIT"
] | 6 | 2022-01-07T05:23:54.000Z | 2022-03-07T10:50:13.000Z | src/buffer/lru_replacer.cpp | Laotan0926/cmu14445 | 48216418bbf0d38836a619530c5eca29cde31f32 | [
"MIT"
] | null | null | null | src/buffer/lru_replacer.cpp | Laotan0926/cmu14445 | 48216418bbf0d38836a619530c5eca29cde31f32 | [
"MIT"
] | 1 | 2022-02-15T17:16:54.000Z | 2022-02-15T17:16:54.000Z | //===----------------------------------------------------------------------===//
//
// BusTub
//
// lru_replacer.cpp
//
// Identification: src/buffer/lru_replacer.cpp
//
// Copyright (c) 2015-2019, Carnegie Mellon University Database Group
//
//===------------------------------------------------... | 24.403509 | 80 | 0.61179 | Laotan0926 |
180fb61fa18a04a51e84b6a537362f6a2172e660 | 846 | tcc | C++ | src/scope.tcc | unbornchikken/reflect-cpp | 1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f | [
"BSD-2-Clause"
] | 45 | 2015-03-24T09:35:46.000Z | 2021-05-06T11:50:34.000Z | src/scope.tcc | unbornchikken/reflect-cpp | 1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f | [
"BSD-2-Clause"
] | null | null | null | src/scope.tcc | unbornchikken/reflect-cpp | 1a9a3d107c952406d3b7cae4bc5a6a23d566ea4f | [
"BSD-2-Clause"
] | 11 | 2015-01-27T12:08:21.000Z | 2020-08-29T16:34:13.000Z | /* scope.tcc -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 17 Apr 2014
FreeBSD-style copyright and disclaimer apply
Template implementation of Scope
*/
#include "reflect.h"
#pragma once
namespace reflect {
/*******************************************************************... | 24.882353 | 80 | 0.470449 | unbornchikken |
181039bdcdc4ddaa1aa456f388257407d896b3d3 | 54 | cpp | C++ | conan/freeimage/test_package/example.cpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | conan/freeimage/test_package/example.cpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | null | null | null | conan/freeimage/test_package/example.cpp | icebreakersentertainment/ice_engine | 52a8313bc266c053366bdf554b5dc27a54ddcb25 | [
"MIT"
] | 1 | 2019-06-11T03:41:48.000Z | 2019-06-11T03:41:48.000Z | #include <FreeImage.h>
int main() {
// hello();
}
| 9 | 22 | 0.537037 | icebreakersentertainment |
18185a59d238c48ce052e29c49f27dadbec7c7a0 | 7,265 | cpp | C++ | src/Residue.cpp | gjoni/iPot | 9af44ed4fe1121933f5c936b2608ace0d293ad87 | [
"MIT"
] | 4 | 2018-09-20T18:14:16.000Z | 2022-01-13T06:11:20.000Z | src/Residue.cpp | gjoni/iPot | 9af44ed4fe1121933f5c936b2608ace0d293ad87 | [
"MIT"
] | null | null | null | src/Residue.cpp | gjoni/iPot | 9af44ed4fe1121933f5c936b2608ace0d293ad87 | [
"MIT"
] | 1 | 2022-02-15T12:53:44.000Z | 2022-02-15T12:53:44.000Z | /*
* Residue.cpp
*
* Created on: Jun 3, 2014
* Author: ivan
*/
#include "Residue.h"
#include "Info.h"
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <new>
#include <map>
Residue::Residue() :
type(23), seqNum(-1), insCode(' '), atom(NULL), nAtoms(0), chainId(' '), ntF... | 22.082067 | 82 | 0.560496 | gjoni |
1818fc9d14259654e79785c99a237a4ae283249c | 1,595 | hpp | C++ | src/hackflight.hpp | sujanabasnet/Hackflight | 98d0f0dee07dbddd81c63bd1997e845ca244106f | [
"MIT"
] | null | null | null | src/hackflight.hpp | sujanabasnet/Hackflight | 98d0f0dee07dbddd81c63bd1997e845ca244106f | [
"MIT"
] | null | null | null | src/hackflight.hpp | sujanabasnet/Hackflight | 98d0f0dee07dbddd81c63bd1997e845ca244106f | [
"MIT"
] | 2 | 2021-05-17T21:12:24.000Z | 2021-05-17T21:18:11.000Z | /*
Hackflight core algorithm
Copyright (c) 2020 Simon D. Levy
MIT License
*/
#pragma once
#include <RFT_board.hpp>
#include "receiver.hpp"
#include "state.hpp"
#include "serialtask.hpp"
#include "actuators/mixer.hpp"
#include <RFT_sensor.hpp>
#include <RFT_filters.hpp>
#include <RoboFirmwareToolkit.hp... | 20.448718 | 89 | 0.521003 | sujanabasnet |
1819bef4fb090957ea798650c259890669cff1cf | 12,483 | cpp | C++ | aztec/src/ResourceManager.cpp | viccsneto/aztec | a49e269c53f19d2de22f0d297908c917f36c658d | [
"MIT"
] | null | null | null | aztec/src/ResourceManager.cpp | viccsneto/aztec | a49e269c53f19d2de22f0d297908c917f36c658d | [
"MIT"
] | null | null | null | aztec/src/ResourceManager.cpp | viccsneto/aztec | a49e269c53f19d2de22f0d297908c917f36c658d | [
"MIT"
] | null | null | null | #include "ResourceManager.h"
#include "EventDispatcher.h"
#include "GameEngine.h"
#include <SFML/Graphics.hpp>
#include <math.h>
#include "Keyboard.h"
#define CHARACTERS_PER_LINE 16
#define CHARACTER_BORDER_WIDTH 8
#define FONT_DEFINITION_FORMAT_STRING "%s_%d"
namespace Aztec {
list<RESFont *> ResourceManager:... | 26.787554 | 176 | 0.601538 | viccsneto |
1821350eb94cef954c4cc114b543fd285b1ef04d | 754 | cpp | C++ | src/engine/mem.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/engine/mem.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/engine/mem.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
// mem.c
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include "mem.h"
void *Mem_Malloc( size_t size )
{... | 15.708333 | 81 | 0.55305 | DeadZoneLuna |
1825fffe81a62a55f6e3b103fce4995bec44f1b9 | 7,458 | cpp | C++ | lib/src/Listbox.cpp | JPGygax68/libCppGUI | 9484b6b4e544a522019276fcd49eb8495b04e60d | [
"Apache-2.0"
] | 2 | 2017-03-28T14:11:47.000Z | 2021-05-31T07:31:43.000Z | lib/src/Listbox.cpp | JPGygax68/libCppGUI | 9484b6b4e544a522019276fcd49eb8495b04e60d | [
"Apache-2.0"
] | null | null | null | lib/src/Listbox.cpp | JPGygax68/libCppGUI | 9484b6b4e544a522019276fcd49eb8495b04e60d | [
"Apache-2.0"
] | 1 | 2021-05-31T07:31:44.000Z | 2021-05-31T07:31:44.000Z | #include <cassert>
#include <layouting.hpp>
#include <Listbox.hpp>
#include <iostream>
namespace cppgui {
// Private implementation of Content_pane contract ------------------------
class Listbox_content_pane: public Content_pane
{
public:
void render(Canvas *, const Point &offs) override;
... | 26.260563 | 105 | 0.550684 | JPGygax68 |
1827c1c2317b427b2ccb1c8cf5e7b8a5f2520754 | 966 | cc | C++ | below2.1/semafori.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/semafori.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below2.1/semafori.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <utility>
using namespace std;
int main(){
int tl,roadln;
cin>>tl>>roadln;
pair <int, pair <int, int > > arr[tl];
for (int i = 0; i < tl; i++)
{
cin>>arr[i].first>>arr[i].second.first>>arr[i].second.second;
}
int pos = 0;
int time = 0;
int lightt... | 22.465116 | 107 | 0.452381 | danzel-py |
1829603fce04e00450459529dc7964ebda915dac | 1,081 | cpp | C++ | Sid's Contests/LeetCode contests/May Challenge/Maximum Points You Can Obtain From Cards.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Contests/LeetCode contests/May Challenge/Maximum Points You Can Obtain From Cards.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Contests/LeetCode contests/May Challenge/Maximum Points You Can Obtain From Cards.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
int maxScore(vector<int>& cardPoints, int k) {
//OM GAN GANAPATHAYE NAMO NAMAH
//JAI SHRI RAM
//JAI BAJRANGBALI
//AMME NARAYANA, DEVI NARAYANA, LAKSHMI NARAYANA, BHADRE NARAYANA
int l = 0, r = 0;
int left = 0, right = cardPoints.size() - 1;
... | 29.216216 | 73 | 0.438483 | Tiger-Team-01 |
18323bea91dff0987af7867a5f2e06f8622d5e26 | 20,325 | cpp | C++ | ee21/marker/marker_07_real.cpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/marker/marker_07_real.cpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | ee21/marker/marker_07_real.cpp | ygor-rezende/Expression-Evaluator | 52868ff11ce72a4ae6fa9a4052005c02f8485b3c | [
"FTL"
] | null | null | null | /*! \file marker_07_real.cpp
\brief Expression Evaluator marking application.
\author Garth Santor
\date 2021-11-07
\copyright Garth Santor
=============================================================
Revision History
-------------------------------------------------------------
Version 2021.11.07
Alpha release... | 41.060606 | 184 | 0.72674 | ygor-rezende |
1833a34afcf9a1da8872337affe638e9884a25f5 | 2,819 | cpp | C++ | ext/common/Logging.cpp | bf4/passenger | 0369eb329ea587d2a662cadd169f196081e81c7a | [
"MIT"
] | null | null | null | ext/common/Logging.cpp | bf4/passenger | 0369eb329ea587d2a662cadd169f196081e81c7a | [
"MIT"
] | null | null | null | ext/common/Logging.cpp | bf4/passenger | 0369eb329ea587d2a662cadd169f196081e81c7a | [
"MIT"
] | null | null | null | /*
* Phusion Passenger - https://www.phusionpassenger.com/
* Copyright (c) 2010-2013 Phusion
*
* "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | 27.910891 | 83 | 0.674707 | bf4 |
1836389bbd6371175d9ce813221b55602f9ef73e | 151 | cpp | C++ | src/av2/p22.cpp | finki-mk/SP | da1fffce9ba1096283f54ffa6a175b01900c335c | [
"MIT"
] | 15 | 2017-02-09T11:50:08.000Z | 2022-03-20T13:26:26.000Z | src/av2/p22.cpp | finki-mk/SP | da1fffce9ba1096283f54ffa6a175b01900c335c | [
"MIT"
] | 3 | 2016-10-13T18:46:05.000Z | 2020-10-13T16:29:16.000Z | src/av2/p22.cpp | finki-mk/SP | da1fffce9ba1096283f54ffa6a175b01900c335c | [
"MIT"
] | 6 | 2016-11-20T22:04:24.000Z | 2021-02-01T15:56:22.000Z | #include <iostream>
using namespace std;
int main() {
int x = 7;
cout << "Brojot " << x << " na kvadrat e " << x * x << endl;
return 0;
}
| 16.777778 | 64 | 0.516556 | finki-mk |
183a1c46b287179b3ca7ce1a827fb839dccbda0f | 4,750 | cpp | C++ | 2018/cpp/src/day07.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | 1 | 2021-12-04T20:55:02.000Z | 2021-12-04T20:55:02.000Z | 2018/cpp/src/day07.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | 2018/cpp/src/day07.cpp | Chrinkus/advent-of-code | b2ae137dc7a1d6fc9e20f29549e891404591c47f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <list>
#include <algorithm>
#include <numeric>
#include <regex>
#include <get_input.hpp>
struct Step {
char prereq;
char step_token;
};
std::ostream& operator<<(std::ostream& os, const Step& s)
{
return os << "Do " << s.prereq << " before "... | 25.132275 | 79 | 0.547579 | Chrinkus |
183d0fcdf8aeb559d88283843a6e3ad892d7f213 | 5,290 | cpp | C++ | Modules/MitkExt/DataManagement/mitkSphereLandmarkProjector.cpp | rfloca/MITK | b7dcb830dc36a5d3011b9828c3d71e496d3936ad | [
"BSD-3-Clause"
] | null | null | null | Modules/MitkExt/DataManagement/mitkSphereLandmarkProjector.cpp | rfloca/MITK | b7dcb830dc36a5d3011b9828c3d71e496d3936ad | [
"BSD-3-Clause"
] | null | null | null | Modules/MitkExt/DataManagement/mitkSphereLandmarkProjector.cpp | rfloca/MITK | b7dcb830dc36a5d3011b9828c3d71e496d3936ad | [
"BSD-3-Clause"
] | null | null | null | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 33.27044 | 122 | 0.680529 | rfloca |
1848098486ffd236fa484d6711b5f1ca9e350b61 | 2,503 | cpp | C++ | src-qt5/core-utils/lumina-search/ConfigUI.cpp | q5sys/lumina | d3654eb6a83d7f8aad5530ba10816a245c9f55b3 | [
"BSD-3-Clause"
] | 246 | 2018-04-13T20:07:34.000Z | 2022-03-29T01:33:37.000Z | src-qt5/core-utils/lumina-search/ConfigUI.cpp | q5sys/lumina | d3654eb6a83d7f8aad5530ba10816a245c9f55b3 | [
"BSD-3-Clause"
] | 332 | 2016-06-21T13:37:10.000Z | 2018-04-06T13:06:41.000Z | src-qt5/core-utils/lumina-search/ConfigUI.cpp | q5sys/lumina | d3654eb6a83d7f8aad5530ba10816a245c9f55b3 | [
"BSD-3-Clause"
] | 69 | 2018-04-12T15:46:09.000Z | 2022-03-20T21:21:45.000Z | // Copyright (c) 2015, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#include "ConfigUI.h"
#include "ui_ConfigUI.h"
#include <QFileDialog>
#include <QListWidget>
#include <QListWidgetItem>
#include <QListView>
#include <Q... | 29.447059 | 106 | 0.693168 | q5sys |
184ba034c9ba55d92a0d8e452d79a92ec6ccc340 | 9,629 | cpp | C++ | src/src/touchpad.cpp | JyeSmith/rx5808-pro-diversity | 7d29ef47afccbe674dac49744b397f5c1c913757 | [
"MIT"
] | 63 | 2018-09-05T11:57:29.000Z | 2022-02-18T06:59:41.000Z | src/src/touchpad.cpp | JyeSmith/rx5808-pro-diversity | 7d29ef47afccbe674dac49744b397f5c1c913757 | [
"MIT"
] | 2 | 2022-01-04T22:28:27.000Z | 2022-03-20T03:46:40.000Z | src/src/touchpad.cpp | JyeSmith/rx5808-pro-diversity | 7d29ef47afccbe674dac49744b397f5c1c913757 | [
"MIT"
] | 5 | 2018-11-06T00:56:32.000Z | 2021-01-24T13:00:48.000Z | #include <Arduino.h>
#include "ui.h"
#include "channels.h"
#include "receiver.h"
#include "settings.h"
#include "settings_eeprom.h"
#include "touchpad.h"
//// Cirque's 7-bit I2C Slave Address
//#define TOUCHPAD_SLAVE_ADDR 0x2A
// Masks for Cirque Register Access Protocol (RAP)
#define TOUCHPAD_WRITE_MASK 0x80
#def... | 29.627692 | 106 | 0.525392 | JyeSmith |
184d39ab016eb1247371cdd0e7f3d52e7518e5b1 | 301 | cpp | C++ | LR/SLRUtils.cpp | jhxqy/LL-1-analyzer | ccd299a84e5698044a852be8c6fce7d6f655778b | [
"MIT"
] | 2 | 2020-11-11T14:44:01.000Z | 2020-12-20T12:39:18.000Z | LR/SLRUtils.cpp | jhxqy/LL-SLR-analyzer | ccd299a84e5698044a852be8c6fce7d6f655778b | [
"MIT"
] | null | null | null | LR/SLRUtils.cpp | jhxqy/LL-SLR-analyzer | ccd299a84e5698044a852be8c6fce7d6f655778b | [
"MIT"
] | null | null | null | //
// SLRUtils.cpp
// LR
//
// Created by 贾皓翔 on 2019/9/18.
// Copyright © 2019 贾皓翔. All rights reserved.
//
#include "SLRUtils.hpp"
std::unordered_set<int> Sequence(int from,int to){
std::unordered_set<int> res;
for(int i=from;i<=to;i++){
res.insert(i);
}
return res;
}
| 16.722222 | 50 | 0.598007 | jhxqy |
4c76a8d67538cd5144cc96f4660164b0f45b9ce3 | 2,215 | hpp | C++ | include/sprout/rational/literals.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/sprout/rational/literals.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | include/sprout/rational/literals.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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)
==... | 30.763889 | 79 | 0.665011 | thinkoid |
4c7801bee82fb2529d9b945733a293a14fc940e2 | 892 | cpp | C++ | Semester1/Test3/3.3.2/3.3.2/3.3.2.cpp | yuniyakim/Homework | 21f879fe16d75003cfcc142dd6874bde1279b70c | [
"Apache-2.0"
] | 1 | 2019-03-30T17:45:08.000Z | 2019-03-30T17:45:08.000Z | Semester1/Test3/3.3.2/3.3.2/3.3.2.cpp | yuniyakim/Homework | 21f879fe16d75003cfcc142dd6874bde1279b70c | [
"Apache-2.0"
] | 2 | 2019-04-13T14:23:47.000Z | 2020-06-07T01:35:00.000Z | Semester1/Test3/3.3.2/3.3.2/3.3.2.cpp | yuniyakim/Homework | 21f879fe16d75003cfcc142dd6874bde1279b70c | [
"Apache-2.0"
] | 1 | 2019-04-12T14:34:20.000Z | 2019-04-12T14:34:20.000Z | #include "pch.h"
#include <iostream>
#include <fstream>
#include "restaurant.h"
#include "test.h"
using namespace std;
int main()
{
test();
ifstream file("3.3.2.txt", ios::in);
if (!file.is_open())
{
cout << "File not found" << endl;
return 1;
}
int maxHour = readAndSummarize(file);
if (maxHour == -2)
... | 22.871795 | 140 | 0.707399 | yuniyakim |
4c7b064d7dcdf4c5a1fe76d607d257f75590ce67 | 2,669 | cpp | C++ | src/proto/unit_test/helpers_test.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 194 | 2016-07-19T15:40:21.000Z | 2022-03-19T08:06:10.000Z | src/proto/unit_test/helpers_test.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 1,021 | 2016-07-19T12:56:31.000Z | 2022-03-29T00:41:47.000Z | src/proto/unit_test/helpers_test.cpp | jonesholger/lbann | 3214f189a1438565d695542e076c4fa8e7332d34 | [
"Apache-2.0"
] | 74 | 2016-07-28T18:24:00.000Z | 2022-01-24T19:41:04.000Z | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2021, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (B. Van Essen, et al.) listed in
// the CONTRIBUTORS file. <lbann-dev@l... | 32.156627 | 80 | 0.675159 | jonesholger |
4c9abf4989ce06dd1f643db4ad2807f08b689297 | 2,332 | hpp | C++ | include/boost/hana/take.hpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | 2 | 2015-12-06T05:10:14.000Z | 2021-09-05T21:48:27.000Z | include/boost/hana/take.hpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | null | null | null | include/boost/hana/take.hpp | qicosmos/hana | b0f8cf2bf19d491b7b739dcb7b8d7497b0e5829f | [
"BSL-1.0"
] | 1 | 2017-06-06T10:50:17.000Z | 2017-06-06T10:50:17.000Z | /*!
@file
Defines `boost::hana::take` and `boost::hana::take_c`.
@copyright Louis Dionne 2015
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_TAKE_HPP
#define BOOST_HANA_TAKE_HPP
#include <boost/hana/fwd/... | 31.093333 | 79 | 0.634648 | qicosmos |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.