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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
002ffe877490ef43d0206adc11aade85d3f56abc | 3,493 | cpp | C++ | RtkServer/mainwindow.cpp | CORAL-CMU/Qt | 85f29279e70121d5108c6d9295b2ba09826fba85 | [
"MIT"
] | null | null | null | RtkServer/mainwindow.cpp | CORAL-CMU/Qt | 85f29279e70121d5108c6d9295b2ba09826fba85 | [
"MIT"
] | null | null | null | RtkServer/mainwindow.cpp | CORAL-CMU/Qt | 85f29279e70121d5108c6d9295b2ba09826fba85 | [
"MIT"
] | 2 | 2021-01-22T14:58:10.000Z | 2021-12-24T17:22:42.000Z | #include "mainwindow.h"
#include "ui_mainwindow.h"
#define GPGGASTR "$GPGGA,000637.10,4026.4183386,N,07956.1275614,W,5,06,1.0,308.021,M,-34.121,M,1.1,*7C"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
client = new QNtripClient();... | 30.112069 | 104 | 0.6284 | CORAL-CMU |
0031dd4a87c00acaa7a66eeac4932568affff836 | 2,097 | cpp | C++ | savefinalmoviedialog.cpp | chennes/Stop_Motion_Animation | 282c65a38053202c4e35735a0bf0a53797dc1481 | [
"MIT"
] | 3 | 2015-09-28T13:14:06.000Z | 2019-11-28T13:23:10.000Z | savefinalmoviedialog.cpp | chennes/Stop_Motion_Animation | 282c65a38053202c4e35735a0bf0a53797dc1481 | [
"MIT"
] | 42 | 2017-03-26T15:22:37.000Z | 2019-04-05T13:42:00.000Z | savefinalmoviedialog.cpp | chennes/Stop_Motion_Animation | 282c65a38053202c4e35735a0bf0a53797dc1481 | [
"MIT"
] | null | null | null | #include "savefinalmoviedialog.h"
#include "ui_savefinalmoviedialog.h"
#include "settings.h"
#include <QFileDialog>
SaveFinalMovieDialog::SaveFinalMovieDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SaveFinalMovieDialog)
{
ui->setupUi(this);
}
SaveFinalMovieDialog::~SaveFinalMovieDialog()
{
d... | 26.544304 | 125 | 0.664759 | chennes |
004ccf2cd8b1955dfcdc018a74343e217ce5c42c | 3,603 | cpp | C++ | Raven.CppClient/AbstractIndexCreationTaskBase.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-04-24T02:34:53.000Z | 2019-08-01T08:22:26.000Z | Raven.CppClient/AbstractIndexCreationTaskBase.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 2 | 2019-03-21T09:00:02.000Z | 2021-02-28T23:49:26.000Z | Raven.CppClient/AbstractIndexCreationTaskBase.cpp | mlawsonca/ravendb-cpp-client | c3a3d4960c8b810156547f62fa7aeb14a121bf74 | [
"MIT"
] | 3 | 2019-03-04T11:58:54.000Z | 2021-03-01T00:25:49.000Z | #include "stdafx.h"
#include "AbstractIndexCreationTaskBase.h"
#include "GetCppClassName.h"
#include "MaintenanceOperationExecutor.h"
#include "PutIndexesOperation.h"
namespace ravendb::client::documents::indexes
{
void AbstractIndexCreationTaskBase::throw_index_name_was_set()
{
throw std::runtime_error("The index... | 25.020833 | 105 | 0.760755 | mlawsonca |
0059dd34aff2b4d2706c023af6cbe8af14f4b01e | 12,257 | cpp | C++ | src/tablestore/core/error.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/error.cpp | TimeExceed/aliyun-tablestore-cpp-sdk | f8d2fdf500badf70073dff4e21a5d2d7aa7d3853 | [
"BSD-3-Clause"
] | null | null | null | src/tablestore/core/error.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... | 41.549153 | 117 | 0.725381 | TimeExceed |
005b04f990045526bc490b386efddb77e7654851 | 1,462 | hpp | C++ | include/pyplot_cpp/plt/pyplot.hpp | CalebCintary/pyplot_cpp | de33c3e921229e5efd72a7fc4fdb17212edc9aa9 | [
"MIT"
] | 1 | 2022-03-29T10:52:21.000Z | 2022-03-29T10:52:21.000Z | include/pyplot_cpp/plt/pyplot.hpp | CalebCintary/pyplot_cpp | de33c3e921229e5efd72a7fc4fdb17212edc9aa9 | [
"MIT"
] | 1 | 2022-03-20T12:17:11.000Z | 2022-03-20T17:50:12.000Z | include/pyplot_cpp/plt/pyplot.hpp | CalebCintary/pyplot_cpp | de33c3e921229e5efd72a7fc4fdb17212edc9aa9 | [
"MIT"
] | 1 | 2022-03-29T19:40:59.000Z | 2022-03-29T19:40:59.000Z | //
// Created by calebcintary on 3/15/22.
//
// NOTE: Might be connection point between Dynamic Script and Embedded Interpreter
//
#ifndef PYPLOT_CPP_PYPLOT_HPP
#define PYPLOT_CPP_PYPLOT_HPP
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include "Property.hpp"
#include "pyplot_cpp/converter/c... | 24.779661 | 111 | 0.650479 | CalebCintary |
00611f8b4fb0a8cb06bebf72cff0fb151704ec8a | 4,449 | cpp | C++ | privatedns/src/v20201028/model/TldQuota.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 1 | 2022-01-27T09:27:34.000Z | 2022-01-27T09:27:34.000Z | privatedns/src/v20201028/model/TldQuota.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | privatedns/src/v20201028/model/TldQuota.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 24.445055 | 131 | 0.657901 | suluner |
00624f992da46ccb401186131cc5d4d2df6f1944 | 556 | cpp | C++ | Game/ZeldaDS/arm9/source/gslib/Hw/CpuClock.cpp | amaiorano/ZeldaDS | 78b093796a17ca0aaef4ff8b53a41fe59adc072e | [
"MIT"
] | 2 | 2018-02-18T19:11:39.000Z | 2020-08-16T18:16:35.000Z | Game/ZeldaDS/arm9/source/gslib/Hw/CpuClock.cpp | amaiorano/ZeldaDS | 78b093796a17ca0aaef4ff8b53a41fe59adc072e | [
"MIT"
] | null | null | null | Game/ZeldaDS/arm9/source/gslib/Hw/CpuClock.cpp | amaiorano/ZeldaDS | 78b093796a17ca0aaef4ff8b53a41fe59adc072e | [
"MIT"
] | null | null | null | #include "CpuClock.h"
#include <nds/timers.h>
namespace CpuClock
{
namespace
{
CpuTickType gLastFrameElapsedTicks = 0;
const uint32 gTimerChannel = 0;
}
void Update()
{
gLastFrameElapsedTicks = cpuEndTiming();
cpuStartTiming(gTimerChannel); // Restart timer for this frame
}
CpuTickType GetLastFrameEla... | 19.172414 | 77 | 0.730216 | amaiorano |
0064c2a0436cffecfcc6c0c09b31b80c8bc15810 | 1,885 | cpp | C++ | 2021/day20/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2021/day20/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2021/day20/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include "common/types.h"
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
int main(int argc, char *argv[]) {
std::string algorithm;
std::vector<std::string> image;
{
bool parseAlgorithm = true;
for (const auto &line : File::readAllLines(argv[1])) {
if (li... | 17.616822 | 72 | 0.481698 | bielskij |
006579b4fa6323be66e30c61ffd782770a19917a | 608 | cpp | C++ | VideoPaletteExtraction/VideoPaletteExtraction/SystemParameter.cpp | Zhengjun-Du/GeometricPaletteBasedVideoRecoloring | d48f4fa942910b7e855eded4f1a2801db22050e4 | [
"MIT"
] | 10 | 2021-10-02T10:22:33.000Z | 2022-02-16T07:11:22.000Z | VideoPaletteExtraction/VideoPaletteExtraction/SystemParameter.cpp | Zhengjun-Du/GeometricPaletteBasedVideoRecoloring | d48f4fa942910b7e855eded4f1a2801db22050e4 | [
"MIT"
] | null | null | null | VideoPaletteExtraction/VideoPaletteExtraction/SystemParameter.cpp | Zhengjun-Du/GeometricPaletteBasedVideoRecoloring | d48f4fa942910b7e855eded4f1a2801db22050e4 | [
"MIT"
] | 5 | 2021-10-02T14:00:50.000Z | 2022-02-08T06:25:06.000Z | #include "SystemParameter.h"
int SysParameter::frmCnt = 0;
int SysParameter::sampFrmCnt = 0;
int SysParameter::sampFrmPixCnt = 0;
double SysParameter::frmRefineRlossWt = 0;
double SysParameter::frmRefineClossWt = 0;
double SysParameter::blockAlpha = 0;
double SysParameter::blockBeta = 0;
double SysParameter::blockR... | 28.952381 | 42 | 0.784539 | Zhengjun-Du |
0066bc0e3588ff1af61067c4f710fa505c4bb122 | 4,475 | cpp | C++ | src/examples/example3.cpp | mohistH/nanogui_from_dalerank | ae4b5e04b2d8e2e85ab63b737fd13f8882243526 | [
"MIT"
] | 2 | 2021-01-05T08:50:59.000Z | 2021-08-17T09:09:55.000Z | src/examples/example3.cpp | mohistH/nanogui_from_dalerank | ae4b5e04b2d8e2e85ab63b737fd13f8882243526 | [
"MIT"
] | null | null | null | src/examples/example3.cpp | mohistH/nanogui_from_dalerank | ae4b5e04b2d8e2e85ab63b737fd13f8882243526 | [
"MIT"
] | 1 | 2021-08-17T09:09:57.000Z | 2021-08-17T09:09:57.000Z | /*
src/example3.cpp -- C++ version of an example application that shows
how to use nanogui in an application with an already created and managed
glfw context.
NanoGUI was developed by Wenzel Jakob <wenzel.jakob@epfl.ch>.
The widget drawing code is based on the NanoVG demo application
by Mikko M... | 28.503185 | 184 | 0.679777 | mohistH |
006a814318fbd236ff070c9008cd1307032ee45f | 925 | cpp | C++ | message/pong.cpp | kagamikarasu/shaula | cbda881578669cbf407845e46a9a9f988a155aba | [
"MIT"
] | null | null | null | message/pong.cpp | kagamikarasu/shaula | cbda881578669cbf407845e46a9a9f988a155aba | [
"MIT"
] | 13 | 2021-08-09T10:25:28.000Z | 2021-08-12T07:39:05.000Z | message/pong.cpp | kagamikarasu/shaula | cbda881578669cbf407845e46a9a9f988a155aba | [
"MIT"
] | null | null | null | //
// Pong.cpp
//
// Copyright (c) 2021 Yuya Takeda (@kagamikarasu)
//
// MIT LICENSE
// See the following LICENSE file
// https://github.com/kagamikarasu/shaula/
//
#include "pong.h"
Pong::Pong(const std::vector<unsigned char> &bytes) {
setCommand(CommandDef.PONG);
setNonce(bytes);
}
void Pong::setNonce(con... | 22.02381 | 64 | 0.656216 | kagamikarasu |
0075720f22d3e68212c06e73df62b3cd9ae10eac | 3,104 | cpp | C++ | source/Ch19/chapter/vector010_2.cpp | Fantasztikus21/UDProg-Introduction | 3828bf41bdfa483decd27aa1a9ab62b5d2633245 | [
"CC0-1.0"
] | 3 | 2021-11-02T08:30:53.000Z | 2022-02-28T07:32:25.000Z | source/Ch19/chapter/vector010_2.cpp | Fantasztikus21/UDProg-Introduction | 3828bf41bdfa483decd27aa1a9ab62b5d2633245 | [
"CC0-1.0"
] | 1 | 2020-11-10T15:58:17.000Z | 2020-11-10T15:58:17.000Z | source/Ch19/chapter/vector010_2.cpp | Fantasztikus21/UDProg-Introduction | 3828bf41bdfa483decd27aa1a9ab62b5d2633245 | [
"CC0-1.0"
] | 122 | 2020-09-12T08:29:45.000Z | 2022-03-04T10:22:46.000Z | #include "../std_lib_facilities.h"
class My_out_of_range{};
class My_vector {
int sz;
double* elem;
int space;
void debug(const string& s)
{
cerr << this << "->" << s << "; elem ptr: " << elem << '\n';
}
public:
My_vector(): sz{0}, elem{nullptr}, space{0} {}
explicit My_vector(int s): sz{s}, elem{new d... | 18.046512 | 73 | 0.568621 | Fantasztikus21 |
007bdb80aac3224dded2221d1ab1258e9ad9edb8 | 3,733 | cpp | C++ | Curses/WindowSystem.cpp | takeupcode/TUCUT | 17ef8064792b6b74e311d6438f43970cc97dba77 | [
"MIT"
] | 8 | 2018-10-29T02:42:52.000Z | 2021-02-04T17:37:14.000Z | Curses/WindowSystem.cpp | takeupcode/TUCUT | 17ef8064792b6b74e311d6438f43970cc97dba77 | [
"MIT"
] | null | null | null | Curses/WindowSystem.cpp | takeupcode/TUCUT | 17ef8064792b6b74e311d6438f43970cc97dba77 | [
"MIT"
] | 1 | 2019-11-07T02:18:23.000Z | 2019-11-07T02:18:23.000Z | //
// WindowSystem.cpp
// TUCUT (Take Up Code Utility)
//
// Created by Abdul Wahid Tanner on 10/26/17.
// Copyright © 2017 Take Up Code. All rights reserved.
//
#include "WindowSystem.h"
#include <curses.h>
#include "Colors.h"
#include "CursesUtil.h"
#include "ConsoleManager.h"
#include "Window.h"
namespace TU... | 18.665 | 95 | 0.665149 | takeupcode |
008201a15e8f07132fd91304cfcdb2ad15982666 | 1,385 | cpp | C++ | graphics/Win32Adapter.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | graphics/Win32Adapter.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | graphics/Win32Adapter.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "Win32Adapter.hpp"
#include "Win32Monitor.hpp"
#include "../platform/Win32Window.hpp"
#include "../Strings.hpp"
BEGIN_INANITY_GRAPHICS
Win32Adapter::Win32Adapter(const DISPLAY_DEVICE& info)
: info(info), monitorsInitialized(false)
{
deviceName = Strings::Unicode2UTF8(info.DeviceName);
deviceString = String... | 22.33871 | 120 | 0.745848 | quyse |
0a5c7abc3c228f7abcd6a7cf3917a7d93b2104e8 | 3,246 | cpp | C++ | test/che/assembly.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | test/che/assembly.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | test/che/assembly.cpp | shze/biosim | e9e6d97de0ccf8067e1db15980eb600389fff6ca | [
"MIT"
] | null | null | null | #include <boost/test/unit_test.hpp>
#include "che/assembly.h" // header to test
using namespace biosim;
BOOST_AUTO_TEST_SUITE(suite_assembly)
BOOST_AUTO_TEST_CASE(assembly_ctor) {
che::assembly a;
BOOST_CHECK(a.get_chain_id_list().empty());
BOOST_CHECK(a.get_ensemble_size("A") == 0);
BOOST_CHECK(a.has_ensem... | 37.744186 | 69 | 0.679914 | shze |
0a5f0d8efe00fe669f0d8175bd00f244b03de745 | 1,330 | cpp | C++ | 3DRadSpace/3DRadSpaceDll/Quaternion.cpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 9 | 2017-01-10T11:47:06.000Z | 2021-11-27T14:32:55.000Z | 3DRadSpace/3DRadSpaceDll/Quaternion.cpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | null | null | null | 3DRadSpace/3DRadSpaceDll/Quaternion.cpp | NicusorN5/3D_Rad_Space | 029c52817deb08db17f46bef6246413a115d9e1d | [
"CC0-1.0"
] | 6 | 2017-07-08T23:03:43.000Z | 2022-03-08T07:47:13.000Z | #include "Quaternion.hpp"
Engine3DRadSpace::Quaternion Engine3DRadSpace::Quaternion::CreateFromYawPitchRoll(float yaw, float pitch, float roll)
{
float halfRoll = roll * 0.5f;
float halfPitch = pitch * 0.5f;
float halfYaw = yaw * 0.5f;
float sinRoll = sin(halfRoll);
float cosRoll = cos(halfRoll);... | 34.102564 | 139 | 0.616541 | NicusorN5 |
0a610905dbf99cb1321d411431ceb988292c8cbb | 3,272 | hpp | C++ | src/gestion-fichiers/ifile.hpp | minijackson/IGI-3004 | 8354f40e296cce8735b188dd3ff7406e96d5878e | [
"MIT"
] | 1 | 2017-10-01T02:29:06.000Z | 2017-10-01T02:29:06.000Z | src/gestion-fichiers/ifile.hpp | minijackson/IGI-3004 | 8354f40e296cce8735b188dd3ff7406e96d5878e | [
"MIT"
] | null | null | null | src/gestion-fichiers/ifile.hpp | minijackson/IGI-3004 | 8354f40e296cce8735b188dd3ff7406e96d5878e | [
"MIT"
] | null | null | null | #pragma once
#include "utility.hpp"
/*! \brief Represents an input file.
*
* This class implements the RAII idiom.
*/
template <typename flag = unbuffered_flag>
class IFile : public DummyFile<flag, true> {
static_assert(std::is_same<flag, buffered_flag>::value ||
std::is_same<flag, unbuffered_fla... | 23.371429 | 74 | 0.661369 | minijackson |
0a6bc0065750fa6fc0ad16ec4c90ec157bd6c068 | 2,606 | cpp | C++ | ixperial/ixperial-main/lua-entity.cpp | aw-3/ixperial | 8406ac3265e572cf6a4fb4b53ae36936d550f4fe | [
"MIT"
] | 1 | 2019-07-14T04:01:42.000Z | 2019-07-14T04:01:42.000Z | ixperial/ixperial-main/lua-entity.cpp | aw-3/ixperial | 8406ac3265e572cf6a4fb4b53ae36936d550f4fe | [
"MIT"
] | null | null | null | ixperial/ixperial-main/lua-entity.cpp | aw-3/ixperial | 8406ac3265e572cf6a4fb4b53ae36936d550f4fe | [
"MIT"
] | null | null | null | #include "stdafx.h"
void* LuaEntity::GetEntityFromIndex(int i)
{
static void *listPtr = (int*)sigScan((int)CSGO::GetClientHandle(), "\xBB\x00\x00\x00\x00\x83\xFF\x01\x0F\x8C\x00\x00\x00\x00\x3B\xF8");
int list = *(int*)((char*)listPtr + 1);
return *(int**)(list + (i * 0x10));
}
RefCountedPtr<LuaEntity> LuaEntity... | 28.021505 | 166 | 0.699923 | aw-3 |
0a744784f40789357813ef53dcbcb261d9e2c20f | 2,720 | cpp | C++ | devtools/tmcdbg/tmcdbgW.cpp | flyingbluefish/tmc | 27cf82a3b1b5090fc81dfc82a453ccbc932896ec | [
"BSD-2-Clause"
] | null | null | null | devtools/tmcdbg/tmcdbgW.cpp | flyingbluefish/tmc | 27cf82a3b1b5090fc81dfc82a453ccbc932896ec | [
"BSD-2-Clause"
] | null | null | null | devtools/tmcdbg/tmcdbgW.cpp | flyingbluefish/tmc | 27cf82a3b1b5090fc81dfc82a453ccbc932896ec | [
"BSD-2-Clause"
] | null | null | null | // tmcdbgW.cpp : Defines the class behaviors for the application.
//
#include "stdafx.h"
#include "tmcdbgW.h"
#include "SplitWnd.h"
#include "tmcdbgWDlg.h"
/*
Copyright (C) Shmuel Safonov 2009-2012 All rights reserved.
Any usage of this file must be according to TMC License.
*/
#ifdef HAS_PL... | 25.904762 | 78 | 0.617279 | flyingbluefish |
0a7c03f1832f14af13c00529fff2506864848423 | 48 | hpp | C++ | src/boost_test_data_monomorphic_grid.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_test_data_monomorphic_grid.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_test_data_monomorphic_grid.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/test/data/monomorphic/grid.hpp>
| 24 | 47 | 0.791667 | miathedev |
0a897bad9835b03c71f3c9e79a3037c9510bdfd9 | 3,702 | hpp | C++ | boost/geometry/strategies/cartesian/densify.hpp | pranavgo/RRT | 87148c3ddb91600f4e74f00ffa8af14b54689aa4 | [
"MIT"
] | 326 | 2015-02-08T13:47:49.000Z | 2022-03-16T02:13:59.000Z | boost/geometry/strategies/cartesian/densify.hpp | pranavgo/RRT | 87148c3ddb91600f4e74f00ffa8af14b54689aa4 | [
"MIT"
] | 623 | 2015-01-02T23:45:23.000Z | 2022-03-09T11:15:23.000Z | boost/geometry/strategies/cartesian/densify.hpp | pranavgo/RRT | 87148c3ddb91600f4e74f00ffa8af14b54689aa4 | [
"MIT"
] | 215 | 2015-01-14T15:50:38.000Z | 2022-02-23T03:58:36.000Z | // Boost.Geometry
// Copyright (c) 2017-2021, Oracle and/or its affiliates.
// Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
// Licensed under the Boost Software License version 1.0.
// http://www.boost.org/users/license.html
#ifndef BOOST_GEOMETRY_STRATEGIES_CARTESIAN_DENSIFY_HPP
#define BOOS... | 28.697674 | 112 | 0.680173 | pranavgo |
0a95ad0e93f390ce48b0c482da2f16a1bf6df28c | 8,359 | cpp | C++ | c++/src/util/itree.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 31 | 2016-12-09T04:56:59.000Z | 2021-12-31T17:19:10.000Z | c++/src/util/itree.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 6 | 2017-03-10T17:25:13.000Z | 2021-09-22T15:49:49.000Z | c++/src/util/itree.cpp | OpenHero/gblastn | a0d6c1c288fe916ab85fc637a44cdd6e79ebd2a8 | [
"MIT"
] | 20 | 2015-01-04T02:15:17.000Z | 2021-12-03T02:31:43.000Z | /* $Id: itree.cpp 103491 2007-05-04 17:18:18Z kazimird $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under... | 29.747331 | 78 | 0.609882 | OpenHero |
0a980d851f0981083c1bcde0b59a87844265920d | 1,719 | hpp | C++ | include/containers/range_view.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 44 | 2020-10-03T21:37:52.000Z | 2022-03-26T10:08:46.000Z | include/containers/range_view.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | 1 | 2021-01-01T23:22:39.000Z | 2021-01-01T23:22:39.000Z | include/containers/range_view.hpp | davidstone/bounded-integer | d4f9a88a12174ca8382af60b00c5affd19aa8632 | [
"BSL-1.0"
] | null | null | null | // Copyright David Stone 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <containers/begin_end.hpp>
#include <containers/is_range.hpp>
#include <containers/iter_difference_t.hpp>
#in... | 25.656716 | 133 | 0.753345 | davidstone |
0a989e6bdbd9ec69c91af1f3073924420396ccb2 | 2,118 | cpp | C++ | src/core/src/scene/scene.cpp | zZnghialamZz/Ethan | e841b0a07f75022fab6634d53827c64dd1a466de | [
"Apache-2.0"
] | 2 | 2020-07-29T04:27:22.000Z | 2021-10-11T01:27:43.000Z | src/core/src/scene/scene.cpp | zZnghialamZz/Ethan | e841b0a07f75022fab6634d53827c64dd1a466de | [
"Apache-2.0"
] | null | null | null | src/core/src/scene/scene.cpp | zZnghialamZz/Ethan | e841b0a07f75022fab6634d53827c64dd1a466de | [
"Apache-2.0"
] | 2 | 2020-08-03T03:29:28.000Z | 2020-08-03T08:01:14.000Z | /**
* ==================================================
* _____
* __|___ |__ __ __ _ ____ ____ _
* | ___| | _| |_ | |_| || \ | \ | |
* | ___| ||_ _|| _ || \ | \| |
* |______| __| |__| |__| |_||__|\__\|__/\____|
* |_____|
*
* Ga... | 29.830986 | 112 | 0.603872 | zZnghialamZz |
0a9b18fbbb21f8edf69284f4bdc7b83cd2f811b1 | 1,564 | hpp | C++ | NeuKaDiS/KaDiS/external/RBC/external/tlx/tlx/backtrace.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 284 | 2017-02-26T08:49:15.000Z | 2022-03-30T21:55:37.000Z | NeuKaDiS/KaDiS/external/RBC/external/tlx/tlx/backtrace.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 24 | 2017-09-05T21:02:41.000Z | 2022-03-07T10:09:59.000Z | NeuKaDiS/KaDiS/external/RBC/external/tlx/tlx/backtrace.hpp | bingmann/distributed-string-sorting | 238bdfd5f6139f2f14e33aed7b4d9bbffac5d295 | [
"BSD-2-Clause"
] | 62 | 2017-02-23T12:29:27.000Z | 2022-03-31T07:45:59.000Z | /*******************************************************************************
* tlx/backtrace.hpp
*
* Part of tlx - http://panthema.net/tlx
*
* Copyright (C) 2008-2017 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the Boost Software License, Version 1.0
****************************... | 27.438596 | 80 | 0.602941 | bingmann |
0aa01a783110b5fae6238bbfc340dc6c3d9e4006 | 1,543 | hpp | C++ | include/thectci/factory.hpp | PeterHajdu/thectci | 7ffe4c7d8ccbf55490e155f93ef8637d6f9c4119 | [
"MIT"
] | null | null | null | include/thectci/factory.hpp | PeterHajdu/thectci | 7ffe4c7d8ccbf55490e155f93ef8637d6f9c4119 | [
"MIT"
] | null | null | null | include/thectci/factory.hpp | PeterHajdu/thectci | 7ffe4c7d8ccbf55490e155f93ef8637d6f9c4119 | [
"MIT"
] | null | null | null | #pragma once
#include <thectci/id.hpp>
#include <memory>
#include <cassert>
#include <functional>
#include <unordered_map>
namespace the
{
namespace ctci
{
template < typename Base >
class Creator
{
public:
typedef std::unique_ptr< Base > base_pointer;
virtual ~Creator() {}
virtual base_pointer create()... | 21.136986 | 88 | 0.668179 | PeterHajdu |
0aa42c79a0f46d9b2c1477582c12c3a27d66dff9 | 18,768 | cpp | C++ | src/DE_Scene.cpp | daher-alfawares/xr.desktop | 218a7cff7a9be5865cf786d7cad31da6072f7348 | [
"Apache-2.0"
] | 1 | 2018-09-20T10:01:30.000Z | 2018-09-20T10:01:30.000Z | src/DE_Scene.cpp | daher-alfawares/xr.desktop | 218a7cff7a9be5865cf786d7cad31da6072f7348 | [
"Apache-2.0"
] | null | null | null | src/DE_Scene.cpp | daher-alfawares/xr.desktop | 218a7cff7a9be5865cf786d7cad31da6072f7348 | [
"Apache-2.0"
] | null | null | null | //C++
/*
----------------------------------------------------
The Desktop Project
------------------
Copyright 2004 Daher Alfawares
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.apac... | 25.85124 | 150 | 0.662671 | daher-alfawares |
0aa5fff6ca7ae472914aad4a22ac51badd3713c3 | 5,200 | cc | C++ | src/pub_key.cc | gladosconn/ecdsa- | 3b8d4b6df48843742fc33c931b9fadc225ae439b | [
"MIT"
] | 11 | 2019-11-20T21:38:22.000Z | 2022-03-18T08:45:25.000Z | src/pub_key.cc | gladosconn/ecdsa- | 3b8d4b6df48843742fc33c931b9fadc225ae439b | [
"MIT"
] | 1 | 2021-04-01T15:06:55.000Z | 2021-04-01T15:06:55.000Z | src/pub_key.cc | gladosconn/ecdsa- | 3b8d4b6df48843742fc33c931b9fadc225ae439b | [
"MIT"
] | 4 | 2017-11-03T17:34:27.000Z | 2022-03-21T18:40:49.000Z | #include "pub_key.h"
#include <cstring>
namespace ecdsa {
/** This function is taken from the libsecp256k1 distribution and implements
* DER parsing for ECDSA signatures, while supporting an arbitrary subset of
* format violations.
*
* Supported violations include negative integers, excessive padding, garbage... | 24.413146 | 80 | 0.587115 | gladosconn |
0aa66afae74665ada6a69df962f5c287155a7b93 | 772 | cpp | C++ | tests/job/test_co_generator.cpp | grandmaster789/bop | 909d4156503f83b66de3f7e3284e086bd98905eb | [
"MIT"
] | null | null | null | tests/job/test_co_generator.cpp | grandmaster789/bop | 909d4156503f83b66de3f7e3284e086bd98905eb | [
"MIT"
] | null | null | null | tests/job/test_co_generator.cpp | grandmaster789/bop | 909d4156503f83b66de3f7e3284e086bd98905eb | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <array>
#include <algorithm>
#include "../../src/job/co_generator.h"
#include <catch2/catch.hpp>
namespace testing {
int test_iota() {
int sum = 0;
// derives to int
for (auto x : bop::job::iota(6))
sum += x;
return sum;... | 19.794872 | 81 | 0.546632 | grandmaster789 |
0aac1cb8984bd62f4179e4ad6dfc968d2fdab19d | 2,323 | cpp | C++ | Sources/ElkCraft/Sources/Utils/ItemsInfo.cpp | adriengivry/ElkCraft | 7147b1aae7183eee692f2691cac24505a61515c1 | [
"MIT"
] | 10 | 2018-11-09T03:38:30.000Z | 2022-01-31T11:46:10.000Z | Sources/ElkCraft/Sources/Utils/ItemsInfo.cpp | adriengivry/ElkCraft | 7147b1aae7183eee692f2691cac24505a61515c1 | [
"MIT"
] | null | null | null | Sources/ElkCraft/Sources/Utils/ItemsInfo.cpp | adriengivry/ElkCraft | 7147b1aae7183eee692f2691cac24505a61515c1 | [
"MIT"
] | 10 | 2018-09-30T05:07:35.000Z | 2021-12-22T04:41:38.000Z | #include "stdafx.h"
#include "ElkCraft/Utils/ItemsInfo.h"
using namespace ElkCraft::Utils;
using namespace ElkTools::Utils;
bool ItemsInfo::IsItem(uint8_t p_type)
{
return p_type >= 100;
}
bool ElkCraft::Utils::ItemsInfo::IsTool(uint8_t p_type)
{
return p_type >= 101 && p_type <= 106;
}
ItemsInfo::Quality ElkCra... | 19.521008 | 79 | 0.739991 | adriengivry |
0ab146c51d7c82f4c86242f7174fb169e42e3398 | 447 | cpp | C++ | solved/easy/1221. Split a String in Balanced Strings/main.cpp | SlaveWilson/leetcode | b762380594908ed44ae278ca1a14e9185eec2f0e | [
"MIT"
] | null | null | null | solved/easy/1221. Split a String in Balanced Strings/main.cpp | SlaveWilson/leetcode | b762380594908ed44ae278ca1a14e9185eec2f0e | [
"MIT"
] | null | null | null | solved/easy/1221. Split a String in Balanced Strings/main.cpp | SlaveWilson/leetcode | b762380594908ed44ae278ca1a14e9185eec2f0e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
class Solution
{
public:
int balancedStringSplit(string s)
{
int count = 0, l = 0, r = 0;
for (char c : s)
{
if (c == 'R')
r++;
else
l++;
if (r == l)
count++;
}
return count;
}
};
int main()
... | 14.9 | 47 | 0.532438 | SlaveWilson |
0ab1ce011da3066e1e9019811eb1eed8170a10ce | 660 | cpp | C++ | snake/Food.cpp | kriss95/snake-game | cfd2121e6818f08b5275b16c03261c8ab538530e | [
"MIT"
] | null | null | null | snake/Food.cpp | kriss95/snake-game | cfd2121e6818f08b5275b16c03261c8ab538530e | [
"MIT"
] | null | null | null | snake/Food.cpp | kriss95/snake-game | cfd2121e6818f08b5275b16c03261c8ab538530e | [
"MIT"
] | null | null | null | #include "Food.h"
Food::Food(Boardd* board, Snake* snake)
{
int x, y;
srand(time(NULL));
do
{
x = rand() % board->GetM();
y = rand() % board->GetN();
}
while (!snake->SnakeMach(x,y));
foodPlace = make_pair(x, y);
outP = new GameOutput;
}
void Food::NewPlace(Boardd* board, Snake* snake)
{
int x, y;
srand(... | 16.5 | 57 | 0.60303 | kriss95 |
0ab5f2c0b7b2e12ed3e705c7f050146f2aaecc2e | 2,405 | hpp | C++ | OptFrame/Experimental/NSIterators/IteratorNSSeqMultiRoute.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 2 | 2018-05-24T11:04:12.000Z | 2020-03-03T13:37:07.000Z | OptFrame/Experimental/NSIterators/IteratorNSSeqMultiRoute.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | null | null | null | OptFrame/Experimental/NSIterators/IteratorNSSeqMultiRoute.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 1 | 2019-06-06T16:57:49.000Z | 2019-06-06T16:57:49.000Z | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 22.904762 | 92 | 0.69106 | 216k155 |
0ab9fcba1b89f2f4da1d2146193717ef41bf6e71 | 3,551 | hpp | C++ | src/sdk/math.hpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | 1 | 2022-01-13T07:05:26.000Z | 2022-01-13T07:05:26.000Z | src/sdk/math.hpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | null | null | null | src/sdk/math.hpp | mov-rax-rax/gamesneeze | 09b2d9d6ef5b6ad7c9c820f98f1a6339bf1405a1 | [
"MIT"
] | 1 | 2021-12-31T13:02:42.000Z | 2021-12-31T13:02:42.000Z | #pragma once
#include "sdk.hpp"
inline QAngle originalAngle{};
inline float originalForwardMove = 0.0f;
inline float originalSideMove = 0.0f;
inline void startMovementFix(Command* cmd) {
originalAngle = cmd->viewAngle;
originalForwardMove = cmd->move.x;
originalSideMove = cmd->move.y;
}
inline void endMo... | 27.10687 | 130 | 0.672768 | mov-rax-rax |
0ac075f0ec84cebf2087c2465b308daef61587c9 | 4,632 | cpp | C++ | ModelViewer/ViewModels/TransformViewModel.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 64 | 2018-05-25T06:18:42.000Z | 2019-04-15T17:27:38.000Z | ModelViewer/ViewModels/TransformViewModel.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 4 | 2018-05-26T10:53:33.000Z | 2018-10-20T20:46:41.000Z | ModelViewer/ViewModels/TransformViewModel.cpp | seanisom/glTF-DXViewer | f1e7d88581e3598e397e563f529e7ee2bb4befd6 | [
"MIT"
] | 13 | 2019-09-19T00:50:07.000Z | 2022-03-22T13:39:52.000Z | #include "pch.h"
#include "TransformViewModel.h"
using namespace ViewModels;
float TransformViewModel::PositionX::get()
{
if (_selectedNode)
{
shared_ptr<GraphContainerNode> derived =
dynamic_pointer_cast<GraphContainerNode>(_selectedNode);
return derived->GetTranslation().x;
}
return 0.0f;
}
void Transfo... | 25.877095 | 88 | 0.778713 | seanisom |
0ac6d9dc3aa983684e889f76a0f91751dfd1e04d | 2,160 | cc | C++ | test/exprtest.cc | larskuhtz/MoCS | 8ea4aafb4a2036807af147efeac915876cf7390b | [
"BSD-3-Clause"
] | 1 | 2020-07-16T18:23:55.000Z | 2020-07-16T18:23:55.000Z | test/exprtest.cc | larskuhtz/MoCS | 8ea4aafb4a2036807af147efeac915876cf7390b | [
"BSD-3-Clause"
] | null | null | null | test/exprtest.cc | larskuhtz/MoCS | 8ea4aafb4a2036807af147efeac915876cf7390b | [
"BSD-3-Clause"
] | null | null | null | /* *** MOCS-COPYRIGHT-NOTICE-BEGIN ***
*
* This copyright notice is auto-generated by ./add-copyright-notice.
* Additional copyright notices must be added below the last line of this notice.
*
* MoCS (https://lewis.cs.uni-saarland.de/tools/mocs/): "test/exprtest.cc".
* The content of this file is copyright of Saa... | 27 | 81 | 0.554167 | larskuhtz |
0ace65782b9a26fa77a5395599ce45034270e3e5 | 1,462 | cpp | C++ | cpp/src/exercise/e0100/e0004.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0004.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0004.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | #include "extern.h"
using namespace std;
class Solution {
public:
double findMedianSortedArrays_slow(vector<int>& nums1, vector<int>& nums2) {
auto v = vector<int>();
v.insert(v.end(), nums1.cbegin(), nums1.cend());
v.insert(v.end(), nums2.cbegin(), nums2.cend());
sort(v.begin(), v.... | 34.809524 | 80 | 0.497948 | ajz34 |
0ad0ed983b04fc8ec8b01da72acf293b22b292e9 | 679 | hpp | C++ | include/cjdb/iterator/reference.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 4 | 2019-03-02T01:09:07.000Z | 2019-10-16T15:46:21.000Z | include/cjdb/iterator/reference.hpp | cjdb/cjdb-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 5 | 2019-11-29T12:23:55.000Z | 2019-12-14T13:03:00.000Z | include/cjdb/iterator/reference.hpp | cjdb/clang-concepts-ranges | 7019754e97c8f3863035db74de62004ae3814954 | [
"Apache-2.0"
] | 3 | 2020-06-08T18:27:28.000Z | 2021-03-27T17:49:46.000Z | // Copyright (c) Christopher Di Bella.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
#ifndef CJDB_ITERATOR_REFERENCE_HPP
#define CJDB_ITERATOR_REFERENCE_HPP
#include "cjdb/detail/iterator/reference.hpp"
#include "cjdb/detail/iterator/iter_move.hpp"
#include "cjdb/type_traits/type_traits.hpp"
#include <... | 30.863636 | 81 | 0.792342 | cjdb |
bd598bc53274c46a279871c521f740e1329f5819 | 16,118 | cpp | C++ | flir_lepton_sensor/src/flir_lepton_hw_iface.cpp | angetria/flir_lepton_rpi2 | 46b1de815e2bfb752954fb2c3648d416f56e6c93 | [
"BSD-3-Clause"
] | 15 | 2015-11-10T10:39:53.000Z | 2022-03-29T07:07:53.000Z | flir_lepton_sensor/src/flir_lepton_hw_iface.cpp | angetria/flir_lepton | 46b1de815e2bfb752954fb2c3648d416f56e6c93 | [
"BSD-3-Clause"
] | 6 | 2015-10-23T12:18:45.000Z | 2019-07-02T09:55:46.000Z | flir_lepton_sensor/src/flir_lepton_hw_iface.cpp | angetria/flir_lepton_rpi2 | 46b1de815e2bfb752954fb2c3648d416f56e6c93 | [
"BSD-3-Clause"
] | 6 | 2017-04-13T12:28:38.000Z | 2019-07-03T21:58:51.000Z | /*********************************************************************
* *
* * Software License Agreement (BSD License)
* *
* * Copyright (c) 2015, P.A.N.D.O.R.A. Team.
* * All rights reserved.
* *
* * Redistribution and use in source and binary forms, with or without
* * modification, are permitted provide... | 33.509356 | 86 | 0.585122 | angetria |
bd59e41984d0a6dcac40ad7e6ba9f4efe616a2b2 | 878 | hpp | C++ | src/gui/sprites/simple_world_sprite.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 7 | 2015-01-28T09:17:08.000Z | 2020-04-21T13:51:16.000Z | src/gui/sprites/simple_world_sprite.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | null | null | null | src/gui/sprites/simple_world_sprite.hpp | louiz/batajelo | 4d8edce8da9d3b17dbad68eb4881d7f6fee2f76e | [
"BSL-1.0",
"BSD-2-Clause",
"Zlib",
"MIT"
] | 1 | 2020-07-11T09:20:25.000Z | 2020-07-11T09:20:25.000Z | #ifndef SIMPLE_WORLD_SPRITE_HPP_INCLUDED
#define SIMPLE_WORLD_SPRITE_HPP_INCLUDED
#include <gui/sprites/world_sprite.hpp>
class SimpleWorldSprite: public WorldSprite
{
public:
SimpleWorldSprite(const Position& position, const sf::Sprite& sprite):
position(position),
sprite(sprite)
{}
~SimpleWorldSprite(... | 25.823529 | 76 | 0.753986 | louiz |
bd6105d0de0f2fc8b97c96312456888daa4a4a46 | 171,483 | cxx | C++ | osprey/be/cg/orc_intel/if_conv.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/orc_intel/if_conv.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/cg/orc_intel/if_conv.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (C) 2000-2003, Intel Corporation
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 conditio... | 33.104826 | 99 | 0.510645 | sharugupta |
bd669e7b9abd96dc688d8060947ff6c18765c7c6 | 2,271 | hh | C++ | src/opbox/ops/OpHelpers.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-01-25T21:21:07.000Z | 2021-04-29T17:24:00.000Z | src/opbox/ops/OpHelpers.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 8 | 2018-10-09T14:35:30.000Z | 2020-09-30T20:09:42.000Z | src/opbox/ops/OpHelpers.hh | faodel/faodel | ef2bd8ff335433e695eb561d7ecd44f233e58bf0 | [
"MIT"
] | 2 | 2019-04-23T19:01:36.000Z | 2021-05-11T07:44:55.000Z | // Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
#ifndef OPBOX_OPHELPERS_HH
#define OPBOX_OPHELPERS_HH
#include "opbox/common/Types.hh"
#include "opbox/common/Me... | 23.65625 | 93 | 0.696169 | faodel |
bd6cbb970402b0aee3778775d4503e5743662c84 | 2,065 | cpp | C++ | stat01.cpp | DTL2020/stat01 | 5c9ec775071f234f062d23d6434649a0a48d92f5 | [
"MIT"
] | null | null | null | stat01.cpp | DTL2020/stat01 | 5c9ec775071f234f062d23d6434649a0a48d92f5 | [
"MIT"
] | null | null | null | stat01.cpp | DTL2020/stat01 | 5c9ec775071f234f062d23d6434649a0a48d92f5 | [
"MIT"
] | null | null | null | // stat01.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include "math.h"
int ArrSamples[10] = { 52, 46, 54, 20, 50, 48, 51, 53, 45, 50 };
int ArrSADs[10][10] = {};
int ArrOut[10] = {};
int VectMinSumSADs[10] = {};
int iVectIncludedSamples... | 15.884615 | 97 | 0.498789 | DTL2020 |
bd71aae4ecfcdd068a0e2da125a0653a56d85402 | 1,592 | cpp | C++ | Windows/IniReader.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 11 | 2020-03-10T02:06:00.000Z | 2022-02-17T19:59:50.000Z | Windows/IniReader.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | null | null | null | Windows/IniReader.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 5 | 2020-05-30T00:59:22.000Z | 2021-12-06T01:37:05.000Z | #include "IniReader.h"
#include <iostream>
#include <Windows.h>
CIniReader::CIniReader(char* szFileName)
{
memset(m_szFileName, 0x00, 255);
memcpy(m_szFileName, szFileName, strlen(szFileName));
}
int CIniReader::ReadInteger(char* szSection, char* szKey, int iDefaultValue)
{
int iResult = GetPrivateProfil... | 37.023256 | 130 | 0.731784 | cas-nctu |
bd76eaf5676f3498c1a498bc055beb34dee5bac1 | 7,252 | cpp | C++ | test/range/test-element_types.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-element_types.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | test/range/test-element_types.cpp | rogiervd/range | 2ed4ee2063a02cadc575fe4e7a3b7dd61bbd2b5d | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014, 2015 Rogier van Dalen.
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 writing, ... | 37.381443 | 80 | 0.58246 | rogiervd |
bd79d91c0558c2941b64895d1855dc3838658d2c | 6,650 | cpp | C++ | 4 course/info_protection/lab07/Widget.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 4 course/info_protection/lab07/Widget.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | 4 course/info_protection/lab07/Widget.cpp | SgAkErRu/labs | 9cf71e131513beb3c54ad3599f2a1e085bff6947 | [
"BSD-3-Clause"
] | null | null | null | #include "Widget.h"
#include "./ui_Widget.h"
#include <cmath>
#include <algorithm>
#include <random>
#include <QFileDialog>
#include <QMessageBox>
using namespace std;
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
this->prepareProbabilityTable();
thi... | 24.906367 | 87 | 0.614586 | SgAkErRu |
bd7c798477d19239b38f3ba1e89147f3289c6ad2 | 1,963 | cpp | C++ | sem/4ex/work1/4ex2Pp.cpp | ruska112/infTasks | db3bf563376dac435f5fed74e03bc3592d67c46f | [
"MIT"
] | null | null | null | sem/4ex/work1/4ex2Pp.cpp | ruska112/infTasks | db3bf563376dac435f5fed74e03bc3592d67c46f | [
"MIT"
] | 1 | 2021-11-16T11:17:37.000Z | 2021-11-16T11:44:54.000Z | sem/4ex/work1/4ex2Pp.cpp | ruska112/infTasks | db3bf563376dac435f5fed74e03bc3592d67c46f | [
"MIT"
] | null | null | null | #include <iostream>
const int maxRow = 128;
const int maxCol = 128;
int matrixRepacer (double *a, int n, int m) {
int result = 0;
int i, j;
int negColCount = 0;
int posRowCount = 0;
double rowSum = 0;
if ( n > 0 && n < maxRow && m > 0 && m < maxCol ) {
for (i = 0; i < n; i++) {
... | 20.882979 | 84 | 0.417219 | ruska112 |
bd7fbf79e4f67ceb44f81e36a7a4aa0edcc97f06 | 1,037 | cpp | C++ | RLSimion/Lib/actor-cacla.cpp | xcillero001/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | 1 | 2019-02-21T10:40:28.000Z | 2019-02-21T10:40:28.000Z | RLSimion/Lib/actor-cacla.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | RLSimion/Lib/actor-cacla.cpp | JosuGom3z/SimionZoo | b343b08f3356e1aa230d4132b0abb58aac4c5e98 | [
"MIT"
] | null | null | null | #include "actor.h"
#include "vfa.h"
#include "policy.h"
#include "policy-learner.h"
#include "../Common/named-var-set.h"
#include "features.h"
#include "etraces.h"
#include "config.h"
#include "parameters-numeric.h"
#include "app.h"
CACLALearner::CACLALearner(ConfigNode* pConfigNode): PolicyLearner(pConfigNode)
{
m_p... | 23.044444 | 106 | 0.714561 | xcillero001 |
bd8095816328e10b87f8d4df9e155e24214d5ad3 | 1,178 | cc | C++ | glacier/channel.cc | iceice/Glacier | 779082cc197f753fb2feff63ac8fbe3f5512828c | [
"MIT"
] | 2 | 2020-02-05T04:08:07.000Z | 2020-08-15T01:57:41.000Z | glacier/channel.cc | iceice/Glacier | 779082cc197f753fb2feff63ac8fbe3f5512828c | [
"MIT"
] | null | null | null | glacier/channel.cc | iceice/Glacier | 779082cc197f753fb2feff63ac8fbe3f5512828c | [
"MIT"
] | null | null | null | #include "glacier/channel.h"
#include <sys/epoll.h>
#include "glacier/base/logging.h"
Channel::Channel(EventLoop *loop)
: loop_(loop), fd_(0), events_(0), revents_(0), lastevents_(0) {}
Channel::Channel(EventLoop *loop, int fd)
: loop_(loop), fd_(fd), events_(0), revents_(0), lastevents_(0) {}
Channel::~Chann... | 24.040816 | 70 | 0.60781 | iceice |
bd8111c165e2e9957726dbc6a112caae08e73659 | 1,324 | cpp | C++ | aws-cpp-sdk-ecr/source/model/ReplicationDestination.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-ecr/source/model/ReplicationDestination.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-ecr/source/model/ReplicationDestination.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ecr/model/ReplicationDestination.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
na... | 17.653333 | 78 | 0.726586 | perfectrecall |
bd831a3528c2092c4cd2450efb5bba7e57838dac | 700 | cpp | C++ | Source/Core/FileFormat/TIFF/Tag.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 42 | 2015-07-24T23:05:07.000Z | 2022-03-16T01:31:04.000Z | Source/Core/FileFormat/TIFF/Tag.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 4 | 2015-03-17T05:42:49.000Z | 2020-08-09T15:21:45.000Z | Source/Core/FileFormat/TIFF/Tag.cpp | X1aoyueyue/KVS | ad47d62bef4fdd9ddd3412a26ee6557b63f0543b | [
"BSD-3-Clause"
] | 29 | 2015-01-03T05:56:32.000Z | 2021-10-05T15:28:33.000Z | /****************************************************************************/
/**
* @file Tag.cpp
* @author Naohisa Sakamoto
*/
/****************************************************************************/
#include "Tag.h"
#include <kvs/Type>
#include <string>
namespace kvs
{
namespace tiff
{
Tag::Tag():
... | 15.217391 | 78 | 0.437143 | X1aoyueyue |
bd8cb4c8d122a1aebe81e79a9f19b7fe39a5a6a8 | 8,467 | cpp | C++ | src/apps/ojph_expand/ojph_expand.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/apps/ojph_expand/ojph_expand.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | src/apps/ojph_expand/ojph_expand.cpp | jpambrun/OpenJPH | 9cce6ed4a74b3dd0f0cdc48d90b595cd0b8d9030 | [
"BSD-2-Clause"
] | null | null | null | /****************************************************************************/
// This software is released under the 2-Clause BSD license, included
// below.
//
// Copyright (c) 2019, Aous Naman
// Copyright (c) 2019, Kakadu Software Pty Ltd, Australia
// Copyright (c) 2019, The University of New South Wales, Austral... | 34.70082 | 79 | 0.590292 | jpambrun |
bd922daaccc417ac15d3a99e42e68c33da917872 | 5,404 | cpp | C++ | Libs/Widgets/Testing/Cpp/ctkMenuComboBoxEventTranslatorPlayerTest1.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/Widgets/Testing/Cpp/ctkMenuComboBoxEventTranslatorPlayerTest1.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/Widgets/Testing/Cpp/ctkMenuComboBoxEventTranslatorPlayerTest1.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=========================================================================
Library: CTK
Copyright (c) Kitware 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... | 30.531073 | 87 | 0.6547 | kraehlit |
bd940e7c4b6d7610e3e7bab80961b0b6adbb6e7f | 85 | cpp | C++ | src/Luddite/ECS/Reflection.cpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | 1 | 2021-06-03T05:46:46.000Z | 2021-06-03T05:46:46.000Z | src/Luddite/ECS/Reflection.cpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | src/Luddite/ECS/Reflection.cpp | Aquaticholic/Luddite-Engine | 66584fa31ee75b0cdebabe88cdfa2431d0e0ac2f | [
"Apache-2.0"
] | null | null | null | #include "Luddite/ECS/Reflection.hpp"
#include "Luddite/ECS/Modules/Transform3D.hpp"
| 28.333333 | 46 | 0.8 | Aquaticholic |
bd95838fa9cb565302869384616a7dd0189fb56a | 11,570 | cpp | C++ | WinUSBFTDI/WinUSBFTDI-C/EnOceanSample/main.cpp | ahidaka/WinUSB_Collection | 4a8362707272444a11aacb7d869da32a63baa5e8 | [
"Apache-2.0"
] | null | null | null | WinUSBFTDI/WinUSBFTDI-C/EnOceanSample/main.cpp | ahidaka/WinUSB_Collection | 4a8362707272444a11aacb7d869da32a63baa5e8 | [
"Apache-2.0"
] | null | null | null | WinUSBFTDI/WinUSBFTDI-C/EnOceanSample/main.cpp | ahidaka/WinUSB_Collection | 4a8362707272444a11aacb7d869da32a63baa5e8 | [
"Apache-2.0"
] | 4 | 2020-12-13T07:28:40.000Z | 2022-01-18T05:55:05.000Z | #include "pch.h"
#include <stdio.h>
#include <stdlib.h>
typedef struct _eep_data
{
UCHAR ROrg;
UCHAR Func;
UCHAR Type;
USHORT ManID;
}
EEP_DATA, *PEEP_DATA;
enum PacketType
{
Radio = 0x01,
Response = 0x02,
RadioSubTel = 0x03,
Event = 0x04,
CommonCommand = 0x05,
SmartAckComman... | 26.235828 | 86 | 0.51599 | ahidaka |
bd97657c4e1e7d4a0033b492126f2609bd309c34 | 639 | cc | C++ | src/core/imap/MCIMAPMessagePart.cc | zhanleewo/mailcore2 | a6c2d0465b25351689a1b4761f191201275f2b52 | [
"BSD-3-Clause"
] | 1 | 2020-10-14T21:44:57.000Z | 2020-10-14T21:44:57.000Z | src/core/imap/MCIMAPMessagePart.cc | zhanleewo/mailcore2 | a6c2d0465b25351689a1b4761f191201275f2b52 | [
"BSD-3-Clause"
] | null | null | null | src/core/imap/MCIMAPMessagePart.cc | zhanleewo/mailcore2 | a6c2d0465b25351689a1b4761f191201275f2b52 | [
"BSD-3-Clause"
] | null | null | null | #include "MCIMAPMessagePart.h"
using namespace mailcore;
IMAPMessagePart::IMAPMessagePart()
{
init();
}
IMAPMessagePart::IMAPMessagePart(IMAPMessagePart * other) : AbstractMessagePart(other)
{
init();
MC_SAFE_REPLACE_COPY(String, mPartID, other->mPartID);
}
IMAPMessagePart::~IMAPMessagePart()
{
MC_S... | 15.975 | 86 | 0.723005 | zhanleewo |
bd97fd78f6dce58444152e74d0fc4c93d312b2b5 | 4,120 | cpp | C++ | firmware/modules/core/cSound.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2021-02-09T16:17:43.000Z | 2021-08-09T04:02:44.000Z | firmware/modules/core/cSound.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 2 | 2016-05-17T20:45:10.000Z | 2020-03-10T07:03:39.000Z | firmware/modules/core/cSound.cpp | klaus-liebler/sensact | b8fc05eff67f23cf58c4fdf53e0026aab0966f6b | [
"Apache-2.0"
] | 1 | 2020-05-24T13:37:55.000Z | 2020-05-24T13:37:55.000Z | #include "cMaster.h"
#include "cModel.h"
#include "cSound.h"
#include <chrono>
#define LOGLEVEL LEVEL_DEBUG
#define LOGNAME "SOUND"
#include "cLog.h"
namespace sensact {
static uint8_t send_buf[10] = {0x7E, 0xFF,0x06,0,0,0,0,0,0,0xEF};
//static bool is_reply = false;
//
static void fill_uint16_bigend (uint8_t *th... | 15.147059 | 104 | 0.699757 | klaus-liebler |
bd990bd8964c2c1c933f7886b7adf94fe51bc1b1 | 1,384 | cpp | C++ | src/EPI/ch4/bit_swap.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/EPI/ch4/bit_swap.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | src/EPI/ch4/bit_swap.cpp | j-haj/interview-prep | 7d9f0ca4c321cf1d2393aea17bcd375119005e5d | [
"MIT"
] | null | null | null | #include <bitset>
#include <iostream>
#include <random>
/**
* Returns a random integer from the interval [low, high]
*
* @param low left end of the range (inclusive)
* @param high right end of the range (inclusive)
*
* @return random integer from specified interval [low, high]
*/
int random_int(const int low, c... | 27.137255 | 80 | 0.601879 | j-haj |
bda81d8e98e07b3227e819c1b0ba88bf7e7d2064 | 1,713 | cpp | C++ | sleepy_discord/asio_udp.cpp | qualk/sleepy-discord | 1a4045326c15b3e3a7461043e29769f8ccb8a2a9 | [
"MIT"
] | 830 | 2017-05-29T21:00:17.000Z | 2022-03-26T16:07:28.000Z | sleepy_discord/asio_udp.cpp | qualk/sleepy-discord | 1a4045326c15b3e3a7461043e29769f8ccb8a2a9 | [
"MIT"
] | 200 | 2017-06-27T20:08:49.000Z | 2022-03-05T14:37:59.000Z | sleepy_discord/asio_udp.cpp | qualk/sleepy-discord | 1a4045326c15b3e3a7461043e29769f8ccb8a2a9 | [
"MIT"
] | 212 | 2017-06-27T00:16:27.000Z | 2022-03-13T15:48:42.000Z | #include "asio_udp.h"
#ifndef NONEXISTENT_ASIO
#include "client.h"
namespace SleepyDiscord {
//Note: you need to be using a ASIOBasedScheduleHandler for this to work
ASIOUDPClient::ASIOUDPClient(BaseDiscordClient& client) :
ASIOUDPClient(static_cast<ASIOBasedScheduleHandler&>(client.getScheduleHandler()).getIOSer... | 26.765625 | 99 | 0.718622 | qualk |
bdb42deba85d26844a6075972a4d8444b1decc59 | 13,716 | cpp | C++ | tests/HandwrittenRuntime/Test_Database2.cpp | ankurvdev/stencil | b6429f8b92947273a5e66d5f10210b960616a89d | [
"BSD-3-Clause"
] | null | null | null | tests/HandwrittenRuntime/Test_Database2.cpp | ankurvdev/stencil | b6429f8b92947273a5e66d5f10210b960616a89d | [
"BSD-3-Clause"
] | null | null | null | tests/HandwrittenRuntime/Test_Database2.cpp | ankurvdev/stencil | b6429f8b92947273a5e66d5f10210b960616a89d | [
"BSD-3-Clause"
] | null | null | null | #include "Test_Database2.h"
#include "TestUtils.h"
#include <thread>
using namespace std::string_literals;
using namespace std::chrono_literals;
namespace Catch
{
template <> struct StringMaker<std::filesystem::file_time_type>
{
static std::string convert(std::filesystem::file_time_type const& ftime) { return st... | 32.657143 | 137 | 0.63014 | ankurvdev |
bdc9f53a41d25d29c68ac43c89e298c78de3f1cc | 13,138 | cpp | C++ | Antario/Features/Aimbot.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | 1 | 2020-02-23T17:35:51.000Z | 2020-02-23T17:35:51.000Z | Antario/Features/Aimbot.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | null | null | null | Antario/Features/Aimbot.cpp | NoelWriter/mirrorcsgo | bb527561df68cff5283472d5fed0492c58c2a078 | [
"MIT"
] | null | null | null | #include "Aimbot.h"
#include <Windows.h>
#include "..\Utils\Utils.h"
#include "..\Utils\GlobalVars.h"
#include "..\Hooks.h"
#include "..\SDK\Studio.hpp"
#include "..\Utils\Interfaces.h"
#include "Backtrack.h"
#include "Ragewall.h"
#include "..\SDK\CGlobalVarsBase.h"
// Declare classes
Aimbot g_Aimbot;
// Movefix vari... | 25.560311 | 212 | 0.702923 | NoelWriter |
bdcf0f01282935ff7d2ab422e5bd939e63177e61 | 168 | hpp | C++ | samples/dependency/mod1.hpp | tlammi/rtfw | 7a993e83b4d4e6ba7179219fd3667f42a2ae07e6 | [
"MIT"
] | null | null | null | samples/dependency/mod1.hpp | tlammi/rtfw | 7a993e83b4d4e6ba7179219fd3667f42a2ae07e6 | [
"MIT"
] | null | null | null | samples/dependency/mod1.hpp | tlammi/rtfw | 7a993e83b4d4e6ba7179219fd3667f42a2ae07e6 | [
"MIT"
] | null | null | null | #pragma once
#include "rtfw/module.hpp"
struct Mod1{
static rtfw::Config config(){
return {};
}
Mod1(const rtfw::Config& conf);
~Mod1();
int foo() const;
};
| 11.2 | 32 | 0.630952 | tlammi |
bdcf8103512a939066841b0b34a20d00468ab4d8 | 426 | cpp | C++ | Codigos de ejercicios en cpp/Programa 7.cpp | EulisesBrazon/ejercicios-c- | 700235bced91bc6f508ca6d203ea7ee7c241006c | [
"Apache-2.0"
] | null | null | null | Codigos de ejercicios en cpp/Programa 7.cpp | EulisesBrazon/ejercicios-c- | 700235bced91bc6f508ca6d203ea7ee7c241006c | [
"Apache-2.0"
] | null | null | null | Codigos de ejercicios en cpp/Programa 7.cpp | EulisesBrazon/ejercicios-c- | 700235bced91bc6f508ca6d203ea7ee7c241006c | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int numi,i=0,j,d=1;
double numf;
cout<<"introdusca el numero con decimales"<<endl;
cin>>numf;
numi=numf;
cout<<"los decimales son: "<<numf-numi<<endl;
while(numi!=numf)
{
numf=numf*10;
numi=numf;
i++;
}
for(j=0;j<i;j++)
{
d=d*10;
... | 14.689655 | 50 | 0.617371 | EulisesBrazon |
bdcfb0daf2af74f715cf7c4e3cc6754f2282e048 | 2,578 | cpp | C++ | src/test/scalar/functions/nonsmooth_functions/fmax_test.cpp | stan-dev/nomad | a21149ef9f4d53a198e6fdb06cfd0363d3df69e7 | [
"BSD-3-Clause"
] | 23 | 2015-12-11T20:06:57.000Z | 2021-01-15T18:59:58.000Z | src/test/scalar/functions/nonsmooth_functions/fmax_test.cpp | stan-dev/nomad | a21149ef9f4d53a198e6fdb06cfd0363d3df69e7 | [
"BSD-3-Clause"
] | 2 | 2015-12-15T08:12:01.000Z | 2016-07-17T01:36:56.000Z | src/test/scalar/functions/nonsmooth_functions/fmax_test.cpp | stan-dev/nomad | a21149ef9f4d53a198e6fdb06cfd0363d3df69e7 | [
"BSD-3-Clause"
] | 2 | 2017-10-13T17:40:34.000Z | 2021-03-08T19:17:51.000Z | #include <gtest/gtest.h>
#include <math.h>
#include <string>
#include <src/autodiff/base_functor.hpp>
#include <src/scalar/functions.hpp>
#include <src/test/io_validation.hpp>
#include <src/test/finite_difference.hpp>
template <typename T>
class fmax_vv_eval_func: public nomad::base_functor<T> {
public:
T operator... | 26.57732 | 61 | 0.674166 | stan-dev |
7524e0acb600b2a45b765da97e5fdbbbe1ba34c3 | 780 | hpp | C++ | OracleSolaris_OpenJDK_Builder/patches-17/patch-src_hotspot_os__cpu_solaris__x86_prefetch__solaris__x86.inline.hpp | gco/oraclesolaris-contrib | f9905a8758a50a44720f5500e19b5f2528c6b6c8 | [
"UPL-1.0"
] | null | null | null | OracleSolaris_OpenJDK_Builder/patches-17/patch-src_hotspot_os__cpu_solaris__x86_prefetch__solaris__x86.inline.hpp | gco/oraclesolaris-contrib | f9905a8758a50a44720f5500e19b5f2528c6b6c8 | [
"UPL-1.0"
] | null | null | null | OracleSolaris_OpenJDK_Builder/patches-17/patch-src_hotspot_os__cpu_solaris__x86_prefetch__solaris__x86.inline.hpp | gco/oraclesolaris-contrib | f9905a8758a50a44720f5500e19b5f2528c6b6c8 | [
"UPL-1.0"
] | null | null | null | $NetBSD$
Support SunOS/gcc.
--- src/hotspot/os_cpu/solaris_x86/prefetch_solaris_x86.inline.hpp.orig 2019-01-08 12:44:56.000000000 +0000
+++ src/hotspot/os_cpu/solaris_x86/prefetch_solaris_x86.inline.hpp
@@ -34,14 +34,22 @@ extern "C" {
inline void Prefetch::read (void *loc, intx interval) {
#ifdef AMD64
+# ifdef... | 26 | 107 | 0.669231 | gco |
7525cd500fbb8b24fd11dcd145610a42237a65ea | 602 | cpp | C++ | 1518_num_water_bottles/num_water_bottles.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 1518_num_water_bottles/num_water_bottles.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | 1518_num_water_bottles/num_water_bottles.cpp | Mengsen-W/algorithm | 66216b8601e416343a2cc191bd0f2f12eb282262 | [
"BSD-3-Clause"
] | null | null | null | /*
* @Date: 2021-12-17 08:27:08
* @Author: Mengsen Wang
* @LastEditors: Mengsen Wang
* @LastEditTime: 2021-12-17 08:28:14
*/
#include <cassert>
class Solution {
public:
int numWaterBottles(int numBottles, int numExchange) {
return numBottles >= numExchange
? (numBottles - numExchange) / (nu... | 25.083333 | 80 | 0.631229 | Mengsen-W |
7525f6edd892f2295f908348079655f1af062b87 | 3,904 | cpp | C++ | unittests/test_description_t.cpp | lysevi/solidarity | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | [
"Apache-2.0"
] | 1 | 2019-08-16T06:52:10.000Z | 2019-08-16T06:52:10.000Z | unittests/test_description_t.cpp | lysevi/solidarity | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | [
"Apache-2.0"
] | 10 | 2019-05-14T13:25:41.000Z | 2019-08-19T07:05:07.000Z | unittests/test_description_t.cpp | lysevi/solidarity | c4febebce2247b5ab628bea226aa5e7e4805a1e5 | [
"Apache-2.0"
] | null | null | null | #include "test_description_t.h"
void test_description_t::init(size_t cluster_size, bool add_listener_handler) {
std::vector<unsigned short> ports(cluster_size);
std::iota(ports.begin(), ports.end(), (unsigned short)(8000));
std::cerr << "start nodes" << std::endl;
unsigned short client_port = 10000;
for (au... | 34.245614 | 85 | 0.605533 | lysevi |
752c533e5117d7424a117759df77b30c9b5487e8 | 14,123 | hpp | C++ | Tools/bjs.u/External/include/stratosphere/ipc/ipc_service_session.hpp | BrewJS/HAC.js | 998f82cbfe5ed245825b0ad8252f09691788dc6c | [
"MIT"
] | 103 | 2018-07-10T10:51:36.000Z | 2022-03-24T15:55:35.000Z | Tools/bjs.u/External/include/stratosphere/ipc/ipc_service_session.hpp | BrewJS/HAC.js | 998f82cbfe5ed245825b0ad8252f09691788dc6c | [
"MIT"
] | 5 | 2018-07-10T10:55:24.000Z | 2019-04-12T13:04:46.000Z | Tools/bjs.u/External/include/stratosphere/ipc/ipc_service_session.hpp | BrewJS/HAC.js | 998f82cbfe5ed245825b0ad8252f09691788dc6c | [
"MIT"
] | 15 | 2018-07-10T10:16:25.000Z | 2022-03-31T12:50:12.000Z | /*
* Copyright (c) 2018 Atmosphère-NX
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHO... | 39.560224 | 162 | 0.509311 | BrewJS |
752eaa39f006be3d52a790b98bde796b2ff5940c | 1,074 | cpp | C++ | src/output_files.cpp | KevinBoxuGao/temperatureTimeAdjustor | 2e8941bf7217d21afdc21c9ce217cd30d6b85238 | [
"MIT"
] | null | null | null | src/output_files.cpp | KevinBoxuGao/temperatureTimeAdjustor | 2e8941bf7217d21afdc21c9ce217cd30d6b85238 | [
"MIT"
] | null | null | null | src/output_files.cpp | KevinBoxuGao/temperatureTimeAdjustor | 2e8941bf7217d21afdc21c9ce217cd30d6b85238 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <fstream>
#include "output_files.h"
OutputFiles::OutputFiles(std::vector<std::string> base_data) {
base_data_template = base_data;
}
void OutputFiles::Adjust(const std::string file_name) {
std::ofstream output("output/"+file_n... | 29.027027 | 76 | 0.588454 | KevinBoxuGao |
7530917c3844fce27baf17f6adea6b26be9d4b49 | 711 | hh | C++ | pes.timed/utilities.hh | petercfontana/TimeSolver | fb3bc660af90f58255e2526bee9a36fc9357deb0 | [
"MIT"
] | 4 | 2018-12-19T14:30:27.000Z | 2022-03-20T20:19:20.000Z | pes.timed/utilities.hh | petercfontana/TimeSolver | fb3bc660af90f58255e2526bee9a36fc9357deb0 | [
"MIT"
] | null | null | null | pes.timed/utilities.hh | petercfontana/TimeSolver | fb3bc660af90f58255e2526bee9a36fc9357deb0 | [
"MIT"
] | 2 | 2019-04-24T03:18:20.000Z | 2019-09-13T07:49:00.000Z | /**
* Utility functions.
*
* @author Jeroen Keiren
* @copyright MIT Licence, see the accompanying LICENCE.txt.
*/
#ifndef UTILITIES_HH
#define UTILITIES_HH
#include <algorithm>
#include <vector>
inline bool is_power_of_two(std::size_t n) {
if (n == 0) {
return false;
} else {
return (n & (n - ... | 19.216216 | 82 | 0.625879 | petercfontana |
75322367403aaca015a42f6e39d6753e1577dc63 | 523 | cpp | C++ | cf/1076-A.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | cf/1076-A.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | cf/1076-A.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define inf 0x3f3f3f
#define mem(a,b) memset( a,b,sizeof a)
int main()
{
std::ios::sync_with_stdio(false);
int n;
cin>>n;
{
string s;
int flag=0;
cin>>s;
for(int i=1;i<n;i++)
{
if(s[i]<s[... | 16.870968 | 39 | 0.422562 | PIPIKAI |
753fa5393f2d98fc97880bd2303ab884c682b90e | 14,527 | cc | C++ | test/rebuild_graphs.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 40 | 2015-03-10T07:55:39.000Z | 2021-06-11T10:13:56.000Z | test/rebuild_graphs.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 297 | 2015-04-30T10:02:04.000Z | 2022-03-09T13:31:54.000Z | test/rebuild_graphs.cc | centreon-lab/centreon-broker | b412470204eedc01422bbfd00bcc306dfb3d2ef5 | [
"Apache-2.0"
] | 29 | 2015-08-03T10:04:15.000Z | 2021-11-25T12:21:00.000Z | /*
** Copyright 2013-2015 Centreon
**
** 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 t... | 37.634715 | 80 | 0.560129 | centreon-lab |
7548b8d28cfaf93f262dc4fb920fd71abdd5f27c | 72,073 | cpp | C++ | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests8.cpp | DongJiHui/deeplearning4j | bd9d42d946d6c99f04b9ea1b99c9f703d5b7b854 | [
"Apache-2.0"
] | null | null | null | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests8.cpp | DongJiHui/deeplearning4j | bd9d42d946d6c99f04b9ea1b99c9f703d5b7b854 | [
"Apache-2.0"
] | null | null | null | libnd4j/tests_cpu/layers_tests/DeclarableOpsTests8.cpp | DongJiHui/deeplearning4j | bd9d42d946d6c99f04b9ea1b99c9f703d5b7b854 | [
"Apache-2.0"
] | null | null | null | //
// @author Yurii Shyrma (iuriish@yahoo.com), created on 10.06.2018
//
#include "testlayers.h"
#include <ops/declarable/CustomOperations.h>
#include <NDArray.h>
// #include <array/NDArrayList.h>
using namespace nd4j;
class DeclarableOpsTests8 : public testing::Test {
public:
DeclarableOpsTests8() {
... | 32.83508 | 218 | 0.537316 | DongJiHui |
754db7453767ee9b479c44bcdf3863c1d8d05b5a | 2,674 | cpp | C++ | engine/src/Component/MeshComponents/Skeleton.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | 5 | 2017-01-20T00:23:23.000Z | 2018-07-17T07:48:04.000Z | engine/src/Component/MeshComponents/Skeleton.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | engine/src/Component/MeshComponents/Skeleton.cpp | kyle-piddington/MoonEngine | 243cce7988ee089d0fc51d817e2736501e019702 | [
"MIT",
"BSD-3-Clause"
] | 2 | 2017-01-24T05:09:37.000Z | 2021-02-18T14:42:00.000Z | #include "Skeleton.h"
#include "Util/Logger.h"
#include <glm/gtc/type_ptr.hpp>
using namespace MoonEngine;
Bone::Bone(std::string name, int boneIdx, glm::mat4 offsetTransform):
name(name),
offsetTransform(offsetTransform),
localAnimTransform(1.0),
animTransform(1.0),
idx(boneId... | 23.051724 | 110 | 0.677636 | kyle-piddington |
75509c46638cb4b7864fb3e59fdd4b16bb0b3c22 | 2,894 | cpp | C++ | qlo/objects/obj_correlation_hw.cpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | 5 | 2016-07-13T14:05:01.000Z | 2022-01-24T15:15:17.000Z | qlo/objects/obj_correlation_hw.cpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | null | null | null | qlo/objects/obj_correlation_hw.cpp | eehlers/QuantLibAddin | bcbd9d1c0e7a4f4ce608470c6576d6e772305980 | [
"BSD-3-Clause"
] | 12 | 2016-01-28T07:18:28.000Z | 2021-11-15T03:48:52.000Z |
// BEGIN buffer b_lib_grp_cpp
#include <qlo/objects/obj_correlation.hpp>
#include <ql/legacy/libormarketmodels/lmlinexpcorrmodel.hpp>
#include <ql/models/marketmodels/correlations/cotswapfromfwdcorrelation.hpp>
#include <ql/models/marketmodels/correlations/timehomogeneousforwardcorrelation.hpp>
#include <ql/models... | 40.760563 | 127 | 0.681064 | eehlers |
7550c1f3aa84e96d53e506d0a5367d6d41ef9d00 | 3,475 | cpp | C++ | Visual Mercutio/zBaseLib/PSS_CommandLine.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zBaseLib/PSS_CommandLine.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zBaseLib/PSS_CommandLine.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_CommandLine -----------------------------------------------------*
****************************************************************************
* Description : Provides an encapsulated command line *
* Devel... | 35.10101 | 106 | 0.410072 | Jeanmilost |
7555fbe32477355e35b71e315e4754e44783a59b | 4,357 | cpp | C++ | libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2019-03-05T10:08:56.000Z | 2019-03-05T10:08:56.000Z | libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | libnaucrates/src/parser/CParseHandlerQueryOutput.cpp | khannaekta/gporca | 94e509d0a2456851a2cabf02e933c3523946b87b | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2011 EMC Corp.
//
// @filename:
// CParseHandlerQueryOutput.cpp
//
// @doc:
// Implementation of the SAX parse handler class parsing the list of
// output column references in a DXL query.
//---------... | 27.402516 | 126 | 0.585495 | khannaekta |
755ad07141cddf984ead1963498ce2c26f79700d | 506 | hpp | C++ | src/hashes/PCompressG.hpp | funkysash/catena-variants | 5baf9c34b96e495a52f8ded6612187c7f0033efb | [
"MIT"
] | 4 | 2015-04-18T14:33:27.000Z | 2016-02-20T11:11:25.000Z | src/hashes/PCompressG.hpp | funkysash/catena-variants | 5baf9c34b96e495a52f8ded6612187c7f0033efb | [
"MIT"
] | null | null | null | src/hashes/PCompressG.hpp | funkysash/catena-variants | 5baf9c34b96e495a52f8ded6612187c7f0033efb | [
"MIT"
] | 3 | 2015-04-18T07:10:43.000Z | 2018-03-26T13:55:16.000Z | #pragma once
#include "../hashfast.hpp"
namespace Catena_Variants{
class PCompressG : public HashFast<PCompressG>
{
public:
PCompressG();
~PCompressG() = default;
PCompressG(PCompressG const&) = default;
PCompressG& operator=(PCompressG const&) = default;
virtual void Hash(int vindex, const uint8_t* i1... | 16.866667 | 70 | 0.699605 | funkysash |
755cd3720a4409d5bb29bba57511e2c3d301de1e | 36,420 | cpp | C++ | src/llbox.cpp | pullmoll/lualept | bfe6da74088e23fc895faa30dfb1cbde9d42a53d | [
"BSD-3-Clause"
] | 2 | 2018-05-17T12:05:43.000Z | 2018-11-22T14:59:23.000Z | src/llbox.cpp | pullmoll/lualept | bfe6da74088e23fc895faa30dfb1cbde9d42a53d | [
"BSD-3-Clause"
] | null | null | null | src/llbox.cpp | pullmoll/lualept | bfe6da74088e23fc895faa30dfb1cbde9d42a53d | [
"BSD-3-Clause"
] | null | null | null | /************************************************************************
* Copyright (c) Jürgen Buchmüller <pullmoll@t-online.de>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of sourc... | 31.947368 | 99 | 0.602663 | pullmoll |
7561fb5f651de22dd8052cf17263ddc627770736 | 1,404 | hpp | C++ | code/editors/xrWeatherEditor/property_editor_color.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 7 | 2018-03-27T12:36:07.000Z | 2020-06-26T11:31:52.000Z | code/editors/xrWeatherEditor/property_editor_color.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 2 | 2018-05-26T23:17:14.000Z | 2019-04-14T18:33:27.000Z | code/editors/xrWeatherEditor/property_editor_color.hpp | Rikoshet-234/xray-oxygen | eaac3fa4780639152684f3251b8b4452abb8e439 | [
"Apache-2.0"
] | 5 | 2020-10-18T11:55:26.000Z | 2022-03-28T07:21:35.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : property_editor_color.hpp
// Created : 12.12.2007
// Modified : 12.12.2007
// Author : Dmitriy Iassenev
// Description : property editor color class
////////////////////////////////////////////////////////////////////////////... | 40.114286 | 87 | 0.698006 | Rikoshet-234 |
75651d4ca257edd91258e6281cbc0b49b6f8543c | 718 | cpp | C++ | leetcode.com/Weekly Contest 217/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/Weekly Contest 217/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/Weekly Contest 217/3/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <bits/stdc++.h>
using namespace std;
static int x = []() {
ios::sync_with_stdio(false);
cin.tie(0);
return 0;
}();
typedef long long ll;
int d[200100];
class Solution {
public:
int minMoves(vector<int>& nums, int limit) {
memset(d, 0, sizeof(d));
int n = nums.size();
for (int i = 0; i ... | 19.405405 | 52 | 0.456825 | sky-bro |
7566112585d82dcc28f739100d28e45b5eb655f6 | 659 | cpp | C++ | C++/scope/initializer/factor/Factor.cpp | fantaosha/SCOPE | 30519b52822d04fb7b5bf6f45e73227ad4260738 | [
"MIT"
] | 26 | 2021-10-10T18:34:38.000Z | 2022-03-03T03:00:40.000Z | C++/scope/initializer/factor/Factor.cpp | fantaosha/SCOPE | 30519b52822d04fb7b5bf6f45e73227ad4260738 | [
"MIT"
] | 3 | 2021-12-24T07:28:11.000Z | 2022-02-02T21:26:55.000Z | C++/scope/initializer/factor/Factor.cpp | fantaosha/SCOPE | 30519b52822d04fb7b5bf6f45e73227ad4260738 | [
"MIT"
] | 7 | 2021-11-06T15:23:08.000Z | 2022-02-28T03:40:03.000Z | #include <scope/initializer/factor/Factor.h>
namespace scope {
namespace Initializer {
Factor::Evaluation::Evaluation() : status(Status::INVALID) {}
int Factor::Evaluation::reset() {
status = Status::INVALID;
return 0;
}
int Factor::Evaluation::clear() {
reset();
error.resize(0);
return 0;
}
Factor::Li... | 16.897436 | 67 | 0.679818 | fantaosha |
7566b292f5f7309c950ee83a1a94b9ae354b8e38 | 709 | cpp | C++ | C++/CheckPalindrome.cpp | keshavgbpecdelhi/HacktoberFest-2021 | 0ac2ed4c575750bb5ceb79e0d1fc519d7e6054f8 | [
"MIT"
] | 7 | 2021-10-01T05:10:17.000Z | 2021-10-30T07:19:27.000Z | C++/CheckPalindrome.cpp | keshavgbpecdelhi/HacktoberFest-2021 | 0ac2ed4c575750bb5ceb79e0d1fc519d7e6054f8 | [
"MIT"
] | 32 | 2021-10-01T06:08:04.000Z | 2021-11-03T11:12:22.000Z | C++/CheckPalindrome.cpp | keshavgbpecdelhi/HacktoberFest-2021 | 0ac2ed4c575750bb5ceb79e0d1fc519d7e6054f8 | [
"MIT"
] | 20 | 2021-10-01T06:06:44.000Z | 2021-10-31T05:31:49.000Z | #include <iostream>
#include <cstring>
using namespace std;
#include <cstring>
bool helper(char input[], int start, int end)
{
if (start >= end)
{
return true;
}
if (input[start] != input[end])
{
return false;
}
bool smallcheck = helper(input, start + 1, end... | 17.292683 | 57 | 0.507757 | keshavgbpecdelhi |
7568d34b86c115cac9c3fc9bc91f05f92c81063a | 9,568 | cxx | C++ | ltnc/compiler/LtncStmtCompiler.cxx | JeneLitsch/LitanCompiler | be11dfd6f1a31a41a3bda2d41b1bfaa5066c9f18 | [
"MIT"
] | null | null | null | ltnc/compiler/LtncStmtCompiler.cxx | JeneLitsch/LitanCompiler | be11dfd6f1a31a41a3bda2d41b1bfaa5066c9f18 | [
"MIT"
] | null | null | null | ltnc/compiler/LtncStmtCompiler.cxx | JeneLitsch/LitanCompiler | be11dfd6f1a31a41a3bda2d41b1bfaa5066c9f18 | [
"MIT"
] | null | null | null | #include "LtncStmtCompiler.hxx"
#include <iostream>
std::string ltnc::StmtCompiler::compileProgram(CompilerPack & compPkg, std::shared_ptr<Program> program){
compPkg.getScopes().addFunctionScope(FxSignature(Type::VOI, "", {}));
for(const auto & function : program->functions) {
compPkg.registerFunction(function);
}... | 31.166124 | 176 | 0.670778 | JeneLitsch |
756a61b072edec80aaafb8086774d89542624af5 | 4,260 | cc | C++ | packager/media/crypto/sample_aes_ec3_cryptor_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-13T03:50:58.000Z | 2021-01-13T03:50:58.000Z | packager/media/crypto/sample_aes_ec3_cryptor_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | packager/media/crypto/sample_aes_ec3_cryptor_unittest.cc | Videofy/shaka-packager | 33792ca2daae5d3fdcd7a8f72ddb3d2455db2ece | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/crypto/sample_aes_ec3_cryptor.h"
#include <gmock/gmock.h>
#include <gtes... | 35.5 | 79 | 0.634507 | Videofy |
756cc73054eed2306d800f1605884d9d15d4f5c5 | 21,664 | cpp | C++ | tinyxml/ticpp.cpp | blazeroni/foxc | c143edb63b90a6c500193ea5eac95f9c89e3c4ff | [
"MIT"
] | null | null | null | tinyxml/ticpp.cpp | blazeroni/foxc | c143edb63b90a6c500193ea5eac95f9c89e3c4ff | [
"MIT"
] | null | null | null | tinyxml/ticpp.cpp | blazeroni/foxc | c143edb63b90a6c500193ea5eac95f9c89e3c4ff | [
"MIT"
] | null | null | null | /*
http://code.google.com/p/ticpp/
Copyright (c) 2006 Ryan Pusztai, Ryan Mulder
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 t... | 21.816717 | 121 | 0.627723 | blazeroni |
756cd09cc0f9cd3a7c6976d9afe11ce8c618ec29 | 2,448 | cpp | C++ | src/CMacierzKw.cpp | MarutTomasz/ZadanieSzablonDlaRownan | 17e311c18d6cc999896d1d0612ee21c79cae3ec5 | [
"MIT"
] | null | null | null | src/CMacierzKw.cpp | MarutTomasz/ZadanieSzablonDlaRownan | 17e311c18d6cc999896d1d0612ee21c79cae3ec5 | [
"MIT"
] | null | null | null | src/CMacierzKw.cpp | MarutTomasz/ZadanieSzablonDlaRownan | 17e311c18d6cc999896d1d0612ee21c79cae3ec5 | [
"MIT"
] | null | null | null | #include "SMacierzKw.cpp"
// NA STALE RZECZYWISTE
template class MacierzKw<Wektor,double,5>;
template std::istream & operator >> (std::istream &strm, MacierzKw<Wektor,double,5> &M);
template std::ostream & operator << (std::ostream &strm, const MacierzKw<Wektor,double,5> &M);
template MacierzKw<Wektor,double,5> oper... | 56.930233 | 141 | 0.786356 | MarutTomasz |
756e2ee22783eb8f303db5cce4e715651441929c | 2,251 | hpp | C++ | Sockets/include/Sockets/TcpClientSocket.hpp | sanjeev-kumar-m/BrokerDataServer | 2db8a1bd4bd04a9dadcb4c1762f11a8e1e52d46e | [
"MIT"
] | null | null | null | Sockets/include/Sockets/TcpClientSocket.hpp | sanjeev-kumar-m/BrokerDataServer | 2db8a1bd4bd04a9dadcb4c1762f11a8e1e52d46e | [
"MIT"
] | null | null | null | Sockets/include/Sockets/TcpClientSocket.hpp | sanjeev-kumar-m/BrokerDataServer | 2db8a1bd4bd04a9dadcb4c1762f11a8e1e52d46e | [
"MIT"
] | null | null | null | #pragma once
/**
* @file TcpClientSocket.hpp
*
* This file declare Sockets::TcpClientSocket class
*/
#define SNJ_MAKE_NONCOPYABLE(c)\
private: \
c(const c&) noexcept = delete;\
c& operator=(const c&) noexcept = delete
#define SNJ_MAKE_NONMOVABLE(c)\
private: \
c(... | 22.068627 | 54 | 0.594847 | sanjeev-kumar-m |
75719231b1fba36f05c18ad5341bd59d35278aa9 | 1,720 | cpp | C++ | apal_cxx/src/cahn_hilliard.cpp | davidkleiven/APAL | f3d549498d312b98f55aad5db7c4ad061785ecbf | [
"MIT"
] | null | null | null | apal_cxx/src/cahn_hilliard.cpp | davidkleiven/APAL | f3d549498d312b98f55aad5db7c4ad061785ecbf | [
"MIT"
] | 15 | 2019-05-23T07:18:19.000Z | 2019-12-17T08:01:10.000Z | apal_cxx/src/cahn_hilliard.cpp | davidkleiven/APAL | f3d549498d312b98f55aad5db7c4ad061785ecbf | [
"MIT"
] | null | null | null | #include "cahn_hilliard.hpp"
#include <cmath>
using namespace std;
CahnHilliard::CahnHilliard(const vector<double> &coefficients): coeff(coefficients){};
double CahnHilliard::evaluate(double x) const{
double res = 0.0;
unsigned int N = coeff.size();
for (unsigned int i=0;i<coeff.size();i++){
res ... | 22.933333 | 86 | 0.619186 | davidkleiven |
757694c82c162d4ec357dbe70e8f57109ac12453 | 19,209 | cpp | C++ | mainwindow.cpp | adricatena/EA3-ControlHorno- | fcb0c8a6edddc09f2b03c83e97331ceddac9987e | [
"MIT"
] | null | null | null | mainwindow.cpp | adricatena/EA3-ControlHorno- | fcb0c8a6edddc09f2b03c83e97331ceddac9987e | [
"MIT"
] | null | null | null | mainwindow.cpp | adricatena/EA3-ControlHorno- | fcb0c8a6edddc09f2b03c83e97331ceddac9987e | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "qcustomplot.h"
//------------Variables generales----------
QByteArray pedido_com, datos_com;
QString SetPoint;
int n = 0, h = 0, l = 0, j = 0, r = 0, k = 0, w = 0, q = 0, f = 0;
float i = 0;
bool ok, Boton = false, SP_Send = false, SP_Seted = false,... | 36.728489 | 165 | 0.544641 | adricatena |
757c539a328d5eea7fef40c39262bb64741accd5 | 1,257 | cpp | C++ | C++/1679.MaxNumberOfK-SumPairs.cpp | SSKale1/LeetCode-Solutions | dd6ff16f6af1e96acd036b6e9c2a5cc11f0e330b | [
"MIT"
] | null | null | null | C++/1679.MaxNumberOfK-SumPairs.cpp | SSKale1/LeetCode-Solutions | dd6ff16f6af1e96acd036b6e9c2a5cc11f0e330b | [
"MIT"
] | null | null | null | C++/1679.MaxNumberOfK-SumPairs.cpp | SSKale1/LeetCode-Solutions | dd6ff16f6af1e96acd036b6e9c2a5cc11f0e330b | [
"MIT"
] | null | null | null | /*class Solution {
public:
int maxOperations(vector<int>& nums, int k) {
int ops = 0;
sort(begin(nums), end(nums));
int start = 0;
int end = nums.size()-1;
while(start<end)
{
int temp = nums[start]+nums[end];
if(temp==k)
{
... | 20.274194 | 104 | 0.405728 | SSKale1 |
757d59b96b2afcc57f24535990100505d52adc8e | 6,238 | cpp | C++ | Test/Automation/ResourceTest/Helper_dll/Helper_dll.cpp | SecurityInnovation/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 35 | 2015-05-16T06:36:47.000Z | 2021-08-31T15:32:09.000Z | Test/Automation/ResourceTest/Helper_dll/Helper_dll.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 3 | 2015-06-18T06:16:51.000Z | 2017-11-16T23:23:59.000Z | Test/Automation/ResourceTest/Helper_dll/Helper_dll.cpp | crypticterminal/Holodeck | 54b97675a73b668f8eec8d9c8a8c7733e1a53db3 | [
"MIT"
] | 10 | 2015-04-07T14:45:48.000Z | 2021-11-14T15:14:45.000Z | // Helper_dll.cpp : Defines the entry point for the DLL application.
//
#include "Helper_dll.h"
#include <commctrl.h>
#include <string>
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DL... | 33.718919 | 201 | 0.730683 | SecurityInnovation |
757d70ec3f31ffdac6aeb7da598032de7bdd2dd0 | 3,344 | cpp | C++ | src/concepts.cpp | WillCoates/QuickCalc | 49a4946c5c9b3781d1d5820815bda8395a8ed0dd | [
"MIT"
] | null | null | null | src/concepts.cpp | WillCoates/QuickCalc | 49a4946c5c9b3781d1d5820815bda8395a8ed0dd | [
"MIT"
] | null | null | null | src/concepts.cpp | WillCoates/QuickCalc | 49a4946c5c9b3781d1d5820815bda8395a8ed0dd | [
"MIT"
] | null | null | null | #include "concepts.hpp"
#include <unordered_map>
#include <cmath>
using namespace quickcalc;
namespace {
constexpr double QC_FALSE = 0.0;
constexpr double QC_TRUE = 1.0;
constexpr double QC_EPSILON = 1e-15;
// C++17 doesn't define a pi constant, so we'll use our own
constexpr double QC_PI = 3.1415... | 29.857143 | 105 | 0.546651 | WillCoates |
758a31c0af23360e53d7a26e9beb6315892c4cb9 | 548 | cpp | C++ | Interview Preparation Kit - CPP/01. Warm-up Challenges/002. Counting Valleys.cpp | atul070/interview | 505444570bba6e9d5672272eea5f3784834d2d9e | [
"Apache-2.0"
] | 1 | 2020-10-18T22:06:12.000Z | 2020-10-18T22:06:12.000Z | Interview Preparation Kit - CPP/01. Warm-up Challenges/002. Counting Valleys.cpp | atul070/interview | 505444570bba6e9d5672272eea5f3784834d2d9e | [
"Apache-2.0"
] | null | null | null | Interview Preparation Kit - CPP/01. Warm-up Challenges/002. Counting Valleys.cpp | atul070/interview | 505444570bba6e9d5672272eea5f3784834d2d9e | [
"Apache-2.0"
] | null | null | null | // Problem: https://www.hackerrank.com/challenges/counting-valleys/problem
// Score: 15
#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
string str;
cin >> str;
int ans = 0;
int current_level = 0;
for (char c: str){
if ... | 15.657143 | 75 | 0.452555 | atul070 |
758dabfa6a951d27c84c1942f757adac38e03b30 | 6,531 | cpp | C++ | iOS/CustomAudioUnit.cpp | DaCao/Sonic | 0bc327b97560c83cb6cc22b2b2a1e399554194d8 | [
"MIT"
] | null | null | null | iOS/CustomAudioUnit.cpp | DaCao/Sonic | 0bc327b97560c83cb6cc22b2b2a1e399554194d8 | [
"MIT"
] | null | null | null | iOS/CustomAudioUnit.cpp | DaCao/Sonic | 0bc327b97560c83cb6cc22b2b2a1e399554194d8 | [
"MIT"
] | null | null | null | //
// CustomAudioUnit.cpp
// Demo
//
// Created by Philadelphia Game Lab on 6/11/14.
// Copyright (c) 2014 Philadelphia Game Lab. All rights reserved.
//
#include "CustomAudioUnit.h"
#define BUF_SIZE 512
#define BIT_DEPTH 16
#define SAMPLE_RATE 44100
static OSStatus recordingCallback (void *inRefCon, AudioUnitRe... | 37.32 | 203 | 0.740009 | DaCao |
759013fd7f21515fac3ea4e693f277b4004598b3 | 9,994 | cpp | C++ | common/quote.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | common/quote.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | common/quote.cpp | chwash/wwiv | 0d67acdede788f8a4fd2b442e92caeb411552359 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2022, WWIV Software Services */
/* ... | 32.553746 | 100 | 0.555033 | chwash |
759518dc8b02f8bb90fc9519b95b32ce60120ca1 | 3,433 | cpp | C++ | pod/DekrispatorDroneBox/drifter.cpp | MrBlueXav/DaisyExamples | 41f5e3a646c24b2bab8bcbc9bbe5b36efd7f6400 | [
"MIT"
] | 1 | 2021-11-05T19:04:32.000Z | 2021-11-05T19:04:32.000Z | pod/DekrispatorDroneBox/drifter.cpp | MrBlueXav/DaisyExamples | 41f5e3a646c24b2bab8bcbc9bbe5b36efd7f6400 | [
"MIT"
] | null | null | null | pod/DekrispatorDroneBox/drifter.cpp | MrBlueXav/DaisyExamples | 41f5e3a646c24b2bab8bcbc9bbe5b36efd7f6400 | [
"MIT"
] | 1 | 2020-08-16T07:36:34.000Z | 2020-08-16T07:36:34.000Z | /**
******************************************************************************
* File Name : drifter.c
* Author : Xavier Halgand
* Date :
* Description : random segment waveform generator
******************************************************************************
*/
/*
*... | 33.009615 | 97 | 0.429945 | MrBlueXav |
7598a31d36c90da882a8847f2526c9b2c7c26177 | 6,073 | cc | C++ | bindings/ruby/ext/memory.cc | mgallien/typelib | e27ef63564f623c9362d13c6f443c9944c351841 | [
"CECILL-B"
] | 1 | 2021-06-03T22:56:53.000Z | 2021-06-03T22:56:53.000Z | bindings/ruby/ext/memory.cc | mgallien/typelib | e27ef63564f623c9362d13c6f443c9944c351841 | [
"CECILL-B"
] | null | null | null | bindings/ruby/ext/memory.cc | mgallien/typelib | e27ef63564f623c9362d13c6f443c9944c351841 | [
"CECILL-B"
] | null | null | null | #include "typelib.hh"
#include <typelib/value_ops.hh>
#include <ruby.h>
#include <ruby/st.h>
using namespace Typelib;
using namespace std;
using namespace typelib_ruby;
#undef VERBOSE
static VALUE cMemoryZone;
static st_table* MemoryTable;
/* For those who are wondering, st_data_t is always the size of an void*
* (... | 26.290043 | 105 | 0.671497 | mgallien |
759bbd0bdc623a447a4cbbd4b64d262ee35ec4ac | 3,317 | cpp | C++ | remote_core/remote_core/src/Controllers/HardwareController.cpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/src/Controllers/HardwareController.cpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | remote_core/remote_core/src/Controllers/HardwareController.cpp | DaveAMoore/remote_core | a46280a7cee5d52ca08d11ea2de518a7d5e12ca5 | [
"MIT"
] | null | null | null | //
// HardwareController.cpp
// remote_core
//
// Created by David Moore on 11/5/18.
// Copyright © 2018 David Moore. All rights reserved.
//
#include <algorithm>
#include <thread>
#include <sys/stat.h>
#include "HardwareController.hpp"
#include "CommandLine.hpp"
#define REMOTE_CONFIGURATION_FILE_DIRECTORY "."
u... | 31.590476 | 135 | 0.644558 | DaveAMoore |
759c382ca4554b7ae1d4feae680b6589035ad5de | 58,082 | cpp | C++ | source_code/system_hydraulic/source_code/models/coupling/Hyd_Coupling_Point_RV2FP.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_hydraulic/source_code/models/coupling/Hyd_Coupling_Point_RV2FP.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_hydraulic/source_code/models/coupling/Hyd_Coupling_Point_RV2FP.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | #include "source_code\Hyd_Headers_Precompiled.h"
//#include "Hyd_Coupling_Point_RV2FP.h"
//constructor
Hyd_Coupling_Point_RV2FP::Hyd_Coupling_Point_RV2FP(void){
this->river_profile_index_up=-1;
this->river_profile_up=NULL;
this->river_profile_index_down=-1;
this->river_profile_down=NULL;
this->floodplain_elem_ind... | 42.180102 | 229 | 0.779088 | dabachma |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.