hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa8e712b7b0e6b54a17e5b31de3357c0df06dd91 | 1,488 | cpp | C++ | sha3/main.cpp | skapix/sha3 | 6cbec1d0cf6eebe3ce4182da303d70c741cae30c | [
"MIT"
] | 7 | 2018-11-21T20:33:05.000Z | 2022-03-21T16:47:33.000Z | sha3/main.cpp | skapix/sha3 | 6cbec1d0cf6eebe3ce4182da303d70c741cae30c | [
"MIT"
] | null | null | null | sha3/main.cpp | skapix/sha3 | 6cbec1d0cf6eebe3ce4182da303d70c741cae30c | [
"MIT"
] | 4 | 2018-08-30T14:17:45.000Z | 2021-12-03T23:54:39.000Z | #include <iostream>
#include <fstream>
#include <vector>
#include <cassert>
#include <cstdint>
#include <CLI/CLI.hpp>
#include "util.h"
#include "sha3_cpu.h"
#include "sha3_gpu.h"
template<typename T>
std::vector<uint8_t> doCalculation(std::istream &is, size_t digestSize, size_t bufSize)
{
T s(digestSize);
std::v... | 21.882353 | 89 | 0.638441 | skapix |
aa8f09e170bee1bcb8708673be76fff5cccd3c10 | 57 | cpp | C++ | src/stb_image.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | src/stb_image.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | src/stb_image.cpp | MickAlmighty/StudyOpenGL | aebebc9e89cca5a00569e7c5876045e36eed0c3b | [
"MIT"
] | null | null | null | #define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h" | 28.5 | 34 | 0.824561 | MickAlmighty |
aa955910105940546d3c77a4ed6a0647aec689f1 | 3,373 | cpp | C++ | src/autowiring/CoreThreadMac.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | src/autowiring/CoreThreadMac.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | src/autowiring/CoreThreadMac.cpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2012-2018 Leap Motion, Inc. All rights reserved.
#include "stdafx.h"
#include "BasicThread.h"
#include "BasicThreadStateBlock.h"
#include <pthread.h>
#include <libproc.h>
#include <mach/thread_info.h>
#include <mach/thread_act.h>
#include <sys/proc_info.h>
#include <sys/sysctl.h>
#include <sys/types.h>... | 30.944954 | 145 | 0.752149 | CaseyCarter |
aa95867ef96c61515f5499d55034234deded6767 | 230 | cpp | C++ | 3rdparty/build_opencv-4.5.2/modules/core/test/test_intrin128.avx512_skx.cpp | LordOfTheUnicorn/trdrop | 6da4bf1528878e90cf14232dfb4adeec3458ee0f | [
"MIT"
] | null | null | null | 3rdparty/build_opencv-4.5.2/modules/core/test/test_intrin128.avx512_skx.cpp | LordOfTheUnicorn/trdrop | 6da4bf1528878e90cf14232dfb4adeec3458ee0f | [
"MIT"
] | 7 | 2021-05-24T22:57:32.000Z | 2021-08-23T05:32:30.000Z | 3rdparty/build_opencv-4.5.2/modules/core/test/test_intrin128.ssse3.cpp | LordOfTheUnicorn/trdrop | 6da4bf1528878e90cf14232dfb4adeec3458ee0f | [
"MIT"
] | null | null | null |
#include "/Users/unicorn1343/Documents/GitHub/trdrop/3rdParty/opencv-4.5.2/modules/core/test/test_precomp.hpp"
#include "/Users/unicorn1343/Documents/GitHub/trdrop/3rdParty/opencv-4.5.2/modules/core/test/test_intrin128.simd.hpp"
| 57.5 | 117 | 0.817391 | LordOfTheUnicorn |
aa9ccf96cd9a53939bba1cd4e5e5c7e3d4490733 | 2,977 | hpp | C++ | libs/core/render/include/bksge/core/render/inl/texture_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/render/include/bksge/core/render/inl/texture_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/render/include/bksge/core/render/inl/texture_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file texture_inl.hpp
*
* @brief Texture の実装
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_RENDER_INL_TEXTURE_INL_HPP
#define BKSGE_CORE_RENDER_INL_TEXTURE_INL_HPP
#include <bksge/core/render/texture.hpp>
#include <bksge/fnd/memory/make_shared.hpp>
#include <bksge/fnd/assert.hpp>
#include <bks... | 20.114865 | 100 | 0.689956 | myoukaku |
aaa0dbc846b98e467f10b4031a968212b5c1ab91 | 1,054 | cpp | C++ | src/JImage.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | src/JImage.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | 6 | 2021-10-16T07:10:04.000Z | 2021-12-26T13:23:54.000Z | src/JImage.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | //
// Image.cpp
// Bas
//
// Created by Jildert Viet on 18-03-16.
//
//
#include "JImage.hpp"
JImage::JImage(string filename, ofVec2f loc){
this->loc = loc;
setType("JImage");
bLoadSucces = loadImage(filename);
colors[0] = ofColor(255,255);
}
void JImage::display(){
if(... | 19.518519 | 63 | 0.510436 | jildertviet |
aaa30d9fb2ce3aae39446a6b72d2bbb40b24d528 | 9,370 | cc | C++ | Mozc-for-iOS/src/renderer/renderer_style_handler.cc | spanfish/JapaneseKeyboard | 84fa7ef799d145fb9897b6e86bc7bc50610ccb2b | [
"Apache-2.0"
] | 33 | 2015-01-21T09:50:21.000Z | 2022-02-12T15:18:25.000Z | Mozc-for-iOS/src/renderer/renderer_style_handler.cc | spanfish/JapaneseKeyboard | 84fa7ef799d145fb9897b6e86bc7bc50610ccb2b | [
"Apache-2.0"
] | 1 | 2019-03-08T08:07:14.000Z | 2019-03-08T08:07:14.000Z | Mozc-for-iOS/src/renderer/renderer_style_handler.cc | spanfish/JapaneseKeyboard | 84fa7ef799d145fb9897b6e86bc7bc50610ccb2b | [
"Apache-2.0"
] | 8 | 2015-06-08T15:57:25.000Z | 2019-05-15T08:52:58.000Z | // Copyright 2010-2014, Google Inc.
// 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... | 39.87234 | 77 | 0.768303 | spanfish |
aaa4ca36ed97af433734728240dc8aea930980f2 | 21,101 | cpp | C++ | src/planner/planners/MatchVariableLengthPatternIndexScanPlanner.cpp | nevermore3/nebula-graph | 6f24438289c2b20575bc6acdf607cd2a3648d30d | [
"Apache-2.0"
] | null | null | null | src/planner/planners/MatchVariableLengthPatternIndexScanPlanner.cpp | nevermore3/nebula-graph | 6f24438289c2b20575bc6acdf607cd2a3648d30d | [
"Apache-2.0"
] | null | null | null | src/planner/planners/MatchVariableLengthPatternIndexScanPlanner.cpp | nevermore3/nebula-graph | 6f24438289c2b20575bc6acdf607cd2a3648d30d | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2020 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "planner/planners/MatchVariableLengthPatternIndexScanPlanner.h"
#include <folly/String.h>
#include <algorithm>... | 41.619329 | 100 | 0.648927 | nevermore3 |
aaa4e343a803b91d7be91c16c80b30a6aac9a633 | 2,742 | cpp | C++ | Arcane/src/Arcane/Platform/OpenGL/Framebuffer/GBuffer.cpp | flygod1159/Arcane-Engine | bfb95cc6734a25e5737d4195c2b9e92e03117707 | [
"MIT"
] | 387 | 2016-10-04T03:30:38.000Z | 2022-03-31T15:42:29.000Z | Arcane/src/Arcane/Platform/OpenGL/Framebuffer/GBuffer.cpp | flygod1159/Arcane-Engine | bfb95cc6734a25e5737d4195c2b9e92e03117707 | [
"MIT"
] | 9 | 2017-04-04T04:23:47.000Z | 2020-07-11T05:05:54.000Z | Arcane/src/Arcane/Platform/OpenGL/Framebuffer/GBuffer.cpp | flygod1159/Arcane-Engine | bfb95cc6734a25e5737d4195c2b9e92e03117707 | [
"MIT"
] | 36 | 2017-07-02T07:11:40.000Z | 2022-03-08T01:49:24.000Z | #include "arcpch.h"
#include "GBuffer.h"
namespace Arcane
{
GBuffer::GBuffer(unsigned int width, unsigned int height) : Framebuffer(width, height, false) {
Init();
}
GBuffer::~GBuffer() {}
void GBuffer::Init() {
AddDepthStencilTexture(NormalizedDepthStencil);
Bind();
// Render Target 1
{
TextureSe... | 37.054054 | 124 | 0.78884 | flygod1159 |
aaa6da5ef96b6b36ca4a940e12ee7346d14b08ef | 1,783 | cpp | C++ | main.cpp | ikbo0217/glazkov_lab3_sem2 | eceb826eaa9aeeb5df148682a1398a2bed34bfe7 | [
"MIT"
] | null | null | null | main.cpp | ikbo0217/glazkov_lab3_sem2 | eceb826eaa9aeeb5df148682a1398a2bed34bfe7 | [
"MIT"
] | null | null | null | main.cpp | ikbo0217/glazkov_lab3_sem2 | eceb826eaa9aeeb5df148682a1398a2bed34bfe7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int pointState(int cx, int cy, int cr, int x, int y) {
int result = 0;
if(pow(x - cx, 2) + pow(y - cy, 2) == pow(cr, 2)) result = 2;
if(pow(x - cx, 2) + pow(y - cy, 2) < pow(cr, 2)) result = 1;
return result;
}
int quadrilateralState(int cx, in... | 18.572917 | 112 | 0.503085 | ikbo0217 |
aaa7e1bbfd48f2a710c27866bf1126ebd36d3a53 | 3,365 | cpp | C++ | Chess/Logger.cpp | DennisCorvers/ChessCPP | 3a2a4d72066aa0a913095fa0c645d18c6a56cf99 | [
"MIT"
] | 1 | 2021-08-15T17:50:33.000Z | 2021-08-15T17:50:33.000Z | Chess/Logger.cpp | DennisCorvers/ChessCPP | 3a2a4d72066aa0a913095fa0c645d18c6a56cf99 | [
"MIT"
] | null | null | null | Chess/Logger.cpp | DennisCorvers/ChessCPP | 3a2a4d72066aa0a913095fa0c645d18c6a56cf99 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Logger.hpp"
#include <iomanip>
#include <ctime>
Logger::Logger() :
m_loggerSeverity(LoggerSeverity::NONE)
{
initFile();
}
Logger::Logger(LoggerSeverity loggingOptions) :
m_loggerSeverity(loggingOptions)
{
initFile();
}
Logger::Logger(unsigned int loggingOptions) :
m_loggerSeverity(sta... | 21.03125 | 116 | 0.700446 | DennisCorvers |
aaa931a496fd6915947ae4b15cc7a6ed746c8d45 | 5,430 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/shared/qbs/src/lib/corelib/tools/launcherpackets.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | Src/shared/qbs/src/lib/corelib/tools/launcherpackets.cpp | kevinlq/QSD | b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a | [
"MIT"
] | null | null | null | Src/shared/qbs/src/lib/corelib/tools/launcherpackets.cpp | kevinlq/QSD | b618fc63dc3aa5a18701c5b23e3ea3cdd253e89a | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this fil... | 31.028571 | 94 | 0.710497 | kevinlq |
aaad34f2d74344a8c641f2b74145ceca9b30b093 | 938 | cpp | C++ | catchMain.cpp | skrtks/ft_containers_tests | a5044a4b559bbbd1292c6f5996dff4ed8b9b599f | [
"BSD-2-Clause"
] | null | null | null | catchMain.cpp | skrtks/ft_containers_tests | a5044a4b559bbbd1292c6f5996dff4ed8b9b599f | [
"BSD-2-Clause"
] | null | null | null | catchMain.cpp | skrtks/ft_containers_tests | a5044a4b559bbbd1292c6f5996dff4ed8b9b599f | [
"BSD-2-Clause"
] | 2 | 2021-02-25T14:25:21.000Z | 2021-11-24T11:32:23.000Z | /* ************************************************************************** */
/* */
/* :::::::: */
/* catchMain.cpp :+: :+: ... | 62.533333 | 80 | 0.158849 | skrtks |
aaada067b38f9be1a996c674c8ff8359931d902c | 8,322 | cpp | C++ | unit_tests/maths/matrix_tests.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | 28 | 2021-11-23T11:52:55.000Z | 2022-03-04T01:48:52.000Z | unit_tests/maths/matrix_tests.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | null | null | null | unit_tests/maths/matrix_tests.cpp | yangfengzzz/DigitalVox3 | c3277007d7cae90cf3f55930bf86119c93662493 | [
"MIT"
] | 3 | 2022-01-02T12:23:04.000Z | 2022-01-07T04:21:26.000Z | //
// matrix_tests.cpp
// unit_tests
//
// Created by 杨丰 on 2021/11/25.
//
#include "maths/matrix.h"
#include "gtest.h"
#include "gtest_helper.h"
#include "gtest_math_helper.h"
using vox::math::Float3;
using vox::math::Matrix;
using vox::math::Quaternion;
TEST(Matrix, multiply) {
const auto a = Matrix(1, 2,... | 32.255814 | 114 | 0.451214 | yangfengzzz |
aaae4cc2e61c02950c900c410a97b6c2ad46049c | 2,259 | cpp | C++ | src/Array.cpp | chnlkw/xuanwu | f796e9a851d8fad289ac5a625679e7db6c090a04 | [
"MIT"
] | 1 | 2018-04-09T01:45:17.000Z | 2018-04-09T01:45:17.000Z | src/Array.cpp | chnlkw/xuanwu | f796e9a851d8fad289ac5a625679e7db6c090a04 | [
"MIT"
] | null | null | null | src/Array.cpp | chnlkw/xuanwu | f796e9a851d8fad289ac5a625679e7db6c090a04 | [
"MIT"
] | 1 | 2020-04-14T03:39:20.000Z | 2020-04-14T03:39:20.000Z | //
// Created by chnlkw on 1/16/18.
//
#include "Array.h"
#include "DataCopy.h"
#include "Device.h"
#include "Allocator.h"
#include "Xuanwu.h"
#include "Ptr.h"
namespace Xuanwu {
ArrayBase::ArrayBase(size_t bytes, AllocatorPtr allocator)
: allocator_(allocator), bytes_(bytes), ptr_(allocator->Alloc(by... | 27.54878 | 105 | 0.578132 | chnlkw |
aab0500972a427259f69e429bb8ca96d7c2635e3 | 1,764 | hpp | C++ | drape/vulkan/vulkan_param_descriptor.hpp | sthirvela/organicmaps | 14885ba070ac9d1b7241ebb89eeefa46c9fdc1e4 | [
"Apache-2.0"
] | 3,062 | 2021-04-09T16:51:55.000Z | 2022-03-31T21:02:51.000Z | drape/vulkan/vulkan_param_descriptor.hpp | MAPSWorks/organicmaps | b5fef4b5954cb27153c0dafddd7eed3bfa0b1e7f | [
"Apache-2.0"
] | 1,396 | 2021-04-08T07:26:49.000Z | 2022-03-31T20:27:46.000Z | drape/vulkan/vulkan_param_descriptor.hpp | MAPSWorks/organicmaps | b5fef4b5954cb27153c0dafddd7eed3bfa0b1e7f | [
"Apache-2.0"
] | 242 | 2021-04-10T17:10:46.000Z | 2022-03-31T13:41:07.000Z | #pragma once
#include "drape/graphics_context.hpp"
#include "drape/vulkan/vulkan_gpu_program.hpp"
#include "drape/vulkan/vulkan_utils.hpp"
#include <array>
#include <cstdint>
#include <string>
#include <vector>
namespace dp
{
namespace vulkan
{
struct ParamDescriptor
{
enum class Type : uint8_t
{
DynamicUnif... | 21.512195 | 81 | 0.751134 | sthirvela |
82b5f4ab94f8152c0c6a2bedc0afdc21292b13f5 | 7,479 | cxx | C++ | main/chart2/source/view/main/PolarLabelPositionHelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/chart2/source/view/main/PolarLabelPositionHelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/chart2/source/view/main/PolarLabelPositionHelper.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* 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 file
* to y... | 40.427027 | 105 | 0.631234 | Grosskopf |
82b5f763483e02639ac4259a4c32820b43a85c6c | 1,012 | cpp | C++ | Solutions/Search for a Range/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | 1 | 2015-04-13T10:58:30.000Z | 2015-04-13T10:58:30.000Z | Solutions/Search for a Range/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | Solutions/Search for a Range/main.cpp | Crayzero/LeetCodeProgramming | b10ebe22c0de1501722f0f5c934c0c1902a26789 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> searchRange(int A[], int n, int target) {
vector<int> res(2,-1);
int left = 0;
int right = n-1;
while(left <= right) {
int mid = (left + right) / 2;
if (A[mid] ==... | 23 | 65 | 0.387352 | Crayzero |
82b7563d6cd6b6805824b8b4ae8f5dcff1882bbb | 878 | hpp | C++ | epoch/lucca_qt/include/lucca_qt/image/image_cache.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 47 | 2020-03-30T14:36:46.000Z | 2022-03-06T07:44:54.000Z | epoch/lucca_qt/include/lucca_qt/image/image_cache.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | null | null | null | epoch/lucca_qt/include/lucca_qt/image/image_cache.hpp | oprogramadorreal/vize | 042c16f96d8790303563be6787200558e1ec00b2 | [
"MIT"
] | 8 | 2020-04-01T01:22:45.000Z | 2022-01-02T13:06:09.000Z | #ifndef LUCCA_IMAGE_CACHE_HPP
#define LUCCA_IMAGE_CACHE_HPP
#include "lucca_qt/config.hpp"
#include "lucca_qt/serialization/image_cache_serializer.hpp"
#include <boost/noncopyable.hpp>
#include <unordered_map>
namespace ayla {
class Image;
}
namespace lucca_qt {
/**
* @author O Programador
*/
class LUCCA_QT_A... | 23.105263 | 133 | 0.766515 | oprogramadorreal |
82bc46df9fd678d43a3c01cfed5eb170d9c6da2c | 272 | cpp | C++ | src/gui/columnize/ColumnDefinitionFactory.cpp | tomvodi/QTail | 2e7acf31664969e6890edede6b60e02b20f33eb2 | [
"MIT"
] | 1 | 2017-04-29T12:17:59.000Z | 2017-04-29T12:17:59.000Z | src/gui/columnize/ColumnDefinitionFactory.cpp | tomvodi/QTail | 2e7acf31664969e6890edede6b60e02b20f33eb2 | [
"MIT"
] | 25 | 2016-06-11T17:35:42.000Z | 2017-07-19T04:19:08.000Z | src/gui/columnize/ColumnDefinitionFactory.cpp | tomvodi/QTail | 2e7acf31664969e6890edede6b60e02b20f33eb2 | [
"MIT"
] | null | null | null | /**
* @author Thomas Baumann <teebaum@ymail.com>
*
* @section LICENSE
* See LICENSE for more informations.
*
*/
#include "ColumnDefinitionFactory.h"
ColumnDefinitionFactory::ColumnDefinitionFactory()
{
}
ColumnDefinitionFactory::~ColumnDefinitionFactory()
{
}
| 13.6 | 51 | 0.735294 | tomvodi |
82c0470a2dbc15b744b23b933a494c7ace723a50 | 4,964 | hpp | C++ | diffsim_torch3d/arcsim/src/util.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/util.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | diffsim_torch3d/arcsim/src/util.hpp | priyasundaresan/kaolin | ddae34ba5f09bffc4368c29bc50491c5ece797d4 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 33.315436 | 113 | 0.657736 | priyasundaresan |
82c0727e513d791501a29e19d2dccbfe05744376 | 2,398 | cpp | C++ | benchmarks/halide/resize_tiramisu.cpp | akmaru/tiramisu | 8ca4173547b6d12cff10575ef0dc48cf93f7f414 | [
"MIT"
] | 23 | 2017-05-03T13:06:34.000Z | 2018-06-07T07:12:43.000Z | benchmarks/halide/resize_tiramisu.cpp | akmaru/tiramisu | 8ca4173547b6d12cff10575ef0dc48cf93f7f414 | [
"MIT"
] | 2 | 2017-04-25T08:59:09.000Z | 2017-05-11T16:41:55.000Z | benchmarks/halide/resize_tiramisu.cpp | akmaru/tiramisu | 8ca4173547b6d12cff10575ef0dc48cf93f7f414 | [
"MIT"
] | 5 | 2017-02-16T14:26:40.000Z | 2018-05-30T16:49:27.000Z | #include <tiramisu/tiramisu.h>
#include "halide_image_io.h"
using namespace tiramisu;
expr mixf(expr x, expr y, expr a)
{
return cast(p_float32, x) * (1 - a) + cast(p_float32, y) * a;
}
int main(int argc, char **argv)
{
Halide::Buffer<uint8_t> in_image = Halide::Tools::load_image("./utils/images/gray.png");
... | 29.975 | 111 | 0.449541 | akmaru |
82c0f7cd93a78771fc18805fd2e8c07344645e07 | 2,886 | cc | C++ | project2/solution/solution2.cc | EverNebula/CompilerProject-2020Spring | 513173a74f0062e09adbfba0fdef2a5816ef75b5 | [
"MIT"
] | null | null | null | project2/solution/solution2.cc | EverNebula/CompilerProject-2020Spring | 513173a74f0062e09adbfba0fdef2a5816ef75b5 | [
"MIT"
] | null | null | null | project2/solution/solution2.cc | EverNebula/CompilerProject-2020Spring | 513173a74f0062e09adbfba0fdef2a5816ef75b5 | [
"MIT"
] | null | null | null | // this is a silly solution
// just to show you how different
// components of this framework work
// please bring your wise to write
// a 'real' solution :)
#include <iostream>
#include <cstdio>
#include <fstream>
#include <sstream>
#include <string>
#include <cstring>
#include <dirent.h>
#include <json/... | 30.0625 | 174 | 0.577963 | EverNebula |
82c2efabff35347dc9d65dbdcc676b2784997b8a | 554 | cpp | C++ | cppcheck/data/c_files/387.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | 2 | 2022-03-23T12:16:20.000Z | 2022-03-31T06:19:40.000Z | cppcheck/data/c_files/387.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | cppcheck/data/c_files/387.cpp | awsm-research/LineVul | 246baf18c1932094564a10c9b81efb21914b2978 | [
"MIT"
] | null | null | null | static int parse_token(char **name, char **value, char **cp)
{
char *end;
if (!name || !value || !cp)
return -BLKID_ERR_PARAM;
if (!(*value = strchr(*cp, '=')))
return 0;
**value = '\0';
*name = strip_line(*cp);
*value = skip_over_blank(*value + 1);
if (**value == '"') {
end = strchr(*value + 1, '"');
if (!end)... | 15.388889 | 60 | 0.559567 | awsm-research |
82c6c8b697af5086554092edf799f341264df045 | 2,064 | cpp | C++ | src/_leetcode/leet_1104.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_1104.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_1104.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_1104.cpp ==========================
* -- tpr --
* CREATE -- 2020.06.02
* MODIFY --
* ----------------------------------------------------------
* 1104. 二叉树寻路
*/
#include "innLe... | 21.957447 | 69 | 0.419574 | turesnake |
82c947f0467bde2e2a27086163d6cc8616624ef2 | 1,394 | cpp | C++ | boost/libs/phoenix/test/bll_compatibility/ret_test.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | boost/libs/phoenix/test/bll_compatibility/ret_test.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | boost/libs/phoenix/test/bll_compatibility/ret_test.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | // ret_test.cpp - The Boost Lambda Library -----------------------
//
// Copyright (C) 2009 Steven Watanabe
//
// 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)
//
// For more information, see www.boost.org
#inc... | 25.814815 | 92 | 0.659254 | randolphwong |
82c96ffa113d67ab520d70196302937826e83085 | 200 | cpp | C++ | bucket_97/recoll/patches/patch-utils_fileudi.cpp | jrmarino/ravensource | 91d599fd1f2af55270258d15e72c62774f36033e | [
"FTL"
] | 17 | 2017-04-22T21:53:52.000Z | 2021-01-21T16:57:55.000Z | bucket_97/recoll/patches/patch-utils_fileudi.cpp | jrmarino/ravensource | 91d599fd1f2af55270258d15e72c62774f36033e | [
"FTL"
] | 186 | 2017-09-12T20:46:52.000Z | 2021-11-27T18:15:14.000Z | bucket_97/recoll/patches/patch-utils_fileudi.cpp | jrmarino/ravensource | 91d599fd1f2af55270258d15e72c62774f36033e | [
"FTL"
] | 74 | 2017-09-06T14:48:01.000Z | 2021-08-28T02:48:27.000Z | --- utils/fileudi.cpp.orig 2020-09-05 07:43:16 UTC
+++ utils/fileudi.cpp
@@ -18,6 +18,7 @@
#include <cstdlib>
#include <iostream>
+#include <sys/types.h>
#include "fileudi.h"
#include "md5.h"
| 18.181818 | 50 | 0.64 | jrmarino |
82cac00fbe9e4525df27de88947d694f46f7391f | 3,062 | hpp | C++ | include/argumentative/argument/Argument.hpp | ViralTaco/Argumentative | 9dba6cb5de53df75616ec823d8dc211f0ec78296 | [
"MIT"
] | 1 | 2020-10-03T05:09:49.000Z | 2020-10-03T05:09:49.000Z | include/argumentative/argument/Argument.hpp | ViralTaco/Argumentative | 9dba6cb5de53df75616ec823d8dc211f0ec78296 | [
"MIT"
] | null | null | null | include/argumentative/argument/Argument.hpp | ViralTaco/Argumentative | 9dba6cb5de53df75616ec823d8dc211f0ec78296 | [
"MIT"
] | null | null | null | #ifndef VT_ARGUMENT_HPP
// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
// ┃ Argument.hpp: ┃
// ┃ Copyright (c) 2020 viraltaco_ (viraltaco@gmx.com) ┃
// ┃ https://github.com/ViralTaco ┃
// ┃ SPDX-License-Identifier: MIT ... | 23.921875 | 70 | 0.567929 | ViralTaco |
82cd932e95e55306d18326596ec619fd1d01e2ca | 5,424 | cpp | C++ | extra/facs/cytolib/src/CytoFrameView.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/facs/cytolib/src/CytoFrameView.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | extra/facs/cytolib/src/CytoFrameView.cpp | scignscape/PGVM | e24f46cdf657a8bdb990c7883c6bd3d0a0c9cff0 | [
"BSL-1.0"
] | null | null | null | // Copyright 2019 Fred Hutchinson Cancer Research Center
// See the included LICENSE file for details on the licence that is granted to the user of this software.
#include <cytolib/CytoFrameView.hpp>
#include <cytolib/global.hpp>
namespace cytolib
{
CytoFramePtr CytoFrameView::get_cytoframe_ptr() const{
if(ptr_)
... | 24.542986 | 105 | 0.652102 | scignscape |
82d1fc26d7458c48624822d264f6e087ff93ea48 | 2,498 | cpp | C++ | source/core/scene.cpp | acdemiralp/magpie | adc6594784363278e06f1edb1868a72ca6c45612 | [
"MIT"
] | 4 | 2020-03-03T15:16:41.000Z | 2022-02-06T12:03:39.000Z | source/core/scene.cpp | acdemiralp/magpie | adc6594784363278e06f1edb1868a72ca6c45612 | [
"MIT"
] | null | null | null | source/core/scene.cpp | acdemiralp/magpie | adc6594784363278e06f1edb1868a72ca6c45612 | [
"MIT"
] | 1 | 2021-02-24T14:08:00.000Z | 2021-02-24T14:08:00.000Z | #include <magpie/core/scene.hpp>
#include <magpie/core/logger.hpp>
#include <magpie/graphics/transform.hpp>
namespace mp
{
void append_scene(scene* source, scene* target)
{
auto source_entities = source->entities();
auto target_entities = std::vector<entity*>();
const std::function<void(entity*, entity*)> re... | 36.735294 | 162 | 0.640913 | acdemiralp |
82d214d29af3a1269b0a24ccce5077b0da44502c | 7,135 | cpp | C++ | 3DRadSpace/3DRadSpaceDll/Model3D.cpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 9 | 2017-01-10T11:47:06.000Z | 2021-11-27T14:32:55.000Z | 3DRadSpace/3DRadSpaceDll/Model3D.cpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | null | null | null | 3DRadSpace/3DRadSpaceDll/Model3D.cpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 6 | 2017-07-08T23:03:43.000Z | 2022-03-08T07:47:13.000Z | #include "Model3D.hpp"
inline Engine3DRadSpace::VertexDeclDeterminantFlag Engine3DRadSpace::operator|(VertexDeclDeterminantFlag a, VertexDeclDeterminantFlag b)
{
return static_cast<VertexDeclDeterminantFlag>(static_cast<int>(a) | static_cast<int>(b));
}
inline Engine3DRadSpace::VertexDeclDeterminantFlag Engine3DRadS... | 34.97549 | 288 | 0.723616 | NicusorN5 |
82d5a6fa8fd7b4dec64b4eec6bc738bd3942a30c | 495 | cpp | C++ | app_v01/src/app/main.cpp | azaremde/cpp-opengl-gamedev | f4d02e955b401fc78321a23f91809662fefcda92 | [
"Apache-2.0"
] | null | null | null | app_v01/src/app/main.cpp | azaremde/cpp-opengl-gamedev | f4d02e955b401fc78321a23f91809662fefcda92 | [
"Apache-2.0"
] | null | null | null | app_v01/src/app/main.cpp | azaremde/cpp-opengl-gamedev | f4d02e955b401fc78321a23f91809662fefcda92 | [
"Apache-2.0"
] | null | null | null | #define ENGINE_DEBUG_MODE
#include "environment/window.h"
#include "layers/layer_manager.h"
#include "gui_layer.h"
#include "graphics_layer.h"
int main()
{
window_init();
layers::layer_manager.add_layer(new GUILayer());
layers::layer_manager.add_layer(new GraphicsLayer());
layers::layer_manager.init();
whil... | 15.967742 | 54 | 0.735354 | azaremde |
82d6d7e6ab1bd78c0f800a5ab4cbfd7488b671f2 | 2,237 | cpp | C++ | folly/synchronization/test/BatonBenchmark.cpp | Aoikiseki/folly | df3633c731d08bab0173039a050a30853fb47212 | [
"Apache-2.0"
] | 19,046 | 2015-01-01T17:01:10.000Z | 2022-03-31T23:01:43.000Z | folly/synchronization/test/BatonBenchmark.cpp | Aoikiseki/folly | df3633c731d08bab0173039a050a30853fb47212 | [
"Apache-2.0"
] | 1,493 | 2015-01-11T15:47:13.000Z | 2022-03-28T18:13:58.000Z | folly/synchronization/test/BatonBenchmark.cpp | Aoikiseki/folly | df3633c731d08bab0173039a050a30853fb47212 | [
"Apache-2.0"
] | 4,818 | 2015-01-01T12:28:16.000Z | 2022-03-31T16:22:10.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 28.679487 | 75 | 0.738936 | Aoikiseki |
82d92d0839449f2e8ddbc75dbf81995fd62d2e80 | 4,706 | cpp | C++ | sensors/SensorBase.cpp | Huawei-mt6737/device | baec9804cf904c17d2abd45a1ecddde384ec22b7 | [
"FTL"
] | 2 | 2018-12-24T09:37:43.000Z | 2019-09-22T13:55:54.000Z | sensors/SensorBase.cpp | Huawei-mt6737/device | baec9804cf904c17d2abd45a1ecddde384ec22b7 | [
"FTL"
] | null | null | null | sensors/SensorBase.cpp | Huawei-mt6737/device | baec9804cf904c17d2abd45a1ecddde384ec22b7 | [
"FTL"
] | 8 | 2017-07-05T17:09:28.000Z | 2019-03-04T09:37:45.000Z | /* Copyright Statement:
*
* This software/firmware and related documentation ("MediaTek Software") are
* protected under relevant copyright laws. The information contained herein
* is confidential and proprietary to MediaTek Inc. and/or its licensors.
* Without the prior written permission of MediaTek inc. and/or ... | 32.232877 | 95 | 0.649809 | Huawei-mt6737 |
82dc868342959ab731cfcb77da1bec85da90bd70 | 2,054 | cpp | C++ | HazelGameEngine/src/Platform/OpenGL/OpenGLVertexArray.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Platform/OpenGL/OpenGLVertexArray.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | HazelGameEngine/src/Platform/OpenGL/OpenGLVertexArray.cpp | duo131/Hazel_practice | 04eeec2550b9536e7b8a565d67630c1d2a669991 | [
"Apache-2.0"
] | null | null | null | #include "hzpch.h"
#include "OpenGLVertexArray.h"
#include <glad/glad.h>
namespace Hazel {
//temp function
static GLenum ShaderDataTypeToOpenGLBaseType(ShaderDataType type)
{
switch (type)
{
case ShaderDataType::NONE: break;
case ShaderDataType::FLOAT: return GL_FLOAT;
case ShaderDataType::FLOAT2: re... | 24.164706 | 96 | 0.731256 | duo131 |
82dd0a742a3e6f7fd1298001e6f365b5ea428afc | 80,114 | cc | C++ | EnergyPlus/HighTempRadiantSystem.cc | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | EnergyPlus/HighTempRadiantSystem.cc | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | 1 | 2020-07-08T13:32:09.000Z | 2020-07-08T13:32:09.000Z | EnergyPlus/HighTempRadiantSystem.cc | yurigabrich/EnergyPlusShadow | 396ca83aa82b842e6b177ba35c91b3f481dfbbf9 | [
"BSD-3-Clause"
] | null | null | null | // EnergyPlus, Copyright (c) 1996-2018, The Board of Trustees of the University of Illinois,
// The Regents of the University of California, through Lawrence Berkeley National Laboratory
// (subject to receipt of any required approvals from the U.S. Dept. of Energy), Oak Ridge
// National Laboratory, managed by UT-Batt... | 51.686452 | 150 | 0.613601 | yurigabrich |
82def5e94931116dd81321dc04facd9fd0e00346 | 1,799 | cpp | C++ | external/src/StateMachine/transition.cpp | telekom/LibNbiot | 60655d3d1cfdabfefac229eefee9b2ed0e0f5f73 | [
"Apache-2.0"
] | 18 | 2018-04-20T12:11:37.000Z | 2020-02-25T19:40:41.000Z | external/src/StateMachine/transition.cpp | telekom/LibNbiot | 60655d3d1cfdabfefac229eefee9b2ed0e0f5f73 | [
"Apache-2.0"
] | 2 | 2018-05-21T04:15:00.000Z | 2018-11-27T14:41:11.000Z | external/src/StateMachine/transition.cpp | telekom/LibNbiot | 60655d3d1cfdabfefac229eefee9b2ed0e0f5f73 | [
"Apache-2.0"
] | 6 | 2018-08-09T11:28:37.000Z | 2021-07-20T07:41:08.000Z | /******************************************************************************
* File: transition.cpp
* Author: Edgar Hindemith
* This file is part of the 'Simple Statemachine for Embedded Systems'
* see https://github.com/edgar4k/StateMachine
*
* Copyright (C) 2016,2018 Edgar Hindemith
*
* Licensed un... | 28.555556 | 80 | 0.556976 | telekom |
82e1cf46c547ee7bd50b783a31f234185a1116b3 | 3,092 | cpp | C++ | tests/cthread/test_bhv_fifo.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 86 | 2020-10-23T15:59:47.000Z | 2022-03-28T18:51:19.000Z | tests/cthread/test_bhv_fifo.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 18 | 2020-12-14T13:11:26.000Z | 2022-03-14T05:34:20.000Z | tests/cthread/test_bhv_fifo.cpp | hachetman/systemc-compiler | 0cc81ace03336d752c0146340ff5763a20e3cefd | [
"Apache-2.0"
] | 17 | 2020-10-29T16:19:43.000Z | 2022-03-11T09:51:05.000Z | /******************************************************************************
* Copyright (c) 2020, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception.
*
*****************************************************************************/
#include "systemc.h"
using names... | 24.736 | 79 | 0.502587 | hachetman |
82e236a9dc748b89398c20334b2359958d95cfb8 | 233 | hpp | C++ | source-sdk/classes/net_channel.hpp | BuddDwyer-0x00/csgo-cheat-base | 3103f0e1ba811270f7f862cdfd105f712a6eb700 | [
"MIT"
] | 10 | 2020-06-23T00:44:29.000Z | 2021-11-16T01:52:16.000Z | source-sdk/classes/net_channel.hpp | BuddDwyer-0x00/csgo-cheat-base | 3103f0e1ba811270f7f862cdfd105f712a6eb700 | [
"MIT"
] | 1 | 2020-06-08T17:58:31.000Z | 2021-05-09T17:26:48.000Z | source-sdk/classes/net_channel.hpp | BuddDwyer-0x00/csgo-cheat-base | 3103f0e1ba811270f7f862cdfd105f712a6eb700 | [
"MIT"
] | 3 | 2020-06-08T00:31:44.000Z | 2021-05-27T23:16:13.000Z | #pragma once
class i_net_channel {
public:
uint8_t pad_0x0000[0x17];
bool should_delete;
int out_sequence_nr;
int in_sequence_nr;
int out_sequence_nr_ack;
int out_reliable_state;
int in_reliable_state;
int choked_packets;
}; | 17.923077 | 26 | 0.802575 | BuddDwyer-0x00 |
82e729cadf94428b8eab67a209530dddd04bdd21 | 11,342 | cpp | C++ | ClassicStartSrc/ClassicIE/ClassicIEDLL/DrawCaption.cpp | Duzzy-ExoDuus/Classic-Start | 8b70f64b5bceeadfa4e5599b299a856c1e452e80 | [
"MIT"
] | 1 | 2018-07-19T20:59:32.000Z | 2018-07-19T20:59:32.000Z | ClassicStartSrc/ClassicIE/ClassicIEDLL/DrawCaption.cpp | Duzzy-ExoDuus/Classic-Start | 8b70f64b5bceeadfa4e5599b299a856c1e452e80 | [
"MIT"
] | null | null | null | ClassicStartSrc/ClassicIE/ClassicIEDLL/DrawCaption.cpp | Duzzy-ExoDuus/Classic-Start | 8b70f64b5bceeadfa4e5599b299a856c1e452e80 | [
"MIT"
] | null | null | null | // Classic Shell (c) 2009-2017, Ivo Beltchev
// Classic Start (c) 2017-2018, The Passionate-Coder Team
// Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author
#include "stdafx.h"
#include "ClassicIEDLL.h"
#include "Settings.h"
#include "ResourceHelp... | 32.685879 | 137 | 0.73629 | Duzzy-ExoDuus |
82ebc3afc48794c55ae6c033eb8b3d02d5e9b2e1 | 1,524 | cpp | C++ | code/920.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | code/920.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | code/920.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | #include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
struct TreeNod... | 20.876712 | 68 | 0.463255 | Nightwish-cn |
82ebed1201a7f4989f1d879d85456272000dd064 | 1,541 | cpp | C++ | KnightmareRemake/GameMain.cpp | pdpdds/knightmare | 25323acb23a0af326cebb6f342e30ccbfe0c2f0d | [
"BSD-2-Clause"
] | null | null | null | KnightmareRemake/GameMain.cpp | pdpdds/knightmare | 25323acb23a0af326cebb6f342e30ccbfe0c2f0d | [
"BSD-2-Clause"
] | null | null | null | KnightmareRemake/GameMain.cpp | pdpdds/knightmare | 25323acb23a0af326cebb6f342e30ccbfe0c2f0d | [
"BSD-2-Clause"
] | null | null | null | #include "GameMain.h"
#include "CGameCore.h"
HINSTANCE g_hInst;
HWND g_hWnd;
#define SPRITE_DIAMETER 30
#define SCREEN_WIDTH 640
#define SCREEN_HEIGHT 480
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
g_hInst = hInstance;
static char Name[] = "Knightmare";
MS... | 18.129412 | 86 | 0.710578 | pdpdds |
82ede2568f481afb8ea5d7a75b26cea6097b188a | 841 | cpp | C++ | Leetcode/869_reorderedPowerOf2.cpp | ZZh2333/ubuntuProjectFiles | ded3d74e040bf6683b3b67a6956eb6fbe5805155 | [
"MIT"
] | null | null | null | Leetcode/869_reorderedPowerOf2.cpp | ZZh2333/ubuntuProjectFiles | ded3d74e040bf6683b3b67a6956eb6fbe5805155 | [
"MIT"
] | null | null | null | Leetcode/869_reorderedPowerOf2.cpp | ZZh2333/ubuntuProjectFiles | ded3d74e040bf6683b3b67a6956eb6fbe5805155 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
bool reorderedPowerOf2(int n)
{
vector<int> search = contDigital(n);
vector<vector<int>> allPossible;
for (int i = 0; i < 30; i++)
{
allPossible.push_back(contDigital(pow(2, i)));
}
... | 20.512195 | 59 | 0.450654 | ZZh2333 |
82ededae93c7b0a0e9de59b4981a360c47a25df0 | 242 | hh | C++ | hackt_docker/hackt/src/lexer/input_manager.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/lexer/input_manager.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/lexer/input_manager.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | // aliased to different file name so "parser/lexyacc-prefix.awk"
// won't rename it.
#include "lexer/yyin_manager.hh"
namespace HAC {
namespace lexer {
typedef yyin_manager input_manager;
} // end namespace lexer
} // end namespace HAC
| 22 | 65 | 0.735537 | broken-wheel |
82f2fde8ae28b38d4bf29c8934c452428be9d414 | 3,470 | cpp | C++ | DSP/extensions/TrajectoryLib/sources/Bspline2D.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | null | null | null | DSP/extensions/TrajectoryLib/sources/Bspline2D.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | null | null | null | DSP/extensions/TrajectoryLib/sources/Bspline2D.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | null | null | null | /*
* Bspline Function Unit for TTBlue
* based on the bspline code by Jasch: http://www.jasch.ch/
* ported by Nils Peters
*
*/
#include "Bspline2D.h"
#define thisTTClass Bspline2D
#define thisTTClassName "bspline.2D"
#define thisTTClassTags "audio, trajectory, 2D, spline"
TT_AUDIO_CONSTRUCTOR
{ //addAt... | 25.514706 | 109 | 0.606916 | avilleret |
82f3159b433cb8391baa047bfd5822b211498d07 | 231 | cpp | C++ | tests/codegen/unroll.cpp | casparant/bpftrace | a6823165a521e894b3fb028733131878cf70d3a7 | [
"Apache-2.0"
] | 5,119 | 2018-10-08T15:19:24.000Z | 2022-03-31T15:03:48.000Z | tests/codegen/unroll.cpp | casparant/bpftrace | a6823165a521e894b3fb028733131878cf70d3a7 | [
"Apache-2.0"
] | 1,568 | 2018-10-08T19:14:25.000Z | 2022-03-31T01:44:41.000Z | tests/codegen/unroll.cpp | casparant/bpftrace | a6823165a521e894b3fb028733131878cf70d3a7 | [
"Apache-2.0"
] | 838 | 2018-10-08T20:16:47.000Z | 2022-03-31T06:15:58.000Z | #include "common.h"
namespace bpftrace {
namespace test {
namespace codegen {
TEST(codegen, unroll)
{
test("BEGIN { @i = 0; unroll(5) { @i += 1 } }", NAME);
}
} // namespace codegen
} // namespace test
} // namespace bpftrace
| 15.4 | 56 | 0.636364 | casparant |
82f754ee9aa28f6f0de0465a584b400d631697ae | 36,557 | cpp | C++ | torch/lib/THD/master_worker/worker/dispatch/Tensor.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | 1 | 2019-07-21T02:13:22.000Z | 2019-07-21T02:13:22.000Z | torch/lib/THD/master_worker/worker/dispatch/Tensor.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | null | null | null | torch/lib/THD/master_worker/worker/dispatch/Tensor.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | null | null | null | template<typename... Ts>
static at::Tensor createTensor(RPCType type, Ts &... args) {
if (type == RPCType::UCHAR)
return at::CPU(at::kByte).tensor(std::forward<Ts>(args)...);
else if (type == RPCType::CHAR)
return at::CPU(at::kChar).tensor(std::forward<Ts>(args)...);
else if (type == RPCType::SHORT)
r... | 37.303061 | 142 | 0.729901 | DavidKo3 |
82fcf6e966ab122b42f408ded600ff7ac4ebc6b5 | 6,802 | cpp | C++ | ssp/ar.cpp | idiap/libssp | 6e7d438a4cf7275ec159a93b27d77d73f61f229e | [
"BSD-3-Clause"
] | 14 | 2015-10-22T15:53:30.000Z | 2021-07-13T00:28:00.000Z | ssp/ar.cpp | idiap/libssp | 6e7d438a4cf7275ec159a93b27d77d73f61f229e | [
"BSD-3-Clause"
] | null | null | null | ssp/ar.cpp | idiap/libssp | 6e7d438a4cf7275ec159a93b27d77d73f61f229e | [
"BSD-3-Clause"
] | 3 | 2016-01-04T03:12:00.000Z | 2019-12-26T07:28:13.000Z | /*
* Copyright 2014 by Idiap Research Institute, http://www.idiap.ch
*
* See the file COPYING for the licence associated with this software.
*
* Author(s):
* Phil Garner, July 2014
*/
#include <cassert>
#include "ar.h"
using namespace ssp;
/**
* Rule-of-thumb order for AR analysis
*/
int ssp::arorder(var ... | 24.467626 | 79 | 0.537195 | idiap |
d20018025c8f7e3d92446b87f7c8377bd83a3f9a | 8,430 | cpp | C++ | glutapp3dObjLoader/gsim/gs_input.cpp | AmarSaini/Graphics-Project | cad6933d83a67eab87a8222118616f0e0535f977 | [
"Apache-2.0"
] | null | null | null | glutapp3dObjLoader/gsim/gs_input.cpp | AmarSaini/Graphics-Project | cad6933d83a67eab87a8222118616f0e0535f977 | [
"Apache-2.0"
] | null | null | null | glutapp3dObjLoader/gsim/gs_input.cpp | AmarSaini/Graphics-Project | cad6933d83a67eab87a8222118616f0e0535f977 | [
"Apache-2.0"
] | null | null | null | /*=======================================================================
Copyright 2013 Marcelo Kallmann. All Rights Reserved.
This software is distributed for noncommercial use only, without
any warranties, and provided that all copies contain the full copyright
notice licence.txt located at the base fold... | 21.839378 | 87 | 0.506762 | AmarSaini |
d201aacc0ade4e8863df807d734fc8b348108d97 | 18,814 | cpp | C++ | src/main.cpp | stephan2nd/cpp-accelerator-settings-evolution | 653990ed991a75db6055790aafb8b628c685763a | [
"MIT"
] | null | null | null | src/main.cpp | stephan2nd/cpp-accelerator-settings-evolution | 653990ed991a75db6055790aafb8b628c685763a | [
"MIT"
] | null | null | null | src/main.cpp | stephan2nd/cpp-accelerator-settings-evolution | 653990ed991a75db6055790aafb8b628c685763a | [
"MIT"
] | null | null | null | #include <iostream>
#include <random>
#include <fstream>
#include <vector>
#include "Genome.hpp"
#include "Population.hpp"
#include "Accelerator.hpp"
#include "DriftTube.hpp"
#include "HKick.hpp"
#include "VKick.hpp"
#include "QuadrupoleMagnet.hpp"
#include "Slit.hpp"
#include "Screen.hpp"
#include "Trafo.hpp"
#inclu... | 44.372642 | 197 | 0.66695 | stephan2nd |
d201e0518fbb66f8cbf1ac94aea76743d477339c | 4,943 | cpp | C++ | ufora/FORA/Judgment/RandomJOVGenerator.py.cpp | ufora/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 571 | 2015-11-05T20:07:07.000Z | 2022-01-24T22:31:09.000Z | ufora/FORA/Judgment/RandomJOVGenerator.py.cpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 218 | 2015-11-05T20:37:55.000Z | 2021-05-30T03:53:50.000Z | ufora/FORA/Judgment/RandomJOVGenerator.py.cpp | timgates42/ufora | 04db96ab049b8499d6d6526445f4f9857f1b6c7e | [
"Apache-2.0",
"CC0-1.0",
"MIT",
"BSL-1.0",
"BSD-3-Clause"
] | 40 | 2015-11-07T21:42:19.000Z | 2021-05-23T03:48:19.000Z | /***************************************************************************
Copyright 2015 Ufora Inc.
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/licen... | 31.484076 | 91 | 0.644346 | ufora |
d20272ed7b7e9d0d54b18926db4a1c5080b20d29 | 4,938 | cpp | C++ | ivld/src/v20210903/model/AudioInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ivld/src/v20210903/model/AudioInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ivld/src/v20210903/model/AudioInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.131868 | 150 | 0.686108 | suluner |
d2066ec92a515ab33a89cc38bd0cf834677e90e6 | 172 | cpp | C++ | src/np/subset_sum.cpp | zpooky/sputil | 3eddf94655fe4ec5bc2a3b5e487a86d772b038ae | [
"Apache-2.0"
] | null | null | null | src/np/subset_sum.cpp | zpooky/sputil | 3eddf94655fe4ec5bc2a3b5e487a86d772b038ae | [
"Apache-2.0"
] | null | null | null | src/np/subset_sum.cpp | zpooky/sputil | 3eddf94655fe4ec5bc2a3b5e487a86d772b038ae | [
"Apache-2.0"
] | null | null | null | #include "subset_sum.h"
namespace np {
namespace complete {
bool
subset_sum(const sp::Array<int> &) noexcept {
return true;
}
} // namespace complete
} // namespace np
| 14.333333 | 45 | 0.703488 | zpooky |
d2071e73011c882d7d7260a12311e751a08f036e | 859 | cpp | C++ | Source/ThirdPersonShooter/Private/Core/AI/BTService_SetMovementState.cpp | DanialKama/ThirdPersonShooter | 689873bcfcce7ef170df7fc7385d507e71a87a38 | [
"MIT"
] | 7 | 2021-12-03T17:31:34.000Z | 2022-03-16T09:24:46.000Z | Source/ThirdPersonShooter/Private/Core/AI/BTService_SetMovementState.cpp | DanialKama/ThirdPersonShooter | 689873bcfcce7ef170df7fc7385d507e71a87a38 | [
"MIT"
] | 45 | 2021-09-26T12:12:44.000Z | 2022-01-31T07:19:50.000Z | Source/ThirdPersonShooter/Private/Core/AI/BTService_SetMovementState.cpp | DanialKama/ThirdPersonShooter | 689873bcfcce7ef170df7fc7385d507e71a87a38 | [
"MIT"
] | null | null | null | // Copyright 2022 Danial Kamali. All Rights Reserved.
#include "Core/AI/BTService_SetMovementState.h"
#include "Characters/AICharacter.h"
#include "Core/AI/ShooterAIController.h"
UBTService_SetMovementState::UBTService_SetMovementState(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
NodeNa... | 31.814815 | 107 | 0.80908 | DanialKama |
d20bdee934b63c6dc8b753cff9796ee3a427aa92 | 603 | hpp | C++ | src/RenderSystem.DXGI/DXGIFormatHelper.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/RenderSystem.DXGI/DXGIFormatHelper.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | src/RenderSystem.DXGI/DXGIFormatHelper.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Graphics/detail/ForwardDeclarations.hpp"
#include <dxgi.h>
namespace Pomdog {
namespace Detail {
namespace DXGI {
struct DXGIFormatHelper final {
static DXGI_FORMAT ToDXGIFormat(DepthFormat format) noexcept;
... | 27.409091 | 75 | 0.78607 | ValtoForks |
d20e1e07ea65e639ef0667b87826a916a61fcefe | 2,280 | cpp | C++ | src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp | maemo5/android-source-browsing.platform--external--collada | 538700ec332c8306a1283f8dfdb016e493905e6f | [
"MIT"
] | null | null | null | src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp | maemo5/android-source-browsing.platform--external--collada | 538700ec332c8306a1283f8dfdb016e493905e6f | [
"MIT"
] | null | null | null | src/1.4/dom/domGles_texcombiner_commandAlpha_type.cpp | maemo5/android-source-browsing.platform--external--collada | 538700ec332c8306a1283f8dfdb016e493905e6f | [
"MIT"
] | null | null | null | /*
* Copyright 2006 Sony Computer Entertainment Inc.
*
* Licensed under the MIT Open Source License, for details please see license.txt or the website
* http://www.opensource.org/licenses/mit-license.php
*
*/
#include <dae.h>
#include <dae/daeDom.h>
#include <dom/domGles_texcombiner_commandAlpha_type.h>
#includ... | 28.5 | 96 | 0.752193 | maemo5 |
d2162c55d252d362c48415b6baa06fe572903c9d | 2,754 | cc | C++ | main.cc | sebgiles/pycolmap | 9590ab7b4dbd16348ada8ed63a7e32d30460669f | [
"BSD-3-Clause"
] | null | null | null | main.cc | sebgiles/pycolmap | 9590ab7b4dbd16348ada8ed63a7e32d30460669f | [
"BSD-3-Clause"
] | null | null | null | main.cc | sebgiles/pycolmap | 9590ab7b4dbd16348ada8ed63a7e32d30460669f | [
"BSD-3-Clause"
] | null | null | null | #include <pybind11/pybind11.h>
namespace py = pybind11;
#include "absolute_pose.cc"
#include "sequence_absolute_pose.cc"
#include "generalized_absolute_pose.cc"
#include "essential_matrix.cc"
#include "fundamental_matrix.cc"
#include "transformations.cc"
#include "sift.cc"
PYBIND11_MODULE(pycolmap, m) {
m.doc() ... | 38.25 | 100 | 0.6122 | sebgiles |
d216c874fd8a85cbd55ac716fbc459fdaf3833cd | 978 | cpp | C++ | PAC-MAN_Allegro/imagem.cpp | JP-Clemente/Programming_Projects | 68ff8dccbf6bf70461cc4865840f6a187dadcb5e | [
"MIT"
] | 1 | 2020-11-29T08:06:21.000Z | 2020-11-29T08:06:21.000Z | PAC-MAN_Allegro/imagem.cpp | JP-Clemente/College_Projects | 94478657182e3dbf6ffd0fa425159d857f59a684 | [
"MIT"
] | null | null | null | PAC-MAN_Allegro/imagem.cpp | JP-Clemente/College_Projects | 94478657182e3dbf6ffd0fa425159d857f59a684 | [
"MIT"
] | null | null | null | #include <iostream>
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
using namespace std;
int main(int argc, char **argv){
ALLEGRO_DISPLAY *display = NULL;
ALLEGRO_BITMAP *image = NULL;
if(!al_init()) {
cout <<"Failed to initialize allegro!" << endl;
return 0;
}
if(!a... | 20.808511 | 96 | 0.632924 | JP-Clemente |
d217b52f2d76ab6ecb1d3195bb3d6643e39cb260 | 3,160 | hpp | C++ | include/util/geometric.hpp | Adanos020/ErupTrace | 2d359c4d53e758299e8b2d476d945fe2dd2f1c2d | [
"MIT"
] | null | null | null | include/util/geometric.hpp | Adanos020/ErupTrace | 2d359c4d53e758299e8b2d476d945fe2dd2f1c2d | [
"MIT"
] | null | null | null | include/util/geometric.hpp | Adanos020/ErupTrace | 2d359c4d53e758299e8b2d476d945fe2dd2f1c2d | [
"MIT"
] | null | null | null | #pragma once
#include <util/barycentric.hpp>
#include <util/colors.hpp>
#include <util/pairs.hpp>
#include <util/sizes.hpp>
#include <util/vector.hpp>
#include <glm/gtc/constants.hpp>
#include <glm/gtx/quaternion.hpp>
#include <algorithm>
#include <utility>
struct line
{
position_3D origin;
direction_3D dir... | 26.115702 | 117 | 0.625316 | Adanos020 |
d218f32735cbb059fd098fa344cae9d16cd6ddff | 2,311 | cpp | C++ | src/parser/parser.cpp | fezcode/boxer | 89139da2a93ae55d54bdf57a582d5eb7b1e157b0 | [
"Unlicense"
] | 1 | 2022-02-07T08:58:29.000Z | 2022-02-07T08:58:29.000Z | src/parser/parser.cpp | fezcode/boxer | 89139da2a93ae55d54bdf57a582d5eb7b1e157b0 | [
"Unlicense"
] | null | null | null | src/parser/parser.cpp | fezcode/boxer | 89139da2a93ae55d54bdf57a582d5eb7b1e157b0 | [
"Unlicense"
] | null | null | null | //============================
// Parser.cpp
//============================
//
#include "parser.h"
namespace boxer::parser {
/**
* Ctor
* Preconditions:
* - File exists.
*/
Parser::Parser(string_t path) : filename(path){
working_dir = boxer::string::getParentPath(path);
log_dbg("File:" + filename);
... | 20.633929 | 75 | 0.607529 | fezcode |
d219264448484d31285b858d37eb887a667efaad | 5,731 | hpp | C++ | FDPS-5.0g/src/vector2.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | null | null | null | FDPS-5.0g/src/vector2.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | null | null | null | FDPS-5.0g/src/vector2.hpp | subarutaro/GPLUM | 89b1dadb08a0c6adcdc48879ddf2b7b0fb02912f | [
"MIT"
] | null | null | null | #pragma once
#include<iostream>
#include<iomanip>
namespace ParticleSimulator{
template <typename T>
class Vector2{
public:
T x, y;
Vector2() : x(T(0)), y(T(0)) {}
Vector2(const T _x, const T _y) : x(_x), y(_y) {}
Vector2(const T s) : x(s), y(s) {}
Vector2(const Ve... | 29.091371 | 137 | 0.503403 | subarutaro |
d21b4f55d714064edb9c4a1e2569597585a83ca2 | 4,552 | cpp | C++ | table/byte_addressable_RA_iterator.cpp | ruihong123/dLSM | 9158b25349389e0d46a0695ee05534409489412b | [
"BSD-3-Clause"
] | 2 | 2022-03-02T02:44:51.000Z | 2022-03-21T17:29:28.000Z | table/byte_addressable_RA_iterator.cpp | ruihong123/dLSM | 9158b25349389e0d46a0695ee05534409489412b | [
"BSD-3-Clause"
] | null | null | null | table/byte_addressable_RA_iterator.cpp | ruihong123/dLSM | 9158b25349389e0d46a0695ee05534409489412b | [
"BSD-3-Clause"
] | null | null | null | //
// Created by ruihong on 1/20/22.
//
#include "byte_addressable_RA_iterator.h"
#include "dLSM/env.h"
#include "table_memoryside.h"
namespace dLSM {
ByteAddressableRAIterator::ByteAddressableRAIterator(Iterator* index_iter,
KVFunction block_function,
... | 30.346667 | 125 | 0.609622 | ruihong123 |
d21ca9721fc9885affa723609c674c99af0be541 | 9,155 | cpp | C++ | src/spells/moppcode.cpp | eckserah/nifskope | 3a85ac55e65cc60abc3434cc4aaca2a5cc712eef | [
"RSA-MD"
] | 434 | 2015-02-06T05:08:20.000Z | 2022-03-28T16:32:15.000Z | src/spells/moppcode.cpp | SpectralPlatypus/nifskope | 7af7af39bfb0b29953024655235fde9fbc97071c | [
"RSA-MD"
] | 155 | 2015-01-10T15:28:01.000Z | 2022-03-05T03:28:09.000Z | src/spells/moppcode.cpp | SpectralPlatypus/nifskope | 7af7af39bfb0b29953024655235fde9fbc97071c | [
"RSA-MD"
] | 205 | 2015-02-07T15:10:16.000Z | 2022-03-12T16:59:05.000Z | #include "spellbook.h"
// Brief description is deliberately not autolinked to class Spell
/*! \file moppcode.cpp
* \brief Havok MOPP spells
*
* Note that this code only works on the Windows platform due an external
* dependency on the Havok SDK, with which NifMopp.dll is compiled.
*
* Most classes here inherit ... | 31.898955 | 163 | 0.681049 | eckserah |
d21e101eeed85d188956e68a8fdf716c924f7cff | 8,259 | cc | C++ | src/game/LoadSaveTacticalStatusType.cc | flex-lab/ja2-stracciatella | 61f8f0445112c5d5ec80d7b3502ac24505f3d20c | [
"BSD-Source-Code"
] | null | null | null | src/game/LoadSaveTacticalStatusType.cc | flex-lab/ja2-stracciatella | 61f8f0445112c5d5ec80d7b3502ac24505f3d20c | [
"BSD-Source-Code"
] | null | null | null | src/game/LoadSaveTacticalStatusType.cc | flex-lab/ja2-stracciatella | 61f8f0445112c5d5ec80d7b3502ac24505f3d20c | [
"BSD-Source-Code"
] | null | null | null | #include <vector>
#include "Debug.h"
#include "FileMan.h"
#include "GameState.h"
#include "LoadSaveData.h"
#include "LoadSaveTacticalStatusType.h"
#include "Overhead.h"
void ExtractTacticalStatusTypeFromFile(HWFILE const f, bool stracLinuxFormat)
{
UINT32 dataSize = stracLinuxFormat ? TACTICAL_STATUS_TYPE_SIZE_STRA... | 31.643678 | 104 | 0.763531 | flex-lab |
d21e989a93c7bbe63be3d91a88abb98530110963 | 17,295 | cpp | C++ | src/vd_mesh.cpp | 22427/Vertex_Data | 8df9da253dadf21d1c89917f44103e6ed3ab52fa | [
"Unlicense"
] | null | null | null | src/vd_mesh.cpp | 22427/Vertex_Data | 8df9da253dadf21d1c89917f44103e6ed3ab52fa | [
"Unlicense"
] | null | null | null | src/vd_mesh.cpp | 22427/Vertex_Data | 8df9da253dadf21d1c89917f44103e6ed3ab52fa | [
"Unlicense"
] | null | null | null | #include "../include/vd_mesh.h"
#include <glm/geometric.hpp>
#include <string>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <algorithm>
using namespace glm;
///*****************************************************************************
///* UTILITIES ... | 21.837121 | 80 | 0.535184 | 22427 |
d220acfae0348a757cc2c112bd12f5141ed80802 | 1,358 | cc | C++ | pagespeed/system/redis_cache_cluster_setup_main.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 2 | 2019-11-02T07:54:17.000Z | 2020-04-16T09:26:51.000Z | pagespeed/system/redis_cache_cluster_setup_main.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 12 | 2017-03-14T18:26:11.000Z | 2021-10-01T15:33:50.000Z | pagespeed/system/redis_cache_cluster_setup_main.cc | dimitrilongo/mod_pagespeed | d0d3bc51aa4feddf010b7085872c64cc46b5aae0 | [
"Apache-2.0"
] | 1 | 2020-04-16T09:28:30.000Z | 2020-04-16T09:28:30.000Z | /*
* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 26.627451 | 76 | 0.726068 | dimitrilongo |
d220fbb93edc8881a4d1c9bf74f10540bf151f6d | 2,521 | cpp | C++ | src/util/log.cpp | mandliya/gameboy_emulator | 5293a014e19af5c0555caa0db6411c8cc3fca7fc | [
"BSD-3-Clause"
] | 13 | 2018-01-11T09:50:38.000Z | 2021-08-02T22:03:20.000Z | src/util/log.cpp | mandliya/gameboy_emulator | 5293a014e19af5c0555caa0db6411c8cc3fca7fc | [
"BSD-3-Clause"
] | 1 | 2019-10-16T12:30:28.000Z | 2020-04-13T12:42:12.000Z | src/util/log.cpp | mandliya/gameboy_emulator | 5293a014e19af5c0555caa0db6411c8cc3fca7fc | [
"BSD-3-Clause"
] | 3 | 2018-01-26T07:56:18.000Z | 2021-01-05T15:11:01.000Z | /*
* Copyright (C) 2015 Alex Smith
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM... | 29.658824 | 75 | 0.656882 | mandliya |
d222c61cb480a2cc28b5f6e097a7555e16607d83 | 309 | cpp | C++ | facebook-clang-plugins/libtooling/tests/using_directive.cpp | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | 14,499 | 2015-06-11T16:00:28.000Z | 2022-03-31T23:43:54.000Z | facebook-clang-plugins/libtooling/tests/using_directive.cpp | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | 1,529 | 2015-06-11T16:55:30.000Z | 2022-03-27T15:59:46.000Z | facebook-clang-plugins/libtooling/tests/using_directive.cpp | JacobBarthelmeh/infer | 12c582a69855e17a2cf9c7b6cdf7f8e9c71e5341 | [
"MIT"
] | 2,225 | 2015-06-11T16:36:10.000Z | 2022-03-31T05:16:59.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
namespace nsa {
namespace nsb {
int a;
}
} // namespace nsa
using namespace nsa::nsb;
namespace B = nsa::nsb;
int b = a;
| 20.6 | 66 | 0.695793 | JacobBarthelmeh |
d2236f382ef4a8f1d494d1cede58881c17fb936d | 1,010 | hh | C++ | src/Nuxed/Kernel/Extension/SessionExtension.hh | tomoki1337/framework | ff06d260c5bf2a78a99b8d17b041de756550f95a | [
"MIT"
] | null | null | null | src/Nuxed/Kernel/Extension/SessionExtension.hh | tomoki1337/framework | ff06d260c5bf2a78a99b8d17b041de756550f95a | [
"MIT"
] | null | null | null | src/Nuxed/Kernel/Extension/SessionExtension.hh | tomoki1337/framework | ff06d260c5bf2a78a99b8d17b041de756550f95a | [
"MIT"
] | null | null | null | <?hh // strict
namespace Nuxed\Kernel\Extension;
use namespace Nuxed\Http\Session;
use namespace Nuxed\Kernel\ServiceProvider;
use type Nuxed\Container\ServiceProvider\ServiceProviderInterface;
use type Nuxed\Contract\Http\Server\MiddlewarePipeInterface;
use type Nuxed\Http\Server\MiddlewareFactory;
use type Nuxed\Ke... | 26.578947 | 70 | 0.738614 | tomoki1337 |
d22485e744eef16d8fe049beaa4f52075980ade2 | 5,313 | cc | C++ | graveyard/gui/CorrelationWidget.cc | AndrewAnnex/StereoPipeline | 084c3293c3a5382b052177c74388d9beeb79cf0b | [
"Apache-2.0"
] | 323 | 2015-01-10T12:34:24.000Z | 2022-03-24T03:52:22.000Z | graveyard/gui/CorrelationWidget.cc | AndrewAnnex/StereoPipeline | 084c3293c3a5382b052177c74388d9beeb79cf0b | [
"Apache-2.0"
] | 252 | 2015-07-27T16:36:31.000Z | 2022-03-31T02:34:28.000Z | graveyard/gui/CorrelationWidget.cc | AndrewAnnex/StereoPipeline | 084c3293c3a5382b052177c74388d9beeb79cf0b | [
"Apache-2.0"
] | 105 | 2015-02-28T02:37:27.000Z | 2022-03-14T09:17:30.000Z | // __BEGIN_LICENSE__
// Copyright (c) 2009-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NGT platform is licensed under the Apache License, Version 2.0 (the
// "License"); you may not use this file excep... | 35.898649 | 146 | 0.743083 | AndrewAnnex |
d227ed7477080fdc07ca1f44790ce2e1267cc918 | 607 | cpp | C++ | src/layer_renderer.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 3 | 2017-10-02T03:18:59.000Z | 2020-11-01T09:21:28.000Z | src/layer_renderer.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 2 | 2019-04-06T21:48:08.000Z | 2020-05-22T23:38:54.000Z | src/layer_renderer.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 1 | 2017-07-17T20:58:26.000Z | 2017-07-17T20:58:26.000Z | #include "../include/layer_renderer.hpp"
#include "../include/layer.hpp"
#include "../include/custom_shaders.hpp"
#include "../include/utility/file.hpp"
#include "../include/log.hpp"
#include <utility>
Layer_Renderer::Layer_Renderer(const Layer& layer, const Camera& camera) :
layer(layer), camera(camera), need... | 37.9375 | 76 | 0.711697 | GhostInABottle |
d2288d807dfd0544bdf76dee56337dd52911e511 | 1,252 | cpp | C++ | tools/PsfPlayer/Source/win32_ui/DebugSupport/WinUtils.cpp | Croden1999/Play- | 986648645a716122ece7178003ff106f047708bb | [
"BSD-2-Clause"
] | 1,720 | 2015-01-03T15:53:43.000Z | 2022-03-30T00:38:04.000Z | tools/PsfPlayer/Source/win32_ui/DebugSupport/WinUtils.cpp | Croden1999/Play- | 986648645a716122ece7178003ff106f047708bb | [
"BSD-2-Clause"
] | 1,112 | 2015-01-03T08:45:24.000Z | 2022-03-31T14:06:08.000Z | tools/PsfPlayer/Source/win32_ui/DebugSupport/WinUtils.cpp | Croden1999/Play- | 986648645a716122ece7178003ff106f047708bb | [
"BSD-2-Clause"
] | 329 | 2015-01-27T08:58:06.000Z | 2022-03-28T18:45:05.000Z | #include <cassert>
#include "WinUtils.h"
using namespace Framework;
HBITMAP WinUtils::CreateMask(HBITMAP nBitmap, uint32 nColor)
{
BITMAP bm;
GetObject(nBitmap, sizeof(BITMAP), &bm);
HBITMAP nMask = CreateBitmap(bm.bmWidth, bm.bmHeight, 1, 1, NULL);
HDC hDC1 = CreateCompatibleDC(0);
HDC hDC2 = CreateCompatible... | 21.220339 | 93 | 0.723642 | Croden1999 |
d22aac8fb80d854c44ab859af04e81414a0eddfc | 2,924 | hpp | C++ | include/GaussianProcessSupport.hpp | snowpac/snowpac | ff4c6a83e01fc4ef6a78cf9ff9bf9358f972b305 | [
"BSD-2-Clause"
] | 3 | 2019-08-04T20:18:00.000Z | 2021-06-22T23:50:27.000Z | include/GaussianProcessSupport.hpp | snowpac/snowpac | ff4c6a83e01fc4ef6a78cf9ff9bf9358f972b305 | [
"BSD-2-Clause"
] | null | null | null | include/GaussianProcessSupport.hpp | snowpac/snowpac | ff4c6a83e01fc4ef6a78cf9ff9bf9358f972b305 | [
"BSD-2-Clause"
] | null | null | null | #ifndef HGaussianProcessSupport
#define HGaussianProcessSupport
#include "GaussianProcess.hpp"
#include "BlackBoxData.hpp"
#include "VectorOperations.hpp"
#include <vector>
#include <float.h>
#include <cmath>
#include <iomanip>
#include <assert.h>
class GaussianProcessSupport : protected VectorOperations {
private:... | 33.227273 | 128 | 0.718878 | snowpac |
d22b9100f1c5259dfe49cfaffa13de14e50b80dc | 430 | hpp | C++ | mainapp/Classes/Common/Controls/DottedRect.hpp | JaagaLabs/GLEXP-Team-KitkitSchool | f94ea3e53bd05fdeb2a9edcc574bc054e575ecc0 | [
"Apache-2.0"
] | 45 | 2019-05-16T20:49:31.000Z | 2021-11-05T21:40:54.000Z | mainapp/Classes/Common/Controls/DottedRect.hpp | rdsmarketing/GLEXP-Team-KitkitSchool | 6ed6b76d17fd7560abc35dcdf7cf4a44ce70745e | [
"Apache-2.0"
] | 10 | 2019-05-17T13:38:22.000Z | 2021-07-31T19:38:27.000Z | mainapp/Classes/Common/Controls/DottedRect.hpp | rdsmarketing/GLEXP-Team-KitkitSchool | 6ed6b76d17fd7560abc35dcdf7cf4a44ce70745e | [
"Apache-2.0"
] | 29 | 2019-05-16T17:49:26.000Z | 2021-12-30T16:36:24.000Z | //
// DottedRect.hpp
// KitkitSchool
//
// Created by Gunho Lee on 1/6/17.
//
//
#ifndef DottedRect_hpp
#define DottedRect_hpp
#include <stdio.h>
#include "cocos2d.h"
using namespace cocos2d;
class DottedRect : public Node
{
public:
static DottedRect* create(Size prefferedSize);
virtual bool init(Size p... | 11.621622 | 50 | 0.637209 | JaagaLabs |
d22f225f252e9421c36e5091464181bd2aadf2ef | 20 | cpp | C++ | src/cpps_module.cpp | TansuoTro/CPPS | cca35d8dc2128aba7fa4a40cb6d83487e265cf3f | [
"MIT"
] | null | null | null | src/cpps_module.cpp | TansuoTro/CPPS | cca35d8dc2128aba7fa4a40cb6d83487e265cf3f | [
"MIT"
] | null | null | null | src/cpps_module.cpp | TansuoTro/CPPS | cca35d8dc2128aba7fa4a40cb6d83487e265cf3f | [
"MIT"
] | null | null | null | #include "cpps.h"
| 5 | 17 | 0.6 | TansuoTro |
d22fed470e5441b16b47a2389a360706168817c3 | 4,405 | cpp | C++ | uvcpp/uvcpplog.cpp | netmindms/libuvcpp | 1bf84a392ef681c9720ff5f0b3a4a4616da7aa9c | [
"MIT"
] | 7 | 2017-07-18T05:50:51.000Z | 2022-02-22T17:50:57.000Z | uvcpp/uvcpplog.cpp | netmindms/libuvcpp | 1bf84a392ef681c9720ff5f0b3a4a4616da7aa9c | [
"MIT"
] | null | null | null | uvcpp/uvcpplog.cpp | netmindms/libuvcpp | 1bf84a392ef681c9720ff5f0b3a4a4616da7aa9c | [
"MIT"
] | null | null | null | /*
* alog.cpp
*
* Created on: Apr 13, 2015
* Author: netmind
*/
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <vector>
#include <chrono>
#include <sys/time.h>
#include <pthread.h>
#include <thread>
#include <unistd.h>
#include <libgen.h>
#include <limits.h>
#include <stdlib.h>
#include... | 20.206422 | 104 | 0.620658 | netmindms |
d230fcc4f1e016884d0b9ab207c200a21082df75 | 949 | cpp | C++ | cpp/p74.cpp | voltrevo/project-euler | 0db5451f72b1353b295e56f928c968801e054444 | [
"MIT"
] | null | null | null | cpp/p74.cpp | voltrevo/project-euler | 0db5451f72b1353b295e56f928c968801e054444 | [
"MIT"
] | null | null | null | cpp/p74.cpp | voltrevo/project-euler | 0db5451f72b1353b295e56f928c968801e054444 | [
"MIT"
] | null | null | null | #include <cassert>
#include <iostream>
int factorials[10] = {1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880};
int NonRepeatLength(int n)
{
int count = 0;
while (count != 61)
{
++count;
int nCopy = n;
n = 0;
while (nCopy > 0)
{
n += factorials[nCopy % 10];... | 19.770833 | 69 | 0.42255 | voltrevo |
d23165a566a38bd2b648ef2b69ff4cab9d235301 | 7,215 | cpp | C++ | Source/Renderer.cpp | cstechfoodie/COMP371-Computer-Graphic-Scence-of-End-of-the-World | 91e47546d663e079b756fd90dab14c8954903a5a | [
"MIT"
] | 2 | 2019-08-09T00:54:29.000Z | 2020-11-16T22:49:27.000Z | Source/Renderer.cpp | cstechfoodie/COMP371-Computer-Graphic-Scence-of-End-of-the-World | 91e47546d663e079b756fd90dab14c8954903a5a | [
"MIT"
] | null | null | null | Source/Renderer.cpp | cstechfoodie/COMP371-Computer-Graphic-Scence-of-End-of-the-World | 91e47546d663e079b756fd90dab14c8954903a5a | [
"MIT"
] | 2 | 2019-08-08T13:42:35.000Z | 2019-08-09T22:20:41.000Z | //
// COMP 371 Assignment Framework
//
// Created by Nicolas Bergeron on 8/7/14.
// Updated by Gary Chang on 14/1/15
//
// Copyright (c) 2014-2019 Concordia University. All rights reserved.
//
#include "Renderer.h"
#include <stdio.h>
#include <string>
#include <iostream>
#include <fstream>
#include <algorithm>
using... | 25.052083 | 129 | 0.666112 | cstechfoodie |
d2321a2120d72dc2323e970052e660791f3dfc54 | 12,486 | hxx | C++ | include/idocp/hybrid/hybrid_time_discretization.hxx | z8674558/idocp | 946524db7ae4591b578be2409ca619961572e7be | [
"BSD-3-Clause"
] | 43 | 2020-10-13T03:43:45.000Z | 2021-09-23T05:29:48.000Z | include/idocp/hybrid/hybrid_time_discretization.hxx | z8674558/idocp | 946524db7ae4591b578be2409ca619961572e7be | [
"BSD-3-Clause"
] | 32 | 2020-10-21T09:40:16.000Z | 2021-10-24T00:00:04.000Z | include/idocp/hybrid/hybrid_time_discretization.hxx | z8674558/idocp | 946524db7ae4591b578be2409ca619961572e7be | [
"BSD-3-Clause"
] | 4 | 2020-10-08T05:47:16.000Z | 2021-10-15T12:15:26.000Z | #ifndef IDOCP_HYBRID_TIME_DISCRETIZATION_HXX_
#define IDOCP_HYBRID_TIME_DISCRETIZATION_HXX_
#include "idocp/hybrid/hybrid_time_discretization.hpp"
#include <cassert>
namespace idocp {
inline HybridTimeDiscretization::HybridTimeDiscretization(const double T,
... | 27.025974 | 80 | 0.685247 | z8674558 |
d233ce3c377159f4e760f9ceaf0322d6617761c1 | 947 | cpp | C++ | Codeforces/1283C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1283C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1283C.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int arr[200000];
bool received[200000];
bool notYet[200000];
set<int> ungifted;
set<int> undecided;
int main(){
int n, i;
cin >> n;
for(i=0; i<n; i++){
cin >> arr[i];
if(arr[i]>0){
received[arr[i]-1]=true;
}
}
for(i=0; i<n; i++){
if(!received[i]){
ungifted... | 18.568627 | 54 | 0.581837 | DT3264 |
d2343fd62ad6f7eaeac1d24879df504a306a0c32 | 63,957 | cpp | C++ | src/formula_object.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/formula_object.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/formula_object.cpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2003-2014 by David White <davewx7@gmail.com>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
incl... | 29.338073 | 358 | 0.67106 | gamobink |
d23639af87c1f15f9c808a8fdbe311cfc4f5bd68 | 369 | cpp | C++ | Split the Str Ing.cpp | Rogg-et/codechef-challenges | 7704901eaa3928730124dd43b57f213a82d19392 | [
"MIT"
] | 2 | 2020-10-30T16:22:31.000Z | 2021-10-06T14:30:07.000Z | Split the Str Ing.cpp | Rogg-et/codechef-challenges | 7704901eaa3928730124dd43b57f213a82d19392 | [
"MIT"
] | 2 | 2021-10-08T19:49:53.000Z | 2021-10-08T19:53:56.000Z | Split the Str Ing.cpp | Rogg-et/codechef-challenges | 7704901eaa3928730124dd43b57f213a82d19392 | [
"MIT"
] | 9 | 2020-10-17T19:11:38.000Z | 2021-10-19T01:55:18.000Z | #include<iostream>
using namespace std;
int main()
{ int t;
cin>>t;
for(int i=1;i<=t;i++)
{
int n;
cin>>n;
string s;
cin>>s;
int temp=0;
for(int j=0;j<n-1;j++)
{
if(s[j]==s[n-1]) {cout<<"YES"<<endl; temp++; break;}
}
if(te... | 17.571429 | 62 | 0.401084 | Rogg-et |
d237711ad34268858e17823c0c3062a4c6f6f720 | 8,090 | hpp | C++ | dakota-6.3.0.Windows.x86/include/InfoBase.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/InfoBase.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | null | null | null | dakota-6.3.0.Windows.x86/include/InfoBase.hpp | seakers/ExtUtils | b0186098063c39bd410d9decc2a765f24d631b25 | [
"BSD-2-Clause"
] | 1 | 2022-03-18T14:13:14.000Z | 2022-03-18T14:13:14.000Z | /*
================================================================================
PROJECT:
John Eddy's Genetic Algorithms (JEGA)
CONTENTS:
Definition of class InfoBase.
NOTES:
See notes under section "Class Definition" of this file.
PROGRAMMERS:
John Eddy (jpeddy... | 21.864865 | 80 | 0.331397 | seakers |
d238b410650a672e3f03549f0f15011e8fcbdb69 | 39,395 | hpp | C++ | tests/functional/coherence/net/messaging/NamedCacheTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-01T21:38:30.000Z | 2021-11-03T01:35:11.000Z | tests/functional/coherence/net/messaging/NamedCacheTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 1 | 2020-07-24T17:29:22.000Z | 2020-07-24T18:29:04.000Z | tests/functional/coherence/net/messaging/NamedCacheTest.hpp | chpatel3/coherence-cpp-extend-client | 4ea5267eae32064dff1e73339aa3fbc9347ef0f6 | [
"UPL-1.0",
"Apache-2.0"
] | 6 | 2020-07-10T18:40:58.000Z | 2022-02-18T01:23:40.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
#include "cxxtest/TestSuite.h"
#include "coherence/lang.ns"
#include "coherence/net/DefaultOperationalContext.hpp"
#include "coherence/net/Op... | 58.019146 | 180 | 0.666201 | chpatel3 |
d238e6d49bc7b71f72fb3d7b87c9c04e438e9638 | 1,081 | cpp | C++ | graphs/bellman-ford.cpp | KaisatoK/icpc-notebook | a9afbb35e143376947a06bc21339b5eb6b664c99 | [
"MIT"
] | 46 | 2018-01-23T01:43:23.000Z | 2020-10-03T15:16:25.000Z | graphs/bellman-ford.cpp | KaisatoK/icpc-notebook | a9afbb35e143376947a06bc21339b5eb6b664c99 | [
"MIT"
] | 1 | 2019-08-02T16:29:03.000Z | 2020-03-16T22:36:11.000Z | graphs/bellman-ford.cpp | KaisatoK/icpc-notebook | a9afbb35e143376947a06bc21339b5eb6b664c99 | [
"MIT"
] | 16 | 2018-07-12T05:30:49.000Z | 2021-02-19T01:40:49.000Z | /**********************************************************************************
* BELLMAN-FORD ALGORITHM (SHORTEST PATH TO A VERTEX - WITH NEGATIVE COST) *
* Time complexity: O(VE) *
* Usage: dist[node] ... | 51.47619 | 83 | 0.307123 | KaisatoK |
d2396b70e556838a690e2550db916c0dbdfc0a04 | 235 | cxx | C++ | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 107 | 2021-08-28T20:08:42.000Z | 2022-03-22T08:02:16.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | Software/CPU/myscrypt/build/cmake-3.12.3/Tests/CTestTest/SmallAndFast/intentional_compile_warning.cxx | duonglvtnaist/Multi-ROMix-Scrypt-Accelerator | 9cb9d96c72c3e912fb7cfd5a786e50e4844a1ee8 | [
"MIT"
] | 16 | 2021-08-30T06:57:36.000Z | 2022-03-22T08:05:52.000Z | #include <stdio.h>
int main(int argc, const char* argv[])
{
unsigned int i =
0; // "i<argc" should produce a "signed/unsigned comparison" warning
for (; i < argc; ++i) {
fprintf(stdout, "%s\n", argv[i]);
}
return 0;
}
| 19.583333 | 72 | 0.591489 | duonglvtnaist |
d23b45102eb6c362ae2fd611a14c81f7945db8c8 | 2,798 | cc | C++ | squim/image/codecs/webp_decoder_test.cc | baranov1ch/squim | 5bde052735e0dac7c87e8f7939d0168e6ee05857 | [
"Apache-2.0"
] | 2 | 2016-05-06T01:15:49.000Z | 2016-05-06T01:29:00.000Z | squim/image/codecs/webp_decoder_test.cc | baranov1ch/squim | 5bde052735e0dac7c87e8f7939d0168e6ee05857 | [
"Apache-2.0"
] | null | null | null | squim/image/codecs/webp_decoder_test.cc | baranov1ch/squim | 5bde052735e0dac7c87e8f7939d0168e6ee05857 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2015 Alexey Baranov <me@kotiki.cc>. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 35.417722 | 80 | 0.662974 | baranov1ch |
d23c7bd55965412a621c017d96b564190fa63b5e | 2,281 | cc | C++ | src/Board/Position.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | src/Board/Position.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | src/Board/Position.cc | rodrigowerberich/simple-terminal-chess | 73c62251c4d130a896270c1e27b297da3ab0933f | [
"MIT"
] | null | null | null | #include "Board/Position.hh"
#include <sstream>
std::ostream& operator<<(std::ostream& os, const Chess::Board::Position& position){
os << position.toString();
return os;
}
namespace Chess{
namespace Board{
std::string column_to_string(Column column){
switch (column){
case Chess::Boar... | 24.265957 | 112 | 0.567295 | rodrigowerberich |
d23ed2fdcfeafde9b72b24cd691149e3469a48b4 | 3,294 | cpp | C++ | Core/Util.cpp | TomasSirgedas/HadwigerNelsonTiling | 2862ef41a2de229eccd9854f283e5424e188f47d | [
"Unlicense"
] | null | null | null | Core/Util.cpp | TomasSirgedas/HadwigerNelsonTiling | 2862ef41a2de229eccd9854f283e5424e188f47d | [
"Unlicense"
] | null | null | null | Core/Util.cpp | TomasSirgedas/HadwigerNelsonTiling | 2862ef41a2de229eccd9854f283e5424e188f47d | [
"Unlicense"
] | null | null | null | #include "Util.h"
#include <string>
int mod( int x, int m ) { return x >= 0 ? x % m : (x+1) % m + m-1; }
Matrix4x4 toMatrix( const XYZ& a, const XYZ& b, const XYZ& c )
{
return Matrix4x4( a.x, b.x, c.x, 0,
a.y, b.y, c.y, 0,
a.z, b.z, c.z, 0,
0, 0... | 28.643478 | 114 | 0.440194 | TomasSirgedas |
d24296884e72420dcd0a9c5a2b95e4b4b785e462 | 3,841 | cpp | C++ | lumino/LuminoEngine/src/UI/Controls/UIListBoxItem.cpp | LuminoEngine/Lumino | 370db149da12abbe1c01a3a42b6caf07ca4000fe | [
"MIT"
] | 113 | 2020-03-05T01:27:59.000Z | 2022-03-28T13:20:51.000Z | lumino/LuminoEngine/src/UI/Controls/UIListBoxItem.cpp | LuminoEngine/Lumino | 370db149da12abbe1c01a3a42b6caf07ca4000fe | [
"MIT"
] | 13 | 2020-03-23T20:36:44.000Z | 2022-02-28T11:07:32.000Z | lumino/LuminoEngine/src/UI/Controls/UIListBoxItem.cpp | LuminoEngine/Lumino | 370db149da12abbe1c01a3a42b6caf07ca4000fe | [
"MIT"
] | 12 | 2020-12-21T12:03:59.000Z | 2021-12-15T02:07:49.000Z |
#include "Internal.hpp"
#include <LuminoEngine/Reflection/VMProperty.hpp>
//#include <LuminoEngine/UI/UICommand.hpp>
#include <LuminoEngine/UI/UIStyle.hpp>
//#include <LuminoEngine/UI/Layout/UILayoutPanel.hpp>
#include <LuminoEngine/UI/UIText.hpp>
#include <LuminoEngine/UI/Controls/UIListBox.hpp>
#include <LuminoEngi... | 23.857143 | 87 | 0.690706 | LuminoEngine |
d24449dba655adf423a4d716bd7da54dac97b636 | 11,344 | cpp | C++ | base/win32/fusion/tools/st/st.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/win32/fusion/tools/st/st.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/win32/fusion/tools/st/st.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "stdinc.h"
#include "st.h"
#include "create.h"
#include "install.h"
#include "csrss.h"
#include "wfp.h"
extern "C" { void (__cdecl * _aexit_rtn)(int); }
CEvent ResumeThreadsEvent;
CEvent StopEvent;
LONG ThreadsWaiting;
LONG TotalThreads;
CStringBuffer BaseDirectory;
PCWSTR g_pszImage = L"st";
FI... | 29.774278 | 185 | 0.579866 | npocmaka |
d2447998d8c4adfaf82075610bd9930c7d8bc32e | 3,537 | cc | C++ | omaha/statsreport/persistent_iterator-win32_unittest.cc | r3yn0ld4/omaha | 05eeb606c433b7d0622dc95a10afd0c8d7af11b6 | [
"Apache-2.0"
] | 1,975 | 2015-07-03T07:00:50.000Z | 2022-03-31T20:04:04.000Z | omaha/statsreport/persistent_iterator-win32_unittest.cc | rodriguez74745/omaha | a244aea380b48fc488a0555c3fa51a2e03677557 | [
"Apache-2.0"
] | 277 | 2015-07-18T00:13:30.000Z | 2022-03-31T22:18:39.000Z | omaha/statsreport/persistent_iterator-win32_unittest.cc | rodriguez74745/omaha | a244aea380b48fc488a0555c3fa51a2e03677557 | [
"Apache-2.0"
] | 685 | 2015-07-18T11:24:49.000Z | 2022-03-30T20:50:12.000Z | // Copyright 2006-2009 Google Inc.
//
// 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 ... | 26.593985 | 77 | 0.647441 | r3yn0ld4 |
d24519581d33bd589a6b3b62855eb25ca603d564 | 896 | cpp | C++ | src/lang/Expression.cpp | matthew-sirman/help2 | 6bd0dfefdb2912d68ce5093258721caad39da2d6 | [
"MIT"
] | null | null | null | src/lang/Expression.cpp | matthew-sirman/help2 | 6bd0dfefdb2912d68ce5093258721caad39da2d6 | [
"MIT"
] | null | null | null | src/lang/Expression.cpp | matthew-sirman/help2 | 6bd0dfefdb2912d68ce5093258721caad39da2d6 | [
"MIT"
] | null | null | null | //
// Created by matthew on 10/11/2020.
//
#include "../../include/lang/Expression.h"
std::shared_ptr<Constructor> Value::constructor() const {
return dataConstructor;
}
const Value &Value::parameter(size_t index) const {
return parameters[index];
}
std::ostream &operator<<(std::ostream &os, const Expressio... | 24.216216 | 68 | 0.564732 | matthew-sirman |
d2496eee5fa752b776eb501f6c0eca816a12fb13 | 3,644 | cxx | C++ | utils/pcTests/fastrtps/IncludesTest/IncludesTestClientExample.cxx | romain-gimenez/RPC | 8a02d1189d9baeaadb3c3e3d692c2ab77c9d8d3c | [
"Apache-2.0"
] | 39 | 2015-10-21T21:57:22.000Z | 2022-02-28T09:26:26.000Z | utils/pcTests/fastrtps/IncludesTest/IncludesTestClientExample.cxx | romain-gimenez/RPC | 8a02d1189d9baeaadb3c3e3d692c2ab77c9d8d3c | [
"Apache-2.0"
] | 14 | 2015-08-10T23:49:39.000Z | 2021-11-23T01:35:45.000Z | utils/pcTests/fastrtps/IncludesTest/IncludesTestClientExample.cxx | romain-gimenez/RPC | 8a02d1189d9baeaadb3c3e3d692c2ab77c9d8d3c | [
"Apache-2.0"
] | 28 | 2015-08-10T23:40:44.000Z | 2021-11-29T15:18:34.000Z | /*************************************************************************
* Copyright (c) 2012 eProsima. All rights reserved.
*
* This copy of FASTRPC is licensed to you under the terms described in the
* FASTRPC_LICENSE file included in this distribution.
*
******************************************************... | 23.509677 | 85 | 0.526619 | romain-gimenez |
d24e223eaf1e320a86b4a4f1cdebc94b2e323aab | 5,338 | hpp | C++ | bryllite-core/bcp_server.hpp | bryllite/bcp-concept-prototype | 3ded79a85ee4c876fbbd0c1ee51680346874494e | [
"MIT"
] | null | null | null | bryllite-core/bcp_server.hpp | bryllite/bcp-concept-prototype | 3ded79a85ee4c876fbbd0c1ee51680346874494e | [
"MIT"
] | null | null | null | bryllite-core/bcp_server.hpp | bryllite/bcp-concept-prototype | 3ded79a85ee4c876fbbd0c1ee51680346874494e | [
"MIT"
] | null | null | null | #pragma once
// bcp callback interface
class IBcpServerCallback
{
public:
virtual size_t qualify_votes_count( void ) = 0;
virtual int onBcpNewRoundReady( size_t prevRoundIdx ) = 0;
virtual int onBcpNewRoundStart( size_t roundIdx ) = 0;
virtual int onBcpProposeStart( size_t roundIdx ) = 0;
virtual int onBcpVoteS... | 25.54067 | 95 | 0.765268 | bryllite |
d24f2e7b5e101a8a7f042fbd470fd4516664eb2a | 8,719 | cpp | C++ | src/phyx-1.01/src/main_contrates.cpp | jlanga/smsk_selection | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 4 | 2021-07-18T05:20:20.000Z | 2022-01-03T10:22:33.000Z | src/phyx-1.01/src/main_contrates.cpp | jlanga/smsk_selection | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 1 | 2017-08-21T07:26:13.000Z | 2018-11-08T13:59:48.000Z | src/phyx-1.01/src/main_contrates.cpp | jlanga/smsk_orthofinder | 08070c6d4a6fbd9320265e1e698c95ba80f81123 | [
"MIT"
] | 2 | 2021-07-18T05:20:26.000Z | 2022-03-31T18:23:31.000Z |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cstring>
#include <getopt.h>
#include <map>
using namespace std;
#include "string_node_object.h"
#include "utils.h"
#include "sequence.h"
#include "seq_reader.h"
#include "tree_reader.h"
#include "tree.h"
#include "cont_models.h"
#i... | 34.058594 | 141 | 0.483886 | jlanga |
d2509887016f78cb99f053b6b3accb548821726a | 9,244 | cpp | C++ | chromium/third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/modules/accessibility/InspectorTypeBuilderHelper.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/accessibility/InspectorTypeBuilderHelper.h"
#include "core/InspectorTypeBuilder.h"
#include "core/dom/DOMNodeIds.h"
#include "modules/a... | 36.25098 | 143 | 0.738749 | wedataintelligence |
d250b4606b04f42520c3027df8548b1beebfa3ac | 2,300 | hpp | C++ | ThirdParty-mod/java2cpp/android/sax/StartElementListener.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/android/sax/StartElementListener.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/android/sax/StartElementListener.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: android.sax.StartElementListener
================================================================================*/
#ifndef J2CPP_INCLUDE... | 26.436782 | 97 | 0.69913 | kakashidinho |
d25125150261e787abbd4345a79b4659d1d4c03a | 6,255 | cc | C++ | components/web_resource/web_resource_service_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/web_resource/web_resource_service_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/web_resource/web_resource_service_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "components/prefs/p... | 37.909091 | 82 | 0.731735 | sarang-apps |
d251dbf8042beea6c819de0dc0bf008be59cd1fe | 502 | cpp | C++ | Source Code/Dynamics/Entities/Units/Vehicle.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 9 | 2018-05-02T19:53:41.000Z | 2021-10-18T18:30:47.000Z | Source Code/Dynamics/Entities/Units/Vehicle.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 7 | 2018-02-01T12:16:43.000Z | 2019-10-21T14:03:43.000Z | Source Code/Dynamics/Entities/Units/Vehicle.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 1 | 2020-09-08T03:28:22.000Z | 2020-09-08T03:28:22.000Z | #include "stdafx.h"
#include "Headers/Vehicle.h"
namespace Divide {
Vehicle::Vehicle()
: Unit(UnitType::UNIT_TYPE_VEHICLE),
_vehicleTypeMask(0)
{
_playerControlled = false;
}
void Vehicle::setVehicleTypeMask(const U32 mask) {
assert((mask &
~(to_base(VehicleType::COUNT... | 20.916667 | 63 | 0.643426 | IonutCava |