max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,284
# nuScenes dev-kit. # Code written by <NAME>, 2020. import itertools import os import unittest from collections import defaultdict from typing import List, Dict, Any from nuimages.nuimages import NuImages class TestForeignKeys(unittest.TestCase): def __init__(self, _: Any = None, version: str = 'v1.0-mini', dat...
3,256
3,861
<filename>MdePkg/Include/Protocol/PlatformToDriverConfiguration.h /** @file UEFI Platform to Driver Configuration Protocol is defined in UEFI specification. This is a protocol that is optionally produced by the platform and optionally consumed by a UEFI Driver in its Start() function. This protocol allows th...
6,941
640
<filename>server/www/packages/packages-windows/x86/ldap3/protocol/rfc3062.py """ """ # Created on 2014.04.28 # # Author: <NAME> # # Copyright 2014 - 2020 <NAME> # # This file is part of ldap3. # # ldap3 is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General P...
1,192
937
{ "connector.class": "io.debezium.connector.postgresql.PostgresConnector", "tasks.max": "1", "database.hostname": "payment-db", "database.port": "5432", "database.user": "paymentuser", "database.password": "<PASSWORD>", "database.dbname" : "paymentdb", "database.server.name": "dbserver2"...
331
310
<reponame>dreeves/usesthis<filename>gear/hardware/t/ts-420.json { "name": "TS-420", "description": "A four-bay NAS.", "url": "https://www.amazon.com/QNAP-TS-420-All-one-4-bay/dp/B00D2Y1EHE" }
94
1,374
package def.js; import jsweet.util.function.Function4; @jsweet.lang.SyntacticIterable public class Array<T> extends Iterable<T> implements java.lang.Iterable<T> { public native T[] toArray(); /** * Gets or sets the length of the array. This is a number one higher than the * highest element defined in an array....
10,619
581
# coding: utf8 from multiprocessing import Pool, cpu_count from pathlib import Path import sys from typing import Generator, Iterable, Optional, List import plac from . import force_using_normalized_form_as_lemma from .analyzer import Analyzer MINI_BATCH_SIZE = 100 class _OutputWrapper: def __init__(self, outpu...
3,986
654
/* * Copyright (c) 2015-2021 "Neo Technology," * Network Engine for Objects in Lund AB [http://neotechnology.com] * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.ap...
1,459
12,278
/* Copyright (c) <NAME> 2011-2012. Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) For more information, see http://www.boost.org */ #include <iostream> #include <boost/config.hpp> #include <boost/algori...
1,076
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"<NAME>","circ":"3ème circonscription","dpt":"Ardennes","inscrits":123,"abs":70,"votants":53,"blancs":3,"nuls":0,"exp":50,"res":[{"nuance":"LR","nom":"<NAME>","voix":42},{"nuance":"FN","nom":"<NAME>","voix":8}]}
108
348
{"nom":"Serra-di-Fiumorbo","circ":"2ème circonscription","dpt":"Haute-Corse","inscrits":368,"abs":129,"votants":239,"blancs":1,"nuls":0,"exp":238,"res":[{"nuance":"REG","nom":"<NAME>","voix":135},{"nuance":"REM","nom":"<NAME>","voix":103}]}
97
3,172
<reponame>lp2333/PARL # Copyright (c) 2019 PaddlePaddle 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.org/licenses/LICENSE-2.0 # # ...
2,354
739
<reponame>tchudyk/RichTextFX package org.fxmisc.richtext.demo; import java.time.Duration; import javafx.application.Application; import javafx.geometry.Point2D; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.stage.Popup; import javafx.stage.Stage; import org.fxmisc.richtext.event.MouseOv...
721
431
/* Copyright 2017 <NAME> and <NAME> Distributed under MIT license, or public domain if desired and recognized in your jurisdiction. See file LICENSE for detail. */ #include "usermodel.h" UserModel::UserModel(QObject *parent) : QObject(parent) { } QString UserModel::getName() const { return n...
714
711
package com.java110.goods.smo.impl; import com.java110.core.base.smo.BaseServiceSMO; import com.java110.dto.PageDto; import com.java110.dto.product.ProductDto; import com.java110.dto.productLabel.ProductLabelDto; import com.java110.dto.productSpecValue.ProductSpecValueDto; import com.java110.goods.dao.IProductLabelSe...
1,313
1,398
from skimage.transform import resize heatmap_1_r = resize(heatmap_1, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True) heatmap_2_r = resize(heatmap_2, (50,80), mode='reflect', preserve_range=True, anti_aliasing=True) heatmap_3_r = resize(heatmap_3, (50,80), mod...
245
1,472
<gh_stars>1000+ package org.muses.jeeplatform.cas.user.service; import org.muses.jeeplatform.cas.user.model.User; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springfr...
569
4,538
/* * Copyright 2009-2017 Alibaba Cloud 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...
523
571
/* * Copyright (c) 2020-2021 <NAME> <EMAIL> * zlib License, see LICENSE file. */ /* * Copyright 2005-2009 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction...
1,650
336
#include "midi_app.h" #include "midi_desc.h" #include "midi_conf.h" typedef union { struct { u32 ALL; }; struct { u8 cin_cable; u8 evnt0; u8 evnt1; u8 evnt2; }; struct { u8 type:4; u8 cable:4; u8 chn:4; // mios32_midi_chn_t u8 event:4; // mios32_midi_event_t u8 value1;...
3,392
778
<gh_stars>100-1000 //------------------------------------------------------------- // ___ _ _ // KRATOS / __|___ _ _| |_ __ _ __| |_ // | (__/ _ \ ' \ _/ _` / _| _| // \___\___/_||_\__\__,_\__|\__|MECHANICS // // License:(BSD) ContactMechanicsApplication/license.txt // /...
3,473
1,909
<filename>xchange-examples/src/main/java/org/knowm/xchange/examples/bithumb/marketdata/BithumbMarketDataDemo.java package org.knowm.xchange.examples.bithumb.marketdata; import java.io.IOException; import org.knowm.xchange.Exchange; import org.knowm.xchange.bithumb.service.BithumbMarketDataServiceRaw; import org.knowm....
559
776
package act.util; /*- * #%L * ACT Framework * %% * Copyright (C) 2014 - 2017 ActFramework * %% * 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/license...
656
8,772
package org.apereo.cas.util.ssl; import org.apereo.cas.configuration.model.core.util.ClientCertificateProperties; import org.apereo.cas.util.RandomUtils; import lombok.SneakyThrows; import lombok.experimental.UtilityClass; import lombok.val; import javax.net.ssl.KeyManagerFactory; import javax.net.ssl.SSLContext; im...
614
701
#pragma once #include <brutal/io.h> #include <cc/parse.h> // FIXME: get ride of thoses ugly macros. #define ctx_lex(lexer_name, str) \ Scan _scan = {}; \ scan_init(&_scan, str); \ Lex lexer_name = clex(&_scan, test_alloc()); \ scan_asse...
546
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. package org.chromium.chrome.browser.autofill_assistant; import android.support.test.InstrumentationRegistry; import org.chromium.chrome.browser.customta...
425
354
/* Disclaimer: This solution does not contain any header file or driver code, this only contains the class and the algorithm used in this problem. You're probably learning DS and Algo because you want to get into Competitive Programming or crack and interview, you should be acquainted with this kind of solution. TL;...
239
1,861
// 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. #import <Foundation/Foundation.h> #import <UIKit/UIImage.h> NS_ASSUME_NONNULL_BEGIN #ifdef __cplusplus extern "C" { #endif CGFloat FSPC...
152
1,056
<reponame>Antholoj/netbeans<filename>ide/project.ant/test/unit/src/org/netbeans/spi/project/support/ant/GlobFileBuiltQueryTest.java /* * 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 *...
5,590
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // // System includes // External includ...
467
14,668
// 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 CHROME_BROWSER_APPS_PLATFORM_APPS_API_WEBSTORE_WIDGET_PRIVATE_WEBSTORE_WIDGET_PRIVATE_API_H_ #define CHROME_BROWSER_APPS_PLATFORM_APPS_API_WEBSTOR...
568
2,389
{ "compilerOptions": { "composite": true }, "files": [ "package/addon/comment/comment.js", "package/addon/edit/closebrackets.js", "package/addon/edit/matchbrackets.js", "package/addon/fold/brace-fold.js", "package/addon/fold/foldcode.js", "package/addon/fold/foldgutter.js", "packag...
504
6,098
package water.jdbc; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.annotations.OutputTimeUnit; import org.openjdk.jmh...
1,935
432
int Bar(int value);
7
372
<reponame>noisecode3/DPF<gh_stars>100-1000 /* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2021 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this * permission not...
1,149
14,499
/* * 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. */ #include "Bicycle.h" int ProtocolProcdescMain() { Bicycle* bike = [Bicycle alloc]; [bike signalStop]; return 0; }
93
601
<reponame>ZhongFuCheng3y/austin<filename>austin-common/src/main/java/com/java3y/austin/common/enums/SendMessageType.java package com.java3y.austin.common.enums; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.ToString; /** * 微信应用消息/钉钉/服务号均有多种的消息类型下发 * * @author 3y */ @Getter @ToString @AllAr...
688
707
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #ifndef WPIUTIL_WPI_HOSTNAME_H_ #define WPIUTIL_WPI_HOSTNAME_H_ #include <string> #include <string_view> namespace wpi...
178
1,508
<gh_stars>1000+ package org.knowm.xchange.ascendex.dto.account; import com.fasterxml.jackson.annotation.JsonProperty; import java.math.BigDecimal; public class AscendexCashAccountBalanceDto { private final String asset; private final BigDecimal totalBalance; private final BigDecimal availableBalance; pub...
394
648
{"resourceType":"DataElement","id":"instant","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/instant","status":"draft","experimental":true,"stringency":"fully-specified","element":[{"id":"instant","path":"instant","short":"Primitive Type instant","definition":"An instant in...
218
7,782
package com.baidu.paddledetection.detection; import android.app.ProgressDialog; import android.content.ContentResolver; import android.content.Intent; import android.content.SharedPreferences; import android.database.Cursor; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri;...
6,998
892
<filename>advisories/unreviewed/2022/03/GHSA-qh5r-mghj-xj6g/GHSA-qh5r-mghj-xj6g.json<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-qh5r-mghj-xj6g", "modified": "2022-04-05T00:00:46Z", "published": "2022-03-29T00:01:08Z", "aliases": [ "CVE-2017-20012" ], "details": "** UNSUPPORTED WHEN ASS...
621
1,391
<gh_stars>1000+ #include <u.h> #include <libc.h> #include <bio.h> #include <ndb.h> #include <ip.h> #include "dat.h" extern char *binddir; long now; char *blog = "ipboot"; int minlease = MinLease; void main(void) { Dir *all; int i, nall, fd; Binding b; fmtinstall('E', eipfmt); fmtinstall('I', eipfmt); fmtins...
392
3,756
<reponame>LeoTafti/darts """Downloading data from the M4 competition """ import os import requests def download(datapath, url, name, split=None): os.makedirs(datapath, exist_ok=True) if split is not None: namesplit = split + "/" + name else: namesplit = name url = url.format(name...
539
14,668
<reponame>zealoussnow/chromium // 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 <utility> #include "ash/public/cpp/test/test_image_downloader.h" #include "base/bind.h" #include "base/callback.h...
545
4,772
<filename>jpa/deferred/src/main/java/example/repo/Customer1627Repository.java<gh_stars>1000+ package example.repo; import example.model.Customer1627; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1627Repository extends CrudRepository<Customer1627, Long> {...
122
696
<reponame>hwang-pku/Strata<gh_stars>100-1000 /* * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.collect.array; import java.io.Serializable; import java.lang.annotation.Annotation; import java.lang.reflect...
14,032
474
// // PLSTimelineMediaInfo.h // PLVideoEditor // // Created by suntongmian on 2018/5/24. // Copyright © 2018年 Pili Engineering, Qiniu Inc. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> #define UIColorFromRGB(R,G,B) [UIColor colorWithRed:(R...
395
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/OfficeImport.framework/OfficeImport */ #import <OfficeImport/OfficeImport-Structs.h> #import <OfficeImport/OADColor.h> __attribute__((visibility("hidden"))) @interface OADIndexedColor : OADColor { @private int mIn...
253
1,968
<filename>platform/windows/Corona.Component.Library/CoronaLabs/Corona/WinRT/Interop/UI/PageProxy.h ////////////////////////////////////////////////////////////////////////////// // // This file is part of the Corona game engine. // For overview and more information on licensing please refer to README.md // Home page: ...
2,023
3,482
#include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <iostream> #include <math.h> // gamma correction cv::Mat gamma_correction(cv::Mat img, double gamma_c, double gamma_g){ // get height and width int width = img.cols; int height = img.rows; int channel = img.channels(); // output image cv...
439
1,056
<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 Apache License, Version 2.0 (the * ...
798
566
/** * This file is part of dvo. * * Copyright 2013 <NAME> <<EMAIL>> (Technical University of Munich) * For more information see <http://vision.in.tum.de/data/software/dvo>. * * dvo is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by ...
1,073
335
/* Copyright 2016 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
1,809
324
from django.utils.translation import ugettext_lazy as _ from waliki.plugins import BasePlugin, register class PdfPlugin(BasePlugin): slug = 'pdf' urls_page = ['waliki.pdf.urls'] extra_page_actions = {'reStructuredText': [('waliki_pdf', _('Get as PDF'))]} register(PdfPlugin)
105
420
package com.kevin.delegationadapter.sample.bean; import java.util.List; /** * Chat * * @author <EMAIL>, Created on 2018-06-09 10:30:25 * Major Function:<b></b> * <p/> * 注:如果您修改了本类请填写以下内容作为记录,如非本人操作劳烦通知,谢谢!!! * @author mender,Modified Date Modify Content: */ public class Chat { pu...
327
854
<filename>Java/812.java<gh_stars>100-1000 __________________________________________________________________________________________________ sample 2 ms submission class Solution { public double largestTriangleArea(int[][] p) { double max = 0; int length = p.length; for (int i = 0 ; i < len...
795
743
import re from config.Config import Config from engine.component.TemplateModuleComponent import TemplateModuleComponent from enums.Language import Language class UsingComponent(TemplateModuleComponent): def __init__(self, code=None, language=Language.CSHARP): placeholder = Config().get("PLACEHOLDERS", "U...
415
350
<filename>src/main.py<gh_stars>100-1000 #!/usr/bin/python # -*- coding: utf-8 -*- import argparse, logging import numpy as np import struc2vec from gensim.models import Word2Vec from gensim.models.word2vec import LineSentence from time import time import graph logging.basicConfig(filename='struc2vec.log',filemode='w...
1,584
732
<gh_stars>100-1000 /* Copyright 2019 Adobe. All Rights Reserved. This software is licensed as OpenSource, under the Apache License, Version 2.0. This license is available at: http://opensource.org/licenses/Apache-2.0. */ #ifndef SAFETIME_H #define SAFETIME_H #ifdef _WIN32 #define SAFE_LOCALTIME(x, y) localtime_s(y...
327
685
// eventpp library // Copyright (C) 2018 <NAME> (wqking) // Github: https://github.com/wqking/eventpp // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICE...
1,021
661
<reponame>apjagdale/sxrsdk<filename>SXR/Extensions/sxr-physics/src/main/jni/bullet3/include/Bullet3Collision/BroadPhaseCollision/shared/b3Aabb.h #ifndef B3_AABB_H #define B3_AABB_H #include "Bullet3Common/shared/b3Float4.h" #include "Bullet3Common/shared/b3Mat3x3.h" typedef struct b3Aabb b3Aabb_t; struct b3Aabb { ...
868
1,831
<filename>logdevice/common/ZookeeperClient.h /** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #pragma once #include <chrono> #include <...
3,588
9,959
//CONF: lombok.log.fieldName = myLogger //CONF: lombok.log.fieldIsStatic = false @lombok.extern.slf4j.Slf4j class LoggerWithConfig { }
60
4,262
<filename>components/camel-google/camel-google-functions/src/main/java/org/apache/camel/component/google/functions/GoogleCloudFunctionsClientFactory.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for add...
886
1,481
<filename>docs/asciidoc/modules/ROOT/examples/data/exportJSON/query.json<gh_stars>1000+ {"u.age":42,"u.name":"Adam","u.male":true,"u.kids":["Sam","Anna","Grace"],"labels(u)":["User"]} {"u.age":42,"u.name":"Jim","u.male":null,"u.kids":null,"labels(u)":["User"]} {"u.age":12,"u.name":null,"u.male":null,"u.kids":null,"labe...
143
60,067
<filename>aten/src/THC/THCGenerateHalfType.h #ifndef THC_GENERIC_FILE #error "You must define THC_GENERIC_FILE before including THGenerateHalfType.h" #endif #include <TH/THHalf.h> #define scalar_t THHalf #define accreal float #define Real Half #define CReal CudaHalf #define THC_REAL_IS_HALF #line 1 THC_GENERIC_FILE...
214
10,225
package io.quarkus.security.test; import java.io.IOException; import javax.servlet.annotation.HttpConstraint; import javax.servlet.annotation.ServletSecurity; import javax.servlet.annotation.WebInitParam; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.Http...
300
714
<gh_stars>100-1000 // // CommonItemModel.h // ZYSideSlipFilter // // Created by lzy on 16/10/16. // Copyright © 2016年 zhiyi. All rights reserved. // #import <Foundation/Foundation.h> @interface CommonItemModel : NSObject @property (copy, nonatomic) NSString *itemId; @property (copy, nonatomic) NSString *itemName;...
132
1,136
<reponame>liyichao/kids #include "gtest/gtest.h" #include "kids.h" #include "util.h" TEST(TestParseMessage, Test1) { char str[] = "nginx|[Tue, 22 Nov 2011 08:43:41] r6z4exqgaft5ruhrd6jy8gvahpamg6xjhr5hpojdfysa7ijgh4chn8qezti2k4k6ckzzlpf07x8b6fxpfnr07gl1ls431qwgc6"; Message *msg = ParseMessage(str, sizeof(str) - 1...
708
5,169
<filename>Specs/7/b/1/SDKService/1.0.0/SDKService.podspec.json { "name": "SDKService", "version": "1.0.0", "summary": "SDKService", "description": "this is SDKService", "homepage": "https://github.com/acv-ninhnm/SDKService", "license": "MIT", "authors": { "acv-ninhnm": "<EMAIL>" }, "platforms": { ...
243
575
<filename>chrome/browser/predictors/navigation_id.h<gh_stars>100-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. #ifndef CHROME_BROWSER_PREDICTORS_NAVIGATION_ID_H_ #define CHROME_BROWSER_PREDICTORS...
561
372
<filename>lsass/tests/test_LsaAllocSecurityIdentifierFromBinary/main.c /* Editor Settings: expandtabs and use 4 spaces for indentation * ex: set softtabstop=4 tabstop=8 expandtab shiftwidth=4: * * -*- mode: c, c-basic-offset: 4 -*- */ /* * Copyright © BeyondTrust Software 2004 - 2019 * All rights reserved. * * L...
2,112
1,835
<reponame>elan17/GamestonkTerminal # flake8: noqa # pylint: disable=unused-import from .stocks import stocks_api as stocks
45
334
<filename>watch-library/hardware/hal/src/hal_rand_sync.c /** * \file * * \brief Generic Random Number Generator (RNG) functionality declaration. * * Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms...
1,277
5,169
{ "name": "ColorMaskingButton", "version": "0.1.0", "summary": "A color masking effect for UIButton.", "description": "Dynamically pan the color of a button to the offset of another view's frame.", "homepage": "https://github.com/lawrnce/ColorMaskingButton", "license": "MIT", "authors": { "<NAME>": "<...
265
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...
574
2,406
// Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #pragma once #include <vector> #include "split.hpp" #include "ngraph/node.hpp" namespace ngraph { namespace pass { namespace low_precision { class LP_TRANSFORMATIONS_API VariadicSplitTransformation : public SplitTransformation {...
166
308
#ifndef __INC_OCTOWS2811_CONTROLLER_H #define __INC_OCTOWS2811_CONTROLLER_H #ifdef USE_OCTOWS2811 // #include "OctoWS2811.h" FASTLED_NAMESPACE_BEGIN template<EOrder RGB_ORDER = GRB, uint8_t CHIP = WS2811_800kHz> class COctoWS2811Controller : public CPixelLEDController<RGB_ORDER, 8, 0xFF> { OctoWS2811 *pocto; u...
736
335
{ "word": "Kalong", "definitions": [ "A flying fox found in SE Asia and Indonesia." ], "parts-of-speech": "Noun" }
62
14,668
<filename>ui/views/test/widget_test_api.h // 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 UI_VIEWS_TEST_WIDGET_TEST_API_H_ #define UI_VIEWS_TEST_WIDGET_TEST_API_H_ namespace views { // Makes W...
193
346
class EmptyDicomSeriesException(Exception): """ Exception that is raised when the given folder does not contain dcm-files. """ def __init__(self, *args): if not args: args = ('The specified path does not contain dcm-files. Please ensure that ' 'the path points to...
153
32,544
package com.baeldung.vertxspring.repository; import com.baeldung.vertxspring.entity.Article; import org.springframework.data.jpa.repository.JpaRepository; public interface ArticleRepository extends JpaRepository<Article, Long> { }
76
1,611
// Unless explicitly stated otherwise all files in this repository are licensed // under the Apache License Version 2.0. // This product includes software developed at Datadog (https://www.datadoghq.com/). // Copyright 2019-present Datadog, Inc. #include "_util.h" #include "cgo_free.h" #include "rtloader_mem.h" #includ...
4,543
754
<gh_stars>100-1000 # Generated by the Protocol Buffers compiler. DO NOT EDIT! # source: multiproc/primes.proto # plugin: grpclib.plugin.main import abc import typing import grpclib.const import grpclib.client if typing.TYPE_CHECKING: import grpclib.server import google.protobuf.wrappers_pb2 import multiproc.prime...
541
400
import os import json import shutil import numpy as np from typing import Any from typing import Dict from typing import List from typing import Type from typing import Tuple from typing import Union from typing import Callable from typing import Optional from typing import NamedTuple from tqdm.autonotebook import tq...
6,808
852
#include "CondFormats/AlignmentRecord/interface/EEAlignmentErrorExtendedRcd.h" #include "FWCore/Framework/interface/eventsetuprecord_registration_macro.h" EVENTSETUP_RECORD_REG(EEAlignmentErrorExtendedRcd);
70
839
# Generated from BaserowFormulaLexer.g4 by ANTLR 4.8 from antlr4 import * from io import StringIO from typing.io import TextIO import sys def serializedATN(): with StringIO() as buf: buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\2T") buf.write("\u028a\b\1\4\2\t\2\4\3\t\3\4\4\t\4\4...
20,012
746
package org.protege.editor.owl.ui.renderer; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; import org.semanticweb.owlapi.model.IRI; import org.semanticweb.owlapi.model.OWLEntity; import org.semanticweb.owlapi.voca...
6,257
525
<gh_stars>100-1000 """ LinkedIn Authentication """ from xml.etree import ElementTree from django.conf import settings from .oauthclient import client API_KEY = settings.LINKEDIN_API_KEY API_SECRET = settings.LINKEDIN_API_SECRET # some parameters to indicate that status updating is possible STATUS_UPDATES = False S...
994
602
<filename>infrastructure/src/main/java/org/corfudb/infrastructure/logreplication/replication/fsm/EmptySnapshotReader.java package org.corfudb.infrastructure.logreplication.replication.fsm; import org.corfudb.infrastructure.logreplication.replication.send.logreader.SnapshotReadMessage; import org.corfudb.infrastructure...
283
17,703
#include "contrib/sxg/filters/http/source/filter_config.h" #include <string> #include "envoy/http/codes.h" #include "envoy/server/filter_config.h" #include "envoy/stats/scope.h" #include "source/common/common/utility.h" #include "source/common/http/headers.h" #include "source/common/stats/utility.h" namespace Envoy...
866
2,151
<reponame>zipated/src // 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. #ifndef ASH_DISPLAY_ASH_DISPLAY_CONTROLLER_H_ #define ASH_DISPLAY_ASH_DISPLAY_CONTROLLER_H_ #include "ash/public/interfaces/ash_dis...
336
677
<reponame>cristigr/macrobase<gh_stars>100-1000 package edu.stanford.futuredata.macrobase.integration; import edu.stanford.futuredata.macrobase.StreamingSummarizationTest; import edu.stanford.futuredata.macrobase.analysis.summary.Explanation; import edu.stanford.futuredata.macrobase.analysis.summary.fpg.FPGExplanation;...
2,125
1,442
<filename>delta/data/task/kws_cls_task_test.py # Copyright (C) 2017 Beijing Didi Infinity Technology and Development Co.,Ltd. # 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 Licen...
786
3,182
<filename>test-manual/src/main/java/de/plushnikov/constructor/DataAndOtherConstructor.java package de.plushnikov.constructor; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.RequiredArgsConstructor; import java.util.Timer; @Data @N...
439
712
/* * Copyright 2017-2019 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 * * Unless required by a...
748
683
/* * Copyright The OpenTelemetry Authors * SPDX-License-Identifier: Apache-2.0 */ package io.opentelemetry.javaagent.instrumentation.jaxws.jws.v1_1; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; public class ProxyInvocationHandler implements InvocationHandler { final WebServiceDe...
175
513
<reponame>trajano/google-fonts { "family": "Vollkorn", "variants": [ "regular", "500", "600", "700", "800", "900", "italic", "500italic", "600italic", "700italic", "800italic", "900italic" ], "subsets": ["cyrillic", "cyrillic-ext", "greek", "latin", "latin-ext", "...
1,045
964
[ { "queryName": "Deployment Has No PodAntiAffinity", "severity": "LOW", "line": 19 }, { "queryName": "Deployment Has No PodAntiAffinity", "severity": "LOW", "line": 39 } ]
86