max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
653
<reponame>mkinsner/llvm<gh_stars>100-1000 // RUN: %clang_cc1 -fsycl-is-device -ast-dump %s | FileCheck %s // This test checks that compiler generates correct kernel arguments for // union without array. union MyUnion { int x; char y; float cuda; }; template <typename name, typename Func> __attribute__((sycl_ke...
386
1,652
package com.ctrip.xpipe.simpleserver; /** * @author wenchao.meng * * Aug 28, 2016 */ public interface DeadAware { void setDead(); }
54
555
package test; import com.ifnoelse.pdf.Bookmark; import com.ifnoelse.pdf.PDFContents; import com.ifnoelse.pdf.PDFUtil; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.List; /** * Created by ifnoelse on 2017/2/25 0025. */ public class Test { public static vo...
247
10,016
<reponame>eas5/zaproxy<filename>zap/src/main/java/org/zaproxy/zap/extension/help/ZapTocMerger.java /* * Zed Attack Proxy (ZAP) and its related class files. * * ZAP is an HTTP/HTTPS proxy for assessing web application security. * * Copyright 2014 The ZAP Development Team * * Licensed under the Apache License, Ver...
5,051
422
<reponame>vishalbelsare/geotorch # Tests for the Sphere from unittest import TestCase import itertools import torch import torch.nn as nn import geotorch.parametrize as P from geotorch.skew import Skew class TestSkew(TestCase): def test_backprop(self): r"""Test that we may instantiate the parametrizatio...
719
1,382
/* * Copyright (c) 2007 - 2015 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publi...
6,689
692
/* * ADIOS is freely available under the terms of the BSD license described * in the COPYING file in the top level directory of this source distribution. * * Copyright (c) 2008 - 2009. UT-BATTELLE, LLC. All rights reserved. */ #include <stdio.h> #include <string.h> #include "mpi.h" #include "adios.h" /********...
676
3,215
[{"filename": "bin", "type": "directory"}, {"filename": "digout", "type": "ASCII text"}, {"filename": "file with spaces in the name", "type": "empty"}, {"filename": "git", "type": "directory"}, {"filename": "id-centos.out", "type": "ASCII text"}, {"filename": "ifcfg.json", "type": "ASCII text, with very long lines"}, {...
477
577
package org.python.expose.generate; import org.python.core.PyOverridableNew; import org.objectweb.asm.Label; import org.objectweb.asm.Type; public class OverridableNewExposer extends Exposer { private Type onType, subtype; private String name; public OverridableNewExposer(Type onType, ...
1,025
3,428
{"id":"00635","group":"easy-ham-2","checksum":{"type":"MD5","value":"1003c1e3894e3a1ab710eef5abf381b9"},"text":"From <EMAIL> Wed Aug 14 10:45:54 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: <EMAIL>noteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Postfix) with ESMTP id 7A8E...
1,546
934
#!/usr/bin/env python3 from mythic_payloadtype_container import mythic_service mythic_service.start_service_and_heartbeat()
41
690
import sublime, sublime_plugin import os, shlex from ...libs.global_vars import * from ...libs import util from ...libs import Hook class JavascriptEnhancementsAddProjectTypeCommand(sublime_plugin.WindowCommand): project_type = None settings = None def run(self, **kwargs): self.settings = util.get_project_s...
442
2,424
"""Auto-generated file, do not edit by hand. AM metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_AM = PhoneMetadata(id='AM', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='[148]\\d{2,4}', possible_length=(3, 4, ...
317
693
<reponame>retr0-13/routeros-scanner # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. import json class Comparison(object): SMALLER = -1 SAME = 0 BIGGER = 1 class CVEValidator(object): def __init__(self, jsonfname): with open(jsonfname, 'r') as fjson: s...
2,395
710
import torch import numpy as np from abc import ABCMeta, abstractmethod from sklearn.metrics import precision_recall_fscore_support class Metric(metaclass=ABCMeta): @abstractmethod def __init__(self): pass @abstractmethod def reset(self): """ Resets the metric to to it's initi...
911
839
<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,098
337
<reponame>AndrewReitz/kotlin package test; class J { void test(O o) { o.foo("x"); O.INSTANCE.foo("y"); } }
70
496
<gh_stars>100-1000 # -*- coding: utf-8 -*- # # 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://aws.amazon.com/...
1,858
575
// 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 "chrome/browser/permissions/crowd_deny_preload_data.h" #include <string> #include <utility> #include "base/bind.h" #include "base/callback_help...
2,128
2,769
<reponame>johnrichardrinehart/cointop // +build android #include <android/log.h> #include <jni.h> #include <stdlib.h> #include <string.h> #define LOG_FATAL(...) __android_log_print(ANDROID_LOG_FATAL, "GoLog", __VA_ARGS__) static const char *jstringToCharCopy(JNIEnv *env, const jstring string) { const char *chars...
3,195
342
<reponame>gspu/bitkeeper<filename>src/bkd_nested.c /* * Copyright 2009-2013,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/LI...
809
964
[ { "queryName": "Non Kube System Pod With Host Mount", "severity": "MEDIUM", "line": 40 }, { "queryName": "Non Kube System Pod With Host Mount", "severity": "MEDIUM", "line": 43 }, { "queryName": "Non Kube System Pod With Host Mount", "severity": "MEDIUM", "line": 59 }, { "queryName": "Non K...
332
726
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/06_docments.ipynb (unless otherwise specified). __all__ = ['docments'] # Cell from tokenize import tokenize,COMMENT from ast import parse,FunctionDef from io import BytesIO from textwrap import dedent from types import SimpleNamespace from inspect import getsource,isfun...
910
25,151
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you m...
2,713
1,143
from abc import abstractmethod import posixpath import threading from twitter.common.concurrent import Future from twitter.common.lang import Interface class Membership(object): ERROR_ID = -1 @staticmethod def error(): return Membership(_id=Membership.ERROR_ID) def __init__(self, _id): self._id = _...
1,675
7,739
<filename>ludwig/backend/__init__.py #! /usr/bin/env python # Copyright (c) 2020 Uber Technologies, 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...
972
480
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
2,068
14,668
// 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 "mojo/core/ports/node.h" #include <string.h> #include <algorithm> #include <atomic> #include <memory> #include <utility> #include <vector> #in...
30,459
32,544
package com.baeldung.compress; public class Message { private String text; public Message() { } public Message(String text) { this.text = text; } public String getText() { return text; } public void setText(String text) { this.text = text; } @Overri...
226
1,025
<reponame>jeongjoonyoo/CodeXL<gh_stars>1000+ //------------------------------ kaMultiSourceView.cpp ------------------------------ // Qt #include <QtWidgets> #include <AMDTKernelAnalyzer/src/kaSourceCodeView.h> #include <AMDTKernelAnalyzer/src/kaSourceCodeTableView.h> // Infra: #include <AMDTBaseTools/Include/gtAsser...
26,553
852
<reponame>ckamtsikis/cmssw<filename>FastSimulation/ForwardDetectors/test/testProtonTaggers_cfg.py import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") # ... the number of events to be processed process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) ) # ... this is needed for th...
1,177
1,168
<reponame>wcalandro/kythe<filename>kythe/cxx/indexer/cxx/testdata/basic/usr_var.cc // We index USRs for variables. //- @global defines/binding Global //- GlobalUSR /clang/usr Global //- GlobalUSR.node/kind clang/usr int global; //- @param defines/binding Param //- !{_ /clang/usr Param} void f(int param) { } void g()...
154
479
/* * Copyright 2020 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 ...
1,271
1,473
<reponame>ljmf00/autopsy<filename>Core/src/org/sleuthkit/autopsy/rejview/RejTreeValueView.java /* * Autopsy * * Copyright 2019 Basis Technology Corp. * Contact: carrier <at> sleuthkit <dot> org * * Copyright 2013 <NAME> * Contact: willi.ballenthin <at> gmail <dot> com * * Licensed under the Apache License, Ver...
2,900
419
#!/usr/bin/env python from python_qt_binding import loadUi qt_version_below_5 = False try: # Starting from Qt 5 QWidget is defined in QtWidgets and not QtGui anymore from python_qt_binding import QtWidgets from python_qt_binding.QtWidgets import QWidget except: from python_qt_binding import QtGui fr...
1,304
5,169
{ "name": "JZGAlertManager", "version": "1.0.0", "summary": "iOS-OC 弹框管理", "homepage": "http://git.jingzhengu.com/machao/JZGAlertManager", "license": "MIT", "authors": { "machao": "<EMAIL>" }, "platforms": { "ios": null }, "source": { "git": "<EMAIL>:machao/JZGAlertManager.git", "tag...
210
3,102
<gh_stars>1000+ //===--- ByteCodeGenError.h - Byte code generation error --------*- C++ -*-===// // // 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-exception // //===-----------...
145
445
<reponame>iamabhishek0/sympy from __future__ import print_function, division from collections import defaultdict from sympy.core import (sympify, Basic, S, Expr, expand_mul, factor_terms, Mul, Dummy, igcd, FunctionClass, Add, symbols, Wild, expand) from sympy.core.cache import cacheit from sympy.core.compatibilit...
21,854
416
// // CPTravelEstimates.h // CarPlay // // Copyright © 2018 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> NS_ASSUME_NONNULL_BEGIN /** @c CPTravelEstimates describes the time and distance remaining for the active navigation session. */ API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(macos, watcho...
410
407
/** * Copyright 2011 The Apache Software Foundation * * 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...
858
488
struct nsID { }; class nsCategoryManager { public: int SuppressNotifications(bool aSuppress); friend class nsCategoryManagerFactory; };
47
533
<filename>conf/mpiuni/mpi.h /* Author: <NAME> */ /* Contact: <EMAIL> */ #ifndef PyMPI_MPIUNI_H #define PyMPI_MPIUNI_H #include <petscconf.h> #undef PETSC_HAVE_HIP #undef PETSC_HAVE_CUDA #undef PETSC_HAVE_FORTRAN #include <petsc/mpiuni/mpi.h> #define PETSCSYS_H #define PETSCIMPL_H #include <stdio.h> #include <stdl...
215
575
// 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 COMPONENTS_FEED_CORE_V2_PUBLIC_WEB_FEED_SUBSCRIPTIONS_H_ #define COMPONENTS_FEED_CORE_V2_PUBLIC_WEB_FEED_SUBSCRIPTIONS_H_ #include <string> #incl...
814
643
<reponame>angie1148/codeql // Generated automatically from android.media.AudioAttributes for testing purposes package android.media; import android.os.Parcel; import android.os.Parcelable; public class AudioAttributes implements Parcelable { protected AudioAttributes() {} public String toString(){ return nul...
794
357
<reponame>nrs011/steady /** * This file is part of Eclipse Steady. * * 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 requi...
6,901
1,304
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from rasa_nlu.training_data.message import Message from rasa_nlu.training_data.training_data import TrainingData from rasa_nlu.training_data.load...
102
5,169
{ "name": "CustomRangeSelection", "version": "0.0.1", "summary": "This class draws rectangle for track layer on a bezier path and fills color to it.", "description": "This class draws rectangle for track layer on a bezier path and fills color to it.curvaceousness defines the cornerradius for track layer.And cha...
304
777
// 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 "net/http/http_network_layer.h" #include "base/logging.h" #include "base/power_monitor/power_monitor.h" #include "base/strings/string_number...
622
666
<reponame>tgolsson/appJar import sys sys.path.append("../../") colour = "red" col = "blue" all_vars = ["a", "b"] from appJar import gui app=gui() app.addLabel("l1", "help") app.addListBox("avar_options",all_vars) app.startSubWindow("Adding Variables", modal=True) app.setSticky("nesw") #app.setBg(colour) #app.setFo...
284
326
<reponame>bihell/Dice package com.bihell.dice.framework.shiro.cache; import com.bihell.dice.framework.shiro.jwt.JwtToken; import com.bihell.dice.framework.shiro.vo.LoginSysUserRedisVo; import com.bihell.dice.framework.shiro.vo.LoginSysUserVo; /** * 登录信息Redis缓存操作服务 * * @author haseochen*/ public interface LoginRedi...
798
3,084
<reponame>ixjf/Windows-driver-samples /************************************************************************** A/V Stream Camera Sample Copyright (c) 2013, Microsoft Corporation. File: NonCopyable.h Abstract: Simple base class that hides the copy ctor and assignment ...
377
9,182
/** * FakeLogger.hpp: * * Setup a fake logger for use with the testing. This allows for the capture of messages from the system and ensure that * the proper log messages are coming through as expected. * * @author mstarch */ #include <Fw/Types/BasicTypes.hpp> #include <Fw/Logger/Logger.hpp> #ifndef FPRIME_FAKE...
1,832
4,772
package example.repo; import example.model.Customer363; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer363Repository extends CrudRepository<Customer363, Long> { List<Customer363> findByLastName(String lastName); }
83
839
<reponame>kimjand/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.0 (th...
557
1,144
<gh_stars>1000+ /****************************************************************************** * Product: Adempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or...
2,007
416
// // ASAuthorizationSingleSignOnProvider.h // AuthenticationServices Framework // // Copyright © 2018 Apple Inc. All rights reserved. // #import <AuthenticationServices/ASFoundation.h> #import <AuthenticationServices/ASAuthorizationProvider.h> #import <AuthenticationServices/ASAuthorizationSingleSignOnRequest.h> ...
367
431
package me.neznamy.tab.shared.features.scoreboard; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import me.neznamy.tab.api.Scoreboard;...
4,738
1,483
<filename>lealone-db/src/main/java/org/lealone/db/util/IntIntHashMap.java /* * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, * and the EPL 1.0 (http://h2database.com/html/license.html). * Initial Developer: H2 Group */ package org.lealone.db.util; import org.lealone.common.exceptions.DbExcepti...
2,174
3,895
#!/usr/bin/env python # coding=utf-8 import pytest from sacred.config.custom_containers import DogmaticDict, DogmaticList def test_isinstance_of_list(): assert isinstance(DogmaticList(), list) def test_init(): l = DogmaticList() assert l == [] l2 = DogmaticList([2, 3, 1]) assert l2 == [2, 3, ...
1,225
945
/*========================================================================= * * Copyright NumFOCUS * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.or...
998
5,169
{ "name": "SkyWolf", "version": "0.0.5", "summary": "SkyWolf loadingView", "homepage": "http://gitlab.xingmentech.com/alita/jrnunit/skywolf.git", "license": "MIT", "authors": { "jobs": "<EMAIL>" }, "platforms": { "ios": "9.0" }, "source": { "git": "http://gitlab.xingmentech.com/alita/jrn...
225
416
<gh_stars>100-1000 // // GKEventListener.h // Game Center // // Copyright 2012-2021 Apple Inc. All rights reserved. // #import <Foundation/Foundation.h> @class GKPlayer, GKChallenge; NS_ASSUME_NONNULL_BEGIN @protocol GKChallengeListener <NSObject> @optional /// Called when a player starts the game with the inten...
578
4,537
<filename>src/common/command_utils.cpp // 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, ...
2,207
1,162
<reponame>civitaspo/digdag package io.digdag.cli; import ch.qos.logback.classic.PatternLayout; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.UnsynchronizedAppenderBase; import ch.qos.logback.classic.Level; import io.digdag.core.log.LogLevel; import io.digdag.core.log.TaskContextLogging; i...
954
307
<reponame>baajur/transfer-nlp { "the_trainer": { "_name": "MockTrainer", "env_param": "$ENV_PARAM", "bool_param": "$bparam", "int_param": "$iparam", "float_param": "$fparam", "str_param": "$sparam" }, "the_reporter": { "_name": "MockReporter" }, "lobjects": "$listobjects" }
146
337
interface SAM { String <caret>foo(); } class JTest { static void samTest(SAM sam) { } }
38
2,568
{ "Zoolz": { "domain": "intelli.zoolz.com", "tfa": [ "totp" ], "documentation": "https://wiki.zoolz.com/how-do-i-enable-two-factor-authentication-on-my-zoolz-intelligent-account/", "notes": "Only available for business accounts.", "keywords": [ "backup" ] } }
142
731
package com.webank.weevent.core.dto; import java.util.ArrayList; import java.util.List; import lombok.Getter; import lombok.Setter; /** * list page result. * * @author matthewliu * @since 2019/02/11 */ @Getter @Setter public class ListPage<T> { private Integer total; private Integer pageIndex; priv...
145
428
/** * 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 * * Unless required by appl...
5,305
335
{ "word": "Anchor", "definitions": [ "A heavy object attached to a cable or chain and used to moor a ship to the sea bottom, typically having a metal shank with a pair of curved, barbed flukes at one end.", "A person or thing that provides stability or confidence in an otherwise uncertain situat...
173
332
<filename>plugins/custom_schemas_with_python_bindings/compiling_the_schema/src/__packageinit__.py """The main testout custom schema. This dynamic library was created based on USD's custom schema classes tutorial. Reference: https://graphics.pixar.com/usd/docs/Generating-New-Schema-Classes.html """
99
308
#pragma once FASTLED_NAMESPACE_BEGIN template<uint8_t PIN, uint32_t MASK> class _ESPPIN { public: typedef volatile uint32_t * port_ptr_t; typedef uint32_t port_t; inline static void setOutput() { pinMode(PIN, OUTPUT); } inline static void setInput() { pinMode(PIN, INPUT); } inline static void hi() __attr...
1,535
8,232
// Copyright (c) Microsoft Corporation. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // parameters for char character type #define CTYPE char #define CNAME(fun) _##fun
68
794
<filename>android/android_framework/dex-maker/src/main/java/com/android/dx/stock/BaseProxyFactory.java<gh_stars>100-1000 package com.android.dx.stock; import com.elvishew.xlog.XLog; import com.google.common.io.Files; import java.io.File; import java.io.IOException; public abstract class BaseProxyFactory<T> { pu...
430
510
#pragma once #define INT40 0x40 // VBlank #define INT48 0x48 // STAT #define INT50 0x50 // Timer #define INT58 0x58 // Serial #define INT60 0x60 // Joypad class ICPU { public: virtual ~ICPU() {} virtual bool Initialize() = 0; virtual bool LoadROM(const char* bootROMPath, const char* cartridgePath) = ...
204
1,473
<reponame>ljmf00/autopsy<gh_stars>1000+ /* * Sample module ingest job settings in the public domain. * Feel free to use this as a template for your module job settings. * * Contact: <NAME> [carrier <at> sleuthkit [dot] org] * * This is free and unencumbered software released into the public domain. * * ...
669
13,885
<filename>third_party/spirv-tools/test/opt/constants_test.cpp<gh_stars>1000+ // Copyright (c) 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.o...
4,448
892
<reponame>westonsteimel/advisory-database-github<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-3f25-9wj6-fhrv", "modified": "2022-05-01T18:35:21Z", "published": "2022-05-01T18:35:21Z", "aliases": [ "CVE-2007-5634" ], "details": "Speedfan.sys in <NAME>tti SpeedFan 4.33, when used on Micros...
502
852
#include "RooPlot.h" #include "RooRealVar.h" #include "RooGaussian.h" #include "RooDataHist.h" #include "RooAddPdf.h" #include "RooGlobalFunc.h" #include "CruijffPdf.h" #include "TH1F.h" // best for fits with a core gaussian and some outliers RooPlot* double_gauss_fit(TH1* histo, TString title = "", double min_mea...
1,010
2,320
<gh_stars>1000+ package tech.powerjob.server.persistence; import com.alibaba.fastjson.JSONArray; import tech.powerjob.common.exception.PowerJobException; import tech.powerjob.common.PowerQuery; import com.google.common.collect.Lists; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import...
2,642
647
<reponame>frankhobby/ebpfsnitch #pragma once struct ebpf_event_t { bool m_v6; void * m_handle; bool m_remove; uint32_t m_user_id; uint32_t m_process_id; uint32_t m_source_address; __uint128_t m_source_address_v6; uint16_t m_source_port; uint32_t m_d...
263
879
package org.zstack.test.identity; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.zstack.core.componentloader.ComponentLoader; import org.zstack.core.config.GlobalConfigFacade; import org.zstack.core.db.DatabaseFacade; import org.zstack.header.identity.SessionInventory; import...
555
605
#include <stdio.h> void BFunction() { } void AFunction() { printf("I am a function.\n"); } int main(int argc, const char *argv[]) { int inited = 0xDEADBEEF; int sum = 0; if(argc > 1) { for(int i = 0; i < argc; i++) { puts(argv[i]); } if(argc > 2) ...
296
381
<gh_stars>100-1000 package org.apache.helix.model; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; import java.util.TimeZone; import org.testng.Assert; import org.testng.annota...
1,440
2,329
<gh_stars>1000+ package inners; public class Outer2 { public static class Inner2 { public String foo() { return "bar!"; } public int getModifiers() { return this.getClass().getModifiers(); } } }
85
940
<gh_stars>100-1000 /* * vm_alloc.cpp - Wrapper to various virtual memory allocation schemes * (supports mmap, vm_allocate or fallbacks to malloc) * * Basilisk II (C) 1997-2008 <NAME> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gener...
5,899
831
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
531
1,847
// Copyright (c) 2020 The Orbit 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 "CaptureViewElementTester.h" #include "GpuTrack.h" using orbit_gl::MapGpuTimelineToTrackLabel; TEST(GpuTrack, Capture...
548
332
<gh_stars>100-1000 /* * Copyright 2013 the original author or 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 ...
424
7,113
/* * Copyright (C) 2010-2101 Alibaba Group Holding Limited. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
654
343
<reponame>edamato/go-graphviz<gh_stars>100-1000 /* $Id$ $Revision$ */ /* vim:set shiftwidth=4 ts=8: */ /************************************************************************* * Copyright (c) 2011 AT&T Intellectual Property * All rights reserved. This program and the accompanying materials * are made available u...
546
2,919
<gh_stars>1000+ /* Copyright (c) 2008, 2014 The Board of Trustees of The Leland Stanford * Junior University * Copyright (c) 2011, 2014 Open Networking Foundation * * We are making the OpenFlow specification and associated documentation * (Software) available for public use and benefit with the expectation * that other...
4,194
2,094
<reponame>awf/ELL<filename>libraries/passes/src/FuseLinearOperationsTransformation.cpp //////////////////////////////////////////////////////////////////////////////////////////////////// // // Project: Embedded Learning Library (ELL) // File: FuseLinearOperationsTransformation.cpp (model/optimizer_test) // Aut...
4,504
678
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by <NAME>. // #import "WCPayBaseViewController.h" #import "ILinkEventExt.h" @class NSString, UIButton, WCBaseKeyboardToolBar, WCBizInfoGroup, WCPayPhoneTextItem; @interface WCPayResetPhoneViewContro...
490
14,668
<reponame>domenic/mojo // 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. package org.chromium.testing.local; import org.junit.runner.Description; import org.junit.runner.Result; import org.junit.runner.n...
900
5,422
<filename>src/share/modifier_flag_manager.hpp<gh_stars>1000+ #pragma once #include "types.hpp" #include <array> #include <thread> #include <vector> namespace krbn { class modifier_flag_manager final { public: class active_modifier_flag final { public: enum class type { increase, decrease, in...
6,294
1,031
/* ----------------------------------------------------------------------------- * This file is part of SWIG, which is licensed as a whole under version 3 * (or any later version) of the GNU General Public License. Some additional * terms also apply to certain portions of SWIG. The full details of the SWIG * licen...
2,616
474
/* * Copyright 2015 Samsung Electronics Co., LTD * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
1,262
1,444
# coding=utf-8 from __future__ import unicode_literals import time import warnings from poco.exceptions import PocoTargetTimeout __author__ = 'lxn3032' class PocoAccelerationMixin(object): """ This class provides some high-level method to reduce redundant code implementations. As this is a MixinClass, ...
1,357
3,428
<gh_stars>1000+ {"id":"00700","group":"easy-ham-2","checksum":{"type":"MD5","value":"d42457f1ab4340c5517eaa695cb675fa"},"text":"From <EMAIL> Wed Jul 24 02:17:14 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>.netnoteinc.com\nReceived: from localhost (localhost [127.0.0.1])\n\tby phobos.labs.netnoteinc.com (Pos...
1,400