max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
892 | {
"schema_version": "1.2.0",
"id": "GHSA-q4f8-9474-jr7m",
"modified": "2022-05-13T01:01:12Z",
"published": "2022-05-13T01:01:12Z",
"aliases": [
"CVE-2016-8331"
],
"details": "An exploitable remote code execution vulnerability exists in the handling of TIFF images in LibTIFF version 4.0.6. A crafted TI... | 537 |
582 | #coding=utf-8
from django.contrib import admin
# Register your models here.
from appscan.models import poc_list
from appscan.models import navigation,navigation_url,vul_scan, user_scan,vul_state
#POC 数据
class poc_listAdmin(admin.ModelAdmin):
list_display = ('vulID','category','vulType','cvss','filename','appName... | 553 |
335 | package com.pgexercises;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
import javax.servlet.ServletContext;
import org.json.simple.JSONObject;
import org.postgresql.copy... | 1,330 |
335 | <filename>D/Daytime_noun.json
{
"word": "Daytime",
"definitions": [
"The time of the day between sunrise and sunset."
],
"parts-of-speech": "Noun"
} | 75 |
892 | <gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-p6m5-7rpv-gjcj",
"modified": "2022-05-01T06:42:58Z",
"published": "2022-05-01T06:42:58Z",
"aliases": [
"CVE-2006-0830"
],
"details": "The scripting engine in Internet Explorer allows remote attackers to cause a denial of service (resource con... | 529 |
15,337 | <filename>saleor/graphql/webhook/types.py
import graphene
from ...webhook import models
from ...webhook.event_types import WebhookEventType
from ..core.connection import CountableDjangoObjectType
from .enums import WebhookEventTypeEnum
class WebhookEvent(CountableDjangoObjectType):
name = graphene.String(descrip... | 569 |
737 | # encoding: utf-8
from .make_densebox_target import make_densebox_target
__all__ = [make_densebox_target]
| 45 |
1,752 | <reponame>icovada/napalm
import re
def strip_config_header(config):
"""Normalize items that should not show up in IOS-XR compare_config."""
config = re.sub(r"^Building config.*\n!! IOS.*", "", config, flags=re.M)
config = config.strip()
config = re.sub(r"^!!.*", "", config)
config = re.sub(r"end$"... | 142 |
14,668 | // Copyright 2014 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.
package org.chromium.base.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Annotation used for marking m... | 238 |
1,001 | # 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... | 536 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-c36f-rpx7-9qq3",
"modified": "2022-04-29T03:01:52Z",
"published": "2022-04-29T03:01:52Z",
"aliases": [
"CVE-2004-2664"
],
"details": "John Lim ADOdb Library for PHP before 4.23 allows remote attackers to obtain s... | 367 |
8,664 | /*
* Copyright 2016 WebAssembly Community Group participants
*
* 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... | 1,064 |
546 | <filename>include/Msnhnet/core/MsnhSimd.h<gh_stars>100-1000
#ifndef MSNHSIMD_H
#define MSNHSIMD_H
#include <iostream>
#include <string>
#include "Msnhnet/config/MsnhnetCfg.h"
#ifdef USE_X86
#ifdef WIN32
#include <intrin.h>
#include <ammintrin.h>
#include <immintrin.h>
#include <smmintrin.h>
#include <array>
#else
#in... | 2,153 |
2,453 | //
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12).
//
// Copyright (C) 1997-2019 <NAME>.
//
#import <IDEKit/IDELibraryController.h>
@class MISSING_TYPE;
@interface _TtC6IDEKit17CapabilityLibrary : IDELibraryController
{
MISSING_TYPE *sourceTitle;
MISSING_TYPE *last... | 408 |
4,756 | <reponame>smithersstonerandal/libphonenumber<gh_stars>1000+
// Copyright (C) 2020 The Libphonenumber 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/li... | 528 |
377 | //------------------------------------------------------------------------------
// profiling.cc
// (C) 2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "foundation/stdneb.h"
#include "profiling/profiling.h"
namespace Profiling
{... | 1,846 |
4,054 | <reponame>Anlon-Burke/vespa<gh_stars>1000+
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.jdisc.application;
import com.google.common.collect.ImmutableList;
import com.yahoo.jdisc.Container;
import com.yahoo.jdisc.service.ServerProvider;
impor... | 883 |
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... | 1,220 |
852 | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.CSCFakeDBGains = cms.ESSource("CSCFakeDBGains")
process.prefer("CSCFakeDBGains")
process.CSCFakeDBPedestals = cms.ESSource("CSCFakeDBPedestals")
process.prefer("CSCFakeDBPedestals")
... | 419 |
575 | <filename>chrome/browser/ui/webui/settings/chromeos/device_name_handler_unittest.cc
// Copyright 2020 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/webui/settings/chromeos/device_name_handle... | 885 |
448 | /* This file was generated from a modified version UCData's ucgendat.
*
* DO NOT EDIT THIS FILE!
*
* Instead, compile ucgendat.c (bundled with PHP in ext/mbstring), download
* the appropriate UnicodeData-x.x.x.txt and CompositionExclusions-x.x.x.txt
* files from http://www.unicode.org/Public... | 141,965 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Damprichard","circ":"3ème circonscription","dpt":"Doubs","inscrits":1328,"abs":817,"votants":511,"blancs":27,"nuls":13,"exp":471,"res":[{"nuance":"REM","nom":"M. <NAME>","voix":270},{"nuance":"LR","nom":"M. <NAME>","voix":201}]} | 114 |
432 | package com.hccake.ballcat.common.swagger;
import cn.hutool.core.util.StrUtil;
import com.hccake.ballcat.common.swagger.builder.DocketBuildHelper;
import com.hccake.ballcat.common.swagger.builder.MultiRequestHandlerSelectors;
import com.hccake.ballcat.common.swagger.property.SwaggerProperties;
import lombok.RequiredAr... | 643 |
874 | <reponame>orenmnero/lambda<filename>src/main/java/com/jnape/palatable/lambda/optics/lenses/MapLens.java
package com.jnape.palatable.lambda.optics.lenses;
import com.jnape.palatable.lambda.adt.Maybe;
import com.jnape.palatable.lambda.adt.hlist.Tuple2;
import com.jnape.palatable.lambda.functions.Fn1;
import com.jnape.pa... | 3,457 |
770 | <reponame>arthurmaciel/cyclone-bootstrap
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2012 Couchbase, 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 obtai... | 752 |
317 | <gh_stars>100-1000
/* -------------------------------------------------------------------------------
Copyright 2000-2006 Adobe Systems Incorporated. All Rights Reserved.
NOTICE: Adobe permits you to use, modify, and distribute this file
in accordance with the terms of the Adobe license agreement accomp... | 124,499 |
301 | <reponame>jonghenhan/iotivity
//******************************************************************
//
// Copyright 2016 Samsung Electronics All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use ... | 6,588 |
1,894 | # Copyright 2017 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.
"""The datastore model TableConfig, which specify which reports to generate.
Each /speed_releasing report will be generated via creating a corresponding
conf... | 1,297 |
348 | <reponame>chamberone/Leaflet.PixiOverlay
{"nom":"Hasnon","circ":"20ème circonscription","dpt":"Nord","inscrits":3045,"abs":1801,"votants":1244,"blancs":67,"nuls":36,"exp":1141,"res":[{"nuance":"COM","nom":"<NAME>","voix":815},{"nuance":"FN","nom":"<NAME>","voix":326}]} | 110 |
348 | <gh_stars>100-1000
{"nom":"Samoëns","circ":"6ème circonscription","dpt":"Haute-Savoie","inscrits":2120,"abs":1001,"votants":1119,"blancs":22,"nuls":8,"exp":1089,"res":[{"nuance":"REM","nom":"<NAME>","voix":403},{"nuance":"LR","nom":"Mme <NAME>","voix":371},{"nuance":"FI","nom":"Mme <NAME>","voix":74},{"nuance":"ECO","n... | 266 |
372 | /* Clean */
#include <config.h>
#include <unistd.h>
#include "dcethread-private.h"
#include "dcethread-util.h"
#include "dcethread-debug.h"
#include "dcethread-exception.h"
#ifdef API
ssize_t
dcethread_write(int fd, void *buf, size_t count)
{
DCETHREAD_SYSCALL(ssize_t, write(fd, buf, count));
}
#endif /* API *... | 141 |
1,993 | /*
* Copyright 2013-2020 The OpenZipkin 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 applicable law or a... | 523 |
1,093 | <reponame>StandCN/spring-integration<gh_stars>1000+
/*
* Copyright 2016-2021 the original 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
*
* https://www.apache... | 1,030 |
2,777 | <gh_stars>1000+
#pragma once
#include <QKeyEvent>
class KonamiCode : public QObject
{
Q_OBJECT
public:
KonamiCode(QObject *parent = 0);
void input(QEvent *event);
signals:
void triggered();
private:
int m_progress = 0;
};
| 100 |
1,687 | import java.util.HashMap;
import java.util.Map;
public class Solution2 {
// 方法二:哈希表
public int[] twoSum(int[] nums, int target) {
int len = nums.length;
Map<Integer, Integer> hashMap = new HashMap<>(len - 1);
hashMap.put(nums[0], 0);
for (int i = 1; i < len; i++) {
... | 298 |
1,382 | <filename>examples/flexframesync_reconfig_example.c
//
// flexframesync_reconfig_example.c
//
// Demonstrates the reconfigurability of the flexframegen and
// flexframesync objects.
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <getopt.h>
#include "liquid.h... | 1,611 |
601 | <reponame>Harshagracy/sp-dev-fx-webparts
{
"$schema": "https://dev.office.com/json-schemas/spfx/client-side-web-part-manifest.schema.json",
"id": "be293fec-29f2-4db2-869a-604e560980fa",
"alias": "ReactAggregatedCalendarWebPart",
"componentType": "WebPart",
"version": "*",
"manifestVersion": 2,
"requiresCu... | 460 |
2,151 | /*
* Copyright (C) 2013 The Android Open Source Project
*
* 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... | 4,131 |
5,169 | {
"name": "spSDK",
"version": "0.1.0",
"summary": "spSDK gives you End to End encrpytion capability with almost zero code .",
"description": "Provide security & safety to your users with no hassle.\nBy integrating End to End Encryption in your app.\nhttps://sdk.safepixel.app",
"homepage": "https://sdk.safepix... | 343 |
315 | <filename>helper/delf_helper.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
delf_helper.py
helper functions to extract DeLF functions.
"""
import os, sys, time
import numpy as np
import h5py
import torch
import torch.nn.functional as F
import torchvision.transforms as transforms
from torch.autograd import Var... | 6,737 |
3,459 | /* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2012 CaH4e3
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Licen... | 796 |
575 | <gh_stars>100-1000
// Copyright 2017 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 "device/udev_linux/udev_watcher.h"
#include <utility>
#include "base/bind.h"
#include "base/logging.h"
#include "base/memory... | 1,963 |
2,333 | <reponame>ZhengShouDong/SDVoiceSdkDemo
//
// IFlySpeechEvent.h
// MSCDemo
//
// Created by admin on 14-8-12.
// Copyright (c) 2014年 iflytek. All rights reserved.
//
#import <Foundation/Foundation.h>
/*!
* 事件类型
*/
typedef NS_ENUM(NSUInteger,IFlySpeechEventType){
/*!
* 网络状态消息
* 在消息到达时,可通过onEvent... | 3,324 |
1,702 | package com.example.demo;
import org.springframework.boot.actuate.endpoint.annotation.Endpoint;
import org.springframework.boot.actuate.endpoint.annotation.ReadOperation;
@Endpoint(id="customnc")
public class CustomNoComponent {
@ReadOperation
public String health() {
return "OK";
}
... | 120 |
445 | <gh_stars>100-1000
"""
Loads functions that are mixed in to the standard library. E.g. builtins are
written in C (binaries), but my autocompletion only understands Python code. By
mixing in Python code, the autocompletion should work much better for builtins.
"""
import os
from itertools import chain
from jedi._compa... | 940 |
453 | #include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <wchar.h>
#include <locale.h>
#include "mbctype.h"
#include "local.h"
int
_DEFUN (_wctomb_r, (r, s, wchar, state),
struct _reent *r _AND
char *s _AND
wchar_t _wchar _AND
mbstate_t *state)
{
... | 7,630 |
5,941 | <reponame>zouhirzz/FreeRDP<filename>channels/printer/printer.h
/**
* FreeRDP: A Remote Desktop Protocol Implementation
* Definition for the printer channel
*
* Copyright 2016 <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | 496 |
3,055 | <filename>tools/font/build/single_font_files/u8g2_font_logisoso20_tf.c
/*
Fontname: -FreeType-Logisoso-Medium-R-Normal--30-300-72-72-P-38-ISO10646-1
Copyright: Created by <NAME> with FontForge 2.0 (http://fontforge.sf.net) - Brussels - 2009
Glyphs: 224/527
BBX Build Mode: 0
*/
const uint8_t u8g2_font_logisoso20... | 7,441 |
732 | // Autogenerated code. Do not modify.
package org.inferred.freebuilder.processor.source;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Preconditions;
import java.util.EnumSet;
import java.util.Objects;
import java.util.Optional;
import java.util.function.IntUnaryOperator;
import... | 5,428 |
350 | // Copyright cocotb contributors
// Licensed under the Revised BSD License, see LICENSE for details.
// SPDX-License-Identifier: BSD-3-Clause
#ifndef PY_GPI_LOGGING_H
#define PY_GPI_LOGGING_H
#include <exports.h>
#ifdef PYGPILOG_EXPORTS
#define PYGPILOG_EXPORT COCOTB_EXPORT
#else
#define PYGPILOG_EXPORT COCOTB_IMPORT... | 298 |
1,083 | // This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2019 polarphp software foundation
// Copyright (c) 2017 - 2019 zzu_softboy <<EMAIL>>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license information
// S... | 458 |
1,286 | <filename>oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/jwt/JwtEncoder.java
/*
* Copyright 2020-2022 the original 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 obtai... | 773 |
988 | /*
* 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 ... | 11,806 |
582 | <reponame>martinChenZ/spring-boot-demo<filename>security-oauth2-credentials/src/main/java/com/easy/securityOauth2Credentials/entity/Role.java
package com.easy.securityOauth2Credentials.entity;
import com.easy.securityOauth2Credentials.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.... | 214 |
372 | <filename>clients/google-api-services-videointelligence/v1/1.31.0/com/google/api/services/videointelligence/v1/model/GoogleCloudVideointelligenceV1AnnotateVideoRequest.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 o... | 3,336 |
1,350 | <filename>sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/models/CosmosItemOperation.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.cosmos.models;
/**
* Encapsulates Cosmos Item Operation
*/
public interface CosmosItemOperation {
/*... | 294 |
1,144 | /** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for AD_Window_Access
* @author Adempiere (generated)
*/
@SuppressWarnings("javadoc")
public class X_AD_Window_Access extends org.compiere.model.PO implements I_AD_Window_A... | 1,662 |
401 | <filename>tests/test_savepoints.py
import pytest
from tests import TestCase
class TestSavepoints(TestCase):
def test_flush_and_nested_rollback(self):
article = self.Article(name=u'Some article')
self.session.add(article)
self.session.flush()
self.session.begin_nested()
sel... | 661 |
647 | <reponame>gilbertguoze/trick<filename>include/trick/TrickConstant.hh
/*
PURPOSE:
(All defined constant variables.)
*/
#ifndef TRICKCONSTANT_HH
#define TRICKCONSTANT_HH
#define TRICK_MAX_LONG_LONG 9223372036854775807LL
#endif
| 104 |
1,736 | <filename>examples/parallel_for/polygon_overlay/polyover.cpp
/*
Copyright (c) 2005-2021 Intel 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.o... | 13,524 |
360 | /*
* contrib/btree_gist/btree_bytea.c
*/
#include "postgres.h"
#include "knl/knl_variable.h"
#include "btree_gist.h"
#include "btree_utils_var.h"
#include "utils/bytea.h"
/*
** Bytea ops
*/
PG_FUNCTION_INFO_V1(gbt_bytea_compress);
PG_FUNCTION_INFO_V1(gbt_bytea_union);
PG_FUNCTION_INFO_V1(gbt_bytea_picksplit);
PG_FU... | 1,751 |
643 | <reponame>wbarbosa0/hellokoding-courses<gh_stars>100-1000
package com.hellokoding.spring;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResp... | 262 |
6,238 | import ujson
from typing import Optional
from .base import SessionEngine, Session
try:
from cryptography.fernet import Fernet
except ImportError:
raise ImportError('To use encrypted sessions you need to install the cryptography library or implement your own '
'engine by extending the Sessi... | 776 |
421 | <filename>samples/snippets/cpp/VS_Snippets_Remoting/System.Net.IPAddress.IsLoopback/CPP/isloopback.cpp<gh_stars>100-1000
/*
This program checks whether the specified address is a loopback address.
It invokes the IPAddress Parse method to translate the address
input String* into the correct internal format.
The ... | 1,012 |
412 | /*******************************************************************\
Module: C Scanner
Author: <NAME>, <EMAIL>
\*******************************************************************/
/// \file
/// cscanner
#ifndef CPROVER_CRANGLER_CSCANNER_H
#define CPROVER_CRANGLER_CSCANNER_H
#include <iosfwd>
#include <vector>
... | 313 |
378 | <reponame>ShermanMarshall/tomee
/*
* 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 ... | 6,350 |
17,702 | <filename>Source/Readers/LUSequenceReader/DataWriterLocal.cpp
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//
// DataWriter.cpp : Defines the exported functions for the DLL application.
//
// TODO: Unify with... | 906 |
333 | package com.alipay.api.response;
import com.alipay.api.AlipayResponse;
/**
* ALIPAY API: alipay.open.servicemarket.commodity.extendinfos.confirm response.
*
* @author auto create
* @since 1.0, 2021-07-14 10:12:40
*/
public class AlipayOpenServicemarketCommodityExtendinfosConfirmResponse extends Alip... | 169 |
1,439 | <gh_stars>1000+
// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2015 <NAME> <<EMAIL>>
// Copyright (C) 2006-2008 <NAME> <<EMAIL>>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not di... | 6,761 |
17,481 | /*
* Copyright (C) 2021 The Dagger 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 applicable law or ag... | 2,324 |
337 | public final class Inheritor implements p.I, p.I2 {
public final void f() { /* compiled code */ }
public void g() { /* compiled code */ }
public Inheritor() { /* compiled code */ }
@org.jetbrains.annotations.NotNull
public java.lang.String foo() { /* compiled code */ }
@org.jetbrains.annotat... | 128 |
1,093 | <reponame>StandCN/spring-integration
/*
* Copyright 2015-2019 the original 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
*
* https://www.apache.org/licenses/L... | 579 |
7,676 | // Copyright 2019 Microsoft. 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 ... | 480 |
310 | # coding=utf-8
# Author: <NAME> <<EMAIL>>
#
# License: BSD 3 clause
import numpy as np
from scipy.stats import mode
from sklearn.neighbors import NearestNeighbors
"""
This file contains the implementation of different functions to measure
instance hardness. Instance hardness can be defined as the likelihood that a
g... | 1,027 |
8,649 | package org.hswebframework.web.crud.web;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import org.hswebframework.ezorm.rdb.mapping.ReactiveRepository;
import org.hswebframework.ezorm.rdb.mapping.SyncRepository;
import org.hswebframework.web.api.crud.entity.PagerResult;... | 2,862 |
879 | package org.zstack.sdk;
public class ResetTemplateConfigResult {
}
| 23 |
348 | <reponame>chamberone/Leaflet.PixiOverlay<filename>docs/data/leg-t2/062/06205773.json<gh_stars>100-1000
{"nom":"Samer","circ":"5ème circonscription","dpt":"Pas-de-Calais","inscrits":2928,"abs":1732,"votants":1196,"blancs":59,"nuls":33,"exp":1104,"res":[{"nuance":"REM","nom":"<NAME>","voix":640},{"nuance":"FN","nom":"<NA... | 144 |
514 | <filename>src/gfx/sun.cpp<gh_stars>100-1000
#include "gfx/sun.hpp"
using namespace gfx;
void Sun::update(
level::Area &area,
const util::PerspectiveCamera &camera) {
const auto old_view_proj = this->camera.proj * this->camera.view;
// TODO: configured by area size
const f32 distance = 128.0f;
... | 1,022 |
3,212 | /*
* Copyright 2014 the original 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1,152 |
8,629 | <reponame>vvd170501/ClickHouse<gh_stars>1000+
#include <Backups/BackupCoordinationHelpers.h>
#include <Storages/MergeTree/MergeTreePartInfo.h>
#include <Common/Exception.h>
#include <Common/escapeForFileName.h>
#include <IO/ReadHelpers.h>
#include <base/chrono_io.h>
#include <boost/range/adaptor/map.hpp>
namespace DB... | 6,457 |
618 | package hprose.example.io;
import hprose.io.convert.Converter;
import java.lang.reflect.Type;
import java.util.Map;
import org.apache.commons.lang3.tuple.ImmutablePair;
public class ImmutablePairConverter implements Converter<ImmutablePair> {
public static final ImmutablePairConverter instance = new ImmutablePai... | 558 |
1,299 | /*
* 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 ... | 9,395 |
1,603 | # coding: utf-8
from .ArticlesUrls import PublicAccountsWeb
from .ArticlesInfo import ArticlesInfo
class ArticlesAPI(object):
"""
整合PublicAccountsWeb和ArticlesInfo,该API慎用,不再维护
"""
def __init__(
self,
username=None,
password=<PASSWORD>,
official_cookie=No... | 6,896 |
1,664 | /*
* 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 ... | 3,571 |
333 | <reponame>alipay/alipay-sdk-java-all
package com.alipay.api.domain;
import java.util.List;
import com.alipay.api.AlipayObject;
import com.alipay.api.internal.mapping.ApiField;
import com.alipay.api.internal.mapping.ApiListField;
/**
* 支付宝商户活动批量信息查询
*
* @author auto create
* @since 1.0, 2021-07-13 16:... | 918 |
678 | <reponame>bzxy/cydia
/**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport
*/
#import <OfficeImport/CMMapper.h>
#import <OfficeImport/OfficeImport-Structs.h>
@class EDResources, CHDAxis, CMState, CHDSeries, CHDChart, CHDChartType;
_... | 851 |
3,631 | <filename>drools/drools-core/src/main/java/org/drools/core/util/AtomicBitwiseLong.java
/*
* Copyright 2015 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/lic... | 767 |
9,724 | /* poppler-link.cc: qt interface to poppler
* Copyright (C) 2006, 2008 <NAME>
* Adapting code from
* Copyright (C) 2004 by <NAME> <<EMAIL>>
*
* 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 Foundat... | 2,403 |
692 | <filename>SingularityService/src/main/java/com/hubspot/singularity/config/CustomExecutorConfiguration.java
package com.hubspot.singularity.config;
import javax.validation.constraints.Min;
import org.hibernate.validator.constraints.NotEmpty;
public class CustomExecutorConfiguration {
@Min(0)
private double numCpus... | 472 |
1,987 | <reponame>raccoongang/python-social-auth
from social_core.backends.base import BaseAuth
| 29 |
18,636 | <filename>pipenv/vendor/importlib_resources/tests/util.py
import abc
import importlib
import io
import sys
import types
from pathlib import Path, PurePath
from . import data01
from . import zipdata01
from ..abc import ResourceReader
from ._compat import import_helper
from importlib.machinery import ModuleSpec
clas... | 2,446 |
2,816 | /*
* Legal Notice
*
* This document and associated source code (the "Work") is a part of a
* benchmark specification maintained by the TPC.
*
* The TPC reserves all right, title, and interest to the Work as provided
* under U.S. and international laws, including without limitation all patent
* and trademark rig... | 1,153 |
672 | /*
* Copyright (c) 2015-2016 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* co... | 12,217 |
30,785 | <filename>jadx-core/src/test/java/jadx/tests/integration/others/TestInsnsBeforeSuper2.java
package jadx.tests.integration.others;
import org.junit.jupiter.api.Test;
import jadx.tests.api.SmaliTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
public class TestInsnsBeforeSuper2 extends Smali... | 412 |
903 | package org.develnext.jphp.core.tokenizer.token.expr.operator;
import php.runtime.common.Association;
import org.develnext.jphp.core.tokenizer.TokenMeta;
import org.develnext.jphp.core.tokenizer.TokenType;
import org.develnext.jphp.core.tokenizer.token.expr.OperatorExprToken;
public class AmpersandRefToken extends Op... | 262 |
619 | <reponame>literakl/jsoup
/**
Contains the jsoup HTML cleaner, and whitelist definitions.
*/
package org.jsoup.safety;
| 38 |
488 | #ifndef BinQT_LCS_H
#define BinQT_LCS_H
#include <boost/smart_ptr.hpp>
#include <vector>
#include <string>
#include <map>
/**
* \brief Longest common subsequence algorithm used for BinaryDiff
*/
namespace LCS
{
template<typename T>
class vector_start_at_one
{
public:
vector_start_at_... | 775 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-mvvv-8xrh-cv67",
"modified": "2022-05-13T01:31:19Z",
"published": "2022-05-13T01:31:19Z",
"aliases": [
"CVE-2019-1834"
],
"details": "A vulnerability in the internal packet processing of Cisco Aironet Series Access Points (APs) could allow an unauthenticated, a... | 629 |
376 | from django.core.management.base import BaseCommand, CommandError
from django.db import transaction
from django.contrib.auth import get_user_model
class Command(BaseCommand):
help = "Promotes the named users to an admin superuser."
def add_arguments(self, parser):
super(Command, self).add_arguments(... | 604 |
5,975 | # 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.
# flake8: noqa
import pyre
from django.http import HttpRequest
# Integration test illustrating that we check top-level functions.
request:... | 101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.