max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
454
<gh_stars>100-1000 package io.vertx.up.atom; public class User { private String username; private String password; private Integer age; private String email; public String getEmail() { return email; } public void setEmail(final String email) { this.email = email; }...
434
386
<gh_stars>100-1000 ########################################################################## # # Copyright (c) 2007-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # m...
2,289
829
/* * Generated by class-dump 3.3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2011 by <NAME>. */ #import "IDEIndexDBSQLStream.h" #import <sqlite3.h> @class IDEIndexDatabase, NSMutableSet, NSObject/*<OS_dispatch_queue>*/; @interface IDEIndexDBConnection : IDEIndexDBSQLStream { ...
681
386
########################################################################## # # Copyright (c) 2007-2014, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redis...
3,523
1,016
<reponame>peter-ls/kylo package com.thinkbiganalytics.feedmgr.support; /*- * #%L * thinkbig-feed-manager-controller * %% * Copyright (C) 2017 ThinkBig Analytics * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
2,024
1,144
package de.metas.common.util.time; import lombok.NonNull; import javax.annotation.Nullable; import java.sql.Timestamp; import java.time.Instant; import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.time.ZoneId; import java.time.ZonedDateTime; import java.time.temporal.Ch...
1,413
1,288
// 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 "multiprocess_func_list.h" #include <map> // Helper functions to maintain mapping of "test name"->test func. // The information is accessed...
567
781
<gh_stars>100-1000 //------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //--------------------------------------...
563
552
<reponame>asheraryam/ETEngine<gh_stars>100-1000 #include "stdafx.h" #include "AssetDatabase.h" #include <rttr/registration> #include "AssetRegistration.h" namespace et { namespace core { // reflection RTTR_REGISTRATION { using namespace rttr; registration::class_<AssetDatabase::AssetCache>("asset cache") .pr...
1,664
1,738
/* * 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 provided, by the license below or t...
1,689
577
<reponame>Shicheng-Guo/TDC # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved # Adapted by TDC. import os import torch import numpy as np import pandas as pd import pickle def get_dataset_class(dataset_name): """Return the dataset class with the given name.""" if dataset_name not in global...
2,346
346
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
835
949
/* * 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,758
672
<filename>ZZZ_OtherDemo/00-dyld-832.7.3/unit-tests/test-cases/threaded-flat-lookup/foo.c<gh_stars>100-1000 void foo() {} void bar() {} void baz() {}
67
853
<reponame>blin00/tinyssh /* 20130604 <NAME> Public domain. */ #include "numtostr.h" /* The 'numtostr(strbuf,n)' converts number 'n' into the 0-terminated string. The caller must allocate at least NUMTOSTR_LEN bytes for 'strbuf'. The 'numtostr' function is ready for 128-bit integer. */ char *numtostr(char *strbuf, lon...
436
1,380
/* * sophia database * sphia.org * * Copyright (c) <NAME> * BSD License */ #include <libss.h> #include <libsf.h> #include <libsr.h> #include <libsv.h> #include <libsd.h> ssiterif sd_indexiter = { .close = sd_indexiter_close, .has = sd_indexiter_has, .of = sd_indexiter_of, .next = sd_indexiter_next };
146
380
<reponame>geralltf/mini-tor #pragma once #include "key.h" #include "../common.h" #include <mini/byte_buffer.h> #include <mini/stack_buffer.h> #include <windows.h> #include <wincrypt.h> namespace mini::crypto::capi { template < cipher_mode AES_MODE, size_type KEY_SIZE > class aes_key : public key { MINI_MAKE...
2,242
4,140
/* * 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 ...
1,839
414
/// /// anax /// An open source C++ entity system. /// /// Copyright (C) 2013-2014 <NAME> (<EMAIL>) /// /// 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 wi...
587
466
//--------------------------------------------------------------------------- // Greenplum Database // Copyright (C) 2012 EMC Corp // // @filename: // CXformDelete2DML.h // // @doc: // Transform Logical Delete to Logical DML //--------------------------------------------------------------------------- #ifndef GPOPT_C...
498
2,151
// 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. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PAGE_SCROLLING_SCROLL_CUSTOMIZATION_CALLBACKS_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_PAGE_SCROLLING_SCROLL_CUS...
616
1,238
#include "EditLexer.h" #include "EditStyleX.h" // https://www.perl.org/ // https://perldoc.perl.org/index-language.html // https://learn.perl.org/docs/keywords.html static KEYWORDLIST Keywords_Perl = {{ "__DATA__ __END__ __FILE__ __LINE__ __PACKAGE__ abs accept alarm and atan2 AUTOLOAD BEGIN " "bind binmode ...
2,033
2,151
<gh_stars>1000+ // Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/display/manager/display_change_observer.h" #include <string> #include "base/test/scoped_feature_list.h" #include "testing/g...
6,682
14,668
<gh_stars>1000+ // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_SSL_HTTPS_ONLY_MODE_NAVIGATION_THROTTLE_H_ #define CHROME_BROWSER_SSL_HTTPS_ONLY_MODE_NAVIGATION_THROTTLE_H_ #incl...
1,074
1,431
/* ==================================================================== 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 u...
6,903
737
<reponame>etnrlz/rtbkit /* exp_test.cc <NAME>, 29 November 2004 Copyright (c) 2004 <NAME>. All rights reserved. $Source$ Test to find the maximum value we can take an exp of. */ #include <cmath> #include <iostream> #include <iomanip> #include <numeric> #include "jml/arch/demangle.h" using namespace std...
443
1,310
<reponame>akrzemi1/Mach7 #include <iostream> #include <utility> #include "type_switchN-patterns.hpp" #include "patterns/primitive.hpp" //------------------------------------------------------------------------------ typedef std::pair<double,double> loc; //----------------------------------------------------...
5,401
909
# Copyright 2021 <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 in writing, so...
3,527
7,137
package io.onedev.server.entitymanager.impl; import java.util.Collection; import java.util.HashSet; import java.util.stream.Collectors; import javax.inject.Inject; import javax.inject.Singleton; import org.hibernate.criterion.Restrictions; import io.onedev.server.entitymanager.PullRequestQueryPersonalizationManager...
715
6,304
/* * Copyright 2021 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* * This GM creates the same gradients as the Chromium test fillrect_gradient: * http://osscs/chromium/chromium/src/+/main:third_party/blink/web_tests/fast/canvas/fillrect_g...
2,855
1,010
<filename>hazelcast-jet-sql/src/test/java/com/hazelcast/jet/sql/impl/connector/infoschema/MappingsTableTest.java /* * Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. ...
749
1,814
<filename>library/src/main/java/io/github/luizgrp/sectionedrecyclerviewadapter/Section.java package io.github.luizgrp.sectionedrecyclerviewadapter; import android.view.View; import android.view.ViewGroup; import java.util.List; import androidx.annotation.LayoutRes; import androidx.annotation.NonNull; import androidx...
7,826
563
<reponame>RRua/droidbot<gh_stars>100-1000 import json import logging import subprocess import time from .input_event import EventLog from .input_policy import UtgBasedInputPolicy, UtgNaiveSearchPolicy, UtgGreedySearchPolicy, \ UtgReplayPolicy, \ ManualPolicy, \ ...
3,255
423
package com.googlecode.javaewah; /* * Copyright 2009-2016, <NAME>, <NAME>, <NAME>, <NAME>, Google Inc., <NAME>, <NAME>, <NAME>, <NAME> * Licensed under the Apache License, Version 2.0. */ /** * The IntIterator interface is used to iterate over a stream of integers. * * @author <NAME> * @since 0.2.0 */ public ...
207
854
<reponame>rakhi2001/ecom7<gh_stars>100-1000 __________________________________________________________________________________________________ sample 5 ms submission class Solution { public int findMaxLength(int[] nums) { int n = nums.length; int len = 2 * n + 1; int[] f = new int[len]; ...
851
3,222
<gh_stars>1000+ package org.apache.maven.repository.legacy.resolver.transform; /* * 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 th...
1,984
335
{ "word": "Horn", "definitions": [ "A hard permanent outgrowth, often curved and pointed, found in pairs on the heads of cattle, sheep, goats, giraffes, etc. and consisting of a core of bone encased in keratinized skin.", "A woolly keratinized outgrowth, occurring singly or one behind another, o...
444
1,599
<gh_stars>1000+ # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications ...
327
4,140
/* * 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 ...
1,826
412
<gh_stars>100-1000 int main() { // ∀ binds very weakly. // In particular, 'i' below is in the scope of the quantifier. __CPROVER_assert(∀ int i; 1 ? 1 : i, "∀ binds weakly"); }
73
1,829
<filename>spring-framework-samples/spring-framework-3.2.x-sample/src/main/java/thinking/in/spring/boot/samples/spring3/service/CalculatingService.java<gh_stars>1000+ package thinking.in.spring.boot.samples.spring3.service; /** * 计算服务 * * @author <a href="mailto:<EMAIL>">Mercy</a> * @version 1.0.0 * @since 1.0.0 ...
223
14,668
<gh_stars>1000+ // 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/bookmarks/test/mock_bookmark_model_observer.h" namespace bookmarks { MockBookmarkModelObserver::MockBookmarkModelOb...
129
718
<reponame>plutoyuxie/mmgeneration<filename>configs/lsgan/lsgan_lsgan-archi_lr-1e-4_lsun-bedroom_128_b64x1_10m.py _base_ = [ '../_base_/models/lsgan/lsgan_128x128.py', '../_base_/datasets/unconditional_imgs_128x128.py', '../_base_/default_runtime.py' ] # define dataset # you must set `samples_per_gpu` and `i...
638
1,338
<reponame>Kirishikesan/haiku<gh_stars>1000+ /* * Copyright 2004-2010, Haiku Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _USB_HID_PAGE_SIMULATION_H #define _USB_HID_PAGE_SIMULATION_H /* Reference: * HID Usage Page 0x02: SIMULATION * HID Usage Tables Ver. 1.12 * http:...
1,161
2,151
<filename>include/llvm/CodeGen/GlobalISel/GISelAccessor.h //===-- GISelAccessor.h - GISel Accessor ------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //...
421
4,348
/*** Copyright (c) 2008-2016 CommonsWare, 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.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in w...
2,017
6,304
<gh_stars>1000+ /* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm/gm.h" #include "include/core/SkBitmap.h" #include "include/core/SkCanvas.h" #include "include/core/SkFont.h" #include "include/core/SkImageFilter....
1,413
15,947
<filename>tests/cli/commands/test_rotate_fernet_key_command.py<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 #...
2,014
1,085
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
5,224
352
<filename>examples/core/composer.json { "require": { "monolog/monolog": "2.*" }, "require-dev": { "roave/security-advisories": "dev-master" } }
71
367
<gh_stars>100-1000 from typing import List class ModuleFilter: """ filter logs by module name """ def __init__(self, exclude_list:List[str]=None,include_list:List[str]=None ) -> None: """[summary] Args: exclude_list (List[str], optional): module name (prefixes) to reject....
480
722
<gh_stars>100-1000 from lixian_plugins.api import command from lixian_cli_parser import command_line_parser, command_line_option from lixian_cli_parser import with_parser from lixian_cli import parse_login from lixian_commands.util import create_client @command(name='get-torrent', usage='get .torrent by task id or i...
556
940
/* * b2ether driver -- derived from DDK packet driver sample * * Basilisk II (C) 1997-1999 <NAME> * * Windows platform specific code copyright (C) <NAME> * * 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 ...
7,701
313
<gh_stars>100-1000 package erjang.epmd; import java.io.*; import java.net.*; import java.util.*; import java.util.logging.Level; import java.util.logging.Logger; import java.nio.*; import java.nio.channels.*; /** * a simple message switch using NIO based socket i/o part of the pkwnet package * a very simple text me...
1,427
540
<reponame>adil8531/stripe-java package com.stripe.param.issuing; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; import com.google.common.collect.ImmutableMap; import com.stripe.param.com...
1,076
307
#ifndef _DLGASTEROIDFIELDEDITOR_H #define _DLGASTEROIDFIELDEDITOR_H /* * Created by Ian "Goober5000" Warfield and "z64555" for the FreeSpace2 Source * Code Project. * * You may not sell or otherwise commercially exploit the source or things you * create based on the source. */ #include "base/wxFRED_base.h" #in...
338
417
// // NextViewController.h // ZYBannerViewDemo // // Created by 张志延 on 15/12/6. // Copyright (c) 2015年 mrdream. All rights reserved. // #import <UIKit/UIKit.h> @interface NextViewController : UIViewController @end
91
973
/*_########################################################################## _## _## Copyright (C) 2013-2019 Pcap4J.org _## _########################################################################## */ package org.pcap4j.packet; import static org.pcap4j.util.ByteArrays.BYTE_SIZE_IN_BYTES; import static org...
5,237
3,609
<reponame>peppingdore/tracy<filename>profiler/src/NativeWindow.hpp #ifndef __NATIVEWINDOW_HPP__ #define __NATIVEWINDOW_HPP__ void* GetMainWindowNative(); #endif
67
453
<gh_stars>100-1000 // Copyright (c) the JPEG XL Project 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 TOOLS_FLICKER_TEST_TEST_WINDOW_H_ #define TOOLS_FLICKER_TEST_TEST_WINDOW_H_ #include <QByteArray> #include <QDir> #in...
492
1,444
<filename>Mage.Sets/src/mage/cards/p/PredatoryHunger.java package mage.cards.p; import java.util.UUID; import mage.constants.SubType; import mage.target.common.TargetCreaturePermanent; import mage.abilities.Ability; import mage.abilities.common.SpellCastOpponentTriggeredAbility; import mage.abilities.effects.common.A...
690
2,701
#include "crypto_stream_aes128ctr.h" #ifdef __GNUC__ # pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif int crypto_stream_aes128ctr(unsigned char *out, unsigned long long outlen, const unsigned char *n, const unsigned char *k) { unsigned char d[crypto_stream_aes128ctr_BEFO...
376
877
<reponame>reactjs-alex-alex2006hw/react-native-worker-040<filename>android/src/main/java/co/apptailor/Worker/JSService.java //package co.apptailor.Worker; // //import android.app.Service; //import android.content.Intent; //import android.os.Handler; //import android.os.IBinder; //import android.os.Looper; //import andr...
1,498
852
<filename>TopQuarkAnalysis/TopEventProducers/python/tqafInputFiles_cff.py import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValProdTTbarAODSIM relValTTbar = filesRelValProdTTbarAODSIM
82
1,567
<gh_stars>1000+ /* * Copyright (C) 2017-2019 Alibaba Group Holding Limited */ /****************************************************************************** * @file drv_gpio.h * @brief header file for gpio driver * @version V1.0 * @date 02. June 2017 ************************************************...
2,094
575
<reponame>Ron423c/chromium // 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 "chrome/browser/offline_pages/android/evaluation/offline_page_evaluation_bridge.h" #include <memory> #include <string...
5,427
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // #if !defined (KRATOS_TRILINOS_SOLVER_U...
533
2,151
// 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 "ui/accessibility/ax_host_delegate.h" #include "ui/accessibility/ax_tree_id_registry.h" namespace ui { AXHostDelegate::AXHostDelegate() : ...
236
335
{ "word": "Voluptuary", "definitions": [ "a person whose chief interests are luxury and the gratification of sensual appetites" ], "parts-of-speech": "Noun" }
70
2,114
<reponame>rahogata/Jest<gh_stars>1000+ package io.searchbox.action; import com.google.gson.Gson; import io.searchbox.client.JestResult; /** * @author <NAME> */ public abstract class GenericResultAbstractDocumentTargetedAction extends AbstractDocumentTargetedAction<JestResult> { public GenericResultAbstractDocu...
208
4,119
<filename>ignite/metrics/ssim.py from typing import Callable, Sequence, Union import torch import torch.nn.functional as F from ignite.exceptions import NotComputableError from ignite.metrics.metric import Metric, reinit__is_reduced, sync_all_reduce __all__ = ["SSIM"] class SSIM(Metric): """ Computes Struc...
3,513
461
#ifndef MAIN_H_ #define MAIN_H_ #include<stdio.h> #include<stdint.h> #define BUFFERNUM 1024 #define DATASIZE 1000 #define STATUS_PENDING 0x01 #define STATUS_READ 0x02 #define STATUS_WRITTEN 0x04 #define STATUS_ALL 0x08 #define STATUS_HEAD 0x10 #define STATUS_TAIL 0x20 #define SIZE_HEADER 5 int read_...
206
864
<gh_stars>100-1000 /********************************************************************************************************************** This file is part of the Control Toolbox (https://github.com/ethz-adrl/control-toolbox), copyright by ETH Zurich. Licensed under the BSD-2 license (see LICENSE file in main director...
3,017
438
/* FractionAtom.java * ========================================================================= * This file is originally part of the JMathTeX Library - http://jmathtex.sourceforge.net * * Copyright (C) 2004-2007 Universiteit Gent * Copyright (C) 2009 <NAME> * * This program is free software; you can redistribu...
3,393
1,006
<gh_stars>1000+ /**************************************************************************** * arch/arm/src/lc823450/lc823450_dma.h * * 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 ...
2,324
1,405
package a.a.a.a.a.a; import a.a.a.a.a.a; import a.a.a.a.a.a.e.k; import a.a.a.a.a.a.e.l; import a.a.a.a.a.a.e.o; import a.a.a.a.a.h; import a.a.a.a.a.i; import a.a.a.a.a.n; import java.util.Vector; public final class c implements Runnable { /* renamed from: a reason: collision with root package name */ priv...
3,750
410
<filename>src/Commands/DeselectSurfaceCmd.h #pragma once #include "SurfaceManager.h" #include "BaseCmd.h" #include "BaseSurface.h" class ofxPiMapper; namespace ofx { namespace piMapper { class DeselectSurfaceCmd : public BaseUndoCmd { public: DeselectSurfaceCmd(SurfaceManager * sm); void exec(); void undo()...
176
590
#ifndef __R328_IRQ_H__ #define __R328_IRQ_H__ #ifdef __cplusplus extern "C" { #endif #define R328_IRQ_NMI (64) #define R328_IRQ_DMA (66) #define R328_IRQ_VAD_WAKE (67) #define R328_IRQ_VAD_DATA (68) #define R328_IRQ_USB_DEVICE (69) #define R328_IRQ_USB_EHCI (70) #define R328_IRQ_USB_OHCI (71) #define R328_IR...
1,913
400
import cv2 import random import numpy as np from PIL import Image from PIL import ImageOps from PIL import ImageFilter from torch import Tensor from typing import List from typing import Tuple from typing import Optional from skimage.transform import resize from torchvision.transforms import transforms from torchvisi...
5,511
641
<gh_stars>100-1000 package com.docker.atsea.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import com.docker.atsea.model.Product; @Repository @Transactional public interface...
131
3,102
#if 0 // RUN: not %clang_cc1 -verify %s 2>&1 | FileCheck %s // Please note that all comments are inside "#if 0" blocks so that // VerifyDiagnosticConsumer sees no comments while processing this // test-case (and hence no expected-* directives). #endif #include "verify2.h" #error source #if 0 // expected-error {{shou...
486
742
from __future__ import division, print_function, absolute_import import time import datetime import sys import traceback import socket import threading import os import signal import atexit import platform import random import math from .runtime import min_version, runtime_info, register_signal from .utils import tim...
5,514
1,352
/* * 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 ...
7,535
1,178
#ifndef _XT_U32_H #define _XT_U32_H 1 #include <linux/types.h> enum xt_u32_ops { XT_U32_AND, XT_U32_LEFTSH, XT_U32_RIGHTSH, XT_U32_AT, }; struct xt_u32_location_element { __u32 number; __u8 nextop; }; struct xt_u32_value_element { __u32 min; __u32 max; }; /* * Any way to allow for an arbitrary number of e...
330
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #include "stdafx.h" using nam...
733
344
from gitlabber.format import PrintFormat import pytest import re def test_format_parse(): assert PrintFormat.JSON == PrintFormat.argparse("JSON") def test_format_string(): assert "json" == PrintFormat.__str__(PrintFormat.JSON) def test_repr(): retval = repr(PrintFormat.JSON) match = re.match("^<Print...
162
14,668
<filename>chrome/browser/chromeos/policy/dlp/mock_dlp_content_manager.h // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DLP_MOCK_DLP_CONTENT_MANAGER_H_ #define CHR...
573
615
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, 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...
2,209
2,291
{ "id" : 65, "status" : "Accepted", "summary" : "Ability to add \"OnZoomChanged\" event listener to OpenStreetMapView instance.", "labels" : [ "Type-Enhancement", "Priority-Medium" ], "stars" : 0, "commentCount" : 5, "comments" : [ { "id" : 0, "commenterId" : 3456884467250674452, "content" : "...
571
872
<reponame>WswSummer15/light-reading-cloud package cn.zealon.readingcloud.book.controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * 分类接口 * @author: zealon * @since: 2019/4/3 */ @RestController @RequestMapping("category") pub...
124
451
<reponame>kikislater/micmac #include <assert.h> #include "NavigationData.h" // ------------------------------------------------------------------------------- // Ajout d'un slot de navigation aux données // ------------------------------------------------------------------------------- void NavigationData::a...
3,352
345
<gh_stars>100-1000 /** * Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) * https://creativecommons.org/licenses/by-sa/3.0/ * https://codegolf.stackexchange.com/a/48333 * https://codegolf.stackexchange.com/users/10588/ilya-gazman */ package org.deepfake_http.thirdparty; public class RemoveCommentsUtils { publi...
650
346
{ "images": { "icon-small": "https://downloads.mesosphere.com/assets/universe/000/eremetic-icon-small.png", "icon-medium": "https://downloads.mesosphere.com/assets/universe/000/eremetic-icon-medium.png", "icon-large": "https://downloads.mesosphere.com/assets/universe/000/eremetic-icon-large.png" }, "a...
184
28,056
<filename>src/test/java/com/alibaba/json/bvt/issue_1000/Issue1089.java<gh_stars>1000+ package com.alibaba.json.bvt.issue_1000; import com.alibaba.fastjson.JSON; import junit.framework.TestCase; /** * Created by wenshao on 20/03/2017. */ public class Issue1089 extends TestCase { public void test_for_issue() thro...
309
1,350
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.monitor.query.implementation.logs; import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.az...
10,008
3,428
{"id":"01892","group":"easy-ham-1","checksum":{"type":"MD5","value":"701fbf72f73f9dacf3fd176e14660a04"},"text":"From <EMAIL> Wed Sep 25 10:23:58 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: y<EMAIL>int.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 1431016F03\n\tfor <jm@lo...
619
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // // System includes // External includ...
501
1,013
<filename>ccore/include/pyclustering/cluster/cluster_data.hpp<gh_stars>1000+ /*! @authors <NAME> (<EMAIL>) @date 2014-2020 @copyright BSD-3-Clause */ #pragma once #include <vector> #include <memory> namespace pyclustering { namespace clst { using noise = std::vector<size_t>; using noise_p...
1,269
13,057
/* * Copyright (c) 2007 Mockito contributors * This program is made available under the terms of the MIT License. */ package org.mockito.internal.matchers.apachecommons; import java.io.Serializable; import org.mockito.ArgumentMatcher; public class ReflectionEquals implements ArgumentMatcher<Object>, Serializable ...
261
13,585
<filename>mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/rewrite/Entity.java package com.baomidou.mybatisplus.test.rewrite; import lombok.Data; import java.io.Serializable; /** * @author miemie * @since 2020-06-23 */ @Data public class Entity implements Serializable { private static final long seria...
147