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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68829948096c008273a5ad959193d3b0396cb064 | 1,421 | cc | C++ | tools/Icdar17KwsEval.cc | jpuigcerver/kws-eval | ccafe5e3e94511aea39d36d96c15fc310f9e484f | [
"MIT"
] | 4 | 2017-04-10T08:40:38.000Z | 2019-07-05T07:32:53.000Z | tools/Icdar17KwsEval.cc | jpuigcerver/kws-eval | ccafe5e3e94511aea39d36d96c15fc310f9e484f | [
"MIT"
] | null | null | null | tools/Icdar17KwsEval.cc | jpuigcerver/kws-eval | ccafe5e3e94511aea39d36d96c15fc310f9e484f | [
"MIT"
] | 2 | 2018-08-16T00:27:15.000Z | 2021-11-17T12:59:43.000Z | #include "core/DocumentBoundingBox.h"
#include "core/DocumentBoundingBoxEventSet.h"
#include "core/ScoredEvent.h"
#include "core/ShapedEvent.h"
#include "matcher/SimpleMatcher.h"
#include "reader/PlainTextReader.h"
#include "scorer/IntersectionOverHypothesisAreaScorer.h"
#include "tools/GenericKwsEvalTool.h"
using kws... | 33.833333 | 75 | 0.788881 | jpuigcerver |
68841e24e938e5f6292b471e54f773ed3dac408c | 3,129 | cpp | C++ | lib/Globe/GlobeTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | lib/Globe/GlobeTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | lib/Globe/GlobeTest.cpp | andyrobinson/ard-nav | 8162b2c9b882393ffd44e42d3f0816d7b1090760 | [
"MIT"
] | null | null | null | #include "Globe.h"
#include "gtest/gtest.h"
#include "math.h"
namespace {
Globe globe;
position London = {51.5073509,-0.12775823,0.0};
position Manchester = {53.479324,-2.2484851,0.0};
position Chorlton = {53.4407973,-2.272291,0.0};
position PlattFields = {53.44580, -2.22515,0.0};
position NewYork = {40.7127837, -74... | 35.965517 | 89 | 0.737616 | andyrobinson |
68874461e5eca8dab1305093130c71286798eda3 | 6,678 | cpp | C++ | src/serialport.cpp | cybercrafts/roomba-driver | 9e338db5ef6d02a23e042c88953d921db5f353a3 | [
"MIT"
] | null | null | null | src/serialport.cpp | cybercrafts/roomba-driver | 9e338db5ef6d02a23e042c88953d921db5f353a3 | [
"MIT"
] | null | null | null | src/serialport.cpp | cybercrafts/roomba-driver | 9e338db5ef6d02a23e042c88953d921db5f353a3 | [
"MIT"
] | null | null | null | #include "serialport.h"
#include <iostream>
#include <vector>
#include <cctype>
#include <sstream>
#include <strings.h>
using namespace std;
unique_ptr<SerialPort> SerialPort::NewInstance(
const std::string& usb_port
){
// Try to open the file
int fd = open(usb_port.c_str(), O_RDWR | O_NOCTTY);
if (fd... | 28.177215 | 102 | 0.532794 | cybercrafts |
6888602ee40ceed1c03aec8814dd104e74a06640 | 1,254 | cpp | C++ | 2_clang-tidy/IfreturnedCheck.cpp | Fishermanykx/Software_Testing_Projects | 9840f2490ba9094a330a942f5854ab86347343e1 | [
"MIT"
] | 3 | 2021-07-02T10:59:06.000Z | 2022-02-18T08:11:51.000Z | 2_clang-tidy/IfreturnedCheck.cpp | Fishermanykx/Software_Testing_Projects | 9840f2490ba9094a330a942f5854ab86347343e1 | [
"MIT"
] | null | null | null | 2_clang-tidy/IfreturnedCheck.cpp | Fishermanykx/Software_Testing_Projects | 9840f2490ba9094a330a942f5854ab86347343e1 | [
"MIT"
] | null | null | null | //===--- IfreturnedCheck.cpp - clang-tidy ---------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 31.35 | 101 | 0.640351 | Fishermanykx |
688bb973af1c5c68c26be4c1fc5a0d2721530c26 | 5,304 | cxx | C++ | main/svx/source/items/rotmodit.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/svx/source/items/rotmodit.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/svx/source/items/rotmodit.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... | 30.308571 | 102 | 0.691742 | Grosskopf |
688c15037e040bb417a5aa5352a321f096272d9e | 764 | hh | C++ | src/Titon/Route/LocaleRoute.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Route/LocaleRoute.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Route/LocaleRoute.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh // strict
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
namespace Titon\Route;
/**
* Prepends all routes with a locale matching pattern.
*
* @package Titon\Route
*/
class LocaleRoute extends Route {
/**... | 20.648649 | 71 | 0.561518 | ciklon-z |
688d9a496417492681949db5e849cb662e3bc65c | 48,277 | hpp | C++ | Samples/Win7Samples/dataaccess/oledb_conformance/include/ctable.hpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/dataaccess/oledb_conformance/include/ctable.hpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/dataaccess/oledb_conformance/include/ctable.hpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | //--------------------------------------------------------------------
// Microsoft OLE DB Test
//
// Copyright 1995-2000 Microsoft Corporation.
//
// @doc
//
// @module CTable Header Module | This module contains header information for CTable
//
// @normal (C) Copyright 1995-1998 Microsoft Corporation. All Rights ... | 43.142985 | 124 | 0.707086 | windows-development |
688ec2c24f623503f1cb01032ba9d822ef69ecfc | 3,264 | cpp | C++ | problemsets/UVA/UVA11954.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/UVA11954.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/UVA/UVA11954.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cmath>
#include <string>
#include <algorithm>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <numeric>
using namespace ... | 24.177778 | 81 | 0.443015 | juarezpaulino |
688ef301ab9193c88fe83ea37fd0d81cc4513164 | 446 | cpp | C++ | utils.cpp | alxga/utils | 01ca9fb2084ba5e7bead20b45f52b3557ce8c337 | [
"MIT"
] | null | null | null | utils.cpp | alxga/utils | 01ca9fb2084ba5e7bead20b45f52b3557ce8c337 | [
"MIT"
] | null | null | null | utils.cpp | alxga/utils | 01ca9fb2084ba5e7bead20b45f52b3557ce8c337 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018-2019 Alexander A. Ganin. All rights reserved.
Twitter: @alxga. Website: alexganin.com.
Licensed under the MIT License.
See LICENSE file in the project root for full license information.
*/
#include "stdafx.h"
#include "Utils/utils.h"
void DelayThread(int millisec)
{
#ifdef WINDOWS
Sle... | 21.238095 | 68 | 0.692825 | alxga |
6893b17e3eefe8d0e6e4b6ae4ec2664e359dabcf | 261 | hh | C++ | StRoot/StEEmcUtil/database/cstructs/eemcDbXMLdata.hh | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | StRoot/StEEmcUtil/database/cstructs/eemcDbXMLdata.hh | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | StRoot/StEEmcUtil/database/cstructs/eemcDbXMLdata.hh | xiaohaijin/RHIC-STAR | a305cb0a6ac15c8165bd8f0d074d7075d5e58752 | [
"MIT"
] | null | null | null | #ifndef TAB_EEMC_DB_XMLDATA__hh
#define TAB_EEMC_DB_XMLDATA__hh
#include "eemcConstDB.hh"
/*
description: online-DB, xml data
*/
struct eemcDbXMLdata {
char xmldata[EEMCDbMaxXMLData]; // xmldata
char comment[EEMCDbMaxComment]; // comment
};
#endif
| 20.076923 | 45 | 0.750958 | xiaohaijin |
6897f2c63bdd2a3756e2fecac69f44434b7dfe69 | 983 | hpp | C++ | include/h3api/H3AdventureMap/H3MapLearningStone.hpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3AdventureMap/H3MapLearningStone.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3AdventureMap/H3MapLearningStone.hpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 31.709677 | 70 | 0.385554 | Patrulek |
68991572218b30c6bf4aba3d0c0cc7ff3e92d902 | 2,900 | hpp | C++ | examples/src/example_types.hpp | bergmansj/jsoncons | 11db194bd3f0e3e89f29b3447e28d131db242501 | [
"BSL-1.0"
] | null | null | null | examples/src/example_types.hpp | bergmansj/jsoncons | 11db194bd3f0e3e89f29b3447e28d131db242501 | [
"BSL-1.0"
] | null | null | null | examples/src/example_types.hpp | bergmansj/jsoncons | 11db194bd3f0e3e89f29b3447e28d131db242501 | [
"BSL-1.0"
] | null | null | null | #ifndef EXAMPLE_TYPES
#define EXAMPLE_TYPES
#include <string>
#include <vector>
#include <jsoncons/json.hpp>
// book example
namespace ns {
struct book
{
std::string author;
std::string title;
double price;
};
} // namespace ns
namespace jsoncons {
template<class Json>
s... | 27.358491 | 95 | 0.577586 | bergmansj |
689b3226db1d28a9b11fb792d01a92d89a8ad028 | 608 | cpp | C++ | src/GameHUD.cpp | eaymerich/blaster | cfe72ceb1cd2858ae419793460b0d452d1b4ee99 | [
"MIT"
] | null | null | null | src/GameHUD.cpp | eaymerich/blaster | cfe72ceb1cd2858ae419793460b0d452d1b4ee99 | [
"MIT"
] | null | null | null | src/GameHUD.cpp | eaymerich/blaster | cfe72ceb1cd2858ae419793460b0d452d1b4ee99 | [
"MIT"
] | null | null | null | #include "GameHUD.h"
GameHUD::GameHUD() :
scoreText{"SCORE"},
lifeText{"LIFE"} {
float charWidth = 2.0f / CHARS_PER_LINE;
scoreText.setPosition(-(charWidth * 18.0f), -(charWidth * 15.0f), 0.0f);
lifeText.setPosition(-(charWidth * 2.0f), -(charWidth * 15.0f), 0.0f);
background.setSize(2.0f, 0.... | 22.518519 | 76 | 0.628289 | eaymerich |
689b5169cee6fc6e1305dc1023bac61ea8eb2754 | 533 | hpp | C++ | EasyDx/MeshRenderer.hpp | LYP951018/EasyDX | 10b5a04c13af1fc6c3b405e309dc754a42530011 | [
"Apache-2.0"
] | 3 | 2017-03-12T07:26:56.000Z | 2017-11-20T13:01:46.000Z | EasyDx/MeshRenderer.hpp | LYP951018/EasyDX | 10b5a04c13af1fc6c3b405e309dc754a42530011 | [
"Apache-2.0"
] | 9 | 2019-04-27T08:36:01.000Z | 2021-11-25T16:36:02.000Z | EasyDx/MeshRenderer.hpp | LYP951018/EasyDX | 10b5a04c13af1fc6c3b405e309dc754a42530011 | [
"Apache-2.0"
] | 2 | 2018-04-16T09:41:56.000Z | 2021-11-01T06:17:58.000Z | #pragma once
#include "ComponentBase.hpp"
namespace dx
{
class Mesh;
struct Material;
class MeshRenderer : public ComponentBase
{
public:
MeshRenderer(std::shared_ptr<Mesh> mesh,
std::shared_ptr<Material> material);
Mesh& GetMesh() const;
std::share... | 22.208333 | 67 | 0.613508 | LYP951018 |
689f544b333e56667e600020f48392c2ac61e1fc | 254 | cpp | C++ | example/error_handling.cpp | FatihBAKIR/liaw2019-process | 8f4a74ff5a71f8ade180c8a9baffd8b4c53de06d | [
"MIT"
] | null | null | null | example/error_handling.cpp | FatihBAKIR/liaw2019-process | 8f4a74ff5a71f8ade180c8a9baffd8b4c53de06d | [
"MIT"
] | null | null | null | example/error_handling.cpp | FatihBAKIR/liaw2019-process | 8f4a74ff5a71f8ade180c8a9baffd8b4c53de06d | [
"MIT"
] | null | null | null | #include <process>
#include <system_error>
int main()
{
try
{
std::process proc("does-not-exist", {});
}
catch (process_error & pe)
{
std::cout << "Process launch error for file: " << pe.path() << std::endl;
}
}
| 16.933333 | 81 | 0.527559 | FatihBAKIR |
689f600e2c23bcae778d230312d51538bc289003 | 446 | cpp | C++ | II-sem/C++/Practice/pointer_to_objects.cpp | ASHD27/JMI-MCA | 61995cd2c8306b089a9b40d49d9716043d1145db | [
"MIT"
] | 3 | 2020-03-18T16:27:33.000Z | 2021-06-07T12:39:32.000Z | II-sem/C++/Practice/pointer_to_objects.cpp | ASHD27/JMI-MCA | 61995cd2c8306b089a9b40d49d9716043d1145db | [
"MIT"
] | null | null | null | II-sem/C++/Practice/pointer_to_objects.cpp | ASHD27/JMI-MCA | 61995cd2c8306b089a9b40d49d9716043d1145db | [
"MIT"
] | 10 | 2019-11-11T06:49:10.000Z | 2021-06-07T12:41:20.000Z | //
//
//
//
#include<iostream>
using namespace std;
class point{
int x, y;
public:
void getdata()
{
cout << endl << "Enter value of x : ";
cin >> x;
cout << "Enter value of y : ";
cin >> y;
}
void putdata()
{
cout << endl << "X = " << x << endl << "Y... | 13.117647 | 59 | 0.41704 | ASHD27 |
68a2062277dc73ef696a5e5c0b5e297c99d6c117 | 3,063 | cc | C++ | tests/bit_array.cc | GameVTeam/kerfuffle | 07c2e4eff6f16885ee2c44a9aef8cde9b73a4b55 | [
"MIT"
] | null | null | null | tests/bit_array.cc | GameVTeam/kerfuffle | 07c2e4eff6f16885ee2c44a9aef8cde9b73a4b55 | [
"MIT"
] | 1 | 2020-08-19T15:46:56.000Z | 2020-08-19T15:46:56.000Z | tests/bit_array.cc | GameVTeam/kerfuffle | 07c2e4eff6f16885ee2c44a9aef8cde9b73a4b55 | [
"MIT"
] | null | null | null | //
// Created by 方泓睿 on 2020/8/6.
//
#include "helper.h"
#pragma clang dianostic push
#pragma ide diagnostic ignored "cert-err58-cpp"
using BitArray = kerfuffle::detail::BitArray<kerfuffle::ShortIndex, 6>;
using Bits = typename BitArray::Bits;
namespace kerfuffle {
namespace test {
class BitArrayTest : public ... | 21.41958 | 71 | 0.618022 | GameVTeam |
68a40d10e4310785598f2cd8572e7af5d32cd908 | 3,641 | hpp | C++ | RobWorkSim/src/rwsim/dynamics/ContactManifold.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWorkSim/src/rwsim/dynamics/ContactManifold.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWorkSim/src/rwsim/dynamics/ContactManifold.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 34.349057 | 90 | 0.578687 | ZLW07 |
68a46d0d888a3945757d43dc6a3ccbe16b9359aa | 2,792 | cpp | C++ | src/network/debug_client.cpp | ybbhwxfj/block-db | 2482ff6631184ecbc6329db97a2c0f8e19a6711f | [
"Apache-2.0"
] | null | null | null | src/network/debug_client.cpp | ybbhwxfj/block-db | 2482ff6631184ecbc6329db97a2c0f8e19a6711f | [
"Apache-2.0"
] | null | null | null | src/network/debug_client.cpp | ybbhwxfj/block-db | 2482ff6631184ecbc6329db97a2c0f8e19a6711f | [
"Apache-2.0"
] | 1 | 2021-12-28T02:25:34.000Z | 2021-12-28T02:25:34.000Z | #include "network/debug_client.h"
//
// Copyright (c) 2016-2019 Vinnie Falco (vinnie dot falco at gmail dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/boo... | 28.783505 | 80 | 0.633596 | ybbhwxfj |
68a624183ed70e0d0f013c3facd7212d202f089b | 760 | cpp | C++ | src/JsonReplyWrapper.cpp | StudDev/poszhalusta_primite_proekt | 90220821392fa019c461cfd480f6ec454643f54e | [
"Apache-2.0"
] | null | null | null | src/JsonReplyWrapper.cpp | StudDev/poszhalusta_primite_proekt | 90220821392fa019c461cfd480f6ec454643f54e | [
"Apache-2.0"
] | 1 | 2020-06-29T21:19:08.000Z | 2020-06-29T21:19:08.000Z | src/JsonReplyWrapper.cpp | oleggator/yandex_disk_gui | 90220821392fa019c461cfd480f6ec454643f54e | [
"Apache-2.0"
] | null | null | null | #include <QtCore/QJsonDocument>
#include "JsonReplyWrapper.h"
JsonReplyWrapper::JsonReplyWrapper(QObject *parent)
: ReplyWrapper{parent} {
}
//TODO: check reply for nullptr
JsonReplyWrapper::JsonReplyWrapper(QNetworkReply *reply, QObject *parent)
: ReplyWrapper{reply, parent} {
}
JsonReplyWrapper::~JsonReplyWr... | 23.030303 | 73 | 0.747368 | StudDev |
68a77424b3549cc502d729996f6bf702c363f3e4 | 1,780 | cpp | C++ | series2_handout/hyp_sys_1d/src/ancse/dg_handler.cpp | BeatHubmann/19H-AdvNCSE | 3979f768da933de82bd6ab29bbf31ea9fc31e501 | [
"MIT"
] | 1 | 2020-01-05T22:38:47.000Z | 2020-01-05T22:38:47.000Z | series2_handout/hyp_sys_1d/src/ancse/dg_handler.cpp | BeatHubmann/19H-AdvNCSE | 3979f768da933de82bd6ab29bbf31ea9fc31e501 | [
"MIT"
] | null | null | null | series2_handout/hyp_sys_1d/src/ancse/dg_handler.cpp | BeatHubmann/19H-AdvNCSE | 3979f768da933de82bd6ab29bbf31ea9fc31e501 | [
"MIT"
] | 1 | 2019-12-08T20:43:27.000Z | 2019-12-08T20:43:27.000Z | #include <ancse/dg_handler.hpp>
/// build solution from DG coefficients and the basis
/// pre-evaluated at a certain point
Eigen::VectorXd DGHandler
:: build_sol(const Eigen::VectorXd& u,
const Eigen::VectorXd& basis) const
{
Eigen::VectorXd uSol = Eigen::VectorXd::Zero(n_vars);
return uSol;
}
... | 25.070423 | 66 | 0.618539 | BeatHubmann |
68a86ca46d7d640778a8dbe07a717774f55916b8 | 769 | cpp | C++ | sources/world/render/private/texture_single_component.cpp | suVrik/hooker.galore | 616e2692d7afab24b70bfb6aa14ad780eb7c451d | [
"MIT"
] | 4 | 2019-09-14T09:18:47.000Z | 2022-01-29T02:47:00.000Z | sources/world/render/private/texture_single_component.cpp | suVrik/hooker.galore | 616e2692d7afab24b70bfb6aa14ad780eb7c451d | [
"MIT"
] | null | null | null | sources/world/render/private/texture_single_component.cpp | suVrik/hooker.galore | 616e2692d7afab24b70bfb6aa14ad780eb7c451d | [
"MIT"
] | 1 | 2020-03-25T14:41:17.000Z | 2020-03-25T14:41:17.000Z | #include "world/render/texture_single_component.h"
#include <ghc/filesystem.hpp>
namespace hg {
const Texture& TextureSingleComponent::get(const std::string& name) const {
const std::string normalized_name = ghc::filesystem::path(name).lexically_normal().string();
if (auto result = m_textures.find(normalized... | 32.041667 | 96 | 0.711313 | suVrik |
68a8bab4b36791674841c15d443caa8deb5788b5 | 802 | cpp | C++ | C++/k-concatenation-maximum-sum.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/k-concatenation-maximum-sum.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/k-concatenation-maximum-sum.cpp | jaiskid/LeetCode-Solutions | a8075fd69087c5463f02d74e6cea2488fdd4efd1 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(n)
// Space: O(1)
class Solution {
public:
int kConcatenationMaxSum(vector<int>& arr, int k) {
static const int MOD = 1e9 + 7;
if (k == 1) {
return max(maxSubKArray(arr, 1), 0) % MOD;
}
return (max(maxSubKArray(arr, 2), 0) +
(k - 2) * max(accu... | 28.642857 | 85 | 0.483791 | jaiskid |
68abd9626dc12b02b511e6a67700efa351f569f8 | 8,608 | cpp | C++ | src/MacierzKw.cpp | MarutTomasz/ZadanieUkladRownan | 5c488f5949b412053a0d59a5fc6bced461b7f711 | [
"MIT"
] | null | null | null | src/MacierzKw.cpp | MarutTomasz/ZadanieUkladRownan | 5c488f5949b412053a0d59a5fc6bced461b7f711 | [
"MIT"
] | null | null | null | src/MacierzKw.cpp | MarutTomasz/ZadanieUkladRownan | 5c488f5949b412053a0d59a5fc6bced461b7f711 | [
"MIT"
] | null | null | null | #include "MacierzKw.hh"
/********** SET I GET **********/
Wektor & MacierzKw::operator[] (int index) {
if (index < 0 || index >= ROZMIAR) {
cerr << "Poza zakresem" << endl;
exit(1);
}
return tab[index];
}
const Wektor & MacierzKw::operator[] (int index) const {
if (index < 0 || index >= ROZMIAR) {
... | 24.594286 | 84 | 0.554252 | MarutTomasz |
68ac18cd2b4a7931b4ff2b65e9d983d8cf7314c6 | 195 | cpp | C++ | client/Source/Nova/Private/MonsterDataClass.cpp | yjun1806/JDefence | 72456e15c574bb495df872309e2db42e45f872fa | [
"MIT"
] | null | null | null | client/Source/Nova/Private/MonsterDataClass.cpp | yjun1806/JDefence | 72456e15c574bb495df872309e2db42e45f872fa | [
"MIT"
] | null | null | null | client/Source/Nova/Private/MonsterDataClass.cpp | yjun1806/JDefence | 72456e15c574bb495df872309e2db42e45f872fa | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "MonsterDataClass.h"
MonsterDataClass::MonsterDataClass()
{
}
MonsterDataClass::~MonsterDataClass()
{
}
| 16.25 | 78 | 0.774359 | yjun1806 |
68b487067562f2510307c366f0ab03ee81ccd305 | 3,720 | cpp | C++ | Minesweeper/VoidEngine/Window/Input.cpp | VoidRune/Minesweeper | d36879cc89f4485199cf7000a326f14635305c07 | [
"MIT"
] | null | null | null | Minesweeper/VoidEngine/Window/Input.cpp | VoidRune/Minesweeper | d36879cc89f4485199cf7000a326f14635305c07 | [
"MIT"
] | null | null | null | Minesweeper/VoidEngine/Window/Input.cpp | VoidRune/Minesweeper | d36879cc89f4485199cf7000a326f14635305c07 | [
"MIT"
] | null | null | null | #include "Input.h"
unsigned int Input::keyStates[348];
unsigned int Input::keyPrevStates[348];
unsigned int Input::mouseButtonStates[7];
unsigned int Input::mouseButtonPrevStates[7];
int Input::mouseScrollState[2];
char Input::keyBuffer[8];
char Input::keyBufferIndex = 0;
char Input::keyBufferSearchIndex = 0;
vec2f ... | 22.275449 | 89 | 0.702957 | VoidRune |
68bb5de2e326d080c1e493c89b8605159d16ebc7 | 651 | cc | C++ | cc/bitwise/addBinary.cc | pchengma/acm | 8bbbfa68b56580fcf503fab5409dd4a34ef804f2 | [
"Apache-2.0"
] | 1 | 2021-05-22T04:39:31.000Z | 2021-05-22T04:39:31.000Z | cc/bitwise/addBinary.cc | pchengma/acm | 8bbbfa68b56580fcf503fab5409dd4a34ef804f2 | [
"Apache-2.0"
] | null | null | null | cc/bitwise/addBinary.cc | pchengma/acm | 8bbbfa68b56580fcf503fab5409dd4a34ef804f2 | [
"Apache-2.0"
] | null | null | null | // LeetCode: 67. Add Binary (Easy)
class Solution {
public:
string addBinary(string a, string b) {
string res;
int i = a.length() - 1;
int j = b.length() - 1;
int carry = 0;
while (i >= 0 || j >= 0) {
int sum = carry;
if (i >= 0) {
sum ... | 25.038462 | 42 | 0.359447 | pchengma |
68bf3c37cb9223b6bd368cd6b770fd41224f846f | 16,864 | cpp | C++ | demos/PlanarManipulator/PlanarManipulatorDemo.cpp | ericpairet/ompl | 25c76431cef25f0100ed74d09dd88944ecca5ee1 | [
"BSD-3-Clause"
] | 837 | 2015-01-07T12:01:20.000Z | 2022-03-31T08:42:42.000Z | demos/PlanarManipulator/PlanarManipulatorDemo.cpp | ericpairet/ompl | 25c76431cef25f0100ed74d09dd88944ecca5ee1 | [
"BSD-3-Clause"
] | 271 | 2015-01-12T22:05:06.000Z | 2022-03-30T22:16:01.000Z | demos/PlanarManipulator/PlanarManipulatorDemo.cpp | ericpairet/ompl | 25c76431cef25f0100ed74d09dd88944ecca5ee1 | [
"BSD-3-Clause"
] | 452 | 2015-02-10T08:48:21.000Z | 2022-03-23T06:53:33.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following con... | 41.434889 | 141 | 0.688982 | ericpairet |
68c0a92e340da9750e1fcff31bd267476f9f0e00 | 6,756 | cc | C++ | extensions/browser/extension_navigation_throttle.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | extensions/browser/extension_navigation_throttle.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | extensions/browser/extension_navigation_throttle.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2016 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 "extensions/browser/extension_navigation_throttle.h"
#include "components/guest_view/browser/guest_view_base.h"
#include "content/public/browser... | 41.195122 | 80 | 0.724097 | google-ar |
68ce2d1d9f09620b7b59e03fb85093fee70bb08f | 2,015 | hh | C++ | src/c++/include/grm/KlibAligner.hh | vb-wayne/paragraph | 3f6f6f7a2a3ac209c7dbb21487ca4d9eaed5c14c | [
"Apache-2.0"
] | 111 | 2017-11-24T18:22:50.000Z | 2022-02-25T07:55:31.000Z | src/c++/include/grm/KlibAligner.hh | vb-wayne/paragraph | 3f6f6f7a2a3ac209c7dbb21487ca4d9eaed5c14c | [
"Apache-2.0"
] | 61 | 2018-01-01T19:58:06.000Z | 2022-03-09T12:01:17.000Z | src/c++/include/grm/KlibAligner.hh | vb-wayne/paragraph | 3f6f6f7a2a3ac209c7dbb21487ca4d9eaed5c14c | [
"Apache-2.0"
] | 30 | 2018-03-01T04:41:15.000Z | 2022-03-11T14:52:03.000Z | // -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Paragraph
// Copyright (c) 2016-2019 Illumina, Inc.
// All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// You may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http:... | 23.430233 | 88 | 0.681886 | vb-wayne |
68cf6777734fdbaf8f9481defa3f9305ede98c0c | 1,032 | cc | C++ | arc/setup/android_binary_xml_tokenizer_fuzzer.cc | ascii33/platform2 | b78891020724e9ff26b11ca89c2a53f949e99748 | [
"BSD-3-Clause"
] | null | null | null | arc/setup/android_binary_xml_tokenizer_fuzzer.cc | ascii33/platform2 | b78891020724e9ff26b11ca89c2a53f949e99748 | [
"BSD-3-Clause"
] | null | null | null | arc/setup/android_binary_xml_tokenizer_fuzzer.cc | ascii33/platform2 | b78891020724e9ff26b11ca89c2a53f949e99748 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2022 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "arc/setup/xml/android_binary_xml_tokenizer.h"
#include <cstddef>
#include <cstdint>
#include <fuzzer/FuzzedDataProvider.h>
#include <base/c... | 26.461538 | 80 | 0.737403 | ascii33 |
68cfc2d3343324d47bd400231381fad7f9944d79 | 3,780 | cpp | C++ | Nacro/SDK/FN_JournalObjectiveEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_JournalObjectiveEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2021-08-11T18:40:26.000Z | 2021-08-11T18:40:26.000Z | Nacro/SDK/FN_JournalObjectiveEntry_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function JournalObjectiveEntry.Journa... | 28.208955 | 146 | 0.746032 | Milxnor |
68d7af0ebe093d129bbeab993d586055b579f384 | 535 | hpp | C++ | seal-c/encryption_parameters.hpp | lambdageek/sealsharp | 63863f1542ada35d299453cf382f42c7c5544404 | [
"MIT"
] | 3 | 2019-01-07T20:32:13.000Z | 2020-01-19T17:30:58.000Z | seal-c/encryption_parameters.hpp | lambdageek/sealsharp | 63863f1542ada35d299453cf382f42c7c5544404 | [
"MIT"
] | 1 | 2019-01-31T19:15:42.000Z | 2019-01-31T19:15:42.000Z | seal-c/encryption_parameters.hpp | lambdageek/sealsharp | 63863f1542ada35d299453cf382f42c7c5544404 | [
"MIT"
] | null | null | null |
#ifndef _SEAL_C_ENCRYPTION_PARAMETERS_HPP
#define _SEAL_C_ENCRYPTION_PARAMETERS_HPP
#include <seal-c/types.h>
#include <seal/encryptionparams.h>
#include "wrap.hpp"
namespace seal_c {
namespace wrap {
template<>
struct Wrap<seal::EncryptionParameters*> : public WrapPair<seal::EncryptionParameters*, SEALEncryp... | 22.291667 | 124 | 0.781308 | lambdageek |
68e99e0dee0f4bcadbfd18aaadea1f5c7168293b | 4,955 | cpp | C++ | apps/opencs/view/filter/editwidget.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/view/filter/editwidget.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null | apps/opencs/view/filter/editwidget.cpp | Bodillium/openmw | 5fdd264d0704e33b44b1ccf17ab4fb721f362e34 | [
"Unlicense"
] | null | null | null |
#include "editwidget.hpp"
#include <QAbstractItemModel>
#include <QString>
#include <QApplication>
#include "../../model/world/data.hpp"
CSVFilter::EditWidget::EditWidget (CSMWorld::Data& data, QWidget *parent)
: QLineEdit (parent), mParser (data)
{
mPalette = palette();
connect (this, SIGNAL (textChanged (... | 25.280612 | 178 | 0.56226 | Bodillium |
68ebae7a9ea3f98702161aa2d6384fa7aa4ca3b1 | 284 | hpp | C++ | src/isle/cpp/species.hpp | chelseajohn/isle | f610b55a1e8b6d2584896eb649092b0524cc1f8c | [
"MIT"
] | 2 | 2021-01-14T17:47:01.000Z | 2021-07-16T22:31:25.000Z | src/isle/cpp/species.hpp | chelseajohn/isle | f610b55a1e8b6d2584896eb649092b0524cc1f8c | [
"MIT"
] | 21 | 2018-06-04T07:09:02.000Z | 2020-12-11T09:37:08.000Z | src/isle/cpp/species.hpp | chelseajohn/isle | f610b55a1e8b6d2584896eb649092b0524cc1f8c | [
"MIT"
] | 3 | 2021-01-18T19:18:29.000Z | 2021-03-26T03:27:15.000Z | /** \file
* \brief Enum Species.
*/
#ifndef SPECIES_HPP
#define SPECIES_HPP
namespace isle {
/// Mark particles and holes.
enum class Species {
PARTICLE, ///< 'Normal' particles.
HOLE ///< Anti-particlces, or holes.
};
}
#endif // ndef SPECIES_HPP
| 16.705882 | 45 | 0.605634 | chelseajohn |
1900777a9d7512fe526668ea659dbe4fd5966b91 | 4,070 | cpp | C++ | opengl-gui/src/Util.cpp | ChewyGumball/opengl_gui | b2bd1803f0cfb01db08c88da5091546076dfc2a3 | [
"MIT"
] | 2 | 2019-08-27T00:37:11.000Z | 2021-11-25T14:34:23.000Z | opengl-gui/src/Util.cpp | ChewyGumball/opengl_gui | b2bd1803f0cfb01db08c88da5091546076dfc2a3 | [
"MIT"
] | null | null | null | opengl-gui/src/Util.cpp | ChewyGumball/opengl_gui | b2bd1803f0cfb01db08c88da5091546076dfc2a3 | [
"MIT"
] | 2 | 2018-10-18T12:12:28.000Z | 2019-08-27T00:36:21.000Z | #include <string>
#include <vector>
#include <iostream>
#include <memory>
#include "Util.h"
namespace OpenGLGUI::Util {
Shader::Shader(const std::string &source, GLuint shaderType)
{
shaderID = glCreateShader(shaderType);
const GLchar *shaderSource = source.c_str();
glShaderSource(shaderID, 1, &shaderSource,... | 26.601307 | 116 | 0.705405 | ChewyGumball |
190124c1ff440ef0b7e2f47bf656b2d9d5f0c59a | 3,649 | cpp | C++ | graph-source-code/131-D/12520672.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/131-D/12520672.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/131-D/12520672.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <bits/stdc++.h>
#define SZ(X) ((int)(X).size())
#define ALL(X) (X).begin(), (X).end()
#define REP(I, N) for (int I = 0; I < (N); ++I)
#define REPP(I, A, B) for (int I = (A); I < (B); ++I)
#define PER(I, N) for (int I = (N); I >= 0; --I)
#define PERR(I, A, B) for (int I = (A); I >= B... | 29.192 | 90 | 0.46177 | AmrARaouf |
1906c547679c2fc218a1ab339e3979cbd5ae2821 | 1,316 | cpp | C++ | avs_dx/DxVisuals/Interop/msvcrt.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 33 | 2019-01-28T03:32:17.000Z | 2022-02-12T18:17:26.000Z | avs_dx/DxVisuals/Interop/msvcrt.cpp | visbot/vis_avs_dx | 03e55f8932a97ad845ff223d3602ff2300c3d1d4 | [
"MIT"
] | 2 | 2019-11-18T17:54:58.000Z | 2020-07-21T18:11:21.000Z | avs_dx/DxVisuals/Interop/msvcrt.cpp | Const-me/vis_avs_dx | da1fd9f4323d7891dea233147e6ae16790ad9ada | [
"MIT"
] | 5 | 2019-02-16T23:00:11.000Z | 2022-03-27T15:22:10.000Z | #include "stdafx.h"
#include "msvcrt.h"
namespace msvcrt
{
class Dll
{
HMODULE hm = nullptr;
template<class T>
inline bool getProc( T& fn, const char* lpProcName )
{
fn = (T)GetProcAddress( hm, lpProcName );
if( nullptr == fn )
{
char buff[ 64 ];
sprintf_s( buff, "%s not found in msvcrt.dll... | 16.45 | 70 | 0.576748 | Const-me |
190ac5c103ab3c4871fe0e316aa67603f9528de2 | 496 | cpp | C++ | hackerearth_grind/practice/basic_programming/implementation/a_special_number.cpp | soumyankar/CompetitiveCoding | c49b02cd86212415a1aa221f0496ec3a467d128d | [
"Apache-2.0"
] | null | null | null | hackerearth_grind/practice/basic_programming/implementation/a_special_number.cpp | soumyankar/CompetitiveCoding | c49b02cd86212415a1aa221f0496ec3a467d128d | [
"Apache-2.0"
] | null | null | null | hackerearth_grind/practice/basic_programming/implementation/a_special_number.cpp | soumyankar/CompetitiveCoding | c49b02cd86212415a1aa221f0496ec3a467d128d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
long long int sumOfDigits(int n)
{
long long int ans=0;
while(n!=0)
{
ans+=n%10;
n/=10;
}
return ans;
}
int main()
{
int t;
cin >> t;
while(t--!=0)
{
long long int n,flag,i;
cin >> n;
for(i=n; ;i++)
... | 15.030303 | 38 | 0.366935 | soumyankar |
190d0087c1e3a70f05f44e7fd8e52272c18c371f | 759 | cpp | C++ | src/lib/support/exe/StandardStream.cpp | eirTony/EIRC2 | e8cb7239cff9c0ddce72e63d41b352ec1b4d1eb5 | [
"BSD-3-Clause"
] | null | null | null | src/lib/support/exe/StandardStream.cpp | eirTony/EIRC2 | e8cb7239cff9c0ddce72e63d41b352ec1b4d1eb5 | [
"BSD-3-Clause"
] | 6 | 2016-04-12T02:41:00.000Z | 2016-06-01T09:28:02.000Z | src/lib/support/exe/StandardStream.cpp | eirTony/EIRC2 | e8cb7239cff9c0ddce72e63d41b352ec1b4d1eb5 | [
"BSD-3-Clause"
] | null | null | null | #include "StandardStream.h"
#include <QTextStream>
StandardStream::StandardStream(QObject * parent)
: BaseSerialStream(parent)
{
mpStdinStream = new QTextStream(stdin, QIODevice::ReadOnly);
mpStdoutStream = new QTextStream(stdout, QIODevice::WriteOnly);
mpStderrStream = new QTextStream(stderr, QIODe... | 24.483871 | 67 | 0.715415 | eirTony |
19122d2c70ff133b0c10f1a6e8e2af83b51fff18 | 1,273 | cpp | C++ | src/convection/incflo_godunov_ppm.cpp | michaeljbrazell/amr-wind | 97ca5242399103e0ed91bef318ab02f69a3166d6 | [
"BSD-3-Clause"
] | null | null | null | src/convection/incflo_godunov_ppm.cpp | michaeljbrazell/amr-wind | 97ca5242399103e0ed91bef318ab02f69a3166d6 | [
"BSD-3-Clause"
] | null | null | null | src/convection/incflo_godunov_ppm.cpp | michaeljbrazell/amr-wind | 97ca5242399103e0ed91bef318ab02f69a3166d6 | [
"BSD-3-Clause"
] | null | null | null | #include <incflo_godunov_ppm.H>
#include <incflo.H>
using namespace amrex;
void incflo::predict_ppm (int lev, Box const& bx, int ncomp,
Array4<Real> const& Imx,
Array4<Real> const& Ipx,
Array4<Real> const& Imy,
Arr... | 36.371429 | 85 | 0.549097 | michaeljbrazell |
19223cb1da470d2f74a4a9583bee5d94c748ceb5 | 1,307 | cpp | C++ | production_apps/ESPRESO/src/mesh/elements/volume/unknownvolume.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T13:10:11.000Z | 2021-03-15T20:26:35.000Z | production_apps/ESPRESO/src/mesh/elements/volume/unknownvolume.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | null | null | null | production_apps/ESPRESO/src/mesh/elements/volume/unknownvolume.cpp | readex-eu/readex-apps | 38493b11806c306f4e8f1b7b2d97764b45fac8e2 | [
"BSD-3-Clause"
] | 1 | 2018-09-30T19:04:38.000Z | 2018-09-30T19:04:38.000Z |
#include <cstring>
#include "unknownvolume.h"
#include "../plane/unknownplane.h"
#include "../../../basis/utilities/utils.h"
using namespace espreso;
size_t UnknownVolume::fillFaces()
{
std::vector<Element*> elements;
for (size_t i = 0; i < _indices.size(); i++) {
elements.insert(elements.end(), _nodes[_indices... | 30.395349 | 126 | 0.65723 | readex-eu |
192355acb81069c612d29b61b822dd94916c34c5 | 1,833 | cpp | C++ | checks/csafmt/indentation/0/decls.cpp | cppguru/bde_verify | 8a95aa4970ef299f1f7632e9de1e58fd86c247f8 | [
"Apache-2.0"
] | 46 | 2015-02-24T16:47:08.000Z | 2021-11-09T05:39:30.000Z | checks/csafmt/indentation/0/decls.cpp | cppguru/bde_verify | 8a95aa4970ef299f1f7632e9de1e58fd86c247f8 | [
"Apache-2.0"
] | 7 | 2015-02-05T22:17:16.000Z | 2021-05-03T15:46:40.000Z | checks/csafmt/indentation/0/decls.cpp | cppguru/bde_verify | 8a95aa4970ef299f1f7632e9de1e58fd86c247f8 | [
"Apache-2.0"
] | 23 | 2015-04-22T15:39:58.000Z | 2021-11-09T05:39:19.000Z | // decls.cpp -*-C++-*-
void f()
{
char aaaa;
int bb;
double ddddd;
float ee;
unsigned gggggg;
int hhhhhhhhhh;
int iii;
int kkkkkkk, llllll;
char *mmmm;
int nnnnnn;
double& ooooooooo = ddddd;
char *pppppppppp;... | 19.294737 | 79 | 0.565739 | cppguru |
192549eba35fbc312a22c9b57177f2c63f6a5475 | 2,754 | cpp | C++ | src/brevity/tests/rep/Manager.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | 4 | 2015-12-16T06:43:14.000Z | 2020-01-24T06:05:47.000Z | src/brevity/tests/rep/Manager.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | src/brevity/tests/rep/Manager.cpp | LegalizeAdulthood/cimple | 5ec70784f2ee3e455a2258f82b07c0dacccb4093 | [
"MIT"
] | null | null | null | /*NOCHKSRC*/
//==============================================================================
//
// PLEASE DO NOT EDIT; THIS FILE WAS AUTOMATICALLY GENERATED BY GENCLASS 1.1.2
//
//==============================================================================
#include <cimple/Meta_Class.h>
#include <cimple/Meta_Proper... | 21.184615 | 82 | 0.654684 | LegalizeAdulthood |
1929d5b9961c3ff8a27f540094bbe7cf42f73afa | 18,427 | hpp | C++ | deus/deus.hpp | messer-cpp/veiler | d827f01faba481f4fbb41515af2de8b3872d64c3 | [
"BSL-1.0"
] | 2 | 2015-10-31T05:47:45.000Z | 2018-03-25T01:28:44.000Z | deus/deus.hpp | messer-cpp/veiler | d827f01faba481f4fbb41515af2de8b3872d64c3 | [
"BSL-1.0"
] | null | null | null | deus/deus.hpp | messer-cpp/veiler | d827f01faba481f4fbb41515af2de8b3872d64c3 | [
"BSL-1.0"
] | 1 | 2020-05-12T11:15:07.000Z | 2020-05-12T11:15:07.000Z | //Copyright (C) 2012-2018 I
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include<utility>
#include<tuple>
#include<variant>
#include<type_traits>
#include<veiler/temple/integer.hpp>
#include<veiler/temple/type.hp... | 44.617433 | 291 | 0.691214 | messer-cpp |
192d57c76abcf09e67f526c4b0611837dcda0b27 | 1,137 | cpp | C++ | Idf/view/PropConectInform.cpp | jmarranz/idf | 2b08e508e943624979cfb1fe1d559e84c0cfe8e1 | [
"MIT"
] | 1 | 2017-10-27T11:48:13.000Z | 2017-10-27T11:48:13.000Z | Idf/view/PropConectInform.cpp | jmarranz/idf | 2b08e508e943624979cfb1fe1d559e84c0cfe8e1 | [
"MIT"
] | null | null | null | Idf/view/PropConectInform.cpp | jmarranz/idf | 2b08e508e943624979cfb1fe1d559e84c0cfe8e1 | [
"MIT"
] | null | null | null | // PropConectInform.cpp : implementation file
//
#include "stdafx.h"
#include "..\Idf.h"
#include "PropConectInform.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPropCo... | 24.191489 | 79 | 0.637643 | jmarranz |
19301a21061865fd092216a515e97bebb83696c0 | 304 | cpp | C++ | problemsets/Brazil/URI/URI ONLINE/1020.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Brazil/URI/URI ONLINE/1020.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/Brazil/URI/URI ONLINE/1020.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
using namespace std;
int main() {
int N;
scanf("%d",&N);
printf("%d ano(s)\n", N/365); N%=365;
printf("%d mes(es)\n", N/30); N%=30;
printf("%d dia(s)\n", N);
return 0;
}
| 14.47619 | 41 | 0.532895 | juarezpaulino |
19322e5713a405c53638f53ca5ba5cc835b6e5ad | 1,679 | cpp | C++ | asl/net/INetEndpoint.cpp | artcom/asl | d47748983678c245ac2da3b5de56245ac41768fe | [
"BSL-1.0"
] | 2 | 2016-01-11T01:06:11.000Z | 2019-07-24T02:27:13.000Z | asl/net/INetEndpoint.cpp | artcom/asl | d47748983678c245ac2da3b5de56245ac41768fe | [
"BSL-1.0"
] | null | null | null | asl/net/INetEndpoint.cpp | artcom/asl | d47748983678c245ac2da3b5de56245ac41768fe | [
"BSL-1.0"
] | 1 | 2016-01-31T18:14:37.000Z | 2016-01-31T18:14:37.000Z | /* __ ___ ____ _____ ______ _______ ________ _______ ______ _____ ____ ___ __
//
// Copyright (C) 1993-2012, ART+COM AG Berlin, Germany <www.artcom.de>
//
// This file is part of the ART+COM Standard Library (asl).
//
// It is distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_... | 31.092593 | 89 | 0.671828 | artcom |
19375e858fa97b18555acfeef046084b1dee2f35 | 4,320 | cpp | C++ | apps/vaporgui/guis/instancetable.cpp | yyr/vapor | cdebac81212ffa3f811064bbd7625ffa9089782e | [
"BSD-3-Clause"
] | null | null | null | apps/vaporgui/guis/instancetable.cpp | yyr/vapor | cdebac81212ffa3f811064bbd7625ffa9089782e | [
"BSD-3-Clause"
] | null | null | null | apps/vaporgui/guis/instancetable.cpp | yyr/vapor | cdebac81212ffa3f811064bbd7625ffa9089782e | [
"BSD-3-Clause"
] | null | null | null | //************************************************************************
// *
// Copyright (C) 2006 *
// University Corporation for Atmospheric Research *
// All Rights Reserved *
// *
//**********************************************************... | 32 | 107 | 0.684028 | yyr |
19388597e077be2db928e863add0ca2254cf5cba | 5,966 | cpp | C++ | BaldLionEngine/src/BaldLion/Core/Memory/MemoryManager.cpp | Efore/BaldLionEngine | ebd915805533a767b67690ca8749d1454a6fd379 | [
"Apache-2.0"
] | null | null | null | BaldLionEngine/src/BaldLion/Core/Memory/MemoryManager.cpp | Efore/BaldLionEngine | ebd915805533a767b67690ca8749d1454a6fd379 | [
"Apache-2.0"
] | null | null | null | BaldLionEngine/src/BaldLion/Core/Memory/MemoryManager.cpp | Efore/BaldLionEngine | ebd915805533a767b67690ca8749d1454a6fd379 | [
"Apache-2.0"
] | null | null | null | #include "blpch.h"
#include "MemoryManager.h"
namespace BaldLion
{
namespace Memory
{
FreeListAllocator* MemoryManager::s_freeListMainAllocator;
FreeListAllocator* MemoryManager::s_freeListRendererAllocator;
FreeListAllocator* MemoryManager::s_freeListECSAllocator;
LinearAllocator* MemoryManager::s_linearF... | 29.83 | 222 | 0.752095 | Efore |
19389848f17f62ef6b908ef763c73248bf357406 | 7,855 | cpp | C++ | src/SUAPI-CppWrapper/model/ImageRep.cpp | kant/Sketchup-API-C-Wrapper | 807f450fc80d4111ac3a4f057013f300bca07bff | [
"MIT"
] | 20 | 2017-04-05T07:29:44.000Z | 2022-01-10T18:41:42.000Z | src/SUAPI-CppWrapper/model/ImageRep.cpp | kant/Sketchup-API-C-Wrapper | 807f450fc80d4111ac3a4f057013f300bca07bff | [
"MIT"
] | 42 | 2017-05-21T07:47:14.000Z | 2019-10-31T16:19:00.000Z | src/SUAPI-CppWrapper/model/ImageRep.cpp | kant/Sketchup-API-C-Wrapper | 807f450fc80d4111ac3a4f057013f300bca07bff | [
"MIT"
] | 9 | 2017-04-20T13:03:13.000Z | 2022-02-08T23:53:36.000Z | //
// ImageRep.cpp
//
// Sketchup C++ Wrapper for C API
// MIT License
//
// Copyright (c) 2017 Tom Kaneko
//
// 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, includin... | 29.86692 | 135 | 0.698663 | kant |
193ae3868100cafcdb7aff55ea5f319a852ed57e | 1,011 | hpp | C++ | net/include/HttpHeaderParser.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 27 | 2019-04-27T00:51:22.000Z | 2022-03-30T04:05:44.000Z | net/include/HttpHeaderParser.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 9 | 2020-05-03T12:17:50.000Z | 2021-10-15T02:18:47.000Z | net/include/HttpHeaderParser.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 1 | 2019-04-16T01:45:36.000Z | 2019-04-16T01:45:36.000Z | #ifndef __OBOTCHA_HTTP_HEADER_PARSER_HPP__
#define __OBOTCHA_HTTP_HEADER_PARSER_HPP__
#include "Object.hpp"
#include "StrongPointer.hpp"
#include "ByteRingArrayReader.hpp"
#include "HttpHeader.hpp"
namespace obotcha {
DECLARE_CLASS(HttpHeaderParser) {
public:
enum ParseLineStatus {
LineParseStart = 0, /... | 18.722222 | 61 | 0.688427 | wangsun1983 |
193c01958bfd467dd6a38942486f63e1c7c3d873 | 973 | hpp | C++ | macOS/bootstrap/bootstrap.hpp | unknownv2/CoreHook.ProcessInjection | 8c07124f54d748c7e33d40397c4adb5c5af9d382 | [
"MIT"
] | 1 | 2021-07-21T19:13:35.000Z | 2021-07-21T19:13:35.000Z | macOS/bootstrap/bootstrap.hpp | unknownv2/CoreHook.ProcessInjection | 8c07124f54d748c7e33d40397c4adb5c5af9d382 | [
"MIT"
] | 1 | 2018-07-04T23:17:48.000Z | 2018-07-05T12:16:38.000Z | macOS/bootstrap/bootstrap.hpp | unknownv2/CoreHook.ProcessInjection | 8c07124f54d748c7e33d40397c4adb5c5af9d382 | [
"MIT"
] | 1 | 2019-05-16T00:37:08.000Z | 2019-05-16T00:37:08.000Z | #ifndef bootstrap_hpp
#define bootstrap_hpp
#include <stdio.h>
#define DLLEXPORT __attribute__((visibility("default")))
extern "C" void bootstrap(ptrdiff_t offset, void *param, size_t psize, void *dummy) DLLEXPORT;
#define BYTE unsigned char
#define FunctionNameMax 256
struct BinaryLoaderArgs
{
bool Verbose;
... | 23.166667 | 94 | 0.758479 | unknownv2 |
19478360b04b61f899891b68293abf09f92a59e5 | 10,254 | cpp | C++ | src/httphandlerfactory.cpp | sputnik-maps/maps-express | 2da1d5601d3f7a74c5eab79a6716736d223bf2f6 | [
"MIT"
] | 6 | 2017-06-20T13:14:20.000Z | 2019-09-18T06:12:37.000Z | src/httphandlerfactory.cpp | sputnik-maps/maps-express | 2da1d5601d3f7a74c5eab79a6716736d223bf2f6 | [
"MIT"
] | 1 | 2018-04-29T14:01:56.000Z | 2018-04-29T14:01:56.000Z | src/httphandlerfactory.cpp | sputnik-maps/maps-express | 2da1d5601d3f7a74c5eab79a6716736d223bf2f6 | [
"MIT"
] | 5 | 2017-06-20T13:39:22.000Z | 2019-09-18T06:13:02.000Z | #include "httphandlerfactory.h"
#include <proxygen/httpserver/RequestHandler.h>
#include <proxygen/lib/http/HTTPMessage.h>
#include "config.h"
#include "couchbase_cacher.h"
#include "json_util.h"
#include "mon_handler.h"
#include "nodes_monitor.h"
#include "status_monitor.h"
#include "tile_cacher.h"
#include "tile_ha... | 43.449153 | 111 | 0.579871 | sputnik-maps |
19481ea85a85eefcf9d4776da4dc8717b532fc66 | 1,157 | cpp | C++ | GraphicsFramework/GraphicsFramework/core/Object.cpp | sidu7/GraphicsFramework | c81c021a9a1d479c3c18eba533318ce84481ca5c | [
"Apache-2.0"
] | null | null | null | GraphicsFramework/GraphicsFramework/core/Object.cpp | sidu7/GraphicsFramework | c81c021a9a1d479c3c18eba533318ce84481ca5c | [
"Apache-2.0"
] | null | null | null | GraphicsFramework/GraphicsFramework/core/Object.cpp | sidu7/GraphicsFramework | c81c021a9a1d479c3c18eba533318ce84481ca5c | [
"Apache-2.0"
] | null | null | null | #include "Object.h"
#include "../utils/JSONHelper.h"
#include "ShapeManager.h"
#include "../opengl/Shader.h"
#include "Components/Components.h"
#include "../opengl/Renderer.h"
#include "../opengl/Texture.h"
#include "Components/Transform.h"
#include "Components/Material.h"
#include "Components/RotateInCircle.h"
#includ... | 21.830189 | 73 | 0.707865 | sidu7 |
1949fbe3865c516c2e371721ee5d6187e7415673 | 176 | cpp | C++ | Lab7/src/Task3.cpp | Inaceat/SP | 983e2de5900db8f36b2b04f95c3b4318f9c8f6fe | [
"MIT"
] | 1 | 2019-12-10T10:34:28.000Z | 2019-12-10T10:34:28.000Z | Lab7/src/Task3.cpp | Inaceat/SP | 983e2de5900db8f36b2b04f95c3b4318f9c8f6fe | [
"MIT"
] | null | null | null | Lab7/src/Task3.cpp | Inaceat/SP | 983e2de5900db8f36b2b04f95c3b4318f9c8f6fe | [
"MIT"
] | 1 | 2019-11-26T05:20:30.000Z | 2019-11-26T05:20:30.000Z | #include "stdafx.h"
#include "Tasks.hpp"
#include "ChategClient.hpp"
void Task3::Do()
{
auto client = new Chateg::ChategClient();
client->Start();
delete client;
}
| 9.777778 | 42 | 0.659091 | Inaceat |
194b6c791974be4a28e56f25eaa89616b891f376 | 8,019 | cpp | C++ | src/Components.cpp | SwellLay/BaconPlugs | b081ed8a6cb8eb0cee85378e8a9c4aa1d27b757b | [
"Apache-2.0"
] | null | null | null | src/Components.cpp | SwellLay/BaconPlugs | b081ed8a6cb8eb0cee85378e8a9c4aa1d27b757b | [
"Apache-2.0"
] | null | null | null | src/Components.cpp | SwellLay/BaconPlugs | b081ed8a6cb8eb0cee85378e8a9c4aa1d27b757b | [
"Apache-2.0"
] | null | null | null | #include "BaconPlugs.hpp"
#include <jansson.h>
struct InternalFontMgr
{
static std::map< std::string, int > fontMap;
static int get( NVGcontext *vg, std::string resName )
{
if( fontMap.find( resName ) == fontMap.end() )
{
fontMap[ resName ] = nvgCreateFont( vg, resName.c_str(), assetPlugin( pl... | 27.091216 | 133 | 0.598828 | SwellLay |
194c55840cd663a5469b08b9d3889f3cdf14ae42 | 538 | cpp | C++ | Main course/Homework4/Problem1/Source files/MovingAverager.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Main course/Homework4/Problem1/Source files/MovingAverager.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Main course/Homework4/Problem1/Source files/MovingAverager.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | #include "MovingAverager.hpp"
MovingAverager::MovingAverager(const std::string& id, size_t windowSize)
: Averager(id),
windowSize(windowSize)
{
}
int MovingAverager::read() const
{
if (this->messages.size() < this->windowSize || this->windowSize == 0)
{
return this->Averager::read();
}
int sum = 0;
for (i... | 19.214286 | 72 | 0.667286 | nia-flo |
194c5aa98912575dbd2286626d754f9f6c8b9888 | 3,042 | hpp | C++ | contrib/MassSpectra/flexiblesusy/src/spectrum_generator_problems.hpp | sebhoof/gambit_1.5 | f9a3f788e3331067c555ae1a030420e903c6fdcd | [
"Unlicense"
] | 2 | 2020-09-08T20:05:27.000Z | 2021-04-26T07:57:56.000Z | contrib/MassSpectra/flexiblesusy/src/spectrum_generator_problems.hpp | sebhoof/gambit_1.5 | f9a3f788e3331067c555ae1a030420e903c6fdcd | [
"Unlicense"
] | 9 | 2020-10-19T09:56:17.000Z | 2021-05-28T06:12:03.000Z | contrib/MassSpectra/flexiblesusy/src/spectrum_generator_problems.hpp | patscott/gambit_1.4 | a50537419918089effc207e8b206489a5cfd2258 | [
"Unlicense"
] | 5 | 2020-09-08T02:23:34.000Z | 2021-03-23T08:48:04.000Z | // ====================================================================
// This file is part of FlexibleSUSY.
//
// FlexibleSUSY is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the Licens... | 42.84507 | 110 | 0.707101 | sebhoof |
194d3882de93eb3670f030525233322fb26c1457 | 1,364 | cpp | C++ | Codechef/CHEFFILT2.cpp | jceplaras/competitiveprogramming | d92cbedd31d9aa812a6084aea50e573886e5e6e4 | [
"MIT"
] | null | null | null | Codechef/CHEFFILT2.cpp | jceplaras/competitiveprogramming | d92cbedd31d9aa812a6084aea50e573886e5e6e4 | [
"MIT"
] | null | null | null | Codechef/CHEFFILT2.cpp | jceplaras/competitiveprogramming | d92cbedd31d9aa812a6084aea50e573886e5e6e4 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define FOR(i,a,b) for (int i = a; i <= b; i++)
#define FORN(i,N) for (int i = 0; i < N; i++)
#define FORD(i,a,b) for (int ... | 16.839506 | 68 | 0.495601 | jceplaras |
194dd687dae0075f8a48fd71e1355d9575ea9383 | 1,557 | cpp | C++ | src/jgw_play.cpp | jonathanmarp/jgw | 0ca017bd5e0073028afe0e0daafc362fc4994e06 | [
"MIT"
] | 5 | 2021-03-21T06:34:56.000Z | 2021-05-05T03:11:18.000Z | src/jgw_play.cpp | jonathanmarp/jgw | 0ca017bd5e0073028afe0e0daafc362fc4994e06 | [
"MIT"
] | 14 | 2021-04-02T09:06:47.000Z | 2022-03-02T05:12:11.000Z | src/jgw_play.cpp | thekotekjournal/jgw | 4a260af2260ea45c9607b29eee9104fe471cd126 | [
"MIT"
] | 6 | 2021-04-02T04:47:14.000Z | 2021-05-05T03:45:48.000Z | /* Library C++ */
#include <iostream>
#include "../app/include/sound.h"
#include "../app/include/structure.h"
#include "../app/include/fileshelp.h"
#include "../app/include/jgw_play.h"
void JGW_PLAY::SetStructRefrenchToZero(std::vector<compileSound>& __BUFF__)
{
__BUFF__[__BUFF__.size() - 1].S_HZ = 0;
__BUFF__[__BU... | 24.328125 | 84 | 0.662813 | jonathanmarp |
19526bf04fa98be8c7080adc417ac2586ef9752b | 1,205 | cpp | C++ | yelp/LT-418 Sentence Screen Fitting.cpp | yekesit/OA-or-Interview-Questions | 89c0a4db10c4ffde6d49835c0621f9ec2e04f141 | [
"MIT"
] | null | null | null | yelp/LT-418 Sentence Screen Fitting.cpp | yekesit/OA-or-Interview-Questions | 89c0a4db10c4ffde6d49835c0621f9ec2e04f141 | [
"MIT"
] | null | null | null | yelp/LT-418 Sentence Screen Fitting.cpp | yekesit/OA-or-Interview-Questions | 89c0a4db10c4ffde6d49835c0621f9ec2e04f141 | [
"MIT"
] | null | null | null | //
// Created by Ke Ye on 2019-08-08.
//
#include <iostream>
#include <vector>
using namespace std;
// Review here. Since the filling task can be repetitive, so we should record some previous situation to save time
// if there are much more loops in the future.
class Solution{
public:
int wordsTyping(vector<stri... | 28.690476 | 114 | 0.493776 | yekesit |
1954bde4a7105c8c36baa11522dee1e8f1e9171d | 681 | cpp | C++ | C++/C++ Fundamentals Sept 2019/03. FUNCTIONS, ARRAYS, AND VECTORS/codecpp/src/ClosestNumbers.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | 1 | 2019-07-21T13:00:31.000Z | 2019-07-21T13:00:31.000Z | C++/C++ Fundamentals Sept 2019/03. FUNCTIONS, ARRAYS, AND VECTORS/codecpp/src/ClosestNumbers.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | null | null | null | C++/C++ Fundamentals Sept 2019/03. FUNCTIONS, ARRAYS, AND VECTORS/codecpp/src/ClosestNumbers.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | null | null | null | #include<iostream>
#include <vector>
#include <cmath>
using namespace std;
void read(vector<int> &numbers, int size) {
for (int i = 0; i < size; ++i) {
cin >> numbers[i];
}
}
int main() {
int arrSize = 0;
cin >> arrSize;
vector<int> arr(arrSize);
read(arr, arrSize);
int absDiff ... | 17.461538 | 51 | 0.483113 | galin-kostadinov |
195ace1041792a7a12199ef9db96ec4c5c252ad8 | 1,381 | cpp | C++ | src/test/vector_test.cpp | Coolnesss/max-flow | 12e5acd32206f4b2f63e111600e7fa8f6eec9411 | [
"Apache-2.0"
] | null | null | null | src/test/vector_test.cpp | Coolnesss/max-flow | 12e5acd32206f4b2f63e111600e7fa8f6eec9411 | [
"Apache-2.0"
] | 2 | 2016-10-02T18:58:33.000Z | 2016-10-15T13:50:39.000Z | src/test/vector_test.cpp | Coolnesss/max-flow | 12e5acd32206f4b2f63e111600e7fa8f6eec9411 | [
"Apache-2.0"
] | null | null | null | typedef long long ll;
#include "catch.hpp"
#include "../data-structures/vector.h"
TEST_CASE( "Vector allocates zeros for size n", "[vector]" ) {
int n = 10;
vector<int> v(n);
for(int i = 0; i < n; i++) {
REQUIRE(v[i] == 0);
}
}
TEST_CASE( "Vector retains elements", "[vector]" ) {
... | 19.180556 | 86 | 0.43664 | Coolnesss |
195b05ddf0e85a8c496545b67243d8ae8101d719 | 2,856 | cpp | C++ | solutions/evaluate_division.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/evaluate_division.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | solutions/evaluate_division.cpp | kmykoh97/My-Leetcode | 0ffdea16c3025805873aafb6feffacaf3411a258 | [
"Apache-2.0"
] | null | null | null | // You are given equations in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating-point number). Given some queries, return the answers. If the answer does not exist, return -1.0.
// The input is always valid. You may assume that evaluating the queries will result... | 36.151899 | 234 | 0.545168 | kmykoh97 |
195d8cd161065eed828a654a30a1b4e3c14b4d1b | 5,895 | cc | C++ | modules/audio_processing/aec3/render_delay_controller.cc | imxiangpeng/webrtc | 8078c53c2f8ed487b1c6bbdf3d541f7a5884ed70 | [
"DOC",
"BSD-3-Clause"
] | 2 | 2019-09-10T03:51:29.000Z | 2022-03-17T02:49:27.000Z | modules/audio_processing/aec3/render_delay_controller.cc | imxiangpeng/webrtc | 8078c53c2f8ed487b1c6bbdf3d541f7a5884ed70 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | modules/audio_processing/aec3/render_delay_controller.cc | imxiangpeng/webrtc | 8078c53c2f8ed487b1c6bbdf3d541f7a5884ed70 | [
"DOC",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 33.117978 | 81 | 0.730789 | imxiangpeng |
1962b799269954123b3617d370ffd1701df2f62e | 497 | cpp | C++ | AED/6/6q6.cpp | Iigorsf/AED | 2151ef562be8088cd76efe7afb9e73b165027fa1 | [
"MIT"
] | null | null | null | AED/6/6q6.cpp | Iigorsf/AED | 2151ef562be8088cd76efe7afb9e73b165027fa1 | [
"MIT"
] | null | null | null | AED/6/6q6.cpp | Iigorsf/AED | 2151ef562be8088cd76efe7afb9e73b165027fa1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int matriz[6][4], maior;
for( int i=0; i<6; i++){
for( int j=0; j<4; j++){
cin>>matriz[i][j];
}
}
for( int i=0; i<6; i++){
maior = matriz[i][0];
for( int j=0; j<4; j++){
if(matriz[i][j]>maior){
maior=matriz[i][j];
}
}
for( int ... | 15.060606 | 34 | 0.466801 | Iigorsf |
1962fb2959da6a62045818e3a50bc8e5f41b5e28 | 6,427 | cpp | C++ | drlvm/vm/vmcore/src/kernel_classes/native/org_apache_harmony_vm_VMGenericsAndAnnotations.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 8 | 2015-11-04T06:06:35.000Z | 2021-07-04T13:47:36.000Z | drlvm/vm/vmcore/src/kernel_classes/native/org_apache_harmony_vm_VMGenericsAndAnnotations.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 1 | 2021-10-17T13:07:28.000Z | 2021-10-17T13:07:28.000Z | drlvm/vm/vmcore/src/kernel_classes/native/org_apache_harmony_vm_VMGenericsAndAnnotations.cpp | sirinath/Harmony | 724deb045a85b722c961d8b5a83ac7a697319441 | [
"Apache-2.0"
] | 13 | 2015-11-27T03:14:50.000Z | 2022-02-26T15:12:20.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 You under the Apache License, Version 2.0
* (the "License"); you... | 35.905028 | 125 | 0.660028 | sirinath |
1964d819831bb60550430afdf3a8ca8c6ee30711 | 1,696 | cpp | C++ | muscles/Telescope/src/main.cpp | valentinp72/Goto-Telescope | 6fcb9b1e2a3115e959872da628738de3241ed9f9 | [
"MIT"
] | null | null | null | muscles/Telescope/src/main.cpp | valentinp72/Goto-Telescope | 6fcb9b1e2a3115e959872da628738de3241ed9f9 | [
"MIT"
] | null | null | null | muscles/Telescope/src/main.cpp | valentinp72/Goto-Telescope | 6fcb9b1e2a3115e959872da628738de3241ed9f9 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include "Motor.cpp"
#include "Screen.hpp"
#include "ScreenLed.hpp"
#include "ScreenButton.hpp"
Screen * s;
ScreenLed * ledEmergency;
ScreenLed * ledRunning;
ScreenLed * ledArmed;
#define LED_BLUE 47
#define LED_GREEN 46
#define LED_RED 45
ScreenButton * btnStart;
ScreenButton * btnStop;
u... | 20.190476 | 71 | 0.700472 | valentinp72 |
196985a8ac693dd5f6bf49b23e8026af08b50a97 | 2,527 | cc | C++ | edas/src/model/ListScaleOutEcuRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | edas/src/model/ListScaleOutEcuRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | edas/src/model/ListScaleOutEcuRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 23.398148 | 84 | 0.742778 | aliyun |
196a2b24c8368e877fc4abf5be65ded478dfd3de | 1,057 | cpp | C++ | dynamic_programming/alphacode.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | 1 | 2020-08-11T17:50:01.000Z | 2020-08-11T17:50:01.000Z | dynamic_programming/alphacode.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | null | null | null | dynamic_programming/alphacode.cpp | ankit2001/CP_Algos | eadc0f9cd92a5a01791e3171dfe894e6db948b2b | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
string s;
while (cin >> s) {
if (s == "0") {
break;
}
int len = s.length();
long long dp[len + 1];
bool vis[len + 1];
memset (vis, false, sizeof(vis));
function <... | 21.14 | 59 | 0.375591 | ankit2001 |
196ce0d6a01b2638a5ac77fa4ce3d8ae5f8fc2a8 | 8,065 | cpp | C++ | src/CWindowManager.cpp | AGLExport/ilm-manager | 6ba0d1f9466693c9c9f30447d50c6b91b40712d2 | [
"Apache-2.0"
] | null | null | null | src/CWindowManager.cpp | AGLExport/ilm-manager | 6ba0d1f9466693c9c9f30447d50c6b91b40712d2 | [
"Apache-2.0"
] | null | null | null | src/CWindowManager.cpp | AGLExport/ilm-manager | 6ba0d1f9466693c9c9f30447d50c6b91b40712d2 | [
"Apache-2.0"
] | 1 | 2020-01-16T11:37:36.000Z | 2020-01-16T11:37:36.000Z | #include "CWindowManager.hpp"
#include <string>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <unistd.h>
//-----------------------------------------------------------------------------
CWindowManager::CWindowManager()
{
}
//-----------------------------------------------------------------... | 26.617162 | 128 | 0.566894 | AGLExport |
196dfc719a1a0bf84ab9173208b49f035b469815 | 3,697 | cpp | C++ | tests/src/calc_helper.cpp | DmitryDzz/calculator-comrade-lib | 107930ef7df88b330b800993028b35d08d5d78f6 | [
"MIT"
] | 4 | 2021-01-18T03:11:14.000Z | 2022-01-29T09:17:06.000Z | tests/src/calc_helper.cpp | DmitryDzz/calculator-comrade-lib | 107930ef7df88b330b800993028b35d08d5d78f6 | [
"MIT"
] | 32 | 2018-10-11T22:05:14.000Z | 2019-05-26T16:25:38.000Z | tests/src/calc_helper.cpp | DmitryDzz/calculator-comrade-lib | 107930ef7df88b330b800993028b35d08d5d78f6 | [
"MIT"
] | null | null | null | /**
* Calculator Comrade Library
* License: https://github.com/DmitryDzz/calculator-comrade-lib/blob/master/LICENSE
* Author: Dmitry Dzakhov
* Email: info@robot-mitya.ru
*/
#include "calc_helper.h"
#define S1 ((int8_t)1)
using calculatorcomrade::Register;
using calculatorcomrade::Button;
int64_t calculatorcomra... | 34.551402 | 103 | 0.554233 | DmitryDzz |
1971188caa8747a255a45c7478e34dce6ea1288b | 1,135 | cpp | C++ | sources/2015/2015_03.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | 2 | 2021-02-01T13:19:37.000Z | 2021-02-25T10:39:46.000Z | sources/2015/2015_03.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | sources/2015/2015_03.cpp | tbielak/AoC_cpp | 69f36748536e60a1b88f9d44a285feff20df8470 | [
"MIT"
] | null | null | null | #include "2015_03.h"
namespace Day03_2015
{
int part_one(const string& s)
{
int x = 0;
int y = 0;
t_visitedLocations visited;
visited.insert(make_pair(x, y));
for (auto c : s)
{
if ('^' == c) y--;
if ('v' == c) y++;
if ('>' == c) x--;
if ('<' == c) x++;
visited.insert(make_pair(x, y));
... | 18.916667 | 82 | 0.553304 | tbielak |
1973007b1fc2d1651caffc6edd2faaf7f2e20760 | 2,206 | cpp | C++ | Kaminec/kits/JsonKit/Library.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 23 | 2017-06-23T11:58:27.000Z | 2022-03-05T06:58:49.000Z | Kaminec/kits/JsonKit/Library.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 4 | 2017-12-08T11:41:19.000Z | 2021-04-03T17:50:39.000Z | Kaminec/kits/JsonKit/Library.cpp | kaniol-lck/Kaminec | bdbb6645035d6124a3772742362e683938b389fb | [
"BSD-2-Clause"
] | 5 | 2019-02-19T13:03:42.000Z | 2021-11-04T13:58:04.000Z | #include "Library.h"
#include "kits/Ruler/Ruler.h"
#include "assistance/utility.h"
#include "assistance/systeminfo.h"
#include <QUrl>
#include <QDebug>
Library::Library(const QVariant &libraryVariant) :
libraryVariant_(libraryVariant),
name_(value(libraryVariant_, "name").toString()),
nameList_(name_.split(":"))
... | 23.221053 | 103 | 0.674977 | kaniol-lck |
1974c090fc959d941cf0da447f38ede3d8361c74 | 21,179 | cpp | C++ | cl_dll/game_controls/vgui_TeamFortressViewport.cpp | renannprado/zombie_master | 8c9dff1877703ed0c90367ce94a59f7e76e1c4a8 | [
"MIT"
] | null | null | null | cl_dll/game_controls/vgui_TeamFortressViewport.cpp | renannprado/zombie_master | 8c9dff1877703ed0c90367ce94a59f7e76e1c4a8 | [
"MIT"
] | null | null | null | cl_dll/game_controls/vgui_TeamFortressViewport.cpp | renannprado/zombie_master | 8c9dff1877703ed0c90367ce94a59f7e76e1c4a8 | [
"MIT"
] | null | null | null | //=============================================================================
// Copyright (c) Zombie Master Development Team. All rights reserved.
// The use and distribution terms for this software are covered by the MIT
// License (http://opensource.org/licenses/mit-license.php) which
// can be found in the file L... | 28.314171 | 201 | 0.653761 | renannprado |
197993a7d4e72c93beca0516f5ddf9a9626db320 | 1,269 | cpp | C++ | rpzwh_2_dtm/cpps/solarianLED.cpp | blusky-cloud/Raspi-Code | 6296a04d34819eed9b3a899bf9ae8c3cd4423c1d | [
"BSL-1.0"
] | 1 | 2022-02-08T02:32:56.000Z | 2022-02-08T02:32:56.000Z | rpzwh_2_dtm/cpps/solarianLED.cpp | blusky-cloud/Raspi-Code | 6296a04d34819eed9b3a899bf9ae8c3cd4423c1d | [
"BSL-1.0"
] | null | null | null | rpzwh_2_dtm/cpps/solarianLED.cpp | blusky-cloud/Raspi-Code | 6296a04d34819eed9b3a899bf9ae8c3cd4423c1d | [
"BSL-1.0"
] | null | null | null | #include <iostream>
#include <wiringPi.h>
#include <csignal>
// global flag used to exit from the main loop
bool RUNNING = true;
// Blink an LED
void blink_led(int led, int time) {
digitalWrite(led, HIGH);
delay(time);
digitalWrite(led, LOW);
delay(time);
}
// Callback handle... | 25.38 | 76 | 0.588652 | blusky-cloud |
19858eb4249b6fe8b496190023cf7166a77780ba | 129 | cpp | C++ | dependencies/physx-4.1/source/foundation/src/PsAssert.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/foundation/src/PsAssert.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | dependencies/physx-4.1/source/foundation/src/PsAssert.cpp | realtehcman/-UnderwaterSceneProject | 72cbd375ef5e175bed8f4e8a4d117f5340f239a4 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:81996102777c13296c4e54e89a255faa84d682e88c4ec0130d884d277924cdd8
size 3192
| 32.25 | 75 | 0.883721 | realtehcman |
198a1c61a82d9d83bd12a5a7c4b17ddc4064d1c0 | 2,317 | cpp | C++ | SPOJ/MAIN12B.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/MAIN12B.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | SPOJ/MAIN12B.cpp | aqfaridi/Competitve-Programming-Codes | d055de2f42d3d6bc36e03e67804a1dd6b212241f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <sstream>
#include <vector>
#include <iomanip>
#include <cmath>
#include <set>
#include <map>
#include <queue>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
#define pb push_back
#define mp make_pair
#define... | 22.715686 | 80 | 0.430729 | aqfaridi |
198de845f1b0dd4ec09d9edf7d153f8a93673859 | 93 | cpp | C++ | src/IceRay/geometry/hfield/hfield.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRay/geometry/hfield/hfield.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRay/geometry/hfield/hfield.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | #include "./object/object.cpp"
#include "./generator/generator.cpp"
#include "./system.cpp" | 31 | 37 | 0.709677 | dmilos |
198ef882dff2f33f6a3626b7aabf5cb7730fd0e2 | 2,100 | hpp | C++ | src/ta12200/ta12200.hpp | moredu/upm | d6f76ff8c231417666594214679c49399513112e | [
"MIT"
] | 619 | 2015-01-14T23:50:18.000Z | 2019-11-08T14:04:33.000Z | src/ta12200/ta12200.hpp | moredu/upm | d6f76ff8c231417666594214679c49399513112e | [
"MIT"
] | 576 | 2015-01-02T09:55:14.000Z | 2019-11-12T15:31:10.000Z | src/ta12200/ta12200.hpp | moredu/upm | d6f76ff8c231417666594214679c49399513112e | [
"MIT"
] | 494 | 2015-01-14T18:33:56.000Z | 2019-11-07T10:08:15.000Z | /*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2014 Intel Corporation.
*
* This program and the accompanying materials are made available under the
* terms of the The MIT License which is available at
* https://opensource.org/licenses/MIT.
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include... | 21 | 79 | 0.647619 | moredu |
199036f162864709822bb64d4dd0d57b689c307f | 485 | cpp | C++ | title/remove_special_char.cpp | hurenhe2008/algorithm | 2afb03bf91a9d234df5396e6b1d7fe8f57daa6c7 | [
"MIT"
] | null | null | null | title/remove_special_char.cpp | hurenhe2008/algorithm | 2afb03bf91a9d234df5396e6b1d7fe8f57daa6c7 | [
"MIT"
] | null | null | null | title/remove_special_char.cpp | hurenhe2008/algorithm | 2afb03bf91a9d234df5396e6b1d7fe8f57daa6c7 | [
"MIT"
] | null | null | null |
/*
@func
remove_special_char - remove special char in string and
adjust valid chars to front.
@params
array - the unsigned int array
num - the array size
@return
the remove special char numbers
*/
unsigned remove_special_char(char *str, char ch)
{
unsigned cnt = 0;
while(*str) {
if (c... | 16.166667 | 71 | 0.581443 | hurenhe2008 |
1994a2a0d61bc0c34ccff380cb0844352e9eb80c | 9,212 | hpp | C++ | include/fl/filter/gaussian/update_policy/multi_sensor_sigma_point_update_policy.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | include/fl/filter/gaussian/update_policy/multi_sensor_sigma_point_update_policy.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | include/fl/filter/gaussian/update_policy/multi_sensor_sigma_point_update_policy.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... | 35.844358 | 80 | 0.518563 | aeolusbot-tommyliu |
1996fdaa0551891e72d438070b60e5bb7fb1420e | 5,847 | cpp | C++ | test/configuration_test.cpp | fuersten/csvsqldb | 1b766ddf253805e31f9840cd3081cba559018a06 | [
"BSD-3-Clause"
] | 5 | 2015-09-10T08:53:41.000Z | 2020-05-30T18:42:20.000Z | test/configuration_test.cpp | fuersten/csvsqldb | 1b766ddf253805e31f9840cd3081cba559018a06 | [
"BSD-3-Clause"
] | 20 | 2015-09-29T16:16:07.000Z | 2021-06-13T08:08:05.000Z | test/configuration_test.cpp | fuersten/csvsqldb | 1b766ddf253805e31f9840cd3081cba559018a06 | [
"BSD-3-Clause"
] | 3 | 2015-09-09T22:51:44.000Z | 2020-11-11T13:19:42.000Z | //
// csvsqldb test
//
// BSD 3-Clause License
// Copyright (c) 2015, Lars-Christian Fürstenberg
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted
// provided that the following conditions are met:
//
// 1. Redistributions of source code ... | 41.764286 | 125 | 0.725158 | fuersten |
199ba2a1a5ab75d21a4eea2a1a314c03e1d56c92 | 298 | cpp | C++ | 121-best-time-to-buy-and-sell-stock/121-best-time-to-buy-and-sell-stock.cpp | gupabhi100/Leetcode- | a0bb35c57efb17dc2c5105287582b4f680eacf82 | [
"MIT"
] | null | null | null | 121-best-time-to-buy-and-sell-stock/121-best-time-to-buy-and-sell-stock.cpp | gupabhi100/Leetcode- | a0bb35c57efb17dc2c5105287582b4f680eacf82 | [
"MIT"
] | null | null | null | 121-best-time-to-buy-and-sell-stock/121-best-time-to-buy-and-sell-stock.cpp | gupabhi100/Leetcode- | a0bb35c57efb17dc2c5105287582b4f680eacf82 | [
"MIT"
] | null | null | null | class Solution {
public:
int maxProfit(vector<int> &prices) {
int max_profit = 0;
int min_price=INT_MAX;
for(int i=0;i<prices.size();i++) {
min_price=min(min_price, prices[i]);
max_profit=max(max_profit,prices[i]-min_price);
}
return max_profit;
}
}; | 22.923077 | 55 | 0.610738 | gupabhi100 |
199ce77d7426a268dfd6bfb95c796485ea554c82 | 1,176 | cpp | C++ | local/codes/c1068_1.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2021-02-22T03:39:24.000Z | 2021-02-22T03:39:24.000Z | local/codes/c1068_1.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | local/codes/c1068_1.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | /*************************************************************
* > File Name : c1068_1.cpp
* > Author : Tony
* > Created Time : 2019/09/22 15:09:20
* > Algorithm : 数位
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
typede... | 25.565217 | 65 | 0.332483 | Tony031218 |
199e6e5a24a13f3bb750ca0cfb4278098c43727d | 1,284 | hpp | C++ | src/mlpack/methods/ann/init_rules/init_rules_traits.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 675 | 2019-02-07T01:23:19.000Z | 2022-03-28T05:45:10.000Z | src/mlpack/methods/ann/init_rules/init_rules_traits.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 843 | 2019-01-25T01:06:46.000Z | 2022-03-16T11:15:53.000Z | src/mlpack/methods/ann/init_rules/init_rules_traits.hpp | RMaron/mlpack | a179a2708d9555ab7ee4b1e90e0c290092edad2e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 83 | 2019-02-20T06:18:46.000Z | 2022-03-20T09:36:09.000Z | /**
* @file init_rules_traits.hpp
* @author Marcus Edel
*
* This provides the InitTraits class, a template class to get information
* about various initialization methods.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have receiv... | 31.317073 | 79 | 0.764019 | RMaron |
199e8b1405588dfd1b1d19c6930bd7f41e37ac29 | 7,487 | hpp | C++ | include/ripple/algorithm/reduce.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | 4 | 2021-04-25T16:38:12.000Z | 2021-12-23T08:32:15.000Z | include/ripple/algorithm/reduce.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | include/ripple/algorithm/reduce.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | /**=--- ripple/algorithm/reduce.hpp ------------------------ -*- C++ -*- ---==**
*
* Ripple
*
* Copyright (c) 2019 - 2021 Rob Clucas.
*
* This file is distributed under the MIT License. See LICENSE for details.
*
*==-----------------------------------------... | 30.559184 | 80 | 0.627488 | robclu |
19a26c9b08c887f69438174a9da8a88684613833 | 16,594 | cpp | C++ | src/gpu/gl/GrGLProgramDesc.cpp | MIPS/external-chromium_org-third_party-skia | 4d54ce897cc8ad20f597acfd594438a3be98753f | [
"BSD-3-Clause"
] | 33 | 2018-07-04T09:38:12.000Z | 2021-06-19T06:11:45.000Z | src/gpu/gl/GrGLProgramDesc.cpp | MIPS/external-chromium_org-third_party-skia | 4d54ce897cc8ad20f597acfd594438a3be98753f | [
"BSD-3-Clause"
] | null | null | null | src/gpu/gl/GrGLProgramDesc.cpp | MIPS/external-chromium_org-third_party-skia | 4d54ce897cc8ad20f597acfd594438a3be98753f | [
"BSD-3-Clause"
] | 13 | 2018-07-01T01:55:17.000Z | 2021-08-03T10:55:45.000Z | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gl/builders/GrGLProgramBuilder.h"
#include "GrGLProgramDesc.h"
#include "GrBackendProcessorFactory.h"
#include "GrProcessor.h"
#include "GrGpuGL.h"
#include "GrOptDr... | 39.322275 | 100 | 0.640533 | MIPS |
19a35a7d8f443c94914d5258249e275ed64e54c1 | 1,208 | cc | C++ | src/sycltest/SYCLCore/chooseDevice.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 9 | 2021-03-02T08:40:18.000Z | 2022-01-24T14:31:40.000Z | src/sycltest/SYCLCore/chooseDevice.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 158 | 2020-03-22T19:46:40.000Z | 2022-03-24T09:51:35.000Z | src/sycltest/SYCLCore/chooseDevice.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 26 | 2020-03-20T15:18:41.000Z | 2022-03-14T16:58:07.000Z | #include <iostream>
#include <vector>
#include <CL/sycl.hpp>
#include "chooseDevice.h"
namespace cms::sycltools {
std::vector<sycl::device> const& enumerateDevices(bool verbose) {
static const std::vector<sycl::device> devices = sycl::device::get_devices(sycl::info::device_type::all);
if (verbose) {
... | 35.529412 | 119 | 0.634934 | alexstrel |
19a51864a93d2ea589724e919e60d8aab24c4616 | 1,352 | cc | C++ | src/mouse.cc | klantz81/input-devices | f0df3af537b38eb446fc5a49a0b6a524a4e1a10b | [
"MIT"
] | 15 | 2016-04-01T08:16:14.000Z | 2020-03-16T03:02:40.000Z | src/mouse.cc | klantz81/input-devices | f0df3af537b38eb446fc5a49a0b6a524a4e1a10b | [
"MIT"
] | null | null | null | src/mouse.cc | klantz81/input-devices | f0df3af537b38eb446fc5a49a0b6a524a4e1a10b | [
"MIT"
] | 1 | 2019-12-18T01:28:50.000Z | 2019-12-18T01:28:50.000Z | #include "mouse.h"
cMouse::cMouse() {
active = false;
mouse_ev = new input_event();
mouse_st = new mouse_state();
for (int i = 0; i < KEY_CNT; i++) mouse_st->button[i] = 0;
for (int i = 0; i < REL_CNT; i++) mouse_st->axis[i] = 0;
mouse_fd = open(MOUSE_DEV, O_RDONLY | O_NONBLOCK);
if (mouse_fd > -1) {
ioctl(m... | 24.142857 | 91 | 0.64497 | klantz81 |
19a934a235ac2835a2dc9d90def7f6954c8cacc3 | 6,617 | cc | C++ | extern/quadriflow/3rd/lemon-1.3.1/test/graph_utils_test.cc | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 471 | 2018-07-08T21:18:34.000Z | 2022-03-26T09:26:23.000Z | extern/quadriflow/3rd/lemon-1.3.1/test/graph_utils_test.cc | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 141 | 2019-03-27T16:19:06.000Z | 2022-03-03T10:11:47.000Z | extern/quadriflow/3rd/lemon-1.3.1/test/graph_utils_test.cc | rbabari/blender | 6daa85f14b2974abfc3d0f654c5547f487bb3b74 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 172 | 2015-01-25T15:16:53.000Z | 2022-01-31T08:25:36.000Z | /* -*- mode: C++; indent-tabs-mode: nil; -*-
*
* This file is a part of LEMON, a generic C++ optimization library.
*
* Copyright (C) 2003-2009
* Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
* (Egervary Research Group on Combinatorial Optimization, EGRES).
*
* Permission to use, modify and distribut... | 30.353211 | 79 | 0.600423 | rbabari |
19ac234b225e623d9dca10ea5833d3460b46746c | 18,137 | cxx | C++ | inetsrv/iis/svcs/infocomm/extend/w3ssl_config.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/iis/svcs/infocomm/extend/w3ssl_config.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/iis/svcs/infocomm/extend/w3ssl_config.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
w3ssl_config.cxx
Abstract:
IIS Services IISADMIN Extension
adjust HTTPFilter service imagepath based on IIS mode (old vs new)
Author:
Jaroslav Dunajsky (11/05/2001)
--*/
#include <cominc.hxx>
#include <string.h>
... | 26.171717 | 86 | 0.459889 | npocmaka |
19acbc4c7a8592b5cd71423c27ab77eef5d22233 | 1,477 | cpp | C++ | datasets/github_cpp_10/7/18.cpp | yijunyu/demo-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | 1 | 2019-05-03T19:27:45.000Z | 2019-05-03T19:27:45.000Z | datasets/github_cpp_10/7/18.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null | datasets/github_cpp_10/7/18.cpp | yijunyu/demo-vscode-fast | 11c0c84081a3181494b9c469bda42a313c457ad2 | [
"BSD-2-Clause"
] | null | null | null |
#include "merge-sort.hpp"
#include <iostream>
#include <climits>
using namespace std;
MergeSort::MergeSort(int array_size)
{
size = array_size;
array = new int[size];
setElements();
}
MergeSort::~MergeSort()
{
delete[] array;
}
int MergeSort::getSize()
{
return size;
}
void MergeSor... | 15.547368 | 69 | 0.440081 | yijunyu |
19aedad31efd59dc298d661f578552159aa64712 | 1,761 | cc | C++ | asylo/platform/posix/clock_time_test_loader.cc | mzohreva/asylo | f6c79ec9775f5579cf5587745f5c64243898e136 | [
"Apache-2.0"
] | 890 | 2018-05-03T17:27:37.000Z | 2022-03-30T03:54:35.000Z | asylo/platform/posix/clock_time_test_loader.cc | mzohreva/asylo | f6c79ec9775f5579cf5587745f5c64243898e136 | [
"Apache-2.0"
] | 71 | 2018-05-03T22:36:07.000Z | 2021-10-04T22:58:59.000Z | asylo/platform/posix/clock_time_test_loader.cc | mzohreva/asylo | f6c79ec9775f5579cf5587745f5c64243898e136 | [
"Apache-2.0"
] | 127 | 2018-05-03T21:03:47.000Z | 2022-03-28T20:21:43.000Z | /*
*
* Copyright 2019 Asylo authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 32.611111 | 76 | 0.742192 | mzohreva |
19af1f39d75c27a6499933e4960cf4dda88d20a8 | 1,117 | hpp | C++ | model/behaviour/Farsighted.hpp | xdanielsb/BeastCollider | a4038c78b183cdb93fcbd4ae1402ca26fe553bbd | [
"Apache-2.0"
] | 2 | 2019-12-23T09:07:11.000Z | 2020-08-10T12:10:23.000Z | model/behaviour/Farsighted.hpp | xdanielsb/BeastCollider | a4038c78b183cdb93fcbd4ae1402ca26fe553bbd | [
"Apache-2.0"
] | null | null | null | model/behaviour/Farsighted.hpp | xdanielsb/BeastCollider | a4038c78b183cdb93fcbd4ae1402ca26fe553bbd | [
"Apache-2.0"
] | null | null | null | #ifndef _CFarsighted
#define _CFarsighted
#include"./IBehaviour.hpp"
using namespace std;
/**
* Implementation of behaviour Farsignted
*
* A Farsighted animal estimates the trajectories of critters
* around it and adjusts its trajectory to avoid possible collisions.
*
*
*/
class FarsightedB:public Behaviour{
... | 24.822222 | 69 | 0.622202 | xdanielsb |
30aa63f65bb34b2363b048c7023c48dd61b4d31a | 1,885 | cpp | C++ | Carbonite/Source/Carbonite/Renderer/Mesh/Mesh.cpp | MarcasRealAccount/Carbonite | 583fb1b1a37eb5922c5196c87eb0abe6d20d6cda | [
"MIT"
] | null | null | null | Carbonite/Source/Carbonite/Renderer/Mesh/Mesh.cpp | MarcasRealAccount/Carbonite | 583fb1b1a37eb5922c5196c87eb0abe6d20d6cda | [
"MIT"
] | null | null | null | Carbonite/Source/Carbonite/Renderer/Mesh/Mesh.cpp | MarcasRealAccount/Carbonite | 583fb1b1a37eb5922c5196c87eb0abe6d20d6cda | [
"MIT"
] | null | null | null | #include "Mesh.h"
#include "Carbonite/Carbonite.h"
#include "Carbonite/Renderer/Renderer.h"
Mesh::Mesh(Graphics::Memory::VMA& vma)
: m_MeshData(vma)
{
m_MeshData.m_Usage |= vk::BufferUsageFlagBits::eVertexBuffer | vk::BufferUsageFlagBits::eIndexBuffer;
}
void Mesh::updateMeshData()
{
m_VertexCount = m_Vertices.... | 38.469388 | 176 | 0.743236 | MarcasRealAccount |
30aadf746e1393372aa1f8fd134e458c914efb3d | 1,507 | cpp | C++ | src/module_run.cpp | sirofen/read-memory-dll | 035b008cdb6ffbf2d00f30234f9ef976c04eee1e | [
"MIT"
] | null | null | null | src/module_run.cpp | sirofen/read-memory-dll | 035b008cdb6ffbf2d00f30234f9ef976c04eee1e | [
"MIT"
] | null | null | null | src/module_run.cpp | sirofen/read-memory-dll | 035b008cdb6ffbf2d00f30234f9ef976c04eee1e | [
"MIT"
] | null | null | null | // module
#include <module/module_run.hpp>
// spdlog
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/spdlog.h>
// WINAPI
#include "Windows.h"
namespace {
LRESULT CALLBACK KeyboardProc(int n_code, WPARAM w_param, LPARAM l_param)
{
if (n_code < 0 || n_co... | 27.907407 | 107 | 0.686131 | sirofen |
30b3c9086a4cb0ebfcbcd1eb1110d0b01e1a21b9 | 622 | cpp | C++ | code/WPILib/networktables2/util/System.cpp | trc492/Frc2013UltimateAscent | e922e6b4167d43b98b280d2f020193e68a81f31e | [
"MIT"
] | 1 | 2019-11-19T04:38:22.000Z | 2019-11-19T04:38:22.000Z | code/WPILib/networktables2/util/System.cpp | trc492/Frc2013UltimateAscent | e922e6b4167d43b98b280d2f020193e68a81f31e | [
"MIT"
] | null | null | null | code/WPILib/networktables2/util/System.cpp | trc492/Frc2013UltimateAscent | e922e6b4167d43b98b280d2f020193e68a81f31e | [
"MIT"
] | 1 | 2019-11-19T04:43:30.000Z | 2019-11-19T04:43:30.000Z | /*
* System.cpp
*
* Created on: Sep 26, 2012
* Author: Mitchell Wills
*/
#include "networktables2/util/System.h"
#include "semLib.h"
#include <stdio.h>
#include <sysLib.h> // for sysClkRateGet
#include <usrLib.h> // for taskDelay
void sleep_ms(unsigned long ms){
taskDelay((INT32)((double)sysClkRateGet() *... | 23.037037 | 57 | 0.710611 | trc492 |
30b562d1a13d5dc9cbabd0d301c0a5e79f9d1aa6 | 1,006 | cpp | C++ | Circles/Circles/Circles.cpp | IgorIgnatiev/Circles | 79ea4dba5e7b8aa1a8aafd1976a0ad0e5881987d | [
"Apache-2.0"
] | null | null | null | Circles/Circles/Circles.cpp | IgorIgnatiev/Circles | 79ea4dba5e7b8aa1a8aafd1976a0ad0e5881987d | [
"Apache-2.0"
] | null | null | null | Circles/Circles/Circles.cpp | IgorIgnatiev/Circles | 79ea4dba5e7b8aa1a8aafd1976a0ad0e5881987d | [
"Apache-2.0"
] | null | null | null | // Circles.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include<SFML/Graphics.hpp>
#include<thread>
using namespace sf;
CircleShape create()
{
std::shared_ptr<CircleShape> circle = std::make_shared<CircleShape>(20.0f);
(*circle.get()).setFi... | 20.12 | 107 | 0.634195 | IgorIgnatiev |