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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60861cacfeab2c90a6d780e5665912549d8ae382 | 653 | cpp | C++ | src/Pixel.cpp | kosiken/lion-image-to-ascii | c000d0f90f06a88935f5ffc62e40402238025f4c | [
"MIT"
] | 2 | 2021-05-04T00:30:43.000Z | 2021-10-17T15:32:26.000Z | src/Pixel.cpp | kosiken/lion-image-to-ascii | c000d0f90f06a88935f5ffc62e40402238025f4c | [
"MIT"
] | null | null | null | src/Pixel.cpp | kosiken/lion-image-to-ascii | c000d0f90f06a88935f5ffc62e40402238025f4c | [
"MIT"
] | null | null | null | #include <iostream>
#include "Pixel.h"
#define LION_DIV 256
LionPixel::LionPixel() {
r = 0;
g= 0;
b = 0;
}
LionPixel::LionPixel(int red, int green, int blue) {
r = red;
g = green;
b = blue;
}
LionPixel::LionPixel(int red, int green, int blue, double alpha) {
r = red;
g = green... | 14.195652 | 66 | 0.496172 |
6087d9cae3034483a3e68ea7dad0b80232a6cd47 | 11,112 | cpp | C++ | f9_os/src/f9/thread.cpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | null | null | null | f9_os/src/f9/thread.cpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | null | null | null | f9_os/src/f9/thread.cpp | ghsecuritylab/arm-cortex-v7-unix | cd499fa94d6ee6cd78a31387f3512d997335df52 | [
"Apache-2.0"
] | 1 | 2020-03-08T01:08:38.000Z | 2020-03-08T01:08:38.000Z | #include "thread.hpp"
#include "fpage.hpp"
#include "schd.hpp"
#include "ktimer.hpp"
#include "ipc.hpp"
#include "irq.hpp"
namespace f9 {
__attribute__((weak)) void root_thread();
__attribute__((weak)) void root_thread() { while(1); }
DECLARE_KTABLE(tcb_t, thread_table, CONFIG_MAX_THREADS);
//volatile tcb_t *curre... | 23.4926 | 93 | 0.652988 |
608b51e70ce7335628db84bb13a86b1bb3236cc9 | 5,187 | cc | C++ | daemon/timings.cc | jimwwalker/memcached | 0b4aec7aff016c56edc9fb6008f21cf4ec06edcd | [
"BSD-3-Clause"
] | null | null | null | daemon/timings.cc | jimwwalker/memcached | 0b4aec7aff016c56edc9fb6008f21cf4ec06edcd | [
"BSD-3-Clause"
] | null | null | null | daemon/timings.cc | jimwwalker/memcached | 0b4aec7aff016c56edc9fb6008f21cf4ec06edcd | [
"BSD-3-Clause"
] | null | null | null | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "config.h"
#include "timings.h"
#include <memcached/protocol_binary.h>
#include <stdlib.h>
#include <string.h>
#include <sstream>
#ifdef HAVE_ATOMIC
#include <atomic>
#else
#include <cstdatomic>
#endif
typedef struct timings_st {... | 27.015625 | 77 | 0.601697 |
608e8341b4f4009be7368848d99c77ca32307ff6 | 12,039 | cpp | C++ | source/mango/image/image_hdr.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 3 | 2021-02-27T10:29:37.000Z | 2022-02-16T16:31:26.000Z | source/mango/image/image_hdr.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | null | null | null | source/mango/image/image_hdr.cpp | ufoym/mango | 9732fc528f66439f50a3a7cb72d4ba42a59a3d54 | [
"Zlib"
] | 5 | 2021-03-22T11:06:00.000Z | 2022-02-22T02:53:19.000Z | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2021 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#include <cmath>
#include <mango/core/pointer.hpp>
#include <mango/core/buffer.hpp>
#include <mango/core/system.hpp>
#include <mango/image/image.hpp>
namespace
{
using namespace mango;
u... | 27.361364 | 129 | 0.395216 |
6091411015121751c0a2850261a59e0fbec426ec | 711 | cpp | C++ | regression/esbmc-cpp/qt/QMultiMap/multimap_swap/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/qt/QMultiMap/multimap_swap/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/qt/QMultiMap/multimap_swap/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | // swap QMultiMaps
#include <iostream>
#include <QMultiMap>
#include <cassert>
using namespace std;
int main ()
{
QMultiMap<char,int> foo;
QMultiMap<char,int> bar;
QMultiMap<char,int>::iterator it;
foo['x']=100;
foo['y']=200;
bar['a']=11;
bar['b']=22;
bar['c']=33;
foo.swap(bar);
cout << "foo co... | 18.230769 | 53 | 0.528833 |
6091a0fd7a26cbcae458ded9ac29c32b47c6d59d | 1,691 | cc | C++ | extensions/browser/browser_context_keyed_service_factories.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-01-25T10:18:18.000Z | 2021-01-23T15:29:56.000Z | extensions/browser/browser_context_keyed_service_factories.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | extensions/browser/browser_context_keyed_service_factories.cc | justremotephone/android_external_chromium_org | 246856e61da7acf5494076c74198f2aea894a721 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-11-04T07:24:13.000Z | 2020-11-04T07:24:13.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/browser_context_keyed_service_factories.h"
#include "extensions/browser/api/api_resource_manager.h"
#include "extensions/bro... | 45.702703 | 89 | 0.825547 |
60924806e9f5450a31679b7be2d3cb4ba58cdfc8 | 828 | cpp | C++ | TrackerValidation/FixationTarget.cpp | tim-murphy/eye-tracker-validation | 70515aa9dc61c19fe61eb07bf2606be29e5e80e7 | [
"MIT"
] | null | null | null | TrackerValidation/FixationTarget.cpp | tim-murphy/eye-tracker-validation | 70515aa9dc61c19fe61eb07bf2606be29e5e80e7 | [
"MIT"
] | 16 | 2021-02-12T10:57:29.000Z | 2021-11-25T00:35:29.000Z | TrackerValidation/FixationTarget.cpp | tim-murphy/eye-tracker-validation | 70515aa9dc61c19fe61eb07bf2606be29e5e80e7 | [
"MIT"
] | null | null | null | // Fixation target abstract class
// Written by Tim Murphy <tim@murphy.org> 2021
#include "FixationTarget.h"
#include "CircleTarget.h"
#include "CrosshairBullseyeTarget.h"
#include <stdexcept>
FixationTarget::FixationTarget(unsigned int diameter)
:diameter(diameter)
{ }
unsigned int FixationTarget::getDiameter... | 23 | 65 | 0.642512 |
6092e6a75c1ff242c56b736c861d3751d55f8fa7 | 1,007 | cpp | C++ | 725.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 725.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 725.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
vector<ListNode*> splitListToParts(ListNode* root, int k) {
int d=depth(root);
vector<int> ls;
while(k>0){
... | 22.886364 | 63 | 0.443893 |
6093c27fff28d9a1205aeb335ae5d728bee82eaf | 2,099 | cc | C++ | cpp/common/statics/ordered-function-registry.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | cpp/common/statics/ordered-function-registry.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | cpp/common/statics/ordered-function-registry.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | //*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Implmentation of OrderedFunctionRegistry
//
// Modifications:
// Date Name Modification
// ---- ---- ... | 38.163636 | 79 | 0.626965 |
609476a6eed961cfbe3eb1c4bc49126779a41d14 | 8,694 | cpp | C++ | dali-toolkit/internal/controls/scrollable/scrollable-impl.cpp | wonrst/dali-toolkit | f15407e1710844219f3e418e83e689b5ff7341c2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/controls/scrollable/scrollable-impl.cpp | wonrst/dali-toolkit | f15407e1710844219f3e418e83e689b5ff7341c2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | dali-toolkit/internal/controls/scrollable/scrollable-impl.cpp | wonrst/dali-toolkit | f15407e1710844219f3e418e83e689b5ff7341c2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2014 Samsung Electronics 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... | 31.846154 | 146 | 0.740741 |
60947a120ed4130b5a61cf4d70c67d97e727da5c | 200 | cpp | C++ | BuildingEscape/Source/BuildingEscape/BuildingEscape.cpp | Kocmac/BuildingEscape | facb6e01432513798ea441dd9d79a990709afcc4 | [
"MIT"
] | 1 | 2021-11-28T17:18:39.000Z | 2021-11-28T17:18:39.000Z | BuildingEscape/Source/BuildingEscape/BuildingEscape.cpp | Kocmac/BuildingEscape | facb6e01432513798ea441dd9d79a990709afcc4 | [
"MIT"
] | null | null | null | BuildingEscape/Source/BuildingEscape/BuildingEscape.cpp | Kocmac/BuildingEscape | facb6e01432513798ea441dd9d79a990709afcc4 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "BuildingEscape.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, BuildingEscape, "BuildingEscape" );
| 33.333333 | 90 | 0.82 |
6096ff76fc04dfe49b92bc0c651093e3de6d60a7 | 4,838 | hxx | C++ | main/sd/source/ui/inc/animobjs.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sd/source/ui/inc/animobjs.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sd/source/ui/inc/animobjs.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 24.434343 | 76 | 0.665771 |
6097a5ec98ed3f1abee304f6eb6ed6a9a20ef17d | 9,353 | cpp | C++ | gadgets/pmri/gpuCgSpiritGadget.cpp | roopchansinghv/gadgetron | fb6c56b643911152c27834a754a7b6ee2dd912da | [
"MIT"
] | 1 | 2022-02-22T21:06:36.000Z | 2022-02-22T21:06:36.000Z | gadgets/pmri/gpuCgSpiritGadget.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | gadgets/pmri/gpuCgSpiritGadget.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | #include "gpuCgSpiritGadget.h"
#include "cuNDArray_operators.h"
#include "cuNDArray_elemwise.h"
#include "cuNDArray_blas.h"
#include "cuNDArray_utils.h"
#include "cuNDArray_reductions.h"
#include "GadgetMRIHeaders.h"
#include "b1_map.h"
#include "GPUTimer.h"
#include "vector_td_utilities.h"
#include "hoNDArray_fileio.h... | 36.535156 | 145 | 0.674436 |
609d81f105e1a97e4bf67ec24425ba6d671c8e6b | 2,441 | cpp | C++ | Vorlesungsmaterial/22-05-04/lambda.cpp | TEL21D/Informatik2 | d0a6b6b5a0fe5dd404dadfd50d25543d5c6d5075 | [
"MIT"
] | null | null | null | Vorlesungsmaterial/22-05-04/lambda.cpp | TEL21D/Informatik2 | d0a6b6b5a0fe5dd404dadfd50d25543d5c6d5075 | [
"MIT"
] | null | null | null | Vorlesungsmaterial/22-05-04/lambda.cpp | TEL21D/Informatik2 | d0a6b6b5a0fe5dd404dadfd50d25543d5c6d5075 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include "lambda.hpp"
using namespace std;
bool lessLength(const string &f, const string &s)
{
return f.length() < s.length();
}
void lambda()
{
vector<string> myStrVec = {"12345", "123456", "1234"... | 28.383721 | 116 | 0.565752 |
609dd584e2c58d9f2a457464d8ae604c3e7269dd | 2,159 | cpp | C++ | test/unit/alphabet/mask/mask_test.cpp | BuildJet/seqan3 | fc8cb3f1db119be30ec76f3d3cec3fecd7865c1c | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/unit/alphabet/mask/mask_test.cpp | BuildJet/seqan3 | fc8cb3f1db119be30ec76f3d3cec3fecd7865c1c | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/unit/alphabet/mask/mask_test.cpp | BuildJet/seqan3 | fc8cb3f1db119be30ec76f3d3cec3fecd7865c1c | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 43.18 | 104 | 0.645206 |
60a00c7037587a140b01a3b1c39160f93ae0d5ef | 3,685 | cpp | C++ | Daa_code/common/Key_name_from_public_data.cpp | UoS-SCCS/ecc-daa | eebd40d01aed7a3ccb8dc33df8a4b6415f02dda9 | [
"BSD-2-Clause"
] | 2 | 2020-02-28T10:40:12.000Z | 2021-02-18T03:32:28.000Z | Daa_code/common/Key_name_from_public_data.cpp | UoS-SCCS/ecc-daa | eebd40d01aed7a3ccb8dc33df8a4b6415f02dda9 | [
"BSD-2-Clause"
] | null | null | null | Daa_code/common/Key_name_from_public_data.cpp | UoS-SCCS/ecc-daa | eebd40d01aed7a3ccb8dc33df8a4b6415f02dda9 | [
"BSD-2-Clause"
] | null | null | null | /*******************************************************************************
* File: Key_name_from_public_data.cpp
* Description: Calculate the key's name from its public data (TPMT_PUBLIC)
*
* Author: Chris Newton
*
* Created: Tueday 29 May 2018
*
* (C) Copyright 2018, University of Surrey.
*
*****... | 46.0625 | 95 | 0.52483 |
60a190b7c88eb32491fe1e688731c422eca0ff47 | 249 | cpp | C++ | packages/eigen-eigen-323c052e1731/doc/snippets/MatrixBase_block_int_int.cpp | k4rth33k/dnnc-operators | a7fe3f1240c12b3438558def71fbfcd4520446c3 | [
"Apache-2.0"
] | 5 | 2019-08-16T14:35:17.000Z | 2020-07-11T23:59:22.000Z | packages/eigen-eigen-323c052e1731/doc/snippets/MatrixBase_block_int_int.cpp | k4rth33k/dnnc-operators | a7fe3f1240c12b3438558def71fbfcd4520446c3 | [
"Apache-2.0"
] | 6 | 2019-08-12T04:38:14.000Z | 2019-09-04T16:32:13.000Z | packages/eigen-eigen-323c052e1731/doc/snippets/MatrixBase_block_int_int.cpp | k4rth33k/dnnc-operators | a7fe3f1240c12b3438558def71fbfcd4520446c3 | [
"Apache-2.0"
] | 7 | 2019-08-15T13:29:00.000Z | 2019-09-09T17:08:04.000Z | Matrix4i m = Matrix4i::Random();
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Here is m.block<2,2>(1,1):" << endl << m.block<2,2>(1,1) << endl;
m.block<2,2>(1,1).setZero();
cout << "Now the matrix m is:" << endl << m << endl;
| 41.5 | 75 | 0.542169 |
60a24eb840195547b91e04b7dae2db3b80ea5191 | 288 | cpp | C++ | test/StackTest.cpp | smikes/CppUnitLite | 5714498fd5cb8d2ece2cf17e09c32cf2c1e120cf | [
"Zlib"
] | 17 | 2015-12-05T02:32:26.000Z | 2021-11-22T08:43:40.000Z | test/StackTest.cpp | brave/CppUnitLite | 651565f1aed136b06469045f3b1362152de21d0f | [
"Zlib"
] | 5 | 2015-03-25T20:36:04.000Z | 2019-06-21T03:03:43.000Z | test/StackTest.cpp | smikes/CppUnitLite | 5714498fd5cb8d2ece2cf17e09c32cf2c1e120cf | [
"Zlib"
] | 17 | 2015-02-09T07:29:18.000Z | 2021-04-09T07:29:42.000Z | #include "CppUnitLite/TestHarness.h"
#include "Stack.h"
#include <string>
SimpleString StringFrom(const std::string& value)
{
return SimpleString(value.c_str());
}
TEST( Stack, creation )
{
Stack s;
LONGS_EQUAL(0, s.size());
std::string b = "asa";
CHECK_EQUAL("asa", b);
}
| 13.714286 | 49 | 0.670139 |
60a329f1d855e8f3374889f1ea948bd10136c032 | 1,091 | cc | C++ | korean/core/chars/distance_test.cc | jeongukjae/korean | 8ce493a96558c9c2bb14b9e2ed74e3d0ddefa4ae | [
"MIT"
] | 1 | 2022-02-11T13:47:23.000Z | 2022-02-11T13:47:23.000Z | korean/core/chars/distance_test.cc | jeongukjae/korean | 8ce493a96558c9c2bb14b9e2ed74e3d0ddefa4ae | [
"MIT"
] | null | null | null | korean/core/chars/distance_test.cc | jeongukjae/korean | 8ce493a96558c9c2bb14b9e2ed74e3d0ddefa4ae | [
"MIT"
] | null | null | null | #include "korean/core/chars/distance.h"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
using namespace korean::chars;
TEST(distance, calculateLevenshtein) {
ASSERT_EQ(calculateLevenshteinDistance(L"abcdef", L"abdef"), 1);
ASSERT_EQ(calculateLevenshteinDistance(L"안녕", L"안하세요"), 3);
ASSERT_EQ(calculateLevensh... | 38.964286 | 102 | 0.724106 |
60a40149e2dd260cb8a0a4e503d974086c0df0ff | 784 | cpp | C++ | ASAE/ASAE/Buffer.cpp | BenFields724/AutoSim | 063350df2e27c38623a736a463aaf8b0124c9218 | [
"MIT"
] | null | null | null | ASAE/ASAE/Buffer.cpp | BenFields724/AutoSim | 063350df2e27c38623a736a463aaf8b0124c9218 | [
"MIT"
] | null | null | null | ASAE/ASAE/Buffer.cpp | BenFields724/AutoSim | 063350df2e27c38623a736a463aaf8b0124c9218 | [
"MIT"
] | null | null | null | //
// Buffer.cpp
// ASAE
//
// Created by Benjamin G Fields on 4/2/18.
// Copyright © 2018 Benjamin G Fields. All rights reserved.
//
// Description: defines the implementatin of the buffer object
#include "Buffer.hpp"
//Description:return the state of the buffer by saying if it is full,empty or still has space
... | 19.6 | 93 | 0.672194 |
60a6ba044e3289aa9516e4a3c755391e2e6e17b9 | 650 | cpp | C++ | src/basic/tests/unit_tests_talker.cpp | sgermanserrano/gitlab_ci_test | df415655757d9674a31ca704bef6bb7c456e7c09 | [
"Apache-2.0"
] | null | null | null | src/basic/tests/unit_tests_talker.cpp | sgermanserrano/gitlab_ci_test | df415655757d9674a31ca704bef6bb7c456e7c09 | [
"Apache-2.0"
] | null | null | null | src/basic/tests/unit_tests_talker.cpp | sgermanserrano/gitlab_ci_test | df415655757d9674a31ca704bef6bb7c456e7c09 | [
"Apache-2.0"
] | 1 | 2019-03-05T16:33:21.000Z | 2019-03-05T16:33:21.000Z | #include "basic/talker.h"
#include <gtest/gtest.h>
class MyTestSuite : public ::testing::Test {
public:
MyTestSuite(){}
~MyTestSuite(){}
};
TEST_F(MyTestSuite, lowValue){
Talker rt;
int initial_value = 3;
int value = rt.doSomeMath(initial_value);
ASSERT_EQ(value, initial_value+5) << "Value should be its initi... | 19.117647 | 81 | 0.690769 |
60a79112e0ac1dfcca72ab62a4ad3a39509ff384 | 4,648 | hpp | C++ | Compiler/boost/boost/signals2/detail/slot_call_iterator.hpp | davidov541/MiniC | d3b16a1568b97a4d801880b110a8be04fe848adb | [
"Apache-2.0"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | LibsExternes/Includes/boost/signals2/detail/slot_call_iterator.hpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | LibsExternes/Includes/boost/signals2/detail/slot_call_iterator.hpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | // Boost.Signals2 library
// Copyright Douglas Gregor 2001-2004.
// Copyright Frank Mori Hess 2007-2008.
// Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// For more in... | 31.405405 | 98 | 0.592083 |
60aa521408a96d6d1babe621f163b73e17372c30 | 2,074 | cpp | C++ | DataCollector/process.cpp | aisecstudent/DeepPuzzling | 8c3438393a5aa2a715f0058e96c07ea9ade430ac | [
"MIT"
] | 61 | 2021-11-26T13:17:13.000Z | 2022-01-24T15:42:06.000Z | DataCollector/process.cpp | aisecstudent/DeepPuzzling | 8c3438393a5aa2a715f0058e96c07ea9ade430ac | [
"MIT"
] | 1 | 2021-11-30T06:44:52.000Z | 2021-12-02T11:30:09.000Z | DataCollector/process.cpp | aisecstudent/DeepPuzzling | 8c3438393a5aa2a715f0058e96c07ea9ade430ac | [
"MIT"
] | 4 | 2021-11-26T16:23:38.000Z | 2021-11-27T07:38:54.000Z | #include "pch.h"
#include "process.h"
std::vector<ProcessInfo> GetProcessInfo()
{
STARTUPINFO st;
PROCESS_INFORMATION pi;
PROCESSENTRY32 ps;
HANDLE hSnapshot;
HANDLE processHandle = NULL;
std::vector<ProcessInfo> PInfo;
ZeroMemory(&st, sizeof(STARTUPINFO));
ZeroMemory(&pi, sizeof(PROCESS_INFORMAT... | 22.301075 | 101 | 0.69865 |
60aaf441847206e12116cd1be45012ac344c7a02 | 3,386 | cpp | C++ | libs/qmdnsengine/src/src/prober.cpp | JinRIIS/Custom-QGC | b08876453a90ddf1d8778c4f49bcbe68021bd09d | [
"Apache-2.0"
] | 51 | 2017-05-29T23:18:18.000Z | 2021-12-04T01:59:13.000Z | libs/qmdnsengine/src/src/prober.cpp | JinRIIS/Custom-QGC | b08876453a90ddf1d8778c4f49bcbe68021bd09d | [
"Apache-2.0"
] | 31 | 2017-05-09T02:56:29.000Z | 2022-03-23T08:51:25.000Z | libs/qmdnsengine/src/src/prober.cpp | JinRIIS/Custom-QGC | b08876453a90ddf1d8778c4f49bcbe68021bd09d | [
"Apache-2.0"
] | 27 | 2018-01-17T10:14:27.000Z | 2022-03-31T01:42:20.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2017 Nathan Osman
*
* 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,... | 32.247619 | 95 | 0.697874 |
60ac292a7bd709282e30bd8dfad3bf2efe7ad776 | 8,323 | cc | C++ | chrome/common/extensions/update_manifest.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | chrome/common/extensions/update_manifest.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | chrome/common/extensions/update_manifest.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | // Copyright (c) 2011 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/common/extensions/update_manifest.h"
#include <algorithm>
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "... | 31.05597 | 79 | 0.675237 |
60acc4f14e001deaee20496a931c0689e58789e7 | 36,168 | cpp | C++ | external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp | jljusten/VK-GL-CTS | 711e764f295a627eebe677a54ebc85d58d6e8920 | [
"Apache-2.0"
] | 1 | 2021-02-25T09:06:00.000Z | 2021-02-25T09:06:00.000Z | external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp | jljusten/VK-GL-CTS | 711e764f295a627eebe677a54ebc85d58d6e8920 | [
"Apache-2.0"
] | null | null | null | external/vulkancts/modules/vulkan/pipeline/vktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp | jljusten/VK-GL-CTS | 711e764f295a627eebe677a54ebc85d58d6e8920 | [
"Apache-2.0"
] | null | null | null | /*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2016 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 45.956798 | 245 | 0.729982 |
60ad8e75b8cc5955a9a862f5195d25d658fe4cd0 | 1,527 | hpp | C++ | LeetCode/C++/0041._First_Missing_Positive/solution.hpp | icgw/LeetCode | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | 4 | 2018-09-12T09:32:17.000Z | 2018-12-06T03:17:38.000Z | LeetCode/C++/0041._First_Missing_Positive/solution.hpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | LeetCode/C++/0041._First_Missing_Positive/solution.hpp | icgw/algorithm | cb70ca87aa4604d1aec83d4224b3489eacebba75 | [
"MIT"
] | null | null | null | #include <vector>
using std::vector;
using std::swap;
class Solution {
public:
int firstMissingPositive(vector<int>& nums) {
int n = nums.size();
for (int i = 0; i < n; ++i) {
while (nums[i] > 0 && nums[i] <= n && nums[nums[i] - 1] != nums[i])
sw... | 30.54 | 83 | 0.32482 |
60ae90add18acce55ac34c30fcffcc2909635dd5 | 4,367 | cc | C++ | drds/src/model/DescribeDrdsDBClusterResult.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | drds/src/model/DescribeDrdsDBClusterResult.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | drds/src/model/DescribeDrdsDBClusterResult.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 40.435185 | 99 | 0.771468 |
60af0dfb31366455544682d2c976e9e7ac494484 | 3,306 | cc | C++ | chrome/common/extensions/api/system_indicator/system_indicator_handler_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | chrome/common/extensions/api/system_indicator/system_indicator_handler_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | chrome/common/extensions/api/system_indicator/system_indicator_handler_unittest.cc | Yannic/chromium | ab32e8aacb08c9fce0dc4bf09eec456ba46e3710 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/common/extensions/api/system_indicator/system_indicator_handler.h"
#include "base/test/values_test_util.h"
#include "components/version_... | 34.8 | 83 | 0.621295 |
60afebb2dc180c6fed882952e29a3a46b908a1d5 | 16,636 | cpp | C++ | NOLF/ObjectDLL/Intelligence.cpp | haekb/nolf1-modernizer | 25bac3d43c40a83b8e90201a70a14ef63b4240e7 | [
"Unlicense"
] | 38 | 2019-09-16T14:46:42.000Z | 2022-03-10T20:28:10.000Z | NOLF/ObjectDLL/Intelligence.cpp | haekb/nolf1-modernizer | 25bac3d43c40a83b8e90201a70a14ef63b4240e7 | [
"Unlicense"
] | 39 | 2019-08-12T01:35:33.000Z | 2022-02-28T16:48:16.000Z | NOLF/ObjectDLL/Intelligence.cpp | haekb/nolf1-modernizer | 25bac3d43c40a83b8e90201a70a14ef63b4240e7 | [
"Unlicense"
] | 6 | 2019-09-17T12:49:18.000Z | 2022-03-10T20:28:12.000Z | // ----------------------------------------------------------------------- //
//
// MODULE : Intelligence.cpp
//
// PURPOSE : Implementation of the Intelligence object
//
// CREATED : 9/14/99
//
// (c) 1999-2000 Monolith Productions, Inc. All Rights Reserved
//
// -----------------------------------------------------... | 24.215429 | 105 | 0.592871 |
60b2316d6236b4b14589dff7691e1415e36d80ec | 141 | cpp | C++ | test2.cpp | abc123me/mandelbrot_c | 8bd3f61ce1941310f48fe9f0f2ca68e15f8b2a83 | [
"MIT"
] | null | null | null | test2.cpp | abc123me/mandelbrot_c | 8bd3f61ce1941310f48fe9f0f2ca68e15f8b2a83 | [
"MIT"
] | null | null | null | test2.cpp | abc123me/mandelbrot_c | 8bd3f61ce1941310f48fe9f0f2ca68e15f8b2a83 | [
"MIT"
] | null | null | null | #include "stdio.h"
#include "util.h"
int main(int argc, char** argv) {
cmplx_f c = atocmplx_f(argv[1]);
c.print(); puts("");
return 0;
}
| 15.666667 | 33 | 0.617021 |
60b565b0e2126fc08988fc395e67a41e12ba07bc | 1,142 | hpp | C++ | include/Filas.hpp | PedroAcA/so | 938ceb7bd6ee4160ec0799d6415ca133eb53e02a | [
"MIT"
] | null | null | null | include/Filas.hpp | PedroAcA/so | 938ceb7bd6ee4160ec0799d6415ca133eb53e02a | [
"MIT"
] | null | null | null | include/Filas.hpp | PedroAcA/so | 938ceb7bd6ee4160ec0799d6415ca133eb53e02a | [
"MIT"
] | null | null | null | #ifndef MODULO_FILAS_H//include de guarda
#define MODULO_FILAS_H
#include <deque>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Processos/Processo.hpp"
#include "../include/LeitorEntradas.hpp"
class Filas{
public:
/*
Esta classe implementa as filas de prioridade simples.
S... | 21.961538 | 106 | 0.759194 |
60b571a7bb1abc8eec2dba7b36b3ebe90e1faa8d | 1,755 | cpp | C++ | C++_Reversed_linked_list.cpp | BatuhanBugraAkca/C--Programing-Examples | 681993910b33615a9045a7c110ad1da617b6fe0e | [
"Apache-2.0"
] | 1 | 2022-02-21T20:31:18.000Z | 2022-02-21T20:31:18.000Z | C++_Reversed_linked_list.cpp | BatuhanBugraAkca/C--Programing-Examples | 681993910b33615a9045a7c110ad1da617b6fe0e | [
"Apache-2.0"
] | null | null | null | C++_Reversed_linked_list.cpp | BatuhanBugraAkca/C--Programing-Examples | 681993910b33615a9045a7c110ad1da617b6fe0e | [
"Apache-2.0"
] | null | null | null | // A simple and tail recursive C++ program to reverse
// a linked list
#include <bits/stdc++.h>
using namespace std;
struct Node {
int data;
struct Node* next;
};
void reverseUtil(Node* curr, Node* prev, Node** head);
// This function mainly calls reverseUtil()
// with prev as NU... | 22.5 | 56 | 0.54302 |
60b751ac3f280f755897d8c9f1585e27ca241b83 | 2,912 | cpp | C++ | src/tests/functional/inference_engine/transformations/resolve_gen_names_collisions.cpp | pfinashx/openvino | 1d417e888b508415510fb0a92e4a9264cf8bdef7 | [
"Apache-2.0"
] | null | null | null | src/tests/functional/inference_engine/transformations/resolve_gen_names_collisions.cpp | pfinashx/openvino | 1d417e888b508415510fb0a92e4a9264cf8bdef7 | [
"Apache-2.0"
] | 17 | 2021-11-25T10:22:17.000Z | 2022-03-28T13:19:31.000Z | src/tests/functional/inference_engine/transformations/resolve_gen_names_collisions.cpp | pfinashx/openvino | 1d417e888b508415510fb0a92e4a9264cf8bdef7 | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "transformations/resolve_gen_names_collisions.hpp"
#include "gtest/gtest.h"
#include "openvino/opsets/opset8.hpp"
#include "openvino/pass/manager.hpp"
TEST(ResolveGeneratedNameCollisionsTest, FixGeneratedNames) {
auto... | 44.121212 | 105 | 0.721841 |
60b7d809be74bbc4f5480a2294bf44b71745a167 | 6,201 | cc | C++ | cryptohome/cert/cert_provision_client.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | null | null | null | cryptohome/cert/cert_provision_client.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | null | null | null | cryptohome/cert/cert_provision_client.cc | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | // Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Client for cert_provision library.
#include <base/bind.h>
#include <base/command_line.h>
#include <base/files/file_util.h>
#include <base/strings... | 34.071429 | 79 | 0.607805 |
60b9ec2465e416545a7422c557240225431a473f | 4,245 | cpp | C++ | examples/win32/Win32.cpp | yoyonel/sflm2-custom | 1ebeabe7cfe6605590b341f7b415b24bed1f50d1 | [
"Zlib"
] | null | null | null | examples/win32/Win32.cpp | yoyonel/sflm2-custom | 1ebeabe7cfe6605590b341f7b415b24bed1f50d1 | [
"Zlib"
] | null | null | null | examples/win32/Win32.cpp | yoyonel/sflm2-custom | 1ebeabe7cfe6605590b341f7b415b24bed1f50d1 | [
"Zlib"
] | null | null | null |
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Graphics.hpp>
#include <windows.h>
#include <cmath>
HWND button;
////////////////////////////////////////////////////////////
/// Function called whenever o... | 32.906977 | 143 | 0.54629 |
60bb1ee20f89d138407a84ba5d07d197b2ca436b | 166,332 | hpp | C++ | external/boost_1_60_0/qsboost/phoenix/core/detail/preprocessed/call_50.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | 1 | 2019-06-27T17:54:13.000Z | 2019-06-27T17:54:13.000Z | external/boost_1_60_0/qsboost/phoenix/core/detail/preprocessed/call_50.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | external/boost_1_60_0/qsboost/phoenix/core/detail/preprocessed/call_50.hpp | wouterboomsma/quickstep | a33447562eca1350c626883f21c68125bd9f776c | [
"MIT"
] | null | null | null | /*==============================================================================
Copyright (c) 2005-2010 Joel de Guzman
Copyright (c) 2010 Thomas Heller
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)
===... | 97.156542 | 3,191 | 0.621859 |
60bb6951d7ba7390222e945f807c0b5551e529c6 | 1,039 | cpp | C++ | Ass7/Q8.cpp | nitishgarg2002/DSA-assignments | 34ec3e77e6bb00bc2ab86d2960a18d9e53300c06 | [
"MIT"
] | null | null | null | Ass7/Q8.cpp | nitishgarg2002/DSA-assignments | 34ec3e77e6bb00bc2ab86d2960a18d9e53300c06 | [
"MIT"
] | null | null | null | Ass7/Q8.cpp | nitishgarg2002/DSA-assignments | 34ec3e77e6bb00bc2ab86d2960a18d9e53300c06 | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
using namespace std;
struct Node {
int data;
struct Node *left, *right;
};
bool iterativeSearch(struct Node* root, int key)
{
while (root != NULL) {
if (key > root->data)
root = root->right;
else if (key < root->data)
root = root->left;
else
return true;
}
return false;... | 17.610169 | 58 | 0.628489 |
60bd34d4741ea33784463ca8c037f839c8bef2c3 | 1,574 | cpp | C++ | Train/El_Sageer/El_Sageer_Pupil/08 - 14 - [SP]/08 - 10 - [SP] Brute Force/10 - [SP] Brute Force/extra/4.CF [467B].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/El_Sageer/El_Sageer_Pupil/08 - 14 - [SP]/08 - 10 - [SP] Brute Force/10 - [SP] Brute Force/extra/4.CF [467B].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/El_Sageer/El_Sageer_Pupil/08 - 14 - [SP]/08 - 10 - [SP] Brute Force/10 - [SP] Brute Force/extra/4.CF [467B].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// input handle
#define iln() scanf("\n")
#define in(n) scanf("%d",&n)
#define ins(n) scanf("%s",n)
#define inc(n) scanf("%c",&n)
#define inf(n) scanf("%lf",&n)
#define inl(n) scanf("%lld",&n)
#define ot(x) printf("%d", x)
#define sp() printf(" ")
#define ots(x) printf("%s"... | 25.387097 | 85 | 0.576239 |
60bd97fce1793240c01a2c27f987df91e406831a | 776 | hpp | C++ | Libraries/Gameplay/DefaultGame.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Gameplay/DefaultGame.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Gameplay/DefaultGame.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Zero
{
/// Create the starting space and load the starting level into that space
class DefaultGameSetup : public Component
{
public:
ZilchDeclareType(DefaultGameSetup, TypeCopyMode::ReferenceType);
DefaultGameSetup();
// Component Interface
void Initi... | 22.823529 | 76 | 0.753866 |
60bdb76c845c09b3386e2c3d06b65c916577ae7b | 8,110 | cpp | C++ | Core/GDCore/Serialization/SerializerElement.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 1 | 2019-08-24T03:18:42.000Z | 2019-08-24T03:18:42.000Z | Core/GDCore/Serialization/SerializerElement.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 9 | 2020-04-04T19:26:47.000Z | 2022-03-25T18:41:20.000Z | Core/GDCore/Serialization/SerializerElement.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 2 | 2020-03-02T05:20:41.000Z | 2021-05-10T03:59:05.000Z | #include "GDCore/Serialization/SerializerElement.h"
#include <iostream>
namespace gd {
SerializerElement SerializerElement::nullElement;
SerializerElement::SerializerElement() : valueUndefined(true), isArray(false) {}
SerializerElement::SerializerElement(const SerializerValue& value)
: valueUndefined(false), e... | 33.102041 | 80 | 0.6164 |
60beb96118f0073197c22f157aa8bdf0b14c2d8b | 37,188 | hh | C++ | include/sicktoolbox/SickNAV350.hh | hazimgharib21/sicktoolbox | 345ae47f3e52ce690d8f7dd1d55695e192c06908 | [
"BSD-3-Clause"
] | 1 | 2019-08-12T14:31:18.000Z | 2019-08-12T14:31:18.000Z | include/sicktoolbox/SickNAV350.hh | hazimgharib21/sicktoolbox | 345ae47f3e52ce690d8f7dd1d55695e192c06908 | [
"BSD-3-Clause"
] | null | null | null | include/sicktoolbox/SickNAV350.hh | hazimgharib21/sicktoolbox | 345ae47f3e52ce690d8f7dd1d55695e192c06908 | [
"BSD-3-Clause"
] | null | null | null | /*!
* \file SickNav350.hh
* \brief Defines the SickNav350 class for working with the
* Sick NAV350.
*
* Code by Jason C. Derenick and Thomas H. Miller.
* Contact derenick(at)lehigh(dot)edu
*
* The Sick LIDAR Matlab/C++ Toolbox
* Copyright (c) 2008, Jason C. Derenick and Thomas H. Miller
* All rights re... | 51.721836 | 258 | 0.688502 |
60bff93a2d1c86ee195cce173b5eb541bb0eff88 | 7,087 | cpp | C++ | test/thread/source/TestThreadRWSemaLock.cpp | tlzyh/EAThread | b5e246fa86d8de5ddbcdb098df0a75f5e8839f5a | [
"BSD-3-Clause"
] | 255 | 2019-06-11T07:05:51.000Z | 2022-03-08T20:35:12.000Z | test/thread/source/TestThreadRWSemaLock.cpp | tlzyh/EAThread | b5e246fa86d8de5ddbcdb098df0a75f5e8839f5a | [
"BSD-3-Clause"
] | 4 | 2019-08-10T21:35:17.000Z | 2021-11-24T10:42:24.000Z | test/thread/source/TestThreadRWSemaLock.cpp | tlzyh/EAThread | b5e246fa86d8de5ddbcdb098df0a75f5e8839f5a | [
"BSD-3-Clause"
] | 75 | 2019-07-08T00:16:33.000Z | 2022-02-25T03:41:13.000Z | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#include "TestThread.h"
#include <EATest/EATest.h>
#include <eathread/eathread_thread.h>
#include <... | 27.257692 | 116 | 0.693241 |
60c2a63fc40b22d424c579291dbc7add26e10f4f | 8,693 | cpp | C++ | applications/_libs/cmp_mesh/jrt/jrtppmimage.cpp | galek/Compressonator | cb281b97eb05e35ec739a462c71524c4b1eefae3 | [
"MIT"
] | 622 | 2016-05-12T17:39:27.000Z | 2020-03-09T08:51:41.000Z | applications/_libs/cmp_mesh/jrt/jrtppmimage.cpp | galek/Compressonator | cb281b97eb05e35ec739a462c71524c4b1eefae3 | [
"MIT"
] | 110 | 2020-03-14T15:30:42.000Z | 2022-03-31T07:59:29.000Z | applications/_libs/cmp_mesh/jrt/jrtppmimage.cpp | galek/Compressonator | cb281b97eb05e35ec739a462c71524c4b1eefae3 | [
"MIT"
] | 105 | 2016-05-12T18:55:39.000Z | 2020-03-04T15:02:01.000Z | /************************************************************************************//**
// Copyright (c) 2006-2015 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
****************************************************************************************/
#include "tootle... | 26.26284 | 130 | 0.531002 |
60c347cbfc16aacf9b224bbdadebd88d336cf128 | 3,371 | cpp | C++ | 3rdparty/unittest-cpp-master/tests/TestDeferredTestReporter.cpp | SiddGururani/MUSI8903_Assignment_2 | c4a4dba1206e5772cd1c515ecc59fe7eac803de5 | [
"MIT"
] | 493 | 2015-04-16T13:43:20.000Z | 2022-03-31T03:54:17.000Z | 3rdparty/unittest-cpp-master/tests/TestDeferredTestReporter.cpp | SiddGururani/MUSI8903_Assignment_2 | c4a4dba1206e5772cd1c515ecc59fe7eac803de5 | [
"MIT"
] | 30 | 2015-01-13T12:17:13.000Z | 2021-06-03T14:12:10.000Z | 3rdparty/unittest-cpp-master/tests/TestDeferredTestReporter.cpp | SiddGururani/MUSI8903_Assignment_2 | c4a4dba1206e5772cd1c515ecc59fe7eac803de5 | [
"MIT"
] | 112 | 2015-01-14T12:01:00.000Z | 2022-03-29T06:42:00.000Z | #include "UnitTest++/Config.h"
#ifndef UNITTEST_NO_DEFERRED_REPORTER
#include "UnitTest++/UnitTestPP.h"
#include "UnitTest++/DeferredTestReporter.h"
#include <cstring>
namespace UnitTest
{
namespace
{
#ifndef UNITTEST_MEMORYOUTSTREAM_IS_STD_OSTRINGSTREAM
MemoryOutStream& operator <<(MemoryOutStream& lhs, const s... | 27.406504 | 94 | 0.741916 |
60c3624ae54625c59d506dfb35ab0fe7368b4bd6 | 16,722 | cc | C++ | llcc/front-end/src/inter_code_generator.cc | toy-compiler/toy_js_compiler | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | 2 | 2019-03-12T07:42:33.000Z | 2019-03-12T07:42:41.000Z | llcc/front-end/src/inter_code_generator.cc | toy-compiler/awesomeCC | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | null | null | null | llcc/front-end/src/inter_code_generator.cc | toy-compiler/awesomeCC | 4267c96cd65b2359b6ba70dad7ee1f17114e88fc | [
"MIT"
] | 1 | 2019-11-29T11:13:22.000Z | 2019-11-29T11:13:22.000Z | /**
* @file inter_code_generator.h
* @brief 中间代码生成器类具体实现
*/
#include "../include/inter_code_generator.h"
#define POS(cur) cur->line_number, cur->pos
map<string, VARIABLE_INFO_ENUM> Info::VAR_INFO_MAP = {
{"double", VARIABLE_INFO_ENUM::DOUBLE},
{"float", VARIABLE_INFO_ENUM::DOUBLE},
{"int"... | 27.916528 | 118 | 0.54204 |
60c3729869adc42ebc876a7485af606fca846d14 | 10,759 | hxx | C++ | inc/TimerThread.hxx | Clovel/TimerThread | 95083010066deeedb3d9e19e332f10827d7b0852 | [
"MIT"
] | 1 | 2020-03-04T08:59:59.000Z | 2020-03-04T08:59:59.000Z | inc/TimerThread.hxx | Clovel/TimerThread | 95083010066deeedb3d9e19e332f10827d7b0852 | [
"MIT"
] | 2 | 2020-03-05T08:33:02.000Z | 2020-03-05T08:49:17.000Z | inc/TimerThread.hxx | Clovel/TimerThread | 95083010066deeedb3d9e19e332f10827d7b0852 | [
"MIT"
] | null | null | null | /**
* TimerThread class definition
*
* @file TimerThread.hxx
*/
#ifndef TIMERTHREAD_HXX
#define TIMERTHREAD_HXX
/* Includes -------------------------------------------- */
#include <functional>
#include <chrono>
#include <unordered_map>
#include <set>
#include <thread>
#include <mutex>
#include <condition_variabl... | 38.701439 | 121 | 0.53992 |
60c6a5e9afdf2df843fcafedeeeb78e3ecf4f186 | 1,910 | cc | C++ | src/parser/uparser.cc | aldebaran/urbi | 12fe46efbee81a662bfa792fce7b75353d166dbb | [
"BSD-3-Clause"
] | 12 | 2015-01-10T10:49:05.000Z | 2018-08-20T14:53:31.000Z | src/parser/uparser.cc | akimd/urbi | 12fe46efbee81a662bfa792fce7b75353d166dbb | [
"BSD-3-Clause"
] | 4 | 2016-08-14T16:44:41.000Z | 2018-09-21T11:56:12.000Z | src/parser/uparser.cc | akimd/urbi | 12fe46efbee81a662bfa792fce7b75353d166dbb | [
"BSD-3-Clause"
] | 15 | 2015-01-28T20:27:02.000Z | 2021-09-28T19:26:08.000Z | /*
* Copyright (C) 2006-2012, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/// \file parser/uparser.cc... | 20.537634 | 71 | 0.603141 |
60c85ecb66d625c57d203206d68bcaf76636cbcf | 215 | hpp | C++ | src/modules/osg/generated_code/BufferObject.pypp.hpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osg/generated_code/BufferObject.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osg/generated_code/BufferObject.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#ifndef BufferObject_hpp__pyplusplus_wrapper
#define BufferObject_hpp__pyplusplus_wrapper
void register_BufferObject_class();
#endif//BufferObject_hpp__pyplusplus_wrapper
| 23.888889 | 44 | 0.855814 |
60c8fb1d62c0c830f6f1f6d628612b2f38e982bc | 82,756 | cpp | C++ | test/cpp/tensorexpr/test_loopnest.cpp | jsun94/nimble | e5c899a69677818b1becc58100577441e15ede13 | [
"BSD-3-Clause"
] | 206 | 2020-11-28T22:56:38.000Z | 2022-03-27T02:33:04.000Z | test/cpp/tensorexpr/test_loopnest.cpp | jsun94/nimble | e5c899a69677818b1becc58100577441e15ede13 | [
"BSD-3-Clause"
] | 19 | 2020-12-09T23:13:14.000Z | 2022-01-24T23:24:08.000Z | test/cpp/tensorexpr/test_loopnest.cpp | jsun94/nimble | e5c899a69677818b1becc58100577441e15ede13 | [
"BSD-3-Clause"
] | 28 | 2020-11-29T15:25:12.000Z | 2022-01-20T02:16:27.000Z | #include <test/cpp/tensorexpr/test_base.h>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <unordered_map>
#include <test/cpp/tensorexpr/padded_buffer.h>
#include <torch/csrc/jit/tensorexpr/analysis.h>
#include <torch/csrc/jit/tensorexpr/bounds_inference.h>
#include <torch/csrc/jit/tensorexpr/eval.h... | 28.273317 | 80 | 0.579221 |
60c93459c11005fc58de0e9708297bb4ac81b707 | 7,948 | hpp | C++ | src/lib/analysis/Args.hpp | testdlc/repo-new-18 | 1f95a44997c46081cce17cd2379216b9c039bd95 | [
"BSD-3-Clause"
] | null | null | null | src/lib/analysis/Args.hpp | testdlc/repo-new-18 | 1f95a44997c46081cce17cd2379216b9c039bd95 | [
"BSD-3-Clause"
] | null | null | null | src/lib/analysis/Args.hpp | testdlc/repo-new-18 | 1f95a44997c46081cce17cd2379216b9c039bd95 | [
"BSD-3-Clause"
] | null | null | null | // -*-Mode: C++;-*-
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research and development of
//... | 29.656716 | 77 | 0.55385 |
60cab731452bbb76cb0839c1bfa98e55f65e1325 | 1,823 | cpp | C++ | Experimental/Grace-Experimental/src/Commands/TurnByAngle.cpp | quasics/quasics-frc-sw-2015 | e5a4f1b4e209ba941f12c2cc41759854f3c5420b | [
"BSD-3-Clause"
] | 5 | 2016-12-16T19:05:05.000Z | 2021-03-05T01:23:27.000Z | Experimental/Grace-Experimental/src/Commands/TurnByAngle.cpp | quasics/quasics-frc-sw-2015 | e5a4f1b4e209ba941f12c2cc41759854f3c5420b | [
"BSD-3-Clause"
] | null | null | null | Experimental/Grace-Experimental/src/Commands/TurnByAngle.cpp | quasics/quasics-frc-sw-2015 | e5a4f1b4e209ba941f12c2cc41759854f3c5420b | [
"BSD-3-Clause"
] | 2 | 2020-01-03T01:52:43.000Z | 2022-02-02T01:23:45.000Z | /*
* TurnByAngle.cpp
*
* Created on: Apr 14, 2018
* Author: healym
*/
#include "TurnByAngle.h"
#include "../Robot.h"
constexpr double LEFT_POWER = .25;
constexpr double RIGHT_POWER = -.25;
namespace {
// Converts an angle (in degrees) to a value in the range [0..360).
double normalizeAngle(double angleD... | 27.621212 | 75 | 0.696105 |
60cc3df86cf31033db5c0ff70ed6e6f94509b3c5 | 2,717 | cpp | C++ | core/inst_c4c.cpp | autch/piemu | bf15030757c49325c155a853871aee45b616717a | [
"Zlib"
] | 10 | 2017-07-04T03:05:42.000Z | 2022-01-20T17:37:06.000Z | core/inst_c4c.cpp | autch/piemu | bf15030757c49325c155a853871aee45b616717a | [
"Zlib"
] | 2 | 2020-06-29T13:32:15.000Z | 2021-12-22T23:04:43.000Z | core/inst_c4c.cpp | autch/piemu | bf15030757c49325c155a853871aee45b616717a | [
"Zlib"
] | 5 | 2021-08-28T02:21:56.000Z | 2022-01-16T21:39:16.000Z |
#include "inst.h"
/****************************************************************************
* CLASS 4C
****************************************************************************/
#undef INST
#define INST INST_CLASS_4C
C33_OP(scan0_rd_rs)
{
c33word ua, ub;
ua = Rs.w;
for(ub = 0; ub < 8; ub++)
{
... | 14.686486 | 78 | 0.375782 |
60cd2c65df7bc743837a1fbc20efeca4e6d56e69 | 41 | hpp | C++ | src/boost_fusion_include_at_c.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_include_at_c.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_include_at_c.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/include/at_c.hpp>
| 20.5 | 40 | 0.780488 |
f599d9642710d3378e3cf23fd1b892b2c221f6bf | 790 | cc | C++ | chrome/browser/ui/tabs/tab_strip_model_utils.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | chrome/browser/ui/tabs/tab_strip_model_utils.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/tabs/tab_strip_model_utils.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/tabs/tab_strip_model_utils.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "components/history/core/brows... | 32.916667 | 76 | 0.706329 |
f59aada8dd2a16a3e0044628da6196866b8a6968 | 554 | cpp | C++ | src/noj_am/BOJ_18870.cpp | ginami0129g/my-problem-solving | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | 1 | 2020-06-01T12:19:31.000Z | 2020-06-01T12:19:31.000Z | src/noj_am/BOJ_18870.cpp | ginami0129g/my-study-history | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | 23 | 2020-11-08T07:14:02.000Z | 2021-02-11T11:16:00.000Z | src/noj_am/BOJ_18870.cpp | ginami0129g/my-problem-solving | b173b5df42354b206839711fa166fcd515c6a69c | [
"Beerware"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int n, num, cnt;
vector<pair<int, int> > arr;
vector<int> ans;
int main(void) {
cin.tie(NULL);
ios_base::sync_with_stdio(false);
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> num;
arr.push_back({num, i});
}
sort(arr.begin(), arr.end());
ans.assign(... | 20.518519 | 48 | 0.516245 |
f59be45fd86cdf9eefcb04047afabaff8dcbf545 | 15,265 | cpp | C++ | src/crypt_blowfish/wrapper.cpp | lassir/bcrypt-samp | 9cd50ff2f0b79a236a558d11d78b544441dcb256 | [
"MIT"
] | 17 | 2015-07-07T16:45:36.000Z | 2021-08-08T17:37:55.000Z | src/crypt_blowfish/wrapper.cpp | Mergevos/bcrypt-samp | fca715b8c9332d9e8c8e7448324c3004ee81848c | [
"MIT"
] | 7 | 2015-10-18T11:33:52.000Z | 2021-12-08T21:39:29.000Z | src/crypt_blowfish/wrapper.cpp | Mergevos/bcrypt-samp | fca715b8c9332d9e8c8e7448324c3004ee81848c | [
"MIT"
] | 23 | 2015-04-19T18:55:01.000Z | 2021-04-26T22:24:54.000Z | /*
* Written by Solar Designer <solar at openwall.com> in 2000-2011.
* No copyright is claimed, and the software is hereby placed in the public
* domain. In case this attempt to disclaim copyright and place the software
* in the public domain is deemed null and void, then the software is
* Copyright (c) 2000-2011... | 27.957875 | 77 | 0.68038 |
f59dceeaa59eccbc4a9a0dd43b0ab7c11ef19dcc | 11,421 | hpp | C++ | include/Nazara/Network/ENetPeer.hpp | waruqi/NazaraEngine | a64de1ffe8b0790622a0b1cae5759c96b4f86907 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 376 | 2015-01-09T03:14:48.000Z | 2022-03-26T17:59:18.000Z | include/Nazara/Network/ENetPeer.hpp | waruqi/NazaraEngine | a64de1ffe8b0790622a0b1cae5759c96b4f86907 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 252 | 2015-01-21T17:34:39.000Z | 2022-03-20T16:15:50.000Z | include/Nazara/Network/ENetPeer.hpp | waruqi/NazaraEngine | a64de1ffe8b0790622a0b1cae5759c96b4f86907 | [
"BSD-3-Clause-Clear",
"Apache-2.0",
"MIT"
] | 104 | 2015-01-18T11:03:41.000Z | 2022-03-11T05:40:47.000Z | /*
Copyright(c) 2002 - 2016 Lee Salzman
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribu... | 44.788235 | 460 | 0.637685 |
f59e440a647b2c2c41f5832f27f3be9cac755a8b | 6,483 | cpp | C++ | csgo-crow/AntiCheatServer/NoCheatZ/server-plugin/Code/Systems/Testers/EyeAnglesTester.cpp | im6705/csgo_full | 6c50221c5b6441ebf689e3a1cb4978510fab0b27 | [
"Apache-2.0"
] | null | null | null | csgo-crow/AntiCheatServer/NoCheatZ/server-plugin/Code/Systems/Testers/EyeAnglesTester.cpp | im6705/csgo_full | 6c50221c5b6441ebf689e3a1cb4978510fab0b27 | [
"Apache-2.0"
] | null | null | null | csgo-crow/AntiCheatServer/NoCheatZ/server-plugin/Code/Systems/Testers/EyeAnglesTester.cpp | im6705/csgo_full | 6c50221c5b6441ebf689e3a1cb4978510fab0b27 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2012 - Le Padellec Sylvain
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... | 29.202703 | 154 | 0.700602 |
f59ee6395e1e11db0bd828cbd26bb2eabff33dd1 | 320 | cpp | C++ | algorithms/MaximumSubarray/solution.cpp | senlinzhan/algorithms | 8a8ba89844d645f3e0461e81e25c0bb44b837521 | [
"MIT"
] | 2 | 2017-12-02T05:47:10.000Z | 2018-01-08T08:43:15.000Z | algorithms/MaximumSubarray/solution.cpp | senlinzhan/algorithms | 8a8ba89844d645f3e0461e81e25c0bb44b837521 | [
"MIT"
] | null | null | null | algorithms/MaximumSubarray/solution.cpp | senlinzhan/algorithms | 8a8ba89844d645f3e0461e81e25c0bb44b837521 | [
"MIT"
] | 1 | 2018-07-06T02:14:18.000Z | 2018-07-06T02:14:18.000Z | class Solution {
public:
int maxSubArray(vector<int>& nums) {
int maxSum = INT_MIN;
int sum = 0;
for (int i = 0; i < nums.size(); i++)
{
sum = std::max(sum + nums[i], nums[i]);
maxSum = std::max(maxSum, sum);
}
return maxSum;
}
};
| 21.333333 | 51 | 0.44375 |
f5a0b653ea5123444f44a63d1c5db33502ead90a | 1,528 | hpp | C++ | include/engge/Engine/Camera.hpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 127 | 2018-12-09T18:40:02.000Z | 2022-03-06T00:10:07.000Z | include/engge/Engine/Camera.hpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 267 | 2019-02-26T22:16:48.000Z | 2022-02-09T09:49:22.000Z | include/engge/Engine/Camera.hpp | scemino/engge | 3362ad56b67f58bdc89f7eb1a77f0f75bd350e1f | [
"MIT"
] | 17 | 2019-02-26T20:45:34.000Z | 2021-06-17T15:06:26.000Z | #pragma once
#include <memory>
#include <optional>
#include "Interpolations.hpp"
#include <glm/vec2.hpp>
#include <ngf/System/TimeSpan.h>
#include <ngf/Graphics/Rect.h>
namespace ng {
class Engine;
class Camera {
public:
Camera();
virtual ~Camera();
/// @brief Pans the camera to the target position in a specifi... | 31.183673 | 108 | 0.712042 |
f5a2fe8e78bf109afa2d188699109d4d1c727f36 | 1,110 | cpp | C++ | leetcode/word-search.cpp | sounishnath003/practice-180D-strategy | 2778c861407a2be04168d5dfa6135a4b624029fc | [
"Apache-2.0"
] | null | null | null | leetcode/word-search.cpp | sounishnath003/practice-180D-strategy | 2778c861407a2be04168d5dfa6135a4b624029fc | [
"Apache-2.0"
] | null | null | null | leetcode/word-search.cpp | sounishnath003/practice-180D-strategy | 2778c861407a2be04168d5dfa6135a4b624029fc | [
"Apache-2.0"
] | 1 | 2020-10-07T15:02:09.000Z | 2020-10-07T15:02:09.000Z | class Solution {
public:
bool dfs(vector<vector<char>> &board, int row, int col, string &word, int wc)
{
if(wc == (int) word.length()){
return true;
}
if(row < 0 or row >= board.size() or col < 0 or col >= board[row].size() or board[row][col] != word[wc])
{
return false;
}
{... | 27.75 | 108 | 0.455856 |
f5a716fac30584103d6f23cb125394106392f88d | 4,166 | cpp | C++ | lecture21/Graph.cpp | jamesmtuck/ncstate_ece309_examples | 4f36ac249af8a7910c146994abd541b03d7fdbd9 | [
"MIT"
] | 11 | 2018-08-09T14:35:14.000Z | 2019-12-12T02:34:28.000Z | lecture21/Graph.cpp | jamesmtuck/ncstate_ece309_examples | 4f36ac249af8a7910c146994abd541b03d7fdbd9 | [
"MIT"
] | null | null | null | lecture21/Graph.cpp | jamesmtuck/ncstate_ece309_examples | 4f36ac249af8a7910c146994abd541b03d7fdbd9 | [
"MIT"
] | 30 | 2018-09-02T16:59:17.000Z | 2020-01-07T19:21:43.000Z | #include <stdio.h>
#include <iostream>
#include "Graph.h"
#include "IntegerSet.h"
#include "Queue.h"
SparseGraph::SparseGraph(int n) : Graph(n) { nodes = new Node[numNodes]; }
void SparseGraph::addEdge(int v1, int v2) {
nodes[v1].edge.append(v2);
nodes[v2].edge.append(v1);
}
bool SparseGraph::isAdjacent(int v1... | 21.147208 | 74 | 0.621459 |
f5a934acb2b63f19c61facd572b01b01fbe5d2c8 | 3,532 | hpp | C++ | src/hash_map.hpp | kophy/TinySTL | 366c2f585344a249846f4087904d509fa71e419e | [
"MIT"
] | 5 | 2017-05-04T12:21:09.000Z | 2019-03-28T09:29:50.000Z | src/hash_map.hpp | kophy/TinySTL | 366c2f585344a249846f4087904d509fa71e419e | [
"MIT"
] | null | null | null | src/hash_map.hpp | kophy/TinySTL | 366c2f585344a249846f4087904d509fa71e419e | [
"MIT"
] | null | null | null | #ifndef __TINYSTL_HASH_MAP__
#define __TINYSTL_HASH_MAP__
#include "hash_table.hpp"
#include "allocator.hpp"
#include "utils.hpp"
namespace TinySTL {
template <typename Key, typename Value>
static bool isEqualKey(const Pair<const Key, Value> &a, const Pair<const Key, Value> &b) {
return a.first == b.f... | 36.791667 | 125 | 0.507928 |
f5aa0118dcc76527f14b2d6720f25e56214cddd7 | 5,115 | cpp | C++ | src/StdvNormalizer.cpp | BR903/percolator | 2d9315699cf3309421b83c4c21ce8275ede87089 | [
"Apache-2.0"
] | 71 | 2015-03-30T17:22:52.000Z | 2022-01-01T14:19:23.000Z | src/StdvNormalizer.cpp | BR903/percolator | 2d9315699cf3309421b83c4c21ce8275ede87089 | [
"Apache-2.0"
] | 190 | 2015-01-27T16:18:58.000Z | 2022-03-31T16:49:58.000Z | src/StdvNormalizer.cpp | BR903/percolator | 2d9315699cf3309421b83c4c21ce8275ede87089 | [
"Apache-2.0"
] | 45 | 2015-04-13T13:42:35.000Z | 2021-12-17T08:26:21.000Z | /*******************************************************************************
Copyright 2006-2012 Lukas Käll <lukas.kall@scilifelab.se>
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:... | 26.640625 | 81 | 0.527273 |
f5aab048acb471224d4968ff15a833a9a6ab7672 | 4,241 | cpp | C++ | iai/src/v20180301/model/GetPersonBaseInfoResponse.cpp | li5ch/tencentcloud-sdk-cpp | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | [
"Apache-2.0"
] | null | null | null | iai/src/v20180301/model/GetPersonBaseInfoResponse.cpp | li5ch/tencentcloud-sdk-cpp | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | [
"Apache-2.0"
] | null | null | null | iai/src/v20180301/model/GetPersonBaseInfoResponse.cpp | li5ch/tencentcloud-sdk-cpp | 12ebfd75a399ee2791f6ac1220a79ce8a9faf7c4 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 30.956204 | 122 | 0.674841 |
f5aca9b4c15da8e2a8ea61c8a7b9bdb82aff1c26 | 542 | cpp | C++ | ModelViewer/LoadingWrapper.cpp | peted70/glTF-DXViewer | 1857e630fc14d19ced41c3ae9b895b017f937ab7 | [
"MIT"
] | null | null | null | ModelViewer/LoadingWrapper.cpp | peted70/glTF-DXViewer | 1857e630fc14d19ced41c3ae9b895b017f937ab7 | [
"MIT"
] | null | null | null | ModelViewer/LoadingWrapper.cpp | peted70/glTF-DXViewer | 1857e630fc14d19ced41c3ae9b895b017f937ab7 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "LoadingWrapper.h"
using namespace std;
LoadingWrapper::LoadingWrapper(function<void()> ctor, function<void()> dtor) :
_dtor(dtor)
{
Schedule(ctor);
}
future<void> LoadingWrapper::Schedule(function<void()> fn)
{
auto disp = Windows::ApplicationModel::Core::CoreApplication::MainView->Core... | 23.565217 | 96 | 0.732472 |
f5adf6c6a995ca354b6279e8078d9b238cd2b123 | 800 | cpp | C++ | Dataset/Leetcode/train/98/219.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/98/219.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/98/219.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
// left记录当前节点的上一个节点的值
long long left = LONG_MIN;
bool XXX(TreeNode* root) {
return XXX2(root, NULL, NULL);
}
bool XXX1(TreeNode* root) {
if(!root) return true;
if(XXX(root->left)) {
// 如果上一个节点的值小于当前节点,说明满足升序,继续遍历,否则返回false
if(... | 28.571429 | 75 | 0.53 |
f5ae25e03cd71f1b1c8137f547d5c598add9ba63 | 2,524 | cpp | C++ | src/collate_result.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-09T12:48:41.000Z | 2019-04-09T12:48:41.000Z | src/collate_result.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 2 | 2020-05-06T16:22:07.000Z | 2020-05-07T04:02:41.000Z | src/collate_result.cpp | lsilvest/crpcut | e9d694fb04599b72ebdcf6fea7d6ad598807ff41 | [
"BSD-2-Clause"
] | 1 | 2019-04-10T12:47:11.000Z | 2019-04-10T12:47:11.000Z | /*
* Copyright 2011 Bjorn Fahller <bjorn@fahller.se>
* All rights reserved
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this li... | 29.348837 | 78 | 0.669176 |
f5ae32e32a5638d8fef7af97cff86068943bda25 | 201 | cpp | C++ | ComputerGraphics/Script.cpp | ylzf0000/TinyGameEngine | d15c3eb80189d91ed430eca1089475213ef0cad3 | [
"MIT"
] | null | null | null | ComputerGraphics/Script.cpp | ylzf0000/TinyGameEngine | d15c3eb80189d91ed430eca1089475213ef0cad3 | [
"MIT"
] | null | null | null | ComputerGraphics/Script.cpp | ylzf0000/TinyGameEngine | d15c3eb80189d91ed430eca1089475213ef0cad3 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Script.h"
#include "Object.h"
#include "Mesh.h"
#include "Transform.h"
cg::Script::Script(Object *pObj) :pObject(pObj), transform(pObj->transform), pMesh(pObj->pMesh)
{}
| 22.333333 | 95 | 0.706468 |
f5aedeeaf31c124b8443217321b012f263ebce23 | 1,065 | hpp | C++ | src/backend/cuda/Param.hpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | 4 | 2015-12-16T09:41:32.000Z | 2018-10-29T10:38:53.000Z | src/backend/cuda/Param.hpp | ckeitz/arrayfire | a1a1bbbc8487a032eb27a6c894b1b3dfb19d123b | [
"BSD-3-Clause"
] | 3 | 2015-11-15T18:43:47.000Z | 2015-12-16T09:43:14.000Z | src/backend/cuda/Param.hpp | pavanky/arrayfire | f983a79c7d402450bd2a704bbc1015b89f0cd504 | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
**********************************************... | 19.722222 | 83 | 0.504225 |
f5af81e36cbe38e3109c5ba6427a06852577b146 | 24,656 | cpp | C++ | src/ports/SkFontMgr_mac_ct.cpp | JimmySoftware/skia | d5a244e6c00c12f8c91c94ff4549191177dd817e | [
"BSD-3-Clause"
] | null | null | null | src/ports/SkFontMgr_mac_ct.cpp | JimmySoftware/skia | d5a244e6c00c12f8c91c94ff4549191177dd817e | [
"BSD-3-Clause"
] | null | null | null | src/ports/SkFontMgr_mac_ct.cpp | JimmySoftware/skia | d5a244e6c00c12f8c91c94ff4549191177dd817e | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkTypes.h"
#if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS)
#ifdef SK_BUILD_FOR_MAC
#import <ApplicationServices/Applicat... | 39.261146 | 103 | 0.658258 |
f5b37d1b06dc760e0ba78f9280eeca201e8afdef | 3,200 | cpp | C++ | ExplorerXP/TextUtil.cpp | avrionov/explorerxp | c68bf161bb77bf5c9b3476be0e795d23bb0b6b5f | [
"Apache-2.0"
] | 12 | 2016-11-10T01:21:48.000Z | 2022-02-16T00:03:50.000Z | ExplorerXP/TextUtil.cpp | avrionov/explorerxp | c68bf161bb77bf5c9b3476be0e795d23bb0b6b5f | [
"Apache-2.0"
] | 4 | 2021-05-28T03:58:27.000Z | 2022-01-02T13:13:36.000Z | ExplorerXP/TextUtil.cpp | avrionov/explorerxp | c68bf161bb77bf5c9b3476be0e795d23bb0b6b5f | [
"Apache-2.0"
] | 2 | 2016-12-21T15:06:39.000Z | 2022-01-26T08:43:44.000Z | /* Copyright 2002-2020 Nikolay Avrionov. 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... | 17.486339 | 74 | 0.632188 |
f5b442608e25181a2e86f9403215f627de5eb23e | 305 | hpp | C++ | src/renderbufferformat.hpp | mharrys/gust | db458cd604d5d560844c0f7c2364f098fd6937a0 | [
"MIT"
] | 6 | 2016-07-25T06:44:23.000Z | 2020-11-08T11:19:11.000Z | src/renderbufferformat.hpp | mharrys/gust | db458cd604d5d560844c0f7c2364f098fd6937a0 | [
"MIT"
] | null | null | null | src/renderbufferformat.hpp | mharrys/gust | db458cd604d5d560844c0f7c2364f098fd6937a0 | [
"MIT"
] | 1 | 2019-06-05T13:02:32.000Z | 2019-06-05T13:02:32.000Z | #ifndef RENDERBUFFERFORMAT_HPP_INCLUDED
#define RENDERBUFFERFORMAT_HPP_INCLUDED
namespace gst
{
// Supported renderbuffer storage formats.
enum class RenderbufferFormat {
DEPTH_COMPONENT16,
DEPTH_COMPONENT24,
DEPTH_COMPONENT32,
DEPTH_COMPONENT32F
};
}
#endif
| 19.0625 | 46 | 0.727869 |
f5b6db362dcc5ecd02e6ee4a7395142a99910b9b | 6,560 | cpp | C++ | video__win32__dx5_mouse.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 5 | 2015-12-09T20:37:49.000Z | 2021-08-10T08:06:29.000Z | video__win32__dx5_mouse.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 13 | 2021-09-20T16:25:30.000Z | 2022-03-17T04:59:40.000Z | video__win32__dx5_mouse.cpp | poikilos/golgotha | d3184dea6b061f853423e0666dba23218042e5ba | [
"CC0-1.0"
] | 5 | 2016-01-04T22:54:22.000Z | 2021-09-20T16:09:03.000Z | /********************************************************************** <BR>
This file is part of Crack dot Com's free source code release of
Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
information about compiling & licensing issues visit this URL</a>
<PRE> If that doesn't help, ... | 26.885246 | 133 | 0.653049 |
f5ba75180770249cd70a7937992ebc27ba44ded4 | 1,580 | cc | C++ | Chacha/Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/model/document_key.cc | hyeoktae/chacha2 | 14e4a96cb91968aa275bdfe8451b12cfe37a1869 | [
"MIT"
] | 69 | 2019-06-19T19:03:14.000Z | 2019-10-08T04:09:00.000Z | ios/Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/model/document_key.cc | mnomanmemon/tasks_clone | d9e9af82371c3934aabe9a3a5f4b7d0ba73226d0 | [
"MIT"
] | 27 | 2018-04-07T19:57:10.000Z | 2020-08-03T05:04:15.000Z | iosApp/Pods/FirebaseFirestore/Firestore/core/src/firebase/firestore/model/document_key.cc | archiegq21/DroidconKotlin | 8c3ec05448d586037c924f245f77fcd0150f0476 | [
"Apache-2.0"
] | 30 | 2018-03-18T10:56:47.000Z | 2020-07-23T12:54:16.000Z | /*
* Copyright 2018 Google
*
* 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 w... | 27.241379 | 80 | 0.735443 |
f5bb9e00f615f3bb76cc87691eb8a7aab5dc1fd4 | 7,660 | hpp | C++ | include/Core/Transform/Polygon.hpp | mjopenglsdl/ObEngine | a56116c8cdf1ce30b7fadb749f8ca4df54e5ee36 | [
"MIT"
] | null | null | null | include/Core/Transform/Polygon.hpp | mjopenglsdl/ObEngine | a56116c8cdf1ce30b7fadb749f8ca4df54e5ee36 | [
"MIT"
] | null | null | null | include/Core/Transform/Polygon.hpp | mjopenglsdl/ObEngine | a56116c8cdf1ce30b7fadb749f8ca4df54e5ee36 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <memory>
#include <optional>
#include <vector>
#include <Transform/Movable.hpp>
#include <Transform/Rect.hpp>
#include <Transform/UnitBasedObject.hpp>
#include <Transform/UnitVector.hpp>
namespace obe::Transform
{
class Polygon;
using point_index_t = unsigned int;... | 45.595238 | 156 | 0.663316 |
f5bd16a09b8163855c372db305ffda78fa3be8f2 | 4,259 | cpp | C++ | swg_generated/cpp/qt5cpp/client/SWGMarketInfo.cpp | Reclusive-Trader/upbit-client | ca1fb02c9d4e22f6d726baf30a455a235ce0324a | [
"MIT"
] | 46 | 2021-01-07T14:53:26.000Z | 2022-03-25T10:11:16.000Z | swg_generated/cpp/qt5cpp/client/SWGMarketInfo.cpp | Reclusive-Trader/upbit-client | ca1fb02c9d4e22f6d726baf30a455a235ce0324a | [
"MIT"
] | 4 | 2021-02-20T05:21:29.000Z | 2022-03-01T12:53:02.000Z | swg_generated/cpp/qt5cpp/client/SWGMarketInfo.cpp | Reclusive-Trader/upbit-client | ca1fb02c9d4e22f6d726baf30a455a235ce0324a | [
"MIT"
] | 59 | 2021-01-07T11:58:10.000Z | 2022-02-15T06:11:33.000Z | /**
* Upbit Open API
* ## REST API for Upbit Exchange - Base URL: [https://api.upbit.com] - Official Upbit API Documents: [https://docs.upbit.com] - Official Support email: [open-api@upbit.com]
*
* OpenAPI spec version: 1.0.0
* Contact: ujhin942@gmail.com
*
* NOTE: This class is auto generated by the swagger co... | 25.201183 | 174 | 0.669641 |
f5bf0ad176c860aed0ec40730959b6320c256315 | 35,812 | cpp | C++ | DT3LevelEditor/Animation/EdLevelAnimationWindow.cpp | nemerle/DT3 | 801615d507eda9764662f3a34339aa676170e93a | [
"MIT"
] | 3 | 2016-01-27T13:17:18.000Z | 2019-03-19T09:18:25.000Z | DT3LevelEditor/Animation/EdLevelAnimationWindow.cpp | nemerle/DT3 | 801615d507eda9764662f3a34339aa676170e93a | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3LevelEditor/Animation/EdLevelAnimationWindow.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: EdLevelAnimationWindow.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part o... | 34.500963 | 211 | 0.501703 |
f5c0688dd156ba862e9571e1a778a5dded3474dd | 19,353 | cpp | C++ | src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp | evergage/mongo | 887ce0b9730bc9f43b5fe7627a71659b84b68026 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp | evergage/mongo | 887ce0b9730bc9f43b5fe7627a71659b84b68026 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit_test.cpp | evergage/mongo | 887ce0b9730bc9f43b5fe7627a71659b84b68026 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be usef... | 36.241573 | 98 | 0.660931 |
f5c1054a308d3b17d7a75fc95ddf2f5624dd9ea8 | 12,266 | cpp | C++ | folly/experimental/coro/test/AsyncGeneratorTest.cpp | muralivemulapati/folly | d7808b52813448e4535455e87fbea838a2307ce7 | [
"Apache-2.0"
] | null | null | null | folly/experimental/coro/test/AsyncGeneratorTest.cpp | muralivemulapati/folly | d7808b52813448e4535455e87fbea838a2307ce7 | [
"Apache-2.0"
] | null | null | null | folly/experimental/coro/test/AsyncGeneratorTest.cpp | muralivemulapati/folly | d7808b52813448e4535455e87fbea838a2307ce7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 27.502242 | 78 | 0.628974 |
f5c335aa22be901327562676c585b56e34c7da99 | 9,922 | cxx | C++ | com/oleutest/stgbvt/comtools/cmdlinew/culong.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/oleutest/stgbvt/comtools/cmdlinew/culong.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/oleutest/stgbvt/comtools/cmdlinew/culong.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+------------------------------------------------------------------
//
// File: culong.cxx
//
// Contents: implementation for CUlongCmdlineObj
//
// Synoposis: Encapsulates a command line switch which takes an
// unsigned long value, eg: /maxusers:10
//
// Classes: CUlongCmdlineO... | 30.435583 | 80 | 0.476618 |
f5c439f14ae46e7826367041aa2f7d45ce4728e8 | 600 | cpp | C++ | frameworks/compile/mclinker/lib/LD/BinaryReader.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | 1 | 2022-01-07T01:53:19.000Z | 2022-01-07T01:53:19.000Z | frameworks/compile/mclinker/lib/LD/BinaryReader.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | null | null | null | frameworks/compile/mclinker/lib/LD/BinaryReader.cpp | touxiong88/92_mediatek | 5e96a7bb778fd9d9b335825584664e0c8b5ff2c7 | [
"Apache-2.0"
] | 1 | 2020-02-28T02:48:42.000Z | 2020-02-28T02:48:42.000Z | //===- BinaryReader.cpp ---------------------------------------------------===//
//
// The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------------------... | 30 | 80 | 0.336667 |
f5c52e1ac31fdcdac60c7b27e3ee47cb3433f7b9 | 4,698 | hpp | C++ | test/sgraph/sgraph_check_degree_count.hpp | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 1 | 2018-12-15T20:03:51.000Z | 2018-12-15T20:03:51.000Z | test/sgraph/sgraph_check_degree_count.hpp | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | test/sgraph/sgraph_check_degree_count.hpp | ZeroInfinite/turicreate | dd210c2563930881abd51fd69cb73007955b33fd | [
"BSD-3-Clause"
] | 1 | 2019-06-01T18:49:28.000Z | 2019-06-01T18:49:28.000Z | /* Copyright © 2017 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#ifndef TURI_SGRAPH_TEST_DEGREE_COUNT_HPP
#define TURI_SGRAPH_TEST_DEGREE_COUNT_HPP
#include <sgrap... | 48.43299 | 117 | 0.702214 |
f5c5aa3f4c4cbcde272a0e9ab77c7017dfae5444 | 1,591 | cpp | C++ | src/uxnrnbbs/mos2nrn.cpp | kateyose/nrn-7.6.7 | 603da174f660370abb425917cc5c64c3db03dcec | [
"BSD-3-Clause"
] | null | null | null | src/uxnrnbbs/mos2nrn.cpp | kateyose/nrn-7.6.7 | 603da174f660370abb425917cc5c64c3db03dcec | [
"BSD-3-Clause"
] | null | null | null | src/uxnrnbbs/mos2nrn.cpp | kateyose/nrn-7.6.7 | 603da174f660370abb425917cc5c64c3db03dcec | [
"BSD-3-Clause"
] | null | null | null | #include <../../nrnconf.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include "mos2nrn.h"
static void getdname(char* dname);
#include <string.h>
const char* back2forward(const char*);
const char* basefile(const char*);
int main(int argc, char** argv) {
char buf[256];
char dnam... | 19.8875 | 81 | 0.580138 |
f5c5d8e508da0c221d706f97a668b23b2a37a3bd | 320 | cpp | C++ | src/IceRay/material/pattern/noise/cells.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRay/material/pattern/noise/cells.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRay/material/pattern/noise/cells.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | #include "./cells.hpp"
namespace GS_DDMRM
{
namespace S_IceRay
{
namespace S_material
{
namespace S_pattern
{
namespace S_noise
{
GS_DDMRM::S_IceRay::S_utility::S_table::GC_value<3,1> GC_cells::M2s_table;
}
}
}
}
}
| 14.545455 | 85 | 0.503125 |
f5c7bbf52297d1b8792ae291df46b9db6ff3e567 | 2,260 | cc | C++ | src/cartographer_ros-release-1.0/cartographer_ros/cartographer_ros/ros_log_sink.cc | Louis-AD-git/racecar_ws | 3c5cb561d1aee11d80a7f3847e0334e93f345513 | [
"MIT"
] | 1,019 | 2016-08-04T14:52:11.000Z | 2020-04-02T09:08:03.000Z | cartographer_ros/cartographer_ros/ros_log_sink.cc | magiccjae/cartographer_ros | e2b20a052de03f188e3d65e88932d7ccec14a14a | [
"Apache-2.0"
] | 1,194 | 2016-08-03T12:52:12.000Z | 2020-04-03T04:53:11.000Z | cartographer_ros/cartographer_ros/ros_log_sink.cc | magiccjae/cartographer_ros | e2b20a052de03f188e3d65e88932d7ccec14a14a | [
"Apache-2.0"
] | 795 | 2016-08-03T11:01:22.000Z | 2020-04-03T13:05:21.000Z | /*
* Copyright 2016 The Cartographer Authors
*
* 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... | 29.350649 | 77 | 0.672566 |
f5caf7fa5c74e321e9096368497c76f477d0633c | 21,479 | cpp | C++ | scopeprotocols/FIRFilter.cpp | adamgreig/scopehal | a96ed51a6122ce5595dc5ccf676e82fb3ab2ac47 | [
"BSD-3-Clause"
] | 1 | 2020-12-27T14:58:48.000Z | 2020-12-27T14:58:48.000Z | scopeprotocols/FIRFilter.cpp | pd0wm/scopehal | da5dd5a79cd24726ba9da4a9c6356e0b0b4c2dcc | [
"BSD-3-Clause"
] | null | null | null | scopeprotocols/FIRFilter.cpp | pd0wm/scopehal | da5dd5a79cd24726ba9da4a9c6356e0b0b4c2dcc | [
"BSD-3-Clause"
] | null | null | null | /***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... | 31.402047 | 120 | 0.622701 |
f5ccb13a069bd4e6510be3c0edd2a7ea4508684d | 3,295 | cpp | C++ | test/performance/alphabet/alphabet_assign_char_benchmark.cpp | mr-c/seqan3 | f1975b614937c497e578a079180a1322442dde3a | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/performance/alphabet/alphabet_assign_char_benchmark.cpp | mr-c/seqan3 | f1975b614937c497e578a079180a1322442dde3a | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | test/performance/alphabet/alphabet_assign_char_benchmark.cpp | mr-c/seqan3 | f1975b614937c497e578a079180a1322442dde3a | [
"CC0-1.0",
"CC-BY-4.0"
] | null | null | null | // -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of th... | 37.873563 | 112 | 0.700759 |
f5cd8edcce6b2ab80301b10999ca540023b06dc7 | 28,923 | cxx | C++ | Interaction/Widgets/vtkPointHandleRepresentation3D.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | 1 | 2021-07-21T07:15:44.000Z | 2021-07-21T07:15:44.000Z | Interaction/Widgets/vtkPointHandleRepresentation3D.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | null | null | null | Interaction/Widgets/vtkPointHandleRepresentation3D.cxx | DmitrySemikin/vtk-mirror | 7e70ac8c84797c7603686bd9bf8030c2ad8f101f | [
"BSD-3-Clause"
] | 2 | 2020-03-24T14:09:05.000Z | 2021-09-17T09:30:26.000Z | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPointHandleRepresentation3D.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... | 32.136667 | 99 | 0.608097 |
f5cedba503219973d90e24eda157451a4a95d3c5 | 83,256 | cpp | C++ | runtime/variable.cpp | redm-pro/mLang | 67f12ecb9f8d451d2eeab1ed00e6e709ff52945d | [
"BSD-3-Clause"
] | null | null | null | runtime/variable.cpp | redm-pro/mLang | 67f12ecb9f8d451d2eeab1ed00e6e709ff52945d | [
"BSD-3-Clause"
] | null | null | null | runtime/variable.cpp | redm-pro/mLang | 67f12ecb9f8d451d2eeab1ed00e6e709ff52945d | [
"BSD-3-Clause"
] | null | null | null | /*
$Author = Sargis Ananyan;
$Corp = RedM Inc;
$Web = https://redm.pro/;
$Lincese = BSD 3;
$Name = mLang;
$Description = A programming language for web programming.;
*/
#pragma once
bool empty_bool __attribute__ ((weak));
int empty_int __attribute__ ((weak));
double empty_float __attribute__ ((weak));
string empty_st... | 23.255866 | 142 | 0.58576 |
f5cfafb744c7a053234516e2b4e10677edfc6c9f | 9,424 | cpp | C++ | src/models/bwc/stsu_data_istream.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 20 | 2017-07-07T06:07:30.000Z | 2022-03-09T12:00:57.000Z | src/models/bwc/stsu_data_istream.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 28 | 2017-07-07T06:08:27.000Z | 2022-03-09T12:09:23.000Z | src/models/bwc/stsu_data_istream.cpp | steptosky/3DsMax-X-Obj-Exporter | c70f5a60056ee71aba1569f1189c38b9e01d2f0e | [
"BSD-3-Clause"
] | 7 | 2018-01-24T19:43:22.000Z | 2020-01-06T00:05:40.000Z | /*
** Copyright(C) 2017, StepToSky
**
** 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... | 32.608997 | 106 | 0.463073 |
f5d718cde2194d572b700cd9ed350c21a449b747 | 17,638 | cpp | C++ | src/qt/blocknetquicksend.cpp | mraksoll4/scalaris1 | f6e677780f51d570ff1ad8177e003fb8936aacc0 | [
"MIT"
] | 2 | 2021-04-11T15:25:15.000Z | 2021-10-01T17:37:19.000Z | src/qt/blocknetquicksend.cpp | mraksoll4/scalaris1 | f6e677780f51d570ff1ad8177e003fb8936aacc0 | [
"MIT"
] | null | null | null | src/qt/blocknetquicksend.cpp | mraksoll4/scalaris1 | f6e677780f51d570ff1ad8177e003fb8936aacc0 | [
"MIT"
] | 5 | 2021-03-24T11:53:45.000Z | 2021-11-24T00:49:08.000Z | // Copyright (c) 2018-2019 The Blocknet developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/blocknetquicksend.h>
#include <qt/blocknetaddressbook.h>
#include <qt/blocknethdiv.h>
#include <qt/blockneticonbtn.... | 46.052219 | 141 | 0.688003 |
f5d736ca137cd0cc012a6c46249853388c41060f | 10,851 | cpp | C++ | src/tty_interface.cpp | lanza/fzy | b5a04d7789f84a55d05f683cc443739e8fcae5c7 | [
"MIT"
] | null | null | null | src/tty_interface.cpp | lanza/fzy | b5a04d7789f84a55d05f683cc443739e8fcae5c7 | [
"MIT"
] | null | null | null | src/tty_interface.cpp | lanza/fzy | b5a04d7789f84a55d05f683cc443739e8fcae5c7 | [
"MIT"
] | null | null | null | #include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../config.h"
#include "fzxx/match.h"
#include "fzxx/tty_interface.h"
static int isprint_unicode(char c) { return isprint(c) || c & (1 << 7); }
static int is_boundary(char c) { return ~c & (1 << 7) || c & (1 << 6); }
static void ... | 27.263819 | 79 | 0.61469 |
f5d75d5299d2004eb65463fa93108348b0cf7f4c | 20,819 | cpp | C++ | src/storage/data_table.cpp | hjhhsy120/terrier | c53e1ac9de629ec340c42e9797a7460fdf2a56dc | [
"MIT"
] | 1 | 2019-03-08T18:59:57.000Z | 2019-03-08T18:59:57.000Z | src/storage/data_table.cpp | LiuXiaoxuanPKU/terrier | 35916e9435201016903d8a01e3f587b8edb36f0b | [
"MIT"
] | 34 | 2019-03-21T20:47:59.000Z | 2019-05-17T06:06:46.000Z | src/storage/data_table.cpp | LiuXiaoxuanPKU/terrier | 35916e9435201016903d8a01e3f587b8edb36f0b | [
"MIT"
] | null | null | null | #include "storage/data_table.h"
#include <pthread.h>
#include <cstring>
#include <list>
#include <unordered_map>
#include "common/allocator.h"
#include "storage/block_access_controller.h"
#include "storage/storage_util.h"
#include "transaction/transaction_context.h"
#include "transaction/transaction_util.h"
namespace ... | 48.870892 | 120 | 0.706662 |
f5d9a478ce87317c90a39a2bb45891a397feaf34 | 14,016 | cpp | C++ | tilefetcher.cpp | ateijelo/steps | 85392492fd6011c7af8f2de1604abee6f6f4b9df | [
"Apache-2.0"
] | 1 | 2019-06-03T21:20:49.000Z | 2019-06-03T21:20:49.000Z | tilefetcher.cpp | ateijelo/steps | 85392492fd6011c7af8f2de1604abee6f6f4b9df | [
"Apache-2.0"
] | null | null | null | tilefetcher.cpp | ateijelo/steps | 85392492fd6011c7af8f2de1604abee6f6f4b9df | [
"Apache-2.0"
] | 1 | 2018-11-12T12:35:18.000Z | 2018-11-12T12:35:18.000Z | /*
* tilefetcher.cpp -- part of Steps, a simple maps app
*
* Copyright 2009-2016 Andy Teijelo <www.ateijelo.com>
*
* 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.ap... | 28.37247 | 116 | 0.560859 |
f5d9d030b9be8ddae444348af6c7a5ba2a530626 | 49,061 | cpp | C++ | Direct3D/ShadowMap/shadowmap.cpp | walbourn/directx-sdk-legacy-samples | 93e8cc554b5ecb5cd574a06071ed784b6cb73fc5 | [
"MIT"
] | 27 | 2021-03-01T23:50:39.000Z | 2022-03-04T03:27:17.000Z | Direct3D/ShadowMap/shadowmap.cpp | walbourn/directx-sdk-legacy-samples | 93e8cc554b5ecb5cd574a06071ed784b6cb73fc5 | [
"MIT"
] | 3 | 2021-03-02T00:39:56.000Z | 2021-12-02T19:50:03.000Z | Direct3D/ShadowMap/shadowmap.cpp | walbourn/directx-sdk-legacy-samples | 93e8cc554b5ecb5cd574a06071ed784b6cb73fc5 | [
"MIT"
] | 3 | 2021-03-29T16:23:54.000Z | 2022-03-05T08:35:05.000Z | //--------------------------------------------------------------------------------------
// File: ShadowMap.cpp
//
// Starting point for new Direct3D applications
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License (MIT).
//----------------------------------------------------------------... | 44.763686 | 128 | 0.573001 |
f5da2bde0c2c8159bbee2205fc934ba5da95351d | 18,998 | cpp | C++ | metric/n-api/crossfilter/ext/jsfeature_top_i64.cpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | 2 | 2019-12-03T17:08:04.000Z | 2021-08-25T05:06:29.000Z | metric/n-api/crossfilter/ext/jsfeature_top_i64.cpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | 1 | 2021-09-02T02:25:51.000Z | 2021-09-02T02:25:51.000Z | metric/n-api/crossfilter/ext/jsfeature_top_i64.cpp | Stepka/telegram_clustering_contest | 52a012af2ce821410caa98cba840364710eb4256 | [
"Apache-2.0"
] | null | null | null | /*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Copyright (c) 2019 Panda Team
*/
#include <node_api.h>
#include "jsfeature_top.hpp"
#include "utils.hpp"
template napi_valu... | 122.567742 | 140 | 0.793662 |
f5da61636291a496c1598e7b1bfba63cad7ea3ce | 1,970 | cpp | C++ | examples/Example5/Menu.cpp | hasaranga/RFC-Framework | 9c1881d412db6f9f7670b910a0918a631208cfd1 | [
"MIT"
] | 9 | 2017-10-02T08:15:50.000Z | 2021-08-09T21:29:46.000Z | examples/Example5/Menu.cpp | hasaranga/RFC-Framework | 9c1881d412db6f9f7670b910a0918a631208cfd1 | [
"MIT"
] | 1 | 2021-09-18T07:38:53.000Z | 2021-09-26T12:11:48.000Z | examples/Example5/Menu.cpp | hasaranga/RFC-Framework | 9c1881d412db6f9f7670b910a0918a631208cfd1 | [
"MIT"
] | 8 | 2017-10-02T13:21:29.000Z | 2021-07-30T09:35:31.000Z |
#include "../../amalgamated/rfc_amalgamated.h"
class MyWindow : public KFrame, public KMenuItemListener
{
protected:
KMenuBar menuBar;
KMenu mFile, mEdit, mHelp;
KMenuItem miOpen, miExit, miCut, miCopy, miPaste, miAbout;
public:
MyWindow()
{
this->SetText(L"My Window");
this->Create();
miOpen.SetText(L"... | 21.648352 | 100 | 0.706091 |
f5da84a4e5c245fc5410753b80f0f20e400a1a58 | 303 | cpp | C++ | Fun/fun_force_2_digits_cout.cpp | XuhuaHuang/EmbeddedProgramming | ce645e3993f105dbb9ed76d79f854c92e0578670 | [
"MIT"
] | 2 | 2020-09-16T20:16:27.000Z | 2020-09-23T18:10:28.000Z | Fun/fun_force_2_digits_cout.cpp | XuhuaHuang/EmbeddedProgramming | ce645e3993f105dbb9ed76d79f854c92e0578670 | [
"MIT"
] | null | null | null | Fun/fun_force_2_digits_cout.cpp | XuhuaHuang/EmbeddedProgramming | ce645e3993f105dbb9ed76d79f854c92e0578670 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main(void)
{
int numPrecision = 2;
cout.precision(numPrecision);
double a = 0;
int b = 1;
cout << "Value for \"double a\" is: " << fixed << a << endl;
cout << "Value for \"int b\" is: " /* << fixed */ << b << endl;
return 0;
}
| 15.15 | 64 | 0.577558 |