hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f5db9b1cd4ab5149de5c2222e5504e1d8fafbf02 | 2,726 | cpp | C++ | Day7/Day7.cpp | ATRI17Z/adventofcode18 | 5d743d7d277b416e3b5a287b0df598c4d5d67c6f | [
"MIT"
] | 1 | 2018-12-05T18:32:50.000Z | 2018-12-05T18:32:50.000Z | Day7/Day7.cpp | ATRI17Z/adventofcode18 | 5d743d7d277b416e3b5a287b0df598c4d5d67c6f | [
"MIT"
] | null | null | null | Day7/Day7.cpp | ATRI17Z/adventofcode18 | 5d743d7d277b416e3b5a287b0df598c4d5d67c6f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <deque>
#include <algorithm>
#include <climits>
#include <chrono>
#include "InstructionScheduler.h"
std::string getInputAsString(std::string);
std::vector<std::string> getInputPerLines(std::string);
... | 26.211538 | 127 | 0.65077 |
f5dd62ffee22fc4d427e125832b5a72e4e6777dc | 2,215 | cpp | C++ | test/test_stable_sort_large.cpp | pruthvistony/rocThrust | c986b97395d4a6cbacc7a4600d11bdf389de639a | [
"Apache-2.0"
] | null | null | null | test/test_stable_sort_large.cpp | pruthvistony/rocThrust | c986b97395d4a6cbacc7a4600d11bdf389de639a | [
"Apache-2.0"
] | null | null | null | test/test_stable_sort_large.cpp | pruthvistony/rocThrust | c986b97395d4a6cbacc7a4600d11bdf389de639a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2008-2013 NVIDIA Corporation
* Modifications Copyright© 2019 Advanced Micro Devices, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... | 34.609375 | 83 | 0.722799 |
f5de368e1961f19c00134e53af1e7faa299a4371 | 4,218 | cc | C++ | crypt3async.cc | ahmedbodi/node-crypt3 | 4937bb8b46f4358c16a58f8ccd9eb97f1bf8b9d9 | [
"MIT"
] | null | null | null | crypt3async.cc | ahmedbodi/node-crypt3 | 4937bb8b46f4358c16a58f8ccd9eb97f1bf8b9d9 | [
"MIT"
] | null | null | null | crypt3async.cc | ahmedbodi/node-crypt3 | 4937bb8b46f4358c16a58f8ccd9eb97f1bf8b9d9 | [
"MIT"
] | null | null | null | /*
* An example of an asynchronous C++ node addon.
* Provided by paulhauner https://github.com/paulhauner
* License: MIT
* Tested in node.js v4.4.2 LTS in Ubuntu Linux
*/
#include <nan.h>
#include <node.h>
#include <uv.h>
#include <iostream>
#include <unistd.h>
#include <string.h>
using namespace std;
n... | 29.496503 | 153 | 0.686818 |
f5def028edf9cc51d0028f1345017031b1c31b25 | 947 | cpp | C++ | #Preparation/Placement-Overview/PrepInsta/max-contiguos-array.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | 4 | 2020-05-14T04:41:04.000Z | 2021-06-13T06:42:03.000Z | #Preparation/Placement-Overview/PrepInsta/max-contiguos-array.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | #Preparation/Placement-Overview/PrepInsta/max-contiguos-array.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define fo(i, n) for(int i = 1; i < n; i++)
using namespace std ;
#define deb(x) {cout << #x << " " << x << endl ;}
int max_contiguos_subarray(vector<int> &nums) {
stack<int> cached ;
cached.push(nums[0]) ; int n = nums.size() ;
int cnt = INT_MIN, t = 0 ;
if(is_sorted(nums.begi... | 24.921053 | 77 | 0.510032 |
f5df0e72004df1e45f4c36c00742299324900e40 | 1,209 | hpp | C++ | include/nodamushi/svd/value/void_value.hpp | nodamushi/nsvd-reader | cf3a840aaac78d5791df1cf045596ec20dc03257 | [
"CC0-1.0"
] | null | null | null | include/nodamushi/svd/value/void_value.hpp | nodamushi/nsvd-reader | cf3a840aaac78d5791df1cf045596ec20dc03257 | [
"CC0-1.0"
] | null | null | null | include/nodamushi/svd/value/void_value.hpp | nodamushi/nsvd-reader | cf3a840aaac78d5791df1cf045596ec20dc03257 | [
"CC0-1.0"
] | null | null | null | /*!
@brief value<void>
@file nodamushi/svd/value/void_value.hpp
*/
/*
* These codes are licensed under CC0.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
#ifndef NODAMUSHI_SVD_VALUE_VOID_VALUE_HPP
#define NODAMUSHI_SVD_VALUE_VOID_VALUE_HPP
# include "nodamushi/svd/value.hpp"
namespace nodamushi{... | 26.866667 | 82 | 0.74359 |
f5e001516d43c3b57cd4f33d19473a3eef7f3e79 | 1,938 | inl | C++ | ace/OS_NS_sys_select.inl | binary42/OCI | 08191bfe4899f535ff99637d019734ed044f479d | [
"MIT"
] | null | null | null | ace/OS_NS_sys_select.inl | binary42/OCI | 08191bfe4899f535ff99637d019734ed044f479d | [
"MIT"
] | null | null | null | ace/OS_NS_sys_select.inl | binary42/OCI | 08191bfe4899f535ff99637d019734ed044f479d | [
"MIT"
] | null | null | null | // -*- C++ -*-
//
// $Id: OS_NS_sys_select.inl 2179 2013-05-28 22:16:51Z mesnierp $
#include "ace/OS_NS_errno.h"
#include "ace/OS_NS_macros.h"
#include "ace/Time_Value.h"
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
// It would be really cool to add another version of select that would
// function like the one we're defending... | 25.84 | 74 | 0.680599 |
f5e066f0d870954ca333c029b0f98e32e4e026c1 | 2,713 | cpp | C++ | src/libharp-mpi/harp_mpi_metadata.cpp | tskisner/HARP | e21435511c3dc95ce1318c852002a95ca59634b1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/libharp-mpi/harp_mpi_metadata.cpp | tskisner/HARP | e21435511c3dc95ce1318c852002a95ca59634b1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/libharp-mpi/harp_mpi_metadata.cpp | tskisner/HARP | e21435511c3dc95ce1318c852002a95ca59634b1 | [
"BSD-3-Clause-LBNL"
] | null | null | null | /*
High Performance Astrophysical Reconstruction and Processing (HARP)
(c) 2014-2015, The Regents of the University of California,
through Lawrence Berkeley National Laboratory. See top
level LICENSE file for details.
*/
#include <harp_mpi_internal.hpp>
using namespace std;
using namespace harp;
mpi_spec... | 25.35514 | 122 | 0.664947 |
f5e1f88a2f50eba65f4395e9fc1dd9ae552292da | 9,825 | cpp | C++ | src/webots/wren/WbSupportPolygonRepresentation.cpp | victorhu3/webots | 60d173850f0b4714c500db004e69f2df8cfb9e8a | [
"Apache-2.0"
] | 1 | 2020-11-11T09:31:28.000Z | 2020-11-11T09:31:28.000Z | src/webots/wren/WbSupportPolygonRepresentation.cpp | victorhu3/webots | 60d173850f0b4714c500db004e69f2df8cfb9e8a | [
"Apache-2.0"
] | 2 | 2020-05-18T12:49:14.000Z | 2020-12-01T15:13:43.000Z | src/webots/wren/WbSupportPolygonRepresentation.cpp | victorhu3/webots | 60d173850f0b4714c500db004e69f2df8cfb9e8a | [
"Apache-2.0"
] | 1 | 2022-02-25T12:34:18.000Z | 2022-02-25T12:34:18.000Z | // Copyright 1996-2020 Cyberbotics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 44.659091 | 107 | 0.780356 |
f5e434116a671ac9e1f4f04cafb86df2af834171 | 2,892 | cc | C++ | cms/src/model/CreateMyGroupAlertBatchResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | cms/src/model/CreateMyGroupAlertBatchResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | cms/src/model/CreateMyGroupAlertBatchResult.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 30.765957 | 106 | 0.743084 |
f5e62cb44eec4bc49d80035e5a0c6520468e61b8 | 11,794 | cc | C++ | paddle/fluid/operators/mkldnn/conv_transpose_mkldnn_op.cc | taoshibo/Paddle | 93c1d9e7618173ce1e8dfd41c83a927a2c98e862 | [
"Apache-2.0"
] | 2 | 2021-02-04T15:04:21.000Z | 2021-02-07T14:20:00.000Z | paddle/fluid/operators/mkldnn/conv_transpose_mkldnn_op.cc | hexieshenghuo/Paddle | 2497f4392fe60f4c72e9b7ff5de9b8b6117aacac | [
"Apache-2.0"
] | null | null | null | paddle/fluid/operators/mkldnn/conv_transpose_mkldnn_op.cc | hexieshenghuo/Paddle | 2497f4392fe60f4c72e9b7ff5de9b8b6117aacac | [
"Apache-2.0"
] | 1 | 2021-03-16T13:40:08.000Z | 2021-03-16T13:40:08.000Z | /* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applic... | 42.272401 | 80 | 0.638799 |
f5e62da46a8c8e64f061e76cbf2b946a01371188 | 3,721 | cpp | C++ | aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingRequest.cpp | blinemedical/aws-sdk-cpp | c7c814b2d6862b4cb48f3fb3ac083a9e419674e8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingRequest.cpp | blinemedical/aws-sdk-cpp | c7c814b2d6862b4cb48f3fb3ac083a9e419674e8 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-lambda/source/model/UpdateEventSourceMappingRequest.cpp | blinemedical/aws-sdk-cpp | c7c814b2d6862b4cb48f3fb3ac083a9e419674e8 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/lambda/model/UpdateEventSourceMappingRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Lambda::Model;
using namespace Aws::Utils::Json;... | 28.189394 | 185 | 0.795485 |
f5e67ddfea3794f7837ab81c9d08149ef277c584 | 130,429 | cpp | C++ | diffy/src/utils/llvmUtils.cpp | divyeshunadkat/diffy-artifact | a3405c828b18696bdabf2cee994599a2d7573d0c | [
"MIT"
] | 1 | 2021-06-09T06:34:06.000Z | 2021-06-09T06:34:06.000Z | diffy/src/utils/llvmUtils.cpp | divyeshunadkat/diffy-artifact | a3405c828b18696bdabf2cee994599a2d7573d0c | [
"MIT"
] | null | null | null | diffy/src/utils/llvmUtils.cpp | divyeshunadkat/diffy-artifact | a3405c828b18696bdabf2cee994599a2d7573d0c | [
"MIT"
] | null | null | null | #include <limits>
#include <random>
#include "llvmUtils.h"
#include "utils/graphUtils.h"
#include "daikon-inst/comments.h" //todo: move to utils
#include <boost/algorithm/string.hpp>
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
// pr... | 34.827503 | 191 | 0.612118 |
f5e7fb6b5b4a64f49bd06875a5235830160f3ff3 | 46,697 | cpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/mix/mat/fun/operator_subtraction_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/mix/mat/fun/operator_subtraction_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/mix/mat/fun/operator_subtraction_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/mix/mat.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/mat/fun/util.hpp>
using stan::math::fvar;
TEST(AgradMixMatrixOperatorSubtraction,fv_scalar_matrix_1stDeriv) {
using stan::math::subtract;
using stan::math::matrix_fv;
matrix_fv v(2,2);
v << 1, 2, 3, 4;
v(0).d_ = 1.0;
... | 31.172897 | 111 | 0.635351 |
f5e8dcc3f29b60600a0a99dcd0f67ece49351e7b | 376 | cpp | C++ | wayTooLongWords.cpp | TanishGoel/CPPCF | fda1be256e7cc244d07fc3f82febc76d0927c7f2 | [
"MIT"
] | 1 | 2017-09-22T13:33:33.000Z | 2017-09-22T13:33:33.000Z | wayTooLongWords.cpp | TanishGoel/competitiveProgramming | fda1be256e7cc244d07fc3f82febc76d0927c7f2 | [
"MIT"
] | null | null | null | wayTooLongWords.cpp | TanishGoel/competitiveProgramming | fda1be256e7cc244d07fc3f82febc76d0927c7f2 | [
"MIT"
] | null | null | null | // solution to 71A
#include <iostream>
#include <string>
using namespace std;
int main()
{
string arr[100];
int n;
cin >> n;
for (int i = 0; i < n; i++){
cin >> arr[i];
}
for (int i = 0; i < n; i++){
if ( arr[i].size() > 10){
cout << arr[i][0] << arr[i].size() - 2 << arr[i].back() << endl;
... | 16.347826 | 70 | 0.457447 |
f5e93bcb204cd48c4caf9678743afabfb222b03d | 3,331 | cpp | C++ | 3rdparty/GPSTk/ext/lib/Vdraw/Palette.cpp | mfkiwl/ICE | e660d031bb1bcea664db1de4946fd8781be5b627 | [
"MIT"
] | 50 | 2019-10-12T01:22:20.000Z | 2022-02-15T23:28:26.000Z | 3rdparty/GPSTk/ext/lib/Vdraw/Palette.cpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | null | null | null | 3rdparty/GPSTk/ext/lib/Vdraw/Palette.cpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | 14 | 2019-11-05T01:50:29.000Z | 2021-08-06T06:23:44.000Z | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk is free software; you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; ei... | 33.31 | 87 | 0.590814 |
f5eb05845bb9112c7134f335fdd99bbdd7ccb202 | 2,507 | cpp | C++ | src/AppService.cpp | lan143/aqua_controller_esp8266 | 74a9a2a185037ae465898bcf797adfc7e560aebd | [
"MIT"
] | null | null | null | src/AppService.cpp | lan143/aqua_controller_esp8266 | 74a9a2a185037ae465898bcf797adfc7e560aebd | [
"MIT"
] | null | null | null | src/AppService.cpp | lan143/aqua_controller_esp8266 | 74a9a2a185037ae465898bcf797adfc7e560aebd | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2018-2019 Kravchenko Artyom
*
* 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... | 31.734177 | 81 | 0.716394 |
f5edcf74beccef6714df5999f1c005d89beb25ed | 432 | cpp | C++ | cli/day10.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | cli/day10.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | cli/day10.cpp | maxnoe/adventofcode2020 | eb2a3ea03af02bf951f145f214da6a9221d8fe4f | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
#include <aocmaxnoe2020/aocmaxnoe2020.h>
#include <aocmaxnoe2020/day10.h>
using namespace aocmaxnoe2020;
int main() {
std::string input = get_input(10);
auto numbers = day10::parse_input(input);
uint64_t part1 = day10::part1(numbers);
std::cout << "Solution 1: "... | 22.736842 | 70 | 0.657407 |
f5f0d2c0281bfbad164c4915c488f09e7fc98b28 | 2,161 | cpp | C++ | printscan/wia/test/wiatest2/wiaeditproprange.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | printscan/wia/test/wiatest2/wiaeditproprange.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | printscan/wia/test/wiatest2/wiaeditproprange.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Wiaeditproprange.cpp : implementation file
//
#include "stdafx.h"
#include "wiatest.h"
#include "Wiaeditproprange.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWiaed... | 30.013889 | 86 | 0.700139 |
f5f18fe53294534cf46c1c4eb97d1c037feed78d | 14,919 | cpp | C++ | applications/StructuralMechanicsApplication/custom_response_functions/response_utilities/stress_response_definitions.cpp | Jacklwln/Kratos | 12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de | [
"BSD-4-Clause"
] | 1 | 2019-08-01T09:01:08.000Z | 2019-08-01T09:01:08.000Z | applications/StructuralMechanicsApplication/custom_response_functions/response_utilities/stress_response_definitions.cpp | Jacklwln/Kratos | 12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de | [
"BSD-4-Clause"
] | null | null | null | applications/StructuralMechanicsApplication/custom_response_functions/response_utilities/stress_response_definitions.cpp | Jacklwln/Kratos | 12ffe332622d7e8ea3e4a10bc061beb9d8e6e8de | [
"BSD-4-Clause"
] | null | null | null | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Martin Fusseder, https://github.com/MFusseder
//
... | 32.362256 | 117 | 0.572357 |
f5f22f3726756be63be4d965a664a98be804efda | 1,489 | hpp | C++ | micro_ros_agent/include/agent/Agent.hpp | ZhenshengLee/micro-ROS-Agent | 90545b718410e0214819028e2b479be3f7d6d382 | [
"Apache-2.0"
] | 31 | 2019-09-20T23:52:48.000Z | 2022-03-30T16:00:17.000Z | micro_ros_agent/include/agent/Agent.hpp | ZhenshengLee/micro-ROS-Agent | 90545b718410e0214819028e2b479be3f7d6d382 | [
"Apache-2.0"
] | 70 | 2019-06-20T00:06:10.000Z | 2022-03-22T09:26:16.000Z | micro_ros_agent/include/agent/Agent.hpp | ZhenshengLee/micro-ROS-Agent | 90545b718410e0214819028e2b479be3f7d6d382 | [
"Apache-2.0"
] | 11 | 2020-09-24T20:23:33.000Z | 2022-03-08T12:02:24.000Z | // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... | 29.196078 | 124 | 0.739422 |
f5f262fc4e015ba765cb6884c8ef86788c17a556 | 1,696 | cc | C++ | docs/source/tutorial/libpy_tutorial/arrays.cc | gerrymanoim/libpy | ffe19d53aa9602893aecc2dd8c9feda90e06b262 | [
"Apache-2.0"
] | 71 | 2020-06-26T00:36:33.000Z | 2021-12-02T13:57:02.000Z | docs/source/tutorial/libpy_tutorial/arrays.cc | stefan-jansen/libpy | e174ee103db76a9d0fcd29165d54c676ed1f2629 | [
"Apache-2.0"
] | 32 | 2020-06-26T18:59:15.000Z | 2022-03-01T19:02:44.000Z | docs/source/tutorial/libpy_tutorial/arrays.cc | gerrymanoim/libpy | ffe19d53aa9602893aecc2dd8c9feda90e06b262 | [
"Apache-2.0"
] | 24 | 2020-06-26T17:01:57.000Z | 2022-02-15T00:25:27.000Z | #include <string>
#include <vector>
#include <libpy/autofunction.h>
#include <libpy/automodule.h>
#include <libpy/ndarray_view.h>
#include <libpy/numpy_utils.h>
namespace libpy_tutorial {
std::int64_t simple_sum(py::array_view<const std::int64_t> values) {
std::int64_t out = 0;
for (auto value : values) {
... | 27.803279 | 80 | 0.579599 |
f5f3c8ef2ec38f4bb3a7927029967bf5768cf87c | 1,570 | cpp | C++ | TACO_Benchmarks/nl_means/process.cpp | TUE-EE-ES/HalideReuseScheduler | 3700c3b14a7f2116fe1d8503942dff069a8c4d9a | [
"MIT"
] | null | null | null | TACO_Benchmarks/nl_means/process.cpp | TUE-EE-ES/HalideReuseScheduler | 3700c3b14a7f2116fe1d8503942dff069a8c4d9a | [
"MIT"
] | null | null | null | TACO_Benchmarks/nl_means/process.cpp | TUE-EE-ES/HalideReuseScheduler | 3700c3b14a7f2116fe1d8503942dff069a8c4d9a | [
"MIT"
] | 1 | 2021-04-30T05:14:03.000Z | 2021-04-30T05:14:03.000Z | #include <cstdio>
#include <chrono>
#include "nl_means.h"
#include "nl_means_auto_schedule.h"
#include "halide_benchmark.h"
#include "HalideBuffer.h"
#include "halide_image_io.h"
using namespace Halide::Runtime;
using namespace Halide::Tools;
int main(int argc, char **argv) {
if (argc < 7) {
printf("Usa... | 30.192308 | 103 | 0.659236 |
f5f49f8ebd8a66420a9ed5341f4b361ef65527f7 | 9,045 | cc | C++ | tests/cpp/predictor/test_cpu_predictor.cc | bridgream/xgboost | dfdf0b08fc24e05ad731d4424b8c1a925968779f | [
"Apache-2.0"
] | 1 | 2021-07-25T13:35:14.000Z | 2021-07-25T13:35:14.000Z | tests/cpp/predictor/test_cpu_predictor.cc | bridgream/xgboost | dfdf0b08fc24e05ad731d4424b8c1a925968779f | [
"Apache-2.0"
] | 2 | 2021-09-10T06:30:57.000Z | 2022-03-19T19:34:19.000Z | tests/cpp/predictor/test_cpu_predictor.cc | RukhovichIV/xgboost | 3290a4f3edc9dbd109f4314e5d4bf26a1f9c3036 | [
"Apache-2.0"
] | null | null | null | /*!
* Copyright 2017-2020 XGBoost contributors
*/
#include <dmlc/filesystem.h>
#include <gtest/gtest.h>
#include <xgboost/predictor.h>
#include "../helpers.h"
#include "test_predictor.h"
#include "../../../src/gbm/gbtree_model.h"
#include "../../../src/gbm/gbtree.h"
#include "../../../src/data/adapter.h"
namespace ... | 36.035857 | 118 | 0.707794 |
f5f4b5d10ebf69721c7cacaaa442f4ff7f57d79c | 128 | cpp | C++ | tensorflow-yolo-ios/dependencies/eigen/doc/snippets/SelfAdjointEigenSolver_compute_MatrixType2.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/snippets/SelfAdjointEigenSolver_compute_MatrixType2.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/snippets/SelfAdjointEigenSolver_compute_MatrixType2.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:8aa5ed706dca5c634da572b1fb1bbb853d4587e7f5852d746790690c0ed3cd7e
size 396
| 32 | 75 | 0.882813 |
f5f560c7d8dd8906c60f23dc3b0e9188111f96c5 | 376 | cc | C++ | Bcore/src/main/cpp/Dobby/source/core/modules/assembler/assembler-x86-shared.cc | zzzgoda/BlackDex | 565c9573a89d1741b554817cfe01a6a87b585efc | [
"Apache-2.0"
] | 3,239 | 2021-05-24T08:34:32.000Z | 2022-03-31T08:24:39.000Z | Bcore/src/main/cpp/Dobby/source/core/modules/assembler/assembler-x86-shared.cc | LGDhuanghe/BlackDex | 2d8592649278b72cfaaa82ddf081d57369cbf223 | [
"Apache-2.0"
] | 111 | 2019-12-23T10:02:43.000Z | 2022-03-28T01:16:43.000Z | Bcore/src/main/cpp/Dobby/source/core/modules/assembler/assembler-x86-shared.cc | LGDhuanghe/BlackDex | 2d8592649278b72cfaaa82ddf081d57369cbf223 | [
"Apache-2.0"
] | 666 | 2021-05-24T08:44:43.000Z | 2022-03-31T04:23:07.000Z | #include "platform_macro.h"
#if defined(TARGET_ARCH_X64) || defined(TARGET_ARCH_IA32)
#include "core/modules/assembler/assembler-x86-shared.h"
using namespace zz::x86shared;
void Assembler::jmp(Immediate imm) {
buffer_->Emit8(0xE9);
buffer_->Emit32((int)imm.value());
}
uint64_t TurboAssembler::CurrentIP() {
r... | 22.117647 | 57 | 0.75 |
f5f6075e06cee2818ca127e1d624ec7ff946fbc9 | 6,510 | cpp | C++ | Redneck/ReInstructionGenerator.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:15:27.000Z | 2017-03-01T12:15:27.000Z | Redneck/ReInstructionGenerator.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | 1 | 2017-03-01T12:19:17.000Z | 2017-03-01T12:19:52.000Z | Redneck/ReInstructionGenerator.cpp | MurielSoftware/Muriel | 169ab5a96e1cf70b47f7892906a3dca2d6481ae3 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "ReInstructionGenerator.h"
#include "ReExpression.h"
#include "ReInstruction.h"
#include "ReBinaryOperationExpression.h"
#include "ReIfExpression.h"
#include "ReDeclarationExpression.h"
#include "ReAssociationExpression.h"
#include "ReValueExpression.h"
#include "ReIdentifierExpres... | 36.988636 | 128 | 0.747773 |
f5f9426508c6b6a8ce02b42a3b3626cecd75b347 | 2,222 | cc | C++ | server/core/misc.cc | nephtyws/MaxScale | 312469dca2721666d9fff310b6c3166b0d05d2a3 | [
"MIT"
] | null | null | null | server/core/misc.cc | nephtyws/MaxScale | 312469dca2721666d9fff310b6c3166b0d05d2a3 | [
"MIT"
] | null | null | null | server/core/misc.cc | nephtyws/MaxScale | 312469dca2721666d9fff310b6c3166b0d05d2a3 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2023-01-01
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 20.385321 | 84 | 0.660666 |
f5f9611b1bac4078af8ed3e09017be66c6588ca9 | 11,625 | cc | C++ | iree/tools/iree-benchmark-module-main.cc | phoenix-meadowlark/iree | 6e7ea7914a5de62d89b641c794b00c4a2c13828e | [
"Apache-2.0"
] | null | null | null | iree/tools/iree-benchmark-module-main.cc | phoenix-meadowlark/iree | 6e7ea7914a5de62d89b641c794b00c4a2c13828e | [
"Apache-2.0"
] | null | null | null | iree/tools/iree-benchmark-module-main.cc | phoenix-meadowlark/iree | 6e7ea7914a5de62d89b641c794b00c4a2c13828e | [
"Apache-2.0"
] | null | null | null | // 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 39.811644 | 80 | 0.688946 |
f5fbf623cf0ead0b8eb9cbb7c04ccfe9b559bf51 | 8,771 | cpp | C++ | iree/compiler/Dialect/Flow/Transforms/RematerializeDispatchConstants.cpp | rsuderman/iree | fa5faf0a254db3311dafacc70c383a7469376095 | [
"Apache-2.0"
] | 1 | 2020-08-16T17:38:49.000Z | 2020-08-16T17:38:49.000Z | iree/compiler/Dialect/Flow/Transforms/RematerializeDispatchConstants.cpp | rsuderman/iree | fa5faf0a254db3311dafacc70c383a7469376095 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Dialect/Flow/Transforms/RematerializeDispatchConstants.cpp | rsuderman/iree | fa5faf0a254db3311dafacc70c383a7469376095 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 37.969697 | 80 | 0.721126 |
f5fc65664d1a838ef75507fddab916617491d1fe | 3,535 | cpp | C++ | Server/Modules/src/JTPacketSender.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | 4 | 2015-08-17T20:12:22.000Z | 2020-05-30T19:53:26.000Z | Server/Modules/src/JTPacketSender.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | null | null | null | Server/Modules/src/JTPacketSender.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of condit... | 40.170455 | 755 | 0.672419 |
f5fc7cad59b5ad1db760f6bee7dd14efb13c592d | 8,377 | cpp | C++ | src/Selector.cpp | cppcooper/gumbo-query | f4c69278f09616e6275acd0dd2ea1d22f3785dc8 | [
"MIT"
] | 1 | 2022-02-28T15:51:39.000Z | 2022-02-28T15:51:39.000Z | src/Selector.cpp | cppcooper/gumbo-query | f4c69278f09616e6275acd0dd2ea1d22f3785dc8 | [
"MIT"
] | null | null | null | src/Selector.cpp | cppcooper/gumbo-query | f4c69278f09616e6275acd0dd2ea1d22f3785dc8 | [
"MIT"
] | null | null | null | /***************************************************************************
*
* $Id$
*
**************************************************************************/
/**
* @file $HeadURL$
* @author $Author$(hoping@baimashi.com)
* @date $Date$
* @version $Revision$
* @brief
*
**/
#include <gumbo-query/Se... | 19.34642 | 91 | 0.586726 |
f5fd1c55ef8abe98b3ce3a1103a32e218c189f88 | 2,257 | cpp | C++ | SysProgTemplate_SS_15/Buffer/src/Buffer.cpp | SystemOfAProg/SysProg | 75cec3d856033b5bada8b9af2290c692cb2084da | [
"MIT"
] | null | null | null | SysProgTemplate_SS_15/Buffer/src/Buffer.cpp | SystemOfAProg/SysProg | 75cec3d856033b5bada8b9af2290c692cb2084da | [
"MIT"
] | null | null | null | SysProgTemplate_SS_15/Buffer/src/Buffer.cpp | SystemOfAProg/SysProg | 75cec3d856033b5bada8b9af2290c692cb2084da | [
"MIT"
] | 1 | 2018-10-11T08:52:27.000Z | 2018-10-11T08:52:27.000Z | /*
* Buffer.cpp
*
* Created on: Sep 26, 2012
* Author: sofa1011
*/
using namespace std;
#include "../includes/Buffer.h"
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <unistd.h>
Buffer::Buffer( int bufferSize) {
size = bufferSize;
buffer1 = new char[bufferSize];
buffer2 = new char... | 21.701923 | 93 | 0.625609 |
eb0093cac37369b07ffc4a11b6252198768048f9 | 22,786 | cpp | C++ | src/libs/tools/tests/testtool_backendbuilder.cpp | dev2718/libelektra | cd581101febbc8ee2617243d0d93f871ef2fae88 | [
"BSD-3-Clause"
] | 188 | 2015-01-07T20:34:26.000Z | 2022-03-16T09:55:09.000Z | src/libs/tools/tests/testtool_backendbuilder.cpp | dev2718/libelektra | cd581101febbc8ee2617243d0d93f871ef2fae88 | [
"BSD-3-Clause"
] | 3,813 | 2015-01-02T14:00:08.000Z | 2022-03-31T14:19:11.000Z | src/libs/tools/tests/testtool_backendbuilder.cpp | dev2718/libelektra | cd581101febbc8ee2617243d0d93f871ef2fae88 | [
"BSD-3-Clause"
] | 149 | 2015-01-10T02:07:50.000Z | 2022-03-16T09:50:24.000Z | /**
* @file
*
* @brief Tests for the Backend builder class
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#define ELEKTRA_PLUGINSPEC_WITH_COMPARE
#include <backendbuilder.hpp>
#include <backend.hpp>
#include <backends.hpp>
#include <plugindatabase.hpp>
#include <algorithm>
#in... | 32.691535 | 130 | 0.680506 |
eb02baeea0b3dbeb7a460df319181fcff99baa62 | 2,278 | cpp | C++ | apps/settings/Settings.cpp | seldon1000/fairwindplusplus | 26cf18e0ecf49c642e24cc504d56722eaddd1399 | [
"Apache-2.0"
] | null | null | null | apps/settings/Settings.cpp | seldon1000/fairwindplusplus | 26cf18e0ecf49c642e24cc504d56722eaddd1399 | [
"Apache-2.0"
] | null | null | null | apps/settings/Settings.cpp | seldon1000/fairwindplusplus | 26cf18e0ecf49c642e24cc504d56722eaddd1399 | [
"Apache-2.0"
] | null | null | null | //
// Created by __author__ on 18/01/2022.
//
#include <FairWindSdk/settings/FairComboBox.hpp>
#include <FairWindSdk/settings/FairLineEdit.hpp>
#include <FairWindSdk/settings/FairCheckBox.hpp>
#include <FairWindSdk/settings/DisplaysBrowser.hpp>
#include <FairWindSdk/settings/LayersBrowser.hpp>
#include "Settings.hpp"
... | 27.119048 | 81 | 0.651888 |
eb04decdd2e600bf815af60cbb8d329c507c2a7f | 14,982 | cpp | C++ | Matrix3x3.cpp | mbrandonw/opengl_physics_engine | 422815999f0dc14335d1b4238c58ce7813d58038 | [
"MIT"
] | 1 | 2018-05-07T18:29:18.000Z | 2018-05-07T18:29:18.000Z | Matrix3x3.cpp | mbrandonw/opengl_physics_engine | 422815999f0dc14335d1b4238c58ce7813d58038 | [
"MIT"
] | null | null | null | Matrix3x3.cpp | mbrandonw/opengl_physics_engine | 422815999f0dc14335d1b4238c58ce7813d58038 | [
"MIT"
] | null | null | null | /* ---------------------------------------------------------------------------
*
* Matrix2x2 class - Michael Brandon Williams
*
* Matrix2x2.cpp
*
* ---------------------------------------------------------------------------
*/
#include "Matrix3x3.h"
Matrix3x3::Matrix3x3()
{
elements[0][0] =... | 26.376761 | 103 | 0.551128 |
eb0a95beff1800d8a53cdd92d0c4cae0f40ec50d | 4,054 | cpp | C++ | kernel_selector/core/actual_kernels/fully_connected/fully_connected_kernel_base.cpp | liyuming1978/clDNN | 05e19dd2229dc977c2902ec360f3165ecb925b50 | [
"BSL-1.0",
"Intel",
"Apache-2.0"
] | null | null | null | kernel_selector/core/actual_kernels/fully_connected/fully_connected_kernel_base.cpp | liyuming1978/clDNN | 05e19dd2229dc977c2902ec360f3165ecb925b50 | [
"BSL-1.0",
"Intel",
"Apache-2.0"
] | null | null | null | kernel_selector/core/actual_kernels/fully_connected/fully_connected_kernel_base.cpp | liyuming1978/clDNN | 05e19dd2229dc977c2902ec360f3165ecb925b50 | [
"BSL-1.0",
"Intel",
"Apache-2.0"
] | null | null | null | /*
// Copyright (c) 2016 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law o... | 37.192661 | 189 | 0.656635 |
eb0b3574be11276e7637fc8ad52a432e7a735406 | 600 | hpp | C++ | ios/IOS/IPCLog.hpp | StarMKWii/saoirse | 1acd4b2c56a30b6e105130cb6a58f95dd4d5d440 | [
"MIT"
] | 7 | 2022-02-16T18:21:22.000Z | 2022-02-27T18:39:07.000Z | ios/IOS/IPCLog.hpp | StarMKWii/saoirse | 1acd4b2c56a30b6e105130cb6a58f95dd4d5d440 | [
"MIT"
] | 2 | 2022-02-16T18:36:14.000Z | 2022-02-21T02:10:42.000Z | ios/IOS/IPCLog.hpp | StarMKWii/saoirse | 1acd4b2c56a30b6e105130cb6a58f95dd4d5d440 | [
"MIT"
] | 1 | 2022-02-16T18:32:08.000Z | 2022-02-16T18:32:08.000Z | // IPCLog.hpp - IOS to PowerPC logging through IPC
// Written by Palapeli
//
// Copyright (C) 2022 Team Saoirse
// SPDX-License-Identifier: MIT
#pragma once
#include <System/OS.hpp>
#include <System/Types.h>
class IPCLog
{
public:
static IPCLog* sInstance;
static constexpr int printSize = 256;
IPCLog(... | 19.354839 | 50 | 0.683333 |
eb0ca5d8f491f3ebc3d3e2104e38c20e89a3d41c | 5,049 | cc | C++ | build/fuchsia/pkg/lib/vfs/cpp/service_unittest.cc | chinmaygarde/buildroot | 6b69caa4c7a04b6e81709bedd52297f29c2b1a14 | [
"BSD-3-Clause"
] | 1 | 2020-12-04T02:06:21.000Z | 2020-12-04T02:06:21.000Z | build/fuchsia/pkg/lib/vfs/cpp/service_unittest.cc | mdempsky/flutter_buildroot | 765b0ea58a095374a73943ad78471b915c2d63e1 | [
"BSD-3-Clause"
] | null | null | null | build/fuchsia/pkg/lib/vfs/cpp/service_unittest.cc | mdempsky/flutter_buildroot | 765b0ea58a095374a73943ad78471b915c2d63e1 | [
"BSD-3-Clause"
] | 1 | 2019-08-26T02:16:11.000Z | 2019-08-26T02:16:11.000Z | // Copyright 2019 The Fuchsia 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 "lib/vfs/cpp/service.h"
#include <fidl/examples/echo/cpp/fidl.h>
#include <lib/fdio/vfs.h>
#include <lib/fidl/cpp/binding_set.h>
#include "lib/gt... | 33 | 80 | 0.655575 |
eb0f489318ba55cba6be32810461375ad4ca1ed0 | 2,175 | cpp | C++ | tests/test_csrc/model/test_model.cpp | PeterH0323/mmdeploy-1 | ac0b52f12ac897867b9bf3dae74b4192493b3d5f | [
"Apache-2.0"
] | null | null | null | tests/test_csrc/model/test_model.cpp | PeterH0323/mmdeploy-1 | ac0b52f12ac897867b9bf3dae74b4192493b3d5f | [
"Apache-2.0"
] | null | null | null | tests/test_csrc/model/test_model.cpp | PeterH0323/mmdeploy-1 | ac0b52f12ac897867b9bf3dae74b4192493b3d5f | [
"Apache-2.0"
] | null | null | null | // Copyright (c) OpenMMLab. All rights reserved.
// clang-format off
#include "catch.hpp"
// clang-format on
#include "mmdeploy/core/logger.h"
#include "mmdeploy/core/model.h"
#include "mmdeploy/core/model_impl.h"
#include "test_resource.h"
using namespace mmdeploy;
TEST_CASE("model constructor", "[model]") {
SECT... | 32.462687 | 99 | 0.668506 |
eb11c96949100356f0f01fb55f00ffa29279f7bf | 584 | cpp | C++ | max7219/src/main.cpp | snakeye/stm32-projects | ed20e723dc1e50111c6b547fc142665b7db7843b | [
"MIT"
] | null | null | null | max7219/src/main.cpp | snakeye/stm32-projects | ed20e723dc1e50111c6b547fc142665b7db7843b | [
"MIT"
] | null | null | null | max7219/src/main.cpp | snakeye/stm32-projects | ed20e723dc1e50111c6b547fc142665b7db7843b | [
"MIT"
] | null | null | null | #include <SPI.h>
#include "LedMatrix.h"
#define NUMBER_OF_DEVICES 1
#define CS_PIN PB8
SPIClass SPI_2(PA7, PA6, PA5);
LedMatrix ledMatrix = LedMatrix(NUMBER_OF_DEVICES, CS_PIN);
int x = 0;
void setup()
{
ledMatrix.init();
ledMatrix.setIntensity(3);
ledMatrix.setText("MAX7219 Animation Demo");
led... | 16.222222 | 59 | 0.643836 |
eb12579345dbf532985963fd617dd2411b575fe3 | 8,709 | cpp | C++ | src/layers/medWidgets/medWidgets.cpp | arthursw/medInria-public | d52af882c36f0d96cc433cc1a4082accaa1ca11a | [
"BSD-4-Clause"
] | 61 | 2015-04-14T13:00:50.000Z | 2022-03-09T22:22:18.000Z | src/layers/medWidgets/medWidgets.cpp | arthursw/medInria-public | d52af882c36f0d96cc433cc1a4082accaa1ca11a | [
"BSD-4-Clause"
] | 510 | 2016-02-03T13:28:18.000Z | 2022-03-23T10:23:44.000Z | src/layers/medWidgets/medWidgets.cpp | arthursw/medInria-public | d52af882c36f0d96cc433cc1a4082accaa1ca11a | [
"BSD-4-Clause"
] | 36 | 2015-03-03T22:58:19.000Z | 2021-12-28T18:19:23.000Z | /*=========================================================================
medInria
Copyright (c) INRIA 2013 - 2018. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.... | 21.450739 | 84 | 0.620393 |
eb12e8c106cc2023e2424f6bdea758c0671c1f82 | 1,152 | cpp | C++ | acm/siweishixun/F.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/siweishixun/F.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/siweishixun/F.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include <iostream>
#include <sstream>
#include <ios>
#include <iomanip>
#include <functional>
#include <algorithm>
#include <vector>
#include <string>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring... | 12.659341 | 60 | 0.625 |
eb13dabb8906f2b51e842205d1df729a27644de2 | 377 | cpp | C++ | TOI16/Camp-3/code.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Camp-3/code.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Camp-3/code.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define endll "\n"
int baseTwo(int n){
int left,a[100];
left=n;
int i=0;
while(left>0){
a[i+1]=left%2;
left=left/2;
i++;
a[0]= left==1? 0:1 ;
}
for(int j=i;j>0;j--){
cout<<a[j];
}
}
main()
{
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
f... | 11.78125 | 30 | 0.543767 |
eb14d23764369379aee9cfa82cf6393c07699923 | 5,358 | cpp | C++ | stack/stackTest.cpp | hballaba/STL | d1064c102e87f6d871b61d251b9f383bead7b056 | [
"Unlicense"
] | null | null | null | stack/stackTest.cpp | hballaba/STL | d1064c102e87f6d871b61d251b9f383bead7b056 | [
"Unlicense"
] | null | null | null | stack/stackTest.cpp | hballaba/STL | d1064c102e87f6d871b61d251b9f383bead7b056 | [
"Unlicense"
] | null | null | null | #include "stack.hpp"
#include <stack>
#include <vector>
#include <deque>
# define G "\e[92m\e[1m"
# define D "\e[39m\e[0m"
# define R "\e[91m"
# define Y "\e[93m"
int main() {
try {
/****** CONSTRUCTOR ********/
{
std::cout << Y "My constructor\n" D;
std::deque<int> m... | 38.271429 | 109 | 0.447555 |
a3e1fe9e435a8a803c5e1fa8f3443340cc22002a | 11,551 | hpp | C++ | object_database/View.hpp | APrioriInvestments/object_database | d44b8432490b36b1ace67de0e23fb59f7ce9b529 | [
"Apache-2.0"
] | 2 | 2021-02-23T18:28:40.000Z | 2021-04-18T03:00:53.000Z | object_database/View.hpp | APrioriInvestments/object_database | d44b8432490b36b1ace67de0e23fb59f7ce9b529 | [
"Apache-2.0"
] | 115 | 2019-10-08T18:32:58.000Z | 2021-02-12T20:16:14.000Z | object_database/View.hpp | APrioriInvestments/object_database | d44b8432490b36b1ace67de0e23fb59f7ce9b529 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
Copyright 2017-2019 object_database Authors
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:/... | 30.23822 | 114 | 0.644793 |
a3e4539f4971a33311c2b5d816d06f0e2708ab7e | 1,121 | hpp | C++ | include/SSVOpenHexagon/Global/Version.hpp | PKPenguin321/SSVOpenHexagon | 1fcc25fea8f0ef6845d9b5502455a76563df91c3 | [
"AFL-3.0"
] | 20 | 2021-12-02T17:49:54.000Z | 2022-03-26T05:52:26.000Z | include/SSVOpenHexagon/Global/Version.hpp | PKPenguin321/SSVOpenHexagon | 1fcc25fea8f0ef6845d9b5502455a76563df91c3 | [
"AFL-3.0"
] | 4 | 2022-01-07T19:06:01.000Z | 2022-03-28T01:26:16.000Z | include/SSVOpenHexagon/Global/Version.hpp | PKPenguin321/SSVOpenHexagon | 1fcc25fea8f0ef6845d9b5502455a76563df91c3 | [
"AFL-3.0"
] | 1 | 2022-01-27T09:18:06.000Z | 2022-01-27T09:18:06.000Z | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
namespace hg {
// Allow us to represent the game's version in a major.minor.micro format
struct GameVersion
{
int major;
int minor;
int micr... | 22.42 | 73 | 0.58876 |
a3e7ea2097625ce49ecdf662156aced1be48fa5c | 6,153 | cpp | C++ | ace/ace/IOStream_T.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 46 | 2015-12-04T17:12:58.000Z | 2022-03-11T04:30:49.000Z | ace/ace/IOStream_T.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | null | null | null | ace/ace/IOStream_T.cpp | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | 1b0172cdb78757fd17898503aaf6ce03d940ef28 | [
"Apache-1.1"
] | 23 | 2016-10-24T09:18:14.000Z | 2022-02-25T02:11:35.000Z | // IOStream_T.cpp,v 4.20 2000/04/19 02:49:34 brunsch Exp
#ifndef ACE_IOSTREAM_T_C
#define ACE_IOSTREAM_T_C
#include "ace/IOStream_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
ACE_RCSID(ace, IOStream_T, "IOStream_T.cpp,v 4.20 2000/04/19 02:49:34 brunsch Exp")
... | 29.161137 | 84 | 0.627011 |
a3ec4762f6b4c3c4def63bced13dc269cccb49ca | 568 | cpp | C++ | Beverages/solution1.cpp | franzj/4CusContest | 8ea24ddad5b19fe4a5a08431172ba4e28794d30d | [
"MIT"
] | null | null | null | Beverages/solution1.cpp | franzj/4CusContest | 8ea24ddad5b19fe4a5a08431172ba4e28794d30d | [
"MIT"
] | null | null | null | Beverages/solution1.cpp | franzj/4CusContest | 8ea24ddad5b19fe4a5a08431172ba4e28794d30d | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
using namespace std;
vector<string> split(const string &s, char delim) {
vector<string> elems;
stringstream ss;
string item;
ss.str(s);
while (getline(ss, item, delim)) {
elems.push_back(item);
... | 16.705882 | 51 | 0.59507 |
a3eebe0c006811c0ed4bb8aed14a43b19205af91 | 432 | cpp | C++ | Firmware/unit_tests/tests/LcdBacklightTest/LcdBacklightTest.cpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 59 | 2018-03-17T10:32:48.000Z | 2022-03-19T17:59:29.000Z | Firmware/unit_tests/tests/LcdBacklightTest/LcdBacklightTest.cpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 3 | 2019-11-12T09:49:59.000Z | 2020-12-09T11:55:00.000Z | Firmware/unit_tests/tests/LcdBacklightTest/LcdBacklightTest.cpp | zukaitis/midi-grid | 527ad37348983f481511fef52d1645eab3a2f60e | [
"BSD-3-Clause"
] | 10 | 2019-03-14T22:53:39.000Z | 2021-12-26T13:42:20.000Z | #include <gtest/gtest.h>
#include "lcd/backlight/Backlight.h"
#include "hardware/lcd/MockBacklightDriver.h"
#include "freertos/MockThread.h"
int main( int argc, char **argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
TEST( BacklightConstructor, Create )
{
hardware::lcd::MockBa... | 20.571429 | 59 | 0.722222 |
a3f449eedbe5c0a195b2ab24f722062600fb5af9 | 28,928 | cc | C++ | attestation/server/pkcs11_key_store_test.cc | kalyankondapally/chromiumos-platform2 | 5e5337009a65b1c9aa9e0ea565f567438217e91f | [
"BSD-3-Clause"
] | null | null | null | attestation/server/pkcs11_key_store_test.cc | kalyankondapally/chromiumos-platform2 | 5e5337009a65b1c9aa9e0ea565f567438217e91f | [
"BSD-3-Clause"
] | null | null | null | attestation/server/pkcs11_key_store_test.cc | kalyankondapally/chromiumos-platform2 | 5e5337009a65b1c9aa9e0ea565f567438217e91f | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright 2015 The Chromium OS 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 "attestation/server/pkcs11_key_store.h"
#include <map>
#include <string>
#include <vector>
#include <base/logging.h>
#include <base/strings/... | 45.05919 | 80 | 0.723106 |
a3f58ec8fd42d988fae022d5766d218c5ed405b7 | 6,695 | cpp | C++ | sources/GeoElementSide.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | 1 | 2021-06-12T13:21:51.000Z | 2021-06-12T13:21:51.000Z | sources/GeoElementSide.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | null | null | null | sources/GeoElementSide.cpp | Kauehenrik/FemCourseEigenClass2021 | d4927d92b541fdd2b2aa1fa424a413dd561ae96e | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include "GeoMesh.h"
#include "GeoElementSide.h"
///\cond
#include <stdio.h>
#include <algorithm>
///\endcond
GeoElementSide::GeoEl... | 33.143564 | 142 | 0.603137 |
a3f6d573fd5fdd67b3e7d104be986e35b6aa7e24 | 913 | inl | C++ | Phoenix3D/PX2Unity/PX2CURLDownload.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 36 | 2016-04-24T01:40:38.000Z | 2022-01-18T07:32:26.000Z | Phoenix3D/PX2Unity/PX2CURLDownload.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | null | null | null | Phoenix3D/PX2Unity/PX2CURLDownload.inl | PheonixFoundation/Phoenix3D | bfb2e3757bf61ac461aeeda9216bf8c8fdf76d99 | [
"BSL-1.0"
] | 16 | 2016-06-13T08:43:51.000Z | 2020-09-15T13:25:58.000Z | // PX2CURLDownload.inl
//----------------------------------------------------------------------------
inline CURLDownload::DownType CURLDownload::GetDownType () const
{
return mDownType;
}
//----------------------------------------------------------------------------
inline char *CURLDownload::GetDownloadMemory ()
{
... | 32.607143 | 78 | 0.377875 |
a3f810040acbae6197e1dd8a583055526da0625a | 9,241 | cc | C++ | NS3-master/src/mpi/examples/simple-distributed.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 1 | 2021-09-20T07:05:25.000Z | 2021-09-20T07:05:25.000Z | NS3-master/src/mpi/examples/simple-distributed.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | null | null | null | NS3-master/src/mpi/examples/simple-distributed.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 2 | 2021-09-02T08:25:16.000Z | 2022-01-03T08:48:38.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program 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;
*
* This program is distributed in the hope that it will be us... | 33.241007 | 95 | 0.65599 |
a3fbf0da6c0c5b585e941c3a3e00afb8a971fa22 | 2,534 | cpp | C++ | pwiz_tools/examples/hello_ramp.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | pwiz_tools/examples/hello_ramp.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | pwiz_tools/examples/hello_ramp.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | //
// $Id$
//
//
// Original author: Darren Kessner <darren@proteowizard.org>
//
// Copyright 2007 Spielberg Family Center for Applied Proteomics
// Cedars-Sinai Medical Center, Los Angeles, California 90048
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except i... | 28.47191 | 76 | 0.614049 |
4300268d0f5301e77ea9c96dfab712a5cc04d5c6 | 3,084 | cpp | C++ | msv_main/src/msv_main_node.cpp | daconjurer/ros_msv | dbf70083588b869172ac74f187b81166e78c8da1 | [
"BSD-3-Clause"
] | 2 | 2021-07-13T22:02:43.000Z | 2022-03-10T15:46:58.000Z | msv_main/src/msv_main_node.cpp | daconjurer/ros_msv | dbf70083588b869172ac74f187b81166e78c8da1 | [
"BSD-3-Clause"
] | null | null | null | msv_main/src/msv_main_node.cpp | daconjurer/ros_msv | dbf70083588b869172ac74f187b81166e78c8da1 | [
"BSD-3-Clause"
] | null | null | null | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, Robótica de la Mixteca
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follow... | 40.578947 | 89 | 0.652724 |
4300b783305b277b46054bd480c590ebb58db0e2 | 5,015 | hpp | C++ | include/System/Net/NetworkCredential.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/NetworkCredential.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/NetworkCredential.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.Net.ICredentials
#include "System/Net/ICredentials.hpp"
#inclu... | 46.869159 | 222 | 0.700698 |
43011d27af9ae51634ace497ca9a058f29265695 | 329 | hh | C++ | DMSASD/live5552vlc/live555/UsageEnvironment/include/UsageEnvironment_version.hh | kancheng/kan-cs-report-in-2022 | 2a1e1eaa515349d59803c7831a7bd4cbea890a44 | [
"MIT"
] | null | null | null | DMSASD/live5552vlc/live555/UsageEnvironment/include/UsageEnvironment_version.hh | kancheng/kan-cs-report-in-2022 | 2a1e1eaa515349d59803c7831a7bd4cbea890a44 | [
"MIT"
] | null | null | null | DMSASD/live5552vlc/live555/UsageEnvironment/include/UsageEnvironment_version.hh | kancheng/kan-cs-report-in-2022 | 2a1e1eaa515349d59803c7831a7bd4cbea890a44 | [
"MIT"
] | null | null | null | // Version information for the "UsageEnvironment" library
// Copyright (c) 1996-2016 Live Networks, Inc. All rights reserved.
#ifndef _USAGEENVIRONMENT_VERSION_HH
#define _USAGEENVIRONMENT_VERSION_HH
#define USAGEENVIRONMENT_LIBRARY_VERSION_STRING "2016.10.11"
#define USAGEENVIRONMENT_LIBRARY_VERSION_INT 1476144000... | 29.909091 | 68 | 0.835866 |
430245be8e7100d866ddb34000ed7c0890073a00 | 396 | cpp | C++ | bracket.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | bracket.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | null | null | null | bracket.cpp | W-YXN/MyNOIPProjects | 0269a8385a6c8d87511236146f374f39dcdd2b82 | [
"Apache-2.0"
] | 1 | 2019-01-19T01:05:07.000Z | 2019-01-19T01:05:07.000Z | /*
#include <iostream>
#include <cstdlib>
#include <cmath>
#include <algorithm>
#include <stack>
#include <string>
#include <cstring>
using namespace std;
stack<int> st;
int main(){
string s;
cin>>s;
//cout<<"F@ck you";
for(int i=0;i<s.length();i++){
if(s[i]=='(') st.push(i);
if(s[i]==')... | 18 | 38 | 0.527778 |
430397d271dd238409778828ff1bf6fc5a793d68 | 4,759 | cpp | C++ | Runtime/MP1/CSamusFaceReflection.cpp | Jcw87/urde | fb9ea9092ad00facfe957ece282a86c194e9cbda | [
"MIT"
] | 267 | 2016-03-10T21:59:16.000Z | 2021-03-28T18:21:03.000Z | Runtime/MP1/CSamusFaceReflection.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 129 | 2016-03-12T10:17:32.000Z | 2021-04-05T20:45:19.000Z | Runtime/MP1/CSamusFaceReflection.cpp | cobalt2727/metaforce | 3bb05c0ee5dd9b1b8eaa861fc49713aef62c844a | [
"MIT"
] | 31 | 2016-03-20T00:20:11.000Z | 2021-03-10T21:14:11.000Z | #include "Runtime/MP1/CSamusFaceReflection.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/GameGlobalObjects.hpp"
#include "Runtime/Camera/CFirstPersonCamera.hpp"
#include "Runtime/World/CPlayer.hpp"
#include "Runtime/World/CWorld.hpp"
#include "TCastTo.hpp" // Generated file, do not modify include path
... | 44.896226 | 119 | 0.699517 |
4304992ce677ed0a51c999f03119555651941668 | 5,160 | cpp | C++ | AIPDebug/Out-Moc/moc_pic.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | AIPDebug/Out-Moc/moc_pic.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | AIPDebug/Out-Moc/moc_pic.cpp | Bluce-Song/Master-AIP | 1757ab392504d839de89460da17630d268ff3eed | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'pic.h'
**
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************... | 36.595745 | 191 | 0.609496 |
430643a9b2aaca52dc58d619aad3b73e7f160d38 | 1,423 | cpp | C++ | Source/SumoUE4Editor/Private/Factories/SumoNetworkAssetFactory.cpp | iwer/SumoUE4 | 8f2e5281a0b94e46cff97e1e2b535eca0f021dd6 | [
"MIT"
] | 4 | 2021-08-31T09:40:18.000Z | 2022-02-07T02:48:25.000Z | Source/SumoUE4Editor/Private/Factories/SumoNetworkAssetFactory.cpp | iwer/SumoUE4 | 8f2e5281a0b94e46cff97e1e2b535eca0f021dd6 | [
"MIT"
] | null | null | null | Source/SumoUE4Editor/Private/Factories/SumoNetworkAssetFactory.cpp | iwer/SumoUE4 | 8f2e5281a0b94e46cff97e1e2b535eca0f021dd6 | [
"MIT"
] | 2 | 2021-07-18T02:29:21.000Z | 2022-02-07T02:48:28.000Z | // Copyright (c) Iwer Petersen. All rights reserved.
#include "SumoNetworkAssetFactory.h"
#include "SumoNetworkAsset.h"
#include "SumoNetworkParser.h"
USumoNetworkAssetFactory::USumoNetworkAssetFactory( const FObjectInitializer& ObjectInitializer )
: Super(ObjectInitializer)
{
SupportedClass = USumoNetworkAsset:... | 34.707317 | 97 | 0.556571 |
430739accc1c4d49b2f5740770d83ca719f25717 | 15,341 | cpp | C++ | Developments/solidity-develop/libsolidity/interface/StandardCompiler.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | Developments/solidity-develop/libsolidity/interface/StandardCompiler.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | Developments/solidity-develop/libsolidity/interface/StandardCompiler.cpp | jansenbarabona/NFT-Game-Development | 49bf6593925123f0212dac13badd609be3866561 | [
"MIT"
] | null | null | null | /*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... | 30.620758 | 156 | 0.715338 |
4307d5b1c4b676300bda191a618d72ef2f24814d | 4,888 | hpp | C++ | include/amtrs/.inc/g3d-shader/vulkan.textureshader.frag.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | include/amtrs/.inc/g3d-shader/vulkan.textureshader.frag.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | include/amtrs/.inc/g3d-shader/vulkan.textureshader.frag.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
unsigned char vulkan_textureshader_frag_spv[] = {
0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x... | 70.84058 | 73 | 0.649959 |
43080d177f46fb72ce682e4cbc4d4d59f9ab2773 | 12,463 | cpp | C++ | black-scholes-omp/blackScholesAnalyticEngine.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | black-scholes-omp/blackScholesAnalyticEngine.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | black-scholes-omp/blackScholesAnalyticEngine.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | //blackScholesAnalyticEngine.cpp
//Functions for running black scholes using the analytic engine (from Quantlib) on the GPU
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <time.h>
#define NUM_DIFF_SETTINGS 37
//needed for optionInputStruct
#include "blackScholesAnalyticEngine... | 36.229651 | 126 | 0.584209 |
43089c698d09a99f0bacf73df2f963cdc5a0e482 | 10,865 | cpp | C++ | third_party/libassimp/code/X3DImporter_Shape.cpp | tpsiaki/filament | 772af1e8971e65bbff314cf696a9f32da79e3485 | [
"Apache-2.0"
] | 140 | 2016-03-13T03:01:25.000Z | 2022-02-06T09:47:04.000Z | third_party/libassimp/code/X3DImporter_Shape.cpp | tpsiaki/filament | 772af1e8971e65bbff314cf696a9f32da79e3485 | [
"Apache-2.0"
] | 469 | 2016-05-15T07:01:56.000Z | 2020-05-29T23:58:59.000Z | third_party/libassimp/code/X3DImporter_Shape.cpp | tpsiaki/filament | 772af1e8971e65bbff314cf696a9f32da79e3485 | [
"Apache-2.0"
] | 72 | 2016-03-13T10:17:54.000Z | 2020-02-24T05:40:02.000Z | /*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2018, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following condition... | 43.286853 | 158 | 0.743488 |
43092dcd24e5c1b62b7d45b1342ea31908935e4e | 40,625 | cpp | C++ | ROLE/custom/hls/common/src/common.cpp | cloudFPGA/cFp_Zoo | 3aefb12108f99fcfd0d39a8aae97cf87428a6873 | [
"Apache-2.0"
] | 6 | 2021-12-29T10:58:28.000Z | 2022-02-15T06:07:05.000Z | ROLE/custom/hls/common/src/common.cpp | cloudFPGA/cFp_Zoo | 3aefb12108f99fcfd0d39a8aae97cf87428a6873 | [
"Apache-2.0"
] | 2 | 2022-01-17T10:35:55.000Z | 2022-02-04T09:28:47.000Z | ROLE/custom/hls/common/src/common.cpp | cloudFPGA/cFp_Zoo | 3aefb12108f99fcfd0d39a8aae97cf87428a6873 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2016 -- 2022 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:/... | 37.202381 | 166 | 0.552862 |
430e66876b32f5d02868476d2af6e5bb3895cfd5 | 19,921 | cpp | C++ | authkeys.cpp | lool/bootgen | 6bea30996979f085701542d8905966240545cd8e | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | authkeys.cpp | lool/bootgen | 6bea30996979f085701542d8905966240545cd8e | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | authkeys.cpp | lool/bootgen | 6bea30996979f085701542d8905966240545cd8e | [
"Apache-2.0",
"CC0-1.0"
] | null | null | null | /******************************************************************************
* Copyright 2015-2020 Xilinx, 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/li... | 29.468935 | 135 | 0.460268 |
430f062bea3510384e4041aa4f67a63e2376f500 | 31,543 | cpp | C++ | indra/newview/lldrawpoolterrain.cpp | SaladDais/LLUDP-Encryption | 8a426cd0dd154e1a10903e0e6383f4deb2a6098a | [
"ISC"
] | 1 | 2022-01-29T07:10:03.000Z | 2022-01-29T07:10:03.000Z | indra/newview/lldrawpoolterrain.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | null | null | null | indra/newview/lldrawpoolterrain.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | 1 | 2021-10-01T22:22:27.000Z | 2021-10-01T22:22:27.000Z | /**
* @file lldrawpoolterrain.cpp
* @brief LLDrawPoolTerrain class implementation
*
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of t... | 31.861616 | 143 | 0.735314 |
43101b0ae11df976c4f2821f837e019a0c5d5c96 | 8,242 | cpp | C++ | apps/log/src/main_log.cpp | ShmFw/shmfw | d386841f8b1425cbeca8c8a3fc6919bf8d83c38e | [
"BSD-3-Clause"
] | 1 | 2016-02-06T14:57:32.000Z | 2016-02-06T14:57:32.000Z | apps/log/src/main_log.cpp | ShmFw/shmfw | d386841f8b1425cbeca8c8a3fc6919bf8d83c38e | [
"BSD-3-Clause"
] | null | null | null | apps/log/src/main_log.cpp | ShmFw/shmfw | d386841f8b1425cbeca8c8a3fc6919bf8d83c38e | [
"BSD-3-Clause"
] | 1 | 2018-11-07T02:45:24.000Z | 2018-11-07T02:45:24.000Z | /***************************************************************************
* Software License Agreement (BSD License) *
* Copyright (C) 2012 by Markus Bader <markus.bader@tuwien.ac.at> *
* *
* Redistr... | 43.378947 | 180 | 0.575467 |
4310b7e363a524d20b0f5c04306fecfce32c5f94 | 59,237 | cc | C++ | deps/exokit-bindings/glfw/src/glfw.cc | Palmer-JC/exokit | 55ee5a36d97c6bda5d380780632631b13ba0c8d2 | [
"MIT"
] | 547 | 2019-04-07T14:34:01.000Z | 2022-03-25T08:58:50.000Z | deps/exokit-bindings/glfw/src/glfw.cc | TizenTeam/exokit | 7734835a71cf5dff4575aafb2ecd9c9ad339977c | [
"MIT"
] | 514 | 2018-03-22T00:31:38.000Z | 2019-04-06T21:16:45.000Z | deps/exokit-bindings/glfw/src/glfw.cc | TizenTeam/exokit | 7734835a71cf5dff4575aafb2ecd9c9ad339977c | [
"MIT"
] | 120 | 2019-04-15T18:36:25.000Z | 2022-03-03T01:11:34.000Z | #include <glfw/include/glfw.h>
#include <windowsystem.h>
#include <webgl.h>
#include "canvas/src/stb_image.h"
#include <exout>
#if defined(TARGET_OS_MAC) || defined(__linux__)
#define MAIN_THREAD_POLLING 1
#endif
namespace glfw {
thread_local NATIVEwindow *currentWindow = nullptr;
std::mutex windowHandleMutex;
NATI... | 33.074819 | 160 | 0.68258 |
43116fbcfeff073fa6844712bf33c37cbe5fb7b9 | 955 | cpp | C++ | codeforces/B - Equalize Prices/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/B - Equalize Prices/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/B - Equalize Prices/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jun/28/2019 19:22
* solution_verdict: Accepted language: GNU C++14
* run... | 35.37037 | 111 | 0.362304 |
4311f01e8f60a4175d2a28cac58ba646f99f0974 | 1,120 | cpp | C++ | src/tutorial07/Maths.cpp | ksoderbl/thinmatrix-opengl-3d-game-tutorial-cpp-sdl2 | c6d8e79c11a09284ee262fb44439e58cc9d7d906 | [
"MIT"
] | 9 | 2018-07-15T23:09:10.000Z | 2021-05-14T16:45:03.000Z | src/tutorial07/Maths.cpp | ksoderbl/thinmatrix-opengl-3d-game-tutorial-cpp-sdl2 | c6d8e79c11a09284ee262fb44439e58cc9d7d906 | [
"MIT"
] | null | null | null | src/tutorial07/Maths.cpp | ksoderbl/thinmatrix-opengl-3d-game-tutorial-cpp-sdl2 | c6d8e79c11a09284ee262fb44439e58cc9d7d906 | [
"MIT"
] | 5 | 2019-11-24T02:44:42.000Z | 2022-01-07T14:49:33.000Z | //package toolbox
#include "Maths.h"
/*
static void printMatrix(glm::mat4& m, string name)
{
for (int i = 0; i < 4; i++) {
for (int j = 0; j < 4; j++) {
cout << name << "[" << i << "," << j << "] = " << m[j][i] << " ";
}
cout << endl;
}
cout << endl;
}
*/
glm::mat4 createTransformationMatrix(glm::vec3& ... | 23.333333 | 95 | 0.575 |
431a5b8000d10f0b0fd856d9f9bb0d8678094693 | 9,870 | cpp | C++ | src/mongo/db/s/cleanup_orphaned_cmd.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/s/cleanup_orphaned_cmd.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/s/cleanup_orphaned_cmd.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 41.470588 | 100 | 0.664134 |
431aacf087ffb4c503bb5dbc70f411331c928c8b | 4,161 | cc | C++ | third_party/blink/renderer/modules/plugins/dom_mime_type_array.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/plugins/dom_mime_type_array.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/blink/renderer/modules/plugins/dom_mime_type_array.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | /*
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
* Copyright (C) 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; eit... | 31.522727 | 78 | 0.702716 |
431ab68876afb9cf207bcc50cf1ff1f6742aed31 | 895 | cpp | C++ | sycl/test/basic_tests/id_ctad.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 653 | 2018-12-27T15:00:01.000Z | 2022-03-30T11:52:23.000Z | sycl/test/basic_tests/id_ctad.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | sycl/test/basic_tests/id_ctad.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=note,warning
// expected-no-diagnostics
//==--------------- id_ctad.cpp - SYCL id CTAD test ----------------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LI... | 42.619048 | 103 | 0.613408 |
431f78c3ee6a0993d2cc8ef0de3a55972afe13a5 | 5,183 | cpp | C++ | JCDT/src/internal/ast/CompilationUnitDeclaration_def.cpp | kuafuwang/JCDT | 2b009ea887b4816303fed9e6e1dc104a90c67d16 | [
"MIT"
] | 1 | 2021-04-17T01:55:27.000Z | 2021-04-17T01:55:27.000Z | JCDT/src/internal/ast/CompilationUnitDeclaration_def.cpp | kuafuwang/JCDT | 2b009ea887b4816303fed9e6e1dc104a90c67d16 | [
"MIT"
] | null | null | null | JCDT/src/internal/ast/CompilationUnitDeclaration_def.cpp | kuafuwang/JCDT | 2b009ea887b4816303fed9e6e1dc104a90c67d16 | [
"MIT"
] | 1 | 2022-02-18T12:02:00.000Z | 2022-02-18T12:02:00.000Z | #include <JCDT_Lib/internal/ast/AstImportDeclaration.h>
#include <JCDT_Lib/internal/ast/AstAnnotationDeclaration.h>
#include <JCDT_Lib/internal/ast/AstPackageDeclaration.h>
#ifndef AstCompilationUnit_def_INCLUDED
#define AstCompilationUnit_def_INCLUDED
#include "JCDT_Lib/internal/ast/CompilationUnitDeclaration.h"
#incl... | 31.412121 | 84 | 0.692456 |
431f84898cb33403f707b0327838b7da410370a8 | 323 | cpp | C++ | code/ch_2-TECHNIQUES/01-compile_time_assertions/02-compile_time_assertion.cpp | ordinary-developer/book_modern_cpp_design_a_alexandrescu | 7c40a13309d280443668b0c20ae1572e3dff2989 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | books/techno/cpp/_upper-intermediate/modern_cpp_design_a_alexandrescu/code/ch_2-TECHNIQUES/01-compile_time_assertions/02-compile_time_assertion.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | books/techno/cpp/_upper-intermediate/modern_cpp_design_a_alexandrescu/code/ch_2-TECHNIQUES/01-compile_time_assertions/02-compile_time_assertion.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | #define STATIC_CHECK(expr) { char unamed[(expr) ? 1 : 0]; }
template <class To, class From>
To safe_reinterpret_cast(From from)
{
STATIC_CHECK(sizeof(From) <= sizeof(To));
return reinterpret_cast<To>(from);
}
int main() {
int intValue = 5;
char c = safe_reinterpret_cast<char>(intValue);
return 0;... | 20.1875 | 59 | 0.665635 |
4323ae1e55c975972ce0e40f3dd94e4413e2ae15 | 11,278 | cpp | C++ | FEM_2D_Plane_Stress.cpp | JoshuaSimon/2D-FEM-Solver | 9f3c19b760350338a33445e9817e1c077f4718d5 | [
"MIT"
] | 3 | 2019-03-27T12:45:51.000Z | 2019-08-25T09:41:56.000Z | FEM_2D_Plane_Stress.cpp | JoshuaSimon/2D-FEM-Solver | 9f3c19b760350338a33445e9817e1c077f4718d5 | [
"MIT"
] | null | null | null | FEM_2D_Plane_Stress.cpp | JoshuaSimon/2D-FEM-Solver | 9f3c19b760350338a33445e9817e1c077f4718d5 | [
"MIT"
] | null | null | null | // FEM_2D_Plane_Stress.cpp (Main)
#include "pch.h"
#include "FEM_Input.h"
#include "FEM_GNUPlot.h"
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
//Element data type
struct Element
{
void CalculateStiffnessMatrix(const Eigen::M... | 32.976608 | 119 | 0.628835 |
43260e5436187a85b10d6dd9b66d11ea9be07284 | 315 | cpp | C++ | tests/translation/test_extM2_wrap_bind.cpp | mingodad/nullc | e38246dbf41acd199c7d23b928633bf16eddc24f | [
"MIT"
] | 143 | 2015-03-16T20:38:09.000Z | 2022-03-10T13:11:13.000Z | tests/translation/test_extM2_wrap_bind.cpp | mingodad/nullc | e38246dbf41acd199c7d23b928633bf16eddc24f | [
"MIT"
] | 17 | 2015-03-14T14:17:23.000Z | 2022-01-06T10:55:57.000Z | tests/translation/test_extM2_wrap_bind.cpp | mingodad/nullc | e38246dbf41acd199c7d23b928633bf16eddc24f | [
"MIT"
] | 9 | 2015-03-15T02:00:13.000Z | 2022-01-06T10:27:51.000Z | #include "runtime.h"
#include <math.h>
int Call_int_ref_double_double_double_double_int_(double x1, double x2, double x3, double x4, int y, void* __context)
{
#define fpart(x) (x - floor(x))
double xgap = fpart(x1 + 0.5);
return int(xgap * 10.0) == 1 && y && x2 == 2.0 && x3 == 3.0 && x4 == 4.0;
#undef fpart
}
| 26.25 | 117 | 0.64127 |
4327c83bf405dcaa1f425f58c87aac4ecda0510b | 30 | cpp | C++ | src/cpp/utils/GPUBasedProperty.cpp | Yukihito/alcube | 8aac4e2dd2cb3871b672d92902cf15150c430a56 | [
"MIT"
] | null | null | null | src/cpp/utils/GPUBasedProperty.cpp | Yukihito/alcube | 8aac4e2dd2cb3871b672d92902cf15150c430a56 | [
"MIT"
] | null | null | null | src/cpp/utils/GPUBasedProperty.cpp | Yukihito/alcube | 8aac4e2dd2cb3871b672d92902cf15150c430a56 | [
"MIT"
] | null | null | null | #include "GPUBasedProperty.h"
| 15 | 29 | 0.8 |
43284a7fd3c9e1f4ccdf2ccee67e81a16209caba | 1,971 | cpp | C++ | Kernel/src/Arch/x86_64/Keyboard.cpp | adi-g15/LemonOS | 47a15ecc0efe47eeebde0b63d668fb70c9e22b57 | [
"BSD-2-Clause"
] | null | null | null | Kernel/src/Arch/x86_64/Keyboard.cpp | adi-g15/LemonOS | 47a15ecc0efe47eeebde0b63d668fb70c9e22b57 | [
"BSD-2-Clause"
] | null | null | null | Kernel/src/Arch/x86_64/Keyboard.cpp | adi-g15/LemonOS | 47a15ecc0efe47eeebde0b63d668fb70c9e22b57 | [
"BSD-2-Clause"
] | null | null | null | #include <Scheduler.h>
#include <System.h>
#include <IDT.h>
#include <Logging.h>
#include <APIC.h>
#include <Fs/Filesystem.h>
#include <Device.h>
#define KEY_QUEUE_SIZE 256
namespace Keyboard{
uint8_t keyQueue[KEY_QUEUE_SIZE];
unsigned short keyQueueEnd = 0;
unsigned short keyQueueStart = 0;
unsigned short ke... | 21.423913 | 66 | 0.572806 |
4328e957fb7479b0a77f7dcadab32172d0f6d6e1 | 4,136 | hpp | C++ | include/boost/hana/detail/variadic/foldr1.hpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | 2 | 2015-05-07T14:29:13.000Z | 2015-07-04T10:59:46.000Z | include/boost/hana/detail/variadic/foldr1.hpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | null | null | null | include/boost/hana/detail/variadic/foldr1.hpp | rbock/hana | 2b76377f91a5ebe037dea444e4eaabba6498d3a8 | [
"BSL-1.0"
] | null | null | null | /*!
@file
Defines `boost::hana::detail::variadic::foldr1`.
@copyright Louis Dionne 2014
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_HANA_DETAIL_VARIADIC_FOLDR1_HPP
#define BOOST_HANA_DETAIL_VARIADIC_FOLDR1_... | 34.181818 | 105 | 0.626692 |
43292ae2fa0c40ac72238dbd4ef74774a4d4a9e1 | 2,945 | cc | C++ | src/atlas/mesh/actions/ExtendNodesGlobal.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 67 | 2018-03-01T06:56:49.000Z | 2022-03-08T18:44:47.000Z | src/atlas/mesh/actions/ExtendNodesGlobal.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 93 | 2018-12-07T17:38:04.000Z | 2022-03-31T10:04:51.000Z | src/atlas/mesh/actions/ExtendNodesGlobal.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 33 | 2018-02-28T17:06:19.000Z | 2022-01-20T12:12:27.000Z | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 32.362637 | 91 | 0.64618 |
43296c025e2beb4e20236c52797952fbcbe82bcf | 7,251 | cc | C++ | tensorflow/cc/examples/mcts_test.cc | geligeli/tensorflow | 9b13fff8c91a1294e8a4d0d1699cb55e0306122e | [
"Apache-2.0"
] | null | null | null | tensorflow/cc/examples/mcts_test.cc | geligeli/tensorflow | 9b13fff8c91a1294e8a4d0d1699cb55e0306122e | [
"Apache-2.0"
] | null | null | null | tensorflow/cc/examples/mcts_test.cc | geligeli/tensorflow | 9b13fff8c91a1294e8a4d0d1699cb55e0306122e | [
"Apache-2.0"
] | null | null | null | #include "tensorflow/cc/examples/mcts.h"
#include <boost/coroutine2/coroutine.hpp>
#include <boost/fiber/all.hpp>
#include <chrono>
#include <list>
#include <thread>
#include "tensorflow/cc/saved_model/loader.h"
#include "tensorflow/cc/saved_model/tag_constants.h"
#include "tensorflow/core/platform/test.h"
namespace... | 27.781609 | 80 | 0.57399 |
432a0f0749f9e4afe311263390d9560869252334 | 3,011 | cpp | C++ | 22-app-analysis/projects/final/app/src/main/cpp/user_processing_jni.cpp | tshd78/adva-materials | 75a0b38c0628334c890006943db05ed1e9aa68f6 | [
"Apache-2.0"
] | 125 | 2020-11-08T20:03:16.000Z | 2022-03-29T12:06:47.000Z | 22-app-analysis/projects/final/app/src/main/cpp/user_processing_jni.cpp | tshd78/adva-materials | 75a0b38c0628334c890006943db05ed1e9aa68f6 | [
"Apache-2.0"
] | 5 | 2021-02-28T17:46:25.000Z | 2022-01-05T17:12:05.000Z | 22-app-analysis/projects/final/app/src/main/cpp/user_processing_jni.cpp | tshd78/adva-materials | 75a0b38c0628334c890006943db05ed1e9aa68f6 | [
"Apache-2.0"
] | 47 | 2021-03-25T22:49:04.000Z | 2022-03-12T12:57:45.000Z | /*
* Copyright (c) 2020 Razeware LLC
*
* 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, publis... | 30.72449 | 101 | 0.741614 |
432a9c659c24398a1efdce4a1b0c68eb051ab4a0 | 23,161 | cpp | C++ | libsnark/prover_reference_functions.cpp | drewstaylor/snark-challenge-prover-reference | 87cfa774e920fc832cd78bd97e0de3c6daf52b08 | [
"MIT"
] | null | null | null | libsnark/prover_reference_functions.cpp | drewstaylor/snark-challenge-prover-reference | 87cfa774e920fc832cd78bd97e0de3c6daf52b08 | [
"MIT"
] | null | null | null | libsnark/prover_reference_functions.cpp | drewstaylor/snark-challenge-prover-reference | 87cfa774e920fc832cd78bd97e0de3c6daf52b08 | [
"MIT"
] | 1 | 2019-07-04T15:28:07.000Z | 2019-07-04T15:28:07.000Z | #include <cassert>
#include <cstdio>
#include <fstream>
#include <libff/algebra/curves/mnt753/mnt4753/mnt4753_pp.hpp>
#include <libff/algebra/curves/mnt753/mnt6753/mnt6753_pp.hpp>
#include <libff/algebra/scalar_multiplication/multiexp.hpp>
#include <libff/common/profiling.hpp>
#include <libff/common/rng.hpp>
#include <... | 34.933635 | 86 | 0.669574 |
432ac8a7458ae9d20e6c64a01180ecb8d6d9d719 | 1,271 | cpp | C++ | OLD/Orario/orario.cpp | Maxelweb/PaO | 7c9cb18366ed6a4730519e4275e4719ec9bf0cd2 | [
"MIT"
] | 1 | 2020-02-01T10:15:31.000Z | 2020-02-01T10:15:31.000Z | OLD/Orario/orario.cpp | Maxelweb/PaO | 7c9cb18366ed6a4730519e4275e4719ec9bf0cd2 | [
"MIT"
] | null | null | null | OLD/Orario/orario.cpp | Maxelweb/PaO | 7c9cb18366ed6a4730519e4275e4719ec9bf0cd2 | [
"MIT"
] | null | null | null |
// INTERFACE / DEFINITION
#include "orario.h"
// ==== Costruttori
orario::orario(){
sec = 0;
}
orario::orario(int o){
if(o<0 || o>23) sec = 0; // Controllo di sanità
else sec = o*3600;
}
orario::orario(int o, int m){
if(o<0 || o>23 || m < 0 || m > 59) sec = 0; // "
else sec = o*3600 + m*60;
}
orario::orari... | 17.410959 | 69 | 0.573564 |
432b1f628ff16b9334a774fc930ae615f341811f | 405 | cpp | C++ | Dataset/Leetcode/test/70/150.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/70/150.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/test/70/150.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(int n) {
if (n == 1) {
return 1;
}
if (n == 2){
return 2;
}
int m1 = 1, m2 = 2;
int i = 3;
int sum = 0;
while (i <= n) {
sum = m1 + m2;
m1 =... | 15 | 27 | 0.259259 |
432e5c2df7b0ea0380037b8c7691972f3e4e8c52 | 2,611 | cpp | C++ | higan/target-bsnes/settings/hotkeys.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 10 | 2019-12-19T01:19:41.000Z | 2021-02-18T16:30:29.000Z | higan/target-bsnes/settings/hotkeys.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | higan/target-bsnes/settings/hotkeys.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | auto HotkeySettings::create() -> void {
setIcon(Icon::Device::Keyboard);
setText("Hotkeys");
layout.setPadding(5);
mappingList.setBatchable();
mappingList.setHeadered();
mappingList.onActivate([&] {
if(assignButton.enabled()) assignButton.doActivate();
});
mappingList.onChange([&] {
auto batche... | 30.717647 | 133 | 0.692838 |
432ebabcf62086404963b5b3d0bcd883448fcd26 | 5,214 | hpp | C++ | PathTracer/src/GDIWindow.hpp | Guarneri1743/PathTracer | 2eb4297ddbc425771dde5575fc67c054395b240d | [
"MIT"
] | null | null | null | PathTracer/src/GDIWindow.hpp | Guarneri1743/PathTracer | 2eb4297ddbc425771dde5575fc67c054395b240d | [
"MIT"
] | null | null | null | PathTracer/src/GDIWindow.hpp | Guarneri1743/PathTracer | 2eb4297ddbc425771dde5575fc67c054395b240d | [
"MIT"
] | null | null | null | #ifndef _GDI_WINDOW_
#define _GDI_WINDOW_
namespace Guarneri
{
static LRESULT event_callback(HWND, UINT, WPARAM, LPARAM);
static bool closed;
class GDIWindow
{
public:
void* framebuffer;
int width;
int height;
float aspect;
LPCSTR title;
LPCSTR name;
bool initialized;
int buffer_size;
HWND wind... | 25.684729 | 162 | 0.71097 |
432f3d25a1dc81fab25c7e663e92e05d21de5d10 | 1,006 | cpp | C++ | mIon/Engine.cpp | Svensational/mIon | e72aec811a60592b9e7f5bf456bede83fc8ef509 | [
"MIT"
] | null | null | null | mIon/Engine.cpp | Svensational/mIon | e72aec811a60592b9e7f5bf456bede83fc8ef509 | [
"MIT"
] | null | null | null | mIon/Engine.cpp | Svensational/mIon | e72aec811a60592b9e7f5bf456bede83fc8ef509 | [
"MIT"
] | null | null | null | #include "Engine.h"
#include <thread>
namespace mion
{
Engine * Engine::s_pInstance = nullptr;
Engine::Engine() :
m_bRunning( false ),
m_pWindow( nullptr )
{
}
Engine::~Engine()
{
}
Engine * const Engine::getInstance()
{
return s_pInstance;
}
void Engine::renderLoop()
{
const std::chrono::high_res... | 18.981132 | 113 | 0.633201 |
4330e4c3e9d1c8ba9459d26ad4bd280fb84c872f | 1,688 | cpp | C++ | src/mugen/mugen_exception.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | 1 | 2021-06-16T15:25:47.000Z | 2021-06-16T15:25:47.000Z | src/mugen/mugen_exception.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | src/mugen/mugen_exception.cpp | marstau/shinsango | d9468787ae8e18fa478f936770d88e9bf93c11c0 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <sstream>
#include "exception.h"
MugenException::MugenException():
Exception::Base("", -1),
reason("unspecified"),
where("?"),
line(0){
}
MugenException::MugenException(const std::string & reason, const std::string & where, int line):
Exception::Base(where, line),
reason(reason),
where(whe... | 23.444444 | 122 | 0.737559 |
43312442df6f0bbff4cb5241d5bf75a40851a09a | 5,420 | cpp | C++ | Examples/Graph.cpp | haskellstudio/belle_old | a5ce86954b61dbacde1d1bf24472d95246be45e5 | [
"BSD-2-Clause"
] | null | null | null | Examples/Graph.cpp | haskellstudio/belle_old | a5ce86954b61dbacde1d1bf24472d95246be45e5 | [
"BSD-2-Clause"
] | null | null | null | Examples/Graph.cpp | haskellstudio/belle_old | a5ce86954b61dbacde1d1bf24472d95246be45e5 | [
"BSD-2-Clause"
] | null | null | null | /*
==============================================================================
Copyright 2007-2013 William Andrew Burnson. 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. Redistribut... | 40.75188 | 80 | 0.670295 |
4331717305b8ac1f93dfea037084fb024e9e1bc2 | 1,794 | cpp | C++ | cpp/rom_field_F384PM.cpp | zerjioang/core | ae092583a4b333dd975438a720da7cccfcd27707 | [
"Apache-2.0"
] | 133 | 2019-09-04T14:42:38.000Z | 2022-03-24T12:21:32.000Z | cpp/rom_field_F384PM.cpp | zerjioang/core | ae092583a4b333dd975438a720da7cccfcd27707 | [
"Apache-2.0"
] | 40 | 2019-10-02T15:01:38.000Z | 2022-03-16T13:35:43.000Z | cpp/rom_field_F384PM.cpp | zerjioang/core | ae092583a4b333dd975438a720da7cccfcd27707 | [
"Apache-2.0"
] | 53 | 2019-09-09T18:50:20.000Z | 2022-03-22T07:17:08.000Z | /*
* Copyright (c) 2012-2020 MIRACL UK Ltd.
*
* This file is part of MIRACL Core
* (see https://github.com/miracl/core).
*
* 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... | 32.035714 | 169 | 0.780379 |
4332a04f349395c20e332b3a784516a73c4a3acf | 5,177 | cpp | C++ | source/System/CPUInfo/CPUInfo_Private.cpp | Praxinos/ULIS3 | 98eb48293fdd3b45fcfe4b659d471572100d1623 | [
"RSA-MD"
] | 30 | 2020-09-16T17:39:36.000Z | 2022-02-17T08:32:53.000Z | source/System/CPUInfo/CPUInfo_Private.cpp | Praxinos/ULIS3 | 98eb48293fdd3b45fcfe4b659d471572100d1623 | [
"RSA-MD"
] | 7 | 2020-11-23T14:37:15.000Z | 2022-01-17T11:35:32.000Z | source/System/CPUInfo/CPUInfo_Private.cpp | Praxinos/ULIS3 | 98eb48293fdd3b45fcfe4b659d471572100d1623 | [
"RSA-MD"
] | 5 | 2020-09-17T00:39:14.000Z | 2021-08-30T16:14:07.000Z | /*
* kaze
*__________________
* @file CPUInfo_Private.cpp
* @author Clement Berthaud
* @brief This file provides the definition for the FCPUInfo_Private tools.
* @copyright Copyright 2021 Clement Berthaud.
* @license Please refer to LICENSE.md
*/
#include "System/CPUInfo/CPUInfo_Private.h... | 53.927083 | 108 | 0.565965 |
43354a170b1c217ee5bb68cebe6fab6e2b7b871c | 584 | cpp | C++ | CC/CF/UniqueNumber.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | 1 | 2020-10-12T08:03:20.000Z | 2020-10-12T08:03:20.000Z | CC/CF/UniqueNumber.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | CC/CF/UniqueNumber.cpp | MrRobo24/Codes | 9513f42b61e898577123d5b996e43ba7a067a019 | [
"MIT"
] | null | null | null | //AC
#include <bits/stdc++.h>
#define LLI long long
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
LLI t;
cin >> t;
while (t--) {
LLI x;
cin >> x;
if (x > 45) {
cout << -1 << "\n";
continue;
}
s... | 14.6 | 40 | 0.333904 |
433616b4fd14a9773fcbc76963fa29ec69c08b56 | 836 | cpp | C++ | storm/dp_knapsack_bottom-up.cpp | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | storm/dp_knapsack_bottom-up.cpp | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | storm/dp_knapsack_bottom-up.cpp | italo-batista/problems-solving | f83ad34f0abebd52925c4020635556f20743ba06 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <cstdlib>
#include <algorithm>
#define MAX 4000
using namespace std;
int n, s, peso[MAX], valor[MAX], dp[MAX][MAX];
int main() {
memset(dp, -1, sizeof(dp)); // dp[all i] = -1
cin >> s >> n;
for (int i=1; i<=n; i++) {
... | 15.481481 | 60 | 0.503589 |
433665e9296f999511098d4171f36eb6d3552a6e | 38,083 | cpp | C++ | src/asdxShader.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | src/asdxShader.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | src/asdxShader.cpp | ProjectAsura/asdx11 | 67c3d4129f3e6d32e66c64ee9354d873f99d0eaf | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// File : asdxShader.h
// Desc : Shader Set Module.
// Copyright(c) Project Asura. ALl right reserved.
//-----------------------------------------------------------------------------
//-----------------------------------------------... | 30.712097 | 102 | 0.401675 |
43369c1a9cdd4d4bdffa3902ad50618e8a5962ee | 1,182 | cpp | C++ | cmps109/asg4/debug.cpp | isaiah-solo/ucsc-classes | a3e834ee26822827f7ea4977707ecf7e42e1b0c9 | [
"MIT"
] | 1 | 2018-05-11T19:14:47.000Z | 2018-05-11T19:14:47.000Z | cmps109/asg4/debug.cpp | isaiah-solo/ucsc-classes | a3e834ee26822827f7ea4977707ecf7e42e1b0c9 | [
"MIT"
] | null | null | null | cmps109/asg4/debug.cpp | isaiah-solo/ucsc-classes | a3e834ee26822827f7ea4977707ecf7e42e1b0c9 | [
"MIT"
] | 3 | 2019-04-19T03:38:47.000Z | 2019-06-02T20:59:21.000Z | // $Id: debug.cpp,v 1.2 2014-05-08 18:07:04-07 - - $
#include <cassert>
#include <climits>
#include <iostream>
#include <vector>
using namespace std;
#include "debug.h"
#include "util.h"
vector<bool> debugflags::flags (UCHAR_MAX + 1, false);
void debugflags::setflags (const string& initflags) {
for (const char f... | 25.695652 | 67 | 0.580372 |
4337b08acc7c11d11f0080fecfdd8a9033effeee | 50,009 | cxx | C++ | src/decomposition/path/path.cxx | huttered40/critter | 50609be057ff62b8f9f8018355736749bc83cfc9 | [
"BSD-2-Clause"
] | 1 | 2021-09-12T01:44:43.000Z | 2021-09-12T01:44:43.000Z | src/decomposition/path/path.cxx | huttered40/critter | 50609be057ff62b8f9f8018355736749bc83cfc9 | [
"BSD-2-Clause"
] | 20 | 2020-02-29T03:12:33.000Z | 2020-12-21T17:43:34.000Z | src/decomposition/path/path.cxx | huttered40/critter | 50609be057ff62b8f9f8018355736749bc83cfc9 | [
"BSD-2-Clause"
] | 1 | 2020-07-21T11:52:54.000Z | 2020-07-21T11:52:54.000Z | #include "path.h"
#include "../container/symbol_tracker.h"
#include "../../discretization/util/util.h"
#include "../util/util.h"
#include "../../util/util.h"
namespace critter{
namespace internal{
namespace decomposition{
void path::exchange_communicators(MPI_Comm oldcomm, MPI_Comm newcomm){
// Accumulate the compu... | 51.55567 | 175 | 0.707793 |