max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
11,356 | #!/usr/bin/python
# Copyright (C) <NAME> 2018
# Distributed under the Boost Software License, Version 1.0. (See
# accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# Tests the check-has-flag rule
import BoostBuild
t = BoostBuild.Tester(use_test_config=False)
# We need an object f... | 1,230 |
904 | <reponame>BurAndBY/pkgj
#pragma once
#include <functional>
#include <memory>
#include <stdexcept>
#include <string>
#include <cstdint>
#include "http.hpp"
class FileDownload
{
public:
std::function<void(uint64_t download_offset, uint64_t download_size)>
update_progress_cb;
std::function<bool()> ... | 334 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-g5mc-2cpg-f638",
"modified": "2022-04-05T00:00:45Z",
"published": "2022-03-30T00:00:33Z",
"aliases": [
"CVE-2021-43099"
],
"details": "An Archive Extraction (AKA \"Zip Slip) vulnerability exists in bbs 5.3 in the UpgradeNow function in UpgradeManageAction.java,... | 460 |
605 | <reponame>LaudateCorpus1/llvm-project<gh_stars>100-1000
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0... | 2,001 |
890 | <filename>app/apiv2/__init__.py
from flask import Blueprint
import flask_restful
from flask.ext.restful.representations.json import output_json
output_json.func_globals['settings'] = {
'ensure_ascii': False,
'encoding': 'utf8'
}
apiv2 = Blueprint('apiv2', __name__, template_folder='templates')
apiv2_rest = fl... | 135 |
6,098 | from __future__ import print_function
import importlib, inspect, os, sys
import numpy as np
from sklearn.datasets import make_classification, make_regression
from sklearn.metrics import accuracy_score, r2_score
from sklearn.model_selection import train_test_split
from sklearn.pipeline import make_pipeline
import h2o
... | 2,975 |
6,224 | <reponame>Trifunik/zephyr
/*
* Copyright (c) 2017 Linaro Limited
* Copyright (c) 2017-2019 Foundries.io
*
* SPDX-License-Identifier: Apache-2.0
*/
#define LOG_MODULE_NAME net_lwm2m_client_app
#define LOG_LEVEL LOG_LEVEL_DBG
#include <logging/log.h>
LOG_MODULE_REGISTER(LOG_MODULE_NAME);
#include <drivers/hwinfo.... | 6,705 |
1,671 | <filename>ambry-network/src/main/java/com/github/ambry/network/BlockingChannelConnectionPool.java<gh_stars>1000+
/**
* Copyright 2016 LinkedIn Corp. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 2,898 |
1,338 | <reponame>Kirishikesan/haiku<gh_stars>1000+
/*
* Copyright 2011-2012 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#include "Option.h"
OptionDevice::OptionDevice(usb_device device, uint16 vendorID,
uint16 productID, const char *descripti... | 1,087 |
5,169 | <reponame>Ray0218/Specs<filename>Specs/IP-UIKit-Wisdom/0.0.7/IP-UIKit-Wisdom.podspec.json
{
"name": "IP-UIKit-Wisdom",
"version": "0.0.7",
"summary": "A bag of internal helper libraries and categories around UIKit",
"description": "A bag of internal helper libraries and categories around UIKit, written by the d... | 290 |
5,079 | <reponame>yetsun/hue
from unittest import TestCase
from kazoo.hosts import collect_hosts
class HostsTestCase(TestCase):
def test_ipv4(self):
hosts, chroot = collect_hosts('127.0.0.1:2181, 192.168.1.2:2181, \
192.168.127.12:2181')
assert hosts == [('127.0.0.... | 1,102 |
2,494 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* 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 distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 331 |
1,139 | <reponame>ghiloufibelgacem/jornaldev
package com.journaldev.struts2.actions;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Actions;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Namespaces;
import org... | 289 |
532 | package ai.yue.library.base.exception;
/**
* 参数校验不通过异常
*
* @author ylyue
* @since 2017年10月9日
*/
public class ParamException extends RuntimeException {
private static final long serialVersionUID = -7818277682527873103L;
public ParamException(String msg) {
super(msg);
}
}
| 148 |
777 | // Copyright 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 "net/cert/nss_cert_database_chromeos.h"
#include <memory>
#include "base/bind.h"
#include "base/callback.h"
#include "base/run_loop.h"
#include... | 4,988 |
348 | {"nom":"Magny-sur-Tille","circ":"3ème circonscription","dpt":"Côte-d'Or","inscrits":636,"abs":343,"votants":293,"blancs":21,"nuls":4,"exp":268,"res":[{"nuance":"REM","nom":"<NAME>","voix":159},{"nuance":"FN","nom":"<NAME>","voix":109}]} | 98 |
2,329 | <filename>testdata/src/main/java/reflection/constructors/ClassWithAnnotatedConstructors002.java
package reflection.constructors;
import reflection.AnnoT;
import reflection.AnnoT2;
import reflection.AnnoT3;
/**
* For testing constructor reloading and methods related to fetching annotation data from
* constructors.
... | 661 |
1,550 | <gh_stars>1000+
#@+leo-ver=5-thin
#@+node:ekr.20170428084207.111: * @file ../external/npyscreen/eveventhandler.py
#@+others
#@+node:ekr.20170428084207.112: ** Declarations
import weakref
#@+node:ekr.20170428084207.113: ** class Event
class Event:
# a basic event class
#@+others
#@+node:ekr.20170428084207.1... | 1,303 |
1,262 | <reponame>chinmayapadhi/metacat
/*
* Copyright 2016 Netflix, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless ... | 12,747 |
2,611 | # Lint as: python3
# Copyright 2020 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 ... | 3,765 |
1,931 | {
"main": "dist/remirror-pm-model.cjs.js",
"module": "dist/remirror-pm-model.esm.js",
"browser": {
"./dist/remirror-pm-model.cjs.js": "./dist/remirror-pm-model.browser.cjs.js",
"./dist/remirror-pm-model.esm.js": "./dist/remirror-pm-model.browser.esm.js"
},
"types": "dist/remirror-pm-model.cjs.d.ts",
... | 170 |
435 | <filename>warehouse/ops-tools/config-compare/src/main/java/datawave/configuration/DataTypeConfigCompare.java
package datawave.configuration;
import org.apache.commons.lang.StringUtils;
import org.apache.hadoop.conf.Configuration;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
/**
* A ut... | 1,204 |
2,305 | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import json
import logging
from pathlib import Path
from typing import Union, Dict, Any
from .utils import ContextStack
_logger = logging.getLogger(__name__)
def fixed_arch(fixed_arch: Union[str, Path, Dict[str, Any]], verbose=True):
"""
... | 402 |
517 | // GMSMapView+ClusterKit.h
//
// Copyright © 2017 Hulab. All rights reserved.
//
// 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 right... | 1,266 |
1,355 | <gh_stars>1000+
package li.cil.oc.api.machine;
/**
* Used to signal that the direct call limit for the current server tick has
* been reached in {@link Machine#invoke(String, String, Object[])}.
*/
public class LimitReachedException extends Exception {
}
| 73 |
310 | <reponame>rczhang/healthcare<gh_stars>100-1000
# Copyright 2019 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 2,376 |
655 | #pragma once
#include <df/util/tensor.h>
#include <df/voxel/color.h>
#include <df/voxel/compositeVoxel.h>
#include <df/voxel/tsdf.h>
#include <df/voxel/voxelGrid.h>
namespace df {
template <typename Scalar, typename VoxelT>
void computeSurfaceColors(const DeviceTensor1<Eigen::Matrix<Scalar,3,1,Eigen::DontAlign> > & ... | 311 |
15,947 | <reponame>ChaseKnowlden/airflow
#
# 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.... | 2,942 |
14,668 | <reponame>chromium/chromium
// 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 "ash/quick_pair/keyed_service/quick_pair_metrics_logger.h"
#include <memory>
#include "ash/quick_pair/common/accoun... | 35,363 |
4,253 | <reponame>timmersren/InternetArchitect
package com.msb.zookeeper.configurationcenter;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import java.util.concurrent.CountDownLatch;
/**
* @author: 马士兵教育
* @create: 2019-09-20 13:53
*/
public class DefaultWatch implements Watcher {
C... | 435 |
6,969 |
# Contributed by <NAME>
# https://github.com/parajshah
#!/bin/python3
import math
import os
import random
import re
import sys
# Complete the alternatingCharacters function below.
def alternatingCharacters(s):
count = 0
for i in range(len(s) - 1):
if (s[i] == 'A' and s[i + 1] == 'B') or (s[i] == 'B... | 285 |
320 | <gh_stars>100-1000
#ifndef METAL_NUMBER_NUMBERS_HPP
#define METAL_NUMBER_NUMBERS_HPP
#include "../config.hpp"
#include "../list/list.hpp"
#include "../number/number.hpp"
#include <type_traits>
namespace metal {
/// \cond
namespace detail {
#if defined(METAL_WORKAROUND)
template <int_... vs>
struct _numbers;
... | 365 |
348 | {"nom":"Fontenelle","circ":"3ème circonscription","dpt":"Aisne","inscrits":195,"abs":103,"votants":92,"blancs":6,"nuls":0,"exp":86,"res":[{"nuance":"SOC","nom":"<NAME>","voix":59},{"nuance":"FN","nom":"<NAME>","voix":27}]} | 90 |
1,350 | <reponame>ppartarr/azure-sdk-for-java<gh_stars>1000+
package com.microsoft.windowsazure.services.media.implementation.templates.playreadylicense;
import static org.junit.Assert.*;
import java.security.InvalidParameterException;
import org.junit.Test;
import com.microsoft.windowsazure.services.media.implementation.te... | 868 |
2,743 | <reponame>eshbeata/open-paperless
from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from permissions import PermissionNamespace
namespace = PermissionNamespace('common', _('Common'))
permission_error_log_view = namespace.add_permission(
name='error_... | 113 |
400 | <filename>src/ut-stubs/osapi-queue-stubs.c
/*
* NASA Docket No. GSC-18,370-1, and identified as "Operating System Abstraction Layer"
*
* Copyright (c) 2019 United States Government as represented by
* the Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed... | 1,873 |
707 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/simulation/EncoderSim.h"
#include <memory>
#include <stdexcept>
#include <utility>
#include <hal/simulat... | 2,233 |
356 | <filename>mind-map/idea-mindmap/src/com/igormaznitsa/ideamindmap/utils/SelectIn.java
/*
* Copyright 2015-2018 <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://ww... | 1,760 |
571 | <reponame>laqieer/butano<filename>butano/hw/3rd_party/gba-link-connection/include/LinkConnection.h
#ifndef LINK_CONNECTION_H
#define LINK_CONNECTION_H
#include <tonc_core.h>
#include <tonc_memdef.h>
#include <tonc_memmap.h>
#include "bn_deque.h"
#include "bn_config_link.h"
static_assert(BN_CFG_LINK_BAUD_RATE == BN_L... | 4,299 |
460 | <gh_stars>100-1000
/*
* Copyright 2012 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
* ... | 542 |
23,901 | <filename>sgk/sparse/ops/cc/sddmm_launcher.cu.cc
// Copyright 2021 The Google Research 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... | 592 |
1,346 | <gh_stars>1000+
package com.ctrip.platform.dal.dao.markdown;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({
MarkdownAndUpIntergration.class,
DetectorCounterTest.class,
TimeoutDetectorTest.class,
AutoMarkdownTest.c... | 158 |
2,449 | /**
* Copyright 2016 Pinterest, 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 or... | 675 |
4,816 | <reponame>mehrdad-shokri/retdec<gh_stars>1000+
/**
* @file src/common/class.cpp
* @brief Common class representation.
* @copyright (c) 2019 Avast Software, licensed under the MIT license
*/
#include "retdec/common/class.h"
#include "retdec/utils/container.h"
using retdec::utils::hasItem;
namespace retdec {
names... | 877 |
1,755 | #ifndef DIY_COMMUNICATOR_HPP
#define DIY_COMMUNICATOR_HPP
#warning "diy::Communicator (in diy/communicator.hpp) is deprecated, use diy::mpi::communicator directly"
#include "mpi.hpp"
namespace diy
{
typedef mpi::communicator Communicator;
}
#endif
| 108 |
836 | /*
* 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... | 421 |
15,577 | <reponame>pdv-ru/ClickHouse<filename>src/Functions/JSONPath/Generator/IGenerator_fwd.h
#pragma once
#include <Functions/JSONPath/Generator/IVisitor.h>
namespace DB
{
template <typename JSONParser>
class IGenerator;
template <typename JSONParser>
using IVisitorPtr = std::shared_ptr<IVisitor<JSONParser>>;
template <t... | 146 |
984 | <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 licenses this file
* to you under the Apache License, Version 2.0 (the
... | 1,003 |
1,040 | <reponame>Ybalrid/orbiter
/*
* Copyright (C) 1998 Microsoft Corporation. All Rights Reserved.
*
* File: rmfull.h
*
*/
#ifndef __RMFULL_H__
#define __RMFULL_H__
#include <d3drm.h>
#include <time.h>
#include "d3dapp.h" /* prototypes for D3D helper functions */
#include "resource.h" /* defines consta... | 1,307 |
410 | <reponame>redchew-fork/BlueshiftEngine
// Copyright(c) 2017 POLYGONTEK
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http ://www.apache.org/licenses/LICENSE-2.0
//
// Unless re... | 7,241 |
819 | /*
Copyright 2017 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | 3,125 |
4,537 | // 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... | 616 |
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.
#include "components/autofill_assistant/browser/mock_client.h"
#include "components/autofill_assistant/browser/mock_personal_data_manager.h"
namespace au... | 141 |
981 | <reponame>Alexmitter/box64
/*******************************************************************
* File automatically generated by rebuild_wrappers.py (v2.1.0.16) *
*******************************************************************/
#ifndef __wrappedsecret1DEFS_H_
#define __wrappedsecret1DEFS_H_
#endif // __wrapped... | 87 |
1,761 | # Structural Similarity (SSIM) Example
#
# Note: You will need an SD card to run this example.
#
# This example shows off how to use the SSIM algorithm on your OpenMV Cam
# to detect differences between two images. The SSIM algorithm compares
# 8x8 blocks of pixels between two images to determine a similarity
# score b... | 420 |
2,151 | <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.
#include "components/exo/data_source.h"
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/test/scoped_task_environm... | 1,054 |
933 | /*
* 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... | 935 |
2,073 | <gh_stars>1000+
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "Li... | 2,498 |
846 | <reponame>Winner2015/compileflow
/*
* 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... | 1,199 |
1,532 | {
"args": ["PREROUTING", "SNAT"],
"kwargs": {
"to_source": "8.8.8.8"
},
"exception": {
"name": "OperationError",
"message": "iptables only supports to_source on the nat table and the SNAT jump (table=filter, jump=SNAT)"
}
}
| 124 |
839 | <filename>rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapActionInInterceptor.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 o... | 5,326 |
679 | /**************************************************************
*
* 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 y... | 4,599 |
388 | // Copyright 2020-2021 CesiumGS, Inc. and Contributors
#pragma once
class UObject;
class UTexture;
class CesiumLifetime {
public:
static void destroy(UObject* pObject);
private:
static bool runDestruction(UObject* pObject);
static void addToPending(UObject* pObject);
static void processPending();
static v... | 162 |
10,016 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2021 The ZAP Development Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Yo... | 3,551 |
868 | <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 licenses this file to You under the Apache License, Version 2.0
* (the "L... | 1,195 |
348 | {"nom":"Lézignan-la-Cèbe","circ":"5ème circonscription","dpt":"Hérault","inscrits":1100,"abs":606,"votants":494,"blancs":27,"nuls":11,"exp":456,"res":[{"nuance":"FN","nom":"<NAME>","voix":229},{"nuance":"REM","nom":"M. <NAME>","voix":227}]} | 100 |
3,081 |
import numpy as np
import pandas as pd
from itertools import product
from tensortrade.feed import Stream
from tests.utils.ops import assert_op
configurations = [
{"min_periods": 0},
{"min_periods": 2}
]
arrays = [
[1, 2, 3, 4, 5, 6, 7],
[1, np.nan, 3, 4, 5, 6, np.nan, 7]
]
def test_expanding_cou... | 1,043 |
2,542 | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 15,372 |
645 | <gh_stars>100-1000
// Copyright 2011 Viewfinder. All rights reserved.
// Author: <NAME>.
#ifndef VIEWFINDER_TIMER_H
#define VIEWFINDER_TIMER_H
#include <algorithm>
#include "Logging.h"
#include "WallTime.h"
using std::min;
class WallTimer {
public:
WallTimer()
: total_time_(0),
start_time_(WallTime... | 785 |
476 | /*
* 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... | 3,827 |
717 | <reponame>vvirag/openpose
#ifndef OPENPOSE_NET_NMS_BASE_HPP
#define OPENPOSE_NET_NMS_BASE_HPP
#include <openpose/core/common.hpp>
namespace op
{
template <typename T>
OP_API void nmsCpu(T* targetPtr, int* kernelPtr, const T* const sourcePtr, const T threshold,
const std::array<int, 4>& ... | 401 |
412 | <reponame>ParkerJX/datart
package datart.server.base.params;
import lombok.Data;
@Data
public class BaseUpdateParam {
private String id;
}
| 55 |
2,542 | <reponame>AnthonyM/service-fabric
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ----------------------------------------------------------... | 243 |
558 | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 10,093 |
320 | #include "HideWin10VolumeOSD.h"
static HWND hWndInject = 0;
bool HideWin10VolumeOSD::Init()
{
if (hWndInject != 0)
{
return true;
}
hWndInject = FindOSDWindow(true);
if (hWndInject == 0)
{
return false;
}
HideOSD();
return true;
}
HWND HideWin10VolumeOSD::FindOS... | 729 |
530 | /*******************************************************************************
* Copyright 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 of the License at
*
* http://www.apache.org/... | 897 |
2,144 | <reponame>aashitk/pinot
/**
* 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... | 5,730 |
4,262 | /*
* 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 ... | 858 |
2,211 | // Copyright (c) 2016 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "xwalk/runtime/common/xwalk_resource_delegate.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "ui/gfx/image/image.... | 702 |
3,508 | package com.fishercoder.solutions;
import java.util.Deque;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
public class _353 {
public class SnakeGame {
private Set<Integer> set;//Use a set to hold all occupied points for the snake body, this is for easy access for the case of ... | 1,582 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI
*/
#import <iTunesStoreUI/iTunesStoreUI-Structs.h>
#import <iTunesStoreUI/SUItemCellContext.h>
@interface SUMediaItemCellContext : SUItemCellContext {
float _artworkWidth; // ... | 456 |
4,196 | <gh_stars>1000+
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"sku": {
"value": "Free"
},
"workspaceName": {
"value": "rg-abc-logs"
},
"solutionType": {
"value": "Containers"
}
}
}
| 153 |
1,704 | <reponame>yusufraji/siren
["002.Laysan_Albatross","006.Least_Auklet","010.Red_winged_Blackbird","014.Indigo_Bunting","018.Spotted_Catbird","022.Chuck_will_Widow","026.Bronzed_Cowbird","030.Fish_Crow","034.Gray_crowned_Rosy_Finch","038.Great_Crested_Flycatcher","042.Vermilion_Flycatcher","046.Gadwall","050.Eared_Grebe",... | 471 |
327 | from sublime_plugin import WindowCommand
from ..libraries.tools import get_setting, save_setting
class DeviotAutoCleanCommand(WindowCommand):
"""
Stores the automatic monitor cleaning user selection
and save it in the preferences file.
Extends: sublime_plugin.WindowCommand
"""
def run(self):... | 163 |
428 | #
# This is an example of a (sub)application, which can be made a part of
# bigger site using "app mount" feature, see example_app_router.py.
#
import picoweb
app = picoweb.WebApp(__name__)
@app.route("/")
def index(req, resp):
yield from picoweb.start_response(resp)
yield from resp.awrite("This is webapp #1... | 140 |
7,113 | /*
* Copyright (C) 2010-2101 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 ... | 1,364 |
6,304 | <gh_stars>1000+
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
REG_FIDDLE(skcanvas_paint, 256, 256, false, 5) {
void draw(SkCanvas* canvas) {
canvas->drawColor(SK_ColorWHITE);
SkPaint paint;
... | 543 |
448 | /*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 923 |
5,169 | <filename>Specs/AppConsole/0.2.7/AppConsole.podspec.json
{
"name": "AppConsole",
"version": "0.2.7",
"summary": "AppConsole for Swifter.jl",
"description": "iOS REPL with Swifter.jl + Console",
"homepage": "https://github.com/wookay/AppConsole",
"license": {
"type": "MIT",
"file": "LICENSE.md"
},
... | 276 |
945 | <filename>Modules/Filtering/FastMarching/test/itkFastMarchingQuadEdgeMeshFilterBaseTest.cxx
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... | 1,499 |
903 | <gh_stars>100-1000
#include "../../../src/gui/text/qfontengine_mac_p.h"
| 33 |
892 | <reponame>github/advisory-database<filename>advisories/unreviewed/2022/05/GHSA-c29x-q9mw-w4j4/GHSA-c29x-q9mw-w4j4.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-c29x-q9mw-w4j4",
"modified": "2022-05-13T01:36:23Z",
"published": "2022-05-13T01:36:23Z",
"aliases": [
"CVE-2017-6873"
],
"d... | 567 |
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 ... | 9,892 |
1,338 | /*
* Copyright 2006, <NAME> <<EMAIL>>.
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include <OS.h>
#include <arch_cpu.h>
#include <arch/system_info.h>
#include <boot/kernel_args.h>
enum cpu_vendor sCPUVendor;
uint32 sPVR;
static uint64 sCPUClockFrequency;
static uint64 sBusClockFre... | 1,397 |
653 | /***********************************************************************
Interfacing to a classic piece of geodetic software
************************************************************************
gen_pol is a highly efficient, classic implementation of a generic
2D Horner's Scheme polynomial evaluation... | 10,589 |
2,406 | #include <ie_core.hpp>
int main() {
using namespace InferenceEngine;
//! [part6]
InferenceEngine::Core core;
auto network = core.ReadNetwork("sample.xml");
auto exeNetwork = core.LoadNetwork(network, "GPU");
std::map<std::string, uint64_t> statistics_map = exeNetwork.GetMetric(GPU_METRIC_KEY(MEMORY_STATISTICS));
//! [... | 122 |
5,169 | <gh_stars>1000+
{
"name": "WilddogIM",
"version": "0.1.0",
"summary": "Wilddog IM module for iOS",
"description": "The IM module helps you communication with your friends and the world.",
"homepage": "http://www.wilddog.com/",
"license": "Copyright",
"authors": "<NAME>",
"platforms": {
"ios": "8.0"
... | 289 |
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,617 |
441 | <reponame>vhn0912/Finance
import pandas as pd
import numpy as np
import yfinance as yf
import datetime as dt
from pandas_datareader import data as pdr
import statistics
import time
yf.pdr_override()
now = dt.datetime.now()
start =dt.datetime(2019,1,1)
smaUsed=[50,200]
emaUsed=[21]
stock = input('Enter a ticker: ')
p... | 1,896 |
2,039 | package org.nd4j.aeron.ipc;
import org.agrona.DirectBuffer;
import org.junit.Test;
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.factory.Nd4j;
import static org.junit.Assert.assertEquals;
/**
* Created by agibsonccc on 11/6/16.
*/
public class NDArrayMessageTest {
@Test
public void t... | 416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.