max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
4,996
from .framing import * from .jsonrpc import * from .socks import * from .session import * from .util import * __all__ = (framing.__all__ + jsonrpc.__all__ + socks.__all__ + session.__all__ + util.__all__)
118
707
<reponame>jasondaming/allwpilib // 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. package edu.wpi.first.wpilibj2.command; import java.util.Collections; import java.util....
1,027
1,109
# -*- coding: utf-8 -*- import logging import os import traceback import sqlalchemy.exc import tornado.web from tornadotoad import api from tornadotoad import my from gryphon.lib.models.emeraldhavoc.orderbook import Orderbook logger = logging.getLogger(__name__) P3P_POLICY = u"""\ CP="Like Facebook, This App does n...
2,129
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...
716
341
[ { "name": "pnp-list-formatting-generic-start-flow-conditionally", "reponame": "generic-start-flow-conditionally", "source": "pnp", "title": "Create a button to conditionally launch a Flow for the selected item", "shortDescription": "You can use column formatting to create buttons that, when clic...
1,265
4,205
<reponame>EMellau/reactor-core /* * Copyright (c) 2016-2021 VMware 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. * You may obtain a copy of the License at * * https://www.apache...
2,562
4,537
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
2,243
2,025
/* Tencent is pleased to support the open source community by making PhxPaxos available. Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the...
717
348
<gh_stars>100-1000 {"nom":"Bonneville","circ":"3ème circonscription","dpt":"Haute-Savoie","inscrits":7536,"abs":4315,"votants":3221,"blancs":140,"nuls":59,"exp":3022,"res":[{"nuance":"LR","nom":"M. <NAME>","voix":1944},{"nuance":"REM","nom":"M. <NAME>","voix":1078}]}
111
2,702
/* * Copyright (C) 2015 Square, 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 agre...
714
5,169
<gh_stars>1000+ { "name": "VAMPAdmobAdapter", "version": "7.66.0.0", "summary": "AdMob Adapter for VAMP.", "description": "VAMP is Video Ad Mediation Platform, including AdMob and more ad networks. The AdMob adapter helps you to use AdMob with VAMP.", "license": { "type": "Copyright", "text": "Copyrig...
335
5,813
<filename>extensions-core/azure-extensions/src/test/java/org/apache/druid/firehose/azure/StaticAzureBlobStoreFirehoseFactoryTest.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 ...
1,092
3,012
/** @file Defines the USB Host Controller PPI that provides I/O services for a USB Host Controller that may be used to access recovery devices. These interfaces are modeled on the UEFI 2.3 specification EFI_USB2_HOST_CONTROLLER_PROTOCOL. Refer to section 16.1 of the UEFI 2.3 Specification for more informat...
5,944
432
<reponame>lambdaxymox/DragonFlyBSD<filename>contrib/gcc-4.7/gcc/tree-sra.c /* Scalar Replacement of Aggregates (SRA) converts some structure references into scalar references, exposing them to the scalar optimizers. Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc. Contributed by <NAME> <<...
59,257
851
<reponame>NNstorm/MinkowskiEngine # Copyright (c) 2020 NVIDIA CORPORATION. # Copyright (c) 2018-2020 <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 restriction, i...
1,517
1,056
<filename>classification/configs/pvt_v2/pvt_v2_b2_li.py cfg = dict( model='pvt_v2_b2_li', drop_path=0.1, clip_grad=None, output_dir='checkpoints/pvt_v2_b2_li', )
95
348
{"nom":"Lieuran-lès-Béziers","circ":"6ème circonscription","dpt":"Hérault","inscrits":1105,"abs":539,"votants":566,"blancs":42,"nuls":17,"exp":507,"res":[{"nuance":"FN","nom":"Mme <NAME>","voix":281},{"nuance":"REM","nom":"Mme <NAME>","voix":226}]}
105
629
/* Copyright (c) 2017, United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * * All rights reserved. * * The Astrobee platform is licensed under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with t...
1,084
14,668
<gh_stars>1000+ /* vim: set ts=8 sw=8 noexpandtab: */ // qcms // Copyright (C) 2009 Mozilla Foundation // Copyright (C) 1998-2007 <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 Soft...
433
3,066
/* * Copyright (C) 2008 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
2,875
778
<reponame>lkusch/Kratos<filename>kratos/utilities/atomic_utilities.h // | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // /...
3,364
1,668
<gh_stars>1000+ from unittest.mock import patch from ddt import data, ddt, unpack from django.test import TransactionTestCase from ralph.assets.models import ConfigurationClass, Ethernet from ralph.assets.signals import custom_field_change from ralph.back_office.tests.factories import BackOfficeAssetFactory from ralp...
2,054
458
import sys import numpy as np import logging import pandas as pd import platform import pytest print(sys.path) logging.basicConfig(level=logging.DEBUG) # Function to check fall back to sklearn def test_drf_regressor_backupsklearn(backend='auto'): df = pd.read_csv("./open_data/simple.txt", delim_whitespace=Tru...
5,219
892
{ "schema_version": "1.2.0", "id": "GHSA-446p-4x7p-gxv7", "modified": "2022-05-02T06:20:12Z", "published": "2022-05-02T06:20:12Z", "aliases": [ "CVE-2010-1210" ], "details": "intl/uconv/util/nsUnicodeDecodeHelper.cpp in Mozilla Firefox before 3.6.7 and Thunderbird before 3.1.1 inserts a U+FFFD sequenc...
518
1,682
<reponame>haroldl/rest.li<gh_stars>1000+ /* Copyright 2015 Coursera 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 app...
5,451
2,151
// Copyright (c) 2016 The WebM project authors. All Rights Reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source // tree. An additional intellectual property rights grant can be found // in the file PATENTS. All contributing projec...
2,259
6,992
/* * Copyright 2002-2016 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...
713
663
<gh_stars>100-1000 /* * Copyright 2017 StoneHui * * 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,243
1,738
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
1,016
7,194
<reponame>CheerfulSatchel/fluentui<filename>packages/react-examples/.storybook/tsconfig.json { "extends": "../../../tsconfig.base.json", "compilerOptions": { "jsx": "preserve", "noEmit": true, "allowJs": true, "checkJs": true, "allowSyntheticDefaultImports": true, "baseUrl": "../../..", ...
256
1,131
package com.simibubi.create.content.contraptions.fluids.pipes; import java.util.Optional; import com.simibubi.create.content.contraptions.relays.elementary.BracketedTileEntityBehaviour; import com.simibubi.create.foundation.tileEntity.TileEntityBehaviour; import net.minecraft.block.Block; import net.minecraft.block....
835
1,444
<reponame>GabrielSturtevant/mage package mage.cards.d; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.SpellCastControllerTriggeredAbility; import mage.abilities.effects.common.ReturnToHandTargetEff...
829
311
/* * Jim - SDL extension * * Copyright 2005 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
7,134
837
<reponame>federa7675/Dawn package me.saket.dank.utils; import android.annotation.TargetApi; import android.app.ActionBar; import android.app.Activity; import android.os.Build; import android.view.View; @TargetApi(Build.VERSION_CODES.JELLY_BEAN) class SystemUiHelperImplJB extends SystemUiHelper.SystemUiHelperImpl impl...
1,205
388
// -*- mode:java; encoding:utf-8 -*- // vim:set fileencoding=utf-8: // @homepage@ package example; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; import java.awt.event.WindowEvent; import java.beans.PropertyVetoException; import java...
1,711
839
/** * 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 m...
758
5,169
{ "name": "CarbonKit", "version": "2.1.1", "summary": "CarbonKit - iOS Components (Obj-C & Swift)", "description": "CarbonKit is an open source iOS library that includes powerful and beauty UI controllers. I started developing these controllers inspired by Android Material Design.", "homepage": "https://githu...
301
772
<reponame>ryansloan/code-dot-or { "ga-IE": { "data": { "title": { "BigEvent": "An Teagmhas Mór", "BigEvent_2018": "An Teagmhas Mór", "BinaryBracelets": "<NAME>", "BinaryBracelets_2018": "Bráislé<NAME>énártha", "BinaryImages": "<NAME>", "BinaryImages_2018": "<N...
1,768
311
<filename>deployment/src/test/java/io/quarkiverse/rabbitmqclient/util/TestConfig.java package io.quarkiverse.rabbitmqclient.util; import java.util.Optional; import javax.enterprise.context.ApplicationScoped; import org.eclipse.microprofile.config.inject.ConfigProperty; import io.quarkiverse.rabbitmqclient.RabbitMQC...
1,192
3,967
// Copyright (c) 2019-2021, NVIDIA CORPORATION & 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. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // /...
2,127
552
# !/usr/bin/env python # Copyright (c) 2019 Computer Vision Center (CVC) at the Universitat Autonoma de # Barcelona (UAB). # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. # # Modified by <NAME> on 20 April 2020 import argparse import datetime impo...
7,367
12,252
<gh_stars>1000+ /* * Copyright 2020 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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,887
625
package java.security; public final class AllPermission extends Permission { public AllPermission(String name, String actions) { super(""); } public AllPermission() { super(""); } @Override public String getActions() { return null; } @Override public boolean implies(Permission permission) { return ...
106
903
/* * 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 ...
493
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Chars","circ":"1ère circonscription","dpt":"Val-d'Oise","inscrits":1308,"abs":835,"votants":473,"blancs":43,"nuls":23,"exp":407,"res":[{"nuance":"REM","nom":"<NAME>","voix":220},{"nuance":"LR","nom":"<NAME>","voix":187}]}
111
935
/* * Copyright 2016-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...
2,776
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 IOS_CHROME_BROWSER_UI_AUTHENTICATION_SIGNIN_USER_SIGNIN_USER_SIGNIN_COORDINATOR_H_ #define IOS_CHROME_BROWSER_UI_AU...
896
315
package krasa.grepconsole.action; import com.intellij.execution.impl.ConsoleBuffer; import com.intellij.execution.process.ProcessHandler; import com.intellij.ide.util.PropertiesComponent; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.diagnostic.Logger; import com.intellij.openapi....
2,806
3,156
{ "metadata": { "dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v3.json", "dbt_version": "0.21.1" } }
79
2,151
// 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 MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_ #define MEDIA_CAST_NET_RTCP_RTCP_BUILDER_H_ #include <stddef.h> #include <stdint.h> #include <list> #include...
758
432
# Copyright (c) Facebook, Inc. and 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 # # Unless required by applicable law or ...
1,027
23,220
package com.alibaba.otter.canal.client.kafka; import java.util.Map; import org.apache.kafka.common.serialization.Deserializer; import com.alibaba.otter.canal.client.CanalMessageDeserializer; import com.alibaba.otter.canal.protocol.Message; /** * Kafka Message类的反序列化 * * @author machengyuan @ 2018-6-12 * @version...
269
639
<gh_stars>100-1000 //***************************************************************************** // Copyright 2017-2020 Intel Corporation // // 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,789
2,777
/* Copyright 2018-2021 MultiMC Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
334
2,159
{ "name": "ngx-scenejs", "version": "1.1.1", "repository": { "type": "git", "url": "https://github.com/daybrush/scenejs/tree/master/packages/ngx-scenejs" }, "keywords": [ "scene", "scenejs", "keyframes", "timeline", "animate", "animation", "css", "requestAnimationFrame"...
319
5,102
package com.nepxion.discovery.plugin.configcenter.nacos.adapter; /** * <p>Title: Nepxion Discovery</p> * <p>Description: Nepxion Discovery</p> * <p>Copyright: Copyright (c) 2017-2050</p> * <p>Company: Nepxion</p> * @author <NAME> * @version 1.0 */ import java.util.concurrent.ExecutorService; import javax.anno...
1,068
522
<reponame>konny0311/algorithms-nutshell-2ed package algs.blog.searching.gperf; import algs.blog.searching.search.ICollectionSearch; /* C code produced by gperf version 3.0.3 */ /* Command-line: ./src/gperf ../two.keys */ /* Computed positions: -k'1-4,6-9' */ /* Converted to Java by <NAME>. .*/ public class G...
23,705
1,906
<gh_stars>1000+ // // NSString+Tangram.h // Tangram // // Copyright (c) 2017-2018 Alibaba. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (Tangram) - (NSString *)trim; @end
82
442
<reponame>lukefelsberg/ObEngine #include <Bindings/obe/Events/Keys/Keys.hpp> #include <Input/InputButtonMonitor.hpp> #include <Bindings/Config.hpp> namespace obe::Events::Keys::Bindings { void LoadClassStateChanged(sol::state_view state) { sol::table KeysNamespace = state["obe"]["Events"]["Keys"].get...
253
14,443
/* * Copyright (C) 2016 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
502
1,444
package mage.cards.v; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.common.CounterUnlessPaysEffect; import m...
544
875
/** * 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...
3,509
523
<gh_stars>100-1000 #include "BuildOrder.h" using namespace BOSS; BuildOrder::BuildOrder() : _typeCount(128, 0) { } void BuildOrder::add(const ActionType & type) { BOSS_ASSERT((_buildOrder.size() == 0) || (type.getRace() == _buildOrder.back().getRace()), "Cannot have a build order with multiple races"); ...
2,303
5,208
<filename>src/main/java/examples/cli/AnnotatedCli.java /* * Copyright (c) 2011-2019 Contributors to the Eclipse Foundation * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the Apac...
382
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 UI_GFX_MAC_IO_SURFACE_HDR_METADATA_H_ #define UI_GFX_MAC_IO_SURFACE_HDR_METADATA_H_ #include <IOSurface/IOSurface....
459
5,169
{ "name": "BZipCompression", "version": "1.0.2", "license": "Apache2", "summary": "An Objective-C interface for the BZip2 compression algorithm", "homepage": "https://github.com/blakewatters/BZipCompression", "authors": { "<NAME>": "<EMAIL>" }, "source": { "git": "https://github.com/blakewatters...
215
4,484
"""Sample task script.""" import tensorflow as tf import tensorlayer as tl # tf.logging.set_verbosity(tf.logging.DEBUG) tl.logging.set_verbosity(tl.logging.DEBUG) # connect to database db = tl.db.TensorHub(ip='localhost', port=27017, dbname='temp', project_name='tutorial') # load dataset from database X_train, y_t...
935
688
<reponame>AhmedLeithy/Recognizers-Text<filename>Python/libraries/recognizers-date-time/recognizers_date_time/date_time/chinese/dateperiod_parser.py<gh_stars>100-1000 # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. from typing import Optional from datetime import datetime...
12,581
2,151
<filename>net/third_party/quiche/src/quic/test_tools/quic_framer_peer.cc // Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/third_party/quiche/src/quic/test_tools/quic_framer_peer.h" #in...
6,421
32,467
/* (c) 2007,2008 <NAME> */ #ifndef FPM_SIGNALS_H #define FPM_SIGNALS_H 1 #include <signal.h> int fpm_signals_init_main(void); int fpm_signals_init_child(void); int fpm_signals_get_fd(void); int fpm_signals_init_mask(void); int fpm_signals_block(void); int fpm_signals_child_block(void); int fpm_signals_unblock(void)...
167
1,006
<gh_stars>1000+ /**************************************************************************** * arch/arm/src/sama5/hardware/sam_lcdc.h * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional informatio...
61,861
326
<filename>DSP/fp_pid_contr/C/xapp_pid.h /******************************************************************************* Vendor: Xilinx Associated Filename: xapp_pid.h Purpose: HLS Floating Point PID Controller Revision History: 23 March, 2016 ***************************************************************************...
883
1,831
<reponame>mickvav/LogDevice /** * Copyright (c) 2018-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. */ #include "logdevice/common/UnorderedMapWithLRU.h" #include...
1,640
1,006
<reponame>eenurkka/incubator-nuttx /**************************************************************************** * mm/iob/iob_pack.c * * 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 ...
1,486
4,036
<filename>python/ql/test/library-tests/frameworks/jmespath/taint_test.py import jmespath def test_taint(): untrusted_data = TAINTED_DICT safe_expression = jmespath.compile("foo.bar") ensure_tainted( jmespath.search("foo.bar", untrusted_data), # $ tainted jmespath.search("foo.bar", data=un...
435
1,327
<gh_stars>1000+ /******************************************************************************* * Copyright 2020 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * htt...
554
879
<reponame>qianfei11/zstack<filename>plugin/vxlan/src/main/java/org/zstack/network/l2/vxlan/vxlanNetworkPool/APIDeleteVniRangeEvent.java package org.zstack.network.l2.vxlan.vxlanNetworkPool; import org.zstack.header.message.APIEvent; import org.zstack.header.rest.RestResponse; /** * Created by weiwang on 03/05/2017. ...
271
879
package org.zstack.core.config; import org.zstack.header.message.APIEvent; import org.zstack.header.rest.RestResponse; @RestResponse public class APIResetGlobalConfigEvent extends APIEvent { public APIResetGlobalConfigEvent(String apiId) { super(apiId); } public APIResetGlobalConfigEvent() { super(null)...
187
325
package com.box.l10n.mojito.service.pollableTask; import com.box.l10n.mojito.entity.PollableTask; import com.box.l10n.mojito.json.ObjectMapper; import com.box.l10n.mojito.service.assetExtraction.ServiceTestBase; import com.box.l10n.mojito.test.TestIdWatcher; import java.util.Iterator; import static org.junit.Assert.as...
3,130
849
<filename>milkman-rest/src/main/java/milkman/ui/plugin/rest/HttpOptionsPluginProvider.java package milkman.ui.plugin.rest; import lombok.Data; import milkman.ui.main.options.OptionDialogBuilder; import milkman.ui.main.options.OptionDialogPane; import milkman.ui.plugin.OptionPageProvider; import milkman.ui.plugin.Optio...
666
1,091
<reponame>meodaiduoi/onos<gh_stars>1000+ {"md": { "mdName": "DomainA", "mdNameType": "CHARACTERSTRING", "mdLevel": "LEVEL3", "mdNumericId": 1 } }
73
355
<gh_stars>100-1000 # Copyright (c) OpenMMLab. All rights reserved. import os.path as osp import platform import random import string import tempfile import numpy as np import pytest from PIL import Image from mmselfsup.datasets.utils import check_integrity, rm_suffix, to_numpy def test_to_numpy(): pil_img = Ima...
532
571
package com.handsomezhou.contactssearch.activity; import android.content.Context; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentActivity; import android.support.v4.app.FragmentManager; import android.view.Window; import com.handsomezhou.contactssearch.R; publ...
608
1,821
/****************************************************************************** * * Copyright (c) 2019, the Perspective Authors. * * This file is part of the Perspective library, distributed under the terms of * the Apache License 2.0. The full license can be found in the LICENSE file. * */ #pragma once #includ...
689
3,269
<reponame>Priyansh2/LeetCode-Solutions // Time: O(n * (n/k)!) // Space: O(n) class Solution { public: string longestSubsequenceRepeatedK(string s, int k) { vector<int> cnts(26); for (const auto& c : s) { ++cnts[c - 'a']; } string new_s; for (const auto& c : s) {...
920
1,822
// Copyright (c) 2016 <NAME> // // SPDX-License-Identifier: BSL-1.0 // 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) // This benchmark provides an equivalent for the benchmarks published at // https://github.com...
1,488
1,799
<reponame>wanglei91/Paddle-Lite // Copyright (c) 2020 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/L...
2,394
344
/** * ListOfOne.java * * Copyright (c) 2013-2016, F(X)yz * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * ...
3,450
879
package com.bookstore.repository; import com.bookstore.entity.BaseEntity; import java.util.ArrayList; import java.util.List; import java.util.Optional; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.domain.Sort; import org.springframework.d...
1,195
5,649
<reponame>burned42/devilutionX /** * @file interfac.h * * Interface of load screens. */ #pragma once #include <cstdint> #include "utils/ui_fwd.h" namespace devilution { #define UI_OFFSET_Y ((Sint16)((gnScreenHeight - 480) / 2)) enum interface_mode : uint16_t { // clang-format off WM_DIABNEXT...
487
335
{ "word": "Compatible", "definitions": [ "A computer that can use software designed for another make or type." ], "parts-of-speech": "Noun" }
65
533
<filename>saber/core/impl/arm/arm_impl.cpp #include "core/tensor.h" #include "core/env.h" namespace anakin{ namespace saber{ #ifdef USE_ARM_PLACE //! target wrapper template struct TargetWrapper<ARM, __host_target>; //! ARM Buffer template class Buffer<ARM>; //! ARM Tensor template class Tensor<ARM>; //! ARM Env ...
156
711
<reponame>shachindrasingh/apiman /* * Copyright 2018 <NAME> * * 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...
1,109
965
<reponame>bobbrow/cpp-docs<gh_stars>100-1000 CView *pActiveView = ((CFrameWnd *)m_pMainWnd)->GetActiveView(); m_pOldView = pActiveView; m_pNewView = (CView *)new CNewView; if (NULL == m_pNewView) return FALSE; CDocument *pCurrentDoc = ((CFrameWnd *)m_pMainWnd)->GetActiveDocument(); // Initialize a CCreateContext t...
473
481
<filename>program_translator.py class ProgramTranslator(object): def __init__(self, programDict, maxArity): self.programDict = programDict self.maxArity = maxArity self.maxStack = 0 def functionToKey(self, function, withValInputs = True): valInputs = "" if withValInput...
1,700
4,054
"""Data collectors.""" import json import structlog log = structlog.get_logger(__name__) class BuildDataCollector: """ Build data collector. Collect data from a runnig build. """ def __init__(self, environment): self.environment = environment self.build = self.environment.bui...
4,415
411
/* * 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,816
1,144
/** * */ package de.metas.payment.esr.spi; import org.compiere.model.I_C_BPartner; import org.compiere.model.I_C_Invoice; import de.metas.payment.esr.model.I_ESR_ImportLine; /** * @author cg * */ public interface IESRLineHandler { /** * <ul> * checks if the partner of the invoice was previously in the org...
353
872
<filename>523. Continuous Subarray Sum.py<gh_stars>100-1000 #!/usr/bin/python3 """ Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to the multiple of k, that is, sums up to n*k where n is also an integer. Exam...
669
659
<filename>src/main/java/com/sharksharding/util/mail/MailBean.java /* * Copyright 2015-2101 gaoxianglong * * 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/l...
586