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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e2cf2e4a6fe60b74226959062f564b961d1678a6 | 582 | cpp | C++ | CodingNinjas/IsoscelesStarPattern.cpp | Sidharth-S-S/MyCppRepository | e03589b64ed65127b4a14a87e4c4054d9e4d8cc9 | [
"MIT"
] | 2 | 2022-02-03T02:43:32.000Z | 2022-03-23T05:56:10.000Z | CodingNinjas/IsoscelesStarPattern.cpp | Sidharth-S-S/MyCppRepository | e03589b64ed65127b4a14a87e4c4054d9e4d8cc9 | [
"MIT"
] | null | null | null | CodingNinjas/IsoscelesStarPattern.cpp | Sidharth-S-S/MyCppRepository | e03589b64ed65127b4a14a87e4c4054d9e4d8cc9 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
/* Read input as specified in the question.
* Print output as specified in the question.
*/
int n ;
cin >> n ;
for (int i=1;i<=n;i++) {
// print the spaces 1st ; in ith row i-1 spaces to print
for (int j = 1 ; j<=n-i;j++) ... | 24.25 | 114 | 0.484536 | Sidharth-S-S |
e2cfa6ee1464ee2f8e7106095f33a292af806968 | 2,570 | cpp | C++ | build/source/NxOgreUtil.cpp | betajaen/nxogre | ab2fb93754fa5876191de2e27a416b501f480180 | [
"MIT"
] | 22 | 2015-03-11T20:32:30.000Z | 2022-03-05T23:16:10.000Z | build/source/NxOgreUtil.cpp | betajaen/nxogre | ab2fb93754fa5876191de2e27a416b501f480180 | [
"MIT"
] | 1 | 2021-07-03T14:13:14.000Z | 2021-07-03T14:13:14.000Z | build/source/NxOgreUtil.cpp | betajaen/nxogre | ab2fb93754fa5876191de2e27a416b501f480180 | [
"MIT"
] | 13 | 2015-02-09T14:30:24.000Z | 2020-03-20T11:51:55.000Z | /**
This file is part of NxOgre.
Copyright (c) 2009 Robin Southern, http://www.nxogre.org
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, in... | 34.266667 | 127 | 0.563035 | betajaen |
e2d8cd90935e0fba1ac9c349b08023737111dc01 | 10,767 | cpp | C++ | src/sim/search/ExpertKnowledge.cpp | gamerpuppy/sts_lightspeed | dc3ac7c05cf759987da6c95bca70592d987101b0 | [
"MIT"
] | 12 | 2021-09-06T19:29:12.000Z | 2022-03-17T02:16:59.000Z | src/sim/search/ExpertKnowledge.cpp | gamerpuppy/sts_lightspeed | dc3ac7c05cf759987da6c95bca70592d987101b0 | [
"MIT"
] | 1 | 2022-01-27T14:24:54.000Z | 2022-01-27T14:24:54.000Z | src/sim/search/ExpertKnowledge.cpp | gamerpuppy/sts_lightspeed | dc3ac7c05cf759987da6c95bca70592d987101b0 | [
"MIT"
] | 1 | 2022-01-20T07:09:45.000Z | 2022-01-20T07:09:45.000Z | //
// Created by keega on 9/19/2021.
//
#include "sim/search/ExpertKnowledge.h"
using namespace sts;
int sts::search::Expert::getPlayOrdering(CardId id) {
switch (id) {
case CardId::NORMALITY:
return -30;
case CardId::PAIN:
return -25;
case CardId::APOTHEOSIS:
... | 25.393868 | 63 | 0.568032 | gamerpuppy |
e2dbbfc80bcb616a0299dbc11876660fa990a83e | 177 | cpp | C++ | PETCS/Intermediate/helloworld.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Intermediate/helloworld.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Intermediate/helloworld.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cout << "Hello, World!" << "\n";
return 0;
}
| 19.666667 | 37 | 0.542373 | dl4us |
e2e04a43c7fad8002d8ef31c22871c95a062cf10 | 62,712 | cpp | C++ | dp/gl/src/Texture.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 217 | 2015-01-06T09:26:53.000Z | 2022-03-23T14:03:18.000Z | dp/gl/src/Texture.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T12:42:05.000Z | 2017-11-28T16:10:16.000Z | dp/gl/src/Texture.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 44 | 2015-01-13T01:19:41.000Z | 2022-02-21T21:35:08.000Z | // Copyright (c) 2014-2016, NVIDIA CORPORATION. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of con... | 31.785099 | 193 | 0.621619 | asuessenbach |
e2e0804841ec19cbc0bf85186298cd3c95446a24 | 604 | hpp | C++ | src/Domain/Creators/Factory1D.hpp | macedo22/spectre | 97b2b7ae356cf86830258cb5f689f1191fdb6ddd | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/Domain/Creators/Factory1D.hpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/Domain/Creators/Factory1D.hpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include "Domain/Creators/AlignedLattice.hpp"
#include "Domain/Creators/Factory.hpp"
#include "Domain/Creators/Interval.hpp"
#include "Domain/Creators/RotatedIntervals.hpp"
#include "Utilities/TMPL.hpp"
namespace D... | 27.454545 | 62 | 0.708609 | macedo22 |
e2eb6fe227e20b8bd23c67a933f019a2c3856811 | 1,797 | cpp | C++ | src/examples/eag_control/eag_control_main.cpp | JGSuw/Firmware | c68a333795fb03034ab612ac0612aa736c9a28dc | [
"BSD-3-Clause"
] | null | null | null | src/examples/eag_control/eag_control_main.cpp | JGSuw/Firmware | c68a333795fb03034ab612ac0612aa736c9a28dc | [
"BSD-3-Clause"
] | null | null | null | src/examples/eag_control/eag_control_main.cpp | JGSuw/Firmware | c68a333795fb03034ab612ac0612aa736c9a28dc | [
"BSD-3-Clause"
] | null | null | null | #include "EAGControl.h"
#include <px4_log.h>
#include <cstring>
#include <cstdlib>
EAGControl *controller = NULL;
/**
* Print the correct usage.
*/
static void usage(const char *reason);
static void usage(const char *reason)
{
if (reason) {
warnx("%s\n", reason);
}
warnx("usage: eag_control {start|stop|statu... | 20.420455 | 78 | 0.643851 | JGSuw |
e2ef9283ebaf85d4d1dc9f773fb2410c837a4215 | 232 | cpp | C++ | codewars/remove-first-and-last-character.cpp | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | 1 | 2019-11-06T15:17:48.000Z | 2019-11-06T15:17:48.000Z | codewars/remove-first-and-last-character.cpp | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | null | null | null | codewars/remove-first-and-last-character.cpp | andraantariksa/code-exercise-answer | 69b7dbdc081cdb094cb110a72bc0c9242d3d344d | [
"MIT"
] | 1 | 2018-11-13T08:43:26.000Z | 2018-11-13T08:43:26.000Z | #include <string>
using namespace std;
string sliceString (string str ){
if(str.length() == 0){
return str;
}
str.erase(0, 1);
if(str.length() == 0){
return str;
}
str.erase(str.length()-1, 1);
return str;
}
| 14.5 | 33 | 0.586207 | andraantariksa |
e2f299007e32e3b9c29328fc7721c9933945f549 | 3,915 | cpp | C++ | runtime/mem/mem_stats_additional_info.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | 1 | 2021-09-09T03:17:23.000Z | 2021-09-09T03:17:23.000Z | runtime/mem/mem_stats_additional_info.cpp | openharmony-gitee-mirror/ark_runtime_core | 2e6f195caf482dc9607efda7cfb5cc5f98da5598 | [
"Apache-2.0"
] | null | null | null | runtime/mem/mem_stats_additional_info.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... | 35.27027 | 113 | 0.707535 | openharmony-gitee-mirror |
e2f34fe5b353debe2ec1d6b52905d0170ec15b32 | 1,257 | cc | C++ | build/ARM/python/_m5/param_EtherLink.cc | msharmavikram/gem5_experiments | 87353d28df55b9a6a5be6cbb19bce87a500ab3b4 | [
"BSD-3-Clause"
] | 5 | 2019-12-12T16:26:09.000Z | 2022-03-17T03:23:33.000Z | build/X86/python/_m5/param_EtherLink.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | build/X86/python/_m5/param_EtherLink.cc | zhoushuxin/impl_of_HPCA2018 | 594d807fb0c0712bb7766122c4efe3321d012687 | [
"BSD-3-Clause"
] | null | null | null | #include "pybind11/pybind11.h"
#include "pybind11/stl.h"
#include "params/EtherLink.hh"
#include "python/pybind11/core.hh"
#include "sim/init.hh"
#include "sim/sim_object.hh"
#include "dev/net/etherlink.hh"
#include "base/types.hh"
#include "base/types.hh"
#include "dev/net/etherdump.hh"
namespace py = pybind11;
st... | 33.972973 | 120 | 0.717582 | msharmavikram |
e2f8a2b90b6fe84d131f620a2ae86b27c0b8b701 | 4,411 | cpp | C++ | sources/calibn/tmp/helpers.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/calibn/tmp/helpers.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | null | null | null | sources/calibn/tmp/helpers.cpp | SimonsRoad/seq2map | cc8cd20842b3c6db01f73d2e6ecf543189e56891 | [
"BSD-3-Clause"
] | 1 | 2018-11-01T13:11:39.000Z | 2018-11-01T13:11:39.000Z | #include <sstream>
#include <fstream>
#include <iomanip>
#include <ctime>
#include <calibn/helpers.hpp>
using namespace cv;
std::vector<String> split(const String &s, char delim)
{
std::vector<String> elems;
split(s, delim, elems);
return elems;
}
std::vector<String>& split(const String &s, char delim, Strings &e... | 21.945274 | 146 | 0.619814 | SimonsRoad |
e2f9b11e33845462886cb273f90dd57a1ee44824 | 905 | hpp | C++ | generator/borders_loader.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 2 | 2019-01-24T15:36:20.000Z | 2019-12-26T10:03:48.000Z | generator/borders_loader.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2018-03-07T15:05:23.000Z | 2018-03-07T15:05:23.000Z | generator/borders_loader.hpp | marceldallagnol/omim | 774de15a3b8c369acbf412f15a1db61717358262 | [
"Apache-2.0"
] | 1 | 2019-08-09T21:31:29.000Z | 2019-08-09T21:31:29.000Z | #pragma once
#include "geometry/region2d.hpp"
#include "geometry/tree4d.hpp"
#include <string>
#define BORDERS_DIR "borders/"
#define BORDERS_EXTENSION ".poly"
namespace borders
{
typedef m2::RegionD Region;
typedef m4::Tree<Region> RegionsContainerT;
struct CountryPolygons
{
CountryPolygons(std::strin... | 22.625 | 87 | 0.698343 | marceldallagnol |
e2fae44f646ad661d1a508788c2d764a0603039d | 839 | cpp | C++ | Find (Kth element) Second Minimum number in an Array.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | Find (Kth element) Second Minimum number in an Array.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | Find (Kth element) Second Minimum number in an Array.cpp | Faiquekhan15/C-C-conceptual-Questions | a75141bd5a58c32e2446f695e66ffbf979b8c8af | [
"MIT"
] | null | null | null | //******************************************************************************
// C++
// Find Second Minimum number in an Array
//*******************************************************************************/
#include<iostream>
#include <limits.h>
using namespace std;
void kth... | 19.97619 | 82 | 0.402861 | Faiquekhan15 |
e2fb0903f0d4dd71bd7651f14cca93146eab1e9d | 2,628 | cpp | C++ | app/parser/Reader.cpp | josokw/ExamGenerator | 22a566799c4bb31275ef942ae5ae529285eb741a | [
"MIT"
] | 2 | 2019-07-15T05:01:57.000Z | 2019-09-25T20:23:04.000Z | app/parser/Reader.cpp | josokw/ExamGenerator | 22a566799c4bb31275ef942ae5ae529285eb741a | [
"MIT"
] | null | null | null | app/parser/Reader.cpp | josokw/ExamGenerator | 22a566799c4bb31275ef942ae5ae529285eb741a | [
"MIT"
] | null | null | null | #include "Reader.h"
#include "GenExams.h"
#include "Log.h"
#include "Parser.h"
#include <algorithm>
namespace bsp = boost::spirit::classic;
Reader::Reader(std::istream &examScript)
: messages_{}
, input_{examScript}
, examScriptText_{}
, pBuilder_{nullptr}
{
}
void Reader::clear()
{
... | 26.816327 | 84 | 0.495434 | josokw |
e2fcc7f87f57c6506bb31da97aa8ea8832d846a7 | 3,338 | cpp | C++ | BlissGBA/Memory/MemoryBus.cpp | Mesiow/BlissGBA | 45d8334a3e52917092b05b8d39e35b41b6344b4f | [
"MIT"
] | 8 | 2021-07-26T01:21:39.000Z | 2022-01-26T12:28:24.000Z | BlissGBA/Memory/MemoryBus.cpp | Mesiow/BlissGBA | 45d8334a3e52917092b05b8d39e35b41b6344b4f | [
"MIT"
] | null | null | null | BlissGBA/Memory/MemoryBus.cpp | Mesiow/BlissGBA | 45d8334a3e52917092b05b8d39e35b41b6344b4f | [
"MIT"
] | null | null | null | #include "MemoryBus.h"
MemoryBus::MemoryBus()
:genMem(), displayMem(), mmio(&genMem)
{
genMem.loadBios("roms/cult_bios.bin");
}
void MemoryBus::loadGamePak(const std::string& file)
{
pak.load(file);
}
void MemoryBus::writeU8(u32 address, u8 value)
{
if (address < GENERAL_MEM_END) {
genMem.writeU8(address, valu... | 23.507042 | 73 | 0.682744 | Mesiow |
c3af433253d265ad872567ffe708a15d2df02358 | 5,591 | hxx | C++ | inetsrv/query/filters/html/source/propspec.hxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/query/filters/html/source/propspec.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/query/filters/html/source/propspec.hxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation, 1992 - 2001.
//
// File: propspec.hxx
//
// Contents: C++ wrapper(s) for FULLPROPSPEC
//
//--------------------------------------------------------------------------
#if !defined... | 24.52193 | 91 | 0.496155 | npocmaka |
c3b1ade0a30d4659c7d519a17e422f80cc4a60e7 | 13,169 | cpp | C++ | workspace/src/lidar_processing/src/cylinder_my.cpp | Torreshan/TurtleBot | c6ae948364f82f505581dad2ee2dceb95fdcfba8 | [
"MIT"
] | 1 | 2019-01-31T13:13:03.000Z | 2019-01-31T13:13:03.000Z | workspace/src/lidar_processing/src/cylinder_my.cpp | Torreshan/TurtleBot | c6ae948364f82f505581dad2ee2dceb95fdcfba8 | [
"MIT"
] | null | null | null | workspace/src/lidar_processing/src/cylinder_my.cpp | Torreshan/TurtleBot | c6ae948364f82f505581dad2ee2dceb95fdcfba8 | [
"MIT"
] | 1 | 2019-01-14T16:24:05.000Z | 2019-01-14T16:24:05.000Z | #include <ros/ros.h>
#include <tf/tf.h>
#include <tf/transform_listener.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Point.h>
#include <iostream>
#include <sensor_msgs/PointCloud.h>
#include <geometry_msgs/PointStamped.h>
#include <math.h>
#include <std_srvs/Empty.h>
#include <geometry_msgs/Twist.h>
#... | 31.580336 | 148 | 0.563065 | Torreshan |
c3b657a02abddd3725cca1f939e78d2088c1821a | 128 | cpp | C++ | code-examples/retval-retvoid/usage_example.cpp | dawidpilarski/CodeDive-coroutines | 732111f48116bbfea963abf21afd88cca6b9c18e | [
"Apache-2.0"
] | 1 | 2020-06-08T03:55:13.000Z | 2020-06-08T03:55:13.000Z | code-examples/retval-retvoid/usage_example.cpp | dawidpilarski/CodeDive-coroutines | 732111f48116bbfea963abf21afd88cca6b9c18e | [
"Apache-2.0"
] | null | null | null | code-examples/retval-retvoid/usage_example.cpp | dawidpilarski/CodeDive-coroutines | 732111f48116bbfea963abf21afd88cca6b9c18e | [
"Apache-2.0"
] | null | null | null | task<int> foo(){
co_return 42;
}
task<void> start(){
std::cout << (co_await foo()) << std::endl;
// implicit co_return;
} | 16 | 45 | 0.59375 | dawidpilarski |
c3bd03be16660bba412a89b26ca5de691e016124 | 1,823 | cpp | C++ | src/database/overlay/SoXipMenuStyleElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/database/overlay/SoXipMenuStyleElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/database/overlay/SoXipMenuStyleElement.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
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.... | 23.675325 | 91 | 0.767965 | OpenXIP |
c3c6725e6d5c50d42da370481b736f44f8e12c7e | 627 | cpp | C++ | TCP-IP-Programming/ch2/inet_addr.cpp | Insofan/MyMind | 4de01061cec31e278cd1a948daca64303dac9acc | [
"MIT"
] | null | null | null | TCP-IP-Programming/ch2/inet_addr.cpp | Insofan/MyMind | 4de01061cec31e278cd1a948daca64303dac9acc | [
"MIT"
] | null | null | null | TCP-IP-Programming/ch2/inet_addr.cpp | Insofan/MyMind | 4de01061cec31e278cd1a948daca64303dac9acc | [
"MIT"
] | null | null | null | //
// Created by Insomnia on 2018/7/7.
//
#include <stdio.h>
#include <arpa/inet.h>
int main(int argc, char *argv[]) {
char *addr1 = "1.2.3.4";
char *addr2 = "1.2.3.256";
//可以将 点分转为32位 还可以检测无效地址
unsigned long convAddr = inet_addr(addr1);
if (convAddr == INADDR_NONE) {
printf("Error occur... | 22.392857 | 68 | 0.575758 | Insofan |
c3d126ac145c3e6d5ccc2b21526827f27d71c334 | 1,479 | cpp | C++ | q/src/video/GLES/GLES_Vertex_Buffer.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 36 | 2015-03-09T16:47:14.000Z | 2021-02-04T08:32:04.000Z | q/src/video/GLES/GLES_Vertex_Buffer.cpp | jeanlemotan/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 42 | 2017-02-11T11:15:51.000Z | 2019-12-28T16:00:44.000Z | q/src/video/GLES/GLES_Vertex_Buffer.cpp | jeanleflambeur/silkopter | cdbc67ee2c85f5c95eb4f52e2e0ba24514962dd8 | [
"BSD-3-Clause"
] | 5 | 2015-10-15T05:46:48.000Z | 2020-05-11T17:40:36.000Z | #include "QStdAfx.h"
#include "video/GLES/GLES_Vertex_Buffer.h"
#include "video/GLES/GLES_Interface.h"
#include "video/Renderer.h"
using namespace q;
using namespace video;
GLES_Vertex_Buffer::GLES_Vertex_Buffer()
: m_buffer(GLES_Buffer_Impl::Type::VERTEX)
{
}
GLES_Vertex_Buffer::~GLES_Vertex_Buffe... | 19.207792 | 63 | 0.747803 | jeanleflambeur |
c3d3fd658a1ee37d3b2ae3c051ced6b8dcdf8c02 | 1,887 | hh | C++ | src/MonteRay/Parameters/MonteRayTypes.hh | lanl/MonteRay | 839636b6ddfae7a42462827445f9d7d13813a4cd | [
"BSD-3-Clause-Open-MPI",
"MIT"
] | null | null | null | src/MonteRay/Parameters/MonteRayTypes.hh | lanl/MonteRay | 839636b6ddfae7a42462827445f9d7d13813a4cd | [
"BSD-3-Clause-Open-MPI",
"MIT"
] | null | null | null | src/MonteRay/Parameters/MonteRayTypes.hh | lanl/MonteRay | 839636b6ddfae7a42462827445f9d7d13813a4cd | [
"BSD-3-Clause-Open-MPI",
"MIT"
] | null | null | null | #ifndef MONTERAYTYPES_HH_
#define MONTERAYTYPES_HH_
#include "Containers.hh"
#define TALLY_DOUBLEPRECISION 1 // turn on (1) and off (0) for double precision tally array and compute
#define RAY_DOUBLEPRECISION 0 // turn on (1) and off (0) for double precision tally array and compute
#define MAXNUMMATERIALS 70
#define... | 20.51087 | 103 | 0.765236 | lanl |
c3d94a01fc234fa24b3da7725a56a6ead220a328 | 1,391 | cpp | C++ | net/acceptor.cpp | bihuchao/small_rpc | 8722031b72c4575a8ad52bc8bcb580a1bfecc58c | [
"BSD-2-Clause"
] | 1 | 2022-03-13T23:44:39.000Z | 2022-03-13T23:44:39.000Z | net/acceptor.cpp | bihuchao/small_rpc | 8722031b72c4575a8ad52bc8bcb580a1bfecc58c | [
"BSD-2-Clause"
] | null | null | null | net/acceptor.cpp | bihuchao/small_rpc | 8722031b72c4575a8ad52bc8bcb580a1bfecc58c | [
"BSD-2-Clause"
] | null | null | null | // Use of this source code is governed by a BSD-style license.
//
// Author: Huchao Bi (bihuchao at qq dot com)
#include "acceptor.h"
#include "base/logging.h"
#include "socket.h"
#include "eventloop.h"
#include "tcpconnection.h"
namespace small_rpc {
// Acceptor
Acceptor::Acceptor(EventLoop* el, const char* addr, u... | 27.27451 | 78 | 0.629763 | bihuchao |
c3e2f8f22a1d187e4759b3c3dfca0ff458b4345a | 1,886 | cpp | C++ | C++/Student Register Migration Tool/CheckLists.cpp | VasilisPat/UniversityProjects | 42c039e4db19774a76b3b6cb71096ea31c9a54a2 | [
"MIT"
] | null | null | null | C++/Student Register Migration Tool/CheckLists.cpp | VasilisPat/UniversityProjects | 42c039e4db19774a76b3b6cb71096ea31c9a54a2 | [
"MIT"
] | null | null | null | C++/Student Register Migration Tool/CheckLists.cpp | VasilisPat/UniversityProjects | 42c039e4db19774a76b3b6cb71096ea31c9a54a2 | [
"MIT"
] | null | null | null | #include "CheckLists.h"
#include <iostream>
#include <vector>
#include "Course.h"
#include "Grade.h"
#include "Student.h"
#include "HandleIO.h"
using namespace std;
void performCheck(vector<Student>* studList, vector<Course>* crsList, vector<Grade>* grdList){
Student *st; Grade *gd,*gdCheck; Course *cr;
bool ... | 36.269231 | 139 | 0.4772 | VasilisPat |
c3e58cf1abc09feb5b8686f6107393581dee948f | 1,946 | cpp | C++ | Source/Engine/Source/ING/Rendering/Engine/Engine.cpp | vinoxphucs/ING | cb0123847fb225b65bb5cddb1e4456cd562fd43e | [
"MIT"
] | 1 | 2022-03-01T07:30:58.000Z | 2022-03-01T07:30:58.000Z | Source/Engine/Source/ING/Rendering/Engine/Engine.cpp | vinoxphucs/ING | cb0123847fb225b65bb5cddb1e4456cd562fd43e | [
"MIT"
] | null | null | null | Source/Engine/Source/ING/Rendering/Engine/Engine.cpp | vinoxphucs/ING | cb0123847fb225b65bb5cddb1e4456cd562fd43e | [
"MIT"
] | null | null | null | #include "Engine.h"
/**
* Include System
*/
#include <ING\Rendering/System/System.h>
/**
* Include Shader Manager
*/
#include <ING\Rendering/Shader/Manager/Manager.h>
/**
* Include Material Manager
*/
#include <ING\Rendering/Material/Manager/Manager.h>
/**
* Include Mesh Manager
*/
#include <ING\Ren... | 10.932584 | 53 | 0.613566 | vinoxphucs |
c3e7d16ba286ecdc991bfb5abeac1184160f845d | 11,863 | cpp | C++ | chest/base-utils/jdk/src/main/cpp/util/utf8enc.cpp | lgoldstein/communitychest | 5d4f4b58324cd9dbd07223e2ea68ff738bd32459 | [
"Apache-2.0"
] | 1 | 2020-08-12T07:40:11.000Z | 2020-08-12T07:40:11.000Z | chest/base-utils/jdk/src/main/cpp/util/utf8enc.cpp | lgoldstein/communitychest | 5d4f4b58324cd9dbd07223e2ea68ff738bd32459 | [
"Apache-2.0"
] | null | null | null | chest/base-utils/jdk/src/main/cpp/util/utf8enc.cpp | lgoldstein/communitychest | 5d4f4b58324cd9dbd07223e2ea68ff738bd32459 | [
"Apache-2.0"
] | null | null | null | #include <util/utf8enc.h>
#include <util/tables.h>
/*--------------------------------------------------------------------------*/
/* Note: a zero-length encoding is considered OK */
EXC_TYPE CheckUTF8StringEncoding (const BYTE bStr[], const DWORD dwLen)
{
if (0 == dwLen)
return EOK;
if (NULL == bStr)
return EPA... | 28.934146 | 122 | 0.600438 | lgoldstein |
c3ea622ca4f3c04937b1d6d9dd455e28bfb8c716 | 5,196 | cpp | C++ | planner/test.cpp | adrnp/maker-of-decisions | 42c16f13c86a9dab1f7002ba7eb4b5d62e380041 | [
"MIT"
] | null | null | null | planner/test.cpp | adrnp/maker-of-decisions | 42c16f13c86a9dab1f7002ba7eb4b5d62e380041 | [
"MIT"
] | null | null | null | planner/test.cpp | adrnp/maker-of-decisions | 42c16f13c86a9dab1f7002ba7eb4b5d62e380041 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include "pomdp.h"
// My write to file stuff...
#include <iostream>
#include <fstream>
using std::ofstream;
using std::cout;
using std::endl;
/**
* Tests the observation function.
* Cases are compared with the julia implementation
* (See ~/research/GridPOMDP/test_O.jl)
*
... | 18.491103 | 96 | 0.587182 | adrnp |
c3eadb28b8704f97adf6521a9743003877697216 | 1,541 | cpp | C++ | PhotoChopper/utils/statistics.cpp | SteaveP/PhotoChopper | 7a96d389b5c77bfee9d212a679fb999dc87a4856 | [
"MIT"
] | null | null | null | PhotoChopper/utils/statistics.cpp | SteaveP/PhotoChopper | 7a96d389b5c77bfee9d212a679fb999dc87a4856 | [
"MIT"
] | 1 | 2017-03-27T16:32:08.000Z | 2017-03-27T16:32:08.000Z | PhotoChopper/utils/statistics.cpp | SteaveP/PhotoChopper | 7a96d389b5c77bfee9d212a679fb999dc87a4856 | [
"MIT"
] | null | null | null | #include "statistics.h"
namespace pc
{
namespace utils
{
Statistics::Statistics()
{
Reset();
}
Statistics::Info::Info(const std::string& file, const std::string& msg)
: filename(file), message(msg)
{}
Statistics::Info::Info()
{}
void Statistics::Reset()
{
m_success.clear();
m_warning.clear();
m_fail.clear();... | 15.565657 | 75 | 0.711875 | SteaveP |
c3eb1a09449c4ac538cb8ed5da6556b5ec3f31f9 | 8,690 | cpp | C++ | KmeansML.cpp | astha736/K-meansNetworkTrafficClassification | a2e8abbe5a5c48254f72037c0f078b5f887bb976 | [
"MIT"
] | null | null | null | KmeansML.cpp | astha736/K-meansNetworkTrafficClassification | a2e8abbe5a5c48254f72037c0f078b5f887bb976 | [
"MIT"
] | 1 | 2018-12-19T12:44:51.000Z | 2019-01-13T13:43:17.000Z | KmeansML.cpp | astha736/K-meansNetworkTrafficClassification | a2e8abbe5a5c48254f72037c0f078b5f887bb976 | [
"MIT"
] | null | null | null | # include <cstdlib>
# include <iostream>
# include <fstream>
# include <iomanip>
# include <math.h>
# include <cmath>
# include <ctime>
# include <cstring>
# include <stdlib.h>
using namespace std;
# include "KmeansML.hpp"
double *new_init_DOUBLE( int n )
{
double *array;
int i;
array = new... | 29.457627 | 166 | 0.527503 | astha736 |
c3f1427415057d66a5e13f874fc98025f3373f53 | 2,873 | cpp | C++ | proto_server/test/test_net_parse_routines.cpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | proto_server/test/test_net_parse_routines.cpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | proto_server/test/test_net_parse_routines.cpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | /*
Copyright 2015 Terry Seyler. All rights reserved.
*/
#include <core/protocol/net_parse_routines.hpp>
#include <gtest/gtest.h>
using namespace proto_net::protocol;
TEST(NetParseRoutinesTest, search_pattern_test)
{
std::string str("This is a test");
std::string pat("is");
EXPECT_TRUE( search_patt... | 25.201754 | 62 | 0.651584 | tseyler |
c3f5d5caa3eb0a1570057d44944c33d97044c029 | 50,091 | cpp | C++ | src/eval_impl_jit.cpp | jarikomppa/sassy | 0802c4ef13e5d9b6079cbee60cbf753ae26179f2 | [
"MIT"
] | 32 | 2022-03-11T17:54:09.000Z | 2022-03-25T08:07:06.000Z | src/eval_impl_jit.cpp | jarikomppa/sassy | 0802c4ef13e5d9b6079cbee60cbf753ae26179f2 | [
"MIT"
] | null | null | null | src/eval_impl_jit.cpp | jarikomppa/sassy | 0802c4ef13e5d9b6079cbee60cbf753ae26179f2 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "eval.h"
#include "xbyak/xbyak.h"
using namespace EvalFunc;
namespace jit_kludge
{
double log(double v)
{
return std::log((float)v); // no "double log(double)" exists
}
double log10(double v)
{
return std::log10((float)v);... | 26.800963 | 160 | 0.596754 | jarikomppa |
c3f9787d916eb81fbdd07a3a6702a3d06b514c0e | 75,981 | cpp | C++ | p/mpgt/MultiPartiteGraph.cpp | jose-lp/docker-ie0521 | e2c471bdc79fd94cb6dca4fe0cecc3ab2a649d7d | [
"MIT"
] | null | null | null | p/mpgt/MultiPartiteGraph.cpp | jose-lp/docker-ie0521 | e2c471bdc79fd94cb6dca4fe0cecc3ab2a649d7d | [
"MIT"
] | null | null | null | p/mpgt/MultiPartiteGraph.cpp | jose-lp/docker-ie0521 | e2c471bdc79fd94cb6dca4fe0cecc3ab2a649d7d | [
"MIT"
] | null | null | null | #include "MultiPartiteGraph.h"
#include "Defs.h"
using namespace cv;
using namespace std;
MultiPartiteGraph::MultiPartiteGraph(int n_window)
{
number_of_graphs = 0;
window_size = n_window;
position_weight = 0.07;
histogram_weight = 0.001;
contour_weight = 0.001;
area_weight = 0.00025;
enable_oclusion_solver =... | 44.175 | 240 | 0.670905 | jose-lp |
c3f9cfb939b0a918f7a75a9fa3437d84495ba561 | 10,329 | hpp | C++ | include/mc2lib/codegen/cats.hpp | melver/mc2lib | c67b3884217a1ff6cd5f0e67eb92525245488d8e | [
"BSD-3-Clause"
] | 5 | 2016-09-26T04:03:11.000Z | 2021-12-02T06:59:14.000Z | include/mc2lib/codegen/cats.hpp | melver/mc2lib | c67b3884217a1ff6cd5f0e67eb92525245488d8e | [
"BSD-3-Clause"
] | 1 | 2021-09-10T08:33:23.000Z | 2021-09-13T09:03:28.000Z | include/mc2lib/codegen/cats.hpp | melver/mc2lib | c67b3884217a1ff6cd5f0e67eb92525245488d8e | [
"BSD-3-Clause"
] | 3 | 2016-07-07T04:02:38.000Z | 2019-01-30T18:23:40.000Z | /*
* Copyright (c) 2014-2016, Marco Elver
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of... | 37.021505 | 80 | 0.643044 | melver |
c3fd3af8f9aaefafca5ea8dd675e3d7d4c35dc1e | 3,707 | cpp | C++ | code_reading/oceanbase-master/unittest/storage/test_multiple_merge.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/unittest/storage/test_multiple_merge.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/unittest/storage/test_multiple_merge.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 36.343137 | 98 | 0.731859 | wangcy6 |
c3ff4af1993142eca52ab158fbf7771c9b2919ba | 344 | hpp | C++ | Sources/Guis/GuisSubrender.hpp | CarysT/Acid | ab81fd13ab288ceaa152e0f64f6d97daf032fc19 | [
"MIT"
] | 977 | 2019-05-23T01:53:42.000Z | 2022-03-30T04:22:41.000Z | Sources/Guis/GuisSubrender.hpp | CarysT/Acid | ab81fd13ab288ceaa152e0f64f6d97daf032fc19 | [
"MIT"
] | 44 | 2019-06-02T17:30:32.000Z | 2022-03-27T14:22:40.000Z | Sources/Guis/GuisSubrender.hpp | CarysT/Acid | ab81fd13ab288ceaa152e0f64f6d97daf032fc19 | [
"MIT"
] | 121 | 2019-05-23T05:18:01.000Z | 2022-03-27T21:59:23.000Z | #pragma once
#include "Graphics/Subrender.hpp"
#include "Graphics/Pipelines/PipelineGraphics.hpp"
namespace acid {
class ACID_EXPORT GuisSubrender : public Subrender {
public:
explicit GuisSubrender(const Pipeline::Stage &pipelineStage);
void Render(const CommandBuffer &commandBuffer) override;
private:
Pipeline... | 20.235294 | 62 | 0.799419 | CarysT |
c3ff5e6ef96be4df90b879d1da31b3d9e25091c6 | 3,204 | cpp | C++ | tests/IncDFS_Exp_IO.cpp | shahbazk/IncDFS-Experimental | 84970b3e23905b6af4611c8dbfbf4806f6ed0c9e | [
"BSD-2-Clause"
] | null | null | null | tests/IncDFS_Exp_IO.cpp | shahbazk/IncDFS-Experimental | 84970b3e23905b6af4611c8dbfbf4806f6ed0c9e | [
"BSD-2-Clause"
] | null | null | null | tests/IncDFS_Exp_IO.cpp | shahbazk/IncDFS-Experimental | 84970b3e23905b6af4611c8dbfbf4806f6ed0c9e | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
* tests/IncDFS_Exp_IO.cpp
* Evaluation of algorithms on Random Graphs in two versions: VarN and VarM
* Initialization code
*
* Part of Project: Incremental-DFS-Experimental:
* https://github.com/shahbazk/IncDFS-Exp... | 18.204545 | 80 | 0.501873 | shahbazk |
7f03f8db52088f189c4791f9c9f3db02cf0a1d12 | 16,686 | hpp | C++ | include/rome/delegate.hpp | rmettler/cpp_delegates | 8557a1731eccbad9608f3111c5599f666b74750e | [
"BSL-1.0"
] | 4 | 2020-01-30T19:17:57.000Z | 2020-04-02T13:03:13.000Z | include/rome/delegate.hpp | rmettler/cpp_delegates | 8557a1731eccbad9608f3111c5599f666b74750e | [
"BSL-1.0"
] | null | null | null | include/rome/delegate.hpp | rmettler/cpp_delegates | 8557a1731eccbad9608f3111c5599f666b74750e | [
"BSL-1.0"
] | null | null | null | //
// Project: C++ delegates
// File content:
// - delegate<Ret(Args...), Behavior>
// - fwd_delegate<void(Args...), Behavior>
// - event_delegate<void(Args...)>
// - command_delegate<void(Args...)>
// See the documentation for more information.
//
// The rome::delegate implementation is based on the article of... | 36.672527 | 100 | 0.686504 | rmettler |
7f058842f1c4e283e9b8b11e3a6057ce904a0ffe | 4,300 | cpp | C++ | tests/test_queue_mpsc_waitfree.cpp | adamelliot/stitch | e2a7f4cfb0f8171f8d01e1f1c41b30f3c03be5f3 | [
"MIT"
] | 4 | 2017-11-28T17:22:46.000Z | 2022-03-17T07:47:19.000Z | tests/test_queue_mpsc_waitfree.cpp | adamelliot/stitch | e2a7f4cfb0f8171f8d01e1f1c41b30f3c03be5f3 | [
"MIT"
] | 10 | 2017-10-04T01:20:25.000Z | 2017-11-23T06:15:23.000Z | tests/test_queue_mpsc_waitfree.cpp | adamelliot/stitch | e2a7f4cfb0f8171f8d01e1f1c41b30f3c03be5f3 | [
"MIT"
] | 1 | 2019-06-13T23:05:49.000Z | 2019-06-13T23:05:49.000Z | #include "../stitch/queue_mpsc_waitfree.h"
#include "../testing/testing.h"
using namespace Stitch;
using namespace std;
static bool test()
{
Testing::Test test;
test.assert("Lockfree.", Waitfree_MPSC_Queue<int>::is_lockfree());
Waitfree_MPSC_Queue<int> q (10);
for (int rep = 0; rep < 3; ++rep)
... | 22.279793 | 94 | 0.438605 | adamelliot |
7f08564026376b1358820e6ab41610ec0cf92fd0 | 383 | cpp | C++ | Baekjoon/5046.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/5046.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/5046.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(void)
{
int n, b, h, w, min, p, sum = 0;
cin >> n >> b >> h >> w;
min = b + 1;
for (int i = 0; i < h; i++)
{
cin >> p;
sum = 0;
for (int k = 0, tmp; k < w; k++)
{
cin >> tmp;
if (tmp >= n)
sum = p*n;
}
if (min > sum && sum != 0)
min = sum;
... | 14.730769 | 34 | 0.436031 | Twinparadox |
7f0bd84d407cb2b4463e5364a39c3a73d10ffa2f | 800 | cpp | C++ | BZOJ/3668.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 6 | 2019-09-30T16:11:00.000Z | 2021-11-01T11:42:33.000Z | BZOJ/3668.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-11-21T08:17:42.000Z | 2020-07-28T12:09:52.000Z | BZOJ/3668.cpp | sshockwave/Online-Judge-Solutions | 9d0bc7fd68c3d1f661622929c1cb3752601881d3 | [
"MIT"
] | 4 | 2017-07-26T05:54:06.000Z | 2020-09-30T13:35:38.000Z | #include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
using namespace std;
inline bool is_num(char c){
return c>='0'&&c<='9';
}
inline int ni(){
int i=0;char c;
while(!is_num(c=getchar()));
while(i=i*10-'0'+c,is_num(c=getchar()));
return i;
}
const int N=100010;
int f[2];
int main(){
int n=n... | 15.384615 | 69 | 0.48375 | sshockwave |
7f0cf40b3306f8444d7aa6ffc1de404d877d0d62 | 2,525 | cpp | C++ | src/osgEarthBuildings/Parapet.cpp | VTMAK/osgearth-buildings-pprabhu | b18c78ee5c8c0876a76ee8897070f1dbb55ccb7b | [
"MIT"
] | 3 | 2017-12-05T06:38:28.000Z | 2021-12-07T06:19:39.000Z | src/osgEarthBuildings/Parapet.cpp | VTMAK/osgearth-buildings-pprabhu | b18c78ee5c8c0876a76ee8897070f1dbb55ccb7b | [
"MIT"
] | null | null | null | src/osgEarthBuildings/Parapet.cpp | VTMAK/osgearth-buildings-pprabhu | b18c78ee5c8c0876a76ee8897070f1dbb55ccb7b | [
"MIT"
] | 3 | 2017-12-03T09:48:04.000Z | 2021-12-07T06:19:41.000Z |
/* osgEarth - Dynamic map generation toolkit for OpenSceneGraph
* Copyright 2008-2016 Pelican Mapping
* http://osgearth.org
*
* osgEarth is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either ver... | 25.505051 | 89 | 0.63604 | VTMAK |
7f0f43fa28762e85079a025ac6f67c9ba0127615 | 7,473 | cpp | C++ | src/interface_model.cpp | ASLeonard/polyomino_interfaces | b281e4c50d0935b7145fc0d01b51d8ac83fad712 | [
"MIT"
] | null | null | null | src/interface_model.cpp | ASLeonard/polyomino_interfaces | b281e4c50d0935b7145fc0d01b51d8ac83fad712 | [
"MIT"
] | null | null | null | src/interface_model.cpp | ASLeonard/polyomino_interfaces | b281e4c50d0935b7145fc0d01b51d8ac83fad712 | [
"MIT"
] | 1 | 2019-04-13T12:42:11.000Z | 2019-04-13T12:42:11.000Z | #include "interface_model.hpp"
#include <functional>
namespace simulation_params
{
uint8_t n_tiles=2,model_type=0,samming_threshold=10;
double temperature=0,binding_threshold=1,mu_prob=1;
}
//weight binding strengths as the normalised hamming distance to some power T
void InterfaceAssembly::SetBindingStrengths() ... | 41.748603 | 151 | 0.729024 | ASLeonard |
7f116b31c307b84148676255bb20768a9ad838d9 | 2,166 | cpp | C++ | mc-sema/cfgToLLVM/postPasses.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 2 | 2021-08-07T16:21:29.000Z | 2021-11-17T10:58:37.000Z | mc-sema/cfgToLLVM/postPasses.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | mc-sema/cfgToLLVM/postPasses.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2013, Trail of Bits
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this
list of conditions and the following ... | 40.111111 | 157 | 0.79409 | randolphwong |
7f1321df478137cfa4268a2e577d9f987f670b7e | 7,315 | cpp | C++ | cpp/04-Fraction.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/04-Fraction.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | cpp/04-Fraction.cpp | ljcbaby/Program-Practice | e999c07b595fcf3e70c8da462304e3cc0a292bac | [
"Unlicense"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <numeric>
// Fraction in integers of integers
class Fraction {
int numerator;
int denominator;
void simplify();
public:
Fraction(int, int);
void set(int, int);
double toDouble() const;
// operators
Fraction operator+(const int&) const;
... | 28.913043 | 110 | 0.6581 | ljcbaby |
7f15809db53b5d7de56022f225198c530d8601f1 | 1,600 | hpp | C++ | include/tconcurrent/future_group.hpp | TankerHQ/tconcurrent | 1ef4fc9921833559c5cebfb9e43b631d647aab17 | [
"Apache-2.0"
] | 7 | 2018-12-05T14:47:04.000Z | 2020-01-28T04:51:55.000Z | include/tconcurrent/future_group.hpp | TankerHQ/tconcurrent | 1ef4fc9921833559c5cebfb9e43b631d647aab17 | [
"Apache-2.0"
] | null | null | null | include/tconcurrent/future_group.hpp | TankerHQ/tconcurrent | 1ef4fc9921833559c5cebfb9e43b631d647aab17 | [
"Apache-2.0"
] | 2 | 2018-12-06T04:11:49.000Z | 2020-05-29T05:36:51.000Z | #ifndef TCONCURRENT_FUTURE_GROUP_HPP
#define TCONCURRENT_FUTURE_GROUP_HPP
#include <cassert>
#include <vector>
#include <tconcurrent/future.hpp>
#include <tconcurrent/when.hpp>
#include <algorithm>
namespace tconcurrent
{
class future_group
{
public:
~future_group()
{
if (!_terminating)
{
assert(f... | 21.052632 | 78 | 0.630625 | TankerHQ |
7f1c144d74d8bee6364dffda4672e40c11127c6e | 6,076 | cc | C++ | firmware/common/AtlasChess2Feb/src/main.cc | slaclab/atlas-chess2 | 2135a79e1b43bb404abc50aeabe50e577242aa45 | [
"BSD-3-Clause-LBNL"
] | 1 | 2017-10-24T19:04:40.000Z | 2017-10-24T19:04:40.000Z | firmware/common/AtlasChess2Feb/src/main.cc | slaclab/atlas-chess2 | 2135a79e1b43bb404abc50aeabe50e577242aa45 | [
"BSD-3-Clause-LBNL"
] | null | null | null | firmware/common/AtlasChess2Feb/src/main.cc | slaclab/atlas-chess2 | 2135a79e1b43bb404abc50aeabe50e577242aa45 | [
"BSD-3-Clause-LBNL"
] | 3 | 2017-10-24T19:04:22.000Z | 2020-12-13T00:13:32.000Z | #include <stdio.h>
#include <string.h>
//
#include "xil_types.h"
#include "xil_io.h"
//
#include "xintc.h"
#include "xparameters.h"
#include "microblaze_sleep.h"
#include "xil_printf.h"
//#include "regs.h"
//#include "ssi_printf.h"
//-----------------------------------------------------------------------
//------------... | 35.741176 | 115 | 0.565997 | slaclab |
7f1c6adf5106f209dda22245af1bceba29497ba1 | 771 | cpp | C++ | Codeforces/Solutions/1373D.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | Codeforces/Solutions/1373D.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | Codeforces/Solutions/1373D.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | // Problem Code: 1373D
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
long long maximize_even(int n, vector<int>& a) {
long long even, max_sum, sum;
even = max_sum = sum = 0;
for (int i = 0; i < n; i += 2)
even += a[i];
// kadane's algorithm
for (int i = 0; i + 1 < n; i += ... | 16.76087 | 48 | 0.521401 | Mohammed-Shoaib |
7f1d64b5c6477e4471dd1ae240bc8ae2ad873e30 | 237 | hpp | C++ | WarbandServerQuery/WarbandServerQuery/Hook.hpp | RaJiska/WarbandServerQuery | 713a96de139961357731a72aeb7737d922228a87 | [
"BSD-3-Clause"
] | null | null | null | WarbandServerQuery/WarbandServerQuery/Hook.hpp | RaJiska/WarbandServerQuery | 713a96de139961357731a72aeb7737d922228a87 | [
"BSD-3-Clause"
] | null | null | null | WarbandServerQuery/WarbandServerQuery/Hook.hpp | RaJiska/WarbandServerQuery | 713a96de139961357731a72aeb7737d922228a87 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#define FREEZE_REGS pushad
#define RESTORE_REGS popad
namespace Hook
{
extern "C" void playerJoined(void);
extern "C" void playerLeft(void);
extern "C" void chatMessageSent(void);
extern "C" void logEntryAdded(void);
} | 19.75 | 39 | 0.755274 | RaJiska |
7f1dde6f2af807d4893606f43e0fae63368a4fe7 | 1,465 | cc | C++ | chrome/chrome_cleaner/test/test_strings.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/chrome_cleaner/test/test_strings.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 | chrome/chrome_cleaner/test/test_strings.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 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/chrome_cleaner/test/test_strings.h"
namespace chrome_cleaner {
// Command line switches.
const char kTestSleepMinutesSwitch[] = "test-s... | 36.625 | 73 | 0.647099 | zealoussnow |
7f1e18dbc65aa06e989421bc45da00db3c78f00e | 1,875 | cpp | C++ | cognitics/src/flt/RoadPath.cpp | mikedig/cdb-productivity-api | e2bedaa550a8afa780c01f864d72e0aebd87dd5a | [
"MIT"
] | null | null | null | cognitics/src/flt/RoadPath.cpp | mikedig/cdb-productivity-api | e2bedaa550a8afa780c01f864d72e0aebd87dd5a | [
"MIT"
] | null | null | null | cognitics/src/flt/RoadPath.cpp | mikedig/cdb-productivity-api | e2bedaa550a8afa780c01f864d72e0aebd87dd5a | [
"MIT"
] | null | null | null | /****************************************************************************
Copyright (c) 2019 Cognitics, Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including with... | 32.327586 | 77 | 0.637867 | mikedig |
7f205bc459c8821f8210d700cbb2196efbca89b0 | 17,015 | cpp | C++ | launchpad/renderer.cpp | Istarnion/RGB-D-Lauchpad | 697b20e88c880daa11f161efb7bf09598a091e8c | [
"MIT"
] | null | null | null | launchpad/renderer.cpp | Istarnion/RGB-D-Lauchpad | 697b20e88c880daa11f161efb7bf09598a091e8c | [
"MIT"
] | null | null | null | launchpad/renderer.cpp | Istarnion/RGB-D-Lauchpad | 697b20e88c880daa11f161efb7bf09598a091e8c | [
"MIT"
] | null | null | null | #include "renderer.h"
#include <assert.h>
#include <SDL.h>
#include "gl.h"
#include "ui.h"
#include "files.h"
typedef struct
{
GLuint vertex_array;
GLuint vertex_buffer;
GLuint element_buffer;
GLuint shader;
GLint mvp_loc;
} RenderData;
typedef struct
{
GLuint shader;
GLint mvp_loc;
... | 30.880218 | 106 | 0.655716 | Istarnion |
7f222111754b99236b1426197335443c12e8cc97 | 11,258 | cc | C++ | build/X86_MESI_Two_Level/python/m5/internal/param_Sinic.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | build/X86_MESI_Two_Level/python/m5/internal/param_Sinic.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | 1 | 2020-08-20T05:53:30.000Z | 2020-08-20T05:53:30.000Z | build/X86_MESI_Two_Level/python/m5/internal/param_Sinic.py.cc | hoho20000000/gem5-fy | b59f6feed22896d6752331652c4d8a41a4ca4435 | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
namespace {
const uint8_t data_m5_internal_param_Sinic[] = {
120,156,189,89,235,83,27,201,17,159,89,189,16,32,16,111,
99,131,89,159,141,45,223,157,225,30,229,228,146,115,92,241,
43,201,85,157,177,75,92,149,109,114,149,173,101,119,36,45,
72,187,170,221,1,172,43,72,85,130,43,201,2... | 58.331606 | 86 | 0.66415 | hoho20000000 |
7f22212f5e2ec007001beba181c38fdebf7c669a | 1,885 | cpp | C++ | src/types/int4.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/types/int4.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | src/types/int4.cpp | chokomancarr/chokoengine2 | 2825f2b95d24689f4731b096c8be39cc9a0f759a | [
"Apache-2.0"
] | null | null | null | #include "chokoengine.hpp"
CE_BEGIN_NAMESPACE
Int4::Int4(int v) : x(v), y(v), z(v), w(v) {}
Int4::Int4(int x, int y, int z, int w) : x(x), y(y), z(z), w(w) {}
Int4::Int4(Int2 a, Int2 b) : x(a.x), y(a.y), z(b.y), w(b.y) {}
Int4::Int4(Int3 v, int w) : x(v.x), y(v.y), z(v.z), w(w) {}
Int4::operator Int2() const {
r... | 20.053191 | 82 | 0.542175 | chokomancarr |
7f24dde052ead615ff234068250f3975cc5503b9 | 415,043 | cpp | C++ | UWP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_12.cpp | rndmized/OkamiBushi | 10ea681f9716d17aa605e0cbb764b7a4b63ae038 | [
"MIT"
] | 1 | 2019-09-14T04:39:37.000Z | 2019-09-14T04:39:37.000Z | UWP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_12.cpp | rndmized/OkamiBushi | 10ea681f9716d17aa605e0cbb764b7a4b63ae038 | [
"MIT"
] | null | null | null | UWP/Il2CppOutputProject/Source/il2cppOutput/Bulk_Generics_12.cpp | rndmized/OkamiBushi | 10ea681f9716d17aa605e0cbb764b7a4b63ae038 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "il... | 43.000725 | 404 | 0.800156 | rndmized |
7f28ba0538803d2d5d490168604c832831f92eb7 | 3,311 | cc | C++ | services/media/framework/stages/multistream_source_stage.cc | smklein/motown | eb4cd4f30c134eb411f6e6390ebe1b396769e2d5 | [
"BSD-3-Clause"
] | null | null | null | services/media/framework/stages/multistream_source_stage.cc | smklein/motown | eb4cd4f30c134eb411f6e6390ebe1b396769e2d5 | [
"BSD-3-Clause"
] | null | null | null | services/media/framework/stages/multistream_source_stage.cc | smklein/motown | eb4cd4f30c134eb411f6e6390ebe1b396769e2d5 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/media/framework/stages/multistream_source_stage.h"
#include "services/media/framework/stages/util.h"
namespace mojo {
namespace media ... | 29.04386 | 80 | 0.684083 | smklein |
7f290ca9b54e29ebad23fbe02664e068075a801f | 1,909 | cpp | C++ | 400-500/457.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 400-500/457.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | 400-500/457.cpp | Thomaw/Project-Euler | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | [
"MIT"
] | null | null | null | #include <cstdio>
typedef long long LL;
#define N 10000000
int a[N+1];
int powmod(int a,int n,int mod)
{
int p=1;
for(;n;)
{
if(n%2) p=LL(p)*a%mod;
if(n/=2) a=LL(a)*a%mod;
}
return p;
}
int inv(int a, int p) {
return powmod(a,p-2,p);
}
int primes[111]={2, 3, 5, 7, 11, 13, ... | 21.693182 | 86 | 0.396543 | Thomaw |
7f291dff83e1ee6229a4bfdb777ed4afd59d5363 | 1,696 | cpp | C++ | Source/IO.cpp | nmford20/Emu | efadff34fbc6d1a328d6df4330b35c3d67d82e87 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/IO.cpp | nmford20/Emu | efadff34fbc6d1a328d6df4330b35c3d67d82e87 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Source/IO.cpp | nmford20/Emu | efadff34fbc6d1a328d6df4330b35c3d67d82e87 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include <AMReX_MultiFabUtil.H>
#include <AMReX_PlotFileUtil.H>
#include "FlavoredNeutrinoContainer.H"
#include "IO.H"
#include "Evolve.H"
using namespace amrex;
void
WritePlotFile (const amrex::MultiFab& state,
const FlavoredNeutrinoContainer& neutrinos,
const amrex::Geometry& geom, am... | 28.266667 | 140 | 0.673349 | nmford20 |
7f2c2d8cee060dbba37104726d6008d1b0fbbb5b | 1,864 | cpp | C++ | luogu/P2622.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | 1 | 2020-10-07T12:03:12.000Z | 2020-10-07T12:03:12.000Z | luogu/P2622.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | null | null | null | luogu/P2622.cpp | Leon-Francis/AlgorithmPractice | bfff066da64ebbb00ecd33d94ebbe5bcc382867c | [
"MIT"
] | null | null | null | /***
* @Author: Leon-Francis
* @Date: 2021-04-14 21:46:51
* @Contact: leon_francis@163.com
* @LastEditTime: 2021-04-14 22:58:22
* @LastEditors: Leon-Francis
* @Description: 状压dp:关灯问题Ⅱ
* @FilePath: /AlgorithmPractice/luogu/P2622.cpp
* @(C)Copyright 2020-2021, Leon-Francis
*/
#include <iostream>
#include <queue... | 18.828283 | 57 | 0.45279 | Leon-Francis |
7f2ca2b4bbcbf04c6d07dc102c2100ccf15451da | 716 | hpp | C++ | EiRas/Framework/EiRas/PlatformDependency/OnMetal/Material/MaterialMetalBridge.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | 1 | 2019-12-24T10:12:16.000Z | 2019-12-24T10:12:16.000Z | EiRas/Framework/EiRas/PlatformDependency/OnMetal/Material/MaterialMetalBridge.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | null | null | null | EiRas/Framework/EiRas/PlatformDependency/OnMetal/Material/MaterialMetalBridge.hpp | MonsterENT/EiRas | b29592da60b1a9085f5a2d8fa4ed01b43660f712 | [
"MIT"
] | null | null | null | //
// MaterialMetalBridge.hpp
// EiRasMetalBuild
//
// Created by MonsterENT on 11/13/19.
// Copyright © 2019 MonsterENT. All rights reserved.
//
#ifndef MaterialMetalBridge_hpp
#define MaterialMetalBridge_hpp
#include <Global/PlatformDependency/EiRasPlatformBridgeProtocol.h>
#include <string>
namespace Graphic... | 21.058824 | 90 | 0.77933 | MonsterENT |
b52a337cc9972c676c2bd8b348128247c8b4b7af | 1,231 | cpp | C++ | 10423.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 10423.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | 10423.cpp | programmer-k/Baekjoon-Online-Judge-Submission | f4ea98b7e3cd101250de9e495982f218e80c37fb | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
using namespace std;
struct go {
int x;
int y;
int z;
};
typedef pair<int, pair<int, int> > pa;
int n, m, k;
int visit[1010];
vector<int> elc;
vector<go> v;
int parent[1010];
int Find(int x) {
if (parent[x] == x) return x;
return paren... | 15.012195 | 45 | 0.509342 | programmer-k |
b52bd855db3b6fd3e8babc4eff96fca651f48394 | 428 | cpp | C++ | src/system/src/root.cpp | jonathanhaigh/sq | 6ca366b86ff6436620c36eabb1f0103cab88722b | [
"MIT"
] | 1 | 2020-11-12T16:21:41.000Z | 2020-11-12T16:21:41.000Z | src/system/src/root.cpp | jonathanhaigh/sq | 6ca366b86ff6436620c36eabb1f0103cab88722b | [
"MIT"
] | 44 | 2021-02-08T19:17:57.000Z | 2021-04-05T18:51:38.000Z | src/system/src/root.cpp | jonathanhaigh/sq | 6ca366b86ff6436620c36eabb1f0103cab88722b | [
"MIT"
] | null | null | null | /* -----------------------------------------------------------------------------
* Copyright 2021 Jonathan Haigh
* SPDX-License-Identifier: MIT
* ---------------------------------------------------------------------------*/
#include "system/root.h"
#include "system/linux/SqRootImpl.h"
#include <memory>
namespace... | 25.176471 | 80 | 0.446262 | jonathanhaigh |
b52bd916c704fe938d1a91bfde963719d1de6501 | 620 | cpp | C++ | Ruken/Source/Src/Resource/Exceptions/ResourceProcessingFailure.cpp | Renondedju/Daemon | 8cdfcbc62d7e9dc6c6121ec1484555a23a20b8b6 | [
"MIT"
] | 4 | 2020-06-11T00:35:03.000Z | 2020-06-23T11:57:52.000Z | Ruken/Source/Src/Resource/Exceptions/ResourceProcessingFailure.cpp | Renondedju/Daemon | 8cdfcbc62d7e9dc6c6121ec1484555a23a20b8b6 | [
"MIT"
] | 1 | 2020-03-17T13:34:16.000Z | 2020-03-17T13:34:16.000Z | Ruken/Source/Src/Resource/Exceptions/ResourceProcessingFailure.cpp | Renondedju/Daemon | 8cdfcbc62d7e9dc6c6121ec1484555a23a20b8b6 | [
"MIT"
] | 2 | 2020-03-19T12:20:17.000Z | 2020-09-03T07:49:06.000Z |
#include "Resource/ResourceProcessingFailure.hpp"
USING_RUKEN_NAMESPACE
ResourceProcessingFailure::ResourceProcessingFailure(EResourceProcessingFailureCode const in_code, RkBool const in_validity, RkChar const* in_description) noexcept:
std::exception {in_description},
description {in_descr... | 28.181818 | 164 | 0.732258 | Renondedju |
b52cdf5e8ef2ec0e126217e625965bcb15a82502 | 1,724 | inl | C++ | cusp/graph/detail/symmetric_rcm.inl | Raman-sh/cusplibrary | 99dcde05991ef59cbc4546aeced6eb3bd49c90c9 | [
"Apache-2.0"
] | 270 | 2015-01-12T19:40:50.000Z | 2022-03-28T00:58:21.000Z | cusp/graph/detail/symmetric_rcm.inl | njh19/cusplibrary | 4f72f152804dee592fec86719049af2b5469295a | [
"Apache-2.0"
] | 41 | 2015-01-08T18:07:42.000Z | 2022-02-27T02:37:38.000Z | cusp/graph/detail/symmetric_rcm.inl | njh19/cusplibrary | 4f72f152804dee592fec86719049af2b5469295a | [
"Apache-2.0"
] | 106 | 2015-02-27T19:30:58.000Z | 2022-03-29T13:55:53.000Z | /*
* Copyright 2008-2014 NVIDIA Corporation
*
* 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... | 31.345455 | 96 | 0.738979 | Raman-sh |
b530c0f6bfd4ed95b5ac2581a25863a675307152 | 4,889 | cpp | C++ | src/Core/City.cpp | Lecrapouille/OpenGlassBox | 664299285ca231e54fab5a7c8c63292bd39c755d | [
"MIT"
] | 4 | 2020-10-14T01:42:56.000Z | 2022-03-03T22:30:56.000Z | src/Core/City.cpp | Lecrapouille/OpenGlassBox | 664299285ca231e54fab5a7c8c63292bd39c755d | [
"MIT"
] | null | null | null | src/Core/City.cpp | Lecrapouille/OpenGlassBox | 664299285ca231e54fab5a7c8c63292bd39c755d | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// Copyright (c) 2020 Quentin Quadrat.
// https://github.com/Lecrapouille/OpenGlassBox
// Based on https://github.com/federicodangelo/MultiAgentSimulation
// Distributed under MIT License.
//-------------------------------------------------... | 30.179012 | 94 | 0.45449 | Lecrapouille |
b532581a6d06704a1db83b154026633c959684f0 | 1,785 | hh | C++ | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/PCXLate/Headers/Translater.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/PCXLate/Headers/Translater.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/PCXLate/Headers/Translater.hh | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1990-1992. All rights reserved */
#ifndef __Translater__
#define __Translater__
/*
* $Header: /fuji/lewis/RCS/Translater.hh,v 1.3 1992/09/26 22:24:08 lewis Exp $
*
* Description:
*
* A Translater is a wrapper on the C++ lexer that takes an input file, and
* goes over each... | 22.3125 | 97 | 0.592157 | SophistSolutions |
b5326cc2d376801751e37350f9675517d9a8eb6f | 5,060 | cpp | C++ | src/web_server/session/handle_request/handle_request.cpp | X-rays5/web_server | c14e2c8e6e53797d2179cb5985a135e34173b3b9 | [
"MIT"
] | 2 | 2021-09-16T03:22:45.000Z | 2021-11-09T11:45:07.000Z | src/web_server/session/handle_request/handle_request.cpp | X-rays5/web_server | c14e2c8e6e53797d2179cb5985a135e34173b3b9 | [
"MIT"
] | null | null | null | src/web_server/session/handle_request/handle_request.cpp | X-rays5/web_server | c14e2c8e6e53797d2179cb5985a135e34173b3b9 | [
"MIT"
] | null | null | null | //
// Created by X-ray on 6/8/2021.
//
#pragma once
#include "handle_request.hpp"
namespace web_server {
namespace session {
namespace handle_request {
std::string ErrorResponse(std::string title, std::string what, int error_code) {
std::string body = "<!doctype html>\n<html>\n... | 55 | 356 | 0.541897 | X-rays5 |
b53785c0f7f81597e3b2d8529984e75d6bb7bc9d | 1,675 | hpp | C++ | src/gui_section.hpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/gui_section.hpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | src/gui_section.hpp | gamobink/anura | 410721a174aae98f32a55d71a4e666ad785022fd | [
"CC0-1.0"
] | null | null | null | /*
Copyright (C) 2003-2014 by David White <davewx7@gmail.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 of this software.
Permission is granted to anyone to use this software for any purpose,
incl... | 29.385965 | 78 | 0.744478 | gamobink |
b538d20a99fe761f63e38508824374a2fdf824b2 | 5,471 | cpp | C++ | Source/StdLib/ISCTYPE.cpp | FoxCutter/BootDebug | d40afa3a19d8a840788cbdb091cc121b01b36f7f | [
"BSD-2-Clause"
] | null | null | null | Source/StdLib/ISCTYPE.cpp | FoxCutter/BootDebug | d40afa3a19d8a840788cbdb091cc121b01b36f7f | [
"BSD-2-Clause"
] | 1 | 2020-02-15T03:11:11.000Z | 2020-02-15T03:11:11.000Z | Source/StdLib/ISCTYPE.cpp | FoxCutter/BootDebug | d40afa3a19d8a840788cbdb091cc121b01b36f7f | [
"BSD-2-Clause"
] | null | null | null | //==========================================
// LIBCTINY - Matt Pietrek 2001
// MSDN Magazine, January 2001
//==========================================
#include <ctype.h>
const unsigned short pctype[256] = {
_CONTROL,
_CONTROL,
_CONTROL,
_CONTR... | 24.981735 | 53 | 0.331749 | FoxCutter |
b53abd29cb90ede0c6d3a8f2895d511461da93cc | 268 | cpp | C++ | src/DisplayHandler.cpp | ustisha/ArduinoComponents | 9090a9408669c5ae9bd26ab66e7c916f9a459379 | [
"MIT"
] | null | null | null | src/DisplayHandler.cpp | ustisha/ArduinoComponents | 9090a9408669c5ae9bd26ab66e7c916f9a459379 | [
"MIT"
] | null | null | null | src/DisplayHandler.cpp | ustisha/ArduinoComponents | 9090a9408669c5ae9bd26ab66e7c916f9a459379 | [
"MIT"
] | null | null | null | #include "../include/DisplayHandler.h"
#include <../include/DisplayView.h>
void DisplayHandler::addDisplayHandler(DisplayView *view) {
displayView = view;
}
void DisplayHandler::render() {
if (displayView != nullptr) {
displayView->render();
}
}
| 20.615385 | 59 | 0.675373 | ustisha |
b54dd92db8987afcec218d39984890a19014970e | 3,085 | cpp | C++ | source/QtGui/QCompleterSlots.cpp | kenny1818/qt4xhb | f62f40d8b17acb93761014317b52da9f919707d0 | [
"MIT"
] | 1 | 2021-03-07T10:44:03.000Z | 2021-03-07T10:44:03.000Z | source/QtGui/QCompleterSlots.cpp | kenny1818/qt4xhb | f62f40d8b17acb93761014317b52da9f919707d0 | [
"MIT"
] | null | null | null | source/QtGui/QCompleterSlots.cpp | kenny1818/qt4xhb | f62f40d8b17acb93761014317b52da9f919707d0 | [
"MIT"
] | 2 | 2020-07-19T03:28:08.000Z | 2021-03-05T18:07:20.000Z | /*
Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4
Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
*/
/*
DO NOT EDIT THIS FILE - the content was created using a source code generator
*/
#include "QCompleterSlots.h"
QCompleterSlots::QCompleterSlo... | 26.367521 | 94 | 0.656402 | kenny1818 |
b54facc146c82c63b9f04277afe527f472ed5e8c | 5,047 | cpp | C++ | Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Tools/TestWebKitAPI/Tests/WebKit/ReloadPageAfterCrash.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2013 Adenilson Cavalcanti <cavalcantii@gmail.com>
*
* 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... | 33.646667 | 116 | 0.750941 | jacadcaps |
b5519edfc70ce85094dd4edd2d7e878df8063301 | 7,022 | cpp | C++ | nodes/ipt/gateway/src/tasks/push_ops.cpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 2 | 2020-03-03T12:40:29.000Z | 2021-05-06T06:20:19.000Z | nodes/ipt/gateway/src/tasks/push_ops.cpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 7 | 2020-01-14T20:38:04.000Z | 2021-05-17T09:52:07.000Z | nodes/ipt/gateway/src/tasks/push_ops.cpp | solosTec/node | e35e127867a4f66129477b780cbd09c5231fc7da | [
"MIT"
] | 2 | 2019-11-09T09:14:48.000Z | 2020-03-03T12:40:30.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sylko Olzscher
*
*/
#include "push_ops.h"
#include <smf/sml/event.h>
#include <cyng/async/task/base_task.h>
#include <cyng/chrono.h>
#include <cyng/io/io_chrono.hpp>
#include <cyng/vm/generator.h>
#include <boost/filesystem.hpp>
#include <boost/range/iterator_r... | 24.725352 | 135 | 0.583452 | solosTec |
b55546e0dfb8273c117ae6fdcb21f01ecb74cb44 | 1,459 | cpp | C++ | 1304B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 1304B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | 1304B.cpp | felikjunvianto/kfile-codeforces-submissions | 1b53da27a294a12063b0912e12ad32efe24af678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#define eps 1e-9
#de... | 19.716216 | 74 | 0.609321 | felikjunvianto |
b5555b1cc09052dff2537c6c5a6fae32cabdb828 | 269 | cpp | C++ | Cplusplus/week_four/extra/DailyTask_Mechanic/main.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | 1 | 2016-12-20T19:53:03.000Z | 2016-12-20T19:53:03.000Z | Cplusplus/week_four/extra/DailyTask_Mechanic/main.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | Cplusplus/week_four/extra/DailyTask_Mechanic/main.cpp | nexusstar/SoftUni | b97bdb08a227fd335df5b7869940c14717f760f2 | [
"MIT"
] | null | null | null | #include <iostream>
#include "man.h"
#include "mechanic.h"
int main()
{
Car ford = Car(1000);
Mechanic fordGuro;
Man goshoForda;
std::cout << fordGuro.carRepairPrice(ford) << std::endl;
fordGuro.repairCar(ford);
goshoForda.crashCar(ford);
return 0;
}
| 15.823529 | 58 | 0.67658 | nexusstar |
b55e7ffdaf3fd0787733bf3960e77b7f7e6f763a | 277 | hpp | C++ | src/blackhole/detail/traits/attributes/pack/keyword.hpp | bioothod/blackhole | 2bd242e6027f20019e60b600f50a9e25127db640 | [
"MIT"
] | 1 | 2015-01-12T05:23:28.000Z | 2015-01-12T05:23:28.000Z | src/blackhole/detail/traits/attributes/pack/keyword.hpp | tomzhang/blackhole | 4f9b7dec11b9a617b51f188bb792a1514b0bb763 | [
"MIT"
] | null | null | null | src/blackhole/detail/traits/attributes/pack/keyword.hpp | tomzhang/blackhole | 4f9b7dec11b9a617b51f188bb792a1514b0bb763 | [
"MIT"
] | null | null | null | #pragma once
#include "blackhole/attribute.hpp"
#include "blackhole/detail/traits/same.hpp"
namespace blackhole {
namespace aux {
template<class... Args>
struct is_keyword_pack : public are_same<attribute::pair_t, Args...> {};
} // namespace aux
} // namespace blackhole
| 17.3125 | 72 | 0.736462 | bioothod |
b5615bd1297a09de1e543b7de5bc79217e1e61ca | 3,294 | cpp | C++ | RenderCore/Assets/AssetUtils.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 3 | 2015-12-04T09:16:53.000Z | 2021-05-28T23:22:49.000Z | RenderCore/Assets/AssetUtils.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | null | null | null | RenderCore/Assets/AssetUtils.cpp | djewsbury/XLE | 7806e4b5c9de5631c94c2020f6adcd4bd8e3d91e | [
"MIT"
] | 2 | 2015-03-03T05:32:39.000Z | 2015-12-04T09:16:54.000Z | // Distributed under the MIT License (See
// accompanying file "LICENSE" or the website
// http://www.opensource.org/licenses/mit-license.php)
#include "AssetUtils.h"
#include "ModelScaffoldInternal.h"
#include "../Types.h"
#include "../Format.h"
#include "../StateDesc.h"
namespace RenderCore { namespace Assets
{
st... | 35.804348 | 125 | 0.710383 | djewsbury |
b561bb8184e273e58c65defc683fe7aeb52056f4 | 358 | cpp | C++ | Solutions/Project Euler #001: Multiples of 3 and 5.cpp | KronoFaze/hackerrank-project-euler-submissions | 988af9487846deaefc1ad056ec68d4016ecd4754 | [
"MIT"
] | null | null | null | Solutions/Project Euler #001: Multiples of 3 and 5.cpp | KronoFaze/hackerrank-project-euler-submissions | 988af9487846deaefc1ad056ec68d4016ecd4754 | [
"MIT"
] | null | null | null | Solutions/Project Euler #001: Multiples of 3 and 5.cpp | KronoFaze/hackerrank-project-euler-submissions | 988af9487846deaefc1ad056ec68d4016ecd4754 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
long long calc(int n, int m) {
n = (n - 1) / m;
return (1LL * m * n * (n + 1)) / 2;
}
int main(void) {
int t;
scanf("%d", &t);
while(t--) {
int n;
scanf("%d", &n);
long long ans = calc(n, 3) + calc(n, 5) - calc(n, 15);
... | 18.842105 | 63 | 0.427374 | KronoFaze |
b564d3407907a6c339c461923ab347b2ce2f5a9f | 2,338 | cc | C++ | Sources/Scene/SceneObjectList.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | Sources/Scene/SceneObjectList.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | Sources/Scene/SceneObjectList.cc | twistedflick/Yuka | c1601a7314ccbdb1de2f4b7c69f4e2eb3f749b35 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2018 Mo McRoberts.
*
* 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... | 15.181818 | 77 | 0.605646 | twistedflick |
b565da1e4d32912940a89812b3a3025fe933ea08 | 390 | cpp | C++ | machiavelli/src/csv_record.cpp | robhendriks/avans-cpp2 | beaae5650d4446cd271f7f9b07b0e90deb80d994 | [
"WTFPL"
] | null | null | null | machiavelli/src/csv_record.cpp | robhendriks/avans-cpp2 | beaae5650d4446cd271f7f9b07b0e90deb80d994 | [
"WTFPL"
] | null | null | null | machiavelli/src/csv_record.cpp | robhendriks/avans-cpp2 | beaae5650d4446cd271f7f9b07b0e90deb80d994 | [
"WTFPL"
] | null | null | null | #include "csv_record.hpp"
namespace machiavelli
{
namespace csv
{
void record::parse(std::istream& is)
{
std::string value;
while (std::getline(is, value, m_delimiter)) {
emplace_back(value);
}
if (!is && value.empty()... | 19.5 | 58 | 0.433333 | robhendriks |
b56778cb86c74d4c29625c7f25b7cf46e4fda0ba | 9,917 | hpp | C++ | common/iica_io.hpp | alexwang815/RL78 | d1b402d842f4fa7a36a655db9b680a98fe8c4965 | [
"BSD-3-Clause"
] | 23 | 2016-09-12T05:43:27.000Z | 2022-03-16T03:41:23.000Z | common/iica_io.hpp | alexwang815/RL78 | d1b402d842f4fa7a36a655db9b680a98fe8c4965 | [
"BSD-3-Clause"
] | 2 | 2021-11-26T22:21:06.000Z | 2021-11-28T01:27:29.000Z | common/iica_io.hpp | alexwang815/RL78 | d1b402d842f4fa7a36a655db9b680a98fe8c4965 | [
"BSD-3-Clause"
] | 8 | 2016-09-12T05:43:48.000Z | 2022-02-25T14:51:15.000Z | #pragma once
//=====================================================================//
/*! @file
@brief RL78/ (G13/L1C) グループ IICA 制御 @n
※マスター動作のみ実装 @n
※割り込みに対応していない、ポーリングのみ動作可能
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2016, 2017 Kunihito Hiramatsu @n
Released under the MIT licen... | 23.896386 | 95 | 0.447817 | alexwang815 |
b568304f3b216cace8b6ee4133f136082aeef78f | 1,738 | cpp | C++ | src/Utils/AudioAsset.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Utils/AudioAsset.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | src/Utils/AudioAsset.cpp | Harsh14901/COP290-Pacman | e9f821f0351a0ead5ed89becab81a3c8c0a7c18e | [
"BSD-3-Clause"
] | null | null | null | #include "Utils/AudioAsset.hpp"
AudioAsset::AudioAsset() {}
AudioAsset::AudioAsset(string sound, bool isMusic) : AudioAsset() {
init(sound, isMusic);
}
void AudioAsset::init(string sound, bool isMusic) {
sound_name = sound;
is_music = isMusic;
if (is_music) {
cout << "Is it music " << endl;
music = M... | 24.138889 | 76 | 0.602992 | Harsh14901 |
b56b090e0d3f5f7b2664b1b0fe5a857cedc08561 | 2,568 | cpp | C++ | pixie/Sound/SoundPlayer.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/Sound/SoundPlayer.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | pixie/Sound/SoundPlayer.cpp | martonantoni/pixie | ab750d25d12f8420e68e1cb393a75b1f0a0c1056 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "RiffFile.hpp"
cSoundPlayer theSoundPlayer;
void cSoundPlayer::Initialize()
{
mEffectDestroyerThread = theThreadServer->GetThread("effect_destroyer"s);
mListeningIDs.emplace_back(mEffectDestroyerThread->AddEventHandler(
[this]()
{
{
c... | 28.533333 | 150 | 0.659657 | martonantoni |
b56b0ac175fabc6a41e8cca02231d9e82c9bb1e8 | 1,822 | cpp | C++ | cpp/socket/socket.cpp | ounana/hoke | 9337d6a98192f681efd6113e4c951cb8ecae59af | [
"Apache-2.0"
] | null | null | null | cpp/socket/socket.cpp | ounana/hoke | 9337d6a98192f681efd6113e4c951cb8ecae59af | [
"Apache-2.0"
] | null | null | null | cpp/socket/socket.cpp | ounana/hoke | 9337d6a98192f681efd6113e4c951cb8ecae59af | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <iostream>
#include <cstring>
#include <fstream>
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")
using namespace std;
SOCKET m_Client;
void SendFile();
int main(int argc, char *argv[])
{
//初始化WSA
WORD sockVersion = MAKEWORD(2, 2);
WSADATA wsaData;
if (WSAStartup(sockVer... | 19.178947 | 67 | 0.627333 | ounana |
b56c840fd3e177afd90baa1c52d81a8971f94147 | 3,748 | cpp | C++ | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiTextBox.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 39 | 2022-03-25T17:21:17.000Z | 2022-03-31T18:24:12.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiTextBox.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 1 | 2022-03-20T00:35:07.000Z | 2022-03-20T01:06:20.000Z | Code/Avernakis Nodejs/Avernakis-Nodejs/Private/UiTextBox.cpp | qber-soft/Ave-Nodejs | 80b843d22b0e0620b6a5af329a851ce9921d8d85 | [
"MIT"
] | 3 | 2022-03-26T01:08:06.000Z | 2022-03-27T23:12:40.000Z | #include "StdAfx.h"
#include "UiTextBox.h"
#define ThisMethod($x) &UiTextBox::$x
#define AutoAddMethod($x, ...) AddMethod<__VA_ARGS__>( #$x, ThisMethod( $x ) )
#define MakeThisFunc($x) MakeFunc( this, &UiTextBox::$x )
namespace Nav
{
namespace
{
ObjectRegister<UiTextBox> c_obj;
}
void UiTextBox::DefineContro... | 30.225806 | 208 | 0.709979 | qber-soft |
b56fd10be54d88a1566616488a5ee3f58735652d | 2,570 | cc | C++ | inference/dimmwitted/test/sampler_test.cc | onthway/deepdive | f0b1f355446b169bc8a01061f773df598117a1b7 | [
"Apache-2.0"
] | 1,729 | 2015-01-01T02:40:56.000Z | 2022-03-29T09:08:29.000Z | inference/dimmwitted/test/sampler_test.cc | onthway/deepdive | f0b1f355446b169bc8a01061f773df598117a1b7 | [
"Apache-2.0"
] | 426 | 2015-01-02T10:28:05.000Z | 2021-07-05T02:37:40.000Z | inference/dimmwitted/test/sampler_test.cc | onthway/deepdive | f0b1f355446b169bc8a01061f773df598117a1b7 | [
"Apache-2.0"
] | 603 | 2015-01-01T08:05:19.000Z | 2022-03-22T07:45:40.000Z | /**
* Unit tests for gibbs sampling
*
* Author: Feiran Wang
*/
#include "dimmwitted.h"
#include "factor_graph.h"
#include "gibbs_sampler.h"
#include <fstream>
#include <gtest/gtest.h>
namespace dd {
// test fixture
class SamplerTest : public testing::Test {
protected:
std::unique_ptr<FactorGraph> cfg;
std::... | 28.876404 | 75 | 0.659533 | onthway |
b571464423c5f3e4ac67e95c46c24d6794b895e4 | 772 | hpp | C++ | libs/core/include/fcppt/metal/sequence_to_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/metal/sequence_to_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/metal/sequence_to_string.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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)
#ifndef FCPPT_METAL_SEQUENCE_TO_STRING_HPP_INCLUDED
#define FCPPT_METAL_SEQUENCE_TO_STRING_HPP_INC... | 15.755102 | 61 | 0.726684 | pmiddend |
b57921f94ed1068cd6a9a58adf83142623d7fc1c | 9,117 | hh | C++ | src/zrtp/defines.hh | ultravideo/kvzRTP | 088fc585ed4872c5ce3aaa747f0c5000b7f2ed82 | [
"BSD-2-Clause"
] | 3 | 2019-12-06T21:18:15.000Z | 2020-04-12T11:52:30.000Z | src/zrtp/defines.hh | ultravideo/kvzRTP | 088fc585ed4872c5ce3aaa747f0c5000b7f2ed82 | [
"BSD-2-Clause"
] | 1 | 2020-04-16T07:36:01.000Z | 2020-04-16T13:35:17.000Z | src/zrtp/defines.hh | ultravideo/kvzRTP | 088fc585ed4872c5ce3aaa747f0c5000b7f2ed82 | [
"BSD-2-Clause"
] | 1 | 2020-02-03T12:13:28.000Z | 2020-02-03T12:13:28.000Z | #pragma once
#include "uvgrtp/util.hh"
#include <vector>
namespace uvgrtp {
namespace zrtp_msg {
struct zrtp_hello_ack;
struct zrtp_commit;
struct zrtp_hello;
struct zrtp_dh;
PACK(struct zrtp_header {
uint16_t version:4;
uint16_t unused:12;
... | 32.560714 | 96 | 0.576176 | ultravideo |
b57f0e7131e6b56b5d8fef7e74ad2c31dd0130d3 | 84 | cpp | C++ | Sharpmake.FunctionalTests/NoAllFastBuildProjectFunctionalTest/codebase/LibC/LibC.cpp | mihailogazda/Sharpmake | a2e58cd151c74eac010738c63ba0f6eff4465d70 | [
"Apache-2.0"
] | 563 | 2017-09-23T15:30:50.000Z | 2020-05-26T15:04:07.000Z | Sharpmake.FunctionalTests/NoAllFastBuildProjectFunctionalTest/codebase/LibC/LibC.cpp | mihailogazda/Sharpmake | a2e58cd151c74eac010738c63ba0f6eff4465d70 | [
"Apache-2.0"
] | 76 | 2020-06-20T20:50:56.000Z | 2022-03-26T08:10:14.000Z | Sharpmake.FunctionalTests/NoAllFastBuildProjectFunctionalTest/codebase/LibC/LibC.cpp | panbolo/Sharpmake | 2f3369b729abb96d473426918803dd84690631ad | [
"Apache-2.0"
] | 104 | 2017-09-23T15:35:17.000Z | 2020-06-09T23:15:28.000Z | #include "LibC.h"
#include "LibA.h"
void fcnC(int value)
{
fcnA(value + 3);
}
| 9.333333 | 20 | 0.595238 | mihailogazda |
b581f7f2af91207563f4bc1363799476b61c05b2 | 421 | cpp | C++ | source/src/problem_data.cpp | fcampelo/polishing-heuristics | 629d268a5f05738bb8f17ebac2aa2e476383fe44 | [
"MIT"
] | 2 | 2018-04-12T09:09:42.000Z | 2020-02-27T18:52:24.000Z | source/src/problem_data.cpp | fcampelo/polishing-heuristics | 629d268a5f05738bb8f17ebac2aa2e476383fe44 | [
"MIT"
] | null | null | null | source/src/problem_data.cpp | fcampelo/polishing-heuristics | 629d268a5f05738bb8f17ebac2aa2e476383fe44 | [
"MIT"
] | 1 | 2018-02-09T00:39:59.000Z | 2018-02-09T00:39:59.000Z | #include "problem_data.h"
orcs::ProblemData::ProblemData(IloEnv& env_, const std::string& filename_) :
env(env_), filename(filename_), cplex(env), model(env), objective(),
variables(env), constraints(env)
{
// Import model from file
cplex.importModel(model, filename.c_str(), objective, variable... | 24.764706 | 82 | 0.68171 | fcampelo |
b584a5cb2ad569b58a9c9c50def34e121646d1d7 | 494 | cpp | C++ | other/expo.cpp | ishan-modi/Static-Dynamic-Algorithms | 6ac6513a808854438fa14a9b904428e92e9b1c1c | [
"MIT"
] | 2 | 2020-02-17T14:32:48.000Z | 2020-05-27T08:26:55.000Z | other/expo.cpp | ishan-modi/Static-Dynamic-Algorithms | 6ac6513a808854438fa14a9b904428e92e9b1c1c | [
"MIT"
] | null | null | null | other/expo.cpp | ishan-modi/Static-Dynamic-Algorithms | 6ac6513a808854438fa14a9b904428e92e9b1c1c | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int Nexpo(int x,int n);
int Dexpo(int x,int n);
int main()
{
int x,n,ans;
cout<<"Enter base number and power :"<<endl;
cin>>x>>n;
ans=Nexpo(x,n);
cout<<"Ans "<<ans<<endl;
ans=Dexpo(x,n);
cout<<"Ans "<<ans<<endl;
}
int Nexpo(int x,int n)
{
int i=n,r=1;
while(i>0)
{... | 11.488372 | 45 | 0.564777 | ishan-modi |
b5896bb1a6f8aee5bae7bb1f9c4db70d390b1895 | 3,043 | hpp | C++ | octopus/engine/runtime_config.hpp | STEllAR-GROUP/octopus | a1f910d63380e4ebf91198ac2bc2896505ce6146 | [
"BSL-1.0"
] | 4 | 2016-01-30T14:47:21.000Z | 2017-11-19T19:03:19.000Z | octopus/engine/runtime_config.hpp | STEllAR-GROUP/octopus | a1f910d63380e4ebf91198ac2bc2896505ce6146 | [
"BSL-1.0"
] | null | null | null | octopus/engine/runtime_config.hpp | STEllAR-GROUP/octopus | a1f910d63380e4ebf91198ac2bc2896505ce6146 | [
"BSL-1.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2012 Bryce Adelstein-Lelbach
//
// 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)
//////////////////////////////////... | 30.737374 | 80 | 0.671706 | STEllAR-GROUP |
b5899e39d64d34a3a1d149f8676178e95c568109 | 3,115 | cpp | C++ | modules/recognition/src/ghv_opt.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 17 | 2015-11-16T14:21:10.000Z | 2020-11-09T02:57:33.000Z | modules/recognition/src/ghv_opt.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 35 | 2015-07-27T15:04:43.000Z | 2019-08-22T10:52:35.000Z | modules/recognition/src/ghv_opt.cpp | ToMadoRe/v4r | 7cb817e05cb9d99cb2f68db009c27d7144d07f09 | [
"MIT"
] | 18 | 2015-08-06T09:26:27.000Z | 2020-09-03T01:31:00.000Z | #include <v4r/recognition/ghv_opt.h>
namespace v4r
{
//template<typename ModelT, typename SceneT>
//bool
//GHVmove_activate<ModelT, SceneT>::operator== (const mets::mana_move& m) const
//{
// try
// {
// const GHVmove_activate& mm = dynamic_cast<const GHVmove_activate&> (m);
// return mm.index_ ... | 32.789474 | 125 | 0.588443 | ToMadoRe |
b589bb446433d9964e92bfac8099848d180117ea | 14,750 | cpp | C++ | build/source/pcraster_aguila/pcraster_aguila_objects_autogen/EWIEGA46WW/moc_ag_VisualisationWindow.cpp | openearth/hydro-model-builder-generator-wflow | 6f689859d0a9a307324db3dbe3f03c51884a42a8 | [
"MIT"
] | null | null | null | build/source/pcraster_aguila/pcraster_aguila_objects_autogen/EWIEGA46WW/moc_ag_VisualisationWindow.cpp | openearth/hydro-model-builder-generator-wflow | 6f689859d0a9a307324db3dbe3f03c51884a42a8 | [
"MIT"
] | 2 | 2018-07-05T14:36:18.000Z | 2020-03-19T21:16:37.000Z | build/source/pcraster_aguila/pcraster_aguila_objects_autogen/EWIEGA46WW/moc_ag_VisualisationWindow.cpp | openearth/hydro-model-generator-wflow | 6f689859d0a9a307324db3dbe3f03c51884a42a8 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'ag_VisualisationWindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
**********************************************... | 37.627551 | 109 | 0.594237 | openearth |
b58aa78945735db92f1262c75b7b23103699bcd6 | 62,530 | cpp | C++ | code_reading/oceanbase-master/src/sql/executor/ob_executor_rpc_processor.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/sql/executor/ob_executor_rpc_processor.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/src/sql/executor/ob_executor_rpc_processor.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 35.67028 | 120 | 0.682392 | wangcy6 |
b58dd461bd04929077563fba97d5947835f53ef6 | 1,467 | cpp | C++ | lib/data_structures/graph/graph.cpp | shantanuwadnerkar/programming | d9368acf03e0bd3ac4388e483d82d0f492268fe4 | [
"BSD-2-Clause"
] | 1 | 2021-01-22T19:03:39.000Z | 2021-01-22T19:03:39.000Z | lib/data_structures/graph/graph.cpp | shantanuwadnerkar/programming | d9368acf03e0bd3ac4388e483d82d0f492268fe4 | [
"BSD-2-Clause"
] | null | null | null | lib/data_structures/graph/graph.cpp | shantanuwadnerkar/programming | d9368acf03e0bd3ac4388e483d82d0f492268fe4 | [
"BSD-2-Clause"
] | null | null | null | #include "graph.h"
Graph::Graph(const std::vector<graph::Edge>& edges,
int num_nodes, bool undirected)
: adj_list_(num_nodes)
{
for (auto edge : edges)
{
adj_list_[edge.src].push_back(edge.dest);
if (undirected)
{
adj_list_[edge.dest].push_back(edge.src);
... | 21.573529 | 97 | 0.492843 | shantanuwadnerkar |
b58f37060dd63f4902c641394c895925d1b974c1 | 3,194 | hpp | C++ | src/src/XERenderer/private/DynamicLines.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 11 | 2017-01-17T15:02:25.000Z | 2020-11-27T16:54:42.000Z | src/src/XERenderer/private/DynamicLines.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 9 | 2016-10-23T20:15:38.000Z | 2018-02-06T11:23:17.000Z | src/src/XERenderer/private/DynamicLines.hpp | devxkh/FrankE | 72faca02759b54aaec842831f3c7a051e7cf5335 | [
"MIT"
] | 2 | 2019-08-29T10:23:51.000Z | 2020-04-03T06:08:34.000Z | /*
* =====================================================================================
*
* Filename: BtOgreExtras.h
*
* Description: Contains the Ogre Mesh to Bullet Shape converters.
*
* Version: 1.0
* Created: 27/12/2008 01:45:56 PM
*
* Author: Nikhilesh (nikki)
modi... | 28.017544 | 161 | 0.694114 | devxkh |
b58f9cafff0c31fa47bcd45cf5313979644033a0 | 3,279 | cpp | C++ | 2015/task4.cpp | chengluo331/ic_cpp | 6cc10ae57cd98241b75f99648c87d206fef354bc | [
"Apache-2.0"
] | null | null | null | 2015/task4.cpp | chengluo331/ic_cpp | 6cc10ae57cd98241b75f99648c87d206fef354bc | [
"Apache-2.0"
] | null | null | null | 2015/task4.cpp | chengluo331/ic_cpp | 6cc10ae57cd98241b75f99648c87d206fef354bc | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
#define PRIME 2017
template <unsigned int p>
class primefield{
unsigned int a;
public:
primefield<p>(int n) {
a = n < 0 ? (n+p)%p : n%p;
};
primefield<p>& operator+= (const primefield<p>& q);
primefield<p> operator* (const primefield<p>& q) const;
pr... | 25.818898 | 97 | 0.626106 | chengluo331 |
b590462197acd2c384319b0b6f9949e7da6fb460 | 7,474 | cc | C++ | mysql-secret-store/keychain/security_invoker.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 119 | 2016-04-14T14:16:22.000Z | 2022-03-08T20:24:38.000Z | mysql-secret-store/keychain/security_invoker.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 9 | 2017-04-26T20:48:42.000Z | 2021-09-07T01:52:44.000Z | mysql-secret-store/keychain/security_invoker.cc | mueller/mysql-shell | 29bafc5692bd536a12c4e41c54cb587375fe52cf | [
"Apache-2.0"
] | 51 | 2016-07-20T05:06:48.000Z | 2022-03-09T01:20:53.000Z | /*
* Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2.0,
* as published by the Free Software Foundation.
*
* This program is also distributed with certa... | 30.631148 | 80 | 0.633396 | mueller |
b5910abbfe1cfd8f9f198bc6d0d0a305181cfdbf | 19,060 | cpp | C++ | external/qtkeychain/keychain_unix.cpp | phixion/l0phtcrack | 48ee2f711134e178dbedbd925640f6b3b663fbb5 | [
"Apache-2.0",
"MIT"
] | 2 | 2021-10-20T00:25:39.000Z | 2021-11-08T12:52:42.000Z | external/qtkeychain/keychain_unix.cpp | Brute-f0rce/l0phtcrack | 25f681c07828e5e68e0dd788d84cc13c154aed3d | [
"Apache-2.0",
"MIT"
] | null | null | null | external/qtkeychain/keychain_unix.cpp | Brute-f0rce/l0phtcrack | 25f681c07828e5e68e0dd788d84cc13c154aed3d | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-14T06:41:16.000Z | 2022-03-14T06:41:16.000Z | /******************************************************************************
* Copyright (C) 2011-2014 Frank Osterfeld <frank.osterfeld@gmail.com> *
* *
* This program is distributed in the hope that it will be useful, but ... | 38.818737 | 157 | 0.616474 | phixion |
b595f8f7a96a6b84ac3f4e99e09b8a3722b02346 | 209 | cpp | C++ | extras/general_pipelines/py2_10_10_10/py2_10_10_10.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 12 | 2021-07-24T18:33:22.000Z | 2022-03-12T16:20:49.000Z | extras/general_pipelines/py2_10_10_10/py2_10_10_10.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | null | null | null | extras/general_pipelines/py2_10_10_10/py2_10_10_10.cpp | nvpro-samples/vk_compute_mipmaps | 613b94e4d36e6f357472e9c7a3163046deb55678 | [
"Apache-2.0"
] | 3 | 2021-08-04T02:27:12.000Z | 2022-03-13T08:43:24.000Z | #include "nvpro_pyramid_dispatch_alternative.hpp"
#include "../py2_dispatch_impl.hpp"
NVPRO_PYRAMID_ADD_GENERAL_DISPATCHER(py2_10_10_10,
(py2_dispatch_impl<10, 10, 10>))
| 29.857143 | 69 | 0.679426 | nvpro-samples |