max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
416
// This file is distributed under the MIT license. // See the LICENSE file for details. #pragma once #ifndef VSNRAY_CUDA_ARRAY_H #define VSNRAY_CUDA_ARRAY_H 1 #include <cstddef> #include <cstring> // memset #include <cuda_runtime_api.h> namespace visionaray { namespace cuda { //-----------------------------------...
1,658
4,816
<filename>include/retdec/bin2llvmir/optimizations/main_detection/main_detection.h /** * @file include/retdec/bin2llvmir/optimizations/main_detection/main_detection.h * @brief Detect main function. * @copyright (c) 2017 Avast Software, licensed under the MIT license */ #ifndef RETDEC_BIN2LLVMIR_OPTIMIZATIONS_MAIN_DETEC...
607
1,355
// Copyright (c) 2018 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #ifndef INCLUDE_JET_DETAIL_VECTOR_EXPRESSION_INL_H #define INCLUDE_JET_DETAIL_VECTOR_EXPRESSION_INL_H #inc...
1,834
353
#import <UIKit/UIKit.h> //! Project version number for moa. FOUNDATION_EXPORT double moaVersionNumber; //! Project version string for moa. FOUNDATION_EXPORT const unsigned char moaVersionString[]; // In this header, you should import all the public headers of your framework using statements like #import <Moa/PublicH...
95
1,032
/* * Copyright (c) 2011, <NAME> (http://tdistler.com) * All rights reserved. * * The BSD License * * 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 abo...
1,352
1,573
<reponame>Playfloor/bonobo import datetime import time import bonobo def extract(): """Placeholder, change, rename, remove... """ for x in range(60): if x: time.sleep(1) yield datetime.datetime.now() def get_graph(): graph = bonobo.Graph() graph.add_chain() return g...
192
2,151
// 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 "net/third_party/quiche/src/quic/core/http/quic_client_promised_info.h" #include <memory> #include <string> #include "net/third_party/quiche/sr...
4,929
3,508
package com.fishercoder; import com.fishercoder.solutions._1716; import org.junit.BeforeClass; import org.junit.Test; import static org.junit.Assert.assertEquals; public class _1716Test { private static _1716.Solution1 solution1; @BeforeClass public static void setup() { solution1 = new _1716.So...
256
1,014
<gh_stars>1000+ { "MVID.ME": { "short_name": "M VIDEO PJSC", "long_name": "Public Joint Stock Company M.video", "summary": "Public Joint Stock Company M.video, together with its subsidiaries, operates a chain of consumer electronic outlets and online internet stores in Russia. The compan...
395
3,655
// Copyright (c) 2021 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 // // Unless required...
2,243
892
<reponame>github/advisory-database { "schema_version": "1.2.0", "id": "GHSA-87m6-hv55-49cw", "modified": "2022-05-13T01:21:09Z", "published": "2022-05-13T01:21:09Z", "aliases": [ "CVE-2019-0007" ], "details": "The vMX Series software uses a predictable IP ID Sequence Number. This leaves the system as ...
523
679
<reponame>Grosskopf/openoffice<filename>main/sw/source/ui/shells/textglos.cxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional inf...
1,910
2,338
# -*- Python -*- vim: set ft=python ts=4 sw=4 expandtab tw=79: # Configuration file for the 'lit' test runner. import os import site site.addsitedir(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'utils')) from libcxx.test.googlebenchmark import GoogleBenchmark # Tell pylint that we know config and lit_conf...
343
4,569
package com.brianway.learning.java.jvm.classloading; /** * Created by brian on 17/3/19. * 非主动使用类字段演示 * 1. 静态字段只有直接定义这个字段的类才会被初始化 * 2. 通过数组来定义引用类,不会触发类的初始化 * (-XX:+TraceClassLoading,对于 HotSpot 虚拟机可观察到子类的加载) */ public class NoInitialization { public static void main(String[] args) { System.out.println(...
305
9,959
// version 14: import lombok.NonNull; record NonNullOnRecord2(@NonNull String a) { public NonNullOnRecord2 { System.out.println("Hello"); } }
55
30,023
<reponame>domwillcode/home-assistant """Tests for the wake_on_lan component."""
28
326
/*------------------------------------------------------------------------- * * execRemote.c * * Functions to execute commands on remote Datanodes * * * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group * Portions Copyright (c) 2010-2012 Postgres-XC Development Group * * * IDENTIFICATIO...
58,219
742
# -*- coding: utf-8 -*- import os.path as osp from threading import current_thread from icrawler.utils import ThreadPool class Feeder(ThreadPool): """Base class for feeder. A thread pool of feeder threads, in charge of feeding urls to parsers. Attributes: thread_num (int): An integer indicatin...
1,410
451
<reponame>Shlpeng/Qualitis /* * Copyright 2019 WeBank * * 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...
1,823
1,469
// // RawMessage.cpp // WechatExporter // // Created by Matthew on 2020/10/13. // Copyright © 2020 Matthew. All rights reserved. // #include "RawMessage.h" #ifdef _WIN32 #include <atlstr.h> #endif bool convertUnknownField(const UnknownField &uf, std::string& value) { if (uf.type() == UnknownField::TYPE_LENG...
2,770
679
<reponame>Grosskopf/openoffice /************************************************************** * * 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...
5,247
348
{"nom":"Chaveignes","circ":"4ème circonscription","dpt":"Indre-et-Loire","inscrits":463,"abs":216,"votants":247,"blancs":27,"nuls":8,"exp":212,"res":[{"nuance":"REM","nom":"<NAME>","voix":113},{"nuance":"LR","nom":"<NAME>","voix":99}]}
94
2,151
#!/usr/bin/env python # Copyright (c) 2011 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. """SiteCompare component to handle bulk scrapes. Invokes a list of browsers and sends them to a list of URLs, saving the rendered ...
2,158
3,483
<reponame>extremenelson/sirius package info.ephyra.questionanalysis; import info.ephyra.nlp.VerbFormConverter; import info.ephyra.nlp.semantics.Predicate; import info.ephyra.nlp.semantics.ontologies.Ontology; import info.ephyra.nlp.semantics.ontologies.WordNet; import info.ephyra.util.StringUtils; import java.util.Ar...
4,391
2,360
<gh_stars>1000+ # Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class RAneufinder(RPackage): """Analysis of Copy Number Variation in Single-Cell...
997
372
package com.kongzue.baseframeworkdemo.fragment; import android.content.Intent; import android.graphics.Paint; import android.net.Uri; import android.view.View; import android.widget.TextView; import com.google.android.material.floatingactionbutton.FloatingActionButton; import com.kongzue.baseframework.BaseApp; import...
1,541
348
<gh_stars>100-1000 {"nom":"Chadenac","circ":"4ème circonscription","dpt":"Charente-Maritime","inscrits":362,"abs":211,"votants":151,"blancs":11,"nuls":2,"exp":138,"res":[{"nuance":"REM","nom":"<NAME>","voix":73},{"nuance":"LR","nom":"<NAME>","voix":65}]}
101
2,400
<gh_stars>1000+ /* * Copyright 2013 Red Hat, Inc. and/or its affiliates. * * 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,052
14,668
<filename>components/viz/common/features.cc // 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 "components/viz/common/features.h" #include <string> #include "base/command_line.h" #include "base/...
4,859
1,253
<reponame>JD235/algorithms /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.sg.hacktoberfest; import java.util.Scanner; /** * * @author Gina */ public class FactorialF...
762
1,088
<reponame>amznero/graph-learn /* Copyright 2020 Alibaba Group Holding Limited. 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 Unles...
954
1,539
<reponame>Ayudjj/mvp # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ A collection of only the requests that fuzzing will be performed on """ from __future__ import print_function import time import engine.core.requests import engine.primitives as primitives class FuzzingRequestCollection...
1,563
1,144
<gh_stars>1000+ // SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2016 Rockchip Electronics Co., Ltd */ #include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dm/uclass-internal.h> #include <asm/arch/periph.h> #include <power/regulator.h> #include <spl.h> int board_init(void) { struct udevice ...
899
364
<reponame>arenadata/vertx-jooq package io.github.jklingsporn.vertx.jooq.generate; import io.vertx.core.json.JsonArray; import org.jooq.*; import org.jooq.impl.DSL; import org.junit.BeforeClass; import java.util.function.Function; /** * @author jensklingsporn */ public abstract class AbstractPostgresInsertReturning...
615
3,271
<filename>transpose.py #! /usr/bin/env python3 """transpose 2d array [[a,b], [c,d], [e,f]] -> [[a,c,e], [b,d,f]]""" original = [['a', 'b'], ['c', 'd'], ['e', 'f']] transposed = zip(*original) print(list(transposed))
99
1,875
<filename>testSrc/unit/io/flutter/testing/ProjectFixture.java /* * 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. */ package io.flutter.testing; import com.intellij.openapi.module.Module; import com.int...
240
2,151
<filename>chromecast/browser/cast_content_browser_client.h<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. #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ #define CHROMECAST_BRO...
3,309
655
package com.samourai.whirlpool.client.wallet; import com.samourai.http.client.AndroidHttpClient; import com.samourai.http.client.IHttpClient; import com.samourai.wallet.api.APIFactory; import com.samourai.wallet.api.backend.BackendApi; import com.samourai.wallet.api.backend.BackendServer; import com.samourai.wallet.ap...
3,134
785
<gh_stars>100-1000 /* * Copyright © 2019 Apple Inc. and the ServiceTalk project 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...
581
764
<reponame>641589523/token-profile<gh_stars>100-1000 {"symbol": "FERA","address": "0x539F3615C1dBAfa0D008d87504667458acBd16Fa","overview":{"en": "FERA provides trading strategies for crypto traders and investors, focusing on low-cap projects. The full service includes a trading plan that covers funds management and shor...
197
1,801
#pragma once #include <vector> #include <memory> #include "defines.h" #include "trajectory.h" #include "TrackerSettings.h" /// /// \brief The CTracker class /// class BaseTracker { public: BaseTracker() = default; BaseTracker(const BaseTracker&) = delete; BaseTracker(BaseTracker&&) = delete; BaseTrac...
315
5,169
<filename>Specs/b/c/6/ZLNavigationBar/1.0.5/ZLNavigationBar.podspec.json<gh_stars>1000+ { "name": "ZLNavigationBar", "version": "1.0.5", "summary": "基础导航栏", "description": "提供一个基础的导航栏视图,结构简单。", "homepage": "https://gitee.com/ZLPublicKits/ZLNavigationBar", "license": "MIT", "authors": { "Mr.Zhao": "<EM...
469
824
package com.me.silencedut.nbaplus.app; import android.app.Application; import android.content.Context; //import com.squareup.leakcanary.LeakCanary; //import com.squareup.leakcanary.RefWatcher; import im.fir.sdk.FIR; /** * Created by SilenceDut on 2015/11/28. */ public class App extends Application { private s...
254
16,461
// Copyright 2018-present 650 Industries. All rights reserved. #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <ABI43_0_0ExpoModulesCore/ABI43_0_0EXSingletonModule.h> NS_ASSUME_NONNULL_BEGIN @protocol ABI43_0_0EXRemoteNotificationPermissionDelegate - (void)handleDidFinishRegisteringForRemoteNotifi...
339
60,067
#include <torch/csrc/distributed/autograd/rpc_messages/autograd_metadata.h> namespace torch { namespace distributed { namespace autograd { AutogradMetadata::AutogradMetadata( int64_t autogradContextId_, int64_t autogradMessageId_) : autogradContextId(autogradContextId_), autogradMessageId(autogradMe...
149
1,599
# This code is part of Qiskit. # # (C) Copyright IBM 2021 # # 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 or derivative wor...
290
60,067
#pragma once #include <c10/util/SmallVector.h>
20
348
{"nom":"Saint-Etienne-de-Mer-Morte","circ":"9ème circonscription","dpt":"Loire-Atlantique","inscrits":1129,"abs":656,"votants":473,"blancs":28,"nuls":17,"exp":428,"res":[{"nuance":"MDM","nom":"<NAME>","voix":246},{"nuance":"LR","nom":"<NAME>","voix":182}]}
104
15,577
<filename>src/Access/IAccessEntity.cpp #include <Access/IAccessEntity.h> namespace DB { bool IAccessEntity::equal(const IAccessEntity & other) const { return (name == other.name) && (getType() == other.getType()); } }
79
754
/*- * << * UAVStack * == * Copyright (C) 2016 - 2017 UAVStack * == * 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 r...
1,063
323
# flake8: noqa """ # 追加/更新股票除权除息 """ import os import sys import json from typing import Any from collections import OrderedDict import pandas as pd vnpy_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..')) if vnpy_root not in sys.path: sys.path.append(vnpy_root) os.environ["VNPY_TES...
2,023
3,428
{"id":"00174","group":"spam-2","checksum":{"type":"MD5","value":"94a8f3a8826ff937c38640422784ce86"},"text":"From <EMAIL> Mon Jun 24 17:42:12 2002\nReturn-Path: mccarts@mindspring.com\nDelivery-Date: Wed Mar 13 00:58:21 2002\nReceived: from tomts20-srv.bellnexxia.net (tomts20.bellnexxia.net\n [209.226.175.74]) by do...
623
353
package com.github.trang.druid.example.jpa.model; import java.io.Serializable; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import lombok.Data; /** * C...
270
778
<reponame>clazaro/Kratos import setuptools import os import json import glob import shutil kratos_version = os.environ["KRATOS_VERSION"] def replaceKeyword(str): return str.replace("${KRATOS_VERSION}", kratos_version).replace("${PYTHON}", os.environ["PYTHON"]) def replaceKeywords(stringArray): return list(ma...
1,162
1,330
/* * 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,702
2,338
<gh_stars>1000+ #include <cstdint> struct alignas(64) zmm_t { uint64_t a, b, c, d, e, f, g, h; }; int main() { constexpr zmm_t zmm[] = { { 0x0706050403020100, 0x0F0E0D0C0B0A0908, 0x1716151413121110, 0x1F1E1D1C1B1A1918, 0x2726252423222120, 0x2F2E2D2C2B2A2928, 0x3736353433323130, 0x3F3E3D3C3B3...
5,407
980
from django.test import TestCase as DjangoTestCase class TestCase(DjangoTestCase): def __init__(self, *args, **kwargs): if not hasattr(self, 'assertItemsEqual'): self.assertItemsEqual = self.assertCountEqual super(TestCase, self).__init__(*args, **kwargs)
115
418
<reponame>ThakurKarthik/expo<filename>ios/Pods/Headers/Private/Bolts/BFAppLinkReturnToRefererView_Internal.h<gh_stars>100-1000 ../../../Bolts/Bolts/iOS/Internal/BFAppLinkReturnToRefererView_Internal.h
79
5,813
<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 * ...
4,246
890
<reponame>light1021/asylo /* * * Copyright 2018 Asylo authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
1,170
2,268
<filename>sp/src/game/client/c_slideshow_display.h //========= Copyright Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ // //=============================================================================// #ifndef C_SLIDESHOW_DISPLAY_H #define C_SLIDESHOW_DISPLAY_H #include ...
641
335
{ "word": "Weatherman", "definitions": [ "A man who broadcasts a description and forecast of weather conditions." ], "parts-of-speech": "Noun" }
64
1,444
package mage.abilities.keyword; import mage.constants.Zone; import mage.abilities.MageSingleton; import mage.abilities.StaticAbility; import java.io.ObjectStreamException; /** * * @author <EMAIL> */ public class ReachAbility extends StaticAbility implements MageSingleton { private static final ReachAbility ...
251
1,830
<filename>atomix/cluster/src/main/java/io/atomix/raft/storage/log/entry/ConfigurationEntry.java /* * Copyright 2015-present Open Networking Foundation * Copyright © 2020 camunda services GmbH (<EMAIL>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in complia...
744
1,314
<filename>spring-boot-redis/src/main/java/cn/javastack/springboot/redis/pojo/User.java package cn.javastack.springboot.redis.pojo; import lombok.Data; import java.util.Date; import java.util.List; import java.util.Map; /** * 微信公众号:Java技术栈 */ @Data public class User { private int id; private String name; ...
177
903
<filename>jphp-core/tests/org/develnext/jphp/core/compiler/jvm/ArgUnpackTest.java<gh_stars>100-1000 package org.develnext.jphp.core.compiler.jvm; import org.develnext.jphp.zend.ext.ZendExtension; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; i...
673
819
""" Build a scaler normalized ``pandas.DataFrame`` from an existing ``pandas.DataFrame`` """ import sklearn.preprocessing as preproc import analysis_engine.consts as ae_consts import spylunking.log.setup_logging as log_utils log = log_utils.build_colorized_logger( name=__name__) def build_scaler_dataset_from_df...
907
348
<reponame>chamberone/Leaflet.PixiOverlay<gh_stars>100-1000 {"nom":"Veynes","circ":"1ère circonscription","dpt":"Hautes-Alpes","inscrits":2449,"abs":1453,"votants":996,"blancs":126,"nuls":113,"exp":757,"res":[{"nuance":"REM","nom":"Mme <NAME>","voix":465},{"nuance":"LR","nom":"Mme <NAME>","voix":292}]}
122
402
<reponame>xdenser/flow<gh_stars>100-1000 package com.vaadin.client; import java.util.concurrent.atomic.AtomicInteger; import org.junit.Assert; import org.junit.Test; import com.vaadin.client.UILifecycle.UIState; public class UILifecycleTest { UILifecycle lifecycle = new UILifecycle(); @Test public voi...
903
1,144
// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2007 Semihalf * * Written by: <NAME> <<EMAIL>> * * This file contains routines that fetch data from ARM-dependent sources * (bd_info etc.) */ #include <config.h> #include <linux/types.h> #include <api_public.h> #include <asm/u-boot.h> #include <asm/global...
314
305
from __future__ import print_function import os import lldb import time from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil from lldbsuite.test import configuration class TestIntelPTSimpleBinary(TestBase): mydir = TestBase.compute_mydir(__file__) ...
866
722
package org.ahocorasick.interval; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class IntervalNode { private enum Direction {LEFT, RIGHT} private IntervalNode left; private IntervalNode right; private int point; private List<Intervalable> intervals = new...
1,966
5,447
<reponame>Kh4L/gluon-cv # pylint: disable=wildcard-import """Video action recognition, HMDB51 dataset. http://serre-lab.clps.brown.edu/resource/hmdb-a-large-human-motion-database/ """ from __future__ import absolute_import from .classification import *
87
558
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2021 Micron Technology, Inc. All rights reserved. */ #ifndef HSE_CONFIG_ARGV_H #define HSE_CONFIG_ARGV_H #include <stddef.h> #include <hse_ikvdb/kvdb_cparams.h> #include <hse_ikvdb/kvdb_rparams.h> #include <hse_ikvdb/kvs_cparams.h> #include <hse_ikvdb/k...
929
389
<filename>gosu-lab/src/main/java/editor/IGosuPanel.java package editor; import gw.lang.parser.IGosuParser; import gw.lang.parser.IScriptPartId; import gw.lang.parser.ISymbolTable; import gw.lang.parser.ITypeUsesMap; import gw.lang.reflect.IType; import javax.swing.*; import java.io.IOException; /** * Copyright 2010...
235
2,071
/* * Copyright 2019 WeBank * 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, ...
330
430
<reponame>asheraryam/stabilizer #include <stdio.h> void ctor() __attribute__((constructor)); void ctor() { printf("Hello Constructor!\n"); } int main(int argc, char** argv) { printf("Hello World!\n"); return 0; }
87
1,336
<filename>demo/demo-multi-service-center/demo-multi-service-center-client/src/main/java/org/apache/servicecomb/demo/multiServiceCenterClient/Application.java /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for...
1,321
1,817
package test.org.springdoc.api.app104; /** * The type Having pk. */ public class HavingPK { }
35
3,010
#include "shared-bindings/board/__init__.h" STATIC const mp_rom_map_elem_t board_module_globals_table[] = { CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS { MP_ROM_QSTR(MP_QSTR_TOUCH), MP_ROM_PTR(&pin_PA07) }, { MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PA15) }, { MP_ROM_QSTR(MP_QSTR_SWITCH), MP_ROM_PTR...
203
841
<filename>jbpm-test-coverage/src/test/java/org/jbpm/test/JbpmTestCase.java /* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * 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 * * ...
1,907
1,483
/* * Copyright Lealone Database Group. * Licensed under the Server Side Public License, v 1. * Initial Developer: zhh */ package org.lealone.server.protocol.replication; import java.io.IOException; import org.lealone.net.NetInputStream; import org.lealone.net.NetOutputStream; import org.lealone.server.protocol.Pa...
1,175
1,374
<reponame>norzak/jsweet package def.dom; public class MSAppAsyncOperation extends EventTarget { public DOMError error; public java.util.function.Function<Event,Object> oncomplete; public java.util.function.Function<Event,Object> onerror; public double readyState; public Object result; native pub...
394
1,281
import sys import time import numpy as np import pandas as pd import datetime as dt import multiprocessing as mp class MultiProcessingFunctions: """ This static functions in this class enable multi-processing""" def __init__(self): pass @staticmethod def lin_parts(num_atoms, num_threads): """ This function...
1,723
310
{ "name": "SE2416H", "description": "A 24 inch LCD monitor.", "url": "https://www.dell.com/en-us/shop/dell-24-monitor-se2416h/apd/210-afvh/monitors-monitor-accessories" }
77
1,155
/******************************************************************** * COPYRIGHT: * Copyright (c) 2002-2006, International Business Machines Corporation and * others. All Rights Reserved. ******************************************************************** * * @author <NAME> * @author <NAME> */ /** * Test C...
465
986
<filename>ibis/backends/base_sql/identifiers.py<gh_stars>100-1000 # Copyright 2014 Cloudera 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...
1,287
506
// https://cses.fi/problemset/task/1132 #include <iostream> #include <vector> using namespace std; typedef vector<int> vi; typedef vector<vi> vvi; vi dp1, dp2, p1, p2, m; vvi g; void dfs(int u, int p) { int a = 0, b = 0, c, d; for (auto z:g[u]) { if (z == p) continue; dfs(z, u); if (dp1[z] >= b) { ...
635
310
/* !@ MIT License Copyright (c) 2020 Skylicht Technology CO., LTD Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify...
1,324
1,125
<reponame>ZenMX/elasticsearch<gh_stars>1000+ /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2....
4,383
3,372
<gh_stars>1000+ /* * 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 * * ...
19,456
450
/*------------------------------------------------------------------------- * * hashsearch.c * search code for postgres hash tables * * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION * $Postg...
3,787
315
<filename>src/Tools/Code/LDPC/Update_rule/MS/Update_rule_MS.hxx #ifndef _USE_MATH_DEFINES #define _USE_MATH_DEFINES #endif #include <algorithm> #include <limits> #include <cmath> #include "Tools/Code/LDPC/Update_rule/MS/Update_rule_MS.hpp" namespace aff3ct { namespace tools { template <typename R> Update_rule_MS<R> :...
982
305
<filename>libc/test/src/string/strtok_test.cpp //===-- Unittests for strtok ---------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM...
1,111
335
{ "word": "Matte", "definitions": [ "An impure product of the smelting of sulphide ores, especially those of copper or nickel." ], "parts-of-speech": "Noun" }
74
365
# -*- coding: utf-8 -*- import logging import subprocess import os CLIENT_DEPLOY_ENTRY = os.getenv("CLIENT_DEPLOY_ENTRY") ENV_PYTHON = os.getenv("ENV_PYTHON") logger = logging.getLogger('quota') def get_quota_summary(cluster_name): res = [] try: cmd_user = [ENV_PYTHON, CLIENT_DEPLOY_ENTRY, 'shell', 'hdfs', cl...
549
458
{ "class": "AcceptEventAction", "entity": "_earthquake_ether_inspector", "option": { "event_uuid": "69672de4-c4ef-4d47-8e17-562a81cf4def" }, "type": "action", "uuid": "dcef3c78-27f0-40fb-abd2-4d6ee93a103c" }
114
348
{"nom":"Moncourt","circ":"4ème circonscription","dpt":"Moselle","inscrits":56,"abs":20,"votants":36,"blancs":2,"nuls":1,"exp":33,"res":[{"nuance":"LR","nom":"<NAME>","voix":20},{"nuance":"REM","nom":"<NAME>","voix":13}]}
89
1,442
<filename>escher/src/tab_view_data_source.cpp #include <escher/tab_view_data_source.h> namespace Escher { TabViewDataSource::TabViewDataSource() : m_activeChildIndex(-1), m_selectedChildIndex(-1) { } int TabViewDataSource::activeTab() const { return m_activeChildIndex; } int TabViewDataSource::selectedTab() c...
186
369
/* * Copyright © 2019 <NAME>, 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 agree...
1,865