max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
816
/* * Copyright 2016-2020 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
1,188
597
/* * Copyright (c) 2022 Baidu.com, 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 ...
554
634
/* * Copyright 2000-2010 JetBrains s.r.o. * 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 ...
602
10,504
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <faiss/gpu/utils/MemorySpace.h> #include <faiss/impl/FaissAssert.h> #include <cuda_runtime.h> namespace faiss { namespa...
1,098
1,305
<reponame>suxingjie99/JavaSource<filename>src/org/example/source/com/sun/source/doctree/ReferenceTree.java /* * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * ...
210
704
package org.jgroups.util; import org.jgroups.Message; import org.jgroups.Receiver; import java.io.Closeable; import java.io.IOException; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; /** * Generic receiver for a JChannel * @author <NAME> * @since 3.3 */ public class MyReceiver<T> impl...
611
2,701
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // // 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 applic...
3,344
19,628
<reponame>didichuxing/DoraemonKit<gh_stars>1000+ package com.didichuxing.doraemonkit.aop.bigimg.imageloader; import android.graphics.Bitmap; import androidx.annotation.Nullable; import android.view.View; import com.didichuxing.doraemonkit.constant.MemoryConstants; import com.didichuxing.doraemonkit.util.ConvertUtil...
1,000
412
<gh_stars>100-1000 /*******************************************************************\ Module: Field-sensitive SSA Author: <NAME> \*******************************************************************/ #ifndef CPROVER_GOTO_SYMEX_FIELD_SENSITIVITY_H #define CPROVER_GOTO_SYMEX_FIELD_SENSITIVITY_H #include <cstddef> ...
2,022
1,483
<filename>lealone-aose/src/main/java/org/lealone/storage/aose/btree/BTreeCursor.java /* * Copyright 2004-2014 H2 Group. Multiple-Licensed under the MPL 2.0, and the * EPL 1.0 (http://h2database.com/html/license.html). Initial Developer: H2 * Group */ package org.lealone.storage.aose.btree; import org.lealone.stora...
1,543
462
<filename>txdav/xml/test/test_base.py ## # Copyright (c) 2005-2017 Apple Inc. All rights reserved. # Copyright (c) 2009 Twisted Matrix Laboratories. # # 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 S...
1,508
343
import importlib from . import _lights_common if '__IMPORTED__' in locals(): importlib.reload(locals()['_lights_common']) else: __IMPORTED__ = True class KhrLights: ext_meta = { 'name': 'KHR_lights', 'url': ( 'https://github.com/andreasplesch/glTF/blob/ec6f61d73bcd58d59d4a4ea...
282
848
/* * Copyright 2019 Xilinx 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,010
613
package com.interest.model.utils; public enum ResponseStatus { /** * 请求成功状态码 */ OK("2000","success"), /** * 请求失败 */ FAIL_4000("4000","FILE"), /** * 未认证 */ FAIL_4001("4001","未认证"), /** * 无权限 */ FAIL_4003("4003","无权限"), FAIL_6001("6001","...
363
12,718
<gh_stars>1000+ /* * Copyright (c) 2020 <NAME> * * This file is part of zig, which is MIT licensed. * See http://opensource.org/licenses/MIT */ #include "mem.hpp" #include "heap.hpp" namespace mem { void init() { heap::bootstrap_allocator_state.init("heap::bootstrap_allocator"); heap::c_allocator_state....
183
2,326
/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE_camera_ctl_ui file in the root directory of this subproject. */ #pragma once #include <gtkmm.h> #include "CameraListView.hpp" namespace surround360 { class CameraDiscove...
160
302
/* * Copyright © 2021 <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, including without * limitation the rights to use, copy, modify, merge, publi...
75,429
843
<gh_stars>100-1000 package org.zalando.nakadi.util; import org.json.JSONException; import org.json.JSONObject; import org.zalando.nakadi.exceptions.runtime.JsonPathAccessException; /* One could use JsonPath Lib instead: https://github.com/jayway/JsonPath However, I had the feeling that JsonPath is way too much com...
1,332
335
{ "word": "Hydrobiology", "definitions": [ "the science of life and life processes in water" ], "parts-of-speech": "Noun" }
63
576
#include "track.h" #include <stdexcept> #include <iostream> #include <algorithm> using namespace Dx8; Track::StyleRef::StyleRef(Riff &input) { input.read([&](Riff& ch){ if(ch.is("stmp")) ch.read(&stmp,sizeof(stmp)); else if(ch.is("LIST")){ char listId[5]={}; ch.read(&listId,4); if(s...
1,111
3,102
// RUN: %clang_cc1 -fblocks -fsyntax-only -verify %s // rdar: // 6182276 template <typename T, typename T1> void foo(T t, T1 r) { T block_arg; __block T1 byref_block_arg; T1 (^block)(T) = ^ T1 (T arg) { byref_block_arg = arg; block_arg = arg; // expected-error {{variable is not assig...
457
1,073
<reponame>oubotong/Armariris // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s #define A(b) -#b , - #b , -# b , - # b A() // CHECK: {{^}}-"" , - "" , -"" , - ""{{$}} #define t(x) #x t(a c) // CHECK: {{^}}"a c"{{$}} #define str(x) #x #define f(x) str(-x) f( 1) // CHECK: {{^}}"-1"
169
4,822
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distribute...
2,539
9,228
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import time from typing import Any, Dict, List, Tuple from parlai.core.worlds import validate from parlai.crowdsourcing...
2,670
534
<filename>src/main/resources/assets/mekanism/models/block/factory/crushing/active/advanced.json { "parent": "mekanism:block/factory/crushing/advanced", "textures": { "front": "mekanism:block/factory/advanced/crushing/front_active", "south": "mekanism:block/factory/advanced/crushing/back_active", "west":...
201
648
<filename>spec/hl7.fhir.core/3.0.1/package/DataElement-Task.restriction.period.json<gh_stars>100-1000 {"resourceType":"DataElement","id":"Task.restriction.period","meta":{"lastUpdated":"2017-04-19T07:44:43.294+10:00"},"url":"http://hl7.org/fhir/DataElement/Task.restriction.period","status":"draft","experimental":true,"...
245
1,566
package home.smart.fly.animations.customview.swipeanim; import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import andro...
8,640
1,356
package org.cloud.sonic.controller.services; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; import org.cloud.sonic.controller.models.domain.TestCases; import java.util.List; /** * @author ZhouYiXu...
316
634
<filename>modules/base/compiler-impl/src/main/java/com/intellij/packaging/impl/elements/DirectoryPackagingElement.java /* * Copyright 2000-2009 JetBrains s.r.o. * * 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 ...
1,027
510
<filename>HostMonitor/BuildUWP/sample_uwp_cpp/SubScreen.xaml.cpp // // SubScreen.xaml.cpp // Implementation of the SubScreen class // #include "pch.h" #include "SubScreen.xaml.h" #include <robuffer.h> using namespace sample_uwp_cpp; using namespace Platform; using namespace Windows::Foundation; using namespace Wind...
1,531
408
/* A file to test imorting C modules for handling arrays to Python */ #include "Python.h" #include "arrayobject.h" #include "C_arraytest.h" #include <math.h> /* #### Globals #################################### */ /* ==== Set up the methods table ====================== */ static PyMethodDef _C_arraytestMethods[] = {...
7,295
313
/* * Copyright 2020 Netflix, 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 t...
878
4,416
class Solution { /*public void dfs(TreeNode root, Set<Integer> uniques) { if (root != null) { uniques.add(root.val); dfs(root.left, uniques); dfs(root.right, uniques); } } public int findSecondMinimumValue(TreeNode root) { // Brute force Se...
637
549
<reponame>cbarnson/UVa int main() { srand(time(NULL)); test(); assert(!ANY_FAILED); return 0; }
56
14,668
// Copyright 2021 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/login/ui/fingerprint_auth_factor_model.h" #include "ash/login/resources/grit/login_resources.h" #include "ash/login/ui/auth_icon_view.h" #i...
2,187
14,668
<filename>chrome/browser/net/proxy_test_utils.h // Copyright 2019 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_NET_PROXY_TEST_UTILS_H_ #define CHROME_BROWSER_NET_PROXY_TEST_UTILS_H_ #include "c...
351
880
/** * Copyright 2019 <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 applicable law or agreed to in wr...
2,029
10,225
<gh_stars>1000+ package io.quarkus.qute.generator; import static org.junit.jupiter.api.Assertions.assertEquals; import io.quarkus.qute.generator.ValueResolverGenerator.MethodKey; import java.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.List; import org.jboss.jandex.ClassInfo...
882
23,901
# coding=utf-8 # Copyright 2021 The Google Research 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...
5,516
2,959
<gh_stars>1000+ import json def handler(event, context): """ FunctionA in leaf template """ return {"statusCode": 200, "body": json.dumps({"hello": "world"})}
65
348
{"nom":"Ayherre","circ":"5ème circonscription","dpt":"Pyrénées-Atlantiques","inscrits":796,"abs":338,"votants":458,"blancs":5,"nuls":3,"exp":450,"res":[{"nuance":"MDM","nom":"Mme <NAME>","voix":152},{"nuance":"REG","nom":"Mme <NAME>","voix":125},{"nuance":"SOC","nom":"Mme <NAME>","voix":35},{"nuance":"FN","nom":"<NAME>...
323
2,039
<reponame>dileeshvar/nd4j /*- * * * Copyright 2015 Skymind,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/L...
3,328
1,982
<filename>external/ogg/libvorbis/test/util.h<gh_stars>1000+ /******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis SOFTWARE CODEC SOURCE CODE. * * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBR...
550
5,250
<filename>modules/flowable-engine/src/test/java/org/flowable/engine/test/api/identity/ChangePasswordIdentityServiceTest.java /* 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:/...
1,024
391
<reponame>zmhbh/spring-android<filename>spring-android-core/src/main/java/org/springframework/core/ParameterNameDiscoverer.java /* * Copyright 2002-2014 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 Licen...
519
331
<gh_stars>100-1000 package com.cgutman.adblib; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.net.ConnectException; import java.net.Socket; import java.util.HashMap; /** * This class represents a...
3,758
569
// Copyright (c) 2019 The DeepOnion developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef SEC_MESSAGE_H #define SEC_MESSAGE_H #include <support/allocators/secure.h> #include <string.h> #include <vector> const u...
546
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...
7,707
1,052
/* * Copyright (c) 2020, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ package org.postgresql.util; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.Assert; import org.junit.jupiter.api.Test; class PGtokenizerTest { @Test ...
484
3,308
# Copyright (C) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, check out LICENSE.md import os import cv2 import imageio import numpy as np import torch import torch.nn as nn import torch.nn.functiona...
14,139
560
<reponame>xiaocaiji34/oandbackup<filename>src/main/java/dk/jens/backup/BlacklistsDBHelper.java package dk.jens.backup; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import java.util.ArrayList; public cla...
1,230
1,056
/* * 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,048
673
package com.xiaomi.mitv.store.network; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.Map; import android.text.TextUtils; import android.util.Log; public class CommonUrlBuilder { private String mBaseUrl; private ...
766
379
// Copyright (c) 2014, <NAME>. All rights reserved. // Use of this source code is governed by the BSD 3-Clause License, // that can be found in the LICENSE file. // #include <execinfo.h> #include <csignal> #include "network/server.h" #include "thread/threadpool.h" #include "util/logger.h" #include "util/options.h" #in...
2,904
434
#include "kvm/kvm.h" #include "kvm/read-write.h" #include "kvm/util.h" #include "kvm/strbuf.h" #include "kvm/mutex.h" #include "kvm/kvm-cpu.h" #include "kvm/kvm-ipc.h" #include <linux/kernel.h> #include <linux/kvm.h> #include <linux/list.h> #include <linux/err.h> #include <sys/un.h> #include <sys/stat.h> #include <sy...
6,525
716
// Copyright (c) 2020 The Orbit 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 "StatusListenerImpl.h" #include <absl/container/flat_hash_map.h> #include <QString> #include <algorithm> #include <limits> #include <type_trai...
694
310
<reponame>dreeves/usesthis { "name": "<NAME>", "description": "A mechanical keyboard.", "url": "https://www.duckychannel.com.tw/page-en/ducky-one/" }
65
2,151
// Copyright 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. #ifndef REMOTING_BASE_OAUTH_CLIENT_H_ #define REMOTING_BASE_OAUTH_CLIENT_H_ #include <string> #include "base/callback.h" namespace gaia { struct OAuthC...
505
576
#pragma once #include <cstdlib> class GameScript; class AiState final { public: AiState(GameScript &owner, size_t id); size_t funcIni =0; size_t funcLoop=0; size_t funcEnd =0; const char* name() const { return mname; } private: const char* mname=""; //for debugging };
123
792
<reponame>garroud/FBGEMM /* * Copyright (c) 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 <ATen/ATen.h> #include <ATen/TypeDefault.h> #include <ATen/core/op_regi...
390
862
/* * (c) Copyright 2020 Palantir Technologies 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 ...
2,677
333
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.domain.SiteResult; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.data.aiservice.hellobike.site.query response. * * @author auto create * @since 1.0, 2020-04-17 11:31:14 */ publi...
279
764
<reponame>641589523/token-profile {"symbol": "DRS","address": "0xbf13FF395D686Ed7C705A5411CC8E4E21Ff2Ceb2","overview":{"en": ""},"email": "","website": "https://drscoin.net/","state": "NORMAL","links": {"blog": "https://t.me/beautypaycoin","twitter": "https://twitter.com/drscoinofficial","telegram": "","github": ""}}
125
1,133
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # Copyright 2014 California Institute of Technology. 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 th...
1,440
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...
3,802
868
/* * 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 n...
9,201
3,705
#pragma once #include <cstdint> #include <string> #include <vector> #include <absl/types/optional.h> #include "chainerx/array.h" namespace chainerx { std::vector<std::vector<Array>> NStepLstm( int64_t n_layers, const Array& hx, Array cx, const std::vector<std::vector<Array>>& ws, ...
807
368
/** * Contains classes related to vCard parameters. */ package ezvcard.parameter;
24
610
#!/usr/bin/python2.7 # -*- coding: utf-8 -*- """ This is very, very ugly. PokeAPI V1 was built in one day when I didn't quite understand how to process all this data, so it takes in a bunch of csv stuff and dumps it into the models. I used to go into the django shell and run these commands one at a time to load the d...
5,578
3,058
<filename>Common_3/ThirdParty/OpenSource/gainput/lib/source/gainput/keyboard/GainputInputDeviceKeyboardImpl.h<gh_stars>1000+ #ifndef GAINPUTINPUTDEVICEKEYBOARDIMPL_H_ #define GAINPUTINPUTDEVICEKEYBOARDIMPL_H_ namespace gainput { class InputDeviceKeyboardImpl { public: virtual ~InputDeviceKeyboardImpl() { } virtual...
257
12,930
import pytest def test_custom_default_conf_does_not_apply_to_unknown_vhost(docker_compose, nginxproxy): r = nginxproxy.get("http://nginx-proxy/") assert r.status_code == 503 assert "X-test" not in r.headers def test_custom_default_conf_applies_to_web1(docker_compose, nginxproxy): r = nginxproxy.get("h...
440
14,668
// 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 "ash/hud_display/graph.h" #include <algorithm> #include <limits> #include <sstream> #include "cc/paint/paint_flags.h" #include "third_party/ski...
3,789
1,585
/* * Copyright (c) 2004-2007 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2005 The University of Tennessee and The University * of Tennessee Resea...
720
19,628
<gh_stars>1000+ package com.didichuxing.doraemonkit.config; import com.didichuxing.doraemonkit.constant.SharedPrefsKey; import com.didichuxing.doraemonkit.util.DoKitSPUtil; /** * @author wanglikun */ public class ColorPickConfig { public static boolean isColorPickOpen() { return DoKitSPUtil.getBoolean(S...
200
717
<reponame>fridy1307/mariana-trench /* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <mariana-trench/Scheduler.h> namespace marianatrench { // We use the dependency gra...
539
2,151
/************************************************************************** * * Copyright 2010 VMware, Inc. * All Rights Reserved. * * 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 wit...
7,313
809
<gh_stars>100-1000 /** * @file * @brief * * @author <NAME> * @date 03.12.2013 */ #include <net/sock.h> #include <util/member.h> #include <fs/xattr_list.h> #include <kernel/task/resource/security.h> #include <security/smac/smac.h> #include <kernel/task/resource/idesc.h> static struct xattr_list *sock_xattr_...
583
14,425
<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 *...
837
1,657
from hpbandster.optimizers.hyperband import HyperBand from autoPyTorch.core.hpbandster_extensions.run_with_time import run_with_time class HyperBandExt(HyperBand): def run_until(self, runtime=1, n_iterations=float("inf"), min_n_workers=1, iteration_kwargs = {},): """ Parameters: --...
293
634
/* * Copyright 2000-2014 JetBrains s.r.o. * * 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...
480
8,558
"""Miscellaneous bindings to ffmpeg.""" import os from moviepy.config import FFMPEG_BINARY from moviepy.decorators import convert_parameter_to_seconds, convert_path_to_string from moviepy.tools import subprocess_call @convert_path_to_string(("inputfile", "outputfile")) @convert_parameter_to_seconds(("start_time", "...
2,089
2,695
<reponame>yatonon/dlib-face<gh_stars>1000+ // Copyright (C) 2011 <NAME> (<EMAIL>) // License: Boost Software License See LICENSE.txt for the full license. #ifndef DLIB_METADATA_EdITOR_H__ #define DLIB_METADATA_EdITOR_H__ #include <dlib/gui_widgets.h> #include "dlib/data_io.h" // -----------------------------------...
631
375
{ "id": 225, "logo_path": "/cmxkBc3dmwWaIHFCrkXZoAfGoOa.png", "description": null, "name": "<NAME>", "parent_company": null, "homepage": "http://www.bimfilm.com/", "headquarters": "" }
92
877
<filename>checker/tests/index/LessThanFloat.java<gh_stars>100-1000 import org.checkerframework.checker.index.qual.LessThan; public class LessThanFloat { int bigger; @LessThan("bigger") byte b; @LessThan("bigger") short s; @LessThan("bigger") int i; @LessThan("bigger") long l; // :: error: (anno.on.irr...
579
23,439
<filename>common/src/test/java/com/alibaba/nacos/common/utils/DateFormatUtilsTest.java /* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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...
587
2,494
// Copyright & License details are available under JXCORE_LICENSE file #ifndef SRC_JX_PROXY_MOZILLA_MOZJS_TRYCATCH_H_ #define SRC_JX_PROXY_MOZILLA_MOZJS_TRYCATCH_H_ #include <string> #include "MozValue.h" #include "../EngineHelper.h" namespace MozJS { class TryCatch { bool empty_; MozJS::Value holder_; public:...
604
310
{ "name": "Superman Returns", "description": "A video game based on the movie of the same name.", "url": "https://en.wikipedia.org/wiki/Superman_Returns_(video_game)" }
56
2,151
// Copyright 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. #include "components/search_engines/search_engine_data_type_controller.h" #include "base/threading/thread_task_runner_handle.h" namespace browser_sync {...
773
1,615
<reponame>mmdongxin/MLN<filename>MLN-iOS/Example/Pods/Headers/Public/ArgoUI/NSError+MLNUICore.h // // NSError+MLNUICore.h // MLNUICore // // Created by MoMo on 2019/7/23. // #import <Foundation/Foundation.h> #define kMLNUI_ERROR_DOMAIN @"com.mln.error" #define kMLNUI_ERROR_MSG @"errorMessage" typedef enum ...
871
1,338
/* * Copyright 2009, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "main_window/ThreadsPage.h" #include <stdio.h> #include <new> #include "table/TableColumns.h" // #pragma mark - ThreadsTableModel class MainWindow::ThreadsPage::ThreadsTableModel : public TableModel { public:...
2,074
3,151
import os from datetime import datetime import logging import pandas as pd from sklearn.model_selection import train_test_split from simpletransformers.seq2seq import Seq2SeqModel, Seq2SeqArgs from utils import load_data, clean_unnecessary_spaces logging.basicConfig(level=logging.INFO) transformers_logger = logging...
1,684
1,200
<reponame>MemorySpring/DDMQ /** * Autogenerated by Thrift Compiler (0.9.2) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package com.xiaojukeji.carrera.consumer.thrift; import org.apache.thrift.scheme.IScheme; import org.apache.thrift.scheme.SchemeFactory; import org.apache...
12,023
360
#pragma once #include "../DeviceShader.h" #include "vulkan/vulkan.h" namespace tzw { class DeviceShaderVK: public DeviceShader { public: void compile(const unsigned char * buff, size_t size, DeviceShaderType type, const unsigned char * fileInfoStr) override; VkShaderModule getRawModule() { return m_rawModule;} ...
130
778
// // Project Name: KratosSolidMechanicsApplication $ // Created by: $Author: JMCarbonell $ // Last modified by: $Co-Author: $ // Date: $Date: July 2013 $ // Revision: $Revision: 0.0 $ // // // System ...
4,096
521
/* $Id: EventImpl.h $ */ /** @file * VirtualBox COM IEvent implementation */ /* * Copyright (C) 2010-2017 Oracle Corporation * * This file is part of VirtualBox Open Source Edition (OSE), as * available from http://www.virtualbox.org. This file is free software; * you can redistribute it and/or modify it under ...
1,991
1,031
/* Copyright (c) <2003-2019> <Newton Game Dynamics> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * includi...
3,341
487
<gh_stars>100-1000 import pytest from tests.conftest import create_dummy_config_file, suzieq_rest_server_path import os from suzieq.utils import load_sq_config from random import randint from time import sleep import subprocess import requests import yaml @pytest.mark.rest @pytest.mark.skipif(not os.environ.get('TEST...
792
777
// 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. #include "net/quic/chromium/quic_chromium_client_stream.h" #include <string> #include "base/memory/ptr_util.h" #include "base/run_loop.h" #include "...
9,826
2,757
<gh_stars>1000+ # This file exists as a helper for the test.test_frozen module.
27
310
{ "name": "GNOME", "description": "A desktop system for *nix operating systems.", "url": "https://www.gnome.org/" }
43