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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a276a5c5b571915bbb078380db42a824cf878ed6 | 2,822 | cpp | C++ | modules/core/src/intrinsic.cpp | shreddered/imagestego | 633b41bce2e653a3e8a46b812f05af814088ea51 | [
"MIT"
] | 2 | 2020-10-10T11:44:40.000Z | 2020-10-25T01:55:21.000Z | modules/core/src/intrinsic.cpp | shreddered/imagestego | 633b41bce2e653a3e8a46b812f05af814088ea51 | [
"MIT"
] | 9 | 2020-09-21T20:56:58.000Z | 2021-01-26T13:04:05.000Z | modules/core/src/intrinsic.cpp | shreddered/imagestego | 633b41bce2e653a3e8a46b812f05af814088ea51 | [
"MIT"
] | 2 | 2021-01-24T13:49:51.000Z | 2021-03-13T23:14:15.000Z | /*
* This file is a part of imagestego library.
*
* Copyright (c) 2020-2021 Dmitry Kalinin <x.shreddered.x@gmail.com>
*
* 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 restrict... | 30.673913 | 81 | 0.739546 |
a2771f8c514fe3d60e0124e1404599d1f26d0490 | 12,183 | cc | C++ | bin/context_engine/context_repository_unittest.cc | Acidburn0zzz/peridot | 9a3b1fb8e834d0315092478d83d0176ef28cb765 | [
"BSD-3-Clause"
] | 1 | 2018-02-05T23:33:32.000Z | 2018-02-05T23:33:32.000Z | bin/context_engine/context_repository_unittest.cc | Acidburn0zzz/peridot | 9a3b1fb8e834d0315092478d83d0176ef28cb765 | [
"BSD-3-Clause"
] | null | null | null | bin/context_engine/context_repository_unittest.cc | Acidburn0zzz/peridot | 9a3b1fb8e834d0315092478d83d0176ef28cb765 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 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 "peridot/bin/context_engine/context_repository.h"
#include "gtest/gtest.h"
#include "lib/context/cpp/context_metadata_builder.h"
#include "lib/con... | 36.044379 | 79 | 0.703111 |
a278813e4ddaccac4036a265740e6d7bd98c0dcc | 688 | cpp | C++ | win32/src/Display.cpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/src/Display.cpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | win32/src/Display.cpp | deianvn/swt-plus-plus | e85236e8279b4e6f5993d94d1bd14e6fc7e1dd1b | [
"Apache-2.0"
] | null | null | null | #include "swt/widgets/Display.hpp"
#include <windows.h>
#include <iostream>
namespace swt
{
int Display::readAndDispatch()
{
MSG msg;
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return static_cast<int>... | 17.2 | 50 | 0.55814 |
a27a370fd9ee3abfa131633d8c39a1198ca07edf | 416 | cpp | C++ | alex/chapter5/5.8_max_element.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | alex/chapter5/5.8_max_element.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | alex/chapter5/5.8_max_element.cpp | Alexhhhc/gay-school-cpp-homework | fa864ce1632367ef0fa269c25030e60d3a0aafac | [
"BSD-3-Clause"
] | null | null | null | //例5.8
//用函数求一个矩阵中的最大元
#include <iostream>
using namespace std;
int main()
{
int max_value(int array[3][4]); //函数声明
int a[3][4]={{11,32,45,67},{22,44,66,88},{15,72,43,37}}; //定义数组并初始化
cout<<"max_value is"<<max_value(a)<<endl; //输出最大值
return 0;
}
int max_value(int array[3][4])
{
int i,j,max;
max=array[0][0];
for(i=0;... | 20.8 | 68 | 0.605769 |
a27f6723c35a56017a2417fdde7b64172e160231 | 5,288 | cpp | C++ | main/FieldText.cpp | liebman/esp32-gps-ntp | 75a73ee038aa825654ca1d235904e0fa9925be06 | [
"MIT"
] | 9 | 2020-12-26T23:20:44.000Z | 2022-03-05T17:55:14.000Z | main/FieldText.cpp | liebman/esp32-gps-ntp | 75a73ee038aa825654ca1d235904e0fa9925be06 | [
"MIT"
] | 1 | 2022-01-27T19:29:57.000Z | 2022-02-10T13:19:44.000Z | main/FieldText.cpp | liebman/esp32-gps-ntp | 75a73ee038aa825654ca1d235904e0fa9925be06 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2020 Christopher B. Liebman
*
* 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,... | 34.562092 | 152 | 0.647126 |
a2822bb9fd95bc12b155536dc1c114cbf8d0c743 | 1,725 | cpp | C++ | skeleton/Skeleton.cpp | jywhy6/llvm-pass-skeleton | 8a9d578d2010d0b27277c3e2bbfa4dbb8bb8f261 | [
"MIT"
] | null | null | null | skeleton/Skeleton.cpp | jywhy6/llvm-pass-skeleton | 8a9d578d2010d0b27277c3e2bbfa4dbb8bb8f261 | [
"MIT"
] | null | null | null | skeleton/Skeleton.cpp | jywhy6/llvm-pass-skeleton | 8a9d578d2010d0b27277c3e2bbfa4dbb8bb8f261 | [
"MIT"
] | null | null | null | #include "llvm/IR/Function.h"
#include "llvm/IR/LegacyPassManager.h"
#include "llvm/Pass.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Transforms/IPO/PassManagerBuilder.h"
using namespace llvm;
// From
// https://homepages.dcc.ufmg.br/~fernando/classes/dcc888/ementa/slides/ControlFlowGraphs.pdf
namespace {
s... | 31.363636 | 93 | 0.623188 |
a2839bb0b3aeee53b85e5c825847670f870f5299 | 8,942 | cpp | C++ | AnalyzerExamples/SpiAnalyzer/SpiAnalyzer.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 15 | 2015-06-23T23:28:24.000Z | 2022-03-12T03:23:31.000Z | AnalyzerExamples/SpiAnalyzer/SpiAnalyzer.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 3 | 2015-06-23T23:41:48.000Z | 2022-03-16T22:20:50.000Z | AnalyzerExamples/SpiAnalyzer/SpiAnalyzer.cpp | blargony/RFFEAnalyzer | 24684cee1494f5ac4bd7d9c9f020f42248a06f89 | [
"MIT"
] | 3 | 2015-06-23T23:28:30.000Z | 2020-07-30T15:46:04.000Z |
#include "SpiAnalyzer.h"
#include "SpiAnalyzerSettings.h"
#include <AnalyzerChannelData.h>
//enum SpiBubbleType { SpiData, SpiError };
SpiAnalyzer::SpiAnalyzer()
: Analyzer2(),
mSettings( new SpiAnalyzerSettings() ),
mSimulationInitilized( false ),
mMosi( NULL ),
mMiso( NULL ),
mClock( NULL ),
... | 27.015106 | 164 | 0.708454 |
a2840ffffa6f81dec80b567d6c793b5d06851f60 | 24,378 | hpp | C++ | include/boost/text/normalize.hpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | include/boost/text/normalize.hpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | include/boost/text/normalize.hpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | #ifndef BOOST_TEXT_NORMALIZE_HPP
#define BOOST_TEXT_NORMALIZE_HPP
#include <boost/text/utility.hpp>
#include <boost/text/detail/normalization_data.hpp>
#include <boost/container/static_vector.hpp>
#include <algorithm>
namespace boost { namespace text {
namespace detail {
template<typename Iter, std::... | 36.330849 | 89 | 0.533145 |
a286214987b0d5bc0e6b30aaf759eac0a030398a | 118 | cpp | C++ | stack/tempCodeRunnerFile.cpp | yusufkhan004/DSA-practice-problems | 04e0ea2b311a63a38fbf9d28e974b266da1a60a1 | [
"MIT"
] | null | null | null | stack/tempCodeRunnerFile.cpp | yusufkhan004/DSA-practice-problems | 04e0ea2b311a63a38fbf9d28e974b266da1a60a1 | [
"MIT"
] | null | null | null | stack/tempCodeRunnerFile.cpp | yusufkhan004/DSA-practice-problems | 04e0ea2b311a63a38fbf9d28e974b266da1a60a1 | [
"MIT"
] | null | null | null | // st.pop();
// cout << st.Top() << endl;
// st.pop();
// st.pop();
// st.pop();
// cout << st.em | 19.666667 | 32 | 0.347458 |
a287bde9e3020f15b712a9521be0a95bb82b6aea | 277 | cpp | C++ | A-set/405A. Gravity Flip/405A. Gravity Flip.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | 1 | 2020-04-13T00:45:25.000Z | 2020-04-13T00:45:25.000Z | A-set/405A. Gravity Flip/405A. Gravity Flip.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | null | null | null | A-set/405A. Gravity Flip/405A. Gravity Flip.cpp | AhmedRamadan6/Codeforces | efd61d610243160381491f44702b5634b004e5fb | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
int c[n-1];
for (int i=0;i<n;i++)
cin >> c[i];
sort(c,c+n);
for (int i=0;i<n;i++)
cout << c[i] << " " ;
return 0;
} | 17.3125 | 30 | 0.418773 |
a2922759fb4b76a506c8637d71d5c458986bcbe6 | 341 | cpp | C++ | ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/auxkc-vtable-metaclass-patching/foo.cpp | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/auxkc-vtable-metaclass-patching/foo.cpp | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null | ZZZ_OtherDemo/00-dyld-832.7.3/testing/kernel-cache-tests/auxkc-vtable-metaclass-patching/foo.cpp | 1079278593/TreasureChest | 8b1ebe04ed7c2ed399c4ecf3b75b3fee0a1aced8 | [
"MIT"
] | null | null | null |
#include "foo.h"
#include <memory.h>
void* operator new(size_t size) { return (void*)1; }
void operator delete(void*) { }
OSDefineMetaClassAndStructors( Foo, OSObject )
OSMetaClassDefineReservedUnused( Foo, 0 )
OSMetaClassDefineReservedUnused( Foo, 1 )
OSMetaClassDefineReservedUnused( Foo, 2 )
OSMetaClassDefineRese... | 24.357143 | 52 | 0.771261 |
a2942b9f952745a967812b3fde5c4e6ddeac6068 | 12,519 | cpp | C++ | computation.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 5 | 2021-02-16T07:50:47.000Z | 2021-09-14T00:17:13.000Z | computation.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 7 | 2021-02-17T00:03:09.000Z | 2021-10-05T14:46:22.000Z | computation.cpp | hotzevzl/marxan | 23ba3a0ada90e721c745b922363458bece3477dc | [
"MIT"
] | 2 | 2020-10-02T18:08:17.000Z | 2021-06-18T09:03:01.000Z | // All functions here should be unit and should not have dependencies on the core marxan files.
#include <algorithm>
#include "computation.hpp"
#include "marxan.hpp"
#include "utils.hpp"
namespace marxan {
// Sums all connectivity edges for a pu.
double connectionCost1(const sconnections& connections, doub... | 35.974138 | 162 | 0.455627 |
a2948dac22b52450e64e88418bbf4ea6981b03ad | 442 | cc | C++ | src/interpreter/command/mc-cmd-list.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | src/interpreter/command/mc-cmd-list.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | src/interpreter/command/mc-cmd-list.cc | babynewton/mycurl | 4701659ca5cb8b2f140ed07e9dc76764be3a9bc0 | [
"MIT"
] | null | null | null | #include "command/mc-cmd-list.h"
#include <cstdio>
void mcCmdList::help(void){
fprintf(stdout, "Usage: list\n");
fprintf(stdout, " lists opend urls or alias\n");
}
mcLanguageState mcCmdList::parse(mcScanner& scanner, mcIPerformer* performer){
mcToken token = scanner.tokenize();
if(token.id != MC_TOKEN_EOL) {
f... | 26 | 78 | 0.717195 |
a2948e60903235901f2f0b6f06b045b1eb45a3e8 | 19,455 | cpp | C++ | Source/BWEB/Station.cpp | Cmccrave/CMProtoBot | 220cddaf41724004daf5aace5b48a07e28931279 | [
"MIT"
] | 32 | 2017-03-04T19:38:13.000Z | 2022-03-16T02:03:01.000Z | libs/BWEB/Source/Station.cpp | krogenth/AdditionalPylons | 60a2ba5503857de9c6aafa5261e911f39ad0ccf1 | [
"MIT"
] | 39 | 2022-01-10T22:23:20.000Z | 2022-03-31T03:56:21.000Z | libs/BWEB/Source/Station.cpp | krogenth/AdditionalPylons | 60a2ba5503857de9c6aafa5261e911f39ad0ccf1 | [
"MIT"
] | 8 | 2017-12-26T23:47:18.000Z | 2021-09-15T04:25:28.000Z | #include "BWEB.h"
using namespace std;
using namespace BWAPI;
namespace BWEB {
namespace {
vector<Station> stations;
vector<const BWEM::Base *> mainBases;
vector<const BWEM::Base *> natBases;
}
void Station::addResourceReserves()
{
const auto addReserve = [&](Unit res... | 38.448617 | 230 | 0.486199 |
a29558a201889d425c1ff0f0cea1b6f5d0a907fa | 125 | cpp | C++ | chapter-12/12.1.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-12/12.1.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-12/12.1.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | // b1 has 4 elements;
// b2's code block has ended, os b2 is destroyed, there is no point in saying how many elements in b2.
| 41.666667 | 102 | 0.72 |
a29908b3004fb0fad0016b7a77e184713333d6a2 | 477 | cpp | C++ | replacinginteger.cpp | tanner00/ICPC-Season-2 | 0be745706e6551005f45343dfda6a0e658dfbbfb | [
"MIT"
] | null | null | null | replacinginteger.cpp | tanner00/ICPC-Season-2 | 0be745706e6551005f45343dfda6a0e658dfbbfb | [
"MIT"
] | null | null | null | replacinginteger.cpp | tanner00/ICPC-Season-2 | 0be745706e6551005f45343dfda6a0e658dfbbfb | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
cin.tie(NULL);
ios_base::sync_with_stdio(false);
int64_t n, k;
cin >> n >> k;
// we take the smaller of these two values:
// n % k is what we'd be left over with if we stopped before negatives
// k - (n % k) is what we'd be left over with (positive)... | 22.714286 | 76 | 0.610063 |
a299120c0bfba1ae5fd788d09a6a17dd01e38fb5 | 1,175 | cpp | C++ | vsedit/src/script_editor/script_completer.cpp | jkotra/vapoursynth-editor | ee028830d5d390bd3fbde5577577444c011f4987 | [
"MIT"
] | null | null | null | vsedit/src/script_editor/script_completer.cpp | jkotra/vapoursynth-editor | ee028830d5d390bd3fbde5577577444c011f4987 | [
"MIT"
] | null | null | null | vsedit/src/script_editor/script_completer.cpp | jkotra/vapoursynth-editor | ee028830d5d390bd3fbde5577577444c011f4987 | [
"MIT"
] | null | null | null | #include "script_completer.h"
//==============================================================================
ScriptCompleter::ScriptCompleter(QAbstractItemModel *a_pModel,
QObject *a_pParent) : QCompleter(a_pModel, a_pParent)
{
}
//=================================================... | 25.543478 | 86 | 0.417872 |
a29f8b5a1efa699a8f6745882ba77ee3b1446821 | 566 | cpp | C++ | test/doc/algo/any_of.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | test/doc/algo/any_of.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | test/doc/algo/any_of.cpp | clayne/eve | dc268b5db474376e1c53f5a474f5bb42b7c4cb59 | [
"MIT"
] | null | null | null | #include <eve/module/core.hpp>
#include <eve/algo.hpp>
#include <iostream>
#include <vector>
#include "print.hpp"
int main()
{
std::vector<int> v = {2,6,-10,32,-8,2,-6,8,-2,4};
std::cout << " -> v = ";
doc_utils::print(v);
std::cout << " -> eve::algo::any_of(v, i >= 4) ... | 26.952381 | 91 | 0.484099 |
9474be3b14b2bc74de0da5b8ec349fc737cf28e2 | 3,219 | cc | C++ | basic/exact.cc | ririripley/recipes | 04267c68a7424326b4aa8dd14b1a879b59ab887c | [
"BSD-3-Clause"
] | 1,418 | 2015-01-07T09:40:09.000Z | 2022-03-29T08:37:02.000Z | basic/exact.cc | algoideas/recipes | 77bc5cb180e49edb31983938386ef23f752e2d2f | [
"BSD-3-Clause"
] | 22 | 2015-02-17T17:31:18.000Z | 2022-02-08T07:00:29.000Z | basic/exact.cc | algoideas/recipes | 77bc5cb180e49edb31983938386ef23f752e2d2f | [
"BSD-3-Clause"
] | 854 | 2015-01-03T11:56:10.000Z | 2022-03-31T08:50:28.000Z | #include "uint.h"
#include <float.h>
#include <stdio.h>
#include <iostream>
#include <ios>
// convert a floating point number to exact decimal number
class Float
{
public:
Float(int exponent, uint64_t mantissa)
: E(exponent), M(mantissa)
{
}
std::string decimal() const
{
std::string dec = integer(... | 19.993789 | 75 | 0.522833 |
9475d8991e797c396727f113c84eaf86110dfe5c | 1,000 | hpp | C++ | packages/raspiSync/include/raspiSync.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | packages/raspiSync/include/raspiSync.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | packages/raspiSync/include/raspiSync.hpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | // Copyright 2019 Andre Pool (Falcons)
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Andre Pool
// SPDX-License-Identifier: Apache-2.0
#ifndef RASPI_SYNC_HPP
#define RASPI_SYNC_HPP
#include "camGrabReceive.hpp"
#include "raspiControl.hpp"
#include <cstdint>
#include <iostream>
#include <thread>
#include ... | 20 | 81 | 0.71 |
9478ba14e0f0a379ffba877339acfe10100a8e16 | 522 | cpp | C++ | gongen/src/version.cpp | Bitrium-Games/gongen | 0a4a39d19e851c85d8e6a99b9a054c59ec32551d | [
"MIT"
] | 3 | 2021-07-01T13:59:45.000Z | 2021-07-07T13:53:09.000Z | gongen/src/version.cpp | Bitrium-Games/gongen | 0a4a39d19e851c85d8e6a99b9a054c59ec32551d | [
"MIT"
] | null | null | null | gongen/src/version.cpp | Bitrium-Games/gongen | 0a4a39d19e851c85d8e6a99b9a054c59ec32551d | [
"MIT"
] | 2 | 2021-06-21T17:45:20.000Z | 2021-06-21T19:22:19.000Z | #include <gen/version.hpp>
#undef ERROR
gen::gongen_version::gongen_version(uint16 milestone, uint16 major, uint16 minor, uint16 patch) : milestone(milestone), major(major), minor(minor), patch(patch) {
}
gen::string gen::gongen_version::toString() const {
gen::string result;
result.append(std::to_string(milestone... | 27.473684 | 162 | 0.726054 |
9478bf286211f52fd3d102c698c510a47899f840 | 3,938 | cpp | C++ | source/block.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | 4 | 2020-08-09T20:34:28.000Z | 2021-07-22T23:30:40.000Z | source/block.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | 5 | 2020-02-18T23:19:14.000Z | 2020-02-18T23:26:24.000Z | source/block.cpp | theKlanc/Z3 | 97c28f31483d1d5c8c7d1aa61155b256b3d4094a | [
"MIT"
] | null | null | null | #include <iostream>
#include "services.hpp"
#include "block.hpp"
#include "json.hpp"
using nlohmann::json;
blockRotation operator++(blockRotation& a, int)
{
return a = (blockRotation)((static_cast<int>(a) + 1) % 4);
}
blockRotation operator--(blockRotation& a, int)
{
return a = (blockRotation)(( static_cast<int>(a... | 23.722892 | 145 | 0.636872 |
947a23c26e6596b74361c63d2aa235d8f1d1bf0f | 361 | cpp | C++ | nodelibpd.cpp | teropa/node-libpd | 3a07bb10fe7080473a4579ba851746cd9d0d72a2 | [
"BSD-3-Clause"
] | 1 | 2021-05-04T16:34:59.000Z | 2021-05-04T16:34:59.000Z | nodelibpd.cpp | teropa/node-libpd | 3a07bb10fe7080473a4579ba851746cd9d0d72a2 | [
"BSD-3-Clause"
] | null | null | null | nodelibpd.cpp | teropa/node-libpd | 3a07bb10fe7080473a4579ba851746cd9d0d72a2 | [
"BSD-3-Clause"
] | null | null | null | #include "src/NodePd.hpp"
using v8::FunctionTemplate;
namespace nodePd {
// NativeExtension.cc represents the top level of the module.
// C++ constructs that are exposed to javascript are exported here
NAN_MODULE_INIT(InitAll) {
// Passing target down to the next NAN_MODULE_INIT
NodePd::Init(target);
}
NODE_MOD... | 21.235294 | 66 | 0.756233 |
947a85f61825eec5c0801f30004ef88198c36edb | 7,756 | cpp | C++ | tests/test_local_ham.cpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2021-04-24T08:47:05.000Z | 2021-04-24T08:47:05.000Z | tests/test_local_ham.cpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2021-09-28T19:02:14.000Z | 2021-09-28T19:02:14.000Z | tests/test_local_ham.cpp | chaeyeunpark/ExactDiagonalization | c93754e724486cc68453399c5dda6a2dadf45cb8 | [
"MIT"
] | 1 | 2020-03-22T18:59:11.000Z | 2020-03-22T18:59:11.000Z | #define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <Eigen/Dense>
#include <Eigen/Eigenvalues>
#include <unsupported/Eigen/KroneckerProduct>
#include <Spectra/MatOp/SparseSymMatProd.h>
#include <Spectra/SymEigsSolver.h>
#include <iostream>
#include <cassert>
#include <random>
#include <algorithm>
#include "ed... | 24.31348 | 85 | 0.647886 |
947d1390256ada9bca1292f25b4b71686952c03e | 10,408 | cpp | C++ | pxr/usdImaging/lib/usdImaging/materialAdapter.cpp | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 6 | 2018-08-26T13:27:22.000Z | 2021-08-14T23:57:38.000Z | pxr/usdImaging/lib/usdImaging/materialAdapter.cpp | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 1 | 2021-08-14T23:57:51.000Z | 2021-08-14T23:57:51.000Z | pxr/usdImaging/lib/usdImaging/materialAdapter.cpp | navefx/YuksUSD | 56c2e1def36ee07121f4ecb349c1626472b3c338 | [
"AML"
] | 4 | 2018-06-14T18:14:59.000Z | 2021-09-13T22:20:50.000Z | //
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... | 37.039146 | 79 | 0.64412 |
947ffd82a8f2ee330e0277e49c4d1f0ddb1f328c | 752 | cc | C++ | ext/snow-ext/hash.cc | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | 4 | 2015-10-01T20:10:20.000Z | 2021-08-28T23:43:33.000Z | ext/snow-ext/hash.cc | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | ext/snow-ext/hash.cc | nilium/snow | 296466e49fd5ebd8d4d40dbf96b14903daa705a8 | [
"Zlib",
"BSD-2-Clause"
] | null | null | null | #include "hash.hh"
#include "murmur3.h"
namespace murmur3 {
uint32_t hash32(const string &str, uint32_t seed)
{
return hash32(str.c_str(), str.size(), seed);
}
uint64_t hash64(const string &str, uint32_t seed)
{
return hash64(str.c_str(), str.size(), seed);
}
uint64_t hash64(const char *str, const size_t lengt... | 18.8 | 88 | 0.683511 |
9480e7c1a18f1682a67c7f2ee6baec0dfc9b7093 | 16,998 | ipp | C++ | include/native/async/ActionCallbackFinally.ipp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 16 | 2016-03-16T22:16:18.000Z | 2021-04-05T04:46:38.000Z | include/native/async/ActionCallbackFinally.ipp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 11 | 2016-03-16T22:02:26.000Z | 2021-04-04T02:20:51.000Z | include/native/async/ActionCallbackFinally.ipp | nodenative/nodenative | cf988c9399e0793b1b8c29a8ffd09e910d1a0cb3 | [
"MIT"
] | 5 | 2016-03-22T14:03:34.000Z | 2021-01-06T18:08:46.000Z | #ifndef __NATIVE_ASYNC_ACTIONCALLBACKFINALLY_IPP__
#define __NATIVE_ASYNC_ACTIONCALLBACKFINALLY_IPP__
/*-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* Propose :
* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*/
#include "./ActionCallbackFinally.hpp"
#include "./Future.hpp"
namespace native {
template <typename R, typename... | 45.571046 | 120 | 0.628486 |
9483c83e1d7cb618fe4f641897f083fd06d51411 | 18,291 | cpp | C++ | skinManagerGui-gtk/src/main.cpp | robotology-legacy/icub-gtk-modules | 10b1d645b4a9818b0cb002b0d2d015e13ad32168 | [
"BSD-3-Clause"
] | null | null | null | skinManagerGui-gtk/src/main.cpp | robotology-legacy/icub-gtk-modules | 10b1d645b4a9818b0cb002b0d2d015e13ad32168 | [
"BSD-3-Clause"
] | null | null | null | skinManagerGui-gtk/src/main.cpp | robotology-legacy/icub-gtk-modules | 10b1d645b4a9818b0cb002b0d2d015e13ad32168 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2010 RobotCub Consortium, European Commission FP6 Project IST-004370
* Authors: Andrea Del Prete
* email: andrea.delprete@iit.it
* website: www.robotcub.org
* Permission is granted to copy, distribute, and/or modify this program
* under the terms of the GNU General Public License, version 2... | 45.7275 | 139 | 0.691542 |
9483cd23602c72ffc8cd854fe54102cea2e0eb0a | 1,846 | cc | C++ | test/test_file_writer.cc | wobbals/barc | ce7a417b37941a696105904e67058adbf0a35c59 | [
"Apache-2.0"
] | 8 | 2017-02-21T21:07:44.000Z | 2021-05-16T10:22:06.000Z | test/test_file_writer.cc | wobbals/barc | ce7a417b37941a696105904e67058adbf0a35c59 | [
"Apache-2.0"
] | 11 | 2017-03-06T22:09:34.000Z | 2020-05-12T07:06:09.000Z | test/test_file_writer.cc | wobbals/barc | ce7a417b37941a696105904e67058adbf0a35c59 | [
"Apache-2.0"
] | 6 | 2017-02-21T21:35:48.000Z | 2019-12-03T06:42:27.000Z | //
// test_file_writer.c
// barc
//
// Created by Charley Robinson on 3/16/17.
//
extern "C" {
#include <unistd.h>
#include "file_writer.h"
}
#include "gtest/gtest.h"
TEST(FileWriter, AllocFileWriter) {
struct file_writer_t* file_writer = NULL;
file_writer_alloc(&file_writer);
EXPECT_TRUE(file_writer != NUL... | 26.371429 | 79 | 0.684724 |
9486169b2ea75e97af60597fe4737dea2993fe73 | 1,088 | cpp | C++ | codes/moderncpp/type_traits/is_function/is_function01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 3 | 2022-01-25T07:33:43.000Z | 2022-03-30T10:25:09.000Z | codes/moderncpp/type_traits/is_function/is_function01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | null | null | null | codes/moderncpp/type_traits/is_function/is_function01/main.cpp | eric2003/ModernCMake | 48fe5ed2f25481a7c93f86af38a692f4563afcaa | [
"MIT"
] | 2 | 2022-01-17T13:39:12.000Z | 2022-03-30T10:25:12.000Z | #include <iostream>
#include <type_traits>
int a(int i){return i;} // function
int(*b)(int)=a; // pointer to function
struct C { int operator()(int i){return i;} } c; // function-like class
int main( int argc, char **argv )
{
{
# define REF(x) << #x "... | 31.085714 | 72 | 0.517463 |
94898f7becfe84ce195e0163ca94a9fdce0d90aa | 2,735 | cpp | C++ | test/net/ReceiverTest.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | 1 | 2019-11-16T17:44:13.000Z | 2019-11-16T17:44:13.000Z | test/net/ReceiverTest.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | 51 | 2019-09-29T09:16:22.000Z | 2020-10-24T10:04:59.000Z | test/net/ReceiverTest.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | null | null | null | //
// Created by rolf on 19-09-19.
//
#include "net/Receiver.h"
#include "gtest/gtest.h"
TEST(ReceiverTest,receiveTest){
//We are going to manually send commands to test the receiver
QUdpSocket sendSocket;
QHostAddress address("127.0.0.1");
unsigned int port = 10006;
net::Receiver receiver(addres... | 31.079545 | 85 | 0.696527 |
948b863e1c8374f2af65293d88e38b9c4aacbf52 | 11,235 | cpp | C++ | src/caffe/layers/search_n_layer.cpp | suyuan32/atlas_200dk_caffe | 119c7696ea787363e2f58c2a7fb6e7395098b0d1 | [
"MIT"
] | 1 | 2021-09-17T14:24:01.000Z | 2021-09-17T14:24:01.000Z | src/caffe/layers/search_n_layer.cpp | suyuan32/atlas_200dk_caffe | 119c7696ea787363e2f58c2a7fb6e7395098b0d1 | [
"MIT"
] | null | null | null | src/caffe/layers/search_n_layer.cpp | suyuan32/atlas_200dk_caffe | 119c7696ea787363e2f58c2a7fb6e7395098b0d1 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2019-2019. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the Apache License Version 2.0.You may not use this file except in compliance with the License.
*
* This program is distributed in the h... | 35.330189 | 120 | 0.594482 |
948c95b8a409ced5d4964cb99c3bd1dd77ce1fe6 | 7,467 | cpp | C++ | src/tools/cppgen/code/ast_decl.cpp | brezillon/opensplice | 725ae9d949c83fce1746bd7d8a154b9d0a81fe3e | [
"Apache-2.0"
] | 133 | 2017-11-09T02:10:00.000Z | 2022-03-29T09:45:10.000Z | src/tools/cppgen/code/ast_decl.cpp | brezillon/opensplice | 725ae9d949c83fce1746bd7d8a154b9d0a81fe3e | [
"Apache-2.0"
] | 131 | 2017-11-07T14:48:43.000Z | 2022-03-13T15:30:47.000Z | src/tools/cppgen/code/ast_decl.cpp | brezillon/opensplice | 725ae9d949c83fce1746bd7d8a154b9d0a81fe3e | [
"Apache-2.0"
] | 94 | 2017-11-09T02:26:19.000Z | 2022-02-24T06:38:25.000Z | /*
COPYRIGHT
Copyright 1992, 1993, 1994 Sun Microsystems, Inc. Printed in the United
States of America. All Rights Reserved.
This product is protected by copyright and distributed under the following
license restricting its use.
The Interface Definition Language Compiler Front End (CFE) is made
available for ... | 23.189441 | 75 | 0.714745 |
948d4b4be64c30871044e059a320c622fa676986 | 1,919 | cpp | C++ | src/GreenFractals.cpp | ecssiah/Buddhabrot-Variations | cdc6c9c273c0e33036acf1850c1ad87e8432c37e | [
"MIT"
] | null | null | null | src/GreenFractals.cpp | ecssiah/Buddhabrot-Variations | cdc6c9c273c0e33036acf1850c1ad87e8432c37e | [
"MIT"
] | null | null | null | src/GreenFractals.cpp | ecssiah/Buddhabrot-Variations | cdc6c9c273c0e33036acf1850c1ad87e8432c37e | [
"MIT"
] | null | null | null | #include <cmath>
#include <complex>
#include <vector>
#include <iostream>
#include <Eigen/Geometry>
#include <Magick++.h>
#include "Constants.h"
#include "ImageGenerator.h"
#include "FractalInstance.h"
using namespace std;
using namespace Eigen;
using namespace Magick;
vector<FractalInstance> fractals;
// user lit... | 20.634409 | 67 | 0.583116 |
948dff59d71da8ab5af5b4c07aaf0576684d3bcc | 1,171 | cpp | C++ | Camp_2-2563/07_MST/39_CableCar.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_2-2563/07_MST/39_CableCar.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | Camp_2-2563/07_MST/39_CableCar.cpp | MasterIceZ/POSN_BUU | 56e176fb843d7ddcee0cf4acf2bb141576c260cf | [
"MIT"
] | null | null | null | /*
* AUTHOR : Hydrolyzed~
* SCHOOL : RYW
* CENTER : BUU
* TASK : Cable Car TOI12
* ALGO : Minimum Spanning Tree
* DATE : 9 May 2021
* */
#include<bits/stdc++.h>
using namespace std;
#define dec(x,y) fixed << setprecision(y) << x
#define all(x) (x).begin(), (x).end()
#define endl '\n'
#define int long long... | 16.492958 | 49 | 0.541418 |
9497622dfd397a60d8fcf26e94920c41c83170e6 | 430 | hpp | C++ | CocoaPhoenix/include/cocoa_phx/PHXViewDelegate.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 2 | 2019-05-04T19:33:26.000Z | 2019-06-29T13:19:33.000Z | CocoaPhoenix/include/cocoa_phx/PHXViewDelegate.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 13 | 2019-05-05T12:40:54.000Z | 2020-02-29T20:32:11.000Z | CocoaPhoenix/include/cocoa_phx/PHXViewDelegate.hpp | phoenix-engine/phoenix | c3285482ee507b566a1c38da071439dab507a877 | [
"MIT"
] | 4 | 2018-09-15T21:59:08.000Z | 2019-05-04T20:19:07.000Z | //
// PHXViewDelegate.hpp
// CocoaPhoenix
//
// Created by Bodie Solomon on 3/12/19.
//
#ifndef PHXViewDelegate_hpp
#define PHXViewDelegate_hpp
/// PHXViewDelegate responds to UI draw events by making the appropriate calls
/// into the Phoenix engine object.
@interface PHXViewDelegate : NSObject<MTKViewDelegate>
... | 21.5 | 78 | 0.765116 |
949c54d35079b00ea4ddd452dfe22bc43713c507 | 22,844 | cpp | C++ | src/joml.cpp | pfirsich/joml-cpp | b9ecdba645e15fd9e631ae0ed54e02ea94a796ed | [
"MIT"
] | 1 | 2021-04-18T08:56:42.000Z | 2021-04-18T08:56:42.000Z | src/joml.cpp | pfirsich/joml-cpp | b9ecdba645e15fd9e631ae0ed54e02ea94a796ed | [
"MIT"
] | null | null | null | src/joml.cpp | pfirsich/joml-cpp | b9ecdba645e15fd9e631ae0ed54e02ea94a796ed | [
"MIT"
] | null | null | null | #include <cassert>
#include <cmath>
#include <iostream>
#include <limits>
#include "joml.hpp"
#define JOML_CONTEXT \
"===========\n" + getContextString(str, getPosition(str, cursor)) + "===========\n"
#define JOML_DEBUG // std::cout << ... | 33.155298 | 100 | 0.487393 |
949ca9f22fa28763a77c01cce817538524129fc5 | 3,809 | cpp | C++ | Projects/RealityEngine/source/Engine.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Engine.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Engine.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | 1 | 2021-11-05T02:55:27.000Z | 2021-11-05T02:55:27.000Z | // Copyright Reality Engine. All Rights Reserved.
#include "Engine.h"
#define GLFW_INCLUDE_NONE
#include <glfw/glfw3.h>
Reality::GameEngine::GameEngine() {
g_SceneManager = new SceneManager;
g_Logger = new Logger;
g_AudioEngine = new AudioEngine;
g_Randomizer = new Randomizer;
g_PlayerPref = new Pla... | 38.474747 | 93 | 0.699396 |
949d5267be41656bf2b98284eeddb72ab25c34c6 | 3,754 | cpp | C++ | src/csaltTester/src/TestOptCtrl/src/pointpath/RayleighControlStateConstraintPointObject.cpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | src/csaltTester/src/TestOptCtrl/src/pointpath/RayleighControlStateConstraintPointObject.cpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | src/csaltTester/src/TestOptCtrl/src/pointpath/RayleighControlStateConstraintPointObject.cpp | IncompleteWorlds/GMAT_2020 | 624de54d00f43831a4d46b46703e069d5c8c92ff | [
"Apache-2.0"
] | null | null | null | //$Id$
//------------------------------------------------------------------------------
// RayleighControlStateConstraintPointObject
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2020 United Sta... | 37.168317 | 150 | 0.415024 |
94a56834a38a173a81c91e308bac6853c89f697e | 1,299 | cpp | C++ | llvm-clang/clang_mini_rpc/clang_mini_rpc_client.cpp | chromatic-universe/cci-llvm-clang-cpp | e2fcc54067237c5d68d629d00952cb0e525a1012 | [
"MIT"
] | null | null | null | llvm-clang/clang_mini_rpc/clang_mini_rpc_client.cpp | chromatic-universe/cci-llvm-clang-cpp | e2fcc54067237c5d68d629d00952cb0e525a1012 | [
"MIT"
] | null | null | null | llvm-clang/clang_mini_rpc/clang_mini_rpc_client.cpp | chromatic-universe/cci-llvm-clang-cpp | e2fcc54067237c5d68d629d00952cb0e525a1012 | [
"MIT"
] | null | null | null | //clang_mini_rpc_client.cpp william k. johnson
#include <iostream>
#include <memory>
#include <string>
#include <thrift/protocol/TBinaryProtocol.h>
#include <thrift/transport/TSocket.h>
#include <thrift/transport/TTransportUtils.h>
#include "gen-cpp/cci_mini_clang_rpc.h"
using namespace apache::thrift;
using name... | 24.055556 | 79 | 0.627406 |
94a5afc4e5dc980877c947b6ac3ec47d6ab1db74 | 26,883 | cpp | C++ | Extension.Viewer.ABR/Extension.Viewer.ABR.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | 15 | 2017-05-15T15:52:24.000Z | 2022-03-23T06:48:48.000Z | Extension.Viewer.ABR/Extension.Viewer.ABR.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | null | null | null | Extension.Viewer.ABR/Extension.Viewer.ABR.cpp | lusores/ABRViewer | 64d3172651a904908589fc91276366ef3ef0489e | [
"MIT"
] | 4 | 2017-09-07T10:55:36.000Z | 2021-01-29T08:51:01.000Z | /*
copyright (c) 1996 - 2008 Ivan Varzar. lusores@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
noti... | 29.803769 | 301 | 0.621582 |
94a7e264c212454507fb4d9832d699e9d812651f | 2,727 | cpp | C++ | unit_tests/test_supportvectormachine.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 6 | 2020-09-23T15:38:28.000Z | 2021-11-16T20:39:21.000Z | unit_tests/test_supportvectormachine.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | null | null | null | unit_tests/test_supportvectormachine.cpp | BrentP-tmx/Pamplemousse | 6cd69d3369bf557c344d9a3a82b9c15f2381c366 | [
"Apache-2.0"
] | 2 | 2021-10-04T22:16:48.000Z | 2022-02-25T00:32:40.000Z | // Copyright 2018-2020 Lexis Nexis Risk Solutions
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicabl... | 34.518987 | 122 | 0.650532 |
94ad15b7992a92d00844ca3b0402a9c6b2cd0ec0 | 311 | cpp | C++ | Get_Started_contest/8.find_me.cpp | MadanParth786/Codeshef_DSA_learning_Series | 0582c5a1598c2233c9ab433ce71feb9816166bc7 | [
"MIT"
] | 2 | 2021-07-03T09:00:06.000Z | 2021-07-03T09:46:27.000Z | Get_Started_contest/8.find_me.cpp | MadanParth786/Codeshef_DSA_learning_Series | 0582c5a1598c2233c9ab433ce71feb9816166bc7 | [
"MIT"
] | null | null | null | Get_Started_contest/8.find_me.cpp | MadanParth786/Codeshef_DSA_learning_Series | 0582c5a1598c2233c9ab433ce71feb9816166bc7 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(void)
{
int n,k;
bool found=false;
int a[n];
cin>>n>>k;
for(int i=0;i<n;i++)
{
cin>>a[i];
if(a[i]==k){
found=true;
break;
}
}
if(found){
cout<<"1"<<"\n";
}
else{
cout<<"-1"<<"\n";
}
}
| 11.518519 | 24 | 0.418006 |
94ad617e30613b47e2fa342e23ce2bcec974c57a | 3,489 | cpp | C++ | Overworld/Forest.cpp | NoahKittleson/RPG-Engine | e7ce30973b5d1eed09e3d5acfd89f549c2feffd8 | [
"MIT",
"Unlicense"
] | 4 | 2016-06-30T19:55:40.000Z | 2020-01-10T21:03:00.000Z | Overworld/Forest.cpp | NoahKittleson/RPG-Engine | e7ce30973b5d1eed09e3d5acfd89f549c2feffd8 | [
"MIT",
"Unlicense"
] | null | null | null | Overworld/Forest.cpp | NoahKittleson/RPG-Engine | e7ce30973b5d1eed09e3d5acfd89f549c2feffd8 | [
"MIT",
"Unlicense"
] | null | null | null | //
// Forest.cpp
// Overworld
//
// Created by Noah Kittleson on 7/7/18.
// Copyright © 2018 Noah. All rights reserved.
//
#include "Forest.hpp"
Forest::Forest(const ResourceHolder& resources, const std::vector<Condition>& activeConds)
: MapSection(MapID::Forest, NoMusic, sf::Vector2f(550 * scale, 350 * scale)) {... | 43.6125 | 119 | 0.70364 |
94aec82990bbfe9f1179dec54262e4b9f55a02d6 | 413 | cpp | C++ | swexpert/3308.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | swexpert/3308.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | swexpert/3308.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
#include <algorithm>
using namespace std;
#define MAX 100001
int num[MAX];
int main()
{
int T, n, x;
cin >> T;
for (int t=1; t<=T; ++t) {
cin >> n;
int len = 0;
fill(num, num+MAX, 0);
for (int i=0; i<n; ++i) {
cin >> x;
int it = lower_bound(num, num+len, x) - num;
if (it == le... | 14.241379 | 47 | 0.486683 |
94b0fee0885891546ad81efcc2e98b090642d5d4 | 782 | cpp | C++ | Section 8/Video 3/locks.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | 17 | 2019-10-10T21:09:51.000Z | 2022-01-13T15:54:24.000Z | Section 8/Video 3/locks.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | null | null | null | Section 8/Video 3/locks.cpp | irshadqemu/C-Standard-Template-Library-in-Practice | 05a52a03c2fc50031f065da41d89cfbf651499f9 | [
"MIT"
] | 16 | 2019-10-10T21:09:55.000Z | 2022-02-13T11:42:52.000Z | #include <thread>
#include <iostream>
#include <mutex>
#define TRANSACTIONS 100000
using namespace std;
void deposit(int& account, mutex& m) {
for (int i = 0; i < TRANSACTIONS; i++) {
{
lock_guard<mutex> lock(m);
++account;
}
}
}
void withdraw(int& account, mutex& m) {
for (int i = 0; i < ... | 17.377778 | 69 | 0.589514 |
94b6a75b96c61ac067d3fa7995e4942a579bbe9a | 3,092 | cpp | C++ | codeforces/F - Music in Car/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/F - Music in Car/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/F - Music in Car/Accepted.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Jun/09/2020 16:14
* solution_verdict: Accepted language: GNU C++14
* run... | 27.855856 | 112 | 0.518758 |
94b71997dcf168861cb127f7c6f17f6248a1201b | 7,968 | hpp | C++ | src/arch/pico/video/ssd1351.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 22 | 2021-06-20T21:23:29.000Z | 2022-03-26T01:46:10.000Z | src/arch/pico/video/ssd1351.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 2 | 2021-09-06T12:08:32.000Z | 2021-09-06T12:23:55.000Z | src/arch/pico/video/ssd1351.hpp | yocto-8/yocto-8 | 4911a82f399776731d3030234c731c15593f1910 | [
"MIT"
] | 1 | 2021-11-26T08:34:59.000Z | 2021-11-26T08:34:59.000Z | #pragma once
#include <hardware/gpio.h>
#include <hardware/spi.h>
#include <hardware/dma.h>
#include <array>
#include <cstdint>
#include <cmath>
#include <span>
#include <emu/emulator.hpp>
#include <devices/image.hpp>
#include <devices/screenpalette.hpp>
#include <video/palette.hpp>
namespace arch::pico::video
{
st... | 28.457143 | 120 | 0.593499 |
94bc4de85927f68c910556ea6200887766e422e4 | 16,007 | cpp | C++ | source/rastertechnique/clustervisibleprefixsumtechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 2 | 2022-03-25T00:37:25.000Z | 2022-03-26T00:13:53.000Z | source/rastertechnique/clustervisibleprefixsumtechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | null | null | null | source/rastertechnique/clustervisibleprefixsumtechnique.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 1 | 2022-03-02T21:11:29.000Z | 2022-03-02T21:11:29.000Z | /*
Copyright 2022 Alejandro Cosin & Gustavo Patow
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | 41.1491 | 176 | 0.736928 |
94bccdd9ce6a0352d4348011bfd28601edcec459 | 15,876 | hpp | C++ | ThirdParty-mod/java2cpp/java/util/concurrent/SynchronousQueue.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/java/util/concurrent/SynchronousQueue.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/java/util/concurrent/SynchronousQueue.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: java.util.concurrent.SynchronousQueue
================================================================================*/
#ifndef J2CPP_IN... | 39.492537 | 173 | 0.736017 |
94bd48507b8a1b6eaef772d2ef1544ff3a92f888 | 7,841 | cpp | C++ | RobWork/src/sandbox/optimization/example_optimization.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/sandbox/optimization/example_optimization.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/sandbox/optimization/example_optimization.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /*
* example_gradientdescent.cpp
*
* Created on: Feb 7, 2015
* Author: dagothar
*
* This example shows how to use optimizers.
*/
#include <iostream>
#include <stdexcept>
#include <fstream>
#include <rw/math/Math.hpp>
#include <rw/math/Q.hpp>
#include <rw/math/FunctionFactory.hpp>
#include <rw/rw.hpp>
#i... | 25.792763 | 77 | 0.647877 |
94bebc0bc1fa72ff75ac4ce8285ea09d86c34f6d | 1,245 | hpp | C++ | src/adapt/sierra_element/MeshObjTopology.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 3 | 2017-08-08T21:06:02.000Z | 2020-01-08T13:23:36.000Z | src/adapt/sierra_element/MeshObjTopology.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2016-12-17T00:18:56.000Z | 2019-08-09T15:29:25.000Z | src/adapt/sierra_element/MeshObjTopology.hpp | jrood-nrel/percept | 363cdd0050443760d54162f140b2fb54ed9decf0 | [
"BSD-2-Clause"
] | 2 | 2017-11-30T07:02:41.000Z | 2019-08-05T17:07:04.000Z | // Copyright 2002 - 2008, 2010, 2011 National Technology Engineering
// Solutions of Sandia, LLC (NTESS). Under the terms of Contract
// DE-NA0003525 with NTESS, the U.S. Government retains certain rights
// in this software.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the L... | 26.489362 | 73 | 0.652209 |
94bf0b992b8a6ac778e64cd8ecba77d2f76f9d48 | 2,781 | cpp | C++ | aws-cpp-sdk-config/source/model/AggregateConformancePackCompliance.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-config/source/model/AggregateConformancePackCompliance.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-config/source/model/AggregateConformancePackCompliance.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/config/model/AggregateConformancePackCompliance.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
nam... | 24.830357 | 139 | 0.781014 |
94bfdbab5f07f61ff7b9b16d9a59b462641acf97 | 20,188 | cpp | C++ | source/magma/vulkan/render-engine-impl.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 15 | 2018-02-26T08:20:03.000Z | 2022-03-06T03:25:46.000Z | source/magma/vulkan/render-engine-impl.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | 32 | 2018-02-26T08:26:38.000Z | 2020-09-12T17:09:38.000Z | source/magma/vulkan/render-engine-impl.cpp | Breush/lava | 1b1b1f0785300b93b4a9f35fca4490502fea6552 | [
"MIT"
] | null | null | null | #include "./render-engine-impl.hpp"
#include "../aft-vulkan/scene-aft.hpp"
#include "../shmag-reader.hpp"
#include "./helpers/queue.hpp"
#include "./holders/swapchain-holder.hpp"
#include "./render-image-impl.hpp"
#include "./render-targets/i-render-target-impl.hpp"
#include "./stages/present.hpp"
using namespace lav... | 37.594041 | 135 | 0.68932 |
94c0c556d4b31c5f87ff85882a08a0bbfa16e2c4 | 7,354 | cc | C++ | tests/test.cc | CS126SP20/final-project-ckesan2 | 419d4b5ecc21ba7d1f3412c05f0098e7130d3703 | [
"MIT"
] | null | null | null | tests/test.cc | CS126SP20/final-project-ckesan2 | 419d4b5ecc21ba7d1f3412c05f0098e7130d3703 | [
"MIT"
] | null | null | null | tests/test.cc | CS126SP20/final-project-ckesan2 | 419d4b5ecc21ba7d1f3412c05f0098e7130d3703 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 CS126SP20. All rights reserved.
#define CATCH_CONFIG_MAIN
#include <mylibrary/gameengine.h>
#include <mylibrary/circle.h>
#include <catch2/catch.hpp>
TEST_CASE("Getting the correct score", "[game score]") {
//makes sure the score is 0 at the start of the game
mylibrary::GameEngine engine;
... | 28.393822 | 80 | 0.684389 |
94c556dd34cd648160958e09cea3be093ebe2b20 | 825 | cpp | C++ | Game/Scene/EnemyGuide/RollBackGround.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | 2 | 2016-12-09T02:21:23.000Z | 2017-08-31T13:49:13.000Z | Game/Scene/EnemyGuide/RollBackGround.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | null | null | null | Game/Scene/EnemyGuide/RollBackGround.cpp | IndistinQuest/Game | 3c8363026388a452a1e1b5a46ff34bb8fa8baff4 | [
"MIT"
] | null | null | null | #include "RollBackGround.h"
const double RollBackGround::W = 1280;
const double RollBackGround::H = 720;
const int RollBackGround::ROLL_SPEED = 5;
RollBackGround::RollBackGround(String firstAssetName, String secondAssetName)
{
firstAssetName_m = firstAssetName;
secondAssetName_m = secondAssetName;
fPoint_m = Poi... | 19.642857 | 77 | 0.718788 |
94cec4bf7f8985766a7a265da5c1f49a179e31f9 | 1,558 | hxx | C++ | inetsrv/query/filters/html/source/metatag.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/metatag.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/metatag.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 - 1996
//
// File: metatag.hxx
//
// Contents: Parsing algorithm for image tags
//
//--------------------------------------------------------------------------
#if !defined(... | 25.540984 | 77 | 0.485879 |
94d0714cb70d236d16149f4e358e5497b2949ded | 2,541 | hpp | C++ | include/mmf/optimizationSO3_approx.hpp | jstraub/dpMM | 538c432d5f98c040d5c1adb072e545e38f97fc69 | [
"MIT-feh"
] | 11 | 2015-04-27T15:14:01.000Z | 2021-11-18T00:19:18.000Z | include/mmf/optimizationSO3_approx.hpp | jstraub/dpMM | 538c432d5f98c040d5c1adb072e545e38f97fc69 | [
"MIT-feh"
] | null | null | null | include/mmf/optimizationSO3_approx.hpp | jstraub/dpMM | 538c432d5f98c040d5c1adb072e545e38f97fc69 | [
"MIT-feh"
] | 6 | 2015-07-02T12:46:20.000Z | 2022-03-30T04:39:30.000Z | /* Copyright (c) 2015, Julian Straub <jstraub@csail.mit.edu> Licensed
* under the MIT license. See the license file LICENSE.
*/
#pragma once
#include <stdint.h>
#include <iostream>
#include <vector>
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/QR>
// CUDA runtime
#include <cuda_runtime.h>
// Utiliti... | 28.550562 | 72 | 0.668634 |
94d2717921df8f08be83a2babe28c834bda1d911 | 3,176 | hpp | C++ | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 34 | 2017-08-16T13:58:24.000Z | 2022-03-31T11:50:25.000Z | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | null | null | null | cocos2d/cocos/scripting/lua-bindings/manual/cocos2d/lua_cocos2dx_manual.hpp | weiDDD/particleSystem | 32652b09da35e025956999227f08be83b5d79cb1 | [
"Apache-2.0"
] | 17 | 2017-08-18T07:42:44.000Z | 2022-01-02T02:43:06.000Z | /****************************************************************************
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to dea... | 26.689076 | 87 | 0.691751 |
94dab9a0cd96ec7ac344ae472ca764b0a84a3d26 | 192 | cpp | C++ | Primero/Cuatrimestre1/FS/Practicas/Parciales/Parcial2/makefile-gdb/division.cpp | diegxsantiago/ | 7e9bc298d1cd1f20a2177178400bbf7e6e0bab3d | [
"MIT"
] | 1 | 2021-02-08T18:22:50.000Z | 2021-02-08T18:22:50.000Z | Primero/Cuatrimestre1/FS/Practicas/Parciales/Parcial2/makefile-gdb/division.cpp | diegxsantiago/gii | 7e9bc298d1cd1f20a2177178400bbf7e6e0bab3d | [
"MIT"
] | null | null | null | Primero/Cuatrimestre1/FS/Practicas/Parciales/Parcial2/makefile-gdb/division.cpp | diegxsantiago/gii | 7e9bc298d1cd1f20a2177178400bbf7e6e0bab3d | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include "funciones.h"
/*
producto de dos numeros
*/
int division (int x, int y)
{
int tmp;
tmp = x / y;
return tmp;
}
| 10.666667 | 28 | 0.536458 |
94db874be36602fd7af0139f01c400625acb088a | 925 | cpp | C++ | src/backend/generic/runtime/sycl/api.cpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | src/backend/generic/runtime/sycl/api.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | src/backend/generic/runtime/sycl/api.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 Athena. All rights reserved.
// https://getathena.ml
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "A... | 28.90625 | 80 | 0.621622 |
94e3575f63a486b5c93822233a7c3fa80e2e1de1 | 95,049 | hh | C++ | extern/glow/src/glow/detail/xxHash/xxh3.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | 11 | 2019-10-23T19:15:42.000Z | 2021-12-07T07:37:39.000Z | extern/glow/src/glow/detail/xxHash/xxh3.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | 6 | 2019-10-29T04:11:17.000Z | 2020-10-30T16:27:23.000Z | extern/glow/src/glow/detail/xxHash/xxh3.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | 2 | 2020-01-22T17:53:55.000Z | 2020-10-01T09:18:00.000Z | /*
* xxHash - Extremely Fast Hash algorithm
* Development source file for `xxh3`
* Copyright (C) 2019-2020 Yann Collet
*
* BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that... | 40.071248 | 177 | 0.636367 |
94e5183afe2e08634bf2985a20f996ef87d685d8 | 1,946 | cpp | C++ | cdm/cpp/patient/conditions/SEChronicVentricularSystolicDysfunction.cpp | isuhao/engine1 | 4b928612290150c2a3e0455e38e52d13d90a7340 | [
"Apache-2.0"
] | 2 | 2019-03-15T04:20:11.000Z | 2019-05-02T18:39:45.000Z | cdm/cpp/patient/conditions/SEChronicVentricularSystolicDysfunction.cpp | sinmx/engine1 | 4b928612290150c2a3e0455e38e52d13d90a7340 | [
"Apache-2.0"
] | null | null | null | cdm/cpp/patient/conditions/SEChronicVentricularSystolicDysfunction.cpp | sinmx/engine1 | 4b928612290150c2a3e0455e38e52d13d90a7340 | [
"Apache-2.0"
] | 1 | 2018-09-22T04:10:37.000Z | 2018-09-22T04:10:37.000Z | /* Distributed under the Apache License, Version 2.0.
See accompanying NOTICE file for details.*/
#include "stdafx.h"
#include "patient/conditions/SEChronicVentricularSystolicDysfunction.h"
PROTO_PUSH
#include "bind/cdm/PatientConditions.pb.h"
PROTO_POP
SEChronicVentricularSystolicDysfunction::SEChronicVentricular... | 35.381818 | 160 | 0.828366 |
94efd0d68247f41cfe2aca7fc2265f8b590afac7 | 3,063 | cpp | C++ | GrowtopiaServer/resource/server/GamePacket.cpp | LinkProfitSG/GTPS | fa654fb20b62d8ff3e35c3784f5d0fa7a3368135 | [
"Apache-2.0"
] | 2 | 2021-06-08T08:17:56.000Z | 2021-12-02T20:41:28.000Z | GrowtopiaServer/resource/server/GamePacket.cpp | LinkProfitSG/GTPS | fa654fb20b62d8ff3e35c3784f5d0fa7a3368135 | [
"Apache-2.0"
] | 1 | 2021-12-02T20:46:47.000Z | 2021-12-02T20:52:40.000Z | GrowtopiaServer/resource/server/GamePacket.cpp | LinkProfitSG/GTPS | fa654fb20b62d8ff3e35c3784f5d0fa7a3368135 | [
"Apache-2.0"
] | 3 | 2021-07-27T21:30:35.000Z | 2021-10-07T07:52:27.000Z | #pragma warning (disable : 4244)
#include "../../Server.hpp"
using namespace std;
GamePacket::~GamePacket() { delete[] data_; }
GamePacket::GamePacket(int delay, int netId) {
len_ = 61;
int messageType = 0x4, packetType = 0x1, charState = 0x8;
memset(data_, 0, 61);
memcpy(data_, &messageType, 4);
... | 25.525 | 71 | 0.615736 |
94efd14de0824c213675483ff1b8d37b46fb5b2e | 6,774 | cpp | C++ | CIM_Framework/CIMFramework/CPPClasses/Src/CIM_AssociatedPowerManagementService.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 18 | 2019-04-17T10:43:35.000Z | 2022-03-22T22:30:39.000Z | CIM_Framework/CIMFramework/CPPClasses/Src/CIM_AssociatedPowerManagementService.cpp | rgl/lms | cda6a25e0f39b2a18f10415560ee6a2cfc5fbbcb | [
"Apache-2.0"
] | 9 | 2019-10-03T15:29:51.000Z | 2021-12-27T14:03:33.000Z | CIM_Framework/CIMFramework/CPPClasses/Src/CIM_AssociatedPowerManagementService.cpp | isabella232/lms | 50d16f81b49aba6007388c001e8137352c5eb42e | [
"Apache-2.0"
] | 8 | 2019-06-13T23:30:50.000Z | 2021-06-25T15:51:59.000Z | //----------------------------------------------------------------------------
//
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
//
// File: CIM_AssociatedPowerManagementService.cpp
//
// Contents: The association between a Managed System Element and its power management service.
//
//... | 34.212121 | 153 | 0.780632 |
94f541c491108f4eaf9f02fa2ed97656cd9c91a5 | 4,997 | hpp | C++ | src/MultiLayerOptics/src/MultiPaneSpecular.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/MultiLayerOptics/src/MultiPaneSpecular.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/MultiLayerOptics/src/MultiPaneSpecular.hpp | bakonyidani/Windows-CalcEngine | afa4c4a9f88199c6206af8bc994a073931fc8b91 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #ifndef MultiPaneSpecular_H
#define MultiPaneSpecular_H
#include <memory>
#include <vector>
#include "WCECommon.hpp"
namespace FenestrationCommon
{
enum class Side;
enum class Property;
class CSeries;
} // namespace FenestrationCommon
namespace SingleLayerOptics
{
class CSpecularCell;
class ... | 40.626016 | 99 | 0.634981 |
94fa986787378cf10f900dae5321385b0539cb3d | 1,041 | cpp | C++ | sources/Dwarf/AST/AstVariableReference.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | sources/Dwarf/AST/AstVariableReference.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | sources/Dwarf/AST/AstVariableReference.cpp | KonstantinTomashevich/dwarf-scripting-language | 1cb7e2719ee66c77172d647f33052358dfe36be3 | [
"MIT"
] | null | null | null | #include "AstVariableReference.hpp"
#include <assert.h>
namespace Dwarf
{
AstVariableReference::AstVariableReference (std::string name, AstValue *provider) :
name_ (name),
provider_ (provider)
{
assert (!name_.empty ());
}
AstVariableReference::~AstVariableReference ()
{
delete provider_;
}
std::stri... | 20.82 | 83 | 0.634006 |
94faee49b23fdc6a8c5ada686f4ce0c259f63930 | 2,879 | hpp | C++ | RoviSamplePlugin/src/SamplePlugin.hpp | balintmaci/RoVi_project | 29a948aef0d7596e7ba6afab36016b494ba1132e | [
"Unlicense"
] | null | null | null | RoviSamplePlugin/src/SamplePlugin.hpp | balintmaci/RoVi_project | 29a948aef0d7596e7ba6afab36016b494ba1132e | [
"Unlicense"
] | null | null | null | RoviSamplePlugin/src/SamplePlugin.hpp | balintmaci/RoVi_project | 29a948aef0d7596e7ba6afab36016b494ba1132e | [
"Unlicense"
] | null | null | null | #ifndef SAMPLEPLUGIN_HPP
#define SAMPLEPLUGIN_HPP
// RobWork includes
#include <rw/models/WorkCell.hpp>
#include <rw/kinematics/State.hpp>
#include <rwlibs/opengl/RenderImage.hpp>
#include <rwlibs/simulation/GLFrameGrabber.hpp>
#include <rwlibs/simulation/GLFrameGrabber25D.hpp>
#include <rw/rw.hpp>
#includ... | 25.936937 | 113 | 0.727336 |
94fb49108c7686359b444c6f4da79ec6eb6845b8 | 419 | cpp | C++ | cpp_level_2_solutions/2_2_add_two_ints.cpp | PacktPublishing/Practical-C-Learn-C-Basics-Step-by-Step | 553d18984f47ffe5275c67346f64551eef659e2f | [
"MIT"
] | 1 | 2022-03-13T06:12:44.000Z | 2022-03-13T06:12:44.000Z | cpp_level_2_solutions/2_2_add_two_ints.cpp | PacktPublishing/Practical-C-Learn-C-Basics-Step-by-Step | 553d18984f47ffe5275c67346f64551eef659e2f | [
"MIT"
] | null | null | null | cpp_level_2_solutions/2_2_add_two_ints.cpp | PacktPublishing/Practical-C-Learn-C-Basics-Step-by-Step | 553d18984f47ffe5275c67346f64551eef659e2f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int add_two_ints(int number1, int number2)
{
return number1 + number2;
}
int main()
{
int number1, number2;
cout << "Enter number 1: ";
cin >> number1;
cout << "Enter number 2: ";
cin >> number2;
cout << number1 << " + " << number... | 19.045455 | 56 | 0.520286 |
94fffca5cfd2b81cde9129fc6ce7cad56885a943 | 790 | cpp | C++ | pwiz_tools/Bumbershoot/idpicker/Qonverter/waffles/GWindows.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | 2 | 2019-12-28T21:24:36.000Z | 2020-04-18T03:52:05.000Z | pwiz_tools/Bumbershoot/idpicker/Qonverter/waffles/GWindows.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | pwiz_tools/Bumbershoot/idpicker/Qonverter/waffles/GWindows.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2006, Mike Gashler
This library 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
version 2.1 of the License, or (at your option) any later version.
see http://www.gnu.org/copy... | 18.809524 | 67 | 0.712658 |
a20200110301e45c9d28f9183090dd41f4768738 | 119 | cpp | C++ | Source/DreamPlace/DreamPlaceGameStateBase.cpp | YuanweiZHANG/DreamPlace | b005c22e2353e674a0596c078083b82efe9ae733 | [
"MIT"
] | null | null | null | Source/DreamPlace/DreamPlaceGameStateBase.cpp | YuanweiZHANG/DreamPlace | b005c22e2353e674a0596c078083b82efe9ae733 | [
"MIT"
] | null | null | null | Source/DreamPlace/DreamPlaceGameStateBase.cpp | YuanweiZHANG/DreamPlace | b005c22e2353e674a0596c078083b82efe9ae733 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "DreamPlaceGameStateBase.h"
| 19.833333 | 78 | 0.789916 |
a203d161f687fada9a2539d0a43302e60453f6a6 | 16,568 | cpp | C++ | pbas.cpp | federicoparroni/IACV_background_subtractor | ba35ebdfe2e59f4d38723c9292b5dea76be5b9ef | [
"MIT"
] | 2 | 2021-12-12T14:35:16.000Z | 2022-02-07T02:42:34.000Z | pbas.cpp | keyblade95/IACV_background_subtractor | ba35ebdfe2e59f4d38723c9292b5dea76be5b9ef | [
"MIT"
] | null | null | null | pbas.cpp | keyblade95/IACV_background_subtractor | ba35ebdfe2e59f4d38723c9292b5dea76be5b9ef | [
"MIT"
] | 2 | 2019-09-06T15:09:13.000Z | 2019-10-19T08:27:46.000Z | #include <iostream>
#include <math.h>
#include "pbas.h"
#include <stdlib.h>
#include <time.h>
#include <utility>
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <chrono>
using namespace std::chrono;
using namespace std;
using namespace cv;
PBASgray::PBASgray() {
N = 30;
K... | 30.123636 | 166 | 0.55746 |
a2062d229e19af94da5938ee3d5873e8af47f19f | 963 | hpp | C++ | tlx/define/visibility_hidden.hpp | GerHobbelt/tlx | 81a71238b17df27d98a4dff9ceba21bd79fddffb | [
"BSL-1.0"
] | 284 | 2017-02-26T08:49:15.000Z | 2022-03-30T21:55:37.000Z | tlx/define/visibility_hidden.hpp | xiao2mo/tlx | b311126e670753897c1defceeaa75c83d2d9531a | [
"BSL-1.0"
] | 24 | 2017-09-05T21:02:41.000Z | 2022-03-07T10:09:59.000Z | tlx/define/visibility_hidden.hpp | xiao2mo/tlx | b311126e670753897c1defceeaa75c83d2d9531a | [
"BSL-1.0"
] | 62 | 2017-02-23T12:29:27.000Z | 2022-03-31T07:45:59.000Z | /*******************************************************************************
* tlx/define/visibility_hidden.hpp
*
* Part of tlx - http://panthema.net/tlx
*
* Copyright (C) 2019 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the Boost Software License, Version 1.0
******************... | 27.514286 | 80 | 0.496366 |
a20649589052eeb907eead30aa4ec0efeff71dea | 2,027 | cc | C++ | tao_compiler/mlir/disc/transforms/disc_strip_shape_constraint_ops.cc | JamesTheZ/BladeDISC | e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34 | [
"Apache-2.0"
] | null | null | null | tao_compiler/mlir/disc/transforms/disc_strip_shape_constraint_ops.cc | JamesTheZ/BladeDISC | e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34 | [
"Apache-2.0"
] | null | null | null | tao_compiler/mlir/disc/transforms/disc_strip_shape_constraint_ops.cc | JamesTheZ/BladeDISC | e6c76ee557ebfccd560d44f6b6276bbc4e0a8a34 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 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... | 36.196429 | 83 | 0.729156 |
a20817730921ccb27a6936fc99a3bc4af62579aa | 380 | cc | C++ | 1189/lectures/tools/make/example2/list.cc | JohnMai1994/CS246-2018_Fall_Term | a95a9cf5bc710131a6e51b863b002efdd425b89c | [
"MIT"
] | 2 | 2020-07-13T17:08:29.000Z | 2021-11-19T15:47:06.000Z | 1189/lectures/tools/make/example1/list.cc | JohnMai1994/CS246-2018_Fall_Term | a95a9cf5bc710131a6e51b863b002efdd425b89c | [
"MIT"
] | null | null | null | 1189/lectures/tools/make/example1/list.cc | JohnMai1994/CS246-2018_Fall_Term | a95a9cf5bc710131a6e51b863b002efdd425b89c | [
"MIT"
] | 4 | 2021-05-29T22:40:59.000Z | 2022-03-25T19:19:15.000Z | #include "list.h"
#include "node.h"
List::Iterator List::begin() { return Iterator(theList); }
List::Iterator List::end() {return Iterator(nullptr); }
List::~List() { delete theList; }
void List::addToFront(int n) { theList = new Node(n, theList); }
int List::ith(int i) {
Node *cur = theList;
for (int j = 0; j ... | 22.352941 | 64 | 0.621053 |
a20a1bae04eb55f7b54548c42c85340c822f7f2c | 2,157 | cpp | C++ | Algorithm/0401 (Easy)Binary Watch/Brute-Force.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | 1 | 2020-12-03T10:10:15.000Z | 2020-12-03T10:10:15.000Z | Algorithm/0401 (Easy)Binary Watch/Brute-Force.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | null | null | null | Algorithm/0401 (Easy)Binary Watch/Brute-Force.cpp | ZexinLi0w0/LeetCode | cf3988620ccdcc3d54b9beafd04c517c96f01bb9 | [
"MIT"
] | null | null | null | class Solution {
void generateNumbers(int bits, long temp_num, set<long>& numbers){
if (bits == 0){
numbers.insert(temp_num);
return;
}
// If we have bits available, out of all 10 available bits, we need to do the follwoing:
// For all bits (from 0 t... | 36.559322 | 111 | 0.545665 |
a2125800640f6d634c28e3d9de4de896424ba2d5 | 22,165 | cpp | C++ | src/Plugins/RenX/RenX.Core/RenX_LadderDatabase.cpp | Constructive-Tyranny/Jupiter-Bot | 2f1261b55b0b420ad2a2cc7aa30118296e0a87d1 | [
"0BSD"
] | 9 | 2016-02-04T09:54:24.000Z | 2021-11-25T18:56:44.000Z | src/Plugins/RenX/RenX.Core/RenX_LadderDatabase.cpp | Constructive-Tyranny/Jupiter-Bot | 2f1261b55b0b420ad2a2cc7aa30118296e0a87d1 | [
"0BSD"
] | 8 | 2015-08-04T15:19:53.000Z | 2021-11-18T19:39:05.000Z | src/Plugins/RenX/RenX.Core/RenX_LadderDatabase.cpp | JustinAJ/Jupiter-Bot | 2f1261b55b0b420ad2a2cc7aa30118296e0a87d1 | [
"0BSD"
] | 15 | 2016-08-22T13:04:25.000Z | 2022-02-18T16:19:00.000Z | /**
* Copyright (C) 2015-2021 Jessica James.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO... | 34.741379 | 325 | 0.70467 |
a21368cb25f93ac1d5ea2744906c7339e88fa503 | 6,015 | cpp | C++ | RealTimeAbstract_Qt version/3 RealTimeAbstract_Qt/RealTimeAbstract_Qt/GeneratedFiles/Release/moc_videoabstract_qtver.cpp | billhhh/Maskedman_double_mode | 8937ddc2d8f154eaaa93b2449dff127f03b488f2 | [
"MIT"
] | null | null | null | RealTimeAbstract_Qt version/3 RealTimeAbstract_Qt/RealTimeAbstract_Qt/GeneratedFiles/Release/moc_videoabstract_qtver.cpp | billhhh/Maskedman_double_mode | 8937ddc2d8f154eaaa93b2449dff127f03b488f2 | [
"MIT"
] | null | null | null | RealTimeAbstract_Qt version/3 RealTimeAbstract_Qt/RealTimeAbstract_Qt/GeneratedFiles/Release/moc_videoabstract_qtver.cpp | billhhh/Maskedman_double_mode | 8937ddc2d8f154eaaa93b2449dff127f03b488f2 | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'videoabstract_qtver.h'
**
** Created: Sat Oct 4 11:02:03 2014
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
**
** WARNING! All changes made in this file will be lost!
****************... | 37.830189 | 198 | 0.62128 |
a219274fdbaeb5d5349d0e396011930fd1ae8130 | 10,875 | hpp | C++ | include/System/Net/HttpWebResponse.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/HttpWebResponse.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/System/Net/HttpWebResponse.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: System.Net.WebResponse
#include "System/Net/WebResponse.hpp"
// Inclu... | 50.115207 | 792 | 0.713379 |
b8cbe36dcdf1dde5ca15ed055ff885b50aa3be44 | 710 | cpp | C++ | spider/shared/net/tcpconn_handler.cpp | wonghoifung/learning-python | ad1691be1d185bfff828779a553b2c59d36d16ea | [
"MIT"
] | null | null | null | spider/shared/net/tcpconn_handler.cpp | wonghoifung/learning-python | ad1691be1d185bfff828779a553b2c59d36d16ea | [
"MIT"
] | null | null | null | spider/shared/net/tcpconn_handler.cpp | wonghoifung/learning-python | ad1691be1d185bfff828779a553b2c59d36d16ea | [
"MIT"
] | null | null | null | //
// Created by huanghaifeng on 15-9-1.
// Copyright (c) 2015 wonghoifung. All rights reserved.
//
#include "tcpconn_handler.h"
#include "shared/utils/logger.h"
tcpconn_handler::tcpconn_handler()
{
}
tcpconn_handler::~tcpconn_handler()
{
}
void tcpconn_handler::on_highwatermark(tcpconn_ptr conn, size_t size, si... | 18.684211 | 88 | 0.690141 |
b8cce46fa44b9e0520c7c6b9d38e8ec00dae1f9b | 5,678 | cpp | C++ | coreLibrary_200/source/core/dgSPDMatrix.cpp | rastullahs-lockenpracht/newton | 99b82478f3de9ee7c8d17c8ebefe62e46283d857 | [
"Zlib"
] | null | null | null | coreLibrary_200/source/core/dgSPDMatrix.cpp | rastullahs-lockenpracht/newton | 99b82478f3de9ee7c8d17c8ebefe62e46283d857 | [
"Zlib"
] | null | null | null | coreLibrary_200/source/core/dgSPDMatrix.cpp | rastullahs-lockenpracht/newton | 99b82478f3de9ee7c8d17c8ebefe62e46283d857 | [
"Zlib"
] | null | null | null | /* Copyright (c) <2003-2011> <Julio Jerez, Newton Game Dynamics>
*
* 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 f... | 22.621514 | 109 | 0.645826 |
b8ccf145d567676eab9664e83a4c16491e117826 | 5,253 | cpp | C++ | Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCCertificateGenerator.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCCertificateGenerator.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCCertificateGenerator.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 2018 Apple Inc.
*
* 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 conditions and the following di... | 41.362205 | 202 | 0.733295 |
b8cf9802dce57829c2f45f093fc33312889fb6b2 | 5,461 | cpp | C++ | briefutil/proxy.cpp | imakris/briefutil | e3bf26fd5b68cde85fec059e323f6b3a4f4012a5 | [
"BSD-2-Clause"
] | null | null | null | briefutil/proxy.cpp | imakris/briefutil | e3bf26fd5b68cde85fec059e323f6b3a4f4012a5 | [
"BSD-2-Clause"
] | null | null | null | briefutil/proxy.cpp | imakris/briefutil | e3bf26fd5b68cde85fec059e323f6b3a4f4012a5 | [
"BSD-2-Clause"
] | null | null | null | #include "proxy.h"
#include <string>
#include <filesystem>
#include <iostream>
#include <fstream>
#include <QProcess>
#include <QFile>
#include <QTextStream>
#include <QDateTime>
#include <QDir>
#include <QCoreApplication>
#include "mustermann_signature.png.h"
using namespace std;
namespace fs = std::filesystem;
... | 29.84153 | 98 | 0.592382 |
b8d25404da4825927f28a42d9c7e9f05978cdb7d | 2,014 | cpp | C++ | src/ck/android/ck/src/main/cpp/com_crickettechnology_audio_Bank.cpp | opala-studios/ck | dff23ff3912de114ef0c7ca57da6506f0a9bee51 | [
"Zlib"
] | 23 | 2020-02-23T23:20:22.000Z | 2021-12-30T16:09:23.000Z | src/ck/android/ck/src/main/cpp/com_crickettechnology_audio_Bank.cpp | opala-studios/ck | dff23ff3912de114ef0c7ca57da6506f0a9bee51 | [
"Zlib"
] | 3 | 2020-03-17T05:50:40.000Z | 2020-10-12T18:18:44.000Z | src/ck/android/ck/src/main/cpp/com_crickettechnology_audio_Bank.cpp | opala-studios/ck | dff23ff3912de114ef0c7ca57da6506f0a9bee51 | [
"Zlib"
] | 10 | 2020-03-02T15:07:32.000Z | 2022-01-29T03:34:55.000Z | #include <jni.h>
#include "ck/bank.h"
#include "ck/core/javastringref_android.h"
extern "C"
{
jboolean Java_com_crickettechnology_audio_Bank_nativeIsLoaded(JNIEnv* env, jclass, jlong inst)
{
CkBank* bank = (CkBank*) inst;
return bank->isLoaded();
}
jboolean Java_com_crickettechnology_audio_Bank_nativeIsFail... | 28.771429 | 141 | 0.739821 |
b8dad81a9461aa22bdd61772db76670e3690a294 | 6,325 | cpp | C++ | src/dist/replication/lib/replica_file_provider.cpp | neverchanje/rdsn | 40f432c521686f4e10f172ad89f68d01b72004e4 | [
"MIT"
] | null | null | null | src/dist/replication/lib/replica_file_provider.cpp | neverchanje/rdsn | 40f432c521686f4e10f172ad89f68d01b72004e4 | [
"MIT"
] | null | null | null | src/dist/replication/lib/replica_file_provider.cpp | neverchanje/rdsn | 40f432c521686f4e10f172ad89f68d01b72004e4 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-present, Xiaomi, Inc. All rights reserved.
// This source code is licensed under the Apache License Version 2.0, which
// can be found in the LICENSE file in the root directory of this source tree.
#include "replica.h"
#include <fstream>
#include <dsn/dist/block_service.h>
#include <dsn/dist/f... | 41.339869 | 99 | 0.532332 |
b8e1e9bca5c0e939259290bf44c591ad70988091 | 98 | hpp | C++ | src/lib/env.hpp | stkw0/i-hate-all-rss-readers | ac2be9f7c6b070aff3b1fe36a9efbcc8095dcafa | [
"Unlicense"
] | null | null | null | src/lib/env.hpp | stkw0/i-hate-all-rss-readers | ac2be9f7c6b070aff3b1fe36a9efbcc8095dcafa | [
"Unlicense"
] | null | null | null | src/lib/env.hpp | stkw0/i-hate-all-rss-readers | ac2be9f7c6b070aff3b1fe36a9efbcc8095dcafa | [
"Unlicense"
] | null | null | null | #pragma once
namespace iharr {
const std::string getenv(const char* name);
} // namespace iharr | 14 | 43 | 0.72449 |
b8e2de30705ffd800b8f2efea1732467b4eb9ebe | 97 | cpp | C++ | test/Heng-Core-Test/killInit.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | 1 | 2022-03-27T05:01:04.000Z | 2022-03-27T05:01:04.000Z | test/Heng-Core-Test/killInit.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | null | null | null | test/Heng-Core-Test/killInit.cpp | fitenne/yamc | 26141cb61eff63521cd282389495c8a9b9a1604d | [
"MIT"
] | null | null | null | #include <signal.h>
int main(void)
{
kill(1, SIGKILL);
kill(3, SIGKILL);
return 0;
} | 12.125 | 21 | 0.57732 |
b8e58df180793b9eb2349f9808e8bc9b28e5aa4c | 4,511 | cpp | C++ | RocketPlugin/MeshmoonUser.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | 4 | 2018-05-09T01:55:14.000Z | 2021-12-19T17:46:29.000Z | RocketPlugin/MeshmoonUser.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | null | null | null | RocketPlugin/MeshmoonUser.cpp | Adminotech/meshmoon-plugins | 32043ef783bdf137860d7d01eb22de564628e572 | [
"Apache-2.0"
] | 2 | 2016-03-15T06:12:05.000Z | 2021-06-06T00:18:38.000Z | /**
@author Adminotech Ltd.
Copyright Adminotech Ltd.
All rights reserved.
@file
@brief */
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MeshmoonUser.h"
#include "CoreDefines.h"
#include "LoggingFunctions.h"
#include <QTimer>
#include "MemoryLeakCheck.h"
// RocketUse... | 22.112745 | 111 | 0.699401 |
b8e5dce81fdc753437319ec1c71a9dbaaba5ca87 | 5,921 | cpp | C++ | archives/problemset/poj.org/3481.cpp | BoleynSu/CP-CompetitiveProgramming | cc256bf402360fe0f689fdcdc4e898473a9594dd | [
"MIT"
] | 6 | 2019-03-23T21:06:25.000Z | 2021-06-27T05:22:41.000Z | archives/problemset/poj.org/3481.cpp | BoleynSu/CP-CompetitiveProgramming | cc256bf402360fe0f689fdcdc4e898473a9594dd | [
"MIT"
] | 1 | 2020-10-11T08:14:00.000Z | 2020-10-11T08:14:00.000Z | archives/problemset/poj.org/3481.cpp | BoleynSu/CP-CompetitiveProgramming | cc256bf402360fe0f689fdcdc4e898473a9594dd | [
"MIT"
] | 3 | 2019-03-23T21:06:31.000Z | 2021-10-24T01:44:01.000Z | //Boleyn Su's Template for Codeforces
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <functional>
#include <utility>
#include <bits... | 24.568465 | 119 | 0.587232 |
b8e87fdf97bbe484264c61565486b9567ef5961b | 24,283 | cpp | C++ | Engine/src/Buffer.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | 1 | 2020-01-04T20:17:42.000Z | 2020-01-04T20:17:42.000Z | Engine/src/Buffer.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | null | null | null | Engine/src/Buffer.cpp | int-Frank/BSR | 16310147281c76ca37836b07aff2974234e09a47 | [
"Apache-2.0"
] | null | null | null | //@group Renderer
/*
Original Copyright Yan Chernikov <github.com/TheCherno/Hazel-dev> and contributors.
The following code is a derivative work of the code from the GitHub project 'Hazel-dev',
which is licensed under:
Apache License
Version 2.0, J... | 32.550938 | 104 | 0.604662 |
b8f4ab9146b4e516c55092b6fd022af7f18bc838 | 1,482 | cpp | C++ | src/fsc/object/base/transformer/translate.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | 1 | 2018-11-26T19:06:52.000Z | 2018-11-26T19:06:52.000Z | src/fsc/object/base/transformer/translate.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | null | null | null | src/fsc/object/base/transformer/translate.cpp | nnoell/fsc | 19c6e471fa0712c6fe4817b08d3bf8c6ae2b16fb | [
"BSD-3-Clause"
] | null | null | null | //----------------------------------------------------------------------------------------------------------------------
// Copyright : (c) Julian Bouzas 2018
// License : BSD3-style (see LICENSE)
// Maintainer : Julian Bouzas - nnoell3[at]gmail.com
//------------------------------------------------------... | 26.464286 | 121 | 0.562078 |
b8f6913283be1057e744c4d509444281f4870706 | 1,058 | cpp | C++ | interpreter/lox/lox/ASTPrinter.cpp | mandyedi/craftinginterpreters-cpp | fd4ec9a61d9a2640d77fd6f5fa3dc3ee23c22d34 | [
"MIT"
] | null | null | null | interpreter/lox/lox/ASTPrinter.cpp | mandyedi/craftinginterpreters-cpp | fd4ec9a61d9a2640d77fd6f5fa3dc3ee23c22d34 | [
"MIT"
] | null | null | null | interpreter/lox/lox/ASTPrinter.cpp | mandyedi/craftinginterpreters-cpp | fd4ec9a61d9a2640d77fd6f5fa3dc3ee23c22d34 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ASTPrinter.h"
void ASTPrinter::Print( Expr *expr )
{
expr->Accept( this );
}
void ASTPrinter::VisitBinaryExpr( Binary *expr )
{
Parenthesize( expr->Op.Lexeme, { expr->Left, expr->Right } );
}
void ASTPrinter::VisitGroupingExpr( Grouping *expr )
{
Parenthesize( "group", { expr->... | 21.591837 | 89 | 0.574669 |
b8f8f3bd897d3adccc6e03765ca7642ec4650c0c | 3,862 | cpp | C++ | 443-string-compression/string-compression.cpp | nagestx/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | 3 | 2018-12-15T14:07:12.000Z | 2020-07-19T23:18:09.000Z | 443-string-compression/string-compression.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | 443-string-compression/string-compression.cpp | yangyangu/MyLeetCode | ef2a98b48485a0cebc442bbbbdb2690ba51484e1 | [
"MIT"
] | null | null | null | // Given an array of characters, compress it in-place.
//
// The length after compression must always be smaller than or equal to the original array.
//
// Every element of the array should be a character (not int) of length 1.
//
// After you are done modifying the input array in-place, return the new length of the... | 20.875676 | 103 | 0.50492 |
b8f916c75a504318aaa0294561784da8c209d347 | 2,588 | cpp | C++ | test/txpl/lexer/try_dec_number_test.cpp | ptomulik/txpl | 109b5847abe0d46c598ada46f411f98ebe8dc4c8 | [
"BSL-1.0"
] | null | null | null | test/txpl/lexer/try_dec_number_test.cpp | ptomulik/txpl | 109b5847abe0d46c598ada46f411f98ebe8dc4c8 | [
"BSL-1.0"
] | 14 | 2015-03-02T14:02:32.000Z | 2015-05-17T21:50:30.000Z | test/txpl/lexer/try_dec_number_test.cpp | ptomulik/txpl | 109b5847abe0d46c598ada46f411f98ebe8dc4c8 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2015, Pawel Tomulik <ptomulik@meil.pw.edu.pl>
//
// 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)
#define BOOST_TEST_MODULE test_txpl_lexer_try_dec_number
#include <txpl/test_config.hpp>
#includ... | 25.623762 | 62 | 0.641808 |
b8f9701d8cfcb7e5ae869cea5a5343fa1facff70 | 1,481 | cpp | C++ | shf-cpp/src/Game/Menu/MemoMenu.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 71 | 2018-03-21T08:04:04.000Z | 2022-01-11T09:49:26.000Z | shf-cpp/src/Game/Menu/MemoMenu.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 2 | 2018-08-28T08:26:02.000Z | 2019-04-06T14:29:39.000Z | shf-cpp/src/Game/Menu/MemoMenu.cpp | Upwinded/SHF | 797682152234251c9a32692324904c7aa8d90683 | [
"Zlib"
] | 25 | 2018-03-24T03:36:28.000Z | 2021-09-20T06:19:09.000Z | #include "MemoMemu.h"
#include "../GameManager/GameManager.h"
MemoMenu::MemoMenu()
{
init();
visible = false;
}
MemoMenu::~MemoMenu()
{
freeResource();
}
void MemoMenu::reFresh()
{
if (scrollbar != NULL && memoText != NULL)
{
for (int i = 0; i < MEMO_LINE; i++)
{
if (position + i < (int)GameManager::getI... | 17.630952 | 106 | 0.651587 |
b8fda0fb4a0c060ca0ef0700fcefab57e31b9d3f | 11,513 | cpp | C++ | collection/cp/bcw_codebook-master/Contest/XVIIOpenCupEurasia/4.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | 1 | 2019-03-24T13:12:01.000Z | 2019-03-24T13:12:01.000Z | collection/cp/bcw_codebook-master/Contest/XVIIOpenCupEurasia/4.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | collection/cp/bcw_codebook-master/Contest/XVIIOpenCupEurasia/4.cpp | daemonslayer/Notebook | a9880be9bd86955afd6b8f7352822bc18673eda3 | [
"Apache-2.0"
] | null | null | null | #pragma GCC optimize ("O2")
#include<bits/stdc++.h>
#include<unistd.h>
using namespace std;
#define FZ(n) memset((n),0,sizeof(n))
#define FMO(n) memset((n),-1,sizeof(n))
#define F first
#define S second
#define PB push_back
#define ALL(x) begin(x),end(x)
#define SZ(x) ((int)(x).size())
#define IOS ios_base::sync_with_s... | 19.546689 | 100 | 0.590289 |
77013c97ae800b7c22b3e9ed56f79e5122c6bc27 | 1,445 | cpp | C++ | Maze_Lib/Color.cpp | martindubois/Maze | 23026ee0d437edb7b59f39e07bc0f94c100e506f | [
"Apache-2.0"
] | null | null | null | Maze_Lib/Color.cpp | martindubois/Maze | 23026ee0d437edb7b59f39e07bc0f94c100e506f | [
"Apache-2.0"
] | null | null | null | Maze_Lib/Color.cpp | martindubois/Maze | 23026ee0d437edb7b59f39e07bc0f94c100e506f | [
"Apache-2.0"
] | null | null | null |
// Author KMS - Martin Dubois, P. Eng.
// Copyright (C) 2021 KMS
// License http://www.apache.org/licenses/LICENSE-2.0
// Product Maze
// File Maze_Lib/Color.cpp
// CODE REVIEW 2021-12-18 KMS - Martin Dubois, P. Eng.
// TEST COVERAGE 2021-12-18 KMS - Martin Dubois, P. Eng.
#include "Component.h"
// ===... | 26.272727 | 122 | 0.504498 |
770654ea3162daa4d87e50df5458ed9afc0df297 | 485 | cpp | C++ | src/cat3d/obj/texture.cpp | sarahkittyy/cat3d | 1b5f15bddb60d1870b23321a9907e7f79547ca1a | [
"MIT"
] | 1 | 2020-09-24T23:11:24.000Z | 2020-09-24T23:11:24.000Z | src/cat3d/obj/texture.cpp | sarahkittyy/cat3d | 1b5f15bddb60d1870b23321a9907e7f79547ca1a | [
"MIT"
] | null | null | null | src/cat3d/obj/texture.cpp | sarahkittyy/cat3d | 1b5f15bddb60d1870b23321a9907e7f79547ca1a | [
"MIT"
] | null | null | null | #include "cat3d/obj/texture.hpp"
namespace cat3d::obj {
texture::texture(const std::string& path)
: m_tex(resource::get().texture(path)),
m_hooked(false) {
}
texture::texture(color col)
: m_hooked(false) {
m_tex.load_color(col);
}
texture::~texture() {
if (m_hooked) {
parent()->unbind(m_hook_id);
}
}
voi... | 16.166667 | 58 | 0.643299 |
770ac34cd2aa7c6f561fe07cdc40b36bf830f05a | 1,654 | cpp | C++ | 1101-9999/1801. Number of Orders in the Backlog.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1801. Number of Orders in the Backlog.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | 1101-9999/1801. Number of Orders in the Backlog.cpp | erichuang1994/leetcode-solution | d5b3bb3ce2a428a3108f7369715a3700e2ba699d | [
"MIT"
] | null | null | null | class Solution
{
public:
int getNumberOfBacklogOrders(vector<vector<int>> &orders)
{
priority_queue<pair<int, int>, vector<pair<int, int>>> buy;
priority_queue<pair<int, int>, vector<pair<int, int>>, std::greater<pair<int, int>>> sell;
for (auto &order : orders)
{
// buy
if (order[2] ==... | 21.763158 | 94 | 0.403265 |
770b566e5a7eeed4d94fbdfd17e7af336c1f12bb | 825 | cpp | C++ | Chroma/src/Chroma/Core/EntryPoint.cpp | ttalexander2/chroma | 0e9946e66158938ebd6497d5bf3acfba8fbe9fee | [
"MIT"
] | 1 | 2022-03-07T01:54:59.000Z | 2022-03-07T01:54:59.000Z | Chroma/src/Chroma/Core/EntryPoint.cpp | ttalexander2/chroma | 0e9946e66158938ebd6497d5bf3acfba8fbe9fee | [
"MIT"
] | 20 | 2021-08-16T16:52:43.000Z | 2022-03-26T02:47:09.000Z | Chroma/src/Chroma/Core/EntryPoint.cpp | ttalexander2/chroma | 0e9946e66158938ebd6497d5bf3acfba8fbe9fee | [
"MIT"
] | null | null | null | #include "chromapch.h"
#include "EntryPoint.h"
#include <physfs.h>
extern "C"
{
__declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
}
extern "C"
{
__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}
void InitFilesystem()
{
PHYSFS_init(NULL);
}
void DeinitFilesystem()
{
PHYSFS... | 20.625 | 73 | 0.757576 |