max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
892 | <reponame>github/advisory-database
{
"schema_version": "1.2.0",
"id": "GHSA-wmqx-7q2f-fcf6",
"modified": "2022-05-12T00:01:59Z",
"published": "2022-04-30T00:00:37Z",
"aliases": [
"CVE-2022-1534"
],
"details": "Buffer Over-read at parse_rawml.c:1416 in GitHub repository bfabiszewski/libmobi prior to 0.... | 551 |
14,425 | <reponame>bzhaoopenstack/hadoop<gh_stars>1000+
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apach... | 4,963 |
544 | from office365.runtime.client_value import ClientValue
from office365.runtime.client_value_collection import ClientValueCollection
from office365.search.search_hits_container import SearchHitsContainer
class SearchResponse(ClientValue):
"""Represents results from a search query, and the terms used for the query."... | 217 |
416 | <gh_stars>100-1000
//
// INMediaItem.h
// Intents
//
// Copyright (c) 2016-2017 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Intents/INMediaItemType.h>
@class INImage;
NS_ASSUME_NONNULL_BEGIN
API_AVAILABLE(ios(12.0), watchos(5.0))
API_UNAVAILABLE(macosx)
@interface INMediaItem :... | 452 |
5,964 | <reponame>wenfeifei/miniblink49
/*
* Copyright 2011 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0... | 1,936 |
3,799 | /*
* Copyright (C) 2018 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... | 1,382 |
8,657 | /*
* Copyright (c) 2020 Fastly, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publis... | 1,740 |
1,027 | <reponame>destenson/brave--muon
// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "atom/common/atom_command_line.h"
#include "base/command_line.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_s... | 383 |
8,772 | package org.apereo.cas.web.support;
import org.apereo.cas.configuration.CasConfigurationProperties;
import org.apereo.cas.throttle.AuthenticationThrottlingExecutionPlan;
import org.apereo.cas.web.BaseCasActuatorEndpoint;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.boot.actuate.endpoint.... | 568 |
304 | <reponame>NoahFetz/CloudNet-v3<filename>cloudnet-modules/cloudnet-labymod/src/main/java/eu/cloudnetservice/cloudnet/ext/labymod/LabyModConstants.java<gh_stars>100-1000
/*
* Copyright 2019-2021 CloudNetService team & contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use t... | 459 |
364 | <gh_stars>100-1000
package com.linkedin.dagli.transformer;
import com.linkedin.dagli.distribution.DenseVectorFromDistribution;
import com.linkedin.dagli.distribution.SparseVectorFromDistribution;
import com.linkedin.dagli.evaluation.MultinomialEvaluation;
import com.linkedin.dagli.function.FunctionResult1;
import com.... | 3,135 |
640 | <gh_stars>100-1000
#include <iostream>
using namespace std;
class Animal {
//int age;
public:
int age;
};
class Dog : Animal {
public:
void SetAge(int n) {age = n;}
};
int main()
{
Dog d;
d.SetAge(2);
return 0;
}
| 117 |
190,993 | <reponame>ashutom/tensorflow-upstream
/* 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
... | 2,386 |
403 | #ifndef VKPP_IMAGE_HH
#define VKPP_IMAGE_HH
#include <vkhr/image.hh>
#include <vkpp/device_memory.hh>
#include <vkpp/sampler.hh>
#include <vkpp/buffer.hh>
#include <vulkan/vulkan.h>
#include <cstdint>
#include <utility>
namespace vkpp {
class Queue;
class CommandPool;
class CommandBuffer;
class Devi... | 2,981 |
8,844 | import javax.swing.JOptionPane;
| 15 |
1,772 | from django.test import TestCase
from dojo.tools.pmd.parser import PmdParser
from dojo.models import Test
class TestPMDParser(TestCase):
def test_parse_file_with_no_vuln_has_no_findings(self):
testfile = open("dojo/unittests/scans/pmd/pmd_no_vuln.csv")
parser = PmdParser()
findings = pars... | 459 |
1,316 | #pragma once
#ifndef UTIL_H_YRIZ63UJ
#define UTIL_H_YRIZ63UJ
#include "rpc/msgpack.hpp"
#include "rpc/detail/make_unique.h"
namespace rpc {
namespace detail {
template <typename T> RPCLIB_MSGPACK::object_handle pack(T &&o) {
auto z = rpc::detail::make_unique<RPCLIB_MSGPACK::zone>();
RPCLIB_MSGPACK::object ob... | 218 |
1,738 | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 750 |
348 | {"nom":"Saint-Pierre-du-Val","circ":"3ème circonscription","dpt":"Eure","inscrits":430,"abs":233,"votants":197,"blancs":10,"nuls":2,"exp":185,"res":[{"nuance":"MDM","nom":"<NAME>","voix":117},{"nuance":"FN","nom":"<NAME>","voix":68}]} | 93 |
1,056 | <filename>ide/xml.multiview/src/org/netbeans/modules/xml/multiview/ui/PanelView.java
/*
* 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 licens... | 3,406 |
1,391 | <reponame>newluhux/plan9port
#include <u.h>
#include <libc.h>
#include <venti.h>
enum {
OVtErrType, /* illegal */
OVtRootType,
OVtDirType,
OVtPointerType0,
OVtPointerType1,
OVtPointerType2,
OVtPointerType3,
OVtPointerType4,
OVtPointerType5,
OVtPointerType6,
OVtPointerType7, /* not used */
OVtPointerType... | 571 |
373 | <gh_stars>100-1000
/** @file
This file contains internal PSF routines for PCH PSF VER2 lib usage
Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi/UefiBaseType.h>
#include <Library/IoLib.h>
#include <Library/DebugLib.h>
#inclu... | 1,240 |
3,765 | <reponame>zhangxinngang/pmd
/*
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
*/
package net.sourceforge.pmd.lang.ecmascript.ast;
import net.sourceforge.pmd.annotation.InternalApi;
public interface TrailingCommaNode {
boolean isTrailingComma();
@Deprecated
@InternalApi
... | 137 |
1,503 | <reponame>Lynsea/Mango
//
// MFOriginalMethodTest.h
// MangoFixTests
//
// Created by yongpengliang on 2019/3/28.
// Copyright © 2019 yongpengliang. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface MFOriginalMethodTest : NSObject
- (NSString *)testOriginalMethod;
@en... | 137 |
3,269 | <reponame>Sourav692/FAANG-Interview-Preparation<gh_stars>1000+
# Time: O(n)
# Space: O(n)
import collections
class Solution(object):
def deckRevealedIncreasing(self, deck):
"""
:type deck: List[int]
:rtype: List[int]
"""
d = collections.deque()
deck.sort(reverse=T... | 236 |
1,848 | <reponame>dustlang/rust-bindgen
// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq
//
int (*foo) (int x, int y);
| 56 |
852 | <reponame>ckamtsikis/cmssw
#include "FWCore/PluginManager/interface/PluginManager.h"
#include "FWCore/PluginManager/interface/standard.h"
#include "RecoLuminosity/LumiProducer/interface/DataPipe.h"
#include "RecoLuminosity/LumiProducer/interface/DataPipeFactory.h"
#include <sstream>
#include <iostream>
int main(int arg... | 1,393 |
335 | <reponame>Safal08/Hacktoberfest-1
{
"word": "Trivialize",
"definitions": [
"Make (something) seem less important, significant, or complex than it really is."
],
"parts-of-speech": "Verb"
} | 88 |
1,056 | /*
* 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 ... | 2,190 |
636 | from .libindy import do_call, create_cb
from ctypes import *
import logging
async def get_schema(pool_handle: int, wallet_handle: int, submitter_did: str, id: str, options_json: str) -> str:
"""
Gets schema json data for specified schema id.
If data is present inside of cache, cached data is returned.
... | 3,351 |
432 | <filename>usr.sbin/sshd/auth-passwd-custom.c
/*
* Copyright (c) 2019 The DragonFly Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain t... | 851 |
1,027 | <filename>brave/browser/api/navigation_handle.cc<gh_stars>1000+
// Copyright 2017 Brave 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 "brave/browser/api/navigation_handle.h"
#include "atom/common/native_mate_converters/co... | 3,123 |
692 | #include <config.h>
#include <math.h>
#include <stdlib.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_dft_complex.h>
#include <gsl/gsl_dft_complex_float.h>
#include "complex_internal.h"
#include "urand.c"
#define BASE_DOUBLE
#include "templates_on.h"
#include ... | 230 |
3,442 | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Copyright @ 2015 Atlassian Pty Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 2,828 |
380 | /*
* oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text.
*
* Copyright (c) 2014, Gluu
*/
package org.gluu.oxauth.client;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.a... | 15,238 |
1,511 | {
"model_version": "4.0.0",
"group_id": "org.apache.maven.plugins",
"artifact_id": "maven-surefire-plugin",
"version": "2.4.2",
"classifier": null,
"packaging": "maven-plugin",
"parent": {
"group_id": "org.apache.maven.surefire",
"artifact_id": "surefire",
"version": "2.4.2",
"classifier":... | 1,408 |
2,023 | <filename>recipes/Python/334621_List_Dictionaries_Memory/recipe-334621.py<gh_stars>1000+
#!/usr/bin/python2.4
import types
class Table(object):
"""A structure which implements a list of dict's."""
def __init__(self, *args):
self.columns = args
self.rows = []
def _createRow(self, k,... | 818 |
1,602 | <filename>third-party/qthread/qthread-src/test/benchmarks/generic/time_gcd.c
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <qthread/qtimer.h>
#include "qt_gcd.h"
#include "argparsing.h"
static inline size_t shift_gcd(
size_t a,
size_t b)
{
... | 1,641 |
437 | package com.fasterxml.jackson.dataformat.xml.stream;
import java.io.*;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.dataformat.xml.XmlFactory;
import com.fasterxml.jackson.dataformat.xml.XmlTestBase;
import com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser;
public class XmlParserNextXxxT... | 619 |
1,456 | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2018.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | 8,531 |
964 | <filename>assets/queries/terraform/kubernetes/default_service_account_in_use/metadata.json
{
"id": "737a0dd9-0aaa-4145-8118-f01778262b8a",
"queryName": "Default Service Account In Use",
"severity": "MEDIUM",
"category": "Insecure Configurations",
"descriptionText": "Default service accounts should not be acti... | 187 |
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.... | 572 |
1,144 | <gh_stars>1000+
package org.compiere.model;
import javax.annotation.Nullable;
import org.adempiere.model.ModelColumn;
/** Generated Interface for AD_WF_Block
* @author metasfresh (generated)
*/
public interface I_AD_WF_Block
{
String Table_Name = "AD_WF_Block";
// /** AD_Table_ID=647 */
// int Table_ID = org.... | 1,670 |
634 | /*
* Copyright 2013-2017 consulo.io
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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 ... | 543 |
634 | /****************************************************************
* 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... | 919 |
347 | <filename>frontend/webadmin/modules/uicommonweb/src/main/java/org/ovirt/engine/ui/uicommonweb/models/dnsconfiguration/DnsConfigurationModel.java
package org.ovirt.engine.ui.uicommonweb.models.dnsconfiguration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import org.ovirt.engine.core... | 2,221 |
634 | <reponame>consulo/consulo<gh_stars>100-1000
/*
* Copyright 2013-2021 consulo.io
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unl... | 782 |
348 | {"nom":"Saint-Aubin","circ":"3ème circonscription","dpt":"Jura","inscrits":1326,"abs":671,"votants":655,"blancs":8,"nuls":3,"exp":644,"res":[{"nuance":"LR","nom":"<NAME>","voix":188},{"nuance":"MDM","nom":"<NAME>","voix":181},{"nuance":"FN","nom":"M. <NAME>","voix":102},{"nuance":"FI","nom":"M. <NAME>","voix":94},{"nua... | 220 |
626 | <filename>api/src/main/java/io/opencensus/trace/BaseMessageEvent.java
/*
* Copyright 2018, 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.... | 394 |
1,694 | <reponame>CrackerCat/iWeChat
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>.
//
#import "NSObject-Protocol.h"
@class TXSAudioPacket, TXSNALPacket;
@protocol TXICaptureAndEncDelegate <NSObjec... | 168 |
879 | package org.zstack.kvm;
import org.zstack.core.Platform;
import org.zstack.header.allocator.HostAllocatorFilterExtensionPoint;
import org.zstack.header.allocator.HostAllocatorSpec;
import org.zstack.header.host.HostVO;
import org.zstack.header.vm.VmInstanceConstant;
import org.zstack.utils.Utils;
import org.zstack.uti... | 1,384 |
7,407 | // Copyright (C) 2016 Google Inc.
//
// 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 License, or
// (at your option) any later version.
//
// This program is distribut... | 1,390 |
1,484 | <gh_stars>1000+
[{"Vulnerability": {"Severity": "Critical", "NamespaceName": "rhel:7", "FixedIn": [{"VersionFormat": "rpm", "NamespaceName": "rhel:7", "Version": "1:1.7.0.151-2.6.11.1.el7_4", "Name": "java-1.7.0-openjdk-devel"}, {"VersionFormat": "rpm", "NamespaceName": "rhel:7", "Version": "1:1.7.0.151-2.6.11.1.el7_4"... | 1,183 |
1,475 | <filename>geode-gfsh/src/test/java/org/apache/geode/management/internal/cli/commands/AlterQueryServiceCommandTest.java
/*
* 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 copyri... | 3,845 |
2,721 | <reponame>dpchandra/cardslib
/*
* ******************************************************************************
* Copyright (c) 2013-2014 <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 ... | 1,450 |
454 | <reponame>zwkjhx/vertx-zero
/*
* This file is generated by jOOQ.
*/
package cn.vertxup.rbac.domain.tables;
import cn.vertxup.rbac.domain.Db;
import cn.vertxup.rbac.domain.Indexes;
import cn.vertxup.rbac.domain.Keys;
import cn.vertxup.rbac.domain.tables.records.SPacketRecord;
import org.jooq.*;
import org.jooq.impl.... | 3,823 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iWorkImport.framework/iWorkImport
*/
#import <iWorkImport/XXUnknownSuperclass.h>
#import <iWorkImport/GQDWPLineSpacing.h>
#import <iWorkImport/GQDNameMappable.h>
#import <iWorkImport/iWorkImport-Structs.h>
__attrib... | 287 |
416 | <gh_stars>100-1000
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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/li... | 4,836 |
1,310 | ///
/// \file primitive.hpp
///
/// This file defines primitive patterns supported by our library.
///
/// \author <NAME> <<EMAIL>>
///
/// This file is a part of Mach7 library (http://parasol.tamu.edu/mach7/).
/// Copyright (C) 2011-2012 Texas A&M University.
/// All rights reserved.
///
#pragma once
#... | 5,739 |
5,079 | # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
#
# Portions Copyright 2007-2015, <NAME>. All rights reserved.
#
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta... | 8,221 |
14,668 | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from .composition_parts import Identifier
from .composition_parts import WithCodeGeneratorInfo
from .composition_parts import WithComponent
from .composition... | 675 |
2,151 | // 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.
#include "ash/system/session/logout_button_tray.h"
#include <memory>
#include "ash/public/cpp/ash_pref_names.h"
#include "ash/public/cpp/ash_typography.... | 2,078 |
1,176 | <reponame>utkarsh39/bustub
//===----------------------------------------------------------------------===//
//
// BusTub
//
// checkpoint_manager.h
//
// Identification: src/include/recovery/checkpoint_manager.h
//
// Copyright (c) 2015-2019, Carnegie Mellon University Database Group
//
//===---... | 392 |
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... | 4,680 |
628 | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from guardian.shortcuts import get_objects_for_user
from rest_framework import generics
from rest_framework import permissions
from rest_framework.exceptions import NotFound, PermissionDenied
from api.actions.permissions import ReviewActionPermission
fro... | 3,783 |
5,250 | /* 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 writing, software
* distribut... | 6,724 |
634 | /*
* Copyright 2000-2013 JetBrains s.r.o.
*
* 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 agre... | 502 |
14,425 | /**
* 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... | 960 |
552 | /** @file Rect.h
@author <NAME>
This work is released to Public Domain, do whatever you want with it.
*/
#ifndef TOY_RECT_H
#define TOY_RECT_H
#include <vector>
#include <cstring>
struct RectSize
{
int width;
int height;
};
struct BPRect
{
int x;
int y;
int width;
int height;
};
/// Performs a lexicograph... | 654 |
1,056 | /*
* 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 ... | 7,954 |
2,881 | import io, sys, copy as cpy, traceback as tbk, types as typ, time as tme
import hashlib as hsh, state as sta, algorecord as rec, pickle as pkl, io
def bounded_exec(code, limit, report):
D = {'hash': hsh.md5(code.encode('utf-8')).hexdigest(),
'line': [], 'steps': 0}
def update(lines):
D['steps... | 349 |
5,169 | {
"name": "BCMarkdown",
"version": "1.0.1",
"summary": "BCMarkdown",
"homepage": "https://bearychat.com/",
"license": {
"type": "MIT"
},
"authors": {
"lang": "<EMAIL>"
},
"source": {
"http": "http://dc-poc-main-public.oss-cn-shenzhen.aliyuncs.com/ios/BCMarkdown/BCMarkdown_03-11-2021-15-09-... | 249 |
456 | {
"index_name": "replicated",
"start_urls": [
"https://help.replicated.com/docs/",
"https://help.replicated.com/categories/getting-started/",
"https://help.replicated.com/categories/packaging-an-application/",
"https://help.replicated.com/categories/distributing-an-application/",
"https://help.r... | 411 |
746 | <filename>Eclipse/projects/fundamentals/11th/TestTargetSample/src/jp/mixi/sample/test/TestTargetContentProvider.java<gh_stars>100-1000
package jp.mixi.sample.test;
import android.annotation.SuppressLint;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
i... | 3,030 |
307 | <reponame>nschlemm/django-tagulous
"""
Test models for capitalised app names (#60)
"""
from django.db import models
import tagulous
class CapitalisedTest(models.Model):
"""
For tests which need a capitalised table name
"""
name = models.CharField(max_length=10)
singletag = tagulous.models.Single... | 134 |
897 | <filename>C-Plus-Plus/graphs/number_of_connected_components.cpp<gh_stars>100-1000
/*
Given total number of nodes in an undirected graph
numbered from 1 to n [ number of nodes] and total number of edges in the graph.
Calculate the total number of connected components in the graph.
*/
#include <bits/stdc++.h>
usi... | 911 |
7,521 | <gh_stars>1000+
#!/usr/bin/env python
from __future__ import print_function
import sys
import subprocess
if len(sys.argv) == 4:
first = [sys.argv[1], sys.argv[2]]
second = [sys.argv[3]]
else:
first = [sys.argv[1]]
second = [sys.argv[2]]
print('running: ', first)
S0 = subprocess.check_output(first, stderr=sub... | 195 |
884 | /*
* Copyright 2014 - 2021 Blazebit.
*
* 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 agre... | 2,218 |
2,151 | // 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 "components/viz/common/frame_sinks/copy_output_util.h"
#include <stdint.h>
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/vector2d... | 1,004 |
682 | #pragma once
#include "tatum/graph_walkers/SerialWalker.hpp"
#include "tatum/SetupHoldAnalysis.hpp"
#include "tatum/analyzers/SetupHoldTimingAnalyzer.hpp"
#include "tatum/base/validate_timing_graph_constraints.hpp"
namespace tatum { namespace detail {
/**
* A concrete implementation of a SetupHoldTimingAnalyzer.
*
... | 3,036 |
3,084 | <filename>wpd/WpdHelloWorldDriver/WpdObjectEnum.cpp
#include "stdafx.h"
#include "WpdObjectEnum.tmh"
WpdObjectEnumerator::WpdObjectEnumerator()
{
}
WpdObjectEnumerator::~WpdObjectEnumerator()
{
}
HRESULT WpdObjectEnumerator::DispatchWpdMessage(_In_ REFPROPERTYKEY Command,
... | 7,274 |
7,137 | <filename>server-core/src/main/java/io/onedev/server/web/editable/buildspec/imports/ImportCssResourceReference.java
package io.onedev.server.web.editable.buildspec.imports;
import io.onedev.server.web.page.base.BaseDependentCssResourceReference;
public class ImportCssResourceReference extends BaseDependentCssResource... | 148 |
1,006 | /****************************************************************************
* boards/arm/lpc17xx_40xx/pnev5180b/src/lpc17_40_romfs.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional informatio... | 1,544 |
2,151 | <filename>opt/setupwizard/library/test/src/com/android/setupwizardlib/test/IllustrationTest.java
/*
* Copyright (C) 2015 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 ... | 717 |
2,333 | <filename>MobileProject/MobileProject/App/BaseModule/FMCategory/CoreData/NSManagedObject/NSManagedObject+Extensions.h
//
// NSManagedObject+Extensions.h
// kemmler
//
// Created by <NAME> on 28.10.13.
// Copyright (c) 2013 Coeus Solutions GmbH. All rights reserved.
//
#import <CoreData/CoreData.h>
#import "NSManag... | 359 |
1,419 | <filename>src/integrationtest/python/issue_768_module_tests.py
# -*- coding: utf-8 -*-
#
# This file is part of PyBuilder
#
# Copyright 2011-2021 PyBuilder Team
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may ob... | 722 |
1,444 | package mage.abilities.keyword;
import mage.MageObject;
import mage.game.Game;
import java.io.ObjectStreamException;
/**
* Hexproof from white (This creature or player can't be the target of white
* spells or abilities your opponents control.)
*
* @author igoudt
*/
public class HexproofFromWhiteAbility extends ... | 408 |
997 | #ifndef PQCLEAN_SPHINCSSHA256256SROBUST_AVX2_PARAMS_H
#define PQCLEAN_SPHINCSSHA256256SROBUST_AVX2_PARAMS_H
/* Hash output length in bytes. */
#define PQCLEAN_SPHINCSSHA256256SROBUST_AVX2_N 32
/* Height of the hypertree. */
#define PQCLEAN_SPHINCSSHA256256SROBUST_AVX2_FULL_HEIGHT 64
/* Number of subtree layer. */
#def... | 1,511 |
553 | /**
* Copyright (C) <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 writin... | 1,498 |
2,073 | /**
* 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... | 1,052 |
777 | // 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_ASSISTANT_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_ASSISTANT_H_
#include <memory>
#include ... | 713 |
16,461 | package abi41_0_0.expo.modules.notifications.serverregistration;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.UUI... | 1,596 |
903 | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (<EMAIL>)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** ... | 3,144 |
421 | from ...testcases import DustyIntegrationTestCase
from ...fixtures import busybox_single_app_bundle_fixture
class TestStopCLI(DustyIntegrationTestCase):
def setUp(self):
super(TestStopCLI, self).setUp()
busybox_single_app_bundle_fixture(num_bundles=3)
self.run_command('bundles activate busy... | 936 |
14,668 | // Copyright 2021 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/common/channel_info.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#in... | 3,068 |
1,331 | <gh_stars>1000+
/*!
* @file wmi.h
* @brief Declarations for WMI request handlers.
*/
#ifndef _METERPRETER_SOURCE_EXTENSION_EXTAPI_WMI_H
#define _METERPRETER_SOURCE_EXTENSION_EXTAPI_WMI_H
DWORD request_wmi_query(Remote *remote, Packet *packet);
#endif
| 105 |
1,475 | /*
* 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 ... | 4,690 |
5,169 | <filename>Specs/e/2/8/EXUScrollTabController/0.11/EXUScrollTabController.podspec.json<gh_stars>1000+
{
"name": "EXUScrollTabController",
"version": "0.11",
"summary": "A ViewController Containter that can exchange it's viewControllers by scroll",
"description": "A ViewController Containter that can exchange it'... | 323 |
3,325 | /*
* Copyright (C) 2019. Uber Technologies
*
* 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... | 2,557 |
411 | package com.documents4j.job;
import com.documents4j.api.IFileConsumer;
import com.documents4j.api.IInputStreamConsumer;
import org.junit.Test;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
public class FileCons... | 700 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.