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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
563479f33ac48fc853241bad3f5db065d4e5ec05 | 617c155a5b7275462293b8caa99a0bf146da5887 | /kolosy/KOLOS011-szachujace_skoczki.cpp | c0c9ba4527dc7a3a495f8826518c9247dd421011 | [] | no_license | delekta/agh-wdi | d41f5da284d84bab0ad2ddd2e5273d338064ad84 | c6cf4513d909bd8322a53fab8f23b0110d49cebe | refs/heads/master | 2023-01-07T15:06:13.688590 | 2020-11-09T18:19:45 | 2020-11-09T18:19:45 | 311,423,027 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,411 | cpp | KOLOS011-szachujace_skoczki.cpp | //
// Created by Kamil Delekta on 01.12.2019.
//
//Dana jest taablica t[N] zawierajaca liczby naturalne. Prosze napisac funkcje, ktora sprawdza,
//czy jest mozliwe ustawienie dwoch wzajemnie szachujacych sie skoczkow tak, aby suma wartosci pol,
//na ktorych staja skoczki, byla liczba pierwsza. Do funkcji nalezy pr... |
3cd8e593a2470de739adac9f50812e38513a36ea | b1cee9f96a394feded84f9a9fd24e34641b956fa | /compiler/code_gen.h | af9324826e7f11f54b1b2ed0e5a7b23de4989e8b | [
"BSL-1.0"
] | permissive | Practical/practicomp | ce3a2188778302f551609ae4e2aa5375d2d8ff73 | dc223ceb2ffda0aa341f1915a744220edfa1a0b2 | refs/heads/master | 2022-08-23T08:22:15.242109 | 2022-08-03T20:55:03 | 2022-08-03T20:55:03 | 154,870,710 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,868 | h | code_gen.h | /* This file is part of the Practical programming langauge. https://github.com/Practical/practical-sa
*
* To the extent header files enjoy copyright protection, this file is file is copyright (C) 2018-2019 by its authors
* You can see the file's authors in the AUTHORS file in the project's home repository.
*
* Thi... |
665c574738fb0117742002c31a550836dd29415d | 9f6e1ca0c865372b901073e8b619e1e3231daa3b | /src/ServerClientProxy.cpp | e66d051b97de1989adfa65a49950bfa08258a9d9 | [
"MIT"
] | permissive | alarrosa14/senderoServer | efd3be719278fdcdbdbf1338322bc96b63c9ad54 | fb81c43b3f0ef3b8ef8fbbce6fdd2d413b4c9542 | refs/heads/linux | 2021-01-17T19:22:07.958046 | 2016-11-26T00:09:39 | 2016-11-26T00:09:39 | 37,101,330 | 1 | 0 | null | 2016-11-26T00:09:39 | 2015-06-09T00:49:33 | C++ | UTF-8 | C++ | false | false | 21,455 | cpp | ServerClientProxy.cpp | #include "ServerClientProxy.h"
ServerClientProxy::ServerClientProxy(void)
{
}
ServerClientProxy::ServerClientProxy(int iTCPPort, int iUDPPort, int iId, string iName, bool iEnabled, bool iUsesServer, float iblendFactor, int iProtocolType, int pixelQty)
{
this->TCPPort=iTCPPort;
this->UDPPort=iUDPPort;
thi... |
b3cb6746124e76ff90670fe2cbf6f66c0c86ae8a | 4c3d7536a710610cb850da366f386cdbcfaf9717 | /DynamicProgramming/Knapsack Problem/main.cpp | a6eaa8c8b8f2a8c9fc495bf455118af2a45cd6df | [] | no_license | anishanainani/workspace-Cplusplus | 2b8270807c9858592965520f855178f3ead15d37 | c02f500b76c685171524b39f9e7b51339cb0a7f5 | refs/heads/master | 2016-08-12T04:54:59.878211 | 2016-01-03T00:50:09 | 2016-01-03T00:50:09 | 48,928,876 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,992 | cpp | main.cpp | /*
* main.cpp
*
* Created on: Feb 7, 2015
* Author: Komani
*/
#include<iostream>
#include<vector>
using namespace std;
void Knapsack(vector<int>& weights, vector<int>& values, int knapsackWeight){
vector< vector<int> > matrix, keep; //matrices with items as rows and weights as columns
vector<int> wei... |
c6edb60ca0d44df8ae0605525cb20137b15bb1f3 | 04276306714223096567cf2587dc028f8afc1ce2 | /CompilerCreationTool/Grammar/IGrammarProduction.h | 6b8dcda60c8ff21025bb3dc261fd6e5914f36829 | [
"MIT"
] | permissive | vstdio/CompilerCreationTool | 5523eb2a74b3d41f31bf7a69599fb9b2112ae9c9 | 03500f95e9c90f23685457124842d3feda2e821f | refs/heads/master | 2022-02-09T15:12:24.921436 | 2019-06-09T18:05:05 | 2019-06-09T18:05:05 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 541 | h | IGrammarProduction.h | #pragma once
#include "IGrammarSymbol.h"
namespace grammarlib
{
class IGrammarProduction
{
public:
virtual ~IGrammarProduction() = default;
virtual const std::string& GetLeftPart() const = 0;
virtual bool EndsWith(GrammarSymbolType type) const = 0;
virtual bool IsLastSymbol(size_t index) const = 0;
virtual size... |
86249cec28297147c0a2181a3402ccda85868cf3 | 31ac07ecd9225639bee0d08d00f037bd511e9552 | /externals/OCCTLib/inc/Visual3d_SetOfLight.hxx | 54eb708f85bb82144755411135b3aa5bb531e0a7 | [] | no_license | litao1009/SimpleRoom | 4520e0034e4f90b81b922657b27f201842e68e8e | 287de738c10b86ff8f61b15e3b8afdfedbcb2211 | refs/heads/master | 2021-01-20T19:56:39.507899 | 2016-07-29T08:01:57 | 2016-07-29T08:01:57 | 64,462,604 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,660 | hxx | Visual3d_SetOfLight.hxx | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Visual3d_SetOfLight_HeaderFile
#define _Vi... |
24a02dd7d88a31b7e45c9082829173b716136c2f | 5acf036ed7883db02902f849f7039fd1073aa7f6 | /10130 - SuperSale/10130 - SuperSale.cpp | 054000ec685fe6847a2aaa16ca7e1382873f3dfa | [] | no_license | Nashar-Ahmed/UVA-Problems | e0cbb1b54e49ddcdc1f9ac183ac6b8c5e15c7eb2 | c487ec66bac2caabaf204b0fab2cbea0ba8715db | refs/heads/master | 2020-03-28T20:27:50.559548 | 2018-09-17T06:21:16 | 2018-09-17T06:21:16 | 149,073,181 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | cpp | 10130 - SuperSale.cpp | #include<bits/stdc++.h>
using namespace std;
#define mem(x,y) memset(x,y,sizeof(x));
int cost[1001];
int weight[1001];
int dp[1004][1004];
int cap;
int n;
int func(int i,int w)
{
if(i == n+1)
return 0;
if(dp[i][w]!= -1)
return dp[i][w];
int profit1=0,profit2=0;
if(w + weight[i] <= cap... |
623f56ce87047f9454b56e681f477dc03d7c128a | c10eaf118abc5624106fb5a94cc3ed0edea6ec32 | /src/main.cpp | c76c989ef85364125af321d163fad8a8466da106 | [] | no_license | raydelto/grafos_ITLA | a9ce8630d4953c1e9dcde35bc4150e8bfd6e8d00 | 8428b451cb43fff22c418ef38e6a92f3e988b25c | refs/heads/master | 2020-03-27T19:44:54.196713 | 2016-07-23T14:25:24 | 2016-07-23T14:25:24 | 64,018,857 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | main.cpp | //============================================================================
// Name : Grafos.cpp
// Author : Raydelto Hernandez
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C++, Ansi-style
//=======================================================================... |
20a969942dc512d88b84b35532e29c7297038eb2 | 5a5b70394be34760418b52724260608349720f2a | /EVA_Bead_2/Implementation/ImpTypes.h | e79df7e574c50b0ba1587b1453d4d930b1077f39 | [] | no_license | BittnerBarnabas/MaciLaci | e3a47c7b726c796ba6570222bce9f38a57ff6bf1 | ba8764fd97f4a4223560ad1b24ecceb0a5402b37 | refs/heads/master | 2016-09-01T06:05:08.116303 | 2016-04-11T15:29:51 | 2016-04-11T15:29:51 | 55,435,024 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,014 | h | ImpTypes.h | #pragma once
#include <QVector>
#include <QPair>
#include <istream>
namespace Implementation
{
/// Type of possible objects on the map
enum class player_t
{
NoPlayer,MaciLaci, Tree, Hunter, InHunterRange, Food
};
/// Type of possible moving directions
enum class direction_t
{
UP, DOWN, LEFT, RIGHT... |
525dd70609b72d041941acb4410e5a63e6c579b3 | 26fab765811902f2d75da694eed687eca2121919 | /code/tutorials/viewer/viewer.cpp | 7d8755500c31402b6dd3eadfa85de1e995da8501 | [
"Apache-2.0"
] | permissive | embree/embree-benchmark | 236b00b0f03c466669e3b2591f2a47b38af08671 | b4ea57d9ea24d6036795257c67a4b2b13757e9f3 | refs/heads/master | 2021-01-12T03:18:11.894210 | 2019-10-31T07:34:26 | 2019-10-31T07:34:26 | 81,297,588 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 9,160 | cpp | viewer.cpp | // ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
b7cc08ac9c4e21529d9b35606096c156d6cf7713 | b7ba575e6d01b26bf2c4af46d2a8a7fa056f8939 | /Algorithm Note.C++/pointer_minus.cpp | 459d28e2d58b5382e1690f7c826ffacc234fa302 | [] | no_license | ParadoxCN/C-Plus-Plus-Code | 4fbe21104e9645a6172a764ca68e25df3439d496 | 5a68d46d4e1047360c3086ac4102940a4adebc50 | refs/heads/master | 2020-04-09T01:54:36.027638 | 2018-12-01T12:03:19 | 2018-12-01T12:03:19 | 159,921,893 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 432 | cpp | pointer_minus.cpp | //瀹炵幇鎸囬拡鍑忔硶
#include<stdio.h>
int main()
{
int a[10] = {1, 4, 9, 16, 25, 36, 49};
int *p = a;
int *q = &a[5];
printf("q=%d\n", q);
printf("p=%d\n",p);
printf("q-p=%p\n", q - p);//缂栬瘧鍣ㄤ笉鏀寔浠�%d鏄剧ず鎸囬拡鍦板潃锛屽簲閲囩敤%p
return 0;
}
/*
q=6422068
p=6422048
q-p=0000000000000005 //6422068-6422048=20锛宨nt涓�... |
3d3305618b178f0b140d55f901e4df52c96a682a | c652e6bc19cd29cb7126b7aa38cea919c22607d7 | /ref/Holder.hpp | a9908038093b5734f43e0132282678b644597d80 | [
"MIT"
] | permissive | asenac/refcpp | d328fbb547e007c2d1b9121a6fa03ae1acc2e683 | 6b1ab20e65b3e5159fb2c7dd3b351dcc047516cd | refs/heads/master | 2016-09-06T18:08:53.063959 | 2014-12-07T11:20:30 | 2014-12-07T11:20:30 | 23,717,035 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,487 | hpp | Holder.hpp | #ifndef REF_HOLDER_HPP
#define REF_HOLDER_HPP
#include <memory>
namespace ref
{
struct TypeDescriptor;
struct Holder
{
/**
* @brief Creates an invalid holder.
*/
Holder() : m_descriptor(nullptr) {}
Holder(const Holder& h) : m_impl(h.m_impl), m_descriptor(h.m_des... |
be899b3df0b12d432e825fb42b4ba190635a3448 | 24250b9d14ba38849971cf1e65b09a55dbb65d65 | /0722/monster.h | 60d7e8df8751b9feb69c90bca0835c4c5e250723 | [] | no_license | Czeslaw20/myTest1 | 775f342a40cebf63d5edc36c1882fec24e9bab55 | 07d2e2d45d0f37239c8c60138d87400b47a2238c | refs/heads/master | 2022-12-04T19:49:52.553362 | 2020-08-30T02:37:45 | 2020-08-30T02:37:45 | 291,389,804 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 401 | h | monster.h | #pragma once
#include<iostream>
using namespace std;
#include "hero.h"
class Hero;
class Monster
{
public:
//有参构造
Monster(int monsterId);
//怪物攻击函数
void Attack(Hero * hero);
string monsterName;//怪物姓名
int monsterHp;//怪物血量
int monsterAtk;//怪物攻击力
int monsterDef;//怪物防御力
bool isFrozen;//... |
4cc79c6d77c52a16b866e1dfdee840c8a1837e0b | c1dce744b8ccb279f41025ac0c3c1eac880918d4 | /src/map.cpp | 87ced970eadf12aa5a56ae57b359ed1b365bef55 | [] | no_license | djuleAyo/RS001-zombie | 003cb21890fdc2b7c9f8f26b001c0c4a320c326b | ff7bc9a3337773bfcb9bfc6871940ebc6807e511 | refs/heads/master | 2020-03-17T02:55:30.709471 | 2018-05-12T15:13:35 | 2018-05-12T15:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,163 | cpp | map.cpp | #include "map.h"
Map::Map(std::string seed, int visibility, worldCoords worldOrigin)
: m_seed(seed),
m_visibility(visibility),
m_worldOrigin(worldOrigin)
{
//init memory origin
m_memoryOrigin[0] = 0;
m_memoryOrigin[1] = 0;
m_memoryOrigin[2] = 0;
//init m_data
for(int x = 0; x < m_visibility; x... |
506ccaa084f5db470b6d3365b41a55f3c4b68146 | ced632b0a81654ec9ea3f270e2e51d36170dd050 | /src/fiducial_lib/Fiducials.cpp | 251d12356b4658f1334975bd38c225304959d8da | [] | no_license | lian16thu/RoboCup | 4a0b84f54a6253a1284e3922c54210bb8239087b | 95dbd5753be3f0391176420ec2cb012d8fda59fe | refs/heads/master | 2020-04-30T15:21:31.379146 | 2019-03-21T10:04:40 | 2019-03-21T10:04:40 | 176,918,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63,702 | cpp | Fiducials.cpp | // Copyright (c) 2013-2014 by Wayne C. Gramlich. All rights reserved.
#include <assert.h>
#include <sys/time.h>
#include <angles/angles.h>
#include <opencv2/highgui/highgui_c.h>
#include "CRC.hpp"
#include "CV.hpp"
#include "File.hpp"
#include "FEC.hpp"
#include "Fiducials.hpp"
#include "String.hpp"
#include "Locat... |
f6a44fa7318127da16d218b477abfe672f37a847 | dd80a584130ef1a0333429ba76c1cee0eb40df73 | /external/chromium/chrome/browser/ui/views/profile_tag_view.cc | eab9e414976116b957d611583fa5e3609fd2b180 | [
"BSD-3-Clause",
"MIT"
] | permissive | karunmatharu/Android-4.4-Pay-by-Data | 466f4e169ede13c5835424c78e8c30ce58f885c1 | fcb778e92d4aad525ef7a995660580f948d40bc9 | refs/heads/master | 2021-03-24T13:33:01.721868 | 2017-02-18T17:48:49 | 2017-02-18T17:48:49 | 81,847,777 | 0 | 2 | MIT | 2020-03-09T00:02:12 | 2017-02-13T16:47:00 | null | UTF-8 | C++ | false | false | 3,960 | cc | profile_tag_view.cc | // Copyright (c) 2011 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 "chrome/browser/ui/views/profile_tag_view.h"
#include "chrome/browser/ui/views/frame/browser_frame.h"
#include "chrome/browser/ui/views/prof... |
ebe3ed36a28fe687563ab05cabcbdc2a681bf3af | a37a6d559099dc316c7c7a57fce38c4c49e5840e | /ku/LNode.h | d7e38535828e64c313a68ccb963acdd166308af6 | [] | no_license | mao-chang-jing-yan/untitled | 895e69b71fd540893f4e58c542e1b749211090f2 | 4b00bcb29ef0a76daa33010698306366d1b70dea | refs/heads/master | 2023-06-14T11:48:03.149482 | 2021-07-15T08:24:51 | 2021-07-15T08:24:51 | 386,217,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 720 | h | LNode.h | //
// Created by Xiao Shen on 2021/7/15.
//
#ifndef UNTITLED_LNODE_H
#define UNTITLED_LNODE_H
#include <iostream>
#include <string>
using namespace std;
struct Node {
string name;
Node *next;
Node *front;
};
class LNode {
private:
Node *data{};
Node **head = &data;
Node **tail = &data;
i... |
d432d9b1acbf3ead9d1840d4cd81d2665e8c37b2 | 24ee99f16666f5ae662c7a062bde01dff359ebd9 | /1. Searching and Sorting/29. Book Allocation - GFG.cpp | e40329c0e8b6d266e6415a1b035d87d6219be51f | [] | no_license | Anurag-c/Codes | d103cf2d406175ce8c6a5eab2c0163e1e6c5877f | d69df2a1a6d6d33fe3f0f9d52e32b98cd5abcde2 | refs/heads/main | 2023-03-29T14:00:42.576632 | 2021-04-11T08:11:09 | 2021-04-11T08:11:09 | 324,210,053 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 774 | cpp | 29. Book Allocation - GFG.cpp |
//https://practice.geeksforgeeks.org/problems/allocate-minimum-number-of-pages0937/1#
int isPossible(int *arr,int n,int pages,int m)
{
int curr_pages = 0;
int students = 1;
for(int i = 0 ; i<n ; i++)
{
curr_pages += arr[i];
if(curr_pages > pages)
{
curr_pages = arr[... |
bab0d53f7de6ee31cef43606cd822890b0b51e4e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_19187.cpp | 761e61f72e7c363d10cdc32409bf17c505beb662 | [] | 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 | 316 | cpp | Kitware_CMake_repos_basic_block_block_19187.cpp | {
q = QUEUE_HEAD(&queue);
QUEUE_REMOVE(q);
handle = QUEUE_DATA(q, uv_fs_event_t, watchers);
tmp_path = handle->path;
handle->path = NULL;
err = uv_fs_event_start(handle, handle->cb, tmp_path, 0);
uv__free(tmp_path);
if (err)
return err;
} |
a6e2cf49a179cd0ea74c62cbd76a430cf9a07613 | aae5e68bb01912d13f8117f3a50b39a9f8f9b1ed | /EngineBase/Vector3.hpp | cf7123ea07b8807c75dffb683e1c1aaa600f2807 | [] | no_license | Ekozmaster/OpenGL-GLFW-Engine | 4b68ed1ad6e56cd7adc0e60ef24d8fa34da5d52b | 6422fcd97bbebcf6eec1a28cd2bc126ac3d242bc | refs/heads/master | 2020-04-05T13:40:07.721505 | 2017-07-02T15:29:15 | 2017-07-02T15:29:15 | 94,956,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,536 | hpp | Vector3.hpp | #ifndef VECTOR3_HPP
#define VECTOR3_HPP
#include<cstdio>
#include<glm/glm.hpp>
// Abstraction to work with vectors in space
class Vector3 {
public:
float x;
float y;
float z;
Vector3(float X, float Y, float Z);
Vector3();
void PrintCoords();
// Overriding p... |
34251945e5b7846787addd35b5df29df69b3a284 | 01cdc1707201e6750e122c6f970c66d6392bcbeb | /src/KubeInterface.cpp | ae43e1bfd2effbd49c81d00285e980489830927a | [] | no_license | slateci/slate-api-server | 9c6b2736e00a5c4c7442039ed14c7c49ce172f0a | a605abf61a7dcc7a435ea91cdeba0a119351ee52 | refs/heads/master | 2021-12-01T08:45:44.724510 | 2021-11-17T20:20:13 | 2021-11-17T20:20:13 | 138,083,801 | 0 | 0 | null | 2018-07-18T17:03:28 | 2018-06-20T20:42:45 | C++ | UTF-8 | C++ | false | false | 2,757 | cpp | KubeInterface.cpp | #include "KubeInterface.h"
#include <memory>
#include <string>
#include "Logging.h"
#include "Utilities.h"
#include "FileHandle.h"
///Remove ANSI escape sequences from a string.
///This is hard to do generally, for now only CSI SGR sequences are identified
///and removed. These are by far the most common sequences ... |
a19df31069968c3db2589f565c8a0a36dfba7c61 | 6891953e7ea34f9cd8760ef1506edc9ce1a41c60 | /PROBLEMAS/10/10/InserccionColagistica_10.h | f713bcb16e5ca659e5e321b739f5e8d0ef415d5d | [] | no_license | PabloGonzalezCorredor/EDA-2019-2020-UCM | cb7205059cfffa4d1a658896309006a7a918a591 | 525da869676ed61eae5e7d5904544365ff923e8e | refs/heads/main | 2023-01-11T09:30:12.879865 | 2020-11-12T16:52:23 | 2020-11-12T16:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,155 | h | InserccionColagistica_10.h | #ifndef inserccion
#define inserccion
#include <stdexcept> // std::domain_error
#include <iostream>
#include"queue_eda.h"
template <class T>
class insert_queue : public queue<T> {
using Nodo = typename queue<T>::Nodo;
public:
void insert(insert_queue<T>& other, int p) {
if (p == 0) {
Nodo* aux = other.ult;
... |
dd9d3e3749306f0f1d75a53b98b5e511146ab76d | 13595410680791ce49d253a97ff01452c2667303 | /LeetCodeCpp/NodeClass.cpp | d5326d086bab27f183442d1c579b3d53d7e2d18b | [] | no_license | timotimosky/LeetcodeCpp | a861bef47fdef05d3ec5d333346ce3194cd0dd2f | fe47cb86e31c284292c5a66cf6b215b1f3ce1ad0 | refs/heads/master | 2021-06-27T11:42:11.578763 | 2021-01-19T11:53:15 | 2021-01-19T11:53:15 | 203,036,977 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,983 | cpp | NodeClass.cpp |
#include "NodeClass.h"
#include <iostream>
using namespace std;
NodeClass::NodeClass()
{
Node* a = new Node(1);
a->next = NULL;
Node* b = new Node(2);
b->next = a;
Node* c = new Node(3);
c->next = b;
Node* firstNode = new Node(0);
firstNode->next = c;
//DeleteNode(firstNode, a);
DeleteNodeO1(firstNode,... |
b7860dc2846f2b9c733f71dfd75449b4eb232492 | 9b8a89bc7c031b0db6723420964c9cb343208e27 | /Castlevania/Level1.cpp | 9eb531b49f9a8626097fbe0d12f81a41b6173cb6 | [] | no_license | nguyentuyetnhungpht/Game-Castlevania | ac090012195fbfb708168b7df91f094a5649cd56 | c59d7fa1f514b1ee156c9628ac2c4af32bb92dd7 | refs/heads/main | 2022-12-25T12:08:46.152743 | 2020-10-03T12:18:13 | 2020-10-03T12:18:13 | 300,872,900 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,091 | cpp | Level1.cpp | #include "Level1.h"
#include "Resource.h"
#include "LoadingData.h"
#include "debug.h"
CLevel1 *CLevel1::__instance = NULL;
CLevel1::CLevel1(void)
{
}
CLevel1::~CLevel1(void)
{
}
void CLevel1::LoadMap()
{
CTextures *textures = CTextures::GetInstance();
LPDIRECT3DTEXTURE9 texscene1;
LPDIRECT3DTEXTURE9 texscene2;
... |
f2df698f6a1472275bb32f2697735515247f1eb5 | 6b390b74bdf88149a6762b606116f0f8e6bc1244 | /Source/TheHudsonReport/Private/InGameUI__pf122804083.cpp | f545f177e7ea22ab50ea118039643b7ed4aa0559 | [] | no_license | Angros/The-Hudson-Report | 1c9099dcb92db0b7c3554625ff7b1d62b821ca05 | 8ec6735519a1009374d1240e0f44ed99826d8472 | refs/heads/master | 2020-07-31T04:41:01.775675 | 2019-09-24T02:54:33 | 2019-09-24T02:54:33 | 210,487,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 180,772 | cpp | InGameUI__pf122804083.cpp | #include "TheHudsonReport.h"
#include "InGameUI__pf122804083.h"
#include "GeneratedCodeHelpers.h"
#include "Runtime/UMG/Public/Blueprint/WidgetTree.h"
#include "Runtime/UMG/Public/Components/CanvasPanel.h"
#include "Runtime/UMG/Public/Components/CanvasPanelSlot.h"
#include "Runtime/UMG/Public/Components/Image.h"
#inclu... |
d0bf6fd44880752cb4ce83d00aff025179fa9ac9 | 020dd6ffd4598cf7a696edb14200f399aa26a53c | /合法括号序列判断/合法括号序列判断/源.cpp | 7d93bfd73515b7dd814c272527674fcb3e3c52eb | [] | no_license | xiaobbei/practice | 5104d5baa39163cf5819b036dcf4df30a2f1d003 | 7f0589cea975c1a208a12727d6b5f8e1e0836067 | refs/heads/master | 2022-04-10T18:57:27.938527 | 2020-02-29T14:37:06 | 2020-02-29T14:37:06 | 198,360,849 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 458 | cpp | 源.cpp | #include<iostream>
#include<string>
using namespace std;
class Parenthesis {
public:
bool chkParenthesis(string A, int n) {
// write code here
if (n % 2 != 0)
return false;
int count = 0;
for (int i = 0; i<A.size(); ++i)
{
if (A[i] != '('&&A[i] != ')')
return false;
if (A[i] == '(')
count++;... |
2b99fdd8e0eac0625ff9623640fd0cbb471903e7 | f38e1eeee8678d5b228d9340dbeab87edb6a9368 | /TeeNew/Builder2009/Release501_FixedBugs.cpp | 4b3c881dcdc1b01093e98b50f3cdc990b719d4e1 | [] | no_license | Steema/TeeChart-VCL-samples | 383f28bfb7e6c812ed7d0db9768c5c1c64366831 | cb26790fa9e5b4c1e50e57922697813e43a0b0bc | refs/heads/master | 2021-11-17T07:02:23.895809 | 2021-09-14T07:43:04 | 2021-09-14T07:43:04 | 8,649,033 | 23 | 14 | null | null | null | null | UTF-8 | C++ | false | false | 4,931 | cpp | Release501_FixedBugs.cpp | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Release501_FixedBugs.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TRelease501Fixed *Release501Fixed;
//-----... |
5e4fbc56f3a2343953be8b3e5b97420566b36056 | 3644e0da44f3cf478c28a6d4f2973056b8d82a69 | /Raspberry/Robocup/Sensors/src/PortCheck.cpp | f73a5458e60c3984232592499fdaac2e3113d9ab | [] | no_license | s991116/robot-projects | 4e69c89f23d7e71422c47965d18e83b61c6fcb9b | 31f92ffbd9a15df3bd0a7771e2f5b2e2e854de39 | refs/heads/master | 2023-03-06T07:03:57.331954 | 2022-11-11T20:29:50 | 2022-11-11T20:29:50 | 32,548,921 | 4 | 0 | null | 2023-03-01T20:36:05 | 2015-03-19T22:11:28 | C++ | UTF-8 | C++ | false | false | 585 | cpp | PortCheck.cpp | #include <PortCheck.h>
#include <Convert.h>
PortCheck::PortCheck(ComController* comController, int portCount) {
_ComController = comController;
_DeltaCount = portCount;
SettingsInt["COUNT"] = &_DeltaCount;
}
void PortCheck::Prepare() {
_TargetCount = _DeltaCount + _ComController->GetPortCount();
}
std::strin... |
40726dfd2cb7486d9c7d7eabe7a7648b723a545f | b681d51c754ee0732519972bed62855432ac6dee | /CCCC-tianti/L1-027.cpp | 140737c59f80f465a0c8696003dc9b8f347e6240 | [] | no_license | haidehenge/Cplusxunlian | 298b92ff0f14d5c9b015b1d56c4ad59ae9dc2e4b | dcf76c4dd6448c126806b4ce9ff31e9d984bda20 | refs/heads/master | 2023-04-05T19:20:21.752828 | 2021-05-04T09:00:38 | 2021-05-04T09:00:38 | 364,158,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | L1-027.cpp | #include <bits/stdc++.h>
using namespace std;
int a[15] = { 0 };
int b[15] = { 0 };
int main()
{
string s;
cin >> s;
int n = s.size();
for (int i = 0; i < n; i++) {
a[s[i] - '0']++;
}
printf("int[] arr = new int[]{");
for (int i = 9, j = 0; i >= 0; i--) {
if (a[i] != 0) {
... |
915c2a31bdb12a78c185d06f983ad2fadf9675da | d9a50abfe2b0a1adf655048ddba8ef302d750d53 | /DERAS-Server/src/ieee_sep/UomType.cpp | 04ff586f04655b7cfcbbfbb05b9e7803a2bc9909 | [
"BSD-2-Clause"
] | permissive | psu-powerlab/DERAS-Server | f7ed520ee6885a77ac5d3b2f672d8a6502004c97 | 5b41f35148aa1ff45c1f6b3a96f94ce443a72d0f | refs/heads/master | 2022-11-29T15:01:50.874535 | 2020-06-18T20:06:10 | 2020-06-18T20:06:10 | 261,805,865 | 0 | 0 | BSD-2-Clause | 2020-07-06T18:53:10 | 2020-05-06T15:44:56 | C++ | UTF-8 | C++ | false | false | 323 | cpp | UomType.cpp | ///////////////////////////////////////////////////////////
// UomType.cpp
// Implementation of the Class UomType
// Created on: 13-Apr-2020 2:51:46 PM
// Original author: Shawn Hu
///////////////////////////////////////////////////////////
#include "UomType.h"
UomType::UomType(){
}
UomType::~UomType(){... |
46521e3ad63a7e1ca947ad05056bf23db0e02d7a | 206fb33ca0c73ecec28d57876f0ca7ff8e1471a8 | /L06/nr06.cpp | a2dc91a60d6dd08a1f1e6a7aa080755d2ecee9a0 | [] | no_license | kainoj/cpp-course | d46eb3d8bb64ca5ff8e85fa3ab125179eee1b29b | 476a63836d403359b867c4b45b269d4505a19199 | refs/heads/master | 2021-01-12T07:40:37.184334 | 2017-03-11T10:07:19 | 2017-03-11T10:07:19 | 76,998,399 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,152 | cpp | nr06.cpp |
#include <fstream>
#include <iostream>
#include <chrono>
#include <random>
#include "listtest.h"
#include "vectortest.h"
int main( int argc, char* argv [] )
{
std::vector< std::string > vect;
// Task 1
std::ifstream input("testfile.txt", std::ifstream::in);
vect = vectortest::readfile(input);
// std::cou... |
7567eab942850719212ae97635957e62f646b827 | af6ff95737c9d5d079ca96e6fc9d6d1b03bb678e | /logistic/LogisticRegression.h | cf3bb3abe44dcdbb6e297b5cae5927652007c63c | [] | no_license | zhanxw/mycode | 5ea668e3f8a5ed1fb29f695a85b05bebe6d17eff | 1e7f910f58401999f5d73c20a199ca01e5e566e5 | refs/heads/master | 2020-05-07T15:23:10.858538 | 2015-05-18T05:20:55 | 2015-05-18T05:20:55 | 1,295,310 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,976 | h | LogisticRegression.h | //////////////////////////////////////////////////////////////////////
// Adopted by Xiaowei Zhan
//
// mach2dat/LogisticRegression.h
// (c) 2008 Yun Li
//
// March 15, 2008
//
#ifndef __LOGISTIC_REGRESSION_H__
#define __LOGISTIC_REGRESSION_H__
#include "MathMatrix.h"
#include "MathCholesky.h"
#includ... |
518fac48567ac888155cb5f5353f1a8bb45deaf1 | b151e0042cb1fb48c5d2100f08e5b67dd9dde0a5 | /Implementation/absPerm.cpp | 2d4278831a1a167febcb87e1ec5eb14a4daebb74 | [
"MIT"
] | permissive | nikaruno/Algorithms-Data-Structures | 5e2bd95c84642a427fb5f35ef4dd26e60c3dc3fd | 8abbde3fbe2951d710ea2bfe0cd5f6c68870a543 | refs/heads/master | 2021-08-22T14:25:36.430008 | 2021-07-21T10:34:02 | 2021-07-21T10:34:02 | 148,140,251 | 0 | 0 | MIT | 2018-09-10T11:05:41 | 2018-09-10T10:42:50 | null | UTF-8 | C++ | false | false | 540 | cpp | absPerm.cpp | vector<int> absolutePermutation(int n, int k) {
vector<int> v;
if (k == 0){
for (int i = 0; i<n; i++){
v.push_back(i+1);
}
return v;
}
int m = 2*k;
if ((n % 2 == 1) || (n/m)*m != n){
v.push_back(-1);
return v;
}
int l = 0;
while(n>0){
... |
b2da56bc152f4cfa6e16aedc1211ba539f0a4de7 | c3aa4ca4a3fba3e118e32eb694e8944b55af50d0 | /Server/COMP7005_A1_Server/serverthread.cpp | f93b15ca0fe5eb8aadfeee4a442edbb59af3a4bb | [] | no_license | filipgutica/COMP7005_A1 | 85144cb2208718e81eeb57efcd8dd1e4b25b6743 | 6f4b4466cf5534f77234e22904b0f9d04d3a1bcf | refs/heads/master | 2022-07-24T11:46:13.778671 | 2015-10-06T23:57:47 | 2015-10-06T23:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,327 | cpp | serverthread.cpp | #include "serverthread.h"
ServerThread::ServerThread(int socketDescriptor, QStringList fileList, QObject *parent)
: QThread(parent), _socketDescriptor(socketDescriptor), _fileList(fileList)
{
}
void ServerThread::run()
{
_tcpSocket = new QTcpSocket();
if (!_tcpSocket->setSocketDescriptor(_socketDescrip... |
bd50471d72f5df3ef5918e6723b3d771a6eeba6a | a9b50352113e7fda9fa7b8af561e683b71cd8263 | /Code/Simulation.h | 62d3ff31073f9d339470e035b3bae7c589a372e6 | [] | no_license | alexandreb09/ZZ2_Simulation_TP2_partie_III | 2a93f1d21ad5ebf33bf75ba202e8fc37eccaf98e | fc4cf78da77a0692eb9a489c6fee95832a751168 | refs/heads/master | 2020-04-10T14:58:06.021420 | 2018-12-17T00:55:33 | 2018-12-17T00:55:33 | 161,092,982 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,469 | h | Simulation.h | #pragma once
#include <ostream>
#include <string>
#include <algorithm>
#include <cstdlib> // aléatoire
#include "Machine.h"
#include "Assemblage.h"
#include "Entree.h"
#include "File.h"
#include "Affichage.h"
//==============================================
void gerer_Entrer_1(File& file_m1, Machine &serve... |
94f7c32dd0e641cae991d80d22e5c5387ef342d2 | 7a81cff35339ab89a230f98bdfd3e299d38bfd33 | /triangulos.cpp | 6e323c3630aadcce7ac502caebc9cad14861be72 | [] | no_license | danielcatto/almoritimos | d8e6bb4b69c0e37a77b0b90a0c10601dd983af2c | 8738515e1c347b2ae49e8dfdd412b2929c62647d | refs/heads/master | 2022-10-05T20:18:48.956866 | 2020-06-06T19:02:04 | 2020-06-06T19:02:04 | 265,968,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | triangulos.cpp | #include <iostream>
using namespace std;
int main()
{
int ladoA, ladoB, ladoC;
cout <<"Informe o 1o. Lado: ";
cin >>ladoA;
cout <<"Informe o 2o. Lado: ";
cin >>ladoB;
cout <<"Informe o 3o. Lado: ";
cin >>ladoC;
if (ladoA == ladoB && ladoB == ladoC)
{
cout << "Triangulo... |
d6a126c55ba096ebb858cc0048c72fff65ef22fe | 93343c49771b6e6f2952d03df7e62e6a4ea063bb | /HDOJ/3352_autoAC.cpp | 9e249d1071e7a3afdaabee2713b1c9416ec22e90 | [] | no_license | Kiritow/OJ-Problems-Source | 5aab2c57ab5df01a520073462f5de48ad7cb5b22 | 1be36799dda7d0e60bd00448f3906b69e7c79b26 | refs/heads/master | 2022-10-21T08:55:45.581935 | 2022-09-24T06:13:47 | 2022-09-24T06:13:47 | 55,874,477 | 36 | 9 | null | 2018-07-07T00:03:15 | 2016-04-10T01:06:42 | C++ | UTF-8 | C++ | false | false | 334 | cpp | 3352_autoAC.cpp | #include<stdio.h>
long long a,b;
long long up(long long a,long long b)
{
long long t;
if(a==0) return b;
while(b!=0)
{
t=b;b=a%b;a=t;
}
return a;
}
int main()
{
while(scanf("%lld%lld",&a,&b)!=EOF)
{
if(a==0&&b==0) break;
printf("%lld\n",a*b/up(a,b)/up(a,b));
}
... |
c1f50e42dd7d8aabac6bb4461532b17d38bc51a3 | 05a65c385dc5ba32bff4e1af5f9d523a4e831449 | /Source/USemLog/Classes/CV/SLCVQSceneStatic.h | 3df45146eefc748b798b1e04c79b58d9168fd63b | [
"BSD-3-Clause"
] | permissive | robcog-iai/USemLog | 5571212e9c7fba04a441a89f269f02195a3b3643 | d22c3b8876bec66a667023078f370a81f7ce9d2b | refs/heads/master | 2023-09-01T08:53:09.932916 | 2022-11-03T11:20:35 | 2022-11-03T11:20:35 | 69,003,081 | 9 | 22 | BSD-3-Clause | 2023-03-29T14:44:52 | 2016-09-23T07:59:30 | C++ | UTF-8 | C++ | false | false | 647 | h | SLCVQSceneStatic.h | // Copyright 2017-present, Institute for Artificial Intelligence - University of Bremen
// Author: Andrei Haidu (http://haidu.eu)
#pragma once
#include "CoreMinimal.h"
#include "CV/SLCVQScene.h"
#include "SLCVQSceneStatic.generated.h"
// Forward declaration
class ASLIndividualManager;
class ASLMongoQueryManager;
/*... |
e217adadd5df1ed27e0d2c3b6c87464bc09aa703 | 52e426e2bb868e20681c40f1758e60a0e37acdbd | /code_samples/pixel_collision.h | 60575eff6c966f255418a2d391d5f8cd874e5e2d | [] | no_license | leegrey/pure-pixels | 9be9d6fa3ec5794365f6c9af4833d0c07cfb1f9c | 658b4fb69e58026bbb183c227d98dee499a164e5 | refs/heads/master | 2020-04-24T01:34:13.905834 | 2019-11-08T23:17:15 | 2019-11-08T23:17:15 | 171,603,034 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,822 | h | pixel_collision.h | #pragma once
namespace lg {
bool moveAndCollideOnPixels(PixelWorld& world, PixelEntity& entity, bool climbSlopes = false) {
bool wasGrounded = entity.grounded;
Vector2 originalVelocity = entity.velocity;
Vector2 originalPos = entity.position;
// calculate the rec... |
fea94c0d9d3e3fe7186504af49d7dbf04326f720 | 831eafe4bed683213c5e4e39dafa71bd3902a70f | /coderack.cpp | 4ac67a0ca19b9862421105bcc06896ceaa82d186 | [] | no_license | jrising/combai | 8b9efcb2e429f7b176a336d7e05a8f74ef676635 | 0a8f7dc3ae21b1ea121a90b3f4eca5fd4fd5ff00 | refs/heads/master | 2021-01-20T15:30:11.892529 | 2017-05-09T17:36:17 | 2017-05-09T17:36:17 | 90,773,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,696 | cpp | coderack.cpp | #include "coderack.h"
#include <stdlib.h>
Coderack::Coderack(unsigned long maxsz) :
AIObject(CCoderack), maxsize(maxsz) {
root = new CoderackRoot();
head = root;
size = 0;
TrackLink::MemStore(trackid, &root, FALSE);
TrackLink::MemStore(trackid, &head, FALSE);
}
Coderack::Coderack(FILE *fp) :
AIObject(f... |
12639be2f98c2887ec1be3d11635a491a58cfb31 | f9285898735714b3e301c310f7b6d2c0a2c22798 | /tests/dcl.struct.bind.Test.cpp | 2dabe1d43825235573780e91d2d9de30cfc23c58 | [
"MIT"
] | permissive | andreasfertig/cppinsights | dcb6c53e0c79770df383067e70b852fde7fb24f5 | 50b962d6bb6d96c567a5b0870c3c828405b40d14 | refs/heads/main | 2023-08-27T06:36:33.307787 | 2023-07-31T05:21:49 | 2023-07-31T05:21:49 | 131,510,015 | 2,465 | 156 | MIT | 2023-09-13T11:31:36 | 2018-04-29T16:21:08 | C++ | UTF-8 | C++ | false | false | 3,041 | cpp | dcl.struct.bind.Test.cpp |
// p1
// cv := denote the cv-qualifiers in the decl-specifier-seq
// S := consist of the storage-class-specifiers of the decl-specifier-seq (if any)
//
// 1) a variable with a unique name e is introduced.
// If the assignment-expression in the initializer has array type A and no ref-qualifier is present, e is def... |
cd80ce3404cedbc5aec17fca8921d3ea8a021ff7 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/assistant/model/assistant_response_observer.h | e439a4b652fadaa0f6712ffa13cf84aa420bcdef | [
"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 | 1,220 | h | assistant_response_observer.h | // 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.
#ifndef ASH_ASSISTANT_MODEL_ASSISTANT_RESPONSE_OBSERVER_H_
#define ASH_ASSISTANT_MODEL_ASSISTANT_RESPONSE_OBSERVER_H_
#include <vector>
#include "base/component_export.h"
#in... |
f8568c19d3a10563b3907d7771b5c29735735ea0 | 46951a9ec2db9c8b46f5698bc4d75e27e576429d | /kernel/src/acpi.cpp | 702e37454d556dac4315e06f2e639ba6af40417c | [] | no_license | SkiddyToast/ToastOS | 49d004eda370c9d9952b07d8607147c443983807 | 3851dd4d91dad1298c98a846df89da45060af2e4 | refs/heads/main | 2023-03-31T15:34:07.736079 | 2021-04-07T00:21:56 | 2021-04-07T00:21:56 | 337,888,356 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | acpi.cpp | #include "acpi.h"
namespace ACPI {
void* FindTable(XSDT* xsdt, char* signature)
{
int xsdtEntries = (xsdt->Header.Length - sizeof(xsdt->Header)) / 8;
for(int i = 0; i < xsdtEntries; i++) {
ACPI::SDTHeader* h = (ACPI::SDTHeader *)xsdt->Entries[i];
for (int i = 0; i < 4; ... |
6a3dd55f47ed0827206e41f76456a9b54289870f | de42db6b7ca9da722804b9a754158d477a4550d6 | /src/alpFuncs.cxx | 6d3c1ed17bf2a6568d54d65209b15c37f25a268a | [] | no_license | hershen/commonRootFunctions | 247a95e74d9491e23d56b28adc67c29443bbfb33 | 28d3b74e02b4d526ecfbe728a80aa86968613c3e | refs/heads/master | 2022-03-09T07:46:47.403425 | 2019-11-26T18:33:27 | 2019-11-26T18:33:27 | 104,494,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | cxx | alpFuncs.cxx | #include <limits>
#include <boost/lexical_cast.hpp>
#include "TVector3.h"
namespace myFuncs {
std::string getAlpMassString(const std::string& text) {
const std::string tmp = text.substr(4);
return tmp.substr(0, tmp.find("_"));
}
double getAlpMassDouble(const std::string& text) { return boost::lexical_cast<doub... |
37398c1606d94f78b5446be9c20cfdc94547cd51 | 680894c4dc58dd2c4f32229c48e1bf0f025a93f9 | /hub/socket.cpp | d8d5b1b02a8a439d7bb0a3babcb8c6a9e0b23d13 | [] | no_license | Jaffe-/GPSWallSocketHW | dbe2413c9b18c35ca63cf67fd3414781975269e2 | ed70895dfe849ac3a19cc9c094a5072c9d6457bf | refs/heads/master | 2021-03-27T15:34:41.889385 | 2017-03-29T12:23:49 | 2017-03-29T12:23:49 | 80,611,133 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,631 | cpp | socket.cpp | #include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <string>
#include <iostream>
#include <vector>
#include <sstream>
#include "json.hpp"
#include "socket.h"
#include "ioexception.h"
#define LOG_MODULE "Socket"
#include "log.h"
Socket::Socket(const std::string& filename) {
... |
7bdc80fd1e8dce1ff2e7cc277eab0655bee7905b | ab95572e01fce409bc413d8d0f5320dd61b62c85 | /software/utilities/opencv-utils/imshow_utils.hpp | 88c0de735d135e22e5dcc549bbe6e3f9f0128eb2 | [] | no_license | spillai/articulation_learning | 8615413ab8c70c367bd3d1e2dc5675db2f59e068 | 4bae0b55813fb9e3683cee363268c51b9b195002 | refs/heads/master | 2021-05-19T22:53:35.725923 | 2015-10-17T21:42:21 | 2015-10-17T21:42:21 | 38,456,267 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,836 | hpp | imshow_utils.hpp | #ifndef IMSHOW_UTILS_H
#define IMSHOW_UTILS_H
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/highgui/highgui_c.h>
#include <opencv2/opencv.hpp>
#include <pthread.h>
#include <deque>
#include <math.h>
#include <stdio.h>
#include <bot_core/bot_core.h>
#include <map>
#include <GL/gl.h>
namespace opencv_utils... |
55d8980cdab5f912def521d1c72a6b51150ffd77 | d74186fb46ca2421e193ce65b01560e0725912da | /interfaces/api/slam/IBootstrapper.h | b01909381373f64d6fb16dfb9b26ec82c4c8b785 | [
"Apache-2.0"
] | permissive | SolarFramework/SolARFramework | 5b48dc9844bb290c19568e4045da30e5a8b91ff6 | 21032dbb329a793e32c0bbdb757e3a1455ae9f14 | refs/heads/master | 2023-09-03T06:02:20.544463 | 2023-07-17T15:28:58 | 2023-07-17T15:28:58 | 104,219,429 | 14 | 13 | Apache-2.0 | 2023-09-12T08:14:46 | 2017-09-20T13:31:38 | C++ | UTF-8 | C++ | false | false | 2,183 | h | IBootstrapper.h | /**
* @copyright Copyright (c) 2017 B-com http://www.b-com.com/
*
* 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... |
755b5ec1d93e212375bfc6ace6346f831599c8d8 | e7addf58df263b2638c0c96c41e800ad294b29ea | /VS7/Libraries/AnimatLibrary/Sensor.h | 7b5f8c61091d92c0b8e6e1042d4bea4fe9988547 | [] | no_license | NeuroRoboticTech/AnimatLabVersion1 | 9507986736685758456b65a9453eb18b7cfe88cf | c8f2decdff726f1c925c0d92f5dff7bf159d99d6 | refs/heads/master | 2021-01-10T15:52:45.815533 | 2015-10-04T12:54:34 | 2015-10-04T12:54:34 | 43,634,967 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 933 | h | Sensor.h | // AlSensor.h: interface for the CAlSensor class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_ALSENSOR_H__41341DA4_DDA9_4B00_9198_27B628231EE2__INCLUDED_)
#define AFX_ALSENSOR_H__41341DA4_DDA9_4B00_9198_27B628231EE2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#e... |
945a3a05daae2b63950a972430c2f88f5f8e8351 | 6da62dacf463fde32b9bf85d87dc82fb1b87d876 | /Nasledqvane/student.hpp | 24fac3d3601ecb5b93765378f3dc2e3a9d832aeb | [] | no_license | PetyrEftimov/GitHubPetyrEftimov | df90acfc4d398489643d5c1d517beab167a088d1 | a77b5d2c352c5c5c9e4251294bcf9933798d1eec | refs/heads/master | 2021-01-20T13:56:50.077544 | 2017-06-24T11:29:10 | 2017-06-24T11:29:10 | 90,543,799 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 822 | hpp | student.hpp | //
// student.hpp
// Nasledqvane
//
// Created by Pepi on 4/19/17.
// Copyright © 2017 Pepi. All rights reserved.
//
#ifndef student_hpp
#define student_hpp
#include "adress.hpp"
#include "student.hpp"
#include <iostream>
#include<string>
using namespace std;
class Student{
public :
Student... |
6b2513ec401b2524d648cefe1f2d1d55b0112f69 | ecbe865186efce017d15f94d91bef7a1e133050a | /BaseWindow(with raytracer)/BaseWindow/Loader.cpp | 509ab015ca779a3e2424697971114df29d643955 | [] | no_license | BuffBuff/Frustum-KD-tree | a3e0280f7dbfc4376f94ac4c2fc8036273cfde1a | b46a0594d98a6bf9103dc5d669898a4847d07374 | refs/heads/master | 2021-06-24T10:33:43.717436 | 2017-05-09T10:32:30 | 2017-05-09T10:32:30 | 29,969,737 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,548 | cpp | Loader.cpp | #include "Loader.h"
Loader::Loader(void)
{
}
Loader::~Loader(void)
{
}
void Loader::LoadObject(char file[256],float mx,float mz,float my,float scale,Object* objekt,float invertX = 1,float invertY = 1,float invertZ = 1)
{
Vertex pData;
char buffer[256]="";
bool last = false;
float pos[3];
pos[0] = mx;
pos[1... |
93b5c0d3586f7b8659a7fdaa0be07d064f476855 | fd7d1350eefac8a9bbd952568f074284663f2794 | /dds/DCPS/FilterEvaluator.h | 7745e1eb4e479b63c956de8533c5735d1070f6c8 | [
"MIT"
] | permissive | binary42/OCI | 4ceb7c4ed2150b4edd0496b2a06d80f623a71a53 | 08191bfe4899f535ff99637d019734ed044f479d | refs/heads/master | 2020-06-02T08:58:51.021571 | 2015-09-06T03:25:05 | 2015-09-06T03:25:05 | 41,980,019 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,513 | h | FilterEvaluator.h | /*
* $Id: FilterEvaluator.h 5864 2012-10-29 20:05:44Z mitza $
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#ifndef OPENDDS_DCPS_FILTER_EVALUATOR_H
#define OPENDDS_DCPS_FILTER_EVALUATOR_H
#include "dds/DCPS/Definitions.h"
#ifndef OPENDDS_NO_CONTENT_SUBSCRIPTION_PROF... |
ea258a943b7fb9e037c11edc06cd30933f834d8d | fe17735122a54a6d30981f7951e9b2cd693dad13 | /pgg_lab14/ObjLoader.h | e15b80a62c04dcc52ba8954010905fa52512a395 | [] | no_license | JamesRobertsonGames/Rumble-Paddles | ab6979491d2def4231127c3cd0d399f77d568a2c | ee6ef5e1100d3b3c970cc50134a3e9f8a695119f | refs/heads/master | 2021-01-19T12:22:10.618846 | 2017-08-19T08:22:27 | 2017-08-19T08:22:27 | 100,779,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,218 | h | ObjLoader.h | /*!
* \brief OBJLoader Class.
* \details This class is to Load in the RAW OBJ File
* \author James Robertson
* \version 1.0a
* \date 2015
* \copyright GNU Public License.
*/
#pragma once
#include <iostream>
#include <string>
#include <glm.hpp>
#include <vector>
struct FaceVertexData {
int Vert... |
b56c43f0d8821a43ada0657f3c00410a9dddde60 | a275ea9ff9d9fcb8351f0c81418ece2fc30de6fc | /src/controller.h | 26de32635c9e3cb3d489bb8870e5295650dc14e9 | [] | no_license | MayankKr10/COP290-Maze-Game | 234d3b979519adf431793b0d8808cf2c4dad705e | 19e65556bba6aa01f17b7a5b9d5bf40c62c279ff | refs/heads/main | 2023-05-01T06:05:37.419783 | 2021-05-19T17:23:48 | 2021-05-19T17:23:48 | 368,784,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | h | controller.h | #ifndef CONTROLLER_H
#define CONTROLLER_H
#include "player.h"
#include "maze.h"
class Controller {
public:
// evaluate the up, down, left, right, and quit
void HandleInput(bool &running, Player &player, Maze &maze) const;
private:
// check if the move is allowed according to the walls and update the directio... |
008a62308e9c425644e637e660a2ad8dc60eb63b | 1105a10fc5d73fe5b9ecf1266fcd633e22aef071 | /caputre_tool/DealWithDll/DlgAshTrans.cpp | 3d0104232aaeedc17cd5729d7a1e2f829335da2e | [] | no_license | huangjunkun/code_joy_with_cpp_builder_6 | 1ddbf3878b069591c759b60a6743ff4312dde45b | 79dc58ddb9edbc7044031343c647f1d28a1fd219 | refs/heads/master | 2020-06-06T06:09:58.141522 | 2013-12-02T09:24:40 | 2013-12-02T09:24:40 | 11,698,742 | 1 | 1 | null | null | null | null | GB18030 | C++ | false | false | 6,102 | cpp | DlgAshTrans.cpp | // DlgAshTrans.cpp : implementation file
//
#include "stdafx.h"
#include "DealWithDll.h"
#include "MainDlg.h"
#include "DlgAshTrans.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgA... |
0ffecfe01cf22f47892030d4fe1aa93a4735761f | 72bd575d962c4583f0a52e56aeb6b44667919777 | /control/rm_link.h | 6e7b19c20ceabfca3c032b9424727549a31a8625 | [] | no_license | rcxxx/rm-2019-code | 38e108d2ff5fee34b7562dcb40893ec819d7fac6 | a9efff02ce3b946f01e2e8705c274f22771c56a7 | refs/heads/main | 2023-04-20T17:27:52.245560 | 2021-05-06T04:34:47 | 2021-05-06T04:34:47 | 323,908,851 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 975 | h | rm_link.h | /**
* @file rm_link.h
* @author GCUROBOT-Visual-Group (GCUROBOT_WOLF@163.com)
* @brief RM 2019 步兵视觉各接口链接头文件
* @version 1.1
* @date 2019-05-06
* @copyright Copyright (c) 2019 GCU Robot Lab. All Rights Reserved.
*/
#ifndef RM_LINK_H
#define RM_LINK_H
#include "configure.h"
#include "debug_control.h"
#include "cam... |
176320ee3446a7978ac8be0847e055d46a93fee6 | 7d4e986704942d95ad06a2684439fa4cfcff950b | /vendor/mediatek/proprietary/system/core/xflash/xflash-cmd-line/xmain/commands.h | 026e6d83016e51d4814a16db45c31c84a9c00219 | [] | no_license | carlitros900/96Boards_mediatek-x20-sla-16.10 | 55c16062f7df3a7a25a13226e63c5fa4ccd4ff65 | 4f98957401249499f19102691a6e3ce13fe47d42 | refs/heads/master | 2021-01-04T01:26:47.443633 | 2020-02-13T17:53:31 | 2020-02-13T17:53:31 | 240,322,130 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 372 | h | commands.h | #pragma once
#include <string>
#include <vector>
#include <boost/container/map.hpp>
#include "type_define.h"
using namespace std;
class commands
{
public:
commands(void);
~commands(void);
static status_t execute(string command,
vector<string>& arguments,
... |
a7a7bd29768c658fa3109ce7d2d650bada7f4ad1 | 86a8eb330e2e70ea7020233809080dc68fbf3585 | /src/ofApp.cpp | 70a11f770db26b013c456a1bdec5ae506a5b35ab | [] | no_license | KayToo2022/RayTracer | 90aeaddd9788137e47557532f19e58ca35811b0d | 61a7f18a1883ec7695d667010b6d4da9af43daf0 | refs/heads/main | 2023-04-21T11:28:05.663970 | 2021-05-27T18:46:01 | 2021-05-27T18:46:01 | 371,472,223 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,028 | cpp | ofApp.cpp | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofSetBackgroundColor(ofColor::black);
theCam = &easyCam;
easyCam.setPosition(glm::vec3(0, 0, 10));
easyCam.lookAt(glm::vec3(0, 0, -1));
easyCam.setNearClip(.1);
sideCam.setPosition(glm::vec3(5, 0, 0)... |
22bea6803580d6000079777b24fef878f889adff | ce5073c3e3ef42b88d7e26da47efc5b328be84e5 | /OSUtilities/inc/RemoteThreadManager.h | 5bb15a29bfaa3dc967299971e44436edb4b1e2e2 | [
"MIT"
] | permissive | relpatseht/FunctionHooking | 14bb1711c5de4e6c55674c13782a9eb8aa33e6f9 | 765b73695d759fa0a460f88a2497ec062941c4a3 | refs/heads/master | 2023-02-27T04:32:05.111116 | 2023-02-12T12:49:11 | 2023-02-12T12:49:11 | 86,401,773 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | h | RemoteThreadManager.h | /************************************************************************************\
* OSUtilities - An Andrew Shurney Production *
\************************************************************************************/
/*! \file RemoteThreadManager.h
* \author Andrew Shurne... |
95c1e5621a555f9bad154cd35d99f26e1cef29e4 | 34b26012399c362ee196b2d7e86f507b1bc370d1 | /Sawyer Desk LED Control/arduino_code/arduino_code.ino | 68e667c6e07c9c29a8fc5b2e8e4f8595028471bf | [] | no_license | denis-draca/led_demo | 2cc8c64f5b703004d0a55b328bbc03f4006a8ea1 | fea43c2ae1ec2f5e9ce7d9d3a9c9f832f23fe408 | refs/heads/master | 2021-01-21T16:00:39.065500 | 2017-06-25T03:58:06 | 2017-06-25T03:58:06 | 91,869,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,184 | ino | arduino_code.ino | #include <elapsedMillis.h>
#include "ros.h"
#include "led_demo/led.h"
/*
* rosserial Subscriber Example
* Blinks an LED on callback
*/
//#include "ros/time.h"
class zone
{
public:
zone(int pin_R, int pin_G, int pin_B);
void set_rgb(int r, int g, int b, int rnd);
void set_blink(boolean yes, int rate... |
c6b09739e23c0285c783d5bd2749f5c84fc09871 | 9777587686ec5e6942fc860f2fbce9119103fe22 | /NENUOJ/nenuoj_82.cpp | fa5c1a98c4830479924c304f1a82778d7b2dfbaf | [] | no_license | A1exMinatoooo/OJ_Submissions | 9147254c0ded1512cb64a2dcf0641541a26807ab | 352478606512d3e85902aebf49d25d34a047925d | refs/heads/master | 2021-10-24T17:57:16.968244 | 2019-03-27T01:09:20 | 2019-03-27T01:09:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 435 | cpp | nenuoj_82.cpp | /**
* 单数?双数?
* Time Limit: 1000/1000MS (C++/Others) Memory Limit: 65536/65536KB (C++/Others)
*
* Result: Accepted
* Time: 0ms
* Memory: 584KB
*/
#include <bits/stdc++.h>
using namespace std;
int main()
{
int cas;
cin >> cas;
while (cas--)
{
char n[70];
cin >> n;
int len = strlen(n);
if (... |
708589af55f7e914b2fd5932eb568c7fc8b38d55 | 35e52969c08bcadfc12d665c221f47e7e11c465b | /20130512_Software_Development_Yaml_Data_Explorer/test/Utils/DateAndTime/DateTest.cpp | 0dbb96eebc232a04d13bbb120b3d7538a8951e1b | [
"MIT"
] | permissive | andrehtissot/oldthings | 9c8178a9840668b2555c5711b9b014c978ffb2e0 | e947f6ca168939c3781de39bdf5799e49a0021a9 | refs/heads/master | 2021-01-11T12:38:37.133796 | 2016-12-09T18:36:42 | 2016-12-09T18:36:42 | 72,486,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,514 | cpp | DateTest.cpp | #include "../../TestBase.cpp"
#include "../../../src/Utils/DateAndTime/Date.cpp"
using namespace Utils::DateAndTime;
class DateTest : public TestBase {
private:
Date dateAttribute1;
Date dateAttribute2;
private:
public:
void testEqualAndDifferent(){
Date* date1 = new Date(2010, 10, 10);
dateAttribute1.s... |
1207b69e51d0d9b3be0db622fd15fae475a1c81d | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-quicksight/include/aws/quicksight/model/AssetBundleImportJobDataSourceCredentials.h | d4a727dbfce47ebdaf4926ce14b34036f5ea2db3 | [
"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 | 6,258 | h | AssetBundleImportJobDataSourceCredentials.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/quicksight/QuickSight_EXPORTS.h>
#include <aws/quicksight/model/AssetBundleImportJobDataSourceCredentialPair.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <ut... |
8b5176a991b9334df1802d695a6b35e9e5e25a8f | 0c72cf0b8157c54f455b39093b28105d3885afeb | /Project1/Project1/linked_list.cpp | 0ca4b317d19e5643b51f8f24ccb4c5ca90185174 | [] | no_license | Siusarna/Lab3 | 20672c71c5e0fff5e04ee306719a1dc98c0d8770 | b7fc01d21cfda007d1ea17b4127df04165bf0ab2 | refs/heads/master | 2020-04-29T16:00:44.544353 | 2019-05-01T13:46:05 | 2019-05-01T13:46:05 | 176,239,462 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | cpp | linked_list.cpp | #include <string>
#include "parce_word_value.h"
#include <iostream>
#include "Linked_list.h"
using namespace std;
void Linked_List::add(string value) {
node *tmp = new node;
tmp->data = value;
tmp->next = tail;
tail = tmp;
count++;
}
void Linked_List::search(string word) {
node *elem = tail;
while (elem) {
... |
43c8b01b2711d4f210ea5748d72afb0f9eb6f149 | b9fb7419a2207d0eb48246b23d28d166826aa9ba | /src/ui/components/Dialogs.h | 223d6fcaed8c5f277833feedc7165cfa3ed4f19f | [] | no_license | Aquietzero/Graphic-Processor | 0d03a509f0d879cba21581b7b9a5b36ee6fb7157 | aa123dcf6ca3daec946da68bb96febf07d5da959 | refs/heads/master | 2020-05-01T13:24:57.169611 | 2012-09-27T16:39:16 | 2012-09-27T16:39:16 | 2,591,940 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,339 | h | Dialogs.h | #ifndef DIALOGS_H
#define DIALOGS_H
#include <QDialog>
class QSpinBox;
class QSlider;
class QDoubleSpinBox;
class QLabel;
class QPushButton;
class QLineEdit;
class GaussianNoiseDialog : public QDialog {
Q_OBJECT;
public:
GaussianNoiseDialog(QDialog* parent = NULL);
signals:
void applySettings... |
4d71c7a093d204ea3fa1f6e3f6e696b1a7090cfb | e8c38d553008826199e9dad08f2ea78ed52ac1f5 | /src/util/Path.cpp | e88866c0bd288dda639b138eadb3b199fd3dd455 | [] | no_license | QlowB/qlow | f6851f533f83176cd2ce9508262d4581fccea7b6 | 5f3b47ca22f93df07e62b34838b838c2b9aed847 | refs/heads/master | 2023-03-16T16:53:46.021791 | 2021-02-28T23:12:18 | 2021-02-28T23:12:18 | 343,438,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,521 | cpp | Path.cpp | #include "Path.h"
using qlow::util::Path;
#ifdef QLOW_TARGET_WINDOWS
const std::string Path::dirSeparators = "\\/";
const std::string Path::defaultDirSeparator = "\\";
#else
const std::string Path::dirSeparators = "/";
const std::string Path::defaultDirSeparator = "/";
#endif
void Path::append(const Path& other)
{
... |
7201781a24d5c8689524780f8a56e228cdc4743b | 84a3ea32b41ccef68f1425a5edddfc1efb9a3013 | /src/common/bytes.hpp | a5d8a58e80bd627ea348062f62c1435fbb394646 | [
"MIT"
] | permissive | 0xd34d10cc/shar | bb8624207a61eb25772e1ff81d764bffe94bd4cd | df9accc3ae8f9a8405c9b80eebab3e1b050eebc8 | refs/heads/master | 2022-05-24T06:39:29.168605 | 2022-03-30T18:39:56 | 2022-03-30T18:39:56 | 130,477,683 | 6 | 3 | MIT | 2022-03-19T16:21:59 | 2018-04-21T13:45:22 | C++ | UTF-8 | C++ | false | false | 2,129 | hpp | bytes.hpp | #pragma once
#include "bytes_ref.hpp"
#include "int.hpp"
#include <cassert> // assert
#include <memory> // std::shared_ptr
#include <vector>
namespace shar {
// non-owning (for now) const reference to bytes
// TODO: port https://github.com/tokio-rs/bytes to C++
class Bytes {
public:
Bytes() noexcept = default;
... |
d08d57de44a12bb01b2ea427756c192d38448b7c | 574063c8c08ee55c75bf621cab75bacdd6db3fcc | /Lux/Lux/Source/LuxRigidBody.cpp | 491b9f18bc26a7cff0ee2f1f146ceab75c2ddff8 | [] | no_license | SiChiTong/Lux | 1e0032545ca97a786af1dacf09ade834b1952bd0 | 76eea6a9e8a6a541558f9f5fdd0005c225752da4 | refs/heads/master | 2020-03-27T17:37:49.618446 | 2015-07-18T23:44:30 | 2015-07-18T23:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 605 | cpp | LuxRigidBody.cpp | #include "LuxPCH.h"
#include "LuxRigidBody.h"
Lux::Physics::RigidBody::RigidBody() : Component(), m_Properties(nullptr)
{
m_Type = RigidBodyType::RIGID_BODY_STATIC;
}
Lux::Physics::RigidBody::~RigidBody()
{
}
void Lux::Physics::RigidBody::Reset()
{
if (m_Properties)
{
m_Properties->release();
m_Properties = ... |
7e8a14050e29c27985d27e3c402e10c44cfc3abe | 05ccddf9b6d72a3a130c4b2b4a120868ffc708ed | /coding ninjas/competetive_programming/prerequisites/Total_Sum_on_the_Boundaries_and_Diagonal.cpp | c3c3444791036f6815eb63feed68d0174bb8a0d4 | [] | no_license | Aakashdeep954/DS-ALGO | 557908873d110acfeeb21464a22d58730c555a1c | 2314ef72d6aee9d1d5c578a9ead34e8e715e1991 | refs/heads/main | 2023-03-29T10:42:50.130859 | 2021-04-01T23:36:28 | 2021-04-01T23:36:28 | 332,577,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,040 | cpp | Total_Sum_on_the_Boundaries_and_Diagonal.cpp | #include <iostream>
using namespace std;
#include "solution.h"
int totalSum(int **arr, int n)
{
//Write your code here
int sum=0;
for(int j=0;j<n;j++){
sum = sum+arr[0][j];
}
for(int j=1;j<n;j++){
sum = sum+arr[j][n-1];
}
for(int j=n-2;j>=0;j--){
... |
5c4410dff8b91d08a3064eb6f01819dd3e76a1e1 | d4abbeaa723e5857721d4bf45409903113e007b0 | /64_Manacher.cpp | 14ebcbefa879ecc5da4ff566494df4d1a75a200b | [] | no_license | Wishyou2021/algorithm | 6ff740df09166c3bad97124070fac209497c7f16 | c22c0a052003764ce6d2c8213da22bd5ad9c155a | refs/heads/master | 2023-03-15T21:33:26.345357 | 2019-10-14T14:34:53 | 2019-10-14T14:34:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,810 | cpp | 64_Manacher.cpp | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int maxLcpsLength(string &str) {
if (str.size() == 0) {
return 0;
}
string charArr = "#";
for (int i = 0; i < str.size(); ++i) {
charArr += str[i];
charArr += "#";
}
vector<int> pArr(charA... |
d17e54709af6446c0e90e9a1250cdef171ae2d71 | 2f51cf75094feaae1bbada78e1e00e410163f1cf | /src/system/gen/php/classes/stdclass.cpp | c15fcacc1dbb8d84054513b03010640c33a2714a | [
"Zend-2.0",
"LicenseRef-scancode-unknown-license-reference",
"PHP-3.01"
] | permissive | burhan/hiphop-php | 44d7d7df0539bfeb2ce598ec060367557a42989c | 6e02d7072a02fbaad1856878c2515e35f7e529f0 | refs/heads/master | 2021-01-18T07:53:36.815101 | 2012-10-01T20:08:41 | 2012-10-02T02:37:57 | 6,041,737 | 0 | 0 | NOASSERTION | 2020-02-07T21:30:31 | 2012-10-02T07:51:18 | C++ | UTF-8 | C++ | false | false | 3,740 | cpp | stdclass.cpp | /*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
+---------... |
8b00836950172a21fbc0a99e90d5b5948374e047 | 21f9afd5bdb78afe1eca3a639d0327a05f6e5ca9 | /MainWindow.cpp | 0579ebbe1c862e1d9329e91810da68758a339670 | [
"MIT"
] | permissive | mdombroski/luaeditor | c65d7a356212a4dade1a72b9719a051bfcf371af | 81460d722766b03ae36a3b74ed39aed0b322c855 | refs/heads/master | 2020-12-25T16:47:44.978100 | 2016-09-10T09:05:03 | 2016-09-10T09:05:03 | 67,861,194 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 504 | cpp | MainWindow.cpp | #include "MainWindow.h"
#include "ui_MainWindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect( ui->luaForm, &LuaForm::filename, [this](QString const& msg){ ui->statusbar->showMessage( msg ); } );
}
MainWindow::~MainWindow()
{
delete ui;
}
... |
75b351539706ca533ec3bccf61096f320445bd8e | 315f9ba9220bb4f08346499e9f789ccb310edebc | /modules/tree/test/tree.t.cpp | b952da59d5ff49d0baf4f33b872becb8b0fcd45f | [] | no_license | iikkaolli/data | 8beaf7f8a9c9fd1f2d2160bd4162833798f6dabb | e4e1b2d283efd08f71a396724fa04d261470b4c4 | refs/heads/master | 2020-05-21T08:47:39.772491 | 2016-11-26T10:28:44 | 2016-11-26T10:28:44 | 69,089,114 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109 | cpp | tree.t.cpp |
#include <gtest/gtest.h>
#include "tree.hpp"
TEST(TREE_basic_test, first)
{
ASSERT_TRUE(true);
}
|
44bbafe36a0245e82cb1c91448c764ff0c0fd5a6 | 2d2f20996f59c75a5ed41fad019bc44d1735d0f5 | /impressionist/lineBrush.h | 217bda2fa99fb9ca976690a725c001e4548f20bf | [] | no_license | kbarnes3/CSEP557 | 0bff887657e87846e65a23d767503935dd47fe5f | a644d6460e715b6963fdea81496ef7546c3d9ca5 | refs/heads/master | 2016-09-10T20:08:43.225395 | 2014-10-12T23:52:16 | 2014-10-12T23:52:16 | 24,337,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | lineBrush.h | #pragma once
#include "impBrush.h"
class LineBrush : public ImpBrush
{
public:
LineBrush( ImpressionistDoc* pDoc = NULL, char* name = NULL );
void BrushBegin( const Point source, const Point target );
void BrushMove( const Point source, const Point target );
void BrushEnd( const Point sour... |
aeb05f5161426211ccea0f6afeda69c1b358a278 | 6ae1c70d41409be20390f01fc85839c0f1f1c0ec | /Assignment04-1.cpp | 8b5f6d877643ddbbcd38efc055094d43468d3467 | [
"MIT"
] | permissive | gcald/cpsc240-assembly | d67af61574212b4a03d84229ee222ab333ab82f7 | 0d3be03a0380f636cbf1c83c4ce38a214ed59c64 | refs/heads/master | 2021-07-12T10:38:33.460006 | 2017-10-12T06:37:02 | 2017-10-12T06:37:02 | 105,097,463 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,541 | cpp | Assignment04-1.cpp | ////Project No.4 Problem 01 George Calderon
//
//#include <iostream>
//using std::cin;
//using std::cout;
//using std::endl;
//
//char c;
//int yesCount;
//int noCount;
//int yLoop = 0;
//int nLoop = 0;
//
//void drawStar() {
// cout << '*';
//}
//
//void endLine() {
// cout << endl;
//}
//
//void ... |
97be9aba6c080bd9922d07d5e2036830b44feb4c | 8cc4f1514f89ca2f04cda3aab8818ca47c649862 | /BOJ/그래프/10451_순열사이클.cpp | 0433e4246a65d79ed8e8bfe046344585c8c86e2f | [] | no_license | ehdgus8077/algorithm | 8f3150503dde9031763f1a700fc11728d6cc847c | bd2d9d0c83bea476ca32b4a2619fb591c5c916f1 | refs/heads/master | 2021-01-23T02:16:32.969791 | 2019-04-06T06:12:03 | 2019-04-06T06:12:03 | 102,437,594 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,557 | cpp | 10451_순열사이클.cpp | #include <cstdio>
#include <stack>
#include <vector>
#define Max 1001
using namespace std;
/*
문제 요약: 순열 사이클의 개수를 구한다. 순열을 입력받으면 순서대로 1부터 순열개수까지 간선을 이어 그래프를 만든다.
그래프에는 정점과 간선의 개수가 같고, 모든 정점은 연결이 되있다.
한 그래프에 두개의 순열 사이클이 존재 하지 않는다.
1. 양방향으로 인접 리스트를 만든다. 연결요소의 개수가 사이클의 개수다.
*/
vector<int> adj[Max];
int DF... |
053be575b470963f5bbc74fae9b4d634a3d3d9fc | c41cbb3cfa514e10cf726d9d338a15b340f05d84 | /.adev/rouge/sys/mem_test_system.cpp | 9fad01f802be5f85eb199fe42fb9624d94759517 | [] | no_license | astrellon/GPP | e9c432afbd3d0401ee0fddfed5ffad77a5b26e8e | d3ba5f9339051acbfb507fe489443f454459f27c | refs/heads/master | 2021-01-25T05:28:11.823329 | 2013-07-08T12:53:25 | 2013-07-08T12:53:25 | 1,505,792 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,467 | cpp | mem_test_system.cpp | #include "mem_test_system.h"
#include <gfx/gfx_engine.h>
#include <gfx/gfx_text_list.h>
#include <gfx/gfx_asset.h>
#include <gfx/gfx_text_field2.h>
using namespace am::gfx;
#include <game/game.h>
#include <game/engine.h>
#include <game/tile_type.h>
namespace am {
namespace sys {
MemoryTestSystem *MemoryTestSystem:... |
6234d97e3b9af8bac254b062124ba676d4915bfd | cf90c92f942851c8ded963a03e6b4066e4c2968d | /砝码组合.cpp | 8c5a0f2f5586309d3818a69434b4fb0d60fa1ba5 | [] | no_license | YiMoFan/lanqiaobeixunlian | 90cf4c8a0521d13908d88bf479c018d42dbc097a | 47c5b009757043c74f931be606094e3cb8742924 | refs/heads/master | 2020-04-01T21:05:33.856522 | 2018-10-18T14:24:47 | 2018-10-18T14:24:47 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,685 | cpp | 砝码组合.cpp | /*题目内容:
用天平称重时,我们希望用尽可能少的砝码组合称出尽可能多的重量。
如果只有5个砝码,重量分别是1,3,9,27,81。
则它们可以组合称出1到121之间任意整数重量(砝码允许放在左右两个盘中)。
本题目要求编程实现:对用户输入的重量(1~121),
给出砝码组合方案(用加减式表示,减代表砝码放在物品盘)。
例如:
输入:
5
输出:
9-3-1
输入:
19
输出:
27-9+1
要求程序输出的组合总是大数在前小数在后。
输入描述
用户输入的重量(1~121),
输出描述
给出砝码组合方案(用加减式表示,减代表砝码放在物品盘)。
输入样例
19
输出样例
... |
627554e1523ccba359582567e17cf71c71325400 | 0dfeeb0c5cac100e529eea9858ba17ee147e18e7 | /SzaboCpp/geom.h | 9e7450b80c6e40f481d27e727cdfaf83912a9a88 | [] | no_license | xyttyxy/TheoChem | 62935c7ece6bbd55f342f82437d7440d9f493979 | dbaf40c7383489936aeeb089fffda7e869860c85 | refs/heads/master | 2020-07-17T06:14:56.164329 | 2019-09-04T03:46:51 | 2019-09-04T03:46:51 | 205,964,501 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,809 | h | geom.h | #pragma once
#include "pch.h"
class Element {
public:
Element();
Element(std::string symbol, unsigned int elemIndex, double mass, unsigned int valence);
//Modifiers
void setSymbol(std::string symbol) { this->symbol_ = symbol; }
void setElemIndex(unsigned int elemIndex) { this->elemIndex_ = elemIndex; }
void setM... |
45b42a71c4d59d3744ed543cdad5268c6bdeaa52 | 1249fa760c5da0c7fca714380cb0f0671d637718 | /beowolf/graphics/QuadTree.cpp | 5b423b93812891970b36f01787f85b4895248aa2 | [
"MIT"
] | permissive | naturalnumber/Beowolf-Engine | 1b58883aaed5eec45c01512398d94aa7109cc777 | b7ad1ed18ecb5ce7ca4e43d46ee96ed615300e85 | refs/heads/master | 2022-04-15T13:09:24.527328 | 2020-04-15T21:02:12 | 2020-04-15T21:02:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,487 | cpp | QuadTree.cpp | #include "QuadTree.h"
#include "W_ResourceLoader.h"
namespace wolf
{
float clamp(float val, float min, float max)
{
if (val < min)
return min;
else if (val > max)
return max;
return val;
}
QuadTree::QuadTree(float xpos, float zpos, float width, float depth)
{
m_xpos = xpos;
m_zpos = zpos;
m_wid... |
0bef1c2f995c7b7900dc585a8fb15e842ac49432 | ff0a93b1b3c7a26b19c184fd83da28f14c596212 | /tst_struct.cpp | bdeddd172846f203c1bc84a699df0175dad6e775 | [] | no_license | Snowbuzz/new_work | 0d29d2ebb8380d653c3f2069ca7c679f4d3d5448 | c333e6c95e27c528de45a42bbca3d68b688b443a | refs/heads/master | 2020-06-05T04:33:22.574180 | 2019-06-17T09:21:40 | 2019-06-17T09:21:40 | 192,314,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,381 | cpp | tst_struct.cpp |
/**
* @file test_struct.c
* @brief Linux (3.18.x+) Тест списка.
* @author Logachev Dmitriy
*/
#include <iostream>
#include <string>
#include <fstream>
#include <string.h>
using namespace std;
struct Test
{
int a;
double b;
string c;
};
struct Node { char word[40]; // область данных
int ... |
142371520c92ee8186b130efe6a4d90be9726905 | 7c34865263300a0935cfb1c3bbc56ff1c1b0cafe | /bsdiffDemo/src/main/cpp/native-lib.cpp | bab36d1c932e193c5cfbbba78bbd9290f4791ba5 | [] | no_license | wds1204/SupportComment | 8174ba1378ad0ba513aaa2a9e56f018c31bec919 | 615919aa47c9b5da85cf9e133038a8e934cba612 | refs/heads/master | 2021-06-24T10:33:53.226844 | 2021-04-23T16:54:28 | 2021-04-23T16:54:28 | 214,370,119 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 3,991 | cpp | native-lib.cpp | #include <jni.h>
#include <string>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
//#include <cutils/log.h>
#include <utils/Looper.h>
#include <utils/Timers.h>
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
#include <inttypes.... |
7c31b290544663b0608a234b90c4db72e78ee0c2 | 1949f9885b5ff15063a60d86c010cd6554002c72 | /Common/include/Vector2.hh | ed6bf860854c0e2a9a35903f8f88a3d74aef3143 | [] | no_license | mrrinot/GhostRunner | e0bfa79d55c9797cd31b1d2d3399d38526e81228 | 331cb8b6b6e150b397fe2830a4c9a8cefcd97bbe | refs/heads/master | 2021-01-09T06:14:11.615464 | 2017-02-04T19:39:38 | 2017-02-04T19:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,639 | hh | Vector2.hh | #pragma once
#include <string>
#include <array>
#include <type_traits>
namespace Vector
{
template<typename T>
class Vector2
{
static_assert(std::is_arithmetic<T>::value, "T must be an arithmetic type");
private:
std::array<T, 2> _values;
public:
Vector2<T>() : _values({ 0, 0 }) {}
Vector... |
811f3be96e8872d797f627610f5a477d5217b3f3 | 427f67312fb6af89643e15d88709ab09b489eeff | /GameEngine/GameEngine/Engine/Camera/Camera.cpp | 789bae8f323948b95faecdc0f38cd9568e4dc117 | [] | no_license | SunHorizon/GameEngine | 7547f1682c16382f7d2a1a9520d2603cb382cbb9 | 5362ea18f5878350203f94734100fe2d08e955ee | refs/heads/master | 2020-09-09T01:44:19.571372 | 2019-12-02T19:41:11 | 2019-12-02T19:41:11 | 221,305,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,320 | cpp | Camera.cpp | #include "Camera.h"
#include "../Core/CoreEngine.h"
Camera::Camera() : position(glm::vec3()), perspective(glm::mat4()), orthographic(glm::mat4()), fieldOfView(0), yaw(0.0), pitch(0.0), fowardVector(glm::vec3()), rightVector(glm::vec3()), upVector(glm::vec3()), worldUp(glm::vec3()), lights(std::vector<LightSource*>())
... |
289966829ae781b00ec69a139fa81328aa3f350f | 3880ed9e62d9849e811b5de2d29522ddf0f8ad2c | /Codechef_prepare/codeforces/1054a.cpp | 8b0b98cdf16661da029a4d599ae005628826d2cf | [] | no_license | Krythz43/CP-Archieve | 936b028f9f0f90e555dc7c19c11d3939f7532b2f | 36b5f7449bbd93135f4f09b7564b8ada94ef99e6 | refs/heads/master | 2020-08-31T18:42:47.954906 | 2020-05-12T05:18:00 | 2020-05-12T05:18:00 | 218,757,326 | 0 | 0 | null | 2020-05-12T05:18:02 | 2019-10-31T12:08:54 | C++ | UTF-8 | C++ | false | false | 1,224 | cpp | 1054a.cpp | #include <bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define rep(i,n,z) for(int i=z;i<n;i++)
#define rrep(i,z) for(int i=z;i>=0;i--)
#define lli long long int
#define nl cout<<endl
#define vi vector<int>
#define vlli vector<long long int>
#define umap u... |
63375b5a8654070360d7a8beb159379032198e55 | 7239fcec5aabf75345baff05ab5208ab43d8e373 | /Day26/Worth Matrix.cpp | c4df3195222b7baede6b232261f14bf640efb0d4 | [] | no_license | 123pk/100DaysofCompetitiveProgramming | 79b0eefba275a82ff0ca4d583b3384c62a0efb05 | ef0d60f667cc3046c7ae995500d3c3c023c650c2 | refs/heads/main | 2023-06-01T10:31:03.673143 | 2021-06-19T17:13:04 | 2021-06-19T17:13:04 | 346,765,914 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | Worth Matrix.cpp | /*
Platform :- Codechef
Contest :- Codechef April Long challenge
Problem :- Worth Matrix
SOLUTION WILL BE ADDED ONCE CONTEST IS OVER
*/
|
818ed099823a49fc48e20dfad8067572a4cb2888 | ebd582b7fb493ccc2af59a5c0b5f0e98b2b5e8c3 | /Chapter07/c07e08.cpp | 7f0c81f85c3b618a2c881785e34d18e680f08560 | [] | no_license | rarog2018/C-Primer_Lippman | 97957e5c7f2d969f1534dd0992dd4c0e9d072700 | 3c3f5084aa744ef971e3bfa4fdfc639c5eea34d5 | refs/heads/master | 2021-06-28T17:45:34.549300 | 2021-01-05T08:15:27 | 2021-01-05T08:15:27 | 206,675,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 457 | cpp | c07e08.cpp | #include <iostream>
#include "c07Sales_data.h"
using namespace std;
// in read() the reference to Sales_data object is plain, because the function
// changes the values of the object's members
// in print() the reference to Sales_data object is const because the function
// does not change the object's data (and shoul... |
3bcb14be6b236248b6bedd727d6718970ab5d2e5 | c078664134d845a71371e94bb81186584481acfe | /For/main.cpp | 1e5c586e8fb46116207dbe8b969f54233af5b275 | [] | no_license | RamonovaInna/lab3 | 4f6249e61e86d4548b5827a54eb84c5c47e9c78f | 6327f4eb6aae3df6c5a7c1cd4b3841c18854717e | refs/heads/master | 2023-03-24T12:57:44.576702 | 2021-03-16T05:41:28 | 2021-03-16T05:41:28 | 348,227,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | cpp | main.cpp | #include <iostream>
#include <locale>
#include <cmath>
#include "func.h"
using namespace std;
using namespace forLoop;
int main()
{
int k;
double n;
while (true)
{
cout << "1 forsumm(int n) \n";
cout << "2 forsumm2(double eps)\n";
cout << "3 forprint(int n ,int k) \n";
cout << "4 forfindFirstElement(dou... |
704540d4644aaca2c24e2694b46b23d94689d093 | 9a5db9951432056bb5cd4cf3c32362a4e17008b7 | /FacesCapture/branches/ShangHai/RemoteImaging/FaceProcessingWrapper/FaceVerifier.cpp | 6ad73a65f76e59ce7a5c40a3b669d0463e005499 | [] | no_license | miaozhendaoren/appcollection | 65b0ede264e74e60b68ca74cf70fb24222543278 | f8b85af93f787fa897af90e8361569a36ff65d35 | refs/heads/master | 2021-05-30T19:27:21.142158 | 2011-06-27T03:49:22 | 2011-06-27T03:49:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | FaceVerifier.cpp | #pragma once
#include <stdafx.h>
#include "../../FaceProcessing/FaceProcessing/FaceVarify.h"
using namespace System;
using namespace System::Runtime::InteropServices;
namespace FaceProcessingWrapper
{
public ref class FaceVerifier
{
public:
FaceVerifier()
{
pVerifier = new Damany::Imaging::F... |
3bb127ddafad861ecb73a0688d6cd5a610fbad0a | 9091fa04f4e57460b34b852d968da43b0a3de59c | /CSCI 1200/HW/hw3/backup.h | db46864331c1a5258381acc2eb99d39e800ad66c | [] | no_license | YunheWang0813/RPI-Repository | b09af436e295c41b423106447ce268b0fb79721b | c0f279474ea5db91eab0c438c57ae0dc198c5609 | refs/heads/master | 2020-03-31T23:03:14.761451 | 2019-02-08T00:15:47 | 2019-02-08T00:15:47 | 152,641,110 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 412 | h | backup.h | #ifndef tetris
#define tetris
#include<iostream>
#include<string>
#include<vector>
using namespace std;
class Tetris{
public:
Tetris(int w);
int get_width() const {return width;}
void set_width(int w) {width=w;}
void add_piece(char mino, int rot, int place);
int get_max_height() const;
int count_squares() ... |
922384e97bb8e1c97f76b9d79073fb9e019ca56e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/httpd/gumtree/httpd_old_hunk_2794.cpp | 64fb5122841189f39b53393dc2c0f3b06facb00b | [] | 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 | 572 | cpp | httpd_old_hunk_2794.cpp | && !strcmp(l->binddn, binddn)))
&& ((!l->bindpw && !bindpw) || (l->bindpw && bindpw
&& !strcmp(l->bindpw, bindpw)))
&& (l->deref == deref) && (l->secure == secureflag)
&& !compare_client_certs(d... |
8a3db656ca3a8f6f267faad0d492ad24959e59fe | 237dca24c3da8e53f41e009a244d62d144de7afe | /DirectXGame/Sprite.h | 09a30763c7a9fab8a14af9f0ebda62eb5cfe8d4f | [] | no_license | monokeshi/DirectXGame | c341129eba99214ba91d5dc9689b13101afc0d26 | d3594e03f51e455d6ee0c50f085d2a08e8b5bd65 | refs/heads/master | 2023-08-16T22:11:57.522632 | 2021-09-24T03:03:26 | 2021-09-24T03:03:26 | 382,003,783 | 0 | 1 | null | 2021-09-24T03:03:27 | 2021-07-01T11:02:46 | C++ | SHIFT_JIS | C++ | false | false | 3,588 | h | Sprite.h | #pragma once
#include <d3d12.h>
#include <DirectXMath.h>
#include <wrl.h>
#include <vector>
class DirectX12Wrapper;
class Render;
class Texture;
class Sprite
{
private:
struct Vertex
{
DirectX::XMFLOAT3 pos; // xyz座標
DirectX::XMFLOAT2 uv; // uv座標
};
struct ConstBufferData
{
... |
951b7d23d4b4e7dd2722dcf9c4a9505c10b601eb | 33b567f6828bbb06c22a6fdf903448bbe3b78a4f | /opencascade/TDocStd.hxx | 4febc7c68b0bb97bb77ffa7457f419acff2f9f53 | [
"Apache-2.0"
] | permissive | CadQuery/OCP | fbee9663df7ae2c948af66a650808079575112b5 | b5cb181491c9900a40de86368006c73f169c0340 | refs/heads/master | 2023-07-10T18:35:44.225848 | 2023-06-12T18:09:07 | 2023-06-12T18:09:07 | 228,692,262 | 64 | 28 | Apache-2.0 | 2023-09-11T12:40:09 | 2019-12-17T20:02:11 | C++ | UTF-8 | C++ | false | false | 2,386 | hxx | TDocStd.hxx | // Created on: 1999-04-07
// Created by: Denis PASCAL
// Copyright (c) 1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser... |
3dcbcf8fa7f13192c1b1dc829bedb266080f4667 | 88b1595c7e402dbea17ecf7e564a6223728b73d3 | /Binary Search Tree/Insert&Delete.cpp | 748c7c6ecc5a0ab720012c9b34842bdfa995e5bf | [] | no_license | DefinitelyNotAnmol/Tree | 3f7d4326ceb3a2d8476e349cb019f68ebd0e2b68 | 1cf978feb7136319de416526e453f642ac2ae290 | refs/heads/master | 2020-04-12T10:34:46.116584 | 2019-08-10T11:10:28 | 2019-08-10T11:10:28 | 162,434,200 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,979 | cpp | Insert&Delete.cpp | #include <iostream>
#include <queue>
using namespace std;
class TreeNode {
public:
int data;
TreeNode* left;
TreeNode* right;
TreeNode(int d) {
data = d;
left = NULL;
right = NULL;
}
};
TreeNode* insertBST(TreeNode* root, int number);
TreeNode* deleteFromBst(TreeNode* root,... |
442416b6d3721cc2ffc322a5a6dee5a5dd509f6b | 4c325c54bc42ac3e1669b51a883730abc1d0a9f6 | /BitInputStream.cpp | ed8f4df2095eed55705b81b44b36dc4fe501ba8d | [] | no_license | simarchhabra/huffmancompression | d2011c765d158573e51234884e142cd1c9bde64a | 9b382f55043ab83a33d4e6956dc0ac2b4db4db65 | refs/heads/master | 2021-05-12T18:15:08.208527 | 2018-01-11T06:57:07 | 2018-01-11T06:57:07 | 117,056,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 397 | cpp | BitInputStream.cpp | /*
**Author: Simar Chhabra
**File defines methods of BitInputStream
**/
#include <iostream>
#include "BitInputStream.h"
#define BYTE 8
void BitInputStream::fill()
{
buf = in.get();
nbits = 1;
}
int BitInputStream::readBit() {
if (nbits++ == BYTE)
{
fill();
}
//extract correct ... |
ef7bb977e8a8eb67ca921dd2028bceceab50fba5 | b3e525a3c48800303019adac8f9079109c88004e | /nic/sysmgr/src/timer_watcher.cpp | ce6dcad0ca68293dd2bd6f7767217ea27f79fc26 | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 705 | cpp | timer_watcher.cpp | #include "timer_watcher.hpp"
#include <memory>
#include <ev++.h>
std::shared_ptr<TimerWatcher> TimerWatcher::create(ev_tstamp after,
ev_tstamp repeat, TimerReactorPtr reactor)
{
return std::make_shared<TimerWatcher>(after, repeat, reactor);
}
TimerWatcher::TimerWatcher(ev_tstamp after, ev_tstamp repeat,
... |
ba60cc25b686fd264f32588ef61e9ccd9e8ee162 | 96586f57e0414200c3fb86435405c227477e7763 | /src/Cpu.cpp | fa74796e81a30bca5d1d1d403ec12bba9cba7e0c | [] | no_license | zyc9012/NesEmu | 6b4216dbbbdb097d6d7618a7687a8eb86914ffa2 | 53b51406f70de7b1a9717a29a41aad4fc7a772dc | refs/heads/master | 2023-05-25T08:18:57.356774 | 2023-04-08T07:13:45 | 2023-05-13T02:36:34 | 51,518,145 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,577 | cpp | Cpu.cpp | #include "Cpu.h"
#include "Memory.h"
#include "Console.h"
#include "StateFile.h"
stepInfo fakeStepInfo;
Cpu::Cpu(Console* console)
{
memory = new CpuMemory(console);
createTable();
Reset();
}
Cpu::~Cpu()
{
}
// instructionModes indicates the addressing mode for each instruction
uint8_t in... |
d62084e2af9d890740ed1e0226a5b42d4c587274 | 29b81bdc013d76b057a2ba12e912d6d4c5b033ef | /boost/include/boost/mpi/collectives/scatter.hpp | cf8ccd024fa2b2fe64a15865b405f19ef76d8876 | [] | no_license | GSIL-Monitor/third_dependences | 864d2ad73955ffe0ce4912966a4f0d1c60ebd960 | 888ebf538db072a92d444a9e5aaa5e18b0f11083 | refs/heads/master | 2020-04-17T07:32:49.546337 | 2019-01-18T08:47:28 | 2019-01-18T08:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | scatter.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:e0bf20d272244265a810f528cfbf6c59ad58ea98a1c137fba69f07ef39a865e9
size 5398
|
0964b5ad7d43812d7e19d6f255d7fa0a3cdd4186 | 27e3f57515aa2f25e69ed23ee61aa45127e45d7e | /XOR linked list.cpp | 77ad94ef41d1387cb10ea2d890df4783d47057fa | [] | no_license | RitikJainRJ/DailyCodingProblem-Practice | b279b8ec78234f888d79dd03f5845db8421bb469 | 33605c2c6caf50f693ed7073ac3a8e523d66465d | refs/heads/master | 2021-08-07T02:38:22.273189 | 2020-10-17T04:47:57 | 2020-10-17T04:47:57 | 227,582,759 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,492 | cpp | XOR linked list.cpp | /*
An XOR linked list is a more memory efficient doubly linked list.
Instead of each node holding next and prev fields, it holds a field named both,
which is an XOR of the next node and the previous node. Implement an XOR linked list;
it has an add(element) which adds the element to the end, and a get(index) which retu... |
36802e55b1bacb96011b27dae511bf103df00800 | 37d69be23189772218de50be1261c782331931c4 | /PVZ/DB_structure_TTBB.h | 372d3bf07ea504d47808d3338a9dcc30ae6144fe | [] | no_license | Ded-Mozila/KH-03 | 0ab2c7f04b417f94a740b6cd6978d066daded8e3 | f39c04dec1c4a78e1050ca8e0c211eb4e4134b22 | refs/heads/master | 2020-06-06T09:51:05.925021 | 2013-08-21T07:53:33 | 2013-08-21T07:53:33 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,882 | h | DB_structure_TTBB.h | #pragma once
#include <list>
#include "General_data.h"
using namespace std;
//////////////////////////////////////////////////////////////////////////
struct Wind_Base
{
bool information; // Идентификатор существования данных
int number; // Отличительные цыфры, указывающие, что далее передаются данные ... |
b3566c62d226ca3f1563deebaa76b24289e9edde | ec21865762012d4899f0e5620b64fc65ec7c19d3 | /config.h | 78012f3c88fa3a90503e97a8af620cdc72133244 | [] | no_license | xuqiangm/Crawler | 94196f75b2417155ec9eb9e5af98ee58dd0c68d1 | 20165f0d1c515d73f52c7f7ea4e5b9142986a739 | refs/heads/master | 2021-01-12T10:08:21.778799 | 2016-12-15T15:28:44 | 2016-12-15T15:28:44 | 76,369,553 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | h | config.h | #ifndef _CONFIG_
#define _CONFIG_
#include <string>
#include <map>
class ConfigManager
{
public:
static ConfigManager& getInstance();
int loadConfigFile();
int findOption(std::string option, std::string& value);
private:
ConfigManager(){}
~ConfigManager(){}
static std::map<std::string,std::string> m_options... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.