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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0780d8cca617283b7fd75912dcc29c9459a28f07 | 2,744 | cpp | C++ | core_ui/sim/accelerometer_widget.cpp | Siddhant-K-code/darwin | 86781c9dabeceda7f8666bb1bb4b5ca7d725d81d | [
"Apache-2.0"
] | 94 | 2018-11-24T20:07:07.000Z | 2022-03-13T01:34:45.000Z | core_ui/sim/accelerometer_widget.cpp | JJ/darwin | d5519b6d542c179cbc0f6575dcfce25e68e2f1df | [
"Apache-2.0"
] | 3 | 2020-11-21T04:49:43.000Z | 2021-02-09T18:15:23.000Z | core_ui/sim/accelerometer_widget.cpp | JJ/darwin | d5519b6d542c179cbc0f6575dcfce25e68e2f1df | [
"Apache-2.0"
] | 18 | 2018-11-24T20:07:21.000Z | 2021-12-19T10:48:57.000Z | // Copyright The Darwin Neuroevolution Framework 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 ap... | 33.876543 | 90 | 0.712464 | Siddhant-K-code |
0785437488fb1a85a75a4654b4cc7a4bb62777c9 | 1,778 | cpp | C++ | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise8.cpp | Ziezi/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 9 | 2018-10-24T15:16:47.000Z | 2021-12-14T13:53:50.000Z | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise8.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | null | null | null | Visual Studio 2010/Projects/bjarneStroustrupC++PartI/object_oriented_examples/Chapter10Exercise8.cpp | ChrisBKirov/Programming-Principles-and-Practice-Using-C-by-Bjarne-Stroustrup- | 6fd64801863e883508f15d16398744405f4f9e34 | [
"Unlicense"
] | 7 | 2018-10-29T15:30:37.000Z | 2021-01-18T15:15:09.000Z | /*
TITLE Concatenate two files Chapter10Exercise8.cpp
Bjarne Stroustrup "Programming: Principles and Practice Using C++"
COMMENT
Objective: Create a file that contains the concatenated data
of two other files.
Input: -
Output: -
Author: Chris B. Kirov
Date: 03.05.2015
*/
#in... | 23.706667 | 92 | 0.604612 | Ziezi |
0786f0888f05ce6e9ab1c0a1238ed5f4358a396a | 3,356 | cpp | C++ | example/timers.cpp | weiboad/adbase | d37ed32b55da24f7799be286c860e280ee0c786a | [
"Apache-2.0"
] | 62 | 2017-02-15T11:36:46.000Z | 2022-03-14T09:11:10.000Z | example/timers.cpp | AraHaan/adbase | d37ed32b55da24f7799be286c860e280ee0c786a | [
"Apache-2.0"
] | 5 | 2017-02-21T05:32:14.000Z | 2017-05-21T13:15:07.000Z | example/timers.cpp | AraHaan/adbase | d37ed32b55da24f7799be286c860e280ee0c786a | [
"Apache-2.0"
] | 22 | 2017-02-16T02:11:25.000Z | 2020-02-12T18:12:44.000Z | #include <signal.h>
#include <adbase/Net.hpp>
#include <adbase/Logging.hpp>
#include <adbase/Metrics.hpp>
adbase::metrics::Metrics* metrics = nullptr;
adbase::metrics::Timers* timers = nullptr;
adbase::EventLoop* gloop = nullptr;
void test1(void*) {
while(true) {
int num = rand() % 10000;
for (int... | 31.961905 | 99 | 0.567938 | weiboad |
0788c566aaad9ecea5d43057eaa253fdfdcb1412 | 15,025 | hpp | C++ | client/client/src/proj/ap_type2s.hpp | oracleloyall/CommonLib | f2a092ab1b87f45cfd4470b9a87f5fd658e2d7da | [
"Apache-2.0"
] | 3 | 2019-07-03T03:16:39.000Z | 2019-12-02T08:08:43.000Z | client/client/src/proj/ap_type2s.hpp | oracleloyall/CommonLib | f2a092ab1b87f45cfd4470b9a87f5fd658e2d7da | [
"Apache-2.0"
] | null | null | null | client/client/src/proj/ap_type2s.hpp | oracleloyall/CommonLib | f2a092ab1b87f45cfd4470b9a87f5fd658e2d7da | [
"Apache-2.0"
] | null | null | null | /*
* ap_type2s.hpp
*
* Created on: 2015骞�6鏈�17鏃�
* Author: sw
*/
#ifndef PROJ_AP_TYPE2S_HPP_
#define PROJ_AP_TYPE2S_HPP_
#include "../hlib/global.hpp"
typedef unsigned char __u8;
typedef unsigned short __u16;
typedef unsigned int __u32;
typedef unsigned long long __u64;
const __u16 H_PROTO_LOGO = 2955... | 29.005792 | 137 | 0.733511 | oracleloyall |
078df870ecfa9a50db5dffb2638b40d244a61d42 | 4,619 | cpp | C++ | 2014/prelim/C.cpp | golmansax/google-code-jam | 4486db353b19a5d61512aee8d6350aca75a5ab56 | [
"MIT"
] | null | null | null | 2014/prelim/C.cpp | golmansax/google-code-jam | 4486db353b19a5d61512aee8d6350aca75a5ab56 | [
"MIT"
] | null | null | null | 2014/prelim/C.cpp | golmansax/google-code-jam | 4486db353b19a5d61512aee8d6350aca75a5ab56 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
using namespace std;
struct tCell {
int x;
int y;
int adjacent_unopens;
tCell(int my_x, int my_y, int my_adjacent_unopens) :
... | 26.394286 | 69 | 0.423252 | golmansax |
078ebf10fc69cdec76e3899d305e4916a872486a | 2,109 | hpp | C++ | include/psst/math/angles.hpp | maxpagani/math | fb93b8ab78f74278fdbf51bfb81373b12f887803 | [
"Apache-2.0"
] | 36 | 2016-12-14T16:02:47.000Z | 2022-03-03T18:16:45.000Z | include/psst/math/angles.hpp | maxpagani/math | fb93b8ab78f74278fdbf51bfb81373b12f887803 | [
"Apache-2.0"
] | null | null | null | include/psst/math/angles.hpp | maxpagani/math | fb93b8ab78f74278fdbf51bfb81373b12f887803 | [
"Apache-2.0"
] | 8 | 2017-09-17T06:01:32.000Z | 2021-07-28T09:28:41.000Z | /*
* pi.hpp
*
* Created on: Dec 19, 2016
* Author: zmij
*/
#ifndef PSST_MATH_ANGLES_HPP_
#define PSST_MATH_ANGLES_HPP_
#include <psst/math/detail/value_policy.hpp>
#include <cmath>
namespace psst {
namespace math {
template <typename T>
struct pi {
static const T value;
};
template <typename T>
con... | 18.663717 | 71 | 0.647226 | maxpagani |
078f7a0304ccf7aaf9ba222cf88734da77c9c91f | 2,081 | hpp | C++ | include/zmq/socket_cache.hpp | haal/fluent | b387aec46155a3f2d4c2060e818e212b7649c7ca | [
"Apache-2.0"
] | 1,164 | 2018-07-25T23:17:07.000Z | 2019-07-11T20:33:52.000Z | include/zmq/socket_cache.hpp | longwutianya/fluent | c8fc9f2dd781e5ed91c34351adc6a101cc383083 | [
"Apache-2.0"
] | 126 | 2018-07-25T22:41:53.000Z | 2019-07-10T21:49:19.000Z | include/zmq/socket_cache.hpp | longwutianya/fluent | c8fc9f2dd781e5ed91c34351adc6a101cc383083 | [
"Apache-2.0"
] | 178 | 2018-07-25T23:17:11.000Z | 2019-07-10T02:45:27.000Z | // Copyright 2018 U.C. Berkeley RISE Lab
//
// 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... | 37.160714 | 79 | 0.709755 | haal |
079163232d247c1ce8d5a07de2c22fc6c1e84c77 | 1,047 | cpp | C++ | clstatphys/tests/rootfinder/false_position_method.cpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | null | null | null | clstatphys/tests/rootfinder/false_position_method.cpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-01-21T08:54:05.000Z | 2020-01-21T09:29:10.000Z | clstatphys/tests/rootfinder/false_position_method.cpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-07-18T03:36:32.000Z | 2021-07-21T22:58:27.000Z | #include <gtest/gtest.h>
#include <clstatphys/tools/false_position_method.hpp>
double f(double x) { return 3*x*x-5*x+1; }
TEST(FlasePositionTest, FlasePosition1) {
optimization::FalsePositionMethod optimizer;
int iteration;
iteration = optimizer.find_zero(f, 0, 1);
EXPECT_TRUE(iteration > 0);
EXPECT_DOUBLE_... | 29.083333 | 62 | 0.730659 | FIshikawa |
07927e7ce599ea938f72c7e5917ddc481c256d21 | 3,108 | cpp | C++ | src/tdme/tools/particlesystem/TDMEParticleSystem.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/tools/particlesystem/TDMEParticleSystem.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | src/tdme/tools/particlesystem/TDMEParticleSystem.cpp | mahula/tdme2 | 0f74d35ae5d2cd33b1a410c09f0d45f250ca7a64 | [
"BSD-3-Clause"
] | null | null | null | #include <tdme/tools/particlesystem/TDMEParticleSystem.h>
#include <cstdlib>
#include <string>
#include <tdme/utils/Time.h>
#include <tdme/engine/Engine.h>
#include <tdme/engine/model/Color4.h>
#include <tdme/gui/GUI.h>
#include <tdme/tools/shared/tools/Tools.h>
#include <tdme/tools/shared/views/PopUps.h>
#include <... | 22.521739 | 88 | 0.717181 | mahula |
07930c1c3b65b8fd591ac2e791fb5ee01ec64163 | 5,553 | cpp | C++ | src/Scenes/Tiles/Tileset.cpp | Tristeon/Tristeon | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 32 | 2018-06-16T20:50:15.000Z | 2022-03-26T16:57:15.000Z | src/Scenes/Tiles/Tileset.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 2 | 2018-10-07T17:41:39.000Z | 2021-01-08T03:14:19.000Z | src/Scenes/Tiles/Tileset.cpp | Tristeon/Tristeon2D | 9052e87b743f1122ed4c81952f2bffda96599447 | [
"MIT"
] | 9 | 2018-06-12T21:00:58.000Z | 2021-01-08T02:18:30.000Z | #include "Tileset.h"
#include "AssetManagement/Resources.h"
#include <Rendering/Texture.h>
namespace Tristeon
{
void to_json(json& j, const TileInfo& p)
{
j["hasCollider"] = p.hasCollider;
j["density"] = p.density;
j["friction"] = p.friction;
j["restitution"] = p.restitution;
}
void from_json(const json& ... | 23.529661 | 71 | 0.65118 | Tristeon |
079380678b7f324136966bee809ed8b96aa0e4a9 | 2,656 | cpp | C++ | Homeworks/HW-3/Task-3/task-3.cpp | kgolov/uni-data-structures | 8d8b2ff75ffa0ceed3ebe7bbc294680134b7d1c1 | [
"MIT"
] | null | null | null | Homeworks/HW-3/Task-3/task-3.cpp | kgolov/uni-data-structures | 8d8b2ff75ffa0ceed3ebe7bbc294680134b7d1c1 | [
"MIT"
] | null | null | null | Homeworks/HW-3/Task-3/task-3.cpp | kgolov/uni-data-structures | 8d8b2ff75ffa0ceed3ebe7bbc294680134b7d1c1 | [
"MIT"
] | null | null | null | #include <iostream>
// Calculates the number of balloons needed if the maximum number of sweets is target
long long balloonsNeeded(long long* sweets, long long* maxSweets, int size, long long target) {
long long counter = 0;
for (int i = 0; i < size; i++) {
// Check if we need balloons here to reduce ... | 32 | 112 | 0.589985 | kgolov |
07938e6b44fe67f182eafe4e1c24e97b0c79a870 | 3,588 | cc | C++ | src/main.cc | qianqian121/odrMgrLite | 877c5676198e8c35fb72c01c411c72a453449c65 | [
"Unlicense"
] | null | null | null | src/main.cc | qianqian121/odrMgrLite | 877c5676198e8c35fb72c01c411c72a453449c65 | [
"Unlicense"
] | null | null | null | src/main.cc | qianqian121/odrMgrLite | 877c5676198e8c35fb72c01c411c72a453449c65 | [
"Unlicense"
] | null | null | null | /* ===================================================
* file: main.cc
* ---------------------------------------------------
* purpose: main program for testing the
* OdrManager
* ---------------------------------------------------
* first edit: 08.07.2006 by M. Dupuis
* ================... | 36.989691 | 145 | 0.401895 | qianqian121 |
0795b2136bb20d35edbae00ce15ee2459c33a7b6 | 1,067 | cpp | C++ | poj-3125.cpp | casper001207/uva-online-judge | 19dc42224c24ac66bc99d52498a26fd310caf6bc | [
"MIT"
] | 1 | 2020-04-08T14:07:05.000Z | 2020-04-08T14:07:05.000Z | poj-3125.cpp | casper001207/uva-online-judge | 19dc42224c24ac66bc99d52498a26fd310caf6bc | [
"MIT"
] | null | null | null | poj-3125.cpp | casper001207/uva-online-judge | 19dc42224c24ac66bc99d52498a26fd310caf6bc | [
"MIT"
] | null | null | null | #include <cstdio>
#include <queue>
using namespace std;
bool checkIfOkToPrint(queue<int> q, int job, int priority[]);
int main()
{
int Case, n, m;
int priority[105];
scanf("%d", &Case);
while (Case--) {
scanf("%d %d", &n, &m);
for (int i = 0; i < n; ++i)
scanf("%d", &priorit... | 22.702128 | 61 | 0.424555 | casper001207 |
079729a5017e1831a91fe6ed35bd1943da826158 | 834 | cpp | C++ | src/python/constants.cpp | PavelBlend/fluid-engine-dev | 45b4bdbdb4c6d8c0beebc682180469198203b0ef | [
"MIT"
] | 1,355 | 2016-05-08T07:29:22.000Z | 2022-03-30T13:59:35.000Z | src/python/constants.cpp | Taiyuan-Zhang/fluid-engine-dev | 45b4bdbdb4c6d8c0beebc682180469198203b0ef | [
"MIT"
] | 208 | 2016-05-25T19:47:27.000Z | 2022-01-17T04:18:29.000Z | src/python/constants.cpp | Taiyuan-Zhang/fluid-engine-dev | 45b4bdbdb4c6d8c0beebc682180469198203b0ef | [
"MIT"
] | 218 | 2016-08-23T16:51:10.000Z | 2022-03-31T03:55:48.000Z | // Copyright (c) 2018 Doyub Kim
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "constants.h"
#include "pybind11_utils.h"
#include <jet/constants.h>
namespace py = pybind11;... | 33.36 | 72 | 0.71223 | PavelBlend |
0797efe0eac673f52f6db73a8cafe3d291b5d753 | 4,408 | cpp | C++ | UnitTest/Common/FoundationTest/TestResourceService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | UnitTest/Common/FoundationTest/TestResourceService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | UnitTest/Common/FoundationTest/TestResourceService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 26.715152 | 175 | 0.808984 | achilex |
079bca3915e04aa1ea5fa7f7fc726d691d0f6c03 | 908 | hh | C++ | src/cassette/CasImage.hh | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 320 | 2015-06-16T20:32:33.000Z | 2022-03-26T17:03:27.000Z | src/cassette/CasImage.hh | sdsnatcher73/openMSX | 6de09386ff674668325ddf700b0b16334ad1d2ef | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 2,592 | 2015-05-30T12:12:21.000Z | 2022-03-31T17:16:15.000Z | src/cassette/CasImage.hh | imulilla/openMSX_TSXadv | afffe852f73cb5f9a1f1d60f0ab9ff9a4da98c31 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 74 | 2015-06-18T19:51:15.000Z | 2022-03-24T15:09:33.000Z | #ifndef CASIMAGE_HH
#define CASIMAGE_HH
#include "CassetteImage.hh"
#include <cstdint>
#include <vector>
namespace openmsx {
class CliComm;
class Filename;
class FilePool;
/**
* Code based on "cas2wav" tool by Vincent van Dam
*/
class CasImage final : public CassetteImage
{
public:
CasImage(const Filename& fileN... | 20.636364 | 75 | 0.75 | sdsnatcher73 |
079c67dacd53f1908346ff078896802240dcb050 | 5,862 | cpp | C++ | OpenROV/CAutopilot_EXP.cpp | noxxomatik/openrov-software-arduino-30.0.4-BNO055 | e40b64e84cec6de2ee00abd013fe24fb483ab42d | [
"MIT"
] | null | null | null | OpenROV/CAutopilot_EXP.cpp | noxxomatik/openrov-software-arduino-30.0.4-BNO055 | e40b64e84cec6de2ee00abd013fe24fb483ab42d | [
"MIT"
] | null | null | null | OpenROV/CAutopilot_EXP.cpp | noxxomatik/openrov-software-arduino-30.0.4-BNO055 | e40b64e84cec6de2ee00abd013fe24fb483ab42d | [
"MIT"
] | null | null | null | #include "AConfig.h"
#if( HAS_EXP_AUTOPILOT )
// Includes
#include "CAutopilot.h"
#include "CTimer.h"
#include "NDataManager.h"
#include "NCommManager.h"
#include "CPIDController.h"
#include "Utility.h"
// File local variables and methods
namespace
{
CTimer pilotTimer;
// These should be replaced with two CPIDCon... | 27.521127 | 164 | 0.704708 | noxxomatik |
079cb8b3bc323aa7bfba617286de5052b0043dce | 7,271 | cpp | C++ | modules/cudastereo/src/stereobm.cpp | JosephGeoBenjamin/opencv_contrib-hip | 2a948c02b9077b0fd3ae2baf903e9990a5f0a684 | [
"BSD-3-Clause"
] | null | null | null | modules/cudastereo/src/stereobm.cpp | JosephGeoBenjamin/opencv_contrib-hip | 2a948c02b9077b0fd3ae2baf903e9990a5f0a684 | [
"BSD-3-Clause"
] | null | null | null | modules/cudastereo/src/stereobm.cpp | JosephGeoBenjamin/opencv_contrib-hip | 2a948c02b9077b0fd3ae2baf903e9990a5f0a684 | [
"BSD-3-Clause"
] | 1 | 2020-11-16T14:32:58.000Z | 2020-11-16T14:32:58.000Z | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 39.091398 | 187 | 0.673773 | JosephGeoBenjamin |
079d6c7a9f6eee82e69c43655c04877ed611621a | 2,602 | cpp | C++ | UVa/UVA227.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-09-11T13:17:28.000Z | 2020-09-11T13:17:28.000Z | UVa/UVA227.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:36:23.000Z | 2020-10-22T13:36:23.000Z | UVa/UVA227.cpp | Insouciant21/solution | 8f241ec2076c9c29c0d39c2c285ee12eac1dee9e | [
"Apache-2.0"
] | 1 | 2020-10-22T13:33:11.000Z | 2020-10-22T13:33:11.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
int kase = 0;
while (true) {
string grid[5];
for (auto &i : grid) i = "";
kase++;
char ch = getchar();
if (ch == '\n') ch = getchar();
if (ch == 'Z') return 0;
grid[0] += ch;
for (auto &i... | 28.282609 | 82 | 0.259416 | Insouciant21 |
079de2e3f63c950bede97fde173e4f9d0a0252f5 | 2,765 | hpp | C++ | common/dpcpp/cuckoo_hashtable.hpp | bagrorg/dwarf_bench | e06427c2b64b1696ba88a46ba758b1f5c9605893 | [
"MIT"
] | 5 | 2021-09-17T19:16:23.000Z | 2022-03-18T11:45:44.000Z | common/dpcpp/cuckoo_hashtable.hpp | bagrorg/dwarf_bench | e06427c2b64b1696ba88a46ba758b1f5c9605893 | [
"MIT"
] | 20 | 2021-07-28T15:20:18.000Z | 2021-09-02T14:18:03.000Z | common/dpcpp/cuckoo_hashtable.hpp | bagrorg/dwarf_bench | e06427c2b64b1696ba88a46ba758b1f5c9605893 | [
"MIT"
] | null | null | null | #include <CL/sycl.hpp>
#include "hashfunctions.hpp"
template <class Key, class Val, class Hasher1, class Hasher2> class CuckooHashtable{
private:
sycl::global_ptr<Key> _keys;
sycl::global_ptr<Val> _vals;
const size_t _size;
Hasher1 _hasher1;
Hasher2 _hasher2;
const... | 34.135802 | 108 | 0.491863 | bagrorg |
07a1c7952a9a1bd56840f41440de7d7325c4695b | 2,571 | cpp | C++ | aifm/exp/fig12a/linux_mem/read/main.cpp | asarthas/AIFM | aaf7113cb3ba58381174e8b86bdd7a0f1fd1acc4 | [
"MIT"
] | 49 | 2020-11-01T00:14:40.000Z | 2022-03-26T07:28:12.000Z | aifm/exp/fig12a/linux_mem/read/main.cpp | asarthas/AIFM | aaf7113cb3ba58381174e8b86bdd7a0f1fd1acc4 | [
"MIT"
] | 12 | 2020-12-15T08:30:19.000Z | 2022-03-13T03:54:24.000Z | aifm/exp/fig12a/linux_mem/read/main.cpp | asarthas/AIFM | aaf7113cb3ba58381174e8b86bdd7a0f1fd1acc4 | [
"MIT"
] | 19 | 2020-12-24T22:32:22.000Z | 2022-03-30T01:33:43.000Z | extern "C" {
#include <runtime/runtime.h>
}
#include "deref_scope.hpp"
#include "device.hpp"
#include "helpers.hpp"
#include "manager.hpp"
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <memory>
#include <iostream>
using namespace far_memory;
using namespace... | 23.587156 | 78 | 0.671723 | asarthas |
07a9af8089988f8008f68223ee76642918479c26 | 5,326 | cpp | C++ | vmcon2D/DART_Interface.cpp | snumrl/volcon2D | 4b4277cef2caa0f62429781acedc71d9f8b6bd0d | [
"Apache-2.0"
] | null | null | null | vmcon2D/DART_Interface.cpp | snumrl/volcon2D | 4b4277cef2caa0f62429781acedc71d9f8b6bd0d | [
"Apache-2.0"
] | null | null | null | vmcon2D/DART_Interface.cpp | snumrl/volcon2D | 4b4277cef2caa0f62429781acedc71d9f8b6bd0d | [
"Apache-2.0"
] | null | null | null | #include "DART_Interface.h"
#include "GUI/GL_function.h"
#include <Eigen/Geometry>
#include <vector>
#include "GL/glut.h"
using namespace dart::dynamics;
using namespace dart::simulation;
/*************************************************************
MakeRootBody function
This function makes root body for skeleton.... | 36.986111 | 143 | 0.657154 | snumrl |
07aac5a1de403d0a564475970c8977c8aedb089a | 3,040 | cpp | C++ | src/swish/hooks-i3nt.cpp | becls/swish-win | bab98dfa757dfd851d8cf5176fb3e88115f311f4 | [
"MIT"
] | 19 | 2017-12-05T21:48:32.000Z | 2019-12-09T05:18:02.000Z | src/swish/hooks-i3nt.cpp | becls/swish-win | bab98dfa757dfd851d8cf5176fb3e88115f311f4 | [
"MIT"
] | null | null | null | src/swish/hooks-i3nt.cpp | becls/swish-win | bab98dfa757dfd851d8cf5176fb3e88115f311f4 | [
"MIT"
] | 1 | 2019-06-15T22:39:56.000Z | 2019-06-15T22:39:56.000Z | // Copyright 2017 Beckman Coulter, Inc.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use, copy,
// modify, merge, p... | 36.626506 | 70 | 0.819079 | becls |
07abeda787829d35361a1f1ff0cf2f5494618887 | 290 | hpp | C++ | pythran/pythonic/include/omp/set_nested.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/omp/set_nested.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/omp/set_nested.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_OMP_SET_NESTED_HPP
#define PYTHONIC_INCLUDE_OMP_SET_NESTED_HPP
#include <omp.h>
#include "pythonic/include/utils/functor.hpp"
namespace pythonic
{
namespace omp
{
void set_nested(long val);
DECLARE_FUNCTOR(pythonic::omp, set_nested);
}
}
#endif
| 14.5 | 47 | 0.762069 | xmar |
07ac42f03e495d5514cccd71b2a91d385c2790e7 | 830 | cpp | C++ | convolution/test/ntt.test.cpp | rsm9/cplib-cpp | 269064381eb259a049236335abb31f8f73ded7f4 | [
"MIT"
] | 4 | 2020-05-13T05:06:22.000Z | 2020-09-18T17:03:36.000Z | convolution/test/ntt.test.cpp | rsm9/cplib-cpp | 269064381eb259a049236335abb31f8f73ded7f4 | [
"MIT"
] | 1 | 2019-12-11T13:53:17.000Z | 2019-12-11T13:53:17.000Z | convolution/test/ntt.test.cpp | rsm9/cplib-cpp | 269064381eb259a049236335abb31f8f73ded7f4 | [
"MIT"
] | 3 | 2019-12-11T06:45:45.000Z | 2020-09-07T13:45:32.000Z | #define PROBLEM "https://judge.yosupo.jp/problem/convolution_mod"
#include "../ntt.hpp"
#include "../../modint.hpp"
#include "../../number/modint_runtime.hpp"
#include <iostream>
using namespace std;
constexpr int MOD = 998244353;
using mint = ModInt<MOD>;
using mintr = ModIntRuntime;
int main() {
cin.tie(nullptr... | 25.9375 | 65 | 0.543373 | rsm9 |
07ade805a1e01f9d2aeb281d4a3f53b0dd02f27b | 2,671 | cpp | C++ | src/ui/Dialog.cpp | tomasiser/pepr3d | 5eaacd573c553e0e8eb79212842894bf32b5c666 | [
"BSD-2-Clause"
] | 128 | 2019-11-18T16:09:58.000Z | 2022-01-15T03:59:51.000Z | src/ui/Dialog.cpp | tomasiser/pepr3d | 5eaacd573c553e0e8eb79212842894bf32b5c666 | [
"BSD-2-Clause"
] | 3 | 2019-04-01T17:41:19.000Z | 2020-07-23T08:55:08.000Z | src/ui/Dialog.cpp | tomasiser/pepr3d | 5eaacd573c553e0e8eb79212842894bf32b5c666 | [
"BSD-2-Clause"
] | 31 | 2019-04-04T11:28:11.000Z | 2022-03-14T08:52:38.000Z | #include "Dialog.h"
namespace pepr3d {
bool Dialog::draw() const {
bool isAccepted = false;
if(!ImGui::IsPopupOpen("##dialog")) {
ImGui::OpenPopup("##dialog");
}
ImGuiWindowFlags window_flags = 0;
window_flags |= ImGuiWindowFlags_NoTitleBar;
window_flags |= ImGuiWindowFlags_NoMove;
... | 39.865672 | 111 | 0.649569 | tomasiser |
07b0da8a8d5eda5b8d8ef7dfa91b2c781d0cbc47 | 539 | cpp | C++ | 500-600/543.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 500-600/543.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 500-600/543.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | long int euler543() {
long int F[45] = {0, 1};
for (int i = 2; i <= 44; i++) {F[i] = F[i - 2] + F[i - 1]; }
long int sum = 2; // Seed with value for 3rd Fibonacci number
for (int i = 4; i <= 44; i++){
sum += primesieve::parallel_count_primes(1, F[i]) + // k=1
... | 35.933333 | 91 | 0.393321 | Thomaw |
07b39443adf607ff4bc02b5186e4858ec5d009b6 | 1,273 | cpp | C++ | src/raw-cpp/src/states/level-state.cpp | guillaume-haerinck/RollGoal | c6f95fad3b042da5c537dc892f5879326074549a | [
"MIT"
] | 6 | 2019-06-16T18:56:50.000Z | 2020-07-11T01:53:51.000Z | src/raw-cpp/src/states/level-state.cpp | guillaume-haerinck/RollGoal | c6f95fad3b042da5c537dc892f5879326074549a | [
"MIT"
] | null | null | null | src/raw-cpp/src/states/level-state.cpp | guillaume-haerinck/RollGoal | c6f95fad3b042da5c537dc892f5879326074549a | [
"MIT"
] | 2 | 2019-07-07T21:22:15.000Z | 2020-03-25T16:01:33.000Z | #include "level-state.h"
#include "systems/physic-system.h"
#include "systems/render-system.h"
#include "systems/input-system.h"
LevelState::LevelState(Context context) : IState(STATE_LEVEL, context)
{
m_systems = {
new PhysicSystem(*context.registry),
new RenderSystem(*context.registry),
new InputSystem(*cont... | 25.46 | 77 | 0.48154 | guillaume-haerinck |
07b5abd29b72cf8ae980b74807a8960950538081 | 951 | cpp | C++ | Source/SageChargeBar.cpp | Project2CITM/Proyecto2 | a10c78fded2b226629a817c4e9cd46ed9e8b5bc8 | [
"MIT"
] | 2 | 2022-03-13T20:31:50.000Z | 2022-03-28T06:43:45.000Z | Source/SageChargeBar.cpp | Project2CITM/The-last-purifier | e082e8ce6d6aa90b1d232cd9e15f4bec994556ed | [
"MIT"
] | null | null | null | Source/SageChargeBar.cpp | Project2CITM/The-last-purifier | e082e8ce6d6aa90b1d232cd9e15f4bec994556ed | [
"MIT"
] | null | null | null | #include "SageChargeBar.h"
SageChargeBar::SageChargeBar(iPoint pos, int width, int height, int values[3], SDL_Color totalColor, SDL_Color currentColors[3]) : Bar(pos, width, height, values[0], totalColor, currentColors[0])
{
totalValues[0] = values[0];
totalValues[1] = values[1];
totalValues[2] = values[2];
curre... | 25.702703 | 195 | 0.756046 | Project2CITM |
07be2b957c358e75c60d9b0ffa30e191b561a4b5 | 1,791 | cpp | C++ | Chapter-6-Functions/6.7-The-Return-Statement/Examples/6-11.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 3 | 2019-10-28T01:12:46.000Z | 2021-10-16T09:16:31.000Z | Chapter-6-Functions/6.7-The-Return-Statement/Examples/6-11.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | null | null | null | Chapter-6-Functions/6.7-The-Return-Statement/Examples/6-11.cpp | jesushilarioh/C-Plus-Plus | bbff921460ac4267af48558f040c7d82ccf42d5e | [
"MIT"
] | 4 | 2020-04-10T17:22:17.000Z | 2021-11-04T14:34:00.000Z | //**************************************************************
// This program uses a function to perform division. If division
// by zero is detected, the function returns.
//
// by: Jesus Hilario Hernandez
// last updated: November 2, 2016
//**************************************************************
#include <i... | 30.355932 | 69 | 0.450586 | jesushilarioh |
07c0ff457ca4a60a79fbf0d6df9a8df269f87f42 | 411 | cpp | C++ | chapter-7/7.37.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-7/7.37.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-7/7.37.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | #include <iostream>
#include "Sales_data.hpp"
using std::cin;
Sales_data first_item(cin); // Sales_data(istream &is) {read(is, *this);} data members depend on cin
int main()
{
Sales_data next; // Sales_data(string s = ""): bookNo(s) {} bookNo "", units_sold 0, revenue 0.0
Sales_data last("9-999-99999-9"); // Sa... | 31.615385 | 129 | 0.6691 | zero4drift |
07c3faccaaec05a58727af6f1b4d826772024420 | 5,734 | cpp | C++ | examples/example_ranker.cpp | dbremner/mili | 7aab844b02c35c855c5823e71beb4d6576df8d6d | [
"BSL-1.0"
] | 17 | 2015-05-06T00:44:46.000Z | 2022-01-19T02:50:49.000Z | examples/example_ranker.cpp | dbremner/mili | 7aab844b02c35c855c5823e71beb4d6576df8d6d | [
"BSL-1.0"
] | null | null | null | examples/example_ranker.cpp | dbremner/mili | 7aab844b02c35c855c5823e71beb4d6576df8d6d | [
"BSL-1.0"
] | 6 | 2015-09-16T07:46:27.000Z | 2017-10-17T04:21:14.000Z | /*
example_ranker: An example that uses MiLi's Ranker.
This file is part of the MiLi Minimalistic Library.
Copyright (C) Ezequiel S. Velez, FuDePAN 2010
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt in the root directory or
copy at http://www.boo... | 26.794393 | 127 | 0.591036 | dbremner |
07c3fc4540820ec5f4c605347750b2b7c4f550da | 505 | cpp | C++ | Problems/Codeforces/CF-816B.cpp | zhugezy/giggle | dfa50744a9fd328678b75af8135bbd770f18a6ac | [
"MIT"
] | 6 | 2019-10-12T15:14:10.000Z | 2020-02-02T11:16:00.000Z | Problems/Codeforces/CF-816B.cpp | zhugezy/giggle | dfa50744a9fd328678b75af8135bbd770f18a6ac | [
"MIT"
] | 73 | 2019-10-11T15:09:40.000Z | 2020-09-15T07:49:24.000Z | Problems/Codeforces/CF-816B.cpp | zhugezy/giggle | dfa50744a9fd328678b75af8135bbd770f18a6ac | [
"MIT"
] | 5 | 2019-10-14T02:57:39.000Z | 2020-06-19T09:38:34.000Z | // 816B
#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10;
int n, k, q, l, r;
int b[N], sum[N];
int main() {
scanf("%d%d%d", &n, &k, &q);
for (int i = 1; i <= n; ++i) {
scanf("%d%d", &l, &r);
b[l]++;
b[r + 1]--;
}
int tot = 0;
for (int i = 1; i <= 200000; ++i) {
tot += b[... | 17.413793 | 40 | 0.4 | zhugezy |
07c689c64812600c527e6d8a38f716b433e8cff0 | 1,507 | cpp | C++ | src/utils/posix/spawn.cpp | scaryrawr/tofi | 15b3757c4d492d5bbc7f57aef94f582549d2bef3 | [
"MIT"
] | 1 | 2020-08-03T18:57:01.000Z | 2020-08-03T18:57:01.000Z | src/utils/posix/spawn.cpp | scaryrawr/tofi | 15b3757c4d492d5bbc7f57aef94f582549d2bef3 | [
"MIT"
] | 1 | 2021-03-07T21:32:10.000Z | 2021-03-08T13:56:10.000Z | src/utils/posix/spawn.cpp | scaryrawr/tofi | 15b3757c4d492d5bbc7f57aef94f582549d2bef3 | [
"MIT"
] | null | null | null | #include "utils/spawn.h"
#include "utils/command.h"
#include <vector>
#include <sys/wait.h>
#include <unistd.h>
namespace tofi
{
bool spawn(Command command)
{
// Fork first child to start a new session
pid_t pid{fork()};
if (0 == pid)
{
if (pid < 0)
{
... | 25.982759 | 121 | 0.474453 | scaryrawr |
07c77156c0c7ac935870303eed9006b25034cfde | 5,755 | cpp | C++ | Src/Object.cpp | bDiazCentro/AlchemyFramework | 6b55cdef1d0b9ddb4248382e44bbbfdb8320f062 | [
"MIT"
] | null | null | null | Src/Object.cpp | bDiazCentro/AlchemyFramework | 6b55cdef1d0b9ddb4248382e44bbbfdb8320f062 | [
"MIT"
] | null | null | null | Src/Object.cpp | bDiazCentro/AlchemyFramework | 6b55cdef1d0b9ddb4248382e44bbbfdb8320f062 | [
"MIT"
] | null | null | null | #include "Object.hpp"
#include <algorithm>
#include "GameManager.hpp"
#define VNAME(x) #x
#pragma region CONSTRUCTORS
Object::Object()
{
std::string name = "object";
int renameTry = 1;
std::string nameComplement = "";
while (GameManager::Instance()->ReturnGameObjectByName(name + nameComplement) != n... | 24.489362 | 125 | 0.647958 | bDiazCentro |
07ca4aaea898196be71b8e746e623b592a9056ad | 3,111 | cpp | C++ | Source/Core/Elements/XMLNodeHandlerSelect.cpp | MatthiasJFM/RmlUi | 557dfdbf76ca1397d72c70003081aae4f33b82d0 | [
"MIT"
] | 1,099 | 2019-05-11T07:04:26.000Z | 2022-03-30T12:39:09.000Z | Source/Core/Elements/XMLNodeHandlerSelect.cpp | MatthiasJFM/RmlUi | 557dfdbf76ca1397d72c70003081aae4f33b82d0 | [
"MIT"
] | 251 | 2019-05-07T08:35:47.000Z | 2022-03-31T20:28:49.000Z | Source/Core/Elements/XMLNodeHandlerSelect.cpp | MatthiasJFM/RmlUi | 557dfdbf76ca1397d72c70003081aae4f33b82d0 | [
"MIT"
] | 148 | 2019-07-08T14:46:04.000Z | 2022-03-31T10:59:33.000Z | /*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... | 35.352273 | 125 | 0.739312 | MatthiasJFM |
07cba57ef33c3215db724e30fc3a01f0b2d60d21 | 2,347 | cpp | C++ | src/byte_buffer_args_processor.cpp | TGAC/grassroots-blast-service | 6fec51a42f58c4ac86f94ed724cacfc620a72d70 | [
"Apache-2.0"
] | 1 | 2020-03-21T17:40:42.000Z | 2020-03-21T17:40:42.000Z | src/byte_buffer_args_processor.cpp | TGAC/grassroots-service-blast | b3af30cdb067fd7a2ca29701d4b3077057751359 | [
"Apache-2.0"
] | null | null | null | src/byte_buffer_args_processor.cpp | TGAC/grassroots-service-blast | b3af30cdb067fd7a2ca29701d4b3077057751359 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2014-2016 The Earlham Institute
**
** 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 la... | 23.94898 | 87 | 0.738389 | TGAC |
07cea265b5e9ef37f01d5003a46c03e8e20146f6 | 2,904 | cc | C++ | chrome/browser/metrics/power/battery_level_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/metrics/power/battery_level_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/metrics/power/battery_level_provider.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.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 "chrome/browser/metrics/power/battery_level_provider.h"
BatteryLevelProvider::BatteryState::BatteryState(
size_t interface_count,
size_t... | 34.987952 | 80 | 0.742424 | zealoussnow |
07cec5335433f24d8ef050758d4a11518b04317e | 3,103 | cpp | C++ | src/Graphics.cpp | williamsandst/theia-software-rasterizer | 75cfff3ca1e822e3cef25a86a846f4994c53ab17 | [
"MIT"
] | null | null | null | src/Graphics.cpp | williamsandst/theia-software-rasterizer | 75cfff3ca1e822e3cef25a86a846f4994c53ab17 | [
"MIT"
] | null | null | null | src/Graphics.cpp | williamsandst/theia-software-rasterizer | 75cfff3ca1e822e3cef25a86a846f4994c53ab17 | [
"MIT"
] | null | null | null | #include "Graphics.h"
void Graphics::setScreenSize(int width, int height)
{
screen = Framebuffer(width, height);
earlyZBuffer = Framebuffer(width, height);
}
void Graphics::addToObjectToPipeline(ObjectPtr object)
{
worldObjects.push_back(object);
objectFragments.push_back(vector<Fragment>());
}
void Graphics::g... | 26.982609 | 130 | 0.723493 | williamsandst |
07d0fc460e0805e5aa91ee91bb3fca6152cc415a | 547 | cpp | C++ | UVaOnlineJudge/Problem_Set_Volumes_(100...1999)/Volume6(600-699)/621/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | 3 | 2015-10-21T18:56:43.000Z | 2017-06-06T10:44:22.000Z | UVaOnlineJudge/Problem_Set_Volumes_(100...1999)/Volume6(600-699)/621/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | null | null | null | UVaOnlineJudge/Problem_Set_Volumes_(100...1999)/Volume6(600-699)/621/code.cpp | luiscbr92/algorithmic-challenges | bc35729e54e4284e9ade1aa61b51a1c2d72aa62c | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main(){
int cases, length;
string s;
cin >> cases;
for(int i = 0; i < cases; i++){
cin >> s;
if(s=="1" || s == "4" || s == "78") cout << "+\n";
else if ((length = s.size()) >= 2){
if(s.substr(length... | 20.259259 | 78 | 0.380256 | luiscbr92 |
07d4975fc21b06cc10bc666197e980aecd5ba151 | 31,090 | cpp | C++ | src/jsusfx.cpp | asb2m10/jsusfx | be2b3bafe90b0f2eb28739257138844bc9d2941c | [
"Apache-2.0"
] | 49 | 2015-01-05T06:58:59.000Z | 2021-10-21T00:30:08.000Z | src/jsusfx.cpp | umlaeute/jsusfx | be2b3bafe90b0f2eb28739257138844bc9d2941c | [
"Apache-2.0"
] | 25 | 2016-02-25T15:59:03.000Z | 2021-12-20T15:08:16.000Z | src/jsusfx.cpp | umlaeute/jsusfx | be2b3bafe90b0f2eb28739257138844bc9d2941c | [
"Apache-2.0"
] | 13 | 2015-06-17T07:47:39.000Z | 2021-10-07T12:19:46.000Z | /*
* Copyright 2014-2015 Pascal Gauthier
* Copyright 2018 Pascal Gauthier, Marcel Smit
*
* 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
... | 25.694215 | 167 | 0.605886 | asb2m10 |
07d78ba06233cf02120b9ac3264fd6ee7df2a442 | 3,422 | cpp | C++ | src/http/connection_impl.cpp | Ri0n/blog-new-year-2021 | 449ae54400bcc06450d9b90518f3f9a67a5afeed | [
"BSL-1.0"
] | null | null | null | src/http/connection_impl.cpp | Ri0n/blog-new-year-2021 | 449ae54400bcc06450d9b90518f3f9a67a5afeed | [
"BSL-1.0"
] | null | null | null | src/http/connection_impl.cpp | Ri0n/blog-new-year-2021 | 449ae54400bcc06450d9b90518f3f9a67a5afeed | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2021 Richard Hodges (hodges.r@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include "http/connection_impl.hpp"
namespace http
{
net::awaitable< error_code >
connection_impl::connect... | 27.596774 | 79 | 0.547925 | Ri0n |
07d9cafde9c0e36feccb6befe458998d33f7b84d | 529 | cpp | C++ | Boost/The Boost C++ Libraries/src/14.4.6/main.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | 1 | 2021-03-12T19:29:33.000Z | 2021-03-12T19:29:33.000Z | Boost/The Boost C++ Libraries/src/14.4.6/main.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | 1 | 2019-03-13T01:36:12.000Z | 2019-03-13T01:36:12.000Z | Boost/The Boost C++ Libraries/src/14.4.6/main.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | null | null | null | #include <boost/variant.hpp>
#include <boost/any.hpp>
#include <vector>
#include <string>
#include <iostream>
std::vector<boost::any> vector;
struct output :
public boost::static_visitor<>
{
template <typename T>
void operator()(T &t) const
{
vector.push_back(t);
}
};
int main()
{
bo... | 18.892857 | 47 | 0.612476 | goodspeed24e |
07d9ecc7783798bbea4197fc3c7db12202a9f9c1 | 4,309 | cpp | C++ | cv/cvthresh.cpp | hoozh/emcv | e61b1d5ad16c255f0306d0e9feb8f32e3a92d97f | [
"BSD-3-Clause"
] | null | null | null | cv/cvthresh.cpp | hoozh/emcv | e61b1d5ad16c255f0306d0e9feb8f32e3a92d97f | [
"BSD-3-Clause"
] | null | null | null | cv/cvthresh.cpp | hoozh/emcv | e61b1d5ad16c255f0306d0e9feb8f32e3a92d97f | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, install,... | 37.798246 | 105 | 0.671385 | hoozh |
07db098af39d225ff19a475de9228f48f8fe0333 | 28,165 | cpp | C++ | service/simulator/java/jni/simulator_resource_model_schema_jni.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 301 | 2015-01-20T16:11:32.000Z | 2021-11-25T04:29:36.000Z | service/simulator/java/jni/simulator_resource_model_schema_jni.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 21 | 2019-10-02T08:31:36.000Z | 2021-12-09T21:46:49.000Z | service/simulator/java/jni/simulator_resource_model_schema_jni.cpp | jonghenhan/iotivity | 7dfc2bc6a5c0506cf88bc23e88e38fe1b795da31 | [
"Apache-2.0"
] | 233 | 2015-01-26T03:41:59.000Z | 2022-03-18T23:54:04.000Z | /******************************************************************
*
* Copyright 2016 Samsung Electronics 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
*
... | 44.706349 | 141 | 0.553737 | jonghenhan |
07dc68a6c8701a2df10ab824dfb0426c3ea3816d | 2,314 | cpp | C++ | reflection/TypeInfo.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | 1 | 2021-09-18T12:50:35.000Z | 2021-09-18T12:50:35.000Z | reflection/TypeInfo.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | reflection/TypeInfo.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | /*
* TypeInfo.cpp
*
* Created on: 13.02.2014
* Author: parojtbe
*/
#include <reflection/TypeInfo.h>
#include <reflection/db.h>
#include <stdexcept>
using namespace std;
namespace reflection {
TypeInfoCommon::TypeInfoCommon(const string& parentType) : _parentType(parentType) {
}
void TypeInfoCommon::_res... | 23.373737 | 107 | 0.625756 | jess22664 |
07dd0b1900d62e8f72ad89a6e819c601abf65897 | 1,877 | cc | C++ | shell/platform/common/incoming_message_dispatcher.cc | onix39/engine | ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc | [
"BSD-3-Clause"
] | 5,823 | 2015-09-20T02:43:18.000Z | 2022-03-31T23:38:55.000Z | shell/platform/common/incoming_message_dispatcher.cc | onix39/engine | ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc | [
"BSD-3-Clause"
] | 20,081 | 2015-09-19T16:07:59.000Z | 2022-03-31T23:33:26.000Z | shell/platform/common/incoming_message_dispatcher.cc | onix39/engine | ec66a45a3a7d5b9dfc2e0feab8965db7a91027cc | [
"BSD-3-Clause"
] | 5,383 | 2015-09-24T22:49:53.000Z | 2022-03-31T14:33:51.000Z | // Copyright 2013 The Flutter 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 "flutter/shell/platform/common/incoming_message_dispatcher.h"
namespace flutter {
IncomingMessageDispatcher::IncomingMessageDispatcher(
Flut... | 31.813559 | 78 | 0.740543 | onix39 |
07dfb138f3f09ce6a032262ec2fb293f2662e9dd | 287 | hpp | C++ | include/Covariance/Covariance2D.hpp | belcour/CovarianceTracing | 60b5cfd82d7b0fa9a623743551ff8cf9595adf07 | [
"Unlicense"
] | 45 | 2016-07-19T21:52:06.000Z | 2021-12-07T08:21:49.000Z | include/Covariance/Covariance2D.hpp | belcour/CovarianceTracing | 60b5cfd82d7b0fa9a623743551ff8cf9595adf07 | [
"Unlicense"
] | null | null | null | include/Covariance/Covariance2D.hpp | belcour/CovarianceTracing | 60b5cfd82d7b0fa9a623743551ff8cf9595adf07 | [
"Unlicense"
] | 7 | 2016-07-28T15:18:26.000Z | 2020-06-14T12:20:16.000Z | #pragma once
namespace Covariance {
/*! The 2D isotropic version of Covariance Tracing.
* This code assumes that light transport in 2 dimensions and only
* store a 2D covariance matrix for space and angles.
*/
struct Covariance2D {
float matrix[3];
};
}
| 19.133333 | 70 | 0.672474 | belcour |
07e277e0584f3bc235ea31aa98d9d4fd4118fefb | 9,364 | cpp | C++ | src/lava_lib/reader_bgeo/test/test_vol.cpp | cinepost/Falcor | f70bd1d97c064d6f91a017d4409aa2037fd6903a | [
"BSD-3-Clause"
] | 7 | 2018-09-25T23:45:52.000Z | 2021-07-07T04:08:01.000Z | src/lava_lib/reader_bgeo/test/test_vol.cpp | cinepost/Falcor | f70bd1d97c064d6f91a017d4409aa2037fd6903a | [
"BSD-3-Clause"
] | 2 | 2021-03-02T10:16:06.000Z | 2021-08-13T10:10:21.000Z | src/lava_lib/reader_bgeo/test/test_vol.cpp | cinepost/Lava | f70bd1d97c064d6f91a017d4409aa2037fd6903a | [
"BSD-3-Clause"
] | 3 | 2020-06-07T05:47:48.000Z | 2020-10-03T12:34:54.000Z | /*
* Copyright 2018 Laika, LLC. Authored by Peter Stuart
*
* Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
* http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
* http://opensource.org/licenses/MIT>, at your option. This file may not be
* copied, modified, or distr... | 28.462006 | 87 | 0.591521 | cinepost |
07e2e04103dea9ac02c132b228a76e55dde99c44 | 6,208 | cpp | C++ | EmbeddedSystem/mainwindow.cpp | gzxultra/arm-thermometer-project | b68e92fb7c7e037dbe88f789962e16e27338739c | [
"MIT"
] | 2 | 2019-04-20T10:36:18.000Z | 2019-04-20T10:36:33.000Z | EmbeddedSystem/mainwindow.cpp | gzxultra/arm-thermometer-project | b68e92fb7c7e037dbe88f789962e16e27338739c | [
"MIT"
] | null | null | null | EmbeddedSystem/mainwindow.cpp | gzxultra/arm-thermometer-project | b68e92fb7c7e037dbe88f789962e16e27338739c | [
"MIT"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
ui->listWidget->hide();
this->InitProperty();
// Q_INIT_RESOURCE(web);
QList<QPushButton *> btn = this->findChildren<QPushButton *>... | 29.009346 | 99 | 0.63692 | gzxultra |
2e3d3eb90cab6e5c05ff567d18ad57bf38683e5b | 25,389 | cpp | C++ | sdktools/verifier/sdrvpage.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | sdktools/verifier/sdrvpage.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | sdktools/verifier/sdrvpage.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //
// Driver Verifier UI
// Copyright (c) Microsoft Corporation, 1999
//
//
//
// module: SDrvPage.cpp
// author: DMihai
// created: 11/1/00
//
// Description:
//
#include "stdafx.h"
#include <Cderr.h>
#include "verifier.h"
#include "SDrvPage.h"
#include "Vr... | 23.705882 | 109 | 0.51798 | npocmaka |
2e3e8506e2bac1efc615f97ab58e5a748a686773 | 305 | cpp | C++ | basics/Q2.cpp | shubhraagarwal/GUVI-codeKata | d8bf2354516dc27dd14d248cf0c702d652423e39 | [
"MIT"
] | null | null | null | basics/Q2.cpp | shubhraagarwal/GUVI-codeKata | d8bf2354516dc27dd14d248cf0c702d652423e39 | [
"MIT"
] | null | null | null | basics/Q2.cpp | shubhraagarwal/GUVI-codeKata | d8bf2354516dc27dd14d248cf0c702d652423e39 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std ;
int main(){
bool isComp = false ;
int n ;
cin>> n;
for(int i = 2 ; i < n ; i++){
if(n % i == 0){
isComp = true ;
cout<<"yes";
break;
}
}
if(isComp == false){
cout<<"no";
}
} | 16.052632 | 33 | 0.390164 | shubhraagarwal |
2e4235f582d4396a492b5d036fb7d17dd7293fa7 | 3,722 | cpp | C++ | Game Engine 2D/Player.cpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | 1 | 2017-03-13T11:19:40.000Z | 2017-03-13T11:19:40.000Z | Game Engine 2D/Player.cpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | null | null | null | Game Engine 2D/Player.cpp | LaPeste/ComposeEngine | 8ae80ec7c49af896978d06371dee96a4d2315372 | [
"Apache-2.0"
] | null | null | null | //
// Player.cpp
// GameEngine2D
//
// Created by Andrea Catalini on 23/07/16.
// Copyright © 2016 Andrea Catalini. All rights reserved.
//
#include "Player.hpp"
#include "EntityManager.hpp"
//Components
#include "Appearance.hpp"
#include "Acceleration.hpp"
#include "Animation.hpp"
#include "Controller.hpp"
#incl... | 44.309524 | 197 | 0.764911 | LaPeste |
2e43e3909fb8a28c0174bd04f6f4106674e5bad2 | 6,284 | cpp | C++ | samplecode/CodeSnippets/SnpObjectActionHelper.cpp | shivendra14/AI_CC_2017_SDK_Win | e921f93bef0d73aa809bcda1bd6bbe2c0a4d28b2 | [
"X11"
] | null | null | null | samplecode/CodeSnippets/SnpObjectActionHelper.cpp | shivendra14/AI_CC_2017_SDK_Win | e921f93bef0d73aa809bcda1bd6bbe2c0a4d28b2 | [
"X11"
] | null | null | null | samplecode/CodeSnippets/SnpObjectActionHelper.cpp | shivendra14/AI_CC_2017_SDK_Win | e921f93bef0d73aa809bcda1bd6bbe2c0a4d28b2 | [
"X11"
] | null | null | null | //========================================================================================
//
// $File: //ai_stream/rel_21_0/devtech/sdk/public/samplecode/CodeSnippets/SnpObjectActionHelper.cpp $
//
// $Revision: #1 $
//
// Copyright 1987 Adobe Systems Incorporated. All rights reserved.
//
// NOTICE: Adobe per... | 24.076628 | 117 | 0.713081 | shivendra14 |
2e44698a53fc202d24f7cd59fc7a9cad5f54bf76 | 136,919 | cpp | C++ | start/opencv-3.4.1/build/build_main/modules/highgui/qrc_window_QT.cpp | shengxiaoyi1993/opencv_cpp | 8b9c8f31cd692cc6b1f4945ae0709ea605b15743 | [
"MIT"
] | 2 | 2019-10-08T07:01:36.000Z | 2019-10-08T07:01:38.000Z | start/opencv-3.4.1/build/build_main/modules/highgui/qrc_window_QT.cpp | shengxiaoyi1993/opencv_cpp | 8b9c8f31cd692cc6b1f4945ae0709ea605b15743 | [
"MIT"
] | null | null | null | start/opencv-3.4.1/build/build_main/modules/highgui/qrc_window_QT.cpp | shengxiaoyi1993/opencv_cpp | 8b9c8f31cd692cc6b1f4945ae0709ea605b15743 | [
"MIT"
] | null | null | null | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.9.7
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
static const unsig... | 76.320513 | 146 | 0.764196 | shengxiaoyi1993 |
2e447f5db9918bf5b71eb450ca7e55dcc5d523b5 | 1,908 | cpp | C++ | VOJ/zoj-1610.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | VOJ/zoj-1610.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | VOJ/zoj-1610.cpp | PIPIKAI/ACM | b8e4416a29c0619946c9b73b0fe5699b6e96e782 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define inf 1e9+7
#define ffr(i,a,b) for(int i=a;i<b;i++)
#define mem(a,b) memset( a,b,sizeof a)
#define Max(x,y) y>x? x=y: x=x
const int maxn=1e4+7;
int vis[maxn],last;
struct node{
int l,r;
ll sum;
void update(ll x){
sum=x;
... | 20.73913 | 61 | 0.455451 | PIPIKAI |
2e447fcca052c1b7cb1736c2a77e2880605f32e9 | 442 | cpp | C++ | VGP332/HelloFSM/GameState.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | 1 | 2021-04-23T19:18:12.000Z | 2021-04-23T19:18:12.000Z | VGP332/HelloFSM/GameState.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | null | null | null | VGP332/HelloFSM/GameState.cpp | CyroPCJr/OmegaEngine | 65fbd6cff54266a9c934e3a875a4493d26758661 | [
"MIT"
] | 1 | 2021-06-15T10:42:08.000Z | 2021-06-15T10:42:08.000Z | #include "GameState.h"
#include "Cat.h"
#include <ImGui\Inc\imgui.h>
using namespace FSM;
using namespace Omega::Graphics;
void GameState::Initialize()
{
GraphicsSystem::Get()->SetClearColor(Colors::Black);
mCat.Load();
}
void GameState::Terminate()
{
mCat.UnLoad();
}
void GameState::Update(f... | 13 | 54 | 0.651584 | CyroPCJr |
2e455fd48065ee06527188f5d5f5c63615e16591 | 2,201 | cpp | C++ | DBManager/DBManager.cpp | Zilib/SimpleDatabaseManager | da6e775855d7fdf99935a9991921a6c61666732d | [
"MIT"
] | null | null | null | DBManager/DBManager.cpp | Zilib/SimpleDatabaseManager | da6e775855d7fdf99935a9991921a6c61666732d | [
"MIT"
] | null | null | null | DBManager/DBManager.cpp | Zilib/SimpleDatabaseManager | da6e775855d7fdf99935a9991921a6c61666732d | [
"MIT"
] | null | null | null | #include "database.h"
#include "Menu.h"
#include <Windows.h>
void ShowHeader(Poll* pPoll)
{
// static header, which will always showed
std::cout << pPoll->Title << std::endl;
std::cout << pPoll->Description << std::endl;
}
void ShowPolls(Database* PollDB)
{
int ArrayIndex{ 1 };
for(auto& Poll: PollDB->GetPolls(... | 22.927083 | 113 | 0.645616 | Zilib |
2e45680cfd0f33acd98b3686c71e4354c334eba6 | 28,398 | cc | C++ | scene_game.cc | kawa-yoiko/Fireflies-And-Forest-Flowers | 4bf2e0cbcace7e9b9b2d1264eed6ad9944c3765e | [
"CC-BY-4.0"
] | 1 | 2022-02-06T04:47:26.000Z | 2022-02-06T04:47:26.000Z | scene_game.cc | kawa-yoiko/Fireflies-And-Forest-Flowers | 4bf2e0cbcace7e9b9b2d1264eed6ad9944c3765e | [
"CC-BY-4.0"
] | null | null | null | scene_game.cc | kawa-yoiko/Fireflies-And-Forest-Flowers | 4bf2e0cbcace7e9b9b2d1264eed6ad9944c3765e | [
"CC-BY-4.0"
] | null | null | null | #include "main.hh"
#include "utils.hh"
#include <cstdio>
#include <utility>
#include <vector>
static inline bool seg_intxn(
const vec2 a, const vec2 b,
const vec2 c, const vec2 d
) {
return (c - a).det(b - a) * (d - a).det(b - a) <= 0 &&
(a - c).det(d - c) * (b - c).det(d - c) <= 0;
}
class scene_game... | 30.050794 | 100 | 0.535249 | kawa-yoiko |
2e4791187e3b5ec0af2233dfaabad323952be920 | 773 | cpp | C++ | algospot/QUADTREE.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | algospot/QUADTREE.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | algospot/QUADTREE.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstring>
#define MAXTREESIZE 4
using namespace std;
typedef struct TreeNode
{
char color;
struct TreeNode* link[MAXTREESIZE]; // 0:left-top 1:right-top 2:left-bottom 3:right-bottom
}TreeNode;
void AddTreeNode(char color)
{
TreeNode* newnode = CreateNode(color);
}
TreeNode* CreateNo... | 16.804348 | 91 | 0.658473 | Twinparadox |
2e494fb5feb5c2d19635e49db8fc6ce5ffc4af19 | 635 | cc | C++ | vos/gui/sub/gui/si_save/SiSaveComponentCmd.cc | NASA-AMMOS/VICAR | 4504c1f558855d9c6eaef89f4460217aa4909f8e | [
"BSD-3-Clause"
] | 16 | 2020-10-21T05:56:26.000Z | 2022-03-31T10:02:01.000Z | vos/gui/sub/gui/si_save/SiSaveComponentCmd.cc | NASA-AMMOS/VICAR | 4504c1f558855d9c6eaef89f4460217aa4909f8e | [
"BSD-3-Clause"
] | null | null | null | vos/gui/sub/gui/si_save/SiSaveComponentCmd.cc | NASA-AMMOS/VICAR | 4504c1f558855d9c6eaef89f4460217aa4909f8e | [
"BSD-3-Clause"
] | 2 | 2021-03-09T01:51:08.000Z | 2021-03-23T00:23:24.000Z | ////////////////////////////////////////////////////////////////
// SiSaveComponentCmd.h: Command class for any component within
// the SiSaveCmdInterface; all it does is tell the SCI to do its
// thing. Used for simple creation of Option menus.
////////////////////////////////////////////////////////////////
#inclu... | 26.458333 | 68 | 0.581102 | NASA-AMMOS |
2e4c85416c7524df5dadf03a5e8999f7f5c064ff | 401 | cpp | C++ | FakeReal/Source/Engine/Render/Buffer/UniformBuffer.cpp | UGEL4/FakeReal | 4ffc39fc500629fd537f688c56d5acdfc34d0b30 | [
"Apache-2.0"
] | null | null | null | FakeReal/Source/Engine/Render/Buffer/UniformBuffer.cpp | UGEL4/FakeReal | 4ffc39fc500629fd537f688c56d5acdfc34d0b30 | [
"Apache-2.0"
] | null | null | null | FakeReal/Source/Engine/Render/Buffer/UniformBuffer.cpp | UGEL4/FakeReal | 4ffc39fc500629fd537f688c56d5acdfc34d0b30 | [
"Apache-2.0"
] | null | null | null | #include "UniformBuffer.h"
#include "../Renderer.h"
#include <assert.h>
#include "../../Platform/OpenGL/Render/Buffer/UniformBuffer_GL.h"
namespace FakeReal {
UniformBuffer* UniformBuffer::Create(unsigned int uiSize, unsigned int uiBinding)
{
switch (Renderer::GetAPI())
{
case RenderAPI::API::OpenGL: return n... | 21.105263 | 82 | 0.720698 | UGEL4 |
2e52ef2db0e514d4cd852dc314dd81238e1f0c9d | 1,192 | hpp | C++ | src/tracer/observers/energy_error_observer.hpp | ngc92/branchedflowsim | d38c0e7f892d07d0abd9b63d30570c41b3b83b34 | [
"MIT"
] | null | null | null | src/tracer/observers/energy_error_observer.hpp | ngc92/branchedflowsim | d38c0e7f892d07d0abd9b63d30570c41b3b83b34 | [
"MIT"
] | null | null | null | src/tracer/observers/energy_error_observer.hpp | ngc92/branchedflowsim | d38c0e7f892d07d0abd9b63d30570c41b3b83b34 | [
"MIT"
] | null | null | null | //
// Created by eriks on 4/24/18.
//
#ifndef BRANCHEDFLOWSIM_ENERGY_ERROR_OBSERVER_HPP
#define BRANCHEDFLOWSIM_ENERGY_ERROR_OBSERVER_HPP
#include "observer.hpp"
class EnergyErrorObserver : public ThreadLocalObserver {
public:
/// create an observer and specify the time interval for saving the particle's positio... | 29.073171 | 91 | 0.737416 | ngc92 |
2e5316d8636bb256b2c48ffcf1d5e88c2d7b31ee | 235 | cpp | C++ | src/OpenLoco/GameState.cpp | petergaal/OpenLoco | d915b8b9d2ee2b90e2d7c9b5eae44a6fd01fee2c | [
"MIT"
] | 585 | 2019-02-20T18:32:39.000Z | 2022-03-31T10:59:57.000Z | src/OpenLoco/GameState.cpp | petergaal/OpenLoco | d915b8b9d2ee2b90e2d7c9b5eae44a6fd01fee2c | [
"MIT"
] | 643 | 2019-02-19T19:54:32.000Z | 2022-03-31T12:34:37.000Z | src/OpenLoco/GameState.cpp | petergaal/OpenLoco | d915b8b9d2ee2b90e2d7c9b5eae44a6fd01fee2c | [
"MIT"
] | 84 | 2019-02-19T15:03:14.000Z | 2022-03-30T01:27:02.000Z | #include "GameState.h"
#include "Interop/Interop.hpp"
using namespace OpenLoco::Interop;
namespace OpenLoco
{
loco_global<GameState, 0x00525E18> _gameState;
GameState& getGameState()
{
return *_gameState;
}
}
| 16.785714 | 50 | 0.697872 | petergaal |
2e54a0ab947cd3aa3aeca2011505a741888cf1c3 | 16,840 | cpp | C++ | src/plugins/simulator/physics_engines/dynamics2d/dynamics2d_engine.cpp | freedomcondor/argos3-harry | 10cc040af3d5339538cfd801f0317fa8269429a5 | [
"MIT"
] | null | null | null | src/plugins/simulator/physics_engines/dynamics2d/dynamics2d_engine.cpp | freedomcondor/argos3-harry | 10cc040af3d5339538cfd801f0317fa8269429a5 | [
"MIT"
] | null | null | null | src/plugins/simulator/physics_engines/dynamics2d/dynamics2d_engine.cpp | freedomcondor/argos3-harry | 10cc040af3d5339538cfd801f0317fa8269429a5 | [
"MIT"
] | null | null | null | /**
* @file <argos3/plugins/simulator/physics_engines/dynamics2d/dynamics2d_engine.cpp>
*
* @author Carlo Pinciroli - <ilpincy@gmail.com>
*/
#include "dynamics2d_engine.h"
#include "dynamics2d_model.h"
#include "dynamics2d_gripping.h"
#include <argos3/core/simulator/simulator.h>
#include <argos3/core/simulator/en... | 47.705382 | 130 | 0.500238 | freedomcondor |
2e550b4bec8359ca1197d95f8c1a1b8bac17345f | 718 | hpp | C++ | libcaf_core/caf/message_priority.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_core/caf/message_priority.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_core/caf/message_priority.hpp | seewpx/actor-framework | 65ecf35317b81d7a211848d59e734f43483fe410 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <cstdint>
#include <string>
#include <type_traits>
#include "caf/d... | 24.758621 | 77 | 0.777159 | seewpx |
2e5adc532c473086d5dfeae55fede6b12fc532b1 | 5,415 | cpp | C++ | Templates/Project/Volund_Engine/src/Components/Renderer.cpp | Kaj9296/Volund-Engine | 2416edc6297da4818f0a9f5613daf2223ff868d9 | [
"MIT"
] | null | null | null | Templates/Project/Volund_Engine/src/Components/Renderer.cpp | Kaj9296/Volund-Engine | 2416edc6297da4818f0a9f5613daf2223ff868d9 | [
"MIT"
] | null | null | null | Templates/Project/Volund_Engine/src/Components/Renderer.cpp | Kaj9296/Volund-Engine | 2416edc6297da4818f0a9f5613daf2223ff868d9 | [
"MIT"
] | null | null | null | #pragma once
#include "PCH/PCH.h"
#include "Renderer.h"
#include "Camera.h"
#include "PointLight.h"
#include "DirectionalLight.h"
#include "Scene/Entity.h"
namespace Volund
{
void Renderer::SetMesh(Mesh& mesh)
{
this->mesh = &mesh;
}
void Renderer::SetMaterial(Material& material)
{
this->material = &materia... | 24.391892 | 136 | 0.668698 | Kaj9296 |
2e60934cfd02eaca62550f7d4ecc11f52d007808 | 31,741 | cpp | C++ | .vim/sourceCode/ogre_src_v1-8-1/RenderSystems/GL/src/nvparse/ps1.0_program.cpp | lakehui/Vim_config | 6cab80dc1209b34bf6379f42b1a92790bd0c146b | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | .vim/sourceCode/ogre_src_v1-8-1/RenderSystems/GL/src/nvparse/ps1.0_program.cpp | lakehui/Vim_config | 6cab80dc1209b34bf6379f42b1a92790bd0c146b | [
"MIT"
] | null | null | null | .vim/sourceCode/ogre_src_v1-8-1/RenderSystems/GL/src/nvparse/ps1.0_program.cpp | lakehui/Vim_config | 6cab80dc1209b34bf6379f42b1a92790bd0c146b | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | #include "ps1.0_program.h"
#include "nvparse_errors.h"
#include "nvparse_externs.h"
#include <string>
#include <map>
#include <algorithm>
#include <string.h>
#include <set>
using namespace std;
using namespace ps10;
struct ltstr
{
bool operator()(const char* s1, const char* s2) const
{
return strcmp(s1, s2) < 0... | 31.395648 | 110 | 0.650137 | lakehui |
2e6208a32d74edabdd44a6b6204724aa33ce4e33 | 2,047 | cpp | C++ | 21/modlarea.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 3 | 2015-08-26T17:14:02.000Z | 2015-11-17T04:18:56.000Z | 21/modlarea.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 10 | 2015-08-20T00:51:05.000Z | 2016-11-16T19:14:48.000Z | 21/modlarea.cpp | johnoel/tagest | be0a6b164683c448c90f0c3952343f5963eece3d | [
"BSD-2-Clause"
] | 3 | 2016-11-16T00:52:23.000Z | 2021-09-10T02:17:40.000Z | #include "modlarea.h"
Model_area::Model_area()
{
//cout << "Top of Model_area null constructor" << endl;
//cout << "Bottom of Model_area null constructor" << endl;
}//Model_area()
Model_area::~Model_area()
{
//cout << "Top of Model_area destructor" << endl;
//cout << "Bottom of Model_area destructor" << endl... | 25.271605 | 67 | 0.632633 | johnoel |
2e62c3ff1ed61703a21949f4291e158bc7a1b1ef | 3,583 | cpp | C++ | algorithm/data structure class/2018.11.11 biTree study/treeQuestion.cpp | xmmmmmovo/BaseNotes | aa895c15e47d2f344ffcc48798d094a8ca942a79 | [
"MIT"
] | 2 | 2019-06-06T21:09:44.000Z | 2019-09-23T05:00:27.000Z | algorithm/data structure class/2018.11.11 biTree study/treeQuestion.cpp | xmmmmmovo/notes | 3f51cdac402f1ce31ea75fe897d77159f75dc9aa | [
"MIT"
] | 13 | 2020-11-12T14:35:34.000Z | 2022-02-27T09:25:06.000Z | algorithm/data structure class/2018.11.11 biTree study/treeQuestion.cpp | xmmmmmovo/BaseNotes | aa895c15e47d2f344ffcc48798d094a8ca942a79 | [
"MIT"
] | null | null | null | /**
* 2018-11-11 二叉树课后题目
* language: C/C++ author: xmmmmmovo
*/
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <stack>
using namespace std;//stack所需的命名空间
typedef struct treeNode{
char nodeCharctar;
treeNode *left;
treeNode *right;
}treeNode;
int i = 0;
//前序生成二叉树
treeNode *createTree(){
... | 20.953216 | 67 | 0.505721 | xmmmmmovo |
2e63ce7b634c760b85066908540eecd75e247244 | 13,529 | hpp | C++ | src/localization/ndt/include/ndt/ndt_map.hpp | rubis-lab/autoware_rubis | 498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9 | [
"Apache-2.0"
] | null | null | null | src/localization/ndt/include/ndt/ndt_map.hpp | rubis-lab/autoware_rubis | 498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9 | [
"Apache-2.0"
] | null | null | null | src/localization/ndt/include/ndt/ndt_map.hpp | rubis-lab/autoware_rubis | 498ec5ff4c448d456fa0c6fe2f17e02fbd13ddb9 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 the Autoware 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 applicable law or a... | 32.211905 | 99 | 0.687634 | rubis-lab |
2e662137a9b2b83cf0785cde027fba2a1c52102e | 1,830 | cpp | C++ | src/KrTools.cpp | cildhdi/KrUI | c6f18620838f15a82ee65cef5c8d428137e551fb | [
"MIT"
] | 5 | 2017-09-08T09:41:58.000Z | 2018-11-26T13:16:55.000Z | src/KrTools.cpp | cildhdi/KrUI | c6f18620838f15a82ee65cef5c8d428137e551fb | [
"MIT"
] | null | null | null | src/KrTools.cpp | cildhdi/KrUI | c6f18620838f15a82ee65cef5c8d428137e551fb | [
"MIT"
] | 2 | 2018-10-08T20:18:09.000Z | 2020-04-13T01:47:19.000Z | #include "KrTools.h"
namespace KrUI
{
Gdiplus::SizeF GetTextSize(std::wstring strText, Gdiplus::Font* pFont, Gdiplus::Rect rect)
{
Gdiplus::GraphicsPath path;
Gdiplus::FontFamily fontfamily;
pFont->GetFamily(&fontfamily);
path.AddString(strText.c_str(), -1, &fontfamily, pFont->GetStyle(), pFont->GetSize(), r... | 25.774648 | 93 | 0.67541 | cildhdi |
2e668c6401e862a3bde6e7ee6eb790214b429c7e | 1,841 | hxx | C++ | src/libserver/css/css_property.hxx | korgoth1/rspamd | 154f69f000244785209dcef937c47f10ede1f113 | [
"Apache-2.0"
] | null | null | null | src/libserver/css/css_property.hxx | korgoth1/rspamd | 154f69f000244785209dcef937c47f10ede1f113 | [
"Apache-2.0"
] | null | null | null | src/libserver/css/css_property.hxx | korgoth1/rspamd | 154f69f000244785209dcef937c47f10ede1f113 | [
"Apache-2.0"
] | null | null | null | /*-
* Copyright 2021 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 25.929577 | 81 | 0.705052 | korgoth1 |
2e67eeed9cedf80b049288d9e2fdc3aa7e4cf44d | 5,390 | cpp | C++ | src/convolution.cpp | likunlun0618/snn | 65d2d919ad40842eb1682b9484a067d792503318 | [
"MIT"
] | 4 | 2020-01-16T08:15:22.000Z | 2020-03-30T04:30:23.000Z | src/convolution.cpp | likunlun0618/snn | 65d2d919ad40842eb1682b9484a067d792503318 | [
"MIT"
] | null | null | null | src/convolution.cpp | likunlun0618/snn | 65d2d919ad40842eb1682b9484a067d792503318 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <cblas.h>
#include <cstdlib>
#include "convolution.h"
//#include "global.h"
//#include "time.h"
namespace snn
{
Module* createConvolution(std::string options)
{
// 目前没有做错误处理
// b=0表示添加bias,b=1表示不添加bias
// 将所有的逗号替换为空格
// 因为原始文件需要用空格做split,所有不能直接用带空格的字符串做... | 23.744493 | 90 | 0.459184 | likunlun0618 |
2e7096429de074c6dc0b94ff65492ad592ecc077 | 5,675 | cpp | C++ | rds/src/rds_3_agent.cpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | 12 | 2020-08-18T09:01:50.000Z | 2022-03-17T19:53:30.000Z | rds/src/rds_3_agent.cpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | null | null | null | rds/src/rds_3_agent.cpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | 1 | 2021-08-25T13:12:55.000Z | 2021-08-25T13:12:55.000Z | #include "rds_3_agent.hpp"
#include "capsule.hpp"
#include "rds_3.hpp"
#include <cmath>
using Geometry2D::Vec2;
using AdditionalPrimitives2D::Circle;
using Geometry2D::HalfPlane2;
using Geometry2D::Capsule;
void RDS3CapsuleAgent::stepEuler(float dt,
const Vec2& v_nominal_p_ref,
const std::vector<Circle>& circle_obj... | 39.137931 | 105 | 0.773568 | epfl-lasa |
2e738dec6a3a3099cab30b75006463d8015d1cfa | 29,456 | cc | C++ | chrome/browser/media/history/media_history_feeds_table.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/media/history/media_history_feeds_table.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/media/history/media_history_feeds_table.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-03-07T14:20:02.000Z | 2021-03-07T14:20:02.000Z | // Copyright 2020 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 "chrome/browser/media/history/media_history_feeds_table.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"
#inclu... | 35.150358 | 80 | 0.661869 | Ron423c |
2e74647c409d68563ee04a2d2e000e3eb05061dd | 11,623 | hpp | C++ | 180726_calculate/calculate2.1.1rc6/calculate/node.hpp | newlawrence/Talks | d4f4e6b6ecf8f1aaf32ca9a2364c99ee23612745 | [
"CC-BY-4.0"
] | null | null | null | 180726_calculate/calculate2.1.1rc6/calculate/node.hpp | newlawrence/Talks | d4f4e6b6ecf8f1aaf32ca9a2364c99ee23612745 | [
"CC-BY-4.0"
] | 1 | 2019-01-15T14:21:34.000Z | 2019-01-15T15:19:41.000Z | 180726_calculate/calculate2.1.1rc6/calculate/node.hpp | newlawrence/Talks | d4f4e6b6ecf8f1aaf32ca9a2364c99ee23612745 | [
"CC-BY-4.0"
] | null | null | null | /*
Calculate - Version 2.1.1rc6
Last modified 2018/07/23
Released under MIT license
Copyright (c) 2016-2018 Alberto Lorenzo <alorenzo.md@gmail.com>
*/
#ifndef __CALCULATE_NODE_HPP__
#define __CALCULATE_NODE_HPP__
#include <iterator>
#include <ostream>
#include <stack>
#include <regex>
#include <unord... | 30.748677 | 96 | 0.549772 | newlawrence |
2e74c0aa5a641a97d07e066f6db2f30cca3bb37c | 1,972 | cc | C++ | chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-01-16T03:57:39.000Z | 2019-01-16T03:57:39.000Z | chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 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 "chrome/browser/extensions/api/guest_view/guest_view_internal_api.h"
#include "chrome/browser/guest_view/guest_view_base.h"
#include "chrome/bro... | 35.854545 | 78 | 0.736308 | aranajhonny |
2e75e3e4a2162124b20c1c8bbefa485237ebd4e7 | 750 | cpp | C++ | contests/icpc/2019_taiwan_regional/c.cpp | phogbinh/cp | 41a86550e14571c8f54bbec9579060647e77209c | [
"MIT"
] | null | null | null | contests/icpc/2019_taiwan_regional/c.cpp | phogbinh/cp | 41a86550e14571c8f54bbec9579060647e77209c | [
"MIT"
] | null | null | null | contests/icpc/2019_taiwan_regional/c.cpp | phogbinh/cp | 41a86550e14571c8f54bbec9579060647e77209c | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool IsMutuallyExclusive( int a, int b, int c )
{
return a != b && a != c && b != c;
}
int main()
{
int n;
cin >> n;
int a[ 50 ];
for ( int index = 0; index < n; index++ )
{
cin >> a[ index ];
}
for ( int i = 0; i < n; i++ )
{
... | 19.736842 | 60 | 0.3 | phogbinh |
2e770860d8331c041eb4dc0ce3ea9ff1533f8ff2 | 575 | cpp | C++ | final/stl containers/[]_vs_at()_vs_it.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/stl containers/[]_vs_at()_vs_it.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/stl containers/[]_vs_at()_vs_it.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
using namespace std;
void main()
{
vector<string> people = { "alice", "barbara", "cleo", "darlene", "edna" };
try {
for (auto i = 0; i < people.size(); i++)
cout << people[i] << " ";
cout << endl;
for (auto i = 0; i < people.size(); i++... | 20.535714 | 76 | 0.50087 | coderica |
2e789f06af897447476f1d56a49eef96e8e51284 | 552 | cc | C++ | lhd/Code/onlyread_.cc | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | null | null | null | lhd/Code/onlyread_.cc | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | null | null | null | lhd/Code/onlyread_.cc | xiyoulinuxgroup-2019-summer/TeamF | 7a661b172f7410583bd11335a3b049f9df8797a3 | [
"MIT"
] | 1 | 2019-07-15T06:28:11.000Z | 2019-07-15T06:28:11.000Z | //只读算法
//学习闭包的概念
#include<iostream>
#include<numeric>
#include<vector>
#include<algorithm>
using namespace std;
int main()
{
vector<int> a;
a.push_back(1);
a.push_back(2);
a.push_back(3);
vector<int> b ;
b.push_back(1);
b.push_back(2);
b.push_back(3);
int sum = accumulate(a.... | 20.444444 | 55 | 0.597826 | xiyoulinuxgroup-2019-summer |
2e7b66ec8342af3df59b9b44bc85f6f26162f260 | 1,703 | cpp | C++ | practicals/chapter5/main_chap_5_6.cpp | rasmunk/set10108 | 563bb339ecea28de80fffd11b5866be4fc25344d | [
"MIT"
] | null | null | null | practicals/chapter5/main_chap_5_6.cpp | rasmunk/set10108 | 563bb339ecea28de80fffd11b5866be4fc25344d | [
"MIT"
] | null | null | null | practicals/chapter5/main_chap_5_6.cpp | rasmunk/set10108 | 563bb339ecea28de80fffd11b5866be4fc25344d | [
"MIT"
] | null | null | null | #include <mpi.h>
#include <iostream>
#include <random>
#include <chrono>
using namespace std;
using namespace std::chrono;
double monte_carlo_pi(unsigned int iterations) {
auto microsec = duration_cast<milliseconds>(high_resolution_clock::now().time_since_epoch());
default_random_engine e(microsec... | 26.609375 | 98 | 0.609513 | rasmunk |
2e7c3c3300e62bbc655d664e247ec281bd44ce2d | 567 | cpp | C++ | Leetcode Solution/Tree/Easy/897. Increasing Order Search Tree.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/Tree/Easy/897. Increasing Order Search Tree.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/Tree/Easy/897. Increasing Order Search Tree.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
private:
TreeNode *prev=NULL;
public:
TreeNode* increasingBST(TreeNode* root) {
if(NULL == root)
return root;
//Traversing right subtree first
increasingBST(root->right);
root->right=prev;
prev=root;
TreeNode *res=root;
... | 22.68 | 80 | 0.550265 | bilwa496 |
2e7c6a1586f6ca65bf01743261d5a11debb26189 | 1,782 | hpp | C++ | OptimExplorer/widgets/metrics.hpp | MarkTuddenham/OptimExplorer | 1fb724bb80b099ade76d9f8d6179cb561dedb9bd | [
"MIT"
] | 1 | 2020-08-18T20:55:26.000Z | 2020-08-18T20:55:26.000Z | OptimExplorer/widgets/metrics.hpp | MarkTuddenham/OptimExplorer | 1fb724bb80b099ade76d9f8d6179cb561dedb9bd | [
"MIT"
] | 4 | 2020-10-11T12:57:29.000Z | 2020-10-11T14:06:17.000Z | OptimExplorer/widgets/metrics.hpp | MarkTuddenham/OptimExplorer | 1fb724bb80b099ade76d9f8d6179cb561dedb9bd | [
"MIT"
] | null | null | null | #pragma once
#include "core/events.hpp"
#include "core/utils.hpp"
#include "widgets/utils.hpp"
#include "widgets/widget.hpp"
DISABLE_WARNING_PUSH_ALL
#include <Mahi/Gui.hpp>
DISABLE_WARNING_POP
#include <iostream>
#include <utility>
#include <vector>
namespace OptimExplorer
{
class MetricsWidget : public Widget
{
... | 24.081081 | 83 | 0.664422 | MarkTuddenham |
2e7c93b51435e63ab3b3cdc7886326fd55933ccd | 10,664 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/plugins/projectexplorer/jsonwizard/jsonwizardpagefactory_p.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 5 | 2018-12-22T14:49:13.000Z | 2022-01-13T07:21:46.000Z | qt-creator-opensource-src-4.6.1/src/plugins/projectexplorer/jsonwizard/jsonwizardpagefactory_p.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/plugins/projectexplorer/jsonwizard/jsonwizardpagefactory_p.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | 8 | 2018-07-17T03:55:48.000Z | 2021-12-22T06:37:53.000Z | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... | 36.772414 | 122 | 0.629501 | kevinlq |
2e7d2873f7b314fbce113a0526319ff88f7bf73d | 3,960 | hpp | C++ | SOFT_dynamics/include/SOFT/TROTTER_prop.hpp | deba-cyber/SOFT_dynamics | 7ccad22a01f2e2782bf829aa670acb8c90e83b68 | [
"MIT"
] | null | null | null | SOFT_dynamics/include/SOFT/TROTTER_prop.hpp | deba-cyber/SOFT_dynamics | 7ccad22a01f2e2782bf829aa670acb8c90e83b68 | [
"MIT"
] | null | null | null | SOFT_dynamics/include/SOFT/TROTTER_prop.hpp | deba-cyber/SOFT_dynamics | 7ccad22a01f2e2782bf829aa670acb8c90e83b68 | [
"MIT"
] | null | null | null | # if !defined (TROTTER)
# define TROTTER
# include <SOFT/constants.hpp>
# include <iosfwd>
# include <vector>
# include <string>
# include <fftw3.h>
/* function to generate potential part of Trotter product
* of type fftw_complex */
std::vector<fftw_complex> get_pot_trotter_part(const std::vector<double>& V_vect)... | 33.277311 | 92 | 0.558838 | deba-cyber |
2e858331884578dde4fd38bc96a3199e87f64bc4 | 135 | cpp | C++ | BOJ_CPP/14490.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/14490.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | BOJ_CPP/14490.cpp | tnsgh9603/BOJ_CPP | 432b1350f6c67cce83aec3e723e30a3c6b5dbfda | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
int main(){int a,b,g;scanf("%is_prime:%is_prime",&a,&b);g=std::gcd(a,b);printf("%is_prime:%is_prime",a/g,b/g);} | 67.5 | 111 | 0.644444 | tnsgh9603 |
2e8875fe1d9e64bc928c3b7f179c5be93507012b | 7,877 | cpp | C++ | addons/ofxPostProcessing/src/NoiseWarpPass.cpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | null | null | null | addons/ofxPostProcessing/src/NoiseWarpPass.cpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | null | null | null | addons/ofxPostProcessing/src/NoiseWarpPass.cpp | creatologist/openFrameworks0084 | aa74f188f105b62fbcecb7baf2b41d56d97cf7bc | [
"MIT"
] | null | null | null | /*
* NoiseWarpPass.cpp
*
* Copyright (c) 2013, Neil Mendoza, http://www.neilmendoza.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 m... | 42.578378 | 127 | 0.488765 | creatologist |
2e899fcc8e830a4309ab4fadaabf9c32c4de6dc6 | 28,125 | cpp | C++ | lammps-master/lib/atc/ChargeRegulator.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/lib/atc/ChargeRegulator.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | lammps-master/lib/atc/ChargeRegulator.cpp | rajkubp020/helloword | 4bd22691de24b30a0f5b73821c35a7ac0666b034 | [
"MIT"
] | null | null | null | #include "ChargeRegulator.h"
#include "PoissonSolver.h"
#include "LammpsInterface.h"
#include "ATC_Coupling.h"
#include "ATC_Error.h"
#include "Function.h"
#include "PrescribedDataManager.h"
#include <sstream>
#include <string>
#include <vector>
#include <utility>
#include <set>
using ATC_Utility::to_string;
using s... | 38.213315 | 190 | 0.542862 | rajkubp020 |
2e8a46e74dc16ecd02c750626c56df64ccf1c24d | 2,487 | cpp | C++ | TameParse/Dfa/character_lexer.cpp | Logicalshift/TameParse | 59512fc5c098046922099a59328ca82f174d8f68 | [
"MIT"
] | 6 | 2018-01-10T22:37:32.000Z | 2019-06-19T04:44:32.000Z | TameParse/Dfa/character_lexer.cpp | Logicalshift/TameParse | 59512fc5c098046922099a59328ca82f174d8f68 | [
"MIT"
] | null | null | null | TameParse/Dfa/character_lexer.cpp | Logicalshift/TameParse | 59512fc5c098046922099a59328ca82f174d8f68 | [
"MIT"
] | null | null | null | //
// character_lexer.cpp
// Parse
//
// Created by Andrew Hunter on 14/05/2011.
//
// Copyright (c) 2011-2012 Andrew Hunter
//
// 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 Softwa... | 33.16 | 125 | 0.70969 | Logicalshift |
2e8de52c7b8eba8b6384f4e172062063721a5859 | 2,491 | cpp | C++ | atcoder/arc016/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | atcoder/arc016/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | atcoder/arc016/C/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | // atcoder/arc016/C/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
template<typename P, typename Q> ostream& operator << (ostream& os, pair<P, Q> p) { os << "(" << p.first << ... | 31.531646 | 150 | 0.507828 | Johniel |
2e8edfceab6cdbce0f13bb726b0bf78829749ec3 | 68,192 | cpp | C++ | src/trunk/libs/seiscomp3/system/model.cpp | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/trunk/libs/seiscomp3/system/model.cpp | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/trunk/libs/seiscomp3/system/model.cpp | yannikbehr/seiscomp3 | ebb44c77092555eef7786493d00ac4efc679055f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | /***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... | 26.502915 | 144 | 0.622639 | yannikbehr |
2e919489f2f6981ce86b9ea5e0702489e79a572a | 396 | hpp | C++ | NWNXLib/API/Mac/API/xGetGeometryReply.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/xGetGeometryReply.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/xGetGeometryReply.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
#include "unknown_CARD8.hpp"
namespace NWNXLib {
namespace API {
struct xGetGeometryReply
{
CARD8 type;
uint8_t depth;
uint16_t sequenceNumber;
uint32_t length;
uint32_t root;
int16_t x;
int16_t y;
uint16_t width;
uint16_t height;
uint16_t bor... | 12.774194 | 28 | 0.669192 | acaos |
2e9194bbb5d7aaf99956695988e7c7e71fe01bd1 | 13,573 | cc | C++ | src/cca/Chemistry/server/cxx/NWChem_Chemistry_QC_Model_Impl.cc | dinisAbranches/nwchem | 21cb07ff634475600ab687882652b823cad8c0cd | [
"ECL-2.0"
] | 317 | 2017-11-20T21:29:11.000Z | 2022-03-28T11:48:24.000Z | src/cca/Chemistry/server/cxx/NWChem_Chemistry_QC_Model_Impl.cc | dinisAbranches/nwchem | 21cb07ff634475600ab687882652b823cad8c0cd | [
"ECL-2.0"
] | 356 | 2017-12-05T01:38:12.000Z | 2022-03-31T02:28:21.000Z | src/cca/Chemistry/server/cxx/NWChem_Chemistry_QC_Model_Impl.cc | dinisAbranches/nwchem | 21cb07ff634475600ab687882652b823cad8c0cd | [
"ECL-2.0"
] | 135 | 2017-11-19T18:36:44.000Z | 2022-03-31T02:28:49.000Z | //
// File: NWChem_Chemistry_QC_Model_Impl.cc
// Symbol: NWChem.Chemistry_QC_Model-v0.4
// Symbol Type: class
// Babel Version: 0.10.12
// Description: Server-side implementation for NWChem.Chemistry_QC_Model
//
// WARNING: Automatically generated; only changes within splicers preserved
//
// bab... | 31.130734 | 112 | 0.751713 | dinisAbranches |
2e91b3017863e7a26c289f6e5e11953ea38c12bf | 274 | hpp | C++ | cvmat2qimage/include/cvmat2qimage.hpp | majorx234/qt_videocam_hough | bb8c5ac8045a1d312e3428705967960496688846 | [
"BSD-2-Clause"
] | null | null | null | cvmat2qimage/include/cvmat2qimage.hpp | majorx234/qt_videocam_hough | bb8c5ac8045a1d312e3428705967960496688846 | [
"BSD-2-Clause"
] | null | null | null | cvmat2qimage/include/cvmat2qimage.hpp | majorx234/qt_videocam_hough | bb8c5ac8045a1d312e3428705967960496688846 | [
"BSD-2-Clause"
] | null | null | null | #ifndef CVMAT2QIMAGE_HPP
#define CVMAT2QIMAGE_HPP
#include <QImage>
#include <opencv2/core/core.hpp>
#include <string>
cv::Mat qimage2cvmat( const QImage &inImage);
QImage cvmat2qimage( const cv::Mat &inMat );
std::string type2str(int type);
#endif // QT_OPENCV_CONV_HPP | 22.833333 | 45 | 0.766423 | majorx234 |
2e9220c365030107a4e71da79f7781e3ff3a865f | 1,519 | cpp | C++ | src/tools.cpp | andrestoga/CarND-Extended-Kalman-Filter-Project | b387f9282258cfe92db654c50478cf3d1c1f5a9a | [
"MIT"
] | null | null | null | src/tools.cpp | andrestoga/CarND-Extended-Kalman-Filter-Project | b387f9282258cfe92db654c50478cf3d1c1f5a9a | [
"MIT"
] | null | null | null | src/tools.cpp | andrestoga/CarND-Extended-Kalman-Filter-Project | b387f9282258cfe92db654c50478cf3d1c1f5a9a | [
"MIT"
] | null | null | null | #include "tools.h"
#include <iostream>
using Eigen::VectorXd;
using Eigen::MatrixXd;
using std::vector;
Tools::Tools() {}
Tools::~Tools() {}
VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations,
const vector<VectorXd> &ground_truth) {
/**
* Calculate the RMSE here.
... | 19.986842 | 71 | 0.57077 | andrestoga |
2e9699a79cf8fed4f81696cf4b3380f9b63a9143 | 423 | cpp | C++ | ch10/ex10_13.cpp | sanerror/sanerror-s-Cpp-Primer-Answers | 1e14c4789cacf03050c0aec93eb2e3a12010a77a | [
"MIT"
] | null | null | null | ch10/ex10_13.cpp | sanerror/sanerror-s-Cpp-Primer-Answers | 1e14c4789cacf03050c0aec93eb2e3a12010a77a | [
"MIT"
] | null | null | null | ch10/ex10_13.cpp | sanerror/sanerror-s-Cpp-Primer-Answers | 1e14c4789cacf03050c0aec93eb2e3a12010a77a | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
bool judge(const string & s1) {
return s1.size() < 5;
}
int main() {
vector<string> str{ "pen","pineapple","apple","pen" };
auto judge_begin = partition(str.begin(), str.end(), judge);
while (judge_beg... | 20.142857 | 62 | 0.607565 | sanerror |
2e96bd2aa74b798c78f7d958cc7b4093a7383579 | 2,315 | cpp | C++ | src/sly_1_unpacker.cpp | VelocityRa/SlyCooper | 03d4043293777d6a57093670968426a26384bc2b | [
"MIT"
] | 14 | 2020-12-07T11:45:43.000Z | 2022-01-14T14:51:40.000Z | src/sly_1_unpacker.cpp | VelocityRa/SlyCooper | 03d4043293777d6a57093670968426a26384bc2b | [
"MIT"
] | 2 | 2020-12-09T23:04:42.000Z | 2021-08-17T13:56:08.000Z | src/sly_1_unpacker.cpp | VelocityRa/SlyCooper | 03d4043293777d6a57093670968426a26384bc2b | [
"MIT"
] | 3 | 2020-12-09T15:28:38.000Z | 2021-10-17T04:20:14.000Z | #include "file_magic_utils.hpp"
#include "fs.hpp"
#include "types.hpp"
#include "wac.hpp"
#include <algorithm>
#include <cstdio>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <iterator>
#include <stdexcept>
constexpr bool DEBUG_MODE = false;
int main(int argc, char* argv[]) {
try {
... | 31.283784 | 93 | 0.577106 | VelocityRa |
2e989ae4e8f30f505d462831ba4ecec648258fb3 | 1,217 | cpp | C++ | src/allegro_flare/random.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 25 | 2015-03-30T02:02:43.000Z | 2019-03-04T22:29:12.000Z | src/allegro_flare/random.cpp | MarkOates/allegro_flare | b454cb85eb5e43d19c23c0c6fd2dc11b96666ce7 | [
"MIT"
] | 122 | 2015-04-01T08:15:26.000Z | 2019-10-16T20:31:22.000Z | src/allegro_flare/random.cpp | allegroflare/allegro_flare | 21d6fe2a5a5323102285598c8a8c75b393ce0322 | [
"MIT"
] | 4 | 2020-02-25T18:17:31.000Z | 2021-04-17T05:06:52.000Z | #include <allegro_flare/random.h>
namespace allegro_flare
{
Random::Random(unsigned int seed)
: seed(seed)
{
set_seed(seed);
}
void Random::set_seed(unsigned int new_seed)
{
seed = new_seed;
random_number_generator.seed(seed);
}
unsigned int Random::get_seed()
{... | 15.2125 | 60 | 0.622021 | MarkOates |
2e9d43df63c223a59a3b2d72792c53251da00d21 | 791 | cpp | C++ | unit/goto-programs/goto_trace_output.cpp | jeannielynnmoulton/cbmc | 1d4af6d88ec960677170049a8a89a9166b952996 | [
"BSD-4-Clause"
] | null | null | null | unit/goto-programs/goto_trace_output.cpp | jeannielynnmoulton/cbmc | 1d4af6d88ec960677170049a8a89a9166b952996 | [
"BSD-4-Clause"
] | 1 | 2019-02-05T16:18:25.000Z | 2019-02-05T16:18:25.000Z | unit/goto-programs/goto_trace_output.cpp | jeannielynnmoulton/cbmc | 1d4af6d88ec960677170049a8a89a9166b952996 | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module: Unit tests for goto_trace_stept::output
Author: Diffblue Limited. All rights reserved.
\*******************************************************************/
#include <testing-utils/catch.hpp>
#include <goto-programs/goto_program_templat... | 29.296296 | 69 | 0.633375 | jeannielynnmoulton |