max_stars_count int64 301 224k | text stringlengths 6 1.05M | token_count int64 3 727k |
|---|---|---|
21,795 | <reponame>jinjunzhu/Hystrix
/**
* Copyright 2012 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 ... | 428 |
892 | <filename>advisories/github-reviewed/2021/06/GHSA-5gjg-jgh4-gppm/GHSA-5gjg-jgh4-gppm.json<gh_stars>100-1000
{
"schema_version": "1.2.0",
"id": "GHSA-5gjg-jgh4-gppm",
"modified": "2021-10-05T16:37:09Z",
"published": "2021-06-23T17:26:30Z",
"aliases": [
],
"summary": "Websocket requests did not call Authen... | 1,075 |
628 | <gh_stars>100-1000
def _generate_dummy_export_header_impl(ctx):
ctx.actions.expand_template(
template = ctx.file._template,
output = ctx.outputs.header_file,
substitutions = {
"{BASE_NAME}": ctx.attr.basename,
},
)
generate_dummy_export_header = rule(
attrs = {
... | 326 |
1,144 | <reponame>dram/metasfresh<filename>backend/de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_M_Product_Category.java
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.util.Properties;
/** Generated Model for M_... | 5,937 |
1,601 | # -------------------------------------------------------------------------
#
# Part of the CodeChecker project, under the Apache License v2.0 with
# LLVM Exceptions. See LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
# ---------------------------------------------------... | 1,791 |
1,210 | from .parseable_str import parse_b58_double_sha256, parse_bech32, parse_colon_prefix, parseable_str
from pycoin.contrib import segwit_addr
from pycoin.encoding.bytes32 import from_bytes_32
from pycoin.intbytes import int2byte
from pycoin.encoding.hexbytes import b2h, h2b
from .Contract import Contract
def hparse(ap... | 7,319 |
1,412 | <gh_stars>1000+
#pragma once
#include <utility>
struct ContainerBase {
virtual void perform() = 0;
virtual ~ContainerBase() = default;
};
template <class Lambda> struct Container : ContainerBase {
Lambda m_lambda;
Container(Lambda&& lambda) : m_lambda(std::move(lambda)) {}
virtual void perform() { m_lambda(... | 202 |
1,127 | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "reshape_kernel_selector.h"
#include "reshape_kernel_ref.h"
namespace kernel_selector {
reshape_kernel_selector::reshape_kernel_selector() { Attach<ReshapeKernelRef>(); }
KernelsData reshape_kernel_selector::GetBestKern... | 166 |
389 | package editor;
import java.awt.*;
/**
*/
public class LabDarkScheme extends Scheme
{
public static final String NAME = "Dark";
@Override
public boolean isDark()
{
return true;
}
@Override
public String splash()
{
return "images/splash3.png";
}
private static final Color ORANGE = new C... | 3,333 |
375 | <reponame>spirentitestdevter/RED
/*
* Copyright 2019 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.rf.ide.core.execution.server.response;
import static com.google.common.collect.Lists.newArrayList;
import static org.assertj... | 893 |
379 | <reponame>annelhote/fonduer
"""Fonduer's feature model module."""
from fonduer.features.models.feature import Feature, FeatureKey
__all__ = ["Feature", "FeatureKey"]
| 52 |
6,180 | <reponame>prkhrsrvstv1/cupy
# nvprof --print-gpu-trace python examples/stream/curand.py
import cupy
rand = cupy.random.RandomState()
stream = cupy.cuda.stream.Stream()
with stream:
y = rand.lognormal(size=(1, 3))
stream = cupy.cuda.stream.Stream()
stream.use()
y = rand.lognormal(size=(1, 3))
| 123 |
348 | {"nom":"Presles","circ":"9ème circonscription","dpt":"Isère","inscrits":89,"abs":35,"votants":54,"blancs":14,"nuls":3,"exp":37,"res":[{"nuance":"LR","nom":"<NAME>","voix":20},{"nuance":"MDM","nom":"<NAME>","voix":17}]} | 88 |
3,055 | <gh_stars>1000+
/*
Fontname: -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO10646-1
Copyright: Public domain font. Share and enjoy.
Glyphs: 95/4777
BBX Build Mode: 0
*/
const uint8_t u8g2_font_9x15_tr[1250] U8G2_FONT_SECTION("u8g2_font_9x15_tr") =
"_\0\3\2\4\4\4\5\5\11\17\0\375\12\375\13\377\1\224\3<\4\3... | 2,306 |
852 | #include "EventFilter/CastorRawToDigi/interface/CastorUnpacker.h"
#include "EventFilter/HcalRawToDigi/interface/HcalDCCHeader.h"
#include "EventFilter/HcalRawToDigi/interface/HcalHTRData.h"
#include "EventFilter/HcalRawToDigi/interface/HcalTTPUnpacker.h"
#include "DataFormats/HcalDetId/interface/HcalOtherDetId.h"
#incl... | 5,764 |
678 | /**
* This header is generated by class-dump-z 0.2b.
*
* Source: /System/Library/PrivateFrameworks/IMCore.framework/IMCore
*/
@interface IMAddressBook : NSObject {
}
+ (id)_threadedABAddressBookLock; // 0x4e051
+ (void *)_threadedABAddressBookRef; // 0x4de31
+ (void *)abAddressBookRef; // 0x4dde9
+ (void *)_abA... | 158 |
671 | <filename>examples/pygi_mpl_numpy/gnome_preamble.py
os.environ['PATH'] += os.pathsep + os.path.join(pkgdir, 'gnome')
| 52 |
6,270 | [
{
"type": "feature",
"category": "EC2",
"description": "Introduces support to initiate Internet Key Exchange (IKE) negotiations for VPN connections from AWS. A user can now send the initial IKE message to their Customer Gateway (CGW) from VPN endpoints."
},
{
"type": "featu... | 279 |
647 | package com.flowci.tree.yml;
import com.flowci.domain.LocalTask;
import com.flowci.domain.StringVars;
import lombok.Getter;
import lombok.Setter;
import java.util.LinkedHashMap;
import java.util.Map;
@Getter
@Setter
public class NotifyYml {
private String plugin;
private Map<String, String> envs = new Link... | 205 |
2,996 | // Copyright 2021 The Terasology Foundation
// SPDX-License-Identifier: Apache-2.0
package org.terasology.engine.logic.location;
import com.google.common.collect.Sets;
import org.terasology.engine.entitySystem.entity.EntityRef;
import org.terasology.engine.entitySystem.entity.lifecycleEvents.OnAddedComponent;
import o... | 681 |
737 | <gh_stars>100-1000
/*
* Copyright (C) 2012-2016. TomTom International BV (http://tomtom.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/LICE... | 3,446 |
623 | // Copyright (C) 2020 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 applicable ... | 582 |
431 | <gh_stars>100-1000
""" Unit tests for input/output functions """
import numpy as np
import json
import mir_eval
import warnings
import nose.tools
import tempfile
def test_load_delimited():
# Test for ValueError when a non-string or file handle is passed
nose.tools.assert_raises(
IOError, mir_eval.io.... | 4,081 |
13,648 | <filename>ports/stm32/boards/NUCLEO_WB55/rfcore_debug.py<gh_stars>1000+
# This file is part of the MicroPython project, http://micropython.org/
#
# The MIT License (MIT)
#
# Copyright (c) 2020 <NAME>
# Copyright (c) 2020 <NAME>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this s... | 4,386 |
892 | <reponame>westonsteimel/advisory-database-github
{
"schema_version": "1.2.0",
"id": "GHSA-42q8-j57q-84vc",
"modified": "2022-05-01T23:34:27Z",
"published": "2022-05-01T23:34:27Z",
"aliases": [
"CVE-2008-0908"
],
"details": "SQL injection vulnerability in browse.asp in Schoolwires Academic Portal allow... | 467 |
605 | // Purpose:
// Test that multiple \DexDeclareAddress references that point to different
// addresses can be used within a single \DexExpectWatchValue.
//
// REQUIRES: system-linux
//
// RUN: %dexter_regression_test -- %s | FileCheck %s
// CHECK: multiple_address.cpp
int main() {
int *x = new int(5);
... | 316 |
810 | <filename>document/Android/app/src/main/java/com/example/nanchen/aiyaschoolpush/config/Consts.java
package com.example.nanchen.aiyaschoolpush.config;
/**
* @author nanchen
* @fileName AiYaSchoolPush
* @packageName com.example.nanchen.aiyaschoolpush.config
* @date 2016/11/09 11:34
*
* 系统常量定义类,此类仅放常量定义,不放任何逻辑代码
... | 425 |
1,564 | package org.modelmapper.functional.conditional;
import static org.testng.Assert.*;
import org.modelmapper.AbstractTest;
import org.modelmapper.Conditions;
import org.modelmapper.PropertyMap;
import org.testng.annotations.Test;
/**
* @author <NAME>
*/
@Test(groups = "functional")
public class ConditionalMapping1 ex... | 374 |
892 | {
"schema_version": "1.2.0",
"id": "GHSA-wc26-f4h3-2vxx",
"modified": "2022-04-26T00:00:58Z",
"published": "2022-04-16T00:00:47Z",
"aliases": [
"CVE-2022-21159"
],
"details": "A denial of service vulnerability exists in the parseNormalModeParameters functionality of MZ Automation GmbH libiec61850 1.5.... | 590 |
476 | <filename>arms/src/main/java/me/xiaobailong24/mvvmarms/base/ConfigArms.java
package me.xiaobailong24.mvvmarms.base;
import android.content.Context;
import me.xiaobailong24.mvvmarms.di.module.ArmsConfigModule;
/**
* @author xiaobailong24
* @date 2017/6/16
* 框架配置接口
*/
public interface ConfigArms {
/**
* 使... | 243 |
839 | <reponame>pdibenedetto/spring-cloud-function<filename>spring-cloud-function-context/src/main/java/org/springframework/cloud/function/utils/PrimitiveTypesFromStringMessageConverter.java
/*
* Copyright 2020-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... | 592 |
494 | <reponame>jerryzhenleicai/Streams
#ifndef SCHEINERMAN_STREAM_PROVIDERS_SET_OPERATION_H
#define SCHEINERMAN_STREAM_PROVIDERS_SET_OPERATION_H
#include "StreamProvider.h"
namespace stream {
namespace provider {
template<typename T, typename Compare>
class SetOperation : public StreamProvider<T> {
public:
SetOperat... | 2,369 |
3,212 | /*
* 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 ... | 3,677 |
971 | <filename>src/execution/compiler/expression/unary_translator.cpp
#include "execution/compiler/expression/unary_translator.h"
#include "common/error/exception.h"
#include "execution/compiler/compilation_context.h"
#include "execution/compiler/work_context.h"
#include "parser/expression/operator_expression.h"
namespace... | 412 |
988 | <filename>deps/GraphBLAS/GraphBLAS/@GrB/private/util/gb_mxarray_to_list.c<gh_stars>100-1000
//------------------------------------------------------------------------------
// gb_mxarray_to_list: convert a built-in array to a list of integers
//---------------------------------------------------------------------------... | 1,577 |
416 | <gh_stars>100-1000
package org.simpleflatmapper.reflect.test.asm;
import org.junit.Test;
import org.simpleflatmapper.reflect.asm.AsmInstantiatorDefinitionFactory;
import org.simpleflatmapper.reflect.instantiator.ExecutableInstantiatorDefinition;
import org.simpleflatmapper.reflect.InstantiatorDefinition;
import org.si... | 1,264 |
634 | /****************************************************************
* Licensed to the Apache Software Foundation (ASF) under one *
* or more contributor license agreements. See the NOTICE file *
* distributed with this work for additional information *
* regarding copyright ownership. The ASF licenses this... | 1,316 |
445 | from instascrape.scrapers import * | 10 |
892 | <filename>advisories/github-reviewed/2021/08/GHSA-vj88-5667-w56p/GHSA-vj88-5667-w56p.json
{
"schema_version": "1.2.0",
"id": "GHSA-vj88-5667-w56p",
"modified": "2021-08-24T17:44:58Z",
"published": "2021-08-25T21:00:11Z",
"withdrawn": "2021-08-24T17:44:58Z",
"aliases": [
],
"summary": "Singleton lacks b... | 804 |
615 | # 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
# distributed under t... | 2,003 |
683 | <reponame>aschugunov/opentelemetry-java-instrumentation
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.benchmark.servlet.app;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestControlle... | 149 |
1,858 | package com.dtstack.flink.sql.sink.kafka.serialization;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.avro.LogicalTypes;
import org.apache.avro.Schema;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.types.Row;
import org.junit.Before;
import or... | 2,303 |
348 | <filename>docs/data/t2/017/17320.json
{"nom":"Saint-Coutant-le-Grand","dpt":"Charente-Maritime","inscrits":304,"abs":57,"votants":247,"blancs":26,"nuls":4,"exp":217,"res":[{"panneau":"2","voix":109},{"panneau":"1","voix":108}]} | 94 |
331 | //
// MLChatImageCell.h
// Monal
//
// Created by <NAME> on 12/24/17.
// Copyright © 2017 Monal.im. All rights reserved.
//
#import "MLBaseCell.h"
@class MLMessage;
@interface MLChatImageCell : MLBaseCell
@property (nonatomic, weak) IBOutlet UIImageView *thumbnailImage;
@property (nonatomic, weak) IBOutlet UIAc... | 184 |
681 | package com.cleveroad.pulltorefresh.firework;
import android.graphics.Canvas;
interface FireworksDrawer {
void draw(Canvas canvas, int width, int height);
void reset();
}
| 61 |
2,151 | <filename>src/third_party/swiftshader/third_party/PowerVR_SDK/Tools/PVRTools.h
/*!****************************************************************************
@file PVRTools.h
@copyright Copyright (c) Imagination Technologies Limited.
@brief Header file to include a particular API tools header
**... | 1,507 |
1,341 | <reponame>JxbSir/GKPageScrollView
//
// GKListRefreshViewController.h
// GKPageScrollViewDemo
//
// Created by gaokun on 2018/12/11.
// Copyright © 2018 QuintGao. All rights reserved.
//
#import "GKBasePageViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface GKListRefreshViewController : GKBasePageViewController... | 133 |
6,224 | <reponame>psychogenic/zephyr
/*
* Copyright 2021 The Chromium OS Authors
* Copyright 2021 Grinn
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <drivers/sensor.h>
#include <drivers/gpio.h>
#include <logging/log.h>
#include "ina230.h"
LOG_MODULE_DECLARE(INA230, CONFIG_SENSOR_LOG_LEVEL);
static void ina230_g... | 748 |
1,738 | <reponame>jeikabu/lumberyard
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provid... | 6,759 |
4,036 | # there should be no difference whether you import 2 things on 1 line, or use 2
# lines
from typing import Optional
from unknown import foo, bar
var: Optional['foo'] = None
| 45 |
837 | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2014, University of Toronto
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following cond... | 1,672 |
451 | // File Automatically generated by eLiSe
#include "StdAfx.h"
#include "cEqAppui_GL__PProjInc_M2CFour19x2.h"
cEqAppui_GL__PProjInc_M2CFour19x2::cEqAppui_GL__PProjInc_M2CFour19x2():
cElCompiledFonc(2)
{
AddIntRef (cIncIntervale("Intr",0,20));
AddIntRef (cIncIntervale("Orient",20,26));
AddIntRef (cIncInterv... | 31,630 |
342 | /*
* Copyright 2006,2012,2016 BitMover, 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 o... | 1,426 |
3,562 | <reponame>kaiker19/incubator-doris
// 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... | 2,783 |
1,168 | // We index elements of initializer lists.
//- @foo defines/binding FnFoo
int foo() { return 0; }
class B {
public:
//- @B defines/binding BCtor
B(int x) { }
};
class C : public B {
//- BFooCall=@"foo()" ref/call FnFoo
//- BCtorCall=@"B(foo())" ref/call BCtor
//- BFooCall childof CtorC
//- BCtorCall childo... | 292 |
1,150 | <gh_stars>1000+
package io.confluent.developer.ccloud.demo.kstream.topic;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Configuration
@ConfigurationProperties("topics.transaction-request")
public class TransactionRequestTopicC... | 94 |
1,340 | //
// MTITextureLoader.h
// MetalPetal
//
// Created by <NAME> on 2019/1/10.
//
#import <MetalKit/MetalKit.h>
NS_ASSUME_NONNULL_BEGIN
/// Abstract interface for texture loaders.
@protocol MTITextureLoader <NSObject>
+ (instancetype)newTextureLoaderWithDevice:(id <MTLDevice>)device NS_SWIFT_NAME(makeTextureLoader... | 1,008 |
1,107 | <reponame>stefsmeets/pyvista<filename>examples/01-filter/interpolate.py
"""
.. _interpolate_example:
Interpolating
~~~~~~~~~~~~~
Interpolate one mesh's point/cell arrays onto another mesh's nodes using a
Gaussian Kernel.
"""
# sphinx_gallery_thumbnail_number = 4
import pyvista as pv
from pyvista import examples
####... | 965 |
1,100 | <filename>Exercise_04/Exercise_04_02/Exercise_04_02.java<gh_stars>1000+
/*
(Geometry: great circle distance) The great circle distance is the distance between
two points on the surface of a sphere. Let (x1, y1) and (x2, y2) be the geographical
latitude and longitude of two points. The great circle distance between the ... | 725 |
841 | /*
* Copyright 2017 Red Hat, Inc. and/or 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 required by app... | 2,024 |
435 | <reponame>allen91wu/data
{
"description": "Segue ai a palestrinha o Rodolfo\n\n",
"language": "por",
"recorded": "2017-09-08",
"speakers": [
"<NAME>"
],
"thumbnail_url": "https://i.ytimg.com/vi/o2djVyvDmPQ/hqdefault.jpg",
"title": "Vamos hackear o futuro com Python e companhia Code Club Crian\u00e7a F... | 212 |
647 | /*
PURPOSE:
(Flag enumerated typedef definition.)
*/
#ifndef FLAG_H
#define FLAG_H
/*=== Protect against 'TRUE' and 'FALSE' already being '#define'd ===*/
#ifdef TRUE
#undef TRUE
#define TRUE_RESET
#endif
#ifdef FALSE
#undef FALSE
#define FALSE_RESET
#endif
#ifdef True
#undef True
#define True_RESET
#endif
#if... | 974 |
347 | <filename>UE_MotMatch/Plugins/MotionMatching/Source/MotionMatching/Public/MotionKey.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "MotionStructs.h"
#include "Animation/AnimSequence.h"
#include "MotionKeyU... | 768 |
1,982 | package com.guoxiaoxing.android.sdk.design._1_6_abstract_factory_pattern;
// 抽象产品B
public abstract class AbstractProductB {
}
| 54 |
8,731 | <reponame>mengzhisuoliu/libevent<filename>test/regress_openssl.c
/*
* Copyright (c) 2009-2012 <NAME> and <NAME>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the... | 3,358 |
1,617 | <filename>sdk/protocol/boathlfabric/protos/google/protobuf/duration.pb-c.c
/* Generated by the protocol buffer compiler. DO NOT EDIT! */
/* Generated from: google/protobuf/duration.proto */
/* Do not generate deprecated warnings for self */
#ifndef PROTOBUF_C__NO_DEPRECATED
#define PROTOBUF_C__NO_DEPRECATED
#endif
#... | 1,563 |
2,023 | from tkinter import Tk, END, INSERT
from tkinter.ttk import Frame, Style
from tkinter.scrolledtext import ScrolledText
from tkinter.filedialog import asksaveasfilename, askopenfilename
class Scratchpad:
def __init__(self):
self.window = Tk()
self.window.title("Onager Scratchpad")
self.crea... | 1,088 |
6,989 | /*
C99 compatibility for SciPy
The Rules:
- Every function definition must have compiler guard so that it is not defined twice.
- This file should only affect compilers that do not support C99 natively.
- All functions should be defined as "static" to limit linker conflicts.
*/
#ifndef SC... | 3,163 |
416 | <filename>src/main/java/com/tencentcloudapi/aai/v20180522/models/SimultaneousInterpretingRequest.java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 6,369 |
316 | <filename>tests/slicing/sources/bitcast6.c
#include <limits.h>
/* test accessing bytes in int */
int main(void) {
int a = 0;
char *byte = (char *) &a;
int result = 0;
for (unsigned i = 0; i < sizeof(int); i++)
result |= (byte[i] = 0x1b) << i * CHAR_BIT;
test_assert(a == result);
retu... | 143 |
1,638 | <reponame>mehrdad-shokri/rmwc<filename>src/provider/generated-examples.json
["\n `\n import React from 'react';\n import * as ReactDOM from 'react-dom';\n import App from './App'; // your main app component\n import { RMWCProvider } from '@rmwc/provider';\n\n // This example disables ripples globally by default\n... | 436 |
438 | import sys
from setuptools import setup, find_packages
install_requires = ['']
classifiers = ["Programming Language :: Python",
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3"]
setup(name='browsertime',
version="0.1",
url='https://github.... | 277 |
473 | /*
* QEMU VNC display driver: hextile encoding
*
* Copyright (C) 2006 <NAME> <<EMAIL>>
* Copyright (C) 2006 <NAME>
* Copyright (C) 2009 Red Hat, Inc
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... | 1,162 |
447 | /*=============================================================================
Copyright (c) 2014-2021 <NAME>. All rights reserved.
Distributed under the MIT License [ https://opensource.org/licenses/MIT ]
=============================================================================*/
#if !defined(CYCFI_Q_MONOS... | 803 |
852 | #ifndef HLTCOMPARATOR_H
#define HLTCOMPARATOR_H
// Original Author: <NAME>
#include "FWCore/Framework/interface/EDFilter.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/Para... | 487 |
507 | <reponame>RussellALA/FrEIA<gh_stars>100-1000
import warnings
from FrEIA.framework.sequence_inn import SequenceINN
class ReversibleSequential(SequenceINN):
def __init__(self, *dims: int):
warnings.warn("ReversibleSequential is deprecated in favour of "
"SequenceINN. It will be remove... | 201 |
303 | <filename>lightcrafts/src/com/lightcrafts/app/menu/UndoMenuItem.java
/* Copyright (C) 2005-2011 <NAME> */
package com.lightcrafts.app.menu;
import com.lightcrafts.app.ComboFrame;
import com.lightcrafts.ui.editor.Document;
import javax.swing.*;
class UndoMenuItem extends ActionMenuItem {
UndoMenuItem(ComboF... | 253 |
936 | /*
* Copyright 2019, Yahoo Inc.
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root for terms.
*/
package com.yahoo.elide.tests;
import static com.yahoo.elide.core.dictionary.EntityDictionary.NO_VERSION;
import static com.yahoo.elide.test.graphql.GraphQLDSL.UNQUOTED_VALUE;
import st... | 18,792 |
6,992 | <filename>core/src/test/java/org/springframework/security/access/vote/DenyAgainVoter.java
/*
* Copyright 2004, 2005, 2006 Acegi Technology Pty 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 th... | 562 |
1,491 | <gh_stars>1000+
{
"testEnvironment": "jsdom",
"moduleFileExtensions": ["js", "jsx"],
"testRegex": "/__tests__/.*\\.test\\.js$",
"setupTestFrameworkScriptFile": "__tests__/jest.jsdom.setup.js"
} | 82 |
1,540 | <gh_stars>1000+
package testhelper;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.StandardOpenOption;
import javax.tools.JavaFileObject.Kind;
public class SourceCode {
private final String name;
private final File directory;
private final boolean skipLoading;... | 326 |
852 | <reponame>ckamtsikis/cmssw
#ifndef RecoExamples_JetToDigiDump_h
#define RecoExamples_JetToDigiDump_h
#include <TH1.h>
#include <TProfile.h>
#include <TH2.h>
/* \class JetToDigiDump
*
* \author <NAME>
*
* \version 1
*
*/
#include "FWCore/Framework/interface/EDAnalyzer.h"
class JetToDigiDump : public... | 367 |
1,682 | /*
Copyright (c) 2012 LinkedIn Corp.
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... | 1,753 |
690 | <filename>artemis-core/artemis/src/test/java/com/artemis/ComponentManagerTest.java
package com.artemis;
import static org.junit.Assert.fail;
import java.lang.reflect.Field;
import org.junit.Before;
public class ComponentManagerTest {
private World world;
@Before
public void init() {
world = new World();
... | 368 |
515 | <filename>Plugins/org.commontk.eventbus/Testing/Cpp/ctkTestRegistry.cpp
/*
* ctkTestRegistry.cpp
* ctkTestSuiteEngine
*
* Created by <NAME> on 17/09/09.
* Copyright 2009 B3C. All rights reserved.
*
* See Licence at: http://tiny.cc/QXJ4D
*
*/
#include "ctkTestRegistry.h"
using namespace ctkQA;
ctkTestRe... | 276 |
7,482 | <reponame>849679859/rt-thread
/*
* Copyright (c) 2020, Shenzhen Academy of Aerospace Technology
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2020-10-16 Dystopia the first version
*/
#include <rthw.h>
#include <rtthread.h>
#include <finsh.h>
#include "b... | 561 |
1,144 | <reponame>dram/metasfresh<filename>backend/de.metas.vertical.pharma/src/main/java/de/metas/impexp/bpartner/IFABPartnerImportProcess.java
package de.metas.impexp.bpartner;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Objects;
import java.util.Properties;
import org.adempiere.ad.trx.api.ITr... | 2,076 |
1,120 | import argparse
import json
import os
import shutil
import sys
import numpy as np
sys.path.insert(0, os.path.abspath(os.path.join(os.getcwd(), "../../../")))
def add_args(parser):
parser.add_argument('--client_num_per_round', type=int, default=3, metavar='NN',
help='number of workers')
... | 2,164 |
839 | <reponame>AnEmortalKid/cxf
/**
* 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.... | 543 |
2,151 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/storage_monitor/storage_monitor_chromeos.h"
#include <utility>
#include "base/files/file_path.h"
#include "base/logging.h"
#include... | 4,699 |
471 | <filename>corehq/apps/userreports/tests/test_static_data_sources.py
import os
import uuid
from collections import Counter
from django.test import SimpleTestCase
from django.test.utils import override_settings
from mock import MagicMock, patch
from corehq.apps.userreports.models import (
DataSourceConfiguration,
... | 1,396 |
599 | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community
Edition) available.
Copyright (C) 2017-2021 TH<NAME>, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in complianc... | 742 |
589 | <reponame>ClaudioWaldvogel/inspectIT
package rocks.inspectit.agent.java.sensor.platform;
import rocks.inspectit.agent.java.sensor.ISensor;
import rocks.inspectit.shared.all.communication.SystemSensorData;
import rocks.inspectit.shared.all.instrumentation.config.impl.PlatformSensorTypeConfig;
/**
* This interface is ... | 320 |
496 | # Generated by Django 3.1 on 2020-11-15 09:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0015_auto_20201019_2128'),
]
operations = [
migrations.RemoveField(
model_name='historicalpost',
name='publis... | 714 |
335 | <filename>F/Financial_noun.json
{
"word": "Financial",
"definitions": [
"The finances or financial situation of an organization or individual.",
"Shares in financial companies."
],
"parts-of-speech": "Noun"
} | 88 |
380 | <filename>geetest_crack/utils/captcha.py
from PIL import Image
def crop_image(img: Image, x, y, width, height):
"""裁剪图片"""
return img.crop((x, int(y), int(x + width), int(y + height)))
def paste_image(new_img: Image, img: Image, x, y, width, height):
"""粘贴图片到new_img中"""
new_img.paste(img, (x, int(y)... | 919 |
1,511 | <filename>tests/cluecode/data/ics/dbus-dbus/dbus-marshal-basic.c
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/* dbus-marshal-basic.c Marshalling routines for basic (primitive) types
*
* Copyright (C) 2002 CodeFactory AB
* Copyright (C) 2003, 2004, 2005 Red Hat, Inc.
*
* Licensed under the A... | 125 |
602 | package io.stargate.it.storage;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.junit.jupiter.api.extension.ExtendWith;
/**
* Annotates a test class or method to check whether the current runni... | 194 |
6,098 | package water.test.dummy;
import water.Iced;
public abstract class DummyAction<T> extends Iced<DummyAction<T>> {
protected abstract String run(DummyModelParameters parms);
protected void cleanUp() {};
}
| 64 |
679 | <reponame>Grosskopf/openoffice
/**************************************************************
*
* 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... | 1,267 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.