max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
335
{ "word": "Loyalty", "definitions": [ "The quality of being loyal.", "A strong feeling of support or allegiance." ], "parts-of-speech": "Noun" }
76
1,125
import redis from pymodbus.interfaces import IModbusSlaveContext from pymodbus.utilities import pack_bitstring, unpack_bitstring #---------------------------------------------------------------------------# # Logging #---------------------------------------------------------------------------# import logging _logger =...
3,647
835
# THIS FILE IS AUTO-GENERATED. DO NOT EDIT class CommentApi: def __init__(self, client, base_path = "/v1"): self.client = client self.base_path = base_path def addExperimentRunComment(self, body=None): __query = { } if body is None: raise Exception("Missing required parameter \"body\"") ...
1,019
3,227
<reponame>ffteja/cgal<gh_stars>1000+ /*! \ingroup PkgShapeDetectionRGConcepts \cgalConcept A concept that describes the set of methods used by the `CGAL::Shape_detection::Region_growing` to access neighbors of an item. \cgalHasModel - `CGAL::Shape_detection::Point_set::K_neighbor_query`, - `CGAL::Shape_detection::Poi...
285
411
package com.documents4j.conversion.msoffice; import com.google.common.io.Files; import com.google.common.io.Resources; import java.io.File; import java.io.IOException; public enum MicrosoftWordDocument implements Document { DOC_VALID("/valid.doc"), DOC_CORRUPT("/corrupt.doc"), DOC_INEXISTENT("/inexisten...
799
1,031
<gh_stars>1000+ /* Copyright (c) <2003-2021> <<NAME>, Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software fo...
2,351
854
<gh_stars>100-1000 __________________________________________________________________________________________________ sample 32 ms submission class Solution { // we need to check down, up, left and right directions vector<vector<int>> dr = {{1, 0}, {-1, 0}, {0, 1}, {0, -1}}; public: vector<pair<int, int>> p...
1,987
52,316
<filename>Tools/unicode/genmap_support.py # # genmap_support.py: Multibyte Codec Map Generator # # Original Author: <NAME> <<EMAIL>> # Modified Author: <NAME> <<EMAIL>> # class BufferedFiller: def __init__(self, column=78): self.column = column self.buffered = [] self.cline = [] ...
3,345
368
/* * Copyright (c) 2016-2019 <NAME> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial appl...
3,350
2,151
// 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 "base/win/wait_chain.h" #include <memory> #include "base/logging.h" #include "base/strings/stringprintf.h" namespace base { namespace win { n...
1,771
763
<filename>projects/batfish-common-protocol/src/test/java/org/batfish/datamodel/matchers/TopologyMatchers.java package org.batfish.datamodel.matchers; import org.batfish.datamodel.Topology; import org.batfish.datamodel.collections.NodeInterfacePair; import org.batfish.datamodel.matchers.TopologyMatchersImpl.IsNeighborO...
376
729
<reponame>probonopd/imagewriter /*- * Copyright (c) 2009 <NAME> * 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. Redistributions of source code must retain the above copyright * n...
711
1,556
{ "label": "Query Operators", "link": { "type": "generated-index", "slug": "/reference/sql/query-operators" } }
52
852
// -*- C++ -*- // // Package: SiStripTools // Class: APVShotsAnalyzer // /**\class APVShotsAnalyzer APVShotsAnalyzer.cc DPGAnalysis/SiStripTools/plugins/APVShotsAnalyzer.cc Description: <one line class summary> Implementation: <Notes on implementation> */ // // Original Author: <NAME> // Creat...
7,288
1,139
# python import module example import utils print(utils.add(10,10)) print(utils.uppercase('java')) # python import as import utils as u print(u.add(10,10)) print(u.uppercase('java')) # python import from another directory # Refer: https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly # R...
402
654
<reponame>turlockmike/deno-lambda { "env": { "_HANDLER": "decorate.handler", "DENO_CONFIG": "tsconfig.json" }, "events": [{ "hello": "deno" }], "expected": [ { "status": "ok", "content": "{\"statusCode\":200,\"body\":\"decorated 🦕\"}" } ], "files": ["decorate.ts", "tsconfig.json"], "lay...
157
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.quota.models; import com.azure.core.http.HttpHeaders; import com.azure.core.http.HttpRequest; import com.azure.c...
408
1,210
// (C) Copyright <NAME> 2005. // Use, modification and distribution are subject to 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) #ifndef BOOST_TR1_REGEX_HPP_INCLUDED # define BOOST_TR1_REGEX_HPP_INCLUDED # include <boost/tr1...
1,575
3,102
// RUN: clang-format %s -style=LLVM | FileCheck %s // RUN: clang-format %s -sort-includes -style="{SortIncludes: false}" | FileCheck %s // RUN: clang-format %s -sort-includes=false | FileCheck %s -check-prefix=NOT-SORTED #include <b> #include <a> // CHECK: <a> // CHECK-NEXT: <b> // NOT-SORTED: <b> // NOT-SORTED-NEXT: ...
136
850
# -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import import numpy as np from libs.configs._base_.models.retinanet_r50_fpn import * from libs.configs._base_.datasets.dota_detection import * from libs.configs._base_.schedules.schedule_1x import * from dataloader.pretrained_weights.pr...
819
634
/* * Copyright 2013-2019 consulo.io * * 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 ...
3,209
3,263
<reponame>boost-entropy-typescript/eigen #import "ARRouter.h" @interface ARRouter (GraphQL) + (NSString *)graphQLQueryForLiveSaleStaticData:(NSString *)saleID role:(NSString *)causalityRole; @end
73
764
<gh_stars>100-1000 {"symbol": "ROOBEE","address": "0xA31B1767e09f842ECFd4bc471Fe44F830E3891AA","overview":{"en": ""},"email": "<EMAIL>","website": "https://roobee.io/","state": "NORMAL","links": {"blog": "https://medium.com/@roobee_invest","twitter": "https://twitter.com/Roobee_invest","telegram": "https://t.me/roobee_...
148
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once #define CONCURRE...
1,046
1,615
/** * Created by MomoLuaNative. * Copyright (c) 2020, Momo Group. All rights reserved. * * This source code is licensed under the MIT. * For the full copyright and license information,please view the LICENSE file in the root directory of this source tree. */ package com.immomo.mmui.databinding.annotation; import...
255
690
<filename>src/Memory.h /* * Author: doe300 * * See the file "LICENSE" for the full license governing this code. See the statement below for the copyright of the * original code: */ #ifndef VC4CL_DEVICE_BUFFER #define VC4CL_DEVICE_BUFFER #include <cstdint> #include <memory> #include <ostream> namespace vc4cl { ...
752
7,137
package io.onedev.server.web.page.admin.buildsetting.agent; import java.io.Serializable; import java.util.ArrayList; import javax.annotation.Nullable; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.model.IModel; import org.apache.wicket.request.cycle.RequestCycle; import org.apache.wicket....
1,019
2,989
package com.linkedin.databus2.core.container.request; /* * * Copyright 2013 LinkedIn Corp. 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....
418
506
// https://codeforces.com/contest/1148/problem/C #include <bits/stdc++.h> using namespace std; using vi = vector<int>; using ii = tuple<int, int>; using vii = vector<ii>; int main() { cin.tie(0); ios::sync_with_stdio(0); int n; cin >> n; vi a(n); for (int i = 0; i < n; i++) cin >> a[i]; vii p; int i = 0...
747
597
# thanks to @github/ZipFile, https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362 import datetime import hashlib from base64 import urlsafe_b64encode from hashlib import sha256 from secrets import token_urlsafe from urllib.parse import urlencode import requests REDIRECT_URI = "https://app-api.pixiv.net/we...
2,805
2,111
/* * nvbio * Copyright (c) 2011-2014, NVIDIA CORPORATION. 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,...
16,842
1,647
#ifndef PYTHONIC_OPERATOR_LT__HPP #define PYTHONIC_OPERATOR_LT__HPP #include "pythonic/include/operator_/__lt__.hpp" #include "pythonic/operator_/lt.hpp" #endif
73
313
<reponame>vladdu/erjang /** * This file is part of Erjang - A JVM-based Erlang VM * * Copyright (c) 2009 by Trifork * * 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://w...
424
956
<filename>src/dpdk/drivers/net/txgbe/base/txgbe_devids.h /* SPDX-License-Identifier: BSD-3-Clause * Copyright(c) 2015-2020 */ #ifndef _TXGBE_DEVIDS_H_ #define _TXGBE_DEVIDS_H_ /* * Vendor ID */ #ifndef PCI_VENDOR_ID_WANGXUN #define PCI_VENDOR_ID_WANGXUN 0x8088 #endif /* * Device IDs */ #defin...
646
1,025
<reponame>tiropas/java-game-server package org.menacheri.jetserver.event.impl; import java.io.Serializable; import org.menacheri.jetserver.event.Event; import org.menacheri.jetserver.event.EventContext; public class DefaultEvent implements Event, Serializable { /** * Eclipse Generated serial version id. */ pr...
437
3,269
#ifndef SORBET_CFG_H #define SORBET_CFG_H #include "common/UIntSet.h" #include "core/Context.h" #include "core/LocalVariable.h" #include "core/Types.h" #include <climits> #include <memory> #include "cfg/Instructions.h" // // This file defines the IR that the inference algorithm operates on. // A CFG (control flow gr...
2,067
4,492
<reponame>gilbertekalea/booking.com_crawler # This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. import abc from cryptography.exceptions import UnsupportedAlgorithm, _Reasons from cryptograp...
1,153
317
<gh_stars>100-1000 /* * Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You ma...
1,914
559
<reponame>amaiorano/Native_SDK<filename>framework/PVRCore/Time_.h<gh_stars>100-1000 /*! \brief Class for dealing with time in a cross-platform way. \file PVRCore/Time_.h \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ #pragma once #include <cstdint...
1,295
337
/* * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.idea.completion.test; import com.intellij.testFramework.TestDataPath; import org...
1,921
9,734
<reponame>timkpaine/arrow // 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 (...
11,692
417
<gh_stars>100-1000 #pragma once #include <random> #include <vector> #include "Distribution.h" #include "Producers.h" #include "ThreadObject.h" void initInstBurner(); class Mixer { public: void run(); Mixer(const Distribution *distr, int me, std::vector<std::shared_ptr<ThreadObject>> threadObjects); pri...
544
646
#!/usr/bin/env python """Display an image given its ID.""" import ee from ee_plugin import Map image = ee.Image('srtm90_v4') vis_params = {'min': 0, 'max': 3000} Map.addLayer(image, vis_params,"SRTM") Map.setCenter(0,0, 2)
92
2,231
// Copyright 2020 The Defold Foundation // Licensed under the Defold License version 1.0 (the "License"); you may not use // this file except in compliance with the License. // // You may obtain a copy of the License, together with FAQs at // https://www.defold.com/license // // Unless required by applicable law or agr...
2,699
338
import os import logging # Log输出,这里提供了自定义logging输出的机会,只需要创建一个logging.ini并且写入配置文件即可自定义输出 file_path = os.path.dirname(os.path.realpath(__file__)) + "/config/logging.ini" if os.path.exists(file_path): import logging.config logging.config.fileConfig(file_path) log = logging.getLogger("AutoMihoyoBBS") else: ...
288
331
<filename>src/main/java/org/fordes/subview/entity/DTO/OrderlyResult.java package org.fordes.subview.entity.DTO; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.StrUtil; import lombok.Data; import lombok.experimental.Accessors; import java.util.Collection; /** * 有序结果集 * * @author fordes on 20...
225
4,456
// Copyright (c) 2019-present, Qihoo, 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. #ifndef PIKA_RSYNC_SERVIC...
255
830
# Copyright 2021 JD.com, Inc., JD AI """ @author: <NAME> @contact: <EMAIL> """ import torch import torch.distributed as dist import random from xmodaler.config import configurable from xmodaler.config import kfg from xmodaler.utils.distributed import any_broadcast from ..predictor import build_v_predictor, build_predi...
5,024
358
# Copyright 2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of con...
2,110
432
<reponame>lambdaxymox/DragonFlyBSD<filename>contrib/lvm2/dist/lib/format1/vg_number.c<gh_stars>100-1000 /* $NetBSD: vg_number.c,v 1.1.1.1 2008/12/22 00:17:58 haad Exp $ */ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. * * This ...
688
416
// // ARHitTestResult.h // ARKit // // Copyright © 2017 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <CoreGraphics/CGGeometry.h> #import <simd/simd.h> @class ARAnchor; /** Option set of hit-test result types. */ API_AVAILABLE(ios(11.0)) typedef NS_OPTIONS(NSUInteger, ARHitTestRes...
917
525
#include <stdlib.h> #include <string.h> #include "sym.h" #include "func.h" struct Table* symbol_table[MAX_SYMBOL_TABLE_SIZE]; int table_size = 0; struct Table *get_sym(int id) { return symbol_table[id]; } int add_sym(char *name) { int i; for (i = 0; i < table_size; i++) { if (strcmp(symbol_table...
304
643
/* Copyright © 2011, 2012 MLstate This file is part of Opa. 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, ...
722
433
<gh_stars>100-1000 /* * Copyright 2018, Oath Inc * Licensed under the terms of the Apache License 2.0. Please refer to accompanying LICENSE file for terms. */ // This code is a derivative work heavily modified from the OHC project. See NOTICE file for copyright and license. package com.oath.halodb; import com.goo...
2,363
619
<reponame>moredu/upm<filename>src/buzzer/buzzer.c /* * Author: <NAME> <<EMAIL>> * Copyright (c) 2016 Intel Corporation. * * based on original C++ driver by * Author: <NAME> <<EMAIL>> * Copyright (c) 2014 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of ...
1,233
6,224
/* * Copyright (c) 2018 Intel Corporation. * * SPDX-License-Identifier: Apache-2.0 */ #ifndef ETH_E1000_PRIV_H #define ETH_E1000_PRIV_H #ifdef __cplusplus extern "C" { #endif #define CTRL_SLU (1 << 6) /* Set Link Up */ #define TCTL_EN (1 << 1) #define RCTL_EN (1 << 1) #define ICR_TXDW (1) /* Transmit De...
1,323
2,053
<gh_stars>1000+ #ifndef _rtsp_reason_h_ #define _rtsp_reason_h_ const char* rtsp_reason_phrase(int code); #endif /* !_rtsp_reason_h_ */
66
892
{ "schema_version": "1.2.0", "id": "GHSA-59wx-2wpf-8j48", "modified": "2022-05-03T03:08:11Z", "published": "2022-05-03T03:08:11Z", "aliases": [ "CVE-2002-1978" ], "details": "IPFilter 3.1.1 through 3.4.28 allows remote attackers to bypass firewall rules by sending a PASV command string as the argument...
506
1,695
/** * * Created by 公众号:字节流动 on 2021/3/12. * https://github.com/githubhaohao/NDK_OpenGLES_3_0 * 最新文章首发于公众号:字节流动,有疑问或者技术交流可以添加微信 Byte-Flow ,领取视频教程, 拉你进技术交流群 * * */ #ifndef _BYTE_FLOW_GL_UTILS_H_ #define _BYTE_FLOW_GL_UTILS_H_ #include <GLES3/gl3.h> #include <string> #include <glm.hpp> #define SHADER_TO_STRING(s)...
1,599
1,207
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: live800在线客服系统多处SQL注入/GETSHELL漏洞 referer: http://www.wooyun.org/bugs/wooyun-2010-0177871 author: Lucifer description: http://domain/sta/export/referrerSta.jsp, http://domain/sta/export/chatTopicSta.jsp, http://domain/sta/export/chatHoursSt...
2,493
347
package com.baidu.brcc.utils; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; public class NameTreadFactory implements ThreadFactory { private final AtomicInteger mThreadNum = new AtomicInteger(1); @Override public Thread newThread(Runnable r) { Thread...
166
572
// (C) Copyright <NAME> and <NAME> 2013. // 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) // Repository at: https://github.com/djeedjay/DebugViewPP/ #include "stdafx.h" #include <cassert> #include "CobaltFusion/...
1,049
742
<reponame>ichalkiad/RLSC_BaxterSimulation<gh_stars>100-1000 /*************************************************************************** tag: Erwin Aertbelien Mon Jan 10 16:38:38 CET 2005 rotational_interpolation.h rotational_interpolation.h - description -------...
1,553
360
<reponame>Yanci0/openGauss-server /* ------------------------------------------------------------------------- * * c_keywords.c * lexical token lookup for reserved words in openGauss embedded SQL * * src/interfaces/ecpg/preproc/c_keywords.c * * ------------------------------------------------------------------...
892
356
/* Multiplex file i/o (C) 2019 <NAME> <http://www.nedproductions.biz/> (9 commits) File Created: Nov 2019 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 in the accompanying file Licence.txt or at ...
585
1,010
<gh_stars>1000+ # Copyright 2020 Uber Technologies, 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 l...
5,826
1,816
/********************************************************* * Copyright (C) 1999-2020 VMware, Inc. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation version 2.1 an...
5,643
14,668
<gh_stars>1000+ // Copyright (c) 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 "scoped_refptr.h" struct Foo { int dummy; }; struct Bar : public Foo { int another_dummy; }; // Ensure that scoped_ref...
203
806
package org.grain.httpserver; import java.io.IOException; import java.io.InputStream; import java.net.SocketTimeoutException; import javax.servlet.http.HttpServletRequest; public class ReadUtils { public static byte[] read(HttpServletRequest request) { InputStream inputStream = null; try { if (request.getCo...
542
5,169
<filename>Specs/0/4/5/CrashOps/0.3.15/CrashOps.podspec.json { "name": "CrashOps", "version": "0.3.15", "summary": "CrashOps lets you monitor your app's stability and vulnerability by giving you error and crash reports, supported by CrashOps servers.", "description": "CrashOps lets you monitor your app's stabili...
454
641
/** ****************************************************************************** * @file stm32f4xx_flash.h * @author MCD Application Team * @version V1.0.0 * @date 30-September-2011 * @brief This file contains all the functions prototypes for the FLASH * firmware library. **********...
6,597
4,825
<gh_stars>1000+ # -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function import os import sys # pip_util.py import on_win from conda.exports # conda.exports resets the context # we need to import conda.exports h...
1,013
985
<filename>classpy-gui/src/main/java/com/github/zxh/classpy/gui/fs/DirTreeView.java package com.github.zxh.classpy.gui.fs; import javafx.scene.control.TreeItem; import javafx.scene.control.TreeView; import java.io.File; import java.util.function.Consumer; public class DirTreeView { private final TreeView<DirTree...
728
2,406
<filename>tools/pot/openvino/tools/pot/graph/__init__.py # Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openvino.tools.pot.graph.model_utils import load_model, save_model from .editor import connect_nodes, connect_nodes_by_name, remove_node_by_name from .transformer import Graph...
170
692
<gh_stars>100-1000 try: try: import ubinascii as binascii except ImportError: import binascii except ImportError: print("SKIP") raise SystemExit print(binascii.hexlify(b'\x00\x01\x02\x03\x04\x05\x06\x07')) print(binascii.hexlify(b'\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f')) print(binascii.hexli...
213
614
/* Copyright 2021 The TensorFlow 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 a...
462
679
<gh_stars>100-1000 /************************************************************** * * 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 license...
17,365
363
<gh_stars>100-1000 # -*- coding: utf-8 -*- """ Handle metadata about osquery: return version and path as grains """ import logging import subprocess import psutil import hubblestack.utils.path import hubblestack.modules.cmdmod __mods__ = {"cmd.run": hubblestack.modules.cmdmod._run_quiet} log = logging.getLogger(__n...
1,846
4,716
""" Configure pytest """ def pytest_report_header(config): """Add header to report.""" return "python client -- requests library"
44
3,747
# Copyright (c) 2019-2020, NVIDIA CORPORATION. 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 a...
2,635
2,137
<reponame>fa1c0n1/PublicCMS<gh_stars>1000+ package com.publiccms.views.directive.tools; import java.io.IOException; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest; import org.springframework.stereotype.Component; import com.publiccms.common.base.AbstractTempla...
711
1,144
<reponame>simonliu9527/v2ray-web-manager<filename>v2ray-jdk/src/main/java/com/v2ray/core/app/stats/ConfigOuterClass.java<gh_stars>1000+ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: v2ray.com/core/app/stats/config.proto package com.v2ray.core.app.stats; public final class ConfigOuterClass { ...
1,269
10,225
package io.quarkus.security.runtime; import io.quarkus.runtime.RuntimeValue; import io.quarkus.runtime.annotations.Recorder; import io.quarkus.security.runtime.interceptor.SecurityCheckStorageBuilder; import io.quarkus.security.runtime.interceptor.check.AuthenticatedCheck; import io.quarkus.security.runtime.intercepto...
572
715
class CoinChange: LENGTH = 15; def __init__(self, coins): self.coins = coins self.memo = [[-1 for x in range(15)] for x in range(15)] def start(self, current_index, current_value): if current_index >= len(self.coins) or current_value < 0: return 0 if current_value == 0: return 1 if self.memo[cur...
271
4,036
int main(int argc, char** argv) { int i = rand(); // BAD: potential overflow int j = i + 1000; // ... int n = rand(); int k; // GOOD: use a guard to prevent overflow if (n < INT_MAX-1000) k = n + 1000; else k = INT_MAX; }
99
1,652
<filename>redis/redis-checker/src/test/java/com/ctrip/xpipe/redis/checker/alert/AlertManagerTest.java package com.ctrip.xpipe.redis.checker.alert; import com.ctrip.xpipe.redis.checker.PersistenceCache; import com.ctrip.xpipe.utils.DateTimeUtils; import com.google.common.collect.Maps; import com.google.common.collect.S...
990
4,036
<reponame>vadi2/codeql package org.springframework.beans.factory; public interface BeanFactory {}
31
1,056
<reponame>timfel/netbeans<gh_stars>1000+ /* * 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 Lice...
6,140
1,444
<reponame>nnadams/mage package mage.abilities.effects.common.continuous; import mage.abilities.Ability; import mage.abilities.Mode; import mage.abilities.effects.ContinuousEffectImpl; import mage.constants.*; import mage.game.Game; import mage.game.permanent.Permanent; import java.util.ArrayList; import java.util.Lis...
1,311
396
/* Copyright 2018 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 ...
549
521
<filename>examples/make_simple/code/liba.h<gh_stars>100-1000 #ifndef LIBA_H_ #define LIBA_H_ (1) #include <stdio.h> #include <string> std::string hello_liba(void); double hello_math(double); #endif
86
892
<reponame>westonsteimel/advisory-database-github { "schema_version": "1.2.0", "id": "GHSA-hm45-mgqm-gjm4", "modified": "2021-01-07T22:37:27Z", "published": "2020-12-08T23:55:54Z", "aliases": [ "CVE-2020-26249" ], "summary": "Remote Code Execution (RCE) Exploit on Cross Site Scripting (XSS) Vulnerabili...
1,196
1,144
<reponame>dram/metasfresh package org.adempiere.ad.trx.jmx; /* * #%L * de.metas.adempiere.adempiere.base * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Fo...
1,616
678
<gh_stars>100-1000 // // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "WXPBGeneratedMessage.h" @class SKBuiltinString_t; @interface GetChatRoomMsgRequest : WXPBGeneratedMessage { } + (void)initialize; // Remaining properties @...
217
1,724
<filename>userspace/libs/libwidget/Components.h #pragma once #include <libwidget/components/ObserverComponent.h> #include <libwidget/components/RebuildableComponent.h> #include <libwidget/components/RefresherComponent.h> #include <libwidget/components/StatefulComponent.h> #include <libwidget/components/TitleBarCompone...
122
1,738
<filename>dev/Code/Deprecated/Sandbox/Editor/FacialEditor/Vicon/Vicon_Client.cpp /* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this ...
23,350
14,668
// Copyright 2019 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 "remoting/host/keyboard_layout_monitor.h" #include "base/containers/span.h" #include "ui/events/keycodes/dom/dom_code.h" namespace remoting { ...
1,837
1,457
<reponame>javarias/kairosdb /* * Copyright 2016 KairosDB 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
531
342
<gh_stars>100-1000 /* * Copyright 2013 Cloudera 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 applicabl...
11,716
321
// This file is generated by Ubpa::USRefl::AutoRefl #pragma once #include <USRefl/USRefl.h> template<> struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::MeshRenderer> : TypeInfoBase<Ubpa::Utopia::MeshRenderer> { #ifdef UBPA_USREFL_NOT_USE_NAMEOF static constexpr char name[27] = "Ubpa::Utopia::MeshRenderer"; #endif...
193