hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f873fbc24b31d6be761bc3d030ec20978a6b623b | 9,069 | cpp | C++ | AGVC/clsPercentage.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVC/clsPercentage.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | AGVC/clsPercentage.cpp | jluzardo1971/ActiveGanttVC | 4748cb4d942551dc64c9017f279c90969cdcc634 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------------------
// COPYRIGHT NOTICE
// ----------------------------------------------------------------------------------------
//
// The Source Code Store LLC
// ACTIVEGANTT SCHEDULER COMPONENT FOR C++ - ActiveGan... | 25.332402 | 170 | 0.718822 | jluzardo1971 |
f87b2884a36da7273734deada63f9bd1d75831c1 | 240 | hpp | C++ | dynamic/wrappers/cell_based/AbstractUpdateRule3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-02-04T16:10:53.000Z | 2021-07-01T08:03:16.000Z | dynamic/wrappers/cell_based/AbstractUpdateRule3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 6 | 2017-06-22T08:50:41.000Z | 2019-12-15T20:17:29.000Z | dynamic/wrappers/cell_based/AbstractUpdateRule3.cppwg.hpp | jmsgrogan/PyChaste | 48a9863d2c941c71e47ecb72e917b477ba5c1413 | [
"FTL"
] | 3 | 2017-05-15T21:33:58.000Z | 2019-10-27T21:43:07.000Z | #ifndef AbstractUpdateRule3_hpp__pyplusplus_wrapper
#define AbstractUpdateRule3_hpp__pyplusplus_wrapper
namespace py = pybind11;
void register_AbstractUpdateRule3_class(py::module &m);
#endif // AbstractUpdateRule3_hpp__pyplusplus_wrapper
| 34.285714 | 55 | 0.883333 | jmsgrogan |
f880760eab9d52d80baf9e28210cc4c7348e07d7 | 48,199 | hpp | C++ | src/include/einsums/Tensor.hpp | jturney/EinsumsInCpp | 5da72c32b8814adacb601face888d970edfae205 | [
"MIT"
] | 9 | 2022-01-29T22:21:19.000Z | 2022-03-10T06:26:40.000Z | src/include/einsums/Tensor.hpp | jturney/EinsumsInCpp | 5da72c32b8814adacb601face888d970edfae205 | [
"MIT"
] | null | null | null | src/include/einsums/Tensor.hpp | jturney/EinsumsInCpp | 5da72c32b8814adacb601face888d970edfae205 | [
"MIT"
] | null | null | null | #pragma once
#include "einsums/Print.hpp"
#include "einsums/STL.hpp"
#include "einsums/State.hpp"
// Include headers from the ranges library that we need to handle cartesian_products
#include "range/v3/view/cartesian_product.hpp"
#include "range/v3/view/iota.hpp"
#include <H5Lpublic.h>
#include <H5Ppublic.h>
#includ... | 37.305728 | 138 | 0.580033 | jturney |
f881f9691b553b4ee3d1196962da2f5236397387 | 4,731 | cpp | C++ | truetype/shared/plugin.truetype.cpp | Shchvova/solar2d-plugins | d207849706372ef3a611fcaac5a0b599d9023d22 | [
"MIT"
] | 12 | 2020-05-04T08:49:04.000Z | 2021-12-30T09:35:17.000Z | truetype/shared/plugin.truetype.cpp | Shchvova/solar2d-plugins | d207849706372ef3a611fcaac5a0b599d9023d22 | [
"MIT"
] | null | null | null | truetype/shared/plugin.truetype.cpp | Shchvova/solar2d-plugins | d207849706372ef3a611fcaac5a0b599d9023d22 | [
"MIT"
] | 3 | 2021-02-19T18:39:02.000Z | 2022-03-09T17:14:57.000Z | /*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell c... | 36.960938 | 121 | 0.648066 | Shchvova |
f883f8d8fe81e22f73c689433454cfbb31adcc8f | 984 | hpp | C++ | src/mlpack/core/util/version.hpp | jmlevin7878/mlpack | 7fe38005d86b77293f728c34ca176224bdff9ee8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-08-17T11:59:16.000Z | 2021-08-17T11:59:16.000Z | src/mlpack/core/util/version.hpp | jmlevin7878/mlpack | 7fe38005d86b77293f728c34ca176224bdff9ee8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | src/mlpack/core/util/version.hpp | jmlevin7878/mlpack | 7fe38005d86b77293f728c34ca176224bdff9ee8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | /**
* @file version.hpp
* @author Ryan Curtin
*
* The current version of mlpack, available as macros and as a string.
*/
#ifndef MLPACK_CORE_UTIL_VERSION_HPP
#define MLPACK_CORE_UTIL_VERSION_HPP
#include <string>
// The version of mlpack. If this is a git repository, this will be a version
// with higher number... | 25.894737 | 81 | 0.753049 | jmlevin7878 |
f88530dfda1ecbc4bf00909ea34ba37f46d2e7df | 1,635 | hpp | C++ | libs/python/include/python/serializers/py_counter.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/python/include/python/serializers/py_counter.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/python/include/python/serializers/py_counter.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 2 | 2019-07-13T12:45:22.000Z | 2021-03-12T08:48:57.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... | 34.787234 | 80 | 0.615291 | devjsc |
f8897bbbcaf100ef78627c96316aa8bf1f825b03 | 4,316 | cpp | C++ | qts3.cpp | msorvig/qts3 | 9ba644e32401f83bb5eb116d9f4fa4776dd3201c | [
"MIT"
] | 18 | 2015-11-30T12:32:12.000Z | 2022-03-21T02:57:34.000Z | qts3.cpp | msorvig/qts3 | 9ba644e32401f83bb5eb116d9f4fa4776dd3201c | [
"MIT"
] | 4 | 2016-12-15T14:12:19.000Z | 2020-05-19T06:04:26.000Z | qts3.cpp | msorvig/qts3 | 9ba644e32401f83bb5eb116d9f4fa4776dd3201c | [
"MIT"
] | 9 | 2016-09-24T13:38:32.000Z | 2021-07-20T06:45:22.000Z | #include "qts3.h"
#include "qts3_p.h"
QPM_BEGIN_NAMESPACE(com, github, msorvig, s3)
/*
\class QtS3
\brief The QtS3 class provides a synchronous API for accessing Amazon S3 content.
The QtS3 class provides a functions for uploading and downloading S3 bucket content,
as well as functons for querying me... | 29.972222 | 98 | 0.717563 | msorvig |
f88f4f2537f08aaa8f51697e5b445896df7c71aa | 492 | cpp | C++ | src/io/github/technicalnotes/programming/algorithms/sorting/5-heapsort.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | src/io/github/technicalnotes/programming/algorithms/sorting/5-heapsort.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | src/io/github/technicalnotes/programming/algorithms/sorting/5-heapsort.cpp | chiragbhatia94/programming-cpp | efd6aa901deacf416a3ab599e6599845a8111eac | [
"MIT"
] | null | null | null | #include "../../helpers/helpers.cpp"
using namespace std;
#ifndef MAIN
#define MAIN
vector<int> heapSort(vector<int>);
int main(int argc, char **argv)
{
vector<int> list = generateRandomIntegerVector(10, 5, 50);
// vector<int> list = {0, 3, 2, 1, 5};
vector<int> sortedList = heapSort(list);
cout << "Original ... | 20.5 | 60 | 0.660569 | chiragbhatia94 |
f89062f9ca8c808dd0f1f694049f27c074a1fa74 | 1,230 | cpp | C++ | datastructures/hashmaps/sort_hashmap_by_value.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | 2 | 2021-04-21T07:59:45.000Z | 2021-05-13T05:53:00.000Z | datastructures/hashmaps/sort_hashmap_by_value.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | null | null | null | datastructures/hashmaps/sort_hashmap_by_value.cpp | hariharanragothaman/Learning-STL | 7e5f58083212d04b93159d44e1812069171aa349 | [
"MIT"
] | 1 | 2021-04-17T15:32:18.000Z | 2021-04-17T15:32:18.000Z | #include "../../headers.h"
// Modify the functor here to for reverse=True functionality
bool sort_by_value(const pair<char, int> &a, const pair<char, int> &b)
{
return (a.second < b.second);
}
// Here sort map by value, but if the values are the same
// sort map by keys in descending order
// An example to write ... | 22.777778 | 74 | 0.58374 | hariharanragothaman |
f895e6fd5a79086434ef0c53d4beb64fadfc329b | 499 | cpp | C++ | LeetCode/cpp/118.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 279 | 2019-02-19T16:00:32.000Z | 2022-03-23T12:16:30.000Z | LeetCode/cpp/118.cpp | ZintrulCre/LeetCode_Archiver | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 2 | 2019-03-31T08:03:06.000Z | 2021-03-07T04:54:32.000Z | LeetCode/cpp/118.cpp | ZintrulCre/LeetCode_Crawler | de23e16ead29336b5ee7aa1898a392a5d6463d27 | [
"MIT"
] | 12 | 2019-01-29T11:45:32.000Z | 2019-02-04T16:31:46.000Z | class Solution {
public:
vector<vector<int>> generate(int numRows) {
int n = numRows;
vector<vector<int>> ret;
for (int i = 0; i < n; ++i) {
vector<int> temp;
for (int j = 0; j < i + 1; ++j) {
if (j == 0 || j == i)
temp.push_back(1)... | 27.722222 | 70 | 0.38477 | ZintrulCre |
f89acc4402e2f8eb96a10d9b6748919c3fe46454 | 406 | cc | C++ | example/shell.cc | sk2sat/libsksat | deee2f2a657e99ed90439acf9bac44692aea8dc6 | [
"MIT"
] | 3 | 2018-02-02T20:35:09.000Z | 2020-03-27T15:11:37.000Z | example/shell.cc | sk2sat/libsksat | deee2f2a657e99ed90439acf9bac44692aea8dc6 | [
"MIT"
] | 2 | 2017-10-25T05:41:29.000Z | 2018-01-04T13:27:14.000Z | example/shell.cc | sk2sat/libsksat | deee2f2a657e99ed90439acf9bac44692aea8dc6 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <string>
#include <sksat/shell.hpp>
int func(std::string &s){
std::cout<<"command: "<<s<<std::endl;
return 0;
}
int main(int argc, char **argv){
sksat::shell sh;
if(argc == 2){
FILE *in = std::fopen(argv[1], "r");
sh.set_infile(in);
}
sh.set_prompt("$ ");
sh.s... | 17.652174 | 38 | 0.600985 | sk2sat |
f8a7d47d3e9cfccd3441b59074b9da427e99a7f1 | 1,386 | hpp | C++ | liboh/plugins/js/JSObjectStructs/JSVisibleStruct.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 1 | 2016-05-09T03:34:51.000Z | 2016-05-09T03:34:51.000Z | liboh/plugins/js/JSObjectStructs/JSVisibleStruct.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | liboh/plugins/js/JSObjectStructs/JSVisibleStruct.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | #ifndef __SIRIKATA_JS_VISIBLE_STRUCT_HPP__
#define __SIRIKATA_JS_VISIBLE_STRUCT_HPP__
#include <sirikata/oh/HostedObject.hpp>
#include <v8.h>
#include <vector>
#include "JSPositionListener.hpp"
#include "../JSCtx.hpp"
namespace Sirikata {
namespace JS {
//need to forward-declare this so that can reference this insid... | 25.2 | 105 | 0.74531 | pathorn |
f8a94552b54a3f06d056b037a8c0e517c722d6e8 | 1,827 | hpp | C++ | lib/src/oclero/LocalEndpoint.hpp | oclero/qtappinstancemanager | 6352d69bebc9bfb4d05e4930349f1a5bc9616cce | [
"MIT"
] | null | null | null | lib/src/oclero/LocalEndpoint.hpp | oclero/qtappinstancemanager | 6352d69bebc9bfb4d05e4930349f1a5bc9616cce | [
"MIT"
] | null | null | null | lib/src/oclero/LocalEndpoint.hpp | oclero/qtappinstancemanager | 6352d69bebc9bfb4d05e4930349f1a5bc9616cce | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <QObject>
#include <QByteArray>
#include <QVector>
namespace oclero {
/**
* @brief Allows communication using a local socket (locked file).
* The first LocalEndpoint acts as the server, and the other ones act as clients.
*/
class LocalEndpoint : public QObject {
Q_OBJECT
... | 26.478261 | 107 | 0.741653 | oclero |
f8abf246d3584d315f53c09bfa2f72495a3f7a95 | 1,343 | cpp | C++ | src/result.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | 2 | 2020-12-23T16:42:52.000Z | 2021-04-13T20:41:09.000Z | src/result.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | null | null | null | src/result.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | null | null | null | #include "result.h"
namespace img32
{
const char* ResultToString(Result result)
{
const char* str;
switch(result) {
/// Read File
case Result::InvalidFile: str = "Invalid File"; break;
case Result::EmptyFile: str = "Empty F... | 46.310345 | 96 | 0.47729 | surreal-Ceres |
f8b1ca2967b05818a3cfa9c548a54fa1d006a050 | 5,430 | cpp | C++ | DSAlab/19114055-05/Source Codes/P1.cpp | maayami/Data-Structures-Algorithms | f2f7cf808be43b85f35a7b1801460ecc20d75695 | [
"CC0-1.0"
] | 1 | 2020-05-14T18:22:10.000Z | 2020-05-14T18:22:10.000Z | DSAlab/19114055-05/Source Codes/P1.cpp | mayank-genesis/Data-Structures-Algorithms | f2f7cf808be43b85f35a7b1801460ecc20d75695 | [
"CC0-1.0"
] | null | null | null | DSAlab/19114055-05/Source Codes/P1.cpp | mayank-genesis/Data-Structures-Algorithms | f2f7cf808be43b85f35a7b1801460ecc20d75695 | [
"CC0-1.0"
] | null | null | null | /*
Masthead -
Submitted by - Mayank Meena
Enroll no. - 19114055
Batch - O-3
Code Editor - VSCode 2020
Terminal - WSL Ubuntu 2020
Shell - git bash
Contact -
Website - https://mayankmeena.netlify.app/
Email - mayank_m@cs.iitr.ac.in
Social -
GitHub - https://github.com/maayami
YouTube - https://www.youtube.com/channel... | 22.719665 | 90 | 0.550092 | maayami |
f8bb497f18ac04a067c36b676a6537d0f2d20560 | 30,612 | cpp | C++ | src/scope.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 3 | 2020-12-28T01:40:45.000Z | 2021-05-18T01:47:07.000Z | src/scope.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 4 | 2019-06-29T12:23:11.000Z | 2020-07-25T15:38:46.000Z | src/scope.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 1 | 2021-11-17T01:49:42.000Z | 2021-11-17T01:49:42.000Z | // Copyright (C) 2018 Vincent Chambrin
// This file is part of the libscript library
// For conditions of distribution and use, see copyright notice in LICENSE
#include "script/scope.h"
#include "script/private/scope_p.h"
#include "script/engine.h"
#include "script/private/class_p.h"
#include "script/private/enum_p.h... | 21.126294 | 134 | 0.648373 | strandfield |
f8c2120e1badbffa3854bd785a9ba3fcf0476f5a | 6,028 | cpp | C++ | tests/itkTensorFlowFilter_test.cpp | MRKonrad/itkTensorFlow | f4712784ba52a1f28103a098277f6ddc5c3731c5 | [
"MIT"
] | null | null | null | tests/itkTensorFlowFilter_test.cpp | MRKonrad/itkTensorFlow | f4712784ba52a1f28103a098277f6ddc5c3731c5 | [
"MIT"
] | null | null | null | tests/itkTensorFlowFilter_test.cpp | MRKonrad/itkTensorFlow | f4712784ba52a1f28103a098277f6ddc5c3731c5 | [
"MIT"
] | null | null | null | //
// Created by Konrad Werys on 04/04/2019.
//
#include "gtest/gtest.h"
#include "itkTensorFlowFilter.h"
TEST(itkTensorFlowFilter, itkTensorFlowFilter_incorrectInputType_shouldThrowError) {
std::string graphFilename = "../../tests/testData/model_deeplab.pb";
oxtf::GraphReader graphReader;
graphReader... | 31.726316 | 95 | 0.697246 | MRKonrad |
f8c3fb4932b9f92b27c130ed515ca2941030374f | 1,644 | hpp | C++ | include/desola/tg/NameGenerator.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | 2 | 2021-12-17T10:46:20.000Z | 2021-12-18T11:53:50.000Z | include/desola/tg/NameGenerator.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | include/desola/tg/NameGenerator.hpp | FrancisRussell/desola | a469428466e4849c7c0e2009a0c50b89184cae01 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************/
/* Copyright 2005-2006, Francis Russell */
/* */
/* Licensed under the Apache License, Version 2.0 (the License); */
/* y... | 36.533333 | 78 | 0.442822 | FrancisRussell |
f8c4f5d0c1ea9ce7800ba522ecb39a4272650e8a | 5,209 | cpp | C++ | src/dtkContainerSupport/dtkAbstractContainerWrapper.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkContainerSupport/dtkAbstractContainerWrapper.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | null | null | null | src/dtkContainerSupport/dtkAbstractContainerWrapper.cpp | eti-nne/dtk | b5095c7a181e7497391a6a1fa0bb37e71dfa4b56 | [
"BSD-3-Clause"
] | 1 | 2020-04-21T14:41:52.000Z | 2020-04-21T14:41:52.000Z | /* dtkAbstractContainerWrapper.cpp ---
*
* Author: tkloczko
* Copyright (C) 2011 - Thibaud Kloczko, Inria.
* Created: Wed May 23 17:51:33 2012 (+0200)
* Version: $Id: f8c4f5d0c1ea9ce7800ba522ecb39a4272650e8a $
* Last-Updated: Wed Oct 10 12:19:01 2012 (+0200)
* By: Julien Wintz
* Update #: 51
*/... | 21.524793 | 123 | 0.699175 | eti-nne |
f8c5d92d25098ce5461afd45de3b858dce708f9d | 16,151 | hpp | C++ | modules/mcc/include/opencv2/mcc/colorspace.hpp | riskiest/opencv_contrib | 47c716db455c1b9aaff0fe4cafba2c283132fb39 | [
"Apache-2.0"
] | null | null | null | modules/mcc/include/opencv2/mcc/colorspace.hpp | riskiest/opencv_contrib | 47c716db455c1b9aaff0fe4cafba2c283132fb39 | [
"Apache-2.0"
] | null | null | null | modules/mcc/include/opencv2/mcc/colorspace.hpp | riskiest/opencv_contrib | 47c716db455c1b9aaff0fe4cafba2c283132fb39 | [
"Apache-2.0"
] | 2 | 2020-08-07T07:12:11.000Z | 2020-08-07T08:35:45.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
//
// License Agreement
// For Open Source Computer Vision Library
//
// Copyright(C) 20... | 25.515008 | 156 | 0.566528 | riskiest |
f8c87bbfe7bc792d0d881f8da96888959e415fa3 | 4,608 | cpp | C++ | src/datatypes/gimage.cpp | Graph-ICS/Graph-ICS | 95cf624f38744642c257509373c3550baf484438 | [
"MIT"
] | 11 | 2021-01-04T10:58:56.000Z | 2022-03-30T15:14:23.000Z | src/datatypes/gimage.cpp | Graph-ICS/Graph-ICS | 95cf624f38744642c257509373c3550baf484438 | [
"MIT"
] | 2 | 2019-01-22T14:51:42.000Z | 2019-01-22T14:58:55.000Z | src/datatypes/gimage.cpp | Graph-ICS/Graph-ICS | 95cf624f38744642c257509373c3550baf484438 | [
"MIT"
] | 2 | 2019-01-22T14:48:15.000Z | 2020-07-28T14:59:26.000Z | #include "gimage.h"
GImage::GImage()
{
m_qPixmap =QPixmap();
m_qImage = QImage();
m_cvMatImage = cv::Mat();
m_itkImage = nullptr;
}
GImage::~GImage()
{
}
void GImage::setImage(QPixmap qPixmap)
{
m_qPixmap = qPixmap;
m_qImage = QImage();
m_cvMatImage = cv::Mat();
m_itkImage = nullptr... | 23.04 | 114 | 0.621962 | Graph-ICS |
f8c9a1800e8333efd077194814d4cf7f1696e1d0 | 4,319 | cpp | C++ | Damask/ast/lexer.cpp | imefGames/Damask | 478a377517da93e8fd42cb5c68619f8840bf1561 | [
"MIT"
] | null | null | null | Damask/ast/lexer.cpp | imefGames/Damask | 478a377517da93e8fd42cb5c68619f8840bf1561 | [
"MIT"
] | null | null | null | Damask/ast/lexer.cpp | imefGames/Damask | 478a377517da93e8fd42cb5c68619f8840bf1561 | [
"MIT"
] | null | null | null | #include <ast/lexer.h>
#include <algorithm>
#include <cctype>
Token::Token()
: TokenType{ EToken::None }
{
}
Token::Token(std::string_view tokenText, EToken tokenType)
: TokenText{ tokenText }
, TokenType{ tokenType }
{
}
Lexer::Lexer(std::string_view buffer)
: m_Buffer{ buffer }
{
RegisterReservedToken("(",... | 25.110465 | 94 | 0.702014 | imefGames |
f8cc56e6efa285dbbd8a054089e39a451674978f | 8,021 | cpp | C++ | Framework/Source/ThirdPersonCamera.cpp | AjayAujla/Space-Shooter-5000 | 340fa3fb5e0880b3b8d20e2c32a659698bf6338b | [
"Apache-2.0"
] | null | null | null | Framework/Source/ThirdPersonCamera.cpp | AjayAujla/Space-Shooter-5000 | 340fa3fb5e0880b3b8d20e2c32a659698bf6338b | [
"Apache-2.0"
] | 1 | 2017-04-12T03:41:23.000Z | 2019-07-12T11:43:13.000Z | Framework/Source/ThirdPersonCamera.cpp | AjayAujla/Space-Shooter-5000 | 340fa3fb5e0880b3b8d20e2c32a659698bf6338b | [
"Apache-2.0"
] | null | null | null | //
// COMP 371 Assignment Framework
//
// Created by Nicolas Bergeron on 8/7/14.
//
// Copyright (c) 2014 Concordia University. All rights reserved.
//
#include "ThirdPersonCamera.h"
#include "EventManager.h"
#include <GLM/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <GLFW/glfw3.h>
#include <algorithm>
#... | 35.96861 | 414 | 0.691684 | AjayAujla |
f8d36c3b6b24faab9ba13f6089bcb8e4564d69cc | 28,842 | cpp | C++ | game/PlayerComponent.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 24 | 2019-02-24T14:48:16.000Z | 2022-03-21T21:37:26.000Z | game/PlayerComponent.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 3 | 2019-02-25T20:45:09.000Z | 2019-02-28T18:05:45.000Z | game/PlayerComponent.cpp | Sheph/TriggerTime | 9265dee6a178e43bf7365e3aa2f7f2ca22df074f | [
"BSD-2-Clause"
] | 7 | 2019-02-28T11:33:15.000Z | 2022-01-26T20:11:45.000Z | /*
* Copyright (c) 2014, Stanislav Vorobiov
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of ... | 35.259169 | 117 | 0.586818 | Sheph |
f8dc9918ca07295679c7afa49a1ed4434c85a7c2 | 658 | cpp | C++ | 2020-10-13/03_intersect.cpp | zhilkov/fmi-sdp-2020-kn-group8 | bcd064604daa73bf673ef1eba87150bba23dc31e | [
"MIT"
] | 2 | 2020-11-03T21:52:57.000Z | 2021-04-01T16:49:16.000Z | 2020-10-13/03_intersect.cpp | zhilkov/fmi-sdp-2020-kn-group8 | bcd064604daa73bf673ef1eba87150bba23dc31e | [
"MIT"
] | null | null | null | 2020-10-13/03_intersect.cpp | zhilkov/fmi-sdp-2020-kn-group8 | bcd064604daa73bf673ef1eba87150bba23dc31e | [
"MIT"
] | 2 | 2021-01-24T08:12:51.000Z | 2021-01-26T06:03:40.000Z | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
/*
Въпроси:
1. Каква е сложността на функцията intersect() ?
2. Как бихме могли да оптимизираме това, имайки предвид, че двата вектора са сортирани ?
*/
template<typename T>
vector<T> intersect(vector<T> left, vector<T> right) {
vect... | 20.5625 | 88 | 0.585106 | zhilkov |
25cde9ce55f1a7a75b3195732e061a58112cf1d7 | 2,675 | cpp | C++ | hw3/assignment/coarse_grain/App.cpp | sheilsarda/SoC_Programming | 50852515700e24a657f6359c0a231e55c5c9f59e | [
"MIT"
] | null | null | null | hw3/assignment/coarse_grain/App.cpp | sheilsarda/SoC_Programming | 50852515700e24a657f6359c0a231e55c5c9f59e | [
"MIT"
] | null | null | null | hw3/assignment/coarse_grain/App.cpp | sheilsarda/SoC_Programming | 50852515700e24a657f6359c0a231e55c5c9f59e | [
"MIT"
] | null | null | null | #include "App.h"
#define STAGES (4)
/*
[ec2-user@ip-172-31-88-205 assignment]$ make coarse
g++ -std=c++11 -Wall -O2 -g -DNDEBUG -pthread -I./common coarse_grain/App.cpp coarse_grain/Compress.cpp coarse_grain/Differentiate.cpp coarse_grain/Scale.cpp coarse_grain/Filter.cpp common/Utilities.cpp -o coarse -lpthrea... | 32.228916 | 232 | 0.66243 | sheilsarda |
25d6cc64626015369cd502cb63a65a8c3455abee | 20,876 | cpp | C++ | src/UdpHubListener.cpp | Saiyeux/Jacklink | b3182b7c04cf028ad168a66febcbb4b415b88199 | [
"Apache-2.0"
] | null | null | null | src/UdpHubListener.cpp | Saiyeux/Jacklink | b3182b7c04cf028ad168a66febcbb4b415b88199 | [
"Apache-2.0"
] | 2 | 2021-08-02T13:07:04.000Z | 2021-08-07T03:56:20.000Z | src/UdpHubListener.cpp | Saiyeux/Jacklink | b3182b7c04cf028ad168a66febcbb4b415b88199 | [
"Apache-2.0"
] | 2 | 2021-07-14T13:08:33.000Z | 2021-07-27T08:26:42.000Z | //*****************************************************************
/*
JackTrip: A System for High-Quality Audio Network Performance
over the Internet
Copyright (c) 2008 Juan-Pablo Caceres, Chris Chafe.
SoundWIRE group at CCRMA, Stanford University.
Permission is hereby granted, free of charge, to a... | 38.164534 | 130 | 0.579661 | Saiyeux |
25d8f3f1711135a0a39d50133083d978e2ea1657 | 822 | cpp | C++ | BAC/exercises/ch9/UVa10304.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC/exercises/ch9/UVa10304.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC/exercises/ch9/UVa10304.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa10304 Optimal Binary Search Tree
// Rujia Liu
// 题意:经典的OBST问题
// 算法:设d[i][j]为关键字i~j构造出的OBST的最小费用,sum(i,j)为i~j的权值之和
// d[i][j] = min{d[i][k-1] + d[k+1][j]} + sum(i,j) - f[k],表示根结点为k,除了根之外其他结点的高度加1,因此费用要加上权值。
#include<cstdio>
#include<cstring>
const int maxn = 250 + 5;
int n, f[maxn], psum[maxn], d[maxn][maxn];
in... | 25.6875 | 91 | 0.521898 | Anyrainel |
25d9f6c5e7beb1e8f4930c708d7c38ed99ee7f67 | 3,375 | cpp | C++ | any-vs-variant/json_any_2.cpp | cpp-tutor/learnmoderncpp-articles | a155e42ef36a16941f064244bd612e8145645188 | [
"MIT"
] | null | null | null | any-vs-variant/json_any_2.cpp | cpp-tutor/learnmoderncpp-articles | a155e42ef36a16941f064244bd612e8145645188 | [
"MIT"
] | null | null | null | any-vs-variant/json_any_2.cpp | cpp-tutor/learnmoderncpp-articles | a155e42ef36a16941f064244bd612e8145645188 | [
"MIT"
] | null | null | null | // json_any_2.cpp : build and output more complex JSON object using std::any
// requires -std=c++17 or later
#include <any>
#include <utility>
#include <vector>
#include <string>
#include <string_view>
#include <iostream>
#include <stdexcept>
using namespace std;
using JSON = vector<pair<string,any>>;
using JSONArray... | 29.867257 | 85 | 0.501037 | cpp-tutor |
25dd0e89d86914b0e2703dbd0b647828936e185b | 509 | hpp | C++ | include/ph_type_list/macros.hpp | phiwen96/phore | 8a8496d4fcb6b01cb74534ac5244dacf0262918f | [
"Apache-2.0"
] | null | null | null | include/ph_type_list/macros.hpp | phiwen96/phore | 8a8496d4fcb6b01cb74534ac5244dacf0262918f | [
"Apache-2.0"
] | null | null | null | include/ph_type_list/macros.hpp | phiwen96/phore | 8a8496d4fcb6b01cb74534ac5244dacf0262918f | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace {
template <size_t N, size_t M> consteval bool same_strings (char const(&lhs)[N], char const(&rhs)[M]){
if (N != M)
return false;
for (int i = 0; i < N; ++i)
{
if (lhs[i] != rhs[i])
return false;
}
return true;
}
#define SAME_TOKEN(x, y) __builtin... | 24.238095 | 116 | 0.62279 | phiwen96 |
25e1393f5991aa801121283c880c75d622ded4a9 | 1,067 | hpp | C++ | src/othello/interface.hpp | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | 10 | 2019-05-14T12:54:49.000Z | 2022-02-28T12:02:52.000Z | src/othello/interface.hpp | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | src/othello/interface.hpp | SakodaShintaro/Miacis | af3508076660cc6e19186f17fa436499e32164f5 | [
"BSD-3-Clause"
] | null | null | null | #ifndef MIACIS_OTHELLO_INTERFACE_HPP
#define MIACIS_OTHELLO_INTERFACE_HPP
#include "../search/search_options.hpp"
#include "../search/searcher_for_play.hpp"
#include "position.hpp"
#include <functional>
#include <thread>
namespace Othello {
class Interface {
public:
Interface();
void loop();
void printO... | 18.396552 | 68 | 0.682287 | SakodaShintaro |
25e74397992d1b9b050321e1525aeb0d7d2e4ff4 | 2,856 | cc | C++ | cpp/21/21a.cc | ckennelly/advent-of-code-2020 | c0ff6bb50b74873f6cc74aa432438a9e1d6aac06 | [
"Apache-2.0"
] | null | null | null | cpp/21/21a.cc | ckennelly/advent-of-code-2020 | c0ff6bb50b74873f6cc74aa432438a9e1d6aac06 | [
"Apache-2.0"
] | null | null | null | cpp/21/21a.cc | ckennelly/advent-of-code-2020 | c0ff6bb50b74873f6cc74aa432438a9e1d6aac06 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <regex>
#include <set>
#include <string>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/strings/ascii.h"
#include "absl/strings/numbers.h"
#include "... | 28 | 80 | 0.596989 | ckennelly |
25ea94a34c33bfe7ee22dc54f15a6d8972a81373 | 2,867 | hh | C++ | src/_LSLib/row_gs_axb.hh | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | 6 | 2018-05-30T23:02:14.000Z | 2022-01-19T07:30:46.000Z | src/_LSLib/row_gs_axb.hh | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | null | null | null | src/_LSLib/row_gs_axb.hh | asminer/smart | 269747c4578b670e5c3973f93a1e6ec71d95be78 | [
"Apache-2.0"
] | 2 | 2018-07-13T18:53:27.000Z | 2021-04-12T17:54:02.000Z |
#ifndef ROW_GS_AXB_HH
#define ROW_GS_AXB_HH
#include "lslib.h"
#include "debug.hh"
#include "vectors.hh"
#include <math.h>
/**
Workhorse for Row Gauss-Seidel solving Ax=b.
The MATRIX class must provide the following methods/members:
one_over_diag[] : negated reciprocals of diagonal e... | 25.828829 | 78 | 0.575166 | asminer |
25eab39e863a1e56a5a3be44ca39656e11f8690f | 6,473 | cpp | C++ | src/qsa/src/engine/qsfuncref.cpp | hackbinary/pdfedit | 5efb58265d0b86c2786d7b218aa0d6f895b926d3 | [
"CECILL-B"
] | 13 | 2015-10-15T01:26:37.000Z | 2019-11-18T21:50:46.000Z | src/qsa/src/engine/qsfuncref.cpp | mmoselhy/PDF-X | b72597bbb0c6c86d99e44cf18f7b46d5175a7bfa | [
"CECILL-B"
] | 1 | 2020-03-28T23:06:53.000Z | 2020-04-08T03:24:06.000Z | src/qsa/src/engine/qsfuncref.cpp | mmoselhy/PDF-X | b72597bbb0c6c86d99e44cf18f7b46d5175a7bfa | [
"CECILL-B"
] | 14 | 2016-01-31T10:54:56.000Z | 2020-08-31T11:08:42.000Z | /****************************************************************************
** $Id$
**
** Copyright (C) 2001-2006 Trolltech AS. All rights reserved.
**
** This file is part of the Qt Script for Applications framework (QSA).
**
** This file may be distributed and/or modified under the terms of the
** GNU General Publ... | 27.900862 | 101 | 0.624285 | hackbinary |
25f041de894eef2179b0a133a07f2740e7ffeca7 | 4,087 | cpp | C++ | math/math_test.cpp | N-A-D/sonic | 86ed90023ea91a6ff91889c45f9adf1810f851fc | [
"MIT"
] | null | null | null | math/math_test.cpp | N-A-D/sonic | 86ed90023ea91a6ff91889c45f9adf1810f851fc | [
"MIT"
] | null | null | null | math/math_test.cpp | N-A-D/sonic | 86ed90023ea91a6ff91889c45f9adf1810f851fc | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CppUnitTest.h"
#include "..\sonic\math\sonic_math_vec2D.h"
#include "..\sonic\math\sonic_math_functions.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace math
{
TEST_CLASS(vec2D)
{
public:
TEST_METHOD(length)
{
sonic::math::vec2D v(3, 4);
Asser... | 23.900585 | 97 | 0.592366 | N-A-D |
25f3f80aae7ad5ac780ff4f6b647faffdb15b83f | 6,808 | hpp | C++ | lib/parser/src/utf8_parser.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/parser/src/utf8_parser.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | lib/parser/src/utf8_parser.hpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Sylko Olzscher
*
*/
#ifndef CYNG_PARSER_UTF8_HPP
#define CYNG_PARSER_UTF8_HPP
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
#include <cyng/parser/utf8_parser.h>
#include <cyng/fact... | 29.344828 | 158 | 0.559783 | solosTec |
25f83fe280a498b78f6343560776c7408ea4bea4 | 1,533 | cpp | C++ | graphics/chart.cpp | Leadam/TuringEngine | 2ab73199071a79d63d04d119f9547620cf96ce23 | [
"Apache-2.0"
] | null | null | null | graphics/chart.cpp | Leadam/TuringEngine | 2ab73199071a79d63d04d119f9547620cf96ce23 | [
"Apache-2.0"
] | null | null | null | graphics/chart.cpp | Leadam/TuringEngine | 2ab73199071a79d63d04d119f9547620cf96ce23 | [
"Apache-2.0"
] | null | null | null | #include "chart.h"
#include <algorithm>
#include <iostream>
chart::chart(){
_window = SDL_CreateWindow("Chart",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
640, 480,
0);
_renderer = SDL_CreateRenderer(_window, -1, SDL_RENDERER_ACCELERATED);
}
void chart::setDataSet(std::vector< double >& data){
... | 21.291667 | 114 | 0.660796 | Leadam |
d302c7316ed87c6984be66dffb9f086199903058 | 2,450 | cpp | C++ | Gemini/Engine/Math/Vector3.cpp | drahenshaw/Gemini | 71a4f215daf1dd10c9076aaacc1292a6a039b89b | [
"MIT"
] | null | null | null | Gemini/Engine/Math/Vector3.cpp | drahenshaw/Gemini | 71a4f215daf1dd10c9076aaacc1292a6a039b89b | [
"MIT"
] | null | null | null | Gemini/Engine/Math/Vector3.cpp | drahenshaw/Gemini | 71a4f215daf1dd10c9076aaacc1292a6a039b89b | [
"MIT"
] | null | null | null | #include "Vector3.h"
#include <math.h>
float Vector3::DotProduct(const Vector3 & a, const Vector3 & b)
{
return a.x_*b.x_ + a.y_ * b.y_ + a.z_ * b.z_;
}
Vector3 Vector3::VectorProjection(const Vector3 & a, const Vector3 & b)
{
//Creates a new Vector3 Object that is the result of projecting a onto b
//Formula: ((a ... | 19.758065 | 90 | 0.663265 | drahenshaw |
d30b4cf24bf13c8f34971c09c2c96f4f8a27c8f8 | 6,030 | cc | C++ | file_util/tests/file_utils_test.cc | ScottGarman/leatherman | 7c1407c29b056148e6332dabf4017ca50f064a94 | [
"Apache-2.0"
] | 55 | 2015-08-27T13:17:42.000Z | 2022-02-07T15:19:59.000Z | file_util/tests/file_utils_test.cc | ScottGarman/leatherman | 7c1407c29b056148e6332dabf4017ca50f064a94 | [
"Apache-2.0"
] | 236 | 2015-02-23T23:50:10.000Z | 2021-09-01T18:09:12.000Z | file_util/tests/file_utils_test.cc | ScottGarman/leatherman | 7c1407c29b056148e6332dabf4017ca50f064a94 | [
"Apache-2.0"
] | 88 | 2015-02-23T22:40:27.000Z | 2022-02-07T15:19:59.000Z | #include <catch.hpp>
#include <leatherman/file_util/file.hpp>
#include "fixtures.hpp"
#include <boost/filesystem.hpp>
#ifdef _WIN32
#include <windows.h>
#endif
using namespace leatherman::file_util;
TEST_CASE("file_util::tilde_expand", "[utils]") {
#ifdef _WIN32
_putenv("USERPROFILE=/testhome");
#else
seten... | 30.765306 | 84 | 0.602985 | ScottGarman |
d30b97518cbf16072083b86251048ed4cbb06d5a | 969 | cpp | C++ | Cplusplus/week_two/extra/ClassesAndObjects/ClassesAndObjects.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | 1 | 2016-12-20T19:53:03.000Z | 2016-12-20T19:53:03.000Z | Cplusplus/week_two/extra/ClassesAndObjects/ClassesAndObjects.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | Cplusplus/week_two/extra/ClassesAndObjects/ClassesAndObjects.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | #include "Tweeter.h"
#include "status.h"
#include <iostream>
using namespace std;
int main(){
{
Tweeter t1("Nexus", "Star", 100, "@nexusstar");
cout << "t1 " << t1.GetName() << t1.GetNumber() << endl;
} //forces destructor run
Person p2("Gosho","Goshev", 200);
Tweeter t2("Some", "Other", 100, "@some... | 21.065217 | 61 | 0.552116 | nexusstar |
d30bc578e4fc1a9ea91ccaef51ae618d87a61000 | 825 | cpp | C++ | src/util/fix_symbol.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | src/util/fix_symbol.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | src/util/fix_symbol.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | /*******************************************************************\
Module: ANSI-C Linking
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include <util/fix_symbol.h>
void fix_symbolt::fix_symbol(symbolt &symbol)
{
type_mapt::const_iterator ... | 23.571429 | 80 | 0.561212 | shmarovfedor |
d30de1fac9c52b15e75aa4799459b8d421b50dce | 1,125 | cpp | C++ | Client/opus/Encoder.cpp | LiardeauxQ/Babel | 6cdd475b8947f6a8b0d1c4325a06dfd9bfa65e72 | [
"MIT"
] | 1 | 2020-02-12T12:02:19.000Z | 2020-02-12T12:02:19.000Z | Client/opus/Encoder.cpp | LiardeauxQ/Babel | 6cdd475b8947f6a8b0d1c4325a06dfd9bfa65e72 | [
"MIT"
] | null | null | null | Client/opus/Encoder.cpp | LiardeauxQ/Babel | 6cdd475b8947f6a8b0d1c4325a06dfd9bfa65e72 | [
"MIT"
] | 3 | 2020-02-12T12:02:22.000Z | 2021-10-11T11:00:24.000Z | //
// Created by Quentin Liardeaux on 9/16/19.
//
#include "Encoder.hpp"
opus::Encoder::Encoder(InputSignalFq fs, int channels, ApplicationType type) {
int error = 0;
this->channels = channels;
this->enc = opus_encoder_create(fs, channels, type, &error);
if (this->enc == nullptr)
throw Error(... | 28.846154 | 98 | 0.686222 | LiardeauxQ |
d30e2b3dee696508bf7a479e5397f96522c9765a | 811 | cpp | C++ | src/meta/metamanager.cpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 3 | 2015-03-28T02:51:58.000Z | 2018-11-08T16:49:53.000Z | src/meta/metamanager.cpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 39 | 2015-05-18T08:29:16.000Z | 2020-07-18T21:17:44.000Z | src/meta/metamanager.cpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | null | null | null | #include "meta/metamanager.hpp"
namespace qrw
{
Reflectable* MetaManager::deserialize(YAML::Node node) const
{
assert(node[MetaClass::TYPE_NAME_YAML_KEY]);
auto metaClass = getMetaClassByTypeName(node[MetaClass::TYPE_NAME_YAML_KEY].as<std::string>());
return metaClass->deserialize(node);
}
MetaClass* MetaManager:... | 27.965517 | 96 | 0.766954 | namelessvoid |
d30eeb64331e69fc319c4c254ae16d920c3c8df2 | 639 | cpp | C++ | tests/pi/forward_request/test_i.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 20 | 2019-11-13T12:31:20.000Z | 2022-02-27T12:30:39.000Z | tests/pi/forward_request/test_i.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 46 | 2019-11-15T20:40:18.000Z | 2022-03-31T19:04:36.000Z | tests/pi/forward_request/test_i.cpp | ClausKlein/taox11 | 669cfd2d0be258722c7ee32b23f2e5cb83e4520f | [
"MIT"
] | 5 | 2019-11-12T15:00:50.000Z | 2022-01-17T17:33:05.000Z | /**
* @file test_i.cpp
* @author Martin Corino
*
* @brief Implementation for the "test" IDL interface for the
* PortableInterceptor::ForwardRequest test.
*
* @copyright Copyright (c) Remedy IT Expertise BV
*/
#include "test_i.h"
#include "testlib/taox11_testlog.h"
test_i::test_i (int16_t num,
... | 18.257143 | 63 | 0.638498 | ClausKlein |
d3117b44080a715b48d757f7f73c1632f833519b | 3,606 | cpp | C++ | models/processor/zesto/ZCOMPS-fusion/fusion-priority.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 8 | 2016-01-22T18:28:48.000Z | 2021-05-07T02:27:21.000Z | models/processor/zesto/ZCOMPS-fusion/fusion-priority.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 3 | 2016-04-15T02:58:58.000Z | 2017-01-19T17:07:34.000Z | models/processor/zesto/ZCOMPS-fusion/fusion-priority.cpp | Basseuph/manifold | 99779998911ed7e8b8ff6adacc7f93080409a5fe | [
"BSD-3-Clause"
] | 10 | 2015-12-11T04:16:55.000Z | 2019-05-25T20:58:13.000Z | /* fusion-priority.cpp: ``Multi-Hybrid'' priority selection table [Evers et al., ISCA 1996] */
/*
* __COPYRIGHT__ GT
*/
#define COMPONENT_NAME "priority"
#ifdef BPRED_PARSE_ARGS
if(!strcasecmp("priority",type))
{
int num_entries;
if(sscanf(opt_string,"%*[^:]:%[^:]:%d",name,&num_entries) != 2)
fatal("bad fu... | 24.364865 | 95 | 0.615918 | Basseuph |
d3152ffbc65970104af8eb248f37c5d64bb32704 | 5,430 | cpp | C++ | a3d/src/d3d12/a3dCommandSet.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | 42 | 2016-11-11T13:27:48.000Z | 2021-07-27T17:53:43.000Z | a3d/src/d3d12/a3dCommandSet.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | null | null | null | a3d/src/d3d12/a3dCommandSet.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | 2 | 2017-03-26T08:25:29.000Z | 2018-10-24T06:10:29.000Z | //-------------------------------------------------------------------------------------------------
// File : a3dCommandSet.cpp
// Desc : CommandSet Module.
// Copyright(c) Project Asura. All right reserved.
//-------------------------------------------------------------------------------------------------
na... | 36.442953 | 101 | 0.332044 | ProjectAsura |
d3205c506266b134a7982ed91a28094a850e809f | 7,288 | cpp | C++ | src/waveformDisplay.cpp | thorthur/oamlStudio | 152d77792bc1a9230e0e2ccc8eeb36ab6cfb53d0 | [
"MIT"
] | 5 | 2017-07-08T18:50:52.000Z | 2018-07-11T17:53:28.000Z | src/waveformDisplay.cpp | thorthur/oamlStudio | 152d77792bc1a9230e0e2ccc8eeb36ab6cfb53d0 | [
"MIT"
] | 4 | 2018-03-13T18:47:29.000Z | 2018-04-27T00:43:53.000Z | src/waveformDisplay.cpp | thorthur/oamlStudio | 152d77792bc1a9230e0e2ccc8eeb36ab6cfb53d0 | [
"MIT"
] | 3 | 2016-06-21T02:55:49.000Z | 2018-03-22T09:28:30.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2015-2016 Marcelo Fernandez
//
// 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 rest... | 25.661972 | 108 | 0.66781 | thorthur |
d320ad10f68af8c3f2e14edfb3a74606e4b8a25f | 2,230 | cpp | C++ | codecs/bpg.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | 5 | 2020-06-02T18:05:43.000Z | 2022-02-19T10:44:47.000Z | codecs/bpg.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | null | null | null | codecs/bpg.cpp | mattvchandler/asciiart | 65eeb38aa42b98d49ce15bb2cc3a98950edb18cc | [
"MIT"
] | 1 | 2021-11-29T15:32:54.000Z | 2021-11-29T15:32:54.000Z | #include "bpg.hpp"
#include <libbpg.h>
#ifdef EXIF_FOUND
#include "exif.hpp"
#endif
Bpg::Bpg(std::istream & input)
{
auto data = Image::read_input_to_memory(input);
auto decoder = bpg_decoder_open();
if(!decoder)
throw std::runtime_error{"Could not create BPG decoder"};
bpg_decoder_keep_ext... | 28.961039 | 90 | 0.572197 | mattvchandler |
d32629ee2ff793e142aca78fea290296ca6c5d3a | 13,027 | cpp | C++ | src/WindowWithEditor.cpp | jrynkiew/jrpc_beta | bd2299260baf795b9b8ec3669953d8b520a03884 | [
"MIT"
] | 146 | 2020-07-04T05:58:05.000Z | 2022-03-24T00:00:23.000Z | src/WindowWithEditor.cpp | jrynkiew/jrpc_beta | bd2299260baf795b9b8ec3669953d8b520a03884 | [
"MIT"
] | 7 | 2020-07-03T20:17:04.000Z | 2022-03-19T13:56:14.000Z | src/WindowWithEditor.cpp | jrynkiew/jrpc_beta | bd2299260baf795b9b8ec3669953d8b520a03884 | [
"MIT"
] | 10 | 2020-07-06T09:26:47.000Z | 2022-02-18T20:10:49.000Z | #include "imgui_utilities/ImGuiExt.h"
#include "hello_imgui.h"
#include <fplus/fplus.hpp>
#include <map>
#include "WindowWithEditor.h"
#include "JsClipboardTricks.h"
std::vector<TextEditor *> gAllEditors;
std::vector<WindowWithEditor *> gAllWindowWithEditors;
ImFont * gMonospaceFont = nullptr;
void LoadMonospaceFont... | 35.592896 | 129 | 0.630306 | jrynkiew |
d32d970ab2ea41f826ad2f41ab386c7f61084b62 | 2,538 | cpp | C++ | Coconuts/src/core/graphics/Sprite.cpp | filhoDaMain/Coconuts | 007cfdea11e2bc7bbb8ffa38747629b111b4e196 | [
"Apache-2.0"
] | 3 | 2020-05-02T15:18:19.000Z | 2022-01-26T06:18:18.000Z | Coconuts/src/core/graphics/Sprite.cpp | filhoDaMain/Coconuts | 007cfdea11e2bc7bbb8ffa38747629b111b4e196 | [
"Apache-2.0"
] | 4 | 2021-07-19T21:55:59.000Z | 2021-10-04T20:19:17.000Z | Coconuts/src/core/graphics/Sprite.cpp | filhoDaMain/Coconuts | 007cfdea11e2bc7bbb8ffa38747629b111b4e196 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 Andre Temprilho
*
* 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... | 38.454545 | 96 | 0.555556 | filhoDaMain |
d33099bfebf0cd3f8cb329cdb57c50ebb6510851 | 2,968 | hpp | C++ | src/thread_pool.hpp | aleksrgarkusha/pcs | 597a2aa020a60473307ef09a8939db1d93657f8a | [
"Apache-2.0"
] | 2 | 2021-12-26T02:17:40.000Z | 2022-03-10T13:20:33.000Z | src/thread_pool.hpp | aleksrgarkusha/pcs | 597a2aa020a60473307ef09a8939db1d93657f8a | [
"Apache-2.0"
] | null | null | null | src/thread_pool.hpp | aleksrgarkusha/pcs | 597a2aa020a60473307ef09a8939db1d93657f8a | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <condition_variable>
#include <functional>
#include <future>
#include <memory>
#include <mutex>
#include <queue>
#include <thread>
#include <unordered_map>
#include <vector>
namespace pcs {
class ThreadPool {
public:
explicit ThreadPool(
const int num_threads = std::thread::hardware_co... | 24.130081 | 77 | 0.641509 | aleksrgarkusha |
d33204a22ec6ea794197503e32a59e2755c353ee | 1,335 | hpp | C++ | libs/pgl-core/include/pgl-core/model.hpp | CourrierGui/pangolin | b6c2c3f37239c3e359cea57fef9763c9c5e81d0f | [
"MIT"
] | null | null | null | libs/pgl-core/include/pgl-core/model.hpp | CourrierGui/pangolin | b6c2c3f37239c3e359cea57fef9763c9c5e81d0f | [
"MIT"
] | null | null | null | libs/pgl-core/include/pgl-core/model.hpp | CourrierGui/pangolin | b6c2c3f37239c3e359cea57fef9763c9c5e81d0f | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include <pgl-core/mesh.hpp>
#include <pgl-core/shader.hpp>
#include <pgl-math/impl/vector.hpp>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
namespace pgl {
namespace _3D {
... | 29.666667 | 70 | 0.525094 | CourrierGui |
d3347d331d69a86b497572fdc882397d341b47fb | 676 | cpp | C++ | AtCoder/ABC/ABC-064/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-064/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-064/SolveD.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MAX = (int)(1e5 + 5);
const ll INF = (ll)(1e10 + 5);
int n;
string s;
int main(void) {
// Here your code !
scanf("%d", &n);
cin >> s;
int cnt = 0;
int min_left = 100 + 5;
for (int i = 0; i < s.size(); ++i) {
cnt += ... | 15.022222 | 47 | 0.443787 | MonadicDavidHuang |
d334a749d6ca05c75d902a1e6ac14e53b150c7e4 | 819 | cc | C++ | jax/training/21-04/21-04-13/b.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | 2 | 2022-01-01T16:55:02.000Z | 2022-03-16T14:47:29.000Z | jax/training/21-04/21-04-13/b.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | jax/training/21-04/21-04-13/b.cc | JaxVanYang/acm | ee41f1cbf692b7b1463a9467401bb6e7d38aecce | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int maxn = 2e5 + 5;
char s[maxn], t[maxn];
int main() {
int n, m;
scanf("%d%d", &n, &m);
scanf("%s%s", s, t);
int len = min(n, m);
int l = 0;
while (l < len && s[l] == t[l]) {
++l;
}
int l1 = l;
// cout << "l = " << l << " n = ... | 22.135135 | 89 | 0.321123 | JaxVanYang |
d344be94b6068af8bfa0686e406d38a3556c236a | 9,340 | cpp | C++ | src/SAAAmp.cpp | TaleTN/SAASound | 43ffbb93edd1e4c4c571c838c017603f26525f3b | [
"BSD-3-Clause"
] | 2 | 2021-07-15T12:55:02.000Z | 2022-01-26T08:19:10.000Z | src/SAAAmp.cpp | TaleTN/SAASound | 43ffbb93edd1e4c4c571c838c017603f26525f3b | [
"BSD-3-Clause"
] | null | null | null | src/SAAAmp.cpp | TaleTN/SAASound | 43ffbb93edd1e4c4c571c838c017603f26525f3b | [
"BSD-3-Clause"
] | null | null | null | // Part of SAASound copyright 1998-2018 Dave Hooper <dave@beermex.com>
//
// SAAAmp.cpp: implementation of the CSAAAmp class.
// This class handles Tone/Noise mixing, Envelope application and
// amplification.
//
//////////////////////////////////////////////////////////////////////
#include "SAASound.h"
#include "typ... | 25.589041 | 171 | 0.688009 | TaleTN |
d3482f94186ceaad14bca7328a9b7400f5268baf | 1,554 | cpp | C++ | Problems/Timus/1136_Parliament/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | Problems/Timus/1136_Parliament/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | 1 | 2019-05-09T19:17:00.000Z | 2019-05-09T19:17:00.000Z | Problems/Timus/1136_Parliament/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <vector>
#include <list>
#include <algorithm>
using namespace std;
struct node {
node()
{
left = nullptr;
right = nullptr;
}
node* left;
node* right;
int value;
};
vector<node> nodePool(3000);
struct tree ... | 16.891304 | 39 | 0.457529 | grand87 |
d348ae0982945027af90cf3d795545c8b8e07a17 | 1,427 | cpp | C++ | Samples/BCB/SpikeTrainer/MainFormUnit.cpp | VI10604/nmsdk | 065b9e60f6716b3a01275647937a7dd4dcff14d3 | [
"BSD-3-Clause"
] | 1 | 2020-04-05T20:14:26.000Z | 2020-04-05T20:14:26.000Z | Samples/BCB/SpikeTrainer/MainFormUnit.cpp | VI10604/nmsdk | 065b9e60f6716b3a01275647937a7dd4dcff14d3 | [
"BSD-3-Clause"
] | null | null | null | Samples/BCB/SpikeTrainer/MainFormUnit.cpp | VI10604/nmsdk | 065b9e60f6716b3a01275647937a7dd4dcff14d3 | [
"BSD-3-Clause"
] | null | null | null | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "MainFormUnit.h"
#include "nmsdk_initdll.h"
#include "UClassesListFormUnit.h"
#include "UEngineMonitorFormUnit.h"
#include "UComponentsListFormUnit.h"
#include "UComponentsControlFormUnit.... | 29.122449 | 78 | 0.50035 | VI10604 |
d34d698d75f6c26f6fc82d28d1c1afd7abb2ed35 | 371 | cpp | C++ | src/controller/objects/motors/PointsMotorStore.cpp | ipocsmr/ipocs | e16b75392e23abde7a9489dc08137445f4e8cdf6 | [
"MIT"
] | 1 | 2017-02-18T09:52:07.000Z | 2017-02-18T09:52:07.000Z | src/controller/objects/motors/PointsMotorStore.cpp | GMJS/gmjs_ocs | e16b75392e23abde7a9489dc08137445f4e8cdf6 | [
"MIT"
] | 21 | 2017-02-18T11:15:47.000Z | 2020-07-29T20:58:08.000Z | src/controller/objects/motors/PointsMotorStore.cpp | GMJS/gmjs_ocs | e16b75392e23abde7a9489dc08137445f4e8cdf6 | [
"MIT"
] | null | null | null |
#include "PointsMotorStore.h"
#include <string.h>
PointsMotorStore::PointsMotorStore()
{
memset(this->functions, '\0', 2);
}
void PointsMotorStore::registerType(int typeId, initPointsMotorFunction fun)
{
this->functions[typeId - 1] = fun;
}
void PointsMotorStore::getFunction(int typeId, initPointsMotorFunction*... | 18.55 | 76 | 0.727763 | ipocsmr |
d35104ac3412264897e8f92d45babe2470f3a0ca | 25,847 | cc | C++ | p4rt_app/sonic/app_db_acl_def_table_manager.cc | fichtl/sonic-pins | 60d2467b03cf67b9a61be5be7b6840b63dbb9c5b | [
"Apache-2.0"
] | 6 | 2021-12-08T17:29:38.000Z | 2022-02-17T20:36:54.000Z | p4rt_app/sonic/app_db_acl_def_table_manager.cc | fichtl/sonic-pins | 60d2467b03cf67b9a61be5be7b6840b63dbb9c5b | [
"Apache-2.0"
] | 2 | 2022-01-20T08:55:05.000Z | 2022-03-08T18:30:11.000Z | p4rt_app/sonic/app_db_acl_def_table_manager.cc | fichtl/sonic-pins | 60d2467b03cf67b9a61be5be7b6840b63dbb9c5b | [
"Apache-2.0"
] | 5 | 2021-12-10T02:41:52.000Z | 2022-03-03T06:59:23.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 37.568314 | 80 | 0.655202 | fichtl |
d3526426f6a4d81cafcd3f95e1c47c185ec00c9f | 2,410 | cpp | C++ | joke/joke/src/toolbox/toolboxmanager.cpp | Azjhong/qt | 98f26b097289e3a11b4ae606c880461b876eebb2 | [
"MIT"
] | null | null | null | joke/joke/src/toolbox/toolboxmanager.cpp | Azjhong/qt | 98f26b097289e3a11b4ae606c880461b876eebb2 | [
"MIT"
] | null | null | null | joke/joke/src/toolbox/toolboxmanager.cpp | Azjhong/qt | 98f26b097289e3a11b4ae606c880461b876eebb2 | [
"MIT"
] | null | null | null | #include "toolboxmanager.h"
#include "abstracttoolbox.h"
#include "vediobox/vediobox.h"
#include "valuedisplay/valuedisplay.h"
#include <QMenu>
#include <QAction>
ToolBoxManager::ToolBoxManager(QString *docPath, QMenu *menu)
{
m_actions = new QVector<QAction *>;
m_factorys = new QVector<AbstractToolBoxFactory ... | 28.023256 | 82 | 0.643983 | Azjhong |
d355b20c3d90246d655109174da0f8a85b99b7bf | 888 | cpp | C++ | 2. Color LED_Part 1 (Basic)/src/main.cpp | ShantanuSen/KookminSeminar | 57ff108b07fbed10d7a0a1d9478448bee3454ae4 | [
"MIT"
] | 1 | 2021-12-28T07:58:53.000Z | 2021-12-28T07:58:53.000Z | 2. Color LED_Part 1 (Basic)/src/main.cpp | ShantanuSen/KookminSeminar | 57ff108b07fbed10d7a0a1d9478448bee3454ae4 | [
"MIT"
] | null | null | null | 2. Color LED_Part 1 (Basic)/src/main.cpp | ShantanuSen/KookminSeminar | 57ff108b07fbed10d7a0a1d9478448bee3454ae4 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "NeoPixelBus.h"
#define PIN GPIO_NUM_2
#define colorSaturation 255
NeoPixelBus<NeoGrbFeature, Neo800KbpsMethod> strip(4, PIN);
RgbColor red(colorSaturation, 0, 0);
RgbColor green(0, colorSaturation, 0);
RgbColor blue(0, 0, colorSaturation);
RgbColor white(colorSaturation);
RgbColor blac... | 24.666667 | 67 | 0.63964 | ShantanuSen |
d356b89347f5dea470999540ae147fd3b57446fe | 600 | cpp | C++ | problems/kickstart/2020/F/atm-queue/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/kickstart/2020/F/atm-queue/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/kickstart/2020/F/atm-queue/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
auto solve() {
int N, X;
cin >> N >> X >> ws;
vector<pair<long, int>> A(N);
for (int i = 0; i < N; i++) {
long want;
cin >> want;
A[i].first = (want + X - 1) / X;
A[i].second = i + 1;
}
stable_sort(begin(A)... | 17.647059 | 40 | 0.39 | brunodccarvalho |
d36509b529cb33fd5c1fb24e06be27df60c76ea9 | 2,028 | cpp | C++ | AIEphys/src/TextureManager.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/TextureManager.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | AIEphys/src/TextureManager.cpp | squeenie/ProjectFakeDoctor | 914c34217fd538be3d0229c0c88d9a7f41ede63d | [
"MIT"
] | null | null | null | #include "TextureManager.h"
#include "Texture.h"
#include "..\AIEphysApp.h"
#include <iostream>
extern AIEphysApp* app;
CTextureManager::CTextureManager(unsigned int a_maxNumTextures)
{
m_TableMultiplier = 4;
m_uiMaxNumberOfTextures = a_maxNumTextures;
m_TextureTable = new aie::Texture*[m_uiMaxNumberOfTextures * m... | 21.347368 | 92 | 0.71499 | squeenie |
d373546afe766deb03ee0fd9f30747b7acd070b6 | 33,098 | cpp | C++ | third_party/librealsense/unit-tests/unit-tests-live-ivcam-common.cpp | BeibeiShu/hand_tracking | 3ac817dbed558a56fb3088cd384376aeea45cfb7 | [
"Apache-2.0"
] | 207 | 2017-08-02T02:13:00.000Z | 2022-02-22T09:18:10.000Z | disposing/librealsense/unit-tests/unit-tests-live-ivcam-common.cpp | i-am-neet/wrs2020 | 3b388eac6832f2559c59fa0c1f7732589c5eff0c | [
"MIT"
] | 14 | 2017-08-07T22:31:13.000Z | 2021-07-09T10:29:36.000Z | disposing/librealsense/unit-tests/unit-tests-live-ivcam-common.cpp | i-am-neet/wrs2020 | 3b388eac6832f2559c59fa0c1f7732589c5eff0c | [
"MIT"
] | 82 | 2017-08-02T01:23:13.000Z | 2022-02-10T02:45:51.000Z | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
/////////////////////////////////////////////////////////
// This set of tests is valid only for the R200 camera //
/////////////////////////////////////////////////////////
#if !defined(MAKEFILE)
... | 41.632704 | 165 | 0.658952 | BeibeiShu |
d374673081366c75a3acb058a10469ed44c48383 | 1,142 | cc | C++ | UX/src/GlyphVisual.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2019-07-29T04:07:29.000Z | 2019-07-29T04:07:29.000Z | UX/src/GlyphVisual.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | null | null | null | UX/src/GlyphVisual.cc | frankencode/CoreComponents | 4c66d7ff9fc5be19222906ba89ba0e98951179de | [
"Zlib"
] | 1 | 2020-03-04T17:13:04.000Z | 2020-03-04T17:13:04.000Z | /*
* Copyright (C) 2020 Frank Mertens.
*
* Distribution and use is allowed under the terms of the zlib license
* (see cc/LICENSE-zlib).
*
*/
#include <cc/GlyphVisual>
#include <cc/GlyphRun>
#include <cc/Utf8Sink>
namespace cc {
struct GlyphVisual::State: public Visual::State
{
static String encode(uint32_t... | 20.392857 | 77 | 0.555166 | frankencode |
c96a0108531e6fbf2d79c0cf7626a781eecd34c5 | 420 | hpp | C++ | car.hpp | edoblette/graph_car_trafic | 9744a36e29faa58a50377c602712146e2e5f6ded | [
"MIT"
] | null | null | null | car.hpp | edoblette/graph_car_trafic | 9744a36e29faa58a50377c602712146e2e5f6ded | [
"MIT"
] | null | null | null | car.hpp | edoblette/graph_car_trafic | 9744a36e29faa58a50377c602712146e2e5f6ded | [
"MIT"
] | null | null | null | class car{
private:
std::string _name;
int _location;
int _gaz ;
public:
car(int initLocation, std::string initName) : _name(initName), _location(initLocation), _gaz(10){}
//setter
void move(int moveLocation){
if(_location != moveLocation){
_location = moveLocation;
_gaz -= 1;
}
}
//g... | 15 | 100 | 0.62619 | edoblette |
c97099bd90c2fe11d5d981a2307059c77b041200 | 7,883 | cpp | C++ | apps/coprobber/DSIDAM.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 5 | 2020-08-03T09:43:26.000Z | 2022-01-11T08:28:30.000Z | apps/coprobber/DSIDAM.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | null | null | null | apps/coprobber/DSIDAM.cpp | AaronTrip/hog2 | 96616b40f4173959b127011c76f3e649688e1a99 | [
"MIT"
] | 7 | 2017-07-31T13:01:28.000Z | 2021-05-16T10:15:49.000Z | #include "DSIDAM.h"
/*------------------------------------------------------------------------------
| Implementation
------------------------------------------------------------------------------*/
DSIDAM::DSIDAM( MapAbstraction *_gabs, bool _canPause, unsigned int _cop_speed, bool _useAbstraction ):
praStar(),
ga... | 32.845833 | 143 | 0.651275 | AaronTrip |
c971cb8d68002ea8e50f07624e73bdc5c7d34f46 | 4,268 | cpp | C++ | tools/net.cpp | Nuvoton-Israel/phosphor-ipmi-flash | af7e0ab8141863fd898f638292083d677308419c | [
"Apache-2.0"
] | 1 | 2020-06-22T13:37:17.000Z | 2020-06-22T13:37:17.000Z | tools/net.cpp | Nuvoton-Israel/phosphor-ipmi-flash | af7e0ab8141863fd898f638292083d677308419c | [
"Apache-2.0"
] | null | null | null | tools/net.cpp | Nuvoton-Israel/phosphor-ipmi-flash | af7e0ab8141863fd898f638292083d677308419c | [
"Apache-2.0"
] | 1 | 2019-09-11T05:29:42.000Z | 2019-09-11T05:29:42.000Z | /*
* Copyright 2019 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 ... | 27.358974 | 80 | 0.553655 | Nuvoton-Israel |
c972a423f316175cf02125745cf5743a690ccd1c | 606 | cpp | C++ | 1611 The Suspects/main.cpp | sqc1999-oi/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | 1 | 2016-07-18T12:05:16.000Z | 2016-07-18T12:05:16.000Z | 1611 The Suspects/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | 1611 The Suspects/main.cpp | sqc1999/POJ | 450afa9485bcf5398f9cb7efd5a3b8c40de60e03 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
using namespace std;
int p[30501];
int find(int x)
{
return x == p[x] ? x : p[x] = find(p[x]);
}
int main()
{
ios::sync_with_stdio(false);
int n, m;
while (cin >> n >> m)
{
if (n == 0 && m == 0) break;
for (int i = 0; i < n + m; i++)
p[i] = i;
... | 16.378378 | 43 | 0.415842 | sqc1999-oi |
c9736776980f85e23494f35491e6ce093b916113 | 2,165 | cpp | C++ | aes256/aes256encrypt.cpp | AtomSecurity/P.A.C.K.E.R | bcc056a1b45e6559f5a155a937366028627d8b02 | [
"MIT"
] | 6 | 2021-04-20T21:53:42.000Z | 2021-12-06T15:03:50.000Z | aes256/aes256encrypt.cpp | AtomSecurity/P.A.C.K.E.R | bcc056a1b45e6559f5a155a937366028627d8b02 | [
"MIT"
] | null | null | null | aes256/aes256encrypt.cpp | AtomSecurity/P.A.C.K.E.R | bcc056a1b45e6559f5a155a937366028627d8b02 | [
"MIT"
] | null | null | null | #include "aes256.hpp"
#include <iostream>
#include <vector>
#include <string>
#include <random>
#include <Windows.h>
#define BUFFER_SIZE 1024*1024
// Generating the key
std::string generateRandomString(int max_length = 16)
{
std::string possible_characters{ "abcdefghijklmnopqrstuvwxyz" };
std::random_device r... | 26.402439 | 76 | 0.614319 | AtomSecurity |
c985a556c8c903514e4772ae8b2010afaf153079 | 4,369 | cpp | C++ | src/test/cpp/inverted_penguin/core/dictionary/detail/ValueDictionaryKeyTests.cpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/test/cpp/inverted_penguin/core/dictionary/detail/ValueDictionaryKeyTests.cpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/test/cpp/inverted_penguin/core/dictionary/detail/ValueDictionaryKeyTests.cpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | #include <inverted_penguin/core/dictionary/detail/ValueDictionaryKey.hpp>
#include <gtest/gtest.h>
#include <functional>
#include <sstream>
using namespace inverted_penguin::core::dictionary::detail;
TEST(ValueDictionaryKeyTests, ConstructDefault) {
ValueDictionaryKey key;
EXPECT_EQ(0, key.size());
EXPECT_EQ(ke... | 31.207143 | 73 | 0.658274 | tomault |
c98e8f2621f2717b17a8825b2d0bbd9d99a84874 | 29 | cpp | C++ | project-02-kind/src/staticlib/lib.cpp | T-rvw/premake-sample-projects | 8ccd69019738bd4187f4c7c35c955b9ba13b24bd | [
"BSD-3-Clause"
] | null | null | null | project-02-kind/src/staticlib/lib.cpp | T-rvw/premake-sample-projects | 8ccd69019738bd4187f4c7c35c955b9ba13b24bd | [
"BSD-3-Clause"
] | null | null | null | project-02-kind/src/staticlib/lib.cpp | T-rvw/premake-sample-projects | 8ccd69019738bd4187f4c7c35c955b9ba13b24bd | [
"BSD-3-Clause"
] | 1 | 2021-09-15T10:54:50.000Z | 2021-09-15T10:54:50.000Z | void staticLibFunction() {}
| 14.5 | 28 | 0.724138 | T-rvw |
c990b04f31bffb66e26d9570ff889dbc7dbe1077 | 3,084 | cpp | C++ | unit_tests/core/math/optimization/const_bounds/src/unit_const_bounds.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 76 | 2018-02-20T11:30:52.000Z | 2022-03-31T12:45:06.000Z | unit_tests/core/math/optimization/const_bounds/src/unit_const_bounds.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 27 | 2018-11-20T14:32:49.000Z | 2021-11-24T15:26:45.000Z | unit_tests/core/math/optimization/const_bounds/src/unit_const_bounds.cpp | ricortiz/OpenTissue | f8c8ebc5137325b77ba90bed897f6be2795bd6fb | [
"Zlib"
] | 24 | 2018-02-21T01:45:26.000Z | 2022-03-07T07:06:49.000Z | //
// OpenTissue, A toolbox for physical based simulation and animation.
// Copyright (C) 2007 Department of Computer Science, University of Copenhagen
//
#include <OpenTissue/configuration.h>
#include <OpenTissue/core/math/big/big_types.h>
#include <OpenTissue/core/math/optimization/optimization_make_constant_bounds... | 30.84 | 90 | 0.68904 | ricortiz |
c9913d48d3e8d10c716372d44af155867be0a1a5 | 380 | hpp | C++ | src/types/util.hpp | Wolff09/seal | c0560204743d1c5f602cfc206ffac32531ea2c06 | [
"MIT"
] | 7 | 2019-10-18T07:24:13.000Z | 2022-01-07T14:01:17.000Z | src/types/util.hpp | Wolff09/seal | c0560204743d1c5f602cfc206ffac32531ea2c06 | [
"MIT"
] | null | null | null | src/types/util.hpp | Wolff09/seal | c0560204743d1c5f602cfc206ffac32531ea2c06 | [
"MIT"
] | 1 | 2019-11-30T01:45:41.000Z | 2019-11-30T01:45:41.000Z | #pragma once
#ifndef PRTYPES_UTIL
#define PRTYPES_UTIL
#include <algorithm>
#include "types/types.hpp"
namespace prtypes {
inline bool implies(bool lhs, bool rhs) {
return !lhs || rhs;
}
template<typename Container, typename Key>
inline bool has_binding(const Container& container, const Key& key) {
return ... | 17.272727 | 70 | 0.728947 | Wolff09 |
c9940371e41c58afa70353da99e5e989593e77b8 | 510 | cc | C++ | examples/RotatingCube/main.cc | 3DExtended/Dreamroam | c924715cdb77965e352f2748911944c28bd8e464 | [
"MIT"
] | 1 | 2020-08-13T12:00:02.000Z | 2020-08-13T12:00:02.000Z | examples/RotatingCube/main.cc | 3DExtended/Dreamroam | c924715cdb77965e352f2748911944c28bd8e464 | [
"MIT"
] | 4 | 2020-07-20T18:28:08.000Z | 2020-09-27T09:56:10.000Z | examples/RotatingCube/main.cc | 3DExtended/Dreamroam | c924715cdb77965e352f2748911944c28bd8e464 | [
"MIT"
] | 2 | 2020-08-16T23:24:17.000Z | 2020-10-09T10:42:19.000Z | #include <ComponentBased/SceneHandler.hh>
#include <RenderingSystem/RenderingSystem.hh>
#include <Utils/Debug/Profiling.hh>
#include "RotateCubeScene.hh"
using namespace DCore::Example;
int main(int argc, char** argv) {
DR_PROFILE_BEGIN_SESSION("Startup", "profiling-startup.json");
auto mSceneHandler = SceneH... | 31.875 | 66 | 0.747059 | 3DExtended |
c995824944b827df2ba7eb053652da334b7bc158 | 39,244 | cpp | C++ | HTML_Lectures/Virtualization_Lecture/vbox/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp | roughk/CSCI-49XX-OpenSource | 74268cbca8bcda3023b2350d046e2dca2853a3ef | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | HTML_Lectures/Virtualization_Lecture/vbox/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp | roughk/CSCI-49XX-OpenSource | 74268cbca8bcda3023b2350d046e2dca2853a3ef | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | HTML_Lectures/Virtualization_Lecture/vbox/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsElements.cpp | roughk/CSCI-49XX-OpenSource | 74268cbca8bcda3023b2350d046e2dca2853a3ef | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | /* $Id: UIGDetailsElements.cpp 72710 2018-06-27 18:30:08Z vboxsync $ */
/** @file
* VBox Qt GUI - UIGDetailsElement[Name] classes implementation.
*/
/*
* Copyright (C) 2012-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This f... | 41.92735 | 173 | 0.576751 | roughk |
c999f3cf30d24b46b920143e52c5c9f32dd79a4c | 5,445 | cpp | C++ | Native/Framework/source/Library.Shared/Box2DSprite.cpp | btrowbridge/DirectX.2D.Bespoke.Games | 382728f7c9d50597f9fc84e222efd468c33716a5 | [
"MS-PL"
] | null | null | null | Native/Framework/source/Library.Shared/Box2DSprite.cpp | btrowbridge/DirectX.2D.Bespoke.Games | 382728f7c9d50597f9fc84e222efd468c33716a5 | [
"MS-PL"
] | null | null | null | Native/Framework/source/Library.Shared/Box2DSprite.cpp | btrowbridge/DirectX.2D.Bespoke.Games | 382728f7c9d50597f9fc84e222efd468c33716a5 | [
"MS-PL"
] | null | null | null | #include "pch.h"
#include "Box2DSprite.h"
using namespace std;
using namespace DirectX;
namespace Library
{
#pragma region Box2DSpriteDef
const float Box2DSpriteDef::DefaultFriction = 0.3f;
const float Box2DSpriteDef::DefaultRestitution = 0.0f;
const float Box2DSpriteDef::DefaultDensity = 1.0f;
Box2DSpriteDef:... | 32.410714 | 191 | 0.757759 | btrowbridge |
c99a188a90c9de08ed1d1308f58349f41fcc8291 | 2,669 | cpp | C++ | main.cpp | akshayrajput/DKD | a675de5a19fc1e2f8dac8c4a01ad8185d3067b48 | [
"MIT"
] | 2 | 2018-04-03T07:59:06.000Z | 2020-08-05T07:45:18.000Z | main.cpp | akshayrajput/DKD | a675de5a19fc1e2f8dac8c4a01ad8185d3067b48 | [
"MIT"
] | null | null | null | main.cpp | akshayrajput/DKD | a675de5a19fc1e2f8dac8c4a01ad8185d3067b48 | [
"MIT"
] | null | null | null | //main game program
#include"Server.h"
#include"Util.h"
extern node mySelf;
extern node table1[3];
extern bool alive1[3];
int n_id;
void runMainLoop( int val );
void init(int argc,char* args[])
{
//initialize ip address
strcpy(mySelf.ip, getIPAddr());
//initialize hero id and network mode
int mode = args[1][0] ... | 19.77037 | 82 | 0.581117 | akshayrajput |
c99da154d57aef24d3bf21be894b78a1da9f477b | 6,878 | hpp | C++ | include/GlobalNamespace/StandardScoreSyncState.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardScoreSyncState.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/StandardScoreSyncState.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Including type: I... | 55.918699 | 330 | 0.759523 | darknight1050 |
c9a3a9fa2d35c3095c7792b0df72825b29cb0f84 | 2,256 | cpp | C++ | sources/dansandu/math/matrix.equality.test.cpp | dansandu/math | 48e463c01a440a8f3c7b1d99c230e141f0037266 | [
"MIT"
] | null | null | null | sources/dansandu/math/matrix.equality.test.cpp | dansandu/math | 48e463c01a440a8f3c7b1d99c230e141f0037266 | [
"MIT"
] | null | null | null | sources/dansandu/math/matrix.equality.test.cpp | dansandu/math | 48e463c01a440a8f3c7b1d99c230e141f0037266 | [
"MIT"
] | null | null | null | #include "dansandu/math/matrix.hpp"
#include "catchorg/catch/catch.hpp"
using dansandu::math::matrix::dynamic;
using dansandu::math::matrix::Matrix;
TEST_CASE("matrix.equality")
{
SECTION("static")
{
const auto matrix = Matrix<int, 3, 2>{{{11, 13}, {17, 19}, {23, 29}}};
SECTION("to static mat... | 25.348315 | 87 | 0.486702 | dansandu |
c9b6dd8d8294282073f2f067334fdb9d67c02c71 | 5,041 | cpp | C++ | include/et/imaging/hdrloader.cpp | sergeyreznik/et-engine | a95fe4b9c5db0e873361f36908de284d0ae4b6d6 | [
"BSD-3-Clause"
] | 55 | 2015-01-13T22:50:36.000Z | 2022-02-26T01:55:02.000Z | include/et/imaging/hdrloader.cpp | sergeyreznik/et-engine | a95fe4b9c5db0e873361f36908de284d0ae4b6d6 | [
"BSD-3-Clause"
] | 4 | 2015-01-17T01:57:42.000Z | 2016-07-29T07:49:27.000Z | include/et/imaging/hdrloader.cpp | sergeyreznik/et-engine | a95fe4b9c5db0e873361f36908de284d0ae4b6d6 | [
"BSD-3-Clause"
] | 10 | 2015-01-17T18:46:44.000Z | 2021-05-21T09:19:13.000Z | /*
* This file is part of `et engine`
* Copyright 2009-2016 by Sergey Reznik
* Please, modify content only if you know what are you doing.
*
*/
#include <et/imaging/hdrloader.h>
using namespace et;
const std::string kRadianceHeader = "#?RADIANCE";
const std::string kRadianceFormatEntry = "FORMAT=";
const std::s... | 23.556075 | 112 | 0.646102 | sergeyreznik |
c9b77b9ed5d84be2c007cecccde2399cbac0f535 | 6,278 | cpp | C++ | sources/tests/compilation.cpp | ucpu/qasmint | a25714bca69fc6ce893e9472daf4a1eb03bd56a6 | [
"MIT"
] | 3 | 2022-02-12T06:54:20.000Z | 2022-02-26T21:54:59.000Z | sources/tests/compilation.cpp | ucpu/qasmint | a25714bca69fc6ce893e9472daf4a1eb03bd56a6 | [
"MIT"
] | null | null | null | sources/tests/compilation.cpp | ucpu/qasmint | a25714bca69fc6ce893e9472daf4a1eb03bd56a6 | [
"MIT"
] | null | null | null | #include <cage-core/math.h>
#include "main.h"
void testCompilation()
{
CAGE_TESTCASE("compilation");
{
CAGE_TESTCASE("empty program");
Holder<Program> program = newCompiler()->compile("");
CAGE_TEST(program->instructionsCount() > 0 && program->instructionsCount() < 10);
{
CAGE_TESTCASE("run");
Holder... | 20.121795 | 83 | 0.681109 | ucpu |
c9b9e56a0fca0c34b5dfb1a11748384e594ce239 | 901 | hpp | C++ | include/universal/number/integer/attributes.hpp | AI-App/universal | a2e8eff7a1354faa8c9584e347414ee62b12e1be | [
"MIT"
] | 254 | 2017-05-24T16:51:57.000Z | 2022-03-22T13:07:29.000Z | include/universal/number/integer/attributes.hpp | jamesquinlan/universal | 3b7e6bf37cbb9123425b634d18af18a409c2eccc | [
"MIT"
] | 101 | 2017-11-09T22:57:24.000Z | 2022-03-17T12:44:59.000Z | include/universal/number/integer/attributes.hpp | jamesquinlan/universal | 3b7e6bf37cbb9123425b634d18af18a409c2eccc | [
"MIT"
] | 55 | 2017-06-09T10:04:38.000Z | 2022-02-01T16:54:56.000Z | #pragma once
// attributes.hpp: definition of attribute functions for integer types
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <vector>
#include <universal/number/integer/exceptions.... | 32.178571 | 123 | 0.734739 | AI-App |
c9c1aced9bc133ae1013219c2de4bded538836ba | 1,009 | cpp | C++ | jixun/hitwh3tanxin/E.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | jixun/hitwh3tanxin/E.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | jixun/hitwh3tanxin/E.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <cstdio>
#include <algorithm>
#define N 300020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
char str[N];
int main() {
int n =... | 18.685185 | 60 | 0.400396 | swwind |
c9c3724e6ad1f26990d59df6c5e2a017f1614f97 | 2,703 | cpp | C++ | src/solo/SoloTextureData.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 31 | 2015-02-20T04:03:43.000Z | 2022-03-07T19:04:02.000Z | src/solo/SoloTextureData.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 14 | 2015-07-13T09:24:22.000Z | 2016-10-24T10:09:58.000Z | src/solo/SoloTextureData.cpp | 0xc0dec/solo | 381276451767690b5fdb5a50a6b74a92ba78aa15 | [
"Zlib"
] | 1 | 2020-02-22T15:09:36.000Z | 2020-02-22T15:09:36.000Z | /*
* Copyright (c) Aleksey Fedotov
* MIT license
*/
#include "SoloTextureData.h"
#include "stb/SoloSTBTextureData.h"
namespace solo
{
class InMemoryTexture2DData final: public Texture2DData
{
public:
explicit InMemoryTexture2DData(Vector2 dimensions, TextureDataFormat format, co... | 31.068966 | 144 | 0.693304 | 0xc0dec |
c9c77d9cc7c49db8d320afb349c958109677fef7 | 7,805 | cpp | C++ | projects/examples/ex_height_field_tessellation/src/renderers/patch_grid_mesh.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 10 | 2015-09-17T06:01:03.000Z | 2019-10-23T07:10:20.000Z | projects/examples/ex_height_field_tessellation/src/renderers/patch_grid_mesh.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 5 | 2015-01-06T14:11:32.000Z | 2016-12-12T10:26:53.000Z | projects/examples/ex_height_field_tessellation/src/renderers/patch_grid_mesh.cpp | Nyran/schism | c2cdb8884e3e6714a3b291f0f754220b7f5cbc7b | [
"BSD-3-Clause"
] | 15 | 2015-01-29T20:56:13.000Z | 2020-07-02T19:03:20.000Z |
// Copyright (c) 2012 Christopher Lux <christopherlux@gmail.com>
// Distributed under the Modified BSD License, see license.txt.
#include "patch_grid_mesh.h"
#include <cassert>
#include <exception>
#include <stdexcept>
#include <boost/assign/list_of.hpp>
#include <scm/log.h>
#include <scm/core/memory.h>
#include ... | 40.863874 | 143 | 0.600769 | Nyran |
c9d0c59325d660b5b93a94a0854213f0e7089f8a | 10,813 | cpp | C++ | TxtrLoad/txtrload.cpp | christyganger/ULClient | bc008ab3042ff9b74d47cdda47ce2318311a51db | [
"BSD-3-Clause"
] | 5 | 2018-08-17T17:17:01.000Z | 2020-11-14T05:41:31.000Z | TxtrLoad/txtrload.cpp | christyganger/ULClient | bc008ab3042ff9b74d47cdda47ce2318311a51db | [
"BSD-3-Clause"
] | 16 | 2018-08-16T15:37:04.000Z | 2019-12-24T19:09:19.000Z | TxtrLoad/txtrload.cpp | christyganger/ULClient | bc008ab3042ff9b74d47cdda47ce2318311a51db | [
"BSD-3-Clause"
] | 5 | 2018-08-16T15:34:41.000Z | 2019-03-04T04:06:11.000Z | #define STRICT
// TextureMaker: converts and packs textures & flats into one file
// Copyright Lyra LLC, 1997. All rights reserved.
#define STRICT
#include <windows.h>
#include <windowsx.h>
#include <stdio.h>
#include "cGif.h"
#include "Effects.h"
#include "txtrload.h"
//////////////////////////////////////////... | 23.660832 | 122 | 0.618607 | christyganger |
c9d2839610d26a78d34c99bb4abb6949a8a5351a | 2,228 | cpp | C++ | src/gui/SignalEstimator.cpp | tleb/signal-estimator | 0cc6c4f053c7541975448b186fa35203a0d16af5 | [
"MIT"
] | 40 | 2020-01-05T15:42:26.000Z | 2022-01-21T17:05:42.000Z | src/gui/SignalEstimator.cpp | tleb/signal-estimator | 0cc6c4f053c7541975448b186fa35203a0d16af5 | [
"MIT"
] | 20 | 2020-05-25T08:15:25.000Z | 2021-10-07T10:19:35.000Z | src/gui/SignalEstimator.cpp | tleb/signal-estimator | 0cc6c4f053c7541975448b186fa35203a0d16af5 | [
"MIT"
] | 7 | 2020-06-13T13:59:33.000Z | 2022-03-17T16:57:04.000Z | // Copyright (c) Signal Estimator authors
// Licensed under MIT
#include "SignalEstimator.hpp"
#include <QCoreApplication>
#include <QDir>
#include <QFileInfo>
#include <QRegExp>
#include <QStandardPaths>
#include <exception>
QString find_signal_estimator() {
if (auto path = QDir::currentPath() + "/signal-estim... | 26.52381 | 81 | 0.636894 | tleb |
c9d39662b4f8129c722c09db025022073f4587c8 | 926 | cpp | C++ | set-1/queues/p5.cpp | gowtham81/DSA-by-NK | 2952bce082021d37adcc19d9fa7221bb9ae1f03e | [
"MIT"
] | 1 | 2021-04-12T03:52:12.000Z | 2021-04-12T03:52:12.000Z | set-1/queues/p5.cpp | gowtham81/DSA-by-NK | 2952bce082021d37adcc19d9fa7221bb9ae1f03e | [
"MIT"
] | null | null | null | set-1/queues/p5.cpp | gowtham81/DSA-by-NK | 2952bce082021d37adcc19d9fa7221bb9ae1f03e | [
"MIT"
] | null | null | null | /*Given a queue Q containing n elements, transfer these items on to a stack S
(initially empty) so that front element of Q appears at the top of the stack and the order of
all other items is preserved. Using enqueue and dequeue operations for the queue, and push
and pop operations for the stack, outline an efficient O(... | 23.15 | 93 | 0.548596 | gowtham81 |
c9e37801ed13a75d88f3bacbb7c615e8a6664305 | 1,005 | hpp | C++ | DataManager.hpp | kaitokidi/ChamanClickerBattle | 248ca07c80a2ab3ee6376c8262e6c120e4650051 | [
"MIT"
] | 4 | 2016-02-09T18:19:16.000Z | 2016-08-14T11:50:46.000Z | DataManager.hpp | kaitokidi/ChamanClickerBattle | 248ca07c80a2ab3ee6376c8262e6c120e4650051 | [
"MIT"
] | null | null | null | DataManager.hpp | kaitokidi/ChamanClickerBattle | 248ca07c80a2ab3ee6376c8262e6c120e4650051 | [
"MIT"
] | null | null | null | #ifndef __DATAMANAGER_HPP__
#define __DATAMANAGER_HPP__
#include <map>
#include <SFML/System.hpp>
#include "utils.hpp"
class DataManager {
public:
static void load();
static void save();
static void reset();
static bool getBool(std::string key, bool defaultValue = false);
static float getFloat(s... | 30.454545 | 100 | 0.699502 | kaitokidi |
51857fdbf6e39940c0c2b3e6ece6a336f84512c0 | 4,142 | cc | C++ | DS/experiment/002_PI-Calculation/metaprog.cc | ZYMelaii/NWPU-NOJ | a32c6973fdf2996b4e798e8ee21dc1b1a962126d | [
"MIT"
] | null | null | null | DS/experiment/002_PI-Calculation/metaprog.cc | ZYMelaii/NWPU-NOJ | a32c6973fdf2996b4e798e8ee21dc1b1a962126d | [
"MIT"
] | null | null | null | DS/experiment/002_PI-Calculation/metaprog.cc | ZYMelaii/NWPU-NOJ | a32c6973fdf2996b4e798e8ee21dc1b1a962126d | [
"MIT"
] | null | null | null | #include <iostream>
namespace metafloat
{
//! object series
template <int... Elements> struct series {
static constexpr auto N = sizeof...(Elements);
};
//! function make_series
template <size_t N, size_t left, int default_value, int... Elements> struct make_series_t {
using type = typename make_series_t<N, N - si... | 36.982143 | 118 | 0.713423 | ZYMelaii |
5187f71543331168ac361d1fffdea8b261b71f21 | 1,228 | cpp | C++ | tests/test_xcb_kbd.cpp | smilingthax/xcbcpp | 2bf8dfb997932579d3bbd216c9c7fa6bc052db5a | [
"MIT"
] | 1 | 2021-01-13T15:23:54.000Z | 2021-01-13T15:23:54.000Z | tests/test_xcb_kbd.cpp | smilingthax/xcbcpp | 2bf8dfb997932579d3bbd216c9c7fa6bc052db5a | [
"MIT"
] | null | null | null | tests/test_xcb_kbd.cpp | smilingthax/xcbcpp | 2bf8dfb997932579d3bbd216c9c7fa6bc052db5a | [
"MIT"
] | 1 | 2021-05-31T15:31:05.000Z | 2021-05-31T15:31:05.000Z | #include "../xcb_kbd.h"
#include <stdio.h>
#include <assert.h>
#include <unistd.h>
// g++ -Wall -std=c++11 -o test_xcb_kbd test_xcb_kbd.cpp ../xcb_base.cpp ../xcb_kbd.cpp `pkg-config --cflags --libs xkbcommon-x11 xcb xcb-xkb`
// FIXME TODO: void XkbXcbProcessor::select_xkb_events() must be implemented!
#include "..... | 22.740741 | 142 | 0.65228 | smilingthax |
518e4cc812fef1a3ca07c228235d349abafe6b3d | 1,556 | hh | C++ | Engine/spcCore/entity/spatialstate.hh | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | null | null | null | Engine/spcCore/entity/spatialstate.hh | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | 1 | 2021-09-09T12:51:56.000Z | 2021-09-09T12:51:56.000Z | Engine/spcCore/entity/spatialstate.hh | marcellfischbach/SpiceEngine | e25e1e4145b7afaea9179bb8e33e4d184bd407c4 | [
"BSD-3-Clause"
] | null | null | null |
#pragma once
#include <spcCore/coreexport.hh>
#include <spcCore/entity/entitystate.hh>
#include <spcCore/entity/transform.hh>
#include <spcCore/types.hh>
#include <spcCore/math/matrix4f.hh>
#include <vector>
namespace spc
{
SPC_CLASS()
class SPC_CORE_API SpatialState : public SPC_SUPER(EntityState)
{
SPC_CLASS_G... | 21.315068 | 108 | 0.726864 | marcellfischbach |
518f623224ad594f484dbae03806591013335139 | 497 | cpp | C++ | component_solution/1.7/08.cpp | hsefz2018/NOIP-openjudge | b606d399b780959caadcf0094b90fa9163f30029 | [
"MIT"
] | 11 | 2016-02-03T11:13:07.000Z | 2021-05-30T04:37:02.000Z | 1.7/08.cpp | 20200117/noip-openjudge | 5c8b0786ea3fe2208ff9a44f244a631dbc5bb24c | [
"MIT"
] | 4 | 2015-08-18T10:52:33.000Z | 2015-10-29T12:51:52.000Z | 1.7/08.cpp | 20200117/noip-openjudge | 5c8b0786ea3fe2208ff9a44f244a631dbc5bb24c | [
"MIT"
] | 5 | 2016-02-03T11:13:09.000Z | 2019-07-10T13:25:59.000Z | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
cin >> s;
for(string::iterator iter = s.begin(); iter != s.end(); iter++) {
if('a' <= *iter && *iter <= 'z') {
cout << static_cast<char>((*iter - 'a' + 1) % 26 + 'a');
} else if('A' <= *iter && *i... | 23.666667 | 69 | 0.428571 | hsefz2018 |
5191f94cd5ed68ae5fb9cf4cc25ca8d710f1d817 | 9,432 | hpp | C++ | include/topology/levelset.hpp | bnels/BATS | 250fc2a3639478afed315d67d06b9d9423eaf153 | [
"MIT"
] | 5 | 2020-04-24T17:34:54.000Z | 2021-04-07T15:56:00.000Z | include/topology/levelset.hpp | CompTop/BATS | a6b01c25edd65b55f682c85c8f6560ef5d3a63a9 | [
"MIT"
] | 5 | 2021-05-13T14:16:35.000Z | 2021-08-15T15:11:55.000Z | include/topology/levelset.hpp | bnels/BATS | 250fc2a3639478afed315d67d06b9d9423eaf153 | [
"MIT"
] | 1 | 2021-05-09T12:17:30.000Z | 2021-05-09T12:17:30.000Z | #pragma once
/*
A variety of levelset constructions
*/
#include <limits>
#include <zigzag/zigzag_filtration.hpp>
#include "grid.hpp"
namespace bats {
/**
Create a zigzag filtration from a 3D image.
Extend zigzag filtration from toplexes i.e. the maximal cubes correspond to the
pixel grid.
Lower-dimensional cube fil... | 32.524138 | 103 | 0.35369 | bnels |
51938ff495b048bbfb299faac1579cd2d48b1dd1 | 133 | cpp | C++ | lib/src/nes_input.cpp | yizhang82/newschan | d441fd427e7a0daffcd6feecbad9cd6e2c90b223 | [
"MIT"
] | 120 | 2018-01-02T16:46:52.000Z | 2022-03-28T14:07:45.000Z | lib/src/nes_input.cpp | yizhang82/newschan | d441fd427e7a0daffcd6feecbad9cd6e2c90b223 | [
"MIT"
] | 2 | 2019-02-28T13:32:41.000Z | 2019-04-25T21:10:01.000Z | lib/src/nes_input.cpp | yizhang82/newschan | d441fd427e7a0daffcd6feecbad9cd6e2c90b223 | [
"MIT"
] | 27 | 2018-03-28T20:09:08.000Z | 2022-02-09T09:55:12.000Z | #include "stdafx.h"
#include <nes_input.h>
// Make compiler happy about pure virtual dtors
nes_input_device::~nes_input_device()
{} | 19 | 47 | 0.759398 | yizhang82 |
519397af5323468f4e738544f4205d11d68ba72e | 2,040 | cpp | C++ | lib/cpalgo/graph/tests/spfa_test.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | lib/cpalgo/graph/tests/spfa_test.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | lib/cpalgo/graph/tests/spfa_test.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
#include "gtest/gtest.h"
#include "cpalgo/graph/spfa.hpp"
using namespace std;
TEST(SPFATest, IsEmptyInitially) {
SPFA solver;
EXPECT_EQ(0ULL, solver.size());
}
TEST(SPFATest, ShouldComputeAllDistancesOnConnectedGraph) {
size_t N = 4;
SPFA solver(N);
solver.add_edge(0, ... | 21.935484 | 62 | 0.592157 | xirc |
51945926650cf9ee556609bf6c478a0caac40ad9 | 1,482 | cpp | C++ | src/Packets/Partial.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 99 | 2015-01-06T01:53:26.000Z | 2022-01-31T18:18:27.000Z | src/Packets/Partial.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 27 | 2015-03-09T05:46:53.000Z | 2020-05-06T02:52:18.000Z | src/Packets/Partial.cpp | httese/OpenPGP | 7dce08dc8b72eeb0dcbf3df56d64606a6b957938 | [
"MIT"
] | 42 | 2015-03-18T03:44:43.000Z | 2022-03-31T21:34:06.000Z | #include "Packets/Partial.h"
#include "Misc/Length.h"
namespace OpenPGP {
namespace Packet {
std::string Partial::show_title() const {
if (partial == PARTIAL) {
return " (partial)";
}
return "";
}
std::string Partial::write(const HeaderFormat & header_format, const uint8_t tag, const std::string... | 25.118644 | 115 | 0.62888 | httese |
51983de67e7b8f074b05bc576b2268af9b570e12 | 2,486 | cpp | C++ | testing/fx_string_testhelpers.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | 16 | 2018-09-14T12:07:14.000Z | 2021-04-22T11:18:25.000Z | testing/fx_string_testhelpers.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | 1 | 2020-12-26T16:18:40.000Z | 2020-12-26T16:18:40.000Z | testing/fx_string_testhelpers.cpp | yanxijian/pdfium | aba53245bf116a1d908f851a93236b500988a1ee | [
"Apache-2.0"
] | 6 | 2017-09-12T14:09:32.000Z | 2021-11-20T03:32:27.000Z | // Copyright 2014 PDFium 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 "testing/fx_string_testhelpers.h"
#include <iomanip>
#include <ios>
#include <ostream>
#include "core/fxcrt/cfx_datetime.h"
#include "core/fxcrt/fx_s... | 30.691358 | 80 | 0.664119 | yanxijian |
5199b11dc386442d5b0786d4542a7846f21cf43f | 2,795 | cpp | C++ | test/integration/demo/tween/state_tween.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 6 | 2021-09-05T08:31:36.000Z | 2021-12-09T21:14:37.000Z | test/integration/demo/tween/state_tween.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 30 | 2021-05-19T15:33:03.000Z | 2022-03-30T19:26:37.000Z | test/integration/demo/tween/state_tween.cpp | Laguna1989/JamTemplateCpp | 66f6e547b3702d106d26c29f9eb0e7d052bcbdb5 | [
"CC0-1.0"
] | 3 | 2021-05-23T16:06:01.000Z | 2021-10-01T01:17:08.000Z | #include "state_tween.hpp"
#include "../state_select.hpp"
#include "drawable_helpers.hpp"
#include "game_interface.hpp"
#include "input/input_manager.hpp"
#include "tweens/tween_alpha.hpp"
#include <cstdint>
void StateTween::doInternalCreate()
{
createRects();
createTweens();
storeActionCommand(getGame()-... | 33.674699 | 92 | 0.634347 | Laguna1989 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.