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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b11426218e399d5f9c11b9fd2a26731b719f63d4 | 3,042 | cc | C++ | gr-dip/lib/gradient_magnitude_impl.cc | mattdarc/gr-dip | 34d2a0d3ec8b78376928df48d4433ab813f702d1 | [
"MIT"
] | 1 | 2018-05-16T04:24:06.000Z | 2018-05-16T04:24:06.000Z | gr-dip/lib/gradient_magnitude_impl.cc | mattdarc/gnuradio-image-processing | 34d2a0d3ec8b78376928df48d4433ab813f702d1 | [
"MIT"
] | null | null | null | gr-dip/lib/gradient_magnitude_impl.cc | mattdarc/gnuradio-image-processing | 34d2a0d3ec8b78376928df48d4433ab813f702d1 | [
"MIT"
] | null | null | null | /* -*- c++ -*- */
/*
* Copyright 2018 <+YOU OR YOUR COMPANY+>.
*
* This 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, or (at your option)
* any later version.
*
* This software is d... | 29.25 | 82 | 0.605523 | mattdarc |
b114a7acbff2f2f530f2f3f484fb4ba97847c569 | 598 | cpp | C++ | GTest/Practice_GTest/Practice_DesignPattern/Builder_before.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | 1 | 2021-03-12T19:29:33.000Z | 2021-03-12T19:29:33.000Z | GTest/Practice_GTest/src/Builder/Builder_before.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | 1 | 2019-03-13T01:36:12.000Z | 2019-03-13T01:36:12.000Z | GTest/Practice_GTest/src/Builder/Builder_before.cpp | goodspeed24e/Programming | ae73fad022396ea03105aad83293facaeea561ae | [
"MIT"
] | null | null | null |
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
class Array{
public:
void addFront( char c ){
lst.push_front(c);
}
void addBack( char c ){
lst.push_back(c);
}
void traverse(){
int i;
for ( i = 0; i < lst.size(); i++)
cout << lst[i] << ' ';
cout << endl;
}
private:
dequ... | 16.162162 | 63 | 0.526756 | goodspeed24e |
b116bf4434fee9f330b2513eec2eb44336c5973e | 435 | cpp | C++ | Holiday Of Equality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | 1 | 2021-04-07T05:13:21.000Z | 2021-04-07T05:13:21.000Z | Holiday Of Equality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | null | null | null | Holiday Of Equality.cpp | manu-karenite/Codeforces-Solutions | c963a0186c6530ea8a785780fc4d68ed539e8c6e | [
"MIT"
] | null | null | null | /*
This code is written by Manavesh Narendra
E-mail : manu.karenite@gmail.com
LinkedIn : https://www.linkedin.com/in/manavesh-narendra-489833196/
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
cin>>arr[i];
sort(arr,arr+... | 15 | 67 | 0.611494 | manu-karenite |
b1176981959c87b88d480ffe3ad1020418ed0a29 | 490 | cpp | C++ | SingleSource/Regression/C++/EH/ctor_dtor_count-2.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 70 | 2019-01-15T03:03:55.000Z | 2022-03-28T02:16:13.000Z | SingleSource/Regression/C++/EH/ctor_dtor_count-2.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 519 | 2020-09-15T07:40:51.000Z | 2022-03-31T20:51:15.000Z | SingleSource/Regression/C++/EH/ctor_dtor_count-2.cpp | Nuullll/llvm-test-suite | afbdd0a9ee7770e074708b68b34a6a5312bb0b36 | [
"Apache-2.0"
] | 117 | 2020-06-24T13:11:04.000Z | 2022-03-23T15:44:23.000Z | // Testcase for proper handling of
// c++ type, constructors and destructors.
#include <stdio.h>
int c, d;
struct A
{
int i;
A () { i = ++c; printf ("A() %d\n", i); }
A (const A&) { i = ++c; printf ("A(const A&) %d\n", i); }
~A() { printf ("~A() %d\n", i); ++d; }
};
void
f()
{
printf ("Throwing 1...\n");
... | 13.243243 | 59 | 0.438776 | Nuullll |
b11a4a640d296f7a682906d6c3a581f27e8c484b | 25,592 | cc | C++ | chromeos/dbus/cryptohome/fake_cryptohome_client.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chromeos/dbus/cryptohome/fake_cryptohome_client.cc | Ron423c/chromium | 2edf7b980065b648f8b2a6e52193d83832fe36b7 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chromeos/dbus/cryptohome/fake_cryptohome_client.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 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/dbus/cryptohome/fake_cryptohome_client.h"
#include <stddef.h>
#include <stdint.h>
#include <utility>
#include "base/bind.h"
#include... | 37.360584 | 80 | 0.758323 | Ron423c |
b12267f0f8c610962433d055fb71a10d1392a4db | 2,921 | cc | C++ | data/convert_to_dec.cc | JamisHoo/PageRank-Spark | 7a5a2acc64cc8dd9132d757a83964ea41319064d | [
"MIT"
] | null | null | null | data/convert_to_dec.cc | JamisHoo/PageRank-Spark | 7a5a2acc64cc8dd9132d757a83964ea41319064d | [
"MIT"
] | null | null | null | data/convert_to_dec.cc | JamisHoo/PageRank-Spark | 7a5a2acc64cc8dd9132d757a83964ea41319064d | [
"MIT"
] | null | null | null | /******************************************************************************
* Copyright (c) 2015 Jamis Hoo
* Distributed under the MIT license
* (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
*
* Project: PageRank
* Filename: convert_to_dec.cc
* Version: 1.0
* Autho... | 25.849558 | 81 | 0.519343 | JamisHoo |
b1238ce5a116d004e1fdf30c2a67e67bad42044b | 20,591 | cpp | C++ | test/matcher.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | null | null | null | test/matcher.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | 63 | 2020-10-05T07:01:49.000Z | 2022-03-15T20:08:22.000Z | test/matcher.cpp | amritbrar/newsboat | fdef6fc5558aaf0baa3b8c185b335ca577535a33 | [
"MIT"
] | null | null | null | #include "matcher.h"
#include "3rd-party/catch.hpp"
#include <map>
#include "matchable.h"
#include "matcherexception.h"
#include "test-helpers/stringmaker/optional.h"
using namespace newsboat;
class MatcherMockMatchable : public Matchable {
public:
MatcherMockMatchable() = default;
MatcherMockMatchable(
std::... | 24.77858 | 88 | 0.635957 | amritbrar |
b127b77c2f1c5fa80304bae37934bf96e265a1d1 | 314 | hpp | C++ | Source/Colyseus/Protocol.hpp | endel/colyseus-cocos2d-x | 96a12a15d1f70f061365769e6cc84ba9bde49c72 | [
"MIT"
] | 15 | 2019-01-24T22:05:12.000Z | 2022-01-19T08:40:42.000Z | Source/Colyseus/Protocol.hpp | endel/colyseus-cocos2d-x | 96a12a15d1f70f061365769e6cc84ba9bde49c72 | [
"MIT"
] | 3 | 2019-02-09T14:19:21.000Z | 2021-05-08T01:41:38.000Z | Source/Colyseus/Protocol.hpp | endel/colyseus-cocos2d-x | 96a12a15d1f70f061365769e6cc84ba9bde49c72 | [
"MIT"
] | 2 | 2019-02-05T04:52:12.000Z | 2020-03-17T17:21:16.000Z | #ifndef Protocol_hpp
#define Protocol_hpp
enum class Protocol : int {
// Room-related (10~19)
JOIN_ROOM = 10,
JOIN_ERROR = 11,
LEAVE_ROOM = 12,
ROOM_DATA = 13,
ROOM_STATE = 14,
ROOM_STATE_PATCH = 15,
// Generic messages (50~60)
BAD_REQUEST = 50,
};
#endif /* Protocol_hpp */
| 17.444444 | 31 | 0.624204 | endel |
b12913ff8c933cb8e79afe83230d0bdcd92d2c9b | 12,459 | cpp | C++ | arena2d-sim/level/Wanderers.cpp | FranklinBF/arena2D | 5dce3f0c41cce94691bbc9ca4f6ded124de61030 | [
"MIT"
] | 18 | 2020-08-02T07:25:24.000Z | 2022-01-06T08:53:00.000Z | arena2d-sim/level/Wanderers.cpp | FranklinBF/arena2D | 5dce3f0c41cce94691bbc9ca4f6ded124de61030 | [
"MIT"
] | 4 | 2020-09-28T20:42:00.000Z | 2020-10-10T01:41:43.000Z | arena2d-sim/level/Wanderers.cpp | FranklinBF/arena2D | 5dce3f0c41cce94691bbc9ca4f6ded124de61030 | [
"MIT"
] | 18 | 2020-08-15T19:37:48.000Z | 2022-03-21T17:58:39.000Z | #include "Wanderers.hpp"
void Wanderers::freeWanderers(){
// free all wanderers
for(int i = 0; i < _wanderers.size(); i++){
delete(_wanderers[i]);
}
_wanderers.clear();
}
void Wanderers::freeRobotWanderers(){
// free all wanderers
for(int i = 0; i < _robot_wanderers.size(); i++){
... | 34.801676 | 177 | 0.56088 | FranklinBF |
b12d4c85a93587dca488414f0b1498bdfabdce6c | 13,372 | cpp | C++ | Source/Kaggle.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | null | null | null | Source/Kaggle.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | null | null | null | Source/Kaggle.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | null | null | null | /*#include <SFML/Graphics.hpp>
#include <rbf/SDRNetwork.h>
#include <time.h>
#include <iostream>
#include <random>
#include <array>
#include <fstream>
#include <sstream>
#include <string>
//#include <dirent.h>
struct Label {
std::string _name;
std::vector<std::string> _members;
Label(const s... | 24.007181 | 135 | 0.599462 | JakobStruye |
b12fc653ec42e9454da75e1f8ff8228692932820 | 1,741 | cc | C++ | testing/benchmarks/benchmark_shortmultiplication.cc | WarpRules/WVLInt | d446687e9fa9bc1118576f9f979e9e37cc5729f0 | [
"MIT"
] | 1 | 2020-04-19T22:10:53.000Z | 2020-04-19T22:10:53.000Z | testing/benchmarks/benchmark_shortmultiplication.cc | WarpRules/WVLInt | d446687e9fa9bc1118576f9f979e9e37cc5729f0 | [
"MIT"
] | null | null | null | testing/benchmarks/benchmark_shortmultiplication.cc | WarpRules/WVLInt | d446687e9fa9bc1118576f9f979e9e37cc5729f0 | [
"MIT"
] | null | null | null | #include "../WMPInt.hh"
#include "benchmark_timer.hh"
#include <random>
#include <memory>
namespace
{
std::mt19937_64 rngEngine(0);
volatile std::uint64_t gValueSink1, gValueSink2;
}
template<std::size_t kSize>
void runMultiplicationBenchmark(std::size_t totalIterations)
{
std::unique_ptr<WMPUInt<kSize>>... | 28.540984 | 72 | 0.699598 | WarpRules |
b12fcc072a1ac4d7084b78e82c6fad41f7babf9c | 2,199 | cxx | C++ | MITK/Applications/CorrectVideoDistortion/niftkCorrectVideoDistortion.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Applications/CorrectVideoDistortion/niftkCorrectVideoDistortion.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Applications/CorrectVideoDistortion/niftkCorrectVideoDistortion.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 24.707865 | 99 | 0.601182 | NifTK |
b13380efd308c2fe52a2dcafe0206f5e0bfa754e | 43,982 | cpp | C++ | src/gtpV2Codec/msgClasses/deleteBearerRequestMsg.cpp | badhrinathpa/openmme | 6975dc7ba007cd111fdce8e8f64d3d52bef0a625 | [
"Apache-2.0"
] | 46 | 2019-02-19T07:47:54.000Z | 2022-03-12T13:16:26.000Z | src/gtpV2Codec/msgClasses/deleteBearerRequestMsg.cpp | omec-project/openmme | 181ee0a2a16fe4eea1b84986477f37d6ebbe55c3 | [
"Apache-2.0"
] | 71 | 2019-03-03T02:22:33.000Z | 2020-10-07T22:34:25.000Z | src/gtpV2Codec/msgClasses/deleteBearerRequestMsg.cpp | badhrinathpa/openmme | 6975dc7ba007cd111fdce8e8f64d3d52bef0a625 | [
"Apache-2.0"
] | 38 | 2019-02-19T06:36:40.000Z | 2021-07-17T14:35:50.000Z | /*
* deleteBearerRequestMsg.cpp
*
* Revisit header later
* Author: hariharanb
*/
#include "deleteBearerRequestMsg.h"
#include "../ieClasses/manual/gtpV2Ie.h"
#include "../ieClasses/gtpV2IeFactory.h"
#include "../ieClasses/ebiIe.h"
#include "../ieClasses/ebiIe.h"
#include "../ieClasses/bearerContextIe.h"
#incl... | 37.591453 | 167 | 0.603383 | badhrinathpa |
b13726ae1dd4a0492f87449256e9cf8a2b56e87f | 144 | cpp | C++ | examples/OpenEXR/boo.cpp | faddat/hunter | e7afec1a836c2aa63dec96d5f5ff5d04e6a7db3e | [
"BSD-2-Clause"
] | null | null | null | examples/OpenEXR/boo.cpp | faddat/hunter | e7afec1a836c2aa63dec96d5f5ff5d04e6a7db3e | [
"BSD-2-Clause"
] | null | null | null | examples/OpenEXR/boo.cpp | faddat/hunter | e7afec1a836c2aa63dec96d5f5ff5d04e6a7db3e | [
"BSD-2-Clause"
] | 1 | 2021-12-02T00:42:10.000Z | 2021-12-02T00:42:10.000Z | #include <OpenEXR/ImfHeader.h>
#include <iostream>
int main() {
Imf::Header header;
std::cout << header.compression() << std::endl;
}
| 16 | 51 | 0.638889 | faddat |
b139c880fa81d115d0e1dce6a1cf22858a6f6743 | 27,203 | cpp | C++ | Cartwheel/cartwheel-3d/Physics/ODEWorld.cpp | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/cartwheel-3d/Physics/ODEWorld.cpp | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | Cartwheel/cartwheel-3d/Physics/ODEWorld.cpp | MontyThibault/centre-of-mass-awareness | 58778f148e65749e1dfc443043e9fc054ca3ff4d | [
"MIT"
] | null | null | null | #include "ODEWorld.h"
#include <Utils/utils.h>
#include <Physics/Joint.h>
#include <Physics/StiffJoint.h>
#include <Physics/HingeJoint.h>
#include <Physics/UniversalJoint.h>
#include <Physics/BallInSocketJoint.h>
#include <Physics/PhysicsGlobals.h>
/**
Default constructor
*/
ODEWorld::ODEWorld() : World(){
setupWorl... | 32.973333 | 159 | 0.714406 | MontyThibault |
b13b401d4eb5fcde0a85f02c5c7c26bf73d92263 | 3,959 | cpp | C++ | get_slt_line_from_obj.cpp | sublimationAC/DDE | fcde429b0db65100b8bd8bf607626b6beff8a431 | [
"MIT"
] | null | null | null | get_slt_line_from_obj.cpp | sublimationAC/DDE | fcde429b0db65100b8bd8bf607626b6beff8a431 | [
"MIT"
] | 1 | 2019-01-05T06:12:34.000Z | 2019-01-08T06:20:18.000Z | get_slt_line_from_obj.cpp | sublimationAC/DDE | fcde429b0db65100b8bd8bf607626b6beff8a431 | [
"MIT"
] | null | null | null | #include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include <iostream>
#include <ctype.h>
using namespace cv;
using namespace std;
const int width = 1640;
const int height = 980;
const int nVerts = 11510;
double x[nVerts], y[nVerts], z[nVerts];
struct Point_my
{
cv::Point2d pt2d;
int v_idx;
... | 29.325926 | 114 | 0.538772 | sublimationAC |
b13cdb21606690801381068e6f084a14399364de | 5,489 | cpp | C++ | UICreator/Windows/PropertyWindows/BtnProperties.cpp | rohmer/LVGL_UI_Creator | 37a19be55e1de95d56717786a27506d8c78fd1ae | [
"MIT"
] | 33 | 2019-09-17T20:57:56.000Z | 2021-11-20T21:50:51.000Z | UICreator/Windows/PropertyWindows/BtnProperties.cpp | rohmer/LVGL_UI_Creator | 37a19be55e1de95d56717786a27506d8c78fd1ae | [
"MIT"
] | 4 | 2019-10-21T08:38:11.000Z | 2021-11-17T16:53:08.000Z | UICreator/Windows/PropertyWindows/BtnProperties.cpp | rohmer/LVGL_UI_Creator | 37a19be55e1de95d56717786a27506d8c78fd1ae | [
"MIT"
] | 16 | 2019-09-25T04:25:04.000Z | 2022-03-28T07:46:18.000Z | #include "BtnProperties.h"
lv_obj_t *BtnProperties::inkIn, *BtnProperties::inkOut, *BtnProperties::inkWait, *BtnProperties::toggle, *BtnProperties::layout, *BtnProperties::fitTop, *BtnProperties::fitBot, *BtnProperties::fitRight, *BtnProperties::fitLeft;
lv_obj_t *BtnProperties::rel, *BtnProperties::ina, *Btn... | 36.350993 | 235 | 0.675351 | rohmer |
b13e6fadb30260c6d1ec19809ce757f2283316cd | 1,322 | cpp | C++ | src/executor.cpp | dixitgarg059/SimpleRA | 0ecd8adb5b66f06256c28323bc57b5901f5c94e1 | [
"MIT"
] | null | null | null | src/executor.cpp | dixitgarg059/SimpleRA | 0ecd8adb5b66f06256c28323bc57b5901f5c94e1 | [
"MIT"
] | null | null | null | src/executor.cpp | dixitgarg059/SimpleRA | 0ecd8adb5b66f06256c28323bc57b5901f5c94e1 | [
"MIT"
] | null | null | null |
#include "global.h"
void executeCommand()
{
switch (parsedQuery.queryType)
{
case CLEAR:
executeCLEAR();
break;
case CROSS:
executeCROSS();
break;
case DISTINCT:
executeDISTINCT();
break;
case EXPORT:
executeEXPORT();
break;
... | 17.864865 | 50 | 0.520424 | dixitgarg059 |
b140fcf86cd5552d8afcc644ddc9a79b9fc166fb | 1,231 | cpp | C++ | p371e/get_sum.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | 1 | 2020-02-20T12:04:46.000Z | 2020-02-20T12:04:46.000Z | p371e/get_sum.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | p371e/get_sum.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | // g++ -std=c++11 *.cpp -o test && ./test && rm -f test
#include <vector>
#include <limits>
#include <iostream>
using namespace std;
class Solution {
public:
int getSum(int a, int b) {
int sum = a ^ b;
int carry = a & b;
if (carry) {
return getSum(sum, carry << 1);
} el... | 21.982143 | 60 | 0.418359 | l33tdaima |
b143e72955bf1407036f56934005582015bb04ce | 4,813 | hpp | C++ | Source/AllProjects/WndUtils/CIDWUtils/CIDWUtils_2ColSectList.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | 1 | 2019-05-28T06:33:01.000Z | 2019-05-28T06:33:01.000Z | Source/AllProjects/WndUtils/CIDWUtils/CIDWUtils_2ColSectList.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | Source/AllProjects/WndUtils/CIDWUtils/CIDWUtils_2ColSectList.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDCtrls_2ColSectList.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 01/20/2016
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://ope... | 32.52027 | 87 | 0.42219 | eudora-jia |
b144971956577c3c8efb0a4ab7527b4f7a5556e2 | 1,103 | cpp | C++ | VehFuncs/Steer.cpp | JuniorDjjr/VehFuncs | 123c9228f99efe2a14030473542e2c0fff54c82f | [
"MIT"
] | 32 | 2018-01-23T21:38:06.000Z | 2022-02-06T21:02:42.000Z | VehFuncs/Steer.cpp | JuniorDjjr/VehFuncs | 123c9228f99efe2a14030473542e2c0fff54c82f | [
"MIT"
] | 41 | 2018-03-20T00:21:50.000Z | 2021-12-05T10:01:49.000Z | VehFuncs/Steer.cpp | JuniorDjjr/VehFuncs | 123c9228f99efe2a14030473542e2c0fff54c82f | [
"MIT"
] | 3 | 2019-06-17T16:46:48.000Z | 2020-05-12T01:40:33.000Z | #include "VehFuncsCommon.h"
#include "NodeName.h"
extern float iniDefaultSteerAngle;
void ProcessSteer(CVehicle *vehicle, list<RwFrame*> frames)
{
for (RwFrame *frame : frames)
{
if (frame->object.parent && FRAME_EXTENSION(frame)->owner == vehicle)
{
const string name = GetFrameNodeName(frame);
... | 23.468085 | 79 | 0.606528 | JuniorDjjr |
b148bcb118f893a6be41aa15f775e8cb8fc9ff76 | 2,130 | hpp | C++ | include/morpheus/Utils.hpp | msurkovsky/morpheus | b938de5c5863f8fa08cd768576a08a6aa7d55e65 | [
"MIT"
] | 1 | 2019-08-16T11:01:00.000Z | 2019-08-16T11:01:00.000Z | include/morpheus/Utils.hpp | It4innovations/morpheus | b938de5c5863f8fa08cd768576a08a6aa7d55e65 | [
"MIT"
] | null | null | null | include/morpheus/Utils.hpp | It4innovations/morpheus | b938de5c5863f8fa08cd768576a08a6aa7d55e65 | [
"MIT"
] | 1 | 2019-08-16T11:00:56.000Z | 2019-08-16T11:00:56.000Z |
#ifndef MRPH_UTILS_H
#define MRPH_UTILS_H
#include "llvm/IR/Value.h"
#include <string>
#include <vector>
#include <functional>
namespace Utils {
template<typename T>
void store_if_not(std::vector<T> &values, const T &v, T excl);
template<typename T>
std::string pp_vector(const std::vector<T> &values,
... | 36.101695 | 92 | 0.476056 | msurkovsky |
b148f55db8c4920418447ad0e4d571bf43134d7d | 239 | cpp | C++ | PSFExtractionHandler/Version.cpp | Lourdle/PSFExpand | 471e04831f3aab1a5152064871c2571dfe8af4e1 | [
"MIT"
] | null | null | null | PSFExtractionHandler/Version.cpp | Lourdle/PSFExpand | 471e04831f3aab1a5152064871c2571dfe8af4e1 | [
"MIT"
] | null | null | null | PSFExtractionHandler/Version.cpp | Lourdle/PSFExpand | 471e04831f3aab1a5152064871c2571dfe8af4e1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "PSFExtHandlerFrame.h"
DWORD
PSFEXTRACTIONHANDLER_API
PSFExtHandler_GetVersion()
{
return PSFEXTHANDLER_CURRENT_VERSION;
}
PCWSTR
PSFEXTRACTIONHANDLER_API
PSFExtHandler_GetVersionString()
{
return L"1.1.1";
}
| 14.058824 | 38 | 0.8159 | Lourdle |
b14908fa049ca2d17e8fd682a8fb7174c2d5c559 | 4,079 | cc | C++ | android/art/runtime/arch/mips64/context_mips64.cc | Solotov/deoptfuscator | 8a54119e81517bcef73d2d6dfefba910ae2446e7 | [
"MIT"
] | 206 | 2020-04-13T03:19:33.000Z | 2022-03-27T13:52:25.000Z | android/art/runtime/arch/mips64/context_mips64.cc | Solotov/deoptfuscator | 8a54119e81517bcef73d2d6dfefba910ae2446e7 | [
"MIT"
] | 9 | 2020-06-07T12:51:09.000Z | 2022-03-28T23:55:09.000Z | android/art/runtime/arch/mips64/context_mips64.cc | Solotov/deoptfuscator | 8a54119e81517bcef73d2d6dfefba910ae2446e7 | [
"MIT"
] | 42 | 2020-04-13T03:37:58.000Z | 2022-03-23T15:08:12.000Z | /*
* Copyright (C) 2014 The Android Open Source Project
*
* 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 app... | 31.867188 | 98 | 0.704094 | Solotov |
b1495a1985cd8bda0dc6347be409582b805b2f90 | 3,002 | cpp | C++ | src/modules/cl/cl_vision.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 26 | 2019-09-04T17:48:41.000Z | 2022-02-23T17:04:24.000Z | src/modules/cl/cl_vision.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 57 | 2019-09-06T21:37:34.000Z | 2022-03-09T02:13:46.000Z | src/modules/cl/cl_vision.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 24 | 2019-09-04T23:12:07.000Z | 2022-03-30T02:06:22.000Z | #include <cl/rpp_cl_common.hpp>
#include "cl_declarations.hpp"
/********************** Blur ************************/
float box_3x3[] = {
0.111, 0.111, 0.111,
0.111, 0.111, 0.111,
0.111, 0.111, 0.111,
};
// cl_int
// box_filter_cl(cl_mem srcPtr, RppiSize srcSize,
// cl_mem dstPtr, unsigned int filterS... | 37.525 | 129 | 0.591939 | shobana-mcw |
b149f1b9fce687c6efc15d3b7628ffc1fba518f4 | 5,203 | cpp | C++ | src/tip/db/pg/query.cpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 25 | 2016-02-12T14:06:23.000Z | 2021-12-20T02:45:35.000Z | src/tip/db/pg/query.cpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 9 | 2016-11-21T08:49:19.000Z | 2019-07-02T10:52:35.000Z | src/tip/db/pg/query.cpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 5 | 2018-03-16T11:46:23.000Z | 2022-03-06T06:58:57.000Z | /*
* query.cpp
*
* Created on: 11 июля 2015 г.
* @author: zmij
*/
#include <tip/db/pg/query.hpp>
#include <tip/db/pg/resultset.hpp>
#include <tip/db/pg/database.hpp>
#include <tip/db/pg/transaction.hpp>
#include <tip/db/pg/log.hpp>
#include <functional>
namespace tip {
namespace db {
namespace pg {
LOCAL... | 26.819588 | 92 | 0.605612 | zmij |
b14ad2a4529ec82fdcd295d7d31f85e0de001413 | 8,982 | cpp | C++ | Sources/Target/Darwin/Process.cpp | cclauss/ds2 | 3d7c41e7b22c4184db6fe1328d1d28c9dc956fad | [
"NCSA"
] | 225 | 2015-01-08T00:50:45.000Z | 2020-01-15T04:49:42.000Z | Sources/Target/Darwin/Process.cpp | cclauss/ds2 | 3d7c41e7b22c4184db6fe1328d1d28c9dc956fad | [
"NCSA"
] | 510 | 2015-02-02T11:13:29.000Z | 2019-07-17T19:07:41.000Z | Sources/Target/Darwin/Process.cpp | cclauss/ds2 | 3d7c41e7b22c4184db6fe1328d1d28c9dc956fad | [
"NCSA"
] | 66 | 2015-02-27T19:50:15.000Z | 2019-12-20T07:35:16.000Z | //
// Copyright (c) 2014-present, Facebook, Inc.
// All rights reserved.
//
// This source code is licensed under the University of Illinois/NCSA Open
// Source License found in the LICENSE file in the root directory of this
// source tree. An additional grant of patent rights can be found in the
// PATENTS file in the... | 27.054217 | 80 | 0.631485 | cclauss |
b14f50ff0e95b63be408081ca436246d267b5276 | 6,670 | cpp | C++ | tests/custom_ops/custom_leaky_relu_op.cpp | gglin001/poptorch | 61f38ed2d8c6b672e023862eb698865fa7f4724e | [
"MIT"
] | 128 | 2020-12-08T22:22:46.000Z | 2022-03-23T10:54:26.000Z | tests/custom_ops/custom_leaky_relu_op.cpp | gglin001/poptorch | 61f38ed2d8c6b672e023862eb698865fa7f4724e | [
"MIT"
] | 4 | 2021-06-22T14:26:28.000Z | 2022-02-15T11:25:05.000Z | tests/custom_ops/custom_leaky_relu_op.cpp | gglin001/poptorch | 61f38ed2d8c6b672e023862eb698865fa7f4724e | [
"MIT"
] | 7 | 2020-12-09T20:32:56.000Z | 2022-01-18T16:12:24.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
// This file is based on the example in the PopART User Guide:
// https://docs.sourcevertex.net/files/popart-popart-user-guide-latest/custom_ops.html
#include <memory>
#include <popart/op.hpp>
#include <popart/opmanager.hpp>
#include <popart/opserialiser.hpp... | 30.87963 | 86 | 0.675712 | gglin001 |
b1510cc052f5d4aa66d6de79f3cdcb5f1fc305ea | 327 | hpp | C++ | src/MaterialInterface.hpp | Attractadore/RaytracingCPU | 535fa254f9bb071e922364bcbb5cae4486af73ea | [
"MIT"
] | null | null | null | src/MaterialInterface.hpp | Attractadore/RaytracingCPU | 535fa254f9bb071e922364bcbb5cae4486af73ea | [
"MIT"
] | null | null | null | src/MaterialInterface.hpp | Attractadore/RaytracingCPU | 535fa254f9bb071e922364bcbb5cae4486af73ea | [
"MIT"
] | null | null | null | #pragma once
#include "Material.hpp"
template <typename MaterialSubclass>
requires std::is_base_of_v<Material, MaterialSubclass>
const Material* getMaterialSubclass() {
static MaterialSubclass material;
return &material;
}
extern "C" {
const Material* getMaterial();
using GetMaterialF = decltype(getMateri... | 21.8 | 58 | 0.764526 | Attractadore |
b1512ddb9331e2c9f47f4ec0905e6f21e645d75f | 1,424 | cpp | C++ | src/lib/storage/storage_manager.cpp | j-tr/DYOD_WS1920 | 768e0c44728e1eba7329b3183e63f107efad31a1 | [
"MIT"
] | null | null | null | src/lib/storage/storage_manager.cpp | j-tr/DYOD_WS1920 | 768e0c44728e1eba7329b3183e63f107efad31a1 | [
"MIT"
] | null | null | null | src/lib/storage/storage_manager.cpp | j-tr/DYOD_WS1920 | 768e0c44728e1eba7329b3183e63f107efad31a1 | [
"MIT"
] | null | null | null | #include "storage_manager.hpp"
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "utils/assert.hpp"
namespace opossum {
StorageManager& StorageManager::get() {
static StorageManager _instance;
return _instance;
}
void StorageManager::add_table(const std::string& n... | 27.384615 | 109 | 0.690309 | j-tr |
b152eb31fb35fb9e13b45ad6138be4c6e6351e54 | 29,996 | cpp | C++ | aten/src/ATen/native/cudnn/Conv_v8.cpp | ljhOfGithub/pytorch | c568f7b16f2a98d72ff5b7c6c6161b67b2c27514 | [
"Intel"
] | 2 | 2020-03-13T06:57:49.000Z | 2020-05-17T04:18:14.000Z | aten/src/ATen/native/cudnn/Conv_v8.cpp | ellhe-blaster/pytorch | e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25 | [
"Intel"
] | null | null | null | aten/src/ATen/native/cudnn/Conv_v8.cpp | ellhe-blaster/pytorch | e5282c3cb8bf6ad8c5161f9d0cc271edb9abed25 | [
"Intel"
] | 1 | 2022-03-28T21:49:41.000Z | 2022-03-28T21:49:41.000Z | #include <ATen/cuda/CUDAConfig.h> // for the definition of AT_CUDNN_ENABLED
#if AT_CUDNN_ENABLED()
#include <ATen/native/cudnn/Macros.h>
#if HAS_CUDNN_V8()
#include <ATen/cudnn/cudnn-wrapper.h>
#include <cudnn_frontend.h>
#include <cudnn_frontend_find_plan.h>
#include <cudnn_frontend_get_plan.h>
#include <ATen/ATe... | 46.147692 | 328 | 0.683191 | ljhOfGithub |
b153d151ff3f5a22084618b0954d262e7592c5c6 | 1,998 | cpp | C++ | src/backend/base/base_gather.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/backend/base/base_gather.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | src/backend/base/base_gather.cpp | ViewFaceCore/TenniS | c1d21a71c1cd025ddbbe29924c8b3296b3520fc0 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by kier on 2019/3/6.
//
#include <backend/base/base_gather.h>
#include "backend/base/base_gather.h"
#include "backend/name.h"
#include "core/tensor_builder.h"
namespace ts {
namespace base {
Gather::Gather() {
field(name::axis, OPTIONAL, tensor::from<int32_t>(0));
}
... | 27.75 | 105 | 0.552553 | ViewFaceCore |
b15454811e8d2dde1c1012eb30b7b86b6826b9d4 | 2,281 | cc | C++ | chrome/browser/ui/webui/settings/chromeos/device_display_handler.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/ui/webui/settings/chromeos/device_display_handler.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/ui/webui/settings/chromeos/device_display_handler.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 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/ui/webui/settings/chromeos/device_display_handler.h"
#include "ash/public/ash_interfaces.h"
#include "base/bind.h"
#include "bas... | 31.680556 | 78 | 0.734327 | zealoussnow |
b155a737d02a767852f8ba6e0889f8615a053008 | 15,632 | hpp | C++ | src/pumipic_adjacency.hpp | cwsmith/pumi-pic | d1dada10c2f2b0f8b56b946ad8375d79cb85934b | [
"BSD-3-Clause"
] | null | null | null | src/pumipic_adjacency.hpp | cwsmith/pumi-pic | d1dada10c2f2b0f8b56b946ad8375d79cb85934b | [
"BSD-3-Clause"
] | null | null | null | src/pumipic_adjacency.hpp | cwsmith/pumi-pic | d1dada10c2f2b0f8b56b946ad8375d79cb85934b | [
"BSD-3-Clause"
] | null | null | null | #ifndef PUMIPIC_ADJACENCY_HPP
#define PUMIPIC_ADJACENCY_HPP
#include <iostream>
#include "Omega_h_for.hpp"
#include "Omega_h_adj.hpp"
#include "Omega_h_element.hpp"
#include "pumipic_utils.hpp"
#include "pumipic_constants.hpp"
//TODO use .get() to access data ?
namespace pumipic
{
/*
see description: Omega_h_s... | 35.446712 | 132 | 0.586681 | cwsmith |
b156cd0636e46b3c96590b3088c12e1ccdcedf99 | 2,573 | cpp | C++ | daemon/SimpleDriver.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 118 | 2015-03-24T16:09:42.000Z | 2022-03-21T09:01:59.000Z | daemon/SimpleDriver.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 26 | 2016-03-03T23:24:08.000Z | 2022-03-21T10:24:43.000Z | daemon/SimpleDriver.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 73 | 2015-06-09T09:44:06.000Z | 2021-12-30T09:49:00.000Z | /* Copyright (C) 2013-2021 by Arm Limited. All rights reserved. */
#include "SimpleDriver.h"
#include "Counter.h"
SimpleDriver::~SimpleDriver()
{
DriverCounter * counters = mCounters;
while (counters != nullptr) {
DriverCounter * counter = counters;
counters = counter->getNext();
dele... | 29.918605 | 97 | 0.642829 | RufUsul |
b158b38f8bb95cf4f67fc64bc974266acf483b88 | 9,483 | cpp | C++ | tests/RecordTests/UnitTest/sample_recordings.cpp | GitHubRepoDescription/Azure-Kinect-Sensor-SDK-forked | 3b57e9c9501bce282ff5529d9b1106120921252f | [
"MIT"
] | 4 | 2019-05-15T22:38:18.000Z | 2020-09-03T13:48:41.000Z | tests/RecordTests/UnitTest/sample_recordings.cpp | GitHubRepoDescription/Azure-Kinect-Sensor-SDK-forked | 3b57e9c9501bce282ff5529d9b1106120921252f | [
"MIT"
] | 1 | 2019-09-07T16:17:45.000Z | 2019-11-20T21:12:45.000Z | tests/RecordTests/UnitTest/sample_recordings.cpp | GitHubRepoDescription/Azure-Kinect-Sensor-SDK-forked | 3b57e9c9501bce282ff5529d9b1106120921252f | [
"MIT"
] | 1 | 2021-11-20T05:34:08.000Z | 2021-11-20T05:34:08.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "test_helpers.h"
#include <cstdio>
#include <k4arecord/record.h>
#include <k4ainternal/common.h>
#include <k4ainternal/matroska_write.h>
using namespace testing;
void SampleRecordings::SetUp()
{
k4a_device_c... | 42.524664 | 114 | 0.61141 | GitHubRepoDescription |
b15ac39ac6d7d7d8b953734d710b027fe5787216 | 14,214 | cpp | C++ | input/releases/qpid-proton-master/proton/cpp/examples/broker.cpp | gemmellr/qpid-site | d915206e030ab7fc3a2329eb45d4e804dd7e4c2e | [
"Apache-2.0"
] | 2 | 2019-05-20T17:57:24.000Z | 2021-11-06T23:01:16.000Z | cpp/examples/broker.cpp | francescoraves483/qpid-proton | 3eb62f51815602c86cdf0112f1154f9e29883774 | [
"Apache-2.0"
] | 33 | 2021-04-27T21:40:31.000Z | 2021-06-30T17:52:17.000Z | cpp/examples/broker.cpp | francescoraves483/qpid-proton | 3eb62f51815602c86cdf0112f1154f9e29883774 | [
"Apache-2.0"
] | 7 | 2017-11-02T23:13:56.000Z | 2021-11-06T23:01:05.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 ... | 32.600917 | 119 | 0.608625 | gemmellr |
b15c049eecccec3753dee42ffac1733818ba59fa | 1,492 | hpp | C++ | source/cuda_ray_tracer/CudaBindlessTexture.hpp | PetorSFZ/PhantasyEngineTestbed | 3927539f17e483bd8095b60e837637e1985282e5 | [
"MIT",
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | source/cuda_ray_tracer/CudaBindlessTexture.hpp | PetorSFZ/PhantasyEngineTestbed | 3927539f17e483bd8095b60e837637e1985282e5 | [
"MIT",
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | source/cuda_ray_tracer/CudaBindlessTexture.hpp | PetorSFZ/PhantasyEngineTestbed | 3927539f17e483bd8095b60e837637e1985282e5 | [
"MIT",
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | // See 'LICENSE_PHANTASY_ENGINE' for copyright and contributors.
#pragma once
#include <phantasy_engine/rendering/RawImage.hpp>
#include "cuda_runtime.h"
namespace phe {
// CudaBindlessTexture
// ------------------------------------------------------------------------------------------------
class CudaBindlessTex... | 29.84 | 99 | 0.524129 | PetorSFZ |
b15d35cc1bbaee48923166e6f1b1613cf1d5dc58 | 11,522 | hpp | C++ | include/lexy/callback/container.hpp | foonathan/lexy | 8c1ebec673b498bbb1728444d202586ea81c4142 | [
"BSL-1.0"
] | 527 | 2020-12-01T14:23:50.000Z | 2022-03-31T11:30:24.000Z | include/lexy/callback/container.hpp | foonathan/lexy | 8c1ebec673b498bbb1728444d202586ea81c4142 | [
"BSL-1.0"
] | 44 | 2020-12-01T18:39:38.000Z | 2022-03-08T00:22:39.000Z | include/lexy/callback/container.hpp | foonathan/lexy | 8c1ebec673b498bbb1728444d202586ea81c4142 | [
"BSL-1.0"
] | 24 | 2020-12-02T01:45:53.000Z | 2022-03-22T21:31:31.000Z | // Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_CALLBACK_CONTAINER_HPP_INCLUDED
#define LEXY_CALLBACK_CONTAINER_HPP_INCLUDED
#include <lexy/callback/base.h... | 29.16962 | 100 | 0.646242 | foonathan |
b15eac85caa7abd5dd2334f11f60df585288f2cb | 757 | cpp | C++ | COJ/SRETAN.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | COJ/SRETAN.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | COJ/SRETAN.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include <iterator>
#include <cstdio>
#include <vector>
#include <cstring>
#include <string>
#include <utility>
#include <algorithm>
#include <iostream>
typedef long long tint;
using namespace std;
string DecToBin(tint number)
{
if(number == 0) return "4";
if(number == 1) return... | 19.410256 | 41 | 0.549538 | MartinAparicioPons |
b1606d4a3bedad21480294f3190261967dbe1146 | 23,796 | cpp | C++ | source/Common/Net/MessageCenterModule/MessageCenterModule.cpp | taroyuyu/KIMServer | e3017c2271a0700bb3e2a1b53a7e5748f94938f7 | [
"MIT"
] | 2 | 2020-09-13T08:05:41.000Z | 2020-09-17T10:56:34.000Z | source/Common/Net/MessageCenterModule/MessageCenterModule.cpp | taroyuyu/KIMServer | e3017c2271a0700bb3e2a1b53a7e5748f94938f7 | [
"MIT"
] | null | null | null | source/Common/Net/MessageCenterModule/MessageCenterModule.cpp | taroyuyu/KIMServer | e3017c2271a0700bb3e2a1b53a7e5748f94938f7 | [
"MIT"
] | null | null | null | //
// Created by taroyuyu on 2018/1/7.
//
#include "MessageCenterModule.h"
#include <functional>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include <sys... | 46.658824 | 139 | 0.512145 | taroyuyu |
b161935a85167fb519ad30c46b1d131851ea4900 | 437 | cpp | C++ | cpp/22880.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/22880.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/22880.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
constexpr int MOD = 1e9 + 7;
int main() {
fastio;
int n, ans = 1; cin >> n;
vector<int> v, cnt;
for (int i = 0; i < n; i++) {
int t; cin >> t;
if (v.empty() || v.back() < t) v.push_back(t), cnt.push_back(1);
else cnt... | 24.277778 | 79 | 0.540046 | jinhan814 |
b162780ce7bd94483a9150aaafd69c5ec828f538 | 632 | hpp | C++ | include/SocketSender.hpp | ref-humbold/Traceroute | 230508cbe66b29a68b1d33249f2ee8810def339f | [
"MIT"
] | null | null | null | include/SocketSender.hpp | ref-humbold/Traceroute | 230508cbe66b29a68b1d33249f2ee8810def339f | [
"MIT"
] | null | null | null | include/SocketSender.hpp | ref-humbold/Traceroute | 230508cbe66b29a68b1d33249f2ee8810def339f | [
"MIT"
] | null | null | null | #ifndef SOCKET_SENDER_HPP_
#define SOCKET_SENDER_HPP_
#include <cinttypes>
#include <cstdlib>
#include <arpa/inet.h>
#include <netinet/ip_icmp.h>
#include "IPAddress.hpp"
#include "RawSocket.hpp"
class SocketSender
{
public:
explicit SocketSender(const RawSocket & s) : socket{s}, address_{}, ttl_{0}
{
}
... | 18.588235 | 79 | 0.68038 | ref-humbold |
b1638fe27e79eee3625712a4b90c0cdf3747bc86 | 23,667 | cpp | C++ | Editor/src/EditorWndEditFunc.cpp | eaxeax/multitextor | 1fe1b62e7e4b0acd8c24ad7d5893a7e25c6bc268 | [
"BSD-2-Clause"
] | null | null | null | Editor/src/EditorWndEditFunc.cpp | eaxeax/multitextor | 1fe1b62e7e4b0acd8c24ad7d5893a7e25c6bc268 | [
"BSD-2-Clause"
] | null | null | null | Editor/src/EditorWndEditFunc.cpp | eaxeax/multitextor | 1fe1b62e7e4b0acd8c24ad7d5893a7e25c6bc268 | [
"BSD-2-Clause"
] | null | null | null | /*
FreeBSD License
Copyright (c) 2020-2021 vikonix: valeriy.kovalev.software@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright ... | 25.3394 | 157 | 0.532091 | eaxeax |
b166eea5c0726f94caddf579c3df35c2ee37bf92 | 6,107 | cpp | C++ | src/quadrature.cpp | JustAdamHere/MAGIC098-Exam | 1e3cf42b1a64fb0de64172ae0c13f1888362904a | [
"MIT"
] | null | null | null | src/quadrature.cpp | JustAdamHere/MAGIC098-Exam | 1e3cf42b1a64fb0de64172ae0c13f1888362904a | [
"MIT"
] | null | null | null | src/quadrature.cpp | JustAdamHere/MAGIC098-Exam | 1e3cf42b1a64fb0de64172ae0c13f1888362904a | [
"MIT"
] | null | null | null | /******************************************************************************
* @details This is a file containing functions regarding quadratures.
*
* @author Adam Matthew Blakey
* @date 2019/12/07
******************************************************************************/
#include "common.hpp"
#... | 27.633484 | 109 | 0.505486 | JustAdamHere |
b167384da66d1aad962db4df67d0000963764446 | 4,561 | cc | C++ | src/avi/avifile.cc | Joe136/octave-forge-video | eb31e64ae5933b09c3c05033404c89b9fe88c8b9 | [
"BSD-2-Clause"
] | null | null | null | src/avi/avifile.cc | Joe136/octave-forge-video | eb31e64ae5933b09c3c05033404c89b9fe88c8b9 | [
"BSD-2-Clause"
] | null | null | null | src/avi/avifile.cc | Joe136/octave-forge-video | eb31e64ae5933b09c3c05033404c89b9fe88c8b9 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (C) 2005 Stefan van der Walt <stefan@sun.ac.za>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright notice,
this list of condition... | 31.895105 | 111 | 0.619162 | Joe136 |
b16c10e6522278145121a963ff3580ab34f68aee | 25,352 | cc | C++ | ash/wm/desks/desk.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | ash/wm/desks/desk.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | ash/wm/desks/desk.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"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 2018 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 "ash/wm/desks/desk.h"
#include <algorithm>
#include <utility>
#include "ash/constants/app_types.h"
#include "ash/public/cpp/desks_templates_del... | 38.123308 | 80 | 0.725939 | chromium |
b16d67df111542d39ee36d19d836a969750c38e0 | 2,379 | cc | C++ | Mu2eUtilities/src/SimpleSpectrum.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 1 | 2021-06-23T22:09:28.000Z | 2021-06-23T22:09:28.000Z | Mu2eUtilities/src/SimpleSpectrum.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | Mu2eUtilities/src/SimpleSpectrum.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | null | null | null | // Simple approximations available for DIO spectrum.
//
//
#include <cstddef>
#include <vector>
// Framework includes
#include "cetlib/pow.h"
#include "cetlib_except/exception.h"
// Mu2e includes
#include "Mu2eUtilities/inc/SimpleSpectrum.hh"
using namespace std;
using cet::pow;
using cet::square;
namespace mu2e ... | 27.344828 | 100 | 0.604456 | lborrel |
b16dc711e3bdd1ec17ef5ae66bf4188e39e78af0 | 1,953 | cpp | C++ | tests/src/main.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | tests/src/main.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | tests/src/main.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2016-2022, L-Acoustics
* This file is part of LA_networkInterfaceHelper.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* ... | 36.849057 | 100 | 0.758833 | L-Acoustics |
b170a9f123a800d7760950d97e1bea28437eba30 | 2,423 | cxx | C++ | hackathon/ITK-V3D-Plugins/Source/Superplugin/Superplugin.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2021-12-27T19:14:03.000Z | 2021-12-27T19:14:03.000Z | hackathon/ITK-V3D-Plugins/Source/Superplugin/Superplugin.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | 1 | 2016-12-03T05:33:13.000Z | 2016-12-03T05:33:13.000Z | hackathon/ITK-V3D-Plugins/Source/Superplugin/Superplugin.cxx | zzhmark/vaa3d_tools | 3ca418add85a59ac7e805d55a600b78330d7e53d | [
"MIT"
] | null | null | null | #include <QtGui>
#include <math.h>
#include <stdlib.h>
//#include <unistd.h>
#include "Superplugin.h"
#include "V3DITKFilterSingleImage.h"
#include "dialog.h"
Q_EXPORT_PLUGIN2(MySuper,Superplugin)
QStringList Superplugin::menulist()const
{
return QStringList()<<QObject::tr("ITK MySuper")
<<QObject::tr... | 31.064103 | 153 | 0.702848 | zzhmark |
b174c219ac977fd5a825400b8c5c09415fa1bfb6 | 4,897 | cpp | C++ | Tutorial02/BasicTutorial1.cpp | DebugBSD/PruebasOgre3D | cc6644ef802cac0cca999638ca8979b3b794601d | [
"MIT"
] | null | null | null | Tutorial02/BasicTutorial1.cpp | DebugBSD/PruebasOgre3D | cc6644ef802cac0cca999638ca8979b3b794601d | [
"MIT"
] | null | null | null | Tutorial02/BasicTutorial1.cpp | DebugBSD/PruebasOgre3D | cc6644ef802cac0cca999638ca8979b3b794601d | [
"MIT"
] | null | null | null | // This file is part of the OGRE project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at https://www.ogre3d.org/licensing.
// SPDX-License-Identifier: MIT
#include "Ogre.h"
#include "OgreApplicationContext.h"
#include "OgreInput.h"
#include "O... | 30.042945 | 124 | 0.690219 | DebugBSD |
b17972ded425d8aea9e6082083e0b9c362b9e3fc | 105,576 | cpp | C++ | Source/Runtime/LLVMEmitIR.cpp | EOSIO/WAVM | 940ec12d2c1df715602c58db3a7305af10003db9 | [
"BSD-3-Clause"
] | 21 | 2018-03-21T22:40:22.000Z | 2021-05-21T06:42:31.000Z | Source/Runtime/LLVMEmitIR.cpp | EOSIO/WAVM | 940ec12d2c1df715602c58db3a7305af10003db9 | [
"BSD-3-Clause"
] | null | null | null | Source/Runtime/LLVMEmitIR.cpp | EOSIO/WAVM | 940ec12d2c1df715602c58db3a7305af10003db9 | [
"BSD-3-Clause"
] | 9 | 2018-06-04T11:44:35.000Z | 2019-01-09T03:10:37.000Z | #include "LLVMJIT.h"
#include "llvm/ADT/SmallVector.h"
#include "Inline/Timing.h"
#include "IR/Operators.h"
#include "IR/OperatorPrinter.h"
#include "Logging/Logging.h"
#define ENABLE_LOGGING 0
#define ENABLE_FUNCTION_ENTER_EXIT_HOOKS 0
using namespace IR;
namespace LLVMJIT
{
// The LLVM IR for a module.
struct Em... | 43.862069 | 192 | 0.762588 | EOSIO |
b17a15a0d8fc9bd5066aee16935441558738f285 | 6,288 | cpp | C++ | third-party/llvm/llvm-src/tools/llvm-objdump/ELFDump.cpp | SamuelHoward/chapel | f1b927b5abaf6210ec05347c88d5f15c17b7ea47 | [
"ECL-2.0",
"Apache-2.0"
] | 15 | 2019-08-05T01:24:20.000Z | 2022-01-12T08:19:55.000Z | third-party/llvm/llvm-src/tools/llvm-objdump/ELFDump.cpp | SamuelHoward/chapel | f1b927b5abaf6210ec05347c88d5f15c17b7ea47 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2017-12-13T18:19:11.000Z | 2018-11-17T04:37:14.000Z | third-party/llvm/llvm-src/tools/llvm-objdump/ELFDump.cpp | SamuelHoward/chapel | f1b927b5abaf6210ec05347c88d5f15c17b7ea47 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2019-09-24T06:26:58.000Z | 2021-11-22T08:54:00.000Z | //===-- ELFDump.cpp - ELF-specific dumper -----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 34.740331 | 80 | 0.616889 | SamuelHoward |
b17b54123f7ab746df800e715bb5c76e586a3557 | 3,516 | cc | C++ | src/utils/merge_counts.cc | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | src/utils/merge_counts.cc | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | src/utils/merge_counts.cc | nrc-cnrc/Portage-SMT-TAS | 73f5a65de4adfa13008ea9a01758385c97526059 | [
"MIT"
] | null | null | null | /**
* @author Samuel Larkin
* @file merge_counts.cc
* @brief Merge sorted files by tallying counts.
*
*
* COMMENTS:
*
* Technologies langagieres interactives / Interactive Language Technologies
* Inst. de technologie de l'information / Institute for Information Technology
* Conseil national de recherches C... | 24.587413 | 81 | 0.64562 | nrc-cnrc |
b17d9005e32ca7e74a76138ec3d21920b2b1ef1d | 1,719 | cpp | C++ | cpp/leetcode/19.remove-nth-node-from-end-of-list.cpp | Gerrard-YNWA/piece_of_code | ea8c9f05a453c893cc1f10e9b91d4393838670c1 | [
"MIT"
] | 1 | 2021-11-02T05:17:24.000Z | 2021-11-02T05:17:24.000Z | cpp/leetcode/19.remove-nth-node-from-end-of-list.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | cpp/leetcode/19.remove-nth-node-from-end-of-list.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=19 lang=cpp
*
* [19] Remove Nth Node From End of List
*/
#include<iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(... | 22.038462 | 62 | 0.531123 | Gerrard-YNWA |
b181b049b9e4e1cc9c3bb5c96762271a441fdbf2 | 10,118 | cpp | C++ | modules/tracktion_engine/model/automation/tracktion_Modifier.cpp | adamnemecek/tracktion_engine | 6770c21dd44b78dae4ae5da823a8e5094660c1de | [
"MIT",
"Unlicense"
] | 734 | 2018-11-16T09:39:40.000Z | 2022-03-30T16:56:14.000Z | modules/tracktion_engine/model/automation/tracktion_Modifier.cpp | adamnemecek/tracktion_engine | 6770c21dd44b78dae4ae5da823a8e5094660c1de | [
"MIT",
"Unlicense"
] | 100 | 2018-11-16T18:04:08.000Z | 2022-03-31T17:47:53.000Z | modules/tracktion_engine/model/automation/tracktion_Modifier.cpp | adamnemecek/tracktion_engine | 6770c21dd44b78dae4ae5da823a8e5094660c1de | [
"MIT",
"Unlicense"
] | 123 | 2018-11-16T15:51:50.000Z | 2022-03-29T12:21:27.000Z | /*
,--. ,--. ,--. ,--.
,-' '-.,--.--.,--,--.,---.| |,-.,-' '-.`--' ,---. ,--,--, Copyright 2018
'-. .-'| .--' ,-. | .--'| /'-. .-',--.| .-. || \ Tracktion Software
| | | | \ '-' \ `--.| \ \ | | | |' '-' '| || | Corporation
`---' `--' `... | 30.023739 | 116 | 0.547144 | adamnemecek |
b1833bc1679e730b452ffe1055feb24ec6380a2f | 6,264 | cpp | C++ | runtime/sharings/gl/gl_buffer.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | runtime/sharings/gl/gl_buffer.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | runtime/sharings/gl/gl_buffer.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "config.h"
#include "runtime/gmm_helper/gmm.h"
#include "gl_buffer.h"
#include "runtime/context/context.h"
#include "runtime/mem_obj/buffer.h"
#include "runtime/memory_manager/memory_manager.h"
#include "runtime/helpers/get_i... | 40.412903 | 130 | 0.711686 | PTS93 |
b18425a491aeec7a02826fe5b0cd26d39e427da7 | 1,323 | cpp | C++ | NES/Mapper/Mapper050.cpp | chittleskuny/virtuanes | f2528f24108ebde6c2e123920423d95e086d86bc | [
"MIT"
] | null | null | null | NES/Mapper/Mapper050.cpp | chittleskuny/virtuanes | f2528f24108ebde6c2e123920423d95e086d86bc | [
"MIT"
] | null | null | null | NES/Mapper/Mapper050.cpp | chittleskuny/virtuanes | f2528f24108ebde6c2e123920423d95e086d86bc | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////
// Mapper050 SMB2J //
//////////////////////////////////////////////////////////////////////////
void Mapper050::Reset()
{
irq_enable = 0;
SetPROM_8K_Bank( 3, 15 );
SetPROM_8K_Bank( ... | 21.688525 | 75 | 0.476946 | chittleskuny |
b1849a926e8b575d89fe18ee4452e1a9082e21c7 | 5,945 | cpp | C++ | admin/wmi/wbem/winmgmt/minimfc/array_w.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/winmgmt/minimfc/array_w.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/winmgmt/minimfc/array_w.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) 1992-2001 Microsoft Corporation
Module Name:
ARRAY_W.CPP
Abstract:
History:
--*/
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1993 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supp... | 25.960699 | 78 | 0.549369 | npocmaka |
b18810c096f358b281ec4add0416a8948040b6b9 | 882 | cpp | C++ | source/util/json_serialization.cpp | kremi151/acacia | 5cad20c1d6c6d8c5b5408da45c618855fd5197bd | [
"MIT"
] | null | null | null | source/util/json_serialization.cpp | kremi151/acacia | 5cad20c1d6c6d8c5b5408da45c618855fd5197bd | [
"MIT"
] | 6 | 2020-08-03T23:59:40.000Z | 2021-07-16T20:54:29.000Z | source/util/json_serialization.cpp | kremi151/acacia | 5cad20c1d6c6d8c5b5408da45c618855fd5197bd | [
"MIT"
] | null | null | null | //
// Created by Michel Kremer on 28.07.2020.
//
#include "json_serialization.h"
#include <sstream>
#include <iomanip>
std::string acacia::util::escapeJsonString(const std::string &str) {
std::ostringstream o;
for (auto &c : str) {
switch (c) {
case '"': o << "\\\""; break;
ca... | 26.727273 | 103 | 0.376417 | kremi151 |
b18992a6acf3e3bda7390b807ab0980c6e8bf754 | 2,668 | hpp | C++ | renderer/abstract_renderable.hpp | Themaister/Granite | 02d77ced67269278476aae7a178f8f2a4fbe9a75 | [
"MIT"
] | 1,003 | 2017-08-13T17:47:04.000Z | 2022-03-29T15:56:55.000Z | renderer/abstract_renderable.hpp | Themaister/Granite | 02d77ced67269278476aae7a178f8f2a4fbe9a75 | [
"MIT"
] | 10 | 2017-08-14T19:11:35.000Z | 2021-12-10T12:51:53.000Z | renderer/abstract_renderable.hpp | Themaister/Granite | 02d77ced67269278476aae7a178f8f2a4fbe9a75 | [
"MIT"
] | 107 | 2017-08-16T16:13:26.000Z | 2022-03-03T06:42:19.000Z | /* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* 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, me... | 29.644444 | 137 | 0.773613 | Themaister |
b18c32571e53dfc3d8409d65db577b1c0ee0957b | 4,483 | hpp | C++ | RobWork/src/rwlibs/task/loader/XMLTaskLoader.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rwlibs/task/loader/XMLTaskLoader.hpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rwlibs/task/loader/XMLTaskLoader.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.484615 | 100 | 0.622574 | ZLW07 |
b18d202886031d11709d08f6c7ea84c0296daeb5 | 2,660 | hpp | C++ | REST/VersionInfo.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 5 | 2015-10-28T07:05:27.000Z | 2021-09-29T12:14:17.000Z | REST/VersionInfo.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | null | null | null | REST/VersionInfo.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 2 | 2015-10-24T18:24:38.000Z | 2019-02-02T05:06:48.000Z | /**
* @file
* @author Mohammad S. Babaei <info@babaei.net>
* @version 0.1.0
*
* @section LICENSE
*
* (The MIT License)
*
* Copyright (c) 2015 Mohammad S. Babaei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | 42.222222 | 80 | 0.756391 | NuLL3rr0r |
b190bc0cd3f948fbe43151b460281c197037edc7 | 4,374 | cpp | C++ | src/wm.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/wm.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/wm.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 Kristina Simpson <sweet.kristas@gmail.com>
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 app... | 27.509434 | 162 | 0.678555 | cbeck88 |
b191d86a57fc934c10688d501310b0818282cfba | 1,073 | cpp | C++ | src/Player.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 5 | 2019-02-01T01:41:19.000Z | 2021-06-17T02:16:13.000Z | src/Player.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 2 | 2020-01-14T16:57:42.000Z | 2021-04-01T00:53:18.000Z | src/Player.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 1 | 2019-03-02T20:03:51.000Z | 2019-03-02T20:03:51.000Z | /*
* Warhammer Age of Sigmar battle simulator.
*
* Copyright (C) 2019 by Rick Weyrauch - rpweyrauch@gmail.com
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <Player.h>
void Player::beginTurn(int battleRound, PlayerId playerWithTurn) {
if (m_roster) {
... | 22.829787 | 89 | 0.637465 | rweyrauch |
b1926efb7176112a705164e4f0e2efd9d1941c71 | 28,310 | cpp | C++ | tests/animation/src/AnimTests.cpp | MarkBrosche/hifi | 71669af69675da78253a9e774ca5b3d303da5780 | [
"Apache-2.0"
] | null | null | null | tests/animation/src/AnimTests.cpp | MarkBrosche/hifi | 71669af69675da78253a9e774ca5b3d303da5780 | [
"Apache-2.0"
] | null | null | null | tests/animation/src/AnimTests.cpp | MarkBrosche/hifi | 71669af69675da78253a9e774ca5b3d303da5780 | [
"Apache-2.0"
] | null | null | null | //
// AnimTests.cpp
//
// Copyright 2015 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AnimTests.h"
#include <AnimNodeLoader.h>
#include <AnimClip.h>
#include <AnimBlendLinear.h>
#inc... | 34.821648 | 157 | 0.624691 | MarkBrosche |
b192c036d734938d90ec915503958f36131e0e29 | 746 | hpp | C++ | src/unisparks/layouts/pixelmap.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | src/unisparks/layouts/pixelmap.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | src/unisparks/layouts/pixelmap.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | #ifndef UNISPARKS_LAYOUTS_PIXELMAP_H
#define UNISPARKS_LAYOUTS_PIXELMAP_H
#include "unisparks/layout.hpp"
#include "unisparks/util/math.hpp"
namespace unisparks {
class PixelMap : public Layout {
public:
PixelMap(size_t cnt, Point* pts) : PixelMap(cnt, pts, true) {
}
int pixelCount() const override {
retur... | 18.65 | 76 | 0.684987 | azov |
b198472286783670ae76102572fbcf75598882e7 | 171 | cpp | C++ | liblog/test/removeInvalidtest.cpp | qiu708/liblog | c7085dd059f065bedf45a401ff062215fc57b53f | [
"MIT"
] | null | null | null | liblog/test/removeInvalidtest.cpp | qiu708/liblog | c7085dd059f065bedf45a401ff062215fc57b53f | [
"MIT"
] | null | null | null | liblog/test/removeInvalidtest.cpp | qiu708/liblog | c7085dd059f065bedf45a401ff062215fc57b53f | [
"MIT"
] | null | null | null | //
// Created by qiu on 2021/12/13.
//
#include<liblog/LogFile.h>
int main()
{
liblog::LogFile f("/home/qiu/Desktop/log/log",600);
f.removeInvalid(10*24*3600);
}
| 15.545455 | 55 | 0.637427 | qiu708 |
b19bdf174b8e51e6e986373802b5c6c291b22840 | 3,358 | hpp | C++ | Yannq/Hamiltonians/KitaevHexC24.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Hamiltonians/KitaevHexC24.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Hamiltonians/KitaevHexC24.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | #ifndef HAMILTONIANS_KITAEVHEXC24_HPP
#define HAMILTONIANS_KITAEVHEXC24_HPP
#include <Eigen/Eigen>
#include <nlohmann/json.hpp>
class KitaevHexC24
{
private:
static constexpr int N = 24;
double Jx_;
double Jy_;
double Jz_;
double hx_;
public:
KitaevHexC24(double J)
: Jx_(J), Jy_(J), Jz_(J), hx_{}
{
}
Ki... | 19.637427 | 82 | 0.6081 | cecri |
b1a2ac30af70d4dfb0e578956784035fba4b9d05 | 237 | hpp | C++ | src/GameObject.hpp | mysterypaint/Hmm | d19da186083b2eead9c6f8953c447f6ec24da083 | [
"MIT"
] | null | null | null | src/GameObject.hpp | mysterypaint/Hmm | d19da186083b2eead9c6f8953c447f6ec24da083 | [
"MIT"
] | null | null | null | src/GameObject.hpp | mysterypaint/Hmm | d19da186083b2eead9c6f8953c447f6ec24da083 | [
"MIT"
] | null | null | null | #pragma once
#include "Game.hpp"
#include "PHL.hpp"
class GameObject {
public:
GameObject(int tex, int _x, int _y);
~GameObject();
void Step();
void Draw();
private:
int x;
int y;
PHL_Surface objTexture;
PHL_Rect srcRect;
}; | 11.85 | 37 | 0.679325 | mysterypaint |
b1a34cccd40e06b96c48d4081e056a32cef16207 | 1,819 | cpp | C++ | simd/x86/vector_dot_product.cpp | cjmcv/cuda | 04fcf80bd32a2909a232cfe532e24bbe6932ac10 | [
"Apache-2.0"
] | 34 | 2018-01-06T13:32:00.000Z | 2021-12-22T03:16:01.000Z | simd/x86/vector_dot_product.cpp | cjmcv/cuda | 04fcf80bd32a2909a232cfe532e24bbe6932ac10 | [
"Apache-2.0"
] | null | null | null | simd/x86/vector_dot_product.cpp | cjmcv/cuda | 04fcf80bd32a2909a232cfe532e24bbe6932ac10 | [
"Apache-2.0"
] | 4 | 2019-03-11T14:55:13.000Z | 2021-12-22T03:16:03.000Z | /*!
* \brief Vector dot product: result = SUM(A * B).
*/
#include <iostream>
#include "time.h"
#include "xmmintrin.h"
// Initialize the input data.
void GenVector(const int len, float *vec) {
for (int i = 0; i < len; i++)
vec[i] = (float)rand() / RAND_MAX + (float)rand() / (RAND_MAX*RAND_MAX);
}
float VectorDo... | 25.619718 | 100 | 0.59923 | cjmcv |
b1a50002aec95c933c6fce4ac52bdbac7adb530d | 29,002 | cpp | C++ | src/helics/application_api/Inputs.cpp | GMLC-TDC/HELICS-src | 5e37168bca0ea9e16b939e052e257182ca6e24bd | [
"BSD-3-Clause"
] | 31 | 2017-06-29T19:50:25.000Z | 2019-05-17T14:10:14.000Z | src/helics/application_api/Inputs.cpp | GMLC-TDC/HELICS-src | 5e37168bca0ea9e16b939e052e257182ca6e24bd | [
"BSD-3-Clause"
] | 511 | 2017-08-18T02:14:00.000Z | 2019-06-18T20:11:02.000Z | src/helics/application_api/Inputs.cpp | GMLC-TDC/HELICS-src | 5e37168bca0ea9e16b939e052e257182ca6e24bd | [
"BSD-3-Clause"
] | 11 | 2017-10-27T15:03:37.000Z | 2019-05-03T19:35:14.000Z | /*
Copyright (c) 2017-2022,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable
Energy, LLC. See the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "Inputs.hpp"
#include "../common/JsonProcessingFunctions.hp... | 32.152993 | 100 | 0.525584 | GMLC-TDC |
b1a5144beabeba521395c9bc28d740fc2f4b7eed | 387 | cpp | C++ | src/Hord/Rule/State.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | src/Hord/Rule/State.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | src/Hord/Rule/State.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <Hord/Rule/State.hpp>
namespace Hord {
namespace Rule {
// class State implementation
State::~State() noexcept = default;
State::State() noexcept = default;
State::State(State&&) noexcept = default;
State& State::operator=(Sta... | 19.35 | 72 | 0.710594 | komiga |
b1a54a831ddddd323547caeabc1ea2e7244d0d06 | 4,528 | cpp | C++ | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/benchmarks/gui/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/benchmarks/gui/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | depends/work/build/i686-w64-mingw32/qt/5.9.7-f2560c1efa6/qtbase/tests/benchmarks/gui/graphicsview/qgraphicslayout/tst_qgraphicslayout.cpp | GrinCash/Grinc-core | 1377979453ba84082f70f9c128be38e57b65a909 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid comm... | 32.113475 | 127 | 0.661219 | GrinCash |
b1a6a19204219f0f833690e1da76098eab53ec59 | 57 | hpp | C++ | include/inputHandler.hpp | Napam/tuna | d76407a763f46ff78ee1c5479e2a3b6b7f598980 | [
"Apache-2.0"
] | null | null | null | include/inputHandler.hpp | Napam/tuna | d76407a763f46ff78ee1c5479e2a3b6b7f598980 | [
"Apache-2.0"
] | 1 | 2021-09-28T18:29:20.000Z | 2021-09-28T18:29:20.000Z | include/inputHandler.hpp | Napam/Boids-SDL | d76407a763f46ff78ee1c5479e2a3b6b7f598980 | [
"Apache-2.0"
] | null | null | null | #ifndef INPUT_HANDLER_H
#define INPUT_HANDLER_H
#endif | 9.5 | 23 | 0.824561 | Napam |
b1a752c653fcb9c237eff6f9f88b9953d733d398 | 1,640 | hpp | C++ | libs/module/include/module.hpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | libs/module/include/module.hpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | libs/module/include/module.hpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | /**
* @copyright 2022-present Brian Cairl
*
* @file module.hpp
*/
#pragma once
// C++ Standard Library
#include <string>
#include <unordered_map>
// Snek
#include <snek/builder/fwd.hpp>
#include <snek/config/fwd.hpp>
namespace snek
{
/**
* @brief Loads a collection of Routine implementations (a "module") from ... | 27.79661 | 112 | 0.662195 | briancairl |
b1a8782c5dfb7db8915a6909a16191212c24a953 | 12,990 | cc | C++ | planner/FAST-DOWNWARD/src/search/landmarks/landmark_count_heuristic.cc | karthikv792/PlanningAssistance | 5693c844e9067591ea1414ee9586bcd2dfff6f51 | [
"MIT"
] | 4 | 2019-04-23T10:41:35.000Z | 2019-10-27T05:14:42.000Z | planner/FAST-DOWNWARD/src/search/landmarks/landmark_count_heuristic.cc | karthikv792/PlanningAssistance | 5693c844e9067591ea1414ee9586bcd2dfff6f51 | [
"MIT"
] | null | null | null | planner/FAST-DOWNWARD/src/search/landmarks/landmark_count_heuristic.cc | karthikv792/PlanningAssistance | 5693c844e9067591ea1414ee9586bcd2dfff6f51 | [
"MIT"
] | 4 | 2018-01-16T00:00:22.000Z | 2019-11-01T23:35:01.000Z | #include "landmark_count_heuristic.h"
#include "../lp_solver.h"
#include "../plugin.h"
#include "../successor_generator.h"
#include <cmath>
#include <limits>
#include <unordered_map>
using namespace std;
LandmarkCountHeuristic::LandmarkCountHeuristic(const Options &opts)
: Heuristic(opts),
lgraph(*opts.ge... | 39.009009 | 106 | 0.610393 | karthikv792 |
b1ab5b7674f3a46b86a24189513403506c1466ed | 1,753 | cpp | C++ | Online Judges/URI/1088/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 64 | 2019-03-17T08:56:28.000Z | 2022-01-14T02:31:21.000Z | Online Judges/URI/1088/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 1 | 2020-12-24T07:16:30.000Z | 2021-03-23T20:51:05.000Z | Online Judges/URI/1088/main.cpp | AnneLivia/URI-Online | 02ff972be172a62b8abe25030c3676f6c04efd1b | [
"MIT"
] | 19 | 2019-05-25T10:48:16.000Z | 2022-01-07T10:07:46.000Z | #include <iostream>
#include <vector>
using namespace std;
vector<int>v;
class Bit {
private:
vector<int>bit;
int sz;
public:
void build(int sz) {
this->bit.assign(sz + 1, 0);
this->sz = sz;
// in this problem each position starts with 0 (we must count the frequency of each number... | 21.641975 | 99 | 0.458072 | AnneLivia |
b1ab79ec1e3c95fcda8a7c6c2fdcbe2d9ec89c8f | 1,284 | cpp | C++ | libc/utils/benchmarks/LibcBenchmark.cpp | HybridDeveloper/llvm-project | c9f513b0f454eba1bef40d8686287a18cb9b9f5e | [
"Apache-2.0"
] | null | null | null | libc/utils/benchmarks/LibcBenchmark.cpp | HybridDeveloper/llvm-project | c9f513b0f454eba1bef40d8686287a18cb9b9f5e | [
"Apache-2.0"
] | 9 | 2020-04-24T21:51:04.000Z | 2020-11-06T01:04:09.000Z | libc/utils/benchmarks/LibcBenchmark.cpp | HybridDeveloper/llvm-project | c9f513b0f454eba1bef40d8686287a18cb9b9f5e | [
"Apache-2.0"
] | null | null | null | //===-- Benchmark function -----------------------------------------------===//
//
// 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.317073 | 80 | 0.639408 | HybridDeveloper |
b1ad233e385dee1c9dbfca57eff6731a6887b3c6 | 11,398 | cxx | C++ | Rendering/External/vtkExternalOpenGLRenderer.cxx | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 1,755 | 2015-01-03T06:55:00.000Z | 2022-03-29T05:23:26.000Z | Rendering/External/vtkExternalOpenGLRenderer.cxx | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 29 | 2015-04-23T20:58:30.000Z | 2022-03-02T16:16:42.000Z | Rendering/External/vtkExternalOpenGLRenderer.cxx | cclauss/VTK | f62a52cce9044159efb4adb7cc0cfd7ec0bc8b6d | [
"BSD-3-Clause"
] | 1,044 | 2015-01-05T22:48:27.000Z | 2022-03-31T02:38:26.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: vtkExternalOpenGLRenderer.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This... | 29.002545 | 93 | 0.57475 | cclauss |
b1ad963f81d40174b1e125d529584cb24d137b8a | 16,141 | cpp | C++ | js6chars.cpp | dubzzz/js6chars | 33d23ce3d6ed51959acf961bccbfe2c0364e93c1 | [
"MIT"
] | 2 | 2017-02-21T22:43:10.000Z | 2018-05-18T05:18:13.000Z | js6chars.cpp | dubzzz/js6chars | 33d23ce3d6ed51959acf961bccbfe2c0364e93c1 | [
"MIT"
] | 1 | 2017-03-28T17:01:46.000Z | 2017-03-28T17:01:46.000Z | js6chars.cpp | dubzzz/js6chars | 33d23ce3d6ed51959acf961bccbfe2c0364e93c1 | [
"MIT"
] | null | null | null | //#define _DEBUG
#include <algorithm>
#include <climits>
#include <cstddef>
#include <memory>
#include <string>
#include <vector>
#ifdef _DEBUG
#include <iostream>
#include <typeinfo>
#endif
#include "js6chars.hpp"
std::string char_repr(char value, bool* cannot_use);
std::string str_repr(const char* str, bool* ca... | 36.851598 | 156 | 0.640295 | dubzzz |
b1b0fa753058fe847c08a2606985a8cecefe820d | 17,959 | cpp | C++ | src/tools/cppgen/code/xbe_classgen.cpp | agenihorganization/opensplice | 314d3a4538474f2b8e22acffe3c206f4ac38b66b | [
"Apache-2.0"
] | null | null | null | src/tools/cppgen/code/xbe_classgen.cpp | agenihorganization/opensplice | 314d3a4538474f2b8e22acffe3c206f4ac38b66b | [
"Apache-2.0"
] | null | null | null | src/tools/cppgen/code/xbe_classgen.cpp | agenihorganization/opensplice | 314d3a4538474f2b8e22acffe3c206f4ac38b66b | [
"Apache-2.0"
] | null | null | null | /*
* OpenSplice DDS
*
* This software and documentation are Copyright 2006 to TO_YEAR PrismTech
* Limited, its affiliated companies and licensors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complia... | 23.353706 | 106 | 0.547915 | agenihorganization |
b1b285fb4549d82a79c9deb183109c485f6c8611 | 819 | cpp | C++ | android-31/android/view/accessibility/AccessibilityNodeInfo_ExtraRenderingInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/view/accessibility/AccessibilityNodeInfo_ExtraRenderingInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/view/accessibility/AccessibilityNodeInfo_ExtraRenderingInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../util/Size.hpp"
#include "./AccessibilityNodeInfo_ExtraRenderingInfo.hpp"
namespace android::view::accessibility
{
// Fields
// QJniObject forward
AccessibilityNodeInfo_ExtraRenderingInfo::AccessibilityNodeInfo_ExtraRenderingInfo(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
a... | 22.135135 | 117 | 0.741148 | YJBeetle |
b1b3cc0502f3d113ef20615730f42a71e44f678d | 2,696 | cpp | C++ | Sources/Elastos/Packages/Apps/Launcher2/src/elastos/droid/launcher2/CWallpaperChooser.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Packages/Apps/Launcher2/src/elastos/droid/launcher2/CWallpaperChooser.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Packages/Apps/Launcher2/src/elastos/droid/launcher2/CWallpaperChooser.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 35.473684 | 99 | 0.701039 | jingcao80 |
b1b776b174a42c35038442c68fb191d3fccd00fe | 2,628 | hpp | C++ | common_types.hpp | milasudril/strint | a7f26ca3c89e0f15d195337c60b9ee389b92b549 | [
"MIT"
] | null | null | null | common_types.hpp | milasudril/strint | a7f26ca3c89e0f15d195337c60b9ee389b92b549 | [
"MIT"
] | null | null | null | common_types.hpp | milasudril/strint | a7f26ca3c89e0f15d195337c60b9ee389b92b549 | [
"MIT"
] | null | null | null | //@ {"targets":[{"name":"common_types.hpp","type":"include"}]}
#ifndef STRINT_COMMON_TYPES_HPP
#define STRINT_COMMON_TYPES_HPP
#include "integer.hpp"
#include <climits>
#include <cstdint>
namespace Strint
{
enum class IntSize:int
{
Smallest = CHAR_BIT
,Short = CHAR_BIT * sizeof(short)
,Natural = CHAR_BIT ... | 29.863636 | 87 | 0.746195 | milasudril |
b1b7fb36aab8555c4d150a8ce9504a477eedf623 | 283 | cpp | C++ | AtCoder/Solutions/abc176_b.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | AtCoder/Solutions/abc176_b.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | AtCoder/Solutions/abc176_b.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | // Problem Code: abc176_b
#include <iostream>
#include <string>
using namespace std;
string is_multiple(string N) {
int sum = 0;
for (char& c: N)
sum += c - '0';
return (sum % 9 == 0) ? "Yes" : "No";
}
int main() {
string N;
cin >> N;
cout << is_multiple(N);
return 0;
} | 14.15 | 38 | 0.586572 | Mohammed-Shoaib |
b1baaf64557c922808099ef3543ae816a91ad419 | 9,709 | cpp | C++ | Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 31.522727 | 190 | 0.604079 | dujianxin |
b1bb61df75d37d72e06b4f573fe82a8263a037d8 | 6,250 | cpp | C++ | tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 1 | 2021-11-10T19:36:30.000Z | 2021-11-10T19:36:30.000Z | tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | null | null | null | tests/auto_build/testcases/client/cpp/IHeaderBlockTest5Client.cpp | vlsinitsyn/axis1 | 65a622201e526dedf7c3aeadce7cac5bd79895bf | [
"Apache-2.0"
] | 2 | 2021-11-02T13:09:57.000Z | 2021-11-10T19:36:22.000Z | // Copyright 2003-2004 The Apache Software Foundation.
// (c) Copyright IBM Corp. 2004, 2005 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.... | 39.0625 | 103 | 0.54384 | vlsinitsyn |
b1bb713f09ac3b8b8b7c03c116bee3a070254667 | 682 | cc | C++ | chrome/browser/download/download_target_info.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/download/download_target_info.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/download/download_target_info.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "chrome/browser/download/download_target_info.h"
#include "chrome/common/safe_browsing/file_type_policies.h"
DownloadTargetInfo::DownloadTarget... | 40.117647 | 78 | 0.794721 | metux |
04d8f7f6a3f592135625bae6c9c979649584b369 | 4,952 | cc | C++ | prio/poly_test.cc | google/libprio-cc | 26433c38a51ccc5224e4cc4df163c76360987e7d | [
"Apache-2.0"
] | 5 | 2021-02-28T00:06:34.000Z | 2021-11-06T06:13:05.000Z | prio/poly_test.cc | google/libprio-cc | 26433c38a51ccc5224e4cc4df163c76360987e7d | [
"Apache-2.0"
] | null | null | null | prio/poly_test.cc | google/libprio-cc | 26433c38a51ccc5224e4cc4df163c76360987e7d | [
"Apache-2.0"
] | 3 | 2020-09-26T08:34:12.000Z | 2020-10-13T16:51:59.000Z | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 32.155844 | 80 | 0.696486 | google |
04d9e48a170099b714c2f35a7c751d66557da2ef | 4,671 | cpp | C++ | ql/experimental/basismodels/fxfwdratehelper.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/basismodels/fxfwdratehelper.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | 17 | 2020-11-23T07:24:16.000Z | 2022-03-28T10:29:06.000Z | ql/experimental/basismodels/fxfwdratehelper.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | 7 | 2017-04-24T08:28:43.000Z | 2022-03-15T08:59:54.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2016 Andre Miemiec
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/o... | 38.925 | 136 | 0.665168 | sschlenkrich |
04db0fffe7015d8eabdf0967982d2a3a78142ac8 | 519 | cpp | C++ | mooc42-dongfei-algo/class3/stackWithMax.cpp | yaominzh/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 2 | 2021-03-25T05:26:55.000Z | 2021-04-20T03:33:24.000Z | mooc42-dongfei-algo/class3/stackWithMax.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | 6 | 2019-12-04T06:08:32.000Z | 2021-05-10T20:22:47.000Z | mooc42-dongfei-algo/class3/stackWithMax.cpp | mcuallen/CodeLrn2019 | adc727d92904c5c5d445a2621813dfa99474206d | [
"Apache-2.0"
] | null | null | null | class stackWithMax {
private:
stack<int> valueStack;
stack<int> maxStack;
public:
void push(int);
int pop();
int max();
};
void stackWithMax::push(int value) {
if (maxStack.empty() || maxStack.top() <= value) {
maxStack.push(value);
}
valueStack.push(value);
}
int stackWithMax::pop() ... | 16.741935 | 54 | 0.595376 | yaominzh |
04dbb6c65f12e0e0a345c29a7b18c1bc0f98b1ac | 10,899 | cpp | C++ | qt-creator-opensource-src-4.6.1/src/plugins/projectexplorer/linuxiccparser.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/linuxiccparser.cpp | kevinlq/Qt-Creator-Opensource-Study | b8cadff1f33f25a5d4ef33ed93f661b788b1ba0f | [
"MIT"
] | null | null | null | qt-creator-opensource-src-4.6.1/src/plugins/projectexplorer/linuxiccparser.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... | 43.079051 | 148 | 0.551794 | kevinlq |
04dc25ea91b30221b73e2b42e669c92f83e86c65 | 31,590 | cpp | C++ | Source/bindings/templates/methods.cpp | prepare/Blink_only_permissive_lic_files | 8b3acc51c7ae8b074d2e2b610d0d9295d9a1ecb4 | [
"BSD-3-Clause"
] | null | null | null | Source/bindings/templates/methods.cpp | prepare/Blink_only_permissive_lic_files | 8b3acc51c7ae8b074d2e2b610d0d9295d9a1ecb4 | [
"BSD-3-Clause"
] | null | null | null | Source/bindings/templates/methods.cpp | prepare/Blink_only_permissive_lic_files | 8b3acc51c7ae8b074d2e2b610d0d9295d9a1ecb4 | [
"BSD-3-Clause"
] | null | null | null | {% from 'conversions.cpp' import declare_enum_validation_variable, v8_value_to_local_cpp_value %}
{##############################################################################}
{% macro generate_method(method, world_suffix) %}
{% filter conditional(method.conditional_string) %}
{% if method.returns_promise and meth... | 48.525346 | 302 | 0.672333 | prepare |
04de46c17e780b33efb0f95d7110aab845a51718 | 4,084 | cpp | C++ | Libraries/AssetProcessor/ExAPBitmapDocument.cpp | tom-weatherhead/exeter-asset-processor | e19c777427afe66684f308cb7b07448b3481c25e | [
"MIT"
] | null | null | null | Libraries/AssetProcessor/ExAPBitmapDocument.cpp | tom-weatherhead/exeter-asset-processor | e19c777427afe66684f308cb7b07448b3481c25e | [
"MIT"
] | null | null | null | Libraries/AssetProcessor/ExAPBitmapDocument.cpp | tom-weatherhead/exeter-asset-processor | e19c777427afe66684f308cb7b07448b3481c25e | [
"MIT"
] | null | null | null | /*
* ExAPBitmapDocument.cpp
* Exeter AssetProcessor
*
* Created by Tom Weatherhead on Wed Apr 30 2003.
* Copyright (c) 2003 by Tom Weatherhead. All rights reserved.
*
*/
#ifdef _MSC_VER // TAW 2002/03/11 : ie. if MSVC
#ifndef MACINTOSH // TAW 2002/02/23 : ie. if MSVC
// Suppress warning C478... | 26.348387 | 109 | 0.669687 | tom-weatherhead |
04de5ff46b49034da29bceabe7f3605a2ac177ff | 1,713 | cc | C++ | squid/squid3-3.3.8.spaceify/src/tests/stub_icp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/tests/stub_icp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/tests/stub_icp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | #include "squid.h"
#include "comm/Connection.h"
#include "ICP.h"
#include "icp_opcode.h"
#define STUB_API "icp_*.cc"
#include "tests/STUB.h"
#ifdef __cplusplus
_icp_common_t::_icp_common_t() STUB
_icp_common_t::_icp_common_t(char *buf, unsigned int len) STUB
void _icp_common_t::handleReply(char *buf, Ip::Address &fro... | 46.297297 | 129 | 0.798015 | spaceify |
04e14169876e30374d8279e8139c509bdc51e3a1 | 13,945 | hpp | C++ | 2d/extra/TestCoordinatesR2.hpp | danston/gbc | 0cb1ae062919b053edc1558bdf41757460703eca | [
"MIT"
] | 16 | 2016-12-06T10:35:46.000Z | 2022-01-19T01:20:56.000Z | 2d/extra/TestCoordinatesR2.hpp | danston/gbc | 0cb1ae062919b053edc1558bdf41757460703eca | [
"MIT"
] | 1 | 2020-02-11T10:45:30.000Z | 2021-03-12T11:08:03.000Z | 2d/extra/TestCoordinatesR2.hpp | danston/gbc | 0cb1ae062919b053edc1558bdf41757460703eca | [
"MIT"
] | 3 | 2018-05-10T14:34:35.000Z | 2021-12-20T10:01:21.000Z | // Copyright Dmitry Anisimov danston@ymail.com (c) 2016-2017.
// README:
/*
This is a test class for testing generalized barycentric coordinates.
*/
#ifndef GBC_TESTCOORDINATESR2_HPP
#define GBC_TESTCOORDINATESR2_HPP
// STL includes.
#include <vector>
#include <iostream>
#include <cmath>
// Local includes.
#i... | 35.125945 | 124 | 0.507063 | danston |
04e159cf00f46f28f966d82ef38dba9513be13cf | 17,614 | cpp | C++ | src/3rdparty/kjs/src/kjs/regexp_object.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | src/3rdparty/kjs/src/kjs/regexp_object.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | src/3rdparty/kjs/src/kjs/regexp_object.cpp | afarcat/QtHtmlView | fff12b6f5c08c2c6db15dd73e4f0b55421827b39 | [
"Apache-2.0"
] | null | null | null | // krazy:excludeall=doublequote_chars (UStrings aren't QStrings)
/*
* This file is part of the KDE libraries
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2003 Apple Computer, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the G... | 33.550476 | 133 | 0.608096 | afarcat |
04e32f046801bb7c6cff6759899efb55d923abcb | 176 | cpp | C++ | Code/operator.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | Code/operator.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | Code/operator.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int a=5, b=8, c=7;
bool x,y;
x = a>c || b!= c && a==c;
y = !x;
cout<<x<<endl<<y<<endl;
int d = 8/3 + a%2 - c*b;
cout<<d;
}
| 13.538462 | 25 | 0.522727 | capacitybuilding |
04e368f105016412d38b042d6e97344c89913521 | 859 | cpp | C++ | C++/structural_patterns/composite/Directory.cpp | ploukareas/Design-Patterns | 8effde38d73ae9058c3028c97ef395644a90d55b | [
"BSD-3-Clause",
"MIT"
] | 10 | 2018-10-26T20:02:43.000Z | 2022-03-21T02:00:46.000Z | C++/structural_patterns/composite/Directory.cpp | ploukareas/Design-Patterns | 8effde38d73ae9058c3028c97ef395644a90d55b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | C++/structural_patterns/composite/Directory.cpp | ploukareas/Design-Patterns | 8effde38d73ae9058c3028c97ef395644a90d55b | [
"BSD-3-Clause",
"MIT"
] | 2 | 2021-09-27T09:09:39.000Z | 2021-11-19T18:52:40.000Z | // ˅
#include <iostream>
#include "structural_patterns/composite/Directory.h"
#include "structural_patterns/composite/FileSystemElement.h"
using namespace std;
// ˄
Directory::Directory(const string& name)
: name(name)
// ˅
// ˄
{
// ˅
// ˄
}
Directory::~Directory()
{
// ˅
// ˄
}
const string Director... | 13.015152 | 60 | 0.616997 | ploukareas |