max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/iTunesStoreUI.framework/iTunesStoreUI */ #import <iTunesStoreUI/UITableViewDelegate.h> #import <iTunesStoreUI/iTunesStoreUI-Structs.h> #import <iTunesStoreUI/SUViewController.h> #import <iTunesStoreUI/UITableViewData...
1,734
536
#include "simple.h" static inline struct simplefs_super_block *SIMPLEFS_SB(struct super_block *sb) { return sb->s_fs_info; } static inline struct simplefs_inode *SIMPLEFS_INODE(struct inode *inode) { return inode->i_private; }
88
464
package dev.fiki.forgehax.api.cmd.settings.collections; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import dev.fiki.forgehax.api.cmd.AbstractSettingCollection; import dev.fiki.forgehax.api.cmd.IParentCommand; import dev.fiki.forgehax.api.cmd.argument.IArgument; import dev.fiki.forgehax.api.cm...
1,558
561
////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2018, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * R...
1,386
764
<gh_stars>100-1000 {"symbol": "bCEO","address": "0x19cA83a13b4C4BE43FA82c5E415E16f1D86f57F7","overview":{"en": ""},"email": "<EMAIL>","website": "https://bitceo.io/","state": "NORMAL","links": {"blog": "https://medium.com/bitceo-io","twitter": "https://twitter.com/bitceo_io","telegram": "https://t.me/bitCEO_io","github...
146
14,668
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef EXTENSIONS_BROWSER_API_IDLE_IDLE_API_CONSTANTS_H_ #define EXTENSIONS_BROWSER_API_IDLE_IDLE_API_CONSTANTS_H_ namespace extensions { namespace ...
221
5,238
#include "../../lv_examples.h" #if LV_USE_CHART && LV_DRAW_COMPLEX && LV_BUILD_EXAMPLES static void add_data(lv_timer_t * t) { lv_obj_t * chart = t->user_data; lv_chart_series_t * ser = lv_chart_get_series_next(chart, NULL); lv_chart_set_next_value(chart, ser, lv_rand(10, 90)); uint16_t p = lv_chart...
615
724
<reponame>ashqal/ChromeLikeSwipeLayout<filename>chromelikeswipelayout/src/main/java/com/asha/AnimationListenerAdapter.java package com.asha; import android.view.animation.Animation; /** * Created by hzqiujiadi on 15/12/6. * hzqiujiadi <EMAIL> */ public class AnimationListenerAdapter implements Animation.AnimationL...
183
5,813
/* * 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 ...
2,608
892
<gh_stars>100-1000 { "schema_version": "1.2.0", "id": "GHSA-gj8g-jfxx-vxc7", "modified": "2022-02-12T00:01:02Z", "published": "2022-02-10T00:00:31Z", "aliases": [ "CVE-2021-37852" ], "details": "ESET products for Windows allows untrusted process to impersonate the client of a pipe, which can be levera...
435
892
{ "schema_version": "1.2.0", "id": "GHSA-629c-fg8h-8j2m", "modified": "2022-05-02T03:16:58Z", "published": "2022-05-02T03:16:58Z", "aliases": [ "CVE-2009-0608" ], "details": "Integer overflow in the showLog function in fake_log_device.c in liblog in Open Handset Alliance Android 1.0 allows attackers t...
448
1,808
#include "QtWrapper.h" QtWrapper::QtWrapper( int updateRate_Hz, int display, int pixelDecimation, int cropLeft, int cropRight, int cropTop, int cropBottom ) : _timer(this), _grabber(display, cropLeft, cropRight, cropTop, cropBottom) { _grabber.setFramerate(updateRate_Hz); _g...
469
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.autoconfigure.b2c; import org.springframework.context.annotation.Bean; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.se...
589
435
{ "copyright_text": null, "description": "", "duration": 1497, "language": "eng", "recorded": "2020-07-08", "related_urls": [ { "label": "Conference schedule", "url": "https://www.scipy2020.scipy.org/schedule" } ], "speakers": [ "<NAME>" ], "tags": [], "thumbnail_url": "htt...
263
2,650
<filename>acme/agents/jax/ail/losses_test.py # Copyright 2018 DeepMind Technologies 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...
1,280
4,174
import os from time import sleep import logging import records from prometheus_client import CollectorRegistry, start_http_server, ProcessCollector from explorer_python_api.ExplorerDumper import ExplorerDumper EXPORTER_PORT = 7001 POLL_TIME = 20 # Slot duration def explorerDumperInit(logger): metrics_registry ...
1,522
3,084
#include "Mp_Precomp.h" #if WPP_SOFTWARE_TRACE #include "P2P_Build_PublicAction.tmh" #endif #include "P2P_Internal.h" #if (P2P_SUPPORT == 1) //----------------------------------------------------------------------------- // Local //------------------------------------------------------------------------...
13,908
589
/* * Copyright (c) 2019 The sky 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 by applicable law or a...
1,120
897
<gh_stars>100-1000 import java.util.*; class Min_Element_Rotated_array { public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Enter the elements"); int min = sc.nextInt(); while (sc.hasNextInt()) { int num = sc.nextInt(); ...
268
701
""" An example of using ArUco markers with OpenCV. """ import cv2 import sys import cv2.aruco as aruco import numpy as np from skimage.data import astronaut device = 0 # Back camera try: device = int(sys.argv[1]) # 1 for front camera except IndexError: pass cap = cv2.VideoCapture(device) while cap.isOpened...
926
4,036
<filename>cpp/ql/test/library-tests/pointsto/basic/test.cpp typedef struct { int data[10]; } MyStruct; MyStruct a, b, c, d; MyStruct *p1, *p2, *p3; MyStruct **pp1, **pp2; void use(MyStruct v, ...); void test(int cond) { if (cond) { p1 = &a; } else { p1 = &b; } p2 = p1; // p1, p2 could point to a or b p3...
243
378
/** * 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...
732
1,380
<reponame>kean/DFImageManager // The MIT License (MIT) // // Copyright (c) 2015 <NAME> (github.com/kean). #import "DFImageCaching.h" #import <Foundation/Foundation.h> /*! Memory cache implementation built on top of NSCache. Adds cached entries expiration, automatic cleanup on memory warnings and more. */ @interface ...
241
428
/** * Copyright 2008 - 2015 The Loon Game Engine 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 by appl...
1,918
627
/* Copyright 2020 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ /* Trogdor baseboard-specific configuration */ #include "charger.h" #include "driver/charger/isl923x.h" #include "i2c.h" #include "power.h" /* Wa...
819
697
<filename>book/swidgets/java/examples/clearfield.java import javax.swing.*; import java.awt.FlowLayout; import swidgets.*; import nz.sodium.*; public class clearfield { public static void main(String[] args) { JFrame frame = new JFrame("clearfield"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CL...
275
877
package org.checkerframework.checker.testchecker.disbaruse; import org.checkerframework.common.basetype.BaseTypeChecker; /** * A checker that issues a "disbar.use" error at any use of fields, methods or parameters whose type * is {@code @DisbarUse}. */ public class DisbarUseChecker extends BaseTypeChecker {}
94
1,806
<gh_stars>1000+ # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from typing import cast from pants.backend.docker.goals.package_image import BuiltDockerImage, DockerFieldSet from pants.backend.docker...
380
1,645
/* * Seldon -- open source prediction engine * ======================================= * Copyright 2011-2015 Seldon Technologies Ltd and Rummble Ltd (http://www.seldon.io/) * ********************************************************************************************** * * Licensed under the Apache License, Vers...
941
852
<gh_stars>100-1000 import FWCore.ParameterSet.Config as cms process = cms.Process("TEST") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.CSCFakeGainsConditions = cms.ESSource("CSCFakeGainsConditions") process.prefer("CSCFakeGainsConditions") process.CSCFakePedestalsConditions = cms.ESSource("CSCFakeP...
436
14,668
<gh_stars>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 "chrome/browser/ash/arc/enterprise/arc_snapshot_reboot_notification_impl.h" #include "base/callback.h" #include "base/run_loop.h...
1,381
897
#include <stdio.h> int painters(int * arr, int maxtime, int len, int num) { int time = 0, count = 1; for (int i = 0; i < len; i++) { time += arr[i]; if (time > maxtime) { time = arr[i]; count++; if (count > num) { return 0; } ...
699
350
// // Created by pengfei.zhou on 2019-05-19. // #ifndef APNG4ANDROID_COMMON_H #define APNG4ANDROID_COMMON_H #include <jni.h> #include <android/log.h> #define ADB_LOG_TAG "GifDecoder" #ifdef DEBUG #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, ADB_LOG_TAG, __VA_ARGS__) #define LOGE(...) __android_l...
212
1,124
# Copyright 2019 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
1,592
309
# 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 # distributed under th...
2,418
512
<reponame>bclindner/Kore /* * Copyright 2015 Synced Synapse. 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 *...
1,673
468
#define GLI_INCLUDE_GL_EXT_WINDOW_RECTANGLES enum Main { GL_INCLUSIVE_EXT = 0x8F10, GL_EXCLUSIVE_EXT = 0x8F11, GL_WINDOW_RECTANGLE_EXT = 0x8F12, GL_WINDOW_RECTANGLE_MODE_EXT = 0x8F13, GL_MAX_WINDOW_RECTANGLES_EXT = 0x8F14, GL_NUM_WINDOW_RECTANGLES...
238
312
<gh_stars>100-1000 from typing import Iterable from ics.contentline.container import ParseError, QuotedParamValue, ContentLine, Container from ics.contentline.parser import ParserClass from ics.types import ContainerItem from ics.utils import one Parser = ParserClass() string_to_containers = Parser.string_to_containe...
248
501
<filename>pyscf/lib/dft/grid_basis.h /* Copyright 2014-2018 The PySCF Developers. 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/li...
417
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Molsheim","circ":"6ème circonscription","dpt":"Bas-Rhin","inscrits":6059,"abs":2660,"votants":3399,"blancs":79,"nuls":55,"exp":3265,"res":[{"nuance":"LR","nom":"<NAME>","voix":2429},{"nuance":"MDM","nom":"<NAME>","voix":836}]}
117
304
<reponame>ganlubbq/hobbits #include "usbdevice.h" #include "usbdeviceimporteditor.h" #include <libusb-1.0/libusb.h> #include <iostream> #include <chrono> #include <thread> /** * @brief Construct a new UsbDevice::UsbDevice object and setup the parameters and parameter helper. * */ UsbDevice::UsbDevice() { QList...
7,204
3,100
#include "csf.h" #include "csfimpl.h" /* change the x value of upper left co-ordinate * RputXUL changes the x value of upper left co-ordinate. * returns the new x value of upper left co-ordinate or 0 * case of an error. * * Merrno * NOACCESS */ REAL8 RputXUL( MAP *map, /* map handle */ REAL8 xUL) /* new x va...
205
476
#pragma once #include "types.h" #ifdef __cplusplus extern "C" { #endif /** * Propose new participants to the security group. * * @param data - the buffer containing the packed participants. * @param datalen - size of the packed participants * @pre `data` is a valid pointer to a range of memory at least `datalen` ...
545
370
<filename>pytorch/libs/nnet/transformer/layer_norm.py # -*- coding:utf-8 -*- # Reference: https://github.com/espnet/espnet. import torch class LayerNorm(torch.nn.LayerNorm): """Layer normalization module :param int nout: output dim size :param int dim: dimension to be normalized """ def __init...
329
763
<gh_stars>100-1000 package org.batfish.bddreachability; import static org.batfish.bddreachability.BDDOutgoingOriginalFlowFilterManager.forNetwork; import static org.batfish.bddreachability.EdgeMatchers.edge; import static org.batfish.bddreachability.LastHopOutgoingInterfaceManager.NO_LAST_HOP; import static org.batfis...
11,787
856
// // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // #pragma once #include "IGraphObservable.hpp" #include "Graph.hpp" namespace armnn { template <typename ObservedType> class GraphObservable : public IGraphObservable { public: using Iterator = typename std::list<ObservedType>:...
567
945
// This is core/vnl/vnl_beta.h #ifndef vnl_beta_h_ #define vnl_beta_h_ //: // \file // \brief implementation of the beta function, also called the Euler integral of the first kind // \author <NAME> #include "vnl_gamma.h" #include "vnl/vnl_export.h" #if 1 // implementation via vnl_log_gamma //: Computation of beta ...
432
1,473
# SPDX-License-Identifier: Apache-2.0 import os import sys import unittest import mock_keras2onnx import numpy as np from mock_keras2onnx.proto import keras from os.path import dirname, abspath from onnxconverter_common.onnx_ex import get_maximum_opset_supported sys.path.insert(0, os.path.join(dirname(abspath(__file__...
2,209
1,459
<reponame>Zephon-H/CyberBattleSim<filename>cyberbattle/simulation/environment_generation_test.py<gh_stars>1000+ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ The unit tests for the environment_generation functions """ from collections import Counter from cyberbattle.simulation import...
1,850
861
<reponame>scotthufeng/spring-cloud-gray package cn.springcloud.gray.server.resources.rest.remote; import cn.springcloud.gray.api.ApiRes; import cn.springcloud.gray.model.InstanceStatus; import cn.springcloud.gray.server.module.gray.GrayServerModule; import cn.springcloud.gray.server.module.gray.domain.GrayInstance; im...
532
2,338
// RUN: %clangxx_tsan -O1 %s -o %t // RUN: %run %t 2>&1 | FileCheck %s // RUN: %run %t arg 2>&1 | FileCheck %s #include "java.h" jptr varaddr1_old; jptr varaddr2_old; jptr lockaddr1_old; jptr lockaddr2_old; jptr varaddr1_new; jptr varaddr2_new; jptr lockaddr1_new; jptr lockaddr2_new; void *Thread(void *p) { barrier...
920
377
<filename>src/jpa-engine/core/src/main/java/com/impetus/kundera/proxy/collection/ProxyMap.java /******************************************************************************* * * Copyright 2013 Impetus Infotech. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this fi...
2,228
778
package org.aion.zero.impl.valid; import static org.aion.zero.impl.valid.BlockDetailsValidator.isValidBlock; import static org.mockito.Mockito.when; import com.google.common.truth.Truth; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List;...
5,729
1,858
<reponame>leejimbo/soter<filename>soter-client-demo/app/src/main/java/com/tencent/soter/demo/net/RemoteUploadASK.java /* * Tencent is pleased to support the open source community by making TENCENT SOTER available. * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the BSD ...
1,665
11,396
from awx.main.tests.functional.conftest import * # noqa def pytest_addoption(parser): parser.addoption("--release", action="store", help="a release version number, e.g., 3.3.0") def pytest_generate_tests(metafunc): # This is called for every test. Only get/set command line arguments # if the argument i...
183
478
/* Copyright (c) 2014 Aerys 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, merge, publish, distribute, sublicens...
2,359
5,865
<gh_stars>1000+ /* * Copyright 2021 ThoughtWorks, 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 appli...
1,294
1,899
<reponame>saulocbarreto/bgslibrary #pragma once #include <iostream> #include <opencv2/opencv.hpp> // opencv legacy includes #include <opencv2/core/core_c.h> #include <opencv2/imgproc/imgproc_c.h> namespace bgslibrary { namespace algorithms { namespace vumeter { class TBackground { public...
444
614
<gh_stars>100-1000 [ { "home": "United States", "away": "Ecuador", "homescore": "0", "awayscore": "0" }, { "home": "Orlando City SC", "away": "Philadelphia Union", "homescore": "2", "awayscore": "2" }, { "home": "Sydney FC", "away": "<NAME>", "homescore": "2", "awayscore": "2" }, { "home": "Pumas UNAM", ...
1,751
1,968
# -*- coding: utf-8 -*- class RumpsError(Exception): """A generic rumps error occurred.""" class InternalRumpsError(RumpsError): """Internal mechanism powering functionality of rumps failed."""
63
479
// 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 // // Unless required by applicable ...
4,562
3,062
package com.mapswithme.maps.bookmarks; interface CategoryListCallback { void onAddButtonClick(); void onImportButtonClick(); }
39
350
import tensorflow as tf from tonic.tensorflow import updaters class VRegression: def __init__(self, loss=None, optimizer=None, gradient_clip=0): self.loss = loss or tf.keras.losses.MeanSquaredError() self.optimizer = optimizer or \ tf.keras.optimizers.Adam(lr=1e-3, epsilon=1e-8) ...
4,700
3,428
{"id":"02266","group":"easy-ham-1","checksum":{"type":"MD5","value":"dc8353bea2a93134f0e947ec60106c32"},"text":"From <EMAIL> Fri Oct 4 11:02:21 2002\nReturn-Path: <<EMAIL>>\nDelivered-To: yyyy<EMAIL>assassin.taint.org\nReceived: from localhost (jalapeno [127.0.0.1])\n\tby jmason.org (Postfix) with ESMTP id 8A40816F1F...
467
2,542
<reponame>gridgentoo/ServiceFabricAzure<filename>src/prod/src/data/tstore/VolatileStoreCopyStream.h<gh_stars>1000+ // ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for l...
8,142
396
/* Copyright 2018 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 required by applicable law or agreed to in ...
2,267
6,931
""" Limited dependent variable and qualitative variables. Includes binary outcomes, count data, (ordered) ordinal data and limited dependent variables. General References -------------------- <NAME> and <NAME>. `Regression Analysis of Count Data`. Cambridge, 1998 <NAME>. `Limited-Dependent and Qualitative Vari...
76,293
443
<reponame>oauth-io/oauthd<gh_stars>100-1000 { "settings": { "createApp": { "url": "https://developers.store.qip.ru/applications/new", "image": "config.png" }, "copyingKey": { "url": "https://developers.store.qip.ru/applications" }, "install": { "href": { "provider": "https://qip.ru/", "do...
192
521
<reponame>wk8/elle #include <elle/das/cli.hh> #include <numeric> #include <boost/range/numeric.hpp> // boost::accumulate #include <elle/Duration.hh> #include <elle/Exception.hh> #include <elle/printf.hh> #include <elle/test.hh> using namespace std::literals; ELLE_LOG_COMPONENT("tests.das.cli"); ELLE_DAS_SYMBOL(fo...
8,206
5,169
{ "name": "APLIntroView", "version": "0.4.0", "summary": "This piece of information is pretty invalid", "description": "* APLIntroView uses a single ViewController to extend the launch screen by displaying the launch image \n* or showing a video with configurable options.", "homepage": "https://github.com/app...
348
3,799
/* * Copyright 2019 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...
877
412
/******************************************************************************* * Copyright (c) 2008, 2011 Sonatype Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and ...
2,641
550
/* * Copyright 2016 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 required by a...
697
1,150
package io.confluent.developer; import io.micronaut.configuration.kafka.annotation.KafkaListener; import io.micronaut.configuration.kafka.annotation.OffsetReset; import jakarta.inject.Inject; import org.apache.kafka.clients.consumer.ConsumerRecord; import io.micronaut.configuration.kafka.annotation.Topic; import io.con...
274
1,718
<reponame>popcornell/audio<filename>examples/source_separation/utils/dataset/utils.py from collections import namedtuple from functools import partial from typing import List import torch from torchaudio.datasets import LibriMix from . import wsj0mix Batch = namedtuple("Batch", ["mix", "src", "mask"]) def get_data...
1,547
990
''' Students are asked to stand in non-decreasing order of heights for an annual photo. Return the minimum number of students not standing in the right positions. (This is the number of students that must move in order for all students to be standing in non-decreasing order of height.) Example 1: Input: [1,1,4,2...
301
372
<filename>lsass/server/api/svc_register.c #include "api.h" static DWORD RpcSvcCreateDomainSocketPath( PCSTR pszPath ); static DWORD RpcSvcCreateDirectory( PSTR pszDirName, mode_t DirMode ); static DWORD RpcSvcInitServerBinding( rpc_binding_vector_p_t *ppSrvBinding, PENDPOINT pEndPoints...
3,496
407
package com.alibaba.smart.framework.engine.extendsion.parser.engine; import java.util.Map; import javax.xml.namespace.QName; import com.alibaba.smart.framework.engine.common.util.MapUtil; import com.alibaba.smart.framework.engine.constant.ExtensionElementsConstant; import com.alibaba.smart.framework.engine.model.ass...
541
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 * ...
1,225
412
#include <assert.h> // this is a gcc extension to allow various interfaces #ifdef __GNUC__ typedef unsigned int pid_t; union wait { int whatnot; }; typedef union { int *__ip; union wait *__up; } wait_status_ptr_t __attribute__ ((__transparent_union__)); pid_t wait(wait_status_ptr_t); int w1 () { in...
278
673
<gh_stars>100-1000 package com.tv.ui.metro.idata; import android.content.ContentProvider; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHel...
3,175
569
/* * Copyright (C) 2018-2021 <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...
4,418
3,262
package com.tencent.angel.ps.server.data.handler; import com.tencent.angel.ps.PSContext; import com.tencent.angel.ps.server.data.request.GetRowSplitRequest; import com.tencent.angel.ps.server.data.request.RequestData; import com.tencent.angel.ps.server.data.request.RequestHeader; import com.tencent.angel.ps.server.dat...
376
3,301
<filename>core/src/main/java/com/alibaba/alink/common/sql/builtin/agg/DenseRankUdaf.java package com.alibaba.alink.common.sql.builtin.agg; public class DenseRankUdaf extends BaseRankUdaf { public DenseRankUdaf() { super(); } @Override public void accumulate(RankData rankData, Object... values) { accumulateT...
141
348
# 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 PyNiworkflows(PythonPackage): """Common workflows for MRI (anatomical, functional, diffusi...
1,512
1,399
<filename>test/formtest/manualOverride.json<gh_stars>1000+ { "type": "form", "components": [{ "label": "Number1", "mask": false, "spellcheck": true, "tableView": false, "delimiter": false, "requireDecimal": false, "inputFormat": "plain", "calculateServer": false, "validate": { ...
496
417
<filename>metrics-core-impl/src/test/java/com/alibaba/metrics/FastCompassTest.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 regarding copyright ownership. * The ASF licenses ...
1,366
1,647
<filename>pythran/tests/rosetta/hailstone_sequence.py #from http://rosettacode.org/wiki/Hailstone_sequence#Python #pythran export hailstone(int) #runas hailstone(27) #runas max((len(hailstone(i)), i) for i in range(1,100000)) def hailstone(n): seq = [n] while n>1: n = 3*n + 1 if n & 1 else n//2 ...
157
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. #ifndef CHROME_BROWSER_CHROMEOS_CHROMEBOX_FOR_MEETINGS_CFM_CHROME_SERVICES_H_ #define CHROME_BROWSER_CHROMEOS_CHROMEBOX_FOR...
281
634
/**************************************************************** * 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...
757
711
<reponame>shachindrasingh/apiman<gh_stars>100-1000 /* * Copyright 2017 JBoss 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 * ...
6,285
2,281
<reponame>guigzzz/simple-binary-encoding /* * Copyright 2013-2021 Real Logic Limited. * * 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 *...
4,713
967
<filename>concurrency/src/main/java/com/javaedge/concurrency/example/furure/jdk/CompletionServiceDemo.java package com.javaedge.concurrency.example.furure.jdk; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicReference; /** * @author JavaEdge * @date 2021/4/18 */ public class CompletionServi...
2,082
1,251
package cn.dblearn.blog.common.validator.group; /** * 更新校验组 */ public interface UpdateGroup { }
47
302
<filename>others/SoftwareHEN/SoftwareHEN/main.cpp #include "tabladatos.h" #include "unidadesentrada.h" #include "ventanaprincipal.h" #include <QApplication> #include <QDesktopWidget> #include <QMainWindow> int main(int argc, char *argv[]) { QApplication a(argc, argv); a.setStyle("fusion"); QDesktopWidg...
364
4,182
{ "Align center": "Allineato al centro", "Align left": "Allineato a sinistra", "Align right": "Allineato a destra", "Apply": "Applica", "Attributes": "Attributi", "Bold": "Grassetto", "Bullet list": "Lista puntata", "Cancel": "Annulla", "Clear": "Pulisci", "Code": "Codice", "...
751
876
#pragma once #include <vector> #include "rapidcheck/detail/Results.h" #include "rapidcheck/Maybe.h" #include "rapidcheck/Shrinkable.h" #include "rapidcheck/detail/Property.h" #include "rapidcheck/detail/TestParams.h" #include "rapidcheck/detail/TestListener.h" namespace rc { namespace detail { struct SearchResult {...
908
331
package org.fordes.subview; import cn.hutool.core.util.StrUtil; import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport; import javafx.scene.image.Image; import javafx.stage.Stage; import javafx.stage.StageStyle; import lombok.SneakyThrows; import org.fordes.subview.utils.constants.CommonConstants; import org...
556
778
#ifndef VEXCL_RANDOM_THREEFRY_HPP #define VEXCL_RANDOM_THREEFRY_HPP /* The MIT License Copyright (c) 2012-2018 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restrictio...
3,524
5,250
/* 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 * distributed...
2,910