hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
37c5a322be381b13ec2a502c4e1a2f5ca962a7a7 | 775 | cpp | C++ | src/gtp_lz_stub.cpp | wentaol/zero-problem | 887e61826225137b5c7e40feea8ae932bdcf333b | [
"CC0-1.0"
] | 5 | 2018-12-12T01:53:27.000Z | 2022-03-17T00:58:12.000Z | src/gtp_lz_stub.cpp | wentaol/zero-problem | 887e61826225137b5c7e40feea8ae932bdcf333b | [
"CC0-1.0"
] | null | null | null | src/gtp_lz_stub.cpp | wentaol/zero-problem | 887e61826225137b5c7e40feea8ae932bdcf333b | [
"CC0-1.0"
] | 1 | 2020-01-11T00:12:25.000Z | 2020-01-11T00:12:25.000Z | #include "gtp_lz_stub.h"
#include "log_file.h"
GtpLzStub::GtpLzStub(const std::string& e)
: ess(e)
{
}
std::string GtpLzStub::getLine()
{
std::string line;
if (ess && std::getline(ess, line)) {
Log(line);
return line;
}
return std::string();
}
std::string GtpLzStub::getLine(const std::str... | 15.816327 | 53 | 0.576774 | wentaol |
37c9801635037205743d7450780d028b62468482 | 6,813 | cpp | C++ | 3dbody/util/ConfigMap.cpp | GuangfuWang/threedbody | 31c544c25e524cecf107a505c3b4438fc04cd766 | [
"BSD-2-Clause"
] | null | null | null | 3dbody/util/ConfigMap.cpp | GuangfuWang/threedbody | 31c544c25e524cecf107a505c3b4438fc04cd766 | [
"BSD-2-Clause"
] | null | null | null | 3dbody/util/ConfigMap.cpp | GuangfuWang/threedbody | 31c544c25e524cecf107a505c3b4438fc04cd766 | [
"BSD-2-Clause"
] | null | null | null | #include "util/ConfigMap.h"
#include "util/StringHelper.h"
#include "util/Log.h"
#include <fstream>
namespace gf {
BasicInfoMap *BasicInfoMap::instance = nullptr;
ConfigMap *ConfigMap::instance = nullptr;
BasicInfoMap::BasicInfoMap() {
init();
}
Ref_Unique<BasicInfoMap> BasicInfoMa... | 35.857895 | 76 | 0.530016 | GuangfuWang |
37cb62a0450c24ec6ba7f0f2275726b800a2a5a7 | 3,699 | hpp | C++ | Sisyphe/interpreter/plugins/libpdbPlg/interpreter/src/IDiaSourceFilePtrInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/interpreter/plugins/libpdbPlg/interpreter/src/IDiaSourceFilePtrInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/interpreter/plugins/libpdbPlg/interpreter/src/IDiaSourceFilePtrInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | /*
* IDiaSourceFilePtrInterpreter.hpp
*
*
* @date 12-07-2020
* @author Teddy DIDE
* @version 1.00
* Pdb Interpreter generated by gensources.
*/
#ifndef _IDIASOURCEFILEPTR_INTERPRETER_H_
#define _IDIASOURCEFILEPTR_INTERPRETER_H_
#include "config.hpp"
#include "Macros.hpp"
#include "Base.hpp"
#i... | 36.99 | 190 | 0.751825 | tedi21 |
56d2efb9bdf40aae8eab3718799d648f20dd27dd | 1,215 | cpp | C++ | Scheduling/FCFS/DiffArrivalTime/fcfs.cpp | Gurubalan-GIT/OS-Algorithms | 0a5906b8e36343fe54e50094cf256dfea51422fd | [
"BSD-3-Clause"
] | null | null | null | Scheduling/FCFS/DiffArrivalTime/fcfs.cpp | Gurubalan-GIT/OS-Algorithms | 0a5906b8e36343fe54e50094cf256dfea51422fd | [
"BSD-3-Clause"
] | null | null | null | Scheduling/FCFS/DiffArrivalTime/fcfs.cpp | Gurubalan-GIT/OS-Algorithms | 0a5906b8e36343fe54e50094cf256dfea51422fd | [
"BSD-3-Clause"
] | null | null | null | /*
* Created Date: Tuesday April 9th 2019
* Author: Gurubalan Harikrishnan
* Email-ID: gurubalan.work@gmail.com
* -----
* Copyright (c) 2019 Gurubalan Harikrishnan
*/
#include<iostream>
using namespace std;
int main(){
int n,twt,ttat,temp1,temp2=0;
int bt[100],at[100],wt[100],tat[100],st[100];
cout<<"... | 22.924528 | 89 | 0.451852 | Gurubalan-GIT |
56dad6d7b7c06f5cd24f25ba619ccbb13e08632f | 629 | cpp | C++ | 04_template_meta_programming/18_type_list_00_head_tail.cpp | cpptt-book/2nd | d710af6df9ed2561bc7432be7b0b0b93dafecb0a | [
"CC0-1.0"
] | 17 | 2015-01-07T08:10:09.000Z | 2021-06-21T13:07:25.000Z | 04_template_meta_programming/18_type_list_00_head_tail.cpp | cpptt-book/2nd | d710af6df9ed2561bc7432be7b0b0b93dafecb0a | [
"CC0-1.0"
] | null | null | null | 04_template_meta_programming/18_type_list_00_head_tail.cpp | cpptt-book/2nd | d710af6df9ed2561bc7432be7b0b0b93dafecb0a | [
"CC0-1.0"
] | 5 | 2015-05-02T19:07:43.000Z | 2021-11-14T21:21:32.000Z | // Copyright (c) 2014
// Akira Takahashi, Fumiki Fukuda.
// Released under the CC0 1.0 Universal license.
#include <tuple>
#include <type_traits>
template <class Head, class... Tail>
struct g {
typedef Head head;
typedef std::tuple<Tail...> tail;
};
template <class... List>
struct f {
typedef typename g<List..... | 18.5 | 48 | 0.669316 | cpptt-book |
56e4377256c65cc3aa5aacec8896da81819d5f70 | 6,789 | cpp | C++ | library/L2_HAL/sensors/battery/test/ltc4150_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | 1 | 2019-11-25T20:31:07.000Z | 2019-11-25T20:31:07.000Z | library/L2_HAL/sensors/battery/test/ltc4150_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | library/L2_HAL/sensors/battery/test/ltc4150_test.cpp | diarkia124/SJSU-Dev2 | 3385f034690d281c2720e17b0a6bdbe51a65113c | [
"Apache-2.0"
] | null | null | null | #include "L2_HAL/sensors/battery/ltc4150.hpp"
#include "L2_HAL/sensors/battery/coulomb_counter.hpp"
#include "L4_Testing/testing_frameworks.hpp"
#include "L1_Peripheral/interrupt.hpp"
#include "L1_Peripheral/gpio.hpp"
#include "utility/units.hpp"
#include "utility/log.hpp"
namespace sjsu
{
auto GetLambda(InterruptCall... | 43.242038 | 78 | 0.689498 | diarkia124 |
56e8b254a097294d2995fcb3d9b47fac023e8cb5 | 1,101 | hpp | C++ | include/gbAudio/Exceptions.hpp | ComicSansMS/GhulbusAudio | 895ed529d98f10cdbd68dcbcc5a5de655bb099d1 | [
"MIT"
] | null | null | null | include/gbAudio/Exceptions.hpp | ComicSansMS/GhulbusAudio | 895ed529d98f10cdbd68dcbcc5a5de655bb099d1 | [
"MIT"
] | null | null | null | include/gbAudio/Exceptions.hpp | ComicSansMS/GhulbusAudio | 895ed529d98f10cdbd68dcbcc5a5de655bb099d1 | [
"MIT"
] | null | null | null | #ifndef GHULBUS_LIBRARY_INCLUDE_GUARD_AUDIO_EXCEPTIONS_HPP
#define GHULBUS_LIBRARY_INCLUDE_GUARD_AUDIO_EXCEPTIONS_HPP
/** @file
*
* @brief Exceptions.
* @author Andreas Weis (der_ghulbus@ghulbus-inc.de)
*/
#include <gbAudio/config.hpp>
#include <gbBase/Exception.hpp>
namespace GHULBUS_AUDIO_NAMESPACE
{
/** Exceptio... | 21.588235 | 98 | 0.703906 | ComicSansMS |
56e8f2b7b825adca7e275ce0b965086df5386b65 | 6,607 | cpp | C++ | c++/src/lac.cpp | LGDEMO/lac | 49416fc738daa3d3e131b130242f2ab6eb84fb68 | [
"Apache-2.0"
] | 1 | 2021-08-05T12:12:57.000Z | 2021-08-05T12:12:57.000Z | c++/src/lac.cpp | gokunwu/lac | 407b5566f6c6aa6d9a43362871b71cf97d33a813 | [
"Apache-2.0"
] | null | null | null | c++/src/lac.cpp | gokunwu/lac | 407b5566f6c6aa6d9a43362871b71cf97d33a813 | [
"Apache-2.0"
] | 1 | 2021-08-09T12:37:39.000Z | 2021-08-09T12:37:39.000Z | /* Copyright (c) 2020 Baidu, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 32.870647 | 119 | 0.629938 | LGDEMO |
56eddb4248c2f08e2b86c3ec34cb5fcc8617340c | 383 | hpp | C++ | 2015/Day18/src/Light.hpp | Xav83/AdventOfCode | 7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5 | [
"MIT"
] | 2 | 2019-11-14T18:11:02.000Z | 2020-01-20T22:40:31.000Z | 2015/Day18/src/Light.hpp | Xav83/AdventOfCode | 7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5 | [
"MIT"
] | null | null | null | 2015/Day18/src/Light.hpp | Xav83/AdventOfCode | 7e305b89abe0a497efdab0f1a3bfe2bfc24b36d5 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
using LightState = bool;
class Light {
public:
Light(LightState initialState);
~Light();
virtual bool isOn() const;
virtual bool isOff() const;
void
prepareNextState(const std::vector<std::reference_wrapper<Light>> &neighbors);
void nextState();
private:
LightState ... | 15.958333 | 80 | 0.720627 | Xav83 |
56ee8abe8ec1f8f557be87b17f55f4c777e23c09 | 4,926 | hpp | C++ | src/lib/include/black/logic/lex.hpp | black-sat/black | 80902240987312fb0e6f00227a06e9f9c9728a67 | [
"MIT"
] | 4 | 2020-09-30T15:16:22.000Z | 2021-09-20T15:02:39.000Z | src/lib/include/black/logic/lex.hpp | teodorov/black | 4de280ded5e99cc515141b4acc35137ba32c2469 | [
"MIT"
] | 42 | 2020-07-15T13:46:11.000Z | 2022-03-10T09:42:43.000Z | src/lib/include/black/logic/lex.hpp | teodorov/black | 4de280ded5e99cc515141b4acc35137ba32c2469 | [
"MIT"
] | 3 | 2020-03-30T14:39:17.000Z | 2022-03-18T14:05:33.000Z | //
// BLACK - Bounded Ltl sAtisfiability ChecKer
//
// (C) 2019 Nicola Gigante
//
// 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 righ... | 29.147929 | 80 | 0.623427 | black-sat |
56f96c06b18d4aa54fbee65911eed499bd335632 | 735 | cpp | C++ | File Processing/sequentialFile.cpp | jc-andrade/cpp-exercises | 8cb6234c29d4d0d5bb588bdd168d30517e60e185 | [
"MIT"
] | null | null | null | File Processing/sequentialFile.cpp | jc-andrade/cpp-exercises | 8cb6234c29d4d0d5bb588bdd168d30517e60e185 | [
"MIT"
] | null | null | null | File Processing/sequentialFile.cpp | jc-andrade/cpp-exercises | 8cb6234c29d4d0d5bb588bdd168d30517e60e185 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <fstream> // file stream
#include <cstdlib>
using namespace std;
int main()
{
// ofsstream constructor opens file
ofstream outClientFile("clients.txt", ios::out);
// exit program if unable to create file
if (!outClientFile) // overloaded ! operator
{
cerr << "Fi... | 21 | 68 | 0.642177 | jc-andrade |
56febbfe632bd6e647d854a40fdacbeee91131b0 | 2,052 | cxx | C++ | test/mpi/cxx/comm/commname2.cxx | OpenCMISS-Dependencies/mpich2 | cc5f4d3fd0f8c9f2774d10deaebdced77985d839 | [
"Unlicense"
] | 7 | 2015-12-31T03:15:50.000Z | 2020-08-15T00:54:47.000Z | test/mpi/cxx/comm/commname2.cxx | grondo/mvapich2-cce | ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb | [
"Intel",
"mpich2",
"Unlicense"
] | 3 | 2015-12-30T22:28:15.000Z | 2017-05-16T19:17:42.000Z | test/mpi/cxx/comm/commname2.cxx | grondo/mvapich2-cce | ec084d8e07db1cf2ac1352ee4c604ae7dbae55cb | [
"Intel",
"mpich2",
"Unlicense"
] | 3 | 2015-12-29T22:14:56.000Z | 2019-06-13T07:23:35.000Z | /* -*- Mode: C++; c-basic-offset:4 ; -*- */
/*
*
* (C) 2003 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpi.h"
#include "mpitestconf.h"
#ifdef HAVE_IOSTREAM
// Not all C++ compilers have iostream instead of iostream.h
#include <iostream>
#ifdef HAVE_NAMESPACE_STD
// Th... | 24.428571 | 71 | 0.575049 | OpenCMISS-Dependencies |
56fee6d8c1122247e1eeced1fadf0074045897e6 | 57 | cpp | C++ | Tga3D/Source/tga2dcore/tga2d/math/CommonMath.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | 1 | 2022-03-10T11:43:24.000Z | 2022-03-10T11:43:24.000Z | Tga3D/Source/tga2dcore/tga2d/math/CommonMath.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | Tga3D/Source/tga2dcore/tga2d/math/CommonMath.cpp | sarisman84/C-CommonUtilities | a3649c32232ec342c25b804001c16c295885ce0c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include <tga2d/math/CommonMath.h>
| 19 | 35 | 0.719298 | sarisman84 |
7102c1e66822922c85dd02983bbc02586b572c14 | 3,564 | cpp | C++ | Source/UnrealGT/Private/Streamers/GTThreadedTCPStreamer.cpp | charleshamesse/unrealgt | 04f72c344b468a39337a2e6b2f12576f501bccfa | [
"MIT"
] | 13 | 2020-04-19T22:30:54.000Z | 2022-03-28T11:39:37.000Z | Source/UnrealGT/Private/Streamers/GTThreadedTCPStreamer.cpp | charleshamesse/unrealgt | 04f72c344b468a39337a2e6b2f12576f501bccfa | [
"MIT"
] | 9 | 2020-03-30T22:27:38.000Z | 2022-03-24T16:49:37.000Z | Source/UnrealGT/Private/Streamers/GTThreadedTCPStreamer.cpp | charleshamesse/unrealgt | 04f72c344b468a39337a2e6b2f12576f501bccfa | [
"MIT"
] | 4 | 2020-05-10T18:41:16.000Z | 2022-03-16T07:01:13.000Z | // Fill out your copyright notice in the Description page of Project Settings.
#include "Streamers/GTThreadedTCPStreamer.h"
#include <IPAddress.h>
#include <SocketSubsystem.h>
#include <Sockets.h>
FGTThreadedTCPStreamer::FGTThreadedTCPStreamer(FString IPAddress, uint32 Port)
: Socket(nullptr)
, IPAddress(IPA... | 28.741935 | 93 | 0.60578 | charleshamesse |
7105f4fbb57497a242234d787da69363763021c0 | 934 | cc | C++ | cpp/leetcode/151.reverse-words-in-a-string.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | 3 | 2021-03-03T13:18:23.000Z | 2022-02-09T07:49:24.000Z | cpp/leetcode/151.reverse-words-in-a-string.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | null | null | null | cpp/leetcode/151.reverse-words-in-a-string.cc | liubang/laboratory | 747f239a123cd0c2e5eeba893b9a4d1536555b1e | [
"MIT"
] | 1 | 2021-03-29T15:21:42.000Z | 2021-03-29T15:21:42.000Z | #include <gtest/gtest.h>
#include <string>
namespace {
class Solution {
public:
std::string reverseWords(const std::string& s) {
int len = s.length();
if (len == 0 || len == 1) {
return s;
}
std::string ret;
int i = 0;
while (s[i] == ' ' && i < len) {
i++;
}
for (; i < l... | 19.87234 | 52 | 0.512848 | liubang |
710924e57ad5a3ef8fe8fe0b2e58fea9253663d7 | 760 | hpp | C++ | include/telnetpp/options/suppress_ga/server.hpp | KazDragon/telnetpp | c9b49588fca2c2186189421d2711c0e4febe13ed | [
"MIT"
] | 49 | 2015-12-15T22:35:32.000Z | 2022-03-30T16:08:10.000Z | include/telnetpp/options/suppress_ga/server.hpp | KazDragon/telnetpp | c9b49588fca2c2186189421d2711c0e4febe13ed | [
"MIT"
] | 188 | 2015-10-02T16:07:30.000Z | 2022-03-08T06:53:29.000Z | include/telnetpp/options/suppress_ga/server.hpp | KazDragon/telnetpp | c9b49588fca2c2186189421d2711c0e4febe13ed | [
"MIT"
] | 15 | 2015-10-02T06:56:36.000Z | 2021-05-21T18:59:26.000Z | #pragma once
#include "telnetpp/core.hpp"
#include "telnetpp/options/basic_server.hpp"
#include "telnetpp/options/suppress_ga/detail/protocol.hpp"
namespace telnetpp { namespace options { namespace suppress_ga {
//* =========================================================================
/// \class telnetpp::option... | 30.4 | 77 | 0.594737 | KazDragon |
710cd7933ad09da9ec2884f6dd2d4cc0a6f6858b | 12,596 | cpp | C++ | Source/Render/RenderData/RenderLight.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | 6 | 2021-10-31T14:43:04.000Z | 2022-03-12T12:56:27.000Z | Source/Render/RenderData/RenderLight.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | null | null | null | Source/Render/RenderData/RenderLight.cpp | PolyAH/RealTimeGI | 372638568ff22a4dea9c1ff448cec42e3e25aaf2 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Ammar Herzallah
//
// 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... | 32.050891 | 115 | 0.753652 | PolyAH |
710e796ba96f393c07dc05a94e53bedbd64dbc21 | 5,904 | cpp | C++ | src/tablestore/core/impl/sync_client.cpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | 2 | 2020-02-24T06:51:55.000Z | 2020-04-24T14:40:10.000Z | src/tablestore/core/impl/sync_client.cpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | null | null | null | src/tablestore/core/impl/sync_client.cpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | 1 | 2020-02-24T06:51:57.000Z | 2020-02-24T06:51:57.000Z | /*
BSD 3-Clause License
Copyright (c) 2017, Alibaba Cloud
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 conditi... | 29.668342 | 91 | 0.747121 | TimeExceed |
7116d4f2d25eb3519c6fe7e70d5d8418c62dcecb | 3,155 | cpp | C++ | PLatformner/Motor2D/j2LifeItem.cpp | AdrianFR99/Raider-of-the-Lost-World | 6684f25ad98a9870a4b02767c1912e0984b6ccd5 | [
"MIT"
] | 1 | 2020-06-07T14:41:18.000Z | 2020-06-07T14:41:18.000Z | PLatformner/Motor2D/j2LifeItem.cpp | AdrianFR99/Raider-of-the-Lost-World | 6684f25ad98a9870a4b02767c1912e0984b6ccd5 | [
"MIT"
] | null | null | null | PLatformner/Motor2D/j2LifeItem.cpp | AdrianFR99/Raider-of-the-Lost-World | 6684f25ad98a9870a4b02767c1912e0984b6ccd5 | [
"MIT"
] | null | null | null | #include "j2LifeItem.h"
#include "j1App.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "j2Collision.h"
#include "j2EntityManager.h"
#include "j1Audio.h"
#include "j2Player.h"
j2LifeItem::j2LifeItem():j2StaticEntity()
{
name = "RedGem";
pugi::xml_parse_result result2 = config.load_file("config.xml");
Pa... | 19.968354 | 125 | 0.689699 | AdrianFR99 |
711e5739b829f17754c8990508504e7fafebec08 | 2,573 | cpp | C++ | src/data/RtMotion.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | null | null | null | src/data/RtMotion.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | null | null | null | src/data/RtMotion.cpp | cdla/murfi2 | 45dba5eb90e7f573f01706a50e584265f0f8ffa7 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
* RtMotion.cpp defines a class to store subject motion
*
* Copyright 2007-2013, the MURFI dev team.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.... | 26.802083 | 77 | 0.650214 | cdla |
711ff260a7014389e2ce176840478ecd3f06dccf | 868 | hpp | C++ | contrib/autoboost/autoboost/thread/csbl/memory/default_delete.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 87 | 2015-01-18T00:43:06.000Z | 2022-02-11T17:40:50.000Z | contrib/autoboost/autoboost/thread/csbl/memory/default_delete.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 274 | 2015-01-03T04:50:49.000Z | 2021-03-08T09:01:09.000Z | contrib/autoboost/autoboost/thread/csbl/memory/default_delete.hpp | CaseyCarter/autowiring | 48e95a71308318c8ffb7ed1348e034fd9110f70c | [
"Apache-2.0"
] | 15 | 2015-09-30T20:58:43.000Z | 2020-12-19T21:24:56.000Z | // Copyright (C) 2013 Vicente J. Botet Escriba
//
// 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)
//
// 2013/10 Vicente J. Botet Escriba
// Creation.
#ifndef AUTOBOOST_CSBL_MEMORY_DEFAULT_DELETE_HPP
#define AUT... | 20.666667 | 80 | 0.753456 | CaseyCarter |
7122a27c62d75f08fe9887ebd7be1890f04d04bd | 2,387 | cxx | C++ | examples/microservice.cxx | dmxvlx/microplugins | 563dd6dd8c3331eb48872104b343cf5f53787d23 | [
"BSL-1.0"
] | 38 | 2018-08-26T16:39:21.000Z | 2022-01-24T06:08:59.000Z | examples/microservice.cxx | dmxvlx/microplugins | 563dd6dd8c3331eb48872104b343cf5f53787d23 | [
"BSL-1.0"
] | 1 | 2019-05-07T13:40:32.000Z | 2019-05-07T17:57:26.000Z | examples/microservice.cxx | dmxvlx/microplugins | 563dd6dd8c3331eb48872104b343cf5f53787d23 | [
"BSL-1.0"
] | 11 | 2018-09-07T03:02:21.000Z | 2021-11-22T11:12:57.000Z | #ifndef MICROSERVICE_CXX
#define MICROSERVICE_CXX
// uncoment for disable debug information
// #define NDEBUG
#include "plugins.hpp"
#include <csignal>
static std::any service(std::any a1) {
int ret = 0;
std::shared_ptr<micro::plugins<>> manager = std::any_cast<std::shared_ptr<micro::plugins<>>>(a1);
// we c... | 31.826667 | 114 | 0.63008 | dmxvlx |
712350123414e9a6632a4ec8d73bf2669626945a | 708 | hpp | C++ | src/core/Game.hpp | cstegel/opengl-fireworks | 5acc2e2e937cae632bf2cf8074d209ea22d719c8 | [
"MIT"
] | 1 | 2017-10-09T06:56:17.000Z | 2017-10-09T06:56:17.000Z | src/core/Game.hpp | cstegel/opengl-fireworks | 5acc2e2e937cae632bf2cf8074d209ea22d719c8 | [
"MIT"
] | null | null | null | src/core/Game.hpp | cstegel/opengl-fireworks | 5acc2e2e937cae632bf2cf8074d209ea22d719c8 | [
"MIT"
] | null | null | null | #pragma once
#include "graphics/GraphicsManager.hpp"
#include "core/InputManager.hpp"
#include "game/GameLogic.hpp"
#include "audio/AudioManager.hpp"
#include "physics/PhysicsManager.hpp"
#include "Common.hpp"
#include <Ecs.hh>
#include <glm/glm.hpp>
namespace fw
{
class Game
{
public:
Game();
~Game();
int... | 16.090909 | 39 | 0.716102 | cstegel |
7126919675c0c597ed2c142d3199384f6460458a | 8,528 | hpp | C++ | global/matrix.hpp | thorfdbg/ssim | 7d9d1b3c2b8e4338d8cec34088d948025c23e559 | [
"Zlib"
] | 9 | 2017-04-13T19:18:03.000Z | 2021-01-21T15:29:48.000Z | global/matrix.hpp | thorfdbg/ssim | 7d9d1b3c2b8e4338d8cec34088d948025c23e559 | [
"Zlib"
] | 1 | 2019-11-25T12:58:01.000Z | 2019-12-05T18:15:55.000Z | global/matrix.hpp | thorfdbg/ssim | 7d9d1b3c2b8e4338d8cec34088d948025c23e559 | [
"Zlib"
] | 1 | 2017-12-31T06:57:00.000Z | 2017-12-31T06:57:00.000Z | /************************************************************************************
** Copyright (C) 2005-2007 TU Berlin, Felix Oum, Thomas Richter **
** **
** This software is provided 'as-is', without any express or... | 30.134276 | 86 | 0.57493 | thorfdbg |
71273727389b20c5b0dce353fe6b1beafe9bb1c7 | 436 | cpp | C++ | Hallowen.cpp | OrlykM/Algotester | 6d0702b191610795beb959d378ab1feef6191b68 | [
"CC0-1.0"
] | null | null | null | Hallowen.cpp | OrlykM/Algotester | 6d0702b191610795beb959d378ab1feef6191b68 | [
"CC0-1.0"
] | null | null | null | Hallowen.cpp | OrlykM/Algotester | 6d0702b191610795beb959d378ab1feef6191b68 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int n;
int k = 0;
cin >> n;
if (n >= 1 && n <= 100)
{
for (int i = 0; i < n; i++)
{
int j;
cin >> j;
if (j >= 1 && j <= 100)
{
if (j <= 2)
{
k++;
}
else if(j >= 3 && j <= 7)
{
k += 2;
}
else if(j >= 8 && j <... | 11.473684 | 30 | 0.321101 | OrlykM |
71292e82dbe5711bf4bad6b22bda2db965c51bb8 | 2,721 | cc | C++ | example/unicode.cc | ColinH/PEGTL-0.32 | b8b2d4cbc0568936709775b9fc83a2eb34bdc0c3 | [
"MIT"
] | 1 | 2015-02-13T02:03:29.000Z | 2015-02-13T02:03:29.000Z | example/unicode.cc | ColinH/PEGTL-0.32 | b8b2d4cbc0568936709775b9fc83a2eb34bdc0c3 | [
"MIT"
] | null | null | null | example/unicode.cc | ColinH/PEGTL-0.32 | b8b2d4cbc0568936709775b9fc83a2eb34bdc0c3 | [
"MIT"
] | 1 | 2020-04-25T16:40:49.000Z | 2020-04-25T16:40:49.000Z | // Copyright (c) 2008 Dr. Colin Hirsch
// Please see license.txt for license.
// Include the only public header file for the PEGTL.
#include <pegtl.hh>
namespace example
{
using namespace pegtl;
// This example defines a rule for quoted strings with C-style backslash-escapes
// that is compatible with UTF-... | 42.515625 | 88 | 0.689085 | ColinH |
713a86b5355b6558b4897d56ebf95155705376c9 | 1,506 | cpp | C++ | test/client.cpp | adanselm/pbRPCpp | 55ee89608bfd3d8e32d3880fd5f1f7c3386f167a | [
"BSL-1.0"
] | 26 | 2015-03-31T05:57:21.000Z | 2021-12-07T04:37:05.000Z | test/client.cpp | adanselm/pbRPCpp | 55ee89608bfd3d8e32d3880fd5f1f7c3386f167a | [
"BSL-1.0"
] | 2 | 2016-11-23T19:44:08.000Z | 2019-05-29T08:37:03.000Z | test/client.cpp | adanselm/pbRPCpp | 55ee89608bfd3d8e32d3880fd5f1f7c3386f167a | [
"BSL-1.0"
] | 10 | 2015-07-19T13:02:14.000Z | 2020-05-26T12:17:09.000Z | /**
* Copyright Springbeats Sarl 2013.
* 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 "TcpRpcChannel.hpp"
#include "RpcController.hpp"
//#include "TcpRpcServer.hpp"
//#inc... | 26.421053 | 94 | 0.641434 | adanselm |
7141b83a2b5eb78f1e48c55fc710376df72a6ee8 | 674 | cpp | C++ | tests/fuzzing/direct.cpp | graves501/arma3-unix-launcher | 7f034833389af122da7a3948cf869124827216ba | [
"MIT"
] | 161 | 2016-11-22T09:36:00.000Z | 2022-03-25T06:14:51.000Z | tests/fuzzing/direct.cpp | graves501/arma3-unix-launcher | 7f034833389af122da7a3948cf869124827216ba | [
"MIT"
] | 138 | 2017-01-28T16:46:37.000Z | 2022-03-30T05:36:53.000Z | tests/fuzzing/direct.cpp | graves501/arma3-unix-launcher | 7f034833389af122da7a3948cf869124827216ba | [
"MIT"
] | 36 | 2016-12-28T12:23:48.000Z | 2022-03-31T22:17:32.000Z | #include <filesystem>
#include <fstream>
#include <string>
#include <fmt/format.h>
std::string FileReadAllText(std::filesystem::path const &path)
{
std::ifstream file(path);
std::stringstream str;
str << file.rdbuf();
return str.str();
}
extern "C" int LLVMFuzzerTestOneInput(uint8_t const *data, size... | 21.741935 | 74 | 0.639466 | graves501 |
71451e6f29660f350443856e18d9d76536d5659a | 1,850 | cpp | C++ | src/render/frame_buffer.cpp | Tuebel/scigl_render | ec790d54ca4a14546348a5dd2f799d5abcc4bd36 | [
"MIT"
] | null | null | null | src/render/frame_buffer.cpp | Tuebel/scigl_render | ec790d54ca4a14546348a5dd2f799d5abcc4bd36 | [
"MIT"
] | null | null | null | src/render/frame_buffer.cpp | Tuebel/scigl_render | ec790d54ca4a14546348a5dd2f799d5abcc4bd36 | [
"MIT"
] | null | null | null | #include <scigl_render/render/frame_buffer.hpp>
#include <iostream>
#include <stdexcept>
namespace scigl_render
{
FrameBuffer::FrameBuffer(int width, int height, GLenum internal_format)
{
this->width = width;
this->height = height;
// Create framebuffer with renderbuffer attachements
glGenFramebuffers(1, &fbo)... | 30.833333 | 77 | 0.757297 | Tuebel |
7145c53aec322c29c1822bf7d66f8ef651378e37 | 642 | hpp | C++ | converter/src/mapConverter/mapConverter.hpp | redthing1/Tiled2GBA | 2272309292c6a2a0dee2a4e7cc81c2e97fab6157 | [
"MIT"
] | 14 | 2018-06-25T09:22:21.000Z | 2021-12-11T20:06:25.000Z | converter/src/mapConverter/mapConverter.hpp | redthing1/Tiled2GBA | 2272309292c6a2a0dee2a4e7cc81c2e97fab6157 | [
"MIT"
] | 20 | 2018-06-23T21:36:35.000Z | 2021-05-25T16:21:14.000Z | converter/src/mapConverter/mapConverter.hpp | redthing1/Tiled2GBA | 2272309292c6a2a0dee2a4e7cc81c2e97fab6157 | [
"MIT"
] | 2 | 2020-02-26T13:51:31.000Z | 2021-09-30T07:02:33.000Z | #ifndef MAP_CONVERTER_H
#define MAP_CONVERTER_H
#include "../lib/tmxlite/Map.hpp"
#include "../gba/gbaMap/gbaMap.hpp"
#include "../lib/tmxlite/TileLayer.hpp"
using namespace std;
/**
* Converts a TMX Map to a GBA Map.
*/
class MapConverter {
public:
/**
* Convert a TMX Map.
* @param tmxMap The TMX Ma... | 23.777778 | 91 | 0.679128 | redthing1 |
7149a2e8b478439251df700081c674d7e70a4893 | 21,244 | cpp | C++ | src/nes6502.cpp | karangovil/nes6502 | 4abef3c303cbcc37870c72bcaf57c29d0b8fea21 | [
"MIT"
] | null | null | null | src/nes6502.cpp | karangovil/nes6502 | 4abef3c303cbcc37870c72bcaf57c29d0b8fea21 | [
"MIT"
] | null | null | null | src/nes6502.cpp | karangovil/nes6502 | 4abef3c303cbcc37870c72bcaf57c29d0b8fea21 | [
"MIT"
] | null | null | null | #include "nes6502.h"
#include "Bus.h"
#include "utils.h"
nes6502::nes6502() = default;
nes6502::~nes6502() = default;
uint8_t nes6502::read(uint16_t addr)
{
return bus->cpuRead(addr, false);
}
void nes6502::write(uint16_t addr, uint8_t data)
{
bus->cpuWrite(addr, data);
}
void nes6502::clock()
{
if (cycles =... | 19.597786 | 93 | 0.602241 | karangovil |
714b6117d61a2f5a55e09d5a87a01b7f0f6c7637 | 240 | cpp | C++ | src/UOJ_1573 - (1176543) Accepted.cpp | miguelarauj1o/UOJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 80 | 2015-01-07T01:18:40.000Z | 2021-05-04T15:23:18.000Z | src/UOJ_1573 - (1176543) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 1 | 2019-01-07T01:13:32.000Z | 2019-01-07T01:13:32.000Z | src/UOJ_1573 - (1176543) Accepted.cpp | miguelarauj1o/OJ | eb195754829c42c3dcf1a68616e63da1386cb5a9 | [
"MIT"
] | 28 | 2015-03-05T11:53:23.000Z | 2020-07-05T15:50:42.000Z | #include <cstdio>
#include <cmath>
using namespace std;
int main()
{
int a, b, c, v, x;
while(scanf("%i %i %i", &a, &b, &c) && (a || b || c))
{
v = a * b * c;
x = (int) cbrt(v);
printf("%i\n", x);
}
return 0;
} | 14.117647 | 55 | 0.4375 | miguelarauj1o |
714fc9a6851a4d4a365fec9a68ddd461a34428b5 | 3,797 | hpp | C++ | adaptivlib/include/adaptiv/utility/input/numeric_parsers.hpp | seriouslyhypersonic/adaptiv_co | 2421d7dc91d0291dd45702a2a2ddadab9adda91d | [
"BSL-1.0"
] | null | null | null | adaptivlib/include/adaptiv/utility/input/numeric_parsers.hpp | seriouslyhypersonic/adaptiv_co | 2421d7dc91d0291dd45702a2a2ddadab9adda91d | [
"BSL-1.0"
] | null | null | null | adaptivlib/include/adaptiv/utility/input/numeric_parsers.hpp | seriouslyhypersonic/adaptiv_co | 2421d7dc91d0291dd45702a2a2ddadab9adda91d | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) Nuno Alves de Sousa 2019
*
* Use, modification and distribution is subject to 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)
*/
#ifndef ADAPTIV_NUMERIC_PARSERS_HPP
#define ADAPTIV_NUMERIC_PARSERS_HPP
#include... | 26.186207 | 79 | 0.70108 | seriouslyhypersonic |
71527f3e27262169c4f065b3b95d2fb683121ece | 1,263 | cpp | C++ | src/services/DeviceService.cpp | nick-lrg/microSDC | a0a95edcf74164cfecf699f77e57d7f84a9c0b68 | [
"BSD-3-Clause"
] | null | null | null | src/services/DeviceService.cpp | nick-lrg/microSDC | a0a95edcf74164cfecf699f77e57d7f84a9c0b68 | [
"BSD-3-Clause"
] | null | null | null | src/services/DeviceService.cpp | nick-lrg/microSDC | a0a95edcf74164cfecf699f77e57d7f84a9c0b68 | [
"BSD-3-Clause"
] | null | null | null | #include "services/DeviceService.hpp"
#include "Log.hpp"
#include "WebServer/Request.hpp"
#include "datamodel/MDPWSConstants.hpp"
#include "dpws/MetadataProvider.hpp"
#include "services/SoapFault.hpp"
static constexpr const char* TAG = "DeviceService";
DeviceService::DeviceService(std::shared_ptr<const MetadataProvid... | 30.071429 | 96 | 0.751386 | nick-lrg |
715c27336801fe475132011ce3ac8c396049937c | 172 | cpp | C++ | src/util/dumpstack/enable_dump.cpp | HouQiming/ama | b7dddb425892e1d4d95312b330061911489e242b | [
"BSD-2-Clause"
] | 24 | 2022-01-06T20:26:42.000Z | 2022-02-18T07:56:44.000Z | src/util/dumpstack/enable_dump.cpp | HouQiming/ama | b7dddb425892e1d4d95312b330061911489e242b | [
"BSD-2-Clause"
] | null | null | null | src/util/dumpstack/enable_dump.cpp | HouQiming/ama | b7dddb425892e1d4d95312b330061911489e242b | [
"BSD-2-Clause"
] | 4 | 2022-01-06T20:26:44.000Z | 2022-01-14T06:59:48.000Z | #include "./dumpstack.h"
#pragma no_auto_header()
struct AutoEnableStackDump {
AutoEnableStackDump() {DumpStack::EnableDump();}
};
static AutoEnableStackDump enabler{};
| 19.111111 | 49 | 0.767442 | HouQiming |
715d37bebeb9a4807c3716b840a4e813bc966c76 | 1,123 | cpp | C++ | KTLT_doan1/boss.cpp | ipupro2/KTLTr-Project-1 | 1ee29823a75b9518d6cc4d0b94edebc2a46ec63c | [
"MIT"
] | null | null | null | KTLT_doan1/boss.cpp | ipupro2/KTLTr-Project-1 | 1ee29823a75b9518d6cc4d0b94edebc2a46ec63c | [
"MIT"
] | null | null | null | KTLT_doan1/boss.cpp | ipupro2/KTLTr-Project-1 | 1ee29823a75b9518d6cc4d0b94edebc2a46ec63c | [
"MIT"
] | null | null | null | #include "boss.h"
static const string BossSprite[] =
{
" _____|___|_|___|_____ ",
" |___________________| ",
" |___________________| ",
" |=|=====|===|=====|=| ",
" |=|======\\=/======|=| ",
" V V V "
};
void DrawBoss(position bossPos)
{
for (int i = 0; i < 6; i++)
{
for (int... | 19.701754 | 70 | 0.524488 | ipupro2 |
7161a0f8fcdf17e561d47746b676481f4e038093 | 6,251 | cpp | C++ | jogo/pacman.cpp | eduardo-gomes/cefet-public | 559b55194c425b3df83e85c78ed7ede424b9537d | [
"Unlicense"
] | null | null | null | jogo/pacman.cpp | eduardo-gomes/cefet-public | 559b55194c425b3df83e85c78ed7ede424b9537d | [
"Unlicense"
] | 7 | 2019-11-12T00:58:09.000Z | 2019-11-19T19:34:49.000Z | jogo/pacman.cpp | eduardo-gomes/cefet-public | 559b55194c425b3df83e85c78ed7ede424b9537d | [
"Unlicense"
] | null | null | null | #include <bits/stdc++.h>
#include <ncurses.h>
using namespace std;
/*int mapa[9][7] = {
{-1, -1, -1,-1, -1, -1, -1},
{-1, 0, 0, 0, 0, 0, -1},
{-1, 0, -1, 0, -1, 0, -1},
{0, 0, -1, 0, -1, 0, 0},
{-1, 0, -1, 0, -1, 0, -1},
{0, 0, -1, 0, -1, 0, 0},
{-1, 0, -1, -1, -1, 0, -1},
{-1, 0, 0, 0, 0, 0, -1},
{-1, -1, -1, -1, -1, ... | 27.060606 | 174 | 0.457047 | eduardo-gomes |
7166c7bdd8636e29675296a987aefc0546dd38bc | 25,742 | hxx | C++ | GOOSE_FatWaterDecomposition/optnet/_base/point.hxx | pdaude/CREAM_PDFF | 56bc7639b3e027f6656ac33720863d0953a85b45 | [
"Apache-2.0"
] | null | null | null | GOOSE_FatWaterDecomposition/optnet/_base/point.hxx | pdaude/CREAM_PDFF | 56bc7639b3e027f6656ac33720863d0953a85b45 | [
"Apache-2.0"
] | null | null | null | GOOSE_FatWaterDecomposition/optnet/_base/point.hxx | pdaude/CREAM_PDFF | 56bc7639b3e027f6656ac33720863d0953a85b45 | [
"Apache-2.0"
] | null | null | null | /*
==========================================================================
|
| $Id: point.hxx 2137 2007-07-02 03:26:31Z kangli $
|
| Written by Kang Li <kangl@cmu.edu>
| Department of Electrical and Computer Engineering
| Carnegie Mellon University
|
===========================================... | 35.555249 | 75 | 0.461153 | pdaude |
7176b56b20914f7d98308e9c403a8a0b18a40fcb | 14,985 | cpp | C++ | src/Window.cpp | lintopher0315/gadget | 9bcd399aa087f6e82a9353e883d004c50d92c9d5 | [
"MIT"
] | 9 | 2021-03-14T05:49:21.000Z | 2021-12-13T12:46:00.000Z | src/Window.cpp | lintopher0315/gadget | 9bcd399aa087f6e82a9353e883d004c50d92c9d5 | [
"MIT"
] | null | null | null | src/Window.cpp | lintopher0315/gadget | 9bcd399aa087f6e82a9353e883d004c50d92c9d5 | [
"MIT"
] | null | null | null | #include "Window.h"
#include "Frame.h"
#include "FileHelper.h"
Window::Window(wxWindow *parent) : wxWindow(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize) {
SetMinClientSize(wxSize(500, 100));
sizer = new wxBoxSizer(wxVERTICAL);
panel = new Panel(this);
statusBar = new StatusBar(this);
commandBa... | 22.299107 | 140 | 0.630764 | lintopher0315 |
71822d5fc3114e6d14285b01a710e83ed9738d73 | 1,579 | cpp | C++ | 01-Array/03-Kth-max-min.cpp | satputesagar/450-Coding-Question | 1fc3f00756090e079aa591d1ad1c0b5992e5e9c7 | [
"MIT"
] | null | null | null | 01-Array/03-Kth-max-min.cpp | satputesagar/450-Coding-Question | 1fc3f00756090e079aa591d1ad1c0b5992e5e9c7 | [
"MIT"
] | null | null | null | 01-Array/03-Kth-max-min.cpp | satputesagar/450-Coding-Question | 1fc3f00756090e079aa591d1ad1c0b5992e5e9c7 | [
"MIT"
] | null | null | null | //Kth smallest element
/*
Given an array arr[] and a number K where K is smaller than size of array, the task is to find the Kth smallest element in the given array. It is given that all array elements are distinct.
/*
COMPLEXITY - O(n)
SAMPLE INPUT
2
6
7 10 4 3 20 15
3
5
7 10 4 20 15
4
OUTPUT
7
15
*/
/*
Complexity ... | 19.024096 | 189 | 0.552248 | satputesagar |
71886609110068a50145e918b8650e1fa1e90b77 | 1,996 | cpp | C++ | Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_sievecalculator.cpp | tristanbarback/AutomaticComponentToolkit | 8fe5406a06c5bcec87a1ebb025cb92ee30bc11bd | [
"BSD-2-Clause"
] | null | null | null | Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_sievecalculator.cpp | tristanbarback/AutomaticComponentToolkit | 8fe5406a06c5bcec87a1ebb025cb92ee30bc11bd | [
"BSD-2-Clause"
] | null | null | null | Examples/Primes/LibPrimes_component/Implementations/Cpp/Stub/libprimes_sievecalculator.cpp | tristanbarback/AutomaticComponentToolkit | 8fe5406a06c5bcec87a1ebb025cb92ee30bc11bd | [
"BSD-2-Clause"
] | null | null | null | /*++
Copyright (C) 2018 Automatic Component Toolkit Developers
All rights reserved.
Abstract: This is a stub class definition of CLibPrimesSieveCalculator
*/
#include "libprimes_sievecalculator.hpp"
#include "libprimes_interfaceexception.hpp"
// Include custom headers here.
#include <cmath>
using namespace LibP... | 24.341463 | 151 | 0.608216 | tristanbarback |
718ddf1c9f0eb61a1a7155b13e2a1b33e1023e6b | 7,065 | cpp | C++ | src/NodeHive.cpp | dwarfofdawn/Ant_Game | 3a4ea222d5ae9fea991e7e5cf5063ea9fcec9906 | [
"MIT"
] | null | null | null | src/NodeHive.cpp | dwarfofdawn/Ant_Game | 3a4ea222d5ae9fea991e7e5cf5063ea9fcec9906 | [
"MIT"
] | null | null | null | src/NodeHive.cpp | dwarfofdawn/Ant_Game | 3a4ea222d5ae9fea991e7e5cf5063ea9fcec9906 | [
"MIT"
] | null | null | null | #include "NodeHive.h"
#include "warp/Renderer.h"
#include "WorldClient.h"
#include "TaskConquer.h"
#include "Options.h"
#include "Client.h"
#include "Server.h"
#include <cstring>
#include <cmath>
namespace ant{
warp::Color hiveColor(1, 0, 0, 1);
// controls spead of heartbeat TODO(florian): make this dynamic a... | 31.681614 | 253 | 0.618117 | dwarfofdawn |
718f95d0b00bda03156101f80b3cc958c7df7480 | 330 | hpp | C++ | lib/inc/pxp-agent/action_output.hpp | Dorin-Pleava/pxp-agent | eef236da8046fc185e0ca39d0a479cf00b9c60ad | [
"Apache-2.0"
] | 28 | 2015-10-09T04:48:31.000Z | 2022-01-31T15:04:01.000Z | lib/inc/pxp-agent/action_output.hpp | Dorin-Pleava/pxp-agent | eef236da8046fc185e0ca39d0a479cf00b9c60ad | [
"Apache-2.0"
] | 495 | 2015-10-05T18:47:47.000Z | 2021-11-01T23:40:01.000Z | lib/inc/pxp-agent/action_output.hpp | Dorin-Pleava/pxp-agent | eef236da8046fc185e0ca39d0a479cf00b9c60ad | [
"Apache-2.0"
] | 67 | 2015-10-06T03:28:16.000Z | 2022-03-31T17:25:37.000Z | #ifndef SRC_AGENT_ACTION_OUTPUT_HPP
#define SRC_AGENT_ACTION_OUTPUT_HPP
#include <leatherman/json_container/json_container.hpp>
#include <string>
namespace PXPAgent {
struct ActionOutput {
int exitcode;
std::string std_out;
std::string std_err;
};
} // namespace PXPAgent
#endif // SRC_AGENT_ACTION_O... | 17.368421 | 55 | 0.769697 | Dorin-Pleava |
718fc3bff445a4885e244a44e7a9f9a7c85dcc8f | 2,447 | hpp | C++ | include/ads/basis_data.hpp | Pan-Maciek/iga-ads | 4744829c98cba4e9505c5c996070119e73ba18fa | [
"MIT"
] | 7 | 2018-01-19T00:19:19.000Z | 2021-06-22T00:53:00.000Z | include/ads/basis_data.hpp | Pan-Maciek/iga-ads | 4744829c98cba4e9505c5c996070119e73ba18fa | [
"MIT"
] | 66 | 2021-06-22T22:44:21.000Z | 2022-03-16T15:18:00.000Z | include/ads/basis_data.hpp | Pan-Maciek/iga-ads | 4744829c98cba4e9505c5c996070119e73ba18fa | [
"MIT"
] | 6 | 2017-04-13T19:42:27.000Z | 2022-03-26T18:46:24.000Z | // SPDX-FileCopyrightText: 2015 - 2021 Marcin Łoś <marcin.los.91@gmail.com>
// SPDX-License-Identifier: MIT
#ifndef ADS_BASIS_DATA_HPP
#define ADS_BASIS_DATA_HPP
#include <utility>
#include <vector>
#include <boost/range/counting_range.hpp>
#include "ads/bspline/bspline.hpp"
namespace ads {
using element_id = int... | 26.89011 | 96 | 0.655088 | Pan-Maciek |
719120079fa53295a9123dd95107cdf7de7a5185 | 6,114 | cpp | C++ | Tests/CPP_Bindings/Source/TextureProperty.cpp | alexanderoster/lib3mf | 30d5c2e0e8ed7febb5c10a84dc2db9d53fee6d05 | [
"BSD-2-Clause"
] | 171 | 2015-04-30T21:54:02.000Z | 2022-03-13T13:33:59.000Z | Tests/CPP_Bindings/Source/TextureProperty.cpp | alexanderoster/lib3mf | 30d5c2e0e8ed7febb5c10a84dc2db9d53fee6d05 | [
"BSD-2-Clause"
] | 190 | 2015-07-21T22:15:54.000Z | 2022-03-30T15:48:37.000Z | Tests/CPP_Bindings/Source/TextureProperty.cpp | alexanderoster/lib3mf | 30d5c2e0e8ed7febb5c10a84dc2db9d53fee6d05 | [
"BSD-2-Clause"
] | 80 | 2015-04-30T22:15:54.000Z | 2022-03-09T12:38:49.000Z | /*++
Copyright (C) 2019 3MF Consortium
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... | 41.310811 | 149 | 0.74632 | alexanderoster |
719b2e2e242ac6050345a20260344dea8b72cd2d | 3,633 | cpp | C++ | BFS/127. Word Ladder.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 138 | 2020-02-08T05:25:26.000Z | 2021-11-04T11:59:28.000Z | BFS/127. Word Ladder.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | null | null | null | BFS/127. Word Ladder.cpp | beckswu/Leetcode | 480e8dc276b1f65961166d66efa5497d7ff0bdfd | [
"MIT"
] | 24 | 2021-01-02T07:18:43.000Z | 2022-03-20T08:17:54.000Z | /*
127. Word Ladder
Time Space Difficulty
O(n * d) O(d) Medium
Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that:
Only one letter can be changed at a time.
Each transformed word must exist in the w... | 32.72973 | 161 | 0.504542 | beckswu |
719c060dc5ed31dfe4bad61ae6336adc82223860 | 4,318 | cpp | C++ | src/Instrument.cpp | devinacker/decomposer | 32a7b5b5972ffe795bd56312c34a7bcc3283dd2d | [
"MIT"
] | 6 | 2016-04-19T03:23:48.000Z | 2019-07-12T00:40:23.000Z | src/Instrument.cpp | devinacker/decomposer | 32a7b5b5972ffe795bd56312c34a7bcc3283dd2d | [
"MIT"
] | null | null | null | src/Instrument.cpp | devinacker/decomposer | 32a7b5b5972ffe795bd56312c34a7bcc3283dd2d | [
"MIT"
] | null | null | null | #include "Instrument.h"
Instrument* Instrument::channelInstruments[16] = {0};
void Instrument::send(int time, MIDIOutput *out, quint8 data0, quint8 data1, quint8 data2)
{
if (!out || channel > 15) return;
// always play MIDI events on this instrument's channel
if (data0 & 0x80)
data0 = EVENT_REROUTE(data0, chan... | 26.9875 | 99 | 0.557202 | devinacker |
719e12ed749446677019364e9eda830d14cf36c2 | 2,578 | cpp | C++ | src/OctreeVisualization.cpp | Tsarpf/procgen | 1701358649838fb3cc8804d3f1fcb6a8f74ad1bc | [
"WTFPL"
] | 6 | 2019-11-13T07:42:34.000Z | 2021-02-05T09:33:58.000Z | src/OctreeVisualization.cpp | Tsarpf/procgen | 1701358649838fb3cc8804d3f1fcb6a8f74ad1bc | [
"WTFPL"
] | null | null | null | src/OctreeVisualization.cpp | Tsarpf/procgen | 1701358649838fb3cc8804d3f1fcb6a8f74ad1bc | [
"WTFPL"
] | 2 | 2019-11-13T07:37:22.000Z | 2020-07-24T13:01:42.000Z | #include "OctreeVisualization.h"
#include "Octree.h"
#include "utils.h"
#include <GL/glew.h>
OctreeVisualization::OctreeVisualization(GLuint program) : m_program(program)
{
}
OctreeVisualization::~OctreeVisualization()
{
}
void OctreeVisualization::Initialize()
{
auto [vao, vbo] = createCubeVAO(m_cubePoints);
m... | 25.029126 | 102 | 0.665632 | Tsarpf |
719f0341e883b08ce02119c83a223584750def0c | 1,380 | cpp | C++ | SkeletalAnimation/SkeletalAnimation/Re/Graphics/Gui/GuiCheckBox.cpp | Risist/Project-skeletal-animation | 1f39d572521bfa0fef7ce9aebf32152608e3dc33 | [
"MIT"
] | null | null | null | SkeletalAnimation/SkeletalAnimation/Re/Graphics/Gui/GuiCheckBox.cpp | Risist/Project-skeletal-animation | 1f39d572521bfa0fef7ce9aebf32152608e3dc33 | [
"MIT"
] | null | null | null | SkeletalAnimation/SkeletalAnimation/Re/Graphics/Gui/GuiCheckBox.cpp | Risist/Project-skeletal-animation | 1f39d572521bfa0fef7ce9aebf32152608e3dc33 | [
"MIT"
] | null | null | null | /// Code from ReEngine library
/// all rights belongs to Risist (Maciej Dominiak) (risistt@gmail.com)
#include <Re\Graphics\Gui\GuiCheckBox.h>
namespace Gui
{
CheckBox::CheckBox()
: value(false)
{
}
void Gui::CheckBox::onUpdate(RenderTarget & target, RenderStates states)
{
shortKey.reset(); mouseKey.reset(... | 20.294118 | 88 | 0.684058 | Risist |
71a0ac418ae00368e51c23f844c280e66c4c84db | 1,375 | hpp | C++ | android-29/android/R_color.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/R_color.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/R_color.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../JObject.hpp"
namespace android
{
class R_color : public JObject
{
public:
// Fields
static jint background_dark();
static jint background_light();
static jint black();
static jint darker_gray();
static jint holo_blue_bright();
static jint holo_blue_dark();
static jint holo... | 26.960784 | 148 | 0.737455 | YJBeetle |
71a6b1f7cfe63e3a5fb261d9efa1e38222d28f59 | 11,719 | cpp | C++ | src/swrast_setup/old/ss_vb.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/swrast_setup/old/ss_vb.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | src/swrast_setup/old/ss_vb.cpp | OS2World/LIB-GRAPHICS-The_Mesa_3D_Graphics_Library | c0e0cfaeefa9e87e4978101fbac7d0372c39f1a3 | [
"MIT"
] | null | null | null | /* $Id: ss_vb.c,v 1.22 2002/10/29 20:29:00 brianp Exp $ */
/*
* Mesa 3-D graphics library
* Version: 4.1
*
* Copyright (C) 1999-2002 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "So... | 26.217002 | 78 | 0.650397 | OS2World |
71a70cdd2ec1adf5f452fbf4c9036a8ffbf8911c | 11,473 | cpp | C++ | src/Tiger/TigerImport.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/Tiger/TigerImport.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/Tiger/TigerImport.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... | 35.301538 | 149 | 0.694587 | rromanchuk |
71ace11bd9a3794030cbc24e219e17bcc454a483 | 2,361 | hpp | C++ | host-bmc/host_associations_parser.hpp | vkaverap/pldm-2 | 01a50d2421202ba385f6cfc66877d8e8c877478f | [
"Apache-2.0"
] | null | null | null | host-bmc/host_associations_parser.hpp | vkaverap/pldm-2 | 01a50d2421202ba385f6cfc66877d8e8c877478f | [
"Apache-2.0"
] | null | null | null | host-bmc/host_associations_parser.hpp | vkaverap/pldm-2 | 01a50d2421202ba385f6cfc66877d8e8c877478f | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "common/utils.hpp"
#include <string>
#include <utility>
#include <vector>
namespace pldm
{
namespace host_associations
{
struct entity
{
uint16_t entity_type;
uint16_t entity_instance_num;
uint16_t entity_container_id;
bool operator==(const entity& e) const
{
retu... | 28.445783 | 80 | 0.638712 | vkaverap |
71ae05cea3e2ccf469da455a0a40d938f75883ee | 1,730 | cpp | C++ | src/Axios/Instance.cpp | antjowie/Axios-framework | d4fadadcc3b5d1e5f83e212bf10e151734223de3 | [
"MIT"
] | null | null | null | src/Axios/Instance.cpp | antjowie/Axios-framework | d4fadadcc3b5d1e5f83e212bf10e151734223de3 | [
"MIT"
] | null | null | null | src/Axios/Instance.cpp | antjowie/Axios-framework | d4fadadcc3b5d1e5f83e212bf10e151734223de3 | [
"MIT"
] | null | null | null | #include "Axios/Instance.h"
#include "Axios/InputHandler.h"
#include "Axios/DataManager.h"
#include "Axios/Object.h"
#include <SFML/System/Clock.hpp>
#include <SFML/Window/Event.hpp>
ax::Instance::Instance() :
m_init(false),
m_currentScene(nullptr)
{
}
void ax::Instance::start()
{
// Check if user called init fun... | 23.378378 | 144 | 0.674566 | antjowie |
71aefdf53f001f0189208ae64dbae6204fff85ad | 1,800 | cpp | C++ | Compi/Highway Construction.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | Compi/Highway Construction.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | Compi/Highway Construction.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
#define Kmax 1002
#define m 1000000009
int Choose[Kmax][Kmax];
int Stirling[Kmax][Kmax];
int factorial[Kmax];
int modexp(long long int x, long long int y, long long int p)
{
long lo... | 16.981132 | 83 | 0.486667 | udayan14 |
71af2fb8b9c6ddfd21321fc706a60b56824df3d4 | 9,133 | cpp | C++ | src/GitCommitInfoPage.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 8 | 2021-04-16T02:05:54.000Z | 2022-03-16T13:56:23.000Z | src/GitCommitInfoPage.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | null | null | null | src/GitCommitInfoPage.cpp | lingnand/Helium | d1f8fab6eb5d60e35b3287f6ea35cd1fae71f816 | [
"BSD-3-Clause"
] | 2 | 2021-04-17T10:49:58.000Z | 2021-07-21T20:39:52.000Z | /*
* GitCommitInfoPage.cpp
*
* Created on: Aug 24, 2015
* Author: lingnan
*/
#include <bb/cascades/TitleBar>
#include <bb/cascades/Header>
#include <bb/cascades/Label>
#include <bb/cascades/StandardListItem>
#include <bb/cascades/SystemDefaults>
#include <bb/cascades/NavigationPane>
#include <bb/cascades/Li... | 30.959322 | 106 | 0.586883 | lingnand |
71b36706a31fda2f1b47f24d82e09fa75ad1d221 | 1,023 | cc | C++ | d3d9/src/dllmain.cc | nomi-san/league-loader | 56872920c987a46abc280102d4fc1dbfbf7de6a8 | [
"MIT"
] | 6 | 2021-10-10T03:01:40.000Z | 2022-03-05T05:43:19.000Z | d3d9/src/dllmain.cc | nomi-san/susan | 56872920c987a46abc280102d4fc1dbfbf7de6a8 | [
"MIT"
] | null | null | null | d3d9/src/dllmain.cc | nomi-san/susan | 56872920c987a46abc280102d4fc1dbfbf7de6a8 | [
"MIT"
] | 2 | 2021-11-03T04:03:07.000Z | 2022-01-19T06:33:48.000Z | #include "internal.h"
using namespace league_loader;
void LoadD3D9APIs();
void LoadLibCEFAPIs();
static void Attach()
{
// Load D3D9.
LoadD3D9APIs();
// Get exe path.
WCHAR name[1024];
GetModuleFileNameW(NULL, name, 1024);
// Determine which process to be hooked.
// Browser process.
... | 21.765957 | 68 | 0.595308 | nomi-san |
71bd4e551dbef7520badc31de5d8c38984d7ffcb | 2,032 | cpp | C++ | clap/test/with_usage_test.cpp | asap-projects/asap-clap | 97823c2a2d88c749ff4147cf4977698b1f98d0b3 | [
"BSD-3-Clause"
] | null | null | null | clap/test/with_usage_test.cpp | asap-projects/asap-clap | 97823c2a2d88c749ff4147cf4977698b1f98d0b3 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T20:45:38.000Z | 2022-03-08T20:45:38.000Z | clap/test/with_usage_test.cpp | asap-projects/asap-clap | 97823c2a2d88c749ff4147cf4977698b1f98d0b3 | [
"BSD-3-Clause"
] | null | null | null | //===----------------------------------------------------------------------===//
// Distributed under the 3-Clause BSD License. See accompanying file LICENSE or
// copy at https://opensource.org/licenses/BSD-3-Clause).
// SPDX-License-Identifier: BSD-3-Clause
//===-------------------------------------------------------... | 29.028571 | 80 | 0.655512 | asap-projects |
71bdff940e32b523606f254fe71095fd34e05184 | 4,887 | cpp | C++ | modules/RegularExpression.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | modules/RegularExpression.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | modules/RegularExpression.cpp | tyraindreams/EpicBasic | 6dc2d4fb567a8d0fef2db4ff80a17905e23af143 | [
"CC0-1.0"
] | null | null | null | // --------------------------------------------------------------------------------
//
// EpicBasic RegularExpression Library
//
// --------------------------------------------------------------------------------
const char * _pcreErrorString ;
int _pcreErrorOffset;
struct _RegularExpression {
... | 32.798658 | 320 | 0.702885 | tyraindreams |
71c123a45e9cdceb86c12dabb0a08956988a7aab | 10,078 | cc | C++ | apps-env/misc/nocTest/nocTest.cc | rouxb/emu-HMpSoC | 18fedaf525207301ad5e96e3c58d10045633620e | [
"MIT"
] | 4 | 2017-11-23T11:59:27.000Z | 2022-02-02T15:01:03.000Z | apps-env/misc/nocTest/nocTest.cc | rouxb/emu-HMpSoC | 18fedaf525207301ad5e96e3c58d10045633620e | [
"MIT"
] | null | null | null | apps-env/misc/nocTest/nocTest.cc | rouxb/emu-HMpSoC | 18fedaf525207301ad5e96e3c58d10045633620e | [
"MIT"
] | 1 | 2021-04-07T09:05:11.000Z | 2021-04-07T09:05:11.000Z | /*
* Copyright (c) 2016 Baptiste Roux.
* email: <baptiste.roux AT inria.fr>.
*/
/*
* File: nocTest.cc
* Test application for nocIPC, two available modes:
* * traffic producer
* * traffic consumer
*/
//NOTE: Don't use memcpy because it generate Byte access on bus
#include <iostream>
#include <sstream>
... | 29.994048 | 105 | 0.564398 | rouxb |
71c2a97c8036fe35b9eaf432e6054cd94501ea10 | 7,945 | cpp | C++ | rcgen/cpp/inverse_dynamics.cpp | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-07T11:39:31.000Z | 2020-11-07T11:39:31.000Z | rcgen/cpp/inverse_dynamics.cpp | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-10T16:03:37.000Z | 2020-11-10T16:03:37.000Z | rcgen/cpp/inverse_dynamics.cpp | kmarkus/ublx-ur5_sim | 51efa12446a7ef9ab5e3e783ce2a6409a3db390f | [
"BSD-3-Clause"
] | 1 | 2020-11-07T10:57:43.000Z | 2020-11-07T10:57:43.000Z | #include <iit/rbd/robcogen_commons.h>
#include "inverse_dynamics.h"
#include "inertia_properties.h"
#ifndef EIGEN_NO_DEBUG
#include <iostream>
#endif
using namespace std;
using namespace iit::rbd;
using namespace ur5::rcg;
// Initialization of static-const data
const ur5::rcg::InverseDynamics::ExtForces
ur5::rcg:... | 35.950226 | 111 | 0.670736 | kmarkus |
71c8b2edc7a73d4a97bb4860e43e1603f4bff6a0 | 3,043 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/Application/Comms/Network/WinQLNetworkHost.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/Application/Comms/Network/WinQLNetworkHost.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/Application/Comms/Network/WinQLNetworkHost.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLNetworkHost.cpp
// Copyright Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit th... | 41.121622 | 135 | 0.658232 | mfaithfull |
71c9843a7801ae4a062c4836970af4235cf6c501 | 1,212 | cpp | C++ | pgf+/src/reader/CncFun.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T18:00:39.000Z | 2019-05-03T18:00:39.000Z | pgf+/src/reader/CncFun.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | null | null | null | pgf+/src/reader/CncFun.cpp | egladil/mscthesis | d6f0c9b1b1e73b749894405372f2edf01e746920 | [
"BSD-2-Clause"
] | null | null | null | //
// CncFun.cpp
// pgf+
//
// Created by Emil Djupfeldt on 2012-06-26.
// Copyright (c) 2012 Chalmers University of Technology. All rights reserved.
//
#include <gf/reader/CncFun.h>
namespace gf {
namespace reader {
CncFun::CncFun(const std::string& name, const std::vector<Sequence*>& sequen... | 26.347826 | 110 | 0.476073 | egladil |
71cfda41c045686f2c34558cdfb67b5483f904c8 | 1,303 | hpp | C++ | include/xul/net/http/http_request_parser.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 2 | 2018-03-16T07:06:48.000Z | 2018-04-02T03:02:14.000Z | include/xul/net/http/http_request_parser.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | null | null | null | include/xul/net/http/http_request_parser.hpp | hindsights/xul | 666ce90742a9919d538ad5c8aad618737171e93b | [
"MIT"
] | 1 | 2019-08-12T05:15:29.000Z | 2019-08-12T05:15:29.000Z | #pragma once
#include <xul/net/http/http_message_parser.hpp>
#include <xul/net/url_request.hpp>
//#include <xul/net/url_encoding.hpp>
namespace xul {
class http_request_parser : public http_message_parser
{
public:
/// http_response_parser ready to parse the request method.
explicit http_request_parser(url... | 21.716667 | 64 | 0.618573 | hindsights |
71df93f766722e0c9cfde244b56c6dd7e4437207 | 418 | cpp | C++ | codeforces/practices/800/236A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | codeforces/practices/800/236A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | codeforces/practices/800/236A.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Codeforces Round #146 (Div. 2) - A. Boy or Girl
https://codeforces.com/problemset/problem/236/A
*/
#include <bits/stdc++.h>
using namespace std;
#define FAST_INP ios_base::sync_with_stdio(false);cin.tie(NULL)
int main()
{
FAST_INP;
string s;
cin >> s;
unordered_set<char> ss;
for(char c:s) ... | 19.904762 | 64 | 0.617225 | wingkwong |
71edd616e687bde427dd3f8738f38873732805f7 | 7,388 | cpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/ss/bizhawk.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 45 | 2017-07-24T05:31:06.000Z | 2019-03-29T12:23:57.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/ss/bizhawk.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 5 | 2017-07-24T02:37:24.000Z | 2018-12-28T16:51:06.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/ss/bizhawk.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 10 | 2017-07-24T02:11:43.000Z | 2018-12-27T20:49:37.000Z | #include "ss.h"
#include <memory>
#include "cdrom/cdromif.h"
#include "cdb.h"
#include "smpc.h"
#include "cart.h"
#include <ctime>
#define EXPORT extern "C" ECL_EXPORT
using namespace MDFN_IEN_SS;
int32 (*FirmwareSizeCallback)(const char *filename);
void (*FirmwareDataCallback)(const char *filename, uint8 *dest);
EX... | 22.455927 | 134 | 0.714672 | redscientistlabs |
71ee02ef79ec381ecd6e3db6a7e79280dd498cfa | 487 | cpp | C++ | p551/p551.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | 1 | 2019-10-07T05:00:21.000Z | 2019-10-07T05:00:21.000Z | p551/p551.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | p551/p551.cpp | suzyz/leetcode_practice | e22dc5a81e065dc962e5561b14ac84b9a2302e8a | [
"MIT"
] | null | null | null | class Solution {
public:
bool checkRecord(string s) {
int n = s.length();
int countA = 0;
for (int i = 0; i < n; ++i)
if (s[i] == 'A') {
if (countA)
return false;
++countA;
} else
if (s[i] ==... | 24.35 | 64 | 0.297741 | suzyz |
71ef881fafb7f6a972f732662b84f9224cf50779 | 1,899 | cpp | C++ | Greedy Algo/HuffmanEncoding.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 22 | 2021-10-01T20:14:15.000Z | 2022-02-22T15:27:20.000Z | Greedy Algo/HuffmanEncoding.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 15 | 2021-10-01T20:24:55.000Z | 2021-10-31T05:55:14.000Z | Greedy Algo/HuffmanEncoding.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 76 | 2021-10-01T20:01:06.000Z | 2022-03-02T16:15:24.000Z | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
struct node
{
char data;
int freq;
node *left, *right;
node(char d, int f)
{
data = d;
freq = f;
left = NULL;
... | 22.081395 | 63 | 0.415482 | Bhannasa |
71f16752fe7540998567e65b1bf8f3fc29418438 | 1,886 | cc | C++ | src/update_engine/action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 12 | 2019-06-26T18:32:06.000Z | 2022-03-01T17:32:36.000Z | src/update_engine/action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 6 | 2018-11-22T21:11:34.000Z | 2022-02-24T13:36:57.000Z | src/update_engine/action_unittest.cc | remarkableno/update_engine | cdffd37e3f005b7738bf596b9bc8d4155e4c7e15 | [
"BSD-3-Clause"
] | 5 | 2018-06-24T13:19:40.000Z | 2020-10-15T17:10:56.000Z | // Copyright (c) 2010 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 <string>
#include <gtest/gtest.h>
#include "update_engine/action.h"
#include "update_engine/action_processor.h"
using std::string;
names... | 24.179487 | 77 | 0.706787 | remarkableno |
71f4230c8dd4de135b614cd365ad3db398c06fe7 | 414 | cpp | C++ | ianlmk/cs161b/zybooks/10.10.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | ianlmk/cs161b/zybooks/10.10.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | 1 | 2022-03-25T18:34:47.000Z | 2022-03-25T18:35:23.000Z | ianlmk/cs161b/zybooks/10.10.1.cpp | ianlmk/cs161 | 7a50740d1642ca0111a6d0d076b600744552a066 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main();
void SwapValues(int &, int &);
int main() {
int userVal1;
int userVal2;
cin >> userVal1 >> userVal2;
SwapValues(userVal1, userVal2);
cout << userVal1 << " " << userVal2 << endl;
return 0;
}
void SwapValues(int &userVal1, int &userVal2) {
i... | 13.8 | 47 | 0.625604 | ianlmk |
71f69a138d49ac9f66e58c06b0edc0f6d99c94e8 | 1,331 | cpp | C++ | Source/GUI/UWP/HtmlView.xaml.cpp | buckmelanoma/MediaInfo | cf38b0e3d0e6ee2565f49276f423a5792ed62962 | [
"BSD-2-Clause"
] | 743 | 2015-01-13T23:16:53.000Z | 2022-03-31T22:56:27.000Z | Source/GUI/UWP/HtmlView.xaml.cpp | buckmelanoma/MediaInfo | cf38b0e3d0e6ee2565f49276f423a5792ed62962 | [
"BSD-2-Clause"
] | 317 | 2015-07-28T17:50:14.000Z | 2022-03-08T02:41:19.000Z | Source/GUI/UWP/HtmlView.xaml.cpp | buckmelanoma/MediaInfo | cf38b0e3d0e6ee2565f49276f423a5792ed62962 | [
"BSD-2-Clause"
] | 134 | 2015-01-30T05:33:51.000Z | 2022-03-21T09:39:38.000Z | /* Copyright (c) MediaArea.net SARL. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the License.html file in the root of the source tree.
*/
//---------------------------------------------------------------------------
#include "pch.h"
#include "H... | 36.972222 | 83 | 0.523666 | buckmelanoma |
71f6bb713cb9d4775b72a21dc13686a4ec9ff3e6 | 953 | hpp | C++ | test/mock/core/crypto/ed25519_provider_mock.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | test/mock/core/crypto/ed25519_provider_mock.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | test/mock/core/crypto/ed25519_provider_mock.hpp | igor-egorov/kagome | b2a77061791aa7c1eea174246ddc02ef5be1b605 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_TEST_MOCK_CORE_CRYPTO_ED25519_PROVIDER_MOCK_HPP
#define KAGOME_TEST_MOCK_CORE_CRYPTO_ED25519_PROVIDER_MOCK_HPP
#include "crypto/ed25519_provider.hpp"
#include <gmock/gmock.h>
namespace kagome::crypto ... | 29.78125 | 80 | 0.656873 | igor-egorov |
71fbb264bec8f56481ed01fb146cc21e66454b00 | 5,762 | hpp | C++ | src/_viennacl/common.hpp | viennacl/pyviennacl-dev | 3509318db9eb4cc788f262f4e3924775f0cf3a01 | [
"MIT"
] | 26 | 2015-01-03T20:06:05.000Z | 2021-09-09T09:23:14.000Z | src/_viennacl/common.hpp | viennacl/pyviennacl-dev | 3509318db9eb4cc788f262f4e3924775f0cf3a01 | [
"MIT"
] | 18 | 2015-01-12T00:08:42.000Z | 2021-01-18T10:31:06.000Z | src/_viennacl/common.hpp | viennacl/pyviennacl-dev | 3509318db9eb4cc788f262f4e3924775f0cf3a01 | [
"MIT"
] | 5 | 2015-09-17T16:42:58.000Z | 2022-03-21T19:21:43.000Z | #ifndef _PYVIENNACL_H
#define _PYVIENNACL_H
#include <boost/python.hpp>
#include <boost/numpy.hpp>
#include <viennacl/tools/shared_ptr.hpp>
#include <viennacl/matrix.hpp>
#include <viennacl/linalg/prod.hpp>
#define CONCAT(...) __VA_ARGS__
namespace vcl = viennacl;
namespace bp = boost::python;
namespace np = boost:... | 26.072398 | 78 | 0.615064 | viennacl |
71fbbb89ba5add52b43bb7c49697a429b7080609 | 7,302 | cpp | C++ | src/Screen.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | src/Screen.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | src/Screen.cpp | anonidiot/Wizardry8Editor | 2e844b8bbab9adbee5796de3190f478a91cc829a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2022 Anonymous Idiot
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following... | 31.747826 | 100 | 0.589565 | anonidiot |
9f95de78124dbd0c656859e902d87bc881ec78b7 | 2,637 | cc | C++ | dcmimgle/libsrc/diovlimg.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 29 | 2020-02-13T17:40:16.000Z | 2022-03-12T14:58:22.000Z | dcmimgle/libsrc/diovlimg.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 20 | 2020-03-20T18:06:31.000Z | 2022-02-25T08:38:08.000Z | dcmimgle/libsrc/diovlimg.cc | palmerc/dcmtk | 716832be091d138f3e119c47a4e1e243f5b261d3 | [
"Apache-2.0"
] | 9 | 2020-03-20T17:29:55.000Z | 2022-02-14T10:15:33.000Z | /*
*
* Copyright (C) 1996-2016, OFFIS e.V.
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation were developed by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmimgle
*
* Author: Joerg R... | 27.757895 | 113 | 0.496018 | palmerc |
9f999fc7522ff693a0337e4cdb616d9e00686e0a | 3,114 | cpp | C++ | tests/vu/lower/random.cpp | unknownbrackets/ps2autotests | 97469ffbed8631277b94e28d01dabd702aa97ef3 | [
"0BSD"
] | 25 | 2015-04-07T23:13:49.000Z | 2021-09-27T08:03:53.000Z | tests/vu/lower/random.cpp | unknownbrackets/ps2autotests | 97469ffbed8631277b94e28d01dabd702aa97ef3 | [
"0BSD"
] | 42 | 2015-04-27T03:12:48.000Z | 2018-05-08T13:53:39.000Z | tests/vu/lower/random.cpp | unknownbrackets/ps2autotests | 97469ffbed8631277b94e28d01dabd702aa97ef3 | [
"0BSD"
] | 8 | 2015-04-26T06:29:01.000Z | 2021-05-27T09:50:03.000Z | #include <common-ee.h>
#include "../test_runner.h"
static const u32 __attribute__((aligned(16))) C_ZEROONE[4] = {0x3F800000, 0x3FFFFFFF, 0x00000000, 0xFFFFFFFF};
static const u32 __attribute__((aligned(16))) C_GARBAGE[4] = {0x01234567, 0x89ABCDEF, 0xFEDCBA98, 0x76543210};
static u32 *const CVF_ZEROONE ... | 24.714286 | 115 | 0.65639 | unknownbrackets |
9f9afd1436096594f828dc272f8e7c4f402d4f2f | 1,226 | cpp | C++ | cpp_regex_email/regex_email_test.cpp | cg011235/tutorials | 44d4b4ef520fa67abc1fc2eca2b711d7c26490bf | [
"MIT"
] | null | null | null | cpp_regex_email/regex_email_test.cpp | cg011235/tutorials | 44d4b4ef520fa67abc1fc2eca2b711d7c26490bf | [
"MIT"
] | null | null | null | cpp_regex_email/regex_email_test.cpp | cg011235/tutorials | 44d4b4ef520fa67abc1fc2eca2b711d7c26490bf | [
"MIT"
] | null | null | null | /**
* Match regular expression
*/
#include <regex>
#include <iostream>
#include "gtest/gtest.h"
/*
* The valid email we define as follows.
* 1. It ends with .com
* 2. It has domain like @gmail
*/
bool isValidEmail(std::string str) {
std::regex e("(\\w+)@(\\w+)(\\.(\\w+))+");
/**
* (\\w+) - One o... | 26.652174 | 105 | 0.620718 | cg011235 |
9fa3e2269abdf80669538df1eb510f9781bdf12e | 7,139 | cpp | C++ | apps/parallelArray.cpp | bjbanks/Multicore-Term-Project | f74a1ff088aca45384b8fa23eaa129ef527c9930 | [
"MIT"
] | null | null | null | apps/parallelArray.cpp | bjbanks/Multicore-Term-Project | f74a1ff088aca45384b8fa23eaa129ef527c9930 | [
"MIT"
] | null | null | null | apps/parallelArray.cpp | bjbanks/Multicore-Term-Project | f74a1ff088aca45384b8fa23eaa129ef527c9930 | [
"MIT"
] | null | null | null | /*
* Copyright 2020 Bryson Banks and David Campbell. All rights reserved.
*/
#include "parallelArray.h"
#include "math.h"
#include <iostream>
namespace BENCHMARKS {
WSDS::Scheduler* parSched;
int work_per_subtask;
void print_arr(int* arr, int size){
for (int i = 0; i < size; i ++){
... | 26.343173 | 117 | 0.485222 | bjbanks |
9fa6df2d2a3b6e4c4c7d038f355f885529f148bf | 1,910 | cc | C++ | bzip2_test.cc | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | 9 | 2019-09-17T10:33:58.000Z | 2021-07-29T10:03:42.000Z | bzip2_test.cc | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | null | null | null | bzip2_test.cc | nurettin/libnuwen | 5b3012d9e75552c372a4d09b218b7af04a928e68 | [
"BSL-1.0"
] | 1 | 2019-10-05T04:31:22.000Z | 2019-10-05T04:31:22.000Z | // Copyright Stephan T. Lavavej, http://nuwen.net .
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at
// http://boost.org/LICENSE_1_0.txt .
#include "bzip2.hh"
#include "clock.hh"
#include "file.hh"
#include "test.hh"
#include "typedef.hh"
#include "vecto... | 26.164384 | 79 | 0.663874 | nurettin |
9fab47dadc6c0d778e18a7f7468b517fba2bd2aa | 11,613 | cpp | C++ | src/AltMatrix2D.cpp | dss-bridge/dss | ca58e4eb2750bf6650fcb76b8bc085aaec699283 | [
"Apache-2.0"
] | null | null | null | src/AltMatrix2D.cpp | dss-bridge/dss | ca58e4eb2750bf6650fcb76b8bc085aaec699283 | [
"Apache-2.0"
] | null | null | null | src/AltMatrix2D.cpp | dss-bridge/dss | ca58e4eb2750bf6650fcb76b8bc085aaec699283 | [
"Apache-2.0"
] | null | null | null | /*
SDS, a bridge single-suit double-dummy quick-trick solver.
Copyright (C) 2015 by Soren Hein.
See LICENSE and README.
*/
#include <iomanip>
#include <assert.h>
#include "AltMatrix2D.h"
using namespace std;
AltMatrix2D::AltMatrix2D()
{
AltMatrix2D::Reset();
}
AltMatrix2D::~AltMatrix2D()
{
}
voi... | 22.637427 | 75 | 0.603978 | dss-bridge |
9fabf9635a43fb498b12469e883145e7da3c8e30 | 2,354 | cc | C++ | utils/strings/append.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | null | null | null | utils/strings/append.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | null | null | null | utils/strings/append.cc | yangzhigang1999/libtextclassifier | 4c965f1c12b3c7a37f6126cef737a8fe33f4677c | [
"Apache-2.0"
] | 1 | 2021-03-20T03:40:21.000Z | 2021-03-20T03:40:21.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 25.868132 | 75 | 0.644435 | yangzhigang1999 |
9fada3d1fd5c8c0442bee91dfe52c5c5ca19dd20 | 2,253 | cpp | C++ | linked_List.cpp | goyalshubhangi/Practicals_Data_Structure | 0358dc9b5ab198d84fd389d68021c2eda08eb8da | [
"MIT"
] | null | null | null | linked_List.cpp | goyalshubhangi/Practicals_Data_Structure | 0358dc9b5ab198d84fd389d68021c2eda08eb8da | [
"MIT"
] | null | null | null | linked_List.cpp | goyalshubhangi/Practicals_Data_Structure | 0358dc9b5ab198d84fd389d68021c2eda08eb8da | [
"MIT"
] | null | null | null | #include<iostream>
#include <stdio.h>
#include<stdlib.h>
using namespace std;
template <class t>
struct node
{
t data;
node<t> *next;
void createList(t n);
void deletion();
void insert_data(t data);
void Display();
};
struct node<int> *start;
template <class t>
void node<t>::createList(t n)
{
struct node<int> *... | 15.326531 | 57 | 0.615624 | goyalshubhangi |
9faf0de9277cfb18d6a506e99f67782af43040cb | 1,798 | cpp | C++ | source/PinCallback.cpp | xzrunner/shaderlab | c70a05d478a971eb228998b0f8d2f9d6cbd0fedd | [
"MIT"
] | 2 | 2016-11-16T16:32:18.000Z | 2017-04-18T13:28:11.000Z | source/PinCallback.cpp | xzrunner/shaderlab | c70a05d478a971eb228998b0f8d2f9d6cbd0fedd | [
"MIT"
] | null | null | null | source/PinCallback.cpp | xzrunner/shaderlab | c70a05d478a971eb228998b0f8d2f9d6cbd0fedd | [
"MIT"
] | 1 | 2016-11-16T16:32:21.000Z | 2016-11-16T16:32:21.000Z | #include "shaderlab/PinCallback.h"
#include "shaderlab/PinType.h"
#include <painting0/Color.h>
#include <blueprint/Pin.h>
#include <blueprint/Node.h>
#include <string>
#include <assert.h>
namespace
{
const pt0::Color PIN_COLORS[] = {
#define PIN_INFO(type, color, desc) \
pt0::Color##color,
#include "shaderlab/... | 22.197531 | 82 | 0.6396 | xzrunner |
9fb00f1f5c6f3de8edf361fece8b8292d8c040bf | 3,002 | hpp | C++ | math/formal_power_series/falling_factorial_polynomial_multiplication.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 7 | 2021-07-20T15:25:00.000Z | 2022-03-13T11:58:25.000Z | math/formal_power_series/falling_factorial_polynomial_multiplication.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | 10 | 2021-03-11T16:08:22.000Z | 2022-03-13T08:40:36.000Z | math/formal_power_series/falling_factorial_polynomial_multiplication.hpp | hly1204/library | b62c47a8f20623c1f1edd892b980714e8587f40e | [
"Unlicense"
] | null | null | null | #ifndef FALLING_FACTORIAL_POLYNOMIAL_MULTIPLICATION_HEADER_HPP
#define FALLING_FACTORIAL_POLYNOMIAL_MULTIPLICATION_HEADER_HPP
/**
* @brief falling factorial polynomial multiplication
* @docs docs/math/formal_power_series/falling_factorial_polynomial_multiplication.md
*/
#include <algorithm>
#include <cass... | 29.722772 | 95 | 0.612258 | hly1204 |
9fb4b52fe41fea12e78ec17fea6c5ff746b67abf | 5,287 | cpp | C++ | Game/BattleLogic/TW_EffectMgr.cpp | TaoReiches/Tao | bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01 | [
"Apache-2.0"
] | 2 | 2020-09-30T15:17:32.000Z | 2021-02-22T14:19:54.000Z | Game/BattleLogic/TW_EffectMgr.cpp | TaoReiches/Tao | bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01 | [
"Apache-2.0"
] | null | null | null | Game/BattleLogic/TW_EffectMgr.cpp | TaoReiches/Tao | bf54cdf5284d3a6fd7b2e8aec0bc26fa96442a01 | [
"Apache-2.0"
] | null | null | null | /**********************************************
* Author: Tao Wang Copyright reserved
* Contact: tao.reiches@gmail.com
**********************************************/
#include "TW_EffectMgr.h"
#include "TW_Effect.h"
#include <TW_TriggerMgr.h>
#include "TW_TriggerEvent.h"
#include "TW_Main.h"
#include "TW_MemoryObject... | 18.421603 | 85 | 0.682618 | TaoReiches |
9fb6febff1b0f94a2e4fae47a6cf76c4d1dc91ba | 912 | cpp | C++ | src/sadthreadexecutablefunction.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 58 | 2015-08-09T14:56:35.000Z | 2022-01-15T22:06:58.000Z | src/sadthreadexecutablefunction.cpp | mamontov-cpp/saddy-graphics-engine-2d | e25a6637fcc49cb26614bf03b70e5d03a3a436c7 | [
"BSD-2-Clause"
] | 245 | 2015-08-08T08:44:22.000Z | 2022-01-04T09:18:08.000Z | src/sadthreadexecutablefunction.cpp | mamontov-cpp/saddy | f20a0030e18af9e0714fe56c19407fbeacc529a7 | [
"BSD-2-Clause"
] | 23 | 2015-12-06T03:57:49.000Z | 2020-10-12T14:15:50.000Z | #include <sadthreadexecutablefunction.h>
sad::AbstractThreadExecutableFunction::~AbstractThreadExecutableFunction()
{
}
sad::AbstractThreadExecutableFunction * sad::util::EmptyThreadExecutableFunction::clone() const
{
return new sad::util::EmptyThreadExecutableFunction();
}
int sad::util::EmptyThrea... | 23.384615 | 100 | 0.737939 | mamontov-cpp |
9fb98b1f314f5b839ded2c331b4f1265dd27753a | 1,835 | hpp | C++ | core/inc/ga/avcodec.hpp | A-F-Kazakov/gaminganywhere | e9a74d3c7cd01f494b6d5c19619071dfeadd343b | [
"BSD-3-Clause"
] | 4 | 2021-04-28T19:08:34.000Z | 2022-02-08T08:56:28.000Z | core/inc/ga/avcodec.hpp | GamingAnywhere/gaminganywhere | e9a74d3c7cd01f494b6d5c19619071dfeadd343b | [
"BSD-3-Clause"
] | null | null | null | core/inc/ga/avcodec.hpp | GamingAnywhere/gaminganywhere | e9a74d3c7cd01f494b6d5c19619071dfeadd343b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2013 Chun-Ying Huang
*
* This file is part of GamingAnywhere (GA).
*
* GA is free software; you can redistribute it and/or modify it
* under the terms of the 3-clause BSD License as published by the
* Free Software Foundation: http://directory.fsf.org/wiki/License:BSD_3Clause
*
* GA is distr... | 36.7 | 170 | 0.773842 | A-F-Kazakov |
9fc6eb8a49ab9dcabb4ade19ed9e92bc6423a311 | 1,068 | cpp | C++ | 01 January Leetcode Challenge 2021/30 minDeviationArray.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 7 | 2020-12-01T14:27:57.000Z | 2022-02-12T09:17:22.000Z | 01 January Leetcode Challenge 2021/30 minDeviationArray.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 4 | 2020-11-12T17:49:22.000Z | 2021-09-06T07:46:37.000Z | 01 January Leetcode Challenge 2021/30 minDeviationArray.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 6 | 2021-05-21T03:49:22.000Z | 2022-01-20T20:36:53.000Z | class Solution {
public:
int minimumDeviation(vector<int>& nums) {
// Step 1 :- increase all elements to as maximum as it can and track the minn number and also the result
int N = nums.size();
int maxx = INT_MIN, minn = INT_MAX;
for(int i = 0; i < N; i++){
if((nums[i])%2 !=... | 29.666667 | 109 | 0.48221 | FazeelUsmani |
9fc7af414978dfe7d51b79ad3bb9573006175498 | 1,401 | cpp | C++ | Triger/src/Triger/Renderer/OrthographicCamera.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | 2 | 2020-10-25T15:51:46.000Z | 2020-11-10T15:06:22.000Z | Triger/src/Triger/Renderer/OrthographicCamera.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | 3 | 2020-11-11T16:54:49.000Z | 2020-11-29T14:35:31.000Z | Triger/src/Triger/Renderer/OrthographicCamera.cpp | AzadKshitij/Triger | 969dbead69f5ebc40d8ef6bc9ec9d763c4510ecb | [
"MIT"
] | null | null | null | /*------------ Copyright © 2020 Azad Kshitij. All rights reserved. ------------
//
// Project : Triger
// License : https://opensource.org/licenses/MIT
// File : OrthographicCamera.cpp
// Created On : 10/11/2020
// Updated On : 10/11/2020
// Created By : Azad Kshitij @AzadKshitij
//-------... | 31.840909 | 93 | 0.660956 | AzadKshitij |
9fcb4b4e42156e48d39e832fccd5cad1d864464b | 707 | hpp | C++ | kernel/Cpu/Tss.hpp | Mrokkk/kernel | e3d6ab19800d1e6c81be20cc5d27696c90ba3146 | [
"MIT"
] | null | null | null | kernel/Cpu/Tss.hpp | Mrokkk/kernel | e3d6ab19800d1e6c81be20cc5d27696c90ba3146 | [
"MIT"
] | null | null | null | kernel/Cpu/Tss.hpp | Mrokkk/kernel | e3d6ab19800d1e6c81be20cc5d27696c90ba3146 | [
"MIT"
] | null | null | null | #pragma once
#include "Segment.hpp"
namespace cpu
{
struct Tss final
{
Tss();
void load() const;
uint32_t prevTss;
uint32_t esp0;
uint32_t ss0;
uint32_t esp1;
uint32_t ss1;
uint32_t esp2;
uint32_t ss2;
uint32_t cr3;
uint32_t eip;
uint32_t eflags;
uint32_t eax;
... | 15.711111 | 41 | 0.630835 | Mrokkk |
9fcd40033bfb0d7488806a9c7944872bfca30a5c | 10,482 | hpp | C++ | include/Bit/System/Matrix4x4.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/System/Matrix4x4.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/System/Matrix4x4.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////
// Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// 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... | 36.778947 | 78 | 0.394867 | jimmiebergmann |
9fd43818263e52f10508fab17863902379c39a96 | 4,188 | cc | C++ | client/squad_eval_dataset.cc | pcastonguay/speechsquad | 87779a852188e257610a3beae1e825b83841648f | [
"Apache-2.0"
] | 56 | 2020-10-05T17:38:14.000Z | 2022-02-23T07:17:27.000Z | client/squad_eval_dataset.cc | pcastonguay/speechsquad | 87779a852188e257610a3beae1e825b83841648f | [
"Apache-2.0"
] | 2 | 2021-12-05T22:16:15.000Z | 2021-12-07T00:32:45.000Z | client/squad_eval_dataset.cc | pcastonguay/speechsquad | 87779a852188e257610a3beae1e825b83841648f | [
"Apache-2.0"
] | 9 | 2020-10-05T20:04:41.000Z | 2021-11-17T04:40:45.000Z | /*
* Copyright (c) 2020, NVIDIA CORPORATION. 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 requi... | 33.504 | 78 | 0.627507 | pcastonguay |
9fd8493c8af469551e3af9570633023dffd27284 | 1,981 | cpp | C++ | libs/sge_engine/src/sge_engine/materials/Material.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/materials/Material.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | libs/sge_engine/src/sge_engine/materials/Material.cpp | Alekssasho/sge_source | 2db4ae08f7b3434d32dd9767fe1136234cb70b83 | [
"MIT"
] | null | null | null | #include "Material.h"
#include "sge_core/Geometry.h"
namespace sge {
// clang-format off
DefineTypeId(OMaterial, 20'10'14'0001);
DefineTypeId(MDiffuseMaterial, 20'10'14'0002);
ReflBlock() {
ReflAddObject(OMaterial);
ReflAddObject(MDiffuseMaterial).inherits<MDiffuseMaterial, OMaterial>()
ReflMember(MDiffuseMater... | 31.444444 | 132 | 0.757193 | Alekssasho |
9fe29b1dbb3d25300f9633732abc262f8b18ba38 | 49,449 | cpp | C++ | src/rcv/binex.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 1 | 2020-06-05T15:16:36.000Z | 2020-06-05T15:16:36.000Z | src/rcv/binex.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 1 | 2020-06-14T07:04:29.000Z | 2020-06-14T07:04:29.000Z | src/rcv/binex.cpp | akstuki/rtklibcpp | 241753fba4d92fb09f3337e6c82b1ed9283675be | [
"BSD-2-Clause"
] | 2 | 2021-09-26T09:00:02.000Z | 2021-09-26T10:07:52.000Z | /*------------------------------------------------------------------------------
* binex.c : binex dependent functions
*
* Copyright (C) 2013-2019 by T.TAKASU, All rights reserved.
*
* reference :
* [1] UNAVCO, BINEX: Binary exchange format
* (http://binex.unavco.org/binex.html)
*
* version : $Revi... | 36.041545 | 84 | 0.527695 | akstuki |
9fec843460ec66bcbb72c3cbe0ed45e049a4ebfc | 13,318 | cpp | C++ | examples/esp32_devkit_v1_tx/src/smartport.cpp | nkruzan/hx_espnow_rc | 448f8c42bff36f8182665a865fcfe391560b01f0 | [
"MIT"
] | 10 | 2021-07-11T22:24:11.000Z | 2022-02-05T06:13:17.000Z | examples/esp32_devkit_v1_tx/src/smartport.cpp | nkruzan/hx_espnow_rc | 448f8c42bff36f8182665a865fcfe391560b01f0 | [
"MIT"
] | 1 | 2021-11-22T23:09:58.000Z | 2021-11-22T23:35:39.000Z | examples/esp32_devkit_v1_tx/src/smartport.cpp | nkruzan/hx_espnow_rc | 448f8c42bff36f8182665a865fcfe391560b01f0 | [
"MIT"
] | 1 | 2021-11-16T02:41:25.000Z | 2021-11-16T02:41:25.000Z | #include "smartport.h"
#include "smartport.h"
#include "tx_config.h"
//https://github.com/yaapu/FrskyTelemetryScript/wiki/FrSky-SPort-protocol-specs
//include for HXRCLOG usage
#include "HX_ESPNOW_RC_Common.h"
#define FRSKY_START_STOP 0x7e
#define FRSKY_BYTESTUFF 0x7d
#define FRSKY_STUFF_MASK 0x20
// FrSky data... | 35.047368 | 181 | 0.614732 | nkruzan |
9fefa7c60ad27d61f2f4727ddc7e6e4434464592 | 3,147 | cc | C++ | framework/JPetUnpacker/Unpacker2/Unpacker_TRB2.cc | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | framework/JPetUnpacker/Unpacker2/Unpacker_TRB2.cc | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | framework/JPetUnpacker/Unpacker2/Unpacker_TRB2.cc | wictus/oldScopeAnalysis | e8a15f11c504c1a1a880d4a5096cdbfac0edf2de | [
"MIT"
] | null | null | null | #include "Unpacker_TRB2.h"
#include <iostream>
using namespace std;
ClassImp(Unpacker_TRB2);
Unpacker_TRB2::Unpacker_TRB2(string bT, string bA, string hA, int cN, int o, int r, string mR, bool dec, bool dbg) : UnpackingModule(bT, bA, hA, cN, o, r, mR, dec, dbg) {
cerr<<"TRB2: Creating Unpacker_TRB2 for board type:... | 27.849558 | 170 | 0.600254 | wictus |
9ff29ce12e58e47c0b7ab7cf27f380ca2646def2 | 2,400 | hpp | C++ | src/main/cpp/inverted_penguin/io/FileInputBuffer.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/inverted_penguin/io/FileInputBuffer.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/inverted_penguin/io/FileInputBuffer.hpp | tomault/inverted_penguin | 0cd939de38d860d32194203048d0a70a34fcca75 | [
"Apache-2.0"
] | null | null | null | #ifndef __INVERTED_PENGUIN__IO__FILEINPUTBUFFER_HPP__
#define __INVERTED_PENGUIN__IO__FILEINPUTBUFFER_HPP__
#include <pistis/filesystem/File.hpp>
#include <memory>
#include <string.h>
namespace inverted_penguin {
namespace io {
class FileInputBuffer {
public:
static constexpr const size_t DEFAULT_BUF... | 24.489796 | 69 | 0.641667 | tomault |
9ff2f15d760b0c3ae960beee703b0d2664e72063 | 1,125 | cpp | C++ | common/source/common/toolkit/UiTk.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | common/source/common/toolkit/UiTk.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | common/source/common/toolkit/UiTk.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include "UiTk.h"
#include <boost/algorithm/string.hpp>
bool uitk::userYNQuestion(const std::string& question,
boost::optional<bool> defaultAnswer,
std::istream& input)
{
while (true) {
std::cout << question
<< " ["
<< (defau... | 23.93617 | 62 | 0.439111 | TomatoYoung |
9ff6f1bad392dba29818eaf746d6e7af0d384b7f | 9,710 | cpp | C++ | Raymarcher/src/Fractal/Folds/Folds.cpp | conholo/Raymarcher | 880a268a1ca11161df52462a2b2908a402408227 | [
"Apache-2.0"
] | null | null | null | Raymarcher/src/Fractal/Folds/Folds.cpp | conholo/Raymarcher | 880a268a1ca11161df52462a2b2908a402408227 | [
"Apache-2.0"
] | null | null | null | Raymarcher/src/Fractal/Folds/Folds.cpp | conholo/Raymarcher | 880a268a1ca11161df52462a2b2908a402408227 | [
"Apache-2.0"
] | null | null | null | #include "rmpch.h"
#include "Fractal/Folds/Folds.h"
#include "Fractal/FractalUtility.h"
#include <glm/gtx/string_cast.hpp>
namespace RM
{
Fold::Fold()
:IGLSLConvertable(ColorType::None, AttributeType::Fold)
{
}
std::string FoldScaleTranslate::TransformationToGLSL() const
{
std::stringstream ss;
if (m_Sca... | 30.727848 | 273 | 0.606591 | conholo |
9ff74e42f109dacdfb1ef91e3a7ac43060fc99b2 | 781 | cpp | C++ | Luogu/107/P1104.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | Luogu/107/P1104.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | Luogu/107/P1104.cpp | anine09/ACM | e9e8f09157e4ec91c1752a4b4724e28dfeaae4e6 | [
"MIT"
] | null | null | null | #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
struct student
{
string name;
int year;
int month;
int day;
int num;
} s[110];
int n;
bool cmp(student a,student b){
if(a.year==b.year){
if (a.month==b.month)
{
if(a.day==b.day)
... | 16.617021 | 64 | 0.441741 | anine09 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.