hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46192fd5c256d3617f496bcb3fad21959dbb54f8 | 1,769 | cpp | C++ | vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playtree.cpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playtree.cpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/modules/gui/skins2/commands/cmd_playtree.cpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | /*****************************************************************************
* cmd_playtree.cpp
*****************************************************************************
* Copyright (C) 2005 the VideoLAN team
* $Id: 626ba09b03156290eba9bc3bb654ec031a8f75de $
*
* Authors: Antoine Cellerier <dionoea@videolan.... | 36.854167 | 79 | 0.616167 | Brook1711 |
461a10273aba9fcf0e0d3aa55bec17e788550bae | 271 | cpp | C++ | Test/run-test.cpp | As-12/Header-only-skeleton | 17603f3ef8c1808000213d8f12a7f6271c15de25 | [
"MIT"
] | null | null | null | Test/run-test.cpp | As-12/Header-only-skeleton | 17603f3ef8c1808000213d8f12a7f6271c15de25 | [
"MIT"
] | null | null | null | Test/run-test.cpp | As-12/Header-only-skeleton | 17603f3ef8c1808000213d8f12a7f6271c15de25 | [
"MIT"
] | null | null | null | // AllTests.cpp
#include <gtest/gtest.h>
#include <Library/Framework.hpp>
TEST(SubtractTest1, SubtractTwoNumbers)
{
Library::print();
EXPECT_EQ(5, 5);
}
int main(int argc, char **argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 15.055556 | 41 | 0.675277 | As-12 |
461aa61039c0c41d53644a5192d06be4b61e2968 | 210 | cpp | C++ | 266. Palindrome Permutation.cpp | rajeev-ranjan-au6/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | 3 | 2020-12-30T00:29:59.000Z | 2021-01-24T22:43:04.000Z | 266. Palindrome Permutation.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | 266. Palindrome Permutation.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | class Solution {
public:
bool canPermutePalindrome(string s) {
unordered_map<char, int>m;
int odd = 0;
for(auto c: s) (m[c]++ % 2) ? odd-- : odd++;
return odd <= 1;
}
};
| 21 | 52 | 0.504762 | rajeev-ranjan-au6 |
462041eb825084ccf615b4abf767bd7c7a37acd1 | 520 | cpp | C++ | Engine/Source/Core/Types/Time.cpp | SparkyPotato/Ignis | 40cf87c03db7c07d3a05ab2c30bbe4fe3b16156c | [
"MIT"
] | 1 | 2021-02-27T15:42:47.000Z | 2021-02-27T15:42:47.000Z | Engine/Source/Core/Types/Time.cpp | SparkyPotato/Ignis | 40cf87c03db7c07d3a05ab2c30bbe4fe3b16156c | [
"MIT"
] | null | null | null | Engine/Source/Core/Types/Time.cpp | SparkyPotato/Ignis | 40cf87c03db7c07d3a05ab2c30bbe4fe3b16156c | [
"MIT"
] | null | null | null | /// Copyright (c) 2021 Shaye Garg.
#include "Core/Types/Time.h"
#include "Core/Platform/Platform.h"
#ifdef PLATFORM_WINDOWS
# include <Windows.h>
#endif
namespace Ignis {
#ifdef PLATFORM_WINDOWS
Time Time::Now()
{
SYSTEMTIME time;
GetLocalTime(&time);
return Time{ .Year = time.wYear,
.Month = u8(time.wMonth)... | 13.684211 | 38 | 0.667308 | SparkyPotato |
46222bf791ebd8f20bf205a35de1fc7d309e10da | 1,485 | cpp | C++ | src/VKHelpers/Command/bindings.cpp | hiradyazdan/sdf-ray4d-engine | d71385e23cb630c54ff620ba1dff287ad90861b8 | [
"MIT"
] | 2 | 2021-09-28T22:15:44.000Z | 2022-02-03T22:25:46.000Z | src/VKHelpers/Command/bindings.cpp | hiradyazdan/sdf-ray4d-engine | d71385e23cb630c54ff620ba1dff287ad90861b8 | [
"MIT"
] | null | null | null | src/VKHelpers/Command/bindings.cpp | hiradyazdan/sdf-ray4d-engine | d71385e23cb630c54ff620ba1dff287ad90861b8 | [
"MIT"
] | null | null | null | /*****************************************************
* Partial Class: CommandHelper
* Members: Command Buffer Bindings/Overloads (Private)
*****************************************************/
#include "VKHelpers/Command.hpp"
using namespace sdfRay4d::vkHelpers;
/**
*
* @param[in] _material
*/
void CommandH... | 25.169492 | 97 | 0.648485 | hiradyazdan |
4624a63178202e6ae40f52aa49966a55347aa1d5 | 389 | cpp | C++ | src/lib/output/buzzer.cpp | aescariom/In3 | 0e6adcca3492bc69912170bf9a39719a407873c4 | [
"MIT"
] | 3 | 2016-09-23T18:11:32.000Z | 2021-05-31T20:50:47.000Z | src/lib/output/buzzer.cpp | aescariom/In3 | 0e6adcca3492bc69912170bf9a39719a407873c4 | [
"MIT"
] | 1 | 2016-09-23T18:14:32.000Z | 2016-10-08T21:11:14.000Z | src/lib/output/buzzer.cpp | aescariom/In3 | 0e6adcca3492bc69912170bf9a39719a407873c4 | [
"MIT"
] | 1 | 2017-03-24T19:30:43.000Z | 2017-03-24T19:30:43.000Z | #include "buzzer.h"
Buzzer::Buzzer(volatile uint8_t *port, volatile uint8_t *dir, uint8_t mask){
this->port = port;
this->dir = dir;
this->mask = mask;
}
void Buzzer::init(){
*(this->dir) |= 1 << this->mask; // output pin
}
void Buzzer::beep(){
this->toggle();
_delay_ms(_O_BUZZER_DELAY_MS);
this->toggle();... | 17.681818 | 76 | 0.619537 | aescariom |
4624bd768a1ee740003c4667e258e09558e94c5b | 4,891 | cpp | C++ | Math/Generating Function of a Linear Recurrence.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 1,639 | 2021-09-15T09:12:06.000Z | 2022-03-31T22:58:57.000Z | Math/Generating Function of a Linear Recurrence.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 16 | 2022-01-15T17:50:08.000Z | 2022-01-28T12:55:21.000Z | Math/Generating Function of a Linear Recurrence.cpp | bazzyadb/all-code | cf3039641b5aa84b1c5b184a95d69bd4091974c9 | [
"MIT"
] | 444 | 2021-09-15T09:17:41.000Z | 2022-03-29T18:21:46.000Z | #include<bits/stdc++.h>
using namespace std;
const int N = 3e3 + 9, mod = 998244353;
template <int32_t MOD>
struct modint {
int32_t value;
modint() = default;
modint(int32_t value_) : value(value_) {}
inline modint<MOD> operator + (modint<MOD> other) const { int32_t c = this->value + other.v... | 35.963235 | 172 | 0.512983 | bazzyadb |
462964858587a0c330f6bd85d4f57773591d9a22 | 465 | cc | C++ | modules/print_binary_tree.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-07-22T04:52:10.000Z | 2018-07-22T04:52:10.000Z | modules/print_binary_tree.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | 1 | 2018-08-11T13:29:59.000Z | 2018-08-11T13:31:28.000Z | modules/print_binary_tree.cc | xsthunder/a | 3c30f31c59030d70462b71ef28c5eee19c6eddd6 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<iostream>
using namespace std;
template <typename T>
void pT(T *A, int d){//d for depth
int sum=0;
cout<<"------tree starts\n";
for(int i=0;i<d;i++){
cout<<i+1<<':';
for(int j=0;j<1<<i;j++){
cout<<*(A+sum++)<<' ';
}
cout<<endl;
}
cout<<"------tree ends\n";
}
template <typename ... | 20.217391 | 87 | 0.535484 | xsthunder |
462cd92916a78d6d435ad71220631e0b3c63cc15 | 2,623 | cpp | C++ | plugins/goose/src/sub/QualityTemplatesConfigReader.cpp | openenergysolutions/openfmb.adapters | 3c95b1c460a8967190bdd9ae16677a4e2a5d9861 | [
"Apache-2.0"
] | 1 | 2021-08-20T12:14:11.000Z | 2021-08-20T12:14:11.000Z | plugins/goose/src/sub/QualityTemplatesConfigReader.cpp | openenergysolutions/openfmb.adapters | 3c95b1c460a8967190bdd9ae16677a4e2a5d9861 | [
"Apache-2.0"
] | 3 | 2021-06-16T19:25:23.000Z | 2021-09-02T14:39:10.000Z | plugins/goose/src/sub/QualityTemplatesConfigReader.cpp | openenergysolutions/openfmb.adapters | 3c95b1c460a8967190bdd9ae16677a4e2a5d9861 | [
"Apache-2.0"
] | null | null | null | // SPDX-FileCopyrightText: 2021 Open Energy Solutions Inc
//
// SPDX-License-Identifier: Apache-2.0
#include "sub/QualityTemplatesConfigReader.h"
#include "ConfigStrings.h"
#include <adapter-util/util/YAMLUtil.h>
#include <adapter-util/config/YAMLGetters.h>
namespace adapter {
namespace goose {
QualityTemplatesConf... | 46.839286 | 180 | 0.704918 | openenergysolutions |
462ddf2182fe6a992adb577c17852966085f2cb9 | 12,751 | cpp | C++ | source/dynv/Xml.cpp | ericonr/gpick | ff0a3c0c797d3d06d1b8ab257cb2e9dcca389908 | [
"BSD-3-Clause"
] | 311 | 2015-03-26T18:38:51.000Z | 2022-03-23T07:39:30.000Z | source/dynv/Xml.cpp | ericonr/gpick | ff0a3c0c797d3d06d1b8ab257cb2e9dcca389908 | [
"BSD-3-Clause"
] | 86 | 2015-03-27T06:05:57.000Z | 2022-01-07T23:04:30.000Z | source/dynv/Xml.cpp | ericonr/gpick | ff0a3c0c797d3d06d1b8ab257cb2e9dcca389908 | [
"BSD-3-Clause"
] | 42 | 2015-03-25T16:40:26.000Z | 2022-02-23T22:36:47.000Z | /*
* Copyright (c) 2009-2020, Albertas Vyšniauskas
* 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... | 29.861827 | 211 | 0.68426 | ericonr |
462e31050795f341ff50315b2347c58bfbb784e9 | 83 | cpp | C++ | TP3_Prog_SpaceSim/Main.cpp | Arganancer/S3_TP3_Prog_SpaceSim | 43364f6613ad690f81c94f8a027ee3708fa58d3d | [
"MIT"
] | null | null | null | TP3_Prog_SpaceSim/Main.cpp | Arganancer/S3_TP3_Prog_SpaceSim | 43364f6613ad690f81c94f8a027ee3708fa58d3d | [
"MIT"
] | null | null | null | TP3_Prog_SpaceSim/Main.cpp | Arganancer/S3_TP3_Prog_SpaceSim | 43364f6613ad690f81c94f8a027ee3708fa58d3d | [
"MIT"
] | null | null | null | #include "vld.h"
#include "game.h"
int main()
{
game game;
return game.run();
} | 9.222222 | 19 | 0.614458 | Arganancer |
463015586ebed441a243c541d8c89e57e01a6cc8 | 13,660 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/ProfileManager.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/ProfileManager.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/app/ProfileManager.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 29.06383 | 93 | 0.630161 | jingcao80 |
4632501d59bf7b852fa5c135d97358d93bcdaa52 | 464 | cpp | C++ | storage/src/vespa/storage/distributor/operations/external/newest_replica.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,054 | 2017-08-11T07:58:38.000Z | 2022-03-31T22:32:15.000Z | storage/src/vespa/storage/distributor/operations/external/newest_replica.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,854 | 2017-08-10T20:19:25.000Z | 2022-03-31T19:04:23.000Z | storage/src/vespa/storage/distributor/operations/external/newest_replica.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 541 | 2017-08-10T18:51:18.000Z | 2022-03-11T03:18:56.000Z | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "newest_replica.h"
#include <ostream>
namespace storage::distributor {
std::ostream& operator<<(std::ostream& os, const NewestReplica& nr) {
os << "NewestReplica(timestamp " << nr.timestamp
<< ... | 27.294118 | 104 | 0.631466 | Anlon-Burke |
4634737aca597d284dca13cf9574464bab7dc1ff | 20 | cpp | C++ | src/Game/zScript.cpp | DarkRTA/bfbbdecomp | e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e | [
"OLDAP-2.7"
] | null | null | null | src/Game/zScript.cpp | DarkRTA/bfbbdecomp | e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e | [
"OLDAP-2.7"
] | 6 | 2022-01-16T05:29:01.000Z | 2022-01-18T01:10:29.000Z | src/Game/zScript.cpp | DarkRTA/bfbbdecomp | e2105e94b8da26f6e6e2dfcf1f004aaaeed9799e | [
"OLDAP-2.7"
] | 1 | 2022-01-16T00:04:23.000Z | 2022-01-16T00:04:23.000Z | #include "zScript.h" | 20 | 20 | 0.75 | DarkRTA |
463b70decfcf756e76dc1f4d982ab90ff08f6feb | 9,097 | cpp | C++ | src/daemon/process/AppProcess.cpp | FrederickHou/app-mesh | 8f23a1555d3a8da1481d91e1e60464fc197bd6e5 | [
"MIT"
] | null | null | null | src/daemon/process/AppProcess.cpp | FrederickHou/app-mesh | 8f23a1555d3a8da1481d91e1e60464fc197bd6e5 | [
"MIT"
] | null | null | null | src/daemon/process/AppProcess.cpp | FrederickHou/app-mesh | 8f23a1555d3a8da1481d91e1e60464fc197bd6e5 | [
"MIT"
] | 1 | 2020-11-01T09:11:49.000Z | 2020-11-01T09:11:49.000Z | #include <thread>
#include <fstream>
#include "AppProcess.h"
#include "LinuxCgroup.h"
#include "../Configuration.h"
#include "../ResourceLimitation.h"
#include "../../common/Utility.h"
#include "../../common/DateTime.h"
#include "../../common/os/pstree.hpp"
#define CLOSE_ACE_HANDLER(handler) \
do ... | 30.62963 | 238 | 0.67165 | FrederickHou |
463dea99028bceb273e29e22982b837fae318681 | 4,507 | cpp | C++ | src/controller/src/SMACS.cpp | BCLab-UNM/M2M-MC | 4bde093b2c43c2217fda2f4a0efd55bbfc45b9a1 | [
"MIT"
] | 6 | 2020-07-02T13:01:30.000Z | 2021-05-01T06:35:10.000Z | src/controller/src/SMACS.cpp | BCLab-UNM/M2M-MC | 4bde093b2c43c2217fda2f4a0efd55bbfc45b9a1 | [
"MIT"
] | null | null | null | src/controller/src/SMACS.cpp | BCLab-UNM/M2M-MC | 4bde093b2c43c2217fda2f4a0efd55bbfc45b9a1 | [
"MIT"
] | 2 | 2020-05-17T18:51:12.000Z | 2020-11-16T16:32:44.000Z | #include "SMACS.h"
// Initialize the instance
SMACS* SMACS::s_instance = 0;
SMACS::SMACS(){}
SMACS* SMACS::instance(){
if(!s_instance)
s_instance = new SMACS;
return s_instance;
}
void SMACS::pushWithMutex(Behavior* b){
// Check if behavior is null. If it is then do not put anything on stack
... | 25.463277 | 101 | 0.544264 | BCLab-UNM |
463ed1f546940c56ba4ee677e916d5a1b61dab89 | 7,947 | cpp | C++ | tests/src/percent_input_tests.cpp | DmitryDzz/calculator-comrade-lib | 107930ef7df88b330b800993028b35d08d5d78f6 | [
"MIT"
] | 4 | 2021-01-18T03:11:14.000Z | 2022-01-29T09:17:06.000Z | tests/src/percent_input_tests.cpp | DmitryDzz/calculator-comrade-lib | 107930ef7df88b330b800993028b35d08d5d78f6 | [
"MIT"
] | 32 | 2018-10-11T22:05:14.000Z | 2019-05-26T16:25:38.000Z | tests/src/percent_input_tests.cpp | DmitryDzz/calculator-comrade-lib | 107930ef7df88b330b800993028b35d08d5d78f6 | [
"MIT"
] | null | null | null | /**
* Calculator Comrade Library
* License: https://github.com/DmitryDzz/calculator-comrade-lib/blob/master/LICENSE
* Author: Dmitry Dzakhov
* Email: info@robot-mitya.ru
*/
#include <gmock/gmock.h>
#include "calculator/calculator.h"
#include "calculator/button.h"
#include "calculator/operation.h"
#include "calc_h... | 26.938983 | 83 | 0.623632 | DmitryDzz |
463fb36ee7f82268919c4c195906ebf824f4fd3f | 3,539 | cpp | C++ | projects/biogears/libBiogears/src/cdm/properties/SEScalarAmountPerVolume.cpp | Aaryan-kapur/core | 5ebf096d18a3ddbe0259f83ca82a39607ba1f892 | [
"Apache-2.0"
] | 1 | 2020-03-13T17:43:34.000Z | 2020-03-13T17:43:34.000Z | projects/biogears/libBiogears/src/cdm/properties/SEScalarAmountPerVolume.cpp | BhumikaSaini/core | baecdd736961d301fe2723858de94cef285296b0 | [
"Apache-2.0"
] | 5 | 2020-12-23T00:19:32.000Z | 2020-12-29T20:53:58.000Z | projects/biogears/libBiogears/src/cdm/properties/SEScalarAmountPerVolume.cpp | BhumikaSaini/core | baecdd736961d301fe2723858de94cef285296b0 | [
"Apache-2.0"
] | 3 | 2020-02-23T06:20:08.000Z | 2021-12-02T04:18:29.000Z | /**************************************************************************************
Copyright 2015 Applied Research Associates, 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.ap... | 40.678161 | 88 | 0.593105 | Aaryan-kapur |
4643ab8154366f53cffbe193c750fd0a35c954a3 | 578 | cpp | C++ | barelymusician/dsp/one_pole_filter.cpp | anokta/barelymusician | 5e3485c80cc74c4bcbc0653c0eb8750ad44981d6 | [
"MIT"
] | 6 | 2021-11-25T17:40:21.000Z | 2022-03-24T03:38:11.000Z | barelymusician/dsp/one_pole_filter.cpp | anokta/barelymusician | 5e3485c80cc74c4bcbc0653c0eb8750ad44981d6 | [
"MIT"
] | 17 | 2021-11-27T00:10:39.000Z | 2022-03-30T00:33:51.000Z | barelymusician/dsp/one_pole_filter.cpp | anokta/barelymusician | 5e3485c80cc74c4bcbc0653c0eb8750ad44981d6 | [
"MIT"
] | null | null | null | #include "barelymusician/dsp/one_pole_filter.h"
#include <algorithm>
namespace barelyapi {
double OnePoleFilter::Next(double input) noexcept {
output_ = coefficient_ * (output_ - input) + input;
if (type_ == FilterType::kHighPass) {
return input - output_;
}
return output_;
}
void OnePoleFilter::Reset()... | 24.083333 | 71 | 0.719723 | anokta |
4647b087057511edb5817108d19eb772335602fb | 10,906 | cpp | C++ | src/dev/steve/ScarrArm/ScarrArmModel.cpp | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 148 | 2015-01-08T22:44:00.000Z | 2022-03-19T18:42:48.000Z | src/dev/steve/ScarrArm/ScarrArmModel.cpp | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 107 | 2015-01-02T16:41:42.000Z | 2021-06-14T22:09:19.000Z | src/dev/steve/ScarrArm/ScarrArmModel.cpp | wvat/NTRTsim | 0443cbd542e12e23c04adf79ea0d8d003c428baa | [
"Apache-2.0"
] | 86 | 2015-01-06T07:02:36.000Z | 2022-02-28T17:36:14.000Z | /*
* Copyright © 2015, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... | 37.737024 | 126 | 0.656703 | wvat |
46498961a608ee3f3a53e462acc2ee7f0d39f35f | 415 | cpp | C++ | sursa.cpp | seerj30/backtracking-recursiv_permutari | 8ec7d75ed50305e68527d6dd74133910d9c35256 | [
"MIT"
] | null | null | null | sursa.cpp | seerj30/backtracking-recursiv_permutari | 8ec7d75ed50305e68527d6dd74133910d9c35256 | [
"MIT"
] | null | null | null | sursa.cpp | seerj30/backtracking-recursiv_permutari | 8ec7d75ed50305e68527d6dd74133910d9c35256 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int n;
void back(int st[], int k)
{
int i,ev,j;
if(k==n+1)
{
for(int i = 1; i < k; i++)
cout << st[i] << " ";
cout << endl;
}
else
for(int i = 1; i <= n; i++)
{
st[k] = i;
ev=1;
for(j = 1; j < k; j++)
if(st[j] == st[k])
ev=0;
if(ev)
back(... | 12.205882 | 29 | 0.436145 | seerj30 |
464a3aeedf7fb4a9e26ce09eb1d2a829735d1f65 | 1,829 | hh | C++ | test/CLI/AppTest.hh | decouple/decouple.io | c841e905fbc8bd9507759a0ef6e56e1985c56c5a | [
"MIT"
] | null | null | null | test/CLI/AppTest.hh | decouple/decouple.io | c841e905fbc8bd9507759a0ef6e56e1985c56c5a | [
"MIT"
] | null | null | null | test/CLI/AppTest.hh | decouple/decouple.io | c841e905fbc8bd9507759a0ef6e56e1985c56c5a | [
"MIT"
] | null | null | null | <?hh // partial
namespace Test\CLI;
use Decouple\CLI\App;
use Decouple\CLI\Request\Request;
use Decouple\Decoupler\Decoupler;
use Decouple\Registry\Paths;
use Decouple\CLI\Console;
class AppTest extends \Decouple\Test\TestCase {
public function execute() : void {
Console::output('Testing CLI bootstrap (version)')... | 29.031746 | 85 | 0.631493 | decouple |
464b0c44e0f870c5e760b5c4e5248cfc41c05ea1 | 14,229 | cpp | C++ | modules/Math/test/Vector4Test.cpp | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 5 | 2018-11-17T23:13:22.000Z | 2021-09-30T13:37:04.000Z | modules/Math/test/Vector4Test.cpp | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | null | null | null | modules/Math/test/Vector4Test.cpp | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 2 | 2019-09-23T12:23:35.000Z | 2020-04-07T05:31:06.000Z | /*
* Copyright 2016 Aaron Barany
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 31.135667 | 100 | 0.710661 | akb825 |
464b77d844ad0b1b829a3053a1afbc119a63c6ad | 4,139 | cpp | C++ | cha1/max_subarray.cpp | byzhou/CLRS | 1af11fc971b9b91a050cdb1f2b3cf9a9471c8a22 | [
"MIT"
] | null | null | null | cha1/max_subarray.cpp | byzhou/CLRS | 1af11fc971b9b91a050cdb1f2b3cf9a9471c8a22 | [
"MIT"
] | null | null | null | cha1/max_subarray.cpp | byzhou/CLRS | 1af11fc971b9b91a050cdb1f2b3cf9a9471c8a22 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <ctime>
#include <time.h>
#include <stdio.h>
using namespace std;
const int neg_infinity = 0xFFFFFFFF ;
const int pos_infinity = 0x7FFFFFFF ;
void print_array ( int* array , int num ) ;
void diff_array ( int* array, int* diff_array ) ;
void max_cross_subarray ( int* ... | 28.349315 | 113 | 0.512926 | byzhou |
464ca6a431f7f3789925b04e79a4043171b28317 | 785 | cpp | C++ | samples/test/src/main.cpp | hiroog/CCTFLibrary | 9eb1d7f740ba7f6174c40dba255c12212b85d9e4 | [
"MIT"
] | null | null | null | samples/test/src/main.cpp | hiroog/CCTFLibrary | 9eb1d7f740ba7f6174c40dba255c12212b85d9e4 | [
"MIT"
] | null | null | null | samples/test/src/main.cpp | hiroog/CCTFLibrary | 9eb1d7f740ba7f6174c40dba255c12212b85d9e4 | [
"MIT"
] | null | null | null | // 2019/09/01 Hiroyuki Ogasawara
// vim:ts=4 sw=4 noet:
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <cctf/CCTFSystem.h>
using namespace cctf;
//-----------------------------------------------------------------------------
class MySystemAPI : public CCSystemAPI {
public:
size_t AllocCount= 0... | 16.702128 | 79 | 0.536306 | hiroog |
465470dd4d63504759a42fd83d03389631e1900b | 10,971 | cpp | C++ | solver/modules/slide/src/StraightSolver.cpp | taiheioki/procon2014_ut | 8199ff0a54220f1a0c51acece377f65b64db4863 | [
"MIT"
] | 2 | 2021-04-14T06:41:18.000Z | 2021-04-29T01:56:08.000Z | solver/modules/slide/src/StraightSolver.cpp | taiheioki/procon2014_ut | 8199ff0a54220f1a0c51acece377f65b64db4863 | [
"MIT"
] | null | null | null | solver/modules/slide/src/StraightSolver.cpp | taiheioki/procon2014_ut | 8199ff0a54220f1a0c51acece377f65b64db4863 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <functional>
#include <limits>
#include <boost/format.hpp>
#include "StraightSolver.hpp"
namespace slide
{
void StraightSolver::alignRow(AnswerBoard<Flexible>& board)
{
BOOST_ASSERT(board.height() >= 3 && board.width() >= 2);
// 右端2個以外
rep(dstX, board.width()-2){
const Point dst(... | 25.753521 | 125 | 0.627199 | taiheioki |
4654c53aeb35a7c4dbdd747d4f61e5dd3ced6dd0 | 3,332 | hpp | C++ | alpaka/include/alpaka/block/shared/dyn/BlockSharedMemDynUniformCudaHipBuiltIn.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 6 | 2021-02-01T09:01:39.000Z | 2021-11-14T17:09:03.000Z | alpaka/include/alpaka/block/shared/dyn/BlockSharedMemDynUniformCudaHipBuiltIn.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 17 | 2020-11-09T14:13:50.000Z | 2021-11-03T11:54:54.000Z | alpaka/include/alpaka/block/shared/dyn/BlockSharedMemDynUniformCudaHipBuiltIn.hpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | null | null | null | /* Copyright 2019 Benjamin Worpitz, René Widera
*
* This file is part of alpaka.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#if defined(A... | 45.643836 | 114 | 0.536315 | alpaka-group |
465af3690db8e7e38b86005371afe4aa42b6cc8b | 556 | cpp | C++ | test/filter.cpp | ericjavier/yaml | 92d9097fc58602fbc88000fd22e2debc2f90996c | [
"Apache-2.0"
] | 1 | 2015-04-12T19:46:13.000Z | 2015-04-12T19:46:13.000Z | test/filter.cpp | ericjavier/yaml | 92d9097fc58602fbc88000fd22e2debc2f90996c | [
"Apache-2.0"
] | null | null | null | test/filter.cpp | ericjavier/yaml | 92d9097fc58602fbc88000fd22e2debc2f90996c | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <yaml/config.hpp>
#include <yaml/detail/placeholders.hpp>
#include <yaml/arithmetic.hpp>
#include <yaml/sequence/filter.hpp>
#include "test_utils.hpp"
using namespace YAML_NSP;
using func = less::ret<_0, std::integral_constant<int, 3>>;
using expected = list<std::integral_constant<i... | 25.272727 | 59 | 0.723022 | ericjavier |
465bb25a1f734987150e98294c974113721a02e6 | 991 | cc | C++ | src/abc011/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc011/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc011/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 400;
int dfs(int start, vector<int> &dp, set<int> &ng) {
if(dp[start] >= 0) {
return dp[start];
}
if(ng.find(start) != ng.end()) {
return dp[start] = INF;
}
int one = INF, two... | 22.022222 | 53 | 0.498486 | nryotaro |
465eb68fb7072790e82f6c3db5f23dbfb93e7340 | 4,148 | cpp | C++ | Linked list/LinkedListStruct.cpp | lovinh/Data-Structure | f5dab728b809507b8b15eb8f8450a6a85f95467e | [
"MIT"
] | null | null | null | Linked list/LinkedListStruct.cpp | lovinh/Data-Structure | f5dab728b809507b8b15eb8f8450a6a85f95467e | [
"MIT"
] | null | null | null | Linked list/LinkedListStruct.cpp | lovinh/Data-Structure | f5dab728b809507b8b15eb8f8450a6a85f95467e | [
"MIT"
] | null | null | null | #ifndef __LinkedListStruct_cpp
#define __LinkedListStruct_cpp
#include <iostream>
template <class T>
struct sNode // struct node
{
T data;
sNode<T> *next;
};
// Insert
template <class T>
void push_front(sNode<T> **head, const T &data)
{
sNode<T> *node = new sNode<T>;
node->data = data;
node->next =... | 18.435556 | 57 | 0.478303 | lovinh |
465ed2ea6fea6919b888be71acce359be427cbd8 | 1,684 | cxx | C++ | main/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 29.54386 | 76 | 0.690024 | Grosskopf |
46638a06ef05cd551a0d25bc744069d85864c7f2 | 2,585 | cpp | C++ | allocore/src/protocol/opencl/al_OpenCLProgram.cpp | donghaoren/AlloSystem | 7674cc8597e470a355a5dab1dac9191c2c2e8086 | [
"BSD-3-Clause"
] | null | null | null | allocore/src/protocol/opencl/al_OpenCLProgram.cpp | donghaoren/AlloSystem | 7674cc8597e470a355a5dab1dac9191c2c2e8086 | [
"BSD-3-Clause"
] | null | null | null | allocore/src/protocol/opencl/al_OpenCLProgram.cpp | donghaoren/AlloSystem | 7674cc8597e470a355a5dab1dac9191c2c2e8086 | [
"BSD-3-Clause"
] | null | null | null | #include "allocore/protocol/opencl/al_OpenCLProgram.hpp"
#ifndef MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif
namespace al {
namespace cl {
void OpenCLProgram :: create(OpenCLContext &ctx, const char *source) {
destroy();
detach();
cl_int res = CL_SUCCESS;
cl_program program = clCreateProgramWithSour... | 23.288288 | 81 | 0.648743 | donghaoren |
4663c2afa22114665144549d50fe2d00da904b5c | 1,287 | cpp | C++ | app/src/main/cpp/Threads/FileStreamThread.cpp | PetrFlajsingr/SpeechRecognition | 23c675c7389b9ad97b18a8ba3739dceb04f42856 | [
"Apache-2.0"
] | 1 | 2019-04-18T06:33:09.000Z | 2019-04-18T06:33:09.000Z | app/src/main/cpp/Threads/FileStreamThread.cpp | PetrFlajsingr/SpeechRecognition | 23c675c7389b9ad97b18a8ba3739dceb04f42856 | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/Threads/FileStreamThread.cpp | PetrFlajsingr/SpeechRecognition | 23c675c7389b9ad97b18a8ba3739dceb04f42856 | [
"Apache-2.0"
] | null | null | null | //
// Created by Petr Flajsingr on 18/04/2018.
//
#include "FileStreamThread.h"
#include <constants.h>
#include <android/log.h>
SpeechRecognition::Threads::FileStreamThread::FileStreamThread(std::ifstream& fileStream)
: thread(&FileStreamThread::threadFileStream, this) {
this->fileStream = &fileStream;
}... | 26.8125 | 89 | 0.677545 | PetrFlajsingr |
46642a3737950cf666a252806f317be9196ca388 | 1,864 | cpp | C++ | c++/Data Structures/RMQ.cpp | WearyJunger/notebook | 8fc7bfdcacffd63b131b5ed0c92365f682ba313f | [
"MIT"
] | null | null | null | c++/Data Structures/RMQ.cpp | WearyJunger/notebook | 8fc7bfdcacffd63b131b5ed0c92365f682ba313f | [
"MIT"
] | null | null | null | c++/Data Structures/RMQ.cpp | WearyJunger/notebook | 8fc7bfdcacffd63b131b5ed0c92365f682ba313f | [
"MIT"
] | 1 | 2018-10-08T21:01:59.000Z | 2018-10-08T21:01:59.000Z | Range minimum query. Recibe como parametro en el constructor un array de valores. Las consultas se realizan con el método rmq(indice_inicio, indice_final) y pueden actualizarse los valores con update_point(indice, nuevo_valor)
class SegmentTree {
private: vector<int> st, A;
int n;
int left (i... | 28.242424 | 226 | 0.495708 | WearyJunger |
466cc79151dff2e1c1bf8abf8acbd3a5d6c861c0 | 630 | cpp | C++ | 225-Days Coding Problem/Day-002.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | 225-Days Coding Problem/Day-002.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | 225-Days Coding Problem/Day-002.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
const size_t n= nums.size();
vector<int>ans(n,1);
int answer =1;
for(size_t i=0;i<n; ++i){
if(i==0){
ans[i] = nums[i];
}else{
ans[i] = nums[i]*ans[i-1];... | 23.333333 | 54 | 0.365079 | Ashwanigupta9125 |
466e60dd8dd600cfbe3235959f31c170b9a87f0d | 3,347 | cpp | C++ | SelPh/metriclearning.cpp | yuki-koyama/selph | 9f3d1a868333843c6884adac41e344684efa2366 | [
"MIT"
] | 3 | 2019-09-13T07:47:39.000Z | 2021-03-10T20:31:32.000Z | SelPh/metriclearning.cpp | yuki-koyama/selph | 9f3d1a868333843c6884adac41e344684efa2366 | [
"MIT"
] | 7 | 2018-04-06T10:06:56.000Z | 2019-08-04T05:38:12.000Z | SelPh/metriclearning.cpp | yuki-koyama/selph | 9f3d1a868333843c6884adac41e344684efa2366 | [
"MIT"
] | null | null | null | // #define TIME
#include "metriclearning.h"
#ifdef TIME
#include <chrono>
#endif
#include <nlopt.hpp>
#include "core.h"
#include "eigenutility.h"
using namespace Eigen;
using namespace std;
namespace
{
Core& core = Core::getInstance();
}
namespace MetricLearning
{
struct Arg
{
Arg(const Core::Distance* D_imag... | 31.575472 | 142 | 0.553929 | yuki-koyama |
466f649cd8398e7deb5c21a4cf7fc57bbcff1ba5 | 1,025 | cpp | C++ | Lab 4/Lab 4/Lab 4.cpp | shonwr/c-assignments-projects | fab40807ba2720cec577aa9689361746e33ef678 | [
"Apache-2.0"
] | null | null | null | Lab 4/Lab 4/Lab 4.cpp | shonwr/c-assignments-projects | fab40807ba2720cec577aa9689361746e33ef678 | [
"Apache-2.0"
] | null | null | null | Lab 4/Lab 4/Lab 4.cpp | shonwr/c-assignments-projects | fab40807ba2720cec577aa9689361746e33ef678 | [
"Apache-2.0"
] | null | null | null | // Lab 4.cpp : main project file.
#include "stdafx.h"
#include <iostream>
using namespace System;
using namespace std;
char fName[50];
char lName[50];
char space[10] = " ";
int main()
{
system("color f0");
printf("This program: \n\t(1)Prints an entered first and last name \n\t(2)Prints the number of letters in each... | 26.973684 | 146 | 0.636098 | shonwr |
4671ec7a3b1a40d24223e8bfc1ef09540e1dc440 | 1,784 | cpp | C++ | DivisionEngine/DivisionTest/ClockTest.cpp | martheveldhuis/DivisionEngine | 8f7ba1c355ee010c005df207e08d51673f3cdf8d | [
"MIT"
] | 1 | 2017-11-29T19:19:43.000Z | 2017-11-29T19:19:43.000Z | DivisionEngine/DivisionTest/ClockTest.cpp | martheveldhuis/DivisionEngine | 8f7ba1c355ee010c005df207e08d51673f3cdf8d | [
"MIT"
] | 2 | 2018-01-16T12:11:24.000Z | 2018-01-16T15:21:46.000Z | DivisionEngine/DivisionTest/ClockTest.cpp | martheveldhuis/DivisionEngine | 8f7ba1c355ee010c005df207e08d51673f3cdf8d | [
"MIT"
] | 1 | 2018-01-28T13:10:49.000Z | 2018-01-28T13:10:49.000Z | #include "CppUnitTest.h"
#include "Clock.h"
#include <chrono>
#include <thread>
#include <iostream>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace Division;
namespace DivisionTest
{
TEST_CLASS(ClockTest)
{
public:
TEST_METHOD(testClockStart)
{
Clock clock;
clock.start()... | 16.830189 | 64 | 0.663117 | martheveldhuis |
4672121dbfdbb543cd8767a085f1823f8735a986 | 7,810 | cpp | C++ | src/mame/video/namco_c169roz.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/video/namco_c169roz.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/video/namco_c169roz.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:David Haywood, Phil Stroffolino
/******************************************************************************
Namco C169 (ROZ - Rotate and Zoom)
Advanced rotate-zoom chip manages two layers.
Each layer uses a designated subset of a master 256x256 tile tilemap (40... | 28.194946 | 196 | 0.66402 | Robbbert |
4674ea079e6d2cdc296410871e1316c79c9577e3 | 5,471 | cpp | C++ | triangles.cpp | bradgrantham/raycast | a103801f473d55e99fc25db28c4b0587a1271093 | [
"BSD-2-Clause"
] | null | null | null | triangles.cpp | bradgrantham/raycast | a103801f473d55e99fc25db28c4b0587a1271093 | [
"BSD-2-Clause"
] | null | null | null | triangles.cpp | bradgrantham/raycast | a103801f473d55e99fc25db28c4b0587a1271093 | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <cmath>
// Okay, it's ugly, I get it.
//
// I didn't use classes or a vector library. I use loops to
// 3 everywhere for vector operations, and I even write out dot
// products. My intent was to try to build a minimal triangle
// raycaster that I could convert simply to BASIC or FORTH o... | 26.687805 | 91 | 0.425882 | bradgrantham |
4679a7b3404ed6d2823d710f72a2e305de31da3b | 755 | cpp | C++ | insts/std/PVOC/PVFilterTest.cpp | jwmatthys/RTcmix | c9ba0c5bee2cd5e091c81333cf819d267008635b | [
"Apache-2.0"
] | 40 | 2015-01-14T20:52:42.000Z | 2022-03-09T00:50:45.000Z | insts/std/PVOC/PVFilterTest.cpp | jwmatthys/RTcmix | c9ba0c5bee2cd5e091c81333cf819d267008635b | [
"Apache-2.0"
] | 20 | 2015-01-26T19:02:59.000Z | 2022-01-30T18:00:39.000Z | insts/std/PVOC/PVFilterTest.cpp | jwmatthys/RTcmix | c9ba0c5bee2cd5e091c81333cf819d267008635b | [
"Apache-2.0"
] | 14 | 2015-01-14T20:52:43.000Z | 2021-09-24T02:24:32.000Z | // PVFilterTest.cpp -- test class for pvoc data filters
#include "PVFilterTest.h"
#include <stdio.h>
#include <ugens.h>
PVFilter *
PVFilterTest::create()
{
return new PVFilterTest;
}
PVFilterTest::PVFilterTest()
{
}
PVFilterTest::~PVFilterTest()
{
}
int
PVFilterTest::run(float *pvdata, int nvals)
{
for (int n = ... | 15.729167 | 67 | 0.675497 | jwmatthys |
467a5110cc99dab334a99239e0b6d2733962ca4c | 21 | cc | C++ | src/main/c++/novemberizing/io/buffer.cc | iticworld/reactive-lib | 9ab761376776e759390fa417d50921ec6e8a898a | [
"Apache-2.0"
] | 1 | 2020-10-10T11:57:15.000Z | 2020-10-10T11:57:15.000Z | src/main/c++/novemberizing/io/buffer.cc | iticworld/reactive-lib | 9ab761376776e759390fa417d50921ec6e8a898a | [
"Apache-2.0"
] | null | null | null | src/main/c++/novemberizing/io/buffer.cc | iticworld/reactive-lib | 9ab761376776e759390fa417d50921ec6e8a898a | [
"Apache-2.0"
] | null | null | null | #include "buffer.hh"
| 10.5 | 20 | 0.714286 | iticworld |
467adea4e2f3af676246adae4073c1f4877d720e | 75 | hxx | C++ | src/drawable.hxx | luutifa/openglpractice | 1158453f0b124910ad8c4101f226dd55b5ce4262 | [
"MIT"
] | null | null | null | src/drawable.hxx | luutifa/openglpractice | 1158453f0b124910ad8c4101f226dd55b5ce4262 | [
"MIT"
] | null | null | null | src/drawable.hxx | luutifa/openglpractice | 1158453f0b124910ad8c4101f226dd55b5ce4262 | [
"MIT"
] | null | null | null | #pragma once
class Drawable {
public:
virtual void draw() const;
};
| 10.714286 | 30 | 0.653333 | luutifa |
46811eb70d97fa59ee2378376fe31f71a8204a9b | 1,327 | cc | C++ | mindspore/lite/tools/converter/adapter/acl/mapper/fused_batchnorm_mapper.cc | PowerOlive/mindspore | bda20724a94113cedd12c3ed9083141012da1f15 | [
"Apache-2.0"
] | 3,200 | 2020-02-17T12:45:41.000Z | 2022-03-31T20:21:16.000Z | mindspore/lite/tools/converter/adapter/acl/mapper/fused_batchnorm_mapper.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 176 | 2020-02-12T02:52:11.000Z | 2022-03-28T22:15:55.000Z | mindspore/lite/tools/converter/adapter/acl/mapper/fused_batchnorm_mapper.cc | zimo-geek/mindspore | 665ec683d4af85c71b2a1f0d6829356f2bc0e1ff | [
"Apache-2.0"
] | 621 | 2020-03-09T01:31:41.000Z | 2022-03-30T03:43:19.000Z | /**
* Copyright 2021 Huawei Technologies Co., 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... | 35.864865 | 84 | 0.757347 | PowerOlive |
46816ff6a443ba8ba63c8eefac6401da4f99b69f | 2,338 | cxx | C++ | include/rrwindows/console/console_virtual_terminal_sequences.cxx | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | 2 | 2019-03-20T01:14:10.000Z | 2021-12-08T15:39:32.000Z | include/rrwindows/console/console_virtual_terminal_sequences.cxx | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | include/rrwindows/console/console_virtual_terminal_sequences.cxx | afoolsbag/rrCnCxx | 1e673bd4edac43d8406a0c726138cba194d17f48 | [
"Unlicense"
] | null | null | null | /// \copyright Unlicense
#include "rrwindows/console/console_virtual_terminal_sequences.hxx"
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include "rrwindows/debug/error_handling.hxx"
using namespace std;
namespace rrwindows {
RRWINDOWS_API void RRWINDOWS_CALL enable_virtual_terminal_mode()
{
DWORD dwMode... | 38.327869 | 78 | 0.749358 | afoolsbag |
46823dbdade1cbfdbfe418a0c45b44216ff606cf | 14,456 | cpp | C++ | push1st-server/core/lua/clua.cpp | navek-soft/push1st | 6d0638e31031dcf55442382df0e92ac67d95801b | [
"Apache-2.0"
] | 16 | 2021-11-02T07:29:18.000Z | 2021-12-23T13:28:05.000Z | push1st-server/core/lua/clua.cpp | navek-soft/push1st | 6d0638e31031dcf55442382df0e92ac67d95801b | [
"Apache-2.0"
] | null | null | null | push1st-server/core/lua/clua.cpp | navek-soft/push1st | 6d0638e31031dcf55442382df0e92ac67d95801b | [
"Apache-2.0"
] | null | null | null | #include "clua.h"
#include <unordered_map>
#include <set>
#include <deque>
#include <functional>
#include <ctime>
#define l L.get()
void* clua::engine::getModule(clua::lua_t L, const std::string_view& modName, const std::string_view& modNamespace) {
if (lua_getglobal(L, modNamespace.data()); lua_istable(L, -1)) {... | 41.185185 | 217 | 0.509408 | navek-soft |
46835ffc0fa55038a82c3e8f90cfff09dc4cb13e | 19,985 | cpp | C++ | src/game/server/hl1/hl1_npc_leech.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/game/server/hl1/hl1_npc_leech.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/game/server/hl1/hl1_npc_leech.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#include "cbase.h"
#include "ai_default.h"
#include "ai_task.h"
#include "ai_schedule.h"
#include "ai_nod... | 28.71408 | 129 | 0.615161 | cstom4994 |
468943227aa1aababc7ce2303fe243effbaadc5e | 11,202 | inl | C++ | Extras/RigidBodyGpuPipeline/opencl/primitives/AdlPrimitives/Sort/RadixSort32.inl | tizenorg/platform.upstream.libbullet | eb6918d59f661c0e5b469d6e007f91a82d46a302 | [
"Zlib"
] | 2 | 2015-02-28T15:50:06.000Z | 2016-04-12T18:03:10.000Z | Extras/RigidBodyGpuPipeline/opencl/primitives/AdlPrimitives/Sort/RadixSort32.inl | tizenorg/platform.upstream.libbullet | eb6918d59f661c0e5b469d6e007f91a82d46a302 | [
"Zlib"
] | null | null | null | Extras/RigidBodyGpuPipeline/opencl/primitives/AdlPrimitives/Sort/RadixSort32.inl | tizenorg/platform.upstream.libbullet | eb6918d59f661c0e5b469d6e007f91a82d46a302 | [
"Zlib"
] | null | null | null | /*
2011 Takahiro Harada
*/
#define PATH "..\\..\\opencl\\primitives\\AdlPrimitives\\Sort\\RadixSort32Kernels"
#define RADIXSORT32_KERNEL0 "StreamCountKernel"
#define RADIXSORT32_KERNEL1 "PrefixScanKernel"
#define RADIXSORT32_KERNEL2 "SortAndScatterKernel"
#define RADIXSORT32_KERNEL3 "SortAndScatterKeyValueKernel"
#d... | 32.282421 | 165 | 0.701303 | tizenorg |
468fcc6d2ed9c2da8a6a448e880c86f2aa80fc2a | 310 | hpp | C++ | src/FileSystemUtils.hpp | antmicro/ros-tracking-nodes-tester-node | 878336dca10288e017665d2b2b9d075acecbf26b | [
"Apache-2.0"
] | null | null | null | src/FileSystemUtils.hpp | antmicro/ros-tracking-nodes-tester-node | 878336dca10288e017665d2b2b9d075acecbf26b | [
"Apache-2.0"
] | null | null | null | src/FileSystemUtils.hpp | antmicro/ros-tracking-nodes-tester-node | 878336dca10288e017665d2b2b9d075acecbf26b | [
"Apache-2.0"
] | null | null | null | #ifndef FILE_SYSTEM_UTILS
#define FILE_SYSTEM_UTILS
#include <string>
#include <vector>
namespace FileSystemUtils
{
inline bool endsWith(std::string const & value, std::string const & ending);
void listFiles(std::string dir_path, std::vector<std::string> &files, std::string extension="");
}
#endif
| 22.142857 | 100 | 0.73871 | antmicro |
46919e1867b7bb36b75acf947a58b6309383024e | 1,566 | cc | C++ | src/abc059/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc059/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | src/abc059/c.cc | nryotaro/at_c | 8d7d3aecb4e3c768aefdf0ceaeefb269ca9ab34c | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll solve(int n, vector<ll> a) {
ll sum = 0, count = 0;
for(int i = 0; i < n; i++) {
ll temp = sum + a[i];
if(i % 2 == 0) {
if(temp > 0) {
sum = temp;
continue;
} else {
... | 23.727273 | 41 | 0.327586 | nryotaro |
46949531f8ddf132fb5010d55fba16a29d7c004e | 7,478 | cpp | C++ | Simbody/tests/TestSmoothSphereHalfSpaceForce.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 1,916 | 2015-01-01T09:35:21.000Z | 2022-03-30T11:38:43.000Z | Simbody/tests/TestSmoothSphereHalfSpaceForce.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 389 | 2015-01-01T01:13:51.000Z | 2022-03-16T15:30:58.000Z | Simbody/tests/TestSmoothSphereHalfSpaceForce.cpp | e-schumann/simbody | 4d8842270d5c400ef64cfd5723e0e0399161e51f | [
"Apache-2.0"
] | 486 | 2015-01-02T10:25:49.000Z | 2022-03-16T15:31:40.000Z | /* -------------------------------------------------------------------------- *
* Simbody(tm) *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... | 44.778443 | 80 | 0.56606 | e-schumann |
4696fe7ded22d7a620a092d9bfb77c12dec81854 | 718 | cpp | C++ | L04-Railroad/Student_Code/Factory.cpp | tlyon3/CS235 | 2bdb8eaf66c9adbfe7ec59c0535852fd1cc30eda | [
"MIT"
] | 1 | 2018-03-04T02:58:55.000Z | 2018-03-04T02:58:55.000Z | L04-Railroad/Student_Code/Factory.cpp | tlyon3/CS235 | 2bdb8eaf66c9adbfe7ec59c0535852fd1cc30eda | [
"MIT"
] | 1 | 2015-02-09T21:29:12.000Z | 2015-02-09T21:32:06.000Z | L04-Railroad/Student_Code/Factory.cpp | tlyon3/CS235 | 2bdb8eaf66c9adbfe7ec59c0535852fd1cc30eda | [
"MIT"
] | 4 | 2019-05-20T02:57:47.000Z | 2021-02-11T15:41:15.000Z | #include "Factory.h"
#include "station.h"
//You may add #include statments here
using namespace std;
/*
Unlike all other documents provided, you may modify this document slightly (but do not change its name)
*/
//=======================================================================================
/*
createStation... | 31.217391 | 104 | 0.558496 | tlyon3 |
469ae2939322e272ff45c6fe1f633df93b3137a6 | 373 | hh | C++ | LAMPS-HighEnergy/detector/LHNeutronScintArray.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2021-05-24T19:43:30.000Z | 2022-01-06T21:03:23.000Z | LAMPS-HighEnergy/detector/LHNeutronScintArray.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 4 | 2020-05-04T15:52:26.000Z | 2021-09-13T10:51:03.000Z | LAMPS-HighEnergy/detector/LHNeutronScintArray.hh | ggfdsa10/KEBI_AT-TPC | 40e00fcd10d3306b93fff93be5fb0988f87715a7 | [
"MIT"
] | 3 | 2020-06-14T10:53:58.000Z | 2022-01-06T21:03:30.000Z | #ifndef LHNEUTRONSCINTARRAY_HH
#define LHNEUTRONSCINTARRAY_HH
#include "KBDetector.hh"
class LHNeutronScintArray : public KBDetector
{
public:
LHNeutronScintArray();
virtual ~LHNeutronScintArray() {};
virtual bool Init();
protected:
virtual bool BuildGeometry();
virtual bool BuildDetectorPla... | 16.954545 | 45 | 0.739946 | ggfdsa10 |
46a09092cd0564f2523082aafc7e85aa138113b0 | 3,015 | cpp | C++ | src/drivers/Input/PS2MouseDriver.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/drivers/Input/PS2MouseDriver.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | src/drivers/Input/PS2MouseDriver.cpp | Unified-Projects/Unified-OS | 89912adc1ed9ec35753fe0f4fa35f03d30ec66a2 | [
"BSD-2-Clause"
] | null | null | null | #include <drivers/Input/PS2MouseDriver.h>
using namespace UnifiedOS;
using namespace UnifiedOS::Drivers;
PS2MouseEventHandler::PS2MouseEventHandler(){
}
PS2MouseEventHandler::~PS2MouseEventHandler(){
}
void PS2MouseEventHandler::OnMouseDown(uint8_t button){
}
void PS2MouseEventHandler::OnMouseUp(uint8_t button){
... | 24.314516 | 140 | 0.596352 | Unified-Projects |
46a259730f0a41dd17d84687e7e34ffb35ebbc7c | 1,677 | cpp | C++ | MidiChannel.cpp | Madsy/libmidi | c271e991e9d6f762e81a8d2dbf7a5cd63973629d | [
"MIT"
] | 5 | 2018-08-14T01:04:33.000Z | 2021-07-15T22:13:45.000Z | MidiChannel.cpp | Madsy/libmidi | c271e991e9d6f762e81a8d2dbf7a5cd63973629d | [
"MIT"
] | 4 | 2017-03-21T23:10:46.000Z | 2017-03-21T23:19:55.000Z | MidiChannel.cpp | Madsy/libmidi | c271e991e9d6f762e81a8d2dbf7a5cd63973629d | [
"MIT"
] | null | null | null | //
// Created by madsy on 22.03.17.
//
#include <algorithm>
#include "MidiChannel.h"
MidiChannel::MidiChannel() : pChannelIndex(0), pStartTick(0), pEndTick(0) {
}
MidiChannel::~MidiChannel() {
}
std::vector<std::shared_ptr<MidiEvent>> MidiChannel::getEventsWithinInterval(unsigned int startTick, unsigned int endTi... | 26.619048 | 130 | 0.621944 | Madsy |
46a38100725550a521f3db415b1ccaf992cbaa83 | 1,588 | cpp | C++ | Cpp/odin/odin.cpp | Deuanz/odin | da31a6bc8b9b4a0270f0807b588483840a24cf46 | [
"BSL-1.0"
] | null | null | null | Cpp/odin/odin.cpp | Deuanz/odin | da31a6bc8b9b4a0270f0807b588483840a24cf46 | [
"BSL-1.0"
] | null | null | null | Cpp/odin/odin.cpp | Deuanz/odin | da31a6bc8b9b4a0270f0807b588483840a24cf46 | [
"BSL-1.0"
] | null | null | null | /*
Copyright 2016-2017 Felspar Co Ltd. http://odin.felspar.com/
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
*/
#include <odin/odin.hpp>
#include <odin/nonce.hpp>
#include <fostgres/callback.hpp>
... | 35.288889 | 89 | 0.630982 | Deuanz |
46a467cd6e2de7a95f4fef7ee57741d079069e60 | 9,543 | cpp | C++ | dali/tensor/op/cost.cpp | bzcheeseman/Dali | a77c7ce60b20ce150a5927747e128688657907eb | [
"MIT"
] | null | null | null | dali/tensor/op/cost.cpp | bzcheeseman/Dali | a77c7ce60b20ce150a5927747e128688657907eb | [
"MIT"
] | null | null | null | dali/tensor/op/cost.cpp | bzcheeseman/Dali | a77c7ce60b20ce150a5927747e128688657907eb | [
"MIT"
] | null | null | null | #include "cost.h"
#include "dali/array/op/binary.h"
#include "dali/array/op/unary.h"
#include "dali/array/op/gather_from_rows.h"
#include "dali/array/op/reducers.h"
#include "dali/array/op/softmax.h"
#include "dali/tensor/tape.h"
#include "dali/utils/make_message.h"
#include "dali/tensor/tensor_macros.h"
namespace te... | 43.180995 | 111 | 0.562192 | bzcheeseman |
46a6e16f9495c024a23c36ec0d97d124ebfb46f3 | 593 | cpp | C++ | vendor/mapbox-gl-native/vendor/mapbox-base/test/io_delete.cpp | aic-develop/vietmaps-gl-native-ios-source | c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | vendor/mapbox-gl-native/vendor/mapbox-base/test/io_delete.cpp | aic-develop/vietmaps-gl-native-ios-source | c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | vendor/mapbox-gl-native/vendor/mapbox-base/test/io_delete.cpp | aic-develop/vietmaps-gl-native-ios-source | c73c28c4f1ea60ecd4c83c8b49f6947ee06f24f2 | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #include <mapbox/io.hpp>
#include "io_delete.hpp"
#include <cassert>
#include <string>
void deleteTests(const std::string& path, const std::string& copyPath, const std::string& invalidPath) {
nonstd::expected<void, std::string> voidExpected;
voidExpected = mapbox::base::io::deleteFile(path);
assert(void... | 28.238095 | 104 | 0.706577 | aic-develop |
46a7bca86ec9b994cc5976c29460d58adfaee694 | 550 | hpp | C++ | ex03/include/RobotomyRequestForm.hpp | 42cursus-youkim/-Rank04-CPP-Module05 | 71244b25b1c9556dd4ec186e543c2a3e308d0036 | [
"MIT"
] | null | null | null | ex03/include/RobotomyRequestForm.hpp | 42cursus-youkim/-Rank04-CPP-Module05 | 71244b25b1c9556dd4ec186e543c2a3e308d0036 | [
"MIT"
] | null | null | null | ex03/include/RobotomyRequestForm.hpp | 42cursus-youkim/-Rank04-CPP-Module05 | 71244b25b1c9556dd4ec186e543c2a3e308d0036 | [
"MIT"
] | null | null | null | #ifndef __ROBOTOMYREQUESTFORM_H__
#define __ROBOTOMYREQUESTFORM_H__
#include "Form.hpp"
class RobotomyRequestForm : public Form {
private:
// Disabled Operators
RobotomyRequestForm& operator=(const RobotomyRequestForm& assign);
public:
enum Requirement { SIGN = 72, EXEC = 45 };
// Constructors & Destructor... | 23.913043 | 68 | 0.767273 | 42cursus-youkim |
9e51862fa22a4663a14bf23659084d2a25b8fc92 | 1,074 | cpp | C++ | solutions/LeetCode/C++/205.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | solutions/LeetCode/C++/205.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | solutions/LeetCode/C++/205.cpp | timxor/leetcode-journal | 5f1cb6bcc44a5bc33d88fb5cdb4126dfc6f4232a | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 4 ms submission
static int lambda_0 = []() { std::ios::sync_with_stdio(false); cin.tie(NULL); return 0; }();
class Solution {
public:
bool isIsomorphic(string s, string t) {
int m1[256] ={0}, m2[256] = ... | 30.685714 | 98 | 0.597765 | timxor |
9e56615e2ffd44d3ff32857a39c631984255f628 | 8,484 | cp | C++ | Linux/Sources/Application/Calendar/Calendar_View/Free_Busy_View/CFreeBusyTable.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Linux/Sources/Application/Calendar/Calendar_View/Free_Busy_View/CFreeBusyTable.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Linux/Sources/Application/Calendar/Calendar_View/Free_Busy_View/CFreeBusyTable.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007-2009 Cyrus Daboo. 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
Unle... | 26.933333 | 131 | 0.709335 | mulberry-mail |
9e598ab89a764c1ec62524703ed3067e2692fd1f | 1,497 | hh | C++ | src/physics/JointFeedback.hh | nherment/gazebo | fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2016-01-17T20:41:39.000Z | 2018-05-01T12:02:58.000Z | src/physics/JointFeedback.hh | nherment/gazebo | fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/physics/JointFeedback.hh | nherment/gazebo | fff0aa30b4b5748e43c2b0aa54ffcd366e9f042a | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2015-09-29T02:30:16.000Z | 2022-03-30T12:11:22.000Z | /*
* Copyright 2011 Nate Koenig & Andrew Howard
*
* 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 l... | 25.372881 | 75 | 0.645291 | nherment |
9e5a23f8dff7b1550221b4624d554fa2a046fab9 | 400 | cpp | C++ | test/unit/math/prim/prob/bernoulli_ccdf_log_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-06-14T14:33:37.000Z | 2020-06-14T14:33:37.000Z | test/unit/math/prim/prob/bernoulli_ccdf_log_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 2 | 2019-07-23T12:45:30.000Z | 2020-05-01T20:43:03.000Z | test/unit/math/prim/prob/bernoulli_ccdf_log_test.cpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 1 | 2020-05-10T12:55:07.000Z | 2020-05-10T12:55:07.000Z | #include <stan/math/prim.hpp>
#include <gtest/gtest.h>
TEST(ProbBernoulli, ccdf_log_matches_lccdf) {
int n = 1;
double theta = 0.3;
EXPECT_FLOAT_EQ((stan::math::bernoulli_lccdf(n, theta)),
(stan::math::bernoulli_ccdf_log(n, theta)));
EXPECT_FLOAT_EQ((stan::math::bernoulli_lccdf<double>(n, th... | 30.769231 | 70 | 0.6525 | LaudateCorpus1 |
9e5a44e311b394c612d80c73766e978ebcbf9759 | 5,009 | hpp | C++ | Linux/Ubuntu/64bit/AVAPI/Avapi/TECHNICAL_INDICATOR/AROONOSC.hpp | AvapiDotNet/AvapiCpp | 2157ccbe750cac077098a6f1aa401d80fc943ff5 | [
"MIT"
] | 15 | 2018-01-31T16:58:36.000Z | 2021-08-19T21:37:08.000Z | Linux/Ubuntu/64bit/AVAPI/Avapi/TECHNICAL_INDICATOR/AROONOSC.hpp | AvapiDotNet/AvapiCpp | 2157ccbe750cac077098a6f1aa401d80fc943ff5 | [
"MIT"
] | null | null | null | Linux/Ubuntu/64bit/AVAPI/Avapi/TECHNICAL_INDICATOR/AROONOSC.hpp | AvapiDotNet/AvapiCpp | 2157ccbe750cac077098a6f1aa401d80fc943ff5 | [
"MIT"
] | 4 | 2018-01-31T17:06:26.000Z | 2020-05-03T20:59:27.000Z | #ifndef AROONOSC_HPP_INCLUDED
#define AROONOSC_HPP_INCLUDED
#include <string>
#include <map>
#include <list>
#include "../jsmn/jsmn.h"
using namespace std;
namespace Avapi {
class RestClient; //forward declaration
enum class Const_AROONOSC_interval{
none,
n_1min,
n_5min,
n_15min,
n_30min,
n... | 31.111801 | 104 | 0.743262 | AvapiDotNet |
9e5d618715c325995cc920febbce9c21e04c9062 | 2,489 | cpp | C++ | code/tests/glx/src/main.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/tests/glx/src/main.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | code/tests/glx/src/main.cpp | BrightComposite/RaptureStateToolkit | 6eb3c831540ba6a9d29e903dd3c537aac2e7f91f | [
"MIT"
] | null | null | null | //---------------------------------------------------------------------------
#include <application/starter.h>
//---------------------------------------------------------------------------
#include <X11/X.h>
#include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <GL/glu.h>
#include <iostream>
//----... | 23.261682 | 121 | 0.527923 | BrightComposite |
9e5fed5b8db9931f8f0dca8131debee4179261a1 | 5,253 | cpp | C++ | tests/chain_tests/plugins/tags/get_posts_and_comments_tests.cpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | tests/chain_tests/plugins/tags/get_posts_and_comments_tests.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | tests/chain_tests/plugins/tags/get_posts_and_comments_tests.cpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #include <scorum/tags/tags_api_objects.hpp>
#include <boost/test/unit_test.hpp>
#include "tags_common.hpp"
using namespace scorum;
using namespace scorum::tags::api;
using namespace scorum::app;
using namespace scorum::tags;
BOOST_FIXTURE_TEST_SUITE(get_posts_and_comments_tests, database_fixture::tags_fixture)
SCOR... | 31.08284 | 86 | 0.695031 | scorum |
9e618b77758ee753e3d33f0beaf5ff8aa3b9b031 | 614 | cpp | C++ | esp32/examples/ttgo_demo/main/system.cpp | joachimBurket/esp32-opencv | f485b59d7b43b0a2f77a5ab547e2597929f7094a | [
"BSD-3-Clause"
] | 56 | 2020-03-24T15:17:56.000Z | 2022-03-21T13:44:08.000Z | esp32/examples/ttgo_demo/main/system.cpp | 0015/esp32-opencv | f485b59d7b43b0a2f77a5ab547e2597929f7094a | [
"BSD-3-Clause"
] | 6 | 2021-03-08T13:41:24.000Z | 2022-02-19T08:10:24.000Z | esp32/examples/ttgo_demo/main/system.cpp | 0015/esp32-opencv | f485b59d7b43b0a2f77a5ab547e2597929f7094a | [
"BSD-3-Clause"
] | 15 | 2020-05-06T13:41:20.000Z | 2022-03-31T19:15:47.000Z | #include <esp_log.h>
#include <esp_system.h>
#include <sdkconfig.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <sys/param.h>
#include <esp32/clk.h>
#include "system.h"
#define TAG "SYSTEM"
void wait_msec(uint16_t v) {
vTaskDelay(v / portTICK_PERIOD_MS);
}
void wait_sec(uint16_t v) {
... | 21.928571 | 120 | 0.708469 | joachimBurket |
9e622fd05f2006fc419715ae76d2647f62cbab3c | 1,907 | hpp | C++ | include/vheis/geodesic-growth.hpp | alexbishop/Virtually-Abelian | 4f19bf39e664a6ae51ef0c7f011e2fede7762d0c | [
"MIT"
] | null | null | null | include/vheis/geodesic-growth.hpp | alexbishop/Virtually-Abelian | 4f19bf39e664a6ae51ef0c7f011e2fede7762d0c | [
"MIT"
] | null | null | null | include/vheis/geodesic-growth.hpp | alexbishop/Virtually-Abelian | 4f19bf39e664a6ae51ef0c7f011e2fede7762d0c | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <utility>
#include <vector>
#include "SafeInt.hpp"
namespace vheis {
template <class Group>
class geodesic_growth {
public:
template <class Vector>
explicit geodesic_growth(Vector g_set);
template <class Iterator>
explicit geodesic_growth(Iterator begin, Iterator end);... | 23.54321 | 69 | 0.694284 | alexbishop |
9e6696f57287cb809f6261bae1f749e86b51c56f | 484 | cpp | C++ | 228. Summary Ranges/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 228. Summary Ranges/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | 228. Summary Ranges/solution.cpp | zlsun/leetcode | 438d0020a701d7aa6a82eee0e46e5b11305abfda | [
"MIT"
] | null | null | null | /** 228. Summary Ranges
Given a sorted integer array without duplicates, return the summary of its ranges.
For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"].
Credits:Special thanks to @jianchao.li.fighter for adding this problem and creating all test cases.
**/
#include <iostream>
#include "../utils.h"
u... | 19.36 | 99 | 0.667355 | zlsun |
9e67cbfbd174db0408f4e99477194e09d737b4f8 | 4,357 | cpp | C++ | ShopListManager/ShopPackage.cpp | 0x4d696e68/InGameShop | 405e01defb59bd1cf22a5a5d245fdf2475b1ca36 | [
"MIT"
] | 5 | 2021-08-31T19:18:24.000Z | 2021-11-11T08:58:20.000Z | ShopListManager/ShopPackage.cpp | 0x4d696e68/InGameShop | 405e01defb59bd1cf22a5a5d245fdf2475b1ca36 | [
"MIT"
] | null | null | null | ShopListManager/ShopPackage.cpp | 0x4d696e68/InGameShop | 405e01defb59bd1cf22a5a5d245fdf2475b1ca36 | [
"MIT"
] | 2 | 2021-08-31T18:39:50.000Z | 2021-09-16T22:37:06.000Z | //************************************************************************
//
// Decompiled by @myheart, @synth3r
// <https://forum.ragezone.com/members/2000236254.html>
//
//
// FILE: ShopPackage.cpp
//
//
#include "stdafx.h"
#if(DECOMPILE_INGAMESHOP==1)
#include "ShopPackage.h"
#include "StringToken.h"
#include "Str... | 25.934524 | 100 | 0.706679 | 0x4d696e68 |
9e67f3cc68150c8beadda59b2c30b05adaf5e682 | 761 | cpp | C++ | Jeu/Src/ComponentsManagement/ProjectileSystem/Projectiles/Fireball.cpp | abastienIIT/Roguelike | f31935e45c968fbe608e57d0137d71251d1afc10 | [
"Apache-2.0"
] | 2 | 2021-02-07T16:07:10.000Z | 2021-02-07T23:18:43.000Z | Jeu/Src/ComponentsManagement/ProjectileSystem/Projectiles/Fireball.cpp | abastienIIT/Roguelike | f31935e45c968fbe608e57d0137d71251d1afc10 | [
"Apache-2.0"
] | 49 | 2021-02-06T19:08:07.000Z | 2021-09-14T16:43:27.000Z | Jeu/Src/ComponentsManagement/ProjectileSystem/Projectiles/Fireball.cpp | abastienIIT/Roguelike | f31935e45c968fbe608e57d0137d71251d1afc10 | [
"Apache-2.0"
] | null | null | null | #include "Fireball.h"
#include "../../Components.h"
#include "../../../Common/Globalbilboulga.h"
void Fireball::init(Entity* projectile, std::vector<Entity*>* targets)
{
ProjectileBase::init(projectile, targets);
transform->velocity = velocity;
sprite->setAsset("Fireball");
sprite->setCurrentTexture(0);
collid... | 23.060606 | 83 | 0.683311 | abastienIIT |
9e69f8a3a3c40561449fcf2c1b6021ca3b2f5dca | 5,954 | cc | C++ | src/c++/apps/echo/httpops.cc | isaac-ped/demikernel | 6f372569e3599d8bf9083df6c25490c42af74c0d | [
"MIT"
] | null | null | null | src/c++/apps/echo/httpops.cc | isaac-ped/demikernel | 6f372569e3599d8bf9083df6c25490c42af74c0d | [
"MIT"
] | null | null | null | src/c++/apps/echo/httpops.cc | isaac-ped/demikernel | 6f372569e3599d8bf9083df6c25490c42af74c0d | [
"MIT"
] | null | null | null | #include <string.h>
#include <stdio.h>
#include <stdint.h>
#include "httpops.hh"
int regex_html(char *to_match, char *htmlDoc, size_t length) {
const char *pcreErrorStr;
int errOffset;
pcre * reCompiled = pcre_compile(EVIL_REGEX, 0, &pcreErrorStr, &errOffset, NULL);
if (reCompiled == NULL) {
fp... | 33.638418 | 101 | 0.584649 | isaac-ped |
9e6b96d69508e8a7e4d2467a1b5af222443a5a6f | 2,712 | cpp | C++ | tests/picross_shell/test_cross_command.cpp | deqyra/Picross- | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | null | null | null | tests/picross_shell/test_cross_command.cpp | deqyra/Picross- | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | 1 | 2020-05-16T14:01:08.000Z | 2020-06-11T21:12:02.000Z | tests/picross_shell/test_cross_command.cpp | deqyra/PicrossEngine | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | null | null | null | #include "../../lib/catch2/catch2.hpp"
#include <sstream>
#include "../../tools/cli/cli_streams.hpp"
#include "../../tools/micro_shell/micro_shell_codes.hpp"
#include "../../picross_shell/picross_shell_state.hpp"
#include "../../picross_shell/shell_cross_command.hpp"
#include "../../core/grid.hpp"
#include "../../core... | 35.220779 | 125 | 0.614307 | deqyra |
9e6ea7609f559d3f5fa9d7c2b9f4b53b1c3d43e2 | 478 | cpp | C++ | layer2/ethernetHelper.cpp | zetwhite/SimpleEtherCATMaster | f17b04c96385d13e0cf1cdc664e4821058280273 | [
"MIT"
] | 2 | 2021-03-04T08:50:02.000Z | 2021-04-05T14:59:57.000Z | layer2/ethernetHelper.cpp | zetwhite/SimpleEtherCATMaster | f17b04c96385d13e0cf1cdc664e4821058280273 | [
"MIT"
] | null | null | null | layer2/ethernetHelper.cpp | zetwhite/SimpleEtherCATMaster | f17b04c96385d13e0cf1cdc664e4821058280273 | [
"MIT"
] | null | null | null | #include "ethernetHelper.hpp"
const int EthernetHelper::size = 14;
EthernetHelper::EthernetHelper (uint8_t srcMac[6], uint8_t destMac[6], uint16_t type){
ptr = new struct ethhdr;
memcpy(ptr->h_dest, destMac, 6);
memcpy(ptr->h_source, srcMac, 6);
ptr->h_proto = htons(type);
}
unsigned char* Et... | 26.555556 | 86 | 0.692469 | zetwhite |
9e70c3b369f80da0cad65b595b841c051f7251eb | 41,980 | cpp | C++ | engine/navigation/navigation_manager.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | engine/navigation/navigation_manager.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | engine/navigation/navigation_manager.cpp | AugustoMoura/GritEnginePR | 0f8303df7f70972036d9b555dffe08cadb473926 | [
"MIT"
] | null | null | null | //
// Copyright (c) 2009-2010 Mikko Mononen memon@inside.org
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
// Permission is granted to anyone to use this software for any purpose... | 26.910256 | 118 | 0.676941 | AugustoMoura |
9e716ed1b82e835dbbed3a6fa2d870d54d83a0f6 | 21,662 | cpp | C++ | src/ui/ui.cpp | EnthDev/dedicatedslave | d8c097082d9e1ae11740cd917a9e9d449be457d2 | [
"MIT"
] | 7 | 2018-03-05T02:58:13.000Z | 2019-01-06T13:11:50.000Z | src/ui/ui.cpp | EnthDev/dedicatedslave | d8c097082d9e1ae11740cd917a9e9d449be457d2 | [
"MIT"
] | 3 | 2017-12-21T00:29:38.000Z | 2019-04-24T01:05:12.000Z | src/ui/ui.cpp | EnthDev/dedicatedslave | d8c097082d9e1ae11740cd917a9e9d449be457d2 | [
"MIT"
] | 1 | 2019-03-07T11:41:55.000Z | 2019-03-07T11:41:55.000Z | // Includes
#include <QtWidgets>
#include "ui.h"
DedicatedSlaveUi::DedicatedSlaveUi(const QString &dir, QWidget *parent)
: QWidget(parent), app_slcInstPos(new int[2])
{
app_slcInstPos[0] = -1;
parentWin = qobject_cast<QMainWindow*>(parent);
if(parentWin != 0 ) { // After casting parent widget QMainWindow... | 36.591216 | 170 | 0.728188 | EnthDev |
9e72f674499a8b8ec62adb88341d59099f91252e | 8,949 | cpp | C++ | SimSpark/rcssserver3d/plugin/soccer/hmdp_effector/hmdpeffector.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/hmdp_effector/hmdpeffector.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/rcssserver3d/plugin/soccer/hmdp_effector/hmdpeffector.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
this file is part of rcssserver3D
Copyright (C) 2002,2003 Koblenz University
Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group
Copyright (C) 2008 N. Michael Mayer, email: nmmayer@gmail.com
This program is free software; you can... | 28.5 | 150 | 0.608224 | IllyasvielEin |
9e76384bb659a7ad64d1a252793929ad59cfc345 | 508 | cpp | C++ | Classwork/25.02.19/rectangle.cpp | 5ko99/FMI-Semester-2 | a7e7f2cc1ae7b3198728197c8b70d14156eb0996 | [
"MIT"
] | null | null | null | Classwork/25.02.19/rectangle.cpp | 5ko99/FMI-Semester-2 | a7e7f2cc1ae7b3198728197c8b70d14156eb0996 | [
"MIT"
] | null | null | null | Classwork/25.02.19/rectangle.cpp | 5ko99/FMI-Semester-2 | a7e7f2cc1ae7b3198728197c8b70d14156eb0996 | [
"MIT"
] | null | null | null | #include<iostream>;
using namespace std;
struct Rectangle{
double width;
double height;
};
void printRec(Rectangle r){
cout<<"Width:"<<r.width<<endl;
cout<<"Height:"<<r.height<<endl;
}
void initRec(Rectangle* r){
cin>>(*r).width;
cin>>(*r).height;
}
Rectangle initRec(){
Rectan... | 17.517241 | 37 | 0.555118 | 5ko99 |
9e76a925bb00ef7ec3d318043a012adeaaf8e42c | 5,445 | hpp | C++ | src/batteries/radix_queue.hpp | tonyastolfi/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 1 | 2022-01-04T20:28:17.000Z | 2022-01-04T20:28:17.000Z | src/batteries/radix_queue.hpp | mihir-thakkar/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 2 | 2020-06-04T14:02:24.000Z | 2020-06-04T14:03:18.000Z | src/batteries/radix_queue.hpp | mihir-thakkar/batteries | 67349930e54785f44eab84f1e56da6c78c66a5f9 | [
"Apache-2.0"
] | 1 | 2022-01-03T20:24:31.000Z | 2022-01-03T20:24:31.000Z | // Copyright 2021 Anthony Paul Astolfi
//
#pragma once
#ifndef BATTERIES_RADIX_QUEUE_HPP
#define BATTERIES_RADIX_QUEUE_HPP
#include <batteries/assert.hpp>
#include <batteries/int_types.hpp>
#include <boost/functional/hash.hpp>
#include <array>
#include <limits>
#include <type_traits>
namespace batt {
template <usi... | 26.052632 | 108 | 0.547658 | tonyastolfi |
9e7a1c6c684d37995423a925a87f05e1ff12801a | 13,114 | cpp | C++ | groups/bdl/bdlde/bdlde_quotedprintableencoder.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 1 | 2021-11-10T16:53:42.000Z | 2021-11-10T16:53:42.000Z | groups/bdl/bdlde/bdlde_quotedprintableencoder.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 2 | 2020-11-05T15:20:55.000Z | 2021-01-05T19:38:43.000Z | groups/bdl/bdlde/bdlde_quotedprintableencoder.cpp | seanbaxter/bde-1 | 149176ebc2ae49c3b563895a7332fe638a760782 | [
"Apache-2.0"
] | 2 | 2020-01-16T17:58:12.000Z | 2020-08-11T20:59:30.000Z | // bdlde_quotedprintableencoder.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... | 31.830097 | 79 | 0.538356 | seanbaxter |
9e7c6bad8dc38dc8cd43fbe739f5ef56c9044bff | 200 | hpp | C++ | Algorithm.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | 2 | 2019-10-07T01:48:53.000Z | 2019-10-13T08:24:22.000Z | Algorithm.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | null | null | null | Algorithm.hpp | NagiSenbon/Algorithm | e8044820a2cdd6a26d58097fd84512f3231d8dd6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "src/Headers.hpp"
#include "src/Heap.hpp"
#include "src/Math.hpp"
#include "src/Meta.hpp"
#include "src/Queue.hpp"
#include "src/Sort.hpp"
// #include "src/Tensor.hpp"
| 20 | 29 | 0.675 | NagiSenbon |
9e8113d1fca423b20b9a8299dc50a8aa10fd200d | 11,716 | cpp | C++ | kcfi/llvm-kcfi/lib/CodeGen/CFI.cpp | IntelSTORM/Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | 1 | 2022-01-11T11:12:00.000Z | 2022-01-11T11:12:00.000Z | kcfi/llvm-kcfi/lib/CodeGen/CFI.cpp | IntelSTORMteam/Jurassic-Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | null | null | null | kcfi/llvm-kcfi/lib/CodeGen/CFI.cpp | IntelSTORMteam/Jurassic-Projects | b983417a5ca22c7679da5a1144b348863bea5698 | [
"Intel"
] | null | null | null | //===---- CFI.cpp - kCFI LLVM IR analyzes and transformation --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 29.964194 | 80 | 0.597986 | IntelSTORM |
9e877c98b23dfe47cefd55199d26bc9eba31bba1 | 1,689 | cpp | C++ | cpp/leetcode/LongestStringChain.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/LongestStringChain.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/LongestStringChain.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | //Leetcode Problem No 1048. Longest String Chain
//Solution written by Xuqiang Fang on 18 May, 2019
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <queue>
using namespace std;
class Solution{
public:
int longes... | 21.653846 | 72 | 0.487863 | danyfang |
9e8c11d9faa94fe11338d41a60378b8707f4955e | 2,876 | cpp | C++ | src/window/preferences/init_chilren.cpp | LibreTextus/LibreTextus | a142c0bed2237b1b252e1ff5dcfdbe82bd4439d3 | [
"CC0-1.0"
] | 3 | 2020-08-26T06:18:42.000Z | 2021-01-16T17:22:29.000Z | src/window/preferences/init_chilren.cpp | LibreTextus/LibreTextus | a142c0bed2237b1b252e1ff5dcfdbe82bd4439d3 | [
"CC0-1.0"
] | null | null | null | src/window/preferences/init_chilren.cpp | LibreTextus/LibreTextus | a142c0bed2237b1b252e1ff5dcfdbe82bd4439d3 | [
"CC0-1.0"
] | null | null | null | #include "preferences.hpp"
void Libre::PreferencesWindow::add_themes_to_themes_combo() {
std::vector<std::string> v = this->settings.get_children("themes", "name");
for (std::vector<std::string>::iterator i = v.begin(); i != v.end(); i++) {
this->ui_pane.get_theme()->get_element()->append(*i);
if (*i == thi... | 37.350649 | 131 | 0.714882 | LibreTextus |
9e8dc554686bf44921293885bf7ce947bc2e370e | 1,291 | cpp | C++ | src/thumbnailholder.cpp | digitalsurgeon/EasyWallpapers | 86f62ad6453ed079f9b889d6adc910f0d89092c1 | [
"MIT"
] | null | null | null | src/thumbnailholder.cpp | digitalsurgeon/EasyWallpapers | 86f62ad6453ed079f9b889d6adc910f0d89092c1 | [
"MIT"
] | null | null | null | src/thumbnailholder.cpp | digitalsurgeon/EasyWallpapers | 86f62ad6453ed079f9b889d6adc910f0d89092c1 | [
"MIT"
] | null | null | null | #include "thumbnailholder.h"
#if defined(Q_OS_SYMBIAN)
#include <e32std.h>
#include <touchfeedback.h>
#endif
ThumbnailHolder::ThumbnailHolder() : iPixmap(NULL)
{
setFlag(QGraphicsItem::ItemClipsToShape);
}
ThumbnailHolder::~ThumbnailHolder()
{
delete iPixmap;
}
QRectF ThumbnailHolder::boundingRect() const
... | 18.985294 | 80 | 0.660728 | digitalsurgeon |
9e8ecb5a2f10b5b2c0fae200a98321ecacf7a626 | 3,623 | cxx | C++ | source/opengl/ui_renderer.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 2 | 2016-07-22T10:09:21.000Z | 2017-09-16T06:50:01.000Z | source/opengl/ui_renderer.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | 14 | 2016-08-13T22:45:56.000Z | 2018-12-16T03:56:36.000Z | source/opengl/ui_renderer.cxx | bjadamson/BoomHS | 60b5d8ddc2490ec57e8f530ba7ce3135221e2ec4 | [
"MIT"
] | null | null | null | #include <opengl/ui_renderer.hpp>
#include <opengl/bind.hpp>
#include <opengl/draw_info.hpp>
#include <opengl/gpu.hpp>
#include <opengl/renderer.hpp>
#include <opengl/shader.hpp>
#include <boomhs/camera.hpp>
#include <boomhs/math.hpp>
#include <boomhs/rectangle.hpp>
#include <boomhs/shape.hpp>
using namespace boomhs;... | 26.837037 | 111 | 0.665471 | bjadamson |
9e9062b2ab3c13a91fb34a48dc732c589d6af198 | 1,136 | cpp | C++ | Sid's Contests/LeetCode contests/May Challenge/Non Decreasing Array.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 14 | 2021-08-22T18:21:14.000Z | 2022-03-08T12:04:23.000Z | Sid's Contests/LeetCode contests/May Challenge/Non Decreasing Array.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 1 | 2021-10-17T18:47:17.000Z | 2021-10-17T18:47:17.000Z | Sid's Contests/LeetCode contests/May Challenge/Non Decreasing Array.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | 5 | 2021-09-01T08:21:12.000Z | 2022-03-09T12:13:39.000Z | class Solution {
public:
bool isSorted(vector<int> nums)
{
vector<int> res;
for(int i = 0; i < nums.size(); i++)
res.push_back(nums[i]);
sort(res.begin(), res.end());
for(int i = 0; i < res.size(); i++)
if(res[i] != nums[i])
return false;
... | 26.418605 | 73 | 0.415493 | Tiger-Team-01 |
9e90a644d3f786772ec655721f087a69972ab44f | 59 | cpp | C++ | C++/Algorytmy dla zabawy/Quiz/start.cpp | Kwandes/highschool-code | ffaf7aea78236cec709ec7c70886df5427005332 | [
"MIT"
] | null | null | null | C++/Algorytmy dla zabawy/Quiz/start.cpp | Kwandes/highschool-code | ffaf7aea78236cec709ec7c70886df5427005332 | [
"MIT"
] | null | null | null | C++/Algorytmy dla zabawy/Quiz/start.cpp | Kwandes/highschool-code | ffaf7aea78236cec709ec7c70886df5427005332 | [
"MIT"
] | null | null | null | #include <iostream>
#include "quiz.h"
using namespace std;
| 14.75 | 20 | 0.745763 | Kwandes |
9e91d353b7c868acdb6e2efdcbe5bcf792310ffd | 96 | cpp | C++ | src/widgets/Library/ProgramLibraryController.cpp | javedlingasur/CompileOne | 646da061ea9a8c427a533490cb612f5858de3f09 | [
"MIT"
] | null | null | null | src/widgets/Library/ProgramLibraryController.cpp | javedlingasur/CompileOne | 646da061ea9a8c427a533490cb612f5858de3f09 | [
"MIT"
] | null | null | null | src/widgets/Library/ProgramLibraryController.cpp | javedlingasur/CompileOne | 646da061ea9a8c427a533490cb612f5858de3f09 | [
"MIT"
] | null | null | null | #include "ProgramLibraryController.h"
ProgramLibraryController::ProgramLibraryController()
{
}
| 16 | 52 | 0.833333 | javedlingasur |
9e9928d6d8f93fef0c661d8e2b30a0046d429f03 | 4,688 | cpp | C++ | src/c-API/cTracer.cpp | mensinda/tracer | 874d859a1ac98f296610c8d634eb557e5bc9c515 | [
"BSD-3-Clause"
] | 11 | 2017-07-04T11:23:19.000Z | 2021-08-24T05:20:01.000Z | src/c-API/cTracer.cpp | mensinda/tracer | 874d859a1ac98f296610c8d634eb557e5bc9c515 | [
"BSD-3-Clause"
] | null | null | null | src/c-API/cTracer.cpp | mensinda/tracer | 874d859a1ac98f296610c8d634eb557e5bc9c515 | [
"BSD-3-Clause"
] | 4 | 2017-07-07T19:36:16.000Z | 2022-01-05T15:30:08.000Z | /* Copyright (c) 2017, Daniel Mensinger
* 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 co... | 31.675676 | 113 | 0.715657 | mensinda |
9e9a7a21b244e330a0fe45bffa695183c9e364d8 | 2,281 | cpp | C++ | src/argparse.cpp | The-Compiler/herbstluftwm | a4f13aa299a760841ee204ddb180944bad6ceb2d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/argparse.cpp | The-Compiler/herbstluftwm | a4f13aa299a760841ee204ddb180944bad6ceb2d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/argparse.cpp | The-Compiler/herbstluftwm | a4f13aa299a760841ee204ddb180944bad6ceb2d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #include "argparse.h"
#include <iostream>
using std::string;
/**
* @brief try to parse the arguments
* @param input
* @param output
* @return return whether there has been an error (true = error, false = no error)
*/
bool ArgParse::parsingFails(Input& input, Output& output)
{
size_t mandatoryArguments = 0;
... | 33.544118 | 82 | 0.55765 | The-Compiler |
9e9a9292f67c90512d6916416204819b1fb0ae5b | 2,837 | cpp | C++ | Source/AliveLibAO/RollingBallShaker.cpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | 1 | 2021-04-11T23:44:43.000Z | 2021-04-11T23:44:43.000Z | Source/AliveLibAO/RollingBallShaker.cpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | Source/AliveLibAO/RollingBallShaker.cpp | THEONLYDarkShadow/alive_reversing | 680d87088023f2d5f2a40c42d6543809281374fb | [
"MIT"
] | null | null | null | #include "stdafx_ao.h"
#include "RollingBallShaker.hpp"
#include "Function.hpp"
#include "Game.hpp"
#include "stdlib.hpp"
#include "PsxDisplay.hpp"
#include "ScreenManager.hpp"
#include "Primitives.hpp"
void RollingBallShaker_ForceLink() {}
namespace AO {
const static PSX_Pos16 sRollingBallShakerScreenOffsets_4BB740... | 22.696 | 105 | 0.670427 | THEONLYDarkShadow |
9e9bb1d1c9542e659e86698919f1538459c57b57 | 337 | cpp | C++ | CodeForces/Complete/700-799/714A-MeetingOldFriends.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/700-799/714A-MeetingOldFriends.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/700-799/714A-MeetingOldFriends.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <cstdio>
int main(){
long long l1, r1, l2, r2, k; scanf("%lld %lld %lld %lld %lld", &l1, &r1, &l2, &r2, &k);
long long l = (l1 > l2) ? l1 : l2;
long long r = (r1 < r2) ? r1 : r2;
long long res = r - l + 1;
if(l <= k && k <= r){--res;}
if(res <= 0){res = 0;}
printf("%lld\n", res);
... | 22.466667 | 91 | 0.454006 | Ashwanigupta9125 |
9e9de3e0c55836644fa4ad9692f6e2948e3c5f59 | 5,983 | cpp | C++ | lib/Dialect/TPU/Interpreter/core/csc.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | 3 | 2022-03-14T11:47:20.000Z | 2022-03-16T01:45:37.000Z | lib/Dialect/TPU/Interpreter/core/csc.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | null | null | null | lib/Dialect/TPU/Interpreter/core/csc.cpp | sophgo/tpu_compiler | 6299ea0a3adae1e5c206bcb9bedf225d16e636db | [
"Apache-2.0"
] | null | null | null | #include "tpuc/Interpreter/cpu/csc.hpp"
#include "internal.hpp"
#include "tpuc/Dialect/TPU/TPUDialect.h"
#include "tpuc/MlirModuleInterpreter.h"
static inline int align_up(int x, int n) {
if (n == 0 || n == 1) {
return x;
}
return ((x + n - 1) / n) * n;
}
static inline float UINT8(float data) {
return sta... | 36.705521 | 98 | 0.563263 | sophgo |
9e9f8638d6bf5ad630ae93ca7924219572182f61 | 1,053 | cpp | C++ | comb_SWEEP_D1_main.cpp | imrehg/bloch | d4920b325b685a0e8842e305f7f9613b6a0fbf42 | [
"MIT"
] | 2 | 2016-08-08T12:33:37.000Z | 2017-09-15T08:38:55.000Z | comb_SWEEP_D1_main.cpp | imrehg/bloch | d4920b325b685a0e8842e305f7f9613b6a0fbf42 | [
"MIT"
] | null | null | null | comb_SWEEP_D1_main.cpp | imrehg/bloch | d4920b325b685a0e8842e305f7f9613b6a0fbf42 | [
"MIT"
] | null | null | null | #include "comb.h"
int main()
{
for(int i=0;i<11;i+=1)
sweep(30,1000000,10*pow(2,i),1/pow(10,4),0,10,12,10,600,15,0);
//sweep steps, total steps, power(uW/cm2),convergence condition,convergence threshold,convergency steps,ADM order,n1 interval,n2 interval,Matrix self multiplication,laser detune
//fst... | 29.25 | 183 | 0.678063 | imrehg |
9ea4b8ad82da2c9b3a9535d29b2e02d53215371c | 2,723 | cpp | C++ | Github-Arduino/libraries/ideawu_RTC/base/packet.cpp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | Github-Arduino/libraries/ideawu_RTC/base/packet.cpp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | Github-Arduino/libraries/ideawu_RTC/base/packet.cpp | famley-richards/Documents-KTibow | b5d2be03ea2f6687cd9d854d9f43ef839a37e275 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "log.h"
#include "packet.h"
int Packet::parse(){
parsed = true;
this->params_.clear();
if(this->len < HEADER_LEN){
return -1;
}
int size = this->size();
char *head = (char *)this->data();
while(size > 0){
if(head[0] == ' ' || head[0] == '\r'){
head ++;
size --;
cont... | 18.909722 | 81 | 0.573265 | famley-richards |
9ea812a3010535aa59762748ff0aa6ef36e1d939 | 1,554 | cpp | C++ | src/factory/font.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | 7 | 2019-08-07T21:27:27.000Z | 2020-11-27T16:33:16.000Z | src/factory/font.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | src/factory/font.cpp | equal-games/equal | acaf0d456d7b996dd2a6bc23150cd45ddf618296 | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Equal Games
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 28.254545 | 110 | 0.698198 | equal-games |
9ea8d3c8220c1d7b5590f4de0745222909c735b4 | 5,155 | cpp | C++ | Qt_GUI/DisplayPanelWidget.cpp | SDUBigDataCourse/RecursiveSubdivision-basedSampling | a187eabe37e64312b326461d29800f1aff25371c | [
"MIT"
] | 5 | 2020-10-26T09:42:16.000Z | 2022-02-16T10:36:24.000Z | Qt_GUI/DisplayPanelWidget.cpp | Ideas-Laboratory/RecursiveSubdivision-basedSampling | 2b8cbae9cb72a05089ace5ccee4745d33121d60f | [
"MIT"
] | null | null | null | Qt_GUI/DisplayPanelWidget.cpp | Ideas-Laboratory/RecursiveSubdivision-basedSampling | 2b8cbae9cb72a05089ace5ccee4745d33121d60f | [
"MIT"
] | 2 | 2019-09-09T08:01:37.000Z | 2019-12-01T03:36:47.000Z | #include "DisplayPanelWidget.h"
using namespace std;
DisplayPanelWidget::DisplayPanelWidget(SamplingProcessViewer *spv, unordered_map<uint, string> *c2l_mapping, QWidget * parent) : QWidget(parent), viewer(spv), class2label(c2l_mapping)
{
setFixedWidth(440);
container = dynamic_cast<QScrollArea*>(parent);
QVBoxLa... | 37.627737 | 183 | 0.711542 | SDUBigDataCourse |
9ea910c3b6479e86e3bac33e8e3cb5d3b2af02b2 | 2,015 | cpp | C++ | JayEngine/Jay_Engine/UI_Hierarchy.cpp | Josef212/JayEngine | 437faf3c81eb9c13bb99a104338c7de4434323c6 | [
"MIT"
] | null | null | null | JayEngine/Jay_Engine/UI_Hierarchy.cpp | Josef212/JayEngine | 437faf3c81eb9c13bb99a104338c7de4434323c6 | [
"MIT"
] | 2 | 2016-09-27T09:29:06.000Z | 2016-11-02T09:42:13.000Z | JayEngine/Jay_Engine/UI_Hierarchy.cpp | Josef212/JayEngine | 437faf3c81eb9c13bb99a104338c7de4434323c6 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "UI_Hierarchy.h"
#include "ModuleGOManager.h"
#include "GameObject.h"
#include "Component.h"
#include "Transform.h"
#include "Mesh.h"
#include "Material.h"
#include "ModuleWindow.h"
UI_Hierarchy::UI_Hierarchy(bool startEnalbed) : UI_Panel(startEnalbed)
{
}
UI_Hierarchy::~UI_Hierar... | 23.430233 | 146 | 0.701241 | Josef212 |
9ea93736a1011d8434627a70580108e9b05f012d | 270 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/quest/QuickItemsSet.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 42 | 2020-12-25T08:33:00.000Z | 2022-03-22T14:47:07.000Z | include/RED4ext/Scripting/Natives/Generated/quest/QuickItemsSet.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 38 | 2020-12-28T22:36:06.000Z | 2022-02-16T11:25:47.000Z | include/RED4ext/Scripting/Natives/Generated/quest/QuickItemsSet.hpp | jackhumbert/RED4ext.SDK | 2c55eccb83beabbbe02abae7945af8efce638fca | [
"MIT"
] | 20 | 2020-12-28T22:17:38.000Z | 2022-03-22T17:19:01.000Z | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
namespace RED4ext
{
namespace quest {
enum class QuickItemsSet : uint32_t
{
Q001_Kereznikov_Heal_Phone = 0,
Q003_All = 1,
};
} // namespace quest
} // namespace RED4ext
| 16.875 | 57 | 0.722222 | jackhumbert |