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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82938a48357f7369796300961f73d4018e88bac3 | ffbdb4a60f627d2603e33622e1a20eb5a95dc825 | /Project1/Assignment 2/Entity.h | acbdd3604d30304d133818a18cb7d92bb504e4b6 | [] | no_license | NGAndersson/Game-Engine-Architecture | c07fd4b4823b7e8943d3ce5050e883e3c8df489d | 2f537fd409c0ca9e4a26fee327b6d289f99c509e | refs/heads/master | 2022-08-25T21:24:42.419546 | 2016-11-27T00:54:37 | 2016-11-27T00:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,099 | h | Entity.h | #ifndef ENTITY_H
#define ENTITY_H
//Temporary include
#include <DirectXCollision.h>
#include <DirectXMath.h>
using namespace DirectX;
class Entity
{
//----------------------------Functions----------------------------------------
public:
Entity()
{
m_speed = 0;
}
~Entity() {}
Entity(XMFLOAT3 ... |
4bc3137b7e323588de9c3a31a6c9b8a323c8b4f8 | 01645001f8fd67100b9ea4a7a0da2361afae68d4 | /codechef/Janauary lunchtime 2020/Bob and His Friends/BFRIEND.cpp | e974d59ad1041335e037b0fff56dc697f5a649a0 | [] | no_license | khushbooagarwal1/algorithms | e2ea5ac13eb2b18144aef034d5af153d57c36d33 | 809aec7fb98952786acfc413bca3f4022230b442 | refs/heads/master | 2021-06-01T13:53:31.241889 | 2020-06-12T06:02:51 | 2020-06-12T06:02:51 | 94,442,217 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 363 | cpp | BFRIEND.cpp | #include<iostream>
#include<algorithm>
using namespace std;
int main(){
int T;
cin >> T;
for(int i = 0; i < T; i++){
int N, A, B, C;
cin >> N >> A >> B >> C;
long time = 4000000000;
for(int i = 0; i < N; i++){
int F;
cin >> F;
time = min(long(max(B, F) - min(B, F)) + long(max(A, F) - min(A, F)) + ... |
9079271093f120cb5d9d4c188c5367a013f5c7d2 | d3b2d0432a4f488128c2798829d017a1a2377318 | /caffe/src/caffe/test/test_spp_layer.cpp | 708886e2236ae7f06ede34ea28cff84d42979742 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | openvinotoolkit/training_toolbox_caffe | 94b65290724e839cdb50e4accf6a79776190402d | 5e543a49c73190a091fe6ff364444a9714962ec0 | refs/heads/develop | 2023-01-05T17:07:42.279772 | 2022-12-21T06:50:52 | 2022-12-21T06:50:52 | 165,683,591 | 4 | 3 | Apache-2.0 | 2022-12-21T06:50:53 | 2019-01-14T15:19:52 | Jupyter Notebook | UTF-8 | C++ | false | false | 6,703 | cpp | test_spp_layer.cpp | /*
All modification made by Intel Corporation: © 2016 Intel Corporation
All contributions by the University of California:
Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
All rights reserved.
All other contributions:
Copyright (c) 2014, 2015, the respective contributors
All rights rese... |
01278d9a00e18a5a3cf885500d6fd049ef4f2dff | c8990e4a1ff432dadc14e7e2d173a4c99f9e4605 | /2020/Robot2019-Imported/src/main/include/Subsystems/Lifter.h | b6e4abf8c467e5a18817170f4fe624ddc6a7823c | [] | no_license | usfirst-frc-2135/software | e5634352918ef4eedaee84c3447c0e490bf6a43b | dd32ef4d72c9fd54e229b8763949aaa90517347c | refs/heads/master | 2023-05-01T11:07:37.355224 | 2023-04-26T03:52:35 | 2023-04-26T03:52:35 | 36,273,598 | 6 | 1 | null | 2023-04-26T03:52:36 | 2015-05-26T05:12:43 | C++ | UTF-8 | C++ | false | false | 2,082 | h | Lifter.h | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// C++ from RobotBuilder. Do not put any code or make any change in
// the blocks ... |
5bdfcb481beea32938b7a4e8181b4430a716bd9c | 7c54e1abdc9c40faa9bc471ae251ad7bae6642a0 | /game_tb/table_define/cpp_code/tb_role_coin.cpp | 989615d731413b66dfdc95b26b303570f5901930 | [] | no_license | yeshui01/TRAssetsTool | 53b603bce14fdab512923fb82c93f69ed498b251 | c1c602f4565406078aa2bfbed815a9da28f5ea4c | refs/heads/master | 2021-07-11T10:06:26.025278 | 2021-03-13T04:03:22 | 2021-03-13T04:03:22 | 239,065,511 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | tb_role_coin.cpp | // this file created by gen_dbtable.py script at 2020-02-08 11:32:26
#include "tb_role_coin.h"
// --------- custom code_3 begin --------
#include "custom_hfile.h"
// --------- custom code_3 end ----------
TbRoleCoin::TbRoleCoin(int32_t table_id) : DataTableBase(table_id)
{
// role_id
AddField(E_FIELD_VALUE_TYPE_BI... |
3980dba70026d7a019dbd2feeb6a612f29c2cd2f | 46f2e7a10fca9f7e7b80b342240302c311c31914 | /lid_driven_flow/cavity/0.0222/U | 461df6a1f73908e829b853dbb420770a59034d14 | [] | no_license | patricksinclair/openfoam_warmups | 696cb1950d40b967b8b455164134bde03e9179a1 | 03c982f7d46b4858e3b6bfdde7b8e8c3c4275df9 | refs/heads/master | 2020-12-26T12:50:00.615357 | 2020-02-04T20:22:35 | 2020-02-04T20:22:35 | 237,510,814 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63,510 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
97930a540228c942b135665f80a7e990f1ffb5cc | bbeb7e4c334f9f33ea1106810a7113b58f281b27 | /hihoCoder/1184.cpp | cef6309c683f4157edc9c972f028da828470f782 | [] | no_license | Drone-Banks/ACM | 18638af3f3307ecb26dc5e79d0a06d58c87dedaf | 937224c32f8a00ce4885f12ffd83e35b9c99718c | refs/heads/master | 2021-04-15T13:41:20.077221 | 2018-04-16T13:17:33 | 2018-04-16T13:17:33 | 126,587,158 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,691 | cpp | 1184.cpp | /*************************************************************************
> File Name: test.cpp
> Author: Akira
> Mail: qaq.febr2.qaq@gmail.com
************************************************************************/
#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <... |
85e5642e32d405616e922c1d76d260f8855c79d0 | 44227276cdce0d15ee0cdd19a9f38a37b9da33d7 | /arcane/ceapart/src/arcane/cartesianmesh/NodeDirectionMng.h | 3cfd12c8f460ad1c09478a47c46c54334b88d33d | [
"Apache-2.0",
"LGPL-2.1-or-later"
] | permissive | arcaneframework/framework | 7d0050f0bbceb8cc43c60168ba74fff0d605e9a3 | 813cfb5eda537ce2073f32b1a9de6b08529c5ab6 | refs/heads/main | 2023-08-19T05:44:47.722046 | 2023-08-11T16:22:12 | 2023-08-11T16:22:12 | 357,932,008 | 31 | 21 | Apache-2.0 | 2023-09-14T16:42:12 | 2021-04-14T14:21:07 | C++ | UTF-8 | C++ | false | false | 14,421 | h | NodeDirectionMng.h | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... |
e94bae495d5abb11269cf7179668e8d55929a413 | a1cea50d5c1b92b3a4ef3746a1f9eb1f36970797 | /Pointeurs/TP1_SE_S2/TP/TP2/exercice2.cpp | 5d2fa416fec536aa57be178f6bd0ce9157ea79f0 | [] | no_license | pierrekurza/deuxiemeAnnee | f83b023ef3dc35905ef3f31834917b6d6324af78 | fa25098e6c897e33442e7f15ad1a894562c5fa05 | refs/heads/master | 2021-05-31T08:38:12.770359 | 2016-03-09T08:45:36 | 2016-03-09T08:45:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 739 | cpp | exercice2.cpp | #include <iostream>
using namespace std;
struct Produit{
string nom;
float prix;
float poids;
Produit *suivant;
};
/*
struct Caddie{
Produit *
};
*/
Produit creerProduit(string nomP, float prixP, float poidsP)
{
Produit *newPro = new Produit;
newPro->nom = nomP;
newPro->prix = prixP... |
fc1e4b7ed5974b7909d43952a3a61dfde5dc18f5 | e7ca601a5c30b05238adcf0e4617617228c8c4ef | /Compfest X/Competition/E.cpp | e16c4c94607ff45353315f40b0090f5dfbd3f380 | [] | no_license | galihsatriawan/stiki-programming-contest | 9e31e0caf2a390bf54d095c30aeb8c3ac3c8fafe | 8d8a6c39d16bf23e9bde98dd22ecd4eb91e4edcc | refs/heads/master | 2020-03-11T01:54:36.448682 | 2018-10-20T16:08:47 | 2018-10-20T16:08:47 | 129,705,112 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 893 | cpp | E.cpp | #include <bits/stdc++.h>
using namespace std;
#define gokil main
#define For(i,n) for(i=1;i<=n;i++)
#define Fora(i,a,b) for(i=a;i<=b;i++)
#define sf scanf
#define pf printf
#define LL long long
const int N = 1e5+5;
int gokil(){
int n,i,t,m;
LL hal[N],jen;
LL kump_hal[N];
LL max_bac[N],lama,waktu,temp... |
bcf07cdeed95743f1cb077c7cfcad975532fe5a7 | c34899f73da4227bdaf62bd0aeaf244a85cacbcf | /Server/Src/ProxyServer/ProxyMsgHandler.h | 6687e8cddb52654f30d6ac6336d17d02577b63e5 | [] | no_license | ylmbtm/GameProject3 | 81864cd38534103961413d03e08a9516ba3307f3 | 356ff268130006d20022e3f0944ad6d36e4c47bb | refs/heads/master | 2023-09-03T10:18:59.569119 | 2023-08-26T09:20:02 | 2023-08-26T09:20:02 | 94,722,275 | 1,259 | 473 | null | 2020-11-07T14:26:11 | 2017-06-19T00:52:15 | C++ | UTF-8 | C++ | false | false | 1,609 | h | ProxyMsgHandler.h | #ifndef _PROXY_SERVER_MSG_HANDLER_H_
#define _PROXY_SERVER_MSG_HANDLER_H_
class CProxyPlayer;
class CProxyMsgHandler
{
public:
CProxyMsgHandler();
~CProxyMsgHandler();
BOOL Init(INT32 nReserved);
BOOL Uninit();
BOOL DispatchPacket(NetPacket* pNetPacket);
BOOL ... |
4df658b72b7300e81b7e2d9da470232e31d38996 | b1e9283abbb5201ad400fc4d064945a27eaec920 | /june-challenge-2020-division-2/CHFICRM-chef-and-icecream/main.cpp | f82fe70735d27ce20575be22ffe4f786218eef67 | [] | no_license | arunjain9988/CP | 011696edb87009d50a12a6effc1b103cae07ba2f | e32f601f46218ee9871a06b66050dcbbede480a6 | refs/heads/main | 2023-05-07T20:38:46.801070 | 2021-05-10T08:45:16 | 2021-05-10T08:45:16 | 356,560,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,297 | cpp | main.cpp | #include <bits/stdc++.h>
#define print(__print__var) cout<<__print__var<<'\n';
#define input(__input__var) cin>>__input__var;
#define fo(i,a,b) for(int i=a; i<b; i++)
typedef long long ll;
using namespace std;
int t,n,count5,count10;
int a[1005];
bool done;
int main() {
ios::sync_with_stdio(false);
cin.tie(... |
b00c0db462e15c69f6cc52cd07570956a96361b1 | 9947ab9fe44e04332d3a4440c9951311a925ee94 | /SpaceServer/projectCopy_Physics/BaseProject/BaseProject/CollisionPair.h | 5f4f947eddf60096049edb7e290be819a95a9fc7 | [] | no_license | fueltherage/SDLServerGame | 8c87cec565e5bc8c1ae2ea52e339389251b43380 | bd16c02baf58d891ff227e41595c451c1b08ecc9 | refs/heads/master | 2018-12-30T00:26:24.016857 | 2014-04-09T01:04:50 | 2014-04-09T01:04:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 260 | h | CollisionPair.h | #pragma once
#include "PhysicsObject2D.h"
class CollisionPair
{
public:
CollisionPair(void);
~CollisionPair(void);
CollisionPair(PhysicsObject2D* _object1, PhysicsObject2D* _object2);
PhysicsObject2D* object1;
PhysicsObject2D* object2;
private:
};
|
f5112ec06532a6cc5a4c42a80a57f6c379f934ee | 4c3068dd69156650a7e8042771fab4408794d653 | /1.17/is_it_a_binary_search_tree.cpp | 07992c404be2165b7bb43036af7ecbbd361babf8 | [] | no_license | GXMhahahaha/PAT | 396d4cae43fa4c51ad7aecc35e9c3482a06902e1 | 891061921a1b45e3e3ee49731b2206a54f1eb1fb | refs/heads/master | 2023-07-08T19:06:37.482228 | 2021-08-05T03:21:47 | 2021-08-05T03:21:47 | 392,892,525 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,988 | cpp | is_it_a_binary_search_tree.cpp | //插入节点使用循环插入
//vector可以直接两两比较大小
#include <stdio.h>
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
const int maxsize = 1010;
int N;
int a[maxsize];
struct Node{
int key;
Node* left;
Node* right;
};
void insert_BS(Node*& root,int num){
if(root == NULL){
root = new(Node);
ro... |
d3fb438ba20de125101950afb0d59f604c03ae44 | b28a09b216e9aa51246aca9b961bfaed1227e03d | /Includes/Snake.hpp | c0b9de8f5f747eb12e9ec5d1ee71da37e7d9e60b | [] | no_license | tacite/cpp_nibbler | 2088ac7dcd0878c10264ae81f173514025361517 | a097208b853f1c2c3786d5ace1002fa79f75771d | refs/heads/master | 2021-01-01T03:45:45.470858 | 2016-05-10T15:16:49 | 2016-05-10T15:16:49 | 58,470,252 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 857 | hpp | Snake.hpp | /*
** Snake.hpp for nibbler in /home/bajeux_m/Documents/Teck2/cpp/nibbler/cpp_nibbler/Includes
**
** Made by Maxime Bajeux
** Login <bajeux_m@epitech.net>
**
** Started on sam. avril 05 03:10:39 2014 Maxime Bajeux
** Last update sam. avril 05 03:10:40 2014 Maxime Bajeux
*/
#ifndef __SNAKE__
# define __SNAKE__... |
6286462f5766da85e54256135ae06f93cfb9bb85 | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /content/browser/interface_provider_filtering.cc | 527629bad0aaf00f575254bb4d9993e3704a908d | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | C++ | false | false | 5,630 | cc | interface_provider_filtering.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 "content/browser/interface_provider_filtering.h"
#include <utility>
#include "base/bind.h"
#include "base/stl_util.h"
#include "base/strings/st... |
53dbcf8054cf9c709a36fd575eb43e6129e0a5ef | 1e2b2e0b36dfa5d9c71c06c9919b13bc18899e80 | /snowman.hpp | da462488c6ef43aff8c0d8dc821b0c6fd0789d3e | [
"MIT"
] | permissive | Jewgah/Snowman-B | a8dc15a1e553794e229762d521018b3bae25b082 | 58a67861bccdebdf2447ad3f5bd838dc65456791 | refs/heads/master | 2023-03-15T06:30:48.332129 | 2021-03-18T10:27:12 | 2021-03-18T10:27:12 | 349,030,404 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | hpp | snowman.hpp | #include <string>
#pragma once
const int MIN = 11111111;
const int MAX = 44444444;
const int MIN_DIGIT = 1;
const int MAX_DIGIT = 4;
const int LENGTH = 8, FINAL_INDEX = 7;
const int TEN = 10;
const int FIRST_DIGIT_INPUT = 0;
const int SECOND_DIGIT_INPUT = 1;
const int THIRD_DIGIT_INPUT = 2;
const int FOURTH_DIGIT_INP... |
b741c85be977ac84f70efc803d9c46ee125bdc93 | 0947c2de11865e5b98f55d3e2178436c8fce1b96 | /platooning/runtimeManager/Contracts.h | 8ad748714864ef00fc95f6a30f80f232ba2dbc2a | [] | no_license | maaahad/RuntimeManager | b6375c71653163a086e6873463b5f78ef952e0d6 | 57efb4d5d867faa0634050c2fdbb4cab7b46b2bb | refs/heads/master | 2021-10-16T06:30:30.149014 | 2019-02-08T15:17:52 | 2019-02-08T15:17:52 | 153,804,048 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,514 | h | Contracts.h | //
// 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 version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it wil... |
25ffebc5cdd59516d7c2801f2253f7c3c685be2d | 97a4e5497dde3e607038b1f7aca39966f2be2f0c | /Plugins/M3/Source/M3/Public/Gameplay/MVC/Models/M3ElementModel.h | 79c209132d01c0d3c597ee340368302a92d4baf7 | [] | no_license | codeoneclick/M3 | 1fc5aeff6493cf09ad59135723051cc28eb66e54 | 5ffab48821569fb4cc2c3f25a7c5a26c928a8669 | refs/heads/master | 2021-04-27T19:19:37.056315 | 2018-04-02T08:16:40 | 2018-04-02T08:16:40 | 122,354,168 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | h | M3ElementModel.h | // Copyright serhii serhiiv 2018 All rights reserved.
#pragma once
#include "CoreMinimal.h"
#include "M3Entity.h"
#include "M3Model.h"
enum EM3ElementState {
IDLE = 0,
SPAWNING,
SWAPPING,
DROPPING,
MATCHING,
REMOVING,
};
enum EM3ElementColor {
NONE = 0,
RED,
GREEN,
BLUE,
YELLOW,
ORANGE,
PURPLE
};
clas... |
fdc860c826aee69755f6322c961cd52ab233cdaf | a6478c5d4bb1e1c9aa60e7ade5dc773104fea4dc | /Algo/sort.cpp | 16c7b670da193521153593dcc284db5d9292e24a | [] | no_license | henrywoo/Algo | c7b8982c36621231534313d7fa1831956ae9b5b9 | cccccd9604947d64cb08cbb8b7e6b92ea1dca7cd | refs/heads/master | 2021-06-01T18:49:05.330281 | 2018-11-16T19:04:39 | 2018-11-16T19:04:39 | 11,399,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,306 | cpp | sort.cpp | #include "sort.h"
#include <time.h>
#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
/*
* insertion sort
* selection sort
* merge sort (bottom-up and top-down) crux is merge
* quick sort
* radix sort
* bucket sort
* heap sort
* counting sort
* topological sort
* */
using nam... |
54d123c40cfb2f63fae7ead666bbaff10dc39dd7 | 1dc05c3cb3a57aea5f64052f329eaf458f73c832 | /data_structure/circleLinkList/test.cpp | 40cd4c11d2aa92f49e856d92b5915c8dccc66ad1 | [] | no_license | ITShadow/practiceCode | 0b1fcbb6b150a1ee91283e8ac7a8d928b4751eda | 4b407ad98e3abc0be5eadc97ff32165f9f367104 | refs/heads/master | 2023-04-08T05:53:21.734166 | 2021-04-26T03:45:46 | 2021-04-26T03:45:46 | 295,429,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,616 | cpp | test.cpp | #include <iostream>
#include "LinkedCircleList.h"
using namespace std;
int main()
{
CircList<int> a;
CircList<int> b(10);
cout<<"以前插法建立循环链表,并且以0符号结束!"<<endl;
b.inputFront(0);
cout<<"输出刚建立的循环链表为:"<<endl;
b.output();
cout<<"测试复制构造函数c"<<endl;
CircList<int> c(b);
cout<<"输出复制构造函数c"<<end... |
5612a7c65b7d4b3e496cfdadfa260da0c9a5d927 | 1f70403af1b12d9a254bb697c9dab64c1aafb626 | /src/cpp/benchmark/src/param.h | 05da3f87e6b489986a627143657c86cf69ff1871 | [
"MIT"
] | permissive | tohosokawa/pages | 56d00a67ad0ddf51ec13d81b1c95589f05bf3e6a | 5837a801cd22fa512b9c6846706a313add3fbc5d | refs/heads/master | 2023-02-11T09:40:31.856646 | 2021-01-09T10:18:31 | 2021-01-09T10:18:31 | 286,677,849 | 0 | 0 | MIT | 2020-09-21T09:24:21 | 2020-08-11T07:37:07 | C++ | UTF-8 | C++ | false | false | 146 | h | param.h | #ifndef __PARAM_H__
#define __PARAM_H__
constexpr int elem_size_start = 1024 * 1;
constexpr int elem_size_end = 1024 * 1;
#endif // __PARAM_H__ |
9182f7ac63948370ca7673c63aabb87b5ff1ae7c | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor3/1.02/U | 61772a6b6df9abc1503d6da2b2f46c4006a25316 | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118,071 | U | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
e51b683769e0fe9db3323c21fe25cf1624655a1f | 021644ade3a504eebdc010a2717879fffed5eba2 | /src/OpenDB/include/opendb/layout.h | 22d21d68a14f97462a5053c63e7f4aabbd2c2ce6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ahmednofal/OpenROAD | 29b2f885753abc3a2b8f0a4606a83f0c1c0966f5 | 3a88c3678e1c6b8e2c729a5a2b09ab65eaca4f82 | refs/heads/master | 2023-04-30T07:33:13.741749 | 2021-04-29T22:27:01 | 2021-04-29T22:27:01 | 361,839,256 | 0 | 0 | NOASSERTION | 2021-04-29T12:48:16 | 2021-04-26T17:37:53 | null | UTF-8 | C++ | false | false | 4,842 | h | layout.h | ///////////////////////////////////////////////////////////////////////////////
// BSD 3-Clause License
//
// Copyright (c) 2019, Nefelus 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:
//... |
2d1a7ba6f1eef0d1834ff0560d82b9655cb4bfff | eec151469db7aaf57a590d4f448f9a91402ca58b | /misc/sortstl.cpp | 209db0f2b544b2b42bf21dffb849c89fc724206e | [] | no_license | VivanVatsa/c-collection | bf0a37261095bc28871568b7d04d84f9fde7f48c | 53317863911566257669f247609d6369ba0c4420 | refs/heads/master | 2020-12-26T21:06:24.106467 | 2020-12-10T05:41:07 | 2020-12-10T05:41:07 | 237,642,241 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 947 | cpp | sortstl.cpp | #include <bits/stdc++.h>
using namespace std;
struct interval{
int start;
int end;
};
/*
For eg: In the code below, suppose intervals {6,8} and {1,9} are passed as arguments in the “compareInterval” function(comparator function). Now as i1.first (=6) > i2.first (=1), so our function returns “false”, which te... |
5764fcf0dbe1b9392cfe634426b8120dd0103883 | e05cd6bea358134e48035a29cbeee156f38cab34 | /jiandaoshitoubu/Server/Server.h | 24e6233a40fec9388a2b13c5fad20a08eb369d84 | [] | no_license | nustxujun/jiandaoshitoubu | 21bc53052240eecf53a7d1036d3ce14a4b822f62 | d8fc0c00c9841f037962bd3f4da0c51254eff162 | refs/heads/master | 2021-01-02T08:57:45.419595 | 2014-09-26T06:40:45 | 2014-09-26T06:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,321 | h | Server.h | #ifndef _Server_H_
#define _Server_H_
#include "Common.h"
#include "Socket.h"
#include "DataStream.h"
#include "User.h"
#include "EventManager.h"
#include "SceneNode.h"
namespace JSB
{
class Server
{
struct Link
{
int nextSize = 0;
Socket* sock = 0;
User* user = 0;
};
public:
Server();
~Server(... |
00b1998e011864f173cc96b0412c104f21fcd6a3 | 47fb53066a178fecee386fb8ca0ab942392c34b7 | /src/mgGL/IRisect.cpp | 1962ae5640f082c5f35e72bf7ddac85b6939b68a | [] | no_license | zephyrer/mgcl | 9eae7017ca728c6c565a74d16229146fa5e877f3 | c63b24d5c5f0423acffe84bd4a2208ab2629d2f8 | refs/heads/master | 2020-05-20T04:17:24.355869 | 2018-08-18T08:35:42 | 2018-08-18T08:35:42 | 40,066,710 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,219 | cpp | IRisect.cpp | /********************************************************************/
/* Copyright (c) 2011 DG Technologies Inc. and Yuzi Mizuno */
/* All rights reserved. */
/* Granted under the MIT license (see mg/MGCL.h for detail) */
/***********************************... |
6c9671fef0df37759412751fdccec68f96797df0 | 37953df59ec31699c69efd211f7daf8fe8baaa64 | /Project_NGP/Project_NGP/Player.cpp | 642966c5c63624a58a25428dacdeda30185f873e | [] | no_license | NetworkGameProgramming/Project_NGP | cf02788f964c84035d3fe7162eb5e2bcd47e7f40 | d65b2de68c9af25a47f47b897e9e0726a396bcb1 | refs/heads/master | 2022-03-21T04:33:09.781664 | 2019-12-04T15:53:31 | 2019-12-04T15:53:31 | 206,972,514 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 9,644 | cpp | Player.cpp | #include "stdafx.h"
#include "Player.h"
#include "Portal.h"
#include "Fade.h"
#include "Text.h"
#include "Chat_Box.h"
#include "Chat.h"
Player::Player()
: GameObject()
{
}
Player::~Player()
{
Release();
}
bool Player::Initialize()
{
m_Info = GAMEOBJINFO{ 800, 600, 200, 200 };
m_CollideInfo = GAMEOBJINFO{ 0, 0, 4... |
80bf713b7c0ccd3578916ac1f42850d48fbbcca5 | 4d4fe5b8e19c289a280395220f7b48af3f78ef88 | /566.重塑矩阵.cpp | 534f6efb5c414b48781cbc3f111ccd936e648244 | [] | no_license | linguinan/leetcode-cpp | 36d9d0c2462c1d28e2288449bdd7689477e80c96 | 88a43f6a1ed7eee733204da5e1931f6a3b86eb38 | refs/heads/master | 2023-03-18T09:15:35.063093 | 2021-03-03T01:37:31 | 2021-03-03T01:37:31 | 337,942,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | 566.重塑矩阵.cpp | /*
* @lc app=leetcode.cn id=566 lang=cpp
*
* [566] 重塑矩阵
*/
#include "headers.h"
// @lc code=start
class Solution {
public:
vector<vector<int>> matrixReshape(vector<vector<int>>& nums, int r, int c) {
int row = nums.size();
int col = nums[0].size();
// 数量不匹配
if (row * col != r * ... |
71b6b81060c0d999316cfa62687b61d5270a81c8 | 85f2ea6966c465a7a6b34a3da457202d0ddf7b0c | /src/cheat/SDK/Misc/VGUI.hpp | 2f55ce396585433683db02fdd0d2af28679bc3f1 | [] | no_license | ALEHACKsp/Astronium-CSGO | f663df4aa2a66d97177d7d3a6d7409ef316e962b | 6be6b3bf38f8f530134a32947ddf1d6a2ab87b24 | refs/heads/main | 2023-02-07T07:52:43.692457 | 2020-12-29T16:57:10 | 2020-12-29T16:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 76 | hpp | VGUI.hpp | #ifndef VGUI_HPP
#define VGUI_HPP
typedef unsigned int VPANEL;
#endif |
96ca3f791eb4f6dba151197ba599b1d6103e8916 | 92d543d585776683a23973d9756553025d6a7bdf | /Demo37/main.cpp | 9ff2b0fa7b9629169f413e5fa56ac809e278b16e | [] | no_license | x-jeff/OpenCV_Code_Demo | e277fe6be52416f4607dae46c13d5c092193cd77 | 846daa8fd14e159cf158007fc0a25a4f7d63de6f | refs/heads/master | 2023-09-01T04:16:35.644239 | 2023-08-21T14:28:14 | 2023-08-21T14:28:14 | 166,808,129 | 67 | 22 | null | null | null | null | UTF-8 | C++ | false | false | 747 | cpp | main.cpp | #include <opencv2/opencv.hpp>
#include <iostream>
using namespace cv;
int main(int argc, char** argv) {
Mat src = imread("../../Demo32/home.jpg", IMREAD_GRAYSCALE);
if (src.empty()) {
printf("could not load image...\n");
return -1;
}
namedWindow("input image", WINDOW_AUTOSIZE);
ims... |
aea3c51269b0ccf2cded55fb019ce2d7c0b8d644 | 2eca4f53273d4766b32675d4a74bc83ee35a7ba4 | /contests/codeforces/773/c.cpp | 3415e9847ebb36624583d8195b966971ce3c6003 | [] | no_license | matheusataidee/algos | 491ed4fc3b7cee87d25c7bb76184c12b1662c10d | edb7e48d0e903bc168c5c77e00385f9e0bd43cae | refs/heads/master | 2022-03-26T17:20:17.001045 | 2022-03-04T14:08:29 | 2022-03-04T14:08:29 | 187,294,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | cpp | c.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
ios::sync_with_stdio(false);
int t;
cin >> t;
while (t--) {
ll n, x;
cin >> n >> x;
map<ll, ll> freq;
for (int i = 0; i < n; i++) {
ll val;
cin >> val;
freq[val]++;
}
for (auto& it : freq) {
const ll& cur = i... |
86d46f354314b86261e705c3c4f794f9f83d6725 | 2ad679d279fab0f4a7e59799efdbc9169dc53683 | /ESP12Clock.ino | 7a30ffd9eee86af480a6a7a44c9e92d5a4898727 | [] | no_license | SrFatCat/ESP12Clock | e349b98a787dc0e68c6e49f972ab47120e22b2d9 | bf52667363da071071b938e6957c992e307ecd6f | refs/heads/master | 2023-01-04T21:33:26.782211 | 2020-10-31T08:02:32 | 2020-10-31T08:02:32 | 304,950,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,777 | ino | ESP12Clock.ino | /*
Name: ESP12Clock.ino
Created: 10.10.2020 16:52:00
Author: Alexey Bogdan aka Sr.FatCat
*/
//#define _DEBUG 1
#define PROJECT "ESP12Clock"
#define VERSION "1.1"
#define NTP_SERVER "192.168.0.60"
#include <MyArduino.h>
#include <MyWiFi.h>
String deviceID = "ESP";
#include <TM1637Display.h>
#define CLK 5
#define ... |
0640f645be68be980005c97b69844604d7d8d47b | 63c60b4248b8a2065b3b79eee147b9f80add5d3c | /gRenderableGroup.h | bae7f590444b14e38be837c901fd5ae25c078ba5 | [] | no_license | shultays/bifrost | 9fb28144aeb0982786425801ad02499921ac0b2a | f18ac298f114604643a0ad289db26912174f0ac6 | refs/heads/master | 2021-01-21T21:53:59.781832 | 2016-03-21T23:36:34 | 2016-03-21T23:38:07 | 30,676,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 837 | h | gRenderableGroup.h | #pragma once
#ifndef G_RENDERABLE_GROUP_H__
#define G_RENDERABLE_GROUP_H__
#include "gGame.h"
#include <vector>
class gRenderableGroup : public gRenderable {
std::vector<gRenderable*> children;
public:
gRenderableGroup(bool autoAdd = true, int priority = max_priority) : gRenderable(autoAdd, priority) {
}
~gRe... |
435803e88902346ff39b22a5e9956e0345350851 | e30ab85bde0c8887f4fb519337da95ad4393fe8d | /NewUITrade.h | 9e2e52bb8db4699e6ff0a58e6383325e74b0f8f2 | [] | no_license | rodrigolmonteiro/muonline-client-sources | a80a105c2d278cee482b504b167c393d3b05322e | be7f279f0d17bb8ca87455e434edd30b60e5a5fe | refs/heads/master | 2023-06-29T09:45:22.154516 | 2021-08-04T17:10:15 | 2021-08-04T17:10:15 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 5,244 | h | NewUITrade.h | //*****************************************************************************
// File: NewUITrade.h
//
// Desc: interface for the CNewUITrade class.
// 거래창 클래스.
//
// producer: Ahn Sang-Kyu
//*****************************************************************************
#if !defined(AFX_NEWUITRADE_H__25FC9... |
30b3c8bef35475ea39a55382e653721a5e483656 | 53e5f3b52f6d3aab128be556f473e9645be9b069 | /include/moost/logging/pseudo_ostream.hpp | 56f5a4419c6e98d9f2f75bca127fd05bedb443c0 | [
"MIT"
] | permissive | 1901/libmoost | 7fe1fecdbec78f026c40a2d06eb3885dc2105bdf | 895db7cc5468626f520971648741488c373c5cff | refs/heads/master | 2021-01-21T04:11:53.023058 | 2013-02-22T11:49:18 | 2013-02-22T11:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,761 | hpp | pseudo_ostream.hpp | /* vim:set ts=3 sw=3 sts=3 et: */
/**
* Copyright © 2008-2013 Last.fm Limited
*
* This file is part of libmoost.
*
* 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,
... |
310972b32e6e359589d541d1e664b399b6390087 | 8b71bcbf94096ce371660c1b6d73eb5fc937b3bf | /L2k2019-11-11/Zver.h | 5f39bdb528d4dc819f285e0b2c0928ef1ee83f8e | [] | no_license | Smak80/AbstractClasses | ed7a7e81f841fc3865b4ce1c378e9e2af608beae | 8739bac641e12abcc7cfc36db2e5070a6ef0e69a | refs/heads/master | 2020-09-09T01:38:14.974757 | 2019-11-12T20:19:37 | 2019-11-12T20:19:37 | 221,304,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148 | h | Zver.h | #pragma once
#include <string>
class Zver abstract
{
protected:
std::string name;
public:
virtual void golos() = 0;
Zver(std::string name);
};
|
6d2cffa646ac916f077d6109ce3ffe4e6dea263e | 59c1d6ffd3159edc7075d868bb73455d023b0b30 | /src/nnfusion/engine/pass/codegen/hlsl_cpp_codegen_pass.cpp | 78ee0107c6c08ef9efbc088fe6c1578d2fdab4b0 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | vihowe/nnfusion | 1067b925e7478d0e524a652570b8e04364ac1954 | a308acfe786bade1ca17527121b44b2a748762a8 | refs/heads/master | 2023-03-09T15:22:03.106931 | 2021-02-24T05:08:03 | 2021-02-24T05:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,158 | cpp | hlsl_cpp_codegen_pass.cpp | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "hlsl_cpp_codegen_pass.hpp"
#include "codegenerator_helper.hpp"
#include "nnfusion/common/descriptor/layout/tensor_layout.hpp"
#include "nnfusion/common/descriptor/tensor.hpp"
#include "nnfusion/core/kernels/hlsl/hlsl_kernel_emitter.hp... |
e27e8df69dd05c0da107a3daf174a8eb812c1f91 | db209f0c2bfdeccf3585b001e97aed4a88d9690c | /core/src/main/lspl/graphan/Graphan.h | b1058822e4c4c6590c0e461b2f15aef3099fb4b9 | [] | no_license | alesapin/lspl | b444245838fdebbec2fdc985c20be3577c77d314 | d60759a3d84153291eb3886a6dd1633550ede45f | refs/heads/master | 2023-04-15T19:10:33.632013 | 2023-04-08T18:51:35 | 2023-04-08T18:51:35 | 45,533,703 | 3 | 0 | null | 2020-05-30T13:17:19 | 2015-11-04T11:08:10 | C++ | UTF-8 | C++ | false | false | 789 | h | Graphan.h | /*
* Graphan.h
*
* Created on: May 9, 2009
* Author: alno
*/
#ifndef _LSPL_GRAPHAN_GRAPHAN_H_
#define _LSPL_GRAPHAN_GRAPHAN_H_
#include "../base/Base.h"
#include "Unit.h"
#include <boost/ptr_container/ptr_vector.hpp>
namespace lspl { namespace graphan {
class LSPL_EXPORT Graphan {
public:
/**
* Пол... |
a750514e28d4ef4b922c6368adb7411c41ec088a | 8b41fc308f8fb64f90fff3cbeb2d2aee977f7004 | /rrcstate.cpp | 71d31848863c5058ff5b5b8d0dd70b20926b1997 | [] | no_license | laoyaosniper/QoETrafficAnalyzer | e78d7c640e3f3cd4be237ffd24ea8914ceef4cbf | cd2b59d29abf3a471ccaf4b9e05d5d5695a100f6 | refs/heads/master | 2021-01-15T22:20:39.845065 | 2015-03-20T14:12:00 | 2015-03-20T14:12:00 | 30,719,599 | 0 | 0 | null | 2015-02-12T19:30:05 | 2015-02-12T19:30:05 | null | UTF-8 | C++ | false | false | 831 | cpp | rrcstate.cpp | #include "rrcstate.h"
RRCStateMachine::RRCStateMachine(){
clearData();
}
void RRCStateMachine::clearData(){
prev_ts=-1;
state="";
pkt_counter=0;
}
void RRCStateMachine::packetArrival(const struct pcap_pkthdr *header, const u_char *pkt_data){
u_char *pkt_ptr = (u_char *)pkt_data; //cast a pointer to the... |
42162c46bbfb1a4ed0aba42171425417305270ac | b239039156fe541fb157f81d487b1758b84fc286 | /core/sql/optimizer/NAFileSet.h | d4ed3f2669ff93b1d1ba896be78ac2a04998d6fc | [
"Apache-2.0"
] | permissive | radumarias/incubator-trafodion | a26da84a628dbde0559ba2e903bb777fab1903d3 | 6edf28c6a4ee1721d3225d47d0be541d125b6138 | refs/heads/master | 2021-01-16T00:22:54.566854 | 2015-09-03T04:44:32 | 2015-09-03T04:44:32 | 41,851,063 | 0 | 0 | null | 2015-09-03T09:10:16 | 2015-09-03T09:10:15 | null | UTF-8 | C++ | false | false | 20,928 | h | NAFileSet.h | /**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
0d998a18690973bc0f7bb7995a6a97af1492633f | c45a3ea1120b833190d7b34de6dc56e21aa0408e | /Group.cpp | b7a7722b5a4de43d4c26d83c7e3bd2281df60200 | [] | no_license | mrashidz/smart_meter | 761c16ff255ea5d19de9bae7af38304a30a4cf46 | b89b0fd4320ce5c64f19d7a4b9cb2bb31b253063 | refs/heads/master | 2020-03-23T16:03:45.620493 | 2018-07-21T10:12:35 | 2018-07-21T10:12:35 | 141,792,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | Group.cpp | #include <cryptopp/osrng.h>
#include <iostream>
#include "Group.h"
namespace PrivateDataAgg {
clsGroup::clsGroup() {
}
void clsGroup::init(const unsigned int _noOfHHs, const unsigned int _i) {
this->ID = _i;
this->ActiveHousHoldes = _noOfHHs;
this->HHs.resize(_noOfHHs);
Public::INFO::Instance().up... |
c4d8917268333cea852df8a2b417e4c55aad8304 | 4aa457996ad406341dd2ecd76543e8b579d4bb9e | /c++/sandbox/empty-index/empty-index.cpp | bcfb6147d0bcb429d4f2285c3daccf86b8a3b7b3 | [
"MIT"
] | permissive | pombredanne/pyseqan | 43db71d174c4fa87701877c6cd85220b93bf93d3 | b29cffe3a061c8039ac083560f0aef9bedbac9c9 | refs/heads/master | 2021-01-16T19:03:28.649763 | 2014-05-29T14:30:51 | 2014-05-29T14:30:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 301 | cpp | empty-index.cpp | #include <seqan/index.h>
int main( int argc, char * argv[] ) {
using namespace seqan;
typedef StringSet< String< Dna5 > > string_set_t;
typedef Index< string_set_t > index_t;
string_set_t seqs;
index_t index( seqs );
Iterator<
index_t,
TopDown<>
>::Type iterator( index );
return 0;
}
|
e2ed9b76235a5045ab8af3e755c7659999634acf | 3bdbc5b4a14284ca6a9206a17454f79826b7de27 | /client/repasswddialog.h | a655604be959b06d7b2d90546f434b56a70fb2a3 | [] | no_license | darkicerain/dnfLogin | 6ea713b2a16e881985ea3ec8ccb9da438726d82c | 77d0b71d40a2243c5feddd2c0540033fa9f15350 | refs/heads/master | 2021-12-15T00:33:20.949730 | 2017-05-08T10:48:46 | 2017-05-08T10:48:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 560 | h | repasswddialog.h | #ifndef repasswdDialog_H
#define repasswdDialog_H
#include "forgetdialog.h"
#include <QDialog>
#include <QNetworkReply>
namespace Ui {
class repasswdDialog;
}
class repasswdDialog : public QDialog
{
Q_OBJECT
public:
explicit repasswdDialog(QWidget *parent = 0);
~repasswdDialog();
... |
e3ee81c502ff988f505f81ddcd074316f64fab9a | 56055e22c07cff80745082097f6f9187a4670106 | /NP/GuassianElimination.cpp | fe2ececdab47985560acc4237578dbd268051d5f | [] | no_license | c0D3M/Optimization_Problems | 51d6d2fbbc7ec2899a55aa5001a6a28f5297a796 | 9bcbedc03443e6e31cfa64d73c29e3fed17a53be | refs/heads/master | 2022-12-08T12:05:52.971403 | 2022-11-23T12:49:45 | 2022-11-23T12:49:45 | 151,414,284 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,727 | cpp | GuassianElimination.cpp | #include <cmath>
#include <iostream>
#include <vector>
const double EPS = 1e-6;
const int PRECISION = 20;
typedef std::vector<double> Column;
typedef std::vector<double> Row;
typedef std::vector<Row> Matrix;
struct Equation {
Equation(const Matrix &a, const Column &b):
a(a),
b(b)
{}
Matr... |
055e058f63d48981285c5a35a9bd0d82e5a9731b | 3e4044c6d8f3b1b515cc2f1689223c87b5e2971a | /src/main.cpp | 3bd320e738d718d3e29eea77bbedf3c11eff5a03 | [] | no_license | lycfr/umc_android-overdraw | 1d39cbf8af3923941f6583de9e3136a16a9a1199 | 160c0e32ba8539672d0c666d78adf960882da186 | refs/heads/master | 2021-09-21T10:23:13.173232 | 2018-08-24T07:54:17 | 2018-08-24T07:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,981 | cpp | main.cpp | #include <iostream>
#include <string>
#include <unistd.h>
#include <vector>
#ifdef __CYGWIN__
#include <dirent.h>
#endif
#include "config.h"
#include "logger.h"
#include "opencv2/opencv.hpp"
#include "opencv2/core/core.hpp" // 核心组件
#include "opencv2/highgui/highgui.hpp" // GUI
#include "opencv2/imgproc/imgproc... |
4600b9ec373b2347c4ced369af8d1b2b4baab344 | 2d6e5077a777cea26150d55abd08fb66e02f3308 | /AIPPS_Lab1/AIPPS_Lab1/Code.cpp | 96897824e43b5cdf314b35f1bd9581b4ede4415f | [] | no_license | Rush994/Lab1 | ccd2365cb5778eba469931554609e76491da6b03 | 4ee9f0db67c96e1edc2291831f6dbdd36e3c332e | refs/heads/master | 2021-06-07T16:22:50.776281 | 2016-11-17T10:24:03 | 2016-11-17T10:24:03 | 73,836,416 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,154 | cpp | Code.cpp | #include <iostream>
#include "Classes.h"
int main()
{
/////////////////// Bridge ////////////////////
std::cout << "/////////////////// Bridge ////////////////////" << std::endl;
ConcreteImplementorA implA;
ConcreteImplementorB implB;
RefinedAbstraction rabA(implA);
RefinedAbstraction rabB(implB);
... |
ed81d94507dea9544fde209328fe8d4943cce603 | 2d30c16fc51e40c1e515dd5c734f5fd0b136d3b8 | /suffix_structures/suffix_automata/main.cpp | a78e36fc337a49532de06defd70f984b8870363b | [] | no_license | IldarGainullin/algos | 97da79185e4b0b77454431b9b59306386b7540cc | f9c373cc6dbd870a701fbfe87a700abdff97a52a | refs/heads/master | 2021-01-22T11:11:20.785910 | 2017-06-27T15:08:40 | 2017-06-27T15:08:40 | 56,877,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,551 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define mp make_pair
#define fc first
#define sc second
#define endl '\n'
#define ll long long
#define forn(i, n) for(int i = 0; i < (int) (n); i++)
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
const int MAXN = (int) 1e5 + 7... |
0595a71bcccfd705bad9102bc93d065fc9c2035e | b5f796726dc14134bfd61f176cf8bb9b8093d276 | /TopCoder/SRM 595 DIV2/LittleElephantAndBallsAgain.cpp | 00e5dee084a84f4d415dddaef0aea4b08724ea3b | [] | no_license | zjbztianya/ACMCode | bd3c46cddb2fadace5ace0099c2ba23803324916 | f7f1deced7a3a0773f577fbfdba0672834f5a26d | refs/heads/master | 2021-05-16T02:56:59.007684 | 2016-12-03T09:34:07 | 2016-12-03T09:34:07 | 18,875,924 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | LittleElephantAndBallsAgain.cpp | bool check(string s,int x,int y)
{
int r=0,g=0,b=0,len=y-x+1;
for(int i=x; i<=y; i++)
{
if(s[i]=='R') r++;
if(s[i]=='G') g++;
if(s[i]=='B') b++;
}
if(r==len||g==len||b==len) return true;
return false;
}
class LittleElephantAndBallsAgain
{
public:
int ge... |
042e466399a1a537ba69a615d559d374f4afb5f6 | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /ACE/ACE_wrappers/examples/Service_Configurator/IPC-tests/client/local_dgram_client_test.cpp | b40cfa5c2370e3f2fe0463277abdaadc1f479252 | [
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 3,150 | cpp | local_dgram_client_test.cpp | // Tests out the UNIX domain IPC-SAP abstraction.
#include "ace/OS_main.h"
#include "ace/LSOCK_CODgram.h"
#include "ace/LSOCK_Dgram.h"
#include "ace/UNIX_Addr.h"
#include "ace/Get_Opt.h"
#include "ace/OS_NS_string.h"
#include "ace/OS_NS_stdio.h"
#include "ace/OS_NS_stdlib.h"
#include "ace/OS_NS_unistd.h"
#include "ace... |
14d5a7d57ec658aab3d5d7dbabdf24cf26b8bd6d | 45bf84a21b55d0146b5552be5db4f12e62162683 | /Cracking-The-Coding-Interview/Ch01/String_Rotation/main.cpp | 61b517663ef6e5109b514efb058a35eb831e2e3f | [
"MIT"
] | permissive | forbidden404/Coding-Challenges | b06ce1b138c26ffb8557c6929c30561daec2ef5a | ea8d90658a136fbd3fd7806850c56c8f800fcf55 | refs/heads/master | 2020-05-21T01:35:54.821749 | 2019-07-31T00:38:47 | 2019-07-31T00:38:47 | 185,859,565 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
bool isSubstring(string str1, string str2) {
return str1.find(str2) != string::npos;
}
// This question is quite simple if you think about it. If we double str1, if str2 is a rotation of str1, it will be a substring of str1 + str1.
bool stringRotation(string str1, st... |
2af34fafded18a0d4f4d4e18f9a5b263b7fb5a2a | 07f6d7d5d7e3b7ad1e4195f49adade89f8084270 | /Analysis of Algorithms/Exp1/1019.cpp | 10e04f2fedb362169cfe29e20f2739842daf380b | [] | no_license | ZingLix/Homework | c321029630f02606895af17f41945a9b1d9dcf9f | d8e1266fb842e33d0268faf7035978a5489c58d4 | refs/heads/master | 2020-01-23T21:45:46.287969 | 2019-06-05T14:55:02 | 2019-06-05T14:55:02 | 74,681,235 | 0 | 2 | null | 2019-11-12T10:56:12 | 2016-11-24T14:39:25 | C++ | UTF-8 | C++ | false | false | 960 | cpp | 1019.cpp | //HDOJ 1002
#include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
int main(){
int n, carry=0;
scanf("%d",&n);
for(int i=1;i<=n;++i){
std::string str1,str2,res;
std::cin>>str1>>str2;
auto it1=str1.rbegin(),it2=str2.rbegin();
for(;it1!=str1.rend()&&it2!=... |
aba699d588d15cd84623927fc912b277d993f1ea | 4c839961b8584b4599bffa3fbff5b367973bda80 | /RGB_NIR_Depth_capture/skincamlegacy/core/multispectralimage.cpp | cd64049a57ba6fb0f613a51c67b6065f7c32c80f | [] | no_license | yudanaz/masterthesis | 6fe924a100adc22400bd7e8d4c9f0670dbdb448c | c40174ff431e8462c7c79e4dfb3412cc2ca46d87 | refs/heads/master | 2016-09-11T10:34:10.796189 | 2015-06-02T10:26:20 | 2015-06-02T10:26:20 | 26,525,992 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,613 | cpp | multispectralimage.cpp | #include "multispectralimage.h"
MultispectralImage::MultispectralImage()
{
myWidth = 0;
myHeight = 0;
myDepth = 0;
myChImages.clear();
isFPNCorrected = false;
isWhiteCalibrated = false;
isDarkSubtracted = false;
isMotionCompensated = false;
}
MultispectralImage::MultispectralImage(quint16 newWidth, quint16 ne... |
31a70633c8b56b641a56e5c55d85bb43a296dd71 | 31287dccda1fa0be67d87c61175fc7e9206134e8 | /NotificationCenter/FooObserver.cpp | 726a08b03926e6772ca93bcd637c4e5c81f0b2a4 | [] | no_license | xtuer/Qt | 83c9407f92cef8f0d1b702083bb51ea29d69f18a | 01d3862353f88a64e3c4ea76d4ecdd1d98ab1806 | refs/heads/master | 2022-06-02T02:32:56.694458 | 2022-05-29T13:06:48 | 2022-05-29T13:06:48 | 55,279,709 | 15 | 13 | null | null | null | null | UTF-8 | C++ | false | false | 743 | cpp | FooObserver.cpp | #include "FooObserver.h"
#include <QDebug>
#include <QThread>
#include "Message.h"
FooObserver::FooObserver(QObject *parent) : QObject(parent) {}
void FooObserver::notified(int notificationId, const QByteArray &data) {
if (3 == notificationId) {
// notificationId 为 3 说明接收到的通知是 Message
qDebug() << ... |
016ce2fa9c0d86d64363b681b5e667f1cdd010a9 | e228071b1e5c385ce9bdf9110df7d657be7a6586 | /src/ue/nas/usim/usim.hpp | 9b0822decba14d21e2e208280ee9ccff1bfc6374 | [
"LicenseRef-scancode-proprietary-license",
"GPL-3.0-only"
] | permissive | anhtrung87vn/ue-ran-sim | cfd6138fcac498923ec602b27e3c73f53aacb371 | cca07a8cd8da5a945e105a60377143eaa78be95d | refs/heads/master | 2023-04-29T01:32:04.592375 | 2023-03-20T17:25:23 | 2023-03-20T17:25:23 | 278,814,429 | 0 | 0 | MIT | 2020-07-11T07:47:15 | 2020-07-11T07:47:14 | null | UTF-8 | C++ | false | false | 997 | hpp | usim.hpp | //
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#pragma once
#include "sqn_mng.hpp"
#include <memory>
#include <optional>
#includ... |
30cec3ffb2a511687edf0c5a0f934c00c6b5db45 | 5ebf9fd0db16c3de4b033a11b1349582d81c7ee4 | /labs/lab2/lab2.cpp | 62a54a6e29d86c83264498e38cd49a8ae2938d2c | [] | no_license | DrakeSeifert/Intro-to-Computer-Science-I | 9446680bbbcf75996e98d73170055aecb5db68a3 | 0be569c4a9f40aeec32169103039d4efbdf44c60 | refs/heads/master | 2020-03-29T17:31:10.951266 | 2018-09-24T20:53:17 | 2018-09-24T20:53:17 | 150,167,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | lab2.cpp | #include <iostream>
using namespace std;
float cereal_weight;
float expected_lifespan;
float boxes_week;
int main() {
float cereal_weight;
cout << "Enter the weight (in ounces) of a box of cereal: ";
cin >> cereal_weight; //cereal_weight contains input
cout << "Enter your expected lifespan: ";
cin >> expecte... |
53d97ed792e97aa05ac2bde4aa2b092fcd2b0229 | a8ca5c8fc67ff451481687530e793f64cdd9ecd2 | /src/winsys/common.hh | dc82c844157b0c70ef015ae1c88bfbf6b7f02ff2 | [
"BSD-2-Clause"
] | permissive | deurzen/kranewm | c002cfb4bf039be34d62f5eb7960249563a75f8e | be918e057c3b6f2199d23ce39d4334379165ff41 | refs/heads/master | 2022-06-23T19:33:04.951564 | 2022-06-19T21:57:39 | 2022-06-19T21:57:39 | 173,928,993 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | hh | common.hh | #ifndef __WINSYS_COMMON_H_GUARD__
#define __WINSYS_COMMON_H_GUARD__
#include <cstddef>
typedef std::size_t Ident;
typedef std::size_t Index;
namespace winsys
{
typedef unsigned Pid;
enum class Toggle
{
On,
Off,
Reverse
};
}
#endif//__WINSYS_COMMON_H_GUARD__
|
123a081970bc4c2d293fd432756eef3faa2939ca | b9f5e7e5373d1c1e0e038525131cf3180dd48625 | /3Elevators-scheduling/odd.cpp | 3e4815491679866e29bc59c8e6ae6152850dce77 | [] | no_license | sy0507/learngit | 9d32679f07ae57e7af8dc4b7ac435f0a60b18356 | 9448d89d2bdd742818c6a1dca2f2574e026439eb | refs/heads/master | 2021-04-27T14:00:19.499626 | 2019-01-21T13:42:04 | 2019-01-21T13:42:04 | 122,448,339 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 589 | cpp | odd.cpp | #include "odd.h"
#include<fstream>
#include<iostream>
#include<cmath>
using namespace std;
int odd::goToFloor(int waitFloor, int toFloor, int time)
{
state = 1;
sumtime = time;
sumtime += abs(waitFloor - toFloor);
currentFloor = toFloor;
show(sumtime, currentFloor);
stop(sumtime);
state = 0;//ÖÕÖ¹
return cu... |
9168887936eee420c251fd855c504c7eab66af69 | 0522214b4403a51a3c1fdf08da7efcc9f83978f4 | /Remove Multiple Spaces/removemultiplespace.cpp | e1fc7ec4ddf29b555eedd9c354c6a458d0f435f5 | [] | no_license | guptaansh/FILE-Handling-Programs | f1173bf35b1dda019248dbcf89084423f20ab36b | e7b04c5b01cfce5145e2a360ff5172515c592bf9 | refs/heads/master | 2021-06-23T16:50:02.349948 | 2017-08-21T17:51:15 | 2017-08-21T17:51:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 628 | cpp | removemultiplespace.cpp | //*********** remove multipkle spaces**//
#include<iostream>
#include<stdio.h>// EOF, FILE, NULL, etc in this lib;
#include<conio.h>
#include<stdlib.h> //exit() is in this library
using namespace std;
main()
{
FILE *p,*q;
char ch;
p=fopen("created.txt","r");
if(p==NULL)
{
cout<<"FILE DO NOT EXOST \n";
}
q=fop... |
f22d4210cc19d8e0c39ad0c8dcf19e95813d5299 | e79e7cab0283448b09b08446348eae188fc3afd8 | /src/FCCommonWIdgets/FCCoordinatesWidget.cpp | 71c14fd85e74d158c670490e49a903c5893c4e3a | [] | no_license | Watch-Later/FastCAE-AppDesigner | 28cc129694ef4a678c2a71a969409cd3f91948c7 | 6ac1c7ea561a280161ccbfe17714c026a7cbaa01 | refs/heads/master | 2023-07-16T20:21:03.888845 | 2021-08-10T15:54:01 | 2021-08-10T15:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 120 | cpp | FCCoordinatesWidget.cpp | #include "FCCoordinatesWidget.h"
FCCoordinatesWidget::FCCoordinatesWidget(QWidget *p) : ctkCoordinatesWidget(p)
{
}
|
69d683a0bc42dba01c388dc796f4da689434f345 | 25f815b9018b9ee267d9b5759d66a46f422e4108 | /Source/OpenStreetMapModule/Private/OpenStreetMapFactory.cpp | 3b6c74726bed6c7ffb2e68f1e08f9357bec415d5 | [] | no_license | starofys/MapVisualization | c6e85eac75df46d29e127c853afab923a6c2295b | e362572e9f25751d804708a9d42ec02c68634d4e | refs/heads/master | 2021-05-30T15:20:35.582425 | 2015-12-08T19:49:15 | 2015-12-08T19:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,307 | cpp | OpenStreetMapFactory.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "OpenStreetMapModule.h"
#include "OpenStreetMapFactory.h"
#include "OpenStreetMapFile.h"
#include "Runtime/Core/Public/Misc/Paths.h"
#include "Editor/UnrealEd/Public/Editor.h"
#include "OpenStreetMapXmlReader.h"
#define LOCTEXT_NA... |
66086ceae2a32c95ac822ed92ff0fa8348843a91 | 1c5929ed9534931de3538a45f07a55ce98bade51 | /a-star-path-finding/PathFinding/Source/PriorityQueue.cpp | efec20a84cc625d0f8c835f3a043f19462a3adc5 | [] | no_license | oscarmartensson/game-dev | a0cfcbbbf7f7757a9007672584ab279aca1470e1 | 5a1909222dad2a7ebf9d6da519b7e65fd5997280 | refs/heads/master | 2022-04-28T23:19:13.308818 | 2022-04-17T10:47:41 | 2022-04-17T10:47:41 | 81,645,770 | 0 | 0 | null | null | null | null | ISO-8859-15 | C++ | false | false | 859 | cpp | PriorityQueue.cpp | //---------------------------------------------------------------------
// File: PriorityQueue.cpp
// Summary: This class is an extension of the std::priority_queue to also
// allow to iterate through the list in order to determine if an
// object is contained in the queue or not.
// Version: Version 1.0 - 2018-07-... |
590fa7b411d9075a3ef70411f16625b72c95391e | dd01cf5f5e6563f501f7336264a34fc169eea3d5 | /include/SerialInterpreter.hpp | 596de0e88a85f4fd09b0ccd28b1df46d2e5033e4 | [] | no_license | ballpilk/frezarka | 17cdf4dfd9c509af295698c2849c798c7abaebc6 | 794b9afd83844fdebe1ff8a61534ef11ac8a74ab | refs/heads/master | 2020-04-25T12:29:56.805519 | 2019-02-28T20:26:20 | 2019-02-28T20:26:20 | 172,779,599 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,133 | hpp | SerialInterpreter.hpp | #pragma once
#include "MotorCoordinator.hpp"
struct SerialBuffer{
char buffer[128];
int pos=0;
void append(char letter)
{
buffer[pos] = letter;
pos = (pos+1)%128;
}
void reset()
{
pos = 0;
}
char& operator[](unsigned int i)
{
return buffer[i];
}
};
class SerialInterpretter
{
pub... |
ee0f853b85a8838d4cf75d9e2fece23991878592 | 5e9e82da5cb66df3686d93db90178fc2379ad98d | /Iterator.cpp | 46f11e6e44b024cfe28537320186a15dd8748fb1 | [] | no_license | Choi-Young-Hoon/cpp-design-pattern | 8e7d3b27aab1b2a1f8be3cbdfd23c132b4144339 | e86a2a37d2aca0590f2a9135b55bdce903ff2015 | refs/heads/master | 2021-04-12T08:25:02.218031 | 2018-03-27T12:43:29 | 2018-03-27T12:43:29 | 126,012,459 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,857 | cpp | Iterator.cpp | #include <iostream>
#include <string>
#include <vector>
class Drink {
public:
explicit Drink(std::string strName)
: m_strName(strName)
{}
virtual ~Drink()
{}
std::string GetName() { return m_strName; }
private:
std::string m_strName;
};
template<typename T>
class Iterator {
public:... |
d40fbbf4325e9ed8f40877ab3bfb5edc8ae1afd0 | 0a0baf1df933ca235a48aa187f6df31714a63a8b | /Closet/VisualWardrobe/CAnnotationStyle.cpp | f48efc89df1c6a01eef92e9124f99927fe32217f | [
"MIT"
] | permissive | ducis/pile-of-cpp | 84f1571178edd18ae3a7793d45dffca72d7ab34d | af5a123ec67cff589f27bf20d435b2db29a0a7c8 | refs/heads/master | 2021-01-17T06:27:30.532654 | 2019-03-12T05:30:52 | 2019-03-12T05:30:52 | 17,528,954 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,254 | cpp | CAnnotationStyle.cpp |
#include "CAnnotationStyle.h"
#include "3d.h"
#include "singleton.impl.h"
#include "CProgram.h"
void CAnnotationStyle::DrawAnnotationEnd(const vector3 &posWS) const{
matrix44 viewInv(GetViewInv());
const vector3 offset((viewInv*vector4(-20,20,0,0)).xyz());
vector3 a(posWS+offset),b(posWS-offset);
glBegi... |
d557af7c2a6cd46509fef6cd6b398465ce3c593a | d6ccd1f55a25873493253d43c366f43a945c4f19 | /displaythread.cpp | 189facb76d394aa225433b7a289f05d507f1af99 | [] | no_license | Hgp2Huge/DIVA_QT | 97fafe8e48a20dbf1f9c55fd5029b1a6ffc36b1e | 4bc8f5d2a9a93625148c9272eca846fda3152b12 | refs/heads/master | 2023-02-22T21:40:28.568407 | 2021-01-27T08:43:42 | 2021-01-27T08:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 97 | cpp | displaythread.cpp | #include "displaythread.h"
DisplayThread::DisplayThread(QObejct *parent) : QThread(parent)
{
}
|
9e326e7240c75ecf35080e67c679091b33c7a8d9 | 678251a8d7a91f30ca9e8fe6c686675cc25cc148 | /jni/src/nmslib_wrapper.cpp | c146ef019bdc2c6c81bf956d9c4d1a5d177284c6 | [
"Apache-2.0"
] | permissive | vamshin/k-NN-1 | c13b24b633211ec53bde085b73c1fb099ef0ba3a | bbb7250089c6ca68bc7fe7c2b2f9e24987ebd8e9 | refs/heads/main | 2023-08-25T21:46:42.950179 | 2021-10-20T18:35:55 | 2021-10-22T21:47:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,670 | cpp | nmslib_wrapper.cpp | /*
* SPDX-License-Identifier: Apache-2.0
*
* The OpenSearch Contributors require contributions made to
* this file be licensed under the Apache-2.0 license or a
* compatible open source license.
*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/
#include "jni_util.h"
#in... |
69954731e04e6cfbe3e0b4d8b8c9dd1d04fc3241 | e3401df6b2874e1b42babf20838051aeae858773 | /容易/158 两个字符串是变位词/法1-anagram.cpp | e02602ba8d5995e24a770fd72bfa1693beddcd73 | [] | no_license | CielChen/LintCode | ee5b854ef2ee205163616f20bf7b4e746f6c949e | 928169d879f4f49df7cfaf967dd8df19b56416c0 | refs/heads/master | 2021-01-20T00:34:03.679737 | 2017-07-25T08:20:25 | 2017-07-25T08:20:25 | 89,151,753 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 548 | cpp | 法1-anagram.cpp | class Solution {
public:
/**
* @param s: The first string
* @param b: The second string
* @return true or false
*/
bool anagram(string s, string t) {
// write your code here
//法1:O(nlogn)的解法
if(s=="" || t=="")
return false;
if(s.length() != t.leng... |
c0b649b5d172579bd7d6880bcfb1831db9804e10 | 6753dba9d4b225770f5e641cf38c2998f19d2f73 | /Source1/Utility/Reflection/LSRTTIField.cpp | 458ca8671e00df643889d47d05f4160d6104c1fa | [] | no_license | iTShun/Vision | b9ea51033a97518b5befd4b98f1f3d376a55d10c | 2ed766060c52736e9386ff249f3a18c0b698d81a | refs/heads/master | 2020-03-24T06:22:06.426801 | 2019-01-18T13:30:39 | 2019-01-18T13:30:39 | 142,525,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,937 | cpp | LSRTTIField.cpp | #include "Reflection/LSRTTIField.h"
#include "Error/LSException.h"
namespace ls
{
void RTTIField::checkIsPlain(bool array)
{
if(!isPlainType())
{
LS_EXCEPT(InternalErrorException,
"Invalid field type. Needed: Plain type. Got: " + toString(mIsVectorType) + ", " +
toString(isPlainType()) + ", " + toSt... |
7018e43d0354e553fc1ba988877719995a023364 | 0d89e893b1197b5b577be06bc96b471522e0fb41 | /sketch_sep27a/ArrayOfIR.ino | 54d35fa812a6137bb8a9e240c8e39c705be2b859 | [] | no_license | satvikakoti/TASK | 13955a059aced4854a2ff82c88778cb4425d7342 | 631d9a422cc11888a81351b676670373996893f6 | refs/heads/master | 2021-06-22T22:03:40.490412 | 2021-05-19T03:36:53 | 2021-05-19T03:36:53 | 210,377,749 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 460 | ino | ArrayOfIR.ino | int pin[8]={3,4,5,6,7,9,10,11};
int value=0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
for(int j=0;j<8;j++)
pinMode(pin[j],INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i=0;i<8;i++)
{
digitalRead(pin[i]);
delayMicroseconds(5)... |
49d27ae730560b70f752d3ae11e4a89c221f38b3 | 508188ce839f454a128c3a1e9bb50c09cb83fcc0 | /DotNet/IlAsm2Cpp/bin/Release/il2cpp/Root.T_x147.h | fefefaee2c4e98ff6fa8e676ac75ce06f043b201 | [] | no_license | dreamanlan/OldWork | 1162bd208c9c5697ac4a30570b134c8b717e6ee6 | f49b780e7094ae8d4be6920da0a900a5feb5cce8 | refs/heads/master | 2020-07-02T06:35:07.616480 | 2019-09-29T02:32:50 | 2019-09-29T02:32:50 | 67,272,042 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 760 | h | Root.T_x147.h | #pragma once
namespace Root
{
[StructLayout(LayoutKind::Auto , CharSet=CharSet::Ansi)]
public
ref class T_x147 : System::Collections::IEnumerator
{
private:
static Root::T_x147^ F_x1;
public:
virtual void M_x12() sealed = System::Collections::IEnumerator::Reset;
//System::Collections::IEnumerator^::Rese... |
b02222ee9838ca338df8343611e32275b2fb3265 | 6797137b83a900d6ac8c863dfaaff114b5c276e1 | /Titanium-Alloy/src/Voxel/src/Collision/Line.h | a2a8b16fc6327ff191ad027910f1a3eae9a92595 | [] | no_license | thetrueoneshots/Titanium-Alloy | 909b74b328b269aff75dfb9bffb6055ca2e70632 | aee86670d87b4ae0fafad0722fcbc5c2b8636587 | refs/heads/master | 2023-02-15T08:25:43.997781 | 2021-01-13T21:21:25 | 2021-01-13T21:21:25 | 315,987,468 | 2 | 0 | null | 2021-01-13T21:21:26 | 2020-11-25T15:58:05 | C++ | UTF-8 | C++ | false | false | 579 | h | Line.h | #pragma once
#include "glm/glm.hpp"
namespace Voxel
{
class Box;
class Mesh;
class Line
{
private:
glm::vec3 m_Position, m_Normal;
public:
Line(const glm::vec3& position, const glm::vec3& normal);
Line(const glm::vec3& normal);
~Line();
inline glm::vec3 GetPosition() { return m_Position; }
inline ... |
4e22eea40a435fdf7634f6f29ca8c4d4705c2781 | 3c3050f1a66acdd56bc04601c523730225940b8f | /CSES1158/CSES1158.cpp | db231d95396eca2be55ec66821157e7debfc9993 | [
"MIT"
] | permissive | chenhongqiao/USACO | f8e54a99598b59d461532b5a6a63a36ba124eedc | 186d9d5fffe2663effbbdb9df2c7726eeb651098 | refs/heads/master | 2023-06-25T05:10:56.754702 | 2023-06-07T19:47:42 | 2023-06-07T19:47:42 | 233,294,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | cpp | CSES1158.cpp | //Book Shop
#include <bits/stdc++.h>
using namespace std;
int h[1005];
int s[1005];
int dp[100005];
int main()
{
int n, x;
cin >> n >> x;
for (int i = 1; i <= n; i++)
{
cin >> h[i];
}
for (int i = 1; i <= n; i++)
{
cin >> s[i];
}
for (int j = 1; j <= n; j++)
{
... |
60056dd615928e2b9aa75b47e82a8988e4dc9c03 | 02c3989a1a2fefcdc98974c182d0ca47db3850ad | /Ballz/EditorUiHandler.h | fa84d3a899236dc9fe049bc77eef893d01c184a3 | [] | no_license | RazielXT/Autumn-Ashes | c1e348a4858ff96526fe561911fb6841687fddf2 | 1229bdd209f4857ec1cf283c21e99a8d35dc1992 | refs/heads/master | 2021-01-17T02:07:14.187673 | 2019-12-22T21:14:44 | 2019-12-22T21:14:44 | 30,772,897 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | h | EditorUiHandler.h | #pragma once
#include "EditorCommLib.h"
struct AppUiMessage;
struct EditorUiHandler
{
bool ensureUi();
void sendMsg(UiMessage& msg);
AppUiMessage readUiMessage();
bool isActiveUi();
HWND outputWindowHwnd = 0;
HWND topWindowHwnd = 0;
protected:
CommLib lib;
UI_MSG_FUNC sender;
};
struct AppUiMessage
{... |
fb6d62141294ca3ac1be8738bb044dc4bba415ff | 39a5e93989adca65683ea895ed745910db503988 | /综合实验/综合实验Set.cpp | 285ce8b1451c4387dd441db17e75da3eceedd3a9 | [] | no_license | 18776061654/lm-vc- | 90f84dd94e5b4b6a3c3384aee1a2f8c43fd3e88e | 1a36c354902a4a052abaa15861e099b705ee7ee6 | refs/heads/master | 2021-03-26T03:05:16.706310 | 2020-07-04T15:48:06 | 2020-07-04T15:48:06 | 247,668,094 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,182 | cpp | 综合实验Set.cpp |
// 综合实验Set.cpp : C综合实验Set 类的实现
//
#include "stdafx.h"
#include "综合实验.h"
#include "综合实验Set.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// C综合实验Set 实现
// code generated on 2020年7月4日, 17:15
IMPLEMENT_DYNAMIC(C综合实验Set, CRecordset)
C综合实验Set::C综合实验Set(CDatabase* pdb)
: CRecordset(pdb)
{
m_ID = 0;
m_1 = L"";
m_2... |
0178bb0ec0d3cc1e6f4b82e8e0a88b327757c12f | 4882847af716e5342f437569970795fe1fc9a853 | /Code/MUD/Implementations/mud/Game/Engine/PlayerInterface/HTTP.hpp | f5de53624344ad1fe5177250b0be117ad6983ff9 | [] | no_license | Aslai/MUD | 059a40976cbd501265a5097e08a70ec8773bab01 | 86b3828fe343ee787f799d59b1d9f6ad2226a614 | refs/heads/master | 2020-06-06T15:46:33.822555 | 2014-10-13T02:06:07 | 2014-10-13T02:06:07 | 18,485,230 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 176 | hpp | HTTP.hpp | #ifndef MUD_GAME_INTERFACE_HTTP_HPP
#define MUD_GAME_INTERFACE_HTTP_HPP
namespace MUD{
namespace Game{
namespace Interface{
}
}
}
#endif
|
f1d3ec0d3f04d7b8b6bafbd2f7d97347b12b0cfc | f6871790b6c438cfd2b0b4f45e247992ed2a1a0a | /third_party/libigl/include/igl/iterative_closest_point.cpp | 0d2a674eb76adaf5fb770fa77fddd4d26caed6ef | [
"MPL-2.0",
"Apache-2.0"
] | permissive | rahulpowar/monster-mash | c202e5f117f101129cbc487f52e446bd74f50783 | 535167fb3178479e9fa6e2e04bf9b5232cfffac6 | refs/heads/main | 2023-03-11T19:13:29.367921 | 2021-02-28T16:54:40 | 2021-02-28T16:54:40 | 343,154,572 | 7 | 1 | Apache-2.0 | 2021-02-28T16:33:39 | 2021-02-28T16:33:39 | null | UTF-8 | C++ | false | false | 4,222 | cpp | iterative_closest_point.cpp | // This file is part of libigl, a simple c++ geometry processing library.
//
// Copyright (C) 2019 Alec Jacobson <alecjacobson@gmail.com>
//
// This Source Code Form is subject to the terms of the Mozilla Public License
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
// obtain one at htt... |
3547c3ce0f5d65d45cfd9cb836d2f3a9b82edfd6 | 48383a2959bb131fc5c104153786347ef77f8bb8 | /SuperReads_RNA/global-1/jellyfish/include/jellyfish/jellyfish.hpp | eec4e84d79997f287355ca08241c35c02b73961a | [
"GPL-3.0-only",
"LicenseRef-scancode-free-unknown",
"MIT",
"GPL-1.0-or-later",
"GPL-3.0-or-later"
] | permissive | gpertea/stringtie | 1d0402ca2b5a004df1012c153d495a485e9e2ffd | 545ec76fed1de4c826dc3c96256076ea372ad427 | refs/heads/master | 2023-03-03T02:33:27.977486 | 2023-03-02T21:25:02 | 2023-03-02T21:25:02 | 25,170,618 | 319 | 82 | MIT | 2022-12-05T14:44:24 | 2014-10-13T17:59:11 | C++ | UTF-8 | C++ | false | false | 1,577 | hpp | jellyfish.hpp | /* This file is part of Jellyfish.
Jellyfish 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 3 of the License, or
(at your option) any later version.
Jellyfish is distributed ... |
fb613b82b7760b9167488dc46014f548a582660e | 4d20143d6b2123bf0d52fd4a4807ce8697804b7f | /CG_Praktikum_1/ControlWidget/controlWidget.cpp | 1c16caf3670338088ec8627c274ffa77b7b5ab45 | [] | no_license | VShader/CG_Praktikum | 12055e5c11999dd421e8459476b50942917021ef | b9f04391aaa2a3e0c2ab996a9b17cbab07ba270d | refs/heads/master | 2021-01-19T10:34:46.985923 | 2014-06-22T20:17:28 | 2014-06-22T20:17:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,220 | cpp | controlWidget.cpp | #include "controlWidget.hpp"
#include "ui_controlWidget.h"
#include <QDebug>
#include <QApplication>
ControlWidget::ControlWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::ControlWidget())
{
ui->setupUi(this);
// connect(ui->horizontalSlider_Speed, &QSlider::valueChanged,
// ui->spinBox... |
4d0213dd4d1e972ad4ad53fe75a63e3b873ab3e3 | 23a3a3c61d8971c47f37281b65a90fcdc5fd13c8 | /Practice/Random/leaderboard.cpp | 57bc8a3497ab1f82d4ac4126b21c470ffcf8ed6c | [] | no_license | Abhrajyoti00/Competitive_Programming | b2d6364c02c2e019333d1e5e810656753f7260bb | 80baa1976fd7d970ad68cdd59803fd85558d546b | refs/heads/master | 2023-06-21T12:13:56.291118 | 2023-06-13T03:50:36 | 2023-06-13T03:50:36 | 334,623,452 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | leaderboard.cpp | #include<iostream>
using namespace std;
int main()
{
long i,j,n,k,t,c=0;
cin>>t;
cin>>n;
long a[n];
for(j=0;j<t;j++)
{
for(i=0;i<n;i++)
{
cin>>a[i];
}
for(i=0;i<n;i++)
{
if(a[i]<=0)
{
c++;
}
... |
a3a82a2502ce3906aa505917d90eed0d6a8950fe | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/web_applications/isolated_web_apps/isolated_web_app_version.cc | 28c09d7b8d448893cc46018e070bc5a29745d5d4 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,961 | cc | isolated_web_app_version.cc | // Copyright 2023 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/web_applications/isolated_web_apps/isolated_web_app_version.h"
#include <array>
#include "base/strings/string_number_conversions.h"
#include "base/st... |
ab474bd0954ac8896853d68b2ed8538c07e2d65c | 87899b55a29a2cfa3ac4671f76835a3054b7cbc9 | /AIProject/GraphicsEngine.cpp | f73fc5d6ff5c103e068134b82c574f8caec6e6da | [] | no_license | JeffreyWaegneer/AIProject | d5da329d1204d288cc11145a6950a6e603b52422 | 2c0cf837982ecced50da7908668485441733811a | refs/heads/master | 2022-02-14T00:38:42.235327 | 2022-01-12T13:38:54 | 2022-01-12T13:38:54 | 134,749,312 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | GraphicsEngine.cpp | #include <string>
#include <iostream>
#include "GraphicsEngine.h"
//Small function for error handling (It doesn't handle errors very well)
void FatalError(std::string errorMsg)
{
std::cout << errorMsg << std::endl;
std::cout << "Press any key to quit,...";
int tmp;
std::cin >> tmp;
SDL_Quit();
}
GraphicsEngine:... |
df2df407aa646b00ed90bf4ef21d1eb30d29657e | c5c50b753e75cd0e948bc3977e750950cc882de7 | /idlcpp/src/ClassNode.cpp | 1d3b4eff5ff4c194102f25b51893835f83623259 | [
"MIT"
] | permissive | fdyjfd/idlcpp | 308ab9803e6ea5fcd200c898d9f4220dfd2054d4 | d0bd13d96d546b06074062fb3984b42569e71fae | refs/heads/master | 2022-02-13T05:18:31.543970 | 2020-10-30T09:47:12 | 2020-10-30T09:47:12 | 50,764,895 | 35 | 6 | MIT | 2021-09-28T06:13:01 | 2016-01-31T08:12:29 | C++ | UTF-8 | C++ | false | false | 24,897 | cpp | ClassNode.cpp | #include "ClassNode.h"
#include "TypeNameNode.h"
#include "ScopeNameNode.h"
#include "ScopeNameListNode.h"
#include "IdentifyNode.h"
#include "IdentifyListNode.h"
#include "TypeNameListNode.h"
#include "TemplateParametersNode.h"
#include "TemplateClassInstanceNode.h"
#include "MemberNode.h"
#include "MemberListNode.h"... |
93a86d2a2d89fa7bfea9c6afeceb6f014c2e9778 | 3d0f0c120f1dd3e97112967484a0e356dd87eb4a | /Server/ServerVS/Espectro.h | bfce3bc8c789b91f3a033b564fb745f0dcb504bd | [] | no_license | Jachm11/Spirit-Tower | 6191fc9f54a4f5e1fd6124646c2ee5057f14246d | 949181478ccc5c0d32d21886167728592cf9bf68 | refs/heads/master | 2022-11-18T02:58:33.859585 | 2020-07-22T00:42:45 | 2020-07-22T00:42:45 | 273,125,892 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,772 | h | Espectro.h | #pragma once
#include <iostream>
#include <string>
#include <vector>
#include <tuple>
#include <stack>
#include <queue>
using namespace std;
/**
* @file Espectro.h
* @author Natalia Gonzalez
* @brief Clase plantilla para los niveles
*/
/// @brief Clase que controla a los espectros del juego
class Espectro
{
public... |
b42145e7ed2c9271da1c7a7ea8833aabc468a09c | b571a0ae02b7275b52499c66a756d10815136326 | /0544.Brick.Wall/sol.cpp | 2fb1c92733c52b777943a10e22a58c4cce82a317 | [] | no_license | xjs-js/leetcode | 386f9acf89f7e69b5370fdeffa9e5120cf57f868 | ef7601cbac1a64339e519d263604f046c747eda8 | refs/heads/master | 2022-02-02T00:51:23.798702 | 2022-01-19T14:48:13 | 2022-01-19T14:48:13 | 89,140,244 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 675 | cpp | sol.cpp | /**
* @date: 2021-04-04 21:27
* @note: 写完这题就看比赛 FURIA VS G2
*/
class Solution {
public:
int leastBricks(vector<vector<int>>& wall) {
int height = wall.size(); // 墙的高度
int maxHeight = 0;
unordered_map<int, int> count;
for (int i = 0; i < height; ++i) {
vector<int>&... |
a5b1793d2711014370aa7146c8efa74165054d43 | 7c398361594cf7ff6568857e4d4873417870e3a7 | /Project8/callFrom.cpp | 51c5cb2676df0c9635efb1dc03ecb686c050fcbc | [] | no_license | JachZay/Alpha | da49748ddb8d7a5d503b80ee89b418c39eb92cd2 | 26fc5f382c0c0b8e6bec30110e6f0876f6f8f975 | refs/heads/master | 2020-03-29T18:43:59.249692 | 2018-09-25T08:02:16 | 2018-09-25T08:02:16 | 150,228,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,226 | cpp | callFrom.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <cstdlib>
#include <ctime>
#include <iomanip>
#include "compileHeader.h"
//Function prototypes
//int D20();
//int combat();
//int inventory();
//int playerhealth(int);
//int opponenthealth(int);
//int opponentlevel();
... |
c4f07ffe8eec0ec94dd66b0d8c33213ee7860396 | 45b9c2353be5533128737d15bac8a8750fef6962 | /NinjaGaiden/NinjaGaiden/SceneGame.cpp | 471070523cb28ad7784a98e64aa78bbc1021cc5c | [] | no_license | tanhdmt/NinjaGaiden | 6519d8d4326fd8287d8aec0eb5b14a4021784265 | 0c68b0faa66d53c0fe6b20cefd87b5661d8d2d3d | refs/heads/master | 2020-04-28T01:05:17.102103 | 2019-06-15T04:36:53 | 2019-06-15T04:36:53 | 174,841,186 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,176 | cpp | SceneGame.cpp | #include "SceneGame.h"
bool isLoadStage = false;
int backScore = 0;
SceneGame::SceneGame(void) : Scene(ESceneState::Game_Scene)
{
camera = new CCamera();
bg = NULL;
_gameScore = NULL;
_levelNow = 2;
_loadLevel = false;
_score = 0;
_lifes = 3;
}
void SceneGame::LoadLevel(int level)
{
ResetLevel();
backScore... |
f9978a4534aa62b85e33002213c8699b11dc3361 | f855bdf698b8f726b102fb50e407f1ff55ce104a | /Prehistoric-Journey/Motor2D/UILabel.h | 657d3bcd9b2bf58b11869692cdd66211e29364b6 | [
"MIT"
] | permissive | Ricardogll/Prehistoric-Journey | a683f0043eaafe5b0370829f3646b4e01661d72c | 5eb2d853b315295252da56d18b35b0ce8d4f05fd | refs/heads/master | 2020-03-31T03:17:46.235173 | 2018-12-16T17:09:30 | 2018-12-16T17:09:30 | 151,859,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | h | UILabel.h | #ifndef __UILABEL__
#define __UILABEL__
#include "UIElement.h"
class UILabel : public UIElement {
public:
UILabel(int x, int y, const char* text, int width, int size, SDL_Color color, const char* font, UIElement* parent);
void SetText(const char* text);
private:
void Draw(SDL_Texture* atlas);
public:
SDL_... |
be8d16c7d08a941d5d847e52e87bdd909d9eb106 | 37e3162d21ff298b7e646d698c18278959353d4e | /Lintcode-82/Lintcode-82/main.cpp | 4a06b90cda4858bf0d22839674b2e2f1dfb47b5c | [] | no_license | leojing/Lintcode | 427395e8940b5ecb2e34c9d6e687cc5cf9ca3ee0 | 398d8b6df1831694aff19e349a7035275ea81013 | refs/heads/master | 2022-07-04T08:56:41.806784 | 2022-04-30T13:16:50 | 2022-05-12T12:03:15 | 145,299,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 504 | cpp | main.cpp | //
// main.cpp
// Lintcode-82
//
// Created by Jing LUO on 27/11/19.
// Copyright © 2019 Jing LUO. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
int singleNumber(vector<int> &A) {
// write your code here
int result = 0;
for (int i = 0; i < A.size(); i ++) {
... |
d1c43d78fafa7add951c1cc950fa666440156934 | a57ad863b00677c824c472bba097b5bbe30d47f2 | /VirtualCircuit/VirtualCircuit.h | c3d7b2400d5cb3f1e78fa41f4e57ff0c585616f2 | [] | no_license | BryanKline36/Projects | a37acaaf1bb9239ccad4869b7e08b90cf8db3410 | 1899c3ae66c530bf7ce6cf1d407568ba29ac83cd | refs/heads/master | 2023-01-13T08:37:42.128234 | 2019-08-18T23:30:11 | 2019-08-18T23:30:11 | 140,639,865 | 0 | 1 | null | 2023-01-07T08:50:18 | 2018-07-12T00:12:55 | C++ | UTF-8 | C++ | false | false | 588 | h | VirtualCircuit.h |
#ifndef VIRTUALCIRCUIT_H
#define VIRTUALCIRCUIT_H
#include <string>
using namespace std;
class VirtualCircuit
{
public:
struct Bit
{
char bit;
char connections;
};
VirtualCircuit();
VirtualCircuit(int rowCount, int columnCount);
~Virtu... |
8463cf54b5fb26cc42f47a39082d7a0133bdc2a9 | 5d698271c6720c1635681726d37919a2d5e9941b | /Demo_project/node_modules/msnodesqlv8/src/BoundDatum.h | 5fea5333c7ee0044b72eafd7d8529a6bc43e7385 | [
"Apache-2.0"
] | permissive | LakshmiNair/DemoProject | 95d028527de9fff8a440817c5763b35c39924d5f | d805a23347db61a4ec9b07c3642ddba4287fd691 | refs/heads/master | 2021-04-06T00:41:13.967127 | 2018-05-24T15:17:05 | 2018-05-24T15:17:05 | 125,253,930 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,669 | h | BoundDatum.h | #pragma once
// undo these tokens to use numeric_limits below
#include <BoundDatumHelper.h>
namespace mssql
{
using namespace std;
class BoundDatum {
public:
bool bind(Local<Value> &p);
void reserve_column_type(SQLSMALLINT type, size_t len);
bool get_defined_precision() const {
return definedPrecision;
... |
f335a335e9c696ccabce529023f38b964d55bd50 | f65b1f2af4c592fb64664c26418db82e934dbf6c | /InspectionCore/acvImage/include/acvImage_ToolBox.hpp | 2670fe1a78f8e2e57e8688640e5d5bda87107333 | [] | no_license | MDMTseng/visSele | b4b76c96e04635df18644202d883c544ea78f663 | e9f06b221698782ae32912f3c40b363a939f84f8 | refs/heads/master | 2023-07-19T20:43:40.841332 | 2021-06-18T09:43:48 | 2021-06-18T09:43:48 | 96,328,453 | 2 | 1 | null | 2022-12-12T02:21:02 | 2017-07-05T14:29:55 | C | UTF-8 | C++ | false | false | 3,384 | hpp | acvImage_ToolBox.hpp | /*#include <math.h>
//#include "DynamicIntArray.cpp"
//#include "acvImage.cpp"
#include "acvImage_EnhenceTool.cpp"
#include "acvImage_SpDomainTool.cpp"
#include "acvImage_MophologyTool.cpp"
#include "acvImage_BasicDrawTool.cpp"
#include "acvImage_ComponentLabelingTool.cpp"
#include "acvImage_ImageBlanderTool.cpp"
#inc... |
d023e4e8df38dabc3ed0438144c312427ac715ed | 6d1e453b5a0a7e57563f98cb87c44e4f9061f3ff | /FileDivider/Builder.h | fcc27dbfb341b5f4fe8f5148e66e049ebd063228 | [
"MIT"
] | permissive | kit-cpp-course/martynov-d | 9fc7927a134e676a324bac56edff7367b45889ce | 3ce7d796ce58bc6eb56dc69f9f3e809828cfddf9 | refs/heads/master | 2020-04-12T14:55:57.840396 | 2018-12-27T20:31:17 | 2018-12-27T20:31:17 | 162,565,733 | 0 | 0 | MIT | 2018-12-27T12:16:07 | 2018-12-20T10:44:47 | null | UTF-8 | C++ | false | false | 510 | h | Builder.h | /* Builder.h */
#pragma once
#include "stdafx.h"
class iTerminal;
class Config;
/* Manages file restortion from .fdblock files*/
class Builder {
private:
/**
* Loads input .fdblock files
* Loads cfg.txt file
* Creates output file
* Rebuilds output file from .fdblock files
**/
void build(iTerm... |
e5d2f906cbf0c9a40223bdfa9fef3378eb4fb26d | 96d5d0f954c61b728583dd56731637fec0211079 | /Phase/Phase.cpp | d5c2260c20d0c6375a83a919981c07f5a6679824 | [] | no_license | ESW-RMS/arduino-transmitter | 9e0c71b022bcb819ed83792eedad84ddde73fd64 | 5d44578c7fe329eb9a399c89d91fc2f71891a5cb | refs/heads/master | 2021-05-30T16:33:11.402815 | 2016-02-28T02:05:14 | 2016-02-28T02:05:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,835 | cpp | Phase.cpp | #include "Phase.h"
Phase::Phase(String n, unsigned int v, unsigned int i) :
voltage("V",v),
current("I",i)
{
name = n;
delaysum = 0;
numsamples = 0;
}
void Phase::clear() {
voltage.clear();
current.clear();
numsamples = 0;
delaysum = 0;
}
void Phase::sampleSignal() {
voltage.sampleSignal();
current.sample... |
9ac3d4936a798f68545e02008f53219238805d85 | 7fa40055e18f198f820541ac504555a8f76f984e | /calculator-ver1/JiWooKim_Homework.cpp | 4c8132166cd7f572f9e40489161dbd5b44797652 | [] | no_license | bbasung1/gibumfile | 7cb64455d6c916060d3ab2a5b4f7c18f9789d0a7 | 3caaf4067d379211463d0955a8a6690844fef9f2 | refs/heads/master | 2023-03-02T11:06:21.720415 | 2021-01-18T05:01:11 | 2021-01-18T05:01:11 | 334,324,965 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,136 | cpp | JiWooKim_Homework.cpp | /*
file name:simpe calculator
author:Ji Woo Kim
modified date:12.31,2020
*/
#include <iostream>
using namespace std;
int main()
{ int n,m,result;
char Operator;
cout << "식을 입력하세요(덧셈,뺄셈,곱셈,나눗셈,나머지)" << endl;
cout << "ex) 5+3" << endl;
cin >> n >> Operator >> m; //정수 연산자 정수 순으로 식을 받는다.
if(... |
38ae03d8e04580fb6180c5a9ae1c360345e1d8e5 | 9b98d776634adf7bd143a71ac28fc5bf4dbe42bb | /Week4(22May2020 to 28May2020)/26May2020_Contiguous Array.cpp | 31c2300eaac1ba50b878a036de382415407d1d1d | [] | no_license | arjundubey-cr/May_Challenge-leetcode.com- | 7063dec48e0fc86cbd3cd63a5fbbb3ed955d8e07 | 764a8ebfb464675a014c759e6f74fd03ec35ad4e | refs/heads/master | 2022-09-09T05:21:53.807698 | 2020-06-02T11:13:20 | 2020-06-02T11:13:20 | 260,845,167 | 1 | 0 | null | 2020-05-10T09:57:48 | 2020-05-03T06:50:15 | C++ | UTF-8 | C++ | false | false | 641 | cpp | 26May2020_Contiguous Array.cpp | class Solution {
public:
int findMaxLength( vector<int>& nums ) {
if( nums.size() == 0 ) return 0;
int maxLen = 0, prefixSum = 0;
unordered_map<int, int> hash; // prefixSum => index
for( int i=0; i < nums.size(); i++ ) {
if( nums[i] == 1 ) prefixSum++;
else pr... |
0ad7e7dd7b71ee8fa1d9245b91a4eeb795eba87b | 5e6bc675e64b5b74d095c376e5a839a2c086c8e7 | /HVwalk.cpp | 6f125912970df80629977184abfd2d85e46670c9 | [] | no_license | anushkachauhan/ALGO | 05cf4da95183f81167eeec91654421adafd86be6 | 5744d4441a90e63065a574872205cb8f5bd410a5 | refs/heads/master | 2022-10-25T21:12:34.128842 | 2022-10-12T16:07:48 | 2022-10-12T16:07:48 | 142,010,639 | 1 | 1 | null | 2022-10-12T16:07:49 | 2018-07-23T12:23:11 | C++ | UTF-8 | C++ | false | false | 4,144 | cpp | HVwalk.cpp | #include<bits/stdc++.h>
using namespace std;
int walk(int r, int c)
{
vector<vector<int>>ans(r+1, vector<int>(c+1,0));
// storage is assigned with the 0 value in every cell
for(int i=r; i>=0; i--)
{
for(int j=c; j>=0; j--)
{
if(i==r &&j==c)
... |
2f3762cb5fd774516305beee20a0e199b04e936c | b3d810002c8dbf9ad8642e823abc0b44ee9ed523 | /TCP/TcpClient.cpp | 189c88585716d66456e75440b67bfab24e81cf59 | [
"Apache-2.0"
] | permissive | 82488059/TCP | 99f1f23241798c8c1f41aee496b9fa53ba0f6b64 | 194420cf2b8a44e84691cd30a0bb06d6c5aaf3f7 | refs/heads/master | 2020-03-23T23:50:33.555041 | 2018-07-25T06:43:18 | 2018-07-25T06:43:18 | 142,258,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | TcpClient.cpp | #include "stdafx.h"
#include "TcpClient.h"
CTcpClient::CTcpClient()
{
}
CTcpClient::~CTcpClient()
{
}
int CTcpClient::run()
{
switch (status)
{
case 0:
start();
break;
case 1:
stop();
break;
case 2:
stop();
break;
... |
f2bf48dd1f02fd1ef9355c6cc1d317932ed65f98 | 2d3cbf5933567ce3c3dcb8f004f1571067742f87 | /libgraph/include/katana/LC_CSR_Graph.h | 955a6dc883a00112eadc63bff91987e572a38cc7 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | KatanaGraph/katana | 9de617944264873198ec7db5ed022d356b1a529a | 350b6606da9c52bc82ff80f64ffdde8c4bfdacce | refs/heads/master | 2022-06-24T02:50:16.426847 | 2022-03-29T12:23:22 | 2022-03-29T12:23:22 | 310,108,707 | 85 | 83 | NOASSERTION | 2023-08-09T00:07:55 | 2020-11-04T20:19:01 | C++ | UTF-8 | C++ | false | false | 33,512 | h | LC_CSR_Graph.h | /*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
ec00b13f2e2e8f84d468de9851438d19c8738001 | 77cb5a7c94653ead1a7475d96e0b47f1c85b6991 | /PhoneNumberExample/PhoneNumber.cpp | a7cfd3cacde8e31d391ee438fad6450e36f61c1b | [] | no_license | asyrofist/DEITEL_CPLUSPLUS | dd27960a2bd06b060fce8e20171d158bd8c0e1bf | a14100fe9d938244a64c116fccdeae6132ac285e | refs/heads/master | 2020-09-22T12:53:17.060341 | 2018-02-22T17:14:52 | 2018-02-22T17:14:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | PhoneNumber.cpp | #include<iomanip>
#include "PhoneNumber.h"
using namespace std;
//overload stream insertion operator; cannot be a member function if we would like to invoke it with cout<<somePhoneNumber;
ostream &operator <<(ostream &output, const PhoneNumber &number){
output << "(" <<number.areaCode << ") " <<number.exchange <<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.