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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
221401a6eff107280df2b62b14a5c9d0b852a75a | 7,945 | cc | C++ | Cassie_Example/opt_two_step/periodic/c_code/src/gen/Js_ddh_LeftToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/periodic/c_code/src/gen/Js_ddh_LeftToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Cassie_Example/opt_two_step/periodic/c_code/src/gen/Js_ddh_LeftToeBottom_cassie.cc | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 09:03:12 GMT-04:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "frost/gen/Js_ddh_LeftToeBottom_cassie.hh"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE inline ... | 21.130319 | 83 | 0.663436 | prem-chand |
22145a726afc6e780537042e0710486590beb861 | 1,810 | cpp | C++ | src/algebra/curves/edwards/edwards_pp.cpp | amiller/libsnark | d34b477ed9c0e36f74c78946012658bdecde0c00 | [
"MIT"
] | null | null | null | src/algebra/curves/edwards/edwards_pp.cpp | amiller/libsnark | d34b477ed9c0e36f74c78946012658bdecde0c00 | [
"MIT"
] | null | null | null | src/algebra/curves/edwards/edwards_pp.cpp | amiller/libsnark | d34b477ed9c0e36f74c78946012658bdecde0c00 | [
"MIT"
] | null | null | null | /** @file
*****************************************************************************
* @author This file is part of libsnark, developed by SCIPR Lab
* and contributors (see AUTHORS).
* @copyright MIT license (see LICENSE file)
********************************************************************... | 27.014925 | 79 | 0.599448 | amiller |
2214a8bab85388c389cbc2c0f8a6122974a0e905 | 2,153 | cpp | C++ | src/Emulators/nestopiaue/core/board/NstBoardJalecoJf17.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 34 | 2021-05-29T07:04:17.000Z | 2022-03-10T20:16:03.000Z | src/Emulators/nestopiaue/core/board/NstBoardJalecoJf17.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-25T13:05:21.000Z | 2022-01-19T17:35:17.000Z | src/Emulators/nestopiaue/core/board/NstBoardJalecoJf17.cpp | slajerek/RetroDebugger | e761e4f9efd103a05e65ef283423b142fa4324c7 | [
"Apache-2.0",
"MIT"
] | 6 | 2021-12-24T18:37:41.000Z | 2022-02-06T23:06:02.000Z | ////////////////////////////////////////////////////////////////////////////////////////
//
// Nestopia - NES/Famicom emulator written in C++
//
// Copyright (C) 2003-2008 Martin Freij
//
// This file is part of Nestopia.
//
// Nestopia is free software; you can redistribute it and/or modify
// it under the te... | 26.256098 | 159 | 0.570831 | slajerek |
2214d19b7d70c44ade25603a62fff62bdda90e63 | 3,584 | cc | C++ | tests/test_sha256.cc | lichray/macrofree-demo | dabe03b3be4f0d5e05f4bb28cf253619ee223ad5 | [
"BSD-2-Clause"
] | 3 | 2019-10-15T01:42:33.000Z | 2019-11-15T05:12:28.000Z | tests/test_sha256.cc | lichray/macrofree-demo | dabe03b3be4f0d5e05f4bb28cf253619ee223ad5 | [
"BSD-2-Clause"
] | null | null | null | tests/test_sha256.cc | lichray/macrofree-demo | dabe03b3be4f0d5e05f4bb28cf253619ee223ad5 | [
"BSD-2-Clause"
] | null | null | null | #include <doctest/doctest.h>
#include <macrofree_demo/sha256.h>
#include <macrofree_demo/sha256_implementations.h>
#include <string_view>
using namespace macrofree_demo;
using namespace std::literals;
TYPE_TO_STRING(sha256_openssl);
TYPE_TO_STRING(sha256_cng);
SCENARIO_TEMPLATE_DEFINE ("feed sha256 inputs", T, tes... | 26.352941 | 79 | 0.504743 | lichray |
22221e66f35f6c6059c1ade5dbd101fcbb4c4b47 | 514 | cpp | C++ | SourceCode/Chapter 15/GradedActivity Version 3/PassFailActivity.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/Chapter 15/PassFailActivity/PassFailActivity.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/Chapter 15/PassFailActivity/PassFailActivity.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | #include "PassFailActivity.h"
//******************************************************
// Member function PassFailActivity::getLetterGrade *
// This function returns 'P' if the score is passing, *
// otherwise it returns 'F'. *
//******************************************************
cha... | 27.052632 | 56 | 0.480545 | aceiro |
2224fa53d15ae417f12d204ef9c7acb15b06e6b5 | 2,224 | hpp | C++ | include/gridtools/boundaries/direction.hpp | tehrengruber/gridtools | 92bbbf65174d440c28a33babffde41b46ed943de | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/boundaries/direction.hpp | tehrengruber/gridtools | 92bbbf65174d440c28a33babffde41b46ed943de | [
"BSD-3-Clause"
] | null | null | null | include/gridtools/boundaries/direction.hpp | tehrengruber/gridtools | 92bbbf65174d440c28a33babffde41b46ed943de | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#pragma once
/**
@file
@brief definition of direction in a 3D cartesian grid
*/
namespace gridtools {
namespace boundaries {... | 28.151899 | 102 | 0.503597 | tehrengruber |
2226718a81a4b52ad987ff20dcc7882042d03526 | 424 | cpp | C++ | _includes/leet022/leet022_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | _includes/leet022/leet022_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | 8 | 2019-12-19T04:46:05.000Z | 2022-02-26T03:45:22.000Z | _includes/leet022/leet022_1.cpp | mingdaz/leetcode | 64f2e5ad0f0446d307e23e33a480bad5c9e51517 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<string> generateParenthesis(int n) {
vector<string> res;
helper("",n,0,res);
return res;
}
void helper(string cur, int left, int right,vector<string>& res){
if(!left&&!right) res.push_back(cur);
else{
if(left>0) helper(cu... | 26.5 | 72 | 0.537736 | mingdaz |
2227f9972117dce06a1507be79c5659f570d265c | 360 | cpp | C++ | SimCore/model/Chip/Chip.cpp | kino-6/BuiltInSystemSimulator | 63d447f89c0c9166b93a96844d2d103f9d00a4b2 | [
"Apache-2.0"
] | null | null | null | SimCore/model/Chip/Chip.cpp | kino-6/BuiltInSystemSimulator | 63d447f89c0c9166b93a96844d2d103f9d00a4b2 | [
"Apache-2.0"
] | null | null | null | SimCore/model/Chip/Chip.cpp | kino-6/BuiltInSystemSimulator | 63d447f89c0c9166b93a96844d2d103f9d00a4b2 | [
"Apache-2.0"
] | null | null | null | #include "Chip.h"
SFR g_sfr;
Chip::Chip(void) {
this->Reset();
}
Chip::~Chip(void) {
}
void Chip::Main(void) {
this->fetch_sfr();
this->sfr.TMR += 1;
this->reflect_sfr();
}
void Chip::reflect_sfr(void) {
g_sfr = this->sfr;
}
void Chip::fetch_sfr(void) {
this->sfr = g_sfr;
}
void Chip::Reset(void) {
... | 10.285714 | 30 | 0.591667 | kino-6 |
22285afe5975218c2971ec1b925c6f10700cb402 | 5,913 | cpp | C++ | src/map/generator/modules/Water.cpp | Yukkurigame/Yukkuri | 3c8440b6b4e4d14cf6eec5685504839e4e714036 | [
"MIT"
] | 2 | 2017-05-15T19:28:37.000Z | 2018-03-31T01:10:19.000Z | src/map/generator/modules/Water.cpp | Yukkurigame/Yukkuri | 3c8440b6b4e4d14cf6eec5685504839e4e714036 | [
"MIT"
] | null | null | null | src/map/generator/modules/Water.cpp | Yukkurigame/Yukkuri | 3c8440b6b4e4d14cf6eec5685504839e4e714036 | [
"MIT"
] | null | null | null | /*
* Water.cpp
*
* Created on: 13.04.2013
*/
#include "map/generator/modules/Water.h"
#include "debug.h"
#include "hacks.h"
namespace MapWater
{
void redistributeMoisture( list< Corner* >& );
void calculateWatersheds( );
void createRivers( );
void assignCornerMoisture( );
void assignPolygonMoisture( );
M... | 22.655172 | 72 | 0.643666 | Yukkurigame |
222860ac5e12896f94c5162e06f71dbb82925e31 | 4,386 | cpp | C++ | extsamp/company.cpp | OS2World/DEV-SAMPLES-SOM-IBM | 083a80ccf1c7afe2518f3cbf90998ccc5cf44391 | [
"BSD-3-Clause"
] | null | null | null | extsamp/company.cpp | OS2World/DEV-SAMPLES-SOM-IBM | 083a80ccf1c7afe2518f3cbf90998ccc5cf44391 | [
"BSD-3-Clause"
] | null | null | null | extsamp/company.cpp | OS2World/DEV-SAMPLES-SOM-IBM | 083a80ccf1c7afe2518f3cbf90998ccc5cf44391 | [
"BSD-3-Clause"
] | null | null | null | /*
*
* 25H7912 (C) COPYRIGHT International Business Machines Corp. 1992,1996,1996
* All Rights Reserved
* Licensed Materials - Property of IBM
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
*
*
*
* DISCLAIMER OF WARRANT... | 37.487179 | 98 | 0.676471 | OS2World |
222a48a800ee9eae152891fa0360f5c680a2fb93 | 3,441 | cpp | C++ | CPP_Files/Button.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Button.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | CPP_Files/Button.cpp | Yaters/Knightmare | 4440fafb910054cc70bc2d01994435011226061f | [
"MIT"
] | null | null | null | #include "Button.h"
Button::Button() {
size = glm::vec2(0, 0);
pos = glm::vec2(0, 0);
charSize = 0;
stringSize = glm::vec2(0,0);
boxTitle = "Button";
}
//Basic constructor sets values
Button::Button(std::string text, glm::vec2 size, glm::vec2 pos, GLfloat charSize): text(text) {
this->size = size;
this->pos = ... | 36.606383 | 132 | 0.66347 | Yaters |
222afb49735bd5360b8912299595a6f41c97423e | 632 | cxx | C++ | deps/src/cmake-3.9.3/Source/cmProperty.cxx | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 1 | 2018-12-15T20:03:51.000Z | 2018-12-15T20:03:51.000Z | deps/src/cmake-3.9.3/Source/cmProperty.cxx | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 3 | 2021-09-08T02:18:00.000Z | 2022-03-12T00:39:44.000Z | deps/src/cmake-3.9.3/Source/cmProperty.cxx | shreyasvj25/turicreate | 32e84ca16aef8d04aff3d49ae9984bd49326bffd | [
"BSD-3-Clause"
] | 1 | 2020-10-21T17:46:28.000Z | 2020-10-21T17:46:28.000Z | /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmProperty.h"
#include "cmConfigure.h"
void cmProperty::Set(const char* value)
{
this->Value = value;
this->ValueHasBeenSet = true;
}
void cmProperty::Appe... | 21.793103 | 77 | 0.675633 | shreyasvj25 |
222f8e1a3a058234efb038ca7dec8660bb15a64a | 1,350 | cpp | C++ | karum/DeleteList.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | karum/DeleteList.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | karum/DeleteList.cpp | shivanib01/codes | f0761472a4b4bea3667c0c13b1c9bcfe5b2597a3 | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdlib>
using namespace std;
class Node{
public:
int data;
Node *next;
Node(){}
Node(int d){
data=d;
next=NULL;
}
Node *insertElement(... | 21.774194 | 60 | 0.36 | shivanib01 |
223813ee934ea1341d589681143541d4a7bb278f | 3,391 | cc | C++ | chrome/browser/chromeos/policy/dlp/dlp_content_manager_browsertest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/policy/dlp/dlp_content_manager_browsertest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/policy/dlp/dlp_content_manager_browsertest.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 2020 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/chromeos/policy/dlp/dlp_content_manager.h"
#include "chrome/browser/ui/ash/chrome_screenshot_grabber.h"
#include "chrome/browser... | 42.3875 | 80 | 0.800944 | mghgroup |
22384a03b4c6699403f1350e64369b30f18ea33a | 29,186 | cpp | C++ | system/txn.cpp | zhanhaozhao/sigmod21-wkdb | b06868448125363e15a0887abafaaced8908696b | [
"Apache-2.0"
] | 1 | 2020-09-28T07:54:27.000Z | 2020-09-28T07:54:27.000Z | system/txn.cpp | zhanhaozhao/sigmod21-wkdb | b06868448125363e15a0887abafaaced8908696b | [
"Apache-2.0"
] | null | null | null | system/txn.cpp | zhanhaozhao/sigmod21-wkdb | b06868448125363e15a0887abafaaced8908696b | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2016 Massachusetts Institute of Technology
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 applicab... | 28.698132 | 145 | 0.681902 | zhanhaozhao |
22386e73c247825f89ce2ead691d0f9f15e97948 | 3,536 | hpp | C++ | Include/Events/Receiver.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Events/Receiver.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | Include/Events/Receiver.hpp | igorlev91/DemoEngine | 8aaef0d3504826c9dcabe0a826a54613fca81c87 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Common/Debug.hpp"
#include "Events/Dispatcher.hpp"
#include "Events/Delegate.hpp"
// Forward declarations.
namespace Common
{
template<typename Type>
class DispatcherBase;
template<typename Type>
class ReceiverInvoker;
}
/*
Receiver
Invokes a delegate after receiving ... | 29.22314 | 109 | 0.595871 | igorlev91 |
22453f62f0865c998d1e6f2b5ba708fbfa6b2622 | 4,965 | cpp | C++ | example/distances.cpp | mjtrautmann/AnalyticalGeometry | 86213d68c5ecfc1b0743ab90b91f4e1cb42f7ca9 | [
"MIT"
] | null | null | null | example/distances.cpp | mjtrautmann/AnalyticalGeometry | 86213d68c5ecfc1b0743ab90b91f4e1cb42f7ca9 | [
"MIT"
] | null | null | null | example/distances.cpp | mjtrautmann/AnalyticalGeometry | 86213d68c5ecfc1b0743ab90b91f4e1cb42f7ca9 | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright (c) 2022 mjtrautmann
//
// 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... | 56.420455 | 207 | 0.622961 | mjtrautmann |
22470115de1902158dd1566b554579148025e1b7 | 1,925 | cpp | C++ | tests/unit/typegen_implicit.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/typegen_implicit.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | tests/unit/typegen_implicit.cpp | joyliu37/coreir | d7e68a1f17b8925965180e08dd5ecf9397bc057e | [
"BSD-3-Clause"
] | null | null | null | #include "coreir.h"
using namespace std;
using namespace CoreIR;
int main() {
Context* c = newContext();
Namespace* g = c->getGlobal();
//Declare an implicit TypeGenerator
TypeGen* tg = TypeGenImplicit::make(
g,
"add_type", //name for the typegen
{{"width",c->Int()}} //generater parameters
... | 23.765432 | 71 | 0.54961 | joyliu37 |
2249453ec0f3b2c4062157997d230cd6a0a13a14 | 1,965 | cc | C++ | stack/basic_calculator.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | stack/basic_calculator.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | stack/basic_calculator.cc | windscope/Cracking | 0db01f531ff56428bafff72aaea1d046dbc14112 | [
"Apache-2.0"
] | null | null | null | #include <vector>
#include <stack>
#include <string>
#include <cctype>
#include <iostream>
#include <cassert>
using namespace std;
class Solution {
public:
int calculate(string s) {
stack<int> signs;
// signs record the predefine sign: signs*1()
signs.push(1);
// treat a as (a)
... | 23.392857 | 99 | 0.384733 | windscope |
224ade0e0f904ae17016aff23a2c3b0951c699de | 6,158 | cc | C++ | chainerx_cc/chainerx/array_body.cc | tkerola/chainer | 572f6eef2c3f1470911ac08332c2b5c3440edf44 | [
"MIT"
] | 1 | 2021-02-26T10:27:25.000Z | 2021-02-26T10:27:25.000Z | chainerx_cc/chainerx/array_body.cc | hitsgub/chainer | 20d4d70f5cdacc1f24f243443f5bebc2055c8f8e | [
"MIT"
] | null | null | null | chainerx_cc/chainerx/array_body.cc | hitsgub/chainer | 20d4d70f5cdacc1f24f243443f5bebc2055c8f8e | [
"MIT"
] | 2 | 2019-07-16T00:24:47.000Z | 2021-02-26T10:27:27.000Z | #include "chainerx/array_body.h"
#include <algorithm>
#include <cstdint>
#include <memory>
#include <utility>
#include "chainerx/array.h"
#include "chainerx/array_body_leak_detection.h"
#include "chainerx/array_node.h"
#include "chainerx/backward.h"
#include "chainerx/dtype.h"
#include "chainerx/error.h"
#include "ch... | 40.248366 | 138 | 0.683014 | tkerola |
224e8bd287ec00157d536cc395b5589a0d0d0fe7 | 2,412 | cc | C++ | src/cpu/backend.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | src/cpu/backend.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | src/cpu/backend.cc | aj7tesh/CTranslate2 | 8e424efdbcf40c89dca7e237a249464a95eeaf74 | [
"MIT"
] | null | null | null | #include "backend.h"
#ifdef CT2_WITH_MKL
# include <mkl.h>
#endif
#include "ctranslate2/utils.h"
#include "cpu_info.h"
namespace ctranslate2 {
namespace cpu {
#ifdef CT2_WITH_MKL
static inline bool mkl_has_fast_int_gemm() {
# if __INTEL_MKL__ > 2019 || (__INTEL_MKL__ == 2019 && __INTEL_MKL_UPDATE__ >= 5)
... | 25.935484 | 99 | 0.660862 | aj7tesh |
224f46a12acd0c706f28ddfe9f6303cc7363e10d | 7,332 | cpp | C++ | src/mapclear.cpp | SenhorGatinho/kale | a4e1819c568c3925cd7e94a8b06608e1c233ebf9 | [
"MIT"
] | 32 | 2015-03-02T05:40:42.000Z | 2022-02-21T04:13:02.000Z | src/mapclear.cpp | SenhorGatinho/kale | a4e1819c568c3925cd7e94a8b06608e1c233ebf9 | [
"MIT"
] | null | null | null | src/mapclear.cpp | SenhorGatinho/kale | a4e1819c568c3925cd7e94a8b06608e1c233ebf9 | [
"MIT"
] | 3 | 2017-02-03T05:01:51.000Z | 2022-01-10T01:38:13.000Z | #include "mapclear.h"
#include "romfile.h"
#include "level.h"
#include <cstdint>
#include <cstdio>
#include <QSpinBox>
std::vector<QRect> mapClearData[7][16];
const romaddr_t ptrMapClearL = {0x12, 0x9C7E};
const romaddr_t ptrMapClearH = {0x12, 0x9CEE};
const uint ptrMapClearB = 0x12;
const romaddr_t mapClearS... | 25.109589 | 125 | 0.563557 | SenhorGatinho |
2254e220fb9dcba2d2970100b007d57cf6fe7e40 | 4,801 | cpp | C++ | src/World.cpp | aebarber/LD41 | 9501e3bd4de5e617a36f4065f4e6ab3f898abe4c | [
"MIT"
] | null | null | null | src/World.cpp | aebarber/LD41 | 9501e3bd4de5e617a36f4065f4e6ab3f898abe4c | [
"MIT"
] | null | null | null | src/World.cpp | aebarber/LD41 | 9501e3bd4de5e617a36f4065f4e6ab3f898abe4c | [
"MIT"
] | null | null | null | #include "../include/World.hpp"
World::World () {
m_grassTexture.loadFromImage(*aw::AssetStore::getImage("grass"));
m_gravelTexture.loadFromImage(*aw::AssetStore::getImage("gravel"));
m_waterTexture.loadFromImage(*aw::AssetStore::getImage("water"));
m_mudTexture.loadFromImage(*aw::AssetStore::getImage... | 42.486726 | 206 | 0.676317 | aebarber |
225e95d5ffaf77e76ad6478fe5bc386ae7f65369 | 626 | cpp | C++ | main.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | 3 | 2019-02-23T18:20:24.000Z | 2019-02-23T18:30:18.000Z | main.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | null | null | null | main.cpp | ArionasMC/TicTacToe | 998585ca415c7d263eeb73e43840fbf98d9a4c99 | [
"Apache-2.0"
] | null | null | null | #include "SDL.h"
#include "Game.h"
#include <iostream>
using namespace std;
Game *game = NULL;
int main(int argc, char *argv[])
{
const int FPS = 60;
const int frameDelay = 1000 / FPS;
Uint32 frameStart;
int frameTime;
game = new Game();
game->init("Tic Tac Toe", 800, 600, false);
... | 16.473684 | 47 | 0.58147 | ArionasMC |
2263755966a7c0b1957e2537bbd6211cdab7d85a | 3,413 | cpp | C++ | sources/applications/livertmpdissector/src/rawtcpappprotocolhandler.cpp | rdkcmf/rdkc-rms | 65ab1efcee9e3de46a888c125f591cd48b815601 | [
"Apache-2.0"
] | 3 | 2020-07-30T19:41:00.000Z | 2020-10-28T12:52:37.000Z | sources/applications/livertmpdissector/src/rawtcpappprotocolhandler.cpp | rdkcmf/rdkc-rms | 65ab1efcee9e3de46a888c125f591cd48b815601 | [
"Apache-2.0"
] | null | null | null | sources/applications/livertmpdissector/src/rawtcpappprotocolhandler.cpp | rdkcmf/rdkc-rms | 65ab1efcee9e3de46a888c125f591cd48b815601 | [
"Apache-2.0"
] | 2 | 2020-05-11T03:19:00.000Z | 2021-07-07T17:40:47.000Z | /**
##########################################################################
# If not stated otherwise in this file or this component's LICENSE
# file the following copyright and licenses apply:
#
# Copyright 2019 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use thi... | 30.20354 | 100 | 0.726047 | rdkcmf |
226737397de0b16688a5798449b86f3abf42e80d | 6,083 | cpp | C++ | Algorithm/arcsim/adaptiveCloth/constraint.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 32 | 2016-12-13T05:49:12.000Z | 2022-02-04T06:15:47.000Z | Algorithm/arcsim/adaptiveCloth/constraint.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 2 | 2019-07-30T02:01:16.000Z | 2020-03-12T15:06:51.000Z | Algorithm/arcsim/adaptiveCloth/constraint.cpp | dolphin-li/ClothDesigner | 82b186d6db320b645ac67a4d32d7746cc9bdd391 | [
"MIT"
] | 18 | 2017-11-16T13:37:06.000Z | 2022-03-11T08:13:46.000Z | /*
Copyright ©2013 The Regents of the University of California
(Regents). All Rights Reserved. Permission to use, copy, modify, and
distribute this software and its documentation for educational,
research, and not-for-profit purposes, without fee and without a
signed licensing agreement, is hereby granted, pr... | 27.278027 | 94 | 0.644583 | dolphin-li |
226b322b2b0aae123a65e38fa7bb009e25e34675 | 44,252 | cpp | C++ | EasyCpp/Net/Curl.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 3 | 2018-02-06T05:12:41.000Z | 2020-05-12T20:57:32.000Z | EasyCpp/Net/Curl.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 41 | 2016-07-11T12:19:10.000Z | 2017-08-08T07:43:12.000Z | EasyCpp/Net/Curl.cpp | Thalhammer/EasyCpp | 6b9886fecf0aa363eaf03741426fd3462306c211 | [
"MIT"
] | 2 | 2019-08-02T10:24:36.000Z | 2020-09-11T01:45:12.000Z | #include "Curl.h"
#include <curl/curl.h>
#include <string>
#include <stdexcept>
#include <map>
#include <cstring>
#include "../StringAlgorithm.h"
// Fix for missing macro in old versions
#ifndef CURL_AT_LEAST_VERSION
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|z)
#define CURL_AT_LEAST_VERSION(x,y,z) \
(LIBCURL_... | 23.907077 | 121 | 0.684783 | Thalhammer |
226d4baca5f63f97260efa9e2d9c7ef2d2703612 | 4,404 | cc | C++ | src/thirdparty/acg_localizer/src/solver/solverbase.cc | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | src/thirdparty/acg_localizer/src/solver/solverbase.cc | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | src/thirdparty/acg_localizer/src/solver/solverbase.cc | rajvishah/ms-sfm | 0de1553c471c416ce5ca3d19c65abe36d8e17a07 | [
"MIT"
] | null | null | null | /*===========================================================================*\
* *
* ACG Localizer *
* Copyright (C) 2011 by Computer Graphics Group, RWTH Aachen *
* ... | 27.873418 | 80 | 0.45663 | rajvishah |
226efccb72784f9e6191e7a3795c1b4c7b162605 | 1,691 | cpp | C++ | Classes/Foundation/NSObject.cpp | duranamu/Foundation | 5569fb52cb93ef11dcf4f779a2d1ea4b8cfeb0df | [
"MIT"
] | 2 | 2015-06-29T06:49:20.000Z | 2016-10-30T04:25:35.000Z | Classes/Foundation/NSObject.cpp | duranamu/Foundation | 5569fb52cb93ef11dcf4f779a2d1ea4b8cfeb0df | [
"MIT"
] | null | null | null | Classes/Foundation/NSObject.cpp | duranamu/Foundation | 5569fb52cb93ef11dcf4f779a2d1ea4b8cfeb0df | [
"MIT"
] | null | null | null | /****************************************************************************
Foundation OpenSource 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, incl... | 38.431818 | 77 | 0.698995 | duranamu |
227365972f4cb42f159fc1c6f7cdf04f407e28a0 | 646 | cpp | C++ | poj/3438/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/3438/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | poj/3438/main.cpp | nimitz871016/acm | a59aba6333e48473f9ef3c3702965b5ba2c4d741 | [
"MIT"
] | null | null | null | //
// main.cpp
// 3438
// 水题
// Created by Nimitz_007 on 16/7/31.
// Copyright © 2016年 Fujian Ruijie Networks Co., Ltd. All rights reserved.
//
#include <iostream>
int main(int argc, const char * argv[]) {
int n, count;
char c,pre;
scanf("%d\n",&n);
while(n--){
count = 1;
scanf("%... | 20.1875 | 75 | 0.417957 | nimitz871016 |
22750dbcc63eb171748ad3043d12a84c0d36e940 | 72,060 | cxx | C++ | dev/ese/src/_esefile/xsum.cxx | ScriptBox99/Extensible-Storage-Engine | 3bcf428c8a041733043e18fd9ae55cffeba307b2 | [
"MIT"
] | 803 | 2021-01-30T02:25:26.000Z | 2022-03-23T15:50:48.000Z | dev/ese/src/_esefile/xsum.cxx | ScriptBox99/Extensible-Storage-Engine | 3bcf428c8a041733043e18fd9ae55cffeba307b2 | [
"MIT"
] | 10 | 2021-01-30T23:45:49.000Z | 2021-07-06T22:03:58.000Z | dev/ese/src/_esefile/xsum.cxx | ScriptBox99/Extensible-Storage-Engine | 3bcf428c8a041733043e18fd9ae55cffeba307b2 | [
"MIT"
] | 49 | 2021-01-30T11:04:35.000Z | 2022-03-24T11:25:10.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
/*******************************************************************
Each database page and database header page contains a 8-byte checksum.
The checksum is the first 8 bytes on the page. The checksum incorporates
the page number so that getti... | 32.591588 | 142 | 0.51242 | ScriptBox99 |
22790e90761843a29aec9854856aa2efcfa93323 | 1,438 | cpp | C++ | 1_Practice_CPP/_CPP_LEARNING__Switch_Operations.cpp | CyberThulhu22/CPP-Projects | d5ed94d45988e5b18ebdff3d19658af87d94a2df | [
"MIT"
] | null | null | null | 1_Practice_CPP/_CPP_LEARNING__Switch_Operations.cpp | CyberThulhu22/CPP-Projects | d5ed94d45988e5b18ebdff3d19658af87d94a2df | [
"MIT"
] | null | null | null | 1_Practice_CPP/_CPP_LEARNING__Switch_Operations.cpp | CyberThulhu22/CPP-Projects | d5ed94d45988e5b18ebdff3d19658af87d94a2df | [
"MIT"
] | 1 | 2022-01-05T04:18:05.000Z | 2022-01-05T04:18:05.000Z | // Switch Operations
//
// NAME: switchoperation.cpp
// VERSION: 0.0.0
// AUTHOR: Jesse Leverett (CyberThulhu)
// STATUS: Work In Progress
// DESCRIPTION: Basic Program That Teaches Switch Operations
// TO-DO: Build Initial Code Framework
// USAGE: switchoperation.exe
// COPYRIGHT © 20... | 26.145455 | 105 | 0.552156 | CyberThulhu22 |
227a01ac0980fa4de6464601888d40d831ba3220 | 981 | cc | C++ | chrome/browser/extensions/extension_websocket_apitest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | chrome/browser/extensions/extension_websocket_apitest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/extensions/extension_websocket_apitest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/path_service.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/test/... | 37.730769 | 77 | 0.793068 | Gitman1989 |
227d267ea08a5f01e7346694f6a213392478c00a | 401 | cpp | C++ | test/src/GTest2FieldsFENonlinearProblem.cpp | andrsd/godzilla | da2dd8918450d7d28e8f1897466eb82f2a65a467 | [
"MIT"
] | null | null | null | test/src/GTest2FieldsFENonlinearProblem.cpp | andrsd/godzilla | da2dd8918450d7d28e8f1897466eb82f2a65a467 | [
"MIT"
] | 24 | 2021-11-13T01:32:41.000Z | 2021-12-11T14:16:24.000Z | test/src/GTest2FieldsFENonlinearProblem.cpp | andrsd/godzilla | da2dd8918450d7d28e8f1897466eb82f2a65a467 | [
"MIT"
] | null | null | null | #include "GTest2FieldsFENonlinearProblem.h"
#include "Godzilla.h"
registerObject(GTest2FieldsFENonlinearProblem);
GTest2FieldsFENonlinearProblem::GTest2FieldsFENonlinearProblem(const InputParameters & params) :
GTestFENonlinearProblem(params),
iv(1)
{
}
void
GTest2FieldsFENonlinearProblem::set_up_fields()
{
... | 22.277778 | 96 | 0.783042 | andrsd |
22839c7c3a288dc0d1ee45357a36dee0ff3a1deb | 706 | hpp | C++ | Code/include/OE/Engine/Transform.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 21 | 2018-06-26T16:37:36.000Z | 2022-01-11T01:19:42.000Z | Code/include/OE/Engine/Transform.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | null | null | null | Code/include/OE/Engine/Transform.hpp | mlomb/OrbitEngine | 41f053626f05782e81c2e48f5c87b04972f9be2c | [
"Apache-2.0"
] | 3 | 2019-10-01T14:10:50.000Z | 2021-11-19T20:30:18.000Z | #ifndef ENGINE_TRANSFORM_HPP
#define ENGINE_TRANSFORM_HPP
#include "OE/Config.hpp"
#include "OE/Engine/Component.hpp"
#include "OE/Math/Vec3.hpp"
#include "OE/Math/Mat4.hpp"
namespace OrbitEngine { namespace Engine {
class Transform : public Component {
NATIVE_REFLECTION
public:
Transform();
~Transform();
... | 19.081081 | 43 | 0.719547 | mlomb |
22841b4dac3d8081a32c55ba564bf19e5a34d857 | 15,614 | cpp | C++ | src/vidhrdw/mermaid.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 8 | 2020-05-01T15:15:16.000Z | 2021-05-30T18:49:15.000Z | src/vidhrdw/mermaid.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | null | null | null | src/vidhrdw/mermaid.cpp | gameblabla/mame_nspire | 83dfe1606aba906bd28608f2cb8f0754492ac3da | [
"Unlicense"
] | 5 | 2020-05-07T18:38:11.000Z | 2021-08-03T12:57:41.000Z | /***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "tilemap.h"
#include "vidhrdw/generic.h"
unsigned char* merma... | 23.444444 | 118 | 0.626937 | gameblabla |
22866855db221634cabad0169bdeab827220463b | 128 | cpp | C++ | engine/Source.cpp | LHolmberg/L3D | 6020222700f3ee70cfbf02601bd93bfd59a8fb34 | [
"MIT"
] | null | null | null | engine/Source.cpp | LHolmberg/L3D | 6020222700f3ee70cfbf02601bd93bfd59a8fb34 | [
"MIT"
] | null | null | null | engine/Source.cpp | LHolmberg/L3D | 6020222700f3ee70cfbf02601bd93bfd59a8fb34 | [
"MIT"
] | null | null | null | #include "TESTSAMPLEFILE.h"
int main() {
Game::Startup();
while (running)
Game::Update();
Game::Shutdown();
return 0;
} | 11.636364 | 27 | 0.632813 | LHolmberg |
2288a9f0d5ffd36fe1a4e2e1cc2289293258d161 | 662 | cpp | C++ | SourceCode/Chapter 12/Pr12-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/Chapter 12/Pr12-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/Chapter 12/Pr12-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | // This program writes three rows of numbers to a file.
#include<iostream>
#include<fstream>
#include<iomanip>
using namespace std;
int main()
{
const int ROWS = 3; // Rows to write
const int COLS = 3; // Columns to write
int nums[ROWS][COLS] = { 2897, 5, 837,
34, 7, 1623,
390, 3456... | 22.827586 | 55 | 0.595166 | aceiro |
228afc782532f44f85c8c75a02be5accb5e677c2 | 2,329 | cpp | C++ | admin/activec/designer/vb98ctls/mssnapr/mssnapr/dataobjs.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/activec/designer/vb98ctls/mssnapr/mssnapr/dataobjs.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/activec/designer/vb98ctls/mssnapr/mssnapr/dataobjs.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //=--------------------------------------------------------------------------=
// dataobjs.cpp
//=--------------------------------------------------------------------------=
// Copyright (c) 1999, Microsoft Corp.
// All Rights Reserved
// Information Contained Herein Is Proprietary and Confidential... | 31.90411 | 123 | 0.451696 | npocmaka |
228e98e9c38d2139893a515586219984c9e0031b | 113 | hpp | C++ | redvoid/src/DLL.hpp | fictionalist/RED-VOID | 01bacd893f095748d784e494c80a6a9c96481acc | [
"MIT"
] | 1 | 2021-01-04T01:31:34.000Z | 2021-01-04T01:31:34.000Z | redvoid/src/DLL.hpp | fictionalist/RED-VOID | 01bacd893f095748d784e494c80a6a9c96481acc | [
"MIT"
] | null | null | null | redvoid/src/DLL.hpp | fictionalist/RED-VOID | 01bacd893f095748d784e494c80a6a9c96481acc | [
"MIT"
] | 1 | 2021-01-05T00:55:47.000Z | 2021-01-05T00:55:47.000Z | #pragma once
#include <Windows.h>
namespace DLL {
void init();
void quit();
DWORD WINAPI main(LPVOID lp);
}
| 11.3 | 30 | 0.672566 | fictionalist |
228f97ad7c8a18ceeaf766bfe8470114312b1d06 | 12,309 | cpp | C++ | SDL2/SDL2Engine/SDL2Engine/Player.cpp | functard/INK.-A-SDL-2-GAME | 2b65706c65ba38fa909c8b7726863f3c4e835748 | [
"MIT"
] | 1 | 2022-02-22T13:42:44.000Z | 2022-02-22T13:42:44.000Z | SDL2/SDL2Engine/SDL2Engine/Player.cpp | functard/INK.-A-SDL-2-GAME | 2b65706c65ba38fa909c8b7726863f3c4e835748 | [
"MIT"
] | null | null | null | SDL2/SDL2Engine/SDL2Engine/Player.cpp | functard/INK.-A-SDL-2-GAME | 2b65706c65ba38fa909c8b7726863f3c4e835748 | [
"MIT"
] | null | null | null | #pragma region project include
#include "Player.h"
#include "Input.h"
#include "Engine.h"
#include "Renderer.h"
#include "ContentManagement.h"
#include "Config.h"
#include "Bullet.h"
#include "MenuScene.h"
#include "MainScene.h"
#include "Animation.h"
#include "Sound.h"
#include "Texture.h"
#include "Config.h"
#include... | 20.79223 | 115 | 0.699488 | functard |
22941298dfcca580c5dc668974c30d6ed6b491c1 | 397 | hpp | C++ | Parser/includes/RapidJsonErrorHandler.hpp | LiardeauxQ/r-type | 8a77164c276b2d5958cd3504a9ea34f1cf6823cf | [
"MIT"
] | 2 | 2020-02-12T12:02:00.000Z | 2020-12-23T15:31:59.000Z | Parser/includes/RapidJsonErrorHandler.hpp | LiardeauxQ/r-type | 8a77164c276b2d5958cd3504a9ea34f1cf6823cf | [
"MIT"
] | null | null | null | Parser/includes/RapidJsonErrorHandler.hpp | LiardeauxQ/r-type | 8a77164c276b2d5958cd3504a9ea34f1cf6823cf | [
"MIT"
] | 2 | 2020-02-12T12:02:03.000Z | 2020-12-23T15:32:55.000Z | //
// Created by Quentin Liardeaux on 11/18/19.
//
#ifndef R_TYPE_RAPIDJSONERRORHANDLER_HPP
#define R_TYPE_RAPIDJSONERRORHANDLER_HPP
#include <string>
#include "ParseError.hpp"
#include "rapidjson/document.h"
class RapidJsonErrorHandler {
public:
static const rapidjson::Value &getValidValue(rapidjson::Value co... | 19.85 | 98 | 0.783375 | LiardeauxQ |
2294966034f0c3b8f277cccd7cae798cfcec69a5 | 14,328 | cpp | C++ | CT/CT_PhysX.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | CT/CT_PhysX.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | CT/CT_PhysX.cpp | ca1773130n/CubeTop | 15059ad1c82723738d6c2bfb529663eb0796ff50 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "CT_PhysX.h"
#include "CT_Object.h"
#include "NxCooking.h"
#include "Stream.h"
#include <vector>
/*************************************************************************************************************************************************************/
/* 피직스 클래스 ... | 34.277512 | 159 | 0.490717 | ca1773130n |
22956c2e81ae51d0c6242c8b621d1af1d84506f4 | 3,022 | cpp | C++ | Source/ThirdParty/embree/kernels/bvh/bvh_intersector_stream_bvh4.cpp | vinhig/rbfx | 884de45c623d591f346a2abd5e52edaa84bcc137 | [
"MIT"
] | 441 | 2018-12-26T14:50:23.000Z | 2021-11-05T03:13:27.000Z | Source/ThirdParty/embree/kernels/bvh/bvh_intersector_stream_bvh4.cpp | vinhig/rbfx | 884de45c623d591f346a2abd5e52edaa84bcc137 | [
"MIT"
] | 221 | 2018-12-29T17:40:23.000Z | 2021-11-06T21:41:55.000Z | Source/ThirdParty/embree/kernels/bvh/bvh_intersector_stream_bvh4.cpp | vinhig/rbfx | 884de45c623d591f346a2abd5e52edaa84bcc137 | [
"MIT"
] | 101 | 2018-12-29T13:08:10.000Z | 2021-11-02T09:58:37.000Z | // Copyright 2009-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
#include "bvh_intersector_stream.cpp"
namespace embree
{
namespace isa
{
////////////////////////////////////////////////////////////////////////////////
/// General BVHIntersectorStreamPacketFallback Intersector
////////... | 81.675676 | 199 | 0.747849 | vinhig |
2296489d805f3296218ed09ab0eef7438d470912 | 1,181 | hpp | C++ | include/NGGMergeOperator.hpp | NikolasGialitsis/NGramGraphParallel | 26427e7ff39ba591a8c7eedd0ace458f1821a876 | [
"Apache-2.0"
] | 1 | 2021-09-17T08:51:55.000Z | 2021-09-17T08:51:55.000Z | include/NGGMergeOperator.hpp | NikolasGialitsis/NGramGraphParallel | 26427e7ff39ba591a8c7eedd0ace458f1821a876 | [
"Apache-2.0"
] | 1 | 2021-05-24T10:36:50.000Z | 2021-05-24T10:36:50.000Z | include/NGGMergeOperator.hpp | NikolasGialitsis/NGramGraphParallel | 26427e7ff39ba591a8c7eedd0ace458f1821a876 | [
"Apache-2.0"
] | 1 | 2021-05-09T16:00:52.000Z | 2021-05-09T16:00:52.000Z | #ifndef NGGMERGEOPERATOR_H
#define NGGMERGEOPERATOR_H
#include "BinaryOperator.hpp"
#include "NGGUpdateOperator.hpp"
#include "NGramGraph.hpp"
//TODO Add an NGGUpdateOperator object as a member field, and set it's operands in the apply().
/*
* \class Implements the merge operator for NGramGraph objects.
* The oper... | 29.525 | 103 | 0.748518 | NikolasGialitsis |
229a78f7772aecb1f99d4f1a67c4c40bba56a308 | 2,610 | cpp | C++ | src/InputFileParser/AuxDataParser.cpp | dgoldri25/WaterPaths | 08f098e5f8baf93bc25098aa450650a4632c7eb6 | [
"Apache-2.0"
] | 11 | 2018-07-30T01:47:55.000Z | 2021-07-28T22:17:07.000Z | src/InputFileParser/AuxDataParser.cpp | bernardoct/RevampedTriangleModel | 122116eb5b32efd35f4212f09511cd68528462be | [
"Apache-2.0"
] | 26 | 2018-06-26T15:48:20.000Z | 2021-01-12T15:48:59.000Z | src/InputFileParser/AuxDataParser.cpp | bernardoct/RevampedTriangleModel | 122116eb5b32efd35f4212f09511cd68528462be | [
"Apache-2.0"
] | 9 | 2018-12-08T02:47:39.000Z | 2021-07-26T15:34:22.000Z | //
// Created by bernardo on 11/27/19.
//
#include <algorithm>
#include "AuxDataParser.h"
#include "../Utils/Utils.h"
#include "AuxParserFunctions.h"
vector<vector<int>> AuxDataParser::parseReservoirUtilityConnectivityMatrix(
vector<vector<string>> &block, const map<string, int> &ws_name_to_id,
const... | 37.285714 | 82 | 0.560536 | dgoldri25 |
229ac60f794443c7a788c4501ceb9f18de1e7ff9 | 8,201 | cc | C++ | gen_secondary_antiproton_source.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null | gen_secondary_antiproton_source.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null | gen_secondary_antiproton_source.cc | bjbuckman/galprop_bb_ | 076b168f7475b3ba9fb198b6ec2df7be66b1763c | [
"MIT"
] | null | null | null |
//**.****|****.****|****.****|****.****|****.****|****.****|****.****|****.****|
// * gen_secondary_antiproton_source.cc * galprop package * 2001/05/11
//**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"****|
//**"****!****"****!****"****!****"****!****"****!****"****!****"****!****"*... | 50.006098 | 161 | 0.501524 | bjbuckman |
229bd1555a21376df233101267fa45a6458335b0 | 742 | hpp | C++ | boost/sequence/traits/size_type.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 11 | 2015-02-21T11:23:44.000Z | 2021-08-15T03:39:29.000Z | boost/sequence/traits/size_type.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | null | null | null | boost/sequence/traits/size_type.hpp | ericniebler/time_series | 4040119366cc21f25c7734bb355e4a647296a96d | [
"BSL-1.0"
] | 3 | 2015-05-09T02:25:42.000Z | 2019-11-02T13:39:29.000Z | // Copyright David Abrahams 2006. Distributed under the Boost
// Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_SEQUENCE_TRAITS_SIZE_TYPE_DWA200658_HPP
# define BOOST_SEQUENCE_TRAITS_SIZE_TYPE_DWA200658_HPP
# include <boost/... | 30.916667 | 73 | 0.752022 | ericniebler |
229e2ab063f6b8b391d4ea89f759e538bc49d474 | 2,823 | hpp | C++ | src/libs/io/binary_output_stream.hpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/libs/io/binary_output_stream.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/libs/io/binary_output_stream.hpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #pragma once
#include <type_traits>
#include <string>
#include "output_stream.hpp"
#include "utility/service_registry.hpp"
#include "utility/time.hpp"
#include "utility/flag_set.hpp"
namespace gorc {
class binary_output_stream : public output_stream {
private:
output_stream &stream;
public:
... | 29.40625 | 99 | 0.639391 | jdmclark |
22a1e69931c23ffe346ef76c330301268dc9137c | 669 | hpp | C++ | asyncnet.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | null | null | null | asyncnet.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | null | null | null | asyncnet.hpp | Chingyat/asyncnet | e012b64fcf38c9fba15dee52e467d98772926b81 | [
"MIT"
] | 1 | 2020-11-10T05:33:25.000Z | 2020-11-10T05:33:25.000Z | //
// Created by lince on 11/6/20.
//
#ifndef ASYNCNET_HPP
#define ASYNCNET_HPP
#include <asyncnet/associated_allocator.hpp>
#include <asyncnet/associated_executor.hpp>
#include <asyncnet/async_completion.hpp>
#include <asyncnet/async_result.hpp>
#include <asyncnet/defer.hpp>
#include <asyncnet/dispatch.hpp>
#include... | 26.76 | 44 | 0.796712 | Chingyat |
22a2e0e92f47a335804837d759948e065ca53ce0 | 3,707 | cpp | C++ | blast/src/objtools/readers/message_listener.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objtools/readers/message_listener.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objtools/readers/message_listener.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | /*
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyright Act... | 29.420635 | 78 | 0.604532 | mycolab |
22a3a012de375dda73818b93c8777d79f20248d9 | 10,125 | cpp | C++ | CrystalCavern/Plugins/VRM4U/Source/VRM4U/Private/VrmUtil.cpp | NikkoBertoa/test | 6e27eb89ae8fddb41535a73617704cb1c8f6e125 | [
"Apache-2.0"
] | null | null | null | CrystalCavern/Plugins/VRM4U/Source/VRM4U/Private/VrmUtil.cpp | NikkoBertoa/test | 6e27eb89ae8fddb41535a73617704cb1c8f6e125 | [
"Apache-2.0"
] | null | null | null | CrystalCavern/Plugins/VRM4U/Source/VRM4U/Private/VrmUtil.cpp | NikkoBertoa/test | 6e27eb89ae8fddb41535a73617704cb1c8f6e125 | [
"Apache-2.0"
] | null | null | null | // VRM4U Copyright (c) 2019 Haruyoshi Yamamoto. This software is released under the MIT License.
#pragma once
#include "VrmUtil.h"
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
void FImportOptionData::init() {
}
const TArray<VRMUtil::VRMBoneTable> VRMUtil::table_ue4_vrm = {
{"Root",""},
{"Pelvis... | 24.049881 | 97 | 0.679111 | NikkoBertoa |
22a7bd433656a096e6e21118b963d5287106c662 | 433 | cpp | C++ | src/atta/uiSystem/layers/editor/windows/logWindow.cpp | brenocq/atta | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 5 | 2021-11-18T02:44:45.000Z | 2021-12-21T17:46:10.000Z | src/atta/uiSystem/layers/editor/windows/logWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 1 | 2021-11-18T02:56:14.000Z | 2021-12-04T15:09:16.000Z | src/atta/uiSystem/layers/editor/windows/logWindow.cpp | Brenocq/RobotSimulator | dc0f3429c26be9b0a340e63076f00f996e9282cc | [
"MIT"
] | 3 | 2020-09-10T07:17:00.000Z | 2020-11-05T10:24:41.000Z | //--------------------------------------------------
// Atta UI System
// logWindow.cpp
// Date: 2021-12-28
// By Breno Cunha Queiroz
//--------------------------------------------------
#include <atta/uiSystem/layers/editor/windows/logWindow.h>
#include <imgui.h>
namespace atta::ui
{
void LogWindow::render()
... | 22.789474 | 58 | 0.471132 | brenocq |
22a81895bc47a1df94e35679c5d89285e4847a96 | 1,332 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 14 ( Recursion)/main(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 14 ( Recursion)/main(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab 14 ( Recursion)/main(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int fibonacci(int n)
{
if((n==1)||(n==0))
{
return(n);
}
else
{
return(fibonacci(n-1)+fibonacci(n-2));
}
}
int factorial(int n)
{
if(n==1)
return 1;
else
return n*factorial (n-1);
}
int add(int n)
{
if(n != 0)
retu... | 14.021053 | 67 | 0.511261 | diptu |
22a892bf8494cb0101a3d4e48295ffaa2af74f6e | 1,424 | cpp | C++ | Competitive Programming/RotaUFMG/Roteiro 3 (DC, Backtracking, Brute Force)/DontGetRooked.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 3 | 2018-12-18T13:39:42.000Z | 2021-06-23T18:05:18.000Z | Competitive Programming/RotaUFMG/Roteiro 3 (DC, Backtracking, Brute Force)/DontGetRooked.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 1 | 2018-11-02T21:32:40.000Z | 2018-11-02T22:47:12.000Z | Competitive Programming/RotaUFMG/Roteiro 3 (DC, Backtracking, Brute Force)/DontGetRooked.cpp | NelsonGomesNeto/ProgramC | e743b1b869f58f7f3022d18bac00c5e0b078562e | [
"MIT"
] | 6 | 2018-10-27T14:07:52.000Z | 2019-11-14T13:49:29.000Z | #include <bits/stdc++.h>
using namespace std;
int size;
char board[4][4 + 1];
int canPut(int i, int j)
{
int left, right, up, down; left = right = up = down = 1;
for (int k = 0; k < size; k ++)
{
if (j + k < size && board[i][j + k] == 'X') right = 0;
if (j - k >= 0 && board[i][j - k] == 'X') left = 0;
... | 24.551724 | 67 | 0.456461 | NelsonGomesNeto |
22ac6edc23e3ee23a1513a485413b9f292131d90 | 27,483 | cc | C++ | src/messages.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | src/messages.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | src/messages.cc | qian-long/TileDB-multinode | ba2a38b2cc6169935c73b76af8c53e8544c11300 | [
"MIT"
] | null | null | null | #include "messages.h"
#include <assert.h>
#include <cstring>
#include <functional>
#include "debug.h"
/******************************************************
*********************** MESSAGE **********************
******************************************************/
std::pair<char*, uint64_t> Msg::serialize() {
... | 28.12999 | 119 | 0.632573 | qian-long |
22b1285a0e087bd9dd15fa751123b318b5bc40c5 | 2,316 | cc | C++ | SimCalorimetry/EcalSimAlgos/src/EcalSimParameterMap.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2019-08-09T08:42:11.000Z | 2019-08-09T08:42:11.000Z | SimCalorimetry/EcalSimAlgos/src/EcalSimParameterMap.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | null | null | null | SimCalorimetry/EcalSimAlgos/src/EcalSimParameterMap.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 1 | 2020-01-10T13:36:46.000Z | 2020-01-10T13:36:46.000Z | #include "SimCalorimetry/EcalSimAlgos/interface/EcalSimParameterMap.h"
#include "DataFormats/DetId/interface/DetId.h"
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
#include <iostream>
/** Relevant constants are:
4.5 photoelectrons per MeV (J. Nash's slides)
APD gain 50, but analog signal stays in ... | 42.109091 | 88 | 0.629965 | nistefan |
22b2b4b3c01f94a387aa9b5836834c4e2d2f1e88 | 59,332 | cpp | C++ | src/fw/asdxApp.cpp | ProjectAsura/asdx12 | 359f7288557ea3e83775864f69a85b6ad11f7f62 | [
"MIT"
] | 2 | 2021-06-17T02:27:43.000Z | 2022-01-30T09:06:05.000Z | src/fw/asdxApp.cpp | ProjectAsura/asdx12 | 359f7288557ea3e83775864f69a85b6ad11f7f62 | [
"MIT"
] | null | null | null | src/fw/asdxApp.cpp | ProjectAsura/asdx12 | 359f7288557ea3e83775864f69a85b6ad11f7f62 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// File : asdxApp.cpp
// Desc : Application Module.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------
//-----------------------------------------------------... | 32.980545 | 132 | 0.450718 | ProjectAsura |
22b7ba5e81d2d7efb9193975d8083bd2b1f7aa24 | 30,303 | cpp | C++ | .References/src/github.com/elucideye/drishti_real-time_eye_tracking/src/lib/drishti/acf/GPUACF.cpp | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | .References/src/github.com/elucideye/drishti_real-time_eye_tracking/src/lib/drishti/acf/GPUACF.cpp | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | .References/src/github.com/elucideye/drishti_real-time_eye_tracking/src/lib/drishti/acf/GPUACF.cpp | roscopecoltran/SniperKit-Core | 4600dffe1cddff438b948b6c22f586d052971e04 | [
"MIT"
] | null | null | null | /*!
@file GPUACF.cpp
@author David Hirvonen
@brief Declaration of OpenGL shader optimized Aggregated Channel Feature computation.
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
*/
#include "drishti/acf/GPUACF.h"
#in... | 31.631524 | 128 | 0.618784 | roscopecoltran |
22baf5c6472ce3fb08d66673fcc75c6206009eb6 | 727 | cpp | C++ | src/ofxPixelObject.cpp | BlueJayLouche/ofxSACN_led_mapper | a8f889c78d654c16fe4acae1b98b26e266707257 | [
"MIT"
] | null | null | null | src/ofxPixelObject.cpp | BlueJayLouche/ofxSACN_led_mapper | a8f889c78d654c16fe4acae1b98b26e266707257 | [
"MIT"
] | null | null | null | src/ofxPixelObject.cpp | BlueJayLouche/ofxSACN_led_mapper | a8f889c78d654c16fe4acae1b98b26e266707257 | [
"MIT"
] | null | null | null | //
// ofxPixelObject.cpp
// sACN_Mapped
//
// Created by bluejaylouche on 19/7/21.
//
// Adapted from: https://github.com/DHaylock/ofxOPC
#include "ofxPixelObject.hpp"
//--------------------------------------------------------------
vector <ofColor> ofxPixelObject::colorData()
{
// Transmit Data
return col... | 22.71875 | 64 | 0.440165 | BlueJayLouche |
22beb06fd41d6bdf985a1e5f93853dda9cf18408 | 1,781 | cpp | C++ | Day_90.cpp | iamakkkhil/DailyCoding | 8422ddbcc2a179f3fd449871e2241ad94a845efb | [
"MIT"
] | 8 | 2021-02-07T16:31:28.000Z | 2021-06-11T18:53:23.000Z | Day_90.cpp | iamakkkhil/DailyCoding | 8422ddbcc2a179f3fd449871e2241ad94a845efb | [
"MIT"
] | null | null | null | Day_90.cpp | iamakkkhil/DailyCoding | 8422ddbcc2a179f3fd449871e2241ad94a845efb | [
"MIT"
] | 1 | 2021-05-25T17:17:58.000Z | 2021-05-25T17:17:58.000Z | /*
DAY 90: Queue using two Stacks.
https://www.geeksforgeeks.org/queue-using-stacks/
QUESTION : Implement a Queue using 2 stacks s1 and s2 .
A Query Q is of 2 Types
(i) 1 x (a query of this type means pushing 'x' into the queue)
(ii) 2 (a query of this type means to pop element from queue and print the poped... | 20.011236 | 92 | 0.590118 | iamakkkhil |
22bec18cbd71877d96e755c44e00553e11785b18 | 2,178 | cpp | C++ | oclint-rules/rules/convention/InvertedLogicRule.cpp | BGU-AiDnD/oclint | 484fed44ca0e34532745b3d4f04124cbf5bb42fa | [
"BSD-3-Clause"
] | 3,128 | 2015-01-01T06:00:31.000Z | 2022-03-29T23:43:20.000Z | oclint-rules/rules/convention/InvertedLogicRule.cpp | BGU-AiDnD/oclint | 484fed44ca0e34532745b3d4f04124cbf5bb42fa | [
"BSD-3-Clause"
] | 432 | 2015-01-03T15:43:08.000Z | 2022-03-29T02:32:48.000Z | oclint-rules/rules/convention/InvertedLogicRule.cpp | BGU-AiDnD/oclint | 484fed44ca0e34532745b3d4f04124cbf5bb42fa | [
"BSD-3-Clause"
] | 454 | 2015-01-06T03:11:12.000Z | 2022-03-22T05:49:38.000Z | #include "oclint/AbstractASTVisitorRule.h"
#include "oclint/RuleSet.h"
using namespace std;
using namespace clang;
using namespace oclint;
class InvertedLogicRule : public AbstractASTVisitorRule<InvertedLogicRule>
{
private:
bool isInvertedLogic(Expr *condExpr)
{
BinaryOperator *binaryOperator = dyn_c... | 23.934066 | 84 | 0.537649 | BGU-AiDnD |
22c13a06d5f81495bc5e3e2f13a8a9ffd6cf7ef8 | 792 | cpp | C++ | src/alphabeta.cpp | Isameru/rookmole | d93b73b3771ff34b95ab630bfc3c66e899cac480 | [
"MIT"
] | null | null | null | src/alphabeta.cpp | Isameru/rookmole | d93b73b3771ff34b95ab630bfc3c66e899cac480 | [
"MIT"
] | null | null | null | src/alphabeta.cpp | Isameru/rookmole | d93b73b3771ff34b95ab630bfc3c66e899cac480 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) Mariusz Łapiński <gmail:isameru>
██████╗ ██████╗ ██████╗ ██╗ ██╗███╗ ███╗ ██████╗ ██╗ ███████╗
██╔══██╗██╔═══██╗██╔═══██╗██║ ██╔╝████╗ ████║██╔═══██╗██║ ██╔════╝
██████╔╝██║ ██║██║ ██║█████╔╝ ██╔████╔██║██║ ██║██║ █████╗
██╔══██╗██║ ██║██║ ██║██╔═... | 36 | 99 | 0.133838 | Isameru |
42ef672c79b79129801f447209221d49f6662d0a | 2,263 | cpp | C++ | src/kpr/TimerTaskManager.cpp | hooligan520/rocketmq-clent4cpp-linux | 2f891c979229dfd78707150fa626ca3822f2d006 | [
"Apache-2.0"
] | 22 | 2017-02-17T14:28:17.000Z | 2021-02-25T10:09:04.000Z | src/kpr/TimerTaskManager.cpp | hooligan520/rocketmq-clent4cpp-linux | 2f891c979229dfd78707150fa626ca3822f2d006 | [
"Apache-2.0"
] | 2 | 2017-04-29T05:57:38.000Z | 2017-11-20T03:49:48.000Z | src/kpr/TimerTaskManager.cpp | hooligan520/rocketmq-clent4cpp-linux | 2f891c979229dfd78707150fa626ca3822f2d006 | [
"Apache-2.0"
] | 10 | 2017-02-08T03:06:57.000Z | 2020-04-18T01:48:53.000Z | /**
* Copyright (C) 2013 kangliqiang ,kangliq@163.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 24.597826 | 112 | 0.695095 | hooligan520 |
42efbd12c2e2db86eaa4d9a661f7a09220e5eeb6 | 10,269 | cc | C++ | RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitConverter.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitConverter.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | RecoLocalTracker/SiPixelRecHits/plugins/SiPixelRecHitConverter.cc | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | /** SiPixelRecHitConverter.cc
* ------------------------------------------------------
* Description: see SiPixelRecHitConverter.h
* Authors: P. Maksimovic (JHU), V.Chiochia (Uni Zurich)
* History: Feb 27, 2006 - initial version
* May 30, 2006 - edm::DetSetVector and edm::Ref
* Aug 30, 2007 ... | 42.609959 | 110 | 0.645146 | SWuchterl |
42efc8c6d1796bfa80677ea5a109b1bbda8f5662 | 4,849 | cpp | C++ | src/Utilities/tests/test_parser.cpp | bwvdg/qmcpack | cd09fc54b36de2579c9802f5e64b7ec15506f3c3 | [
"NCSA"
] | null | null | null | src/Utilities/tests/test_parser.cpp | bwvdg/qmcpack | cd09fc54b36de2579c9802f5e64b7ec15506f3c3 | [
"NCSA"
] | null | null | null | src/Utilities/tests/test_parser.cpp | bwvdg/qmcpack | cd09fc54b36de2579c9802f5e64b7ec15506f3c3 | [
"NCSA"
] | null | null | null | #//////////////////////////////////////////////////////////////////////////////////////
#// This file is distributed under the University of Illinois/NCSA Open Source License.
#// See LICENSE file in top directory for details.
#//
#// Copyright (c) 2016 Jeongnim Kim and QMCPACK developers.
#//
#// File developed by: Ye... | 28.863095 | 149 | 0.532068 | bwvdg |
42f060a507ace5f9dc44c2790a1b9437d42127ed | 1,626 | cpp | C++ | src/Gui/Settings/SettingsWidget.cpp | AndrzejWoronko/WebPassWare | 9af0df61a9279f1ffe8561714656265f4bec7939 | [
"MIT"
] | null | null | null | src/Gui/Settings/SettingsWidget.cpp | AndrzejWoronko/WebPassWare | 9af0df61a9279f1ffe8561714656265f4bec7939 | [
"MIT"
] | null | null | null | src/Gui/Settings/SettingsWidget.cpp | AndrzejWoronko/WebPassWare | 9af0df61a9279f1ffe8561714656265f4bec7939 | [
"MIT"
] | null | null | null | #include "SettingsWidget.h"
SettingsWidget::SettingsWidget(QWidget *parent) : QWidget (parent)
{
setGraphicElements();
setGraphicSettings();
setConnections();
}
SettingsWidget::~SettingsWidget()
{
safe_delete(m_look_widget)
safe_delete(m_database_widget)
safe_delete(m_list)
safe_delete(m_... | 28.526316 | 122 | 0.735547 | AndrzejWoronko |
42f5d1312109441a9d02860cd74c28eed0da86c8 | 2,960 | hpp | C++ | ComponentFramework/SystemHandlerTemplate.hpp | autious/kravall_entity_component_framework | a4380ea9135c2ad7aac444c0d52837eb1a43319d | [
"MIT"
] | 7 | 2015-06-21T20:23:12.000Z | 2020-01-04T20:20:56.000Z | ComponentFramework/SystemHandlerTemplate.hpp | autious/kravall_entity_component_framework | a4380ea9135c2ad7aac444c0d52837eb1a43319d | [
"MIT"
] | null | null | null | ComponentFramework/SystemHandlerTemplate.hpp | autious/kravall_entity_component_framework | a4380ea9135c2ad7aac444c0d52837eb1a43319d | [
"MIT"
] | null | null | null | #ifndef SRC_CORE_COMPONENTFRAMEWORK_SYSTEMHANDLER_H
#define SRC_CORE_COMPONENTFRAMEWORK_SYSTEMHANDLER_H
#include "BaseSystem.hpp"
#include "PVector.hpp"
#include <TemplateUtility/TemplateIndex.hpp>
#include <array>
#include <utility>
#include <vector>
#include <Timer.hpp>
#define GNAME( name ) #name
namespace Co... | 25.517241 | 131 | 0.556757 | autious |
42f82baaa8b1c4c175089148c6959535148f32b9 | 228,601 | cpp | C++ | GCG_Source.build/module.oauthlib.oauth2.rfc6749.grant_types.refresh_token.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.oauthlib.oauth2.rfc6749.grant_types.refresh_token.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.oauthlib.oauth2.rfc6749.grant_types.refresh_token.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | /* Generated code for Python source for module 'oauthlib.oauth2.rfc6749.grant_types.refresh_token'
* created by Nuitka version 0.5.28.2
*
* This code is in part copyright 2017 Kay Hayen.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... | 33.912031 | 278 | 0.708938 | Pckool |
42fad074269bfefe00101ce8a49dd37741bfa172 | 7,992 | cxx | C++ | cmake-2.8.10.1/Source/cmOSXBundleGenerator.cxx | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | 1 | 2016-04-09T02:58:13.000Z | 2016-04-09T02:58:13.000Z | cmake-2.8.10.1/Source/cmOSXBundleGenerator.cxx | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | cmake-2.8.10.1/Source/cmOSXBundleGenerator.cxx | vidkidz/crossbridge | ba0bf94aee0ce6cf7eb5be882382e52bc57ba396 | [
"MIT"
] | null | null | null | /*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2012 Nicolas Despres <nicolas.despres@gmail.com>
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software i... | 33.721519 | 78 | 0.603729 | vidkidz |
42fd626ce7e61f29accaa7671597789e8a94f46f | 7,529 | cpp | C++ | SharedUtility/MyOGL/MyOGLDynamicFontRects.cpp | sygh-JP/FbxModelViewer | 690387451accd99f63e4385decc4cbbfea1c1603 | [
"MIT"
] | 12 | 2017-07-27T10:37:20.000Z | 2021-12-12T02:07:44.000Z | SharedUtility/MyOGL/MyOGLDynamicFontRects.cpp | sygh-JP/FbxModelViewer | 690387451accd99f63e4385decc4cbbfea1c1603 | [
"MIT"
] | 1 | 2018-02-22T20:32:38.000Z | 2018-02-22T20:32:38.000Z | SharedUtility/MyOGL/MyOGLDynamicFontRects.cpp | sygh-JP/FbxModelViewer | 690387451accd99f63e4385decc4cbbfea1c1603 | [
"MIT"
] | 4 | 2018-03-06T15:12:54.000Z | 2020-10-01T22:53:47.000Z | #include "stdafx.h"
#include "MyOGLDynamicFontRects.hpp"
namespace MyOGL
{
bool MyDynamicManyRectsBase::Create(uint32_t rectCount, uint32_t strideInBytes, const void* pInitialData)
{
_ASSERTE(m_vertexBuffer.get() == 0);
//_ASSERTE(pInitialData != nullptr); // OpenGL では D3D と違って頂点バッファ初期化用データに NULL も一... | 41.368132 | 240 | 0.703148 | sygh-JP |
42ffd885db326c66c1a72511a5313064b489a854 | 13,387 | cc | C++ | coral/dmabuf/model_pipelining_dmabuf_devboard_test.cc | cpcloud/libcoral | 8b21123c74d1f19c94b9d37aa16b26b80ef5e83b | [
"Apache-2.0"
] | null | null | null | coral/dmabuf/model_pipelining_dmabuf_devboard_test.cc | cpcloud/libcoral | 8b21123c74d1f19c94b9d37aa16b26b80ef5e83b | [
"Apache-2.0"
] | null | null | null | coral/dmabuf/model_pipelining_dmabuf_devboard_test.cc | cpcloud/libcoral | 8b21123c74d1f19c94b9d37aa16b26b80ef5e83b | [
"Apache-2.0"
] | null | null | null | // Tests DMA buffer support for model pipelining.
//
// It assumes the following test data inside `FLAGS_test_data_dir` folder
// - inception_v3_299_quant_edgetpu.tflite
// - pipeline/inception_v3_299_quant_segment_0_of_2_edgetpu.tflite
// - pipeline/inception_v3_299_quant_segment_1_of_2_edgetpu.tflite
#include <gli... | 33.136139 | 80 | 0.696273 | cpcloud |
42ffde66eb9f7bcaa2cbc82100fa765f1eba80b6 | 333 | hh | C++ | libalcc/copa/random.hh | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | 6 | 2021-05-19T16:58:15.000Z | 2022-03-10T03:51:20.000Z | libalcc/copa/random.hh | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | null | null | null | libalcc/copa/random.hh | comnetsAD/ALCC | fc9c627de8c381987fc775ce0872339fceb43ddf | [
"MIT"
] | 4 | 2021-05-24T11:19:18.000Z | 2022-03-08T17:58:24.000Z | #ifndef RANDOM_HH
#define RANDOM_HH
#include <boost/random/mersenne_twister.hpp>
#include <random>
typedef boost::random::mt19937 PRNG;
extern PRNG & global_PRNG();
class RandGen {
std::default_random_engine generator;
public:
RandGen();
double uniform(double a, double b);
double exponential(double lambda)... | 14.478261 | 44 | 0.747748 | comnetsAD |
6e0233838b7f37894d460f2bfe5a8566d05f8eba | 1,189 | hh | C++ | include/Attributes/StandardAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 6 | 2016-09-28T18:26:42.000Z | 2021-04-10T13:19:05.000Z | include/Attributes/StandardAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 1 | 2021-02-09T00:24:04.000Z | 2021-02-27T22:08:05.000Z | include/Attributes/StandardAttribute.hh | aaronbamberger/gerber_rs274x_parser | d2bbd6c66d322ab47715771642255f8302521300 | [
"BSD-2-Clause"
] | 5 | 2017-09-14T09:48:17.000Z | 2021-07-19T07:58:34.000Z | /*
* Copyright 2021 Aaron Bamberger
* Licensed under BSD 2-clause license
* See LICENSE file at root of source tree,
* or https://opensource.org/licenses/BSD-2-Clause
*/
#ifndef _STANDARD_ATTRIBUTE_H
#define _STANDARD_ATTRIBUTE_H
#include "Attributes/Attribute.hh"
#include "Util/ValueWithLocation.hh"
#include <... | 25.297872 | 84 | 0.827586 | aaronbamberger |
6e07ecf0b5b6d597eb132a6ed3f2aede8627d1c6 | 9,709 | cpp | C++ | src/mainwindow.cpp | AshBringer47/Graph | 0f18f0989edc49e0ca11b16bc6d179e6cb0f4f95 | [
"MIT"
] | 2 | 2015-03-07T12:31:29.000Z | 2017-08-31T03:15:21.000Z | src/mainwindow.cpp | AshBringer47/Graph | 0f18f0989edc49e0ca11b16bc6d179e6cb0f4f95 | [
"MIT"
] | null | null | null | src/mainwindow.cpp | AshBringer47/Graph | 0f18f0989edc49e0ca11b16bc6d179e6cb0f4f95 | [
"MIT"
] | 6 | 2016-10-17T02:04:29.000Z | 2019-10-13T21:12:39.000Z | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include "algorithm/getallvertexlistinordervorker.h"
#include "view/settings.h"
#include <QFileDialog>
#include <QUrl>
#include <QMessageBox>
#include "util/rand.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
... | 30.152174 | 132 | 0.639304 | AshBringer47 |
6e08be03ac82cd7eb5635d5a38622565495d536b | 424 | cpp | C++ | test/ac-library/segtree.min.test.cpp | sash2104/library | ecb52543e4f8a66300ffd8794ea9c13bc74bdb19 | [
"Unlicense"
] | null | null | null | test/ac-library/segtree.min.test.cpp | sash2104/library | ecb52543e4f8a66300ffd8794ea9c13bc74bdb19 | [
"Unlicense"
] | 10 | 2020-01-27T15:57:45.000Z | 2021-12-20T03:26:26.000Z | test/ac-library/segtree.min.test.cpp | sash2104/library | ecb52543e4f8a66300ffd8794ea9c13bc74bdb19 | [
"Unlicense"
] | null | null | null | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_2_A"
#include <iostream>
#include "../../atcoder/segtree/min.hpp"
using namespace std;
// @title セグメント木、min (ac-library)
int main() {
int n, q; cin >> n >> q;
segtree::min::type<int> seg(n);
for (int i = 0; i < q; ++i) {
int c, x,... | 24.941176 | 82 | 0.570755 | sash2104 |
6e09fa2515f524b3a4b661b90b8391205cc9dd67 | 983 | cpp | C++ | source/entity/Drain.cpp | Tomash667/carpg | 7e89d83f51cb55a89baf509915a9a9f8c642825f | [
"MIT"
] | 19 | 2015-05-30T12:14:07.000Z | 2021-05-26T19:17:21.000Z | source/entity/Drain.cpp | Tomash667/carpg | 7e89d83f51cb55a89baf509915a9a9f8c642825f | [
"MIT"
] | 402 | 2016-02-26T08:39:21.000Z | 2021-07-06T16:47:16.000Z | source/entity/Drain.cpp | Tomash667/carpg | 7e89d83f51cb55a89baf509915a9a9f8c642825f | [
"MIT"
] | 21 | 2015-07-28T14:11:39.000Z | 2020-12-11T07:54:09.000Z | #include "Pch.h"
#include "Drain.h"
#include "Unit.h"
#include <ParticleSystem.h>
//=================================================================================================
bool Drain::Update(float dt)
{
t += dt;
if(pe->manual_delete == 2)
{
delete pe;
return true;
}
if(Unit* unit = target)
{
... | 18.903846 | 99 | 0.417091 | Tomash667 |
6e0a177518fa95590055e0ff0956db84506214e0 | 26,704 | cpp | C++ | Src/Assets/Mitsuba/MitsubaLoader.cpp | dennis-lynch/GPU-Raytracer | 93eb8cfb148ca54d4e5655c63bf32f32d0d3bd9e | [
"MIT"
] | null | null | null | Src/Assets/Mitsuba/MitsubaLoader.cpp | dennis-lynch/GPU-Raytracer | 93eb8cfb148ca54d4e5655c63bf32f32d0d3bd9e | [
"MIT"
] | null | null | null | Src/Assets/Mitsuba/MitsubaLoader.cpp | dennis-lynch/GPU-Raytracer | 93eb8cfb148ca54d4e5655c63bf32f32d0d3bd9e | [
"MIT"
] | null | null | null | #include "MitsubaLoader.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "Core/Array.h"
#include "Core/HashMap.h"
#include "Core/Format.h"
#include "Core/Parser.h"
#include "Core/StringView.h"
#include "Assets/BVHLoader.h"
#include "Assets/OBJLoader.h"
#include "Assets/PLYLoader.h"
#include "R... | 38.645441 | 191 | 0.688586 | dennis-lynch |
6e15f02e9829b9cf7c214485ba63634a9445fd68 | 45,024 | hpp | C++ | Libs/jsoncons/include/jsoncons_ext/jsonpath/jsonpath_filter.hpp | Samuel-Harden/SimWorldsBoids | ae560181aa77bde75adc4ab2687952d919b4e988 | [
"MIT"
] | null | null | null | Libs/jsoncons/include/jsoncons_ext/jsonpath/jsonpath_filter.hpp | Samuel-Harden/SimWorldsBoids | ae560181aa77bde75adc4ab2687952d919b4e988 | [
"MIT"
] | null | null | null | Libs/jsoncons/include/jsoncons_ext/jsonpath/jsonpath_filter.hpp | Samuel-Harden/SimWorldsBoids | ae560181aa77bde75adc4ab2687952d919b4e988 | [
"MIT"
] | null | null | null | // Copyright 2013 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_JSONPATH_FILTER_HPP
#define JSONCONS_JSONPATH_FILTER_HPP
... | 30.076152 | 128 | 0.427172 | Samuel-Harden |
6e15f4a68a455b18d41e30fc01dab5c134fd3a9d | 216 | cpp | C++ | src/rynx/tech/reflection.cpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | 11 | 2019-08-19T08:44:14.000Z | 2020-09-22T20:04:46.000Z | src/rynx/tech/reflection.cpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null | src/rynx/tech/reflection.cpp | Apodus/rynx | 3e1babc2f2957702ba2b09d78be3a959f2f4ea18 | [
"MIT"
] | null | null | null |
#include <rynx/tech/reflection.hpp>
namespace rynx::reflection::internal {
registration_object* global_linked_list_initializer_head = nullptr;
registration_object* global_linked_list_initializer_tail = nullptr;
} | 30.857143 | 68 | 0.837963 | Apodus |
6e1636d1ea96946231d627d9212c2f85697003b9 | 584 | cpp | C++ | Day-15/Day-15-CodeForces/227-B-EffectiveApproach.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | Day-15/Day-15-CodeForces/227-B-EffectiveApproach.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | Day-15/Day-15-CodeForces/227-B-EffectiveApproach.cpp | LawranceMichaelite/100-Days-of-Code | de80015c2ab7c94956d4fe39f6e143627cdd7bc9 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main()
{
unordered_map<int , int>one;
unordered_multimap<int,int>two;
int num ;
cin >> num;
int temp ;
for(int i= 0 ; i < num ; i++)
{
cin >> temp ;
one.insert(make_pair(temp ,i));
two.insert(make_pair(temp, i));
}
int q;
... | 18.25 | 50 | 0.506849 | LawranceMichaelite |
6e17bd8e1c5370f6e1ee72f02636683003917f63 | 339 | hpp | C++ | cxx/line/line_c2.hpp | EQt/treelas | 24a5cebf101180822198806c0a4131b0efb7a36d | [
"MIT"
] | 3 | 2020-06-18T13:31:26.000Z | 2021-04-05T17:42:56.000Z | cxx/line/line_c2.hpp | EQt/treelas | 24a5cebf101180822198806c0a4131b0efb7a36d | [
"MIT"
] | null | null | null | cxx/line/line_c2.hpp | EQt/treelas | 24a5cebf101180822198806c0a4131b0efb7a36d | [
"MIT"
] | null | null | null | /* Compared to cline.hpp, save more memory */
#pragma once
template <typename float_ = double>
void
dp_line_c2(const int n,
const float_ *y,
const float_ lam,
float_ *beta);
extern template
void
dp_line_c2(const int n,
const double *y,
const double lam,
... | 17.842105 | 45 | 0.59587 | EQt |
6e1922c98d47293a8a4193f5994b49955608852c | 10,256 | cpp | C++ | test/rix/core/helpers/src/Textures.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 217 | 2015-01-06T09:26:53.000Z | 2022-03-23T14:03:18.000Z | test/rix/core/helpers/src/Textures.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 10 | 2015-01-25T12:42:05.000Z | 2017-11-28T16:10:16.000Z | test/rix/core/helpers/src/Textures.cpp | asuessenbach/pipeline | 2e49968cc3b9948a57f7ee6c4cc3258925c92ab2 | [
"BSD-3-Clause"
] | 44 | 2015-01-13T01:19:41.000Z | 2022-02-21T21:35:08.000Z | // Copyright NVIDIA Corporation 2012
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following d... | 40.698413 | 161 | 0.579076 | asuessenbach |
6e199ad362897f328f27659eb07ed40b8370fd8b | 3,835 | cpp | C++ | src/IntDivision.cpp | xf97/SolidityCheck | a859f4b65c7eea945ef7b9702c85cf3ff42f50f7 | [
"MIT"
] | 19 | 2019-11-26T21:59:41.000Z | 2022-01-23T16:32:24.000Z | src/IntDivision.cpp | xf97/SolidityCheck | a859f4b65c7eea945ef7b9702c85cf3ff42f50f7 | [
"MIT"
] | 1 | 2020-09-24T15:31:47.000Z | 2020-09-25T02:29:15.000Z | src/IntDivision.cpp | xf97/SolidityCheck | a859f4b65c7eea945ef7b9702c85cf3ff42f50f7 | [
"MIT"
] | 4 | 2020-01-05T12:18:47.000Z | 2021-12-29T15:34:04.000Z | //
// Created by xiaofeng on 2019/11/29.
//
//This program is used to judge integer division.
//source file
/*
author=__xiaofeng__
*/
//using head files
#include <iostream>
#include "IntDivision.h"
bool IntDivision::IsDivision(const string & _str)
{
if (_str.find(ID_DIV) < _str.size())
... | 23.384146 | 103 | 0.524902 | xf97 |
6e1b7f60e33117a46bdf4be9916fc50f8acd238f | 16,099 | cc | C++ | components/global_media_controls/public/media_session_item_producer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | components/global_media_controls/public/media_session_item_producer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | components/global_media_controls/public/media_session_item_producer.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/global_media_controls/public/media_session_item_producer.h"
#include "base/containers/contains.h"
#include "base/metrics/histogram_f... | 33.400415 | 89 | 0.744208 | zealoussnow |
6e1bfe314c1a6b3c6c098d2846ab7c1476252146 | 236 | hpp | C++ | wfc/logger.hpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | 1 | 2018-10-18T10:15:53.000Z | 2018-10-18T10:15:53.000Z | wfc/logger.hpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | 7 | 2019-12-04T23:36:03.000Z | 2021-04-21T12:37:07.000Z | wfc/logger.hpp | mambaru/wfc | 170bf87302487c0cedc40b47c84447a765894774 | [
"MIT"
] | null | null | null | //
// Author: Vladimir Migashko <migashko@gmail.com>, (C) 2013-2015
//
// Copyright: See COPYING file that comes with this distribution
//
#pragma once
#include <wfc/logger/logger.hpp>
namespace wfc
{
using ::wlog::only_for_log;
}
| 15.733333 | 64 | 0.707627 | mambaru |
6e1e22d26093e587114dd69b7c5c796891fac952 | 3,352 | cpp | C++ | hangman.cpp | AfaanBilal/hangman | f1b50e48039a26f25d2046dd8f209b3117e58c35 | [
"MIT"
] | 1 | 2020-01-04T19:38:26.000Z | 2020-01-04T19:38:26.000Z | hangman.cpp | AfaanBilal/hangman | f1b50e48039a26f25d2046dd8f209b3117e58c35 | [
"MIT"
] | null | null | null | hangman.cpp | AfaanBilal/hangman | f1b50e48039a26f25d2046dd8f209b3117e58c35 | [
"MIT"
] | null | null | null | /*
Hangman
(c) Afaan Bilal
Play hangman!
*/
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
#include <string>
#include <fstream>
using namespace std;
const int numWords = 50;
string wordlist[numWords];
string input;
size_t f;
int sel = 0;
int maxTries = 10;
int... | 22.346667 | 85 | 0.406026 | AfaanBilal |
6e24d37d9c5ac8ee13ad5e9a1b113c7fd9b0eedb | 8,285 | hxx | C++ | libbuild2/script/parser.hxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 422 | 2018-05-30T12:00:00.000Z | 2022-03-29T07:29:56.000Z | libbuild2/script/parser.hxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 183 | 2018-07-02T20:38:30.000Z | 2022-03-31T09:54:35.000Z | libbuild2/script/parser.hxx | build2/build2 | af662849b756ef2ff0f3d5148a6771acab78fd80 | [
"MIT"
] | 14 | 2019-01-09T12:34:02.000Z | 2021-03-16T09:10:53.000Z | // file : libbuild2/script/parser.hxx -*- C++ -*-
// license : MIT; see accompanying LICENSE file
#ifndef LIBBUILD2_SCRIPT_PARSER_HXX
#define LIBBUILD2_SCRIPT_PARSER_HXX
#include <libbuild2/types.hxx>
#include <libbuild2/forward.hxx>
#include <libbuild2/utility.hxx>
#include <libbuild2/parser.hxx>
#include <l... | 34.665272 | 79 | 0.595413 | build2 |
6e25735d9d1090bac9cc52f7c1ee1d1619a595ac | 834 | hpp | C++ | src/FeatureExtraction.hpp | Trojahn/BackShotCoSS | cf0b996720612ab4bb1b579701f50e8cdd14f2c3 | [
"MIT"
] | 1 | 2021-04-01T23:00:10.000Z | 2021-04-01T23:00:10.000Z | src/FeatureExtraction.hpp | Trojahn/BackShotCoSS | cf0b996720612ab4bb1b579701f50e8cdd14f2c3 | [
"MIT"
] | null | null | null | src/FeatureExtraction.hpp | Trojahn/BackShotCoSS | cf0b996720612ab4bb1b579701f50e8cdd14f2c3 | [
"MIT"
] | 2 | 2016-08-27T17:29:27.000Z | 2018-11-05T02:10:45.000Z | #ifndef FEATUREEXTRACTION_H
#define FEATUREEXTRACTION_H
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include <iostream>
#include <sstream>
#include <string>
#include <fstream>
#include <iomanip>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cma... | 21.947368 | 102 | 0.747002 | Trojahn |
6e294a0debd6730c77212cc53db0ebf86335b103 | 2,178 | hpp | C++ | src/include/randest/ks_test.hpp | renegat96/randest | 29449ff61398526cc1b88a1f003ed8fddef14693 | [
"MIT"
] | null | null | null | src/include/randest/ks_test.hpp | renegat96/randest | 29449ff61398526cc1b88a1f003ed8fddef14693 | [
"MIT"
] | null | null | null | src/include/randest/ks_test.hpp | renegat96/randest | 29449ff61398526cc1b88a1f003ed8fddef14693 | [
"MIT"
] | null | null | null | /*
* Kolmogorov-Smirnov goodness-of-fit test.
* H_0 the data follow a specified distribution
* H_a the data do not follow the specified distribution
* D = max (F(Y_i) -
* */
#pragma once
#include <functional>
#include <randest/test.hpp>
#include <randest/data_provider.hpp>
#include <randest/data_sort.hpp... | 27.923077 | 107 | 0.556933 | renegat96 |
6e2c5d22fbd5e41daabc748c5eb43e2e1c6679a6 | 2,310 | cpp | C++ | backends/graphs/graphs.cpp | srivani/p4c | 6891448af6834c0798350f4b2a7c54ad3532148e | [
"Apache-2.0"
] | 487 | 2016-12-22T03:33:27.000Z | 2022-03-29T06:36:45.000Z | backends/graphs/graphs.cpp | srivani/p4c | 6891448af6834c0798350f4b2a7c54ad3532148e | [
"Apache-2.0"
] | 2,114 | 2016-12-18T11:36:27.000Z | 2022-03-31T22:33:23.000Z | backends/graphs/graphs.cpp | srivani/p4c | 6891448af6834c0798350f4b2a7c54ad3532148e | [
"Apache-2.0"
] | 456 | 2016-12-20T14:01:11.000Z | 2022-03-30T19:26:05.000Z | /*
Copyright 2013-present Barefoot Networks, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in w... | 32.535211 | 87 | 0.687446 | srivani |
6e2f2e6c8b99fd0d6cfc507932509b3fe556e549 | 11,606 | cpp | C++ | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/modules/v8/V8TextDecoder.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/modules/v8/V8TextDecoder.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/modules/v8/V8TextDecoder.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8TextDecoder.h"
#include "bindings/v8/Dictio... | 43.30597 | 247 | 0.740048 | jingcao80 |
6e305f319f9aba9b5e4c1ccdb60f56d5fe3f74bc | 1,392 | cpp | C++ | Leetcode Daily Challenge/May-2021/27. Maximum Product of Word Lengths.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 5 | 2021-08-10T18:47:49.000Z | 2021-08-21T15:42:58.000Z | Leetcode Daily Challenge/May-2021/27. Maximum Product of Word Lengths.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 2 | 2022-02-25T13:36:46.000Z | 2022-02-25T14:06:44.000Z | Leetcode Daily Challenge/May-2021/27. Maximum Product of Word Lengths.cpp | Akshad7829/DataStructures-Algorithms | 439822c6a374672d1734e2389d3fce581a35007d | [
"MIT"
] | 1 | 2021-08-11T06:36:42.000Z | 2021-08-11T06:36:42.000Z | /*
Maximum Product of Word Lengths
====================================
Given a string array words, return the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. If no such two words exist, return 0.
Example 1:
Input: words = ["abcw","baz","foo","bar","xtfn","abcdef"]
... | 23.2 | 176 | 0.538793 | Akshad7829 |
6e308dcf04b947a9dbb89bf9c797b0dd47bc7be6 | 533 | hpp | C++ | src/translate_c.hpp | frmdstryr/zig | f3a9ec33453928830cf555f694c4c18c65a077a1 | [
"MIT"
] | null | null | null | src/translate_c.hpp | frmdstryr/zig | f3a9ec33453928830cf555f694c4c18c65a077a1 | [
"MIT"
] | null | null | null | src/translate_c.hpp | frmdstryr/zig | f3a9ec33453928830cf555f694c4c18c65a077a1 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2015 Andrew Kelley
*
* This file is part of zig, which is MIT licensed.
* See http://opensource.org/licenses/MIT
*/
#ifndef ZIG_PARSEC_HPP
#define ZIG_PARSEC_HPP
#include "all_types.hpp"
enum TranslateMode {
TranslateModeImport,
TranslateModeTranslate,
};
Error parse_h_file(CodeGen ... | 21.32 | 61 | 0.718574 | frmdstryr |
6e3332bdbbaea73327935cfff16a970022137edb | 14,336 | hpp | C++ | include/generator/module_generator.hpp | pc2/FBLAS | c9655623897711758fcff98c741f556872ad3882 | [
"BSD-3-Clause"
] | null | null | null | include/generator/module_generator.hpp | pc2/FBLAS | c9655623897711758fcff98c741f556872ad3882 | [
"BSD-3-Clause"
] | null | null | null | include/generator/module_generator.hpp | pc2/FBLAS | c9655623897711758fcff98c741f556872ad3882 | [
"BSD-3-Clause"
] | null | null | null | /**
FBLAS: BLAS implementation for Intel FPGA
Copyright (c) 2019 ETH-Zurich. All rights reserved.
See LICENSE for license information.
Modules generator: modules code generator
*/
#ifndef MODULES_GENERATOR_HPP
#define MODULES_GENERATOR_HPP
#include <vector>
#include <map>
#include <functional>
#includ... | 37.925926 | 161 | 0.643276 | pc2 |
6e339411f19deeeb69e2f45a4f82f7ee1bc85668 | 850 | cpp | C++ | JAL/PAT/Advanced/1099.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | 14 | 2018-06-21T14:41:26.000Z | 2021-12-19T14:43:51.000Z | JAL/PAT/Advanced/1099.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | null | null | null | JAL/PAT/Advanced/1099.cpp | webturing/CPlusPlus | 6b9c671b0c9a7c0d24d937610bf54e9aec9a5a1f | [
"AFL-2.0"
] | 2 | 2020-04-20T11:16:53.000Z | 2021-01-02T15:58:35.000Z | #include<bits/stdc++.h>
using namespace std;
vector<pair<int, int>>v;
vector<int>preorder, a;
map<int, int>M;
int n;
void dfs(int root){
if(root == -1)return;
dfs(v[root].first);
preorder.push_back(root);
dfs(v[root].second);
}
int main(){
cin >> n;
v.resize(n);
for(int i = 0; i < n; i++){
cin >> v[i].first >>... | 17.708333 | 37 | 0.544706 | webturing |
6e36a0342a3c3168b494244b86008946b851782f | 4,329 | cpp | C++ | src/GC/Circuit.cpp | GPikra/python-smpc-wrapper-importer | 43a8945e63f7c8996da699dae0a9f9240084214f | [
"BSD-2-Clause"
] | 3 | 2019-08-10T10:03:15.000Z | 2020-05-20T03:53:40.000Z | src/GC/Circuit.cpp | GPikra/python-smpc-wrapper-importer | 43a8945e63f7c8996da699dae0a9f9240084214f | [
"BSD-2-Clause"
] | 6 | 2019-06-10T13:20:34.000Z | 2019-07-10T17:28:52.000Z | src/GC/Circuit.cpp | athenarc/SCALE-MAMBA | 18fa886d820bec7e441448357b8f09e2be0e7c9e | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2017, The University of Bristol, Senate House, Tyndall Avenue, Bristol, BS8 1TH, United Kingdom.
Copyright (c) 2018, COSIC-KU Leuven, Kasteelpark Arenberg 10, bus 2452, B-3001 Leuven-Heverlee, Belgium.
All rights reserved
*/
#include "Circuit.h"
istream &operator>>(istream &s, Circuit &C)
{
unsign... | 21.325123 | 110 | 0.429891 | GPikra |
6e38645a4bf8350cb46779807f81f4526a749086 | 15,415 | cpp | C++ | src/core/tunnel/TunnelPool.cpp | moneromooo-monero/kovri | 7532037cd590617c27474112080e4bbc52faf586 | [
"BSD-3-Clause"
] | 2 | 2017-10-13T09:22:20.000Z | 2018-02-13T16:32:02.000Z | src/core/tunnel/TunnelPool.cpp | Menutra/kovri | 7532037cd590617c27474112080e4bbc52faf586 | [
"BSD-3-Clause"
] | null | null | null | src/core/tunnel/TunnelPool.cpp | Menutra/kovri | 7532037cd590617c27474112080e4bbc52faf586 | [
"BSD-3-Clause"
] | 2 | 2017-10-15T08:21:55.000Z | 2018-11-29T08:40:06.000Z | /**
* Copyright (c) 2013-2016, The Kovri I2P Router Project
*
* 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, ... | 32.114583 | 90 | 0.684139 | moneromooo-monero |
6e3881616a89359c3390c471bce95a7a6ea66c36 | 5,950 | cpp | C++ | test/cedar_tests.cpp | dominiKoeppl/tudocomp | b5512f85f6b3408fb88e19c08899ec4c2716c642 | [
"ECL-2.0",
"Apache-2.0"
] | 17 | 2017-03-04T13:04:49.000Z | 2021-12-03T06:58:20.000Z | test/cedar_tests.cpp | dominiKoeppl/tudocomp | b5512f85f6b3408fb88e19c08899ec4c2716c642 | [
"ECL-2.0",
"Apache-2.0"
] | 27 | 2016-01-22T18:31:37.000Z | 2021-11-27T10:50:40.000Z | test/cedar_tests.cpp | dominiKoeppl/tudocomp | b5512f85f6b3408fb88e19c08899ec4c2716c642 | [
"ECL-2.0",
"Apache-2.0"
] | 16 | 2017-03-14T12:46:51.000Z | 2021-06-25T18:19:50.000Z |
#include "test/util.hpp"
#include <gtest/gtest.h>
#include <tudocomp/CreateAlgorithm.hpp>
#include <tudocomp/Literal.hpp>
#include <tudocomp/compressors/LZ78Compressor.hpp>
#include <tudocomp/compressors/LZWCompressor.hpp>
#include <tudocomp/compressors/lz78/BinaryTrie.hpp>
#include <tudocomp/compressors/lz78/TernaryT... | 36.956522 | 95 | 0.540168 | dominiKoeppl |
6e38cb0168023c5355f8e8a4f19f36e6fc814cc8 | 5,979 | hh | C++ | trick_source/er7_utils/integration/symplectic_euler/include/symplectic_euler_integrator_constructor.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 647 | 2015-05-07T16:08:16.000Z | 2022-03-30T02:33:21.000Z | trick_source/er7_utils/integration/symplectic_euler/include/symplectic_euler_integrator_constructor.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 995 | 2015-04-30T19:44:31.000Z | 2022-03-31T20:14:44.000Z | trick_source/er7_utils/integration/symplectic_euler/include/symplectic_euler_integrator_constructor.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 251 | 2015-05-15T09:24:34.000Z | 2022-03-22T20:39:05.000Z | /**
* @if Er7UtilsUseGroups
* @addtogroup Er7Utils
* @{
* @addtogroup Integration
* @{
* @endif
*/
/**
* @file
* Defines the class SymplecticEulerIntegratorConstructor, which constructs
* state integrators that use symplectic Euler integration.
*/
/*
Purpose: ()
*/
#ifndef ER7_UTILS_SYMPLECTIC_EULER_INTE... | 29.895 | 82 | 0.72487 | gilbertguoze |