max_stars_count
int64
301
224k
text
stringlengths
6
1.05M
token_count
int64
3
727k
8,633
<gh_stars>1000+ from time import sleep from unittest.mock import MagicMock import pytest from prefect import Task from prefect.engine import signals, state from prefect.engine.runner import ENDRUN, Runner from prefect.utilities.configuration import set_temporary_config from prefect.utilities.executors import run_with...
1,786
812
package edu.stanford.nlp.sempre; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.google.common.base.Strings; import fig.basic.Option; /** * A Session contains the information specific to a user. * It maintains the context for discourse as well as the last example, so that * we...
1,204
3,200
<filename>mindspore/lite/micro/coder/opcoders/nnacl/int8/detection_post_process_int8_coder.h<gh_stars>1000+ /** * Copyright 2021 Huawei Technologies Co., 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 cop...
627
4,320
/* * Copyright (c) 2019 Abex * 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 code must retain the above copyright notice, this * list of conditions and ...
1,903
637
<gh_stars>100-1000 /* * Copyright (C) 2017 Twitter, 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 ap...
355
2,453
<filename>XVim2/XcodeHeader/IDEKit/IDEWelcomeWindowAuthorizationHelper.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> @interface IDEWelcomeWindowAuthorizationHelper : NSObject { } + (BOOL)isAuthorized...
205
826
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenColorIO Project. #include <algorithm> #include <cstring> #include <sstream> #include <vector> #include <OpenColorIO/OpenColorIO.h> #include "transforms/Lut3DTransform.h" namespace OCIO_NAMESPACE { Lut3DTransformRcPtr Lut3DTransform::Creat...
2,844
335
{ "word": "Dissident", "definitions": [ "In opposition to official policy." ], "parts-of-speech": "Adjective" }
60
852
#ifndef BLOBPEDESTALS_H #define BLOBPEDESTALS_H #include "CondFormats/Serialization/interface/Serializable.h" #include <vector> class BlobPedestals { public: BlobPedestals(); virtual ~BlobPedestals(); std::vector<unsigned int> m_pedestals; COND_SERIALIZABLE; }; #endif
108
395
package timely.test; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.LinkedHashMap; import java.util.Map; import java.util.TreeMap; import org.apache.accumulo.core.client.lexicoder.Lexicoder; import org.apache.accumulo.core.client.lexicoder.PairLexicoder; import org.apache.accumulo.cor...
1,759
1,587
package io.reflectoring.springcloudredis.controller; import io.reflectoring.springcloudredis.entity.User; import io.reflectoring.springcloudredis.service.UserService; import lombok.AllArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.GetMapping; import org.springframewor...
258
2,461
def test_simple(): assert True # A syntax error: :
22
374
/* * Copyright (c) 1999-2004 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and 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 PROVIDED "AS IS" AND THE AUTHOR...
697
1,114
<reponame>abod1944/cognitive-services-speech-sdk<filename>samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechSynthesisScenarioSamples.java // // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.md file in the project root for full licens...
3,942
1,603
package com.linkedin.metadata.recommendation; import com.linkedin.common.urn.Urn; import com.linkedin.metadata.recommendation.candidatesource.RecommendationSource; import com.linkedin.metadata.recommendation.ranker.RecommendationModuleRanker; import com.linkedin.metadata.utils.ConcurrencyUtils; import io.opentelemetry...
905
383
/* * Copyright 2002-2016 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
3,285
342
<reponame>ramesh-kr/sentinel<filename>mobile-client-android/sentinel_android/app/src/main/java/sentinelgroup/io/sentinel/db/dao/VpnListEntryDao.java package sentinelgroup.io.sentinel.db.dao; import android.arch.lifecycle.LiveData; import android.arch.persistence.room.Dao; import android.arch.persistence.room.Insert; i...
2,035
1,350
<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.analytics.synapse.artifacts.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonPropert...
927
2,338
// Test that verifies TSan runtime doesn't contain compiler-emitted // memcpy/memmove calls. It builds the binary with TSan and check's // its objdump. // RUN: %clang_tsan -O1 %s -o %t // RUN: llvm-objdump -d -l %t | FileCheck %s int main() { return 0; } // CHECK-NOT: callq {{.*<(__interceptor_)?mem(cpy|set)>}} //...
156
380
<gh_stars>100-1000 #ifndef SERVER_TRACKER_VIEW_H #define SERVER_TRACKER_VIEW_H //-- includes ----- #include "ServerDeviceView.h" #include "PSMoveProtocolInterface.h" #include <vector> // -- pre-declarations ----- namespace PSMoveProtocol { class Response_ResultTrackerSettings; class TrackingColorPreset; }; /...
2,152
2,177
package org.nutz.mvc.testapp.classes.bean; public class Issue1109 { private String id; private String goodsPicMain; private String marketingNum; private String goodsName; // private String goodsId; // private String goodsUrl; // private String couponUrl; // @Column // @Comment("渠道")...
1,618
3,348
<gh_stars>1000+ #!/usr/bin/env python3 # -*- encoding: utf-8 -*- # 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...
517
5,169
{ "name": "IBProperty", "version": "1.2.0", "platforms": { "ios": "8.0" }, "summary": "A iOS Kit which would adapt screen by XIB and Storyboard better, and use better for XIB and Storyboard。", "homepage": "https://github.com/SunriseOYR/IBProperty", "license": { "type": "MIT", "file": "LICE...
305
401
import unittest import logging import os from anchore.util.resources import ResourceCache logging.basicConfig(level='DEBUG') class TestResourceCache (unittest.TestCase): def test_basic(self): cache = ResourceCache(directory='/tmp') cache.clear() assert cache.is_empty() entry = c...
316
862
import os import glob import pandas as pd import xml.etree.ElementTree as ET import json import io import csv from PIL import Image from utils.labelingtool_utils.json_to_csv import json_to_csv from utils.labelingtool_utils.xml_to_csv import xml_to_csv """ calls xml_to_csv and json_to_csv to generate a labels pandas ...
535
435
<filename>pycon-ph-2019/videos/pycon-apac-2019-gyenn-neil-ibo-multi-lingual-text-data-for-sentiment-classification.json { "copyright_text": null, "description": "Labeled Training Datasets or off-the-shelf tools for labeling training datasets for Sentiment Classification are readily available for English and other m...
456
1,083
//===--- PILLayout.cpp - Defines PIL-level aggregate layouts --------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
1,314
1,056
<filename>enterprise/web.jsf/src/org/netbeans/modules/web/jsf/api/JsfComponentUtils.java /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF li...
4,448
384
<gh_stars>100-1000 import torch import torch.nn as nn import torch.nn.functional as F import numpy as np #import matplotlib.pyplot as plt import pdb from torch.nn.modules.loss import _Loss from torch.autograd import Function, Variable #import scipy.io as sio class alpha_loss(_Loss): def __init__(self): super(alpha...
1,432
2,151
// 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/chromeos/login/user_board_view_mojo.h" #include <utility> #include "chrome/browser/chromeos/login/lock_screen_utils.h" #include...
1,733
852
import FWCore.ParameterSet.Config as cms # Energy scale correction for Fixed Matrix Endcap SuperClusters correctedFixedMatrixSuperClustersWithPreshower = cms.EDProducer("EgammaSCCorrectionMaker", corectedSuperClusterCollection = cms.string(''), sigmaElectronicNoise = cms.double(0.15), superClusterAlgo = cm...
462
407
<gh_stars>100-1000 package com.alibaba.tesla.gateway.common.exception; /** * @author <EMAIL> */ public class OperatorRouteException extends Exception{ public OperatorRouteException(String message) { super(message); } public OperatorRouteException(String message, Throwable cause) { super(...
148
1,442
#include "list_controller.h" #include "../app.h" #include <assert.h> #include <algorithm> #include <apps/i18n.h> using namespace Shared; using namespace Poincare; using namespace Escher; namespace Sequence { ListController::ListController(Responder * parentResponder, Escher::InputEventHandlerDelegate * inputEventHan...
3,584
1,350
<reponame>ppartarr/azure-sdk-for-java // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.resourcemanager.containerregistry.models; import com.azure.core.annotation.Fluent; import com.azure.resourcemanager.resources.fluentcore.model.Attachable; import com....
2,263
2,338
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py // REQUIRES: aarch64-registered-target // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +sve -fallow-half-arguments-and-returns -S -O1 -Werror -Wall -emit-llvm -o - %s | FileCheck %s // RUN: %clang_cc1 -triple aarch64-none-li...
2,958
4,569
<reponame>adouhuges/java-learning package com.brianway.learning.java.multithread.timer.example4; /** * Created by brian on 2016/4/15. */ import java.util.Calendar; import java.util.Date; import java.util.Timer; import java.util.TimerTask; /** * P257 * scheduleAtFixedRate(TimerTask task, Date firstTime,long perio...
625
362
<gh_stars>100-1000 // Copyright (c) 2018-2020, <NAME>. For more information see 'LICENSE' #include "tests/pipeline_compiler/Utils.h" #include "VPipelineReflection.h" extern void Test1 (VPipelineCompiler* compiler) { GraphicsPipelineDesc ppln; ppln.AddShader( EShader::Vertex, EShaderLangFormat::GLSL_450, "main", ...
1,968
7,090
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
1,152
1,857
<reponame>efedo/renderer #ifndef TEST_PBR_H #define TEST_PBR_H void test_pbr(int argc, char *argv[]); #endif
53
892
{ "schema_version": "1.2.0", "id": "GHSA-g8jg-j3w6-vgf8", "modified": "2022-05-13T00:00:49Z", "published": "2022-05-13T00:00:49Z", "aliases": [ "CVE-2022-24910" ], "details": "A buffer overflow vulnerability exists in the httpd parse_ping_result API functionality of InHand Networks InRouter302 V3.5.4....
424
1,350
<reponame>Shashi-rk/azure-sdk-for-java<filename>sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/CheckNameAvailabilityResponseImpl.java<gh_stars>1000+ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated...
511
679
<filename>main/ucb/source/ucp/webdav/SerfMoveReqProcImpl.cxx<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 in...
1,458
403
from .metrics import ( uplift_curve, perfect_uplift_curve, uplift_auc_score, qini_curve, perfect_qini_curve, qini_auc_score, uplift_at_k, response_rate_by_percentile, weighted_average_uplift, uplift_by_percentile, treatment_balance_curve, average_squared_deviation, make_uplift_scorer ) __all__ = [ ...
273
575
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "net/tools/quic/quic_simple_server.h" #include <string.h> #include <memory> #include "base/bind.h" #include "base/location.h" #include "base/r...
2,828
10,031
/* * Copyright (c) 2018. paascloud.net All Rights Reserved. * 项目名称:paascloud快速搭建企业级分布式微服务平台 * 类名称:PtcPayInfoService.java * 创建人:刘兆明 * 联系方式:<EMAIL> * 开源地址: https://github.com/paascloud * 博客地址: http://blog.paascloud.net * 项目官网: http://paascloud.net */ package com.paascloud.provider.service; import com.paascloud...
289
348
{"nom":"Martigny-les-Gerbonvaux","circ":"4ème circonscription","dpt":"Vosges","inscrits":83,"abs":45,"votants":38,"blancs":5,"nuls":2,"exp":31,"res":[{"nuance":"SOC","nom":"<NAME>","voix":16},{"nuance":"LR","nom":"<NAME>","voix":15}]}
97
1,442
#ifndef POINCARE_PARSING_PARSER_H #define POINCARE_PARSING_PARSER_H /* A precedence-climbing parser is implemented hereafter. * It is a trade-off between * a readable but less efficient recursive-descent parser * and * an efficient but less readable shunting-yard parser. */ #include <poincare_expressions.h> #...
2,455
965
// Retrieve the current time CFileTime myFT; myFT = CFileTime::GetCurrentTime();
58
394
<filename>samples/interceptor/spring-fatjar-interceptor-service/src/main/java/org/wso2/msf4j/samples/springfatjarinterceptorservice/Application.java /* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "...
685
894
<filename>spec/support/fixtures/user_representation.json { "github_access_token_present": true, "repos":["ctlc/docker-mysql","ctlc/docker-apache"], "email":"<EMAIL>", "github_username":"githubuser" }
75
743
package pl.allegro.tech.hermes.client; import pl.allegro.tech.hermes.client.metrics.MetricsMessageDeliveryListener; import pl.allegro.tech.hermes.client.metrics.MetricsProvider; import reactor.core.scheduler.Scheduler; import reactor.core.scheduler.Schedulers; import java.net.URI; import java.util.HashMap; import jav...
1,299
777
// 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 "chrome/browser/chromeos/system/system_clock.h" #include <memory> #include "base/logging.h" #include "chrome/browser/chrome_notification_types....
2,970
521
// Copyright 2016 <NAME>. // Copyright (C) 2011 - 2012 <NAME>. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) /** * \file * \brief Contains an implementation of C++17 optional (n3793). * * \sa https://githu...
6,310
575
<gh_stars>100-1000 /* * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the abo...
1,870
2,342
#pragma comment(linker,"\"/manifestdependency:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='<KEY>' language='*'\"") #include "UI\_Source\GacStudioUI.h" #include "Studio\StudioModel.h" #include <Windows.h> using namespace vl::collections; using names...
467
711
<gh_stars>100-1000 package com.java110.community.smo.impl; import com.java110.community.dao.IDictDao; import com.java110.intf.community.DictInnerServiceSMO; import com.java110.dto.Dict.DictDto; import com.java110.dto.Dict.DictQueryDto; import com.java110.utils.util.BeanConvertUtil; import org.springframework.beans.fac...
332
1,231
<reponame>RalfGuder/LaTeX-examples class Fruit { } class Apple extends Fruit { } class Orange extends Fruit { }
40
30,785
package jadx.plugins.input.javaconvert; import java.io.Closeable; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import java.util.stream.Stream; import org.slf4j.Logger; import org....
586
4,526
#include <test.hpp> #include <vtzero/builder.hpp> #ifdef VTZERO_TEST_WITH_VARIANT # include <boost/variant.hpp> using variant_type = boost::variant<std::string, float, double, int64_t, uint64_t, bool>; #endif #include <map> #include <string> #include <unordered_map> TEST_CASE("property map") { vtzero::tile_bui...
824
879
package org.zstack.sdk; import org.zstack.sdk.PolicyRouteRuleInventory; public class CreatePolicyRouteRuleResult { public PolicyRouteRuleInventory inventory; public void setInventory(PolicyRouteRuleInventory inventory) { this.inventory = inventory; } public PolicyRouteRuleInventory getInventor...
122
322
<reponame>axivion/rules_python<filename>examples/pip_parse/main.py import requests def version(): return requests.__version__
45
607
<gh_stars>100-1000 /* * This file is a part of the open source stm32plus library. * Copyright (c) 2011,2012,2013,2014 <NAME> <www.andybrown.me.uk> * Please see website for licensing terms. */ #pragma once namespace stm32plus { namespace net { /** * Class for the Texas Instruments DP83848C PHY. Contai...
3,071
2,757
/*++ Copyright (c) 2004, Intel Corporation. All rights reserved.<BR> This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at ...
2,049
530
from typing import Any, Iterable, List, Optional, Union from tartiflette.types.exceptions.tartiflette import CoercionError __all__ = ("Path", "CoercionResult", "coercion_error") class Path: """ Representations of the path traveled during the coercion. """ __slots__ = ("prev", "key") def __init...
1,704
373
/** @file Copyright 2020 NXP SPDX-License-Identifier: BSD-2-Clause-Patent **/ #ifndef SOC_H__ #define SOC_H__ #include <Chassis.h> /** Soc Memory Map **/ #define LS1046A_DRAM0_PHYS_ADDRESS (BASE_2GB) #define LS1046A_DRAM0_SIZE (SIZE_2GB) #define LS1046A_DRAM1_PHYS_ADDRESS (BASE...
1,221
860
<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 licenses this file * to you under the Apache License, Version 2.0...
2,449
2,180
package com.xiaojukeji.kafka.manager.service.service.gateway.impl; import com.xiaojukeji.kafka.manager.dao.gateway.KafkaAclDao; import com.xiaojukeji.kafka.manager.dao.gateway.KafkaUserDao; import com.xiaojukeji.kafka.manager.common.entity.pojo.gateway.KafkaAclDO; import com.xiaojukeji.kafka.manager.common.entity.pojo...
469
521
<reponame>zai1208/fbc /* rmdir function */ #include "fb.h" #ifdef HOST_MINGW #include <direct.h> #else #include <unistd.h> #endif /*:::::*/ FBCALL int fb_RmDir( FBSTRING *path ) { int res; #ifdef HOST_MINGW res = _rmdir( path->data ); #else res = rmdir( path->data ); #endif /* del if temp */ fb_hStrDelTemp( pa...
160
412
<reponame>Mechachleopteryx/graphbrain<gh_stars>100-1000 from html import escape from IPython.core.display import display from IPython.core.display import HTML from graphbrain import hedge TYPE_COLORS = {'C': '#268bd2', 'M': '#dc322f', 'B': '#859900', 'P': '#cb4b16', ...
5,270
611
<gh_stars>100-1000 // ---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. // ---------------------------------------------------------------------------- package com.embedsample.appownsdata.services; import java.net.Ma...
1,340
1,144
/* * #%L * de.metas.cucumber * %% * Copyright (C) 2021 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 your option) any later v...
3,625
16,870
/* * Copyright 2015 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
1,388
890
<filename>vireo/common/math.h /* * MIT License * * Copyright (c) 2017 Twitter * * 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 ri...
985
619
<gh_stars>100-1000 /* * Author: <NAME> <<EMAIL>> * Copyright (c) 2016 Intel Corporation. * * This program and the accompanying materials are made available under the * terms of the The MIT License which is available at * https://opensource.org/licenses/MIT. * * SPDX-License-Identifier: MIT */ #include <unistd...
523
930
<filename>vm/safepoints.cpp<gh_stars>100-1000 #include "master.hpp" namespace factor { void factor_vm::enqueue_fep() { if (fep_p) fatal_error("Low-level debugger interrupted", 0); atomic::store(&safepoint_fep_p, true); code->set_safepoint_guard(true); } void factor_vm::enqueue_samples(cell samples, ...
829
2,542
// ------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License (MIT). See License.txt in the repo root for license information. // ------------------------------------------------------------ #pragma once #include "stdafx...
1,761
432
<filename>launchers/fs/src/main/java/io/activej/launchers/fs/ClusterTcpServerLauncher.java /* * Copyright (C) 2020 ActiveJ 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...
1,407
2,158
import argparse import json import time from pathlib import Path from sklearn import metrics from scipy import interpolate import torch.nn.functional as F from models import * from utils.utils import * from torchvision.transforms import transforms as T from utils.datasets import LoadImages, JointDataset, co...
1,980
2,705
from argparse import RawTextHelpFormatter from textwrap import dedent from fontTools.ttLib import TTFont from fontTools.otlLib.optimize.gpos import compact, GPOS_COMPACT_MODE_DEFAULT def main(args=None): """Optimize the layout tables of an existing font.""" from argparse import ArgumentParser from fontToo...
976
1,099
package com.example.chat.mvp.skin; import com.example.chat.base.AppBasePresenter; import com.example.chat.bean.SkinBean; import com.example.chat.manager.MsgManager; import com.example.chat.manager.UserDBManager; import com.example.commonlibrary.baseadapter.empty.EmptyLayout; import com.example.commonlibrary.bean.chat....
1,288
533
<gh_stars>100-1000 #include "saber/funcs/impl/x86/saber_argmax.h" namespace anakin { namespace saber { template <typename dtype> void Argmax_kernel_axis(const dtype* din, dtype* dout, int num, int in_stride, \ int out_stride, int size, int in_ss, int out_ss, int top, bool out_max) { for ...
3,613
3,308
<reponame>hw07216/imaginaire // 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 #include <torch/extension.h> #include <pybind11/pybind11.h> #include <pybind11/stl....
773
1,056
<gh_stars>1000+ /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * ...
12,461
1,603
package com.linkedin.datahub.graphql.resolvers.operation; import com.google.common.collect.ImmutableList; import com.linkedin.common.Operation; import com.linkedin.common.OperationSourceType; import com.linkedin.common.OperationType; import com.linkedin.common.urn.Urn; import com.linkedin.common.urn.UrnUtils; import c...
1,961
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...
3,276
852
# PYTHON configuration file for class: JetCorExample # Description: Example of simple EDAnalyzer for correcting jets on the fly. # Author: <NAME> # Date: 02 - September - 2009 import FWCore.ParameterSet.Config as cms process = cms.Process("Ana") process.load("FWCore.MessageService.MessageLogger_cfi") ############# ...
654
2,168
{ "name": "playground", "version": "0.1.0", "description": "tera playground", "main": "index.js", "scripts": { "build": "rm -rf static/playground && webpack", "build:prod": "rm -rf static/playground && webpack --production", "start": "webpack-dev-server" }, "author": "<NAME> <<EMAIL>>", "lic...
249
306
# Copyright 2013 Google Inc # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
1,723
4,879
#include "pugixml.hpp" #include <iostream> int main() { // tag::code[] pugi::xml_document doc; pugi::xml_parse_result result = doc.load_file("tree.xml"); std::cout << "Load result: " << result.description() << ", mesh name: " << doc.child("mesh").attribute("name").value() << std::endl; // end::code[] } ...
129
1,483
<gh_stars>1000+ /* * 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.fs; import java.io.EOFException; import java.io.IOException; import java.io.RandomAccessFile; import java...
3,431
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 ...
647
372
<reponame>ucsf-ckm/geddify<gh_stars>100-1000 (int)(long)&((struct stringpool_t *)0)->stringpool_str275, (int)(long)&((struct stringpool_t *)0)->stringpool_str465,
71
354
<reponame>muehleisen/OpenStudio /*********************************************************************************************************************** * OpenStudio(R), Copyright (c) 2008-2021, Alliance for Sustainable Energy, LLC, and other contributors. All rights reserved. * * Redistribution and use in source and...
2,938
817
<gh_stars>100-1000 """tests.""" import os import csv from ntc_templates.parse import _get_template_dir def load_index_data(): """Load data from index file.""" with open("{0}{1}index".format(_get_template_dir(), os.sep)) as indexfs: data = csv.reader(indexfs) return [row for row in data if le...
140
2,406
<gh_stars>1000+ // Copyright (C) 2018-2021 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <gtest/gtest.h> #include "openvino/opsets/opset8.hpp" #include "openvino/pass/serialize.hpp" #include "read_ir.hpp" #include "util/graph_comparator.hpp" #include "util/test_common.hpp" class TensorNameSeri...
923
357
/* * Copyright (c) 2012-2015 VMware, 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 applicab...
1,634
678
<reponame>bzxy/cydia /** * This header is generated by class-dump-z 0.2b. * * Source: /System/Library/PrivateFrameworks/DataAccess.framework/Frameworks/DAEAS.framework/DAEAS */ #import <DAEAS/XXUnknownSuperclass.h> @class NSString, ASEventUID; @interface ASMeetingResponseItem : XXUnknownSuperclass { NSString *_...
777
307
<gh_stars>100-1000 # automatically generated by the FlatBuffers compiler, do not modify # namespace: FBOutput import tdw.flatbuffers class MagnebotWheels(object): __slots__ = ['_tab'] @classmethod def GetRootAsMagnebotWheels(cls, buf, offset): n = tdw.flatbuffers.encode.Get(tdw.flatbuffers.packe...
562
2,113
//----------------------------------------------------------------------------- // Copyright (c) 2012 GarageGames, LLC // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restrictio...
810
5,937
<filename>src/Microsoft.DotNet.Wpf/src/WpfGfx/core/meta/metabitmaprt.cpp<gh_stars>1000+ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. //+------------------------...
8,860