max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
1,350
<reponame>ppartarr/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.microsoft.azure.keyvault.cryptography; /** * Abstract base class for all Algorithm objects. * */ public abstract class Algorithm { private final String name; /...
289
646
<gh_stars>100-1000 /* Copyright (c) 2017 TOSHIBA Digital Solutions Corporation This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
5,901
1,681
<filename>easyreport-membership/src/main/java/com/easytoolsoft/easyreport/membership/service/impl/EventServiceImpl.java package com.easytoolsoft.easyreport.membership.service.impl; import java.util.Date; import com.easytoolsoft.easyreport.membership.data.EventRepository; import com.easytoolsoft.easyreport.membership....
592
333
class Test_DescrOperation: def test_nonzero(self): space = self.space assert space.nonzero(space.w_True) is space.w_True assert space.nonzero(space.w_False) is space.w_False assert space.nonzero(space.wrap(42)) is space.w_True assert space.nonzero(space.wrap(0)) is space.w_F...
505
4,054
<filename>searchcore/src/tests/proton/metrics/metrics_engine/metrics_engine_test.cpp<gh_stars>1000+ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/metrics/metricset.h> #include <vespa/searchcore/proton/metrics/attribute_metrics.h> #include <vesp...
1,018
345
<reponame>ChenZhangg/dmix /* * Copyright (C) 2004 <NAME> * Copyright (C) 2010-2014 The MPDroid Project * * All Rights Reserved. * * 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 c...
1,627
892
{ "schema_version": "1.2.0", "id": "GHSA-7v3x-h7r2-34jv", "modified": "2022-01-20T16:18:28Z", "published": "2022-01-21T18:43:05Z", "aliases": [ ], "summary": "Insufficient Session Expiration in Pterodactyl API", "details": "### Impact\nA vulnerability exists in Pterodactyl Panel `<= 1.6.6` that could a...
1,249
519
// // ConfigViewController.h // iOSBlogReader // // Created by everettjf on 16/4/9. // Copyright © 2016年 everettjf. All rights reserved. // #import <UIKit/UIKit.h> #import "EEViewController.h" @interface ConfigViewController : EEViewController @end
91
2,206
/* * * Copyright (c) 2006-2020, Speedment, 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 requi...
7,059
679
<filename>main/framework/inc/acceleratorconst.h<gh_stars>100-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 * ...
1,637
704
package org.jgroups.demos; import org.jgroups.client.StompConnection; import org.jgroups.util.Util; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.List; /** * Chat client using STOMP to talk to other clients */ public class StompChat implements StompConnecti...
6,889
3,269
// Time: O(n) // Space: O(n) class Solution { public: long long subArrayRanges(vector<int>& nums) { int64_t result = 0; vector<int> stk; for (int i = 0; i <= size(nums); ++i) { const int x = (i < size(nums)) ? nums[i] : numeric_limits<int>::max(); while (!empty(stk)...
611
348
<filename>docs/data/leg-t1/018/01802028.json {"nom":"Berry-Bouy","circ":"2ème circonscription","dpt":"Cher","inscrits":926,"abs":489,"votants":437,"blancs":7,"nuls":2,"exp":428,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":166},{"nuance":"LR","nom":"Mme <NAME>","voix":79},{"nuance":"COM","nom":"<NAME>","voix":68},{"...
262
1,745
<filename>Source/Plugins/bsfNullRenderAPI/BsNullCommandBuffer.h //************************************ bs::framework - Copyright 2018 <NAME> **************************************// //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// #pragma once ...
356
4,339
/* * 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 ...
1,959
1,342
{ "databaseAuthVariableOverride": { "some#key": "some#val" }, "databaseURL": "https://hipster-chat.firebaseio.mock", "projectId": "hipster-chat-mock", "storageBucket": "hipster-chat.appspot.mock" }
80
4,200
package com.dtolabs.rundeck.core.authentication.tokens; import java.util.Date; import java.util.Set; public class SimpleTokenBuilder implements AuthenticationToken { private String token; private Set<String> authRolesSet; private String uuid; private String creator; private String ownerName; private Auth...
619
11,616
/** * Copyright © 2016-2021 The Thingsboard 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 applicab...
3,811
359
/* Copyright 2019 The Matrix.org Foundation C.I.C 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...
3,508
1,737
<gh_stars>1000+ { "include": ["src", "types"], "compilerOptions": { "target": "es5", "module": "esnext", "lib": ["dom", "esnext"], "importHelpers": true, "resolveJsonModule": true, "importsNotUsedAsValues": "remove", "declaration": false, "noEmit": true, "stripInternal": true, ...
310
1,144
package de.metas.i18n.impl; /* * #%L * de.metas.util * %% * Copyright (C) 2015 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at...
1,241
463
<filename>src/app/rv-sys.cc // // rv-sys.cc // #include <cstdio> #include <cstdlib> #include <cstring> #include <cassert> #include <cinttypes> #include <csignal> #include <csetjmp> #include <cerrno> #include <cmath> #include <cctype> #include <cwchar> #include <climits> #include <cfloat> #include <cfenv> #include <li...
5,763
5,079
<reponame>kokosing/hue<gh_stars>1000+ ############################################################################## # # Copyright (c) 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should a...
14,449
5,169
{ "name": "YINMapping", "version": "1.0.0", "summary": "YINMapping ios kvo 响应编程", "description": "ios kvo 响应编程 使用便捷", "homepage": "https://github.com/wangyin1/YINMapping", "license": "MIT (LICENSE)", "authors": { "wangyin1": "" }, "platforms": { "ios": "9.0" }, "source": { "git": "http...
276
1,091
/* * Copyright 2015-present Open Networking Foundation * * 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...
6,865
2,350
import unreal_engine as ue from unreal_engine.structs import KAggregateGeom mesh = ue.get_selected_assets()[0] mesh.BodySetup.AggGeom = KAggregateGeom() mesh.static_mesh_generate_kdop26() mesh.static_mesh_generate_kdop18() mesh.static_mesh_generate_kdop10x() mesh.static_mesh_generate_kdop10y() mesh.static_mesh_gene...
146
313
<gh_stars>100-1000 {"status_id":8045695227396096,"text":"Boktijiw ru mavaru kincu ra bimup vupnof jopiz huref mero hodum ze zo fi ekejuac jekkur hoku nun. #vuwas","user":{"user_id":3237519353184256,"name":"<NAME>","screen_name":"@azfig","created_at":119047738,"followers_count":9,"friends_count":28,"favourites_count":2...
189
1,339
import pickle from datetime import datetime, timedelta from pathlib import Path from cryptography.fernet import Fernet from robin_stocks.tda.globals import DATA_DIR_NAME, PICKLE_NAME from robin_stocks.tda.helper import (request_data, set_login_state, update_session) from robin_stoc...
2,627
1,929
from .res_layer import ResLayer from .res_i3d_layer import ResI3DLayer __all__ = [ 'ResLayer', 'ResI3DLayer' ]
48
335
<reponame>Safal08/Hacktoberfest-1 { "word": "Vertiginous", "definitions": [ "Extremely high or steep.", "Relating to or affected by vertigo." ], "parts-of-speech": "Adjective" }
95
4,772
package example.repo; import example.model.Customer887; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer887Repository extends CrudRepository<Customer887, Long> { List<Customer887> findByLastName(String lastName); }
83
469
/******************************************************************************* * Copyright 2019 See AUTHORS file * * 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.apac...
4,053
12,278
<gh_stars>1000+ //////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2020 ArangoDB GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the "License"); /// you may not use this file except in compliance with the License. /// You may ...
505
445
<filename>processors/ARM/gdb-8.3.1/gdb/gnu-nat.h /* Common things used by the various *gnu-nat.c files Copyright (C) 1995-2019 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Licens...
1,901
4,303
// This file simulates the actual hexagon DMA driver functions to run // the DMA Examples on host machine. The definitions in this file are // a weak reference so that these will be called only in case of // unavailability of actual DMA functions. #include "HalideRuntime.h" #define WEAK __attribute__((weak)) #include ...
5,626
384
<reponame>sekikn/tez<filename>tez-mapreduce/src/main/java/org/apache/tez/mapreduce/hadoop/InputSplitInfoMem.java<gh_stars>100-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 *...
1,954
361
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------# # Copyright © 2015-2016 VMware, Inc. All Rights Reserved. # # # # Licensed under the BSD 2-Clause License (the “License...
2,575
2,472
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #include <jni.h> #include <string> #include "rocksdb/comp...
469
605
package com.sohu.tv.mq.cloud.service; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.sohu.tv.mq.cloud.bo.TopicTraffic; impor...
1,554
1,738
<reponame>jeikabu/lumberyard /* * 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 provid...
1,286
545
/* * PSP Software Development Kit - https://github.com/pspdev * ----------------------------------------------------------------------- * Licensed under the BSD license, see LICENSE in PSPSDK root for details. * * pspvfpu.h - Prototypes for the VFPU library * * Copyright (c) 2005 <NAME> <<EMAIL>> * */ #include...
1,936
1,831
<filename>logdevice/common/configuration/EpochMetaDataVersion.cpp /** * Copyright (c) 2017-present, Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include "logdevice/c...
273
679
<gh_stars>100-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 license...
4,410
2,151
<reponame>zipated/src #!/usr/bin/env python # Copyright 2016 The Shaderc 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/...
1,182
1,529
<gh_stars>1000+ /* * Copyright (c) 2016 咖枯 <<EMAIL> | <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 ...
1,268
528
from opytimizer.optimizers.evolutionary import FOA # One should declare a hyperparameters object based # on the desired algorithm that will be used params = { 'life_time': 6, 'area_limit': 30, 'LSC': 1, 'GSC': 1, 'transfer_rate': 0.1 } # Creates a FOA optimizer o = FOA(params=params)
118
2,313
<gh_stars>1000+ /* * Copyright (c) 2017-2018,2021 Arm Limited. * * SPDX-License-Identifier: MIT * * 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...
4,228
32,544
package com.baeldung.lagom.helloworld.weather.api; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Random; public enum WeatherStats { STATS_RAINY("Going to Rain, Take Umbrella"), STATS_HUMID("Going to be very humid, Take Water"); private final String message; ...
264
330
<gh_stars>100-1000 # Copyright 2021, 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
2,051
679
/************************************************************** * * 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 y...
1,742
12,887
<gh_stars>1000+ package com.zhisheng.connectors.cassandra.streaming; import com.datastax.driver.mapping.annotations.Column; import com.datastax.driver.mapping.annotations.Table; import lombok.AllArgsConstructor; /** * Desc: * Created by zhisheng on 2019-08-04 * blog:http://www.54tianzhisheng.cn/ * 微信公众号:zhisheng ...
419
4,071
<filename>blaze/blaze/operator/op/reshape_op.h /* * \file reshape_op.h * \brief The reshape operation */ #pragma once #include "blaze/operator/operator.h" #include "blaze/common/exception.h" #include "blaze/common/types.h" namespace blaze { template <class Context> class ReshapeOp : public Operator<Context> { p...
684
531
/** * Copyright (c) 2011-2021, JFXtras * 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 * notice, this list of condi...
1,378
922
// tag::include[] package org.hibernate.validator.referenceguide.chapter12.purelycomposed; //end::include[] import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.Target; import jakarta.validation.Constraint; import jakarta.validation.OverridesAttribute; import jaka...
504
3,294
<reponame>BaruaSourav/docs<filename>samples/snippets/cpp/VS_Snippets_Misc/NVC_MFC_StateCollection/cpp/resource.h //{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by StateCollection.rc // #define IDP_OLE_INIT_FAILED 100 #define IDS_MAIN_TOOLBAR 101 #define ID...
1,052
464
<reponame>sailxjx/DI-engine from .competitive_rl_env import CompetitiveRlEnv
29
631
<reponame>Ar-2/activejdbc package org.javalite.validation.length; /** * The attribute length must be between the given minimum and maximum length (inclusive). */ public class Range implements LengthOption { private int min; private int max; private Range(int min, int max) { this.min = min; ...
316
3,702
<filename>gpcontrib/orafce/utility.c /* This code implements one part of functonality of free available library PL/Vision. Please look www.quest.com Original author: <NAME>, 1996 - 2002 PostgreSQL implementation author: <NAME>, 2006-2018 This module is under BSD Licence History: 1.0. first public ver...
1,958
3,866
module kotlinx.serialization.hocon { requires transitive kotlin.stdlib; requires transitive kotlinx.serialization.core; requires transitive typesafe.config; exports kotlinx.serialization.hocon; }
74
1,405
package com.tencent.tmsecure.module.antitheft; import com.tencent.tmsecure.common.ManagerCreator; public final class Proguard { public final void callAllMethods() { AntitheftManager antitheftManager = (AntitheftManager) ManagerCreator.getManager(AntitheftManager.class); antitheftManager.getHelperN...
191
5,378
<reponame>st--/jupytext import pytest import jupytext from jupytext.compare import compare from .utils import list_notebooks @pytest.mark.parametrize("nb_file", list_notebooks("Rmd")) def test_identity_write_read(nb_file, no_jupytext_version_number): """Test that writing the notebook with ipynb, and read again,...
360
5,169
<filename>Specs/9/c/d/LBTestCode/1.2.1/LBTestCode.podspec.json { "name": "LBTestCode", "version": "1.2.1", "summary": "just do a demo that we can learn how to create a cocoapods personal", "description": "这只是一个破洞仓库简单的demo,并没有实际的意思just do a demo that \t\t\t\twe can learn how,just do a demo that we can learn how"...
338
648
<reponame>mehrdad-shokri/fluxcapacitor #ifndef _UEVENT_H #define _UEVENT_H struct uevent; typedef int (*uevent_callback_t)(struct uevent *uevent, int sd, int mask, void *userdata); struct uevent { int max_slots; int curr_slot; int used_slots; struct { uevent_callback_t callback; void *userdata; } fdmap[__...
326
6,224
<reponame>maxvankessel/zephyr /** * Copyright (c) 2018 Linaro * Copyright (c) 2020 ATL Electronics * * SPDX-License-Identifier: Apache-2.0 */ #define DT_DRV_COMPAT inventek_eswifi_uart #include "eswifi_log.h" LOG_MODULE_DECLARE(LOG_MODULE_NAME); #include <zephyr.h> #include <kernel.h> #include <device.h> #inclu...
2,599
2,151
<reponame>zipated/src // Copyright 2017 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/sync/sessions/sync_sessions_web_contents_router.h" #include "chrome/browser/sync/sessions/sync_sessions_web...
1,064
376
<reponame>cjsmeele/Kvasir<filename>Lib/Chip/LPC11Cxx_v9.hpp #pragma once #include <Chip/CM0/NXP/LPC11Cxx_v9/I2C.hpp> #include <Chip/CM0/NXP/LPC11Cxx_v9/WWDT.hpp> #include <Chip/CM0/NXP/LPC11Cxx_v9/UART.hpp> #include <Chip/CM0/NXP/LPC11Cxx_v9/CT16B0.hpp> #include <Chip/CM0/NXP/LPC11Cxx_v9/CT16B1.hpp> #include <Chip/CM0...
572
318
{ "variants": { "type=bottom": { "model": "techreborn:block/storage/aluminum_storage_block_slab" }, "type=double": { "model": "techreborn:block/storage/aluminum_storage_block" }, "type=top": { "model": "techreborn:block/storage/aluminum_storage_block_slab_top" } } }
120
4,879
<reponame>smartyw/organicmaps #pragma once #include "topography_generator/utils/contours.hpp" #include "geometry/latlon.hpp" #include <algorithm> #include <deque> #include <list> #include <vector> #include <unordered_map> namespace topography_generator { class ContoursBuilder { public: ContoursBuilder(size_t leve...
779
1,034
package com.android.reverse.smali; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors...
1,845
10,876
<reponame>eerimoq/vcpkg<gh_stars>1000+ { "name": "argagg", "version-string": "0.4.6", "port-version": 1, "description": "A simple C++11 command line argument parser" }
72
892
{ "schema_version": "1.2.0", "id": "GHSA-555r-hp4v-qj62", "modified": "2021-12-28T00:01:11Z", "published": "2021-12-22T00:00:26Z", "aliases": [ "CVE-2021-44423" ], "details": "An out-of-bounds read vulnerability exists when reading a BMP file using Open Design Alliance (ODA) Drawings Explorer before 2...
385
575
<reponame>jason-fox/Fast-RTPS // Copyright 2020 Proyectos y Sistemas de Mantenimiento SL (eProsima). // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licens...
6,958
5,250
<reponame>jiandiao/flowable-engine /* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
1,071
2,272
// // HttpRequest.h // TSLocationManager // // Created by <NAME> on 2019-10-31. // Copyright © 2019 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> #import "HttpResponse.h" @interface HttpRequest : NSObject @property(nonatomic) id requestData; @property(nonatomic) NSURL *url; +(void) execute:(N...
170
678
/** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices */ #import <GeoServices/XXUnknownSuperclass.h> __attribute__((visibility("hidden"))) @interface GEOThrottleState : XXUnknownSuperclass { unsigned _requestCount; // 4 = 0x4 double...
316
406
/* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * 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 *...
2,109
2,151
<filename>app/src/main/java/org/chromium/shape_detection/InterfaceRegistrar.java<gh_stars>1000+ // 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 org.chromium.shape_detection; import org.chromium...
485
421
<reponame>hamarb123/dotnet-api-docs // <snippet1> using namespace System; using namespace System::IO; int main() { // Open an existing file, or create a new one. FileInfo^ fi = gcnew FileInfo( "temp.txt" ); // Determine the full path of the file just created. DirectoryInfo^ di = fi->Dire...
414
475
/* * Copyright (C) 2020 The zfoo 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 agreed t...
685
679
/************************************************************** * * 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 y...
1,029
1,362
from __future__ import absolute_import, print_function, division, unicode_literals from xcessiv.presets.cvsetting import k_fold extraction_default_source = """\"\"\"In this code block, you must define the function `extract_{}_dataset`. `extract_{}_dataset` must take no arguments and return a tuple (X, y), where X is ...
429
348
<reponame>chamberone/Leaflet.PixiOverlay {"nom":"Versigny","circ":"1ère circonscription","dpt":"Aisne","inscrits":328,"abs":165,"votants":163,"blancs":11,"nuls":4,"exp":148,"res":[{"nuance":"FN","nom":"<NAME>","voix":75},{"nuance":"REM","nom":"<NAME>","voix":73}]}
107
5,169
<filename>Specs/b/b/1/trunk2/0.0.3/trunk2.podspec.json { "name": "trunk2", "version": "0.0.3", "summary": "开源高效处理圆角的扩展,包括UIImageView、UIView、UIButton、UIImage的扩展API,可根据图片颜色生成图片带任意圆角,可给UIButton根据不同状态处理图片", "description": "支持生成带任意圆角的图片,支持背景色设置以解决图层混合问题;支持UIButton根据不同状态设置图片及背景图片;支持图片裁剪成任意大小及添加任意圆角且不会离屏渲染;支持根据颜色生成图片且...
645
8,107
"""Functionality related to displaying the profile report in Jupyter notebooks.""" import html import uuid from pathlib import Path from typing import TYPE_CHECKING, Union if TYPE_CHECKING: from IPython.core.display import HTML from IPython.lib.display import IFrame from pandas_profiling import ProfileReport ...
816
530
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The contents of this file are subject to the terms of either the Universal Permissive License * v 1.0 as shown at http://oss.oracle.com/licenses/upl * * or the follo...
2,574
405
<filename>src/main/java/org/jeecgframework/web/demo/service/impl/test/JeecgNoteServiceImpl.java package org.jeecgframework.web.demo.service.impl.test; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.jeecgframework.web.demo.service.test.JeecgNo...
174
348
{"nom":"Sainte-Luce-sur-Loire","circ":"5ème circonscription","dpt":"Loire-Atlantique","inscrits":10640,"abs":4442,"votants":6198,"blancs":74,"nuls":32,"exp":6092,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":2671},{"nuance":"FI","nom":"Mme <NAME>","voix":878},{"nuance":"SOC","nom":"M. <NAME>","voix":775},{"nuance":"...
331
7,220
<gh_stars>1000+ # coding=utf-8 # Copyright 2021 The Trax 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 app...
379
617
<reponame>RamboWu/pokerstove<gh_stars>100-1000 /** * Copyright (c) 2012 <NAME>. All rights reserved. * $Id$ */ #ifndef PENUM_SIMPLE_DECK_H_ #define PENUM_SIMPLE_DECK_H_ #include <algorithm> #include <array> #include <functional> #include <pokerstove/peval/Card.h> #include <pokerstove/peval/CardSet.h> #include <poke...
1,925
797
<filename>src/main/com/intellij/lang/jsgraphql/types/schema/idl/SchemaTypeExtensionsChecker.java /* The MIT License (MIT) Copyright (c) 2015 <NAME> and Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "So...
8,767
1,006
/**************************************************************************** * libs/libnx/nxtk/nxtk_fillcircletoolbar.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 regarding co...
834
333
{ "name": "react-swipe-views-bower-brunch-example", "version": "0.0.12", "description": "An implementation example of react-swipe-views built with Bower and Brunch", "main": "app/scripts/main.js", "scripts": { "install": "bower install", "start": "npm install && brunch watch", "build": "brunch bui...
241
13,846
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. //------------------------------------------------------------------------------------------------- // <summary> // Windows Installer XML CustomAction utility library CaScript functions // </summary> //--...
5,690
1,127
<reponame>bhcsayx/libfuzzer-workshop<gh_stars>1000+ #!/usr/bin/env python2 import os import subprocess WORK_DIR = 'work' def checkOutput(s): if 'Segmentation fault' in s or 'error' in s.lower(): return False else: return True corpus_dir = os.path.join(WORK_DIR, 'corpus') corpus_filenames = os.listdir(cor...
303
315
<reponame>g-r-a-n-t/py-libp2p import pytest from libp2p.security.noise.messages import NoiseHandshakePayload from libp2p.tools.factories import noise_conn_factory, noise_handshake_payload_factory DATA_0 = b"data_0" DATA_1 = b"1" * 1000 DATA_2 = b"data_2" @pytest.mark.trio async def test_noise_transport(nursery): ...
450
3,212
/* * 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 ...
1,000
387
""" ################################################################################################## # Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved. # Filename : LSTM.py # Abstract : Implementations of Bidirectional LSTM # Current Version: 1.0.0...
1,585
444
from angr import concretization_strategies import angr class InstrumentationMixin: def enable_custom_concretize(self, state): """ obsolete :param state: :return: """ print('[+] switching current concretization_strategy to Kuafffp...') state.inspect.address_c...
1,701
3,263
<filename>criteria/common/test/org/immutables/criteria/backend/JavaBeanNamingTest.java /* * Copyright 2019 Immutables Authors and 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 Licens...
983
4,538
/* * Copyright (C) 2015-2017 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdlib.h> #include "k_api.h" #if AOS_COMP_DEBUG #include "aos/debug.h" extern uint32_t debug_task_id_now(); extern void debug_cpu_stop(void); #endif #if (RHINO_CONFIG_MM_TLF > 0) extern k_mm_region_t g_mm_region[]; extern i...
12,587