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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e88bd159b1f01871314107f0ef74a6bf743b93a | 1,031 | cpp | C++ | aws-cpp-sdk-elasticmapreduce/source/model/RunJobFlowResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-elasticmapreduce/source/model/RunJobFlowResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-elasticmapreduce/source/model/RunJobFlowResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/elasticmapreduce/model/RunJobFlowResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <... | 21.93617 | 100 | 0.745878 | Neusoft-Technology-Solutions |
7e8c99a09f05faf22d17891c7bfe7bc5f4fb7178 | 3,017 | cc | C++ | src/Core/GeometryPrimitives/OrientedBBox.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 92 | 2015-02-09T22:42:11.000Z | 2022-03-25T09:14:50.000Z | src/Core/GeometryPrimitives/OrientedBBox.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 1,618 | 2015-01-05T19:39:13.000Z | 2022-03-27T20:28:45.000Z | src/Core/GeometryPrimitives/OrientedBBox.cc | kimjohn1/SCIRun | 62ae6cb632100371831530c755ef0b133fb5c978 | [
"MIT"
] | 64 | 2015-02-20T17:51:23.000Z | 2021-11-19T07:08:08.000Z | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the... | 29.291262 | 90 | 0.698044 | kimjohn1 |
7e8d8b7af23e4711bce4d0f348ca4c824ecfad37 | 3,330 | cpp | C++ | lib/hsa/hsaTrackingBeamform.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 19 | 2018-12-14T00:51:52.000Z | 2022-02-20T02:43:50.000Z | lib/hsa/hsaTrackingBeamform.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 487 | 2018-12-13T00:59:53.000Z | 2022-02-07T16:12:56.000Z | lib/hsa/hsaTrackingBeamform.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 5 | 2019-05-09T19:52:19.000Z | 2021-03-27T20:13:21.000Z | #include "hsaTrackingBeamform.hpp"
#include "Config.hpp" // for Config
#include "chimeMetadata.hpp" // for MAX_NUM_BEAMS
#include "gpuCommand.hpp" // for gpuCommandType, gpuCommandType::KERNEL
#include "hsaDeviceInterface.hpp" // for hsaDeviceInterface, Config
#include "fmt.hpp" // for format... | 38.72093 | 99 | 0.686787 | eschnett |
7e9041ab19b10b9bdde25fc7195d0a9af2350a32 | 12,514 | cpp | C++ | stdlib/core.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | stdlib/core.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | stdlib/core.cpp | Oj18/Ethereal | 16a0a167693c27615e5c63044f1c38b5c8d863b2 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2019, Electrux
All rights reserved.
Using the BSD 3-Clause license for the project,
main LICENSE file resides in project's root directory.
Please read that file and understand the license terms
before using or altering the project.
*/
#include "../src/VM/Core.hpp"
#include "Core/Int.hpp"
#inclu... | 48.503876 | 136 | 0.464839 | Oj18 |
7e976f2e951cf95d0db5928d66d8f62ebd028116 | 1,004 | cpp | C++ | src/camera/pinhole-camera.cpp | yumcyaWiz/LTRE | dd65125bb133c345a10a3cf3d4c2a330b38ee82b | [
"MIT"
] | 3 | 2021-08-15T08:59:21.000Z | 2021-11-27T08:23:37.000Z | src/camera/pinhole-camera.cpp | yumcyaWiz/LTRE | dd65125bb133c345a10a3cf3d4c2a330b38ee82b | [
"MIT"
] | null | null | null | src/camera/pinhole-camera.cpp | yumcyaWiz/LTRE | dd65125bb133c345a10a3cf3d4c2a330b38ee82b | [
"MIT"
] | 1 | 2021-12-09T15:43:57.000Z | 2021-12-09T15:43:57.000Z | #include "LTRE/camera/pinhole-camera.hpp"
#include "spdlog/spdlog.h"
namespace LTRE {
PinholeCamera::PinholeCamera(const Vec3& camPos, const Vec3& camForward,
const Vec2& filmSize, float FOV)
: Camera(camPos, camForward, filmSize) {
// compute focal length from FOV
f = (0.5f * fi... | 32.387097 | 80 | 0.638446 | yumcyaWiz |
7e9ec8a811e638493f7698c050782d2b54816249 | 3,619 | hpp | C++ | modules/predicates/include/nt2/toolbox/predicates/function/simd/sse/sse2/is_gez.hpp | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | 1 | 2022-03-24T03:35:10.000Z | 2022-03-24T03:35:10.000Z | modules/predicates/include/nt2/toolbox/predicates/function/simd/sse/sse2/is_gez.hpp | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | null | null | null | modules/predicates/include/nt2/toolbox/predicates/function/simd/sse/sse2/is_gez.hpp | brycelelbach/nt2 | 73d7e8dd390fa4c8d251c6451acdae65def70e0b | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
/// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand
/// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI
///
/// Distributed under the Boost Software License, Version 1.0
/// ... | 34.466667 | 92 | 0.493506 | brycelelbach |
7e9fe639bcc6cb8a18084be9f50fccce240f8070 | 384 | cpp | C++ | osu!gen/src/osu!gen.cpp | cody-bui/osu--aim-trainer | 7525bf271cf565bf83795a9178e32319c8d06629 | [
"MIT"
] | 1 | 2019-12-29T08:14:42.000Z | 2019-12-29T08:14:42.000Z | osu!gen/src/osu!gen.cpp | cody-bui/osu-aim-trainer | 7525bf271cf565bf83795a9178e32319c8d06629 | [
"MIT"
] | 2 | 2020-02-05T03:57:54.000Z | 2020-02-05T11:19:52.000Z | osu!gen/src/osu!gen.cpp | cody-bui/Echo | 7525bf271cf565bf83795a9178e32319c8d06629 | [
"MIT"
] | null | null | null | #include "osu!gen.h"
#include <Gen/GenCircle.h>
OsuGen::Program::Program()
{
patterns = new EchoGen::PatternList("PatternList.txt");
int index = 0;
std::ofstream map("map.txt");
std::vector<int> beat = { 0,500,1000 };
GenCircle gc;
gc.Gen(patterns, beat, index, map);
}
void OsuGen::Program::Run... | 16.695652 | 57 | 0.625 | cody-bui |
7ea6a0a4f44f380c21cb1a0b39ec96603ceb4061 | 4,149 | cpp | C++ | External/RendererToolkit/Assimp/AssimpUnityBuild5.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | 187 | 2015-11-02T21:27:57.000Z | 2022-02-17T21:39:17.000Z | External/RendererToolkit/Assimp/AssimpUnityBuild5.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | null | null | null | External/RendererToolkit/Assimp/AssimpUnityBuild5.cpp | cofenberg/unrimp | 90310657f106eb83f3a9688329b78619255a1042 | [
"MIT"
] | 20 | 2015-11-04T19:17:01.000Z | 2021-11-18T11:23:25.000Z | /*********************************************************\
* Copyright (c) 2012-2021 The Unrimp Team
*
* 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 wit... | 54.592105 | 177 | 0.772957 | cofenberg |
7eab5869e8eedc903422a73a34ee3e766d9f2480 | 1,305 | cpp | C++ | C++/LeetCode/0051.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 4 | 2021-08-28T19:16:50.000Z | 2022-03-04T19:46:31.000Z | C++/LeetCode/0051.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 8 | 2021-10-29T19:10:51.000Z | 2021-11-03T12:38:00.000Z | C++/LeetCode/0051.cpp | Nimesh-Srivastava/DSA | db33aa138f0df8ab6015d2e8ec3ddde1c6838848 | [
"MIT"
] | 4 | 2021-09-06T05:53:07.000Z | 2021-12-24T10:31:40.000Z | class Solution {
vector<vector<string>> ans;
public:
bool isValid(vector<string>& board, int row, int col){
//column checking
for(int i = row; i >= 0; i--)
if(board[i][col] == 'Q')
return false;
//left diagonal
for(int i = r... | 24.166667 | 71 | 0.376245 | Nimesh-Srivastava |
7eaf6b5027c07f269ad29ea1ce51f259e6fbea1a | 575 | inl | C++ | CrossApp/math/CAQuaternion.inl | kingBook/cross-2.1.5 | de4e910bd2de55d79ab3aa105d3c2f99ffa60219 | [
"MIT"
] | 794 | 2015-01-01T04:59:48.000Z | 2022-03-09T03:31:13.000Z | CrossApp/math/CAQuaternion.inl | kingBook/cross-2.1.5 | de4e910bd2de55d79ab3aa105d3c2f99ffa60219 | [
"MIT"
] | 83 | 2015-01-04T06:00:35.000Z | 2021-05-20T08:48:38.000Z | CrossApp/math/CAQuaternion.inl | kingBook/cross-2.1.5 | de4e910bd2de55d79ab3aa105d3c2f99ffa60219 | [
"MIT"
] | 598 | 2015-01-02T02:38:13.000Z | 2022-03-09T03:31:37.000Z |
#include "math/CAQuaternion.h"
NS_CC_BEGIN
inline const Quaternion Quaternion::operator*(const Quaternion& q) const
{
Quaternion result(*this);
result.multiply(q);
return result;
}
inline Quaternion& Quaternion::operator*=(const Quaternion& q)
{
multiply(q);
return *this;
}
inline DPoint3D Quat... | 17.424242 | 72 | 0.643478 | kingBook |
7eb0fef8f15e20e9a813a0d88dd2a892d125e446 | 528 | cc | C++ | Dates/src/tools.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-SergioPerera | 58b6d9fac4667fead018dc94ccbfbefa1c59a8c2 | [
"MIT"
] | null | null | null | Dates/src/tools.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-SergioPerera | 58b6d9fac4667fead018dc94ccbfbefa1c59a8c2 | [
"MIT"
] | null | null | null | Dates/src/tools.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-SergioPerera | 58b6d9fac4667fead018dc94ccbfbefa1c59a8c2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <tools.h>
void Usage (int argc, char *argv[]){
if ( argc < 6 ){
std::cout << argv[0] << ": Falta un parámetro" << std::endl;
std::cout << "Pruebe " << argv[0] << " --help para más información" << std::endl;
}
std::string kHelpText = "Este programa necesita que se ... | 20.307692 | 122 | 0.592803 | ULL-ESIT-IB-2020-2021 |
7eb32dc621f8a1736557b2987e0fe669dd24881b | 130 | cpp | C++ | Code/Source/GPIO/RPI4Chip.cpp | MrAviator93/GPIO | 71b645eebad3cd5c8558c440ddb170f4292cc34b | [
"Unlicense"
] | null | null | null | Code/Source/GPIO/RPI4Chip.cpp | MrAviator93/GPIO | 71b645eebad3cd5c8558c440ddb170f4292cc34b | [
"Unlicense"
] | null | null | null | Code/Source/GPIO/RPI4Chip.cpp | MrAviator93/GPIO | 71b645eebad3cd5c8558c440ddb170f4292cc34b | [
"Unlicense"
] | null | null | null |
#include "RPI4Chip.hpp"
namespace GPIO
{
CRPI4GPIOChip::CRPI4GPIOChip()
: CGPIOChip( m_rpi4ChipName )
{ }
} // namespace GPIO
| 11.818182 | 30 | 0.715385 | MrAviator93 |
9d18f632cbd8454377cdc90cb567477f69e36ab6 | 465,649 | cpp | C++ | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__88.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__88.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | chipyard.TestHarness.LargeBoomAndRocketConfig/chipyard.TestHarness.LargeBoomAndRocketConfig/VTestHarness__88.cpp | vargandhi/ime-congs | 963be79b7b319d8e74edae09df7bdf3330371401 | [
"BSD-3-Clause"
] | null | null | null | // Verilated -*- C++ -*-
// DESCRIPTION: Verilator output: Design implementation internals
// See VTestHarness.h for the primary calling header
#include "VTestHarness.h"
#include "VTestHarness__Syms.h"
#include "verilated_dpi.h"
VL_INLINE_OPT void VTestHarness::_sequent__TOP__5503(VTestHarness__Syms* __restrict vlSy... | 113.989963 | 269 | 0.623257 | vargandhi |
9d1deeadee0dd75c5add4869c1dbe93d8129be2c | 8,603 | cc | C++ | arcane/src/arcane/tests/accelerator/NumArrayUnitTest.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/tests/accelerator/NumArrayUnitTest.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | arcane/src/arcane/tests/accelerator/NumArrayUnitTest.cc | JeromeDuboisPro/framework | d88925495e3787fdaf640c29728dcac385160188 | [
"Apache-2.0"
] | null | null | null | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2021 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 28.676667 | 88 | 0.479019 | JeromeDuboisPro |
9d2593d5a8c9520d28a7989fc28d92f06ac8ca10 | 2,698 | cpp | C++ | Chapter08/08_cuda_libs_and_other_languages/01_sgemm/cublasXtSgemm.cpp | feitang0/Learn-CUDA-Programming | 24f4a861464fc07baafc4171e040430ad3d811c6 | [
"MIT"
] | 405 | 2019-10-10T04:24:50.000Z | 2022-03-30T06:19:53.000Z | Chapter08/08_cuda_libs_and_other_languages/01_sgemm/cublasXtSgemm.cpp | shanliwa1/Learn-CUDA-Programming | c53f7de28fddeff45a3b4d9f3081000f8d1228e6 | [
"MIT"
] | 11 | 2019-10-15T18:10:55.000Z | 2022-02-10T06:03:51.000Z | Chapter08/08_cuda_libs_and_other_languages/01_sgemm/cublasXtSgemm.cpp | shanliwa1/Learn-CUDA-Programming | c53f7de28fddeff45a3b4d9f3081000f8d1228e6 | [
"MIT"
] | 130 | 2019-10-08T13:55:05.000Z | 2022-03-28T04:36:48.000Z | #include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cublasXt.h>
#define IDX2C(i, j, ld) (((j) * (ld)) + (i))
float* getMatrix(const int n_col, const int n_row);
void printMatrix(const float *matrix, const int ldm, const int n);
int main()
{
cublasXtHand... | 23.666667 | 130 | 0.559303 | feitang0 |
9d2771e050ae5c219064f91ce439c745f2fdc3a6 | 18,778 | hxx | C++ | Modules/OBIA/RCC8/include/otbImageToImageRCC8Calculator.hxx | xcorail/OTB | 092a93654c3b5d009e420f450fe9b675f737cdca | [
"Apache-2.0"
] | null | null | null | Modules/OBIA/RCC8/include/otbImageToImageRCC8Calculator.hxx | xcorail/OTB | 092a93654c3b5d009e420f450fe9b675f737cdca | [
"Apache-2.0"
] | null | null | null | Modules/OBIA/RCC8/include/otbImageToImageRCC8Calculator.hxx | xcorail/OTB | 092a93654c3b5d009e420f450fe9b675f737cdca | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* 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 ... | 35.497164 | 147 | 0.725477 | xcorail |
9d2bce7ce2889b855d0bbee3f8d2fe10360fd9b8 | 2,078 | cc | C++ | Clock/clock.cc | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | Clock/clock.cc | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | Clock/clock.cc | drewnoakes/bold-humanoid | 6025fcc92cdf3ce9486d4fe5af4f30ee7a7a3335 | [
"Apache-2.0"
] | null | null | null | #include "clock.hh"
#include "../util/assert.hh"
#include "../util/log.hh"
#include <string.h>
#include <sys/time.h>
#include <math.h>
using namespace bold;
double Clock::getMillis()
{
return timestampToMillis(getTimestamp());
}
double Clock::getSeconds()
{
return timestampToSeconds(getTimestamp());
}
double ... | 22.106383 | 121 | 0.633782 | drewnoakes |
9d2eff61f24b80ed8d0f5f7686b16c04b779d508 | 6,377 | cc | C++ | node_modules/nodegit/src/transport.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | node_modules/nodegit/src/transport.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | node_modules/nodegit/src/transport.cc | jiumx60rus/grishyGhost | c56241304da11b9a1307c6261cca50f7546981b1 | [
"MIT"
] | null | null | null | // This is a generated file, modify: generate/templates/class_content.cc.
#include <nan.h>
#include <string.h>
#include <chrono>
#include <thread>
extern "C" {
#include <git2.h>
#include <git2/sys/transport.h>
}
#include "../include/functions/copy.h"
#include "../include/macros.h"
#include "../include/transpor... | 26.460581 | 141 | 0.66928 | jiumx60rus |
9d2faead4b7debfd14e298acb66e168bf93cf973 | 9,682 | cpp | C++ | DebugEngine/MagoNatDE/DocTracker.cpp | WebFreak001/mago | 50ba766aabf5d395c3d15aaf080665906b76008b | [
"Apache-2.0"
] | 39 | 2015-02-26T10:22:42.000Z | 2021-11-13T23:07:57.000Z | DebugEngine/MagoNatDE/DocTracker.cpp | WebFreak001/mago | 50ba766aabf5d395c3d15aaf080665906b76008b | [
"Apache-2.0"
] | 29 | 2015-12-02T12:38:57.000Z | 2021-03-31T16:43:34.000Z | DebugEngine/MagoNatDE/DocTracker.cpp | WebFreak001/mago | 50ba766aabf5d395c3d15aaf080665906b76008b | [
"Apache-2.0"
] | 15 | 2015-03-03T07:28:43.000Z | 2021-03-30T14:22:00.000Z | /*
Copyright (c) 2010 Aldo J. Nunez
Licensed under the Apache License, Version 2.0.
See the LICENSE text file for details.
*/
#include "Common.h"
#include "DocTracker.h"
#include "Program.h"
#include "Module.h"
#include <algorithm>
namespace Mago
{
DocTracker::DocData::DocData()
... | 29.339394 | 129 | 0.517765 | WebFreak001 |
9d3182fac0df3ef532276de49ee1d00a073f437c | 878 | hpp | C++ | include/log.hpp | 946336/Decorator | 40158e609687dfc808f53732b00cd9de7d21992e | [
"MIT"
] | null | null | null | include/log.hpp | 946336/Decorator | 40158e609687dfc808f53732b00cd9de7d21992e | [
"MIT"
] | null | null | null | include/log.hpp | 946336/Decorator | 40158e609687dfc808f53732b00cd9de7d21992e | [
"MIT"
] | null | null | null | #ifndef CAPTAL_DECORATORS_LOG_HPP
#define CAPTAL_DECORATORS_LOG_HPP
#include "decorator.hpp"
template <class> class Log;
template <class R, class ... Args>
class Log<R(Args...)> : public Decorator<R(Args...)> {
public:
Log(std::function<R(Args...)> f, std::function<void(R, Args...)> logfun)
:... | 25.085714 | 80 | 0.571754 | 946336 |
9d38b0b6f864491a141cb269625424204800d4a8 | 1,514 | cpp | C++ | Leetcode/Hashing/intersection-of-two-arrays-ii.cpp | susantabiswas/competitive_coding | 49163ecdc81b68f5c1bd90988cc0dfac34ad5a31 | [
"MIT"
] | 2 | 2021-04-29T14:44:17.000Z | 2021-10-01T17:33:22.000Z | Leetcode/Hashing/intersection-of-two-arrays-ii.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | null | null | null | Leetcode/Hashing/intersection-of-two-arrays-ii.cpp | adibyte95/competitive_coding | a6f084d71644606c21840875bad78d99f678a89d | [
"MIT"
] | 1 | 2021-10-01T17:33:29.000Z | 2021-10-01T17:33:29.000Z | /*
https://leetcode.com/problems/intersection-of-two-arrays-ii/submissions/
Idea is to create a hash table and store the frequency of all the
elements of the smaller length array. Then iterate through the longer
array and check in the hash table if the element exists. If it does, add to
the li... | 30.897959 | 80 | 0.541612 | susantabiswas |
9d39d38841fee2fca1d6b2aee890ec493d60d6d7 | 9,940 | cxx | C++ | src/adplug/core/dmo.cxx | CBke/audacious-plugins | f17617a38d8412ca30750775208733dc1287e122 | [
"BSD-3-Clause"
] | null | null | null | src/adplug/core/dmo.cxx | CBke/audacious-plugins | f17617a38d8412ca30750775208733dc1287e122 | [
"BSD-3-Clause"
] | null | null | null | src/adplug/core/dmo.cxx | CBke/audacious-plugins | f17617a38d8412ca30750775208733dc1287e122 | [
"BSD-3-Clause"
] | null | null | null | /*
Adplug - Replayer for many OPL2/OPL3 audio file formats.
Copyright (C) 1999 - 2004, 2006 Simon Peter, <dn.tlp@gmx.net>, et al.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; eith... | 21.750547 | 80 | 0.544064 | CBke |
9d3a42fafeff22abbf2b799afd1fcdff573194b3 | 5,466 | cpp | C++ | unittests/test_mgpu_Hemm.cpp | brunowu/ChASE | 89649df6027cec70709f55d277b3625989e8cb3c | [
"BSD-3-Clause"
] | 4 | 2021-03-18T14:04:17.000Z | 2021-11-17T18:21:57.000Z | unittests/test_mgpu_Hemm.cpp | brunowu/ChASE | 89649df6027cec70709f55d277b3625989e8cb3c | [
"BSD-3-Clause"
] | null | null | null | unittests/test_mgpu_Hemm.cpp | brunowu/ChASE | 89649df6027cec70709f55d277b3625989e8cb3c | [
"BSD-3-Clause"
] | 3 | 2021-03-18T14:14:51.000Z | 2021-08-19T10:21:13.000Z | // This file is a part of the ChASE library.
// Copyright (c) 2015-2021, Simulation and Data Laboratory Quantum Materials,
// Forschungszentrum Juelich GmbH, Germany.
// All rights reserved.
// ChASE is licensed under the 3-clause BSD license (BSD 2.0).
// https://github.com/ChASE-library/ChASE/
/**
* The program tes... | 24.511211 | 140 | 0.60794 | brunowu |
9d3a471ea9f488055dad8efb9f7b323e0f5c5a4f | 3,996 | hpp | C++ | cpp-projects/base/utility/benchmark.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/base/utility/benchmark.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | null | null | null | cpp-projects/base/utility/benchmark.hpp | FlorianLance/toolbox | 87882a14ec86852d90527c81475b451b9f6e12cf | [
"MIT"
] | 1 | 2021-07-06T14:47:41.000Z | 2021-07-06T14:47:41.000Z |
/*******************************************************************************
** Toolbox-base **
** MIT License **
** Copyright (c) [2018] [Florian Lance] ... | 44.898876 | 169 | 0.556557 | FlorianLance |
9d3b584cc08a3a829f6ab381d62449e67330ccf0 | 4,717 | cpp | C++ | client.cpp | nickfrostatx/sdn | c34860847f0eca5dd72c827bee047c143720cd86 | [
"MIT"
] | 1 | 2020-06-20T12:24:28.000Z | 2020-06-20T12:24:28.000Z | client.cpp | nickfrostatx/sdn | c34860847f0eca5dd72c827bee047c143720cd86 | [
"MIT"
] | null | null | null | client.cpp | nickfrostatx/sdn | c34860847f0eca5dd72c827bee047c143720cd86 | [
"MIT"
] | null | null | null | #include "client.h"
#include <arpa/inet.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "beacon.h"
#include "event.h"
#include "openflow.h"
#define CLIENT_STATE_WAITING_HEADER 1
#define CLIENT_STATE_WAITING_PACKET 2
#define READ_PARTIAL 1
#define READ_COMP... | 24.957672 | 77 | 0.552894 | nickfrostatx |
9d3fdc7afd63a43b912876f98dfe2ce33685e3f6 | 199 | cpp | C++ | Week 8/Week 8(2)/Source.cpp | liuyuwang2016/-C- | 11e58e25514923d491e77fae20f3bf25ff0136c7 | [
"MIT"
] | null | null | null | Week 8/Week 8(2)/Source.cpp | liuyuwang2016/-C- | 11e58e25514923d491e77fae20f3bf25ff0136c7 | [
"MIT"
] | null | null | null | Week 8/Week 8(2)/Source.cpp | liuyuwang2016/-C- | 11e58e25514923d491e77fae20f3bf25ff0136c7 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int a = 0, b = 0, sum = 0;
cin >> a;
for (int i = 0; i < 5; i++) {
cin >> b;
if (b < a) {
sum += b;
}
}
cout << sum;
return 0;
} | 12.4375 | 30 | 0.457286 | liuyuwang2016 |
9d4483eb4f307931e047cd1b3c8e766a0045e352 | 1,843 | cpp | C++ | src/WerkTest/OS/Time.cpp | AgalmicVentures/Werk | 99afecb310aadb90d941a3a1031bc91b33edac59 | [
"MIT"
] | 27 | 2017-04-22T22:46:07.000Z | 2022-03-30T21:14:16.000Z | src/WerkTest/OS/Time.cpp | AgalmicVentures/Werk | 99afecb310aadb90d941a3a1031bc91b33edac59 | [
"MIT"
] | null | null | null | src/WerkTest/OS/Time.cpp | AgalmicVentures/Werk | 99afecb310aadb90d941a3a1031bc91b33edac59 | [
"MIT"
] | 14 | 2017-02-26T09:28:02.000Z | 2022-03-03T16:33:47.000Z |
/*
* Copyright (c) 2015-2021 Agalmic Ventures LLC (www.agalmicventures.com)
*
* 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
* ri... | 28.796875 | 79 | 0.737927 | AgalmicVentures |
9d4711cecfc49e67c51a3be85b6427f0d432c37f | 1,867 | cpp | C++ | UVa 11931 - Maze Escape/sample/11931 - Maze Escape.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 11931 - Maze Escape/sample/11931 - Maze Escape.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 11931 - Maze Escape/sample/11931 - Maze Escape.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
#include <string.h>
#include <queue>
using namespace std;
int sx, sy, ex, ey, bx, by, cx, cy;
int n, m;
char g[32][32];
const int dx[] = {0, 0, 1, -1};
const int dy[] = {1, -1, 0, 0};
int dist[25][25][25][25];
int bfs() {
memset(dist, 0, sizeof(dist));
dist[sx][sy][bx][by] = 1;
queue<int> X, Y, B... | 20.744444 | 56 | 0.42421 | tadvi |
9d507214940608719380b8735813a6a0d2baf5c5 | 1,030 | cpp | C++ | algorithms/image-smoother.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 41 | 2018-07-03T07:35:30.000Z | 2021-09-25T09:33:43.000Z | algorithms/image-smoother.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 2 | 2018-07-23T10:50:11.000Z | 2020-10-06T07:34:29.000Z | algorithms/image-smoother.cpp | Chronoviser/leetcode-1 | 65ee0504d64c345f822f216fef6e54dd62b8f858 | [
"MIT"
] | 7 | 2018-07-06T13:43:18.000Z | 2020-10-06T02:29:57.000Z | class Solution
{
private:
inline int average(vector<int> nums)
{
return accumulate(nums.begin(), nums.end(), 0, [](int a, int b) -> int { return a + b; }) / nums.size();
}
public:
vector<vector<int>> imageSmoother(vector<vector<int>>& M)
{
if (M.empty()) return {};
vector<p... | 33.225806 | 112 | 0.418447 | Chronoviser |
9d53c2b841bdbbb4ced1da76cbb7ebd013c03466 | 2,311 | hh | C++ | packages/eigen-eigen-323c052e1731/bench/btl/data/gnuplot_common_settings.hh | k4rth33k/dnnc-operators | a7fe3f1240c12b3438558def71fbfcd4520446c3 | [
"Apache-2.0"
] | 5 | 2019-08-16T14:35:17.000Z | 2020-07-11T23:59:22.000Z | packages/eigen-eigen-323c052e1731/bench/btl/data/gnuplot_common_settings.hh | k4rth33k/dnnc-operators | a7fe3f1240c12b3438558def71fbfcd4520446c3 | [
"Apache-2.0"
] | 6 | 2019-08-12T04:38:14.000Z | 2019-09-04T16:32:13.000Z | packages/eigen-eigen-323c052e1731/bench/btl/data/gnuplot_common_settings.hh | k4rth33k/dnnc-operators | a7fe3f1240c12b3438558def71fbfcd4520446c3 | [
"Apache-2.0"
] | 7 | 2019-08-15T13:29:00.000Z | 2019-09-09T17:08:04.000Z | set noclip points
set clip one
set noclip two
set bar 1.000000
set border 31 lt -1 lw 1.000
set xdata
set ydata
set zdata
set x2data
set y2data
set boxwidth
set dummy x,y
set format x "%g"
set format y "%g"
set format x2 "%g"
set format y2 "%g"
set format z "%g"
set angles radians
set nogrid
set key ... | 26.261364 | 93 | 0.698832 | k4rth33k |
9d56621c3d8573153cb90209b3a5647b365d1ae1 | 634 | cpp | C++ | lib/CAPI/InitLLVM.cpp | cathyzhyi/mlir-npcomp | 79a3f639bfb449ba1409ff6dff161badf5a11b44 | [
"Apache-2.0"
] | null | null | null | lib/CAPI/InitLLVM.cpp | cathyzhyi/mlir-npcomp | 79a3f639bfb449ba1409ff6dff161badf5a11b44 | [
"Apache-2.0"
] | 6 | 2020-10-21T18:18:10.000Z | 2021-04-02T20:38:28.000Z | lib/CAPI/InitLLVM.cpp | cathyzhyi/mlir-npcomp | 79a3f639bfb449ba1409ff6dff161badf5a11b44 | [
"Apache-2.0"
] | null | null | null | //===- InitLLVM.cpp - C API for initializing LLVM -------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 33.368421 | 80 | 0.621451 | cathyzhyi |
9d59091ebacbd924af8f4763d789f12d72aafd43 | 26,554 | cpp | C++ | src/systems/physics/wrappers/ode_physics.cpp | vi3itor/Blunted2 | 318af452e51174a3a4634f3fe19b314385838992 | [
"Unlicense"
] | 56 | 2020-07-22T22:11:06.000Z | 2022-03-09T08:11:43.000Z | GameplayFootball/src/systems/physics/wrappers/ode_physics.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 9 | 2021-04-22T07:06:25.000Z | 2022-01-22T12:54:52.000Z | GameplayFootball/src/systems/physics/wrappers/ode_physics.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 20 | 2017-11-07T16:52:32.000Z | 2022-01-25T02:42:48.000Z | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#include "ode_physics.hpp"
#include "base/log.hpp"
#include "... | 33.401258 | 191 | 0.644423 | vi3itor |
9d59acabf6c5bf0c822f77bd824d6f4c6c05bed5 | 5,226 | cpp | C++ | src/Module.cpp | songhan/Halide | e7f78ac4ed6e154474732b1d53b9418fe353b0c0 | [
"MIT"
] | null | null | null | src/Module.cpp | songhan/Halide | e7f78ac4ed6e154474732b1d53b9418fe353b0c0 | [
"MIT"
] | null | null | null | src/Module.cpp | songhan/Halide | e7f78ac4ed6e154474732b1d53b9418fe353b0c0 | [
"MIT"
] | 1 | 2021-02-18T14:18:09.000Z | 2021-02-18T14:18:09.000Z | #include "Module.h"
#include <fstream>
#include "CodeGen_C.h"
#include "Debug.h"
#include "LLVM_Headers.h"
#include "LLVM_Output.h"
#include "LLVM_Runtime_Linker.h"
#include "Outputs.h"
#include "StmtToHtml.h"
namespace Halide {
namespace Internal {
struct ModuleContents {
mutable RefCount ref_count;
std::... | 33.5 | 116 | 0.629927 | songhan |
9d5d93c98491094b849fbcc4b8800d8b831d9a1d | 376 | cpp | C++ | sandbox/t_read1.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | 1 | 2018-05-17T09:01:12.000Z | 2018-05-17T09:01:12.000Z | sandbox/t_read1.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | null | null | null | sandbox/t_read1.cpp | f-fathurrahman/ffr-pspw-dft-c | 5e673e33385eb467d99fcd992b350614c2709740 | [
"MIT"
] | null | null | null | // reading a text file
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main()
{
string line;
ifstream myfile ("example.txt");
if (myfile.is_open()) {
while(myfile.good()) {
getline(myfile,line);
cout << line << endl;
}
myfile.close();
}
else{
cou... | 14.461538 | 42 | 0.587766 | f-fathurrahman |
9d68bfca2418dc0189c9a50c64a2ff088c05fc32 | 2,722 | cpp | C++ | RogueEngine/Source/CameraShake.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | 1 | 2019-06-18T20:07:47.000Z | 2019-06-18T20:07:47.000Z | RogueEngine/Source/CameraShake.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | RogueEngine/Source/CameraShake.cpp | silferysky/RogueArcher | 3c77696260f773a0b7adb88b991e09bb35069901 | [
"FSFAP"
] | null | null | null | /* Start Header ************************************************************************/
/*!
\file CameraShake.cpp
\project Exale
\author Javier Foo, javier.foo, 440002318 (100%)
\par javier.foo\@digipen.edu
\date 1 December,2019
\brief This file contains the func... | 34.455696 | 214 | 0.671565 | silferysky |
9d6a28f72bbd18305f16710e2890b9ee0abd8fa9 | 5,540 | cpp | C++ | tests/testSpiderWalking.cpp | danbarla/GTDynamics | 0448b359aff9e0e784832666e4048ee01c8b082d | [
"BSD-2-Clause"
] | null | null | null | tests/testSpiderWalking.cpp | danbarla/GTDynamics | 0448b359aff9e0e784832666e4048ee01c8b082d | [
"BSD-2-Clause"
] | null | null | null | tests/testSpiderWalking.cpp | danbarla/GTDynamics | 0448b359aff9e0e784832666e4048ee01c8b082d | [
"BSD-2-Clause"
] | null | null | null | /* ----------------------------------------------------------------------------
* GTDynamics Copyright 2020, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* See LICENSE for the license information
* -------------------------------------------------------------------------- ... | 35.741935 | 80 | 0.686643 | danbarla |
9d6a3d694f41db9116118032cadb45ff6564c017 | 1,398 | cpp | C++ | test/unit_string_view_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | null | null | null | test/unit_string_view_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | null | null | null | test/unit_string_view_tests.cpp | dsyoi/iutest | b7b08c6ac4c75f98f87aa5756244afc93e4b624f | [
"BSD-3-Clause"
] | null | null | null | //======================================================================
//-----------------------------------------------------------------------
/**
* @file unit_string_view_tests.cpp
* @brief iutest test
*
* @author t.shirayanagi
* @par copyright
* Copyright (C) 2019, Takazumi Shiray... | 30.391304 | 73 | 0.478541 | dsyoi |
9d6a4974b28e6401543419dca620fc370d090518 | 19,768 | cpp | C++ | Classes/data/Item.cpp | thales-vogso/deer | f3492538881f632b55be657bb9529027897b0e63 | [
"Apache-2.0"
] | null | null | null | Classes/data/Item.cpp | thales-vogso/deer | f3492538881f632b55be657bb9529027897b0e63 | [
"Apache-2.0"
] | null | null | null | Classes/data/Item.cpp | thales-vogso/deer | f3492538881f632b55be657bb9529027897b0e63 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
* @desc 道具数据
* @date 2015-1-7
* @author 110101
* @file data/Item.cpp
******************************************************************************/
#include "Item.h"
#include "utils/DeerUtils.h"
#include "data/Task.h"
USING_NS_CC;
n... | 36.539741 | 241 | 0.571783 | thales-vogso |
9d6a671bbe4f5d64cfc9d5cd4a9235d8d0e0a5c5 | 1,889 | cpp | C++ | cpp/template/appInterface.cpp | marian42/ledcpp | 9f9e7079c415c48cdfe8ad70a62146d7b86097b5 | [
"MIT"
] | 9 | 2016-09-21T21:30:05.000Z | 2021-11-05T21:44:58.000Z | cpp/template/appInterface.cpp | marian42/ledcpp | 9f9e7079c415c48cdfe8ad70a62146d7b86097b5 | [
"MIT"
] | null | null | null | cpp/template/appInterface.cpp | marian42/ledcpp | 9f9e7079c415c48cdfe8ad70a62146d7b86097b5 | [
"MIT"
] | 2 | 2017-05-19T23:21:30.000Z | 2020-08-17T05:05:51.000Z | #include "appInterface.h"
void runAppTask() {
try {
app->run();
}
catch(InterruptException exception) { }
}
void start() {
if (app != 0) {
return;
}
app = new <AppName>();
appThread = new thread(runAppTask);
}
void stop() {
if (app == 0) {
return;
}
app->stop();
if (appTh... | 19.080808 | 83 | 0.541027 | marian42 |
9d6e706d4c87a758c034b76376569cc19e48f238 | 4,620 | cc | C++ | utilities/ioprof/ioprof.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1,658 | 2020-12-21T04:53:44.000Z | 2022-03-30T16:16:07.000Z | utilities/ioprof/ioprof.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 105 | 2020-12-21T09:09:55.000Z | 2022-03-28T09:57:36.000Z | utilities/ioprof/ioprof.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 151 | 2020-12-21T09:25:34.000Z | 2022-03-13T08:58:37.000Z | #include "ioprof.h"
#include <sys/types.h>
#include <unistd.h>
#include <time.h>
#include <assert.h>
// Author: Haiping Zhao (ByteDance)
// Date: July 30, 2020
using namespace std;
using namespace IOProfiler;
///////////////////////////////////////////////////////////////////////////////////////////////////
Data D... | 26.551724 | 99 | 0.583333 | shampoo365 |
9d796f5468845dc023d999f368b0e9749df9d5c6 | 5,236 | cpp | C++ | src/Library/PhotonMapping/ShadowPhotonMap.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | 1 | 2018-12-20T19:31:02.000Z | 2018-12-20T19:31:02.000Z | src/Library/PhotonMapping/ShadowPhotonMap.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | src/Library/PhotonMapping/ShadowPhotonMap.cpp | aravindkrishnaswamy/rise | 297d0339a7f7acd1418e322a30a21f44c7dbbb1d | [
"BSD-2-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////
//
// ShadowPhotonMap.cpp - Implements the shadow photon map
//
// Author: Aravind Krishnaswamy
// Date of Birth: May 14, 2004
// Tabs: 4
// Comments:
//
// License Information: Please see the attached LICENSE.TXT file
//
////////////////////... | 24.815166 | 91 | 0.660237 | aravindkrishnaswamy |
9d7d1c3a289a993fcef79336b32d8e5b933ee73b | 1,394 | cpp | C++ | amazon_interview_practice/Arrange_given_numbers_to_form_the_biggest_number/problem/problem/solve.cpp | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | amazon_interview_practice/Arrange_given_numbers_to_form_the_biggest_number/problem/problem/solve.cpp | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | amazon_interview_practice/Arrange_given_numbers_to_form_the_biggest_number/problem/problem/solve.cpp | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | // Driver program to test above functions
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int strcmp(string &a, string &b)
{
int i;
for (i = 0; (i < a.size()) && (i < b.size()); ++i) {
if (a[i] < b[i]) {
return -1;
} else if (a[i] > b[i]) {... | 17.425 | 71 | 0.494261 | ldy121 |
9d7f743d5da232c1f3cf8e56c554a88616a0f18d | 253 | hpp | C++ | sfml/python/src/String.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | sfml/python/src/String.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | sfml/python/src/String.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | #ifndef __PYSTRING_HPP
#define __PYSTRING_HPP
#include <SFML/Graphics/String.hpp>
#include <iostream>
#include <Python.h>
#include <structmember.h>
typedef struct {
PyObject_HEAD
sf::String *obj;
} PySfString;
void PySfString_InitConst();
#endif
| 14.055556 | 35 | 0.762846 | fu7mu4 |
9d7f88089e300e081ee3c7b2d16aa0f88e3a9f46 | 1,748 | cpp | C++ | libraries/HUB08SPI/HUB08SPI.cpp | bethanysciences/arduino | 04df9f70f25a3aacc244f0bbc16e1c83087cdc11 | [
"MIT"
] | 24 | 2016-02-14T07:30:55.000Z | 2021-12-18T16:24:44.000Z | libraries/HUB08SPI/HUB08SPI.cpp | bethanysciences/arduino | 04df9f70f25a3aacc244f0bbc16e1c83087cdc11 | [
"MIT"
] | 8 | 2016-04-21T20:42:29.000Z | 2021-08-29T10:46:01.000Z | libraries/HUB08SPI/HUB08SPI.cpp | bethanysciences/arduino | 04df9f70f25a3aacc244f0bbc16e1c83087cdc11 | [
"MIT"
] | 13 | 2016-02-14T02:39:02.000Z | 2022-01-11T07:48:31.000Z | #include "HUB08SPI.h"
#include "Arduino.h"
HUB08SPI::HUB08SPI()
{
}
void HUB08SPI::begin(uint8_t *displaybuf, uint16_t width, uint16_t height)
{
this->displaybuf = displaybuf;
this->width = width;
this->height = height;
DDRD |= 0xFC;
TCCR2B = TCCR2B & 0b11111000 | 0x01; //32khz pwm on pin 3 & 11
... | 23.945205 | 90 | 0.533753 | bethanysciences |
9d80ef607aa1cfa4d98b62bd57421f7494783ecb | 2,327 | cpp | C++ | src/datasync/rothreadedbackend/threadedclient.cpp | wangyangyangisme/QtDataSync | 0cc47ca4e8aeee2683aae52662c40f1a7c7b1d93 | [
"BSD-3-Clause"
] | 1 | 2022-02-22T07:18:33.000Z | 2022-02-22T07:18:33.000Z | src/datasync/rothreadedbackend/threadedclient.cpp | wyyrepo/QtDataSync | 0cc47ca4e8aeee2683aae52662c40f1a7c7b1d93 | [
"BSD-3-Clause"
] | null | null | null | src/datasync/rothreadedbackend/threadedclient.cpp | wyyrepo/QtDataSync | 0cc47ca4e8aeee2683aae52662c40f1a7c7b1d93 | [
"BSD-3-Clause"
] | 1 | 2018-12-20T04:31:16.000Z | 2018-12-20T04:31:16.000Z | #include "threadedclient_p.h"
#include "threadedserver_p.h"
#include <chrono>
using namespace std::chrono;
#if QT_HAS_INCLUDE(<chrono>)
#define scdtime(x) x
#else
#define scdtime(x) duration_cast<milliseconds>(x).count()
#endif
using namespace QtDataSync;
ThreadedClientIoDevice::ThreadedClientIoDevice(QObject *pare... | 23.039604 | 89 | 0.752041 | wangyangyangisme |
9d84a2088b31379b8e4a08b36f0837581a8a9f5b | 3,078 | cpp | C++ | smacc/src/smacc/components/cp_ros_control_interface.cpp | koyalbhartia/SMACC | 609f017a91bc258deb0b64cac5f198d54f19c9e3 | [
"BSD-3-Clause"
] | 203 | 2019-04-11T16:42:10.000Z | 2022-03-18T06:02:56.000Z | smacc/src/smacc/components/cp_ros_control_interface.cpp | koyalbhartia/SMACC | 609f017a91bc258deb0b64cac5f198d54f19c9e3 | [
"BSD-3-Clause"
] | 50 | 2019-04-18T09:09:48.000Z | 2022-03-29T21:38:21.000Z | smacc/src/smacc/components/cp_ros_control_interface.cpp | koyalbhartia/SMACC | 609f017a91bc258deb0b64cac5f198d54f19c9e3 | [
"BSD-3-Clause"
] | 35 | 2019-09-10T15:06:37.000Z | 2022-02-02T09:10:08.000Z | #include <smacc/client_base_components/cp_ros_control_interface.h>
#include <controller_manager_msgs/ListControllerTypes.h>
#include <controller_manager_msgs/ListControllers.h>
#include <controller_manager_msgs/LoadController.h>
#include <controller_manager_msgs/ReloadControllerLibraries.h>
#include <controller_manage... | 27.72973 | 95 | 0.743665 | koyalbhartia |
9d8524b3266dfa37adf01ae68012c86c844b06ff | 2,407 | cpp | C++ | Spiky_Client/Source/Spiky_Client/Private/Handlers/Logics/InputChecking.cpp | VadimDev/Spiky-Project | 4f60fb6b5863a2d9f3423c9f2a296deee677bf10 | [
"MIT"
] | 71 | 2017-07-25T09:35:05.000Z | 2022-03-29T00:15:52.000Z | Spiky_Client/Source/Spiky_Client/Private/Handlers/Logics/InputChecking.cpp | Hengle/Spiky-Project | 4f60fb6b5863a2d9f3423c9f2a296deee677bf10 | [
"MIT"
] | 2 | 2018-03-28T19:30:45.000Z | 2018-12-10T12:45:01.000Z | Spiky_Client/Source/Spiky_Client/Private/Handlers/Logics/InputChecking.cpp | Hengle/Spiky-Project | 4f60fb6b5863a2d9f3423c9f2a296deee677bf10 | [
"MIT"
] | 25 | 2017-07-28T20:39:45.000Z | 2021-12-29T15:35:11.000Z | // Copyright (c) 2017, Vadim Petrov - MIT License
#include "Spiky_Client.h"
#include "InputChecking.h"
#include "Descriptors.h"
#include "Runtime/Engine/Classes/Engine/Texture2D.h"
#include "SpikyGameInstance.h"
#include "DifferentMix.h"
#include "RegWidgets.h"
#include "Runtime/UMG/Public/Components/Image.h"
#include... | 41.5 | 153 | 0.797673 | VadimDev |
9d8bb019fbd9e5011a5b60e831e028e972be644f | 3,710 | cxx | C++ | src/proc/gsx_process_cycle.cxx | ShixianGuo/gserver_framework | 02d5a1cd934eaa055b33eadbaa4827f161565c5a | [
"MIT"
] | 7 | 2020-04-02T14:12:46.000Z | 2020-05-03T09:16:51.000Z | src/proc/gsx_process_cycle.cxx | ShixianGuo/gserver_framework | 02d5a1cd934eaa055b33eadbaa4827f161565c5a | [
"MIT"
] | null | null | null | src/proc/gsx_process_cycle.cxx | ShixianGuo/gserver_framework | 02d5a1cd934eaa055b33eadbaa4827f161565c5a | [
"MIT"
] | 1 | 2020-08-17T05:20:11.000Z | 2020-08-17T05:20:11.000Z |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <errno.h>
#include <unistd.h>
#include "gsx_func.h"
#include "gsx_macro.h"
#include "gsx_c_conf.h"
static void gsx_start_worker_processes(int threadnums);
static int gsx_spawn_process(int thread... | 23.043478 | 126 | 0.597574 | ShixianGuo |
9d8dd2949f2c736abf96fb58ce758df08dfda28b | 2,210 | cpp | C++ | src/gen_res/main.cpp | suijingfeng/libhut | e0d5dd29d66f7fb40c09e58f570ed40787ed1a2f | [
"Unlicense",
"MIT"
] | null | null | null | src/gen_res/main.cpp | suijingfeng/libhut | e0d5dd29d66f7fb40c09e58f570ed40787ed1a2f | [
"Unlicense",
"MIT"
] | null | null | null | src/gen_res/main.cpp | suijingfeng/libhut | e0d5dd29d66f7fb40c09e58f570ed40787ed1a2f | [
"Unlicense",
"MIT"
] | 1 | 2021-06-24T16:22:45.000Z | 2021-06-24T16:22:45.000Z | #include <algorithm>
#include <chrono>
#include <cstring>
#include <experimental/filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include "hut/utils.hpp"
using namespace std;
using namespace std::experimental::filesystem::v1;
using namespace std::chrono;
using namespace hut;
constexpr auto line... | 31.126761 | 103 | 0.583258 | suijingfeng |
9d8f0252c682ea825d710cf6aeb95d2e9776c108 | 1,664 | hpp | C++ | include/ring.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 68 | 2015-01-17T05:41:58.000Z | 2021-04-24T08:35:24.000Z | include/ring.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 16 | 2015-01-02T19:36:06.000Z | 2018-09-09T21:01:25.000Z | include/ring.hpp | lebarsfa/vpython-wx | 38df062e5532b79f632f4f2a1abae86754c264a9 | [
"BSL-1.0"
] | 37 | 2015-02-04T04:23:00.000Z | 2020-06-07T03:24:41.000Z | #ifndef VPYTHON_RING_HPP
#define VPYTHON_RING_HPP
// Copyright (c) 2000, 2001, 2002, 2003 by David Scherer and others.
// Copyright (c) 2003, 2004 by Jonathan Brandmeyer and others.
// See the file license.txt for complete license terms.
// See the file authors.txt for a complete list of contributors.
#includ... | 24.115942 | 85 | 0.688101 | lebarsfa |
9d91945cc1b84f8a162c39bbd9b2b9a111b38f20 | 21,835 | cpp | C++ | class/controladores/controlador_juego.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | class/controladores/controlador_juego.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | class/controladores/controlador_juego.cpp | TheMarlboroMan/winter-fgj5 | 28cd4bd4ae37230e51c1a9963bcd293e674cdc3c | [
"Beerware"
] | null | null | null | #include "controlador_juego.h"
Controlador_juego::Controlador_juego(Director_estados &DI, Localizador& loc, Configuracion_base& config,const std::vector<App_Niveles::Sala>& salas, App_Graficos::Animaciones& anim)
:Controlador_base(DI, loc, config),
estado(estados::normal),
estado_dinamicas(config.acc_volumen_musica... | 28.247089 | 213 | 0.739638 | TheMarlboroMan |
9d94d9d2414299f4581561bde2ce915a63f2b26e | 2,552 | cpp | C++ | src/cpp/ee/soomla/internal/jsb_cc_virtual_currency_pack_builder.cpp | enrevol/ee-x | 60a66ad3dc6e14802a7c5d8d585a8499be13f5b8 | [
"MIT"
] | null | null | null | src/cpp/ee/soomla/internal/jsb_cc_virtual_currency_pack_builder.cpp | enrevol/ee-x | 60a66ad3dc6e14802a7c5d8d585a8499be13f5b8 | [
"MIT"
] | null | null | null | src/cpp/ee/soomla/internal/jsb_cc_virtual_currency_pack_builder.cpp | enrevol/ee-x | 60a66ad3dc6e14802a7c5d8d585a8499be13f5b8 | [
"MIT"
] | null | null | null | //
// jsb_cc_virtual_currency_pack_builder.cpp
// ee-x
//
// Created by Nguyen Van Quynh on 9/14/18.
//
#include "ee/soomla/internal/jsb_cc_virtual_currency_pack_builder.hpp"
#ifdef EE_X_COCOS_JS
#include <ee/core/JsbUtils.hpp>
#include <soomla/domain/virtualCurrencies/CCVirtualCurrencyPackBuilder.h>
namespace ee... | 33.142857 | 91 | 0.749216 | enrevol |
9d968328ce1490e82735c0b4dd3e378adbdda456 | 1,619 | cpp | C++ | visualization/vortex.cpp | Kerkil/arrayfire_examples | cfcaf4cea6907dee33090e88904208a12a52ac92 | [
"BSD-3-Clause"
] | 1 | 2019-12-07T19:48:23.000Z | 2019-12-07T19:48:23.000Z | visualization/vortex.cpp | Kerkil/arrayfire_examples | cfcaf4cea6907dee33090e88904208a12a52ac92 | [
"BSD-3-Clause"
] | null | null | null | visualization/vortex.cpp | Kerkil/arrayfire_examples | cfcaf4cea6907dee33090e88904208a12a52ac92 | [
"BSD-3-Clause"
] | null | null | null | #include <stdio.h>
#include <string.h>
#include <arrayfire.h>
#include "../common/progress.h"
using namespace af;
static void vortex(bool console)
{
// seconds to run demo
double time_total = 10;
// initialize parameters
unsigned particles = 10000;
float revolutions = 5.0;
float xAx = 0.7f;
... | 21.878378 | 70 | 0.518839 | Kerkil |
9d9687d04424a3a8affb0c5057ac1e8a8e7f261c | 1,740 | hxx | C++ | include/delayed_task.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 219 | 2016-10-13T11:03:19.000Z | 2022-03-25T07:20:27.000Z | include/delayed_task.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 8 | 2017-10-08T01:20:25.000Z | 2021-03-02T05:13:53.000Z | include/delayed_task.hxx | catFurr/cornerstone | 77601d6beb447e371a181ac692dc2c079ddd8cb9 | [
"BSL-1.0",
"Apache-2.0"
] | 56 | 2016-10-29T15:14:32.000Z | 2022-03-28T03:59:20.000Z | /*
* Copyright (c) 2016 - present Alpha Infra 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 applicabl... | 25.588235 | 75 | 0.57931 | catFurr |
9d96ea638eaa5cfbac90f833494ef9e48ebbc2a8 | 8,879 | cpp | C++ | driver/simx/vortex.cpp | mofeing/vortex | 6ceb2233e9096a586821e2eb1113f2e860574bb7 | [
"BSD-3-Clause"
] | 1 | 2021-05-18T20:35:15.000Z | 2021-05-18T20:35:15.000Z | driver/simx/vortex.cpp | mofeing/vortex | 6ceb2233e9096a586821e2eb1113f2e860574bb7 | [
"BSD-3-Clause"
] | null | null | null | driver/simx/vortex.cpp | mofeing/vortex | 6ceb2233e9096a586821e2eb1113f2e860574bb7 | [
"BSD-3-Clause"
] | null | null | null | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <iostream>
#include <thread>
#include <mutex>
#include <chrono>
#include <vortex.h>
#include <core.h>
#include <VX_config.h>
#define CACHE_LINESIZE 64
#define PAGE_SIZE 4096
#define ALLOC_BASE_ADDR 0x10000000
#define LOCAL_... | 24.19346 | 109 | 0.544543 | mofeing |
9d98ef5887b2aa469ea05d52a1d4915eb721da7a | 10,517 | cpp | C++ | packages/ogdf.js/ogdf/test/src/planarity/crossing-minimizer.cpp | ZJUVAI/ogdf.js | 6670d20b6c630a46593ac380d1edf91d2c9aabe8 | [
"MIT"
] | 3 | 2021-09-14T08:11:37.000Z | 2022-03-04T15:42:07.000Z | packages/ogdf.js/ogdf/test/src/planarity/crossing-minimizer.cpp | JackieAnxis/ogdf.js | 6670d20b6c630a46593ac380d1edf91d2c9aabe8 | [
"MIT"
] | 2 | 2021-12-04T17:09:53.000Z | 2021-12-16T08:57:25.000Z | packages/ogdf.js/ogdf/test/src/planarity/crossing-minimizer.cpp | ZJUVAI/ogdf.js | 6670d20b6c630a46593ac380d1edf91d2c9aabe8 | [
"MIT"
] | 2 | 2021-06-22T08:21:54.000Z | 2021-07-07T06:57:22.000Z | /** \file
* \brief Tests for various crossing minimization modules.
*
* \author Tilo Wiedera
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.md in the OGDF root directory for details.
*
* \par
* This program is free software; you c... | 29.962963 | 143 | 0.697157 | ZJUVAI |
9da1479a4a4e4b41b444f02e0467c52bdc3d47c1 | 7,083 | cpp | C++ | tests/datamap_test.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | tests/datamap_test.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null | tests/datamap_test.cpp | r3dl3g/guipp | 3d3179be3022935b46b59f1b988a029abeabfcbf | [
"MIT"
] | null | null | null |
#include <gui/draw/datamap.h>
#include <gui/draw/graphics.h>
#include <testlib/testlib.h>
// --------------------------------------------------------------------------
void test_bw () {
using namespace gui;
using namespace gui::draw;
bwmap img(2, 2);
EXPECT_TRUE(img.is_valid());
EXPECT_EQUAL(img.native_si... | 32.791667 | 93 | 0.60497 | r3dl3g |
9da5e885b2e00e59c7bdde042f401345fe0898cf | 1,408 | cpp | C++ | src/plugins/blasq/plugins/vangog/vangog.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 120 | 2015-01-22T14:10:39.000Z | 2021-11-25T12:57:16.000Z | src/plugins/blasq/plugins/vangog/vangog.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 8 | 2015-02-07T19:38:19.000Z | 2017-11-30T20:18:28.000Z | src/plugins/blasq/plugins/vangog/vangog.cpp | Maledictus/leechcraft | 79ec64824de11780b8e8bdfd5d8a2f3514158b12 | [
"BSL-1.0"
] | 33 | 2015-02-07T16:59:55.000Z | 2021-10-12T00:36:40.000Z | /**********************************************************************
* LeechCraft - modular cross-platform feature rich internet client.
* Copyright (C) 2010-2013 Oleg Linkin <MaledictusDeMagog@gmail.com>
*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at... | 19.830986 | 83 | 0.628551 | Maledictus |
9da7a43d33d6acaa76d28af715a924e1cdd7d6a3 | 4,770 | cpp | C++ | lab07b.cpp | DaltonMcCart/csc232-lab07 | 9f06e073a8faa8eb894dbf7a2eb0ca5c6f8b92e0 | [
"MIT"
] | null | null | null | lab07b.cpp | DaltonMcCart/csc232-lab07 | 9f06e073a8faa8eb894dbf7a2eb0ca5c6f8b92e0 | [
"MIT"
] | null | null | null | lab07b.cpp | DaltonMcCart/csc232-lab07 | 9f06e073a8faa8eb894dbf7a2eb0ca5c6f8b92e0 | [
"MIT"
] | null | null | null | /**
* CSC232 - Data Structures
* Missouri State University, Fall 2018.
*
* @file lab10b.cpp
* @author Dalton McCart <mccart.42@live.missouristate.edu>
* CSC232-LAB10 - Updated authors tag in lab10b.cpp
*/
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <map>
#include <memory>
#include <stri... | 35.597015 | 86 | 0.67044 | DaltonMcCart |
9daafcd6831478a024c2040e1fd1867fb43ff711 | 10,746 | cpp | C++ | src/bindings/Scriptdev2/scripts/northrend/icecrown_citadel/icecrown_citadel/boss_blood_queen_lanathel.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 1 | 2017-11-16T19:04:07.000Z | 2017-11-16T19:04:07.000Z | src/bindings/Scriptdev2/scripts/northrend/icecrown_citadel/icecrown_citadel/boss_blood_queen_lanathel.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | src/bindings/Scriptdev2/scripts/northrend/icecrown_citadel/icecrown_citadel/boss_blood_queen_lanathel.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | null | null | null | /* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any l... | 32.465257 | 108 | 0.564489 | mfooo |
9dadfa6f2f17ef58abfba9d36c7f3920565b8153 | 3,005 | cpp | C++ | src/AppInstallerCLICore/Commands/RootCommand.cpp | JSY1988/winget | 4f73d7cfff75d478176cf31d4abad0b8b5ff8dd4 | [
"MIT"
] | 3 | 2020-05-19T17:10:32.000Z | 2020-07-21T14:13:13.000Z | src/AppInstallerCLICore/Commands/RootCommand.cpp | JSY1988/winget | 4f73d7cfff75d478176cf31d4abad0b8b5ff8dd4 | [
"MIT"
] | null | null | null | src/AppInstallerCLICore/Commands/RootCommand.cpp | JSY1988/winget | 4f73d7cfff75d478176cf31d4abad0b8b5ff8dd4 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "RootCommand.h"
#include "InstallCommand.h"
#include "ShowCommand.h"
#include "SourceCommand.h"
#include "SearchCommand.h"
#include "HashCommand.h"
#include "ValidateCommand.h"
#include "Resources.h"
name... | 37.5625 | 225 | 0.591015 | JSY1988 |
9db0985ee30904c452e85977ccdd5192becd327b | 5,609 | cpp | C++ | swap-ssdb-1.9.2/src/ssdb/options.cpp | TimothyZhang023/swapdb | e40c1ddf46892e698acf54f26b02927f0505ea84 | [
"BSD-2-Clause"
] | 242 | 2017-12-14T00:31:28.000Z | 2022-02-16T02:00:15.000Z | swap-ssdb-1.9.2/src/ssdb/options.cpp | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 7 | 2017-12-14T08:34:43.000Z | 2020-12-19T02:53:03.000Z | swap-ssdb-1.9.2/src/ssdb/options.cpp | javaperson/swapdb | 66efd9f919dfaa56dcefd9b39a8bdabe57624546 | [
"BSD-2-Clause"
] | 47 | 2017-12-26T03:11:26.000Z | 2022-01-26T07:46:45.000Z | /*
Copyright (c) 2012-2014 The SSDB 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 "options.h"
#include "../util/strings.h"
#ifdef USE_LEVELDB
Options::Options(){
Config c;
this->load(c);
}
#else
#endif
void Options::... | 40.644928 | 106 | 0.68818 | TimothyZhang023 |
9db2d549a8c03a24537d80ccf1aa48a3217c0913 | 158 | hpp | C++ | src/calculator/include/calculator/calculator_api.hpp | d8euAI8sMs/qa-1-all | f38c282b6c7548373342e03635e9d4673e3eff0b | [
"Apache-2.0"
] | null | null | null | src/calculator/include/calculator/calculator_api.hpp | d8euAI8sMs/qa-1-all | f38c282b6c7548373342e03635e9d4673e3eff0b | [
"Apache-2.0"
] | null | null | null | src/calculator/include/calculator/calculator_api.hpp | d8euAI8sMs/qa-1-all | f38c282b6c7548373342e03635e9d4673e3eff0b | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifdef CALCULATOR_EXPORTS
# define CALCULATOR_API __declspec(dllexport)
#else
# define CALCULATOR_API __declspec(dllimport)
#endif
| 19.75 | 49 | 0.759494 | d8euAI8sMs |
9db4d4ca68b95b225a772780b6e8605f49c10d1f | 24,287 | cpp | C++ | src/num_put.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | src/num_put.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | src/num_put.cpp | Hower91/Apache-C-Standard-Library-4.2.x | 4d9011d60dbb38b3ff80dcfe54dccd3a4647d9d3 | [
"Apache-2.0"
] | null | null | null | /***************************************************************************
*
* num_put.cpp
*
* $Id: //stdlib/dev/source/stdlib/num_put.cpp#51 $
*
***************************************************************************
*
* Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
* Software d... | 27.015573 | 79 | 0.522008 | Hower91 |
9db5d96ce4a0177c662802a648dabfd39065bd42 | 953 | hpp | C++ | aligned_deleter.hpp | nyamadan/hello_embree | 8ea086fb1a10e0e025fbd3ab45cbea281146162b | [
"MIT"
] | null | null | null | aligned_deleter.hpp | nyamadan/hello_embree | 8ea086fb1a10e0e025fbd3ab45cbea281146162b | [
"MIT"
] | null | null | null | aligned_deleter.hpp | nyamadan/hello_embree | 8ea086fb1a10e0e025fbd3ab45cbea281146162b | [
"MIT"
] | null | null | null | #pragma once
#ifdef _WIN32
#define aligned_alloc _aligned_malloc
#define aligned_free _aligned_free
#else
#define aligned_free free
#endif
template <typename T = void>
struct AlignedDeleter {
constexpr AlignedDeleter() noexcept = default;
template <typename U,
typename std::enable_if<std::is_co... | 28.878788 | 75 | 0.625393 | nyamadan |
9db7f53740e6db51665bbd5e65e184618de028bd | 2,610 | cpp | C++ | CS296/Project6.cpp | acfromspace/academia | 083f8157f124d7c99f7a5c0fd97c584e6d783a26 | [
"MIT"
] | null | null | null | CS296/Project6.cpp | acfromspace/academia | 083f8157f124d7c99f7a5c0fd97c584e6d783a26 | [
"MIT"
] | null | null | null | CS296/Project6.cpp | acfromspace/academia | 083f8157f124d7c99f7a5c0fd97c584e6d783a26 | [
"MIT"
] | null | null | null | /*
Date: 25 April 2014
Project: 6
Description: Functions
*/
#include <iostream>
#include <string>
using namespace std;
// Prototypes.
int GetUserData(string prompt, const int MIN_NUM, const int MAX_NUM);
bool isEven(int value);
bool isPrime(int value);
int main()
{
// Declarations.
const int MIN_NUM = 2, MAX_NUM ... | 18.510638 | 71 | 0.516475 | acfromspace |
9db7fb7399feae34ca978a3ac1145b9c633935db | 3,028 | cpp | C++ | applications/CoSimulationApplication/custom_external_libraries/CoSimIO/co_sim_io/sources/communication/factory.cpp | hbayraktaroglu/Kratos | 6b71869ca7adb36a798e0cb11b34287fdc482590 | [
"BSD-4-Clause"
] | null | null | null | applications/CoSimulationApplication/custom_external_libraries/CoSimIO/co_sim_io/sources/communication/factory.cpp | hbayraktaroglu/Kratos | 6b71869ca7adb36a798e0cb11b34287fdc482590 | [
"BSD-4-Clause"
] | null | null | null | applications/CoSimulationApplication/custom_external_libraries/CoSimIO/co_sim_io/sources/communication/factory.cpp | hbayraktaroglu/Kratos | 6b71869ca7adb36a798e0cb11b34287fdc482590 | [
"BSD-4-Clause"
] | null | null | null | // ______ _____ _ ________
// / ____/___ / ___/(_)___ ___ / _/ __ |
// / / / __ \\__ \/ / __ `__ \ / // / / /
// / /___/ /_/ /__/ / / / / / / // // /_/ /
// \____/\____/____/_/_/ /_/ /_/___/\____/
// Kratos CoSimulationApplication
//
// License: BSD License, see license.txt
//
// ... | 31.216495 | 120 | 0.665125 | hbayraktaroglu |
9dba19a6c6b9230a75a49481aaa09c5bfa2159b7 | 15,629 | cpp | C++ | superneurons/testing/inception_v4.cpp | Phaeton-lang/baselines | 472c248047fbb55b5fa0e620758047b7f0a1d041 | [
"MIT"
] | null | null | null | superneurons/testing/inception_v4.cpp | Phaeton-lang/baselines | 472c248047fbb55b5fa0e620758047b7f0a1d041 | [
"MIT"
] | null | null | null | superneurons/testing/inception_v4.cpp | Phaeton-lang/baselines | 472c248047fbb55b5fa0e620758047b7f0a1d041 | [
"MIT"
] | null | null | null | //
// Created by ay27 on 17/6/20.
//
#include <stdlib.h>
#include <superneurons.h>
using namespace SuperNeurons;
base_layer_t<float>* conv_bn_relu(base_layer_t<float>* bottom, size_t outnums,
size_t kernel_h, size_t kernel_w,
size_t stride,
size_t pad... | 38.975062 | 184 | 0.611875 | Phaeton-lang |
9dba85a9cccab88c0e123596ca075aadb4877477 | 29 | cpp | C++ | lldb/test/API/tools/lldb-vscode/module/foo.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | lldb/test/API/tools/lldb-vscode/module/foo.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | lldb/test/API/tools/lldb-vscode/module/foo.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | int foo() {
return 12;
}
| 7.25 | 14 | 0.482759 | mkinsner |
9dbab6a3600011749cddacccc250efdf19ba7337 | 6,399 | cxx | C++ | 3rd_party_software/pyca/Code/Cxx/src/alg/MultiscaleResampler.cxx | ninamiolane/quicksilver | 1baf251360dadea0afa3daaa09942d9d2d7c71fb | [
"Apache-2.0"
] | 126 | 2017-04-06T03:19:03.000Z | 2022-03-08T07:44:09.000Z | 3rd_party_software/pyca/Code/Cxx/src/alg/MultiscaleResampler.cxx | ninamiolane/quicksilver | 1baf251360dadea0afa3daaa09942d9d2d7c71fb | [
"Apache-2.0"
] | 7 | 2017-09-22T01:46:04.000Z | 2021-04-29T07:22:44.000Z | 3rd_party_software/pyca/Code/Cxx/src/alg/MultiscaleResampler.cxx | ninamiolane/quicksilver | 1baf251360dadea0afa3daaa09942d9d2d7c71fb | [
"Apache-2.0"
] | 37 | 2017-04-03T17:14:44.000Z | 2022-03-09T16:00:03.000Z | /* ================================================================
*
* PyCA Project
*
* Copyright (c) J. Samuel Preston, Linh K. Ha, Sarang C. Joshi. All
* rights reserved. See Copyright.txt or for details.
*
* This software is distributed WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTA... | 26.118367 | 76 | 0.659478 | ninamiolane |
9dbe2bfffe2b971bb770bf6d6ff43582d8f7c136 | 625 | cpp | C++ | mogupro/game/src/Network/Packet/Request/cReqInRoom.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Network/Packet/Request/cReqInRoom.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | mogupro/game/src/Network/Packet/Request/cReqInRoom.cpp | desspert/mogupro | ac39f5ec3fb670cf5044ef501951270d7d92a748 | [
"MIT"
] | null | null | null | #include <Network/Packet/Request/cReqInRoom.h>
namespace Network
{
namespace Packet
{
namespace Request
{
cReqInRoom::cReqInRoom( ) : mRoomID(-1), mNetworkHandle("",0)
{
}
cReqInRoom::cReqInRoom( int roomID) : mRoomID(roomID), mNetworkHandle("", 0)
{
}
void cReqInRoom::packetImport(cNetworkHandle... | 18.382353 | 109 | 0.6912 | desspert |
9dbf62bca53512b2875882d6d2c16a8984519c73 | 2,390 | cpp | C++ | source/xinput/State.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/xinput/State.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/xinput/State.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* 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, ... | 27.471264 | 101 | 0.694561 | HeavenWu |
9dc0fb56db281e46a4cffc6ea3ff0240f52dba03 | 2,904 | hh | C++ | src/interface/menus/Menu.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | 1 | 2019-09-23T18:16:27.000Z | 2019-09-23T18:16:27.000Z | src/interface/menus/Menu.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | 2 | 2018-11-12T18:48:03.000Z | 2018-11-15T21:10:02.000Z | src/interface/menus/Menu.hh | zermingore/warevolved | efd0c506658ce6e4ecb6c7eb5bb7d620bc05fd52 | [
"MIT"
] | null | null | null | /**
* \file
* \date July 24, 2013
* \author Zermingore
* \namespace interface
* \brief Interface generic Menu class declaration
*/
#ifndef MENU_HH_
# define MENU_HH_
# include <cstddef>
# include <memory>
# include <vector>
# include <interface/menus/MenuEntry.hh>
# include <interface/InterfaceElement.hh>
en... | 20.450704 | 77 | 0.6677 | zermingore |
e38393c3be27182c5c77a7be5eadb150abb128ae | 575 | cpp | C++ | CodeFights/areSimilarNumbers.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/areSimilarNumbers.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | CodeFights/areSimilarNumbers.cpp | AREA44/competitive-programming | 00cede478685bf337193bce4804f13c4ff170903 | [
"MIT"
] | null | null | null | // Call two integers a and b similar if divisor divides both a and b or if it doesn't divide either.
// Given integers a, b and divisor, check if a and b are similar.
// Example
// * For a = 10, b = 12 and divisor = 2, the output should be
// areSimilarNumbers(a, b, divisor) = true;
// * For a = 10, b = 12 and divisor ... | 35.9375 | 100 | 0.631304 | AREA44 |
e3844b4222588524f57b083c73956587df693b88 | 1,857 | hpp | C++ | ares/ngp/system/system.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ngp/system/system.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ngp/system/system.hpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | struct System {
Node::System node;
Node::Setting::Boolean fastBoot;
VFS::Pak pak;
Memory::Readable<n8> bios;
struct Controls {
Node::Object node;
Node::Input::Button up;
Node::Input::Button down;
Node::Input::Button left;
Node::Input::Button right;
Node::Input::Button a;
Node::Inp... | 24.434211 | 102 | 0.64405 | CasualPokePlayer |
e3850ee919679fc9a94b237a1d14cc9d18c465ed | 353 | cpp | C++ | Codeforces/problems/0158/A/158A.cpp | object-oriented-human/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | 2 | 2021-07-27T10:46:47.000Z | 2021-07-27T10:47:57.000Z | Codeforces/problems/0158/A/158A.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | Codeforces/problems/0158/A/158A.cpp | foooop/competitive | 9e761020e887d8980a39a64eeaeaa39af0ecd777 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n, k, t=0; cin >> n >> k;
vector<int> v;
for (int i = 0; i < n; i++) {
int x; cin >> x;
v.push_back(x);
}
int score = v[k-1];
for (int i = 0; i < n; i++) {
if (v[i] >= score && v[i] > 0) {
t++;
... | 16.809524 | 40 | 0.373938 | object-oriented-human |
e3863316cb8c1c39d3f8a5900d5f25c7d0772dd4 | 679 | cpp | C++ | cpp-leetcode/leetcode215-kth-largest-element-in-an-array-method1.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 45 | 2021-07-25T00:45:43.000Z | 2022-03-24T05:10:43.000Z | cpp-leetcode/leetcode215-kth-largest-element-in-an-array-method1.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | null | null | null | cpp-leetcode/leetcode215-kth-largest-element-in-an-array-method1.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 15 | 2021-07-25T00:40:52.000Z | 2021-12-27T06:25:31.000Z | #include<algorithm>
#include<vector>
#include<queue>
#include<iostream>
using namespace std;
class Solution {
public:
int findKthLargest(vector<int>& nums, int k) {
int res;
priority_queue<int> q;
unsigned int i = 0;
while(i < nums.size())
{
q.push(nums[i]);
... | 17.868421 | 61 | 0.487482 | yanglr |
e3873df1c3a86771969d65c925133c6d637406de | 3,244 | cpp | C++ | massociativearray.cpp | alediaferia/morph-framework | 702b4faba9bf659676f5583bdb6a739ba96ea121 | [
"MIT"
] | null | null | null | massociativearray.cpp | alediaferia/morph-framework | 702b4faba9bf659676f5583bdb6a739ba96ea121 | [
"MIT"
] | null | null | null | massociativearray.cpp | alediaferia/morph-framework | 702b4faba9bf659676f5583bdb6a739ba96ea121 | [
"MIT"
] | null | null | null | #include "massociativearray.h"
class MAssociativeArray::MAssociativeArrayPrivate
{
public:
MAssociativeArrayPrivate(MAssociativeArray *m)
: m(m),
values(MList::alloc())
{}
MAssociativeArrayPrivate(const MAssociativeArrayPrivate& copy)
: m(copy.m),
values(copy.values)
... | 21.202614 | 84 | 0.570284 | alediaferia |
e3897ad230aafa9ec56bf760b871bf13d3866e29 | 3,633 | cpp | C++ | src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | null | null | null | src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp | kidaa/xalan-c | bb666d0ab3d0a192410823e6857c203d83c27b16 | [
"Apache-2.0"
] | 1 | 2021-08-18T12:32:31.000Z | 2021-08-18T12:32:31.000Z | src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp | AaronNGray/xalan | 6741bbdcb64a9d33df8bd7e21b558d66bb4292ec | [
"Apache-2.0"
] | null | null | null | /*
* 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 you under the Apache License, Version 2.0 (the "License");
* you m... | 24.883562 | 123 | 0.633911 | kidaa |
e39030c7eddd410603408da90c5a2565fd05d6a5 | 5,977 | cc | C++ | pagespeed/rules/avoid_css_import_test.cc | gtmetrix/pagespeed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 11 | 2016-08-23T12:31:32.000Z | 2021-05-12T09:47:01.000Z | pagespeed/rules/avoid_css_import_test.cc | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | null | null | null | pagespeed/rules/avoid_css_import_test.cc | gtmetrix/page-speed-library | 4aac4ab995bc99c6a40f0c820cfefc88db6fcf33 | [
"Apache-2.0"
] | 1 | 2019-03-13T00:51:45.000Z | 2019-03-13T00:51:45.000Z | // Copyright 2010 Google Inc. 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 required by applicabl... | 32.308108 | 78 | 0.728626 | gtmetrix |
e39070ba8786a21dbf4cc08bde2b98a664a0eff9 | 268 | cpp | C++ | noduplicates.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | noduplicates.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | noduplicates.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
string s;
set<string> maps;
bool rep = false;
while (cin >> s && !rep){
if (!maps.count(s)) maps.insert(s);
else rep = true;
}
if (rep) cout << "no" << endl;
else cout << "yes" << endl;
return 0;
}
| 16.75 | 37 | 0.578358 | Embrikht |
e39230bf1d7b6bd92b64d4d18d487428f94d9b9d | 1,863 | cpp | C++ | C++/coordinat.cpp | H-M-Noman123/hacktoberfest2021-7 | fcd2c9e440a8146c8a62e1c5cc122d855ed41a12 | [
"MIT"
] | 2 | 2021-12-01T03:35:20.000Z | 2022-02-11T01:10:22.000Z | C++/coordinat.cpp | H-M-Noman123/hacktoberfest2021-7 | fcd2c9e440a8146c8a62e1c5cc122d855ed41a12 | [
"MIT"
] | null | null | null | C++/coordinat.cpp | H-M-Noman123/hacktoberfest2021-7 | fcd2c9e440a8146c8a62e1c5cc122d855ed41a12 | [
"MIT"
] | 1 | 2021-10-17T16:24:21.000Z | 2021-10-17T16:24:21.000Z | #include <iostream>
#include <cmath>
using namespace std;
#define PI 3.1415926
class Polar; // Forward declaration
class Rectangular {
private:
float x, y;
public:
Rectangular() {} // default constructor
Rectangular(float mv_x, float mv_y) {
x = mv_x;
y = mv_y;... | 19.610526 | 68 | 0.505636 | H-M-Noman123 |
e395ebde48120d0776167dbd3824a2f3b17c5a38 | 609 | cpp | C++ | P1373.cpp | daily-boj/SkyLightQP | 5038819b6ad31f94d84a66c7679c746a870bb857 | [
"Unlicense"
] | 6 | 2020-04-08T09:05:38.000Z | 2022-01-20T08:09:48.000Z | P1373.cpp | daily-boj/SkyLightQP | 5038819b6ad31f94d84a66c7679c746a870bb857 | [
"Unlicense"
] | null | null | null | P1373.cpp | daily-boj/SkyLightQP | 5038819b6ad31f94d84a66c7679c746a870bb857 | [
"Unlicense"
] | 1 | 2020-05-23T21:17:10.000Z | 2020-05-23T21:17:10.000Z | #include <iostream>
#include <string>
using namespace std;
int ctoi(char a) {
return a - '0';
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string input;
cin >> input;
if (input.length() % 3 == 2) {
input.insert(0, 1, '0');
} else if (input.... | 18.454545 | 85 | 0.489327 | daily-boj |
e396bc034641bb84f629d58e945c063bc1940819 | 604 | cpp | C++ | test/mod2/mod2.cpp | FigmentBoy/lilac | f3927d4725c9403a147d7fd38a57ac0da248fcfe | [
"MIT"
] | null | null | null | test/mod2/mod2.cpp | FigmentBoy/lilac | f3927d4725c9403a147d7fd38a57ac0da248fcfe | [
"MIT"
] | null | null | null | test/mod2/mod2.cpp | FigmentBoy/lilac | f3927d4725c9403a147d7fd38a57ac0da248fcfe | [
"MIT"
] | null | null | null | #include "mod2.hpp"
bool __fastcall GJGarageLayer_init(GJGarageLayer* self) {
if (!self->init())
return false;
if (Loader::get()->isModLoaded("com.lilac.test_one")) {
TestMod1::get()->logMessage("Hi from TestMod2");
} else {
TestMod2::get()->log() << "TestMod1 is not l... | 20.827586 | 78 | 0.566225 | FigmentBoy |
e3994dc1693bc5cf5cb63c9e3fdb3c3e5ec8f90e | 838 | cpp | C++ | COS2614/src/doc/exceptions-article/src/exceptions/throw2/throw2.cpp | ziyaadfredericks/university | 0c9612921b417e6b428a34a84d3012bd07281dd0 | [
"MIT"
] | null | null | null | COS2614/src/doc/exceptions-article/src/exceptions/throw2/throw2.cpp | ziyaadfredericks/university | 0c9612921b417e6b428a34a84d3012bd07281dd0 | [
"MIT"
] | null | null | null | COS2614/src/doc/exceptions-article/src/exceptions/throw2/throw2.cpp | ziyaadfredericks/university | 0c9612921b417e6b428a34a84d3012bd07281dd0 | [
"MIT"
] | null | null | null | #include <iostream>
void foo() {
int i, j;
i = 14;
j = 15;
throw i;
}
void call_foo() {
int k;
k = 12;
foo();
}
int main() {
using namespace std;
try {
cout << "In the outer try block" << endl;
try {
call_foo(); /* foo exited with i and j destroyed *... | 18.217391 | 63 | 0.486874 | ziyaadfredericks |
e39a1db89f132d09de6e53e03af97588557d6136 | 2,541 | cpp | C++ | SGE/Graphics/CShader.cpp | tstaples/AI-VGP332 | b4df47e64b3a25060d5300bb6c3171947f4c509c | [
"MIT"
] | null | null | null | SGE/Graphics/CShader.cpp | tstaples/AI-VGP332 | b4df47e64b3a25060d5300bb6c3171947f4c509c | [
"MIT"
] | null | null | null | SGE/Graphics/CShader.cpp | tstaples/AI-VGP332 | b4df47e64b3a25060d5300bb6c3171947f4c509c | [
"MIT"
] | null | null | null | //====================================================================================================
// Filename: CShader.cpp
// Created by: Peter Chan
//====================================================================================================
//============================================================... | 25.928571 | 104 | 0.390004 | tstaples |
e39a4b3fa52a89658fbd5070a5e23430cf58c5d8 | 1,394 | cc | C++ | tools/generate_math_constants.cc | jpcima/coreutil | 8ec6acec90738919116e71e3a7ea5fe012793ad4 | [
"BSL-1.0"
] | null | null | null | tools/generate_math_constants.cc | jpcima/coreutil | 8ec6acec90738919116e71e3a7ea5fe012793ad4 | [
"BSL-1.0"
] | null | null | null | tools/generate_math_constants.cc | jpcima/coreutil | 8ec6acec90738919116e71e3a7ea5fe012793ad4 | [
"BSL-1.0"
] | null | null | null | #include <boost/multiprecision/gmp.hpp>
#include <boost/format.hpp>
#include <iostream>
namespace mp = boost::multiprecision;
typedef mp::mpf_float_1000 MPFloat;
struct MPConstant {
const char *name {};
const char *expr {};
MPFloat value;
};
int main() {
const MPFloat one(1);
const MPFloat two(2);
const ... | 26.301887 | 77 | 0.533716 | jpcima |
e39b0552cc8f6140e14bab800508515e63019e56 | 908 | hpp | C++ | PnC/NaoPnC/NaoStateMachine/SwingControl.hpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | PnC/NaoPnC/NaoStateMachine/SwingControl.hpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | PnC/NaoPnC/NaoStateMachine/SwingControl.hpp | BharathMasetty/PnC | 3800bd7e3c5dd5ffa00e6a5f09d48d21c405206f | [
"MIT"
] | null | null | null | #pragma once
#include <Utils/Math/BSplineBasic.h>
#include <PnC/StateMachine.hpp>
#include <PnC/NaoPnC/NaoStateProvider.hpp>
class NaoControlArchitecture;
class NaoTaskAndForceContainer;
class NaoMainController;
class SwingControl : public StateMachine {
public:
SwingControl(const StateIdentifier state_identifier... | 23.282051 | 78 | 0.779736 | BharathMasetty |
e39db9e83d53b46f3f5577f65fa360c7c7ed5055 | 5,048 | hpp | C++ | src/nanomsgpp/message.hpp | cjgdev/nanomsgpp | 69062bbd03e9ced0ed0ffc5fd91a95e3b94d7921 | [
"MIT"
] | 3 | 2017-06-01T09:18:30.000Z | 2019-04-09T21:05:05.000Z | src/nanomsgpp/message.hpp | cjgdev/nanomsgpp | 69062bbd03e9ced0ed0ffc5fd91a95e3b94d7921 | [
"MIT"
] | null | null | null | src/nanomsgpp/message.hpp | cjgdev/nanomsgpp | 69062bbd03e9ced0ed0ffc5fd91a95e3b94d7921 | [
"MIT"
] | 1 | 2022-01-06T04:14:36.000Z | 2022-01-06T04:14:36.000Z | /*
* Copyright (C) 2014 Christopher Gilbert <christopher.john.gilbert@gmail.com>
*
* 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 r... | 27.889503 | 96 | 0.713748 | cjgdev |
e3a0f402d45ecb6ca249d02aa920014721d102b1 | 1,061 | cpp | C++ | src/Mesh_Computational_Geometry/mainwindow.cpp | AdrKacz/ecl-mso36-calcul-modelisation-geometrique | bb3744df90a7b49a0964c17acaf2245d1f89646f | [
"MIT"
] | null | null | null | src/Mesh_Computational_Geometry/mainwindow.cpp | AdrKacz/ecl-mso36-calcul-modelisation-geometrique | bb3744df90a7b49a0964c17acaf2245d1f89646f | [
"MIT"
] | null | null | null | src/Mesh_Computational_Geometry/mainwindow.cpp | AdrKacz/ecl-mso36-calcul-modelisation-geometrique | bb3744df90a7b49a0964c17acaf2245d1f89646f | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "mesh.h" // Model
#include<QFile>
#include<QDebug>
#include<QString>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
}
MainWindow::~MainWindow()
{
delete ui;
}
void MainWindow::on... | 19.648148 | 69 | 0.693685 | AdrKacz |
e3a4be93b0330c216a8e27bfbd972657ff953403 | 17,737 | cpp | C++ | dev/Gems/Multiplayer/Code/Source/FlowMultiplayerEventNodes.cpp | CJoriginal/cjlumberyard | 2e3184a7d8e59ba05e5707371b8cb6fe40b0ca60 | [
"AML"
] | 8 | 2019-10-07T16:33:47.000Z | 2020-12-07T03:59:58.000Z | dev/Gems/Multiplayer/Code/Source/FlowMultiplayerEventNodes.cpp | santosh90n/lumberyard-1 | 9608bcf905bb60e9f326bd3fe8297381c22d83a6 | [
"AML"
] | null | null | null | dev/Gems/Multiplayer/Code/Source/FlowMultiplayerEventNodes.cpp | santosh90n/lumberyard-1 | 9608bcf905bb60e9f326bd3fe8297381c22d83a6 | [
"AML"
] | 5 | 2020-08-27T20:44:18.000Z | 2021-08-21T22:54:11.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 30.267918 | 138 | 0.635733 | CJoriginal |
e3a4fbfa545c12994953f90c1ba6df6e5632d272 | 6,300 | cpp | C++ | src/P2/dictionary.cpp | daviddias99/project-2-feup-prog | 1033a3fead013d188b51334c8f1e96032d95d439 | [
"MIT"
] | null | null | null | src/P2/dictionary.cpp | daviddias99/project-2-feup-prog | 1033a3fead013d188b51334c8f1e96032d95d439 | [
"MIT"
] | null | null | null | src/P2/dictionary.cpp | daviddias99/project-2-feup-prog | 1033a3fead013d188b51334c8f1e96032d95d439 | [
"MIT"
] | null | null | null | #include <fstream>
#include <string>
#include <vector>
#include <map>
#include "dictionary.h"
#include <iostream>
using namespace std;
Dictionary::Dictionary()
{
this->fileName = "";
}
bool Dictionary::extractWords(string fileName)
{
if (this->fileName != "")
return false; // dictionary already associated wit... | 20.322581 | 121 | 0.649365 | daviddias99 |
e3a885b871665e6ead25571915f77eab1e30a5f2 | 5,766 | cpp | C++ | src/NasNas/tilemapping/ObjectLayer.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 148 | 2020-04-08T13:45:34.000Z | 2022-01-29T13:52:10.000Z | src/NasNas/tilemapping/ObjectLayer.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 5 | 2020-09-15T12:34:31.000Z | 2022-02-14T20:59:12.000Z | src/NasNas/tilemapping/ObjectLayer.cpp | Madour/NasNas | c6072d3d34116eca4ebff41899e14141d3009c03 | [
"Zlib"
] | 3 | 2020-10-03T22:35:20.000Z | 2020-10-05T04:55:45.000Z | /**
* Created by Modar Nasser on 22/08/2020.
**/
#include "NasNas/tilemapping/ObjectLayer.hpp"
using namespace ns;
using namespace ns::tm;
ns::tm::ObjectLayer::ObjectLayer(const pugi::xml_node& xml_node, tm::TiledMap* tiledmap) :
Layer(xml_node, tiledmap)
{
if (xml_node.attribute("color"))
m_color = hexT... | 33.719298 | 123 | 0.632848 | Madour |
e3aaaa400e15e572a00231840b31736c5a631eb9 | 134 | hpp | C++ | src/utils/glm_ext.hpp | axis7818/RayTracer | 157bc958fde873eeacc3e7c03607daedca088a4f | [
"MIT"
] | null | null | null | src/utils/glm_ext.hpp | axis7818/RayTracer | 157bc958fde873eeacc3e7c03607daedca088a4f | [
"MIT"
] | null | null | null | src/utils/glm_ext.hpp | axis7818/RayTracer | 157bc958fde873eeacc3e7c03607daedca088a4f | [
"MIT"
] | null | null | null | #include <glm/vec3.hpp>
static const glm::vec3 VEC3_ZERO = glm::vec3(0, 0, 0);
static const glm::vec3 VEC3_ONE = glm::vec3(1, 1, 1);
| 26.8 | 54 | 0.671642 | axis7818 |
e3af4dc7dcfb5f874f60dfc9b6826f47220815f0 | 4,122 | hpp | C++ | objc-bridge/inc/m4c0/objc/casts.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | objc-bridge/inc/m4c0/objc/casts.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | objc-bridge/inc/m4c0/objc/casts.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #pragma once
#include <objc/message.h>
#include <objc/runtime.h>
#include <utility>
// ARM64, for reasons
#if !defined(__i386__) && !defined(__x86_64__)
#define objc_msgSend_stret objc_msgSend
#define objc_msgSend_fpret objc_msgSend
#endif
namespace m4c0::objc {
namespace details {
// This only works because w... | 44.804348 | 120 | 0.693595 | m4c0 |
e3b213ab46653ec76ddba509bec2b0d5a1604715 | 584 | cpp | C++ | lista_ex7.cpp/exercicio1.cpp | robinson-1985/exercicios_fatec | d234389bed31652849130b614448074ade444bce | [
"MIT"
] | null | null | null | lista_ex7.cpp/exercicio1.cpp | robinson-1985/exercicios_fatec | d234389bed31652849130b614448074ade444bce | [
"MIT"
] | null | null | null | lista_ex7.cpp/exercicio1.cpp | robinson-1985/exercicios_fatec | d234389bed31652849130b614448074ade444bce | [
"MIT"
] | null | null | null | /* 1. Escreva um programa que leia uma matriz (3x5 ou 5x3) de 15 números inteiros e
exiba ao final a soma dos valores de cada linha que estão armazenados nesta matriz. */
#include<stdio.h>
int main(){
int soma = 0;
int mat[3][5];
for(int i=0;i<3;i++){
for(int j=0;j<5;j++){
printf("Dig... | 25.391304 | 86 | 0.5 | robinson-1985 |
e3b3611ca279cfca580d6d27682df8baf18fe79b | 5,010 | cpp | C++ | ui/CxRun/OleMessageFilter2.cpp | johnzcdGitHub/SuperCxHMI | e897b7bdf30cfe3bfeb5b8738e10c7205ebcd665 | [
"MIT"
] | 118 | 2015-05-19T09:19:01.000Z | 2022-02-24T15:18:51.000Z | ui/CxRun/OleMessageFilter2.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 1 | 2016-10-24T02:48:03.000Z | 2020-04-20T01:53:31.000Z | ui/CxRun/OleMessageFilter2.cpp | PythonYanshenguan/SuperCxHMI | 19f681583fca56c528b51b5821fe842c80bcae24 | [
"MIT"
] | 98 | 2015-02-11T07:16:47.000Z | 2022-02-24T02:15:27.000Z | // OleMessageFilter2.cpp: implementation of the COleMessageFilter2 class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "CxRun.h"
#include "OleMessageFilter2.h"
#include "DcomErrorDlg.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define n... | 26.507937 | 77 | 0.709381 | johnzcdGitHub |
e3b5143edc5d470c960d64542c6a3255671ee3fc | 35 | hpp | C++ | src/boost_iostreams_get.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_iostreams_get.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_iostreams_get.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/iostreams/get.hpp>
| 17.5 | 34 | 0.771429 | miathedev |
e3b839b051d8548bb3fd6ebbf67c8d48b0dde0ef | 2,550 | cpp | C++ | Lesson 4 (Counting Elements)/MaxCounters.cpp | Constantine-L01/Codility | 741c71414ed7efb3304310d2b78d4a8cfc1c2b69 | [
"MIT"
] | null | null | null | Lesson 4 (Counting Elements)/MaxCounters.cpp | Constantine-L01/Codility | 741c71414ed7efb3304310d2b78d4a8cfc1c2b69 | [
"MIT"
] | null | null | null | Lesson 4 (Counting Elements)/MaxCounters.cpp | Constantine-L01/Codility | 741c71414ed7efb3304310d2b78d4a8cfc1c2b69 | [
"MIT"
] | null | null | null | Task description
You are given N counters, initially set to 0, and you have two possible operations on them:
increase(X) − counter X is increased by 1,
max counter − all counters are set to the maximum value of any counter.
A non-empty array A of M integers is given. This array represents consecutive... | 26.020408 | 146 | 0.557647 | Constantine-L01 |
e3b9b9a31d2cd865d04c99dbcb3da3df69d05b82 | 17,669 | cpp | C++ | src/eepp/network/uri.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/network/uri.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | null | null | null | src/eepp/network/uri.cpp | SpartanJ/eepp | 21e8ae53af9bc5eb3fd1043376f2b3a4b3ff5fac | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #include <eepp/network/uri.hpp>
namespace EE { namespace Network {
static void AppendHex( std::string& str, int value, int width ) {
eeASSERT( width > 0 && width < 64 );
char buffer[64];
std::sprintf( buffer, "%0*X", width, value );
str.append( buffer );
}
static std::string FormatHex( int value, int width ) {
... | 24.885915 | 100 | 0.596242 | SpartanJ |