max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
364
/* * * * Copyright 2014 http://Bither.net * * * * 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...
978
588
<reponame>ExternalRepositories/CppMicroServices /*============================================================================= Library: CppMicroServices Copyright (c) The CppMicroServices developers. See the COPYRIGHT file at the top-level directory of this distribution and at https://github.com/CppMicroServ...
2,317
412
<reponame>tobireinhard/cbmc<filename>unit/util/prefix_filter.cpp /*******************************************************************\ Module: Unit tests for prefix_filter Author: <NAME> \*******************************************************************/ #include <testing-utils/use_catch.h> #include <util/prefix...
532
363
from abc import ABCMeta, abstractmethod class Lion(metaclass=ABCMeta): @abstractmethod def roar(self): pass class AfricanLion(Lion): def roar(self): print('African Lion') class AsianLion(Lion): def roar(self): print('Asian Lion') class Hunter: def hunt(self, lion): ...
360
575
<gh_stars>100-1000 // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/shelf/contextual_tooltip.h" #include "ash/public/cpp/ash_features.h" #include "ash/public/cpp/ash_pref_names.h" #include...
5,022
14,668
<reponame>zealoussnow/chromium // 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 "services/network/cert_verifier_with_trust_anchors.h" #include <memory> #include <string> #include <utility> #in...
3,952
2,003
// Copyright (c) 2018, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include <atomic> #include "gmock/gmock.h" #include "io/mock_tablet_io.h" #include "mock_tablet_manager.h" #include "tabletnode/tabletnode...
3,420
2,151
<filename>third_party/android_tools/sdk/sources/android-25/android/support/transition/TransitionSet.java /* * 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 ...
1,739
1,144
<filename>backend/de.metas.material/dispo-commons/src/main/java-gen/de/metas/material/dispo/model/X_MD_Candidate_Dist_Detail.java<gh_stars>1000+ /** Generated Model - DO NOT CHANGE */ package de.metas.material.dispo.model; import java.math.BigDecimal; import java.sql.ResultSet; import java.util.Properties; /** Genera...
3,794
14,668
<reponame>zealoussnow/chromium // 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 THIRD_PARTY_BLINK_RENDERER_MODULES_WEBCODECS_PARSED_COPY_TO_OPTIONS_H_ #define THIRD_PARTY_BLINK_RENDERER_MODULES_W...
653
353
<gh_stars>100-1000 """ Constants for annotations in the mapping. The constants defined here are used to annotate the mapping tuples in cuda_to_hip_mappings.py. They are based on https://github.com/ROCm-Developer-Tools/HIP/blob/master/hipify-clang/src/Statistics.h and fall in three categories: 1) type of mapping, 2)...
614
764
{ "symbol": "LBK", "address": "0x9cB1AEaFcc8A9406632C5B084246Ea72f62d37b6", "overview":{ "en": "LBank ganna release its own exchange token \"LBK\" on August 1, 2019, with a total circulation of 2 billion, which will never be issued additionally. The initial issue includes 3 rounds, with a total number of ...
734
428
import torch import torch.nn as nn import glob import os import tqdm import numpy as np import argparse import json import random import timeit from tensorboardX import SummaryWriter import pase from random import shuffle from pase.dataset import * from pase.models.frontend import wf_builder import pase.models.classifi...
6,863
2,219
// Copyright (c) 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 "quic/core/frames/quic_window_update_frame.h" namespace quic { QuicWindowUpdateFrame::QuicWindowUpdateFrame( QuicControlFrameId control...
318
370
package com.netflix.ndbench.core.filters; import com.netflix.ndbench.core.config.IConfiguration; import com.sun.jersey.spi.container.ContainerRequest; import com.sun.jersey.spi.container.ContainerResponse; import com.sun.jersey.spi.container.ContainerResponseFilter; import org.slf4j.Logger; import org.slf4j.LoggerFact...
352
6,059
<gh_stars>1000+ /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include "IRCode.h" #include "Pass.h" struct FieldDependency { DexMethod* clinit; IRList::iterat...
1,035
6,958
// // CoreMLUnary.hpp // MNN // // Created by MNN on 2021/03/25. // Copyright © 2018, Alibaba Group Holding Limited // #ifndef MNN_COREMLUNARY_HPP #define MNN_COREMLUNARY_HPP #include "CoreMLCommonExecution.hpp" #include "CoreMLBackend.hpp" namespace MNN { class CoreMLUnary : public CoreMLCommonExecution { publ...
251
3,799
/* * Copyright 2021 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 applica...
231
514
/****************************************************************************** * Copyright (c) 2004, 2008 IBM Corporation * All rights reserved. * This program and the accompanying materials * are made available under the terms of the BSD License * which accompanies this distribution, and is available at * http:...
202
1,408
/* * Copyright (c) 2020, ARM Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <plat/arm/common/plat_arm.h> #include <plat/arm/css/common/css_pm.h> /****************************************************************************** * The power domain tree descriptor...
704
5,169
<gh_stars>1000+ { "name": "XNAlertView", "version": "0.0.4", "platforms": { "ios": "8.0" }, "summary": "a alerview like android system style", "homepage": "https://github.com/xunan623/XNAlertViewDemo", "license": "MIT", "authors": { "xunan623": "<EMAIL>" }, "social_media_url": "http://weibo....
230
1,817
<gh_stars>1000+ /* * * * * * * Copyright 2019-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 * * * * * * htt...
1,413
2,062
#include <stdio.h> __attribute__((unused)) static long nowms(void) { struct timeval tv; if (gettimeofday(&tv, NULL)) err(-1, "gettimeofday"); return tv.tv_sec*1000 + tv.tv_usec/1000; } static void usage(void) { printf( "\n" "Usage:\n" "%s [-s sec] [-n nprocs]\n" "\n", __progname); exit(-1); } static voi...
1,524
427
# swift_build_support/products/llvm.py --------------------------*- python -*- # # This source file is part of the Swift.org open source project # # Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors # Licensed under Apache License v2.0 with Runtime Library Exception # # See https://swift.org/LICENSE.tx...
878
1,772
<reponame>mtcolman/django-DefectDojo # Generated by Django 2.2.20 on 2021-05-02 13:17 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('dojo', '0096_grype_name_change'), ] operations = [ migrations.RemoveField( model_name='engagement'...
209
3,181
<reponame>Doomsdayrs/android_packages_apps_GmsCore /* * Copyright (C) 2013-2017 microG Project Team * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licens...
745
1,144
#include <string.h> #include <stdio.h> #include <memory> #include "clargs.h" using namespace std; typedef struct { int argc; char** argv; } CmdLineArgs; static CmdLineArgs test_args[] = { 5, (char*[]){ "foo", "-", "--", "---", "=", "."}, 3, (char*[]){ "foo", "-x", "-i", "-?"}, 5, (char*[]){ "foo", "-abc", "--hel...
865
28,899
<gh_stars>1000+ """ Tests for Fiscal Year and Fiscal Quarter offset classes """ from datetime import datetime from dateutil.relativedelta import relativedelta import pytest from pandas._libs.tslibs.period import INVALID_FREQ_ERR_MSG from pandas import Timestamp import pandas._testing as tm from pandas.tests.tseries....
14,017
360
<filename>src/gausskernel/process/postmaster/bgworker.cpp /*-------------------------------------------------------------------- * bgworker.cpp * Pluggable background workers implementation * * Portions Copyright (c) 2021 Huawei Technologies Co.,Ltd. * * IDENTIFICATION * src/gausskernel/process/postmaster/bgw...
7,117
1,078
<filename>3rdparty/openal-soft/Alc/threads.c /** * OpenAL cross platform audio library * Copyright (C) 1999-2007 by authors. * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either...
1,890
479
<reponame>alexkarezin/gdx-texture-packer-gui<filename>core/src/com/crashinvaders/texturepackergui/utils/AppIconProvider.java package com.crashinvaders.texturepackergui.utils; import com.badlogic.gdx.scenes.scene2d.utils.Drawable; import com.crashinvaders.texturepackergui.AppConstants; import com.kotcrab.vis.ui.widget....
314
302
from .returns_chart import ( plot_quantile_and_cumulative_returns, plot_cumulative_returns, ) from .factor_diagram import ( plot_factor_diagram, ) from .chart import ( plot_chart, )
81
14,668
<filename>chrome/test/data/extensions/api_test/printer_provider/usb_printers/manifest.json { "name": "Test USB printer provider", "description": "Test extension for chrome.printerProvider.onUsbAccessGranted event", "manifest_version": 2, "version": "0.1", "app": { "background": { "scripts": ["test.j...
152
473
<reponame>pingjuiliao/cb-multios<gh_stars>100-1000 /* * Copyright (c) 2016 Kaprica Security, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without...
8,555
1,199
--- check/two_loop_two_point.cpp.sav Sat Oct 9 18:30:21 2004 +++ check/two_loop_two_point.cpp Sat Oct 9 18:00:16 2004 @@ -219,9 +219,9 @@ clog << "---------consistency of TwoLoop2Pt:" << endl; result += two_loop_two_point1(); cout << '.' << flush; - result += two_loop_two_point2(); cout << '.' << flush; + // ...
261
60,067
<filename>aten/src/ATen/native/quantized/Copy.h<gh_stars>1000+ #pragma once #include <ATen/core/Tensor.h> namespace at { namespace native { Tensor& quantized_copy_from_float_cpu_(Tensor& self, const Tensor& src); } } // namespace at
92
3,659
<reponame>noctis0430-open-source/ant-design-blazor<gh_stars>1000+ { "locale": "az-AZ", "Pagination": { "items_per_page": "/ səhifə", "jump_to": "Get", "jump_to_confirm": "təsdiqlə", "page": "", "prev_page": "Əvvəlki Səhifə", "next_page": "Növbəti Səhifə", "prev_5": "Əvvəlki 5 Səhifə", ...
1,960
3,603
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
5,241
845
#ifndef stm32g4_hal #define stm32g4_hal #if defined(STM32G4xx) void MX_GPIO_Init(void); void MX_DMA_Init(void); void MX_ADC1_Init(ADC_HandleTypeDef* hadc1); void MX_ADC2_Init(ADC_HandleTypeDef* hadc2); void MX_OPAMP1_Init(OPAMP_HandleTypeDef* hopamp); void MX_OPAMP2_Init(OPAMP_HandleTypeDef* hopamp); void MX_OPAMP3_In...
165
517
package ro.isdc.wro.cache.impl; import ro.isdc.wro.cache.CacheStrategy; /** * Dummy cache strategy implementation to totaly disable cache * * @author <NAME> &lt;<EMAIL>&gt; * @since 1.7.9 * @created 28 Sep 2015 */ public class NoCacheStrategy<CacheKey, CacheValue> implements CacheStrategy<CacheKey, CacheVa...
235
7,361
<filename>core/src/main/java/tk/mybatis/mapper/util/Assert.java package tk.mybatis.mapper.util; import java.util.Collection; import java.util.Map; /** * @author liuzh */ public abstract class Assert { public static void isTrue(boolean expression, String errorMsg) throws IllegalArgumentException { if (!...
704
333
package com.alipay.api.domain; import java.util.List; import com.alipay.api.AlipayObject; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; /** * 操作员批量分页查询 * * @author auto create * @since 1.0, 2021-05-06 14:56:03 */ public class KoubeiMerchantOp...
641
318
<filename>Example/Pods/Target Support Files/YYImage/YYImage-umbrella.h<gh_stars>100-1000 #ifdef __OBJC__ #import <UIKit/UIKit.h> #endif #import "YYAnimatedImageView.h" #import "YYFrameImage.h" #import "YYImage.h" #import "YYImageCoder.h" #import "YYSpriteSheetImage.h" FOUNDATION_EXPORT double YYImageVersionNumber; FO...
143
190,993
<filename>tensorflow/cc/experimental/base/public/tensorhandle.h /* Copyright 2020 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache....
1,280
4,901
<reponame>VSaliy/j2objc<filename>jre_emul/android/platform/libcore/luni/src/test/java/libcore/java/io/OldAndroidPushbackInputStreamTest.java /* * Copyright (C) 2008 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance wi...
1,506
438
<filename>vedaseg/criteria/bce_loss.py import torch.nn as nn from .registry import CRITERIA @CRITERIA.register_module class BCEWithLogitsLoss(nn.Module): def __init__(self, ignore_index=-1, *args, **kwargs): super(BCEWithLogitsLoss, self).__init__() self.ignore_index = ignore_index self....
233
562
<filename>freight/models/user.py from datetime import datetime from sqlalchemy import Column, DateTime, Integer, String from freight.config import db class User(db.Model): __tablename__ = "user" id = Column(Integer, primary_key=True) name = Column(String(200), nullable=False, unique=True) date_creat...
127
608
<filename>vstgui/tests/unittest/lib/crect_test.cpp // This file is part of VSTGUI. It is subject to the license terms // in the LICENSE file found in the top-level directory of this // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE #include "../../../lib/crect.h" #include "../unittests.h" namespa...
2,410
14,668
<reponame>zealoussnow/chromium<filename>chrome/browser/page_annotations/test/android/java/src/org/chromium/chrome/browser/page_annotations/BuyableProductPageAnnotationUnitTest.java // Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // f...
1,272
335
<filename>W/Woodshed_verb.json { "word": "Woodshed", "definitions": [ "(of a musician) practise in private.", "Improvise or harmonize spontaneously." ], "parts-of-speech": "Verb" }
89
410
<reponame>caryll/node-tin #ifndef CARYLL_cff_FDSELECT_H #define CARYLL_cff_FDSELECT_H #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "support/util.h" #include "cff-util.h" #include "cff-value.h" enum { cff_FDSELECT_FORMAT0, cff_FDSELECT_FORMAT3, cff_FDSELECT_UNSPECED, }; t...
432
15,577
#include <DataTypes/DataTypeDate.h> #include <DataTypes/Serializations/SerializationDate.h> #include <DataTypes/DataTypeFactory.h> namespace DB { bool DataTypeDate::equals(const IDataType & rhs) const { return typeid(rhs) == typeid(*this); } SerializationPtr DataTypeDate::doGetDefaultSerialization() const { ...
186
451
""" Sample script that runs lxml functions logged by recipy. """ # Copyright (c) 2016 University of Edinburgh. from __future__ import (nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals) import recipy import os import...
611
2,151
<reponame>zipated/src // Copyright (c) 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 "gpu/command_buffer/common/activity_flags.h" namespace gpu { ActivityFlagsBase::ActivityFlagsBase() = default; Activi...
817
966
<reponame>wangxf123456/clif<filename>clif/testing/python/absl_uint128_test.py """Tests for testing.python.absl_uint128.""" from absl.testing import absltest from clif.testing.python import absl_uint128 MAX128 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF MAX64 = 0xFFFFFFFFFFFFFFFF HIGH_LSB = 1 << 64 class AbslUint128Test(a...
351
479
import numpy as np import transforms3d as t3d from probreg import filterreg from probreg import callbacks import utils source, target = utils.prepare_source_and_target_rigid_3d('cloud_0.pcd', n_random=0, normals=True) cbs = [callbacks.Open3dVisualizerCallback(source, target)] objective_type = 'pt2pl' tf_param, _, _ =...
355
3,269
<filename>C++/letter-tile-possibilities.cpp // Time: O(n^2) // Space: O(n) class Solution { public: int numTilePossibilities(string tiles) { vector<double> fact(tiles.size() + 1); fact[0] = 1.0; for (int i = 1; i < fact.size(); ++i) { fact[i] = fact[i - 1] * i; } ...
1,306
1,350
<reponame>Shashi-rk/azure-sdk-for-java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.core.amqp.models; import com.azure.core.util.logging.ClientLogger; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import...
1,152
604
<filename>GraphCodeBERT/translation/parser/__init__.py<gh_stars>100-1000 from .utils import (remove_comments_and_docstrings, tree_to_token_index, index_to_code_token, tree_to_variable_index) from .DFG import DFG_python,DFG_java,DFG_ruby,DFG_go,DFG_php,DFG_javascr...
162
1,652
<reponame>z131031231/x-pipe<gh_stars>1000+ package com.ctrip.xpipe.redis.checker.impl; import com.ctrip.xpipe.endpoint.HostPort; import com.ctrip.xpipe.redis.checker.AbstractCheckerTest; import com.ctrip.xpipe.redis.checker.healthcheck.HealthCheckAction; import com.ctrip.xpipe.redis.checker.healthcheck.RedisHealthChec...
578
1,345
<filename>napari/_qt/dialogs/_tests/test_activity_dialog.py import os import sys from contextlib import contextmanager import pytest from napari._qt.widgets.qt_progress_bar import ( QtLabeledProgressBar, QtProgressBarGroup, ) from napari.utils import progress SHOW = bool(sys.platform == 'linux' or os.getenv(...
1,597
908
from __future__ import division import numpy as np from path import Path from imageio import imread from skimage.transform import resize as imresize from kitti_util import pose_from_oxts_packet, generate_depth_map, read_calib_file, transform_from_rot_trans from datetime import datetime class KittiRawLoader(object): ...
4,183
4,036
<reponame>timoles/codeql<gh_stars>1000+ import yarl url = yarl.URL(TAINTED_STRING) ensure_tainted( url, # $ tainted # see https://yarl.readthedocs.io/en/stable/api.html#yarl.URL url.user, # $ tainted url.raw_user, # $ tainted url.password, # $ tainted url.raw_password, # $ tainted url...
644
375
/* * Copyright 2019 Nokia Solutions and Networks * Licensed under the Apache License, Version 2.0, * see license.txt file for details. */ package org.rf.ide.core.execution.agent.event; import java.util.List; import java.util.Map; import java.util.Optional; import org.rf.ide.core.execution.server.respon...
1,004
755
<gh_stars>100-1000 /** * @project: Overload * @author: <NAME>. * @licence: MIT */ #pragma once #include <string> namespace OvAudio::Resources { namespace Loaders { class SoundLoader; } /** * Playable sound */ class Sound { friend class Loaders::SoundLoader; private: Sound(const std::string& p_path); ...
137
5,937
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #include "win32inc.hpp" using namespace System; using namespace System::IO; using namespace System::Collections; us...
2,581
1,374
<filename>transpiler/src/main/java/org/jsweet/transpiler/model/support/TypeElementSupport.java<gh_stars>1000+ package org.jsweet.transpiler.model.support; import java.lang.annotation.Annotation; import java.util.List; import java.util.Set; import javax.lang.model.element.AnnotationMirror; import javax.lang.model.elem...
1,071
575
<gh_stars>100-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 "extensions/browser/api/system_cpu/cpu_info_provider.h" #include "base/system/sys_info.h" #include "build/chromeos_buildflags...
1,095
318
// // CMHTMLScriptTransformer_Private.h // CocoaMarkdown // // Created by Indragie on 1/16/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import "CMHTMLScriptTransformer.h" #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> #else #import <Cocoa/Cocoa.h> #endif typedef NS_ENUM(NSInteger, CMHTMLScriptStyle) ...
204
10,225
<filename>independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/unused/AlphaInterceptor.java package io.quarkus.arc.test.unused; import javax.annotation.Priority; import javax.inject.Inject; import javax.interceptor.AroundInvoke; import javax.interceptor.Interceptor; import javax.interceptor.InvocationConte...
216
764
{"symbol": "EZW","address": "0x78a2a1029E3168b49d3A276C787050fF5106dCF2","overview":{"en": ""},"email": "<EMAIL>","website": "https://www.ezoow.com/","state": "NORMAL","links": {"blog": "","twitter": "https://twitter.com/EzoowToken","telegram": "https://t.me/ezoowofficial","github": "https://github.com/ezoowtoken/ezoow...
133
731
<reponame>pit-ray/win-vind #include "bind/emu/simple_text_selecter.hpp" #include "io/keybrd.hpp" namespace { using namespace vind::textselect ; Mode g_mode{Mode::Unselect} ; bool g_first_line_selection = false ; bool g_first_call = true ; inline void _reset() noexcept { g_first_call = tr...
977
778
<filename>modAionImpl/src/org/aion/zero/impl/types/IBlockConstants.java package org.aion.zero.impl.types; import java.math.BigInteger; /** * Interface for declaring general block related constant files. This can change depending on the * chain configuration that is loaded. */ public interface IBlockConstants { ...
599
1,283
<reponame>BigBossss17/bots package com.pengrad.telegrambot.request; import com.pengrad.telegrambot.response.BaseResponse; /** * <NAME> * 05 November 2020 */ public class LogOut extends BaseRequest<LogOut, BaseResponse> { public LogOut() { super(BaseResponse.class); } }
106
2,661
// Copyright 2017 Google Inc. // Copyright 2020 The Open GEE Contributors // // 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...
1,883
5,169
{ "name": "LxlTest", "version": "1.0.1", "summary": "LxlTest is a test code by LXL.", "description": "It is a marquee view used on iOS, which implement by Objective-C.", "homepage": "https://github.com/lxl125z/LxlTest", "license": "MIT", "authors": { "lxl125z": "<EMAIL>" }, "source": { "git": ...
255
9,472
<reponame>kzh3ka/japronto<gh_stars>1000+ from distutils.core import Extension def get_extension(): return Extension( 'japronto.request.crequest', sources=['crequest.c', '../response/cresponse.c', '../router/match_dict.c', '../capsule.c'], include_dirs=['../../picohttpparse...
206
2,113
package io.noties.markwon.image; import android.graphics.Rect; import androidx.annotation.NonNull; /** * @see ImageSizeResolverDef * @see io.noties.markwon.MarkwonConfiguration.Builder#imageSizeResolver(ImageSizeResolver) * @since 1.0.1 */ public abstract class ImageSizeResolver { /** * @since 4.0.0 ...
148
426
<filename>ZZFLEXDemo/ZZFLEXDemo/Modules/NewsSubscription/SubscriptionList/ZZFDSubscriptionViewController.h // // ZZFDSubscriptionViewController.h // ZZFLEXDemo // // Created by 李伯坤 on 2018/2/4. // Copyright © 2018年 李伯坤. All rights reserved. // #import <UIKit/UIKit.h> @interface ZZFDSubscriptionViewController : UI...
143
334
<gh_stars>100-1000 // Auto generated code, do not modify package nxt.http.callers; import nxt.http.APICall; public class GetPrunableMessageCall extends APICall.Builder<GetPrunableMessageCall> { private GetPrunableMessageCall() { super(ApiSpec.getPrunableMessage); } public static GetPrunableMessag...
431
306
# -*- coding: utf-8 -*- # Copyright: (c) 2019, <NAME> (@jborean93) <<EMAIL>> # MIT License (see LICENSE or https://opensource.org/licenses/MIT) import atexit import ntpath import uuid import warnings from smbprotocol.connection import ( Connection, ) from smbprotocol.session import ( Session, ) from smbprot...
1,929
5,169
{ "name": "swift-layout", "version": "0.0.1", "license": "MIT", "authors": { "incetro": "<EMAIL>", "<NAME>": "<EMAIL>" }, "homepage": "https://github.com/Incetro/layout", "summary": "Simple layout design wrapper", "swift_versions": "5.3", "platforms": { "ios": "11.0", "tvos": "11.0" ...
227
2,151
<reponame>zipated/src /* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * Copyright (C) 2009 Torch Mobile, Inc. http://www.torchmobile.com/ * Copyright (C) 2010 Google Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
14,255
304
package io.jenkins.plugins.analysis.warnings; import org.junit.Test; import com.google.inject.Inject; import org.jenkinsci.test.acceptance.docker.DockerContainer; import org.jenkinsci.test.acceptance.docker.DockerContainerHolder; import org.jenkinsci.test.acceptance.docker.fixtures.JavaGitContainer; import org.jenki...
4,388
1,040
#define IDC_STATIC -1 #define IDD_CONFIGURE 101 #define IDB_PLAYER0 102 #define IDB_PLAYER1 103 #define IDB_SCORE0 104 #define IDB_SCORE1 105 #define IDB_BACKDROP 106 #define IDC...
428
1,062
/** * Copyright 2014 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 * * Unless requir...
606
5,079
<filename>tests/mturk/_init_environment.py import os import functools live_connection = False mturk_host = 'mechanicalturk.sandbox.amazonaws.com' external_url = 'http://www.example.com/' SetHostMTurkConnection = None def config_environment(): global SetHostMTurkConnection try: local...
432
4,054
<gh_stars>1000+ // Copyright 2020 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package ai.vespa.metricsproxy.metric.model.json; import ai.vespa.metricsproxy.metric.Metric; import ai.vespa.metricsproxy.metric.model.ConsumerId; import ai.vespa.metricsproxy.metric.model.D...
1,759
2,761
<reponame>X-EcutiOnner/Notepad3 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file exce...
7,705
118,175
<filename>ReactAndroid/src/androidTest/java/com/facebook/react/testing/FabricUIManagerFactory.java /* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.testi...
204
4,973
<gh_stars>1000+ exclude_patterns = ['_build'] linkcheck_anchors = True
27
12,824
public class MyClient { public static void f() { MyClass.myStaticBaseMethod(); } }
26
854
<reponame>rakhi2001/ecom7<filename>Python3/592.py __________________________________________________________________________________________________ sample 28 ms submission class Solution: def fractionAddition(self, expression: str) -> str: def toInt(x): x = x.split('/') ...
794
1,336
/* * 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 ...
965
984
/* * Copyright DataStax, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wri...
997
1,498
from suggestion.early_stop_algorithm.abstract_early_stop import AbstractEarlyStopAlgorithm class EarlyStopFirstTrialAlgorithm(AbstractEarlyStopAlgorithm): def get_early_stop_trials(self, trials): return [trials[0]]
67
1,975
<filename>contents/graham_scan/code/c/graham.c<gh_stars>1000+ #include <math.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string.h> struct point { double x, y; }; int cmp_points(const void *a, const void *b) { struct point* pa = (struct point*) a; struct point* pb = (struct poin...
1,470
768
<gh_stars>100-1000 package com.hq.hsmwan.fragment; import android.content.Context; import android.graphics.Paint; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.FloatingActionButton; import android.support.v4.app.Fragment; import android.support.v4.app.Fragme...
6,678
3,269
<reponame>Sourav692/FAANG-Interview-Preparation # Time: O(nlogn) # Space: O(n) class Solution(object): def carFleet(self, target, position, speed): """ :type target: int :type position: List[int] :type speed: List[int] :rtype: int """ times = [float(target-p...
267
1,652
<reponame>z131031231/x-pipe<gh_stars>1000+ package com.ctrip.xpipe.redis.integratedtest.checker; import com.ctrip.xpipe.api.pool.SimpleObjectPool; import com.ctrip.xpipe.api.server.Server; import com.ctrip.xpipe.cluster.ClusterType; import com.ctrip.xpipe.endpoint.DefaultEndPoint; import com.ctrip.xpipe.endpoint.Host...
3,981