hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07f86e762d5471c705dde7af207b48bd25e576bf | 6,958 | hpp | C++ | Engine/Code/Engine/Input/KeyCode.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 1 | 2020-07-14T06:58:50.000Z | 2020-07-14T06:58:50.000Z | Engine/Code/Engine/Input/KeyCode.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 20 | 2021-11-29T14:09:33.000Z | 2022-03-26T20:12:44.000Z | Engine/Code/Engine/Input/KeyCode.hpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 2 | 2019-05-01T21:49:33.000Z | 2021-04-01T08:22:21.000Z | #pragma once
#include "Engine/Core/TypeUtils.hpp"
// clang-format off
enum class KeyCode : int {
FirstMouseButton_ /* Internal use only. */
, LButton = FirstMouseButton_ /* Left Mouse Button */
, RButton /* Right Mouse Button */
, Cancel /* Control-break processing */
, MButton /* Middle Mouse But... | 24.761566 | 80 | 0.564817 | cugone |
07f9c3bc8ecb9210aff979cedcb847b59ef9df89 | 8,809 | cpp | C++ | LightPOV/ModeTest/communication.cpp | BensonYang1999/sciyen-ES-Lux | 071ce2c29f48eaab45be56208ed88512eb685349 | [
"BSD-3-Clause"
] | 5 | 2021-04-17T10:58:35.000Z | 2021-04-17T11:02:55.000Z | LightPOV/ModeTest/communication.cpp | BensonYang1999/sciyen-ES-Lux | 071ce2c29f48eaab45be56208ed88512eb685349 | [
"BSD-3-Clause"
] | null | null | null | LightPOV/ModeTest/communication.cpp | BensonYang1999/sciyen-ES-Lux | 071ce2c29f48eaab45be56208ed88512eb685349 | [
"BSD-3-Clause"
] | 29 | 2021-01-30T10:19:03.000Z | 2021-04-18T17:40:11.000Z | #include "communication.h"
extern TaskHandle_t LED_UPDATE;
extern TaskHandle_t WIFI_HANDLE;
HTTPClient http;
Communication::Communication(){
}
void Communication::init(){
connect();
OTA();
}
void Communication::OTA()
{
ArduinoOTA.onStart([]() {
vTaskDelete(WIFI_HANDLE);
... | 30.375862 | 86 | 0.493927 | BensonYang1999 |
07fae5a45b89f95264313d6e4f32bb74014623d0 | 447 | hpp | C++ | Common/Code/VertexBuffer.hpp | steamclock/internetmap | 13bf01e8e1fde8db64ce8fd417a1c907783100ee | [
"MIT"
] | 22 | 2017-07-11T20:31:16.000Z | 2021-04-04T16:00:10.000Z | Common/Code/VertexBuffer.hpp | steamclock/internetmap | 13bf01e8e1fde8db64ce8fd417a1c907783100ee | [
"MIT"
] | 197 | 2017-07-06T16:53:59.000Z | 2019-05-31T17:57:51.000Z | Common/Code/VertexBuffer.hpp | steamclock/internetmap | 13bf01e8e1fde8db64ce8fd417a1c907783100ee | [
"MIT"
] | 10 | 2017-12-08T21:58:58.000Z | 2021-03-20T07:16:47.000Z | //
// VertexBuffer.h
// InternetMap
//
#ifndef __InternetMap__VertexBuffer__
#define __InternetMap__VertexBuffer__
class VertexBuffer {
protected:
unsigned int _size;
unsigned int _vertexBuffer;
unsigned char* _lockedVertices;
public:
VertexBuffer(int size);
VertexBuffer();
void be... | 17.88 | 51 | 0.715884 | steamclock |
07fb9f152e1646e4c63386a2261cfbb1b146f90a | 1,221 | cpp | C++ | vcplotbase.cpp | GalacticSoft/DikuEd | 135f49bba7ce2faf5faac12a355da9813c28d0fa | [
"MIT"
] | null | null | null | vcplotbase.cpp | GalacticSoft/DikuEd | 135f49bba7ce2faf5faac12a355da9813c28d0fa | [
"MIT"
] | null | null | null | vcplotbase.cpp | GalacticSoft/DikuEd | 135f49bba7ce2faf5faac12a355da9813c28d0fa | [
"MIT"
] | null | null | null | // Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "vcplotbase.h"
// Dispatch interfaces referenced by this ... | 24.918367 | 82 | 0.660934 | GalacticSoft |
07fda40a6914f30179570bb04f38921be010988b | 657 | cpp | C++ | legacy/src/physics/collider.cpp | benkyd/Minecraft | ae8b69b96dcecd669f90aa2c7bb675e5f9b37615 | [
"MIT"
] | 19 | 2020-07-18T18:52:39.000Z | 2022-02-27T19:42:06.000Z | legacy/src/physics/collider.cpp | benkyd/Minecraft | ae8b69b96dcecd669f90aa2c7bb675e5f9b37615 | [
"MIT"
] | null | null | null | legacy/src/physics/collider.cpp | benkyd/Minecraft | ae8b69b96dcecd669f90aa2c7bb675e5f9b37615 | [
"MIT"
] | 4 | 2021-03-27T18:36:13.000Z | 2022-03-26T18:59:09.000Z | #include "collider.hpp"
EntityCollider::EntityCollider() {
}
glm::vec3 EntityCollider::TerrainCollide(std::vector<uint8_t> terrain) {
}
bool EntityCollider::m_aabb(ColliderBox a, ColliderBox b) {
return {
(a.Min.x <= b.Min.x + b.Max.x && a.Min.x + a.Max.x >= b.Min.x) &&
(a.Min.y <= b.Min.y ... | 18.25 | 74 | 0.61035 | benkyd |
07fe09fb73acf273510152e09b165d67f448ff55 | 4,527 | cpp | C++ | qtquick_items/IrregularCircleItem.cpp | luminosuslight/luminosus-core | b823c57524aea382b0734eb1a6343a1c95bb84f3 | [
"MIT"
] | 1 | 2021-09-25T19:09:56.000Z | 2021-09-25T19:09:56.000Z | qtquick_items/IrregularCircleItem.cpp | luminosuslight/luminosus-core | b823c57524aea382b0734eb1a6343a1c95bb84f3 | [
"MIT"
] | null | null | null | qtquick_items/IrregularCircleItem.cpp | luminosuslight/luminosus-core | b823c57524aea382b0734eb1a6343a1c95bb84f3 | [
"MIT"
] | null | null | null | #include "IrregularCircleItem.h"
#include <QSGNode>
#include <QSGFlatColorMaterial>
#include <QSGVertexColorMaterial>
#include <QGuiApplication>
#include <QScreen>
#include <cmath>
IrregularCircleItem::IrregularCircleItem(QQuickItem *parent)
: QQuickItem(parent)
, m_innerColor(Qt::red)
, m_outerColor(Qt:... | 34.557252 | 133 | 0.666446 | luminosuslight |
5800a6131a27023eead1edfcc8fd7c825bc88ff6 | 1,673 | cpp | C++ | misc/cpp/HandleThreadExceptions.cpp | ryanorz/code-camp | 041eb6443a3f0963a7778d3ddfb03a7557257094 | [
"Apache-2.0"
] | null | null | null | misc/cpp/HandleThreadExceptions.cpp | ryanorz/code-camp | 041eb6443a3f0963a7778d3ddfb03a7557257094 | [
"Apache-2.0"
] | null | null | null | misc/cpp/HandleThreadExceptions.cpp | ryanorz/code-camp | 041eb6443a3f0963a7778d3ddfb03a7557257094 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <thread>
#include <mutex>
#include <condition_variable>
#include <queue>
#include <vector>
#include <stdexcept>
using namespace std;
mutex g_lock_cout;
mutex g_lock_queue;
condition_variable g_queuecheck;
queue<exception_ptr> g_exceptions;
bool g_workerdone = false;
void worker(int id)
{... | 24.602941 | 72 | 0.57621 | ryanorz |
58038d7c835eecdb7215a14860afb30d9feae668 | 468 | cpp | C++ | platforms/gfg/0407_minimum_difference_between_groups_of_size_two.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/gfg/0407_minimum_difference_between_groups_of_size_two.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/gfg/0407_minimum_difference_between_groups_of_size_two.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #include "../../template.hpp"
int MinDiffBetweenGroupsOfSize2(vi arr) {
int n = arr.size(), mini = INF, maxi = -INF;
sort(arr);
for (int i = 0, j = n - 1; i < j; ++i, --j) {
maxi = max(maxi, arr[i] + arr[j]);
mini = min(mini, arr[i] + arr[j]);
}
return maxi - mini;
}
int main() { T... | 27.529412 | 64 | 0.532051 | idfumg |
580533c77032abf202b792f08b0473169aac9cac | 1,346 | cpp | C++ | archsim/src/arch/risc-v/RiscVDecodeContext.cpp | tspink/GenSim | 1c2c608d97ef8a90253b6f0567b43724ba553c6b | [
"MIT"
] | 10 | 2020-07-14T22:09:30.000Z | 2022-01-11T09:57:52.000Z | archsim/src/arch/risc-v/RiscVDecodeContext.cpp | tspink/GenSim | 1c2c608d97ef8a90253b6f0567b43724ba553c6b | [
"MIT"
] | 6 | 2020-07-09T12:01:57.000Z | 2021-04-27T10:23:58.000Z | archsim/src/arch/risc-v/RiscVDecodeContext.cpp | tspink/GenSim | 1c2c608d97ef8a90253b6f0567b43724ba553c6b | [
"MIT"
] | 10 | 2020-07-29T17:05:26.000Z | 2021-12-04T14:57:15.000Z | /* This file is Copyright University of Edinburgh 2018. For license details, see LICENSE. */
#include "gensim/gensim_decode_context.h"
#include "arch/risc-v/RiscVDecodeContext.h"
#include "util/ComponentManager.h"
#include "core/thread/ThreadInstance.h"
using namespace archsim::arch::riscv;
uint32_t RiscVDecodeConte... | 36.378378 | 168 | 0.788262 | tspink |
5805e3a575b2f2281c1ee3b32b4e3e9dbf8b5b3b | 1,208 | cpp | C++ | src/ai/composite/contexts.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 12 | 2015-03-04T15:07:00.000Z | 2019-09-13T16:31:06.000Z | src/ai/composite/contexts.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | null | null | null | src/ai/composite/contexts.cpp | blackberry/Wesnoth | 8b307689158db568ecc6cc3b537e8d382ccea449 | [
"Unlicense"
] | 5 | 2017-04-22T08:16:48.000Z | 2020-07-12T03:35:16.000Z | /* $Id: contexts.cpp 48153 2011-01-01 15:57:50Z mordante $ */
/*
Copyright (C) 2009 - 2011 by Yurii Chernyi <terraninfo@terraninfo.net>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Gen... | 20.474576 | 89 | 0.639901 | blackberry |
5806c40c787757626339588a6e7ac820babf956f | 1,470 | cpp | C++ | code/aoce_vulkan_extra/layer/VkVisualEffectLayer.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 71 | 2020-10-15T03:13:50.000Z | 2022-03-30T02:04:28.000Z | code/aoce_vulkan_extra/layer/VkVisualEffectLayer.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 9 | 2021-02-20T10:30:10.000Z | 2022-03-04T07:59:58.000Z | code/aoce_vulkan_extra/layer/VkVisualEffectLayer.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 19 | 2021-01-01T12:03:02.000Z | 2022-03-21T07:59:59.000Z | #include "VkVisualEffectLayer.hpp"
namespace aoce {
namespace vulkan {
namespace layer {
VkPosterizeLayer::VkPosterizeLayer(/* args */) {
glslPath = "glsl/posterize.comp.spv";
setUBOSize(sizeof(paramet), true);
paramet = 10;
updateUBO(¶met);
}
VkPosterizeLayer::~VkPosterizeLayer() {}
VkVignetteL... | 22.615385 | 56 | 0.682993 | msqljj |
580acac172ba189fac037a3a09a978185eed69ba | 265 | cpp | C++ | Clase1/suma.cpp | diegostaPy/compuFiuna | e69acd09803f4dacd49d5c6cb1a3173a8fef9cbc | [
"MIT"
] | null | null | null | Clase1/suma.cpp | diegostaPy/compuFiuna | e69acd09803f4dacd49d5c6cb1a3173a8fef9cbc | [
"MIT"
] | null | null | null | Clase1/suma.cpp | diegostaPy/compuFiuna | e69acd09803f4dacd49d5c6cb1a3173a8fef9cbc | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main() {
int a,b,s;
cout<<"Programa para sumar dos numeros introducidos por teclado"<<endl;
cout<<"Ingrese el numero 1: ";
cin>>a;
cout<<"Ingrese el numero 2: ";
cin>>b;
s = a+b;
cout<<"La suma es: "<<s<<endl;
}
| 18.928571 | 72 | 0.641509 | diegostaPy |
580c66cb987903da8c6ca071e4efa2f688fcf6fd | 1,076 | hpp | C++ | include/licon/optim/sgd.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | 93 | 2017-10-25T07:48:42.000Z | 2022-02-02T15:18:11.000Z | include/licon/optim/sgd.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | null | null | null | include/licon/optim/sgd.hpp | wzppengpeng/LittleConv | 12aab4cfbbe965fa8b4053bb464db1165cc4ec31 | [
"MIT"
] | 20 | 2018-02-06T10:01:36.000Z | 2019-07-07T09:26:40.000Z | #ifndef LICON_OPTIM_SGD_HPP_
#define LICON_OPTIM_SGD_HPP_
#include <unordered_map>
#include "licon/optim/optim.hpp"
#include "licon/utils/etensor.hpp"
namespace licon
{
namespace optim
{
/**
* the class of SGD optimizer
*/
class SGD : public Optimizer {
public:
// the creator of SGD optimizer
static st... | 21.098039 | 130 | 0.681227 | wzppengpeng |
580f452b5cf4dbb802bbb91da0fff2925d3e8fcb | 13,932 | cpp | C++ | tools/FakeAPI/ThostFtdcTraderApi.cpp | zhuzhenping/XAPI3 | 86b8a61a664bd3bc8bb0305fa73484d28ea8ed95 | [
"BSD-2-Clause"
] | 49 | 2020-10-15T03:01:54.000Z | 2022-03-11T12:57:46.000Z | tools/FakeAPI/ThostFtdcTraderApi.cpp | zhuzhenping/XAPI3 | 86b8a61a664bd3bc8bb0305fa73484d28ea8ed95 | [
"BSD-2-Clause"
] | 5 | 2020-12-07T17:58:16.000Z | 2021-10-01T09:31:51.000Z | tools/FakeAPI/ThostFtdcTraderApi.cpp | zhuzhenping/XAPI3 | 86b8a61a664bd3bc8bb0305fa73484d28ea8ed95 | [
"BSD-2-Clause"
] | 33 | 2020-10-13T13:14:37.000Z | 2022-03-31T04:49:52.000Z | #include "stdafx.h"
#define ISLIB
#define LIB_TRADER_API_EXPORT
#include <stdio.h>
#include "../../include/CTP/ThostFtdcTraderApi.h"
class MyClassCTP :public CThostFtdcTraderApi
{
public:
///创建TraderApi
///@param pszFlowPath 存贮订阅信息文件的目录,默认为当前目录
///@return 创建出的UserApi
static CThostFtdcTraderApi *CreateFtdcTrader... | 37.961853 | 162 | 0.799742 | zhuzhenping |
580f9ce7d6e2cb4ef71f548df011e4608e401d6d | 9,975 | cpp | C++ | src/optim/nelder_mead_module.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 10 | 2018-06-28T00:21:46.000Z | 2022-03-30T03:31:32.000Z | src/optim/nelder_mead_module.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 35 | 2019-03-19T21:54:46.000Z | 2022-03-17T02:20:42.000Z | src/optim/nelder_mead_module.cpp | bigginlab/chap | 17de36442e2e80cb01432e84050c4dfce31fc3a2 | [
"MIT"
] | 8 | 2018-10-27T19:35:13.000Z | 2022-01-06T01:10:39.000Z | // CHAP - The Channel Annotation Package
//
// Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
// Stephen J. Tucker
//
// 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 th... | 30.504587 | 97 | 0.613534 | bigginlab |
58107e4f921de95082e14fcb6e78d8c628d6a427 | 3,519 | cpp | C++ | Runtime/World/CMarkerGrid.cpp | RetroView/RetroCommon | a413a010b50a53ebc6b0c726203181fc179d3370 | [
"MIT"
] | 106 | 2021-04-09T19:42:56.000Z | 2022-03-30T09:13:28.000Z | Runtime/World/CMarkerGrid.cpp | Austint30/metaforce | a491e2e9f229c8db92544b275cd1baa80bacfd17 | [
"MIT"
] | 58 | 2021-04-09T12:48:58.000Z | 2022-03-22T00:11:42.000Z | Runtime/World/CMarkerGrid.cpp | Austint30/metaforce | a491e2e9f229c8db92544b275cd1baa80bacfd17 | [
"MIT"
] | 13 | 2021-04-06T23:23:20.000Z | 2022-03-16T02:09:48.000Z | #include "Runtime/World/CMarkerGrid.hpp"
namespace metaforce {
CMarkerGrid::CMarkerGrid(const zeus::CAABox& bounds) : x0_bounds(bounds) {
x18_gridUnits = zeus::CVector3f((bounds.max - bounds.min) * 0.0625f);
x24_gridState.resize(0x400);
}
void CMarkerGrid::MarkCells(const zeus::CSphere& area, u32 val) {
int wid... | 40.448276 | 111 | 0.608411 | RetroView |
58168a80cfb9a97c1621a0ed52f2c5daa219039b | 3,797 | cpp | C++ | src/level_set/RelaxationLSBcCoefs.cpp | hongk45/IBAMR | 698d419fc6688470a8b9400822ba893da9d07ae2 | [
"BSD-3-Clause"
] | null | null | null | src/level_set/RelaxationLSBcCoefs.cpp | hongk45/IBAMR | 698d419fc6688470a8b9400822ba893da9d07ae2 | [
"BSD-3-Clause"
] | 1 | 2020-11-30T14:22:45.000Z | 2020-12-01T21:28:24.000Z | src/level_set/RelaxationLSBcCoefs.cpp | hongk45/IBAMR | 698d419fc6688470a8b9400822ba893da9d07ae2 | [
"BSD-3-Clause"
] | null | null | null | // ---------------------------------------------------------------------
//
// Copyright (c) 2018 - 2019 by the IBAMR developers
// All rights reserved.
//
// This file is part of IBAMR.
//
// IBAMR is free software and is distributed under the 3-clause BSD
// license. The full text of the license can be found in the f... | 30.134921 | 105 | 0.500395 | hongk45 |
58176bfc644c891e4def00e990d5160cf6c3f86f | 121,077 | cpp | C++ | net/unimodem/src/tsp/cdev.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/unimodem/src/tsp/cdev.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/unimodem/src/tsp/cdev.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | // Copyright (c) 1996-1997 Microsoft Corporation.
//
//
// Component
//
// Unimodem 5.0 TSP (Win32, user mode DLL)
//
// File
//
// CDEV.CPP
// Implements class CTspDev
//
// History
//
// 11/16/1996 JosephJ Created
//
//
#include "tsppch.h"
#include "tspcomm.h"
//#include <umdmmini.h>
#include... | 30.29955 | 112 | 0.514763 | npocmaka |
5817d21a902758a2d814667fff36a5afe49922cc | 1,298 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 3 (Operator Overloading)/complex(17).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 3 (Operator Overloading)/complex(17).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 3 (Operator Overloading)/complex(17).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include "complex.h"
Complex::Complex (float r, float i){
real_ = r;
imaginary_ = i;
}
Complex Complex::operator= (const Complex& rhs){
real_ = rhs.real_;
imaginary_ = rhs.imaginary_;
return *this;
}
Complex Complex::operator+ (const Complex& rhs) const{
Complex result = *this;
result.real_ +... | 27.617021 | 118 | 0.600154 | diptu |
58184149af52448b444bc84e266085bfc407fbcd | 7,749 | cc | C++ | chrome/plugin/command_buffer_stub.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/plugin/command_buffer_stub.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/plugin/command_buffer_stub.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2009 The Chromium 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 "base/callback.h"
#include "base/scoped_open_process.h"
#include "base/shared_memory.h"
#include "chrome/common/gpu_messages.h"
#include "chr... | 31.628571 | 79 | 0.705123 | Gitman1989 |
58189ec61b157d53ce90fb63d0476546bac6f851 | 7,728 | cpp | C++ | src/framework/kmdf/src/dma/base/fxcommonbufferapi.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 994 | 2015-03-18T21:37:07.000Z | 2019-04-26T04:04:14.000Z | src/framework/kmdf/src/dma/base/fxcommonbufferapi.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 13 | 2019-06-13T15:58:03.000Z | 2022-02-18T22:53:35.000Z | src/framework/kmdf/src/dma/base/fxcommonbufferapi.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 350 | 2015-03-19T04:29:46.000Z | 2019-05-05T23:26:50.000Z | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxCommonBufferAPI.cpp
Abstract:
Base for WDF CommonBuffer APIs
Environment:
Kernel mode only.
Notes:
Revision History:
--*/
#include "FxDmaPCH.hpp"
extern "C" {
#include "FxCommonBufferAPI.tmh"
}
//
// Extern "C" the entire file
//
extern "... | 25.421053 | 79 | 0.607013 | IT-Enthusiast-Nepal |
5819329cbc183c156d879117a551fa279dfba621 | 6,770 | cpp | C++ | ModEPP.cpp | hiqsol/reclient | 02c2f0c21a4378a5dbcc058f468d98c34e1d1190 | [
"BSD-3-Clause"
] | 2 | 2018-11-14T11:18:49.000Z | 2018-11-17T05:13:52.000Z | ModEPP.cpp | hiqsol/reclient | 02c2f0c21a4378a5dbcc058f468d98c34e1d1190 | [
"BSD-3-Clause"
] | null | null | null | ModEPP.cpp | hiqsol/reclient | 02c2f0c21a4378a5dbcc058f468d98c34e1d1190 | [
"BSD-3-Clause"
] | null | null | null | // (c) Andrii Vasyliev
// ModEPP
#include "reclient/ModEPP.h"
namespace re {
Hash<EPP> ModEPP::sessions;
data_type ModEPP::init (data_cref a) {
sessions.set(a.getLine("session",0),EPP(a.getLine("host"),a.getIntN("port"),a.getLine("certificate"),a.getLine("cacertfile"),a.getLine("cacertdir")));
if (a.has("serial")... | 83.580247 | 151 | 0.742984 | hiqsol |
581964349ff52128d383dc60f9b26897ee810c0d | 1,024 | cc | C++ | simulation/functional-sim/libss-vpi/lib.src/sim_main.cc | anycore/anycore-pisa | b4dcd040d2850fb19adb1502c3c03bf73ca06c35 | [
"BSD-3-Clause"
] | null | null | null | simulation/functional-sim/libss-vpi/lib.src/sim_main.cc | anycore/anycore-pisa | b4dcd040d2850fb19adb1502c3c03bf73ca06c35 | [
"BSD-3-Clause"
] | null | null | null | simulation/functional-sim/libss-vpi/lib.src/sim_main.cc | anycore/anycore-pisa | b4dcd040d2850fb19adb1502c3c03bf73ca06c35 | [
"BSD-3-Clause"
] | 3 | 2017-10-14T00:51:39.000Z | 2021-03-25T16:37:11.000Z | #include <stdio.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include "misc.h"
#include "mt_trace_consume.h"
#include "Thread.h"
#include "global_vars.h"
/////////////////////////////////////////////////////////////////////
void
sim_config(FILE *stream)
{
}
/* exit when this becomes non-zero */
int s... | 19.692308 | 69 | 0.482422 | anycore |
581e64a954f61cd2d256de021e2d54fa10cdce6a | 8,587 | cpp | C++ | lib/utils/visFileRaw.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 19 | 2018-12-14T00:51:52.000Z | 2022-02-20T02:43:50.000Z | lib/utils/visFileRaw.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 487 | 2018-12-13T00:59:53.000Z | 2022-02-07T16:12:56.000Z | lib/utils/visFileRaw.cpp | eschnett/kotekan | 81918288147435cef8ad52db05da0988c999a7dd | [
"MIT"
] | 5 | 2019-05-09T19:52:19.000Z | 2021-03-27T20:13:21.000Z |
#include "visFileRaw.hpp"
#include "Hash.hpp" // for Hash
#include "datasetManager.hpp" // for datasetManager, dset_id_t
#include "datasetState.hpp" // for stackState, eigenvalueState, freqState, gatingState, input...
#include "visBuffer.hpp" // for VisFrameView, VisMetadata
#include "fmt.hpp" // f... | 35.337449 | 100 | 0.656807 | eschnett |
5820c4b6a41bf6c38993707a847e126c126b6f12 | 12,374 | cc | C++ | src/runtime/runtime-typedarray.cc | lzxb/v8 | cb9e7af4e5238ac7b1a6c226f229a8ed62a0ea82 | [
"BSD-3-Clause"
] | 38 | 2015-01-31T18:38:28.000Z | 2019-06-16T08:34:38.000Z | src/runtime/runtime-typedarray.cc | lzxb/v8 | cb9e7af4e5238ac7b1a6c226f229a8ed62a0ea82 | [
"BSD-3-Clause"
] | 2 | 2016-02-20T14:54:47.000Z | 2018-11-28T15:48:38.000Z | src/runtime/runtime-typedarray.cc | bnoordhuis/v8.rs | 2a20ed0f54e3e49ce1b4715ac98b532cb133eea4 | [
"ISC"
] | 7 | 2015-02-04T06:50:55.000Z | 2019-12-05T19:51:23.000Z | // Copyright 2014 the V8 project 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 "src/runtime/runtime-utils.h"
#include "src/arguments.h"
#include "src/elements.h"
#include "src/factory.h"
#include "src/messages.h"
#include... | 34.18232 | 80 | 0.684904 | lzxb |
5820d8e4965b3d69fdaaefc52bdd3cee099f274d | 7,456 | cpp | C++ | printscan/faxsrv/admin/mmc/dlgnewgroup.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | printscan/faxsrv/admin/mmc/dlgnewgroup.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | printscan/faxsrv/admin/mmc/dlgnewgroup.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /////////////////////////////////////////////////////////////////////////////
// FILE : DlgNewGroup.cpp //
// //
// DESCRIPTION : The CDlgNewFaxOutboundGroup class implements the //
// ... | 25.104377 | 100 | 0.494769 | npocmaka |
58227999e366b68b268e91ee02a7abb3ae4b2416 | 1,303 | cc | C++ | epi/minimum_distance_3_sorted_arrays.cc | Vasniktel/interview-problems | ab901397194c81debe8c964fca097287466c9c27 | [
"MIT"
] | null | null | null | epi/minimum_distance_3_sorted_arrays.cc | Vasniktel/interview-problems | ab901397194c81debe8c964fca097287466c9c27 | [
"MIT"
] | null | null | null | epi/minimum_distance_3_sorted_arrays.cc | Vasniktel/interview-problems | ab901397194c81debe8c964fca097287466c9c27 | [
"MIT"
] | null | null | null | #include <vector>
#include "test_framework/generic_test.h"
using std::vector;
int FindClosestElementsInSortedArrays(
const vector<vector<int>>& sorted_arrays) {
assert(!sorted_arrays.empty());
auto comp = [&sorted_arrays](const auto& a, const auto& b) {
return *a.first < *b.first;
};
std::multiset<st... | 29.613636 | 110 | 0.637759 | Vasniktel |
58230841c6c441c46cc904126fd3e7ffe5b9ad4d | 5,237 | hpp | C++ | contrib/lemur/include/lemur/Exception.hpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | 2 | 2020-02-16T07:46:47.000Z | 2020-11-23T06:50:19.000Z | contrib/lemur/include/lemur/Exception.hpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | null | null | null | contrib/lemur/include/lemur/Exception.hpp | whuang022nccu/IndriLab | 24d13dca14c7c447a4acedb45d7d1ef83551f6ac | [
"Apache-2.0"
] | null | null | null | /*==========================================================================
* Copyright (c) 2001 Carnegie Mellon University. All Rights Reserved.
*
* Use of the Lemur Toolkit for Language Modeling and Information Retrieval
* is subject to the terms of the software license set forth in the LICENSE
* file included... | 37.676259 | 123 | 0.636051 | whuang022nccu |
5823aa62b92115ca96ff4014c9c5b9f0e6d9c619 | 973 | cpp | C++ | Uva-11677 - Alarm Clock.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | 1 | 2020-11-02T22:18:22.000Z | 2020-11-02T22:18:22.000Z | Uva-11677 - Alarm Clock.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | Uva-11677 - Alarm Clock.cpp | Samim-Arefin/UVa-Problem-Solution | 8556639b9e718299f4a52920034dfa0264e06f8e | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int H1, M1, H2, M2;
while (cin >> H1 >> M1 >> H2 >> M2)
{
if (H1 == 0 && H2 == 0 && M1 == 0 && M2 == 0)
{
break;
}
else if (H1 > H2)
{
if (M1 > M2)
{
int temp = (60 + M2 - M1) + (60 * (24 + H2 - H1 - 1));
cout << temp << '\n';
}
... | 18.358491 | 58 | 0.362795 | Samim-Arefin |
58249e05c54f8356790cf7cc4c83efd01528233c | 1,830 | cpp | C++ | aws-cpp-sdk-frauddetector/source/model/ListEventPredictionsRequest.cpp | truthiswill/aws-sdk-cpp | 6e854b6a8bc7945f150c3a11551196bda341962a | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-frauddetector/source/model/ListEventPredictionsRequest.cpp | truthiswill/aws-sdk-cpp | 6e854b6a8bc7945f150c3a11551196bda341962a | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-frauddetector/source/model/ListEventPredictionsRequest.cpp | truthiswill/aws-sdk-cpp | 6e854b6a8bc7945f150c3a11551196bda341962a | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/frauddetector/model/ListEventPredictionsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::FraudDetector::Model;
using namespace Aws::Ut... | 21.034483 | 111 | 0.751913 | truthiswill |
5824b9f76541e35107a905386262bfc985a1aac8 | 222 | cpp | C++ | src/DesktopCore/System/Services/TimerKillerService.cpp | lurume84/blink-desktop | d6d01f8dc461edd22192a521fbd49669bfa8f684 | [
"MIT"
] | 75 | 2019-03-08T14:15:49.000Z | 2022-01-05T17:30:43.000Z | src/DesktopCore/System/Services/TimerKillerService.cpp | lurume84/blink-desktop | d6d01f8dc461edd22192a521fbd49669bfa8f684 | [
"MIT"
] | 55 | 2019-02-17T01:34:12.000Z | 2022-02-26T21:07:33.000Z | src/DesktopCore/System/Services/TimerKillerService.cpp | lurume84/blink-desktop | d6d01f8dc461edd22192a521fbd49669bfa8f684 | [
"MIT"
] | 20 | 2019-05-21T19:02:31.000Z | 2022-03-28T07:29:28.000Z | #include "TimerKillerService.h"
namespace desktop { namespace core { namespace service {
void TimerKillerService::kill()
{
std::unique_lock<std::mutex> lock(m_mutex);
m_terminate = true;
m_cv.notify_all();
}
}}} | 20.181818 | 56 | 0.716216 | lurume84 |
5826c19e29f2924c6e3478834a6d68c2073aa17e | 859 | cpp | C++ | LeetCode/NonDecreasingArray.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/NonDecreasingArray.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | LeetCode/NonDecreasingArray.cpp | SelvorWhim/competitive | b9daaf21920d6f7669dc0c525e903949f4e33b62 | [
"Unlicense"
] | null | null | null | class Solution {
public:
bool checkPossibility(vector<int>& nums) {
bool found_violation = false;
for (int i = 1; i < nums.size(); i++) {
if (nums[i] < nums[i-1]) {
if (found_violation) {
// 2nd case of decreasing, can't be fixed by changing one elemen... | 37.347826 | 113 | 0.447031 | SelvorWhim |
582754ef6f9eb36b59a3570653868aa0e5308799 | 4,018 | cpp | C++ | routing/routing_quality/utils.cpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | null | null | null | routing/routing_quality/utils.cpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | 1 | 2019-05-14T15:26:55.000Z | 2019-05-16T11:00:33.000Z | routing/routing_quality/utils.cpp | vmihaylenko/omim | 00087f340e723fc611cbc82e0ae898b9053b620a | [
"Apache-2.0"
] | null | null | null | #include "routing/routing_quality/utils.hpp"
#include "routing_common/num_mwm_id.hpp"
#include "routing/index_router.hpp"
#include "indexer/classificator_loader.hpp"
#include "indexer/data_source.hpp"
#include "storage/country_info_getter.hpp"
#include "storage/country_parent_getter.hpp"
#include "storage/routing_h... | 29.762963 | 116 | 0.723494 | vmihaylenko |
582ac84325bc1c07a2c9f19ac7e79109a53e495a | 631 | hpp | C++ | include/game/skirmish/meta/boardmetaclass.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 3 | 2015-03-28T02:51:58.000Z | 2018-11-08T16:49:53.000Z | include/game/skirmish/meta/boardmetaclass.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | 39 | 2015-05-18T08:29:16.000Z | 2020-07-18T21:17:44.000Z | include/game/skirmish/meta/boardmetaclass.hpp | namelessvoid/qrwar | bbc4036cd3bab6b0edcaccbc95286379ef51f12b | [
"MIT"
] | null | null | null | #ifndef QRW_BOARDMETACLASS_HPP
#define QRW_BOARDMETACLASS_HPP
#include "meta/metaclass.hpp"
#include "meta/properties/iproperty.hpp"
#include "engine/board.hpp"
namespace qrw {
class BoardMetaClass final : public MetaClass
{
public:
BoardMetaClass(const MetaManager& metaManager);
~BoardMetaClass() override... | 21.033333 | 92 | 0.767036 | namelessvoid |
582b616e9b1b1ae42b7f74c0a6d865ca2723b72a | 412 | cpp | C++ | Lecture7/ArrayStudy/ArrayStudy/main.cpp | sgajaejung/API-Lecture | 904be7efdcc0e2eb40fbb9e4aa600b6598921392 | [
"MIT"
] | 2 | 2015-11-27T07:24:49.000Z | 2017-09-07T09:33:14.000Z | Lecture7/ArrayStudy/ArrayStudy/main.cpp | sgajaejung/API-Lecture | 904be7efdcc0e2eb40fbb9e4aa600b6598921392 | [
"MIT"
] | null | null | null | Lecture7/ArrayStudy/ArrayStudy/main.cpp | sgajaejung/API-Lecture | 904be7efdcc0e2eb40fbb9e4aa600b6598921392 | [
"MIT"
] | 1 | 2021-02-09T15:49:37.000Z | 2021-02-09T15:49:37.000Z |
#include <iostream>
using namespace std;
void main()
{
int ar1[10][10] = {
{1, 2, 3},
{4, 5, 6},
{7, 8, 9}
};
int **ar2;
ar2 = new int*[ 10];
for (int i=0; i < 10; ++i)
{
ar2[ i] = new int[ 10];
}
ar2[ 0][ 0] = 1;
ar2[ 0][ 1] = 2;
cout << ar1[ 0][ 0] << endl;
cout << ar2[ 0][ 0] << endl;
cou... | 12.875 | 35 | 0.444175 | sgajaejung |
582bfcd91b38d45c90dec277ec1fa53a01f3365f | 824 | cpp | C++ | C++/tests/problems/0150_search_suggestions_system_test.cpp | oxone-999/algorithms | 52dc527111e7422923a0e25684d8f4837e81a09b | [
"MIT"
] | 6 | 2019-03-20T22:23:26.000Z | 2020-08-28T03:10:27.000Z | C++/tests/problems/0150_search_suggestions_system_test.cpp | oxone-999/algorithms | 52dc527111e7422923a0e25684d8f4837e81a09b | [
"MIT"
] | 15 | 2019-10-13T20:53:53.000Z | 2022-03-31T02:01:35.000Z | C++/tests/problems/0150_search_suggestions_system_test.cpp | oxone-999/algorithms | 52dc527111e7422923a0e25684d8f4837e81a09b | [
"MIT"
] | 3 | 2019-03-11T10:57:46.000Z | 2020-02-26T21:13:21.000Z | #include "../../problems/0150_search_suggestions_system.hpp"
#include <bits/stdc++.h>
#include "../../frameworks/catch.hpp"
#include "../../frameworks/asserts.hpp"
using namespace std;
TEST_CASE( "Search Suggestions System" ) {
Solution sol;
vector<string> products1 = {"mobile","mouse","moneypot","monito... | 43.368421 | 166 | 0.669903 | oxone-999 |
58312b795a02f436a5b1ebe26a7f9d64d2b6db4a | 256 | cpp | C++ | Notes_Week8/Exception/stdException.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | 1 | 2019-01-06T22:36:01.000Z | 2019-01-06T22:36:01.000Z | Notes_Week8/Exception/stdException.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | Notes_Week8/Exception/stdException.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdexcept>
#include <vector>
int main() {
std::vector<int> v;
v.push_back(10);
try {
std::cout << v.at(15) << std::endl;
}
catch(std::out_of_range e) {
std::cout << e.what() << std::endl;
}
return 0;
} | 17.066667 | 41 | 0.566406 | WeiChienHsu |
5831d734eb7eefb0d9bf00be7c1cad236df1df65 | 543 | hh | C++ | wcd/include/world.hh | lagoproject/sims | bc34510b803136c770ecd9c789dc7cfade2ccbbd | [
"BSD-3-Clause"
] | null | null | null | wcd/include/world.hh | lagoproject/sims | bc34510b803136c770ecd9c789dc7cfade2ccbbd | [
"BSD-3-Clause"
] | null | null | null | wcd/include/world.hh | lagoproject/sims | bc34510b803136c770ecd9c789dc7cfade2ccbbd | [
"BSD-3-Clause"
] | null | null | null | #ifndef world_h
#define world_h 1
// Geant4 Libraries
//
#include "G4Material.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4Box.hh"
// Local Libraries
//
class world
{
public:
world();
virtual ~world();
void DefineMaterials();
void buildDetector(G4bool* overLaps);
... | 15.083333 | 41 | 0.697974 | lagoproject |
58329699f0f654ba61c1a53bb753f8ea5a77d38e | 651 | cpp | C++ | s01-installation-openframeworks-basics/01-basics/src/main.cpp | pkmital/MTIID-MTEC-616-01-2017 | c5f7f24c531cda3a48dbd974f46c08fa504dd06d | [
"Apache-2.0"
] | 13 | 2017-01-16T07:16:51.000Z | 2019-07-19T04:11:36.000Z | s01-installation-openframeworks-basics/01-basics/src/main.cpp | pkmital/MTIID-MTEC-616-01-2017 | c5f7f24c531cda3a48dbd974f46c08fa504dd06d | [
"Apache-2.0"
] | null | null | null | s01-installation-openframeworks-basics/01-basics/src/main.cpp | pkmital/MTIID-MTEC-616-01-2017 | c5f7f24c531cda3a48dbd974f46c08fa504dd06d | [
"Apache-2.0"
] | 4 | 2017-05-29T15:43:45.000Z | 2019-07-19T04:11:42.000Z | #include "ofMain.h"
class ofApp : public ofBaseApp{
public:
void setup() {
cam.setup(width, height);
ofSetWindowShape(width, height);
ofSetFrameRate(60);
}
void update() {
cam.update();
}
void draw() {
cam.draw(0, 0, ofGetWidth(), ofGetHeight());
... | 16.275 | 52 | 0.519201 | pkmital |
5837fb7499389925fc6205caa772c3f38acc3d6a | 8,762 | cpp | C++ | sycl/test/basic_tests/buffer/subbuffer_interop.cpp | jcranmer-intel/llvm-sycl | 45dbbd128e4793681ed9d40a3c018f44c17449ec | [
"Apache-2.0"
] | null | null | null | sycl/test/basic_tests/buffer/subbuffer_interop.cpp | jcranmer-intel/llvm-sycl | 45dbbd128e4793681ed9d40a3c018f44c17449ec | [
"Apache-2.0"
] | null | null | null | sycl/test/basic_tests/buffer/subbuffer_interop.cpp | jcranmer-intel/llvm-sycl | 45dbbd128e4793681ed9d40a3c018f44c17449ec | [
"Apache-2.0"
] | null | null | null | // RUN: %clangxx -fsycl %s -o %t.out -lOpenCL
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
//==------------ subbuffer_interop.cpp - SYCL buffer basic test ------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
/... | 30.74386 | 85 | 0.548505 | jcranmer-intel |
58382202eab09296fbd2a8c829b3ee6d9344e0c4 | 2,533 | cpp | C++ | src/types/Range.cpp | LumpBloom7/cligCore | ddd26787128fbed1724dba66e90673ffa8b5ed2e | [
"MIT"
] | null | null | null | src/types/Range.cpp | LumpBloom7/cligCore | ddd26787128fbed1724dba66e90673ffa8b5ed2e | [
"MIT"
] | 7 | 2018-04-03T07:48:22.000Z | 2018-07-19T12:34:19.000Z | src/types/Range.cpp | LumpBloom7/cligCore | ddd26787128fbed1724dba66e90673ffa8b5ed2e | [
"MIT"
] | 1 | 2018-01-07T05:30:11.000Z | 2018-01-07T05:30:11.000Z | #include "Types/Range.h"
namespace cligCore::types {
Range::Range() : _lower(0), _upper(10), _current(0), _isSelectable(false) {}
Range::Range(int lowerBounds, int upperBounds, bool isSelectable) {
// Differentiate the smaller value from the bigger value to ease processing and to avoid any potential bugs.
... | 37.80597 | 143 | 0.591788 | LumpBloom7 |
583887c908a56ad9fdec018f50870942a6bd7b3a | 827 | hh | C++ | redemption/src/capture/ocr/extract_data.hh | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/capture/ocr/extract_data.hh | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/capture/ocr/extract_data.hh | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | #pragma once
#include "fonts.hpp"
namespace ocr {
// Some parameters
// *Binarization
// \{
static const int fuzzy = 45; // Hyper-connectivity, alpha flat zone (for color gradient)
// \}
// *Reconstruction
// \{
static const unsigned bbox_padding = 3u * 2u; // Padding between text and... | 37.590909 | 148 | 0.67231 | DianaAssistant |
583a15db9b1c4698165c2c83484aba9a35a07469 | 8,479 | cpp | C++ | src/app/tests/suites/commands/interaction_model/InteractionModel.cpp | lcj446068124/connectedhomeip | 145d7bf80a4c433e45cbf5da4d3124b27e183764 | [
"Apache-2.0"
] | 2 | 2021-12-29T21:46:00.000Z | 2021-12-31T16:12:12.000Z | src/app/tests/suites/commands/interaction_model/InteractionModel.cpp | lcj446068124/connectedhomeip | 145d7bf80a4c433e45cbf5da4d3124b27e183764 | [
"Apache-2.0"
] | 2 | 2022-02-21T13:52:24.000Z | 2022-03-21T10:38:57.000Z | src/app/tests/suites/commands/interaction_model/InteractionModel.cpp | lcj446068124/connectedhomeip | 145d7bf80a4c433e45cbf5da4d3124b27e183764 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2022 Project CHIP Authors
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 34.46748 | 127 | 0.693478 | lcj446068124 |
583a6ed68848eabcc419798f3c580e6c187de8d6 | 2,515 | cpp | C++ | src/bitsyc.cpp | SimplyDanny/bitsy-llvm | 125e404388ef65847eac8cb533c5321a2289bb85 | [
"MIT"
] | 4 | 2021-01-07T10:29:49.000Z | 2021-07-17T22:10:54.000Z | src/bitsyc.cpp | SimplyDanny/bitsy-llvm | 125e404388ef65847eac8cb533c5321a2289bb85 | [
"MIT"
] | null | null | null | src/bitsyc.cpp | SimplyDanny/bitsy-llvm | 125e404388ef65847eac8cb533c5321a2289bb85 | [
"MIT"
] | 2 | 2021-02-07T21:15:20.000Z | 2021-07-17T22:10:55.000Z | #include "ast/ASTPrinter.hpp"
#include "codegen/CodeGenerator.hpp"
#include "codegen/ModuleBuilder.hpp"
#include "execution/ModuleProcessor.hpp"
#include "lexer/Lexer.hpp"
#include "parser/Parser.hpp"
#include "llvm/Support/CommandLine.h"
#include <fstream>
#include <iostream>
#include <iterator>
namespace cl = llvm... | 32.662338 | 107 | 0.612326 | SimplyDanny |
583a906cdfac1b1b4b92c46c4730ce1ef429585d | 4,849 | cxx | C++ | main/framework/source/uifactory/statusbarfactory.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/framework/source/uifactory/statusbarfactory.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/framework/source/uifactory/statusbarfactory.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 45.745283 | 152 | 0.718705 | Grosskopf |
5842b0de946b88bc341d1ff11a4285f995e5a432 | 2,860 | cpp | C++ | tests/TestProgress/TestProgress.cpp | deniskropp/llyx | 33c7dd40921563d116363bd3e0b411aaa61ca29e | [
"MIT"
] | null | null | null | tests/TestProgress/TestProgress.cpp | deniskropp/llyx | 33c7dd40921563d116363bd3e0b411aaa61ca29e | [
"MIT"
] | null | null | null | tests/TestProgress/TestProgress.cpp | deniskropp/llyx | 33c7dd40921563d116363bd3e0b411aaa61ca29e | [
"MIT"
] | null | null | null | /*
TestProgress - llyx test
*/
#include <SFML/Graphics.hpp>
#include <llyx/BaseView.hpp>
#include <llyx/ButtonView.hpp>
#include <llyx/FPSView.hpp>
#include <llyx/ProgressView.hpp>
#include <llyx/RootView.hpp>
#include <llyx/TextView.hpp>
class TestView : public llyx::RootView
{
private:
lli::... | 19.861111 | 90 | 0.61014 | deniskropp |
5843f6db4edc12739e39e69d457870313b4b64f7 | 287 | cpp | C++ | homomorphic_evaluation/ntl-11.3.2/src/CheckBUILTIN_CLZL.cpp | dklee0501/PLDI_20_242_artifact_publication | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 160 | 2016-05-11T09:45:56.000Z | 2022-03-06T09:32:19.000Z | homomorphic_evaluation/ntl-11.3.2/src/CheckBUILTIN_CLZL.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 57 | 2016-12-26T07:02:12.000Z | 2022-03-06T16:34:31.000Z | homomorphic_evaluation/ntl-11.3.2/src/CheckBUILTIN_CLZL.cpp | dklee0501/Lobster | f2b73df9165c76e8b521d8ebd639d68321e3862b | [
"MIT"
] | 67 | 2016-10-10T17:56:22.000Z | 2022-03-15T22:56:39.000Z | #include <NTL/mach_desc.h>
#include <cstdlib>
using namespace std;
long CountLeadingZeros(unsigned long x)
{
return __builtin_clzl(x);
}
int main()
{
unsigned long x = atoi("3");
if (CountLeadingZeros(x) == NTL_BITS_PER_LONG-2)
return 0;
else
return -1;
}
| 12.478261 | 51 | 0.651568 | dklee0501 |
58446d31191d8353710def53f5b5f6c48887e945 | 2,040 | cpp | C++ | SDL/Game13/Actor.cpp | blAs1N/C-programming | 3ab83a00dab6e3d9cfe97c514115308ad2333387 | [
"MIT"
] | 4 | 2018-06-17T11:47:16.000Z | 2018-10-01T14:01:55.000Z | SDL/Game13/Actor.cpp | blAs1N/TIL | 3ab83a00dab6e3d9cfe97c514115308ad2333387 | [
"MIT"
] | null | null | null | SDL/Game13/Actor.cpp | blAs1N/TIL | 3ab83a00dab6e3d9cfe97c514115308ad2333387 | [
"MIT"
] | null | null | null | #include "Actor.h"
#include "Game.h"
#include "Component.h"
#include <algorithm>
Actor::Actor(Game* inGame)
: state(State::EActive),
components(),
game(inGame),
position(Vector3::Zero),
rotation(Quaternion::Identity),
scale(1.0f),
worldTransform(),
recomputeWorldTransform(true) {
game->AddActor(this);
}
Act... | 23.181818 | 72 | 0.710294 | blAs1N |
5845aca70e3cad7e1fa7fd8904fdd9bf75e583b6 | 166 | cpp | C++ | 2A. C++ Advanced (STL)/Attic/str-namespace.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | 2A. C++ Advanced (STL)/Attic/str-namespace.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | 2A. C++ Advanced (STL)/Attic/str-namespace.cpp | alemesa1991/School-Projects | ed9170fa4cadfe18c6d9850a17077686ca16d1a1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
int main(int argc, char**argv)
{
const char *s = "asdfghjkl";
std::cout << s << " size is " << strlen(s) << "\n";
}
| 15.090909 | 55 | 0.554217 | alemesa1991 |
5846d4044eaf5a2e4149ff144927bbf99a979009 | 15,060 | hpp | C++ | core123/include/core123/counter_based_engine.hpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 22 | 2019-04-10T18:05:35.000Z | 2021-12-30T12:26:39.000Z | core123/include/core123/counter_based_engine.hpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 13 | 2019-04-09T00:19:29.000Z | 2021-11-04T15:57:13.000Z | core123/include/core123/counter_based_engine.hpp | fennm/fs123 | 559b97659352620ce16030824f9acd26f590f4e1 | [
"BSD-3-Clause"
] | 4 | 2019-04-07T16:33:44.000Z | 2020-07-02T02:58:51.000Z | // counter_based_engine: An adapter that turns a 'psuedo random
// function' (e.g., core123::threefry or core123::philox) into a bona
// fide standard C++ "Random Number Engine", satisfying the
// requirements in [rand.req.eng] for a result_type, constructors,
// seed methods, discard, equality and inequality operators... | 39.015544 | 132 | 0.626494 | fennm |
584701c929bbebf857c2bae811ac9e158ae665d2 | 8,120 | cpp | C++ | src/engine/kyotocabinet_engine.cpp | direktspeed/ardb | 78e9480f6b385ff6b63f5c9c568a5716bc13386d | [
"BSD-3-Clause"
] | 1 | 2019-08-04T02:39:56.000Z | 2019-08-04T02:39:56.000Z | src/engine/kyotocabinet_engine.cpp | direktspeed/ardb | 78e9480f6b385ff6b63f5c9c568a5716bc13386d | [
"BSD-3-Clause"
] | null | null | null | src/engine/kyotocabinet_engine.cpp | direktspeed/ardb | 78e9480f6b385ff6b63f5c9c568a5716bc13386d | [
"BSD-3-Clause"
] | null | null | null | /*
*Copyright (c) 2013-2013, yinqiwen <yinqiwen@gmail.com>
*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... | 28.896797 | 106 | 0.557266 | direktspeed |
58482df3ccc4569c7e1e37a2ca2d070e0aec3f9c | 237 | cpp | C++ | src/eepp/window/cclipboard.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/window/cclipboard.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | src/eepp/window/cclipboard.cpp | dogtwelve/eepp | dd672ff0e108ae1e08449ca918dc144018fb4ba4 | [
"MIT"
] | null | null | null | #include <eepp/window/cclipboard.hpp>
namespace EE { namespace Window {
cClipboard::cClipboard( cWindow * window ) :
mWindow( window )
{}
cClipboard::~cClipboard() {}
cWindow * cClipboard::GetWindow() const {
return mWindow;
}
}}
| 14.8125 | 44 | 0.700422 | dogtwelve |
584d8245c86266445eb507f78bf1b2a3379d40e9 | 215 | cpp | C++ | 2/sum_array.cpp | cwaffles/CMPT225Labs | c4c6c2ff90e99ec3a5938a63f48c41dab4a8190b | [
"MIT"
] | 1 | 2016-06-04T07:39:21.000Z | 2016-06-04T07:39:21.000Z | 2/sum_array.cpp | cwaffles/CMPT225Labs | c4c6c2ff90e99ec3a5938a63f48c41dab4a8190b | [
"MIT"
] | null | null | null | 2/sum_array.cpp | cwaffles/CMPT225Labs | c4c6c2ff90e99ec3a5938a63f48c41dab4a8190b | [
"MIT"
] | null | null | null | //
// Created by eric on 24/05/16.
//
#include "sum_array.h"
int sumArray(int arr[], int arrSize)
{
int runningTotal = 0;
for(int i = 0; i < arrSize; i++)
{
runningTotal += arr[i];
}
return runningTotal;
} | 13.4375 | 36 | 0.613953 | cwaffles |
584dd318e960a40948b1b69fde2d4208ae1cb8e9 | 278 | cpp | C++ | Pacman_ASCII/src/Pacman.cpp | SebGrenier/Pacman_ASCII | 6eb6fea809d1bd97d41dee973149b8656fc01846 | [
"MIT"
] | null | null | null | Pacman_ASCII/src/Pacman.cpp | SebGrenier/Pacman_ASCII | 6eb6fea809d1bd97d41dee973149b8656fc01846 | [
"MIT"
] | null | null | null | Pacman_ASCII/src/Pacman.cpp | SebGrenier/Pacman_ASCII | 6eb6fea809d1bd97d41dee973149b8656fc01846 | [
"MIT"
] | null | null | null | #include "Pacman.h"
#include "ConsoleUtils.h"
#include <iostream>
using namespace std;
Pacman::Pacman(char chr)
: _character(chr)
{ }
Pacman::~Pacman(void)
{}
void Pacman::Draw(void) const
{
ConsoleUtils::SetCursorPosition(_position.x, _position.y);
cout << _character;
} | 15.444444 | 59 | 0.719424 | SebGrenier |
584fc3905dd2668afa845d2413808a746a79175f | 1,183 | cpp | C++ | Framework/Sources/o2/Utils/Editor/EditorScope.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 181 | 2015-12-09T08:53:36.000Z | 2022-03-26T20:48:39.000Z | Framework/Sources/o2/Utils/Editor/EditorScope.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 29 | 2016-04-22T08:24:04.000Z | 2022-03-06T07:06:28.000Z | Framework/Sources/o2/Utils/Editor/EditorScope.cpp | zenkovich/o2 | cdbf10271f1bf0f3198c8005b13b66e6ca13a9db | [
"MIT"
] | 13 | 2018-04-24T17:12:04.000Z | 2021-11-12T23:49:53.000Z | #include "o2/stdafx.h"
#include "EditorScope.h"
#include "o2/Events/EventSystem.h"
#include "o2/Utils/Debug/Assert.h"
namespace o2
{
void EditorScope::Enter(int count /*= 1*/)
{
if (count > 0)
{
Actor::SetDefaultCreationMode(ActorCreateMode::NotInScene);
mDepth += count;
}
}
void EditorScope::Exit(i... | 17.144928 | 67 | 0.688926 | zenkovich |
58574d6340b50c1ba19eb70b6efdb91541ddc805 | 11,669 | cpp | C++ | tests/cuda4.1sdk/tests/simpleTexture3D/simpleTexture3D.cpp | florianjacob/gpuocelot | fa63920ee7c5f9a86e264cd8acd4264657cbd190 | [
"BSD-3-Clause"
] | 221 | 2015-03-29T02:05:49.000Z | 2022-03-25T01:45:36.000Z | tests/cuda4.1sdk/tests/simpleTexture3D/simpleTexture3D.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 106 | 2015-03-29T01:28:42.000Z | 2022-02-15T19:38:23.000Z | tests/cuda4.1sdk/tests/simpleTexture3D/simpleTexture3D.cpp | mprevot/gpuocelot | d9277ef05a110e941aef77031382d0260ff115ef | [
"BSD-3-Clause"
] | 83 | 2015-07-10T23:09:57.000Z | 2022-03-25T03:01:00.000Z | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... | 27.200466 | 150 | 0.649327 | florianjacob |
5858ba9538f6b2012a8c637ee0f63e3f56f64114 | 15,197 | cpp | C++ | Proj_Android/app/src/main/cpp/FPolyPath.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | 3 | 2019-10-10T19:25:42.000Z | 2019-12-17T10:51:23.000Z | Framework/[C++ Core]/FPolyPath.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | null | null | null | Framework/[C++ Core]/FPolyPath.cpp | nraptis/Metal_OpenGL_MobileGameEngine | cc36682676a9797df8b3a7ee235b99be3ae2f666 | [
"MIT"
] | 1 | 2021-11-16T15:29:40.000Z | 2021-11-16T15:29:40.000Z | //
// FPolyPath.cpp
// DigMMMac
//
// Created by Nicholas Raptis on 3/30/15.
// Copyright (c) 2015 Nick Raptis. All rights reserved.
//
#include "FPolyPath.hpp"
#include "FApp.hpp"
#include "core_includes.h"
FPolyPathInterp::FPolyPathInterp() {
mValid = false;
mIndexStart = -1;
mIndexEnd = -1;
mP... | 26.02226 | 90 | 0.447852 | nraptis |
5858c55105c62a1eb7e1866d773e0fce05d55ee4 | 5,159 | hpp | C++ | includes/netflex/http/request.hpp | deguangchow/NetFlex | 8fbdee6601dcbaa5be12e467bee82f1f648cd63b | [
"MIT"
] | null | null | null | includes/netflex/http/request.hpp | deguangchow/NetFlex | 8fbdee6601dcbaa5be12e467bee82f1f648cd63b | [
"MIT"
] | null | null | null | includes/netflex/http/request.hpp | deguangchow/NetFlex | 8fbdee6601dcbaa5be12e467bee82f1f648cd63b | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2015-2017 Simon Ninon <simon.ninon@gmail.com>
//
// 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 limitat... | 21.953191 | 80 | 0.65284 | deguangchow |
5859747eab85343f2a3212dbf5189824caffe18e | 7,513 | cpp | C++ | memory/MemoryManager.cpp | Savioor/NotPython | 512d5feba6d6efb960d38adc98d2bd5ec7d3db3b | [
"Apache-2.0"
] | 2 | 2019-11-17T22:38:23.000Z | 2020-05-28T09:28:26.000Z | memory/MemoryManager.cpp | Savioor/NotPython | 512d5feba6d6efb960d38adc98d2bd5ec7d3db3b | [
"Apache-2.0"
] | null | null | null | memory/MemoryManager.cpp | Savioor/NotPython | 512d5feba6d6efb960d38adc98d2bd5ec7d3db3b | [
"Apache-2.0"
] | null | null | null | //
// Created by alexey on 05/05/2020.
//
#include <iostream>
#include "MemoryManager.h"
#include "../debug.h"
#include "builtins/primitive/PyInteger.h"
#include "builtins/primitive/PyBool.h"
#include "builtins/PyVariable.h"
#include "builtins/PyList.h"
#include "builtins/functions/internalFunctions/Print.h"
#include ... | 27.221014 | 120 | 0.635299 | Savioor |
585b52ed829ef263835619bf4cb446b6367492b9 | 1,784 | cpp | C++ | oneflow/core/intrusive/object_pool_test.cpp | L-Net-1992/oneflow | 4dc08d65caea36fdd137841ac95551218897e730 | [
"Apache-2.0"
] | 1 | 2022-03-14T11:17:56.000Z | 2022-03-14T11:17:56.000Z | oneflow/core/intrusive/object_pool_test.cpp | L-Net-1992/oneflow | 4dc08d65caea36fdd137841ac95551218897e730 | [
"Apache-2.0"
] | null | null | null | oneflow/core/intrusive/object_pool_test.cpp | L-Net-1992/oneflow | 4dc08d65caea36fdd137841ac95551218897e730 | [
"Apache-2.0"
] | 1 | 2021-12-15T02:14:49.000Z | 2021-12-15T02:14:49.000Z | /*
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | 29.733333 | 100 | 0.766816 | L-Net-1992 |
585c0172f41d5ac958063fd49843ba3aa5457fca | 19,964 | cpp | C++ | src/aspell-60/modules/filter/sgml.cpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 31 | 2016-11-08T05:13:02.000Z | 2022-02-23T19:13:01.000Z | src/aspell-60/modules/filter/sgml.cpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 6 | 2017-01-17T20:21:55.000Z | 2021-09-02T07:36:18.000Z | src/aspell-60/modules/filter/sgml.cpp | reydajp/build-spell | a88ffbb9ffedae3f20933b187c95851e47e0e4c3 | [
"MIT"
] | 5 | 2017-07-11T11:10:55.000Z | 2022-02-14T01:55:16.000Z | // This file is part of The New Aspell
// Copyright (C) 2004 by Tom Snyder
// Copyright (C) 2001-2004 by Kevin Atkinson under the GNU LGPL license
// version 2.0 or 2.1. You should have received a copy of the LGPL
// license along with this library if you did not you can find
// it at http://www.gnu.org/.
//
// The or... | 32.998347 | 101 | 0.586806 | reydajp |
585d27f2b0c775e3daf59590674a2556dc83baf8 | 83,348 | cpp | C++ | game/shared/cstrike15/gametypes.cpp | DannyParker0001/Kisak-Strike | 99ed85927336fe3aff2efd9b9382b2b32eb1d05d | [
"Unlicense"
] | 252 | 2020-12-16T15:34:43.000Z | 2022-03-31T23:21:37.000Z | cstrike15_src/game/shared/cstrike15/gametypes.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 23 | 2020-12-20T18:02:54.000Z | 2022-03-28T16:58:32.000Z | cstrike15_src/game/shared/cstrike15/gametypes.cpp | bahadiraraz/Counter-Strike-Global-Offensive | 9a0534100cb98ffa1cf0c32e138f0e7971e910d3 | [
"MIT"
] | 42 | 2020-12-19T04:32:33.000Z | 2022-03-30T06:00:28.000Z | //========= Copyright (c) 1996-2011, Valve Corporation, All rights reserved. ============//
//
// Purpose: Game types and modes
//
// $NoKeywords: $
//=============================================================================//
//
// NOTE: This is horrible design to have this file included in multiple projects (cl... | 31.251594 | 180 | 0.584837 | DannyParker0001 |
58614c941a10a050a810e7f34c18c37e5de685ad | 2,459 | cpp | C++ | src/Networking/ParseBaseStation.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Networking/ParseBaseStation.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null | src/Networking/ParseBaseStation.cpp | jonahbardos/PY2020 | af4f61b86ae5013e58faf4842bf20863b3de3957 | [
"Apache-2.0"
] | null | null | null |
#include "Network.h"
#include "log.h"
#include "IK.h"
#include "motor_interface.h"
#include "ParseBaseStation.h"
#include <cmath>
#include <tgmath.h>
#include "../simulator/world_interface.h"
#include "../Globals.h"
#include <iostream>
using nlohmann::json;
bool ParseDrivePacket(json &message);
bool ParseEmergencyS... | 21.017094 | 70 | 0.649858 | jonahbardos |
5862dfd3751ba0e8c46e2e25a14c00912356a8bd | 20,818 | cpp | C++ | asteria/src/library/json.cpp | usama-makhzoum/asteria | ea4c893a038e0c5bef14d4d9f6723124a0cbb30f | [
"BSD-3-Clause"
] | null | null | null | asteria/src/library/json.cpp | usama-makhzoum/asteria | ea4c893a038e0c5bef14d4d9f6723124a0cbb30f | [
"BSD-3-Clause"
] | null | null | null | asteria/src/library/json.cpp | usama-makhzoum/asteria | ea4c893a038e0c5bef14d4d9f6723124a0cbb30f | [
"BSD-3-Clause"
] | null | null | null | // This file is part of Asteria.
// Copyleft 2018 - 2021, LH_Mouse. All wrongs reserved.
#include "../precompiled.hpp"
#include "json.hpp"
#include "../runtime/argument_reader.hpp"
#include "../runtime/global_context.hpp"
#include "../compiler/token_stream.hpp"
#include "../compiler/parser_error.hpp"
#include "../comp... | 25.637931 | 101 | 0.550966 | usama-makhzoum |
5864ca14de111e2a98dc80bcb8e458ae2ecfa65b | 1,405 | cc | C++ | src/base/message_loop/timer_slack.cc | lazymartin/naiveproxy | 696e8714278e85e67e56a2eaea11f26c53116f0c | [
"BSD-3-Clause"
] | 2,219 | 2018-03-26T02:57:34.000Z | 2022-03-31T00:27:59.000Z | src/base/message_loop/timer_slack.cc | uszhen/naiveproxy | 0aa27e8bd37428f2124a891be1e5e793928cd726 | [
"BSD-3-Clause"
] | 250 | 2018-02-02T23:16:57.000Z | 2022-03-21T06:09:53.000Z | src/base/message_loop/timer_slack.cc | uszhen/naiveproxy | 0aa27e8bd37428f2124a891be1e5e793928cd726 | [
"BSD-3-Clause"
] | 473 | 2019-03-24T16:34:23.000Z | 2022-03-31T02:01:05.000Z | // Copyright 2021 The Chromium 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 "base/message_loop/timer_slack.h"
#include <atomic>
#include "base/check_op.h"
#include "base/feature_list.h"
#include "base/metrics/field_tria... | 25.089286 | 80 | 0.745907 | lazymartin |
58678121a455e51d562ddd820e632fc544f9d61c | 38,417 | cpp | C++ | sven_internal/config.cpp | revoiid/sven_internal | 99c0e8148fd8cd44100d5c7730ebb1fc71b7f368 | [
"MIT"
] | null | null | null | sven_internal/config.cpp | revoiid/sven_internal | 99c0e8148fd8cd44100d5c7730ebb1fc71b7f368 | [
"MIT"
] | null | null | null | sven_internal/config.cpp | revoiid/sven_internal | 99c0e8148fd8cd44100d5c7730ebb1fc71b7f368 | [
"MIT"
] | null | null | null | // Config
#include "config.h"
#include "../ini-parser/ini_parser.h"
#include "../features/skybox.h"
#include "../utils/styles.h"
#include "../interfaces.h"
#include <stdio.h>
#include <stdlib.h>
#include <type_traits>
//-----------------------------------------------------------------------------
// Make import/exp... | 51.635753 | 145 | 0.799516 | revoiid |
58692dbc09fcbcd91582427f34e2931ae3322c63 | 24,901 | cpp | C++ | Gem/Code/Source/RHI/MatrixAlignmentTestExampleComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 15 | 2021-07-07T02:16:06.000Z | 2022-03-22T07:39:06.000Z | Gem/Code/Source/RHI/MatrixAlignmentTestExampleComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 66 | 2021-07-07T00:01:05.000Z | 2022-03-28T06:37:41.000Z | Gem/Code/Source/RHI/MatrixAlignmentTestExampleComponent.cpp | Bindless-Chicken/o3de-atom-sampleviewer | 13b11996079675445ce4e321f53c3ac79e01702d | [
"Apache-2.0",
"MIT"
] | 13 | 2021-07-06T18:21:33.000Z | 2022-01-04T18:29:18.000Z | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <RHI/MatrixAlignmentTestExampleComponent.h>
#include <Utils/Utils.h>
#include <SampleCom... | 45.192377 | 163 | 0.627967 | Bindless-Chicken |
586bee0bdc08ad7200215c2abdf39c0f4803774a | 9,735 | cpp | C++ | src/core/SLSManager.cpp | rstular/srt-live-server | 968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c | [
"MIT"
] | 4 | 2021-12-17T07:58:48.000Z | 2022-02-04T17:35:37.000Z | src/core/SLSManager.cpp | rstular/srt-live-server | 968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c | [
"MIT"
] | null | null | null | src/core/SLSManager.cpp | rstular/srt-live-server | 968d29b7bd4d81b0b6cbe702ebf6bbc164b6a22c | [
"MIT"
] | 1 | 2021-12-15T21:56:57.000Z | 2021-12-15T21:56:57.000Z |
/**
* The MIT License (MIT)
*
* Copyright (c) 2019-2020 Edward.Wu
*
* 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
* ... | 27.116992 | 114 | 0.58942 | rstular |
586e6fa9f3536074c0781d20546a308cc5f1b608 | 31,226 | cpp | C++ | partial_digestion/src/uDGP.cpp | shuai-huang/turnpike-beltway | 20b68a48b68c2daad02346b1c076c0dce99c4431 | [
"Apache-2.0"
] | null | null | null | partial_digestion/src/uDGP.cpp | shuai-huang/turnpike-beltway | 20b68a48b68c2daad02346b1c076c0dce99c4431 | [
"Apache-2.0"
] | null | null | null | partial_digestion/src/uDGP.cpp | shuai-huang/turnpike-beltway | 20b68a48b68c2daad02346b1c076c0dce99c4431 | [
"Apache-2.0"
] | 1 | 2020-01-06T17:17:17.000Z | 2020-01-06T17:17:17.000Z | #include<chrono>
#include "uDGP.h"
uDGP::uDGP() {
M=0;
}
void uDGP::SetOutputFile(char* output_file) {
output_ite_file = output_file;
}
void uDGP::SetInitFile(char* init_file) {
smp_pos_init_file = init_file;
}
double uDGP::NormalCdf(double x_val, double mu, double sigma) {
return 0.5*(1+erf((x_val-... | 41.801874 | 247 | 0.600749 | shuai-huang |
5871ec92b26b8a28353bb7b4803321901bae76f4 | 32,269 | hpp | C++ | Sources/SolarTears/Rendering/Vulkan/VulkanFunctions.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | 4 | 2021-06-30T16:00:20.000Z | 2021-10-13T06:17:56.000Z | Sources/SolarTears/Rendering/Vulkan/VulkanFunctions.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | Sources/SolarTears/Rendering/Vulkan/VulkanFunctions.hpp | Sixshaman/SolarTears | 97d07730f876508fce8bf93c9dc90f051c230580 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
#ifdef VK_NO_PROTOTYPES
#define DECLARE_VULKAN_FUNCTION(funcName) extern PFN_##funcName funcName;
extern "C"
{
DECLARE_VULKAN_FUNCTION(vkCreateInstance)
DECLARE_VULKAN_FUNCTION(vkDestroyInstance)
DECLARE_VULKAN_FUNCTION(vkEnumeratePhysicalDevices)
DECLARE_VULKAN_FUNCTION(vkGe... | 41.745149 | 118 | 0.917165 | Sixshaman |
5873c52aa895e08e0fd04abb35c5be93a9d23f13 | 14,972 | cpp | C++ | src/d3d9/d3d9_swapchain.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 268 | 2018-04-27T14:05:01.000Z | 2022-03-24T03:55:54.000Z | src/d3d9/d3d9_swapchain.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 49 | 2018-04-29T09:39:03.000Z | 2019-09-14T12:33:44.000Z | src/d3d9/d3d9_swapchain.cpp | dports/dxup | e961838d3d0d5db02cd065b782ad890bf876ceef | [
"Zlib"
] | 28 | 2018-05-16T12:07:49.000Z | 2022-02-26T09:19:18.000Z | #include "d3d9_swapchain.h"
#include "d3d9_surface.h"
#include "d3d9_renderer.h"
#include "d3d9_interface.h"
#include <algorithm>
namespace dxup {
Direct3DSwapChain9Ex::Direct3DSwapChain9Ex(Direct3DDevice9Ex* device, D3DPRESENT_PARAMETERS* presentationParameters, IDXGISwapChain1* swapchain)
: Direct3DSwapChain9... | 35.904077 | 190 | 0.713799 | dports |
587559e8179c65421b769e95dbaec484885aff49 | 306 | cpp | C++ | cpyquickhelper/numbers/weighted_number.cpp | sdpython/cpyquickhelper | c2bdebad2201c7e10a5999a836bbf53e27b963c7 | [
"MIT"
] | 2 | 2017-10-03T20:39:13.000Z | 2019-02-06T15:24:04.000Z | cpyquickhelper/numbers/weighted_number.cpp | sdpython/cpyquickhelper | c2bdebad2201c7e10a5999a836bbf53e27b963c7 | [
"MIT"
] | 21 | 2017-09-17T11:14:04.000Z | 2021-01-01T13:24:20.000Z | cpyquickhelper/numbers/weighted_number.cpp | sdpython/cpyquickhelper | c2bdebad2201c7e10a5999a836bbf53e27b963c7 | [
"MIT"
] | null | null | null | #include "weighted_number.h"
#if !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS
#endif
const char * get_weighted_class_name(double x) { return "Double"; }
const char * get_weighted_class_name(float x) { return "Float"; }
const char * get_weighted_class_name(int x) { return "Int"; }
| 25.5 | 67 | 0.764706 | sdpython |
587669c0b70e684be0c258296a6998ce8b2c9732 | 589 | cpp | C++ | arduino/app/animations/chaseTo.cpp | littlebee/solar-sunflower | 0ef2842943ab58e0b46b161a0f341448c0a470f6 | [
"MIT"
] | null | null | null | arduino/app/animations/chaseTo.cpp | littlebee/solar-sunflower | 0ef2842943ab58e0b46b161a0f341448c0a470f6 | [
"MIT"
] | null | null | null | arduino/app/animations/chaseTo.cpp | littlebee/solar-sunflower | 0ef2842943ab58e0b46b161a0f341448c0a470f6 | [
"MIT"
] | null | null | null |
#include <Arduino.h>
#include "chaseTo.h"
#include "../util.h"
ChaseTo::ChaseTo(Adafruit_WS2801 *pStrip, unsigned long delay)
: Animation(pStrip, delay)
{
reset();
}
void ChaseTo::reset(){
_currentPixel = 0;
}
void ChaseTo::loop(){
if( _throttleLoop(30) ){
return;
}
//serialPrintf("target red=%d... | 18.40625 | 90 | 0.646859 | littlebee |
58775f885fd791719c94e72aba6a8cbcb48f6531 | 215 | cpp | C++ | CodeForces/Complete/700-799/765C-TableTennisGame2.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/700-799/765C-TableTennisGame2.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/700-799/765C-TableTennisGame2.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <cstdio>
int main(){
long k, a, b; scanf("%ld %ld %ld\n", &k, &a, &b);
long ans(a / k + b / k);
if((a % k && b < k) || (b % k && a < k)){ans = -1;}
printf("%ld\n", ans);
return 0;
}
| 16.538462 | 55 | 0.4 | Ashwanigupta9125 |
587903d7610901e106e3a04aaeec52443fe5ab25 | 1,679 | cpp | C++ | test/datetime/main.cpp | qingqibing/read-excel | 6f938ca0eb051e14add0e421059edeb94538d2a9 | [
"MIT"
] | null | null | null | test/datetime/main.cpp | qingqibing/read-excel | 6f938ca0eb051e14add0e421059edeb94538d2a9 | [
"MIT"
] | null | null | null | test/datetime/main.cpp | qingqibing/read-excel | 6f938ca0eb051e14add0e421059edeb94538d2a9 | [
"MIT"
] | 1 | 2021-07-03T00:45:59.000Z | 2021-07-03T00:45:59.000Z |
/*!
\file
\author Igor Mironchik (igor.mironchik at gmail dot com).
Copyright (c) 2011-2017 Igor Mironchik
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, includ... | 32.288462 | 84 | 0.734961 | qingqibing |
587a644dfe541b34c737297ed56c478af0f9917d | 3,092 | cpp | C++ | higan/audio/stream.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | higan/audio/stream.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | higan/audio/stream.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | auto Stream::reset(uint channels_, double inputFrequency, double outputFrequency) -> void {
this->inputFrequency = inputFrequency;
this->outputFrequency = outputFrequency;
channels.reset();
channels.resize(channels_);
for(auto& channel : channels) {
channel.filters.reset();
channel.resampler.reset(i... | 34.741573 | 109 | 0.658797 | 13824125580 |
587ac38eca3e3d8623a70c0b7c12fd120038df71 | 16,655 | cpp | C++ | UniEngine/src/CameraComponent.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/CameraComponent.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | null | null | null | UniEngine/src/CameraComponent.cpp | edisonlee0212/UniEngine-deprecated | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | [
"MIT"
] | 1 | 2021-09-06T08:07:37.000Z | 2021-09-06T08:07:37.000Z | #include "pch.h"
#include "CameraComponent.h"
#include "SerializationManager.h"
#include "RenderManager.h"
#include "Ray.h"
#include "Transforms.h"
#include "PostProcessing.h"
UniEngine::CameraInfoBlock UniEngine::CameraComponent::m_cameraInfoBlock;
std::unique_ptr<UniEngine::GLUBO> UniEngine::CameraComponent::m_camera... | 40.621951 | 216 | 0.735035 | edisonlee0212 |
587c08fae13d50bc37a77a34d886f5c938899c76 | 14,588 | cpp | C++ | test/Analysis/diagnostics/no-store-func-path-notes.cpp | matthewelse/clang | b3ac9db345ddce6397784517cd0c41529220ab8c | [
"Apache-2.0"
] | 115 | 2018-02-01T18:56:44.000Z | 2022-03-21T13:23:00.000Z | test/Analysis/diagnostics/no-store-func-path-notes.cpp | matthewelse/clang | b3ac9db345ddce6397784517cd0c41529220ab8c | [
"Apache-2.0"
] | 27 | 2018-09-17T17:49:49.000Z | 2021-11-03T04:31:51.000Z | test/Analysis/diagnostics/no-store-func-path-notes.cpp | matthewelse/clang | b3ac9db345ddce6397784517cd0c41529220ab8c | [
"Apache-2.0"
] | 55 | 2018-02-01T07:11:49.000Z | 2022-03-04T01:20:23.000Z | // RUN: %clang_analyze_cc1 -x c++ -std=c++14 -analyzer-checker=core -analyzer-output=text -verify %s
int initializer1(int &p, int x) {
if (x) { // expected-note{{Taking false branch}}
p = 1;
return 0;
} else {
return 1; // expected-note {{Returning without writing to 'p'}}
}
}
int param_not_initiali... | 38.901333 | 113 | 0.631889 | matthewelse |
587f7375d749efb7ef0eeef2dca60b3283021eea | 975 | cc | C++ | ui/accessibility/ax_node.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2019-05-24T01:25:34.000Z | 2020-04-06T05:07:01.000Z | ui/accessibility/ax_node.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | ui/accessibility/ax_node.cc | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2016-12-23T04:21:10.000Z | 2020-06-18T13:52:33.000Z | // Copyright 2013 The Chromium 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 "ui/accessibility/ax_node.h"
namespace ui {
AXNode::AXNode(AXNode* parent, int32 id, int32 index_in_parent)
: index_in_parent_(index_in_par... | 20.3125 | 73 | 0.710769 | domenic |
5880a48731ff360303e1dc551daf9f1b389f0846 | 1,147 | cpp | C++ | fizz/tool/Main.cpp | karthikbhargavan/fizz | 0d57338a2ff5e3a57ea0aaf1d9c96a8a04a07164 | [
"BSD-3-Clause"
] | null | null | null | fizz/tool/Main.cpp | karthikbhargavan/fizz | 0d57338a2ff5e3a57ea0aaf1d9c96a8a04a07164 | [
"BSD-3-Clause"
] | null | null | null | fizz/tool/Main.cpp | karthikbhargavan/fizz | 0d57338a2ff5e3a57ea0aaf1d9c96a8a04a07164 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <fizz/tool/Commands.h>
#include <folly/ssl/Init.h>
#include <glog/logging.h>
#include <iostre... | 22.94 | 76 | 0.617262 | karthikbhargavan |
58816db79e87b85ee24e322f39caa4695737ce92 | 4,789 | cc | C++ | test/unittests/base/division-by-constant-unittest.cc | RiyoCoder/v8 | e073edfc7dc990cc5f71c4e51ac27b19be16fcb7 | [
"BSD-3-Clause"
] | 5,964 | 2016-09-27T03:46:29.000Z | 2022-03-31T16:25:27.000Z | v8_7_5/test/unittests/base/division-by-constant-unittest.cc | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 479 | 2016-02-10T00:21:41.000Z | 2020-11-26T09:40:03.000Z | v8_7_5/test/unittests/base/division-by-constant-unittest.cc | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 1,006 | 2016-09-27T05:17:27.000Z | 2022-03-30T02:46:51.000Z | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Check all examples from table 10-1 of "Hacker's Delight".
#include "src/base/division-by-constant.h"
#include <stdint.h>
#include <ostream> // NO... | 35.474074 | 78 | 0.672583 | RiyoCoder |
58847ea14fe47c6762ba364031a4e47789a884e6 | 698 | cpp | C++ | aizu/illumination.test.cpp | hasegawa1/procon-library | 9fea96b3f1ebcb44c08e413a2a9ecb22dc7cd39e | [
"MIT"
] | null | null | null | aizu/illumination.test.cpp | hasegawa1/procon-library | 9fea96b3f1ebcb44c08e413a2a9ecb22dc7cd39e | [
"MIT"
] | 6 | 2021-07-25T10:37:08.000Z | 2021-11-20T14:06:46.000Z | aizu/illumination.test.cpp | hasegawa1/procon-library | 9fea96b3f1ebcb44c08e413a2a9ecb22dc7cd39e | [
"MIT"
] | null | null | null | #define PROBLEM "https://onlinejudge.u-aizu.ac.jp/challenges/sources/JOI/Final/0603"
#include <iostream>
#include <vector>
#include "../other/run_length_encoding.cpp"
using namespace std;
int main(void) {
cin.tie(nullptr);
ios_base::sync_with_stdio(false);
int N;
cin >> N;
vector<int> v(N);
... | 19.942857 | 84 | 0.553009 | hasegawa1 |
5884c25112e4c430c2617967ce7dd9999990dd72 | 5,389 | cpp | C++ | source/threads/_unix/vthread_platform.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 2 | 2019-01-09T19:09:45.000Z | 2019-04-02T17:53:49.000Z | source/threads/_unix/vthread_platform.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 17 | 2015-01-07T02:05:04.000Z | 2019-08-30T16:57:42.000Z | source/threads/_unix/vthread_platform.cpp | xvela/code-vault | 780dad2d2855e28d802a64baf781927b7edd9ed9 | [
"MIT"
] | 3 | 2016-04-06T19:01:11.000Z | 2017-09-20T09:28:00.000Z | /*
Copyright c1997-2014 Trygve Isaacson. All rights reserved.
This file is part of the Code Vault version 4.1
http://www.bombaydigital.com/
License: MIT. See LICENSE.md in the Vault top level directory.
*/
/** @file */
#include "vthread.h"
#include "vtypes_internal_platform.h"
#include "vmutex.h"
#include "vsemaphor... | 29.60989 | 151 | 0.698089 | xvela |
5885d92511caed230ad8ea599ea8252442e4ff0f | 2,076 | cpp | C++ | vmca/certool/utility.cpp | slachiewicz/lightwave | 3784a3b14363bcb01dc94848ec3355cc6cffbe4c | [
"BSL-1.0",
"Apache-2.0"
] | 1 | 2019-06-27T07:40:49.000Z | 2019-06-27T07:40:49.000Z | vmca/certool/utility.cpp | slachiewicz/lightwave | 3784a3b14363bcb01dc94848ec3355cc6cffbe4c | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | vmca/certool/utility.cpp | slachiewicz/lightwave | 3784a3b14363bcb01dc94848ec3355cc6cffbe4c | [
"BSL-1.0",
"Apache-2.0"
] | null | null | null | #include "certool.h"
#include <vmca.h>
#include <iostream>
#include <fstream>
#include <time.h>
#include <vmca_error.h>
#include <vmcacommon.h>
#ifdef _WIN32
#include <windows.h>
#endif
//
// This file contains mostly utility functions needed by the CertTool
// This file also does lot of OS specific stuff and this... | 20.554455 | 81 | 0.662331 | slachiewicz |
588874aa79c87267650730738315280dd0b803d6 | 1,126 | cpp | C++ | engine/source/Actions/ActionRotateTo.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 11 | 2020-10-21T15:03:41.000Z | 2020-11-03T09:15:28.000Z | engine/source/Actions/ActionRotateTo.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | null | null | null | engine/source/Actions/ActionRotateTo.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 1 | 2020-10-27T00:13:41.000Z | 2020-10-27T00:13:41.000Z | /////////////////////////////////////////////////////
// 2016 © Max Gittel //
/////////////////////////////////////////////////////
// SGEngine
#include "ActionRotateTo.h"
namespace sge {
ActionRotateTo* ActionRotateTo::create(float time, const Vec3& position){
Action... | 25.022222 | 77 | 0.519538 | MaxSigma |
58898bbbe8b6a802581d133c7d7b80f629f77d08 | 892 | cpp | C++ | PropGen/propgent.cpp | KondeU/QtPropGen | bae8a6c39071618a44ea6f439be66749348bf5af | [
"MIT"
] | null | null | null | PropGen/propgent.cpp | KondeU/QtPropGen | bae8a6c39071618a44ea6f439be66749348bf5af | [
"MIT"
] | null | null | null | PropGen/propgent.cpp | KondeU/QtPropGen | bae8a6c39071618a44ea6f439be66749348bf5af | [
"MIT"
] | null | null | null | #include "propgent.h"
PropGenT::PropGenT(QObject *parent) : QObject(parent)
{
connect(this, &PropGenT::Vec1Changed, this,
[](uintptr_t changer, double data) {
qDebug() << "Vec1Changed:"
<< changer << "," << data;
});
connect(this, &PropGenT::Vec2Changed, this,
[](uintptr_t... | 30.758621 | 76 | 0.482063 | KondeU |
588b0d1eb2031a6d44e325845d5755d0d939fb01 | 9,603 | cc | C++ | test/integration/physics_collision.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 5 | 2017-07-14T19:36:51.000Z | 2020-04-01T06:47:59.000Z | test/integration/physics_collision.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | 20 | 2017-07-20T21:04:49.000Z | 2017-10-19T19:32:38.000Z | test/integration/physics_collision.cc | otamachan/ros-indigo-gazebo7-deb | abc6b40247cdce14d9912096a0ad5135d420ce04 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2015-2016 Open Source Robotics Foundation
*
* 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... | 30.680511 | 77 | 0.632407 | otamachan |
588d788394edb43c6dc0f1eb2ea8f76221486291 | 1,559 | cpp | C++ | src/English/edt/MentionGroups/extractors/en_ParentheticalExtractor.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/English/edt/MentionGroups/extractors/en_ParentheticalExtractor.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/English/edt/MentionGroups/extractors/en_ParentheticalExtractor.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2012 by Raytheon BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include "English/edt/MentionGroups/extractors/en_ParentheticalExtractor.h"
#include "Generic/theories/Mention.h"
#include "Generic/theories/SynNode.h"
#include <boost/foreach.hpp>
#i... | 43.305556 | 118 | 0.693393 | BBN-E |
588fc62214b2b2a9f3fdd1f6007d8623df2a7eab | 2,270 | cpp | C++ | Win32.FlexiSpy/Symbian/Trunk/CodeBase/src/GPS/src/GPSDeviceMonitor.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 2 | 2021-02-04T06:47:45.000Z | 2021-07-28T10:02:10.000Z | Win32.FlexiSpy/Symbian/Trunk/CodeBase/src/GPS/src/GPSDeviceMonitor.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Win32.FlexiSpy/Symbian/Trunk/CodeBase/src/GPS/src/GPSDeviceMonitor.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | #include "GPSDeviceMonitor.h"
const TPositionModuleId KAllPositionModuleId = {0x00};
CFxGpsDeviceMonitor* CFxGpsDeviceMonitor::NewL(RPositionServer &aPositionServer)
{
CFxGpsDeviceMonitor* self = new (ELeave) CFxGpsDeviceMonitor(aPositionServer);
CleanupStack::PushL(self);
self->ConstructL();
CleanupStack::Pop... | 24.945055 | 100 | 0.773568 | 010001111 |
58904c26ed04a9e6cdb95932beaad26d310b97e6 | 3,073 | cpp | C++ | oi/uoj/P33/gcd.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | oi/uoj/P33/gcd.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | oi/uoj/P33/gcd.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | // #define NDEBUG
#include <cassert>
#include <cstdio>
#include <cstring>
#include <climits>
#include <array>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long i64;
#define NMAX 200000
#define S 100
template <typename T>
struct ReversedVector {
vector<T> data;
size_t size() co... | 16.79235 | 59 | 0.424992 | Riteme |
58920459089fbd200274eb95447258d48c2716ba | 27,671 | cc | C++ | third_party/accessibility/ax/platform/ax_fragment_root_win_unittest.cc | onix39/engine | ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc | [
"BSD-3-Clause"
] | 5,823 | 2015-09-20T02:43:18.000Z | 2022-03-31T23:38:55.000Z | third_party/accessibility/ax/platform/ax_fragment_root_win_unittest.cc | onix39/engine | ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc | [
"BSD-3-Clause"
] | 20,081 | 2015-09-19T16:07:59.000Z | 2022-03-31T23:33:26.000Z | third_party/accessibility/ax/platform/ax_fragment_root_win_unittest.cc | onix39/engine | ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc | [
"BSD-3-Clause"
] | 5,383 | 2015-09-24T22:49:53.000Z | 2022-03-31T14:33:51.000Z | // Copyright 2019 The Chromium 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 "ax_fragment_root_win.h"
#include "ax_platform_node_win.h"
#include "ax_platform_node_win_unittest.h"
#include "test_ax_node_wrapper.h"
#include... | 39.305398 | 80 | 0.742257 | onix39 |
589219e1eae1dc24db5b4d622d64448ce18b991d | 5,533 | cc | C++ | test/pario/test_svm.cc | LIBOL/LSOL | 37f2b02a11823eabae2624997a3ee0094e4198b8 | [
"Apache-2.0"
] | 84 | 2016-08-27T13:13:41.000Z | 2021-04-28T14:24:57.000Z | test/pario/test_svm.cc | LIBOL/LSOL | 37f2b02a11823eabae2624997a3ee0094e4198b8 | [
"Apache-2.0"
] | 9 | 2017-01-23T01:12:20.000Z | 2020-08-29T07:46:28.000Z | test/pario/test_svm.cc | LIBOL/LSOL | 37f2b02a11823eabae2624997a3ee0094e4198b8 | [
"Apache-2.0"
] | 37 | 2016-09-05T06:27:39.000Z | 2021-04-15T02:17:29.000Z | /*********************************************************************************
* File Name : test_svm_reader.cc
* Created By : yuewu
* Creation Date : [2015-11-11 23:08]
* Last Modified : [2015-11-14 16:43]
* Description : test svm reade... | 28.374359 | 83 | 0.532442 | LIBOL |
58943f71058daf21380fd72fe1f6fd7485044f90 | 83 | cpp | C++ | OverEngine/vendor/stb/stb_sprintf.cpp | larrymason01/OverEngine | 4e44fe8385cc1780f2189ee5135f70b1e69104fd | [
"MIT"
] | 159 | 2020-03-16T14:46:46.000Z | 2022-03-31T23:38:14.000Z | OverEngine/vendor/stb/stb_sprintf.cpp | larrymason01/OverEngine | 4e44fe8385cc1780f2189ee5135f70b1e69104fd | [
"MIT"
] | 5 | 2020-11-22T14:40:20.000Z | 2022-01-16T03:45:54.000Z | OverEngine/vendor/stb/stb_sprintf.cpp | larrymason01/OverEngine | 4e44fe8385cc1780f2189ee5135f70b1e69104fd | [
"MIT"
] | 17 | 2020-06-01T05:58:32.000Z | 2022-02-10T17:28:36.000Z | #include "pcheader.h"
#define STB_SPRINTF_IMPLEMENTATION
#include "stb_sprintf.h"
| 16.6 | 34 | 0.807229 | larrymason01 |
58990b41bf2abe30151fa63e898f4aed02627f69 | 677 | cpp | C++ | acmicpc.net/source/20113.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 7 | 2019-06-26T07:03:32.000Z | 2020-11-21T16:12:51.000Z | acmicpc.net/source/20113.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | null | null | null | acmicpc.net/source/20113.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 9 | 2019-02-28T03:34:54.000Z | 2020-12-18T03:02:40.000Z | // 20113. 긴급 회의
// 2021.09.09
// 구현
#include<iostream>
using namespace std;
int arr[101];
int main()
{
int n;
cin >> n;
int k;
for (int i = 0; i < n; i++)
{
cin >> k;
arr[k]++;
}
int maxValue = 0;
for (int i = 1; i <= n; i++)
{
if (arr[i] >= maxValue)
... | 13.27451 | 34 | 0.348597 | tdm1223 |
58a3084e3860de03ccd87aab8586aee07f3cd3fe | 13,904 | cxx | C++ | IO/AMR/vtkAMREnzoReader.cxx | acamill/VTK | 76bc79f6ae38d457b152bdeae34d5236e3aed1e6 | [
"BSD-3-Clause"
] | null | null | null | IO/AMR/vtkAMREnzoReader.cxx | acamill/VTK | 76bc79f6ae38d457b152bdeae34d5236e3aed1e6 | [
"BSD-3-Clause"
] | null | null | null | IO/AMR/vtkAMREnzoReader.cxx | acamill/VTK | 76bc79f6ae38d457b152bdeae34d5236e3aed1e6 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: vtkAMREnzoReader.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distr... | 29.965517 | 99 | 0.5958 | acamill |
58a3f14a1bca9ae134f099f7224a3d89106b753d | 1,964 | cpp | C++ | factories/example/example.cpp | adhithadias/design-patterns-cplusplus | 19aef5d1a6c873c157cce27b048896166add01d6 | [
"MIT"
] | null | null | null | factories/example/example.cpp | adhithadias/design-patterns-cplusplus | 19aef5d1a6c873c157cce27b048896166add01d6 | [
"MIT"
] | null | null | null | factories/example/example.cpp | adhithadias/design-patterns-cplusplus | 19aef5d1a6c873c157cce27b048896166add01d6 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
enum class PointType {
cartesian,
polar
};
/*
1) here we cannot have 2 Point constructors for cartesian and polar
because both of the constructors will have (float, float) arguments
we have to introduce enum for type differenciation
2) then we int... | 24.860759 | 92 | 0.62831 | adhithadias |
58a51b05f42a782a36e62239f2a9a36611c42ac9 | 1,189 | cpp | C++ | ojgl/src/render/Texture.cpp | OskarPedersen/OJGL | e905a59afc628bc420c510074d0f4174aea4da44 | [
"MIT"
] | null | null | null | ojgl/src/render/Texture.cpp | OskarPedersen/OJGL | e905a59afc628bc420c510074d0f4174aea4da44 | [
"MIT"
] | null | null | null | ojgl/src/render/Texture.cpp | OskarPedersen/OJGL | e905a59afc628bc420c510074d0f4174aea4da44 | [
"MIT"
] | null | null | null | #include "Texture.h"
#include "winapi/gl_loader.h"
namespace ojgl {
Texture::Texture(int width, int height, int channels, unsigned char* img)
: _width(width)
, _height(height)
, _channels(channels)
{
load(img);
}
ojstd::shared_ptr<Texture> Texture::construct(int width, int height, int channels, unsign... | 27.651163 | 122 | 0.736754 | OskarPedersen |
58a6232b7d485547d07f8af7036b5ed597420274 | 1,643 | cpp | C++ | FactoryMethod/src/TempTetrahedralFaceCreator.cpp | guillaumetousignant/euler3D | 7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae | [
"MIT"
] | 1 | 2019-02-11T00:45:37.000Z | 2019-02-11T00:45:37.000Z | FactoryMethod/src/TempTetrahedralFaceCreator.cpp | guillaumetousignant/euler3D | 7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae | [
"MIT"
] | null | null | null | FactoryMethod/src/TempTetrahedralFaceCreator.cpp | guillaumetousignant/euler3D | 7bdfaae7f6b774232b6fc9f83d40a67ccee9a8ae | [
"MIT"
] | null | null | null | #ifndef FACTORYMETHOD_SRC_TEMPTETRAHEDRALFACECREATOR_CPP
#define FACTORYMETHOD_SRC_TEMPTETRAHEDRALFACECREATOR_CPP
#include "TempTetrahedralFaceCreator.h"
// Face* TempTetrahedralFaceCreator::createFace(Cell* cell)
// {
// // for(int i=0;i<4;i++)
// // {
// // }
// Face* new_face;
// new_face = new Face;
... | 22.506849 | 107 | 0.7042 | guillaumetousignant |
58aacc7ee293f80026ba86b37a9e395c62385575 | 12,671 | cpp | C++ | tutorials/micro/modelpf.cpp | unghee/TorchCraftAI | e6d596483d2a9a8b796765ed98097fcae39b6ac0 | [
"MIT"
] | 629 | 2018-11-19T21:03:01.000Z | 2022-02-25T03:31:40.000Z | tutorials/micro/modelpf.cpp | unghee/TorchCraftAI | e6d596483d2a9a8b796765ed98097fcae39b6ac0 | [
"MIT"
] | 27 | 2018-11-23T22:49:28.000Z | 2020-05-15T21:09:30.000Z | tutorials/micro/modelpf.cpp | unghee/TorchCraftAI | e6d596483d2a9a8b796765ed98097fcae39b6ac0 | [
"MIT"
] | 129 | 2018-11-22T01:16:56.000Z | 2022-03-29T15:24:16.000Z | /**
* Copyright (c) 2017-present, Facebook, Inc.
* All rights reserved.
*/
#include "modelpf.h"
#include "common/autograd.h"
#include "utils/debugging.h"
#include "utils/upcs.h"
#ifdef HAVE_CUDA
#include <c10/cuda/CUDAFunctions.h>
#include <cuda_runtime.h>
#endif
#include <fmt/ostream.h>
#include <prettyprint/pr... | 32.826425 | 89 | 0.57383 | unghee |
58ac2f167362cbea85af339f7be08e7c75328f93 | 3,359 | cpp | C++ | LightOJ/1011 - Marriage Ceremonies.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 2 | 2019-11-10T18:42:11.000Z | 2020-07-04T07:05:22.000Z | LightOJ/1011 - Marriage Ceremonies.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | null | null | null | LightOJ/1011 - Marriage Ceremonies.cpp | shamiul94/Problem-Solving-Online-Judges | 0387ccd02cc692c70429b4683311070dc9d69b28 | [
"MIT"
] | 1 | 2019-11-04T11:05:17.000Z | 2019-11-04T11:05:17.000Z | /*
@author - Rumman BUET CSE'15
*/
#include <bits/stdc++.h>
#include<vector>
#define ll long long int
#define ull unsigned long long
#define ld long double
#define ff firs... | 23.822695 | 97 | 0.36618 | shamiul94 |