hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3a1c6f6e95f6544ea309810f31d4d1da239734b4 | 1,731 | hpp | C++ | src/standard/bits/DD_ReferenceCounter.hpp | iDingDong/libDDCPP-old | 841260fecc84330ff3bfffba7263f5318f0b4655 | [
"BSD-3-Clause"
] | 1 | 2018-06-01T03:29:34.000Z | 2018-06-01T03:29:34.000Z | src/standard/bits/DD_ReferenceCounter.hpp | iDingDong/libDDCPP-old | 841260fecc84330ff3bfffba7263f5318f0b4655 | [
"BSD-3-Clause"
] | null | null | null | src/standard/bits/DD_ReferenceCounter.hpp | iDingDong/libDDCPP-old | 841260fecc84330ff3bfffba7263f5318f0b4655 | [
"BSD-3-Clause"
] | null | null | null | // DDCPP/standard/bits/DD_ReferenceCounter.hpp
#ifndef DD_REFERENCE_COUNTER_HPP_INCLUDED_
# define DD_REFERENCE_COUNTER_HPP_INCLUDED_ 1
# include "DD_global_definitions.hpp"
DD_DETAIL_BEGIN_
struct ReferenceCounter {
public:
DD_ALIAS(ThisType, ReferenceCounter);
public:
DD_ALIAS(LengthType, ::DD::LengthType)... | 15.184211 | 66 | 0.770075 | iDingDong |
3a1e53ced0e4e6d5677074243e48f637c8336b95 | 389 | cpp | C++ | test/CodeGenCXX/address-space-of-this.cpp | matthewelse/clang | b3ac9db345ddce6397784517cd0c41529220ab8c | [
"Apache-2.0"
] | 793 | 2015-12-03T16:45:26.000Z | 2022-02-12T20:14:20.000Z | test/CodeGenCXX/address-space-of-this.cpp | matthewelse/clang | b3ac9db345ddce6397784517cd0c41529220ab8c | [
"Apache-2.0"
] | 219 | 2015-12-04T10:14:05.000Z | 2019-10-22T18:19:11.000Z | test/CodeGenCXX/address-space-of-this.cpp | matthewelse/clang | b3ac9db345ddce6397784517cd0c41529220ab8c | [
"Apache-2.0"
] | 241 | 2015-12-03T16:51:28.000Z | 2021-10-14T00:21:08.000Z | // RUN: %clang_cc1 %s -std=c++14 -triple=spir -emit-llvm -o - | FileCheck %s
// RUN: %clang_cc1 %s -std=c++17 -triple=spir -emit-llvm -o - | FileCheck %s
struct MyType {
MyType(int i) : i(i) {}
int i;
};
//CHECK: call void @_ZN6MyTypeC1Ei(%struct.MyType* addrspacecast (%struct.MyType addrspace(10)* @m to %struct.M... | 38.9 | 128 | 0.663239 | matthewelse |
3a1faf79a49428b4c07e39ee3b20059689e4b298 | 992 | cpp | C++ | Code/online_problems/codechef/BUILDB.cpp | Kevinjadia/Hacktoberfest_DSA_2021 | 08fe411a5359d4cf27a8004aecce291f1c4015de | [
"MIT"
] | 4 | 2021-10-22T02:44:57.000Z | 2021-11-08T12:21:41.000Z | Code/online_problems/codechef/BUILDB.cpp | Kevinjadia/Hacktoberfest_DSA_2021 | 08fe411a5359d4cf27a8004aecce291f1c4015de | [
"MIT"
] | 95 | 2021-10-21T21:16:28.000Z | 2021-11-02T13:32:00.000Z | Code/online_problems/codechef/BUILDB.cpp | Kevinjadia/Hacktoberfest_DSA_2021 | 08fe411a5359d4cf27a8004aecce291f1c4015de | [
"MIT"
] | 24 | 2021-10-22T02:42:05.000Z | 2021-10-31T16:34:36.000Z | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
long long n,r;
cin>>n;
cin>>r;
long long arr1[n],arr2[n];
for(long long i=0;i<n;i++)
{
cin>>arr1[i];
}
for(long long i=0;i<n;i++)
{
... | 18.036364 | 48 | 0.372984 | Kevinjadia |
3a2381a6feef0b1e2ee4cc37c366668b20ff1bd6 | 2,111 | cpp | C++ | src/utils/test/lock.std.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 149 | 2017-10-16T03:24:58.000Z | 2022-03-25T02:29:13.000Z | src/utils/test/lock.std.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 297 | 2017-10-19T03:23:34.000Z | 2022-03-17T08:00:12.000Z | src/utils/test/lock.std.cpp | acelyc111/rdsn | 298769147750167949af800b96d5b9dcdfab0aeb | [
"MIT"
] | 63 | 2017-10-19T01:55:27.000Z | 2022-03-09T11:09:00.000Z | /*
* The MIT License (MIT)
*
* Copyright (c) 2015 Microsoft Corporation
*
* -=- Robust Distributed System Nucleus (rDSN) -=-
*
* 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... | 34.048387 | 80 | 0.721459 | acelyc111 |
3a251cf8b33df88740c77ff1a81064a1549e37c1 | 664 | cpp | C++ | src/lib/AST/UnaryOperator.cpp | NCTU-Homework/compiler-hw4 | 343db48644e4a53759a602983aaf3a4030eeb986 | [
"MIT"
] | null | null | null | src/lib/AST/UnaryOperator.cpp | NCTU-Homework/compiler-hw4 | 343db48644e4a53759a602983aaf3a4030eeb986 | [
"MIT"
] | null | null | null | src/lib/AST/UnaryOperator.cpp | NCTU-Homework/compiler-hw4 | 343db48644e4a53759a602983aaf3a4030eeb986 | [
"MIT"
] | null | null | null | #include "AST/UnaryOperator.hpp"
#include "visitor/AstNodeVisitor.hpp"
UnaryOperatorNode::UnaryOperatorNode(const uint32_t line, const uint32_t col,
Operator op, ExpressionNode *p_operand)
: ExpressionNode{line, col}, op(op), operand(p_operand) {}
const char *UnaryOperatorNode... | 28.869565 | 77 | 0.71988 | NCTU-Homework |
3a262951bcbd671103af8e7d98cc382f61e583bd | 3,001 | cc | C++ | garnet/lib/ui/gfx/tests/compositor_unittest.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | null | null | null | garnet/lib/ui/gfx/tests/compositor_unittest.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | 5 | 2020-09-06T09:02:06.000Z | 2022-03-02T04:44:22.000Z | garnet/lib/ui/gfx/tests/compositor_unittest.cc | ZVNexus/fuchsia | c5610ad15208208c98693618a79c705af935270c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2018 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 <lib/sys/cpp/testing/component_context_provider.h>
#include <zircon/syscalls.h>
#include "garnet/lib/ui/gfx/tests/vk_session_test.h"
#include "gt... | 31.589474 | 99 | 0.736421 | zhangpf |
3a2da50fe195f8d35967c867c7fcb115d765edbf | 5,560 | hpp | C++ | contracts/relay.token/relay.token.hpp | eosforce/FORCEIO | b8dc334db53a66f8913027bc396eee852f6fe770 | [
"MIT"
] | 10 | 2019-01-17T11:56:40.000Z | 2019-12-23T11:08:13.000Z | contracts/relay.token/relay.token.hpp | eosforce/FORCEIO | b8dc334db53a66f8913027bc396eee852f6fe770 | [
"MIT"
] | null | null | null | contracts/relay.token/relay.token.hpp | eosforce/FORCEIO | b8dc334db53a66f8913027bc396eee852f6fe770 | [
"MIT"
] | 6 | 2019-04-24T11:16:02.000Z | 2020-11-29T05:41:07.000Z | //
// Created by fy on 2019-01-29.
//
#ifndef FORCEIO_CONTRACT_RELAY_TOKEN_HPP
#define FORCEIO_CONTRACT_RELAY_TOKEN_HPP
#pragma once
#include <eosiolib/eosio.hpp>
#include "force.relay/force.relay.hpp"
#include "sys.match/sys.match.hpp"
namespace relay {
using namespace eosio;
using std::string;
struct sys_b... | 26.990291 | 105 | 0.641187 | eosforce |
3a2f18573f8ddca071bdb7d440f6ee51806d1205 | 1,161 | hpp | C++ | myFileSystem_mem/include/superblock.hpp | Xiang-Pan/HUST_OS_CourseProject | c04a51dd71a30d6f3f1f760c3674ca5fabc29e5f | [
"MIT"
] | 4 | 2020-07-22T15:25:00.000Z | 2022-03-27T09:22:31.000Z | myFileSystem_mem/include/superblock.hpp | HoverWings/HUST_OS_CourseProject | c04a51dd71a30d6f3f1f760c3674ca5fabc29e5f | [
"MIT"
] | null | null | null | myFileSystem_mem/include/superblock.hpp | HoverWings/HUST_OS_CourseProject | c04a51dd71a30d6f3f1f760c3674ca5fabc29e5f | [
"MIT"
] | null | null | null | /* FileName: superblock.hpp
* Author: Hover
* E-Mail: hover@hust.edu.cn
* GitHub: HoverWings
* Description: superblock
*/
#ifndef _SUPERBLOCK_H_
#define _SUPERBLOCK_H_
#include "inode.hpp"
#include <fstream>
#include <list>
#include <map>
#include <string>
#include <vector>
#include <cstring>
#in... | 21.109091 | 67 | 0.622739 | Xiang-Pan |
3a2f94c29afe7266af07a00208752fe28f6dbf1a | 215 | cpp | C++ | cplusplus/variadics.cpp | offonrynk/hackerrank | 56f389187cab5ee93bac00c2c6ac9cb2ad0a0d58 | [
"MIT"
] | null | null | null | cplusplus/variadics.cpp | offonrynk/hackerrank | 56f389187cab5ee93bac00c2c6ac9cb2ad0a0d58 | [
"MIT"
] | null | null | null | cplusplus/variadics.cpp | offonrynk/hackerrank | 56f389187cab5ee93bac00c2c6ac9cb2ad0a0d58 | [
"MIT"
] | null | null | null | #include <iostream>
template <bool value> int reversed_binary_value()
{
return value;
}
template <bool a, bool b, bool... d> int reversed_binary_value()
{
return (reversed_binary_value<b, d...>() << 1) + a;
}
| 17.916667 | 64 | 0.674419 | offonrynk |
3a316b3f6cf2cb63eef6d56f1e44ef85db01c7d7 | 5,393 | hpp | C++ | Dependencies/xerces-c-src_2_8_0/include/xercesc/validators/common/AllContentModel.hpp | neonkingfr/wildogcad | 6d9798daa672d3ab293579439f38bb279fa376c7 | [
"BSD-3-Clause"
] | 11 | 2016-02-26T23:00:34.000Z | 2020-11-12T03:09:45.000Z | proj/vendors/xerces/include/xercesc/validators/common/AllContentModel.hpp | DSRCorporation/asdcplib-as02 | 018002ccc5d62716514921a14782446e8edc4f3a | [
"OpenSSL"
] | null | null | null | proj/vendors/xerces/include/xercesc/validators/common/AllContentModel.hpp | DSRCorporation/asdcplib-as02 | 018002ccc5d62716514921a14782446e8edc4f3a | [
"OpenSSL"
] | 1 | 2018-07-10T19:24:28.000Z | 2018-07-10T19:24:28.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 You under the Apache License, Version 2.0
* (the "License"); you may ... | 34.570513 | 87 | 0.575932 | neonkingfr |
3a35abe378de5385c0ca8d71446f0be43146accb | 6,813 | cpp | C++ | src/loop050.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 4 | 2016-11-07T12:50:14.000Z | 2020-04-30T19:48:05.000Z | src/loop050.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 1 | 2017-04-17T12:00:16.000Z | 2017-04-17T12:00:16.000Z | src/loop050.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | null | null | null |
#include "demoloop.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "graphics/shader.h"
using namespace std;
using namespace demoloop;
const uint32_t CYCLE_LENGTH = 10;
const static std::string shaderCode = R"===(
uniform mediump float cycle_ratio;
#define DEMOLOOP_M_PI 3.145... | 27.582996 | 102 | 0.577866 | TannerRogalsky |
3a37bdced5e0efee4020441b1398b40eafd176e2 | 1,797 | hpp | C++ | src/network/credentials_manager.hpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | src/network/credentials_manager.hpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | src/network/credentials_manager.hpp | Natureshadow/biboumi | b70136b96e579e8d38a30a298f885899cb80514c | [
"Zlib"
] | null | null | null | #pragma once
#include "biboumi.h"
#ifdef BOTAN_FOUND
#include <botan/credentials_manager.h>
#include <botan/certstor.h>
#include <botan/tls_client.h>
class TCPSocketHandler;
/**
* If the given cert isn’t valid, based on the given hostname
* and fingerprint, then throws the exception if it’s non-empty.
*
* Must... | 34.557692 | 116 | 0.734001 | Natureshadow |
3a37e87f2c3a5d9b482dfc4d8ee661fabb28abd8 | 98,005 | cc | C++ | diplomacy_research/proto/diplomacy_tensorflow/core/profiler/tfprof_options.pb.cc | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 39 | 2019-09-06T13:42:24.000Z | 2022-03-18T18:38:43.000Z | diplomacy_research/proto/diplomacy_tensorflow/core/profiler/tfprof_options.pb.cc | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 9 | 2019-09-19T22:35:32.000Z | 2022-02-24T18:04:57.000Z | diplomacy_research/proto/diplomacy_tensorflow/core/profiler/tfprof_options.pb.cc | wwongkamjan/dipnet_press | 787263c1b9484698904f525c8d78d0e333e1c0d9 | [
"MIT"
] | 8 | 2019-10-16T21:09:14.000Z | 2022-02-23T05:20:37.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: diplomacy_tensorflow/core/profiler/tfprof_options.proto
#include "diplomacy_tensorflow/core/profiler/tfprof_options.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/prot... | 45.711287 | 269 | 0.711984 | wwongkamjan |
3a39cfdc9dfa49dd4df7d185703759de58d8f167 | 3,845 | cpp | C++ | firmware/uvc_controller/mbed-os/drivers/source/PwmOut.cpp | davewhiiite/uvc | fd45223097eed5a824294db975b3c74aa5f5cc8f | [
"MIT"
] | 1 | 2021-06-12T14:54:07.000Z | 2021-06-12T14:54:07.000Z | firmware/uvc_controller/mbed-os/drivers/source/PwmOut.cpp | davewhiiite/uvc | fd45223097eed5a824294db975b3c74aa5f5cc8f | [
"MIT"
] | null | null | null | firmware/uvc_controller/mbed-os/drivers/source/PwmOut.cpp | davewhiiite/uvc | fd45223097eed5a824294db975b3c74aa5f5cc8f | [
"MIT"
] | null | null | null | /* mbed Microcontroller Library
* Copyright (c) 2006-2019 ARM Limited
* SPDX-License-Identifier: Apache-2.0
*
* 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.... | 22.354651 | 76 | 0.669961 | davewhiiite |
3a3b6b6d891e5a1c5f550069227dd999325afc22 | 6,457 | cpp | C++ | SCTK/src/asclite/test/alignment_test.cpp | IIP-Sogang/Audio-Visual-Speech-Recognition | bd03be91135acbc6162b83092d462b7fe71dd007 | [
"MIT"
] | 113 | 2018-11-20T06:00:39.000Z | 2022-03-29T06:01:55.000Z | SCTK/src/asclite/test/alignment_test.cpp | IIP-Sogang/Audio-Visual-Speech-Recognition | bd03be91135acbc6162b83092d462b7fe71dd007 | [
"MIT"
] | 28 | 2017-09-11T16:20:26.000Z | 2022-02-13T14:16:33.000Z | SCTK/src/asclite/test/alignment_test.cpp | IIP-Sogang/Audio-Visual-Speech-Recognition | bd03be91135acbc6162b83092d462b7fe71dd007 | [
"MIT"
] | 42 | 2017-09-06T14:47:09.000Z | 2022-03-04T19:41:21.000Z | /*
* ASCLITE
* Author: Jerome Ajot, Jon Fiscus, Nicolas Radde, Chris Laprun
*
* This software was developed at the National Institute of Standards and Technology by
* employees of the Federal Government in the course of their official duties. Pursuant
* to title 17 Section 105 of the United States Code this soft... | 33.630208 | 90 | 0.690878 | IIP-Sogang |
3a3c00a2e9e748161f51c2fe809691f2da6fc39f | 1,140 | cpp | C++ | TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 36 | 2015-01-10T07:27:33.000Z | 2022-03-07T03:32:08.000Z | TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 2 | 2018-08-13T07:30:51.000Z | 2019-02-25T03:04:31.000Z | TAO/orbsvcs/performance-tests/RTEvent/lib/RTEC_Initializer.cpp | cflowe/ACE | 5ff60b41adbe1772372d1a43bcc1f2726ff8f810 | [
"DOC"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | /**
* @file RTEC_Initializer.cpp
*
* $Id: RTEC_Initializer.cpp 91675 2010-09-08 19:09:19Z johnnyw $
*
* @author Carlos O'Ryan <coryan@uci.edu>
*/
#include "RTEC_Initializer.h"
#include "RTCORBA_Setup.h"
#include "orbsvcs/Event/EC_Event_Channel.h"
#include "orbsvcs/Event/EC_Default_Factory.h"
#include "orbsvcs/E... | 26.511628 | 65 | 0.659649 | cflowe |
3a3c737e177e79caa3dd9fb3ffa71b10e4190155 | 1,583 | hpp | C++ | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_policy.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 56 | 2019-11-07T01:57:38.000Z | 2021-06-07T21:09:52.000Z | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_policy.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 10 | 2020-07-27T01:59:55.000Z | 2021-03-02T02:17:04.000Z | EFI/CLOVER/kexts/Other/Lilu_v1.4.3-Debug.kext/Contents/Resources/Headers/kern_policy.hpp | zhujinle/Lenovo-yoga-c930-hackintosh | 679ec3efe7e63b102e5a2ad7a3f5a1cd48a949ca | [
"MIT"
] | 11 | 2020-07-10T07:03:08.000Z | 2021-05-14T06:44:19.000Z | //
// kern_policy.hpp
// Lilu
//
// Copyright © 2016-2017 vit9696. All rights reserved.
//
#ifndef kern_policy_hpp
#define kern_policy_hpp
#include <Headers/kern_config.hpp>
#include <sys/types.h>
#include <sys/proc.h>
#include <Library/security/mac_framework.h>
#include <Library/security/mac_policy.h>
#include ... | 21.106667 | 96 | 0.689829 | zhujinle |
3a3e2f2b818c38b1c01f390ef641f9e3b0f0b91b | 1,066 | cpp | C++ | Cplusplus_Study/array_vector.cpp | SuperBruceJia/paper-reading | ccfa34706fd525b1c47ec2476896efbd020c7210 | [
"MIT"
] | 11 | 2020-11-13T02:47:56.000Z | 2022-03-25T06:13:06.000Z | Cplusplus_Study/array_vector.cpp | SuperBruceJia/paper-reading | ccfa34706fd525b1c47ec2476896efbd020c7210 | [
"MIT"
] | null | null | null | Cplusplus_Study/array_vector.cpp | SuperBruceJia/paper-reading | ccfa34706fd525b1c47ec2476896efbd020c7210 | [
"MIT"
] | 2 | 2021-10-10T13:42:20.000Z | 2021-12-14T09:59:23.000Z | #include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
char vowels [] {'a', 'e','i', 'w', 'r'};
cout << "The first vowels is " << vowels[0] << endl;
cout << "The last vowels is " << vowels[4] << endl;
double hi_temps [] {90.1, 89.7, 77.5, 81.6};
cout << "The first hi... | 29.611111 | 68 | 0.532833 | SuperBruceJia |
3a4020e072bbf5b9b13187ab9910d8a19da1ed8d | 13,603 | cc | C++ | cc/resources/picture_pile_impl.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | cc/resources/picture_pile_impl.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | cc/resources/picture_pile_impl.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 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 <algorithm>
#include <limits>
#include "base/debug/trace_event.h"
#include "cc/base/region.h"
#include "cc/debug/benchmark_instrumentation.h"
#i... | 34.613232 | 80 | 0.694553 | kurli |
3a44c033ac66b7f048f5ccfb7eb6185314beadf3 | 1,180 | cpp | C++ | csci515/src/practice/Rectangle.cpp | atreyasinha/school | 356458e7e281b9e0458830600f97afc2c4a47088 | [
"MIT"
] | null | null | null | csci515/src/practice/Rectangle.cpp | atreyasinha/school | 356458e7e281b9e0458830600f97afc2c4a47088 | [
"MIT"
] | null | null | null | csci515/src/practice/Rectangle.cpp | atreyasinha/school | 356458e7e281b9e0458830600f97afc2c4a47088 | [
"MIT"
] | null | null | null | // updated Thu Apr 25 21:55:03 PDT 2019
#include <cassert>
#include <GL/gl.h>
#include "Rectangle.h"
Rectangle::Rectangle(double red, double green, double blue)
: Game_object(red, green, blue, RECTANGLE)
{
Register("rotation", 0.0);
}
/* virtual */ void Rectangle::build_display_list()
{
assert(m_display_list);... | 30.25641 | 93 | 0.676271 | atreyasinha |
3a459516d778f606b423ddee514d5605a0ac6096 | 15,475 | cxx | C++ | Source/ImageTools/ResampleVolumesToBeIsotropic/source/ResampleVolumesToBeIsotropic.cxx | SCIInstitute/ShapeWorks-Prep | 7a3cb1eadf84c93e85874d9da230bb5eebb09bf3 | [
"MIT"
] | null | null | null | Source/ImageTools/ResampleVolumesToBeIsotropic/source/ResampleVolumesToBeIsotropic.cxx | SCIInstitute/ShapeWorks-Prep | 7a3cb1eadf84c93e85874d9da230bb5eebb09bf3 | [
"MIT"
] | 1 | 2020-08-04T22:37:34.000Z | 2020-08-05T06:17:43.000Z | Source/ImageTools/ResampleVolumesToBeIsotropic/source/ResampleVolumesToBeIsotropic.cxx | SCIInstitute/ShapeWorks-Prep | 7a3cb1eadf84c93e85874d9da230bb5eebb09bf3 | [
"MIT"
] | null | null | null |
#include "itkImage.h"
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkResampleImageFilter.h"
#include "itkIdentityTransform.h"
#include "itkAntiAliasBinaryImageFilter.h"
#include "itkImageRegionIterator.h"
#include "itkChangeInformationImageFilter.h"
#include "string.h"
#include "itkBSplin... | 42.166213 | 257 | 0.644911 | SCIInstitute |
3a4c78ac435cd30a3fef99b13b1afeeb82e2d4e0 | 15,981 | cpp | C++ | software/controller/lib/hal/i2c.cpp | RespiraWorks/Ventilator | 2b431b96d988a5d88cc60525470277757c2b88f4 | [
"Apache-2.0"
] | 47 | 2020-07-05T03:06:25.000Z | 2022-03-14T16:59:24.000Z | software/controller/lib/hal/i2c.cpp | RespiraWorks/Ventilator | 2b431b96d988a5d88cc60525470277757c2b88f4 | [
"Apache-2.0"
] | 545 | 2020-07-01T22:25:42.000Z | 2022-03-31T04:07:28.000Z | software/controller/lib/hal/i2c.cpp | RespiraWorks/Ventilator | 2b431b96d988a5d88cc60525470277757c2b88f4 | [
"Apache-2.0"
] | 19 | 2020-07-16T18:48:28.000Z | 2022-02-09T10:20:21.000Z | /* Copyright 2020, RespiraWorks
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 writing, software
d... | 34.969365 | 91 | 0.686315 | RespiraWorks |
3a4e2c0d89ad2020520c1ba26d2a9d85000f0b7d | 309 | cpp | C++ | tools/pathanalyzer/tests/independent_ite.cpp | Trass3r/pharos | adeb128aca418696d03889daadc33c1f17ceff90 | [
"RSA-MD"
] | 3 | 2015-07-15T08:43:56.000Z | 2021-02-28T17:53:52.000Z | tools/pathanalyzer/tests/independent_ite.cpp | sei-ccohen/pharos | 78d08494a5c0bffff3789cae7acc538303b1926c | [
"RSA-MD"
] | null | null | null | tools/pathanalyzer/tests/independent_ite.cpp | sei-ccohen/pharos | 78d08494a5c0bffff3789cae7acc538303b1926c | [
"RSA-MD"
] | null | null | null | // Copyright 2019 Carnegie Mellon University. See LICENSE file for terms.
#include "test.hpp"
int main() {
path_start();
int n=INT_RAND, k=INT_RAND, j=INT_RAND;
int x=0;
if ( n == 0 ) {
x++;
}
if (k == 0) {
x++;
}
if (j == 0) {
x++;
}
if (x == 3) {
path_goal();
}
}
| 12.875 | 74 | 0.495146 | Trass3r |
3a521542ae98bdc5e7ffce1afcd79026d128886c | 7,124 | cpp | C++ | src/condor_utils/hibernator.tools.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 1 | 2017-02-13T01:25:34.000Z | 2017-02-13T01:25:34.000Z | src/condor_utils/hibernator.tools.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 1 | 2021-04-06T04:19:40.000Z | 2021-04-06T04:19:40.000Z | src/condor_utils/hibernator.tools.cpp | zhangzhehust/htcondor | e07510d62161f38fa2483b299196ef9a7b9f7941 | [
"Apache-2.0"
] | 2 | 2016-05-24T17:12:13.000Z | 2017-02-13T01:25:35.000Z | /***************************************************************
*
* Copyright (C) 1990-2008, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... | 25.905455 | 92 | 0.643739 | zhangzhehust |
3a52b2a578ca59420a71cd1263fc45435d0b181a | 1,263 | cpp | C++ | erts/emulator/asmjit/arm/a64builder.cpp | williamthome/otp | c4f24d6718ac56c431f0fccf240c5b15482792ed | [
"Apache-2.0"
] | null | null | null | erts/emulator/asmjit/arm/a64builder.cpp | williamthome/otp | c4f24d6718ac56c431f0fccf240c5b15482792ed | [
"Apache-2.0"
] | null | null | null | erts/emulator/asmjit/arm/a64builder.cpp | williamthome/otp | c4f24d6718ac56c431f0fccf240c5b15482792ed | [
"Apache-2.0"
] | 2 | 2015-10-18T22:36:46.000Z | 2022-01-26T14:01:57.000Z | // This file is part of AsmJit project <https://asmjit.com>
//
// See asmjit.h or LICENSE.md for license and copyright information
// SPDX-License-Identifier: Zlib
#include "../core/api-build_p.h"
#if !defined(ASMJIT_NO_AARCH64) && !defined(ASMJIT_NO_BUILDER)
#include "../arm/a64assembler.h"
#include "../arm/a64build... | 24.288462 | 67 | 0.673001 | williamthome |
3a52b7904a03a77438d098f06844a64022241da5 | 4,465 | cc | C++ | src/bin/convert-ali.cc | jxzhanggg/kaldi-trunk | 03fbab26e5714a990e1b6dee9475d4a282a42ccc | [
"Apache-2.0"
] | 319 | 2016-10-24T23:08:04.000Z | 2022-03-08T02:36:51.000Z | src/bin/convert-ali.cc | jxzhanggg/kaldi-trunk | 03fbab26e5714a990e1b6dee9475d4a282a42ccc | [
"Apache-2.0"
] | 18 | 2017-01-12T12:08:07.000Z | 2020-06-18T07:37:20.000Z | src/bin/convert-ali.cc | jxzhanggg/kaldi-trunk | 03fbab26e5714a990e1b6dee9475d4a282a42ccc | [
"Apache-2.0"
] | 87 | 2016-10-25T04:39:48.000Z | 2021-12-24T07:47:31.000Z | // bin/convert-ali.cc
// Copyright 2009-2011 Microsoft Corporation
// 2013 Johns Hopkins University (author: Daniel Povey)
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in com... | 36.300813 | 86 | 0.644345 | jxzhanggg |
3a53f1275b70afb6575f74ab168e6b3406d7aff7 | 7,629 | cpp | C++ | NxS Info Tool Source/nxstabpages.cpp | saivert/winamp-plugins | 5dae16e80bb63e3de258b4279c444bf2434de564 | [
"MIT"
] | 3 | 2019-06-14T12:03:23.000Z | 2022-02-12T18:15:38.000Z | NxS Info Tool Source/nxstabpages.cpp | saivert/winamp-plugins | 5dae16e80bb63e3de258b4279c444bf2434de564 | [
"MIT"
] | null | null | null | NxS Info Tool Source/nxstabpages.cpp | saivert/winamp-plugins | 5dae16e80bb63e3de258b4279c444bf2434de564 | [
"MIT"
] | null | null | null | /* NxS Tabpages - written by Saivert */
//#include "StdAfx.h"
#include "nxstabpages.h"
NxS_TabPages::~NxS_TabPages()
{
Clear();
}
HWND NxS_TabPages::SetTabCtrl(HWND NewTabCtrl)
{
HWND tmp;
tmp = m_hwTab;
if (IsWindow(NewTabCtrl))
{
if (GetCount()>0)
TabCtrl_DeleteAllItems(m_hwTab);
m_hwTa... | 23.048338 | 102 | 0.661555 | saivert |
3a5770ed7e9e6ae6bd585b7832f2b8c092249fa0 | 2,525 | hpp | C++ | src/lib/optimizer/strategy/abstract_rule.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 583 | 2015-01-10T00:55:32.000Z | 2022-03-25T12:24:30.000Z | src/lib/optimizer/strategy/abstract_rule.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 1,573 | 2015-01-07T15:47:22.000Z | 2022-03-31T11:48:03.000Z | src/lib/optimizer/strategy/abstract_rule.hpp | mrcl-tst/hyrise | eec50b39de9f530b0a1732ceb5822b7222f3fe17 | [
"MIT"
] | 145 | 2015-03-09T16:26:07.000Z | 2022-02-15T12:53:23.000Z | #pragma once
#include <memory>
#include <string>
#include <unordered_set>
#include <vector>
namespace opossum {
class AbstractCardinalityEstimator;
class AbstractCostEstimator;
class AbstractLQPNode;
class LogicalPlanRootNode;
class LQPSubqueryExpression;
class AbstractRule {
public:
virtual ~AbstractRule() = de... | 40.079365 | 120 | 0.726733 | mrcl-tst |
3a5ac902c963d1d7d4d5174d9dc0c7e5ea6c8491 | 122 | hxx | C++ | src/Providers/UNIXProviders/SwapSpaceCheck/UNIX_SwapSpaceCheck_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/SwapSpaceCheck/UNIX_SwapSpaceCheck_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/SwapSpaceCheck/UNIX_SwapSpaceCheck_AIX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_AIX
#ifndef __UNIX_SWAPSPACECHECK_PRIVATE_H
#define __UNIX_SWAPSPACECHECK_PRIVATE_H
#endif
#endif
| 10.166667 | 39 | 0.844262 | brunolauze |
3a5acce5b031d3cae5934147f13a40e54db48860 | 1,504 | cpp | C++ | Source/modio/Private/BlueprintCallbackProxies/CallbackProxy_GetAllModFiles.cpp | rproepp/UE4Plugin | fea28dd683bce081a57f3346c74c3fee26e76ace | [
"MIT"
] | 12 | 2021-03-26T07:49:10.000Z | 2022-03-30T10:24:24.000Z | Source/modio/Private/BlueprintCallbackProxies/CallbackProxy_GetAllModFiles.cpp | colorstheforce/modio-ue4 | 374241e232269398465cd659b41488933ba42a39 | [
"MIT"
] | 2 | 2021-07-15T16:15:33.000Z | 2021-11-14T09:18:17.000Z | Source/modio/Private/BlueprintCallbackProxies/CallbackProxy_GetAllModFiles.cpp | colorstheforce/modio-ue4 | 374241e232269398465cd659b41488933ba42a39 | [
"MIT"
] | 2 | 2021-06-11T21:45:56.000Z | 2022-03-18T06:30:00.000Z | // Copyright 2020 modio. All Rights Reserved.
// Released under MIT.
#include "BlueprintCallbackProxies/CallbackProxy_GetAllModFiles.h"
#include "ModioSubsystem.h"
#include "Engine/Engine.h"
UCallbackProxy_GetAllModfiles::UCallbackProxy_GetAllModfiles(const FObjectInitializer& ObjectInitializer)
: Super(ObjectIniti... | 30.08 | 143 | 0.791888 | rproepp |
3a5d42c70bcd6b24b4896625c41a4ff2801ebcd3 | 2,414 | hpp | C++ | include/VFSPP/core.hpp | asarium/vfspp | 854af7fdef8b8f72629c81fae5f2404b572d490d | [
"MIT"
] | 5 | 2015-03-27T02:40:12.000Z | 2018-12-11T02:58:04.000Z | include/VFSPP/core.hpp | asarium/vfspp | 854af7fdef8b8f72629c81fae5f2404b572d490d | [
"MIT"
] | null | null | null | include/VFSPP/core.hpp | asarium/vfspp | 854af7fdef8b8f72629c81fae5f2404b572d490d | [
"MIT"
] | 2 | 2016-08-22T09:42:59.000Z | 2020-07-04T20:18:59.000Z | #pragma once
#include <string>
#include <vector>
#include <boost/smart_ptr.hpp>
#include <boost/algorithm/string.hpp>
#include "vfspp_compiler_detection.h"
#include "vfspp_export.h"
namespace vfspp
{
class IFileSystemEntry;
typedef std::string string_type;
typedef boost::shared_ptr<IFileSystemEntry> FileEntryP... | 20.116667 | 101 | 0.707125 | asarium |
3a5d555a8ef076a4c95005f21f6902e022895a1f | 19,398 | cc | C++ | chrome/browser/ash/login/app_mode/kiosk_launch_controller_browsertest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2020-10-18T02:33:40.000Z | 2020-10-18T02:33:40.000Z | chrome/browser/ash/login/app_mode/kiosk_launch_controller_browsertest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2021-05-17T16:28:52.000Z | 2021-05-21T22:42:22.000Z | chrome/browser/ash/login/app_mode/kiosk_launch_controller_browsertest.cc | DamieFC/chromium | 54ce2d3c77723697efd22cfdb02aea38f9dfa25c | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/strings/strcat.h"
#include "chrome/browser/ash/app_mode/kiosk_app_manager.h"
#include "chrome/browser/ash/app_mode/kiosk_app_types.h"
#incl... | 40.4125 | 89 | 0.74982 | DamieFC |
3a5e0b8fbebf28c8fb4082643cda8428bc575d82 | 744 | cpp | C++ | books/techno/cpp/__intermediate/effective_modern_cpp_s_meyers/code/ch_3-MOVING_TO_MODERN_C++/item_15-use_constexpr_whenever_possible/case_5-constexpr_c++11/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | 1 | 2017-05-04T08:23:46.000Z | 2017-05-04T08:23:46.000Z | books/techno/cpp/__intermediate/effective_modern_cpp_s_meyers/code/ch_3-MOVING_TO_MODERN_C++/item_15-use_constexpr_whenever_possible/case_5-constexpr_c++11/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | books/techno/cpp/__intermediate/effective_modern_cpp_s_meyers/code/ch_3-MOVING_TO_MODERN_C++/item_15-use_constexpr_whenever_possible/case_5-constexpr_c++11/main.cpp | ordinary-developer/lin_education | 13d65b20cdbc3e5467b2383e5c09c73bbcdcb227 | [
"MIT"
] | null | null | null | class Point {
public:
constexpr Point(double xVal = 0, double yVal = 0) noexcept
: x(xVal), y(yVal) { }
constexpr double xValue() const noexcept { return x; }
constexpr double yValue() const noexcept { return y; }
void setX(double newX) noexcept { x = newX; }
... | 25.655172 | 70 | 0.547043 | ordinary-developer |
3a5e9c5955d341271c7599f69957846aac11979a | 6,847 | hpp | C++ | include/cube.hpp | xyproto/spheremover | 174b6ec84472e03cad240376e433dc65da522f83 | [
"MIT"
] | 2 | 2020-12-13T20:45:37.000Z | 2020-12-14T07:56:15.000Z | include/cube.hpp | xyproto/spheremover | 174b6ec84472e03cad240376e433dc65da522f83 | [
"MIT"
] | null | null | null | include/cube.hpp | xyproto/spheremover | 174b6ec84472e03cad240376e433dc65da522f83 | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include <iomanip>
#include <limits>
#include <sstream>
#include <string>
#include <vector>
#include "points.hpp"
#include "vec3.hpp"
using namespace std::string_literals;
// Cube has a position, a width (x), a height (y) and a depth (z)
class Cube {
protected:
const Vec3 m_pos; //... | 26.642023 | 94 | 0.595735 | xyproto |
3a6076681f32c7e0ff074420433601df4c840244 | 1,215 | cpp | C++ | src/core/Processor.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 1 | 2018-10-19T18:00:19.000Z | 2018-10-19T18:00:19.000Z | src/core/Processor.cpp | ASxa86/azule | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | 7 | 2019-06-13T00:48:55.000Z | 2020-05-05T00:18:42.000Z | src/core/Processor.cpp | ASxa86/AGE | 9bf89dfc5a80f296b02edd3ac608d9a90e4ea26b | [
"MIT"
] | null | null | null | #include <azule/core/Processor.h>
#include <azule/utilities/PimplImpl.h>
using namespace azule;
class Processor::Impl
{
public:
std::vector<std::function<void(std::chrono::microseconds)>> fixedFunctions;
std::vector<std::function<void(std::chrono::microseconds)>> variableFunctions;
std::vector<std::function<void(s... | 20.25 | 92 | 0.723457 | ASxa86 |
3a611f0e25da9757510cd0d85febd4c131a8df8c | 3,793 | cc | C++ | src/baldr/compression_utils.cc | mixvit/valhalla | 65d56caf85103f267452e7b79e49ec66a9bf480e | [
"MIT"
] | 1 | 2020-01-12T21:14:45.000Z | 2020-01-12T21:14:45.000Z | src/baldr/compression_utils.cc | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 3 | 2020-08-24T18:48:12.000Z | 2021-01-05T21:18:44.000Z | src/baldr/compression_utils.cc | Bolaxax/valhalla | f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb | [
"MIT"
] | 1 | 2021-01-24T16:46:01.000Z | 2021-01-24T16:46:01.000Z | #include "baldr/compression_utils.h"
namespace valhalla {
namespace baldr {
/* Deflates data with gzip or zlib wrapper
* @param src_func function which modifies the stream to read more input
* @param dst_func function which modifies the stream to write more output
* @param level what compression level to use... | 30.344 | 99 | 0.627472 | mixvit |
3a61736a725e8c08f3f43de560bde183998f7e7d | 9,905 | cpp | C++ | src/utils2d/axisalignedboundingbox2d.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | 2 | 2020-05-08T20:27:14.000Z | 2021-01-21T10:28:19.000Z | src/utils2d/axisalignedboundingbox2d.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | null | null | null | src/utils2d/axisalignedboundingbox2d.cpp | AlessandroParrotta/parrlib | d1679ee8a7cff7d14b2d93e898ed58fecff13159 | [
"MIT"
] | 1 | 2020-05-08T20:27:16.000Z | 2020-05-08T20:27:16.000Z | #include <parrlib/utils2d/AxisAlignedBoundingBox2D.h>
#include <iostream>
#include <parrlib/Matrix3f.h>
#include <parrlib/otherutil.h>
#include <parrlib/stringutils.h>
AxisAlignedBoundingBox2D::AxisAlignedBoundingBox2D(){}
//AxisAlignedBoundingBox2D::AxisAlignedBoundingBox2D(float v) { vmax = v; vmin = v; }
AxisAlig... | 52.407407 | 156 | 0.713074 | AlessandroParrotta |
3a61efccacd3085e4acf1b2c007aa4dd998acc73 | 1,982 | cpp | C++ | src/game.cpp | kvbc/space_shooter | 6e9e689d23c5b8570fb791ace938eab09d1b477b | [
"MIT"
] | 1 | 2022-03-14T09:35:11.000Z | 2022-03-14T09:35:11.000Z | src/game.cpp | kvbc/space_shooter | 6e9e689d23c5b8570fb791ace938eab09d1b477b | [
"MIT"
] | null | null | null | src/game.cpp | kvbc/space_shooter | 6e9e689d23c5b8570fb791ace938eab09d1b477b | [
"MIT"
] | null | null | null | #include <windows.h>
#include <thread>
#include "game.h"
#include "particles.h"
#include "math.h"
#define pressed(c) GetAsyncKeyState(c)
void Game::update() {
Option BSIZE_X = value(m_op[OP_BSIZE_X]);
Option BSIZE_Y = value(m_op[OP_BSIZE_Y]);
Option PSPEED = value(m_op[OP_PSPEED]);
if(m_plr.heal... | 22.781609 | 96 | 0.573663 | kvbc |
3a68688cd7a6ef9505f3322babca5e768d9c8691 | 3,377 | cpp | C++ | src/PBN.cpp | lanctot/dds | 06c1b31795ca2db2f268ea81a1029b03c8c37872 | [
"Apache-2.0"
] | 93 | 2015-01-23T01:56:02.000Z | 2022-02-21T22:56:41.000Z | src/PBN.cpp | lanctot/dds | 06c1b31795ca2db2f268ea81a1029b03c8c37872 | [
"Apache-2.0"
] | 57 | 2015-01-15T15:01:01.000Z | 2021-06-25T08:36:19.000Z | src/PBN.cpp | online-bridge-hackathon/libdds | 19db9cf99bee85074884f628cdd5a5faf79bc766 | [
"Apache-2.0"
] | 76 | 2015-04-11T10:22:47.000Z | 2022-03-29T09:51:03.000Z | /*
DDS, a bridge double dummy solver.
Copyright (C) 2006-2014 by Bo Haglund /
2014-2018 by Bo Haglund & Soren Hein.
See LICENSE and README.
*/
#include "dds.h"
#include "PBN.h"
int IsCard(const char cardChar);
int ConvertFromPBN(
char const * dealBuff,
unsigned int remainCards[DDS_HANDS][DDS_SUIT... | 18.761111 | 70 | 0.472017 | lanctot |
3a6b6c6d2c0446026e2c2790687e55e92977cdb7 | 25,928 | cc | C++ | src/clustering/administration/auth/permissions_artificial_table_backend.cc | zadcha/rethinkdb | bb4f5cc28242dc1e29e9a46a8a931ec54420070c | [
"Apache-2.0"
] | 21,684 | 2015-01-01T03:42:20.000Z | 2022-03-30T13:32:44.000Z | src/clustering/administration/auth/permissions_artificial_table_backend.cc | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 4,067 | 2015-01-01T00:04:51.000Z | 2022-03-30T13:42:56.000Z | src/clustering/administration/auth/permissions_artificial_table_backend.cc | RethonkDB/rethonkdb | 8c9c1ddc71b1b891fdb8aad7ca5891fc036b80ee | [
"Apache-2.0"
] | 1,901 | 2015-01-01T21:05:59.000Z | 2022-03-21T08:14:25.000Z | // iopyright 2010-2015 RethinkDB, all rights reserved.
#include "clustering/administration/auth/permissions_artificial_table_backend.hpp"
#include "errors.hpp"
#include <boost/algorithm/string/join.hpp>
#include "clustering/administration/artificial_reql_cluster_interface.hpp"
#include "clustering/administration/auth... | 38.073421 | 94 | 0.523295 | zadcha |
3a6c3309915e86f8f0e6a5f15317d7c7aea24d23 | 3,336 | cpp | C++ | src/logger_asynchronous.cpp | babidev/logging | f53db4cbdd5ed831dad0b673752d4bef7629eb98 | [
"BSD-3-Clause"
] | null | null | null | src/logger_asynchronous.cpp | babidev/logging | f53db4cbdd5ed831dad0b673752d4bef7629eb98 | [
"BSD-3-Clause"
] | null | null | null | src/logger_asynchronous.cpp | babidev/logging | f53db4cbdd5ed831dad0b673752d4bef7629eb98 | [
"BSD-3-Clause"
] | null | null | null | #include "logging/logger_asynchronous.h"
#include <chrono>
#include "logging/manager.h"
namespace logging {
logger_asynchronous::logger_asynchronous()
: state_{static_cast<unsigned>(state::off)}
{
start();
}
logger_asynchronous::~logger_asynchronous()
{
stop();
}
void logger_asynchronous::start()
{
unsigne... | 29.263158 | 81 | 0.66247 | babidev |
3a6f1f3377a6124cde08d55a6491c55741a1e3ee | 45,547 | cpp | C++ | Source/JavaScriptCore/runtime/ObjectConstructor.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 6 | 2021-07-05T16:09:39.000Z | 2022-03-06T22:44:42.000Z | Source/JavaScriptCore/runtime/ObjectConstructor.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | 7 | 2022-03-15T13:25:39.000Z | 2022-03-15T13:25:44.000Z | Source/JavaScriptCore/runtime/ObjectConstructor.cpp | jacadcaps/webkitty | 9aebd2081349f9a7b5d168673c6f676a1450a66d | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
* Copyright (C) 2008-2019 Apple Inc. All rights reserved.
*
* 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
*... | 44.873892 | 203 | 0.687092 | jacadcaps |
3a6ff74e04828bc6bcb690735b7aec220f1e3a1b | 29,800 | cpp | C++ | SOURCES/graphics/bspbuild/mgif.cpp | IsraelyFlightSimulator/Negev-Storm | 86de63e195577339f6e4a94198bedd31833a8be8 | [
"Unlicense"
] | 1 | 2021-02-19T06:06:31.000Z | 2021-02-19T06:06:31.000Z | src/graphics/bspbuild/mgif.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | null | null | null | src/graphics/bspbuild/mgif.cpp | markbb1957/FFalconSource | 07b12e2c41a93fa3a95b912a2433a8056de5bc4d | [
"BSD-2-Clause"
] | 2 | 2019-08-20T13:35:13.000Z | 2021-04-24T07:32:04.000Z | #include <mgapiall.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <stddef.h>
#include <math.h>
static int lasterr = 0;
static void Normalize (double *xp, double *yp, double *zp)
{
// normalize
double x = *xp, y = *yp, z = *zp;
double mag = sqrt(x*x + y*y + z*z);
x /= mag;... | 22.887865 | 105 | 0.61255 | IsraelyFlightSimulator |
3a703e47399996e93a085ff59daccde6fa8c585e | 459 | hpp | C++ | net/include/HttpHeaderConnection.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 27 | 2019-04-27T00:51:22.000Z | 2022-03-30T04:05:44.000Z | net/include/HttpHeaderConnection.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 9 | 2020-05-03T12:17:50.000Z | 2021-10-15T02:18:47.000Z | net/include/HttpHeaderConnection.hpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 1 | 2019-04-16T01:45:36.000Z | 2019-04-16T01:45:36.000Z | #ifndef __OBOTCHA_HTTP_HEADER_CONNECTION_HPP__
#define __OBOTCHA_HTTP_HEADER_CONNECTION_HPP__
#include "Object.hpp"
#include "StrongPointer.hpp"
#include "String.hpp"
#include "ArrayList.hpp"
namespace obotcha {
DECLARE_CLASS(HttpHeaderConnection) {
public:
_HttpHeaderConnection();
_HttpHeaderConnection(St... | 14.34375 | 46 | 0.738562 | wangsun1983 |
3a734b81f8873d428f3eb78e2aee8bc25cbd315d | 2,026 | hpp | C++ | src/xf86drmMode.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | 128 | 2015-01-07T19:47:09.000Z | 2022-01-22T19:42:14.000Z | src/xf86drmMode.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | null | null | null | src/xf86drmMode.hpp | dafrito/luacxx | 278bf8a7c6664536ea7f1dd1f59d35b6fb8d2dad | [
"MIT"
] | 24 | 2015-01-07T19:47:10.000Z | 2022-01-25T17:42:37.000Z | /*
xf86drmMode.h uses the following license:
* Copyright (c) 2007-2008 Tungsten Graphics, Inc., Cedar Park, Texas.
* Copyright (c) 2007-2008 Dave Airlie <airlied@linux.ie>
* Copyright (c) 2007-2008 Jakob Bornecrantz <wallbraker@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining... | 38.226415 | 79 | 0.794176 | dafrito |
3a749fb516e9de87ac9e1fc40f6eaf6e47a18659 | 3,256 | cpp | C++ | Mesh.cpp | miky-kr5/OGL4-Instanced-Perf | c1db44ceb5f9be720c9f75e254275f5a9457309b | [
"BSD-2-Clause"
] | null | null | null | Mesh.cpp | miky-kr5/OGL4-Instanced-Perf | c1db44ceb5f9be720c9f75e254275f5a9457309b | [
"BSD-2-Clause"
] | null | null | null | Mesh.cpp | miky-kr5/OGL4-Instanced-Perf | c1db44ceb5f9be720c9f75e254275f5a9457309b | [
"BSD-2-Clause"
] | null | null | null | #include "Mesh.h"
Mesh::Mesh()
{
}
Mesh::~Mesh()
{
Vertexs.clear();
Normals.clear();
Uvs.clear();
Objects.clear();
}
void Mesh::setName(std::string name){ Name = name; }
std::string* Mesh::getName(){ return &Name; }
void Mesh::AddVertex(float x, float y, float z)
{
glm::vec3 vertex(x, ... | 23.092199 | 210 | 0.636364 | miky-kr5 |
b9198bf3a63ba8bacd1b900e3415c97b43e10b6c | 667 | hpp | C++ | library/cgp/containers/buffer_stack/buffer_stack.hpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | null | null | null | library/cgp/containers/buffer_stack/buffer_stack.hpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | 2 | 2022-03-03T16:34:03.000Z | 2022-03-20T13:08:56.000Z | library/cgp/containers/buffer_stack/buffer_stack.hpp | drohmer/CGP | 3e7651649320d0bff19394ecd9546e872802c3e7 | [
"MIT"
] | null | null | null | #pragma once
namespace cgp
{
/** Base class for small fixed-size vectors (vec3, mat3, etc.).
* buffer_stack structure is a generic fixed-size vector, essentially equivalent to a std::array.
* In addition to std::array syntax, buffer_stack provides extra convenient functions (similar to buffer) for numer... | 33.35 | 177 | 0.746627 | drohmer |
b91a0929fd33b9d9782b9e9cf0f184828ac08702 | 4,342 | cpp | C++ | solved-topcoder/Solved/CatsOnTheLineDiv2.cpp | Maruf-Tuhin/Online_Judge | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | 1 | 2019-03-31T05:47:30.000Z | 2019-03-31T05:47:30.000Z | solved-topcoder/Solved/CatsOnTheLineDiv2.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | solved-topcoder/Solved/CatsOnTheLineDiv2.cpp | the-redback/competitive-programming | cf9b2a522e8b1a9623d3996a632caad7fd67f751 | [
"MIT"
] | null | null | null | /**
* @author : Maruf Tuhin
* @School : CUET CSE 11
* @Topcoder : the_redback
* @CodeForces : the_redback
* @UVA : the_redback
* @link : http://www.fb.com/maruf.2hin
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long l... | 38.767857 | 329 | 0.544219 | Maruf-Tuhin |
b91cd44ed44c1025090cacadecbf00e4dc36bf25 | 924 | cpp | C++ | src/reconstruct.cpp | ckpwinters/StereoTracking | f7e2c52c0c4481303560a1d03603a9d4971e8103 | [
"BSD-2-Clause"
] | null | null | null | src/reconstruct.cpp | ckpwinters/StereoTracking | f7e2c52c0c4481303560a1d03603a9d4971e8103 | [
"BSD-2-Clause"
] | null | null | null | src/reconstruct.cpp | ckpwinters/StereoTracking | f7e2c52c0c4481303560a1d03603a9d4971e8103 | [
"BSD-2-Clause"
] | null | null | null | //
// Created by lab on 16-12-27.
//
#include "reconstruct.h"
namespace tracker{
void Triangulate::Reconstruct3d(vector<Point2f> &matched_L, vector<Point2f> &matched_R, vector<Point3f> &coord_3d) {
size_t num_points=matched_L.size();
//double pixel_size=4.65e-3;
//Z=b*f/d
float d,... | 31.862069 | 120 | 0.568182 | ckpwinters |
b91db10327c3d0428aae74a5859d9e53fa213c76 | 1,898 | cpp | C++ | src/persistence/assetdb.cpp | nondejus/WaykiChain | dddd2b882f380e416b3069155bb3431fd5627258 | [
"MIT"
] | 1 | 2020-02-27T00:29:05.000Z | 2020-02-27T00:29:05.000Z | src/persistence/assetdb.cpp | nondejus/WaykiChain | dddd2b882f380e416b3069155bb3431fd5627258 | [
"MIT"
] | null | null | null | src/persistence/assetdb.cpp | nondejus/WaykiChain | dddd2b882f380e416b3069155bb3431fd5627258 | [
"MIT"
] | null | null | null | // Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2017-2019 The WaykiChain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assetdb.h"
#include "commons/uint256.h"
#include "commons/util/util.... | 33.298246 | 86 | 0.763435 | nondejus |
b91ed1f420de1fbaef1d34e93f766b5a45b22d93 | 2,411 | cc | C++ | tests/json-test.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | 1 | 2016-06-20T21:16:36.000Z | 2016-06-20T21:16:36.000Z | tests/json-test.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | null | null | null | tests/json-test.cc | kikairoya/black_circle | f3d8b90c9ddc76561d6ddc5e29e5e8fc8d3318c6 | [
"BSL-1.0"
] | null | null | null | #include <common.hpp>
#include "json_parser.hpp"
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
#include <boost/lexical_cast.hpp>
using namespace circle;
template <typename T>
inline T clone(const T &v) { return v; }
template <typename T>
struct object_type { typedef T type; };
template <> ... | 34.942029 | 90 | 0.657818 | kikairoya |
b921915b91c5b1e551985d52111e130b85ffaf2d | 781 | cpp | C++ | 3.7.0/lldb-3.7.0.src/test/functionalities/data-formatter/rdar-10887661/main.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 3 | 2016-02-10T14:18:40.000Z | 2018-02-05T03:15:56.000Z | 3.7.0/lldb-3.7.0.src/test/functionalities/data-formatter/rdar-10887661/main.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | 1 | 2016-02-10T15:40:03.000Z | 2016-02-10T15:40:03.000Z | 3.7.0/lldb-3.7.0.src/test/functionalities/data-formatter/rdar-10887661/main.cpp | androm3da/clang_sles | 2ba6d0711546ad681883c42dfb8661b842806695 | [
"MIT"
] | null | null | null | struct foo
{
int a;
int b;
int c;
int d;
int e;
int f;
int g;
int h;
int i;
int j;
int k;
int l;
int m;
int n;
int o;
int p;
int q;
int r;
foo(int X) :
a(X),
b(X+1),
c(X+3),
d(X+5),
e(X+7),
f(X+9),
g(X+11),
... | 12.596774 | 47 | 0.372599 | androm3da |
b9234d0993e65bdc8336c96fb359568a72186ab2 | 4,024 | hpp | C++ | third_party/omr/jitbuilder/apigen/extras/cpp/Macros.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/jitbuilder/apigen/extras/cpp/Macros.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/jitbuilder/apigen/extras/cpp/Macros.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2018, 2018 IBM Corp. and others
* * This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 51.589744 | 135 | 0.430666 | xiacijie |
b9239bd6aab5a02618bd9690189e4f56dfd69d09 | 2,456 | cpp | C++ | Receiver/DailyDataEntry.cpp | Engin-Boot/visit-case-s1b3 | 60e9ca88fa3f388d769f56e7346a1e9e971b4c91 | [
"MIT"
] | null | null | null | Receiver/DailyDataEntry.cpp | Engin-Boot/visit-case-s1b3 | 60e9ca88fa3f388d769f56e7346a1e9e971b4c91 | [
"MIT"
] | null | null | null | Receiver/DailyDataEntry.cpp | Engin-Boot/visit-case-s1b3 | 60e9ca88fa3f388d769f56e7346a1e9e971b4c91 | [
"MIT"
] | null | null | null | #include "DailyDataEntry.h"
//splits the input string by spaces
//returns a vector of words
vector<string> splitStringBySpaces(string str)
{
//declaration of empty vector
//will contain words
vector<string> singleDayEntry;
//initialized new word
string word = "";
//traverse input string
f... | 29.238095 | 108 | 0.670195 | Engin-Boot |
b9243933db9eeb3db42009eb0243dccc3fc203f0 | 10,105 | cpp | C++ | Source/Samples/41_DatabaseDemo/DatabaseDemo.cpp | ArnisLielturks/GameOff2017-WildDimension | 16d5cd0a0a7c8c520bee974f008ba719e37c996f | [
"MIT"
] | 3 | 2017-09-18T02:18:49.000Z | 2021-04-10T00:17:15.000Z | Source/Samples/41_DatabaseDemo/DatabaseDemo.cpp | ArnisLielturks/GameOff2017-WildDimension | 16d5cd0a0a7c8c520bee974f008ba719e37c996f | [
"MIT"
] | 1 | 2017-09-18T06:05:25.000Z | 2017-09-18T06:05:25.000Z | Source/Samples/41_DatabaseDemo/DatabaseDemo.cpp | pengfei666/Urho3D | 80658b06596e17e89278dde8e9a6cbe9375c7cee | [
"MIT"
] | null | null | null | //
// Copyright (c) 2008-2017 the Urho3D project.
//
// 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, m... | 44.911111 | 129 | 0.696388 | ArnisLielturks |
b9276fe0778cf75a47bed12cbb39206cb2df35d4 | 2,662 | cpp | C++ | third_party/WebKit/Source/core/css/cssom/CSSLengthValue.cpp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | third_party/WebKit/Source/core/css/cssom/CSSLengthValue.cpp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/css/cssom/CSSLengthValue.cpp | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2015 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 "core/css/cssom/CSSLengthValue.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/cssom/... | 28.934783 | 105 | 0.755071 | Wzzzx |
b92a97394e9a2d6911e2afd3285f946db277388b | 3,101 | cpp | C++ | src/ADBSCEditDLL/test/misc-regex/CppRegex.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 9 | 2019-05-20T12:06:36.000Z | 2022-03-24T19:11:06.000Z | src/ADBSCEditDLL/test/misc-regex/CppRegex.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | null | null | null | src/ADBSCEditDLL/test/misc-regex/CppRegex.cpp | ClnViewer/ADB-Android-Viewer | c619fe626ab390b656893974700a0b6379159c03 | [
"MIT"
] | 3 | 2020-07-06T04:51:33.000Z | 2021-07-26T20:08:02.000Z | /*
MIT License
Android remote Viewer, GUI ADB tools
Android Viewer developed to view and control your android device from a PC.
ADB exchange Android Viewer, support scale view, input tap from mouse,
input swipe from keyboard, save/copy screenshot, etc..
Copyright (c) 2016-2019 PS
GitHub: ... | 34.076923 | 126 | 0.618188 | ClnViewer |
b92e03fdb156047b17616f50b4781434b52ec305 | 1,120 | cpp | C++ | Week-1/Day-07-wordPattern.cpp | utkarshavardhana/september-leetcoding-challenge | 4e188ea914eea331ab3b032571640c82048e136d | [
"MIT"
] | null | null | null | Week-1/Day-07-wordPattern.cpp | utkarshavardhana/september-leetcoding-challenge | 4e188ea914eea331ab3b032571640c82048e136d | [
"MIT"
] | null | null | null | Week-1/Day-07-wordPattern.cpp | utkarshavardhana/september-leetcoding-challenge | 4e188ea914eea331ab3b032571640c82048e136d | [
"MIT"
] | null | null | null | class Solution {
public:
bool wordPattern(string pattern, string str) {
vector<string> words = split(str, ' ');
map<char, string> table;
if (pattern.size() != words.size()) {
return false;
}
for (auto i = 0; i < pattern.size(); ++ i) {
auto c ... | 28.717949 | 60 | 0.415179 | utkarshavardhana |
b92edfa72761efd2e0b504500bb865be9cbbdc31 | 29,858 | hpp | C++ | src/axom/core/Array.hpp | LLNL/axom | 5f72c784afe953767e773b2fe7df428d006ee113 | [
"BSD-3-Clause"
] | 86 | 2019-04-12T20:39:37.000Z | 2022-01-28T17:06:08.000Z | src/axom/core/Array.hpp | LLNL/axom | 5f72c784afe953767e773b2fe7df428d006ee113 | [
"BSD-3-Clause"
] | 597 | 2019-04-25T22:36:16.000Z | 2022-03-31T20:21:54.000Z | src/axom/core/Array.hpp | LLNL/axom | 5f72c784afe953767e773b2fe7df428d006ee113 | [
"BSD-3-Clause"
] | 21 | 2019-06-27T15:53:08.000Z | 2021-09-30T20:17:41.000Z | // Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
#ifndef AXOM_ARRAY_HPP_
#define AXOM_ARRAY_HPP_
#include "axom/config.hpp" // for compile-time defi... | 29.67992 | 122 | 0.61893 | LLNL |
b930423655c18483adef98ba4c8b335c5e77704f | 580 | hpp | C++ | obsoleted/old/lib-obsolete/int/libled/row-help.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | 1 | 2021-12-23T13:50:53.000Z | 2021-12-23T13:50:53.000Z | obsoleted/old/lib-obsolete/int/libled/row-help.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | null | null | null | obsoleted/old/lib-obsolete/int/libled/row-help.hpp | cppcoder123/led-server | 8ebac31e1241bb203d2cedfd644fe52619007cd6 | [
"MIT"
] | null | null | null | //
//
//
#ifndef LIBLED_ROW_HELP_HPP
#define LIBLED_ROW_HELP_HPP
namespace libled
{
namespace row
{
template <typename info_t>
struct help_t
{
static std::size_t size (const info_t &info) {return info.size ();}
//
static bool test (const info_t &info, std::size_t index)
{return... | 18.125 | 73 | 0.593103 | cppcoder123 |
b93286ebc358d3e9d754fdc12fa0bef1c26ebba6 | 2,830 | cpp | C++ | dataset/util.cpp | g5t/scipp | d819c930a5e438fd65e42e2e4e737743b8d39d37 | [
"BSD-3-Clause"
] | null | null | null | dataset/util.cpp | g5t/scipp | d819c930a5e438fd65e42e2e4e737743b8d39d37 | [
"BSD-3-Clause"
] | null | null | null | dataset/util.cpp | g5t/scipp | d819c930a5e438fd65e42e2e4e737743b8d39d37 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2021 Scipp contributors (https://github.com/scipp)
/// @file
/// @author Matthew Andrew
#include "scipp/dataset/util.h"
#include "scipp/variable/arithmetic.h"
#include "scipp/variable/misc_operations.h"
#include "scipp/variable/reduction.h"
#include "scipp/varia... | 32.906977 | 79 | 0.673145 | g5t |
b939490ef770fd0da9b17425b32989fc2cb77e00 | 3,893 | cpp | C++ | Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Win64/UE4Editor/Development/AdvancedSessions/Module.AdvancedSessions.gen.cpp | Maskside/DriftGame | a518574f3ba4256da0cc948b9f147b4d3aaa3b5c | [
"MIT"
] | null | null | null | Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Win64/UE4Editor/Development/AdvancedSessions/Module.AdvancedSessions.gen.cpp | Maskside/DriftGame | a518574f3ba4256da0cc948b9f147b4d3aaa3b5c | [
"MIT"
] | null | null | null | Plugins/AdvancedSessions/AdvancedSessions/Intermediate/Build/Win64/UE4Editor/Development/AdvancedSessions/Module.AdvancedSessions.gen.cpp | Maskside/DriftGame | a518574f3ba4256da0cc948b9f147b4d3aaa3b5c | [
"MIT"
] | null | null | null | // This file is automatically generated at compile-time to include some subset of the user-created cpp files.
#include "E:\Unreal Projects\github\DriftGame\Plugins\AdvancedSessions\AdvancedSessions\Intermediate\Build\Win64\UE4Editor\Inc\AdvancedSessions\AdvancedExternalUILibrary.gen.cpp"
#include "E:\Unreal Projects\gi... | 169.26087 | 187 | 0.875417 | Maskside |
b939e4890a22c103baa98b3c9a5bbad84f68573e | 1,043 | cpp | C++ | src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/ace/QoS/QoS_Manager.cpp | 549654033/RDHelp | 0f5f9c7d098635c7216713d7137c845c0d999226 | [
"MIT"
] | 2 | 2020-05-20T05:16:34.000Z | 2020-05-20T05:19:19.000Z | src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/ace/QoS/QoS_Manager.cpp | jimxie2012/RDHelp | 0f5f9c7d098635c7216713d7137c845c0d999226 | [
"MIT"
] | null | null | null | src/src/Share/ShareLib/LinuxPublic/ACE_wrappers/ace/QoS/QoS_Manager.cpp | jimxie2012/RDHelp | 0f5f9c7d098635c7216713d7137c845c0d999226 | [
"MIT"
] | 4 | 2020-05-20T01:50:16.000Z | 2021-08-29T13:48:25.000Z | // QoS_Manager.cpp
// $Id: QoS_Manager.cpp 80826 2008-03-04 14:51:23Z wotte $
#include "QoS_Manager.h"
#include "ace/Log_Msg.h"
ACE_RCSID(ace, QoS_Manager, "$Id: QoS_Manager.cpp 80826 2008-03-04 14:51:23Z wotte $")
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_QOS_MANAGER)
ACE_QoS_Manage... | 24.833333 | 87 | 0.67977 | 549654033 |
b93a3df716967c4f026d647429903fe4cecadbdd | 1,797 | hpp | C++ | include/am/succinct/rsdic/EnumCoder.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 31 | 2015-03-03T19:13:42.000Z | 2020-09-03T08:11:56.000Z | include/am/succinct/rsdic/EnumCoder.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 1 | 2016-12-24T00:12:11.000Z | 2016-12-24T00:12:11.000Z | include/am/succinct/rsdic/EnumCoder.hpp | izenecloud/izenelib | 9d5958100e2ce763fc75f27217adf982d7c9d902 | [
"Apache-2.0"
] | 8 | 2015-09-06T01:55:21.000Z | 2021-12-20T02:16:13.000Z | /*
* Copyright (c) 2012 Daisuke Okanohara
*
* 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 a... | 28.983871 | 80 | 0.742348 | izenecloud |
b93d6971337ab178a943d239ab8ff80d31c47884 | 1,807 | cpp | C++ | lib/indicator/DbgCliCmdIndSet.cpp | dniklaus/arduino-serial-test | a5efa33111321d8663d5291461e4244af491a6b5 | [
"MIT"
] | 1 | 2021-01-07T12:59:18.000Z | 2021-01-07T12:59:18.000Z | lib/indicator/DbgCliCmdIndSet.cpp | dniklaus/arduino-serial-test | a5efa33111321d8663d5291461e4244af491a6b5 | [
"MIT"
] | 1 | 2018-04-19T12:29:36.000Z | 2018-04-19T12:29:36.000Z | lib/indicator/DbgCliCmdIndSet.cpp | dniklaus/arduino-serial-test | a5efa33111321d8663d5291461e4244af491a6b5 | [
"MIT"
] | 1 | 2017-08-18T18:30:14.000Z | 2017-08-18T18:30:14.000Z | /*
* DbgCliCmdLedSet.cpp
*
* Created on: 01.11.2019
* Author: nid
*/
#include "DbgCliCmdIndSet.h"
#include <string.h>
#include <DbgCliNode.h>
#include <DbgCliTopic.h>
#include <DbgCliCommand.h>
#include <DbgTracePort.h>
#include <DbgTraceContext.h>
#include <DbgTraceOut.h>
#include <DbgPrintConsole.h>
#inc... | 24.418919 | 126 | 0.674045 | dniklaus |
b93da383c7f40f496c522dd3e40fa5dfb27828cf | 8,350 | cc | C++ | mist/usb_device_event_notifier.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | 5 | 2019-01-19T15:38:48.000Z | 2021-10-06T03:59:46.000Z | mist/usb_device_event_notifier.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | null | null | null | mist/usb_device_event_notifier.cc | emersion/chromiumos-platform2 | ba71ad06f7ba52e922c647a8915ff852b2d4ebbd | [
"BSD-3-Clause"
] | 1 | 2019-02-15T23:05:30.000Z | 2019-02-15T23:05:30.000Z | // Copyright (c) 2013 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.
#include "mist/usb_device_event_notifier.h"
#include <limits>
#include <base/logging.h>
#include <base/strings/string_number_conversions.h>
#incl... | 31.749049 | 80 | 0.676886 | emersion |
b93dd4bab3baaf82c57d23bcaed261571a3ba52f | 4,531 | cpp | C++ | sdk/QtComponents/vuMeter.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 3 | 2017-05-13T20:36:03.000Z | 2021-07-16T17:23:01.000Z | sdk/QtComponents/vuMeter.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | null | null | null | sdk/QtComponents/vuMeter.cpp | InfiniteInteractive/LimitlessSDK | cb71dde14d8c59cbf8a1ece765989c5787fffefa | [
"MIT"
] | 2 | 2016-08-04T00:16:50.000Z | 2017-09-07T14:50:03.000Z | #include "VuMeter.h"
#include <QtGui/QPainter>
namespace Limitless
{
VuMeter::VuMeter(QWidget *parent): QWidget(parent)
{
m_backgroundColor=QColor(0, 0, 0);
m_cellColor=QColor(80, 80, 80);
m_highColor=Qt::red;
m_color=Qt::yellow;
m_lowColor=Qt::green;
m_maxiumValue=1.0f;
m_minimumValue=0.0f;
m_value=0.0f;... | 21.783654 | 93 | 0.621055 | InfiniteInteractive |
b93e09783a7aecc460f08528362c1569b0c592ce | 3,298 | cpp | C++ | PhysXChips_Dlg/PhysXRigidDynamic_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | 3 | 2021-04-27T08:52:40.000Z | 2021-05-19T18:05:40.000Z | PhysXChips_Dlg/PhysXRigidDynamic_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | null | null | null | PhysXChips_Dlg/PhysXRigidDynamic_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | null | null | null | // Copyright(c) 2013-2019, mCODE A/S
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditio... | 64.666667 | 205 | 0.739539 | snaxgameengine |
b941eea895579899b81da4a62b21b2bba3738ed8 | 49 | hpp | C++ | src/boost_log_sinks_attribute_mapping.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_log_sinks_attribute_mapping.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_log_sinks_attribute_mapping.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/log/sinks/attribute_mapping.hpp>
| 24.5 | 48 | 0.816327 | miathedev |
b945d9ff37db95580ed7705f6c44baa8a20130cc | 13,072 | cc | C++ | src/modular/benchmarks/story_benchmark.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | null | null | null | src/modular/benchmarks/story_benchmark.cc | zhangpf/fuchsia-rs | 903568f28ddf45f09157ead36d61b50322c9cf49 | [
"BSD-3-Clause"
] | 5 | 2020-09-06T09:02:06.000Z | 2022-03-02T04:44:22.000Z | src/modular/benchmarks/story_benchmark.cc | ZVNexus/fuchsia | c5610ad15208208c98693618a79c705af935270c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <fuchsia/modular/cpp/fidl.h>
#include <fuchsia/sys/cpp/fidl.h>
#include <lib/fidl/cpp/binding.h>
#include <lib/fsl/vmo/strings.h>
#include <lib/mo... | 31.272727 | 79 | 0.685052 | zhangpf |
b947d0b549363508cae2e17e7ff9f5eddb259fe5 | 7,810 | cpp | C++ | FEBioSource2.9/FEBioMech/FE2DFiberNeoHookean.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-08-24T08:37:21.000Z | 2021-08-24T08:37:21.000Z | FEBioSource2.9/FEBioMech/FE2DFiberNeoHookean.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | null | null | null | FEBioSource2.9/FEBioMech/FE2DFiberNeoHookean.cpp | wzaylor/FEBio_MCLS | f1052733c31196544fb0921aa55ffa5167a25f98 | [
"Intel"
] | 1 | 2021-03-15T08:22:06.000Z | 2021-03-15T08:22:06.000Z | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2019 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 32.406639 | 82 | 0.565685 | wzaylor |
b94a33adf78d2b21e61582137ee61764ca00c42b | 7,906 | cpp | C++ | ruby/input/joypad/directinput.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ruby/input/joypad/directinput.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ruby/input/joypad/directinput.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | #pragma once
auto CALLBACK DirectInput_EnumJoypadsCallback(const DIDEVICEINSTANCE* instance, void* p) -> BOOL;
auto CALLBACK DirectInput_EnumJoypadAxesCallback(const DIDEVICEOBJECTINSTANCE* instance, void* p) -> BOOL;
auto CALLBACK DirectInput_EnumJoypadEffectsCallback(const DIDEVICEOBJECTINSTANCE* instance, void* p) ... | 36.266055 | 115 | 0.676069 | CasualPokePlayer |
b94af4968211cb6419b66b0e2a6075d15181bac4 | 7,645 | hpp | C++ | drivers/usb/hcds/ehci/src/ehci.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | 1 | 2020-07-29T12:13:14.000Z | 2020-07-29T12:13:14.000Z | drivers/usb/hcds/ehci/src/ehci.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | null | null | null | drivers/usb/hcds/ehci/src/ehci.hpp | kITerE/managarm | e6d1229a0bed68cb672a9cad300345a9006d78c1 | [
"MIT"
] | null | null | null |
#include <queue>
#include <arch/mem_space.hpp>
#include <async/recurring-event.hpp>
#include <async/mutex.hpp>
#include <async/result.hpp>
#include <helix/memory.hpp>
#include "spec.hpp"
struct Controller;
struct DeviceState;
struct ConfigurationState;
struct InterfaceState;
struct EndpointState;
// TODO: This cou... | 29.980392 | 93 | 0.591629 | kITerE |
b94b32da02b41b69030f9732bb465d25ecf4f8ee | 5,259 | cpp | C++ | src/wcx_plugin.cpp | remittor/paxz.wcx | 8c10a4673c4e613383f7c61041e4116007ba032d | [
"MIT"
] | 9 | 2019-11-27T09:41:03.000Z | 2022-02-19T13:32:57.000Z | src/wcx_plugin.cpp | remittor/paxz.wcx | 8c10a4673c4e613383f7c61041e4116007ba032d | [
"MIT"
] | null | null | null | src/wcx_plugin.cpp | remittor/paxz.wcx | 8c10a4673c4e613383f7c61041e4116007ba032d | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "wcx_plugin.h"
#include "winuser.h"
#include "res\resource.h"
namespace wcx {
plugin::plugin()
{
m_module = NULL;
m_main_thread_id = 0;
m_ProcessDataProcW = NULL;
m_packer_count = 0;
m_testmode = false;
m_inited = false;
}
plugin::~plugin()
{
destroy();
}
int plugin::init... | 24.123853 | 127 | 0.60715 | remittor |
b94beb1635e95f0f2a53b68cbe6e653381df716f | 37,992 | cpp | C++ | projects/biogears/libBiogears/src/cdm/engine/PhysiologyEngineDynamicStabilization.cpp | faaizT/core | 488b357deece8dd4f7be318eefb49f6330be8239 | [
"Apache-2.0"
] | 1 | 2020-10-23T18:23:00.000Z | 2020-10-23T18:23:00.000Z | projects/biogears/libBiogears/src/cdm/engine/PhysiologyEngineDynamicStabilization.cpp | faaizT/core | 488b357deece8dd4f7be318eefb49f6330be8239 | [
"Apache-2.0"
] | 5 | 2020-12-23T00:19:32.000Z | 2020-12-29T20:53:58.000Z | projects/biogears/libBiogears/src/cdm/engine/PhysiologyEngineDynamicStabilization.cpp | vybhavramachandran/biogears-vybhav | 7271c12b85a324a4f1494e0ce15942dc25bc4931 | [
"Apache-2.0"
] | null | null | null | /**************************************************************************************
Copyright 2015 Applied Research Associates, 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.ap... | 43.369863 | 288 | 0.628053 | faaizT |
b94d28d5edd1ff76f25a1ebe8dcccdadaa510f5b | 87,176 | hpp | C++ | TakistanRoleplay/Config_Spyglass.hpp | hdvertgaming/TakistanRoleplay | 56ba5bf9f9d67d6cab20cecf0681c663b2f5d731 | [
"Apache-2.0"
] | null | null | null | TakistanRoleplay/Config_Spyglass.hpp | hdvertgaming/TakistanRoleplay | 56ba5bf9f9d67d6cab20cecf0681c663b2f5d731 | [
"Apache-2.0"
] | null | null | null | TakistanRoleplay/Config_Spyglass.hpp | hdvertgaming/TakistanRoleplay | 56ba5bf9f9d67d6cab20cecf0681c663b2f5d731 | [
"Apache-2.0"
] | null | null | null | class SpyGlass {
civSlotNumber = 75;
copSlotNumber = 19;
medSlotNumber = 4;
/*
Internal functions, sort by what they are.
Please note any functions you add need the functions named defined and the functions meta name which is the functions name + _meta i.e:
"life_fnc_mycoolfunction","life_fnc_mycoolfunctio... | 3,352.923077 | 28,516 | 0.860891 | hdvertgaming |
b94d49dcbdae512cead5329caef5e01d92c53d84 | 1,561 | cpp | C++ | test/module/libs/crypto/signature_test.cpp | laSinteZ/iroha | 78f152a85ee2b3b86db7b705831938e96a186c36 | [
"Apache-2.0"
] | 1 | 2017-01-15T08:47:16.000Z | 2017-01-15T08:47:16.000Z | test/module/libs/crypto/signature_test.cpp | laSinteZ/iroha | 78f152a85ee2b3b86db7b705831938e96a186c36 | [
"Apache-2.0"
] | 1 | 2017-11-08T02:34:24.000Z | 2017-11-08T02:34:24.000Z | test/module/libs/crypto/signature_test.cpp | laSinteZ/iroha | 78f152a85ee2b3b86db7b705831938e96a186c36 | [
"Apache-2.0"
] | null | null | null | /*
Copyright Soramitsu Co., Ltd. 2016 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 agre... | 33.212766 | 78 | 0.736707 | laSinteZ |
b95319e3fb095934e324df92172559c4ac330c21 | 5,791 | hpp | C++ | othello.hpp | jj1guj/dekunobou-gui | 59f8e28b138d12abc698bece0475cb3e38f8a66f | [
"MIT"
] | null | null | null | othello.hpp | jj1guj/dekunobou-gui | 59f8e28b138d12abc698bece0475cb3e38f8a66f | [
"MIT"
] | null | null | null | othello.hpp | jj1guj/dekunobou-gui | 59f8e28b138d12abc698bece0475cb3e38f8a66f | [
"MIT"
] | null | null | null | #include"dekunobou.hpp"
#pragma once
class Board{
public:
int board[8][8];//先手:1, 後手:-1
bool turn=false;//先手ならfalse, 後手ならtrue
int point[2];//各手番の獲得枚数{先手, 後手}
int flip_limit[8];//縦横斜め8方向どこまでひっくり返していいか
//{横(左), 横(右), 縦(上), 縦(下), 右斜め(上), 右斜め(下), 左斜め(上), 左斜め(下)}
//序盤・中盤・終盤のどれか
//序盤なら0,... | 27.060748 | 68 | 0.455534 | jj1guj |
b953d14922455e7f81492c3ef248f33fd5e0afb4 | 5,557 | cpp | C++ | HornSchunckOF/main.cpp | liuyang9609/Optical-Flow | 365a6fd8d8e684f255ccefe696157e683256bd61 | [
"MIT"
] | null | null | null | HornSchunckOF/main.cpp | liuyang9609/Optical-Flow | 365a6fd8d8e684f255ccefe696157e683256bd61 | [
"MIT"
] | null | null | null | HornSchunckOF/main.cpp | liuyang9609/Optical-Flow | 365a6fd8d8e684f255ccefe696157e683256bd61 | [
"MIT"
] | null | null | null | #include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/video.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include "hornSchunck.cpp"
#include "plotFlow.cpp"
void preprocess(cv::Mat imagePrevRaw, cv::Mat imageNextRaw, cv::Mat &... | 42.419847 | 188 | 0.61526 | liuyang9609 |
b954bdc2c6521127f198490c8bac38797f2b8022 | 2,709 | cc | C++ | packages/solver/Solver.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/solver/Solver.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/solver/Solver.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "Solver.hh"
#include <iomanip>
#include <iostream>
#include <string>
#include "Check.hh"
#include "XML_Node.hh"
using namespace std;
Solver::
Solver(int solver_print,
Solver::Type type):
solver_print_(solver_print)
{
}
void Solver::
print_name(string solution_type) const
{
if (solver_print_... | 20.838462 | 78 | 0.515319 | brbass |
b95577b7990b49b2e519df0173e64a4029afab68 | 931 | cpp | C++ | modules/OpenGL/src/GLConstantBuffer.cpp | ninthworld/NinthEngine | cd6a5f79a2f6f4f7471e76a41a558291d1e2caec | [
"MIT"
] | 2 | 2018-06-29T14:18:28.000Z | 2021-04-09T07:21:56.000Z | modules/OpenGL/src/GLConstantBuffer.cpp | ninthworld/NinthEngine | cd6a5f79a2f6f4f7471e76a41a558291d1e2caec | [
"MIT"
] | null | null | null | modules/OpenGL/src/GLConstantBuffer.cpp | ninthworld/NinthEngine | cd6a5f79a2f6f4f7471e76a41a558291d1e2caec | [
"MIT"
] | null | null | null | #include "NinthEngine/GLPCH.h"
#include "NinthEngine/GLConstantBuffer.h"
#include "NinthEngine/GLUtils.h"
namespace NinthEngine {
GLConstantBuffer::GLConstantBuffer(const BufferProps& props)
: m_layout(props.layout), m_unitCount(props.unitCount) {
glGenBuffers(1, &m_bufferId);
glBindBuffer(GL_UNIFORM_BUFFER, m_buf... | 26.6 | 99 | 0.779807 | ninthworld |
b9572fd3b45cadfbfbd84362706b9934d6d9a55d | 17,148 | cpp | C++ | WebKit/Source/WebKit/gtk/webkit/webkitwebdatabase.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 1 | 2019-06-18T06:52:54.000Z | 2019-06-18T06:52:54.000Z | WebKit/Source/WebKit/gtk/webkit/webkitwebdatabase.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | WebKit/Source/WebKit/gtk/webkit/webkitwebdatabase.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2009 Martin Robinson
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This libra... | 32.293785 | 131 | 0.673315 | JavaScriptTesting |
b9596c0b297c3d1ebcbe965b3f613534700bcdd2 | 1,061 | cc | C++ | cc/modules/tracking/Trackers/TrackerMedianFlow.cc | mstallmo/opencv4nodejs | 5ab4fcb17c39c4a16f77c8de8c29dc357532d9cb | [
"MIT"
] | 1 | 2018-05-07T13:03:20.000Z | 2018-05-07T13:03:20.000Z | cc/modules/tracking/Trackers/TrackerMedianFlow.cc | goldyraj/facerecognition | 9b0820135eb8cdaf783b3d560695bfb324083270 | [
"MIT"
] | null | null | null | cc/modules/tracking/Trackers/TrackerMedianFlow.cc | goldyraj/facerecognition | 9b0820135eb8cdaf783b3d560695bfb324083270 | [
"MIT"
] | 1 | 2020-02-18T06:44:04.000Z | 2020-02-18T06:44:04.000Z | #ifdef HAVE_TRACKING
#include "TrackerMedianFlow.h"
Nan::Persistent<v8::FunctionTemplate> TrackerMedianFlow::constructor;
NAN_MODULE_INIT(TrackerMedianFlow::Init) {
v8::Local<v8::FunctionTemplate> ctor = Nan::New<v8::FunctionTemplate>(TrackerMedianFlow::New);
v8::Local<v8::ObjectTemplate> instanceTemplate = ctor->... | 27.205128 | 95 | 0.756833 | mstallmo |
b95c1f59d925472219d937d6ae88ddd65ea5a1d0 | 2,236 | cpp | C++ | server/src/http_msg_server/HttpConn.cpp | xiaominfc/TeamTalk | 20084010a9804d1ff0ed7bb5924fde7041b952eb | [
"Apache-2.0"
] | 65 | 2017-11-18T15:43:56.000Z | 2022-01-30T08:07:11.000Z | server/src/http_msg_server/HttpConn.cpp | xiaominfc/TeamTalk | 20084010a9804d1ff0ed7bb5924fde7041b952eb | [
"Apache-2.0"
] | 3 | 2018-09-04T14:27:45.000Z | 2020-10-29T07:22:45.000Z | server/src/http_msg_server/HttpConn.cpp | xiaominfc/TeamTalk | 20084010a9804d1ff0ed7bb5924fde7041b952eb | [
"Apache-2.0"
] | 36 | 2018-07-10T04:21:08.000Z | 2021-11-09T07:21:10.000Z | /*
* HttpConn.cpp
*
* Created on: 2013-9-29
* Author: ziteng@mogujie.com
*/
#include "HttpConn.h"
#include "HttpParserWrapper.h"
#include "HttpQuery.h"
static HttpConnMap_t g_http_conn_map;
// conn_handle 从0开始递增,可以防止因socket handle重用引起的一些冲突
static uint32_t g_conn_handle_generator = 0;
CHttpConn* FindHttpConn... | 19.443478 | 94 | 0.713327 | xiaominfc |
b95c223b7d35bd403d256be906466f45a295a0be | 3,422 | cpp | C++ | TheGame/AIPlayer.cpp | dynamiquel/The-Game | d9ae1499ea514260e4d47dac85893aea8891a2cf | [
"MIT"
] | null | null | null | TheGame/AIPlayer.cpp | dynamiquel/The-Game | d9ae1499ea514260e4d47dac85893aea8891a2cf | [
"MIT"
] | null | null | null | TheGame/AIPlayer.cpp | dynamiquel/The-Game | d9ae1499ea514260e4d47dac85893aea8891a2cf | [
"MIT"
] | null | null | null | #include "AIPlayer.h"
#include "Utilities.h"
#include <iostream>
short selectedPile = -1;
AIPlayer::AIPlayer()
{
isAI = true;
completed = false;
}
// Asks the user to choose a card and returns its index.
short& AIPlayer::ChooseCard(const PlayPile* playPiles)
{
std::cout << "\n\n Choose the card you want to play ... | 33.881188 | 135 | 0.696084 | dynamiquel |
b95d6f064af5c8480c038d9d11495ca23744a531 | 880 | hpp | C++ | leviathan_config.hpp | bkovacev/levd | f942946f4db7f8c2bad14c5c7025ac303855ced7 | [
"MIT"
] | 1 | 2020-04-23T11:28:55.000Z | 2020-04-23T11:28:55.000Z | leviathan_config.hpp | bkovacev/levd | f942946f4db7f8c2bad14c5c7025ac303855ced7 | [
"MIT"
] | null | null | null | leviathan_config.hpp | bkovacev/levd | f942946f4db7f8c2bad14c5c7025ac303855ced7 | [
"MIT"
] | 1 | 2020-04-23T11:28:59.000Z | 2020-04-23T11:28:59.000Z | #ifndef LEVIATHAN_CONFIG_H
#define LEVIATHAN_CONFIG_H
#include <functional>
#include <map>
#include <string>
#define DEFAULT_RED 0xFF0000
using LineFunction = std::function<int32_t(int32_t)>;
enum class TempSource { CPU, LIQUID };
inline TempSource stringToTempSource(const std::string &tss) {
return tss == "liqu... | 22 | 64 | 0.723864 | bkovacev |
b95e4da83dbb91e93edd8e4aac66d3e4a766fba1 | 2,281 | hpp | C++ | cpp/subprojects/common/include/common/rule_refinement/rule_refinement_exact.hpp | Waguy02/Boomer-Scripted | b06bb9213d64dca0c05d41701dea12666931618c | [
"MIT"
] | 8 | 2020-06-30T01:06:43.000Z | 2022-03-14T01:58:29.000Z | cpp/subprojects/common/include/common/rule_refinement/rule_refinement_exact.hpp | Waguy02/Boomer-Scripted | b06bb9213d64dca0c05d41701dea12666931618c | [
"MIT"
] | 3 | 2020-12-14T11:30:18.000Z | 2022-02-07T06:31:51.000Z | cpp/subprojects/common/include/common/rule_refinement/rule_refinement_exact.hpp | Waguy02/Boomer-Scripted | b06bb9213d64dca0c05d41701dea12666931618c | [
"MIT"
] | 4 | 2020-06-24T08:45:00.000Z | 2021-12-23T21:44:51.000Z | /*
* @author Michael Rapp (michael.rapp.ml@gmail.com)
*/
#pragma once
#include "common/rule_refinement/rule_refinement.hpp"
#include "common/rule_refinement/rule_refinement_callback.hpp"
#include "common/input/feature_vector.hpp"
#include "common/sampling/weight_vector.hpp"
/**
* Allows to find the best refinemen... | 40.017544 | 120 | 0.686541 | Waguy02 |
b95ed381f546426e1726acfcabe8798b45b4d3a3 | 18,884 | cpp | C++ | Creature.cpp | liderrick/Text-Based-Fighting-Simulation-Game--Fantasy-Combat-Vol.-II--Tournament | 48ea8b7744b9228d9a301488ac45e12534847096 | [
"MIT"
] | null | null | null | Creature.cpp | liderrick/Text-Based-Fighting-Simulation-Game--Fantasy-Combat-Vol.-II--Tournament | 48ea8b7744b9228d9a301488ac45e12534847096 | [
"MIT"
] | null | null | null | Creature.cpp | liderrick/Text-Based-Fighting-Simulation-Game--Fantasy-Combat-Vol.-II--Tournament | 48ea8b7744b9228d9a301488ac45e12534847096 | [
"MIT"
] | null | null | null | /**************************************************************************************************************
** Program name: Project 4
** Author: Derrick Li
** Date: Mar. 5, 2017
** Description:
** This class implementation file contains the member function definitions for the Creature base class and its
** 5 deriv... | 39.178423 | 129 | 0.487503 | liderrick |
b960346296df837f5bb142b511be996fe5036985 | 962 | cpp | C++ | source/LeetCode/DynamicPlaning/MaxSumofSubarray.cpp | Mas9uerade/Mas9uerade.github.io | 9cc273313fc1360daff57fe16dd1a60fe910259d | [
"Apache-2.0"
] | 1 | 2018-04-14T03:43:27.000Z | 2018-04-14T03:43:27.000Z | source/LeetCode/DynamicPlaning/MaxSumofSubarray.cpp | Mas9uerade/Mas9uerade.github.io | 9cc273313fc1360daff57fe16dd1a60fe910259d | [
"Apache-2.0"
] | null | null | null | source/LeetCode/DynamicPlaning/MaxSumofSubarray.cpp | Mas9uerade/Mas9uerade.github.io | 9cc273313fc1360daff57fe16dd1a60fe910259d | [
"Apache-2.0"
] | null | null | null | int maxsumofSubarray(vector<int>& arr)
{
if (arr.size() == 0)
{
return 0;
}
if (arr.size() == 1)
{
return arr[0];
}
int max = arr[0];
int end_index = 0;
int relink_cost = 0;
for (int i = 1; i < arr.size(); ++i)
{
//判断是否可以续链
if (end_index == i - 1)
{
//判断取 arr[i] 与 max + arr[i] 与 max 的最大值,若取max 则... | 15.03125 | 52 | 0.480249 | Mas9uerade |
b9603f8367fb1e9d27716621ead4a9dc57a27c33 | 3,382 | cpp | C++ | test/entities/vbkblock_test.cpp | Warchant/alt-integration-cpp | 61c1012dd4f4632c1bd288d5bfcb0500a2e4933c | [
"MIT"
] | null | null | null | test/entities/vbkblock_test.cpp | Warchant/alt-integration-cpp | 61c1012dd4f4632c1bd288d5bfcb0500a2e4933c | [
"MIT"
] | 2 | 2020-08-19T11:52:46.000Z | 2020-08-19T12:34:42.000Z | test/entities/vbkblock_test.cpp | Warchant/alt-integration-cpp | 61c1012dd4f4632c1bd288d5bfcb0500a2e4933c | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2020 Xenios SEZC
// https://www.veriblock.org
// Distributed under the MIT software license, see the accompanying
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
#include "veriblock/entities/vbkblock.hpp"
#include <gtest/gtest.h>
#include "veriblock/arith_uint256.hpp"
#in... | 36.365591 | 80 | 0.71437 | Warchant |
b964bde2b0c0f2b8af2150a123a317efdcadb4ed | 3,227 | cc | C++ | src/xenia/base/filesystem.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 16 | 2018-06-23T19:49:55.000Z | 2021-12-29T01:29:28.000Z | src/xenia/base/filesystem.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 1 | 2017-10-01T08:53:46.000Z | 2017-11-11T01:47:23.000Z | src/xenia/base/filesystem.cc | cloudhaacker/xenia | 54b211ed1885cdfb9ef6d74e60f7e615aaf56d45 | [
"BSD-3-Clause"
] | 15 | 2018-07-12T22:36:01.000Z | 2020-10-25T15:51:08.000Z | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2015 Ben Vanik. All rights reserved. ... | 29.072072 | 79 | 0.494267 | cloudhaacker |
b96ae03b0c0f89cc38d87ca59a7f9310533ba2d9 | 1,426 | hpp | C++ | dxlibex/type_traits/is_well_format.hpp | Nagarei/DxLibEx | 650fd0dad2cd1625d04f009faa649e8e9ffa0e1b | [
"BSL-1.0"
] | 32 | 2015-10-19T15:51:15.000Z | 2021-08-06T05:51:28.000Z | dxlibex/type_traits/is_well_format.hpp | Nagarei/DxLibEx | 650fd0dad2cd1625d04f009faa649e8e9ffa0e1b | [
"BSL-1.0"
] | 92 | 2015-10-17T12:20:53.000Z | 2020-08-12T13:34:21.000Z | dxlibex/type_traits/is_well_format.hpp | Nagarei/DxLibEx | 650fd0dad2cd1625d04f009faa649e8e9ffa0e1b | [
"BSL-1.0"
] | 6 | 2016-05-09T03:23:18.000Z | 2020-04-08T05:57:43.000Z | /*=============================================================================
Copyright (C) 2015-2017 DxLibEx project
https://github.com/Nagarei/DxLibEx/
Distributed under the Boost Software License, Version 1.0.
(See http://www.boost.org/LICENSE_1_0.txt)
=====================================================... | 39.611111 | 141 | 0.699158 | Nagarei |
b96d7fcdda2914cc2d368bbb6387f461defad275 | 2,632 | cpp | C++ | code/engine.vc2008/xrScripts/lopen.cpp | icetorch2001/xray-oxygen | 8c210ac2824f794cea69266048fe12d584ee3f04 | [
"Apache-2.0"
] | 1 | 2021-09-14T14:28:56.000Z | 2021-09-14T14:28:56.000Z | code/engine.vc2008/xrScripts/lopen.cpp | ArtemGen/xray-oxygen | f62d3e1f4e211986c057fd37e97fd03c98b5e275 | [
"Apache-2.0"
] | null | null | null | code/engine.vc2008/xrScripts/lopen.cpp | ArtemGen/xray-oxygen | f62d3e1f4e211986c057fd37e97fd03c98b5e275 | [
"Apache-2.0"
] | 3 | 2021-11-01T06:21:26.000Z | 2022-01-08T16:13:23.000Z | // file: lopen.cpp
// func: Open lua modules-namespace
// author: ForserX
#include "stdafx.h"
#include "luaopen.hpp"
extern "C"
{
extern const struct luaL_Reg funcs[];
int luaopen_LuaXML_lib(lua_State* L);
int luaopen_lfs(lua_State *L);
}
int lopen::luaopen_ext(lua_State *L)
{
luaL_openlib(L, "mrsh", funcs, 0);
... | 23.927273 | 107 | 0.666033 | icetorch2001 |
b96d84fed3140b04a6fae66ee9a9de76838e53f3 | 1,605 | cpp | C++ | test/src/physics/collision/narrowphase/algorithm/gjk/GJKConvexObjectTest.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 18 | 2020-06-12T00:04:46.000Z | 2022-01-11T14:56:19.000Z | test/src/physics/collision/narrowphase/algorithm/gjk/GJKConvexObjectTest.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | null | null | null | test/src/physics/collision/narrowphase/algorithm/gjk/GJKConvexObjectTest.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 6 | 2020-08-16T15:58:41.000Z | 2022-03-05T13:17:50.000Z | #include <cppunit/TestSuite.h>
#include <cppunit/TestCaller.h>
#include <memory>
#include <UrchinCommon.h>
#include <UrchinPhysicsEngine.h>
#include <AssertHelper.h>
#include <physics/collision/narrowphase/algorithm/gjk/GJKConvexObjectTest.h>
#include <physics/collision/narrowphase/algorithm/gjk/GJKTestHelper.h>
using... | 41.153846 | 133 | 0.751402 | petitg1987 |
b970d0577bc37695e46587b9efbb40f602e3706b | 1,504 | cpp | C++ | C++/C++ Fundamentals Sept 2019/11. EXAM PREPARATION/Exam9Jan2018/src/Copy-Paste.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | 1 | 2019-07-21T13:00:31.000Z | 2019-07-21T13:00:31.000Z | C++/C++ Fundamentals Sept 2019/11. EXAM PREPARATION/Exam9Jan2018/src/Copy-Paste.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | null | null | null | C++/C++ Fundamentals Sept 2019/11. EXAM PREPARATION/Exam9Jan2018/src/Copy-Paste.cpp | galin-kostadinov/Software-Engineering | 55189648d787b35f1e9cd24cc4449c6beda51c90 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <sstream>
#include <stack>
void copy(const std::string &text, std::stack<std::string> &clipboard, int startIndex, int endIndex) {
startIndex = (int) text.find_last_of(' ', startIndex) + 1;
endIndex = text.find(' ', endIndex);
if (endIndex == -1) {
end... | 22.117647 | 102 | 0.563165 | galin-kostadinov |
b9712383dac34c4a5f56a13032aa1a4da2c1826b | 24,782 | cpp | C++ | src/server/Xml/XmlLibrary.cpp | anewholm/generalserver | 99321562921c317f1ef14a2b84abfe91f0f871b6 | [
"X11"
] | null | null | null | src/server/Xml/XmlLibrary.cpp | anewholm/generalserver | 99321562921c317f1ef14a2b84abfe91f0f871b6 | [
"X11"
] | null | null | null | src/server/Xml/XmlLibrary.cpp | anewholm/generalserver | 99321562921c317f1ef14a2b84abfe91f0f871b6 | [
"X11"
] | null | null | null | //platform agnostic file
#include "Xml/XmlLibrary.h"
#include "Repository.h"
#include "Xml/XmlNamespace.h"
#include "IXml/IXslNode.h"
#include "IXml/IXmlGrammarContext.h"
#include "Debug.h"
#include "Utilities/strtools.h"
#include <string.h>
#include <sstream>
using namespace std;
//Abstract Factory Method: http://e... | 45.723247 | 235 | 0.614962 | anewholm |
b973ae8d5c0bf3c1a2b3f26a9a1addd3cd985d9f | 871 | cpp | C++ | VCPlusPlus/CPlusPlusTest2/FindMaxIncreasingSeqInArr/FindMaxIncreasingSeqInArr.cpp | madbadPi/TelerikAcademy | 37eafec75b510b636a1e7da55fffed7bdc7f3d85 | [
"MIT"
] | null | null | null | VCPlusPlus/CPlusPlusTest2/FindMaxIncreasingSeqInArr/FindMaxIncreasingSeqInArr.cpp | madbadPi/TelerikAcademy | 37eafec75b510b636a1e7da55fffed7bdc7f3d85 | [
"MIT"
] | null | null | null | VCPlusPlus/CPlusPlusTest2/FindMaxIncreasingSeqInArr/FindMaxIncreasingSeqInArr.cpp | madbadPi/TelerikAcademy | 37eafec75b510b636a1e7da55fffed7bdc7f3d85 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
std::vector<int> findmaxseqinarr(int myarray[], int size)
{
std::vector<int> newarr;
int counter = 0;
int max = 0;
for (int i = 0; i < size-1; i++)
{
while (myarray[i] == myarray[i+1]-1)
{
counter++;
i++;
}
if (counter > max)
{
newarr.clear();
for (int... | 18.145833 | 64 | 0.562572 | madbadPi |
b974066187415007e1644ec04a17d83b076aaaed | 2,833 | cc | C++ | chrome/browser/ui/views/chrome_web_dialog_view.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | chrome/browser/ui/views/chrome_web_dialog_view.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | chrome/browser/ui/views/chrome_web_dialog_view.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.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/extensions/chrome_extension_web_contents_observer.h"
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/browser/... | 38.808219 | 80 | 0.703142 | zipated |
b975a9f2fd71c785a56edc527f87d59d0bc1b788 | 686 | hpp | C++ | tau/TauEngine/include/dx/dx12/DX12CommandQueue.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | 1 | 2020-04-22T04:07:01.000Z | 2020-04-22T04:07:01.000Z | tau/TauEngine/include/dx/dx12/DX12CommandQueue.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | tau/TauEngine/include/dx/dx12/DX12CommandQueue.hpp | hyfloac/TauEngine | 1559b2a6e6d1887b8ee02932fe0aa6e5b9d5652c | [
"MIT"
] | null | null | null | #pragma once
#include "graphics/CommandQueue.hpp"
#ifdef _WIN32
#include <d3d12.h>
class TAU_DLL DX12CommandQueue final : public ICommandQueue
{
DELETE_CM(DX12CommandQueue);
private:
ID3D12CommandQueue* _d3dQueue;
public:
DX12CommandQueue(ID3D12CommandQueue* const d3dQueue) noexcept
: _d3dQueue(d... | 25.407407 | 93 | 0.744898 | hyfloac |
b9778f9ed814307723bfeead10ffed356ba446b2 | 615 | cpp | C++ | Hacke Rank Problems/Summation of primes.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | Hacke Rank Problems/Summation of primes.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | Hacke Rank Problems/Summation of primes.cpp | anand434/-Algorithm-And-DataStructures | e4197db5342def163a8bd22de4187b90bc5ff1d3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector <int> v;
bool isPrime(int x){
for(int i = 3 ; i <= (int)sqrt(x) ; i+=2)
if(x%i==0)
return false;
return true;
}
void genPrime(){
v.push_back(2);
v.push_back(3);
for(int i = 5 ; i < 1000001 ; i+=2){
if(i%3 != 0)
... | 18.636364 | 45 | 0.426016 | anand434 |