max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
2,023 | <gh_stars>1000+
class ThunkSpace(object):
"""
A ThunkSpace for Python. Assigning functions to an instance of ThunkSpace
will turn the function into a lazily evaluated attribute.
"""
def __setattr__(self, name, func):
def delete(self):
delattr(self.__class__, name)
... | 508 |
5,169 | {
"name": "ShieldFraud",
"version": "1.5.2",
"summary": "SHIELD SDK for iOS.",
"homepage": "https://www.shield.com/",
"license": {
"type": "Copyright",
"text": "Copyright 2020 Shield. All Rights Reserved."
},
"authors": "SHIELD",
"platforms": {
"ios": "9.0"
},
"source": {
"http": "ht... | 196 |
1,309 | package cn.jiguang.plugins.push.receiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import cn.jiguang.plugins.push.common.JLogger;
import cn.jiguang.plugins.push.helper.JPushHelper;
import cn.jpush.android.api.JPushInterface;
pu... | 338 |
589 | /**
* 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... | 610 |
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.
#ifndef ASH_PUBLIC_CPP_AUTOTEST_DESKS_API_H_
#define ASH_PUBLIC_CPP_AUTOTEST_DESKS_API_H_
#include "ash/ash_export.h"
#include "base/callback_forward.h"
... | 685 |
1,822 | <reponame>jokteur/hpx
// Copyright (c) 2014 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#include <hpx/serialization/complex.hpp>
#include <hpx/serialization/inp... | 824 |
489 | <filename>habitat_baselines/il/trainers/pacman_trainer.py
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import math
import os
import time
from datetime import datetim... | 16,636 |
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.
#ifndef CHROME_BROWSER_PASSWORD_MANAGER_ANDROID_PASSWORD_STORE_ANDROID_BACKEND_H_
#define CHROME_BROWSER_PASSWORD_MANAGER_ANDROID_PASSWORD_STORE_ANDROID_B... | 3,844 |
652 | <filename>app/src/main/java/com/liuguangqiang/idaily/entity/StorySection.java<gh_stars>100-1000
package com.liuguangqiang.idaily.entity;
import com.liuguangqiang.idaily.adapter.StoriesAdapter;
/**
* Created by Eric on 15/6/9.
*/
public class StorySection extends BaseEntity {
public int datetime;
public St... | 184 |
2,056 | <reponame>wbaweto/QConf<gh_stars>1000+
#include "zookeeper.h"
#include "slash_string.h"
#include <iostream>
#include "monitor_options.h"
#include "monitor_log.h"
#include "monitor_const.h"
MonitorOptions::MonitorOptions(const std::string &conf_path)
: base_conf(new slash::BaseConf(conf_path)),
daemon_m... | 1,791 |
660 | <reponame>ibara/csmith<filename>src/Attribute.h
#ifndef ATTRIBUTE_H
#define ATTRIBUTE_H
#include <string>
#include <vector>
#include <sstream>
using namespace std;
class AttributeGenerator;
//Base class with pure virtual methods which will be derived as per different types of attribute generation
class Attribute
{
p... | 485 |
1,144 | <filename>u-boot-2019.01+gitAUTOINC+333c3e72d3-g333c3e72d3/drivers/net/phy/b53.c
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright (C) 2017
* Broadcom
* <NAME> <<EMAIL>>
*/
/*
* PHY driver for Broadcom BCM53xx (roboswitch) Ethernet switches.
*
* This driver configures the b53 for basic use as a PHY. The switc... | 8,478 |
14,668 | <gh_stars>1000+
// 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.
#ifndef CHROMECAST_CAST_CORE_RUNTIME_BROWSER_CAST_RUNTIME_METRICS_RECORDER_SERVICE_H_
#define CHROMECAST_CAST_CORE_RUNTIME_BROWSER_CAST_RU... | 599 |
319 | <reponame>imshyam/mintube
package com.shapps.mintubeapp.viewmodel;
import android.arch.lifecycle.LiveData;
import android.arch.lifecycle.ViewModel;
import com.shapps.mintubeapp.service.SuggestionRepository;
public class SuggestionViewModel extends ViewModel {
private String query;
public LiveData<String> g... | 180 |
303 | <gh_stars>100-1000
/* Copyright (C) 2005-2011 <NAME> */
package com.lightcrafts.app.batch;
import static com.lightcrafts.app.batch.Locale.LOCALE;
import com.lightcrafts.platform.Platform;
import com.lightcrafts.ui.toolkit.CoolButton;
import com.lightcrafts.ui.toolkit.IconFactory;
import com.lightcrafts.ui.help.HelpCo... | 422 |
9,724 | <reponame>mkinsner/llvm<gh_stars>1000+
//===-- ubsan_type_hash_win.cpp -------------------------------------------===//
//
// 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 WITH LLVM-except... | 1,002 |
2,757 | // Copyright 2020 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 required by applicable law or agreed to ... | 1,158 |
852 | <gh_stars>100-1000
///////////////////////////////////////////////////////////////////////////////
// Author
// <NAME> <EMAIL>
// Feb 2016
///////////////////////////////////////////////////////////////////////////////
#ifndef PPS_PPSDiamondG4HitCollection_h
#define PPS_PPSDiamondG4HitCollection_h
#include "SimG4CMS/P... | 150 |
1,521 | /** Copyright 2020 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 applicable law... | 3,958 |
488 | <filename>tests/CompileTests/ElsaTestCases/notCompilable/gnu/g0024.cc
// g0024.cc
// excerpt from gcc-2 header "stl_alloc.h" that contains invalid code
// but I need to allow if I want to handle code preprocessed with
// gcc-2
template <bool __threads, int __inst>
class __default_alloc_t... | 254 |
667 | <filename>tests/test_staticfiles.py
import os
import pytest
import flask_restful_swagger
from flask_restful_swagger.swagger import StaticFiles
try:
from unittest.mock import patch
except ImportError:
from mock import patch
test_fixtures_renders = [
["index.html", None, None],
["o2c.html", None, Non... | 1,691 |
348 | {"nom":"Saint-Cyr-la-Lande","circ":"3ème circonscription","dpt":"Deux-Sèvres","inscrits":295,"abs":204,"votants":91,"blancs":15,"nuls":7,"exp":69,"res":[{"nuance":"REM","nom":"<NAME>","voix":36},{"nuance":"LR","nom":"<NAME>","voix":33}]} | 99 |
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... | 460 |
14,668 | <gh_stars>1000+
// 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 "content/browser/webtransport/web_transport_throttle_context.h"
#include "base/callback.h"
#include "base/check.h"
#include "bas... | 2,879 |
3,182 | <reponame>Tasemo/intellij-community
import java.io.IOException;
import lombok.AllArgsConstructor;
import lombok.Builder;
import java.io.IOException;
@Builder
@AllArgsConstructor
public class BuilderMultipleConstructorException {
private int first;
private float second;
public BuilderMultipleConstructorExcept... | 194 |
4,339 | <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 "Lic... | 1,224 |
479 | /**
* 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
* distribu... | 1,177 |
2,151 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/upgrade_detector_impl.h"
#include <stdint.h>
#include <algorithm>
#include <string>
#include "base/bind.h"
#include "base/... | 6,937 |
303 | <filename>src/mot_neural_solver/data/seq_processing/MOT15loader.py
import pandas as pd
import numpy as np
import cv2
from mot_neural_solver.path_cfg import DATA_PATH
import os
import os.path as osp
from mot_neural_solver.utils.iou import iou
import shutil
# FPS per seq are retrieved from https://motchallenge.net/... | 5,868 |
575 | <gh_stars>100-1000
// 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.
#include "ash/wm/desks/desks_util.h"
#include <array>
#include "ash/public/cpp/ash_features.h"
#include "ash/public/cpp/tablet_mode.h... | 1,995 |
5,169 | <reponame>Ray0218/Specs
{
"name": "MeiqiaSDK",
"version": "3.0.1",
"summary": "美洽3.0 SDK for iOS",
"description": "美洽3.0 SDK for iOS\nMeiQiaSDK",
"homepage": "http://meiqia.com",
"license": "MIT",
"authors": {
"MeiQia": ""
},
"platforms": {
"ios": "6.0"
},
"source": {
"git": "https://g... | 383 |
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... | 1,381 |
372 | <reponame>arithmetic1728/google-api-java-client-services<filename>clients/google-api-services-metastore/v1beta/1.31.0/com/google/api/services/metastore/v1beta/model/LocationMetadata.java
/*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the Lice... | 996 |
2,329 | <reponame>alimate/spring-loaded
package data;
/**
* Simple test class with one method returning a String
*
* @author <NAME>
*/
public class Fruity003 {
public String getFruit() {
return "banana";
}
} | 71 |
4,054 | <filename>document/src/vespa/document/select/scanner.h
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#if !defined(yyFlexLexerOnce)
# include <FlexLexer.h>
#endif
#include "parser.hxx"
#include "location.hh"
#include <iosfwd>
namespace document:... | 213 |
307 | <filename>Train_faceNet_model/Train+FaceNet+model/tf_slim/layers/rev_block_lib_test.py
# coding=utf-8
# Copyright 2017 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 co... | 5,934 |
5,129 | import argparse
import json
import random
if __name__ == "__main__":
parser = argparse.ArgumentParser()
# Required parameters
parser.add_argument(
"--input_path",
default=None,
type=str,
required=True,
help="input xnli file",
)
parser.add_argument(
"... | 441 |
13,006 | /*******************************************************************************
* Copyright (c) 2015-2018 Skymind, Inc.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
*... | 763 |
19,046 | <gh_stars>1000+
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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... | 1,027 |
694 | #ifndef OVERLOADED_H
#define OVERLOADED_H
#include "moqt_core_exports.h"
#include "QString.h"
#include "QPoint.h"
class MOQT_CORE_EXPORT Overloaded {
public:
// functions differ only by argument type
Overloaded(int x);
Overloaded(float x);
Overloaded(QString x);
// functions differ only by const-... | 203 |
388 | /* ------------------------------------------------ *
* The MIT License (MIT)
* Copyright (c) 2020 <EMAIL>
* ------------------------------------------------ */
#include "util_trt.h"
#include "util_debug.h"
#include "trt_detection.h"
#include <unistd.h>
#define UFF_MODEL_PATH "./models/ssd_mobilenet_v1_coco_2... | 3,413 |
406 | # -*- coding: utf-8 -*- {{{
# vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et:
#
# Copyright 2020, Battelle Memorial Institute.
#
# 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... | 3,252 |
32,544 | package com.baeldung.concurrent.Scheduledexecutorservice;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import java.util.function.Function;
public class ScheduledExecutorServiceDemo {
pr... | 531 |
799 |
from CommonServerPython import * # noqa
import demistomock as demisto
def main(args):
value = args.get('value')
json_value = [value]
return json.dumps(json_value)
if __name__ in ('__main__', '__builtin__', 'builtins'):
try:
return_results(main(demisto.args()))
except Exception as exc:
... | 145 |
2,816 | <gh_stars>1000+
# simple DB API testcase
import duckdb
import numpy
import pandas
class TestDBConfig(object):
def test_default_order(self, duckdb_cursor):
df = pandas.DataFrame({'a': [1,2,3]})
con = duckdb.connect(':memory:', config={'default_order': 'desc'})
result = con.execute('select *... | 937 |
2,151 | /****************************************************************************
****************************************************************************
***
*** This header was automatically generated from a Linux kernel header
*** of the same name, to make information necessary for userspace to
*** call i... | 4,880 |
388 | <filename>src/session_cookies.cpp
///////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2008-2012 <NAME> (Tonkikh) <<EMAIL>>
// ... | 982 |
458 | /*
* #%L
* GwtMaterial
* %%
* Copyright (C) 2015 - 2017 GwtMaterialDesign
* %%
* 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
* ... | 916 |
984 | <gh_stars>100-1000
#!/usr/bin/env python
############################################################################
#
# 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 copyrigh... | 1,432 |
4,054 | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.model.application.validation.change;
import com.yahoo.config.provision.Environment;
import com.yahoo.vespa.model.VespaModel;
import com.yahoo.vespa.model.application.validation.ValidationTes... | 1,110 |
2,151 | // Copyright 2015 The Shaderc 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 a... | 519 |
550 | package play.exceptions;
import java.util.List;
/**
* Exception has source attachment
*/
public interface SourceAttachment {
String getSourceFile();
List<String> getSource();
Integer getLineNumber();
}
| 64 |
2,151 | <reponame>google-ar/chromium
// 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.
#ifndef CHROME_BROWSER_UI_VIEWS_TOUCH_UMA_TOUCH_UMA_H_
#define CHROME_BROWSER_UI_VIEWS_TOUCH_UMA_TOUCH_UMA_H_
#include "base... | 305 |
432 | /* mpc_inp_str -- Input a complex number from a given stream.
Copyright (C) 2009, 2010, 2011 INRIA
This file is part of GNU MPC.
GNU MPC is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 o... | 2,687 |
2,322 | /* -*- tab-width: 8; c-basic-offset: 4 -*- */
/*
* Copyright 2000 <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) a... | 2,536 |
343 | <gh_stars>100-1000
package com.ejlchina.searcher.util;
public class StringUtils {
/**
* @param str 字符串
* @return 是否不空
*/
public static boolean isNotBlank(String str) {
return !isBlank(str);
}
/**
* @param str 字符串
* @return 是否为空
*/
public static boolean isBlank(String str) {
if (str == null) {
... | 1,385 |
1,185 | <reponame>goolulu/dubbo-samples
/*
*
* 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 Licens... | 2,492 |
405 | <filename>tests/contrib/validation/test_item_validation_pipeline.py
import pytest
from scrapy.utils.test import get_crawler
from spidermon.contrib.scrapy.pipelines import (
ItemValidationPipeline,
PassThroughPipeline,
)
@pytest.fixture
def spidermon_enabled_settings():
return {
"SPIDERMON_ENABLED"... | 733 |
998 | // Copyright 2021 Phyronnaz
#include "VoxelNodes/VoxelExecNodes.h"
#include "VoxelNodes/VoxelNodeColors.h"
#include "VoxelGraphConstants.h"
#include "VoxelGraphGenerator.h"
#include "VoxelGraphErrorReporter.h"
int32 UVoxelNode_MaterialSetter::GetOutputIndex() const
{
return FVoxelGraphOutputsIndices::Mat... | 2,574 |
359 | from typing import List, Optional, Dict
from obsei.postprocessor.base_postprocessor import (
BasePostprocessorConfig,
BasePostprocessor,
TextPayload,
)
from obsei.postprocessor.inference_aggregator_function import BaseInferenceAggregateFunction
from obsei.preprocessor.text_splitter import TextSplitterPayloa... | 837 |
1,001 | <filename>aliyun-python-sdk-idrsservice/aliyunsdkidrsservice/request/v20200630/UpdateUserRequest.py
# 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 AS... | 719 |
417 | <reponame>clayne/GTS-GamesTaskScheduler<filename>source/gts/source/analysis/ConcurrentLogger.cpp
/*******************************************************************************
* Copyright 2019 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and... | 2,746 |
16,461 | <reponame>zakharchenkoAndrii/expo
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <memory>
#ifdef ANDROID
#include <folly/dynamic.h>
#endif
namespace face... | 226 |
530 | <reponame>Yzubi/bladecoder-adventure-engine
package com.bladecoder.engine.actions;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
@Retention(RetentionPolicy.RUNTIME)
public @interface ActionPropertyDescription {
String value() default "";
}
| 88 |
9,156 | <reponame>wongxingjun/pulsar
/**
* 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, Versio... | 1,411 |
852 | <reponame>ckamtsikis/cmssw
import FWCore.ParameterSet.Config as cms
import HLTrigger.HLTfilters.hltHighLevel_cfi
ALCARECORandomFromRECOHLT = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone(
HLTPaths = cms.vstring("*Random*"),
eventSetupPathsKey='',
TriggerResultsTag = cms.InputTag("TriggerResults"... | 345 |
7,482 | /*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2011-01-13 weety first version
* 2015-04-27 ArdaFu Port bsp from at91sam9260 to asm9260t
*/
#include <rtthread.h>
#include <rtdevice.h>
#if... | 517 |
930 | <gh_stars>100-1000
/*
* ******************************************************************************
* * Copyright 2015 See AUTHORS file.
* *
* * 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... | 705 |
6,931 | # -*- coding: utf-8 -*-
"""Example using OneWayMixed with within group intertemporal correlation
Created on Sat Dec 03 10:15:55 2011
Author: <NAME>
This example constructs a linear model with individual specific random
effects, and uses OneWayMixed to estimate it.
This is a variation on ex_mixed_lls_0.py.
Here we ... | 3,158 |
372 | <filename>clients/google-api-services-slides/v1/1.30.1/com/google/api/services/slides/v1/model/TableCell.java<gh_stars>100-1000
/*
* 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://w... | 1,437 |
1,600 | <reponame>souravsingh/chainercv<filename>chainercv/experimental/links/model/fcis/utils/proposal_target_creator.py<gh_stars>1000+
import numpy as np
from chainer import cuda
from chainercv.links.model.faster_rcnn.utils.bbox2loc import bbox2loc
from chainercv.transforms.image.resize import resize
from chainercv.utils.b... | 3,875 |
1,962 | package com.bolingcavalry.jacksondemo.annotation;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonRootName;
/**
* @Description: 实体类
* @author: willzhao E-mail: <EMAIL>
* @date: 2020/8/29 11:35
*/
@JsonIgnoreProperties({"lastName", "grade"})
public class St... | 829 |
594 | <gh_stars>100-1000
/****************************************
* @file IHandler
* @brief 原型模式
* @author 微信号:iwaleon
* @wechat 微信公众号:高效程序员
* @date 2017/10/01
****************************************/
#ifndef PROTOTYPE_H
#define PROTOTYPE_H
// 猴子
class Monkey
{
public:
virtual ~Monkey(){}
virtual Monkey... | 200 |
521 | /*
* MCA bus driver code
*
* Abstracted from 3c509.c.
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#ifndef MCA_H
#define MCA_H
#include <ipxe/isa_ids.h>
#include <ipxe/device.h>
#include <ipxe/tables.h>
/*
* MCA constants
*
*/
#define MCA_MOTHERBOARD_SETUP_REG 0x94
#define MCA_ADAPTER_SETUP_REG 0x96
#define MCA_MA... | 844 |
607 | <reponame>AIHZP/andysworkshop-stm32plus
/* -*- mode: c; tab-width: 4; indent-tabs-mode: nil; -*- */
/*
* This file is part of liblzg.
*
* Copyright (c) 2010 <NAME>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising fro... | 919 |
1,364 | <reponame>little-pan/kilim
package kilim.test;
import java.util.LinkedList;
import java.util.List;
import junit.framework.TestCase;
import kilim.analysis.ClassInfo;
public class TestClassInfo extends TestCase {
public void testContains() throws Exception {
List<ClassInfo> classInfoList = new LinkedList<ClassInfo>... | 209 |
391 | <gh_stars>100-1000
{
"schemaId": "https://schema.originprotocol.com/profile_1.0.0.json",
"firstName": "originus",
"lastName": "protocolus",
"description": "<NAME>",
"avatar": "data:,Avatar"
}
| 84 |
2,151 | <reponame>zipated/src
// 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.
#ifndef CHROME_BROWSER_TRANSLATE_ANDROID_TRANSLATE_UTILS_H_
#define CHROME_BROWSER_TRANSLATE_ANDROID_TRANSLATE_UTILS_H_
#include "b... | 643 |
14,668 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/policy/core/common/policy_statistics_collector.h"
#include <algorithm>
#include <string>
#include "base/bind.h"
#include "base/... | 1,528 |
1,511 | <filename>tests/cluecode/data/ics/bluetooth-glib-gobject-tests/threadtests.c
/* GLib testing framework examples and tests
* Copyright (C) 2008 Imendio AB
* Authors: <NAME>
*
G_IMPLEMENT_INTERFACE (my_face1_get_type(), interface_per_class_init);
);
static void my_test... | 667 |
325 | <reponame>RuslanUsmanov/simba
#!/usr/bin/env python
from __future__ import print_function
import sys
import threading
import argparse
import readchar
import serial
import time
def serial_reader_main(dev_serial):
"""Serial reader main function.
"""
while True:
sys.stdout.write(dev_serial.read(1)... | 724 |
335 | <filename>P/Plump_verb.json<gh_stars>100-1000
{
"word": "Plump",
"definitions": [
"Shake or pat (a cushion or pillow) to adjust its stuffing and make it rounded and soft.",
"Become rounder and fatter."
],
"parts-of-speech": "Verb"
} | 110 |
4,569 | package com.brianway.learning.java8.effective.async;
import java.text.DecimalFormat;
import java.text.DecimalFormatSymbols;
import java.util.List;
import java.util.Locale;
import java.util.Random;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
public class Util {
private stati... | 633 |
309 | #ifndef __wasilibc_sys_un_h
#define __wasilibc_sys_un_h
#include <__struct_sockaddr_un.h>
#endif
| 48 |
551 | {
"id": "com.itoursoftware.idayswsource",
"name": "iDays with Source",
"latest": "1.0",
"repository": "BigBoss",
"url": "http://cydia.saurik.com/package/com.itoursoftware.idayswsource/",
"shortDescription": "Keep track of your days ;) And learn basic iPhone programming See how it works and what's under the ... | 861 |
998 | <filename>Source/VoxelGraph/Public/VoxelGraphGeneratorHelpers.h
// Copyright 2021 Phyronnaz
#pragma once
#include "CoreMinimal.h"
#include "Containers/StaticArray.h"
#include "VoxelMinimal.h"
#include "VoxelContext.h"
#include "VoxelGraphConstants.h"
#include "VoxelGenerators/VoxelGeneratorHelpers.h"
#inclu... | 5,838 |
1,180 | <filename>Source/Lib/Encoder/Codec/mathutils.h<gh_stars>1000+
/*
* Copyright (c) 2017, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with t... | 2,042 |
3,301 | <gh_stars>1000+
package com.alibaba.alink.common.io.annotations;
/**
* Type of source&&sink operator.
*/
public enum IOType {
/**
* Batch source operator.
*/
SourceBatch,
/**
* Batch sink operator.
*/
SinkBatch,
/**
* Stream source operator.
*/
SourceStream,
/**
* Stream sink operator.
*/
... | 127 |
903 | package com.github.vole.mps.service.impl;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.vole.common.constants.SecurityConstants;
import com.github.vole.common.utils.R;
im... | 3,357 |
852 | import FWCore.ParameterSet.Config as cms
groupedMultiRecHitCollector = cms.ESProducer("MultiRecHitCollectorESProducer",
propagatorAlong = cms.string('RungeKuttaTrackerPropagator'),
MultiRecHitUpdator = cms.string('SiTrackerMultiRecHitUpdator'),
ComponentName = cms.string('groupedMultiRecHitCollector'),
... | 197 |
2,151 | //===- subzero/src/IceRegistersMIPS32.h - Register information --*- C++ -*-===//
//
// The Subzero Code Generator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------... | 2,098 |
460 | #include "../../../src/xmlpatterns/expr/qexpressionsequence_p.h"
| 24 |
1,006 | <reponame>eenurkka/incubator-nuttx<gh_stars>1000+
/****************************************************************************
* libs/libc/stdio/lib_asprintf.c
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work... | 564 |
928 | <gh_stars>100-1000
/*
* Loader Library by Parra Studios
* A plugin for loading python code at run-time into a process.
*
* Copyright (C) 2016 - 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 o... | 441 |
692 | <filename>SingularityBase/src/main/java/com/hubspot/mesos/SingularityPortMapping.java
package com.hubspot.mesos;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.annotations.Beta;
import io.swagger.v3.oas.annotations.media.Schema;
impor... | 749 |
875 | package com.jeecg.p3.commonweixin.dao;
import com.jeecg.p3.commonweixin.entity.JwSystemUserJwidVo;
import com.jeecg.p3.commonweixin.entity.JwSystemUserVo;
import org.apache.ibatis.annotations.Param;
import org.jeecgframework.p3.core.utils.persistence.GenericDao;
import java.util.List;
public interface MyJwSystemUser... | 453 |
1,968 | //////////////////////////////////////////////////////////////////////////////
//
// 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,577 |
5,168 | /**
* \file dnn/src/cuda/convpooling/opr_impl.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an... | 3,692 |
1,251 | <reponame>palerdot/BlingFire
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
#ifndef _FA_PARSER_NEST_T_H_
#define _FA_PARSER_NEST_T_H_
#include "FAConfig.h"
#include "FAParser_base_t.h"
#include "FAResolveMatch_nest.h"
#include "FAState2OwsCA.h"
... | 1,504 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vector>
#include "single_layer_tests/reverse_sequence.hpp"
#include "common_test_utils/test_constants.hpp"
using namespace LayerTestsDefinitions;
namespace {
const std::vector<InferenceEngine::Precision> netPrecisions ... | 773 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.