max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
310
{ "name": "samplv1", "description": "Sampler software.", "url": "https://samplv1.sourceforge.io/" }
43
429
<reponame>Dennisbonke/toaruos #!/usr/bin/env python3 import array import struct def read_struct(fmt,buf,offset): out, = struct.unpack_from(fmt,buf,offset) return out, offset + struct.calcsize(fmt) class ISO(object): def __init__(self, path): with open(path, 'rb') as f: tmp = f.read() ...
5,698
434
<gh_stars>100-1000 from aiodine import Store, scopes # pylint: disable=invalid-name STORE = Store( scope_aliases={"request": scopes.FUNCTION, "app": scopes.SESSION}, providers_module="providerconf", default_scope=scopes.FUNCTION, ) provider = STORE.provider discover_providers = STORE.discover useprovider =...
134
848
<reponame>Michael-Monaldi/SdFat<gh_stars>100-1000 /** * Copyright (c) 2011-2021 <NAME> * This file is part of the SdFat library for SD memory cards. * * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Softwar...
2,797
5,169
<gh_stars>1000+ { "name": "AmplifyFramework", "version": "0.0.1", "summary": "AmplifyFramework", "description": "Test of pod publishing", "homepage": "https://github.com/palpatim/my-pod-test/", "license": "Apache License, Version 2.0", "authors": { "<NAME>": "<EMAIL>" }, "platforms": { "ios": ...
241
2,748
/* * 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 ...
2,910
5,169
{ "name": "Melmac", "version": "0.1.2", "summary": "Melmac Library", "description": "Melmac Library\nSee the source at https://github.com/AReisner/Melmac", "homepage": "https://github.com/AReisner/Melmac", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "<NAME>": "<EMAIL>" },...
275
1,602
/* mpf_trunc -- truncate an mpf to an integer. Copyright 2001 Free Software Foundation, Inc. This file is part of the GNU MP Library. The GNU MP Library is free software; you can redistribute it and/or modify it under the terms of either: * the GNU Lesser General Public License as published by the Free Softwa...
648
2,086
/* * 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 ...
4,496
1,746
<reponame>MiguelDomingues/SikuliX1<gh_stars>1000+ /* * Copyright (c) 2010-2020, sikuli.org, sikulix.com - MIT license */ package org.sikuli.guide; import java.util.Date; public interface IAnimator { public float step(); public boolean running(); } abstract class TimeValueFunction { protected float _begin...
1,524
540
package com.stripe.net; import com.stripe.util.StreamUtils; import java.io.IOException; import java.io.InputStream; public class StripeResponseStream extends AbstractStripeResponse<InputStream> { /** * Initializes a new instance of the {@link StripeResponseStream} class. * * @param code the HTTP status cod...
313
5,169
<gh_stars>1000+ { "name": "DialScrollLayout", "version": "0.1.0", "summary": "DialScrollLayout is collection view with scrolling cells", "description": "DialScrollLayout is collection view with scrolling cells with centering at corner of scrollview like old phone dial.", "homepage": "https://github.com/varunm...
278
589
// // Copyright (c) 2019 Advanced Micro Devices, Inc. All rights reserved. // // 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 /...
3,065
577
import java import test339c class spam(java.lang.Object): pass class eggs1(spam): pass class eggs2(test339c.spam): pass
51
14,668
<reponame>ziransun/wpt import os import imp # Use the file from the parent directory. mod = imp.load_source("_parent", os.path.join(os.path.dirname(os.path.dirname(__file__)), os.path.basename(__file__))) main = mod.main
128
331
/** * 请求分类 * @author 郑业强 2019-01-15 创建文件 */ #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface UIView (SyncedData) /// 同步数据 - (void)syncedDataRequest; @end NS_ASSUME_NONNULL_END
120
6,992
<filename>buildSrc/src/main/java/org/springframework/gradle/maven/PublishLocalPlugin.java package org.springframework.gradle.maven; import org.gradle.api.Action; import org.gradle.api.Plugin; import org.gradle.api.Project; import org.gradle.api.artifacts.repositories.MavenArtifactRepository; import org.gradle.api.publ...
395
681
<filename>Examples/RunExisting/HelloWorld.c #define WASM_EXPORT __attribute__((visibility("default"))) /* External function that is implemented in JavaScript. */ extern void sayc(char c); int say_something(char *msg) { char *m = msg; while (*m) sayc(*(m++)); return m - msg; } WASM_EXPORT int main(void) { ...
132
344
<reponame>gaoxiaoyang/webrtc /* * Copyright (c) 2017 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the...
529
610
<gh_stars>100-1000 /* * Copyright 2012-2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * U...
788
682
package com.baidu.elinkagescroll.sample; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.util.AttributeSet; import android.view.View; import com.baidu.elinkagescroll.ChildLinkageEvent; import com.baidu.elinkagescroll.ILinkageScroll; import com.baidu.elinkagescroll.Linkage...
1,909
341
package com.aventstack.extentreports.markuputils; import java.io.IOException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import com.google.gson.Gson; import freemarker.template.Template; import freemarker.template.TemplateException; import lombok.AllArgsConstruc...
797
32,544
<reponame>DBatOWL/tutorials<filename>spring-boot-modules/spring-boot-disable-logging/disabling-console-jul/src/main/java/com/baeldung/springbootlogging/disablingconsole/jul/properties/controllers/DisabledConsoleRestController.java package com.baeldung.springbootlogging.disablingconsole.jul.properties.controllers; impo...
274
746
// 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...
6,002
504
<gh_stars>100-1000 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1997. All rights reserved. GEOWORKS CONFIDENTIAL PROJECT: PCGEOS MODULE: swat - ntcurses FILE: tabsize.c AUTHOR: <NAME>, Apr 08, 1997 ROUTINES: Name Description ---- ----------- REVISION HIS...
1,046
808
<filename>lib/Types/RF24PowerLevel.cpp #include <RF24PowerLevel.h> #include <Size.h> static const char* RF24_POWER_LEVEL_NAMES[] = { "MIN", "LOW", "HIGH", "MAX" }; String RF24PowerLevelHelpers::nameFromValue(const RF24PowerLevel& value) { const size_t ix = static_cast<size_t>(value); if (ix >= size(RF24_...
430
14,668
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/android/jni_android.h" #include "base/logging.h" #include "chrome/android/chrome_jni_headers/HistoricalTabSaver_jni.h" #include "chrome/bro...
597
769
package com.dx168.patchsdk.sample.tinker; import android.annotation.TargetApi; import android.app.Application; import android.content.Context; import android.content.Intent; import android.os.Build; import android.support.multidex.MultiDex; import com.tencent.tinker.lib.tinker.TinkerInstaller; import com.tencent.tink...
717
488
// Simplest java example (note that class name must match filename). public class test2011_31 { // This is the required "main" function. public static void main(String args[]) { int x = 7; // Case of "for" statement with a statement as body (demonstrates use of SgBreakStatement). ...
159
2,517
<reponame>Hamdor/actor-framework // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include <ctime> #include <unordered_map> #...
2,166
5,169
{ "name": "BoxObjC_Chain", "version": "0.0.5", "summary": "BoxObjC_Chain is Object-C Cocoa chain call extension.", "description": "BoxObjC_Chain is Object-C Cocoa chain call extension, you can call the API gracefully.", "homepage": "https://github.com/liucaide/BoxObjC_Chain", "license": "MIT", "authors": ...
232
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 "components/search/search_provider_observer.h" #include "components/search/search.h" SearchProviderObserver::SearchProviderObserver(TemplateURLS...
379
1,738
<reponame>brianherrera/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...
678
777
/* * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. * Copyright (C) 2012 Google 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: * * 1. Redistributions of source...
1,553
2,151
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_WRAPPERS_VISITOR_H_ #define TOOLS_BLINK_GC_PLUGIN_CHECK_TRACE_WRAPPERS_VISITOR_H_ #include <string> #include "...
453
17,004
{ "object_kind":"push", "event_name":"push", "before":"68595bc36ba5561c86c73c34ca7a3aae5a0dcfd8", "after":"0000000000000000000000000000000000000000", "ref":"refs/heads/tomek", "checkout_sha":null, "message":null, "user_id":745906, "user_name":"<NAME>", "user_email":"<EMAIL>", "user_avat...
767
1,346
<reponame>duruyi/dal<gh_stars>1000+ package com.ctrip.platform.dal.common.enums; public enum ImplicitAllShardsSwitch { ON(0), OFF(1); private int intVal; ImplicitAllShardsSwitch(int intVal) { this.intVal = intVal; } public int getIntVal() { return intVal; } }
134
303
<reponame>yashk/thread-weaver<gh_stars>100-1000 /* * Copyright 2009 Weaver 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 ...
6,947
2,151
#!/usr/bin/env python # 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. """A tool to scan source files for unneeded grit includes. Example: cd /work/chrome/src tools/resources/list_unused_grit_header.py...
2,512
1,006
/**************************************************************************** * arch/arm/src/stm32f7/stm32_pm.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 regarding copyright o...
947
459
<reponame>jose-villegas/VCT_Engine #pragma once #include "../rendering/interface_renderer.h" #include "../core/engine_base.h" #include "../types/instance_pool.h" /// <summary> /// Interface code in the <see cref="Draw"/> /// method is meant to be implemented by all inheriting classes. /// <see cref="DrawAll"/> will c...
351
521
<reponame>Fimbure/icebox-1 /* $Id: tstRTProcWait.cpp $ */ /** @file * IPRT Testcase - RTProcWait. */ /* * Copyright (C) 2006-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it...
1,694
809
/** * @file * @brief tail-util * * @date 24.02.20 * @author <NAME> */ #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <ctype.h> #define SIZE 200 #define ERROR_MSG -1 #define CMD_FAIL -2 static int read_last_n_lines(FILE *fp, int n) { int lines_checke...
965
1,056
/* * 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 ...
385
427
// // MUKitDemoPaymentTableViewController.h // MUKit // // Created by Jekity on 2017/8/25. // Copyright © 2017年 Jeykit. All rights reserved. // #import <UIKit/UIKit.h> #import "MUBaseClass.h" @interface MUKitDemoPaymentTableViewController : MUBaseViewTableViewController @end
108
335
<gh_stars>100-1000 { "word": "House", "definitions": [ "Provide with shelter or accommodation.", "Provide space for; contain or accommodate.", "Fix (something) in a socket or mortise." ], "parts-of-speech": "Verb" }
105
575
<filename>third_party/blink/renderer/modules/csspaint/css_paint_image_generator_impl.cc // 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 "third_party/blink/renderer/modules/csspaint/css_paint_im...
1,660
5,169
<filename>Specs/f/7/2/Renren-ChatIM/0.1.0/Renren-ChatIM.podspec.json { "name": "Renren-ChatIM", "version": "0.1.0", "summary": "A short description of Renren-ChatIM.", "description": "TODO: Add long description of the pod here.", "homepage": "https://glab.tagtic.cn/developer_ios/Renren-ChatIM", "license": {...
320
2,329
/* * 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 ...
800
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms ElectronMaterialEffects = cms.ESProducer("GsfMaterialEffectsESProducer", BetheHeitlerParametrization = cms.string('BetheHeitler_cdfmom_nC6_O5.par'), EnergyLossUpdator = cms.string('GsfBetheHeitlerUpdator'), ComponentName = cms.string('ElectronMate...
186
1,306
<gh_stars>1000+ /* * Copyright (C) 2013 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 * * Unles...
728
4,184
<gh_stars>1000+ /** * Copyright (c) 2021, <NAME> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list...
997
543
<reponame>SaratAdiraj/Bytecoder<filename>classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/sun/awt/X11/XEmbedCanvasPeer.java /* * Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is...
17,350
5,379
/**************************************************************** * * The author of this software is <NAME>. * * Copyright (c) 1991, 1996 by Lucent Technologies. * * Permission to use, copy, modify, and distribute this software for any * purpose without fee is hereby granted, provided that this entire notice * ...
935
450
/*------------------------------------------------------------------------- * * pg_inherits.h * definition of the system "inherits" relation (pg_inherits) * along with the relation's initial contents. * * * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, ...
717
4,054
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #pragma once #include "leafspec.h" #include "trackedsearch.h" #include <vespa/searchlib/fef/matchdatalayout.h> #include <vespa/searchlib/queryeval/fake_search.h> #include <vespa/searchlib/queryeval/searchiterator.h...
772
3,200
/** * Copyright 2020-2021 Huawei Technologies 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 applicabl...
876
743
package pl.allegro.tech.hermes.management.domain.topic; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.Multimap; import com.google.common.collect.Multimaps; import com.google.common.util.concurrent.ThreadFactoryBuilder; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impo...
1,231
4,036
public class F { void m() throws RuntimeException {} }
15
445
/* sqUnixAsynchFile.c -- non-blocking file i/o * * Copyright (C) 1996-2004 by <NAME> and other authors/contributors * listed elsewhere in this file. * All rights reserved. * * This file is part of Unix Squeak. * * Permission is hereby granted, free of charge, to any per...
3,524
1,101
#ifndef ARGPARSE_TEST_UTILITY_HPP #define ARGPARSE_TEST_UTILITY_HPP namespace testutility { // Get value at index from std::list template <typename T> T get_from_list(const std::list<T>& aList, size_t aIndex) { if (aList.size() > aIndex) { auto tIterator = aList.begin(); std::advance(tIterator, aIndex); ...
170
3,372
/* * Copyright 2016-2021 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/apache2.0 * * or in the "licen...
15,119
457
<reponame>maxjove/kob<gh_stars>100-1000 package com.ke.schedule.client.spring.constant; import com.ke.schedule.client.spring.env.ClientEnvConfiguration; import com.ke.schedule.client.spring.env.OfficialDevelop; import com.ke.schedule.client.spring.startup.ClientProperties; import java.util.ArrayList; import java.util...
338
518
package com.lorne.tx.mq.service.impl; import com.alibaba.fastjson.JSONObject; import com.lorne.core.framework.utils.config.ConfigUtils; import com.lorne.core.framework.utils.http.HttpUtils; import com.lorne.tx.Constants; import com.lorne.tx.mq.model.Request; import com.lorne.tx.mq.model.TxGroup; import com.lorne.tx.mq...
1,394
496
<filename>mmdet2trt/models/utils/__init__.py from .position_encoding import SinePositionalEncodingWraper __all__ = ['SinePositionalEncodingWraper']
51
884
<reponame>rt112000/CDM<gh_stars>100-1000 package com.microsoft.commondatamodel.objectmodel.enums; /** * Specifies how the OM will load the imports from a document. */ public enum ImportsLoadStrategy { // With the LazyLoad option, the imports will only be loaded when a symbol from an external file is needed by th...
163
2,123
require_extension('D'); require_fp; softfloat_roundingMode = RM; WRITE_FRD(f64_div(f64(FRS1), f64(FRS2))); set_fp_exceptions;
58
892
{ "schema_version": "1.2.0", "id": "GHSA-wrgm-9cff-5hcq", "modified": "2022-05-13T01:41:44Z", "published": "2022-05-13T01:41:44Z", "aliases": [ "CVE-2017-10270" ], "details": "Vulnerability in the Oracle Identity Manager Connector component of Oracle Fusion Middleware (subcomponent: Microsoft Active D...
691
1,145
<reponame>claytonbrown/lmctfy // Copyright 2013 Google 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // //...
836
3,402
<reponame>ApacheSourceCode/kylin /* * 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, Ver...
2,781
347
package com.baidu.brcc.domain.meta; /* @Results({ @Result(property = "id", column = "id", javaType = java.lang.Long.class, jdbcType = JdbcType.BIGINT, id = true), @Result(property = "name", column = "name", javaType = java.lang.String.class, jdbcType = JdbcType.VARCHAR), @Result(property = "memo",...
3,487
11,058
<reponame>outkine/RustPython from reprlib import recursive_repr as _recursive_repr class defaultdict(dict): def __init__(self, *args, **kwargs): if len(args) >= 1: default_factory = args[0] if default_factory is not None and not callable(default_factory): raise TypeE...
598
1,056
<reponame>arusinha/incubator-netbeans<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the...
964
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.resourcemanager.netapp.models; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.ut...
1,975
918
# Copyright 2017 CodiLime # # 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, softwar...
2,397
622
package tudelft.ghappy; public class GHappy { public boolean gHappy(String str) { assert str!=null; for(int i = 0; i < str.length(); i++) { if(str.charAt(i) == 'g') { if (i > 0 && str.charAt(i-1) == 'g') { continue; } if (i+1 < str.length() && str.charAt...
236
372
/*----------------------------------------------------------------------------- * $RCSfile: ClCmn.c,v $ * * See Copyright for the status of this software. * * The OpenSOAP Project * http://opensoap.jp/ *----------------------------------------------------------------------------- */ #include "ClCmn.h" #includ...
4,189
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.resourcemanager.monitor.models; import com.azure.core.annotation.Fluent; import com.azure.core.util.logging.ClientLogger; import com.fasterxml.j...
1,568
2,519
// This file is licensed under the Elastic License 2.0. Copyright 2021-present, StarRocks Limited. package com.starrocks.sql.optimizer.dump; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.goo...
1,213
340
<reponame>xin053/PocCollect<filename>component/smb/ms17_010.py #!/usr/bin/env python # encoding: utf-8 #author:wolf@YSRC #url:http://bobao.360.cn/learning/detail/3738.html from t import T import socket import binascii class P(T): def __init__(self): T.__init__(self) def verify(self,head='',context=''...
2,263
5,169
<gh_stars>1000+ { "name": "TextInputLimit", "version": "1.0.1", "summary": "set a limit input to UITextField and UITextView.", "description": "set a limit input to UITextField and UITextView.", "homepage": "https://github.com/xuwening/textInputLimit", "license": { "type": "MIT", "file": "LICENSE" ...
239
7,880
<gh_stars>1000+ import java.util.Random; public class Die { private static final int DEFAULT_SIDES = 6; private int faceValue; private int sides; private Random generator = new Random(); /** * Construct a new Die with default sides */ public Die() { this.sides = DEFAULT_SIDES...
779
3,348
<filename>heron/common/tests/cpp/network/http_unittest.cpp<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 fi...
1,103
302
// // pch.cpp // Include the standard header and generate the precompiled header. // #pragma warning(disable : 4996) #include "pch.h"
50
4,342
from typing import Any, Callable import rx from rx.core import Observable def _start_with(*args: Any) -> Callable[[Observable], Observable]: def start_with(source: Observable) -> Observable: """Partially applied start_with operator. Prepends a sequence of values to an observable sequence. ...
230
8,027
#include "lib3.h" #include <lib1/lib1.h> void lib3_function(void) { lib1_function(); }
41
642
<reponame>longgotime/jeesuite-libs /** * */ package com.jeesuite.rest; import org.glassfish.jersey.jackson.JacksonFeature; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.server.ServerProperties; import org.springframework.web.filter.RequestContextFilter; import com.fasterxml.jackson...
573
353
<reponame>lihongwu19921215/nutzmore<gh_stars>100-1000 /** * @author guiyuan.wang-N * * createTime 2017年1月11日上午9:33:40 * */ package org.nutz.plugin.spring.boot;
83
1,093
<filename>spring-integration-core/src/main/java/org/springframework/integration/util/package-info.java<gh_stars>1000+ /** * Provides core utility classes. */ package org.springframework.integration.util;
62
1,093
<filename>spring-integration-http/src/test/java/org/springframework/integration/http/config/HttpInboundChannelAdapterParserTests.java /* * Copyright 2002-2021 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...
4,100
1,273
package org.broadinstitute.hellbender.engine.spark; import htsjdk.samtools.util.Log; import org.apache.logging.log4j.Level; import org.broadinstitute.barclay.argparser.CommandLineException; import org.testng.Assert; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import java.util.Array...
1,402
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/quick_pair/keyed_service/fast_pair_bluetooth_config_delegate.h" #include "chromeos/services/bluetooth_config/device_name_manager.h" namesp...
229
838
<reponame>FlorianPoot/MicroPython_ESP32_psRAM_LoBo /* * Copyright (C) 2015-2016 <NAME>, D+H <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, * with or without modification, are permitted provided * that the following conditions are met: * * Redistributions of source code...
37,233
1,178
<filename>avionics/batt/firmware/main.c /* * Copyright 2020 Makani Technologies 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 ...
1,088
1,039
#define SIMDE_TEST_X86_AVX512_INSN dbsad #include <test/x86/avx512/test-avx512.h> #include <simde/x86/avx512/setzero.h> #include <simde/x86/avx512/dbsad.h> static int test_simde_mm_dbsad_epu8 (SIMDE_MUNIT_TEST_ARGS) { #if 1 static const struct { const int8_t a[16]; const int8_t b[16]; const int imm8; ...
91,317
14,755
import mock import os import unittest from luigi import Parameter from luigi.contrib import mrrunner from luigi.contrib.hadoop import HadoopJobRunner, JobTask from luigi.contrib.hdfs import HdfsTarget import pytest class MockStreamingJob(JobTask): package_binary = Parameter(default=None) def output(self)...
1,422
719
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. #ifndef __QUANTIZED_RNNPOOL_H__ #define __QUANTIZED_RNNPOOL_H__ #include "quantized_utils.h" typedef int (*q7xq15_q15_rnn_t)(Q15_T* const, ITER_T, const Q7_T* const, ITER_T, ITER_T, const void*, void*, const void*, int, i...
1,167
417
/* * 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,474
560
#include <stdio.h> #include <sbthread.h> #include <err.h> int worker_main(sbthread_t *th) { sbevent_t *cond; cond = sbthread_arg(th); /* Get the first signal. */ sbevent_wait(cond, -1, -1); E_INFO("Got signal\n"); /* Now wait a while and exit. */ sbevent_wait(cond, 1, 500*1000*1000); return 0; } int main(i...
272
310
package org.seasar.doma.internal.apt.validator; public class Job { public Job(CharSequence name) {} public Job(String name) {} }
45