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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
788034aa681e1bcfb9ac144e586d6560d159b5fc | 17,258 | cpp | C++ | src/pyglue/PyDisplayTransform.cpp | mjmvisser/OpenColorIO | a557a85454ee1ffa8cb66f8a96238e079c452f08 | [
"BSD-3-Clause"
] | 4 | 2015-02-25T21:54:11.000Z | 2020-12-22T13:58:27.000Z | src/pyglue/PyDisplayTransform.cpp | dictoon/OpenColorIO | 64adcad300adfd166280d2e7b1fb5c3ce7dca482 | [
"BSD-3-Clause"
] | null | null | null | src/pyglue/PyDisplayTransform.cpp | dictoon/OpenColorIO | 64adcad300adfd166280d2e7b1fb5c3ce7dca482 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2003-2010 Sony Pictures Imageworks Inc., et al.
All Rights Reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of co... | 47.5427 | 138 | 0.592653 | mjmvisser |
788430157bd33d00ab1dc8dfa76f55b3a6560cd8 | 1,532 | cc | C++ | jingle/glue/fake_network_manager.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | jingle/glue/fake_network_manager.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | jingle/glue/fake_network_manager.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | // Copyright (c) 2012 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 "jingle/glue/fake_network_manager.h"
#include "base/bind.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "net/base/ip_e... | 30.039216 | 75 | 0.729112 | Scopetta197 |
788985cc08b864e56b797e167946e9f51a63f653 | 764 | cpp | C++ | 2020.09.24-Homework-2/Task3 Dynamic array/Task3 Dynamic array/Source.cpp | Atilin/1st-semester-SPBU | b6719d7cd2213aaded065d93ee000c4bb95568ad | [
"Apache-2.0"
] | null | null | null | 2020.09.24-Homework-2/Task3 Dynamic array/Task3 Dynamic array/Source.cpp | Atilin/1st-semester-SPBU | b6719d7cd2213aaded065d93ee000c4bb95568ad | [
"Apache-2.0"
] | null | null | null | 2020.09.24-Homework-2/Task3 Dynamic array/Task3 Dynamic array/Source.cpp | Atilin/1st-semester-SPBU | b6719d7cd2213aaded065d93ee000c4bb95568ad | [
"Apache-2.0"
] | 1 | 2020-11-30T14:39:45.000Z | 2020-11-30T14:39:45.000Z | #include <iostream>
#include <clocale>
using namespace std;
void expandArray(int*& a, int& cap, int& count)
{
cap += 10;
int* temp = new int[cap] {0};
for (int i = 0; i < count; ++i)
{
temp[i] = a[i];
}
delete[] a;
a = temp;
}
int main()
{
setlocale(LC_ALL, "Russian");
int cap = 10;
int* a = new int[cap];... | 14.148148 | 68 | 0.519634 | Atilin |
788b2f2b757bbed9d7d01c00c9de69ff8835ebb0 | 4,069 | cpp | C++ | Common/PlatformBase/MapLayer/MapCollection.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Common/PlatformBase/MapLayer/MapCollection.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Common/PlatformBase/MapLayer/MapCollection.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... | 27.308725 | 94 | 0.723028 | achilex |
788b4f21b1420fcecf3893885a54761ffaf7901a | 410 | cc | C++ | cs247/gtkmm-examples/04pixmaps/ex1/main.cc | shalecraig/Notes | 624378484a066504c55addffa4a27bd8f5e5d13b | [
"MIT"
] | 14 | 2015-01-16T18:31:43.000Z | 2020-05-10T03:11:28.000Z | cs247/gtkmm-examples/06dialogBox/main.cc | shalecraig/Notes | 624378484a066504c55addffa4a27bd8f5e5d13b | [
"MIT"
] | null | null | null | cs247/gtkmm-examples/06dialogBox/main.cc | shalecraig/Notes | 624378484a066504c55addffa4a27bd8f5e5d13b | [
"MIT"
] | 7 | 2015-04-01T22:53:25.000Z | 2021-03-20T00:23:09.000Z | /*
* Displays an image in a window.
*/
#include <gtkmm/main.h>
#include "helloworld.h"
int main( int argc, char * argv[] ) {
Gtk::Main kit( argc, argv ); // Initialize gtkmm with the command line arguments, as appropriate.
HelloWorld hello; // Create the window with the image.
Gtk::Main::run(... | 27.333333 | 102 | 0.629268 | shalecraig |
788d1286610f0ab0211d11becfb11fc32c09d40e | 51,141 | cc | C++ | tests/core/test_core_playsync_manager.cc | JeanTracker/nugu-linux | 28b5337b4f74442126ce5ec55001c2fe09271e40 | [
"Apache-2.0"
] | null | null | null | tests/core/test_core_playsync_manager.cc | JeanTracker/nugu-linux | 28b5337b4f74442126ce5ec55001c2fe09271e40 | [
"Apache-2.0"
] | null | null | null | tests/core/test_core_playsync_manager.cc | JeanTracker/nugu-linux | 28b5337b4f74442126ce5ec55001c2fe09271e40 | [
"Apache-2.0"
] | 1 | 2019-10-21T09:38:47.000Z | 2019-10-21T09:38:47.000Z | /*
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 44.625654 | 139 | 0.729356 | JeanTracker |
788d2a6006708d5d34023246a94e730cf9ac8f8b | 91,778 | cpp | C++ | src/throughput/throughputMCR.cpp | forsyde/DeSyDe | 48c55861ed78dd240451787258ee286b0f46aea5 | [
"BSD-2-Clause"
] | 3 | 2016-09-06T14:00:07.000Z | 2021-03-23T04:40:13.000Z | src/throughput/throughputMCR.cpp | forsyde/DeSyDe | 48c55861ed78dd240451787258ee286b0f46aea5 | [
"BSD-2-Clause"
] | 2 | 2019-02-19T13:02:40.000Z | 2019-06-17T15:27:52.000Z | src/throughput/throughputMCR.cpp | forsyde/DeSyDe | 48c55861ed78dd240451787258ee286b0f46aea5 | [
"BSD-2-Clause"
] | 7 | 2016-10-05T10:04:49.000Z | 2021-04-12T18:20:44.000Z | #include "throughputMCR.hpp"
#include "../tools/stringtools.hpp"
using namespace Gecode;
using namespace Int;
using namespace std;
ThroughputMCR::ThroughputMCR(Space& home, ViewArray<IntView> p_latency, ViewArray<IntView> p_period, //ViewArray<IntView> p_iterations,
//ViewArray<IntView> p_iterationsCh,
ViewA... | 42.352561 | 198 | 0.619353 | forsyde |
788e1c5e0a9c0150c5c87a792d4787c08c2bb4c8 | 2,820 | cpp | C++ | benchmark/random_string.cpp | hungptit/clhash | 77fb802045d9e1429167bbf2f5290cf0b0a94bcd | [
"Apache-2.0"
] | 7 | 2018-11-29T21:36:51.000Z | 2019-03-16T18:28:14.000Z | benchmark/random_string.cpp | hungptit/clhash | 77fb802045d9e1429167bbf2f5290cf0b0a94bcd | [
"Apache-2.0"
] | 1 | 2018-10-27T01:38:33.000Z | 2018-10-27T01:38:33.000Z | benchmark/random_string.cpp | hungptit/clhash | 77fb802045d9e1429167bbf2f5290cf0b0a94bcd | [
"Apache-2.0"
] | 1 | 2018-10-26T14:06:52.000Z | 2018-10-26T14:06:52.000Z | #include "boost/container_hash/hash.hpp"
#include "clhash.h"
#include "hybrid_hash.h"
#include <algorithm>
#include <benchmark/benchmark.h>
#include <iostream>
#include <iterator>
#include <random>
#include <stdexcept>
#include <cstdlib>
#define XXH_INLINE_ALL
#include "xxhash.h"
class CharGenerator {
public:
s... | 28.77551 | 94 | 0.611348 | hungptit |
788e579c87b4ffe81350f00523e8d3862b21385c | 582 | cpp | C++ | 24_dynamic_1/6_largest_sum_subarray.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | 1 | 2020-09-30T10:36:06.000Z | 2020-09-30T10:36:06.000Z | 24_dynamic_1/6_largest_sum_subarray.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | null | null | null | 24_dynamic_1/6_largest_sum_subarray.cpp | meyash/dust | 8f90d7f9cc42f61193c737cde14e9c4bb32884b4 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
// this is kadane's algo
// sample
// 8
// -5 6 7 -20 3 5 8 -9
// output
// 16
int kadane(int *a,int n){
int current_sum=0;
int best_sum=0;
for(int i=0;i<n;i++){
current_sum+=a[i];
if(best_sum<current_sum){
best... | 17.117647 | 34 | 0.510309 | meyash |
788e852c032f48a781173c36fec2989d335d6a8e | 22,555 | cpp | C++ | src/api/test/TestQuery.cpp | samprasyork/nebula | 7184c4e76ef0cb65ca3dc4b6d98ca1ac66943928 | [
"Apache-2.0"
] | null | null | null | src/api/test/TestQuery.cpp | samprasyork/nebula | 7184c4e76ef0cb65ca3dc4b6d98ca1ac66943928 | [
"Apache-2.0"
] | null | null | null | src/api/test/TestQuery.cpp | samprasyork/nebula | 7184c4e76ef0cb65ca3dc4b6d98ca1ac66943928 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2017-present Shawn Cao
*
* 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... | 36.555916 | 143 | 0.550388 | samprasyork |
7891d7253cc61393f50509521b66882579facad2 | 6,177 | cc | C++ | mindspore/lite/src/ops/tensorlist_setitem.cc | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | 1 | 2021-01-28T11:08:20.000Z | 2021-01-28T11:08:20.000Z | mindspore/lite/src/ops/tensorlist_setitem.cc | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | null | null | null | mindspore/lite/src/ops/tensorlist_setitem.cc | GuoSuiming/mindspore | 48afc4cfa53d970c0b20eedfb46e039db2a133d5 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... | 36.550296 | 117 | 0.688846 | GuoSuiming |
789260cfda9fcb54ccc257cdd2d0a0bb84b54268 | 8,557 | cpp | C++ | batch/src/v20170312/model/TaskTemplateView.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | batch/src/v20170312/model/TaskTemplateView.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | batch/src/v20170312/model/TaskTemplateView.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 30.891697 | 152 | 0.694052 | sinjoywong |
7892bf64444cff8af6b7b052591512942ccd68da | 14,078 | hxx | C++ | win32/include/QUANTA/QUANTAnet_udp_c.hxx | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | win32/include/QUANTA/QUANTAnet_udp_c.hxx | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | null | null | null | win32/include/QUANTA/QUANTAnet_udp_c.hxx | benyaboy/sage-graphics | 090640167329ace4b6ad266d47db5bb2b0394232 | [
"Unlicense"
] | 1 | 2021-07-02T10:31:03.000Z | 2021-07-02T10:31:03.000Z | /******************************************************************************
* QUANTA - A toolkit for High Performance Data Sharing
* Copyright (C) 2003 Electronic Visualization Laboratory,
* University of Illinois at Chicago
*
* This library is free software; you can redistribute it and/or modify it
... | 37.946092 | 388 | 0.690439 | benyaboy |
789490e223299f18f13ca8d2b02ad88be32468b2 | 605 | cpp | C++ | WnCC/Week1/unord_subseq.cpp | AkashCherukuri/CC | b9c1617c28831197a3bf5fe846949fc03ae15507 | [
"MIT"
] | null | null | null | WnCC/Week1/unord_subseq.cpp | AkashCherukuri/CC | b9c1617c28831197a3bf5fe846949fc03ae15507 | [
"MIT"
] | null | null | null | WnCC/Week1/unord_subseq.cpp | AkashCherukuri/CC | b9c1617c28831197a3bf5fe846949fc03ae15507 | [
"MIT"
] | null | null | null | # include "bits/stdc++.h"
using namespace std;
# define rep(i,a,b) for(int i=a; i<b; i++)
int main(){
int n; cin >> n;
vector<int> dat(n);
rep(i,0,n) cin >> dat[i];
int st = 0;
bool ord = true;
int x,y,z;
rep(i,1,n){
if(st==0){
if(dat[i]>dat[i-1]){ st=1; x=i-1; }
else if(dat[i]<dat[i-1]){ st=2; x=i-1... | 18.90625 | 77 | 0.48595 | AkashCherukuri |
78970d4524a752d6f4374359c1e412bed994e97f | 805 | cpp | C++ | test/SeeDeviceAddress.cpp | genevea/TankController | 18c47c54737800cca09525d907c8ddf4f6e36750 | [
"MIT"
] | null | null | null | test/SeeDeviceAddress.cpp | genevea/TankController | 18c47c54737800cca09525d907c8ddf4f6e36750 | [
"MIT"
] | 1 | 2021-05-10T05:41:39.000Z | 2021-05-10T05:41:39.000Z | test/SeeDeviceAddress.cpp | genevea/TankController | 18c47c54737800cca09525d907c8ddf4f6e36750 | [
"MIT"
] | null | null | null | #include "SeeDeviceAddress.h"
#include <Arduino.h>
#include <ArduinoUnitTests.h>
#include "Keypad_TC.h"
#include "LiquidCrystal_TC.h"
#include "TankControllerLib.h"
unittest(testOutput) {
TankControllerLib* tc = TankControllerLib::instance();
LiquidCrystal_TC* display = LiquidCrystal_TC::instance();
assertEqua... | 27.758621 | 61 | 0.710559 | genevea |
789752e9399a02405a1da70f1958f3491dd7c602 | 545 | cpp | C++ | Easy Challenges/Ciel and A-B.cpp | Akashverma247/Coding_Library | 09c28a71c7ba5b2f192bb8ef26b2d0a41905f011 | [
"MIT"
] | null | null | null | Easy Challenges/Ciel and A-B.cpp | Akashverma247/Coding_Library | 09c28a71c7ba5b2f192bb8ef26b2d0a41905f011 | [
"MIT"
] | null | null | null | Easy Challenges/Ciel and A-B.cpp | Akashverma247/Coding_Library | 09c28a71c7ba5b2f192bb8ef26b2d0a41905f011 | [
"MIT"
] | null | null | null | /*
In Ciel's restaurant, a waiter is training. Since the waiter isn't good at arithmetic, sometimes he gives guests wrong change. Ciel gives him a simple problem. What is A-B (A minus B) ?
Surprisingly, his answer is wrong. To be more precise, his answer has exactly one wrong digit. Can you imagine this? Can you make ... | 25.952381 | 185 | 0.638532 | Akashverma247 |
7898e79d60d92ba5b556054923231de1c9141dca | 790 | cpp | C++ | cpp/src/exercise/e0100/e0098.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0098.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | cpp/src/exercise/e0100/e0098.cpp | ajz34/LeetCodeLearn | 70ff8a3c17199a100819b356735cd9b13ff166a7 | [
"MIT"
] | null | null | null | // https://leetcode-cn.com/problems/validate-binary-search-tree/
#include "extern.h"
class S0098 {
bool leftFirst(TreeNode* root, vector<int>& vec) {
if (root->left && !leftFirst(root->left, vec)) return false;
if (!vec.empty() && vec.back() >= root->val) return false;
vec.push_back(root->... | 28.214286 | 70 | 0.6 | ajz34 |
7898f0805d5b535022eb2334e77725946a143499 | 3,730 | cpp | C++ | deps/spidermonkey/xpconnect/src/XPCDispParams.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | 1 | 2015-04-19T10:49:48.000Z | 2015-04-19T10:49:48.000Z | deps/spidermonkey/xpconnect/src/XPCDispParams.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | null | null | null | deps/spidermonkey/xpconnect/src/XPCDispParams.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | null | null | null | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License.... | 35.865385 | 79 | 0.704826 | havocp |
78990cb7b401b12c5bb8983ba059e6734fa46a4a | 5,974 | cpp | C++ | src/utils/Blob.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | 2 | 2020-11-25T17:45:58.000Z | 2021-12-21T02:01:16.000Z | src/utils/Blob.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | null | null | null | src/utils/Blob.cpp | hpc/hxhim | 1a2224a200cb5a9fae33da13720e68beb5bee746 | [
"BSD-3-Clause"
] | 1 | 2021-10-11T19:54:05.000Z | 2021-10-11T19:54:05.000Z | #include <cstring>
#include <iomanip>
#include <stdexcept>
#include <utility>
#include "utils/Blob.hpp"
#include "utils/little_endian.hpp"
#include "utils/memory.hpp"
Blob::Blob(void *ptr, const std::size_t len, const hxhim_data_t type, const bool clean)
: ptr(ptr),
len(len),
type(type),
clean(c... | 20.888112 | 87 | 0.58085 | hpc |
789cfa59cc193d3548d4d62cf96743b9fa99e656 | 7,664 | cpp | C++ | src/XPTools/ConvertObj3DS.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 71 | 2015-12-15T19:32:27.000Z | 2022-02-25T04:46:01.000Z | src/XPTools/ConvertObj3DS.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 19 | 2016-07-09T19:08:15.000Z | 2021-07-29T10:30:20.000Z | src/XPTools/ConvertObj3DS.cpp | rromanchuk/xptools | deff017fecd406e24f60dfa6aae296a0b30bff56 | [
"X11",
"MIT"
] | 42 | 2015-12-14T19:13:02.000Z | 2022-03-01T15:15:03.000Z | /*
* Copyright (c) 2004, Laminar Research.
*
* 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, ... | 29.590734 | 99 | 0.635569 | rromanchuk |
789d80e2e0142611c4c8d2abe5fd9c9c05a19060 | 4,542 | cpp | C++ | frontends/p4/typeChecking/syntacticEquivalence.cpp | DTharun/p4lang | d83d078f95ae2eaf054955fb645fa4d4a7e54847 | [
"Apache-2.0"
] | 27 | 2018-06-30T13:01:40.000Z | 2022-01-28T09:07:21.000Z | frontends/p4/typeChecking/syntacticEquivalence.cpp | DTharun/p4lang | d83d078f95ae2eaf054955fb645fa4d4a7e54847 | [
"Apache-2.0"
] | 8 | 2018-06-01T11:19:02.000Z | 2018-06-09T13:09:15.000Z | frontends/p4/typeChecking/syntacticEquivalence.cpp | DTharun/p4lang | d83d078f95ae2eaf054955fb645fa4d4a7e54847 | [
"Apache-2.0"
] | 6 | 2019-02-24T11:20:22.000Z | 2021-05-25T17:21:07.000Z | /*
Copyright 2016 VMware, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 42.849057 | 100 | 0.60502 | DTharun |
a191d05341c14819ccb1b24f8319b73074ed6fba | 322 | hpp | C++ | source/luaquicks.hpp | Pika-Software/gmsv_network | 037ddbaf5b9c29e9e2bbfdc0db45a51dfbe03733 | [
"MIT"
] | 2 | 2021-12-25T17:59:38.000Z | 2021-12-25T17:59:45.000Z | source/luaquicks.hpp | Pika-Software/gmsv_network | 037ddbaf5b9c29e9e2bbfdc0db45a51dfbe03733 | [
"MIT"
] | 1 | 2021-12-26T13:51:58.000Z | 2021-12-26T19:03:02.000Z | source/luaquicks.hpp | Pika-Software/gmsv_network | 037ddbaf5b9c29e9e2bbfdc0db45a51dfbe03733 | [
"MIT"
] | null | null | null | #ifndef GMNETWORK_LUAQUICKS_H
#define GMNETWORK_LUAQUICKS_H
#ifdef SYSTEM_WINDOWS
#pragma once
#endif
#include "main.hpp"
namespace GmNetwork::LuaQuicks {
bool PushHookCall(GarrysMod::Lua::ILuaInterface* LUA, const char* eventName);
bool RunHookCall(GarrysMod::Lua::ILuaInterface* LUA, int argC, int retC);
}
#end... | 21.466667 | 78 | 0.785714 | Pika-Software |
a19800bcc0d8a25160214e357dda16db5c68465f | 5,429 | cpp | C++ | src/LCDController.cpp | danielmcmillan/CharLCD | c367b1fcf03306c1d11cd9b24785518ae019b762 | [
"BSD-2-Clause"
] | null | null | null | src/LCDController.cpp | danielmcmillan/CharLCD | c367b1fcf03306c1d11cd9b24785518ae019b762 | [
"BSD-2-Clause"
] | null | null | null | src/LCDController.cpp | danielmcmillan/CharLCD | c367b1fcf03306c1d11cd9b24785518ae019b762 | [
"BSD-2-Clause"
] | null | null | null | #include "LCDController.h"
#include <algorithm>
#include <iterator>
#include <cassert>
#include <lcd.h>
namespace CharLCD
{
const LCDController::BufferChar LCDController::emptyChar = {false, {' '}};
LCDController::LCDController(LCDBackend lcd)
: lcd(std::move(lcd)), numRows(lcd.getRows()), numCols(lcd... | 30.846591 | 120 | 0.500829 | danielmcmillan |
a199aca4f640c384880747da1b343f44f12d37ac | 710 | hpp | C++ | modules/control/include/toffy/web/sensor2dGroupController.hpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/control/include/toffy/web/sensor2dGroupController.hpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | modules/control/include/toffy/web/sensor2dGroupController.hpp | voxel-dot-at/toffy | e9f14b186cf57225ad9eae99f227f894f0e5f940 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <toffy/web/filterController.hpp>
#include <toffy/web/requestAction.hpp>
namespace toffy {
namespace control {
/**
* @brief Extended controller to handle multiples sensor2d filter at the same time
* @ingroup Control
*
* Apply the Action on all 2d filters declared in the filterBanks
*/
class... | 23.666667 | 83 | 0.733803 | voxel-dot-at |
a19a02a82f2759395ee020d8faad467f7be5236d | 325 | hpp | C++ | src/mergegraphnode.hpp | sosterwalder/mte7102-proj2 | 0c554fd45b4e1c05d3daa1e0a885efff56857e7d | [
"MIT"
] | null | null | null | src/mergegraphnode.hpp | sosterwalder/mte7102-proj2 | 0c554fd45b4e1c05d3daa1e0a885efff56857e7d | [
"MIT"
] | null | null | null | src/mergegraphnode.hpp | sosterwalder/mte7102-proj2 | 0c554fd45b4e1c05d3daa1e0a885efff56857e7d | [
"MIT"
] | null | null | null | #pragma once
#include "graphnode.hpp"
NAMESPACE_BEGIN(QCE);
class MergeGraphNode : public GraphNode
{
public:
MergeGraphNode(Widget *parent, Graph *parentGraph, const std::string &title = "Merge");
virtual bool sinkConnectedEvent(Connector *sink);
virtual std::string calculateOutput();
};
NAMESPACE_END(... | 21.666667 | 91 | 0.744615 | sosterwalder |
a19b15ab07dba0a01690516b1440b35ee5bcae24 | 2,529 | cc | C++ | gpu/command_buffer/service/shared_image_test_utils.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 | gpu/command_buffer/service/shared_image_test_utils.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | gpu/command_buffer/service/shared_image_test_utils.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 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/command_buffer/service/shared_image_test_utils.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/service/share... | 38.907692 | 80 | 0.754844 | zealoussnow |
a19bc512eaa8cc87ff46dc61866b9755863c94c2 | 812 | cpp | C++ | codeforces/C - NN and the Optical Illusion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/C - NN and the Optical Illusion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/C - NN and the Optical Illusion/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jan/13/2019 21:08
* solution_verdict: Accepted language: GNU C++14
* run... | 42.736842 | 111 | 0.348522 | kzvd4729 |
a19be4ff220efe907f6f0d9edce3293d50cbede5 | 26,684 | cpp | C++ | Code/Engine/DebugGui/DebugGuiHelper.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | 3 | 2020-05-12T04:36:38.000Z | 2021-04-04T07:21:44.000Z | Code/Engine/DebugGui/DebugGuiHelper.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | null | null | null | Code/Engine/DebugGui/DebugGuiHelper.cpp | WarzesProject/Micro3DRPG | 36604d51d5dd640836cad77995abbfecfe4bdccc | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "DebugGui/DebugGuiHelper.h"
#include "Core/Math/Transform.h"
#include "Core/Math/EulerAngles.h"
#include "Resource/Scene/SceneNode.h"
#include "Resource/Scene/SceneResource.h"
#include "Resource/Scene/Item/Camera/CameraSceneItem.h"
#include "Resource/Scene/Item/Mesh/SkeletonMeshSceneItem.h"... | 54.016194 | 434 | 0.713386 | WarzesProject |
a19cb47ca3651bc3e5c42cda2c7ac04a291ef15e | 18,124 | cpp | C++ | src/webview/webpage.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | 1 | 2017-05-21T15:31:02.000Z | 2017-05-21T15:31:02.000Z | src/webview/webpage.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | src/webview/webpage.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2012 David Rosca <nowrep@gmail.com>
*
* This program 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 ... | 33.133455 | 160 | 0.640422 | bubapl |
a19ed2d8b846d7e4328efd8c62282fb582d20b5f | 4,814 | cpp | C++ | sharedcpp/libeditcore/videoeffect/image_effect/ghost_scene/blur_mirror/image_blur_mirror_effect.cpp | daimaren/TikTok | 786437b8a05e84dead1bd54ba718edd68f893635 | [
"MIT"
] | 3 | 2020-11-11T04:08:19.000Z | 2021-04-27T01:07:42.000Z | sharedcpp/libeditcore/videoeffect/image_effect/ghost_scene/blur_mirror/image_blur_mirror_effect.cpp | daimaren/TikTok | 786437b8a05e84dead1bd54ba718edd68f893635 | [
"MIT"
] | 2 | 2020-09-22T20:42:16.000Z | 2020-11-11T04:08:57.000Z | sharedcpp/libeditcore/videoeffect/image_effect/ghost_scene/blur_mirror/image_blur_mirror_effect.cpp | daimaren/TikTok | 786437b8a05e84dead1bd54ba718edd68f893635 | [
"MIT"
] | 11 | 2020-07-04T03:03:18.000Z | 2022-03-17T10:19:19.000Z | //
// blur_mirror_effect.cpp
// video_player
//
// Created by apple on 16/10/1.
// Copyright © 2016年 xiaokai.zhan. All rights reserved.
//
#include "image_blur_mirror_effect.h"
#define LOG_TAG "ImageBlurMirrorEffect"
ImageBlurMirrorEffect::ImageBlurMirrorEffect(){
mVertexShader = VERTEX_SHADER_FILTER;
mF... | 31.464052 | 138 | 0.641878 | daimaren |
a19f31700ba3ce48e8f7e139dc6fdf8a5d925b47 | 244 | cpp | C++ | control-flow/return.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | 2 | 2019-04-11T16:41:42.000Z | 2019-11-19T22:07:57.000Z | control-flow/return.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | control-flow/return.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int function1(int a){
return a + 1;
return a+2;
cout<<"hello";
}
int main(){
int result;
result = function1(7);
cout<<result<<endl;
return 0;
}
| 11.619048 | 26 | 0.516393 | punithpatil |
a1a00897d33cfa47697e81732c55e3664e759de8 | 2,269 | cc | C++ | paddle/phi/kernels/sparse/activation_kernel.cc | douch/Paddle | 81c40722869935d6e897f4b1aeb6e6f67606188a | [
"Apache-2.0"
] | 1 | 2021-12-27T02:40:41.000Z | 2021-12-27T02:40:41.000Z | paddle/phi/kernels/sparse/activation_kernel.cc | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | 1 | 2022-01-28T07:23:22.000Z | 2022-01-28T07:23:22.000Z | paddle/phi/kernels/sparse/activation_kernel.cc | LiYuRio/Paddle | dbd6e2df9d074973b7ee177e2d6b96ed2318008e | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 33.865672 | 72 | 0.666814 | douch |
a1a05d13cb589d78a1a077645873a3b35f369c56 | 2,680 | hpp | C++ | include/ghex/device/cuda/runtime.hpp | GridTools/GHEX | 1adce924c02cf0553d2ceed69f7dc37e39c7013d | [
"BSD-3-Clause"
] | 9 | 2020-01-30T08:12:40.000Z | 2022-01-17T11:18:07.000Z | include/ghex/device/cuda/runtime.hpp | ghex-org/GHEX | 6eb91410d5c01d36a70f0eb106c1f065df3cee9f | [
"BSD-3-Clause"
] | 50 | 2019-12-19T13:25:56.000Z | 2021-09-16T13:57:36.000Z | include/ghex/device/cuda/runtime.hpp | ghex-org/GHEX | 6eb91410d5c01d36a70f0eb106c1f065df3cee9f | [
"BSD-3-Clause"
] | 10 | 2019-12-10T15:31:36.000Z | 2021-07-04T19:31:28.000Z | /*
* GridTools
*
* Copyright (c) 2014-2021, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#pragma once
#ifdef __HIP_PLATFORM_HCC__
#include <hip/hip_runtime.h>
#include <ghex/device/cuda/undef_cuda_macros.hpp>
/* G... | 35.263158 | 68 | 0.873507 | GridTools |
a1a161930ab97e58a54ad1f09a7f427a03e1c6fb | 392 | cpp | C++ | cpp/541-550/Output Contest Matches.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/541-550/Output Contest Matches.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/541-550/Output Contest Matches.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | class Solution {
public:
string findContestMatch(int n) {
vector<string> m(n);
for (int i = 0; i < n; i++) {
m[i] = to_string(i + 1);
}
while (n > 1) {
for (int i = 0; i < n / 2; i++) {
m[i] = "(" + m[i] + "," + m[n - 1 - i] + ")";
... | 20.631579 | 61 | 0.306122 | KaiyuWei |
a1a1e7c0aab8bd2c65f33f1d8d6e581472223f44 | 951 | cpp | C++ | DSA/Building a linked list.cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | DSA/Building a linked list.cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | DSA/Building a linked list.cpp | lixk28/Assignment | 1128d041a111063be0dba1699ebcf4aa8a74e49c | [
"MIT"
] | null | null | null | #include <iostream>
#define JUST_CHECK
using namespace std;
typedef string T;
struct Node
{
//data members
T data;
Node *next;
//constructors
Node() { next = NULL;};
Node(T item, Node *add_on = NULL)
{
data = item;
next = add_on;
};
};
Node *foo()
... | 16.684211 | 49 | 0.477392 | lixk28 |
a1a2c0ae4c87d618f814a7e0686b4723833b7e36 | 2,243 | cpp | C++ | src/zorbatypes/rchandle.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 94 | 2015-01-18T09:40:36.000Z | 2022-03-02T21:14:55.000Z | src/zorbatypes/rchandle.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 72 | 2015-01-05T22:00:31.000Z | 2021-07-17T11:35:03.000Z | src/zorbatypes/rchandle.cpp | jsoniq/jsoniq | f7af29417f809d64d1f0b2622d880bc4d87f2e42 | [
"Apache-2.0"
] | 27 | 2015-01-18T20:20:54.000Z | 2020-11-01T18:01:07.000Z | /*
* Copyright 2006-2008 The FLWOR 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... | 26.081395 | 81 | 0.579581 | jsoniq |
a1a4841562c5a2eb83898c6398460f7fcd04d0d8 | 1,895 | hpp | C++ | include/SSVOpenHexagon/Core/Steam.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 409 | 2015-01-03T00:08:16.000Z | 2021-11-29T05:42:06.000Z | include/SSVOpenHexagon/Core/Steam.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 185 | 2015-01-03T14:52:31.000Z | 2021-11-19T20:58:48.000Z | include/SSVOpenHexagon/Core/Steam.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 74 | 2015-01-12T19:08:54.000Z | 2021-11-22T23:43:59.000Z | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVOpenHexagon/Utils/UniquePtr.hpp"
#include <cstdint>
#include <functional>
#include <optional>
#include <string_view>
#include <string>
nam... | 27.071429 | 79 | 0.727704 | duck-37 |
a1a8aaccf4d35b217c69191cfd81fd9bf9c9c659 | 22,166 | cpp | C++ | src/hotspot/share/gc/cms/cmsCardTable.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/gc/cms/cmsCardTable.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | src/hotspot/share/gc/cms/cmsCardTable.cpp | siweilxy/openjdkstudy | 8597674ec1d6809faf55cbee1f45f4e9149d670d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 47.061571 | 105 | 0.656456 | siweilxy |
a1abc358146106cb6d96b49c93e31e3c15904ba9 | 7,748 | cpp | C++ | dc/src/v20180410/model/DirectConnectTunnelRoute.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | dc/src/v20180410/model/DirectConnectTunnelRoute.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | dc/src/v20180410/model/DirectConnectTunnelRoute.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29.8 | 163 | 0.692953 | suluner |
a1ad6726f38dc872891381e33ce8cac59cf6d3f3 | 2,160 | cpp | C++ | aws-cpp-sdk-accessanalyzer/source/model/KmsKeyConfiguration.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-accessanalyzer/source/model/KmsKeyConfiguration.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-accessanalyzer/source/model/KmsKeyConfiguration.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/accessanalyzer/model/KmsKeyConfiguration.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace ... | 23.736264 | 108 | 0.731944 | perfectrecall |
a1ada5eebf4f4c1f16c54d12c4e5c61dcdee30d0 | 1,351 | cpp | C++ | liblumi/sources/Ray.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/sources/Ray.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/sources/Ray.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* ,, */
/* `7MMF' db `7MM"""Mq. MMP""MM""YMM */
/* MM MM `MM.P' MM `7 ... | 39.735294 | 80 | 0.350111 | Rertsyd |
a1adf3bd15e3a7a05636f556764d6340ad66968c | 13,482 | hh | C++ | Mu2eUtilities/inc/RootTreeSampler.hh | sophiemiddleton/Offline | d0c570158c88b7311e758666ab47fafc828f39b0 | [
"Apache-2.0"
] | null | null | null | Mu2eUtilities/inc/RootTreeSampler.hh | sophiemiddleton/Offline | d0c570158c88b7311e758666ab47fafc828f39b0 | [
"Apache-2.0"
] | 1 | 2019-11-22T14:45:51.000Z | 2019-11-22T14:50:03.000Z | Mu2eUtilities/inc/RootTreeSampler.hh | sophiemiddleton/Offline | d0c570158c88b7311e758666ab47fafc828f39b0 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | // A helper class to randomly sample entries read from a collection of
// ROOT trees. Input ROOT files are read only once, during the
// construction phase, and data are stored in memory. There are two
// template arguments: EventRecord and NtupleRecord. They can be the
// same type (the default), then a single row ... | 35.952 | 118 | 0.564605 | sophiemiddleton |
a1afc12bec8fb6c671eec5e36724fc69d537d493 | 542 | cpp | C++ | MGAME.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | MGAME.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | MGAME.cpp | trehanarsh/Codechef-Solutions | 8bfd91531138a62aebcc2dffce3ad8e6a296db28 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define MOD 1000000007
#define print(A,n) for(ll i=0;i<n;++i)cout<<A[i]<<' ';cout<<endl;
#define take(A,n) for(ll i=0;i<n;++i)cin>>A[i];
// for(auto& it : m)
void fastio(){ios_base::sync_with_stdio(false);cin.tie(NULL);}
int main()
{
fastio();
... | 19.357143 | 65 | 0.527675 | trehanarsh |
a1afe317ef000373ead49bdd060e236b7bfa4882 | 268 | cpp | C++ | 170306/03_proxy/04/main.cpp | yeputons/spring-2017-cpp | f590dcf031be6f2920cae5fc9fe147fcac414d3f | [
"MIT"
] | null | null | null | 170306/03_proxy/04/main.cpp | yeputons/spring-2017-cpp | f590dcf031be6f2920cae5fc9fe147fcac414d3f | [
"MIT"
] | null | null | null | 170306/03_proxy/04/main.cpp | yeputons/spring-2017-cpp | f590dcf031be6f2920cae5fc9fe147fcac414d3f | [
"MIT"
] | null | null | null | #include <iostream>
#include "magic.h"
int main() {
int x = 2, y = 3;
Something a(x, y);
std::cout << x << " " << y << "\n";
Something b(a); // Копировать тоже в целом можно.
// Something b = a;
b = 5;
std::cout << x << " " << y << "\n";
return 0;
}
| 19.142857 | 52 | 0.485075 | yeputons |
a1b2b9558dbdb2c972e59e52058f3e3a183b1b2b | 1,852 | cpp | C++ | Object Oriented Programming Lab/TempateSort.cpp | IamVaibhavsar/Second_Year_Lab_Assignments | dec3a0d4e71bc30820948d40d4e073b1d3e1da98 | [
"MIT"
] | 34 | 2020-02-09T08:42:49.000Z | 2022-03-01T09:04:53.000Z | Object Oriented Programming Lab/TempateSort.cpp | MXNXV/Second_Year_Lab_Assignments | dec3a0d4e71bc30820948d40d4e073b1d3e1da98 | [
"MIT"
] | 1 | 2020-10-16T15:41:43.000Z | 2020-10-16T16:03:50.000Z | Object Oriented Programming Lab/TempateSort.cpp | MXNXV/Second_Year_Lab_Assignments | dec3a0d4e71bc30820948d40d4e073b1d3e1da98 | [
"MIT"
] | 34 | 2020-01-07T08:47:42.000Z | 2022-03-29T16:45:56.000Z | /*
Write a function template selection Sort. Write a program that inputs, sorts and outputs an integer array and a float array.*/
#include<iostream>
using namespace std;
int n;
template<class T>
class mysort
{
private :
T a[20];
public :
void read();
void display();
void sort();
};
template<class T>
void ... | 17.471698 | 126 | 0.566415 | IamVaibhavsar |
a1b33557aac8576ea9835fce819cecdf76ab0cae | 34,003 | hpp | C++ | include/UnityEngine/AndroidJNI.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/AndroidJNI.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/AndroidJNI.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: UnityEngine.jvalue
#include "UnityEngine/jvalue.hpp"
// Completed inc... | 65.897287 | 134 | 0.736141 | darknight1050 |
a1b41462ed607bebe2e6a7508399836c4a4f4103 | 913 | cpp | C++ | sycl-gtx/source/buffer_base.cpp | ShalokShalom/sycl-gtx | ee5091f0c7d513b24acdb200417ec01043d7834a | [
"MIT"
] | 72 | 2015-10-21T14:23:21.000Z | 2022-02-08T08:07:30.000Z | sycl-gtx/source/buffer_base.cpp | ShalokShalom/sycl-gtx | ee5091f0c7d513b24acdb200417ec01043d7834a | [
"MIT"
] | 23 | 2015-04-19T08:49:53.000Z | 2021-06-25T13:36:43.000Z | sycl-gtx/source/buffer_base.cpp | ShalokShalom/sycl-gtx | ee5091f0c7d513b24acdb200417ec01043d7834a | [
"MIT"
] | 14 | 2015-02-09T15:09:34.000Z | 2021-03-12T01:04:31.000Z | #include "SYCL/buffer_base.h"
#include "SYCL/queue.h"
using namespace cl::sycl;
using namespace detail;
::cl_int buffer_base::cl_enqueue_buffer(
queue* q, ::size_t size, void* host_ptr,
const vector_class<cl_event>& wait_events, cl_event& evnt,
clEnqueueBuffer_f clEnqueueBuffer) {
auto num_events_to_wa... | 33.814815 | 73 | 0.638554 | ShalokShalom |
a1b651f13299bddcad47a84b23b7ef1e5c2a3f46 | 3,006 | cpp | C++ | calc.cpp | ShotaIuchi/InfiniteCalculator | 70f40f50b2bb7265cfe8fdb2532796f978b61c7d | [
"MIT"
] | null | null | null | calc.cpp | ShotaIuchi/InfiniteCalculator | 70f40f50b2bb7265cfe8fdb2532796f978b61c7d | [
"MIT"
] | null | null | null | calc.cpp | ShotaIuchi/InfiniteCalculator | 70f40f50b2bb7265cfe8fdb2532796f978b61c7d | [
"MIT"
] | null | null | null | #include "util.hpp"
#include "calc.hpp"
#include <iostream>
namespace ic {
std::string calcAddition(std::vector<std::string>& argValue)
{
std::vector<std::vector<int>> value;
for (const std::string v : argValue) {
value.push_back(str2vec(rstring(v)));
}
std::vector<int> anser;
int moveUp =... | 24.241935 | 78 | 0.482369 | ShotaIuchi |
a1b6fa7e08eb99f9d698a63f7d3e5f136e453dce | 22,803 | cpp | C++ | Cpp/acc bridge.cpp | alexfordc/Au | 9253f0716fca6aa93d0acc61d45df911bdfb0fe9 | [
"MIT"
] | 1 | 2020-04-17T12:25:07.000Z | 2020-04-17T12:25:07.000Z | Cpp/acc bridge.cpp | alexfordc/Au | 9253f0716fca6aa93d0acc61d45df911bdfb0fe9 | [
"MIT"
] | null | null | null | Cpp/acc bridge.cpp | alexfordc/Au | 9253f0716fca6aa93d0acc61d45df911bdfb0fe9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "cpp.h"
#include "acc.h"
HRESULT AccFind(AccFindCallback& callback, HWND w, Cpp_Acc* aParent, const Cpp_AccParams& ap, eAF2 flags2, out BSTR& errStr);
HRESULT AccFromPoint(POINT p, int flags, int specWnd, out Cpp_Acc& aResult);
HRESULT AccNavigate(Cpp_Acc aFrom, STR navig, out Cpp_Acc& aRe... | 34.445619 | 184 | 0.710784 | alexfordc |
a1bbcdb67eb60c99e1b459019c6796eb7c9079c4 | 1,026 | hpp | C++ | samples/WindowsVulkan/gli/sampler.hpp | dnikolaidis2/optick | 9c692bca0d542c768eb02db8f81f44d57f626e55 | [
"MIT"
] | 1,711 | 2019-04-15T16:39:00.000Z | 2022-03-31T22:06:38.000Z | samples/WindowsVulkan/gli/sampler.hpp | dnikolaidis2/optick | 9c692bca0d542c768eb02db8f81f44d57f626e55 | [
"MIT"
] | 113 | 2019-12-14T04:28:04.000Z | 2021-09-26T18:40:27.000Z | samples/WindowsVulkan/gli/sampler.hpp | dnikolaidis2/optick | 9c692bca0d542c768eb02db8f81f44d57f626e55 | [
"MIT"
] | 172 | 2019-04-23T05:08:55.000Z | 2022-03-31T17:30:35.000Z | /// @brief Include to use wrap modes and the sampler base class.
/// @file gli/sampler.hpp
#pragma once
#include "core/filter.hpp"
namespace gli
{
/// Texture coordinate wrapping mode
enum wrap
{
WRAP_CLAMP_TO_EDGE, WRAP_FIRST = WRAP_CLAMP_TO_EDGE,
WRAP_CLAMP_TO_BORDER,
WRAP_REPEAT,
WRAP_MIRROR_REPEAT,
... | 20.117647 | 81 | 0.736842 | dnikolaidis2 |
a1bd8ab1dd1325d2463e238f4adaf256adb75913 | 41,525 | cc | C++ | tensorflow/core/kernels/sdca_ops.cc | topsun888/tensorflow | bad7c50b9dc9789ad7dd0a62daca40b7269841ed | [
"Apache-2.0"
] | 2 | 2019-07-05T15:17:01.000Z | 2020-04-16T07:25:56.000Z | tensorflow/core/kernels/sdca_ops.cc | topsun888/tensorflow | bad7c50b9dc9789ad7dd0a62daca40b7269841ed | [
"Apache-2.0"
] | 1 | 2021-04-12T03:51:59.000Z | 2021-04-12T03:51:59.000Z | tensorflow/core/kernels/sdca_ops.cc | topsun888/tensorflow | bad7c50b9dc9789ad7dd0a62daca40b7269841ed | [
"Apache-2.0"
] | 5 | 2018-02-27T00:34:23.000Z | 2022-02-28T16:38:08.000Z | /* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 40.710784 | 80 | 0.684359 | topsun888 |
a1bec3d4f239995a579afb417f9b2fe91b778649 | 3,385 | cpp | C++ | src/Native/libcryptonight/xmrig/Mem_unix.cpp | lurchinms/miningcore-2 | 1ab7d1ce1b3dd3c28e35348e0b701fd5b5e264b1 | [
"MIT"
] | 28 | 2018-05-24T06:35:38.000Z | 2021-11-29T17:18:32.000Z | src/Native/libcryptonight/xmrig/Mem_unix.cpp | lurchinms/miningcore-2 | 1ab7d1ce1b3dd3c28e35348e0b701fd5b5e264b1 | [
"MIT"
] | 19 | 2019-03-30T23:23:02.000Z | 2021-12-19T09:12:00.000Z | src/Native/libcryptonight/xmrig/Mem_unix.cpp | lurchinms/miningcore-2 | 1ab7d1ce1b3dd3c28e35348e0b701fd5b5e264b1 | [
"MIT"
] | 37 | 2021-03-19T02:56:14.000Z | 2022-03-19T16:42:51.000Z | /* XMRig
* Copyright 2010 Jeff Garzik <jgarzik@pobox.com>
* Copyright 2012-2014 pooler <pooler@litecoinpool.org>
* Copyright 2014 Lucas Jones <https://github.com/lucasjones>
* Copyright 2014-2016 Wolf9466 <https://github.com/OhGodAPet>
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
* C... | 29.692982 | 160 | 0.675923 | lurchinms |
a1c007235c0d50e8f8f47ee48bac963fe11a28b7 | 5,054 | cpp | C++ | MLP.cpp | LiliamPumpernickel/DAMIS | 51369f27ad907b21548bccd6ad184e2e2858e707 | [
"Apache-2.0"
] | 1 | 2018-05-13T11:42:44.000Z | 2018-05-13T11:42:44.000Z | MLP.cpp | LiliamPumpernickel/DAMIS | 51369f27ad907b21548bccd6ad184e2e2858e707 | [
"Apache-2.0"
] | null | null | null | MLP.cpp | LiliamPumpernickel/DAMIS | 51369f27ad907b21548bccd6ad184e2e2858e707 | [
"Apache-2.0"
] | 1 | 2018-05-01T16:53:27.000Z | 2018-05-01T16:53:27.000Z | #include "MLP.h"
MLP::MLP()
{
//ctor
}
MLP::MLP(int h1pNo, int h2pNo, double qtty, int maxIter, bool validationMethod)
{
//no of neurons in hidden layer
HiddenNeuronNo1 = h1pNo;
HiddenNeuronNo2 = h2pNo;
// param = qtty;
// this->dL = dL; //learning
// this->dT = dT; //testing
// this->decay... | 32.606452 | 231 | 0.688959 | LiliamPumpernickel |
a1c302d58f1e3dc8a35f60aed12a52fac38b7b90 | 26,438 | cpp | C++ | MovementSimulation.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | MovementSimulation.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | MovementSimulation.cpp | Cloudfare/123123123123123 | 879954a3f628f2173ab221070e1d9bf119304ff7 | [
"Apache-2.0"
] | null | null | null | #include "sdk.h"
#include "MovementSimulation.h"
#include "Math.h"
/*
RebuildGameMovement::RebuildGameMovement(void)
{
}
void RebuildGameMovement::SetAbsOrigin(CBaseEntity *player, const Vector &vec)
{
if (player &&
player->GetMoveType() == MOVETYPE_WALK)
{
trace_t pm;
TracePlayerBBox(vec, vec,... | 33.982005 | 214 | 0.656858 | Cloudfare |
a1c5bac75a004b2e082a00463bb0ccdd41ecd65c | 3,960 | hpp | C++ | external/ipopt/include/coin/IpTimedTask.hpp | l03ie/Gernby | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 9 | 2020-07-09T06:40:31.000Z | 2022-03-28T02:50:21.000Z | external/ipopt/include/coin/IpTimedTask.hpp | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 1 | 2021-07-27T01:42:57.000Z | 2021-07-27T06:40:48.000Z | external/ipopt/include/coin/IpTimedTask.hpp | iambluefred/Test_9 | dabe9d71ab1f7ee4fc4118ccce9b331ebcd801ca | [
"MIT"
] | 5 | 2020-12-01T01:41:12.000Z | 2022-01-04T01:21:49.000Z | // Copyright (C) 2006, 2009 International Business Machines and others.
// All Rights Reserved.
// This code is published under the Eclipse Public License.
//
// $Id: IpTimedTask.hpp 1861 2010-12-21 21:34:47Z andreasw $
//
// Authors: Andreas Waechter IBM 2005-09-19
#ifndef __IPTIMEDTASK_HPP__
#defin... | 26.938776 | 72 | 0.630303 | l03ie |
a1c725e6fdfc791187e2375ae5dc2ce3a306b5fe | 2,083 | cpp | C++ | searchlib/src/tests/predicate/predicate_zero_constraint_posting_list_test.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,054 | 2017-08-11T07:58:38.000Z | 2022-03-31T22:32:15.000Z | searchlib/src/tests/predicate/predicate_zero_constraint_posting_list_test.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 4,854 | 2017-08-10T20:19:25.000Z | 2022-03-31T19:04:23.000Z | searchlib/src/tests/predicate/predicate_zero_constraint_posting_list_test.cpp | Anlon-Burke/vespa | 5ecd989b36cc61716bf68f032a3482bf01fab726 | [
"Apache-2.0"
] | 541 | 2017-08-10T18:51:18.000Z | 2022-03-11T03:18:56.000Z | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
// Unit tests for predicate_zero_constraint_posting_list.
#include <vespa/searchlib/predicate/predicate_zero_constraint_posting_list.h>
#include <vespa/searchlib/predicate/predicate_index.h>
#include <vespa/vespal... | 35.305085 | 104 | 0.755641 | Anlon-Burke |
a1c74c0c48a4c478401781eb043607d9de0b0429 | 35,320 | cpp | C++ | Util/llvm/lib/CodeGen/MachineVerifier.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 5 | 2020-06-30T05:06:40.000Z | 2021-05-24T08:38:33.000Z | Util/llvm/lib/CodeGen/MachineVerifier.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | null | null | null | Util/llvm/lib/CodeGen/MachineVerifier.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 2 | 2015-10-01T18:28:20.000Z | 2020-09-09T16:25:27.000Z | //===-- MachineVerifier.cpp - Machine Code Verifier -------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 35.461847 | 80 | 0.616053 | ianloic |
a1c7c09b5db43741d7d221ec20b182b8b5c038a3 | 6,415 | hpp | C++ | gtsam/gtsam/gpstk/VectorOperators.hpp | mfkiwl/RobustGNSS | f7774af62eb6eaf2198b5a7ca6f2a63dc87a4f7f | [
"MIT"
] | 105 | 2017-12-02T14:39:49.000Z | 2022-02-19T18:20:25.000Z | trunk/gtsam/gpstk/VectorOperators.hpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 5 | 2018-09-04T15:15:59.000Z | 2020-09-08T08:51:02.000Z | trunk/gtsam/gpstk/VectorOperators.hpp | shaolinbit/PPP-BayesTree | 6f469775277a1a33447bf4c19603c796c2c63c75 | [
"MIT"
] | 31 | 2018-01-10T03:21:28.000Z | 2021-08-06T06:18:35.000Z | #pragma ident "$Id$"
/**
* @file VectorOperators.hpp
* Vector operators, including arithmetic, trig, cross, RMS, etc
*/
#ifndef GPSTK_VECTOR_OPERATORS_HPP
#define GPSTK_VECTOR_OPERATORS_HPP
//============================================================================
//
// This file is part of GPSTk, the GPS ... | 33.763158 | 82 | 0.641933 | mfkiwl |
a1c8ead8f7c1a7ec35d48c8b44b77e986101301d | 238 | cpp | C++ | CodeChef/Easy/E0025.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | CodeChef/Easy/E0025.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | CodeChef/Easy/E0025.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | // Problem Code: NUMGAME2
#include <iostream>
using namespace std;
string winner(int N){
return ((N-1) % 4) ? "BOB" : "ALICE";
}
int main()
{
int T, N;
cin >> T;
while(T--){
cin >> N;
cout << winner(N) << endl;
}
return 0;
} | 11.9 | 38 | 0.554622 | Mohammed-Shoaib |
a1c977f34434f0413fcd833b815ce2892fc7a492 | 8,483 | hxx | C++ | Common/OpenCL/Filters/itkGPUShrinkImageFilter.hxx | squll1peter/elastix | e58c831a91df6233605f96ad060119439756ca90 | [
"Apache-2.0"
] | 1 | 2020-11-12T12:17:02.000Z | 2020-11-12T12:17:02.000Z | Common/OpenCL/Filters/itkGPUShrinkImageFilter.hxx | squll1peter/elastix | e58c831a91df6233605f96ad060119439756ca90 | [
"Apache-2.0"
] | null | null | null | Common/OpenCL/Filters/itkGPUShrinkImageFilter.hxx | squll1peter/elastix | e58c831a91df6233605f96ad060119439756ca90 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* 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
*
* h... | 36.564655 | 107 | 0.688789 | squll1peter |
a1c9f2968f8753cf27b57506628b1574cfde4c93 | 709 | cpp | C++ | src/TransportProtocol.cpp | daank94/simpleNW | b5c7d0d999b1b42bf0f45ad28629d6ce29e1c6c8 | [
"MIT"
] | 2 | 2015-09-16T23:20:50.000Z | 2017-09-04T09:06:17.000Z | src/TransportProtocol.cpp | daank94/simpleNW | b5c7d0d999b1b42bf0f45ad28629d6ce29e1c6c8 | [
"MIT"
] | null | null | null | src/TransportProtocol.cpp | daank94/simpleNW | b5c7d0d999b1b42bf0f45ad28629d6ce29e1c6c8 | [
"MIT"
] | 1 | 2021-04-11T10:27:51.000Z | 2021-04-11T10:27:51.000Z |
#include <TransportProtocol.hpp>
TransportProtocol::TransportProtocol(transpprtcl protocol) {
this->protocol_ = protocol;
}
namespace IPV4 {
TransportProtocol DEFAULT() {
return TransportProtocol(TransportProtocol::ipv4_default);
}
TransportProtocol TCP() {
return TransportProtocol(TransportProtocol::ipv4_t... | 20.257143 | 60 | 0.777151 | daank94 |
a1cad843f162fc0cd3330d4eaf8b1c5813cdef64 | 249 | cpp | C++ | Dataset/Leetcode/train/121/233.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/121/233.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/121/233.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(vector<int>& prices) {
int minn = 9999;
int ans = 0;
for(int x : prices){
minn = min(minn , x);
ans = max(ans , x - minn);
}
return ans;
}
};
| 17.785714 | 38 | 0.425703 | kkcookies99 |
a1d195e24459bad67eb369b8c6f7609f19a6c484 | 6,832 | cpp | C++ | Modules/Graphics/Core/Sources/Methane/Graphics/RenderContextBase.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | Modules/Graphics/Core/Sources/Methane/Graphics/RenderContextBase.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | Modules/Graphics/Core/Sources/Methane/Graphics/RenderContextBase.cpp | navono/MethaneKit | 5cf55dcbbc23392f5c06b178570c7c32b6368ca7 | [
"Apache-2.0"
] | null | null | null | /******************************************************************************
Copyright 2019-2020 Evgeny Gorodetskiy
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/lic... | 28.705882 | 144 | 0.71692 | navono |
a1d1f1449ae01bb17e1b40601bfa38220798e9d4 | 42,450 | cpp | C++ | src/lib/foundations/finite_fields/finite_field.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/finite_fields/finite_field.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/finite_fields/finite_field.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // finite_field.cpp
//
// Anton Betten
//
// started: October 23, 2002
#include "foundations.h"
using namespace std;
namespace orbiter {
namespace foundations {
int nb_calls_to_finite_field_init = 0;
finite_field::finite_field()
{
f_has_table = FALSE;
T = NULL;
Iwo = NULL;
//std::string symbol_for_print... | 21.504559 | 115 | 0.607044 | abetten |
a1d2c612df1c9b6816ddfd50b6c2c9e8113b9147 | 10,991 | cpp | C++ | BT_engine/BT_CPP_engine.cpp | barbalberto/YARP-BT-modules | 5e89e381f6d39bc8561b372dbf3969660cf876c5 | [
"BSD-3-Clause"
] | null | null | null | BT_engine/BT_CPP_engine.cpp | barbalberto/YARP-BT-modules | 5e89e381f6d39bc8561b372dbf3969660cf876c5 | [
"BSD-3-Clause"
] | null | null | null | BT_engine/BT_CPP_engine.cpp | barbalberto/YARP-BT-modules | 5e89e381f6d39bc8561b372dbf3969660cf876c5 | [
"BSD-3-Clause"
] | null | null | null |
#include <yarp/os/Network.h>
#include <yarp/os/LogStream.h>
#include <yarp/os/RFModule.h>
#include <yarp/os/YarpPlugin.h>
#include <behaviortree_cpp/bt_factory.h>
#include <BT_CPP_leaves/btCpp_common.h>
#include <behaviortree_cpp/blackboard.h>
// For Groot monitor
#include <behaviortree_cpp/loggers/bt_cout_logge... | 32.614243 | 167 | 0.527614 | barbalberto |
a1d62a722a174170bff62562200a1f3529ec7009 | 6,598 | hh | C++ | elements/ethernet/arpquerier.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 1 | 2021-05-06T07:28:08.000Z | 2021-05-06T07:28:08.000Z | elements/ethernet/arpquerier.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | elements/ethernet/arpquerier.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | null | null | null | #ifndef CLICK_ARPQUERIER_HH
#define CLICK_ARPQUERIER_HH
#include <click/batchelement.hh>
#include <click/etheraddress.hh>
#include <click/ipaddress.hh>
#include <click/sync.hh>
#include <click/hashtablemp.hh>
#include <click/timer.hh>
#include "arptable.hh"
CLICK_DECLS
/*
=c
ARPQuerier(IP, ETH, I<keywords>)
ARPQuerie... | 27.839662 | 91 | 0.745681 | BorisPis |
a1d639aaf0f4b2c671b4d73c98a8acb9c14f3236 | 773 | cpp | C++ | compiler/extensions/cpp/runtime/src/zserio/BitPositionUtil.cpp | PeachOS/zserio | ea01f6906c125a6baab7e8ed865eeb08cd46c37c | [
"BSD-3-Clause"
] | 2 | 2019-02-06T17:50:24.000Z | 2019-11-20T16:51:34.000Z | compiler/extensions/cpp/runtime/src/zserio/BitPositionUtil.cpp | PeachOS/zserio | ea01f6906c125a6baab7e8ed865eeb08cd46c37c | [
"BSD-3-Clause"
] | 1 | 2019-11-25T16:25:51.000Z | 2019-11-25T18:09:39.000Z | compiler/extensions/cpp/runtime/src/zserio/BitPositionUtil.cpp | PeachOS/zserio | ea01f6906c125a6baab7e8ed865eeb08cd46c37c | [
"BSD-3-Clause"
] | null | null | null | #include "CppRuntimeException.h"
#include "StringConvertUtil.h"
#include "BitPositionUtil.h"
namespace zserio
{
size_t alignTo(size_t alignmentValue, size_t bitPosition)
{
return (bitPosition > 0 && alignmentValue != 0)
? (((bitPosition - 1) / alignmentValue) + 1) * alignmentValue
: bitPos... | 23.424242 | 105 | 0.683053 | PeachOS |
a1d9851f9e8ab670dbe04736a8463c1c855e2d3f | 31,548 | cpp | C++ | CastingEssentials/Modules/HUDHacking.cpp | SirBlockles/CastingEssentials | b61a2b6f30e94246173300bf695e7490a07b0c1e | [
"BSD-2-Clause"
] | 8 | 2020-04-18T17:28:14.000Z | 2022-02-09T22:57:57.000Z | CastingEssentials/Modules/HUDHacking.cpp | SirBlockles/CastingEssentials | b61a2b6f30e94246173300bf695e7490a07b0c1e | [
"BSD-2-Clause"
] | 3 | 2019-08-23T09:40:03.000Z | 2022-01-02T17:50:13.000Z | CastingEssentials/Modules/HUDHacking.cpp | SirBlockles/CastingEssentials | b61a2b6f30e94246173300bf695e7490a07b0c1e | [
"BSD-2-Clause"
] | 2 | 2019-08-23T05:46:46.000Z | 2021-03-25T05:07:15.000Z | #include "HUDHacking.h"
#include "Modules/ItemSchema.h"
#include "PluginBase/Entities.h"
#include "PluginBase/EntityOffsetIterator.h"
#include "PluginBase/Interfaces.h"
#include "PluginBase/Player.h"
#include "PluginBase/TFDefinitions.h"
#include <client/c_basecombatweapon.h>
#include <client/game_controls/baseviewp... | 38.286408 | 211 | 0.752948 | SirBlockles |
a1d9fcb5372b823468ec0b3629a2d63cc33972eb | 5,273 | cpp | C++ | Util/llvm/tools/clang/test/SemaTemplate/current-instantiation.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 5 | 2020-06-30T05:06:40.000Z | 2021-05-24T08:38:33.000Z | Util/llvm/tools/clang/test/SemaTemplate/current-instantiation.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | null | null | null | Util/llvm/tools/clang/test/SemaTemplate/current-instantiation.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 2 | 2015-10-01T18:28:20.000Z | 2020-09-09T16:25:27.000Z | // RUN: clang-cc -fsyntax-only -verify %s
// This test concerns the identity of dependent types within the
// canonical type system, specifically focusing on the difference
// between members of the current instantiation and membmers of an
// unknown specialization. This considers C++ [temp.type], which
// specifies t... | 36.365517 | 122 | 0.633795 | ianloic |
a1e081b24528e787a94296db721d0f2c9f7b6cd2 | 2,392 | cc | C++ | third_party/skia_m84/third_party/externals/harfbuzz/src/hb-ot-meta.cc | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | third_party/skia_m84/third_party/externals/harfbuzz/src/hb-ot-meta.cc | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | third_party/skia_m84/third_party/externals/harfbuzz/src/hb-ot-meta.cc | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | /*
* Copyright © 2019 Ebrahim Byagowi
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above c... | 30.666667 | 85 | 0.721572 | kniefliu |
a1e19ea439ce2ef2af0c1f016a0b003d33b99ae9 | 1,856 | cp | C++ | 11926.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | 11926.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | 11926.cp | JazzikPeng/UVa_Algorithm_CPP | 5de29ebc44ae8dd94b767fd5815309e5eaa7c8bf | [
"MIT"
] | null | null | null | //Zhejian Peng
#include <cstdio>
#include <bitset>
#include <iostream>
using namespace std;
bitset<2000005> bs;
/*The class template bitset represents a fixed-size sequence of N bits. Bitsets can be manipulated by standard logic operators and converted to and from strings and integers.
*/
int main() {
int n, m, s... | 24.746667 | 174 | 0.320043 | JazzikPeng |
a1e1e917fd48d77d4ffc47f04c1474e4d094a30d | 2,563 | hpp | C++ | occ_pass_through.hpp | openbmc/openpower-occ-control | f3a4a69f7ff8f42095f46226b5420f5f4b5cd3d8 | [
"Apache-2.0"
] | 3 | 2017-12-01T19:36:13.000Z | 2020-04-22T17:21:10.000Z | occ_pass_through.hpp | openbmc/openpower-occ-control | f3a4a69f7ff8f42095f46226b5420f5f4b5cd3d8 | [
"Apache-2.0"
] | null | null | null | occ_pass_through.hpp | openbmc/openpower-occ-control | f3a4a69f7ff8f42095f46226b5420f5f4b5cd3d8 | [
"Apache-2.0"
] | 6 | 2017-10-30T02:20:36.000Z | 2021-09-27T12:58:11.000Z | #pragma once
#include "occ_command.hpp"
#include "utils.hpp"
#include <fmt/core.h>
#include <org/open_power/OCC/PassThrough/server.hpp>
#include <phosphor-logging/log.hpp>
#include <sdbusplus/bus.hpp>
#include <sdbusplus/server/object.hpp>
#include <string>
namespace open_power
{
namespace occ
{
using Iface = sdb... | 27.265957 | 79 | 0.662505 | openbmc |
a1e20e895afafb332de7396bae57b9386878a71d | 5,358 | cpp | C++ | SamplePhysics/RoughPlaneSolidBox/PhysicsModule.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 3 | 2021-08-02T04:03:03.000Z | 2022-01-04T07:31:20.000Z | SamplePhysics/RoughPlaneSolidBox/PhysicsModule.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | null | null | null | SamplePhysics/RoughPlaneSolidBox/PhysicsModule.cpp | wjezxujian/WildMagic4 | 249a17f8c447cf57c6283408e01009039810206a | [
"BSL-1.0"
] | 5 | 2019-10-13T02:44:19.000Z | 2021-08-02T04:03:10.000Z | // Geometric Tools, Inc.
// http://www.geometrictools.com
// Copyright (c) 1998-2006. All Rights Reserved
//
// The Wild Magic Version 4 Restricted Libraries source code is supplied
// under the terms of the license agreement
// http://www.geometrictools.com/License/Wm4RestrictedLicense.pdf
// and may not be copie... | 30.271186 | 78 | 0.571669 | wjezxujian |
a1e305bcceccc83ccea3f39a11d878268ec6f531 | 10,848 | cpp | C++ | libs/system/src/CTimeLogger.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | 2 | 2019-02-20T02:36:05.000Z | 2019-02-20T02:46:51.000Z | libs/system/src/CTimeLogger.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | null | null | null | libs/system/src/CTimeLogger.cpp | skair39/mrpt | 88238f8ac1abdcf15401e14dc3a9faa5c59ba559 | [
"BSD-3-Clause"
] | null | null | null | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 26.394161 | 80 | 0.637168 | skair39 |
a1e3bdf14dc8ab373ef3d30ad9ae44ee5cc9edca | 7,168 | cc | C++ | ns-3-dev/src/mesh/model/dot11s/peer-link-frame.cc | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | 11 | 2015-11-24T11:07:28.000Z | 2021-12-23T04:10:29.000Z | ns-3-dev/src/mesh/model/dot11s/peer-link-frame.cc | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | null | null | null | ns-3-dev/src/mesh/model/dot11s/peer-link-frame.cc | maxvonhippel/snake | 0805773dc34e1480dffaae40174aa1f82d1c6ce8 | [
"BSD-3-Clause"
] | 6 | 2016-03-01T06:32:21.000Z | 2022-03-24T19:31:41.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 IITP RAS
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distribu... | 30.244726 | 120 | 0.665597 | maxvonhippel |
a1e3fa49c2eb328c10fc1fa12f945c8de4dbdf0c | 192 | hpp | C++ | aluminium/hello.hpp | BaseOutside/Aluminium | 0fe735b0acdf4f7494d23210be53e70eb427e6c1 | [
"MIT"
] | 1 | 2019-06-22T09:21:47.000Z | 2019-06-22T09:21:47.000Z | aluminium/hello.hpp | BaseOutside/Aluminium | 0fe735b0acdf4f7494d23210be53e70eb427e6c1 | [
"MIT"
] | null | null | null | aluminium/hello.hpp | BaseOutside/Aluminium | 0fe735b0acdf4f7494d23210be53e70eb427e6c1 | [
"MIT"
] | null | null | null | #ifndef ALUMINIUM_HELLO
#define ALUMINIUM_HELLO
#include <iostream>
namespace aluminium {
void hello() {
std::cout << "Hello World!!!" << std::endl;
}
} // namespace aluminium
#endif
| 12.8 | 47 | 0.682292 | BaseOutside |
a1e592e4d16233845bbe564ead6e5003d63e9891 | 1,458 | cpp | C++ | tpl/acro/packages/utilib/src/libs/logEvent.cpp | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | 3 | 2019-06-10T18:04:14.000Z | 2020-12-05T18:11:40.000Z | tpl/acro/packages/utilib/src/libs/logEvent.cpp | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | null | null | null | tpl/acro/packages/utilib/src/libs/logEvent.cpp | USEPA/Water-Security-Toolkit | 6b6b68e0e1b3dcc8023b453ab48a64f7fd740feb | [
"BSD-3-Clause"
] | 2 | 2020-09-24T19:04:14.000Z | 2020-12-05T18:11:43.000Z | /* _________________________________________________________________________
*
* UTILIB: A utility library for developing portable C++ codes.
* Copyright (c) 2008 Sandia Corporation.
* This software is distributed under the BSD License.
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
... | 27.509434 | 86 | 0.722908 | USEPA |
a1e8a97ef2fde29db8c0eb6d97ba0e98e4d91d9e | 1,695 | cpp | C++ | src/sdk/thread/thread_local_storage.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | 2 | 2021-10-21T12:25:23.000Z | 2021-10-22T00:38:35.000Z | src/sdk/thread/thread_local_storage.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | null | null | null | src/sdk/thread/thread_local_storage.cpp | southbear-club/aru | 24a3b28d9a168c28435e9cb5b5c10a2e404042a8 | [
"MIT"
] | null | null | null | /**
* Copyright © 2021 <wotsen>.
*
* 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, publish,
* ... | 33.9 | 96 | 0.727434 | southbear-club |
a1e8b441b64fdb20f4eb7939ea3abf86db046306 | 987 | cpp | C++ | algorithms/binary-tree-level-order-traversal-ii.cpp | jlygit/leetcode-oj | 66718f709b31ef0e7e091638d95418a5543019b4 | [
"Apache-2.0"
] | 1 | 2016-08-10T11:17:16.000Z | 2016-08-10T11:17:16.000Z | algorithms/binary-tree-level-order-traversal-ii.cpp | jlygit/leetcode-oj | 66718f709b31ef0e7e091638d95418a5543019b4 | [
"Apache-2.0"
] | null | null | null | algorithms/binary-tree-level-order-traversal-ii.cpp | jlygit/leetcode-oj | 66718f709b31ef0e7e091638d95418a5543019b4 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<vector<int>> levelOrderBottom(TreeNode* root) {
vector<vector<int>> ... | 29.909091 | 61 | 0.477204 | jlygit |
a1ea6b6b4d9dd8f97e2dd3ca0e90c044a6778f32 | 606 | cpp | C++ | tests/FileDescriptor_test.cpp | cppstack/unx | b05aa5354458b032073647e9b44fdd96b6884247 | [
"MIT"
] | null | null | null | tests/FileDescriptor_test.cpp | cppstack/unx | b05aa5354458b032073647e9b44fdd96b6884247 | [
"MIT"
] | null | null | null | tests/FileDescriptor_test.cpp | cppstack/unx | b05aa5354458b032073647e9b44fdd96b6884247 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <cst/unx/FileDescriptor.h>
#include <cst/unx/os/unistd.h>
#include <cst/unx/os/fcntl.h>
namespace unx = cst::unx;
TEST_CASE("FileDescriptor", "[FileDescriptor]")
{
const char* path = "tmp.txt";
int fd = -1;
{
unx::FileDescriptor fd1;
... | 19.548387 | 69 | 0.575908 | cppstack |
a1ec63e7c47f3f82fafb19b493512434507f2202 | 655 | hpp | C++ | homework/Dokshina/09/freq_dictionary.hpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 10 | 2017-09-21T15:17:33.000Z | 2021-01-11T13:11:55.000Z | homework/Dokshina/09/freq_dictionary.hpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | null | null | null | homework/Dokshina/09/freq_dictionary.hpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 22 | 2017-09-21T15:45:08.000Z | 2019-02-21T19:15:25.000Z | #ifndef __FREQ_DICTIONARY_HPP
#define __FREQ_DICTIONARY_HPP
#include <fstream>
#include <string>
#include <exception>
#include <unordered_map>
#include <algorithm>
#include <vector>
class FreqDictionary {
typedef std::pair<std::string, size_t> Word;
typedef std::unordered_map <std::string, size_t> MapDictio... | 21.833333 | 78 | 0.741985 | mtrempoltsev |
a1ed38fede52484e6355a42311d9ac9a4dac60c7 | 459 | hxx | C++ | src/mod/pub/lib/gfx-ext/gfx-trail.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | 1 | 2017-12-26T14:29:37.000Z | 2017-12-26T14:29:37.000Z | src/mod/pub/lib/gfx-ext/gfx-trail.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | src/mod/pub/lib/gfx-ext/gfx-trail.hxx | indigoabstract/appplex | 83c3b903db6c6ea83690ccffbd533ff6ab01d246 | [
"MIT"
] | null | null | null | #pragma once
#include "gfx-vxo.hxx"
#include "gfx-surface.hxx"
#include <deque>
class gfx_trail : public gfx_vxo
{
public:
gfx_trail();
virtual ~gfx_trail();
void add_position(glm::vec3 ipos);
float get_line_thickness();
void set_line_thickness(float iline_thickness);
int get_max_positions();
vo... | 18.36 | 50 | 0.723312 | indigoabstract |
a1ed5d409e83a33205dcfee65f5a4926f0789009 | 2,206 | hpp | C++ | include/rosbag2_converter_default_plugins/logging.hpp | klintan/rosbags2_nodejs_wrapper | 65ebe15d242c06efb026c11f3ced35065f80e7d6 | [
"MIT"
] | 1 | 2018-04-12T08:06:00.000Z | 2018-04-12T08:06:00.000Z | include/rosbag2_converter_default_plugins/logging.hpp | klintan/rosbags2_nodejs_wrapper | 65ebe15d242c06efb026c11f3ced35065f80e7d6 | [
"MIT"
] | 1 | 2019-04-09T04:41:39.000Z | 2019-04-09T04:41:39.000Z | include/rosbag2_converter_default_plugins/logging.hpp | klintan/rosbags2_nodejs_wrapper | 65ebe15d242c06efb026c11f3ced35065f80e7d6 | [
"MIT"
] | 1 | 2019-01-02T18:57:04.000Z | 2019-01-02T18:57:04.000Z | // Copyright 2018, Bosch Software Innovations GmbH.
//
// 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 applicabl... | 35.580645 | 75 | 0.774252 | klintan |
a1eee4f56f563c2f4a078985d0c906eddb45e7c3 | 2,158 | hpp | C++ | cxx/include/katherinexx/device.hpp | petrmanek/libkatherine | 0a14fb15f68d26bd55a6370174892d4984b17ef7 | [
"MIT"
] | 2 | 2019-09-17T18:53:20.000Z | 2021-01-27T17:41:27.000Z | cxx/include/katherinexx/device.hpp | petrmanek/libkatherine | 0a14fb15f68d26bd55a6370174892d4984b17ef7 | [
"MIT"
] | null | null | null | cxx/include/katherinexx/device.hpp | petrmanek/libkatherine | 0a14fb15f68d26bd55a6370174892d4984b17ef7 | [
"MIT"
] | 2 | 2018-08-31T06:17:04.000Z | 2021-01-27T17:47:38.000Z | /* Katherine Control Library
*
* This file was created on 28.1.19 by Petr Manek.
*
* Contents of this file are copyrighted and subject to license
* conditions specified in the LICENSE file located in the top
* directory.
*/
#pragma once
#include <string>
#include <katherine/device.h>
#include <katherine/stat... | 19.267857 | 97 | 0.590361 | petrmanek |
a1f086076655267960ddf33e836d2e7816f60f7a | 883 | hpp | C++ | src/UI/ItemEditor.hpp | bradosia/BookFiler-Lib-Sort-Filter-Table-Widget | 6d4b99ed27eb6b43f6ac0495a8adb02bec5c801e | [
"MIT"
] | 2 | 2021-02-25T05:09:29.000Z | 2022-01-12T03:27:26.000Z | src/UI/ItemEditor.hpp | bradosia/BookFiler-Lib-Sort-Filter-Table-Widget | 6d4b99ed27eb6b43f6ac0495a8adb02bec5c801e | [
"MIT"
] | null | null | null | src/UI/ItemEditor.hpp | bradosia/BookFiler-Lib-Sort-Filter-Table-Widget | 6d4b99ed27eb6b43f6ac0495a8adb02bec5c801e | [
"MIT"
] | 1 | 2020-12-11T17:06:44.000Z | 2020-12-11T17:06:44.000Z | /*
* @name BookFiler Library - Sort Filter Table Widget
* @author Branden Lee
* @version 1.00
* @license MIT
* @brief sqlite3 based table widget.
*/
#ifndef BOOKFILER_LIBRARY_SORT_FILTER_TABLE_WIDGET_ITEM_EDITOR_H
#define BOOKFILER_LIBRARY_SORT_FILTER_TABLE_WIDGET_ITEM_EDITOR_H
// config
#include "../core/confi... | 18.395833 | 66 | 0.744054 | bradosia |
a1f270985d5e62cc81223df8116d311463efcbc7 | 4,533 | cpp | C++ | newfs/main.cpp | DosDevs/zoom-zoom | c3c37c4b9b38ba81f55fcd79e6ff07fddbc3a5c5 | [
"BSD-3-Clause"
] | null | null | null | newfs/main.cpp | DosDevs/zoom-zoom | c3c37c4b9b38ba81f55fcd79e6ff07fddbc3a5c5 | [
"BSD-3-Clause"
] | null | null | null | newfs/main.cpp | DosDevs/zoom-zoom | c3c37c4b9b38ba81f55fcd79e6ff07fddbc3a5c5 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Bpb.h"
#include "Fat_12.h"
#include "Octet.h"
#include "Sector.h"
#include "Storage_Device.h"
using std::cout;
using std::endl;
using std::ifstream;
using std::string;
using std::vector;
typedef char* PChar;
... | 22.112195 | 76 | 0.55107 | DosDevs |
a1f2a9b39459b6363baba2f94c126b213e549687 | 1,920 | hpp | C++ | library/src/blas1/rocblas_nrm2_batched.hpp | streamhsa/rocBLAS | effaa52647bfcbc1dc90db2a109e05ea230604d9 | [
"MIT"
] | null | null | null | library/src/blas1/rocblas_nrm2_batched.hpp | streamhsa/rocBLAS | effaa52647bfcbc1dc90db2a109e05ea230604d9 | [
"MIT"
] | 1 | 2019-09-26T01:51:09.000Z | 2019-09-26T18:09:56.000Z | library/src/blas1/rocblas_nrm2_batched.hpp | mahmoodw/rocBLAS | 53b1271e4881ef7473b78e8783e4d55740e9b933 | [
"MIT"
] | null | null | null | /* ************************************************************************
* Copyright 2016-2019 Advanced Micro Devices, Inc.
* ************************************************************************ */
#pragma once
#include "fetch_template.h"
#include "handle.h"
#include "reduction_strided_batched.h"
#include "ro... | 40.851064 | 87 | 0.419792 | streamhsa |
a1f2fa397ab927be82d81d259097041ab0167d50 | 5,809 | hpp | C++ | fmo-cpp/include/fmo/processing.hpp | rozumden/fmo-android | 40fed89df7f1ff5aa3718b9a35f361b399a0bca1 | [
"MIT"
] | null | null | null | fmo-cpp/include/fmo/processing.hpp | rozumden/fmo-android | 40fed89df7f1ff5aa3718b9a35f361b399a0bca1 | [
"MIT"
] | null | null | null | fmo-cpp/include/fmo/processing.hpp | rozumden/fmo-android | 40fed89df7f1ff5aa3718b9a35f361b399a0bca1 | [
"MIT"
] | null | null | null | #ifndef FMO_PROCESSING_HPP
#define FMO_PROCESSING_HPP
#include <fmo/image.hpp>
//#include <opencv2/core.hpp>
#include <iostream>
#include <fmo/algebra.hpp>
namespace cv {
template<typename _Tp> class Point_;
template<typename _Tp, int cn> class Vec;
template<typename _Tp> class Scalar_;
typedef Point... | 37 | 124 | 0.644173 | rozumden |
a1f45f33abbbd14759377981ebdaba3bf6e8e9fd | 532 | cpp | C++ | src/mgos_arduino_newping.cpp | TridentTD/arduino-newping | 67c93ee7432ef2cbba8c08bb2bf3a664000ee02f | [
"Apache-2.0"
] | null | null | null | src/mgos_arduino_newping.cpp | TridentTD/arduino-newping | 67c93ee7432ef2cbba8c08bb2bf3a664000ee02f | [
"Apache-2.0"
] | null | null | null | src/mgos_arduino_newping.cpp | TridentTD/arduino-newping | 67c93ee7432ef2cbba8c08bb2bf3a664000ee02f | [
"Apache-2.0"
] | null | null | null |
#include <math.h>
#include "mgos_arduino_newping.h"
#define MGOS_NEWPING_RES_FAIL -12700
NewPing *mgos_newping_create(uint8_t trigger_pin, uint8_t echo_pin) {
return new NewPing(trigger_pin, echo_pin);
}
void mgos_newping_close(NewPing *newping) {
if (newping != nullptr) {
delete newping;
newping = nul... | 22.166667 | 69 | 0.740602 | TridentTD |
a1f4f723b4ddf6b4180a1d6af456d8aa069b8ae1 | 501 | cpp | C++ | src/pipeline/video/VideoSource.cpp | PlaymodesStudio/ofxPlaymodes2017 | 13ed5a77f75fa4c48f47d4e38ac10a5f085c7b31 | [
"MIT"
] | null | null | null | src/pipeline/video/VideoSource.cpp | PlaymodesStudio/ofxPlaymodes2017 | 13ed5a77f75fa4c48f47d4e38ac10a5f085c7b31 | [
"MIT"
] | 1 | 2019-05-03T11:35:22.000Z | 2019-05-03T23:22:58.000Z | src/pipeline/video/VideoSource.cpp | PlaymodesStudio/ofxPlaymodes2017 | 13ed5a77f75fa4c48f47d4e38ac10a5f085c7b31 | [
"MIT"
] | null | null | null | /*
* VideoSource.cpp
*
* Created on: 09-oct-2008
* Author: arturo castro
*/
#include "VideoSource.h"
namespace ofxPm{
VideoSource::VideoSource() {
//newFrameEvent.init("PlayModes.VideoSource.newFrameEvent");
width=-11;
height=-11;
}
VideoSource::~VideoSource() {
}
void VideoSource::setWidth(int w)
{... | 12.219512 | 61 | 0.654691 | PlaymodesStudio |
a1f52c1a85687881bb76c6348b5eaa6d7245e3a7 | 8,064 | hpp | C++ | s32v234_sdk/tools/emu/apu/src/apu_vbool.hpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/tools/emu/apu/src/apu_vbool.hpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/tools/emu/apu/src/apu_vbool.hpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | 2 | 2021-01-21T02:06:16.000Z | 2021-01-28T10:47:37.000Z | /*****************************************************************************
*
* NXP Confidential Proprietary
*
* Copyright (c) 2013-2016 Freescale Semiconductor
* Copyright 2017-2018 NXP
* All Rights Reserved
*
******************************************************************************
*
* THIS SOFTWA... | 36.654545 | 242 | 0.653026 | intesight |
a1f7a022582f7262aaf30d8e38a14864692fa964 | 26,063 | hpp | C++ | include/UnityEngine/UI/MaskableGraphic.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/UI/MaskableGraphic.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | include/UnityEngine/UI/MaskableGraphic.hpp | marksteward/BeatSaber-Quest-Codegen | a76f063f71cef207a9f048ad7613835f554911a7 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.UI... | 58.306488 | 815 | 0.739976 | marksteward |
a1f9dadd65497ef4407185dabcfdcc07e3df722d | 4,400 | cc | C++ | NS3-master/src/wifi/model/tx-vector-tag.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 1 | 2021-09-20T07:05:25.000Z | 2021-09-20T07:05:25.000Z | NS3-master/src/wifi/model/tx-vector-tag.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | null | null | null | NS3-master/src/wifi/model/tx-vector-tag.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 2 | 2021-09-02T08:25:16.000Z | 2022-01-03T08:48:38.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2005,2006,2007 INRIA
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is d... | 22.222222 | 97 | 0.735909 | legendPerceptor |
a1fa0e213164b63f84744202a52c69a4a8298083 | 1,867 | cc | C++ | src/library/specex_mask.cc | marcelo-alvarez/specex | 809c5540e76dc1681453488732d5845078427ad1 | [
"BSD-3-Clause"
] | null | null | null | src/library/specex_mask.cc | marcelo-alvarez/specex | 809c5540e76dc1681453488732d5845078427ad1 | [
"BSD-3-Clause"
] | null | null | null | src/library/specex_mask.cc | marcelo-alvarez/specex | 809c5540e76dc1681453488732d5845078427ad1 | [
"BSD-3-Clause"
] | null | null | null |
#include <harp.hpp>
#include <specex_mask.h>
#include <specex_psf.h>
#include <specex_image_data.h>
specex::Mask::Mask() {
}
void specex::Mask::SetBArcLampMask() {
cout << "INFO specex::Mask::SetBArcLampMask" << endl;
AddWavelengthInterval(3653,3673); // missing line at lambda ~= 3663 A
AddWavelengthInterval... | 33.945455 | 200 | 0.607392 | marcelo-alvarez |
a1fb7169cfad0587d3cdb2098c32b5d735366aa9 | 165 | cpp | C++ | HideousGameEngine/utests/Shaders/TextShaderTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-09-13T18:18:07.000Z | 2019-09-13T18:18:07.000Z | HideousGameEngine/utests/Shaders/TextShaderTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | null | null | null | HideousGameEngine/utests/Shaders/TextShaderTests.cpp | chunkyguy/hideous-engine | 45a37a262897847613022e9c0d7a797b158a29f2 | [
"MIT"
] | 1 | 2019-11-21T06:32:56.000Z | 2019-11-21T06:32:56.000Z | //
// TextShader.cpp
// HEAssets
//
// Created by Sid on 26/04/13.
// Copyright (c) 2013 whackylabs. All rights reserved.
//
#include <he/Shaders/TextShader.h>
| 16.5 | 55 | 0.660606 | chunkyguy |
b80114e117e3e6b108f5913b94591af45be66534 | 1,472 | cpp | C++ | _src_/Core/Utls.cpp | daldegam/MuClientTools16 | 933d218501c188363096a8f9f73720c61b535d06 | [
"MIT"
] | 16 | 2021-07-15T04:00:38.000Z | 2022-02-27T02:37:23.000Z | _src_/Core/Utls.cpp | daldegam/MuClientTools16 | 933d218501c188363096a8f9f73720c61b535d06 | [
"MIT"
] | 6 | 2021-08-05T05:01:35.000Z | 2021-10-22T02:01:33.000Z | _src_/Core/Utls.cpp | daldegam/MuClientTools16 | 933d218501c188363096a8f9f73720c61b535d06 | [
"MIT"
] | 16 | 2021-07-18T02:40:12.000Z | 2022-02-09T05:25:07.000Z | #include "Utls.h"
//------------------------------------------------------------------------
//--Utls
//------------------------------------------------------------------------
namespace Utls {
void CreateParentDir(fs::path pPath)
{
//fs::path pParent = fs::_Parse_parent_path(pPath.wstring());
//fs::create_direct... | 19.368421 | 74 | 0.5 | daldegam |
b8015fb1faebe6e5ae65408e09fe02a9fb623a80 | 5,072 | cxx | C++ | src/sort_and_index/tree_gen/layout_node.cxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | 1 | 2019-06-17T21:56:31.000Z | 2019-06-17T21:56:31.000Z | src/sort_and_index/tree_gen/layout_node.cxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | src/sort_and_index/tree_gen/layout_node.cxx | Caltech-IPAC/libtinyhtm | abc3394f3d37b3729a625989d2fc144f14a7d208 | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include "../node.hxx"
#include "../tree_gen_context.hxx"
#include "child_info.hxx"
#include "assign_block.hxx"
uint32_t estimate_node_size (const struct mem_node *const node,
const uint32_t nchild);
void layout_node (mem_node *const node, tree_gen_context &ctx)
{
s... | 32.305732 | 78 | 0.438289 | Caltech-IPAC |
b803bc9be03161833dcab05a0ccceeb932e2854f | 301 | cpp | C++ | 1182.cpp | godmoonl/baekjoon | eb2193e5c914caebbbb6ac287ebca5865e7d04ca | [
"MIT"
] | 1 | 2019-05-03T09:55:41.000Z | 2019-05-03T09:55:41.000Z | 1182.cpp | godmoonl/baekjoon | eb2193e5c914caebbbb6ac287ebca5865e7d04ca | [
"MIT"
] | null | null | null | 1182.cpp | godmoonl/baekjoon | eb2193e5c914caebbbb6ac287ebca5865e7d04ca | [
"MIT"
] | null | null | null | #include <cstdio>
int N, S, a[21];
int f(int n, int k,int c) {
if (n == N && k == S && !c)return 1;
if (n == N)return 0;
return f(n+1, k + a[n],0)+f(n+1, k,c?1:0);
}
int main() {
scanf("%d %d", &N, &S);
for (int i = 0; i < N; i++) {
scanf("%d", &a[i]);
}
printf("%d", f(0,0,1));
return 0;
}
| 18.8125 | 43 | 0.448505 | godmoonl |
b809de1338b905e9616cf962db16422adbe81d09 | 2,668 | cpp | C++ | simulator/infra/config/config.cpp | gornik2000/mipt-mips | 355e29434efcc32946634054c501cb26d61dd145 | [
"MIT"
] | 2 | 2020-09-22T13:44:39.000Z | 2021-12-10T07:45:42.000Z | simulator/infra/config/config.cpp | cesarus777/mipt-mips | c940a7644c4ebb72ad2022d77afdbd4d1dcda0f6 | [
"MIT"
] | null | null | null | simulator/infra/config/config.cpp | cesarus777/mipt-mips | c940a7644c4ebb72ad2022d77afdbd4d1dcda0f6 | [
"MIT"
] | null | null | null | /*
* config.cpp - implementation of Config class
* Copyright 2017-2018 MIPT-MIPS
*/
#include "config.h"
#include <popl.hpp>
#include <sstream>
namespace config {
static AliasedSwitch help_option = { "h", "help", "print help"};
// NOLINTNEXTLINE(cppcoreguidelines-avoid-c-arrays, modernize-avoid-c-arrays, hicpp-av... | 35.105263 | 169 | 0.693778 | gornik2000 |
b80ba1ca25904d2c946c36938190109ec2b69178 | 3,350 | hpp | C++ | include/System/Runtime/Remoting/Messaging/CallContext.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Runtime/Remoting/Messaging/CallContext.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Runtime/Remoting/Messaging/CallContext.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/il2cpp-utils-methods.hpp"
#include "extern/b... | 53.174603 | 159 | 0.725075 | darknight1050 |