text string | size int64 | token_count int64 |
|---|---|---|
/*
* Copyright (c) 2013 Opposite Renderer
* For the full copyright and license information, please view the LICENSE.txt
* file that was distributed with this source code.
*/
#include "Application.hxx"
#include "MainWindowBase.hxx"
#include "renderer/OptixRenderer.h"
#include <QString>
#include <QMessageBox>
#inclu... | 12,165 | 3,824 |
#include "processorresolverbase.h"
using namespace network::messages::server;
namespace processors
{
}
| 105 | 31 |
/*=========================================================================
*
* Copyright RTK Consortium
*
* 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.apa... | 6,513 | 1,908 |
#include <Arduino.h>
#ifdef ESP8266
#include <ESP8266WiFi.h>
#endif
#include "settings.h" // Set your GraphQL keys and hostnames here! (+WiFi credentials)
#include "graphql-esp.h"
GraphqlEsp gq; // GraphQL Websocket handler
bool shouldSetOnline = false; // Global to notify loop() to mutate online=true
const char *... | 3,945 | 1,375 |
// Copyright 2013 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 "content/renderer/media/android/renderer_media_player_manager.h"
#include "base/command_line.h"
#include "content/common/media/media_player_mess... | 12,016 | 3,694 |
#ifndef Stimulus_HPP
#define Stimulus_HPP
#include <algorithm>
#include <string>
#include <iostream>
#include <vector>
#include <random>
#include <fstream>
#include "../GlobalFunctions.hpp"
#include "../NeuronPopSample.hpp"
/* class Stimulus is a virtual base class for injecting a determined
* current i... | 1,350 | 421 |
/*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 5,177 | 1,684 |
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int W, Q;
while (cin >> W >> Q && !(W == 0 && Q == 0)) {
vector<pair<int,int> > cats(Q);
vector<bool> used(W, false);
for (int i = 0; i < Q; i++) {
char sw;
int id;
cin >> sw >> id;
if (sw == 's') {
... | 1,058 | 399 |
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... | 3,235 | 1,222 |
#include "Meta_Maps.h"
#include <glbinding/gl/enum.h>
using namespace gl;
namespace glbinding { namespace aux
{
const std::multimap<GLenum, std::string> Meta_StringsByEnum =
{
{ GLenum::GL_1PASS_EXT, "GL_1PASS_EXT" },
{ GLenum::GL_1PASS_SGIS, "GL_1PASS_SGIS" },
{ GLenum::GL_2_BYTES, "GL_2_BYTES" },
... | 336,513 | 175,899 |
#ifndef _SCTL_MORTON_
#define _SCTL_MORTON_
#include SCTL_INCLUDE(common.hpp)
#include <cstdint>
#ifndef SCTL_MAX_DEPTH
#define SCTL_MAX_DEPTH 15
#endif
namespace SCTL_NAMESPACE {
template <class ValueType> class Vector;
template <Integer DIM = 3> class Morton {
public:
#if SCTL_MAX_DEPTH < 7
typedef uint8_t... | 5,861 | 2,542 |
#include <windows.h>
#include "DllLoader.h"
#include "Memory.h"
typedef struct
{
PIMAGE_NT_HEADERS headers;
unsigned char *codeBase;
HMODULE *modules;
int numModules;
int initialized;
} MEMORYMODULE, *PMEMORYMODULE;
#define IMAGE_SIZEOF_BASE_RELOCATION 8
typedef BOOL ( WINAPI *DllEntryProc )( HINSTANCE ... | 9,814 | 4,123 |
#include "formatter_test.h"
static const int32_t veryveryveryveryveryverylong1 = 100;
static const int32_t veryveryveryveryveryverylong2 = 100;
static const int32_t veryveryveryveryveryverylong3 = 100;
static const int32_t veryveryveryveryveryverylong4 = 100;
// before class
class tc final { // on class
public:
... | 3,857 | 1,762 |
//---------------------------------------------------------------------------//
// //
// PDFR Parser implementation file //
// //
... | 24,173 | 7,205 |
// Copyright 2013 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 <string>
#include "base/bind.h"
#include "base/callback.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/memory/s... | 4,154 | 1,316 |
/*
* @Author: tusikalanse
* @Date: 2021-07-08 12:40:28
* @LastEditTime: 2021-07-08 12:43:12
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /undefined/root/acm-icpc/ProjectEuler/30.cpp
*/
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
LL gcd(LL a, LL... | 837 | 374 |
// $Id$
//
// Copyright (C) 2015 Paolo Tosco
//
// Copyright (C) 2003-2010 Greg Landrum and Rational Discovery LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of... | 9,786 | 3,013 |
#include <iostream>
#include <fstream>
#include <sstream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <vector>
#include <glm.hpp>
#include <gtc/matrix_transform.hpp>
#include <gtc/matrix_access.hpp>
class ShaderBank
{
public:
ShaderBank(std::string vertexFile, std::string fragmentFile)
{
vertexShaderId = ... | 3,786 | 1,466 |
// Copyright (c) YugaByte, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | 15,169 | 4,811 |
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <iostream>
#include <iterator>
#include <utility>
#include <vector>
using std::begin;
using std::end;
using std::size_t;
std::vector<double> solve_euler(double timestep, size_t size) {
std::vector<double> result;
double current = 1.0;
for (size_... | 1,604 | 520 |
#include <math.h>
#include <assert.h>
#include <memory>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <string>
#include <chrono>
#include <algorithm>
#include <limits>
#include "../../../data_structures/nep_model_enum_types.hpp"
#include "../../../data_structures/decision_maker_behaviour_struct_t... | 1,014 | 366 |
#include "snowman.hpp"
#include <iostream>
namespace ariel
{
const int options = 4;
const int required_seed_length = 8;
std::array<std::string, options> hats = {
" _===_",
" ___\n .....",
" _\n /_\\",
" ___ \n (_*_)"
};
std::array<std::string, options> noses = {",", ".", "_", " "};
std::array<s... | 2,687 | 1,028 |
// Copyright 2016 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 "third_party/blink/renderer/core/html/canvas/canvas_async_blob_creator.h"
#include "components/ukm/test_ukm_recorder.h"
#include "testing/gmock/... | 14,049 | 4,314 |
#include "rawdata.hpp"
/*
Copyright 2020 Robert S. Christensen
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 ... | 5,349 | 2,032 |
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 5,570 | 1,940 |
#include "commands.h"
#include <maya/MGlobal.h>
#include <maya/MObject.h>
#include <maya/MPlugArray.h>
#include <maya/MDGModifier.h>
#include <maya/MSyntax.h>
#include <maya/MPlug.h>
#include <maya/MSelectionList.h>
#include <maya/MDagPath.h>
#include <maya/MArgList.h>
#include <maya/MArgParser.h>
MeshMatchCommand:... | 8,948 | 2,839 |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS ... | 5,615 | 2,084 |
//===- sanstats.cpp - Sanitizer statistics dumper -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 4,695 | 1,575 |
//
// OCCAM
//
// Copyright (c) 2011-2020, SRI International
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, ... | 11,943 | 3,628 |
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 2,873 | 1,197 |
// Copyright (c) 2012 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 "base/metrics/bucket_ranges.h"
#include <cmath>
#include "base/logging.h"
#include "base/metrics/crc32.h"
namespace base {
BucketRanges::... | 1,458 | 515 |
// Copyright (C) 2021 Samsung Electronics Co., Ltd.
// See the LICENSE file in the project root for more information.
#include <catch2/catch.hpp>
#include <string>
#include "string_view.h"
#include "utils/escaped_string.h"
#include "compile_test.h"
using namespace netcoredbg;
using string_view = Utility::string_view;... | 1,610 | 635 |
/*
Copyright <SWGEmu>
See file COPYING for copying conditions.
*/
#include "SkillModManager.h"
#include "server/zone/objects/creature/CreatureObject.h"
#include "server/zone/objects/player/PlayerObject.h"
#include "server/zone/objects/tangible/TangibleObject.h"
#include "server/zone/objects/tangible/weapon/Weapo... | 8,973 | 3,660 |
#ifdef PEGASUS_OS_FREEBSD
#ifndef __UNIX_AGPVIDEOCONTROLLER_PRIVATE_H
#define __UNIX_AGPVIDEOCONTROLLER_PRIVATE_H
#endif
#endif
| 134 | 74 |
// -*- mode: c++; indent-tabs-mode: nil; -*-
//
// Copyright (c) 2009-2012 Illumina, Inc.
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limit... | 17,043 | 6,096 |
#include "GeoCommandMakeFillHole.h"
#include "geometry/geometrySet.h"
#include "geometry/geometryData.h"
#include <TopExp.hxx>
#include <TopoDS.hxx>
#include <TopoDS_TShape.hxx>
#include <TopoDS_Shape.hxx>
#include <TopoDS_Face.hxx>
#include <TopExp_Explorer.hxx>
#include <QDebug>
#include <BRepAlgoAPI_Defea... | 5,486 | 2,175 |
/********************************************************************************
* HOMMEXX 1.0: Copyright of Sandia Corporation
* This software is released under the BSD license
* See the file 'COPYRIGHT' in the HOMMEXX/src/share/cxx directory
***********************************************************************... | 16,042 | 5,717 |
#include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <limits>
#include <stdint.h>
// UnityEngine.Networking.CertificateHandler
struct CertificateHandler_tDA66C86D1302CE4266DBB078361F7A363C7B005E;
// System.Void
struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADA... | 94,219 | 49,652 |
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 4,674 | 1,838 |
/*
* PluginInstall.cpp
*
* Created on: Feb 1, 2018
* Author: gmb
*/
#include "TmxControl.h"
#include <boost/filesystem.hpp>
#include <libgen.h>
#include <System.h>
#include <sys/stat.h>
#ifndef PLUGINDIRECTORY_ENV
#define PLUGINDIRECTORY_ENV "TMX_PLUGIN_DIRECTORY"
#endif
#define INSTPLUGIN_DELETE_STMT "\... | 8,111 | 3,117 |
// Copyright (c) 2015 Object Computing, Inc.
// All rights reserved.
// See the file license.txt for licensing information.
#include <Steps/StepPch.hpp>
#include "MockMessageConsumer.hpp"
#include <Steps/StepFactory.hpp>
using namespace HighQueue;
using namespace Steps;
namespace
{
StepFactory::Registrar<MockMess... | 2,080 | 611 |
/*
* Copyright 2020 Hewlett Packard Enterprise Development LP
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the ... | 37,347 | 14,363 |
#include <iostream>
#include "tabbcalendario.h"
using namespace std;
int
main(void)
{
TABBCalendario a;
TCalendario c1(1, 1,2000,(char *)"fecha"), c2(1, 1,2000,(char *)"fecha1"), c3(3, 3,2000,(char *)"fecha");
a.Insertar(c1);
a.Insertar(c2);
a.Insertar(c3);
cout<<"Inorden="<<a.Inorden()... | 435 | 209 |
#include <iostream>
#include "stack"
#include "string"
#include "vector"
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode(int x) : val(x), next(NULL) {}
};
int kthToLast(ListNode *head, int k);
int main() {
ListNode *a = new ListNode(1);
ListNode *b = new ListNode(2);
... | 934 | 442 |
// runtime code
struct VirtualContext {
using virtual_context_id_t = int64_t;
bool is_migrateable = false;
virtual_context_id_t get_virtual_context_id();
};
struct VirtualContextMessage : vt::Message {
};
// user code
struct MyContext : VirtualContext {
int my_data;
MyContext() = default;
};
struct MyM... | 1,341 | 484 |
#ifndef __FASTJET_TOOLS_PRUNER_HH__
#define __FASTJET_TOOLS_PRUNER_HH__
//STARTHEADER
// $Id: Pruner.hh 2616 2011-09-30 18:03:40Z salam $
//
// Copyright (c) 2005-2011, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
//
//----------------------------------------------------------------------
// This file is part of ... | 11,659 | 3,507 |
#include <iostream>
#include <thread>
#include <string>
#include <rapidjson/document.h>
#include "QueueManager.h"
#include "library.h"
bool isExitNotif (const Document &message) {
return std::strcmp(message["method"].GetString(), "exit") == 0;
}
std::thread launchStdinLoop () {
std::cin.tie(nullptr);
r... | 1,202 | 364 |
/*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 1,236 | 438 |
/*
* Copyright (C) 2019-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "mock_driver_handle.h"
namespace L0 {
namespace ult {
using MockDriverHandle = Mock<L0::ult::DriverHandle>;
using namespace testing;
using ::testing::Invoke;
using ::testing::Return;
Mock<DriverHandle>::Mock() {
E... | 3,531 | 1,221 |
#include<stdio.h>
#include<string.h>
char a[1010],b[1010],c[1010];
int main(){
int i,n,j,cnt=0,ch=1,l;
scanf("%d %d",&l,&n);
for(i=0;i<l;i++){
scanf(" %c",&a[i]);
}
if(n==1){
for(j==0;j<l;j++){
printf("%c",a[j]);
}
return 0;
}
for(i=0;i<n-1;i++){
cnt=0;
for(j=0;j<l;j++){
scanf(" %c",&b[j]);
}
... | 638 | 453 |
/*------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 The Khronos Group Inc.
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
* Copyright (c) 2016 The Android Open Source Project
*
* Licensed under the Apache Lic... | 11,701 | 5,232 |
#include <Common/Vertex.hpp>
namespace Common
{
std::size_t VertexHelper::GetNumberOfFloats(VertexFormat format)
{
std::size_t size = 0;
if (static_cast<bool>(format & VertexFormat::Position3))
{
size += 3;
}
if (static_cast<bool>(format & VertexFormat::Normal3))
{
... | 892 | 316 |
/*=========================================================================
Program: Visualization Toolkit
Module: $RCSfile$
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distrib... | 125,501 | 43,412 |
// -------------------------------------------------------------------------
// This file is part of ZeroBugs, Copyright (c) 2010 Cristian L. Vlasceanu
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
// ------... | 785 | 283 |
/*
* Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include ... | 5,209 | 2,174 |
/*
* Copyright (C) 2018 ETH Zurich and University of Bologna
*
* 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... | 7,100 | 2,883 |
#include <unistd.h>
#include <cctype>
#include <sstream>
#include <string>
#include <vector>
#include <iomanip>
#include "linux_parser.h"
#include "process.h"
using std::string;
using std::to_string;
using std::vector;
int Process::Pid() const{
return this->pid_;
}
float Process::CpuUtilization() const {
re... | 894 | 312 |
#include <windows.h>
#include <tlhelp32.h>
#include "procenum.h"
#include "dprint.h"
void FilteredEnumProcesses(
ProcessFilterFunction filter,
DWORD* pids,
DWORD pids_length,
DWORD* ret_length
)
{
HANDLE hSnap=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
PROCESSENTRY32 ppe={0};
HANDLE resul... | 1,045 | 429 |
// Copyright 2017 The Abseil Authors.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... | 74,683 | 31,836 |
// license:GPL-2.0+
// copyright-holders:Miodrag Milanovic,Karl-Ludwig Deisenhofer
/***************************************************************************************************
DEC Rainbow 100
Driver-in-progress by R. Belmont and Miodrag Milanovic.
Keyboard & GDC fixes by Cracyc (June - Nov. 2016), Baud rate ge... | 130,268 | 60,044 |
#include <algorithm>
#include <vector>
#include <3ds.h>
#include "vec.h"
int main(int argc, char* argv[]) {
gfxInitDefault();
consoleInit(GFX_TOP, NULL);
gfxSetDoubleBuffering(GFX_BOTTOM, false);
u8* framebuffer = gfxGetFramebuffer(GFX_BOTTOM, GFX_LEFT, NULL, NULL);
// you thought it would be 320... | 1,351 | 574 |
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 23,580 | 8,209 |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/ops/GrQuadPerEdgeAA.h"
#include "include/private/SkVx.h"
#include "src/gpu/SkGr.h"
#include "src/gpu/geometry/GrQuadUtils.h"
#include "src/gpu/glsl/GrGLSLCo... | 44,522 | 13,006 |
/**
* @file cl_collision_engine.cc
* @brief CLCollisionEngine class file
* @author Eric Fehr (ricofehr@nextdeploy.io, github: ricofehr)
*/
#include "nextfloor/physic/cl_nearer_collision_engine.h"
#include <fstream>
#include <vector>
#include <glm/glm.hpp>
#ifdef __APPLE__
#include <OpenCL/cl2.hpp>
#else
#incl... | 5,591 | 2,073 |
#include <iostream>
#include <fstream>
#include <sstream>
#include "interpreter.h"
int main(int argc, char *argv[]) {
fstream fs(argv[1]);
stringstream ss;
ss << fs.rdbuf();
Interpreter interpreter(ss);
cout << interpreter.eval() << endl;
}
| 262 | 93 |
#include "output_nested.hpp"
#include "inspect.hpp"
#include "ast.hpp"
#include "context.hpp"
#include <iostream>
#include <sstream>
#include <typeinfo>
namespace Sass {
using namespace std;
Output_Nested::Output_Nested(bool source_comments, Context* ctx)
: buffer(""), indentation(0), source_comments(source_com... | 6,505 | 2,285 |
/***********************************************************************************************************************
* OpenStudio(R), Copyright (c) 2008-2018, Alliance for Sustainable Energy, LLC. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitt... | 6,169 | 2,135 |
// Copyright 2014 the V8 project 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 "src/compiler/operator-properties.h"
#include "src/compiler/js-operator.h"
#include "src/compiler/linkage.h"
#include "src/compiler/opcodes.h"... | 3,652 | 1,213 |
#include "CKSound.h"
NAKED CK_SOUND_SAVEOPTIONS CKSound::GetSaveOptions() {
JUMP(0x24003B62);
}
NAKED void CKSound::SetSaveOptions(CK_SOUND_SAVEOPTIONS Options) {
JUMP(0x24018678);
}
NAKED CKERROR CKMidiSound::SetSoundFileName(CKSTRING filename) {
JUMP(0x240182F6);
}
NAKED CKSTRING CKMidiSound::GetSoundFileName... | 5,658 | 3,027 |
#include "Modbus.h"
#include "analyzer/protocol/tcp/TCP_Reassembler.h"
#include "events.bif.h"
using namespace analyzer::modbus;
ModbusTCP_Analyzer::ModbusTCP_Analyzer(Connection* c)
: TCP_ApplicationAnalyzer("MODBUS", c)
{
interp = new binpac::ModbusTCP::ModbusTCP_Conn(this);
}
ModbusTCP_Analyzer::~ModbusTCP_... | 957 | 414 |
// C:\diabpsx\SOURCE\PREINV.CPP
#include "types.h"
// address: 0x8014EE74
// line start: 103
// line end: 109
void InitInv__Fv() {
}
| 139 | 74 |
class cfgFunctions {
class lambs_effects {
tag = "lambs_effects";
class functions {
file = "effects\functions";
class killed;
};
};
}; | 198 | 59 |
/*
Copyright (c) 2007 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | 11,218 | 4,345 |
//
// NodeRef.cc
//
// Copyright 2018-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be govern... | 2,716 | 802 |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <fstream>
#include <QDir>
#include <QMessageBox>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
updateDotFile();
updateImage();
renderImage();
}
MainWindow::~MainWindow()
... | 4,856 | 1,592 |
/*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 4,878 | 1,617 |
/*
* Copyright (c) 2020-2021 Gustavo Valiente gustavo.valiente@protonmail.com
* zlib License, see LICENSE file.
*/
#include "fr_title_advices.h"
#include "bn_display.h"
#include "fr_common_stuff.h"
namespace fr
{
namespace
{
constexpr bn::fixed text_y = (bn::display::height() / 2) - 16;
constexpr bn::fi... | 4,299 | 1,543 |
// Copyright 2020 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 6,333 | 1,836 |
#include <sys/types.h>
#include <netinet/in.h>
#include <inttypes.h>
#include <unistd.h>
#include <fcntl.h>
#include <poll.h>
#if defined(__linux__)
# include <endian.h>
#elif defined(__FreeBSD__) || defined(__NetBSD__)
# include <sys/endian.h>
#elif defined(__OpenBSD__)
# include <sys/types.h>
# define be16toh(x) bet... | 12,463 | 4,776 |
class Solution {
public:
vector<int> getNoZeroIntegers(int n) {
for (int A = 1; A < n; ++A) {
int B = n - A;
if (to_string(A).find('0') == string::npos &&
to_string(B).find('0') == string::npos)
return {A, B};
}
throw;
}
};
| 272 | 111 |
/////////////////////////////////////////////////////////////////////////////////////////////////
//
// Tencent is pleased to support the open source community by making libpag available.
//
// Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the Apache License, Versio... | 9,713 | 4,141 |
#pragma once
#include <QDialog>
#include <string>
#include "state.hpp"
#include "types.hpp"
class QGroupBox;
class QLineEdit;
class QRadioButton;
class AddEntryPointDialog : public QDialog {
Q_OBJECT
public:
AddEntryPointDialog(QWidget* parent = nullptr);
std::string label;
SubroutinePC pc;
State state... | 700 | 244 |
// Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
/*************************************************************************
-------------------------------------------------------------------------
$Id$
$DateTime$
Description: Script bind functions for Crysis2 interactive object
---------------... | 3,544 | 1,185 |
/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <Tests/Framework/ScriptCanvasUnitTestFixture.h>
#include <Tests/Mocks/RuntimeRequestsMock... | 3,055 | 892 |
#include <vector>
#include <string>
#include <iostream>
#include <algorithm>
#include <functional>
using std::vector;
using std::string;
using std::cout;
using std::endl;
using std::sort;
using std::find_if;
using std::unique;
using std::stable_sort;
using std::for_each;
using std::bind;
using std::placeholders::_1;
... | 1,158 | 433 |
#include "server/listener_impl.h"
#include "envoy/registry/registry.h"
#include "envoy/server/active_udp_listener_config.h"
#include "envoy/server/transport_socket_config.h"
#include "envoy/stats/scope.h"
#include "common/common/assert.h"
#include "common/config/utility.h"
#include "common/network/connection_balancer... | 18,622 | 5,167 |
// Autogenerated from CppHeaderCreator on 7/27/2020 3:10:35 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 2,491 | 765 |
/*
MIT License
Copyright (c) 2021 Kento Oki
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publis... | 3,734 | 1,587 |
/*
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 40,887 | 13,099 |
// Copyright (c) Facebook, Inc. and its affiliates.
// This source code is licensed under the MIT license found in the
// LICENSE file in the root directory of this source tree.
#include "Sensor.h"
#include <Magnum/EigenIntegration/Integration.h>
namespace esp {
namespace sensor {
Sensor::Sensor(scene::SceneNode& n... | 2,283 | 753 |
// InputVolAdjDlg.cpp : implementation file
//
#include "stdafx.h"
#include "AudioMixer.h"
#include "InputVolAdjDlg.h"
#include "ConfData.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "Wait.h"
////////////////////////////////////////////////////////////////... | 5,867 | 2,930 |
/*=========================================================================
*
* Copyright NumFOCUS
*
* 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.or... | 2,851 | 861 |
//==============================================================================
//
// Copyright (c) 2002-
// Authors:
// * Dave Parker <david.parker@comlab.ox.ac.uk> (University of Oxford, formerly University of Birmingham)
//
//------------------------------------------------------------------------------
//
// Th... | 4,829 | 1,913 |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 6,111 | 1,852 |
#include "pay_openssl_crypto_util.h"
#include <string>
#include "openssl/bio.h"
#include "openssl/evp.h"
#include "openssl/pem.h"
#include "openssl/hmac.h"
#include "openssl/ecdsa.h"
#include "openssl/sha.h"
#include "openssl/rand.h"
#include "../../../comm/xlogger/xlogger.h"
namespace mmpaycertlib{
OpenSslCrypto... | 10,523 | 4,638 |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redist... | 3,643 | 1,411 |
/* Copyright 2018 Stanford University, NVIDIA Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 6,158 | 2,196 |
#include "scripting/js-bindings/auto/jsb_cocos2dx_experimental_webView_auto.hpp"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID || CC_TARGET_PLATFORM == CC_PLATFORM_IOS) && !defined(CC_TARGET_OS_TVOS)
#include "scripting/js-bindings/manual/cocos2d_specifics.hpp"
#include "ui/UIWebView.h"
template<class T>
static bool ... | 23,248 | 8,665 |
#include "insertion.hpp"
void sortInsertion() {
srand(time(NULL));
const int ARRAY_LEN = 20;
const int INT_RANGE = 100;
int *array = new int[ARRAY_LEN];
for (int i = 0; i < ARRAY_LEN; i ++) {
array[i] = rand() % INT_RANGE;
}
messageInsertsort(array, ARRAY_LEN);
insertsort(arr... | 462 | 191 |
#include <iostream>
using namespace std;
class Node{
public:
int data;
Node* next;
};
/********************************************/
void Display(Node* n){
if(n == NULL){
cout<<"queue is empty"<<endl;
return;
}
while(n != NULL){
cout<< n->data <<" ";
n = n->next;
}
cout<<endl;
}
/**... | 1,576 | 564 |