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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f67d46f7c37cc6112f548bf0bad77de1bbbbb005 | 532 | cpp | C++ | acm/hdu/1597.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/hdu/1597.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/hdu/1597.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z |
#include<iostream>
using namespace std;
typedef long long ll;
int main(){
ll n;
int t;
cin>>t;
while(t--){
cin>>n;
n*=2;
ll l = 0;ll r = 1<<16;
//no_left,ok_right
while(l<r){
ll mid = (l+r-1)/2+1;
if(mid*(mid+1)<=n) l = mid;
else r = m... | 17.733333 | 39 | 0.366541 | xiaohuihuigh |
f68095bf980b666cac4223f6177d238f101547e9 | 4,108 | hpp | C++ | sph/include/sph/data_util.hpp | OsmanSeckinSimsek/SPH-EXA | b617012277e349036e852c67f919c4b96445be93 | [
"MIT"
] | null | null | null | sph/include/sph/data_util.hpp | OsmanSeckinSimsek/SPH-EXA | b617012277e349036e852c67f919c4b96445be93 | [
"MIT"
] | null | null | null | sph/include/sph/data_util.hpp | OsmanSeckinSimsek/SPH-EXA | b617012277e349036e852c67f919c4b96445be93 | [
"MIT"
] | null | null | null | /*
* MIT License
*
* Copyright (c) 2021 CSCS, ETH Zurich
* 2021 University of Basel
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including with... | 33.398374 | 103 | 0.685248 | OsmanSeckinSimsek |
f6822fd5b9fd071fcc7b379e36389db8277a6684 | 29,287 | cc | C++ | ash/wm/lock_action_handler_layout_manager_unittest.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 | ash/wm/lock_action_handler_layout_manager_unittest.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 | ash/wm/lock_action_handler_layout_manager_unittest.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 2017 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 "ash/wm/lock_action_handler_layout_manager.h"
#include <memory>
#include <utility>
#include "ash/keyboard/keyboard_controller_impl.h"
#include ... | 39.900545 | 81 | 0.748011 | zealoussnow |
f6825726361bb267c6938d6942002c68aa149483 | 4,077 | hpp | C++ | csapex_point_cloud/src/clustering/storage/storage_ops.hpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_point_cloud/src/clustering/storage/storage_ops.hpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_point_cloud/src/clustering/storage/storage_ops.hpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z | #pragma once
#include "../data/voxel_data.hpp"
#include <cslibs_indexed_storage/backend/array/array_options.hpp>
#include <pcl/PointIndices.h>
#include <pcl/point_cloud.h>
namespace csapex
{
namespace clustering
{
class StorageOperation
{
public:
// dynamic sized case -> simply add every point to the storage
... | 38.462264 | 200 | 0.591857 | AdrianZw |
f682917275d88d20a07e36cf9059144a2f0a93d9 | 5,412 | hpp | C++ | dep/win/include/boost/gil/concepts/image.hpp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 995 | 2018-06-22T10:39:18.000Z | 2022-03-25T01:22:14.000Z | dep/win/include/boost/gil/concepts/image.hpp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 32 | 2018-06-23T14:19:37.000Z | 2022-03-29T10:20:37.000Z | dep/win/include/boost/gil/concepts/image.hpp | Netis/packet-agent | 70da3479051a07e3c235abe7516990f9fd21a18a | [
"BSD-3-Clause"
] | 172 | 2018-06-22T11:12:00.000Z | 2022-03-29T07:44:33.000Z | //
// Copyright 2005-2007 Adobe Systems Incorporated
//
// 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_GIL_CONCEPTS_IMAGE_HPP
#define BOOST_GIL_CONCEPTS_IMAGE_HPP
#include <boost/gil/con... | 32.214286 | 115 | 0.666297 | Netis |
f6829174a438ec0f1c4709a8b26eca6dd2d5bd0d | 14,876 | cc | C++ | src/video/Display.cc | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/video/Display.cc | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/video/Display.cc | imulilla/openMSX_TSXadv_nofork | 4ee003d87a44633c14c054bd59ec2bfd866e5d9f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #include "Display.hh"
#include "RendererFactory.hh"
#include "Layer.hh"
#include "VideoSystem.hh"
#include "VideoLayer.hh"
#include "EventDistributor.hh"
#include "FinishFrameEvent.hh"
#include "FileOperations.hh"
#include "FileContext.hh"
#include "InputEvents.hh"
#include "CliComm.hh"
#include "Timer.hh"
#include "Bo... | 28.552783 | 85 | 0.710406 | imulilla |
f682e3037523b1c210b5ba36246556518f261e1b | 4,199 | hpp | C++ | include/mesos/slave/isolator.hpp | em-mcg/cse223b-mesos | e7d0867d5bf67dbc28117f52babc73dd43d0bb4c | [
"Apache-2.0"
] | null | null | null | include/mesos/slave/isolator.hpp | em-mcg/cse223b-mesos | e7d0867d5bf67dbc28117f52babc73dd43d0bb4c | [
"Apache-2.0"
] | null | null | null | include/mesos/slave/isolator.hpp | em-mcg/cse223b-mesos | e7d0867d5bf67dbc28117f52babc73dd43d0bb4c | [
"Apache-2.0"
] | null | null | null | // 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... | 30.208633 | 75 | 0.72422 | em-mcg |
f6834d281b16dd7f7f788afe01bf611d0630b105 | 10,941 | cpp | C++ | PropertyWidget/Delegates/GUI/PropertyDelegateQPen.cpp | jjzhang166/QtnProperty | f789002181d83a6d0ec2b1848ab9faa9bbc47631 | [
"Apache-2.0"
] | null | null | null | PropertyWidget/Delegates/GUI/PropertyDelegateQPen.cpp | jjzhang166/QtnProperty | f789002181d83a6d0ec2b1848ab9faa9bbc47631 | [
"Apache-2.0"
] | null | null | null | PropertyWidget/Delegates/GUI/PropertyDelegateQPen.cpp | jjzhang166/QtnProperty | f789002181d83a6d0ec2b1848ab9faa9bbc47631 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2012-2016 Alex Zhondin <lexxmark.dev@gmail.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... | 32.659701 | 148 | 0.647473 | jjzhang166 |
f68360ea03cdaf07f9c504c7a9a3ac5423bd4881 | 2,483 | cpp | C++ | samples/blackfin/gcc/bf533/6-round-robin/src/utils/hwinit.cpp | diamondx131/scmrtos-sample-projects | 3b34a485b6ca4b16705c250383ae5d30c81966f1 | [
"MIT"
] | 9 | 2015-10-07T15:27:27.000Z | 2021-04-07T06:13:24.000Z | samples/blackfin/gcc/bf533/6-round-robin/src/utils/hwinit.cpp | diamondx131/scmrtos-sample-projects | 3b34a485b6ca4b16705c250383ae5d30c81966f1 | [
"MIT"
] | 4 | 2017-07-04T10:51:51.000Z | 2019-09-25T11:20:24.000Z | samples/blackfin/gcc/bf533/6-round-robin/src/utils/hwinit.cpp | diamondx131/scmrtos-sample-projects | 3b34a485b6ca4b16705c250383ae5d30c81966f1 | [
"MIT"
] | 9 | 2015-12-04T15:34:32.000Z | 2020-07-01T16:10:59.000Z | //******************************************************************************
//*
//* PURPOSE: Hardware Initialization Code
//*
//* PROCESSOR: ADSP-BF533 (Analog Devices Inc.)
//*
//* TOOLKIT: bfin-elf (GCC)
//*
//* Version: v5.2.0
//*
//* Copyright (c) 2003-2021, Harry E. Zhurov
//*
//******... | 34.971831 | 97 | 0.358035 | diamondx131 |
f685648c370fc5b5ce086174df2c9328a0fba836 | 3,124 | cpp | C++ | test/btunittest/HTNTest/htntravelunittest.cpp | nefeithu/behaviac | 3c8b09b5dc64e0090bf02e273687c6d94f328ad3 | [
"BSD-3-Clause"
] | 2,504 | 2016-11-11T17:12:12.000Z | 2022-03-30T10:39:05.000Z | test/btunittest/HTNTest/htntravelunittest.cpp | mlik5hao/behaviac | a280fe24b3e7c357e607c397287a76a8bec33de3 | [
"BSD-3-Clause"
] | 127 | 2016-12-28T04:54:08.000Z | 2022-03-17T10:26:55.000Z | test/btunittest/HTNTest/htntravelunittest.cpp | mlik5hao/behaviac | a280fe24b3e7c357e607c397287a76a8bec33de3 | [
"BSD-3-Clause"
] | 821 | 2016-11-11T11:15:24.000Z | 2022-03-30T15:06:18.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015-2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3... | 37.190476 | 113 | 0.702305 | nefeithu |
f68564954112f67d675cfee82b396690d13d2517 | 19,236 | cpp | C++ | ThorEngine/Source Code/M_Editor.cpp | markitus18/Thor-Engine | d89c75f803357d6493cd018450bceb384d2dd265 | [
"Unlicense"
] | 12 | 2019-10-07T12:30:12.000Z | 2021-09-25T13:05:26.000Z | ThorEngine/Source Code/M_Editor.cpp | markitus18/Thor-Engine | d89c75f803357d6493cd018450bceb384d2dd265 | [
"Unlicense"
] | 15 | 2017-06-14T13:10:06.000Z | 2020-11-21T11:27:54.000Z | ThorEngine/Source Code/M_Editor.cpp | markitus18/Thor-Engine | d89c75f803357d6493cd018450bceb384d2dd265 | [
"Unlicense"
] | 4 | 2019-12-17T11:48:45.000Z | 2020-11-13T19:09:59.000Z | #include "Engine.h"
#include "Config.h"
#include "M_Editor.h"
#include "M_Window.h"
#include "M_Input.h"
//Windows
#include "WF_SceneEditor.h"
#include "WF_ParticleEditor.h"
#include "W_Console.h"
#include "W_EngineConfig.h"
#include "M_SceneManager.h"
#include "M_FileSystem.h"
#include "M_Resources.h"
#include "M_R... | 25.716578 | 146 | 0.690528 | markitus18 |
f685faca9e06e52681f7c38a0366fea1b963ecdc | 2,335 | cpp | C++ | mazegen/Distances.cpp | andreban/32blit-a-maze | 0fc65664d5abf2148d66b551cf7f64237ff37cea | [
"MIT"
] | 1 | 2021-09-10T06:41:02.000Z | 2021-09-10T06:41:02.000Z | mazegen/Distances.cpp | andreban/32blit-a-maze | 0fc65664d5abf2148d66b551cf7f64237ff37cea | [
"MIT"
] | null | null | null | mazegen/Distances.cpp | andreban/32blit-a-maze | 0fc65664d5abf2148d66b551cf7f64237ff37cea | [
"MIT"
] | null | null | null | //
// Created by andre on 08/06/2021.
//
#include "Distances.h"
#include <utility>
Distances::Distances(int32_t width, int32_t height, std::vector<int32_t> distances)
: width_(width), height_(height), distances(std::move(distances)){
}
int32_t Distances::width() {
return width_;
}
int32_t Distances::heigh... | 28.47561 | 121 | 0.588437 | andreban |
f689482858c43f5b675710f979cbbb242096caf8 | 2,826 | hpp | C++ | include/hipSYCL/runtime/inorder_queue.hpp | illuhad/SYCU | 4ff58f347d7bbdcf56704d2d011ecde7fa9dc621 | [
"BSD-2-Clause"
] | null | null | null | include/hipSYCL/runtime/inorder_queue.hpp | illuhad/SYCU | 4ff58f347d7bbdcf56704d2d011ecde7fa9dc621 | [
"BSD-2-Clause"
] | null | null | null | include/hipSYCL/runtime/inorder_queue.hpp | illuhad/SYCU | 4ff58f347d7bbdcf56704d2d011ecde7fa9dc621 | [
"BSD-2-Clause"
] | null | null | null | /*
* This file is part of hipSYCL, a SYCL implementation based on CUDA/HIP
*
* Copyright (c) 2019-2020 Aksel Alpay and contributors
* 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. ... | 37.68 | 82 | 0.765039 | illuhad |
f68c18f9ad4ba5b1d4e894211656bee89711aa1b | 1,886 | cpp | C++ | DeepSkyStacker/CometStacking.cpp | lcsteyn/DSS | 7991c8ddbeb7b2626234cd8ba1e9cb336bbf97c9 | [
"BSD-3-Clause"
] | 497 | 2019-06-20T09:52:58.000Z | 2022-03-31T12:56:49.000Z | DeepSkyStacker/CometStacking.cpp | lcsteyn/DSS | 7991c8ddbeb7b2626234cd8ba1e9cb336bbf97c9 | [
"BSD-3-Clause"
] | 58 | 2019-06-19T10:53:49.000Z | 2022-02-14T22:43:18.000Z | DeepSkyStacker/CometStacking.cpp | lcsteyn/DSS | 7991c8ddbeb7b2626234cd8ba1e9cb336bbf97c9 | [
"BSD-3-Clause"
] | 57 | 2019-07-08T16:08:01.000Z | 2022-03-12T15:00:04.000Z | #include <algorithm>
using std::min;
using std::max;
#include <atomic>
#define _WIN32_WINNT _WIN32_WINNT_WIN7
#include <afx.h>
#include "CometStacking.h"
#include "ui/ui_CometStacking.h"
#include "DSSCommon.h"
#include "Workspace.h"
CometStacking::CometStacking(QWidget *parent) :
QWidget(parent),
ui(new Ui:... | 19.050505 | 80 | 0.718452 | lcsteyn |
f68d139b9f6500957edcd6dd1c3c40ad9da815b7 | 3,103 | cpp | C++ | Ex5/Prac5.8/main.cpp | jjuiddong/TemplateMetaProgramming | ccfa4b21205c8cd3da1906f64cdbeb200902812a | [
"MIT"
] | 1 | 2020-10-31T05:50:22.000Z | 2020-10-31T05:50:22.000Z | Ex5/Prac5.8/main.cpp | jjuiddong/TemplateMetaProgramming | ccfa4b21205c8cd3da1906f64cdbeb200902812a | [
"MIT"
] | null | null | null | Ex5/Prac5.8/main.cpp | jjuiddong/TemplateMetaProgramming | ccfa4b21205c8cd3da1906f64cdbeb200902812a | [
"MIT"
] | 1 | 2020-10-31T05:50:41.000Z | 2020-10-31T05:50:41.000Z | // practice 5-8
#include <iostream>
#include <boost/type_traits/is_reference.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/is_pointer.hpp>
#include <boost/type_traits/is_float.hpp>
#include <boost/type_traits/alignment_of.hpp>
#include <boost/type_traits/remove_reference.hpp>
#include <boos... | 21.4 | 66 | 0.711569 | jjuiddong |
f68dd832cbed3c58a5be9577fc7f319e7adfc508 | 4,394 | hh | C++ | ms-utils/math/approximation/TsBilinearInterpolator.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 18 | 2020-01-23T12:14:09.000Z | 2022-02-27T22:11:35.000Z | ms-utils/math/approximation/TsBilinearInterpolator.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 39 | 2020-11-20T12:19:35.000Z | 2022-02-22T18:45:55.000Z | ms-utils/math/approximation/TsBilinearInterpolator.hh | nasa/gunns | 248323939a476abe5178538cd7a3512b5f42675c | [
"NASA-1.3"
] | 7 | 2020-02-10T19:25:43.000Z | 2022-03-16T01:10:00.000Z | #ifndef TsBilinearInterpolator_EXISTS
#define TsBilinearInterpolator_EXISTS
/**
@defgroup TSM_UTILITIES_MATH_APPROXIMATION_BILINEAR_INTERPOLATOR Bivariate Linear Interpolator
@ingroup TSM_UTILITIES_MATH_APPROXIMATION
@details
PURPOSE:
- (Provides a class for a two-dimensional linear interpolation. )
LIBRARY DEPE... | 50.505747 | 111 | 0.4802 | nasa |
f68de332b44ec9eea0aee54c2ee3ef7b74d01e45 | 103,919 | cpp | C++ | mm/mm/lex.mm.cpp | Mirv/MM-Lib | df94e6549baf561e49bb4c3b85934ded5761b27e | [
"Unlicense"
] | 27 | 2015-01-20T17:55:55.000Z | 2021-11-28T16:29:02.000Z | mm/mm/lex.mm.cpp | Mirv/MM-Lib | df94e6549baf561e49bb4c3b85934ded5761b27e | [
"Unlicense"
] | null | null | null | mm/mm/lex.mm.cpp | Mirv/MM-Lib | df94e6549baf561e49bb4c3b85934ded5761b27e | [
"Unlicense"
] | 4 | 2016-04-21T16:05:21.000Z | 2018-03-28T21:31:35.000Z | #line 2 "lex.mm.cpp"
#line 4 "lex.mm.cpp"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 35
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal ... | 32.454403 | 116 | 0.56341 | Mirv |
f68f2e4430c54dc2460560d1451bdcb66b91f3af | 491 | hpp | C++ | gamess/libqc/rysq/src/externals/cxx/sugar/unpack.hpp | andremirt/v_cond | 6b5c364d7cd4243686488b2bd4318be3927e07ea | [
"Unlicense"
] | null | null | null | gamess/libqc/rysq/src/externals/cxx/sugar/unpack.hpp | andremirt/v_cond | 6b5c364d7cd4243686488b2bd4318be3927e07ea | [
"Unlicense"
] | null | null | null | gamess/libqc/rysq/src/externals/cxx/sugar/unpack.hpp | andremirt/v_cond | 6b5c364d7cd4243686488b2bd4318be3927e07ea | [
"Unlicense"
] | null | null | null | #ifndef _SUGAR_PP_UNPACK_HPP_
#define _SUGAR_PP_UNPACK_HPP_
#include <boost/preprocessor/seq/for_each_i.hpp>
#include <boost/preprocessor/tuple/to_seq.hpp>
#include <boost/preprocessor/comma_if.hpp>
#include "cxx/sugar/detail/narg.hpp"
#define SUGAR_PP_UNPACK_I(r, data, i, elem) BOOST_PP_COMMA_IF(i) elem = (data)[i]
... | 28.882353 | 81 | 0.757637 | andremirt |
f68fe2817cd459c7112d8b3298ec805b337d60f1 | 20,687 | cpp | C++ | gvsoc/gvsoc/models/pulp/pmu/pmu_v1_impl.cpp | VishalSharma0309/gap_sdk | 09ccc594a3696a84953b732022cecae11e751c97 | [
"Apache-2.0"
] | 1 | 2020-01-29T15:39:31.000Z | 2020-01-29T15:39:31.000Z | gvsoc/gvsoc/models/pulp/pmu/pmu_v1_impl.cpp | VishalSharma0309/gap_sdk | 09ccc594a3696a84953b732022cecae11e751c97 | [
"Apache-2.0"
] | null | null | null | gvsoc/gvsoc/models/pulp/pmu/pmu_v1_impl.cpp | VishalSharma0309/gap_sdk | 09ccc594a3696a84953b732022cecae11e751c97 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2018 ETH Zurich and University of Bologna
*
* 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... | 25.445264 | 153 | 0.658336 | VishalSharma0309 |
f69166b03e044c0c842287e53d2763a58aae15a1 | 2,471 | cc | C++ | mindspore/ccsrc/minddata/dataset/util/status.cc | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | 1 | 2021-07-03T06:52:20.000Z | 2021-07-03T06:52:20.000Z | mindspore/ccsrc/minddata/dataset/util/status.cc | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | mindspore/ccsrc/minddata/dataset/util/status.cc | Vincent34/mindspore | a39a60878a46e7e9cb02db788c0bca478f2fa6e5 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 30.506173 | 105 | 0.66896 | Vincent34 |
f696f446810c5cf7ab7369b5355ee31acdc07ef4 | 199 | cpp | C++ | codeforces/630C.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | codeforces/630C.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | codeforces/630C.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main(){
ll a, sum = 0;
cin >> a;
for(ll i = 1; i < a + 1; i++) sum += pow(2, i);
cout << sum << endl;
return 0;
}
| 18.090909 | 49 | 0.537688 | cosmicray001 |
f6988e2252031355a21b190f7c085fb762d93be6 | 891 | cpp | C++ | src/Pamma/Tile.cpp | corigan01/Pamma | 3ce2673cd1718441199750dccb3c713c4f39199e | [
"FSFAP"
] | null | null | null | src/Pamma/Tile.cpp | corigan01/Pamma | 3ce2673cd1718441199750dccb3c713c4f39199e | [
"FSFAP"
] | null | null | null | src/Pamma/Tile.cpp | corigan01/Pamma | 3ce2673cd1718441199750dccb3c713c4f39199e | [
"FSFAP"
] | null | null | null | #include "Tile.h"
Tile::Tile() {
// nothing - defalt consturctor
}
Tile::~Tile() {
// nothing - defalt deconsturctor
}
// Add a new Tile
void Tile::AddNewTile(Texture2D* Texture, int Posx, int Posy, float spawnrate) {
Tiles.push_back({ Texture, Posx, Posy, spawnrate });
}
// Add a new building
void Tile::AddN... | 21.731707 | 134 | 0.650954 | corigan01 |
f699848c996fe0dff39a2c356acece40462f74bc | 6,253 | cpp | C++ | libs/smart_ptr/test/shared_ptr_basic_test.cpp | mike-code/boost_1_38_0 | 7ff8b2069344ea6b0b757aa1f0778dfb8526df3c | [
"BSL-1.0"
] | 1 | 2017-07-31T02:19:48.000Z | 2017-07-31T02:19:48.000Z | libs/smart_ptr/test/shared_ptr_basic_test.cpp | boost-cmake/vintage | dcfb7da3177134eddaee6789d6f582259cb0d6ee | [
"BSL-1.0"
] | null | null | null | libs/smart_ptr/test/shared_ptr_basic_test.cpp | boost-cmake/vintage | dcfb7da3177134eddaee6789d6f582259cb0d6ee | [
"BSL-1.0"
] | 1 | 2021-03-07T05:20:43.000Z | 2021-03-07T05:20:43.000Z | #include <boost/config.hpp>
#if defined(BOOST_MSVC)
#pragma warning(disable: 4786) // identifier truncated in debug info
#pragma warning(disable: 4710) // function not inlined
#pragma warning(disable: 4711) // function selected for automatic inline expansion
#pragma warning(disable: 4514) // unreferenced inline r... | 20.843333 | 106 | 0.558612 | mike-code |
f699b8b2088e315770f578f1e600405d10021986 | 24,279 | cpp | C++ | tests/PathOpsExtendedTest.cpp | jrmuizel/skia-wr | cbea8437804cb7f94c43319491d9dba7b039483d | [
"BSD-3-Clause"
] | null | null | null | tests/PathOpsExtendedTest.cpp | jrmuizel/skia-wr | cbea8437804cb7f94c43319491d9dba7b039483d | [
"BSD-3-Clause"
] | null | null | null | tests/PathOpsExtendedTest.cpp | jrmuizel/skia-wr | cbea8437804cb7f94c43319491d9dba7b039483d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "PathOpsExtendedTest.h"
#include "PathOpsThreadedCommon.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkForceLinking.h"
#include "SkMatrix.h"
#include "SkM... | 33.627424 | 100 | 0.596894 | jrmuizel |
f69bc06432749502ce1c608b602f552fffab6d27 | 5,174 | cpp | C++ | searchlib/src/vespa/searchlib/features/max_reduce_prod_join_replacer.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | 1 | 2018-12-30T05:42:18.000Z | 2018-12-30T05:42:18.000Z | searchlib/src/vespa/searchlib/features/max_reduce_prod_join_replacer.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | 1 | 2021-01-21T01:37:37.000Z | 2021-01-21T01:37:37.000Z | searchlib/src/vespa/searchlib/features/max_reduce_prod_join_replacer.cpp | amahussein/vespa | 29d266ae1e5c95e25002b97822953fdd02b1451e | [
"Apache-2.0"
] | 1 | 2020-12-08T19:56:35.000Z | 2020-12-08T19:56:35.000Z | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "max_reduce_prod_join_replacer.h"
#include <vespa/eval/eval/function.h>
#include <vespa/eval/eval/basic_nodes.h>
#include <vespa/eval/eval/operator_nodes.h>
#include <vespa/eval/eval/tensor_n... | 34.039474 | 120 | 0.637804 | amahussein |
f69c916bb43a2ae390f02d12a15a246165c5a53e | 5,753 | cpp | C++ | src/packettable.cpp | marcusbirkin/ETCDmxTool | 33f9aafcb7f0f78f59fc8ad3441878762202330a | [
"Apache-2.0"
] | 12 | 2019-03-26T22:19:06.000Z | 2022-03-14T07:59:37.000Z | src/packettable.cpp | marcusbirkin/ETCDmxTool | 33f9aafcb7f0f78f59fc8ad3441878762202330a | [
"Apache-2.0"
] | 5 | 2019-05-18T16:45:45.000Z | 2020-05-12T23:46:10.000Z | src/packettable.cpp | marcusbirkin/ETCDmxTool | 33f9aafcb7f0f78f59fc8ad3441878762202330a | [
"Apache-2.0"
] | 5 | 2019-02-26T13:23:43.000Z | 2021-10-01T11:24:26.000Z | // Copyright (c) 2017 Electronic Theatre Controls, Inc., http://www.etcconnect.com
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the ... | 29.963542 | 156 | 0.644881 | marcusbirkin |
f69cc5731f539b316756c5fb9b120c12b23f7ed3 | 18,994 | cpp | C++ | Modules/ACCoRD/src/DensityGrid.cpp | 5nefarious/icarous | bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8 | [
"Unlicense"
] | null | null | null | Modules/ACCoRD/src/DensityGrid.cpp | 5nefarious/icarous | bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8 | [
"Unlicense"
] | null | null | null | Modules/ACCoRD/src/DensityGrid.cpp | 5nefarious/icarous | bfd759d88a47d9ee079fe35deaa6cf6d4459dcd8 | [
"Unlicense"
] | null | null | null | /*
* Copyright (c) 2017 United States Government as represented by
* the National Aeronautics and Space Administration. No copyright
* is claimed in the United States under Title 17, U.S.Code. All Other
* Rights Reserved.
*/
#include "DensityGrid.h"
#include "Util.h"
#include "GreatCircle.h"
#include "Position.h"... | 28.691843 | 159 | 0.615721 | 5nefarious |
f69f2be60d0e72334adfa7084ac432c7ac3190ec | 3,679 | cxx | C++ | Testing/Code/Review/itkImageReadComplexWriteMagnitudeAndPhaseTest.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | 1 | 2017-07-31T18:41:02.000Z | 2017-07-31T18:41:02.000Z | Testing/Code/Review/itkImageReadComplexWriteMagnitudeAndPhaseTest.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | null | null | null | Testing/Code/Review/itkImageReadComplexWriteMagnitudeAndPhaseTest.cxx | dtglidden/ITK | ef0c16fee4fac904d6ab706b8f7d438d4062cd96 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkImageReadComplexWriteMagnitudeAndPhaseTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reser... | 31.991304 | 84 | 0.670834 | dtglidden |
f69fecb84619c9d8f07cca66af381aff35fdee68 | 6,905 | cpp | C++ | modules/skshaper/src/SkShaper_primitive.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-08-06T00:31:13.000Z | 2021-07-29T07:28:17.000Z | modules/skshaper/src/SkShaper_primitive.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-04-26T17:03:31.000Z | 2020-04-28T14:55:33.000Z | modules/skshaper/src/SkShaper_primitive.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 57 | 2016-12-29T02:00:25.000Z | 2021-11-16T01:22:50.000Z | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFontMetrics.h"
#include "SkMakeUnique.h"
#include "SkShaper.h"
#include "SkStream.h"
#include "SkTo.h"
#include "SkTypeface.h"
#include "SkUTF.h"
class SkShaperPr... | 32.570755 | 94 | 0.519189 | pospx |
f6a072ec8614f6232ee2c44e8eba48bf3cc8e192 | 4,428 | cc | C++ | k2/python/csrc/tensor.cc | mirishkarganesh/k2 | 59a102938bf40d68b86deb1d97bce210c2485f57 | [
"MIT"
] | 1 | 2021-05-26T11:56:53.000Z | 2021-05-26T11:56:53.000Z | k2/python/csrc/tensor.cc | mirishkarganesh/k2 | 59a102938bf40d68b86deb1d97bce210c2485f57 | [
"MIT"
] | null | null | null | k2/python/csrc/tensor.cc | mirishkarganesh/k2 | 59a102938bf40d68b86deb1d97bce210c2485f57 | [
"MIT"
] | null | null | null | // k2/python/csrc/tensor.cc
// Copyright (c) 2020 Fangjun Kuang (csukuangfj@gmail.com)
// Xiaomi Corporation (author: Haowen Qiu)
// See ../../../LICENSE for clarification regarding multiple authors
#include "k2/python/csrc/tensor.h"
namespace k2host {
// refer to
// https://github.com/pytor... | 34.061538 | 98 | 0.712511 | mirishkarganesh |
f6a0a117b18517bbb1175a8752d6ff531add8bdd | 92,834 | hpp | C++ | externals/boost/boost/math/special_functions/prime.hpp | YuukiTsuchida/v8_embeded | c6e18f4e91fcc50607f8e3edc745a3afa30b2871 | [
"MIT"
] | 995 | 2018-06-22T10:39:18.000Z | 2022-03-25T01:22:14.000Z | jeff/common/include/boost/math/special_functions/prime.hpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | 32 | 2018-06-23T14:19:37.000Z | 2022-03-29T10:20:37.000Z | jeff/common/include/boost/math/special_functions/prime.hpp | jeffphi/advent-of-code-2018 | 8e54bd23ebfe42fcbede315f0ab85db903551532 | [
"MIT"
] | 172 | 2018-06-22T11:12:00.000Z | 2022-03-29T07:44:33.000Z | // Copyright 2008 John Maddock
//
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef BOOST_MATH_SF_PRIME_HPP
#define BOOST_MATH_SF_PRIME_HPP
#include <boost/cst... | 74.866129 | 92 | 0.637622 | YuukiTsuchida |
f6a3b299d21d40f197ad836a73ff57cdec195c0e | 7,860 | cpp | C++ | tests/Graph/KShortestPathsFinder.cpp | sonali-mishra-22/arangodb | 0fb224af784247252e164f5ab9a83702ac80772c | [
"Apache-2.0"
] | 1 | 2019-10-09T08:58:38.000Z | 2019-10-09T08:58:38.000Z | tests/Graph/KShortestPathsFinder.cpp | sonali-mishra-22/arangodb | 0fb224af784247252e164f5ab9a83702ac80772c | [
"Apache-2.0"
] | null | null | null | tests/Graph/KShortestPathsFinder.cpp | sonali-mishra-22/arangodb | 0fb224af784247252e164f5ab9a83702ac80772c | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2019-2019 ArangoDB GmbH, Cologne, Germany
///
/// 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 co... | 36.055046 | 83 | 0.611705 | sonali-mishra-22 |
f6a46ae046491631678bd174c12ea009a5ac819a | 21,480 | cpp | C++ | src/ext-handler.cpp | denis-b/seadrive-gui | d2966c0444134effb4da806e67145b84f955bbd1 | [
"Apache-2.0"
] | null | null | null | src/ext-handler.cpp | denis-b/seadrive-gui | d2966c0444134effb4da806e67145b84f955bbd1 | [
"Apache-2.0"
] | null | null | null | src/ext-handler.cpp | denis-b/seadrive-gui | d2966c0444134effb4da806e67145b84f955bbd1 | [
"Apache-2.0"
] | null | null | null | #include <winsock2.h>
#include <windows.h>
#include <io.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <fcntl.h>
#include <ctype.h>
#include <userenv.h>
#include <string>
#include <QMutexLocker>
#include <QList>
#include <QDir>
#include <QDebug>
#include "utils/file-utils.h"
#include "api/requests.h"
#include "... | 30.338983 | 109 | 0.5946 | denis-b |
f6a571f8fd277c496c1020f585d03b40128d8ffb | 2,058 | cpp | C++ | src/bmp/redblockbounce1bmp.cpp | ant512/ReallyBadEggs | 5537e9f4c22c5de7686623ac63d4b84992467ad4 | [
"MIT"
] | null | null | null | src/bmp/redblockbounce1bmp.cpp | ant512/ReallyBadEggs | 5537e9f4c22c5de7686623ac63d4b84992467ad4 | [
"MIT"
] | null | null | null | src/bmp/redblockbounce1bmp.cpp | ant512/ReallyBadEggs | 5537e9f4c22c5de7686623ac63d4b84992467ad4 | [
"MIT"
] | null | null | null | #include <nds.h>
#include "redblockbounce1bmp.h"
static const u16 redblockbounce1bmp_Bitmap[256
] __attribute__ ((aligned (4))) = {
32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768,
32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768, 32768,
32768, 32768, 32768, 32768, 327... | 64.3125 | 107 | 0.712828 | ant512 |
f6a597e65b0e67c3cebc3abb5c732e27be1ae79d | 3,416 | cxx | C++ | Examples/ImageRegistrationMethod2.cxx | hendradarwin/SimpleITK | 57e6a5265ae45e535c9bb4887ca92cf95aa79cb9 | [
"Apache-2.0"
] | null | null | null | Examples/ImageRegistrationMethod2.cxx | hendradarwin/SimpleITK | 57e6a5265ae45e535c9bb4887ca92cf95aa79cb9 | [
"Apache-2.0"
] | null | null | null | Examples/ImageRegistrationMethod2.cxx | hendradarwin/SimpleITK | 57e6a5265ae45e535c9bb4887ca92cf95aa79cb9 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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://ww... | 30.5 | 116 | 0.623536 | hendradarwin |
f6a5a7d68842157adbe9125116a21213544d6884 | 2,093 | hpp | C++ | Test/Common/VerifyCurrentStates.hpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | 1 | 2020-12-18T20:43:20.000Z | 2020-12-18T20:43:20.000Z | Test/Common/VerifyCurrentStates.hpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | Test/Common/VerifyCurrentStates.hpp | krzysztof-jusiak/qfsm | b339f8bdb7f4d2c65dc943cc84e0e0038552190c | [
"BSL-1.0"
] | null | null | null | //
// Copyright (c) 2011-2012 Krzysztof Jusiak (krzysztof at jusiak dot net)
//
// 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 QFSM_TEST_COMMON_VERIFYCURRENTSTATES_HPP
#define QFSM_TEST_COMMON_VERIFYCURR... | 29.478873 | 163 | 0.690397 | krzysztof-jusiak |
f6abc3d974e1712bc19d3a44e8d4141fe4f5a608 | 8,017 | cpp | C++ | test/bdd/test_utility_functions.cpp | aabbas90/BDD | abab0c746a22ae04e8ca5ceacbec1d8f75b758bb | [
"BSD-2-Clause"
] | 4 | 2021-03-20T11:29:15.000Z | 2022-03-22T10:43:14.000Z | test/bdd/test_utility_functions.cpp | aabbas90/BDD | abab0c746a22ae04e8ca5ceacbec1d8f75b758bb | [
"BSD-2-Clause"
] | null | null | null | test/bdd/test_utility_functions.cpp | aabbas90/BDD | abab0c746a22ae04e8ca5ceacbec1d8f75b758bb | [
"BSD-2-Clause"
] | 3 | 2021-03-31T15:26:20.000Z | 2022-03-24T08:58:01.000Z | #include "bdd_manager/bdd_mgr.h"
#include "../test.h"
#include <array>
#include <vector>
#include <numeric>
using namespace BDD;
using namespace LPMP;
template<typename LABEL_ITERATOR>
inline void test_labeling(BDD::node_ref p, LABEL_ITERATOR label_begin, LABEL_ITERATOR label_end, const bool result)
{
test(p.eval... | 46.883041 | 115 | 0.591119 | aabbas90 |
f6ac90afddeba38df635adfbb506ed3433ac3541 | 8,023 | cc | C++ | cpp/src/arrow/json/reader.cc | Metronlab/arrow | 45a0ad38929699c600dee8a7b44898f49da19a26 | [
"Apache-2.0"
] | 1 | 2020-06-20T00:45:11.000Z | 2020-06-20T00:45:11.000Z | cpp/src/arrow/json/reader.cc | Metronlab/arrow | 45a0ad38929699c600dee8a7b44898f49da19a26 | [
"Apache-2.0"
] | 8 | 2020-04-10T19:03:51.000Z | 2021-01-21T01:06:28.000Z | cpp/src/arrow/json/reader.cc | signavio/arrow | 866e6a82e2794b151235c19b8c5cbf1fcaf780ef | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0"
] | 1 | 2020-09-23T12:12:19.000Z | 2020-09-23T12:12:19.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... | 36.468182 | 89 | 0.660975 | Metronlab |
f6aef0040dd2d778f44c399fb385c2eaf1d8ecc3 | 479 | cpp | C++ | Dev/src/Engine/FileWriter.cpp | MarkusRannare/FryEngine | 79f60599c1cd5f4f28714f24916950461d5cbbba | [
"MIT"
] | 1 | 2021-12-20T14:21:41.000Z | 2021-12-20T14:21:41.000Z | Dev/src/Engine/FileWriter.cpp | MarkusRannare/FryEngine | 79f60599c1cd5f4f28714f24916950461d5cbbba | [
"MIT"
] | null | null | null | Dev/src/Engine/FileWriter.cpp | MarkusRannare/FryEngine | 79f60599c1cd5f4f28714f24916950461d5cbbba | [
"MIT"
] | null | null | null | #include "FileWriter.h"
#include <Core/Assert.h>
#include <Core/Types.h>
namespace fry_engine
{
FileWriter::FileWriter( FILE* File ) :
mFile( File )
{
CHECK_ALWAYS( File != NULL );
}
FileWriter::~FileWriter()
{
// @TODO: Refactor, we open the file in Filesystem, then we should close it there too!
fclose... | 18.423077 | 88 | 0.668058 | MarkusRannare |
f6afdad948280d4128e2803945a544965e852347 | 30,584 | cc | C++ | runtime/vm/type_testing_stubs_test.cc | lfkdsk/sdk | 07aa9ec332600b585b0edc8d3805fb413e4370bd | [
"BSD-3-Clause"
] | 2 | 2021-05-09T01:55:36.000Z | 2021-09-06T03:32:17.000Z | runtime/vm/type_testing_stubs_test.cc | lfkdsk/sdk | 07aa9ec332600b585b0edc8d3805fb413e4370bd | [
"BSD-3-Clause"
] | null | null | null | runtime/vm/type_testing_stubs_test.cc | lfkdsk/sdk | 07aa9ec332600b585b0edc8d3805fb413e4370bd | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include <functional>
#include "platform/assert.h"
#include "vm/class_finalizer.h"
#include "vm/compi... | 45.579732 | 80 | 0.704617 | lfkdsk |
f6b12bcc98ce9d5b5a3311a65c648fec0e7c683f | 7,128 | cpp | C++ | tests/staggered_dslash_ctest.cpp | ylin910095/quda | 1704c0096d5dac34b478b77698946f96d0db8909 | [
"MIT"
] | null | null | null | tests/staggered_dslash_ctest.cpp | ylin910095/quda | 1704c0096d5dac34b478b77698946f96d0db8909 | [
"MIT"
] | null | null | null | tests/staggered_dslash_ctest.cpp | ylin910095/quda | 1704c0096d5dac34b478b77698946f96d0db8909 | [
"MIT"
] | null | null | null | #include "staggered_dslash_test_utils.h"
using namespace quda;
StaggeredDslashTestWrapper dslash_test_wrapper;
bool gauge_loaded = false;
const char *prec_str[] = {"quarter", "half", "single", "double"};
const char *recon_str[] = {"r18", "r13", "r9"};
void display_test_info(int precision, QudaReconstructType link_... | 34.770732 | 123 | 0.655724 | ylin910095 |
f6b1ad92dbbd4cf99caa86e0209337ad3766e0bb | 1,009 | cpp | C++ | networkit/cpp/edgescores/EdgeScoreBlender.cpp | mlooz/networkit-general-polylog | 5de2844e6b06258084ddf423c054a90954f6f59c | [
"MIT"
] | 3 | 2018-02-24T08:17:03.000Z | 2020-05-11T13:08:33.000Z | networkit/cpp/edgescores/EdgeScoreBlender.cpp | kit-parco/networkit-hyperbolic-kd | 8eb786b8f72e0507a75e68184f444a19cf47ef58 | [
"MIT"
] | null | null | null | networkit/cpp/edgescores/EdgeScoreBlender.cpp | kit-parco/networkit-hyperbolic-kd | 8eb786b8f72e0507a75e68184f444a19cf47ef58 | [
"MIT"
] | 2 | 2020-11-18T09:17:04.000Z | 2020-12-10T12:07:21.000Z | /*
* EdgeScoreBlender.cpp
*
* Created on: 18.11.2014
* Author: Michael Hamann
*/
#include "EdgeScoreBlender.h"
namespace NetworKit {
EdgeScoreBlender::EdgeScoreBlender(const Graph &G, const std::vector< double > &attribute0, const std::vector< double > &attribute1, const std::vector< bool > &selection) :
... | 26.552632 | 172 | 0.708622 | mlooz |
f6b1e8d836873ab0b93d0fe5406a7c13e4985f90 | 3,516 | hpp | C++ | src/ttauri/widgets/overlay_view_widget.hpp | prollings/ttauri | 51aa748eb52b72a06038ffa12952523cf3d4f9b6 | [
"BSL-1.0"
] | null | null | null | src/ttauri/widgets/overlay_view_widget.hpp | prollings/ttauri | 51aa748eb52b72a06038ffa12952523cf3d4f9b6 | [
"BSL-1.0"
] | null | null | null | src/ttauri/widgets/overlay_view_widget.hpp | prollings/ttauri | 51aa748eb52b72a06038ffa12952523cf3d4f9b6 | [
"BSL-1.0"
] | null | null | null | // Copyright Take Vos 2020-2021.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "widget.hpp"
#include "grid_layout_widget.hpp"
namespace tt {
class overlay_view_widget final : public abst... | 36.247423 | 130 | 0.690842 | prollings |
f6b2ced4b0ca9d42b7d856a248753d357d042036 | 1,009 | cpp | C++ | src/MPIDataTypeRegistry.cpp | Yusheng-cai/MPIWrapper | 2192f781d629de8e7f519d4b7370eba3999cf21c | [
"MIT"
] | null | null | null | src/MPIDataTypeRegistry.cpp | Yusheng-cai/MPIWrapper | 2192f781d629de8e7f519d4b7370eba3999cf21c | [
"MIT"
] | null | null | null | src/MPIDataTypeRegistry.cpp | Yusheng-cai/MPIWrapper | 2192f781d629de8e7f519d4b7370eba3999cf21c | [
"MIT"
] | null | null | null | #include "MPIDataTypeRegistry.h"
MPIDataTypeRegistry::MPIDataTypeRegistry()
{
// registers primitive types in MPIDataTyperegistry
registerPrimitiveType();
registerType<std::array<double,3>>();
registerType<std::array<double,2>>();
registerType<std::array<std::array<double,3>,3>>();
}
void MPIData... | 25.225 | 92 | 0.650149 | Yusheng-cai |
f6b3bdffb32359216e841e6848450a15f0cab3fd | 1,960 | cc | C++ | third_party/webrtc/src/chromium/src/sync/internal_api/public/base/attachment_id_proto_unittest.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 8 | 2016-02-08T11:59:31.000Z | 2020-05-31T15:19:54.000Z | third_party/webrtc/src/chromium/src/sync/internal_api/public/base/attachment_id_proto_unittest.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 1 | 2021-05-05T11:11:31.000Z | 2021-05-05T11:11:31.000Z | third_party/webrtc/src/chromium/src/sync/internal_api/public/base/attachment_id_proto_unittest.cc | bopopescu/webrtc-streaming-node | 727a441204344ff596401b0253caac372b714d91 | [
"MIT"
] | 7 | 2016-02-09T09:28:14.000Z | 2020-07-25T19:03:36.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sync/internal_api/public/base/attachment_id_proto.h"
#include "base/strings/string_util.h"
#include "testing/gmock/include/gmock/gmock-matchers... | 39.2 | 76 | 0.714796 | bopopescu |
f6b4b11b101b563c469977199c39aed8f235ccd1 | 6,621 | cpp | C++ | contrib/libpoco/Foundation/testsuite/src/DateTimeFormatterTest.cpp | 189569400/ClickHouse | 0b8683c8c9f0e17446bef5498403c39e9cb483b8 | [
"Apache-2.0"
] | 111 | 2015-01-13T18:14:31.000Z | 2022-02-20T14:26:55.000Z | contrib/libpoco/Foundation/testsuite/src/DateTimeFormatterTest.cpp | 189569400/ClickHouse | 0b8683c8c9f0e17446bef5498403c39e9cb483b8 | [
"Apache-2.0"
] | 54 | 2015-02-23T16:57:41.000Z | 2021-02-19T08:16:27.000Z | contrib/libpoco/Foundation/testsuite/src/DateTimeFormatterTest.cpp | 189569400/ClickHouse | 0b8683c8c9f0e17446bef5498403c39e9cb483b8 | [
"Apache-2.0"
] | 26 | 2015-01-17T13:07:56.000Z | 2021-12-02T07:43:29.000Z | //
// DateTimeFormatterTest.cpp
//
// $Id: //poco/1.4/Foundation/testsuite/src/DateTimeFormatterTest.cpp#2 $
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "DateTimeFormatterTest.h"
#include "CppUnit/TestCaller.h"
#... | 28.662338 | 121 | 0.711071 | 189569400 |
f6b6419bc7b3c96a61b2bfd30f9971fe985856ae | 4,527 | cc | C++ | google/cloud/storage/internal/unified_rest_credentials_test.cc | jacobsa/google-cloud-cpp | ebfa1c583e0a4c83a77eafacf19475e8b3239ad2 | [
"Apache-2.0"
] | null | null | null | google/cloud/storage/internal/unified_rest_credentials_test.cc | jacobsa/google-cloud-cpp | ebfa1c583e0a4c83a77eafacf19475e8b3239ad2 | [
"Apache-2.0"
] | null | null | null | google/cloud/storage/internal/unified_rest_credentials_test.cc | jacobsa/google-cloud-cpp | ebfa1c583e0a4c83a77eafacf19475e8b3239ad2 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 Google LLC
//
// 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... | 36.508065 | 79 | 0.727192 | jacobsa |
f6b68f04fc14e4bcd8a2db2c4d2713805ccc750d | 2,002 | cpp | C++ | src/linux/GetWindows.cpp | BradyBrenot/screen_capture_lite | 775d058408dcc393f632d2bf3483104d5d781432 | [
"MIT"
] | 3 | 2018-07-08T15:32:27.000Z | 2019-11-08T16:50:55.000Z | src/linux/GetWindows.cpp | BradyBrenot/screen_capture_lite | 775d058408dcc393f632d2bf3483104d5d781432 | [
"MIT"
] | null | null | null | src/linux/GetWindows.cpp | BradyBrenot/screen_capture_lite | 775d058408dcc393f632d2bf3483104d5d781432 | [
"MIT"
] | 1 | 2018-12-02T09:02:04.000Z | 2018-12-02T09:02:04.000Z | #include "ScreenCapture.h"
#include "SCCommon.h"
#include <X11/Xlib.h>
#include <algorithm>
#include <string>
namespace SL
{
namespace Screen_Capture
{
void AddWindow(Display* display, XID& window, std::vector<Window>& wnd)
{
std::string name;
char* n = NULL;
if(XFetchName(display, win... | 31.28125 | 75 | 0.442557 | BradyBrenot |
f6b720fc049fb8a742fb6c19fe004b05d45cd482 | 2,431 | cpp | C++ | dev/Gems/StartingPointCamera/Code/Source/CameraTransformBehaviors/OffsetCameraPosition.cpp | crazyskateface/lumberyard | 164512f8d415d6bdf37e195af319ffe5f96a8f0b | [
"AML"
] | 5 | 2018-08-17T21:05:55.000Z | 2021-04-17T10:48:26.000Z | dev/Gems/StartingPointCamera/Code/Source/CameraTransformBehaviors/OffsetCameraPosition.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | null | null | null | dev/Gems/StartingPointCamera/Code/Source/CameraTransformBehaviors/OffsetCameraPosition.cpp | JulianoCristian/Lumberyard-3 | dc523dd780f3cd1874251181b7cf6848b8db9959 | [
"AML"
] | 5 | 2017-12-05T16:36:00.000Z | 2021-04-27T06:33:54.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 50.645833 | 189 | 0.689428 | crazyskateface |
f6b7e637e12fec31ef8550a2a71060e1136e4c5f | 1,395 | cpp | C++ | Examples/Fractals/Mandelbrot.cpp | BaderEddineOuaich/BitmapPlusPlus | 98145ac609d8935faa7a6eec5ab4a5d48e2b9911 | [
"MIT"
] | 3 | 2021-03-30T19:40:14.000Z | 2021-11-06T06:53:32.000Z | Examples/Fractals/Mandelbrot.cpp | BaderEddineOuaich/BitmapPlusPlus | 98145ac609d8935faa7a6eec5ab4a5d48e2b9911 | [
"MIT"
] | null | null | null | Examples/Fractals/Mandelbrot.cpp | BaderEddineOuaich/BitmapPlusPlus | 98145ac609d8935faa7a6eec5ab4a5d48e2b9911 | [
"MIT"
] | 1 | 2020-09-21T05:44:05.000Z | 2020-09-21T05:44:05.000Z | #include "BitmapPlusPlus.hpp"
#include "ColorMaps.inl"
#include <cmath>
int main(void)
{
bmp::Bitmap image(600, 400);
double cr, ci;
double nextr, nexti;
double prevr, previ;
constexpr const std::uint16_t max_iterations = 3000;
for (std::int32_t y = 0; y < image.Height(); ++y)
{
f... | 27.9 | 139 | 0.476703 | BaderEddineOuaich |
f6b8439e5fa97bb6d82d4cb3ba92c4790f8024e1 | 6,062 | cpp | C++ | Astar/Game.cpp | antunesluiz/Jogo-Astar-C- | cf5d18a65f55b1072f1b5f4a52bee390d6b2d65b | [
"Apache-2.0"
] | null | null | null | Astar/Game.cpp | antunesluiz/Jogo-Astar-C- | cf5d18a65f55b1072f1b5f4a52bee390d6b2d65b | [
"Apache-2.0"
] | null | null | null | Astar/Game.cpp | antunesluiz/Jogo-Astar-C- | cf5d18a65f55b1072f1b5f4a52bee390d6b2d65b | [
"Apache-2.0"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
#include "Game.hpp"
SDL_Renderer* Game::renderer = nullptr;
Game::Game() {
Maplvl = 0;
menu = true;
instruc... | 29.004785 | 122 | 0.467338 | antunesluiz |
f6b92062f5bc36d877594ca156d35e15b6728169 | 5,515 | cpp | C++ | retrace/glws_xlib.cpp | lawlove/apitrace | d6a27295acb0a25926bf6290dd2532a7f9027864 | [
"MIT"
] | 2 | 2015-01-22T07:15:44.000Z | 2016-03-01T08:12:55.000Z | retrace/glws_xlib.cpp | gregory38/apitrace | 0627790166dccd8dd370fa7d9f434ed9fc027fb4 | [
"MIT"
] | null | null | null | retrace/glws_xlib.cpp | gregory38/apitrace | 0627790166dccd8dd370fa7d9f434ed9fc027fb4 | [
"MIT"
] | null | null | null | /**************************************************************************
*
* Copyright 2014 VMware, Inc.
* Copyright 2011 Jose Fonseca
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),... | 23.568376 | 92 | 0.616138 | lawlove |
f6b9af5a873dfbbb23f62100b41b845b358d15b8 | 2,465 | cpp | C++ | source/uwp/Renderer/lib/AdaptiveToggleVisibilityAction.cpp | chienjchienj/AdaptiveCards | 949dc9b472cad9c34e8bb10e0c290eccbff56a92 | [
"MIT"
] | 1 | 2021-03-26T11:27:18.000Z | 2021-03-26T11:27:18.000Z | source/uwp/Renderer/lib/AdaptiveToggleVisibilityAction.cpp | chienjchienj/AdaptiveCards | 949dc9b472cad9c34e8bb10e0c290eccbff56a92 | [
"MIT"
] | 12 | 2022-02-14T13:41:37.000Z | 2022-02-27T17:34:28.000Z | source/uwp/Renderer/lib/AdaptiveToggleVisibilityAction.cpp | chienjchienj/AdaptiveCards | 949dc9b472cad9c34e8bb10e0c290eccbff56a92 | [
"MIT"
] | 1 | 2019-12-05T08:29:17.000Z | 2019-12-05T08:29:17.000Z | #include "pch.h"
#include "AdaptiveToggleVisibilityAction.h"
#include "Util.h"
#include "Vector.h"
using namespace Microsoft::WRL;
using namespace ABI::AdaptiveNamespace;
using namespace ABI::Windows::Data::Json;
using namespace ABI::Windows::Foundation::Collections;
namespace AdaptiveNamespace
{
HRESULT Adaptive... | 39.758065 | 136 | 0.760243 | chienjchienj |
f6ba29b376c88be4ac75691b95028a7dedc60d3b | 11,333 | cpp | C++ | MIC/MicMgr/Access.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | MIC/MicMgr/Access.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | 1 | 2017-09-14T15:23:39.000Z | 2017-09-14T15:23:39.000Z | MIC/MicMgr/Access.cpp | hnordquist/MIC | 18528ce80790925f05a409b0d08995576555298e | [
"Unlicense"
] | null | null | null | /*
This work was supported by the United States Member State Support Program to IAEA Safeguards;
the U.S. Department of Energy, Office of Nonproliferation and National Security, International
Safeguards Division; and the U.S. Department of Energy, Office of Safeguards and Security.
LA-CC-14-089. This software was... | 31.923944 | 98 | 0.688432 | hnordquist |
f6be2311edc3b324e7ecf197280e8a4408b42f5d | 21,889 | cpp | C++ | PlatformIO_Files/NodeBandzaag/lib/ACNode/src/SIG2.cpp | MakerSpaceLeiden/Node-bandzaag | b733ceaea162827983f5b6fddf500e5d290fc089 | [
"Apache-2.0"
] | null | null | null | PlatformIO_Files/NodeBandzaag/lib/ACNode/src/SIG2.cpp | MakerSpaceLeiden/Node-bandzaag | b733ceaea162827983f5b6fddf500e5d290fc089 | [
"Apache-2.0"
] | null | null | null | PlatformIO_Files/NodeBandzaag/lib/ACNode/src/SIG2.cpp | MakerSpaceLeiden/Node-bandzaag | b733ceaea162827983f5b6fddf500e5d290fc089 | [
"Apache-2.0"
] | 1 | 2021-12-14T16:15:49.000Z | 2021-12-14T16:15:49.000Z | #include <ACNode-private.h>
#include "SIG2.h"
#include "MakerSpaceMQTT.h" // needed for MAX_MSG
#include <Arduino.h> // min() macro
#include <Crypto.h>
#include <Curve25519.h>
#include <Ed25519.h>
#include <RNG.h>
#include <SHA256.h>
#include <EEPROM.h>
#include <AES.h>
#include <CBC.h>
#include <unordered_map>
// C... | 31.954745 | 125 | 0.673946 | MakerSpaceLeiden |
f6c0b776ffefc33b2e4afe5e51c2ccaa0885972f | 377 | hpp | C++ | Jagerts.Felcp.Xml/XmlNamedObject.hpp | Jagreaper/Project-Felcp | 195d5de4230fe98e53d862c5c69b986344bc2cf5 | [
"MIT"
] | null | null | null | Jagerts.Felcp.Xml/XmlNamedObject.hpp | Jagreaper/Project-Felcp | 195d5de4230fe98e53d862c5c69b986344bc2cf5 | [
"MIT"
] | null | null | null | Jagerts.Felcp.Xml/XmlNamedObject.hpp | Jagreaper/Project-Felcp | 195d5de4230fe98e53d862c5c69b986344bc2cf5 | [
"MIT"
] | null | null | null | #pragma once
#include "Jagerts.Felcp.Shared/Common.hpp"
#include <string>
#define jfxUsingXmlNamedObject \
using XmlNamedObject::SetName; \
using XmlNamedObject::GetName \
namespace Jagerts::Felcp::Xml
{
class JAGERTS_FELCP_XML_API XmlNamedObject
{
public:
void SetName(const std::string name);
const std::stri... | 18.85 | 43 | 0.750663 | Jagreaper |
f6c0c922fb6413929bcec04a5b5770a628c39f10 | 4,400 | hpp | C++ | Phoenix/Client/Include/Client/Game.hpp | zardium/Phoenix | f04152e65e6175580f96dd5ed7d6151c7739de4e | [
"BSD-3-Clause"
] | null | null | null | Phoenix/Client/Include/Client/Game.hpp | zardium/Phoenix | f04152e65e6175580f96dd5ed7d6151c7739de4e | [
"BSD-3-Clause"
] | null | null | null | Phoenix/Client/Include/Client/Game.hpp | zardium/Phoenix | f04152e65e6175580f96dd5ed7d6151c7739de4e | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019-20 Genten Studios
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclai... | 34.645669 | 80 | 0.730909 | zardium |
f6c0db9de84d04424ee42140d3d9c913e832c15b | 2,426 | hpp | C++ | LinaInput/include/PackageManager/OpenGL/GLInputDevice.hpp | zeta1999/LinaEngine | 554a2dda68edb3dd121da67a00064ba741a7864f | [
"MIT"
] | 261 | 2018-10-14T19:14:47.000Z | 2022-03-31T23:38:29.000Z | LinaInput/include/PackageManager/OpenGL/GLInputDevice.hpp | zeta1999/LinaEngine | 554a2dda68edb3dd121da67a00064ba741a7864f | [
"MIT"
] | 38 | 2018-10-14T18:39:53.000Z | 2021-12-06T17:36:17.000Z | LinaInput/include/PackageManager/OpenGL/GLInputDevice.hpp | inanevin/LinaEngine | 554a2dda68edb3dd121da67a00064ba741a7864f | [
"MIT"
] | 26 | 2018-10-31T16:13:35.000Z | 2022-03-25T08:43:34.000Z | /*
This file is a part of: Lina Engine
https://github.com/inanevin/LinaEngine
Author: Inan Evin
http://www.inanevin.com
Copyright (c) [2018-2020] [Inan Evin]
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 ... | 30.325 | 86 | 0.776999 | zeta1999 |
f6c0dce25dd082819988819226ead6f627864b4b | 1,969 | cpp | C++ | tests/parser_test_pr2.cpp | gborghesan/expressiongraph_wbf | 42d2851b5cf1d9b805883730a6e18d55b08be6fd | [
"MIT"
] | null | null | null | tests/parser_test_pr2.cpp | gborghesan/expressiongraph_wbf | 42d2851b5cf1d9b805883730a6e18d55b08be6fd | [
"MIT"
] | null | null | null | tests/parser_test_pr2.cpp | gborghesan/expressiongraph_wbf | 42d2851b5cf1d9b805883730a6e18d55b08be6fd | [
"MIT"
] | null | null | null | #include "expressiongraph_wbf/solver/constraints.hpp"
#include "expressiongraph_wbf/utils/Urdf2Expr.hpp"
#include <ros/package.h>
using namespace wbf;
using namespace std;
using namespace KDL;
int main()
{
//set input values
std::string path = ros::package::getPath("expressiongraph_wbf");
Urdf2Expressions u;
... | 28.955882 | 112 | 0.628746 | gborghesan |
f6c3ac6249da8b1e0806f6357cc891ea830878f3 | 413 | cpp | C++ | workshop 2020/Advanced/primality/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Advanced/primality/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | workshop 2020/Advanced/primality/main.cpp | wdjpng/soi | dd565587ae30985676f7f374093ec0687436b881 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#define int long long
using namespace std;
signed main() {
int n;
cin >> n;
bool isPrime = true;
int sqr = sqrt(n);
for (int i = 2; i < sqr + 1; ++i) {
if(n%i == 0 && i!=n){
isPrime = false;
break;
}
}
if(isP... | 15.296296 | 39 | 0.440678 | wdjpng |
f6c5dbe3f6f1ed09727a3f6e54b6e36414977afa | 4,033 | cc | C++ | src/main/cpp/src/genomicsdb/variant_field_data.cc | WordLess-ChuanJun/GenomisDB | d91ef2b701cf64be8c9911ee935863527ed94e9a | [
"MIT"
] | null | null | null | src/main/cpp/src/genomicsdb/variant_field_data.cc | WordLess-ChuanJun/GenomisDB | d91ef2b701cf64be8c9911ee935863527ed94e9a | [
"MIT"
] | null | null | null | src/main/cpp/src/genomicsdb/variant_field_data.cc | WordLess-ChuanJun/GenomisDB | d91ef2b701cf64be8c9911ee935863527ed94e9a | [
"MIT"
] | null | null | null | /**
* The MIT License (MIT)
* Copyright (c) 2016 Intel Corporation
*
* 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
... | 39.539216 | 95 | 0.734937 | WordLess-ChuanJun |
f6c937a90cb66ef1f53041e1a05dab12ec168dd8 | 2,351 | cpp | C++ | common/vec.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | 1 | 2016-05-24T19:27:01.000Z | 2016-05-24T19:27:01.000Z | common/vec.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | common/vec.cpp | mathstuf/ospray | 5c34884317b5bb84346e4e1e2e2bf8c7f50d307c | [
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2016 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 30.141026 | 78 | 0.413866 | mathstuf |
f6ca24ee80bb3546b9cb530bcaf795b339fae718 | 1,124 | cpp | C++ | day6/main.cpp | Bl4ckb0ne/adventofcode2016 | f0fd9fd2d2dd3bbd1732fe3716a4ca1919cd89e1 | [
"WTFPL"
] | null | null | null | day6/main.cpp | Bl4ckb0ne/adventofcode2016 | f0fd9fd2d2dd3bbd1732fe3716a4ca1919cd89e1 | [
"WTFPL"
] | null | null | null | day6/main.cpp | Bl4ckb0ne/adventofcode2016 | f0fd9fd2d2dd3bbd1732fe3716a4ca1919cd89e1 | [
"WTFPL"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <string>
std::vector<std::pair<char, int>> frequency(std::vector<std::string>& list, size_t pos)
{
std::map<char, int> m;
for(auto &it : list)
{
m[it[pos]] += 1;
}
std::vector<std::pair<char, int>> v;
fo... | 19.050847 | 108 | 0.505338 | Bl4ckb0ne |
f6cd0428a21e762248233cc8d9c7f443e32278a7 | 5,228 | cpp | C++ | trick_source/sim_services/Executive/Executive_write_s_job_execution.cpp | TheCivilAge/RogueKitten | 0b9fbe17624e77752f6160463c6d8aa5a781aad1 | [
"NASA-1.3"
] | null | null | null | trick_source/sim_services/Executive/Executive_write_s_job_execution.cpp | TheCivilAge/RogueKitten | 0b9fbe17624e77752f6160463c6d8aa5a781aad1 | [
"NASA-1.3"
] | null | null | null | trick_source/sim_services/Executive/Executive_write_s_job_execution.cpp | TheCivilAge/RogueKitten | 0b9fbe17624e77752f6160463c6d8aa5a781aad1 | [
"NASA-1.3"
] | null | null | null |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sstream>
#include "trick/Executive.hh"
#include "trick/command_line_protos.h"
#include "trick/message_proto.h"
#include "trick/message_type.h"
/**
@details
-# If the incoming file pointer is NULL
-# Get ... | 39.308271 | 124 | 0.547819 | TheCivilAge |
f6cd4e85b483c88fb71233d40d9dcdc675f7870d | 10,993 | cpp | C++ | plugins/WinVST/VinylDither/VinylDitherProc.cpp | PanieriLorenzo/airwindows | 03fe0bddb4689eddd5444116ba4862942d069b76 | [
"MIT"
] | 446 | 2018-01-22T18:03:39.000Z | 2022-03-31T18:57:27.000Z | plugins/WinVST/VinylDither/VinylDitherProc.cpp | PanieriLorenzo/airwindows | 03fe0bddb4689eddd5444116ba4862942d069b76 | [
"MIT"
] | 33 | 2018-01-24T20:36:48.000Z | 2022-03-23T21:27:37.000Z | plugins/WinVST/VinylDither/VinylDitherProc.cpp | PanieriLorenzo/airwindows | 03fe0bddb4689eddd5444116ba4862942d069b76 | [
"MIT"
] | 71 | 2018-02-16T18:17:21.000Z | 2022-03-24T21:31:46.000Z | /* ========================================
* VinylDither - VinylDither.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __VinylDither_H
#include "VinylDither.h"
#endif
void VinylDither::processReplacing(float **inputs, float **outputs, VstInt32 sampleF... | 38.437063 | 99 | 0.583735 | PanieriLorenzo |
f6cf469bdb5fd13d01073b8832019641ab781813 | 1,440 | cpp | C++ | src/execution/operator/helper/physical_transaction.cpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | 1 | 2022-03-09T03:05:00.000Z | 2022-03-09T03:05:00.000Z | src/execution/operator/helper/physical_transaction.cpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | null | null | null | src/execution/operator/helper/physical_transaction.cpp | rainmaple/duckdb | d3df77ba6740b8b089bddbfef77e2b969245b5cf | [
"MIT"
] | 1 | 2022-01-18T09:38:19.000Z | 2022-01-18T09:38:19.000Z | #include "duckdb/execution/operator/helper/physical_transaction.hpp"
#include "duckdb/main/client_context.hpp"
using namespace duckdb;
using namespace std;
void PhysicalTransaction::GetChunkInternal(ClientContext &context, DataChunk &chunk, PhysicalOperatorState *state) {
switch (info->type) {
case TransactionType:... | 32 | 116 | 0.747222 | rainmaple |
f6d14ddc8b6b318a0fd0af0fa4e03818c919842b | 4,616 | cc | C++ | ga/src/model/CreateListenerRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-02-02T03:54:39.000Z | 2021-12-13T01:32:55.000Z | ga/src/model/CreateListenerRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 89 | 2018-03-14T07:44:54.000Z | 2021-11-26T07:43:25.000Z | ga/src/model/CreateListenerRequest.cc | aliyun/aliyun-openapi-cpp-sdk | 0cf5861ece17dfb0bb251f13bf3fbdb39c0c6e36 | [
"Apache-2.0"
] | 69 | 2018-01-22T09:45:52.000Z | 2022-03-28T07:58:38.000Z | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 27.975758 | 95 | 0.749133 | aliyun |
f6d18f3090dbda6f9e67301940be754c119c4c40 | 21,040 | cpp | C++ | src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp | dpercy/mongo | 7aadbc29c07ee73c62ccfa3696fbd6262fb3d70e | [
"Apache-2.0"
] | null | null | null | src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp | dpercy/mongo | 7aadbc29c07ee73c62ccfa3696fbd6262fb3d70e | [
"Apache-2.0"
] | null | null | null | src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp | dpercy/mongo | 7aadbc29c07ee73c62ccfa3696fbd6262fb3d70e | [
"Apache-2.0"
] | null | null | null | // mmap_v1_extent_manager.cpp
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the h... | 35.661017 | 111 | 0.530846 | dpercy |
f6d2bf17c3af2a8518c1c43015e6808e9d77aed3 | 7,715 | cpp | C++ | thrift/lib/cpp2/async/StubSaslServer.cpp | senior7515/fbthrift | ebfa5458235632b88211cc01519bcd34b8a518e8 | [
"Apache-2.0"
] | null | null | null | thrift/lib/cpp2/async/StubSaslServer.cpp | senior7515/fbthrift | ebfa5458235632b88211cc01519bcd34b8a518e8 | [
"Apache-2.0"
] | null | null | null | thrift/lib/cpp2/async/StubSaslServer.cpp | senior7515/fbthrift | ebfa5458235632b88211cc01519bcd34b8a518e8 | [
"Apache-2.0"
] | null | null | null | /*
* 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 ma... | 33.111588 | 80 | 0.603759 | senior7515 |
f6d588ee851d94852cbe760e04948625e390a934 | 1,508 | cpp | C++ | BlueBerry/Bundles/org.blueberry.core.expressions/src/berryPropertyTester.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 1 | 2017-03-05T05:29:32.000Z | 2017-03-05T05:29:32.000Z | BlueBerry/Bundles/org.blueberry.core.expressions/src/berryPropertyTester.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | null | null | null | BlueBerry/Bundles/org.blueberry.core.expressions/src/berryPropertyTester.cpp | danielknorr/MITK | b1b9780b2a6671d8118313c5ef71e9aa128362be | [
"BSD-3-Clause"
] | 2 | 2020-10-27T06:51:00.000Z | 2020-10-27T06:51:01.000Z | /*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS... | 24.322581 | 114 | 0.702918 | danielknorr |
f6d5b915ddca9bc3b51eb5d9b0855763fb2ec3b9 | 296 | cpp | C++ | rtos/Source/taskerschedule.cpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 22 | 2019-09-07T22:38:01.000Z | 2022-01-31T21:35:55.000Z | rtos/Source/taskerschedule.cpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | null | null | null | rtos/Source/taskerschedule.cpp | snorkysnark/CortexLib | 0db035332ebdfbebf21ca36e5e04b78a5a908a49 | [
"MIT"
] | 9 | 2019-09-22T11:26:24.000Z | 2022-03-21T10:53:15.000Z | // Filename: taskertypes.hpp
// Created by by Sergey Kolody aka Lamerok on 29.03.2020.
#include "susudefs.hpp" // for __forceinline
#include "taskerconfig.hpp" // die
__forceinline void TaskerSchedule()
{
myTasker::Schedule();
}
extern "C"
{
void Schedule()
{
TaskerSchedule();
}
}
| 14.095238 | 57 | 0.689189 | snorkysnark |
f6d5e7a1da2fbea18118ea3e1bfcbd60422629e0 | 37,362 | cpp | C++ | dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | dali-toolkit/internal/controls/page-turn-view/page-turn-view-impl.cpp | pwisbey/dali-toolkit | aeb2a95e6cb48788c99d0338dd9788c402ebde07 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2016 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable... | 33.568733 | 210 | 0.717119 | pwisbey |
f6d643bc74c16e641612df4d7a4739032096d031 | 1,650 | cpp | C++ | GeeksForGeeks/C Plus Plus/Binary_Tree_to_DLL.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 4 | 2021-06-19T14:15:34.000Z | 2021-06-21T13:53:53.000Z | GeeksForGeeks/C Plus Plus/Binary_Tree_to_DLL.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 2 | 2021-07-02T12:41:06.000Z | 2021-07-12T09:37:50.000Z | GeeksForGeeks/C Plus Plus/Binary_Tree_to_DLL.cpp | ankit-sr/Competitive-Programming | 3397b313b80a32a47cfe224426a6e9c7cf05dec2 | [
"MIT"
] | 3 | 2021-06-19T15:19:20.000Z | 2021-07-02T17:24:51.000Z | /*
Problem Statement:
-----------------
Given a Binary Tree (BT), convert it to a Doubly Linked List(DLL) In-Place. The left and right pointers in nodes are to be used as
previous and next pointers respectively in converted DLL. The order of nodes in DLL must be same as Inorder of the given Binary Tree.
The first nod... | 22.297297 | 134 | 0.581818 | ankit-sr |
f6d69354dc67e0e50ac2865525c67c2044c91a6e | 12,338 | cpp | C++ | keyvi/3rdparty/rapidjson/test/unittest/encodedstreamtest.cpp | remusao/keyvi | 7ea51e4ae94d355c677cce349a1c17290f24252c | [
"Apache-2.0"
] | null | null | null | keyvi/3rdparty/rapidjson/test/unittest/encodedstreamtest.cpp | remusao/keyvi | 7ea51e4ae94d355c677cce349a1c17290f24252c | [
"Apache-2.0"
] | null | null | null | keyvi/3rdparty/rapidjson/test/unittest/encodedstreamtest.cpp | remusao/keyvi | 7ea51e4ae94d355c677cce349a1c17290f24252c | [
"Apache-2.0"
] | null | null | null | // Tencent is pleased to support the open source community by making RapidJSON available.
//
// Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
//
// Licensed under the MIT License (the "License"); you may not use this file except
// in compliance with the License. You ma... | 39.292994 | 112 | 0.584698 | remusao |
f6d69e599c30ceed267a48d599e27c7e29579d15 | 10,957 | cxx | C++ | Graphics/vtkSplineFilter.cxx | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | 1 | 2019-05-31T06:45:40.000Z | 2019-05-31T06:45:40.000Z | Graphics/vtkSplineFilter.cxx | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | null | null | null | Graphics/vtkSplineFilter.cxx | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Visualization Toolkit
Module: vtkSplineFilter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software ... | 28.45974 | 79 | 0.632381 | garyc618 |
f6d8222066977c89bb8e2317475035a7948aa414 | 12,244 | cpp | C++ | src/mongocxx/test/database.cpp | CURG-old/mongo-cxx-driver | 06d29a00e4e554e7930e3f8ab40ebcecc9ab31c8 | [
"Apache-2.0"
] | null | null | null | src/mongocxx/test/database.cpp | CURG-old/mongo-cxx-driver | 06d29a00e4e554e7930e3f8ab40ebcecc9ab31c8 | [
"Apache-2.0"
] | null | null | null | src/mongocxx/test/database.cpp | CURG-old/mongo-cxx-driver | 06d29a00e4e554e7930e3f8ab40ebcecc9ab31c8 | [
"Apache-2.0"
] | null | null | null | // Copyright 2014 MongoDB 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 wri... | 33.730028 | 100 | 0.631166 | CURG-old |
f6d8e6ed1c1acb892e262c51c87f5044d341ce31 | 402 | cpp | C++ | examples/C++NPv2/Configurable_Logging_Server.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | examples/C++NPv2/Configurable_Logging_Server.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | null | null | null | examples/C++NPv2/Configurable_Logging_Server.cpp | azerothcore/lib-ace | c1fedd5f2033951eee9ecf898f6f2b75584aaefc | [
"DOC"
] | 1 | 2020-04-26T03:07:12.000Z | 2020-04-26T03:07:12.000Z | /*
** Copyright 2002 Addison Wesley. All Rights Reserved.
*/
#include "ace/OS_main.h"
#include "ace/Service_Config.h"
#include "ace/Reactor.h"
int ACE_TMAIN (int argc, ACE_TCHAR *argv[]) {
ACE_STATIC_SVC_REGISTER (Reporter_Descriptor);
ACE_Service_Config::open
(argc, argv, ACE_DEFAULT_LOGGER_KE... | 21.157895 | 55 | 0.69403 | azerothcore |
f6da1283e15ae204b17de2a5ca36f8d59ca06ff7 | 956 | cxx | C++ | demo/stl/vec1.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | demo/stl/vec1.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | demo/stl/vec1.cxx | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | /* -*- C++ -*- */
/*************************************************************************
* Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch)
*
* For the licensing terms see the file COPYING
*
************************************************************************/
#include <iostream.h>
#include <strin... | 24.512821 | 74 | 0.507322 | paulwratt |
f6dcc3ef0480ce4f89875717224709f200d54d6e | 579 | cpp | C++ | src/crop.cpp | dbddqy/DPI | 9fa05335902a7404cbc197653e476706ed724ae1 | [
"MIT"
] | null | null | null | src/crop.cpp | dbddqy/DPI | 9fa05335902a7404cbc197653e476706ed724ae1 | [
"MIT"
] | null | null | null | src/crop.cpp | dbddqy/DPI | 9fa05335902a7404cbc197653e476706ed724ae1 | [
"MIT"
] | null | null | null | //
// Created by yue on 29.11.19.
//
#include <iostream>
#include <time.h>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main()
{
Mat myImage = imread("../../images/01.jpg");
Mat mask = Mat::zeros(myImage.size(), CV_8UC1);
Rect r1(0, 256, 256, 512);
Rect r2(600, 50, 128,... | 19.3 | 51 | 0.623489 | dbddqy |
f6ddf6cb0738ea07ca68b0cfccdfec74649675f8 | 11,795 | cc | C++ | chrome/browser/bookmarks/bookmark_utils.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/bookmarks/bookmark_utils.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/bookmarks/bookmark_utils.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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/bookmarks/bookmark_utils.h"
#include <utility>
#include "base/basictypes.h"
#include "base/files/file_path.h"
#include "bas... | 34.188406 | 80 | 0.642052 | kurli |
f6def2c6fcddc67da4a188bc5b387e375b1bf740 | 1,285 | cpp | C++ | MyGame/MyGame/fire.cpp | nickoulos/Cpp_Arcade-Game | df63fdbc908e1c37c180278fac2531ac4183de09 | [
"MIT"
] | null | null | null | MyGame/MyGame/fire.cpp | nickoulos/Cpp_Arcade-Game | df63fdbc908e1c37c180278fac2531ac4183de09 | [
"MIT"
] | null | null | null | MyGame/MyGame/fire.cpp | nickoulos/Cpp_Arcade-Game | df63fdbc908e1c37c180278fac2531ac4183de09 | [
"MIT"
] | null | null | null | #include "Fire.h"
#include "graphics.h"
#include "game.h"
#include "config.h"
#include "util.h"
void Fire::update()
{
pos_x += speed * graphics::getDeltaTime();
if (pos_x > WINDOW_WIDTH)
{
active = false;
}
}
void Fire::draw()
{
graphics::setOrientation(rotation);
brush.texture = std::... | 17.847222 | 76 | 0.616342 | nickoulos |
f6df14a5ece69b4fb0a14ce01efa11ab80e6a742 | 4,388 | hxx | C++ | qtOgitor/include/projectfilesview.hxx | nexustheru/ogitor | a700f8fefffa4ac51c5c20ad155e97e6700aabd4 | [
"MIT"
] | null | null | null | qtOgitor/include/projectfilesview.hxx | nexustheru/ogitor | a700f8fefffa4ac51c5c20ad155e97e6700aabd4 | [
"MIT"
] | null | null | null | qtOgitor/include/projectfilesview.hxx | nexustheru/ogitor | a700f8fefffa4ac51c5c20ad155e97e6700aabd4 | [
"MIT"
] | 2 | 2021-04-02T03:53:18.000Z | 2022-03-03T07:12:16.000Z | /*/////////////////////////////////////////////////////////////////////////////////
/// An
/// ___ ____ ___ _____ ___ ____
/// / _ \ / ___|_ _|_ _/ _ \| _ \
/// | | | | | _ | | | || | | | |_) |
/// | |_| | |_| || | | || |_| | _ <
/// \___/ \____|___| |_| \___/|_| \_\
/// ... | 33.496183 | 83 | 0.600273 | nexustheru |
f6dfd616ed5ca22d96968ae95f7635820eff364e | 10,306 | cpp | C++ | QuantumGateLib/Core/UDP/UDPConnectionMTUD.cpp | Colorfingers/QuantumGate | e183e02464859f4ca486999182c4c41221f3261a | [
"MIT"
] | null | null | null | QuantumGateLib/Core/UDP/UDPConnectionMTUD.cpp | Colorfingers/QuantumGate | e183e02464859f4ca486999182c4c41221f3261a | [
"MIT"
] | null | null | null | QuantumGateLib/Core/UDP/UDPConnectionMTUD.cpp | Colorfingers/QuantumGate | e183e02464859f4ca486999182c4c41221f3261a | [
"MIT"
] | null | null | null | // This file is part of the QuantumGate project. For copyright and
// licensing information refer to the license file(s) in the project root.
#include "pch.h"
#include "UDPConnectionMTUD.h"
#include "UDPConnection.h"
using namespace std::chrono_literals;
namespace QuantumGate::Implementation::Core::UDP::Connection
{... | 29.614943 | 138 | 0.678149 | Colorfingers |
f6e316453d56fae9b4cac676c9dada9961bfa5a2 | 2,490 | cc | C++ | Core/runtime/jsc/timeout_callback.cc | imchoi/lynx-native | d90073c6444e0e47f6b2d31f11f0a3350b5e1a10 | [
"MIT"
] | null | null | null | Core/runtime/jsc/timeout_callback.cc | imchoi/lynx-native | d90073c6444e0e47f6b2d31f11f0a3350b5e1a10 | [
"MIT"
] | null | null | null | Core/runtime/jsc/timeout_callback.cc | imchoi/lynx-native | d90073c6444e0e47f6b2d31f11f0a3350b5e1a10 | [
"MIT"
] | null | null | null | // Copyright 2017 The Lynx Authors. All rights reserved.
#include "runtime/jsc/timeout_callback.h"
#include "runtime/jsc/jsc_function.h"
#include "runtime/timed_task.h"
#include "runtime/jsc/jsc_context.h"
#include "runtime/jsc/jsc_class_wrap_storage.h"
namespace jscore {
static JSValueRef SetTimeoutCallback... | 52.978723 | 104 | 0.678715 | imchoi |
f6e43a11728022ef4d596731dcfbaf304f707182 | 3,325 | cc | C++ | dependencies/ethzasl_msf/msf_core/src/similaritytransform.cc | sahibdhanjal/astrobee | 5bc4e6e58adcf1bc7e1c3719ced736063bba276c | [
"Apache-2.0"
] | 772 | 2015-01-06T23:59:10.000Z | 2022-03-26T10:15:09.000Z | dependencies/ethzasl_msf/msf_core/src/similaritytransform.cc | sahibdhanjal/astrobee | 5bc4e6e58adcf1bc7e1c3719ced736063bba276c | [
"Apache-2.0"
] | 121 | 2015-01-03T01:53:46.000Z | 2021-12-06T10:18:23.000Z | dependencies/ethzasl_msf/msf_core/src/similaritytransform.cc | sahibdhanjal/astrobee | 5bc4e6e58adcf1bc7e1c3719ced736063bba276c | [
"Apache-2.0"
] | 397 | 2015-01-06T10:51:39.000Z | 2022-03-22T05:12:22.000Z | /*
* Copyright (c) 2012, Markus Achtelik, ASL, ETH Zurich, Switzerland
* You can contact the author at <acmarkus at ethz dot ch>
*
* 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
*
* ht... | 33.25 | 78 | 0.664662 | sahibdhanjal |
f6e4a652302cd5a7c7eb878acc6e39cf1fef8c6c | 1,690 | cpp | C++ | src/third_party/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ThreadLocal.cpp | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 171 | 2018-09-17T13:15:12.000Z | 2022-03-18T03:47:04.000Z | src/third_party/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ThreadLocal.cpp | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 51 | 2019-10-23T11:55:08.000Z | 2021-12-21T06:32:11.000Z | src/third_party/swiftshader/third_party/llvm-7.0/llvm/lib/Support/ThreadLocal.cpp | rhencke/engine | 1016db292c4e73374a0a11536b18303c9522a224 | [
"BSD-3-Clause"
] | 35 | 2018-09-18T07:46:53.000Z | 2022-03-27T07:59:48.000Z | //===- ThreadLocal.cpp - Thread Local Data ----------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 34.489796 | 80 | 0.566272 | rhencke |
f6e617ca4d983a0935214102c7d3be2260ffc447 | 523 | cpp | C++ | tools/jit/templates/external_functions_codegen_template.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 60,067 | 2017-01-18T17:21:31.000Z | 2022-03-31T21:37:45.000Z | tools/jit/templates/external_functions_codegen_template.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 66,955 | 2017-01-18T17:21:38.000Z | 2022-03-31T23:56:11.000Z | tools/jit/templates/external_functions_codegen_template.cpp | Hacky-DH/pytorch | 80dc4be615854570aa39a7e36495897d8a040ecc | [
"Intel"
] | 19,210 | 2017-01-18T17:45:04.000Z | 2022-03-31T23:51:56.000Z | // ${generated_comment}
#include <torch/csrc/jit/tensorexpr/external_functions.h>
#include <ATen/Functions.h>
#include <ATen/NativeFunctions.h>
#include <c10/util/irange.h>
#include <torch/csrc/jit/tensorexpr/external_functions_registry.h>
namespace torch {
namespace jit {
namespace tensorexpr {
#ifdef C10_MOBILE
ex... | 17.433333 | 66 | 0.75717 | Hacky-DH |
f6e69cfca1157cdc85039100aee96a3ca956f236 | 1,443 | hpp | C++ | include/codegen/include/TMPro/SpriteAssetUtilities/TexturePacker_SpriteSize.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/TMPro/SpriteAssetUtilities/TexturePacker_SpriteSize.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/TMPro/SpriteAssetUtilities/TexturePacker_SpriteSize.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:24 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.ValueType
#include "System/ValueType.hpp"
// Includin... | 37.973684 | 137 | 0.70201 | Futuremappermydud |
f6e8e010b84fe729de12faf0aec9a5f56b657b90 | 4,178 | cc | C++ | tensorflow/contrib/lite/allocation.cc | imdone/tensorflow | bb4d1ef3861c83627ee9586b85ac3070a7d38335 | [
"Apache-2.0"
] | 1 | 2021-04-16T14:53:22.000Z | 2021-04-16T14:53:22.000Z | tensorflow/contrib/lite/allocation.cc | imdone/tensorflow | bb4d1ef3861c83627ee9586b85ac3070a7d38335 | [
"Apache-2.0"
] | 10 | 2018-02-04T18:41:52.000Z | 2018-05-02T09:00:46.000Z | tensorflow/contrib/lite/allocation.cc | imdone/tensorflow | bb4d1ef3861c83627ee9586b85ac3070a7d38335 | [
"Apache-2.0"
] | 4 | 2018-01-17T14:22:49.000Z | 2018-02-27T15:06:41.000Z | /* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 33.424 | 85 | 0.686692 | imdone |
f6ebe1f8afb91fa7292968cdc6c54419df77b8f5 | 4,683 | cpp | C++ | libgbacom/src/VBA/VBAIOManager.cpp | Sage-of-Mirrors/libgbacom | f7ed27242baabfc95c04913ddadee0babf0997d4 | [
"MIT"
] | null | null | null | libgbacom/src/VBA/VBAIOManager.cpp | Sage-of-Mirrors/libgbacom | f7ed27242baabfc95c04913ddadee0babf0997d4 | [
"MIT"
] | null | null | null | libgbacom/src/VBA/VBAIOManager.cpp | Sage-of-Mirrors/libgbacom | f7ed27242baabfc95c04913ddadee0babf0997d4 | [
"MIT"
] | null | null | null | #include "../../include/VBA/VBAIOManager.h"
namespace GBACom {
namespace VBA {
int VBAIOManager::Read(char* buffer, char& status) {
char read_cmd[5] = { GBACom::READ, 0, 0, 0, 0 };
int received_bytes = m_Device.RunBuffer(read_cmd, 5);
for (int i = 0; i < 4; i++) {
buffer[i] = read_cmd[i];
}
... | 24.139175 | 102 | 0.634422 | Sage-of-Mirrors |
f6ec3d03ab0b0fc915ffd82a0a96399fb04020e0 | 7,030 | cpp | C++ | REDSI_1160929_1161573/boost_1_67_0/libs/regex/src/c_regex_traits.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/regex/src/c_regex_traits.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | REDSI_1160929_1161573/boost_1_67_0/libs/regex/src/c_regex_traits.cpp | Wultyc/ISEP_1718_2A2S_REDSI_TrabalhoGrupo | eb0f7ef64e188fe871f47c2ef9cdef36d8a66bc8 | [
"MIT"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | /*
*
* Copyright (c) 2004
* John Maddock
*
* Use, modification and distribution are subject to the
* Boost Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*
*/
/*
* LOCATION: see http://www.boost.org for most recent... | 33.961353 | 159 | 0.621195 | Wultyc |
f6eca25f0c2d7aac5f74e917ae42703c2f8a7025 | 1,739 | hh | C++ | dune/xt/common/parallel/helper.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 2 | 2020-02-08T04:08:52.000Z | 2020-08-01T18:54:14.000Z | dune/xt/common/parallel/helper.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 35 | 2019-08-19T12:06:35.000Z | 2020-03-27T08:20:39.000Z | dune/xt/common/parallel/helper.hh | dune-community/dune-xt | da921524c6fff8d60c715cb4849a0bdd5f020d2b | [
"BSD-2-Clause"
] | 1 | 2020-02-08T04:09:34.000Z | 2020-02-08T04:09:34.000Z | // This file is part of the dune-xt project:
// https://zivgitlab.uni-muenster.de/ag-ohlberger/dune-community/dune-xt
// Copyright 2009-2021 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (h... | 31.618182 | 100 | 0.753882 | dune-community |
f6eee902886834eb0e7d56af23e5f09e11d98531 | 9,016 | cpp | C++ | test/test_xoptional.cpp | JohanMabille/xtl | e697c91e2a3ac571d120d2b093fb3b250d060a7d | [
"BSD-3-Clause"
] | 86 | 2019-10-15T16:52:45.000Z | 2022-02-25T07:41:48.000Z | test/test_xoptional.cpp | JohanMabille/xtl | e697c91e2a3ac571d120d2b093fb3b250d060a7d | [
"BSD-3-Clause"
] | 81 | 2017-09-18T09:31:46.000Z | 2019-10-06T12:32:41.000Z | test/test_xoptional.cpp | JohanMabille/xtl | e697c91e2a3ac571d120d2b093fb3b250d060a7d | [
"BSD-3-Clause"
] | 44 | 2017-09-10T19:52:58.000Z | 2019-08-25T16:12:26.000Z | /***************************************************************************
* Copyright (c) Johan Mabille, Sylvain Corlay and Wolf Vollprecht *
* Copyright (c) QuantStack *
* *
* Distribute... | 28.990354 | 106 | 0.547582 | JohanMabille |
f6efaea3846cef9b27b4cf3a15baccad0f8037c5 | 156 | hpp | C++ | header/polyrand.hpp | Leomotors/Factoring-Polynomial-Generator | 662ed28da383aa8b05823f7fc168d9ca350b2afd | [
"MIT"
] | 2 | 2021-04-19T12:33:55.000Z | 2021-04-24T15:33:34.000Z | header/polyrand.hpp | Leomotors/Factoring-Polynomial-Generator | 662ed28da383aa8b05823f7fc168d9ca350b2afd | [
"MIT"
] | 1 | 2021-04-25T06:29:29.000Z | 2021-04-25T06:30:36.000Z | header/polyrand.hpp | Leomotors/Polynomial-Problems-Generator | 662ed28da383aa8b05823f7fc168d9ca350b2afd | [
"MIT"
] | null | null | null | #include <vector>
#include <utility>
#ifndef POLYNOMIAL_RANDOM
#define POLYNOMIAL_RANDOM
std::vector<std::pair<int64_t, int64_t>> randPoly(int64_t);
#endif | 22.285714 | 59 | 0.788462 | Leomotors |
f6efec698f555ea71a94c4dea38421ce59a0bde7 | 1,822 | cpp | C++ | framework/core/net/calibrator_factory.cpp | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | null | null | null | framework/core/net/calibrator_factory.cpp | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | null | null | null | framework/core/net/calibrator_factory.cpp | pangge/Anakin | f327267d1ee2038d92d8c704ec9f1a03cb800fc8 | [
"Apache-2.0"
] | null | null | null | #include "framework/core/net/calibrator_factory.h"
namespace anakin{
OperatorBase* create_op_with_pt(std::string op_name, std::string precision, std::string target){
LOG(INFO) << "creating op:" << op_name << "( precision:" << precision << ",target:" << target << ")";
#ifdef USE_X86_PLACE
if (target == "X86"){... | 28.030769 | 123 | 0.52854 | pangge |
f6f163aad5a4a8d8f71589c92102800b58029d60 | 495 | cpp | C++ | src/systems/launching-system/impl.cpp | Ghabriel/ecs-arkanoid | af005bc89ce535616c7a006c7c76b2a414c90901 | [
"Apache-2.0"
] | 1 | 2019-07-12T04:54:44.000Z | 2019-07-12T04:54:44.000Z | src/systems/launching-system/impl.cpp | Ghabriel/ecs-arkanoid | af005bc89ce535616c7a006c7c76b2a414c90901 | [
"Apache-2.0"
] | null | null | null | src/systems/launching-system/impl.cpp | Ghabriel/ecs-arkanoid | af005bc89ce535616c7a006c7c76b2a414c90901 | [
"Apache-2.0"
] | null | null | null | #include "include.hpp"
#include "../../helpers/ball-paddle-contact.hpp"
void useLaunchingSystem(ecs::World& world) {
ecs::Entity paddleId = world.unique<Paddle>();
const Position& paddlePos = world.getData<Position>(paddleId);
world.findAll<Ball>()
.join<Position>()
.forEach(
... | 29.117647 | 83 | 0.620202 | Ghabriel |
f6f25e819a5cb6bbbccdb735b0e347fb4dee7d77 | 5,570 | cc | C++ | src/devices/mcu/drivers/chromiumos-ec-core/usb_pd_test.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 5 | 2022-01-10T20:22:17.000Z | 2022-01-21T20:14:17.000Z | src/devices/mcu/drivers/chromiumos-ec-core/usb_pd_test.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | 1 | 2022-03-01T01:12:04.000Z | 2022-03-01T01:17:26.000Z | src/devices/mcu/drivers/chromiumos-ec-core/usb_pd_test.cc | allansrc/fuchsia | a2c235b33fc4305044d496354a08775f30cdcf37 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2021 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 "src/devices/mcu/drivers/chromiumos-ec-core/usb_pd.h"
#include <fidl/fuchsia.hardware.google.ec/cpp/wire_types.h>
#include <inttypes.h>
#include ... | 33.963415 | 93 | 0.685099 | allansrc |
f6f306e7879aec5880387d3f63ee4c4c28ead300 | 11,938 | cxx | C++ | vendor/fltk-sys/cfltk/fltk/src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx | dareludum/icfpc2020 | a4fae7389da30a8f1d151df00752290ec2472b84 | [
"MIT"
] | null | null | null | vendor/fltk-sys/cfltk/fltk/src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx | dareludum/icfpc2020 | a4fae7389da30a8f1d151df00752290ec2472b84 | [
"MIT"
] | null | null | null | vendor/fltk-sys/cfltk/fltk/src/drivers/Pico/Fl_Pico_Graphics_Driver.cxx | dareludum/icfpc2020 | a4fae7389da30a8f1d151df00752290ec2472b84 | [
"MIT"
] | null | null | null | //
// Rectangle drawing routines for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2020 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see th... | 23.546351 | 169 | 0.546406 | dareludum |
f6f3847ed066e65f3b74567c02a2bc888b41354d | 2,812 | cpp | C++ | network/http/src/http/plugin.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 9 | 2016-08-10T16:51:23.000Z | 2020-04-08T22:07:47.000Z | network/http/src/http/plugin.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 78 | 2015-02-25T15:16:02.000Z | 2021-10-31T15:58:15.000Z | network/http/src/http/plugin.cpp | naazgull/zapata | e5734ff88a17b261a2f4547fa47f01dbb1a69d84 | [
"Unlicense"
] | 7 | 2015-01-13T14:39:21.000Z | 2018-11-24T06:48:09.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute
this software, either in source code form or as a compiled binary, for any
purpose, commercial or non-commercial, and by any means.
In jurisdictions that reco... | 42.606061 | 92 | 0.665363 | naazgull |
f6f4a46ebc90aeca38bdab2980a582bf373a19c1 | 483 | cpp | C++ | Part I - The Basics/Chapter 4 - Computation/Exercises/ch_4_ex_11.cpp | vjavs/Programming | ef1eed5c0a2782dd3ef1c0453460c93384dab41b | [
"MIT"
] | 2 | 2020-04-13T20:46:23.000Z | 2020-06-09T04:38:15.000Z | Part I - The Basics/Chapter 4 - Computation/Exercises/ch_4_ex_11.cpp | vjavs/Programming | ef1eed5c0a2782dd3ef1c0453460c93384dab41b | [
"MIT"
] | null | null | null | Part I - The Basics/Chapter 4 - Computation/Exercises/ch_4_ex_11.cpp | vjavs/Programming | ef1eed5c0a2782dd3ef1c0453460c93384dab41b | [
"MIT"
] | null | null | null | //Copyright 2016 Vinicius Sa (viniciusjavs@gmail.com)
//Chapter 4, Exercise 11
/*
* Program to find all the prime numbers
* between 1 and 100.
*/
#include "std_lib_facilities.h"
vector<int> primes = {2};
bool is_prime(int number)
{
for (int prime : primes)
if (!(number % prime)) return false;
return true;
... | 17.888889 | 53 | 0.616977 | vjavs |