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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2685a4686c01fb7cd7e7de44f972cbef3a02f9be | 4,790 | hh | C++ | neb/inc/com/centreon/engine/configuration/hostescalation.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/configuration/hostescalation.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/configuration/hostescalation.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2013,2017 Centreon
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Engine is distributed in the... | 42.767857 | 78 | 0.602088 | sdelafond |
268612881e134b8543e320a3a65b6bc505944e36 | 407 | cpp | C++ | mine/49-group_anagrams.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/49-group_anagrams.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/49-group_anagrams.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
vector<vector<string>> ans;
map<string, vector<string>> m;
for(auto s: strs){
string key = s;
sort(key.begin(), key.end());
m[key].push_back(s);
}
... | 27.133333 | 65 | 0.4914 | Junlin-Yin |
26870717ca42ee947e4d83fb9bb16c4aa5d0ffed | 4,489 | cpp | C++ | tests/shared/src/MovingPercentileTests.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | 1 | 2015-03-11T19:49:20.000Z | 2015-03-11T19:49:20.000Z | tests/shared/src/MovingPercentileTests.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | tests/shared/src/MovingPercentileTests.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | //
// MovingPercentileTests.cpp
// tests/shared/src
//
// Created by Yixin Wang on 6/4/2014
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "MovingPercentileTests.h"
... | 26.405882 | 88 | 0.450212 | ey6es |
26945ad97669474146a61832833e9516173e6d14 | 268 | cpp | C++ | robot_driver/src/robot_driver_node.cpp | robomechanics/quad-software | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 20 | 2021-12-05T03:40:28.000Z | 2022-03-30T02:53:56.000Z | robot_driver/src/robot_driver_node.cpp | robomechanics/rml-spirit-firmware | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 45 | 2021-12-06T12:45:05.000Z | 2022-03-31T22:15:47.000Z | robot_driver/src/robot_driver_node.cpp | robomechanics/rml-spirit-firmware | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 2 | 2021-12-06T03:20:15.000Z | 2022-02-20T04:19:41.000Z | #include <ros/ros.h>
#include <iostream>
#include "robot_driver/robot_driver.h"
int main(int argc, char** argv) {
ros::init(argc, argv, "robot_driver_node");
ros::NodeHandle nh;
RobotDriver robot_driver(nh, argc, argv);
robot_driver.spin();
return 0;
}
| 16.75 | 45 | 0.69403 | robomechanics |
2696661cdfcc1cdd32850db86f3aa38a27bdf078 | 52,915 | cpp | C++ | libraries/ble/nRF51822/nordic/ble/ble_bondmngr.cpp | hakehuang/mbed | 04b488dcc418f0317cdee1781b27a59295909c77 | [
"Apache-2.0"
] | null | null | null | libraries/ble/nRF51822/nordic/ble/ble_bondmngr.cpp | hakehuang/mbed | 04b488dcc418f0317cdee1781b27a59295909c77 | [
"Apache-2.0"
] | null | null | null | libraries/ble/nRF51822/nordic/ble/ble_bondmngr.cpp | hakehuang/mbed | 04b488dcc418f0317cdee1781b27a59295909c77 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | 33.175549 | 234 | 0.594349 | hakehuang |
2697c546ea3da0d71d51f7cd8512991e28feccbc | 646 | cpp | C++ | src/215.kth_largest_element_in_an_array/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/215.kth_largest_element_in_an_array/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/215.kth_largest_element_in_an_array/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | class Solution {
public:
int findKthLargest(vector<int>& nums, int k) {
int left = 0, right = nums.size() - 1;
while (left < right) {
int pivot = nums[left];
int i = left, j = right;
while (i < j) {
while (i < j && nums[j] < pivot) j--;
... | 29.363636 | 54 | 0.380805 | cloudzfy |
269d05c443de786d7da37be9593012adcfb37aa9 | 828 | cpp | C++ | Regression_test/examples/threshold/src/threshold.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 46 | 2019-11-16T13:44:07.000Z | 2022-03-12T14:28:44.000Z | Regression_test/examples/threshold/src/threshold.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 11 | 2020-05-12T17:20:51.000Z | 2022-02-04T10:04:59.000Z | Regression_test/examples/threshold/src/threshold.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 22 | 2020-02-21T21:33:40.000Z | 2022-02-24T06:50:41.000Z |
#include <stdlib.h>
#include "threshold.h"
void threshold(inout_int_t red[1000], inout_int_t green[1000], inout_int_t blue[1000], in_int_t th) {
for (int i = 0; i < 1000; i++) {
int sum = red[i] + green [i] + blue [i];
if (sum <= th) {
red[i] = 0;
green [i] = 0;
blue [i] = 0;
}
}
}
#define AMOUN... | 18.818182 | 101 | 0.570048 | minseongg |
269d8a6d9b8f916c3dda647e0ed287f1f9313bef | 2,491 | cpp | C++ | src/io/OutputFile.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | null | null | null | src/io/OutputFile.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | 8 | 2021-05-20T11:15:34.000Z | 2021-05-21T12:29:48.000Z | src/io/OutputFile.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | 2 | 2021-05-24T14:43:46.000Z | 2021-05-25T08:31:41.000Z | /*
Source File : OutputFile.cpp
Copyright 2011 Gal Kahana PDFWriter
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 req... | 27.988764 | 116 | 0.674428 | feliwir |
26a0be9f2af8de90d7f9795281eff836adf25290 | 7,004 | hh | C++ | src/memo/cli/KeyValueStore.hh | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 124 | 2017-06-22T19:20:54.000Z | 2021-12-23T21:36:37.000Z | src/memo/cli/KeyValueStore.hh | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 4 | 2017-08-21T15:57:29.000Z | 2019-01-10T02:52:35.000Z | src/memo/cli/KeyValueStore.hh | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 12 | 2017-06-29T09:15:35.000Z | 2020-12-31T12:39:52.000Z | #pragma once
#include <elle/das/cli.hh>
#include <memo/cli/Object.hh>
#include <memo/cli/Mode.hh>
#include <memo/cli/fwd.hh>
#include <memo/cli/symbols.hh>
#include <memo/symbols.hh>
namespace memo
{
namespace cli
{
class KeyValueStore
: public Object<KeyValueStore>
{
public:
using Self =... | 34.673267 | 81 | 0.476442 | infinit |
26a5fa3870e7d9939e9a10f6124b408b1d15a119 | 583 | cc | C++ | src/figureknight.cc | zerozez/qt-chess | 4a066195f656cb57e83f49beeaa9e244796b18d3 | [
"Apache-2.0"
] | 5 | 2018-05-09T05:09:50.000Z | 2021-07-30T06:48:21.000Z | src/figureknight.cc | zerozez/qt-chess | 4a066195f656cb57e83f49beeaa9e244796b18d3 | [
"Apache-2.0"
] | null | null | null | src/figureknight.cc | zerozez/qt-chess | 4a066195f656cb57e83f49beeaa9e244796b18d3 | [
"Apache-2.0"
] | 5 | 2017-11-29T23:49:25.000Z | 2021-06-10T15:13:07.000Z | #include <movepoints.hpp>
#include "figureknight.hpp"
FigureKnight::FigureKnight(const uint x, const uint y, FigureIntf::Color side,
QObject *parent)
: FigureIntf(x, y, side, new MovePoints(), parent) {
MovePoints *points = defMoveList();
points->addPoint(2, 1);
points->addPoint(... | 24.291667 | 78 | 0.636364 | zerozez |
26a889910b55f98ee3c9093b47d7d9cc2bf7dd96 | 1,251 | cpp | C++ | src/Engine/Material/BSDF_CookTorrance.cpp | trygas/CGHomework | 2dfff76f407b8a7ba87c5ba9d12a4428708ffbbe | [
"MIT"
] | 289 | 2020-01-28T09:07:10.000Z | 2022-03-25T09:00:25.000Z | src/Engine/Material/BSDF_CookTorrance.cpp | Ricahrd-Li/ASAP_ARAP_Parameterization | c12d83605ce9ea9cac29efbd991d21e2b363e375 | [
"MIT"
] | 12 | 2020-02-19T07:11:14.000Z | 2021-08-07T06:41:27.000Z | src/Engine/Material/BSDF_CookTorrance.cpp | Ricahrd-Li/ASAP_ARAP_Parameterization | c12d83605ce9ea9cac29efbd991d21e2b363e375 | [
"MIT"
] | 249 | 2020-02-01T08:14:36.000Z | 2022-03-30T14:52:58.000Z | #include <Engine/Material/BSDF_CookTorrance.h>
#include <Basic/Math.h>
using namespace Ubpa;
using namespace std;
float BSDF_CookTorrance::NDF(const normalf & h) {
cout << "WARNING::BSDF_CookTorrance:" << endl
<< "\t" << "not implemented" << endl;
return 0.f;
}
float BSDF_CookTorrance::Fr(const normalf & wi, c... | 28.431818 | 112 | 0.663469 | trygas |
26aaca0b24611b659b37f098826c03e808543bb7 | 1,148 | cpp | C++ | libs/liblynel/test/src/lynel/matrix.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 1 | 2022-02-11T21:25:53.000Z | 2022-02-11T21:25:53.000Z | libs/liblynel/test/src/lynel/matrix.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 15 | 2021-08-21T13:41:29.000Z | 2022-03-08T14:13:43.000Z | libs/liblynel/test/src/lynel/matrix.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | null | null | null | // License: The Unlicense (https://unlicense.org)
#include "lynel/matrix.hpp"
#include <doctest/doctest.h>
using namespace tybl::lynel;
TEST_CASE("matrix::operator==()") {
matrix<double,3,3> a = { 0,1,2,3,4,5,6,7,8 };
matrix<double,3,3> b = { 0,1,2,3,4,5,6,7,8 };
matrix<double,3,3> c = { 1,1,2,3,4,5,6,7,8 };
... | 24.956522 | 93 | 0.542683 | tybl |
26ac80c078b14510e88e45ebc37e3e0029bcbe72 | 213 | cpp | C++ | leetcode.com/0912 Sort an Array/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0912 Sort an Array/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0912 Sort an Array/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> sortArray(vector<int>& nums) {
sort(nums.begin(), nums.end());
return nums;
}
};
| 15.214286 | 44 | 0.661972 | sky-bro |
26adb3d9943b8ee8a33b935fe87e6ad5d0233046 | 4,140 | hpp | C++ | image/globals.hpp | mywoodstock/woo | 7a6e39b2914ec8ff5bf52c3aa5217214532390e4 | [
"BSL-1.0"
] | 1 | 2017-05-09T14:25:18.000Z | 2017-05-09T14:25:18.000Z | image/globals.hpp | mywoodstock/woo | 7a6e39b2914ec8ff5bf52c3aa5217214532390e4 | [
"BSL-1.0"
] | null | null | null | image/globals.hpp | mywoodstock/woo | 7a6e39b2914ec8ff5bf52c3aa5217214532390e4 | [
"BSL-1.0"
] | null | null | null | /**
* Project: The Stock Libraries
*
* File: globals.hpp
* Created: Jun 05, 2012
*
* Author: Abhinav Sarje <abhinav.sarje@gmail.com>
*
* Copyright (c) 2012-2017 Abhinav Sarje
* Distributed under the Boost Software License.
* See accompanying LICENSE file.
*/
#ifndef __GLOBALS_HPP__
#define __GLOBALS_... | 21.122449 | 80 | 0.572464 | mywoodstock |
26aed0a38df84b58cd7c72fdc67a16f3eda0840d | 1,424 | cpp | C++ | aws-cpp-sdk-proton/source/model/ListRepositorySyncDefinitionsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-proton/source/model/ListRepositorySyncDefinitionsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-proton/source/model/ListRepositorySyncDefinitionsResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/proton/model/ListRepositorySyncDefinitionsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#... | 28.48 | 138 | 0.778792 | perfectrecall |
565489757ce1fd9e8bd5ab39a63f70b20df0e50f | 4,838 | cc | C++ | xapian/xapian-core-1.2.13/backends/flint/flint_termlisttable.cc | pgs7179/xapian_modified | 0229c9efb9eca19be4c9f463cd4b793672f24198 | [
"MIT"
] | 2 | 2021-01-13T21:17:42.000Z | 2021-01-13T21:17:42.000Z | xapian/xapian-core-1.2.13/backends/flint/flint_termlisttable.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | xapian/xapian-core-1.2.13/backends/flint/flint_termlisttable.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | /** @file flint_termlisttable.cc
* @brief Subclass of FlintTable which holds termlists.
*/
/* Copyright (C) 2007,2008 Olly Betts
*
* 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 ve... | 32.689189 | 77 | 0.673419 | pgs7179 |
56552f854b8b9d39c69acb10804e90e7397e6248 | 3,101 | cpp | C++ | CODEJAM/2014/ROUND1C/b.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODEJAM/2014/ROUND1C/b.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODEJAM/2014/ROUND1C/b.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
#include <set>
using namespace std;
typedef long long ll... | 25.841667 | 84 | 0.529507 | henviso |
56579e54ba5cf939dd05730da3ab5320b8cfbc5b | 1,077 | cpp | C++ | proj-e/tests/internal_test.cpp | romz-pl/b-plus-tree | 5af2db1c4188d507d0ff28eac91dc255d4e49a35 | [
"Apache-2.0"
] | 1 | 2019-02-01T09:10:11.000Z | 2019-02-01T09:10:11.000Z | proj-e/tests/internal_test.cpp | romz-pl/b-plus-tree | 5af2db1c4188d507d0ff28eac91dc255d4e49a35 | [
"Apache-2.0"
] | 3 | 2017-10-30T07:38:49.000Z | 2017-10-30T08:55:50.000Z | proj-e/tests/internal_test.cpp | romz-pl/b-plus-tree | 5af2db1c4188d507d0ff28eac91dc255d4e49a35 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <internal.h>
//
//
//
TEST(Internal, init)
{
using Key = int;
using Data = int;
btree::Internal< Key, Data > internal( nullptr );
const Key key = 2;
const Data data = 3;
const btree::Leaf< Key, Data >::value_type x( key, data );
internal.insert_value( 0... | 22.914894 | 70 | 0.593315 | romz-pl |
5659f243a4ca9717204ad2bbb3d2d565772ee6ff | 1,246 | cpp | C++ | GameGuy/src/Panels/AudioPanel.cpp | salvorizza/GameGuy | b539d5be002387907fe5d6e6e9da5deae234c182 | [
"MIT"
] | null | null | null | GameGuy/src/Panels/AudioPanel.cpp | salvorizza/GameGuy | b539d5be002387907fe5d6e6e9da5deae234c182 | [
"MIT"
] | null | null | null | GameGuy/src/Panels/AudioPanel.cpp | salvorizza/GameGuy | b539d5be002387907fe5d6e6e9da5deae234c182 | [
"MIT"
] | null | null | null | #include "Panels/AudioPanel.h"
#include <imgui.h>
namespace GameGuy {
AudioPanel::AudioPanel()
: Panel("Audio Panel ", false, true)
{
}
AudioPanel::~AudioPanel()
{
}
void AudioPanel::addSample(size_t time, double left, double right)
{
std::lock_guard<std::mutex> lc(mMutex);
if (mSamples.size() > MAX... | 22.654545 | 127 | 0.654896 | salvorizza |
565bd4355598dc7147bc724f18a0ae8d4768cb67 | 5,842 | cpp | C++ | client/Client.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | client/Client.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | client/Client.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | #include "Client.h"
#include <sstream>
#include <fstream>
#include <iostream>
#include <thread>
#include <mutex>
#include <sys/stat.h>
#include <condition_variable>
#include "../strutil.h"
Client::Client(std::string &host_name, std::string &port_number,
std::string &requests_file, bool dry_run) {
socket = ... | 32.455556 | 108 | 0.590894 | MohamedAshrafTolba |
565e30463b4f98a0b1e179f888c0f6748885652a | 1,029 | cpp | C++ | app/src/main/cpp/IPlayBuilder.cpp | yishuinanfeng/UnitedPlayer | 3e3e43ac7ecaa6636965870420eda600205be34d | [
"Apache-2.0"
] | 100 | 2020-02-01T05:39:16.000Z | 2022-03-15T06:54:27.000Z | app/src/main/cpp/IPlayBuilder.cpp | yishuinanfeng/UnitedPlayer | 3e3e43ac7ecaa6636965870420eda600205be34d | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/IPlayBuilder.cpp | yishuinanfeng/UnitedPlayer | 3e3e43ac7ecaa6636965870420eda600205be34d | [
"Apache-2.0"
] | 16 | 2020-02-04T05:52:42.000Z | 2021-08-09T07:15:27.000Z | //
// Created by yanxi on 2019/10/28.
//
#include "IPlayBuilder.h"
#include "IPlayer.h"
#include "IDemux.h"
#include "XLog.h"
#include "IDecode.h"
#include "IResample.h"
#include "IAudioPlay.h"
#include "IVideoView.h"
IPlayer *IPlayBuilder::BuildPlayer(unsigned int index) {
IPlayer *play = CreatePalyer(index);
... | 27.078947 | 56 | 0.697765 | yishuinanfeng |
565ea2dbe5b5bc0ade95a826f48e162f5851317d | 133,992 | cpp | C++ | module/mpc-be/SRC/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | /*
* (C) 2006-2020 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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 3 of the License, or
* (at your option) any later version.
... | 31.857347 | 250 | 0.707311 | 1aq |
565fc0923bd94d8fe5517012355b458a73609f61 | 839 | hpp | C++ | user.hpp | chenillax/E4C_Challenge_Carbozer | 3c23b9f106d6b148b84ff2af7e87f8a4ece8b771 | [
"Apache-2.0"
] | null | null | null | user.hpp | chenillax/E4C_Challenge_Carbozer | 3c23b9f106d6b148b84ff2af7e87f8a4ece8b771 | [
"Apache-2.0"
] | null | null | null | user.hpp | chenillax/E4C_Challenge_Carbozer | 3c23b9f106d6b148b84ff2af7e87f8a4ece8b771 | [
"Apache-2.0"
] | null | null | null | #ifndef __USER__
#define __USER__
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <string>
/* The differents enumerations we need to our algortithm */
enum class Terminal_device { Phone, Pc, ChromeCast, Tablet};
enum class Quality { Auto, p144, p240, p360,p480,p720,p1080};
enum clas... | 24.676471 | 123 | 0.724672 | chenillax |
56630015bb06d9de967c4e747d9407f2d116dd69 | 1,086 | cpp | C++ | cpp/src/main.cpp | cnloni/othello | f80f190e505b6a4dd2b2bd49054651dbea4f00fa | [
"Apache-2.0"
] | 1 | 2021-01-16T03:34:06.000Z | 2021-01-16T03:34:06.000Z | cpp/src/main.cpp | cnloni/othello | f80f190e505b6a4dd2b2bd49054651dbea4f00fa | [
"Apache-2.0"
] | null | null | null | cpp/src/main.cpp | cnloni/othello | f80f190e505b6a4dd2b2bd49054651dbea4f00fa | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "b36.hpp"
#include "board.hpp"
using namespace std;
void execute(uint64_t bp, uint64_t wp, int turn, int alpha, int beta) {
Board<B36> board;
int result = board.getBestResult(bp, wp, turn, alpha, beta);
cout << board.getFinalBoardString() << endl;
cout << "Initial = " << board.getIni... | 21.72 | 71 | 0.617864 | cnloni |
5664c4ef1c5b2b7b8b5d2ca9902fd2afaa132a88 | 23,964 | cpp | C++ | basecode/debugger/environment.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | basecode/debugger/environment.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | basecode/debugger/environment.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | // ----------------------------------------------------------------------------
//
// Basecode Bootstrap Compiler
// Copyright (C) 2018 Jeff Panici
// All rights reserved.
//
// This software source file is licensed under the terms of MIT license.
// For details, please read the LICENSE file.
//
// --------------------... | 34.780842 | 151 | 0.473919 | Alaboudi1 |
566d612e789c06c43ad236e9688c509257bc4523 | 7,764 | hpp | C++ | libraries/belle/Source/Core/Prim/Complex.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 47 | 2017-09-05T02:49:22.000Z | 2022-01-20T08:11:47.000Z | libraries/belle/Source/Core/Prim/Complex.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 106 | 2018-05-16T14:58:52.000Z | 2022-01-12T13:57:24.000Z | libraries/belle/Source/Core/Prim/Complex.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 11 | 2018-05-16T06:44:51.000Z | 2021-11-10T07:04:46.000Z |
/*
Copyright (c) 2007-2013 William Andrew Burnson.
Copyright (c) 2013-2020 Nicolas Danet.
*/
/* < http://opensource.org/licenses/BSD-2-Clause > */
// -----------------------------------------------------------------------------------------------------------
// ------------------------------------------... | 30.687747 | 110 | 0.238408 | jogawebb |
566f3a6aa4a7d3ed0971e84c8c6282ffa26cafea | 1,910 | hpp | C++ | framework/graphics/graphics/render_target/render_target.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | 1 | 2018-03-01T01:05:25.000Z | 2018-03-01T01:05:25.000Z | framework/graphics/graphics/render_target/render_target.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | framework/graphics/graphics/render_target/render_target.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | #ifndef VG_RENDER_TARGET_HPP
#define VG_RENDER_TARGET_HPP
#include "graphics/global.hpp"
namespace vg
{
class BaseRenderTarget {
public:
BaseRenderTarget(uint32_t framebufferWidth = 0u
, uint32_t framebufferHeight = 0u
);
uint32_t getFramebufferWidth() const;
ui... | 32.372881 | 89 | 0.66178 | YiJiangFengYun |
56720c144b05a88018c932b433a8c585033f0131 | 2,041 | cpp | C++ | src/Settings.cpp | gottyduke/BunnyHopperOfSkyrim | 0b7539298bd0899060cc926bf3fc2b5758835014 | [
"MIT"
] | 2 | 2021-03-24T20:39:02.000Z | 2021-08-09T02:12:10.000Z | src/Settings.cpp | gottyduke/BunnyHopperOfSkyrim | 0b7539298bd0899060cc926bf3fc2b5758835014 | [
"MIT"
] | null | null | null | src/Settings.cpp | gottyduke/BunnyHopperOfSkyrim | 0b7539298bd0899060cc926bf3fc2b5758835014 | [
"MIT"
] | 2 | 2021-03-24T20:39:04.000Z | 2021-08-09T02:12:15.000Z | #include "Settings.h"
bool Settings::LoadSettings(const bool a_dumpParse)
{
auto [log, success] = J2S::load_settings(FILE_NAME, a_dumpParse);
if (!log.empty()) {
_ERROR("%s", log.c_str());
}
return success;
}
decltype(Settings::globalSpeedMult) Settings::globalSpeedMult("globalSpeedMult", 1.0f);
decltype(Se... | 47.465116 | 96 | 0.799118 | gottyduke |
56796e2def726508cf2edce78e7c18190d9ceeb1 | 1,905 | inl | C++ | dependencies/gl++/framebuffer/Framebuffer.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | 6 | 2015-12-29T07:21:01.000Z | 2020-05-29T10:47:38.000Z | dependencies/gl++/framebuffer/Framebuffer.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | dependencies/gl++/framebuffer/Framebuffer.inl | jaredhoberock/gotham | e3551cc355646530574d086d7cc2b82e41e8f798 | [
"Apache-2.0"
] | null | null | null | /*! \file Framebuffer.inl
* \author Jared Hoberock
* \brief Inline file for Framebuffer.h.
*/
#include "Framebuffer.h"
Framebuffer::Framebuffer(void):Parent()
{
setTarget(GL_FRAMEBUFFER_EXT);
} // end Framebuffer::Framebuffer()
void Framebuffer::attachTexture(const GLenum textureTarget,
... | 34.636364 | 82 | 0.580577 | jaredhoberock |
5683b9d1393d2d9026b43d7ac0d9abaff4b5a99a | 6,028 | hpp | C++ | source/sema/sema_node_visitor.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 51 | 2019-05-06T01:33:34.000Z | 2021-11-17T11:44:54.000Z | source/sema/sema_node_visitor.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 191 | 2019-05-06T18:31:24.000Z | 2020-06-19T06:48:06.000Z | source/sema/sema_node_visitor.hpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 3 | 2019-10-12T21:03:29.000Z | 2020-06-19T06:22:25.000Z | #pragma once
namespace cmsl::sema {
class add_declarative_file_node;
class add_subdirectory_node;
class add_subdirectory_with_declarative_script_node;
class add_subdirectory_with_old_script_node;
class binary_operator_node;
class block_node;
class bool_value_node;
class break_node;
class cast_to_reference_node;
class ... | 42.751773 | 78 | 0.7928 | stryku |
5693400ae915eb521f4cda991780ee13e607e42f | 13,436 | cc | C++ | cpp/src/arrow/compute/exec/task_util.cc | karldw/arrow | 0d995486e6eb4c94a64f03578731aad05c151596 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 1 | 2020-09-30T02:48:39.000Z | 2020-09-30T02:48:39.000Z | cpp/src/arrow/compute/exec/task_util.cc | karldw/arrow | 0d995486e6eb4c94a64f03578731aad05c151596 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 20 | 2021-05-09T06:53:01.000Z | 2022-03-27T22:21:50.000Z | cpp/src/arrow/compute/exec/task_util.cc | karldw/arrow | 0d995486e6eb4c94a64f03578731aad05c151596 | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0",
"MIT"
] | 2 | 2021-08-05T14:58:01.000Z | 2021-08-10T14:16:01.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 33.012285 | 90 | 0.670735 | karldw |
5696b9aa3e2c61a83029c42663ffd8eb0d19ff5f | 2,305 | cpp | C++ | Few Course Reader Exercises/Cap8-Exercises/Ex3/cap8_ex3.cpp | diogoamvasconcelos/CS106b-eroberts2015-solutions | 8964130bb872990b809e74ed489237e0c1c96604 | [
"MIT"
] | 4 | 2017-06-26T09:44:28.000Z | 2020-01-19T05:42:41.000Z | Few Course Reader Exercises/Cap8-Exercises/Ex3/cap8_ex3.cpp | diogoamvasconcelos/CS106b-eroberts2015-solutions | 8964130bb872990b809e74ed489237e0c1c96604 | [
"MIT"
] | null | null | null | Few Course Reader Exercises/Cap8-Exercises/Ex3/cap8_ex3.cpp | diogoamvasconcelos/CS106b-eroberts2015-solutions | 8964130bb872990b809e74ed489237e0c1c96604 | [
"MIT"
] | 1 | 2020-10-08T08:26:07.000Z | 2020-10-08T08:26:07.000Z | #include <iostream>
#include "console.h"
#include "simpio.h"
#include "stack.h"
using namespace std;
struct HanoiTask
{
int num_disks;
char start_pile;
char finish_pile;
char temp_pile;
};
const char PILE_A = 'A';
const char PILE_B = 'B';
const char PILE_C = 'C';
void MoveHanoiTower(int n);
void Move... | 25.898876 | 78 | 0.660738 | diogoamvasconcelos |
5698e98f860d2e7e16e6b35725e4ad8d1ad5bc0e | 2,682 | cpp | C++ | lib-src/vgui/ProgressBar.cpp | Velaron/vgui_dll | 9ebb9ab4abf49ba3bd4aad8d102923a0d61d139b | [
"BSD-3-Clause"
] | 22 | 2017-02-21T04:30:12.000Z | 2022-02-13T22:40:39.000Z | lib-src/vgui/ProgressBar.cpp | FWGS/vgui_dll | 4a677fc844f3d92c1b83c6a0f748242a2601286e | [
"BSD-3-Clause"
] | 1 | 2017-05-08T18:31:26.000Z | 2017-05-08T18:31:26.000Z | lib-src/vgui/ProgressBar.cpp | nagist/vgui_dll | acf73ec95a4499b229d68854819fb5e951de1759 | [
"BSD-3-Clause"
] | 12 | 2017-02-18T16:03:05.000Z | 2021-12-30T16:34:27.000Z | /*
* BSD 3-Clause License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disc... | 29.472527 | 82 | 0.722222 | Velaron |
569aae33732ac9c6f639809ca8468c3ca1e3d69b | 3,150 | hh | C++ | src/NodeList/FixedSmoothingScale.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/NodeList/FixedSmoothingScale.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/NodeList/FixedSmoothingScale.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //---------------------------------Spheral++----------------------------------//
// FixedSmoothingScale
//
// Implements the static fixed smoothing scale option.
//
// Created by JMO, Wed Sep 14 13:50:49 PDT 2005
//----------------------------------------------------------------------------//
#ifndef __Spheral_NodeSpac... | 35.795455 | 80 | 0.546984 | jmikeowen |
569d1bc85900ccbadf1d6542ed46ef40ad524806 | 2,252 | cpp | C++ | Verkehrssituation/src/tests/Verkehrssituation.cpp | DavidHeiss/vs2 | a00a58acab582e22e426a290eff9dd251edda992 | [
"MIT"
] | null | null | null | Verkehrssituation/src/tests/Verkehrssituation.cpp | DavidHeiss/vs2 | a00a58acab582e22e426a290eff9dd251edda992 | [
"MIT"
] | null | null | null | Verkehrssituation/src/tests/Verkehrssituation.cpp | DavidHeiss/vs2 | a00a58acab582e22e426a290eff9dd251edda992 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "../Verkehrssituation.h"
class VerkehrssituationTest : public testing::Test {
protected:
void SetUp() override {
verkehrssituation = Sensor::Verkehrssitation();
}
Sensor::Verkehrssitation verkehrssituation;
};
TEST_F(VerkehrssituationTest , has_data)
{
auto me... | 21.245283 | 59 | 0.746892 | DavidHeiss |
56a06f3fe2fa251050dd996c7bc7fdc016d33694 | 4,924 | cpp | C++ | src/box2ddestructionlistener.cpp | bobweaver/qml-box2d | 905841c01d6603678d34f0f8aaaf6843b70dc08a | [
"Zlib"
] | 1 | 2022-02-09T19:14:01.000Z | 2022-02-09T19:14:01.000Z | src/box2ddestructionlistener.cpp | bobweaver/qml-box2d | 905841c01d6603678d34f0f8aaaf6843b70dc08a | [
"Zlib"
] | null | null | null | src/box2ddestructionlistener.cpp | bobweaver/qml-box2d | 905841c01d6603678d34f0f8aaaf6843b70dc08a | [
"Zlib"
] | null | null | null | /*
* box2ddestructionlistener.cpp
* Copyright (c) 2011 Joonas Erkinheimo <joonas.erkinheimo@nokia.com>
* Copyright (c) 2011 Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
*
* This file is part of the Box2D QML plugin.
*
* This software is provided 'as-is', without any express or implied warranty.
* In no event wi... | 49.24 | 108 | 0.791024 | bobweaver |
56a5da54a9181d31831549916dddaef3e59252fd | 616 | cpp | C++ | factory.cpp | iambillzhao/Movie-Store | fdd8aea26a3169844ad011a43b8271d7cb2ed6f0 | [
"MIT"
] | 1 | 2020-07-10T06:48:34.000Z | 2020-07-10T06:48:34.000Z | factory.cpp | iambillzhao/Movie-Store | fdd8aea26a3169844ad011a43b8271d7cb2ed6f0 | [
"MIT"
] | null | null | null | factory.cpp | iambillzhao/Movie-Store | fdd8aea26a3169844ad011a43b8271d7cb2ed6f0 | [
"MIT"
] | null | null | null | /*
* factory.cpp is part of the Movie Store Simulator, a C++ program that
* offers the function of borrow, return, or stock with up to 10,000
* customers and 26 genres of movies
*
* @author Bill Zhao, Lucas Bradley
* @date March 12th
*/
#include "factory.h"
#include <iostream>
// buildMovie takes a string Inpu... | 22 | 71 | 0.672078 | iambillzhao |
56a7158d66e5a8137e78fd42274f43080a4a3243 | 554 | cpp | C++ | test/predict/main.cpp | coffee-lord/angonoka | a8a4a79da4092630c5243c2081f92ba39d0b056c | [
"MIT"
] | 2 | 2019-10-23T18:05:25.000Z | 2022-02-21T21:53:24.000Z | test/predict/main.cpp | coffee-lord/angonoka | a8a4a79da4092630c5243c2081f92ba39d0b056c | [
"MIT"
] | 3 | 2022-02-12T19:52:27.000Z | 2022-02-12T19:55:52.000Z | test/stun/stochastic_tunneling/main.cpp | coffee-lord/angonoka | a8a4a79da4092630c5243c2081f92ba39d0b056c | [
"MIT"
] | null | null | null | #include <boost/ut.hpp>
// boost::ut relies on static destructors so if
// we don't defer LLVM coverage report until after
// ut's destructor we won't get any coverage.
#if defined(__llvm__) && defined(ANGONOKA_COVERAGE)
extern "C" {
int __llvm_profile_runtime;
void __llvm_profile_initialize_file(void);
int __llvm_pro... | 22.16 | 51 | 0.718412 | coffee-lord |
56a9d5b4f56c4c293fe2f0c7bb6f54377a4c2296 | 2,791 | cpp | C++ | jmtpfs/src/jmtpfs-0.5/src/MtpMetadataCache.cpp | akshaykumar23399/DOTS | e7779f7c849e4d7f08eec5adce4fa8317d04b80d | [
"Unlicense"
] | null | null | null | jmtpfs/src/jmtpfs-0.5/src/MtpMetadataCache.cpp | akshaykumar23399/DOTS | e7779f7c849e4d7f08eec5adce4fa8317d04b80d | [
"Unlicense"
] | null | null | null | jmtpfs/src/jmtpfs-0.5/src/MtpMetadataCache.cpp | akshaykumar23399/DOTS | e7779f7c849e4d7f08eec5adce4fa8317d04b80d | [
"Unlicense"
] | null | null | null | /*
* MtpMetadataCache.cpp
*
* Author: Jason Ferrara
*
* This software is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* version 3 as published by the Free Software Foundation.
*
* This software is distributed in the hope that it will be useful... | 23.652542 | 100 | 0.724113 | akshaykumar23399 |
56abeca03db4452942dae28104ef62327d65de85 | 4,176 | hpp | C++ | core/src/Simulation/AssetManager.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 36 | 2015-03-12T10:42:36.000Z | 2022-01-12T04:20:40.000Z | core/src/Simulation/AssetManager.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 1 | 2015-12-17T00:25:43.000Z | 2016-02-20T12:00:57.000Z | core/src/Simulation/AssetManager.hpp | hhsaez/crimild | e3efee09489939338df55e8af9a1f9ddc01301f7 | [
"BSD-3-Clause"
] | 6 | 2017-06-17T07:57:53.000Z | 2019-04-09T21:11:24.000Z | /*
* Copyright (c) 2013, Hernan Saez
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of con... | 33.677419 | 111 | 0.625479 | hhsaez |
56afadad706c7d38fce2265cb20214649b49db93 | 548 | hpp | C++ | PP/decompose_const.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/decompose_const.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/decompose_const.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/compose.hpp>
#include <PP/cv_qualifier.hpp>
#include <PP/decompose_pair.hpp>
#include <PP/overloaded.hpp>
#include <PP/to_type_t.hpp>
#include <PP/value_t.hpp>
namespace PP
{
PP_CIA decompose_const = compose(
overloaded(
[]<typename T>(type_t<const T>)
{
return... | 23.826087 | 80 | 0.625912 | Petkr |
56b205ff002447e58f3296486d4f79983530a652 | 989 | cpp | C++ | MNO/MATCHORDER/yujungee.cpp | Queue-ri/Advanced-Algorithm-Study | f44a75e55fffedcd988bfe8301eac224462c872d | [
"MIT"
] | 5 | 2022-01-13T08:21:54.000Z | 2022-01-31T03:37:14.000Z | MNO/MATCHORDER/yujungee.cpp | Queue-ri/Advanced-Algorithm-Study | f44a75e55fffedcd988bfe8301eac224462c872d | [
"MIT"
] | 115 | 2022-01-13T07:37:23.000Z | 2022-03-13T14:09:15.000Z | MNO/MATCHORDER/yujungee.cpp | Queue-ri/Advanced-Algorithm-Study | f44a75e55fffedcd988bfe8301eac224462c872d | [
"MIT"
] | 2 | 2022-01-27T02:10:23.000Z | 2022-02-09T14:37:04.000Z | //
// matchOrder.cpp
// study6
//
// Created by yujeong on 2021/03/05.
//
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int tc , n;
int rus_r[100], kor_r[100];
vector<int> russian;
vector<int> korean;
int match() {
sort(korean.begin(), korean.end());
int res = 0;
for ... | 18.314815 | 45 | 0.436805 | Queue-ri |
56c5ba9bd8562df759d553e5f6081d2b713ebc66 | 4,417 | hpp | C++ | test/logdataprocessor.hpp | Bembelbots/particlefilter | 7fc67763da217639de403485abf8a72029c5025a | [
"FSFAP"
] | null | null | null | test/logdataprocessor.hpp | Bembelbots/particlefilter | 7fc67763da217639de403485abf8a72029c5025a | [
"FSFAP"
] | null | null | null | test/logdataprocessor.hpp | Bembelbots/particlefilter | 7fc67763da217639de403485abf8a72029c5025a | [
"FSFAP"
] | null | null | null | #include <iostream>
#include <string>
#include <fstream>
#include <definitions.h>
#include <coords.h>
#include <particlefilter.h>
#include <random>
struct LogData {
int stamp;
std::vector<Robot> poseEstimates;
Robot wcs;
std::vector<Robot> hypos;
std::vector<DirectedCoord> odo;
std::vector<Visi... | 35.620968 | 115 | 0.465927 | Bembelbots |
08cb00f666f1316b124ce7bd517dd7f05c8e0ca6 | 473 | cpp | C++ | src/buffers/Vb0BufferVec2.cpp | MrMCG/MGL | 894a336505b510d18dc28e3adae747fd6938816a | [
"MIT"
] | null | null | null | src/buffers/Vb0BufferVec2.cpp | MrMCG/MGL | 894a336505b510d18dc28e3adae747fd6938816a | [
"MIT"
] | null | null | null | src/buffers/Vb0BufferVec2.cpp | MrMCG/MGL | 894a336505b510d18dc28e3adae747fd6938816a | [
"MIT"
] | null | null | null | #include <GL/glew.h>
#include "VboBufferVec2.hpp"
namespace MGL {
VboBufferVec2::VboBufferVec2(std::vector<Vec2> const& data) : m_data(data) {}
void VboBufferVec2::bufferData(int const location) const {
bind();
glBufferData(GL_ARRAY_BUFFER, m_data.size() * sizeof(Vec2), &m_data.at(0), GL_STATIC_DRAW);
glVer... | 23.65 | 93 | 0.710359 | MrMCG |
08cd1078eabbff7aaf5922dd8add205a48ea0fa8 | 4,515 | cpp | C++ | src/test/accounting_tests.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | 1 | 2015-04-23T04:45:46.000Z | 2015-04-23T04:45:46.000Z | src/test/accounting_tests.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | src/test/accounting_tests.cpp | gabriel-eiger/bitcredit | 4f8306d98116420e7e80008426006e9fd23ee7db | [
"MIT"
] | null | null | null | // Copyright (c) 2012-2014 The Bitcoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "wallet.h"
#include "walletdb.h"
#include <stdint.h>
#include <boost/foreach.hpp>
#include <boost/test/unit_te... | 32.956204 | 91 | 0.712514 | gabriel-eiger |
08cea99638e5b48abdbc36e54f88f24ef9a3ddc5 | 6,202 | cpp | C++ | src/Alarm/AlarmEntry.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | 1 | 2018-04-13T09:41:53.000Z | 2018-04-13T09:41:53.000Z | src/Alarm/AlarmEntry.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | null | null | null | src/Alarm/AlarmEntry.cpp | diqiu50/value | 019e430ae1da9dc132369ff53b8ab7bcaedd09d7 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2005
// Packet Engineering, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification is not permitted unless authorized in writing by a duly
// appointed officer of ... | 23.055762 | 82 | 0.60158 | diqiu50 |
08d5a67101b5f6c210a2b2213e641905cf404ba9 | 573 | hpp | C++ | Chip8lib/font/fontLoader.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | Chip8lib/font/fontLoader.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | Chip8lib/font/fontLoader.hpp | tstibro/chip8 | fa342b8641737780e20b259f6df9dcb51127786a | [
"MIT"
] | null | null | null | /*
* fontLoader.hpp
*
* Created on: Jul 23, 2016
* Author: Tomas Stibrany
*/
#ifndef FONT_FONTLOADER_HPP_
#define FONT_FONTLOADER_HPP_
#include "../chip8Types.hpp"
namespace chip8 {
namespace core {
namespace memory {
class RAM;
}
}
}
namespace chip8 {
namespace font {
class Font;
}
}
using ... | 12.191489 | 36 | 0.670157 | tstibro |
08df8e684b33864a1b60ea7bd33b533968ba656f | 20,057 | ipp | C++ | include/External/stlib/packages/cpt/Face3.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/cpt/Face3.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | include/External/stlib/packages/cpt/Face3.ipp | bxl295/m4extreme | 2a4a20ebb5b4e971698f7c981de140d31a5e550c | [
"BSD-3-Clause"
] | null | null | null | // -*- C++ -*-
#if !defined(__cpt_Face3_ipp__)
#error This file is an implementation detail of the class Face.
#endif
namespace cpt {
//! A 3-D face on a b-rep.
template<typename T>
class Face<3, T> {
public:
//
// Public types.
//
//! The number type.
typedef T Number;
//! A... | 28.490057 | 92 | 0.610311 | bxl295 |
08e08cd072855ce935cf1840a2215b955421a32e | 953 | hpp | C++ | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | color_detector/leds.hpp | Merryashji/TI-Individual-Propedeuse-Assessment | a9fccff323a4a667811c9917ef7d1b5c1237e478 | [
"BSL-1.0"
] | null | null | null | #ifndef LEDS_HPP
#define LEDS_HPP
#include "hwlib.hpp"
/// @file
/// \brief
/// leds class
/// \details
/// This is a class for color for 5 leds.
class leds{
private:
hwlib::pin_out & l1;
hwlib::pin_out & l2;
hwlib::pin_out & l3;
hwlib::pin_out & l4;
hwlib::pin_out & l5;
/// \brief
/// ... | 20.276596 | 112 | 0.593914 | Merryashji |
08e1655a6ea40ca41ee8bd4ca653e5c30640d026 | 1,274 | cpp | C++ | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 7 | 2017-02-19T16:22:16.000Z | 2021-03-02T05:47:39.000Z | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 61 | 2017-05-29T06:11:17.000Z | 2021-03-28T21:51:44.000Z | src/math/tests/test_libaeon_math/test_size2d.cpp | aeon-engine/libaeon | e42b39e621dcd0a0fba05e1c166fc688288fb69b | [
"BSD-2-Clause"
] | 2 | 2017-05-28T17:17:40.000Z | 2017-07-14T21:45:16.000Z | // Distributed under the BSD 2-Clause License - Copyright 2012-2021 Robin Degen
#include <aeon/math/size2d.h>
#include <aeon/math/size2d_stream.h>
#include <gtest/gtest.h>
using namespace aeon;
TEST(test_size2d, test_size2d_default_int)
{
[[maybe_unused]] math::size2d<int> size;
}
struct external_size2d
{
i... | 28.311111 | 85 | 0.66562 | aeon-engine |
08e4d6f55664305d11c4b22861efc87b3e154840 | 259 | cpp | C++ | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2021-10-02T19:31:14.000Z | 2021-10-02T19:31:14.000Z | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-06-17T01:15:45.000Z | 2020-06-17T01:16:08.000Z | tests/main.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-10-17T23:57:27.000Z | 2020-10-17T23:57:27.000Z | //
// Created by grant on 1/2/20.
//
#include "gtest/gtest.h"
#include "stms/log_test.cpp"
#include "stms/async_test.cpp"
#include "stms/general.cpp"
#if STMS_SSL_TESTS_ENABLED // Toggle SSL tests, disable for travis
# include "stms/ssl_test.cpp"
#endif
| 19.923077 | 67 | 0.718147 | RotartsiORG |
08e7bc9d26d1bca865b1ba8f1f8b54a2852db55e | 336 | hpp | C++ | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | null | null | null | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | 1 | 2015-03-25T09:42:10.000Z | 2015-03-25T09:42:10.000Z | etl/utils/singleton.hpp | julienlopez/ETL | 51c6e2c425d1bec29507a4f9a89c6211c9d7488f | [
"MIT"
] | null | null | null | #ifndef __SINGLETON_HPP__
#define __SINGLETON_HPP__
#include "noncopyable.hpp"
namespace etl {
namespace utils {
template<class T> class singleton : public noncopyable {
public:
static T& instance() {
static T i;
return i;
}
protected:
singleton() {}
};
} //utils
} //etl
#endif // __... | 12.923077 | 56 | 0.660714 | julienlopez |
08e8850381bddd9d41475a7b1eabc6b9dcaeb4b9 | 1,524 | cpp | C++ | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | ProjetGraph/ProjetGraph/tests/CUnit.cpp | RakSrinaNa/DI3---Projet-CPP | e5742941032f6a30f84868039b81b647fcf41cb5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "CUnit.h"
#include "CExceptionUnit.h"
#include "CArcUnit.h"
#include "CVertexUnit.h"
#include "CGraphUnit.h"
#include "CGraphParserUnit.h"
#include "CHashMapUnit.h"
#include "../CException.h"
#include "CGraphToolboxUnit.h"
void CUnit::UNITassertError(const char * pcMessage)
{
perror(pcMes... | 28.222222 | 61 | 0.660105 | RakSrinaNa |
08f4420ae9b237e53d192e28ad209aaae3a6384b | 2,524 | cpp | C++ | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | 1 | 2018-01-09T02:43:57.000Z | 2018-01-09T02:43:57.000Z | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | null | null | null | framework/L2DMatrix44.cpp | dragonflylee/Dango | 3243a3ade6d8a4391b1d78c8bc4bb210779022cb | [
"MIT"
] | null | null | null | /**
*
* You can modify and use this source freely
* only for the development of application related Live2D.
*
* (c) Live2D Inc. All rights reserved.
*/
#include "L2DMatrix44.h"
namespace live2d
{
namespace framework
{
L2DMatrix44::L2DMatrix44()
{
identity();
}
... | 22.336283 | 89 | 0.389857 | dragonflylee |
08f7b1a7196f0b681692d1bb2cbe0f9b9bb590ab | 1,926 | cpp | C++ | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | test/unit_tests/tests/18_FFT_revtests.cpp | bacchus/bacchuslib | 35c41b6a7244227c0779c99b3c2f98b9a8349477 | [
"MIT"
] | null | null | null | #include "setting.h"
#include "math/fft.h"
#include "utils/logger.h"
#include "audio/audio_tools.h"
using namespace bacchus;
const float tol18 = 1e-4f;
const int ulpDif = 256*1024;
void FftCrossTest(const matxf& x, const matxcx& resy) {
matxcx y = DFT(x);
int n = y.size();
EXPECT_EQ(resy.size(), n);
f... | 25.342105 | 73 | 0.558152 | bacchus |
08fcbe77618e5dfaad7de00fe7b983a15598ca9f | 25,842 | cc | C++ | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | fpersson/MAVSDK | a7161d7634cd04de97f7fbcea10c2da21136892c | [
"BSD-3-Clause"
] | 1 | 2020-03-30T07:53:19.000Z | 2020-03-30T07:53:19.000Z | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | fpersson/MAVSDK | a7161d7634cd04de97f7fbcea10c2da21136892c | [
"BSD-3-Clause"
] | 1 | 2021-03-15T18:34:13.000Z | 2021-03-15T18:34:13.000Z | src/mavsdk_server/src/generated/gimbal/gimbal.grpc.pb.cc | SEESAI/MAVSDK | 5a9289eb09eb6b13f24e9d8d69f5644d2210d6b2 | [
"BSD-3-Clause"
] | null | null | null | // Generated by the gRPC C++ plugin.
// If you make any local change, they will be lost.
// source: gimbal/gimbal.proto
#include "gimbal/gimbal.pb.h"
#include "gimbal/gimbal.grpc.pb.h"
#include <functional>
#include <grpcpp/impl/codegen/async_stream.h>
#include <grpcpp/impl/codegen/async_unary_call.h>
#include <grpcp... | 76.910714 | 317 | 0.747581 | fpersson |
1c00ca7ebcb8c0ce9aeeb4784f8e788502f27923 | 9,983 | cc | C++ | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 24 | 2016-07-10T08:05:11.000Z | 2021-11-16T10:53:48.000Z | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 14 | 2015-04-12T10:45:26.000Z | 2016-06-28T22:27:50.000Z | src/xzero/http/http1/Parser-test.cc | pjsaksa/x0 | 96b69e5a54b006e3d929b9934c2708f7967371bb | [
"MIT"
] | 4 | 2016-10-05T17:51:38.000Z | 2020-04-20T07:45:23.000Z | // This file is part of the "x0" project, http://github.com/christianparpart/x0>
// (c) 2009-2018 Christian Parpart <christian@parpart.family>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://op... | 28.280453 | 80 | 0.683863 | pjsaksa |
1c0f8cdf4689a866f0b5c92700272cdaa0d66e4e | 5,951 | cpp | C++ | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 10 | 2017-07-22T13:04:45.000Z | 2021-12-22T10:02:32.000Z | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | null | null | null | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/B3atZOnlineBeacon.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 3 | 2017-05-06T20:31:43.000Z | 2020-07-01T01:45:37.000Z | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved
// Plugin written by Philipp Buerki. Copyright 2017. All Rights reserved..
#include "../OnlineSubsystemB3atZUtils/Public/B3atZOnlineBeacon.h"
#include "Engine/NetConnection.h"
#include "EngineGlobals.h"
#include "Engine/Engine.h"
DEFINE_LOG_CATEGORY(LogBeaco... | 31.321053 | 152 | 0.750294 | philippbb |
1c1246b06c41ea08f0c0a3bb12e4b5c2f55d9dea | 1,107 | cpp | C++ | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | Online Judges/LightOJ/1047 - Neighbor House.cpp | akazad13/competitive-programming | 5cbb67d43ad8d5817459043bcccac3f68d9bc688 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std;
//Macros
#define read(a) scanf("%d",&a)
#define CLEAR(a,b) memset(a,b,sizeof(a))
#define VI(a) vector<a>
#define lld long long int
#define ulld unsigned long long int
#define PI acos(-1.0)
#define Gamma 0.5772156649015328606065120900824024310421
int arr... | 17.030769 | 104 | 0.483288 | akazad13 |
1c16dc3bb20e37ed22e6079c11a2e75d1e557c8f | 1,361 | cpp | C++ | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | 7 | 2022-02-07T08:26:55.000Z | 2022-03-23T02:55:44.000Z | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | null | null | null | client/LocalConn.cpp | lzs123/CProxy | 08266997317b0ba89ddc93dac46b0faf5fd12592 | [
"MIT"
] | null | null | null | #include <fcntl.h>
#include <string.h>
#include "LocalConn.h"
#include "Tunnel.h"
#include "lib/Util.h"
void LocalConn::handleRead() {
try{
int bs = splice(fd_, NULL, pipe_fds_[1], NULL, 2048, SPLICE_F_MOVE | SPLICE_F_NONBLOCK);
if (bs < 0) {
SPDLOG_CRITICAL("proxy_id: {} local_fd: {} -> pipe_fd: {} ... | 35.815789 | 162 | 0.659809 | lzs123 |
1c2019fcd1b8894f0a0a76c6cff42181449ee6bc | 129,465 | cpp | C++ | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | bwchart/bwchart/DlgStats.cpp | udonyang/scr-benchmark | ed81d74a9348b6813750007d45f236aaf5cf4ea4 | [
"MIT"
] | null | null | null | // DlgStats.cpp : implementation file
//
#include "stdafx.h"
#include "bwchart.h"
#include "DlgStats.h"
#include "regparam.h"
#include "bwrepapi.h"
#include "DlgHelp.h"
#include "DlgMap.h"
#include "Dlgbwchart.h"
#include "gradient.h"
#include "hsvrgb.h"
#include "overlaywnd.h"
#include "ExportCoachDlg.h... | 29.947953 | 165 | 0.609408 | udonyang |
1c28a6c2d84c8db78475da19c2ed7f4c02177055 | 2,687 | cc | C++ | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | cagey-engine/source/cagey/window/Window.cc | theycallmecoach/cagey-engine | 7a90826da687a1ea2837d0f614aa260aa1b63262 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////
////
//// cagey-engine - Toy 3D Engine
//// Copyright (c) 2014 Kyle Girard <theycallmecoach@gmail.com>
////
//// The MIT License (MIT)
////
//// Permission is hereby granted, free of charge, to any person obtaining a copy
//// of this so... | 34.012658 | 99 | 0.629326 | theycallmecoach |
1c2ab67c1db41c545f994247455c2e688cd42224 | 321 | cpp | C++ | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/Omega_h_timer.cpp | overfelt/omega_h | dfc19cc3ea0e183692ca6c548dda39f7892301b5 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "Omega_h_timer.hpp"
namespace Omega_h {
Now now() {
Now t;
t.impl = std::chrono::high_resolution_clock::now();
return t;
}
Real operator-(Now b, Now a) {
return std::chrono::duration_cast<std::chrono::nanoseconds>(b.impl - a.impl)
.count() *
1e-9;
}
} // end namespace Omega_h... | 17.833333 | 78 | 0.619938 | overfelt |
1c2cf5f3e0ce5d29833ec36397e7c4fea8733201 | 1,321 | cpp | C++ | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 232 | 2017-10-09T11:45:28.000Z | 2022-03-28T11:14:46.000Z | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 26 | 2019-01-20T21:38:25.000Z | 2021-10-16T03:57:17.000Z | src/plugins/cgal/nodes/topology/convex_hull.cpp | martin-pr/possumwood | 0ee3e0fe13ef27cf14795a79fb497e4d700bef63 | [
"MIT"
] | 33 | 2017-10-26T19:20:38.000Z | 2022-03-16T11:21:43.000Z | #include <CGAL/convex_hull_3.h>
#include <possumwood_sdk/node_implementation.h>
#include "datatypes/meshes.h"
#include "errors.h"
namespace {
using possumwood::CGALPolyhedron;
using possumwood::Meshes;
typedef possumwood::CGALPolyhedron Mesh;
dependency_graph::InAttr<Meshes> a_inMesh;
dependency_graph::OutAttr<Me... | 28.106383 | 98 | 0.766086 | martin-pr |
1c2e89d744f4124d22abdfe05d593e26c4d67f5a | 6,353 | cpp | C++ | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 9 | 2015-02-23T15:47:20.000Z | 2020-05-19T23:42:05.000Z | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 3 | 2020-04-21T06:12:53.000Z | 2020-08-20T16:56:17.000Z | Child/Releases/r081211/Code/tListInputData/tListInputData.cpp | dvalters/child | 9874278f5308ab6c5f0cb93ed879bca9761d24b9 | [
"MIT"
] | 12 | 2015-02-18T18:34:57.000Z | 2020-07-12T04:04:36.000Z | /**************************************************************************/
/**
** @file tListInputData.cpp
** @brief Functions for class tListInputData.
**
** Modifications:
** - changed .tri file format from points-edges-triangles to
** points-triangles-edges, compatible with earlier format (gt 1/98)
... | 30.990244 | 79 | 0.555171 | dvalters |
1c39384ce95547642533d79874ef7f0dda03a3c5 | 4,864 | cpp | C++ | source/Foundation/DataStream.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | source/Foundation/DataStream.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | source/Foundation/DataStream.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include <Nephilim/Foundation/DataStream.h>
#include <Nephilim/Foundation/IODevice.h>
#include <Nephilim/Foundation/String.h>
#include <assert.h>
#include <stdio.h>
NEPHILIM_NS_BEGIN
/// Constructs a invalid data stream
DataStream::DataStream()
: m_device(NULL)
{
}
/// Constructs a data stream from a device
DataSt... | 19.07451 | 80 | 0.694901 | GrimshawA |
1c3b4e522196f9a659bf825df253016e8ed0edf2 | 1,881 | cpp | C++ | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 22 | 2016-08-11T06:16:25.000Z | 2022-02-22T00:06:59.000Z | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 9 | 2016-12-08T12:42:38.000Z | 2021-12-28T20:12:15.000Z | src/bpfrequencytracker.cpp | LaoZZZZZ/bartender-1.1 | ddfb2e52bdf92258dd837ab8ee34306e9fb45b81 | [
"MIT"
] | 8 | 2017-06-26T13:15:06.000Z | 2021-11-12T18:39:54.000Z | //
// bpfrequencytracker.cpp
// barcode_project
//
// Created by luzhao on 4/21/16.
// Copyright © 2016 luzhao. All rights reserved.
//
#include "bpfrequencytracker.hpp"
#include <array>
#include <cassert>
#include <vector>
using std::array;
using std::vector;
namespace barcodeSpace {
BPFrequencyTracker::BPF... | 34.2 | 133 | 0.596491 | LaoZZZZZ |
1c3f0bc21d3ed41f6fe8b58cb8a63f66eb007ca4 | 2,627 | inl | C++ | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 5 | 2016-04-07T19:49:39.000Z | 2021-08-03T05:24:11.000Z | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | null | null | null | src/wire/core/transport.inl | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 1 | 2020-12-27T11:47:31.000Z | 2020-12-27T11:47:31.000Z | /*
* transport.inl
*
* Created on: Feb 8, 2016
* Author: zmij
*/
#ifndef WIRE_CORE_TRANSPORT_INL_
#define WIRE_CORE_TRANSPORT_INL_
#include <wire/core/transport.hpp>
#include <wire/util/debug_log.hpp>
namespace wire {
namespace core {
template < typename Session, transport_type Type >
transport_listener<... | 25.019048 | 104 | 0.694328 | zmij |
1c4131f4e99beaf367375d11ca8b722024d71696 | 3,249 | hpp | C++ | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 2 | 2020-05-05T13:31:55.000Z | 2022-01-16T15:38:00.000Z | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | null | null | null | include/Common/math.hpp | VisualGMQ/Chaos_Dungeon | 95f9b23934ee16573bf9289b9171958f750ffc93 | [
"MIT"
] | 1 | 2021-11-27T02:32:24.000Z | 2021-11-27T02:32:24.000Z | #ifndef MATH_HPP
#define MATH_HPP
#include <cfloat>
#include <cmath>
#include <iostream>
#include <vector>
#include "glm/glm.hpp"
using namespace std;
#define FLT_CMP(a, b) (abs(a-b)<=FLT_EPSILON)
#define DEG2RAD(x) (x*M_PI/180.0)
#define RAD2DEG(x) (x*180.0/M_PI)
template <typename T>
ostream& operator<<(ostream& o, ... | 23.374101 | 54 | 0.644814 | VisualGMQ |
1c49c154874b273a42fea95b7447dfd1476a38c6 | 2,902 | cpp | C++ | src/input.cpp | Bryankaveen/tanks-ce | 27670778dbf6329b7fa4e69d12f8a4e5fa1f3ad9 | [
"MIT"
] | 14 | 2020-08-11T14:39:52.000Z | 2022-02-08T21:17:56.000Z | src/input.cpp | commandblockguy/Tanks-CE | 9eb79438a0ecd12cbde23be207257c650b703acb | [
"MIT"
] | 1 | 2020-11-04T08:17:52.000Z | 2020-11-05T22:41:46.000Z | src/input.cpp | commandblockguy/Tanks-CE | 9eb79438a0ecd12cbde23be207257c650b703acb | [
"MIT"
] | 1 | 2021-12-16T19:24:04.000Z | 2021-12-16T19:24:04.000Z | #include "game.h"
#include "gui/pause.h"
#include "objects/tank.h"
#include "util/profiler.h"
#include <keypadc.h>
#define PLAYER_BARREL_ROTATION DEGREES_TO_ANGLE(5)
//1/3 of a second for 90 degree rotation
#define PLAYER_TREAD_ROTATION (DEGREES_TO_ANGLE(90) / (TARGET_TICK_RATE / 3))
void handle_movement() {
Tan... | 25.910714 | 77 | 0.569952 | Bryankaveen |
1c5287128a8e952846a5208fa07831366f7e1a2e | 2,141 | cpp | C++ | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | src/logger/logger.cpp | gratonos/cxlog | 1e2befb466d600545db3ad79cb0001f2f0056476 | [
"MIT"
] | null | null | null | #include <cxlog/logger/logger.h>
NAMESPACE_CXLOG_BEGIN
void Logger::Log(Level level, const char *file, std::size_t line, const char *func,
std::string &&msg) const {
const Additional &additional = this->additional;
std::vector<Context> contexts;
contexts.reserve(additional.statics->size() + additiona... | 31.485294 | 89 | 0.601121 | gratonos |
1c5856d4b398bc8f8bf0bc558731f2f7feff1882 | 1,311 | cpp | C++ | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | c++/Test/GlobalData/weoExceptionMessageCreator.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
//-------------------------------------------------------------------
// include
//-------------------------------------------------------------------
#include "weoExceptionMessageCreator.h"
#include <sstream>
namespace pm_mode {
/********************************************************************
... | 26.755102 | 129 | 0.515637 | taku-xhift |
1c5b3de7fce16286f16fb22e379723f676ef5d50 | 546 | hpp | C++ | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | jmax/shader/Shader.hpp | JeanGamain/jmax | 1d4aee47c7fad25b9c4d9a678b84c5f4aad98c04 | [
"MIT"
] | null | null | null | #ifndef SHADER_HPP_
#define SHADER_HPP_
#include "../jmax.hpp"
#include <string>
#include <vector>
namespace jmax {
class Shader
{
public:
Shader(std::string const& filePath, GLenum shaderType = 0);
virtual ~Shader();
public:
static GLuint compileShaderFile(std::string const& shaderFilePath, GLenum shaderTyp... | 19.5 | 88 | 0.725275 | JeanGamain |
1c5b779943d9abe8389382f1717d224f7c402fef | 816 | cpp | C++ | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | Linked List/Singly Linked List/Insert/add_at_front.cpp | dipanshuchaubey/competitive-coding | 9b41f4693a30fdcf00b82db9aad5ced7d0dc454f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Node
{
public:
Node *next;
int data;
};
void printList(Node *n)
{
while (n != NULL)
{
cout << n->data << "\t";
n = n->next;
}
}
void insertAtFront(Node **start_node, int data)
{
Node *new_node = new Node();
new_node->data = d... | 14.571429 | 50 | 0.551471 | dipanshuchaubey |
1c5c19ab2d119c2ccec4e995d72e9230b11a2b97 | 1,807 | cpp | C++ | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | 1 | 2021-08-13T14:27:39.000Z | 2021-08-13T14:27:39.000Z | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | src/LG/lg-P1659.cpp | krishukr/cpp-code | 1c94401682227bd86c0d9295134d43582247794e | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <iostream>
#define int long long
const int MAX_N = 2000050;
const int MOD = 19930726;
std::string d, s;
int re[MAX_N], cnt[MAX_N];
int n, nn, k;
void init();
void manacher();
int quick_pow(int a, int b);
signed main() {
std::ios::sync_with_stdio(false);
std:... | 17.891089 | 65 | 0.342557 | krishukr |
1c5d2d09af639b8b275c0a1e970826844b4512c4 | 129 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 27 | 2017-06-07T19:07:32.000Z | 2020-10-15T10:09:12.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 3 | 2017-08-25T17:39:46.000Z | 2017-11-18T03:40:55.000Z | tensorflow-yolo-ios/dependencies/eigen/doc/special_examples/Tutorial_sparse_example_details.cpp | initialz/tensorflow-yolo-face-ios | ba74cf39168d0128e91318e65a1b88ce4d65a167 | [
"MIT"
] | 10 | 2017-06-16T18:04:45.000Z | 2018-07-05T17:33:01.000Z | version https://git-lfs.github.com/spec/v1
oid sha256:338e6e57d5446ad622a48ab505a62e4ddf72367f1dd3bd9dee9773f0f43ab857
size 1576
| 32.25 | 75 | 0.883721 | initialz |
1c60fa930f611edaa3a07a5d07828882b70c0b10 | 974 | cpp | C++ | demo/src/main.cpp | fundies/Crash2D | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 1 | 2017-05-25T13:49:18.000Z | 2017-05-25T13:49:18.000Z | demo/src/main.cpp | fundies/SAT | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 6 | 2016-09-27T22:57:13.000Z | 2017-05-11T17:01:26.000Z | demo/src/main.cpp | fundies/SAT | 40b14d4259d7cedeea27d46f7206b80a07a3327c | [
"MIT"
] | 4 | 2016-09-29T01:19:44.000Z | 2021-04-02T07:45:59.000Z | #include "MTVDemo.hpp"
#include "BroadphaseDemo.hpp"
int main(int argc, char **argv)
{
sf::RenderWindow window(sf::VideoMode(800, 600), "Crash2D Demo");
window.setFramerateLimit(60);
Demo *demo = new MTVDemo(window);
size_t demoId = 0;
while (window.isOpen()) {
// check all the window's events that were trigg... | 21.173913 | 91 | 0.596509 | fundies |
1c6d2c7de9a44b122987529f4e6d173c3d381f35 | 1,127 | cpp | C++ | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | src/openloco/townmgr.cpp | Gymnasiast/OpenLoco | 1bef36f96bcce0d6095d1b804a8d9f9df9651d07 | [
"MIT"
] | null | null | null | #include "townmgr.h"
#include "companymgr.h"
#include "interop/interop.hpp"
#include "openloco.h"
using namespace openloco::interop;
namespace openloco::townmgr
{
static loco_global_array<town, 80, 0x005B825C> _towns;
std::array<town, max_towns>& towns()
{
auto arr = (std::array<town, max_towns>*... | 21.673077 | 73 | 0.485359 | Gymnasiast |
cc6033dfeeb05bcadef587cf2cd59cd5542fc7f6 | 117,939 | cpp | C++ | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_ProcedureSymbolBP -----------------------------------------------*
****************************************************************************
* Description : Provides a procedure symbol for banking process *
* Devel... | 40.514943 | 158 | 0.526679 | Jeanmilost |
cc678fb574dfe265aadd588c689b0d1efdba0f13 | 231 | hpp | C++ | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | #pragma once
#include "Layer.hpp"
#include "Camera.hpp"
struct RenderBuffer {
std::vector<std::unique_ptr<RenderScript>> scriptDestructQueue;
bool resetTextureCache{ false };
Camera camera;
std::vector<RenderLayer> layers;
}; | 21 | 64 | 0.761905 | Ipotrick |
cc731400e0ed1b202dead5e6b892b09477c244ca | 2,843 | hpp | C++ | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | 7 | 2018-08-27T20:31:21.000Z | 2021-11-22T05:57:18.000Z | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | null | null | null | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | null | null | null | /*
This file is distributed under MIT License.
Copyright (c) 2018 draghan
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... | 26.820755 | 82 | 0.719311 | draghan |
cc733829dd43fe861230df5866fe3587e4342e0a | 1,670 | hh | C++ | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | null | null | null | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | null | null | null | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | 1 | 2020-12-15T20:53:56.000Z | 2020-12-15T20:53:56.000Z | #ifndef __CPU_VPRED_LVP_PRED_HH__
#define __CPU_VPRED_LVP_PRED_HH__
#include "cpu/vpred/vpred_unit.hh"
#include <vector>
#include "base/statistics.hh"
#include "base/sat_counter.hh"
#include "base/types.hh"
#include "cpu/inst_seq.hh"
#include "cpu/static_inst.hh"
#include "params/FCMVP.hh"
#include "sim/sim_object.hh... | 25.30303 | 102 | 0.601796 | surya00060 |
cc7424858b6c72272f73481c941b9e55475c869c | 1,032 | cpp | C++ | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main(){
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int t, co = 0, len, a;
for(scanf("%d", &t); t--; ){
scanf("%d", &len);
for(int i = 0; i < len - 1; scanf("%d", &a), v.push_back(a), i++);
int g = v[0], m... | 29.485714 | 109 | 0.471899 | cosmicray001 |
cc79f3ef2c2041b41a4897dd9196dab1851b8bfb | 6,268 | hpp | C++ | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_MAT_FUNCTOR_ODE_SYSTEM_HPP
#define STAN_MATH_REV_MAT_FUNCTOR_ODE_SYSTEM_HPP
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/arr/fun/value_of.hpp>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
namespace stan {
namespace math {
/**
* Internal rep... | 38.219512 | 77 | 0.565571 | yizhang-cae |
cc7fbe6860a7b75ff0ae6877e7a2427095c20a03 | 3,570 | hpp | C++ | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | null | null | null | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | 2 | 2015-03-17T01:32:10.000Z | 2015-03-19T18:58:28.000Z | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | null | null | null | #if !defined WATER_PHYSICS_OBJECT_INCLUDED
#define WATER_PHYSICS_OBJECT_INCLUDED
// Engine headers.
#include <GameComponents/Collider.hpp>
#include <GameComponents/GameObject.hpp>
// Engine namespace.
namespace water
{
/// <summary>
/// An abstract class for physics objects. Any object which the physics sys... | 41.511628 | 142 | 0.557983 | storm20200 |
cc82da22e8b2c843ea0f15028e5f447aa29db572 | 49,995 | cpp | C++ | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | 1 | 2021-04-13T04:49:58.000Z | 2021-04-13T04:49:58.000Z | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | null | null | null | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | null | null | null |
#ifdef _WIN32
# include "zlib/zlib.h"
# include "bzip2/bzlib.h"
#else
# include <zlib.h>
# include <bzlib.h>
#endif
#include "UnAlz.h"
#ifdef _WIN32
# pragma warning( disable : 4996 ) // crt secure warning
#endif
// utime 함수 처리
#if defined(_WIN32) || defined(__CYGWIN__)
# include <time.h>
# include <sys/utime.h>... | 25.288316 | 328 | 0.566417 | kippler |
cc845d41a4cda951e0c2a35a8a448fb72c79ac7d | 2,767 | cpp | C++ | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 275 | 2015-04-06T19:49:18.000Z | 2022-03-19T06:23:47.000Z | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 20 | 2015-09-02T04:41:15.000Z | 2021-02-24T17:48:51.000Z | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 57 | 2015-06-01T01:08:02.000Z | 2022-01-02T12:49:43.000Z | namespace {
/// This uses fewer arithmetic operations than any other known
/// implementation on machines with fast multiplication.
/// It uses 12 arithmetic operations, one of which is a multiply.
/// http://en.wikipedia.org/wiki/Hamming_weight#Efficient_implementation
///
uint64_t popcount_mul(uint64_t x)
{
const ... | 31.089888 | 78 | 0.64185 | kimwalisch |
cc92e631f99cd32b1e9c3eee1a2ee8e50332cb88 | 1,867 | cpp | C++ | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | //
// FileController.cpp
// Vector
//
// Created by Bonilla, Sean on 2/5/19.
// Copyright © 2019 CTEC. All rights reserved.
//
#include "FileController.hpp"
using namespace std;
vector<CrimeData> FileController :: readCrimeDataToVector(string filename){
vector<CrimeData> crimes;
string currentCSVLine;
... | 28.723077 | 112 | 0.561864 | SAarronB |
cc94c1ed84af0a8037617af724c7a2a7fa0f4d9d | 728 | hpp | C++ | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 1 | 2021-01-28T13:10:41.000Z | 2021-01-28T13:10:41.000Z | // Copyright David Stone 2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <tm/move/max_moves_per_pokemon.hpp>
#include <containers/static_vector.hpp>
#include <tm/generation.hpp>
n... | 25.103448 | 86 | 0.774725 | davidstone |
cca1994074eed5734a9fbc22fbe4099d5f9fc42f | 2,075 | hpp | C++ | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | 4 | 2018-09-27T16:46:31.000Z | 2018-11-22T11:10:41.000Z | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | #ifndef MODEM_SCMA_HPP_
#define MODEM_SCMA_HPP_
#include <complex>
#include <vector>
#include "Tools/Code/SCMA/modem_SCMA_functions.hpp"
#include "../Modem.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename R = float, typename Q = R, tools::proto_psi<Q> PSI = tools::psi_0>
class Modem_S... | 30.072464 | 126 | 0.61012 | OlivierHartmann |
cca36cc4b702dcbc13369012d2af07499411556b | 1,180 | cpp | C++ | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | #include "Variable.h"
using namespace std;
Variable::Variable(Alloymaker &alloymaker)
{
setAlloymaker(alloymaker);
}
void Variable::setAlloymaker(Alloymaker &value)
{
alloymaker = &value;
}
Alloymaker &Variable::getAlloymaker()
{
return *alloymaker;
}
double Variable::composition(Standard &std)
{
v... | 15.733333 | 67 | 0.659322 | metalicn20 |
ccb2eda4b66331f8b88bdf846cb6e661b814ea75 | 1,107 | hpp | C++ | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_CORE_SERVICE_LOG_HPP_
#define BE_CORE_SERVICE_LOG_HPP_
#include "service.hpp"
#include "service_ids.hpp"
#include "console_log_sink.hpp"
#include "log.hpp"
namespace be {
///////////////////////////////////////////////////////////////////////////////
template <>
struct SuppressUndefinedServic... | 23.0625 | 79 | 0.455285 | magicmoremagic |
ccbb82240f83480c1dff283a2e241ccafbe73505 | 2,169 | cc | C++ | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <unordered_map>
#include "string_utils.h"
bool Check(std::unordered_map<std::string_view, int> const &known_facts,
std::vector<std::string_view> const &tokens) {
for (int i = 2; i < tokens.size(); i += 2) {
auto const thing = Trim(tokens[i], ":,");
a... | 25.821429 | 73 | 0.573997 | triglav |
ccbff3113c7f71866afd884399212a87286ec115 | 875 | hpp | C++ | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | #ifndef OFX_SWIZZLE_DETAIL_FUNCTIONAL_INCREMENT_DECREMENT_HPP
#define OFX_SWIZZLE_DETAIL_FUNCTIONAL_INCREMENT_DECREMENT_HPP
#include <utility>
namespace ofxSwizzle { namespace detail {
struct pre_increment
{
template <typename T>
constexpr auto operator()(T& t) const -> decltype(++t)
{
return ++t... | 18.617021 | 71 | 0.659429 | t6tn4k |
ccc12c1372e0e0c2f549742135a4899726092225 | 1,172 | cpp | C++ | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | #include <benchmark/benchmark.h>
#include <shadowmocap/message.hpp>
#include <algorithm>
#include <random>
#include <vector>
std::vector<char> make_random_bytes(std::size_t n)
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<int> dis(-128, 127);
std::vector<char> buf(n... | 26.636364 | 78 | 0.674061 | motion-workshop |
cccb113e383cab85bb0427179ecb4cbe2936ba12 | 1,485 | cpp | C++ | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 3 | 2017-11-29T07:11:24.000Z | 2020-03-03T19:23:33.000Z | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | null | null | null | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 1 | 2018-07-12T12:48:52.000Z | 2018-07-12T12:48:52.000Z | #include "dvd_reader.h"
#include "ifo_types.h"
#include "ifo_read.h"
#include "nav_read.h"
#include "cdrom.h"
#include "dvdinfo.h"
int detect_media_type(const char *psz_path)
{
int i_type;
char *psz_dup;
char psz_tmp[20];
dvd_reader_t *dvd;
vcddev_t* p_cddev;
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
if (... | 19.038462 | 51 | 0.642424 | XULPlayer |
ccce06e6b4fdbb371e2d9d97416f8c732c9fff2c | 1,540 | cpp | C++ | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | athnomedical/Aoba | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | #include "TimeoutTaskManager.hpp"
namespace s3d::aoba {
size_t TimeoutTaskManager::addTask(const std::function<void()>& task, double ms, bool threading) {
m_timeouts.emplace_back(task, ms, threading);
return m_timeouts[m_timeouts.size() - 1].id();
}
bool TimeoutTaskManager::isAlive(size_t... | 26.101695 | 102 | 0.521429 | KondoA9 |
ef9adb4af0ba3756488f6a0f2409d695b815528d | 1,875 | cpp | C++ | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 239 | 2020-11-26T12:53:51.000Z | 2022-03-24T01:02:49.000Z | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 6 | 2020-11-27T04:00:44.000Z | 2021-07-07T03:02:57.000Z | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 24 | 2020-11-26T22:59:27.000Z | 2022-02-06T04:02:50.000Z | #include <flapGame/Core.h>
#include <flapGame/GLHelpers.h>
// clang-format off
#define STBI_MALLOC(sz) PLY_HEAP.alloc(sz)
#define STBI_REALLOC(p, newsz) PLY_HEAP.realloc(p, newsz)
#define STBI_FREE(p) PLY_HEAP.free(p)
// clang-format om
#define STB_IMAGE_IMPLEMENTATION
#define STBI_ONLY_PNG
#inclu... | 28.409091 | 104 | 0.597333 | KnyazQasan |
ef9f57549e1dd00801d74e754e07ec188ad918e1 | 973 | cpp | C++ | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 22 | 2021-10-01T20:14:15.000Z | 2022-02-22T15:27:20.000Z | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 15 | 2021-10-01T20:24:55.000Z | 2021-10-31T05:55:14.000Z | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 76 | 2021-10-01T20:01:06.000Z | 2022-03-02T16:15:24.000Z | // https://practice.geeksforgeeks.org/viewSol.php?subId=58bdb4aa62394291d57f659e2c839932&pid=703402&user=tomarshiv51
// Initial template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
int lps(string s) {
// Your cod... | 15.693548 | 116 | 0.463515 | Bhannasa |
efa401af672bc08b39212830123acadded6ac823 | 1,764 | cpp | C++ | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 9 | 2017-08-31T06:03:18.000Z | 2019-01-06T05:07:26.000Z | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2017-08-31T06:23:22.000Z | 2022-01-24T06:47:19.000Z | // ExtendedCPU5Intel.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "ExtendedCPU5Intel.h"
#include "CPUIDx86.h"
#include "ReportRegs.h"
// CExtendedCPU5Intel dialog
IMPLEMENT_DYNCREATE(CExtendedCPU5Intel, CLeaves)
CExtendedCPU5Intel::CExtendedCPU5Intel()
: CLeaves(CExtendedCP... | 23.837838 | 77 | 0.573696 | allen7575 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.