blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0edba5fa21064f2655f4fc0836d176540ab6d1dd | cc153bdc1238b6888d309939fc683e6d1589df80 | /qcril-hal/include/interfaces/voice/QcRilUnsolCallStateChangeMessage.h | 7e2aea536bba45fcc8c0a2e7e75727e713276a95 | [
"Apache-2.0"
] | permissive | ml-think-tanks/msm8996-vendor | bb9aa72dabe59a9bd9158cd7a6e350a287fa6a35 | b506122cefbe34508214e0bc6a57941a1bfbbe97 | refs/heads/master | 2022-10-21T17:39:51.458074 | 2020-06-18T08:35:56 | 2020-06-18T08:35:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | h | QcRilUnsolCallStateChangeMessage.h | /******************************************************************************
# Copyright (c) 2018 Qualcomm Technologies, Inc.
# All Rights Reserved.
# Confidential and Proprietary - Qualcomm Technologies, Inc.
#******************************************************************************/
#pragma once
#include <... |
7cc8a9a588c06792a126fef180dda5a556c71d08 | cd978f71def7a6ccaf0b485e5046895525e5c8fe | /user_models/src/mpolsrv2/mp_tlv_compress.h | ff2bdbea9d8d2dc40045e4b7cbeb599dd380ef38 | [] | no_license | yijiazi/mpolsr_qualnet | a92625215e8dcafa0ed04f40fc1f1a3aa2266cbd | fc9b95bfe2f886ccedcfb8d95028d5f8a3513e49 | refs/heads/master | 2016-09-05T14:09:56.558074 | 2015-06-26T23:05:32 | 2015-06-26T23:05:32 | 38,138,091 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,124 | h | mp_tlv_compress.h | /************************************************************************************************
* Copyright (C) 2010 *
* Multipath Extension of MP-OLSRv2
by Jiazi Yi (Ecole Polytechnique Nantes,France) jiazi.yi@univ-nantes.fr *
*
* This program is distributed in the hope that... |
c08a6a7145c596825eae4ae1c326eff51328fb17 | 6202ce6e53c4634e702937bd3d98068dcb971d1f | /Generator_BackEnd/DS345.cpp | cce51fd2759af55ee8ed239e9738e45fd4859658 | [] | no_license | sovink70/Automation_of_experiments | 7723dce41cf799aeb7d158c2ab297daec537b7f0 | 6b80ecdd14cd58309116a9f4de8de83429b5f6c7 | refs/heads/master | 2020-07-25T00:06:35.208329 | 2020-03-24T08:38:32 | 2020-03-24T08:38:32 | 208,092,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,319 | cpp | DS345.cpp | #include "DS345.h"
DS345::DS345()
{
this->serial = nullptr;
this->srs = nullptr;
init();
}
DS345::~DS345()
{
}
void DS345::initAmplitudeTypeList()
{
this->amplitudeTypeList.clear();
this->amplitudeTypeList.push_back("VP");
this->amplitudeTypeList.push_back("VR");
this->amplitudeTypeLi... |
f551e5e06da4d53d681de1153192417374f4db12 | 4f951e96accafe3ae8f687d18e142a8c9c657d05 | /classes/maze.cpp | 911a9ec44b73871889c227aebe93cf14bc611716 | [] | no_license | amey16/Important-codes | ef9ef780d81f57198959ad784b242b284d89c4af | 6ddee5e4c52bdefbbf0bbcf13b6c7b852ce67746 | refs/heads/master | 2022-06-20T12:10:49.642747 | 2020-05-12T09:15:51 | 2020-05-12T09:15:51 | 260,652,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,567 | cpp | maze.cpp | <<<<<<< HEAD
#include<iostream>
#include<vector>
#include<string>
using namespace std;
vector<string> gmp(int sr,int sc,int dr,int dc){
if(sr==dr && sc==dc){
vector<string> bres;
bres.push_back("");
return bres;
}
vector<string> paths;
if(sr<dr){
vector<string> nh=gmp(sr... |
71a156ffa52e884cf923fb6d5fd33109bd572a02 | 568c9e7c35262be7e1bea826191ca783bf12e269 | /FC3 workspace/CPP/prb/Src/Approx.cpp | 459fc7859b5b0e376f43e13081ac26977bf9b242 | [] | no_license | sdlwdh/FC3 | 6e9afea74df78c0d65aaabf5eb90bec41af20d9f | 97cb0f71669236c6e5c8c398f1c03e02cebe2cca | refs/heads/master | 2022-04-24T03:57:33.908247 | 2020-04-28T22:00:15 | 2020-04-28T22:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,520 | cpp | Approx.cpp | #include "prb/Approx.hpp"
#include <gsl/gsl_chebyshev.h>
double gsl_f(double x, void* func)
{
auto& f = *static_cast<std::function<double(double)>*>(func);
return f(x);
}
class ChebyshevApprox : public cfl::IApprox
{
public:
ChebyshevApprox(const std::function<unsigned(double)> &rSize,
dou... |
7cec50c12fc40b25dc18275a8d427b5bd6b87b0a | 2a5bcc3120a8c456bca0af8822a253ba326f1b51 | /Phone-book.CPP | d2be70e7ea8911235fd97e6fe41ce5f38656798f | [] | no_license | Sanchay-Goel/Phonebook | e4499a784cc93777e3bb3c928f54b9e8858e09b0 | 7ceb49d272feb22055dca32a1f05faf44f8be5cc | refs/heads/master | 2020-09-09T14:01:46.367786 | 2019-11-20T18:03:43 | 2019-11-20T18:03:43 | 221,465,761 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,348 | cpp | Phone-book.CPP | #include<iostream>
#include<fstream>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
#include<stdio.h>
using namespace std;
int add(void);
int delete_rec(char *ch);
int modify_rec(char *ch);
int search_rec(char *ch);
int display(void);
void sortph();
class phone
{
char name[30];
char mobile[15];
cha... |
5eb9d1790fb1ab86a1aebc8523da6e87bce35cdf | 3204dc43bb60c308d674563d318b0e4190c46412 | /ham/include/ham/util/cpu_affinity.hpp | d4a35cd01dfd5a0aa51f737ad997fe50874b0628 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | noma/ham | cab51deadc8700546690093cc5e73d64441435ca | c9cbf447b8fa21d33db00a4aec606536638e6e14 | refs/heads/master | 2021-01-17T20:45:12.111638 | 2019-11-08T06:39:25 | 2019-11-08T06:39:25 | 23,577,549 | 26 | 5 | BSL-1.0 | 2019-10-29T16:46:35 | 2014-09-02T12:21:19 | C++ | UTF-8 | C++ | false | false | 441 | hpp | cpu_affinity.hpp | // Copyright (c) 2013-2014 Matthias Noack (ma.noack.pr@gmail.com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#ifndef ham_util_cpu_affinity_hpp
#define ham_util_cpu_affinity_hpp
namespace ham {
namespace ut... |
a9478ce6e3d4abe438aa0ef0b493d492e59020ba | f7b714e8bfecfa0f3df4c1f8e367005e51cc94c0 | /TechnologyPack/ACD-Purley/12-update-5.00/Modified_OpenSource/acd_bafi_generator-src/tor_icx.hpp | bf1667e5d62b8f3b0dc49e9a5271f4d7cf967c2a | [] | no_license | ami-megarac/OSSW-v12-update-5.00 | 1f3e79f4c54518a007da0680bd6d26d14e218e71 | 51081f292423a6a7fbac3f3ab207ba106a26c693 | refs/heads/main | 2023-07-08T18:17:06.867766 | 2021-08-11T09:46:28 | 2021-08-11T09:46:28 | 386,598,287 | 2 | 2 | null | 2021-08-11T09:46:29 | 2021-07-16T10:29:19 | C | UTF-8 | C++ | false | false | 13,095 | hpp | tor_icx.hpp | /******************************************************************************
*
* INTEL CONFIDENTIAL
*
* Copyright 2020 Intel Corporation.
*
* This software and the related documents are Intel copyrighted materials, and
* your use of them is governed by the express license under which they were
* provided to ... |
a6c454163b07cf963dc7680b22d313e70a94821c | f1ae49086a9de49f84b9e828e9cd54b6f964c0d3 | /ver201604template.sdk/test_sd/src/markstat/Sim/s0XfmrSim.h | 17b30812112f850b097593755bf1f6a1e302c290 | [] | no_license | vivozhang/zynq_zturn_template_prj | ccb43d69a782062a2e54146c31043567ba9d7876 | f370466cce75f814223d0c3a0c225a7e4baf6117 | refs/heads/master | 2021-01-20T07:20:46.081080 | 2017-08-26T17:09:45 | 2017-08-26T17:09:45 | 89,991,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,890 | h | s0XfmrSim.h | ///////////////////////////////////////////////////////////////////////////////
//
// TITLE Transformer Isim class.
//
// DESCRIPTION
// This file contains the definition for the class.
//
// COPYRIGHT Copyright (c) 2011
// by GENERAL ELECTRIC COMPANY U.S.A.
//
// DOCUMENTATION
// <rela... |
cd408f75d75232dc556a69d6ad46283bbf196651 | 144eff0111f9e69cb82b5e30840cab8198b0c708 | /main.cpp | e414607d2f64afc0bbbf7608b6fdeb6533b386eb | [] | no_license | JSybrandt/MedlineGraphGenerator | 7b41309356bd30ea9e08b35853de59d3d3e92732 | e9c62b7b3eb3bbb60701b8ed584f1945c8c38bb8 | refs/heads/master | 2021-01-11T04:17:40.829601 | 2017-03-21T13:45:06 | 2017-03-21T13:45:06 | 71,192,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,112 | cpp | main.cpp |
#include <stdio.h>
#include<iostream>
#include<dirent.h>
#include<vector>
#include<unordered_map>
#include<fstream>
#include<regex>
#include<algorithm>
#include<functional>
#include<cctype>
#include<locale>
#include<sstream>
#include <sys/wait.h>
#include"omp.h"
#include"Abstract.h"
#include"Dict.h"
#include"Vec.h"
#i... |
e90c9b2fab233c30abbfc9e1c28d24e65bf860c6 | 2bd5312ac39cd8f0945714bef78c539a5667e236 | /Ecriture_Fichier/individu.h | 77cba03021c7b07dee97e9d5c339d6983a8fd057 | [] | no_license | ArnaudSchmidt/CPP_Ecriture_Fichier_ArnaudSchmidt | b7c9cd8aa9904987d2e13193dfd37488f6764b65 | 35fe0e67fd97b8af31373e516ef2dbbd94eaa77a | refs/heads/master | 2020-04-10T02:42:13.541985 | 2018-03-07T15:31:35 | 2018-03-07T15:31:35 | 124,256,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 540 | h | individu.h | #pragma once
#include <iostream>
#include <stdlib.h>
#include <string>
using namespace std;
class individu
{
string NumeroSecuriteSociale;
string Nom;
string Prenom;
int JourNaissance;
int MoisNaissance;
int AnneeNaissance;
string Profession;
public:
individu( string nNSS, string nNom, string nPre, int nJN... |
d6289e8af2e71524a4ac41894c6b78b7945e4606 | 044f022c5ab9ca181d462991142068e6d1e24fde | /Classes/BackgroundLayer.h | ea7358f0a7fae7f03cbe764adb7ea24c3ec65cb6 | [] | no_license | thieuhuyenuit88/DemoCocos2dxGluzzerGame | c81d0a65ecddedab423c2c7f33b24f986d226c05 | 278018c69dbc54f6717d9a427e06205dfac8b9b5 | refs/heads/master | 2021-01-20T06:14:45.892061 | 2017-03-05T05:17:16 | 2017-03-05T05:17:16 | 83,867,618 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | h | BackgroundLayer.h | #pragma once
#include "cocos2d.h"
#include "CCloud.h"
USING_NS_CC;
class BackgroundLayer: public LayerColor
{
private:
/*Sprite* cloud1;
Sprite* cloud2;
Sprite* cloud3;
Sprite* tree;
Sprite* lamp;*/
Vector<CCloud*> clouds;
CCloud* AddCloud(const float speed, const Vec2 position,
const int zIndex, char* fil... |
a877f212fae380560bee0f4bb08a5b8391cd1be4 | f6e48f312ea09d2ac67e549192acedbd42bf0e72 | /Q6/delete all value n in a linked list.cpp | 8d04c95decc098661b55b8abefe587fdfda733e7 | [] | no_license | ekanshbari/dataStructure | f96fafe0f9ea77e0e9d80253fb2a4d19aa471192 | 63dcef55da738105aa3fac84108f4384a21a6f4c | refs/heads/master | 2020-12-12T04:18:40.626348 | 2020-01-29T18:11:47 | 2020-01-29T18:11:47 | 234,040,222 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,166 | cpp | delete all value n in a linked list.cpp | #include<iostream>
using namespace std;
struct node{
int info;
node *link;
};
node *start=NULL;
//insert
void insertAtEnd(int item){
node *n1=new node;
n1->info=item;
n1->link=NULL;
node *ptr=start;
if(start==NULL)
{
start=n1;
}
else
{
while(p... |
d99c8a2fcc63874a636da1140139e3d11914ca49 | d3718ed294473a07c1ccf38710a057e4a7af830a | /server/src/yolo_detector.hpp | 4e1017f3d8119ac5992af852e8151934e7c17d20 | [
"MIT"
] | permissive | vfbsilva/darknet_server-1 | ff98783a4deb2f3df732254be5972df7063e772e | adb94237804e62bcccbbe5f7810da60640aef1d9 | refs/heads/master | 2022-07-09T03:14:43.862113 | 2020-05-20T01:23:28 | 2020-05-20T01:23:28 | 299,956,122 | 1 | 0 | MIT | 2020-09-30T15:00:05 | 2020-09-30T15:00:04 | null | UTF-8 | C++ | false | false | 675 | hpp | yolo_detector.hpp | #ifndef __YOLO_DETECTOR_H
#define __YOLO_DETECTOR_H
#include <vector>
#include <string>
#include <opencv2/opencv.hpp>
#include "yolo_v2_class.hpp"
#include "DetectorInterface.hpp"
class YoloDetector : public Detector, public DetectorInterface
{
private:
std::vector<bbox_t> det_vec;
std::vector<std::string> obj_na... |
a5f25be1d2ea1e397de6e0981c3fd2c0bd4b9ab0 | bb06974ef3f761e258218fc2bcb013a157a0d20b | /src/lola/iface/tools/pose_msg_server/main.cpp | d7b7ba68f5c9db861db8048d1f5e09b1d1d883c8 | [
"MIT"
] | permissive | am-lola/lepp3 | 54de97d95b11e9e0f8b94911da1a1f3c41e90694 | 7f92ce61bccad984e18ce86da0d8a1b9c48feb65 | refs/heads/master | 2021-06-26T18:59:13.409375 | 2020-11-01T17:52:22 | 2020-11-01T17:52:22 | 40,123,747 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 6,418 | cpp | main.cpp | #include<sockets_common.hpp>
#ifndef _WIN32
#include <ifaddrs.h>
#else
#include <iphlpapi.h>
#endif
#include <sys/types.h>
#include <algorithm>
#include <string>
#include <vector>
#include <iostream>
#include <thread>
#include <chrono>
#include <tclap/CmdLine.h>
// contains defintions for HR_Pose, HR_Pose_Red, etc
... |
de9b7b790411ef20298a71141d16199fc8320a77 | 7d42bca9037603086dc3f4fc4d97c17b96be8022 | /src/FixBST.cpp | de52b90cbf3dbaaf1bb1113be73a5e57b6ee5d86 | [] | no_license | Bhavishya9/MissionRnD-C-BinarySearchTree-Worksheet | 69b00e4a6d622b0ff6e94d1c15239ab4171e934c | 1b566a72c26847f5c09058d52f3400beb218d282 | refs/heads/master | 2021-01-13T00:59:02.631947 | 2016-04-02T12:37:23 | 2016-04-02T12:37:23 | 54,687,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,406 | cpp | FixBST.cpp | /*
Given a Binary Search Tree ,with two misplaced Node .Find those nodes and fix them .
Do not create a new tree ,Modify the original tree
Ex : In the below tree 3 and 30 is misplaced .
5
/ \
2 3
\
30
When fixed 30 will be right node of 5 , and 3 will be right node of 2 .
Ex :In the below tree 1 and 20 are ... |
fb3c6479611214b3aa4fc9e53aee9e44661d5fe7 | 3035a858d4acaeeff1b64ed6fbfaa027873a87b3 | /Count of Smaller Numbers After Self_470747204.cpp | 4a88c3517658c26d16f7b1f153841b6aeacd4f4a | [] | no_license | mandeepmourya007/leetcode | 7de8097d001cb5385cbb5c6842ce74624559cf90 | 0d3f28459d7053dbb5ff301df11d45eb663f3127 | refs/heads/main | 2023-07-12T22:46:00.704813 | 2021-08-28T12:37:48 | 2021-08-28T12:37:48 | 378,700,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,450 | cpp | Count of Smaller Numbers After Self_470747204.cpp | class Solution {
public:
void merge(vector<pair<int,int>> &nums,int l,int m,int r,vector<int > &c)
{
vector< pair<int,int> > temp(r-l+1);
int i=l;
int j=m+1;
int k=0;
while(i<=m && j<=r)
{
if(nums[i].first<=nums[j].first)
{... |
b76c8b0a91222c57d2710a7936f06ecf9361e8c2 | 68fac5700813376b3dbb3fb7a105d696256a3532 | /uberstealthRemote/RemoteStealthServer.cpp | 4a033eee59656bd8cf381645e4758d33b6f09d49 | [] | no_license | nihilus/uberstealth | b0a970ed7da6f6641e547f3d1ec16abff3701e39 | ad6576ae582d5345707dfded35d4aeaa87475779 | refs/heads/master | 2016-09-06T14:46:19.223149 | 2014-09-14T00:15:34 | 2014-09-14T00:15:34 | 23,511,166 | 15 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 2,477 | cpp | RemoteStealthServer.cpp | #include <boost/filesystem.hpp>
#pragma warning(disable : 4244 4512)
#include <boost/thread.hpp>
#pragma warning(default : 4244 4512)
#include <boost/bind.hpp>
#include <boost/smart_ptr.hpp>
#include "RemoteStealthServer.h"
#include "RemoteStealthSession.h"
#include "TemporaryConfigFile.h"
uberstealth::RemoteStealthSe... |
54b0bbcd41e285d9324f177e0befb3b1c9ca3dcc | 429746edaa3f2bb1ef5459c0b6bbb597c2c4fdc7 | /ARX/LineManageExtension/main/source/ARX/ArxWrapper.cpp | 255a3d279b7f845979b02f65686ec41c36e3edeb | [] | no_license | qz0222/autocad | 6b67b77bc79413cbb8d48512cee0aff208eb7cbf | 1faa2ce070123dfcfa8997188e4f8615fd63eaab | refs/heads/master | 2021-09-03T11:31:42.995220 | 2018-01-08T18:45:35 | 2018-01-08T18:45:35 | 106,327,346 | 2 | 2 | null | null | null | null | GB18030 | C++ | false | false | 29,380 | cpp | ArxWrapper.cpp | #include <ArxWrapper.h>
#include <GlobalDataConfig.h>
#include <LineCategoryItemData.h>
#include <LineConfigDataManager.h>
#include <LineEntryData.h>
#include "acedads.h"
#include "accmd.h"
#include <adscodes.h>
#include <adsdlg.h>
#include <dbapserv.h>
#include <dbregion.h>
#include <gepnt3d.h>
//symbol table
#i... |
a0f045ca21bff708223d7dbaf68eba847dff5b1b | 8c881345865a01b5c63a5bb076f126403716420c | /机器视觉与图像处理的C++和MATLAB实现/chapter15/DigitRec_vc6/PreprocessDlg.h | 7507e1c91f27c9351c75e360efed992bd2d25720 | [] | no_license | Asher-1/C_Plus_Plus-projects | f758df626de074a5a5071c6bf1ae08cfb5c4d2e3 | 56941f1a76cf1645df5cc0fcb5529eddc64643f2 | refs/heads/master | 2022-01-28T13:03:24.493838 | 2019-05-30T13:06:35 | 2019-05-30T13:06:35 | 160,189,947 | 3 | 2 | null | null | null | null | GB18030 | C++ | false | false | 1,460 | h | PreprocessDlg.h | #if !defined(AFX_PREPROCESSDLG_H__D1C46F24_ADE0_47C1_BE6D_08FA388EBB13__INCLUDED_)
#define AFX_PREPROCESSDLG_H__D1C46F24_ADE0_47C1_BE6D_08FA388EBB13__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PreprocessDlg.h : header file
//
///////////////////////////////////////////////////////////////... |
583161849c5c147a127aefb1bf1104a647cf42f0 | 3cea33afbc3f935808ee0d7ceacb6b58c4a43838 | /Socket通信/TCP_Test/TCP_Server/TcpServer.cpp | f5edb3868725e80e68d8a626daa2446a8048b93c | [] | no_license | hongwueryi/CommonDemo | e02454c335f4955e6d0f69945ceebf8299ea556a | a49e07da158af235abd884a0adffb9380a229a79 | refs/heads/master | 2023-08-24T01:33:55.086278 | 2021-10-18T02:55:54 | 2021-10-18T02:55:54 | 403,879,661 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,768 | cpp | TcpServer.cpp | #include "stdafx.h"
#include "TcpServer.h"
// 服务端套接字
SOCKET g_ServerSocket;
// 客户端套接字
SOCKET g_ClientSocket;
// 绑定端口并监听
BOOL SocketBindAndListen(char *lpszIp, int iPort)
{
// 初始化 Winsock 库
WSADATA wsaData = {0};
::WSAStartup(MAKEWORD(2, 2), &wsaData);
// 创建流式套接字
g_ServerSocket = ::socket(AF_INET, SOCK_STREAM,... |
f66f303599bb1a391f1b20e0977dcebbb92a7118 | 6409650a23f65136afd961206c2a8870e1f78c7e | /ConceptEngine/ConceptEngine/Concept-Engine/Time/CETimestamp.h | f30e45fa438b1d226d8876f3ed180ff28c3e4f21 | [
"MIT"
] | permissive | Ludaxord/ConceptEngine | 830486b52a72e1fe7a4b821b4f725443ff180afe | 16775bc9b518d4fd4c8bd32bb5f297223dfacbae | refs/heads/master | 2023-08-16T11:33:00.694333 | 2021-10-07T21:11:00 | 2021-10-07T21:11:00 | 293,779,912 | 6 | 0 | MIT | 2021-08-16T20:33:47 | 2020-09-08T10:42:33 | C++ | UTF-8 | C++ | false | false | 3,713 | h | CETimestamp.h | #pragma once
#include <windows.h>
#include "../Core/Common/CETypes.h"
#ifdef COMPILER_VISUAL_STUDIO
#pragma warning(push)
#pragma warning(disable : 4251)
#endif
namespace ConceptEngine::Time {
class CETimestamp {
public:
FORCEINLINE CETimestamp(uint64 Nanoseconds = 0) : TimestampInNS(Nanoseconds) {
}
FORCEI... |
c3b75e82f2f0929bfe7db0bf8f1c66871fba943b | 773f01db5ff14465feb1f7217029613ef110c34b | /deps/bindings/src/node_bindings.cc | 11a19111de3f22a844f111eace0a83f916c20f23 | [
"LicenseRef-scancode-unicode",
"Artistic-2.0",
"NTP",
"MIT",
"BSD-3-Clause",
"NAIST-2003",
"Zlib",
"ICU",
"ISC",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | kisbg/node-jerryscript | 1a4b04568fea217ef15ec88b81ba0fbc73f86b22 | 41aad6b0ff256aa7f457a58b6f2ed88b6479ca70 | refs/heads/master | 2023-04-04T02:16:29.994213 | 2020-07-24T07:57:28 | 2020-07-24T08:21:35 | 299,860,757 | 0 | 0 | NOASSERTION | 2020-09-30T08:47:33 | 2020-09-30T08:47:32 | null | UTF-8 | C++ | false | false | 4,357 | cc | node_bindings.cc | /*
* Copyright (c) 2020-present Samsung Electronics Co., Ltd
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later v... |
7e1bee96a5fead8e79cba35a4840cb637ee7a079 | 60e82a2de20e0f4bf12ca5b79f0682d7da97087b | /cpp/src/pegasus/catalog/catalog_test.cc | 5bac707e7328cec9fd8b1694476df12a81904436 | [
"Apache-2.0"
] | permissive | jerqi/pegasus | da6410e2ed110d86d44c1ffc5ce3f2ad3daf0af9 | be7b75c86649836589009a7469e2cf249caab5a1 | refs/heads/master | 2023-01-02T17:17:58.387774 | 2020-10-29T23:43:16 | 2020-10-29T23:43:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,536 | cc | catalog_test.cc | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
46930c5c91ed95263fbca975a5724bd0c49bfb2d | aea4503904c1d608b8ff12a090e48e4622f253bf | /CstringVector/cstring_vector.h | 7fcbb6e8856c11c5beaba49028a855302215986a | [] | no_license | lusparon/C-semester3-hometasks | 0b7b8ab37f8bcfb6cfde8d095f303987d44311cb | 3cb82c6b4e2e5fa3726a9d7704285462286057c7 | refs/heads/master | 2020-05-07T11:01:23.365256 | 2019-04-09T21:22:36 | 2019-04-09T21:22:36 | 180,436,499 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 4,649 | h | cstring_vector.h | #ifndef CSTRING_VECTOR_H
#define CSTRING_VECTOR_H
#define _CRT_SECURE_NO_WARNINGS
#include <cassert>
#include <vector>
#include <iostream>
#include <cstring>
#include <string>
#include "cstring_utils.h"
using namespace std;
char const * DELIM{ ", " };
/* динамический массив С-строк */
class cstring_vector {
/* ... |
9c2340323d68a17c1a9ba0e6c8c43597857fa2e2 | 448a660d440a08fa9c6ed0f35a7d5571d76a9752 | /DijkstraCL.h | 43d1f09421b82f253da7be8ba27be8f3cb4a0515 | [] | no_license | cjin/DijkstraCL | e78c09ccdd012751487d328d6a01aa14b00dabde | 4571b764d77e3afd59da09a1f9f9407bce6f30c5 | refs/heads/master | 2021-05-29T07:08:42.077051 | 2015-09-18T20:08:25 | 2015-09-18T20:08:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,305 | h | DijkstraCL.h | //***************************************************************************************
//
//! \file DijkstraCL.h
//! A simple wrapper class for the OpenCL implementation of the Parallel Dijkstra Algorithm
//! for all-pair or selected-pair shortest distances calculation.
//!
//! This code is adapted from the example... |
93a5a9bb3522011bcc1deaaae42b5c4623e1d969 | 86b643549713e0c34980ef7fb464c1450df36b8b | /pkg/inst/models/cipro.cpp | 79cd5fa8b7533944683613f264992e589c47b4f0 | [] | no_license | mrgsolve/depot | 992ab39738855df12b56fbf03ef95576cecb4d02 | 2b69f04e3d9cdef1d71b4fc45c82b03e60a82568 | refs/heads/master | 2023-04-10T09:43:59.576601 | 2023-03-19T20:52:30 | 2023-03-19T20:52:30 | 166,537,710 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,963 | cpp | cipro.cpp | $PROB
1: Sadiq MW, Nielsen EI, Khachman D, Conil JM, Georges B, Houin G, Laffont CM,
Karlsson MO, Friberg LE. A whole-body physiologically based pharmacokinetic
(WB-PBPK) model of ciprofloxacin: a step towards predicting bacterial killing at
sites of infection. J Pharmacokinet Pharmacodyn. 2017 Apr;44(2):69-79. doi:
1... |
20c536e80e0e5f85aff44a698700d368f172417a | e235d60f29481f9b19084509d039df8904bd9fd4 | /core/xtraz.cpp | d57b6304a1f03d5f9506790555e61774655ed7ab | [] | no_license | AlexeyProkhin/ireen | a0aa6d8ebf3d801ee272a0e589b0372eb410d509 | 2ecdd6c66bf783f0a4afcf6e30e6b3cb508800e3 | refs/heads/master | 2021-01-19T11:15:19.998540 | 2012-10-14T07:57:13 | 2012-10-14T07:57:13 | 6,201,329 | 0 | 1 | null | 2012-10-14T07:57:14 | 2012-10-13T08:48:12 | C++ | UTF-8 | C++ | false | false | 12,221 | cpp | xtraz.cpp | /****************************************************************************
**
** Ireen — cross-platform OSCAR protocol library
**
** Copyright © 2012 Ruslan Nigmatullin <euroelessar@yandex.ru>
** Alexey Prokhin <alexey.prokhin@yandex.ru>
**
***********************************************************... |
1008f2020e2e0116e3f175e4c355aa69e9a11a68 | 6f224b734744e38062a100c42d737b433292fb47 | /clang/test/SemaCXX/PR28101.cpp | 311c0f0db8174a8b3d74bea1f57877f0c38b01d6 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | smeenai/llvm-project | 1af036024dcc175c29c9bd2901358ad9b0e6610e | 764287f1ad69469cc264bb094e8fcdcfdd0fcdfb | refs/heads/main | 2023-09-01T04:26:38.516584 | 2023-08-29T21:11:41 | 2023-08-31T22:16:12 | 216,062,316 | 0 | 0 | Apache-2.0 | 2019-10-18T16:12:03 | 2019-10-18T16:12:03 | null | UTF-8 | C++ | false | false | 1,403 | cpp | PR28101.cpp | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 %s
template <typename T> struct A {
A(void *) {}
T(A<T>){}; // expected-error{{member 'A' cannot have template arguments}}\
// expected-error2{{member 'A' has the same name as its class}}
};
// Don't crash.
A<int> instantiate1() { return {nullptr}; } // expecte... |
c6504771402d4de5c4fae312ffa3bb47885e4110 | 95c523234f29d055f79b76470d848ba7ecbfa9d3 | /0313 Removing duplicated code/Account.cpp | a026bbbcb6c5d06debd3b00a31187b385253535f | [] | no_license | maxtwain/Core-Cpp-Training | d86af5a00a2c5948816b9c0101c66894626f206e | d2c5e1bf8b00bf19716dcdd2e1c9c44e2e40f1dc | refs/heads/master | 2022-11-05T17:44:09.615493 | 2020-06-26T02:25:30 | 2020-06-26T02:25:30 | 274,889,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | cpp | Account.cpp |
#include "Account.hpp"
Account::Account(
std::string accountName,
int initialBalance) :
name{ accountName } {
if (initialBalance > 0) {
Account::balance = initialBalance;
}
}
void Account::deposit(int depositAmount) {
if (depositAmount > 0) {
Account::balance += depositAmount;
}
}
int A... |
3b83931c190bbeb7362c87761ed6c484091b73b8 | 21cd5f52fa06db753ff545a4c8f8e7cbe454b19f | /39.cpp | c5110abb1ae639f5fc782e1b790c19cffdf929a4 | [] | no_license | NikhilSingh883/leetCode | 75e3fe57523bf379f76c9b0b00a013c266ea803e | 1b33b9398a952948036f3d0bb47a0a152db67548 | refs/heads/master | 2023-03-18T02:57:07.616812 | 2021-03-18T08:02:20 | 2021-03-18T08:02:20 | 335,343,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | cpp | 39.cpp | class Solution {
public:
void solve(vector<int>& pat,int idx,int sum,int tar,vector<vector<int>>& ans,vector<int>& can){
if(sum > tar) return;
if(sum==tar){
ans.push_back(pat);
return;
}
for(int i=idx;i<can.size();i++){
pat.p... |
22a084fe84233226c254b43d8adfb596199c436e | 5cab06ca45252790696e2b263c28cd3af9b4dc81 | /TrayIcon.cpp | 9c2f7e0f0efd616319bae9de6685be478210e3c6 | [] | no_license | Gucchiy/PicStand2.00 | d91d412949cef06566ea2a923aa66b279fa07659 | a59b2bea0a0cef4c837c8e96522faf71bc3d4f11 | refs/heads/master | 2021-01-12T13:15:39.981694 | 2016-10-28T02:32:57 | 2016-10-28T02:32:57 | 72,166,683 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,209 | cpp | TrayIcon.cpp | // TrayIcon.cpp: CTrayIcon クラスのインプリメンテーション
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "TrayIcon.h"
#include "IdeaTech.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////... |
00238e01290e355f14d861afdc2cdcf35350814c | 48b2358f9df77674e6b2964a7374a19504b8faf7 | /src/process.cpp | c53314422f67ede2c5a3cc22087ad21f9981c115 | [
"MIT"
] | permissive | masih84/CppND-System-Monitor | ad80d09feff12454b923dbd0dc57bb2038bb19b1 | c2285dcf24b83ceb24591169185c6a3b7d097aae | refs/heads/master | 2020-12-21T10:43:31.085123 | 2020-02-05T03:58:09 | 2020-02-05T03:58:09 | 236,407,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,995 | cpp | process.cpp | #include <unistd.h>
#include <cctype>
#include <sstream>
#include <string>
#include <vector>
#include "process.h"
#include "linux_parser.h"
using std::string;
using std::to_string;
using std::vector;
// Constructor to get the ID and Parse user and cmd.
Process::Process(int pid){
pid_ = pid;
user_ = LinuxPar... |
08f58f13b7331bf0a8493a546477096c6d348229 | 0bbab0e540cbafe9eb9014d0aaa846b19be948a7 | /lec/cpp/17/inherit.cpp | d4000aed7d835a55d396c437913b3a2d3f7b3ba3 | [
"MIT"
] | permissive | silenc3502/education | c013d1b80aae9297e9e32c78852de79b3b743bf8 | a7d0a0d8a359800016971412373d4911a00053db | refs/heads/master | 2020-04-08T11:58:00.061953 | 2019-06-03T04:16:19 | 2019-06-03T04:16:19 | 159,327,770 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 869 | cpp | inherit.cpp | #include <iostream>
#include <string.h>
using namespace std;
class Person{
private:
int age;
char name[20];
public:
Person(int a, char *n);
int getAge(void);
char *getName(void);
};
Person::Person(int a, char *n){
age = a;
strcpy(name, n);
}
char *Person::getName(void){
return name;
}
int Person::getAge(v... |
f0242da9dcbe5e67d9bf1c76de6b242717c95528 | 5877cbb8ded69be0c40136291ab86334e4c8dc22 | /project_vVBO/model.h | 658fe3abd5bedc6e4239ca120dc2e88e1ec99e29 | [] | no_license | heguolun/3D-Model-Viewer | 0b1969c83fd604aec5530cfab8166994b47fff6c | 19adcb84747668cc6e84cc2b0ed1ce7425772e46 | refs/heads/master | 2023-03-20T05:35:44.501949 | 2015-08-27T08:08:33 | 2015-08-27T08:08:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | h | model.h | #ifndef MODEL_H
#define MODEL_H
#include <QQuaternion>
#include <cstddef>
#include "myitems.h"
#include "objload.h"
typedef Polyhedron::HalfedgeDS HDS;
class model
{
public:
model();
~model();
model(objLoad<HDS> objFile);
void computeNormals();
Polyhedron poly();
void drawMe();
void drawTria... |
7baa7855e2aa870378cff116dcc5ae2dd21116c9 | 9bdc92435c0ce04aba35231a2fc12d0762aa9a21 | /restrict.cpp | a5016ceb955889ec670307b6d8aa4cc14cda5274 | [] | no_license | ReiMatsuzaki/opt_cbf | f864b5c5f96faa60891636d3a155c26a49286410 | 120be94376337b2e78ee1f7b9d2351adcd4ef5a8 | refs/heads/master | 2021-01-17T07:09:18.623708 | 2016-10-12T12:51:52 | 2016-10-12T12:51:52 | 42,027,467 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,189 | cpp | restrict.cpp | #include <iostream>
#include <stdexcept>
#include <boost/lexical_cast.hpp>
#include <Eigen/Core>
#include <macros.hpp>
#include "restrict.hpp"
namespace {
using std::cout;
using std::endl;
using boost::get;
using std::string;
using boost::lexical_cast;
}
namespace opt_cbf_h {
// ========== Interface ===... |
a2ef83f101e298664ebc12efd988236c5f4367b4 | 12beb4d342edd87bd7c5987b73c4685cc63b44ee | /indoorgmlcore/type_gml.COperationParameterGroupType.h | cd3d0f0fad69b4a6152968c8ff7e9017a8a69baa | [] | no_license | STEMLab/IndoorGML4CPP | 457e32d1008c7d24f2953baee68f6c126f5cfba1 | 58245cb0b38696749d84cc0cf35360b092e317cd | refs/heads/master | 2023-04-23T09:54:50.244983 | 2021-05-13T07:51:44 | 2021-05-13T07:51:44 | 366,909,427 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,291 | h | type_gml.COperationParameterGroupType.h | #ifndef _ALTOVA_INCLUDED_indoorgmlcore_ALTOVA_gml_ALTOVA_COperationParameterGroupType
#define _ALTOVA_INCLUDED_indoorgmlcore_ALTOVA_gml_ALTOVA_COperationParameterGroupType
#include "type_gml.CAbstractGeneralOperationParameterType.h"
namespace indoorgmlcore
{
namespace gml
{
class COperationParameterGroupType : pu... |
e982876040b072fa3d01e514064ff9a253b6c980 | 79f6996fc2e01d940fa11b4fef0f1c1652a30524 | /src/bitcoin/litecoin.h | f966f83cca721185bdbf20421fe133eedfbb7588 | [
"MIT"
] | permissive | mmgrant73/bitcoinapi | 1305712d94567ee31b09567e0ecbf52528ac0143 | a7886ea4315852a457efed6e6f44d0b65a8993d6 | refs/heads/master | 2021-01-20T11:05:08.354772 | 2013-09-19T02:16:29 | 2013-09-19T02:16:29 | 12,690,611 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 400 | h | litecoin.h | #include <jsonrpc/rpc.h>
#include <iostream>
#include <string.h>
#include "bitcoin.h"
using namespace jsonrpc;
using namespace std;
class litecoinapi: public bitcoinapi{
public:
string connection;
string user;
string password;
string host;
int port;
litecoinapi(string user, string password, string host,... |
da140758d23619373145777222d58b845ac85a50 | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /third_party/jpeg-xl/lib/jxl/color_encoding_internal_test.cc | 899dd55b55877f2742cb417c1cbead86c299504a | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,744 | cc | color_encoding_internal_test.cc | /
/
Copyright
(
c
)
the
JPEG
XL
Project
Authors
.
All
rights
reserved
.
/
/
/
/
Use
of
this
source
code
is
governed
by
a
BSD
-
style
/
/
license
that
can
be
found
in
the
LICENSE
file
.
#
include
"
lib
/
jxl
/
color_encoding_internal
.
h
"
#
include
<
stdio
.
h
>
#
include
"
lib
/
jxl
/
encode_internal
.
h
"
#
include
"... |
51a40847ffbbd960c307bef30e98affd1460688d | 727d4e4f8d8df32d15b466dece08dcf8b5387c9e | /space/src/reckoner/server/PacketQueue.hpp | 2f0885717f625cd63ebb7d12f5903e73718eff16 | [] | no_license | brendonh/reckoner | 90fb0679f7163e42c8edffb1d6d8c9569dbc5721 | 3b0c46c0d25150884ccd23ad54011a183d24166f | refs/heads/master | 2020-03-27T23:35:53.455638 | 2011-02-20T05:45:53 | 2011-02-20T05:45:53 | 855,118 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,716 | hpp | PacketQueue.hpp | #ifndef __RECKONER_SERVER_PACKETQUEUE
#define __RECKONER_SERVER_PACKETQUEUE
#include <vector>
#include <algorithm>
#include "reckoner/common/ReckonerTypes.hpp"
#include "reckoner/common/ENetEndpoint.hpp"
#include "reckoner/server/ClientList.hpp"
namespace Reckoner {
namespace Server {
class PacketQueueEntry {... |
8ba634e64c42ecb276ffdcaaaf2af237d2f326a2 | 942629fb731650dc6341463aabde18132881f7ff | /IfcPlusPlus/src/ifcpp/IFC4/lib/IfcStructuralLoadLinearForce.cpp | 17617c961bfd8b7496339311ecedf4c8253a4955 | [
"MIT"
] | permissive | shelltdf/ifcplusplus | 335b7352ac3e4a0979be02d6a23289182a1940d7 | 120ef686c4002c1cc77e3808fe00b8653cfcabd7 | refs/heads/master | 2021-05-07T19:19:27.968924 | 2019-05-03T13:58:14 | 2019-05-03T13:58:14 | 184,751,293 | 1 | 1 | MIT | 2019-05-03T12:26:00 | 2019-05-03T12:26:00 | null | UTF-8 | C++ | false | false | 5,283 | cpp | IfcStructuralLoadLinearForce.cpp | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include <sstream>
#include <limits>
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include... |
2688e621759c2e97a38a572fa337c574f19bc685 | d75754837d39945422e6f180d4d632cda83e5b06 | /Tree/Tree.cpp | 03d456fa8afe595bda4d73c90b5fa09aa907e36e | [] | no_license | zhijuyingfeng/LuoGu | 98676d5b74c1ff81ffb8e461063626d52e533e2a | 1e0f28e293486ebf79b2848237a0db899efab4b1 | refs/heads/master | 2020-04-01T16:36:59.742304 | 2019-03-23T03:39:41 | 2019-03-23T03:39:41 | 153,389,543 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,798 | cpp | Tree.cpp | #include <cstdio>
#include <stack>
#include <queue>
#include "Tree.h"
#include <iostream>
using namespace std;
void Tree::MakeEmpty(TreeNode *T)
{
if(!T->Right&&!T->Left)
{
delete T;
return;
}
if(T->Left)
{
MakeEmpty(T->Left);
}
if(T->Right)
{
MakeEmpty(T... |
daa41ef8bf5d19586926742a54867d72363a7723 | 22c9502ba474de7e256f404fe22e88c35007c17b | /roulette.cpp | 9f9b1cdf4b9016a68c50398c57cd0e1eda238d8c | [] | no_license | kejbi/Roulette | 1aaeb9ce346ca0035d4b159bc3e2098bfa461b60 | f2f8360ddbd829af679092449031520c6a6c400b | refs/heads/master | 2020-03-13T07:30:52.906011 | 2018-04-26T19:16:08 | 2018-04-26T19:16:08 | 131,026,865 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | cpp | roulette.cpp | //
// Created by kejbi on 24.04.18.
//
#include "roulette.h"
Roulette::Roulette() {
int numbers[]={0,32,15,19,4,21,2,25,17,34,6,27,13,36,11,30,8,23,10,5,24,16,33,1,20,14,31,9,22,18,29,7,28,12,35,3,26};
for(int i=0;i<37;i++){
if(i==0){
RouletteTile rt(0,green);
tab.add_element(r... |
0fbfe301b4d0d938ada8d0d61252bde14116d7a0 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /third_party/WebKit/Source/core/layout/ng/inline/ng_physical_text_fragment.cc | 85a177a39dd81fe93910fee40c60b1832755028e | [
"BSD-2-Clause",
"LGPL-2.1-only",
"LGPL-2.0-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",
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | C++ | false | false | 2,215 | cc | ng_physical_text_fragment.cc | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/layout/ng/inline/ng_physical_text_fragment.h"
#include "core/layout/ng/geometry/ng_physical_offset_rect.h"
#include "core/layout/ng/inline... |
a3ebf3e646fc73c1718f18d185f3de58a5aa3198 | d1bc242882ce5b8983a6de93d6b9eb04b7031893 | /anubis_win_x64/src/gutils/gtypeconv.h | da7cc0397ed971d9042fd18aa89fe29669216e10 | [] | no_license | gsir-ying/anubis_win32 | 48f93e3e7869861739b525bc57e7fb743183ec7d | 5ec381e1d624812c8039345a0ee38197ff4c8018 | refs/heads/master | 2023-03-24T08:05:18.730301 | 2021-03-23T04:03:53 | 2021-03-23T04:03:53 | 350,574,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,194 | h | gtypeconv.h |
#ifndef GTYPECONV_H
#define GTYPECONV_H
/* ----------------------------------------------------------------------
(c) 2018 G-Nut Software s.r.o. (software@gnutsoftware.com)
(c) 2011-2017 Geodetic Observatory Pecny, http://www.pecny.cz (gnss@pecny.cz)
Research Institute of Geodesy, Topography and Cartogr... |
930da61ef548b83d816f913f24b71ffa37e92c7d | 2bf9ac8faede97faaa73413d3a0195d033223177 | /640/g.cpp | f7b2338a607edf15fc1440b538d06476924e8258 | [] | no_license | srj31/Codeforces_rounds | 16ddbbeeabe67a2919ed815c5a5ae6002198813e | a800c36a24bf49bae6586b3acbd5b283f7148113 | refs/heads/master | 2022-10-14T02:11:15.235940 | 2020-06-05T13:59:17 | 2020-06-05T13:59:17 | 260,020,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 462 | cpp | g.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin >> t;
while(t--){
int n;
cin >> n;
if(n<=3){
cout << - 1 << endl;
}
else{
int start = 2;
if(n%2)start = 1;
while(start<n){
cout << start << " ";
start+=2;
}
cout << n << " ";
cout << n-3 << " ";
cout << n... |
89fb8b4ff744c0528965a1bcf9091a8125418ee5 | 51544a09a9710ad144aef2508a2e5a3c983984ec | /introduction-to-data-science/heap/main.cpp | d9274045cce9e84b64a2a6795374c881370255f3 | [] | no_license | yc322/112 | 9c7103c7535b7bf15a73ac9c3399c1dff046a9ef | 6451a9c33a79aa6967dcf918fbf1a227f267950f | refs/heads/master | 2021-09-27T16:13:23.224035 | 2018-11-09T13:43:01 | 2018-11-09T13:43:01 | 110,914,766 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,123 | cpp | main.cpp | #include <iostream>
#include "heap.h"
using namespace std;
template <class Record>
bool visit(Record x,Record y)
{
if(x>y) return true;
else return false;
}
template <class Record>
bool visit2(Record x,Record y)
{
if(x<=y) return true;
else return false;
}
int main()
{
/*Heap<int> my_heap;
in... |
cdabfb9163590ebc7846b75232ea44f13b5b1e95 | c57819bebe1a3e1d305ae0cb869cdcc48c7181d1 | /src/qt/src/3rdparty/webkit/Source/WebCore/platform/qt/RenderThemeQt.cpp | f98df886ba73bc49d4bc9d5f503a0fe625ed88cc | [
"BSD-3-Clause",
"BSD-2-Clause",
"LGPL-2.1-only",
"LGPL-2.0-only",
"Qt-LGPL-exception-1.1",
"LicenseRef-scancode-generic-exception",
"GPL-3.0-only",
"GPL-1.0-or-later",
"GFDL-1.3-only"
] | permissive | blowery/phantomjs | 255829570e90a28d1cd597192e20314578ef0276 | f929d2b04a29ff6c3c5b47cd08a8f741b1335c72 | refs/heads/master | 2023-04-08T01:22:35.426692 | 2012-10-11T17:43:24 | 2012-10-11T17:43:24 | 6,177,895 | 1 | 0 | BSD-3-Clause | 2023-04-03T23:09:40 | 2012-10-11T17:39:25 | C++ | UTF-8 | C++ | false | false | 49,211 | cpp | RenderThemeQt.cpp | /*
* This file is part of the WebKit project.
*
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
*
* Copyright (C) 2006 Zack Rusin <zack@kde.org>
* 2006 Dirk Mueller <mueller@kde.org>
* 2006 Nikolas Zimmermann <zimmermann@kde.org>
* Copyright (C) 2008 Holger Hans Pe... |
97fdaf2e34a24c3def92a18d310ecc2f0645cfd1 | e3829fe2fd089410f6f4e4bbbf91b42922eec039 | /src/utility/BlynkHelpers.cpp | 3c47985d3bcf5d5b3a863d2078edfcc4ddb8c003 | [
"MIT"
] | permissive | blynkkk/blynk-library | 975ec76dea5b0ea0d62c8ddc3722da5d88c2f3ed | fcea6fd06d27bd8ef39faa456b3c4dee9514a66b | refs/heads/master | 2023-09-05T14:06:02.152635 | 2023-09-05T08:30:27 | 2023-09-05T08:30:27 | 32,791,821 | 4,063 | 1,506 | MIT | 2023-01-10T19:45:16 | 2015-03-24T10:31:07 | C++ | UTF-8 | C++ | false | false | 2,545 | cpp | BlynkHelpers.cpp | #include <Blynk/BlynkConfig.h>
#include <Blynk/BlynkHelpers.h>
#include <math.h>
#if !defined(BLYNK_NO_FLOAT) && defined(BLYNK_USE_INTERNAL_DTOSTRF)
#include <string.h>
#include <stdio.h>
char* dtostrf_internal(double number, signed char BLYNK_UNUSED width, unsigned char prec, char *s) {
if(isnan(number)) {
... |
e2442b3f6bc16954ec130b32abdc6fad541d3b89 | 22d273cb80c122e306b539472db529e87f0d6cd8 | /Files/OrderTemp.h | b2ef891fa580baaaa619343d81c91b1c4d60ae8b | [] | no_license | caleksiev/OOP-Object-Oriented-Programming | 2cbc39bb9519399d03931cce763ccc77cb76bb35 | 6363c575f6a046832064d8fcc86f9339d2653eca | refs/heads/master | 2020-04-23T22:53:01.548873 | 2019-02-22T14:49:21 | 2019-02-22T14:49:21 | 171,516,613 | 0 | 0 | null | null | null | null | ISO-8859-15 | C++ | false | false | 4,820 | h | OrderTemp.h | #ifndef _ORDERTEMP_INCLUDED_
#define _ORDERTEMP_INCLUDED_
//temp functions for making OREDER
/*
THIS IS THE "MAIN" FUNCTION that connect all process using the funtion below!
1)Reflects the transaction of SELLER in his file
2)Reflects the transaction of BUY in his file
3)Deduct the current order from "SELL-orde... |
cca857015ab70fe261f39a6669b2fe0d580fb19f | bb0c3199fa0920b87b28b464fbf3679ca67ca5de | /pascal_triangle.cpp | e6d0d4ed7e51bba2513f67f3f582ba5c32a0cf29 | [] | no_license | Qzhenlong/LeetCode | f94c57167037893cbe2deb2828d5069b9b538e65 | 227a51eaf9f0f70fe1748b8a9a48ad058c8a503c | refs/heads/master | 2021-01-10T16:11:56.663410 | 2015-08-10T13:38:41 | 2015-08-10T13:38:41 | 36,740,394 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,392 | cpp | pascal_triangle.cpp | #include <iostream>
#include <vector>
using namespace std;
/*
原题:
Given numRows, generate the first numRows of Pascal's triangle.
For example, given numRows = 5,
Return
[
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
]
解析:给定行数,生成杨辉三角,存入到二维容器时的分布其实是这样的:
[1],
[1,1],
[1,2,1],
[1,3,3,1],
[1,4,6,4,1]
思路:
1)当行号为... |
dd807e5bc9ac1552cff5698a3da0d512fca53316 | 70d0efb3b61e0d4b9843f806a5461b10a3ff2af9 | /src/libretro/include/cfg.h | e81383e5852a6a020089eda54adddc87f92af4f1 | [
"MIT"
] | permissive | Dwedit/sdlretro | a2bacb623d464940afc912ce5008df908a7016ff | 521c5558cb55d4028210529e336d8a8622037358 | refs/heads/master | 2021-04-12T00:38:10.157128 | 2020-01-20T13:16:04 | 2020-01-20T13:16:04 | 249,069,950 | 0 | 0 | MIT | 2020-03-21T22:12:48 | 2020-03-21T22:12:48 | null | UTF-8 | C++ | false | false | 2,239 | h | cfg.h | #pragma once
#include <cstdint>
#include <string>
enum :uint32_t {
#ifdef GCW_ZERO
DEFAULT_WIDTH = 320,
DEFAULT_HEIGHT = 240,
DEFAULT_SCALE = 1,
#else
DEFAULT_WIDTH = 640,
DEFAULT_HEIGHT = 480,
DEFAULT_SCALE = 2,
#endif
DEFAULT_SAMPLE_RATE = 0,
DEFAULT_RESAMPLER_QUALITY = 0,
};
class ... |
e54603b996b8ce288af72a116596104c99b4de77 | 4fcd707575ae64cd328bcb5e5ee3d24f72bbe93f | /命令模式.cpp | 59fd36dbfa33ec00f1d10e1e8e1c277464e2ad23 | [] | no_license | cpilabcyx/lern_m | 3f3651c0f703b845d877b371b7bf2940b4af805a | 3abf9222c917a64c0008eda8cfc911eb9f5f5022 | refs/heads/master | 2020-03-13T18:24:33.779129 | 2018-05-07T14:50:08 | 2018-05-07T14:50:08 | 131,235,134 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,942 | cpp | 命令模式.cpp |
#include <iostream>
using namespace std;
#include "list"
class tanke_driver //命令的的执行者
{
public:
void turn_left()
{
cout << "驾驶员左转" << endl;
}
void turn_right()
{
cout << "驾驶员右转" << endl;
}
};
class Command //统一接口,具体的行为细节子类实现,每个子类为一个类,所以可以记录、拆解执行者的行为
{
public:
virtual void turn() = 0... |
76e0e0c1eb30bfe17d8cb3187130b34f5c102d63 | 21398f93e869699e6bbd73bf2346f538b2b368e9 | /diamond-sycl/src/output/output_format.h | 15880de434ea47576df7e9d65efc99dc3a0167b5 | [
"BSD-3-Clause"
] | permissive | zjin-lcf/HeCBench | fc67fa11d052ca5b9fbaac9ecee3d7a3ab3af08f | e2e13ff587c392361989cece0956d827167aa7b9 | refs/heads/master | 2023-08-18T05:08:57.134834 | 2023-08-14T01:22:41 | 2023-08-14T01:22:41 | 285,634,219 | 89 | 34 | BSD-3-Clause | 2023-09-08T18:28:55 | 2020-08-06T17:44:38 | C++ | UTF-8 | C++ | false | false | 5,798 | h | output_format.h | /****
DIAMOND protein aligner
Copyright (C) 2013-2017 Benjamin Buchfink <buchfink@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option... |
557ed6884d6384adc1f0f89bd0dfabd005c84f1c | 3f9107b5dd7c86d4d6c2cb4ac6f77269b038d11e | /AyPa.ino | c3c0cf806564913319bc6f034296202f1033c608 | [] | no_license | AyPa/AyPa | ebb63952e9a562e501c7701f9bcf10d57f085351 | 47ed0608638824126834c9b99b9441e3510d0eb4 | refs/heads/master | 2016-09-06T11:21:16.180491 | 2014-05-06T15:54:48 | 2014-05-06T15:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 59,275 | ino | AyPa.ino | #include <avr/pgmspace.h>
// примерное число миллисекунд в часе
//#define MILS 3640282 // надо 20:55:13 показал 21:00:00 +47
//#define MILS 3650000 // надо 04:19:16 показал 04:19:00 -16
//#define MILS 3648000 // за 4 часа убежал на 25с
//#define MILS 3650500 // за 2 часа убежал на 20с
//#define MILS 3655500 //... |
75f776d55d6d9ca9d60aaa14008ccf40d31c6c8e | fbbf0cd2ae78703683926ecec28270393713a82d | /554. Brick Wall/brickWall.cpp | 012b3f8258c817e7aa9d7057116916cc38607b1e | [] | no_license | BGMer7/LeetCode | 869fde712a058b0fe9fa8c08b691b889ad65ddc0 | 7505b55ffd9a4819ece0bd9f723e4c63a9e0c1c6 | refs/heads/master | 2023-07-25T02:00:36.428625 | 2023-07-12T09:05:10 | 2023-07-12T09:05:10 | 234,691,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | brickWall.cpp | #include <vector>
#include <iostream>
#include <unordered_map>
using namespace std;
class Solution
{
public:
int leastBricks(vector<vector<int>> &wall)
{
int height = wall.size(), width = 0;
unordered_map<int, int> m;
vector<vector<int>> partition(height);
for (int i(0); i < hei... |
183751ac42d0684cd0a8ecf3d95120aae5e3c2ac | 1f620b55d7875283bd1e8c83062d62519b1ac10b | /list/04_disk_scheduling_user.cpp | 6e8741cd4fd2756a31daa9b58c192b8409ae2fd4 | [] | no_license | punkryn/SWEA | e53b42d0f1dcd051810399553d476adc09ac19e5 | c5f24561fce6bc9522e72690ec90859c7e215850 | refs/heads/main | 2023-07-03T20:31:28.906605 | 2021-08-10T10:09:13 | 2021-08-10T10:09:13 | 387,395,353 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 5,140 | cpp | 04_disk_scheduling_user.cpp | #include <cstdio>
const int MAX = 100000;
#define MAXN (1 << 15) // Add 함수 최대 호출 수
#define MAXB (1 << 10) // 전체 bucket의 크기
#define DIV 10 // 개별 bucket에 들어가는 숫자 개수, 2^10개
struct Node {
int val, idx;
Node *prev;
Node *next;
Node *alloc(int _val, int _idx, Node *_prev, Node *_next) {
val = _... |
02dc3346fe25308d457b893c9e1602ec74392795 | 6170c435d99f2c00124eb16ad8967e3a9e8029fd | /regionals/accepted/3167.cc | f5a60ce5edbf608c248fad7766fbcf259cbe1f3f | [] | no_license | hnfong/algo | 7a4a9ecadee1198728454fb856135b4d9cb3b4cc | 46566b35179f14b9f199b5470ee4af6dbbc28505 | refs/heads/master | 2021-01-19T04:38:36.244247 | 2016-06-29T02:40:32 | 2016-06-29T02:40:32 | 61,741,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,538 | cc | 3167.cc | /* note that test data seems crappy, don't depend on this one */
#include <ctype.h>
#include <stdio.h>
#include <string.h>
// #include <algorithm>
// #include <ext/hash_map>
// #include <vector>
#include <map>
// #include <set>
// #include <queue>
#include <iostream>
#include <string>
using namespace std;
// using na... |
d0923e8463fe7345f775907a9851d5ed9299a607 | 53b987aa216b22df9185eaa77c9e53a76b01d574 | /main.cpp | c0c6d0b22a5360f848714cf7dc95f3072ed802e4 | [] | no_license | yvettejade/tray | 1bea982a089f9a7bc832eff86d81befbbe0707af | 203d18939088990f5ddb3290a393b9bcd92d6f22 | refs/heads/master | 2020-12-09T02:12:10.135745 | 2020-07-30T09:36:24 | 2020-07-30T09:36:24 | 233,160,909 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,713 | cpp | main.cpp | /*----------------------------------------------------------------------------*/
/* */
/* Module: main.cpp */
/* Author: yvette ... |
0db862f6a2a947fb7509b90ef828a161cd2955cc | 68ecdb5a4dc3dcb0fa0990e61b5a2ce8699915f8 | /base_leetcode/905.cpp | db8ed2e02dcbf376f3f2be6083458105f094cc39 | [] | no_license | AppLoidx/vtalgo_2020 | f4ebb02b6b1a72d141f66d5ea491d09cb01d1d49 | fe16eafd92936a6573f454b3020b02d7e74ea435 | refs/heads/master | 2022-09-19T06:25:10.227708 | 2020-05-30T04:16:53 | 2020-05-30T04:16:53 | 238,957,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | 905.cpp | class Solution {
public:
vector<int> sortArrayByParity(vector<int>& A) {
int leftIndex = 0;
int rightIndex = A.size() - 1;
while (leftIndex < rightIndex) {
if (A[leftIndex] % 2 != 0) {
swap(A[leftIndex], A[rightIndex]);
--rightIndex;
} ... |
69df4b7c2f4517f4f0277ea45c89d9d3f613aa7a | b437c05ba551f410e2e9f9b401d10f6c7e91b365 | /helper/v2x-client-helper.h | 29b7bbe557ccfd61728ba1eac10a84ffedbc3079 | [] | no_license | eisbaer/v2x-lte | 617c49965c77568c3ffad12eb8cd480d65e043d0 | ffe69c7a81b61b1494dc52a1186f2db4cd831923 | refs/heads/master | 2016-08-11T08:29:30.544556 | 2016-03-30T20:54:20 | 2016-03-30T20:54:20 | 55,093,135 | 26 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 1,929 | h | v2x-client-helper.h | #ifndef V2X_CLIENT_HELPER_H
#define V2X_CLIENT_HELPER_H
#include <stdint.h>
#include <string>
#include "ns3/object-factory.h"
#include "ns3/address.h"
#include "ns3/attribute.h"
#include "ns3/net-device.h"
#include "ns3/node-container.h"
#include "ns3/boolean.h"
#include "ns3/application-container.h"
namespace ns3 {... |
f824cdb65648612b9d8ea0f61de7e383a1400f7b | 35d6b00a9c3ed9cb9e136ecf8b5526d39bcfacc1 | /BEHAPPY.cpp | 79234ca6e015e40291db6165b4eb67e01fc41394 | [] | no_license | chinoxyz/Spoj | 8436a74536bc0c90098646e668c5192d1d3b59fe | 24ac96bf590d9f6b3c75f28e88e9d98e0bba46ac | refs/heads/master | 2020-04-10T00:48:06.370423 | 2015-01-22T11:04:37 | 2015-01-22T11:04:37 | 30,460,182 | 0 | 1 | null | 2015-02-07T15:39:29 | 2015-02-07T15:39:28 | null | UTF-8 | C++ | false | false | 1,927 | cpp | BEHAPPY.cpp | #include <cstdio>
#include <algorithm>
#include<iostream>
#include<vector>
#include<climits>
#include <complex>
#include <iostream>
#include <valarray>
#include<cstring>
#include<queue>
#include<bitset>
#include<map>
#include<set>
#include<sstream>
#include<ctime>
#include <stack>
#include <iomanip>
using namespace s... |
839a7a862cc66965d7649a969a152bf9ad06f95e | 23f349d2c81850618a0e354a9be70c296ec86154 | /OpenGLTest/sky.h | bf3a256404e831d59bab4408ccd9bda3b3587dc9 | [] | no_license | zccz14/CG-Final | be0dfdac30a3a2b5d6474199221c8d1a3b0ca019 | fe56f49ed9859dcc694be0852ee270db6d1471ad | refs/heads/master | 2021-01-09T20:07:53.482082 | 2016-06-26T08:22:02 | 2016-06-26T08:22:02 | 61,979,774 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 484 | h | sky.h | #pragma once
#include <GL/freeglut.h>
class Sky {
public:
Sky ();
//初始化天空的位置,半径和纹理
void InitSky (float skyX, float skyY, float skyZ, float skyR, unsigned int texture);
//显示天空
void ShowSky ();
//获得天空的属性
float GetSkyX (void);
float GetSkyY (void);
float GetSkyZ (void);
float GetSkyR (void);
unsigned int G... |
5cf03434266fe6baaa05ca109367d78c326a543b | 244c2439727dc8f2315d7b80ca87b6a3dba98e82 | /src/core/Point.h | 0b178d7d94d4e1b52d32191d3ae7b3c258f97b8f | [] | no_license | akshayloke/PBRT | f54014ad7691eafb2acbc8cc9e04b6e6fcfc5c90 | de7255c5fe692d8ca0c387cc4733c300f7bbd532 | refs/heads/master | 2020-12-24T13:17:12.232489 | 2012-10-23T21:21:11 | 2012-10-23T21:21:11 | 6,263,520 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,312 | h | Point.h | #pragma once
#include "Pbrt.h"
class Vector;
class Point {
public:
Point() { x = y = z = 0.0f; }
Point(float _x, float _y, float _z)
: x(_x), y(_y), z(_z) {
ASSERT(!HasNans());
}
#ifndef NDEBUG
Point(const Point& p) {
ASSERT(!p.HasNans());
x = p.x; y = p.y; z = p.z;
}
Point& operator=(const Point& p... |
4d1d17cf14aa96739c088344690865bec2ba6742 | a35b30a7c345a988e15d376a4ff5c389a6e8b23a | /boost/asio/detail/noncopyable.hpp | 0fec869decfaa7c0026e9b6417bdd513876fde91 | [] | no_license | huahang/thirdparty | 55d4cc1c8a34eff1805ba90fcbe6b99eb59a7f0b | 07a5d64111a55dda631b7e8d34878ca5e5de05ab | refs/heads/master | 2021-01-15T14:29:26.968553 | 2014-02-06T07:35:22 | 2014-02-06T07:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 69 | hpp | noncopyable.hpp | #include "thirdparty/boost_1_55_0/boost/asio/detail/noncopyable.hpp"
|
3be0c3fece6f19d34a072b74d7dc90ffc5641d30 | 8042a4eb785265fb9124b35a6ddeead5e5b19dc4 | /climbRace.cpp | e7db4fa6a9c67c5491b592c6c05e7ea7c6937192 | [] | no_license | Solano96/HackerRank | 5a6cea7cccad79ce7b39820dbbd4244ce40cb3df | 456606f9f50b1bd83f1be3c7c1ebe60981a62d9f | refs/heads/master | 2020-04-22T17:20:30.734780 | 2020-02-09T23:41:59 | 2020-02-09T23:41:59 | 170,538,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,649 | cpp | climbRace.cpp | #include <iostream>
#include <vector>
using namespace std;
vector <int> withoutConsecutiveReps(vector<int> v){
vector<int> s;
s.push_back(v[0]);
for(int i = 1; i < v.size(); i++)
if(v[i]!=v[i-1])
s.push_back(v[i]);
return s;
}
vector <int> climbingLeaderboard(vector ... |
e4fca187c33764101d5bacb2ec38b9b3e9221e88 | 35767a00d49fbaeb2670ca6d85e281332b510599 | /Source/Wolf_n_Gal/GameplayMechanics/Potion.h | 877b38040f0036738689130cebf912460f56a2d9 | [] | no_license | rulflyfly/Wolf_n_Gal | 97baf5272dfa62e0fc61089797c88f6c0958f395 | 400124a51a4229f2fb0481c66575b8085667cadd | refs/heads/main | 2023-03-08T08:10:20.075225 | 2021-02-23T19:43:12 | 2021-02-23T19:43:12 | 334,656,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 733 | h | Potion.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Item.h"
#include "Potion.generated.h"
/**
*
*/
UCLASS()
class WOLF_N_GAL_API APotion : public AItem
{
GENERATED_BODY()
public:
APotion();
class AWolf* Player;
... |
5faec49433073690e3158d0a5ab759d55c1ad77c | d7c527d5d59719eed5f8b7e75b3dc069418f4f17 | /main/C++Results/_ccSnippet7/2/ping.h | b24254dd0149f050b498b009da10f7c73a3d6464 | [] | no_license | Aivree/SnippetMatcher | 3e348cea9a61e4342e5ad59a48552002a03bf59a | c8954dfcad8d1f63e6e5e1550bc78df16bc419d1 | refs/heads/master | 2021-01-21T01:20:59.144157 | 2015-01-07T04:35:29 | 2015-01-07T04:35:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | h | ping.h | #ifndef PING_H
#define PING_H
#include <stdio.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/file.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netdb.h>
#include... |
fa91416a42aa857443ae9d59550ce5e7cff9a236 | 92a9f837503a591161330d39d061ce290c996f0e | /LIB/arclib/sindy/stamper/time_stamper.h | 8099fafcfb2c85bd8cab72bfc1781fa79591c734 | [] | no_license | AntLJ/TestUploadFolder | 53a7dae537071d2b1e3bab55e925c8782f3daa0f | 31f9837abbd6968fc3a0be7610560370c4431217 | refs/heads/master | 2020-12-15T21:56:47.756829 | 2020-01-23T07:33:23 | 2020-01-23T07:33:23 | 235,260,509 | 1 | 1 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,795 | h | time_stamper.h | /*
* Copyright (C) INCREMENT P CORP. All Rights Reserved.
*
* THIS SOFTWARE IS PROVIDED BY INCREMENT P CORP., WITHOUT WARRANTY OF
* ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
* AND NONINFRINGEMENT.
*
* IN NO EVENT SHAL... |
30058ef3d388dab94df577e18f2b927b9dbc14ab | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/28/f0f32a3a5dba63/main.cpp | 11487e38b93e87a50ba78ab314e148bcdb35072e | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,608 | cpp | main.cpp | #include <cstddef>
#include <tuple>
#include <utility>
// index_sequence implementation (not available in C++11):
template <std::size_t... Is>
struct index_sequence {};
template <std::size_t N, std::size_t... Is>
struct make_index_sequence_h : make_index_sequence_h<N - 1, N - 1, Is...> {};
template <std::... |
d2069e9ec2227deda5927297658f78a2b05f6272 | 1302a788aa73d8da772c6431b083ddd76eef937f | /WORKING_DIRECTORY/hardware/bsp/intel/peripheral/libupm/src/adafruitms1438/adafruitms1438.cxx | f1475d43c90e6e8410ab724fac5ea39ddb76ae1a | [
"MIT"
] | 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 | 9,181 | cxx | adafruitms1438.cxx | /*
* Author: Jon Trulson <jtrulson@ics.com>
* Copyright (c) 2015 Intel Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitatio... |
735047f392dd0ef2f2182578a4c831649ab2b14c | c9f77bc48c41c6e7b0d24f63db9a9be93ed35f9f | /Core/include/Errnode.h | 0454d5bd768738a44fbada0a8eaa50706615be13 | [] | no_license | kaskavalci/UCT | c28f010064c01f7bb9fc650f777a0a378c5d2183 | 732f3c6d4096f2d9c58d4fdfe13e1cc10a647593 | refs/heads/master | 2021-05-26T22:51:29.327754 | 2013-07-01T14:16:43 | 2013-07-01T14:16:43 | 6,446,604 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | Errnode.h | /*
* Errnode.h
*
* Created on: 21 Eki 2012
* Author: HalilCan
*/
#ifndef ERRNODE_H_
#define ERRNODE_H_
#include <string>
namespace std {
class Errnode {
public:
string desc;
string s1;
string s2;
int n1;
int n2;
};
} /* namespace std */
#endif /* ERRNODE_H_ */
|
fe10c61ea2094a07348595280a749ea1b206b268 | c5891e00fc23ecbc83c01b73449d0f05f1f6564c | /test.cpp | 1fb9489067b508ff710d2d9f2d6035ca8b86ecee | [] | no_license | KoDim97/dr-web-entrance-test | 1385d524418dd8db88c5cf8bac64b6ef410c87f6 | b733116937e54450fc48105de064311de532f67b | refs/heads/master | 2022-06-19T06:12:07.055022 | 2020-05-09T12:11:27 | 2020-05-09T12:11:27 | 262,561,929 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | cpp | test.cpp | #include <iostream>
#include "Dictionary.cpp"
int main() {
Dictionary<std::string, std::string> av_top;
av_top.Set("first", "DrWeb");
av_top.Set("second", "Avast");
/*Test 1*/
std::cout << "The first AV proggram in my top is " << av_top.Get("first") << std::endl;
/*Test 2*/
av_top.Set("se... |
5abfc6fb306cbcfd2a8f75e477628d5d0ff9633a | 820c61849a45ed69f3e4636e2d3f0486304b5d46 | /Contest Participations/Team Forming Contest 2/d.cpp | b247e5b850080d0fd8c179f529ec16995a56e928 | [] | no_license | Tanmoytkd/programming-projects | 1d842c994b6e2c546ab37a5378a823f9c9443c39 | 42c6f741d6da1e4cf787b1b4971a72ab2c2919e1 | refs/heads/master | 2021-08-07T18:00:43.530215 | 2021-06-04T11:18:27 | 2021-06-04T11:18:27 | 42,516,841 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,392 | cpp | d.cpp | #include<bits/stdc++.h>
#define pii pair<int,int>
#define mkp make_pair
#define fs first
#define sc second
#define pb push_back
#define ppb pop_back()
#define pf printf
#define pf1(a) printf("%d\n",a)
#define hi() printf("hi!\n")
#define sf scanf
#define sf1(a) scanf("%d",&a)
#define sf2(a,b) scanf("%d %d",&a,&b)
#defi... |
30f843e19ba2780cdd07cfb6f0d3fb8015563d97 | 3a8ce5690eb587b1f87e204c9d79a988d6561a69 | /Project_Four/AttractionMapper.cpp | 6c32f3b50bfa7a5ff0bbdf80357fff7135069e6d | [] | no_license | NguyenNguyenG/BruinNav | f45fc1b83f1bfb4ee61040025ea5ecf901c6eee2 | a1ce6e46259537fd58e70de783745f53de6cde50 | refs/heads/master | 2021-06-27T15:48:18.781355 | 2017-09-15T06:26:21 | 2017-09-15T06:26:21 | 103,621,957 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,016 | cpp | AttractionMapper.cpp | #include "provided.h"
#include <string>
#include "MyMap.h"
using namespace std;
class AttractionMapperImpl
{
public:
AttractionMapperImpl();
~AttractionMapperImpl();
void init(const MapLoader& ml);
bool getGeoCoord(string attraction, GeoCoord& gc) const;
private:
MyMap<string,GeoCoord> m_attrMap;
}... |
a9f0c335ab5f957582bd0018d0e78765ed074b0f | a0d77b4fc3c20b360faa2f30ab132e974c7df4af | /calc.cpp | c7299b7ea6aef4571131979b17418858f71d6e61 | [] | no_license | sekainoowaka/projects | b35c84896dbf3ac98c1fc694aba671b6a7281079 | 80ecc76ab124cc3d91d08104fe4067631e78e74d | refs/heads/master | 2021-12-14T00:37:01.443207 | 2021-12-13T21:40:11 | 2021-12-13T21:40:11 | 201,620,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,708 | cpp | calc.cpp | #include "dlist.h"
#include <iostream>
#include <string>
using namespace std;
class NotEnough {};
class DivideZero {};
class BadInput {};
void PrintAll(Dlist<int> &l) {
Dlist<int> _l = l; // perform printing without changing the original list
while (!_l.isEmpty()) {
int *lTmp = _l.removeFront();
... |
d10076cea756a2a05ff06290aa8505dc39929c35 | 024ba70673e2cd9afb43ae182210d7791ff7eb27 | /Multiplicación de matrices/straussen.cpp | 68dd2d9b716f4e01f7d212bcf48150160c40e7c8 | [] | no_license | MauricioRuiz01/ETSJunio2021AyDdeAlgoritmos | 2e1df14481300741e24792a250e6613ca5349ad7 | 988ebc934a8a95d9472f201d3af4152424deb113 | refs/heads/master | 2023-06-13T07:29:40.868349 | 2021-07-06T04:46:00 | 2021-07-06T04:46:00 | 381,829,184 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,200 | cpp | straussen.cpp | #include <bits/stdc++.h>
#include "matrix.h"
using namespace std;
Matrix strassenmtd(Matrix A, Matrix B);
int main() {
vector<vector<int>> A, B;
A = {
{2,2,3,3},
{2,6,3,3},
{8,2,4,3},
{2,6,3,9},
};
B = {
{1,2,3,3},
{2,6,3,3},
{8,2,3,3},
{2,6,3,3},
};
Matrix MatA(A), MatB... |
28d3b9c18eaee3ed9491a1e3b6145bfbe230cd5b | 70b35f2decbf84b001db830ceffc76e1d246e9ef | /common/ResultsResponseMessage.hpp | 29eff0975e2d561815d80c25f62e86b2ef225907 | [
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mrkline/ece453 | b378691ba97561aaf4a70beed59eef0f313361f0 | 580880c89c42049ad079a26ec05f27ba2e6b0236 | refs/heads/master | 2020-11-26T17:05:35.897341 | 2014-05-09T02:40:57 | 2014-05-09T02:40:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,962 | hpp | ResultsResponseMessage.hpp | #pragma once
#include <memory>
#include <vector>
#include "Exceptions.hpp"
#include "ResponseMessage.hpp"
#include "Shot.hpp"
/// Responds to a ResultsMessage message with the end-of-match results,
/// provided the ResultsMessage was sent after a match ended.
class ResultsResponseMessage : public ResponseMessage {
... |
ee2f40e10a0c30c97006e2feeda948827f8c3150 | 1634d4f09e2db354cf9befa24e5340ff092fd9db | /Wonderland/Wonderland/Editor/Foundation/UI/Widgets/Deprecated/UIViewShader.cpp | 2d0c6c08bda1673ed648e25f5e481c222d423d53 | [
"MIT"
] | permissive | RodrigoHolztrattner/Wonderland | cd5a977bec96fda1851119a8de47b40b74bd85b7 | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | refs/heads/master | 2021-01-10T15:29:21.940124 | 2017-10-01T17:12:57 | 2017-10-01T17:12:57 | 84,469,251 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,048 | cpp | UIViewShader.cpp | ////////////////////////////////////////////////////////////////////////////////
// Filename: UIViewShader.cpp
////////////////////////////////////////////////////////////////////////////////
#include "UIViewShader.h"
/*
#include <fstream>
using namespace std;
///////////////
// NAMESPACE //
///////////////
UIViewSha... |
336f602ff3791ad20f4e2724862b205b05034951 | 27e1a0831fa730f710c7f48125092b8bfa98c8c6 | /src/core/NEON/kernels/NEChannelCombineKernel.cpp | 28fb4bdb10fd60b0fadc35914038a7b3de133cfd | [
"MIT"
] | permissive | adityagupta1089/ComputeLibrary | ff9c57f4f69b02d3789f72b5223bc9c1f28ad777 | 39945fde9bbb805e76c55baf3ca536a376fb00f4 | refs/heads/master | 2021-06-22T06:54:52.030052 | 2021-01-03T14:04:39 | 2021-01-03T14:04:39 | 158,011,217 | 2 | 1 | MIT | 2018-11-17T18:07:24 | 2018-11-17T18:07:24 | null | UTF-8 | C++ | false | false | 18,160 | cpp | NEChannelCombineKernel.cpp | /*
* Copyright (c) 2016-2018 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* ri... |
028f17fe1b3577c776d295b8ba5d79695dc670bc | cd15e3161fbb9924ae97146f703fb552fd2723f2 | /Cpp/Codes/Practice/Interview/4_1 numUniqueEmails.cpp | 16b7c6a9362fb399f9bab63c90846a1ba049b0a9 | [
"MIT"
] | permissive | QuincyWork/AllCodes | f8953442f13f13cf2beec8f23697e89d4c3cbcbc | 59fe045608dda924cb993dde957da4daff769438 | refs/heads/master | 2021-08-16T10:26:58.971769 | 2021-06-10T07:52:53 | 2021-06-10T07:52:53 | 103,636,470 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cpp | 4_1 numUniqueEmails.cpp | #include <gtest/gtest.h>
using namespace std;
namespace IV4_1
{
class Solution {
public:
int numUniqueEmails(vector<string>& emails) {
set<string> result;
for (auto email : emails)
{
auto pos = email.find('@');
if (pos != string::npos)
{
string localName = email.substr(0, pos);
stri... |
dc2bb23c30a92d726acd7fa1fe9b9ed28ad41303 | 808def4676ec03b193636edba841054ece8021db | /ChallengeProgrammingDesignCompetition/TheSecondChapterTheFledglingPrimaryArticle/TheSecondSectionGoStraightGreedyMethod/FrenceRepair/FrenceRepairOther.cpp | 57879c73a3ffc5c305e544e74fb5b24af5c50194 | [] | no_license | yigezhe/programming | 75257be59a3380572c54d0624b7f72b56904caa5 | 9e7a2026e967e92031347ed9178440cce2701033 | refs/heads/master | 2020-12-28T21:06:17.548241 | 2015-01-09T21:33:58 | 2015-01-09T21:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,830 | cpp | FrenceRepairOther.cpp | /*
* 作者:何伟伟
* 作者邮箱:<1830973318@qq.com>
* 文件名: FrenceRepairOther.cpp
* 创建日期: 2015年01月03日 星期六 06时52分30秒
* 程序想法:
#include <iostream>
#include <queue>
#include <cstdio>
using namespace std;
//#define __int64 long long
class Node
{
public:
__int64 w;
Node(__int64 weight = 0) : w(weight) {}
bool operator<(const ... |
413606bdfcc5b4098863ae3ab18341443c99b556 | f7bc83ea58dde6e59a498c8834ad42285179a74a | /solutions/1044/state_compress.cpp | 8653bd61f361ead52c5078869460ee7f2f19359d | [
"Apache-2.0"
] | permissive | cpnine/hihoCoder | a95b3d2987126b4c00f1732a28a836d8e21ecf12 | 43879e5788bcc67fc799f8ebe734f458085ed07d | refs/heads/master | 2020-04-05T15:52:47.671507 | 2019-11-21T03:23:56 | 2019-11-21T03:23:56 | 61,935,073 | 0 | 0 | null | 2016-06-25T08:55:20 | 2016-06-25T08:55:19 | null | UTF-8 | C++ | false | false | 1,004 | cpp | state_compress.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
inline int bitcount(int x)
{
int ret = 0;
for (; x; x &= x-1)
++ret;
return ret;
}
int solve(const vector<int> &w, int m, int q)
{
--m;
vector<vector<int>> dp(w.size(), vector<int>(1 << m));
--m;
for (... |
cc7486e30128b769cd593eb0b2b355cd7b4c4e4a | b825f8b7f7891fd202d9c26fb6c9dc4bb6437094 | /Sheet03/include/WeakClassifier.hh | d86c25ebc3f37d62bc92415dcab0c302fa3cb2d5 | [] | no_license | arindamrc/computer_vision_2 | 6b9575c4cf9f324fa971576d32ab382b581cbb13 | 401b3a3c8209da3726521ed1ef23be6cb9a21404 | refs/heads/master | 2020-03-11T03:58:10.845912 | 2018-05-16T11:51:08 | 2018-05-16T11:51:08 | 129,763,228 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | hh | WeakClassifier.hh | /*
* NearestMeanClassifier.hh
*
* Created on: Apr 25, 2014
* Author: richard
*/
#ifndef NEARESTMEANCLASSIFIER_HH_
#define NEARESTMEANCLASSIFIER_HH_
#include <vector>
#include "Types.hh"
class Stump
{
private:
u32 dimension_;
u32 splitAttribute_;
f32 splitValue_;
u32 classLabelLeft_;
u32 classLabelRig... |
4bf0ce468c4b1a3e5da2f36cc64899e9ce3d5fb9 | 6c52eb551ad75ffec1622f78e6a9cd86e5208fcf | /framework/include/AErr.hpp | d77210beda2141433b98c3aa7d64886ebbbfedda | [] | no_license | AlanYiNew/alanard-game-c- | 3696d2c5642cc50e30133dafbf542d6ea16b6d8d | 11b6377e01ce82d5e2f2ee8473853025666bd762 | refs/heads/master | 2021-04-27T02:43:12.896061 | 2018-03-13T19:50:50 | 2018-03-13T19:50:50 | 122,700,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | hpp | AErr.hpp | #define CHECK_PARAM_RET(v, r) \ do { \
if (!(v)) \
{ \
return r; \
}\
} while(0);
|
e9134a4e971fd442ff59a6107b94b96994713a84 | d7d413acf5d34456a125f25f877e33b22334e382 | /CWindow/ctitlebar.cpp | 8c54f5735959a5ac41b6739a2f2351ba7deca7f5 | [] | no_license | ToTPeople/testTTT | 4098ae906bc432e89ee1cd9e5ac4e455fd8623de | ea9be70e797b005e24796957b7502a4edbdba4ad | refs/heads/master | 2020-04-04T22:20:30.859139 | 2018-11-12T02:18:37 | 2018-11-12T02:18:37 | 156,320,371 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,454 | cpp | ctitlebar.cpp | #include "ctitlebar.h"
#include <QLabel>
#include <QPushButton>
#include "common_define.h"
#if defined Q_OS_WIN
#include "ui_titlebar.h"
#else
#include "ui_mactitlebar.h"
#endif
class CTitleBarPrivate
{
friend CTitleBar;
public:
CTitleBarPrivate(CTitleBar* parent = NULL);
~CTitleBarPrivate();
public:
... |
7082d1fa3e4f8b74e54fa75c3669567c96f32acc | 9fdeb56b43b4419c0c12a6488c3f2d1bdab629bd | /poo2_2020_1_linked_list/main.cpp | 7185d7778adc4ee5a083a3c22b2f2554bb4766fb | [] | no_license | CS1103/sesion-1-unidad-1-linked-list-vostolaza | 2f2bf184cf0ea2e977c36a56c083c2cb60190c7d | 49c7e63228f019ec522dccdb3654e6141374ea32 | refs/heads/master | 2022-04-23T21:48:08.470517 | 2020-04-13T03:53:33 | 2020-04-13T03:53:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,411 | cpp | main.cpp | #include <iostream>
#include <cassert>
#include <string>
#include "linked_list.h"
using namespace std;
int main() {
utec::linked_list_t ll;
// Probar el metodo push_front
for (int i = 0; i < 10; ++i) {
ll.push_front(i);
}
// Verifico el tamano
assert(ll.length() == 10);
string r... |
401ab2f37b13317ea9761ff0d7593915b7fa8168 | ee418fba4254abe71ba2ce091a6255202b2bd5bf | /Task_4_cpu/cpp/disassembler/disassembler.cpp | 39584425710d12d8322495ca40c7e3322801d0d8 | [] | no_license | GreenKaban/TrackMail | 3c2f842d045bd5c51b52f1e57309cc9d104e2004 | e802102b610334a8945fd4447b48ae65c60a4b97 | refs/heads/master | 2023-02-13T12:04:05.974428 | 2021-01-13T18:50:32 | 2021-01-13T18:50:32 | 297,389,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,167 | cpp | disassembler.cpp | #include "disassembler.h"
/**
* @file from Tack_4_cpu
*
*
* @author Igor Kochetkov, DCAM MIPT (System Programming Base Chair) Student
*
* @date 11/21/2020
*/
Program* disassemble(FILE* input)
{
Program* program = new Program();
for (int inp = fgetc(input); inp != EOF; inp = fgetc(input))
{
... |
3a4d78445c939f067bf11ee8571310b2aa430bd1 | 4e85664182c2b6a6ec4ca764d24487b3cd0b2fcf | /mainwindow.cpp | 078d5930f1c540f7ebff13c7a9285d887dd898ff | [] | no_license | Sheryorov/triangulation | 3d5a66440764b2a91397df8c94c7481a70b942da | 2c8742f0a479288d1fb8ab4240186e4464b8c5ec | refs/heads/master | 2021-01-20T08:46:17.931660 | 2017-08-27T18:59:20 | 2017-08-27T18:59:20 | 101,571,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,474 | cpp | mainwindow.cpp | #include <cmath>
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "drawarea.h"
#include <QFileDialog>
#include "triFunc.h"
#include "scala.h"
MainWindow* mainWindow = 0;
DrawArea* drawArea = 0;
static double f(const R2Point&);
static double f(const R2Point& p) {
double r = R2Point(0., 0.).distance(p);... |
af40c1d7fe7f953725eaf0a622c5f8a74009a5a5 | 72fadcf513ee5120f6fbefa777732e1506d9b1cd | /ObserverExample/subject.h | 69b4b0b4f27130cb8b72bcf880e96836f7bd2ab4 | [] | no_license | Youlina3/ObserverExample | ff22f08bf830f23f912172692c0790d2291e38ed | a7bc42e279c21c5e00086fdb2fe2c5d79c1cd0f2 | refs/heads/master | 2021-04-03T01:33:48.079717 | 2016-10-17T21:04:50 | 2016-10-17T21:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 416 | h | subject.h | #ifndef SUBJECT_H
#define SUBJECT_H
#include <QMultiHash>
class IObserver;
class QString;
class Subject
{
public:
virtual ~Subject(){}
virtual void notify(QString category="");
void attach(IObserver *observer, QString category="");
void dettach(IObserver *observer, QString category="");
protected:
... |
56d9152a06c7b807860493ed3ec411752c120ab9 | 04f52c481c7d6eb1b4156b296fe5d81ddccfb161 | /utils/xml/elxmlparse.h | 213f8b1e5e9efc9ef40c52d8ce82bfa45c7ca149 | [] | no_license | starand/cpp_fw | 39c9d78439602b43498310e86f8bf704b4feceb2 | 5d2ebfe7dc3aef61558ed9f6f49293746499492c | refs/heads/master | 2021-01-11T23:59:05.013523 | 2017-02-20T09:36:05 | 2017-02-20T09:36:05 | 78,653,984 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,430 | h | elxmlparse.h | #ifndef _ELXMLPARSE_
#define _ELXMLPARSE_
class XMLDOM_Document;
class XMLDOM_Node;
class XMLDOM_Element;
enum ParseResult
{
RESULT_CLOSE_TAG = -2,
RESULT_OUT_OF_DATA = -2, // same meaning as RESULT_CLOSE_TAG
RESULT_SKIPPED = -1,
RESULT_OK = 0,
RESULT_ONLY_ONE_ROOT_ELEMENT_ALLOWED,
RESULT_INVALID_NODE,
RESULT_... |
a7c8f6f4588a117dcf60dda3e4b417a3a228f07e | a5aaa2cf1a4f31662a9f25bdb065882189ce1b4e | /shiftreg2shift/shiftreg2shift.ino | 93bf32201705e003177e6d53f974edd4a607f6ce | [] | no_license | snersnasskve/Arduino | ee56836d142a9d83ac56c127618298c958d53f1f | 21c46ef2381e99e611b5be2eed78ee39c1e4d854 | refs/heads/master | 2021-01-17T11:32:21.136164 | 2018-02-25T06:29:10 | 2018-02-25T06:29:10 | 84,039,170 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,868 | ino | shiftreg2shift.ino |
int DS_pin = 8; // leg 14 on the chip
int STCP_pin = 9; // leg 12 on the chip = RCLK = LATCH
int SHCP_pin = 10; // leg 11 on the chip = SRCLK = CLOCK
/*
* Other wiring
*
* leg 10 = Master Rest = must be pulled HIGH
* to make sure you don't clear the register
* - join it to +
* leg ... |
4f793948b0a16d1bdf9c1903b694f4572663d11a | 3ce84c6401e12cf955a04e3692ce98dc15fa55da | /utils/filters/graph/compoundBlockPresentation.cpp | 43fb99c6dda59295f310b75e534953a38721f42f | [] | no_license | PimenovAlexander/corecvs | b3470cac2c1853d3237daafc46769c15223020c9 | 67a92793aa819e6931f0c46e8e9167cf6f322244 | refs/heads/master_cmake | 2021-10-09T10:12:37.980459 | 2021-09-28T23:19:31 | 2021-09-28T23:19:31 | 13,349,418 | 15 | 68 | null | 2021-08-24T18:38:04 | 2013-10-05T17:35:48 | C++ | UTF-8 | C++ | false | false | 41 | cpp | compoundBlockPresentation.cpp | #include "compoundBlockPresentation.h"
|
b16916ec34009e447b685eb2520bd1730afd2b8f | 35cd2ebae1a8d323e23d1116c58ae812fd4f4a7c | /Hashing - Tries Challenges/arraysIntersection.cpp | 5ad050934b03079bce57331b67c9da7b429f06c0 | [] | no_license | Excalibur79/Interview-Competitive-Cpp | b3243ba58a787e355a2ff5c4ef3d04b234dff946 | 2bf9ab2263e7533f7507e58cad985ffa2401e07b | refs/heads/main | 2023-06-27T06:18:43.746920 | 2021-07-27T16:34:27 | 2021-07-27T16:34:27 | 390,248,921 | 11 | 0 | null | 2021-07-28T07:02:36 | 2021-07-28T07:02:36 | null | UTF-8 | C++ | false | false | 779 | cpp | arraysIntersection.cpp | #include <iostream>
#include <unordered_map>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
unordered_map<int, int> freq;
int n;
cin >> n;
int temp;
for (int i = 0; i < n; i++)
{
cin >> temp;
freq[temp]++;
}
vector<int> ans;
for (int i = 0;... |
f07af1a115cb53b6fb08f2f44308261dac40472d | f0b4ce0ba6972301435f182a6d4c02987ee17ab3 | /canAttendMeetings.cc | 3d1e18fa1a1c9d94331bca54bb4654f64e816a47 | [] | no_license | gs0622/leetcode | b64bf1ac8d52ea473cac98b057a5edd1c8ff3591 | ef9388f875c375f6f3cd290b04e457b416d860dc | refs/heads/master | 2021-06-02T00:54:32.332803 | 2020-05-19T01:13:51 | 2020-05-19T01:13:51 | 20,798,407 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | cc | canAttendMeetings.cc | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
bool canAttendMeetings(vector<vector<int>>& A) {
int n=A.size();
for (int i=1;i<n;++i) {
if (A[i][0]<A[i-1][1])
return false;
}
return true;
}
};
int main() {
Solution s;
vector<vector<int>> A1{{0, 30},{5, 10},{... |
7d016a76809a602769d3502b83e0a671f4968128 | 110f7675a54f60b8bb3b994421a9ae35b0a78712 | /include/segments.h | 6ad62a61ab593b548d852ccb8dd489308720b3d9 | [] | no_license | barbashov/iesmed | 5c746b00d4f3bb17e97669a9ee06fb943e3e93f7 | bab865ffdd2de8c1252aecbda1c66275a2a77aa3 | refs/heads/master | 2021-01-22T10:57:15.923242 | 2017-05-28T14:45:31 | 2017-05-28T14:45:31 | 92,666,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,459 | h | segments.h | #ifndef __SEGMENTS_H_
#define __SEGMENTS_H_
#include <cstdlib>
#include <cstring>
#include <cerrno>
#define DEFAULT_DATA_SIZE 4
#define DEFAULT_SEGMENTS_COUNT 4
#define DEFAULT_SEGREFS_SIZE DEFAULT_SEGMENTS_COUNT
#define DEFAULT_DATAREFS_SIZE 128
#define DEFAULT_SEGMENT_LEN 255
class segments_t
{
private:
class se... |
7d79f5d724ebd5e2377ba6d420879373a91d16e2 | 6d157b3426dceb8e2243f65fd56a4907d62bd30d | /unity/builds/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs57.cpp | afdbaf9ba32d27bea1ba0b3e1947f97e471968e9 | [
"MIT"
] | permissive | leeenglestone/mrtk | 49a373c9bbfb62d2c786fc7cee7319cdd2f8bbce | e9c81815e5cdfba3315bb72f16400a80383a3b63 | refs/heads/main | 2023-03-31T23:16:47.734283 | 2021-04-01T21:11:50 | 2021-04-01T21:11:50 | 352,925,109 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 402,505 | cpp | Il2CppCCWs57.cpp | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
template <typename R>
struct VirtFuncInvoker0
{
typedef R (*Func)(void*, const RuntimeMethod*);
static inline R Invoke (Il2Cp... |
5df30ee92428d6627ac42fafc2dcdb6a46e11ddd | 3c9d8787d9dd84b5402097c1331add04bc7a7f94 | /2.21 Arrays - Anticlock-wise Spiral Traverse.cpp | 2d6639e3067802978b0b523e0ec09296433a734f | [] | no_license | AbhishekPratik1810/my_cpp_dsa_practice | bfc6df01dc2412b39056b5d49791a0ccf105d19a | 37e465cf15d162dfaf535fdcf780d5d5225a8575 | refs/heads/master | 2022-12-09T03:24:24.220974 | 2020-09-15T17:50:33 | 2020-09-15T17:50:33 | 295,805,408 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 869 | cpp | 2.21 Arrays - Anticlock-wise Spiral Traverse.cpp | #include<iostream>
using namespace std;
int main(){
int row,col; cin>>row>>col;
int matrix[row][col];
for(int i=0;i<row;i++)
for(int j=0;j<col;j++)
cin>>matrix[i][j];
int startRow=0,startCol=0,endRow=row-1,endCol=col-1;
while(startRow<=endRow && startCol<=endCol){
f... |
f2c01fb2da4ef8b493cc62567d429fb287e7da2b | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/make/hunk_1103.cpp | c9b451516da22e38b145f4ae81d69d84c70ac312 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 668 | cpp | hunk_1103.cpp |
#ifdef VMS
if (!(exit_code & 1))
- error (NILF, "*** [%s] Error 0x%x%s", target_name, exit_code, ((ignored)? " (ignored)" : ""));
+ error (NILF, _("*** [%s] Error 0x%x%s"), target_name, exit_code, ((ignored)? _(" (ignored)") : ""));
#else
if (exit_sig == 0)
- error (NILF, ignored ? "[%s] Error %d... |
24d4123984b025286421d43374c56745987a1d82 | de125095fc7222890739d557d86a77ea72116dc0 | /Source/Core/Equipment/VesselEffects/ActiveVesselEffects/Effects/VioletVesselEffect.h | 065a45e3a81addcc007dfa66d8d8da4c55111723 | [
"MIT"
] | permissive | Lawrence-JD/Space-Egypt-Source | 5efde4ca8405651f81cf47cd9eaa0d5d3996cf13 | f8aa37f1fbd1a26b662bb59ed7a9580ef3853854 | refs/heads/main | 2023-08-17T18:29:54.317859 | 2021-10-24T21:02:27 | 2021-10-24T21:02:27 | 367,258,951 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,166 | h | VioletVesselEffect.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "AimedVesselEffect.h"
#include "../Targets/VioletVesselTarget.h"
#include "../Misc/VioletTargetTracker.h"
#include "Components/CapsuleComponent.h"
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.