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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
04cbe91b007d1fabe401a44334bab19539ab7231 | 723 | cpp | C++ | usaco/egroup.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | usaco/egroup.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | usaco/egroup.cpp | dk00/old-stuff | e1184684c85fe9bbd1ceba58b94d4da84c67784e | [
"Unlicense"
] | null | null | null | /*
PROB:egroup
LANG:C++
*/
#include<cstdio>
#include<algorithm>
int s[30001];
int go(int n)
{
int i,j,k,c1,c2,c3,min;
for(i=c3=0;i<n;i++)
if(s[i]!=3)c3++;
min=c3;
for(i=j=k=c1=c2=0;i<n;i++)
{
if(s[i]!=3)c3--;
if(s[i]==3)k++;
else if(s[i]==1)
{
c2++... | 17.214286 | 41 | 0.416321 | dk00 |
04cd1733ebf9be34cd2bd02f60a72ceca1b0aee9 | 5,982 | hpp | C++ | core/util/shapes/include/vertexBuffer.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | core/util/shapes/include/vertexBuffer.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | core/util/shapes/include/vertexBuffer.hpp | masscry/badbaby | f0b2e793081491ed7598d3170725fe4b48ae1fff | [
"MIT"
] | null | null | null | /**
* @file vertexBuffer.hpp
*
* Vertex buffer data abstarction
*
*/
#pragma once
#ifndef __BB_CORE_UTIL_VERTEX_BUFFER_HEADER__
#define __BB_CORE_UTIL_VERTEX_BUFFER_HEADER__
#include <deque>
#include <vector>
#include <memory>
#include <cassert>
#include <common.hpp>
#include <camera.hpp>
namespace bb
{
c... | 23.928 | 103 | 0.6777 | masscry |
04cdafc7b887cc1b981d313a78f3b577d59fbf61 | 294 | cpp | C++ | src/main.cpp | ndongmo/DroneLib | 494f3c94be58ba1eb2310961abb15e82bdc68531 | [
"MIT"
] | 2 | 2019-03-17T01:45:59.000Z | 2019-06-02T11:03:55.000Z | src/main.cpp | ndongmo/DroneLib | 494f3c94be58ba1eb2310961abb15e82bdc68531 | [
"MIT"
] | null | null | null | src/main.cpp | ndongmo/DroneLib | 494f3c94be58ba1eb2310961abb15e82bdc68531 | [
"MIT"
] | null | null | null | /*!
* \file main.cpp
* \brief main file.
* \author Ndongmo Silatsa Fabrice
* \date 08-03-2019
* \version 2.0
*/
#include "Drone.h"
int main(int argc, char *argv[])
{
int err;
Drone drone;
err = drone.begin();
if (err < 0) return err;
drone.start();
err = drone.end();
return err;
} | 12.25 | 33 | 0.615646 | ndongmo |
04ce299a8d30a555c7985333c3c4cf375553edff | 7,643 | cc | C++ | ge/common/formats/format_transfers/format_transfer_dhwnc_fracz3D_transpose.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 207 | 2020-03-28T02:12:50.000Z | 2021-11-23T18:27:45.000Z | ge/common/formats/format_transfers/format_transfer_dhwnc_fracz3D_transpose.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 4 | 2020-04-17T07:32:44.000Z | 2021-06-26T04:55:03.000Z | ge/common/formats/format_transfers/format_transfer_dhwnc_fracz3D_transpose.cc | mindspore-ai/graphengine | 460406cbd691b963d125837f022be5d8abd1a637 | [
"Apache-2.0"
] | 13 | 2020-03-28T02:52:26.000Z | 2021-07-03T23:12:54.000Z | /**
* Copyright 2020 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... | 40.871658 | 115 | 0.653147 | mindspore-ai |
04cf3a233a5a6a24d75f5033e95eefb775766040 | 3,041 | cpp | C++ | src/runtime/NEON/functions/NEL2NormalizeLayer.cpp | allnes/ComputeLibrary | b81d05d2cb48b374fd5339a65a69fbe27ffd5b47 | [
"MIT"
] | null | null | null | src/runtime/NEON/functions/NEL2NormalizeLayer.cpp | allnes/ComputeLibrary | b81d05d2cb48b374fd5339a65a69fbe27ffd5b47 | [
"MIT"
] | null | null | null | src/runtime/NEON/functions/NEL2NormalizeLayer.cpp | allnes/ComputeLibrary | b81d05d2cb48b374fd5339a65a69fbe27ffd5b47 | [
"MIT"
] | 2 | 2021-10-14T16:39:31.000Z | 2022-03-01T12:04:54.000Z | /*
* Copyright (c) 2017-2019 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... | 36.202381 | 125 | 0.759619 | allnes |
04d16b8cdeac1782f84f7114760a310930e6cf3a | 4,749 | cpp | C++ | csl/cslbase/dyndemo.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/dyndemo.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | csl/cslbase/dyndemo.cpp | arthurcnorman/general | 5e8fef0cc7999fa8ab75d8fdf79ad5488047282b | [
"BSD-2-Clause"
] | null | null | null | // dyndemo.cpp Copyright (C) 2016-2020, Codemist
//
// This is a test and demonstration of run-time loading of a module
// of code. This is an idea I was pursuing at one stage but am not now!
//
/**************************************************************************
* Copyright (C) 2020... | 38.298387 | 75 | 0.54622 | arthurcnorman |
04d235f350f76303cab24879528777495227a182 | 520 | hpp | C++ | src/engine/systems/ClientNetworkSystem.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | src/engine/systems/ClientNetworkSystem.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | src/engine/systems/ClientNetworkSystem.hpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | //
// ClientNetworkSystem.hpp
// engine
//
// Created by Arthur Chaloin on 14/05/2018.
//
#pragma once
#include <thread>
#include "engine/core/Scene.hpp"
#include "engine/core/System.hpp"
#include "engine/network/Selector.hpp"
namespace engine {
class ClientNetworkSystem : public System {
public:
explicit Cl... | 17.931034 | 91 | 0.726923 | arthurchaloin |
04d25b3f8bbac061d41ee4d1a4269efd7f74e7d6 | 2,091 | cc | C++ | RecoTracker/MkFit/plugins/MkFitGeometryESProducer.cc | malbouis/cmssw | 16173a30d3f0c9ecc5419c474bb4d272c58b65c8 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoTracker/MkFit/plugins/MkFitGeometryESProducer.cc | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoTracker/MkFit/plugins/MkFitGeometryESProducer.cc | gartung/cmssw | 3072dde3ce94dcd1791d778988198a44cde02162 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "FWCore/Framework/interface/ModuleFactory.h"
#include "FWCore/Framework/interface/ESProducer.h"
#include "DataFormats/TrackerCommon/interface/TrackerTopology.h"
#include "Geometry/Records/interface/TrackerTopologyRcd.h"
#include "RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h"
#include "RecoTracke... | 37.339286 | 109 | 0.816834 | malbouis |
04d311c2524015bb4ce58eb8b23e4b50f7bfda3d | 1,022 | cpp | C++ | tutorial/minimal/MinimalGraphic.cpp | ljwall/er-301 | d6b5f440f3b558fc1b4135bd2de05a7dc93fd1fb | [
"MIT"
] | 102 | 2021-03-01T10:39:56.000Z | 2022-03-31T00:28:15.000Z | tutorial/minimal/MinimalGraphic.cpp | ljwall/er-301 | d6b5f440f3b558fc1b4135bd2de05a7dc93fd1fb | [
"MIT"
] | 62 | 2021-03-01T19:38:54.000Z | 2022-03-21T00:51:24.000Z | tutorial/minimal/MinimalGraphic.cpp | ljwall/er-301 | d6b5f440f3b558fc1b4135bd2de05a7dc93fd1fb | [
"MIT"
] | 19 | 2021-03-01T19:52:10.000Z | 2021-07-29T03:25:19.000Z | #include <MinimalGraphic.h>
#include <math.h>
MinimalGraphic::MinimalGraphic(int left, int bottom, int width, int height) : od::Graphic(left, bottom, width, height)
{
}
MinimalGraphic::~MinimalGraphic()
{
}
void MinimalGraphic::draw(od::FrameBuffer &fb)
{
const int MARGIN = 2;
// The coordina... | 31.9375 | 119 | 0.690802 | ljwall |
04d3c2e954b8dbb90c7ebd20f36bd773afe629e6 | 3,637 | cpp | C++ | Assignment 4/TreeNodeDisplay.cpp | chendante/Principles-of-Compilers-Assignments | eb2e33c0bf122ab93ee2a576306cf236c544fa44 | [
"Apache-2.0"
] | 11 | 2019-11-19T16:04:51.000Z | 2021-09-27T12:35:24.000Z | Assignment 4/TreeNodeDisplay.cpp | chendante/Principles-of-Compilers-Assignments | eb2e33c0bf122ab93ee2a576306cf236c544fa44 | [
"Apache-2.0"
] | null | null | null | Assignment 4/TreeNodeDisplay.cpp | chendante/Principles-of-Compilers-Assignments | eb2e33c0bf122ab93ee2a576306cf236c544fa44 | [
"Apache-2.0"
] | 8 | 2019-11-18T01:26:52.000Z | 2020-12-31T12:44:03.000Z | #include "TreeNode.h"
// 展示每个节点
void TreeNode::display()
{
for(int i=0;i<MAXCHILDREN;i++)
{
if(this->children[i] != NULL)
this->children[i]->display();
}
this->printNode();
if(this->sibling != NULL)
{
this->sibling->display();
}
}
void TreeNode::printNode()
{
... | 20.432584 | 122 | 0.392081 | chendante |
04d3dbbe2d21025014724d6e011aa8f8add1a5d6 | 1,410 | hpp | C++ | .experimentals/include/passion.old/vm/vmshared_data.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | .experimentals/include/passion.old/vm/vmshared_data.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | .experimentals/include/passion.old/vm/vmshared_data.hpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#ifndef __passion__vm_shared_data__hpp
#define __passion__vm_shared_data__hpp
#include <unordered_map>... | 20.735294 | 79 | 0.621986 | isaponsoft |
3e208da89bd6978267e6862db71eed71a632d61c | 2,909 | cpp | C++ | components/common/tests/properties/properties_map_events.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/common/tests/properties/properties_map_events.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/common/tests/properties/properties_map_events.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "shared.h"
size_t current_hash = 0;
size_t current_layout_hash = 0;
size_t get_correct_hash ()
{
size_t CORRECT_HASHES_32 [] = { 0x54a83a00, 0x41fe0a00, 0x490df002, 0xf09537d6, 0x584dfd50, 0x0f0012ff, 0xffffffff };
size_t CORRECT_HASHES_64 [] = { 0x612d49c0, 0x65a5c778, 0x66fa8797, 0xeca9b434, 0x... | 33.056818 | 143 | 0.643864 | untgames |
3e22ce36d161633af2c374ba3095e6c7b1249cec | 11,959 | cc | C++ | mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.cc | ysh329/mindspore | 754e253466a77ba5335c38a3ec7598db8ee4990a | [
"Apache-2.0"
] | 1 | 2021-03-10T09:05:13.000Z | 2021-03-10T09:05:13.000Z | mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.cc | king4arabs/mindspore | bc38590e5300588aa551355836043af0ea092a72 | [
"Apache-2.0"
] | null | null | null | mindspore/lite/src/runtime/kernel/opencl/kernel/arithmetic.cc | king4arabs/mindspore | bc38590e5300588aa551355836043af0ea092a72 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2020 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... | 48.221774 | 120 | 0.769462 | ysh329 |
3e246d100d1b4e8d7cf55610636e73236f693c31 | 2,792 | cpp | C++ | source/QtMultimedia/QMediaGaplessPlaybackControlSlots.cpp | orangesocks/Qt5xHb | 03aa383d9ae86cdadf7289d846018f8a3382a0e4 | [
"MIT"
] | 11 | 2017-01-30T14:19:11.000Z | 2020-05-30T13:39:16.000Z | source/QtMultimedia/QMediaGaplessPlaybackControlSlots.cpp | orangesocks/Qt5xHb | 03aa383d9ae86cdadf7289d846018f8a3382a0e4 | [
"MIT"
] | 1 | 2017-02-24T20:57:32.000Z | 2018-05-29T13:43:05.000Z | source/QtMultimedia/QMediaGaplessPlaybackControlSlots.cpp | orangesocks/Qt5xHb | 03aa383d9ae86cdadf7289d846018f8a3382a0e4 | [
"MIT"
] | 5 | 2017-01-30T14:19:12.000Z | 2020-03-28T08:54:56.000Z | /*
Qt5xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 5
Copyright (C) 2021 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com>
*/
/*
DO NOT EDIT THIS FILE - the content was created using a source code generator
*/
#include "QMediaGaplessPlaybackControlSlots.h"
QMediaGaples... | 28.783505 | 124 | 0.704513 | orangesocks |
3e25a2f8c2a5af35e835fd898be81be6385ce98d | 2,278 | cpp | C++ | code/Fork.cpp | JasonCheeeeen/Fork_and_Shell_in_os | 3aeecef9830f475edc04cb93759a838daf6bedea | [
"MIT"
] | null | null | null | code/Fork.cpp | JasonCheeeeen/Fork_and_Shell_in_os | 3aeecef9830f475edc04cb93759a838daf6bedea | [
"MIT"
] | null | null | null | code/Fork.cpp | JasonCheeeeen/Fork_and_Shell_in_os | 3aeecef9830f475edc04cb93759a838daf6bedea | [
"MIT"
] | null | null | null | #include<iostream>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<unistd.h>
#include<ctime>
/*
run in linux to use fork and getpid() to get process ID
pid > 0 -- parent
pid = 0 -- child
pid < 0 -- fail
*/
using namespace std;
void with_control();
void without_control();
int main()
{
sran... | 18.520325 | 84 | 0.37928 | JasonCheeeeen |
3e25b85e52824cc39f361cd6f0abe7557dc14f62 | 696 | cpp | C++ | samples/maximumSumSequence/maximumSumSequence.cpp | CiganOliviu/esential-linux-tdd | 11386a8dc5c58ccaa7c982136b980a422077b388 | [
"MIT"
] | 4 | 2019-08-20T18:57:39.000Z | 2020-02-26T20:54:35.000Z | samples/maximumSumSequence/maximumSumSequence.cpp | CiganOliviu/esential | 9cb40e89e9c119c5ac4e6e54ab4b5fd657c91462 | [
"MIT"
] | null | null | null | samples/maximumSumSequence/maximumSumSequence.cpp | CiganOliviu/esential | 9cb40e89e9c119c5ac4e6e54ab4b5fd657c91462 | [
"MIT"
] | null | null | null | #include "../../esential.hpp"
int maximumSequenceSum (oneDimensionalArrayType<int> ODA) {
errorsHandler __handler__;
int sum = 0;
__handler__.standardHandlerOneDimensionalArray (ODA, __PRETTY_FUNCTION__);
for (int iterator = ODA.startPoint; iterator < ODA.length + ODA.endPoint; iterator++) {
sum += ODA.one... | 19.885714 | 88 | 0.725575 | CiganOliviu |
3e270620b3b2e9b6d5cf4d497fc6f2ea354b07a6 | 782 | cpp | C++ | C++/0835-Image-Overlap/soln-1.cpp | wyaadarsh/LeetCode-Solutions | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | [
"MIT"
] | 5 | 2020-07-24T17:48:59.000Z | 2020-12-21T05:56:00.000Z | C++/0835-Image-Overlap/soln-1.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | null | null | null | C++/0835-Image-Overlap/soln-1.cpp | zhangyaqi1989/LeetCode-Solutions | 2655a1ffc8678ad1de6c24295071308a18c5dc6e | [
"MIT"
] | 2 | 2020-07-24T17:49:01.000Z | 2020-08-31T19:57:35.000Z | class Solution {
public:
int largestOverlap(vector<vector<int>>& A, vector<vector<int>>& B) {
int m = A.size(), n = A[0].size();
vector<pair<int, int>> A_ones, B_ones;
for(int i = 0; i < m; ++i)
for(int j = 0; j < n; ++j) {
if(A[i][j] == 1) A_ones.push_back({i, j}... | 31.28 | 72 | 0.425831 | wyaadarsh |
3e2872e31e95bc647a5510f013403ebcf8bd3c3e | 480 | cpp | C++ | Numeric Patterns/numericpattern242.cpp | Starkl7/CPlusPlus-PatternHouse | cf53feac9857d0d87981909e0e8daeda26cb02f4 | [
"MIT"
] | 4 | 2021-09-21T03:43:26.000Z | 2022-01-07T03:07:56.000Z | Numeric Patterns/numericpattern242.cpp | Mahak008/CPlusPlus-PatternHouse | cb1af94590acdf8686dcb5a1aec8da646ca180ff | [
"MIT"
] | 916 | 2021-09-01T15:40:24.000Z | 2022-01-10T17:57:59.000Z | Numeric Patterns/numericpattern242.cpp | Mahak008/CPlusPlus-PatternHouse | cb1af94590acdf8686dcb5a1aec8da646ca180ff | [
"MIT"
] | 20 | 2021-09-30T18:13:58.000Z | 2022-01-06T09:55:36.000Z | #include <iostream>
using namespace std;
int main() {
int n;
cin>>n;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++) {
if (i==n){
cout<<j<<" ";
}
else if(j==1 || j==i){
cout<<j<<" ";
}
else {... | 15.483871 | 38 | 0.289583 | Starkl7 |
3e2aefa0933aff9aba1e9920a94c39fa047dc80d | 8,244 | cc | C++ | src/unix/ibus/gtk_candidate_window_handler.cc | mcognetta/mozc | 1f4fa17372bd196e87042738a16ab08bf904bcbf | [
"BSD-3-Clause"
] | null | null | null | src/unix/ibus/gtk_candidate_window_handler.cc | mcognetta/mozc | 1f4fa17372bd196e87042738a16ab08bf904bcbf | [
"BSD-3-Clause"
] | 1 | 2021-06-30T14:59:51.000Z | 2021-06-30T15:31:56.000Z | src/unix/ibus/gtk_candidate_window_handler.cc | mcognetta/mozc | 1f4fa17372bd196e87042738a16ab08bf904bcbf | [
"BSD-3-Clause"
] | 1 | 2022-03-25T09:01:39.000Z | 2022-03-25T09:01:39.000Z | // Copyright 2010-2020, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of condit... | 35.381974 | 80 | 0.74903 | mcognetta |
3e2b3a26ad4f940448acf90485765de09fc6532c | 702 | cpp | C++ | 1006.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 22 | 2017-08-12T11:56:19.000Z | 2022-03-27T10:04:31.000Z | 1006.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 2 | 2017-12-17T02:52:59.000Z | 2018-02-09T02:10:43.000Z | 1006.cpp | yyong119/ACM-OnlineJudge | 5871993b15231c6615bfa3e7c2b04f0f6a23e9dc | [
"MIT"
] | 4 | 2017-12-22T15:24:38.000Z | 2020-05-18T14:51:16.000Z | #include <iostream>
#include <cmath>
int num[1000001],pre[1000001];
int n,i,nmax,j,flag;
int main(){
using namespace std;
cin>>n;
if (n<=100){
for (i=1; i<=n; i++){
cin>>num[i];
num[i]+=num[i-1];
}
for (i=1; i<n; i++)
for (j=i+1; j<=n; j++) nmax=ma... | 25.071429 | 66 | 0.404558 | yyong119 |
3e2bd3c1974d3fa97df344138acca269b465d4a2 | 4,921 | cc | C++ | third_party/blink/renderer/core/layout/ng/flex/layout_ng_flexible_box.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 | third_party/blink/renderer/core/layout/ng/flex/layout_ng_flexible_box.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 | third_party/blink/renderer/core/layout/ng/flex/layout_ng_flexible_box.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 2018 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 "third_party/blink/renderer/core/layout/ng/flex/layout_ng_flexible_box.h"
#include "third_party/blink/renderer/core/html/forms/html_select_eleme... | 37.564885 | 85 | 0.762447 | zealoussnow |
3e2caf4e192a100c65e3348371e1afebad406cf9 | 15,692 | hpp | C++ | include/ginkgo/core/matrix/fbcsr.hpp | lksriemer/ginkgo | 00a4f67054d73689f07276cc50fb4adc302633fa | [
"BSD-3-Clause"
] | 234 | 2018-01-12T10:12:31.000Z | 2022-03-31T16:27:13.000Z | include/ginkgo/core/matrix/fbcsr.hpp | kho19/ginkgo | cb17428bd2381a15d6c01cac42fa1e7016891239 | [
"BSD-3-Clause"
] | 862 | 2018-02-07T15:07:35.000Z | 2022-03-31T13:00:30.000Z | include/ginkgo/core/matrix/fbcsr.hpp | kho19/ginkgo | cb17428bd2381a15d6c01cac42fa1e7016891239 | [
"BSD-3-Clause"
] | 62 | 2018-01-24T07:58:11.000Z | 2022-03-20T11:49:00.000Z | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2021, the Ginkgo authors
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source co... | 35.826484 | 80 | 0.672572 | lksriemer |
3e2d2aa00597cd96aa6bcf0e1adc54db26a6d4b1 | 2,255 | cpp | C++ | GStreamerStatic.cpp | ashley-b/PothosGStreamer | c29ecb227f67a367a796f6c8918d5818d70ee309 | [
"BSL-1.0"
] | 2 | 2018-03-30T17:45:30.000Z | 2018-08-09T01:57:07.000Z | GStreamerStatic.cpp | ashley-b/PothosGStreamer | c29ecb227f67a367a796f6c8918d5818d70ee309 | [
"BSL-1.0"
] | null | null | null | GStreamerStatic.cpp | ashley-b/PothosGStreamer | c29ecb227f67a367a796f6c8918d5818d70ee309 | [
"BSL-1.0"
] | null | null | null | /// Copyright (c) 2017-2018 Ashley Brighthope
/// SPDX-License-Identifier: BSL-1.0
#include "GStreamerStatic.hpp"
#include "GStreamerTypes.hpp"
#include <gst/gst.h>
namespace {
struct GStreamerStatic
{
GstTypes::GErrorPtr initError;
GStreamerStatic(const GStreamerStatic &) = delete;
... | 30.890411 | 168 | 0.590244 | ashley-b |
3e2f44c85ad3075a1028e1763cf6ecaa8793e5f4 | 23,339 | cpp | C++ | Kits/DirectXTex/DirectXTexXboxDDS.cpp | dephora/Xbox-ATG-Samples | 31e482c9e23def36073542ce614a0f0b145d7112 | [
"MIT"
] | 1 | 2020-12-13T15:58:44.000Z | 2020-12-13T15:58:44.000Z | Kits/DirectXTex/DirectXTexXboxDDS.cpp | dephora/Xbox-ATG-Samples | 31e482c9e23def36073542ce614a0f0b145d7112 | [
"MIT"
] | null | null | null | Kits/DirectXTex/DirectXTexXboxDDS.cpp | dephora/Xbox-ATG-Samples | 31e482c9e23def36073542ce614a0f0b145d7112 | [
"MIT"
] | 1 | 2020-07-30T11:13:23.000Z | 2020-07-30T11:13:23.000Z | //--------------------------------------------------------------------------------------
// File: DirectXTexXboxDDS.cpp
//
// DirectXTex Auxillary functions for saving "XBOX" Xbox One variants of DDS files
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//------... | 32.687675 | 144 | 0.575389 | dephora |
3e2fa44f3488ae27ac4ee5995bdff649c2d02b04 | 1,695 | cpp | C++ | UnsolvedTasks/Tasks/Task6.cpp | JustoSenka/CppAlgorithmsTutorial | 057afe24b5f44e923633a998b6059839942ec333 | [
"MIT"
] | null | null | null | UnsolvedTasks/Tasks/Task6.cpp | JustoSenka/CppAlgorithmsTutorial | 057afe24b5f44e923633a998b6059839942ec333 | [
"MIT"
] | null | null | null | UnsolvedTasks/Tasks/Task6.cpp | JustoSenka/CppAlgorithmsTutorial | 057afe24b5f44e923633a998b6059839942ec333 | [
"MIT"
] | null | null | null | /*
Multiple choice test has several multiple choice questions. Each question can have only one correct answer.
Additionally, timed multiple choice test can specify the time allowed for solving each question in the test.
The code below satisfies this specification, but the customer complained that the memory usage of ... | 18.423913 | 149 | 0.679646 | JustoSenka |
3e31e16309b7ce2dbed57cf264c28432251c957d | 3,452 | cpp | C++ | sensing/pointcloud_preprocessor/src/outlier_filter/radius_search_2d_outlier_filter_nodelet.cpp | goktugyildirim/autoware.universe | b2f90a0952bf37969517f72ccd5a1ea86f253ce5 | [
"Apache-2.0"
] | 12 | 2020-09-25T08:52:59.000Z | 2020-10-05T02:39:31.000Z | sensing/pointcloud_preprocessor/src/outlier_filter/radius_search_2d_outlier_filter_nodelet.cpp | goktugyildirim/autoware.universe | b2f90a0952bf37969517f72ccd5a1ea86f253ce5 | [
"Apache-2.0"
] | 11 | 2022-01-24T10:26:37.000Z | 2022-03-22T08:19:01.000Z | sensing/preprocessor/pointcloud/pointcloud_preprocessor/src/outlier_filter/radius_search_2d_outlier_filter_nodelet.cpp | taikitanaka3/AutowareArchitectureProposal.iv | 0d47ea532118c98458516a8c83fbdab3d27c6231 | [
"Apache-2.0"
] | 9 | 2020-09-27T05:27:09.000Z | 2020-10-08T03:14:25.000Z | // Copyright 2020 Tier IV, 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 i... | 37.11828 | 94 | 0.745365 | goktugyildirim |
3e32a3404d4c140dd89c409507121e42beffc029 | 58,510 | cpp | C++ | ccmain/reject.cpp | mk219533/tesseract-ocr | f44ac865b072e3924f0cb3e205eb396d9cd14516 | [
"Apache-2.0"
] | 1 | 2015-10-24T13:46:18.000Z | 2015-10-24T13:46:18.000Z | ccmain/reject.cpp | mk219533/tesseract-ocr | f44ac865b072e3924f0cb3e205eb396d9cd14516 | [
"Apache-2.0"
] | null | null | null | ccmain/reject.cpp | mk219533/tesseract-ocr | f44ac865b072e3924f0cb3e205eb396d9cd14516 | [
"Apache-2.0"
] | null | null | null | /**********************************************************************
* File: reject.cpp (Formerly reject.c)
* Description: Rejection functions used in tessedit
* Author: Phil Cheatle
* Created: Wed Sep 23 16:50:21 BST 1992
*
* (C) Copyright 1992, Hewlett-Packard Ltd.
** Licensed under the Apache Lic... | 34.196376 | 91 | 0.611536 | mk219533 |
3e34047ddc4f71b890c1f5471eac763a43fb82b9 | 13,627 | cpp | C++ | libs/numeric/ublas/test/tensor/test_tensor_matrix_vector.cpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | libs/numeric/ublas/test/tensor/test_tensor_matrix_vector.cpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | libs/numeric/ublas/test/tensor/test_tensor_matrix_vector.cpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | // Copyright (c) 2018-2019 Cem Bassoy
//
// 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)
//
// The authors gratefully acknowledge the support of
// Fraunhofer and Google in producing this work
// which sta... | 28.809725 | 125 | 0.647905 | cpp-pm |
3e3497b8c152266f30f7561e433904fd766de233 | 3,436 | cpp | C++ | keyapi/keyapi.cpp | vnaydionov/card-proxy | 1bd8464c91ba5bf18571c691194501f0f5874dfc | [
"MIT"
] | 3 | 2016-12-19T00:09:33.000Z | 2021-12-07T08:24:50.000Z | keyapi/keyapi.cpp | vnaydionov/card-proxy | 1bd8464c91ba5bf18571c691194501f0f5874dfc | [
"MIT"
] | 1 | 2016-07-17T11:09:21.000Z | 2016-07-18T08:51:16.000Z | keyapi/keyapi.cpp | vnaydionov/card-proxy | 1bd8464c91ba5bf18571c691194501f0f5874dfc | [
"MIT"
] | 4 | 2015-05-19T07:54:57.000Z | 2021-03-14T06:40:36.000Z | #include <iostream>
#include "app_class.h"
#include "micro_http.h"
#include "servant_utils.h"
#include "keyapi_logic.h"
#include <util/string_utils.h>
#include "domain/VaultUser.h"
Yb::ElementTree::ElementPtr
ping(Yb::Session &session, Yb::ILogger &logger,
const Yb::StringDict ¶ms)
{
return KeyAPI(the... | 33.038462 | 84 | 0.620198 | vnaydionov |
3e3770a4ab804701c84818b0bdcfa73c984e40fd | 14,540 | cpp | C++ | Cores/snes9x/PVSNES/SNES/SNESCore/spc7110.cpp | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 2 | 2021-02-04T22:41:57.000Z | 2021-03-27T07:28:02.000Z | Cores/snes9x/PVSNES/SNES/SNESCore/spc7110.cpp | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | null | null | null | Cores/snes9x/PVSNES/SNES/SNESCore/spc7110.cpp | werminghoff/Provenance | de61b4a64a3eb8e2774e0a8ed53488c6c7aa6cb2 | [
"BSD-3-Clause"
] | 3 | 2019-02-19T12:55:12.000Z | 2019-05-30T08:33:23.000Z | /***********************************************************************************
Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
(c) Copyright 1996 - 2002 Gary Henderson (gary.henderson@ntlworld.com),
Jerremy Koot (jkoot@snes9x.com)
(c) Copyright 2002 - 200... | 29.138277 | 85 | 0.640922 | werminghoff |
3e3af061590ead9f959bab99c31c2780c6e3ad79 | 4,719 | cpp | C++ | boost/libs/type_traits/examples/fill_example.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | boost/libs/type_traits/examples/fill_example.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | boost/libs/type_traits/examples/fill_example.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z |
/*
*
* (C) Copyright John Maddock 1999-2005.
* 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)
*
* This file provides some example of type_traits usage -
* by "optimising" v... | 23.477612 | 90 | 0.631914 | randolphwong |
3e3b096a87bd34364779e8a945d7aee260badde7 | 714 | cpp | C++ | example/eagine/sudoku_tiling.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | 1 | 2022-01-25T10:31:51.000Z | 2022-01-25T10:31:51.000Z | example/eagine/sudoku_tiling.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | example/eagine/sudoku_tiling.cpp | matus-chochlik/eagine-core | 5bc2d6b9b053deb3ce6f44f0956dfccd75db4649 | [
"BSL-1.0"
] | null | null | null | /// @example eagine/sudoku_tiling.cpp
///
/// Copyright Matus Chochlik.
/// 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
///
#include <eagine/program_args.hpp>
#include <eagine/sudoku.hpp>
#include <iostream>
#i... | 23.032258 | 62 | 0.696078 | matus-chochlik |
3e3cba821843f72028d3ddc0cd99bbef8678e4c9 | 1,095 | cpp | C++ | leetcode/hard/1074. Number of Submatrices That Sum to Target.cpp | fpdjsns/Algorithm | 0128da7c333d0c065f6d266d9e6dce4a91842525 | [
"MIT"
] | 7 | 2019-08-05T14:49:41.000Z | 2022-03-13T07:10:51.000Z | leetcode/hard/1074. Number of Submatrices That Sum to Target.cpp | fpdjsns/Algorithm | 0128da7c333d0c065f6d266d9e6dce4a91842525 | [
"MIT"
] | null | null | null | leetcode/hard/1074. Number of Submatrices That Sum to Target.cpp | fpdjsns/Algorithm | 0128da7c333d0c065f6d266d9e6dce4a91842525 | [
"MIT"
] | 4 | 2021-01-04T03:45:22.000Z | 2021-10-06T06:11:00.000Z | /**
* problem : https://leetcode.com/problems/number-of-submatrices-that-sum-to-target/
* time complexity : O(N^2 * M^2)
* algorithm : subSum, dp
*/
class Solution {
public:
int numSubmatrixSumTarget(vector<vector<int>>& matrix, int target) {
int n = matrix.size();
int m = matrix[0].size();
... | 29.594595 | 103 | 0.404566 | fpdjsns |
3e3f784bb6fb46e0a0bcb2c1311e05e032ad1617 | 1,296 | cpp | C++ | EvtGen1_06_00/src/EvtGenModels/EvtItgFunction.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | 2 | 2018-12-24T19:37:00.000Z | 2022-02-28T06:57:20.000Z | EvtGen1_06_00/src/EvtGenModels/EvtItgFunction.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | EvtGen1_06_00/src/EvtGenModels/EvtItgFunction.cpp | klendathu2k/StarGenerator | 7dd407c41d4eea059ca96ded80d30bda0bc014a4 | [
"MIT"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: EvtItgFunction.cpp,v 1.1 2016/10/28 16:52:54 jwebb Exp $
//
// Description:
// Class EvtItgFunction
// Implementation for the EvtItgFunction class. Defines the bounds
// checked value() func... | 23.563636 | 101 | 0.542438 | klendathu2k |
3e3fd889d2e722c567b39c009b0ff35b2ea5cf90 | 1,060 | cpp | C++ | src/v3/AsyncTxnAction.cpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 139 | 2016-09-20T00:28:04.000Z | 2020-09-27T15:05:11.000Z | src/v3/AsyncTxnAction.cpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 85 | 2020-09-29T16:33:00.000Z | 2022-03-30T01:23:23.000Z | src/v3/AsyncTxnAction.cpp | siyuan0322/etcd-cpp-apiv3 | 1575c5b43a64f85f77897e9b5aad24e6523ea453 | [
"BSD-3-Clause"
] | 63 | 2016-12-06T11:42:29.000Z | 2020-09-24T06:15:49.000Z | #include "etcd/v3/action_constants.hpp"
#include "etcd/v3/AsyncTxnAction.hpp"
#include "etcd/v3/Transaction.hpp"
etcdv3::AsyncTxnAction::AsyncTxnAction(
etcdv3::ActionParameters const ¶m, etcdv3::Transaction const &tx)
: etcdv3::Action(param)
{
response_reader = parameters.kv_stub->AsyncTxn(&context, *tx.... | 27.179487 | 82 | 0.718868 | siyuan0322 |
3e4013f86e1ab6e3fe26bfbdc70cfc0bde861de9 | 3,455 | hpp | C++ | src/hotspot/share/jfr/leakprofiler/utilities/saveRestore.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | src/hotspot/share/jfr/leakprofiler/utilities/saveRestore.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | src/hotspot/share/jfr/leakprofiler/utilities/saveRestore.hpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 26.782946 | 113 | 0.741245 | 1690296356 |
3e42e00ab24d231d1c84074f91b40c0e972d80cf | 1,648 | hpp | C++ | src/traderlib/core/bom/tradesparameters.hpp | AndreaCitrolo/Trader | 5ebaff6d5661471357cb827d3b0c61adafc24b50 | [
"MIT"
] | null | null | null | src/traderlib/core/bom/tradesparameters.hpp | AndreaCitrolo/Trader | 5ebaff6d5661471357cb827d3b0c61adafc24b50 | [
"MIT"
] | 1 | 2019-11-06T23:15:30.000Z | 2019-11-11T10:04:32.000Z | src/traderlib/core/bom/tradesparameters.hpp | AndreaCitrolo/Trader | 5ebaff6d5661471357cb827d3b0c61adafc24b50 | [
"MIT"
] | 1 | 2019-11-10T00:01:07.000Z | 2019-11-10T00:01:07.000Z | #ifndef TRADESREQUESTPARAMETERS_HPP
#define TRADESREQUESTPARAMETERS_HPP
#include <QVariant>
#include <QMetaType>
#include <boost/optional.hpp>
#include "basictypes.h"
namespace bitinvest {
namespace core {
namespace bom {
struct TradesParameters
{
TradesParameters():
mSymbol(boost::none),
mFil... | 25.75 | 114 | 0.697816 | AndreaCitrolo |
3e444849fa8f718274fbc0c19ba4aba5120a510a | 319 | cpp | C++ | HackerEarth/Searching/LS_Hexadecimal numbers.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | HackerEarth/Searching/LS_Hexadecimal numbers.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | HackerEarth/Searching/LS_Hexadecimal numbers.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int hexa(int n){
int sum=0;
while(n>0){
sum+=n%16;
n/=16;
}
return sum;
}
int main(){
int t, l, r;
cin>>t;
while(t--){
cin>>l>>r;
int cnt =0;
for(int i=l;i<=r;i++){
if(__gcd(i, hexa(i))>1) cnt++;
}
cout<<cnt<<endl;
}
return 0;
}
| 9.382353 | 33 | 0.492163 | Sowmik23 |
3e44d48bffc61e289c391d80aa9d93dd9c86f172 | 5,709 | inl | C++ | src/Core/Asset/deprecated/FileManager.inl | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | 1 | 2018-04-16T13:55:45.000Z | 2018-04-16T13:55:45.000Z | src/Core/Asset/deprecated/FileManager.inl | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | src/Core/Asset/deprecated/FileManager.inl | sylvaindeker/Radium-Engine | 64164a258b3f7864c73a07c070e49b7138488d62 | [
"Apache-2.0"
] | null | null | null | #include <Core/Asset/deprecated/FileManager.hpp>
namespace Ra {
namespace Core {
namespace Asset {
namespace deprecated {
//////////////////////////////////////////////////////////////////////////////
// CONSTRUCTOR
//////////////////////////////////////////////////////////////////////////////
template <typename DATA... | 34.810976 | 100 | 0.51375 | sylvaindeker |
3e46ab2573f1313da6146302fd0b3465ed976a82 | 3,954 | cpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/fdim_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/fdim_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/rev/scal/fun/fdim_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/rev/scal.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/scal/fun/nan_util.hpp>
#include <test/unit/math/rev/scal/util.hpp>
TEST(AgradRev,fdim_vv) {
using stan::math::fdim;
AVAR a = 3.0;
AVAR b = 4.0;
AVAR f = fdim(a,b);
EXPECT_FLOAT_EQ(0.0,f.val());
AVEC x = createAVEC(a,b)... | 28.652174 | 89 | 0.675013 | yizhang-cae |
3e47e83ff445dc31018a51a3f4f210d0cfc3377b | 4,707 | cpp | C++ | external/nayukidct/src/FastDctLee.cpp | whalenpt/spida | 7c6bf79804dedf276f13271d361148e554132d24 | [
"MIT"
] | 1 | 2022-01-17T10:22:31.000Z | 2022-01-17T10:22:31.000Z | external/nayukidct/src/FastDctLee.cpp | whalenpt/spida | 7c6bf79804dedf276f13271d361148e554132d24 | [
"MIT"
] | null | null | null | external/nayukidct/src/FastDctLee.cpp | whalenpt/spida | 7c6bf79804dedf276f13271d361148e554132d24 | [
"MIT"
] | null | null | null | /*
* Fast discrete cosine transform algorithms (C++)
*
* Copyright (c) 2019 Project Nayuki. (MIT License)
* https://www.nayuki.io/page/fast-discrete-cosine-transform-algorithms
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation file... | 34.108696 | 118 | 0.659868 | whalenpt |
3e4916d0e1def8d13a1e22a79406090440fb34f4 | 211 | cpp | C++ | Baekjoon/14913.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/14913.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/14913.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(void)
{
int a, d, k, n;
cin >> a >> d >> k;
k -= a;
if (k%d != 0)
cout << 'X';
else
{
if (k / d < 0)
cout << 'X';
else
cout << k / d + 1;
}
}
| 11.722222 | 21 | 0.440758 | Twinparadox |
3e492e5957689a19ab408048178ff1f3e4b42e50 | 325 | hpp | C++ | include/libcam/exception.hpp | luckybet100/libcam | c837e84769a75c83c518fcda9d7f12d6061e0110 | [
"MIT"
] | 4 | 2021-07-01T19:49:23.000Z | 2022-03-14T01:53:17.000Z | include/libcam/exception.hpp | luckybet100/libcam | c837e84769a75c83c518fcda9d7f12d6061e0110 | [
"MIT"
] | null | null | null | include/libcam/exception.hpp | luckybet100/libcam | c837e84769a75c83c518fcda9d7f12d6061e0110 | [
"MIT"
] | 1 | 2020-11-04T10:05:00.000Z | 2020-11-04T10:05:00.000Z | #pragma once
#include <string>
#include <stdexcept>
namespace libcam {
class Exception : public std::exception {
private:
std::string message;
public:
Exception(const std::string &message);
virtual ~Exception() noexcept = default;
const char *what() const noexcept;
}... | 16.25 | 48 | 0.621538 | luckybet100 |
3e49383e501e0a410cd3182c97489671069c6278 | 3,460 | cpp | C++ | CesiumUtility/src/Uri.cpp | zrkcode/cesium-native | 5265a65053542fe02928c272762c6b89fa2b29bb | [
"Apache-2.0"
] | null | null | null | CesiumUtility/src/Uri.cpp | zrkcode/cesium-native | 5265a65053542fe02928c272762c6b89fa2b29bb | [
"Apache-2.0"
] | null | null | null | CesiumUtility/src/Uri.cpp | zrkcode/cesium-native | 5265a65053542fe02928c272762c6b89fa2b29bb | [
"Apache-2.0"
] | null | null | null | #include "CesiumUtility/Uri.h"
#include "uriparser/Uri.h"
#include <stdexcept>
using namespace CesiumUtility;
std::string Uri::resolve(
const std::string& base,
const std::string& relative,
bool useBaseQuery) {
UriUriA baseUri;
if (uriParseSingleUriA(&baseUri, base.c_str(), nullptr) != URI_SUCCESS) {... | 26.212121 | 79 | 0.664451 | zrkcode |
3e4b44a77bb8e002683603824a9c473b8e64f161 | 4,462 | cpp | C++ | RobWork/src/rw/geometry/Geometry.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | 1 | 2021-12-29T14:16:27.000Z | 2021-12-29T14:16:27.000Z | RobWork/src/rw/geometry/Geometry.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | RobWork/src/rw/geometry/Geometry.cpp | ZLW07/RobWork | e713881f809d866b9a0749eeb15f6763e64044b3 | [
"Apache-2.0"
] | null | null | null | /********************************************************************************
* Copyright 2009 The Robotics Group, The Maersk Mc-Kinney Moller Institute,
* Faculty of Engineering, University of Southern Denmark
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file exce... | 32.569343 | 95 | 0.586957 | ZLW07 |
3e4b718a16afc7c86a6ac7771ce692c1e75a888a | 446 | cpp | C++ | core/src/Util.cpp | BlurryRoots/hannelore | 28b54553ed3b7be6e1e9e29efe6d1d0473f19bf6 | [
"BSD-2-Clause"
] | 2 | 2015-03-30T15:17:07.000Z | 2016-07-31T04:57:23.000Z | core/src/Util.cpp | BlurryRoots/hannelore | 28b54553ed3b7be6e1e9e29efe6d1d0473f19bf6 | [
"BSD-2-Clause"
] | 5 | 2016-06-08T20:39:16.000Z | 2016-06-08T20:46:42.000Z | core/src/Util.cpp | BlurryRoots/hannelore | 28b54553ed3b7be6e1e9e29efe6d1d0473f19bf6 | [
"BSD-2-Clause"
] | 1 | 2020-06-08T08:07:53.000Z | 2020-06-08T08:07:53.000Z | #include <Util.h>
namespace blurryroots { namespace util {
DebugLogLevel blurryroots::util::log_level = DebugLogLevel::Error
| DebugLogLevel::Warn
| DebugLogLevel::Log
;
bool
has_only_spaces (const std::string& in) {
for (std::string::const_iterator it = in.begin (); it != in.end (); ++it) {
// ret... | 19.391304 | 77 | 0.630045 | BlurryRoots |
3e4dc6f50891f4452446e3c35fd003e5e13d94ee | 37,154 | cpp | C++ | XUXUCAM/CamDxf/campart.cpp | hananiahhsu/OpenCAD | d4ae08195411057cce182fe5a4c0a3d226279697 | [
"Apache-2.0"
] | 13 | 2018-11-06T12:37:42.000Z | 2021-07-22T11:49:35.000Z | XUXUCAM/CamDxf/campart.cpp | hananiahhsu/OpenCAD | d4ae08195411057cce182fe5a4c0a3d226279697 | [
"Apache-2.0"
] | 1 | 2020-05-15T07:21:06.000Z | 2020-05-28T05:10:35.000Z | XUXUCAM/CamDxf/campart.cpp | hananiahhsu/OpenCAD | d4ae08195411057cce182fe5a4c0a3d226279697 | [
"Apache-2.0"
] | 11 | 2018-11-06T12:37:52.000Z | 2021-09-25T08:02:27.000Z | #include "CamDxf/campart.h"
#include "CamDxf/camswap.h"
///used to manually set the loopNumber
#include <QInputDialog>
///@note:at() can be faster than operator[](), because it never causes a deep copy to occur.
/// The tolerance defines the disstance within it a loop is estimated to be closed
int to... | 37.989775 | 529 | 0.603084 | hananiahhsu |
3e513fe8ed2bec4de465f366ba3cebf794f12d86 | 6,056 | cpp | C++ | src/data/cross_sections/collapsed_one_group_cross_sections.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 12 | 2018-03-14T12:30:53.000Z | 2022-01-23T14:46:44.000Z | src/data/cross_sections/collapsed_one_group_cross_sections.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 194 | 2017-07-07T01:38:15.000Z | 2021-05-19T18:21:19.000Z | src/data/cross_sections/collapsed_one_group_cross_sections.cpp | SlaybaughLab/Transport | 8eb32cb8ae50c92875526a7540350ef9a85bc050 | [
"MIT"
] | 10 | 2017-07-06T22:58:59.000Z | 2021-03-15T07:01:21.000Z | #include "data/cross_sections/collapsed_one_group_cross_sections.hpp"
#include <numeric>
namespace bart::data::cross_sections {
namespace {
template <typename MappedType> using MaterialIDMappedTo = std::unordered_map<int, MappedType>;
using FullMatrix = dealii::FullMatrix<double>;
auto ScaleVector = [](MaterialIDM... | 46.229008 | 137 | 0.755614 | SlaybaughLab |
3e531624f296fdd91df69086f4e077ed95c9c4a1 | 62 | cpp | C++ | src/kmer-extern-template.in.cpp | mgawan/mhm2_staging | 0b59be2c2b4d7745d2f89b9b1b342cfe5ef6bd32 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/kmer-extern-template.in.cpp | mgawan/mhm2_staging | 0b59be2c2b4d7745d2f89b9b1b342cfe5ef6bd32 | [
"BSD-3-Clause-LBNL"
] | null | null | null | src/kmer-extern-template.in.cpp | mgawan/mhm2_staging | 0b59be2c2b4d7745d2f89b9b1b342cfe5ef6bd32 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "kmer.hpp"
__MACRO_KMER__(@KMER_LENGTH@, template);
| 15.5 | 40 | 0.758065 | mgawan |
3e572a5f1680b06b71489db34fa2ddedce0426e5 | 59 | cc | C++ | DataFormats/L1TParticleFlow/src/PFTrack.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DataFormats/L1TParticleFlow/src/PFTrack.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DataFormats/L1TParticleFlow/src/PFTrack.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "DataFormats/L1TParticleFlow/interface/PFTrack.h"
| 29.5 | 58 | 0.847458 | ckamtsikis |
3e5c97d7aa7a40f716881305683f440534d29234 | 2,931 | cpp | C++ | Util/llvm/lib/MC/MCAsmInfo.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 5 | 2020-06-30T05:06:40.000Z | 2021-05-24T08:38:33.000Z | Util/llvm/lib/MC/MCAsmInfo.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | null | null | null | Util/llvm/lib/MC/MCAsmInfo.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 2 | 2015-10-01T18:28:20.000Z | 2020-09-09T16:25:27.000Z | //===-- MCAsmInfo.cpp - Asm Info -------------------------------------------==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 27.138889 | 80 | 0.641419 | ianloic |
3e5e62c2001940be60cf67248c6398755183e760 | 777 | cpp | C++ | Plugins/Tweaks/DisablePause.cpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 111 | 2018-01-16T18:49:19.000Z | 2022-03-13T12:33:54.000Z | Plugins/Tweaks/DisablePause.cpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 636 | 2018-01-17T10:05:31.000Z | 2022-03-28T20:06:03.000Z | Plugins/Tweaks/DisablePause.cpp | summonFox/unified | 47ab7d051fe52c26e2928b569e9fe7aec5aa8705 | [
"MIT"
] | 110 | 2018-01-16T19:05:54.000Z | 2022-03-28T03:44:16.000Z | #include "nwnx.hpp"
#include "API/CServerExoAppInternal.hpp"
namespace Tweaks {
using namespace NWNXLib;
using namespace NWNXLib::API;
void DisablePause() __attribute__((constructor));
void DisablePause()
{
if (!Config::Get<bool>("DISABLE_PAUSE", false))
return;
LOG_INFO("Disabling pausing of the... | 25.064516 | 122 | 0.661519 | summonFox |
3e60dd67119e4f7322d8c4be41e5572a9c794398 | 6,921 | cpp | C++ | applications/ExternalSolversApplication/custom_python/add_linear_solvers_to_python.cpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 2 | 2020-04-30T19:13:08.000Z | 2021-04-14T19:40:47.000Z | applications/ExternalSolversApplication/custom_python/add_linear_solvers_to_python.cpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-04-30T19:19:09.000Z | 2020-05-02T14:22:36.000Z | applications/ExternalSolversApplication/custom_python/add_linear_solvers_to_python.cpp | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-06-12T08:51:24.000Z | 2020-06-12T08:51:24.000Z | // | / |
// ' / __| _` | __| _ \ __|
// . \ | ( | | ( |\__ `
// _|\_\_| \__,_|\__|\___/ ____/
// Multi-Physics
//
// License: BSD License
// Kratos default license: kratos/license.txt
//
// Main authors: Riccardo Rossi
//
// System includes
#include <c... | 41.945455 | 147 | 0.740789 | AndreaVoltan |
3e6325244be6601a6cd7ea9f91ccff6048693e2c | 5,428 | cpp | C++ | svo_backend/src/backend_optimizer.cpp | jsz0913/rpg_dvs_evo_open | 93edc7a2d215ed097e3f6a9abbefd0b572958b74 | [
"BSD-2-Clause-Patent"
] | 97 | 2021-06-24T09:34:08.000Z | 2022-02-28T01:58:09.000Z | svo_backend/src/backend_optimizer.cpp | jsz0913/rpg_dvs_evo_open | 93edc7a2d215ed097e3f6a9abbefd0b572958b74 | [
"BSD-2-Clause-Patent"
] | 14 | 2021-06-14T13:01:27.000Z | 2022-03-30T01:49:57.000Z | svo_backend/src/backend_optimizer.cpp | jsz0913/rpg_dvs_evo_open | 93edc7a2d215ed097e3f6a9abbefd0b572958b74 | [
"BSD-2-Clause-Patent"
] | 32 | 2021-06-24T09:34:12.000Z | 2022-03-01T15:23:29.000Z | // This file is part of SVO - Semi-direct Visual Odometry.
//
// Copyright (C) 2014 Christian Forster <forster at ifi dot uzh dot ch>
// (Robotics and Perception Group, University of Zurich, Switzerland).
//
// This file is subject to the terms and conditions defined in the file
// 'LICENSE', which is part of this sour... | 29.182796 | 81 | 0.659359 | jsz0913 |
3e63b75ae5ca396efdd052b7976721b0c8b56bce | 1,596 | hpp | C++ | src/seman/analyser.hpp | chirp-language/chirpc | 75657cc99455dd84f01efd3c308e5676dd0c415f | [
"MIT"
] | 10 | 2021-04-04T21:32:32.000Z | 2021-12-11T21:03:35.000Z | src/seman/analyser.hpp | chirp-language/chirpc | 75657cc99455dd84f01efd3c308e5676dd0c415f | [
"MIT"
] | 6 | 2021-04-05T15:19:19.000Z | 2022-02-21T02:15:35.000Z | src/seman/analyser.hpp | chirp-language/chirpc | 75657cc99455dd84f01efd3c308e5676dd0c415f | [
"MIT"
] | 2 | 2021-04-05T17:24:06.000Z | 2021-04-27T21:20:34.000Z | /// \file Semantic analyser and AST walker
#pragma once
#include "../ast/ast.hpp"
#include "tracker.hpp"
class analyser
{
public:
analyser(ast_root& root, diagnostic_manager& diag)
: root(root), sym_tracker(diag), diagnostics(diag)
{
sym_tracker.set_root(&root);
}
void analyse();
protected:
ast_root& ro... | 27.050847 | 70 | 0.780075 | chirp-language |
3e66310f0d7edcd6ba901237328faba4797d4b0e | 14,356 | cc | C++ | ion/text/tests/platformfont_test.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/text/tests/platformfont_test.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | ion/text/tests/platformfont_test.cc | RobLoach/ion | 9e659416fb04bb3d3a67df1e018d7c2ccab9d468 | [
"Apache-2.0"
] | null | null | null | /**
Copyright 2016 Google Inc. 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 agreed to in... | 38.180851 | 80 | 0.679716 | RobLoach |
3e6aa27a36b4bfdd872bc7f8c74226ea4aebf095 | 4,361 | cpp | C++ | ClassicShellSrc/ClassicIE/ClassicIEDLL/dllmain.cpp | coddec/Classic-Shell | e3f6602abbca4b7d7c147171c5c280f1740270d0 | [
"MIT"
] | 664 | 2017-12-04T15:01:44.000Z | 2022-03-27T13:07:37.000Z | ClassicShellSrc/ClassicIE/ClassicIEDLL/dllmain.cpp | Open343/Classic-Shell | e3f6602abbca4b7d7c147171c5c280f1740270d0 | [
"MIT"
] | 36 | 2017-12-05T02:40:34.000Z | 2022-02-09T23:53:16.000Z | ClassicShellSrc/ClassicIE/ClassicIEDLL/dllmain.cpp | Open343/Classic-Shell | e3f6602abbca4b7d7c147171c5c280f1740270d0 | [
"MIT"
] | 217 | 2017-12-04T14:01:07.000Z | 2022-03-26T10:25:39.000Z | // Classic Shell (c) 2009-2016, Ivo Beltchev
// Confidential information of Ivo Beltchev. Not for disclosure or distribution without prior written consent from the author
#include "stdafx.h"
#include "resource.h"
#include "..\..\ClassicShellLib\resource.h"
#include "Settings.h"
#include "SettingsUI.h"
#include "Settin... | 27.086957 | 125 | 0.766797 | coddec |
3e6adde32c2208837f515688a936f239136ad4fa | 7,579 | cpp | C++ | app/src/dep-parser-train.cpp | FilippoC/dynet-tools | 9d9dc8a717f74e43ed7c9edfba457a44cac4ed9f | [
"MIT"
] | 2 | 2019-04-10T14:25:21.000Z | 2021-04-05T23:18:18.000Z | app/src/dep-parser-train.cpp | FilippoC/dynet-tools | 9d9dc8a717f74e43ed7c9edfba457a44cac4ed9f | [
"MIT"
] | null | null | null | app/src/dep-parser-train.cpp | FilippoC/dynet-tools | 9d9dc8a717f74e43ed7c9edfba457a44cac4ed9f | [
"MIT"
] | 2 | 2019-04-10T14:25:46.000Z | 2021-04-05T23:18:20.000Z | #include <iostream>
#include <unistd.h>
#include <string>
#include "dynet/init.h"
#include "dytools/training.h"
#include "dytools/networks/dependency.h"
#include "dytools/io.h"
bool read_command_line_args(int& argc, char**& argv, dytools::TrainingSettings& training_settings, dytools::DependencySettings& network_sett... | 36.791262 | 194 | 0.572503 | FilippoC |
3e6b529b1e6db4a29ea2fc01a9441545cc368ae5 | 2,717 | cpp | C++ | AEngine/src/Application/Application.cpp | alife1029/AEngine | ecf181948fc90690c7fe2fba7792f29441b445d7 | [
"MIT"
] | 1 | 2022-01-17T19:01:14.000Z | 2022-01-17T19:01:14.000Z | AEngine/src/Application/Application.cpp | alife1029/AEngine | ecf181948fc90690c7fe2fba7792f29441b445d7 | [
"MIT"
] | null | null | null | AEngine/src/Application/Application.cpp | alife1029/AEngine | ecf181948fc90690c7fe2fba7792f29441b445d7 | [
"MIT"
] | null | null | null | #include "AEngine/Application/Application.hpp"
#include "AEngine/Application/FileDialogs.hpp"
#include "AEngine/Input/Input.hpp"
#include "AEngine/Graphics/Renderer2D.hpp"
#include "AEngine/Exception/OpenGLException.hpp"
#include "AEngine/Utils/Time.hpp"
#include "AEngine/Utils/Logger.hpp"
#include <glad/glad.... | 24.926606 | 101 | 0.576739 | alife1029 |
3e7433af3c52925501585f4517369d8b0847664d | 7,622 | cpp | C++ | source/tests/liblocate-test/liblocate_test.cpp | ekilmer/cpplocate | cea23645a43ee3222a34efa2bf972e08638e97bd | [
"MIT"
] | null | null | null | source/tests/liblocate-test/liblocate_test.cpp | ekilmer/cpplocate | cea23645a43ee3222a34efa2bf972e08638e97bd | [
"MIT"
] | null | null | null | source/tests/liblocate-test/liblocate_test.cpp | ekilmer/cpplocate | cea23645a43ee3222a34efa2bf972e08638e97bd | [
"MIT"
] | null | null | null |
#include <gmock/gmock.h>
#include <liblocate/liblocate.h>
class liblocate_test : public testing::Test
{
public:
liblocate_test()
{
}
};
TEST_F(liblocate_test, getExecutablePath_NoReturn)
{
getExecutablePath(nullptr, nullptr);
SUCCEED();
}
TEST_F(liblocate_test, getExecutablePath_Return)
{
... | 23.81875 | 142 | 0.639596 | ekilmer |
3e74752ef83c62d0bfc2052dc27112e90e32706e | 323 | cpp | C++ | src/AllowUrl.cpp | hogelog/capybara-webkit | 90d3196caf0098f9f4c20ea8d453637d2c1feed8 | [
"MIT"
] | 764 | 2015-01-01T03:04:14.000Z | 2022-03-27T23:14:32.000Z | src/AllowUrl.cpp | hogelog/capybara-webkit | 90d3196caf0098f9f4c20ea8d453637d2c1feed8 | [
"MIT"
] | 474 | 2015-01-03T14:39:04.000Z | 2020-03-03T15:57:03.000Z | src/AllowUrl.cpp | hogelog/capybara-webkit | 90d3196caf0098f9f4c20ea8d453637d2c1feed8 | [
"MIT"
] | 224 | 2015-01-08T06:42:24.000Z | 2022-03-25T09:29:43.000Z | #include "AllowUrl.h"
#include "SocketCommand.h"
#include "WebPage.h"
#include "WebPageManager.h"
AllowUrl::AllowUrl(
WebPageManager *manager,
QStringList &arguments,
QObject *parent
) : SocketCommand(manager, arguments, parent) {
}
void AllowUrl::start() {
manager()->allowUrl(arguments()[0]);
finish(true);... | 19 | 47 | 0.71517 | hogelog |
3e7481889a22e921314be87377388e0fdbd0d3c6 | 633 | cpp | C++ | app/flite_main/flite_lang_list.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 7 | 2017-12-10T23:02:22.000Z | 2021-08-05T21:12:11.000Z | app/flite_main/flite_lang_list.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | null | null | null | app/flite_main/flite_lang_list.cpp | Barath-Kannan/flite | 236f91a9a1e60fd25f1deed6d48022567cd7100f | [
"Apache-2.0"
] | 3 | 2018-10-28T03:47:09.000Z | 2020-06-04T08:54:23.000Z | /* Generated automatically from make_lang_list */
#include "flite/flite.hpp"
void usenglish_init(cst_voice* v);
cst_lexicon* cmulex_init(void);
void cmu_indic_lang_init(cst_voice* v);
cst_lexicon* cmu_indic_lex_init(void);
void cmu_grapheme_lang_init(cst_voice* v);
cst_lexicon* cmu_grapheme_lex_init(void);
void fl... | 30.142857 | 87 | 0.802528 | Barath-Kannan |
3e75d890887db1f3fc43bcad2ffe22edf9f7a2ce | 15,257 | cpp | C++ | eden/fs/store/mononoke/test/CurlTest.cpp | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/fs/store/mononoke/test/CurlTest.cpp | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | eden/fs/store/mononoke/test/CurlTest.cpp | jmswen/eden | 5e0b051703fa946cc77fc43004435ae6b20599a1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2019-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 47.235294 | 80 | 0.842433 | jmswen |
3e76addaf7ec86435435700adc7913da1a86b384 | 1,342 | cpp | C++ | src/PointwiseFunctions/AnalyticData/Burgers/Sinusoid.cpp | kidder/spectre | 97ae95f72320f9f67895d3303824e64de6fd9077 | [
"MIT"
] | 117 | 2017-04-08T22:52:48.000Z | 2022-03-25T07:23:36.000Z | src/PointwiseFunctions/AnalyticData/Burgers/Sinusoid.cpp | GitHimanshuc/spectre | 4de4033ba36547113293fe4dbdd77591485a4aee | [
"MIT"
] | 3,177 | 2017-04-07T21:10:18.000Z | 2022-03-31T23:55:59.000Z | src/PointwiseFunctions/AnalyticData/Burgers/Sinusoid.cpp | geoffrey4444/spectre | 9350d61830b360e2d5b273fdd176dcc841dbefb0 | [
"MIT"
] | 85 | 2017-04-07T19:36:13.000Z | 2022-03-01T10:21:00.000Z | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "PointwiseFunctions/AnalyticData/Burgers/Sinusoid.hpp"
#include <array>
#include <cmath>
#include "DataStructures/DataVector.hpp" // IWYU pragma: keep
#include "DataStructures/Tensor/Tensor.hpp"
#include "Utilities/ErrorHandling/Assert.h... | 27.387755 | 74 | 0.694486 | kidder |
3e77c850f0c8469c442df61295e3224ee303e0ac | 5,407 | cpp | C++ | source/typecheck/traits.cpp | requimrar/corescript | 9c46e51d898337df2e7f88250f314c177401d154 | [
"Apache-2.0"
] | 168 | 2015-01-27T15:22:08.000Z | 2021-12-03T15:07:04.000Z | source/typecheck/traits.cpp | requimrar/corescript | 9c46e51d898337df2e7f88250f314c177401d154 | [
"Apache-2.0"
] | 32 | 2015-01-28T14:53:09.000Z | 2020-12-02T10:37:04.000Z | source/typecheck/traits.cpp | requimrar/corescript | 9c46e51d898337df2e7f88250f314c177401d154 | [
"Apache-2.0"
] | 18 | 2015-06-08T20:45:32.000Z | 2021-12-19T14:07:32.000Z | // traits.cpp
// Copyright (c) 2019, zhiayang
// Licensed under the Apache License Version 2.0.
#include "ast.h"
#include "errors.h"
#include "typecheck.h"
#include "polymorph.h"
#include "memorypool.h"
#include "ir/type.h"
TCResult ast::TraitDefn::generateDeclaration(sst::TypecheckState* fs, fir::Type* infer, cons... | 23.206009 | 130 | 0.664509 | requimrar |
3e77e911f6118b678f9c4064123ffd3e8d8f757a | 1,034 | hpp | C++ | src/doc/Document.hpp | felipemanga/Dotto | 61be3e7be083cca5ba16fc8c181799830f6f7d47 | [
"MIT"
] | null | null | null | src/doc/Document.hpp | felipemanga/Dotto | 61be3e7be083cca5ba16fc8c181799830f6f7d47 | [
"MIT"
] | null | null | null | src/doc/Document.hpp | felipemanga/Dotto | 61be3e7be083cca5ba16fc8c181799830f6f7d47 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 LibreSprite Authors (cf. AUTHORS.md)
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#pragma once
#include <common/inject.hpp>
#include <common/PropertySet.hpp>
class Timeline;
class Command;
class Document : public Injectable<Document>, p... | 35.655172 | 114 | 0.712766 | felipemanga |
3e78d8be4d77cdc65f202281cbaa019c5dbd8fc2 | 530 | cpp | C++ | boost/libs/numeric/interval/test/integer.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | boost/libs/numeric/interval/test/integer.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | boost/libs/numeric/interval/test/integer.cpp | randolphwong/mcsema | eb5b376736e7f57ff0a61f7e4e5a436bbb874720 | [
"BSD-3-Clause"
] | 1,343 | 2017-12-08T19:47:19.000Z | 2022-03-26T11:31:36.000Z | /* Boost test/integer.cpp
* test int extension
*
* Copyright 2003 Guillaume Melquiond
*
* 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)
*/
#include <boost/numeric/interval.hpp>
#include <boost/numeric/inter... | 21.2 | 61 | 0.692453 | randolphwong |
3e798632bd3d24452746520058e78875044dbf91 | 852 | hpp | C++ | cpp/G3M/ErrorHandling.hpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 70 | 2015-02-06T14:39:14.000Z | 2022-01-07T08:32:48.000Z | cpp/G3M/ErrorHandling.hpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 118 | 2015-01-21T10:18:00.000Z | 2018-10-16T15:00:57.000Z | cpp/G3M/ErrorHandling.hpp | glob3mobile/g3m | 2b2c6422f05d13e0855b1dbe4e0afed241184193 | [
"BSD-2-Clause"
] | 41 | 2015-01-10T22:29:27.000Z | 2021-06-08T11:56:16.000Z | //
// ErrorHandling.hpp
// G3M
//
// Created by Diego Gomez Deck on 11/17/13.
//
//
#ifndef __G3M__ErrorHandling__
#define __G3M__ErrorHandling__
#if defined(C_CODE) && !defined(__EMSCRIPTEN__)
#include <stdexcept>
#define THROW_EXCEPTION(x) throw(std::logic_error(x));
#endif
#if defined(C_CODE) && defined(_... | 27.483871 | 108 | 0.495305 | glob3mobile |
3e7c1f90cd6271fbb503b4359b80505d8fe18f93 | 2,875 | cpp | C++ | shared/Packet.cpp | RamseyK/jkchat | 72b7b93655850d9e72d600ef185eda779aa9ba82 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | shared/Packet.cpp | RamseyK/jkchat | 72b7b93655850d9e72d600ef185eda779aa9ba82 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | shared/Packet.cpp | RamseyK/jkchat | 72b7b93655850d9e72d600ef185eda779aa9ba82 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /**
jkchat
Packet.cpp
Copyright 2011 Ramsey Kant, Keilan Jackson
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 requi... | 29.040404 | 146 | 0.70887 | RamseyK |
3e7e6c0ece5aca64475ada894ec0da9cbecd7238 | 762 | cpp | C++ | src/VoxerEngine/Math/ChunkPosition.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | src/VoxerEngine/Math/ChunkPosition.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | src/VoxerEngine/Math/ChunkPosition.cpp | cLazyZombie/wasmgl | 68f7cab5bab01d8f00a73c5d32d2d2f9ba6185a9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "ChunkPosition.h"
namespace VoxerEngine
{
ChunkPosition::ChunkPosition() : X(0), Y(0), Z(0)
{
}
ChunkPosition::ChunkPosition(int32_t x, int32_t y, int32_t z) : X(x), Y(y), Z(z)
{
}
VoxerEngine::ChunkPosition ChunkPosition::GetNeighborPos(Direction dir) const
{
switch (dir)
{
... | 18.142857 | 81 | 0.635171 | cLazyZombie |
3e83e2fb9e996bb8528a34bd45f084bcaba19dbf | 1,251 | cpp | C++ | Code/Libraries/Rodin/src/Actions/wbactionrodinblackboardwrite.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Rodin/src/Actions/wbactionrodinblackboardwrite.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Rodin/src/Actions/wbactionrodinblackboardwrite.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "wbactionrodinblackboardwrite.h"
#include "configmanager.h"
#include "Components/wbcomprodinblackboard.h"
#include "wbactionstack.h"
WBActionRodinBlackboardWrite::WBActionRodinBlackboardWrite()
: m_BlackboardKey(), m_ValuePE() {}
WBActionRodinBlackboardWrite::~WBActionRodinBlackboardWri... | 30.512195 | 72 | 0.784972 | kas1e |
3e8620b3460a0ba286bd31784d6065d4bbbb63ed | 2,622 | cpp | C++ | external/glbinding-1.1.0/source/glbinding/source/ContextInfo.cpp | matparsa/Fahim | baccbd9c68fed6a315bf77e7141e4f7af8ea92d5 | [
"MIT"
] | 2 | 2021-10-09T03:47:42.000Z | 2022-02-06T06:34:31.000Z | Examples/Effect/GLator/glbinding/source/glbinding/source/ContextInfo.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | null | null | null | Examples/Effect/GLator/glbinding/source/glbinding/source/ContextInfo.cpp | richardlalancette/AfterEffectsExperimentations | 5eae44e81c867ee44d00f88aaefaef578f7c3de7 | [
"MIT"
] | null | null | null |
#include <glbinding/ContextInfo.h>
#include <sstream>
#include <iostream>
#include <glbinding/Meta.h>
#include <glbinding/Version.h>
#include <glbinding/gl/gl.h>
#include <glbinding/Binding.h>
using namespace gl;
namespace
{
void insertExtension(const std::string extensionName, std::set<GLextension> * extension... | 23.836364 | 136 | 0.636918 | matparsa |
3e884d48bc98a2c0de62101e6cb3a79dbc8cdef3 | 1,497 | hpp | C++ | Viewer/ecflowUI/src/MessageItemWidget.hpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | Viewer/ecflowUI/src/MessageItemWidget.hpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | Viewer/ecflowUI/src/MessageItemWidget.hpp | mpartio/ecflow | ea4b89399d1e7b897ff48c59b1e885e6d53cc8d6 | [
"Apache-2.0"
] | null | null | null | //============================================================================
// Copyright 2009- ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privileges... | 29.352941 | 95 | 0.681363 | mpartio |
3e892b765c3b7bea3baf55a8975dc58bac2536f5 | 7,303 | cpp | C++ | testsuite/comm/TestCase_Comm_Comp.cpp | caochunxi/llbc | 2ff4af937f1635be67a7e24602d0a3e87c708ba7 | [
"MIT"
] | null | null | null | testsuite/comm/TestCase_Comm_Comp.cpp | caochunxi/llbc | 2ff4af937f1635be67a7e24602d0a3e87c708ba7 | [
"MIT"
] | 4 | 2020-04-17T03:25:31.000Z | 2021-08-15T09:48:09.000Z | testsuite/comm/TestCase_Comm_Comp.cpp | caochunxi/llbc | 2ff4af937f1635be67a7e24602d0a3e87c708ba7 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.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 r... | 28.865613 | 110 | 0.625359 | caochunxi |
3e906058a064c5d077cad37d67e499ca60163c62 | 6,819 | cpp | C++ | CodePublisher/CodePublisher.cpp | wuhxxx/remote-code-analyzer | 182ba8c5cd9e88afd6deadd965aab878492dbb46 | [
"MIT"
] | null | null | null | CodePublisher/CodePublisher.cpp | wuhxxx/remote-code-analyzer | 182ba8c5cd9e88afd6deadd965aab878492dbb46 | [
"MIT"
] | null | null | null | CodePublisher/CodePublisher.cpp | wuhxxx/remote-code-analyzer | 182ba8c5cd9e88afd6deadd965aab878492dbb46 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////
// CodePublisher.h - Publish code files //
// Version 1.0 //
// Author: Hongxin WU //
// Resources from Jim Fawcett, CSE687 Sp... | 29.266094 | 137 | 0.594662 | wuhxxx |
3e91bcb417eca4a97ac89051a0184cad82c0d7cd | 4,635 | cpp | C++ | folly/experimental/test/TupleOpsTest.cpp | facebookxx/folly | 2da5b6427c302c34e72c4f0aedaa1d9ed892f6fe | [
"Apache-2.0"
] | 5 | 2020-11-14T19:49:26.000Z | 2021-03-23T14:57:39.000Z | folly/experimental/test/TupleOpsTest.cpp | facebookxx/folly | 2da5b6427c302c34e72c4f0aedaa1d9ed892f6fe | [
"Apache-2.0"
] | 1 | 2021-05-26T00:37:20.000Z | 2021-05-26T00:37:20.000Z | folly/experimental/test/TupleOpsTest.cpp | facebookxx/folly | 2da5b6427c302c34e72c4f0aedaa1d9ed892f6fe | [
"Apache-2.0"
] | 2 | 2020-11-14T18:38:41.000Z | 2020-12-03T11:43:30.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... | 29.903226 | 79 | 0.643797 | facebookxx |
3e9257ffebcb89bed70eaf33a7838d18a8866e6b | 1,770 | cpp | C++ | libs/foe_graphics_vk/src/error_code.cpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | 4 | 2021-04-09T13:11:22.000Z | 2022-03-26T07:29:31.000Z | libs/foe_graphics_vk/src/error_code.cpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | null | null | null | libs/foe_graphics_vk/src/error_code.cpp | StableCoder/foe-engine | 5d49696a46c119e708dc4055b99e18194bcd4c4f | [
"Apache-2.0"
] | 1 | 2022-02-10T14:51:00.000Z | 2022-02-10T14:51:00.000Z | /*
Copyright (C) 2021 George Cave.
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... | 34.038462 | 100 | 0.655367 | StableCoder |
3e94366a9fbb523dabb584c31b2b9db7597af98e | 20,028 | cc | C++ | components/captive_portal/content/captive_portal_tab_helper_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/captive_portal/content/captive_portal_tab_helper_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | components/captive_portal/content/captive_portal_tab_helper_unittest.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"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 "components/captive_portal/content/captive_portal_tab_helper.h"
#include <memory>
#include "base/bind_helpers.h"
#include "base/callback.h"... | 37.575985 | 80 | 0.737517 | sarang-apps |
3e9440f5e031d8229ae3526e8a7ba42af3e84906 | 475 | cpp | C++ | cpac/chef/copi.cpp | abhinavsri360/Allcodes | 0dfc3367ecc1df58f502f20ff3d732c49c62f140 | [
"MIT"
] | 5 | 2020-07-17T04:52:09.000Z | 2022-02-15T19:53:09.000Z | cpac/chef/copi.cpp | abhinavsri360/Allcodes | 0dfc3367ecc1df58f502f20ff3d732c49c62f140 | [
"MIT"
] | null | null | null | cpac/chef/copi.cpp | abhinavsri360/Allcodes | 0dfc3367ecc1df58f502f20ff3d732c49c62f140 | [
"MIT"
] | 1 | 2022-02-15T19:53:16.000Z | 2022-02-15T19:53:16.000Z | // C++ implementation of the approach
#include <bits/stdc++.h>
using namespace std;
// Function to count possible pairs
void CountPair(int L, int R)
{
// total count of numbers in range
int x = (R - L + 1);
// Note that if 'x' is odd then
// there will be '1' element left
// which can't form a pair
... | 15.322581 | 38 | 0.581053 | abhinavsri360 |
3e9508c05fed7d576f9de8c44ec0b0f33035e5af | 2,037 | hpp | C++ | raintk/RainTkTransformSystem.hpp | preet/raintk | 9cbd596d9cec9aca7d3bbf3994a2931bac87e98d | [
"Apache-2.0"
] | 4 | 2016-05-03T20:47:51.000Z | 2021-04-15T09:33:34.000Z | raintk/RainTkTransformSystem.hpp | preet/raintk | 9cbd596d9cec9aca7d3bbf3994a2931bac87e98d | [
"Apache-2.0"
] | null | null | null | raintk/RainTkTransformSystem.hpp | preet/raintk | 9cbd596d9cec9aca7d3bbf3994a2931bac87e98d | [
"Apache-2.0"
] | 1 | 2017-07-26T07:31:35.000Z | 2017-07-26T07:31:35.000Z | /*
Copyright (C) 2015-2016 Preet Desai (preet.desai@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 a... | 27.90411 | 75 | 0.679921 | preet |
3e95390f2876475d320b1fde9702cd5bdce52dea | 67,901 | hpp | C++ | src/win_socks/include/unifex_IOCP_sockets.hpp | grishavanika/win_io | 29a7bb5ae5974754662207992627c1d0dfc9e865 | [
"MIT"
] | 1 | 2021-05-04T18:39:17.000Z | 2021-05-04T18:39:17.000Z | src/win_socks/include/unifex_IOCP_sockets.hpp | grishavanika/win_io | 29a7bb5ae5974754662207992627c1d0dfc9e865 | [
"MIT"
] | null | null | null | src/win_socks/include/unifex_IOCP_sockets.hpp | grishavanika/win_io | 29a7bb5ae5974754662207992627c1d0dfc9e865 | [
"MIT"
] | null | null | null | #include <WinSock2.h>
#include <WS2tcpip.h>
#if !defined(WIN32_LEAN_AND_MEAN)
# define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
#if !defined(_WINSOCKAPI_)
# define _WINSOCKAPI_
#endif
#include <MSWSock.h>
#include <win_io/detail/io_completion_port.h>
#include <unifex/sender_concepts.hpp>
#inc... | 32.897771 | 130 | 0.596088 | grishavanika |
3e98c523beb1c8a629ddeb611c68cce183c97174 | 119 | hpp | C++ | include/bs/config.hpp | gitter-badger/bs | 217e5fc1bf07b40441b73c5ba002f6dfe1ab0592 | [
"MIT"
] | 1 | 2021-02-28T20:15:52.000Z | 2021-02-28T20:15:52.000Z | include/bs/config.hpp | nikkoara/bs | 1d4339f0acb5967a4b8229f95f3ada577531d5d6 | [
"MIT"
] | null | null | null | include/bs/config.hpp | nikkoara/bs | 1d4339f0acb5967a4b8229f95f3ada577531d5d6 | [
"MIT"
] | 1 | 2020-11-30T12:57:47.000Z | 2020-11-30T12:57:47.000Z | // -*- mode: c++ -*-
#ifndef BS_CONFIG_HPP
#define BS_CONFIG_HPP
#include <bs/_config.hpp>
#endif // BS_CONFIG_HPP
| 13.222222 | 25 | 0.672269 | gitter-badger |
3e9977c1a0e7d224e6d4a043c7f150dbab0fce2f | 899 | cpp | C++ | Chapter11/Exercise71/Exercise71.cpp | Archiit19/The-Cpp-Workshop | ae2f8d0c375d6bcdd7fa5ab9e34370ce83d1f501 | [
"MIT"
] | 4 | 2019-08-12T08:59:46.000Z | 2022-03-08T07:49:29.000Z | Chapter11/Exercise71/Exercise71.cpp | Archiit19/The-Cpp-Workshop | ae2f8d0c375d6bcdd7fa5ab9e34370ce83d1f501 | [
"MIT"
] | null | null | null | Chapter11/Exercise71/Exercise71.cpp | Archiit19/The-Cpp-Workshop | ae2f8d0c375d6bcdd7fa5ab9e34370ce83d1f501 | [
"MIT"
] | 5 | 2019-10-09T17:00:56.000Z | 2022-03-08T07:49:41.000Z | #include <iostream>
#include <string>
#include <typeinfo>
using namespace std;
template<typename T>
class Position
{
public:
Position(T x, T y)
{
m_x = x;
m_y = y;
}
T const getX() { return m_x; }
T const getY() { return m_y; }
private:
T m_x... | 27.242424 | 71 | 0.537264 | Archiit19 |
3e99deb7e1a1c4a1303da44032e58882da6a4509 | 4,993 | cpp | C++ | core/vcf/VCFWriter.cpp | srynobio/graphite | e37aa8803ea15f0473ab368b4bae3e3347451229 | [
"MIT"
] | null | null | null | core/vcf/VCFWriter.cpp | srynobio/graphite | e37aa8803ea15f0473ab368b4bae3e3347451229 | [
"MIT"
] | null | null | null | core/vcf/VCFWriter.cpp | srynobio/graphite | e37aa8803ea15f0473ab368b4bae3e3347451229 | [
"MIT"
] | null | null | null | #include "VCFWriter.h"
#include "core/util/Utility.h"
#include "core/util/Types.h"
#include <algorithm>
namespace graphite
{
VCFWriter::VCFWriter(const std::string& filename, std::vector< graphite::Sample::SharedPtr >& bamSamplePtrs, const std::string& outputDirectory) :
m_bam_sample_ptrs(bamSamplePtrs),
m_black... | 28.050562 | 147 | 0.679551 | srynobio |
3e9a2a011d4e5faf3b4e2d156f665c115ecfdc68 | 4,667 | hpp | C++ | pulsar/modulemanager/ModuleCreationFuncs.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/modulemanager/ModuleCreationFuncs.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/modulemanager/ModuleCreationFuncs.hpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | /*! \file
*
* \brief Storage of module creation functions (header)
* \author Benjamin Pritchard (ben@bennyp.org)
*/
#ifndef PULSAR_GUARD_MODULEMANAGER__MODULECREATIONFUNCS_HPP_
#define PULSAR_GUARD_MODULEMANAGER__MODULECREATIONFUNCS_HPP_
#include <functional>
#include <map>
#include "pulsar/types.h"
#include "p... | 31.748299 | 106 | 0.587315 | pulsar-chem |
3e9a80a4bb500e602a2a9703340d1738d101f9da | 23,735 | cpp | C++ | openr/ctrl-server/OpenrCtrlHandler.cpp | butjar/openr | b42d1d2ba30e2e14f6b4e8e592aa88cff16b87c5 | [
"MIT"
] | null | null | null | openr/ctrl-server/OpenrCtrlHandler.cpp | butjar/openr | b42d1d2ba30e2e14f6b4e8e592aa88cff16b87c5 | [
"MIT"
] | null | null | null | openr/ctrl-server/OpenrCtrlHandler.cpp | butjar/openr | b42d1d2ba30e2e14f6b4e8e592aa88cff16b87c5 | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <openr/ctrl-server/OpenrCtrlHandler.h>
#include <re2/re2.h>
#include <folly/ExceptionString.h>
#include <folly/io/async/SSLCo... | 31.944818 | 80 | 0.693111 | butjar |
3e9a9056c6c302e3d5550bcb9d48adf096a5f70d | 15,476 | cc | C++ | extensions/browser/api/webcam_private/v4l2_webcam.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 575 | 2015-06-18T23:58:20.000Z | 2022-03-23T09:32:39.000Z | extensions/browser/api/webcam_private/v4l2_webcam.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | extensions/browser/api/webcam_private/v4l2_webcam.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 52 | 2015-07-14T10:40:50.000Z | 2022-03-15T01:11:49.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/api/webcam_private/v4l2_webcam.h"
#include <errno.h>
#include <fcntl.h>
#include <linux/uvcvideo.h>
#include <linux/videodev... | 31.648262 | 80 | 0.633045 | sarang-apps |
3e9e1e89bc2f79dc9e36ef067a0455a579c58f36 | 11,969 | cpp | C++ | Common/src/RepositorySubscriber.cpp | sunjinbo/blackbox | 94bcd1db03df49416f22606c0c9ba8cea470ce2d | [
"MIT"
] | null | null | null | Common/src/RepositorySubscriber.cpp | sunjinbo/blackbox | 94bcd1db03df49416f22606c0c9ba8cea470ce2d | [
"MIT"
] | null | null | null | Common/src/RepositorySubscriber.cpp | sunjinbo/blackbox | 94bcd1db03df49416f22606c0c9ba8cea470ce2d | [
"MIT"
] | null | null | null | /* ====================================================================
* File: RepositorySubscriber.cpp
* Created: 07/06/10
* Modified: 07/06/10
* Author: Sun Jinbo
* Copyright (c): Tieto, All rights reserved
* ==================================================================== */
// INCLUDE FILES
#include <e3... | 35.728358 | 82 | 0.371543 | sunjinbo |
3e9e39a205baf4b5faf2fc2283874d3dc7e30256 | 3,598 | cpp | C++ | source/directsound/ResultCodeDS.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 85 | 2015-04-06T05:37:10.000Z | 2022-03-22T19:53:03.000Z | source/directsound/ResultCodeDS.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 10 | 2016-03-17T11:18:24.000Z | 2021-05-11T09:21:43.000Z | source/directsound/ResultCodeDS.cpp | HeavenWu/slimdx | e014bb34b89bbf694d01c8f6d6b6dfa3cba58aac | [
"MIT"
] | 45 | 2015-09-14T03:54:01.000Z | 2022-03-22T19:53:09.000Z | #include "stdafx.h"
/*
* Copyright (c) 2007-2012 SlimDX Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... | 22.209877 | 80 | 0.697332 | HeavenWu |
3e9f0ab08ef003fbfae7147b9f9338fa0c3c70b7 | 1,589 | cpp | C++ | Code/Framework/AzToolsFramework/Tests/Prefab/Benchmark/PrefabInstantiateBenchmarks.cpp | sandeel31/o3de | db88812d61eef77c6f4451b7f8c7605d6db07412 | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-12T14:13:45.000Z | 2022-03-12T14:13:45.000Z | Code/Framework/AzToolsFramework/Tests/Prefab/Benchmark/PrefabInstantiateBenchmarks.cpp | sandeel31/o3de | db88812d61eef77c6f4451b7f8c7605d6db07412 | [
"Apache-2.0",
"MIT"
] | 2 | 2022-01-13T04:29:38.000Z | 2022-03-12T01:05:31.000Z | Code/Framework/AzToolsFramework/Tests/Prefab/Benchmark/PrefabInstantiateBenchmarks.cpp | sandeel31/o3de | db88812d61eef77c6f4451b7f8c7605d6db07412 | [
"Apache-2.0",
"MIT"
] | null | null | null | /*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#if defined(HAVE_BENCHMARK)
#include <Prefab/Benchmark/PrefabBenchmarkFixture.h>
namespace Benchm... | 30.557692 | 116 | 0.670862 | sandeel31 |
3ea06032c6b839ed37c92bac252531157a01e331 | 227 | cpp | C++ | AtCoder/arc110/A.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | AtCoder/arc110/A.cpp | iamsuryakant/competitive-programming | 413000f5bc4a627407e1335c35dcdbee516e8cc1 | [
"MIT"
] | null | null | null | AtCoder/arc110/A.cpp | iamsuryakant/competitive-programming | 413000f5bc4a627407e1335c35dcdbee516e8cc1 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | #include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
int N;
cin >> N;
int ans = 1;
for (int i = 2; i <= N; i++) ans = lcm(ans, i);
cout << ans + 1;
return 0;
} | 17.461538 | 52 | 0.488987 | Code-With-Aagam |
3ea0aada20fa0af2c42f1d81a9414e33a2e15f04 | 4,115 | cpp | C++ | cpp/libs/opendnp3/src/opendnp3/link/SecLinkLayerStates.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | cpp/libs/opendnp3/src/opendnp3/link/SecLinkLayerStates.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | cpp/libs/opendnp3/src/opendnp3/link/SecLinkLayerStates.cpp | SensusDA/opendnp3 | c9aab97279fa7461155fd583d3955853b3ad99a0 | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Li... | 30.036496 | 112 | 0.659538 | SensusDA |
3ea1553e77a0cbfa087b5f7c4ed002df699132b6 | 1,002 | cpp | C++ | demo.cpp | lvbu12/C-_demos | e7998ffffddda879c85ae77714288f9c998a6956 | [
"MIT"
] | 1 | 2018-03-23T11:08:34.000Z | 2018-03-23T11:08:34.000Z | demo.cpp | lvbu12/C-_demos | e7998ffffddda879c85ae77714288f9c998a6956 | [
"MIT"
] | null | null | null | demo.cpp | lvbu12/C-_demos | e7998ffffddda879c85ae77714288f9c998a6956 | [
"MIT"
] | 1 | 2018-10-02T13:14:44.000Z | 2018-10-02T13:14:44.000Z | #include <iostream>
#include "plain_ptr.h"
#include "value_ptr.h"
#include "smart_ptr.h"
using namespace std;
void test_1()
{
int i = 42;
AHasPtr p1(&i, 20);
AHasPtr p2 = p1;
cout << p2.get_ptr_val() << endl;
p1.set_ptr_val(0);
cout << p2.get_ptr_val() << endl;
}
void test_2()
{
int obj = 0;
CHasPtr ptr1(ob... | 18.218182 | 62 | 0.572854 | lvbu12 |
3ea4725fbeb29634ed892d9c8a84ed3006805c63 | 2,675 | cpp | C++ | lib/api/src/rcDataObjWrite.cpp | tempoz/irods | a64c5e9cfb86af725f8f20ae940591adef8e02f0 | [
"BSD-3-Clause"
] | 1 | 2020-05-31T17:00:37.000Z | 2020-05-31T17:00:37.000Z | lib/api/src/rcDataObjWrite.cpp | tempoz/irods | a64c5e9cfb86af725f8f20ae940591adef8e02f0 | [
"BSD-3-Clause"
] | 7 | 2019-12-02T17:55:49.000Z | 2019-12-02T17:55:59.000Z | lib/api/src/rcDataObjWrite.cpp | tempoz/irods | a64c5e9cfb86af725f8f20ae940591adef8e02f0 | [
"BSD-3-Clause"
] | 2 | 2015-10-29T03:37:30.000Z | 2015-12-16T15:09:14.000Z | /**
* @file rcDataObjWrite.cpp
*
*/
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code. */
/* See dataObjWrite.h for a description of this API call.*/
#include "dataObjWrit... | 30.747126 | 81 | 0.674393 | tempoz |
3ea87a0fd7acdfda840408072d0b37830315e238 | 38 | cc | C++ | chapter-09/9.40.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | 1 | 2017-04-01T06:57:30.000Z | 2017-04-01T06:57:30.000Z | chapter-09/9.40.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | chapter-09/9.40.cc | hongmi/cpp-primer-4-exercises | 98ddb98b41d457a1caa525d246dfb7453be0c8d2 | [
"MIT"
] | null | null | null | q2.substr(0, 13) + q1.substr(18, 15);
| 19 | 37 | 0.605263 | hongmi |
3ea8d5ac175e58f4b8f1f86f5411844d35b0ea00 | 8,741 | cpp | C++ | third_party/skia_m76/third_party/externals/angle2/src/tests/compiler_tests/UnrollFlatten_test.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 6 | 2018-10-20T10:53:55.000Z | 2021-12-25T07:58:57.000Z | third_party/skia_m76/third_party/externals/angle2/src/tests/compiler_tests/UnrollFlatten_test.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | null | null | null | third_party/skia_m76/third_party/externals/angle2/src/tests/compiler_tests/UnrollFlatten_test.cpp | kniefliu/WindowsSamples | c841268ef4a0f1c6f89b8e95bf68058ea2548394 | [
"MIT"
] | 9 | 2018-10-31T03:07:11.000Z | 2021-08-06T08:53:21.000Z | //
// Copyright (c) 2015 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// UnrollFlatten_test.cpp:
// Test for the outputting of [[unroll]] and [[flatten]] for the D3D compiler.
// This test can only be enabl... | 38.004348 | 98 | 0.535293 | kniefliu |
3ea944ff0a8d3b41810e752dc9aff778847630b6 | 1,482 | cpp | C++ | wxdraw/object/Object.cpp | yasuikentarow/graed | 45db4f4291bdca27c32a3b2938ccd1aa7b40d48a | [
"MIT"
] | null | null | null | wxdraw/object/Object.cpp | yasuikentarow/graed | 45db4f4291bdca27c32a3b2938ccd1aa7b40d48a | [
"MIT"
] | null | null | null | wxdraw/object/Object.cpp | yasuikentarow/graed | 45db4f4291bdca27c32a3b2938ccd1aa7b40d48a | [
"MIT"
] | null | null | null | #include <uuid/uuid.h>
#include "wxdraw/object/Object.hpp"
#include "wxdraw/property/Property.hpp"
namespace wxdraw::object {
std::map<std::type_index, std::map<wxString, int>> Object::Serials;
/**
コンストラクタ
@param type 型名
*/
Object::Object(const wxString& type)
: type_(type)
{
}
/**
コピーコンストラクタ
@param src... | 19.5 | 69 | 0.649798 | yasuikentarow |
3eaadd4e70d02bdf4fa75abc46863373b6e19c16 | 8,778 | cpp | C++ | ofxHammingCodeExample/src/main.cpp | 2bbb/ofxHammingCode | 0434eec8db7c4f50206ad0c34f90e9b0c5c7c386 | [
"MIT"
] | 4 | 2015-04-01T08:57:35.000Z | 2021-12-28T15:22:35.000Z | ofxHammingCodeExample/src/main.cpp | 2bbb/ofxHammingCode | 0434eec8db7c4f50206ad0c34f90e9b0c5c7c386 | [
"MIT"
] | 1 | 2017-05-30T10:12:51.000Z | 2017-06-01T15:07:52.000Z | ofxHammingCodeExample/src/main.cpp | 2bbb/ofxHammingCode | 0434eec8db7c4f50206ad0c34f90e9b0c5c7c386 | [
"MIT"
] | 3 | 2020-11-26T00:46:14.000Z | 2021-12-28T15:22:37.000Z | #include "ofMain.h"
#include "ofxHammingCode.h"
class ofApp : public ofBaseApp {
public:
void setup() {
testH74();
std::cout << std::endl;
testH74SECDED();
std::cout << std::endl;
test3126(ofRandom(0, 1 << 25));
std::cout << std::endl;
testH3126SECDED(ofRando... | 35.395161 | 102 | 0.478241 | 2bbb |
3eab688c5ba8ab15b39541e2c0ad87cbefd6c3f3 | 758 | cpp | C++ | misc/SAP Labs Online Contest - 3rd Edition/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 3 | 2020-11-01T06:31:30.000Z | 2022-02-21T20:37:51.000Z | misc/SAP Labs Online Contest - 3rd Edition/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | null | null | null | misc/SAP Labs Online Contest - 3rd Edition/B.cpp | MaGnsio/CP-Problems | a7f518a20ba470f554b6d54a414b84043bf209c5 | [
"Unlicense"
] | 1 | 2021-05-05T18:56:31.000Z | 2021-05-05T18:56:31.000Z | /**
* author: MaGnsi0
* created: 11.12.2021 19:39:28
**/
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
string s;
cin >> s;
vector<int> ones;
for (int i = 0; i < (int)s.size(); ++i) {
if (s[i] == '0' || (i && s[i -... | 21.657143 | 58 | 0.390501 | MaGnsio |
3ead33bd843296b5b07d985531576b34aeafaa54 | 10,485 | cc | C++ | src/optimizer.cc | esc/Psignifit-3.x | 2a2a8a40f39d94f8fee99cb0ba4b9595ae216f88 | [
"MIT"
] | 6 | 2015-07-14T23:38:52.000Z | 2018-10-12T08:15:36.000Z | src/optimizer.cc | esc/Psignifit-3.x | 2a2a8a40f39d94f8fee99cb0ba4b9595ae216f88 | [
"MIT"
] | null | null | null | src/optimizer.cc | esc/Psignifit-3.x | 2a2a8a40f39d94f8fee99cb0ba4b9595ae216f88 | [
"MIT"
] | 5 | 2015-11-25T10:11:04.000Z | 2018-10-12T08:17:48.000Z | /*
* See COPYING file distributed along with the psignifit package for
* the copyright and license terms
*/
#include "optimizer.h"
#include "getstart.h"
#include <cmath>
#include <limits>
// #define DEBUG_OPTIMIZER
#ifdef DEBUG_OPTIMIZER
#include <iostream>
#include <fstream>
std::ofstream logfile ( "optimizer... | 30.04298 | 140 | 0.605627 | esc |