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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bedf9bf367676509351f56af3d525586bf7520cd | 1,210 | cpp | C++ | src/main.cpp | lukasz-pawlos/ukladV2 | 56d643d339160a891e5168fdaa576bab0a87f8a4 | [
"MIT"
] | null | null | null | src/main.cpp | lukasz-pawlos/ukladV2 | 56d643d339160a891e5168fdaa576bab0a87f8a4 | [
"MIT"
] | null | null | null | src/main.cpp | lukasz-pawlos/ukladV2 | 56d643d339160a891e5168fdaa576bab0a87f8a4 | [
"MIT"
] | null | null | null | #include <iostream>
#include "SWektor.hh"
#include "Macierz.hh"
#include "UkladRownan.hh"
#include "rozmiar.h"
#include "LZespolona.hh"
using namespace std;
int main()
{
char x;
cin >> x;
if (x == 'r') ///DLA DOUBLE
{
UkladRownanLiniowych<double, ROZMIAR> B;
SWektor<double, ROZ... | 20.166667 | 84 | 0.561157 | lukasz-pawlos |
bee1e1e4b5c5800a360b7a72a22951d90ac2ce30 | 4,666 | cpp | C++ | ch16-09-extruded-a/src/Utils.cpp | pulpobot/C-SFML-html5-animation | 14154008b853d1235e8ca35a5b23b6a70366f914 | [
"MIT"
] | 73 | 2017-12-14T00:33:23.000Z | 2022-02-09T12:04:52.000Z | ch17-03-extruded-a-light/src/Utils.cpp | threaderic/C-SFML-html5-animation | 22f302cdf7c7c00247609da30e1bcf472d134583 | [
"MIT"
] | null | null | null | ch17-03-extruded-a-light/src/Utils.cpp | threaderic/C-SFML-html5-animation | 22f302cdf7c7c00247609da30e1bcf472d134583 | [
"MIT"
] | 5 | 2017-12-26T03:30:07.000Z | 2020-07-05T04:58:24.000Z | #include <sstream>
#include <iostream>
#include "Utils.h"
void Utils::Bezier::QuadraticBezierCurve(const sf::Vector2f &p0, sf::Vector2f &p1, sf::Vector2f &p2, int segments,
std::vector<sf::Vector2f> &curvePoints, bool throughControlPoint) {
//If there are any segments requi... | 39.542373 | 114 | 0.536434 | pulpobot |
bee226083cad300103ba217fb6ad1b1e20152853 | 983 | cpp | C++ | tests/whole-program/structreturn.cpp | v8786339/NyuziProcessor | 34854d333d91dbf69cd5625505fb81024ec4f785 | [
"Apache-2.0"
] | 1,388 | 2015-02-05T17:16:17.000Z | 2022-03-31T07:17:08.000Z | tests/whole-program/structreturn.cpp | czvf/NyuziProcessor | 31f74e43a785fa66d244f1e9744ca0ca9b8a1fad | [
"Apache-2.0"
] | 176 | 2015-02-02T02:54:06.000Z | 2022-02-01T06:00:21.000Z | tests/whole-program/structreturn.cpp | czvf/NyuziProcessor | 31f74e43a785fa66d244f1e9744ca0ca9b8a1fad | [
"Apache-2.0"
] | 271 | 2015-02-18T02:19:04.000Z | 2022-03-28T13:30:25.000Z | //
// Copyright 2011-2015 Jeff Bush
//
// 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 ... | 20.914894 | 75 | 0.693795 | v8786339 |
bee3e00eb1fadc197284ad56a53b228d4fe3a61e | 4,061 | cpp | C++ | inetsrv/iis/svcs/cmp/aspcmp/shared/src/instrm.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/iis/svcs/cmp/aspcmp/shared/src/instrm.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/iis/svcs/cmp/aspcmp/shared/src/instrm.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1997 Microsoft Corporation
Module Name :
InStrm.cpp
Abstract:
A lightweight implementation of input streams. This class provides
the interface, as well as a basic skeleton for input streams.
Author:
Neil Allain ( a-neilal ) August-19... | 12.122388 | 70 | 0.534351 | npocmaka |
bee879658e13c9e5d37bbf59ce9afb46702e32d4 | 1,406 | cpp | C++ | src/cube/src/syntax/cubepl/evaluators/nullary/CubeNullaryEvaluation.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/cube/src/syntax/cubepl/evaluators/nullary/CubeNullaryEvaluation.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | null | null | null | src/cube/src/syntax/cubepl/evaluators/nullary/CubeNullaryEvaluation.cpp | OpenCMISS-Dependencies/cube | bb425e6f75ee5dbdf665fa94b241b48deee11505 | [
"Cube"
] | 2 | 2016-09-19T00:16:05.000Z | 2021-03-29T22:06:45.000Z | /****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2016 **
** Fors... | 36.051282 | 77 | 0.396159 | OpenCMISS-Dependencies |
bee973e6c2fd0c9807aab42fd68929f55c1ceaf2 | 6,965 | cxx | C++ | src/writeMerge.cxx | fermi-lat/eventFile | 36bae3f7b949c7eaa77725dc6d7ec919f77b14ee | [
"BSD-3-Clause"
] | null | null | null | src/writeMerge.cxx | fermi-lat/eventFile | 36bae3f7b949c7eaa77725dc6d7ec919f77b14ee | [
"BSD-3-Clause"
] | null | null | null | src/writeMerge.cxx | fermi-lat/eventFile | 36bae3f7b949c7eaa77725dc6d7ec919f77b14ee | [
"BSD-3-Clause"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include <sstream>
#include <stdexcept>
#include <algorithm>
#include "eventFile/LSEReader.h"
#include "eventFile/LSEWriter.h"
#include "eventFile/LSE_Context.h"
#inclu... | 28.900415 | 134 | 0.628141 | fermi-lat |
bef417c20988375bffb50833d1b329e3772f95dd | 26,949 | cpp | C++ | orca/gporca/server/src/unittest/gpopt/base/CStatsEquivClassTest.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 3 | 2017-12-10T16:41:21.000Z | 2020-07-08T12:59:12.000Z | orca/gporca/server/src/unittest/gpopt/base/CStatsEquivClassTest.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | null | null | null | orca/gporca/server/src/unittest/gpopt/base/CStatsEquivClassTest.cpp | vitessedata/gpdb.4.3.99.x | 9462aad5df1bf120a2a87456b1f9574712227da4 | [
"PostgreSQL",
"Apache-2.0"
] | 4 | 2017-12-10T16:41:35.000Z | 2020-11-28T12:20:30.000Z | //---------------------------------------------------------------------------
// Greenplum Database
// Copyright (C) 2012 EMC Corp.
//
// @filename:
// CStatsEquivClassTest.cpp
//
// @doc:
// Test for constraint
//
// @owner:
//
//
// @test:
//
//
//------------------------------------------------------------------... | 30.279775 | 127 | 0.653605 | vitessedata |
befaaa250ca59ec25b0ef40e6f1523895ff98a9f | 2,625 | cpp | C++ | Client/Client.cpp | Vasar007/HW | e441f87dfeb58ab3c7b3120c9972cae5fd8d869d | [
"Apache-2.0"
] | null | null | null | Client/Client.cpp | Vasar007/HW | e441f87dfeb58ab3c7b3120c9972cae5fd8d869d | [
"Apache-2.0"
] | null | null | null | Client/Client.cpp | Vasar007/HW | e441f87dfeb58ab3c7b3120c9972cae5fd8d869d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <thread>
#include "Client.h"
namespace vasily
{
Client::Client(const quint16 serverPort, const std::string& serverIP, QObject* parent)
: QObject(parent),
_serverPort(serverPort),
_socket(std::make_unique<QTcpSocket>(this)),
_serverIP(serverIP)
{
qDebug() << "Se... | 22.435897 | 95 | 0.620952 | Vasar007 |
befdb4dc51f299c04b6b126655aa1748ff502e0f | 629 | cpp | C++ | comsci-110/Chapter 5/consoleInput.cpp | colmentse/Cplusplus-class | 0c7eff6b3fa6f2a2c42571889453d1bf5c0a5050 | [
"MIT"
] | null | null | null | comsci-110/Chapter 5/consoleInput.cpp | colmentse/Cplusplus-class | 0c7eff6b3fa6f2a2c42571889453d1bf5c0a5050 | [
"MIT"
] | null | null | null | comsci-110/Chapter 5/consoleInput.cpp | colmentse/Cplusplus-class | 0c7eff6b3fa6f2a2c42571889453d1bf5c0a5050 | [
"MIT"
] | null | null | null | /*
Author : Colmen Tse
Compsci : 120
5.6 consoleinput.cpp
*/
#include <string>
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int age;
cout << "Enter your age: ";
cin >> age;
cin.ignore(1000, 10);
string name;
cout << "Enter your name: ";
getline(cin, name);
double temp;
cout << ... | 17.971429 | 65 | 0.613672 | colmentse |
befefa3a238c5a224d33a3c2e82fabedb5ecc0ad | 67 | cc | C++ | fluid/src/framework/op_desc.cc | ImageMetrics/paddle-mobile | 8edfa0ddfc542962ba4530410bd2d2c9b8d77cc4 | [
"MIT"
] | 2 | 2018-07-17T10:55:48.000Z | 2018-08-03T01:35:20.000Z | fluid/src/framework/op_desc.cc | ImageMetrics/paddle-mobile | 8edfa0ddfc542962ba4530410bd2d2c9b8d77cc4 | [
"MIT"
] | null | null | null | fluid/src/framework/op_desc.cc | ImageMetrics/paddle-mobile | 8edfa0ddfc542962ba4530410bd2d2c9b8d77cc4 | [
"MIT"
] | null | null | null | //
// Created by liuRuiLong on 2018/4/23.
//
#include "op_desc.h"
| 11.166667 | 38 | 0.641791 | ImageMetrics |
8305a43c0016eb26e8d544d2c621426147818ff0 | 5,383 | cpp | C++ | tests/collection.cpp | dead1ock/algorithms-cpp | 35b79b4cfe5db24e83ce157765fbcb221bc2ed38 | [
"MIT"
] | null | null | null | tests/collection.cpp | dead1ock/algorithms-cpp | 35b79b4cfe5db24e83ce157765fbcb221bc2ed38 | [
"MIT"
] | null | null | null | tests/collection.cpp | dead1ock/algorithms-cpp | 35b79b4cfe5db24e83ce157765fbcb221bc2ed38 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <collection/FixedArrayStack.h>
#include <collection/FixedQueue.h>
#include <collection/LinkedListStack.h>
#include <collection/LinkedQueue.h>
#include <collection/ResizableStack.h>
#include <collection/ResizableQueue.h>
TEST(LINKEDLISTSTACK, PushPopCount)
{
LinkedListStack<int> stac... | 17.824503 | 56 | 0.602638 | dead1ock |
8306d502d0de3894cbff049ac4e1904b81fd428b | 729 | cpp | C++ | test/examples_test/04_module_test/04_module_tests.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-julieei206 | e1fb506dbe4b068c01db307cd7626fd88b456a20 | [
"MIT"
] | null | null | null | test/examples_test/04_module_test/04_module_tests.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-julieei206 | e1fb506dbe4b068c01db307cd7626fd88b456a20 | [
"MIT"
] | 1 | 2020-10-30T23:36:49.000Z | 2020-11-06T19:33:56.000Z | test/examples_test/04_module_test/04_module_tests.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-julieei206 | e1fb506dbe4b068c01db307cd7626fd88b456a20 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST_CASE("Verify sum of squares function")
{
REQUIRE(sum_of_squares(3)==14);
REQUIRE(sum_of_squares(4)==30);
... | 20.828571 | 97 | 0.702332 | acc-cosc-1337-fall-2020 |
8308730f7101ec449e3d4e3edfe2a179f4995b52 | 776 | cpp | C++ | Backtracking/ModularExpression.cpp | ssokjin/Interview-Bit | 8714d3d627eb5875f49d205af779b59ca33ab4a3 | [
"MIT"
] | 513 | 2016-08-16T12:52:14.000Z | 2022-03-30T19:32:10.000Z | Backtracking/ModularExpression.cpp | CodeOctal/Interview-Bit | 88c021685d6cdef17906d077411ce34723363a08 | [
"MIT"
] | 25 | 2018-02-14T15:25:48.000Z | 2022-03-23T11:52:08.000Z | Backtracking/ModularExpression.cpp | CodeOctal/Interview-Bit | 88c021685d6cdef17906d077411ce34723363a08 | [
"MIT"
] | 505 | 2016-09-02T15:04:20.000Z | 2022-03-25T06:36:31.000Z | // https://www.interviewbit.com/problems/modular-expression/
long long int calMod(int A, int B, int C){
if(B == 0){
return 1;
}
else if(B%2 == 0){
long long int y = calMod(A, B/2, C);
return (y*y)%C;
}
else{
return ((A%C)*calMod(A,B-1,C))%C;
}
}
int Solution::Mo... | 24.25 | 93 | 0.552835 | ssokjin |
830b9919832d3b721808454193278df544785653 | 570 | cpp | C++ | input/array.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/array.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | input/array.cpp | xdevkartik/cpp_basics | a6d5a6aca5cdd5b9634c300cfaf2e2914a57aa55 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
main(){
string name[5] = {"apple", "google", "microsoft", "ibm", "tesla"};
string arr[5] = {"ab", "bc", "cd", "de", "ff"};
string arr2[] = {"apappappapapap", "hghghdgahdgahsdghag"};
int num = sizeof(name[4]);
int num2 = sizeof(arr[0]);
int num3 = sizeof(... | 38 | 91 | 0.578947 | xdevkartik |
830c7aed466d2196cbf375ac5744dff58545af4e | 2,429 | cpp | C++ | source/file_interface/bit_field.cpp | burz/tap | 61f8f2cf2022db99e02992340735e342f4a8394d | [
"MIT"
] | 1 | 2016-10-07T01:52:57.000Z | 2016-10-07T01:52:57.000Z | source/file_interface/bit_field.cpp | burz/tap | 61f8f2cf2022db99e02992340735e342f4a8394d | [
"MIT"
] | null | null | null | source/file_interface/bit_field.cpp | burz/tap | 61f8f2cf2022db99e02992340735e342f4a8394d | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include "bit_field.h"
typedef struct {
unsigned short width;
unsigned short height;
size_t type_size;
GLint internal_format;
GLenum format;
GLenum type;
} BF_HEADER;
void create_bit_field_file(const char *destination, unsigned short width,
... | 22.915094 | 89 | 0.616715 | burz |
83124097feb5012b57dc4f4fec5f0ab33adc840f | 1,446 | hpp | C++ | code/aoce/Module/ModuleManager.hpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 71 | 2020-10-15T03:13:50.000Z | 2022-03-30T02:04:28.000Z | code/aoce/Module/ModuleManager.hpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 9 | 2021-02-20T10:30:10.000Z | 2022-03-04T07:59:58.000Z | code/aoce/Module/ModuleManager.hpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 19 | 2021-01-01T12:03:02.000Z | 2022-03-21T07:59:59.000Z | #pragma once
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "IModule.hpp"
namespace aoce {
typedef IModule* (*loadModuleAction)();
typedef std::function<IModule*(void)> loadModuleHandle;
class ModuleInfo {
public:
void* handle = nullptr;
IModule* module = nullptr;
std::... | 22.246154 | 77 | 0.670124 | msqljj |
9b01091ed19e91701e87e18fd4691b40ac1c724e | 856 | cpp | C++ | pico_src/conversion.cpp | Bambofy/pico | a26d853cca9e28170efa6ca694a9233f08f9b655 | [
"MIT"
] | 5 | 2020-03-03T16:02:28.000Z | 2020-03-17T12:43:55.000Z | pico_src/conversion.cpp | Bambofy/pico | a26d853cca9e28170efa6ca694a9233f08f9b655 | [
"MIT"
] | null | null | null | pico_src/conversion.cpp | Bambofy/pico | a26d853cca9e28170efa6ca694a9233f08f9b655 | [
"MIT"
] | 1 | 2020-03-04T12:16:05.000Z | 2020-03-04T12:16:05.000Z | #include "../pico_inc/conversion.h"
void Conversion_Uint_To_Char_Array(uint32_t inNumber, char * outDestinationPtrLocation, uint32_t outDestinationByteLength)
{
uintptr_t destPtr = reinterpret_cast<uintptr_t>(outDestinationPtrLocation);
_Conversion_Uint_To_Char_Array(inNumber, destPtr, outDestinationByteLengt... | 37.217391 | 122 | 0.83528 | Bambofy |
9b05d31c458571d55d4d9b0ae720162f60569b39 | 609 | cpp | C++ | 2017.4.12/poj3176.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | 2017.4.12/poj3176.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | 2017.4.12/poj3176.cpp | 1980744819/ACM-code | a697242bc963e682e552e655e3d78527e044e854 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<string>
#include<vector>
#include<stack>
#include<set>
#include<map>
#include<queue>
#include<algorithm>
using namespace std;
int dp[355][355];
int a[355][355];
int main(){
int n,i,j;
while(~scanf("%d",&n)){
for(i=1;i<=... | 16.459459 | 50 | 0.543514 | 1980744819 |
9b0a3563dab2a04ccc0e60408e3dab89439e70d4 | 3,269 | cpp | C++ | test/core/image_processing/hough_circle_transform.cpp | harsh-4/gil | 6da59cc3351e5657275d3a536e0b6e7a1b6ac738 | [
"BSL-1.0"
] | 153 | 2015-02-03T06:03:54.000Z | 2022-03-20T15:06:34.000Z | test/core/image_processing/hough_circle_transform.cpp | harsh-4/gil | 6da59cc3351e5657275d3a536e0b6e7a1b6ac738 | [
"BSL-1.0"
] | 429 | 2015-03-22T09:49:04.000Z | 2022-03-28T08:32:08.000Z | test/core/image_processing/hough_circle_transform.cpp | harsh-4/gil | 6da59cc3351e5657275d3a536e0b6e7a1b6ac738 | [
"BSL-1.0"
] | 215 | 2015-03-15T09:20:51.000Z | 2022-03-30T12:40:07.000Z | // Boost.GIL (Generic Image Library) - tests
//
// Copyright 2020 Olzhas Zhumabek <anonymous.from.applecity@gmail.com>
//
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#includ... | 38.916667 | 99 | 0.657693 | harsh-4 |
9b10a45f76002112ed294a14d916e6f2af835d83 | 2,704 | cpp | C++ | src/18_Appendix_mathematics_4_deep_learning/Statistics.cpp | jiamny/D2L_pytorch_cpp | 5bd89bb5531b9fca4fbe0dc3bfe5beaa7c45cb09 | [
"MIT"
] | null | null | null | src/18_Appendix_mathematics_4_deep_learning/Statistics.cpp | jiamny/D2L_pytorch_cpp | 5bd89bb5531b9fca4fbe0dc3bfe5beaa7c45cb09 | [
"MIT"
] | null | null | null | src/18_Appendix_mathematics_4_deep_learning/Statistics.cpp | jiamny/D2L_pytorch_cpp | 5bd89bb5531b9fca4fbe0dc3bfe5beaa7c45cb09 | [
"MIT"
] | 1 | 2022-03-11T00:12:20.000Z | 2022-03-11T00:12:20.000Z | #include <unistd.h>
#include <iomanip>
#include <torch/utils.h>
#include "../utils/Ch_18_util.h"
#include "../matplotlibcpp.h"
namespace plt = matplotlibcpp;
using torch::indexing::Slice;
using torch::indexing::None;
// Statistical bias
torch::Tensor stat_bias(float true_theta, torch::Tensor est_theta) {
return(... | 31.811765 | 114 | 0.637574 | jiamny |
9b11201d895aebd1c232215dd1a6d43437170e38 | 4,093 | cpp | C++ | src/gamelib/editor/ui/Overlay.cpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | 1 | 2020-02-17T09:53:36.000Z | 2020-02-17T09:53:36.000Z | src/gamelib/editor/ui/Overlay.cpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | null | null | null | src/gamelib/editor/ui/Overlay.cpp | mall0c/GameLib | df4116b53c39be7b178dd87f7eb0fe32a94d00d3 | [
"MIT"
] | null | null | null | #include "gamelib/editor/ui/Overlay.hpp"
#include "gamelib/editor/tools/ToolUtils.hpp"
#include "gamelib/editor/EditorShared.hpp"
#include "gamelib/core/ecs/Entity.hpp"
#include "gamelib/core/geometry/flags.hpp"
#include "gamelib/core/input/InputSystem.hpp"
#include "gamelib/core/Game.hpp"
#include "gamelib/core/render... | 36.221239 | 120 | 0.548986 | mall0c |
9b1409601663e4eec9f87a44ace803d145b51bfe | 1,079 | cc | C++ | cpp/Codeforces/401-450/447A_DZY_Loves_Hash.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | cpp/Codeforces/401-450/447A_DZY_Loves_Hash.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | cpp/Codeforces/401-450/447A_DZY_Loves_Hash.cc | phongvcao/CP_Contests_Solutions | 2e76e73ee7e53c798f63e1870be47653c75180a9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <unordered_map>
#include <stdint.h>
#include <cmath>
using namespace std;
typedef int64_t Int;
typedef uint64_t UInt;
int main(int argc, char **argv) {
UInt p = 0;
UInt n = 0;
// Read the first line
string line = "";... | 17.983333 | 66 | 0.533828 | phongvcao |
9b19915623890a71c6440137e1819b08795a6ab4 | 1,018 | cpp | C++ | engine/strings/source/RangedCombatTextKeys.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/strings/source/RangedCombatTextKeys.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/strings/source/RangedCombatTextKeys.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #include "RangedCombatTextKeys.hpp"
using namespace std;
// Ranged combat messages
RangedCombatTextKeys::RangedCombatTextKeys()
{
}
RangedCombatTextKeys::~RangedCombatTextKeys()
{
}
const string RangedCombatTextKeys::RANGED_COMBAT_UNAVAILABLE_ON_WORLD_MAP = "RANGED_COMBAT_UNAVAILABLE_ON_WORLD_MAP";
const string R... | 50.9 | 135 | 0.852652 | sidav |
9b1d4f31caa5ccafbba94af952d5598e43d485ab | 1,603 | hpp | C++ | rayt-cpp/utils.hpp | gkmngrgn/rayt | 726d8e3d9716e91f27fec2c5982b7f79bfe0ea8a | [
"CC0-1.0",
"MIT"
] | 11 | 2020-07-04T13:35:10.000Z | 2022-03-30T17:34:27.000Z | rayt-cpp/utils.hpp | gkmngrgn/rayt | 726d8e3d9716e91f27fec2c5982b7f79bfe0ea8a | [
"CC0-1.0",
"MIT"
] | null | null | null | rayt-cpp/utils.hpp | gkmngrgn/rayt | 726d8e3d9716e91f27fec2c5982b7f79bfe0ea8a | [
"CC0-1.0",
"MIT"
] | 2 | 2021-03-02T06:31:43.000Z | 2022-03-30T17:34:28.000Z | #ifndef UTILS_HPP
#define UTILS_HPP
//==============================================================================
// Originally written in 2016 by Peter Shirley <ptrshrl@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright
// and related and neighboring rights to this softwa... | 27.169492 | 80 | 0.65315 | gkmngrgn |
9b1e120f3f985b6e526ca03ec3955e648466096f | 5,202 | hh | C++ | kenlm/include/util/mmap.hh | pokey/w2ldecode | 03f9995a48c5c1043be309fe5b20c6126851a9ff | [
"BSD-3-Clause"
] | 114 | 2015-01-11T05:41:03.000Z | 2021-08-31T03:47:12.000Z | Part 02/001_LM/ngram_lm_lab/kenlm/include/util/mmap.hh | Kabongosalomon/AMMI-NLP | 00a0e47399926ad1951b84a11cd936598a9c7c3b | [
"MIT"
] | 29 | 2015-01-09T01:00:09.000Z | 2019-09-25T06:04:02.000Z | Part 02/001_LM/ngram_lm_lab/kenlm/include/util/mmap.hh | Kabongosalomon/AMMI-NLP | 00a0e47399926ad1951b84a11cd936598a9c7c3b | [
"MIT"
] | 50 | 2015-02-13T13:48:39.000Z | 2019-08-07T09:45:11.000Z | #ifndef UTIL_MMAP_H
#define UTIL_MMAP_H
// Utilities for mmaped files.
#include <cstddef>
#include <limits>
#include <stdint.h>
#include <sys/types.h>
namespace util {
class scoped_fd;
long SizePage();
// (void*)-1 is MAP_FAILED; this is done to avoid including the mmap header here.
class scoped_mmap {
publ... | 26.953368 | 122 | 0.662438 | pokey |
9b1ef61068f354d7463caaa27ecf5b7deb9a80a4 | 501 | hpp | C++ | ffl/include/pipeline/FFL_PipelineNodeParser.hpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | ffl/include/pipeline/FFL_PipelineNodeParser.hpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | ffl/include/pipeline/FFL_PipelineNodeParser.hpp | zhenfei2016/FFL-v2 | 376c79a0611af580d4767a4bbb05822f1a4fd454 | [
"MIT"
] | null | null | null | /*
* This file is part of FFL project.
*
* The MIT License (MIT)
* Copyright (C) 2017-2018 zhufeifei All rights reserved.
*
* FFL_PipelineNodeParser.hpp
* Created by zhufeifei(34008081@qq.com) on 2018/02/11
* https://github.com/zhenfei2016/FFL-v2.git
*
* Pipelin系统中通过脚本创建node的parser
*
*/
#ifndef _FFL_PIPELINENOD... | 17.892857 | 57 | 0.740519 | zhenfei2016 |
9b22c51c017eac7389037e7adac6f8198921ebaf | 1,740 | cc | C++ | sync/api/attachments/attachment_store.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-11-28T10:46:52.000Z | 2019-11-28T10:46:52.000Z | sync/api/attachments/attachment_store.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | sync/api/attachments/attachment_store.cc | kjthegod/chromium | cf940f7f418436b77e15b1ea23e6fa100ca1c91a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2015-03-27T11:15:39.000Z | 2016-08-17T14:19:56.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/api/attachments/attachment_store.h"
#include "base/bind.h"
#include "base/callback.h"
#include "base/location.h"
#include "base/sequenced_... | 37.021277 | 79 | 0.791379 | kjthegod |
9b23977b50d0add8801a8561d2bb08694a34cd37 | 1,233 | hpp | C++ | include/manala/selector/framemanagermostrecent.hpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 1 | 2019-05-10T02:50:50.000Z | 2019-05-10T02:50:50.000Z | include/manala/selector/framemanagermostrecent.hpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2020-10-28T03:44:51.000Z | 2021-01-18T19:49:33.000Z | include/manala/selector/framemanagermostrecent.hpp | tpeterka/decaf | ad6ad823070793bfd7fc8d9384d5475f7cf20848 | [
"BSD-3-Clause"
] | 2 | 2018-08-31T14:02:47.000Z | 2020-04-17T16:01:54.000Z | //---------------------------------------------------------------------------
// Framemanager sequential implementation. The frame are sent one by one
// in the receiving order.
//
// Matthieu Dreher
// Argonne National Laboratory
// 9700 S. Cass Ave.
// Argonne, IL 60439
// mdreher@anl.gov
//
//-----------------------... | 26.804348 | 90 | 0.609895 | tpeterka |
9b23a487cc1e235334005a4fd35d270a66e79f66 | 328 | cpp | C++ | chapter10/Proj1013.cpp | basstal/CPPPrimer | 6366965657f873ac62003cf0a30a3fdb26c09351 | [
"MIT"
] | null | null | null | chapter10/Proj1013.cpp | basstal/CPPPrimer | 6366965657f873ac62003cf0a30a3fdb26c09351 | [
"MIT"
] | null | null | null | chapter10/Proj1013.cpp | basstal/CPPPrimer | 6366965657f873ac62003cf0a30a3fdb26c09351 | [
"MIT"
] | null | null | null | #include"head.h"
bool func(const string &s);
int main(){
vector<string> words{"fox","jumps","over","quick","red","quick","blow","slow","the","turtle"};
auto iter = partition(words.begin(),words.end(),func);
for(const auto &e:words)
cout<<e<<" ";
cout<<endl;
return 0;
}
bool func(const string &s){
return s.size... | 23.428571 | 95 | 0.631098 | basstal |
9b25946d853b291db8676fcd613c862454f7ef3e | 1,719 | cpp | C++ | firmware/Heat controller/lib/NTC/src/NTC.cpp | atoomnetmarc/IoT12 | 7706f69758a800da70bf8034a91a331206706824 | [
"Apache-2.0"
] | null | null | null | firmware/Heat controller/lib/NTC/src/NTC.cpp | atoomnetmarc/IoT12 | 7706f69758a800da70bf8034a91a331206706824 | [
"Apache-2.0"
] | null | null | null | firmware/Heat controller/lib/NTC/src/NTC.cpp | atoomnetmarc/IoT12 | 7706f69758a800da70bf8034a91a331206706824 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021-2022 Marc Ketel
SPDX-License-Identifier: Apache-2.0
*/
#include <math.h>
#include "NTC.h"
/*
Class which is able to calculate the temperature of a NTC given the voltage of a resistor divider.
Simple schematic:
resistorDividerVoltage---[resistorDividerResistance]---[NTC]---GND
*/
NTC::NTC(void... | 28.180328 | 139 | 0.753345 | atoomnetmarc |
9b2a0aeeed97f88621425a9a0b549c20a5d110d2 | 1,065 | hpp | C++ | src/elona/serialization/std/bitset.hpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | 84 | 2018-03-03T02:44:32.000Z | 2019-07-14T16:16:24.000Z | src/elona/serialization/std/bitset.hpp | AFB111/elonafoobar | da7a3c86dd45e68e6e490fb260ead1d67c9fff5e | [
"MIT"
] | 685 | 2018-02-27T04:31:17.000Z | 2019-07-12T13:43:00.000Z | src/elona/serialization/std/bitset.hpp | nanbansenji/ElonaFoobar | ddbd6639db8698e89f09b2512526e855d8016e46 | [
"MIT"
] | 23 | 2019-07-26T08:52:38.000Z | 2021-11-09T09:21:58.000Z | #pragma once
#include <bitset>
#include "../concepts.hpp"
namespace elona::serialization
{
template <size_t N, typename Archive>
void serialize(std::bitset<N>& value, Archive& ar)
{
if constexpr (concepts::is_iarchive_v<Archive>)
{
if constexpr (N <= 32)
{
uint32_t tmp;
... | 18.684211 | 51 | 0.449765 | nanbansenji |
9b2b78b9110a940be1ce88a548c6fadf5e412df8 | 6,835 | cpp | C++ | modules/sensors/dynamic_sensor/HidUtils/HidReport.cpp | lighthouse-os/hardware_libhardware | c6fa046a69d9b1adf474cf5de58318b677801e49 | [
"Apache-2.0"
] | null | null | null | modules/sensors/dynamic_sensor/HidUtils/HidReport.cpp | lighthouse-os/hardware_libhardware | c6fa046a69d9b1adf474cf5de58318b677801e49 | [
"Apache-2.0"
] | null | null | null | modules/sensors/dynamic_sensor/HidUtils/HidReport.cpp | lighthouse-os/hardware_libhardware | c6fa046a69d9b1adf474cf5de58318b677801e49 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2017 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... | 29.717391 | 98 | 0.58654 | lighthouse-os |
9b2d7bdf8175e9af1324c8529f05ebc9298df440 | 4,713 | cpp | C++ | node_modules/lzz-gyp/lzz-source/smtc_DefineLazyClass.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_DefineLazyClass.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_DefineLazyClass.cpp | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_DefineLazyClass.cpp
//
#include "smtc_DefineLazyClass.h"
#include "smtc_ClassDefn.h"
#include "smtc_ClassScope.h"
#include "smtc_CreateLazyClass.h"
#include "smtc_CreateLazyClassEntity.h"
#include "smtc_CreateLazyClassScope.h"
#include "smtc_CreateMbrInit.h"
#include "smtc_CreateQualName.h"
#include "smtc_Crea... | 34.152174 | 290 | 0.717165 | SuperDizor |
9b2fc253f49469923daac323b0bb90353b68c7fb | 1,847 | cpp | C++ | uva/821 - Page Hopping floyed warshall .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | 1 | 2021-11-22T02:26:43.000Z | 2021-11-22T02:26:43.000Z | uva/821 - Page Hopping floyed warshall .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | uva/821 - Page Hopping floyed warshall .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
#define MX 60
int dist[105] [105];
int main()
{
int x, y;
int n=100;
int tc=1;
int mp[105] = {0};
while(scanf("%d %d", &x, &y)==2)
{
if(x==0) break;
for(int ... | 22.802469 | 105 | 0.30157 | priojeetpriyom |
9b36bf4ac6c6a7f412d25e45df5084a4df3baa41 | 530 | cc | C++ | pathtracer/src/scene_elements/serialized/lights/SpotLight.cc | bjorn-grape/bidirectional-pathtracer | 6fbbf5fc6cee39f595533494d779726658d646e1 | [
"MIT"
] | null | null | null | pathtracer/src/scene_elements/serialized/lights/SpotLight.cc | bjorn-grape/bidirectional-pathtracer | 6fbbf5fc6cee39f595533494d779726658d646e1 | [
"MIT"
] | null | null | null | pathtracer/src/scene_elements/serialized/lights/SpotLight.cc | bjorn-grape/bidirectional-pathtracer | 6fbbf5fc6cee39f595533494d779726658d646e1 | [
"MIT"
] | null | null | null | #include "SpotLight.hh"
float SpotLight::getAngle() const {
return angle_;
}
void SpotLight::setAngle(float angle) {
SpotLight::angle_ = angle;
}
const Vector3D<float> &SpotLight::getDirection() const {
return direction_;
}
void SpotLight::setDirection(const Vector3D<float> &direction) {
SpotLight::... | 20.384615 | 64 | 0.720755 | bjorn-grape |
9b375c34a28ab4aee9774fa54acb33fb2ebd7fa8 | 8,869 | cpp | C++ | code/utils/encoding.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 307 | 2015-04-10T13:27:32.000Z | 2022-03-21T03:30:38.000Z | code/utils/encoding.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 2,231 | 2015-04-27T10:47:35.000Z | 2022-03-31T19:22:37.000Z | code/utils/encoding.cpp | trgswe/fs2open.github.com | a159eba0cebca911ad14a118412fddfe5be8e9f8 | [
"Unlicense"
] | 282 | 2015-01-05T12:16:57.000Z | 2022-03-28T04:45:11.000Z | //
//
#include "utils/encoding.h"
#include "mod_table/mod_table.h"
namespace util {
Encoding guess_encoding(const SCP_string& content, bool assume_utf8) {
if (content.size()>= 3 && !strncmp(content.c_str(), "\xEF\xBB\xBF", 3)) { // UTF-8
return Encoding::UTF8;
}
if (content.size()>= 4 && !strncmp(conte... | 35.906883 | 140 | 0.597023 | trgswe |
9b37b184d2817217fb506c030d0f645051b8f56f | 4,446 | cpp | C++ | ByteCamp/Day1/l.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | ByteCamp/Day1/l.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | ByteCamp/Day1/l.cpp | JackBai0914/Competitive-Programming-Codebase | a1cabf0fa5072b07a7da25d66bf455eb45b0b7e9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <ctime>
#include <vector>
using namespace std;
#define F first
#define S second
#define MP make_pair
typedef long long ll;
typedef long double ld;
typedef pair <ld, ld> Point;
const ld eps = 1e-7;
... | 22.683673 | 111 | 0.468961 | JackBai0914 |
9b3addf69baf6396826baea1132848c4bea1126f | 353 | cpp | C++ | Artemis/Source/Graphics/Artemis.Graphics.cpp | NoriyukiHiromoto/TinyGameEngine | ea683db3d498c1b8df91930a262a4c50a4e69b82 | [
"MIT"
] | null | null | null | Artemis/Source/Graphics/Artemis.Graphics.cpp | NoriyukiHiromoto/TinyGameEngine | ea683db3d498c1b8df91930a262a4c50a4e69b82 | [
"MIT"
] | null | null | null | Artemis/Source/Graphics/Artemis.Graphics.cpp | NoriyukiHiromoto/TinyGameEngine | ea683db3d498c1b8df91930a262a4c50a4e69b82 | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------------
//
//----------------------------------------------------------------------------------
#include "Artemis.Local.hpp"
#include "Artemis.Graphics.hpp"
#if defined(ATS_API_DIRECTX11)
#include "Platform/Artemis.Graphics.directx11.cpp"
#e... | 35.3 | 85 | 0.407932 | NoriyukiHiromoto |
9b3cc3cd55dd4d87adcbf4cab59dd62587a51248 | 3,360 | cpp | C++ | GraphAlgorithms/Monsters.cpp | su050300/CSES-Problemset-Solutions | 292281f9ac3c57c21c8208b30087386c29238d17 | [
"MIT"
] | 2 | 2021-02-05T04:21:42.000Z | 2021-02-10T14:24:38.000Z | GraphAlgorithms/Monsters.cpp | su050300/CSES-Problemset-Solutions | 292281f9ac3c57c21c8208b30087386c29238d17 | [
"MIT"
] | null | null | null | GraphAlgorithms/Monsters.cpp | su050300/CSES-Problemset-Solutions | 292281f9ac3c57c21c8208b30087386c29238d17 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
cin>>n>>m;
vector<vector<char>>v(n,vector<char>(m));
vector<vector<int>>poss(n,vector<int>(m,-1));
queue<pair<int,int>>q;
int xi,yi;
for(int i=0;i<n;i++)
{
for(int j=0;j<m;j++)
{
cin>>v[i][j];
... | 24.347826 | 73 | 0.344048 | su050300 |
9b3e2593d9ff36628dfe296383a498755d0df0e7 | 3,595 | cpp | C++ | src/main.cpp | shouxieai/kiwi-rknn | 55c1a4ae2b664acf564b1218728b6ed85b9713aa | [
"MIT"
] | 8 | 2022-03-02T08:51:21.000Z | 2022-03-23T13:24:11.000Z | src/main.cpp | shouxieai/kiwi-rknn | 55c1a4ae2b664acf564b1218728b6ed85b9713aa | [
"MIT"
] | 3 | 2022-03-15T02:40:14.000Z | 2022-03-29T03:25:17.000Z | src/main.cpp | shouxieai/kiwi-rknn | 55c1a4ae2b664acf564b1218728b6ed85b9713aa | [
"MIT"
] | 3 | 2022-03-03T07:46:21.000Z | 2022-03-14T08:32:45.000Z | #include <stdio.h>
#include <thread>
#include <opencv2/opencv.hpp>
#include "kiwi-logger.hpp"
#include "kiwi-app-nanodet.hpp"
#include "kiwi-app-scrfd.hpp"
#include "kiwi-app-arcface.hpp"
#include "kiwi-infer-rknn.hpp"
using namespace cv;
using namespace std;
void test_pref(const char* model){
// 测试性能启用sync mode... | 30.726496 | 119 | 0.59249 | shouxieai |
9b41b65dac7fc919f5d55dae818426899396d8ba | 22 | cpp | C++ | src/DlibDotNet.Native/dlib/image_saver/save_jpeg.cpp | ejoebstl/DlibDotNet | 47436a573c931fc9c9107442b10cf32524805378 | [
"MIT"
] | 387 | 2017-10-14T23:08:59.000Z | 2022-03-28T05:26:44.000Z | src/DlibDotNet.Native/dlib/image_saver/save_jpeg.cpp | ejoebstl/DlibDotNet | 47436a573c931fc9c9107442b10cf32524805378 | [
"MIT"
] | 246 | 2017-10-09T11:40:20.000Z | 2022-03-22T08:04:08.000Z | src/DlibDotNet.Native/dlib/image_saver/save_jpeg.cpp | ejoebstl/DlibDotNet | 47436a573c931fc9c9107442b10cf32524805378 | [
"MIT"
] | 113 | 2017-10-18T12:04:53.000Z | 2022-03-28T09:05:27.000Z | #include "save_jpeg.h" | 22 | 22 | 0.772727 | ejoebstl |
9b48d5e4e8a9a8f65d4e01e68adc6cfac40bc6dc | 4,261 | hpp | C++ | mllib/LogisticRegression.hpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | 1 | 2019-01-23T02:10:10.000Z | 2019-01-23T02:10:10.000Z | mllib/LogisticRegression.hpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | null | null | null | mllib/LogisticRegression.hpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | null | null | null | /*
Edit by Christina
*/
#pragma once
#include <limits>
#include "mllib/Utility.hpp"
#include "mllib/Instances.hpp"
#include "lib/aggregator_factory.hpp"
#include "mllib/Classifier.hpp"
namespace husky{
namespace mllib{
/*
MODE
GLOBAL: global training
LOCAL: trainin... | 45.817204 | 273 | 0.574513 | Christina-hshi |
9b494df3b5e60407052fe5b8a93ae58a3c4bab6a | 565 | hpp | C++ | include/MemeCore/TestRequest.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeCore/TestRequest.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeCore/TestRequest.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #ifndef _ML_REQUEST_HPP_
#define _ML_REQUEST_HPP_
#include <MemeCore/IRequest.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * */
class ML_CORE_API TestRequest
: public IRequest
{
public:
using LogFunc = void(*)(const ml::String &);
public:
TestRequest();
~TestRequest();
public:
void se... | 15.694444 | 46 | 0.59469 | Gurman8r |
9b4d06272898ff03d5b0622f8eb060b9d8371e03 | 6,505 | cc | C++ | src/modular/lib/modular_config/modular_config.cc | dahlia-os/fuchsia-pine64-pinephone | 57aace6f0b0bd75306426c98ab9eb3ff4524a61d | [
"BSD-3-Clause"
] | 14 | 2020-10-25T05:48:36.000Z | 2021-09-20T02:46:20.000Z | src/modular/lib/modular_config/modular_config.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 1 | 2022-01-14T23:38:40.000Z | 2022-01-14T23:38:40.000Z | src/modular/lib/modular_config/modular_config.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 4 | 2020-12-28T17:04:45.000Z | 2022-03-12T03:20:44.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/modular/lib/modular_config/modular_config.h"
#include <fcntl.h>
#include <lib/syslog/cpp/macros.h>
#include <rapidjson/document.h>
#include... | 33.188776 | 100 | 0.713605 | dahlia-os |
9b4ea9f0b2be8e91eb8e1e8c5ad918940e0471a0 | 8,771 | cc | C++ | tce/src/applibs/ProGe/Netlist.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 74 | 2015-10-22T15:34:10.000Z | 2022-03-25T07:57:23.000Z | tce/src/applibs/ProGe/Netlist.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 79 | 2015-11-19T09:23:08.000Z | 2022-01-12T14:15:16.000Z | tce/src/applibs/ProGe/Netlist.cc | kanishkan/tce | 430e764b4d43f46bd1dc754aeb1d5632fc742110 | [
"MIT"
] | 38 | 2015-11-17T10:12:23.000Z | 2022-03-25T07:57:24.000Z | /*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... | 26.498489 | 78 | 0.688063 | kanishkan |
9b52892eac05dc229e55bcbb9214c1db73817838 | 9,115 | hpp | C++ | libraries/protocol/include/scorum/protocol/betting/market.hpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/protocol/include/scorum/protocol/betting/market.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/protocol/include/scorum/protocol/betting/market.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #pragma once
#include <fc/static_variant.hpp>
#include <scorum/protocol/betting/wincase.hpp>
#include <scorum/protocol/betting/market_kind.hpp>
#include <scorum/protocol/config.hpp>
#include <boost/range/algorithm/transform.hpp>
namespace scorum {
namespace protocol {
template <market_kind kind, typename tag = void>... | 40.691964 | 111 | 0.635765 | scorum |
9b58686529189be7eecc3c0c17292971a5e6f185 | 3,378 | cpp | C++ | tddd86-algorithms/life.cpp | AxelGard/university-projects | 0c9a6e785f1918c6ed0fd365b2d419c9f52edb50 | [
"MIT"
] | 2 | 2022-01-30T17:53:33.000Z | 2022-02-03T23:34:36.000Z | tddd86-algorithms/life.cpp | AxelGard/university-projects | 0c9a6e785f1918c6ed0fd365b2d419c9f52edb50 | [
"MIT"
] | null | null | null | tddd86-algorithms/life.cpp | AxelGard/university-projects | 0c9a6e785f1918c6ed0fd365b2d419c9f52edb50 | [
"MIT"
] | null | null | null | /*
* Martin Gustafsson @margu424 && Axel Gard @axega544
*
* The task was to crate a replication of the game of life.
*
* Soruces :
* labb PM - https://www.ida.liu.se/~TDDD86/info/misc/labb1.pdf
* C++ doc - http://www.cplusplus.com/doc/tutorial/files/
* StackOverFlow - https://stackoverflow.com/questions/2522594... | 25.78626 | 120 | 0.51717 | AxelGard |
9b64451c57a5c7befdabc8f310f8399877a8fad6 | 2,233 | cpp | C++ | src/Aims.cpp | weiboad/aidt | dabb0877675326f8bd80fdb450a4f3d7108ac5db | [
"Apache-2.0"
] | 16 | 2017-07-06T04:54:06.000Z | 2021-06-24T03:37:33.000Z | src/Aims.cpp | weiboad/aidt | dabb0877675326f8bd80fdb450a4f3d7108ac5db | [
"Apache-2.0"
] | 1 | 2018-05-18T07:32:03.000Z | 2018-05-18T10:02:24.000Z | src/Aims.cpp | weiboad/aidt | dabb0877675326f8bd80fdb450a4f3d7108ac5db | [
"Apache-2.0"
] | 3 | 2017-07-11T03:43:30.000Z | 2018-08-16T12:10:42.000Z | #include "Aims.hpp"
// {{{ Aims::Aims()
Aims::Aims(AimsContext* context) :
_context(context) {
_configure = _context->config;
}
// }}}
// {{{ Aims::~Aims()
Aims::~Aims() {
}
// }}}
// {{{ void Aims::run()
void Aims::run() {
// 初始化 server
init();
_kafkaProducerIn->start();
}
// }}}
// {{{ void Aims::init()
... | 26.903614 | 85 | 0.670846 | weiboad |
9b64fe04440fda5b7bfc633eaf03e32d5e2ea0a8 | 1,259 | cc | C++ | deps/steamworks_sdk/public/rail/sdk/base/rail_array_test.cc | jeffersQuan/greenworks | ab73a59574e4a15a1e97091334b384f6e84257eb | [
"MIT"
] | null | null | null | deps/steamworks_sdk/public/rail/sdk/base/rail_array_test.cc | jeffersQuan/greenworks | ab73a59574e4a15a1e97091334b384f6e84257eb | [
"MIT"
] | null | null | null | deps/steamworks_sdk/public/rail/sdk/base/rail_array_test.cc | jeffersQuan/greenworks | ab73a59574e4a15a1e97091334b384f6e84257eb | [
"MIT"
] | null | null | null | // Copyright (c) 2019, Entropy Game Global Limited.
// All rights reserved.
#include <stdint.h>
#include "rail/sdk/base/rail_array.h"
#include "thirdparty/gtest/gtest.h"
struct Item {
int32_t id;
int32_t value;
};
TEST(RailArray, size) {
rail::RailArray<struct Item> array;
EXPECT_EQ(0U, array.size())... | 22.890909 | 54 | 0.631454 | jeffersQuan |
9b6caf18dd8e10d0f32bb9507f848b8ed7329c4f | 1,552 | hpp | C++ | code/szen/inc/szen/System/SpriteBatch.hpp | Sonaza/scyori | a894a9c7bd45a68ea1b6ff14877cdbe47ddd39cf | [
"BSD-3-Clause"
] | null | null | null | code/szen/inc/szen/System/SpriteBatch.hpp | Sonaza/scyori | a894a9c7bd45a68ea1b6ff14877cdbe47ddd39cf | [
"BSD-3-Clause"
] | null | null | null | code/szen/inc/szen/System/SpriteBatch.hpp | Sonaza/scyori | a894a9c7bd45a68ea1b6ff14877cdbe47ddd39cf | [
"BSD-3-Clause"
] | null | null | null | #ifndef SZEN_SPRITEBATCH_HPP
#define SZEN_SPRITEBATCH_HPP
#include <SFML/Graphics.hpp>
#include <functional>
#include <map>
#include <vector>
#include <thor/Particles.hpp>
namespace sz
{
class TextureAsset;
class ShaderAsset;
struct BatchData
{
BatchData() : texture(NULL), shader(NULL), particles(NULL) {}
... | 21.555556 | 137 | 0.717784 | Sonaza |
9b6d41b5fb0fc4f82fd71de1611c606f27f09f1f | 8,171 | cpp | C++ | client_tools/lms/src/OPE_LMS/db.cpp | kgonyo/ope | a5b548ad7716e76f42af9bdd8f0079752760edee | [
"MIT"
] | null | null | null | client_tools/lms/src/OPE_LMS/db.cpp | kgonyo/ope | a5b548ad7716e76f42af9bdd8f0079752760edee | [
"MIT"
] | null | null | null | client_tools/lms/src/OPE_LMS/db.cpp | kgonyo/ope | a5b548ad7716e76f42af9bdd8f0079752760edee | [
"MIT"
] | null | null | null | #include "db.h"
APP_DB::APP_DB(QQmlApplicationEngine *parent) : QObject(parent)
{
_db = QSqlDatabase::addDatabase("QSQLITE");
this->setParent(parent);
// DEBUG STUFF
QString crypt_pw = QCryptographicHash::hash(QString("abcd").toLocal8Bit(),
QCryptographicHash::Sha256).toBase64(QByteArray::... | 31.548263 | 116 | 0.61241 | kgonyo |
9b724925d691a7781cd8a990a5556961f5e913fb | 37,941 | cpp | C++ | src/Parser.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | src/Parser.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | src/Parser.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | #include "Parser.h"
#include "Tokenizer.h"
#include "malloc.h"
#include "config.h"
//#include <stdio.h>
//#include "string.h"
#define REDUCE 0x20000000
#define SHIFT 0x40000000
#define ACCEPT 0x60000000
#define ACTION_MASK 0x60000000
struct Rule {
ScriptTokenType result;
NodeType nodeType;
unsigned char numTerms:... | 49.791339 | 213 | 0.760048 | MichaelMCE |
9b73b78f9a528cba963dadd7c36bffc881a59b7f | 4,198 | cpp | C++ | src/ossiarch/Katakros.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 5 | 2019-02-01T01:41:19.000Z | 2021-06-17T02:16:13.000Z | src/ossiarch/Katakros.cpp | rweyrauch/AoSSimulator | d2bfbbe0fab904cc543f1a01e62e0b82cf67c27b | [
"MIT"
] | 2 | 2020-01-14T16:57:42.000Z | 2021-04-01T00:53:18.000Z | src/ossiarch/Katakros.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 <UnitFactory.h>
#include "ossiarch/Katakros.h"
#include "OssiarchBonereaperPrivate.h"
namespace Ossi... | 35.576271 | 140 | 0.61696 | rweyrauch |
9b75f1f2214cae98acf730f268709fbce6f226cd | 9,703 | hpp | C++ | redemption/src/core/RDP/tpdu_buffer.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/core/RDP/tpdu_buffer.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | redemption/src/core/RDP/tpdu_buffer.hpp | DianaAssistant/DIANA | 6a4c51c1861f6a936941b21c2c905fc291c229d7 | [
"MIT"
] | null | null | null | /*
* 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 Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be... | 28.622419 | 99 | 0.514068 | DianaAssistant |
9b78ede68f1cf46c0fa464ce85795cc3441fc52c | 4,099 | cpp | C++ | libpandabase/tests/type_converter_tests.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | 1 | 2021-09-09T03:17:23.000Z | 2021-09-09T03:17:23.000Z | libpandabase/tests/type_converter_tests.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | null | null | null | libpandabase/tests/type_converter_tests.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:21:57.000Z | 2021-09-13T11:21:57.000Z | /*
* Copyright (c) 2021 Huawei Device 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 or a... | 43.147368 | 108 | 0.706758 | openharmony-gitee-mirror |
9b7950992e4d849dbac86ca9d939085a949e337a | 19,891 | cpp | C++ | cplus/libcfint/CFIntSubProjectEditObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | cplus/libcfint/CFIntSubProjectEditObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | cplus/libcfint/CFIntSubProjectEditObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | // Description: C++18 edit object instance implementation for CFInt SubProject.
/*
* org.msscf.msscf.CFInt
*
* Copyright (c) 2020 Mark Stephen Sobkow
*
* MSS Code Factory CFInt 2.13 Internet Essentials
*
* Copyright 2020-2021 Mark Stephen Sobkow
*
* This file is part of MSS Code Factory.
*
* MSS Code ... | 34.413495 | 181 | 0.727062 | msobkow |
f926c57c62e11c0191895d80560b45d9e36323fa | 19,255 | cpp | C++ | kernel/Scheduler.cpp | SmkViper/CranberryOS | ef4823aa526cf9e2b1ab05f01c87528a8bfff5c6 | [
"MIT"
] | null | null | null | kernel/Scheduler.cpp | SmkViper/CranberryOS | ef4823aa526cf9e2b1ab05f01c87528a8bfff5c6 | [
"MIT"
] | null | null | null | kernel/Scheduler.cpp | SmkViper/CranberryOS | ef4823aa526cf9e2b1ab05f01c87528a8bfff5c6 | [
"MIT"
] | null | null | null | #include "Scheduler.h"
#include <cstring>
#include <new>
#include "ARM/SchedulerDefines.h"
#include "IRQ.h"
#include "MemoryManager.h"
#include "Timer.h"
// How the scheduler currently works:
//
// CopyProcess creates a new memory page and puts the task struct at the bottom of the page, with the stack pointer
// poin... | 36.746183 | 126 | 0.513944 | SmkViper |
f9324ed31b1c1a246663744e94bbe6de7c2e2e05 | 1,525 | cpp | C++ | ip_protocol.cpp | folkertvanheusden/myip | 374802136afad4bd7efafd5931cb04f67c0b4487 | [
"Apache-2.0"
] | 8 | 2021-08-14T11:12:53.000Z | 2021-11-06T08:36:02.000Z | ip_protocol.cpp | folkertvanheusden/myip | 374802136afad4bd7efafd5931cb04f67c0b4487 | [
"Apache-2.0"
] | 8 | 2021-08-22T11:34:10.000Z | 2021-12-29T13:11:07.000Z | ip_protocol.cpp | folkertvanheusden/myip | 374802136afad4bd7efafd5931cb04f67c0b4487 | [
"Apache-2.0"
] | null | null | null | // (C) 2020 by folkert van heusden <mail@vanheusden.com>, released under Apache License v2.0
#include <chrono>
#include "ip_protocol.h"
#include "utils.h"
constexpr size_t pkts_max_size { 512 };
ip_protocol::ip_protocol(stats *const s, const std::string & stats_name)
{
pkts = new fifo<const packet *>(s, stats_name,... | 21.180556 | 144 | 0.645902 | folkertvanheusden |
f932855ce8ff9510153c6fba8ac23fd35798abfb | 999 | cpp | C++ | videocodering/Encoder/Quantiser.cpp | FlashYoshi/UGentProjects | 5561ce3bb73d5bc5bf31bcda2be7e038514c7072 | [
"MIT"
] | null | null | null | videocodering/Encoder/Quantiser.cpp | FlashYoshi/UGentProjects | 5561ce3bb73d5bc5bf31bcda2be7e038514c7072 | [
"MIT"
] | null | null | null | videocodering/Encoder/Quantiser.cpp | FlashYoshi/UGentProjects | 5561ce3bb73d5bc5bf31bcda2be7e038514c7072 | [
"MIT"
] | 1 | 2019-07-18T11:23:49.000Z | 2019-07-18T11:23:49.000Z | #include "Quantiser.h"
#include <math.h>
#include <stdio.h>
// Breng wijzigingen aan in onderstaande methode
// Quantisatie van de luminanitie- en chrominantiecoefficienten.
// De quantisatiestap qp moet bij het encoderen verschillend zijn van nul aangezien deling door nul niet is toegestaan.
int Quantiser::sign(pixel... | 32.225806 | 119 | 0.608609 | FlashYoshi |
f9332c89d81651c0bce337bd11e78b7ec79d451c | 4,546 | cpp | C++ | QMC2-crypto/qmc2-crypto/StreamCencrypt.cpp | jixunmoe/qmc2 | 4334a64abb4def3d44b1860ac7c34400e2ada85c | [
"MIT"
] | 76 | 2021-12-12T19:07:30.000Z | 2022-03-30T14:31:30.000Z | QMC2-crypto/qmc2-crypto/StreamCencrypt.cpp | jixunmoe/qmc2 | 4334a64abb4def3d44b1860ac7c34400e2ada85c | [
"MIT"
] | 3 | 2021-12-27T09:21:17.000Z | 2022-03-22T01:59:56.000Z | QMC2-crypto/qmc2-crypto/StreamCencrypt.cpp | jixunmoe/qmc2 | 4334a64abb4def3d44b1860ac7c34400e2ada85c | [
"MIT"
] | 16 | 2021-12-12T19:23:46.000Z | 2022-03-11T15:57:18.000Z | #include "qmc2-crypto/StreamCencrypt.h"
#include <cassert>
#include <cstring>
#include <algorithm>
void StreamCencrypt::StreamEncrypt(uint64_t offset, uint8_t *buf, size_t len)
{
if (N > 300)
{
ProcessByRC4(offset, buf, len);
}
else
{
for (size_t i = 0; i < len; i++)
{
buf[i] ^= mapL(offs... | 19.594828 | 90 | 0.602508 | jixunmoe |
f935d5845c9b02a9c2aca16f33c9703cce725ceb | 1,475 | cpp | C++ | Deprecated/Debug/Debug.cpp | Theundeadwarrior/Casiope | f21b53b8e51adb9b341269471443b9dc0f61e9d8 | [
"MIT"
] | 3 | 2016-08-04T05:08:59.000Z | 2018-03-28T04:40:43.000Z | Deprecated/Debug/Debug.cpp | Theundeadwarrior/Casiope | f21b53b8e51adb9b341269471443b9dc0f61e9d8 | [
"MIT"
] | 6 | 2016-08-05T17:57:51.000Z | 2018-03-28T04:41:09.000Z | Deprecated/Debug/Debug.cpp | Theundeadwarrior/Casiope | f21b53b8e51adb9b341269471443b9dc0f61e9d8 | [
"MIT"
] | 1 | 2016-08-16T05:40:59.000Z | 2016-08-16T05:40:59.000Z | #include "Debug.h"
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <string>
#include <Windows.h>
#include <iostream>
namespace Atum
{
namespace Utilities
{
void OutputTrace(char* text, ...)
{
char buffer[256];
va_list args;
va_start (args, text);
vsprintf_s (buffer, text, args);
... | 22.014925 | 97 | 0.660339 | Theundeadwarrior |
f93cbce816eabe0acb98a508a6479f13f027ed1c | 2,930 | cpp | C++ | Rasterizer/src/Light.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | 1 | 2020-03-23T14:36:02.000Z | 2020-03-23T14:36:02.000Z | Rasterizer/src/Light.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | null | null | null | Rasterizer/src/Light.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | null | null | null | #include "Light.h"
#include "Color.h"
#include "Vertex.h"
#include "Maths/Vec4.h"
#include <iostream>
#include <algorithm>
using namespace Maths::Vector;
//ADD LIGHTING HERE EVENTUALLY
Light::Light(const Maths::Vector::Vec3 p_position, const float p_ambient, const float p_diffuse, const float p_specular)
: m_positi... | 30.206186 | 145 | 0.757679 | litelawliet |
f93ce1b91c54c5d7ea4614131913b4c31402e25f | 2,445 | cpp | C++ | compiler-rt/test/tsan/signal_block2.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 2,338 | 2018-06-19T17:34:51.000Z | 2022-03-31T11:00:37.000Z | compiler-rt/test/tsan/signal_block2.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 3,740 | 2019-01-23T15:36:48.000Z | 2022-03-31T22:01:13.000Z | compiler-rt/test/tsan/signal_block2.cpp | mkinsner/llvm | 589d48844edb12cd357b3024248b93d64b6760bf | [
"Apache-2.0"
] | 500 | 2019-01-23T07:49:22.000Z | 2022-03-30T02:59:37.000Z | // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
// The test was reported to hang sometimes on Darwin:
// https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20210517/917003.html
// UNSUPPORTED: darwin
#include "test.h"
#include <signal.h>
#include <string.h>
#include <sys/time.h>
int test;
int d... | 26.576087 | 81 | 0.643354 | mkinsner |
f93da586f7696291600bee410e128438d30e4fbf | 15,828 | cc | C++ | ash/login/ui/login_bubble_unittest.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | ash/login/ui/login_bubble_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | ash/login/ui/login_bubble_unittest.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 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 <memory>
#include <utility>
#include "ash/login/ui/login_bubble.h"
#include "ash/login/ui/login_button.h"
#include "ash/login/ui/login_menu_view... | 36.809302 | 80 | 0.740649 | zipated |
f93f1f10cc37eb7f4b1115bb7731d417a9b66855 | 481 | cpp | C++ | Matrici/el_pozitive.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 11 | 2015-08-29T13:41:22.000Z | 2020-01-08T20:34:06.000Z | Matrici/el_pozitive.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | null | null | null | Matrici/el_pozitive.cpp | rusucosmin/Cplusplus | 0e95cd01d20b22404aa4166c71d5a9e834a5a21b | [
"MIT"
] | 5 | 2016-01-20T18:17:01.000Z | 2019-10-30T11:57:15.000Z | #include <iostream>
using namespace std;
int main()
{
int a[30][30] ,nr, i, j, n, m ;
cout<<"Numar de linii "; cin>>n;
cout<<"Numar de coloane "; cin>>m;
for(i=1; i<=n; i++)
{ for(j=1; j<=m; j++)
{cout<<"a["<<i<<"]["<<j<<"] = "; cin>>a[i][j]; }
if(a[i... | 26.722222 | 64 | 0.37422 | rusucosmin |
f943654563d0575b5057d5468ba72d1f3e85fac9 | 8,700 | cc | C++ | src/main/c/zmq/zmq_pub.cc | bopopescu/hydra | ec0793f8c1f49ceb93bf1f1a9789085b68d55f08 | [
"Apache-2.0"
] | 10 | 2016-05-28T15:56:43.000Z | 2018-01-03T21:30:58.000Z | src/main/c/zmq/zmq_pub.cc | bopopescu/hydra | ec0793f8c1f49ceb93bf1f1a9789085b68d55f08 | [
"Apache-2.0"
] | 17 | 2016-06-06T22:15:28.000Z | 2020-07-22T20:28:12.000Z | src/main/c/zmq/zmq_pub.cc | bopopescu/hydra | ec0793f8c1f49ceb93bf1f1a9789085b68d55f08 | [
"Apache-2.0"
] | 5 | 2016-06-01T22:01:44.000Z | 2020-07-22T20:12:49.000Z |
#include <zmq.hpp>
#include <stdio.h>
#include <unistd.h>
#include <string>
#include <assert.h>
#include <stdlib.h>
#include <ctime>
#include "hdaemon.pb.h"
#include <iostream>
class TestControl {
public:
TestControl() {
publishing = start_publishing = false;
test_duration = 5;
msg_batch = 100;
ms... | 32.222222 | 143 | 0.586667 | bopopescu |
f946696a7d0623b6cb4cc3138e4b97679ef3ab6d | 8,891 | hpp | C++ | test/gaussian_filter/gaussian_filter_linear_vs_x_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | test/gaussian_filter/gaussian_filter_linear_vs_x_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | test/gaussian_filter/gaussian_filter_linear_vs_x_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... | 30.44863 | 91 | 0.614554 | aeolusbot-tommyliu |
f9489c7099d51b45affa6dae1069cc8b8267ccdf | 780 | cpp | C++ | test/TestCommons.cpp | gtauzin/metaLBM | 07291e085962f50848489fd36ece46ce412bdbb5 | [
"MIT"
] | 7 | 2019-10-19T22:58:30.000Z | 2022-03-29T03:45:51.000Z | test/TestCommons.cpp | gtauzin/metaLBM | 07291e085962f50848489fd36ece46ce412bdbb5 | [
"MIT"
] | 1 | 2022-02-04T14:08:45.000Z | 2022-02-05T21:06:28.000Z | test/TestCommons.cpp | gtauzin/metaLBM | 07291e085962f50848489fd36ece46ce412bdbb5 | [
"MIT"
] | 2 | 2021-02-05T23:52:14.000Z | 2021-06-16T02:49:20.000Z | #define BOOST_TEST_MODULE "C++ Unit Tests for metaLBM"
#include <boost/test/included/unit_test.hpp>
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
namespace tt = boost::test_tools;
#include <iostream>
#define NPROCS 1
#include "Lattice.h"
typedef double valueType;
typedef lbm:... | 25.16129 | 58 | 0.755128 | gtauzin |
f94e38df5799ef9f869a4654054e011cac6b46a3 | 13,307 | hpp | C++ | common/cxx/adstlog_cxx/include/adstlog_cxx/adstlog.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/adstlog_cxx/include/adstlog_cxx/adstlog.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/adstlog_cxx/include/adstlog_cxx/adstlog.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <vector>
#include "adstlog_cxx/p7_trace_wrapper.hpp"
// clang-format off
// Actor module registers all of these channels
#define ADSTLOG_ACTOR_CH p7ActorCh_
#define ADSTLOG_MSG_TX_CH p7MsgTxCh_
#define ADSTLOG_MSG_RX_CH p7MsgRxCh_
#define ADSTLOG_GRPC_RX_... | 46.044983 | 116 | 0.690915 | csitarichie |
f952d5cc45ae8b814c1940f16c5fc9eda719b50a | 6,025 | cpp | C++ | src/SearchRange.cpp | emweb/aga | bd7ad699e901168fe1658bea7c3c5d53fa5938e5 | [
"OML",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 13 | 2017-10-12T10:10:55.000Z | 2020-11-12T08:28:43.000Z | src/SearchRange.cpp | emweb/aga | bd7ad699e901168fe1658bea7c3c5d53fa5938e5 | [
"OML",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/SearchRange.cpp | emweb/aga | bd7ad699e901168fe1658bea7c3c5d53fa5938e5 | [
"OML",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 6 | 2018-09-13T04:49:10.000Z | 2020-11-12T08:28:45.000Z | #include "SearchRange.h"
#include "Cigar.h"
SearchRangeItem::SearchRangeItem(Type aType, int aStartColumn, int anEndColumn,
int aStartRow, int anEndRow)
: type(aType),
startRow(aStartRow),
endRow(anEndRow),
startColumn(aStartColumn),
endColumn(anEndColumn)
{ }
std::ostream& operator<<(std::ostr... | 23.720472 | 99 | 0.618257 | emweb |
f953fc44bb7d10293222e69195cbc3c3cdbb7bee | 13,193 | cpp | C++ | samples/examples/imkRecognizeObject-file.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | samples/examples/imkRecognizeObject-file.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | samples/examples/imkRecognizeObject-file.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | /******************************************************************************
* Copyright (c) 2017 Johann Prankl
*
* 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, ... | 35.560647 | 119 | 0.612901 | v4r-tuwien |
f95623fc124c783cd96198949f96e5a69b54b9e0 | 1,560 | cpp | C++ | src/modes/mode_reprint_hbp.cpp | kliment-olechnovic/voronota | 4e3063aa86b44f1f2e7b088ec9976f3e12047549 | [
"MIT"
] | 9 | 2019-08-23T10:46:18.000Z | 2022-03-11T12:20:27.000Z | src/modes/mode_reprint_hbp.cpp | kliment-olechnovic/voronota | 4e3063aa86b44f1f2e7b088ec9976f3e12047549 | [
"MIT"
] | null | null | null | src/modes/mode_reprint_hbp.cpp | kliment-olechnovic/voronota | 4e3063aa86b44f1f2e7b088ec9976f3e12047549 | [
"MIT"
] | 3 | 2020-09-17T19:07:47.000Z | 2021-04-29T01:19:38.000Z | #include "../auxiliaries/program_options_handler.h"
#include "../auxiliaries/atoms_io.h"
#include "../auxiliaries/io_utilities.h"
#include "../common/chain_residue_atom_descriptor.h"
void reprint_hbp(const voronota::auxiliaries::ProgramOptionsHandler& poh)
{
voronota::auxiliaries::ProgramOptionsHandlerWrapper pohw(p... | 42.162162 | 184 | 0.771154 | kliment-olechnovic |
f9567c21e5efba5d8f92be3281a01b12c87beb69 | 485 | cpp | C++ | src/tema fisa for/ex 4 e/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/tema fisa for/ex 4 e/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/tema fisa for/ex 4 e/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int a,b,x,i=0,cx;
cout<<"a= ";
cin>>a;
cout<<"b= ";
cin>>b;
x=a;
cx=x;
for(x; x<=b; x++)
{
cx=x;
while(cx!=0)
{
if(cx%10==0)
{
i=i+1;
cx=0;
... | 13.472222 | 52 | 0.31134 | andrew-miroiu |
f959c903e7d50b358684b12ef918d3179555705b | 4,509 | cpp | C++ | unit_tests/main.cpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | unit_tests/main.cpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | unit_tests/main.cpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "hfn/config.hpp"
#include "hfn/cxstring.hpp"
#include "hfn/digest.hpp"
#include "hfn/fnv1a.hpp"
#include "hfn/murmur3.hpp"
#include "hfn/rhid.hpp"
#include "hfn/type_hash.hpp"
#include "hfn/wyhash.hpp"
#include "hfn/xxhash.hpp"
#include <catch2/catch.hpp>
#include <iostream>
class ty... | 32.673913 | 92 | 0.664005 | obhi-d |
f959e804126995f18a040d22d82f3909666733f0 | 511 | cpp | C++ | Util/WebUrl.cpp | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 150 | 2015-01-14T15:06:38.000Z | 2018-08-28T09:34:17.000Z | Util/WebUrl.cpp | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 28 | 2015-05-11T02:45:39.000Z | 2018-08-24T11:43:17.000Z | Util/WebUrl.cpp | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 91 | 2015-05-04T09:52:41.000Z | 2018-08-18T13:02:15.000Z | #include "WebUrl.h"
using namespace std;
WebUrl::WebUrl() {}
WebUrl::~WebUrl() {}
string WebUrl::CutParam(string url, string param)
{
int index = url.find("?" + param + "=");
if (index < 0)
{
index = url.find("&" + param + "=");
}
if (index < 0)
return string();
int index2 = index + 1 + (param + "=").lengt... | 18.25 | 49 | 0.60274 | SoftlySpoken |
f9601f472091e6a18894fa6522a21e9160e64b8c | 4,786 | cpp | C++ | PageRepository/Source/Page.cpp | DiplodocusDB/PhysicalStorage | 9b110471d14300873a9067b25b0825727c178549 | [
"MIT"
] | null | null | null | PageRepository/Source/Page.cpp | DiplodocusDB/PhysicalStorage | 9b110471d14300873a9067b25b0825727c178549 | [
"MIT"
] | 19 | 2018-01-20T14:38:20.000Z | 2018-01-26T22:58:52.000Z | PageRepository/Source/Page.cpp | DiplodocusDB/PhysicalStorage | 9b110471d14300873a9067b25b0825727c178549 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018-2019 Xavier Leclercq
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.361963 | 117 | 0.649603 | DiplodocusDB |
f96c117a5b81a2b6b456ee21a20b141634852997 | 8,129 | cpp | C++ | d20/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | d20/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | d20/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#include "../helpers/string_helpers.cpp"
typedef long long int ll;
struct Tile{
ll id;
vector<string> pattern;
int width, height;
Tile(){ throw runtime_error("No Way!"); }
Tile(ll id, vector<string> pattern) : id(id), pattern(pattern){
height = pattern.size()... | 17.905286 | 85 | 0.558986 | webdeveloperukraine |
f96c326286a20d184db4bb728848da1abf9f28fe | 2,663 | cpp | C++ | source/line.cpp | Zylon-D-Lite/drawingPrototype | 60caa86e72ad7fd36aed15679b003747c69e81c6 | [
"MIT"
] | null | null | null | source/line.cpp | Zylon-D-Lite/drawingPrototype | 60caa86e72ad7fd36aed15679b003747c69e81c6 | [
"MIT"
] | null | null | null | source/line.cpp | Zylon-D-Lite/drawingPrototype | 60caa86e72ad7fd36aed15679b003747c69e81c6 | [
"MIT"
] | null | null | null | #include "./line.hpp"
const png::rgba_pixel Line::WHITE_PIXEL = png::rgba_pixel(255, 255, 255, 255);
const png::rgba_pixel Line::BLACK_PIXEL = png::rgba_pixel(0, 0, 0, 255);
const png::rgba_pixel Line::TRANSPARENT_PIXEL = png::rgba_pixel(0, 0, 0, 0);
const png::rgba_pixel Line::RED_PIXEL = png::rgba_pixel(255, 0, 0, 2... | 39.161765 | 86 | 0.607585 | Zylon-D-Lite |
f96d0aa3ae182e22ac149151167544afb5674954 | 15,323 | cpp | C++ | ppm_image.cpp | gulesh/pixmap-ops | 573afdd349d7e4913d7dbc60f0b9d3edd33b39ca | [
"MIT"
] | null | null | null | ppm_image.cpp | gulesh/pixmap-ops | 573afdd349d7e4913d7dbc60f0b9d3edd33b39ca | [
"MIT"
] | null | null | null | ppm_image.cpp | gulesh/pixmap-ops | 573afdd349d7e4913d7dbc60f0b9d3edd33b39ca | [
"MIT"
] | null | null | null | #include "ppm_image.h"
#include <string>
#include <fstream>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace agl;
using namespace std;
ppm_image::ppm_image()
{
imageWidth = 0;
imageHeight = 0;
pixelArray= nullptr;
}
ppm_image::ppm_image(int w, int h)
{
imageWidth = w;
imag... | 26.835377 | 125 | 0.559812 | gulesh |
f96f63c2c2a06f5743891f2fd243ece7b1615cb4 | 608 | cpp | C++ | server/src/extension_queue/queue.cpp | valmat/queueServer | 6626e99cd4fccca6f2ae17b8cc33ef151b651b5d | [
"BSD-3-Clause"
] | 4 | 2017-09-25T12:23:22.000Z | 2019-02-19T14:15:46.000Z | server/src/extension_queue/queue.cpp | valmat/queueServer | 6626e99cd4fccca6f2ae17b8cc33ef151b651b5d | [
"BSD-3-Clause"
] | 1 | 2019-02-25T17:53:32.000Z | 2019-02-27T06:57:35.000Z | server/src/extension_queue/queue.cpp | valmat/queueServer | 6626e99cd4fccca6f2ae17b8cc33ef151b651b5d | [
"BSD-3-Clause"
] | 1 | 2019-02-19T13:42:29.000Z | 2019-02-19T13:42:29.000Z | /**
* RocksServer plugin
* https://github.com/valmat/queueServer
*/
#include "../include.h"
#include "RequestMoveFirstPref.h"
#include "RequestFirstPref.h"
#include "RequestGetIncr.h"
using namespace RocksServer;
/*
* Create plugin
*
* @param extension object of Extension
* @param rdb wrapped ob... | 20.266667 | 65 | 0.641447 | valmat |
f9711d8fdecf29560f186cbd4c4f86ee0342ff38 | 3,739 | cpp | C++ | Core-src/AnalyzeWindow.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 6 | 2015-03-04T19:41:12.000Z | 2022-03-27T09:44:25.000Z | Core-src/AnalyzeWindow.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 20 | 2015-03-03T21:02:20.000Z | 2021-08-02T13:26:59.000Z | Core-src/AnalyzeWindow.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 8 | 2015-02-23T19:10:32.000Z | 2020-10-26T08:03:00.000Z | /*
Copyright (c) 2003, Xentronix
Author: Frans van Nispen (frans@xentronix.com)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright ... | 30.647541 | 101 | 0.61487 | HaikuArchives |
f972af1ee36532247bf190e9808e6e5d4a624d8e | 708 | hpp | C++ | include/RadonFramework/IO/ConsoleUI/With.hpp | tak2004/RF_Console | b2a1114b4e948281c64b085eb407926704ecc7cb | [
"Apache-2.0"
] | null | null | null | include/RadonFramework/IO/ConsoleUI/With.hpp | tak2004/RF_Console | b2a1114b4e948281c64b085eb407926704ecc7cb | [
"Apache-2.0"
] | null | null | null | include/RadonFramework/IO/ConsoleUI/With.hpp | tak2004/RF_Console | b2a1114b4e948281c64b085eb407926704ecc7cb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <RadonFramework/IO/ConsoleUI/Component.hpp>
#include <RadonFramework/IO/ConsoleUI/ComponentOperator.hpp>
#include <RadonFramework/IO/ConsoleUI/State.hpp>
namespace RadonFramework::IO::ConsoleUI
{
template <class T>
struct With : public ComponentOperator
{
template <int N>
With(char const (&... | 21.454545 | 60 | 0.710452 | tak2004 |
f976e1c6bc0d2cac86d70e577b4df9a1003f5863 | 4,967 | cc | C++ | pmem-mariadb/storage/tokudb/PerconaFT/src/tests/test_cursor_delete2.cc | wc222/pmdk-examples | 64aadc3a70471c469ac8e214eb1e04ff47cf18ff | [
"BSD-3-Clause"
] | 11 | 2017-10-28T08:41:08.000Z | 2021-06-24T07:24:21.000Z | pmem-mariadb/storage/tokudb/PerconaFT/src/tests/test_cursor_delete2.cc | WSCWDA/pmdk-examples | c3d079e52cd18b0e14836ef42bad9a995336bf90 | [
"BSD-3-Clause"
] | 1 | 2021-02-24T05:26:44.000Z | 2021-02-24T05:26:44.000Z | pmem-mariadb/storage/tokudb/PerconaFT/src/tests/test_cursor_delete2.cc | isabella232/pmdk-examples | be7a5a18ba7bb8931e512f6d552eadf820fa2235 | [
"BSD-3-Clause"
] | 4 | 2017-09-07T09:33:26.000Z | 2021-02-19T07:45:08.000Z | /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... | 45.154545 | 114 | 0.476545 | wc222 |
f97a4336ab04e9446d773096c45ca5d954126da6 | 1,205 | cpp | C++ | Challenge-2021-04/08_letter_combinations_of_a_phone_number.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2021-04/08_letter_combinations_of_a_phone_number.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2021-04/08_letter_combinations_of_a_phone_number.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | #include "../header.h"
class Solution {
public:
vector<string> letterCombinations(string digits) {
if (digits.length() == 0) {
return {};
}
unordered_map<char, string> m;
m['2'] = "abc";
m['3'] = "def";
m['4'] = "ghi";
m['5'] = "jkl";
m['6']... | 25.104167 | 121 | 0.509544 | qiufengyu |
f97d1a9270894f9dc0a87e4b98415bcd3e15cd13 | 2,071 | hpp | C++ | Libs/SceneGraph/PlantNode.hpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/SceneGraph/PlantNode.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/SceneGraph/PlantNode.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef CAFU_TREE_NODE_HPP_INCLUDED
#define CAFU_TREE_NODE_HPP_INCLUDED
#include "Node.hpp"
#include "Plants/Tree.hpp"
struct PlantDescriptionT;
class PlantDescrMan... | 30.455882 | 146 | 0.633028 | dns |
f97f1b80cd830250828379c88056dfae3aa0c8f6 | 3,247 | hpp | C++ | modules/engine/include/randar/Render/Geometry.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | 1 | 2016-11-12T02:43:29.000Z | 2016-11-12T02:43:29.000Z | modules/engine/include/randar/Render/Geometry.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | null | null | null | modules/engine/include/randar/Render/Geometry.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | null | null | null | #ifndef RANDAR_RENDER_GEOMETRY_HPP
#define RANDAR_RENDER_GEOMETRY_HPP
#include <randar/Render/Primitive.hpp>
#include <randar/Render/ShaderProgram.hpp>
#include <randar/Render/VertexBuffer.hpp>
namespace randar
{
class Geometry : public GraphicsContextResource
{
public:
VertexBuffer vertices;
... | 25.769841 | 80 | 0.558978 | litty-studios |
f97f4fbe581321f5293e8955e8f7d600fd259aba | 13,240 | cpp | C++ | dependencies/HDRTools/common/src/DisplayGammaAdjustHLG.cpp | rudals0215/AR-streaming-with-MPEG-DASH | 7c9f24a2eed7f756e51451670286a11351a6b877 | [
"MIT"
] | null | null | null | dependencies/HDRTools/common/src/DisplayGammaAdjustHLG.cpp | rudals0215/AR-streaming-with-MPEG-DASH | 7c9f24a2eed7f756e51451670286a11351a6b877 | [
"MIT"
] | null | null | null | dependencies/HDRTools/common/src/DisplayGammaAdjustHLG.cpp | rudals0215/AR-streaming-with-MPEG-DASH | 7c9f24a2eed7f756e51451670286a11351a6b877 | [
"MIT"
] | 1 | 2021-07-07T00:53:49.000Z | 2021-07-07T00:53:49.000Z | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* <OWNER> = British Broadcasting Corporation (BBC).
* <ORGA... | 43.84106 | 151 | 0.649245 | rudals0215 |
f98335835b564975be345d5087b058a382845d32 | 5,545 | cpp | C++ | src/TransitionHandler.cpp | MacaroniDamage/FabulousNeopixelFirmware | 4ebf638f9d053629dd2eb81039cc153755d55668 | [
"MIT"
] | 2 | 2021-06-05T15:26:29.000Z | 2021-06-05T23:50:09.000Z | src/TransitionHandler.cpp | MacaroniDamage/FabulousNeopixelFirmware | 4ebf638f9d053629dd2eb81039cc153755d55668 | [
"MIT"
] | null | null | null | src/TransitionHandler.cpp | MacaroniDamage/FabulousNeopixelFirmware | 4ebf638f9d053629dd2eb81039cc153755d55668 | [
"MIT"
] | null | null | null | /**
* @file TransitionHandler.cpp
* @author MacaroniDamage
* @brief Executes state machine that handel transitions to different
* stages
* @version 0.1
* @date 2020-12-18
*
*
*/
#include "TransitionHandler.h"
/** Configures the instace so that
* it triggers the wished state machine
**/
void Transiti... | 25.911215 | 87 | 0.70532 | MacaroniDamage |
f9847bb79e52b2a28bc39127617f9544416c7709 | 7,076 | cp | C++ | Win32/Sources/Application/SMTP_Queue/CSMTPView.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Win32/Sources/Application/SMTP_Queue/CSMTPView.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Win32/Sources/Application/SMTP_Queue/CSMTPView.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. 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.110638 | 172 | 0.71368 | mulberry-mail |
f988503b86a58fce537ef8d81853b4f82278da5b | 111,478 | cpp | C++ | src/newsview.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 9 | 2020-04-01T04:15:22.000Z | 2021-09-26T21:03:47.000Z | src/newsview.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 17 | 2020-04-02T19:38:40.000Z | 2020-04-12T05:47:08.000Z | src/newsview.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... | 28.222278 | 152 | 0.61866 | taviso |
f98a0cdf5f2a3eee6a87ac19dbb2e18e2198ddcd | 1,283 | cpp | C++ | Tree/BalancedTree/BalancedTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Tree/BalancedTree/BalancedTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Tree/BalancedTree/BalancedTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | /*
Problem statement: Given a binary tree, find if it is height balanced or not. A tree is height balanced if difference between heights of left and right subtrees is
not more than one for all nodes of tree.
Constraints:
1<= N <= 10^4
Approach: To check if a tree is height-balanced, get the height of left and right... | 27.891304 | 163 | 0.681216 | PrachieNaik |
f98b56f403871a3056dd8284deee2b49b92ca23d | 4,718 | cpp | C++ | src/model_loading/model.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | src/model_loading/model.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | src/model_loading/model.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | //
// model.cpp
//
// Created by Clsrfish on 08/10/2020
//
#include "./model.h"
#include "../gl/gl_utils.h"
model_loading::Model::Model(const std::string &modelPath)
{
loadModel(modelPath);
}
void model_loading::Model::Draw(const Shader &shader)
{
for (unsigned int i = 0; i < Meshes.size(); i++)
{
... | 31.453333 | 152 | 0.602798 | clsrfish |
f98fc6fe889504295cefaf5aa7436bc071f81e98 | 7,042 | hpp | C++ | src/Utilities/NMatrix/NLine.hpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Utilities/NMatrix/NLine.hpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Utilities/NMatrix/NLine.hpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | /**
* \file NLine.hpp
* \author fcaillaud
* \version 1.0
* \date 2 Avril 2014
* \brief Fichier décrivant la classe NLine.
* \details Classe utilisée pour représenter une ligne ou colonne de matrice (plus ou moins un vecteur).
* \todo Réfléchir à une meilleure approche pour toute la classe.
*/
#... | 24.883392 | 164 | 0.598268 | fcaillaud |
f9950c4c127eed8eb765a4f79dff18707a5a927e | 1,141 | cpp | C++ | libs/charconv/src/charconv/fcppt_string_to_utf8_file.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/charconv/src/charconv/fcppt_string_to_utf8_file.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/charconv/src/charconv/fcppt_string_to_utf8_file.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/charconv/fcppt_string_to_utf8.hpp>
#include <sge/charconv/fcppt_string_to_utf8_file.h... | 31.694444 | 92 | 0.69851 | cpreh |
f995a5ef4619ff65e37e0210dd58371372442922 | 158 | cpp | C++ | MathTools/Point.cpp | richardchien/math-tools-ios | 956b77d91afd7bb78dd02a5027180de72d9d6a29 | [
"MIT"
] | null | null | null | MathTools/Point.cpp | richardchien/math-tools-ios | 956b77d91afd7bb78dd02a5027180de72d9d6a29 | [
"MIT"
] | null | null | null | MathTools/Point.cpp | richardchien/math-tools-ios | 956b77d91afd7bb78dd02a5027180de72d9d6a29 | [
"MIT"
] | null | null | null | //
// Point.cpp
// MathTools
//
// Created by Richard Chien on 14-1-31.
// Copyright (c) 2014年 Richard Chien. All rights reserved.
//
#include "Point.h"
| 15.8 | 59 | 0.64557 | richardchien |
f99ccbcf7cb99a16654eacebaf9f4850000193f9 | 1,233 | cpp | C++ | src/QBtAuxFunctions.cpp | ftylitak/QBluetoothZero | 3e4a018a5e62705b62fa2cbc64a27c3f66059982 | [
"Apache-2.0"
] | 2 | 2018-02-05T13:22:49.000Z | 2019-01-19T12:04:20.000Z | src/QBtAuxFunctions.cpp | ftylitak/QBluetoothZero | 3e4a018a5e62705b62fa2cbc64a27c3f66059982 | [
"Apache-2.0"
] | 1 | 2018-02-04T18:37:50.000Z | 2018-02-05T23:16:31.000Z | src/QBtAuxFunctions.cpp | ftylitak/QBluetoothZero | 3e4a018a5e62705b62fa2cbc64a27c3f66059982 | [
"Apache-2.0"
] | 3 | 2018-05-24T02:35:43.000Z | 2019-02-28T16:38:52.000Z | #include "QBtAuxFunctions.h"
#ifdef Q_OS_WIN32
bool QBtAuxFunctions::InitBthSdk()
{
if ( sdkInitializationCounter == 0) /* not connected with BlueSoleil */
{
if (Btsdk_Init() != BTSDK_OK)
return false;
if (Btsdk_IsBluetoothReady() == BTSDK_FALSE)
Btsdk_StartB... | 27.4 | 99 | 0.665856 | ftylitak |
f9a02a599df97e56a3b57d258939f6fc32e01d64 | 610 | cpp | C++ | source/343.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/343.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/343.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 343.cpp
// LeetCode
//
// Created by Narikbi on 23.02.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <cma... | 16.052632 | 66 | 0.539344 | narikbi |
f9a413b98940eca59f60296c27675bf0b29f1a73 | 1,456 | cpp | C++ | pico-cnn/layers/pooling/pooling.cpp | ekut-es/pico-cnn | 18ef2ae0afd7ac9c0e18c293f2f2478a5f78c66c | [
"BSD-3-Clause"
] | 43 | 2019-06-18T13:53:24.000Z | 2021-12-24T17:37:56.000Z | pico-cnn/layers/pooling/pooling.cpp | ekut-es/pico-cnn | 18ef2ae0afd7ac9c0e18c293f2f2478a5f78c66c | [
"BSD-3-Clause"
] | 12 | 2020-06-01T00:54:37.000Z | 2022-02-10T01:40:23.000Z | pico-cnn/layers/pooling/pooling.cpp | ekut-es/pico-cnn | 18ef2ae0afd7ac9c0e18c293f2f2478a5f78c66c | [
"BSD-3-Clause"
] | 6 | 2020-11-02T19:58:55.000Z | 2021-12-24T17:38:02.000Z | #include "pooling.h"
pico_cnn::naive::Pooling::Pooling(std::string name, uint32_t id, pico_cnn::op_type op, uint32_t *kernel_size,
uint32_t *stride, uint32_t *padding) : Layer(name, id, op) {
if (kernel_size) {
kernel_size_ = new uint32_t[2]();
std::memcpy(kernel_... | 26.962963 | 109 | 0.574176 | ekut-es |
f9a62c668e2250f899b7b3e209bda4e68f8183bc | 2,605 | cpp | C++ | droneArchitectureRvizInterfaceROSModule/src/source/swarmAgentInterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneArchitectureRvizInterfaceROSModule/src/source/swarmAgentInterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneArchitectureRvizInterfaceROSModule/src/source/swarmAgentInterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | #include "swarmAgentInterface.h"
#include "RvizInteractiveMarkerDisplay.h"
SwarmAgentInterface::SwarmAgentInterface(int idDrone_in)
{
idDrone = idDrone_in;
return;
}
SwarmAgentInterface::~SwarmAgentInterface()
{
return;
}
void SwarmAgentInterface::open(ros::NodeHandle &nIn)
{
n = nIn;
loc... | 30.290698 | 250 | 0.761996 | MorS25 |
f9a85337ac0427c6189842eb22ef8534aa49fb95 | 6,279 | cpp | C++ | MakeBuild/MakeBuild/CMakeFile.cpp | mooming/make_builder | e5aa68d4c922b3343cb032c0201126b9ed85ae37 | [
"MIT"
] | 1 | 2018-09-29T01:36:18.000Z | 2018-09-29T01:36:18.000Z | MakeBuild/MakeBuild/CMakeFile.cpp | mooming/make_builder | e5aa68d4c922b3343cb032c0201126b9ed85ae37 | [
"MIT"
] | null | null | null | MakeBuild/MakeBuild/CMakeFile.cpp | mooming/make_builder | e5aa68d4c922b3343cb032c0201126b9ed85ae37 | [
"MIT"
] | null | null | null | //
// CMakeFile.cpp
// mbuild
//
// Created by mooming on 2016. 8. 15..
//
//
#include "CMakeFile.h"
#include "StringUtil.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
using namespace Builder;
namespace
{
void AddFrameworks(ostream& os, string projName, cons... | 23.965649 | 93 | 0.563306 | mooming |