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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1356ceacf5fd06c8073ced08306db98c78e67048 | d42e75edb5a9e42e8f32510eb3f86e28b6568a2a | /008/13907/13907_김형준.cpp | 95f7b54ab7bf08a532b754137d07d2fd5af6caad | [] | no_license | wasuphj/algorithm_study | 86ad452bf098b1e1605ebc5e8197176a69726565 | 780ec32ec193571e05558a714cc0779e2202c732 | refs/heads/main | 2023-08-25T14:42:10.163787 | 2021-10-16T04:15:54 | 2021-10-16T04:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,140 | cpp | 13907_김형준.cpp | #include <iostream>
#include <queue>
#include <vector>
#include <algorithm>
using namespace std;
vector<pair<int, long long>> roads[1000];
long long d[1000];
vector<long long> taxes = { 0 };
int main() {
int N, M, K;
int S, D;
cin >> N >> M >> K;
cin >> S >> D;
for (int a, b, w, i = 0; i < M; i++) {
cin >> a... |
a2318e1485fffc10efd7c91898f39024eedd9167 | 9e99d7536b00016b67a048034f5c77f95163f106 | /BOJ_11726.cpp | 6ab812cae130cc0b5480f1e27900f4d28f8922c9 | [] | no_license | 5Hanui/algorithm | 19c1f4d6b4b1641735d88cd00e3089f57265c766 | 489d416c1c08734324cd20ff6b311277aa3eb36e | refs/heads/master | 2022-09-01T11:47:12.444875 | 2022-07-22T08:28:21 | 2022-07-22T08:28:21 | 164,403,510 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | cpp | BOJ_11726.cpp | #include <iostream>
#include <cstring>
using namespace std;
int cache[1001];
int tile(int n) {
if (n == 1) return 1;
if (n == 2) return 2;
int &ret = cache[n];
if (ret != -1) return ret;
ret = 0;
ret = tile(n - 1) + tile(n - 2);
return ret%10007;
}
int main() {
int num;
cin >> num;
if (num < ... |
d9110c2c05f42ac919e53f237c5643f9e895d00a | 80d66fd6ff45a4e17f0c4ee47b347b2e11ec7527 | /Arduino testing/Test_hastighet.ino | ed943f9f4f2a40ce8ca34e5352fc1811f29e9374 | [] | no_license | sHoggard/P2AdaLovelace | 0421a252135047a3bcda5fc234ef3cf7335d68a8 | 880a3a79a610351fcbc33a9780c68ee3b46ac3dd | refs/heads/master | 2020-03-08T14:58:28.317329 | 2018-06-10T20:37:46 | 2018-06-10T20:37:46 | 128,199,031 | 0 | 0 | null | 2018-04-25T11:38:27 | 2018-04-05T11:52:25 | C | UTF-8 | C++ | false | false | 2,275 | ino | Test_hastighet.ino | int counterL1 = 0;
int counterL2 = 0;
int counterR1 = 0;
int counterR2 = 0;
int command = 1700;
long startTime, endTime;
void incrementLeft1(void);
void incrementLeft2(void);
void incrementRight1(void);
void incrementRight2(void);
void setup() {
Serial.begin(9600);
Serial.println("setup");
//put motors in res... |
fcb2a2fe9b6274f59956def666d907f8331d820b | d149cdffcf3d5f55b237d12426fe99685e29eecc | /PolygonManager.cpp | 36aa20cee317288aa598ec9f36a77d0e0f02a162 | [] | no_license | truongascii/enigma-editor | af5ca53726a5d23704df6f1ace361edcc99a79ac | 49a93891b162eedd0aa6032755d8ddd07e614db7 | refs/heads/master | 2021-01-21T23:29:58.932062 | 2012-10-23T11:58:45 | 2012-10-23T11:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 55,072 | cpp | PolygonManager.cpp | //-----------------------------------------------------------------------------
// File: PolygonManager.cpp
//
// Desc: Manages all polygon stuff in the scene
//
// Copyright (c) 2002 Dan
//-----------------------------------------------------------------------------
//-----------------------------------------------... |
ecc29cc59eb6e510f9aa7048b66dca6da1217ade | 56a69b1609068c2d19f2d409e060f40a2dea0398 | /Encryption-Decryption/baseConvert.cpp | afe1456d4ce5116233ca5d0655a96acfa37f9689 | [] | no_license | kartikay101/Programming-Challenges | 6fb0498c27746230a222b898d81961e2e6654c25 | 3caaf3465318bda772fc37d9c3b7e2e0136fb1bd | refs/heads/master | 2020-03-22T14:02:00.387297 | 2019-10-17T19:08:22 | 2019-10-17T19:08:22 | 140,148,961 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,710 | cpp | baseConvert.cpp | /**
* @Author: Kartikay Shandil <kartikay101>
* @Date: 2018-07-10T11:35:09+05:30
* @Last modified by: kartikay101
* @Last modified time: 2018-07-11T21:49:55+05:30
*/
// The input file is Input.txt present in res folder.
#include<iostream>
#include<fstream>
const std::string ifile_path="res/Input.txt";
const... |
d46e08d6dd83fd357a672a4ea6c86b79b1ff6e56 | 04904c58080f35d7720dfc06799c5af38e092b9c | /question4/FindNumberIn2DArray.cpp | 5feacdef696ca386d79cf5a206f02d86448c4d5e | [] | no_license | hear-snow/SomeBasicQuestion | e0c626d59bfe10211890fb466325d18b0c10a222 | 8fff9e5831216e39e088ef77c043a442331d487c | refs/heads/master | 2021-05-21T13:33:14.906174 | 2020-05-10T03:53:12 | 2020-05-10T03:53:12 | 252,668,248 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,528 | cpp | FindNumberIn2DArray.cpp | #include<iostream>
#define ROW 4
#define COL 4
using namespace std;
bool Find( int ( *num )[ 4 ], int rows, int columns, int target )
{
if( num != nullptr && rows > 0 && columns > 0 )
{
int row = 0, column = columns - 1;
while( row < rows && column > 0 )
{
if( num[ row ][ column ] == target )
return tru... |
cd79f42d716cc7d2bf27bc88447b6cdeea1cfe82 | 90ed847a28798c77934aa9d8eb8fd62b45bdd7fa | /CSUB.cpp | 591e80299fbcb67ec0f47961eb6b2fcd08468765 | [] | no_license | niveditaprity/codechef | 4379641ecf7957f0529a6449373cfdde8539f4bc | 3ae55b1c6bc71ccd78327a075fdba87491eac903 | refs/heads/master | 2023-01-23T20:41:52.489726 | 2020-11-27T14:32:32 | 2020-11-27T14:32:32 | 264,115,989 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 394 | cpp | CSUB.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long LL;
int main()
{
int t;
cin >> t;
while(t--)
{
string s;
int n,i,cur=0;
LL ans=0;
cin >> n >> s;
for(i=0; i<n; i++)
{
if(s[i]=='1')
{
cur++;
ans+=(long long)(... |
9bb1fe7a94fed8cad0749afc9da1b23a3eca437b | 3bf9969f2e8eac6e93bc4b3569605af49d2d7f55 | /Array/ArrayConsecutiveElement.cpp | 1cd6465e3394e6a32d49729d53f172d243b9854f | [] | no_license | jainitesh/mission_self | 95cc4eb4299b00de62c0e3bdd79c1fe55ad29209 | 6eec46dba0064311e21d429eb186e0b2c07ce18e | refs/heads/master | 2021-01-20T14:25:28.943340 | 2017-05-23T17:12:54 | 2017-05-23T17:12:54 | 90,609,829 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 667 | cpp | ArrayConsecutiveElement.cpp | /*
Author : Nitesh Jain
Date : 08/05/2017
Link : http://www.geeksforgeeks.org/check-if-array-elements-are-consecutive/
*/
#include<iostream>
#include <vector>
using namespace std;
bool CheckConsecutiveArray (vector<int>& arr)
{
int min = 999999999;
for (auto i : arr)
if(i < min)
min=i ;
... |
c5b88f6c2ce56c304e8eb557aed89b84bf55ab3c | ddaee858df7eb141a097ee0b2a0fd3b67181bbeb | /BinarySearchTree/BST.cpp | f60ad931f08f2b5effb22e83bce10d83c9c2459f | [
"MIT"
] | permissive | landiinii/C-Based | 60c577cb985c6bd4304b9785a792c148179f8f9f | ede5528829eb6a32c259ee7cb49d426af4582b6d | refs/heads/main | 2022-12-20T11:41:34.250558 | 2020-10-12T16:49:27 | 2020-10-12T16:49:27 | 303,188,244 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,955 | cpp | BST.cpp | #include "BST.h"
using namespace std;
Node* root;
NodeInterface * BST::getRootNode() const{
return root;
}
Node* BST::findPrev(Node* finder, Node* subject){
cout << "findP " << finder->data << endl;
if(finder == NULL){
return NULL;
}
if(finder->data == subject->data){
return root... |
391f7d28b86d9a526db1bc40470d5d20947dfed3 | ee1423adcd4bfeb2703464996171d103542bad09 | /dali-core/dali-core-HEAD-5d42e5d/automated-tests/dali-test-suite/text/utc-Dali-Utf8.cpp | 4efd8c3e9e4fd9f16bdab73db9bc15ccd9c85cae | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-flora-1.1"
] | permissive | sak0909/Dali | 26ac61a521ab1de26a7156c51afd3cc839cb705a | 0b383fc316b8b57afcf9a9e8bac6e24a4ba36e49 | refs/heads/master | 2020-12-30T12:10:51.930311 | 2017-05-16T21:56:24 | 2017-05-16T21:57:14 | 91,505,804 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,881 | cpp | utc-Dali-Utf8.cpp | //
// Copyright (c) 2014 Samsung Electronics Co., Ltd.
//
// Licensed under the Flora License, Version 1.0 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://floralicense.org/license/
//
// Unless required by applicable law or a... |
d6cb632e5a691b43ed4db96a5f14563ba4f5575b | 58ee29d16a0b99d6a3514428de36377b7db5bf1a | /Data structures/NodoCola.cpp | 12058ae280ecdfc4f50ad003a14957e83c506b84 | [
"MIT"
] | permissive | Alvarohf/University-work | 146ec0fc4236bd4394f2dffd9f6a5e80b7a801cb | 407791f552da73c474bc8a75fb22627a75a2db5f | refs/heads/master | 2023-02-11T10:22:44.807075 | 2021-01-07T23:45:58 | 2021-01-07T23:45:58 | 300,091,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | NodoCola.cpp | #include "NodoCola.hpp"
NodoCola::NodoCola(Cliente c, NodoCola* sig)
{
cliente=c;
siguiente=sig;
}
NodoCola::~NodoCola()
{
}
|
5fcc2a15f678e0985776a19e58213ae41dff958f | c8e8192628c87ad567db8d518a894e90da4e4e53 | /Arrays/Find Majority Element.cpp | 84a37c6f4faccfb3cca28162ee931825ce9d2091 | [] | no_license | Samir-Singh/DataStructure-and-Algorithm | f904a5803a3ee5de110f1f4c6c0fde0ad57e2cac | e09730bf46ef0202e8de0dc6f1528c1d1d118e10 | refs/heads/main | 2023-03-20T10:04:26.135964 | 2021-03-17T13:30:47 | 2021-03-17T13:30:47 | 324,924,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | cpp | Find Majority Element.cpp | /*
Find Majority Element in an array. Majority element in an array arr[] of size n is if element appears
more than n/2 times.
ex1 : Input : arr[]={3,3,4,2,4,4,2,4,4}
O/P : 4
Explanation : frequency of 4 is 5 which is more than half of the size of the array
ex2 : Input : arr[]={3,3,4,2,4,4,2,4}
... |
b8d43081aa81a2130f816699fb4ec804141c1190 | 8793eef053377f833d64806623ff6c03fe8697d5 | /test/myMenu_using_BP_lcd/myMenu_using_BP_lcd.ino | 6a723874064563ca61787f19471d54aab3737fd1 | [] | no_license | kamze/IF23_project | a664b8f33bc16e206a4da7f82c32ecaa1e70646d | e5eb24661901c310b3f67133fe7da38ce50209cc | refs/heads/master | 2021-01-20T14:08:23.162456 | 2017-06-13T18:02:36 | 2017-06-13T18:02:36 | 90,563,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,762 | ino | myMenu_using_BP_lcd.ino | /**
* This is the structure of the modelled menu
*
* Batterie ok ? if used return 1 " L1: Batterie; L2 e %"
* Iteneraire
* Start ok? L1: newfile; L2: deltaT=15sec"
* Stop ok? stop the GPS
* Options file
* NewFile: ok?
* OverWr: ok?
* Option points
* 1sec: ok?
* 30sec ok?
* ... |
c0d4bcaeddfabac4b10c54b8211b96840d5b1c53 | 93d995beeb0cc7933b1953d468dd0abc552acc02 | /Common/Primitive/Sample2D_Text.cpp | 7329294357ab29d6a5e3c2ba601705cfdf1fd5f9 | [] | no_license | shatanzhihu/occsamplemfc | 4e9cf757b84cdbfb2233e829f26aa2242a507db9 | 0ca4151f3f79276006978563de46eb83c8c15e14 | refs/heads/master | 2021-05-27T03:22:31.944242 | 2013-06-20T11:59:12 | 2013-06-20T11:59:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,063 | cpp | Sample2D_Text.cpp | #include "stdafx.h"
#include "Sample2D_Text.h"
IMPLEMENT_STANDARD_HANDLE(Sample2D_Text,AIS2D_InteractiveObject)
IMPLEMENT_STANDARD_RTTIEXT(Sample2D_Text,AIS2D_InteractiveObject)
Sample2D_Text::Sample2D_Text
(const TCollection_AsciiString& aText,
const Standard_Real anX ... |
68cebe47e49a8b2c621991332efd8f9634847f94 | 17f8599c8f3a6c7258db6cd19897611a7c9d89ef | /firmware/system/drivers/Pin.cpp | 4e7614ffc09c65cebe207c1c76f174d6f23de982 | [] | no_license | ezhov93/Mdr1923VK014 | 7e0fbe5125184ad549e30943ee93a52e2127229e | 3391fdb9dbb01c6f7f26c95783d213741521fc7a | refs/heads/master | 2022-12-24T09:55:01.767774 | 2020-10-08T08:37:47 | 2020-10-08T08:37:47 | 262,274,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,549 | cpp | Pin.cpp | #include "Pin.h"
#include "system/1923VK014.h"
void Pin::init(const Mode mode, const Function function) const {
enum Power { PowerDiverOff, Power300ns, Power100ns, Power10ns };
// Clock enable
const uint portClkEnable = (1 << (13 + ((_portAddr & 0xFFFF) >> 12)));
CLK_CNTR->PER0_CLK |= portClkEnable;
PortC... |
76a50b3ee5f974ae356c086d7c82fd948f1c812f | de030f8c3ba5b9090fd5d2a6c7ee37832b283f73 | /NType/src/DetectorConstruction.cc | 4e9e0ebaa1d11383e0fc1acc870c1e279c5d384b | [] | no_license | sfinch/geant4 | 311bfb503b982b91b72cd06935b4a05aaf51f219 | 7b977f01236a61bfae191517c29590b2fbf71b0f | refs/heads/master | 2016-09-06T19:20:48.147955 | 2012-12-13T00:39:15 | 2012-12-13T00:39:15 | 7,140,069 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 16,722 | cc | DetectorConstruction.cc | //
// $id: detectorconstruction.cc,v 1.1 2010-10-18 15:56:17 maire exp $
// GEANT4 tag $Name: geant4-09-04-patch-01 $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "DetectorConstruction.... |
8351af36c19e5819b04c84ce722acf59f8780da7 | 81ce443a9b15bd49904a54954d820e49024b949e | /Entity.hpp | acc5161db3abcd0755eb357580c63510fda788e0 | [] | no_license | ritvik06/Road-Traffic-Simulator | 17508a709558780f2f247a13094c7638153e88ae | 3ba83eba4bf15e058da8b1180601062f47868a60 | refs/heads/master | 2020-04-27T12:34:15.974843 | 2019-04-14T01:21:07 | 2019-04-14T01:21:07 | 174,335,837 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 744 | hpp | Entity.hpp | //=================================
// include guard
#ifndef __ENTITY_HPP_INCLUDED__
#define __ENTITY_HPP_INCLUDED__
//=================================
// included dependencies
#include<cstdlib>
#include<tuple>
//=================================
// the actual class
using namespace std;
class Entity
{
... |
6ba1c915270f75578f9be2a001b2d423e5a6c253 | 3ebe0e3e84a4c2b8ed991dddafc031bdf141fc2e | /p3/build-Texturing/qrc_textures.cpp | f937cd21fb73aff9b3882806b5a915878bea8cbd | [] | no_license | tectronics/graphics-assignments | 939e615a164e80b707b3567e642b4f821ebef41c | 7b3d172e83bff15f4481f6b68e3a3797d0f61873 | refs/heads/master | 2018-07-15T22:15:53.351900 | 2015-03-27T01:44:34 | 2015-03-27T01:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128,401 | cpp | qrc_textures.cpp | /****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 4.8.5
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
#include <QtCore/q... |
e24a24b3341ba884909440574969e930972b535d | ba9b2dbdcdb7b508d9700e1ebdef8abbe2b9f6a0 | /delta ćwiczenie 7.cpp | 4e2910c1bb50d79815a342e7d68e10f8b8f6e783 | [] | no_license | DawidDziuba/-wiczenia-ppk | 8cb9926feabc1b17ecef0c2ce492d8e10785a521 | c83a10f19bd6d708cf3f44060b62029925f369eb | refs/heads/master | 2022-12-26T19:00:53.071412 | 2020-10-14T07:07:04 | 2020-10-14T07:07:04 | 302,431,651 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 770 | cpp | delta ćwiczenie 7.cpp | #include<iostream>
#include <math.h>
using namespace std;
int main()
{
double a, b, c;
cout<< "Podaj zmienna a ";cin>> a;
cout<< "Podaj zmienna b ";cin>> b;
cout<< "Podaj zmienna c ";cin>> c;
// ax2+bx+c
double delta, x1, x2; // sqrtb2-4ac, (-b -+ sqrt delta)/ 2a
delta= sqrt ( b*b -4*a*c);
// cout << del... |
9d94ef31eaf5da22594d6db96a0a7b33ddb2f72c | 21390f77aaf8c4815c1ffd43ac0d4235d41b0b57 | /Sort_Search/LCPrimarySS2.h | 77ca42be58b4ab8b568a14160d884f650a0d7c0d | [] | no_license | RenjieChiang/myLC | ce8e396a3cde25aaf904215f186cf34186080325 | 1fab036076ead36aabc57ac079485a683628eacf | refs/heads/master | 2023-06-24T04:36:17.887823 | 2021-07-28T08:59:08 | 2021-07-28T08:59:08 | 349,935,717 | 0 | 0 | null | 2021-04-08T02:20:50 | 2021-03-21T08:07:05 | C++ | UTF-8 | C++ | false | false | 1,361 | h | LCPrimarySS2.h | //
// Created by tianbot on 2021/4/5.
//
/*
* 第一个错误的版本
你是产品经理,目前正在带领一个团队开发新的产品。不幸的是,你的产品的最新版本没有通过质量检测。由于每个版本都是基于之前的版本开发的,所以错误的版本之后的所有版本都是错的。
假设你有 n 个版本 [1, 2, ..., n],你想找出导致之后所有版本出错的第一个错误的版本。
你可以通过调用 bool isBadVersion(version) 接口来判断版本号 version 是否在单元测试中出错。实现一个函数来查找第一个错误的版本。你应该尽量减少对调用 API 的次数。
示例:
给定 n = 5,并且 vers... |
689e842ecde81e8c2712b8dfb3cb551cf319eb8b | 58a37bb5a670848010f855bba97e26d4eecc6568 | /solved/spojbr/BIT.cpp | 2198d40543341808e07c61a0c95c4e9d468f379c | [] | no_license | ederfmartins/programming-challenges-snippets | 603d5700947fd1b07943c0774fc247ecef7b0216 | 0f798e5869425458b0d304911d10be6771bd70c9 | refs/heads/master | 2020-04-09T17:22:04.537706 | 2016-08-18T17:25:33 | 2016-08-18T17:25:33 | 40,633,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 311 | cpp | BIT.cpp | #include <iostream>
using namespace std;
int main()
{
int n, t = 1;
int i, j, k, l;
while (cin >> n)
{
if (n == 0) break;
i = n/50; n %= 50;
j = n/10; n %= 10;
k = n/5; n %= 5;
l = n;
cout << "Teste " << t++ << endl;
cout << i << " " << j << " " << k << " " << l << endl;
}
return 0;
}
|
4e60c986383abfa3991349ac81c24d132b09e530 | 912458deb28b04326fb1650d9722a441231d624e | /Homework06/InheritenceClass/Bear.cpp | 3304a3bc3ad5e2c5cfcfd4d2e006334b237af55a | [] | no_license | prog1261-2020/homework-seandoucet-nbcc | 006f4b8f065a09553a294f420caa08b3efcaf5d8 | a1b9f3a9f00b3b1e174f4cf7359fce7c8678062b | refs/heads/master | 2020-12-09T19:48:41.409575 | 2020-03-24T14:54:40 | 2020-03-24T14:54:40 | 233,403,224 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | Bear.cpp |
// Program Header File
#include "Bear.h"
// C++ Standard Library Pre Processor
#include <iostream>
Bear::Bear() : Animal() {
}
void Bear::Speak() {
std::cout << "Bear Speaking..." << std::endl;
}
void Bear::Move() {
std::cout << "I am Moving..." << std::endl;
}
|
41e485ea9baaa1a18873dca8adb26296f67874c6 | a4bbeec539f2b1b7892ad7de3602c498b8326092 | /BPTree.cpp | c6b268c665a9c141cd5adb4129f1dc2cee79c205 | [] | no_license | anonymousubmitter/project2 | 0a299cf1e0468fd74213631745699c245936543a | 5a1a6607fce0791d455281c7db6f428eae294c9c | refs/heads/master | 2022-12-25T23:26:32.812254 | 2020-09-27T23:44:29 | 2020-09-27T23:44:29 | 297,234,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,053 | cpp | BPTree.cpp | #include "BPTree.h"
BPTree::~BPTree()
{
delete root_pointer;
root_pointer = NULL;
}
BPTree::BPTree(Pointer* p, int nodeSize)
{
cache->getFileOrAdd(p, file, nodeSize);
root_pointer = new Pointer(p);
}
void BPTree::print(int level)
{
printNode(root_pointer, level);
}
void BPTree::printNode(Pointer* node_poi... |
da5b6c4b2ea1c32ea2e0e05238fff189706d00c8 | 95a66516553ca9bf67a8ed1b71dda63b605774c6 | /source/predictdepth.cpp | e867c1f78e231a93460091739763f93b15058234 | [] | no_license | pdrgrc/WaSP | 7fcb661714b35db77e407bbf82361830ffb353d9 | fb704948d4f878f16fbc4d81f6bc5dc7a39fa6f9 | refs/heads/master | 2020-07-27T00:17:45.939236 | 2019-02-09T10:15:42 | 2019-02-09T10:15:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,194 | cpp | predictdepth.cpp | #include "predictdepth.hh"
#include "warping.hh"
#include "medianfilter.hh"
#include "ppm.hh"
#include "inpainting.hh"
#include "warping.hh"
#include <ctime>
#include <vector>
void predictDepth(view* SAI, view *LF)
{
/* forward warp depth */
if (SAI->has_depth_references) {
/* currently we forward warp the depth ... |
fe1a7b7ab98daa54c24c70bef031a6772033e107 | 7ea5365a0424c50be888cfba52c54fab1779b879 | /백준/Old/boj11055_LIS_DP.cpp | 5450888774940efd08a0b144a6b8c6edf0e71699 | [] | no_license | judemin/AlgorithmSolutions | a3e26fb7685f7357fad7fe05743f975fe2fde406 | cef19d14ab7bf9ca70aa73f87d49834f2ee24f31 | refs/heads/master | 2023-06-29T05:22:00.109993 | 2021-08-04T07:07:25 | 2021-08-04T07:07:25 | 259,854,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | boj11055_LIS_DP.cpp | #define _CRT_SECURE_NO_WARNINGS
#define N 1001
#include<iostream>
using namespace std;
int A[N], n;
int dVal[N];
int main(void) {
freopen("input.txt", "r", stdin);
int i, j;
int res = -1;
cin >> n;
for (i = 0; i < n; i++)
cin >> A[i];
for (i = 0; i < n; i++) {
int max = 0;
for (j = 0; j < i; j++)
if (A[... |
7cf4b828bc86e93a83703c55f4bd0537440ae842 | ec1095d7b8847e977faec34cbd08732410c5b699 | /Random/HOT/main3.cpp | cb1b26f9048b5c16aab6e90c18bce0d617c2cfc7 | [
"Unlicense"
] | permissive | AssemblerTC/Workspace | 4847052d41ce3fae52cd5931876c3124de10ba9b | bdb27e2165ab61471b3515c4a1684e5bdf2238d6 | refs/heads/master | 2020-12-24T21:00:52.205445 | 2015-10-10T16:27:47 | 2015-10-10T16:27:47 | 41,767,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,722 | cpp | main3.cpp | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define sz(x) ((int)(x).size())
#define forn(i, n) for (int i = 0; i < (n); i++)
typedef long long int number;
const int maxn = 5010;
int n;
vector<int> g[maxn];
int parent[maxn];
vector<vector<int> > level, new_level;
void next_level() {
new_level... |
4aed6454742ee7e78362ff024737a7fa9712d2a2 | e8282e3ae8aafa07b7f7261c639f206c4e97e0fc | /02 - SMA/Camp 1 OSN Kelas 11/Hari-17/rijeci.cpp | 74922eddcd1e236cdf4f629ece761fcbdc9d299a | [] | no_license | irfansofyana/cp-codes | 7cad844da49b901ccf678b75c31ed41e2fa9d645 | 9fa723129088f0e4832ecb7e012fe586b6d59e41 | refs/heads/master | 2023-04-04T00:48:36.334817 | 2021-04-12T03:07:06 | 2021-04-12T03:07:06 | 218,084,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | rijeci.cpp | #include <bits/stdc++.h>
using namespace std;
int i,n,a,b;
int temp;
int main(){
cin.tie(0); ios_base::sync_with_stdio(0);
cin >> k;
a = 0; b = 1;
for (i = 2 ; i <= k ; i++) {
temp = a;
a = b; b = temp+b;
}
cout << a << " " << b << endl;
return 0;
} |
fb30f5b87810a4b668a3f1e2e6ef2aac161148c2 | 342cbe7777582d31e3e331272ccd5208680ae0d1 | /src/windows/CMD3D11/CMD3D11Rtv.h | 916b8cdd8a969cf15b9c5fffca4e7f7bebbf1c25 | [] | no_license | marukun318/WinAppDX11 | 6e3b65b44443d801ccbb89a6e37ab40462a77a7f | 4ada97ee2f2d2d4c67e1ad524983faebc6eff160 | refs/heads/master | 2020-05-04T17:48:04.035577 | 2019-08-26T10:53:23 | 2019-08-26T10:53:23 | 179,327,073 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 814 | h | CMD3D11Rtv.h | // Direct3D11 Render Texture View Wrapper class
// written by Takeshi Maruyam
//
#pragma once
#ifndef __CMD311Rtv_H__
#define __CMD311Rtv_H__
#include "common.h"
#include "CMD3D11.h"
class CMD3D11Rtv
{
public:
CMD3D11Rtv(int, int);
~CMD3D11Rtv();
inline ID3D11ShaderResourceView* GetShaderResouceView() { return m... |
179bdf622b6fdaea6599d995ace97afadc29bbd5 | cd99ca9461435d1417cb146d966e54272fbcc7ad | /3rd party/maxsdk/howto/3dsmaxPluginWizard/Templates/1033/IK_TYPE_IKSolver.cpp | ad11cbc84d00430f53c3fe483dc2434645b23075 | [] | no_license | mortany/xray15 | eacce7965e785dd71d1877eae25c1f9eff680eec | 72a13fb24e9b388850bc769427c231da8f599228 | refs/heads/master | 2020-08-02T20:45:23.493981 | 2019-10-14T18:48:48 | 2019-10-14T18:48:48 | 211,499,718 | 0 | 0 | null | 2019-09-28T12:50:47 | 2019-09-28T12:50:46 | null | UTF-8 | C++ | false | false | 4,309 | cpp | IK_TYPE_IKSolver.cpp | [!output TEMPLATESTRING_COPYRIGHT]
#include "[!output PROJECT_NAME].h"
#define [!output CLASS_NAME]_CLASS_ID Class_ID([!output CLASSID1], [!output CLASSID2])
using namespace IKSys;
class [!output CLASS_NAME] : public [!output SUPER_CLASS_NAME]
{
public:
//Constructor/Destructor
[!output CLASS_NAME]();
virtual ~[... |
370505f33f4929b3fee7b34564a81fa3b120ecad | 5ac0a4230bda5b950bbe5004a6d5efe40fa41407 | /types/dexobj.cpp | d111cedfd9c49d031203aef2c3b62da15380aac6 | [] | no_license | ludamad/dexscript | 9fbf0424b9bb251335442b364b99b2601eba211f | 781ecea5ffadb660b3c4902c673621c198935b2e | refs/heads/master | 2021-01-13T01:59:33.135499 | 2018-10-07T02:09:07 | 2018-10-07T02:09:07 | 9,822,548 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | cpp | dexobj.cpp | /* DexScript scripting language, a value-based scripting language.
* Mutation must be made explicit. The language makes heavy use of
* copy-on-write techniques.
*
* Copyright (C) 2012 Adam Domurad
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of ... |
dd6f9987d6ff647a96335e634358b43f218f2992 | c2cbeaa1bfd68ec3fc55dae643151906d420e2da | /src/view/TractorBeamView.cpp | a83754e550a80476899dbfa199e6315bc6503144 | [
"MIT"
] | permissive | acsor/Non-Gravitar | ea8885e495f7a49b6dfa7d3e0cb364686825a697 | 9d21cf7ab5ef49f6976fcaf25fa01cacbb209740 | refs/heads/master | 2022-03-05T16:29:37.769875 | 2019-10-30T13:29:00 | 2019-10-30T13:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,926 | cpp | TractorBeamView.cpp | // MIT License
//
// Copyright (c) 2018 Oscar B.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, me... |
859cec50b322441650aac759d3017a07583cea77 | 47d5102b787c29fc65525dacdc2bc891e4b14b42 | /Server_0.5.1/WorldModel/Object.cpp | 4ee2cf9d24931f8eb8f2978aea36d72f0743c948 | [] | no_license | joreh/Joreh | aee6a3508fcc4d7f47149295ff5323aafa4d1b5a | 28c72d3b6541efc75e398f49807ccd8962095902 | refs/heads/master | 2020-12-03T03:14:52.465780 | 2012-05-15T11:23:27 | 2012-05-15T11:23:27 | 3,532,851 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,276 | cpp | Object.cpp | #include "Object.h"
#include <iostream>
#include <sstream>
using namespace std;
Object::Object( unsigned id, Vector3D pos, Vector3D vel,
string teamName, Model* fm )
{
m_pos = pos;
m_vel = vel;
m_id = id;
m_model = fm;
m_attrVal = fm->getAttrValMap();
setTeamName( teamName );
cout << ... |
e70dc790930bfa4ede024fbfffd342b1a185b653 | 8e2e4ce153e91f65cf9199823d17fae5fb1cb17b | /imagezero/include/imagezero/image.h | a6af6c1be409e41695cbb396f52220734b722743 | [
"BSD-2-Clause"
] | permissive | swri-robotics/imagezero_transport | 030aaa3ef611bc345dd757f1cd6f10c114880622 | 28a539860fe01f11c26b8fd5e800f71823880a4d | refs/heads/master | 2022-03-06T00:56:03.529553 | 2022-02-09T02:58:32 | 2022-02-09T02:58:32 | 69,680,376 | 34 | 11 | BSD-3-Clause | 2022-02-09T02:51:07 | 2016-09-30T15:52:47 | C++ | UTF-8 | C++ | false | false | 721 | h | image.h | #ifndef IZ_IMAGE_H
#define IZ_IMAGE_H 1
#include <cstddef>
namespace IZ {
template<
typename Sample = unsigned char,
ptrdiff_t samplesPerPixel = 3
>
class Image
{
public:
int width() const { return m_width; }
int height() const { return m_height; }
ptrdiff_t samplesPerLine() const { return m_spl;... |
e9ef1b51d0825eec69b6465d28d45e5693c373d2 | 52878995dcbbd398e766617552140329ee35f3ca | /DP10-Palindrome Partitioning II.cpp | fb530a1318d88e0386ae5c0f492fcbb79ebefbda | [] | no_license | niteshkumartiwari/daily-competitive-programming | a3d657507f3639dbe4a00fb4dd622061cdcbe9d2 | ab47765b17c91f0d3494e748862cdf2291ce1a9c | refs/heads/master | 2021-06-23T10:29:31.514748 | 2021-03-28T05:25:58 | 2021-03-28T05:25:58 | 204,979,930 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,204 | cpp | DP10-Palindrome Partitioning II.cpp | /*
Given a string A, partition A such that every substring of the partition is a palindrome. Return the minimum cuts needed for a palindrome partitioning of A.
Input 1:
A = "aba"
Output 1:
0
Explanation 1:
"aba" is already a palindrome, so no cuts are needed.
Input 2:
A = "aab"
Output 2:
1
*/
#... |
716e06be297d5a8f85f4af9281a6477cad492a7d | 53d2d2596e793844a69a9b812406237395096fe9 | /moretemp/cppbin/src/neotags - Copy.cpp | 2d23fde8c515a39cd879985d94f14e4a331da405 | [
"BSD-3-Clause"
] | permissive | roflcopter4/random | 5d569e3cac4b9d4a6ed464b7871cfcc17481a161 | 186e676f24a86196083d80a2eabd2e6814baaa71 | refs/heads/master | 2021-01-25T11:02:58.305458 | 2018-08-06T00:26:34 | 2018-08-06T00:26:34 | 123,381,299 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,518 | cpp | neotags - Copy.cpp | #include "neotags.h"
#include <clocale>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
using uint = unsigned int;
#ifdef DOSISH
# define WIN_THREADS
#endif
#ifdef USE_PTHREADS
# include <pthread.h>
#endif
... |
0d2e8146d231ad3cb6970ef8e1d5bce6bcfaa85a | df718f9114e9472f7eb094c962f000b910c0af53 | /mts/cmm_value_list.cpp | 328c717ab1afdd90130429abc1d4b4d41e7fd06b | [] | no_license | doinglu/cmm | 65ac7d867b9e2d9e024077dd89d57fd87f8d987e | cdb5210db3c519676d4ffc8074e8661a8a5b51ba | refs/heads/master | 2021-01-10T13:03:31.183195 | 2016-02-28T00:20:01 | 2016-02-28T00:20:01 | 46,947,558 | 3 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 5,649 | cpp | cmm_value_list.cpp | // cmm_value_list.cpp
#include "cmm.h"
#include "cmm_value_list.h"
#include "cmm_value.h"
namespace cmm
{
// Append a new value to list
void ValueList::append_value(ReferenceImpl* value)
{
STD_ASSERT(("The value was already owned by a list.", !value->owner));
value->owner = this;
#if USE_LIST_I... |
fa3a9f6a800eefec8022b7db031a8a1dcea5b540 | cc2db180f70cc01ab3a984f4d312174360640437 | /MDecoder/mdecoder.cpp | a240d6a3a426eda31823441ba622c0c8cdc48f57 | [] | no_license | gateslu/ShowDemo | 54c8ff8f902f3b63bd299da0ea8fe0c252b14e3f | 75ea7c508c35643ee8ebc02fe46a63377a344d1f | refs/heads/master | 2020-06-04T17:54:45.407833 | 2012-11-17T08:59:41 | 2012-11-17T08:59:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,828 | cpp | mdecoder.cpp | #include "mdecoder.h"
#include "mdecoderclass.h"
DECHANDLE InitDecoder(void)
{
MDecoderClass *m_dec= new MDecoderClass;
return (DECHANDLE)m_dec;
}
int ReleaseDecoder (DECHANDLE _dec)
{
if (!_dec)
return 1;
MDecoderClass *m_dec = (MDecoderClass *)_dec;
delete _dec;
return 0;
}
int Open... |
6a5325f06ef8b31fb45759aed3658d91f71c4da8 | 10be72895509bb7712bfd478632c4c9653edc10b | /pp/p1/p1.h | ef599d8c6157c72bc12b8d223ea4ddd95caeac73 | [] | no_license | Darkxiete/chapter10 | fd6b00d3391892df5dfbe94a9be9c217360df186 | 0b7f4dbd0f7b7ceb948b11ff2383e0b8bf2ee64a | refs/heads/master | 2020-07-06T02:45:00.490983 | 2019-08-18T09:27:01 | 2019-08-18T09:27:01 | 202,863,864 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | h | p1.h | //
// Created by xk on 2019/8/18.
//
#ifndef CHAPTER10_P1_H
#define CHAPTER10_P1_H
#include <string>
using std::string;
class BankAccount {
private:
string name;
string accountnum;
double balance;
public:
// 默认参数在原型中,而不是函数定义中
BankAccount(const string &client, const string &num, double bal = 0.0);... |
55c278ba12ba502c2faabc1ce618d5269f1d4c77 | a88564964a2d891bc527f43f99a40b8ae96cf11c | /src/Etterna/Globals/SpecialFiles.cpp | 5598f13afcf9ec9e586edc5a341201b455500f83 | [
"MIT",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jameskr97/etterna | f09dca2777f307e1f9ed9444e26792890920f9e2 | 5acb2a3be336bc6f92b96ef8dd73743f92e84552 | refs/heads/master | 2023-02-20T10:45:06.686289 | 2023-01-09T07:46:49 | 2023-01-09T07:46:49 | 173,903,384 | 0 | 3 | MIT | 2019-05-04T02:30:57 | 2019-03-05T08:11:58 | C++ | UTF-8 | C++ | false | false | 1,147 | cpp | SpecialFiles.cpp | #include "global.h"
#include "SpecialFiles.h"
const std::string SpecialFiles::USER_PACKAGES_DIR = "UserPackages/";
const std::string SpecialFiles::PACKAGES_DIR = "Packages/";
const std::string SpecialFiles::KEYMAPS_PATH = "Save/Keymaps.ini";
const std::string SpecialFiles::EDIT_MODE_KEYMAPS_PATH =
"Save/EditMode_Key... |
918c59ee8757ada7b4c38a5c5344dfd9c059a149 | 6680f8d317de48876d4176d443bfd580ec7a5aef | /Header/misGroupTab.h | f49c960319c500c8acef4587438d7dbdda68ab30 | [] | no_license | AlirezaMojtabavi/misInteractiveSegmentation | 1b51b0babb0c6f9601330fafc5c15ca560d6af31 | 4630a8c614f6421042636a2adc47ed6b5d960a2b | refs/heads/master | 2020-12-10T11:09:19.345393 | 2020-03-04T11:34:26 | 2020-03-04T11:34:26 | 233,574,482 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 974 | h | misGroupTab.h | #pragma once
#include "misModelObserver.h"
#include "misSubsequenceLayout.h"
class MISLIBRARYEXPORT misGroupTab :public misOldObject
{
private:
std::string m_tabNmae;
misModelObserver::Pointer m_Observer;
public:
typedef misGroupTab Self;
typedef misOldObject Super... |
5d5e88847677254f1020e3a1d63cf865f6b221ce | 7ac373bb49d71159d2e014bb24b9870257be50ac | /Проект/program.h | 51bbd046aa706cc1e940146892c9ee05e0d1baba | [] | no_license | RexUmbra/Reminder | 28403fdc103098f2de69184d2e663703d55e4d4d | df1490e0c5cd1283d9e845a7996f261b14e10aec | refs/heads/master | 2023-01-02T14:07:34.692605 | 2020-11-01T19:27:49 | 2020-11-01T19:27:49 | 309,132,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 772 | h | program.h | #pragma once
#include <iostream>
#include <stdlib.h>
#include <malloc.h>
#include <Windows.h>
#include <time.h>
#include <stddef.h>
#include <stdio.h>
#include <ctime>
#include <vector>
#include <thread>
#include <fstream>
#include "Struct.h"
#include <atlconv.h>
#define _CRT_SECURE_NO_WARNINGS
using namespace std;
cla... |
ef71ad78982c3af2904dc03451d59fc980fc6076 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/pystan/stan/lib/stan_math/stan/math/prim/scal/fun/inc_beta.hpp | f113759371107ad13f5eef3eaf4454e15cd8f44c | [
"Unlicense",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | C++ | false | false | 372 | hpp | inc_beta.hpp | #ifndef STAN_MATH_PRIM_SCAL_FUN_INC_BETA_HPP
#define STAN_MATH_PRIM_SCAL_FUN_INC_BETA_HPP
#include <boost/math/special_functions/beta.hpp>
namespace stan {
namespace math {
inline double inc_beta(double a,
double b,
double x) {
using boost::math::ibet... |
8672c363571bbf8a6425c47b4a2798ad338c316d | 17c9d963215bf630b22f1a36e05880c0938719c9 | /BOJ 1100.cpp | b06b4d193183647fb2102a529f45f572cd5d0bdf | [] | no_license | Jae-Yeon/ProblemSolving | 5f099ad7546c491f9fc24f828f735727c8aee4ce | 840e7017798cd5d8d9d1a0e96796d526021bbb1f | refs/heads/master | 2023-04-14T00:14:57.288770 | 2023-04-09T14:43:56 | 2023-04-09T14:43:56 | 128,633,772 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 535 | cpp | BOJ 1100.cpp | //백준 온라인 저지 1100번 하얀
#include <iostream>
#include <string>
using namespace std;
int main() {
string k;
int cnt = 0;
for (int i = 0; i < 8; i++)//줄 번호
{
cin >> k;
for (int j = 0; j < 8; j++)//인덱스 번호
if (k[j] == 'F' && (j + 1) % 2 == 1 && (i + 1) % 2 == 1) // 홀수번째 문자열의 홀수번째 인덱스는 흰색
cnt++;
else if (k[j]... |
428a842b6cbd381e7e260df8a42d58095681e46a | b3870ebc978490962188051fe8f04c8f29414915 | /Hash/Group_Anagrams.cpp | 96a9c0ab066648a127f1c1579d30bf768e3b5285 | [] | no_license | Tonyxin/Leetcode | 985eab75d5cdb95f6fdfea6c6993f80e06c9cfc4 | abfcd19c64f997467f91b15d07f1fe390cdc66c7 | refs/heads/master | 2020-07-24T14:24:43.456450 | 2017-03-30T07:58:32 | 2017-03-30T07:58:32 | 73,786,341 | 0 | 0 | null | 2016-11-15T07:26:24 | 2016-11-15T07:08:53 | null | GB18030 | C++ | false | false | 779 | cpp | Group_Anagrams.cpp | /*
问题描述:
给一些string,将string中所用字母相同的组成一组
For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"],
Return:
[
["ate", "eat","tea"],
["nat","tan"],
["bat"]
]
解决方法:
排序是王道!
对每个string按字母排序,建立string→vector<string>哈希映射
*/
class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
vector<vect... |
41bbf74bcc30dd2072ab420afb499ec5a171e0f4 | 0f15ce90bb2a457607335ed3f5ec7bf4608c5ad8 | /Game/graphics/skinModel/SkinModelRender.cpp | 7306dc87adc3a7aaf629b3546bfc524efb62671f | [] | no_license | Takahashi0213/rengame | 85e4ae04cd752bde8d7ae93b07cb768b0655de13 | fd0e51d18e02a031123b5289e9dfaa808bf25618 | refs/heads/master | 2021-07-05T01:48:29.611026 | 2020-12-08T01:07:00 | 2020-12-08T01:07:00 | 209,469,267 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 5,638 | cpp | SkinModelRender.cpp | #include "stdafx.h"
#include "SkinModelRender.h"
SkinModelRender::SkinModelRender()
{
//スキンモデルサポーターにアドレスを渡しておく
m_skinModelSupporter.SkinModelRenderSetting(this);
}
SkinModelRender::~SkinModelRender()
{
}
/// <summary>
/// 初期化する
/// </summary>
/// <param name="filePath">モデルのファイルパス</param>
void SkinModelRender::Mo... |
4489d577ab934f77ae746dc40e14ee594afb1654 | e55b77146fb0e753ec0b16e65bc778bddbdcbfa5 | /src/common/JsonH5.cpp | fcccdf1dc5a8d8ec935f70ee424f2ce5ebc53e82 | [
"BSD-2-Clause"
] | permissive | ess-dmsc/events-nmx-classify | fe5ad09732b300d716d8d529542a20da7f819e59 | d706105e2462fa881aa4642ef2fb0916d51d727e | refs/heads/master | 2021-01-18T13:11:55.778891 | 2020-06-10T12:16:51 | 2020-06-10T12:16:51 | 80,731,730 | 1 | 0 | null | 2017-10-15T14:45:07 | 2017-02-02T14:17:43 | C++ | UTF-8 | C++ | false | false | 764 | cpp | JsonH5.cpp | #include "JsonH5.h"
namespace H5CC
{
void to_json(json& j, const Enum<int16_t>& e)
{
j["___choice"] = e.val();
std::multimap<std::string, int16_t> map;
for (auto a : e.options())
map.insert({a.second, a.first});
j["___options"] = json(map);
}
void from_json(const json& j, Enum<int16_t>& e)
{
auto o = j... |
86796fb6d73c480789674aa575d825be14a69b70 | 6e8356b60b4d8ee19187a508363fc17d775de883 | /bsdrawscales.cpp | 8d356e338a9acd7a3db3a8cab90ca9d325290b94 | [
"Apache-2.0"
] | permissive | elijivp/bsdraw | b4d171c01a9da5b627030faa9a0b0cc5ae4600aa | ef92ee59c881e3624a4ef3fa671d4c398999b2f8 | refs/heads/master | 2022-10-20T21:41:31.162481 | 2022-10-09T11:11:34 | 2022-10-09T11:11:34 | 164,239,962 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 196,515 | cpp | bsdrawscales.cpp | /// This file contains special class who describes Bars around bsdraws
/// Each Bar, or margin, allow you to locate scales, labels, lines, etc.. near bsdraw
/// Each Bar is a mini layout. He eats in one turn two special interfaces:
/// - MarginElement for place and draw
/// - MEQWrapper for control
/// Background a... |
e30d2fd797eec1ccd73962c067ab0268ab0dd6b0 | 392aab7b6ac2a4612f5877152656dc794329200d | /include/gimgui/util/ref.hpp | 031abebe8e65c55c58af2c058822126771dd7fb9 | [
"MIT"
] | permissive | therocode/GimGui | 328e912efc50254ff07b6cd0ec8fee3102ee2702 | 039e70ef2cb34726ead867eb1bc102f6a53b0df5 | refs/heads/master | 2020-12-24T15:22:19.786557 | 2016-01-17T01:10:02 | 2016-01-17T01:10:02 | 30,752,141 | 22 | 5 | null | 2015-10-30T10:26:50 | 2015-02-13T10:42:35 | C++ | UTF-8 | C++ | false | false | 231 | hpp | ref.hpp | #pragma once
#include <functional>
namespace gim
{
template <typename Type>
using ref = std::reference_wrapper<Type>;
template <typename Type>
ref<Type> makeRef(Type& value);
#include <gimgui/util/ref.inl>
}
|
ed4a6b21e5f5883bbd42a28bc816b8eadea110c6 | 52cf7c2c95ae5d1af7ab94a99f2cc1c4855ad038 | /main_controller/Scmd.cpp | 41aa3f4cd298c8806fe1fa79094d418a58a341f0 | [] | no_license | masakik/tt-robot | 05f3bb6fbd8bd07e91c33cde033cf87fcf136ac8 | 7ac96925b39476ba0a9bb81d7e858ba61be8d97e | refs/heads/main | 2023-04-23T08:08:07.809712 | 2021-05-07T14:17:27 | 2021-05-07T14:17:27 | 323,345,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,261 | cpp | Scmd.cpp | #include "Scmd.h"
#include "Arduino.h"
#include "Cmd.h"
void sCmdSetup(Stream *str) {
cmdInit(str);
cmdAdd("help", cmdHelp);
cmdAdd("pgm", cmdProgram);
cmdAdd("freq", cmdFreq);
cmdAdd("pause", cmdFeederPause);
cmdAdd("cont", cmdFeederCont);
cmdAdd("status", cmdStatus);
cmdAdd("top", cmdTopSpin);
cmdA... |
183cb7a55f0b302f25818ca1154a27dd48697943 | 64c7b1fa2debeffa693fb6d900e896ddcc34777e | /NCTUns-6.0/src/nctuns/module/wimax/mac/connection.cc | c21fff3854666b0c0a9589554922ebd0a27b234c | [
"LicenseRef-scancode-other-permissive"
] | permissive | knev/nctuns | 6134250cac2c9430c63456b9f3000ab071538563 | 1da9012704c2cf88342c6229d1cf7ffea196d727 | refs/heads/master | 2021-01-18T15:02:36.747902 | 2015-04-24T04:51:27 | 2015-04-24T04:51:27 | 34,366,952 | 0 | 0 | null | 2015-04-22T03:42:16 | 2015-04-22T03:42:16 | null | UTF-8 | C++ | false | false | 17,836 | cc | connection.cc | /*
* Copyright (c) from 2000 to 2009
*
* Network and System Laboratory
* Department of Computer Science
* College of Computer Science
* National Chiao Tung University, Taiwan
* All Rights Reserved.
*
* This source code file is part of the NCTUns 6.0 network simulator.
*
* Permission to use, copy, modify,... |
cff0419194dcf2708672ffbbb6819949cb8f0655 | 5671c626ee367c9aacb909cd76a06d2fadf941e2 | /frameworks/core/components/tab_bar/tab_bar_item_element.h | abd53ffe63a4789688b97fbafeedf945178889f6 | [
"Apache-2.0"
] | permissive | openharmony/ace_ace_engine | fa3f2abad9866bbb329524fb039fa89dd9517592 | c9be21d0e8cb9662d5f4f93184fdfdb538c9d4e1 | refs/heads/master | 2022-07-21T19:32:59.377634 | 2022-05-06T11:18:20 | 2022-05-06T11:18:20 | 400,083,641 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,053 | h | tab_bar_item_element.h | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
de540bbe3d1c9ef3cade7e03400088112e189673 | a7e98509498780da952ed12a9531a802fbaa1e46 | /Bank.h | b2258d3af8f46b0b7b21ecb76aceaa04566a1829 | [] | no_license | wzr0008/Self-bookkeeping-via-C- | 9ac078dee877b45e9049e7fba11fd70d722cf66f | 34f32f3588929c57129a10b4efc6e22698255110 | refs/heads/main | 2023-04-18T18:20:12.929689 | 2021-05-08T01:57:07 | 2021-05-08T01:57:07 | 365,336,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | h | Bank.h | //
// Bank.h
// Wallet
//
// Created by rui wang on 4/26/21.
//
#ifndef Bank_h
#define Bank_h
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <vector>
#include <map>
#include "Account.h"
using namespace std;
class Bank:public Account{
private:
map<long,Account> accounts;
public:
Bank();
... |
8dd055571cd5b7ec30a539e8950aec3ed783e756 | d5f95edd4568b07e474cc9b0e7a8ef57ee471153 | /Day 9 (Recursion)/kth_permutation_sequence.cpp | 8cf05868e0923890fc856396bfcb127028fb2459 | [] | no_license | Aditya2150/SDE-Questions | c712208d5f4a774bb686af8f43ce9cfe31c21ddf | 094d916d4608ed8d61173310e1ed559fe871805d | refs/heads/main | 2023-06-21T16:40:48.370833 | 2021-07-27T10:29:29 | 2021-07-27T10:29:29 | 378,234,343 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | cpp | kth_permutation_sequence.cpp | // The set [1, 2, 3, ..., n] contains a total of n! unique permutations.
// By listing and labeling all of the permutations in order, we get the following sequence for n = 3:
// "123"
// "132"
// "213"
// "231"
// "312"
// "321"
// Given n and k, return the kth permutation sequence.
// Recursive (BAD Complexity)
cla... |
47d78b510d4faccbaf875be2865997eba808370e | 2ed4b541c28a9621593df04c2ee3e9368b6304a7 | /src/vulkan/vulkan_loader.cpp | 17e9b629c4ab3a187acaa4edaf359e2616b9a4a3 | [
"LicenseRef-scancode-warranty-disclaimer",
"Zlib"
] | permissive | doitsujin/dxvk | ab07647fed6f6e960d225872fb752c572d7c5b0e | bbd1d84cd0e0a083a4d162c7207f81cf6604940d | refs/heads/master | 2023-08-28T05:22:37.602631 | 2023-08-26T07:24:09 | 2023-08-26T08:43:42 | 106,558,568 | 11,382 | 1,055 | Zlib | 2023-09-13T21:29:26 | 2017-10-11T13:34:29 | C++ | UTF-8 | C++ | false | false | 3,003 | cpp | vulkan_loader.cpp | #include <tuple>
#include "vulkan_loader.h"
#include "../util/log/log.h"
#include "../util/util_string.h"
#include "../util/util_win32_compat.h"
namespace dxvk::vk {
static std::pair<HMODULE, PFN_vkGetInstanceProcAddr> loadVulkanLibrary() {
static const std::array<const char*, 2> dllNames = {{
#ifdef _WIN32
... |
2300509c1e3c34bc0c7d62e26650f4a4ff8e42ba | 6abb92d99ff4218866eafab64390653addbf0d64 | /AtCoder/othercontests/old/nCircles.cpp | ecebd67bab4447a467f784cccb81649cd2b90ed3 | [] | no_license | Johannyjm/c-pro | 38a7b81aff872b2246e5c63d6e49ef3dfb0789ae | 770f2ac419b31bb0d47c4ee93c717c0c98c1d97d | refs/heads/main | 2023-08-18T01:02:23.761499 | 2023-08-07T15:13:58 | 2023-08-07T15:13:58 | 217,938,272 | 0 | 0 | null | 2023-06-25T15:11:37 | 2019-10-28T00:51:09 | C++ | UTF-8 | C++ | false | false | 433 | cpp | nCircles.cpp | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n;
cin >> n;
int r[n];
rep(i, n) cin >> r[i];
sort(r, r+n, greater<int>());
double res = 0.;
rep(i, n... |
b12d785d3d35f7c2f103a57ae8ec499308e102bd | 4a77516add7976e3623089ce2b38b647b5b68d16 | /ONP_Codechef.cpp | f56fb66c56b01332da5bdd97ebd364193a21c259 | [] | no_license | hardik20sharma/Codechef | 251e1fc47e263efb451e39453ce3cf5a28dd31d4 | c6d6d86417251c9177d23ae38517c2f78eb49b08 | refs/heads/master | 2023-05-25T11:10:56.016697 | 2021-06-14T17:18:49 | 2021-06-14T17:18:49 | 257,281,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,365 | cpp | ONP_Codechef.cpp | #include<bits/stdc++.h>
using namespace std;
int precedence(char c)
{
if(c == '^') return 3;
else if(c == '*' || c == '/') return 2;
else if(c == '+' || c == '-') return 1;
else return -1;
}
int main()
{
ios::sync_with_stdio(false); ci... |
ee96a4e4515f87cd7a0609b370b1708d9ed7e6dc | dbbe9a044221f1c7677e1995fb663761e692329b | /sql2rollout/extract_rollouts.cpp | 1bf15ed63ea4e0e67f8719b17955e686fae062b5 | [
"MIT"
] | permissive | cepsdev/rollAut | 9a46ab3fed7812b02d0b551955dfa141ebe1c72c | ba1b014e21f7dfc3d0d5c74fd051e65ae74a6a36 | refs/heads/main | 2023-05-31T18:26:35.113998 | 2021-07-08T01:47:09 | 2021-07-08T01:47:09 | 382,706,254 | 0 | 0 | null | 2021-07-03T20:55:11 | 2021-07-03T20:43:35 | null | UTF-8 | C++ | false | false | 4,462 | cpp | extract_rollouts.cpp | /*
MIT License
Copyright (c) 2021 Tomas Prerovsky
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... |
50bcd84d6c3a15c8e085144e8fe801df62ba3f62 | 19d6752c856a7a227d0bedee2456eec92a522409 | /mainboard/firmware/buzzer.cpp | 42d8faeae81b1e7950777675f8847ac6e641214c | [] | no_license | Rhoban/SSL-Electronics | e9c77e4a24b22ee704a4f7a28bb3ea7f41bf9a7c | 283b7664574c2be35382687d3fd5dec2b5758640 | refs/heads/master | 2022-11-21T16:10:27.577835 | 2020-03-13T14:43:35 | 2020-03-13T14:43:35 | 108,429,172 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,333 | cpp | buzzer.cpp | #include <stdlib.h>
#include <wirish/wirish.h>
#include <terminal.h>
#include "hardware.h"
#include "watchdog.h"
#include "buzzer.h"
struct buzzer_note {
unsigned int freq;
unsigned int duration;
};
// Config
HardwareTimer timer(BUZZER_TIMER);
// Partitions
// static struct buzzer_note beethoven_bo... |
e66039b06806073376b02593f764992aa0e50314 | 64d9ab766e87365dc3ca48d491f7b939aae8d0bf | /minspanningtree/PairingHeap.hpp | 93e645783f3ee9683bcc7e95353e3b1626f8f151 | [] | no_license | danstiner/college-assignments | 021741052ed354c178368afc45353e104269ee74 | 750e4c36d36f2c49df710e42333880997672f2ef | refs/heads/master | 2016-09-10T18:29:02.550679 | 2012-03-08T06:42:22 | 2012-03-08T06:42:22 | 3,309,926 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,297 | hpp | PairingHeap.hpp | /*
* PairingHeap.h
*
* Created on: Feb 15, 2012
* Author: stiner
*/
#ifndef PAIRINGHEAP_H_
#define PAIRINGHEAP_H_
#include <stdlib.h>
#include <list>
namespace danielstiner
{
template<typename T>
class PairingHeap
{
private:
class Heap
{
public:
Heap(T *value);
std::list<Heap*> subheaps;
T ... |
ed718357aaea34caa1532e3759249eb3bc3f4a8f | 046acb997ee74ee28e10f0451e15638299185a1c | /W2ENT_QT/Translator.h | 06e9406bb8c63dd608ffc632e8b2556f2cc4789c | [] | no_license | JLouis-B/RedTools | 845bb94de1ebea65306bd4eaadd61a69390e7158 | e6e2c4e613cbbafdbe51732ecbb30a37390374b1 | refs/heads/master | 2022-11-16T01:01:42.685006 | 2022-11-06T22:24:14 | 2022-11-06T22:24:14 | 115,371,143 | 73 | 12 | null | 2020-11-27T00:06:37 | 2017-12-26T00:41:13 | C++ | UTF-8 | C++ | false | false | 380 | h | Translator.h | #ifndef TRANSLATOR_H
#define TRANSLATOR_H
#include <QWidget>
class Translator
{
static QWidget* _parent;
static QMap<QString, QString> _trad;
static QMap<QString, QString> loadLanguage(QString file);
public:
static void setParentWidget(QWidget *parent);
static QString get(QString element);
st... |
90e256ad6f4f71045946c67e57394a2dcda9868a | 6ae8dac71f401abe5393a26e82f5a9747ad4df0e | /ofxCvMarkers/lib/libdtouch/list.h | f3364f162d135d01891386f00e624ebb4fa93ad8 | [] | no_license | connectthefuture/ofxPrimes | 4565c2df0ded2b8315e08d7c98f4e29755fd19ca | 8acd84cdcb04ed9cdb2953ed9b1d573b4bb6e4bc | refs/heads/master | 2021-01-19T22:14:46.565208 | 2010-02-11T22:22:46 | 2010-02-11T22:22:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,881 | h | list.h | /***************************************************************************
list.h - simple linked list defined with a template
-------------------
begin : Mon Aug 26 2002
copyright : (C) 2002 by Enrico Costanza
email : e.cos... |
74a0910a21eb6b3b201783612892a887e992a43c | 48c9f19149c93274f4625dbd3d5483af169c8bc4 | /ver_development/Engine_System/BaseMessageDispatcher.cpp | 3635f9bc2019ed5fde5d44c173abd9b0717f0e50 | [] | no_license | freean2468/scrap_irons | 6a39efb9a8bc2a8f3ca1a0de4faf7f2a4ea35a3b | b4c19fcc03958fe185e9f446af2d4d85e8228bcd | refs/heads/main | 2023-01-31T16:49:24.987795 | 2020-12-14T11:00:37 | 2020-12-14T11:00:37 | 319,682,577 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 2,016 | cpp | BaseMessageDispatcher.cpp | #include "../BaseHeader.h"
// 이 메소드는 하나의 엔티티가 다른 엔티티에게 메시지를 보낼 때 호출된다.
void CBaseMessageDispatcher::DispatchMessage(double delay, int sender, int receiver, int msg, void* ExtraInfo){
// 메시지 발신자와 수신자를 가리키는 포인터를 얻어낸다.
CBaseGameEntity* pSender = EntityDB->GetEntityFromID(sender);
CBaseGameEntity* pReceiver = EntityDB-... |
5455f94f02d0cbfe585750a3e7aed53f9e1fe6af | aca88d17175ee52d95cfd89ac65f2915c479aad1 | /Sample03/MyEnumerableGenerator.h | 9d39a7ae4b9afdaa1eaf33d51344a51ccbb7549d | [] | no_license | urasandesu/CppTroll | 2075caae5c98da9144417dac2d845f852b1d1d69 | 050b84c810b7b3649ccf304e3c1c99dd9ec731d2 | refs/heads/master | 2021-01-22T11:37:25.537094 | 2012-02-26T03:16:01 | 2012-02-26T03:16:01 | 1,664,754 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,365 | h | MyEnumerableGenerator.h | // MyEnumerableGenerator.h : CMyEnumerableGenerator の宣言
#pragma once
#include "resource.h" // メイン シンボル
#include "Sample03_i.h"
#if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA)
#error "DCOM の完全サポートを含んでいない Windows Mobile プラットフォームのような Windows CE プラットフォーム... |
3f03138df72ffb3fb7a83da05501512ee0fa4b43 | d93159d0784fc489a5066d3ee592e6c9563b228b | /HLTrigger/Timer/plugins/ThroughputService.cc | 84b07625a690dddd3277cb3690daaf8f5f9e57bd | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | C++ | false | false | 4,483 | cc | ThroughputService.cc | // C++ headers
#include <algorithm>
#include <chrono>
// boost headers
#include <boost/format.hpp>
// CMSSW headers
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
#include "ThroughputService.h"
// describe the module's configuration
void ThroughputService::fil... |
3d6fb456786f9609a757cb81eea59d06023f64ff | 8fb2e531cde0190c75d9967dcabeb1313a637763 | /maths/kids and table.cpp | e0e46e2b1460fc3d8afe033597da30f69ec152e6 | [] | no_license | ayushsrivastav0811/30DaysDS-Algo | 9a41a97f884de6399a3fa09a044028834b3449fa | 7c546318afec4956ae139d9f5a5ca0fa1dbecec4 | refs/heads/main | 2023-05-07T18:49:31.844730 | 2021-05-16T18:07:08 | 2021-05-16T18:07:08 | 366,803,794 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cpp | kids and table.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
int main()
{
int i,n;
cin>>n;
for(i=1;i<=10;i++)
{
cout<<n*i;
if(i<10)
cout<<" -> ";
}
return 0;
}
|
52f7dd26d21ef797b8323748d483cecf3006f237 | 27eb71e2fedf5668f73e4e10fec1d2b6e856871a | /VoidEngine/GeneratedFiles/ui_ProjectDialog.h | 133184b2808adc1c7628c7e2a38b74b77970f9b7 | [
"MIT"
] | permissive | mel-florance/VoidEngine | 520981a12b1ec86f77b5566c1a04e210921e6341 | 997f330fc50a064048c7e5a42ae06ccf0e0364bf | refs/heads/master | 2023-07-22T13:10:30.559264 | 2018-11-30T07:38:59 | 2018-11-30T07:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,739 | h | ui_ProjectDialog.h | /********************************************************************************
** Form generated from reading UI file 'ProjectDialog.ui'
**
** Created by: Qt User Interface Compiler version 5.11.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
************************************... |
5d12954f5dc0028ce7f1d000283750f91adba768 | 9eacc869fa1d8f8b2a2dfb6c3dba613e41992f72 | /external/recovery/encryptedfs_provisioning.c | 601c817de0826a20a82f1f28feb99330607a687c | [
"Apache-2.0"
] | permissive | hyperkin-game/hyperkin-gb | 9093c4e29212924cdbb7492e7e13002105f33801 | e333185e8a2a4f5c90e84dca515e335e62565a3b | refs/heads/main | 2023-04-27T18:17:09.675136 | 2021-05-14T10:20:59 | 2021-05-14T10:20:59 | 331,823,448 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,958 | c | encryptedfs_provisioning.c | /*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
deb453f61f75fbe12b4124843e0591c31e93c113 | 1fb404b9ee72f1fe27c7c4166b53d31d156edc93 | /src/main.cpp | 844be5a48f4b607b74ed0506d2e8b3e7416f464d | [] | no_license | cconstantine/pixo_teensy | b2174eaa42682ee8bee12aecf637478c534f84a5 | 417b4dad4c3fe73754043de71d3f7cb63d288eec | refs/heads/master | 2021-01-13T02:42:03.312289 | 2016-12-22T23:55:51 | 2016-12-22T23:55:51 | 77,183,349 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | main.cpp | #include "WProgram.h"
extern "C" int main(void)
{
pinMode(13, OUTPUT);
while (1) {
static unsigned long lastTick = millis();
unsigned long now = millis();
if (lastTick + 1000 < now) {
Serial.write("Ping\n");
lastTick += 1000;
static bool high;
digitalWriteFast(13, (high = !high )?... |
e8305be86affab08603d178bc925640001d0def9 | 976c9b41eae22eba0f3bf1b7f202e9d2612a424d | /Solver.cpp | 66aa18619e9f960b4488ca53dce15a0384e430d6 | [] | no_license | brandon9772/naongramsBackTrack | 08debff195576c6fe2e59e47481aa276b1e3926b | 50618897a37b278c14e8b0def1e99b71a07cb406 | refs/heads/master | 2020-07-30T10:07:29.927785 | 2019-09-22T22:23:09 | 2019-09-22T22:23:09 | 210,185,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,109 | cpp | Solver.cpp | #include "Solver.h"
#include <iostream>
Solver::Solver() {}
void Solver::updateNanogramsRemove(Nanograms* nanograms)
{
unsigned short int thisConditionSize = nanograms->rowCondition.at(currentRowIndex).at(currentRowConditionIndex);
for (unsigned short int i = currentRowConditionStart; i < currentRowConditionStart + ... |
2aa577fe958a5291a7cabe0086464b5e5947720e | 392223bbc410168ba4e33845ebf945b94996a5b8 | /global.h | fc59725ac7ea64c202d1be4a6372c7586f217fff | [] | no_license | jwes-dev/CPP-Switching-Server-Library | 5687f51a5177d33218b392d69d698addd3b9e644 | 66e2e317d25761325b55780ad1805605c4c852a4 | refs/heads/master | 2020-04-16T03:47:42.585796 | 2019-01-11T13:14:31 | 2019-01-11T13:14:31 | 165,245,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | h | global.h | // common
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
using namespace std;
// server
#include <sys/socket.h>
#include <netinet/in.h>
// app includes
#include "Models/models.h"
#include "Includes/references.h"
char* global()
{
return (char*)"Global Header File V1... |
5f6c91b4d89fd614620bf6560833b7f8fc0fa81e | 7dffb0c9b086f1f1bd058377c56d5dc9b1ee92e1 | /src/main.cpp | 42fc0168cb13a1194e7db62d1b38b7105e88c736 | [] | no_license | chrismtaormino/Recipes_App | 8b80eaf5c1e82d8be5947a25df484bd6ef11244e | c83aa0f798640e3a2c09cddb9a0b1305f138e4ed | refs/heads/master | 2020-04-21T05:53:49.996461 | 2019-02-06T04:10:55 | 2019-02-06T04:10:55 | 169,352,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | cpp | main.cpp | // Main function for the Recipes app
#include <string>
#include <iostream>
using namespace std;
int main()
{
cout << "THIS IS THE APP";
return 0;
} |
856b390c78c5a0d8d9d398376afca5f38372b857 | 2dfc7d58e05dce450514cb55dacf965b7b630685 | /Socket_Server/Socket_Server/thread_create_1.cpp | 48110d39fe690de66d9f891fbbe00ce2830f10bc | [] | no_license | juhyupLee/Socket-Programming | bcedb8c0f023576a6a79393bdadeb839a380b46c | 61712968d5a9974350314030d838543eb2d5bad3 | refs/heads/master | 2022-12-21T01:45:28.537149 | 2020-10-05T16:38:11 | 2020-10-05T16:38:11 | 216,176,788 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 656 | cpp | thread_create_1.cpp | #include "thread_create_1.h"
#include <process.h>
#include <Windows.h>
#include <stdio.h>
unsigned int WINAPI thread1(void* argc);
int Thread_Create_1(int argc, char* argv[])
{
HANDLE hThread;
unsigned threadID;
int param = 5;
hThread =(HANDLE) _beginthreadex(nullptr, 0, thread1, (void*)¶m, 0, (unsigned i... |
64c1ee2ee7ab14bd8c15814bc5db10484df2725f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /net/base/file_stream_unittest.cc | ef6f93008fdafcb2929f71be197316462bf3a4e4 | [
"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 | 30,912 | cc | file_stream_unittest.cc | // Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/file_stream.h"
#include <string>
#include <utility>
#include "base/files/file.h"
#include "base/files/file_util.h"
#include "base/functional/bind.h"
#inclu... |
4674ac67cb84ea84c6afbec3f25003f441decd5a | 99e7b44cf4e1e5f3c15a6ec21ffff52aa697a6c0 | /RootExam/create_data.cpp | e71d8a933a765c2e6ff9b7306f4c1ae6cac30998 | [] | no_license | Catofes/RootScript | d0d158749a2bcec3ba765698b1246bf46feefe3e | 60fe080ef201d9df54fae698ec7580b390239710 | refs/heads/master | 2021-01-17T20:50:44.154119 | 2018-05-21T11:36:38 | 2018-05-21T11:36:38 | 62,697,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 767 | cpp | create_data.cpp | #include <TTree.h>
#include <TFile.h>
#include <TRandom.h>
#include <iostream>
using namespace std;
int main()
{
TFile *f = new TFile("input_data.root", "RECREATE");
TTree *t = new TTree("Data", "Data");
vector<double> x, y, z, weight;
cout << "a";
t->Branch("x", &x);
t->Branch("y", &y);
t... |
5c66aa236b3da1825436adbcfd46dab7bdb544fa | 71f0bc221632ca165ab173ce58e59cda2095e9a3 | /Lista 9 (PONTEIROS)/Exercicio_19.cpp | 8f5fedb57a9cbbafc932ca5111c59bc5adbff4a7 | [] | no_license | GuAntunes/excercises-language-C | 696a3a40c7e98aba80e1d8ae68e49158cbb6c3d1 | e76b70ee1965b8a3d773744a03633a8e1131ee38 | refs/heads/master | 2022-04-17T21:18:03.444720 | 2020-04-17T00:35:42 | 2020-04-17T00:35:42 | 256,359,742 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 661 | cpp | Exercicio_19.cpp | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <iostream>
using namespace std;
void func(int *n, int *m, int *vezes){
for(int cont=0;cont<9;cont++){
if(cont==0){
*m=n[cont];
*vezes=1;
continue;
}
if(*m==n[cont]){
*vezes = *vezes + 1;
continue;
}
... |
7aca40cbde10aca764f75cba5ea592a97085bef2 | c293843012465429aab76bd6e69849168c66f2b1 | /Scripting/scriptSigning.cpp | bdc03d9a1d3b7375bd0e3f4e8aa5a77d18b8ff7a | [] | no_license | evoskuil/LibbitcoinTutorial | 8854aa7994420b8212a3e19081d2ccafce47a38a | f90711b9920a5648e2b560c11f57ee5806884c65 | refs/heads/master | 2022-03-08T02:42:46.369070 | 2017-04-26T07:50:15 | 2017-04-26T07:50:15 | 90,121,200 | 0 | 3 | null | 2017-05-03T07:33:17 | 2017-05-03T07:33:17 | null | UTF-8 | C++ | false | false | 3,502 | cpp | scriptSigning.cpp | #include <bitcoin/bitcoin.hpp>
#include "HD_walletTESTNET.cpp"
#include <string.h>
using namespace bc;
using namespace bc::wallet;
using namespace bc::machine;
using namespace bc::chain;
int main()
{
std::string Mnemonic1 = "";
std::string Mnemonic2 = "";
std::string Mnemonic3 = "";
HD_Wallet wallet1(split(Mne... |
4dbd7025a23ac287d387c363e012e9441e016613 | 485591f8c6a20555f3246e38c0e4c79bf063bdb4 | /Source/AlphaEngine/AlphaEngine/Graphics3D/Scene/CameraNode.h | ea901442aaf725b42f0bfc089a32e4d2e55a7bde | [] | no_license | Aidanv1/Alpha-GameEngine | 254104600ec0a8db5df25785dc18b15404322052 | d8345435def0dc8169c136c19929be3618082452 | refs/heads/master | 2023-09-04T16:29:10.608739 | 2021-11-03T19:53:11 | 2021-11-03T19:53:11 | 424,164,606 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,642 | h | CameraNode.h | #pragma once
#include "../../AlphaStd.h"
#include "SceneNode.h"
#include "../../EventManager/EventManager.h"
#include "../GraphicsEvents.h"
#include "../../Actor/Components/GraphicsComponent.h"
#include "../../Actor/RoleSystem.h"
#include "../Geometry/Geometry.h"
//==============================================... |
dd39209769551382f470697ed11772255fbff6d5 | 0ec609ad68a2eae91069d5a9817e4a02c537c021 | /Modules/Learning/DempsterShafer/test/otbMassOfBeliefDSApplied.cxx | e5cf242f77df25d0f2ca21f8e0759da58b70fe16 | [
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"AGPL-3.0-only",
"GPL-3.0-only",
"MIT",
"LGPL-3.0-only",
"Zlib",
"BSD-3-Clause",
"CECILL-B",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Pandinosaurus/OTB | 895ff78d0dab62c68f3ef903d383b82de29fd29d | d74ab47d4308591db4ed5a5ea3b820cef73a39fe | refs/heads/develop | 2023-07-20T12:31:53.392294 | 2023-07-19T08:37:29 | 2023-07-19T08:37:29 | 122,958,025 | 2 | 0 | Apache-2.0 | 2023-07-20T05:45:27 | 2018-02-26T11:06:04 | GLSL | UTF-8 | C++ | false | false | 3,797 | cxx | otbMassOfBeliefDSApplied.cxx | /*
* Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of ... |
2a9a660727eec92a96b49ac4a8fa56115a13c190 | 6d7f632f69405270380159f856e463b2a0efc0f3 | /dipcc/dipcc/tests/consts.h | bec43b454a4a388bec0da5730c64d21b352b82ae | [
"MIT"
] | permissive | codeaudit/diplomacy_searchbot | e22061aa35cf9057cef5f84c30fa484148606209 | d212d380ecc5a724f2ec36c13dfef1202d8252cf | refs/heads/master | 2023-05-08T00:29:19.961607 | 2021-05-04T02:23:50 | 2021-05-28T00:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 229 | h | consts.h | /*
Copyright (c) Facebook, Inc. and its affiliates.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
#pragma once
namespace dipcc {} // namespace dipcc
|
c38644e7c6ab12a54b147b95b1ce8c40b0507254 | 3986006d95933a04ad41fe791a5c83c20c8c5ddb | /src/lib/functions/NativeFunction.cpp | 15aa33f0728bc6af01f673e143c07ba8622ee7db | [
"Apache-2.0"
] | permissive | FlightBlaze/Malix | b1305f8e898b82593a421b6b8d4e04b87b2a95e0 | 250425909e722f184eb5a838d1689a5fd6b7691d | refs/heads/master | 2020-06-04T00:04:14.724803 | 2019-06-10T06:44:18 | 2019-06-10T06:44:18 | 191,786,870 | 0 | 0 | null | 2019-06-13T15:16:54 | 2019-06-13T15:16:53 | null | UTF-8 | C++ | false | false | 201 | cpp | NativeFunction.cpp | #include "NativeFunction.h"
std::string NativeFunction::getName() {
return name;
}
Value NativeFunction::invoke(std::vector<Value> values) {
return (* function_ptr)(this, values, pointer);
}
|
2f1c3f102569877d8bf5b4d56ca2c7f1a3b312cd | 6f96b4781f22ca578544a4fff013c81047849694 | /Injected/Objects/GameObject.hpp | 4995d217a3ed0b13d58754d83dc558c2f7f8c18e | [] | no_license | LarryBotter/vanillaunlock | 1848a5bc2c882ec2fd90cdb7f958eeb587bb6e7f | 536ffff33062d069e72b42a06a92f9e39af2fadb | refs/heads/master | 2021-01-22T20:45:14.334392 | 2017-03-18T01:12:13 | 2017-03-18T01:12:13 | 85,355,174 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | hpp | GameObject.hpp | #pragma once
#include "Object.hpp"
class GameObject : public Object
{
public:
GameObject(int pointer) :Object(pointer) {}
auto CreatedBy(){ return GetDescriptor<uint64>(OBJECT_FIELD_CREATED_BY); }
auto Hooked() const { return *(byte*)(addr + 0x27C); }
auto DisplayId(){ return GetDescriptor<int>(GAMEOBJECT_DISPL... |
2e26b9a927c67b1c2551a952e24bb7088ca36a09 | 82164463fa9f99222697d1ceb326a44e5d30f2cb | /src/api_manager/service_control/aggregated.h | a4c2882cc8303fd217c49e18e6dc031f1cfa51b5 | [
"BSD-2-Clause"
] | permissive | cloudendpoints/esp | 3f845c516e4c1e39700ff4480e28a85237cce73f | 1b02c011f071a8d400dbbbc08b512700b69ae519 | refs/heads/master | 2023-08-13T05:41:39.003658 | 2023-06-23T16:00:57 | 2023-06-23T16:00:57 | 60,128,592 | 287 | 128 | BSD-2-Clause | 2023-06-21T22:16:50 | 2016-05-31T22:43:02 | C++ | UTF-8 | C++ | false | false | 7,222 | h | aggregated.h | /* Copyright (C) Extensible Service Proxy Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
329df3928ce8db278b151b185cfb50bbc74a4841 | f551f4cbfb15c31a23df37757094aada26409f51 | /include/voxel/voxelSpace.hpp | 2bff9dedc18c9f55c1a11f79e2c86ceab2370ef2 | [] | no_license | TheCandianVendingMachine/VulkanVoxelRenderer | 46434b84d938fe469a553ce37a50137b816c2b4b | 39a1a9e020fecc6c85f22e79f35589bb9adff0ce | refs/heads/master | 2023-02-08T16:44:50.137441 | 2020-12-26T11:52:34 | 2020-12-26T11:52:34 | 292,184,298 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,897 | hpp | voxelSpace.hpp | // voxelSpace.hpp
// Defines a space for a voxel subset.
#pragma once
#include "voxel/voxelChunk.hpp"
#include "graphics/vulkan/vulkanBuffer.hpp"
#include "graphics/vertexBuffer.hpp"
#include "graphics/indexBuffer.hpp"
#include "graphics/quad.hpp"
#include <glm/gtx/hash.hpp>
#include <glm/gtc/quaternion.hpp>
#include <... |
6037cf193588513284d51992aebccd0f6f2abba5 | 2249ea163713b21f14fdf8784ba3ef3c0b540d1a | /include/mockturtle/algorithms/resubstitution.hpp | e5cfecd623f5926ddca3240d891a75a802358d05 | [
"MIT"
] | permissive | lsils/mockturtle | 58c106fc957f17206e062b5428055778c68b4a69 | 82fce07b7204b14fc4c53fd35c284b7ea68f05fd | refs/heads/master | 2023-08-31T04:18:37.954364 | 2023-08-24T12:05:37 | 2023-08-24T12:05:37 | 131,001,448 | 159 | 80 | MIT | 2023-08-24T09:43:55 | 2018-04-25T12:15:49 | C++ | UTF-8 | C++ | false | false | 28,200 | hpp | resubstitution.hpp | /* mockturtle: C++ logic network library
* Copyright (C) 2018-2022 EPFL
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights... |
646864a84875d13589050874e4e6b953a5f579cc | 701c92b679d1d69d8eebcc6fbf13b970d86bcd78 | /datanode.cpp | 0104dbcc21ae9b5a9209907e924534c24386511f | [] | no_license | sun98/Mini-DFS | 2fcda1ed65323ba1f0bf470c0eda481e1c7a2c46 | a21ef819bb7072bfdf72cf134c93266c15e5bf05 | refs/heads/master | 2023-02-22T21:01:13.582849 | 2021-01-26T02:05:42 | 2021-01-26T02:05:42 | 332,942,202 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,586 | cpp | datanode.cpp | #include <thread>
#include <sys/stat.h>
#include <dirent.h>
#include <fstream>
#include <iostream>
#include <algorithm>
#include "datanode.h"
int chunkSize = 2 * 1024 * 1024;
DataServer::DataServer(const std::string &name) : name_(name), buf(nullptr), finish(true)
{
std::string cmd = "mkdir -p " + name_;
syst... |
e95fe53275115c4117dc235c62141a1492d59d52 | 71a780963dba464b2b62a661566e062b78c4eb3d | /gimage.cpp | 613602ac12526606c5400949588217162541c00f | [] | no_license | yodamaster/gimage | b3264e4e26ba28635d1fd7c0f3a725171a71404f | 9954de1a4f571ab3325f60b7c7684207d05e9ace | refs/heads/master | 2020-03-19T21:51:09.319177 | 2017-12-24T16:16:05 | 2017-12-24T16:16:05 | 136,952,150 | 1 | 0 | null | 2018-06-11T16:23:38 | 2018-06-11T16:23:38 | null | UTF-8 | C++ | false | false | 78,453 | cpp | gimage.cpp |
#include "gimage/gimage.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <exception>
#include <algorithm>
#include <sstream>
#include <omp.h>
#include <exception>
#include "rawimage.h"
#include "jpegimage.h"
#include "tiffimage.h"
#include "gimage/strutil.h"
... |
2eecf1f40937713069b481be7c4fb89e3e18cf0a | 901512f73a7ffc83849c787ab44376520a713ac1 | /narb-sw/rce/pcen_test.hh | ae82f5903a3c5410380e78e8de200ccda499bf46 | [
"BSD-3-Clause"
] | permissive | penguin2005/NARB | 3e33316d3f378c2f9f1a660c917bdd42cac88d34 | a2fd5e01904581f91f4558f0f41ad52bbcd1ce82 | refs/heads/master | 2020-06-23T02:19:24.434895 | 2010-02-04T22:07:55 | 2010-02-04T22:07:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,838 | hh | pcen_test.hh | /*
* Copyright (c) 2008
* DRAGON Project.
* University of Southern California/Information Sciences Institute.
* All rights reserved.
*
* Created by Xi Yang 2004-2008
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ar... |
ba88a1292c3d5fa932b48f86d62a469ef07c8603 | 10153439249767c3b4e9d2e0a7f19d0d28cbfeb0 | /Codechef/Easy/SUBINC.cpp | 251e316abc86f4835c0f6e77654257a0853a3685 | [] | no_license | Aarth-Tandel/DataStructures | d1adc6db4e7e960b7ede121d2a3f8bfdb3cc2ae9 | ea35d32b615bf7db48a535e3f4570585bf009079 | refs/heads/master | 2021-01-01T20:13:40.841133 | 2018-05-12T05:40:13 | 2018-05-12T05:40:13 | 98,791,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | SUBINC.cpp | #include <iostream>
#include <algorithm>
using namespace std;
typedef long long int lli;
lli fact(lli j)
{
if(j==2) return 1;
if(j<2) return 0;
return (j*(j-1))/2;
}
int main()
{
lli t;
cin>>t;
while(t--){
lli n,count=0,j=0;
cin>>n;
count=n;
int a[n];
for(lli i=0;i<n;i... |
9912d46ca3059f86c80e08490d4774564aa08042 | 9b5312cf92ed6ed2fff4eea02a4cb3fba0164ba5 | /QueryMatcher/QueryMatcher.cpp | 2ce709f45a0e20c770371d3c1f2acc3b1bb7dcff | [] | no_license | samueltenka/SNCT | 2244c70c34435e1da5f5f5e28840d76cf9a5c310 | 3b8667d231a27b217e92c05450dbb0a05e839ea9 | refs/heads/master | 2016-09-05T13:13:46.480628 | 2014-12-11T19:09:48 | 2014-12-11T19:09:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | QueryMatcher.cpp | #include "QueryMatcher.h"
#include "TextScanner.h"""
list<string> find_relevant_sentences(string knowledgebase, list<string> queries) {
list<int> match_indices = locate_mentions_of(knowledgebase, queries);
return expand_to_surrounding_sentences(knowledgebase, match_indices);
}
string generate_consensus(list<st... |
5fa672259f5944eac2886e41cbfc22eeef75a922 | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/squid/old_hunk_5572.cpp | 146f3e5ec3d943db3b873be60e5faace7fcf9ce3 | [] | 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 | 61 | cpp | old_hunk_5572.cpp | statCounter.aborted_requests++;
storeAbort(entry);
}
|
d9f0f34e688e6fe0531f6f101e1e59bcfaddc031 | 751bb2f0742a4c1651e8c6a044d0e6fe18abebc0 | /basic algo/sort_stack.cpp | e9b7382a9926af58924893fff77b0eccb03d95fa | [] | no_license | yash0311/competitive-coding | bd563792c8ffd5292c36303c84a781b9907cc6c2 | bc4922b9d6e5d96c11a15455ed511f5d22a5bf70 | refs/heads/master | 2020-03-27T09:16:29.163899 | 2018-09-28T17:18:50 | 2018-09-28T17:18:50 | 146,326,792 | 1 | 0 | null | 2018-08-27T17:43:43 | 2018-08-27T16:49:49 | C++ | UTF-8 | C++ | false | false | 948 | cpp | sort_stack.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define FIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define T() int t; cin>>t; while(t--)
#define pb push_back
void act_sort(stack<ll> *s,ll elem){
if(s->empty()) {
//cout<<" empty= "<<elem<<endl;
s->push(e... |
493b344095eaa5cc3f2e8979fa1cf312b65d6eab | cef20e617747de545f2b1ed8d7af394bc8e5e2d1 | /geographicLibrary.h | 502a114c7b91dc3a7f15f7518c3208c48108bc20 | [] | no_license | Krisequ/FastWGS2CartesianTransformationLib | 66995ca26a3aeb87161af19d22a97041b8a5b7a2 | 3f73b4357b17d3974b029305bf221a470b829834 | refs/heads/main | 2023-04-29T02:42:10.731132 | 2021-05-11T13:47:26 | 2021-05-11T13:47:26 | 365,299,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,266 | h | geographicLibrary.h | //
// Created by Krzysztof Gromada on 10.05.2021.
//
#ifndef GEOGRAPHICLIBRARY_H
#define GEOGRAPHICLIBRARY_H
#include <cmath>
constexpr double EarthRadius=6'367'450; ///< Average earth radius (according to WGS84)- in meters 6378100+6356800 /2
constexpr double MetersPerLatitudeDegree=6'367'450*2*M_PI/360; ///< Meters ... |
212693a822312eb60e71921e3307e7711374060c | 3077cbea0c703423e812578f4d30dccacf9163a7 | /src/uci.cc | f6cd2e71bb159919ee60bfe583fb5226724c1a53 | [] | no_license | kuratlij/parallel-chess | f0ebc91639270cb9f224479c7c39188a0c634c01 | c983c2704f9e10f93080e025bf14c997960c2e80 | refs/heads/master | 2021-05-01T16:34:25.960605 | 2017-01-20T16:40:14 | 2017-01-20T16:40:14 | 72,529,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,731 | cc | uci.cc | /*
* uci.cc
*
* Created on: Nov 4, 2016
* Author: jonathan
*/
#include "uci.h"
#include "general/test.h"
namespace {
std::vector<std::string> &splits(const std::string &s, char delimeter,
std::vector<std::string> &elements) {
std::stringstream string_stream(s);
std::string item;
while (std... |
2e4bcbe0ba0d11f3fe88de2dd5b46207c317e1a1 | 49c469e4b3f53698a0910fdad3677972f6e415f0 | /prime-table.h | eb68013550e09e1507429a03ecc8f514a46f2c55 | [] | no_license | mrdomino/primes | 07ede17b40ee1738bbf386934c71e9a9451f400e | 657e776c8b1501c91c1278154cf09445239b1064 | refs/heads/master | 2016-09-06T21:38:17.783275 | 2014-08-21T08:02:45 | 2014-08-21T08:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | h | prime-table.h | #ifndef _PRIME_TABLE_H_
#define _PRIME_TABLE_H_
#include <iostream>
#include "primes.h"
#include "print-table.h"
namespace fc {
namespace _ {
template <typename T>
T square(T const& x) {
return x * x;
}
}
void primeTable(std::ostream& os, size_t n) {
if (n > 0) {
auto ps = primes(n);
auto biggest = _:... |
f734111f3f28f03983d00e9796d9b808a0a5dd84 | 8c3b16c89409566edb71510dfe75a8a8c9beedea | /nf3x/src/dialogs/DialogApplyCommand.cpp | ef3c2a292a7a06fa1def7c79c563aee3e03ad8ee | [] | no_license | jcshaw/namedfolders | 3a09736dc09b66da6922296d88d8e61c3db33af0 | ccc4d466d1d20b9f16bcd8bb54f7e16ee04b5858 | refs/heads/master | 2021-01-10T09:00:22.393541 | 2014-01-20T03:29:05 | 2014-01-20T03:29:05 | 54,491,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | cpp | DialogApplyCommand.cpp | /*
* Far Named Folders 3.x
* Copyright (c) 2002-2011 by Victor Derevyanko
* www: http://code.google.com/p/namedfolders/
* e-mail: dvpublic0@gmail.com
*/
#include "StdAfx.h"
#include "DialogApplyCommand.h"
#include "settings.h"
#include "Kernel.h"
using namespace nf;
CDialogApplyCommand::CDialogApplyC... |
d07d8abac82fc4dfdd4b6cc66f3d1f11bea19547 | 021b185b9a335bcc31a28816ae88c3720bb65f54 | /Delta-dungeons/Engine/TransitionStrategy.h | e8899b3901e20942a21007634f6b1b1b76f17911 | [] | no_license | MarijnOomensAvans/project-swa-delta | 98fe6c9b54539d54460d6f712f2043126ddf7da9 | cf01d4472166fb463c28fd056efcfff1fb475b51 | refs/heads/master | 2023-02-18T01:53:57.863329 | 2021-01-06T14:19:10 | 2021-01-06T14:19:10 | 292,813,746 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 342 | h | TransitionStrategy.h | #pragma once
#include "CollisionStrategy.h"
#include "GameObject.h"
class TransitionStrategy : public CollisionStrategy
{
public:
ENGINE_API TransitionStrategy(){}
ENGINE_API ~TransitionStrategy(){}
ENGINE_API void actCollision(std::shared_ptr<BehaviourObject> collider, int x, int y, KeyCodes direction) ov... |
e7cc517742766e194b06c571ab93b438044e60e3 | 6cce0d1fbaf63d686a39a2c6ea0f7255e2be7963 | /XcodeMLtoCXX/src/CodeBuilder.cpp | a77f2738acd488e66bc741a2c913cf06d1c4534c | [] | no_license | omni-compiler/ClangXcodeML | 8bc3345b576f5d280eeddc01e71814b391d2fd5c | 90aa8bd4bd3faf065d5e4866f717f975bb10afc3 | refs/heads/master | 2021-08-08T07:23:18.915508 | 2020-04-24T05:04:20 | 2020-04-24T05:04:20 | 61,346,810 | 5 | 4 | null | 2018-07-24T12:46:26 | 2016-06-17T05:03:36 | C++ | UTF-8 | C++ | false | false | 28,626 | cpp | CodeBuilder.cpp | #include <algorithm>
#include <functional>
#include <iostream>
#include <sstream>
#include <memory>
#include <map>
#include <cassert>
#include <vector>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include "llvm/ADT/Optional.h"
#include "llvm/Support/Casting.h"
#include "XMLString.h"
#include "XMLWalker.h"
#inclu... |
0d4707bbbba97b2a9003ef3d2f0dfff274841042 | 0e0ab6f0f1af2543ce117d927fd1c920d8bd4125 | /Source/platform/graphics/gpu/DrawingBuffer.h | 23c7471d478f0e7d5db946afa63642a0c3a4467b | [
"BSD-3-Clause"
] | permissive | nwjs/blink | f59203f7dea96e421682e156eebfb4da8927d18b | 27b680078f32e59d6aabcbd63747e164997d3dd2 | refs/heads/nw12 | 2023-08-31T13:04:22.913202 | 2015-06-25T05:21:30 | 2015-06-25T06:09:46 | 10,447,469 | 91 | 57 | NOASSERTION | 2019-11-10T13:15:00 | 2013-06-03T05:07:00 | HTML | UTF-8 | C++ | false | false | 13,035 | h | DrawingBuffer.h | /*
* Copyright (c) 2010, Google 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditi... |
7f82d833d2995c749be9110a1cb60d06e0066e2b | 215111e92a3dfc535ce1c1ce25a35fb6003ab575 | /cf/cf_629/b.cpp | acbc5fd3daf3f9fd8747756c1c839e3ef46ae058 | [] | no_license | emanueljuliano/Competitive_Programming | 6e65aa696fb2bb0e2251e5a68657f4c79cd8f803 | 86fefe4d0e3ee09b5766acddc8c78ed8b60402d6 | refs/heads/master | 2023-06-23T04:52:43.910062 | 2021-06-26T11:34:42 | 2021-06-26T11:34:42 | 299,115,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | cpp | b.cpp | #include <bits/stdc++.h>
using namespace std;
#define _ ios_base::sync_with_stdio(0);cin.tie(0);
#define endl '\n'
#define f first
#define s second
#define pb push_back
typedef long long ll;
typedef pair<int, int> ii;
const int INF = 0x3f3f3f3f;
const ll LINF = 0x3f3f3f3f3f3f3f3fll;
int main(){ _
int t; cin >>t ... |
a477e695cae4879ec37880fb031f4525344c80f0 | c5a1fcec90e6145e02a32621c0367d3b6fd291b2 | /BookCode/design_pattern_HeadFirst_c++/07Adapter/02FacadePattern/TheaterLights.h | d190fa1b64d18d31b52521a189c101ef67a8236d | [] | no_license | xinpo66/MyProject | 00f7a52c8cc708dfd206771a5279c7368f9f4d59 | e5af98e61afe306d270b64302b9ea1690a060b3a | refs/heads/master | 2021-01-19T02:30:43.175176 | 2016-06-10T15:07:52 | 2016-06-10T15:07:52 | 54,212,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | TheaterLights.h | #ifndef THEATERLIGHTS_H_
#define THEATERLIGHTS_H_
#include <stdio.h>
class TheaterLights
{
public:
TheaterLights(){}
~TheaterLights(){}
void Dim(int D)
{
printf("TheaterLights Dim:%d\n",D);
}
void On()
{
printf("TheaterLights On \n");
}
};
#endif//THEATERLIGHTS_H_ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.