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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4fd8e4799fa7f9148315245a184f09d95547a37d | 7,095 | cpp | C++ | projects/robots/gctronic/e-puck/plugins/robot_windows/botstudio/e-puck/EPuckSlider.cpp | yjf18340/webots | 60d441c362031ab8fde120cc0cd97bdb1a31a3d5 | [
"Apache-2.0"
] | 1 | 2019-11-13T08:12:02.000Z | 2019-11-13T08:12:02.000Z | projects/robots/gctronic/e-puck/plugins/robot_windows/botstudio/e-puck/EPuckSlider.cpp | chinakwy/webots | 7c35a359848bafe81fe0229ac2ed587528f4c73e | [
"Apache-2.0"
] | null | null | null | projects/robots/gctronic/e-puck/plugins/robot_windows/botstudio/e-puck/EPuckSlider.cpp | chinakwy/webots | 7c35a359848bafe81fe0229ac2ed587528f4c73e | [
"Apache-2.0"
] | 1 | 2020-09-25T02:01:45.000Z | 2020-09-25T02:01:45.000Z | // Copyright 1996-2019 Cyberbotics 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 or agr... | 24.894737 | 119 | 0.658351 | yjf18340 |
4fdaf805a54f063e9f331fc49c7ddba8a468c415 | 3,113 | cpp | C++ | src/verification_platform/dut/centroiding_cpp_module.cpp | schulz89/Verification-Platform-for-Star-Trackers | 5216feb8036506503713c0c1f89728ecc40b3d5c | [
"Apache-2.0"
] | 3 | 2020-03-06T10:32:00.000Z | 2022-01-18T21:14:26.000Z | src/verification_platform/dut/centroiding_cpp_module.cpp | schulz89/Verification-Platform-for-Star-Trackers | 5216feb8036506503713c0c1f89728ecc40b3d5c | [
"Apache-2.0"
] | 1 | 2020-10-30T06:25:21.000Z | 2020-10-30T06:25:21.000Z | src/verification_platform/dut/centroiding_cpp_module.cpp | schulz89/Verification-Platform-for-Star-Trackers | 5216feb8036506503713c0c1f89728ecc40b3d5c | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Victor Hugo Schulz
// 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... | 32.768421 | 118 | 0.67459 | schulz89 |
4fdbf34a968150bbb1b6eef1d361852385579e53 | 2,430 | cpp | C++ | src/Functions/yesterday.cpp | akvasha/ClickHouse | 2e3e56f3538f4b0ac9cfb58275ce2c0ff85754f9 | [
"Apache-2.0"
] | null | null | null | src/Functions/yesterday.cpp | akvasha/ClickHouse | 2e3e56f3538f4b0ac9cfb58275ce2c0ff85754f9 | [
"Apache-2.0"
] | null | null | null | src/Functions/yesterday.cpp | akvasha/ClickHouse | 2e3e56f3538f4b0ac9cfb58275ce2c0ff85754f9 | [
"Apache-2.0"
] | null | null | null | #include <common/DateLUT.h>
#include <Core/Field.h>
#include <DataTypes/DataTypeDate.h>
#include <Functions/IFunctionOld.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
class ExecutableFunctionYesterday : public IExecutableFunction
{
public:
explicit ExecutableFunctionYesterday(time_t time_) : day_va... | 27.303371 | 127 | 0.738272 | akvasha |
4fdd75e0c2cbb61fbae35ec5e9af9e575a433f6f | 5,562 | cpp | C++ | HypergraphTracking/Setting.cpp | neohanju/HYPERGRAPH_TRACKING | 49689a7db560a9277adb0aa9fe19168a1a4154af | [
"MIT"
] | 12 | 2017-05-17T19:02:15.000Z | 2022-01-19T13:34:40.000Z | HypergraphTracking/Setting.cpp | neohanju/HYPERGRAPH_TRACKING | 49689a7db560a9277adb0aa9fe19168a1a4154af | [
"MIT"
] | null | null | null | HypergraphTracking/Setting.cpp | neohanju/HYPERGRAPH_TRACKING | 49689a7db560a9277adb0aa9fe19168a1a4154af | [
"MIT"
] | 11 | 2016-08-04T16:04:26.000Z | 2021-12-10T10:30:03.000Z | #include "Setting.h"
#include "hjlib.h"
#include <iostream>
#include <sstream>
#include <fstream>
typedef std::pair<std::string, std::string> PARAM_PAIR;
typedef std::vector<PARAM_PAIR> PARAM_SET;
const char STR_COMMENT_START = '%';
const char DELIM = '=';
const char DELIM_ARRAY = ',';
const int MAX_CH... | 29.585106 | 109 | 0.634484 | neohanju |
4fde84abf2e9378aa82a7eb49bf617d2ba7ee61c | 33 | cpp | C++ | r_utils/source/r_nullable.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | 3 | 2022-02-15T19:30:32.000Z | 2022-03-11T20:00:47.000Z | r_utils/source/r_nullable.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | 6 | 2022-02-15T19:35:29.000Z | 2022-02-16T00:36:46.000Z | r_utils/source/r_nullable.cpp | TroyDL/revere | 541bdc2bed9db212c1b74414b24733cf39675d08 | [
"BSD-3-Clause"
] | 2 | 2020-11-17T06:46:32.000Z | 2022-02-10T21:43:36.000Z |
#include "r_utils/r_nullable.h"
| 11 | 31 | 0.757576 | TroyDL |
4fdf8cb63ed294569d5f2c31b1b984b69f08f110 | 3,259 | hpp | C++ | Branch/Sensors/LaneDetectionMT/armadillo/include/armadillo_bits/diagview_bones.hpp | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | 12 | 2019-12-17T08:17:51.000Z | 2021-12-14T03:13:10.000Z | Branch/Sensors/LaneDetectionMT/armadillo/include/armadillo_bits/diagview_bones.hpp | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | null | null | null | Branch/Sensors/LaneDetectionMT/armadillo/include/armadillo_bits/diagview_bones.hpp | Tsinghua-OpenICV/OpenICV | 37bf88122414d0c766491460248f61fa1a9fd78c | [
"MIT"
] | 7 | 2019-12-17T08:17:54.000Z | 2022-02-21T15:53:57.000Z | // Copyright (C) 2008-2013 NICTA (www.nicta.com.au)
// Copyright (C) 2008-2013 Conrad Sanderson
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
//! \add... | 30.745283 | 116 | 0.658484 | Tsinghua-OpenICV |
4fdf973260367e84aa748cc6650c2c7484e2d404 | 1,015 | cxx | C++ | panda/src/egg/eggAnimData.cxx | kestred/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | 3 | 2018-03-09T12:07:29.000Z | 2021-02-25T06:50:25.000Z | panda/src/egg/eggAnimData.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | panda/src/egg/eggAnimData.cxx | Sinkay/panda3d | 16bfd3750f726a8831771b81649d18d087917fd5 | [
"PHP-3.01",
"PHP-3.0"
] | null | null | null | // Filename: eggAnimData.cxx
// Created by: drose (19Feb99)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You shoul... | 32.741935 | 70 | 0.492611 | kestred |
4fdfdcfd1911c8bb3721d43658bd9bd396a489a1 | 362 | cc | C++ | P14929.cc | daily-boj/kiwiyou | ceca96ddfee95708871af67d1682048e0bed0257 | [
"Unlicense"
] | 6 | 2020-04-08T09:04:57.000Z | 2021-11-16T07:30:24.000Z | P14929.cc | daily-boj/kiwiyou | ceca96ddfee95708871af67d1682048e0bed0257 | [
"Unlicense"
] | null | null | null | P14929.cc | daily-boj/kiwiyou | ceca96ddfee95708871af67d1682048e0bed0257 | [
"Unlicense"
] | 2 | 2020-04-16T05:32:06.000Z | 2020-05-28T13:40:56.000Z | #include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;
long long multiplier;
cin >> multiplier;
long long sum = 0;
while (--n) {
long long num;
cin >> num;
sum += multiplier * num;
m... | 19.052632 | 37 | 0.527624 | daily-boj |
4fe00a1a9ac699c730bea42ce51d608d97cedbcc | 6,500 | cpp | C++ | unlabeled_mapf/src/lib_ga.cpp | Kei18/tswap | 4f1fb59579c88de122d04a3760dbdda8aa82ba34 | [
"MIT"
] | 2 | 2022-02-13T23:31:31.000Z | 2022-02-14T05:34:38.000Z | unlabeled_mapf/src/lib_ga.cpp | Kei18/tswap | 4f1fb59579c88de122d04a3760dbdda8aa82ba34 | [
"MIT"
] | null | null | null | unlabeled_mapf/src/lib_ga.cpp | Kei18/tswap | 4f1fb59579c88de122d04a3760dbdda8aa82ba34 | [
"MIT"
] | 1 | 2022-03-18T00:07:47.000Z | 2022-03-18T00:07:47.000Z | #include "../include/lib_ga.hpp"
#include <climits>
#include <cstring>
#include <queue>
LibGA::FieldEdge::FieldEdge(int sindex, int gindex, Node* _s, Node* _g, int _d)
: start_index(sindex),
goal_index(gindex),
s(_s),
g(_g),
evaled(false),
inst_d(_d),
d(0)
{
}
LibGA::FieldEdge... | 23.98524 | 80 | 0.505077 | Kei18 |
4fe04a185fabfc7bfc0413598fb8c2dbac6effdc | 371 | cpp | C++ | cpp/cpp_primer/chapter12/ex_12_23a.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/cpp_primer/chapter12/ex_12_23a.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/cpp_primer/chapter12/ex_12_23a.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | //
// Created by kaiser on 18-12-19.
//
#include <cstring>
#include <iostream>
#include <memory>
int main() {
const char* s1{"hello"};
const char* s2{"world"};
auto size{std::strlen(s1) + std::strlen(s2) + 1};
auto s{std::make_unique<char[]>(size)};
std::strcpy(s.get(), s1);
std::strcpy(s.get() + std::s... | 17.666667 | 51 | 0.579515 | KaiserLancelot |
4fe0743ad63b9d964abeeb35bc648bac73372de5 | 11,929 | cpp | C++ | td/telegram/VideosManager.cpp | beastzx18/td | 789b9c0a554d779945db027fd2612909c676345f | [
"BSL-1.0"
] | 1 | 2021-12-30T03:11:13.000Z | 2021-12-30T03:11:13.000Z | td/telegram/VideosManager.cpp | beastzx18/td | 789b9c0a554d779945db027fd2612909c676345f | [
"BSL-1.0"
] | 1 | 2022-01-25T13:57:16.000Z | 2022-01-25T13:57:16.000Z | td/telegram/VideosManager.cpp | beastzx18/td | 789b9c0a554d779945db027fd2612909c676345f | [
"BSL-1.0"
] | null | null | null | //
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
//
// 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 "td/telegram/VideosManager.h"
#include "td/telegram... | 39.240132 | 120 | 0.671808 | beastzx18 |
4fe09b802e897fdfdbf1e6cc59bb7cedb05148b4 | 324 | cpp | C++ | maximum array.cpp | 0ishita-jana/-dev-info-day1 | e6053be728856b3a92d3137bdfd30e16700f7d06 | [
"MIT"
] | null | null | null | maximum array.cpp | 0ishita-jana/-dev-info-day1 | e6053be728856b3a92d3137bdfd30e16700f7d06 | [
"MIT"
] | null | null | null | maximum array.cpp | 0ishita-jana/-dev-info-day1 | e6053be728856b3a92d3137bdfd30e16700f7d06 | [
"MIT"
] | null | null | null | //maximum number in array using function
#include<stdio.h>
#include<conio.h>
int max(int a[],int);
int main()
{
int a[]={10,5,45,12,19};
int n=5,m;
m=max(a,n);
printf("\n maximum number is %d",m);
return 0;
getch();
}
max(int x[],int k)
{
int t,i;
t=x[0];
for(i=1;i<k;i++)
{
if(x[i]>t)
t=x[i];
}
return(t)... | 12 | 40 | 0.561728 | 0ishita-jana |
4fe14ce542efba945f2390b5c6b6c4195609930e | 297 | hh | C++ | RecoDataProducts/inc/StrawHitPosition.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | RecoDataProducts/inc/StrawHitPosition.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | RecoDataProducts/inc/StrawHitPosition.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #ifndef RecoDataProducts_StrawHitPosition_hh
#define RecoDataProducts_StrawHitPosition_hh
// deprecated class, use ComboHit instead
#include "RecoDataProducts/inc/ComboHit.hh"
namespace mu2e {
typedef ComboHit StrawHitPosition;
typedef ComboHitCollection StrawHitPositionCollection;
}
#endif
| 27 | 56 | 0.851852 | bonventre |
4fe25efb04b0139e45156e7f35b8f7e9ad37aded | 2,238 | hpp | C++ | include/NetMethod.hpp | PeriodicSeizures/Alchyme | 68b034ec4c2111c52e9b15540b3d8323482b164c | [
"MIT"
] | null | null | null | include/NetMethod.hpp | PeriodicSeizures/Alchyme | 68b034ec4c2111c52e9b15540b3d8323482b164c | [
"MIT"
] | 1 | 2021-09-21T01:37:43.000Z | 2021-09-21T01:37:43.000Z | include/NetMethod.hpp | PeriodicSeizures/Alchyme | 68b034ec4c2111c52e9b15540b3d8323482b164c | [
"MIT"
] | null | null | null | #pragma once
#include <tuple>
#include <functional>
#include "NetPacket.hpp"
/* https://godbolt.org/z/MMGsa8rhr
* to implement deduction guides
* (static functions, no class object needed)
*/
namespace Alchyme {
namespace Net {
class Peer;
// Thanks @Fux
template <class C, class Tuple, ... | 28.692308 | 109 | 0.474531 | PeriodicSeizures |
4fe2a9e6273b242ea4bb3fb4b764e6137d01f5aa | 15,441 | cc | C++ | proxy/ControlBase.cc | ibrezac/trafficserver | 640c4f738b7858f93069f987ea141e0cafae72da | [
"Apache-2.0"
] | null | null | null | proxy/ControlBase.cc | ibrezac/trafficserver | 640c4f738b7858f93069f987ea141e0cafae72da | [
"Apache-2.0"
] | null | null | null | proxy/ControlBase.cc | ibrezac/trafficserver | 640c4f738b7858f93069f987ea141e0cafae72da | [
"Apache-2.0"
] | null | null | null | /** @file
A brief file description
@section license License
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 und... | 25.777963 | 118 | 0.6111 | ibrezac |
4fe315cdb673da9b55946c57c21be1ba59907697 | 29,092 | cpp | C++ | src/arm7tdmidisasm.cpp | KellanClark/ecnavdA-yoBemaG | 56e295181255fb6c23863a5064df016d8641220a | [
"MIT"
] | 3 | 2022-02-17T05:58:51.000Z | 2022-03-29T19:41:39.000Z | src/arm7tdmidisasm.cpp | KellanClark/ecnavdA-yoBemaG | 56e295181255fb6c23863a5064df016d8641220a | [
"MIT"
] | null | null | null | src/arm7tdmidisasm.cpp | KellanClark/ecnavdA-yoBemaG | 56e295181255fb6c23863a5064df016d8641220a | [
"MIT"
] | null | null | null |
#include "arm7tdmidisasm.hpp"
static const u32 armDataProcessingMask = 0b1100'0000'0000;
static const u32 armDataProcessingBits = 0b0000'0000'0000;
static const u32 armMultiplyMask = 0b1111'1100'1111;
static const u32 armMultiplyBits = 0b0000'0000'1001;
static const u32 armMultiplyLongMask = 0b1111'1000'1111;
static ... | 37.538065 | 188 | 0.647498 | KellanClark |
4fe31d5cf1dc1f07d35028caae068d23ce061886 | 129 | hpp | C++ | deps/opencv/win/include/opencv2/xphoto/tonemap.hpp | YLiLarry/ggframe | ffb6a7d7d878c155d03830cf6fb6fb8f948084f0 | [
"MIT"
] | null | null | null | deps/opencv/win/include/opencv2/xphoto/tonemap.hpp | YLiLarry/ggframe | ffb6a7d7d878c155d03830cf6fb6fb8f948084f0 | [
"MIT"
] | null | null | null | deps/opencv/win/include/opencv2/xphoto/tonemap.hpp | YLiLarry/ggframe | ffb6a7d7d878c155d03830cf6fb6fb8f948084f0 | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:47ff9de6ff45a1c42bd6bdeb0c3013cc69dbf46ce5d5025bc3e920128f0ee5c2
size 2082
| 32.25 | 75 | 0.883721 | YLiLarry |
4fef86e35d345c50885e6ad6284ec9fc522ea862 | 2,441 | cpp | C++ | tests/test_tcpEchoServer.cpp | yangshaoguang/ZLToolKit | d3a1bd9d8a3162d0237954034d85f1313008cab2 | [
"MIT"
] | null | null | null | tests/test_tcpEchoServer.cpp | yangshaoguang/ZLToolKit | d3a1bd9d8a3162d0237954034d85f1313008cab2 | [
"MIT"
] | null | null | null | tests/test_tcpEchoServer.cpp | yangshaoguang/ZLToolKit | d3a1bd9d8a3162d0237954034d85f1313008cab2 | [
"MIT"
] | 1 | 2022-03-20T05:15:09.000Z | 2022-03-20T05:15:09.000Z | /*
* MIT License
*
* Copyright (c) 2016 xiongziliang <771730766@qq.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 rights
... | 29.768293 | 81 | 0.721016 | yangshaoguang |
4feff197ef20e1b384e9879c4734db628ade5b22 | 6,444 | cpp | C++ | src/city_test.cpp | mheyman/daw_json_link_vcpkg_tests | efb56c122bec2f1a80d6a1843752510a2a8ca956 | [
"BSL-1.0"
] | 275 | 2019-04-28T18:53:01.000Z | 2022-03-29T23:10:14.000Z | src/city_test.cpp | mheyman/daw_json_link_vcpkg_tests | efb56c122bec2f1a80d6a1843752510a2a8ca956 | [
"BSL-1.0"
] | 78 | 2019-11-15T16:20:11.000Z | 2022-02-23T01:24:49.000Z | src/city_test.cpp | mheyman/daw_json_link_vcpkg_tests | efb56c122bec2f1a80d6a1843752510a2a8ca956 | [
"BSL-1.0"
] | 15 | 2019-06-20T10:28:47.000Z | 2022-03-10T16:45:10.000Z | // Copyright (c) Darrell Wright
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// Official repository: https://github.com/beached/daw_json_link
//
// This file highlights some of the ways of working with JSON array d... | 31.90099 | 80 | 0.608007 | mheyman |
4ff092fe54a81e104de9827f890e7bce0d50a5f0 | 26,198 | cpp | C++ | gdal/ogr/ogrsf_frmts/pgdump/ogrpgdumpdatasource.cpp | ajolma/gdal | 19d847c8519919fcd1e7e7247644d28771034317 | [
"MIT"
] | null | null | null | gdal/ogr/ogrsf_frmts/pgdump/ogrpgdumpdatasource.cpp | ajolma/gdal | 19d847c8519919fcd1e7e7247644d28771034317 | [
"MIT"
] | null | null | null | gdal/ogr/ogrsf_frmts/pgdump/ogrpgdumpdatasource.cpp | ajolma/gdal | 19d847c8519919fcd1e7e7247644d28771034317 | [
"MIT"
] | null | null | null | /******************************************************************************
*
* Project: OpenGIS Simple Features Reference Implementation
* Purpose: Implements OGRPGDumpDataSource class.
* Author: Even Rouault, <even dot rouault at mines dash paris dot org>
*
**********************************************... | 36.185083 | 86 | 0.49645 | ajolma |
4ff0e9b9db22bf092470c05692dc42742bf18fa3 | 866 | cpp | C++ | Coda/src/utils/Tools/Locale/Language.cpp | Samsung/veles.nlp | 972fde27203cb04d301e34274b57435ed58372c4 | [
"Apache-2.0"
] | 8 | 2016-02-16T10:15:39.000Z | 2020-03-12T21:14:36.000Z | Coda/src/utils/Tools/Locale/Language.cpp | Samsung/veles.nlp | 972fde27203cb04d301e34274b57435ed58372c4 | [
"Apache-2.0"
] | null | null | null | Coda/src/utils/Tools/Locale/Language.cpp | Samsung/veles.nlp | 972fde27203cb04d301e34274b57435ed58372c4 | [
"Apache-2.0"
] | 6 | 2016-02-16T10:15:47.000Z | 2020-01-20T20:33:25.000Z | #include "Language.h"
#include "Exceptions.h"
namespace Tools
{
std::string LanguageToString(Language language)
{
switch (language)
{
case Language::RU:
return "RU";
break;
case Language::EN:
return "EN";
break;
case Language::EN_FAST:
return "EN_FAST";
... | 17.673469 | 53 | 0.560046 | Samsung |
4ff2c9dce69100ff561c990ee156b16fb83d0622 | 1,455 | cpp | C++ | myLive/liveMedia/GSMAudioRTPSink.cpp | billhhh/myLiveMedia | a23d6b895391df4b1f920d161e01df7b7df78029 | [
"MIT"
] | 21 | 2015-01-01T12:31:22.000Z | 2020-07-20T03:15:18.000Z | myLive/liveMedia/GSMAudioRTPSink.cpp | billhhh/myLiveMedia | a23d6b895391df4b1f920d161e01df7b7df78029 | [
"MIT"
] | null | null | null | myLive/liveMedia/GSMAudioRTPSink.cpp | billhhh/myLiveMedia | a23d6b895391df4b1f920d161e01df7b7df78029 | [
"MIT"
] | 19 | 2015-01-13T03:48:06.000Z | 2021-11-30T05:33:55.000Z | /**********
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 2.1 of the License, or (at your
option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)
This libr... | 35.487805 | 77 | 0.756701 | billhhh |
4ff347f2aa7e49d2322e4ed15c6d1dc2e623933c | 187 | cpp | C++ | no_of_objects_created.cpp | rvgarg/oops_programs | f9b5e8b884dab27f5b0737f7aa6848fef870f04d | [
"Apache-2.0"
] | null | null | null | no_of_objects_created.cpp | rvgarg/oops_programs | f9b5e8b884dab27f5b0737f7aa6848fef870f04d | [
"Apache-2.0"
] | null | null | null | no_of_objects_created.cpp | rvgarg/oops_programs | f9b5e8b884dab27f5b0737f7aa6848fef870f04d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
class foo
{
public:
static int count;
foo() { count++; }
};
int foo::count = 0;
int main()
{
foo a, b, c, d;
cout << foo::count;
} | 13.357143 | 23 | 0.566845 | rvgarg |
4ff38acf52805003eb33ef0bc037dcddb38d6cbd | 4,127 | cxx | C++ | Testing/Code/Common/itkDecoratorTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | 1 | 2018-04-15T13:32:43.000Z | 2018-04-15T13:32:43.000Z | Testing/Code/Common/itkDecoratorTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | Testing/Code/Common/itkDecoratorTest.cxx | kiranhs/ITKv4FEM-Kiran | 0e4ab3b61b5fc4c736f04a73dd19e41390f20152 | [
"BSD-3-Clause"
] | null | null | null | /*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: itkDecoratorTest.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.txt o... | 29.690647 | 92 | 0.621275 | kiranhs |
4ff46761caa2700eb490f321a7ceabcc1446c9cc | 5,503 | cpp | C++ | Source/CNormalShot.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | 41 | 2019-02-08T09:10:30.000Z | 2022-03-24T15:54:58.000Z | Source/CNormalShot.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | null | null | null | Source/CNormalShot.cpp | pbghogehoge/kog | 7d45ba8ddc1b01987ccca416dbd7901a23f4412f | [
"MIT"
] | 4 | 2019-02-08T09:26:59.000Z | 2020-05-07T15:44:34.000Z | /*
* CNormalShot.cpp : 自機の通常ショット
*
*/
#include "CNormalShot.h"
#include "Gian2001.h"
#include "RndCtrl.h"
/***** [プライベートな定数] *****/
#define NS_SPEED (12 * 256) // 通常ショットの移動速度
#define NS_MAXSIZE (16 * 256) // 通常ショットの最大サイズ
#define NS_HITSIZE ( 8 * 256) // 通常ショットの当たり判定サイズ
#define NS_MAX_TIME... | 22.279352 | 63 | 0.567327 | pbghogehoge |
4ff64943263dc89a09d4579f425eb5fd57cbd937 | 2,628 | cpp | C++ | iree/compiler/Conversion/LinalgToLLVM/Passes.cpp | EmperorYP7/iree | fffa1f3e33bc1031c790583166ce82c91dd8b3e7 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Conversion/LinalgToLLVM/Passes.cpp | EmperorYP7/iree | fffa1f3e33bc1031c790583166ce82c91dd8b3e7 | [
"Apache-2.0"
] | null | null | null | iree/compiler/Conversion/LinalgToLLVM/Passes.cpp | EmperorYP7/iree | fffa1f3e33bc1031c790583166ce82c91dd8b3e7 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 35.04 | 76 | 0.765982 | EmperorYP7 |
4ff6b899a9165502514de1d0ea18e25ce946903f | 4,773 | cc | C++ | RecoEcal/EgammaClusterAlgos/src/PreshowerPhiClusterAlgo.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoEcal/EgammaClusterAlgos/src/PreshowerPhiClusterAlgo.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoEcal/EgammaClusterAlgos/src/PreshowerPhiClusterAlgo.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include <vector>
#include <map>
#include <iostream>
#include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
#include "RecoEcal/EgammaClusterAlgos/interface/PreshowerPhiClusterAlgo.h"
#include "RecoCaloTools/Navigation/interface/EcalPreshowerNavigator.h"
#include "Geometry/CaloGeometry/interface/CaloSubdet... | 41.146552 | 309 | 0.627697 | ckamtsikis |
4ff76fb9174f86c896be42ba16d1f983877975e2 | 944 | cpp | C++ | ds-algo/search/src/search/InsertSearch.cpp | hebostary/Notes | 32e0537ba6f2cb257cd2a202ba2504a7cf70a7ed | [
"Unlicense"
] | null | null | null | ds-algo/search/src/search/InsertSearch.cpp | hebostary/Notes | 32e0537ba6f2cb257cd2a202ba2504a7cf70a7ed | [
"Unlicense"
] | null | null | null | ds-algo/search/src/search/InsertSearch.cpp | hebostary/Notes | 32e0537ba6f2cb257cd2a202ba2504a7cf70a7ed | [
"Unlicense"
] | null | null | null | #include "Search.hpp"
#include "../common/common.hpp"
int insertsearch(int *a, int n, int key)
{
cout<<"***********[Begin]Insert Search**********"<<endl;
int re = -1;
int low, mid, high;
low = 0;
high = n - 1;
int ite = 0;
while(low <= high) {
cout<<"Search counter: " << ite++ << en... | 24.842105 | 71 | 0.456568 | hebostary |
4ff98e6878ff74331b5ab0e32d3817059bfc6a88 | 446 | cpp | C++ | src/main/cpp/cn/edu/SUSTech/YeCanming/Algs/lab11_network_flow/problemA.cpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | src/main/cpp/cn/edu/SUSTech/YeCanming/Algs/lab11_network_flow/problemA.cpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | src/main/cpp/cn/edu/SUSTech/YeCanming/Algs/lab11_network_flow/problemA.cpp | 2catycm/P_Algorithm_Design_and_Analysis_cpp | d1678d4db6f59a11215a8c790c2852bf9ad852dd | [
"MulanPSL-1.0"
] | null | null | null | //
// Created by 叶璨铭 on 2022/5/20.
//
#include <iostream>
//#include "EdmondsKarpFlowNetwork.h"
#include "DinicFlowNetwork.h"
int main() {
size_t N, M, S, T;
std::cin >> N >> M >> S >> T;
FlowNetwork<uint64_t> flowNetwork{N, M, S, T};
for (int i = 0; i < M; ++i) {
int u, v, c;
std::cin>... | 22.3 | 55 | 0.547085 | 2catycm |
4ffa2bce1efd580677d71215b09713c5a1e860dc | 5,491 | hpp | C++ | base/coeff_array.hpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T03:15:56.000Z | 2019-11-08T03:15:56.000Z | base/coeff_array.hpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | null | null | null | base/coeff_array.hpp | simonpp/2dRidgeletBTE | 5d08cbb5c57fc276c7a528f128615d23c37ef6a0 | [
"BSD-3-Clause"
] | 1 | 2019-11-08T03:15:56.000Z | 2019-11-08T03:15:56.000Z | #pragma once
#include <Eigen/Dense>
#include <type_traits>
#include <vector>
#ifdef USE_MPI
#include <mpi.h>
#endif
#include "base/exceptions.hpp"
#include "my_map.hpp"
namespace _local {
template <typename T>
struct TransposeAdaptor
{
TransposeAdaptor(const T &t_)
: t(t_){/* empty */};
const T &operator... | 24.734234 | 95 | 0.675105 | simonpp |
4ffac3b42ce4ce07c41cfbfc51af1cfecd1d0cc5 | 5,156 | hpp | C++ | host_buffer.hpp | Metalhead33/SharedBuffers | c152004f9e1a337671bf8aefc7b89cb0e6403ce2 | [
"Apache-2.0"
] | null | null | null | host_buffer.hpp | Metalhead33/SharedBuffers | c152004f9e1a337671bf8aefc7b89cb0e6403ce2 | [
"Apache-2.0"
] | null | null | null | host_buffer.hpp | Metalhead33/SharedBuffers | c152004f9e1a337671bf8aefc7b89cb0e6403ce2 | [
"Apache-2.0"
] | null | null | null | #ifndef HOST_BUFFER_HPP
#define HOST_BUFFER_HPP
#include "abstract_buffer.hpp"
#include <vector>
#include <array>
#include <cstring>
#include <initializer_list>
#include <iterator>
template <typename T> class dynamic_host_buffer : public abstract_buffer<T> {
public:
typedef abstract_buffer<T> base_buffer;
typedef st... | 34.145695 | 126 | 0.730411 | Metalhead33 |
4ffb956b7d2774d75925ce73973e209c5d04f581 | 1,011 | hpp | C++ | api/includes/header/HeaderNormalizer.hpp | SaltTeam/ZiaAPI | fe8592cdfce0d05c09eeb82e42cd70a60e0427c3 | [
"Unlicense"
] | 1 | 2017-12-20T16:30:07.000Z | 2017-12-20T16:30:07.000Z | api/includes/header/HeaderNormalizer.hpp | SaltTeam/ZiaAPI | fe8592cdfce0d05c09eeb82e42cd70a60e0427c3 | [
"Unlicense"
] | 11 | 2017-12-11T13:04:39.000Z | 2018-02-13T09:11:15.000Z | api/includes/header/HeaderNormalizer.hpp | SaltTeam/ZiaAPI | fe8592cdfce0d05c09eeb82e42cd70a60e0427c3 | [
"Unlicense"
] | null | null | null | /**
* Zia Httpd Server API
*
* @authors SaltTeam
* @date 10/11/2017
* @package Zia
*/
#pragma once
#include <string>
#include "Header.hpp"
/**
* @namespace Zia
*/
namespace Zia
{
namespace HeaderNormalizer
{
/**
* Normalization Type for your header name. You should never have to use... | 21.0625 | 115 | 0.562809 | SaltTeam |
4ffb9e0b256dbcd110e861a58220f167dfca63fc | 6,224 | hpp | C++ | Game/Xerces/src/xercesc/dom/DOMAttr.hpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Xerces/src/xercesc/dom/DOMAttr.hpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Xerces/src/xercesc/dom/DOMAttr.hpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #ifndef DOMAttr_HEADER_GUARD_
#define DOMAttr_HEADER_GUARD_
/*
* Copyright 2001-2002,2004 The Apache Software Foundation.
*
* 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... | 34.38674 | 94 | 0.558162 | hackerlank |
4ffc0b4031e408357f95de33dcff38badaf422ac | 205 | cpp | C++ | acm/shuoj/contest/20160409/5.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 17 | 2016-01-01T12:57:25.000Z | 2022-02-06T09:55:12.000Z | acm/shuoj/contest/20160409/5.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | null | null | null | acm/shuoj/contest/20160409/5.cpp | xiaohuihuigh/cpp | c28bdb79ecb86f44a92971ac259910546dba29a7 | [
"MIT"
] | 8 | 2018-12-27T01:31:49.000Z | 2022-02-06T09:55:12.000Z | #include<bits/stdc++.h>
using namespace std;
int a[100];
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int ans = 0;
while(n){
if(n&1)ans++;
n>>=1;
}
cout<<(1<<ans)<<endl;
}
}
| 11.388889 | 23 | 0.502439 | xiaohuihuigh |
4ffd06a0b1c5ec74bc8386e7b63dd185959786cc | 2,664 | cc | C++ | ash/public/cpp/frame_utils.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/public/cpp/frame_utils.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/public/cpp/frame_utils.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "ash/public/cpp/frame_utils.h"
#include "ash/public/cpp/ash_constants.h"
#include "ash/public/cpp/window_properties.h"
#include "ui/aura/env.h"
... | 35.52 | 77 | 0.74512 | sarang-apps |
4ffda9d2d20ab8a27fd0285c13371c3be2883be6 | 5,780 | cpp | C++ | Source/SystemQOR/MSWindows/WinQL/System/Security/WinQLImpersonation.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/SystemQOR/MSWindows/WinQL/System/Security/WinQLImpersonation.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/SystemQOR/MSWindows/WinQL/System/Security/WinQLImpersonation.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //WinQLImpersonation.cpp
// Copyright Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to use, reproduce, display, distribute,
// execute, and transmit ... | 40.138889 | 139 | 0.646886 | mfaithfull |
4ffdb5289162c6134b8ff81f69b3b7373c40872f | 3,511 | cc | C++ | src/base/process/process_metrics_posix.cc | goochen/naiveproxy | 1d0682ee5bae6e648cd43c65f49b4eefd224f206 | [
"BSD-3-Clause"
] | 1 | 2020-06-02T02:28:34.000Z | 2020-06-02T02:28:34.000Z | src/base/process/process_metrics_posix.cc | goochen/naiveproxy | 1d0682ee5bae6e648cd43c65f49b4eefd224f206 | [
"BSD-3-Clause"
] | null | null | null | src/base/process/process_metrics_posix.cc | goochen/naiveproxy | 1d0682ee5bae6e648cd43c65f49b4eefd224f206 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/process/process_metrics.h"
#include <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/time.h>
#include <unistd.h>
#inc... | 25.442029 | 78 | 0.725719 | goochen |
4ffdc734ee158d8b79e06d50bef005f32765e76e | 6,828 | cpp | C++ | src/password.cpp | FDlucifer/bkcrack | 77af91b289599a9f7074633e14d3cbc43f2d41ff | [
"Zlib"
] | 1 | 2022-03-16T06:04:39.000Z | 2022-03-16T06:04:39.000Z | src/password.cpp | FDlucifer/bkcrack | 77af91b289599a9f7074633e14d3cbc43f2d41ff | [
"Zlib"
] | null | null | null | src/password.cpp | FDlucifer/bkcrack | 77af91b289599a9f7074633e14d3cbc43f2d41ff | [
"Zlib"
] | null | null | null | #include "password.hpp"
#include "Crc32Tab.hpp"
#include "MultTab.hpp"
Recovery::Recovery(const Keys& keys, const bytevec& charset, Progress& progress)
: charset(charset), progress(progress)
{
// initialize target X, Y and Z values
x[6] = keys.getX();
y[6] = keys.getY();
z[6] = keys.getZ();
// der... | 27.643725 | 129 | 0.517428 | FDlucifer |
4ffee2b3a369b100f68f89d7f96fb913762669c9 | 8,630 | cpp | C++ | src/fn_miscs.cpp | brindhavenkatesan92/libsass | 1b372e4e23fab20bd3db4fe05efa65adcba6a2cb | [
"MIT"
] | null | null | null | src/fn_miscs.cpp | brindhavenkatesan92/libsass | 1b372e4e23fab20bd3db4fe05efa65adcba6a2cb | [
"MIT"
] | null | null | null | src/fn_miscs.cpp | brindhavenkatesan92/libsass | 1b372e4e23fab20bd3db4fe05efa65adcba6a2cb | [
"MIT"
] | null | null | null | #include "ast.hpp"
#include "expand.hpp"
#include "fn_utils.hpp"
#include "fn_miscs.hpp"
namespace Sass {
namespace Functions {
// features
static std::set<std::string> features {
"global-variable-shadowing",
"extend-selector-pseudoclass",
"at-error",
"units-level-3",
"custom-... | 34.52 | 121 | 0.569525 | brindhavenkatesan92 |
4fff47e2fd682f57073d9dbfbebe846d18d64c02 | 9,548 | cpp | C++ | libraries/model/src/model/Stage.cpp | DaveDubUK/hifi | 1ceed98ca2f43f9accef2a174a16ab4228093144 | [
"Apache-2.0"
] | null | null | null | libraries/model/src/model/Stage.cpp | DaveDubUK/hifi | 1ceed98ca2f43f9accef2a174a16ab4228093144 | [
"Apache-2.0"
] | null | null | null | libraries/model/src/model/Stage.cpp | DaveDubUK/hifi | 1ceed98ca2f43f9accef2a174a16ab4228093144 | [
"Apache-2.0"
] | null | null | null | //
// Stage.cpp
// libraries/model/src/model
//
// Created by Sam Gateau on 2/24/2015.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "Stage.h"
#include ... | 31.202614 | 137 | 0.681295 | DaveDubUK |
8b006b13212ae5f01646607126ba7397e691e26a | 6,997 | cpp | C++ | lectures/23-GraphsII/code/Kruskal/src/kruskal.cpp | tofergregg/cs106X-website-spring-2017 | 1c1f4bab672248a77bdb881e818dee49b48c0070 | [
"MIT"
] | 2 | 2018-02-21T07:10:58.000Z | 2019-07-26T03:54:43.000Z | lectures/23-GraphsII/code/Kruskal/src/kruskal.cpp | tofergregg/cs106X-website-spring-2017 | 1c1f4bab672248a77bdb881e818dee49b48c0070 | [
"MIT"
] | null | null | null | lectures/23-GraphsII/code/Kruskal/src/kruskal.cpp | tofergregg/cs106X-website-spring-2017 | 1c1f4bab672248a77bdb881e818dee49b48c0070 | [
"MIT"
] | 6 | 2017-01-04T03:17:03.000Z | 2020-11-16T06:28:30.000Z | #include <iostream>
#include "console.h"
#include "basicgraph.h"
#include "simpio.h"
#include "set.h"
#include "priorityqueue.h"
#include "gwindow.h"
#include "gobjects.h"
#include "random.h"
#include "map.h"
#include <cmath>
using namespace std;
const bool GRID_GRAPH = true;
void kruskal(BasicGraph &graph, BasicGra... | 31.949772 | 102 | 0.566671 | tofergregg |
8b0183892fd7736ee1e8e337e08ff31d6b5d799c | 421 | cpp | C++ | leet_code/arrays/specialArr.cpp | sahilduhan/codeforces | a8042d52c12806e026fd7027e35e97ed8b4eeed6 | [
"MIT"
] | null | null | null | leet_code/arrays/specialArr.cpp | sahilduhan/codeforces | a8042d52c12806e026fd7027e35e97ed8b4eeed6 | [
"MIT"
] | null | null | null | leet_code/arrays/specialArr.cpp | sahilduhan/codeforces | a8042d52c12806e026fd7027e35e97ed8b4eeed6 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
int specialArray(vector<int>& nums) {
int n = nums.size();
while (n > 0){
int count = 0;
for (int i = 0; i < nums.size(); i++){
if (nums[i] >= n) count++;
}
if (coun... | 20.047619 | 50 | 0.418052 | sahilduhan |
8b025e8f2089450547be4357391b502e3c43fbde | 543 | cpp | C++ | cli/util/to_http.cpp | Bytecube-Packages/Bytecube | ae4b09d593a8f2487798283d7d1f25c76c1da4a3 | [
"Apache-2.0"
] | 5 | 2021-08-04T21:05:41.000Z | 2021-09-18T12:55:40.000Z | cli/util/to_http.cpp | Bytecube-Packages/Bytecube | ae4b09d593a8f2487798283d7d1f25c76c1da4a3 | [
"Apache-2.0"
] | 1 | 2021-08-12T17:44:35.000Z | 2021-08-12T17:44:35.000Z | cli/util/to_http.cpp | Bytecube-Packages/Bytecube | ae4b09d593a8f2487798283d7d1f25c76c1da4a3 | [
"Apache-2.0"
] | null | null | null | #include <sstream>
#include <string>
#include <map>
#include "url_encode.cpp"
using namespace std;
namespace Util{
string to_http(map<string, string> object, bool encode = true) {
stringstream ss;
for (map<string, string>::iterator it = object.begin(); it != object.end(); ++it) {
string seperator = i... | 21.72 | 87 | 0.593002 | Bytecube-Packages |
8b063f989bc6486c5caec353714fb03a74039411 | 730 | cpp | C++ | src/db/db_drc.cpp | liulixinkerry/ripple | 330522a61bcf1cf290c100ce4686ed62dcdc5cab | [
"Unlicense"
] | 7 | 2021-01-25T04:28:38.000Z | 2021-11-20T04:14:14.000Z | src/db/db_drc.cpp | Xingquan-Li/ripple | 330522a61bcf1cf290c100ce4686ed62dcdc5cab | [
"Unlicense"
] | 3 | 2021-02-25T08:13:41.000Z | 2022-02-25T16:37:16.000Z | src/db/db_drc.cpp | Xingquan-Li/ripple | 330522a61bcf1cf290c100ce4686ed62dcdc5cab | [
"Unlicense"
] | 8 | 2021-02-27T13:52:25.000Z | 2021-11-15T08:01:02.000Z | #include "db.h"
using namespace db;
#include "../ut/utils.h"
/***** EdgeTypes *****/
int EdgeTypes::getEdgeType(const string& name) const
{
unsigned numTypes = types.size();
for (unsigned i = 0; i != numTypes; ++i) {
if (types[i] == name) {
return i;
}
}
return -1;
}
int ... | 20.857143 | 67 | 0.556164 | liulixinkerry |
8b072ba900eb2e86b13bcd019acffe41f316d053 | 2,097 | cpp | C++ | src/sleek/node/billboard/sprite.cpp | Phirxian/sleek-engine | 741d55c8daad67ddf631e8b8fbdced59402d7bda | [
"BSD-2-Clause"
] | null | null | null | src/sleek/node/billboard/sprite.cpp | Phirxian/sleek-engine | 741d55c8daad67ddf631e8b8fbdced59402d7bda | [
"BSD-2-Clause"
] | null | null | null | src/sleek/node/billboard/sprite.cpp | Phirxian/sleek-engine | 741d55c8daad67ddf631e8b8fbdced59402d7bda | [
"BSD-2-Clause"
] | null | null | null | #include "../scene.h"
#include "sprite.h"
namespace sleek
{
namespace scene3d
{
namespace billboard
{
Sprite::Sprite(Scene *smgr) noexcept : Billboard(smgr)
{
mat->Texture.push_back(nullptr);
timespec = 100;
current = 0;
... | 26.884615 | 158 | 0.406295 | Phirxian |
8b07cd1eb7ecf75585e8dc7650332eee0fc25e42 | 1,464 | cpp | C++ | examples/misc/context.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | examples/misc/context.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | examples/misc/context.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2005-2007 Andre Merzky <andre@merzky.net>
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE file or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <saga/saga.hpp>
#define COUNT 100
void dump_context (saga::context c)
{
std::vector <st... | 19.783784 | 79 | 0.485656 | saga-project |
8b0882927021b3b5fdb2622890982326052fe6e6 | 1,183 | cpp | C++ | sdk/boost_1_30_0/libs/config/test/no_exp_func_tem_arg_fail.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | 2 | 2020-01-30T12:51:49.000Z | 2020-08-31T08:36:49.000Z | sdk/boost_1_30_0/libs/config/test/no_exp_func_tem_arg_fail.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null | sdk/boost_1_30_0/libs/config/test/no_exp_func_tem_arg_fail.cpp | acidicMercury8/xray-1.0 | 65e85c0e31e82d612c793d980dc4b73fa186c76c | [
"Linux-OpenIB"
] | null | null | null |
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
// distribute this software is granted provided this copyright notice appears
// in all copies. This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
// Tes... | 32.861111 | 80 | 0.755706 | acidicMercury8 |
8b08f90a47e0734eb951fda3ddea6028fddfaeff | 1,422 | cpp | C++ | baekjoon/11377/source.cpp | qilip/ACMStudy | c4d6f31b01358ead4959c92f1fac59a3826f3f77 | [
"CC-BY-3.0"
] | 4 | 2020-02-02T08:34:46.000Z | 2021-10-01T11:21:17.000Z | baekjoon/11377/source.cpp | qilip/ACMStudy | c4d6f31b01358ead4959c92f1fac59a3826f3f77 | [
"CC-BY-3.0"
] | 1 | 2021-09-04T14:03:50.000Z | 2021-09-04T14:03:50.000Z | baekjoon/11377/source.cpp | qilip/ACMStudy | c4d6f31b01358ead4959c92f1fac59a3826f3f77 | [
"CC-BY-3.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
signed main(void){
ios_base::sync_with_stdio(false); cin.tie(NULL); cout<<setprecision(8)<<fixed;
int n, m, k;
scanf("%d %d %d", &n, &m, &k);
vector<int> v[2010];
int cap[2010][2010] = {0};
int flo[2010][2010] = {0};
int st = 1, br = 2, ed = n+m+3;
v[st].p... | 19.75 | 82 | 0.517581 | qilip |
8b08fd30de6621fa4a7d48a27d38f5d26ac1f1ab | 10,610 | cpp | C++ | src/fasc/fascDGP.cpp | rlinxy/fcore | 652288940bd27ecbad69c0366bba20ad0f7515b6 | [
"MIT"
] | 1 | 2021-04-29T16:38:46.000Z | 2021-04-29T16:38:46.000Z | src/fasc/fascDGP.cpp | rlinxy/fcore | 652288940bd27ecbad69c0366bba20ad0f7515b6 | [
"MIT"
] | null | null | null | src/fasc/fascDGP.cpp | rlinxy/fcore | 652288940bd27ecbad69c0366bba20ad0f7515b6 | [
"MIT"
] | 1 | 2019-10-22T08:16:36.000Z | 2019-10-22T08:16:36.000Z | #include <fasc/fascDGP.h>
void FascDGP::initDataEIP158() {
std::vector<uint32_t> tempData = {dev::eth::EIP158Schedule.tierStepGas[0], dev::eth::EIP158Schedule.tierStepGas[1], dev::eth::EIP158Schedule.tierStepGas[2],
dev::eth::EIP158Schedule.tierStepGas[3], dev::eth::EIP158Sche... | 42.610442 | 160 | 0.645806 | rlinxy |
8b090f034ca9b8a5c7016ca22a9c7fd952d28d76 | 4,203 | cc | C++ | test/unittests/base/template-utils-unittest.cc | KDr2/v8 | 6048f754931e0971cab58fb0de785482d175175b | [
"BSD-3-Clause"
] | null | null | null | test/unittests/base/template-utils-unittest.cc | KDr2/v8 | 6048f754931e0971cab58fb0de785482d175175b | [
"BSD-3-Clause"
] | null | null | null | test/unittests/base/template-utils-unittest.cc | KDr2/v8 | 6048f754931e0971cab58fb0de785482d175175b | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 the V8 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.
#include "src/base/template-utils.h"
#include "test/unittests/test-utils.h"
namespace v8 {
namespace base {
namespace template_utils_unittest {
/////... | 37.19469 | 79 | 0.659291 | KDr2 |
8b09bbac7453dc478a96ed96d6bd9e8adfe8b1d4 | 2,649 | cpp | C++ | samples/vision/sample_vision_featureMatching.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 114 | 2017-08-13T22:37:32.000Z | 2022-03-25T12:28:39.000Z | samples/vision/sample_vision_featureMatching.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 7 | 2019-10-14T18:19:11.000Z | 2021-06-11T09:41:52.000Z | samples/vision/sample_vision_featureMatching.cpp | no33fewi/saiga | edc873e34cd59eaf8c4a12dc7f909b4dd5e5fb68 | [
"MIT"
] | 18 | 2017-08-14T01:22:05.000Z | 2022-03-12T12:35:07.000Z | /**
* Copyright (c) 2021 Darius Rückert
* Licensed under the MIT License.
* See LICENSE file for more information.
*/
#include "saiga/core/framework/framework.h"
#include "saiga/core/image/image.h"
#include "saiga/core/math/Eigen_Compile_Checker.h"
#include "saiga/core/math/random.h"
#include "saiga/core/time/all.... | 27.309278 | 106 | 0.593431 | no33fewi |
8b09caea1fc582d9ef0c66af01b76041e91f4937 | 1,646 | cpp | C++ | designer/NumericTablePlugin.cpp | ZgblKylin/NumericTable | 778dacc7aa56d246086b8b32c8f79eddb3cb5ac4 | [
"MIT"
] | 3 | 2020-02-14T06:46:08.000Z | 2020-08-08T16:13:17.000Z | designer/NumericTablePlugin.cpp | ZgblKylin/NumericTable | 778dacc7aa56d246086b8b32c8f79eddb3cb5ac4 | [
"MIT"
] | null | null | null | designer/NumericTablePlugin.cpp | ZgblKylin/NumericTable | 778dacc7aa56d246086b8b32c8f79eddb3cb5ac4 | [
"MIT"
] | null | null | null | #include "NumericTablePlugin.h"
#include <NumericTable>
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(NumericTablePlugin, NumericTablePlugin)
#endif // QT_VERSION < 0x050000
NumericTablePlugin::NumericTablePlugin(QObject* parent)
: QObject(parent)
{
widgets.append(new NumericTablePluginInterface(this));
}
QList... | 20.835443 | 86 | 0.763062 | ZgblKylin |
8b0c212cb883e4546f00622149ebe2f2796dd603 | 2,880 | cpp | C++ | src/013_roman_to_integer.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 1 | 2019-09-01T22:54:39.000Z | 2019-09-01T22:54:39.000Z | src/013_roman_to_integer.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | 6 | 2019-07-19T07:16:42.000Z | 2019-07-26T08:21:31.000Z | src/013_roman_to_integer.cpp | llife09/leetcode | f5bd6bc7819628b9921441d8362f62123ab881b7 | [
"MIT"
] | null | null | null | /*
Roman to Integer
URL: https://leetcode.com/problems/roman-to-integer
Tags: ['math', 'string']
___
Roman numerals are represented by seven different symbols: `I`, `V`, `X`, `L`,
`C`, `D` and `M`.
Symbol Value
I 1
V 5
X 10
L 50
C ... | 25.486726 | 78 | 0.532986 | llife09 |
8b0c60ec0a49eef971777209e55f663f3614e9bc | 4,171 | cpp | C++ | export/release/windows/obj/src/__ASSET__OPENFL__flixel_fonts_monsterrat_ttf.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/__ASSET__OPENFL__flixel_fonts_monsterrat_ttf.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | export/release/windows/obj/src/__ASSET__OPENFL__flixel_fonts_monsterrat_ttf.cpp | bobisdabbing/Vs-The-United-Lands-stable | 0807e58b6d8ad1440bdd350bf006b37a1b7ca9b5 | [
"MIT"
] | null | null | null | // Generated by Haxe 4.1.5
#include <hxcpp.h>
#ifndef INCLUDED___ASSET__OPENFL__flixel_fonts_monsterrat_ttf
#include <__ASSET__OPENFL__flixel_fonts_monsterrat_ttf.h>
#endif
#ifndef INCLUDED___ASSET__flixel_fonts_monsterrat_ttf
#include <__ASSET__flixel_fonts_monsterrat_ttf.h>
#endif
#ifndef INCLUDED_lime_text_Font
#in... | 43.447917 | 251 | 0.825462 | bobisdabbing |
8b0f6881220f726f766f387efa14f64fb5bf135b | 1,542 | cpp | C++ | test/auto_schedule/vectorize_var_in_update.cpp | OAID/Halide | 769b8554ec36b70ea53c73605ad021cf431476fc | [
"Apache-2.0"
] | 4,303 | 2015-01-02T12:04:37.000Z | 2022-03-31T11:35:06.000Z | test/auto_schedule/vectorize_var_in_update.cpp | OAID/Halide | 769b8554ec36b70ea53c73605ad021cf431476fc | [
"Apache-2.0"
] | 4,323 | 2015-01-01T13:31:25.000Z | 2022-03-31T22:43:57.000Z | test/auto_schedule/vectorize_var_in_update.cpp | OAID/Halide | 769b8554ec36b70ea53c73605ad021cf431476fc | [
"Apache-2.0"
] | 1,032 | 2015-01-12T12:50:16.000Z | 2022-03-28T01:55:11.000Z | #include "Halide.h"
#include <stdio.h>
using namespace Halide;
int main(int argc, char **argv) {
if (get_jit_target_from_environment().arch == Target::WebAssembly) {
printf("[SKIP] Autoschedulers do not support WebAssembly.\n");
return 0;
}
if (argc != 2) {
fprintf(stderr, "Usage:... | 24.09375 | 77 | 0.551232 | OAID |
8b0f74618583a245d039e6a97987417d0d13343e | 37,587 | cpp | C++ | OpenSees/SRC/material/nD/reinforcedConcretePlaneStress/SteelZ01.cpp | kuanshi/ductile-fracture | ccb350564df54f5c5ec3a079100effe261b46650 | [
"MIT"
] | null | null | null | OpenSees/SRC/material/nD/reinforcedConcretePlaneStress/SteelZ01.cpp | kuanshi/ductile-fracture | ccb350564df54f5c5ec3a079100effe261b46650 | [
"MIT"
] | null | null | null | OpenSees/SRC/material/nD/reinforcedConcretePlaneStress/SteelZ01.cpp | kuanshi/ductile-fracture | ccb350564df54f5c5ec3a079100effe261b46650 | [
"MIT"
] | 1 | 2020-08-06T21:12:16.000Z | 2020-08-06T21:12:16.000Z | // SteelZ01.cpp
// Written: JZhong
// Created: 2003.7 Revised 2005.4
//
// Description: This file contains the class implementation for
// SteelZ01
// For Detailed explanation of the model, please refer to the book
// entitled "Unified Theory of Concrete Structures,"
// by Thomas T.C. Hsu and Y.L. Mo, John Wiley & Son... | 28.56155 | 137 | 0.672067 | kuanshi |
8b14cf768275f12f15b35d36cd0b505e58e0a849 | 6,697 | cpp | C++ | Source/Core/RenderAPI/VulkanAPI/VulkanCommandListPool.cpp | Cube219/CubeEngine_old2 | d251d540a4fdbc993ec5c9183eb30ac4dc81d5be | [
"MIT"
] | null | null | null | Source/Core/RenderAPI/VulkanAPI/VulkanCommandListPool.cpp | Cube219/CubeEngine_old2 | d251d540a4fdbc993ec5c9183eb30ac4dc81d5be | [
"MIT"
] | null | null | null | Source/Core/RenderAPI/VulkanAPI/VulkanCommandListPool.cpp | Cube219/CubeEngine_old2 | d251d540a4fdbc993ec5c9183eb30ac4dc81d5be | [
"MIT"
] | null | null | null | #include "VulkanCommandListPool.h"
#include "VulkanDebug.h"
#include "VulkanUtility.h"
#include "VulkanLogicalDevice.h"
#include "VulkanQueueManager.h"
#include "EngineCore/Assertion.h"
namespace cube
{
namespace render
{
VulkanCommandListPool::VulkanCommandListPool(SPtr<VulkanLogicalDevice>& device, VulkanQueue... | 34.520619 | 117 | 0.734359 | Cube219 |
8b17a42950718b3651ee07bff1ec09762ebe3c5f | 3,996 | cc | C++ | src/storage/minfs/inspector_superblock.cc | liexusong/fuchsia | 81897680af92a1848a063e3c20ff3a4892ccff07 | [
"BSD-2-Clause"
] | 3 | 2021-09-02T07:21:06.000Z | 2022-03-12T03:20:10.000Z | src/storage/minfs/inspector_superblock.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 56 | 2021-06-03T03:16:25.000Z | 2022-03-20T01:07:44.000Z | src/storage/minfs/inspector_superblock.cc | DamieFC/fuchsia | f78a4a1326f4a4bb5834500918756173c01bab4f | [
"BSD-2-Clause"
] | 2 | 2022-02-25T12:22:49.000Z | 2022-03-12T03:20:10.000Z | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/storage/minfs/inspector_superblock.h"
#include <disk_inspector/common_types.h>
#include "src/storage/minfs/inspector_private.h"
namespace ... | 30.272727 | 98 | 0.647898 | liexusong |
8b19d5200d578b89a2a96e12d448b00cd11ec26e | 2,508 | hpp | C++ | Sisyphe/cppbase/src/debugErrorInfoPredicate.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/debugErrorInfoPredicate.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/debugErrorInfoPredicate.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | /*
* debugErrorInfoPredicate.hpp
*
*
* @date 14-07-2020
* @author Teddy DIDE
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _DEBUGERRORINFO_PREDICATE_HPP_
#define _DEBUGERRORINFO_PREDICATE_HPP_
NAMESPACE_BEGIN(entity)
/// Represents a comparaison class for DebugErrorInfo object.
/// This clas... | 26.680851 | 133 | 0.744019 | tedi21 |
8b1c795ac95d5865d280efe773521ff86f1bc2e7 | 3,065 | hpp | C++ | src/NumericalAlgorithms/Interpolation/SendPointsToInterpolator.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/NumericalAlgorithms/Interpolation/SendPointsToInterpolator.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/NumericalAlgorithms/Interpolation/SendPointsToInterpolator.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <algorithm>
#include "DataStructures/DataBox/DataBox.hpp"
#include "DataStructures/DataBox/DataBoxTag.hpp"
#include "DataStructures/Variables.hpp"
#include "Domain/BlockLogicalCoordinates.hpp"
#include "Domain/Tags.hpp"
#incl... | 37.378049 | 80 | 0.717781 | marissawalker |
8b1cc42169c51859260c36e11fd8b82ffadf7f02 | 6,420 | cpp | C++ | Synergy/src/Synergy/Renderer/Renderer2D.cpp | nmrsmn/synergy | 7f77c70c131debe66d2e91e00827fd30e736cf81 | [
"MIT"
] | null | null | null | Synergy/src/Synergy/Renderer/Renderer2D.cpp | nmrsmn/synergy | 7f77c70c131debe66d2e91e00827fd30e736cf81 | [
"MIT"
] | 25 | 2020-04-05T11:05:08.000Z | 2020-06-07T12:48:58.000Z | Synergy/src/Synergy/Renderer/Renderer2D.cpp | nmrsmn/synergy | 7f77c70c131debe66d2e91e00827fd30e736cf81 | [
"MIT"
] | null | null | null | // Created by Niels Marsman on 21-04-2020.
// Copyright © 2020 Niels Marsman. All rights reserved.
#include <glad/glad.h>
#include <glm/gtc/matrix_transform.hpp>
#include "Synergy/Renderer/Renderer2D.h"
#include "Synergy/Renderer/Shader.h"
#include "Synergy/Renderer/Shaders.h"
#include "Synergy/Renderer/Texture.h"
... | 30.283019 | 122 | 0.556386 | nmrsmn |
8b2214da4901c7108c5d038b847517e443f93943 | 9,712 | hh | C++ | source/base/KBRun.hh | sh-lim/kebi-1 | c5cfcf4c26db0dff0067fa3911e1dbcc193c77e9 | [
"MIT"
] | null | null | null | source/base/KBRun.hh | sh-lim/kebi-1 | c5cfcf4c26db0dff0067fa3911e1dbcc193c77e9 | [
"MIT"
] | null | null | null | source/base/KBRun.hh | sh-lim/kebi-1 | c5cfcf4c26db0dff0067fa3911e1dbcc193c77e9 | [
"MIT"
] | 1 | 2020-08-11T01:39:16.000Z | 2020-08-11T01:39:16.000Z | #ifndef KBRUN_HH
#define KBRUN_HH
#include "KBCompiled.h"
#include "KBTask.hh"
#include "KBParameterContainer.hh"
#include "KBDetectorSystem.hh"
#include "KBDetector.hh"
#include "KBTpc.hh"
#include "KBPadPlane.hh"
#include "KBMCTrack.hh"
#include "TDatabasePDG.h"
#include "TError.h"
#include "TH1D.h"
#include "TGrap... | 30.734177 | 115 | 0.699238 | sh-lim |
8b2293027ace6f9db98b5f850fb1e8ff914951cc | 1,226 | cpp | C++ | src/main.cpp | saikek/esp-canary | f62bf9dc66b0557e203b7a846d8c1b1603d906a5 | [
"MIT"
] | null | null | null | src/main.cpp | saikek/esp-canary | f62bf9dc66b0557e203b7a846d8c1b1603d906a5 | [
"MIT"
] | null | null | null | src/main.cpp | saikek/esp-canary | f62bf9dc66b0557e203b7a846d8c1b1603d906a5 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#ifdef ESP32
#include <WiFi.h>
#include <FS.h>
#include <LITTLEFS.h>
#define LittleFS LITTLEFS
#endif
#ifdef ESP8266
#include <ESP8266WiFi.h>
#include <LittleFS.h>
#endif
#include "user_config.h"
#include "system/util.h"
#include "simulation/tomcat.h"
#include "reporting/reporting.h"... | 16.131579 | 65 | 0.663132 | saikek |
8b23302a05c9d1e265427fa18e66a77fc4c36d28 | 16,115 | cpp | C++ | src/Parsers/ASTAlterQuery.cpp | amosnothing/ClickHouse | cf49a839806290c41a3a1ccd5808687d7ccaca78 | [
"Apache-2.0"
] | 8 | 2019-06-04T02:50:13.000Z | 2022-02-10T06:46:51.000Z | src/Parsers/ASTAlterQuery.cpp | amosnothing/ClickHouse | cf49a839806290c41a3a1ccd5808687d7ccaca78 | [
"Apache-2.0"
] | 16 | 2021-06-07T21:32:30.000Z | 2022-03-31T21:08:29.000Z | src/Parsers/ASTAlterQuery.cpp | amosnothing/ClickHouse | cf49a839806290c41a3a1ccd5808687d7ccaca78 | [
"Apache-2.0"
] | 2 | 2021-01-04T06:43:51.000Z | 2021-05-14T03:17:13.000Z | #include <Parsers/ASTAlterQuery.h>
#include <iomanip>
#include <Common/quoteString.h>
namespace DB
{
namespace ErrorCodes
{
extern const int UNEXPECTED_AST_STRUCTURE;
}
ASTPtr ASTAlterCommand::clone() const
{
auto res = std::make_shared<ASTAlterCommand>(*this);
res->children.clear();
if (col_decl)
... | 41.640827 | 183 | 0.575489 | amosnothing |
8b24a3648905c1fba1fb37c0ad38375505760254 | 101,819 | cpp | C++ | _studio/shared/umc/codec/h264_dec/src/umc_h264_dec_bitstream_headers.cpp | wangyan42164/MediaSDK | bc98489e124b52c435a99eb85eef497d871be989 | [
"MIT"
] | 4 | 2021-03-03T10:18:53.000Z | 2022-03-31T03:04:34.000Z | _studio/shared/umc/codec/h264_dec/src/umc_h264_dec_bitstream_headers.cpp | wangyan42164/MediaSDK | bc98489e124b52c435a99eb85eef497d871be989 | [
"MIT"
] | 1 | 2021-01-21T12:27:39.000Z | 2021-01-21T12:27:39.000Z | _studio/shared/umc/codec/h264_dec/src/umc_h264_dec_bitstream_headers.cpp | wangyan42164/MediaSDK | bc98489e124b52c435a99eb85eef497d871be989 | [
"MIT"
] | 1 | 2022-02-10T03:24:51.000Z | 2022-02-10T03:24:51.000Z | // Copyright (c) 2017-2019 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 use, copy, modify, merge,... | 34.857583 | 145 | 0.611281 | wangyan42164 |
8b25aa4cb4d6c6134baf186d56f4b157e585a2c7 | 4,418 | cpp | C++ | Fusin/src/Utilities/FusinCharCode.cpp | LegendaryMauricius/Fusin | 36364b708257630be8b3f1aec27c9f711d255ab1 | [
"MIT"
] | null | null | null | Fusin/src/Utilities/FusinCharCode.cpp | LegendaryMauricius/Fusin | 36364b708257630be8b3f1aec27c9f711d255ab1 | [
"MIT"
] | null | null | null | Fusin/src/Utilities/FusinCharCode.cpp | LegendaryMauricius/Fusin | 36364b708257630be8b3f1aec27c9f711d255ab1 | [
"MIT"
] | null | null | null | #include "Utilities/FusinCharCode.h"
#include <sstream>
#include <map>
namespace Fusin
{
namespace
{
const std::map<String, Char> NameToKeyMap = {
{FUSIN_STR("Home"), CC_HOME},
{FUSIN_STR("End"), CC_END},
{FUSIN_STR("L_Shift"), CC_LSHIFT},
{FUSIN_STR("R_Shift"), CC_RSHIFT},
{FUSIN_STR("L_Ctrl"), CC... | 22.426396 | 73 | 0.627433 | LegendaryMauricius |
8b2827b56b02f0dff658a4c8c0bc60e143eb3789 | 19,516 | cpp | C++ | arangod/IResearch/IResearchDocument.cpp | Korov/arangodb | d1f8df028f8af60d1cd5708890f0d6ae75f9dd06 | [
"Apache-2.0"
] | null | null | null | arangod/IResearch/IResearchDocument.cpp | Korov/arangodb | d1f8df028f8af60d1cd5708890f0d6ae75f9dd06 | [
"Apache-2.0"
] | null | null | null | arangod/IResearch/IResearchDocument.cpp | Korov/arangodb | d1f8df028f8af60d1cd5708890f0d6ae75f9dd06 | [
"Apache-2.0"
] | 1 | 2020-10-01T08:49:12.000Z | 2020-10-01T08:49:12.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2020 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... | 32.966216 | 103 | 0.623078 | Korov |
8b286b267bb2719e1ed63440b0dea3cc2044f356 | 2,526 | hpp | C++ | cpp/oneapi/dal/detail/profiler.hpp | samir-nasibli/oneDAL | a8112a7a18ce1dba13b1a5751ced8ce2bc9f7382 | [
"Apache-2.0"
] | 188 | 2016-04-16T12:11:48.000Z | 2018-01-12T12:42:55.000Z | cpp/oneapi/dal/detail/profiler.hpp | samir-nasibli/oneDAL | a8112a7a18ce1dba13b1a5751ced8ce2bc9f7382 | [
"Apache-2.0"
] | 1,198 | 2020-03-24T17:26:18.000Z | 2022-03-31T08:06:15.000Z | cpp/oneapi/dal/detail/profiler.hpp | samir-nasibli/oneDAL | a8112a7a18ce1dba13b1a5751ced8ce2bc9f7382 | [
"Apache-2.0"
] | 93 | 2018-01-23T01:59:23.000Z | 2020-03-16T11:04:19.000Z | /*******************************************************************************
* Copyright 2021 Intel Corporation
*
* 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.o... | 37.701493 | 115 | 0.604909 | samir-nasibli |
8b29259ca6ff65382d92f2fdae9eff525497213d | 1,250 | cpp | C++ | lang/cpp/cpp1114/for.cpp | yohshiy/programmers_notes | ececf1fc158ca8f541dc3ebc4310d2694c687ef5 | [
"MIT"
] | null | null | null | lang/cpp/cpp1114/for.cpp | yohshiy/programmers_notes | ececf1fc158ca8f541dc3ebc4310d2694c687ef5 | [
"MIT"
] | null | null | null | lang/cpp/cpp1114/for.cpp | yohshiy/programmers_notes | ececf1fc158ca8f541dc3ebc4310d2694c687ef5 | [
"MIT"
] | null | null | null | ///
/// 範囲 for サンプル
///
/// g++ -std=c++14 for.cpp
#include <iostream>
#include <vector>
#include <string>
#include <map>
using namespace std;
int main()
{
// STL コンテナー
vector<int> ary = { 3,2,9,6 };
for (auto elem : ary) {
cout << elem << endl;
}
cout << endl;
// 配列
int cary[] = { ... | 13.888889 | 66 | 0.3776 | yohshiy |
8b2a4df2e8ba9ffedd97f02d9cb7847b245de32f | 131,701 | cc | C++ | vehicle/simvehicle.cc | vinijabes/simutrans | cb90d7e29e8f7910936d98733fe9fe5f24893535 | [
"Artistic-1.0"
] | null | null | null | vehicle/simvehicle.cc | vinijabes/simutrans | cb90d7e29e8f7910936d98733fe9fe5f24893535 | [
"Artistic-1.0"
] | null | null | null | vehicle/simvehicle.cc | vinijabes/simutrans | cb90d7e29e8f7910936d98733fe9fe5f24893535 | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans project under the Artistic License.
* (see LICENSE.txt)
*/
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "../boden/grund.h"
#include "../boden/wege/runway.h"
#include "../boden/wege/kanal.h"
#include "../boden/wege/schiene.h"
#include ... | 30.415935 | 358 | 0.66203 | vinijabes |
8b2a5fa7caab27fd1b4932f587ff704a2a67c126 | 6,262 | cpp | C++ | ur_calibration/src/calibration_correction.cpp | mowito/Universal_Robots_ROS2_Driver | a5fbbb2e52b9d1111c46bb172c74f9f0063dabbd | [
"BSD-3-Clause"
] | null | null | null | ur_calibration/src/calibration_correction.cpp | mowito/Universal_Robots_ROS2_Driver | a5fbbb2e52b9d1111c46bb172c74f9f0063dabbd | [
"BSD-3-Clause"
] | null | null | null | ur_calibration/src/calibration_correction.cpp | mowito/Universal_Robots_ROS2_Driver | a5fbbb2e52b9d1111c46bb172c74f9f0063dabbd | [
"BSD-3-Clause"
] | null | null | null | // -- BEGIN LICENSE BLOCK ----------------------------------------------
// Created on behalf of Universal Robots A/S
// Copyright 2019 FZI Forschungszentrum Informatik
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:... | 35.179775 | 120 | 0.696583 | mowito |
8b2cba9ce1f1cb5957716f26a7ad3f9a843f575f | 84,153 | hpp | C++ | modules/dnn/include/opencv2/dnn/dnn.hpp | Synkar/opencv | 266835cd2eb5e0d66eeb2e11bb9add8a3f2e74ae | [
"Apache-2.0"
] | 1 | 2022-01-28T09:14:05.000Z | 2022-01-28T09:14:05.000Z | modules/dnn/include/opencv2/dnn/dnn.hpp | Synkar/opencv | 266835cd2eb5e0d66eeb2e11bb9add8a3f2e74ae | [
"Apache-2.0"
] | null | null | null | modules/dnn/include/opencv2/dnn/dnn.hpp | Synkar/opencv | 266835cd2eb5e0d66eeb2e11bb9add8a3f2e74ae | [
"Apache-2.0"
] | null | null | null | /*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... | 49.212281 | 152 | 0.637886 | Synkar |
8b2ccb74852ea6ae8c292a1df0f9b3b34a0f725b | 127,016 | cpp | C++ | src/lib/core/tests/TestCHIPTLV.cpp | simonlingoogle/connectedhomeip | 47e8b60c0a903b385accde9f49635187646dd577 | [
"Apache-2.0"
] | 2 | 2021-05-21T23:15:07.000Z | 2021-12-04T03:53:03.000Z | src/lib/core/tests/TestCHIPTLV.cpp | simonlingoogle/connectedhomeip | 47e8b60c0a903b385accde9f49635187646dd577 | [
"Apache-2.0"
] | null | null | null | src/lib/core/tests/TestCHIPTLV.cpp | simonlingoogle/connectedhomeip | 47e8b60c0a903b385accde9f49635187646dd577 | [
"Apache-2.0"
] | null | null | null | /*
*
* Copyright (c) 2020 Project CHIP Authors
* Copyright (c) 2013-2017 Nest Labs, 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
*
*... | 33.085699 | 134 | 0.656791 | simonlingoogle |
8b2f584d24dd5468c7166122eee8e538327ffb74 | 138 | cpp | C++ | Util/llvm/tools/clang/test/SemaCXX/decltype-pr4444.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 5 | 2020-06-30T05:06:40.000Z | 2021-05-24T08:38:33.000Z | Util/llvm/tools/clang/test/SemaCXX/decltype-pr4444.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | null | null | null | Util/llvm/tools/clang/test/SemaCXX/decltype-pr4444.cpp | ianloic/unladen-swallow | 28148f4ddbb3d519042de1f9fc9f1356fdd31e31 | [
"PSF-2.0"
] | 2 | 2015-10-01T18:28:20.000Z | 2020-09-09T16:25:27.000Z | // RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
template<typename T, T t>
struct TestStruct {
typedef decltype(t+2) sum_type;
};
| 19.714286 | 52 | 0.681159 | ianloic |
8b3115b344ea66758e6d4c76caea1fc9e07cd806 | 434 | cpp | C++ | code/sandbox2.cpp | chistopher/scale-free-flow | 2db5fe9563a459035b38b449a293aecbac32710f | [
"MIT"
] | null | null | null | code/sandbox2.cpp | chistopher/scale-free-flow | 2db5fe9563a459035b38b449a293aecbac32710f | [
"MIT"
] | null | null | null | code/sandbox2.cpp | chistopher/scale-free-flow | 2db5fe9563a459035b38b449a293aecbac32710f | [
"MIT"
] | null | null | null |
#include <bits/stdc++.h>
#include <ScopedTimer.hpp>
#include <ProgressIndicator.hpp>
#include <common.h>
#include <utils.h>
#include <Dinics.h>
#include <BoykovKolmogorov.h>
#include <ghtree.h>
#include <girgs/Generator.h>
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define all(a) (a).begin(),(a).end()
/... | 15.5 | 48 | 0.626728 | chistopher |
8b32451c1fe2c6d4d57ccedb008590f06ee40187 | 6,888 | hpp | C++ | adobe/manip.hpp | jaredwy/adobe_source_libraries | b71f5d08ab10396e9d2ba5e73861ca018f899a2d | [
"BSL-1.0"
] | 252 | 2015-01-09T13:38:47.000Z | 2022-03-30T09:02:01.000Z | adobe/manip.hpp | etiennemlb/adobe_source_libraries | 5ced8bf61fbb487e9a2c6fa3ea7abc2687448c3b | [
"BSL-1.0"
] | 37 | 2015-05-04T23:49:40.000Z | 2022-01-22T18:31:51.000Z | adobe/manip.hpp | etiennemlb/adobe_source_libraries | 5ced8bf61fbb487e9a2c6fa3ea7abc2687448c3b | [
"BSL-1.0"
] | 59 | 2015-06-09T07:44:56.000Z | 2022-01-22T17:35:05.000Z | /*
Copyright 2013 Adobe
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)
*/
/**************************************************************************************************/
#ifdef ADOBE_STD_SERIALIZATION
... | 30.210526 | 100 | 0.49187 | jaredwy |
8b351ec79447902b9caaf3d804bf33f17e8fac91 | 12,795 | cpp | C++ | src/wren/Viewport.cpp | yjf18340/webots | 60d441c362031ab8fde120cc0cd97bdb1a31a3d5 | [
"Apache-2.0"
] | 1 | 2019-11-13T08:12:02.000Z | 2019-11-13T08:12:02.000Z | src/wren/Viewport.cpp | chinakwy/webots | 7c35a359848bafe81fe0229ac2ed587528f4c73e | [
"Apache-2.0"
] | null | null | null | src/wren/Viewport.cpp | chinakwy/webots | 7c35a359848bafe81fe0229ac2ed587528f4c73e | [
"Apache-2.0"
] | 1 | 2020-09-25T02:01:45.000Z | 2020-09-25T02:01:45.000Z | // Copyright 1996-2019 Cyberbotics 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 or agr... | 33.320313 | 123 | 0.728957 | yjf18340 |
8b3564ee23a638992f0a599613cb07c0336610d5 | 8,482 | cpp | C++ | model/Gateway_attributes.cpp | colosa/pmio-sdk-cpprest | 1881ede9619934d534e31cd51f0ee946b23f6643 | [
"Apache-2.0"
] | null | null | null | model/Gateway_attributes.cpp | colosa/pmio-sdk-cpprest | 1881ede9619934d534e31cd51f0ee946b23f6643 | [
"Apache-2.0"
] | null | null | null | model/Gateway_attributes.cpp | colosa/pmio-sdk-cpprest | 1881ede9619934d534e31cd51f0ee946b23f6643 | [
"Apache-2.0"
] | null | null | null | /**
* ProcessMaker API
* This ProcessMaker Core API provide access to the new generation engine with BPMN 2.0 support. The current Alpha 1.0 version supports the part of BPM system functionality like process import, process execution, task assignment
*
* OpenAPI spec version: 1.0.0
* Contact: alpha-program@proces... | 25.471471 | 229 | 0.649139 | colosa |
8b35bbc7066416e55e21909e4033d774ab0d1c2f | 5,453 | cpp | C++ | hphp/runtime/vm/jit/tc-debugger.cpp | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | 7 | 2015-08-28T06:20:50.000Z | 2021-11-08T09:48:24.000Z | hphp/runtime/vm/jit/tc-debugger.cpp | thekid/hhvm | 3f7d3bdde3cbab3b90dd0f156ae56445738432b1 | [
"PHP-3.01",
"Zend-2.0"
] | 1 | 2020-01-19T19:06:32.000Z | 2020-01-19T19:06:32.000Z | hphp/runtime/vm/jit/tc-debugger.cpp | profclems/hhvm | 240f1370de88926a6c0760cc089b93b84bb0f88d | [
"PHP-3.01",
"Zend-2.0"
] | 3 | 2018-01-23T20:44:59.000Z | 2021-05-06T12:45:31.000Z | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... | 33.048485 | 80 | 0.595085 | thekid |
8b37cd3eb53ccf6de6076b187ea11d5964ad82d1 | 13,525 | cpp | C++ | particlebot2/db_service.cpp | handicraftsman/particlebot2 | 5a9e1af3ecaf317f95559dce5eb9860d85c34218 | [
"MIT"
] | 1 | 2018-06-14T13:52:38.000Z | 2018-06-14T13:52:38.000Z | particlebot2/db_service.cpp | handicraftsman/particlebot2 | 5a9e1af3ecaf317f95559dce5eb9860d85c34218 | [
"MIT"
] | 1 | 2018-06-16T20:59:46.000Z | 2018-06-18T09:13:07.000Z | particlebot2/db_service.cpp | handicraftsman/particlebot2 | 5a9e1af3ecaf317f95559dce5eb9860d85c34218 | [
"MIT"
] | null | null | null | #include "db_service.hpp"
#include <sstream>
#include <mutex>
#include <cstring>
#include <guosh.hpp>
#include <sqlite3.h>
namespace pb2 {
/*
* Flag implementation
*/
flag::flag(std::string _server)
: server(_server)
{}
/*
* Private declaration
*/
class db_service_private {
public:... | 31.823529 | 137 | 0.603031 | handicraftsman |
8b3896a642293840201ab50be9ea48fe2cd83095 | 1,892 | cpp | C++ | codeforces/D - Barcelonian Distance/Wrong answer on test 9.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | 1 | 2022-02-11T16:55:36.000Z | 2022-02-11T16:55:36.000Z | codeforces/D - Barcelonian Distance/Wrong answer on test 9.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | codeforces/D - Barcelonian Distance/Wrong answer on test 9.cpp | kzvd4729/Problem-Solving | 13b105e725a4c2f8db7fecc5d7a8f932b9fef4ab | [
"MIT"
] | null | null | null | /****************************************************************************************
* @author: kzvd4729 created: Nov/19/2018 01:59
* solution_verdict: Wrong answer on test 9 language: GNU C++14
* run... | 37.098039 | 111 | 0.541755 | kzvd4729 |
8b3a2a34ecc89a46f56446af0008e7f5aaa6531f | 765 | cpp | C++ | ad_map_access/impl/tests/generated/ad/map/route/LaneSegmentListTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | null | null | null | ad_map_access/impl/tests/generated/ad/map/route/LaneSegmentListTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | null | null | null | ad_map_access/impl/tests/generated/ad/map/route/LaneSegmentListTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 1 | 2020-10-27T11:09:30.000Z | 2020-10-27T11:09:30.000Z | /*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/*
* Generated file
*/
#if defined(__clang__) && (__clang_major__ >= 7)
#... | 21.857143 | 74 | 0.611765 | seowwj |
8b3e75e2817205050217d3acbc01c3f0f3733b43 | 19,601 | cpp | C++ | src/libtsduck/tsSDT.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/tsSDT.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/tsSDT.cpp | yrpark99/tsduck | 2929092e42c5c7eec95a119af91cc09ffdde2028 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2018, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 36.433086 | 144 | 0.543646 | yrpark99 |
8b3e89f7e1cb3cd9337b869dca27164abf6eb81b | 1,044 | cpp | C++ | src/thunderbots/software/test/ai/passing/pass.cpp | FSXAC/Software | 3754f5ec2c513906f66a05d4399aca516d03ba9f | [
"MIT"
] | null | null | null | src/thunderbots/software/test/ai/passing/pass.cpp | FSXAC/Software | 3754f5ec2c513906f66a05d4399aca516d03ba9f | [
"MIT"
] | null | null | null | src/thunderbots/software/test/ai/passing/pass.cpp | FSXAC/Software | 3754f5ec2c513906f66a05d4399aca516d03ba9f | [
"MIT"
] | null | null | null | /**
* Tests for the "Pass" class
*/
#include "ai/passing/pass.h"
#include <gtest/gtest.h>
using namespace AI::Passing;
TEST(PassTest, test_constructing_pass_with_negative_speed)
{
EXPECT_THROW(Pass(Point(1, 2), Point(3, 4), -0.1, Timestamp::fromSeconds(10)),
std::invalid_argument);
}
TEST(Pa... | 27.473684 | 87 | 0.641762 | FSXAC |
8b460be9f2d3b90dbc32c9b5a2bb05d21a4b4244 | 681 | cpp | C++ | src/libsasm/TokenStream.cpp | Galfodo/SIDdecompiler | aeda7aff18c8d61e5e0716a1301d4d3c52f12234 | [
"MIT"
] | 11 | 2019-03-13T12:38:39.000Z | 2021-10-17T05:04:58.000Z | src/libsasm/TokenStream.cpp | Galfodo/SIDdecompiler | aeda7aff18c8d61e5e0716a1301d4d3c52f12234 | [
"MIT"
] | null | null | null | src/libsasm/TokenStream.cpp | Galfodo/SIDdecompiler | aeda7aff18c8d61e5e0716a1301d4d3c52f12234 | [
"MIT"
] | null | null | null |
#include "TokenStream.h"
#include <assert.h>
namespace SASM {
TokenStream::TokenStream(GetToken_pf pfGetToken, char const* pzData) : m_pfGetToken(pfGetToken), m_pzData(pzData), m_CachedToken(false) {
assert(m_pfGetToken != NULL);
}
bool TokenStream::next(Token& token) {
if (m_CachedToken) {
token = m_NextT... | 20.636364 | 137 | 0.690162 | Galfodo |
8b4839012406abfdf6796a20b83ec6518e84d7b7 | 29,625 | cpp | C++ | lib/Index/IndexDatastore.cpp | gmittert/indexstore-db | 31ff487bd8d10531a9af761e4ecc1c929ccee2ff | [
"Apache-2.0"
] | null | null | null | lib/Index/IndexDatastore.cpp | gmittert/indexstore-db | 31ff487bd8d10531a9af761e4ecc1c929ccee2ff | [
"Apache-2.0"
] | null | null | null | lib/Index/IndexDatastore.cpp | gmittert/indexstore-db | 31ff487bd8d10531a9af761e4ecc1c929ccee2ff | [
"Apache-2.0"
] | null | null | null | //===--- IndexDatastore.cpp -----------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 36.084044 | 237 | 0.684489 | gmittert |
8b48f08041eabfd511df39a8badc93f1cb027293 | 11,984 | cc | C++ | test/syscalls/linux/itimer.cc | akhand9999/gvisor | 001d57df10531208c048450c8e0bc4c5a9ec9caf | [
"Apache-2.0"
] | 2 | 2021-02-23T03:14:54.000Z | 2021-04-16T08:46:24.000Z | test/syscalls/linux/itimer.cc | akhand9999/gvisor | 001d57df10531208c048450c8e0bc4c5a9ec9caf | [
"Apache-2.0"
] | 8 | 2020-06-25T09:43:46.000Z | 2022-03-31T01:01:00.000Z | test/syscalls/linux/itimer.cc | akhand9999/gvisor | 001d57df10531208c048450c8e0bc4c5a9ec9caf | [
"Apache-2.0"
] | 3 | 2021-02-08T17:44:27.000Z | 2022-01-14T16:48:26.000Z | // Copyright 2018 The gVisor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agree... | 33.853107 | 80 | 0.69743 | akhand9999 |
8b492177610ad1447c7223aa4454b2d38565e1b5 | 16,852 | cc | C++ | chrome/chrome_cleaner/ipc/sandbox.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/chrome_cleaner/ipc/sandbox.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/chrome_cleaner/ipc/sandbox.cc | mghgroup/Glide-Browser | 6a4c1eaa6632ec55014fee87781c6bbbb92a2af5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2021-01-05T23:43:46.000Z | 2021-01-07T23:36:34.000Z | // Copyright 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 "chrome/chrome_cleaner/ipc/sandbox.h"
#include <windows.h>
#include <iterator>
#include <memory>
#include <utility>
#include <vector>
#include... | 38.387244 | 128 | 0.727985 | mghgroup |
8b4e007ede6494ab291587244a35e4a83d3db66b | 25,541 | cc | C++ | db/column_family.cc | aginika/rocksdb | 3d74f09979a2eadc1711a13ca4e221b53a6c44b3 | [
"BSD-3-Clause"
] | null | null | null | db/column_family.cc | aginika/rocksdb | 3d74f09979a2eadc1711a13ca4e221b53a6c44b3 | [
"BSD-3-Clause"
] | null | null | null | db/column_family.cc | aginika/rocksdb | 3d74f09979a2eadc1711a13ca4e221b53a6c44b3 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2013, 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.
//
// Copyright (c) 2011 The... | 34.375505 | 80 | 0.688266 | aginika |
8b4fbb23dd395ae1e1f0788fc5afddf14565361d | 2,800 | cpp | C++ | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcEdgeLoop.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 426 | 2015-04-12T10:00:46.000Z | 2022-03-29T11:03:02.000Z | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcEdgeLoop.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 124 | 2015-05-15T05:51:00.000Z | 2022-02-09T15:25:12.000Z | IfcPlusPlus/src/ifcpp/IFC4/lib/IfcEdgeLoop.cpp | AlexVlk/ifcplusplus | 2f8cd5457312282b8d90b261dbf8fb66e1c84057 | [
"MIT"
] | 214 | 2015-05-06T07:30:37.000Z | 2022-03-26T16:14:04.000Z | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include... | 42.424242 | 229 | 0.732857 | AlexVlk |
332b3eee53dda3c23b959ffe64a4e96d0da94a1b | 592 | cpp | C++ | lab_08/src/pixelate.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | null | null | null | lab_08/src/pixelate.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | 2 | 2018-11-15T17:15:08.000Z | 2018-11-20T18:14:33.000Z | lab_08/src/pixelate.cpp | srafi1/csci13600-labs-1 | 60081dced2c237f6843b28f335db9a4ed56a8ac2 | [
"BSD-3-Clause"
] | 4 | 2018-11-08T15:05:15.000Z | 2018-12-14T04:08:49.000Z | #include <array>
#include "main.hpp"
constexpr std::array<std::array<size_t, 2>, 4> offsets = {{{0, 0}, {0, 1}, {1, 0}, {1, 1}}};
void pixelate(std::vector<std::vector<int> >& muhimage) {
for (size_t i = 0; i < muhimage.size() / 2; i++) {
for (size_t j = 0; j < muhimage[0].size() / 2; j++) {
int a = 0;
... | 23.68 | 92 | 0.464527 | srafi1 |
332b65d32a5a7ad25b371e4d8e23a6bd4bc0aa81 | 1,587 | cpp | C++ | basicVoltmeter-textbook-example/basicIOCmd.cpp | betaghIEEE/stm32-mbed-tutorials | fe4f4c37e8e58f4e1e5707231fd5de8759cfe02b | [
"Apache-2.0"
] | null | null | null | basicVoltmeter-textbook-example/basicIOCmd.cpp | betaghIEEE/stm32-mbed-tutorials | fe4f4c37e8e58f4e1e5707231fd5de8759cfe02b | [
"Apache-2.0"
] | null | null | null | basicVoltmeter-textbook-example/basicIOCmd.cpp | betaghIEEE/stm32-mbed-tutorials | fe4f4c37e8e58f4e1e5707231fd5de8759cfe02b | [
"Apache-2.0"
] | null | null | null | #include "basicIOCmd.h"
#include "BufferedSerial.h"
#include "mbed.h"
#include "unity_internals.h"
//
// Clear the screen
//
BufferedSerial myPC(USBTX, USBRX, 9600);
#define BLINKING_RATE_MS 1000
#define BUFFER_SIZE 1000
e... | 18.670588 | 80 | 0.512287 | betaghIEEE |
332c2fd96835af8eb8273fc7d64ecef07627c345 | 4,320 | cpp | C++ | aws-cpp-sdk-application-autoscaling/source/model/ScalableTarget.cpp | grujicbr/aws-sdk-cpp | bdd43c178042f09c6739645e3f6cd17822a7c35c | [
"Apache-2.0"
] | 1 | 2020-03-11T05:36:20.000Z | 2020-03-11T05:36:20.000Z | aws-cpp-sdk-application-autoscaling/source/model/ScalableTarget.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-application-autoscaling/source/model/ScalableTarget.cpp | novaquark/aws-sdk-cpp | a0969508545bec9ae2864c9e1e2bb9aff109f90c | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 24 | 121 | 0.750694 | grujicbr |
332ceebfe38b89adcfaeb3809dbd523fef6682c1 | 2,058 | cc | C++ | chrome/browser/value_store/failing_value_store.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 1 | 2019-04-23T15:57:04.000Z | 2019-04-23T15:57:04.000Z | chrome/browser/value_store/failing_value_store.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/value_store/failing_value_store.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"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/value_store/failing_value_store.h"
#include "base/logging.h"
namespace {
const char* kGenericErrorMessage = "Failed to ini... | 26.050633 | 73 | 0.757046 | 1065672644894730302 |
3330440aa74c532f46ae3d829f2c968b9582b24e | 1,976 | cc | C++ | skia/ext/bitmap_platform_device_mac_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 2 | 2017-09-02T19:08:28.000Z | 2021-11-15T15:15:14.000Z | skia/ext/bitmap_platform_device_mac_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | null | null | null | skia/ext/bitmap_platform_device_mac_unittest.cc | Gitman1989/chromium | 2b1cceae1075ef012fb225deec8b4c8bbe4bc897 | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "skia/ext/bitmap_platform_device_mac.h"
#include "base/scoped_ptr.h"
#include "skia/ext/skia_utils_mac.h"
#include "testing/gtest/include/gt... | 29.492537 | 79 | 0.758097 | Gitman1989 |
333244648d0f7fd7bd1fa490e2d889da17fa3287 | 11,638 | cc | C++ | src/i18n_data/locale/it_IT.cc | BornIncompetence/fast_io | 4a2ce333d292753369df4202af090abe0142725a | [
"MIT"
] | null | null | null | src/i18n_data/locale/it_IT.cc | BornIncompetence/fast_io | 4a2ce333d292753369df4202af090abe0142725a | [
"MIT"
] | null | null | null | src/i18n_data/locale/it_IT.cc | BornIncompetence/fast_io | 4a2ce333d292753369df4202af090abe0142725a | [
"MIT"
] | null | null | null | #include"../localedef.h"
namespace fast_io_i18n
{
namespace
{
inline constexpr std::size_t numeric_grouping_storage[]{3};
inline constexpr lc_all lc_all_global{.identification={.title=tsc("Italian locale for Italy"),.source=tsc("RAP\t\t;\t\tfast_io"),.address=tsc("Sankt Jørgens Alle 8, DK-1615 København V, Danmark\t... | 484.916667 | 2,378 | 0.676749 | BornIncompetence |
33333cf3e77058e549c76523d5837687bcf9d6fb | 7,474 | cpp | C++ | KDIS/KDataStream.cpp | cdit-ma/kdis | f722221cee0e5ea6869f9e923ad1cdb93d5d289f | [
"BSD-2-Clause"
] | null | null | null | KDIS/KDataStream.cpp | cdit-ma/kdis | f722221cee0e5ea6869f9e923ad1cdb93d5d289f | [
"BSD-2-Clause"
] | null | null | null | KDIS/KDataStream.cpp | cdit-ma/kdis | f722221cee0e5ea6869f9e923ad1cdb93d5d289f | [
"BSD-2-Clause"
] | null | null | null | /*********************************************************************
Copyright 2013 Karl Jones
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above ... | 27.377289 | 127 | 0.500134 | cdit-ma |
33337503b14c67e7aa1c770bf6232b92fbcedabc | 3,173 | hpp | C++ | include/move.hpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 6 | 2019-01-23T03:13:36.000Z | 2020-09-06T09:54:48.000Z | include/move.hpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 33 | 2015-12-28T08:48:01.000Z | 2019-09-25T11:39:53.000Z | include/move.hpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 6 | 2018-08-06T14:05:11.000Z | 2022-02-15T01:30:49.000Z | #pragma once
#include "movetype.hpp"
#include "piece.hpp"
#include "piecetype.hpp"
#include "square.hpp"
namespace goldfish
{
namespace Moves
{
constexpr int TYPE_SHIFT = 0;
constexpr int TYPE_MASK = MoveTypes::MASK << TYPE_SHIFT;
constexpr int ORIGIN_SQUARE_SHIFT = 3;
constexpr int ORIGIN_SQUARE_M... | 29.110092 | 77 | 0.676647 | bsamseth |
33338e281180f80868f3b7f4c494b65c0482c7b8 | 1,979 | hpp | C++ | src/estimation/ButterworthFilter.hpp | dakejahl/TeensyFlight3.6 | da334100eaa42f82bf7f83f14bf5042397433ebd | [
"MIT"
] | 17 | 2019-09-22T11:58:29.000Z | 2022-03-16T03:13:14.000Z | src/estimation/ButterworthFilter.hpp | dakejahl/TeensyFlight3.6 | da334100eaa42f82bf7f83f14bf5042397433ebd | [
"MIT"
] | 11 | 2019-09-01T06:56:02.000Z | 2020-04-29T11:46:25.000Z | src/estimation/ButterworthFilter.hpp | dakejahl/teensy36_customized | da334100eaa42f82bf7f83f14bf5042397433ebd | [
"MIT"
] | 2 | 2020-01-20T09:57:15.000Z | 2020-10-12T05:16:53.000Z | // MIT License
// Copyright (c) 2019 Jacob Dahl
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merg... | 29.102941 | 81 | 0.748863 | dakejahl |
3334c40525635a2cff9f8728d0604b4949996fd4 | 32,275 | cc | C++ | src/frovedis/dataframe/dfcolumn.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 63 | 2018-06-21T14:11:59.000Z | 2022-03-30T11:24:36.000Z | src/frovedis/dataframe/dfcolumn.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 5 | 2018-09-22T14:01:53.000Z | 2021-12-27T16:11:05.000Z | src/frovedis/dataframe/dfcolumn.cc | XpressAI/frovedis | bda0f2c688fb832671c5b542dd8df1c9657642ff | [
"BSD-2-Clause"
] | 12 | 2018-08-23T15:59:44.000Z | 2022-02-20T06:47:22.000Z | #include "dfcolumn_impl.hpp"
#include "../core/utility.hpp"
#include "../core/find_condition.hpp"
#include <utility>
#include <regex>
#if !(defined(_SX) || defined(__ve__))
#include <unordered_set>
#endif
#include <stdlib.h>
#include <cstdint>
#define SEPARATE_TO_BUCKET_VLEN 256
#define UNIQ_IDX_MAX_BUCKET_SIZE 65536... | 34.081309 | 108 | 0.6233 | XpressAI |