blob_id
stringlengths
40
40
content_id
stringlengths
40
40
repo_name
stringlengths
5
114
path
stringlengths
5
318
language
stringclasses
5 values
extension
stringclasses
12 values
length_bytes
int64
200
200k
license_type
stringclasses
2 values
content
stringlengths
143
200k
963fc0fc31429b0a2092046eb9be25b761064a4e
856294011b72bf3428a8d75f531b6f77c78aa342
nikhil-seth/cp-log
/Data Structures/Bitmasking/Bitmask.cpp
C++
cpp
888
no_license
#include<bits/stdc++.h> #define ll long long #define UL unsigned long long #define FOR(i,a,b) for(auto i=(a);i<=(b);i++) #define FORA(x,arr) for(auto &x:arr) #define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL); #define elif else if #define pb push_back #define vi vector<int> #define pii pair<in...
0e5644b3cfe07d852642bfdbd99a69548a4e38a9
3058ee02498e7298fe27e7bb29552f0b64a29301
xiaoguangcong/WebServer
/net/src/server.cpp
C++
cpp
3,192
no_license
#include <cstring> #include <arpa/inet.h> #include <memory> #include <netinet/in.h> #include <sys/socket.h> #include <functional> #include "../include/server.h" #include "../include/util.h" #include "../include/http_data.h" #include "../../base/include/logging.h" Server::Server(EventLoop* loop, int thread_num, int...
34835460a4b65876036c7e1a5f166cc0e6d7e244
522ba8d722de641948ef8c828d1b627d2373b24d
edelstein258/User-friendly-fping-application-for-ns-3
/fping-helper.cc
C++
cc
2,108
no_license
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ /* * Copyright (c) 2008 INRIA * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation; * * This program is dis...
17ca28de1d8199454070a348bbf0566362757360
c431d0c01390cb60aaf3e6b3de8f9802bbd7e095
Buanderie/mfw
/libmonadic/include/objects/base/number.hpp
C++
hpp
539
no_license
#ifndef __NUMBER_HPP__ #define __NUMBER_HPP__ #include "object.hpp" namespace monadic { class Number : public Object { public: Number( double rawValue = 0.0 ); Number( const monadic::Number& other ); virtual ~Number(); virtual ObjectBlob* serialize(); virtual void ...
68e8fe965ab29cb9ec8be63d1010d51a1a643924
9ece18d8df59235af9aafb53486cf5006236feb4
alielrafeiFCIH/Problem_Solving
/Pst/651B/main.cpp
C++
cpp
567
no_license
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { long long int x; int n,i,c=0; cin>>n; for(i=0;i<n;i++){ c=0; cin>>x; if(x>100000){ for(int j=2;j<1000000;j++){ if(x%j==0){++c;} if(c==2)break; }} ...
31fe8636bfb9a4b74f2c1d267c7e6982d763ab35
e3afe83f844d80f98bc09071b87ec5c4cf531d5b
rlon9/C-
/Exercise12_01.cpp
C++
cpp
861
no_license
// // Exercise12_01.cpp // CSCI2490 // // Created by Phil on 2/17/16. // Copyright © 2016 Phil. All rights reserved. // #include <iostream> #include <string> using namespace std; template<typename T> T maxValue(const T list[], const int size) { T max = list[0]; for (int i = 1; i < size; i++) { if...
7c423e55efac3b5329f993a7ac920acc192dc8bc
d78c7f05747fbd198783e1cb8953d8c06f9bfab1
renato-yuzup/axis-fem
/Axis.Physalis/application/locators/CollectorFactoryLocator.cpp
C++
cpp
4,768
permissive
#include "CollectorFactoryLocator.hpp" #include "CollectorFactoryLocator_Pimpl.hpp" #include "foundation/ArgumentException.hpp" #include "foundation/definitions/AxisInputLanguage.hpp" #include "services/management/ServiceLocator.hpp" #include "application/parsing/parsers/ResultCollectorParser.hpp" #include "foundation/...
e52c600087f3c5eaead4ba0d66cee771dac5f01a
887f10fcf0b5e0d9e1998b7217eb52addc95908b
moonstonedac/extreme
/extreme/libraries/chain/include/extreme/chain/protocol/asset_ops.hpp
C++
hpp
23,533
permissive
/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
fd7de9270b65893924f4f559d1442f094b1a852d
70282cd4de76c040804a4d7dce00edde20fa5d92
shikhorroy/UVa-OJ-Problem-Solutions
/12646 - Zero or One/6a f.cpp
C++
cpp
600
no_license
#include<stdio.h> int main() { int A, B, C; int sum = 0; while(scanf("%d%d%d",&A,&B,&C) != EOF){ if(A){ if(B){ if(C) printf("*\n"); else printf("C\n"); }else{ if(C) printf("B\n"); else printf("A\n"); ...
20d683fd3dd6b51804e787b0d42532a5be68231c
012458f5aa3e92caeb483723d2689d151849ace9
lcls-daq/ami
/qt/QtChart.hh
C++
hh
1,174
no_license
#ifndef AmiQt_QtChart_hh #define AmiQt_QtChart_hh #include "ami/qt/QtBase.hh" #include "ami/qt/QtPlotCurve.hh" #include "ami/data/EntryScalar.hh" #include <QtGui/QPen> class QwtPlot; class QColor; namespace Ami { class AbsEval; class EntryChart; namespace Qt { class QtChart : public QtBase { enum...
1f8ec3f30478ebd39cd08f833ea4db8fccd2eff2
6798ebdf798ff49d10d23d90d334d4dbe78b42f0
anber1121/MultimediaExample
/sdk-player/src/main/cpp/opengl/XShader.cpp
C++
cpp
8,523
no_license
// // Created by 叶亮 on 2019/2/12. // #include <GLES2/gl2.h> #include "XShader.h" #include "../Xlog.h" //顶点着色器glsl #define GET_STR(x) #x static const char *vertexShader = GET_STR( attribute vec4 aPosition; attribute vec2 aTexCoord; varying vec2 vTexCoord; void main(){ vTexC...
d5e205933d86e661a29466ab0c8b150b66d4f74f
c37865d084f17f25554c17cf0cd86ef0b27da1db
qindav/CSCE438
/HW4/tsc.cc
C++
cc
13,243
no_license
#include <iostream> #include <fstream> #include <memory> #include <thread> #include <vector> #include <string> #include <unistd.h> #include <grpc++/grpc++.h> #include "client.h" #include "sns.grpc.pb.h" using grpc::Channel; using grpc::ClientContext; using grpc::ClientReader; using grpc::ClientReaderWriter; using grpc...
93aa382489b39aa2a03e64cd8cdc4938fe228a4c
fe8ffb5cae08b7df270e6afa3bb162f161dba170
dkargin/miniroscpp
/include/generated/std_msgs/Time.hxx
C++
hxx
4,441
permissive
// Generated by gencxx from file std_msgs/Time.msg // DO NOT EDIT! #pragma once #include <string> #include <vector> #include <map> #include <array> #include <miniros/types.h> #include <miniros/serialization.h> #include <miniros/traits/builtin_message_traits.h> #include <miniros/message_operations.h> namespace st...
d56afb5d1067702f3446377b64c2396fef5bec88
d55137b748ff1d15c6167e48e7de9dcffc36f881
Symphony-in-Icecity/pcl
/doc/tutorials/content/sources/voxel_grid/voxel_grid.cpp
C++
cpp
1,212
permissive
#include <iostream> #include <pcl/io/pcd_io.h> #include <pcl/point_types.h> #include <pcl/filters/voxel_grid.h> int main (int argc, char** argv) { sensor_msgs::PointCloud2::Ptr cloud (new sensor_msgs::PointCloud2 ()); sensor_msgs::PointCloud2::Ptr cloud_filtered (new sensor_msgs::PointCloud2 ()); // Fill in the...
ac8230918ef5f35cdbedbca208c4ef586714fe33
f11f03cd9f01b8f719b37068d161b2761cccfeb8
ELLIEbleu/aliyun-openapi-cpp-sdk
/mts/src/model/LogicalDeleteResourceRequest.cc
C++
cc
3,491
permissive
/* * 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...
9a22ae90b08a2f94d38244bbb94cbdcf1cd544d4
6350dabaaaac431c975f7009a5cf8537c642b311
RayPlante/DMS.afw
/examples/timePixelAccessGil.cc
C++
cc
3,539
no_license
/* * LSST Data Management System * Copyright 2008, 2009, 2010 LSST Corporation. * * This product includes software developed by the * LSST Project (http://www.lsst.org/). * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as publishe...
4cc75d137b7c110b32f9bfbc87ce932e4faffd7b
4b34490774e0da346f3701c39f6b94111f871139
xiaoyaozhuzi/Tengine
/examples/mobilenet_ssd/mssd.cpp
C++
cpp
8,154
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * License); you ma...
bc797bfee0d53f0b448226065189eef8c8cddec5
7ac6fec739702d9adb05c5d881a324991e95352b
MedicaicloudLink/Rosetta
/main/source/src/protocols/matdes/MotifHitsRotamersOperation.fwd.hh
C++
hh
1,180
no_license
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*- // vi: set ts=2 noet: // // (c) Copyright Rosetta Commons Member Institutions. // (c) This file is part of the Rosetta software suite and is made available under license. // (c) The Rosetta software is developed by the co...
cb3a41f348b400f74a946c47084bc98da6a850b8
22980bf1af38cf3e82fd70e195687f98a09a377f
krohithreddy/Parallelisation-of-determinant-and-inverse-of-the-matrix
/seq-3.cpp
C++
cpp
1,971
no_license
#include<iostream> #include<stdio.h> #include<stdlib.h> #include<math.h> #include <time.h> #include <sys/time.h> using namespace std; double determinant(double **matrix1, int level) { double det = 0; double res; double **matrix2; if (level == 1) // trivial case 1x1 matrix { res = matrix1[0][0]; } else { ...
dba5d3cd8adf2fbaa2cee2a77efb698d36c4e5ff
b3f98a4e55b2922abc3589f63857cfeb226c5313
gnoliyil/fuchsia
/src/media/audio/audio_core/shared/usage_gain_reporter_impl_unittest.cc
C++
cc
6,314
permissive
// Copyright 2020 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/media/audio/audio_core/shared/usage_gain_reporter_impl.h" #include <lib/fidl/cpp/binding.h> #include <lib/syslog/cpp/macros.h> #include <gt...
84e70a9f4ebde0f0f752ba515af2c4e67fa1cd01
8bedf597e96d646544a063e32b734f454f5af55c
ktantikarun/supersimplestockmarket
/main.cpp
C++
cpp
1,585
no_license
/* Written by Krittaboon Tantikarun on 07/03/2019 */ #include <iostream> #include "Stock.h" #include "Trade.h" #include "CommonStock.h" #include "PreferredStock.h" #include "StockExchange.h" #include <chrono> #include <thread> using namespace std; int main() { // Declare StockExchange static St...
2464596eb7aab3fa6c6074801b81a1d95d1a1aca
1e581be8859cd9ed85c73ac7029e9b63ced8d39c
beerjamin/phase5
/tests/MarkerTest.cpp
C++
cpp
4,876
no_license
#include "../marker.h" using namespace std; //=========Testing set_marker()=================// bool test_set_Marker(){ Marker m; m.set_marker(4,1); return m.get_marker() == 1<<10; } bool test_set_Marker_except(){ Marker m; try{ m.set_marker(10,10); return false; } catch (...
12c1b0fbadfd445289210c269b554305fbee20fc
15f2efca3a43c8e1b4e64278eb8bdb3a21541c07
yatesco/mergerfs
/src/write.cpp
C++
cpp
2,198
permissive
/* Copyright (c) 2016, Antonio SJ Musumeci <trapexit@spawn.link> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" ...
1c16107a7d13e15c4924c68e889fe3450260dca0
66296aab668d28456d03adf1fb7e5cd0fb90986c
devPOOLCOIN/poolcoin
/src/init.cpp
C++
cpp
36,517
permissive
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "init.h" #include "main.h" #include "chainparams.h" #include "script.h" #...
45eef18c8b6bd4e1b9c0325702ed57d4b85b5e22
f4e6ab6e753bb3d4905e7e876a89272fad36dc68
litao1009/SimpleRoom
/externals/OCCTLib/inc/TColgp_HArray1OfPnt2d.hxx
C++
hxx
2,570
no_license
// This file is generated by WOK (CPPExt). // Please do not edit this file; modify original file instead. // The copyright and license terms as defined for the original file apply to // this header file considered to be the "object code" form of the original source. #ifndef _TColgp_HArray1OfPnt2d_HeaderFile #define _...
5ff48761fa709e3ef6ceb92aa488edefb95c51a0
89b7a7f979b5f6beeb6b41023e4f76240bcc3d0e
UnresolvedExternal/Union_AlterDamage
/src/Union_OdysseeCrutches/Workspace/Entry/SkipNoise.cpp
C++
cpp
704
no_license
namespace NAMESPACE { extern CSubscription skipNoise; CSubscription skipNoise(TGameEvent::Loop, []() { if (!settings.allowSkipNoise) return skipNoise.Reset(); for (zCEventMessage* message : player->GetEM(false)->messageList) { oCMsgConversation* csMsg = message->CastTo<oCMsgConversation>(); if...
4586c98285ab4724439194fd067839a79627e238
a893a5e6f0a1fee6c77a59a99f7efd8cd39bdb4c
Balaji19970912/C-
/ij16.cpp
C++
cpp
220
no_license
#include<iostream.h> void main() { float a,x,z ; int y; cout<<"Enter a floating value : " ; cin>>a ; x=a ; y=x ; z=a-y; cout<<"Integer number = "<<y<<"\n" ; cout<<"Floating number = "<<z ; }
8258ab23065c822f0957bba72c1064ed8adbe53c
2981c621c9a6811915f1ca1b2a0e4ee0a77b2fec
Stals/OneMinuteHero
/Classes/TitleScreen.cpp
C++
cpp
2,786
no_license
#include "TitleScreen.h" #include "GameLayer.h" TitleScreen::~TitleScreen() { } CCScene* TitleScreen::scene() { // 'scene' is an autorelease object CCScene *scene = CCScene::create(); // 'layer' is an autorelease object TitleScreen *layer = TitleScreen::create(); // add layer as a child to s...
2d9aa540036c66d20f6c7d37bde1b1ff18a7f08d
8f3eda1982a03b94b37e0a564a68e3906e805ef0
linmonsv/AndroidNDK
/JNI_CALLBACK/libHello.cpp
C++
cpp
214
no_license
#include <iostream> #include "libHello.h" void Hello(Hello_CallBack _Hello_CallBack) { if(NULL != _Hello_CallBack) { _Hello_CallBack("World in CallBack!"); } else { std::cout << "World!" << std::endl; } }
af6602f742c8434b2d03dddbac0ba05ce8ed5cd2
57caa464106f9689a8187648c89d2bcc984cf0f9
hoangpq/skia
/gm/beziereffects.cpp
C++
cpp
23,230
permissive
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ // This test only works with the GPU backend. #include "gm.h" #include "sk_tool_utils.h" #if SK_SUPPORT_GPU #include "GrContext.h" #include "GrOpFlushState.h" #include "GrP...
e8c5881f443e320c4dc9c15eecf12b0e62b47796
202dfb6f9a4ca6dbf91626db83a0fadfb1dd582a
KautsarH/Student-Budget-System
/app.cpp
C++
cpp
15,180
no_license
#include <iostream> #include <fstream> #include <cstdlib> #include <cstring> using namespace std; struct budget{ double category[7][8];//days and category done double budgetCategory[8]; //done double sumPerCategory[8];//one week done double sumPerDay[7];//done double sumPerWeek;//done double sumBudget;//done ...
aca03be5cf80f392a7997a656e587c00b499da2f
5061135fb2dcc76728ea33f7de0d4b0267c06edd
ikicapitan/WillGem-MMORPG-Engine
/WillGem MMORPG Engine/WillGem MMORPG Map Editor/WillGem MMORPG Map Editor/mapa.cpp
C++
cpp
4,257
no_license
#include "mapa.h" #include <iostream> using namespace std; mapa::mapa(RenderWindow &window, Vector2i n_map) { ventana = &window; n_mapa = n_map; iniciar(); } void mapa::iniciar() { n_grillas = Vector2u(25, 19); dim_grillas = Vector2u(32, 32); //tilemap = new vector<tile>[capas]; //Creo el array de listas segu...
96b69f82a944c617291486ad38dce3acbe74ac6c
9c7887fb3db04820ada87e223de953be58ec06f0
Wolf3s/Miami-vice-src
/PC/bf6deb8d.cpp
C++
cpp
3,317
no_license
//--------------------------------------------------------------------------------------- // GF_Crop_Top_girl_01 // Date 5/11/2004, Time 18:28:59 // Martin Fuller: Automatically Produced By ALE Editor //--------------------------------------------------------------------------------------- #ifndef __GF_CROP_TOP_GI...
5145fa011c2e24a8339ca18c65539d7034937081
84fe3cde44d66ef066736c249eaafdb7f6f560e0
u0u0/Quick-Cocos2dx-Community
/cocos/2d/CCScene.cpp
C++
cpp
5,375
no_license
/**************************************************************************** Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2010-2012 cocos2d-x.org Copyright (c) 2011 Zynga Inc. Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any...
ac01cb0c2ea422732cd34844cb9b92b0b6a8addb
676459dac53952284d1f5c149d2b13e33b6bc2d8
Definitelynotaspruce/Homemade_Hash
/functions.cpp
C++
cpp
630
no_license
#include "include/include.h" std::string GetInput() { std::string input; std::cout << "Input the data you want to hashify " << std::endl; std::cin >> input; return input; } std::string ReadInput(std::string fileName) { std::ifstream data(fileName); if(data.fail()) { std::c...
ff5ab769ddb5dac14c5d8db8bbacbd3349256680
8b8202de1bad4e7898c76edcb1f2b5459a029f73
Sanchit011/gfg-must-do
/next-greater.cpp
C++
cpp
560
no_license
public: //Function to find the next greater element for each element of the array. vector<long long> nextLargerElement(vector<long long> arr, int n){ // Your code here stack<long long> st; vector<long long> ans; for(int i = n-1; i>=0; i--){ long long x = arr[i]; ...
5ef190bbad0505f177e7704fdf7e8b41d7c328b0
2736739b1a5679f6b9b02ef1f7bc48f0e4b09dc4
ptpan/tensorflow
/tensorflow/core/common_runtime/metrics.cc
C++
cc
1,509
permissive
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
68a492495c9eca40c0ea6c429b9db2b17de780af
2cc7acb45adca69fe290a1ed5cef9785634dfc44
aurantst/windows-XP-SP1
/XPSP1/NT/enduser/windows.com/winupd/wupdinfo/cwupd.cpp
C++
cpp
3,982
no_license
//======================================================================= // // Copyright (C) Microsoft Corporation, 1998 - 1999 All Rights Reserved. // // File: CWUpd.cpp : Implementation of CCWUpdInfo // //======================================================================= #include "stdafx.h" #incl...
9a261b2a6ef52f2d02f29311b05b710f3efa723f
4cb21ea9e9d4eb42487a87642146d59ae44b5843
hyunsukimsokcho/souffle
/src/tests/brie_test.cpp
C++
cpp
42,269
permissive
/* * Souffle - A Datalog Compiler * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved * Licensed under the Universal Permissive License v 1.0 as shown at: * - https://opensource.org/licenses/UPL * - <souffle root>/licenses/SOUFFLE-UPL.txt */ /********************************************...
85627cf1eaf952ee174547dd25694dbb1175a8b8
d440d7eab346ca56744ecd1ee36fa42cc897bb3c
powergraphics/CppGalaga
/Galaga/src/infra/StageSymbols.cpp
C++
cpp
2,225
no_license
#include "infra/Display.hpp" #include "infra/AudioPlayer.hpp" #include "infra/StageSymbols.hpp" const ol::StageSymbolInfo ol::STAGE_SYMBOLS_TABLE[] = { { Sprite::STAGE_SYMBOL_50, 50, Vec2(16, 16) }, { Sprite::STAGE_SYMBOL_30, 30, Vec2(16, 16) }, { Sprite::STAGE_SYMBOL_20, 20, Vec2(16, 16) }...
8621b4ce24d82ead7feba93ecb435538e613ec95
575bede6ac3468ce59208b0efe575e40ffa9284d
Aroma-UI/avian
/src/codegen/compiler/event.cpp
C++
cpp
58,845
permissive
/* Copyright (c) 2008-2015, Avian Contributors Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. There is NO WARRANTY for this software. See l...
6071bfc489ba28de48efc43b2ddd312b76372c56
e939844866fb132c1bb9cb757b58c9a05b4db7a3
my-nguyen/projecteuler.net
/bitfield.hpp
C++
hpp
1,125
no_license
#ifndef BITFIELD_CPP_H #define BITFIELD_CPP_H #include <iostream> using namespace std; #define BITS_PER_BYTE 8 #define BITS_PER_LONG (sizeof(long)*BITS_PER_BYTE) class bitfield_t { public: bitfield_t(int space); ~bitfield_t() { delete [] _data; } void print(unsigned long field); void clear(int long_index)...
8a4ffe05de5d74f68c0bc5f4a86a5974de6e6fec
f4a684c1d6725d5cdb9a3a745b00ea5eda93d794
chromium/chromium
/chrome/browser/lookalikes/safety_tip_web_contents_observer.cc
C++
cc
14,810
permissive
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/lookalikes/safety_tip_web_contents_observer.h" #include <string> #include <utility> #include "base/metrics/field_trial_params.h" #include "base/metri...
6f9a7ed2ce2ae457ada2831c7c83e85c5cccc11a
1800bdf56961d9a0eb15de00c57de988be8e01ce
aurantst/windows-XP-SP1
/XPSP1/NT/net/config/netcfg/wlbscfg/utils.cpp
C++
cpp
8,587
permissive
#include "pch.h" #pragma hdrstop #include <winsock2.h> #include "utils.h" #define MAXIPSTRLEN 20 //+---------------------------------------------------------------------------- // // Function: IpAddressFromAbcdWsz // // Synopsis:Converts caller's a.b.c.d IP address string to a network byte order IP //...
01ab8567c583cde4379e5500c32cc65fa4f14b76
a27ca75c8ea80495b9a193199c7a29d65f489507
talorion/uibk_cloud
/uibk_cloud/ucc_factory.cpp
C++
cpp
1,610
no_license
#include "ucc_factory.h" #include "configuration_element.hpp" #include <QFile> ucc_factory::ucc_factory() { } ucc_factory::~ucc_factory() { } uibk_cloud_configuration ucc_factory::create_ucc_from_file(QString fileName) { uibk_cloud_configuration cfg; QFile file(fileName); if (!file.open(QFile::ReadO...
02909ee7b8b575866887704a1a49568dbaa70e34
c41d2c066aec2229107d317ca205c463be9d242d
kohyatoh/contests
/pku/2560/2560.cpp
C++
cpp
714
no_license
#include <stdio.h> #include <math.h> #include <queue> #include <utility> using namespace std; #define rep(i, n) for(int i=0; i<(int)(n); i++) #define mp make_pair int n, k, vis[100]; double s, x[100], y[100], g[100][100]; int main() { scanf("%d", &n); rep(i, n) scanf("%lf%lf", x+i, y+i); rep(i, n) rep(j, ...
b8ff0528ea60a528e174f6eca2478372dfb7d7d9
603e5e0d2bc96bfcbd04dc112862cb8e1862b3c2
RYUDAYUN/cpp
/a1016.cpp
C++
cpp
401
no_license
#include <cstdio> #include <iostream> using namespace std; int main(){ long long min,max,x; long long cnt=0; int numbers[1000001]={0,}; std::cin>>min>>max; for(long long j=2;j*j<=max;j++){ x= min/(j*j); if (min%(j*j)!=0) x++; while(x*(j*j)<=max){ numbers[x*(j*j)-min]=1; x++; } } for(int i=0;i<=m...
79cf1fc2f2dbe701131cad6318bb41e73ff7586f
263136cafbe5bc979286da18bd4be61f65c86c72
anchitmulye/Programming
/Programming/LeetCode/283.hpp
C++
hpp
493
permissive
//LeetCode 283 //Move Zeroes [EASY] #pragma once #include <iostream> #include <vector> class Solution { public: void MoveZeroes(std::vector<int64_t>& nums); }; void Solution::MoveZeroes(std::vector<int64_t>& nums) { int16_t moveCount = 0; for (int i = 0; i < nums.size(); i++) { if (nums[i...
174bb19cb21b2cb740aef40739b3e0399e912bae
a73faae92bcaae53441cdedf87afc80dee084e22
H4DC0R3/HoudiniJam
/Plugins/HoudiniEngine/Source/HoudiniEngine/Private/HoudiniMaterialTranslator.cpp
C++
cpp
114,758
no_license
/* * Copyright (c) <2018> Side Effects Software 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...
c70e7b5c0a563ac822e7b1ec0cefde4d71dcbb50
4dd5e7b6e194b0e6b84ab809a4487714ddd71cf3
oldbbie/programming_of_highSchool
/p3/p3-021.cpp
C++
cpp
438
no_license
#include <stdio.h> int main() { char name1[] = "철진"; char name2[] = "보배"; char name3[] = "성필"; char name4[] = "여진"; char name5[] = "진희"; printf("1 번째 학새의 이름 = %s\n",name1); printf("2 번째 학새의 이름 = %s\n",name2); printf("3 번째 학새의 이름 = %s\n",name3); printf("4 번째 학새의 이름 = %s\n",name4); printf("5 번째 학새의 이름 = ...
6010ca794c3e9edc4f10b9a1204a7d416be8d874
8eeae4ccf91a3ad625ff433c085edb26ced8f5d9
Shakib-ewu/Isomorphic-graph
/Isomorphicgraph.cpp
C++
cpp
2,386
no_license
#include<bits/stdc++.h> using namespace std; int main() { int graph1[30][30],graph2[30][30],i,j,vertex1,vertex2,edges1,edges2,sum1=0,sum2=0,ans=0,deg1[30],deg2[30]; cout<<"enter the graph 1"<<endl; cout<<"vertex = "; cin>>vertex1; int sum3; int test1=0,test2=0; cout<<"enter adjacent matrix"<...
a7221efc3a2c2537ce26c9aaf3f1391c934697c4
5c56a7608eb3936086470defd6f52625ca4459f8
Pyrrvs/threadpool
/src/WinCriticalSection.cpp
C++
cpp
1,526
no_license
/* ** Copyright (c) 2013 Gauthier Lamaison. ** All rights reserved. ** ** Redistribution and use in source and binary forms are permitted ** provided that the above copyright notice and this paragraph are ** duplicated in all such forms and that any documentation, ** advertising materials, and other materials r...
548a8f960e4f1642efef7556b2f32d081440ef50
59f6bc3245e1bfe80582f98aa356a21b7fc9f106
Firebie/FarManager
/unicode_far/notification.hpp
C++
hpp
4,088
permissive
#pragma once /* notification.hpp */ /* Copyright © 2013 Far Group 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 noti...
2ee386296c25edbef92decf72a1c8824eeccfd3e
f9f5d0192827097a9d4dd61d0483e5589949b2df
Igalia/chromium
/android_webview/browser/aw_cookie_access_policy.cc
C++
cc
7,107
permissive
// 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 "android_webview/browser/aw_cookie_access_policy.h" #include <memory> #include "android_webview/browser/aw_contents_io_thread_client.h" #in...
80d90fd678ef94209e893f4cd3745552d98d94b5
f5ba9b2d980802d6113282a8221686e130a24182
mborromeo/bzrank-plugin
/bzrank.cpp
C++
cpp
7,507
permissive
#include "bzfsAPI.h" #include "plugin_utils.h" #include <fstream> #include <sstream> using namespace std; const char kPathSeparator = #ifdef _WIN32 '\\'; #else '/'; #endif ofstream logFile; string partLogName; string finalLogName; double lastFlush; std::string getTeamName(bz_eTeamType team); std::string getScore...
27bb1072f80dfe83938e65b3ba16a0ce177450e4
84e234098b6d013d33bb248fa4589fe14e4503c3
HyunwooKim2/BiDE
/bnn/src/library/hls/mac.hpp
C++
hpp
4,656
permissive
/****************************************************************************** * Copyright (c) 2017, Xilinx, 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. Redistributio...
8c0a253322dd86d664dc43ec0b8cc4644a947765
c8f2fc80556388bb9bab244f8bfb947755ad3118
MariageClementine/BTS_GSB-BackOffice
/dialogconnexion.cpp
C++
cpp
1,495
no_license
#include "dialogconnexion.h" #include "ui_dialogconnexion.h" #include <QSqlDatabase> #include <QMessageBox> #include <QTextCodec> #include <QSqlQuery> #include <QDebug> DialogConnexion::DialogConnexion(QWidget *parent) : QDialog(parent), ui(new Ui::DialogConnexion) { ui->setupUi(this); //prise en com...
5913a14357370a6b062fbbf2282e36ed1fe5bd83
61e66576211a0ad70e3a0da02bf8826fee2818f8
SuperiorOS/android_frameworks_native
/libs/gralloc/types/Gralloc4.cpp
C++
cpp
42,808
permissive
/* * Copyright 2019 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 applica...
431b0102ee8e8e42e126a320529c9b24434596ec
5d87bd7a0eded895dec69a40181e755e5ddd8fce
Ex-Soft/test
/c#/test/WinForm/TestWebBrowser/WebBrowserWrapperControl/COM_Component_Source_Binaries/StdAfx.cpp
C++
cpp
1,522
no_license
// stdafx.cpp : source file that includes just the standard includes // stdafx.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "stdafx.h" #ifdef _ATL_STATIC_REGISTRY #include <statreg.h> #if _ATL_VER < 0x0700 #include <statreg.cpp> #endif // _ATL...
f8b5428553ee4dd97cd8c0fab237f77175e08335
7f187be9320561cf42d8c2bfad8075ec435d4f86
ybin3797/WeeklyPlanner_MFC
/WeeklyPlanner/WeeklyPlannerView.cpp
C++
cpp
18,984
no_license
// WeeklyPlannerView.cpp : CWeeklyPlannerView 클래스의 구현 // #include "stdafx.h" // SHARED_HANDLERS는 미리 보기, 축소판 그림 및 검색 필터 처리기를 구현하는 ATL 프로젝트에서 정의할 수 있으며 // 해당 프로젝트와 문서 코드를 공유하도록 해 줍니다. #ifndef SHARED_HANDLERS #include "WeeklyPlanner.h" #endif #include "WeeklyPlannerDoc.h" #include "WeeklyPlannerView.h" #...
80c8b8034152d982e8508a9e80a1e0192037900b
c28df6ab92e346d8ccbed0eee65502775f918a08
chenhuidong/MyGit
/MyCpp/MyTest/Poco/Thread/testThread.cpp
C++
cpp
329
no_license
#include "Poco/Thread.h" #include "Poco/Runnable.h" #include <iostream> class HelloRunnable: public Poco::Runnable { virtual void run() { std::cout << "Hello, world!" << std::endl; } }; int main(int argc, char** argv) { HelloRunnable runnable(); Poco::Thread thread; thread.start(runnable); thread.join(); re...
076e640b0dec9510b8c087373af941416a27f163
ee2c731c73a4414160481839a8b764bebed45c85
kobemiller/mycode
/c++/foundamental/inline.cpp
C++
cpp
337
no_license
#include <iostream> #define FUNC(a, b) ((a) > (b) ? (a) : (b)) inline int func(int a, int b) { return a > b ? a : b; } int main() { int a = 1; int b = 3; int c = func(++a, b); std::cout<< "a = " << a << std::endl; std::cout<< "b = " << b <<std::endl; std::cout<< "c = " << c <<std::endl; ...
22761836263e1695affd9d894a4460b38841b262
d2ba72f1f7c28f9169991da94c1198d07d7b410c
Priyash/Competitive_Programming_III
/HappyNumber.cpp
C++
cpp
1,035
no_license
#include <iostream> #include <vector> #include <unordered_set> using namespace std; // // Created by Priyash on 4/6/2020. // class Solution { public: Solution(){} bool isHappy(int n); int getDigitSquareSum(int n); }; // 21 - > 5 ->29->85->89->145->42->20->4->16->37 bool Solution::isHappy(int n) { unord...
81c1906fdaeaf300a629b32a06a230ba4ae57688
781df234d359e74445c4a70f4a8886b2bf40d3fa
wangjunjie1107/CodeTesting
/C/210 C语言_指针的地址.cpp
C++
cpp
342
no_license
#include<stdio.h> int main() { int a = 0; int b = 100; printf("%p\t%p\n", &a, &b); int *p; printf("%p\n", &p); //打印指针变量p的地址 p = &a; //p = &a; printf("%p\n",&*p);//指针变量p指向a, 打印a的地址 printf("%d\n", *p);//打印地址中的存放的值 int *p1 = &b; printf("%d\n", *p1); return 0; }
268090f3f9d5754c69c29ba493072a3201b30e15
17d6867d48c16cf3430aa883e73c62e519b305a9
calonx/shaman
/qtservice/qtservice.cpp
C++
cpp
36,400
no_license
/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Solutions component. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of the BS...
d73c74b26708b2d6ccede94ed69e0e883e1904af
cecfa6dea00db376ddc54645bd14e6b214e6e72a
polserver/polserver
/pol-core/bscript/compiler/codegen/InstructionEmitter.cpp
C++
cpp
12,780
no_license
#include "InstructionEmitter.h" #include "StoredToken.h" #include "bscript/compiler/ast/ModuleFunctionDeclaration.h" #include "bscript/compiler/codegen/CaseJumpDataBlock.h" #include "bscript/compiler/codegen/ModuleDeclarationRegistrar.h" #include "bscript/compiler/model/FlowControlLabel.h" #include "bscript/compiler/m...
f51570a1b47e51ecf0af54ba0ba64c4fd06242e8
8d3bb9cc34f76bbfd60990dcb576b07473e25a62
rafaellimabarros/C-
/Estruturas de repetição/rand.cpp
C++
cpp
513
no_license
#include<iostream> #include<cstdlib> #include<ctime> using namespace std; int main (){ int randon,chute; srand(time(0)); randon = rand() % 101; cout<<randon<<endl; for (int i=0;i<10;i++){ cout<<"adivinhe o numero de 0 a 100\n"<<endl; cin>>chute; if (chute==randon){ cout<<"\nacertou m...
e47a95fb8b81215184c4f3af34565a93e57fd644
9236c8030a1fcd0abb6f298a92ec013cff8be5c7
weimingtom/guichan_memory
/glut/guichan/guichan/keyevent.hpp
C++
hpp
860
permissive
#pragma once #if defined(_MSC_VER) #pragma warning(disable:4786) #endif #include "inputevent.hpp" #include "key.hpp" #include "platform.hpp" namespace gcn { class Widget; class GCN_CORE_DECLSPEC KeyEvent: public InputEvent { public: enum { PRESSED = 0, RELEASE...
6da2375b93435a1bef5278fa29cfca5c5e03f774
35037da5a6362c450d038cacc2f2e761efe7885e
Polyrhythm/gaffer
/src/GafferModule/GraphComponentBinding.cpp
C++
cpp
9,497
permissive
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2011-2012, John Haddon. All rights reserved. // Copyright (c) 2011-2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitte...
31452c81b68f608215247349d81be0a558836e8f
994b56420a0b8be945c56f15af6e4532ab851ee1
aaronkennedy/mapbox-gl-native
/platform/zing/mbgl/gl/gl_impl.hpp
C++
hpp
221
permissive
#pragma once #ifdef MBGL_WIN #define GL_GLEXT_PROTOTYPES #include <EGL/egl.h> #include <GLES2/gl2.h> #include <GLES2/gl2ext.h> #else #include <OpenGL/OpenGL.h> #include <OpenGL/gl.h> #include <OpenGL/glext.h> #endif
80fd2cdeb5f01b43378aae4a3cc34be9ef21baf1
4542cf3b240e0d9ccbcd2ea757983c654d5a50cb
yjkim-npl/coresoftware
/simulation/g4simulation/g4detectors/PHG4BlockCellReco.cc
C++
cc
20,230
no_license
#include "PHG4BlockCellReco.h" #include "PHG4BlockCellGeom.h" #include "PHG4BlockCellGeomContainer.h" #include "PHG4BlockGeom.h" #include "PHG4BlockGeomContainer.h" #include "PHG4Cell.h" // for PHG4Cell, PHG... #include "PHG4CellContainer.h" #include "PHG4Cellv1.h" #include "PHG4CellDefs.h" #include <phparameter/PHP...
28795bb570925d6790ea58d07710751b54e85cc9
8cbcaa057242f3f3824c218e8c02bbc08fa4f589
Dolbae/socket
/client.cpp
C++
cpp
662
no_license
#include "stdafx.hpp" #include <iostream> #include <string> int main(int argc, char const *argv[]) { int client_fd = socket_connect(IPADDRESS, PORT); std::string buf; while (true) { std::getline(std::cin, buf); if (buf == "q") { close(client_fd); break; } else { size_t size = buf.si...
90c7ace9ffdf5cd49b02aac69b3f805ff3b0627c
40b51d6c2cefdd56d37ca4c7ec406cf7271ead40
likewind1993/leetcode
/solutions/leetcode994/main.cpp
C++
cpp
2,571
no_license
#include <iostream> #include <vector> using namespace std; class Solution { public: int Rotting(vector<vector<int>>& grid, int m, int n, vector<int>& rotted_orange, int& num_freash_orange){ vector<int> temp; for (auto iter : rotted_orange) { int i = iter / n, j = iter % n; i...
ef486f73fd0cea7c978033ec40ad1d433225de31
6ca51d7c4176b48c6aa21b39e10dd867130266ac
dummas2008/chromium
/src/content/browser/media/android/provision_fetcher_impl.cc
C++
cc
2,158
permissive
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/browser/media/android/provision_fetcher_impl.h" #include "content/public/browser/android/provision_fetcher_factory.h" #include "content...
64f656e45964fd73da3b8dd0ab91f0b217dbffb4
b95473adf533777c2b1419bc2de61fcb7686c550
vishalbeppurana/100Programs
/42/sumof3digits/main.cpp
C++
cpp
355
no_license
#include<iostream> using namespace std; int main() { int i,sum=0,a[3]; cout<<"Enter the 3 digit numbers;"<<endl; for(i=1;i<=3;i++) { cin>>a[i]; } cout<<"The 3 digit numbers are:"<<endl; for(i=1;i<=3;i++) { cout<<a[i]<<endl; sum=sum+a[i]; } cout<<"Sum...
e90acdcbc5e1f21cb2d0c3813c86161181114e8f
44bceecc1fa8687092742be4f0171f87cdda58c4
aplqo/exercises
/bzoj/2216-LightningConductor.cpp
C++
cpp
1,545
no_license
#ifdef APTEST #include "debug_tools/program.h" #endif #include <algorithm> #include <cmath> #include <functional> #include <iostream> #include <iterator> #include <type_traits> using namespace std; const unsigned int maxn = 5e5; typedef double real; unsigned int a[maxn + 10]; real mx[2][maxn + 10]; inline real cost(c...
9aafe6ca2224400b92f2f2e7d3d0094bef31948b
a030ebbab79b991251874f122f96b35a3bfe1e12
ZGIS/waspmoteapi
/waspmote-api/Wire.cpp
C++
cpp
20,651
no_license
/* * Modified for Waspmote by Libelium, 2009-2017 * * Copyright (c) 2006 Nicholas Zambetti. All right reserved. * * This program 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 versi...
81e809e8ab4a9c05e90253f03a6bf0f66207c085
5d20661e772dd3d23035ca4ecef842dbcbaa35b1
gamehacker1999/DX12Engine
/include/NRI/Source/Validation/FrameBufferVal.hpp
C++
hpp
764
no_license
/* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. NVIDIA CORPORATION and its licensors retain all intellectual property and proprietary rights in and to this software, related documentation and any modifications thereto. Any use, reproduction, disclosure or distribution of this software and related docum...
386a8dfd7e9a3c80e91f9b015eeaf64d3d9315dc
a657c2e3a2d20ea40435a92a6b43fb9aea523163
powerbf/boomerang
/src/boomerang-loaders/exe/dos/ExeBinaryLoader.cpp
C++
cpp
9,247
permissive
#pragma region License /* * This file is part of the Boomerang Decompiler. * * See the file "LICENSE.TERMS" for information on usage and * redistribution of this file, and for a DISCLAIMER OF ALL * WARRANTIES. */ #pragma endregion License #include "ExeBinaryLoader.h" #include "boomerang/db/binary/BinaryImage.h" ...
d7117c58d033a70d5b6edc8f8b79d4b884cfe4e5
b87836282ed2d0a95174485d5b53a1e0be381ef8
chanfool21/Competitive-Coding
/summer_love/others/nqueen.cpp
C++
cpp
1,277
no_license
#include<bits/stdc++.h> using namespace std; int sol[10][10]; bool issafe(int m, int n, int r) { for(int i = 0; i < r; i++) { if(sol[m][i] == 1 && (i != n)) return false; } for(int i = 0; i < r; i++) { if(sol[i][n] == 1 && (i != m)) return false; } for(int i = 0; i < r; i++) { for(int j = 0; j < r...
29cd04e12eba05cc563ec16b6fc6cfea0d032266
a8c2ad3fcbb9def01900f1f3f39106db16cec276
hykilpikonna/School-CppAssignments
/projects/p01-yahtzee/rand/yahtzee-randgen.cpp
C++
cpp
492
permissive
// // Created by Hykilpikonna on 11/17/20. // #include "iostream" #include "iomanip" #include "algorithm" #include "vector" #include "map" using namespace std; int main() { unsigned long long seed = (unsigned) time(nullptr); srand(seed); for (int i = 0; i < 10; i++) { vector<int> rands(5); ...
f037d3577237de4681e10eb3d4b20394233d3f56
8612a96cccdd066d7d8776325bb21953082f9ae8
jjzhang166/CQC
/Source/AllProjects/Drivers/MQTT/Shared/MQTTSh_ValMaps.hpp
C++
hpp
40,391
permissive
// // FILE NAME: MQTTSh_ValMaps.hpp // // AUTHOR: Dean Roddey // // CREATED: 03/10/2019 // // COPYRIGHT: Charmed Quark Systems, Ltd @ 2020 // // This software is copyrighted by 'Charmed Quark Systems, Ltd' and // the author (Dean Roddey.) It is licensed under the MIT Open Source // license: // // https://opensour...
5b86e925bebd1d8129037831f2c3128d57b7add8
f49585ec3a47a3f1e4b07837946862d75fd55a46
howlettjames/Distributed-Systems-Development
/1_Unit/5_Clase/2_Programa/Coordenada.cpp
C++
cpp
240
no_license
#include <iostream> #include <cmath> #include "Coordenada.h" using namespace std; Coordenada::Coordenada(double xx, double yy) : x(xx), y(yy) { } double Coordenada::obtenerX() { return x; } double Coordenada::obtenerY() { return y; }
e8107834a76a7f9e69621cf976ac16ccd75e3652
08ae50b461c8bf4a63f4e49add3a34f5a0e64260
jfanggg/codeforces
/No257C.cpp
C++
cpp
1,547
no_license
#include <iostream> #include <iomanip> #include <math.h> #include <vector> #include <algorithm> #define PI 3.14159265358979323846 using namespace std; struct pt { int x, y; pt(int x, int y) : x(x), y(y) {} }; int n; vector<pt> pos_pts; // [0, 180) vector<pt> neg_pts; // [180, 360) vector<pt> all_pts; // + if C...
5e93e78c7e25ec6c0428d9117f1e768ba223712f
9dcb5e3a4902cd2190520ee76992caec8b1e16ad
nrobin/mango-examples
/jpeg_multithread/jpegtest.cpp
C++
cpp
1,662
no_license
/* MANGO Multimedia Development Platform Copyright (C) 2012-2017 Twilight Finland 3D Oy Ltd. All rights reserved. */ #include <mango/mango.hpp> using namespace mango; using namespace mango::filesystem; // ----------------------------------------------------------------- // pipelined jpeg reader // -----------...
8a30572a0262788a903d70b50981173334fc5e03
985a41cda005a9f1e09e22103f7001be460c6eb2
xialixin/chromium
/chrome/browser/chromeos/dbus/vm/vm_permission_service_provider.cc
C++
cc
13,050
permissive
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/dbus/vm/vm_permission_service_provider.h" #include <memory> #include <utility> #include <vector> #include "base/featur...
912268f9cf209c799c8acd98ce571918151ac744
5db60fb1348ee80506b9bdb7686d91b5491702b0
laserhammer/TechnoRush
/TechnoRush/TechnoRush/Singleton.cpp
C++
cpp
216
no_license
#include "Singleton.h" bool Singleton::exists = false; Singleton* Singleton::single = nullptr; Singleton* Singleton::getInstance() { if(!exists) { single = new Singleton(); exists = true; } return single; }
816048935415714d257312e13026d7c3b04a5235
ca9fa3390a18a8caa2759db997678f838a47299b
sadrulhc/chromium
/components/captive_portal/content/captive_portal_service.cc
C++
cc
12,998
permissive
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/captive_portal/content/captive_portal_service.h" #include "base/bind.h" #include "base/callback_helpers.h" #include "base/check_...
856e3eff14809b36c26359a602df451d4024c197
d07802869c667aa2373b1927b6385648ec015c09
Samsung/TizenRT
/external/libcxx-test/std/containers/sequences/vector.bool/swap_noexcept.pass.cpp
C++
cpp
3,594
permissive
/**************************************************************************** * * Copyright 2018 Samsung Electronics 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...
560d794fa07d3f1c1c41417bd9fa63177734fd97
943d1f52eaaa240a1db6c283b09b3fd93e12e8e4
monocilindro/MBES-lib
/src/examples/datagram-raytracer.cpp
C++
cpp
6,918
permissive
/* * Copyright 2020 © Centre Interdisciplinaire de développement en Cartographie des Océans (CIDCO), Tous droits réservés */ /* * \author Jordan McManus */ #ifndef MAIN_CPP #define MAIN_CPP #ifdef _WIN32 #include "../utils/getopt.h" #pragma comment(lib, "Ws2_32.lib") #endif #include <Eigen/Dense> #include <fstrea...
54c80a5ebb69b96c15773993c9e3d60fc36ae34e
f5763a4f2d66714e7214e4c6508387bcb06a372f
eujuu/Algorithm
/baekjoon/백준 2750 수 정렬하기.cpp
C++
cpp
333
no_license
#include <iostream> #include <string> #include <vector> #include <math.h> #include <algorithm> using namespace std; int main() { int n, leng = 0; cin >> n; vector<int>arr; for (int i = 0; i < n; i++) { int tmp; cin >> tmp; arr.push_back(tmp); } sort(arr.begin(), arr.end()); for (auto num: arr) cout << n...
6f2ae3b62b79d8b2159c1fbc84e90dfd35da6388
976a69564de55097cea59411e8077b9d4589b3ea
djoij/Computer-Graphics
/openGL/ss.cpp
C++
cpp
17,395
no_license
//Adam Coffman //SolarSystem.cpp //3D Texture Mapped Model of the Solar System //Modeled to An Approximate Logarithmic Scale //Particle System For The Sun Implemented //If we're in the windows environment load the appropriate libraries #if defined(_WIN64) #include "glut.h" #include <windows.h> #else #include <GL/gl...
6448459a7bc15cc7f4cce64769b366b06232515a
956add6b73abf6658695866e8ffa356e87409fb5
miya540/yeahhhhh
/A6.cpp
C++
cpp
974
no_license
#include<iostream> #include<stdlib.h> using namespace std; int gcd(int m , int n){ } int lcm(int m, int n){ } int P(int m, int n){ } int main(){ int input; while(1){ cout >> "你想幹嘛?" >> endl >> "(1)最大公因數" >> endl >> "(2)最小公倍數" >> endl >> "(3)次方" >> endl >> "(4)掰掰啾啾" >> endl >> "...
5891505d4d10a4bff45e066aab4ab71609687fe5
bfc0470e7969811c5803be0450c33591ccd1b550
dreameatergames/Rizzo_Dreamplaces
/src/cmd.cpp
C++
cpp
32,353
no_license
/* Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in th...
4dabcb1d66ca144fdbca63e9e9f069d41f2706e1
0e974c677765362d8475febceddb9a26986bc064
Ashkenazic/intel-graphics-compiler
/IGC/Compiler/Optimizer/OpenCLPasses/KernelArgs.cpp
C++
cpp
44,669
permissive
/*===================== begin_copyright_notice ================================== Copyright (c) 2017 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, includi...
fc15d6458c5af50bce07da5804ee42dcef731e30
22bec00f56a0f27e435b84ea37ae612c818fa95e
JaredChew/DGT_GP_Ass2
/DGP2544/src/gameObject/powerUp.cpp
C++
cpp
1,259
no_license
#include "powerUp.h" void PowerUp::setType(int type) { this->type = type; } int PowerUp::getType() { return type; } int PowerUp::getMoveSpeed() { return xVel || yVel; } bool PowerUp::getDeployed() { return deployed; } void PowerUp::setMoveSpeed(int moveSpeed) { xVel = moveSpeed; yVel = moveSpeed; } void Pow...
a761bb1c92ca125aac180b6b3606123d4e814073
ca2d9d654039752abac0843fa6faa23a04b562c0
HemantVermaDU/Data_Structure
/fact.cpp
C++
cpp
625
no_license
/* * C++ Program to Find Factorial of a Number using Iteration */ #include <cstring> #include <iostream> #include <cstdlib> #define ll long long using namespace std; /* * Find Factorial of a Number using Iteration */ ll fact_iter(int n) { ll result = 1; for (int i = 1; i <= n; i++) { ...
349337742d8245044b243845a9be637258979f09
08b41dd1e04652afbd7fe5827f6645aebe93529d
msrLi/portingSources
/ACE/ACE_wrappers/TAO/orbsvcs/tests/ImplRepo/ping_interrupt/Test_i.cpp
C++
cpp
301
permissive
/* -*- C++ -*- */ #include "Test_i.h" #include "ace/OS_NS_unistd.h" Test_i::Test_i (CORBA::Short server_num) : server_num_ (server_num) { } Test_i::~Test_i () { } CORBA::Short Test_i::get_server_num (const CORBA::Short delay_secs) { ACE_OS::sleep (delay_secs); return this->server_num_; }
e32617ef63e38ee2671db420c7a18e4c41163ce3
eede7fae5b527d89f8e9037d4d7c0a1866020f7e
worthenmanufacturing/tcad-charon
/src/evaluators/Charon_RecombRate_Defect_Cluster_decl.hpp
C++
hpp
2,162
no_license
#ifndef CHARON_RECOMBRATE_DEFECT_CLUSTER_DECL_HPP #define CHARON_RECOMBRATE_DEFECT_CLUSTER_DECL_HPP /////////////////////////////////////////////////////////////////////////////// // // Include Files // /////////////////////////////////////////////////////////////////////////////// // Charon #include "Charon_interp...
a597f12e6c75444ffad62ef75970e1bbf776f07d
f06e6b018b0691dd23f40f8cebfa2755b126188f
benhe119/MalwareHunter
/MalwareHunter.cpp
C++
cpp
17,147
permissive
// MalwareHunter - A malware detection tool for Windows operating systems. // // Author: Jacob Gajek <jgajek@gmail.com> // // This code is in the public domain. #include "stdafx.h" #include <mscat.h> #include <SoftPub.h> #include <strsafe.h> #include <wincrypt.h> #include <Shlwapi.h> #include <string> #pragma comme...