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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d035fe2d5a0402ccb0e2736ed3edd252923cd9e5 | a515004b3a10ba433dade0283c0f865d8664daa4 | /HandWrite/strokesmoother.cpp | bf7cec4cb21f4144eab59aaefe3d23f867f33fa8 | [] | no_license | jianggx/HandWrite | 170844ffa6a2391430318dc857fdd1d874bda3da | dd868ba061c51b87c4a1c4c2bd4a4183ade5a101 | refs/heads/master | 2020-04-13T06:47:25.694973 | 2019-01-30T12:51:15 | 2019-01-30T12:51:15 | 163,030,834 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,927 | cpp | strokesmoother.cpp | /*
Drawpile - a collaborative drawing program.
Copyright (C) 2014 Calle Laakkonen
Drawpile is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) a... |
f33251662bc56d4168d60335de1536c8c9261c31 | 005af42f3ce88a3dad5fb032146b496ba13f31ad | /apps/probability/responder_image_cell.h | c15a82d4e6ddb0d3207d64d2b7d944aaeeced91f | [] | no_license | magickazer/epsilon | 4359401d16ca14632180496ef89616cb65faf976 | 37e7686b60fc490c59ebd887f7d862a5af7aee23 | refs/heads/master | 2023-08-10T17:15:04.392177 | 2021-09-03T14:17:22 | 2021-09-03T14:22:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,300 | h | responder_image_cell.h | #ifndef PROBABILITY_RESPONDER_IMAGE_CELL_H
#define PROBABILITY_RESPONDER_IMAGE_CELL_H
#include "calculation/calculation.h"
#include "calculation_type_controller.h"
#include "image_cell.h"
namespace Probability {
class ResponderImageCell : public Escher::HighlightCell, public Escher::Responder {
public:
ResponderIm... |
b0d3e06ab019c47fe703f25db2315385695d626c | 2d9f24b1c9a007b0100adb38d8c9d2007bdbe3fe | /Code/20201128_Escape_sun.cpp | 2e7c0be8dfa484cbd0e9ef845a97b760aa2d210d | [
"MIT"
] | permissive | std-freejia/hymni.study | e644420748eeba6cfffbb8ce32c6f534e66f16ed | 6c1f5f5f64f931c8da0580a09efa37929b3b502f | refs/heads/master | 2023-04-23T21:12:19.720356 | 2021-05-16T02:37:01 | 2021-05-16T02:37:01 | 269,624,799 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,650 | cpp | 20201128_Escape_sun.cpp | #include <iostream>
#include <cstring>
#include <vector>
#include <queue>
using namespace std;
struct pos
{
int row;
int col;
char status;
};
const int MAX = 50;
int R = 0;
int C = 0;
int visited[MAX][MAX] = {0};
int diff_dir[4][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
pos D = {0, 0, '.'};
pos S = {0, 0,... |
b07505e0731888a71a5ed5ff28d5254e6f56e762 | 349c886932826f89dd1b1604b11a149ff46567ce | /openglFountain/Particle.cpp | 0fade3de9e29670fc2a537ebee5bef334a8d0669 | [] | no_license | guozhenwuai/particleSystem_fountain | 3a36b24288fe505e434c5c075e6115e6738439e4 | fbc48e5a89ba7739cdc04a182cc11e243ccfd96a | refs/heads/master | 2021-01-24T01:52:51.733095 | 2018-02-25T10:45:24 | 2018-02-25T10:45:24 | 122,826,827 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,261 | cpp | Particle.cpp | #include "Particle.h"
Particle::Particle()
: position(glm::vec3(0, 0, 0))
, scale(glm::vec3(1, 1, 1))
, velocity(glm::vec3(0, 0, 0))
, acceleration(glm::vec3(0, 0, 0))
, obj(NULL)
{
}
Particle::Particle(glm::vec3 pos, glm::vec3 scl, Object *obj)
: position(pos)
, scale(scl)
, velocity(glm::vec3(0, 0, 0))
, a... |
0fdae115ef74681d938d59075a289e05d5a278a0 | 3d6e0cbe4df69d92c3cd01d6a07696dd013fa82e | /LeetCode/890.find_and_replace_pattern.cpp | aba1b5d2154dac7125aeef0612ba0911db077fd6 | [
"MIT"
] | permissive | PieroNarciso/cprogramming | e964817049312cd8de5480a144776c44243ec454 | d3a53ce2afce6f853e0b7cc394190d5be6427902 | refs/heads/main | 2023-06-21T23:42:34.627119 | 2021-07-22T19:47:39 | 2021-07-22T19:47:39 | 369,711,678 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,160 | cpp | 890.find_and_replace_pattern.cpp | #include <iostream>
#include <vector>
#include <unordered_map>
using namespace std;
vector<string> findAndReplacePattern(vector<string>& words, string pattern) {
vector<string> patterns;
for (string word : words) {
unordered_map<char, char> match;
unordered_map<char, char> matchReverse;
bool goesToPatterns ... |
ce340766012aa15ed5312a7bff3c2ef0fed3a650 | 2b69d927f22af72985e28ef15787fc4617bc7cda | /src/PolyDiffGeo.cpp | 6d46edfbaa8cbe1c56d50034cbfc87e80be6c3c1 | [
"MIT"
] | permissive | PeterZs/polygon-laplacian | 198a92d77aeafba30e6a2cefb3b3ca6add7de974 | 118c2ff352a376612ee4fc7c6ac0429c03cef3da | refs/heads/master | 2023-04-13T07:42:32.282026 | 2021-04-26T21:36:48 | 2021-04-26T21:36:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,341 | cpp | PolyDiffGeo.cpp | //=============================================================================
// Copyright 2020 Astrid Bunge, Philipp Herholz, Misha Kazhdan, Mario Botsch.
// Distributed under MIT license, see file LICENSE for details.
//=============================================================================
#include "PolyDif... |
bad357a75155c82751f295edbde0bb9c54a3dc0d | 4efe4afb79573e2750f6990c0b4ad82f7c243100 | /libsrc/src/dconvert/himr/himrdmpf.cc | a2cd7861b526e2a1e30089402143859756fa9f0d | [] | no_license | QIICR/dicom3tools | 5b115c50e1914cc68c5dc85bdfba96536b2f51dc | a7c02312394d327e2ec966adcc7ec963e9b6d328 | refs/heads/master | 2021-12-14T03:54:12.384697 | 2021-12-07T23:25:34 | 2021-12-07T23:25:34 | 82,418,300 | 7 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 227 | cc | himrdmpf.cc | static const char *CopyrightIdentifier(void) { return "@(#)himrdmpf.cc Copyright (c) 1993-2021, David A. Clunie DBA PixelMed Publishing. All rights reserved."; }
#include "himrdmp.h"
#include "himrptrs.h"
#include "himrdmpf.h"
|
fd9565e3d01848e4b65afcb91383ae416a38256a | b2f7078f9a76a777940d454e2d5d926d2fba869b | /trackc++/python_swig_module/elementswrapper.cpp | 26bc09d04408342bc70d71d977762c0896aff631 | [] | no_license | dtbinh/code | c332d9f5b7279511e9b2706a74ea46716d2ca052 | 9033a612161779d5480ce6173688b3fed5634c34 | refs/heads/master | 2020-03-22T19:46:28.197991 | 2015-05-07T01:50:27 | 2015-05-07T01:50:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,961 | cpp | elementswrapper.cpp |
#include "elementswrapper.h"
Element marker_wrapper(const std::string &fam_name_) {
return Element::marker(fam_name_);
}
Element bpm_wrapper(const std::string &fam_name_) {
return Element::bpm(fam_name_);
}
Element hcorrector_wrapper(const std::string &fam_name_, const double &length_, const double &hkick_... |
b1778e7217e3c20e29280d2e879a97ec948a3078 | 89e7aca73b8df952e543322d47cf46163f37533d | /HackerRank/Algorithms/Implementation/divisible_sum_pairs.cpp | 89e021223619b8b1abe1b9720f7e43d6ed87d603 | [
"Unlicense"
] | permissive | nsudhanva/competetive | ec19c0b34a727e2fbeb8e8eb948b32cd74c1fdbe | d9e93fdeefaa4e422a2101db41a7ab0a5676e9da | refs/heads/master | 2020-03-26T03:12:59.048713 | 2018-08-10T12:56:31 | 2018-08-10T12:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cpp | divisible_sum_pairs.cpp | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int n;
int l;
int countt = 0;
cin >> n >> k;
vector<int> a(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
for(int i = 0; i < n; i++)
{
... |
fa00d96a66a6423c35229a9aaaa45f83efe73ede | 28ffb2b0821fbe8bb4e40eeb3f22e5b73603118e | /group/reverse.h | 378cba2353ddec4f91c5ad8984864b929cb9d186 | [] | no_license | antoine-bussy/math | 1e4556b376cd775e5f2fc719d173bb01b28ce011 | e4d090b09a3bcc3f9a8a70c4d429efc5706b7014 | refs/heads/master | 2021-01-15T22:14:13.994329 | 2017-08-11T01:16:20 | 2017-08-11T01:16:20 | 99,892,041 | 0 | 0 | null | 2017-08-10T07:02:16 | 2017-08-10T07:02:16 | null | UTF-8 | C++ | false | false | 366 | h | reverse.h | #ifndef GROUP_REVERSE_H
#define GROUP_REVERSE_H
#include"operation.h"
namespace group{
constexpr auto reverse(auto const& a){return a;}
template<class OperatorT, class A,class B>
constexpr auto reverse(group::generated_element_t<OperatorT, A,B> const& ab){
return OperatorT::apply(reverse(ab.second), reverse(a... |
b9929e9a6e21332d4cf555b8b78dead02824750c | 53e134d00fd462263f83a26b5109d65a8115379a | /Assignment 8/ValSet.cpp | fa3466dd548a6a5e4e58142af1ed531d4aa2310e | [] | no_license | holly12ann/OSU-CS261 | e7083c01e7525bf7398cfaf08060b6c9e0e31ade | 1dafbaf3e339d813d47a62f06de8290924ad1027 | refs/heads/master | 2022-03-30T12:21:47.717290 | 2020-01-30T16:39:32 | 2020-01-30T16:39:32 | 104,574,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,357 | cpp | ValSet.cpp | /*************************************************************************
Author:Holly Switzer
Date:5/23/17
Description: Implementation File for ValSet Template.
***********************************************************************/
#include <iostream>
#include <vector>
#include "ValSet.hpp"
using namespace std... |
426207d2d38790b690b8baa069ee8364a01a4cfd | 6c3bd5ca80c0e3ffbd7370e1ade4bdb8aa1a76ed | /include/qdp_jit.h | 335d2940f58b6dee559fc7ee0ce54f9e48a9eb36 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | gkanwar/qdp-jit | 8879fe0ff82b2a394b55e4b93d602b363a7b44b1 | 29113e09e084944e0d42e50a282d003e43884aab | refs/heads/master | 2021-07-08T06:40:21.088845 | 2017-09-21T01:57:23 | 2017-09-21T21:23:01 | 104,281,032 | 0 | 0 | null | 2017-09-21T00:17:26 | 2017-09-21T00:17:26 | null | UTF-8 | C++ | false | false | 22,630 | h | qdp_jit.h | #ifndef QDP_JIT_
#define QDP_JIT_
#include<iostream>
#include<memory>
#include<sstream>
#include<fstream>
#include<map>
#include<vector>
#include<array>
#include<string>
#include<cstdlib>
namespace QDP {
//enum jit_ptx_type { f32=0,f64=1,u16=2,u32=3,u64=4,s16=5,s32=6,s64=7,u8=8,b16=9,b32=10,b64=11,pred=12 };
en... |
f73338ebfb2eae2537ea7e55fb31680dbf4aa2e4 | 0a7981d2508af6c160f40cf6cc5d9a96920a4020 | /string/reorganizeWords.cpp | eb4c8856302c3346dca77150a0cf020238cbf3be | [] | no_license | applewjg/cpp | ff65ba82807935176d8c64932e0e5367b1947de0 | 15021fb84ce2aaa5b84cc3cf91bd0c09ecdff0e7 | refs/heads/master | 2016-08-06T21:27:04.363837 | 2015-01-11T15:48:01 | 2015-01-11T15:48:01 | 29,096,416 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,263 | cpp | reorganizeWords.cpp | #include <iostream>
#include <string.h>
#include <stdlib.h>
#include <algorithm>
#include <map>
using namespace std;
int char_comparator(const void* e1, const void* e2) {
return *(char *)e1 - *(char *)e2;
}
string string_sort(string s) {
qsort(&s[0], s.size(), sizeof(char), char_comparator);
return s;
}
bool ... |
d0eb80e858c9457ba1b345f4e1b28ca9056f3258 | c98a4e7e6227fad42773587eef39cb3999956348 | /ThunderSimulation/Jittering.h | 11c89fdec4fe7dfc1f966c2f32abe7973ed25b73 | [] | no_license | wkdgns135/ThunderSimulation | d96732524c6c0b818871c1440a7edf831d7dcab5 | 6a26e5e83765634f6f1ba4dc1f7b024a7015cd49 | refs/heads/main | 2023-07-29T19:14:45.274992 | 2021-09-12T07:10:05 | 2021-09-12T07:10:05 | 405,572,019 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 122 | h | Jittering.h | #pragma once
#include "Global.h"
using namespace std;
void Jittering(int order, double(*chanelPos)[2], int w, int h); |
5c722aa534183d507b241690586d2ac23e80c058 | 7e2a6bbaa038429d46631a1b41292bce14dc6d88 | /doctors/doseconverter.h | 30220e86063ff5587f56996d5941c98e4afa25d6 | [] | no_license | eNorris/thesis | 6242c531cb3f9f330246458720ecd1a1559aa7e5 | b3b9ed0fcd52e5eb72cf3bbff1342191142bbfae | refs/heads/master | 2021-11-30T15:30:13.185279 | 2017-07-05T01:49:42 | 2017-07-05T01:49:42 | 53,451,637 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,221 | h | doseconverter.h | #ifndef DOSECONVERTER_H
#define DOSECONVERTER_H
#include <vector>
#include <QDebug>
#include <string>
#include "xsection.h"
#include "mesh.h"
#define MYMIN(X, Y) (((X) < (Y)) ? (X) : (Y))
#define MYMAX(X, Y) (((X) > (Y)) ? (X) : (Y))
class DoseConverter
{
public:
DoseConverter();
~DoseConverter();
temp... |
d63d64b2707d0657076f34f6cd2758702fa3c3db | 1b81e206e567c5ed63bd99f7291cc0b100309cf7 | /Classes/GameScene.cpp | df0e54f42035c3a08f3664b407854e07334bd5d0 | [
"Apache-2.0"
] | permissive | verylove/YtHorizontalClearance | 42ec00afefe56b002e733967be0f6b708a0c767d | 1986ff52e5cd800040f8d6796a2ef27533cec08b | refs/heads/master | 2016-09-06T02:38:02.220658 | 2016-02-25T06:55:25 | 2016-02-25T06:55:25 | 18,964,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | GameScene.cpp | #include "GameScene.h"
USING_NS_CC;
GameScene::GameScene(void)
{
this->_gameLayer=NULL;
this->_hudLayer=NULL;
}
GameScene::~GameScene(void)
{
}
bool GameScene::init()
{
if(!CCScene::init()){
return false;
}
_gameLayer=GameLayer::create();
this->addChild(_gameLayer);
_hudLayer=HudLayer::create();
this-... |
360cfd67655c1f5d560846a02c5f4f8619810db7 | 4090aed9b69d1e355b40a6db6a138f34353197a0 | /server.cpp | 634f11f6b47c5a67a5977f27aa9dc01e7d52a700 | [] | no_license | HongyuHe/OJ | 0ecb72c4a87ac8ac5dc90210be0fbd71c6843f64 | f8713ed4e374fdbc783c7c683020a1c23f42b3ad | refs/heads/master | 2020-03-31T17:14:30.991344 | 2018-10-10T01:17:27 | 2018-10-10T01:17:27 | 152,414,016 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | cpp | server.cpp | #include <iostream>
using namespace std;
int main() {
int n, time;
cin >> n >> time;
int i;
int total = 0;
for(i = 0; i < n; i++) {
int temp;
cin >> temp;
total += temp;
if(total > time) {
break;
}
}
cout << i << endl;
}
|
12bd3fc50a5223833aaaa8172a372b3eabeb3696 | 27724bba735f6e90002ee8d0ee7c804eb3c1b89f | /Resolução dos exercícios semanais/FICHA 2/SpreadsheetCell.cpp | 9f9b8154de2e28aaddac3126b090d431dca8a90f | [] | no_license | TiagoCaldaSilva/FEUP-PROG | 413aac9455be50be9d2860c6521071421f3bb71a | b4a1b38c93adae52192e08a8a75e86df9f1c5332 | refs/heads/master | 2023-03-10T16:54:13.975799 | 2021-02-16T10:36:00 | 2021-02-16T10:36:00 | 339,164,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29 | cpp | SpreadsheetCell.cpp | #include "SpreadsheetCell.h"
|
3f83541bc30d7faf6ad12442413a16fec52d68f3 | 7fec98837bc267c117b6deaee4b39646dcbc1247 | /colormaps/coolwarm.h | 3d541006c7c172609e5428ce16e3591555b226f6 | [
"CC-BY-3.0",
"Apache-2.0"
] | permissive | adobe/lagrange-assets | f251011e81aea2c173905bcfbc60c7c7a89842d6 | f3407b0eb8266111c720b28577050e9a8f7901a5 | refs/heads/main | 2023-04-22T11:00:14.871665 | 2021-05-19T18:30:43 | 2021-05-19T18:30:43 | 319,374,838 | 2 | 2 | NOASSERTION | 2021-05-19T18:30:44 | 2020-12-07T16:15:11 | C | UTF-8 | C++ | false | false | 17,646 | h | coolwarm.h | // The colormap contained in this file is distributed under a BSD license.
// Source: http://www.kennethmoreland.com/color-advice/
constexpr float coolwarm[256][3] = {
{0.33479085013469045f, 0.283084370264951f, 0.756495219863611f},
{0.33899903044235874f, 0.290177126281036f, 0.7627125677875027f},
{0.3432076... |
0bf102a82f628f72572097a1cf4c2d997afff062 | 5aa80aab7a75d76b0aa838bf8f74a276a12c876e | /src/bgp/test/bgp_update_test.cc | 772f075521577672eb69a90ae41a525a8286e294 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | tungstenfabric/tf-controller | 83b6d58afadb5697b540b5345711a5b2af90d201 | f825fde287f4eb2089aba2225ca73eeab3888040 | refs/heads/master | 2023-08-28T02:56:27.329584 | 2023-08-20T12:15:38 | 2023-08-20T12:31:34 | 231,070,970 | 55 | 29 | Apache-2.0 | 2023-07-23T01:38:17 | 2019-12-31T10:24:38 | C++ | UTF-8 | C++ | false | false | 18,218 | cc | bgp_update_test.cc | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/ptr_container/ptr_vector.hpp>
#include <boost/foreach.hpp>
#include <tbb/compat/condition_variable>
#include "base/task_annotations.h"
#include "base/test/task_test_util.h"
#include "bgp/bgp_factory.h"
#include "bgp/bgp_log.h"
... |
b65bbcad30976d6c548e80ac0ac4937b350d067d | 21253a94089c6fb6c612f5ad02a18342d3fca3cd | /src/view_maybe/movable_box.cpp | 26fb45426dd31f606f8f1d7a1cc2b0e0a4f32ccc | [
"BSL-1.0"
] | permissive | steve-downey/view_maybe | 5df7916070c14a357d9f500ca747359a1144c938 | c220fda7a82b960b94555a79d2da360084afe71c | refs/heads/master | 2023-08-26T19:31:14.755930 | 2023-07-17T01:12:21 | 2023-07-17T01:12:21 | 156,932,329 | 9 | 2 | BSL-1.0 | 2023-09-14T16:12:15 | 2018-11-10T00:19:42 | TeX | UTF-8 | C++ | false | false | 36 | cpp | movable_box.cpp | #include <view_maybe/movable_box.h>
|
1193ab59ecdfba98ff9fd57c26c6f4ebc9822427 | 7adf98aeece7b6dd99daa30d1ae681c362e510bd | /lib/docscript/src/token.cpp | 174bdd8e4648214c0433f93a5066e4fc0b881f42 | [
"MIT"
] | permissive | solosTec/docc | b9837c09492006216609b4b1b82632d6854f8549 | 0c6688fa1ea5ae5ceaae50f17f5360d84b9d0d7e | refs/heads/master | 2022-09-21T14:24:41.120333 | 2020-12-15T16:37:01 | 2020-12-15T16:37:01 | 185,857,903 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | token.cpp | /*
* The MIT License (MIT)
*
* Copyright (c) 2019 Sylko Olzscher
*
*/
#include <docscript/token.h>
#include <iostream>
#include <string>
#include <iomanip>
#include <sstream>
#include <limits>
#include <boost/predef.h>
namespace docscript
{
token::token(std::uint32_t c, std::size_t count, ... |
ec8e8055ed2720b4af7f098bcd8ea85ba22c5f3c | 2354a26872019ec1dae2aea98c25ea8febd5057f | /A1042/main.cpp | 96a0ec5e1ff6638fefcfa75097a693808942bf65 | [] | no_license | juechen-zzz/PAT | 884de17b73f713b18ad5c1b29a66a73dcf09cfcd | 567bacf18397c43c01b02dadf0d3120196f4aea6 | refs/heads/master | 2020-12-29T19:43:42.757108 | 2020-02-15T15:30:10 | 2020-02-15T15:30:10 | 238,710,441 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,837 | cpp | main.cpp | //
// main.cpp
// A1042
//
// Created by 倪浩鹏 on 2020/2/9.
// Copyright © 2020 nihaopeng. All rights reserved.
//
/*
Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with ga... |
6c2e1722b1d94d873bedb44678124ccb2775b98a | 3c3cfdcc8666c5f94d19729f31ee6f65ad4d8853 | /zpp/mrvp/force_n.h | 6a0d807f4861941b40b0cd87a8c05be26e90fb2a | [
"MIT"
] | permissive | kmisrano/butiran | ff6527450f252c9ba64194119afed66c9e69b9fd | b64e0ec46cae29f88980da7ffcbae371fad000b8 | refs/heads/master | 2020-04-23T19:23:17.833709 | 2019-02-17T10:58:05 | 2019-02-17T10:58:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,093 | h | force_n.h | /*
force_n.h
Sparisoma Viridi
20090516, 20090520, 20110605
Normal force between two objects
*/
#ifndef force_n_h
#define force_n_h
#ifndef vect3_h
#include "vect3.h"
#endif
#ifndef ball_h
#include "ball.h"
#endif
class force_n {
public:
vect3 e_n;
double k_n;
double gamma_n;
force_n(void);
force_n(double, ... |
d85d1e1edd1a3ae4c824a4c72b30cc8cd2fa7a06 | e80ae28057ef89da3082df24443756f5ddd2e157 | /boj_14501_7.cpp | 0265798725278682ce84e6ca763fda2573b52f28 | [] | no_license | HyeongDo/Algorithm | c91af8e3821320e4b804cf372e5305e1c0d4b9af | 341bd430fd705b60639a3df083eb00d6f5d19d82 | refs/heads/master | 2020-06-18T03:31:06.280866 | 2020-05-16T07:26:55 | 2020-05-16T07:26:55 | 196,148,620 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 205 | cpp | boj_14501_7.cpp | #include<iostream>
using namespace std;
int n,t,p,d[25];
int main(void){
cin>>n;
for(int i=0;i<n;i++){
cin>>t>>p;
d[i+1]=max(d[i],d[i+1]);
d[i+t]=max(d[i]+p,d[i+t]);
}
cout<<d[n];
return 0;
}
|
dcaca1df7263719d73939c67ac419c24da9ecd95 | 6d55e0d51492c1e1df09192e1f740dade4ac35b5 | /Aula_teórica/Lista_de_exercicio_strings/Exercicio_1/main.cpp | 96cd55a3b233a9efba02675f4e6e17a0df311d4a | [
"MIT"
] | permissive | Bernardo1411/Linguagem_de_programacao_ECT_UFRN | 3c0a89b05f4ba2bf433da44470b849431a38cc6e | 7f189c13e74200b0601f7b2a2dfadab5bc79735f | refs/heads/master | 2022-06-18T13:05:39.851126 | 2020-05-08T02:48:19 | 2020-05-08T02:48:19 | 262,207,386 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,374 | cpp | main.cpp | #include <iostream>
#include <cstring>
#define TAM 100
using namespace std;
void ordenaPalavra(char S[]);
void ordenar(char str[]);
int main()
{
char S[TAM];
cout << "insira uma sequencia de digitos e letras: ";
cin.getline(S, TAM);
ordenaPalavra(S);
cout << S << endl;
return 0;
}
void ... |
e2f8a177ac64aa5cf558f512b1b461e7a736d963 | b5841a501f891b502e1dc3f29824f5c97282ff65 | /optionsframe.h | a4461ae755611c3dda050edca83f00442d82d42a | [] | no_license | danielbui78/yaluxplug | 2d6a86db504ada9f495dd955382007785b4bd32f | 5b46be77b5a3417e3f90f5f62b754a64c44d442e | refs/heads/master | 2023-08-28T00:58:22.048600 | 2021-06-05T05:59:31 | 2021-06-05T05:59:31 | 374,020,016 | 15 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,732 | h | optionsframe.h | //
// renderoptions.h
// yaluxplug
//
// Created by Daniel Bui on 4/24/15.
//
//
#ifndef __yaluxplug__optionsframe__
#define __yaluxplug__optionsframe__
#include <dzoptionsframe.h>
class DzFilterNavigationBar;
class DzSideNavPropertyListView;
class DzFileProperty;
class DzStringProperty;
class DzAppSettings;
clas... |
5e8429208ca0c14417d0fe7f3966cab4892b55ae | 0f6c5d9bb27f48e1d4ca5739d7fb1ccf519ff982 | /СДАНО_ЛР_3_1-3_4_Механика/Laba 3.1-3.4 сдано/Laba 3_4/Laba 3_4/Laba 3_4.cpp | b3989c80a1d7cdf4d04ae8c0d67a1b3ec60237b9 | [] | no_license | bkmz12353/OpenGL-3-1-3-4 | 21fadcbf50651c52757fe7a77d9a7b192a2f7ea3 | 77c36346a95612b91c721680febaee6008e675c7 | refs/heads/main | 2023-01-21T11:50:41.824893 | 2020-11-17T09:33:11 | 2020-11-17T09:33:11 | 313,569,265 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,906 | cpp | Laba 3_4.cpp |
#include <iostream>
#include <windows.h>
#include <glut.h> //Подключение библиотеки glut.h
#include <gl/GLU.h>
#include <stdlib.h>
#include <gl/GL.h>
#include <cmath>
using namespace std;
float x = 1.2;
//y - координата спутник
//Она поначалу равна 0
float y = 0;
//vx - Составляющие скорости по Ох
/... |
94b281f9613ff19a449b988bc7cd0b80cfaaa470 | 22c4c48214a995a01742a24754bcbcd45af8e414 | /cpp/2018/Slidininkai/main.cpp | 9886f1d1a171f68516614176f2bd855ad725de56 | [] | no_license | AugustasMacijauskas/CS-OOP-Homework | 4f2f37f821d9521f5174062a1bc43db0960141da | a484b64951862e23d04c2caf7e1bca50e717767a | refs/heads/master | 2021-06-09T15:13:35.152851 | 2019-06-11T19:23:39 | 2019-06-11T19:23:39 | 134,278,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,234 | cpp | main.cpp | #include <fstream>
#include <vector>
using namespace std;
struct Slidininkas {
string vardas;
int startoValanda, startoMinutes, startoSekundes;
int finisoValanda, finisoMinutes, finisoSekundes;
bool arFinisavo = false;
Slidininkas() {}
Slidininkas(string v, int val, int minut, int sek)
... |
a403b825e395495deeea4ba056a6599363200083 | 7d10f2f6eb58e9fa80cbab3c39c1f1580ae7192d | /Chapter10/01_arrays10_3/00_arryplusforloop10_3.cpp | e26f95019f8d4c1f6197b26d0e3ee2a6021120ac | [] | no_license | lole-elol/CPP_Tutorial | b0458fa3320bbfa5f57807cd5258677a20c5cf68 | 860fc4669d721efc485967c662dbebe65e34d118 | refs/heads/main | 2023-09-03T09:40:47.892049 | 2021-11-03T20:46:20 | 2021-11-03T20:46:20 | 389,755,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cpp | 00_arryplusforloop10_3.cpp | #include <iostream>
#include <iterator>
int main()
{
constexpr int array[]{4, 6, 7, 3, 8, 2, 1, 9, 5};
for (int element{0}; element < static_cast<int>(std::size(array)); ++element)
{
std::cout << "element: " << element << " has a value of: " << array[element] << "\n";
}
} |
e94862d1eb3b2b3ee979bbee7b4b23ca2732a3f8 | 0f0add5e2c721c7a3381de612093a41bae0c190d | /Study/Game/Mario3_v9.0/DemoSample/DemoSample/SoundManager.h | 43d9a476ddaad22096984a1e4535217dc7720ed5 | [] | no_license | phanybien/University | 9d5a8b0a8598823b6612e07980b820469223f7e1 | 409496c8c9feca3d8420d93d6a5d91ac583cb71a | refs/heads/master | 2023-06-11T17:39:13.619405 | 2021-01-08T06:01:58 | 2021-01-08T06:01:58 | 80,742,472 | 1 | 4 | null | 2023-05-31T18:17:29 | 2017-02-02T16:11:05 | C++ | UTF-8 | C++ | false | false | 1,464 | h | SoundManager.h |
#ifndef _SOUNDGAME_H_
#define _SOUNDGAME_H_
#include "CAudio.h"
#include <vector>
#include "GlobalObject.h"
using namespace std;
enum BGSound
{
BGM1, BGM2, BGM_under,
};
enum SoundEffect
{
//mario sound
SE_chay,
SE_doihuong,
SE_nhay,
SE_tancong,
SE_quayduoi,
SE_chuiong,
SE_chet,
SE_nholon,
SE_londuoi,
S... |
2e4c96486ecfa72e5b462a2503ac7487179aebfb | 71488f1c516dd54decf72b6679598d2f4a40b312 | /observer.h | a4916d2b7d413e1a30b66236ee1612dbcb17cca9 | [] | no_license | bzheng98/bill-josh-vm | 4ba9d1a2c1f9c50218613c97ae7abd51180f7219 | a3974f9e1ea548f2a9f6c72d33941a645040fb74 | refs/heads/master | 2021-05-07T06:52:29.341791 | 2017-12-05T04:07:32 | 2017-12-05T04:07:39 | 111,737,376 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 178 | h | observer.h | #ifndef OBSERVER_H
#define OBSERVER_H
#include "commandInfo.h"
class Observer {
public:
virtual void update(const CommandInfo &c) {};
virtual ~Observer() {}
};
#endif
|
c164edd6a0ae18158ad367f806a7307a559a3f24 | 02c201b1afd2de7f8237adc3737734e19b77cd2b | /src/ir/local-utils.h | 153ebd3f38707bd022d22f0e1f95423931a289c2 | [
"Apache-2.0"
] | permissive | WebAssembly/binaryen | 1ce65e58489c99b5a66ab51927a5b218c70ae315 | 90d8185ba2be34fa6b6a8f8ce0cbb87e0a9ed0da | refs/heads/main | 2023-08-31T21:01:27.020148 | 2023-08-31T19:32:33 | 2023-08-31T19:32:33 | 45,208,608 | 7,061 | 768 | Apache-2.0 | 2023-09-14T21:41:04 | 2015-10-29T20:26:28 | WebAssembly | UTF-8 | C++ | false | false | 3,538 | h | local-utils.h | /*
* Copyright 2019 WebAssembly Community Group participants
*
* 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... |
6e2f91df1cdf6e62456c89ce37e5c0d37ed73ecc | 09220a263ccf719ce2fc9353a5e8b01e352e5bdc | /MP8/NetworkRequestChannel.cpp | e5c2b8c109381e301f0b95417e35bef0c4f425c6 | [] | no_license | nguyenhaduy/CSCE-313 | e270915b7d31457c718577c9e2541ae7a6748b18 | 37498faaec611e9a8b054f890bca3bfac4419715 | refs/heads/master | 2021-08-30T04:26:47.218712 | 2016-12-06T04:41:00 | 2016-12-06T04:41:00 | 114,425,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,563 | cpp | NetworkRequestChannel.cpp | #include <cassert>
#include <string.h>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <errno.h>
#include <sstream>
#include "NetworkRequestChannel.h"
using namespace std;
... |
c7a114146584600350a35c364ad5da92d77d6cc0 | cb2df16189c50348a40cf1b20d45c35512ee7907 | /实验报告/实验2-201726010308-魏子铖/Poly.cpp | d8d1ab3b8f475f65be292b5d62c7df61870ea1e0 | [] | no_license | Hqyanyan/DataStructure | 0c9b61b396077cbd521697ec907140f92530eede | 195c4c0238aefa741cf33f7acc37e950ad3f37bc | refs/heads/master | 2020-04-13T11:57:50.406366 | 2018-12-25T12:09:51 | 2018-12-25T12:09:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,449 | cpp | Poly.cpp | //
// Created by i_still_mess_up on 2018/10/23.
//
#include "Poly.h"
Node::Node(double c, int i, Node *ptr) {
coef = c;
index = i;
next = ptr;
}
Node::Node(Node *ptr) {
index = 2147483647;
coef = 999999;
next = ptr;
}
Poly::Poly() {
init();
}
Poly::~Poly() {
removeAll();
}
void Pol... |
5f62249988bfff67bd98eb77f115e7445dc446e8 | eded4de3b9e1bcdf6f575070bbfbf3f0efea3540 | /SFML_1/Board.h | d7d5796f5cc04d9123ddf7a70ef63ec2c73967d4 | [] | no_license | Korczak/sfml_learn | 452dd79fb6d419271bc45011a6b3d48a2620a8b0 | 9e8bbef46fda01e3fc37c66d73212c882ad2eb40 | refs/heads/master | 2020-07-24T20:15:18.802366 | 2019-09-12T11:49:45 | 2019-09-12T11:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | h | Board.h | #pragma once
#include "Config.h"
#include <SFML/System.hpp>
#include <vector>
class Board
{
public :
enum Cell {
Empty,
Prey,
Predator
};
private:
std::vector<Cell> m_board;
int m_boardWidth;
int m_boardHeight;
public:
//Constructor
Board(const Config& config);
Board(const Board& board) = delete;
//Ac... |
4c312bca0e760bc078520456af2bc76c7b7286c5 | f37654eb81554a47e4874aca4d28d42242a13cbf | /maxSubarray/maxSubarray.cpp | ea5367e88b352b5f2e5e2eb4487452eab847659c | [] | no_license | zwq915644560/algorithm | e811c1748ea39d0af588e8d4089d2e704bcbfe2f | 048a39fcccb720da35dcb8eda67c033260547e5d | refs/heads/master | 2021-01-20T14:40:58.085049 | 2017-05-09T08:16:12 | 2017-05-09T08:16:12 | 90,647,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,272 | cpp | maxSubarray.cpp | #include "maxSubarray.h"
#include <iostream>
MaxSubarray::MaxSubarray(initializer_list<int> li):len(li.size()),length(len)
{
for(auto e:li)
{
vi.push_back(e);
}
}
void MaxSubarray::handle()
{
maxSubarray(0,len-1);
}
void MaxSubarray::handle(int b,int e)
{
maxSubarray(b,e);
}
Result MaxSubarray::maxSubarray(int ... |
18a1d856f00de79b471a8fd5dbf1aa6fbdeee307 | 095eda43725d319cd95a4f830e0ddf4357a778c7 | /Engine/Source/Shared/System/Renderer/D3D12/RsProgramBindingD3D12.h | 4bddc0f95762aa8da9fbe974f13f75907257a3ad | [
"LicenseRef-scancode-public-domain",
"Zlib",
"MIT",
"BSD-3-Clause"
] | permissive | Psybrus/Psybrus | b9fb6a5f7c56ed35533babaed53165c9bf268c05 | 000ea00ffcccc5fe388eff66e388d2d5c94a104d | refs/heads/develop | 2021-01-20T11:43:56.290703 | 2016-11-01T09:48:29 | 2016-11-01T09:48:29 | 1,612,818 | 26 | 3 | null | 2015-12-13T00:03:29 | 2011-04-14T05:11:24 | C | UTF-8 | C++ | false | false | 1,950 | h | RsProgramBindingD3D12.h | #pragma once
#include "System/Renderer/D3D12/RsD3D12.h"
//////////////////////////////////////////////////////////////////////////
// RsDescriptorHeapConstantsD3D12
struct RsDescriptorHeapConstantsD3D12
{
static const size_t MAX_SAMPLERS = 16;
static const size_t MAX_SRVS = 16;
static const size_t MAX_CBVS = 14;
... |
08d36e394e2f1c7d841a9b10aa90662746da8b13 | 4bfcdb211fa2d29dd006ddd27110653dc494292d | /src/cml/flame.cc | 67c7ccaabf6e3605e88563b142fb14e6aeafd79b | [] | no_license | Gancc123/flame-sp | c3fe254c1b4303aeb19e24cff719bc971e975650 | c8108823dea205e25abac03942534996710109f3 | refs/heads/master | 2022-12-03T16:20:42.521689 | 2019-06-14T11:54:19 | 2019-06-14T11:54:19 | 285,829,655 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,760 | cc | flame.cc | #include "common/cmdline.h"
#include <grpcpp/grpcpp.h>
#include "include/flame.h"
#include "proto/flame.grpc.pb.h"
#include "service/flame_client.h"
#include "util/utime.h"
#include <cstdio>
#include <cstdint>
#include <string>
#include <memory>
#include <list>
using namespace std;
using namespace flame;
using name... |
591a165a06cf253b7ae78f98cf2e4669d788e56d | 4de5902eb8d208787eeb79a140ed17038c2f1cdf | /Native/VisualIPCV/ProcessorManager.hpp | 345790bf6753b58569b0d6bf2612ab51bf18f53c | [] | no_license | NovikovAAA/SciImager | d32d14537ce0b2d51ad03f8a9ae60e07148fe874 | 5988f7fe74d242e771e84ea377c1fb3f34c2c057 | refs/heads/master | 2020-08-09T01:02:04.096474 | 2020-06-29T08:15:45 | 2020-06-29T08:15:45 | 213,961,823 | 0 | 0 | null | 2020-06-29T08:15:47 | 2019-10-09T15:57:57 | Java | UTF-8 | C++ | false | false | 577 | hpp | ProcessorManager.hpp | //
// ProcessorManager.hpp
// VisualIPCV
//
// Created by Артём Новиков on 15.02.2020.
//
#ifndef ProcessorManager_hpp
#define ProcessorManager_hpp
#include <stdio.h>
#include <map>
#include <string>
#include "Processor.hpp"
class ProcessorManager {
public:
IPCV_API static std::map<std::string, std::map<std::... |
7253cd7cde0da886ad64400962efd71486a472c2 | 79ddafb026cce4f8c40dd48ce214ad45b009ea4d | /POKER/SPECTATOR.cpp | 8e547cfe123ab9dd0a4ad874d6c7449a161243da | [] | no_license | kp003/POKER- | 14a7eae928e404f125b8a2562f27bff6efc818fc | aae3d87840096a347fa19e21778df91dd2021615 | refs/heads/master | 2021-04-08T22:44:57.778465 | 2020-03-20T19:02:54 | 2020-03-20T19:02:54 | 248,817,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cpp | SPECTATOR.cpp | #include "SPECTATOR.h"
// Constructors/Destructors
//
SPECTATOR::SPECTATOR()
{
}
SPECTATOR::~SPECTATOR()
{
}
|
497639ff403f88f89b634486ab48405829cbfe78 | 0ef023e27a051d1c063f48d023c9dfa460385b99 | /Locate/shelldll/LocateShellExtension.Cpp | 2c400cab064cd07cf399a738f2a9aff56cb6b9d8 | [
"BSD-3-Clause"
] | permissive | dewcansam/Locate32 | 3ee2531aafbba8baec36d42a955c21112d8d5340 | 4c997d0f9c4781427e74faf06a1b351b91663c1c | refs/heads/master | 2021-01-02T00:59:40.119902 | 2017-08-12T13:12:13 | 2017-08-12T13:12:13 | 98,947,912 | 1 | 0 | null | 2017-08-01T01:58:09 | 2017-08-01T01:58:09 | null | UTF-8 | C++ | false | false | 10,741 | cpp | LocateShellExtension.Cpp | //
// Locate Shell Extension
// Copyright 2005 Janne Huttunen
//
// class id: 73ACE856-AD8F-4346-9A07-775E45221BC8
//
// CShellExt::AddRef and CShellExt::Release code.
#ifndef STRICT
#define STRICT
#endif
#define INC_OLE2 // WIN32, get ole2 from windows.h
#define _CONSOLE
#include "s... |
c18834b03a2345e980c7b0f1763a381427727596 | 09bba7e46fd23b6c065b4bd1af90b67bae9216a2 | /hw7/Functions.h | dafd89f2d4b8a87949a307c2d15fe5a840b58557 | [] | no_license | cat-kat/cpp-itmo | abf8991a6e774f72362e77bc004b38be321efb06 | ed1d975fc4fd594acf0d826b8c07a3dbf69b6fcc | refs/heads/master | 2021-10-24T09:50:29.734381 | 2019-03-25T00:33:35 | 2019-03-25T00:33:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 483 | h | Functions.h | #ifndef HW7_FUNCTIONS_H
#define HW7_FUNCTIONS_H
#include "Array.h"
#include "ostream"
template<class Num>
bool less(Num a, Num b);
class Greater {
public:
template<class Num>
bool operator()(Num a, Num b) const;
};
template<class Num, class Comparator>
Num minimum(const Array<Num> &array, Comparator comp);... |
cab824f348b891c78aa5acfa851610e1ffe15797 | f5fb39010aec616f37ac24427f6af61dcdfd3756 | /Pokemon_Mystery_Dungeon/TitleMenuD.h | 9d848827ed951d613bfc79998456342fe341570c | [] | no_license | JinKyong/Pokemon_Dungeon | 08df9ce02362a239525730aaa06aaa46c4bfbc0e | c595cdcb92f822b54e99e1a366f797712ad69475 | refs/heads/main | 2023-07-31T05:01:27.372424 | 2021-10-03T13:00:52 | 2021-10-03T13:00:52 | 384,614,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | h | TitleMenuD.h | #pragma once
#include "DownMenu.h"
enum TITLEMENU_OPTION {
TITLEMENU_OPTION_NEW,
TITLEMENU_OPTION_CONTINUE,
END_TITLEMENU_OPTION
};
class TitleMenuD : public DownMenu
{
private:
int _maxIndex;
bool _opacity;
int _count;
public:
virtual HRESULT init();
virtual void release();
virtual void update();
virtual... |
b36eaa21995e5f5670e2441599da8c400bdbced1 | 5888d95e1f06571d04a32f062f2bcb0054b37506 | /src/osgf/OSGF/GameState.cpp | 1929092a91c83ab3bcb1bd3a09ee358115fed223 | [
"MIT"
] | permissive | elsys/Shaprin_Frameword3D | 584f85f6a1d54fad27de2178189f3cf3bd8bf962 | 466f72e6c379270ebb7bff30e1a54c5ef0c67910 | refs/heads/master | 2021-01-06T20:38:00.662262 | 2013-06-06T12:04:44 | 2013-06-06T12:04:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 168 | cpp | GameState.cpp | #include "GameState.h"
#include "Game.h"
void GameState::Render()const
{
mGame.ClearColorDephtStencil(mClearColor,mClearDepthValue,
mClearStencilValue);
}
|
eb041535ebf7bcb567c8557f90220eb4d73269db | 07c61596c1fba2e2a7034fe5af9707794ea2e2c1 | /Leetcode/624/624.cpp | eeaceb723b9a96e2ca44307138e2b7f3b5a77cec | [] | no_license | H-Shen/Collection_of_my_coding_practice | 2fcb2f8fef9451ad4a3a9c063bbf6a34ea5966b4 | 6415552d38a756c9c89de0c774799654c73073a6 | refs/heads/master | 2023-08-24T21:19:08.886667 | 2023-08-22T03:47:39 | 2023-08-22T03:47:39 | 180,731,825 | 8 | 1 | null | 2021-08-13T18:25:25 | 2019-04-11T06:48:09 | C++ | UTF-8 | C++ | false | false | 1,259 | cpp | 624.cpp | class Solution {
public:
int maxDistance(vector<vector<int>>& arrays) {
int n = (int)arrays.size();
vector<pair<int,int>> vec(n);
multiset<int> ms;
for (int i = 0; i < n; ++i) {
vec[i].first = arrays[i].front();
vec[i].second = arrays[i].back();
ms... |
1a9f2008a4e3006c1334acced5c6b5a3ed09b967 | f8c1e4087ffd29bff58691fdcb1064f04e5adcba | /LogCommon/File.hpp | f1571973982d7f5c61ddce3ae015e30666f322d8 | [
"BSL-1.0",
"CC-BY-3.0",
"LicenseRef-scancode-public-domain"
] | permissive | BillyONeal/pevFind | ce2e138a71dce8b7c522d6b5e208fb440900e88e | d1c36e3f4eff934ddf3d5f65071559105ebe2d0d | refs/heads/master | 2021-07-15T01:28:34.132949 | 2021-03-03T20:14:38 | 2021-03-03T20:14:38 | 8,042,575 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 10,086 | hpp | File.hpp | // Copyright © 2012 Jacob Snyder, Billy O'Neal III
// This is under the 2 clause BSD license.
// See the included LICENSE.TXT file for more details.
#pragma once
#include <cstdint>
#include <string>
#include <vector>
#include <stack>
#include <boost/noncopyable.hpp>
#include <windows.h>
#include "Expected.h... |
9cb460ce726f556f89c3c8cf5e2f88a36aee4901 | 0ce9e3b82d54e9042cf9515ad0b7ca2501b356a6 | /src/Date.cpp | 9c3a0897952bca27f470cf277cbb020894404518 | [] | no_license | LittleSophia/Agenda | fb42e1a36d3048478bba2cc4065a66b2a4cee503 | 24d39cb3da1cd423b38c00163f947314990f284a | refs/heads/master | 2020-09-19T09:29:23.662454 | 2016-08-24T08:58:43 | 2016-08-24T08:58:43 | 66,439,673 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,519 | cpp | Date.cpp | #include "Date.hpp"
#include<iostream>
#include<sstream>
#include<cstring>
#include<cstdlib>
#include<cctype>
/**
* @brief default constructor
*/
Date::Date() {
m_year = 0;
m_month = 0;
m_day = 0;
m_hour = 0;
m_minute = 0;
}
/**
* @brief constructor with arguments
*/
... |
f6a66f8126e086bbff9f67ab6608906909f1f723 | 2c6e2bd4adda3cd60650405bda68af099fad846d | /lab1/lab1/lab1.cpp | 13b2240a22340150587554d5538caeb8867dd80c | [] | no_license | Jane1408/DATA-BASE | f2ce7831cbf3f4fd1540a8bc75120f3380a1a200 | 1efd9914f08129479da9e202da16cca0f2bd3897 | refs/heads/master | 2021-01-11T00:36:00.701421 | 2016-10-10T17:19:00 | 2016-10-10T17:19:00 | 70,510,838 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 576 | cpp | lab1.cpp | // lab1.cpp: определяет точку входа для консольного приложения.
//
#include "stdafx.h"
#include "DataBase.h"
int main()
{
CDataBase data;
data.ReadFromFile("db.csv");
std::set<int> result;
std::string line;
while (!std::cin.eof() && !std::cin.fail())
{
std::cout << "Enter username : ";
std::getline(std::c... |
82780badadced79d93118f89766e9abb33aed04b | 8b76496824f15cd742de8bceeafb1fae1454247b | /vulkanhpp/vulkan_relaxng_test.cc | 6e5fb4e7671eefd12a931272d35c7729c6af7247 | [] | no_license | tomazos/davinci | 0826bcc8ea75da418ecd47c198e960cc654ec885 | b0663ac604ee8596864a0da3c4ec30449dbe18ee | refs/heads/master | 2020-03-16T17:53:37.763490 | 2018-12-27T23:21:34 | 2018-12-27T23:21:34 | 132,851,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 53 | cc | vulkan_relaxng_test.cc | #include "vulkanhpp/vulkan_relaxng.h"
int main() {}
|
194b104d3d7d6e815e0f88a02d3adab51a3afad4 | a277bd2f527a154a0ec78093e8608c386d772e84 | /scripts/StatsPass/OCRStatsPass.h | 7dc241c7932d0400298471a9f9283687d909a700 | [
"BSD-2-Clause"
] | permissive | FuriousBerserker/OCRDebugRuntime | 5c7025752fb76c09aa6f622649f242910972c0e7 | 5965cb6483c3b8be5a8e90d860b26f999886d66a | refs/heads/master | 2021-01-25T12:31:16.076959 | 2018-02-17T06:33:09 | 2018-02-17T06:33:09 | 82,502,131 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,174 | h | OCRStatsPass.h | #ifndef __OCRSTATSPASS_H__
#define __OCRSTATSPASS_H__
#include <llvm/IR/Constants.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/GlobalVariable.h>
#include <llvm/IR/Instruction.h>
#include <llvm/IR/DataLayout.h>
#include <llvm/IR/Module.h>
#include <llvm/Pass.h>
#include <string>
#include <utility>
using namespa... |
14e95bce24034e6b0fe7527812a654d80d461de3 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /sandbox/linux/syscall_broker/syscall_dispatcher.cc | 6abc80b432e6d38e7740260bf25e01e43a15c6b5 | [
"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 | 7,454 | cc | syscall_dispatcher.cc | // Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sandbox/linux/syscall_broker/syscall_dispatcher.h"
#include <fcntl.h>
#include "base/check.h"
#include "base/logging.h"
#include "sandbox/linux/system_headers/linux... |
320429002de101f9a2911a1d10580969ad252c26 | 07ebc723794a5b3de984f86db1e68629a8023a70 | /I2C_Test_2_Master_Servos.ino | 879fbf8367f04d94d9905501c4d0f73d7dee8b21 | [] | no_license | DavidSawicki368/Arduino-I2C-servo-control | 21852fc6d6e429e8d6ccb64182964659f3526cb6 | c8ba193be54b3695607274186a3675b8a15b1eb3 | refs/heads/master | 2020-03-11T20:57:58.363388 | 2018-05-11T18:06:58 | 2018-05-11T18:06:58 | 130,251,565 | 0 | 1 | null | 2018-05-11T18:06:59 | 2018-04-19T17:42:52 | C++ | UTF-8 | C++ | false | false | 592 | ino | I2C_Test_2_Master_Servos.ino | // Include the required Wire library for I2C<br>
#include<Wire.h>
int joyVal; // Variable to read the values from the analog pins
int joyX = A0; // Define joystick pins (Analog)
void setup() {
// Start the I2C Bus as Master
Wire.begin();
Serial.print("Hello, David!");
}
void loop() {
// Read ... |
0ae82bf3b9433d643de55435c43f98177d3bed94 | bd51be33a8305dc388835c5d851487a7d34c0822 | /Gear/Arduino/sketch_jul25a/Accelerometer_LSM303.ino | 627579a2104f42db13e442db05441544ab50521e | [] | no_license | cwdyang/wotyadoing | 7133f129c1a0ad267ff36954f6885ab36287a4b0 | f450c78c9e4cabe0d646daeef52d1ca6fde007e5 | refs/heads/master | 2021-01-02T08:46:03.662566 | 2014-08-06T21:20:24 | 2014-08-06T21:20:24 | 22,247,146 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,801 | ino | Accelerometer_LSM303.ino | void PrintXYZValues() {
char buff[6];
//if (!digitalRead(pinPanic)) return
getLSM303_accel(accel); // get the acceleration values and store them in the accel array
SendRawData(dtostrf((accel[XAxis] / pow(2, 15) * ACCELE_SCALE),1,2,buff));
SendRawData(messageContentDelimiter);
SendRawData(dtostrf((a... |
b5c47b11b1cf4b776414c5dc63c52f03ca8a6658 | 9b2ef03f6c7c327b0f2475529e002496d2f96a58 | /Voronoi/ConvexHull.h | 76bf9ab749ddfde024efcbe42397c96ef126f87f | [] | no_license | Joseonghye/MakeLand | 3b225f09b0d6684ba0acd777b32ee38a301646c3 | ea374a2636d718d88cbc60d2d6b3792b79d37def | refs/heads/master | 2022-07-19T13:38:47.927219 | 2022-06-23T12:58:36 | 2022-06-23T12:58:36 | 220,937,644 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 3,383 | h | ConvexHull.h | #pragma once
#include "StructType.h"
#include "vector"
using namespace std;
void Swap(Point& orign, Point& change)
{
Point temp = orign;
orign = change;
change = temp;
}
struct ConvexHull
{
public:
vector<Point> hull;
vector<Point> vertices;
ConvexHull(){}
ConvexHull(vector<Point>& v):verti... |
51cef5c3b87e5f647e17422fb7479c5914e45c37 | 1e6f8de8ae06c4f4cb5318c7b95309c37a8ba23d | /polymorph/polymorph/friends.cpp | cf4da3f8a23ab7626f25cfe7f7b0c04198290007 | [] | no_license | Sanghamithra/code-samples | 3320b5da02141da05653a6466bda340047329446 | 1c606deb445f107d5e8f57138978af1dcba4f943 | refs/heads/master | 2021-01-23T03:53:43.787508 | 2013-10-24T23:08:04 | 2013-10-24T23:08:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | cpp | friends.cpp |
#include <iostream>
#include <iomanip>
#include <string>
#include"friends.h"
using namespace std;
friends::friends(string name_t1):contact(name_t1){}
string friends::getrelationship()
{
string tmp_2= "I<3"+getname();
return tmp_2;
} |
a737d45773d079fdfc6d9003837eb0705fd4cb85 | 9cfd767217b61aa5ea085685f3094516c28eb9e9 | /cpp/constructor.cpp | d147137ae21c2c1def95a44968337aacacfc9254 | [
"MIT"
] | permissive | jamesliu96/teach | 4df0cf667ad149980789f577975f82a584e92058 | 0d2fc9b738bbfa48c67d1c6698e422cba5a78a39 | refs/heads/master | 2021-01-02T14:09:06.927519 | 2019-03-15T05:14:40 | 2019-03-15T05:14:40 | 20,909,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 834 | cpp | constructor.cpp | #include <iostream>
using namespace std;
class Point
{
private:
int x;
int y;
int z;
public:
Point();
Point(int, int, int);
~Point();
int getx();
int gety();
int getz();
};
Point::Point()
{
this->x = 0;
this->y = 0;
this->z =... |
09abf33da32ecdba055fd4642437c7ddedae15a1 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/ui/webui/intro/intro_ui.h | 104dc78c165be79bf944afca008ea87f7b8f403c | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,549 | h | intro_ui.h | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_INTRO_INTRO_UI_H_
#define CHROME_BROWSER_UI_WEBUI_INTRO_INTRO_UI_H_
#include "base/functional/callback_forward.h"
#include "chrome/browser/ui/w... |
5031ba8921bc695a9233bdded1b0f6e037feecac | 53e547e74985b6d73fea77c7b4a17801af0212be | /구조체배열2.cpp | e1154280e3158e85480f9bdce9c844f391beaa1b | [] | no_license | Jaeyun-18/DevC | f56fac5783d04530b017b76bea629ff9d9b523d6 | 9d98aea2cc42a31c1c2e5b6a2690daad5aa1588e | refs/heads/master | 2022-06-06T15:13:08.740312 | 2020-05-02T13:51:28 | 2020-05-02T13:51:28 | 256,699,061 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,478 | cpp | 구조체배열2.cpp | #include <stdio.h>
int main()
{
typedef struct _score {
int grade, ban, num;
char name[10];
int kor, eng, math;
int hap;
float avr;
} Score;
Score s[10];
FILE *fp; //파일의 데어터에 접근하기 위한 포인터 변수
int i, n;
//구조체배열2.cpp 파일과 st.txxt 파일이 동일한 폴더에 있어야 정상적으로 실행됨.
if ((fp = fopen("st.txt", "r")) != NULL)
{
... |
fa5fa778dbc577ccbfb5172092c90257aa9b24e0 | 2d0bada349646b801a69c542407279cc7bc25013 | /src/vai_library/cxir/tensors.cpp | 251089ee2e11f4e0a8faaa2ee8f42b855a8d6b2b | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-... | permissive | Xilinx/Vitis-AI | 31e664f7adff0958bb7d149883ab9c231efb3541 | f74ddc6ed086ba949b791626638717e21505dba2 | refs/heads/master | 2023-08-31T02:44:51.029166 | 2023-07-27T06:50:28 | 2023-07-27T06:50:28 | 215,649,623 | 1,283 | 683 | Apache-2.0 | 2023-08-17T09:24:55 | 2019-10-16T21:41:54 | Python | UTF-8 | C++ | false | false | 3,166 | cpp | tensors.cpp | /*
* Copyright 2022-2023 Advanced Micro Devices Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
077a41e9d4357378c7271d29260334d415952ecd | 433343fad282e8a0de71d9100ad9e17ed3fc0ff7 | /exg_cv.cpp | faee1d7da6831af0cbd194c38c6a218be3de2eda | [] | no_license | Stigaard/BayerExG | 2ef7c62eb474127098cc070c05880ff1ead9ea7d | 89b6f51733f72f562d9b1b0e7efb21a5f7b473c5 | refs/heads/master | 2021-01-10T18:46:41.996004 | 2013-06-13T07:54:40 | 2013-06-13T07:54:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,315 | cpp | exg_cv.cpp | /*
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2013 Morten Stigaard Laursen <email>
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, eith... |
3b1d3ce9792e9096059b37013c8f06a9c4f515cd | cd4587f46b5f1393e46459c7b7959455a847c0db | /source/geometry/src/GatePETScannerSystem.cc | 44cb63b089c7b65e982dec9214b1a6e49fe80eea | [] | no_license | lynch829/Gate | 8072e7e30d855b15a9152a5884fc1357c07539bc | 02754973dbaeca343a7c3b9402521f45c05e9ccf | refs/heads/develop | 2021-01-24T20:13:11.821931 | 2016-07-12T11:23:15 | 2016-07-12T11:23:15 | 66,326,268 | 1 | 0 | null | 2016-08-23T02:33:29 | 2016-08-23T02:33:29 | null | UTF-8 | C++ | false | false | 900 | cc | GatePETScannerSystem.cc | /*----------------------
Copyright (C): OpenGATE Collaboration
This software is distributed under the terms
of the GNU Lesser General Public Licence (LGPL)
See GATE/LICENSE.txt for further details
----------------------*/
#include "GatePETScannerSystem.hh"
#include "G4UnitsTable.hh"
#include "GateClockDependen... |
11801aa2cd154998b43f76948f14d62b894105b3 | fe32c21f8814058a400d3b4f96a252f971a882e2 | /include/mips/instructions/instruction_IV.hpp | b575b00a9c8ac0f941163fed2b0184c23c004a57 | [
"MIT"
] | permissive | mathnogueira/mips | 8b9f5746831da9ce51a5ff603aff9b6784dd9941 | eec50427d7b759c11c0c2c32ac98d76bd0960009 | refs/heads/master | 2021-01-23T14:05:35.227934 | 2017-06-08T19:36:32 | 2017-06-08T19:36:32 | 58,815,603 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,266 | hpp | instruction_IV.hpp | /**
* \file instruction_IV.hpp
*
* Arquivo descrevendo o formato de uma instrução do formato IV.
*/
#pragma once
#include <mips/core.hpp>
#include <mips/flag.hpp>
#include <mips/instructions/instruction.hpp>
#include <mips/memory/register.hpp>
namespace MIPS {
/**
* Classe que representa uma instrução do format... |
0f520c5ce2c721f6a62cfb188e4e40cd4d84911e | 137f352d4364a7d6fdbbad3f96c903aa31249c4a | /Programmers/c++/핸드폰 번호 가리기.cpp | 9cdd481ccfee409980bc8177daf86b48edb9b4b5 | [] | no_license | hong-jinhyeok/programming | e99c85a439712f5812ccf93e4569a25c83a2de0b | 8cb45a9a80ff0f9ce85b95c56d66706e6ad3429a | refs/heads/master | 2023-09-02T13:16:39.880367 | 2021-11-18T15:05:06 | 2021-11-18T15:05:06 | 323,781,519 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | 핸드폰 번호 가리기.cpp | /*
프로그래머스 핸드폰 번호 가리기
충분히 긴 *로된 문자열을 선언
주어진 번호길이-4 만큼 *문자열의 부분을 가져옴
나머지 뒤에를 번호로 채움
*/
#include <string>
#include <vector>
using namespace std;
string solution(string phone_number) {
string answer = "";
string star="*************************";
int i=phone_number.length()-4;
answer+=star.substr(0,i);
... |
5b02861d3d48f0b5fac4b0f6d64872ece42962d3 | c91fa94edd26e3ba58d04d3843c834e1a19d24ad | /StudySeries/StudyCpp/Chap09App/ExceptionReturn.cpp | 5e7aad159ad89b07696095f76cf40c6ccbac7ee6 | [] | no_license | jsc5023/StudentStudySpace | d1c708e8fc827012ae201721f8842261f89c2279 | cc181b5645b30bbabeb9ec7deaa738b7d1a035d8 | refs/heads/master | 2023-02-09T06:51:04.854083 | 2020-12-04T12:50:40 | 2020-12-04T12:50:40 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,191 | cpp | ExceptionReturn.cpp | #include <stdio.h>
enum E_Error { OUTOFMEMORY, OVERRANGE, HARDFULL, STACKFULL};
class Exception {
private:
int ErrorCode;
public:
Exception(int ae) : ErrorCode(ae) { ; }
int GetErrorCode() { return ErrorCode; }
void ReportError() {
switch (ErrorCode)
{
case 1:
puts("[ERROR] 메모리가 부족합니다.");
break;
cas... |
5f0761dcfa757c759288c000c206718ccb636ff2 | 29217bba0162f7a1183f909b17d5612d3194d661 | /Laozi/MyConfig.h | 09261ddf76ce90de451cd0733ca4da215d768767 | [] | no_license | etoolkit/Laozi | 7dda5f31e41349d1c90636f07e63c3fe08eb5b2f | 4c843cf2c9e5dfe80decea98b6645f70c4e57d95 | refs/heads/master | 2023-02-25T18:01:09.517910 | 2021-01-26T02:06:02 | 2021-01-26T02:06:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,868 | h | MyConfig.h | #pragma once
#include "XmlHelper.h"
#include <vector>
using namespace std;
struct HideWndInfo
{
CString clsName;
CString sTitle;
CString sFileName;
bool& operator == (HideWndInfo &info)
{
bool b = _tcscmp(clsName, info.clsName)==0
&& _tcscmp(sTitle, info.sTitle)==0
&& _tcscmp(sFileName, info.sFileN... |
1a79ff1f8d745288504edfe82b26b3958890e933 | 809418e23e085f1f6ab973485d2fb864df3cde0e | /Labyrinth/Content/LabyrinthSceneRenderer.h | 8c79f8997889958a5fbaf8201cf089b8e01918d3 | [] | no_license | Draggoon/AI-Labyrinth | f6cdea0420d8fe6017a12b03e20e1bd3e69d0b08 | ab1e17d87315175c21394dd441bc6fb8b3733b70 | refs/heads/master | 2020-04-15T03:55:33.699008 | 2019-01-14T16:11:33 | 2019-01-14T16:11:33 | 164,365,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,185 | h | LabyrinthSceneRenderer.h | #pragma once
#include "..\Common\DeviceResources.h"
#include "..\Common\StepTimer.h"
#include <string>
#include <fstream>
#include <vector>
#include <direct.h> // Directory utility
#include "utils.h"
#include "AI/Player.h"
#include "AI/DumbAI.h"
#include "AI/Manual.h"
namespace Labyrinth {
/**
* Labyrinth sce... |
987e72f08e953c40b56864b0dd31dad9035ed6ab | a85309fe42f0e3f78052f68f96a3fee3882ad40f | /Judges/CodeForces/c343A.cpp | 86a2833d929b161ab8b5227c32bc1cdfa1f3e17d | [] | no_license | mateuspiresl/coding | cb137de068bb88d430f80cd37b5fc9596288a603 | 91df2a564663f68683d21656a3f6e7157943af43 | refs/heads/master | 2021-04-30T22:50:43.368621 | 2016-12-08T23:56:22 | 2016-12-08T23:56:22 | 59,907,899 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | cpp | c343A.cpp | #include <iostream>
#include <cstring>
using namespace std;
int main()
{
int n;
cin >> n;
int* colChoc = new int[n];
memset(colChoc, 0, n * sizeof(int));
unsigned long long happiness = 0;
char choc;
for (int i = 0; i < n; i++) {
int lineChoc = 0;
for (int j = 0; j < n; j++) {
cin >> choc;
if (ch... |
ebb60f876a1651dca881c3c92cc1c7773e0b554e | 931de63cef762f3282d5048bd0d54ccd707adb27 | /compression/util.hpp | a28e8289925358718ba04fcb8e9f8578696894a4 | [] | no_license | rngcntr/vwlwah | ab3d4746d400f7af4a6eb124697c4d517ccaf84e | 7cbc5587c9f487055448339fa4a1036b7c517698 | refs/heads/master | 2020-07-04T04:57:36.061114 | 2019-09-13T10:40:11 | 2019-09-13T10:40:11 | 202,163,639 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,675 | hpp | util.hpp | #ifndef UTIL_HPP
#define UTIL_HPP
#include <random>
#include <bitset>
template <class word_type>
class RandomProvider {
protected:
std::random_device rd; /* Seed */
std::default_random_engine generator; /* Random number generator */
std::uniform_int_distribution<uint64_t> distribution; /* Distribution ... |
7c662fa6a908efc90cd18cb4e20c949254440455 | 857e656706f830bf9bfb4770a3603f69dfebf179 | /BALLS/BALLS/ui/BallsCanvas.cpp | 6f0ca1ee4e5b63006db1f4f5e9072aa932412191 | [
"Apache-2.0"
] | permissive | gitter-badger/BALLS | 20c7c34d848ac47340892ff32ccce7ca9f791fe9 | f8c787bd5ef977f4e57c1440dc38fdf70cbc01cf | refs/heads/master | 2021-01-18T08:21:45.584323 | 2015-08-15T18:53:48 | 2015-08-15T18:53:48 | 41,403,047 | 0 | 0 | null | 2015-08-26T03:49:41 | 2015-08-26T03:49:41 | null | UTF-8 | C++ | false | false | 23,513 | cpp | BallsCanvas.cpp | #include "precompiled.hpp"
#include "ui/BallsCanvas.hpp"
#include <stdexcept>
#include <QtGui/QCursor>
#include <QtGui/QOpenGLContext>
#include <QtGui/QOpenGLFunctions_3_0>
#include <QtGui/QOpenGLFunctions_3_1>
#include <QtGui/QOpenGLFunctions_3_2_Core>
#include <QtGui/QOpenGLFunctions_3_3_Core>
#include <QtGui/QOpen... |
6d1ff67aa65fe97db93b0e08e71428482e3d39d1 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/policy/core/common/default_chrome_apps_migrator_unittest.cc | b87f50935e8f037a194c49a424238f8a71341289 | [
"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 | 7,776 | cc | default_chrome_apps_migrator_unittest.cc | // Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/policy/core/common/default_chrome_apps_migrator.h"
#include <map>
#include <string>
#include "base/logging.h"
#include "components/policy/policy_constant... |
2e84589381f265d688e92a08957083a47bc59e60 | cd1fd4e09b6b7780c04d1ee0a4ba6b9f4824af96 | /src/log.cxx | 7b23b5346d9b84c3cafa2823aa027fce220f47ee | [] | no_license | froyg/thittam | 08747a76768ad3fae9c0b8aa96d88895c34618c7 | b441d388136b85501868aa61d93b562837551093 | refs/heads/develop | 2021-04-29T21:33:45.460500 | 2019-04-09T17:45:00 | 2019-04-09T17:45:00 | 121,618,469 | 1 | 9 | null | 2019-04-15T13:19:32 | 2018-02-15T10:51:13 | C++ | UTF-8 | C++ | false | false | 4,825 | cxx | log.cxx | /* Copyright (C) 2008-2017 HiPro IT Solutions Private Limited,
* Chennai. All rights reserved.
*
* This program and the accompanying materials are made available
* under the terms described in the LICENSE file which accompanies
* this distribution. If the LICENSE file was not attached to this
* distribution or fo... |
ac1a7181970237d3586aa9a731dfc9efcb493d14 | 627869a4655a94ba2af3cfea8c07d5ba42d1597f | /operator_putin.cpp | 9738f99fc3c5eb43acd14aeb2bc0bacf630efbdd | [] | no_license | hando95/CodingTest | 690c9589f9fa6f366248f475bb9607e21791362e | 8e8bb3813556a32ff2e110cbd651b38ffb3f6736 | refs/heads/main | 2023-08-29T04:43:56.301043 | 2021-10-05T07:38:46 | 2021-10-05T07:38:46 | 395,861,657 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,165 | cpp | operator_putin.cpp | #define _CRT_SECURE_NO_WARNINGS
#define MAX_NUMBER_CNT 11
#include <stdio.h>
int num[MAX_NUMBER_CNT]; // 수열
int oper[4]; // 연산자
int max = -1000000000, min = 1000000000;
int GetMax(int a, int b) {
return a < b ? b : a;
}
int GetMin(int a, int b) {
return a < b ? a : b;
}
void Calculate(int n,... |
8c336c7db5ea0dee5f9367c9f7fe32e6f6b05ea8 | 914a83057719d6b9276b1a0ec4f9c66fea064276 | /test/performance-regression/full-apps/qmcpack/src/QMCWaveFunctions/SplineR2RAdoptor.h | 5e97bc74f8345838f6381e0739ae986c425028e3 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later",
"BSD-2-Clause"
] | permissive | jjwilke/hclib | e8970675bf49f89c1e5e2120b06387d0b14b6645 | 5c57408ac009386702e9b96ec2401da0e8369dbe | refs/heads/master | 2020-03-31T19:38:28.239603 | 2018-12-21T20:29:44 | 2018-12-21T20:29:44 | 152,505,070 | 0 | 0 | Apache-2.0 | 2018-10-11T00:02:52 | 2018-10-11T00:02:51 | null | UTF-8 | C++ | false | false | 7,587 | h | SplineR2RAdoptor.h | //////////////////////////////////////////////////////////////////
// (c) Copyright 2003- by Ken Esler and Jeongnim Kim //
//////////////////////////////////////////////////////////////////
#ifndef QMCPLUSPLUS_EINSPLINE_R2RADOPTOR_H
#define QMCPLUSPLUS_EINSPLINE_R2RADOPTOR_H
namespace qmcplusplus
{
/** ado... |
ca044d562732a4fea55e968c408e04c4d03cdcf7 | 427f48b76d1b312cff7af2d9b535ea333e8d154e | /cpp/locale_money_put.cpp | 80a189669f290daddd3181c93a90ef2556bba899 | [
"MIT"
] | permissive | rpuntaie/c-examples | 8925146dd1a59edb137c6240363e2794eccce004 | 385b3c792e5b39f81a187870100ed6401520a404 | refs/heads/main | 2023-05-31T15:29:38.919736 | 2021-06-28T16:53:07 | 2021-06-28T16:53:07 | 381,098,552 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | locale_money_put.cpp | /*
g++ --std=c++20 -pthread -o ../_build/cpp/locale_money_put.exe ./cpp/locale_money_put.cpp && (cd ../_build/cpp/;./locale_money_put.exe)
https://en.cppreference.com/w/cpp/locale/money_put
*/
#include <iostream>
#include <locale>
#include <iomanip>
#include <iterator>
int main()
{
// using the IO manipulator
s... |
9f1631fe3c3894cf714b372d9fd725102e54d3a8 | acd3f85db6bbdd45cb253dfed096d4226b737f6e | /WiFiAP_ServoLEDServer.ino | bbc4f8bad096468866cd8038ed226ff7c0588a17 | [] | no_license | jaava/ESP8266GPIOandServo | 5c446e96bdc869147bd36754a0c7bce016cbd32d | d5628f2191b87e9eaee325bb0cda9682c99da74b | refs/heads/master | 2021-07-18T05:32:20.508739 | 2017-04-14T09:01:28 | 2017-04-14T09:01:28 | 107,657,177 | 0 | 0 | null | 2017-10-20T09:11:52 | 2017-10-20T09:11:51 | null | UTF-8 | C++ | false | false | 5,961 | ino | WiFiAP_ServoLEDServer.ino | /*
* Copyright (c) 2015, Majenko Technologies
* 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 o... |
21a3f919d16a0840993293d7efa40bff444ddce8 | 0c539c95d334196b099cd2c1a874f530577f8faa | /muduo/acceptor.hh | 01365802d88fe11465eb28c8a57b890392d96e75 | [] | no_license | soda-yi/mini-muduo | ec547696fae3e06fe8d0be80bb8c7ee625956b00 | c43c257d4fc7dcae3187ce7e1a4025aeab875919 | refs/heads/master | 2020-06-12T09:33:25.569678 | 2019-08-21T03:16:20 | 2019-08-21T03:16:20 | 194,258,989 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,894 | hh | acceptor.hh | #ifndef ACCEPTOR_HH
#define ACCEPTOR_HH
#include <functional>
#include <memory>
#include "channel.hh"
#include "network.hh"
#include "file_descriptor.hh"
class EventLoop;
/**
* @brief Acceptor类,EventHandle的一种实现
*
* 用于接收外部TCP连接,构造后调用Listen可进行监听\n
* 一般每个TcpServer持有一个本类的实例,用于监听该Server所有的连接
*/
class Acceptor
{
p... |
922f57e71588ca530ecba630d8334cd9027b48ee | 7cfe3e95749df1615dcda3cb700269fc141c624b | /05-Linked List/03-Detect-Loop-In-Linked-List.cpp | acc26b860d963402e92ff862f38b58f68d83b60e | [] | no_license | PawanJaiswal08/DSA-Cracker-Love-Babbar | 715850e5678cf64c11a67a3be6cc1f3f046eaca0 | b9f4e89c99ab3090baa8774cdf4070668fcbcf9c | refs/heads/main | 2023-08-13T11:58:20.773931 | 2021-10-02T06:04:31 | 2021-10-02T06:04:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,528 | cpp | 03-Detect-Loop-In-Linked-List.cpp | #include <bits/stdc++.h>
using namespace std;
class node
{
public:
int data;
node *next;
// Constructor
node(int d)
{
data = d;
next = NULL;
}
};
void print(node *head)
{
if (head == NULL)
{
cout << "The list is empty !!" << endl;
}
while (head != NULL... |
2a4fde181e32a412548e9b52c8731ad6f123e8b1 | 8c9e767d823011eda9ea3ca46d9188ec57eb2236 | /src/utils/fasta/fastA.h | 6066dd75f52a9b94b16e94517b41f65c7cc38670 | [] | no_license | cchd0001/GenomeSequenceSimulator | 04252fca84adce80cf8560e8c322016d4a22a257 | bccacdfab08097ae693ca193b8db7698e6d4388b | refs/heads/master | 2020-12-02T10:14:44.556170 | 2017-07-14T07:19:45 | 2017-07-14T07:19:45 | 96,704,429 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | h | fastA.h | #ifndef __UTILS_FASTA_FASTQ_H__
#define __UTILS_FASTA_FASTQ_H__
#include <string>
#include <fstream>
#include "iFileWR.h"
namespace Utils
{
class FastAReader : public IFileReader
{
private:
std::string file_name;
std::ifstream reader;
FastAReader(const FastAReader & ) ;
FastARea... |
41026ac8526ab09f5ce8aaae67ce8b72bc373fad | 5a1cda823e3189282024bdbae231be6785118bf4 | /pat/1118.cpp | 990ccdb6ff922b6908aa765a60d8634019d2b808 | [] | no_license | v-laughing/codeblog | d2a9dfb4b6f9463541120014bc5e6a6104d4cd11 | 422a79dc99345df77c0bf5651125d997eb918dcb | refs/heads/master | 2022-01-09T01:41:51.221715 | 2019-05-13T12:18:57 | 2019-05-13T12:18:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | cpp | 1118.cpp | #include<cstdio>
#include<iostream>
#include<map>
#include<vector>
#include<set>
#include<algorithm>
using namespace std;
vector<int> father, pic(10001);
int find_ftr(int x){
if(father[x] != x) father[x] = find_ftr(father[x]);
return father[x];
}
void uniset(int x, int y){
father[find_ftr(x)] = find_ftr(y);
}
... |
d27fc39ec229c5b8b9a8deb68b6cdc65af883e70 | 6f72b28dd5fc3e5c04417afa888e6ffc70b00333 | /shiva/shivafreetds/src/shvfreetdsconnectionimpl.h | a981a58c2eec5ca91fe1cce40671f3d350c08d34 | [] | no_license | ElmerFuddDK/libshiva | 71ffb760ded57920289fa863bffc1a6aa369a9ba | 4d9424945f05a30ef3c3719bafe0bc931803cbf7 | refs/heads/master | 2021-10-26T20:25:37.787532 | 2021-10-19T06:08:15 | 2021-10-19T06:08:15 | 35,969,748 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,272 | h | shvfreetdsconnectionimpl.h | #ifndef __SHIVA_FREETDS_CONNECTION_IMPL_H
#define __SHIVA_FREETDS_CONNECTION_IMPL_H
#include "shiva/include/framework/shveventsubscriberbase.h"
#include "shiva/include/freetds/shvfreetdsconnection.h"
#include "shvfreetdscommon.h"
class SHVFreeTDSWrapperImpl;
class SHVFreeTDSTransactionImpl;
//-=====================... |
419998a73b0103d22c2396591338c775f7840448 | 1ff483821f8a11386e1a2ba5705ac4766182045e | /src/gn/rust_project_writer_helpers_unittest.cc | 23657eeca91c232b04d5d685b0a53524855b262d | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | Sc-Softs/gn | c3bc83013a36660ccb50a8eb1a28d309d8ea3be6 | 783cc138f9ac3e7ca214317e44a3b04bcbb334cb | refs/heads/master | 2022-11-25T05:31:13.968067 | 2020-07-28T15:41:43 | 2020-07-30T21:33:07 | 283,971,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,110 | cc | rust_project_writer_helpers_unittest.cc | // Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gn/rust_project_writer_helpers.h"
#include "base/strings/string_util.h"
#include "gn/filesystem_utils.h"
#include "gn/string_output_buffer.h"
#... |
619de67d55d2617c3684161823fb60e5a3f8baa4 | 2340d3182c201a6682fc18e2cb04c798cf556ed8 | /c++_oussa/Matiere_UI/modifiermatiere.h | 6c518c6f7c0955560474066cb0477fd0a86d204c | [] | no_license | khadimkasse/projet_cpp_ndeye | db3cc82f2523da0296a5139e16e1826cfbbf7d89 | 754144ecf11f22dad37dce12d8a91450cb6c4adb | refs/heads/master | 2020-04-26T20:19:06.313785 | 2019-03-25T22:14:36 | 2019-03-25T22:14:36 | 173,806,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | h | modifiermatiere.h | #ifndef MODIFIERMATIERE_H
#define MODIFIERMATIERE_H
#include "../../sokhna_cpp/Matiere.h"
#include <QDialog>
namespace Ui {
class ModifierMatiere;
}
class ModifierMatiere : public QDialog
{
Q_OBJECT
public:
explicit ModifierMatiere(QWidget *parent = 0);
~ModifierMatiere();
void loadComboBox();
priv... |
5d7280ac33b483826019281b6b80fb85e431eeea | 838449adabff3c48c3787bd2f4aeb3b8ba829371 | /DYN_CONFIG/include/DynamicConfigItemDataStruct.h | d7c84d240b31efee07ff86ef90d5563532077c60 | [] | no_license | raju-anabathula/BaseEndPoint_EmpMessage | 5e399a90b41f2f02b3d4cdcee83c6df6352c8735 | ea4007c6b83e806dac4fad838cea4f1e3132b18d | refs/heads/master | 2020-12-07T11:13:34.187295 | 2016-08-18T14:19:08 | 2016-08-18T14:19:08 | 66,002,789 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 474 | h | DynamicConfigItemDataStruct.h | #ifndef DYNAMICCONFIGITEMDATASTRUCT_H_
#define DYNAMICCONFIGITEMDATASTRUCT_H_
#include <iostream>
const int max_item_value_size_c = 256;
const int max_item_name_size_c = 41;
const int max_item_value_type_size_c = 13;
struct DynamicConfigItemDataStruct{
char conf_item_value[max_item_value_size_c];
ch... |
edda11200f25d3d2adeb09480bf9e99e7ac0b23a | ce2fedde3d5cc7e9be9de82f6f922d557bc5940a | /RicoRobots.cpp | 6fc2e4785cdcad0a62c0e85d00ad796825aa09dc | [] | no_license | SakinaMaster/Ricochet-Robots | ff05ef8ae8b15b037d63b99bf0e5f24c60b36311 | c2a49e80220ff3cb19479a0b59ea5c76409f1183 | refs/heads/master | 2020-07-25T06:31:09.113891 | 2019-09-13T16:31:37 | 2019-09-13T16:31:37 | 208,196,347 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 28,556 | cpp | RicoRobots.cpp | /** ---------------------------------------------
* RicoRobots.cpp
* This version stores moves on a linked list, allowing
* infinite undo back to the beginning of the game.
* Board display looks like:
Move robot 2 to square M
|- - - - - - - - - - - - - - - -|
|. . . . .|. . . . . .|.... |
b0204586fa015cf2e276da8b7ea3b9ab1ef9bde7 | 2f6a9ff787b9eb2ababc9bb39e15f1349fefa3d2 | /inet/src/inet/common/INETUtils.h | 0e53215689f1b006c974f8eabd9666d5aaa40496 | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | ntanetani/quisp | 97f9c2d0a8d3affbc709452e98c02c568f5fe8fd | 47501a9e9adbd6adfb05a1c98624870b004799ea | refs/heads/master | 2023-03-10T08:05:30.044698 | 2022-06-14T17:29:28 | 2022-06-14T17:29:28 | 247,196,429 | 0 | 1 | BSD-3-Clause | 2023-02-27T03:27:22 | 2020-03-14T02:16:19 | C++ | UTF-8 | C++ | false | false | 3,067 | h | INETUtils.h | //
// Copyright (C) 2005 Andras Varga
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... |
8b15a3eae4d97008f7a26c93d1e4b2d5b2329006 | d71fac1a3dab9abf51e0528e65d1981f855c52e4 | /src/backends/backendsettingswidget.h | d2ebc0febdff0801d56f8e4321b3deea0403f15b | [
"CC0-1.0"
] | permissive | KDE/cantor | d9fa87ab3017bb3cc9ca5cfd568d3c5cfd1b6428 | 82bc4916e3c2a08205aaa6b3f7b60f4216d9fe18 | refs/heads/master | 2023-08-31T09:26:43.793469 | 2023-08-29T01:40:35 | 2023-08-29T01:40:35 | 42,720,167 | 51 | 12 | NOASSERTION | 2020-03-21T21:57:13 | 2015-09-18T12:18:18 | Jupyter Notebook | UTF-8 | C++ | false | false | 1,454 | h | backendsettingswidget.h | /*
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be ... |
924421c18a6d55c565dda84317ca118c0d183048 | a72f56c72c85690c66c69619a4410fea088d23e8 | /main.cpp | 5be35563584eb03719d05e914f0ab7a27b36e33d | [] | no_license | Sacharya1/Dijkstra-s-algorithm-for-a-ramdomly-created-Graph- | ddd7ae62dc079bc65c570b3fa82bbdd8b6853022 | bf686738905e2e5a6f99e6f554914f994c9ef083 | refs/heads/master | 2022-06-21T10:40:20.542620 | 2020-05-13T07:08:58 | 2020-05-13T07:08:58 | 263,552,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,299 | cpp | main.cpp | #include<iostream>
#include<climits>
#include<stdlib.h>
#include<time.h>
using namespace std;
#define numOfPoints 7
int minimumDist(int dist[], bool Dset[])
{
int min=INT_MAX,index;
for(int v=0;v<numOfPoints;v++)
{
if(Dset[v]==false && dist[v]<=min)
{
min=dist[v];
index=v;
}
}
return i... |
af13ac7b4f9400d50a1e2649ef9c20ff8c943b4a | 59b97d474f45b1431db36cc4e57718d62ed03594 | /Muphic/common/include/launcher.h | 55e8698e6064c4edab30409629877e5a018fdd9a | [] | no_license | ImageBasedComposing/muphic | fb2e0cf2c73ed788a064186b61e852f71cd845bf | 1abc83a9b2312b795e2955c9c23044b0938d9aca | refs/heads/master | 2020-06-04T02:17:51.645399 | 2012-07-01T12:45:08 | 2012-07-01T12:45:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,150 | h | launcher.h | #pragma once
#ifndef LAUNCHER_H
#define LAUNCHER_H
#include <string>
#include "string.h"
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#ifdef __WINDOWS
#include <windows.h>
#include <signal.h>
#include <vector>
#endif
#ifdef __LINUX
#include <unistd.h>... |
bf3c9fa65cbe9955d405c56ac0d5f78133e9516c | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-oneWay/23.8/alpha.water | 25d3b5698aad78382156db4e8386aba3882ea5f6 | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 144,301 | water | alpha.water | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... |
52dda26901f0e1deb5e45e83a636d9d7b8e9b4fc | bdc7528eade69f20cf6881e8d7896a58d4eb0495 | /headers/configuration.h | 83ff0ad522bf549793d4cbeb35eab932c2c2fa73 | [] | no_license | popenyuk/zip_lab_part_2 | 8df95f88fff8ddd69d56d888a5c2c16e984cfdfa | f27693b8c0a3ca5ddc05c1ff5b87670d08202f2e | refs/heads/master | 2020-05-20T16:57:55.897299 | 2019-12-22T20:54:49 | 2019-12-22T20:54:49 | 185,675,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 503 | h | configuration.h | // This is a personal academic project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#ifndef INC_5_CONFIGURATION_H
#define INC_5_CONFIGURATION_H
#include <string>
struct config {
std::string in_file;
std::string out_by_name;
std::stri... |
937fd00270a962812b8ebefa7212b7fa1771d67b | 97d1bfba6adafc0fbdd68bdfbeb314d33aa364be | /FB HackerCup/2013/R1/c/c.cpp | b361cc4df5ed1c2a4f61cf4d748507ed7f495bbb | [] | no_license | github188/MyCode-1 | 26069f08222b154c08308a72a61f8e9f879a447e | 2227b9dd9a13114a1b2b294c3e70253b16f88538 | refs/heads/master | 2020-12-24T11:24:54.215740 | 2014-04-21T04:15:54 | 2014-04-21T04:15:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,101 | cpp | c.cpp | #include<stdio.h>
#include<string.h>
char s[500][500];
int ul[500][500],rd[500][500];
int n,m;
inline int max(int o,int p)
{
return (o>p?o:p);
}
int main()
{
freopen("aaaaaa.txt","r",stdin);
freopen("output.txt","w",stdout);
int tt;scanf("%d",&tt);
for (int t=1;t<=tt;t++)
{
scanf("%d%d... |
952f2d72ca4d098455c2ed72d1707da356c423e2 | 859042bc9d616f5f4aaf9f01564b0bcf42693509 | /Lwdp/code/PModule/ConfigMgr/Cx_XmlMgr.h | b1ac6d40ba0980bb3c0b856890d96c6a398f9646 | [] | no_license | guolisen/Lwdp | 415a4a3f5bc6dd2f8adb064fca26a7de96e0bce5 | 7dc3f14baf987d2f1c870aceca8e0417ebce4a9f | refs/heads/master | 2020-05-30T15:40:47.997964 | 2012-11-06T14:57:06 | 2012-11-06T14:57:06 | 6,260,563 | 1 | 0 | null | 2012-10-29T07:55:13 | 2012-10-17T12:00:25 | C++ | UTF-8 | C++ | false | false | 2,446 | h | Cx_XmlMgr.h | /*! \file Cx_XmlMgr.h
* \brief
* \author Guolisen, Lwdp PluginFramework
* \date 2010.11.8
*/
#ifndef LWDP_CX_XML_MANAGER_H_
#define LWDP_CX_XML_MANAGER_H_
#include <Interface/ConfigMgr/Ix_XmlMgr.h>
#include <boost/shared_ptr.hpp>
LWDP_NAMESPACE_BEGIN;
EXTERN_C_BEGIN;
typedef boost::shared_ptr<TiXmlDocum... |
a20dc06b8de4dc88ba21f060f615bb2440f4a3c7 | 92dbcee8f9fa10f778a62879d4710c2eea701214 | /ejectionTest/ejectionTest.ino | b6c38389cb8d298e9932744f5010e44f03130657 | [
"MIT"
] | permissive | tkxkd0159/UAV-Ejection-System | d180bba8c12a9a69a17db3ac9497d198c446c7fa | 16be1bd897fb785eb8acf333e7c6facf14679449 | refs/heads/master | 2021-11-23T10:55:45.553618 | 2021-08-15T13:58:54 | 2021-08-15T13:58:54 | 141,961,057 | 2 | 0 | null | 2018-08-30T07:36:09 | 2018-07-23T04:27:58 | C++ | UTF-8 | C++ | false | false | 1,523 | ino | ejectionTest.ino | #include <string.h>
#include <Servo.h>
#define SBUF_SIZE 64
Servo Biteservo;
static const uint32_t IMUBaud = 115200;
static const uint32_t XBEEBaud = 9600;
char sbuf[SBUF_SIZE];
signed int sbuf_cnt=0;
float roll, pitch, yaw;
float euler[3];
int Parser(float *item, int number_of_item)
{
int n,i;
int rbytes;
ch... |
abbb52415f5436d2dad9c02a7cc1f59953a3776e | d42edd80dfff02e20dc3a9cbc8fa42b393831f5b | /planner/discrete_distribution.hh | 68d3bb27891ed963c3f433972c1189558c3b82e6 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | wbthomason-robotics/planet | 17ee351f3113f726494869692a13dbc93f9d0d21 | c354bb9999d2bfaf9c09b533da561c302b30868b | refs/heads/master | 2022-11-20T15:16:24.789808 | 2020-07-09T17:09:47 | 2020-07-09T17:09:47 | 212,451,651 | 8 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,732 | hh | discrete_distribution.hh | #pragma once
#ifndef DISCRETE_DISTRIBUTION_HH
#define DISCRETE_DISTRIBUTION_HH
#include <algorithm>
#include <iostream>
#include <memory>
#include <utility>
#include "common.hh"
namespace planner::util {
template <typename V> struct DiscreteDistribution {
struct ValueData {
ValueData(double mass, const V& data... |
6d942cc95a3520a1fe6ad1efa92cff164cf90ecf | 866fa9aded2e744bafef155721c6bc6f6299ae05 | /components/feature_engagement_tracker/internal/never_availability_model.h | 0010cf1cb9ed7b907b7a5676c7044a76e0b84a40 | [
"BSD-3-Clause"
] | permissive | dxxxxxxxxxx/chromium | c86915455619cdd95173aacaa28ca67e15adafcb | 262de4db50be5c113ac5475f229dfa88834314ce | refs/heads/master | 2023-02-27T12:05:27.330616 | 2017-05-25T20:54:30 | 2017-05-25T20:54:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,186 | h | never_availability_model.h | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_NEVER_AVAILABILITY_MODEL_H_
#define COMPONENTS_FEATURE_ENGAGEMENT_TRACKER_INTERNAL_NEVER_AVAILABILI... |
f6f40ddc275af43fce068ebac8c8938b451e7794 | 125ae0adb562478b184bbb35d40f2c43b335415c | /MFDUI/Panels/Browser/tBrowserNavWidget.cpp | f48d4fbf7cc92edfe1a30a47b15f12f368303753 | [] | no_license | dulton/53_hero | ff49ce6096c379931d7649b654c5fa76de4630de | 48057fe05e75f57b500a395e6ff8ff9c06da6895 | refs/heads/master | 2020-02-25T04:19:18.632727 | 2016-05-20T03:44:44 | 2016-05-20T03:44:44 | 62,197,327 | 3 | 2 | null | 2016-06-29T05:11:41 | 2016-06-29T05:11:38 | null | WINDOWS-1252 | C++ | false | false | 4,491 | cpp | tBrowserNavWidget.cpp | /*****************************************************/
// Copyright © 2007-2015 Navico
// Confidential and proprietary. All rights reserved.
/*****************************************************/
#include <StdAfx.h>
#include "tBrowserNavWidget.h"
#include <MFDUtils/Settings/tSystemSettings.h>
#include <UI/Widg... |
64111eea72761b629f1681687f20111a7ce27d50 | 91438f6e91eca7f893584175ba15751c0a4cbb3f | /src/util.cpp | 5bb781cf4c6585fb061fc8c199acd610b2cf7299 | [] | no_license | nikhovas/message-broker | 850683276ce5fe74e0ec2258af54da4ab5268734 | ada971b4d76fb6a31f6a1a3fb66ee2f960055a0e | refs/heads/master | 2023-05-30T07:04:30.357988 | 2021-06-21T10:14:57 | 2021-06-21T10:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,542 | cpp | util.cpp | #include "util.h"
#include <chrono>
namespace havka::time_measure {
std::chrono::time_point<std::chrono::high_resolution_clock> begin1;
std::chrono::time_point<std::chrono::high_resolution_clock> begin2;
std::chrono::time_point<std::chrono::high_resolution_clock> begin3;
std::chrono::time_point<std::chrono::high_res... |
b99fad3565f96ba11f6271721f14d4eb996c0778 | ca313ac7ca839b9d913242cf71ce932b17725a77 | /Source/OverShoulders/InteractActor.h | 3b88afb2ad8d6ad0a14aa9461519433f53ec70f7 | [] | no_license | The-O-King/OverShoulders | 6c72b67714a8dd9e23bf4f832d2851c30687e5a7 | 413708b9b327b273fa05bd38b49a0df262df140e | refs/heads/master | 2021-01-13T15:32:40.136036 | 2018-08-07T01:44:27 | 2018-08-07T01:44:27 | 80,031,485 | 2 | 1 | null | 2017-02-18T06:25:22 | 2017-01-25T16:14:18 | C++ | UTF-8 | C++ | false | false | 779 | h | InteractActor.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "InteractActor.generated.h"
UCLASS()
class OVERSHOULDERS_API AInteractActor : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AInteract... |
48ff960058eecc0b4fef40d7fc13c4c18e1220c5 | 5e42800bf2f07f4697f22c89e64f89aa04f91de5 | /c++/pente/CaptureBitmap.h | 9badd72cb4d2f29f1bbc9119e27a7c4d8e3e4b83 | [] | no_license | trieck/source | 52cee310f8c28781996c546e05ce14baca28ac0f | ad8da1b70deef58005aa4226e36d5eefad71920a | refs/heads/master | 2023-01-22T14:44:51.389815 | 2023-01-14T23:02:21 | 2023-01-14T23:02:21 | 13,166,584 | 1 | 0 | null | 2021-06-27T21:24:46 | 2013-09-28T03:42:40 | C++ | UTF-8 | C++ | false | false | 254 | h | CaptureBitmap.h | #pragma once
#include "RecolorableBitmap.h"
// CaptureBitmap command target
class CaptureBitmap : public RecolorableBitmap
{
public:
CaptureBitmap();
virtual ~CaptureBitmap();
private:
enum { DEFAULT_COLOR = RGB(0x00, 0x80, 0x00) };
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.