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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e86580daa5ca80d60608bb645e9f4c1a64d95dbb | 723 | cpp | C++ | Baekjoon/1864.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/1864.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/1864.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <math.h>
using namespace std;
int main(void)
{
while (1)
{
int len;
long long ans = 0;
string str;
cin >> str;
if (str == "#")
break;
len = str.length();
for (int i = 1; i <= len; i++)
{
int tmp;
switch (str[i - 1])
{
case '-':
tmp = 0... | 12.910714 | 32 | 0.428769 | Twinparadox |
e866fc219c43821e3401ee5cd626dd689ced361e | 419 | cpp | C++ | ShaderGLTest/DeviceTest.cpp | EPAC-Saxon/environment-map-JuliePreperier | cd024b83236af8cffa2262cad988b43b2f725dcb | [
"MIT"
] | null | null | null | ShaderGLTest/DeviceTest.cpp | EPAC-Saxon/environment-map-JuliePreperier | cd024b83236af8cffa2262cad988b43b2f725dcb | [
"MIT"
] | null | null | null | ShaderGLTest/DeviceTest.cpp | EPAC-Saxon/environment-map-JuliePreperier | cd024b83236af8cffa2262cad988b43b2f725dcb | [
"MIT"
] | null | null | null | #include "DeviceTest.h"
namespace test {
TEST_F(DeviceTest, CreateDeviceTest)
{
EXPECT_FALSE(device_);
EXPECT_TRUE(window_);
device_ = window_->CreateDevice();
EXPECT_TRUE(device_);
}
TEST_F(DeviceTest, StartupDeviceTest)
{
EXPECT_FALSE(device_);
EXPECT_TRUE(window_);
device_ = window_->CreateDevi... | 18.217391 | 39 | 0.720764 | EPAC-Saxon |
e869452700f1b03baa6cdbc2145af4dbd911b9a0 | 232 | cpp | C++ | src/static/INDI2/oldEIRlibs/eirCore/VariableIdList.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | null | null | null | src/static/INDI2/oldEIRlibs/eirCore/VariableIdList.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | 14 | 2016-11-24T10:46:39.000Z | 2016-12-10T07:24:15.000Z | src4/static/INDI2/oldEIRlibs/eirCore/VariableIdList.cpp | eirTony/INDI1 | 42642d8c632da53f60f2610b056547137793021b | [
"MIT"
] | null | null | null | #include "VariableIdList.h"
VariableIdList::VariableIdList(void)
{
}
VariableIdList::operator QStringList(void) const
{
QStringList result;
int x = 0;
while (x < size())
result << at(x++);
return result;
}
| 15.466667 | 48 | 0.642241 | eirTony |
e869522693033156f078c7142ef3fd7e6a5513d1 | 905 | cpp | C++ | task week 4/2.cpp | sekharkaredla/Cpp_Programs | e026d3322da5913e327033cb5d4787665998aef3 | [
"MIT"
] | null | null | null | task week 4/2.cpp | sekharkaredla/Cpp_Programs | e026d3322da5913e327033cb5d4787665998aef3 | [
"MIT"
] | null | null | null | task week 4/2.cpp | sekharkaredla/Cpp_Programs | e026d3322da5913e327033cb5d4787665998aef3 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
void multi(int p[10][10],int q[10][10],int r[10][10],int m,int n,int q1)
{
int i,j,k;
for(i=0;i<m;i++)
{
for(j=0;j<q1;j++)
{
r[i][j]=0;
for(k=0;k<n;k++)
r[i][j]+=p[i][k]*q[k][j];
}
}
}
int main()
{
int p[10][10],q[10][10],r[10][10];int m,n,p1,q1,i,j;
cout<<"... | 17.075472 | 72 | 0.516022 | sekharkaredla |
e86bf1829ae08a4b9669d9528dbb04e4aa6b9357 | 966 | hpp | C++ | SignalDrivers/Hardware/ioport.hpp | NikitaEvs/signal_stm | 15fa04392261c535f9104ddc0bbaf07f032421a6 | [
"Apache-2.0"
] | null | null | null | SignalDrivers/Hardware/ioport.hpp | NikitaEvs/signal_stm | 15fa04392261c535f9104ddc0bbaf07f032421a6 | [
"Apache-2.0"
] | null | null | null | SignalDrivers/Hardware/ioport.hpp | NikitaEvs/signal_stm | 15fa04392261c535f9104ddc0bbaf07f032421a6 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "port.hpp"
#include "abstract_master.hpp"
namespace SD {
namespace Hardware {
/**
* @brief Wrapper for the base Port abstraction that adds Set/Reset function
* and an initialization using Master
*/
class IOPort : public Port {
public:
/**
* @brief Simple port initialization with a nec... | 20.125 | 76 | 0.665631 | NikitaEvs |
e86da2ffbad3214f4dabd9f72336f4378c095554 | 4,577 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/database/sqlite/SQLiteDatabaseConfiguration.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/database/sqlite/SQLiteDatabaseConfiguration.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/database/sqlite/SQLiteDatabaseConfiguration.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 33.408759 | 106 | 0.68298 | jingcao80 |
e8723c5fbdd7e309ac8ce14e83abe546ca922631 | 7,026 | cpp | C++ | link/sample/LinkMainWindow.cpp | hasboeuf/hb | d812f2ef56d7c79983701f1f673ce666b189b638 | [
"MIT"
] | 1 | 2019-03-23T22:41:16.000Z | 2019-03-23T22:41:16.000Z | link/sample/LinkMainWindow.cpp | hasboeuf/hb | d812f2ef56d7c79983701f1f673ce666b189b638 | [
"MIT"
] | null | null | null | link/sample/LinkMainWindow.cpp | hasboeuf/hb | d812f2ef56d7c79983701f1f673ce666b189b638 | [
"MIT"
] | null | null | null | // Qt
#include <QtCore/QUrl>
#include <QtCore/QUrlQuery>
#include <QtNetwork/QNetworkReply>
// Hb
#include <core/HbDictionaryHelper.h>
#include <facebook/HbO2ClientFacebook.h>
#include <facebook/HbO2ServerFacebook.h>
#include <facebook/api/HbFacebookUser.h>
#include <google/HbO2ClientGoogle.h>
#include <google/HbO2Serv... | 31.936364 | 120 | 0.689724 | hasboeuf |
e8733a243d1afe3f607d174ad6e6f58df9b7e3b8 | 829 | cpp | C++ | C++/C++ Advanced Nov 2019/12. Exam Preparation/DemoExam_Description/01. Census/CensusMain.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | 1 | 2019-07-21T13:00:31.000Z | 2019-07-21T13:00:31.000Z | C++/C++ Advanced Nov 2019/12. Exam Preparation/DemoExam_Description/01. Census/CensusMain.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | null | null | null | C++/C++ Advanced Nov 2019/12. Exam Preparation/DemoExam_Description/01. Census/CensusMain.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include "City.h"
#include "CityUtils.h"
int main() {
std::cin.sync_with_stdio(false);
std::cout.sync_with_stdio(false);
std::vector<const City*> cities;
int numCities;
std::cin >> numCities;
for (int i = 0; i < numCities; i++) {
std::string n... | 21.25641 | 100 | 0.661037 | galin-kostadinov |
e87c87813e3be824f3b0f8a59c95dbc4e3be6bcd | 13,182 | cc | C++ | source/blender/depsgraph/intern/nodes/deg_node_component.cc | 1-MillionParanoidTterabytes/Blender-2.79b-blackened | e8d767324e69015aa66850d13bee7db1dc7d084b | [
"Unlicense"
] | 2 | 2018-06-18T01:50:25.000Z | 2018-06-18T01:50:32.000Z | source/blender/depsgraph/intern/nodes/deg_node_component.cc | 1-MillionParanoidTterabytes/Blender-2.79b-blackened | e8d767324e69015aa66850d13bee7db1dc7d084b | [
"Unlicense"
] | null | null | null | source/blender/depsgraph/intern/nodes/deg_node_component.cc | 1-MillionParanoidTterabytes/Blender-2.79b-blackened | e8d767324e69015aa66850d13bee7db1dc7d084b | [
"Unlicense"
] | null | null | null | /*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 d... | 30.655814 | 105 | 0.692459 | 1-MillionParanoidTterabytes |
e8832e47044d3687c0d0f79385ef7692eaf1d68b | 5,410 | hpp | C++ | Nacro/SDK/FN_AthenaCustomizationSlotButton_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_AthenaCustomizationSlotButton_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_AthenaCustomizationSlotButton_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass AthenaCustomizatio... | 93.275862 | 644 | 0.642144 | Milxnor |
e883a451e601c9b9b21ab8aaa496578cb156eb07 | 8,825 | cpp | C++ | src/prod/src/Management/DnsService/test/Helpers/DnsHelper.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 2,542 | 2018-03-14T21:56:12.000Z | 2019-05-06T01:18:20.000Z | src/prod/src/Management/DnsService/test/Helpers/DnsHelper.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 994 | 2019-05-07T02:39:30.000Z | 2022-03-31T13:23:04.000Z | src/prod/src/Management/DnsService/test/Helpers/DnsHelper.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 300 | 2018-03-14T21:57:17.000Z | 2019-05-06T20:07:00.000Z | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 31.183746 | 137 | 0.665609 | vishnuk007 |
e885c8e86dcc42189f8cf0a89042139f50dd1d88 | 1,393 | cpp | C++ | src/pathutils.cpp | merelabs/mere-utils | 26e4bc834e9b506d7939a9154f14e300458262c1 | [
"BSD-2-Clause"
] | null | null | null | src/pathutils.cpp | merelabs/mere-utils | 26e4bc834e9b506d7939a9154f14e300458262c1 | [
"BSD-2-Clause"
] | null | null | null | src/pathutils.cpp | merelabs/mere-utils | 26e4bc834e9b506d7939a9154f14e300458262c1 | [
"BSD-2-Clause"
] | null | null | null | #include "pathutils.h"
#include <sys/stat.h>
#include <unistd.h>
#include <iostream>
//static
bool Mere::Utils::PathUtils::exists(const std::string &path)
{
struct stat s;
stat(path.c_str(), &s);
//S_ISDIR(s.st_mode) || S_ISREG(s.st_mode) || S_ISFIFO(s.st_mode) || S_ISLNK(s.st_mode) || S_ISSOCK(s.st_mode... | 20.485294 | 115 | 0.605887 | merelabs |
e886ad54105d8b37897a115fbfd4b2dd6efb2eb3 | 3,896 | hpp | C++ | src/univang/format/format_context.hpp | bibmaster/nx.format | 0993832a678bea4c1c005a97fba414557985356f | [
"MIT"
] | 7 | 2019-10-08T13:11:07.000Z | 2020-01-30T21:29:18.000Z | src/univang/format/format_context.hpp | bibmaster/nx.format | 0993832a678bea4c1c005a97fba414557985356f | [
"MIT"
] | null | null | null | src/univang/format/format_context.hpp | bibmaster/nx.format | 0993832a678bea4c1c005a97fba414557985356f | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <cstddef>
#include <cstring>
#include <stdexcept>
#include <string_view>
namespace univang {
namespace fmt {
class format_context {
public:
#if FMT_RESPECT_ALIASING
using byte = std::byte;
#else
enum class byte : char {};
#endif
format_context() = default;
cons... | 25.973333 | 77 | 0.587269 | bibmaster |
e88a0e10bd069e49e0342ae21caf69cc35eb2cb9 | 3,376 | cpp | C++ | src/main.cpp | Piripant/sbodies | 19f4cbf4ec449706f82667c7875a2534aa367d76 | [
"MIT"
] | 1 | 2021-01-16T04:14:35.000Z | 2021-01-16T04:14:35.000Z | src/main.cpp | Piripant/sbodies | 19f4cbf4ec449706f82667c7875a2534aa367d76 | [
"MIT"
] | null | null | null | src/main.cpp | Piripant/sbodies | 19f4cbf4ec449706f82667c7875a2534aa367d76 | [
"MIT"
] | null | null | null | #include "world.h"
#include <SFML/Graphics.hpp>
#include <iostream>
#include <imgui.h>
#include <imgui-SFML.h>
int scale = 20;
sf::Color colors[2] = {
sf::Color(0, 0, 0),
sf::Color(0, 0, 255)
};
float step_time = 0.1;
bool mouse_pressed = false;
int press_y = 0;
int press_x = 0;
int nvertex ... | 28.854701 | 98 | 0.492595 | Piripant |
e88b7fbeebf95dab16a329dd96c4039f1bef2bdc | 15,228 | cpp | C++ | src/uml/src_gen/uml/impl/ActivityGroupImpl.cpp | MDE4CPP/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 12 | 2017-02-17T10:33:51.000Z | 2022-03-01T02:48:10.000Z | src/uml/src_gen/uml/impl/ActivityGroupImpl.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 28 | 2017-10-17T20:23:52.000Z | 2021-03-04T16:07:13.000Z | src/uml/src_gen/uml/impl/ActivityGroupImpl.cpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 22 | 2017-03-24T19:03:58.000Z | 2022-03-31T12:10:07.000Z | #include "uml/impl/ActivityGroupImpl.hpp"
#ifdef NDEBUG
#define DEBUG_MESSAGE(a) /**/
#else
#define DEBUG_MESSAGE(a) a
#endif
#ifdef ACTIVITY_DEBUG_ON
#define ACT_DEBUG(a) a
#else
#define ACT_DEBUG(a) /**/
#endif
//#include "util/ProfileCallCount.hpp"
#include <cassert>
#include <iostream>
#include <sstre... | 26.575916 | 242 | 0.690307 | MDE4CPP |
e88be034b39482a4054c2ab7039392fcc995080c | 1,053 | cpp | C++ | 07. Sorting/InsersionSort.cpp | R-Arpita/DSA-cpp-Hacktoberfest2021 | acc7896fe30ddd54bcf4ec7bb93bd1f0b30b3bc5 | [
"MIT"
] | 149 | 2021-09-17T17:11:06.000Z | 2021-10-01T17:32:18.000Z | 07. Sorting/InsersionSort.cpp | R-Arpita/DSA-cpp-Hacktoberfest2021 | acc7896fe30ddd54bcf4ec7bb93bd1f0b30b3bc5 | [
"MIT"
] | 138 | 2021-09-29T14:04:05.000Z | 2021-10-01T17:43:18.000Z | 07. Sorting/InsersionSort.cpp | R-Arpita/DSA-cpp-Hacktoberfest2021 | acc7896fe30ddd54bcf4ec7bb93bd1f0b30b3bc5 | [
"MIT"
] | 410 | 2021-09-27T03:13:55.000Z | 2021-10-01T17:59:42.000Z |
/* Sayansree Paria
email : sayansreeparia@gmail.com
github : https://github.com/Sayansree
Insertion sort algorithm
*/
#include<bits/stdc++.h>
using namespace std;
//iterative implementation of Insertion sort
// arr is input array of size n
void InsertionSort(int arr[],int n ){
for(int i=1; i<n;... | 20.25 | 48 | 0.531814 | R-Arpita |
e89006d234203553f289f27916ffa47e482210a0 | 2,429 | hpp | C++ | extension/parquet/include/decimal_column_reader.hpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 3 | 2021-05-13T04:15:45.000Z | 2022-03-03T16:57:16.000Z | extension/parquet/include/decimal_column_reader.hpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 2 | 2021-10-02T02:52:39.000Z | 2022-01-04T20:08:06.000Z | extension/parquet/include/decimal_column_reader.hpp | wesm/duckdb | f2fa094abc59d70a8c981d6e9f9c9c3911f08362 | [
"MIT"
] | 1 | 2021-11-20T16:09:34.000Z | 2021-11-20T16:09:34.000Z | //===----------------------------------------------------------------------===//
// DuckDB
//
// decimal_column_reader.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "column_reader.hpp"
#include "templated_column_reader.hpp"
na... | 34.7 | 113 | 0.682174 | wesm |
e8917ddf10b22d3cae43fa102568dafcbb88b447 | 9,874 | cpp | C++ | src/hsp3/linux/hsp3ext_sock.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | 127 | 2018-02-24T20:41:15.000Z | 2022-03-22T05:57:56.000Z | src/hsp3/linux/hsp3ext_sock.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | 21 | 2018-09-11T15:04:22.000Z | 2022-02-03T09:30:16.000Z | src/hsp3/linux/hsp3ext_sock.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | 21 | 2019-03-28T07:49:44.000Z | 2021-12-25T02:49:07.000Z |
//
// hsp3dish socket拡張(linux)
// (拡張コマンド・関数処理)
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <poll.h>
#include "../hsp3config.h"
#include "../hsp3code.h"
#include "../hsp3debug.h"
#include "../supio.h"
#include "../strbuf.h"
#ifndef MAX
#define MAX(... | 19.987854 | 119 | 0.564209 | m4saka |
e89182d494b33c7ad6e7e41e11da35bf854810e0 | 3,659 | cpp | C++ | src/Cpp/Learning_Cpp/Course_Codes/The_LinkedIn_Course/Advanced_Cpp/Chap08/utest.cpp | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | src/Cpp/Learning_Cpp/Course_Codes/The_LinkedIn_Course/Advanced_Cpp/Chap08/utest.cpp | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | src/Cpp/Learning_Cpp/Course_Codes/The_LinkedIn_Course/Advanced_Cpp/Chap08/utest.cpp | Ahmopasa/TheCodes | 560ed94190fd0da8cc12285e9b4b5e27b19010a5 | [
"MIT"
] | null | null | null | // utest.cpp by Bill Weinman <http://bw.org/>
// version of 2018-10-12
#include <cstdio>
#include "BWUTest.h"
#include "BWString.h"
bool summary_flag = false;
int main()
{
// Versions n things
printf("BWString version: %s\n", BWString::version());
printf("BWUTest version: %s\n", BWUTest::version());... | 32.380531 | 127 | 0.511342 | Ahmopasa |
e894d7d03541b708cb0fe7267e520b4737ece4db | 13,991 | cpp | C++ | native-imagetranscoder/src/main/jni/native-imagetranscoder/jpeg/crypto/jpeg_crypto.cpp | columbia/fresco | efd379d38db321fd5deddd48805247890ec076f5 | [
"MIT"
] | null | null | null | native-imagetranscoder/src/main/jni/native-imagetranscoder/jpeg/crypto/jpeg_crypto.cpp | columbia/fresco | efd379d38db321fd5deddd48805247890ec076f5 | [
"MIT"
] | null | null | null | native-imagetranscoder/src/main/jni/native-imagetranscoder/jpeg/crypto/jpeg_crypto.cpp | columbia/fresco | efd379d38db321fd5deddd48805247890ec076f5 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iterator>
#include <stdio.h>
#include <setjmp.h>
#include <jni.h>
#include <jpeglib.h>
extern "C" {
#include "transupp.h"
}
#include <gmp.h>
#include <math.h>
#include <bitset>
#include "decoded_image.h"
#include "exceptions_handler.h"
#include "logging.h"
#include "jpeg/jpeg_error_h... | 28.094378 | 136 | 0.663284 | columbia |
e895bb0296dc619d715846cda4f48ffdd67f0594 | 3,427 | cpp | C++ | Hydrogen Framework/src/HFR/text/Font.cpp | salmoncatt/HGE | 8ae471de46589df54cacd1bd0261989633f1e5ef | [
"BSD-3-Clause"
] | 2 | 2020-11-12T14:42:56.000Z | 2021-01-27T18:04:42.000Z | Hydrogen Framework/src/HFR/text/Font.cpp | salmoncatt/Hydrogen-Game-Engine | 8ae471de46589df54cacd1bd0261989633f1e5ef | [
"BSD-3-Clause"
] | 1 | 2021-01-27T17:39:21.000Z | 2021-01-28T01:42:36.000Z | Hydrogen Framework/src/HFR/text/Font.cpp | salmoncatt/Hydrogen-Game-Engine | 8ae471de46589df54cacd1bd0261989633f1e5ef | [
"BSD-3-Clause"
] | null | null | null | #include "hfpch.h"
#include "Font.h"
#include HFR_FREETYPE
#include HFR_UTIL
namespace HFR {
Font::Font() {
size = Vec2f(0, 48);
atlasSize = Vec2f();
}
Font::Font(const std::string& _path) {
size = Vec2f(0, 48);
atlasSize = Vec2f();
path = _path;
name = Util::removePathFromFilePathAndN... | 26.565891 | 231 | 0.623869 | salmoncatt |
e8960e501ffe7669b6f153d788fa013573294101 | 1,470 | cpp | C++ | source/Ch04/drill/ch04_drill.cpp | gorzsaszarvak/UDProg-Introduction | 591d1d05c950da2ab4d59d78cbf5a1408caa78e6 | [
"CC0-1.0"
] | null | null | null | source/Ch04/drill/ch04_drill.cpp | gorzsaszarvak/UDProg-Introduction | 591d1d05c950da2ab4d59d78cbf5a1408caa78e6 | [
"CC0-1.0"
] | null | null | null | source/Ch04/drill/ch04_drill.cpp | gorzsaszarvak/UDProg-Introduction | 591d1d05c950da2ab4d59d78cbf5a1408caa78e6 | [
"CC0-1.0"
] | null | null | null | #include "../../std_lib_facilities.h"
int main()
{
constexpr double m_per_inch = 0.0254;
constexpr double m_per_cm = 0.01;
constexpr double m_per_ft = 0.3048;
double length = -1;
char unit = 0;
vector<double> values;
double lastvalue = 0;
double sum = 0;
double minvalue = 999999999999;
double maxvalue = 0;
... | 18.375 | 53 | 0.588435 | gorzsaszarvak |
e89adabe1fe3f16e983541aade1c2e7d63de617e | 3,624 | hpp | C++ | a21/serial.hpp | biappi/a21 | 6d008bebdbd6c51816ed61aa45664fa3b2715d9b | [
"MIT"
] | 6 | 2017-07-28T13:36:24.000Z | 2022-01-30T14:00:32.000Z | a21/serial.hpp | carkang/a21 | 8f472e75de5734514f152828033a93b88401069a | [
"MIT"
] | 3 | 2018-10-26T20:10:49.000Z | 2021-05-15T20:31:45.000Z | a21/serial.hpp | carkang/a21 | 8f472e75de5734514f152828033a93b88401069a | [
"MIT"
] | 2 | 2021-02-14T14:12:58.000Z | 2022-01-13T23:08:26.000Z | //
// a21 — Arduino Toolkit.
// Copyright (C) 2016-2018, Aleh Dzenisiuk. http://github.com/aleh/a21
//
#pragma once
#include <Arduino.h>
#include <a21/clock.hpp>
#include <a21/print.hpp>
namespace a21 {
#pragma GCC optimize ("O2")
/**
* Software serial port, 8-N-1, TX only.
*/
template<typename pinTX, unsigned ... | 20.24581 | 107 | 0.606236 | biappi |
e89d09629dda1c6f9c3983f4d4602d2ed283a888 | 5,717 | cc | C++ | third_party/tflite_support/src/tensorflow_lite_support/codegen/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 | third_party/tflite_support/src/tensorflow_lite_support/codegen/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 | third_party/tflite_support/src/tensorflow_lite_support/codegen/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 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... | 27.094787 | 80 | 0.609585 | zealoussnow |
e89d57dbf5f39dca613fa4db41d0cf512e7b3eda | 1,888 | hpp | C++ | include/Utils/Tracer.hpp | azazelspce/SPGO | 04df3c6a0c59120cb054ce2bffcfbc79301c2f27 | [
"Apache-2.0",
"MIT"
] | 4 | 2016-02-24T17:20:42.000Z | 2016-04-09T00:33:50.000Z | include/Utils/Tracer.hpp | azazelspce/SPGO | 04df3c6a0c59120cb054ce2bffcfbc79301c2f27 | [
"Apache-2.0",
"MIT"
] | 1 | 2016-04-29T01:06:48.000Z | 2016-12-04T00:35:45.000Z | include/Utils/Tracer.hpp | azazelspce/SPGO | 04df3c6a0c59120cb054ce2bffcfbc79301c2f27 | [
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright 2019 Cristian Sandoval Pineda
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except ... | 19.666667 | 68 | 0.558792 | azazelspce |
e89d581b13af47430d6c9abc2e8e08f423ae01e3 | 1,476 | cpp | C++ | tests/test_socket.cpp | lijianran/ljrServer | d5087447b92ac4eaffe35dec0c0661cf72a3dad7 | [
"Apache-2.0"
] | 1 | 2021-05-15T14:40:36.000Z | 2021-05-15T14:40:36.000Z | tests/test_socket.cpp | lijianran/ljrServer | d5087447b92ac4eaffe35dec0c0661cf72a3dad7 | [
"Apache-2.0"
] | null | null | null | tests/test_socket.cpp | lijianran/ljrServer | d5087447b92ac4eaffe35dec0c0661cf72a3dad7 | [
"Apache-2.0"
] | null | null | null |
#include "../ljrServer/socket.h"
#include "../ljrServer/log.h"
#include "../ljrServer/iomanager.h"
// #include "../ljrServer/address.h"
static ljrserver::Logger::ptr g_logger = LJRSERVER_LOG_ROOT();
void test_socket()
{
ljrserver::IPAddress::ptr addr = ljrserver::Address::LookupAnyIPAddress("www.baidu.com");
... | 23.0625 | 93 | 0.586043 | lijianran |
e89def63eeab5db8bc1932e5b04d9505152f803c | 5,485 | hpp | C++ | common/trc_io.hpp | hirakuni45/R8C | 361d2749b80e738984745bc8d7537eb40191fdd8 | [
"BSD-3-Clause"
] | 6 | 2016-03-07T02:40:09.000Z | 2021-07-25T11:07:01.000Z | common/trc_io.hpp | hirakuni45/R8C | 361d2749b80e738984745bc8d7537eb40191fdd8 | [
"BSD-3-Clause"
] | 2 | 2021-11-16T17:51:01.000Z | 2021-11-16T17:51:42.000Z | common/trc_io.hpp | hirakuni45/R8C | 361d2749b80e738984745bc8d7537eb40191fdd8 | [
"BSD-3-Clause"
] | 1 | 2021-01-17T23:03:33.000Z | 2021-01-17T23:03:33.000Z | #pragma once
//=====================================================================//
/*! @file
@brief R8C グループ・TimerRC I/O 制御
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2015, 2017 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/R8C/blob/master/LICENSE... | 24.707207 | 88 | 0.428259 | hirakuni45 |
e89e1c6a679412ed71d9ed0608782c41eeaa537d | 4,423 | hpp | C++ | ui/include/common/constants.hpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 12 | 2017-02-24T19:28:07.000Z | 2021-02-05T04:40:47.000Z | ui/include/common/constants.hpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 1 | 2017-04-15T03:41:18.000Z | 2017-04-24T09:06:15.000Z | ui/include/common/constants.hpp | fionser/CODA | db234a1e9761d379fb96ae17eef3b77254f8781c | [
"MIT"
] | 6 | 2017-05-14T10:12:50.000Z | 2021-02-07T03:50:56.000Z | #ifndef CODA_UI_CONST
#define CODA_UI_CONST
#include <cstring>
#include <string.h>
#include <vector>
#include <sstream>
#include <spdlog/spdlog.h>
namespace CConst {
extern const std::string VER_SERVER;
extern const std::string VER_CLIENT;
/////////////////////////////////////////////////
// Server cmd... | 37.483051 | 69 | 0.557314 | fionser |
e8a01e2c702ba00aa8a543baa18238ff35e56cb9 | 1,727 | cc | C++ | chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2019-01-16T03:57:39.000Z | 2019-01-16T03:57:39.000Z | chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2018-02-10T21:00:08.000Z | 2018-03-20T05:09:50.000Z | chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.cc | aranajhonny/chromium | caf5bcb822f79b8997720e589334266551a50a13 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/views/toolbar/extension_toolbar_menu_view.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser... | 33.862745 | 77 | 0.745802 | aranajhonny |
e8a1d18b3a83ca676a8a0b5e7ac171aa7cd784b8 | 410 | cpp | C++ | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/tile/tile_fp32.cpp | weisk/ppl.nn | 7dd75a1077867fc9a762449953417088446ae2f8 | [
"Apache-2.0"
] | 1 | 2021-10-06T14:39:58.000Z | 2021-10-06T14:39:58.000Z | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/tile/tile_fp32.cpp | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | src/ppl/nn/engines/x86/impls/src/ppl/kernel/x86/fp32/tile/tile_fp32.cpp | wolf15/ppl.nn | ac23e5eb518039536f1ef39b43c63d6bda900e77 | [
"Apache-2.0"
] | null | null | null | #include "ppl/kernel/x86/common/tile/tile_common.h"
namespace ppl { namespace kernel { namespace x86 {
ppl::common::RetCode tile_ndarray_fp32(
const ppl::nn::TensorShape *src_shape,
const ppl::nn::TensorShape *dst_shape,
const float *src,
const int64_t *repeats,
float *dst)
{
return tile_ndarr... | 25.625 | 72 | 0.702439 | weisk |
e8a5fc51134a05e0c564f1c57805b3aa28d449eb | 2,277 | cpp | C++ | CodeforcesGym/CF101864-GYM-A.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | 1 | 2021-05-07T07:38:26.000Z | 2021-05-07T07:38:26.000Z | CodeforcesGym/CF101864-GYM-A.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | null | null | null | CodeforcesGym/CF101864-GYM-A.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | null | null | null | /** MIT License Copyright (c) 2018 Vasilyev Daniil **/
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize("Ofast")
template<typename T> using v = vector<T>;
#define int long long
typedef long double ld;
typedef string str;
typedef vector<int> vint;
#define rep(a, l, r) for(int a = (l); a < (r);... | 25.875 | 132 | 0.465964 | SpeedOfMagic |
e8a719166ed0480df4cb4dd0b8f7ebe5e8bf63ad | 681 | cc | C++ | DataFormats/JetReco/src/PileupJetIdentifier.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | DataFormats/JetReco/src/PileupJetIdentifier.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | DataFormats/JetReco/src/PileupJetIdentifier.cc | bisnupriyasahu/cmssw | 6cf37ca459246525be0e8a6f5172c6123637d259 | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | #include "DataFormats/JetReco/interface/PileupJetIdentifier.h"
#include <cstring>
// ------------------------------------------------------------------------------------------
StoredPileupJetIdentifier::StoredPileupJetIdentifier()
{
}
// ------------------------------------------------------------------------------... | 28.375 | 93 | 0.358297 | bisnupriyasahu |
e8aef86c979343a6e7f0082aeef4d3514476ae91 | 1,204 | cpp | C++ | src/Engine/map/chunkKey.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/map/chunkKey.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | src/Engine/map/chunkKey.cpp | FraMecca/Coccode | e302c400e0bff40859c65ccefac923133c770861 | [
"BSD-3-Clause"
] | null | null | null | /*
* ====================== chunkKey.cpp =======================
* -- tpr --
* CREATE -- 2019.03.06
* MODIFY --
* ----------------------------------------------------------
* Chunk "id": (int)w + (int)h
* ... | 36.484848 | 102 | 0.399502 | FraMecca |
e8af3160c9fd52ec20acf41b86bade50f4539fb1 | 3,012 | hpp | C++ | src/checks/checker.hpp | Aman-Jain-14/customizedMesos-PSDSF-absolute | 9cb45f8cdd9983668c3ce01be6e03e36c94eb2ce | [
"Apache-2.0"
] | 1 | 2021-11-04T09:59:25.000Z | 2021-11-04T09:59:25.000Z | src/checks/checker.hpp | Aman-Jain-14/customizedMesos-fine | 7e1939f29adebec7a6517e115a1f0e7cc79146e1 | [
"Apache-2.0"
] | null | null | null | src/checks/checker.hpp | Aman-Jain-14/customizedMesos-fine | 7e1939f29adebec7a6517e115a1f0e7cc79146e1 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 31.051546 | 77 | 0.727756 | Aman-Jain-14 |
e8af3fd260a481d7a858e7e6fe50854f3ea1da5a | 1,224 | cpp | C++ | divi/src/Secp256k1Context.cpp | smcneilly4/xCoin | e4f9fa4af1ad07e03fdad792be3b5d4288947b7e | [
"MIT"
] | 56 | 2019-05-16T21:31:18.000Z | 2022-03-16T16:13:02.000Z | divi/src/Secp256k1Context.cpp | smcneilly4/xCoin | e4f9fa4af1ad07e03fdad792be3b5d4288947b7e | [
"MIT"
] | 98 | 2018-03-07T19:30:42.000Z | 2019-04-29T14:17:12.000Z | divi/src/Secp256k1Context.cpp | smcneilly4/xCoin | e4f9fa4af1ad07e03fdad792be3b5d4288947b7e | [
"MIT"
] | 38 | 2019-05-07T11:08:41.000Z | 2022-03-02T20:06:12.000Z | #include "Secp256k1Context.h"
#include <assert.h>
#include "random.h"
#include "allocators.h"
Secp256k1Context::Secp256k1Context()
{
assert(verifying_context == NULL);
verifying_context = secp256k1_context_create(SECP256K1_CONTEXT_VERIFY);
assert(verifying_context != NULL);
assert(signing_context ==... | 26.608696 | 78 | 0.714869 | smcneilly4 |
e8b15bc5e40acb31f4c9ac48dd859fbedf52c9f9 | 789 | cc | C++ | os_taskqueue/criticalsection.cc | sonyangchang/mycodecollection | d56149742f71ae7ae03f5a92bd009edbb4d5d3c6 | [
"Apache-2.0"
] | 1 | 2020-10-18T02:00:01.000Z | 2020-10-18T02:00:01.000Z | os_taskqueue/criticalsection.cc | sonyangchang/mycodecollection | d56149742f71ae7ae03f5a92bd009edbb4d5d3c6 | [
"Apache-2.0"
] | null | null | null | os_taskqueue/criticalsection.cc | sonyangchang/mycodecollection | d56149742f71ae7ae03f5a92bd009edbb4d5d3c6 | [
"Apache-2.0"
] | 1 | 2020-10-18T02:00:03.000Z | 2020-10-18T02:00:03.000Z | #include "criticalsection.h"
namespace rtc{
CriticalSection::CriticalSection() {
pthread_mutexattr_t mutex_attribute;
pthread_mutexattr_init(&mutex_attribute);
pthread_mutexattr_settype(&mutex_attribute, PTHREAD_MUTEX_RECURSIVE);
pthread_mutex_init(&mutex_, &mutex_attribute);
pthread_mutexattr_destroy(... | 30.346154 | 76 | 0.754119 | sonyangchang |
e8b36383bd73d2480ac8ccc9bd0eb0c2641ffaca | 4,250 | cpp | C++ | phxrpc/mqtt/test_mqtt_protocol.cpp | zhoudayang/phxrpc | e3ca0b7ff68a48593866f0b1e7bac78a7107074f | [
"BSD-3-Clause"
] | null | null | null | phxrpc/mqtt/test_mqtt_protocol.cpp | zhoudayang/phxrpc | e3ca0b7ff68a48593866f0b1e7bac78a7107074f | [
"BSD-3-Clause"
] | null | null | null | phxrpc/mqtt/test_mqtt_protocol.cpp | zhoudayang/phxrpc | e3ca0b7ff68a48593866f0b1e7bac78a7107074f | [
"BSD-3-Clause"
] | null | null | null | /*
Tencent is pleased to support the open source community by making
PhxRPC available.
Copyright (C) 2016 THL A29 Limited, a Tencent company.
All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may
not use this file except in compliance with the License. You may
obtain a copy of the Licen... | 24.285714 | 102 | 0.616 | zhoudayang |
e8b7c92c6406508fb2e43aca6efe2db3b6f0c0f9 | 18,147 | cpp | C++ | librtt/b2GLESDebugDraw.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 1,968 | 2018-12-30T21:14:22.000Z | 2022-03-31T23:48:16.000Z | librtt/b2GLESDebugDraw.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 303 | 2019-01-02T19:36:43.000Z | 2022-03-31T23:52:45.000Z | librtt/b2GLESDebugDraw.cpp | agramonte/corona | 3a6892f14eea92fdab5fa6d41920aa1e97bc22b1 | [
"MIT"
] | 254 | 2019-01-02T19:05:52.000Z | 2022-03-30T06:32:28.000Z | /*
* Copyright (c) 2006-2007 Erin Catto http://www.gphysics.com
*
* iPhone port by Simon Oliver - http://www.simonoliver.com - http://www.handcircus.com
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use o... | 25.523207 | 123 | 0.646443 | agramonte |
e8ba313aeec4f572d4c727e6738c7a74c3418b72 | 429 | cpp | C++ | problemsets/SPOJ/SPOJ - BR/MARAT09.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/SPOJ/SPOJ - BR/MARAT09.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | problemsets/SPOJ/SPOJ - BR/MARAT09.cpp | juarezpaulino/coderemite | a4649d3f3a89d234457032d14a6646b3af339ac1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Author: Juarez Paulino(coderemite)
* Email: juarez.paulino@gmail.com
*
*/
#include <cstdio>
using namespace std;
int main() {
int N, M;
scanf("%d %d", &N, &M);
int l = 0, x;
bool ok = 1;
for (int i = 0; ok && i < N; i++) {
scanf("%d", &x);
if (x - l > M) ok = 0;
... | 14.793103 | 39 | 0.433566 | juarezpaulino |
e8bde9ffc0bacad6659929f5d0fcb580fed6a4ab | 16,041 | cpp | C++ | conformance_tests/tools/debug/src/test_debug.cpp | vilvarajintel/level-zero-tests | d841c0abbd7f77f9011bd37d1b6180b319a5e35d | [
"MIT"
] | 32 | 2020-03-05T19:26:02.000Z | 2022-02-21T13:13:52.000Z | conformance_tests/tools/debug/src/test_debug.cpp | vilvarajintel/level-zero-tests | d841c0abbd7f77f9011bd37d1b6180b319a5e35d | [
"MIT"
] | 9 | 2020-05-04T20:15:09.000Z | 2021-12-19T07:17:50.000Z | conformance_tests/tools/debug/src/test_debug.cpp | vilvarajintel/level-zero-tests | d841c0abbd7f77f9011bd37d1b6180b319a5e35d | [
"MIT"
] | 19 | 2020-04-07T16:00:48.000Z | 2022-01-19T00:19:49.000Z | /*
*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include <boost/filesystem.hpp>
#include <boost/process.hpp>
#include <boost/interprocess/shared_memory_object.hpp>
#include <boost/interprocess/mapped_region.hpp>
#include <boost/interprocess/sync/named_condition.hpp>
#include "g... | 32.537525 | 103 | 0.700081 | vilvarajintel |
e8c1e3d5b22da0eb4a878676a6037d3990b59567 | 889 | cc | C++ | prob05/header.cc | crimsonGnome/121-Lab-02 | 8f5152d902fe71372f4738cdaa33e6378b88482a | [
"MIT"
] | null | null | null | prob05/header.cc | crimsonGnome/121-Lab-02 | 8f5152d902fe71372f4738cdaa33e6378b88482a | [
"MIT"
] | null | null | null | prob05/header.cc | crimsonGnome/121-Lab-02 | 8f5152d902fe71372f4738cdaa33e6378b88482a | [
"MIT"
] | null | null | null | // Name: Joseph Eggers
// CWID: 885939488
// Email: joseph.eggers@csu.fullerton.edu
#include "header.h"
#include <iostream>
#include <string>
using std::cout, std::string;
void DisplayHeader(string txt) {
// Declare Variabeles
string asteriskMaker;
// This makes the srtring +4 due to the "* " and " *" asterisk ... | 27.78125 | 78 | 0.661417 | crimsonGnome |
e8c49e53a9e9aa70c0e9a227745b4db10222d56e | 1,457 | cpp | C++ | Xcode/examples/Mitsudesmas/src/MapObject.cpp | YotioSoft/Mitsudesmas | ea9b98a46321ac268ad2ed35460081d2ae8ad3b8 | [
"MIT"
] | null | null | null | Xcode/examples/Mitsudesmas/src/MapObject.cpp | YotioSoft/Mitsudesmas | ea9b98a46321ac268ad2ed35460081d2ae8ad3b8 | [
"MIT"
] | null | null | null | Xcode/examples/Mitsudesmas/src/MapObject.cpp | YotioSoft/Mitsudesmas | ea9b98a46321ac268ad2ed35460081d2ae8ad3b8 | [
"MIT"
] | null | null | null | #include "MapObject.h"
MapObject::MapObject(){}
MapObject::MapObject(String init_name, MapChipProfiles::Types init_type) {
name = init_name;
type = init_type;
}
MapObject::MapObject(String init_name, MapChipProfiles::Types init_type, MapChip &init_chip) {
name = init_name;
type = init_type;
chips << init_chip;
}
... | 22.075758 | 102 | 0.704873 | YotioSoft |
e8c4ccb3bda3cf88e7cf59a041c088307ce4ad28 | 5,445 | cc | C++ | src/ledger/bin/cloud_sync/impl/clock_pack.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | src/ledger/bin/cloud_sync/impl/clock_pack.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | src/ledger/bin/cloud_sync/impl/clock_pack.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | // 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/ledger/bin/cloud_sync/impl/clock_pack.h"
#include <optional>
#include "src/ledger/bin/fidl/include/types.h"
#include "src/ledger/bin/storag... | 41.884615 | 100 | 0.673829 | opensource-assist |
e8c5ed6c8d81526e642349277b07c492e56bc4f2 | 4,796 | cpp | C++ | src/DirUtils.cpp | Karolpg/camera_monitoring | 9e13e25757408be86b49b5e9b1756fea1429fac7 | [
"MIT"
] | null | null | null | src/DirUtils.cpp | Karolpg/camera_monitoring | 9e13e25757408be86b49b5e9b1756fea1429fac7 | [
"MIT"
] | null | null | null | src/DirUtils.cpp | Karolpg/camera_monitoring | 9e13e25757408be86b49b5e9b1756fea1429fac7 | [
"MIT"
] | null | null | null | //
// The MIT License (MIT)
//
// Copyright 2020 Karolpg
//
// 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... | 31.973333 | 162 | 0.623853 | Karolpg |
e8c7e9216658dde41bce090feebe55dc4e7ae886 | 6,612 | cpp | C++ | Blatt_02/Wettervorhersage.cpp | KevSed/Computational_Physics | 6ebfcd07ae5ceb2bfe5b429e8d1425b6877037d1 | [
"MIT"
] | null | null | null | Blatt_02/Wettervorhersage.cpp | KevSed/Computational_Physics | 6ebfcd07ae5ceb2bfe5b429e8d1425b6877037d1 | [
"MIT"
] | null | null | null | Blatt_02/Wettervorhersage.cpp | KevSed/Computational_Physics | 6ebfcd07ae5ceb2bfe5b429e8d1425b6877037d1 | [
"MIT"
] | null | null | null | /*
* Wettervorhersage.cpp
*
* Created on: 02.05.2017
* Author: mona
*/
#include <iostream>
#include <iomanip>
#include <complex>
#include <cstdlib>
#include <vector>
#include <cmath>
#include <sstream>
#include <utility>
#include <math.h>
#include <fstream>
#include <functional>
using namespace std;
//***... | 27.781513 | 129 | 0.536449 | KevSed |
e8c97fc597de15f44aa7a99a098b641ba20796f0 | 712 | cpp | C++ | Grbl/spindle_control.cpp | raspihats/MC5S3DP-XHAT | 90a01ea1adc7d2edc2a07c47d6ce3cdb03ba7779 | [
"MIT"
] | null | null | null | Grbl/spindle_control.cpp | raspihats/MC5S3DP-XHAT | 90a01ea1adc7d2edc2a07c47d6ce3cdb03ba7779 | [
"MIT"
] | null | null | null | Grbl/spindle_control.cpp | raspihats/MC5S3DP-XHAT | 90a01ea1adc7d2edc2a07c47d6ce3cdb03ba7779 | [
"MIT"
] | null | null | null | /*
* spindle_control.cpp
*
* Created on: 16 Sep 2018
* Author: fcos
*/
#include "spindle_control.h"
namespace grbl {
SpindleControl::SpindleControl(
hal::DigitalOutputPin& enable_pin,
hal::DigitalOutputPin& direction_pin,
hal::PwmPin& speed_pin,
const uint32_t max_speed,
const uint32_t... | 14.833333 | 90 | 0.714888 | raspihats |
e8cb95376900b846f2f634797d695ad186ee5776 | 988 | cpp | C++ | flow/examples/intermediate/zip.cpp | twentylemon/flow | 2c1c2a9435ea322e8183661e1ede4b81c0ee11ea | [
"MIT"
] | 10 | 2015-09-10T22:13:54.000Z | 2020-11-09T22:21:12.000Z | flow/examples/intermediate/zip.cpp | twentylemon/flow | 2c1c2a9435ea322e8183661e1ede4b81c0ee11ea | [
"MIT"
] | null | null | null | flow/examples/intermediate/zip.cpp | twentylemon/flow | 2c1c2a9435ea322e8183661e1ede4b81c0ee11ea | [
"MIT"
] | null | null | null |
#include <examples.h>
void zip_example() {
from({ 1, 2, 3, 4 }) | zip({ 1, 2, 3, 4 }) | dump(); // (1, 1) (2, 2) (3, 3) (4, 4)
from({ 1, 2, 3, 4 }) | zip({ 5, 6, 7, 8 }) | dump(); // (1, 5) (2, 6) (3, 7) (4, 8)
// the detail zip operation is to create and concatenate tuples,
// so both the fol... | 44.909091 | 109 | 0.472672 | twentylemon |
e8d06526748e64d0829368791af01f52b62f0441 | 2,002 | hpp | C++ | actor.hpp | shane-powell/blit-racers | 332ed871bd96d6193ae22cdf419dbb6b189eccee | [
"MIT"
] | null | null | null | actor.hpp | shane-powell/blit-racers | 332ed871bd96d6193ae22cdf419dbb6b189eccee | [
"MIT"
] | null | null | null | actor.hpp | shane-powell/blit-racers | 332ed871bd96d6193ae22cdf419dbb6b189eccee | [
"MIT"
] | null | null | null | #pragma once
#include <32blit.hpp>
#include "tiledata.hpp"
#include "util.hpp"
#include "track.hpp"
#include "animation.hpp"
class Actor {
public:
virtual ~Actor() = default;
blit::Size size;
blit::Rect spriteLocation;
float x = 0.0f;
float y = 0.0f;
blit::Vec2 camera;
float degrees = 270.0f;
std::map<float, b... | 21.073684 | 213 | 0.723277 | shane-powell |
e8d0bddd9d26de757c21fd9dfb9c583a66ed3c47 | 7,740 | hpp | C++ | ajg/synth/engines/options.hpp | ajg/synth | 8b9bc9d33f97a40190324108e1e6697f85f19b31 | [
"BSL-1.0"
] | 36 | 2015-01-10T02:23:13.000Z | 2020-05-31T07:41:02.000Z | ajg/synth/engines/options.hpp | ajg/synth | 8b9bc9d33f97a40190324108e1e6697f85f19b31 | [
"BSL-1.0"
] | 3 | 2015-12-29T04:19:20.000Z | 2018-03-27T04:36:34.000Z | ajg/synth/engines/options.hpp | ajg/synth | 8b9bc9d33f97a40190324108e1e6697f85f19b31 | [
"BSL-1.0"
] | 6 | 2015-01-10T02:23:18.000Z | 2019-09-23T15:25:33.000Z | // (C) Copyright 2014 Alvaro J. Genial (http://alva.ro)
// 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).
#ifndef AJG_SYNTH_ENGINES_BASE_OPTIONS_HPP_INCLUDED
#define AJG_SYNTH_ENGI... | 46.347305 | 111 | 0.537209 | ajg |
e8dce509d13c2fbe2b80ef81ff47b784c7dfd649 | 1,765 | cpp | C++ | Data Structure Problems/CF-Sereja and Brackets.cpp | Sohieeb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | 1 | 2020-01-30T20:08:24.000Z | 2020-01-30T20:08:24.000Z | Data Structure Problems/CF-Sereja and Brackets.cpp | Sohieb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | null | null | null | Data Structure Problems/CF-Sereja and Brackets.cpp | Sohieb/competitive-programming | fe3fca0d4d2a242053d097c7ae71667a135cfc45 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using namespace __gnu_cxx;
typedef double db;
typedef long long ll;
typedef pair<int,int> ii;
#define F first
#define S second
#define pnl printf("\n")
#define sz(x) (int)x.size()
#define sf(x) scanf("%d",&x)
#define pf(x) printf("%d\n",x)
#de... | 23.851351 | 68 | 0.501983 | Sohieeb |
e8de98bace832fc475349c972c28d7235b2898b3 | 18,121 | hpp | C++ | string.hpp | nwehr/kick | 0f738e0895a639c977e8c473eb40ee595e301f32 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | string.hpp | nwehr/kick | 0f738e0895a639c977e8c473eb40ee595e301f32 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | string.hpp | nwehr/kick | 0f738e0895a639c977e8c473eb40ee595e301f32 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #ifndef _kick_string_h
#define _kick_string_h
//
// Copyright 2012-2014 Kick project developers.
// See COPYRIGHT.txt or https://bitbucket.org/nwehr/kick/downloads/COPYRIGHT.txt
//
// This file is part of the Kick project and subject to license terms.
// See LICENSE.txt or https://bitbucket.org/nwehr/kick/downloads/LI... | 30.923208 | 148 | 0.679267 | nwehr |
e8df71ff55656df5b44423e69e899ebe54bc5f62 | 8,858 | hxx | C++ | main/writerfilter/inc/resourcemodel/SubSequence.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/writerfilter/inc/resourcemodel/SubSequence.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/writerfilter/inc/resourcemodel/SubSequence.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 25.454023 | 99 | 0.456536 | Grosskopf |
e8e1ebe8deee9aa578cf9c88492c30f9f4e909c8 | 25 | cpp | C++ | src_legacy/2018/test/mock_ws2812.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | src_legacy/2018/test/mock_ws2812.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | 75 | 2017-05-28T23:39:33.000Z | 2019-05-09T06:18:44.000Z | test/mock_ws2812.cpp | gmoehler/ledpoi | d1294b172b7069f62119c310399d80500402d882 | [
"MIT"
] | null | null | null | #include "mock_ws2812.h"
| 12.5 | 24 | 0.76 | gmoehler |
e8e25ca74ff35332dadcfe05a0113afff0eade10 | 2,852 | cpp | C++ | src/game/server/db_sqlite3.cpp | theovier/TW-TimeRun | 87afef60d018ba748fbe2339ec1ce74c16d41679 | [
"Zlib"
] | 2 | 2018-08-24T08:54:22.000Z | 2019-01-07T09:05:22.000Z | src/game/server/db_sqlite3.cpp | theovier/TW-TimeRun | 87afef60d018ba748fbe2339ec1ce74c16d41679 | [
"Zlib"
] | 1 | 2018-08-18T10:13:37.000Z | 2018-08-19T09:42:40.000Z | src/game/server/db_sqlite3.cpp | theovier/TW-TimeRun | 87afef60d018ba748fbe2339ec1ce74c16d41679 | [
"Zlib"
] | 1 | 2021-12-26T03:52:09.000Z | 2021-12-26T03:52:09.000Z | #include "db_sqlite3.h"
bool CQuery::Next()
{
/*CALL_STACK_ADD();*/
int Ret = sqlite3_step(m_pStatement);
return Ret == SQLITE_ROW;
}
void CQuery::Query(CSql *pDatabase, char *pQuery)
{
/*CALL_STACK_ADD();*/
m_pDatabase = pDatabase;
m_pDatabase->Query(this, pQuery);
}
void CQuery::O... | 20.666667 | 100 | 0.51087 | theovier |
e8e28a10f35b82070b02c81757f07a5729b59d14 | 1,031 | hpp | C++ | include/thh-bgfx-debug/debug-cube.hpp | pr0g/thh-bgfx-debug | ecf693f1df6ee11f0d49197c7d84cb70dca076dd | [
"MIT"
] | null | null | null | include/thh-bgfx-debug/debug-cube.hpp | pr0g/thh-bgfx-debug | ecf693f1df6ee11f0d49197c7d84cb70dca076dd | [
"MIT"
] | null | null | null | include/thh-bgfx-debug/debug-cube.hpp | pr0g/thh-bgfx-debug | ecf693f1df6ee11f0d49197c7d84cb70dca076dd | [
"MIT"
] | null | null | null | #pragma once
#include "as/as-math-ops.hpp"
#include "debug-vertex.hpp"
#include <vector>
namespace dbg
{
class DebugCubes
{
static DebugVertex CubeVertices[];
static uint16_t CubeIndices[];
bgfx::VertexBufferHandle cube_vbh_;
bgfx::IndexBufferHandle cube_ibh_;
bgfx::ProgramHandle program_handle_;
bgfx:... | 19.092593 | 79 | 0.706111 | pr0g |
e8e634251d723dbec0bd14ed84b203fadc20c796 | 964 | hpp | C++ | test/framework/call_engine_tests_common.hpp | Insafin/iroha | 5e3c3252b2a62fa887274bdf25547dc264c10c26 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | test/framework/call_engine_tests_common.hpp | Insafin/iroha | 5e3c3252b2a62fa887274bdf25547dc264c10c26 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | test/framework/call_engine_tests_common.hpp | Insafin/iroha | 5e3c3252b2a62fa887274bdf25547dc264c10c26 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_TEST_CALL_ENGINE_TESTS_COMMON_HPP
#define IROHA_TEST_CALL_ENGINE_TESTS_COMMON_HPP
#include <ostream>
#include <string>
#include <vector>
#include "utils/string_builder.hpp"
struct LogData {
std::stri... | 25.368421 | 71 | 0.623444 | Insafin |
e8e6b0ba2bed9fc368edaa7df98cc8bc43451977 | 942 | cpp | C++ | UVa/11729.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | 1 | 2018-02-11T09:41:54.000Z | 2018-02-11T09:41:54.000Z | UVa/11729.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | UVa/11729.cpp | tico88612/Solution-Note | 31a9d220fd633c6920760707a07c9a153c2f76cc | [
"MIT"
] | null | null | null | #pragma GCC optimize ("O2")
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
#define _ ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#def... | 18.470588 | 57 | 0.572187 | tico88612 |
e8e6cd2ab0d2f5f4055fb2af9d3bd347523fd41c | 2,225 | cpp | C++ | tests/sectionmemorymanager.cpp | trailofbits/ebpf-common | 4f0af3f41c04cafb3423825789f9bbaf686331cb | [
"Apache-2.0"
] | 13 | 2020-01-07T22:56:16.000Z | 2022-03-16T03:57:45.000Z | tests/sectionmemorymanager.cpp | trailofbits/ebpf-common | 4f0af3f41c04cafb3423825789f9bbaf686331cb | [
"Apache-2.0"
] | null | null | null | tests/sectionmemorymanager.cpp | trailofbits/ebpf-common | 4f0af3f41c04cafb3423825789f9bbaf686331cb | [
"Apache-2.0"
] | 5 | 2021-11-05T01:44:25.000Z | 2022-03-16T03:57:47.000Z | /*
Copyright (c) 2019-present, Trail of Bits, Inc.
All rights reserved.
This source code is licensed in accordance with the terms specified in
the LICENSE file found in the root directory of this source tree.
*/
#include <catch2/catch.hpp>
#include <llvm/IR/IRBuilder.h>
#include <tob/ebpf/sectionmemorymanag... | 33.712121 | 74 | 0.706517 | trailofbits |
e8ec852a0be7a394e71c7fc1874ec7287182ab69 | 1,338 | cpp | C++ | Source/Reikonoids/Actors/RSpawner.cpp | gunstarpl/Reikonoids | 55496bed915aec8c42048c9257b1050fd360b006 | [
"MIT",
"Unlicense"
] | null | null | null | Source/Reikonoids/Actors/RSpawner.cpp | gunstarpl/Reikonoids | 55496bed915aec8c42048c9257b1050fd360b006 | [
"MIT",
"Unlicense"
] | null | null | null | Source/Reikonoids/Actors/RSpawner.cpp | gunstarpl/Reikonoids | 55496bed915aec8c42048c9257b1050fd360b006 | [
"MIT",
"Unlicense"
] | null | null | null | #include "RSpawner.h"
#include "../Gameplay/RSpawnDirector.h"
ARSpawner::ARSpawner() = default;
ARSpawner::~ARSpawner() = default;
void ARSpawner::SetupDeferredSpawnRegistration(URSpawnDirector* InSpawnDirector, TArray<AActor*>* InPopulation)
{
check(InSpawnDirector);
check(InPopulation);
SpawnDirector =... | 23.892857 | 113 | 0.622571 | gunstarpl |
e8edf9b28b5f4dd722ee76047279574f075b2092 | 13,129 | cpp | C++ | Test/Test-FHE.cpp | asifmallik/SCALE-MAMBA | 80db831818b55b7675dd549920b5fb096db4321f | [
"BSD-2-Clause"
] | null | null | null | Test/Test-FHE.cpp | asifmallik/SCALE-MAMBA | 80db831818b55b7675dd549920b5fb096db4321f | [
"BSD-2-Clause"
] | null | null | null | Test/Test-FHE.cpp | asifmallik/SCALE-MAMBA | 80db831818b55b7675dd549920b5fb096db4321f | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.
Copyright (c) 2020, COSIC-KU Leuven, Kasteelpark Arenberg 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.
All rights reserved
*/
#include "FHE/FFT.h"
#include "FHE/FHE_Keys.h"
#include "FHE/FHE_Params.h"
#... | 22.290323 | 110 | 0.490213 | asifmallik |
e8f1e57bd3b966e8a458c20f0264efc5656cce4a | 4,803 | cc | C++ | src/blob_index_merge_operator_test.cc | DorianZheng/titan | 03f9907355e8140442f0ab3fe44cbdda0f1d8a01 | [
"Apache-2.0"
] | 220 | 2019-11-30T02:33:05.000Z | 2022-03-25T07:33:55.000Z | src/blob_index_merge_operator_test.cc | DorianZheng/titan | 03f9907355e8140442f0ab3fe44cbdda0f1d8a01 | [
"Apache-2.0"
] | 112 | 2019-11-25T11:24:27.000Z | 2022-03-30T08:11:41.000Z | src/blob_index_merge_operator_test.cc | DorianZheng/titan | 03f9907355e8140442f0ab3fe44cbdda0f1d8a01 | [
"Apache-2.0"
] | 65 | 2019-12-16T15:26:50.000Z | 2022-03-31T10:48:56.000Z | #include "test_util/testharness.h"
#include "blob_index_merge_operator.h"
namespace rocksdb {
namespace titandb {
std::string GenKey(int i) {
char buffer[32];
snprintf(buffer, sizeof(buffer), "k-%08d", i);
return buffer;
}
std::string GenValue(int i) {
char buffer[32];
snprintf(buffer, sizeof(buffer), "v-... | 26.535912 | 77 | 0.694149 | DorianZheng |
e8f2817da1ba7c8fd13adac90f6367724b6524c0 | 273 | hpp | C++ | include/pct/util.hpp | IllinoisStateGeologicalSurvey/p_point2grid | 8aad94f1d606143ef287944f30f6815c328074ba | [
"BSD-4-Clause"
] | 1 | 2020-11-25T21:26:25.000Z | 2020-11-25T21:26:25.000Z | include/pct/util.hpp | IllinoisStateGeologicalSurvey/p_point2grid | 8aad94f1d606143ef287944f30f6815c328074ba | [
"BSD-4-Clause"
] | null | null | null | include/pct/util.hpp | IllinoisStateGeologicalSurvey/p_point2grid | 8aad94f1d606143ef287944f30f6815c328074ba | [
"BSD-4-Clause"
] | null | null | null | #ifndef UTIL_HPP
#define UTIL_HPP
double randomVal(int range, int min);
void process_mem_usage(double& vm_usage, double& resident_set);
double to_degrees(double radians);
void compareMin(double* mins, double* tmp);
void compareMax(double* maxs, double* tmp);
#endif
| 17.0625 | 63 | 0.769231 | IllinoisStateGeologicalSurvey |
e8f5fbc6a1e611008c6871c95799f4fcd1e1ea75 | 1,904 | cpp | C++ | C++/Test/src/Test.cpp | zhenkunhe/Developer-Tutorial | 6e4e4e36364fd8081a68ebf43bf6ab433add613e | [
"MIT"
] | null | null | null | C++/Test/src/Test.cpp | zhenkunhe/Developer-Tutorial | 6e4e4e36364fd8081a68ebf43bf6ab433add613e | [
"MIT"
] | null | null | null | C++/Test/src/Test.cpp | zhenkunhe/Developer-Tutorial | 6e4e4e36364fd8081a68ebf43bf6ab433add613e | [
"MIT"
] | null | null | null | /* first include the standard headers that we're likely to need */
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char ** argv){
int screen_num, width, height;
unsigned long background, border;
Window win;
XEvent... | 30.709677 | 77 | 0.690651 | zhenkunhe |
e8fc2d442eceb7122d106f6f8eea560a2d240e7b | 3,833 | cpp | C++ | src_main/gameui/CvarToggleCheckButton.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 25 | 2018-02-28T15:04:42.000Z | 2021-08-16T03:49:00.000Z | src_main/gameui/CvarToggleCheckButton.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 1 | 2019-09-20T11:06:03.000Z | 2019-09-20T11:06:03.000Z | src_main/gameui/CvarToggleCheckButton.cpp | ArcadiusGFN/SourceEngine2007 | 51cd6d4f0f9ed901cb9b61456eb621a50ce44f55 | [
"bzip2-1.0.6"
] | 9 | 2019-07-31T11:58:20.000Z | 2021-08-31T11:18:15.000Z | // Copyright © 1996-2018, Valve Corporation, All rights reserved.
#include "CvarToggleCheckButton.h"
#include "EngineInterface.h"
#include "IGameUIFuncs.h"
#include "tier1/KeyValues.h"
#include "tier1/convar.h"
#include "vgui/IVGui.h"
#include "tier0/include/memdbgon.h"
using namespace vgui;
vgui::Panel *CvarToggl... | 27.775362 | 80 | 0.605531 | ArcadiusGFN |
330080452a453af5d6fbe6e52f460d273b731e68 | 5,444 | cpp | C++ | schema/SubscriptionObject.cpp | microsoft/gqlmapi | 953f8c0a1c4d069c34716dfe97ede4d3ff1ddcaa | [
"MIT"
] | 3 | 2021-02-11T15:38:51.000Z | 2021-12-29T15:00:13.000Z | schema/SubscriptionObject.cpp | microsoft/gqlmapi | 953f8c0a1c4d069c34716dfe97ede4d3ff1ddcaa | [
"MIT"
] | null | null | null | schema/SubscriptionObject.cpp | microsoft/gqlmapi | 953f8c0a1c4d069c34716dfe97ede4d3ff1ddcaa | [
"MIT"
] | 3 | 2021-02-14T13:50:36.000Z | 2021-02-14T13:50:49.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// WARNING! Do not edit this file manually, your changes will be overwritten.
#include "SubscriptionObject.h"
#include "ItemChangeObject.h"
#include "FolderChangeObject.h"
#include "graphqlservice/internal/Schema.h"
#inc... | 47.754386 | 321 | 0.762675 | microsoft |
3303642dcb7f4f9aa63d4178b985eb0bfb195b64 | 3,573 | cc | C++ | android_webview/browser/js_java_interaction/js_to_java_messaging.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | android_webview/browser/js_java_interaction/js_to_java_messaging.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | android_webview/browser/js_java_interaction/js_to_java_messaging.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "android_webview/browser/js_java_interaction/js_to_java_messaging.h"
#include "android_webview/browser/aw_contents.h"
#include "android_webview/... | 40.146067 | 96 | 0.755947 | sarang-apps |
33042e1e7909f668cfce6d4f35d9eb62033dac55 | 704 | cpp | C++ | TG/bookcodes/ch2/uva11427.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | TG/bookcodes/ch2/uva11427.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | TG/bookcodes/ch2/uva11427.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa11427 Expect the Expected
// Rujia Liu
#include<cstdio>
#include<cmath>
#include<cstring>
const int maxn = 100 + 5;
int main() {
int T;
scanf("%d", &T);
for(int kase = 1; kase <= T; kase++) {
int n, a, b;
double d[maxn][maxn], p;
scanf("%d/%d%d", &a, &b, &n); // 请注意scanf的技巧
p = (double)a/b;
... | 25.142857 | 69 | 0.458807 | Anyrainel |
33052d0be7ed7ac742149da372691f36c5c8989d | 1,200 | cpp | C++ | serial/cli/program/dumpFW.cpp | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 70 | 2015-11-16T18:04:01.000Z | 2022-03-05T09:04:02.000Z | serial/cli/program/dumpFW.cpp | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 1 | 2016-08-03T05:13:19.000Z | 2016-08-03T06:19:39.000Z | serial/cli/program/dumpFW.cpp | cuauv/software | 5ad4d52d603f81a7f254f365d9b0fe636d03a260 | [
"BSD-3-Clause"
] | 34 | 2015-12-15T17:29:23.000Z | 2021-11-18T14:15:12.000Z | #include <iostream>
#include <fstream>
#include "loader/MemoryImage.h"
#include "loader/AUVFirmware.h"
#include "loader/hex.h"
#include "loader/auvfw.h"
#include "../Command.h"
namespace cuauv {
namespace serial {
namespace cli {
static int dumpFW_run(std::map<std::string, std::string> args) {
try {
std... | 28.571429 | 84 | 0.6025 | cuauv |
33053cfbc4a98de66bd3a032235561cd08b8c1b5 | 6,286 | cc | C++ | chromium/components/html_viewer/web_clipboard_impl.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/html_viewer/web_clipboard_impl.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/components/html_viewer/web_clipboard_impl.cc | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/html_viewer/web_clipboard_impl.h"
#include <stddef.h>
#include <utility>
#include "base/bind.h"
#include "components/html_viewer/bl... | 29.933333 | 79 | 0.685969 | wedataintelligence |
330afb3a3d486b1ff132ff3f026063f2f30b8737 | 13,826 | cpp | C++ | McEngine/src/Engine/Platform/HorizonSDLEnvironment.cpp | lwkobe/McEngine | c24dea65b9e6745391b073dd4521561e9808b1a3 | [
"MIT"
] | 1 | 2019-11-20T13:24:56.000Z | 2019-11-20T13:24:56.000Z | McEngine/src/Engine/Platform/HorizonSDLEnvironment.cpp | lwkobe/McEngine | c24dea65b9e6745391b073dd4521561e9808b1a3 | [
"MIT"
] | null | null | null | McEngine/src/Engine/Platform/HorizonSDLEnvironment.cpp | lwkobe/McEngine | c24dea65b9e6745391b073dd4521561e9808b1a3 | [
"MIT"
] | null | null | null | //================ Copyright (c) 2019, PG, All rights reserved. =================//
//
// Purpose: nintendo switch SDL environment
//
// $NoKeywords: $nxsdlenv
//===============================================================================//
#ifdef __SWITCH__
#include "HorizonSDLEnvironment.h"
#ifdef MCENGINE_FEA... | 22.372168 | 181 | 0.687545 | lwkobe |
330c97f561e08709ab342f9fd6880a22c9a7175f | 32,074 | cc | C++ | library/src/memory_profiling/BP_LibraryMemoryProfiling.cc | jason-medeiros/blockparty | 4b1aabe66b13ceac70d6e42feb796909f067df9a | [
"MIT"
] | 1 | 2018-05-31T11:51:43.000Z | 2018-05-31T11:51:43.000Z | library/src/memory_profiling/BP_LibraryMemoryProfiling.cc | jason-medeiros/blockparty | 4b1aabe66b13ceac70d6e42feb796909f067df9a | [
"MIT"
] | null | null | null | library/src/memory_profiling/BP_LibraryMemoryProfiling.cc | jason-medeiros/blockparty | 4b1aabe66b13ceac70d6e42feb796909f067df9a | [
"MIT"
] | null | null | null | /*
* BP_LibraryMemoryProfiling.cc
*
* Created on: Aug 26, 2013
* Author: root
*/
#include "../../include/BP-Main.h"
//
// Developer Notice: The code below is fairly complex, but if read carefully should
// be fairly simple to understand if provided some context. The contextual summary of the code
// fou... | 25.195601 | 171 | 0.716156 | jason-medeiros |
330cc0e9c0f0b03e2058cbce149aee5956a5d6b3 | 344 | cc | C++ | src/motor/world/src/component/component.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/world/src/component/component.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null | src/motor/world/src/component/component.cc | motor-dev/Motor | 98cb099fe1c2d31e455ed868cc2a25eae51e79f0 | [
"BSD-3-Clause"
] | null | null | null |
/* Motor <motor.devel@gmail.com>
see LICENSE for detail */
#include <motor/world/stdafx.h>
#include <motor/world/component/component.meta.hh>
namespace Motor { namespace World {
Component::Component()
{
}
LogicComponent::LogicComponent(raw< const Meta::Class > kernelClass) : kernelClass(kernelClass)
{
}
}} //... | 18.105263 | 95 | 0.726744 | motor-dev |
33163bbfb6a3329f31e140e49979700b2f199390 | 159 | cc | C++ | bitlinuxosnetworkclass/lesson35/httpServer.cc | DanteIoVeYou/Linux_Study | 701a54caad3d65c511716111430ca08ada78f088 | [
"MIT"
] | null | null | null | bitlinuxosnetworkclass/lesson35/httpServer.cc | DanteIoVeYou/Linux_Study | 701a54caad3d65c511716111430ca08ada78f088 | [
"MIT"
] | null | null | null | bitlinuxosnetworkclass/lesson35/httpServer.cc | DanteIoVeYou/Linux_Study | 701a54caad3d65c511716111430ca08ada78f088 | [
"MIT"
] | null | null | null | #include "httpServer.hpp"
int main(int argc, char *argv[])
{
srv::httpServer srvIns(atoi(argv[1]));
srvIns.init();
srvIns.start();
return 0;
} | 17.666667 | 42 | 0.616352 | DanteIoVeYou |
3317953f9c67dbf71858b38ed4840e500ddf6bc1 | 1,542 | cc | C++ | unit_tests/test_property.cc | maihd/riku | daca9172f4ee0e303060796e86859247e4306dcc | [
"Unlicense"
] | 2 | 2019-03-22T05:01:03.000Z | 2020-05-07T11:26:03.000Z | unit_tests/test_property.cc | maihd/riku | daca9172f4ee0e303060796e86859247e4306dcc | [
"Unlicense"
] | null | null | null | unit_tests/test_property.cc | maihd/riku | daca9172f4ee0e303060796e86859247e4306dcc | [
"Unlicense"
] | null | null | null | // Copyright (c) 2019, MaiHD. All right reversed.
// License: Unlicensed
#include <stdio.h>
#include "./unit_test.h"
#if defined(EXTENION_PROPERTY) && (defined(_MSC_VER) || (defined(__has_declspec_attriute) && __has_declspec_attribute(property)))
#define test_assert(a, b) console::log(#a " = %d - " #b " = %d", a, b)... | 20.837838 | 131 | 0.653048 | maihd |
3319e121c5528eb8172b4366200ac3fbc820fd26 | 3,343 | cpp | C++ | vtbl.cpp | Kanda-Motohiro/cppsample | 6c010f4cc7a8143debf159435621966bf582f5d6 | [
"CC0-1.0"
] | null | null | null | vtbl.cpp | Kanda-Motohiro/cppsample | 6c010f4cc7a8143debf159435621966bf582f5d6 | [
"CC0-1.0"
] | null | null | null | vtbl.cpp | Kanda-Motohiro/cppsample | 6c010f4cc7a8143debf159435621966bf582f5d6 | [
"CC0-1.0"
] | null | null | null | /*
* 2018.5.6 kanda.motohiro@gmail.com C++ 練習
* released under https://creativecommons.org/publicdomain/zero/1.0/legalcode.ja
*/
#include "base.h"
#include <locale>
#include <typeinfo>
class Derived: public base {
public:
int i = 0xdddddddd;
Derived(char a) : base(a) {}
const string toString() const ove... | 31.242991 | 106 | 0.680826 | Kanda-Motohiro |
331e515b93ce7cf01cd50da5dbb9d26c669c895c | 2,351 | hpp | C++ | src/xalanc/XercesParserLiaison/XercesNamedNodeMapAttributeList.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XercesParserLiaison/XercesNamedNodeMapAttributeList.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XercesParserLiaison/XercesNamedNodeMapAttributeList.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 1999-2004 The Apache Software 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 requir... | 24.489583 | 125 | 0.752871 | rherardi |
3322292d7db988d5153198c4568e26091ea35038 | 1,510 | cc | C++ | UnitTest/old_or_notused/util/string_test.cc | NosicLin/Faeris | 018fddccc875fb63347673edef3ad2ff80c87149 | [
"MIT"
] | null | null | null | UnitTest/old_or_notused/util/string_test.cc | NosicLin/Faeris | 018fddccc875fb63347673edef3ad2ff80c87149 | [
"MIT"
] | null | null | null | UnitTest/old_or_notused/util/string_test.cc | NosicLin/Faeris | 018fddccc875fb63347673edef3ad2ff80c87149 | [
"MIT"
] | null | null | null | #include"grstring.h"
#include<stdio.h>
#include<string.h>
void print_string(const GrString& str)
{
printf("%s",str.c_str());
}
#define Func_Test(func) \
do{ \
printf("Unit_Test(%s)---",#func); \
int ret; \
ret=func(); \
if(ret) \
{ \
printf("(Ok)"); \
g_corret++; \
} \
else \
{ \
printf("... | 11.889764 | 55 | 0.580132 | NosicLin |
33236e24ea72690d0313ce7f4790bb3d238e5510 | 951 | hpp | C++ | src/wire/wire2lua/mapped_type.hpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 5 | 2016-04-07T19:49:39.000Z | 2021-08-03T05:24:11.000Z | src/wire/wire2lua/mapped_type.hpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | null | null | null | src/wire/wire2lua/mapped_type.hpp | zmij/wire | 9981eb9ea182fc49ef7243eed26b9d37be70a395 | [
"Artistic-2.0"
] | 1 | 2020-12-27T11:47:31.000Z | 2020-12-27T11:47:31.000Z | /*
* mapped_type.hpp
*
* Created on: 15 мая 2016 г.
* Author: sergey.fedorov
*/
#ifndef WIRE_WIRE2LUA_MAPPED_TYPE_HPP_
#define WIRE_WIRE2LUA_MAPPED_TYPE_HPP_
#include <string>
#include <vector>
#include <map>
#include <wire/idl/ast.hpp>
namespace wire {
namespace idl {
namespace lua {
struct mapped_type... | 18.647059 | 68 | 0.6898 | zmij |
3324cac708b1831a6e195ba880ee4ef9fb6701e9 | 646 | cpp | C++ | src/detail/string_convert.cpp | Guekka/libbsarch-cpp | ad435d488e9a816e0109a6f464961d177d3b61f4 | [
"MIT"
] | 1 | 2021-06-16T15:49:07.000Z | 2021-06-16T15:49:07.000Z | src/detail/string_convert.cpp | Guekka/libbsarch-cpp | ad435d488e9a816e0109a6f464961d177d3b61f4 | [
"MIT"
] | null | null | null | src/detail/string_convert.cpp | Guekka/libbsarch-cpp | ad435d488e9a816e0109a6f464961d177d3b61f4 | [
"MIT"
] | null | null | null | /* Copyright (C) 2021 G'k
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
#include "string_convert.hpp"
#include <codecvt>
#include <locale>
namespac... | 26.916667 | 75 | 0.704334 | Guekka |
3328adb3ce2e318a1b5a6ffec85e6d470df7f3a0 | 2,692 | cpp | C++ | tests/utils.cpp | vle-forge/Echll | f3895dc721ec891b5828fcd17aec0d37be07fb60 | [
"BSD-2-Clause"
] | null | null | null | tests/utils.cpp | vle-forge/Echll | f3895dc721ec891b5828fcd17aec0d37be07fb60 | [
"BSD-2-Clause"
] | null | null | null | tests/utils.cpp | vle-forge/Echll | f3895dc721ec891b5828fcd17aec0d37be07fb60 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2013-2014 INRA
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of c... | 44.866667 | 79 | 0.688707 | vle-forge |
06a4a6a81b66d5914b5cb512c057c76ba8f6183b | 12,948 | hxx | C++ | src/engine/ivp/ivp_controller/ivp_car_system.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/engine/ivp/ivp_controller/ivp_car_system.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/engine/ivp/ivp_controller/ivp_car_system.hxx | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | // Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved.
// IVP_EXPORT_PUBLIC
#if !defined(IVP_CAR_SYSTEM_INCLUDED)
# define IVP_CAR_SYSTEM_INCLUDED
#ifndef IVP_LISTENER_PSI_INCLUDED
# include <ivp_listener_psi.hxx>
#endif
enum IVP_POS_WHEEL {
IVP_FRONT_LEFT = 0,
IVP_FRONT_RIGHT... | 39.355623 | 171 | 0.716095 | cstom4994 |
06aa8e5d64bd0e3e225cbafeb44e93ff3eeb4c28 | 345 | cpp | C++ | 20200320STL_1/E.FreeListSort.cpp | Guyutongxue/Practice_of_Programming | 70e11cfc0ab6aefbc9e28b279cf3de110426a9b9 | [
"WTFPL"
] | 6 | 2020-03-01T03:13:37.000Z | 2021-03-20T13:37:11.000Z | 20200320STL_1/E.FreeListSort.cpp | Guyutongxue/Practice_of_Programming | 70e11cfc0ab6aefbc9e28b279cf3de110426a9b9 | [
"WTFPL"
] | null | null | null | 20200320STL_1/E.FreeListSort.cpp | Guyutongxue/Practice_of_Programming | 70e11cfc0ab6aefbc9e28b279cf3de110426a9b9 | [
"WTFPL"
] | 3 | 2020-03-28T03:14:24.000Z | 2021-05-20T13:35:15.000Z | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <list>
using namespace std;
int main() {
double a[] = {1.2, 3.4, 9.8, 7.3, 2.6};
list<double> lst(a, a + 5);
lst.sort(
greater<double>()
);
for (list<double>::iterator i = lst.begin(); i != lst.end(); ++i)
cout << *... | 21.5625 | 69 | 0.527536 | Guyutongxue |
06ad05985faa3bae9721a406604ce4042fd6a99f | 5,356 | cc | C++ | chrome/browser/extensions/launch_util.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/launch_util.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/launch_util.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/launch_util.h"
#include <memory>
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/brows... | 38.257143 | 80 | 0.721994 | sarang-apps |
06b2e87c112c8693703f7996a2c56d9dd127ff57 | 118 | cpp | C++ | Plugin~/Src/MeshSync/MeshSyncConstants.cpp | Mu-L/MeshSync | 6290618f6cc60802394bda8e2aa177648fcf5cfd | [
"Apache-2.0"
] | 1,047 | 2017-02-01T01:56:55.000Z | 2022-03-30T10:27:07.000Z | Plugin~/Src/MeshSync/MeshSyncConstants.cpp | Mu-L/MeshSync | 6290618f6cc60802394bda8e2aa177648fcf5cfd | [
"Apache-2.0"
] | 112 | 2017-03-03T09:10:01.000Z | 2022-03-24T16:25:20.000Z | Plugin~/Src/MeshSync/MeshSyncConstants.cpp | Mu-L/MeshSync | 6290618f6cc60802394bda8e2aa177648fcf5cfd | [
"Apache-2.0"
] | 120 | 2017-07-26T22:25:59.000Z | 2022-02-22T06:15:42.000Z | #include "MeshSync/MeshSyncConstants.h"
namespace ms {
const uint32_t MeshSyncConstants::MAX_UV;
} //end namespace
| 14.75 | 41 | 0.779661 | Mu-L |
06b3eb3ccbd708291794a1091be8181e797b4350 | 2,770 | hpp | C++ | code/lib/graph_operations.hpp | Brunovsky/competitive | 41cf49378e430ca20d844f97c67aa5059ab1e973 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | code/lib/graph_operations.hpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | code/lib/graph_operations.hpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #pragma once
#include "hash.hpp"
#include "random.hpp"
using edges_t = vector<array<int, 2>>;
/**
* Construct adjacency lists
*/
auto make_adjacency_lists_undirected(int V, const edges_t& g) {
vector<vector<int>> adj(V);
for (auto [u, v] : g)
assert(u < V && v < V), adj[u].push_back(v), adj[v].push... | 25.181818 | 73 | 0.552708 | Brunovsky |
06b4a9405c7fc27d5c3844ad93dbd66cc5c6c601 | 800 | cpp | C++ | src/backend/expression/tuple_address_expression.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 6 | 2017-04-28T00:38:52.000Z | 2018-11-06T07:06:49.000Z | src/backend/expression/tuple_address_expression.cpp | jessesleeping/my_peloton | a19426cfe34a04692a11008eaffc9c3c9b49abc4 | [
"Apache-2.0"
] | 4 | 2017-07-08T00:41:56.000Z | 2017-07-08T00:42:13.000Z | src/backend/expression/tuple_address_expression.cpp | eric-haibin-lin/pelotondb | 904d6bbd041a0498ee0e034d4f9f9f27086c3cab | [
"Apache-2.0"
] | 1 | 2020-06-19T08:05:03.000Z | 2020-06-19T08:05:03.000Z | //===----------------------------------------------------------------------===//
//
// PelotonDB
//
// tuple_address_expression.cpp
//
// Identification: src/backend/expression/tuple_address_expression.cpp
//
// Copyright (c) 2015, Carnegie Mellon University Database Group
//
//===--------------... | 29.62963 | 80 | 0.60625 | jessesleeping |
06b5f8c149cd7360c43382bef6ae7fb3c9bd3c69 | 18,024 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimPerformanceCurve_Mathematical_FanPressureRise.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimPerformanceCurve_Mathematical_FanPressureRise.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimPerformanceCurve_Mathematical_FanPressureRise.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// 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 Fre... | 36.708758 | 150 | 0.684365 | EnEff-BIM |
06b6b5eeaebceef76699e8b9300e1c9b7f4eea6d | 316 | hxx | C++ | include/acl/export.hxx | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | include/acl/export.hxx | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | include/acl/export.hxx | obhi-d/acl | 8860227ffceff559b32425bdab7419fb99a807d4 | [
"MIT"
] | null | null | null | //! A single file must include this one time, this contains mostly debug info collectors
#pragma once
#include "allocator.hpp"
#include <sstream>
namespace acl::detail
{
#ifdef ACL_REC_STATS
detail::statistics<default_allocator_tag, true> default_allocator_statistics_instance;
#endif
} // namespace acl::detail | 21.066667 | 88 | 0.791139 | obhi-d |
06ba76bc509b9136ced0ca62bd57d523ae68b43d | 506 | cpp | C++ | src/Messages/AcceptPlayRequestMessage.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | 1 | 2021-04-28T20:32:57.000Z | 2021-04-28T20:32:57.000Z | src/Messages/AcceptPlayRequestMessage.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | 7 | 2021-08-24T14:09:33.000Z | 2021-08-30T12:47:40.000Z | src/Messages/AcceptPlayRequestMessage.cpp | BigETI/WhackAStoodentServer | 05c670a9b745262ae926aebcb1fce0f1ecc5f4d2 | [
"MIT"
] | null | null | null | #include <Messages/AcceptPlayRequestMessage.hpp>
/// <summary>
/// Constructs an accept playe request message
/// </summary>
WhackAStoodentServer::Messages::AcceptPlayRequestMessage::AcceptPlayRequestMessage() :
WhackAStoodentServer::Messages::ASerializableMessage<WhackAStoodentServer::EMessageType::AcceptPlayRequest... | 26.631579 | 110 | 0.768775 | BigETI |
06bda34131bfb20597f540583fb588a3dd20cac9 | 12,336 | cpp | C++ | dec15-1.cpp | balazs-bamer/adventofcode19 | d8166ccbd1d531db1269dfd24065ba552397e884 | [
"MIT"
] | 1 | 2019-12-09T16:14:27.000Z | 2019-12-09T16:14:27.000Z | dec15-1.cpp | balazs-bamer/adventofcode19 | d8166ccbd1d531db1269dfd24065ba552397e884 | [
"MIT"
] | null | null | null | dec15-1.cpp | balazs-bamer/adventofcode19 | d8166ccbd1d531db1269dfd24065ba552397e884 | [
"MIT"
] | null | null | null | #include <list>
#include <array>
#include <deque>
#include <limits>
#include <chrono>
#include <cctype>
#include <fstream>
#include <utility>
#include <iostream>
#include <functional>
#include <stdexcept>
#include <algorithm>
#include <unordered_map>
class Int final {
private:
int mInt;
public:
Int(int aInt) noex... | 27.413333 | 102 | 0.613489 | balazs-bamer |
06be6c05cd8a7f968bd5b57d13263f8480bf8a50 | 3,140 | hpp | C++ | include/whack/codegen/elements/args.hpp | onchere/whack | 0702e46f13855d4efd8dd0cb67af2fddfb84b00c | [
"Apache-2.0"
] | 54 | 2018-10-28T07:18:31.000Z | 2022-03-08T20:30:40.000Z | include/whack/codegen/elements/args.hpp | onchere/whack | 0702e46f13855d4efd8dd0cb67af2fddfb84b00c | [
"Apache-2.0"
] | null | null | null | include/whack/codegen/elements/args.hpp | onchere/whack | 0702e46f13855d4efd8dd0cb67af2fddfb84b00c | [
"Apache-2.0"
] | 5 | 2018-10-28T14:43:53.000Z | 2020-04-26T19:52:58.000Z | /**
* Copyright 2018-present Onchere Bironga
*
* 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... | 28.807339 | 78 | 0.621019 | onchere |
06c4162571b6f85861df72297fc0c872544ad9c0 | 610 | cpp | C++ | TOI16/Programming TH/1008.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Programming TH/1008.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | TOI16/Programming TH/1008.cpp | mrmuffinnxz/TOI-preparation | 85a7d5b70d7fc661950bbb5de66a6885a835e755 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<vector>
#include<list>
using namespace std;
main()
{
int n;
cin>>n;
vector<int> skyline(256,0);
int Li,Hi,Ri;
int Ls=256,Rs=0;
for(int i=0;i<n;i++)
{
cin>>Li>>Hi>>Ri;
if(Li<Ls) Ls=Li;
if(Ri>Rs) Rs=Ri;
for(int j=Li;j<Ri;j++)
if(Hi>skyline[j]) skyline[j]=Hi;
... | 15.25 | 61 | 0.531148 | mrmuffinnxz |
06ca27845532ad642ebb1b962842a1fbf55b9066 | 1,118 | hpp | C++ | Logger.hpp | PORT-INC/cicada | 18730fa951ebf1b92a3116c13ddc75f786595dd1 | [
"MIT"
] | null | null | null | Logger.hpp | PORT-INC/cicada | 18730fa951ebf1b92a3116c13ddc75f786595dd1 | [
"MIT"
] | null | null | null | Logger.hpp | PORT-INC/cicada | 18730fa951ebf1b92a3116c13ddc75f786595dd1 | [
"MIT"
] | null | null | null | // © 2016 PORT INC.
#ifndef LOGGER__H
#define LOGGER__H
#include "spdlog/spdlog.h"
namespace Logger
{
namespace spd = spdlog;
decltype ( spd::stderr_logger_mt("", true) ) out();
void setLevel(int level);
void setName(const std::string& name);
void setColor(bool flg);
void setPattern(const std::string& patter... | 27.95 | 59 | 0.62254 | PORT-INC |
06cdbba9971974202cc63958e80a71da8bc866f7 | 599 | cpp | C++ | kernel/src/gdt.cpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | kernel/src/gdt.cpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | kernel/src/gdt.cpp | cekkr/thor-os | 841b088eddc378ef38c98878a51958479dce4a31 | [
"MIT"
] | null | null | null | //=======================================================================
// Copyright Baptiste Wicht 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=================================================================... | 33.277778 | 82 | 0.527546 | cekkr |
06d18ed979f8f80e67b37a925171e98c9ce375c2 | 1,403 | cpp | C++ | cpp/651-660/Find K Closest Elements.cpp | KaiyuWei/leetcode | fd61f5df60cfc7086f7e85774704bacacb4aaa5c | [
"MIT"
] | 150 | 2015-04-04T06:53:49.000Z | 2022-03-21T13:32:08.000Z | cpp/651-660/Find K Closest Elements.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 1 | 2015-04-13T15:15:40.000Z | 2015-04-21T20:23:16.000Z | cpp/651-660/Find K Closest Elements.cpp | yizhu1012/leetcode | d6fa443a8517956f1fcc149c8c4f42c0ad93a4a7 | [
"MIT"
] | 64 | 2015-06-30T08:00:07.000Z | 2022-01-01T16:44:14.000Z | // Solution 1.
class Solution {
public:
vector<int> findClosestElements(vector<int>& arr, int k, int x) {
auto it = lower_bound(arr.begin(), arr.end(), x);
int idx = it - arr.begin();
if (idx == arr.size()) {
idx--;
} else if (idx > 0) {
if (abs(arr[idx - 1] -... | 24.614035 | 71 | 0.352815 | KaiyuWei |
06d7177a575ff3520a80377a7994e37354b1e4fd | 11,571 | cpp | C++ | libloco/src/LocoNetwork.cpp | candycode/loco | 4fffb785cf73c577397b107586909a24133ff7c7 | [
"BSD-3-Clause"
] | 1 | 2018-07-05T13:43:14.000Z | 2018-07-05T13:43:14.000Z | libloco/src/LocoNetwork.cpp | candycode/loco | 4fffb785cf73c577397b107586909a24133ff7c7 | [
"BSD-3-Clause"
] | null | null | null | libloco/src/LocoNetwork.cpp | candycode/loco | 4fffb785cf73c577397b107586909a24133ff7c7 | [
"BSD-3-Clause"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//Copyright (c) 2012, Ugo Varetto
//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 sourc... | 31.442935 | 114 | 0.625616 | candycode |
06db4fd736589078499431020980aebccc7fe415 | 358 | cpp | C++ | solutions/325.maximum-size-subarray-sum-equals-k.326218555.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/325.maximum-size-subarray-sum-equals-k.326218555.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/325.maximum-size-subarray-sum-equals-k.326218555.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
int maxSubArrayLen(vector<int> &nums, int k) {
int ans = 0;
unordered_map<int, int> mp;
mp[0] = -1;
int s = 0;
for (int i = 0; i < nums.size(); i++) {
s += nums[i];
if (mp.count(s - k))
ans = max(ans, i - mp[s - k]);
if (!mp.count(s))
mp[... | 17.9 | 48 | 0.452514 | satu0king |
06dc2a69a506fa51ec2c84a24cf0bcfa1d0871cd | 910 | cc | C++ | vowpalwabbit/io/tests/ostream_test.cc | HollowMan6/vowpal_wabbit | eecdaccce568b53ed195bc4d50a6a582ab9a83d5 | [
"BSD-3-Clause"
] | 4,332 | 2015-01-01T10:26:51.000Z | 2018-10-01T14:05:43.000Z | vowpalwabbit/io/tests/ostream_test.cc | HollowMan6/vowpal_wabbit | eecdaccce568b53ed195bc4d50a6a582ab9a83d5 | [
"BSD-3-Clause"
] | 1,004 | 2015-01-01T12:00:54.000Z | 2018-09-30T22:13:42.000Z | vowpalwabbit/io/tests/ostream_test.cc | HollowMan6/vowpal_wabbit | eecdaccce568b53ed195bc4d50a6a582ab9a83d5 | [
"BSD-3-Clause"
] | 1,182 | 2015-01-02T20:38:55.000Z | 2018-09-26T02:47:37.000Z | // Copyright (c) by respective owners including Yahoo!, Microsoft, and
// individual contributors. All rights reserved. Released under a BSD (revised)
// license as described in the file LICENSE.
#include "vw/io/custom_streambuf.h"
#include "vw/io/io_adapter.h"
#include "vw/io/owning_stream.h"
#include <gmock/gmock.h... | 31.37931 | 89 | 0.707692 | HollowMan6 |
06dd781842e9500f555a1602c234bb7e8be5ae48 | 803 | cc | C++ | chrome/browser/autofill/fax_number.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/browser/autofill/fax_number.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/autofill/fax_number.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/autofill/fax_number.h"
FaxNumber::FaxNumber() {}
FaxNumber::~FaxNumber() {}
FormGroup* FaxNumber::Clone() const {
return... | 23.617647 | 73 | 0.777086 | Gitman1989 |
06dd7d2a677392f81843b6b1412f05dd15a2bfc3 | 6,053 | cpp | C++ | bse/bsePhysics/Source/bseIsland.cpp | crisbia/bse | d549deda2761d301a67aa838743ec731c82e3c07 | [
"MIT"
] | null | null | null | bse/bsePhysics/Source/bseIsland.cpp | crisbia/bse | d549deda2761d301a67aa838743ec731c82e3c07 | [
"MIT"
] | 3 | 2021-12-02T12:52:35.000Z | 2021-12-19T20:37:35.000Z | bse/bsePhysics/Source/bseIsland.cpp | crisbia/bse | d549deda2761d301a67aa838743ec731c82e3c07 | [
"MIT"
] | null | null | null | #include "bseIsland.h"
#include "bseBody.h"
/*
Islands generation scheme:
for each body do
// skip non dynamic bodies
if !body.isDynamic continue
connectionFound = false
if body.islandID == -1 then
for each connection in body.connections do
// skip connection to non dynamic bodies
... | 29.241546 | 122 | 0.489014 | crisbia |