max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
1,664 | <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
* ... | 478 |
971 | /**
* Description: BulkDocumentVo.java
* All Rights Reserved.
* @version 4.1 2016-6-1 上午10:49:50 by 李洪波(<EMAIL>)创建
*/
package com.ucar.datalink.flinker.plugin.reader.esreader.client.rest.vo;
import com.ucar.datalink.flinker.plugin.reader.esreader.client.rest.utils.Assert;
import org.apache.commons.lang.StringUt... | 885 |
2,780 | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | 3,339 |
410 | <reponame>PlayMe-Martin/XiMapper<gh_stars>100-1000
#pragma once
#include "BaseCmd.h"
#include "Application.h"
namespace ofx {
namespace piMapper {
class Application;
class ApplicationBaseMode;
class SetApplicationModeCmd : public BaseUndoCmd {
public:
SetApplicationModeCmd(
Application * app,
ApplicationB... | 189 |
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 "third_party/blink/renderer/core/app_history/app_history_navigate_event.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_app_history_... | 1,271 |
428 | <reponame>cping/LGame
/**
* Copyright 2008 - 2019 The Loon Game Engine Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... | 584 |
1,338 | <gh_stars>1000+
/*
** Copyright 2001, <NAME>. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _ALPHA_KERNEL_H
#define _ALPHA_KERNEL_H
// memory layout
#define KERNEL_BASE 0x80000000
#define KERNEL_SIZE 0x80000000
#define USER_BASE 0x00000000
#define USER_SIZE 0x80000000
#end... | 127 |
711 | /*
* Copyright 2015 JBoss 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 i... | 618 |
1,514 | <reponame>Udbhavbisarya23/owtf
"""
PASSIVE Plugin for Testing for Cross site flashing (OWASP-DV-004)
"""
from owtf.managers.resource import get_resources
from owtf.plugin.helper import plugin_helper
DESCRIPTION = "Google Hacking for Cross Site Flashing"
def run(PluginInfo):
resource = get_resources("PassiveCross... | 137 |
335 | <gh_stars>100-1000
{
"word": "Infrastructure",
"definitions": [
"The basic physical and organizational structures and facilities (e.g. buildings, roads, power supplies) needed for the operation of a society or enterprise."
],
"parts-of-speech": "Noun"
} | 91 |
1,210 | <filename>tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/pcDevice/windows/windowsDeviceAPI.py<gh_stars>1000+
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making GameAISDK available.
This source code file is licensed under the GNU General Public License Version 3.
For full detail... | 2,852 |
367 | """Utility functions to create toy input for Cockpit's tests."""
import torch
from torch.utils.data.dataloader import DataLoader
from torch.utils.data.dataset import Dataset
def load_toy_data(batch_size):
"""Build a ``DataLoader`` with specified batch size from the toy data."""
return DataLoader(ToyData(), b... | 492 |
897 | <gh_stars>100-1000
/******************************************************************************
Author - @Suvraneel
<NAME>
* Implementation of a Polynomial Addition & multiplication using Linked Lists in Java *
******************************************************************************/
import java.util... | 2,448 |
5,098 | # 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 copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 1,257 |
1,592 | # -*- coding: UTF-8 -*-
# A part of NonVisual Desktop Access (NVDA)
# Copyright (C) 2006-2021 NV Access Limited, <NAME>
# This file may be used under the terms of the GNU General Public License, version 2 or later.
# For more details see: https://www.gnu.org/licenses/gpl-2.0.html
import os
import sys
import globalVar... | 644 |
365 | # -*- coding: utf-8 -*-
from benedict.dicts.io import IODict
from .test_io_dict import io_dict_test_case
class io_dict_xml_test_case(io_dict_test_case):
def test_from_xml_with_valid_data(self):
j = """
<?xml version="1.0" ?>
<root>
<a>1</a>
<b>
<c>3</c>
<d>4</d>
</b>
</root>... | 2,400 |
593 | <reponame>dineshsonachalam/deeplearning4nlp-tutorial<filename>2016-11_Seminar/Session 4 - LSTM Sequence Classification/code/NER_BiLSTM.py
# -*- coding: utf-8 -*-
"""
This is a German NER implementation for the dataset GermEval 2014. Also check the folder 'Session 1 - SENNA' for some further information.
This model use... | 2,191 |
777 | <gh_stars>100-1000
// 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.
#include "chromeos/components/tether/initializer.h"
namespace chromeos {
namespace tether {
void Initializer::Initialize() {}
Initi... | 126 |
2,648 | # Copyright 2018 Amazon.com, Inc. or its affiliates. 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.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | 5,452 |
1,514 | <gh_stars>1000+
#!/usr/bin/env python
"""
This is the command-line front-end in charge of processing arguments and call the framework
"""
import getopt
import os
import subprocess
import sys
from collections import defaultdict
def GetName():
return sys.argv[0]
def Usage(Message):
print("Usage:")
print(
... | 1,702 |
1,338 | <gh_stars>1000+
// SMReplyTarget.h
#ifndef SM_REPLY_TARGET_H
#define SM_REPLY_TARGET_H
#include <Messenger.h>
class SMHandler;
class SMLooper;
class SMReplyTarget {
public:
SMReplyTarget(bool preferred = false);
virtual ~SMReplyTarget();
virtual BHandler *Handler();
virtual BMessenger Messenger();
virtual bo... | 162 |
10,002 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "RadixType.h"
// export enum RadixType
| 49 |
521 | <reponame>Fimbure/icebox-1<gh_stars>100-1000
/* $Id: VBoxManageInfo.cpp $ */
/** @file
* VBoxManage - The 'showvminfo' command and helper routines.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This... | 69,802 |
2,151 | <filename>src/set_unittest.cc
// Copyright (c) 2011 The Chromium OS 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 <gtest/gtest.h>
#include "gestures/include/set.h"
namespace gestures {
class SetTest : public ::testing::... | 2,088 |
1,442 | <filename>gcompiler/delta_infer/custom_ops/ops_utils.h
#ifndef _DELTA_INFER_CUSTOM_OPS_UTILS_H_
#define _DELTA_INFER_CUSTOM_OPS_UTILS_H_
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/framework/s... | 650 |
1,120 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Associated header
//
#include "k4adevicecorrelator.h"
// System headers
//
#include <regex>
// Library headers
//
// Project headers
//
#include "k4aviewererrormanager.h"
#include "k4asoundio_util.h"
using namespace ... | 723 |
17,037 | <filename>diagrams/base/__init__.py
"""
Base provides a set of general services for backend infrastructure.
"""
from diagrams import Node
class _Base(Node):
_provider = "base"
_icon_dir = "resources/base"
fontcolor = "#ffffff"
| 81 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-p7vc-9g4v-42gh",
"modified": "2021-12-31T00:00:42Z",
"published": "2021-12-29T00:00:44Z",
"aliases": [
"CVE-2021-3095"
],
"details": "A remote attacker with write access to PI Vision could inject code into a display. Unauthorized information disclosure, modific... | 361 |
521 | <reponame>Fimbure/icebox-1
/* $Id: tstClipboardServiceHost.cpp $ */
/** @file
* Shared Clipboard host service test case.
*/
/*
* Copyright (C) 2011-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* ... | 5,805 |
2,059 | #include <Python.h>
#include "graph/proxy/base_datum.h"
#include "canvas/connection/connection.h"
#include "viewport/render/instance.h"
#include "viewport/view.h"
#include "viewport/scene.h"
#include "graph/datum.h"
#include "fab/fab.h"
BaseDatumProxy::BaseDatumProxy(
Datum* d, QObject* parent, ViewportSce... | 462 |
5,169 | {
"name": "MFStoryboardPushSegue",
"version": "1.0",
"license": "BSD",
"summary": "UIStoryboardPushSegue for use outside a navigation controller",
"homepage": "https://github.com/MentallyFriendly/MFStoryboardPushSegue",
"authors": {
"<NAME>": "<EMAIL>"
},
"source": {
"git": "https://github.com/M... | 224 |
1,506 | <reponame>termim/geocoder<gh_stars>1000+
#!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
import logging
from geocoder.base import OneResult, MultipleResultsQuery
class MaxmindResults(OneResult):
def __init__(self, json_content):
# create safe shortcuts
self._location = ... | 1,507 |
806 | package org2.apache.commons.io.filefilter;
import java.io.File;
import java.io.Serializable;
import java.util.List;
import org2.apache.commons.io.IOCase;
public class SuffixFileFilter extends AbstractFileFilter implements Serializable {
private final IOCase caseSensitivity;
private final String[] suffixes;
... | 1,297 |
343 | <gh_stars>100-1000
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_TRACE_EVENT_CFI_BACKTRACE_ANDROID_H_
#define BASE_TRACE_EVENT_CFI_BACKTRACE_ANDROID_H_
#include <stddef.h>
#include <stdi... | 2,314 |
1,500 | #include "napi.h"
using namespace Napi;
// Wrappers for testing Object::Get() for global Objects
Value GetPropertyWithCppStyleStringAsKey(const CallbackInfo& info);
Value GetPropertyWithCStyleStringAsKey(const CallbackInfo& info);
Value GetPropertyWithInt32AsKey(const CallbackInfo& info);
Value GetPropertyWithNapiVal... | 891 |
882 | package water.nbhm;
import java.io.IOException;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.util.AbstractSet;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.concurrent.atomic.AtomicInteger;
import sun.misc.Unsafe;
/*
* Written by <NAME> and released ... | 7,896 |
370 | /*
* WorldEdit, a Minecraft world manipulation toolkit
* Copyright (C) sk89q <http://www.sk89q.com>
* Copyright (C) WorldEdit team and contributors
*
* 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 F... | 626 |
937 | package com.oath.cyclops.react;
import com.oath.cyclops.types.persistent.PersistentList;
import cyclops.reactive.collections.immutable.LinkedListX;
import lombok.AllArgsConstructor;
/**
* Class that returned to blocking predicates for short circuiting result toX
*
* @author johnmcclean
*
* @param <T> Result ty... | 388 |
1,755 | #!/usr/bin/env python
import vtk
from vtk.util.misc import vtkGetDataRoot
VTK_DATA_ROOT = vtkGetDataRoot()
# this test covers a lot of the code in vtkAbstractTransform that
# is not covered elsewhere
# create a rendering window
renWin = vtk.vtkRenderWindow()
renWin.SetMultiSamples(0)
renWin.SetSize(600,300)
# set up f... | 3,362 |
372 | <filename>sasl2-sys/sasl2/mac/mac_lib/mac_dyn_dlopen.c
/*
* load the sasl plugins
* $Id: mac_dyn_dlopen.c,v 1.3 2003/02/13 19:55:59 rjs3 Exp $
*/
/*
* Copyright (c) 1998-2003 Carnegie Mellon University. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, ... | 3,318 |
798 | /*
* The MIT License
*
* Copyright (c) 2018 The Broad Institute
*
* 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... | 525 |
582 | <reponame>oleksandr-pavlyk/dlpack<filename>apps/numpy_dlpack/dlpack/to_numpy.py
import ctypes
import numpy as np
from .dlpack import _c_str_dltensor, DLManagedTensor, DLTensor
ctypes.pythonapi.PyCapsule_IsValid.restype = ctypes.c_int
ctypes.pythonapi.PyCapsule_IsValid.argtypes = [ctypes.py_object, ctypes.c_char_p]
ct... | 1,175 |
766 | /* Copyright 2013-2015 www.snakerflow.com.
*
* 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 ... | 446 |
587 | <gh_stars>100-1000
#include "../hedley.h"
#if HEDLEY_HAS_WARNING("-Wcovered-switch-default")
# pragma clang diagnostic warning "-Wcovered-switch-default"
#endif
enum Foo {
FOO_BAR,
FOO_BAZ,
FOO_QUX,
FOO_QUUX
};
static int test_unreachable(enum Foo code) {
switch (code) {
case FOO_BAR:
case FOO_BAZ:
... | 230 |
30,023 | <filename>homeassistant/components/sentry/manifest.json<gh_stars>1000+
{
"domain": "sentry",
"name": "Sentry",
"config_flow": true,
"documentation": "https://www.home-assistant.io/integrations/sentry",
"requirements": ["sentry-sdk==1.5.12"],
"codeowners": ["@dcramer", "@frenck"],
"iot_class": "cloud_polli... | 128 |
377 | import pandas as pd
import numpy as np
import pyaf.ForecastEngine as autof
import pyaf.Bench.TS_datasets as tsds
import datetime
#get_ipython().magic('matplotlib inline')
def read_dataset():
trainfile = "data/Hierarchical/hts_dataset.csv"
lDateColumn = 'Date'
df = pd.read_csv(trainfile, sep=r',', engin... | 1,754 |
14,668 | <reponame>chromium/chromium
// Copyright 2015 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 "third_party/blink/renderer/core/animation/svg_transform_list_interpolation_type.h"
#include <memory>
#include <util... | 4,248 |
17,242 | // Copyright 2019 The MediaPipe Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... | 2,844 |
489 | /*
* Copyright 2009-present, <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 applicabl... | 617 |
307 | <gh_stars>100-1000
package org.cobbzilla.s3s3mirror;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.S3ObjectSummary;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
public class DeleteMaster extends KeyMaster {
public DeleteMast... | 294 |
14,668 | <reponame>zealoussnow/chromium<filename>chrome/android/javatests/src/org/chromium/chrome/browser/provider/ProviderBookmarksUriTest.java
// Copyright 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.
package org.chromi... | 2,463 |
494 | /*
* Copyright 2017 By_syk
*
* 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 wr... | 5,621 |
369 | <gh_stars>100-1000
/*--------------------------------------------------------------------
Copyright(c) 2015 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of s... | 7,099 |
653 | /** //
* Copyright (c) 2015-2018, The Kovri I2P Router Project //
* //
* All rights reserved. ... | 3,392 |
427 | """
Test some expressions involving STL data types.
"""
from __future__ import print_function
import unittest2
import os
import time
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class STLTestCase(TestBase):
mydir = TestBase.compu... | 2,133 |
561 | {
"blurb": "Implement the `accumulate` operation, which, given a collection and an operation to perform on each element of the collection, returns a new collection containing the result of applying that operation to each element of the input collection.",
"authors": [
"zilkey"
],
"contributors": [
"aleb... | 377 |
829 | //
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>.
//
//#import "NSObject.h"
//#import "DVTInvalidation.h"
//#import "IDEDebugNavigableModel.h"
#import <Cocoa/Cocoa.h>
@class DVTStackBacktrace, IDECodeModule, IDELaunchSession, IDEThread, NS... | 953 |
14,668 | <filename>chrome/common/pdf_util.cc
// 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 "chrome/common/pdf_util.h"
#include "base/metrics/histogram_macros.h"
#include "chrome/common/webui_url_cons... | 795 |
1,457 | <filename>flash/core/data/utilities/classification.py
# Copyright The PyTorch Lightning 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 obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.... | 4,776 |
14,668 | <gh_stars>1000+
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_ASH_SCANNING_LORGNETTE_SCANNER_MANAGER_FACTORY_H_
#define CHROME_BROWSER_ASH_SCANNING_LORGNETTE_SCANNER_MANAGER_FAC... | 510 |
413 | <gh_stars>100-1000
package org.github.jamm;
import java.lang.management.ManagementFactory;
import java.lang.management.MemoryPoolMXBean;
import java.lang.management.RuntimeMXBean;
abstract class MemoryLayoutSpecification
{
abstract int getArrayHeaderSize();
abstract int getObjectHeaderSize();
abstract i... | 2,632 |
4,283 | /*
* Copyright 2021 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 540 |
364 | <reponame>Victor333Huesca/TimelineExtension
{
"name": "timeline-extension",
"version": "1.1.0",
"description": "Windows Timeline + Project Rome support for browsers.",
"scripts": {
"watch": "webpack --config webpack/webpack.dev.js --watch",
"build": "webpack --config webpack/webpack.prod.js"
},
"rep... | 413 |
2,350 | <reponame>avivazran/UnrealEnginePython
#pragma once
#include "UEPyModule.h"
#if WITH_EDITOR
#include "AssetRegistryModule.h"
#include "Runtime/AssetRegistry/Public/ARFilter.h"
typedef struct
{
PyObject_HEAD
/* Type-specific fields go here. */
FARFilter filter;
PyObject *class_names;
PyObject *object_paths;
P... | 271 |
1,023 | {
"snapshot.verify_repository": {
"url_params": {
"master_timeout": "",
"timeout": ""
},
"methods": [
"POST"
],
"patterns": [
"_snapshot/{repository}/_verify"
],
"documentation": "https://opensearch.org/docs/latest/opensearch/snapshot-restore/"
}
}
| 146 |
1,388 | //
// Copyright 2011-2015 <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 ... | 2,418 |
2,552 | {
"bugs": "https://github.com/alrra/browser-logos/issues",
"description": "Cốc Cốc browser logo",
"homepage": "https://github.com/alrra/browser-logos",
"keywords": [
"browser-logos",
"logo",
"cốc-cốc",
"cốc-cốc-logo"
],
"name": "@browser-logos/coc-coc",
"repository": {
"directory": "sr... | 224 |
310 | package org.seasar.doma.it.sqlfile;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.fail;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.seasar.do... | 1,817 |
4,020 | package me.coley.recaf.ui.controls.text.model;
import java.util.*;
/**
* A collection of rules that match against a language's feature set and themes to apply distinct
* styles to each of these rules.
*
* @author <NAME>
* @author Matt
*/
public class Language {
private final List<Rule> rules;
private final St... | 368 |
2,180 | <filename>kafka-manager-common/src/main/java/com/xiaojukeji/kafka/manager/common/entity/pojo/TopicThrottledMetricsDO.java
package com.xiaojukeji.kafka.manager.common.entity.pojo;
import java.util.Date;
/**
* @author zhongyuankai
* @date 20/4/3
*/
public class TopicThrottledMetricsDO {
private Long id;
pri... | 926 |
332 | <gh_stars>100-1000
// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.objects.utils;
import com.google.gson.annotations.SerializedName;
import com.vk.api.sdk.queries.EnumParam;
/**
* Interval.
*/
public enum GetLinkStatsInterval implements EnumParam {
@SerializedName("day... | 313 |
852 | #ifndef SiTrackerMRHTools_SimpleDAFHitCollector_h
#define SiTrackerMRHTools_SimpleDAFHitCollector_h
#include "RecoTracker/SiTrackerMRHTools/interface/MultiRecHitCollector.h"
#include "DataFormats/TrackerRecHit2D/interface/SiStripRecHit1D.h"
#include "RecoTracker/TransientTrackingRecHit/interface/TkClonerImpl.h"
#includ... | 1,673 |
615 | package org.byron4j.cookbook.designpattern.prototype;
/**
* 蛋糕的接口类型;可以clone
*/
public interface Cake extends Cloneable{
/**
* 准备生产蛋糕
* @return
*/
public Cake prepareCake();
}
| 122 |
473 | #!/usr/bin/env python
from generator.actions import Actions, Variable
import random
import string
import struct
import sys
from collections import OrderedDict
CMD_AUTH = 0
CMD_NEW_PERMIT = 1
CMD_NEW_PERMIT_RING = 2
CMD_REFACTOR_RING = 3
CMD_TEST_PERMIT = 4
CMD_TEST_PERMIT_RING = 5
CMD_INVALID = 6
MAX_SPOT_NUMBER = 2... | 3,589 |
3,444 | <reponame>huihui7987/blade
package com.hellokaton.blade.websocket.annotaion;
import java.lang.annotation.*;
/**
* @author darren
* @description invoke websocketHandler onDisConnect method
* @date 2018/12/17 18:41
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface OnCl... | 113 |
2,757 | // Copyright (c) 2016-2017 Dr. <NAME> and <NAME>
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#ifndef TAOCPP_PEGTL_INCLUDE_INTERNAL_MINUS_HPP
#define TAOCPP_PEGTL_INCLUDE_INTERNAL_MINUS_HPP
#include "../config.hpp"
#include "skip_control.hpp"
#include "../apply_mode.hpp"
#include "../... | 1,028 |
759 | <reponame>z-chu/RxWebSocket
package com.dhh.rxwebsocket;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.text.Html;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
impor... | 4,987 |
1,374 | <reponame>norzak/jsweet
/*
* TypeScript definitions to Java translator - http://www.jsweet.org
* Copyright (C) 2015 CINCHEO SAS <<EMAIL>>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation... | 626 |
477 | <filename>tests/test_cmds_goplot_rels.py
#!/usr/bin/env python3
"""Test commands run in notebooks/get_isa_and_partof.ipynb"""
from __future__ import print_function
__copyright__ = "Copyright (C) 2010-2019, <NAME>, <NAME>. All rights reserved."
import os
import sys
# REPO = os.path.join(os.path.dirname(os.path.abspa... | 1,122 |
1,760 | <gh_stars>1000+
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define F0R(i,a) FOR(i,0,a)
#define ROF(i,a,b) for (int i = (b)-1; i >= (a); --i)
#define R0F(i,a) ROF(i,0,a)
#define trav(a,x) for (auto& a: x)
#define p... | 937 |
409 | #ifndef SIM_LINK_H_
#define SIM_LINK_H_
#include <string>
#include <vector>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include "decoder.h"
namespace sim{
class Link{
private:
int sock;
bool noblock_;
bool error_;
Decoder decoder_;
Link(bool is_server=false);
... | 487 |
903 | /*
* 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,238 |
12,940 | {
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#",
"itemDisplayName": "Create a subscription under an EA account",
"description": "This template is a management group template that will create a subscription via an alias. It can be used for an Enterprise Agreement billing mode only. ... | 188 |
325 | #pragma once
namespace mcl { namespace fp {
template<>
struct EnableKaratsuba<Ltag> {
#if MCL_SIZEOF_UNIT == 4
static const size_t minMulN = 10;
static const size_t minSqrN = 10;
#else
static const size_t minMulN = 8;
static const size_t minSqrN = 6;
#endif
};
#if MCL_SIZEOF_UNIT == 4
#define MCL_GMP_IS_FASTER_... | 1,175 |
1,587 | package io.reflectoring.resilience4j.springboot.predicates;
import io.reflectoring.resilience4j.springboot.model.SearchResponse;
import java.util.function.Predicate;
public class ConditionalRetryPredicate implements Predicate<SearchResponse> {
@Override
public boolean test(SearchResponse searchResponse) {
if ... | 166 |
349 | <reponame>alexanderbock/inviwo
/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2015-2021 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifica... | 5,421 |
2,338 | <reponame>mkinsner/llvm
int main() {
// Disable clang-format as it gets confused by the keyword identifiers.
// clang-format off
int alignas = 1;
int alignof = 1;
int and = 1;
int and_eq = 1;
int atomic_cancel = 1;
int atomic_commit = 1;
int atomic_noexcept = 1;
int bitand = 1;
int bitor = 1;
in... | 558 |
1,645 | /*
* Seldon -- open source prediction engine
* =======================================
*
* Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/)
*
* ********************************************************************************************
*
* Licensed under the Apache License, V... | 491 |
1,104 | <filename>Unisystem-Buffy or Angel/sheet.json
{
"html": "Buffy_or_Angel.html",
"css": "Buffy_or_Angel.css",
"authors": "MattBx8",
"roll20userid": "115594",
"preview": "Buffy_PC.jpg",
"instructions": "# Character Sheet\r## Whole Sheet:\rIn order for the font to show up correctly in Chrome, you will have to *... | 358 |
4,403 | package cn.hutool.core.collection;
import cn.hutool.core.io.IORuntimeException;
import cn.hutool.core.io.IoUtil;
import cn.hutool.core.lang.Assert;
import java.io.BufferedReader;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.io.Serializable;
impor... | 980 |
2,542 | <gh_stars>1000+
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stda... | 1,623 |
1,062 | //
// LxGridViewFlowLayout.h
// LxGridView
//
#import <UIKit/UIKit.h>
@interface LxGridViewFlowLayout : UICollectionViewFlowLayout
@property (nonatomic, assign) BOOL panGestureRecognizerEnable;
@end
@protocol LxGridViewDataSource <UICollectionViewDataSource>
@optional
- (void)collectionView:(UICollectionView *... | 645 |
334 | {
"method": "GET",
"resourceFormat": "/profile/profiles/me",
"requestUrl": "https://app.vssps.visualstudio.com/_apis/profile/profiles/me?api-version=1.0",
"requestHeaders": {
"Authorization": "bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Im9PdmN6NU1fN3AtSGpJS2xGWHo5M3VfVjBabyJ9.eyJuYW1laWQiOiJkN... | 1,393 |
14,668 | // 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 IOS_CHROME_BROWSER_UI_MAIN_CONTENT_TEST_TEST_MAIN_CONTENT_UI_STATE_H_
#define IOS_CHROME_BROWSER_UI_MAIN_CONTENT_TEST_TEST_MAIN_CONTENT_UI_STATE_H... | 308 |
502 | <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,313 |
380 | <gh_stars>100-1000
import sys
IS_WINDOWS = sys.platform.startswith('win')
if IS_WINDOWS:
from winreg import ConnectRegistry, OpenKey, QueryInfoKey, QueryValueEx, EnumKey, HKEY_CLASSES_ROOT, HKEY_CURRENT_USER, \
HKEY_LOCAL_MACHINE, HKEY_USERS, HKEY_PERFORMANCE_DATA, HKEY_CURRENT_CONFIG, HKEY_DYN_DATA
i... | 2,084 |
521 | //
// ADJLinkResolution.h
// Adjust
//
// Created by <NAME>. on 26.04.21.
// Copyright © 2021 adjust GmbH. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ADJLinkResolution : NSObject
+ (void)resolveLinkWithUrl:(nonnull NSURL *)url
resolveUrlSuffixArray:(nullable NSArray<NSString *> *)r... | 163 |
381 | package org.apache.helix.task;
/*
* 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, Vers... | 1,672 |
575 | <reponame>Yannic/chromium<filename>components/autofill/core/browser/ui/payments/card_name_fix_flow_controller_impl.cc<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 "componen... | 1,670 |
1,408 | package com.pancm.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pancm.dao.BaseDao;
import com.pancm.dao.cluster.StudentDao;
import com.pancm.pojo.Student;
import com.pancm.service.StudentService;
/**
*
* Title: StudentService... | 250 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.