blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 264 | content_id stringlengths 40 40 | detected_licenses listlengths 0 85 | license_type stringclasses 2
values | repo_name stringlengths 5 140 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 986
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 3.89k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 145
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 3 10.4M | extension stringclasses 122
values | content stringlengths 3 10.4M | authors listlengths 1 1 | author_id stringlengths 0 158 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df92589d7f5c75d47f0a81291aeb9b0523d5d9a6 | e8977a44852929dce08aceecf32f6e57051f00de | /chromeos/services/secure_channel/fake_single_client_message_proxy.h | 0054cf332462ff068b4f25d3e67432851f4d3637 | [
"BSD-3-Clause"
] | permissive | nebulabox/chromium | 566900a62983f441bf57346f61251bb90aa82a11 | cb491c4cb294b8b0862e59f0b34a4f702d473e69 | refs/heads/master | 2023-03-09T20:40:00.935811 | 2018-05-24T13:08:26 | 2018-05-24T13:08:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,602 | h | // 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.
#ifndef CHROMEOS_SERVICES_SECURE_CHANNEL_FAKE_SINGLE_CLIENT_MESSAGE_PROXY_H_
#define CHROMEOS_SERVICES_SECURE_CHANNEL_FAKE_SINGLE_CLIENT_MESSAGE_PROXY_H_
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
b69dfb72b2c2515c4349ce6a8afb75e9808ca1db | 2f7c0f6cbb817f981aecd4ad0aa7d47af55a0d70 | /wavelet4d.h | 2b22826aef9a1cbfddec520ff29f6b3e7fa8ba8e | [] | no_license | shaomeng/vapor_addon | 53e5652092c4cec41edb1407690d3c95e06bf845 | eb56e65bcafbaed8b2b0e5c28795fcb283afc1ed | refs/heads/master | 2021-01-18T18:21:37.567021 | 2017-04-06T23:58:04 | 2017-04-06T23:58:04 | 33,807,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | h | /*
* This is the main library that Sam attemps to apply 4D wavelet widely.
* It also employs parallel mechanisms to speed up the calculation.
* Currently it divides big data size_to blocks of 64^3,
* and uses OpenMP to assign each block to a CPU core.
*
* Programmer: Samuel Li
* Date: 12/8/2015
*/
#ifndef _Wa... | [
"shaomenglee@gmail.com"
] | shaomenglee@gmail.com |
97e67430b6eb11034ed1df1b033cb381abc368df | dbd4be4155fa227e1268b091147c4437a2f215be | /C++/comand/cont3/cont3_f.cpp | 5fc6b061d0f2d471ea2bb906e47323b41647f0f6 | [] | no_license | pshpis/School_olymp | 5bdf8e885050f80e68c8407940c7289d3d413592 | 723b6121cc1a0746d0911c5a79076d9589a75839 | refs/heads/main | 2023-03-24T08:34:47.600204 | 2021-03-17T08:20:39 | 2021-03-17T08:20:39 | 348,629,219 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 395 | cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define watch(x) cout << (#x) << " is " << (x) << endl
#define pb push_back
#define mp make_pair
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
double v, v_;
cin>>v>>v_;
double l, l_;
cin>>l>>l_;
i... | [
"51034972+pshpis@users.noreply.github.com"
] | 51034972+pshpis@users.noreply.github.com |
d0f8f7fb306e45c961e4f362cdd1e4f81161665c | 6aeccfb60568a360d2d143e0271f0def40747d73 | /sandbox/fiber/libs/fiber/test/test_condition.cpp | 939928344698af4a556a5331ea83b2a35604c271 | [
"BSL-1.0"
] | permissive | ttyang/sandbox | 1066b324a13813cb1113beca75cdaf518e952276 | e1d6fde18ced644bb63e231829b2fe0664e51fac | refs/heads/trunk | 2021-01-19T17:17:47.452557 | 2013-06-07T14:19:55 | 2013-06-07T14:19:55 | 13,488,698 | 1 | 3 | null | 2023-03-20T11:52:19 | 2013-10-11T03:08:51 | C++ | UTF-8 | C++ | false | false | 5,932 | cpp |
// Copyright Oliver Kowalke 2009.
// 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 <cstdlib>
#include <iostream>
#include <map>
#include <stdexcept>
#include <vector>
#include <boo... | [
"oliver.kowalke@gmail.com"
] | oliver.kowalke@gmail.com |
039d6e5ac401157204e316d1fe1430214040057c | dad4eecc4d69ddf3e8229ab38b127fd593b7fcec | /Pizza.hpp | 658928fb330021280c9a9c50c9af3f0555e916fd | [] | no_license | Nostar42/Hash2021 | 8210640ca761826e499a982ba61bca20b13832a8 | cd721dac24b364043a96296c7bd0686297da5ad6 | refs/heads/main | 2023-02-17T05:34:01.552932 | 2021-01-14T02:32:21 | 2021-01-14T02:32:21 | 329,480,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 57 | hpp | #pragma once
class pizza{
public:
private:
};
| [
"cjp56@cs-ssh.argo.uwf.edu"
] | cjp56@cs-ssh.argo.uwf.edu |
a0d5191af9c885482ab58ef8046ac23bc3ba7114 | c3081f8f60de5d36883b38ab789cfc7ad0bc3902 | /Atom/test/class_2.h | eddf185d5d038a9d356407e66d67e8cbe41d1ba3 | [] | no_license | Arrygon/atomWin7 | 68fe7e799eb1e47a32b8ce9ba354687407c309cc | 10aa418b5cf12640934f3d79bd0e09063e11a663 | refs/heads/master | 2020-03-18T17:53:57.804007 | 2018-06-03T20:36:55 | 2018-06-03T20:36:55 | 135,058,581 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 419 | h | #include <iostream>
#include <windows.h>
using namespace std;
int abc(){
string x;
int b;
cout << "Hello I am your PC. what's your name ? " << endl;
cin >> x;
cout << x << " how old are you ?" << endl;
cin >> b;
if(b == 16){
cout << "Do you want to know how old am I ?"... | [
"noreply@github.com"
] | Arrygon.noreply@github.com |
b072ff90afc734d809ac74b6131648c89d734a03 | 5bfedccc61ab302c515521a1fb1231240cea6085 | /FSTransfer/FSTransfer.h | dc88e4a6033d9b3d345a40db1507a21817fa0185 | [] | no_license | chxj1980/net_uv | bcaa6f67af711d04fe909427189dcd8fbc99a428 | ad846850e27de4f5b6730de2aabb9fd992a472cf | refs/heads/master | 2022-04-07T19:12:17.188008 | 2020-03-11T13:31:17 | 2020-03-11T13:31:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,087 | h | #pragma once
#include <inttypes.h>
#include <string>
#include <map>
#include <functional>
#include <memory>
class FSTransfer;
using FST_Output = std::function<void(FSTransfer* fst, char* data, uint32_t len)>;
struct FST_Task;
class FSTransfer
{
public:
FSTransfer();
virtual ~FSTransfer();
int32_t postFile(co... | [
"www.tkzc@foxmail.com"
] | www.tkzc@foxmail.com |
5c8cd9ed2821d00de73e7d429f8961cebd479903 | 57240655c566d7634bfe47cae56227a8c655859b | /Windows/Demo/TestEcho-Http-4C/SyncClient/ClientDlg.h | 84641328c0563283dfed79afaa65e611e51d3c1a | [
"Apache-2.0"
] | permissive | Garsha/HP-Socket | 208c0863e9c6723a4715e75215cbd40256dfdab7 | 34d8f82974aecc20f16d3322cb4691a47881430b | refs/heads/master | 2020-03-27T21:18:05.668420 | 2019-12-31T15:33:03 | 2019-12-31T15:33:03 | 147,133,510 | 1 | 0 | NOASSERTION | 2019-12-31T15:33:04 | 2018-09-03T00:46:24 | C | UTF-8 | C++ | false | false | 3,211 | h |
// ClientDlg.h : header file
//
#pragma once
#include "afxwin.h"
#include "../../../Src/HPSocket4C-SSL.h"
#include "../../Global/helper.h"
// CClientDlg dialog
class CClientDlg : public CDialogEx
{
// Construction
public:
CClientDlg(CWnd* pParent = NULL); // standard constructor
~CClientDlg(); // standard d... | [
"liangdongcheng@lechebang.com"
] | liangdongcheng@lechebang.com |
152296e6ec301cfec163c5bc5c070b5e664d48e3 | ce97f75bdcaff729d1d14c01675b5da59f392a68 | /Snack/zhouyuView.cpp | e7280cdf2f65f8474c11ba11e5ce370e5d2a3cc2 | [] | no_license | mrzhouyu/C-Project-ClassWork | e6555711a32e36ef26645bdff7a262e5b8e412a9 | ccc5d1c972285adc723e6a3719123a8a5c60f951 | refs/heads/master | 2021-08-31T16:24:36.508625 | 2017-12-22T02:21:13 | 2017-12-22T02:21:13 | 115,065,516 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 7,105 | cpp | // zhouyuView.cpp : implementation of the CZhouyuView class
//
#include "stdafx.h"
#include "zhouyu.h"
#include "zhouyuDoc.h"
#include "zhouyuView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
struct Snake
{
int x,y;
int len;
int direct;
... | [
"1078580516@qq.com"
] | 1078580516@qq.com |
c5a09167fd055b3c80bc4a94f6600dc45423a5e5 | a6946df2a837b3e778ba67d8530859bbdf705e21 | /test/containers/unord/unord.set/insert_init.pass.cpp | 9d573b0bf575f15f9395c0911b961965e49d304e | [
"MIT",
"NCSA"
] | permissive | okuoku/libcxx | 0fc5a2fb5f215d4d8c3d1a32541e7bb7377fb4f9 | a2a08b43ee4ac077d703a00538a3b0128f50c83d | refs/heads/master | 2021-01-16T20:51:32.237136 | 2011-06-22T23:51:19 | 2011-06-22T23:51:19 | 1,947,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,267 | cpp | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | [
"hhinnant@apple.com"
] | hhinnant@apple.com |
f3073f9f69a98fa236228e936537074f3d5fafa5 | 4694b46584e205700f02e8743e152340ade7bde5 | /Hackerrank Solutions/alliceBobAndSweet.cpp | 57f22f37f0f3aefecb0e2b508d01c6341187ebb1 | [] | no_license | Aniruddhmuley2001/cpp-stl-resources- | b6db939251293fed3a96d8f4bde4a59f41bbe2ed | 1134df6ab322aa96b9a187f48176884b6201f54b | refs/heads/master | 2023-08-11T12:33:19.666213 | 2021-10-05T12:21:54 | 2021-10-05T12:21:54 | 265,218,970 | 2 | 6 | null | 2021-10-05T12:21:54 | 2020-05-19T10:40:51 | C++ | UTF-8 | C++ | false | false | 920 | cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
int t , n;
vector<int> v;
cin>>t;
while(t--)
{
cin>>n;
v.resize(n);
for(int i=0 ; i<n ;i++)
{
cin>>v[i];
}
int i = -1 , j = n , curr1 = 0 , curr2 = 0 , total1 ... | [
"58821355+DrashtiKoladiya@users.noreply.github.com"
] | 58821355+DrashtiKoladiya@users.noreply.github.com |
45870e40bf9b11d5d8bc8f5af5862631ef5c6987 | 0eb9403eb2b408d3bf5b43efae1e6fe18f323494 | /CNN.h | 04dbb4e8a0c41e854e197c8381cd1079a75084cf | [] | no_license | jiangwx/Jaffe | 4bef35111e2eccf50eed3a22a3e51ceb3ff7b341 | bce98d0f535b15a01a61f23e3c491b1b6face548 | refs/heads/master | 2020-04-11T12:31:03.099515 | 2018-12-19T15:30:15 | 2018-12-19T15:30:15 | 161,783,342 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,892 | h | #ifndef CNN_H
#define CNN_H
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <vector>
#include <memory.h>
#include <time.h>
#include <sys/time.h>
#include <fstream>
#include <cblas.h>
#include <cstring>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/h... | [
"jiangwx@shanghaitech.edu.cn"
] | jiangwx@shanghaitech.edu.cn |
dcf77143079223b4f240f8607fa5bec8d4969ae3 | 9f151b5a56272fd6f79c196ecdbe41675834e5c3 | /HMIN212/include/Point.hpp | f7d3169b4b65028b0f21317b16198bba5af56205 | [] | no_license | CorentinGaut/Algo3D_TP9 | 16e30e100b577d5e08cece4b460f5e3b4afed530 | a15e8ed50485bcef1efb8bf2b3ce82927ecdcc6a | refs/heads/master | 2021-10-25T04:56:32.102567 | 2019-04-01T11:04:36 | 2019-04-01T11:04:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 591 | hpp | #ifndef POINT_HPP
#define POINT_HPP
#include "Vector.hpp"
class Point {
private :
double x, y,z;
public :
Point();
Point(double x, double y, double z);
Point(Point const& p);
double getX();
double getY();
double getZ();
void setX(double x);
... | [
"noreply@github.com"
] | CorentinGaut.noreply@github.com |
317acf0f49d36803602b6304b94bcc5a56b6571c | 0a27fb69009676ee9bb391f256127a474b55f651 | /Plugins/GraphPrinter/Source/GraphPrinter/Private/ClipboardImageExtension.cpp | 342d2c58cc2b5b329a4168afe6294978d3d03178 | [
"MIT"
] | permissive | BlenderGamer/GraphPrinter | c7bd671e80f8af7ac5aa8bfa98595486469f1875 | 43cefc9aff8205d068546959bbe5971a93af14f1 | refs/heads/master | 2023-07-18T05:32:06.735273 | 2021-08-28T12:32:27 | 2021-08-28T12:32:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,760 | cpp | // Copyright 2020-2021 Naotsun. All Rights Reserved.
#include "ClipboardImageExtension.h"
#include "IImageWrapperModule.h"
#include "IImageWrapper.h"
#include "Modules/ModuleManager.h"
#if PLATFORM_WINDOWS
#include "Windows/WindowsApplication.h"
#endif
namespace ClipboardImageExtensionInternal
{
#if PLATFORM_WINDOW... | [
"51815450+Naotsun19B@users.noreply.github.com"
] | 51815450+Naotsun19B@users.noreply.github.com |
4bc09c783868dec6a7083bf89905d34802a0de16 | bd97c25885f64e30ef19445c6fcaff6548683605 | /Computer-Science/C++/Ch4/ex4_28.cpp | ce446ac7327fcf9d3c71961d54ca4886b1914539 | [] | no_license | TerenYeung/Road-To-BE | 9a7a8fbaa2cccca5c2dc14d848867aa4f5c84fdc | ea5307546c191d2d297810275829be146c12d624 | refs/heads/master | 2021-09-17T06:28:22.937235 | 2018-06-28T15:02:10 | 2018-06-28T15:02:10 | 113,331,527 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,589 | cpp | #include <iostream>
using std::cout;
using std::endl;
int main() {
// integers type
cout << "short:\t\t" << sizeof(short) << " bytes" << endl;
cout << "int:\t\t" << sizeof(int) << " bytes" << endl;
cout << "long:\t\t" << sizeof(long) << " bytes" << endl;
cout << "long long:\t\t" << sizeof(long long) << " by... | [
"yangjialong@ifanr.com"
] | yangjialong@ifanr.com |
76dc3433e2b1c5f6178c9e8a1f46ffd4234abbe8 | a070ff0c5b424f8b7c1a7fa05f4f40d68381667b | /src/qt/communityfunddisplay.cpp | 4bfbd0bf2f2c8f325442039baa3c8a851792928f | [
"MIT"
] | permissive | diyathrajapakshe/bethel-core | 1347a29d8091778eaa4dc97fa26fc428e6206366 | 9f272d635da18b91582dbbb2ba47cfce1a1fc9ca | refs/heads/master | 2021-03-13T11:49:21.838487 | 2020-03-11T20:56:23 | 2020-03-11T20:56:23 | 246,677,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,921 | cpp | #include "communityfunddisplay.h"
#include "ui_communityfunddisplay.h"
#include <QtWidgets/QDialogButtonBox>
#include "main.h"
#include "../txdb.h"
#include <iomanip>
#include <sstream>
#include <ctime>
#include "wallet/wallet.h"
#include "base58.h"
#include "consensus/cfund.h"
#include "chain.h"
#include "guiutil.h"
... | [
"diyathrajapakshe@gmail.com"
] | diyathrajapakshe@gmail.com |
e89f32da9f108ea48d3504a84c6d565abfc23a24 | 301cac2ee44330c6ce0a116ca4e8552dae72c822 | /core/slam/src/ORBmatcher.cc | 900851be746534f10e41319a48c4e13247c8ff54 | [] | no_license | dmitryshendryk/hackaton_2018 | 124b922f48a8d4771f5a28af2af182abdb9c00a1 | f6c755be01f53530cfd50168f473d114ba39db1e | refs/heads/master | 2020-03-26T10:45:17.472825 | 2018-08-15T18:45:53 | 2018-08-15T18:45:53 | 144,813,948 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 49,622 | cc | /**
* This file is part of ORB-SLAM2.
*
* Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza)
* For more information see <https://github.com/raulmur/ORB_SLAM2>
*
* ORB-SLAM2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Lice... | [
"zaonmax@inbox.ru"
] | zaonmax@inbox.ru |
e709ffbd74218f459b32e9fae3de98ac2b66470a | e0d6fd9e1c6f5401810f97ded178c4dcebd15f2b | /luogu/p1233_2.cpp | a99206e88bf5b9cd1755145e4c2d0ab3e7599ce1 | [] | no_license | yangzebin001/OJ | 3d03edcb7133b974202fdceeba68f9d51724a055 | 34a4f03793f358d3770336af3e624feddfb3e9b3 | refs/heads/master | 2021-06-28T02:18:14.067208 | 2021-01-13T06:51:23 | 2021-01-13T06:51:23 | 202,832,472 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 742 | cpp | /*
* @Author: BeckoninGshy
* @Date: 2020-10-09 09:38:46
* @Last Modified by: BeckoninGshy
* @Last Modified time: 2020-10-09 09:46:24
*/
#include<iostream>
#include<algorithm>
using namespace std;
const int MAXN = 5010;
struct e{
int l,w;
}p[MAXN];
int dp[MAXN], len;
bool cmp(e &a, e &b){
if(a.l == b.... | [
"405678856@qq.com"
] | 405678856@qq.com |
53fb8a27664d6d2cc23521d5232dfff8acf52159 | bc0945070d150c8af7cc56bf6e045a8c2cc7873d | /3369/2599879_OLE.cpp | faa1ccffec09a002f6e584210b7cdd216d76661f | [] | no_license | fengrenchang86/PKU | ab889d88cd62b3c0b3e00cde5d5c3a652a16221a | 0c4adf6b740d2186b7f23124673cd56520d1c818 | refs/heads/master | 2021-01-10T12:12:18.100884 | 2016-03-07T14:14:33 | 2016-03-07T14:14:33 | 53,328,385 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | cpp | #include <iostream>
#include <math.h>
using namespace std;
double a[5];
int main ()
{
double a,b,c,d;
int count = 0;
int h;
char ch[120];
for ( a = 0.01; a*a*a*a<=20; a+=0.01 )
{
for ( b = a; b+a+b+b<=20&&b*a*b*b<=20; b+=0.01 )
{
for ( c = b; a+b+c+c<=20&&a*b*c*c<=20;c+=0.01 )
{
d = (a+b+c)/(a*b*c-1... | [
"fengrenchang86@gmail.com"
] | fengrenchang86@gmail.com |
173fe9741a18d760d05e67b2a05b524d593672fa | 985e7e38cb115b160da3d79811b02883d7f9080c | /samples/misc/specials_dg/makeownr.cpp | 6901a1c57f5f365832805a64fd52098e048ea463 | [] | no_license | jidzhang/ObjectARX2018 | a3ad7c3e36ea6b27edfb5963f5e43b83a523004b | 012e8dac91500d5fd6c9138d87eee94b6c10b07c | refs/heads/master | 2021-01-22T07:49:11.392757 | 2017-05-31T02:21:07 | 2017-05-31T02:21:07 | 92,580,081 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,199 | cpp | //
//////////////////////////////////////////////////////////////////////////////
//
// Copyright 2017 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk license
// agreement provided at the time of installation or download, or which
// otherwise accompa... | [
"545628606[AT]qq.com"
] | 545628606[AT]qq.com |
97bce197340c5e2c0fed1c31852fdc862477aaa9 | b367fe5f0c2c50846b002b59472c50453e1629bc | /xbox_leak_may_2020/xbox trunk/xbox/private/test/directx/dplay/testnet/tncontrl/vars.h | 97349a971e221a9c7eb8e4b40e5764d9e41f5b35 | [] | no_license | sgzwiz/xbox_leak_may_2020 | 11b441502a659c8da8a1aa199f89f6236dd59325 | fd00b4b3b2abb1ea6ef9ac64b755419741a3af00 | refs/heads/master | 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,481 | h | #ifndef __TNCONTROL_VARS__
#define __TNCONTROL_VARS__
//#pragma message("Defining __TNCONTROL_VARS__")
//==================================================================================
// Defines
//==================================================================================
#ifdef TNCONTRL_EX... | [
"benjamin.barratt@icloud.com"
] | benjamin.barratt@icloud.com |
bef0c5ed3cc8a25cff91f2d869551db8e8a294ab | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/sync/engine/net/url_translator.cc | a6fffdfc0ff159fc67c465d6837543ac8ef760a7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | C++ | false | false | 1,455 | cc | // 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.
//
// Contains the definition of a few helper functions used for generating sync
// URLs.
#include "sync/engine/net/url_translator.h"
#include "net/b... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com |
4b820465acdcbb17daa367bfd94d867df5c38ab8 | 56fdf274afa0ecde4deacca0eb071b835e905ad7 | /WidgetsPlugin/wbaseqsswidget.cpp | 4bf86b8e97124f7de925871cd0fe13b4fc20da56 | [] | no_license | yang123vc/CompareFiles | 22f290a99d020496d4a0dbed106810c80c261b91 | 6a73ba3526a69d146d0569f98026ac9cc20be6cd | refs/heads/master | 2020-05-07T05:56:18.493026 | 2014-03-13T02:04:40 | 2014-03-13T02:04:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 372 | cpp | #include "wbaseqsswidget.h"
#include <QStyleOption>
#include <QPainter>
WBaseQssWidget::WBaseQssWidget(QWidget *parent) :
QWidget(parent)
{
}
void WBaseQssWidget::paintEvent(QPaintEvent *)
{
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, th... | [
"kevingeelong@gmail.com"
] | kevingeelong@gmail.com |
95de975bb2d20eb232e9b2e2f55a804425522481 | f13ae2aa1cc1c6b9788bd6abfef615bfee10aad2 | /practice9.cpp | 471b58df38ab9f0facfe20241bd3a24bcb369f21 | [] | no_license | AsylzhanUtegen/tasks | 4ffed44a6d6d0fefc0da2243f19ae37990e96e8f | 7fa5c0ee8ee09dee98e331a64828b4d836971d05 | refs/heads/master | 2020-09-12T15:59:49.406046 | 2019-11-23T08:10:59 | 2019-11-23T08:10:59 | 222,472,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 106 | cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int x = -2;
cout<<abs(x)+pow( x , 5 );
}
| [
"noreply@github.com"
] | AsylzhanUtegen.noreply@github.com |
bd1889fc12872a00f81ebc9f77d5f848d36bfdcc | c15238af82f9fc92d3b477b11b7cf67adc1bfdfe | /components/webapps/services/web_app_origin_association/web_app_origin_association_fetcher.h | 4b5b6cefadcd8443690aab3ea96c0893d60d17c5 | [
"BSD-3-Clause"
] | permissive | arukshani/chromium | 57198ff34331e1957c5e701be3f6b2eafa7e5d46 | fe705870d35ffda2b3dccdfca869a8d682686dc7 | refs/heads/master | 2023-03-05T01:08:46.018522 | 2021-02-16T03:02:46 | 2021-02-16T03:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,138 | h | // Copyright 2021 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.
#ifndef COMPONENTS_WEBAPPS_SERVICES_WEB_APP_ORIGIN_ASSOCIATION_WEB_APP_ORIGIN_ASSOCIATION_FETCHER_H_
#define COMPONENTS_WEBAPPS_SERVICES_WEB_APP_ORIGIN_AS... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
14647cd43a9c8af322bb13160878c881280180be | 6255cf7d057e7df9d23d22beadc28722267cef96 | /ToolCode/SolidBody.cpp | a3019624590744fd7354ee49279c37f58a0511e8 | [] | no_license | 15831944/ToolKits | 31749148daf71871e6225f66c9282bcda3d95db0 | f1700d7e1ca12a6c13c4d13663d48339093b6810 | refs/heads/master | 2020-08-28T10:07:33.176421 | 2019-09-28T05:30:15 | 2019-09-28T05:30:15 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 42,988 | cpp | #include "stdafx.h"
#include "HashTable.h"
#include "ArrayList.h"
#include ".\solidbody.h"
#ifndef _DISABLE_DEBUG_NEW_
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#endif
#ifndef _DISABLE_ALG_FUNC_
#include "f_alg_fun.h"
#else
//defined TidToolFunc.cpp
BOOL vector_tra... | [
"wjzhwht@hotmail.com"
] | wjzhwht@hotmail.com |
50a265d678776967cb5daf4e0ca20ef95e3e0813 | 38c10c01007624cd2056884f25e0d6ab85442194 | /third_party/WebKit/Source/core/frame/FrameView.cpp | 8b43865107c3c03ed3f4aef590f6580215115b9a | [
"BSD-3-Clause",
"BSD-2-Clause",
"LGPL-2.0-only",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-only",
"LicenseRef-scancode-other-copyleft"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | C++ | false | false | 148,257 | cpp | /*
* Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
* 1999 Lars Knoll <knoll@kde.org>
* 1999 Antti Koivisto <koivisto@kde.org>
* 2000 Dirk Mueller <mueller@kde.org>
* Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
* ... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
35d610807ccd79fa26105c58758f0a1d6c4d3c54 | 285fbc356602efb18868ad246563febdad741ddd | /lab1/src/invoice.cpp | 82190fa3621738700f67912dd665193875a12f01 | [] | no_license | ivansst/citb200 | b506e37c1d0c74d3bdd7205cb91eda228d024df1 | f2db9c2d5a3bafbccb7263e0d1bbf5e61d6e396b | refs/heads/master | 2020-05-05T10:06:56.465886 | 2019-04-07T09:50:12 | 2019-04-07T09:50:12 | 179,931,138 | 0 | 0 | null | 2019-04-07T07:22:11 | 2019-04-07T07:22:11 | null | UTF-8 | C++ | false | false | 318 | cpp | #include "invoice.h"
void Invoice::add(Product product, int quantity){
Item item(product, quantity);
this->items.push_back(item);
}
vector <Product>Invoice::getProduct(){
vector<Product> products;
for(auto item : items){
products.push_back(item.getProduct());
}
return products;
} | [
"ivan.sstoyanov@abv.bg"
] | ivan.sstoyanov@abv.bg |
93231030e60dc3003e8509b9376b2a2a73132fd0 | a3a7d5a213527237f649b1cd0e4052789fca6db3 | /BOJ/BOJ_5430_AC.cpp | 9d2479d42bd16b21983c9062f6ba7994e4adb88f | [] | no_license | yuchanleeme/Problem_Solving | 5d84cda878a674783d9b270f7cf17f73f552156a | b68960103702bbbbdcd156a1d13596acdb021dc2 | refs/heads/master | 2021-11-15T04:53:20.053863 | 2021-10-23T16:46:05 | 2021-10-23T16:46:05 | 185,592,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,330 | cpp | #include <iostream>
#include <deque>
#include <cstring>
using namespace std;
//https://www.acmicpc.net/problem/5430
/*
<AC>
주요: 덱 STL의 기능들을 활용한다.
1. strtok 기능을 이용해 입력값을 분해한다.
2. 덱의 성질(양방향 큐)을 이용해 R 입력을 받았을때 시작점을 맨앞/맨뒤로 설정한다.
3. D를 입력 받았을 때 reverse의 값에 따라 pop을 한다. (덱 비었는데 D 입력받으면 error_trigger True)
4. 위 상황에 맞게 출력한다.
=... | [
"yuchanlee.me@gmail.com"
] | yuchanlee.me@gmail.com |
4e81ca0682ec3c32a1e6d9c6753195da942323fa | 6a7ae2330c1e60d6e6e2c6236685f5b8fb953a05 | /XenonFramework2/XenonFramework2/XeCore/Photon/XenonCoreFrameBuffer.h | 613a3ced864719d1a3f2a7527e249a5fc5083391 | [] | no_license | PsichiX/XenonCore2 | f4a8bb74640c488f535a637583941f1a675bae52 | a875c255033ae4f0540e6316fb09711acd44e852 | refs/heads/master | 2020-12-24T16:50:18.511387 | 2013-09-29T12:44:28 | 2013-09-29T12:44:28 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,860 | h | /*
Name: XenoN Core 2
Version: 2.0.0.0 Frozen Eye
Update: 2011-06-04
Copyright: Copyright © 2007-2011 XenoN Core by PsichiX. All rights reserved.
Author: PsichiX
Website: http://www.xenon.psichix.com
Description: XenoN Core 4D World Engine
*/
/*
== EN ==
This file is part of Xenon Core Engine.
You m... | [
"pbudzynski@ganymede.eu"
] | pbudzynski@ganymede.eu |
ce53ab194fab6ecfade27c7131e6b1c9013c8b87 | 28fa0efd16cb126f86a04164c93e715ad95da44d | /repartiendoPaquetes/repartiendoPaquetes/repartiendoPaquetes.cpp | 5397ebd0bd496bb23dcbd07bf5f25764fa0d3582 | [] | no_license | pamart24/MARP_2021 | b4004efb8a260dcc738883852038cb1582a1950e | 09997f23de49514953cb7319d020ef545d6f3c88 | refs/heads/main | 2023-06-05T08:20:02.961399 | 2021-06-27T17:38:10 | 2021-06-27T17:38:10 | 380,794,764 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,901 | cpp | #include <iostream>
#include <fstream>
#include "DigrafoValorado.h"
#include "IndexPQ.h"
using namespace std;
class Reparto {
public:
Reparto(DigrafoValorado<int> const& g, int origen) : origen_(origen),
dist(g.V(), INF), numCaminos(g.V(), 0), ulti(g.V()), pq(g.V()) {
dist[origen_] = 0;
num... | [
"pamart24@ucm.es"
] | pamart24@ucm.es |
bbfce0a870f1e66370e437b6c7c7a066d47ab279 | 0d666be1446398c359aa4a8ed5c2adaebc1da4a1 | /OverlordProject/PostProcessingBluePulse.cpp | af0ecb222b68fc3f6407f990c45a6a21d68e3dc9 | [] | no_license | AliyevRufat/GhostOfFuji | 76aa88f5b43b12c02ddc397da538f17d2c1a4f13 | a445749b5b94baa9a82df6b2b2befc01457986e9 | refs/heads/master | 2023-08-19T09:10:32.904068 | 2021-10-08T15:24:43 | 2021-10-08T15:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,489 | cpp | #include "stdafx.h"
#include "PostProcessingBluePulse.h"
#include "RenderTarget.h"
ID3DX11EffectScalarVariable* PostProcessingBluePulse::m_pElapsedTime = nullptr;
PostProcessingBluePulse::PostProcessingBluePulse()
: PostProcessingMaterial(L"Resources/Effects/Post/BluePulse.fx", 1),
m_pTextureMapVariabele(nullptr),
... | [
"76409612+AliyevRufat@users.noreply.github.com"
] | 76409612+AliyevRufat@users.noreply.github.com |
668fa8d2a291df9b5ed4201fff498133c136385c | 0412add6cf24d7874738b2151c000763046a1acf | /1-4/mori/main.cpp | 08213287ddaa852224ce416a9bdd9ec16e4acf3e | [] | no_license | atupii/cpp-exercise | 01aa1659c3cc147f1f9795df391dfeaea0844cb7 | 027f4c2e093b703cfbd316c89f867de9c19d35fc | refs/heads/master | 2021-01-21T07:53:48.567074 | 2013-11-22T04:17:51 | 2013-11-22T04:17:55 | null | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 666 | cpp | #include <iostream>
#include <string.h>
using namespace std;
void rev_str(char* s1);
void rev_str(char* s1, char* s2);
int main(void){
char s1[80], s2[80];
strcpy_s(s1, "hello");
rev_str(s1, s2);
rev_str(s1);
return 0;
}
void rev_str(char* s1){
cout << "入力:" << s1 << endl;
int l = strlen(s1);
char tmp;... | [
"matsuda@m.cs.osakafu-u.ac.jp"
] | matsuda@m.cs.osakafu-u.ac.jp |
175cd86245ceecce35654132a0d0e5d15d59627c | 43ebc2797b2cc3ae384e77d9d766c25e6def8a55 | /parser.h | 7472310663405e5c70fbd764f759606436f364ba | [] | no_license | tstaerk/Spider | cb283690fb03f918cb1701270fa472fab5134d41 | 1edcf5e67ad643d048b53187f49bc874cb0d7844 | refs/heads/master | 2020-06-02T09:54:51.128298 | 2010-07-22T21:17:27 | 2010-07-22T21:17:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 984 | h | /*
parser.h - demonstration of a parser in C++
*/
#ifndef PARSER_H
#define PARSER_H
#include <qstring.h>
#include <QtXml/QXmlDefaultHandler>
#include <QtXml/QXmlAttributes>
class Parsert : public QXmlDefaultHandler
{
public:
Parsert();
/** given by the framework from qxml. Called when parsing the xml-document ... | [
"dev@staerk.de"
] | dev@staerk.de |
c4952e09c133bd451dadc380d2e63fbda8560992 | b84b2089bdb2a9fa7200628a604ac9bec62042b4 | /booking.cpp | 5bdc4ff4668fce431ed57af8767fc5586af159d1 | [] | no_license | sidrusiya/CP-AlgorithmsSol | 76de7022bf7a00f0193e0fd55fd7ebc250551e01 | 57e89811abf533a86c3da14836519d74f289fc80 | refs/heads/master | 2023-02-24T03:46:46.561341 | 2021-01-29T15:30:30 | 2021-01-29T15:30:30 | 259,416,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 371 | cpp | #include<iostream>
using namespace std;
#include<vector>
bool hotel(vector<int> &A,vector<int> &D,int k){
return true;
}
int max(int A){
int p=0;
for(int i=1;5*i<=A;i++){
if(i%5==0)p+=1;
p+=1;
}
return p;
}
int main(){
vector<int> A={1,3,6};
vector<int> D={2,5,9};
int k... | [
"noreply@github.com"
] | sidrusiya.noreply@github.com |
70c64ba48f17d03fcd0bc61a6095db2dd5d33fc8 | 405d989f9ca3e3c8942934a36c92eeffdbfcf1b4 | /soundex/spellcheck.cpp | 5c3bc963321fe98df38808a50f3801196b57a02d | [] | no_license | flavorlessfunk/cs361 | 10294bbf23f75d268488c4764c6141e9286df851 | a6768fb5d18d7a85baac64ba6ac2e80aa90b589c | refs/heads/master | 2021-01-20T08:54:25.562473 | 2017-05-03T23:09:01 | 2017-05-03T23:09:26 | 89,802,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,433 | cpp | // Spellcheck program
#include <fstream>
#include "wordoccurrence.h"
#include "correction.h"
#include "replacement.h"
#include "cs361set.h"
#include <vector>
#include "vectorUtils.h"
#include "replchoices.h"
typedef CS361Set<std::string> WordSet;
typedef CS361Set<Replacement> ReplacementSet;
typedef std::vector<Wo... | [
"flavorlessfunk@gmail.com"
] | flavorlessfunk@gmail.com |
17d47d7a1ecf43b6f5fdf5e9042541e0f5720efa | b81d83148470223d1a9716d694d1507254ab7183 | /os/fstools.cpp | 6fe46d7a53f5211cb803885630fb23299f6fdc44 | [
"MIT"
] | permissive | vheinitz/cl2 | 724860096cd526f8bd3ca338cba6c3999113a44d | d66b9ce8248126575984f1ade3e56bd01b2926fa | refs/heads/master | 2021-01-19T00:54:45.579851 | 2019-10-21T03:41:19 | 2019-10-21T03:41:19 | 33,274,465 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,521 | cpp | #include "fstools.h"
#include <QIODevice>
#include <QTextStream>
#include <QFile>
#include <QMessageBox>
#include <QDir>
#include <QFileInfoList>
QString FSTools::readAll( QString fn)
{
QFile f(fn);
if(!f.open(QIODevice::ReadOnly))
return QString::null;
return f.readAll();
}
QStringList... | [
"vheinitz@googlemail.com"
] | vheinitz@googlemail.com |
82c92ad363545f425e86eebf2351e0d245c9a63d | d4039b212a1b99993ee7ee7a38723d1c81fdf335 | /endofgame.cpp | b60cf8361d7c919e29a94f6cccd31915b084e3e1 | [] | no_license | evster-coder/mafia-project | 2682a081f39e3ac49b86f128db917551209e0372 | 76f8a5a68b6e634ac985f2569a167d3fdfa7bf48 | refs/heads/master | 2020-06-15T14:54:26.376291 | 2019-07-05T02:32:40 | 2019-07-05T02:32:40 | 195,326,052 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | #include "endofgame.h"
#include "gamefield.h"
EndOfGame::EndOfGame(){
}
EndOfGame::~EndOfGame(){}
QVector<QString> EndOfGame::doWork(){
return *GameField::GetInstance()->endOfGame();
}
void EndOfGame::nextStage(GameStep *&ukazatel){
GameStep *tmp = ukazatel;
delete tmp;
ukazatel = nullptr;
... | [
"noreply@github.com"
] | evster-coder.noreply@github.com |
21b30cb007187537f8a161ba0699fd39bfc863cb | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium/chrome/browser/download/download_util.cc | c8b88c2500f27fe22a0b3d0ceaad2d21927c2790 | [
"MIT",
"BSD-3-Clause"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 33,096 | cc | // Copyright (c) 2011 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.
//
// Download utility implementation
#include "chrome/browser/download/download_util.h"
#if defined(OS_WIN)
#include <shobjidl.h>
#endif
#include <s... | [
"karun.matharu@gmail.com"
] | karun.matharu@gmail.com |
384770f028c235865127b96c9c7bc192cbd2677b | e8a3c0b3722cacdb99e15693bff0a4333b7ccf16 | /Uva Oj/10550..combination lock.cpp | 6080a976b70bc7f43d412185df4cdd980f002cdf | [] | no_license | piyush1146115/Competitive-Programming | 690f57acd374892791b16a08e14a686a225f73fa | 66c975e0433f30539d826a4c2aa92970570b87bf | refs/heads/master | 2023-08-18T03:04:24.680817 | 2023-08-12T19:15:51 | 2023-08-12T19:15:51 | 211,923,913 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int in, a, b, c, angle, sum;
while(scanf("%d %d %d %d",&in, &a, &b, &c) == 4 && (in != 0 || a != 0 || b != 0 || c != 0)){
sum = 0;
if(a > in){
sum += (40 -a) + in;
}
else{
sum += (in - a);... | [
"piyush123kantidas@gmail.com"
] | piyush123kantidas@gmail.com |
71c7c1b0cf5baa394f2da8a1d52f9397774d0abd | 05f7573db159e870fb26c847991c4cb8c407ed4c | /VBF/3rdParty/3rdParty_vs2010_x86/include/ifcpp/IFC4/IfcFan.h | 57696e50d93720a4b656b90e8454671cd36309b5 | [] | no_license | riyue625/OneGIS.ModelingTool | e126ef43429ce58d22c65832d96dbd113eacbf85 | daf3dc91584df7ecfed6a51130ecdf6671614ac4 | refs/heads/master | 2020-05-28T12:12:43.543730 | 2018-09-06T07:42:00 | 2018-09-06T07:42:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,396 | h | /* -*-c++-*- IfcPlusPlus - www.ifcplusplus.com - Copyright (C) 2011 Fabian Gerold
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* include... | [
"robertsam@126.com"
] | robertsam@126.com |
72a44cba456ed416a20017aedfd6afda16cae07d | c68dd7c0a2305e4f856d7ba52b65deb5d1a5cc63 | /distributions/univariate/discrete/BinomialRand.h | 4177d697ceff408c33b4ad6e39267ba4c4c1fadf | [
"MIT"
] | permissive | aWeinzierl/RandLib | 10fe613fa61b0d1ccf50849074f3683ae9e8497c | 7af0237d1902aadbf2451b7dfab02c52cf98ae87 | refs/heads/master | 2020-04-13T01:58:21.352337 | 2019-01-14T23:15:31 | 2019-01-14T23:15:31 | 162,889,038 | 0 | 0 | MIT | 2018-12-23T12:32:13 | 2018-12-23T12:32:12 | null | UTF-8 | C++ | false | false | 4,603 | h | #ifndef BINOMIALRAND_H
#define BINOMIALRAND_H
#include "DiscreteDistribution.h"
#include "GeometricRand.h"
#include "../continuous/BetaRand.h"
/**
* @brief The BinomialDistribution class <BR>
* Abstract class for Binomial distribution
*
* Notation: X ~ Bin(n, p)
*
* Related distributions: <BR>
* If X ~ Bin(1, ... | [
"samarin_ad@mail.ru"
] | samarin_ad@mail.ru |
44bb6d005c0ce784591c193d247acc83e635e4cc | d0fb46aecc3b69983e7f6244331a81dff42d9595 | /ens/include/alibabacloud/ens/model/CreateMountTargetRequest.h | bda56cf6cc6cc264814097144c9d1246f059c113 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-cpp-sdk | 3d8d051d44ad00753a429817dd03957614c0c66a | e862bd03c844bcb7ccaa90571bceaa2802c7f135 | refs/heads/master | 2023-08-29T11:54:00.525102 | 2023-08-29T03:32:48 | 2023-08-29T03:32:48 | 115,379,460 | 104 | 82 | NOASSERTION | 2023-09-14T06:13:33 | 2017-12-26T02:53:27 | C++ | UTF-8 | C++ | false | false | 1,759 | h | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
da04ed924a2cb470ac03c9cd4049006dcf3294c5 | 2da16a51129d1639698641649cf5ec113fed07ff | /scada/ControlSubSystem/calibration.h | 36a0631f620e56d28d3c964aac29adf42643f35d | [] | no_license | robsonadem/Supervisory-Control-and-Data-Acquisition-System | 3b807d60d06a8fc1ceecc767c54dd5050de3ed26 | 2f25cc7212919b803d887032dd12e4fb2f572a6e | refs/heads/master | 2020-03-29T01:38:51.951169 | 2018-09-19T06:05:12 | 2018-09-19T06:05:12 | 149,399,448 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,057 | h | #ifndef CALIBRATION_H
#define CALIBRATION_H
#include <iostream>
#include <vector>
#include "../DMS/dms.h"
#include "../DMS/table.h"
/**
Purpose: Calibration Class that stores an ID, Type, and the coeffeicients of the calibration type
It also takes in data from DMS and calibrates it with the given the t... | [
"noreply@github.com"
] | robsonadem.noreply@github.com |
15b0dce6f69f5c6e9de3c221e7f5227d16af39b3 | 8117773d24f922aac3d80d04392f62f74aab1f8c | /node_modules/react-native-windows/Chakra/ChakraHelpers.cpp | 7bb576f115eb4d4b5dd67829e91fd9d05804f5bc | [
"MIT"
] | permissive | micarthur/wend | bb7b34c8137ff2cfdad8a22d5e8565497be877b3 | dcf44ba1d5968958d39e69c86367b4ca038aca98 | refs/heads/main | 2023-05-13T19:04:10.169152 | 2021-06-11T19:28:35 | 2021-06-11T19:28:35 | 374,455,909 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,866 | cpp | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "ChakraHelpers.h"
#include "ChakraUtils.h"
#include "ChakraValue.h"
#include "Unicode.h"
#ifdef WITH_FBSYSTRACE
#include <fbsystrace.h>
#endif
#include <folly/Memory.h>
#include <folly/String.h>
#inc... | [
"micarthur@utexas.edu"
] | micarthur@utexas.edu |
8e06dce2632a0eaff6de25cff1fd9730523d3194 | 593cbbaa04cd806fa8b9f4a1cf0d1d74db1d54bc | /UVa/12157.cpp | 13f4f2c30fe4665fbfc85dee1fff0a19154d83dc | [] | no_license | Alissonrgs/competitive-programming | 2e6c0368e24f11ac9d78400c0141a63c5b498a27 | 70b11068902e719345d6c4941e9a243b85e17160 | refs/heads/master | 2021-01-12T11:03:27.915190 | 2017-08-09T22:56:54 | 2017-08-09T22:56:54 | 72,805,220 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 824 | cpp | #include <bits/stdc++.h>
using namespace std;
int mile( int time ) {
int ans = (time+1)/30;
if( (time+1)%30 != 0 )
ans++;
return 10*ans;
}
int juice( int time ) {
int ans = (time+1)/60;
if( (time+1)%60 != 0 )
ans++;
return 15*ans;
}
int main() {
int t, n, time, m, j;
... | [
"alissonrgs1993@gmail.com"
] | alissonrgs1993@gmail.com |
84896b99b5b75cf9833f0dd13bf52557aaeaac90 | 410e45283cf691f932b07c5fdf18d8d8ac9b57c3 | /chrome/browser/web_applications/web_app_install_task.h | a62cc72e10af51694d6737cf0689967bc8ef303d | [
"BSD-3-Clause"
] | permissive | yanhuashengdian/chrome_browser | f52a7f533a6b8417e19b85f765f43ea63307a1fb | 972d284a9ffa4b794f659f5acc4116087704394c | refs/heads/master | 2022-12-21T03:43:07.108853 | 2019-04-29T14:20:05 | 2019-04-29T14:20:05 | 184,068,841 | 0 | 2 | BSD-3-Clause | 2022-12-17T17:35:55 | 2019-04-29T12:40:27 | null | UTF-8 | C++ | false | false | 5,068 | h | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_INSTALL_TASK_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_WEB_APP_INSTALL_TASK_H_
#include <memory>
#inclu... | [
"279687673@qq.com"
] | 279687673@qq.com |
c658143db035c463f4997427622ab6060dbdad48 | 1a66e03b11ec7a2967e5dda4b64702ae9d2f6f52 | /cf/jai/difdel.cpp | e9722410cff2ddec09de11bc7d4a4195ddb409f6 | [] | no_license | Bonaparto/CPP-Codes | 42dda7470788a151ef542dd49bcd33097d477ecb | 7ae23eee1f41ca2d130ad94fd69686b0aad13677 | refs/heads/main | 2023-08-04T07:33:53.859954 | 2021-10-02T17:21:00 | 2021-10-02T17:21:00 | 347,952,241 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | cpp | #include <iostream>
#include <vector>
using namespace std;
int main(){
int n;
cin >> n;
vector <int> v;
for(int i = 0; i < n; ++i){
int x; cin >> x;
if(x == 1) cout << 6 << endl;
if(x == 2) cout << 15 << endl;
}
} | [
"mibuhic773@mail.ru"
] | mibuhic773@mail.ru |
4b3b46f15971d91f99ba31488a831dace8957b53 | 06a6763623f9d17f0194c1b3c480f1ef89b93e34 | /Engine/Graphics.h | 8bf138261e7818cc4f4789841dac21c74abb6ad8 | [] | no_license | briantalbert/snake | d00f37e74c3a148bbaffdd93f1504b1b3a6f9a14 | 83f89313e89f90be696ba709bfca34d2d3b8c322 | refs/heads/master | 2022-12-05T15:43:30.203745 | 2020-08-19T11:42:02 | 2020-08-19T11:42:02 | 288,714,664 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,385 | h | /******************************************************************************************
* Chili DirectX Framework Version 16.07.20 *
* Graphics.h *
* Copyright 2016 PlanetChili <http://www.planetchili.net> *
* *
* This file is part of The Chili DirectX... | [
"BrianLTalbert@gmail.com"
] | BrianLTalbert@gmail.com |
0827298d387992d06cba7dd4743b905cf2b5436c | 3eb8e65f8ff4c9c2b7ce96d735229b2cfa4b596b | /Helper/doFuncChangeBoss.cpp | 767f32e78e21a83f79cd56c37742ee85be516455 | [
"Apache-2.0"
] | permissive | openlastchaos/lastchaos-source-server | 778d44cb2af1cb8fec646c50ae362224124133ac | 935b770fa857e67b705717d154b11b717741edeb | refs/heads/master | 2023-06-24T11:10:21.088498 | 2021-07-31T21:49:40 | 2021-07-31T21:49:40 | 391,469,204 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 4,640 | cpp | #include <boost/format.hpp>
#include "stdhdrs.h"
#include "Server.h"
#include "doFunc.h"
#include "CmdMsg.h"
#include "Log.h"
bool do_GuildBossChange(int _guildIndex, int _newBoss)
{
CGuild* guild = gserver.m_guildlist.findguild(_guildIndex);
if (!guild)
{
GAMELOG << init("GUILD MASTER AUTO CHANGE")
<< "ERRO... | [
"openlastchaos@protonmail.com"
] | openlastchaos@protonmail.com |
e9629d0d5a09335b3b9bc7262570f98e7458f9e6 | fe06b6d602595b147ea4e8bbcbdd2a2e25d6e2ab | /1_star/11577.cpp | 6068ece2c9a3899cd6250f2ff26e2d269b4f17f8 | [] | no_license | lausai/UVa | 8c4a86785d5c561bb9d464466b60bdf4e993757c | fb14b6f9031a449e20830d5f0903a06a8899dfa5 | refs/heads/master | 2022-10-17T12:49:02.561369 | 2022-09-23T03:02:50 | 2022-09-23T03:02:50 | 20,293,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,274 | cpp | #include <cstdio>
#include <cctype>
#include <cstring>
using namespace std;
int main()
{
int num_of_data = 0;
scanf("%d\n", &num_of_data);
for (int i = 0;i < num_of_data; i++) {
char str[256] = {0};
fgets(str, 255, stdin);
const char* eng = "... | [
"lausai360@gmail.com"
] | lausai360@gmail.com |
e899c32eb117bbf25d47dff2b5a1f9e9d706a2a6 | ad62d5a6236c35d71a647802cf4d6d2ead2558a8 | /src/Rpc/RpcServerConfig.h | 29fbb209c1ec9d71a9c869d42d79c11c9903ea56 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | cycere/quid | 7af570e6d2fd6a8e4cbd5c5253060c76c488bd72 | 889b5bd36339d4e632c07a037db9ba38bf89ea30 | refs/heads/master | 2023-01-21T22:13:08.580206 | 2020-12-01T00:00:40 | 2020-12-01T00:00:40 | 316,043,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | h | // Copyright (c) 2011-2016 The Cryptonote developers
// Copyright (c) 2017-2021 The Cycere developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <boost/program_options.hpp>
namespace Quid {
clas... | [
"cycereorg@gmail.com"
] | cycereorg@gmail.com |
81f21393ee48ec9461c3fa9ba6429a230bbe39c7 | f981ae929651ada228fed2dcd183b62b140b2327 | /Util/OSM2ODR/src/netimport/vissim/typeloader/NIVissimSingleTypeParser_Fensterdefinition.cpp | 61e7f1cad2938bca17559932b300ead71a0a5085 | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0",
"MIT",
"LGPL-2.1-only",
"EPL-2.0"
] | permissive | supavit-siriwan/carla | 33e34dd9dec997a489092f03491997a479184bfa | bdcb04b9c39c2de2b0f9e654350217898b49dbb7 | refs/heads/master | 2021-07-10T19:15:14.856303 | 2020-11-19T05:51:10 | 2020-11-19T05:51:10 | 213,990,039 | 1 | 0 | MIT | 2020-11-19T05:51:12 | 2019-10-09T18:09:34 | null | UTF-8 | C++ | false | false | 2,243 | cpp | /****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2001-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... | [
"bernatx@gmail.com"
] | bernatx@gmail.com |
9b7f157d3c6001eee7cd92b98895b44055911ddc | 98c9ea8ef935819cd6c957c2ea560a2d97f3dd6b | /LSL/liblsl/lslboost/boost/serialization/nvp.hpp | 0c7e8fd9cd1002d54a52388cdc9fbf7ebc6cb59a | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | gisogrimm/labstreaminglayer | dd9c18f1e50d22df4902a938135c9a958c6bd1c1 | c7b12d1f0f3487a04bba6081be7e5122af10aafe | refs/heads/master | 2020-12-25T00:05:40.953942 | 2018-06-15T12:38:15 | 2018-06-15T12:38:15 | 51,507,985 | 2 | 0 | null | 2018-06-15T12:34:28 | 2016-02-11T10:33:59 | C++ | UTF-8 | C++ | false | false | 3,556 | hpp | #ifndef BOOST_SERIALIZATION_NVP_HPP
#define BOOST_SERIALIZATION_NVP_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// nvp.hpp: interface for serialization system.
// (C) Copyright 2002 Rob... | [
"derstenner@gmail.com"
] | derstenner@gmail.com |
f57d7eb9791ef73407d06de862401a5c6867a0de | 8ae31e5db1f7c25b6ce1c708655ab55c15dde14e | /比赛/学校/2019-10-26测试/source/std/city/city2.cpp | ebff9e60220762031615af03e7ef15b4039836e1 | [] | no_license | LeverImmy/Codes | 99786afd826ae786b5024a3a73c8f92af09aae5d | ca28e61f55977e5b45d6731bc993c66e09f716a3 | refs/heads/master | 2020-09-03T13:00:29.025752 | 2019-12-16T12:11:23 | 2019-12-16T12:11:23 | 219,466,644 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,610 | cpp | #include<bits/stdc++.h>
using namespace std;
const int N=305;
int n,m,res[N],ans[N][N],a[N*N],cnt;
bool use[N*N];
int read()
{
char c=getchar(); int f=1,x=0;
while (!isdigit(c)) {if (c=='-') f=-1; c=getchar();}
while (isdigit(c)) {x=x*10+c-'0'; c=getchar();}
return f*x;
}
void check(int x)
{
memse... | [
"506503360@qq.com"
] | 506503360@qq.com |
7016951bd42d12e31e8df8e50b2137d84814597b | fc56fa52dcd40a640237be19b3faeb7c4339f4ea | /meta-heuristics-1.3/meta-heuristics-1.3/EDA/edaSeqWorker.h | 1ef7ea7351f30f08b5ec1c646165e90b044461ca | [] | no_license | nghiabui/Metaheuristic | 592e9b4c25cfd11f5fa610031141c6b8186f90fb | 9852941f9fde6981a15e1897b046b07f205d0adb | refs/heads/master | 2021-01-10T18:49:27.746091 | 2015-08-20T02:44:48 | 2015-08-20T02:44:48 | 40,337,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,280 | h | /*
* File: edaSeqWorker.h
* Author: Tieu Minh
*
* Created on April 11, 2014, 11:31 AM
*/
#ifndef EDASEQWORKER_H
#define EDASEQWORKER_H
#include "edaObject.h"
#include "edaBuffer.h"
#include "edaSearch.h"
class edaSeqWorker : public edaObject
{
public:
edaSeqWorker() :_search(NULL)
{
}... | [
"buitrungngnhia_2310@yahoo.com.vn"
] | buitrungngnhia_2310@yahoo.com.vn |
2664eea26d825f824732ec703f1369db6e244a8a | 250fb2c3c0926aec2e67924e631c8b17f5b78611 | /codeforces.com/abby/e1.cpp | f3a580fbf6bc1e95295bc8bef20c65f94d065d19 | [] | no_license | bayram53/online-judge | bc30b4bdb81ce20dff3c86cac1452f8cfdc26747 | de333b60cb78c956a51a0ebdd25ef6e399d2a2d7 | refs/heads/master | 2021-05-26T13:29:58.378783 | 2013-12-13T08:57:01 | 2013-12-13T08:57:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | cpp | # include <stdio.h>
# include <iostream>
# define mod 1000000000
using namespace std;
typedef long long llint;
int n,m,a,b,k;
char c;
llint d[109];
llint f[200009];
int main()
{
f[0] = f[1] = 1;
for(int h=2; h<200001; h++) f[h] = f[h-1]+f[h-2] , f[h] %= mod;
scanf("%d %d",&n,&m);
for(int h=1; h<=n; h+... | [
"berdiyevbayram@gmail.com"
] | berdiyevbayram@gmail.com |
09bf60c351fe16a53f9e11796e7927b8139e6ddc | 1302a788aa73d8da772c6431b083ddd76eef937f | /WORKING_DIRECTORY/system/connectivity/shill/mock_connection_health_checker.h | 062c6bb1f6d0a82f82a154405425182f054ca09f | [
"Apache-2.0"
] | permissive | rockduan/androidN-android-7.1.1_r28 | b3c1bcb734225aa7813ab70639af60c06d658bf6 | 10bab435cd61ffa2e93a20c082624954c757999d | refs/heads/master | 2021-01-23T03:54:32.510867 | 2017-03-30T07:17:08 | 2017-03-30T07:17:08 | 86,135,431 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,523 | h | //
// Copyright (C) 2013 The Android Open Source Project
//
// 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 app... | [
"duanliangsilence@gmail.com"
] | duanliangsilence@gmail.com |
c912c17c2892f111bce59f39219f8a0b69a24dd6 | b0cbf0f3f537cfe9f1985ce0c5ef9606718900ee | /NvrControl/NvrControl/C_constDef.h | b28cc8c8d97a1a2619876bf67db6cbf918ce55e6 | [] | no_license | shifuxiang/NvrControl | d9b8a48d48cdf4ebad65b5a75b4cc8e6c7bd3d98 | 38bd7c943fc31e369eee4c84bc3e40b20ccdd8e2 | refs/heads/master | 2020-12-30T18:02:37.460316 | 2017-06-23T07:27:36 | 2017-06-23T07:27:36 | 90,943,528 | 0 | 1 | null | null | null | null | GB18030 | C++ | false | false | 7,388 | h | //@file:C_constDef.h
//@brief: 包含各种状态信息定义。
//@author:luyan@oristartech.com
//dade:2014-09-12
#ifndef IMONITOR_CONST_DEFINE
#define IMONITOR_CONST_DEFINE
#include "threadManage/C_CS.h"
#include <vector>
#include <string>
#include <map>
//const define
// 线程池中线程的个数。
const int THREAD_COUNT_IN_POOL = 20;
//任务ID
const i... | [
"591317029@qq.com"
] | 591317029@qq.com |
270b0bae251f4f5fe8a606adb4b852ed06735b71 | 8f02939917edda1e714ffc26f305ac6778986e2d | /BOJ/8094/main.cc | 71b1742974522fe540a5b80d6840864613083b44 | [] | no_license | queuedq/ps | fd6ee880d67484d666970e7ef85459683fa5b106 | d45bd3037a389495d9937afa47cf0f74cd3f09cf | refs/heads/master | 2023-08-18T16:45:18.970261 | 2023-08-17T17:04:19 | 2023-08-17T17:04:19 | 134,966,734 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | cc | #include <bits/stdc++.h>
#define endl "\n"
using namespace std;
using lld = long long;
using pii = pair<int, int>;
using pll = pair<lld, lld>;
////////////////////////////////////////////////////////////////
int n, w, cnt[201];
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
///////////////////... | [
"queued37@gmail.com"
] | queued37@gmail.com |
6ac602cb71c3370fb5bde3e170138f77ef8e80f3 | 2a7b6bcc05a71a65caf48aa05de5d590811d4c81 | /include/deemon/cxx/set.h | e5b9633f1ba57ff15fe25ac8a52059d7c9d11ee3 | [
"Zlib"
] | permissive | GrieferAtWork/deemon | 339281627990604fd0acfc534b8fb7751d84894e | 3f9cd7ae815b8b42bd931d9d3ef6adf5656ca074 | refs/heads/master | 2023-08-31T09:33:57.382088 | 2023-08-19T15:14:13 | 2023-08-19T15:14:13 | 143,714,050 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,653 | h | /* Copyright (c) 2018-2023 Griefer@Work *
* *
* This software is provided 'as-is', without any express or implied *
* warranty. In no event will the authors be held liable for any damages *
... | [
"GrieferAtWork@users.noreply.github.com"
] | GrieferAtWork@users.noreply.github.com |
1f1c8ed404551446a67b91ea45032d2ff301aa6a | 7b6a3645ecb98f7a820cd1345250a3d85424a20f | /transient_rendering_cython/smoothed_transient/stratifiedStreamedTransientRenderer.cpp | 40db0fa56d6e68f82b063eace7138ec7d18594b2 | [] | no_license | cmu-ci-lab/nlos_surface_optimization | d506f643fbcf863b29012d5d35614c9f00b67e13 | a61f76d7c09a4bf5e05961694cb0ca849ac1fd2c | refs/heads/master | 2020-06-03T05:14:45.513729 | 2019-10-13T01:05:49 | 2019-10-13T01:05:49 | 191,455,676 | 18 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 5,091 | cpp | /*
* stratifiedStreamedTransientRenderer.cpp
*
* Created on: Aug 28, 2018
* Author: igkiou
*/
#include "stratifiedStreamedTransientRenderer.h"
/* include embree API */
#include <embree3/rtcore.h>
#include "transient_and_gradient.h"
using namespace embree;
/* vertex and triangle layout */
struct Vertex {... | [
"igkiou@gmail.com"
] | igkiou@gmail.com |
90ca6a494fda0f49b028932bcd277627d255911c | 797183a612a81f7acd261f1a42da0866c5896929 | /Questions/RotateImage/RotateImage.cpp | ca0b1c03c6f0889481d0db6a712b7b830ffdcbe5 | [] | no_license | ArronLin/LeetCode | bd1812fc7b48f4872943c47c9869232a884987ce | b3de62cf63ff90eb567f70b6f7e9f32834ca5cc1 | refs/heads/master | 2016-09-06T00:53:08.317925 | 2015-05-07T09:58:01 | 2015-05-07T09:58:01 | 30,632,755 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 875 | cpp | #include "common.h"
class RotateImage {
public:
void rotate(vector<vector<int> > &matrix) {
int rows = matrix.size();
if(rows == 0) return;
int cols = matrix[0].size();
if(cols == 0 || rows != cols) return;
for(int ilevel = 0; ilevel < rows / 2; ++ ilevel) {
int lCount = rows - 1 - 2 * ilevel;
for(int... | [
"linmartrix@163.com"
] | linmartrix@163.com |
edbdd91927c53b476989ee7b2a1367502ac839e7 | f0a323bdffc2ff978ffb3f8b8aeb8355215ba976 | /src/phase/signals/SignalMask.hpp | 1ad5201bbe54aaa3a5555805dfe72c5c9b3a9c54 | [] | no_license | unsip/cpp_study | 49e43d13cf5f73909ba7f91a67513a6d0c19aa89 | 183b7a70816a44e5cb2647249a4261aef65192b7 | refs/heads/master | 2021-10-25T23:10:47.487821 | 2021-10-24T21:11:20 | 2021-10-24T21:11:20 | 192,588,958 | 0 | 1 | null | 2021-10-08T23:08:04 | 2019-06-18T17:59:01 | C++ | UTF-8 | C++ | false | false | 886 | hpp | #pragma once
#include <memory>
namespace phase::signals {
namespace Sig {
// TODO: Extend signal set.
// Note: Should be the same order as sig_mapping (see cpp).
enum Sig
{
interupt = 0
, terminate = 1
};
namespace detail {
struct AllSignalsTag {};
struct NoSignalsTag {};
} // namespace phase::signals::Sig::de... | [
"unsip@protonmail.com"
] | unsip@protonmail.com |
545cbed5e7020a5cd49e77df93da7986bf7842df | 3303311159acd506337eccc0f59ab6a7dc141141 | /src/extensions/ewcMqtt.cpp | fa66ff8d2b55712e767a5ca8405d016fd3fb13a5 | [
"Apache-2.0"
] | permissive | atiderko/espwebconfig | ae6c40220dbf16305c652e7000be3268d58cacd9 | 756deb3b26ffe7950e2f8eab2591a420a40a7e01 | refs/heads/master | 2023-01-07T15:42:12.142469 | 2020-11-01T13:28:41 | 2020-11-01T13:28:41 | 294,080,157 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,746 | cpp | /**************************************************************
This file is a part of
https://github.com/atiderko/espwebconfig
Copyright [2020] Alexander Tiderko
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 ... | [
"alexander.tiderko@gmail.com"
] | alexander.tiderko@gmail.com |
39789c01ae521c7247758e687c6cdf5deb8156b8 | 41b4adb10cc86338d85db6636900168f55e7ff18 | /aws-cpp-sdk-rds/source/model/RemoveTagsFromResourceRequest.cpp | 828870e08bcbde1e71c5190106a3df5965900457 | [
"JSON",
"MIT",
"Apache-2.0"
] | permissive | totalkyos/AWS | 1c9ac30206ef6cf8ca38d2c3d1496fa9c15e5e80 | 7cb444814e938f3df59530ea4ebe8e19b9418793 | refs/heads/master | 2021-01-20T20:42:09.978428 | 2016-07-16T00:03:49 | 2016-07-16T00:03:49 | 63,465,708 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,481 | cpp | /*
* Copyright 2010-2016 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" file... | [
"henso@amazon.com"
] | henso@amazon.com |
8381518d4a9b7be0e02fbb5e7b179f2ba1815907 | 355bdee293d572f3b01f9de7a96d8a11ff3df7e7 | /Framework/Source/Sample.cpp | b0b493d8d79f07ff684bffd4795c7a19aa7f6462 | [] | no_license | Samana/Falcor | 0584ebd08f7abb8791d4e55d62524953617ab103 | 90c54e94dd4320bb7166b8c01766a2ddbd7d7222 | refs/heads/master | 2021-01-18T20:48:11.022229 | 2017-08-17T00:28:55 | 2017-08-17T00:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,946 | cpp | /***************************************************************************
# Copyright (c) 2015, NVIDIA CORPORATION. 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 sourc... | [
"kyao@nvidia.com"
] | kyao@nvidia.com |
3320a6b72e5b0106d36322c5d7bfda792016b720 | 20eecbc18ea852471af58f2a9da2fd2e0b012d3e | /C++11/Unique-Ptr.cc | 1dd46a582ed47453fcfacf06ea0d01a4eb3e8a74 | [] | no_license | pallavsingh/CPP17 | 48a57d11981bab7f5dcacc542c622838de47791e | f5084d940fdad32522232af13b08e6bdbe766ecf | refs/heads/master | 2021-05-02T16:47:14.625985 | 2021-01-23T07:32:25 | 2021-01-23T07:32:25 | 60,398,740 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,438 | cc | // C++14 Hearders
#include <iostream>
#include <memory>
#include <atomic>
#include <mutex>
#include <initializer_list>
#include <type_traits>
#include <typeinfo>
#include <utility>
#include <vector>
#include <list>
#include <string>
#include <algorithm>
#include <iterator>
#include <unordered_map>
// Boost Library Hea... | [
"you@example.com"
] | you@example.com |
200e0d1b4d898b49e230566efb096010eee9d2c2 | 9569a3874b5046797c50a00361109383dd365a28 | /samples/05-Models/src/CameraController.cpp | 8cf3ed65148be2943068c9417534a631792d130d | [
"MIT"
] | permissive | TechnikEmpire/LearningDirectX12 | 85a0dafafdb4aef3874bdde0ec9a9e820a7acde0 | da668e2b78f0bd876a0a4f8c415d3d4f6b692a16 | refs/heads/main | 2023-01-30T00:20:32.668539 | 2020-11-22T19:15:55 | 2020-11-22T19:15:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,011 | cpp | #include <CameraController.h>
#include <imgui/imgui.h> // Need to check if ImGui wants to capture mouse or keyboard input.
#include <Camera.h>
#include <cmath> // for std::abs and std::pow
using namespace DirectX;
// Perform a linear interpolation
inline double Lerp( float x0, float x1, float a )
{
return x0 ... | [
"jpvanoosten@hotmail.com"
] | jpvanoosten@hotmail.com |
b2a51d04398b8bb4e8faa016b42ae43bbd88ab9e | 640e50c003add59f0dfe506289562a398d162577 | /campus_bikes.cpp | 836d72e93eb23615eec8cdfc414385fb7bd4c7e2 | [] | no_license | ShreyasP7495/Greedy-5 | 78a8464958285268ea26d478e71886b46efbe50d | 8b05ceca260cf9a57f6895131eb5b23cf5d54568 | refs/heads/master | 2021-05-19T14:23:12.126125 | 2020-04-03T18:48:38 | 2020-04-03T18:48:38 | 251,755,002 | 0 | 0 | null | 2020-03-31T22:12:46 | 2020-03-31T22:12:45 | null | UTF-8 | C++ | false | false | 2,195 | cpp | //Time Complexity-O(m*n*log(x))--->here 'm' is number of workers,'n' is number of bikes and 'x' is total number of unique
// distances stored in hashmap(number of keys or map.size())
//Space Complexity-O(x*k+m+n)--> Auxiliary space for storing if the workers and bikes are assigned(O(... | [
"noreply@github.com"
] | ShreyasP7495.noreply@github.com |
cc62320430758a7ea6c0d8b4038fc2f8aa57a2c9 | 232075a7a088bb6e4f61d114d9bb9563b38e4f3f | /Ember/src/Window.cpp | a86e477638ee823619b6fb53373a7ff5bd9d4dcc | [
"MIT"
] | permissive | strah19/2048 | a99295808cea2dcc15f4a6daebdccebd2d5b0790 | dd7b6fafb4d7e455cde10f6b1322ce874ff1c1b6 | refs/heads/master | 2023-07-18T10:14:29.876647 | 2021-08-30T16:17:26 | 2021-08-30T16:17:26 | 389,422,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | #include "Window.h"
#include "SDLWindow.h"
#include "OpenGLWindow.h"
namespace Ember {
Window* Window::CreateEmberWindow(WindowProperties* properties) {
return new SDLWindow(properties);
}
Window* Window::CreateEmberWindow(WindowProperties* properties, uint32_t major_opengl, uint32_t minor_opengl) {
return new... | [
"m.strahinja@yahoo.com"
] | m.strahinja@yahoo.com |
ccb928ef7dd911090e8cb76a3d9194c567f7280c | f6695e04d3188c96f0e8f08b8bfdcd362056b451 | /xtwse/FT/source/FTCenter/FTJobDef.h | ac903fefbb225c8c20f3e7575244d132b0604a45 | [] | no_license | sp557371/TwseNewFix | 28772048ff9150ba978ec591aec22b855ae6250a | 5ed5146f221a0e38512e4056c2c4ea52dbd32dcd | refs/heads/master | 2020-04-17T03:18:03.493560 | 2019-01-17T08:40:46 | 2019-01-17T08:40:46 | 166,175,913 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 5,890 | h | //---------------------------------------------------------------------------
#ifndef FTJobDefH
#define FTJobDefH
//---------------------------------------------------------------------------
#include "KwayBase.h"
#include "bxLink.h"
#include "bxFT.h"
#include "fixed_num.h"
#include "TwStk.h"
#include <queue>
#include ... | [
"xtwse@mail.kway.com.tw"
] | xtwse@mail.kway.com.tw |
d693eeccfdc18b10562363e33e7ee1eb72b82b9f | 22399b36d7ac54db1b394dd9f28d160f504c626c | /CK33.cpp | bd1e1567ab513f257d07a2a1e9a682b2ebb1b38f | [] | no_license | naveenkumar2405/CK_Set4 | 74115dbac242163a713626e772028ab3a8da94b8 | 57c7edad459082691f22510849cef90cf12d4aad | refs/heads/master | 2020-06-30T12:01:43.407400 | 2019-08-06T18:08:18 | 2019-08-06T18:08:18 | 200,819,921 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | #include<iostream>
using namespace std;
int main()
{
string s;
int len,i,count=0;
cin>>s;
getline(cin,s);
len=s.size();
for(i=0;i<len;i++)
{
if(s[i]==' ')
{
count++;
}
}
cout... | [
"noreply@github.com"
] | naveenkumar2405.noreply@github.com |
915d8d0f2b6a6ea48b9de4793e569dbe883e496f | d0c44dd3da2ef8c0ff835982a437946cbf4d2940 | /cmake-build-debug/programs_tiling/function14666/function14666_schedule_5/function14666_schedule_5_wrapper.cpp | fc210a822b98efe0453e6a3919fce087534e08de | [] | no_license | IsraMekki/tiramisu_code_generator | 8b3f1d63cff62ba9f5242c019058d5a3119184a3 | 5a259d8e244af452e5301126683fa4320c2047a3 | refs/heads/master | 2020-04-29T17:27:57.987172 | 2019-04-23T16:50:32 | 2019-04-23T16:50:32 | 176,297,755 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,116 | cpp | #include "Halide.h"
#include "function14666_schedule_5_wrapper.h"
#include "tiramisu/utils.h"
#include <cstdlib>
#include <iostream>
#include <time.h>
#include <fstream>
#include <chrono>
#define MAX_RAND 200
int main(int, char **){
Halide::Buffer<int32_t> buf00(256);
Halide::Buffer<int32_t> buf01(256);... | [
"ei_mekki@esi.dz"
] | ei_mekki@esi.dz |
5a32ee3f3207b47e17be73b816001905d5d3c6ad | 9c172493199ba987acfa51c1b323be00efb852cd | /Medium/55.JumpGame/updateIndex.cpp | 4fcee05909588e66fd9e0271f3e6e1b7c93d65ac | [] | no_license | FriedCosey/LeetCode | 92a1084eeb8937d498411105ef6909ca4ca0d783 | 71a86e9bde3e3c9b1159085a773d370f3a75278c | refs/heads/master | 2021-07-11T08:03:20.516199 | 2019-01-10T01:26:40 | 2019-01-10T01:26:40 | 138,459,041 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 744 | cpp | class Solution {
public:
bool dfs(int pos, vector<int> nums){
if(pos >= nums.size())
return false;
if(pos == nums.size() - 1)
return true;
for(int i = 1; i <= nums[pos]; i++){
if(dfs(pos + i, nums))
return true;
}
return fa... | [
"friedcosey@gmail.com"
] | friedcosey@gmail.com |
e95cbb7615eaccf13cf2b6772511b8ea9c8538d2 | 04a540847c1333c987a1957fd8d31197c594f6bb | /BOJ/1991_1.cpp | aa36f2165e453406a590cf4b2d12b1c604ae9ea2 | [] | no_license | k8440009/Algorithm | fd148269b264b580876c7426e19dbe2425ddc1ab | a48eba0ac5c9f2e10f3c509ce9d349c8a1dc3f0c | refs/heads/master | 2023-04-02T16:06:10.260768 | 2023-04-02T11:04:32 | 2023-04-02T11:04:32 | 200,506,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | cpp | // 트리 순회
// https://www.acmicpc.net/problem/1991
#include <iostream>
#include <vector>
using namespace std;
const int MAX = 26 + 1;
int N;
vector <vector<int> > tree;
void postorder(int node)
{
int left = tree[node][0];
int right = tree[node][1];
if (left != -1)
postorder(left);
if (right != -1)
postorder(ri... | [
"k8440009@gmail.com"
] | k8440009@gmail.com |
0abd10d85d6890927d25c7204b97fc3278faf9b7 | 462940b061dd614b06038b6a4195160e374e2ac0 | /BST.h | a1e5f5a91e4f4171274459efc95310aec3b578a5 | [] | no_license | ashmahein/Encryption-Code-Converter | 7f6b135aec37fecd9a7fd11869964ae2811cf39d | 3a4678dd136e919ec1d0851751413495cf805ac5 | refs/heads/master | 2020-07-05T20:58:35.306867 | 2016-11-17T02:13:24 | 2016-11-17T02:13:24 | 73,980,582 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,162 | h | /*******************************************************************************
* Programmer: Ash Mahein *
* Class: CptS 122; Lab Section 1 *
* Programming Assignment: 6 ... | [
"noreply@github.com"
] | ashmahein.noreply@github.com |
3be6e38fe0b089e8e3aa7daf7bde9ef4bd46b9e7 | 2ad4fdf201138c5e70f4f9accf9af3b7c811520f | /05_maze/to students/Student_Code/main.cpp | 4519ed71afe4474a345976c40ad2d504937f4df6 | [] | no_license | Blankenship-Daniel/cs_235 | 1e562b63fc2460855afcb3420a14feaf1719dcd8 | 0f195d3d5a4807583c08b81250499a6c4f3adf8c | refs/heads/master | 2020-12-24T13:21:28.665081 | 2015-12-25T20:26:31 | 2015-12-25T20:26:31 | 34,682,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 281 | cpp | #include "Pathfinder.h"
#include <iostream>
using namespace std;
/******************************
* MAIN
* a simple driver program.
*****************************/
int main()
{
Pathfinder p;
p.createRandomMaze();
p.solveMaze();
p.printMaze();
return 0;
}
| [
"blankenshipdanielj@gmail.com"
] | blankenshipdanielj@gmail.com |
5cb44f531599035ce06123a20be7bceb820c0fd8 | 9f216b8bc1774e36b4bf79f9d99234b6e69bb11a | /include/tgbot/TgTypeParser.h | 0571c2529ebeb89a8a0968e50369ba20cd201c25 | [
"MIT"
] | permissive | gitter-badger/tgbot-cpp | 89dee3b93908315da394ed123148811bf6ae0bc8 | fb31f739c28e374d41834f3ba0a928bd92cca5df | refs/heads/master | 2021-01-15T12:58:58.605565 | 2015-07-27T18:16:29 | 2015-07-27T18:16:29 | 39,790,435 | 0 | 0 | null | 2015-07-27T18:18:14 | 2015-07-27T18:18:14 | null | UTF-8 | C++ | false | false | 8,208 | h | /*
* Copyright (c) 2015 Oleg Morozenkov
*
* 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, pub... | [
"omorozenkov@gmail.com"
] | omorozenkov@gmail.com |
01f5aadbdd6b8fe5735c66fd1f584e4cd025f74d | 7e727acec476c33524ebacb72cb566b719ac444f | /cake/stdafx.h | 38854963568844f64c438f304c13763bcbc4ef9a | [] | no_license | krig/cake | f61849e4b8ae845f9da4ca2c2fbc41028082859d | c063a3259c4cc92b1f2e836f341c4c4e5dd87e21 | refs/heads/master | 2018-12-28T16:05:28.043717 | 2008-09-23T11:04:17 | 2008-09-23T11:04:17 | 54,683 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,109 | h | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <glob.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <errno.h>
#include <assert.h>
extern "C"
{
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
}
#include <string>
#include <vector>
#include <map>
#include ... | [
"deceiver.g@gmail.com"
] | deceiver.g@gmail.com |
436d9de56dc84a617c71d2b42849b13ee5ccc10c | 073d693d3369e41a29f842c0b153241e47e1b2ac | /src/wallet/test/wallet_shielded_balances_tests.cpp | 54ed5df1ee6fc6d061ab194570ace241a0eec64d | [
"MIT"
] | permissive | robervem/sbercoin | 2a7984a7d77a63c51957e9b8b6df6bc759925d2e | ba61e50fab7e3b15e39a9cbe3a7adf08cab96d39 | refs/heads/main | 2023-02-09T21:16:56.425759 | 2021-01-07T20:09:19 | 2021-01-07T20:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,627 | cpp | // Copyright (c) 2020 The SBER developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php.
#include "wallet/test/wallet_test_fixture.h"
#include "consensus/merkle.h"
#include "primitives/block.h"
#include "random.h"
#include "s... | [
"k.arya2946@gmail.com"
] | k.arya2946@gmail.com |
36dba4338d32c0dd9a46f1c0c593c00f335c962a | 7b2c4d6d4d521d1d25e2226a0840c34d94bc6b4e | /234_longest_subsequence_adjacent_diff_is_1_dp.cpp | 4760a7b7296959b8831a681c4c647abfbdb9ff7a | [] | no_license | kh-8484/DSA | 642146605218ab930468fb9c57af76e6b9e425f9 | 9ee570daf0f054d04185824719ced93785aa4747 | refs/heads/main | 2023-06-25T08:03:02.844329 | 2021-07-29T13:13:24 | 2021-07-29T13:13:24 | 390,722,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | cpp | // { Driver Code Starts
// Initial Template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
// User function Template for C++
class Solution {
public:
int longestSubsequence(int n, int a[])
{
// code here
// int dp[n];
// for(int i=0; i<n; i++) dp[i] = 1;
// for(... | [
"noreply@github.com"
] | kh-8484.noreply@github.com |
2c26d7699dc11a8c1a7c30de7fdea8deb09e1537 | 635df129fcc98413a6010de626bf7e2170573527 | /knnPredictor.cpp | f352229972cca7156f7b62df4b9b7c3da8724555 | [] | no_license | davidmace/Miscillaneous | c464d5585154b598353d28129cd8fbdbeaed3c10 | 1c578fb3bd0489f15327ad145bd10804778cd233 | refs/heads/master | 2021-01-23T11:49:08.771081 | 2015-02-14T03:31:17 | 2015-02-14T03:31:17 | 30,785,991 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,427 | cpp | // Netflix dataset KNN classifier.
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include <cmath>
#include <map>
#include <ctime>
using namespace std;
class UserRating {
public:
int user, numRatings;
};
bool comparesize (UserRating i,UserRating j) { return (i.numR... | [
"dmace@caltech.edu"
] | dmace@caltech.edu |
e954b57984989780987fe119bf7c3bf6cb2cc4e9 | 7c9136d87b8895ac6532ef2af58edf3ecc29d175 | /DragSourceButton.h | a18ae2d4197dd5ad7d67820ac611e244c72770ab | [] | no_license | khhubb/csda-new-ssb | 038d75858cba1e029f4f1315d6ebba95e5d9fb91 | 96eaf896ba6c91914f69671171f5488cf0fb5d3f | refs/heads/master | 2020-07-01T03:36:45.777439 | 2016-08-17T22:00:09 | 2016-08-17T22:00:09 | 74,102,071 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,512 | h | #if !defined(AFX_DRAGSOURCEBUTTON_H__1C24B8A0_53DE_11D1_804F_006097B38214__INCLUDED_)
#define AFX_DRAGSOURCEBUTTON_H__1C24B8A0_53DE_11D1_804F_006097B38214__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DragSourceButton.h : header file
//
// of course, this isn't really a button... | [
"dmiller2718@gmail.com"
] | dmiller2718@gmail.com |
00cb59ac39a8293b45bed7a8029e69224447e6a8 | 4a157e8737dc04a8cab9428dcb6fb58948148022 | /Output.cpp | 62dffaff0b2a7f51b1c4b7972afc770776e92236 | [
"MIT"
] | permissive | woodinspector/ContrIO | 32491cdd9a6e61f3b2aaf6b777e038b1f319ac8c | 48d5ddb7dd94a063e67329bb95d3f42e6e8f6125 | refs/heads/master | 2020-12-29T14:05:05.084345 | 2020-02-06T07:48:54 | 2020-02-06T07:48:54 | 238,631,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,070 | cpp | #include "Arduino.h"
#include "Output.h"
void Output::init()
{
is_millis = true;
is_busy = false;
state = false;
lastTimeOn = lastTimeOff = millis();
amountOfTime = 0;
counter = 0;
pinMode(pin, OUTPUT);
}
Output::Output(const int pin) : pin(pin), name("")
{
debug = false;
init();
}... | [
"robert@rzad.it"
] | robert@rzad.it |
51ebba1acf4b81aa2cac6041bc2f98b9318b6e9e | 3530c83ee483570a907297e7bcc2cc605382dad8 | /LeetCode_April_clock_in/4_2_面试题17.21直方图的水量.cpp | eb864b9db8675f5019ee664b815141c983c1cbd7 | [] | no_license | SuperWhite18/LeetCode-Solution-of-Problems | 46fa410a856c54a903aeb1e28eecf0607dc26667 | fe1c3a53934b2b48b6a282364492332bf9c9d6c9 | refs/heads/main | 2023-08-03T12:41:27.513132 | 2021-08-02T16:10:47 | 2021-08-02T16:10:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,206 | cpp | //题目链接:
https://leetcode-cn.com/problems/volume-of-histogram-lcci/
//思路分析:
1.总体积减去柱子的体积就是水的容量
2.用双指针思想
3.先计算每一层雨水和柱子的总体积,三层相加,得到整体的体积vol
4.然后计算柱子的总体积sum,就是区间长度
5.再用vol-sum即是雨水的体积
6.注意细节:while(left <= right) 每一层的vol=right-left+1
//代码实现:
class Solution {
public:
int trap(vector<int>& height)
{
//计算柱子的... | [
"1299478311@qq.com"
] | 1299478311@qq.com |
4cab9d91839bb6bdbd3789f5855b7987b040cf57 | c0f4d7d7dc21bf1d9009c6f003cd5d4ae366a81d | /Firmware/FreeRTOS2560/FreeRTOS2560/FreeRTOS2560.cpp | ea2a98e3534c7f2951f214d2261fb313d397ad20 | [] | no_license | stanley92/CG3002 | ec3a38b17195564f0d447a33abd69cc3b7da690a | 5e8f33684bcf2d063d3c21928909a3f10026e535 | refs/heads/master | 2016-08-03T20:38:32.897423 | 2015-11-14T05:36:12 | 2015-11-14T05:37:40 | 42,099,080 | 0 | 0 | null | 2015-09-15T13:12:47 | 2015-09-08T08:13:30 | C | UTF-8 | C++ | false | false | 1,011 | cpp | /*
* FreeRTOS2560.cpp
*
* Created: 9/9/2015 11:16:44 PM
* Author: Laksh
*/
/*
#include <avr/io.h>
int main(void)
{
while(1)
{
//TODO:: Please write your application code
}
}*/
#include <avr/io.h>
#include <FreeRTOS.h>
#include <task.h>
#include <Arduino.h>
//Tasks flash LEDs at Pins 12 a... | [
"rkplakshmanan@gmail.com"
] | rkplakshmanan@gmail.com |
4273f0af7f490324b3472a3101f4ecb015796924 | 2637e30b614f11c3097ac511880adc6b944a2775 | /Q18/Q18.cpp | 663a8a1704da6ec0d0486aeda0e98c38081ef7ee | [] | no_license | WithSJ/College-Cpp-Questions- | f2192eb5a46b50748b261df7b0365f1b96df3d7d | 45db8a96268f8a0670d68ac85fcaef1ce25d2249 | refs/heads/main | 2023-03-26T20:53:09.711357 | 2021-03-24T08:38:22 | 2021-03-24T08:38:22 | 349,433,496 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,458 | cpp | #include<iostream>
using namespace std;
int count_digits(int num);
void num_to_arr(int num,int arr[],int count);
void swap_arr(int arr[],int count);
int arr_to_num(int arr[],int count);
int main()
{
int num;
cout<<"Input:";
cin>> num;
int count = count_digits(num);
int arr[count];
... | [
"withsj.in@gmail.com"
] | withsj.in@gmail.com |
bde2d4cecb4af5d134b28f23355c5af8e020ecea | f236af50bd31796471fbf4b9c1757d2b8b600af7 | /external/embree/kernels/geometry/instance_intersector.h | 8e174d5cd73d98e4855355190373a74a54ab8b88 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"IJG"
] | permissive | fly2mars/suCAM | 742a4cd2db19829616a47e78c1d56ed0bceee42b | 20581f4545684bb7b62ac32059f6031aa5b27f0d | refs/heads/master | 2023-04-07T06:53:17.218649 | 2023-03-29T08:50:04 | 2023-03-29T08:50:04 | 153,613,947 | 8 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 2,452 | h | // ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | [
"fly2mars@hotmail.com"
] | fly2mars@hotmail.com |
dcc2a7ba9ddd362ed3c16bcccef74e62d678876a | d276a9ad61586a050e861cdd48a82b7485809986 | /source/webkit-2.2.8/Source/WebKit2/WebProcess/WebPage/WebBackForwardListProxy.cpp | c971e0deae2e3eba784a8c5d4d293e48ef76fbcc | [] | no_license | onecoolx/davinci | 1ccea6487ec8254c520514e5a8df826fa6b08398 | 090696c6a957d3fc0cca867530cb3eece5fb870c | refs/heads/master | 2023-06-27T10:20:41.161195 | 2023-06-12T12:06:37 | 2023-06-12T12:06:37 | 28,557,969 | 10 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 7,492 | cpp | /*
* Copyright (C) 2010, 2011 Apple 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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | [
"onecoolx@gmail.com"
] | onecoolx@gmail.com |
5818ed29246c81d421f302d2a0909e9f7d092c96 | fbbbde0e5d7ecbd15d3835bd7771017a8d1fe0f3 | /Application/Engine/Math/Transform.h | 795556e1cef7053b93ce3a93cec8a89258db6586 | [] | no_license | neumont-gamedev/3D-Engine | c9a7519a626c9d6ea019af4fc2d1ad3a53a09b14 | 8948c97c3c36f9ea21a6511dd7a9c28e4e857117 | refs/heads/master | 2023-02-03T01:10:58.924803 | 2020-12-14T17:57:29 | 2020-12-14T17:57:29 | 312,040,136 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | h | #pragma once
namespace nc
{
struct Transform
{
glm::vec3 translation;
glm::vec3 rotation;
glm::vec3 scale{ 1 };
Transform() : translation{ 0 }, rotation{ 0 }, scale{ 1 } {}
Transform(const glm::vec3& translation, const glm::vec3& rotation = glm::vec3{ 0 }, const glm::vec3& scale = glm::vec3{ 1 }) :
tra... | [
"rmaple@neumont.edu"
] | rmaple@neumont.edu |
18db16c16412c5922cc15360747a753892881167 | 95331d9d20ca87bac4a0ea0abf18122ba9126791 | /Project4/tank.cpp | 35540270d45591f756ec0e06f452d011b37e13de | [] | no_license | zhiyu123/practice_project | daca05333dd0889cba73fc00261cb8878929c64d | 3f17f79b147e595bf431ef97e822de61b338a7ef | refs/heads/master | 2023-01-03T16:54:58.415987 | 2020-10-30T10:35:47 | 2020-10-30T10:35:47 | 304,607,135 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cpp | #include"tank.h"
Tank::Tank()
{
cout << "Tank()" << endl;
}
Tank::~Tank()
{
cout << "~Tank()" << endl;
}
Tank::Tank(const Tank& tank)
{
cout << "Tank(const Tank& tank)" << endl;
}
void Tank::shot()
{
cout << "shot()" << endl;
}
void Tank::move()
{
cout << "Tank----move()" << endl;
} | [
"1410880957@qq.com"
] | 1410880957@qq.com |
f9c6b35ece8cb6c0f9284d3e71e290d66176ecf9 | cefd6c17774b5c94240d57adccef57d9bba4a2e9 | /WebKit/Source/WebKit/gtk/webkit/webkiticondatabase.cpp | e03568b888a8eb91ac28eda0b98aea9ff082f6b4 | [
"BSL-1.0",
"BSD-2-Clause"
] | permissive | adzhou/oragle | 9c054c25b24ff0a65cb9639bafd02aac2bcdce8b | 5442d418b87d0da161429ffa5cb83777e9b38e4d | refs/heads/master | 2022-11-01T05:04:59.368831 | 2014-03-12T15:50:08 | 2014-03-12T15:50:08 | 17,238,063 | 0 | 1 | BSL-1.0 | 2022-10-18T04:23:53 | 2014-02-27T05:39:44 | C++ | UTF-8 | C++ | false | false | 10,487 | cpp | /*
* Copyright (C) 2011 Christian Dywan <christian@lanedo.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later ve... | [
"adzhou@hp.com"
] | adzhou@hp.com |
f58a1e031b2e609fa2cb9f68294b196b8261a3b5 | 51801861ce8ec13f64849a52f57e2afbfee76c5d | /module04/ex00/Pig.cpp | 45a46be353d2af39f6ca3e4945b5d8eab948f622 | [] | no_license | z-iz/42_CPP_Piscine | 763fce04fc79797fbec4d19d81c660582767a2fc | 325566004fb59fbcb562c7187c82eef5e6aa7a36 | refs/heads/main | 2023-03-25T01:38:28.478740 | 2021-03-03T22:19:02 | 2021-03-03T22:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,557 | cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Pig.cpp :+: :+: :+: ... | [
"neodyme@ya.ru"
] | neodyme@ya.ru |
7f07edc0fae995bda19f27aedfe8dff318e2eda3 | ffe75f4cdc12b6f1c6a04b3ce0afd562a179d603 | /src/concurrent/smutexlocker.cpp | 887e80f7aacbc27b039e1515f366a910daf3b8c4 | [
"Apache-2.0"
] | permissive | slux83/libslx | 9f179393e5b5b3811ba1b89a8b29ba86f987f138 | 4f687957843bd2212ddfb5da83926d48f066b8e3 | refs/heads/master | 2023-09-02T23:49:40.382553 | 2021-11-09T21:49:06 | 2021-11-09T21:49:06 | 426,391,518 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 661 | cpp | /******************************************************************************
[FILE_HEADER_BEGIN]
[FILE_HEADER_END]
******************************************************************************/
#include "smutexlocker.h"
#include "smutex.h"
#include "../global/sglobal.h"
SMutexLocker::SMutexLocker(SMutex *mutex)
{... | [
"slux83@gmail.com"
] | slux83@gmail.com |
b399722302bbfc6b1285dd0f8eec410619e6f0bf | b1fc87649b3f8e6dd8a6630cbbf3bfc6fb6c7e1d | /exercises/templates/dac/skel-dac-merge-sort-int.cc | b5efa81bddd0b550ab68f66b961c83086af8e07f | [] | no_license | ChrisCummins/msc-thesis | bfdef83d92af424157c82968754fd8d10ea42842 | 009c47a5f87f3808d9cc223456e0263b3a9a0b81 | refs/heads/master | 2021-06-02T16:53:35.140227 | 2020-01-18T12:03:50 | 2020-01-18T12:03:50 | 24,074,809 | 3 | 1 | null | 2015-02-23T12:57:30 | 2014-09-15T21:33:36 | C++ | UTF-8 | C++ | false | false | 490 | cc | #include "./test.h" // NOLINT(legal/copyright)
int main(int argc, char *argv[]) {
std::cout << "skel::merge_sort<int>, "
<< "parallelisation depth = "
<< DAC_SKEL_PARALLELISATION_DEPTH << ", "
<< "split threshold = "
<< SKEL_MERGE_SORT_SPLIT_THRESHOLD << "\n";
// T... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
dff307c941e0c5f8db04d7d0add50784b1853d6f | 7cdbac97437657022daa0b97b27b9fa3dea2a889 | /engine/source/qt/QtCommandPump.cc | d9ffa8122367d160d5f30a381bd69ce37b795440 | [] | no_license | lineCode/3SS | 36617d2b6e35b913e342d26fd2be238dbb4b4f3f | 51c702bbaee8239c02db58f6c974b2c6cd2271d1 | refs/heads/master | 2020-09-30T18:43:27.358305 | 2015-03-04T00:14:23 | 2015-03-04T00:14:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,384 | cc | //-----------------------------------------------------------------------------
// Torque
// Copyright GarageGames, LLC 2011
//-----------------------------------------------------------------------------
#include "qt/QtCommandPump.h"
#include "qt/QtFileDownloader.h"
#include <QFocusEvent>
QtCommandPump::QtCommandPu... | [
"kylem@garagegames.com"
] | kylem@garagegames.com |
07759999e826ab999b312a326f9f8c62883b7775 | 2a97852572aee0c7b767c87cd4f4124ba86fd2b2 | /DLL/Include/TTextTable.h | 508e9f0f13021bf88bb37a8be9217e6300423d18 | [] | no_license | leduong92/C-Project | d6f80b0d68ae8365d83b65287e6a8f51d8e4ecc0 | c6e5a4c0c03bd697e3199151e98e8e5a27b35bde | refs/heads/master | 2020-09-03T11:26:46.274242 | 2019-11-04T08:28:50 | 2019-11-04T08:28:50 | 219,452,163 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,685 | h | #ifndef TTEXTDB_H
#define TTEXTDB_H
//=======================================================================================================
// テキストDBAccessクラスのヘッダ
// Class Name TTextTable
// File Name TTextTable.h
// 作成者:Coba
// 作成日:1999.05.10
//========================================================================... | [
"11810677@nok.com.vn"
] | 11810677@nok.com.vn |
8c3a3307e868c3cd8d001c2240f27658bfa6f06d | a4f39e4572fd26031dfe9ec40c7e7b6512dcabe7 | /src/utils/dbwrapper/db-wrapper.cpp | fa9fe952471d7716cb4961b73f4e250574114cb2 | [
"MIT"
] | permissive | zx1239856/libserver | 9ddceb2d28c68232d7f78e42f935428a5fc29db6 | 8a72b8467c703b023e0703f74697e2d47d22757c | refs/heads/master | 2020-03-14T06:52:46.181227 | 2018-07-02T23:42:14 | 2018-07-02T23:42:14 | 131,492,432 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,721 | cpp | #include "db-wrapper.h"
using namespace dbWrapper;
// DatabaseSettings
DatabaseSettings::DatabaseSettings(const QString &databaseType, const QString &connectionName,
const QString &DBHost, const QString &DBName,
const QString &DBUserName, const QString &DBPassword,
... | [
"zx1239856@gmail.com"
] | zx1239856@gmail.com |
1e0b1eb935d03f98ee553c2531269005e814ba1a | 1dd5108ff8deca17e2c58034c433010e299df555 | /Student.cpp | c8d2046468a578a5e37440039d3467130fd9b6bd | [] | no_license | katherine-fontan/CPSC350-Assignment-4 | e8bfa0e87287c8d0035a1e4136de30b53c875439 | 666d2c445eb059bdcf8e5cb3ac64215461344d28 | refs/heads/master | 2022-04-24T16:37:35.907547 | 2020-04-23T19:42:41 | 2020-04-23T19:42:41 | 256,294,830 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | cpp | #include "Student.h"
#include <iostream>
using namespace std;
Student::Student(){
arrivalTime = 0;
timeNeeded = 0;
waitTime = 0;
atWindow = false;
}
Student::Student(int arrival, int timeAtWindow){
arrivalTime = arrival;
timeNeeded = timeAtWindow;
waitTime = 0;
}
Student::~Student(){}
| [
"luzfonta@chapman.edu"
] | luzfonta@chapman.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.