max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,503 | <filename>greykite/algo/forecast/silverkite/constants/silverkite_component.py<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 licen... | 802 |
462 | <filename>mq-proxy/mq-proxy-1/src/main/java/com/ppdai/infrastructure/proxy/HsCheckService.java
package com.ppdai.infrastructure.proxy;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.c... | 848 |
2,294 |
# Set random number generator
np.random.seed(2020)
# Initialize step_end and n
step_end = int(t_max / dt)
n = 50
# Intiatialize the list v_n with 50 values of membrane leak potential el
v_n = [el] * n
with plt.xkcd():
# Initialize the figure
plt.figure()
plt.title('Multiple realizations of $V_m$')
plt.xlabe... | 773 |
405 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
"""
"""
class NLG:
"""Base class for NLG model."""
def __init__(self):
""" Constructor for NLG class. """
pass
def generate(self, dialog_act):
"""
Generate a natural language utterance conditioned on ... | 254 |
3,544 | <filename>pywinauto/windows/uia_defines.py
# GUI Application automation and testing library
# Copyright (C) 2006-2018 <NAME> and Contributors
# https://github.com/pywinauto/pywinauto/graphs/contributors
# http://pywinauto.readthedocs.io/en/latest/credits.html
# All rights reserved.
#
# Redistribution and use in source ... | 3,749 |
984 | <reponame>om-sharma/java-driver<filename>core/src/main/java/com/datastax/oss/driver/internal/core/specex/NoSpeculativeExecutionPolicy.java<gh_stars>100-1000
/*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Lic... | 737 |
403 | package org.camunda.showcase.underwritingBPMN_CMMN;
import java.util.logging.Logger;
import org.camunda.bpm.engine.delegate.BpmnError;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
public class DuplicateCheck implements JavaDelegate {
private stat... | 281 |
496 | /*
* Copyright (C) 2018 <NAME>
*
* Author: <NAME> <<EMAIL>>
*/
#include "lexbor/html/interfaces/style_element.h"
#include "lexbor/html/interfaces/document.h"
lxb_html_style_element_t *
lxb_html_style_element_interface_create(lxb_html_document_t *document)
{
lxb_html_style_element_t *element;
element = l... | 396 |
1,968 | <gh_stars>1000+
//////////////////////////////////////////////////////////////////////////////
//
// This file is part of the Corona game engine.
// For overview and more information on licensing please refer to README.md
// Home page: https://github.com/coronalabs/corona
// Contact: <EMAIL>
//
///////////////////////... | 5,168 |
965 | CMenu mnu;
HMENU hmnu = AfxGetMainWnd()->GetMenu()->GetSafeHmenu();
mnu.Attach(hmnu);
// Now you can manipulate the window's menu as a CMenu
// object...
mnu.Detach(); | 67 |
1,338 | <reponame>Kirishikesan/haiku
/*
* Copyright 2012, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#include "ringqueue.h"
#include <stdlib.h>
#include <string.h>
#define TRACE_RENDER_QUEUE
#ifdef TRACE_RENDER_QUEUE
extern "C" void _sPrint... | 1,193 |
1,056 | <reponame>timfel/netbeans
/*
* 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.... | 1,466 |
852 | <filename>RecoBTag/SecondaryVertex/python/simpleInclusiveSecondaryVertexHighPurBJetTags_cfi.py
import FWCore.ParameterSet.Config as cms
simpleInclusiveSecondaryVertexHighPurBJetTags = cms.EDProducer("JetTagProducer",
jetTagComputer = cms.string('simpleSecondaryVertex3TrkComputer'),
tagInfos = cms.VInputTag(cms.Input... | 127 |
440 | <gh_stars>100-1000
/*========================== begin_copyright_notice ============================
Copyright (C) 2017-2021 Intel Corporation
SPDX-License-Identifier: MIT
============================= end_copyright_notice ===========================*/
#include "Compiler/Optimizer/OpenCLPasses/GenericAddressResoluti... | 7,062 |
435 | <filename>warehouse/query-core/src/test/java/datawave/query/iterator/CommaFreeType.java
package datawave.query.iterator;
import datawave.data.normalizer.AbstractNormalizer;
import datawave.data.type.BaseType;
/**
* Purely testing type to remove all commas from a string.
*/
public class CommaFreeType extends BaseTyp... | 424 |
1,755 | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
res = 50
# Create the RenderWindow, Renderers and both Actors
ren0 = vtk.vtkRenderer()
ren1 = vtk.vtkRenderer()
ren2 = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin.AddRendere... | 1,584 |
590 | from typing import Any
from ....error import GraphQLError
from ....language import FieldNode
from ....type import get_named_type, is_introspection_type
from .. import ValidationRule
__all__ = ["NoSchemaIntrospectionCustomRule"]
class NoSchemaIntrospectionCustomRule(ValidationRule):
"""Prohibit introspection que... | 415 |
5,169 | <filename>Specs/c/5/9/BitlySDK/0.2.0/BitlySDK.podspec.json
{
"name": "BitlySDK",
"version": "0.2.0",
"license": {
"type": "Copyright",
"file": "LICENSE"
},
"summary": "Bitly iOS SDK",
"description": "An SDK for receiving custom domain shortlinks via deep linking in iOS",
"homepage": "http://bitly.... | 261 |
1,144 | <gh_stars>1000+
import os
from app.server import get_health_check
get_health_check
def test_ping_api(flask_client):
assert b"pong" == flask_client.get("/ping/").get_data()
def test_ping_deploy_api(flask_client, monkeypatch):
with monkeypatch.context() as m:
m.setattr(
os.path,
... | 299 |
2,137 | <gh_stars>1000+
/*
PARTIO SOFTWARE
Copyright 2010 Disney Enterprises, Inc. 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 li... | 2,565 |
515 | package br.com.caelum.stella.gateway.amex;
import br.com.caelum.stella.gateway.core.IntegrationHandler;
/**
* Constroi o objeto que deve ser utilizado para realizar a integração em 3 partes
*
* @author <NAME>
*
*/
public class AmexSolicitaAutorizacaoPagamento implements
IntegrationHandler<AmexDado... | 407 |
522 | <gh_stars>100-1000
# Copyright 2016 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 ... | 6,076 |
1,118 | //
// UIView+SLMLeakFinder.h
// DarkMode
//
// Created by wsl on 2020/5/8.
// Copyright © 2020 https://github.com/wsl2ls ----- . All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface UIView (SLMLeakFinder)
@end
NS_ASSUME_NONNULL_END
| 121 |
597 | package com.xiaojukeji.kafka.manager.web.config;
import com.xiaojukeji.kafka.manager.bpm.common.entry.apply.OrderDTO;
import com.xiaojukeji.kafka.manager.bpm.common.entry.apply.gateway.OrderExtensionAddGatewayConfigDTO;
import com.xiaojukeji.kafka.manager.bpm.common.entry.apply.gateway.OrderExtensionModifyGatewayConfi... | 2,381 |
16,461 |
#ifndef ABI43_0_0REANIMATEDEXAMPLE_REANIMATEDHIDDEN_H
#define ABI43_0_0REANIMATEDEXAMPLE_REANIMATEDHIDDEN_H
#if defined(ONANDROID)
#include "Logger.h"
#include "LoggerInterface.h"
#include "SpeedChecker.h"
#else
#include "Common/cpp/hidden_headers/Logger.h"
#include "Common/cpp/hidden_headers/Logg... | 203 |
372 | /*
*
* (c) Copyright 1989 OPEN SOFTWARE FOUNDATION, INC.
* (c) Copyright 1989 HEWLETT-PACKARD COMPANY
* (c) Copyright 1989 DIGITAL EQUIPMENT CORPORATION
* To anyone who acknowledges that this file is provided "AS IS"
* without any express or implied warranty:
* permission to use, copy, modify, a... | 38,799 |
3,897 | /***************************************************************************//**
* \file cy_ext_wifi_fw_resources.c
*
* \brief
* Defines resource functions for BCM943340WCD1 platform adapted to work with WiFi firmware storage in external memory.
*
************************************************************************... | 5,022 |
348 | <gh_stars>100-1000
{"nom":"Bonnefamille","circ":"10ème circonscription","dpt":"Isère","inscrits":880,"abs":505,"votants":375,"blancs":24,"nuls":7,"exp":344,"res":[{"nuance":"REM","nom":"<NAME>","voix":239},{"nuance":"FN","nom":"<NAME>","voix":105}]} | 98 |
14,668 | // 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.
#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_IDENTIFIER_H_
#define CHROME_BROWSER_UI_WEBUI_SETTINGS_CHROMEOS_OS_SETTINGS_IDENTIFIER_H_
#... | 298 |
1,088 | /* Copyright 2020 Alibaba Group Holding Limited. 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 o... | 1,592 |
435 | import os
import time
import sys
import random
import multiprocessing
import argparse
from itertools import islice
from pysmt.shortcuts import reset_env, read_smtlib
def get_all_smt_files(target_dir=None):
if target_dir == None:
target_dir = "./"
assert os.path.exists(target_dir)
for root, _, f... | 988 |
596 | #pragma once
#include "IntPoint.h"
#include "Common/Common.h"
struct Vector2
{
public:
float x;
float y;
static const Vector2 ZeroVector;
static const Vector2 UnitVector;
public:
Vector2();
Vector2(float inX, float inY);
Vector2(IntPoint inPos);
FORCE_INLINE Vector2 operator+(const Vector2& v) const;... | 3,645 |
3,690 | #include <string>
using std::string;
class Solution {
public:
string addBinary(string a, string b) {
string ret;
bool carry{false};
for (auto apos=a.size(), bpos=b.size(); apos || bpos || carry; ) {
bool abit{apos && a[--apos] == '1'};
bool bbit{bpos && b[--bpos] == ... | 238 |
5,421 | # Copyright 2021, <NAME>, mailto:<EMAIL>
#
# Python tests originally created or extracted from other peoples work. The
# parts were too small to be protected.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ... | 1,790 |
2,056 | <filename>deps/gdbm/tests/d_creat_ce.c<gh_stars>1000+
/* This file is part of GDBM test suite.
Copyright (C) 2011 Free Software Foundation, Inc.
GDBM 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; ei... | 912 |
312 | <gh_stars>100-1000
//-----------------------------------------------------------------------------
// Copyright (c) 2015 <NAME>
//
// 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 ... | 1,022 |
35,620 | {
"private": true,
"dependencies": {
"@maxim_mazurok/gapi.client.playcustomapp": "latest"
}
}
| 48 |
326 | package org.araymond.joal.web.services.corelistener;
import org.araymond.joal.core.events.announce.FailedToAnnounceEvent;
import org.araymond.joal.core.events.announce.SuccessfullyAnnounceEvent;
import org.araymond.joal.core.events.announce.TooManyAnnouncesFailedEvent;
import org.araymond.joal.core.events.announce.Wil... | 931 |
1,338 | <filename>src/apps/icon-o-matic/import_export/svg/SVGExporter.cpp
/*
* Copyright 2006, Haiku. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <Alert.h>
#include <Catalog.h>
#include <DataIO.h>
#include <File.h>
#include <Loca... | 4,718 |
2,151 | <filename>tools/perf/contrib/leak_detection/leak_detection.py<gh_stars>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.
from core import perf_benchmark
from telemetry import benchmark
from telemetry.t... | 478 |
1,775 | package com.threedr3am.bug.dubbo.rouge.java;
import com.threedr3am.bug.common.utils.Reflections;
import com.threedr3am.bug.dubbo.rouge.RougeBase;
import com.threedr3am.bug.dubbo.utils.Gadgets;
import java.io.ByteArrayOutputStream;
import java.io.ObjectOutputStream;
import java.lang.reflect.Field;
import java.util.Hash... | 1,944 |
5,169 | {
"name": "CYExpandableTableView",
"version": "0.0.1",
"summary": "An expandable / collapsable table view for iOS.",
"description": "An expandable / collapsable table view for iOS , easy to use , easy to customize !",
"homepage": "https://github.com/Gocy015/CYExpandableTableView",
"license": "MIT",
"autho... | 284 |
860 | <filename>samza-core/src/test/java/org/apache/samza/operators/impl/TestAsyncFlatmapOperatorImpl.java<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 co... | 1,129 |
381 | from ssl import SSLContext
from types import TracebackType
from typing import TYPE_CHECKING, Optional, Type
from .._types import TimeoutDict
if TYPE_CHECKING: # pragma: no cover
from .sync import SyncBackend
def lookup_async_backend(name: str) -> "AsyncBackend":
if name == "auto":
from .auto import... | 1,475 |
13,889 | from kivy.compat import isclose
def test_isclose():
assert isclose(1.1, 1.1), 'Close floats should assert True'
assert not isclose(1.1, 2.1), 'Close floats should assert True'
| 66 |
827 | from nilearn.datasets._testing import request_mocker, temp_nilearn_data_dir
| 26 |
432 | <reponame>sergeykhbr/riscv_vhdl
/*
* Copyright 2021 <NAME>, <EMAIL>
*
* 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... | 478 |
6,036 | <reponame>dennyac/onnxruntime
/* Copyright 2015 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 r... | 361 |
2,163 | {"yo":{"languageNames":{"af":"Èdè Afrikani","agq":"Ágẹ̀ẹ̀mù","ak":"Èdè Akani","am":"Èdè Amariki","ar":"Èdè Árábìkì","as":"Ti Assam","asa":"Asu","ast":"Asturian","az":"Èdè Azerbaijani","bas":"Basaa","be":"Èdè Belarusi","bem":"Béḿbà","bez":"Bẹ́nà","bg":"Èdè Bugaria","bm":"Báḿbàrà","bn":"Èdè Bengali","bo":"Tibetán","br":"... | 2,654 |
347 | package org.ovirt.engine.core.common.queries;
import org.ovirt.engine.core.compat.Version;
public class GetAllServerCpuListParameters extends QueryParametersBase {
private static final long serialVersionUID = -6048741913142095068L;
public GetAllServerCpuListParameters(Version version) {
_version = ve... | 165 |
2,151 | <gh_stars>1000+
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef gm_knowledge_DEFINED
#define gm_knowledge_DEFINED
#include <cstdint>
namespace skqp {
class AssetManager;
}
namespace gmkb {
enum class Error {
... | 772 |
777 | // 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 "tools/gn/scope_per_file_provider.h"
#include "tools/gn/filesystem_utils.h"
#include "tools/gn/settings.h"
#include "tools/gn/source_file.h"... | 1,372 |
555 | <gh_stars>100-1000
package japa.parser.ast.body;
/**
* Element with a declaration representable as a String.
*
* @author <NAME>
* @since July 2014
*/
public interface WithDeclaration {
/**
* As {@link japa.parser.ast.body.WithDeclaration#getDeclarationAsString(boolean, boolean, boolean)} including
... | 271 |
333 | #!/usr/bin/env python3
from pwn import *
PATH = './challenge'
def get_offset():
p = process(PATH)
c = cyclic(50000)
p.sendline(c)
p.recvuntil('[check] 0x')
check = p.recvline().strip()
sequence = unhex(check) # extract cyclic from hex ptr
little_endian = u32(sequen... | 243 |
6,989 | <filename>contrib/libs/linux-headers/asm/sigcontext.h
#if defined(__arm__)
#include "sigcontext_arm.h"
#elif defined(__aarch64__)
#include "sigcontext_arm64.h"
#elif defined(__powerpc__)
#include "sigcontext_powerpc.h"
#elif defined(__i386__) || defined(__x86_64__)
#include "sigcontext_x86.h"
#else
#error unexpected
#e... | 135 |
2,151 | // Copyright 2018 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 "components/ukm/content/debug_page/debug_page.h"
#include "base/memory/ref_counted_memory.h"
#include "components/ukm/debug/ukm_debug_data_extra... | 353 |
1,862 | <filename>arduino/portable/sketchbook/libraries/blinker/src/modules/painlessMesh/painlessmesh/logger.hpp
#ifndef _PAINLESS_MESH_LOGGER_HPP_
#define _PAINLESS_MESH_LOGGER_HPP_
namespace painlessmesh {
namespace logger {
#include <stdarg.h>
#include <Arduino.h>
typedef enum {
ERROR = 1 << 0,
STARTUP = 1 << 1,
MES... | 1,644 |
1,975 | <gh_stars>1000+
// Copyright 2010 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law... | 824 |
642 | #import "GPUImage3x3TextureSamplingFilter.h"
@interface GPUimageDirectionalSobelEdgeDetectionFilter : GPUImage3x3TextureSamplingFilter
@end
| 46 |
375 | /*
* Copyright 2015 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.testdata.model.table.exec.descs;
import java.util.Optional;
import java.util.stream.Stream;
import org.rf.ide.core.environment.RobotVersion;
... | 1,221 |
1,125 | <reponame>peterjc123/XNNPACK
// Copyright 2019 Google LLC
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
// Auto-generated file. Do not edit!
// Specification: test/f32-vrelu.yaml
// Generator: tools/generate-vunary-test.py
... | 15,176 |
432 | /*
* Copyright (c) 1988, 1992 The University of Utah and the Center
* for Software Science (CSS).
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* the Center for Software Science of the University o... | 1,177 |
462 | <filename>backend/cloud_inquisitor/schema/issues.py
from sqlalchemy import Column, String, ForeignKey
from sqlalchemy.dialects.mysql import INTEGER as Integer, JSON
from sqlalchemy.orm import foreign, relationship
from cloud_inquisitor.database import db, Model
from cloud_inquisitor.schema.base import BaseModelMixin
... | 1,515 |
956 | /* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2020 Mellanox Technologies, Ltd
*/
#ifndef _IP_H_
#define _IP_H_
#define IPVERSION 4
#endif
| 59 |
348 | {"nom":"Barbaggio","circ":"1ère circonscription","dpt":"Haute-Corse","inscrits":218,"abs":97,"votants":121,"blancs":7,"nuls":2,"exp":112,"res":[{"nuance":"REG","nom":"<NAME>","voix":65},{"nuance":"LR","nom":"<NAME>","voix":47}]} | 91 |
1,099 | # Copyright 2018 The Bazel 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 la... | 439 |
2,792 | // Copyright 2018,2019,2020,2021 Sony Corporation.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable... | 1,328 |
3,227 | <reponame>ffteja/cgal
/*!
* \ingroup PkgArrangementOnSurface2ConceptsTraits
* \cgalConcept
*
* Models of the concept `ArrangementSphericalBoundaryTraits_2` handle curves on
* a sphere or a surface that is topological equivalent to a sphere. The sphere
* is oriented in such a way that the boundary of the rectangul... | 1,082 |
921 | // Copyright (c) 2015-2020 <NAME> <<EMAIL>> Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.vladsch.md.nav.language;
import com.vladsch.flexmark.ext.toc.SimTocGenerateOnFormat;
import com.vladsch.plugin.util.ui.ComboBoxAdaptable;
import com.vladsch.plug... | 591 |
456 | <gh_stars>100-1000
{
"index_name": "bigcommerce",
"start_urls": [
"https://support.bigcommerce.com/",
"https://support.bigcommerce.com/guides",
"https://support.bigcommerce.com/university",
"https://support.bigcommerce.com/documentation"
],
"stop_urls": [
"https://support.bigcommerce.com/gui... | 412 |
370 | package com.fasterxml.jackson.datatype.jsr310.key;
import java.time.OffsetTime;
import java.time.ZoneOffset;
import java.util.Map;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.... | 976 |
892 | <reponame>westonsteimel/advisory-database-github<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-vmjv-4cc9-q9mj",
"modified": "2022-04-22T00:00:47Z",
"published": "2022-04-15T00:00:36Z",
"aliases": [
"CVE-2020-16238"
],
"details": "A vulnerability in the configuration import mechanism of th... | 551 |
695 | #pragma once
#ifndef _MSC_VER
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wold-style-cast"
#else
#pragma warning(push)
#pragma warning(disable : 4267 4146)
#endif
#include <stdint.h>
#include <string.h>
/**
* Return the ZigZag-encoded 32-bit unsigned integer form of a 32-bit signed
* integer.
*
... | 2,637 |
7,629 | <reponame>FeliciaLim/oss-fuzz<gh_stars>1000+
/* Copyright 2021 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicabl... | 1,136 |
1,148 | #include<iostream>
#include<math.h>
#include<conio.h>
using namespace std;
class set
{
int *a,n;
public:
void getdata()
{
cout<<"Enter number of elements of set: ";
cin>>n;
a = new int[n];
cout<<"Enter elements of set: ";
for(int i=0;i<n;i++)
{
cin>>a[i];
}
}
void unique()
{
for(... | 761 |
575 | // 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 CHROME_BROWSER_UI_VIEWS_USER_EDUCATION_FEATURE_PROMO_BUBBLE_TIMEOUT_H_
#define CHROME_BROWSER_UI_VIEWS_USER_EDUCATION_FEATURE_PROMO_BUBBLE_TIMEOUT... | 453 |
648 | {"resourceType":"DataElement","id":"Condition.evidence","meta":{"lastUpdated":"2015-10-24T07:41:03.495+11:00"},"url":"http://hl7.org/fhir/DataElement/Condition.evidence","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"path":"Condition.evidence","short":"Supporting evidence","definition"... | 237 |
1,645 | <filename>web-item-importer/src/main/java/io/seldon/importer/articles/dynamicextractors/FirstElementAttrValueDateDynamicExtractor.java
/*
* Seldon -- open source prediction engine
* =======================================
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
*****... | 1,222 |
5,714 | #!/usr/bin/env python3
#
# Copyright (C) 2016-present the asyncpg authors and contributors
# <see AUTHORS file>
#
# This module is part of asyncpg and is released under
# the Apache 2.0 License: http://www.apache.org/licenses/LICENSE-2.0
import argparse
import builtins
import re
import string
import textwrap
from as... | 2,459 |
335 | {
"word": "Twist",
"definitions": [
"Form into a bent, curling, or distorted shape.",
"Form (something) into a particular shape by taking hold of one or both ends and turning them.",
"Turn or bend into a specified position or in a specified direction.",
"Remove something by pulli... | 364 |
1,781 | <filename>src/chapter3/section1/Exercise22_SelfOrganizingSearch.java
package chapter3.section1;
import edu.princeton.cs.algs4.Queue;
import edu.princeton.cs.algs4.StdOut;
/**
* Created by <NAME> on 24/04/17.
*/
@SuppressWarnings("unchecked")
public class Exercise22_SelfOrganizingSearch {
public class ArraySTSe... | 2,728 |
303 | // See Copyright Notice in gmMachine.h
#include "gmmachine.h"
#include "gmthread.h"
#include "gmdebug.h"
#include "gmstreambuffer.h"
// libs
#include "gmmathlib.h"
#include "gmstringlib.h"
#include "gmarraylib.h"
#include "gmsystemlib.h"
#include "gmvector3lib.h"
#include "timer.h"
#include "NetClient.h"
#include ... | 4,848 |
678 | <filename>injector Xcode sh/touchSettingBundle.bundle/msg.json
[{"msg_id":7,"bundleid":"all","version":"all","type":"normal","notification":{"alert":"Hi, JPush!","title":"title"},"message":{"msg_content":"Hi,JPush","content_type":"text","title":"msg","btn_title":"","btn_url":""},"options":{"production":0}},{"msg_id":8... | 250 |
626 | <reponame>zoercai/opencensus-java<gh_stars>100-1000
/*
* Copyright 2016-17, OpenCensus 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/LI... | 4,641 |
386 | /**
* Tencent is pleased to support the open source community by making Tars available.
*
* Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
* in compliance with the License. You may obtain a c... | 978 |
4,012 | <filename>python/dask_cudf/dask_cudf/accessors.py
# Copyright (c) 2021, NVIDIA CORPORATION.
class StructMethods:
def __init__(self, d_series):
self.d_series = d_series
def field(self, key):
"""
Extract children of the specified struct column
in the Series
Parameters
... | 4,238 |
818 | <reponame>torydebra/grt<filename>GRT/PostProcessingModules/ClassLabelTimeoutFilter.cpp
/*
GRT MIT License
Copyright (c) <2012> <<NAME>, Media Lab, MIT>
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 ... | 4,688 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-wv5m-r3h8-56gx",
"modified": "2022-04-30T18:21:07Z",
"published": "2022-04-30T18:21:07Z",
"aliases": [
"CVE-2002-1410"
],
"details": "Easy Guestbook CGI programs do not authenticate the administrator, which allow... | 466 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-52q3-cgph-xhf4",
"modified": "2022-05-02T06:15:29Z",
"published": "2022-05-02T06:15:29Z",
"aliases": [
"CVE-2010-0759"
],
"details": "Directory traversal vulnerability in plugins/system/cdscriptegrator/libraries/... | 661 |
12,718 | <gh_stars>1000+
/**
* This file is part of the mingw-w64 runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
*/
#include <winapifamily.h>
#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#if _WIN32_WINNT >= 0x0602
#include "devpropdef.h"
DEFINE_DEVPROPKEY(DEVPKEY_DeviceI... | 201 |
2,032 | <filename>phxqueue_phxrpc/test/config_check_main.cpp
/*
Tencent is pleased to support the open source community by making PhxQueue available.
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in complianc... | 1,129 |
522 | <reponame>konny0311/algorithms-nutshell-2ed
package algs.model.tests.convexhull;
import org.junit.Test;
import algs.model.problems.convexhull.graham.PolarAnglePoint;
import algs.model.twod.TwoDPoint;
import junit.framework.TestCase;
public class PolarAnglePointTest extends TestCase {
// PolarAnglePoint
@Test
pu... | 465 |
945 | <gh_stars>100-1000
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 <NAME>
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed W... | 566 |
1,025 | <filename>fluent-validator-jsr303/src/test/java/com/baidu/unbiz/fluentvalidator/exception/MyException.java
package com.baidu.unbiz.fluentvalidator.exception;
/**
* @author zhangxu
*/
public class MyException extends RuntimeException {
public MyException() {
}
public MyException(String message) {
... | 128 |
663 | <gh_stars>100-1000
#!/usr/bin/env python
from agate.aggregations.base import Aggregation
from agate.aggregations.has_nulls import HasNulls
from agate.aggregations.percentiles import Percentiles
from agate.data_types import Number
from agate.exceptions import DataTypeError
from agate.warns import warn_null_calculation
... | 462 |
32,544 | package com.baeldung.collection.filtering;
/**
* Java 8 Collection Filtering by List of Values base class.
*
* @author <NAME>
*/
public class Employee {
private Integer employeeNumber;
private String name;
private Integer departmentId;
public Employee(Integer employeeNumber, String name, Integer ... | 338 |
669 | //
// ViewController.h
// WMZDropDownMenu
//
// Created by wmz on 2019/11/19.
// Copyright © 2019 wmz. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property(nonatomic,strong)NSArray *taData;
@property(nonatomic,strong)UITableView *ta;
@end
| 107 |
880 | <gh_stars>100-1000
package com.byox.drawview.enums;
/**
* Created by IngMedina on 29/04/2017.
*/
public enum BackgroundType {
FILE,
BITMAP,
BYTES
}
| 70 |
2,144 | /**
* 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... | 409 |
4,054 | /*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.vulkan;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
/**
* This extension adds a new function to reset... | 1,360 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.