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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
69023b9f0e39a8f55f0eed1f53aa2333879bcd81 | 8a08cac7c5a5aeee935143cfec0723f5e0d2f11a | /01.项目源码/ColorMail客户端/EasyMail/addfriend.cpp | b2cb63a144194c36d4fae92f03f92027ab598db8 | [] | no_license | woyaonidsh/easymail | 94dc83a78a6a4046aa76ea6ea489c16d46820da0 | 39cd68a4e2496d07ee8240cc47235efc780954e3 | refs/heads/main | 2023-06-30T20:21:16.665761 | 2021-08-03T13:31:11 | 2021-08-03T13:31:11 | 392,251,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,608 | cpp | addfriend.cpp | #include "addfriend.h"
#include "ui_addfriend.h"
#include <QJsonArray>
#include <QJsonDocument>
addfriend::addfriend(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::addfriend)
{
QString ID = "";
QString n_name = "";
ui->setupUi(this);
ui->label_notice->setText(NULL); //初始通知消息为空
this->set... |
a67a88f212d702cc0085f9355c717e9b23c683ec | e9ae978ec137a107ec0535b943807e8a35b15d3f | /petr_and_calendar.cpp | a894e9ba23a9ddcd87ee4002680656400e99a800 | [] | no_license | jeremylao/solved_coding_challenges | 83db66b6f6d414f29510013690fa8ba3fee36db2 | 49706e9e0ff2e3b73fe0f4ce0ed4e1745b888a0c | refs/heads/master | 2021-01-11T20:24:18.719662 | 2017-03-04T14:07:56 | 2017-03-04T14:07:56 | 79,110,352 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 879 | cpp | petr_and_calendar.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int input_month, input_day;
int output;
cin >> input_month;
cin >> input_day;
if(input_month == 1 || input_month == 3 || input_month ==5 || input_month == 7||... |
f00b2f5ddccc2949f1d10322d4a8e226bdf8ec1a | 0508304aeb1d50db67a090eecb7436b13f06583d | /nemo/headers/private/print/libprint/Halftone.h | f5837cb4eb27966e6c0cd39b2ad95a3ebaf82b86 | [] | no_license | BackupTheBerlios/nemo | 229a7c64901162cf8359f7ddb3a7dd4d05763196 | 1511021681e9efd91e394191bb00313f0112c628 | refs/heads/master | 2016-08-03T16:33:46.947041 | 2004-04-28T01:51:58 | 2004-04-28T01:51:58 | 40,045,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,055 | h | Halftone.h | /*
* HalftoneEngine.h
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
*/
#ifndef __HALFTONE_H
#define __HALFTONE_H
#include <GraphicsDefs.h>
struct CACHE_FOR_CMAP8 {
uint density;
bool hit;
};
class Halftone;
typedef int (Halftone::*PFN_dither)(uchar *dst, const uchar *src, int x, int y, i... |
678bdef7ff9b4eebcd561abc92b706016ea453d5 | 11dea9abaa6bb074ab652845f8fadb15a724a61a | /server/src/Main.cpp | 8900267dd3fe3c8db130eab517149e8d7b82bef2 | [] | no_license | elvisdukaj/Triangulum-III | 984dd640a8b032d44a98aec3ed14cf5df1387c85 | 1b171afbcb2821597f833da3810993eaee2f621d | refs/heads/master | 2021-06-19T12:47:30.887167 | 2017-07-08T20:33:15 | 2017-07-08T20:33:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 218 | cpp | Main.cpp |
#include "triangulum/Game.h"
int main(int argc, char* argv[])
{
triangulum::Game g;
std::cout << "Triangulum III server (v. " << g.m_version << ") started" << std::endl;
g.init();
g.run();
return 0;
}
|
a9c99ad914666f355f361a2585a2c5b6e0c39f10 | 24c21816659a07f9b380ee1937ed908ea04eed00 | /simulator/calculate.h | 96a19427559464a00f702f95dac3e6d9c6cd5547 | [] | no_license | yj490732088/simulator_vpx_qt | 2032038f2bd93e69b823fb4be0b4632651680c44 | 3801fb13fcd5f9e42628e3157f3c6692fd0e8f59 | refs/heads/master | 2021-05-31T11:19:31.068145 | 2016-04-21T11:07:29 | 2016-04-21T11:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | h | calculate.h | #ifndef CALCULATE_H
#define CALCULATE_H
class calculate
{
public:
calculate();
~calculate();
};
#endif // CALCULATE_H
|
1ebe0a0f1bd8041ff8102109560477d0d889c465 | c44928026e7f9a3b4a694ab96936bfb2de53daae | /Graph.h | df0624d78c36fd485d8ec499f41e48b1c8dc7e98 | [] | no_license | bdkamenov/DSA_Project_Graph_Store | 85894f7985d502f9ecdc88d4c094a521e4c3d3b8 | e0be3bbb015912fa578f8c1b6917c4470d2addc8 | refs/heads/master | 2021-01-24T00:43:43.714600 | 2018-02-24T20:48:57 | 2018-02-24T20:48:57 | 122,777,605 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,841 | h | Graph.h | #ifndef GRAPH_H
#define GRAPH_H
#include <iostream>
#include <fstream>
#include <unordered_map>
#include <vector>
#include <queue>
#include <string>
#include <climits>
#include <functional>
struct algorithms_node_info
{
std::string parent;
int distance;
bool visited;
};
class Graph
{
e... |
425edf3671e423c811ab2f36a1129ff93d0c54ad | 6583f95ad8b6d0ca0ba5bff7663e957a07dba367 | /include/ds18b20/commands/copy_scratchpad.hpp | 85ad3c7f4f9bb16bfd0e5d924ee5c0511d1bbba6 | [
"MIT"
] | permissive | ricardocosme/ds18b20 | 54e11d0af6b334bd215fe707a95128834a88b152 | c8b400da2625706e6592e858635dace86a64df90 | refs/heads/master | 2023-04-04T13:15:42.777691 | 2021-04-06T22:40:08 | 2021-04-06T22:40:08 | 304,535,274 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 259 | hpp | copy_scratchpad.hpp | #pragma once
#include "ds18b20/onewire/write.hpp"
namespace ds18b20 { namespace commands {
template<bool InternalPullup, typename Pin>
inline void copy_scratchpad(Pin pin) noexcept {
onewire::write<InternalPullup>(pin, 0x48 /*Copy Scratchpad*/);
}
}}
|
6558f96c7abec909c956ccb8e2b08931c61dcf13 | 9401eaffc1830a2e239d6b9aee1e36a9e7470f03 | /CodeBase/Generic/BaseObjects/SubSystems/Auto/Team271_Auto.hpp | b0be262c232d36dabce61ae1fe37a975f94bcb69 | [] | no_license | Team271/2019Season | f552f92f830ce04ec7ec432ea79a75e82a08b2e1 | acaad0ba0520da9e0e463c9e06ee3df456519957 | refs/heads/master | 2020-12-04T10:41:04.246017 | 2020-01-04T08:37:38 | 2020-01-04T08:37:38 | 231,732,146 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,974 | hpp | Team271_Auto.hpp | /*
* FRC Team 271's 2019 Comp Season Code
* Copyright (C) 2019 FRC Team 271
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
ac2297e4f822544d0f22b04660b8f7329f88f34f | ad5b72656f0da99443003984c1e646cb6b3e67ea | /src/tests/functional/plugin/myriad/shared_tests_instances/behavior/ov_plugin/caching_tests.cpp | 4b49dc9f6ac2bfe463fb78b9d220b2a8ca59253a | [
"Apache-2.0"
] | permissive | novakale/openvino | 9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae | 544c1acd2be086c35e9f84a7b4359439515a0892 | refs/heads/master | 2022-12-31T08:04:48.124183 | 2022-12-16T09:05:34 | 2022-12-16T09:05:34 | 569,671,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,162 | cpp | caching_tests.cpp | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "behavior/ov_plugin/caching_tests.hpp"
using namespace ov::test::behavior;
namespace {
static const std::vector<ngraph::element::Type> nightly_precisionsMyriad = {
ngraph::element::f32,
ngraph:... |
db033f788d9eefa4e64a4c82697380593193fc8c | a13e7993275058dceae188f2101ad0750501b704 | /2021/937. Reorder Data in Log Files.cpp | e140f291c224a33749a09132a852f919aef1c12b | [] | no_license | yangjufo/LeetCode | f8cf8d76e5f1e78cbc053707af8bf4df7a5d1940 | 15a4ab7ce0b92b0a774ddae0841a57974450eb79 | refs/heads/master | 2023-09-01T01:52:49.036101 | 2023-08-31T00:23:19 | 2023-08-31T00:23:19 | 126,698,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,325 | cpp | 937. Reorder Data in Log Files.cpp | class Solution {
public:
vector<string> reorderLogFiles(vector<string>& logs) {
vector<string> ans(logs.size(), "");
int start = 0;
int end = logs.size() - 1;
for (int i = logs.size() - 1; i >= 0; i--) {
if (isDigitLog(logs[i])) {
ans[end] = logs[i];
... |
88bd58c5b1e157481bb62a25e1b338f719e03bb4 | ec915bf2f3fc0f9b05ff7e9f7b13d39fce78c7be | /helper_tests.cc | a7c7cc46a236ddaa9472b76597b987fc64b8d2bc | [] | no_license | cmstas/SSAnalysis | ed85d6ecd2ccc9c191482bf53a586c41ee1c8941 | 658798ad51b8ca508ed38e23c6116178580ce9f2 | refs/heads/master | 2020-04-04T07:28:51.773617 | 2018-02-21T00:42:07 | 2018-02-21T00:42:07 | 30,431,428 | 1 | 0 | null | 2016-06-15T17:16:28 | 2015-02-06T20:24:36 | C++ | UTF-8 | C++ | false | false | 69,976 | cc | helper_tests.cc | #include "helper_tests.h"
#include "looper.h"
#include "TFile.h"
#include "./CORE/CMS3.h"
#include "./CORE/SSSelections.h"
#include "./tools.h"
using namespace tas;
void tests::runQCDtest(looper* loop, float& weight_, vector<Lep>& fobs, vector<Lep>& goodleps, int& njets, float& met) {
if (fobs.size()>1) return; ... |
d9a52fae4c02fcc1989e2d81ba7d93be30760b03 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /third_party/WebKit/Source/core/paint/BlockFlowPainter.cpp | 32e93aaf53ccd58dc224a5b6e1a9aa2877189c7d | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | C++ | false | false | 3,141 | cpp | BlockFlowPainter.cpp | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "core/paint/BlockFlowPainter.h"
#include "core/layout/FloatingObjects.h"
#include "core/layout/LayoutBlockFlow.h"
#include "core/paint/BlockPain... |
bbefd06f93ea970b18d5712d04e272840214848d | 78b313d5604fa4f6e34ae114f36e11f7d20f3b75 | /OLA1/Project1/Roster.cpp | 086e481ffaa24d2df809bf0372f1b0c472372271 | [] | no_license | MartysRepos/CSCI3110 | f85bca648ffb1940b8e20fdf4af8e0d3085ecc7c | f75ca501aa8d649d046eae8b9280821d3c9b2d33 | refs/heads/master | 2021-01-11T18:12:36.444339 | 2017-01-20T02:15:09 | 2017-01-20T02:15:09 | 79,516,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,276 | cpp | Roster.cpp | ////Author: Martavious Dorsey
////Project: OLA1
////Due date: September 7, 2016
////Description: The Roster.cpp file is where the methods from Roster.h files are being implemented
#include <iostream>
#include <string>
#include <fstream>
#include "Roster.h"
using namespace std;
//Creates an empty roster ... |
f19af7f22d4abd99f250cce7fa6d2768ebb99a43 | 03e9fcc01ab5bf150f88f19798c00ce3026aa495 | /host.cpp | 48cd7c1181a1c25628a9de3cec24c2974bfa8c26 | [] | no_license | jtforrestal/3d3Project2 | 44dd638b8dd995a47b87608ec343459cd89c6706 | 7f9fa9b0aefce2b6639979c38b7b8ccd7f6d61fb | refs/heads/master | 2021-11-03T08:31:41.856255 | 2019-04-06T22:12:14 | 2019-04-06T22:12:14 | 177,126,141 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,593 | cpp | host.cpp | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <assert.h>
#include <string>
#include <fstream>
#include <iostream>
#include <limits.h>
#include <... |
b98d4271ea1320650954e59b2d0da004abebe384 | 5d952b15bb37e8a25f80b853b5a859569b7438a3 | /yhgui/Component.cpp | 20fe4bb874eb5f6a6b2d5d7d33449cbdcdf70801 | [] | no_license | trarck/yhgui | 097a73c8c73b865beee95a81f95ae7ab2fc527fd | 7a76ac984dfc6b23632574d9a4adfc0620158533 | refs/heads/master | 2021-01-13T07:38:21.359453 | 2013-12-26T12:29:44 | 2013-12-26T12:29:44 | 15,388,969 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,943 | cpp | Component.cpp | #include "Component.h"
#include "event/UIEventNames.h"
NS_CC_YHGUI_BEGIN
Component::Component()
:m_name("")
,m_enabled(true)
,m_touchInside(false)
,m_touchPriority(0)
,m_needBubbles(true)
{
}
Component::~Component()
{
}
//void Component::onEnter()
//{
// if(m_enabled){
// this->registerWithTouchDisp... |
dcc7b2bddd320d1e99bcbca81e5783709007b390 | 7b27b844bb2ab3c46162fe1005608cebbe9f657b | /syx/syx/SyxInterface.h | c7445d45b3e8015d45483df2d9165e5cd15b1126 | [] | no_license | tristanschneider/syx | af36254469e7f77a134431a0a7d2601c83d4d580 | 95d9573339fe11a886ab6ca8060455357de4fdf0 | refs/heads/main | 2023-08-31T21:36:36.724283 | 2023-08-28T06:52:47 | 2023-08-28T06:52:47 | 97,346,704 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,593 | h | SyxInterface.h | #pragma once
namespace Syx {
struct Vec3;
struct SyxOptions {
enum SIMD {
PositionIntegration = 1 << 0,
VelocityIntegration = 1 << 1,
SupportPoints = 1 << 2,
Transforms = 1 << 3,
ConstraintSolve = 1 << 4,
GJK = 1 << 5,
EPA = 1 << 6
};
enum Debug {
DrawM... |
af1460be5e2f960c8a062d31a6cb478a6e175476 | 5650f832143151664e978aabcaed4fc9098a26bb | /win/WIN_Window.h | 2da83b7d3fb2b07bb58bb6bf993b6d152e3f019c | [] | no_license | amyharris3/paint | ac6ff346c392464c038b2869b2e2d290613d0fe2 | 4b36dddda46e20f105d0439953865a52f243fb0e | refs/heads/master | 2020-12-15T13:16:35.832045 | 2020-02-14T10:57:51 | 2020-02-14T10:57:51 | 235,114,101 | 0 | 0 | null | 2020-02-13T14:19:21 | 2020-01-20T13:59:53 | C | UTF-8 | C++ | false | false | 806 | h | WIN_Window.h | #pragma once
#include "GFX_Rectangle.h"
#include "WIN_Container.h"
#include "WIN_FreeLayout.h"
//struct SDL_Window;
//struct SDL_Renderer;
//struct SDL_Surface;
namespace win
{
class Layout;
class FreeLayout;
class TableLayout;
class Window : public Container
{
public:
Window() = delete;
virtual ~Window(... |
952cae21a8e896393c435da58d32b8734e768643 | 518892dbb2c4c57a26a21d123340f772787fe8bc | /重定义函数/Circle.h | bc040ac0e3c0e3eca6ab5dbf777cdacb28893c1b | [] | no_license | forlqy/study | d5ba2cc7677ac1bc65134d077a27f93364a8a009 | a31976c054a525a168d8db9cd833a12645f64964 | refs/heads/master | 2023-08-23T02:55:35.025706 | 2021-09-19T11:01:35 | 2021-09-19T11:01:35 | 397,440,754 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 365 | h | Circle.h | #pragma once
#include "Shape.h"
class Circle : public Shape{//类的声明与实现分离只涉及到函数,不涉及到类的数据成员
public:
Circle();
Circle(double radius_);
Circle(double radius_, Color color_, bool filled_);
double getArea();
double getRadius() const;
void setRadius(double radius);
string toString();
private:
double radius;
}; |
5bf88bde3e764c6359e4d5cbeb7dc7a522ccdccf | 93becb0e207e95d75dbb05c92c08c07402bcc492 | /yosupo/point_set_range_composite.cpp | 5aae8c960787201c1400474793f0174d7edf2d77 | [] | no_license | veqcc/atcoder | 2c5f12e12704ca8eace9e2e1ec46a354f1ec71ed | cc3b30a818ba2f90c4d29c74b4d2231e8bca1903 | refs/heads/master | 2023-04-14T21:39:29.705256 | 2023-04-10T02:31:49 | 2023-04-10T02:31:49 | 136,691,016 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,997 | cpp | point_set_range_composite.cpp | #include <functional>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <vector>
#include <random>
#include <bitset>
#include <queue>
#include <cmath>
#include <stack>
#include <set>
#include <map>
typedef long long ll;
using namespace std;
const ll MOD = 99824435... |
a23d533d0021ccb13c891fa714030f11b41711b3 | afee2250a162d9258f4a6eb49375290346d24557 | /plugins/trisoup_gl/src/AbstractTriMeshDataSource.h | 43bff0223d5c1c5985c84007ac3e84c52ea2243a | [
"BSD-3-Clause"
] | permissive | sellendk/megamol | bbaa4ce9b1e78980017df25968559b86ff6e8684 | 03748a31064b06186ae2a14e34313b776c60b80f | refs/heads/master | 2023-01-11T06:22:23.320033 | 2022-12-07T15:35:31 | 2022-12-07T15:35:31 | 208,452,969 | 0 | 0 | BSD-3-Clause | 2021-07-13T11:49:32 | 2019-09-14T14:36:44 | C++ | UTF-8 | C++ | false | false | 2,595 | h | AbstractTriMeshDataSource.h | /*
* AbstractTriMeshDataSource.h
*
* Copyright (C) 2010 by Sebastian Grottel
* Copyright (C) 2010 by VISUS (Universitaet Stuttgart)
* Alle Rechte vorbehalten.
*/
#ifndef MMTRISOUPPLG_ABSTRACTTRIMESHDATASOURCE_H_INCLUDED
#define MMTRISOUPPLG_ABSTRACTTRIMESHDATASOURCE_H_INCLUDED
#if (defined(_MSC_VER) && (_MSC_VER... |
e413c5b4d168925cdf4c3ddd2e04760a84c6212e | 6d088ec295b33db11e378212d42d40d5a190c54c | /contrib/brl/bbas/bsta/pro/Templates/brdb_value_t+bsta_random_wrapper_sptr-.cxx | b8de632c432fa3400ab5ea730f80f894479d4094 | [] | no_license | vxl/vxl | 29dffd5011f21a67e14c1bcbd5388fdbbc101b29 | 594ebed3d5fb6d0930d5758630113e044fee00bc | refs/heads/master | 2023-08-31T03:56:24.286486 | 2023-08-29T17:53:12 | 2023-08-29T17:53:12 | 9,819,799 | 224 | 126 | null | 2023-09-14T15:52:32 | 2013-05-02T18:32:27 | C++ | UTF-8 | C++ | false | false | 185 | cxx | brdb_value_t+bsta_random_wrapper_sptr-.cxx | #include <brdb/brdb_value.hxx>
#include <bsta/bsta_random_wrapper.h>
#include <vbl/io/vbl_io_smart_ptr.h>
BRDB_VALUE_INSTANTIATE(bsta_random_wrapper_sptr, "bsta_random_wrapper_sptr");
|
75d02a76abc0465c3b13534f063edc164f5d92ed | dd656493066344e70123776c2cc31dd13f31c1d8 | /MITK/Modules/MitkExt/Testing/mitkCompareImageSliceTestHelper.h | d2209c2effa5af5e7792434ccc1d481057e3c24a | [] | no_license | david-guerrero/MITK | e9832b830cbcdd94030d2969aaed45da841ffc8c | e5fbc9993f7a7032fc936f29bc59ca296b4945ce | refs/heads/master | 2020-04-24T19:08:37.405353 | 2011-11-13T22:25:21 | 2011-11-13T22:25:21 | 2,372,730 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,766 | h | mitkCompareImageSliceTestHelper.h | /*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKCopyright.txt ... |
4438a47658332971b5feb03db178267c3bef295e | 0e4e677eec557eacba7ff8e0c2d56dcb8c601afb | /src/libhttpserver/multipart_response_stream.h | d2cdf2e2dfad3d97c80312e40a5994709c95f454 | [
"MIT"
] | permissive | RipcordSoftware/libhttpserver | a2d0db50c4ed4cc5826ba8856660ad6fde00bc23 | 87e8f67298763dacb1a4c13e3887532f688e5feb | refs/heads/master | 2021-03-12T20:25:12.835298 | 2018-10-10T23:21:55 | 2018-10-10T23:21:55 | 31,376,981 | 25 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,162 | h | multipart_response_stream.h | #ifndef RS_LIBHTTPSERVER_MULTIPART_RESPONSE_STREAM_H
#define RS_LIBHTTPSERVER_MULTIPART_RESPONSE_STREAM_H
#include "stream.h"
#include "response_headers.h"
namespace rs {
namespace httpserver {
class MultipartResponseStream final : public Stream {
public:
MultipartResponseStream(Stream& stream);
MultipartRes... |
8890897be3554b25e3ac4b86118d065a125b6d1f | 2e0ffa41d68347285aeeea7b29039ef04cc7489a | /GWSystem1.0/ShowImgIntoFrame.cpp | 113360b378b8b00dc1cae836dab14f211e2e14f3 | [] | no_license | AutumnCake/GWsystem_GIT | 9b824a6e460b2c782259beb1e354d92687d89f38 | da4aabaf6db804cc8424b9cf504c1e4519979156 | refs/heads/master | 2020-07-21T19:44:48.190713 | 2019-09-23T02:49:45 | 2019-09-23T02:49:45 | 206,958,800 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,025 | cpp | ShowImgIntoFrame.cpp | // ShowImgIntoFrame.cpp : 实现文件
//
#include "stdafx.h"
#include "GWSystem1.0.h"
#include "ShowImgIntoFrame.h"
#include "afxdialogex.h"
// CShowImgIntoFrame 对话框
IMPLEMENT_DYNAMIC(CShowImgIntoFrame, CDialogEx)
CShowImgIntoFrame::CShowImgIntoFrame(CWnd* pParent /*=NULL*/)
: CDialogEx(CShowImgIntoFrame::IDD, pParent)
... |
a865cb314c2628bfa919bb07adaf2ce2582f9e8d | 93aa54535beca6865818e04a50659ca35fd0fa7c | /include/mgpcl/Singleton.h | 4bbd5da1bda8b3bb92aef0c92bcd3f9525aec953 | [
"MIT"
] | permissive | montoyo/mgpcl | cef9e9f401340cdcbd3bd6a812d748b5bc174ad2 | 8e65d01e483124936de3650154e0e7e9586d27c0 | refs/heads/master | 2021-01-21T15:00:35.612965 | 2020-02-05T13:37:00 | 2020-02-05T13:37:00 | 95,368,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,315 | h | Singleton.h | /* Copyright (C) 2017 BARBOTIN Nicolas
*
* 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, publi... |
6dc3764b6532f56a97d7828ca62d74ad4c42e5fe | a804855bf0062ca58cfc9cce679efa0a30cfafb4 | /TEST2 v2/TEST2/stoken.cpp | b79ee2b5b5b3f1a4d7326487e535d65f31f88885 | [] | no_license | Secret-Asian-Man/cs8 | 2cfde5ee215df411647ae10a595048d7e3a1de85 | 607cb5276295082064ac1f5d5958039c3e4f47c6 | refs/heads/master | 2016-08-12T12:58:26.939064 | 2015-12-18T11:08:29 | 2015-12-18T11:08:29 | 44,903,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,561 | cpp | stoken.cpp | #include "stoken.h"
#include <iostream>
using namespace std;
sToken::sToken()
{
}
sToken::sToken(string src)
{
SOURCE=src;
anchor = 0;
done = false;
}
void sToken::operator =(string src)
{
SOURCE = src;
anchor = 0;
done = false;
}
void sToken::identify()
{
char first;
first = SOURCE.at(anchor);
... |
a776b15703719f1e1514aa6c9ad6ea73bd36b77c | 027ad99a3fa9231dd96dd610fdbebd26f9fd02db | /Projects/mo_graphics/Common_FBComponent_UpdateProps.h | a8461650fc92e86b269cbb1faf176f8b310cf2fd | [
"BSD-3-Clause"
] | permissive | droidoid/MoPlugs | ee5b6162a3a504d43d8a62ab221cfe72317afe25 | fce52e6469408e32e94af8ac8a303840bc956e53 | refs/heads/master | 2020-12-19T04:26:07.530778 | 2019-08-07T22:05:07 | 2019-08-07T22:05:07 | 235,619,955 | 1 | 0 | BSD-3-Clause | 2020-01-22T16:54:13 | 2020-01-22T16:54:12 | null | UTF-8 | C++ | false | false | 1,399 | h | Common_FBComponent_UpdateProps.h |
#pragma once
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// file: Common_FBComponent_UpdateProps.h
//
// Author Sergey Solokhin (Neill3d)
//
// GitHub page - https://github.com/Neill3d/MoPlugs
// Licensed under BSD 3-Clause - https://github.com/Neill3d/MoPlugs... |
ff3b09782c140a605df958fce811a9ee65607f2b | 4bf2ee10c6594f70c32feb3bcb50eec186daa9cf | /solutions/1085/1085.cpp11.cpp | 3508ee8da86e45e3f83c62b4c46c787bfdf77878 | [] | no_license | jwvg0425/boj | 7674928dc012ba3c404cef3a76aa753828e09761 | 4b7e7389cbe55270bd0dab546d6e84817477b0f1 | refs/heads/master | 2020-07-14T02:37:36.658675 | 2017-07-13T06:11:44 | 2017-07-13T06:11:44 | 94,295,654 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 182 | cpp | 1085.cpp11.cpp | #include <stdio.h>
#include <memory.h>
#include <algorithm>
int main()
{
int x, y, w, h;
scanf("%d %d %d %d", &x, &y, &w, &h);
printf("%d", std::min({ x, y, w - x, h - y }));
} |
d63ecfaa31b25b9862250105224e6054669478c6 | 463d81a0c9ce92f1717050118329d268b170056d | /mikehsu-TestDarwin.c++ | ebf6025b8aeb8490b782f78d8fd429b22a011221 | [] | no_license | cs371p-spring-2013/cs371p-darwin-tests | 786a10244649ee4379754b1bb942aa346e310576 | b7b15e7faf130c9518c6d9b7aec62759fce3ef49 | refs/heads/master | 2020-03-30T08:40:51.008175 | 2013-04-07T00:19:30 | 2013-04-07T00:19:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 36,703 | mikehsu-TestDarwin.c++ | // --------
// includes
// --------
#include <iostream> // cout, endl
#include <sstream> // istringtstream, ostringstream
#include <string> // ==
#include <vector> //vector
#include "cppunit/extensions/HelperMacros.h" // CPPUNIT_TEST, CPPUNIT_TEST_SUITE, CPPUNIT_TEST_SUITE_END
#include "cppunit/TestFixture.h" // Test... | |
a8ba20030d484f36f67b6cf4d351faa16d56ae60 | 590eb4cc4d0fe83d9740ce478f857ca3a98e7dae | /OGDF/include/ogdf/internal/planarity/BoyerMyrvoldInit.h | 51fa7b30468eccf215d019e4c1f232030b63536e | [
"LGPL-2.1-or-later",
"GPL-3.0-only",
"GPL-1.0-or-later",
"EPL-1.0",
"MIT",
"GPL-2.0-only",
"LicenseRef-scancode-generic-exception",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cerebis/MetaCarvel | d0ca77645e9a964e349144974a05e17fa48c6e99 | a047290e88769773d43e0a9f877a88c2a8df89d5 | refs/heads/master | 2020-12-05T05:40:19.460644 | 2020-01-06T05:38:34 | 2020-01-06T05:38:34 | 232,023,146 | 0 | 0 | MIT | 2020-01-06T04:22:00 | 2020-01-06T04:21:59 | null | UTF-8 | C++ | false | false | 4,714 | h | BoyerMyrvoldInit.h | /** \file
* \brief Declaration of the classes BoyerMyrvoldInit and BucketLowPoint
*
* \author Jens Schmidt
*
*
* \par License:
* This file is part of the Open Graph Drawing Framework (OGDF).
*
* \par
* Copyright (C)<br>
* See README.txt in the root directory of the OGDF installation for details.
*
* \par
... |
bf1fcd449abe198ef8b024488e48d894bb06e3d1 | aa4f0d4d62eda5b49e884f59837319527edc8bef | /shape_recognition/matlab_fcn.cpp | aa2188cb21a6a9d3d63b2ddbdda3f0cc971b4686 | [] | no_license | gxfgithub/shape_recognition | a92e6cd2e27cb9ea83a971b0145c26d02a3ad983 | 229da0c8a3b7d7c4272e4832a81bd00bd1b1c004 | refs/heads/master | 2021-06-12T18:18:11.237806 | 2017-03-23T04:49:18 | 2017-03-23T04:49:18 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,151 | cpp | matlab_fcn.cpp | #include "matlab_fcn.h"
String fullfile(String a, String b) {
String c(a + "\\" + b);
return c;
}
clock_t ticTime;
void tic() {
ticTime = clock();
}
float toc() {
clock_t tocTime = clock();
return (float)(tocTime - ticTime) / CLOCKS_PER_SEC;
}
//只读取某给定路径下的当前文件夹名
void getJustCurrentDir(string path, vector<stri... |
0f26c3c5611b1face7a12438ffff8c5c17c23f07 | e6652252222ce9e4ff0664e539bf450bc9799c50 | /d0706/7.6/source/SN-wsw4/name.cpp | 76585a2f090e8c7d633072111d5babb34467a072 | [] | no_license | cjsoft/inasdfz | db0cea1cf19cf6b753353eda38d62f1b783b8f76 | 3690e76404b9189e4dd52de3770d59716c81a4df | refs/heads/master | 2021-01-17T23:13:51.000569 | 2016-07-12T07:21:19 | 2016-07-12T07:21:19 | 62,596,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | cpp | name.cpp | #include <cstdio>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <ctime>
#include <cstring>
#define maxn 100010
using namespace std;
int read(){
char c=getchar();
int y=0,tim=1;
while(c>'9'||c<'0'){
if(c=='-')tim=-1;
c=getchar();
}
while(c>='0'&&c<='9'){
y=y*10+c-'0'... |
4eb4a2a47da1636aaafcc4d0fa6149aebe50ded0 | f0749ffea2a953a324a26906b7dc3bd95ac06e60 | /Core/Color/RGBTraits.cc | d25e8b5e54a555da4bc1bafe380cddb581da98cd | [
"MIT"
] | permissive | jeffamstutz/rfManta | 36970d20ef79907db250da83ec1e672943c199fe | 77b3f8688f09719a9027a02777832bb734fc8431 | refs/heads/master | 2021-01-10T08:57:37.803549 | 2015-03-13T12:47:47 | 2015-03-13T12:47:47 | 48,449,383 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 239 | cc | RGBTraits.cc |
#include <Core/Color/RGBTraits.h>
#include <Core/Color/ColorSpace.h>
using namespace Manta;
using namespace std;
template<>
bool MantaRTTI<ColorSpace<RGBTraits> >::force_initialize = MantaRTTI<ColorSpace<RGBTraits> >::registerClass();
|
3abc0dd1ff838a9de61124919cdc201cd24a7b28 | c191edd05a993c4248459219e9f17fc933626435 | /MusicStructure.h | 8068fe5cbb91694fe1b7899f2f479af6bfb606ec | [] | no_license | prithviKantanAAU/GaitSoni-PostThesis | d49c701c50fc7e538771c5247b6d53ce4422ff5c | 7f24bcb98b690473e2528e7aeaa855ea11fb4a29 | refs/heads/master | 2023-02-09T21:47:35.259905 | 2021-01-07T23:10:06 | 2021-01-07T23:10:06 | 285,592,406 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,610 | h | MusicStructure.h | #pragma once
class MusicStructure
{
public:
MusicStructure();
~MusicStructure();
int numTrackMuteCombinations = 6;
int melodicMeasuresPerFile = 24;
int numSongStructures = 5;
short trackMuteConfigurations[11][8] =
{
{0, 0, 0, 0, 0, 0, 0, 0}, // All // 10 //M
{0, 0, 0, 0, 0, 0, 0... |
20ac92451c05ae826ce9860e29a8ee39ddfe118d | b04636f31f716c21a6c0d77bc49b876bc496fff7 | /Codeforces/1234/a.cpp | 6ce6abb74a348dd014e4657e5ee54b8ce73a2e97 | [] | no_license | khanhvu207/competitiveprogramming | 736b15d46a24b93829f47e5a7dbcf461f4c30e9e | ae104488ec605a3d197740a270058401bc9c83df | refs/heads/master | 2021-12-01T00:52:43.729734 | 2021-11-23T23:29:31 | 2021-11-23T23:29:31 | 158,355,181 | 19 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | a.cpp | #include <bits/stdc++.h>
#define fi first
#define se second
#define ll long long
using namespace std;
void solve(){
int n;
cin>>n;
vector<int> a(n);
for(int& x:a) cin>>x;
ll sum=accumulate(a.begin(),a.end(),0);
ll res=(sum+n-1)/n;
cout<<res<<'\n';
}
int main() {
#ifdef kvutxdy
freopen("C:/Users/khanh/OneDriv... |
e804edcaeaffd8c364afa480229fa9f99f648ec7 | 120f701ee4439524534294fac5401c97bbe4d28f | /main.cpp | 36585aaef0a72ecd1a9b2961b68ec4d10a684200 | [] | no_license | alessadge/Examen120172-AlessandroGrimaldi | 1dae1a7bf60ff443e270c501bcc2fe51af347e7b | 37cc7d5109e972569e97c65d1147e599d6ca81c7 | refs/heads/master | 2021-01-21T15:18:20.491476 | 2017-05-19T23:46:00 | 2017-05-19T23:46:00 | 91,836,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,523 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
#include <vector>
#include <string>
#include "Obras.h"
#include "Literatura.h"
#include "Esculturas.h"
#include "Disenos.h"
#include "Pinturas.h"
#include <stdlib.h>
using namespace std;
string hexadecimal(vector<Obras>);
int main(){
char opcion;
char opcion2;
vector... |
e89f97e94e072e16326f8e4fe48445397fd7c9ba | eac6cf47d690e9ed35f2b07cc77f5c5ca772dc8c | /core/base/geometry/Geometry.h | 1d6b057c6ca6f2a5134763f30dc4f832fef848ae | [
"BSD-3-Clause"
] | permissive | JonasLukasczyk/ttk | e0c782cffc13379444615f5e7fe2d0fb4a4ffd22 | 34f6c6b8f113ab7edae8be8c527f60639833e869 | refs/heads/stable | 2023-01-22T08:34:32.219078 | 2020-01-29T15:04:01 | 2020-01-29T15:04:01 | 152,736,705 | 1 | 0 | NOASSERTION | 2018-10-12T10:48:23 | 2018-10-12T10:48:23 | null | UTF-8 | C++ | false | false | 12,479 | h | Geometry.h | /// \ingroup base
/// \class ttk::Geometry
/// \author Julien Tierny <julien.tierny@lip6.fr>
/// \date February 2016.
///
/// \brief Minimalist class that handles simple geometric computations
/// (operations on std::vectors, barycentric coordinates, etc.).
///
#ifndef _GEOMETRY_H
#define _GEOMETRY_H
#include <Debug.h... |
a7bb71766090539f3c911476370d1ddaf329f01b | c3f70154e766cffa78a997e858ba9929d9364087 | /groundupdb/include/extensions/extquery.h | 18c50441ea7be2936e8faef571260493b225bc40 | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | adamfowleruk/groundupdb | a66ca1919170032c431e225960a80c26a1aae157 | 2864f599fd31bdd705555633dc16986482218ec5 | refs/heads/stem | 2023-02-02T15:32:47.318583 | 2023-01-29T19:45:17 | 2023-01-29T19:45:17 | 273,469,105 | 101 | 22 | Apache-2.0 | 2023-01-29T19:45:19 | 2020-06-19T10:41:25 | C++ | UTF-8 | C++ | false | false | 1,080 | h | extquery.h | /*
See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Adam Fowler licenses this file
to you 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://ww... |
8b349bc876c4a9021d0d5e889373c7a396010727 | 34143cd84540d99cef21fd5edd468c7cd40ac335 | /POJ/2375.cc | dd5680c3f78e1f351d900dc99cf28df0eeb5ef27 | [] | no_license | osak/Contest | 0094f87c674d24ebfc0d764fca284493ab90df99 | 22c9edb994b6506b1a4f65b53a6046145a6cce41 | refs/heads/master | 2023-03-06T02:23:53.795410 | 2023-02-26T11:32:11 | 2023-02-26T11:32:11 | 5,219,104 | 8 | 9 | null | 2015-02-09T06:09:14 | 2012-07-29T01:16:42 | C++ | UTF-8 | C++ | false | false | 4,819 | cc | 2375.cc | //Name: Cow Ski Area
//Level: 3
//Category: グラフ,Graph,強連結成分分解
//Note: TLE厳しい
/**
* 全体を強連結なグラフにする問題。
*
* このグラフを強連結成分分解したDAG上で考えると、
* 始点と終点の間で適当に辺を張ってやれば、全体を行き来することができるようになる。
*
* このとき、全体が巡回するように辺を張ることで、条件を満たす。
* このために必要な辺の本数は、始点の合計数と終点の合計数のうち、多い方の
* 数と等しい。
* これが最小であることは自明である。
*
* POJではTLEが厳しいので、強連結成分分解のトポロジカル... |
edcefc282c5c093d0574da632ffa2c0c2b9b7ab8 | 8fbc0a30921bee6ec0161b9e263fb3cef2a3c0a4 | /codewars/brainfuck-translator.cpp | ead8abe2c21ff23382046d27594ea4e6062a064c | [
"WTFPL"
] | permissive | swwind/code | 57d0d02c166d1c64469e0361fc14355d866079a8 | c240122a236e375e43bcf145d67af5a3a8299298 | refs/heads/master | 2023-06-17T15:25:07.412105 | 2023-05-29T11:21:31 | 2023-05-29T11:21:31 | 93,724,691 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,863 | cpp | brainfuck-translator.cpp | #include <iostream>
#include <string> // std::string
#include <cstring>
int type[100020];
int num[100020];
int top, dep;
#define ERROR "Error!"
#define indent__(x) std::string((x) * 2, ' ')
std::string brainfuck_to_c(std::string source_code) {
memset(type, 0, sizeof type);
memset(num, 0, sizeof num);
top = dep ... |
e354ee4e400ddbbb10ee75968641e62514fb4cba | 73903e30de4a163cc48a1ce574e94623fb215a22 | /cpp/acm/poj-3664.cpp | a69721b9e4452eab46e42515f2ea3b3dcd2f09c6 | [] | no_license | fuxiang90/code-fuxiang90 | 3d60972214f30b909222339d4373190e84ef8afc | a6258a82f992faa3d4c20f240dace033bede1375 | refs/heads/master | 2020-04-05T22:41:25.927586 | 2014-05-02T02:04:49 | 2014-05-02T02:04:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,368 | cpp | poj-3664.cpp | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
using namespace std;
const int MAX = 50010;
int n, k;
struct node
{
int a;
int b;
int num;
}cow[MAX];
int cmpa(node p, node q)//先按a从大到小排序,若a相等则按b从大到小排序
{
if(p.a == q.a && p.b == q.b) return 0;
if (p.a == q.a) return p.b >... |
7a9ffa72accd2a74aadfc41b21c4701a276747f3 | 6642ad5b6e88524b47dc5d2fbd744e7c7c1ae642 | /src/applications/helper/gasper/gasper-participant-helper.cpp | d847eb8dc1ee20be4af5379397a254c7466f9fa3 | [] | no_license | Failips/SimPoS | e6dcbc890d1eef43d4faac3ca79c417104fddaf8 | 8b45d4388aa392737ac279e0e73d0ee190eeaa13 | refs/heads/main | 2023-04-19T20:15:51.600488 | 2021-05-10T16:22:44 | 2021-05-10T16:22:44 | 333,158,910 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,172 | cpp | gasper-participant-helper.cpp | /**
* This file contains the definitions of the functions declared in gasper-participant-helper.h
*/
#include "gasper-participant-helper.h"
#include "ns3/string.h"
#include "ns3/inet-socket-address.h"
#include "ns3/names.h"
#include "ns3/uinteger.h"
#include "ns3/gasper-participant.h"
#include "ns3/log.h"
#include "... |
a1d629dd407b8afe0823a12f9c75b82da8ce65f5 | 88881f70bbb9ff42970796a8ec89c82e666d55bc | /CodeChefLongApril20/HLD.cpp | 33f6fbc55f7bfd5f1edb7d256dc280cbd0290d8e | [] | no_license | uhini0201/CodeChefChallenges | e7f7c5e7e036ca3cf84ea04d23931b79819371a3 | 21d270675a7fb10cbc929ffddccdb5f960e1c073 | refs/heads/master | 2023-02-01T09:00:33.105552 | 2020-12-14T10:19:07 | 2020-12-14T10:19:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,651 | cpp | HLD.cpp | // Problem Link : https://www.codechef.com/APRIL20B/problems/FCTRE
// Answer For Subtask #1
#include <bits/stdc++.h>
#include <unordered_map>
using namespace std;
#define whatis(x) cerr << #x << " is : " << x <<endl;
#define IOS ios_base::sync_with_stdio(false),cin.tie(NULL);
#define N 100005
#define MAXA 1000001
#d... |
636fe2bd4e7021c3c6b0298d7d1613d0d0ef9314 | c7c73566784a7896100e993606e1bd8fdd0ea94e | /pandatool/src/flt/fltLightSourceDefinition.h | e96d275254329b5526edbbf20cc1b2c3a582efea | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | panda3d/panda3d | c3f94df2206ff7cfe4a3b370777a56fb11a07926 | 160ba090a5e80068f61f34fc3d6f49dbb6ad52c5 | refs/heads/master | 2023-08-21T13:23:16.904756 | 2021-04-11T22:55:33 | 2023-08-06T06:09:32 | 13,212,165 | 4,417 | 1,072 | NOASSERTION | 2023-09-09T19:26:14 | 2013-09-30T10:20:25 | C++ | UTF-8 | C++ | false | false | 1,999 | h | fltLightSourceDefinition.h | /**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file fltLightSourceDefinitio... |
ae5d505aa06277f5fb3bcd9d399a5629141ee5cd | bce8a7a8ad903aba8b5bdb1d47936b4f90cd5769 | /src/sky_plugin_curl.cc | b35004b80413c7f0718a9ba58d65f9683fb3cb9c | [
"Apache-2.0"
] | permissive | bostin/SkyAPM-php-sdk | 298cad6ce9008fb2a098c3bb5a4203781e252d6d | ddcfe4d1d97c8c360a7f9352ac6c14a8881bc57c | refs/heads/master | 2022-03-09T13:01:38.544387 | 2022-03-03T16:24:11 | 2022-03-03T16:24:11 | 197,617,608 | 4 | 0 | Apache-2.0 | 2019-11-08T06:55:11 | 2019-07-18T15:57:46 | C | UTF-8 | C++ | false | false | 8,967 | cc | sky_plugin_curl.cc | /*
* Copyright 2021 SkyAPM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... |
28a9c07905e2a42b9bb33322f452b04b4424317f | 38f5b7ef3ce514a970db6b404f5635628867a999 | /OItemWeaponBow.cpp | 339865db0bf2393c0f1f909f8095dd5bcf13d2b5 | [] | no_license | Shinyj/Crypt-of-the-NecroDancer | 3465ff02ec131253d7e5941d508ba1845fe2f415 | 8760a7b9adc9b0f9aca258e12f5e7d73d067ebaa | refs/heads/master | 2020-03-30T08:25:21.481320 | 2018-10-01T00:01:55 | 2018-10-01T00:01:55 | 151,013,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,135 | cpp | OItemWeaponBow.cpp | #include "stdafx.h"
#include "OItemWeaponBow.h"
#include "OPlayer1.h"
OItemWeaponBow::OItemWeaponBow()
{
}
OItemWeaponBow::~OItemWeaponBow()
{
}
HRESULT OItemWeaponBow::Init(string key, int pos, ITEMKIND kind)
{
ItemBase::Init(key,pos,kind);
infoImage = IMAGEMANAGER->FindImage("hint_rangedattack");
effectU = IM... |
497a337f117113017a93704dfa30b284c6dff922 | 44cf55a4c2eed8da013236ee312673f7e1e4566e | /ideas/procpp/mixin_handler/Scheduler.h | 59482f4cd20059466733a74141d9bb43b2b80512 | [] | no_license | wangxx2026/universe | fe0709a0b2dd289815a481cad98a28b3a43b5f5f | d10dd5517e53d196da6a38c1530384093a9812db | refs/heads/master | 2020-03-21T17:45:12.260873 | 2018-03-08T02:51:00 | 2018-03-08T02:51:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,063 | h | Scheduler.h | #pragma once
#include <functional>
#include <time.h>
#include <vector>
#include <sys/timerfd.h>
#include "EventManager.h"
using namespace std;
class IScheduler
{
public:
using CB = function<void(void)>;
virtual int schedule_once(CB cb, float sec) = 0;
virtual int schedule(CB cb, float sec, float interv... |
420fdf82400fd48ea1aea76600219b486dc55dba | d1dbbfca0e2a2a465cacb27db2aaa32733291c10 | /McCluskey.h | 4db00e7ba28e845d0910a52dc6eb5e5ad8e456e4 | [] | no_license | aa89227-zz/K-map-based-logic-minimization | 4bac9c910b736a112992acefeed28679810a9b90 | 366852620660c46aef13fa877368f51493c59167 | refs/heads/main | 2022-12-29T09:34:34.653953 | 2020-10-20T05:47:28 | 2020-10-20T05:47:28 | null | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 9,299 | h | McCluskey.h | #ifndef MCCLUSKEY_H
#define MCCLUSKEY_H
#include <vector>
#include <iostream>
#include <set>
#include "BinaryCode.h"
#include <iomanip>
#include <fstream>
using namespace std;
class McCluskey
{
public:
McCluskey(vector<int>);
struct implicant
{
bool isPrime = true; //prime: true
int oneNum = ... |
bfa22206780ff73c3efac6b2f9c79515bd44f35e | 79e13c2a952ba68b7fcee5ef5b34d9a8c41030f1 | /Codeforces/Playing With Dice.cpp | 312070e3c7f78b3190093c6023a97270fe4162ef | [] | no_license | Shahin15-1573/mycode-arena | 924a571a58eba07bc6455e9aeb02f7186e5b527d | 05b615b80e90d76d05e761f6517ce3053458a44c | refs/heads/master | 2020-02-26T13:18:13.304157 | 2015-11-27T20:08:19 | 2015-11-27T20:08:19 | 47,061,299 | 1 | 0 | null | 2015-11-29T11:43:12 | 2015-11-29T11:43:12 | null | UTF-8 | C++ | false | false | 989 | cpp | Playing With Dice.cpp | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <iostream>
#include <algorithm>
using namespace std;
#define l long int
#define LL long long int
#define ULL unsigned long long
#define MAX 9999
int main(){
int a, b, way, fast, secnd, tmp, cnt, i, j, ans;
while (scanf ("%d... |
98f2a4a24f9288394f7695c3fde4df76dfd77029 | 86113fa41cf26d5c6a5fa4e51f581ec5ef77b1ed | /Coursework2/Sphere/Particle.h | 3c72907168ab5acd5d4ffd9d4cf8036e49faabca | [] | no_license | SamiJones/Collision-Detection | b3120b9bd8843bc1b18a295752153ede05822a26 | 00e04efcfd05b386fe17772b54df92e4ab854dee | refs/heads/master | 2021-03-19T16:44:05.155539 | 2018-01-17T20:42:37 | 2018-01-17T20:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,378 | h | Particle.h | #pragma once
#include "CoreMath.h"
class Particle
{
private:
Vector2 position;
Vector2 velocity;
Vector2 acceleration;
Vector2 forceAccum;
float inverseMass;
float radius;
public:
Particle();
// calculates the next position of the particle.
// Duration denotes the time interval
//since the last update
v... |
6bc2c9c05fa38d677ea81795f7884fe660be793e | 1a1a4c9cbae2ab5e4de408f81cd6ef959993dc64 | /INFO450MULTIPLY/INFO450MULTIPLY.cpp | 680531ce847aedf85dce3cca65756eaf3a6858c2 | [] | no_license | NoeBrow/INFO450MULTIPLY | f01a0c195486b0e0e49cd26cdf0380430a30a9bd | 7052646e86199a295727d5845ed04a13383f6194 | refs/heads/master | 2020-04-10T14:16:33.554586 | 2016-09-13T00:20:59 | 2016-09-13T00:20:59 | 68,053,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | INFO450MULTIPLY.cpp | // INFO450Multiply.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
cout << "Multiplcation table: " << endl;
cout << "\t1\t2\t3\t4\t5\t6\t7\t8\t9\t" << endl;
for (int x = 1; x < 10; x++)
{
cout << x << '\t'... |
0326d3c5213913b370a747bbee382d951a1ffd3a | 2d17040d5f8e7eac41e9d1ef90b5cbab22e52bbf | /include/graphics/scenegraph/modelloader/floormodelloader.hpp | 6ace9fc6331536b4abcf421d1e5c9af83b71e086 | [] | no_license | ne0ndrag0n/Concordia | 5818a09af5919288b3ebbca21f7f2fcef1a4f52a | 98a0444509f9b0110a3e57cc9f4d535fd4585037 | refs/heads/master | 2021-06-17T17:20:22.976001 | 2019-07-27T20:41:47 | 2019-07-27T20:41:47 | 34,757,048 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | hpp | floormodelloader.hpp | #ifndef BB_FLOOR_MODEL_LOADER
#define BB_FLOOR_MODEL_LOADER
#include "graphics/scenegraph/modelloader/proceduralmodelloader.hpp"
#include "graphics/scenegraph/mesh/texturedvertex.hpp"
#include "graphics/scenegraph/mesh/meshdefinition.hpp"
#include "models/infrastructure.hpp"
#include "exceptions/genexc.hpp"
#include <... |
4344e85e529d5b6264ce4985c82ebd9d87430a94 | b4f3090140bd1310655e005361ce0594d1638be5 | /SplashState.cpp | 47441ccf7d1645d35e4470a2e969979148a1524c | [
"MIT"
] | permissive | Adilyaa/Flappy_bird_cpp | 5421713bd5e9ce97d35f34c89f96dfbc52f814be | cc8303278f8ca6f84204ff42b9ed6fcd7dc04358 | refs/heads/master | 2020-03-08T23:43:42.499582 | 2018-04-06T21:24:07 | 2018-04-06T21:40:39 | 128,471,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,371 | cpp | SplashState.cpp | #include <sstream>
#include "SplashState.hpp"
#include "MainMenuState.hpp"
#include "DEFINITIONS.hpp"
#include <iostream>
namespace Sonar
{
SplashState::SplashState( GameDataRef data) : _data( data )
{
}
void SplashState::Init( )
{
_data->assets.LoadTexture( "Splash State Backgrou... |
b33535902b6952a8e5fab59ad89d060c1d1d5fc7 | 154d29faa77b3cb97470cb1e0871c40d29c4bb9f | /propeller debug/P2 Graphical Debug Terminal.h | ec1a297c181344a59744be1d68aecb7ec65d91fa | [
"MIT"
] | permissive | glgorman/rubidium | ac7b521ce820774c39a3900a6dbb8f6db99bd60e | 7ae1cec2666225e8d5962bd94f01fb93504426b7 | refs/heads/master | 2023-07-11T18:17:47.940829 | 2023-06-28T23:48:56 | 2023-06-28T23:48:56 | 130,815,478 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 937 | h | P2 Graphical Debug Terminal.h | // P2 Graphical Debug Terminal.h : main header file for the P2 Graphical Debug Terminal application
//
#pragma once
#ifndef __AFXWIN_H__
#error "include 'stdafx.h' before including this file for PCH"
#endif
#include "resource.h" // main symbols
#include "messages.h"
#include "compatibility.h"
#inclu... |
325012e9eb4e85b83c4d20f29c22b49b36cefc82 | 3c6c9373298fca5549d4a753bf7ed3a336d5209d | /src/stiffness_ellipsoid/src/ellipsoid_visualization.cpp | 2223ffe36c37dbfe57d7980d602b1ca8e8948c02 | [] | no_license | JLSchol/omni_marco_gazebo | 70077a4648b186bd09510e29f35664bd28f13fd0 | 050cb6dad674a5ff05b0cd5713d989d0d9bf05ee | refs/heads/master | 2023-01-30T16:13:07.620255 | 2019-12-06T15:39:30 | 2019-12-06T15:39:30 | 211,870,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,929 | cpp | ellipsoid_visualization.cpp | #include "stiffness_ellipsoid/ellipsoid_visualization.h"
EllipsoidVisualization::EllipsoidVisualization():
nh_("~")
{
ROS_INFO_STREAM("----------------------------------");
getParameters();
initializeSubscribers();
initializePublishers();
}
void EllipsoidVisualization::getParameters()
{
// pub/s... |
1f4c85f22238b390d86a2ab814639fa1d386d789 | 5c7f0c4b112b0e2d37a53b42717d743fc861df72 | /CreatAllParameter - 副本/CreatAllParameter/BullMarkBearMark.cpp | 6b1d612568e1de37a776a95b9589c7b757ceb7d2 | [] | no_license | 136397089/Windows_Projects | 7f8aaf4875880842deba45a91f92b496f43fcad0 | 8f4a5fd325e1b22df6a5649a4f64b4f4105eabdd | refs/heads/master | 2022-02-15T08:41:29.268455 | 2019-08-24T03:36:16 | 2019-08-24T03:36:16 | 162,861,429 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,387 | cpp | BullMarkBearMark.cpp | #include "stdafx.h"
#include "BullMarkBearMark.h"
#include "glog/logging.h"
CBullMarkBearMark::CBullMarkBearMark()
{
}
CBullMarkBearMark::~CBullMarkBearMark()
{
}
#define BULLMARKET 10
MarketTypeList CBullMarkBearMark::GetMarketTypes(const VStockData& pricedata, const vector<string>& day)
{
MarketT... |
0bd9622d18e6717f8ff04c2ca5edf4cfc486f940 | 78e5db3cb0f586d5571854754d72e7866093e8ad | /training/Elephant/main.cpp | 0f77a9eafde85449ad488787c1ff0759168e5fa7 | [] | no_license | Vietdung113/Cp-Algorithm | 347f38df3e0cd0d2763ba591fc77e405dfdd7280 | 24c79ebf69f331cba27783e1a9522cb6c88b0edd | refs/heads/main | 2023-05-24T12:25:10.388062 | 2023-05-17T13:23:48 | 2023-05-17T13:23:48 | 331,326,065 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,147 | cpp | main.cpp | #include<bits/stdc++.h>
using namespace std;
#define DOWN 0
#define UP 1
long long s[2][301][301];
bool visited[2][301][301];
int T;
int N;
long long calc(int a,int b,int k){
if(a+b == 0) return 1;
if(visited[k][a][b]) return s[k][a][b];
visited[k][a][b] = true;
if(k){
for(int i =1; i<=b; i++){... |
5bcd289297956a48387b5b803f7a3f5ab91304c5 | 47ec47a5bb53e6a12bac91e97741e48ae460881d | /Computer Programming Year - II/An II OOP Labs/ATM Homework/ATM Homework/Bank.h | 5f9f5784773288da1a5c9c0b12e7a59ed7fd72f3 | [] | no_license | zVoxty/University | ad97f3bc1ba7e850cad3725098b610e037eceb99 | 8d9822631a3c8c13506d528ab6a3cbf660a511d3 | refs/heads/master | 2020-12-29T02:42:53.186222 | 2018-05-17T05:52:44 | 2018-05-17T05:52:44 | 53,352,966 | 0 | 1 | null | 2016-05-31T09:19:08 | 2016-03-07T19:33:00 | HTML | UTF-8 | C++ | false | false | 510 | h | Bank.h | #pragma once
#include <string>
using namespace std;
class Bank
{
public:
Bank();
~Bank();
//Getters
int getMoney();
string getCardNumber();
string getCardPIN();
string getFirstName();
string getLastName();
//Setters
void setMoney(int money);
void setFirstName(string firstName);
void setLastName(string ... |
ff4b6f2f43859918ecc90fc19eb1fc04c7f6674b | 5260e67aa57535dea1c807e3de993a64fb2d1bb9 | /test/main.cpp | 9bc0c54b0a4117d41a3a8f45b85eb5af047f1272 | [] | no_license | glandu2/librzu | bcbc7fde1f4cc48154da1e6ce4a8ad6a46df7bb7 | 46305cd935e3f887a8e160b8ffe58928c02520a8 | refs/heads/master | 2021-01-10T11:29:39.913740 | 2020-08-26T21:27:10 | 2020-08-26T21:27:10 | 36,559,923 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 196 | cpp | main.cpp | #include "RunTests.h"
#include "gtest/gtest.h"
static void initConfigs() {}
int main(int argc, char** argv) {
TestRunner testRunner(argc, argv, &initConfigs);
return testRunner.runTests();
}
|
8abd0ed690ccfe14d7b9aa3d96030b682a416c20 | e78f80f028b1fba0a09652a4bb6dd4a14283e96f | /Cpp_version/ALI_two_stream_approx_cpp/dydx.cpp | 31bf642d83618d41e332958f532c9bb10f1f775e | [] | no_license | taylerquist/Python_RT | 40790a0e7183c4a42a0d736e65a1d53049483c08 | 30f767f634cb5a3e29c96d1b91622d9a5949f237 | refs/heads/master | 2021-07-11T19:23:22.045762 | 2020-07-17T19:48:48 | 2020-07-17T19:48:48 | 162,329,469 | 0 | 1 | null | 2019-01-09T20:14:41 | 2018-12-18T18:24:07 | Jupyter Notebook | UTF-8 | C++ | false | false | 2,064 | cpp | dydx.cpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cmath>
double dydx(double x, double f, double rho, double avg_I)
{
/*
* Units of each input/output
* f: This is the current value of QHII, dimensionless
* rho: #/cm^3
* avg_I: (erg)(cm^-2)(s^-1)(Hz^-1)(rad^-2)
*/
d... |
d766564ae75a69ea0a9fd270d48d6bdc8e822446 | 451749dfb5f78e53766526406f3c9f89b5e0c90f | /src/indexed_force_tri_3D.cpp | 8a87f8223a7bd4e17c0b9b6802b9bc0b0c8187c2 | [] | no_license | joelfl/tri_tracker | 7daed16ae85e3b9f617d85875e788fb92b8960af | bf809e3c45884dc5b9b300bf3e1284c621544857 | refs/heads/master | 2021-06-25T09:01:07.608883 | 2014-09-05T15:51:17 | 2014-09-05T15:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,525 | cpp | indexed_force_tri_3D.cpp | /******************************************************************************
** Program : indexed_force_tri_3D.cpp
** Author : Neil Massey
** Date : 11/06/13
** Purpose : class to hold 3D triangle information with reference to points in
** the point cloud and reference to indices in the original grid
*... |
157ca88465aee7cccd3b1c27acc69c922d1fc4c9 | a61e42d6ad1928547a06e1c2330d3da143f1b153 | /Week8/CMP105App/Level.cpp | 317660fd3c473362b44c0761e837568103f8c2c3 | [] | no_license | StuartMorrison/CMP105_W8 | 305edc61fe863b40f46dc13e79c5fc080bd6cc07 | bd92741d013d842571e03744954a74d97d5a777d | refs/heads/master | 2021-02-15T05:29:58.152417 | 2020-03-04T12:54:31 | 2020-03-04T12:54:31 | 244,866,988 | 0 | 0 | null | 2020-03-04T10:06:08 | 2020-03-04T10:06:08 | null | UTF-8 | C++ | false | false | 2,810 | cpp | Level.cpp | #include "Level.h"
Level::Level(sf::RenderWindow* hwnd, Input* in)
{
window = hwnd;
input = in;
// initialise game objects
/*
ball1Text.loadFromFile("gfx/Beach_Ball.png");
ball1.setTexture(&ball1Text);
ball1.setSize(sf::Vector2f(100, 100));
ball1.setPosition(100, 100);
ball2.setTexture(&ball1Text);
ball2.s... |
87a223312031d9a6a3879ceab78de594df27f38b | 8bb2296029fd8e05130f1a83168f2ab36a768c2b | /p10683.cpp | f16ff226a05baf0aeddcacb79c98a97cbf695ceb | [] | no_license | djohn833/UVA | 866de3773da0774be08d0635ca70b5f53daaca02 | b5e8a633c9042c0d37e3f405ec036e40b295be59 | refs/heads/master | 2016-09-05T23:13:12.566349 | 2015-02-17T01:32:38 | 2015-02-17T01:32:38 | 11,392,466 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 663 | cpp | p10683.cpp | #include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
string t;
int h, m, s, c;
int
digits(int i, int n)
{
return atoi(t.substr(i, n).c_str());
}
int
main()
{
long long time;
while (cin >> t) {
h = digits(0, 1);
m = digits(1, 2);
s = dig... |
d1632554680880853d8a6c267a7c22cd09c13469 | d96417411dfc6536b1ecc6d56fe1fc895eeaf96d | /varsayilan.cpp | de1e9099f5210524ddaace776166515b7a16507a | [] | no_license | kadertarlan/c_plus_plus | 4423ea8331cc520176bfd3e7bed84277612ae378 | 4f52e3b8ae12af16c10d0cc32f70def0e992d786 | refs/heads/master | 2021-01-20T10:41:29.991641 | 2014-02-15T14:10:50 | 2014-02-15T14:10:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | varsayilan.cpp | #include <iostream>
using namespace std;
double kare(double uzunluk, double genislik=0){
if(!genislik) genislik=uzunluk;
return uzunluk * genislik;}
//double kare(double uzunluk){
// return uzunluk* uzunluk;}
int main(){
cout << "10* 5.8 in alanı:" ;
cout << kare(10.0,5.8) << endl;
cout << "10*10 un al... |
d61bfd1e2ded744e4533fac239d75ebf96b94a76 | 594d4a72ec745747e8266a569144928b93258324 | /src/particle.hpp | 6c0e8ada1399e9074043d5ffd0e624cdc537aa09 | [
"MIT"
] | permissive | mistakia/wpaFloor | 3f227b0fc9fa93aa4b78c40f1fae7fe4fb0c187d | 823d97782c5b22f809e19080770535d40cc6e927 | refs/heads/master | 2023-04-07T14:30:22.889590 | 2023-04-01T01:44:36 | 2023-04-01T01:44:36 | 181,741,221 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 913 | hpp | particle.hpp | //
// particle.hpp
// wpaFloor
//
// Created by mistakia on 15/04/2019.
//
#ifndef particle_hpp
#define particle_hpp
#include <stdio.h>
#pragma once
#include "ofMain.h"
#include "ofxOpenCv.h"
#include "ofxColorGradient.h"
class Particle{
public:
Particle(ofParameterGroup & particleParameters);
void set... |
4d58736c9143f506ea0d3846bd4e1583a8fb2b91 | fe455903738d1699afdb68a9153361536663e7df | /ArduinoDriver_ASCOM_RESPONSE.ino | a773bc42b37bffbaf977e76cd1ea4d1dac8552e4 | [
"MIT"
] | permissive | sdrexler11791/Arduino_Ascom_Project | d6ff58f941e6c161b51360ed3921b9ac47c1578e | 59c4eb6cb865a0ddbbe081ef7c81dccea3707c37 | refs/heads/master | 2021-09-15T20:23:32.961994 | 2018-06-10T11:11:54 | 2018-06-10T11:11:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,145 | ino | ArduinoDriver_ASCOM_RESPONSE.ino | // Include Libraries
#include "Arduino.h"
// Pin Definitions
#define STEPPER1_PIN_STEP 3
#define STEPPER1_PIN_DIR 2
#define STEPPER2_PIN_STEP 5
#define STEPPER2_PIN_DIR 4
// Fixed track rate
// 1 sidereal day = 86'164'000 ms
// 1 day = 1 big wheel turn = 144 small screw turns (in RA)
// 1 screw turn = 598'361 ms
//... |
c1741902835c2d7273dee75ff70fd85d21184cc3 | 9bb4a516a6571abf76a3ea313c20186f6107dfa1 | /main.cpp | ad02c58df5e3c811ef52039f38b4521187d590a2 | [] | no_license | aawee0/openCV_img_reg | da59a2ff2d6b30f268d2eda7c3a7abc659e08b0b | 9c75ac48cd1ad257a5ab6b20680b8354c9e9d440 | refs/heads/master | 2020-04-05T17:40:52.004018 | 2015-09-23T04:50:18 | 2015-09-23T04:50:18 | 42,975,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,033 | cpp | main.cpp | #include <opencv\cv.h>
#include <opencv\highgui.h>
#include <vector>
#include <dlib/optimization.h>
#include <math.h>
#define OPT 1
#define SMP 0
#define THRESH 160
#define THR1 0.5
using namespace cv;
using namespace std;
using namespace dlib;
typedef matrix<double,0,1> column_vector;
IplImage* imgSrc;
IplImage* im... |
5977119a8e8e0969d5ddda07e5d6f2ec1fd1b58b | 2b554aa96a9846e13d9bd44ffd49f6afff1bef0b | /zerojudge/c628 皮皮的邀約/c628 皮皮的邀約(NA 20%).cpp | 29814da0f9cdca25a9fe68e8abe04d6b23299f6a | [] | no_license | mmi366127/Online_Judge | 193d0377686ebc7178d73f3fa57f9810bf8427bf | b9bd97b17a792f8b871b181c672201c07488f778 | refs/heads/master | 2021-07-09T19:55:34.466588 | 2020-09-27T06:09:12 | 2020-09-27T06:09:12 | 191,015,108 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,715 | cpp | c628 皮皮的邀約(NA 20%).cpp | #includebitsstdc++.h
#define ls(x) (x1)
#define rs(x) ((x1)1)
#define maxn 200007
using namespace std;
struct seg{
vectorint ST;
seg(int _sz) ST(_sz2) {}
void build(int x,int L,int R,int a[]){
if(L==R){
ST[x] = a[L];
return;
}
int mid = (L+R)1;
... |
f70509966fd5f5342a86556395d15d997dc84b63 | 802f0c1dd855693f709da4024b50d6d4938c13ff | /test/ocp_qp/test_qpsolvers.cpp | 639299859f6d66edff8539ea6f03db8aa18b2582 | [
"BSD-2-Clause"
] | permissive | acados/acados | 9cd480da3462725506f06199838e3cdae007d0c8 | 64166a37859108ab74ce6bf7408501f9bd4a89da | refs/heads/master | 2023-08-16T13:03:44.298740 | 2023-08-15T13:07:48 | 2023-08-15T13:07:48 | 55,497,573 | 558 | 213 | NOASSERTION | 2023-09-01T09:01:33 | 2016-04-05T10:06:48 | C | UTF-8 | C++ | false | false | 8,025 | cpp | test_qpsolvers.cpp | /*
* Copyright (c) The acados authors.
*
* This file is part of acados.
*
* The 2-Clause BSD License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above ... |
6424fa218cebbc11aaa12af8159043085576241d | e5c23bbbfcfc17ae04b4abf006caa02180d8ca63 | /Posts/Code/发帖小工具/Posts.h | 50dbfa83ac6e4ff41968a52ca2dcaa34bf38d7f9 | [] | no_license | jiftle/Posts | 1e9b1e69fde6e71e4c3c0eadfd6c67aea674199e | 3affe8e80e1d37644aa3f3ba4998ab63591921a0 | refs/heads/master | 2020-04-11T17:33:44.420672 | 2015-02-18T09:33:46 | 2015-02-18T09:33:46 | 161,965,838 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,492 | h | Posts.h | // Posts.h : main header file for the POSTS application
//
#if !defined(AFX_POSTS_H__50A0BFB9_187D_4CDE_B1D5_961DEAC3B1EF__INCLUDED_)
#define AFX_POSTS_H__50A0BFB9_187D_4CDE_B1D5_961DEAC3B1EF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before ... |
38c3fac11c381297bfa7c702678db4171b377bb5 | 4832149691f7cbcc30bbd3c2ac9abd5980344707 | /C++ Solutions/Array & String/LC022_GenerateParentheses.cpp | dc84ce09f242c7104774fa2fe2b52b3707095189 | [] | no_license | kapil8882001/Coding-Practice-1 | 4149dc3151517e8a4b5d9bed507a58c309b79ad2 | f0679e543628bf093419e574dffad1a0a36dca2c | refs/heads/master | 2022-02-18T14:47:15.402707 | 2019-09-24T07:18:21 | 2019-09-24T07:18:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | cpp | LC022_GenerateParentheses.cpp | //Leetcode: Generate Parentheses
/*
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()()"
*/
class Solution {
public:
vector<string> ans;
vector<string> genera... |
5c2802746264d697818ad5379dc3730e673e6dda | 9b17f84f716812f68490bbf685e0fb585dc2c2f9 | /gloox/addon/qsv.h | 7b745ab94d72a82810e97d880458e8bc35196397 | [] | no_license | SiteView/eccmeteor | 5f2e81dbf373290cf3b21c3df061c34843f807d1 | 12439345a9d50395c52d879b8777a31d042475a7 | refs/heads/master | 2020-05-30T12:15:18.035344 | 2013-11-29T09:02:07 | 2013-12-02T02:38:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 869 | h | qsv.h |
#include <string>
#include <map>
#include <list>
#include <vector>
using std::string;
using std::vector;
using std::map;
typedef std::map<string,string> StrMap;
typedef std::vector< StrMap > ForestVector;
typedef std::map< string, StrMap > ForestMap;
bool qt_GetForestData (ForestVector & fvec, StrMap & inwhat, std... |
0c199360f6b9abeec21e848301fad9ced720f82b | c26267aae7dc1cac467010e73fa7893aa581c1f0 | /Prácticas/Practica4/src/4_DemoMatriz2D_1.cpp | 5ee9ec8b1a08ab130374da10a5e61218d316200c | [
"MIT"
] | permissive | josepadial/MP | 18dab956aa02509a986cc8895009f90f904cb4b2 | d7bb62943cb84b0e8ccb5336498328f536e001ee | refs/heads/master | 2021-05-23T13:21:54.583254 | 2020-04-05T23:17:21 | 2020-04-05T23:17:21 | 253,308,099 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,840 | cpp | 4_DemoMatriz2D_1.cpp | /*
Nombre: Jose Antonio Padial Molina
DNI: 77391553A
Curso: 2016/2017
Grupo: 2ºB
Fecha: 28/03/2017
*/
#include "Matriz2D_1.h"
int main(){
int fil, col;
int fil_ini, fil_fin;
int col_ini, col_fin;
int fil_eli, col_eli;
time_t t;
srand((int) time(&t));
cout << "Introduzca el numero de filas: " << endl;
c... |
c1fef71bf45562da4462f98def344c5b54d15e76 | fa889d051a1b3c4d861fb06b10aa5b2e21f97123 | /kbe/res/client/sdk_templates/ue4/Source/KBEnginePlugins/Private/MessageReader.cpp | 9ee68440c47f0c2e322da4b313fc2d364d6b1c76 | [
"MIT",
"LGPL-3.0-only"
] | permissive | BuddhistDeveloper/HeroLegendServer | bcaa837e3bbd6544ce0cf8920fd54a1a324d95c8 | 8bf77679595a2c49c6f381c961e6c52d31a88245 | refs/heads/master | 2022-12-08T00:32:45.623725 | 2018-01-15T02:01:44 | 2018-01-15T02:01:44 | 117,069,431 | 1 | 1 | MIT | 2022-11-19T15:58:30 | 2018-01-11T08:05:32 | Python | UTF-8 | C++ | false | false | 3,685 | cpp | MessageReader.cpp |
#include "MessageReader.h"
#include "KBDebug.h"
MessageReader::MessageReader():
msgid_(0),
msglen_(0),
expectSize_(2),
state_(READ_STATE_MSGID),
pMemoryStream_(new MemoryStream())
{
}
MessageReader::~MessageReader()
{
KBE_SAFE_RELEASE(pMemoryStream_);
}
void MessageReader::process(const uint8* datas, MessageL... |
7fd389e5a06b5c4b7ef511ec50978eb54d6e9997 | 3f75df57ae155e3eaada2885b12b78a63bbc43a1 | /source/Geometry/tbeam/src/EncoderTBscecal01.cc | 352b925b5e872a16f13a18043118ca07239d54e0 | [] | no_license | nkxuyin/mokka-cepc | 52bb13455b6fc5961de678ad7cb695f754e49a47 | 61ce9f792a4cb8883f0d1cd1391884444b372dc0 | refs/heads/master | 2021-01-20T10:42:00.982704 | 2015-02-11T12:59:43 | 2015-02-11T12:59:43 | 24,243,983 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,456 | cc | EncoderTBscecal01.cc | #include "Control.hh"
#include "EncoderTBscecal01.hh"
#include "CalHit.hh"
#include <assert.h>
#define K_Protoshift 0 // K = 8 bits
#define J_Protoshift 8 // J = 8 bits
#define I_Protoshift 16 // I = 8 bits
#define K_ProtoMask (unsigne... |
af1ae52b8509d857ad379a8dd7f17d839d62db04 | b84750a9c52170335dafbf6722e3f3dcef48e604 | /src/Music.cpp | 3cdf131d702175183b10a873e0659c060e593013 | [
"MIT"
] | permissive | Daivuk/onut | 092605d61921aa00e38140ac1b48ae6bdfb9057e | a257a644db6fdfeed9a6e28a37c7d20682c8b7b8 | refs/heads/master | 2023-08-27T23:10:55.607302 | 2023-08-15T20:59:35 | 2023-08-15T21:00:28 | 27,346,843 | 53 | 9 | MIT | 2021-01-08T15:24:59 | 2014-11-30T19:15:13 | C | UTF-8 | C++ | false | false | 497 | cpp | Music.cpp | // Onut
#include <onut/ContentManager.h>
#include <onut/Music.h>
namespace onut
{
Music::Music()
{
}
Music::~Music()
{
}
}
OMusicRef OGetMusic(const std::string& name)
{
return oContentManager->getResourceAs<OMusic>(name);
}
void OPlayMusic(const std::string& name, bool loop)
{
auto ... |
f1dd5bd770233bdc771887df8ff85f32142021d3 | d3b7136c8f233b864ef18faff03259cad5cbd5f8 | /example/rfSender/rfSender.ino | 3e91a17f71e5f504ceab7430ccb8c586d141eb5c | [] | no_license | vaginessa/esp8266_rfSniffer | 4a44d2ad56149b10d4269c6392bb5eb622c58f80 | f24831f344e810ceaa2fab356a1309cf7237c553 | refs/heads/master | 2020-04-17T09:23:31.547137 | 2018-04-05T04:37:06 | 2018-04-05T04:37:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,057 | ino | rfSender.ino | /*
Example for different sending methods
https://github.com/sui77/rc-switch/
*/
#include <RCSwitch.h>
#include <RfProcl.h>
#include <RfDevices.h>
#define WEMOS_PIN_D0 16u // D0
#define WEMOS_PIN_D1 5u // D1
#define WEMOS_PIN_D2 4u // D2
#define WEMO... |
9aa917c5a2ec9f4f6a4d91becb42e70d037d7d05 | bd86855370d1225a69945061f84f5f55002c844b | /src/inc/agent/TaskWorker.h | c83150e751f12e7f29b5617f77c57277b9e0cb91 | [
"Apache-2.0"
] | permissive | wangguitao/intelligent-protector | 6675b2740d618586e4c42059299811fba7db1b6b | f521e23db3f57f30f5e1dc05f5ec95d392440474 | refs/heads/master | 2022-04-01T01:58:31.491728 | 2018-02-01T14:26:53 | 2018-02-01T14:26:53 | 119,827,684 | 5 | 3 | null | null | null | null | GB18030 | C++ | false | false | 1,815 | h | TaskWorker.h | /*******************************************************************************
* Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved.
********************************************************************************/
#ifndef _AGENT_TASK_WORKER_H_
#define _AGENT_TASK_WORKER_H_
#include "pluginfx/... |
2796c9fde512cdb3a5d6ae7119ff5538b13675af | fcb2003b548494a0ce6a0f7bcac36aecab83bf20 | /finddErrors/finddErrors/findError.cpp | 0277b1b37e4af1fc114800844ba360193ec4389d | [] | no_license | anderfernandes/ITSE2421 | c594fb66a1546607984d385859d82b487ec5c9ee | 369920fddbebebdb4cf557ef4af7e4e18ea569b9 | refs/heads/master | 2016-09-06T11:51:32.321491 | 2015-05-15T12:38:28 | 2015-05-15T12:38:50 | 15,922,213 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | findError.cpp | // findErrors.cpp
// This program has several syntax and logic errors.
#include <iostream>
using namespace std;
int main()
{
// Changed "doubl" in line below to "double". (Anderson Fernandes)
double length = 0, // Length of a room in feet
width = 0, // Width of a room in feet
... |
32c2054c7dcf5ff967d913b2d1ae21fed3164974 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir521/dir522/dir572/dir2774/dir2803/file2876.cpp | a2bf40ab9c6cea2b82163e8f586103eb48a51c6a | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 111 | cpp | file2876.cpp | #ifndef file2876
#error "macro file2876 must be defined"
#endif
static const char* file2876String = "file2876"; |
632ec12ac4139a2d1f7f996001eb5126bae42135 | 1dbf007249acad6038d2aaa1751cbde7e7842c53 | /gaussdb/include/huaweicloud/gaussdb/v3/model/Resource.h | b0524cacef7d2d6d8d210dc8b31e474973d67887 | [] | permissive | huaweicloud/huaweicloud-sdk-cpp-v3 | 24fc8d93c922598376bdb7d009e12378dff5dd20 | 71674f4afbb0cd5950f880ec516cfabcde71afe4 | refs/heads/master | 2023-08-04T19:37:47.187698 | 2023-08-03T08:25:43 | 2023-08-03T08:25:43 | 324,328,641 | 11 | 10 | Apache-2.0 | 2021-06-24T07:25:26 | 2020-12-25T09:11:43 | C++ | UTF-8 | C++ | false | false | 1,727 | h | Resource.h |
#ifndef HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_Resource_H_
#define HUAWEICLOUD_SDK_GAUSSDB_V3_MODEL_Resource_H_
#include <huaweicloud/gaussdb/v3/GaussDBExport.h>
#include <huaweicloud/core/utils/ModelBase.h>
#include <huaweicloud/core/http/HttpResponse.h>
#include <string>
namespace HuaweiCloud {
namespace Sdk {
namespa... |
05a42054e16e4eb660750e9f95c27ae91d45cb33 | 0e6853db844833b61d0ce60fa6fdf11ee499e791 | /src/Territory.cpp | 1d2685f2a04c5ddff0a091bbf216ca6138b2270d | [] | no_license | Schtekt/RiskGame | cbecf781193337816d22f1e07d1da4c5383d9105 | 8ab2cfd3b1d583942124290a4935753bce633144 | refs/heads/master | 2021-05-20T03:01:24.854604 | 2020-06-15T15:37:04 | 2020-06-15T15:37:04 | 252,157,607 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | cpp | Territory.cpp | #include "Territory.h"
#include "Player.h"
Territory::Territory(const std::string& name): m_owner(nullptr), m_troopCountToken(nullptr)
{
m_name = name;
m_armyCount = 0;
}
void Territory::AddNeighbour(Territory* area)
{
m_neighbours.push_back(area);
}
void Territory::SetArmyCount(unsigned int count)
{
... |
90c5bc7bae143480d1dac8d708132bdd573ef184 | 80f270c68e853c9f7a885b4744a21ad4c93e05cc | /UglyUnsorted/Summer/cpp/petunin.cpp | c2c1598e6f221d00ff8e81672c6f690c008ce790 | [] | no_license | chankhavu/CancerDetection | bc0453cad614ea82596808ab4c68d770cc2255d3 | ee2cf082929f33f2096033b153606045abfa6e68 | refs/heads/master | 2020-12-07T02:39:09.970163 | 2017-06-28T10:25:26 | 2017-06-28T10:25:26 | 95,491,385 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,566 | cpp | petunin.cpp | #include <iostream>
#include <iomanip>
#include <queue>
#include <string>
#include <algorithm>
#include <Magick++.h>
#include <tuple>
#include <assert.h>
#include <cstdlib>
typedef struct {
double r, g, b;
} point3d;
inline double dist2(point3d a, point3d b){
return (a.r-b.r)*(a.r-b.r) + (a.g-b.g)*(a.g-b.g) + (a.b... |
e055328f579355e450f6999cbf8beb250d9d312e | 1e49fa19e10c5e3a610960d6017196ebaac9b552 | /cheats/menu.cpp | 801c4fbe28237727e20141d483eb34cd120ddfd3 | [
"Unlicense"
] | permissive | Aholicknight/Legendware-V3 | 6504a28892eb29e941b67ac9e3feb906fba87e5f | de63ad96fe233f81c5952c327469239de223f08c | refs/heads/main | 2023-01-13T19:28:56.868371 | 2020-11-19T13:31:37 | 2020-11-19T13:31:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 91,308 | cpp | menu.cpp | #include <ShlObj_core.h>
#include "menu.h"
#include "../ImGui/code_editor.h"
#include "../constchars.h"
#include "../cheats/misc/logs.h"
#define ALPHA (ImGuiColorEditFlags_AlphaPreview | ImGuiColorEditFlags_NoTooltip | ImGuiColorEditFlags_NoInputs | ImGuiColorEditFlags_NoLabel | ImGuiColorEditFlags_AlphaBar| ImGuiCol... |
ff85956820babb37600b0f78862b6c88d564ddd0 | 70fe255d0a301952a023be5e1c1fefd062d1e804 | /剑指Offer注解/21.cpp | ba042e35c8804389f23db97535e0b3df6cc0d39f | [
"MIT"
] | permissive | LauZyHou/Algorithm-To-Practice | 524d4318032467a975cf548d0c824098d63cca59 | 66c047fe68409c73a077eae561cf82b081cf8e45 | refs/heads/master | 2021-06-18T01:48:43.378355 | 2021-01-27T14:44:14 | 2021-01-27T14:44:14 | 147,997,740 | 8 | 1 | null | null | null | null | GB18030 | C++ | false | false | 1,606 | cpp | 21.cpp | #include<bits/stdc++.h>
using namespace std;
void Reorder(int *pData, unsigned int length, bool (*func)(int));
bool isEven(int n);
//输入要做操作的数组,数组的长度
void ReorderOddEven_2(int *pData, unsigned int length) {
Reorder(pData, length, isEven);//在这里传入要用于判断的函数
//当条件改变时,只要再写一个函数,然后在这里改变传进去的函数即可
}
//输入要做操作的数组,数组的长度,用于判断的函数... |
e74af3e927fdcbd21cedd723d0bc375641d8cb8c | a85d397a09ad060c3eefcaf977013423cef3f846 | /Sheet2/source/CenterlineExtraction.cpp | 411d5c70ee8d6d5a7f5a5d72897503f220a14163 | [] | no_license | skillii/MedBildA | 4c5bcf6ae163919a43d7e71503e3087aa3ec2920 | bea887178d7f465a96e2d724c945eded5e62c732 | refs/heads/master | 2020-12-24T15:58:28.896043 | 2012-06-25T18:49:53 | 2012-06-25T18:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,414 | cpp | CenterlineExtraction.cpp | /*
* CenterlineExtraction.cpp
*
* Created on: Jun 20, 2012
* Author: tom
*/
#include "CenterlineExtraction.h"
#include "TubeDetection.h"
#include "Numericshelper.h"
#include <cmath>
const float CenterlineExtraction::threshold_low = 0.04f;
const float CenterlineExtraction::threshold_high = 0.15f;
const in... |
a655e24905a3f47df0f8721c4566347a73b4246d | 36c31b485a5906ab514c964491b8f001a70a67f5 | /Codeforces/CF 1300 - 1399/CF1395/CF1395F.cpp | f85faf200d1b0f7735fca74bac89c48992e46129 | [] | no_license | SMiles02/CompetitiveProgramming | 77926918d5512824900384639955b31b0d0a5841 | 035040538c7e2102a88a2e3587e1ca984a2d9568 | refs/heads/master | 2023-08-18T22:14:09.997704 | 2023-08-13T20:30:42 | 2023-08-13T20:30:42 | 277,504,801 | 25 | 5 | null | 2022-11-01T01:34:30 | 2020-07-06T09:54:44 | C++ | UTF-8 | C++ | false | false | 1,046 | cpp | CF1395F.cpp | #include <bits/stdc++.h>
#define ll long long
#define sz(x) (int)(x).size()
using namespace std;
int main()
{
ios_base::sync_with_stdio(0); cin.tie(0);
int n,a1=5e5,a2=0,b1=5e5,b2=0,x,y,c=0,d=1e6,e=0,f=1e6;
cin>>n;
string s;
for (int i=0;i<n;++i)
{
cin>>s;
x=0;y=0;
for (... |
5bc1719658b3f3f203a96e102fc319dc2c9441e4 | 7d03e3c7f7ab8c301290904bf0e44e09652d0d3d | /plugins/Type-length-value/Interface/core_interface.h | 2fb76ddf2fef389af689e33c8725478d04247a93 | [] | no_license | mak733/Flashlight | 1755917d62cd2b64d92780086445ed8efd073bda | 3f41027eb0f77847588a4a72ae5321478ea6adbd | refs/heads/master | 2021-10-27T09:37:01.059168 | 2021-10-13T09:15:51 | 2021-10-13T09:15:51 | 248,747,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 738 | h | core_interface.h | #ifndef CORE_INTERFACE_H
#define CORE_INTERFACE_H
//Подумать над размещением этого интерфейса в иерархии плагинов.
//Следует разместить этот класс в папке plugins, и применять его к новым протоколам
#include <QtPlugin>
class CoreInterface {
public:
virtual ~CoreInterface() {}
virtual QVariant value(c... |
dfb739a8e50c8ffc820cea12750bccf4eb8f1852 | 9939aab9b0bd1dcf8f37d4ec315ded474076b322 | /libs/core/datastructures/tests/performance/small_vector_benchmark.cpp | 964a3aa75c0a64e69e31be8fc88881eeb40d9a50 | [
"BSL-1.0",
"LicenseRef-scancode-free-unknown"
] | permissive | STEllAR-GROUP/hpx | 1068d7c3c4a941c74d9c548d217fb82702053379 | c435525b4631c5028a9cb085fc0d27012adaab8c | refs/heads/master | 2023-08-30T00:46:26.910504 | 2023-08-29T14:59:39 | 2023-08-29T14:59:39 | 4,455,628 | 2,244 | 500 | BSL-1.0 | 2023-09-14T13:54:12 | 2012-05-26T15:02:39 | C++ | UTF-8 | C++ | false | false | 3,536 | cpp | small_vector_benchmark.cpp | // Copyright (c) 2022 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <hpx/config.hpp>
#include <hpx/chrono.hpp>
#include <hpx/datastructures/detai... |
cef0f57786746bc8c9be7b422a2d798b02462f1c | 5fa9510a4c45f6abc7a09cdf909de2451058dcdb | /BlindCurated75-problem/DecodeWays#24.cpp | d488fff08f671b0c7f325ff6ff12bbc04127413e | [] | no_license | eecheng87/LeetCode-top-prob | 5f8a4186bc9f6932377d3495fb2b59c399c119b7 | 8e1e8a1479efcdf3be3362da408066402658a4eb | refs/heads/main | 2023-05-29T08:24:41.920355 | 2021-06-08T02:02:18 | 2021-06-08T02:02:18 | 334,911,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 835 | cpp | DecodeWays#24.cpp | class Solution {
public:
int numDecodings(string s) {
if(s.size() < 1 || s[0] == '0')return 0;
int dp[s.size() + 1];
// dp[i] means # of method compose length i string
dp[0] = 1;
dp[1] = s[0] == '0' ? 0 : 1;
for(int i = 2; i <= s.size(); i++){
int digit = ... |
c1bcfc65bbe9fde4aeb95a29b7a6fb112942d811 | 6b36d141c261a00dc15d792929f6fd602e204d2a | /BOJ/6137.cpp | add408ca546cd863eacd3af7d9fe509a3cee555b | [] | no_license | quasar0204/Problem-Solving | 82bb5f79fca9300df5cc2e366f942563c5cf1cd8 | 68b52f326c5c402d9e9beb10307b947c62741445 | refs/heads/master | 2023-05-14T06:47:26.741138 | 2021-06-06T14:31:46 | 2021-06-06T14:31:46 | 290,471,843 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,293 | cpp | 6137.cpp | #ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <map>
#include <set>
#include <deque>
#include <random>
using namespace std;
#define all(v) (v).begin(),(v).e... |
c6444a238d2b6e259b79f71566d6e8cb7d729dbe | 228a0cec7ea2dd2bb7a95739167a93e2a856f67c | /robot1.0__pre_pwmboard_/robot1.0__pre_pwmboard_.ino | 6c12bd18496dcda268221529347ce8448dad033b | [] | no_license | sherwinner/roboto | c2fa5b09fa4e7269ee5f0f506c76a19bdaede57e | 22df2bc4596aa96f7346658a0f704c9e3ca2ac62 | refs/heads/master | 2020-03-10T00:17:16.908081 | 2018-04-28T11:56:07 | 2018-04-28T11:56:07 | 129,078,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,887 | ino | robot1.0__pre_pwmboard_.ino | //add servo library
#include <Servo.h>
//define our servos
Servo servo1;
Servo servo2;
Servo servo3;
Servo servo4;
Servo servo5;
Servo servo6;
//define our potentiometers
int pot1 = A1;
int pot2 = A2;
int pot3 = A3;
int pot4 = A4;
int pot5 = A5;
int pot6 = A6;
//variable to read the values from the analog pin (pote... |
ad989aeb5d968213026641331c4d28ad6aa1e02c | 461473dbd2713ff19eed84e21b40438ef0512763 | /include/delfem2/ls_block_sparse.cpp | e489c0e579a00ae198d9a49e47e61cde92acac96 | [
"MIT"
] | permissive | nobuyuki83/delfem2 | 7211c7eb3c59293c4bc92d285600d6404952dea8 | 104f3deb80e7501b3dd5eea0456d10c4e5095753 | refs/heads/master | 2022-11-13T21:46:13.926755 | 2022-11-06T06:38:04 | 2022-11-06T06:38:04 | 140,655,906 | 194 | 21 | MIT | 2022-11-06T06:38:06 | 2018-07-12T03:25:11 | C++ | UTF-8 | C++ | false | false | 19,513 | cpp | ls_block_sparse.cpp | /*
* Copyright (c) 2019 Nobuyuki Umetani
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "delfem2/ls_block_sparse.h"
#include <cassert>
#include <complex>
namespace delfem2::mats {
DFM2_INLINE double MatNorm_Assym(
co... |
c9621f624e35399cc2b8ca0c025b2c470afe9ff5 | 092921fd9604b676d5a62f955513029231e30f19 | /signature_test/src/libCrypto/Schnorr.cpp | c32805eb115af832cdd6c949067cc18d5ce3a5ce | [] | no_license | LogosNetwork/crypto-function-benchmark | 375ffb77309a50dae13d307b9c822ede6068950b | 0468833f7735046c6c0a5d45d3090a89177c3176 | refs/heads/master | 2020-05-02T08:19:09.397721 | 2019-03-26T17:55:59 | 2019-03-26T17:55:59 | 177,839,603 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 31,970 | cpp | Schnorr.cpp | /**
* Copyright (c) 2018 Zilliqa
* This source code is being disclosed to you solely for the purpose of your participation in
* testing Zilliqa. You may view, compile and run the code for that purpose and pursuant to
* the protocols and algorithms that are programmed into, and intended by, the code. You may
* not d... |
193904adcf7bfa79d4990a777337e2c7270a7144 | b4472ed45d300d163625bffc83e32d5d100ef595 | /TAIFATECH/ANDROID/scJNI/src/cidana_screencap_Capture.cpp | 2420356ed722ac7c421eb8e9f0b29878212adea3 | [] | no_license | cswei0501/SCREENCAPTURE | da44b8aff35efb92e53ab9272cf7397d5592f0c5 | 6e0c52711ed0467732617e7b73bf6f403df62b79 | refs/heads/master | 2020-12-30T02:31:46.347637 | 2013-09-12T02:52:09 | 2013-09-12T02:52:09 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 33,140 | cpp | cidana_screencap_Capture.cpp | /*
* Copyright (C) 2010 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 applicable l... |
2a2daac8ce4218fa8b7a4dbcaca6e80009db90ca | 1e01340dd92a17332c2aa25eb4dbc7e5bd869bd6 | /Ld40/TheDestructor.h | 6c20fcda6bb3c11e90a848baf2ebe02afdb76d3b | [] | no_license | Harrimaga/LD40 | d7d5f5aff74c78d690bbf0ace1dcf8889fce76d0 | c574b68b5233fed3966fc6d9e4a92f7db6684089 | refs/heads/master | 2023-01-03T06:13:05.887386 | 2020-10-28T15:35:41 | 2020-10-28T15:35:41 | 308,053,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | h | TheDestructor.h | #pragma once
#include "Enemy.h"
#include "Globals.h"
#include "BigCircle.h"
#include "RandomRain.h"
#include "ThunderStorm.h"
class TheDestructor : public Enemy {
public:
TheDestructor(int x, int y, std::vector<Direction*> movement) :Enemy(Globals::sprites->at(2), x, y, movement)
{
attackAmount = -1;
attackTime =... |
fe7b895ecd60d2a49e3edc8937a4093a5d08c3cb | 2cce15887362c58716aaec9eaa486363984bcf42 | /chapter9/9.13.cpp | 7fee9d895815ff0f9cd3bf27682eaf577f6fc5db | [] | no_license | LiwenChii/cpp_practice | c0f2fc4ab1f44313023f4d69e62f0bf0b6835a5d | fa04723d764193280814509fcb6385e9e8336951 | refs/heads/master | 2020-03-30T10:17:37.952146 | 2016-02-25T14:58:29 | 2016-02-25T14:58:29 | 41,008,719 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | cpp | 9.13.cpp | #include <iostream>
#include <list>
#include <vector>
using std::cin;
using std::cout;
using std::endl;
using std::list;
using std::vector;
int main()
{
list<int> lst(6, 6);
vector<int> ivec(6, 9);
vector<double> dvec(lst.begin(), lst.end());
for (auto d : dvec)
{
cout << d << " ";
}
cout << endl;
vector... |
935144b1607ad2b8ae3696a59aa583021cd379e4 | 814710876d2287f746ad76b3383423a7762f740a | /1.7_for_and_massives/bowling.cpp | 3189307ff56111cc1d3878672ab4ef4f9e8d92bf | [
"MIT"
] | permissive | yoshi42/simple_but_important_algorythms | 2e4a672fd6d202d2afe12c6a6d11462048048b4a | 301b529cea13c121579901ddeffaa062a49f4caf | refs/heads/master | 2021-07-18T02:08:47.853784 | 2017-10-27T07:43:34 | 2017-10-27T07:43:34 | 108,515,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | bowling.cpp | #include <iostream>
#include <vector>
using namespace std;
// Є ряд чисел:
int main()
{
int n = 0, k = 0, l = 0, r = 0 ;
cin >> n;
vector <int> a(n);
for (int i = 0; i < a.size(); i++)
{
a[i] = 1;
}
cin >> k;
for (int w = 0; w < k; w++)
{
cin >> l;
cin >> r;... |
fa176b5607d3d4ba767d4eae25c91a8ab915e3e3 | b9606c302edeb76b52ab22bdccd596d9f7a94209 | /modules/task_2/arisova_a_sleeping_barber/sleeping_barber.cpp | 21c7120e072f452b9fb5e3543ff2b9496d737230 | [] | no_license | DrXlor/pp_2019_autumn | 31f68a32f2fc334f4ce534161fb32c8cb70baf1c | e01960c714ad1e86d68cbf3be551741106dc908d | refs/heads/master | 2020-09-20T11:56:11.773825 | 2019-11-26T09:00:15 | 2019-11-26T09:00:15 | 224,469,332 | 2 | 0 | null | 2019-11-27T16:11:27 | 2019-11-27T16:11:26 | null | UTF-8 | C++ | false | false | 3,055 | cpp | sleeping_barber.cpp | // Copyright 2019 Arisova Anastasiia
#include <mpi.h>
#include <queue>
#include <ctime>
#include <algorithm>
#include "../../../modules/task_2/arisova_a_sleeping_barber/sleeping_barber.h"
enum message {start_haircut, end_haircut, want_haircut, empty_seat, no_seat};
void sleep(double t) {
double time = MPI_Wtime... |
da4508d2bca6dd71d123585b74b9c3fe4288b4a4 | 3f8c02bb11ad4cc748b0b340c4a8246a0b8639f3 | /inc/DoorSensor.h | 922c27bc1a724cd30d7a4f292b851c4d495140aa | [] | no_license | Kn-Jakub/SmartServer | a84a0ac24a72e5583d28b337c317d5bdfb71496b | 0ee2f16db0a8561a4bf9a6c3f839360f7f2924d3 | refs/heads/master | 2021-06-22T08:45:49.173457 | 2019-06-04T09:58:55 | 2019-06-04T09:58:55 | 131,844,224 | 0 | 0 | null | 2018-08-25T12:07:26 | 2018-05-02T11:59:11 | null | UTF-8 | C++ | false | false | 1,080 | h | DoorSensor.h | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: DoorSensor.h
* Author: Jakub Pekar
*
*/
#ifndef DOORSENSOR_H
#define DOORSENSOR_H
#include "MySQL.h"
#include "Con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.