max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
466
<gh_stars>100-1000 from pycocotools.coco import COCO from track_tools.colormap import colormap import cv2 import os annFile='mix/annotations/train.json' coco=COCO(annFile) cats = coco.loadCats(coco.getCatIds()) nms=[cat['name'] for cat in cats] print('categories: \n{}\n'.format(' '.join(nms))) dirs = 'track_tools/sh...
652
493
#include <cxxtest/TestSuite.h> struct MyNegative { bool operator()(const int &i) const { return i < 0; } }; template<class T> struct MyLess { bool operator()(const T &x, const T &y) const { return x < y; } }; class Relation : public CxxTest::TestSuite { public: void testPredicate() { TS_ASSER...
516
1,199
<gh_stars>1000+ # coding=utf-8 # Copyright 2018 The Google AI Language Team 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 # # Unl...
4,912
479
<reponame>balag91/gerrit // Copyright (C) 2015 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 // // Unles...
2,005
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 ...
1,433
3,459
#ifdef PPU_CPP //INIDISP void PPU::mmio_w2100(uint8 value) { if(regs.display_disabled == true && cpu.vcounter() == (!overscan() ? 225 : 240)) { regs.oam_addr = regs.oam_baseaddr << 1; regs.oam_firstsprite = (regs.oam_priority == false) ? 0 : (regs.oam_addr >> 2) & 127; } regs.display_disabled = !!(val...
9,434
528
<filename>package.json { "name": "com.looooong.srp.vxgi", "version": "0.1.0", "displayName": "Voxel-based Global Illumination", "unity": "2019.1", "dependencies": { "com.unity.postprocessing": "2.1.7" }, "keywords": [ "graphics", "global illumination", "lighting", "SRP", "scriptabl...
178
416
<reponame>ljz663/tencentcloud-sdk-java<gh_stars>100-1000 /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 Licens...
2,599
310
<filename>concepts/basics/links.json [ { "url": "https://ruby-doc.org/core-2.7.0/Integer.html", "description": "integers-docs" } ]
64
320
<reponame>yvesjores/AndroidSensorsProgramming /* * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ...
1,589
392
/* * Run-time type information. * Type info can be obtained using the typeid(...) operator. */ #ifndef LANG__TYPES__TYPE_INFO_HH #define LANG__TYPES__TYPE_INFO_HH #include <typeinfo> namespace lang { namespace types { /* * Export std::type_info class. */ using std::type_info; } /* namespace types */ } /* namesp...
117
988
<gh_stars>100-1000 //------------------------------------------------------------------------------ // GB_AxB_saxpy3_coarseGus_notM_phase5: C<!M>=A*B, coarse Gustavson, phase5 //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2017-2021, All Rights Re...
2,778
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 ...
4,096
5,279
<reponame>hengfengli/beam<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 Lice...
2,253
5,169
<reponame>Gantios/Specs { "name": "BsUItextViewPlaceholder", "version": "0.1.0", "summary": "BsUItextViewPlaceholder.", "description": "a placeholder of UITextView", "homepage": "http://gitlab.yonghui.cn/yhiosmodels/BsUItextViewPlaceholder", "license": { "type": "MIT", "file": "LICENSE" }, "auth...
255
402
<reponame>HalleyYoung/musicautobot def setup_musescore(musescore_path=None): if not is_ipython(): return import platform from music21 import environment from pathlib import Path system = platform.system() if system == 'Linux': import os os.environ['QT_QPA_PLATFORM']='of...
646
543
/* * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
1,337
14,668
// Copyright 2015 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 "traceimpl_dependent_scope.h" namespace blink { // Template instantiation. template class Derived<int>; template class DerivedMissingTrace<int>...
92
14,668
<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. #include "ios/chrome/browser/browser_state/test_chrome_browser_state_manager.h" #include <memory> #include "base/files/file_path.h" #inc...
374
7,482
/* * Copyright 2018 NXP * All rights reserved. * * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_puf.h" #include "fsl_clock.h" #include "fsl_reset.h" #include "fsl_common.h" /* Component ID definition, used by tools. */ #ifndef FSL_COMPONENT_ID #define FSL_COMPONENT_ID "platform.drivers.puf" #endif s...
10,518
561
<filename>common/tests/thrift_client_pool_test.cpp /// Copyright 2016 Pinterest 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...
3,327
757
<reponame>leoriohope/RandWireNN import torch import torch.nn as nn class SeparableConv2d(nn.Module): def __init__(self, in_channels, out_channels, kernel_size=1, stride=1, padding=0, dilation=1, bias=False): super(SeparableConv2d,self).__init__() self.conv1 = nn.Conv2d(in_chann...
319
426
package com.richardradics.commons.widget.echeckbox; import android.content.Context; import android.graphics.Typeface; import android.os.Build; import android.util.TypedValue; import android.view.Gravity; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget....
4,270
1,127
// Copyright (C) 2022 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "shared_test_classes/base/ov_subgraph.hpp" #include "ngraph_functions/builders.hpp" #include "test_utils/cpu_test_utils.hpp" using namespace CPUTestUtils; using namespace ov::test; namespace CPULayerTestsDefinitions { using R...
3,753
3,651
package com.orientechnologies.orient.client.remote.message; import com.orientechnologies.orient.client.binary.OBinaryRequestExecutor; import com.orientechnologies.orient.client.remote.OBinaryRequest; import com.orientechnologies.orient.client.remote.OBinaryResponse; import com.orientechnologies.orient.client.remote.OS...
529
816
# coding=utf-8 # Copyright 2019 The Google AI Language Team 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 ...
1,116
1,444
<filename>Mage.Sets/src/mage/cards/b/BackFromTheBrink.java package mage.cards.b; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.ActivateAsSorceryActivatedAbility; import mage.abilities.costs.Cost; import mage.abilities.costs.CostImpl; import mage.abilities.effects.Effect; import ma...
1,165
778
// | / | // ' / __| _` | __| _ \ __| // . \ | ( | | ( |\__ ` // _|\_\_| \__,_|\__|\___/ ____/ // Multi-Physics // // License: BSD License // Kratos default license: kratos/license.txt // // Main authors: <NAME> // // // Project includes #include "tes...
7,190
372
/* * * (c) Copyright 1990 OPEN SOFTWARE FOUNDATION, INC. * (c) Copyright 1990 HEWLETT-PACKARD COMPANY * (c) Copyright 1990 DIGITAL EQUIPMENT CORPORATION * To anyone who acknowledges that this file is provided "AS IS" * without any express or implied warranty: * permission to use, copy, modify, a...
721
5,169
{ "name": "CNSDK", "version": "1.0.0", "summary": "This is a CNSDK", "description": "it is a test Demo this is a test Demo,and it is implemented by OC", "homepage": "https://github.com/YuqianChen/CNSDK", "license": "MIT", "authors": { "chenyuqian": "<EMAIL>" }, "source": { "git": "https://gith...
226
5,823
<gh_stars>1000+ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import <Cocoa/Cocoa.h> /** * An interface for a responder that can process a key event and decides whether * to handle an event synchro...
205
4,036
<filename>java/ql/test/query-tests/UselessNullCheck/A.java<gh_stars>1000+ public class A { void f() { Object o = new Object(); if (o == null) { } // Useless check if (o != null) { } // Useless check try { new Object(); } catch(Exception e) { if (e == null) { // Useless check th...
474
2,453
<filename>XVim2/XcodeHeader/IDEKit/IDEBatchFindSourceRuleEditorCriterion.h // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 30 2020 21:18:12). // // Copyright (C) 1997-2019 <NAME>. // #import <objc/NSObject.h> @class NSString; @interface IDEBatchFindSourceRuleEditorCriterion : NSObject { ...
382
435
{ "copyright_text": null, "description": "", "duration": 5683, "language": "eng", "recorded": "2013-07-05", "related_urls": [ { "label": "Conference schedule", "url": "https://www.pycon.it/en/ep2013/" } ], "speakers": [ "<NAME>" ], "tags": [ "pythonscripts", "graphics...
273
407
package com.alibaba.tesla.appmanager.server.repository; import com.alibaba.tesla.appmanager.server.repository.condition.AppPackageTagQueryCondition; import com.alibaba.tesla.appmanager.server.repository.domain.AppPackageTagDO; import java.util.List; public interface AppPackageTagRepository { int insert(AppPackag...
169
3,056
<gh_stars>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 ...
1,697
2,205
<reponame>repouniverse/tut """ Generate Fancytree test data. Example: $ python ft_fixtures.py """ import json import os from pprint import pformat import random from fabulist import Fabulist class GenerateTreeData(object): """.""" def __init__(self): self.fab = Fabulist() self.count = 0 ...
1,226
315
<gh_stars>100-1000 /* Simple program -- figure out what kind of video display we have */ #include <stdlib.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "SDL.h" #define NUM_BLITS 10 #define NUM_UPDATES 500 #define FLAG_MASK (SDL_HWSURFACE | SDL_FULLSCREEN | SDL_DOUBLEBUF | \ ...
5,804
2,381
package com.github.dockerjava.core.command; import static com.google.common.base.Preconditions.checkNotNull; import java.io.InputStream; import com.github.dockerjava.api.command.LoadImageCmd; import javax.annotation.Nonnull; public class LoadImageCmdImpl extends AbstrDockerCmd<LoadImageCmd, Void> implements LoadIm...
374
523
#pragma once #include "Common.h" namespace UAlbertaBot { class AutoObserver { int m_cameraLastMoved = 0; int m_unitFollowFrames = 0; BWAPI::Unit m_observerFollowingUnit = nullptr; public: AutoObserver(); void onFrame(); }; }
118
875
<reponame>christeoh/sqoop /** * 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...
539
26,932
// // lzssdec.h // img4tool // // Code borrowed from: http://newosxbook.com/src.jl?tree=listings&file=joker.c // Coded by <NAME> (a.k.a @Morpheus______), http://newosxbook.com #include "lzssdec.h" #include <string.h> #include <stdlib.h> /************************************************************** LZSS.C -- A ...
1,465
1,694
<gh_stars>1000+ // // Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by <NAME>. // #import <objc/NSObject.h> @class WAWhatsNewConfig; @interface WAWhatsNewInfo : NSObject { WAWhatsNewConfig *_config; } ...
178
475
<reponame>shanteswarrao/allure_plugin<gh_stars>100-1000 package ru.yandex.qatools.allure.junit; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import ru.yandex.qatools.allure.config.AllureModelUtils; import ru.yandex.qatools.allure.junit.testdata.SimpleTestClass; import...
719
587
import test_util import os def before_feature(context, feature): print("\nRunning go build") cmd = ["go", "build", "../dump_db_stats.go"] test_util.cli_call(context, cmd, expect_success=True) print("go build complete") def after_feature(context, feature): print("Deleting utility binary") os.re...
124
30,023
"""Calculates mold growth indication from temperature and humidity."""
14
488
<reponame>ouankou/rose #include "sage3basic.h" #include "DLX/TileK/language.hpp" #include "KLT/TileK/generator-basic.hpp" namespace KLT { namespace TileK { void Generator::addUserStaticData( MFB::Driver<MFB::Sage> & driver, const std::string & klt_rtl_path, const std::string & user_rtl_path, const std::st...
435
1,338
/* * Copyright 2001-2008 pinc Software. All Rights Reserved. * Released under the terms of the MIT license. */ //! BFS Inode classes #include "Inode.h" #include "BPlusTree.h" #include <Directory.h> #include <SymLink.h> #include <Entry.h> #include <Path.h> #include <String.h> #include <new> #include <stdlib.h> #...
11,365
14,668
<gh_stars>1000+ // Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef IOS_CHROME_BROWSER_SCREENSHOT_SCREENSHOT_DELEGATE_H_ #define IOS_CHROME_BROWSER_SCREENSHOT_SCREENSHOT_DELEGATE_H_ #import <UIKit/...
349
536
<reponame>Han0nly/jazzer<filename>bazel/kotlin.bzl # Copyright 2021 Code Intelligence GmbH # # 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 ...
706
1,157
<filename>server/modules/protocol/MariaDB/test/test_parse_kill.cc /* * Copyright (c) 2019 MariaDB Corporation Ab * * Use of this software is governed by the Business Source License included * in the LICENSE.TXT file and at www.mariadb.com/bsl11. * * Change Date: 2025-10-11 * * On the date above, in accordance w...
3,014
313
""" Module used to produce generalized sql out of given query """ import re import sqlparse class Generalizator: """ Class used to produce generalized sql out of given query """ def __init__(self, sql: str = ""): self._raw_query = sql # SQL queries normalization (#16) @staticmethod ...
1,172
623
// Copyright (C) 2020 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
1,121
711
<filename>java110-core/src/main/java/com/java110/core/context/AbstractOrderDataFlowContext.java package com.java110.core.context; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.java110.entity.center.Business; import com.java110.entity.center.DataFlowLinksCost; import com.java...
642
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,044
1,584
<filename>libjulius/src/version.c<gh_stars>1000+ /** * @file version.c * * <JA> * @brief バージョンおよびコンパイル時設定の出力 * * </JA> * * <EN> * @brief Output version and compilation-time configuration. * * </EN> * * @author <NAME> * @date Mon Sep 12 01:34:15 2005 * * $Revision: 1.12 $ * */ /* * Copyright...
2,204
2,151
<reponame>bimawa/boringssl<gh_stars>1000+ /* Copyright (c) 2017, Google Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS...
4,782
777
// 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. package org.chromium.content.browser; /** * Used to register listeners that can be notified of changes to the position of a view. */ public interface P...
350
324
/* * Copyright 2016-2020 chronicle.software * * https://chronicle.software * * 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 * * Un...
377
372
/**** **** NDR types for the S/390x Architecture - 64bit, Big Endian Mode **** This is a modified version of the original header. ****/ #ifndef _NDRTYPES_H #define _NDRTYPES_H /* * Use C99 stdint types if possible, as they have known sizes. * The DCE/RPC porting guide defines the expected size of each * of the...
689
892
{ "schema_version": "1.2.0", "id": "GHSA-7h75-f67f-9cpp", "modified": "2022-05-13T01:45:50Z", "published": "2022-05-13T01:45:50Z", "aliases": [ "CVE-2017-3650" ], "details": "Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: C API). Supported versions that are affected are 5.7...
662
1,705
{ "active": true, "synopsis": "Amazon Elastic Transcoder is media transcoding in the cloud. It is designed to be a highly scalable, easy to use and a cost effective way for developers and businesses to convert (or 'transcode') media files from their source format into versions that will playback on devices lik...
84
2,143
<gh_stars>1000+ package com.tngtech.archunit.core.importer.testexamples; public enum SomeEnum { SOME_VALUE, OTHER_VALUE; void bar() { } }
63
2,504
// // MasterDetailPage.xaml.h // Declaration of the MasterDetailPage class. // #pragma once #include "MasterDetailPage.g.h" namespace MasterDetailApp { /// <summary> /// An empty page that can be used on its own or navigated to within a Frame. /// </summary> public ref class MasterDeta...
438
348
{"nom":"Quincampoix","circ":"10ème circonscription","dpt":"Seine-Maritime","inscrits":2614,"abs":1287,"votants":1327,"blancs":87,"nuls":15,"exp":1225,"res":[{"nuance":"REM","nom":"<NAME>","voix":921},{"nuance":"FN","nom":"Mme <NAME>","voix":304}]}
100
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,665
1,383
<reponame>Benatti1991/chrono<gh_stars>1000+ // ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found ...
1,484
694
<reponame>phanisai4u/PdfBox-Android<filename>library/src/main/java/com/tom_roush/pdfbox/pdmodel/graphics/state/PDTextState.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 regard...
2,045
3,913
<reponame>cksspk/ruoyi-vue-pro<filename>yudao-admin-server/src/main/java/cn/iocoder/yudao/adminserver/modules/infra/controller/job/vo/job/InfJobPageReqVO.java package cn.iocoder.yudao.adminserver.modules.infra.controller.job.vo.job; import cn.iocoder.yudao.framework.common.pojo.PageParam; import io.swagger.annotations...
419
1,408
import logging from datetime import datetime from response.core.models import Incident from response.slack.models.notification import Notification logger = logging.getLogger(__name__) NOTIFICATION_HANDLERS = [] class NotificationHandler(object): def __init__(self, key, callback, interval_mins, max_notificatio...
1,994
671
#pragma once #include <Windows.h> #include <winternl.h> #include <Windows.h> #include <sddl.h> #include <TlHelp32.h> #include <stdio.h> #include <string> #include <tchar.h> #include <AclAPI.h> //#include <Ntsecapi.h> #include "util.h" #include "s4u.h" #include "MSFRottenPotato.h" typedef NTSTATUS(NTAPI *_NtQuerySyste...
1,531
5,460
import botocore.client import boto3 import json import pytest import time import sure # noqa # pylint: disable=unused-import import uuid from moto import ( mock_dynamodb2, mock_lambda, mock_logs, mock_sns, mock_sqs, ) from uuid import uuid4 from .utilities import ( get_role_name, get_test_...
6,708
5,169
{ "name": "faceWindow", "version": "1.0.0", "summary": "SZ weking company use to group all items", "description": "he is a good man,sz weking all people use this library,it is very easy to use", "homepage": "https://github.com/1597538426/faceWindowDemo/tree/1.0.0", "license": "MIT", "authors": { "1597...
249
332
<filename>sdk/src/main/java/com/vk/api/sdk/objects/store/StickersKeyword.java // Autogenerated from vk-api-schema. Please don't edit it manually. package com.vk.api.sdk.objects.store; import com.google.gson.Gson; import com.google.gson.annotations.SerializedName; import com.vk.api.sdk.objects.Validable; import com.vk....
1,139
387
import time import cv2 import numpy as np from chainer import serializers, Variable import chainer.functions as F import argparse from yolov2 import * from lib.image_generator import * from yolov2_predict import * item_path = "./items" background_path = "./backgrounds" input_width, input_height = (416, 416) loop = 10 ...
651
542
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <gio/gnetworking.h> #include "dtls_transport.h" #include "nice_agent_bio.h" #include "rtp_packet.h" #include "rtcp_packet.h" #include "utils.h" #include "peer_connection.h" static const gchar *STATE_NAME[] = {"disconnected", "gathering", "connecting"...
4,768
9,425
<gh_stars>1000+ """ :codeauthor: :email: `<NAME> <<EMAIL>>` tests.integration.states.network ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ import pytest from tests.support.case import ModuleCase from tests.support.mixins import SaltReturnAssertsMixin @pytest.mark.destructive_test class NetworkTest(ModuleCase, Sa...
865
861
<filename>spring-cloud-gray-server/src/main/java/cn/springcloud/gray/server/service/UserResourceAuthorityService.java package cn.springcloud.gray.server.service; import cn.springcloud.gray.server.dao.mapper.ModelMapper; import cn.springcloud.gray.server.dao.mapper.UserResourceAuthorityMapper; import cn.springcloud.gra...
1,687
488
<reponame>maurizioabba/rose<filename>tests/CompileTests/OpenMP_tests/cvalidation/for_schedule_dynamic.c /* * Test for dynamic scheduling with chunk size * Method: caculate how many times the iteration space is dispatched * and judge if each dispatch has the requested chunk size * unless it is the last o...
1,735
2,082
from model_mommy import mommy def make_comment(doc, user): return mommy.make("Comment", example=doc, user=user) def make_doc(project): return mommy.make("Example", text="example", project=project) def make_image(project, filepath): return mommy.make("Example", filename=filepath, project=project) def...
138
302
<reponame>jacobkimmel/non-parametric-transformers import math import gpytorch import numpy as np import torch import torch.nn.functional as F from sklearn.cluster import KMeans from torch import nn # MLP feature extractor class MLP(nn.Module): def __init__( self, input_size, hidden_layer_sizes, outpu...
3,021
453
#include <_ansi.h> #include <sys/types.h> #include <sys/stat.h> #include "trap.h" _kill (n, m) { return TRAP0 (SYS_exit, 0xdead, 0, 0); }
71
1,821
<reponame>hangqiu/pixie /* * Copyright 2018- The Pixie Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
1,190
679
<filename>main/shell/source/win32/shlxthandler/util/iso8601_converter.cxx /************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional informat...
1,895
301
<reponame>ZeroMagic/Community-Policy<gh_stars>100-1000 { "allowedVnets": { "type": "array", "metadata": { "displayName": "Allowed VNets", "description": "Enter list of allowed VNets using a semi-coling ';' seperated list. VNets must be entered using their resource ID. Example...
366
488
<gh_stars>100-1000 public class cave3_rshift0 { public static void main(String[] args) { int i = -1 >>> 24; } }
47
718
<reponame>mikeleber/j2html package j2html.rendering; import j2html.Config; import j2html.utils.Indenter; import j2html.utils.TextEscaper; import java.io.IOException; import java.util.ArrayDeque; import java.util.Deque; /** * Composes HTML with lines breaks and indentation between tags and text. * * @param <T> The...
2,974
190,993
/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or a...
816
1,414
<reponame>redscientistlabs/Bizhawk50X-Vanguard<filename>Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/chip/superfx/memory/memory.hpp unsigned rom_mask; //rom_size - 1 unsigned ram_mask; //ram_size - 1 uint8 bus_read(unsigned addr); void bus_write(unsigned addr, uint8 data); uint8 op_read(uint16 addr); ...
183
459
package pocketknife; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import pocketknife.internal.BundleBinding; import pocketknife.internal.IntentBinding; import pocketknife.internal.Memoizer; import java.lang.reflect.Constructor; import java.lang.reflect...
4,203
338
<reponame>lilesper/SparseVoxelOctree #include "DeviceCreateInfo.hpp" #include "Queue.hpp" #include "Surface.hpp" #include <memory> #include <set> #include <string> namespace myvk { void DeviceCreateInfo::Initialize(const std::shared_ptr<PhysicalDevice> &physical_device, const QueueSe...
1,700
414
<filename>ios-sealtalk/RCloudMessage/Sections/Contact/AddFriend/View/RCDSelectAddressBookCell.h // // RCDSelectAddressBookCell.h // SealTalk // // Created by 孙浩 on 2019/7/12. // Copyright © 2019 RongCloud. All rights reserved. // #import "RCDTableViewCell.h" #import "RCDContactsInfo.h" NS_ASSUME_NONNULL_BEGIN ty...
238
415
<filename>pkg/keyidentifier/testdata/specs/XCRBWoAGuKurE3jr.json { "Comment": "comment -- rsa/1024 by putty aCgsTB91FXgEdIfC", "FingerprintSHA256": "9RxBvOhUGHJmjCnASxd8HvyVz1jST7Mwm5mQKDODXHI", "FingerprintMD5": "b6:39:39:e9:c9:4b:c7:37:6d:62:f7:ec:55:3a:4a:ac", "Type": "rsa", "Bits": 1024, "En...
296
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...
2,518
475
from vedastr.utils import build_from_cfg from .registry import METRICS def build_metric(cfg, default_args=None): metric = build_from_cfg(cfg, METRICS, default_args) return metric
68
746
package org.protege.editor.core.editorkit; import org.protege.editor.core.editorkit.plugin.EditorKitHook; import org.protege.editor.core.editorkit.plugin.EditorKitHookPlugin; import org.protege.editor.core.editorkit.plugin.EditorKitHookPluginLoader; /** * <NAME> * Stanford Center for Biomedical Informatics Research...
450
3,065
package com.github.mzule.activityrouter.module; import com.github.mzule.activityrouter.annotation.Module; /** * Created by CaoDongping on 30/10/2016. */ @Module("sdk") public class SdkModule { }
72
921
<filename>src/sqlancer/mariadb/oracle/MariaDBNoRECOracle.java package sqlancer.mariadb.oracle; import java.sql.SQLException; import java.util.Arrays; import java.util.Collections; import java.util.List; import sqlancer.IgnoreMeException; import sqlancer.common.oracle.NoRECBase; import sqlancer.common.oracle.TestOracl...
2,269
317
//======================================================================================== // // $File: //ai_stream/rel_23_0/devtech/sdk/public/samplecode/common/win/pragma.h $ // // $Revision: #1 $ // // Copyright 1987 Adobe Systems Incorporated. All rights reserved. // // NOTICE: Adobe permits you to use, mo...
261
2,151
// 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 <stdint.h> #include <tuple> #include "ipc/ipc_test_sink.h" #include "ppapi/c/dev/ppp_class_deprecated.h" #include "ppapi/proxy/plugin_var_t...
3,277