max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
367 | <reponame>Allenjonesing/tutorials
// You should include this file and bitmap.cpp with your projects from now on.
// Now you don't need to cut and paste the functions you want to use, just include
// the .h and .cpp files to your project if you want to use bitmaps
#ifndef _BITMAP_H // If we haven't included this fil... | 688 |
410 | // Copyright(c) 2017 POLYGONTEK
//
// 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 i... | 18,768 |
5,169 | {
"name": "ISUActionMenu",
"version": "0.1.3",
"summary": "An interactive action menu button with gesture.",
"homepage": "https://github.com/citysite102",
"license": "MIT",
"authors": {
"Samuel": "<EMAIL>"
},
"source": {
"git": "https://github.com/citysite102/ISUActionMenu.git",
"tag": "0.1.... | 286 |
713 | <gh_stars>100-1000
package org.infinispan.notifications.cachemanagerlistener.event;
import java.util.List;
import org.infinispan.remoting.transport.Address;
/**
* This event is passed in to any method annotated with {@link org.infinispan.notifications.cachemanagerlistener.annotation.ViewChanged}.
* It represents a... | 315 |
417 | /*******************************************************************************
* Copyright 2019 Intel Corporation
*
* 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, ... | 1,615 |
344 | <filename>modules/audio_processing/test/api_call_statistics.h
/*
* Copyright (c) 2019 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 rig... | 447 |
807 | <gh_stars>100-1000
{"HandlerID":"4","GameID":"17520","Title":"Synergy Handler","ExeName":"synergy","Dev":"d1maxa","MD5":null,"V":1,"PlatV":9} | 56 |
1,233 | <reponame>calvin681/mantis
/*
* Copyright 2019 Netflix, 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... | 2,672 |
569 | <reponame>aossp/nfcgate
package de.tu_darmstadt.seemoo.nfcgate.network.threading;
import android.util.Log;
import java.io.DataInputStream;
import java.io.IOException;
import de.tu_darmstadt.seemoo.nfcgate.network.data.NetworkStatus;
import de.tu_darmstadt.seemoo.nfcgate.network.ServerConnection;
public class Receiv... | 522 |
6,210 | package org.apache.cassandra.stress.settings;
/*
*
* 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 Ap... | 1,729 |
1,303 | <filename>src/backend/access/brin/brin_tuple.c
/*
* brin_tuples.c
* Method implementations for tuples in BRIN indexes.
*
* Intended usage is that code outside this file only deals with
* BrinMemTuples, and convert to and from the on-disk representation through
* functions in this file.
*
* NOTES
*
* A ... | 8,443 |
1,248 | /**
* 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... | 1,268 |
28,056 | <gh_stars>1000+
package com.alibaba.fastjson.deserializer.issues3796.bean;
import java.util.List;
public class ObjectF2 {
private int a;
private int b;
private List<Integer> c;
private boolean d;
public int getA() {
return a;
}
public void setA(int a) {
this.a = a;
}
public int getB() {
... | 249 |
454 | <filename>vertx-pin/zero-crud/src/main/java/io/vertx/tp/crud/uca/op/AgonicImport.java
package io.vertx.tp.crud.uca.op;
import io.vertx.core.Future;
import io.vertx.core.json.JsonArray;
import io.vertx.tp.crud.init.IxPin;
import io.vertx.tp.crud.refine.Ix;
import io.vertx.tp.crud.uca.desk.IxMod;
import io.vertx.tp.crud... | 1,087 |
2,144 | <filename>pinot-segment-local/src/test/java/org/apache/pinot/segment/local/realtime/impl/invertedindex/NativeMutableTextIndexReaderWriterTest.java<gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this wor... | 817 |
17,085 | <gh_stars>1000+
# 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
#
# Unles... | 477 |
492 | package com.github.fakemongo.test.beans;
import com.google.common.base.Objects;
/**
* @author <NAME>
* @created 4/23/2016
*/
public class TestChildBean extends TestParentBean {
private String parentId;
public String getParentId() {
return parentId;
}
public void setParentId(String parent... | 519 |
1,750 | <reponame>literator/Typhoon
//
// SingletonC.h
// Tests
//
// Created by <NAME> on 10/08/13.
//
//
#import <Foundation/Foundation.h>
@class SingletonA;
@interface NotSingletonA : NSObject
@property(nonatomic, strong) SingletonA *dependencyOnA;
- (id)initWithSingletonA:(SingletonA *)singletonA;
@end
| 122 |
386 | package com.qq.tars.server.core;
import com.qq.tars.common.AbstractFilterChain;
import com.qq.tars.common.Filter;
import com.qq.tars.common.FilterKind;
import com.qq.tars.net.core.Request;
import com.qq.tars.net.core.Response;
import com.qq.tars.rpc.protocol.tars.TarsServantRequest;
import com.qq.tars.rpc.protocol.tar... | 372 |
1,253 | <gh_stars>1000+
package it.cosenonjaviste.daggermock.providesannotatedfields;
import it.cosenonjaviste.daggermock.simple.MyService;
public class MyServiceImpl extends MyService {
String name;
public MyServiceImpl(String name) {
this.name = name;
}
}
| 104 |
348 | {"nom":"Saint-Cyr-sur-Loire","circ":"5ème circonscription","dpt":"Indre-et-Loire","inscrits":12631,"abs":6317,"votants":6314,"blancs":425,"nuls":108,"exp":5781,"res":[{"nuance":"REM","nom":"<NAME>","voix":3131},{"nuance":"LR","nom":"<NAME>","voix":2650}]} | 105 |
348 | {"nom":"Lancrans","circ":"3ème circonscription","dpt":"Ain","inscrits":702,"abs":414,"votants":288,"blancs":25,"nuls":8,"exp":255,"res":[{"nuance":"REM","nom":"M<NAME>","voix":133},{"nuance":"LR","nom":"Mme <NAME>","voix":122}]} | 91 |
468 | {
"name": "purrr",
"author": "rstudio",
"license": "CC0",
"raster": "http://hexb.in/hexagons/purrr.png",
"vector": "http://hexb.in/vector/purrr.svg",
"description": "purrr: Functional Programming Tools.",
"order_online_url": "https://www.stickermule.com/marketplace/13594-rstudio-hex-purrr"
}
| 123 |
819 | <reponame>Asteur/vrhelper<filename>seurat/baker/framework/ray_bundle.cc
/*
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/... | 1,405 |
678 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
#import "UISlider.h"
@class UIColor;
@interface WCNetworkMediaSlider : UISlider
{
double m_cacheTime;
_Bool _showCacheProgress;
UIColor *_frontgroundColor;
UIColor *_bac... | 363 |
841 | package org.jboss.resteasy.core;
import java.util.concurrent.CompletionStage;
/**
* Need to distinguish from a param or property that is actually a CompletionStage from
* an async injection
*
*/
public class CompletionStageHolder {
private final CompletionStage stage;
public CompletionStageHolder(final C... | 237 |
397 | <filename>capsule-core/src/main/java/io/usethesource/capsule/core/PersistentTrieSet.java
/**
* Copyright (c) <NAME> <Centrum Wiskunde & Informatica> and Contributors.
* All rights reserved.
*
* This file is licensed under the BSD 2-Clause License, which accompanies this project
* and is available under https://ope... | 24,631 |
406 | <reponame>rhowe/igv<filename>src/main/java/org/broad/igv/ui/panel/TrackPanelComponent.java
/*
* The MIT License (MIT)
*
* Copyright (c) 2007-2015 Broad Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"),... | 3,798 |
679 | <filename>main/xmloff/source/core/xmltkmap.cxx
/**************************************************************
*
* 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... | 1,228 |
739 | package org.fxmisc.richtext.mouse;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;
import javafx.scene.input.KeyCode;
import javafx.scene.input.MouseButton;
import javafx.stage.Stage;
import org.fxmisc.richtext.InlineCssTextArea... | 1,092 |
547 | [
{ "id": 0, "src": "images/proexpress-cover.jpg", "title": "Pro Express.js", "url": "http://amzn.to/1D6qiqk" },
{ "id": 1, "src": "images/practicalnode-cover.jpeg", "title": "Practical Node.js", "url": "http://amzn.to/NuQ0fM" },
{ "id": 2, "src": "images/expressapiref-cover.jpg", "title": "Express API Reference"... | 252 |
14,668 | <filename>ui/base/ime/text_input_action.h
// 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.
#ifndef UI_BASE_IME_TEXT_INPUT_ACTION_H_
#define UI_BASE_IME_TEXT_INPUT_ACTION_H_
namespace ui {
// This mode ... | 282 |
4,640 | # 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 not u... | 4,512 |
348 | <filename>docs/data/leg-t2/036/03602229.json<gh_stars>100-1000
{"nom":"Val-Fouzon","circ":"2ème circonscription","dpt":"Indre","inscrits":820,"abs":451,"votants":369,"blancs":28,"nuls":22,"exp":319,"res":[{"nuance":"LR","nom":"<NAME>","voix":201},{"nuance":"MDM","nom":"<NAME>","voix":118}]} | 120 |
1,176 | <reponame>zuzhi/rssant
# Generated by Django 2.2.6 on 2019-10-27 05:17
from django.db import migrations, models
import ool
class Migration(migrations.Migration):
dependencies = [
('rssant_api', '0012_auto_20191025_1526'),
]
operations = [
migrations.CreateModel(
name='ImageI... | 767 |
5,169 | {
"name": "fpingx",
"version": "0.1.2",
"summary": "A swift wrapper of fping which is a high performance ping tool",
"description": "A swift wrapper of fping which is a high performance ping tool",
"homepage": "https://github.com/jackymelb/fpingx",
"license": {
"type": "BSD",
"file": "LICENSE"
},
... | 346 |
337 | /**
* iptables API
* iptables API generated from iptables.yang
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/polycube-network/swagger-codegen.git
* branch polycube
*/
/* Do not edit this file manually */
/*
* ChainStatsJsonObject.h
... | 561 |
700 | <reponame>OakCityLabs/ios_system
/* $OpenBSD: mux.c,v 1.86 2020/10/29 02:52:43 djm Exp $ */
/*
* Copyright (c) 2002-2008 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this pe... | 28,154 |
457 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Nov 2019
@author: <NAME> <<EMAIL>>
"""
from typing import Union
import numpy as np
from scipy import sparse
from scipy.sparse.linalg import LinearOperator
def diag_pinv(weights: np.ndarray) -> sparse.csr_matrix:
"""Compute :math:`W^+ = \\text{diag}(w)... | 760 |
6,663 | namespace outer {
int x = 10;
int outer_value = 10;
namespace inner {
int x = 100;
int inner_value = 100;
}
}
namespace A {
typedef int A_t;
struct S {
A_t k;
double x;
};
A_t A_func(A_t first, A_t second) {
return first + second;
}
... | 164 |
310 | {
"name": "CourtSearch",
"description": "A service for searching court records.",
"url": "https://www.courtsearch.com/"
} | 40 |
777 | // Copyright 2015 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/website_settings/website_settings_popup_view.h"
#include "base/macros.h"
#include "base/strings/utf_string_conversions.... | 3,558 |
435 | <filename>warehouse/query-core/src/main/java/datawave/query/jexl/visitors/GeoFeatureVisitor.java
package datawave.query.jexl.visitors;
import datawave.query.jexl.functions.GeoFunctionsDescriptor;
import datawave.query.jexl.functions.GeoWaveFunctionsDescriptor;
import datawave.query.jexl.functions.JexlFunctionArgumentD... | 1,756 |
397 | <filename>CVE-2019-1253/AppXSvcEoP/CommonUtils.h
#pragma once
#pragma once
#include <Windows.h>
#include <string>
typedef void(__stdcall *console_output)(const char*);
void DebugSetOutput(console_output pout);
void DebugPrintf(const char* lpFormat, ...);
std::wstring GetErrorMessage(DWORD dwError);
std::wstring GetE... | 246 |
886 | package com.flowci.core.secret.domain;
import com.flowci.domain.SecretField;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;
/**
* @author yang
*/
@Getter
@Setter
@Document(collection = "secret")
public class AndroidSign extends Secret {
private String... | 176 |
3,212 | /*
* 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 ... | 3,168 |
372 | <filename>clients/google-api-services-drive/v3/1.31.0/com/google/api/services/drive/model/ContentRestriction.java
/*
* 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/... | 1,788 |
30,785 | package jadx.tests.integration.others;
import java.util.Arrays;
import org.junit.jupiter.api.Test;
import jadx.api.data.ICodeComment;
import jadx.api.data.IJavaNodeRef.RefType;
import jadx.api.data.impl.JadxCodeComment;
import jadx.api.data.impl.JadxCodeData;
import jadx.api.data.impl.JadxNodeRef;
import jadx.core.d... | 682 |
5,238 | <filename>src/extra/layouts/lv_layouts.h<gh_stars>1000+
/**
* @file lv_layouts.h
*
*/
#ifndef LV_LAYOUTS_H
#define LV_LAYOUTS_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "flex/lv_flex.h"
#include "grid/lv_grid.h"
/*********************
* ... | 317 |
1,374 | <gh_stars>1000+
package def.dom;
public class MessagePort extends EventTarget {
public java.util.function.Function<MessageEvent,Object> onmessage;
native public void close();
native public void postMessage(Object message, Object ports);
native public void start();
native public void addEventListener... | 282 |
365 | package org.superboot.dao.jpa;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Repository;
import org.superboot.base.BaseJpaDAO;
import org.superboot.entity.jpa.SuperbootMenuPermissions;
/**
* <b> 菜单授权DAO类 </b>
* <... | 400 |
409 | #pragma once
#include "TypeResolution.h"
#include "catalog.h"
#define METADATA_FILE_EXTENSION L"winmd"
#define METADATA_FILE_PATH_FORMAT L"%s%s." METADATA_FILE_EXTENSION
#define METADATA_FILE_SEARCH_FORMAT L"%s%s*." METADATA_FILE_EXTENSION
namespace UndockedRegFreeWinRT
{
static const UINT32 g_uiMaxTypeName = ... | 13,662 |
852 | <filename>CondFormats/RPCObjects/src/RPCFebConnector.cc<gh_stars>100-1000
#include "CondFormats/RPCObjects/interface/RPCFebConnector.h"
#include <ostream>
#include <sstream>
RPCFebConnector::RPCFebConnector(RPCDetId const& rpc_det_id, unsigned int first_strip, int slope, std::uint16_t channels)
: first_strip_(1),... | 302 |
640 | /*! \file SystemCompatibility.cpp
\brief The source file for access to system specific functionality.
*/
// Lucius includes
#include <prnn/detail/util/system_compatibility.h>
// System Includes
#ifdef HAVE_CONFIG_H
#include <configure.h>
#endif
#ifdef _WIN32
#include <windows.h>
#elif __APPLE__
#include ... | 1,711 |
435 | <gh_stars>100-1000
{
"copyright_text": "Standard YouTube License",
"description": "Today, services built on Python 3.6.3 are widely used at Facebook. But as recently as May of 2014 it was actually impossible at all to use Python 3 at Facebook. Come learn how we cut the Gordian Knot of dependencies and social aversi... | 524 |
14,499 | /*
* 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.
*/
typedef int T;
int f(int* p) {
int x = *p;
p->T::~T();
return x;
}
template <typename T>
int destroy(T* ptr) {
ptr->T::~T(... | 149 |
877 | <gh_stars>100-1000
import org.checkerframework.common.value.qual.*;
public class MinLenConstants {
void test() {
int @MinLen(3) [] arr = {1, 2, 3};
}
}
| 65 |
348 | <filename>docs/data/leg-t2/017/01703470.json
{"nom":"Villars-les-Bois","circ":"3ème circonscription","dpt":"Charente-Maritime","inscrits":225,"abs":105,"votants":120,"blancs":8,"nuls":3,"exp":109,"res":[{"nuance":"REM","nom":"<NAME>","voix":63},{"nuance":"LR","nom":"M. <NAME>","voix":46}]} | 119 |
1,270 | <reponame>akhilbobby/pegasus
# Copyright 2020 The PEGASUS 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
#
# Unless required by a... | 1,199 |
450 | /*
* 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 ... | 395 |
302 | <reponame>cashlisa/mos<gh_stars>100-1000
#include "math.h"
static uint32_t rseed = 1;
static uint32_t rand_r(uint32_t *seed)
{
unsigned int next = *seed;
int result;
next *= 1103515245;
next += 12345;
result = (unsigned int)(next / 65536) % 2048;
next *= 1103515245;
next += 12345;
result <<= 10;
result ^= ... | 260 |
3,631 | <gh_stars>1000+
/*
* Copyright (c) 2021. Red Hat, Inc. and/or its affiliates.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | 2,321 |
496 | <gh_stars>100-1000
# Generated by Django 3.0.4 on 2020-07-12 15:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0015_auto_20200712_1404'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name=... | 185 |
679 | <filename>main/reportdesign/source/filter/xml/xmlFormattedField.hxx<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 additi... | 646 |
3,269 | // Time: O(n)
// Space: O(w)
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode() : val(0), left(nullptr), right(nullptr) {}
* TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
* TreeNode(int x, TreeNode *lef... | 1,178 |
543 | /*
* Copyright 2017 <NAME>
*
* 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 ... | 929 |
336 | <filename>system/apps/105_avrprogrammer/source/ihex.h
#ifndef INTEL_HEX_H
#define INTEL_HEX_H
/**
* \file ihex.h
* \brief Low-level utility functions to create, read, write, and print Intel HEX8 binary records.
* \author <NAME> <<EMAIL>>
* \date February 2011
* \version 1.0.5
*/
uint32_t _strtol(char*str, char**... | 3,122 |
60,067 | <reponame>xiaohanhuang/pytorch<filename>torch/csrc/jit/frontend/lexer.h
#pragma once
#include <ATen/core/Macros.h>
#include <c10/util/C++17.h>
#include <c10/util/Exception.h>
#include <torch/csrc/WindowsTorchApiMacro.h>
#include <torch/csrc/jit/frontend/parser_constants.h>
#include <torch/csrc/jit/frontend/source_range... | 9,087 |
369 | <gh_stars>100-1000
/*
* Copyright © 2021 <NAME>, 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... | 1,014 |
2,633 |
/*
* Copyright (C) <NAME>
* Copyright (C) NGINX, Inc.
*/
#ifndef _NXT_JOB_FILE_H_INCLUDED_
#define _NXT_JOB_FILE_H_INCLUDED_
/*
* nxt_job_file_read() allows to open a file, to get its type, size, and
* modification time, to read or map file content to memory, and to close
* the file. It can be done as one op... | 914 |
2,464 | package com.cjj.refresh;
/**
* Created by cjj on 2015/8/4.
* 刷新回调接口
*/
public interface PullToRefreshListener {
/**
* 刷新中。。。
* @param refreshLayout
*/
void onRefresh(RefreshLayout refreshLayout);
}
| 107 |
731 | <reponame>cocobear/fuxi
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
from urllib.parse import urlparse
from pocsuite3.api import register_poc
from pocsuite3.api import Output, POCBase
from pocsuite3.api import POC_CATEGORY, VUL_TYPE
class TestPOC(POCBase):
vulID = '00002'
version = '1'
auth... | 1,201 |
1,439 | /*******************************************************************************
* Copyright 2018 <NAME> http://galenframework.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... | 5,918 |
5,964 | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | 1,843 |
470 | <filename>Example/Pods/LFMediaEditingController/LFMediaEditingController/LFMediaEditingController/class/vendors/JRFilterBar/Cell/JRFilterBarCell.h
//
// JRStrainImageShowViewCell.h
// JRCollectionView
//
// Created by Mr.D on 2018/8/6.
// Copyright © 2018年 Mr.D. All rights reserved.
//
#import <UIKit/UIKit.h>
ext... | 290 |
440 | <filename>visa/VarSplit.h
/*========================== begin_copyright_notice ============================
Copyright (C) 2019-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#ifndef _VARSPLIT_H_
#define _VARSPLIT_H_
#include "Flow... | 2,526 |
653 | #include <errno.h>
#include <string.h>
#include "chacha.h"
#include "random.h"
#include "util.h"
#include <sys/random.h>
static void get_random_seed(void *buf, size_t size) {
while (size) {
ssize_t r;
do {
r = getrandom(buf, size, 0);
} while (r == -1 && errno == EINTR);
... | 1,596 |
666 | <filename>lib/ctrcommon/source/ctrcommon/gput.cpp<gh_stars>100-1000
#include "ctrcommon/gpu.hpp"
#include "ctrcommon/platform.hpp"
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <sstream>
#include <stack>
#include <3ds.h>
#include <math.h>
#include "ctrcommon_shader_vsh_shbin.h"
#include "ctrco... | 6,296 |
1,603 | package com.linkedin.metadata.kafka.hydrator;
import com.datahub.authentication.Authentication;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.linkedin.common.urn.Urn;
import com.linkedin.entity.EntityResponse;
import com.linkedin.entity.cl... | 1,099 |
370 | #define DLONG
#include <../Cholesky/cholmod_rowfac.c>
| 23 |
733 | package com.douban.rexxar.view;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import and... | 8,830 |
3,562 | <reponame>kaiker19/incubator-doris
// 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, Vers... | 1,421 |
480 | /*
* Copyright [2013-2021], Alibaba Group Holding Limited
*
* 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... | 667 |
1,939 | <reponame>Kinway050/bk-ci
/*
* Tencent is pleased to support the open source community by making BlueKing available.
* Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
* Licensed under the MIT License (the "License"); you may not use this file except
* in compliance with the License.... | 964 |
902 | package com.megster.cordova;
import android.Manifest;
import android.content.pm.PackageManager;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
imp... | 7,771 |
410 | <gh_stars>100-1000
package com.nepxion.aquarius.idgenerator.local.impl;
/**
* <p>Title: Nepxion Aquarius</p>
* <p>Description: Nepxion Aquarius</p>
* <p>Copyright: Copyright (c) 2017-2050</p>
* <p>Company: Nepxion</p>
* @author <NAME>
* @version 1.0
*/
import java.util.Map;
import java.util.concurrent.Concurre... | 1,350 |
454 | <filename>vertx-gaia/vertx-up/src/main/java/io/vertx/up/commune/envelop/Rib.java
package io.vertx.up.commune.envelop;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.up.eon.Constants;
import io.vertx.up.exception.WebException;
public class... | 755 |
721 | <reponame>payrollhero/google-api-ruby-client
{
"api_id": "accesscontextmanager:v1",
"name_pretty": "Access Context Manager API",
"distribution_name": "google-apis-accesscontextmanager_v1",
"language": "ruby",
"library_type": "REST"
}
| 99 |
483 | <filename>nitrite/src/main/java/org/dizitart/no2/common/module/PluginManager.java
/*
* Copyright (c) 2017-2020. Nitrite author or 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... | 2,638 |
2,010 | from colorama import init
from colorama import Fore, Back, Style
import tensorflow as tf
from terminaltables import SingleTable
from natsort import natsorted
def print_table(TABLE_DATA):
table_instance = SingleTable(TABLE_DATA, "")
table_instance.justify_columns[2] = 'right'
print(table_instance.table)
... | 839 |
2,151 | <gh_stars>1000+
// 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.
#ifndef NET_CERT_CT_POLICY_STATUS_H_
#define NET_CERT_CT_POLICY_STATUS_H_
namespace net {
namespace ct {
// Information about the conne... | 432 |
2,132 | module org.bytedeco.librealsense {
requires transitive org.bytedeco.javacpp;
exports org.bytedeco.librealsense.global;
exports org.bytedeco.librealsense.presets;
exports org.bytedeco.librealsense;
}
| 78 |
575 | // 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.
#ifndef SERVICES_NETWORK_PUBLIC_CPP_P2P_PARAM_TRAITS_H_
#define SERVICES_NETWORK_PUBLIC_CPP_P2P_PARAM_TRAITS_H_
// IPC messages for the P2P Transport... | 1,266 |
304 | <reponame>apolovyi/warnings-ng-plugin
package io.jenkins.plugins.analysis.core.util;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import com.google.errorprone.annotations.FormatMethod;
import io.jenkins.plugins.analysis.core.util.QualityGate.QualityGateResult;
import io.jenkins.plu... | 1,486 |
2,137 | <reponame>lxconan/cms-attacking
package com.publiccms.views.method.tools;
import org.springframework.stereotype.Component;
/**
*
* GetMd5Method
*
*/
@Component
public class GetSha2Method extends GetSha512Method {
}
| 91 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/searchlib/fef/blueprint.h>
#include <vespa/searchlib/fef/featureexecutor.h>
namespace search {
namespace fef {
namespace test {
class StaticRankExecutor : public FeatureExecutor
{
pr... | 344 |
1,144 | package de.metas.handlingunits.allocation;
/*
* #%L
* de.metas.handlingunits.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 Foundation, either versio... | 748 |
565 | <gh_stars>100-1000
# Copyright (c) ZenML GmbH 2021. 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:
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 1,051 |
784 | <gh_stars>100-1000
/**
* Copyright (c) 2015-2021, <NAME> 杨福海 (<EMAIL>).
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
... | 26,137 |
653 | // Copyright (c) 2020 by Chrono
//
// git clone <EMAIL>:nlohmann/json.git
// wget https://github.com/nlohmann/json/releases/download/v3.7.3/json.hpp
//
// g++ json.cpp -std=c++14 -I../common -o a.out;./a.out
#include <iostream>
// you should put json.hpp in ../common
#include "json.hpp"
using namespace std;
using j... | 734 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.