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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07bac920fbfc9e47199fa98938f247b2579544c9 | a809cd70ef136d7e2fcf70a207880f186d019207 | /modules/core/src/fpe.cpp | b741a76c082433c7b3c851edb88fb132b05d9ca0 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"MPL-2.0",
"BSD-3-Clause",
"MIT",
"BSL-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | adobe/lagrange | ea9d4c700ed70003ee9c9ecef55fecd6b9d77ba7 | 2f78a647ecb867619c73489a5e3ea752f26353ef | refs/heads/main | 2023-08-10T05:18:14.852199 | 2023-06-28T18:29:31 | 2023-06-28T18:29:31 | 319,374,542 | 229 | 23 | Apache-2.0 | 2023-08-30T23:21:30 | 2020-12-07T16:14:06 | C++ | UTF-8 | C++ | false | false | 2,520 | cpp | fpe.cpp | /*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
b176a556480ec5a156e1a23b8fcbfd660377b9de | 8bf072c053d1b2888e9fba0ce9905dcae9ed0f35 | /src/Flatte.cxx | 10c1b32d9353c23f71c87d83fd0351216aa95c75 | [] | no_license | DmytroLevit/YAP | 2f72067d9b50bd07b50136e816203c1f45b43af4 | 5a101d7005a8b8ab8e8b7218921de9ca31611b87 | refs/heads/master | 2021-01-15T12:32:26.386261 | 2016-03-09T16:05:50 | 2016-03-09T16:05:50 | 53,315,223 | 0 | 1 | null | 2016-03-07T10:02:36 | 2016-03-07T10:02:35 | null | UTF-8 | C++ | false | false | 2,919 | cxx | Flatte.cxx | #include "Flatte.h"
#include "Exceptions.h"
#include "FourMomenta.h"
#include "logging.h"
#include "Model.h"
#include "Resonance.h"
#include "StatusManager.h"
namespace yap {
//-------------------------
Flatte::Flatte() :
MassShapeWithNominalMass(),
WidthTerm_(ComplexCachedDataValue::create(this))
{
T()-... |
f1be95aa42b68a5ddb29bf0c590cac4de81ce02b | 2e385e28222d8989922aa1715e3f3f4048de56cf | /package/src/exports.cpp | 3f182150d4072888211daf06c02ebe5eb0d419f0 | [] | no_license | niklaskarl/rNetCore | 8886628e205c29825dcbb196f39cc7f18b0987cb | e6fc29a1ffcfb0ee568204d5a3295b1639673abe | refs/heads/master | 2020-04-17T23:52:07.122383 | 2019-01-22T18:52:16 | 2019-01-22T18:52:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,885 | cpp | exports.cpp | #include "pal/path.h"
#include "clrhost/clrhosting.h"
#include <Rcpp.h>
RcppExport SEXP rnetcore_export_nwhich()
{
try
{
utf16string directory = find_dotnet_core_absolute_directory();
utf8string directory_u8 = utf16_to_utf8(directory);
Rcpp::CharacterVector result(1);
result[0... |
5f969e26d7c889b865f096b8480e90ebcf95e499 | d5719c7305ccbfc1ed1ac0f6c6b61c95029bc9ec | /longest palindrome/TopDown.cpp | bd1255800744ac2ce080de7f4122a6ff9915ee93 | [] | no_license | priyanshu1044/Algorithms | 7cd74e3a876de05c9e41b746e6b50db484f4a5d9 | c6d907dbc231c4aa7be330d0c0dad35de0d0d6e5 | refs/heads/master | 2023-08-14T03:00:14.472951 | 2021-10-07T05:45:58 | 2021-10-07T05:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | TopDown.cpp | #include<iostream>
#include<string>
using namespace std;
string str;
int max_len;
int start_len;
int end_len;
bool isPal(int i, int j, int **table){
if (table[i][j] != 0){
cout << "Res found for i:" << i << " j: " << j;
return (table[i][j] == 1);
}
if (i == j){
table[i][j] = 1;
... |
942ba2a04b4cdc61077536d9e646e27e2b1cfc63 | 3daedc6dce7faeb3fbaea9373572b82cdb3310a4 | /include/Models/DisplayModel.h | c504704d92d8dc0694d8050588d9a5fdbd159fa9 | [] | no_license | luke-a-b/aqi-weather-station | e6f8291885de68ff8986f40219cb9a5ab7be5c80 | 7ea65c94b8072a31f172791fa98fea9f89cb4941 | refs/heads/main | 2023-04-02T17:33:32.122323 | 2021-04-06T08:20:28 | 2021-04-06T08:20:28 | 333,893,943 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,624 | h | DisplayModel.h | #ifndef _DISPLAY_MODEL_H
#define _DISPLAY_MODEL_H
#include "Config.h"
#include "Models/AstronomyModel.h"
#include "Models/CurrentWeatherModel.h"
#include "Models/ForecastModel.h"
#include "Models/ClockModel.h"
#include "Models/AqiDisplayModelImpl.h"
#include "DataSources/LocalTempSensorSource.h"
#include "assert.h"
#i... |
373b7b30009b7a7ede1736b552d24a22b002e634 | a6485bc22bfd536774d481f4f45378dd0752a1ad | /metodo.cpp | 4e93b8735f05fe5f62b01ec1c1d49025eb324c7c | [] | no_license | JonathanTrEs/Hash | f3ff235fb2bf710a0a7bffaebff0bc38ca048ba2 | cf78e52e645d5c0c65f85248875f1dff8bb54406 | refs/heads/master | 2021-07-07T02:44:04.734563 | 2017-10-01T15:53:54 | 2017-10-01T15:53:54 | 105,453,670 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,532 | cpp | metodo.cpp | #include "clase.h"
///////////////////////////////////////////////////////////////////////////////////////// CLASE ALEATORIO ////////////////////////////////////////////////////////////////////////////////////////////////////////
//CONSTRUCTOR
aleatorio::aleatorio(int numelem)
{
nelem_ = numelem;
vect_ = new i... |
6621e3cc17a4519032c0558b9e6005e99be94f20 | 51e9b7b662433e243860d9d156cd9c024c3a52a0 | /kokkos-master/core/src/Kokkos_SYCL.hpp | b076812de138453783900f9b50a84db0582a11d4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Ryanxiejh/my_kokkos | b2d304966f6687004d553af9f71d5002f7532c5b | 6db03bee9ef433c924c06c1584ba776826f529b2 | refs/heads/master | 2023-03-10T22:24:30.819989 | 2021-03-02T01:47:13 | 2021-03-02T01:47:13 | 341,111,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,692 | hpp | Kokkos_SYCL.hpp | //
// Created by Ryanxiejh on 2021/2/22.
//
#ifndef KOKKOS_SYCL_HPP
#define KOKKOS_SYCL_HPP
#include "Kokkos_Macros.hpp"
#ifdef KOKKOS_ENABLE_SYCL
#include <CL/sycl.hpp>
#include <Kokkos_SYCL_Space.hpp>
#include <Kokkos_Layout.hpp>
#include <Kokkos_ScratchSpace.hpp>
#include <impl/Kokkos_ExecSpaceInitializer.hpp>
#i... |
87dc148502edef71ead2fff2d2eb65e28207e99c | 32ca4a9aba37699021969b9c30515240f465d7f0 | /practice/Tree.cpp | 027b115ece54b3b852d7eb59d0c9aee275d75c1b | [] | no_license | niceyeti/DoubleSecretProbation | 9a2ad0e1610709409ef47b4bedd06b974f4abee7 | 9da17eaf24e813026a07632f0667e405772293bc | refs/heads/master | 2022-11-28T04:32:46.688831 | 2022-11-21T22:16:29 | 2022-11-21T22:16:29 | 110,478,787 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,433 | cpp | Tree.cpp | /*
The problem:
Write a binary tree to a file and reconstruct it.
Questions: what kind of tree? complete? ordered? key values
in the tree?
Here I build a random ordered tree, output it, and rebuild it.
*/
#include "Tree.hpp"
Tree::Tree(int n, string treeFileName)
{
fileName = treeFileName;
fd = -1... |
9fccf41fb79fa85d150978b067903a807ae0f502 | 396e65a4565ed2d2e75351a09217446f8ad89bd3 | /My3DGame/src/PointLightComponent.cpp | 18a85f65193f8c06f06b4a2563d420772d4b3657 | [
"BSD-3-Clause"
] | permissive | bobnone/bobnone | bb2caa67f955f603445d23f47c9c88292e22996f | 498349d6ba59eda814285710775c8c3f6b755eb4 | refs/heads/master | 2021-07-12T10:29:20.753800 | 2020-05-21T04:19:02 | 2020-05-21T04:19:02 | 138,142,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,812 | cpp | PointLightComponent.cpp | //----------------------------------------------------------------
//From Game Programming in C++ by Sanjay Madhav
//Copyright (C) 2017 Sanjay Madhav. All rights reserved.
//Released under the BSD License
//See LICENSE in root directory for full details.
//---------------------------------------------------------------... |
c97155cb65656cea965fabb8de46106f1e153302 | 2a88cc31069099e1c223f0049f8d9ff27703938b | /code/engine/gkFont/gkFontRenderable.h | dd6d35a9c7fb292062a747deb35a4c8bc38df602 | [] | no_license | longlongwaytogo/gkEngine | ffd4aff126095b7798fdb5a8cafde75a11b77fb5 | c308a5f7a9900dcb40c3cd37b9f2fd0829b246b5 | refs/heads/master | 2020-11-27T11:37:55.587685 | 2019-12-21T12:31:05 | 2019-12-21T12:31:05 | 229,424,018 | 0 | 0 | null | 2019-12-21T12:25:51 | 2019-12-21T12:25:50 | null | UTF-8 | C++ | false | false | 3,128 | h | gkFontRenderable.h | //////////////////////////////////////////////////////////////////////////
/*
Copyright (c) 2011-2015 Kaiming Yi
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... |
ecfb31a11af49a56ae477117d6f6c58923538f11 | 0aa8bb81c301cc9c6000107165d606af8d857eb6 | /lsystem/include/Tests.h | 26e406e21ebef6cac2ee7178c12d0f95dda61c61 | [
"Apache-2.0"
] | permissive | karinemiras/coevolution | 268bade8d2008c943980326f65a18f49581d040b | 4880907a432638029420c25e65ad337da840fa74 | refs/heads/master | 2020-03-21T21:29:09.642744 | 2019-02-15T12:50:46 | 2019-02-15T12:50:46 | 139,065,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 980 | h | Tests.h | //
// Created by Karine Miras on 19/05/2017.
//
#ifndef LSYSTEM_PROTO_TESTS_H
#define LSYSTEM_PROTO_TESTS_H
#include <string>
#include "Aux.h"
#include "Genome.h"
class Tests{
public:
Tests(std::string experiment_name,
std::map<std::string, double> params,
std::string pa... |
953afd9295fcfa28a50b46d195e8315932e7b843 | ba3c1a0fa3510ba77ee2135423bdfb1d7520b100 | /src/1016.cc | 1df95f2af38bc2351f5ac4147e4e4497ee65dfb2 | [] | no_license | MinetaS/Baekjoon | c5e26f84dcf2dcddb79a06505e20196435f59feb | 7f824ee9ec48b019e768fa31e0fca77819f52536 | refs/heads/master | 2023-08-09T07:48:58.800840 | 2023-07-30T02:53:30 | 2023-07-30T02:53:30 | 188,702,637 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,048 | cc | 1016.cc | #pragma GCC target("sse,sse2,sse3,ssse3,sse4,avx,avx2") // Intel Xeon E5-2666 v3
#pragma GCC optimize("Ofast")
#include <cstdint>
#include <cstdio>
#include <initializer_list>
#include <immintrin.h>
namespace {
constexpr int VectorSize = 0x20;
template<size_t N>
struct alignas(VectorSize) BooleanArray {
stati... |
686ed51e2c4f53afa1b3f006cd108d58a26665b8 | 011006ca59cfe75fb3dd84a50b6c0ef6427a7dc3 | /SPOJ/LCASQ.cpp | d93b3eaaa2801c3206d87410ecaaf29758a00149 | [] | no_license | ay2306/Competitive-Programming | 34f35367de2e8623da0006135cf21ba6aec34049 | 8cc9d953b09212ab32b513acf874dba4fa1d2848 | refs/heads/master | 2021-06-26T16:46:28.179504 | 2021-01-24T15:32:57 | 2021-01-24T15:32:57 | 205,185,905 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | cpp | LCASQ.cpp | #include <bits/stdc++.h>
#define V vector
using namespace std;
V<int> first;
V<int> arr;
V<V<int> > adj;
V<int> height;
V<int> hs;
V<int> tree;
int n;
void dfs(int s, int p){
arr.push_back(s);
if(p != -1)height[s] = height[p]+1;
for(auto i: adj[s]){
if(i == p)continue;
dfs(i,s);
ar... |
5a3012b69830ef756ef2cccc0654ef406d9522a6 | 9097f0875e434421ec6896009aa3dd616ff0ad56 | /unittests/test-contracts/noop/noop.hpp | e84492c87989a820a8a6d022ad1c0db9630e84cf | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | mtpbuilder/mtp | 94394c0bd8239b1da4de3dc613761562d8ed0be4 | 9dbc99e91b7d0900b75ad4a461a1da9da2c80450 | refs/heads/master | 2022-09-05T03:52:36.162807 | 2020-05-27T13:15:05 | 2020-05-27T13:15:05 | 266,506,624 | 27 | 25 | null | null | null | null | UTF-8 | C++ | false | false | 348 | hpp | noop.hpp | #pragma once
#include <mtpio/mtpio.hpp>
class [[mtpio::contract]] noop : public mtpio::contract {
public:
using mtpio::contract::contract;
[[mtpio::action]]
void anyaction( mtpio::name from,
const mtpio::ignore<std::string>& type,
const mtpio::igno... |
de7217643c23fbe4a94d66afc84fbada021b1fd5 | b1008277f3c9103de6b434e4f3f62d6206e6873e | /GLSL/ObjLoader/source/GLUtil/GLUtil.cpp | 4344dc740c6cbd51e21bf6ad9ce4d40a03fa8785 | [] | no_license | manojyerra/OpenGL | b8bd9af9d3a63f74d810593d9608ca38c397187b | d241d6c2a6b245592b3a611f6880101e360a83b0 | refs/heads/master | 2022-12-10T12:34:48.137998 | 2019-11-10T05:40:53 | 2019-11-10T05:40:53 | 88,062,264 | 0 | 1 | null | 2022-12-09T19:28:30 | 2017-04-12T14:37:51 | C | UTF-8 | C++ | false | false | 8,364 | cpp | GLUtil.cpp | #include "GLUtil.h"
//#include "Input.h"
#include <math.h>
float GLUtil::SW = 0;
float GLUtil::SH = 0;
void GLUtil::Init(int screenW, int screenH)
{
SW = (float)screenW;
SH = (float)screenH;
glShadeModel( GL_SMOOTH );
//glCullFace ( GL_BACK );
//glFrontFace ( GL_CCW );
glDisable ( GL_FOG );
glDisable ( ... |
3bf748a36e700435a7e91cbdf4d19353b84645d7 | 926abeecf1e2dff76cbb3eb1f7838d463b56cded | /src/main.cpp | d5421cf5cca6a71cf6f4cb395fff09105174f07a | [] | no_license | tinaxd/mycraft | e45da17102d4ce7918b46d6456b862761ed1021c | 341a80a5e9f7dd423fd545597a0e7a29f0b7d1c1 | refs/heads/master | 2023-03-14T11:03:54.462338 | 2021-02-24T05:32:04 | 2021-02-24T05:32:04 | 341,181,391 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | cpp | main.cpp | /*
* main.cpp
*
* Created on: 2021/02/22
* Author: tinaxd
*/
#include "graphics.h"
#include "worldgen.h"
#include "world.h"
#include "TextureMap.h"
using namespace mycraft;
int main(int argc, char **argv)
{
//WorldGenerator gen;
//const auto& chunk = gen.generate_chunk(0, 0, 0);
std::array<Block, Chun... |
72c7e5dccb66ce636989a55cac8dc9991e208039 | 578088ddb73e4912b2837595b6a9a3b0c993260b | /Lab2: Task Dispatch and Queuing Networks/simulator2/request_generator_dist.cpp | 1ec1425d69128b687b89e55e79df6fab0b615aef | [
"MIT"
] | permissive | AbirBodhisatwa/Discrete-Event-Simulator | 8df4fd8b8ec0689e3864df88024dd8e90959a829 | 5f1b6516a7a15f50038d40841954814a7ccfa20a | refs/heads/master | 2020-05-31T20:01:48.560232 | 2019-06-05T20:56:03 | 2019-06-05T20:56:03 | 190,467,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 758 | cpp | request_generator_dist.cpp | #include "request_generator_dist.h"
#include "distribution.h"
#include "factory.h"
REGISTER_CLASS(RequestGenerator, RequestGeneratorDist)
//TODO fill in
RequestGeneratorDist :: RequestGeneratorDist(Json::Value& config) : RequestGenerator(config)
{
_obj = Factory<Distribution>::create(config["dist"]);
//_name = ... |
5ee3a88cf1527aa4c0dacc3f2e1de31446ec0291 | d9758a63430a994f08cbd55151626763ce93095b | /OPHD/Things/Structures/Recycling.h | 053676376c9711d82a0ba63800275870d0324928 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | m0nkeyb0y/OPHD | 99d9a9b721111bd7aa471328af2ba36b30920a04 | a76e8ba23149c9702b2f25db71b9fa43b2c4647f | refs/heads/master | 2023-03-02T00:57:17.201993 | 2021-02-08T21:10:07 | 2021-02-08T21:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | h | Recycling.h | #pragma once
#include "Structure.h"
#include "../../Constants.h"
class Recycling : public Structure
{
private:
const int WasteProcessingCapacity = 30;
const int ResidentialSupportCount = 10;
public:
Recycling() : Structure(constants::RECYCLING,
"structures/recycling.sprite",
StructureClass::Re... |
6a0486bf2cbc2b56831607964744701679d76518 | 0123c2f3d3590ee51f02740839a52cc8fab8a908 | /IRFinders/IRFinders.cpp | 829e56a80872b8e9549d41537d619bb441d8a224 | [] | no_license | PribaNosati/MRMS | 9dc51c3fd263503d349e34fcf3d7256f8d93a2a8 | 7b5accaf607ec42320ee0e455a6b1028afd54ce4 | refs/heads/master | 2022-10-02T14:12:15.742710 | 2022-09-10T17:13:51 | 2022-09-10T17:13:51 | 139,198,300 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,718 | cpp | IRFinders.cpp | #include "IRFinders.h"
/**Add a sensor
@param angle - Analog pin for angle. Robot front is 0 degrees and positive angles are to the right. Total range is -180º to 180º.
@param distance - analog pin for distance.
*/
void IRFinders::add(uint8_t anglePin, uint8_t distancePin)
{
if (nextFree >= MAX_IR_FINDERS)
... |
4599e53fe6066c0a650c5397fea9aabeb1aad3a7 | acae644df7091d09e82d42ab35ed2ce21168bc62 | /CreationOfDungeon_master/PanelAffectObjects.h | 0f7eb770a86803de1eb515cabc529d2d372a5f5c | [] | no_license | NortonGitHub/Creation_of_dungeon | 891b89447d4f61d80691008c991434c9da8c728c | 621ce6592596c0a99efa213c1e6490ef00cf0e68 | refs/heads/master | 2020-04-06T04:29:15.092955 | 2018-03-23T21:11:00 | 2018-03-23T21:11:00 | 73,819,317 | 0 | 1 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 565 | h | PanelAffectObjects.h | #pragma once
#include "PanelBase.h"
#include "EditObject.h"
class PanelAffectObjects :
public PanelBase
{
//ƒJƒeƒSƒŠ‘I‘ð
public:
PanelAffectObjects();
PanelAffectObjects(PanelContent _panelContent);
~PanelAffectObjects();
void Update();
void Draw();
void Init(PanelContent _panelConten... |
d3611705eac7750861ebcd288f64ebdc8378b40b | 417f3c5f1df10a43fedde4600b141e5f850d7d6c | /294 - Divisors.cpp | dc50ab0f0b85ad0ffce47e4e26493ee5215b06f6 | [] | no_license | HSAkash/UVA | 56ce6f7af2ab6186f3fbb153ab2473f3392677b0 | 849414cb8c3a4892df5bcdc8f2a444a6ad01b61a | refs/heads/master | 2021-12-14T18:56:08.037131 | 2021-12-03T02:40:04 | 2021-12-03T02:40:04 | 250,986,090 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 922 | cpp | 294 - Divisors.cpp | #include<stdio.h>
int main()
{
int n,l,u,i,j,k,a,b,c,count,d,f;
while(scanf("%d",&n)!=EOF){
while(n--){
scanf("%d%d",&l,&u);
d=0;
for(i=l;i<=u;i++){
a=i;
c=0;
while(a%2==0){
c++;
... |
1a50adf72ed7efd2398d6e7a2e8e6d2bee063b94 | be57cf9d8c4ae12cd7440dfef735541f7303a234 | /src/Texture.cpp | 66312e422fb7d41b5c891b3e1746cab54b9d6e85 | [] | no_license | 7182514362/gobang | 6cb753777fff08ec83b678c581e0cc57782a830b | 74260f37427171ad995de04492407d23d6fce4d1 | refs/heads/main | 2023-04-10T19:54:45.566334 | 2021-04-19T10:07:42 | 2021-04-19T10:07:42 | 359,385,304 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,897 | cpp | Texture.cpp | #include "Texture.h"
#include <iostream>
Texture::Texture(SDL_Renderer *r) : mTexture(nullptr), mRenderer(r), w(0), h(0),
srcRect({0, 0, 0, 0}), colorKey(0),
dstRect({0, 0, 0, 0}), rotation({0.0, {0, 0}}) {}
Texture::~Texture()
{
SDL_DestroyT... |
1d3f9d031c38696ab0d09dd4ed3272425e5ce209 | b1a28e069dcc89c54dd4e12fb50209a9283f42d3 | /3_1.cc | 034e934fb362c4f07ef5d1e8fd20368795696807 | [] | no_license | braeden/Cpp-NCC | cb25383bd68a8678f0c11f031b062a9020a67a76 | bd381abe8f20dc94eedbb3bfab5eecdaa3a8282a | refs/heads/master | 2021-06-06T08:46:21.570775 | 2016-07-21T17:11:27 | 2016-07-21T17:11:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | cc | 3_1.cc | #include <iostream>
int main()
{
std::cout << "Braeden Smith\n";
std::cout << "63 Colony Rd\n";
std::cout << "Westport CT\n";
return 0;
} |
e1d90134e3a1a36c7c3ae13c8390a08099ce8799 | 818f541c8cff448ac7d50efac3d6382882ebd9ec | /Source/HANSEIRacing/RearVehicleWheel.cpp | 9ea9199934fdf020d248436143743350e98569fe | [] | no_license | PPODO/UE4_PLAYERUNKNOWN-S_BATTLERACING | 3c6027f55c1c5eecfaef21a22ce91276e3d33bd8 | 7ea8818c49839d6e09d4c0049aba5733c4a06eee | refs/heads/master | 2021-07-20T18:42:55.098535 | 2020-02-20T08:51:03 | 2020-02-20T08:51:03 | 171,319,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 659 | cpp | RearVehicleWheel.cpp | #include "RearVehicleWheel.h"
#include "ConstructorHelpers.h"
#include "TireConfig.h"
URearVehicleWheel::URearVehicleWheel() {
ShapeRadius = 18.f;
ShapeWidth = 15.f;
bAffectedByHandbrake = true;
SteerAngle = 0.f;
LatStiffMaxLoad = 2.25f;
LatStiffValue = 5.5f;
LongStiffValue = 1000.f;
SuspensionForceOffset = ... |
6e1e1d9a6afcf5424b04db5305ed522df8073599 | c6edda04814ffb23df750ce23b81169ec35c0057 | /GameEngine/AssetNode.h | fa4599f4a6fd84ebb203a067248fdca8e77f63b8 | [] | no_license | wlodarczykbart/SunEngine | 91d755cca91ca04ef91879ccfd11500f884e5066 | 04200f084653e88ba332bb260b6964996f35f5a0 | refs/heads/master | 2023-06-07T02:33:20.668913 | 2021-07-03T17:31:38 | 2021-07-03T17:31:38 | 315,081,186 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,000 | h | AssetNode.h | #pragma once
#include "MathHelper.h"
namespace SunEngine
{
class SceneNode;
enum ComponentType
{
COMPONENT_CAMERA,
COMPONENT_LIGHT,
COMPONENT_RENDER_OBJECT,
COMPONENT_ANIMATOR,
COMPONENT_ANIMATED_BONE,
COMPONENT_SKINNED_MESH,
COMPONENT_ENVIRONMENT,
COMPONENT_COUNT,
};
class Component;
class C... |
411131df58846477574b4709769ac5e3f915d904 | 182bc65c421bb539c1a4821843f060981685ca12 | /Circular Queue.cpp | 14b2819894c3bcb31007013e6440a0160aa28dc8 | [] | no_license | shinchanAK/dsa | 729385de22998f0198c67274427c464d297fa70f | 00b27e70a092c5073cef46d2aa27b50d8978390e | refs/heads/main | 2023-01-10T06:54:47.551552 | 2020-10-26T11:35:45 | 2020-10-26T11:35:45 | 307,351,805 | 1 | 0 | null | 2020-10-26T11:35:17 | 2020-10-26T11:35:17 | null | UTF-8 | C++ | false | false | 1,704 | cpp | Circular Queue.cpp | #include <iostream>
using namespace std;
# define j 5;
int cqueue[5];
int front = -1, rear = -1, n=5;
void insertCQ(int val) {
if ((front == 0 && rear == n-1) || (front == rear+1)) {
cout<<"Queue Full \n";
return;
}
if (front == -1) {
front = 0;
rear = 0;
} else {
if (rear == ... |
901cda404c42c62a59ac2960a11b231a2adc9f09 | f1e21dcfb6111b3093d6135b50f7adb62839914b | /src/eigen_im2col.cpp | f2c4c169cfb6c482fdee651bc043998347381f6a | [
"MIT"
] | permissive | Peratham/kaffe | ca2c270795efeacfe632d5005cb4b9a394b789f2 | 53395554dbcbdb2500973a65cf1e039ca67d6162 | refs/heads/master | 2020-06-18T08:58:28.084255 | 2016-11-28T02:20:30 | 2016-11-29T13:14:11 | 75,149,179 | 1 | 0 | null | 2016-11-30T03:51:39 | 2016-11-30T03:51:38 | null | UTF-8 | C++ | false | false | 1,988 | cpp | eigen_im2col.cpp | #include <assert.h>
#include "eigen_engine.hpp"
namespace kaffe {
// more detail https://www.zhihu.com/question/28385679
template <typename Dtype>
Eigen::Matrix<Dtype, -1, -1> EigenEngine<Dtype>::im2col_cpu(Blob<Dtype>& src, const int numIndex,
const int kerne... |
51f6214741d3fafa4bac1936246ea66781ee8cb3 | e0c92a1688e633e0d65c2b5c5844856626fa5116 | /problems/cpp_def.cpp | a69da0470226c1a23c0618ca24229529d910f5c9 | [] | no_license | avee137/interview | 9bf4ac9fe09909ed0b25a5f24e075e58442d1491 | 5435a7ed21a407bff3abdea8bbc29689f9cb5ea0 | refs/heads/master | 2021-09-06T19:12:42.895486 | 2018-02-10T06:55:08 | 2018-02-10T06:55:08 | 115,280,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | cpp | cpp_def.cpp | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
//to compile : g++ name.cpp -o name.o -std=c++11
int main() {
return 0;
}
|
c989ae7c4f550859f2cafb081619ff4a49be5c00 | 3289664487571d014501ab3a454f4b43a323a958 | /examples/poo-pinled-chaserswitch/poo-pinled-chaserswitch.ino | 8f6aa43c9d138ecf2809d94ddecba8349a6781de | [] | no_license | epsilonrt/poo-tuto | 9f5f37cf8551d0ef61acebd4673e1c9c5e531727 | c7a43fa0e585023da8759c3c0173ef3e30b8ac0e | refs/heads/master | 2020-04-24T21:11:08.064317 | 2019-12-21T17:18:34 | 2019-12-21T17:18:34 | 172,268,614 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,373 | ino | poo-pinled-chaserswitch.ino | // POO Tutorial
// ChaserSwitch Class Demo
// This program helps to check the class.
// The chaser runs with default values.
// The push buttons allow you to change the settings:
// - Button 1 allows you to stop and start the caterpillars.
// - Button 2 reverses the direction of operation.
// - Button 3 is used to ch... |
d9d706f8e4cee056b4d2c64c67cd3561dedaf2c0 | a33aac97878b2cb15677be26e308cbc46e2862d2 | /program_data/PKU_raw/58/607.c | af80fe07c8e499acf28d218e43684478bf16a0f0 | [] | no_license | GabeOchieng/ggnn.tensorflow | f5d7d0bca52258336fc12c9de6ae38223f28f786 | 7c62c0e8427bea6c8bec2cebf157b6f1ea70a213 | refs/heads/master | 2022-05-30T11:17:42.278048 | 2020-05-02T11:33:31 | 2020-05-02T11:33:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | c | 607.c | int main()
{
int n,i,j,len[100]={0},sum[100]={0};
char str[100][81];
cin>>n;
cin.get();
for(i=0;i<n;i++)
cin.getline(str[i],81,'\n');
for(i=0;i<n;i++)
{
if((str[i][0]=='_')||('A'<=str[i][0]&&str[i][0]<='Z')||('a'<=str[i][0]&&str[i][0]<='z'))
{
for(j=1;j<81;j++)
{
if(str[i][j]=='\0')... |
6bfa063769affe0e0b045c53af4102e417b13c9c | 54ac99fd5d149bda52badd13b725da1c9a875671 | /codeforces/1228/A.cpp | 1e87474e17b91e8dde2dcbc38afab0da6f711bd1 | [] | no_license | Rajan-226/CP-Practice | 2b52dbc5a93c240a61939b1bd7e65a4e72e20ea6 | 4cfd4685fc27af09a42f871b5e1a557c28eebc45 | refs/heads/master | 2023-04-06T20:41:43.751983 | 2023-03-25T10:49:11 | 2023-03-25T10:49:11 | 323,306,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | cpp | A.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
#define nl cout<<"\n"
#define dbg(x) cout<<x<<" ";
#define fi(a,b) for(int i=a;i<b;i++)
#define fj(a,b) for(int j=a;j<b;j++)
#define UM unordered_map<int,int>
#define ULL unordered_map<ll,int>
bool check(int i){
int a[10]={0};... |
a12a7061524942b76179420b8a538a5318288873 | 5660c83f8d81026403640f964f5d0a6523bd070c | /proto-out/datanode_server.pb.h | 81f5b3d222e9e2457741e9033551ec7a4e0e8020 | [
"MIT"
] | permissive | bhalder/bdfs | 7f7875a6351de4fa1a7fe09667e038a7714f67ad | 05d32f93182afd5b88bdddeca607a56c341e9038 | refs/heads/master | 2021-08-16T06:29:59.759939 | 2020-03-30T04:56:22 | 2020-03-30T04:56:22 | 140,800,175 | 1 | 0 | MIT | 2020-03-30T04:56:24 | 2018-07-13T05:17:05 | C++ | UTF-8 | C++ | false | true | 39,976 | h | datanode_server.pb.h | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: datanode_server.proto
#ifndef PROTOBUF_datanode_5fserver_2eproto__INCLUDED
#define PROTOBUF_datanode_5fserver_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file wa... |
23ca945e86568cdc1de29e613cf467f4dbccee4c | f8818673c676eca10e10d78f6f3c01db36582b61 | /Myo Windows Lock/myo-lock.cpp | 8d968963fb6cb43d3e79f81905febf3521d353d1 | [
"Apache-2.0"
] | permissive | thalmiclabs/RAD-projects | 8e3d4249138327a7fca3f811cc75a15ca2e63ce7 | 6b5e06904586f73c9339fb8ee121a0391ab2520f | refs/heads/master | 2021-01-25T08:54:54.970126 | 2020-09-10T22:00:34 | 2020-09-10T22:00:34 | 34,908,872 | 8 | 16 | null | null | null | null | UTF-8 | C++ | false | false | 5,832 | cpp | myo-lock.cpp | // Copyright 2015 Google LLC
//
// 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 ... |
0ba080e9540a345f2b2cf06ab4a1807db06a7bee | 3e3c8a30397d1280fb039ff373be94c18cdc0116 | /Exercici_2_Print/Exercici_2_Print.ino | 45e811f8f34f0c08489c0cf0e45b6e5891c3fdf0 | [] | no_license | SRC74/Print-Repte | 7232bd6a28dcee419ca881f0dbf19e02f1ecf2cf | 0a5737886246673c901f4a84019a0ab9f33058d5 | refs/heads/master | 2021-01-19T10:17:15.690928 | 2017-04-10T20:29:56 | 2017-04-10T20:29:56 | 87,851,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | ino | Exercici_2_Print.ino | /*********************************************************************
** **
** TÏTOL: Math is fun **
** **
** ... |
a5fb7c2da705bb7a5ed6584266394b4d9d464b3e | eca889d2e9271790da4269c4e62afa49050288cb | /compatabilityquizwindow.cpp | c5790348bbe75a44fde6fc6278119a2bffba9592 | [] | no_license | jordancdavis/camPAIN | 437662cffc1c25b6cd6fc2c772450f3fcccc6805 | 3da16ac5d97c7dec73174596661f2c1129c6328c | refs/heads/master | 2021-01-01T04:46:25.064372 | 2016-05-04T06:45:16 | 2016-05-04T06:45:16 | 58,028,137 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,007 | cpp | compatabilityquizwindow.cpp | #include "compatabilityquizwindow.h"
#include "ui_compatabilityquizwindow.h"
#include <QDebug>
#include <qglobal.h>
#include <QTime>
CompatabilityQuizWindow::CompatabilityQuizWindow(QWidget *parent) :
QWidget(parent),
ui(new Ui::CompatabilityQuizWindow)
{
ui->setupUi(this);
questionsAnswered = 0;
m... |
e5794533b7c974a66d897c0b78849eb7dd2b55e6 | 27f33d2a63e607c0a4e4baaaa1f61d538f65d7e9 | /23. Second max in array.cpp | c753ffcafb9c6a9c3d46c6ab308d134886d9c56e | [] | no_license | Ajayt110/CPP | 348b8c9161a7089c514761121567c032f2604287 | ccfe985bf5d0028b0563d352400f18f4cdd4fb76 | refs/heads/master | 2022-12-13T12:54:46.138330 | 2020-09-09T13:44:19 | 2020-09-09T13:44:19 | 294,017,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | cpp | 23. Second max in array.cpp | #include<iostream>
using namespace std;
main()
{
int i,m,sm,len;
cout<<"enter length of array\n";
cin>>len;
int a[len];
cout<<"enter "<<len<<" elements\n";
for(i=0;i<len;i++)
{
cin>>a[i];
if(i==0)
{
m=a[0];
sm=a[0];
}
if(a[i]>m)
{
sm=m;
m=a[i];
}
else if(a[i]>sm && a[i]!=m)
... |
08f810f1f42201932f98f123cb1701dac47f64f9 | 1b17a884a99430295ca11c10130975c9b3670458 | /MysteryStack2019/MysteryStack2019/stack_test.cpp | c621b914f30b236a28e03b121e11a176c5b6b4c0 | [] | no_license | soundestmammal/cpp | 1eb39aae4ba0761786710cbd8319f44b1b243c34 | f6455796214b7a2e2d932c9d20ca3c3b69154761 | refs/heads/master | 2020-04-14T00:32:27.823771 | 2019-12-08T20:38:57 | 2019-12-08T20:38:57 | 163,535,698 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,122 | cpp | stack_test.cpp | #include <iostream>
#include <string>
#include <fstream>
#include "stack.h"
#include "mysteryStack.h"
int testStream();
int main() {
int response = testStream();
if(0 == response) {
std::cout << "congrats! your test stream passed all tests" << std::endl;
} else {
std::cout << "Sorry, some tes... |
76545e92f5fad35e2899e863f20c67d392139454 | b5a2424fd84c21ae7aadf461a6f2959384b74c6e | /game.cpp | d54209219d62211544355aeb90ddc62f5c01e4fb | [] | no_license | Maxim0/Game-Life-Conway | 8ca492473ad8c87921801e551bb5646ff6326810 | cd3864cf6a2dda78ecd1626acc33d229d6a8be76 | refs/heads/master | 2021-01-18T08:06:53.805155 | 2015-04-30T18:02:32 | 2015-04-30T18:02:32 | 34,868,738 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,032 | cpp | game.cpp | #include "game.h"
void Game::clearMain(bool** arr)
{
for(int i = 0; i < size; i++)
for(int j = 0; j < size; j++)
if(arr[i][j] != 0)
arr[i][j] = 0;
}
void Game::checkCellGame(bool** arr1, bool** arr2, int r, int c, bool state)
{
int count = 0;
if(arr1[r-1][c] == 1) // сверху
++count;
if(arr1[r-1][c-1] =... |
6d26139ae9772fef7dcd114ba25e250088fdb87d | ff8902242bfd5d0e32a665900ab333e7ca748597 | /acwing282_石子合并.cpp | 1ea6865eeaac33a817fc085a3c3876dd5aff7e10 | [] | no_license | shaomairong/algorithm | 2e68a726c14ea52ab5d2e8b3fc281b3ba213c74b | 326de28690fcd14629fec0c5a48691d2497fc008 | refs/heads/master | 2022-12-29T02:01:21.710947 | 2022-08-04T04:16:21 | 2022-08-04T04:16:21 | 304,008,381 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,545 | cpp | acwing282_石子合并.cpp | //方法1:自下而上遍历
#include <iostream>
using namespace std;
const int N = 307;
int s[N];
int f[N][N];
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
cin >> s[i];
s[i] += s[i - 1];
}
for (int i = n; i >= 1; i--) {
for (int j = i; j <= n; j++) {
if (j == i) ... |
e8c0024cb913ebc2bf30279faee430b5dc0e487f | 2cf80ac9407504201f29c1d8540dd577bf941403 | /LeetcodeContest/WeeklyContest170/Q4.cpp | 14c4f44c755e74da07efdb24e1048736eb9a9e47 | [
"MIT"
] | permissive | Itachi666/AlgorithmWarehouse | eabe784350fc7cb200fa25ded844d22b383c06cf | 37ab80f70f33742b169bc809c7736cd73c1f3f44 | refs/heads/master | 2022-04-05T05:15:22.952343 | 2020-01-05T14:11:36 | 2020-01-05T14:11:36 | 212,549,280 | 0 | 0 | null | 2019-10-03T10:13:34 | 2019-10-03T10:08:11 | C++ | UTF-8 | C++ | false | false | 712 | cpp | Q4.cpp | class Solution {
public:
int minInsertions(string s) {
int n=s.length();
vector<vector<int>> dp(n+1, vector<int>(n+1, 0x7fffffff));
for (int i=0;i<n;i++)
dp[i][i]=0;
for (int i=0;i<n-1;i++)
if (s[i]==s[i+1])
dp[i][i+1]=0;
... |
10ee6d9712ec76174ce6b0f6b4f539e63afc65e9 | d579699e6728aa74084f8cc4dc435007b9f523a8 | /src/boomerang/db/DefCollector.cpp | 4ccf85079904e96a85336f7235cdd4939590ca5d | [
"BSD-3-Clause"
] | permissive | BoomerangDecompiler/boomerang | b3c6b4e88c152ac6d437f3dd3640fd9ffa157cb6 | 411041305f90d1d7c994f67255b5c03ea8666e60 | refs/heads/develop | 2023-08-31T03:50:56.112711 | 2020-12-28T12:11:55 | 2020-12-28T17:38:56 | 7,819,729 | 281 | 41 | NOASSERTION | 2020-12-27T17:59:52 | 2013-01-25T12:26:59 | C++ | UTF-8 | C++ | false | false | 2,776 | cpp | DefCollector.cpp | #pragma region License
/*
* This file is part of the Boomerang Decompiler.
*
* See the file "LICENSE.TERMS" for information on usage and
* redistribution of this file, and for a DISCLAIMER OF ALL
* WARRANTIES.
*/
#pragma endregion License
#include "DefCollector.h"
#include "boomerang/ssl/exp/RefExp.h"
#include "... |
f3f51dd76552e4a930223ffc92a73b1c905d26e5 | 2ec8f66b6ff97624b08b3f19b7269d08a952a6a1 | /1056A.cpp | bae6e86d688f455bed64f7af850cf50282e93f68 | [] | no_license | shivashish123/Competitive-Programming-Codeforces | 205f79671653ae4f30c35787946c39b274ffe2c1 | e19f28e71b7708e48c83eeaf1c415bc1f8758041 | refs/heads/master | 2020-04-11T06:16:07.059502 | 2019-12-09T17:01:37 | 2019-12-09T17:01:37 | 161,576,132 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 369 | cpp | 1056A.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
int a[101]={0};
while(t--)
{
int n,x;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>x;
a[x]++;
}
}
for(int i=1;i<=100;i++)
{
i... |
eba2abb77c47c459f0ad818249ad05aa806c3b91 | c96e2ace5fa5e8f7f1369445f20b0747a7a2b46d | /grid.cpp | 702ad91196a03b37c90cd8580211ff91126d671c | [] | no_license | oysmal/GameOfLife | a19d483ac485bd97eaf919e97b95209853728272 | 3cb0a06c565ba58efccb6d65fe44734ab9102db5 | refs/heads/master | 2021-01-10T20:54:36.480706 | 2015-05-01T11:32:12 | 2015-05-01T11:32:12 | 30,589,611 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,225 | cpp | grid.cpp | #include "grid.h"
#include <QDebug>
bool Grid::isInstanceInit = false;
bool Grid::isTempInit = false;
std::shared_ptr<Grid> Grid::instance = nullptr;
std::shared_ptr<Grid> Grid::tempinstance = nullptr;
Grid::Grid()
{
grid_array = new bool*[size_x];
for( int i = 0; i < size_x; i++) {
grid_array[i] = n... |
64f2df0f1a990ba86709a44219eff14b397a30e9 | 09f087124e2098994361e791bf720c80734aa6f0 | /interface.cpp | 0fffc2184d82412bd905e2a3de46332ecd9c1920 | [] | no_license | yogsototh/DEES | 04fd49292f646553fce04ef0763e3ee1c1d70ea1 | d84df4b9c085664b886eb4dfb82bed5c36643cf7 | refs/heads/master | 2021-01-22T18:24:07.065831 | 2019-04-23T10:21:25 | 2019-04-23T10:21:25 | 1,762,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,902 | cpp | interface.cpp | #include "interface.H"
extern PPRFA A;
extern Sample S;
extern int nb_tours;
extern float epsprime;
extern bool verbose;
void genere_aleatoire_unique()
{
int nbetats;
int nblettres;
int numgraphe;
int nb_succ, nb_init, nb_term;
PFA A;
cout << "Nombre d'Ètat : ";
cin >> nbetats;
cout << ... |
6d0c127caaec6a22d788cb13b5e629ef014db2b0 | 4b42d1de685dd49d71350baa70652d1356551650 | /lucius/lucius/api/implementation/lucius.cpp | 83a06b193627d74d284a58751b87572e3aabbc96 | [] | no_license | sudnya/video-classifier | 60161daadce1929859c5c1fb802ca19aad39815e | 31e7bd1d7d33a047b9c122ccdd9c23d7240d978a | refs/heads/master | 2021-01-23T18:44:19.417502 | 2017-04-04T14:05:53 | 2017-04-04T14:05:53 | 12,368,884 | 8 | 1 | null | 2017-04-04T14:05:54 | 2013-08-26T01:30:43 | C++ | UTF-8 | C++ | false | false | 6,680 | cpp | lucius.cpp |
// Lucius Includes
#include <lucius/api/interface/lucius.h>
#include <lucius/engine/interface/EngineFactory.h>
#include <lucius/engine/interface/Engine.h>
#include <lucius/model/interface/Model.h>
#include <lucius/results/interface/ResultProcessorFactory.h>
#include <lucius/results/interface/ResultProcessor.h>
#in... |
33a354b5cab87be9f51b636b89288d7a0d59e0f2 | 6ef96ff9ce3a987ba36e2b448b0b0dbac47247c1 | /problem/AtCoder/AtCoderBeginnerContest142/B.cpp | 2a56e765dbc5161671d3d32e3b12ebf0454aa32c | [] | no_license | Kose-i/training_algorithm | daf4ee2be31bd39d61223213dde32ba747c4faee | 6b24afe5fe45ec662768a201966fe12dbe1a1086 | refs/heads/master | 2022-08-29T03:33:24.183287 | 2022-03-07T15:04:54 | 2022-07-05T08:04:19 | 115,332,239 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 284 | cpp | B.cpp | #include <iostream>
#include <vector>
int main(int argc, char** argv) {
unsigned N, K;
std::cin >> N >> K;
std::vector<int> H(N);
for (auto& e : H) std::cin >> e;
unsigned cnt {};
for (auto& e : H) {
if (e >= K) {
++cnt;
}
}
std::cout << cnt << '\n';
}
|
691779d2a28673a2c43e72d7c701d55aec09bd6b | 48a1ec334a35c3fc9992e5838953d385304340e4 | /string/string_ref/string_ref1.cpp | d8edfe85b9a7da7a2169cb266e6370636f2ea160 | [] | no_license | JSY1988/Boost_USE | c4029fdb6b0e36f7987a7fe931eae09a716b6bc8 | 6572c6606fc9e70eb2bca40d43a23321f08ac0a9 | refs/heads/master | 2022-09-15T07:32:25.524599 | 2018-03-31T04:56:59 | 2018-03-31T04:56:59 | 266,538,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | string_ref1.cpp | #include <boost/utility/string_ref.hpp>
#include <iostream>
#include <string>
#include <string.h>
#include <assert.h>
using namespace boost;
int main(){
const char *ch = "Apple iPhone iPad"; //字符数组
string_ref str(ch); //创建字符串引用
assert(!str.empty()); //是否为空字符串
assert(str.size() == strlen(ch)); //获取长度
for(... |
19d816884f399df6dfb2e81d3e92593250d8dd10 | 26cc428b3d87f0cd0f1a2e6a51e9da25cd0b651a | /inflowPosition/Blasius_0/linear/0.7/phi | a1d6e48e202425d729b297d0db209dbccf5f35dc | [] | no_license | CagriMetin/BlasiusProblem | 8f4fe708df8f3332d054b233d99a33fbb3c15c2a | 32c4aafd6ddd6ba4c39aef04d01b77a9106125b2 | refs/heads/master | 2020-12-24T19:37:14.665700 | 2016-12-27T19:13:04 | 2016-12-27T19:13:04 | 57,833,097 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 64,815 | phi | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
... | |
94f659a8c520ebaa4b94cb428d6e05147758d91d | e55f2cbeb54ffabff5971212cb66715350b30994 | /ICPC_count_primce.cpp | 8ad008c786f920e5bdbb44de1218513683bfebde | [] | no_license | jirayuwat12/toiandcodeforce | cf52542bec75ed150578f7a5609c379a4717c22a | e46e41bc7f2e6d366d65b9333c0ad5a7fb45b5cd | refs/heads/main | 2023-02-06T10:58:59.537505 | 2020-12-28T08:51:27 | 2020-12-28T08:51:27 | 324,959,725 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 873 | cpp | ICPC_count_primce.cpp | /*
Auther : Jirayuwat Boonchan
IG : _p_pp_pp
PB : Jirayuwat Boonchan
Email : Jirayuwat12@gmail.com
*/
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <limits.h>
#include <utility>
using namespace std;
#define FOR(i,s,n) for(int i =s;i<n;i++)
#define FORR(i,s,n) for(int i... |
81869fa0851f167b12bcac64e47c6063fe58382d | 27c75711bbe10b3120c158971bb4e830af0c33e8 | /AsZ/2015.04.12/F2.cpp | d7fb0576eb7501b19941175fea3c500fb718e388 | [] | no_license | yl3i/ACM | 9d2f7a6f3faff905eb2ed6854c2dbf040a002372 | 29bb023cb13489bda7626f8105756ef64f89674f | refs/heads/master | 2021-05-22T02:00:56.486698 | 2020-04-04T05:45:10 | 2020-04-04T05:45:10 | 252,918,033 | 0 | 0 | null | 2020-04-04T05:36:11 | 2020-04-04T05:36:11 | null | UTF-8 | C++ | false | false | 1,632 | cpp | F2.cpp | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cmath>
#include <ctime>
#include <cassert>
#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <bitset>
#include <algorithm>
#define MST(a,... |
11d83f175ca30ad09bb35a7fdaeef7864f4d7f8a | d7073a30380f68a33f1b7484873310bf5a7f754e | /lib/Segment.cc | e97fc4fad8789187dce937702b82df5c97ee887e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | isabella232/Text-tokenizer | 9a1214e0f4de39ee953e777ed8b41ac7762b4b6a | fcd0528cb4bf106a8d98365db568ec07b152400b | refs/heads/master | 2021-12-15T03:17:20.639154 | 2017-07-24T15:40:18 | 2017-07-24T15:40:18 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 14,996 | cc | Segment.cc | /** This library is under the 3-Clause BSD License
Copyright (c) 2017, Orange S.A.
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 copyright notice,
this list... |
c66bff395dc735aabe7671259ea0a5aab5de3c4b | 200460ba46116a2e1c293170ff1e5cb68b652d01 | /lab3/GameException/wrong_coord.h | e2a583d4b138cb6df26a3bae151c39f55750b7a3 | [] | no_license | Ta3ikNSU/lab3Sem | 572ec226c79959c8f1edf7f4c3c590ba8a883758 | 40a99f0722f40daed3f60da6dc4df657204941c5 | refs/heads/master | 2023-02-10T02:05:37.859573 | 2021-01-06T09:03:58 | 2021-01-06T09:03:58 | 294,710,763 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 293 | h | wrong_coord.h | //
// Created by Ta3ik on 22.12.2020.
//
#ifndef LAB3_WRONG_COORD_H
#define LAB3_WRONG_COORD_H
#include "../GameException/GameException.h"
class wrong_coord : public GameException {
public:
wrong_coord(const std::string &_msg) : GameException(_msg) {};
};
#endif //LAB3_WRONG_COORD_H
|
ae7c74270f4595213314a3506267d7afb2ed6f53 | fd2e6b0d6f8260d6b1fd5c42dbbe6ec1e6f944e9 | /Semester 2/Data Structures/Sorting/Mergesort2.cpp | ef57eed954ed859ea0ad8bb3e5f85edcf18ee69e | [] | no_license | surbhim18/bsc-lab | 583d18343ca46395e2d0778a618f06f6dc42dfa3 | d28849099766d9e83cc42117ff35c49eaada919e | refs/heads/master | 2021-04-09T14:34:20.723991 | 2018-04-17T19:00:51 | 2018-04-17T19:00:51 | 125,528,470 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,153 | cpp | Mergesort2.cpp | #include<iostream>
using namespace std;
void merging(int*,int,int*,int);
void mergeSort(int* a, int l, int h)
{
if(l<h)
{
int mid = (l+h)/2;
mergeSort(a,l,mid);
mergeSort(a,mid+1,h);
merging(a+l,mid-l+1,a+mid+1,h-mid);
}
}
void merging(int* a, int m, int* b, int n)
{
... |
e26546b002e15297860412cabff79eebbdb9f90d | c8d89c553de417c55cd93dbfc1a5f09c2f2e456e | /自己做的题/最小公倍数.cpp | 6bb7a88c03f021ffd0ebe33022d7ffd2fca95b47 | [] | no_license | 3436826031/C-1223 | f458c1cfc205b12126070cedfcbdb7a02b112852 | 42ce730c72850671202a10cf7fe42d4e1a3d93ca | refs/heads/master | 2023-01-09T22:02:22.068467 | 2022-12-31T09:02:42 | 2022-12-31T09:02:42 | 229,697,712 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 798 | cpp | 最小公倍数.cpp | #include <stdio.h>
main(){
//先固定第一位数,用第一个数乘1余其他数乘1到⑨比较,类推直至全部一样
int a,b,c;
int a1[9],b1[9],c1[9];
scanf("%d%d%d",&a,&b,&c);
int min=10000;
for(int i=1;i<=9;i++)
{
a1[i]=a*i;
for(int j=1;j<=9;j++)
{
b1[j]=b*j;
if(a1[i]==b1[j])
{
for(int k=1;k<=9;k++)
... |
63da3641c6783b60f6a66751913e2e3fc7f620da | 78603d6034f0578efd106d259e9d6c9499d9506c | /WebUI1/ArduCamWebUI/Network.cpp | 07f62901347c8a2aa3295569449af0b3edad3957 | [] | no_license | maroprjs/ArduCam | ce34860b201ac2a3553d947142ae6a189ec01a2a | a0da0f45134864b34506d15bc7f9c8614d6de5cb | refs/heads/master | 2020-12-03T04:10:51.152257 | 2017-06-29T22:35:34 | 2017-06-29T22:35:34 | 95,825,912 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 636 | cpp | Network.cpp | /*
* Network.cpp
*
* Created on: 10.05.2017
* Author: maro
*/
#include "Network.h"
#include "ssid.h"
#include "Debug.h"
#include <ESP8266WebServer.h>
Network::Network() {
// TODO Auto-generated constructor stub
}
Network::~Network() {
// TODO Auto-generated destructor stub
}
void ... |
9d44fe060c3dd0d606eb5c6e398c19b72b16a23b | 6fcdbb23b52acbd3c1f32c55308801f1067a6ac6 | /ProgramForServer/GameServer/GameDesk.h | 0e31743c1106aba93bc70f31a41d477585bac1fc | [] | no_license | jyqiu1216/Rino | e507b70a2796cb356cd7ce90578981802ee5008c | eb8c110e7a551ee9bd736792a957a544c5ffdeb5 | refs/heads/master | 2020-04-13T21:41:26.474356 | 2017-05-19T07:39:42 | 2017-05-19T07:39:42 | 86,565,153 | 3 | 2 | null | null | null | null | GB18030 | C++ | false | false | 12,990 | h | GameDesk.h | #ifndef WJ_GameDesk_H
#define WJ_GameDesk_H
#include <mutex>
#include "common/WJBaseType.h"
#include "UserInfo.h"
#include "message/WJNetMessageHead.h"
#include "server/WJTimerMgr.h"
namespace WJ
{
//游戏计时器id 所有桌子系统计时器一律按照 TIMER_GAME_TIMERID_MASK_SYS 格式设计
#define GAME_TIME_GAMEFINISH_WAIT 0x00000010 //当收到一个玩家发送结束消息的... |
10334762d57d85045b932d6be3fd6d972e11f9f4 | 48298469e7d828ab1aa54a419701c23afeeadce1 | /Client/SceneEdit/src/ui/res/EventArea_wdr.cpp | add429c5963e8b793b364f472f6fef6b5cc5079e | [] | no_license | brock7/TianLong | c39fccb3fd2aa0ad42c9c4183d67a843ab2ce9c2 | 8142f9ccb118e76a5cd0a8b168bcf25e58e0be8b | refs/heads/master | 2021-01-10T14:19:19.850859 | 2016-02-20T13:58:55 | 2016-02-20T13:58:55 | 52,155,393 | 5 | 3 | null | null | null | null | GB18030 | C++ | false | false | 3,920 | cpp | EventArea_wdr.cpp | //------------------------------------------------------------------------------
// Source code generated by wxDesigner from file: EventArea.wdr
// Do not modify this file, all changes will be lost!
//------------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(NO_GC... |
a49ecd4272793971c0778f9ee65d2e87c99c014f | 02c5434cc8e06ff3c71b37b1af1c73441e44f8e8 | /src/MultiplexedButtons4051.h | e2d8c3f86a1de70a904842fd9425aa15029ad8ae | [] | no_license | Measter/ArduinoIOLib | 71fa64282be5981c5d972f41e81d44b94190dc5c | 9b7d84c16e47c93dc1ae1d7cd4722dd4fd5ae965 | refs/heads/master | 2020-06-25T11:32:48.862432 | 2017-04-28T08:00:53 | 2017-04-28T08:00:53 | 74,617,145 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,638 | h | MultiplexedButtons4051.h | #ifndef MULTIPLEXED_BTNS_H
#define MULTIPLEXED_BTNS_H
#include <Multiplexer4051.h>
#include <Button.h>
#include "turn_off_pwm.h"
class MultiplexedButtons4051
{
Button m_btnArr[8];
unsigned char m_addr0Port, m_addr1Port, m_addr2Port;
unsigned char m_addr0Bit, m_addr1Bit, m_addr2Bit;
volatile unsigned char *m_addr0... |
dec937e482150f53d1bdbbeae8707bc3f6b2e053 | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /LintCode/cpp/Divide Two Integers.cc | 6dd18592a865c4a2487a4a61fe95351f2481e0a8 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | C++ | false | false | 990 | cc | Divide Two Integers.cc | class Solution {
public:
typedef long long llint;
static const int ERROR_CODE = 2147483647;
public:
/**
* @param dividend the dividend
* @param divisor the divisor
* @return the result
*/
int divide(int dividend, int divisor) {
if (divisor == 0) {
return ERROR_COD... |
1f03f67743e4484bbea0c1feff4bec88e2c7e0fe | 9dc9206b8c01fa388cd0d10da74160fddd65153f | /performance/local-arrays/larray_reader.cpp | e1e5e040216a2389ec25ab3e8991e76e8e0691bf | [] | no_license | ornladios/ADIOS2-Testing | 1d3fa433a372fa356e47774870fefbbd63e2d1c4 | 4e9cbd3a2369cc2a8dc727e324cd4123e1c2a575 | refs/heads/master | 2023-05-26T08:16:57.246138 | 2023-05-23T14:24:19 | 2023-05-23T14:24:19 | 179,145,483 | 2 | 11 | null | 2023-05-23T14:24:08 | 2019-04-02T19:32:13 | Python | UTF-8 | C++ | false | false | 2,213 | cpp | larray_reader.cpp | #include <adios2.h>
#include <cstdio>
#include <iostream>
std::vector<std::vector<double>> data_R64;
int validateData(int step, int idx, int rank, int size, int Nx) {
double j = rank * Nx * 10 + step;
int count = 0;
for (int i = 0; i < Nx; i++) {
if (data_R64[idx][i] != j + 10 * i) {
count++;
}
... |
ecd6891338b20ae827e2d7e0a9a5312e4f83ab6c | 16f335f8182e899ba3569baf613e299f6261ead6 | /server/base/config/BuiltInConfig.hpp | 41d79c39962cd097449b401687fe7a0043dd6372 | [] | no_license | Praying/Puppy | ac4593cf9f20b5a87874c2d2a319b91951c63072 | f8b8cc9391f106f34322ae12d1ca633e2b4b5418 | refs/heads/master | 2020-03-16T03:33:23.704628 | 2018-09-09T06:31:57 | 2018-09-09T06:31:57 | 132,489,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | hpp | BuiltInConfig.hpp | /*
* Created by Praying on 2018/2/10.
* Copyright (c) Flow. All rights reserved.
*/
#pragma once
#include <string>
namespace Flow
{
namespace BuiltInConfig
{
/// Returns the CMake Command when any is specified in the config
/// returns the built-in path otherwise
std::string getC... |
aa094bb5afcd1c90079c2b91f5c6a4ca58ab42eb | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_4697_squid-3.4.14.cpp | db8851e8957de6020b67b65205ac85b93b17211b | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | squid_repos_function_4697_squid-3.4.14.cpp | wordlist *
ACLRegexData::dump()
{
wordlist *W = NULL;
RegexList *temp = data;
int flags = REG_EXTENDED | REG_NOSUB;
while (temp != NULL) {
if (temp->flags != flags) {
if ((temp->flags®_ICASE) != 0) {
wordlistAdd(&W, "-i");
} else {
word... |
f24a7836c69d29504a1eb978500a78e95f8baf2d | eeb052793fc4ce39e5e73f652ff189d856fc35c3 | /SpaceBus/Source.cpp | 2303e91c8aef2d2121071a77b7ac70f12c4c2fc6 | [] | no_license | mmbm2leej/CPP_Misc | db72a601ac748832360d42cc911ac94471556ec2 | 01d3b7c652ccb2f60a853e0498569b50170f3fed | refs/heads/master | 2021-07-11T17:02:18.721046 | 2020-10-27T09:59:37 | 2020-10-27T09:59:37 | 213,846,029 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,211 | cpp | Source.cpp | #include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <map>
using std::string; using std::ifstream; using std::map;
using std::cout; using std::cin;
#define vecOfStr std::vector<std::string>
int main() {
//get the file
string routes = "routes.txt";
ifstream i... |
016a8f1c4632db1b4c448baff3e7933f91cd3431 | 078948d5552a36d0fb62c90fb613c189398d4e4d | /model/boundary_conditions/SerratedRect2DBoundaryCondWeight.hpp | cfcb1a3eddbfe6a0641dfb8e780707bc908649c8 | [] | no_license | aschils/pdetect | 4e9838192a3986ca5833beea0537c5aa6b8ff704 | 8138c6f964bd8b95fbefe903d4457d577846d4ae | refs/heads/master | 2021-01-21T04:37:23.971467 | 2016-07-03T21:56:33 | 2016-07-03T21:56:33 | 45,048,636 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | hpp | SerratedRect2DBoundaryCondWeight.hpp | /*
* SerratedRect2DBoundaryCondWeight.hpp
*
* Created on: 30 janv. 2016
* Author: aschils
*/
#pragma once
#include "SerratedRect2DBoundaryCond.hpp"
#include "SerratedRect2DBoundaryValuesWeight.hpp"
template <unsigned dim>
class SerratedRect2DBoundaryCondWeight : public SerratedRect2DBoundaryCond<dim> {
p... |
431d7fc3f976a49e9f15ce2e546a2498d0d32cf5 | f14626611951a4f11a84cd71f5a2161cd144a53a | /Public/SCMPublic/class/CGameInfo.cpp | ced6e0f161582ae1018ddac49ee81d3b955163c8 | [] | no_license | Deadmanovi4/mmo-resourse | 045616f9be76f3b9cd4a39605accd2afa8099297 | 1c310e15147ae775a59626aa5b5587c6895014de | refs/heads/master | 2021-05-29T06:14:28.650762 | 2015-06-18T01:16:43 | 2015-06-18T01:16:43 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,207 | cpp | CGameInfo.cpp |
#include "StdAfx.h"
#include "CGameInfo.h"
//! 编码到数据集
BOOL CGameInfo::Code(DBWriteSet &setWriteDB) const
{
setWriteDB.AddToByteArray(m_dwType);
setWriteDB.AddToByteArray((LONG)m_vGameInfoData.size());
for (LONG i = 0; i < m_vGameInfoData.size(); ++i)
{
setWriteDB.AddToByteArray((void*)&m_vGam... |
9cbd5d406c22066e5cb564117514f66fb53ae97c | b21fcc8cb47ade1997858e4cc6dcb69473dbef53 | /Graph/Medium/Snake and Ladder Problem.cpp | b97f00c6f031d5a051cd4b74ddb7c15871542cc9 | [] | no_license | manojxk/GFG-DSA-CheatSheet | a72628dea17d0185e01ab38e6386e1e49726024a | 1583761aadba60c093fe14fb3f1b558986aadaad | refs/heads/main | 2023-07-10T03:17:45.024187 | 2021-08-17T10:57:07 | 2021-08-17T10:57:07 | 391,797,866 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,777 | cpp | Snake and Ladder Problem.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int ladders, snakes;
unordered_map<int, int> lad;
unordered_map<int, int> snak;
cin >> ladders;
for (int i = 0; i < ladders; i++)
{
int u, v;
cin >> u >> v;
lad[u] = v;
}
cin >> snakes;
for (int i = 0;... |
72318d2a7cd197eb7838391f316b03a3dca8db3c | 436de5566f352e448d7728842ff9bc78f01603a6 | /Game_16521562_16521454/Castlevania/HeadDracula.h | 20f8731e65e82303c892ed41c9fecc080ac77b07 | [] | no_license | ynctl240398/DoAnGame-castlevania | 00ffd41902924cd6c98070da6159f28e915260b7 | e8c0e358587acc5c2a94c9d06aee5ef0c3aba9c0 | refs/heads/master | 2021-10-10T01:53:35.291866 | 2019-01-06T04:17:47 | 2019-01-06T04:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | h | HeadDracula.h | #pragma once
#include "Monster.h"
#include "GameObject.h"
#define HEAD_SPEED_X 0.15f
#define HEAD_SPEED_Y 0.1f
#define HEAD_STATE_FLY 0
#define HEAD_STATE_IDLE 300
#define HEAD_STATE_INVISIBLE 400
#define HEAD_STATE_FLY_AWAY 500
#define HEAD_ANI_LEFT 0
#define HEAD_ANI_RIGHT 1
#define HEAD_BBOX_WIDTH 8
#de... |
083fc3a755e46717581e6b3f8a67c3e7e37ea853 | baeecdbb529e81365fb3ed7fece1267394c2012e | /DominatingSet/minimal/ok/Enumv2.cpp | 177c38eff1edf83a999408c0258df26f65297c87 | [] | no_license | ikn-lab/EnumerationAlgorithms | 7a119923211e1b27bf5c886a7bf8094bead2faf7 | 1e7ee634583a93d8e86c1c1a857952a898dbc71b | refs/heads/master | 2020-12-24T19:51:25.409974 | 2019-04-25T13:33:37 | 2019-04-25T13:33:37 | 86,220,950 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,972 | cpp | Enumv2.cpp | #include<iostream>
#include<vector>
#include<memory>
#include<algorithm>
#include"Graph.hpp"
#include"Digraph.hpp"
#include"Enum.hpp"
#define INF 1e9
using bigint = long long int;
EDS::EDS(std::vector<std::vector<edge> > H){
//Hを縮退順に並び替える.
ordering(H);
int n = H.size();
//計算に必要な構造の初期化
G.init(H);
d... |
3c0a067c450f14d6d3848a6254d488778675c58d | 0369bed326a59d5f3f5d19ed1258eab979ec402e | /Titles/mtea/src/spinnera.h | 424b7bc153fc4bb1cc10d3a9f941abceb8eb2a02 | [
"MIT"
] | permissive | magic-lantern-studio/mle-titles | 4e29892a4467c2fb9840448992fcfaab6eab9c34 | 55b79d1bdf0aa98ed057a6128fe69b25ab785b2c | refs/heads/master | 2022-09-29T06:14:42.904716 | 2022-09-17T18:42:30 | 2022-09-17T18:42:30 | 128,479,248 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,859 | h | spinnera.h | /** @defgroup mtea Magic Lantern mtea Title */
/**
* @file spinnera.h
* @ingroup mtea
*
* This file declares the SpinnerActor class for the mtea title.
*
* @author Mark S. Millard
* @date May 1, 2003
*/
// COPYRIGHT_BEGIN
//
// The MIT License (MIT)
//
// Copyright (c) 2003-2019 Wizzer Works
//
// Permission ... |
61c33cdaeae386b2b76fc91827b54ba0570db34b | 870965f13599a3fa13eb731d8d1af5ab0ca3c543 | /Notes/Cocos2d-x/C++ notes/cpp Examples/modular programming/main_complete.cpp | a2d77fbef3de1074478321f4063c6324717eafce | [] | no_license | anssshu/repos | 653471a3b01c11ed95bbb00dd870d640015dbb6e | 90a8aadfc40f3d6f5bd739e00f1a660a6f35f741 | refs/heads/master | 2020-05-15T09:45:36.534795 | 2019-04-19T01:47:53 | 2019-04-19T01:47:53 | 182,181,772 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,200 | cpp | main_complete.cpp | /*
* File: main1.cpp
* Last Modified: January 31, 2000
* Topic: Modules, Separate Compilation, Using Make Files
* ----------------------------------------------------------------
*/
#include <iostream>
using namespace std;
class Point
{
public:
Point();
Point(int xval, int yval);
void move... |
8f5f2fd9d8825c0f86fe5632ed46b2a25755a31a | 27116d318fc2b27bfd47a3321429f79531e00439 | /Kursova_NV/Menu.cpp | 296914e21b9d91c59ada8f650e013c62ddbbe934 | [] | no_license | MrRobot001/Kusova | d9a6badba2ca08d10e9e2bc9cd2f820b7b8b21b9 | d70a53960882262bb3e5426037eb8760f9d678b9 | refs/heads/master | 2020-05-07T11:05:28.738219 | 2019-08-17T12:55:57 | 2019-08-17T12:55:57 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,274 | cpp | Menu.cpp | /* ************************************************************************** */
/* */
/* Menu.cpp ::::::::::: ::: */
/* :+: :+:+: ... |
772e80481575ea629842e4cb01c83b70a4649069 | 4f69beed54b3fc1274ac3db16585b2ab3e91b31e | /flame/flame.hpp | 9c33ea8514e43321cde2cd4ff17e34e6fcda02b0 | [
"MIT"
] | permissive | namgo/perlinfieldbot | bb43363dcee5ede2d3b9f849a859370ced3cdf35 | cf22a1c678d5878b0f2a03ed07595e26719c80d7 | refs/heads/main | 2023-07-11T15:16:40.126980 | 2020-12-01T21:40:07 | 2020-12-01T21:40:07 | 317,352,775 | 0 | 0 | MIT | 2020-11-30T21:40:30 | 2020-11-30T21:40:29 | null | UTF-8 | C++ | false | false | 11,771 | hpp | flame.hpp | #include "../math/math.hpp"
#include "../math/rnd.hpp"
#include "variations.hpp"
#include "extrapolations.hpp"
#include "truncations.hpp"
#include <string>
#include <vector>
#include <map>
#pragma once
namespace aural {
namespace flame {
typedef math::vec(*Variation)(math::vec, double);
typedef math::vec(*Extrapolat... |
1d17e65f2ece90ccbfaad49e0e2f3f970c01c93d | 49d534ab5b974dd0b5baab49fb5b35184a4fda1c | /robotics/autonomous-robot-maze-solver/vision/include/pose_stamped.h | d1b99d4ec900aa9bfa9c991c0ef79a63807dfe28 | [] | no_license | zac-hamid/uni-projects | feaf9475d874c547ea0b04cc60bab495bc7a4d3b | 7a8359e7cbf44f5985263305c79a245ecb3f70d1 | refs/heads/master | 2021-06-14T00:39:30.647956 | 2021-03-03T04:54:44 | 2021-03-03T04:54:44 | 142,878,205 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | h | pose_stamped.h | #ifndef POSE_STAMPED_H_
#define POSE_STAMPED_H_
#include <string>
#include <iostream>
namespace localisation {
class PoseStamped {
public:
std::string frame_id;
int x = 0;
int y = 0;
int z = 0;
double yaw = 0; // about z axis
PoseStamped() = default;
friend std::ostream& operator<<(std... |
383e21388f6694174824a0900cabaeb531c76b51 | b87181f0ec75c8790819cfd1d7e2880955349d2d | /src/window/astar_window.cpp | a15c083f87d13616e86d0e87a576dcd157e14185 | [] | no_license | HYWKobeBryand/NavMesh | b2fb7756d8a7e8584eb9807c5181e76d0f48ebf2 | f0a7849b00ddc02db9084c5ff484a8559b28c1e9 | refs/heads/master | 2021-09-10T08:47:41.509152 | 2018-03-23T07:05:31 | 2018-03-23T07:05:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,175 | cpp | astar_window.cpp | #include "astar_window.h"
AStarWindow::AStarWindow()
{
}
AStarWindow::~AStarWindow()
{
}
void AStarWindow::OnMouse(u_int msg, int x, int y, u_int key, int wheel)
{
if (WM_LBUTTONUP == msg)
{
_startpt.x = (float)x;
_startpt.y = (float)y;
Log("start: {0}", _astar.GetMeshID({ (float)x, (float)y }));
}
else if... |
b32875ae586c7ec99745d98224aee285e1c0ff13 | e33efa98f8b1d61a2124fbafb6e7a8b78afd3069 | /NomalShooting/src/Scene_Game.h | 1dc44b9bc19eb8d8d7c9c132bbab5a1ae4502c9b | [] | no_license | feveleK5563/Shooting | dda5961f8522a3ba0a89f1b6ce00494fbd27b7a3 | 462f5635a5496c10af00a78792f9afa01efdb54a | refs/heads/master | 2020-03-20T03:50:51.831548 | 2018-06-19T07:30:33 | 2018-06-19T07:30:33 | 137,161,608 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 450 | h | Scene_Game.h | #pragma once
#include <memory>
#include "SceneAbstract.h"
#include "SceneParameter.h"
#include "ImageLoader.h"
#include "CharacterFactory.h"
#include "CharacterManager.h"
class Scene_Game : public SceneAbstract
{
private:
CharacterManager charaManager;
CharacterFactory charaFactory;
public:
Scene_Game(const SceneP... |
de2b34d2242b5ac5bb6eefdfa22ef1048d945e0c | 61238af0f36478f95d0f573656fd16e39b13814c | /hw23/class23_chrono/c23_MidiPacketTimer/C23_timer_test.cpp | 75e6f6115306010cd44edfb5dc33cff19053508c | [] | no_license | stritzelm/cs312 | 05b7307d1aa541dd83af97feaf9051b8545cdbae | fb2171ae85e71342c239defc6cf39cdf2d27cdfd | refs/heads/master | 2022-04-08T16:51:39.865387 | 2020-03-21T02:35:33 | 2020-03-21T02:35:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,817 | cpp | C23_timer_test.cpp | // C23_timer_test.cpp
#include <iostream>
#include <vector>
#ifndef C23_CTIMER_H_
#include "C23_CTimer.h"
#endif
#ifndef HW131_MIDIPACKET_H_
#include "hw131_MidiPacket.h"
#endif
using namespace CS312; // CTimer
using MidiPacket = MidiPacket2;
void do_reset_print()
{
// add 1,000,000 MidiPackets to a vector
st... |
aea53ace7924a0f1d1f12b508d715ff4471885c6 | d4b7c746633a6dfa34a0ffa411bd7551bf3fa938 | /Question15.cpp | aff046dc964fdd0d00f7ada1fab114e19a384111 | [] | no_license | priyanshudhoni/Albanerowork | 4b705e56054691d48d055f4d08ece7da18994b68 | 4c2f0afd60ef75577a9b68f126aed1fc48fc25e1 | refs/heads/main | 2023-05-29T22:30:05.211564 | 2021-06-12T09:31:46 | 2021-06-12T09:31:46 | 374,966,619 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 208 | cpp | Question15.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
int j;
for(j=0;j<n;j++)
{
cin>>a[j];
if(a[j]%2==0)
cout<<a[j]<<" ";
}
}
|
45a7fb7b82c8919c0094ac7ba3a4b98bdf9573a0 | 00e0186f55eef9c28993b1688019ef4da61a7980 | /summer2018/easy/14-longest-common-prefix.cpp | da85d2f3614dc3eb70fe062fc040d4d3c165393e | [] | no_license | idontknoooo/leetcode | 2c1c8d3ffcbcb328f2b7087cf6e7e0a6441fdfc4 | dd24544a2e8cc2680a26e95dc85f0af4443f5a00 | refs/heads/master | 2021-06-05T09:49:51.131203 | 2018-10-22T03:32:14 | 2018-10-22T03:32:14 | 104,502,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | cpp | 14-longest-common-prefix.cpp | class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
// Find shortest string
if(strs.size() == 0) return "";
string s = "";
int len = INT_MAX;
for(int i = 0; i < strs.size(); ++i){
if(strs[i].length()<len){
len = strs[... |
055019815b7628fcc2937504a1a788f174ded66d | 081575ad732560ee1031f113b05561efba461773 | /src/longestPalindrome/longestPalindromeTests.cpp | 9d6c7707889887f42184bb93523021a6907d602c | [
"MIT"
] | permissive | JohnWebb4/toy_problems | 4eef6ea454564ca22788fcbe168837fe1ae49d2e | 6eb34750d4f45ec7c4016c930aeb8c58adb4c5cf | refs/heads/master | 2023-03-17T20:21:08.759593 | 2022-11-14T00:51:03 | 2022-11-14T00:51:03 | 161,198,621 | 0 | 0 | MIT | 2023-01-07T04:00:56 | 2018-12-10T15:50:40 | TypeScript | UTF-8 | C++ | false | false | 1,549 | cpp | longestPalindromeTests.cpp | #include <gtest/gtest.h>
#include "longestPalindrome.h"
TEST(LongestPalindrome, BAB)
{
ASSERT_EQ("aba", getLongestPalindrome("babad"));
}
TEST(LongestPalindrome, BB)
{
ASSERT_EQ("bb", getLongestPalindrome("cbbd"));
}
TEST(LongestPalindrome, A)
{
ASSERT_EQ("a", getLongestPalindrome("a"));
}
TEST(LongestPalind... |
b7d6b0bb81d2d8315f6ad545d841f6f8ba026b97 | 6830726297ff03e49b2602c41d951832bd73930c | /RayCasting/src/Structure/BVH_SAH.cpp | e0f50c90c11fef2d0a354a9af9f5ffa091c6c824 | [] | no_license | wwwwwyyyyyxxxxx/SIA | 30532ff81e81db9309a8d568d96c36ebb390e623 | a1a3cde8167fc7b46fda2c0e5e24ec2148ea7e81 | refs/heads/master | 2020-05-19T01:39:22.144282 | 2019-03-13T13:23:51 | 2019-03-13T13:23:51 | null | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,781 | cpp | BVH_SAH.cpp | #include "BVH_SAH.h"
BVH_SAH::BVH_SAH()
{
}
bool BVH_SAH::intersect(Geometry::Ray const & ray, Geometry::RayTriangleIntersection & intersection)
{
return intersect(ray, intersection, m_sommet);
}
bool BVH_SAH::intersect(Geometry::Ray const & ray, Geometry::RayTriangleIntersection & intersection, std:... |
758af6bafe963f8c1751285ee70a587f1917d5e6 | 202dbf1e309b2d015080a454c0029963f308ae3e | /include/renoster/normal.h | 4d32cf84cb4ceb910f6b5e704f4685758083bd0b | [] | no_license | tomvbussel/renoster | 6ef304bac6aceb0e15f23954108c2bba5e718bcb | 1cd5df53d0b641c165be6e6477d75e39e803fcb5 | refs/heads/master | 2020-03-30T10:44:20.681698 | 2018-10-04T09:36:40 | 2018-10-04T09:36:40 | 151,133,846 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,132 | h | normal.h | #ifndef RENOSTER_MATH_NORMAL_H_
#define RENOSTER_MATH_NORMAL_H_
#include "renoster/vector.h"
namespace renoster {
template <size_t D, typename T>
class Normal : public Vector<D, T> {
public:
Normal() = default;
Normal(const Normal &) = default;
Normal & operator=(const Normal &) = default;
Normal(N... |
bc8eb52241e485b435c753fee7b00e0abcba22b8 | e091776adda9bd1c6240a6f7fca558aa4679c46d | /MyBatch/MyBatch/SpriteBatch.cpp | ba236b2cd697214e55e939ae16cf2b12a62243b4 | [] | no_license | wld0595/Batch | 7ea3c359160e4d002e87e88b883f60266f8db84c | 1185bb73324e6e9bf3de72f2c862adb9c4e77e26 | refs/heads/master | 2021-01-01T03:54:52.458812 | 2016-04-25T08:08:30 | 2016-04-25T08:08:30 | 57,023,075 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,656 | cpp | SpriteBatch.cpp | #include "SpriteBatch.h"
SpriteBatch::SpriteBatch()
:miSize(10)/*Set ten sprite batch */
,mbDrawing(GL_FALSE)
,mpVertices(NULL)
,mpIndices(NULL)
,miRenderCalls(0)
,miTotalRenderCalls(0)
,miCount(0)
,mfInvTexWidth(0.0f)
,mfInvTexHeight(0.0f)
,mDefaultShader(NULL)
,mCustomShader(NULL)
,miMatrix... |
d6e1d70fc90b9c57e08c9345aba473995be1525c | 00332281a2e92b01327e437ffe20370ec8e13ea4 | /dev/floyd_speak/parts/immer-master/benchmark/vector/misc/drop.cpp | ecff737257b073b5bd9e146de29256f349d11e87 | [
"MIT",
"LGPL-3.0-only",
"LGPL-2.1-or-later",
"LGPL-3.0-or-later"
] | permissive | PavelVozenilek/floyd | 78dd79b0376f6c819a0d9cf4ba47ffa79ade47c9 | debc34005bb85000f78d08aa979bcf6a2dad4fb0 | refs/heads/master | 2020-06-13T17:20:14.470042 | 2019-06-19T11:33:48 | 2019-06-19T11:33:48 | 194,729,571 | 0 | 0 | MIT | 2019-07-01T19:10:33 | 2019-07-01T19:10:33 | null | UTF-8 | C++ | false | false | 4,200 | cpp | drop.cpp | //
// immer - immutable data structures for C++
// Copyright (C) 2016, 2017 Juan Pedro Bolivar Puente
//
// This file is part of immer.
//
// immer 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, eith... |
cd41fc9489372c3de99002778aa598c6f925e569 | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-iot/include/aws/iot/model/ThingDocument.h | 54007d3c989bdcf289d73f25b20e0754e654681a | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 16,587 | h | ThingDocument.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/iot/IoT_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <... |
277a34294b596c6748efe5a94718814a10e6ad2e | dbcae57ecc5f8d1f7ad2552465834da2784edd3f | /ZJU/浙江第八届省赛/zju_3488.cpp | 2017916bbec162d13df93d443d976a4e4fe35f04 | [] | no_license | AmazingCaddy/acm-codelab | 13ccb2daa249f8df695fac5b7890e3f17bb40bf5 | e22d732d468b748ff12885aed623ea3538058c68 | refs/heads/master | 2021-01-23T02:53:50.313479 | 2014-09-29T14:11:12 | 2014-09-29T14:11:12 | 14,780,683 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | cpp | zju_3488.cpp | /*
author: AmazingCaddy
time: 2011/5/6 13:35
*/
#include <cstdio>
#include <complex>
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <string>
#include <algorithm>
#include <cmath>
#include <ctime>
#include <vector>
#include <map>
using namespace std;
const int maxn = 10004;
cons... |
d03bf5a487c41c9e7a36ced159fbdfa13d15e770 | 1550679ab16d8e8ef8727bcd97083615c4f90fc3 | /RPG_Game/Character_builder/CharacterBuilder/main.cpp | 4c406c0d46c34214ea9335b76259366efbeadd98 | [] | no_license | shbli/2D-Animator | ead2e3fd902b749a505dcfe8484f7f87fdfcf2cd | 6c90cc53163981183163cd445d7b30337275157a | refs/heads/master | 2021-08-23T04:10:12.824644 | 2017-12-03T06:07:32 | 2017-12-03T06:07:32 | 112,904,066 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,440 | cpp | main.cpp | #include "svg_scene.h"
#include "game_engine.h"
#include "png_scene.h"
#include "splash_screen.h"
#include "configrationwindow.h"
int main(int argc, char* argv[])
{
QApplication app(argc, argv);
QCoreApplication::setOrganizationName("COMPASSGAMES");
QCoreApplication::setOrganizationDomain("compassgames.ne... |
875a5383ba2f5c735b1c4a4eedcba41c2311a515 | fe855527ca29e26328165627eeeeed626b172f54 | /codeforces/723A/723A.cc | e509999434ef0867626c2413e28304bfb9aaf34b | [] | no_license | codeonwort/competitive-programming | fdac304a64aa7ed1e4067b3f44a675407936683b | 875ac98c6cf488d3850689d40d2caae4851a7617 | refs/heads/master | 2022-11-22T22:47:06.610140 | 2022-11-11T17:36:27 | 2022-11-11T17:36:27 | 65,174,701 | 0 | 0 | null | 2022-11-11T12:36:08 | 2016-08-08T05:19:19 | C++ | UTF-8 | C++ | false | false | 502 | cc | 723A.cc | // ID: 723A (The New Year: Meeting Friends)
// URL: http://codeforces.com/problemset/problem/723/A
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int D(int x, int y) {
return abs(x - y);
}
int main() {
int a, b, c;
cin >> a >> b >> c;
vector<int> centers = {1, a, b, c, 100};
... |
c57f7ef1405e1173f3511f470c77ec370dec735d | 0ffce7648a64c923f6e1c7b262db24465cd15e0e | /mirror-server/source/mirror_server.cpp | 3e1cc763133c86e1057b46d5e13575f33c191675 | [] | no_license | kostaskol/Mirroring-System | 883f286cfe68d2d62fb3e9d1e4018795fb5ef726 | 91ce69d7052da3a3b3d2f5e5666683ab302d8762 | refs/heads/master | 2021-03-30T18:12:59.684693 | 2018-02-05T18:55:14 | 2018-02-05T18:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,650 | cpp | mirror_server.cpp | #include "mirror_server.h"
#include "constants.h"
#include "worker.h"
#include "help_func.h"
#include <iostream>
#include <sys/socket.h>
#include <cstring>
#include <arpa/inet.h>
#include <unistd.h>
#include <cmath>
using namespace std;
int g_clientfd;
mirror_server::mirror_server(cmd_parser *args) {
_port = arg... |
1b5fc4d29d5f3242041cadefa6f681cf6f983502 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/net/trust_token_usecounter_browsertest.cc | a0c4a0d26e837f7f2c4d5423b94fb379296d0ea0 | [
"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,171 | cc | trust_token_usecounter_browsertest.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 "base/test/metrics/histogram_tester.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_... |
007accf3f552d02c3bcdc439117cd34e8e96b977 | 66f89d7155fc9ca9a026655db1a040bd9dc94154 | /packages/test/test.cpp | 32f34dabed586c2a3efa1663b26abb91b50643fd | [
"MIT",
"LGPL-2.0-or-later"
] | permissive | TrevorSundberg/ne | 88deef7e4d8f09a91acc0ddcc195307e20ca7ddb | 43430546ef01d468061582aad48c215c526c6a03 | refs/heads/master | 2020-03-19T04:26:29.584156 | 2019-01-03T16:54:21 | 2019-01-03T16:54:21 | 135,828,420 | 11 | 1 | MIT | 2019-01-03T16:54:22 | 2018-06-02T15:16:40 | C++ | UTF-8 | C++ | false | false | 22,585 | cpp | test.cpp | /// @file
/// MIT License (see LICENSE.md) Copyright (c) 2018 Trevor Sundberg
#include "../test/test.h"
#define TEST_RANDOM_A 1103515245ULL
#define TEST_RANDOM_C 12345ULL
#define TEST_RANDOM_M 18446744071562067968ULL
#define TEST_RANDOM_SEED 123456789ULL
ne_core_bool test_validate(ne_core_bool value,
... |
fd40b50f6b4d29be3b515f51450ba85be112a597 | 7e5be101928eb7ea43bc1a335d3475536f8a5bb2 | /ACM - Topics Training/exgcd & excrt/ZOJ 2657.cpp | db76259b5ee76c036aa93483c6d19219529973f1 | [] | no_license | TaoSama/ICPC-Code-Library | f94d4df0786a8a1c175da02de0a3033f9bd103ec | ec80ec66a94a5ea1d560c54fe08be0ecfcfc025e | refs/heads/master | 2020-04-04T06:19:21.023777 | 2018-11-05T18:22:32 | 2018-11-05T18:22:32 | 54,618,194 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,356 | cpp | ZOJ 2657.cpp | //
// Created by TaoSama on 2016-04-18
// Copyright (c) 2016 TaoSama. All rights reserved.
//
#pragma comment(linker, "/STACK:102400000,102400000")
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <map>
#inc... |
37374b638e1fea1a04ac0bad19eabade5857b9be | 9883d8fe3e943141550534fbf7c251446ee09ab7 | /distribuidos/Duran/ej1/src/PuertaSalida.cpp | 4dd6bbe899fc194c87813a4a6f922fd849680ea1 | [] | no_license | franciscoSoler/nebla | 16f01318de1ab98e5d7d4b6e9c300d7b40c7e6c6 | 4e95b1a1890b1e73a17055851a1d18c211b9989c | refs/heads/master | 2021-01-18T16:30:52.910538 | 2014-01-15T04:11:26 | 2014-01-15T04:11:26 | 42,052,591 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,225 | cpp | PuertaSalida.cpp | /*
* PuertaSalida.cpp
*
* Copyright 2013 Adrian Duran <nebla@nebla>
*
* 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 v... |
689b304141fbe3501c4bb37ead78f62ed58ff96b | 84dfe1add794c583f053ad05d1a6d883b3de3c76 | /src/GDE/source/Log/Log.cpp | 48730b571df5cf36e371f4dcab2451ae2ba56a98 | [
"MIT"
] | permissive | AntonMG/Genbeta-Dev-Engine | 99554b020b81881ab28954c78150ef0c154b3d97 | fd355d84bda671b332c289db546cd90638d8b599 | refs/heads/master | 2021-01-12T21:45:09.878184 | 2013-12-03T11:53:00 | 2013-12-03T11:53:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,075 | cpp | Log.cpp | //#include <GDE/Config.hpp>
#include "GDE/Log/Log.hpp"
#include <iostream>
#include <fstream>
static std::string headerStringList[] = {"DEBUG", "INFO", "WARNING", "ERROR"};
// Controlador por defecto. Este método es llamado por el destructor de GDE::Log cada vez que
// un mensaje debe ser escrito al flujo. Si no se ... |
8a696028b7d196eabbab63af253a5968119c4a15 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_1411_last_repos.cpp | 757f310e91809e528ffc3713429d461cc3996d1a | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 238 | cpp | squid_repos_function_1411_last_repos.cpp | static void
helperStatefulKickQueue(statefulhelper * hlp)
{
Helper::Xaction *r;
helper_stateful_server *srv;
while ((srv = StatefulGetFirstAvailable(hlp)) && (r = hlp->nextRequest()))
helperStatefulDispatch(srv, r);
} |
f0358dd7dd0c692bce49b41f9914cc571b99f2ba | 98a26918cf681415b8b2696332da46c0f33e6ef1 | /inord_list.cpp | 933279c6f5b2bf7555f231b4a3a77743c666730a | [] | no_license | Kerulus67/Text-Document-Search-Engine | 23ee7178436872ed8b409e6d9728107bc56a427f | 11231197c6d4d70857824f1e1adc489b1915d18d | refs/heads/master | 2022-10-11T22:29:55.343563 | 2020-06-09T16:26:28 | 2020-06-09T16:26:28 | 271,051,566 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,176 | cpp | inord_list.cpp | /*
* InorderLinkedList.cpp
*
* Created on: Mar 15, 2017
* Author: haytham
*/
#include "inord_list.h"
#include <fstream>
#include <string>
#include <sstream>
#include <stdio.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
using namespace std;
InorderLinkedList::InorderLinke... |
dee2c360e0e7245838aeff448c9fcb20ad12045b | db59982b6bc2a813ab5c6ced275047fcb3bf2e7a | /wordRectMulti/wordRectMulti/CharFreqMap.hpp | 79db76f31845b4f247477000f8978dae8ab60a22 | [] | no_license | sprax/cpp | 403deb8ac8a2d76534b12a81af49b76aabe4012d | a02eb757ae97827195ea4ffc7645fb9694fbc144 | refs/heads/main | 2022-01-12T13:32:34.517190 | 2022-01-02T19:21:30 | 2022-01-02T19:21:30 | 60,274,650 | 0 | 0 | null | 2022-01-02T19:21:31 | 2016-06-02T15:17:33 | C | UTF-8 | C++ | false | false | 5,144 | hpp | CharFreqMap.hpp | // CharFreqMap.hpp
//
// Sprax Lines, September 2012
#ifndef CharFreqMap_hpp
#define CharFreqMap_hpp
#include "CharMap.hpp"
#include <vector>
struct CharFreq {
CharFreq(uchr c, int n) : mFreq(n), mChar(c) {}
uint mFreq;
uchr mChar; // Not const, so sort can be in-place
};
struct CharFreqGre... |
08c5c94c829556f0614ff25268795d08c50ef4cd | 29ff4bf301650698e214449cc3db022fe48b07f6 | /ltl2fsm/diagnostics/Monitor_Wrapper.hpp | 8ac48ddd355280b33768334e3ca10f8495336df4 | [
"MIT"
] | permissive | arafato/ltl2fsm | 9b7aca994959544fa1f985065ad3e4d35aabc512 | 58d96c40fe0890c2bcc90593469668e6369c0f1b | refs/heads/master | 2021-01-01T17:42:38.241633 | 2014-09-29T13:09:26 | 2014-09-29T13:09:26 | 24,595,228 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,590 | hpp | Monitor_Wrapper.hpp | /**
* @file ltl2fsm/modules/Ltl_To_Nba_Module.hpp
*
* $Id$
*
* @author Christian Schallhart
*
* @brief [LEVEL: pre-alpha] @ref ::ltl2fsm::Monitor_Wrapper
*
* @test
*
* @todo document
*/
#ifndef LTL2FSM__DIAGNOSTICS__MONITOR_WRAPPER__HPP
#define LTL2FSM__DIAGNOSTICS__MONITOR_WRAPPER__HPP
#include <ltl2fsm... |
ed930b65b8e066c7229ff763bafefb9d59faaabb | 18eba858b1360fa1e7965b2f7865421d3a5b40d2 | /100-199/111. 二叉树的最小深度 (BFSorDFS).cpp | bc1987fbe4cd0ff5b17b794038e9b3a358043589 | [] | no_license | guikunchen/leetcode-algorithms | 2e6706669e7df360a67787072da318a8a112c4f8 | 70f4ffe99779e12bc2c69861f9bc53b6cb408285 | refs/heads/master | 2022-12-04T15:18:22.648046 | 2020-08-24T12:55:30 | 2020-08-24T12:55:30 | 289,484,362 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,284 | cpp | 111. 二叉树的最小深度 (BFSorDFS).cpp | #include<iostream>
#include<vector>
#include<set>
using namespace std;
// https://leetcode-cn.com/problems/minimum-depth-of-binary-tree/
// 递归
class Solution {
public:
int minDepth(TreeNode* root) {
if(root == nullptr) return 0;
if(root->left == nullptr && root->right == nullptr) ret... |
576c37d7f967a8a15fb4a737d16fbaa250e8389d | 560f98f32396fa9945692fcead407eb49c36f08e | /tabella.h | 5ee1cebf0cbcdf0a30049c56c761ce82e2feab01 | [] | no_license | DanielDeGaspari/Qultura | 7277b42afe9d5b38ed8f1637d7893673b8962724 | 97be8b062710e827ba951ed60f14d3b0bbf17490 | refs/heads/master | 2021-01-11T02:39:20.361620 | 2016-10-14T14:17:09 | 2016-10-14T14:17:09 | 70,916,242 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | h | tabella.h | #ifndef TABELLA_H
#define TABELLA_H
#include <QTableWidget>
#include "ordine.h"
#include "riga.h"
class Tabella : public QTableWidget {
Q_OBJECT
public:
Tabella(Ordine& o , QWidget* parent=0 );
void load();
private:
Ordine& ord;
public slots:
void aggiungi(Prodotto* p=new LibroCartaceo());
... |
10c65a96d60caabd833c73ddb3420f7826c45c91 | b6a47853b2b05de4aff4ca4770c6b0b5f29a8c16 | /CommandReadBuffer.cpp | c4c864f85b9d5384438933359b45f6a641475508 | [] | no_license | bomeans/bomeans_sdk_linux_demo | df83d02d2540845db89373f86970e2ab74351bf0 | 67b1986e0a7cfe903191797254fe5644f15dd553 | refs/heads/master | 2021-06-27T07:23:30.671616 | 2017-09-14T09:51:51 | 2017-09-14T09:51:51 | 103,509,192 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,218 | cpp | CommandReadBuffer.cpp | #include <stdio.h>
#include <string.h>
#include "CommandReadBuffer.h"
#include "IRUartCommand.h"
namespace BOMEANS
{
void CommandReadBuffer::reset()
{
memset(mBuff, 0, MAX_READ_BUFFER_SIZE);
mReadPointer = 0;
mWritePointer = 0;
}
// get free size in buffer
int CommandReadBuffer::getAvailableSize()
{
ret... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.